* busy indicator extension

* Update README.md

* Update README.md

* update binding

* Update README.md

* update binding

* update

* Update package.json

* Update package-lock.json
This commit is contained in:
oblomov 2023-09-18 14:48:54 +02:00 committed by GitHub
parent 9e502b2882
commit c8180a5aee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
8 changed files with 52 additions and 40 deletions

View File

@ -48,7 +48,7 @@
#### Apps & Extensions
* Add your apps to SAP Fiori On-Premise Launchpad [(ext-fiori_launchpad)](https://github.com/abap2UI5/ext-service_integration)
* Integrate your apps with the SAP Business Technology Platform [(ext-btp)](https://github.com/abap2UI5/ext-business_technology_platform)
* Explore abap2UI5-tools, a collection of useful tools & apps [(ext-app_tools)](https://github.com/abap2UI5/app-tools)
* Explore abap2UI5-tools, a collection of tools & utility functions [(abap2UI5-tools)](https://github.com/abap2UI5/abap2ui5-tools)
* Discover other projects using abap2UI5 [(abap2UI5/links)](https://github.com/abap2UI5/abap2UI5-documentation/blob/main/docs/links.md)
* And finally, don't forget to explore the [Samples Repository 🧭](https://github.com/abap2UI5/abap2UI5-samples)

56
package-lock.json generated
View File

@ -9,16 +9,16 @@
"version": "1.0.0",
"license": "MIT",
"devDependencies": {
"@abaplint/cli": "^2.102.28",
"@abaplint/database-sqlite": "^2.7.74",
"@abaplint/runtime": "^2.7.79",
"@abaplint/transpiler-cli": "^2.7.79"
"@abaplint/cli": "^2.102.42",
"@abaplint/database-sqlite": "^2.7.96",
"@abaplint/runtime": "^2.7.97",
"@abaplint/transpiler-cli": "^2.7.97"
}
},
"node_modules/@abaplint/cli": {
"version": "2.102.28",
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.102.28.tgz",
"integrity": "sha512-bZwpD7xXCCG5oo5QXat4OfcyMLtzrSg6rwqRoZ9kv2Pix9BjBH664sJLEOgF+GzzjERA8Ac3UWH1TwROj83NJw==",
"version": "2.102.42",
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.102.42.tgz",
"integrity": "sha512-HGhBo15ZQ0yrS2udpBdjG5m2hE7wlmC5S2ucVGs3R7x7TWvoy0bQRlPPsXXOpUB3tnumkGooUyvDthubhz46KQ==",
"dev": true,
"bin": {
"abaplint": "abaplint"
@ -31,18 +31,18 @@
}
},
"node_modules/@abaplint/database-sqlite": {
"version": "2.7.74",
"resolved": "https://registry.npmjs.org/@abaplint/database-sqlite/-/database-sqlite-2.7.74.tgz",
"integrity": "sha512-PZ2BNTAxkabP+M0DDeP0I2pU6Qzn64u37JeGvu08wTKJFntCgSYb/tNRxj2BNElW+hVANoBQOBigWT1Zzm2z4w==",
"version": "2.7.96",
"resolved": "https://registry.npmjs.org/@abaplint/database-sqlite/-/database-sqlite-2.7.96.tgz",
"integrity": "sha512-xU1tIdTMvpOvzd9CGTm11d17n3nHiapSNxyxNDiWZBrDuF8oOxuQWbbKkekobsHeNw0ZITdb+fGTMC8k5pYigQ==",
"dev": true,
"dependencies": {
"sql.js": "^1.8.0"
}
},
"node_modules/@abaplint/runtime": {
"version": "2.7.79",
"resolved": "https://registry.npmjs.org/@abaplint/runtime/-/runtime-2.7.79.tgz",
"integrity": "sha512-ZsMYLoA06CvJZC3SAzSNhM8XGIbKdcYvifBvgwAqifLPhEtJQ2m59KMiQdfWsb0WsGCulqB2h9zJZeRCrYP7Pg==",
"version": "2.7.97",
"resolved": "https://registry.npmjs.org/@abaplint/runtime/-/runtime-2.7.97.tgz",
"integrity": "sha512-2PpEHlOC5vM+hfNpu+LT4sxqF4Yx2xOwo3NqTX564sPj/cxND18IoCK9IyD2lgBH0q8P0/TMPtZAuPFM/8Eg0w==",
"dev": true,
"dependencies": {
"temporal-polyfill": "^0.1.1"
@ -52,9 +52,9 @@
}
},
"node_modules/@abaplint/transpiler-cli": {
"version": "2.7.79",
"resolved": "https://registry.npmjs.org/@abaplint/transpiler-cli/-/transpiler-cli-2.7.79.tgz",
"integrity": "sha512-/98SXIXcuXSSvWIYiz9wCodL3Xvqk0MSB/iLjbG4RkJdvImN9bePFUDZSW9prqv2AbGB/hSzTlA+MCQAwfofog==",
"version": "2.7.97",
"resolved": "https://registry.npmjs.org/@abaplint/transpiler-cli/-/transpiler-cli-2.7.97.tgz",
"integrity": "sha512-oZaIxxvzOz5HHHXsmLjjyHgMg01no9tOQMAQPfwnDSSAb1mPQc80Ql0zLJkS4dm9rWAIK9HB9BVnZOClTWxshg==",
"dev": true,
"bin": {
"abap_transpile": "abap_transpile"
@ -87,33 +87,33 @@
},
"dependencies": {
"@abaplint/cli": {
"version": "2.102.28",
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.102.28.tgz",
"integrity": "sha512-bZwpD7xXCCG5oo5QXat4OfcyMLtzrSg6rwqRoZ9kv2Pix9BjBH664sJLEOgF+GzzjERA8Ac3UWH1TwROj83NJw==",
"version": "2.102.42",
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.102.42.tgz",
"integrity": "sha512-HGhBo15ZQ0yrS2udpBdjG5m2hE7wlmC5S2ucVGs3R7x7TWvoy0bQRlPPsXXOpUB3tnumkGooUyvDthubhz46KQ==",
"dev": true
},
"@abaplint/database-sqlite": {
"version": "2.7.74",
"resolved": "https://registry.npmjs.org/@abaplint/database-sqlite/-/database-sqlite-2.7.74.tgz",
"integrity": "sha512-PZ2BNTAxkabP+M0DDeP0I2pU6Qzn64u37JeGvu08wTKJFntCgSYb/tNRxj2BNElW+hVANoBQOBigWT1Zzm2z4w==",
"version": "2.7.96",
"resolved": "https://registry.npmjs.org/@abaplint/database-sqlite/-/database-sqlite-2.7.96.tgz",
"integrity": "sha512-xU1tIdTMvpOvzd9CGTm11d17n3nHiapSNxyxNDiWZBrDuF8oOxuQWbbKkekobsHeNw0ZITdb+fGTMC8k5pYigQ==",
"dev": true,
"requires": {
"sql.js": "^1.8.0"
}
},
"@abaplint/runtime": {
"version": "2.7.79",
"resolved": "https://registry.npmjs.org/@abaplint/runtime/-/runtime-2.7.79.tgz",
"integrity": "sha512-ZsMYLoA06CvJZC3SAzSNhM8XGIbKdcYvifBvgwAqifLPhEtJQ2m59KMiQdfWsb0WsGCulqB2h9zJZeRCrYP7Pg==",
"version": "2.7.97",
"resolved": "https://registry.npmjs.org/@abaplint/runtime/-/runtime-2.7.97.tgz",
"integrity": "sha512-2PpEHlOC5vM+hfNpu+LT4sxqF4Yx2xOwo3NqTX564sPj/cxND18IoCK9IyD2lgBH0q8P0/TMPtZAuPFM/8Eg0w==",
"dev": true,
"requires": {
"temporal-polyfill": "^0.1.1"
}
},
"@abaplint/transpiler-cli": {
"version": "2.7.79",
"resolved": "https://registry.npmjs.org/@abaplint/transpiler-cli/-/transpiler-cli-2.7.79.tgz",
"integrity": "sha512-/98SXIXcuXSSvWIYiz9wCodL3Xvqk0MSB/iLjbG4RkJdvImN9bePFUDZSW9prqv2AbGB/hSzTlA+MCQAwfofog==",
"version": "2.7.97",
"resolved": "https://registry.npmjs.org/@abaplint/transpiler-cli/-/transpiler-cli-2.7.97.tgz",
"integrity": "sha512-oZaIxxvzOz5HHHXsmLjjyHgMg01no9tOQMAQPfwnDSSAb1mPQc80Ql0zLJkS4dm9rWAIK9HB9BVnZOClTWxshg==",
"dev": true
},
"sql.js": {

View File

@ -19,9 +19,9 @@
},
"homepage": "https://github.com/abap2UI5/abap2UI5#readme",
"devDependencies": {
"@abaplint/cli": "^2.102.28",
"@abaplint/database-sqlite": "^2.7.74",
"@abaplint/runtime": "^2.7.79",
"@abaplint/transpiler-cli": "^2.7.79"
"@abaplint/cli": "^2.102.42",
"@abaplint/database-sqlite": "^2.7.96",
"@abaplint/runtime": "^2.7.97",
"@abaplint/transpiler-cli": "^2.7.97"
}
}

View File

@ -27,6 +27,7 @@ CLASS z2ui5_cl_fw_binding DEFINITION
check_dissolved TYPE abap_bool,
check_temp TYPE abap_bool,
viewname TYPE string,
pretty_name type string,
END OF ty_s_attri.
TYPES ty_t_attri TYPE SORTED TABLE OF ty_s_attri WITH UNIQUE KEY name.
@ -38,6 +39,7 @@ CLASS z2ui5_cl_fw_binding DEFINITION
data TYPE data OPTIONAL
check_attri TYPE data OPTIONAL
view TYPE string OPTIONAL
pretty_name type clike optional
RETURNING
VALUE(r_result) TYPE REF TO z2ui5_cl_fw_binding.
@ -51,6 +53,7 @@ CLASS z2ui5_cl_fw_binding DEFINITION
DATA mr_data TYPE REF TO data.
DATA mv_check_attri TYPE abap_bool.
DATA mv_view TYPE string.
DATA mv_pretty_name TYPE string.
CLASS-METHODS update_attri
IMPORTING
@ -120,7 +123,7 @@ ENDCLASS.
CLASS z2ui5_cl_fw_binding IMPLEMENTATION.
CLASS Z2UI5_CL_FW_BINDING IMPLEMENTATION.
METHOD bind.
@ -147,9 +150,10 @@ CLASS z2ui5_cl_fw_binding IMPLEMENTATION.
val = `<p>Binding Error - Two different binding types for same attribute used (` && bind->name && `).`.
ENDIF.
bind->bind_type = mv_type.
bind->name_front = name_front_create( bind->name ).
bind->viewname = mv_view.
bind->bind_type = mv_type.
bind->pretty_name = mv_pretty_name.
bind->name_front = name_front_create( bind->name ).
bind->viewname = mv_view.
result = COND #( WHEN mv_type = cs_bind_type-two_way THEN `/` && cv_model_edit_name && `/` ELSE `/` ) && bind->name_front.
IF strlen( result ) > 30.
@ -242,6 +246,8 @@ CLASS z2ui5_cl_fw_binding IMPLEMENTATION.
r_result->mv_type = type.
r_result->mv_check_attri = check_attri.
r_result->mv_view = view.
r_result->mv_pretty_name = pretty_name.
IF z2ui5_cl_fw_utility=>rtti_check_type_kind_dref( data ).
RAISE EXCEPTION TYPE z2ui5_cx_fw_error
@ -390,7 +396,6 @@ CLASS z2ui5_cl_fw_binding IMPLEMENTATION.
set_attri_ready( REF #( mt_attri ) ).
LOOP AT mt_attri REFERENCE INTO DATA(lr_bind)
* WHERE ( bind_type = `` OR bind_type = mv_type )
WHERE check_ready = abap_true.
result = bind( lr_bind ).

View File

@ -231,6 +231,7 @@ CLASS z2ui5_cl_fw_client IMPLEMENTATION.
check_attri = mo_handler->ms_db-check_attri
type = z2ui5_cl_fw_binding=>cs_bind_type-one_way
data = val
pretty_name = pretty_name
).
result = lo_binder->main( ).
@ -252,6 +253,7 @@ CLASS z2ui5_cl_fw_client IMPLEMENTATION.
check_attri = mo_handler->ms_db-check_attri
type = z2ui5_cl_fw_binding=>cs_bind_type-one_time
data = val
pretty_name = pretty_name
).
result = lo_binder->main( ).
@ -274,6 +276,7 @@ CLASS z2ui5_cl_fw_client IMPLEMENTATION.
type = z2ui5_cl_fw_binding=>cs_bind_type-two_way
data = val
view = view
pretty_name = pretty_name
).
result = lo_binder->main( ).

View File

@ -132,7 +132,7 @@ CLASS z2ui5_cl_fw_model IMPLEMENTATION.
WHEN `h`.
lo_actual->add_attribute( n = lr_attri->name_front
v = z2ui5_cl_fw_utility=>trans_json_any_2( <attribute> )
v = z2ui5_cl_fw_utility=>trans_json_any_2( any = <attribute> pretty_name = lr_attri->pretty_name )
apos_active = abap_false ).
WHEN OTHERS.

View File

@ -55,6 +55,7 @@ CLASS z2ui5_cl_fw_utility DEFINITION PUBLIC
CLASS-METHODS trans_json_any_2
IMPORTING
any TYPE any
pretty_name type clike default /ui2/cl_json=>pretty_mode-none
RETURNING
VALUE(result) TYPE string.
@ -421,7 +422,7 @@ CLASS z2ui5_cl_fw_utility IMPLEMENTATION.
METHOD trans_json_any_2.
result = /ui2/cl_json=>serialize( any ).
result = /ui2/cl_json=>serialize( data = any pretty_name = conv #( pretty_name ) ).
ENDMETHOD.

View File

@ -195,6 +195,7 @@ INTERFACE z2ui5_if_client
IMPORTING
val TYPE data
path TYPE abap_bool DEFAULT abap_false
pretty_name type clike DEFAULT /ui2/cl_json=>pretty_mode-none
RETURNING
VALUE(result) TYPE string.
@ -203,6 +204,7 @@ INTERFACE z2ui5_if_client
val TYPE data
path TYPE abap_bool DEFAULT abap_false
view TYPE string default cs_view-main
pretty_name type clike DEFAULT /ui2/cl_json=>pretty_mode-none
RETURNING
VALUE(result) TYPE string.
@ -210,6 +212,7 @@ INTERFACE z2ui5_if_client
IMPORTING
val TYPE data
path TYPE abap_bool DEFAULT abap_false
pretty_name type clike DEFAULT /ui2/cl_json=>pretty_mode-none
RETURNING
VALUE(result) TYPE string.