diff --git a/src/00/z2ui5_cl_app_demo_00.clas.abap b/src/00/z2ui5_cl_app_demo_00.clas.abap index 352bc94c..fc6d7e5f 100644 --- a/src/00/z2ui5_cl_app_demo_00.clas.abap +++ b/src/00/z2ui5_cl_app_demo_00.clas.abap @@ -90,7 +90,8 @@ CLASS z2ui5_cl_app_demo_00 IMPLEMENTATION. grid->simple_form( title = 'HowTo - Extensions' layout = 'ResponsiveGridLayout' )->content( 'form' )->button( text = 'Views - Normal, Generic, XML' press = client->_event( 'z2ui5_cl_app_demo_23' ) )->button( text = 'Import UI5-XML-View' press = client->_event( 'z2ui5_cl_app_demo_31' ) - )->button( text = 'HTML, JS, CSS' press = client->_event( 'z2ui5_cl_app_demo_29' ) + )->button( text = 'HTML, JS, CSS' press = client->_event( 'z2ui5_cl_app_demo_32 ' ) + )->button( text = 'Custom Control' press = client->_event( 'z2ui5_cl_app_demo_37' ) ). grid->simple_form( title = 'HowTo - Messages' layout = 'ResponsiveGridLayout' )->content( 'form' diff --git a/src/00/z2ui5_cl_app_demo_18.clas.abap b/src/00/z2ui5_cl_app_demo_18.clas.abap index 070c9987..ced566be 100644 --- a/src/00/z2ui5_cl_app_demo_18.clas.abap +++ b/src/00/z2ui5_cl_app_demo_18.clas.abap @@ -164,7 +164,7 @@ CLASS z2ui5_cl_app_demo_18 IMPLEMENTATION. METHOD z2ui5_render_view_second. - result = z2ui5_cl_xml_view_helper=>factory( + result = z2ui5_cl_xml_view_helper=>factory( )->shell( )->page( title = 'abap2UI5 - Template' navbuttonpress = client->_event( 'BACK' ) @@ -195,7 +195,7 @@ CLASS z2ui5_cl_app_demo_18 IMPLEMENTATION. METHOD z2ui5_render_popup_input. - result = z2ui5_cl_xml_view_helper=>factory( )->dialog( + result = z2ui5_cl_xml_view_helper=>factory_popup( )->dialog( title = 'Title' icon = 'sap-icon://edit' )->content( diff --git a/src/00/z2ui5_cl_app_demo_18.clas.xml b/src/00/z2ui5_cl_app_demo_18.clas.xml index 75a1dd9d..64d0c18e 100644 --- a/src/00/z2ui5_cl_app_demo_18.clas.xml +++ b/src/00/z2ui5_cl_app_demo_18.clas.xml @@ -5,7 +5,7 @@ Z2UI5_CL_APP_DEMO_18 E - template + demo - template 1 X X diff --git a/src/00/z2ui5_cl_app_demo_23.clas.abap b/src/00/z2ui5_cl_app_demo_23.clas.abap index b23ab463..8d9059d2 100644 --- a/src/00/z2ui5_cl_app_demo_23.clas.abap +++ b/src/00/z2ui5_cl_app_demo_23.clas.abap @@ -7,7 +7,7 @@ CLASS z2ui5_cl_app_demo_23 DEFINITION PUBLIC. DATA product TYPE string. DATA quantity TYPE string. - data client type ref to z2ui5_if_client. + DATA client TYPE REF TO z2ui5_if_client. DATA: BEGIN OF app, check_initialized TYPE abap_bool, @@ -28,14 +28,13 @@ ENDCLASS. -CLASS Z2UI5_CL_APP_DEMO_23 IMPLEMENTATION. +CLASS z2ui5_cl_app_demo_23 IMPLEMENTATION. METHOD z2ui5_if_app~controller. me->client = client. app-s_get = client->get( ). - " app-view_popup = ``. IF app-check_initialized = abap_false. app-check_initialized = abap_true. @@ -82,21 +81,23 @@ CLASS Z2UI5_CL_APP_DEMO_23 IMPLEMENTATION. METHOD z2ui5_on_render_main. + DATA(lo_view) = z2ui5_cl_xml_view_helper=>factory( ). + CASE app-view_main. WHEN 'XML'. - app-s_next-xml_main = ` `. + app-s_next-xml_main = lv_xml. WHEN 'NORMAL'. - app-s_next-xml_main = z2ui5_cl_xml_view_helper=>factory( )->shell( + lo_view->shell( )->page( title = 'abap2UI5 - NORMAL NORMAL NORMAL' navbuttonpress = client->_event( 'BACK' ) @@ -144,22 +146,18 @@ CLASS Z2UI5_CL_APP_DEMO_23 IMPLEMENTATION. press = client->_event( 'GENERIC' ) )->button( text = 'XML' - press = client->_event( 'XML' ) - )->get_root( )->xml_get( ). + press = client->_event( 'XML' ) ). + app-s_next-xml_main = lo_view->get_root( )->xml_get( ). WHEN 'GENERIC'. - DATA(li_view) = z2ui5_cl_xml_view_helper=>factory( ). - - li_view->_generic( + lo_view->_generic( 'Shell' )->_generic( name = `Page` t_prop = VALUE #( ( n = `title` v = 'abap2UI5 - GENERIC GENERIC GENERIC' ) ( n = `showNavButton` v = `true` ) - ( n = `navButtonPress` v = client->_event( 'BACK' ) ) - ) - )->_generic( 'Shell' + ( n = `navButtonPress` v = client->_event( 'BACK' ) ) ) )->_generic( name = `SimpleForm` ns = `form` @@ -193,11 +191,9 @@ CLASS Z2UI5_CL_APP_DEMO_23 IMPLEMENTATION. name = `Button` t_prop = VALUE #( ( n = `text` v = `XML` ) - ( n = `press` v = client->_event( 'XML' ) ) ) - ). - - app-s_next-xml_main = li_view->get_root( )->xml_get( ). + ( n = `press` v = client->_event( 'XML' ) ) ) ). + app-s_next-xml_main = lo_view->get_root( )->xml_get( ). ENDCASE. diff --git a/src/00/z2ui5_cl_app_demo_28.clas.abap b/src/00/z2ui5_cl_app_demo_28.clas.abap index b9e78eac..8f072655 100644 --- a/src/00/z2ui5_cl_app_demo_28.clas.abap +++ b/src/00/z2ui5_cl_app_demo_28.clas.abap @@ -109,24 +109,9 @@ CLASS z2ui5_cl_app_demo_28 IMPLEMENTATION. text = 'Source_Code' target = '_blank' href = z2ui5_cl_xml_view_helper=>hlp_get_source_code_url( app = me get = client->get( ) ) )->get_parent( - )->simple_form( title = 'Chart auto refresh (2 sec)' editable = abap_true ). - DATA(point) = lo_View->flex_box( - width = '22rem' - height = '13rem' - alignitems = 'Center' - class = 'sapUiSmallMargin' - )->items( )->interact_line_chart( - selectionchanged = client->_event( 'LINE_CHANGED' ) - precedingpoint = '15' - succeddingpoint = '89' - )->points( ). - LOOP AT t_tab REFERENCE INTO DATA(lr_line). - point->interact_line_chart_point( label = lr_line->title value = CONV string( sy-tabix ) ). - ENDLOOP. - - lo_view->get_parent( )->list( + lo_view->list( headertext = 'Data auto refresh (2 sec)' items = client->_bind_one( t_tab ) )->standard_list_item( diff --git a/src/00/z2ui5_cl_app_demo_32.clas.abap b/src/00/z2ui5_cl_app_demo_32.clas.abap index 17971f2e..3ccd78c7 100644 --- a/src/00/z2ui5_cl_app_demo_32.clas.abap +++ b/src/00/z2ui5_cl_app_demo_32.clas.abap @@ -94,6 +94,29 @@ CLASS Z2UI5_CL_APP_DEMO_32 IMPLEMENTATION. METHOD z2ui5_on_render. +* app-next-xml_main = ` ` && |\n| && +* ` ` && |\n| && +* `` && +* `` && |\n| && +* `` && |\n| && +* `

This is a heading with css

` && |\n| && +* `

This is a paragraph with css.

` && |\n| && +* `

My First JavaScript

` && |\n| && +* `` && |\n| && +* ` ` && +* `` && |\n| && +* ` ` && |\n| && +* `
`. app-next-xml_main = `` && `` && |\n| && `` && |\n| && - `` && |\n| && - |\n| && `

This is a heading with css

` && |\n| && `

This is a paragraph with css.

` && |\n| && `

My First JavaScript

` && |\n| && - `` && |\n| && - `` && |\n| && - `

This is SVG

` && |\n| && - ` ` && |\n| && - ` ` && |\n| && - ` ` && |\n| && - `
X:

This is canvas

` && |\n| && - ` ` && -* ` ` && |\n| && - + `` && |\n| && + ` ` && + `` && |\n| && `` && |\n| && ` ` && |\n| && `
`. - - ENDMETHOD. ENDCLASS. diff --git a/src/00/z2ui5_cl_app_demo_32.clas.xml b/src/00/z2ui5_cl_app_demo_32.clas.xml index 56c07ae7..5be0433a 100644 --- a/src/00/z2ui5_cl_app_demo_32.clas.xml +++ b/src/00/z2ui5_cl_app_demo_32.clas.xml @@ -5,7 +5,7 @@ Z2UI5_CL_APP_DEMO_32 E - extension - html js 2 + extension - html examples 1 X X diff --git a/src/00/z2ui5_cl_app_demo_36.clas.abap b/src/00/z2ui5_cl_app_demo_36.clas.abap new file mode 100644 index 00000000..42d6fe1c --- /dev/null +++ b/src/00/z2ui5_cl_app_demo_36.clas.abap @@ -0,0 +1,197 @@ +CLASS z2ui5_cl_app_demo_36 DEFINITION PUBLIC. + + PUBLIC SECTION. + + INTERFACES z2ui5_if_app. + + data mv_value type string. + DATA product TYPE string. + DATA quantity TYPE i. + + DATA input21 TYPE string. + DATA input22 TYPE string. + DATA input41 TYPE string. + PROTECTED SECTION. + + data client TYPE REF TO z2ui5_if_client. + DATA: + BEGIN OF app, + check_initialized TYPE abap_bool, + view_main TYPE string, + view_popup TYPE string, + get TYPE z2ui5_if_client=>ty_s_get, + next TYPE z2ui5_if_client=>ty_s_next, + END OF app. + + METHODS z2ui5_on_init. + METHODS z2ui5_on_event. + METHODS z2ui5_on_render. + + PRIVATE SECTION. +ENDCLASS. + + + +CLASS Z2UI5_CL_APP_DEMO_36 IMPLEMENTATION. + + + METHOD z2ui5_if_app~controller. + + me->client = client. + app-get = client->get( ). + app-view_popup = ``. + + IF app-check_initialized = abap_false. + app-check_initialized = abap_true. + z2ui5_on_init( ). + ENDIF. + + IF app-get-event IS NOT INITIAL. + z2ui5_on_event( ). + ENDIF. + + z2ui5_on_render( ). + + client->set_next( app-next ). + CLEAR app-get. + CLEAR app-next. + + ENDMETHOD. + + + METHOD z2ui5_on_event. + + CASE app-get-event. + + WHEN 'POST'. + client->popup_message_toast( app-get-event_data ). + + WHEN 'MYCC'. + client->popup_message_toast( 'MYCC event ' && mv_value ). + + WHEN 'BACK'. + client->nav_app_leave( client->get_app( app-get-id_prev_app_stack ) ). + + ENDCASE. + + ENDMETHOD. + + + METHOD z2ui5_on_init. + + product = 'tomato'. + quantity = '500'. + app-view_main = 'VIEW_MAIN'. + input41 = 'faasdfdfsaVIp'. + + input21 = '40'. + input22 = '40'. + + mv_value = 'test'. + + ENDMETHOD. + + + METHOD z2ui5_on_render. + + app-next-xml_main = ` ` && |\n| && + ` ` && |\n| && + `` && + `` && |\n| && + `` && |\n| && + `` && |\n| && + |\n| && + `

This is a heading with css

` && |\n| && + `

This is a paragraph with css.

` && |\n| && + `

My First JavaScript

` && |\n| && + `` && |\n| && + `` && |\n| && + `

This is SVG

` && |\n| && + ` ` && |\n| && + ` ` && |\n| && + ` ` && |\n| && + `
X:

This is canvas

` && |\n| && + ` ` && +* ` ` && |\n| && + + `` && |\n| && + ` ` && |\n| && + `
`. + + + + ENDMETHOD. +ENDCLASS. diff --git a/src/00/z2ui5_cl_app_demo_36.clas.locals_imp.abap b/src/00/z2ui5_cl_app_demo_36.clas.locals_imp.abap new file mode 100644 index 00000000..03056145 --- /dev/null +++ b/src/00/z2ui5_cl_app_demo_36.clas.locals_imp.abap @@ -0,0 +1,136 @@ +*"* use this source file for the definition and implementation of +*"* local helper classes, interface definitions and type +*"* declarations +class lcl_repository DEFINITION. + +PUBLIC SECTION. + + class-METHODS get_js_barcode_lib + returning + value(result) type string. + + +endclass. + +CLASS lcl_repository IMPLEMENTATION. + + METHOD get_js_barcode_lib. + + result = `` && |\n| && + `!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable` && +`:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"obj` && +`ect"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){` && +`var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?` && +`Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var i=e.SET_A=0,a=e.SET_B=1,u=e.SET_C=2,s=(e.SHIFT=98,e.START_A=103),f=e.START_B=104,c=e.START_C=105;e.MODULO=1` && +`03,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(o(r={},s,i),o(r,f,a),o(r,c,u),r),e.SWAP={101:i,100:a,99:u},e.A_START_CHAR=String.fromCharCode(208),e.B_START_CHAR=String.fromCharCode(209),e.C_START_CHAR=String.fromCharCode(210),e.A_CHARS="[\0-_È-Ï]",e.B_CHA` && +`RS="[ -È-Ï]",e.C_CHARS="(Ï*[0-9]{2}Ï*)",e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,1001110110` && +`0,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3` && +`,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11` && +`100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111` && +`100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,1110101` && +`1110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n=200){i=t.shift()-105;var a=u.SWAP[i];voi` && +`d 0!==a?o=e.next(t,n+1,a):(r!==u.SET_A&&r!==u.SET_B||i!==u.SHIFT||(t[0]=r===u.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,n+1,r))}else i=e.correctIndex(t,r),o=e.next(t,n+1,r);var s=i*n;return{result:e.getBar(i)+o.result,checksum:s+o` && +`.checksum}}}]),e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e0?e.fontSize+e.textMargin:0)+e.marginTop+` && +`e.marginBottom}function u(t,e,n){if(n.displayValue&&ee&&(e=t[n].height);return e},e.getEncodingHeight=a,e.getBarcodePadding=u,e.calculateEncodingAttributes=function(t,e,n){for(var r=0;r=i(t);return e+String.fromCharCode(r?206:205)+u(t,r)}e.default=function(t){var e=void 0;i` && +`f(a(t).length>=2)e=r.C_START_CHAR+s(t);else{var n=o(t)>i(t);e=(n?r.A_START_CHAR:r.B_START_CHAR)+u(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},function(t,e,n){"use strict";Object.defineProp` && +`erty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n0?` && +`(n=0,o.textAlign="left"):"right"==t.textAlign?(n=e.width-1,o.textAlign="right"):(n=e.width/2,o.textAlign="center"),o.fillText(e.text,n,r))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restor` && +`eCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n0&&(this.drawRect(a-e.width*i,r,e` && +`.width*i,e.height,t),i=0);i>0&&this.drawRect(a-e.width*(i-1),r,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var r,o,i=this.document.createElementNS(s,"text");e.displayValue&&(i.setAttribute("style","font:"+e.fontOptions+" "+e.fo` && +`ntSize+"px "+e.font),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(r=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(r=n.width-1,i.setAttribute("text-anchor"` && +`,"end")):(r=n.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",r),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(n.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttrib` && +`ute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",s),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(` && +`0,0)")}},{key:"createGroup",value:function(t,e,n){var r=this.document.createElementNS(s,"g");return r.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"` && +`+e.lineColor+";")}},{key:"drawRect",value:function(t,e,n,r,o){var i=this.document.createElementNS(s,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",n),i.setAttribute("height",r),o.appendChild(i),i}}]),t}();e.defaul` && +`t=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n + + + + + Z2UI5_CL_APP_DEMO_36 + E + extension - html js 2 + 1 + X + X + X + + + + diff --git a/src/00/z2ui5_cl_app_demo_37.clas.abap b/src/00/z2ui5_cl_app_demo_37.clas.abap new file mode 100644 index 00000000..e10f39b8 --- /dev/null +++ b/src/00/z2ui5_cl_app_demo_37.clas.abap @@ -0,0 +1,197 @@ +CLASS z2ui5_cl_app_demo_37 DEFINITION PUBLIC. + + PUBLIC SECTION. + + INTERFACES z2ui5_if_app. + + data mv_value type string. + DATA product TYPE string. + DATA quantity TYPE i. + + DATA input21 TYPE string. + DATA input22 TYPE string. + DATA input41 TYPE string. + PROTECTED SECTION. + + data client TYPE REF TO z2ui5_if_client. + DATA: + BEGIN OF app, + check_initialized TYPE abap_bool, + view_main TYPE string, + view_popup TYPE string, + get TYPE z2ui5_if_client=>ty_s_get, + next TYPE z2ui5_if_client=>ty_s_next, + END OF app. + + METHODS z2ui5_on_init. + METHODS z2ui5_on_event. + METHODS z2ui5_on_render. + + PRIVATE SECTION. +ENDCLASS. + + + +CLASS Z2UI5_CL_APP_DEMO_37 IMPLEMENTATION. + + + METHOD z2ui5_if_app~controller. + + me->client = client. + app-get = client->get( ). + app-view_popup = ``. + + IF app-check_initialized = abap_false. + app-check_initialized = abap_true. + z2ui5_on_init( ). + ENDIF. + + IF app-get-event IS NOT INITIAL. + z2ui5_on_event( ). + ENDIF. + + z2ui5_on_render( ). + + client->set_next( app-next ). + CLEAR app-get. + CLEAR app-next. + + ENDMETHOD. + + + METHOD z2ui5_on_event. + + CASE app-get-event. + + WHEN 'POST'. + client->popup_message_toast( app-get-event_data ). + + WHEN 'MYCC'. + client->popup_message_toast( 'MYCC event ' && mv_value ). + + WHEN 'BACK'. + client->nav_app_leave( client->get_app( app-get-id_prev_app_stack ) ). + + ENDCASE. + + ENDMETHOD. + + + METHOD z2ui5_on_init. + + product = 'tomato'. + quantity = '500'. + app-view_main = 'VIEW_MAIN'. + input41 = 'faasdfdfsaVIp'. + + input21 = '40'. + input22 = '40'. + + mv_value = 'test'. + + ENDMETHOD. + + + METHOD z2ui5_on_render. + + app-next-xml_main = ` ` && |\n| && + ` ` && |\n| && + `` && + `` && |\n| && + `` && |\n| && + `` && |\n| && + |\n| && + `

This is a heading with css

` && |\n| && + `

This is a paragraph with css.

` && |\n| && + `

My First JavaScript

` && |\n| && + `` && |\n| && + `` && |\n| && + `

This is SVG

` && |\n| && + ` ` && |\n| && + ` ` && |\n| && + ` ` && |\n| && + `
X:

This is canvas

` && |\n| && + ` ` && +* ` ` && |\n| && + + `` && |\n| && + ` ` && |\n| && + `
`. + + + + ENDMETHOD. +ENDCLASS. diff --git a/src/00/z2ui5_cl_app_demo_37.clas.locals_imp.abap b/src/00/z2ui5_cl_app_demo_37.clas.locals_imp.abap new file mode 100644 index 00000000..03056145 --- /dev/null +++ b/src/00/z2ui5_cl_app_demo_37.clas.locals_imp.abap @@ -0,0 +1,136 @@ +*"* use this source file for the definition and implementation of +*"* local helper classes, interface definitions and type +*"* declarations +class lcl_repository DEFINITION. + +PUBLIC SECTION. + + class-METHODS get_js_barcode_lib + returning + value(result) type string. + + +endclass. + +CLASS lcl_repository IMPLEMENTATION. + + METHOD get_js_barcode_lib. + + result = `` && |\n| && + `!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{enumerable` && +`:!0,get:r})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"obj` && +`ect"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(r,o,function(e){return t[e]}.bind(null,o));return r},n.n=function(t){` && +`var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=7)}([function(t,e,n){"use strict";var r;function o(t,e,n){return e in t?` && +`Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}Object.defineProperty(e,"__esModule",{value:!0});var i=e.SET_A=0,a=e.SET_B=1,u=e.SET_C=2,s=(e.SHIFT=98,e.START_A=103),f=e.START_B=104,c=e.START_C=105;e.MODULO=1` && +`03,e.STOP=106,e.FNC1=207,e.SET_BY_CODE=(o(r={},s,i),o(r,f,a),o(r,c,u),r),e.SWAP={101:i,100:a,99:u},e.A_START_CHAR=String.fromCharCode(208),e.B_START_CHAR=String.fromCharCode(209),e.C_START_CHAR=String.fromCharCode(210),e.A_CHARS="[\0-_È-Ï]",e.B_CHA` && +`RS="[ -È-Ï]",e.C_CHARS="(Ï*[0-9]{2}Ï*)",e.BARS=[11011001100,11001101100,11001100110,10010011e3,10010001100,10001001100,10011001e3,10011000100,10001100100,11001001e3,11001000100,11000100100,10110011100,10011011100,10011001110,10111001100,1001110110` && +`0,10011100110,11001110010,11001011100,11001001110,11011100100,11001110100,11101101110,11101001100,11100101100,11100100110,11101100100,11100110100,11100110010,11011011e3,11011000110,11000110110,10100011e3,10001011e3,10001000110,10110001e3,10001101e3` && +`,10001100010,11010001e3,11000101e3,11000100010,10110111e3,10110001110,10001101110,10111011e3,10111000110,10001110110,11101110110,11010001110,11000101110,11011101e3,11011100010,11011101110,11101011e3,11101000110,11100010110,11101101e3,11101100010,11` && +`100011010,11101111010,11001000010,11110001010,1010011e4,10100001100,1001011e4,10010000110,10000101100,10000100110,1011001e4,10110000100,1001101e4,10011000010,10000110100,10000110010,11000010010,1100101e4,11110111010,11000010100,10001111010,10100111` && +`100,10010111100,10010011110,10111100100,10011110100,10011110010,11110100100,11110010100,11110010010,11011011110,11011110110,11110110110,10101111e3,10100011110,10001011110,10111101e3,10111100010,11110101e3,11110100010,10111011110,10111101110,1110101` && +`1110,11110101110,11010000100,1101001e4,11010011100,1100011101011]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n=200){i=t.shift()-105;var a=u.SWAP[i];voi` && +`d 0!==a?o=e.next(t,n+1,a):(r!==u.SET_A&&r!==u.SET_B||i!==u.SHIFT||(t[0]=r===u.SET_A?t[0]>95?t[0]-96:t[0]:t[0]<32?t[0]+96:t[0]),o=e.next(t,n+1,r))}else i=e.correctIndex(t,r),o=e.next(t,n+1,r);var s=i*n;return{result:e.getBar(i)+o.result,checksum:s+o` && +`.checksum}}}]),e}(a.default);e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=Object.assign||function(t){for(var e=1;e0?e.fontSize+e.textMargin:0)+e.marginTop+` && +`e.marginBottom}function u(t,e,n){if(n.displayValue&&ee&&(e=t[n].height);return e},e.getEncodingHeight=a,e.getBarcodePadding=u,e.calculateEncodingAttributes=function(t,e,n){for(var r=0;r=i(t);return e+String.fromCharCode(r?206:205)+u(t,r)}e.default=function(t){var e=void 0;i` && +`f(a(t).length>=2)e=r.C_START_CHAR+s(t);else{var n=o(t)>i(t);e=(n?r.A_START_CHAR:r.B_START_CHAR)+u(t,n)}return e.replace(/[\xCD\xCE]([^])[\xCD\xCE]/,(function(t,e){return String.fromCharCode(203)+e}))}},function(t,e,n){"use strict";Object.defineProp` && +`erty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n0?` && +`(n=0,o.textAlign="left"):"right"==t.textAlign?(n=e.width-1,o.textAlign="right"):(n=e.width/2,o.textAlign="center"),o.fillText(e.text,n,r))}},{key:"moveCanvasDrawing",value:function(t){this.canvas.getContext("2d").translate(t.width,0)}},{key:"restor` && +`eCanvas",value:function(){this.canvas.getContext("2d").restore()}}]),t}();e.default=s},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(){function t(t,e){for(var n=0;n0&&(this.drawRect(a-e.width*i,r,e` && +`.width*i,e.height,t),i=0);i>0&&this.drawRect(a-e.width*(i-1),r,e.width*i,e.height,t)}},{key:"drawSVGText",value:function(t,e,n){var r,o,i=this.document.createElementNS(s,"text");e.displayValue&&(i.setAttribute("style","font:"+e.fontOptions+" "+e.fo` && +`ntSize+"px "+e.font),o="top"==e.textPosition?e.fontSize-e.textMargin:e.height+e.textMargin+e.fontSize,"left"==e.textAlign||n.barcodePadding>0?(r=0,i.setAttribute("text-anchor","start")):"right"==e.textAlign?(r=n.width-1,i.setAttribute("text-anchor"` && +`,"end")):(r=n.width/2,i.setAttribute("text-anchor","middle")),i.setAttribute("x",r),i.setAttribute("y",o),i.appendChild(this.document.createTextNode(n.text)),t.appendChild(i))}},{key:"setSvgAttributes",value:function(t,e){var n=this.svg;n.setAttrib` && +`ute("width",t+"px"),n.setAttribute("height",e+"px"),n.setAttribute("x","0px"),n.setAttribute("y","0px"),n.setAttribute("viewBox","0 0 "+t+" "+e),n.setAttribute("xmlns",s),n.setAttribute("version","1.1"),n.setAttribute("style","transform: translate(` && +`0,0)")}},{key:"createGroup",value:function(t,e,n){var r=this.document.createElementNS(s,"g");return r.setAttribute("transform","translate("+t+", "+e+")"),n.appendChild(r),r}},{key:"setGroupOptions",value:function(t,e){t.setAttribute("style","fill:"` && +`+e.lineColor+";")}},{key:"drawRect",value:function(t,e,n,r,o){var i=this.document.createElementNS(s,"rect");return i.setAttribute("x",t),i.setAttribute("y",e),i.setAttribute("width",n),i.setAttribute("height",r),o.appendChild(i),i}}]),t}();e.defaul` && +`t=f},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(){function t(t,e){for(var n=0;n + + + + + Z2UI5_CL_APP_DEMO_37 + E + extension - custom control + 1 + X + X + X + + + + diff --git a/src/z2ui5_cl_http_handler.clas.abap b/src/z2ui5_cl_http_handler.clas.abap index 9689b0a1..91c609a0 100644 --- a/src/z2ui5_cl_http_handler.clas.abap +++ b/src/z2ui5_cl_http_handler.clas.abap @@ -74,7 +74,6 @@ CLASS z2ui5_cl_http_handler IMPLEMENTATION. lt_config = VALUE #( ( name = `data-sap-ui-theme` value = `sap_horizon` ) ( name = `src` value = `https://sdk.openui5.org/resources/sap-ui-core.js` ) - ( name = `data-sap-ui-theme` value = `sap_horizon` ) ( name = `data-sap-ui-libs` value = `sap.m` ) ( name = `data-sap-ui-bindingSyntax` value = `complex` ) ( name = `data-sap-ui-frameOptions` value = `trusted` )