Commit Graph

1158 Commits

Author SHA1 Message Date
oblomov-dev
ef4494bdb9
New UI5 frontend (#1443)
* Refactoring due to added Component support, slightly fixed session handl (#1439)

* Refactoring due to added Component support, slightly fixed session handl

* 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: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>

* session fix + tokens

* update stateful error

* pagehide for ios devices, beforeunload for desktop and others (#1440)

* fixes

* fixes excpetions

* update

* lint fixes

* replaced root view with app for launchpad  compati

* fix missed latest changes in init - added again

* update index html

* update

* update app

* update

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

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

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

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

* fixes

* lint fixes

* update

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

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

* Update changelog.txt

* update

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

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

---------

Co-authored-by: Michael Zinnöcker <29286643+mzinnoecker@users.noreply.github.com>
Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-09-22 13:53:11 +02:00
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
1e929668b0
Update README.md (#1432) 2024-09-16 08:11:58 +02:00
oblomov-dev
e9d557737c
refactoring (#1431) 2024-09-15 18:37:38 +02:00
oblomov-dev
fd5183b16b
refactoring (#1430) 2024-09-15 18:00:25 +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
oblomov-dev
5cd5e1e6a1
test actions (#1425) 2024-09-13 11:17:18 +02:00
oblomov-dev
b77c8dcda9
Update rename_test.yml (#1424)
* Update rename_test.yml

* Update playwright.yml
2024-09-13 00:38:24 +02:00
oblomov-dev
3278b48814
Update README.md (#1423)
* Update README.md

* Update unit_test.yml
2024-09-13 00:34:18 +02:00
oblomov-dev
d04de18cbd
update_ci_configs (#1422)
* update

* Delete .gitignore

* Create unit_test.yml

* Update unit_test.yml

* Create rename_test.yml

* Delete .github/workflows/test_rename.yml

* Delete .github/workflows/test.yml

* Update rename_test.yml

* Update unit_test.yml

* Delete ci/abaplint_rename.jsonc

* Update unit_test.yml

* Delete ci/abaplint-downport.jsonc

* Update build_downport.yaml

* Rename abaplint-abap_cloud_readiness.jsonc to abap_cloud_check.jsonc

* Rename abaplint-standard_abap_readiness.jsonc to standard_abap_check.jsonc

* Update abaplint-app.json

* Rename standard_abap_check.jsonc to abap_standard_check.jsonc

* Update abaplint-app.json

* Update unit_test.yml

* Update rename_test.yml

* update

* Update rename_test.yml

* update

* Update rename_test.yml

* Update rename_test.yml

* Update rename_test.yml

* Update unit_test.yml

* Update playwright.yml

* Update unit_test.yml

* Update build_downport.yaml
2024-09-12 23:52:38 +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
oblomov-dev
5c4e135db9
Update README.md (#1414) 2024-09-11 15:27:50 +02:00
Christian Günter
430db60fdd
add class property to table (#1412) 2024-09-11 15:04:57 +02:00
oblomov-dev
29f315f038
Update README.md (#1411)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
2024-09-11 12:31:49 +02:00
oblomov-dev
1449ee2c30
Update README.md (#1410) 2024-09-11 10:14:46 +02:00
oblomov-dev
aca1eaa55d
README.md aktualisieren (#1409) 2024-09-11 09:50:01 +02:00
oblomov-dev
74cb91014f
README.md aktualisieren (#1408) 2024-09-11 00:00:28 +02:00
oblomov-dev
57e4392362
Update README.md (#1407) 2024-09-10 20:44:08 +02:00
oblomov-dev
a1b60311fa
Update README.md (#1405)
* Update README.md

* Update README.md
2024-09-10 19:34:05 +02:00
oblomov-dev
0b33cef97f
Update README.md (#1404) 2024-09-10 19:19:59 +02:00
oblomov-dev
f84189ef3b
Update README.md (#1403) 2024-09-10 18:27:37 +02:00
oblomov-dev
2b50e1b107
Update README.md (#1402)
* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md
2024-09-10 18:18:43 +02:00
oblomov-dev
39d9c1f3be
Test (#1401)
* update playwright test

* update

* Update playwright.yml

* Update playwright.yml

* Update playwright.yml

* Update README.md

* Update README.md

* Update README.md

* Update playwright.yml

* Update playwright.yml

* Update README.md

* Update README.md

* Update README.md

* Update playwright.yml

* Update README.md

* Update README.md

* Update README.md

* Update playwright.yml

* Update playwright.yml

* Update README.md

* Update README.md

* Update README.md
2024-09-10 16:34:14 +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
github-actions[bot]
fcda388222
ajson, Automatic Update (#1397)
* [create-pull-request] automated change

* Update README.md

---------

Co-authored-by: oblomov-dev <oblomov-dev@users.noreply.github.com>
Co-authored-by: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com>
2024-09-09 07:37:46 +02:00
oblomov-dev
ce5d452675
Update README.md (#1396) 2024-09-08 23:52:10 +02:00
oblomov-dev
35b86d8eb2
Update README.md (#1394)
* Update README.md

* Update README.md
2024-09-08 23:42:28 +02:00
oblomov-dev
cdc8feea14
Update README.md (#1393)
* Update README.md

* Update README.md
2024-09-08 23:21:56 +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
71ea2631b6
language version fix (#1389) 2024-09-08 17:25:19 +02:00
oblomov-dev
6ca092cb3b
cleanup resources & ci setup (#1387)
* cleanup resources

* update ci setup

* Update test_rename.yml

* Update test.yml

* Update test_rename.yml
2024-09-08 15:28:26 +02:00
oblomov-dev
7f2fe77b37
update typess (#1386) 2024-09-08 09:48:32 +02:00
oblomov-dev
d8bacf4f73
Update lint fixes (#1384)
* update lint fixes

* Update abaplint-abap_cloud_readiness.jsonc

* Update abaplint-abap_cloud_readiness.jsonc
2024-09-07 17:34:17 +02:00
oblomov-dev
38d5362192
Update abaplint.jsonc (#1383)
* Update abaplint.jsonc

* lint fixes

* Update src/01/00/02/z2ui5_cl_abap_api.clas.abap

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

* Update src/01/00/02/z2ui5_cl_abap_api.clas.abap

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

* abaplint fixes

* Update abaplint.jsonc

* lint fix

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-09-07 16:57:14 +02:00
oblomov-dev
8a51b25b49
README.md aktualisieren (#1382) 2024-09-07 15:00:28 +02:00
oblomov-dev
860f03d05e
update ajson mirror (#1379) 2024-09-07 12:56:21 +02:00
oblomov-dev
8d9efe5409
Update README.md (#1378)
* Update README.md

* Update README.md

* Update README.md
2024-09-07 10:43:56 +02:00
oblomov-dev
ec38b0a496
Json time date fix (#1377)
* json time date fix

* update

* update
2024-09-07 09:06:57 +02:00
oblomov-dev
8a63b0c601
abaplint rules (#1375) 2024-09-06 15:57:39 +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
oblomov-dev
30bcab4843
Update abaplint.jsonc (#1371)
Some checks are pending
build_downport / build_downport (push) Waiting to run
2024-09-05 07:21:05 +02:00
Francisco Milán
2ee262de29
selected_key as OPTIONAL - method segmented_button (#1370) 2024-09-05 06:57:13 +02:00