Commit Graph

269 Commits

Author SHA1 Message Date
Francisco Milán
1c3d88fa6a
Add missing parameters to method "step_input" (#1441) 2024-09-22 09:54:09 +02:00
oblomov-dev
4940a26a46
refactoring - filter functions - sticky functions (#1437)
* refactoring - filter fucntions - sticky functions

* update

* udpate

* update
2024-09-17 19:38:43 +02:00
oblomov-dev
1fba55457c
session-stickyness (#1435)
* Added Component and Session Stateful (#1433)

- Added Component support (TODO refactoring sap.z2ui5 and view handling -> instead of .placeAt use mainView of component manifest)
- Added Session Stateful support

*add the following lines to your REST handler in order to support stateful session handling*
'''abap
    if attributes-stateful-switched = abap_true.
      server->set_session_stateful( stateful = attributes-stateful-active ).
    endif.
'''

And here is an ABAP example class for testing session handling
'''abap
"! <p class="shorttext synchronized" lang="en">Session Demo</p>
class z2ui5_cl_demo_app_session definition
  public
  create public.

  public section.
    interfaces z2ui5_if_app.
    data instance_counter type i read-only.
    data check_initialized type abap_bool read-only.
    data session_is_stateful type abap_bool read-only.
    data session_text type string read-only.
  protected section.
  private section.
    methods initialize_view
      importing
        client type ref to z2ui5_if_client.
    methods on_event
      importing
        client type ref to z2ui5_if_client.

    methods set_session_stateful
      importing
        client   type ref to z2ui5_if_client
        stateful type abap_bool.
endclass.

class z2ui5_cl_demo_app_session implementation.
  method z2ui5_if_app~main.
    if check_initialized = abap_false.
      check_initialized = abap_true.
      initialize_view( client ).
    endif.

    on_event( client ).
  endmethod.

  method initialize_view.
    set_session_stateful( client = client stateful = abap_true ).

    data(view) = z2ui5_cl_xml_view=>factory( ).

    data(page) = view->shell( )->page(
      title          = `abap2UI5 - Sample: Sticky Session`
      navbuttonpress = client->_event( 'BACK' )
      shownavbutton  = xsdbool( client->get( )-s_draft-id_prev_app_stack is not initial ) ).

    data(vbox) = page->vbox( ).
    vbox->info_label( text = client->_bind( session_text ) ).

    data(hbox) = vbox->hbox( alignitems = 'Center' ).
    hbox->label( text = 'press button to increment counter in backend session' class = 'sapUiTinyMarginEnd' ).
    hbox->button(
      text  = client->_bind( instance_counter )
      press = client->_event( 'INCREMENT' )
      type = 'Emphasized' ).

    hbox = vbox->hbox( ).
    hbox->button(
      text  = 'End session'
      press = client->_event( 'END_SESSION' ) ).

    hbox->button(
      text  = 'Start session again'
      press = client->_event( 'START_SESSION' ) ).

    client->view_display( view->stringify( ) ).
  endmethod.

  method on_event.
    case client->get( )-event.
      when 'BACK'.
        client->nav_app_leave( ).
      when 'INCREMENT'.
        instance_counter = lcl_static_container=>increment( ).
        client->view_model_update( ).
      when 'END_SESSION'.
        set_session_stateful( client = client stateful = abap_false ).
      when 'START_SESSION'.
        set_session_stateful( client = client stateful = abap_true ).
    endcase.
  endmethod.

  method set_session_stateful.
    client->set_session_stateful( stateful ).
    session_is_stateful = stateful.
    if stateful = abap_true.
      session_text = 'Session ON (stateful)'.
    else.
      session_text = 'Session OFF (stateless)'.
    endif.
    client->view_model_update( ).
  endmethod.
endclass.
'''

* Update z2ui5_cl_core_http_get.clas.abap (#1434)

updated to reflect latest changes (sorry some local changes were los)

* lint fix

* lint fix

* xml fix

---------

Co-authored-by: Michael Zinnöcker <29286643+mzinnoecker@users.noreply.github.com>
2024-09-16 16:45:41 +02:00
oblomov-dev
e9d557737c
refactoring (#1431) 2024-09-15 18:37:38 +02:00
oblomov-dev
ae603290cb
Update handler (#1428)
* update handler

* update handler

* update

* lint fixes

* update

* Update src/01/02/z2ui5_cl_core_http_get.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* update

* Update src/01/02/z2ui5_cl_core_http_get.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-09-14 10:39:27 +02:00
Christian Günter
b7b464d981
Popup to select: New feature multiselect (#1427)
* popup to select: enable mutliselect

fixup

* allow preselect
2024-09-13 17:20:49 +02:00
Christian Günter
ba47b24f3a
New property title for z2ui5_cl_pop_table (#1426) 2024-09-13 11:54:11 +02:00
Francisco Milán
c83640913d
Preparation for new Demo Flexible sizing - Toolbar (#1419)
* Preparation for new Demo Flexible sizing - Toolbar

* Preparation for new Demo (2)

* Preparation for new Demo (3)

* Preparation for new Demo (4)

* Preparation for new Demo (5)
2024-09-12 09:15:33 +02:00
oblomov-dev
622c19c8b6
Refactoring (#1417)
* refactoring

* update

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update z2ui5_cl_core_http_get2.clas.abap

* lint fix

* update

* Update abaplint.jsonc
2024-09-12 00:35:07 +02:00
oblomov-dev
83fcc9604f
fix namespaces (#1415) 2024-09-11 15:34:46 +02:00
Christian Günter
430db60fdd
add class property to table (#1412) 2024-09-11 15:04:57 +02:00
oblomov-dev
fddf31e8b1
update setSizeLimit (#1398)
* update setSizeLimit

* Update src/02/z2ui5_cl_xml_view.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* update

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-09-09 20:00:41 +02:00
oblomov-dev
f01f1ef57e
update hello world (#1392)
* update hello world

* Update README.md
2024-09-08 19:18:19 +02:00
oblomov-dev
90c680c923
abaplint fixes (#1376)
* abaplint fixes

* update
2024-09-06 15:31:22 +02:00
oblomov-dev
6a6b2ad342
ws extension (#1374)
* ws extension

* update
2024-09-06 14:03:24 +02:00
oblomov-dev
05a05eb03f
fix binding with invalid dates and time (#1373)
Some checks failed
build_downport / build_downport (push) Has been cancelled
* fix binding with invalid dates and time

* update

* update
2024-09-05 10:41:19 +02:00
Francisco Milán
2ee262de29
selected_key as OPTIONAL - method segmented_button (#1370) 2024-09-05 06:57:13 +02:00
oblomov-dev
a93dd6fc16
Update abaplint.jsonc (#1367)
* Update abaplint.jsonc

* Update abaplint.jsonc

* Update abaplint.jsonc

* update

* update
2024-09-04 22:10:48 +02:00
oblomov-dev
dd465ed14d
abaplint fixes (#1365) 2024-09-04 21:41:35 +02:00
oblomov-dev
58f9a80553
Cleanup (#1362)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* cleanup

* update

* update

* update links
2024-09-04 10:20:58 +02:00
ABAP for years :)
3df6f3b3c0
Progress Indicator Property Visibility (#1359)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* Progress Indicator Property Visibility

Addes Progress Indicator Property Visibility

* Update src/02/z2ui5_cl_xml_view.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* Update src/02/z2ui5_cl_xml_view.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* renamed zqmcafw_cl_util  to z2ui5_cl_util

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
Co-authored-by: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com>
2024-09-03 09:48:54 +02:00
Francisco Milán
eb07345650
Add 4 parameters to method "header_container" (#1356)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-09-01 20:46:56 +02:00
oblomov-dev
ebca4a691a
Cleanup (#1355)
Some checks failed
build_downport / build_downport (push) Has been cancelled
* update package structure

* update name
2024-08-31 12:52:43 +02:00
oblomov-dev
4d394939d1
Data loss feature (#1354)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* Data loss protection with dirty flag (#1352)

* update data loss feature

---------

Co-authored-by: Christian Günter <christianguenter@googlemail.com>
2024-08-31 10:25:20 +02:00
Francisco Milán
59d0bed18a
Add method "tiles" (#1349)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-30 08:26:04 +02:00
Francisco Milán
2f82cf972c
Add "class" and "press" to method "feed_content" (#1346)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-28 23:29:06 +02:00
ABAP for years :)
77de686bbc
Update z2ui5_cl_xml_view.clas.abap (#1344)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* Update z2ui5_cl_xml_view.clas.abap

Added tooltip to standard_tree_item

* Update src/02/01/z2ui5_cl_xml_view.clas.abap

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-08-28 07:00:52 +02:00
oblomov
f3aa88ce7d
small_fixes_and_setup (#1343)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* small_fixes_and_setup

* update

* Update abaplint.jsonc
2024-08-27 17:11:07 +02:00
Francisco Milán
b1f245511a
Add "class" to "slide_tile" (#1342)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-27 08:02:14 +02:00
Francisco Milán
2bfccd0f74
"object_header" - Add "class" and fix "imageShape" (#1341)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-26 23:26:12 +02:00
Francisco Milán
90f7e63b4c
Add "press" and "class" to "image_content" (#1340) 2024-08-26 19:42:52 +02:00
oblomov
a8172d28ae
Refactoring core (#1334)
* fix-file-uploader

* assign obsolete to seperated repository

* update

* refactoring

* Update README.md

* Update README.md

* Update README.md
2024-08-26 16:43:03 +02:00
oblomov
a11eb7317c
small warning fixes (#1332)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-26 08:07:43 +02:00
oblomov
c70baa86f2
split custom controls (#1330)
* split custom controls

* update

* Update package.json
2024-08-26 07:15:34 +02:00
oblomov
0e7ba63842
Refactoring (#1329)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* refactoring

* update

* update

* refactoring folder

* update

* update

* update

* package description

* update

* refactoring
2024-08-25 18:24:52 +02:00
oblomov
d9ae1b2f3f
Refactoring (#1326)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* refactoring

* renaming

* Update changelog.txt
2024-08-24 17:07:25 +02:00
oblomov
4ec0ad4531
Bugfix color control (#1325)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* bugfix color control

* change hello world app package
2024-08-24 10:11:19 +02:00
oblomov
bdb985af6c
bugfixes and refactoring (#1323)
* bugfixes and refactoring

* update

* update package structure

* update

* update

* update package assignment

* update

* update

* update

* update package structure
2024-08-24 09:07:34 +02:00
abapsheep
1b167d0f47
Update (#1319)
* Update

Fix Layout
Popup to Select with Layout (first Draft)

* Update

* Update

* Update z2ui5_cl_pop_to_sel_w_layout.clas.abap

* Update z2ui5_cl_pop_to_sel_w_layout.clas.xml

* Update and rename z2ui5_cl_pop_to_sel_w_layout.clas.abap to z2ui5_cl_pop_to_sel_w_l.clas.abap

* Rename z2ui5_cl_pop_to_sel_w_layout.clas.xml to z2ui5_cl_pop_to_sel_w_l.clas.xml

* Update z2ui5_cl_pop_to_sel_w_l.clas.abap

---------

Co-authored-by: Viktor Hoffmann <Viktor.Hoffmann@swisskrono.com>
Co-authored-by: oblomov <102328295+oblomov-dev@users.noreply.github.com>
2024-08-24 07:59:02 +02:00
ABAP for years :)
ed90830b31
Update z2ui5_cl_xml_view.clas.abap: UI ColorPicker (#1321)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-23 23:59:19 +02:00
Christian Wildt
18a5299813
Added shell bar events (#1320)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-23 11:28:41 +02:00
abapsheep
e55777569e
Update (#1318)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* Update

Error with DeepStructures
Fixes in Layout

* Update

* Update

---------

Co-authored-by: Viktor Hoffmann <Viktor.Hoffmann@swisskrono.com>
2024-08-22 11:52:47 +02:00
Christian Wildt
0fb093d473
Added Shell Bar (#1316) 2024-08-21 12:14:53 +02:00
Francisco Milán
c66269b6e5
Add 3 parameters to method currency (#1315)
Some checks failed
build_downport / build_downport (push) Has been cancelled
2024-08-19 08:59:09 +02:00
Francisco Milán
41302f8825
Add method field (#1314)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-18 09:30:29 +02:00
Francisco Milán
0fe81ae01c
Add press to numeric_content (#1313)
Some checks failed
build_downport / build_downport (push) Has been cancelled
2024-08-15 19:24:47 +02:00
Francisco Milán
6745789169
Add property id to step_input & press to news_content (#1311)
Some checks are pending
build_downport / build_downport (push) Waiting to run
* Add property id to step_input (1)

* Add press to news_content (1)

---------

Co-authored-by: oblomov <102328295+oblomov-dev@users.noreply.github.com>
2024-08-15 10:21:14 +02:00
Francisco Milán
b3386bb2c0
Add method content_areas (#1308)
Some checks failed
build_downport / build_downport (push) Has been cancelled
* Add method content_areas (1)

* Add method content_areas (2)

* Add method content_areas (3)
2024-08-14 08:22:25 +02:00
Francisco Milán
612262554a
Add arialabelledby and ariadescribedby to button (#1307)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-08-13 08:01:20 +02:00
LadwigDev
63ba7224f2
Addition of the Side Navigation (#1306)
Some checks failed
build_downport / build_downport (push) Has been cancelled
2024-08-10 19:10:11 +02:00