* footer namespace f

* footer added ns
This commit is contained in:
oblomov 2023-05-31 10:39:27 +02:00
parent f613fc6c3c
commit 2e62a18b05

View File

@ -58,6 +58,7 @@ CLASS z2ui5_cl_xml_view DEFINITION
METHODS Dynamic_Page METHODS Dynamic_Page
IMPORTING IMPORTING
headerExpanded TYPE clike OPTIONAL headerExpanded TYPE clike OPTIONAL
showFooter TYPE clike OPTIONAL
headerPinned TYPE clike OPTIONAL headerPinned TYPE clike OPTIONAL
toggleHeaderOnTitleClick TYPE clike OPTIONAL toggleHeaderOnTitleClick TYPE clike OPTIONAL
RETURNING RETURNING
@ -127,7 +128,7 @@ CLASS z2ui5_cl_xml_view DEFINITION
width TYPE clike OPTIONAL width TYPE clike OPTIONAL
selectionchange TYPE clike OPTIONAL selectionchange TYPE clike OPTIONAL
alternateRowColors TYPE clike OPTIONAL alternateRowColors TYPE clike OPTIONAL
autoPopinMode TYPE clike OPTIONAL autoPopinMode TYPE clike OPTIONAL
PREFERRED PARAMETER items PREFERRED PARAMETER items
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -143,6 +144,8 @@ CLASS z2ui5_cl_xml_view DEFINITION
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
METHODS footer METHODS footer
IMPORTING
ns TYPE string OPTIONAL
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -206,8 +209,8 @@ CLASS z2ui5_cl_xml_view DEFINITION
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
METHODS header METHODS header
importing IMPORTING
ns type clike default `f` ns TYPE clike DEFAULT `f`
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -298,19 +301,19 @@ CLASS z2ui5_cl_xml_view DEFINITION
METHODS multi_input METHODS multi_input
IMPORTING IMPORTING
showclearicon TYPE clike OPTIONAL showclearicon TYPE clike OPTIONAL
showValueHelp TYPE clike OPTIONAL showValueHelp TYPE clike OPTIONAL
suggestionitems TYPE clike OPTIONAL suggestionitems TYPE clike OPTIONAL
tokenUpdate TYPE clike OPTIONAL tokenUpdate TYPE clike OPTIONAL
width TYPE clike OPTIONAL width TYPE clike OPTIONAL
id TYPE clike OPTIONAL id TYPE clike OPTIONAL
value TYPE clike OPTIONAL value TYPE clike OPTIONAL
tokens TYPE clike OPTIONAL tokens TYPE clike OPTIONAL
submit TYPE clike OPTIONAL submit TYPE clike OPTIONAL
valueHelpRequest TYPE clike OPTIONAL valueHelpRequest TYPE clike OPTIONAL
enabled TYPE clike OPTIONAL enabled TYPE clike OPTIONAL
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
METHODS tokens METHODS tokens
RETURNING RETURNING
@ -343,7 +346,7 @@ CLASS z2ui5_cl_xml_view DEFINITION
showvaluehelp TYPE clike OPTIONAL showvaluehelp TYPE clike OPTIONAL
valuehelprequest TYPE clike OPTIONAL valuehelprequest TYPE clike OPTIONAL
class TYPE clike OPTIONAL class TYPE clike OPTIONAL
visible TYPE clike OPTIONAL visible TYPE clike OPTIONAL
PREFERRED PARAMETER value PREFERRED PARAMETER value
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -392,9 +395,9 @@ CLASS z2ui5_cl_xml_view DEFINITION
width TYPE clike OPTIONAL width TYPE clike OPTIONAL
minScreenWidth TYPE clike OPTIONAL minScreenWidth TYPE clike OPTIONAL
demandPopin TYPE clike OPTIONAL demandPopin TYPE clike OPTIONAL
PREFERRED PARAMETER width PREFERRED PARAMETER width
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
METHODS items METHODS items
RETURNING RETURNING
@ -564,12 +567,12 @@ CLASS z2ui5_cl_xml_view DEFINITION
METHODS search_field METHODS search_field
IMPORTING IMPORTING
search TYPE clike OPTIONAL search TYPE clike OPTIONAL
width TYPE clike OPTIONAL width TYPE clike OPTIONAL
value TYPE clike OPTIONAL value TYPE clike OPTIONAL
id TYPE clike OPTIONAL id TYPE clike OPTIONAL
change TYPE clike OPTIONAL change TYPE clike OPTIONAL
liveChange TYPE clike OPTIONAL liveChange TYPE clike OPTIONAL
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -609,11 +612,11 @@ CLASS z2ui5_cl_xml_view DEFINITION
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
methods panel METHODS panel
importing IMPORTING
expandable type clike OPTIONAL expandable TYPE clike OPTIONAL
expanded type clike OPTIONAL expanded TYPE clike OPTIONAL
headertext type clike optional headertext TYPE clike OPTIONAL
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -624,14 +627,14 @@ CLASS z2ui5_cl_xml_view DEFINITION
class TYPE clike OPTIONAL class TYPE clike OPTIONAL
PREFERRED PARAMETER class PREFERRED PARAMETER class
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
METHODS hbox METHODS hbox
IMPORTING IMPORTING
class TYPE clike OPTIONAL class TYPE clike OPTIONAL
justifycontent TYPE clike OPTIONAL justifycontent TYPE clike OPTIONAL
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
METHODS scroll_container METHODS scroll_container
IMPORTING IMPORTING
@ -673,7 +676,7 @@ CLASS z2ui5_cl_xml_view DEFINITION
ns TYPE clike OPTIONAL ns TYPE clike OPTIONAL
text TYPE clike OPTIONAL text TYPE clike OPTIONAL
wrapping TYPE clike OPTIONAL wrapping TYPE clike OPTIONAL
level type clike optional level TYPE clike OPTIONAL
PREFERRED PARAMETER text PREFERRED PARAMETER text
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -719,11 +722,11 @@ CLASS z2ui5_cl_xml_view DEFINITION
IMPORTING IMPORTING
text TYPE clike OPTIONAL text TYPE clike OPTIONAL
icon TYPE clike OPTIONAL icon TYPE clike OPTIONAL
buttonmode type clike optional buttonmode TYPE clike OPTIONAL
type TYPE clike OPTIONAL type TYPE clike OPTIONAL
enabled TYPE clike OPTIONAL enabled TYPE clike OPTIONAL
tooltip TYPE clike OPTIONAl tooltip TYPE clike OPTIONAL
defaultaction type clike optional defaultaction TYPE clike OPTIONAL
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -744,8 +747,8 @@ CLASS z2ui5_cl_xml_view DEFINITION
METHODS label METHODS label
IMPORTING IMPORTING
text TYPE clike OPTIONAL text TYPE clike OPTIONAL
labelfor TYPE clike OPTIONAL labelfor TYPE clike OPTIONAL
PREFERRED PARAMETER text PREFERRED PARAMETER text
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
@ -1002,7 +1005,7 @@ CLASS z2ui5_cl_xml_view DEFINITION
RETURNING RETURNING
VALUE(result) TYPE REF TO z2ui5_cl_xml_view. VALUE(result) TYPE REF TO z2ui5_cl_xml_view.
class-METHODS cc_file_uploader_get_js CLASS-METHODS cc_file_uploader_get_js
RETURNING RETURNING
VALUE(result) TYPE string. VALUE(result) TYPE string.
@ -1017,7 +1020,7 @@ ENDCLASS.
CLASS Z2UI5_CL_XML_VIEW IMPLEMENTATION. CLASS z2ui5_cl_xml_view IMPLEMENTATION.
METHOD actions. METHOD actions.
@ -1139,112 +1142,112 @@ CLASS Z2UI5_CL_XML_VIEW IMPLEMENTATION.
METHOD cc_file_uploader_get_js. METHOD cc_file_uploader_get_js.
result = ` jQuery.sap.declare("z2ui5.FileUploader");` && |\n| && result = ` jQuery.sap.declare("z2ui5.FileUploader");` && |\n| &&
|\n| && |\n| &&
` sap.ui.define([` && |\n| && ` sap.ui.define([` && |\n| &&
` "sap/ui/core/Control",` && |\n| && ` "sap/ui/core/Control",` && |\n| &&
` "sap/m/Button",` && |\n| && ` "sap/m/Button",` && |\n| &&
` "sap/ui/unified/FileUploader"` && |\n| && ` "sap/ui/unified/FileUploader"` && |\n| &&
` ], function (Control, Button, FileUploader) {` && |\n| && ` ], function (Control, Button, FileUploader) {` && |\n| &&
` "use strict";` && |\n| && ` "use strict";` && |\n| &&
|\n| && |\n| &&
` return Control.extend("z2ui5.FileUploader", {` && |\n| && ` return Control.extend("z2ui5.FileUploader", {` && |\n| &&
|\n| && |\n| &&
` metadata: {` && |\n| && ` metadata: {` && |\n| &&
` properties: {` && |\n| && ` properties: {` && |\n| &&
` value: {` && |\n| && ` value: {` && |\n| &&
` type: "string",` && |\n| && ` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| && ` defaultValue: ""` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` path: {` && |\n| && ` path: {` && |\n| &&
` type: "string",` && |\n| && ` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| && ` defaultValue: ""` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` tooltip: {` && |\n| && ` tooltip: {` && |\n| &&
` type: "string",` && |\n| && ` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| && ` defaultValue: ""` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` fileType: {` && |\n| && ` fileType: {` && |\n| &&
` type: "string",` && |\n| && ` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| && ` defaultValue: ""` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` placeholder: {` && |\n| && ` placeholder: {` && |\n| &&
` type: "string",` && |\n| && ` type: "string",` && |\n| &&
` defaultValue: ""` && |\n| && ` defaultValue: ""` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` buttonText: {` && |\n| && ` buttonText: {` && |\n| &&
` type: "string",` && |\n| && ` type: "string",` && |\n| &&
` defaultValue: "Upload"` && |\n| && ` defaultValue: "Upload"` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` enabled: {` && |\n| && ` enabled: {` && |\n| &&
` type: "boolean",` && |\n| && ` type: "boolean",` && |\n| &&
` defaultValue: true` && |\n| && ` defaultValue: true` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` multiple: {` && |\n| && ` multiple: {` && |\n| &&
` type: "boolean",` && |\n| && ` type: "boolean",` && |\n| &&
` defaultValue: false` && |\n| && ` defaultValue: false` && |\n| &&
` }` && |\n| && ` }` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
|\n| && |\n| &&
|\n| && |\n| &&
` aggregations: {` && |\n| && ` aggregations: {` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` events: {` && |\n| && ` events: {` && |\n| &&
` "upload": {` && |\n| && ` "upload": {` && |\n| &&
` allowPreventDefault: true,` && |\n| && ` allowPreventDefault: true,` && |\n| &&
` parameters: {}` && |\n| && ` parameters: {}` && |\n| &&
` }` && |\n| && ` }` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
` renderer: null` && |\n| && ` renderer: null` && |\n| &&
` },` && |\n| && ` },` && |\n| &&
|\n| && |\n| &&
` renderer: function (oRm, oControl) {` && |\n| && ` renderer: function (oRm, oControl) {` && |\n| &&
|\n| && |\n| &&
` oControl.oUploadButton = new Button({` && |\n| && ` oControl.oUploadButton = new Button({` && |\n| &&
` text: oControl.getProperty("buttonText"),` && |\n| && ` text: oControl.getProperty("buttonText"),` && |\n| &&
` enabled: oControl.getProperty("path") !== "",` && |\n| && ` enabled: oControl.getProperty("path") !== "",` && |\n| &&
` press: function (oEvent) {` && |\n| && ` press: function (oEvent) {` && |\n| &&
|\n| && |\n| &&
` this.setProperty("path", this.oFileUploader.getProperty("value"));` && |\n| && ` this.setProperty("path", this.oFileUploader.getProperty("value"));` && |\n| &&
|\n| && |\n| &&
` var file = this.oFileUploader.oFileUpload.files[0];` && |\n| && ` var file = this.oFileUploader.oFileUpload.files[0];` && |\n| &&
` var reader = new FileReader();` && |\n| && ` var reader = new FileReader();` && |\n| &&
|\n| && |\n| &&
` reader.onload = function (evt) {` && |\n| && ` reader.onload = function (evt) {` && |\n| &&
` var vContent = evt.currentTarget.result;` && |\n| && ` var vContent = evt.currentTarget.result;` && |\n| &&
` this.setProperty("value", vContent);` && |\n| && ` this.setProperty("value", vContent);` && |\n| &&
` this.fireUpload();` && |\n| && ` this.fireUpload();` && |\n| &&
` //this.getView().byId('picture' ).getDomRef().src = vContent;` && |\n| && ` //this.getView().byId('picture' ).getDomRef().src = vContent;` && |\n| &&
` }.bind(this)` && |\n| && ` }.bind(this)` && |\n| &&
|\n| && |\n| &&
` reader.readAsDataURL(file);` && |\n| && ` reader.readAsDataURL(file);` && |\n| &&
` }.bind(oControl)` && |\n| && ` }.bind(oControl)` && |\n| &&
` });` && |\n| && ` });` && |\n| &&
|\n| && |\n| &&
` oControl.oFileUploader = new FileUploader({` && |\n| && ` oControl.oFileUploader = new FileUploader({` && |\n| &&
` icon: "sap-icon://browse-folder",` && |\n| && ` icon: "sap-icon://browse-folder",` && |\n| &&
` iconOnly: true,` && |\n| && ` iconOnly: true,` && |\n| &&
` value: oControl.getProperty("path"),` && |\n| && ` value: oControl.getProperty("path"),` && |\n| &&
` placeholder: oControl.getProperty("placeholder"),` && |\n| && ` placeholder: oControl.getProperty("placeholder"),` && |\n| &&
` change: function (oEvent) {` && |\n| && ` change: function (oEvent) {` && |\n| &&
` var value = oEvent.getSource().getProperty("value");` && |\n| && ` var value = oEvent.getSource().getProperty("value");` && |\n| &&
` this.setProperty("path", value);` && |\n| && ` this.setProperty("path", value);` && |\n| &&
` if (value) {` && |\n| && ` if (value) {` && |\n| &&
` this.oUploadButton.setEnabled();` && |\n| && ` this.oUploadButton.setEnabled();` && |\n| &&
` } else {` && |\n| && ` } else {` && |\n| &&
` this.oUploadButton.setEnabled(false);` && |\n| && ` this.oUploadButton.setEnabled(false);` && |\n| &&
` }` && |\n| && ` }` && |\n| &&
` this.oUploadButton.rerender();` && |\n| && ` this.oUploadButton.rerender();` && |\n| &&
` }.bind(oControl)` && |\n| && ` }.bind(oControl)` && |\n| &&
` });` && |\n| && ` });` && |\n| &&
|\n| && |\n| &&
` var hbox = new sap.m.HBox();` && |\n| && ` var hbox = new sap.m.HBox();` && |\n| &&
` hbox.addItem(oControl.oFileUploader);` && |\n| && ` hbox.addItem(oControl.oFileUploader);` && |\n| &&
` hbox.addItem(oControl.oUploadButton);` && |\n| && ` hbox.addItem(oControl.oUploadButton);` && |\n| &&
` oRm.renderControl(hbox);` && |\n| && ` oRm.renderControl(hbox);` && |\n| &&
` }` && |\n| && ` }` && |\n| &&
` });` && |\n| && ` });` && |\n| &&
` });`. ` });`.
ENDMETHOD. ENDMETHOD.
@ -1468,6 +1471,7 @@ CLASS Z2UI5_CL_XML_VIEW IMPLEMENTATION.
t_prop = VALUE #( t_prop = VALUE #(
( n = `headerExpanded` v = lcl_utility=>get_json_boolean( headerexpanded ) ) ( n = `headerExpanded` v = lcl_utility=>get_json_boolean( headerexpanded ) )
( n = `headerPinned` v = lcl_utility=>get_json_boolean( headerPinned ) ) ( n = `headerPinned` v = lcl_utility=>get_json_boolean( headerPinned ) )
( n = `showFooter` v = lcl_utility=>get_json_boolean( showFooter ) )
( n = `toggleHeaderOnTitleClick` v = toggleHeaderOnTitleClick ) ( n = `toggleHeaderOnTitleClick` v = toggleHeaderOnTitleClick )
) ). ) ).
@ -1591,7 +1595,9 @@ CLASS Z2UI5_CL_XML_VIEW IMPLEMENTATION.
METHOD footer. METHOD footer.
result = _generic( `footer` ). result = _generic(
ns = ns
name = `footer` ).
ENDMETHOD. ENDMETHOD.
@ -2016,7 +2022,7 @@ CLASS Z2UI5_CL_XML_VIEW IMPLEMENTATION.
ENDMETHOD. ENDMETHOD.
METHOD MENU_ITEM. METHOD menu_item.
result = me. result = me.
_generic( _generic(
@ -2236,7 +2242,7 @@ CLASS Z2UI5_CL_XML_VIEW IMPLEMENTATION.
ENDMETHOD. ENDMETHOD.
METHOD overflow_toolbar_menu_button. METHOD overflow_toolbar_menu_button.
result = _generic( result = _generic(
name = `OverflowToolbarMenuButton` name = `OverflowToolbarMenuButton`