mirror of
https://github.com/abap2UI5/abap2UI5.git
synced 2025-04-29 02:58:20 +08:00
remove unused variables + refactor COND/SWITCH (#115)
* remove unused variables * SWITCH/COND * update abaplint
This commit is contained in:
parent
f9e1069f60
commit
7f0894a8b7
14
package-lock.json
generated
14
package-lock.json
generated
|
@ -9,13 +9,13 @@
|
|||
"version": "1.0.0",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@abaplint/cli": "^2.95.47"
|
||||
"@abaplint/cli": "^2.95.48"
|
||||
}
|
||||
},
|
||||
"node_modules/@abaplint/cli": {
|
||||
"version": "2.95.47",
|
||||
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.95.47.tgz",
|
||||
"integrity": "sha512-mZr3ZmvNbym3/fOm3oL04E/2S/TbcEzBNmiA7/qo9NND+QEUBbnOoVwjWYWJe+40WKDpNDABgqHrdnswjQBjiQ==",
|
||||
"version": "2.95.48",
|
||||
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.95.48.tgz",
|
||||
"integrity": "sha512-Jxg4MKehOnYkPf3bFSoMF4HSt6iKPsR7ld6NB+QYq4TpkNUvQaZISr4vklYPICoTQHdf8zRgMOw/nwT4+iJE4Q==",
|
||||
"dev": true,
|
||||
"bin": {
|
||||
"abaplint": "abaplint"
|
||||
|
@ -27,9 +27,9 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"@abaplint/cli": {
|
||||
"version": "2.95.47",
|
||||
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.95.47.tgz",
|
||||
"integrity": "sha512-mZr3ZmvNbym3/fOm3oL04E/2S/TbcEzBNmiA7/qo9NND+QEUBbnOoVwjWYWJe+40WKDpNDABgqHrdnswjQBjiQ==",
|
||||
"version": "2.95.48",
|
||||
"resolved": "https://registry.npmjs.org/@abaplint/cli/-/cli-2.95.48.tgz",
|
||||
"integrity": "sha512-Jxg4MKehOnYkPf3bFSoMF4HSt6iKPsR7ld6NB+QYq4TpkNUvQaZISr4vklYPICoTQHdf8zRgMOw/nwT4+iJE4Q==",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
|
|
|
@ -16,6 +16,6 @@
|
|||
},
|
||||
"homepage": "https://github.com/oblomov-dev/abap2UI5#readme",
|
||||
"devDependencies": {
|
||||
"@abaplint/cli": "^2.95.47"
|
||||
"@abaplint/cli": "^2.95.48"
|
||||
}
|
||||
}
|
||||
|
|
|
@ -124,7 +124,7 @@ CLASS z2ui5_cl_app_demo_07 IMPLEMENTATION.
|
|||
ENDIF.
|
||||
|
||||
|
||||
DATA(popup) = client->factory_view( 'POPUP_DESCR'
|
||||
client->factory_view( 'POPUP_DESCR'
|
||||
)->dialog(
|
||||
title = 'Edit Description'
|
||||
icon = 'sap-icon://edit'
|
||||
|
|
|
@ -98,7 +98,7 @@ CLASS Z2UI5_CL_APP_DEMO_11 IMPLEMENTATION.
|
|||
press = client->_event( 'BUTTON_ADD' )
|
||||
)->button(
|
||||
icon = 'sap-icon://edit'
|
||||
text = SWITCH #( check_editable_active WHEN abap_true THEN 'display' ELSE 'edit' )
|
||||
text = SWITCH #( check_editable_active WHEN abap_true THEN |display| ELSE |edit| )
|
||||
press = client->_event( 'BUTTON_EDIT' )
|
||||
)->get_parent( )->get_parent( ).
|
||||
|
||||
|
|
|
@ -200,7 +200,7 @@ CLASS Z2UI5_CL_APP_DEMO_13 IMPLEMENTATION.
|
|||
|
||||
grid->scroll_container( '75%'
|
||||
)->code_editor(
|
||||
type = COND #( WHEN ms_import-segment_key = 'csv' THEN 'plain_text' ELSE ms_import-segment_key )
|
||||
type = COND #( WHEN ms_import-segment_key = 'csv' THEN |plain_text| ELSE ms_import-segment_key )
|
||||
value = client->_bind( ms_import-editor )
|
||||
editable = abap_true ).
|
||||
|
||||
|
@ -348,7 +348,7 @@ CLASS Z2UI5_CL_APP_DEMO_13 IMPLEMENTATION.
|
|||
|
||||
grid->scroll_container( '75%'
|
||||
)->code_editor(
|
||||
type = COND #( WHEN ms_export-segment_key = 'csv' THEN 'plain_text' ELSE ms_import-segment_key )
|
||||
type = COND #( WHEN ms_export-segment_key = 'csv' THEN |plain_text| ELSE ms_import-segment_key )
|
||||
value = client->_bind( ms_export-editor )
|
||||
editable = abap_false ).
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ CLASS z2ui5_cl_app_demo_18 IMPLEMENTATION.
|
|||
ENDIF.
|
||||
|
||||
|
||||
DATA(popup) = client->factory_view( 'POPUP_DESCR'
|
||||
client->factory_view( 'POPUP_DESCR'
|
||||
)->dialog(
|
||||
title = 'Edit Description'
|
||||
icon = 'sap-icon://edit'
|
||||
|
|
Loading…
Reference in New Issue
Block a user