fix namespaces (#1415)

This commit is contained in:
oblomov-dev 2024-09-11 15:34:46 +02:00 committed by GitHub
parent 5c4e135db9
commit 83fcc9604f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 13 additions and 25 deletions

View File

@ -55,10 +55,9 @@ CLASS z2ui5_cl_core_http_get2 IMPLEMENTATION.
METHOD get_default_t_param. METHOD get_default_t_param.
result = VALUE #( result = VALUE #(
( n = `TITLE` v = `abap2UI5` ) ( n = `TITLE` v = `abap2UI5` )
( n = `BODY_CLASS` v = `sapUiBody sapUiSizeCompact` ) ( n = `BODY_CLASS` v = `sapUiBody sapUiSizeCompact` )
( n = `CONTENT_SECURITY_POLICY` v = get_default_security_policy( ) ) ( n = `CONTENT_SECURITY_POLICY` v = get_default_security_policy( ) )
( n = `JSON_MODEL_LIMIT` v = `100` )
). ).
LOOP AT ms_request-t_param REFERENCE INTO DATA(lr_input). LOOP AT ms_request-t_param REFERENCE INTO DATA(lr_input).
@ -148,13 +147,12 @@ CLASS z2ui5_cl_core_http_get2 IMPLEMENTATION.
| <div data-sap-ui-component data-height="100%" data-id="container" ></div> \n| && | <div data-sap-ui-component data-height="100%" data-id="container" ></div> \n| &&
|<abc/> \n|. |<abc/> \n|.
DATA(lv_add_js) = get_js_cc_startup( ) && ms_request-custom_js. DATA(lv_add_js) = get_js_cc_startup( ) && ms_request-add_js.
mv_response = mv_response && mv_response = mv_response &&
| <script> sap.z2ui5 = sap.z2ui5 \|\| \{\} ; if ( typeof z2ui5 == "undefined" ) \{ var z2ui5 = \{\}; \}; \n| && | <script> sap.z2ui5 = sap.z2ui5 \|\| \{\} ; if ( typeof z2ui5 == "undefined" ) \{ var z2ui5 = \{\}; \}; \n| &&
| { get_js( ) } \n| && | { get_js( ) } \n| &&
| { lv_add_js } \n| && | { lv_add_js } \n|.
| sap.z2ui5.JSON_MODEL_LIMIT = { lt_param[ n = 'JSON_MODEL_LIMIT' ]-v };|.
mv_response = mv_response && z2ui5_cl_cc_debug_tool=>get_js( ) && `</script><abc/></body></html>`. mv_response = mv_response && z2ui5_cl_cc_debug_tool=>get_js( ) && `</script><abc/></body></html>`.

View File

@ -24,7 +24,6 @@ CLASS z2ui5_cl_cc_focus IMPLEMENTATION.
` "sap/ui/core/Control",` && |\n| && ` "sap/ui/core/Control",` && |\n| &&
`], (Control) => {` && |\n| && `], (Control) => {` && |\n| &&
` "use strict";` && |\n| && ` "use strict";` && |\n| &&
|\n| &&
` return Control.extend("z2ui5.Focus", {` && |\n| && ` return Control.extend("z2ui5.Focus", {` && |\n| &&
` metadata: {` && |\n| && ` metadata: {` && |\n| &&
` properties: {` && |\n| && ` properties: {` && |\n| &&
@ -34,34 +33,25 @@ CLASS z2ui5_cl_cc_focus IMPLEMENTATION.
` selectionEnd: { type: "string", defaultValue: "0" },` && |\n| && ` selectionEnd: { type: "string", defaultValue: "0" },` && |\n| &&
` }` && |\n| && ` }` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
|\n| &&
` init() {` && |\n| && ` init() {` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` setFocusId(val) {` && |\n| && ` setFocusId(val) {` && |\n| &&
` // if ( sap.z2ui5.oView ){ ` && |\n| && ` try{ ` && |\n| &&
` try{ this.setProperty("focusId", val); ` && |\n| && ` this.setProperty("focusId", val); ` && |\n| &&
` var oElement = sap.z2ui5.oView.byId(val);` && |\n| && ` var oElement = sap.z2ui5.oView.byId(val);` && |\n| &&
` var oFocus = oElement.getFocusInfo();` && |\n| && ` var oFocus = oElement.getFocusInfo();` && |\n| &&
` // oFocus.selectionStart = parseInt(oControl.getProperty("selectionStart"));` && |\n| &&
` // oFocus.selectionEnd = parseInt(oControl.getProperty("selectionEnd"));` && |\n| &&
` oElement.applyFocusInfo(oFocus); } catch (e) {}` && |\n| && ` oElement.applyFocusInfo(oFocus); } catch (e) {}` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
|\n| &&
` renderer(oRm, oControl) {` && |\n| && ` renderer(oRm, oControl) {` && |\n| &&
|\n| &&
` if (!oControl.getProperty("setUpdate")){ return; }` && |\n| && ` if (!oControl.getProperty("setUpdate")){ return; }` && |\n| &&
` oControl.setProperty("setUpdate", false);` && |\n| && ` oControl.setProperty("setUpdate", false);` && |\n| &&
|\n| &&
` setTimeout((oControl) => {` && |\n| && ` setTimeout((oControl) => {` && |\n| &&
|\n| &&
` var oElement = sap.z2ui5.oView.byId(oControl.getProperty("focusId"));` && |\n| && ` var oElement = sap.z2ui5.oView.byId(oControl.getProperty("focusId"));` && |\n| &&
` var oFocus = oElement.getFocusInfo();` && |\n| && ` var oFocus = oElement.getFocusInfo();` && |\n| &&
` oFocus.selectionStart = parseInt(oControl.getProperty("selectionStart"));` && |\n| && ` oFocus.selectionStart = parseInt(oControl.getProperty("selectionStart"));` && |\n| &&
` oFocus.selectionEnd = parseInt(oControl.getProperty("selectionEnd"));` && |\n| && ` oFocus.selectionEnd = parseInt(oControl.getProperty("selectionEnd"));` && |\n| &&
` oElement.applyFocusInfo(oFocus);` && |\n| && ` oElement.applyFocusInfo(oFocus);` && |\n| &&
|\n| &&
` }, 100, oControl);` && |\n| && ` }, 100, oControl);` && |\n| &&
|\n| &&
` }` && |\n| && ` }` && |\n| &&
` });` && |\n| && ` });` && |\n| &&
`}); }`. `}); }`.

View File

@ -9697,9 +9697,9 @@ CLASS z2ui5_cl_xml_view IMPLEMENTATION.
( n = `table` v = `sap.ui.table` ) ( n = `table` v = `sap.ui.table` )
( n = `template` v = `http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1` ) ( n = `template` v = `http://schemas.sap.com/sapui5/extension/sap.ui.core.template/1` )
( n = `customData` v = `http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1` ) ( n = `customData` v = `http://schemas.sap.com/sapui5/extension/sap.ui.core.CustomData/1` )
( n = `xmlns:f` v = `sap.f` ) ( n = `f` v = `sap.f` )
( n = `xmlns:columnmenu` v = `sap.m.table.columnmenu` ) ( n = `columnmenu` v = `sap.m.table.columnmenu` )
( n = `xmlns:card` v = `sap.f.cards` ) ( n = `card` v = `sap.f.cards` )
( n = `form` v = `sap.ui.layout.form` ) ( n = `form` v = `sap.ui.layout.form` )
( n = `editor` v = `sap.ui.codeeditor` ) ( n = `editor` v = `sap.ui.codeeditor` )
( n = `mchart` v = `sap.suite.ui.microchart` ) ( n = `mchart` v = `sap.suite.ui.microchart` )

View File

@ -18,9 +18,9 @@ INTERFACE z2ui5_if_types
TYPES: TYPES:
BEGIN OF ty_s_http_request_get2, BEGIN OF ty_s_http_request_get2,
t_option TYPE ty_t_name_value, t_option TYPE ty_t_name_value,
t_param TYPE ty_t_name_value, t_param TYPE ty_t_name_value,
custom_js TYPE string, add_js TYPE string,
END OF ty_s_http_request_get2. END OF ty_s_http_request_get2.
TYPES: TYPES: