Commit Graph

44 Commits

Author SHA1 Message Date
oblomov-dev
07bdeeaf58
renaming default model path (#1625)
* renaming default model path

* adjust alignment

* Update View1.controller.js
2024-12-10 15:05:20 +01:00
Christian Günter
c2b476481e
refactor switchDefaultModel to switchDefaultModelP (#1620)
Co-authored-by: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com>
2024-12-10 14:42:41 +01:00
Christian Wildt
19c48b9e0f
Added URLHelper Methods (#1612)
* Added URLHelper Methods

* Added URLHelper Methods

* Interface cleanup

* added mobilelibrary in app

---------

Co-authored-by: oblomov-dev <102328295+oblomov-dev@users.noreply.github.com>
2024-12-04 14:28:44 +01:00
oblomov-dev
c1ab4e6658
Smart control fix (#1609)
Some checks are pending
build_downport / build_downport (push) Waiting to run
build_frontend_classic / build_frontend_classic (push) Waiting to run
build_frontend_cloud / build_frontend_cloud (push) Waiting to run
js_transform / Code-Cleanup (push) Waiting to run
ui5lint / test (push) Waiting to run
* smart control fix

* update
2024-12-03 12:44:25 +01:00
oblomov-dev
6416c41bca
Smart controls test (#1606)
* smart controls test

* update

* Update src/01/03/z2ui5_cl_app_view1_js.clas.abap

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

* update

* update

* update

* update

* update

---------

Co-authored-by: abaplint[bot] <24845621+abaplint[bot]@users.noreply.github.com>
2024-12-02 12:13:51 +01:00
oblomov-dev
771f7f9d0b
Refactoring2 (#1520)
* update

* update

* update

* update
2024-10-27 15:33:52 +01:00
oblomov-dev
db038379ff
New apis (#1514)
Some checks are pending
build_downport / build_downport (push) Waiting to run
build_frontend_classic / build_frontend_classic (push) Waiting to run
build_frontend_cloud / build_frontend_cloud (push) Waiting to run
* new_apis

* Update README.md

* Update README.md

* Update README.md

* Create SECURITY.md (#1513)

* update

* update

* update

---------

Co-authored-by: oblomov-dev@outlook.com <>
2024-10-25 13:34:57 +02:00
oblomov-dev
6c0843cb06
refactoring debug tools (#1445)
* refactoring debug tools

* update
2024-09-22 16:41:38 +02:00
oblomov-dev
498cdc7fc7
refactoring (#1444) 2024-09-22 14:18:01 +02:00
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
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
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
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
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
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
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
dcc03a350b
fixes f4 help (#1192) 2024-06-13 14:21:11 +02:00
choper725
629bd39404
various changes (#1156)
xml view
http get
client intf
2024-06-05 01:30:10 +02:00
choper725
75b4f4114b
message toast fix - xml additions - styled popover (#1122) 2024-05-06 23:01:44 +02:00
choper725
96190bc009
generic messageBox implement add properties (#1111) 2024-04-29 23:15:06 +02:00
choper725
1dd11a1495
change style of toast from predefined class (#1110) 2024-04-29 19:12:08 +02:00
choper725
7904dad027
impleement full message toast properties (#1109) 2024-04-29 11:11:15 +02:00
choper725
db6df23594
few updaes + download b64 file event client functi (#1068)
update CC
add download B64 event frontend
2024-04-10 21:25:42 +02:00
oblomov
9270f6fb57
follow up action (#1031) 2024-03-20 12:26:36 +01:00
oblomov
5943fdded5
follow up action (#1019)
* follow up action

* 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-03-17 16:49:29 +01:00
oblomov
bb9bea912f
reanming+new version (#984) 2024-03-01 13:54:01 +01:00
oblomov
fa2eba3351
add_multi_request_function (#965) 2024-02-28 10:10:51 +01:00
oblomov
527158f728
update control structure in event (#963)
* update control structure in event

* update
2024-02-27 18:56:34 +01:00
oblomov
650b62a163
fix launchpad compatibility+busy handling (#962) 2024-02-27 14:00:05 +01:00
oblomov
71032e59e6
fixes (#922)
* fixes

* update
2024-02-20 17:12:24 +01:00
oblomov
7e7cfb95c5
Refactoring (#880)
* 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

* 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

* README.md aktualisieren

* README.md aktualisieren

* README.md aktualisieren

* README.md aktualisieren

* README.md aktualisieren

* Update README.md

* README.md aktualisieren

* Update README.md

* update

* refactoring

* Update abaplint.jsonc

* Update abaplint.jsonc

* refactoring

* update

* lint fixes

* refactoring

* fixes unit tests

* update

* update
2024-02-12 17:01:05 +01:00
oblomov
9ec089ca52
refactoring (#874)
* refactoring

* update
2024-02-08 10:41:27 +01:00
oblomov
064ddaa543
Refactoring (#871)
* refactoring

* update

* update

* update

* refactoring

* lint fixes

* update

* refactoring

* update

* update

* update tests

* update

* refactoring

* update
2024-02-06 20:53:31 +01:00
oblomov
3bea3d8ee8
chart.js fix (#865)
* refactoring

* update

* chart.js fix

* update

* update
2024-02-04 21:02:08 +01:00
oblomov
6aa276f60b
json refactoring (#864)
* json refactoring

* update

* update
2024-02-04 16:56:56 +01:00
oblomov
afaeb7f871
json refactoring (#863) 2024-02-04 16:27:22 +01:00
oblomov
563a0e4306
Refactoring performance (#862)
* refactoring-performance

* Update and rename abaplint-basic.jsonc to abaplint-standard_abap_readiness.jsonc

* Update abaplint-app.json

* Update abaplint-app.json

* refactoring

* update lint fixes

* refactoring

* Update README.md
2024-02-04 14:08:04 +01:00
oblomov
a11d447aeb
mapper for front to back direction (#847)
* mapper for front to back direction

* lint fixes
2024-02-03 09:06:38 +01:00
oblomov
0c7130cfc2
delete_ui2_json (#846)
* delete_ui2_json

* update

* update
2024-02-03 01:22:48 +01:00
oblomov
d5c331ffbb
fix messagetoast + filter and mapping logic (#845) 2024-02-02 23:47:36 +01:00
oblomov
9b15a1055c
Update ajson logic (#839)
* update ajson logic

* ajson logic

* abaplint fixes

* update nav_to
2024-02-02 16:38:38 +01:00
oblomov
463fbf561f
payload with ajson (#837)
* ajson

* ajson logic

* update abaplint fixes
2024-02-02 14:56:39 +01:00
oblomov
4443999ff1
Popup json download (#828)
* popup json download

* lint fixes

* update

* update startup app

* lint fixes
2024-01-31 08:27:09 +01:00
oblomov
1933db790c
Update package structure (#821)
* update-package-structure

* update
2024-01-26 13:16:37 +01:00