@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-11997.0 → 0.0.0-bugfix-dev-KB-99999.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-0e4275f5.js → ConfigStorage-8009ecb2.js} +20 -4
- package/dist/cjs/{DataFetcher-bd3d53a8.js → DataFetcher-ba94ed5b.js} +142 -102
- package/dist/cjs/{PersonalizedFilterUtils-1aeb625d.js → PersonalizedFilterUtils-0184ffbb.js} +11 -4
- package/dist/cjs/PreloadManager-84466da6.js +224 -0
- package/dist/cjs/{SnkFormConfigManager-5b485cd4.js → SnkFormConfigManager-7d850fbc.js} +23 -6
- package/dist/cjs/{SnkMessageBuilder-d0abb63d.js → SnkMessageBuilder-7293d0ad.js} +29 -8
- package/dist/cjs/{SnkMultiSelectionListDataSource-804ff4c7.js → SnkMultiSelectionListDataSource-ba5838c2.js} +15 -0
- package/dist/cjs/Sortable-fb1c4cbb.js +2853 -0
- package/dist/cjs/{auth-fetcher-1583fe43.js → auth-fetcher-c8467c07.js} +1 -1
- package/dist/cjs/{constants-d187e03e.js → constants-35ddd366.js} +4 -0
- package/dist/cjs/dataunit-fetcher-de65b9fc.js +725 -0
- package/dist/cjs/{taskbar-processor-bce3f499.js → field-search-f56aa7d6.js} +35 -0
- package/dist/cjs/{filter-item-type.enum-aa823a00.js → filter-item-type.enum-a7ffdaa6.js} +1 -0
- package/dist/cjs/filterNumberVariation-d65332da.js +7 -0
- package/dist/cjs/{form-config-fetcher-f6cb55e6.js → form-config-fetcher-df043d3d.js} +1 -1
- package/dist/cjs/{index-0e663819.js → index-0922807b.js} +1 -0
- package/dist/cjs/index-f9e81701.js +10 -6
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-3356b3df.js → pesquisa-fetcher-ef050a47.js} +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button.cjs.entry.js → snk-actions-button_2.cjs.entry.js} +214 -91
- package/dist/cjs/snk-application.cjs.entry.js +474 -140
- package/dist/cjs/snk-attach.cjs.entry.js +27 -11
- package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +17 -2
- package/dist/cjs/snk-crud.cjs.entry.js +127 -17
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +20 -0
- package/dist/cjs/snk-data-exporter.cjs.entry.js +12 -11
- package/dist/cjs/{snk-data-unit-7cc1846d.js → snk-data-unit-1bc69073.js} +15 -5
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +34 -14
- package/dist/cjs/snk-field-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-bar.cjs.entry.js +163 -17
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +52 -0
- package/dist/cjs/snk-filter-detail.cjs.entry.js +9 -2
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-item.cjs.entry.js +39 -15
- package/dist/cjs/snk-filter-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +9 -9
- package/dist/cjs/snk-filter-modal.cjs.entry.js +38 -7
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +42 -3
- package/dist/cjs/snk-filter-period.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +16 -15
- package/dist/cjs/snk-form-view.cjs.entry.js +14 -0
- package/dist/cjs/snk-form.cjs.entry.js +6 -7
- package/dist/cjs/snk-grid-config.cjs.entry.js +6 -7
- package/dist/cjs/snk-grid.cjs.entry.js +131 -40
- package/dist/cjs/{snk-guides-viewer-5e22097d.js → snk-guides-viewer-7f9b6d94.js} +161 -22
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +16 -13
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +24 -13
- package/dist/cjs/snk-select-box.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +127 -103
- package/dist/cjs/snk-tab-config.cjs.entry.js +12 -11
- package/dist/cjs/snk-taskbar.cjs.entry.js +3 -3
- package/dist/cjs/{taskbar-elements-39949c7a.js → taskbar-elements-01b85b99.js} +4 -4
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/snk-actions-button/actions/executor/java.executor.js +2 -2
- package/dist/collection/components/snk-actions-button/actions/executor/javascript.executor.js +2 -2
- package/dist/collection/components/snk-actions-button/actions/executor/procedure.executor.js +2 -2
- package/dist/collection/components/snk-actions-button/clientEvent/index.js +81 -76
- package/dist/collection/components/snk-actions-button/snk-actions-button.css +4 -11
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +2 -2
- package/dist/collection/components/snk-application/snk-application.js +485 -84
- package/dist/collection/components/snk-attach/snk-attach.css +6 -0
- package/dist/collection/components/snk-attach/snk-attach.js +15 -3
- package/dist/collection/components/snk-attach/structure/data-unit-builder.js +4 -1
- package/dist/collection/components/snk-configurator/snk-configurator.js +33 -1
- package/dist/collection/components/snk-crud/snk-crud.js +136 -10
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +21 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +45 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +178 -22
- package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css +3 -0
- package/dist/collection/components/{snk-taskbar/snk-taskbar-custom-elements.js → snk-custom-slot-elements/snk-custom-slot-elements.js} +10 -10
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.css +1 -9
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +1 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +15 -12
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +69 -2
- package/dist/collection/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.js +5 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.js +95 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +93 -8
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +2 -2
- package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +1 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +7 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +38 -14
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +87 -6
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +4 -3
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +5 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +218 -7
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
- package/dist/collection/components/snk-form/SnkFormConfigManager.js +22 -5
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +10 -8
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +10 -8
- package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +11 -0
- package/dist/collection/components/snk-grid/snk-grid.css +7 -2
- package/dist/collection/components/snk-grid/snk-grid.js +166 -39
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +32 -6
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -4
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +8 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +115 -6
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +6 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +310 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +3 -3
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +0 -4
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -1
- package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +31 -0
- package/dist/collection/lib/@types/index.js +1 -0
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +74 -15
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +61 -43
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +118 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +80 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +139 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/{dataunit-fetcher.js → data-unit/dataunit-fetcher.js} +49 -100
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.js +68 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +162 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +3 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/personalized-reports-fetcher.js +3 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +14 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +3 -0
- package/dist/collection/lib/index.js +1 -1
- package/dist/collection/lib/message/SnkMessageBuilder.js +9 -3
- package/dist/collection/lib/message/resources/snk-application.msg.js +9 -0
- package/dist/collection/lib/message/resources/snk-crud.msg.js +1 -0
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +5 -4
- package/dist/collection/lib/message/resources/snk-grid.msg.js +3 -1
- package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
- package/dist/collection/lib/utils/constants.js +3 -0
- package/dist/collection/lib/utils/urlutils.js +10 -4
- package/dist/collection/lib/workspace/workspace.js +27 -0
- package/dist/components/ConfigStorage.js +17 -1
- package/dist/components/DataFetcher.js +101 -61
- package/dist/components/PersonalizedFilterUtils.js +10 -3
- package/dist/components/SnkFormConfigManager.js +22 -5
- package/dist/components/SnkMessageBuilder.js +29 -8
- package/dist/components/constants.js +4 -1
- package/dist/components/dataunit-fetcher.js +846 -100
- package/dist/components/{SnkMultiSelectionListDataSource.js → field-search.js} +44 -1
- package/dist/components/filter-item-type.enum.js +1 -0
- package/dist/components/filterNumberVariation.js +7 -0
- package/dist/components/index.d.ts +3 -1
- package/dist/components/index.js +3 -1
- package/dist/components/index2.js +1 -0
- package/dist/components/snk-actions-button2.js +91 -86
- package/dist/components/snk-application2.js +392 -55
- package/dist/components/snk-attach2.js +39 -19
- package/dist/components/snk-configurator2.js +18 -2
- package/dist/components/snk-crud.js +184 -70
- package/dist/components/snk-custom-slot-elements.d.ts +11 -0
- package/dist/components/snk-custom-slot-elements.js +35 -0
- package/dist/components/snk-data-exporter2.js +7 -5
- package/dist/components/snk-data-unit2.js +15 -5
- package/dist/components/snk-detail-view2.js +264 -96
- package/dist/components/snk-filter-bar2.js +164 -13
- package/dist/components/snk-filter-checkbox-list.d.ts +11 -0
- package/dist/components/snk-filter-checkbox-list.js +68 -0
- package/dist/components/snk-filter-detail2.js +7 -0
- package/dist/components/snk-filter-item2.js +38 -14
- package/dist/components/snk-filter-list.js +1 -1
- package/dist/components/snk-filter-modal-item2.js +4 -3
- package/dist/components/snk-filter-modal.js +40 -7
- package/dist/components/snk-filter-number.js +43 -2
- package/dist/components/snk-filter-period.js +2 -2
- package/dist/components/snk-form-config2.js +13 -11
- package/dist/components/snk-form-view2.js +15 -0
- package/dist/components/snk-grid2.js +166 -68
- package/dist/components/snk-personalized-filter2.js +18 -6
- package/dist/components/snk-simple-crud2.js +132 -104
- package/dist/components/snk-tab-config2.js +2203 -6233
- package/dist/components/snk-taskbar2.js +16 -10
- package/dist/components/taskbar-actions-button.d.ts +11 -0
- package/dist/components/taskbar-actions-button.js +6 -0
- package/dist/components/taskbar-actions-button2.js +140 -0
- package/dist/esm/{ConfigStorage-f359573c.js → ConfigStorage-1244b8b0.js} +20 -4
- package/dist/esm/{DataFetcher-8daff9ad.js → DataFetcher-aa159c5a.js} +101 -61
- package/dist/esm/{PersonalizedFilterUtils-75fb0106.js → PersonalizedFilterUtils-e2b38ef7.js} +11 -4
- package/dist/esm/PreloadManager-c1c2f2b4.js +222 -0
- package/dist/esm/{SnkFormConfigManager-35876bad.js → SnkFormConfigManager-9be0e7d4.js} +24 -7
- package/dist/esm/{SnkMessageBuilder-68c1c25a.js → SnkMessageBuilder-ca843d1b.js} +29 -8
- package/dist/esm/{SnkMultiSelectionListDataSource-892f37f9.js → SnkMultiSelectionListDataSource-44494b0e.js} +11 -0
- package/dist/esm/Sortable-83960219.js +2851 -0
- package/dist/esm/{auth-fetcher-299fed55.js → auth-fetcher-c05dc474.js} +1 -1
- package/dist/esm/{constants-3644f1b6.js → constants-8457af36.js} +4 -1
- package/dist/esm/dataunit-fetcher-e218c6d2.js +722 -0
- package/dist/esm/{taskbar-processor-94402e6e.js → field-search-efbe307f.js} +34 -1
- package/dist/esm/{filter-item-type.enum-5028ed3f.js → filter-item-type.enum-d45e026f.js} +1 -0
- package/dist/esm/filterNumberVariation-8cee02ea.js +7 -0
- package/dist/esm/{form-config-fetcher-8ef7be16.js → form-config-fetcher-36219cd3.js} +1 -1
- package/dist/esm/{index-1564817d.js → index-0ece87a6.js} +1 -0
- package/dist/esm/index-a7d3d3f1.js +10 -6
- package/dist/esm/loader.js +1 -1
- package/dist/{components/pesquisa-fetcher.js → esm/pesquisa-fetcher-dd3ca0a5.js} +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button.entry.js → snk-actions-button_2.entry.js} +215 -93
- package/dist/esm/snk-application.entry.js +475 -141
- package/dist/esm/snk-attach.entry.js +27 -11
- package/dist/esm/snk-config-options.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +18 -3
- package/dist/esm/snk-crud.entry.js +128 -18
- package/dist/esm/snk-custom-slot-elements.entry.js +16 -0
- package/dist/esm/snk-data-exporter.entry.js +13 -12
- package/dist/esm/{snk-data-unit-1715d2f1.js → snk-data-unit-6208ebf0.js} +16 -6
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +34 -14
- package/dist/esm/snk-field-config.entry.js +1 -1
- package/dist/esm/snk-filter-advanced-mode_2.entry.js +2 -2
- package/dist/esm/snk-filter-bar.entry.js +165 -19
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +48 -0
- package/dist/esm/snk-filter-detail.entry.js +9 -2
- package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
- package/dist/esm/snk-filter-item.entry.js +39 -15
- package/dist/esm/snk-filter-list.entry.js +1 -1
- package/dist/esm/snk-filter-modal-item.entry.js +9 -9
- package/dist/esm/snk-filter-modal.entry.js +38 -7
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +42 -3
- package/dist/esm/snk-filter-period.entry.js +3 -3
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-form-config.entry.js +16 -15
- package/dist/esm/snk-form-view.entry.js +14 -0
- package/dist/esm/snk-form.entry.js +6 -7
- package/dist/esm/snk-grid-config.entry.js +6 -7
- package/dist/esm/snk-grid.entry.js +132 -41
- package/dist/esm/{snk-guides-viewer-b0e32a7d.js → snk-guides-viewer-9d5e073f.js} +161 -22
- package/dist/esm/snk-guides-viewer.entry.js +16 -13
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +24 -13
- package/dist/esm/snk-select-box.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +126 -102
- package/dist/esm/snk-tab-config.entry.js +12 -11
- package/dist/esm/snk-taskbar.entry.js +3 -3
- package/dist/esm/{taskbar-elements-0a6b8b95.js → taskbar-elements-d4d0b424.js} +4 -4
- package/dist/sankhyablocks/p-01ba23cd.entry.js +1 -0
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +1 -0
- package/dist/sankhyablocks/{p-5c1aacc7.js → p-057fad05.js} +1 -1
- package/dist/sankhyablocks/p-0874adb5.entry.js +1 -0
- package/dist/sankhyablocks/p-094c30cb.js +1 -0
- package/dist/sankhyablocks/p-0d084a0f.entry.js +1 -0
- package/dist/sankhyablocks/{p-c870b530.js → p-0d7863ed.js} +1 -1
- package/dist/sankhyablocks/p-11081798.entry.js +1 -0
- package/dist/sankhyablocks/p-143425c0.entry.js +1 -0
- package/dist/sankhyablocks/{p-cb37982f.entry.js → p-20726710.entry.js} +1 -1
- package/dist/sankhyablocks/p-32f0935f.js +1 -0
- package/dist/sankhyablocks/p-3520c088.entry.js +1 -0
- package/dist/sankhyablocks/p-374d03f6.js +1 -0
- package/dist/sankhyablocks/p-38289a55.js +1 -0
- package/dist/sankhyablocks/{p-25c5428f.entry.js → p-3ab6df3d.entry.js} +1 -1
- package/dist/sankhyablocks/p-3b60db06.entry.js +1 -0
- package/dist/sankhyablocks/{p-eb636e15.entry.js → p-41f8bfa3.entry.js} +1 -1
- package/dist/sankhyablocks/p-4775a293.entry.js +1 -0
- package/dist/sankhyablocks/p-4b0938f6.entry.js +1 -0
- package/dist/sankhyablocks/p-585294ee.js +56 -0
- package/dist/sankhyablocks/p-5f74c859.entry.js +1 -0
- package/dist/sankhyablocks/p-69754d94.entry.js +1 -0
- package/dist/sankhyablocks/p-6977a26c.entry.js +1 -0
- package/dist/sankhyablocks/{p-648a7c72.entry.js → p-69efa80d.entry.js} +1 -1
- package/dist/sankhyablocks/p-70589af8.entry.js +1 -0
- package/dist/sankhyablocks/p-776ee8e3.js +1 -0
- package/dist/sankhyablocks/{p-959e0835.entry.js → p-7e2ded86.entry.js} +1 -1
- package/dist/sankhyablocks/p-7f9d6b5d.entry.js +11 -0
- package/dist/sankhyablocks/{p-0885ed3c.entry.js → p-8002dcd0.entry.js} +1 -1
- package/dist/sankhyablocks/p-809f367d.entry.js +1 -0
- package/dist/sankhyablocks/p-8437508f.js +1 -0
- package/dist/sankhyablocks/p-8eb67fa4.entry.js +1 -0
- package/dist/sankhyablocks/{p-f30526a7.entry.js → p-95df461f.entry.js} +1 -1
- package/dist/sankhyablocks/p-9695f78b.js +1 -0
- package/dist/sankhyablocks/{p-838f8234.entry.js → p-98674137.entry.js} +1 -1
- package/dist/sankhyablocks/p-a87229cd.entry.js +1 -0
- package/dist/sankhyablocks/p-a9e5b094.entry.js +1 -0
- package/dist/sankhyablocks/p-aaa3ee68.entry.js +1 -0
- package/dist/sankhyablocks/p-b0ef4383.js +1 -0
- package/dist/sankhyablocks/p-ba627e85.js +60 -0
- package/dist/sankhyablocks/p-c22c1d8e.js +1 -0
- package/dist/sankhyablocks/p-c2495304.js +1 -0
- package/dist/sankhyablocks/{p-26ad62b9.entry.js → p-c758265f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-fe49067d.entry.js → p-c8622597.entry.js} +1 -1
- package/dist/sankhyablocks/p-cb7419e0.entry.js +1 -0
- package/dist/sankhyablocks/p-d1007720.entry.js +1 -0
- package/dist/sankhyablocks/{p-a1e1b305.entry.js → p-d3f53df2.entry.js} +1 -1
- package/dist/sankhyablocks/p-d6317851.entry.js +1 -0
- package/dist/sankhyablocks/{p-b13cb8b5.js → p-d9bb09b3.js} +2 -2
- package/dist/sankhyablocks/p-e3132789.entry.js +1 -0
- package/dist/sankhyablocks/p-e6380c60.js +1 -0
- package/dist/sankhyablocks/p-f514913b.entry.js +1 -0
- package/dist/sankhyablocks/p-fa80e546.js +1 -0
- package/dist/sankhyablocks/p-fa816fb2.js +1 -0
- package/dist/sankhyablocks/p-fd8814b9.entry.js +1 -0
- package/dist/sankhyablocks/{p-584d7212.js → p-ff1990ad.js} +1 -1
- package/dist/sankhyablocks/p-ff6064e7.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/clientEvent/index.d.ts +1 -1
- package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +90 -15
- package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +6 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +13 -0
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +3 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +10 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +49 -12
- package/dist/types/components/snk-custom-slot-elements/snk-custom-slot-elements.d.ts +7 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/enum/filterNumberVariation.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-checkbox-list.d.ts +27 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +24 -2
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +2 -0
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +15 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +30 -0
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +5 -1
- package/dist/types/components/snk-form/SnkFormConfigManager.d.ts +6 -1
- package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +2 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +20 -6
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +4 -1
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.d.ts +1 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +24 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +59 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +18 -2
- package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +4 -0
- package/dist/types/components.d.ts +256 -32
- package/dist/types/lib/@types/index.d.ts +2 -1
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +5 -1
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +8 -4
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +13 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +19 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +22 -0
- package/dist/types/lib/http/data-fetcher/fetchers/{dataunit-fetcher.d.ts → data-unit/dataunit-fetcher.d.ts} +5 -3
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataResult.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadDataStrategy.d.ts +7 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/ILoadingInfo.d.ts +10 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRecordField.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IResponseRecord.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DataUnitStrategy.d.ts +9 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +16 -0
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +1 -1
- package/dist/types/lib/index.d.ts +1 -1
- package/dist/types/lib/message/resources/snk-application.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-simple-crud.msg.d.ts +2 -0
- package/dist/types/lib/utils/constants.d.ts +3 -4
- package/dist/types/lib/workspace/workspace.d.ts +6 -0
- package/package.json +4 -4
- package/react/components.d.ts +3 -1
- package/react/components.js +3 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/_commonjsHelpers-537d719a.js +0 -20
- package/dist/cjs/dataunit-fetcher-910be4ce.js +0 -356
- package/dist/cjs/draggable.bundle-82a25c06.js +0 -6886
- package/dist/cjs/snk-taskbar-custom-elements.cjs.entry.js +0 -20
- package/dist/collection/components/snk-data-unit/snk-data-unit.css +0 -6
- package/dist/components/_commonjsHelpers.js +0 -17
- package/dist/components/snk-taskbar-custom-elements.d.ts +0 -11
- package/dist/components/snk-taskbar-custom-elements.js +0 -35
- package/dist/esm/_commonjsHelpers-9943807e.js +0 -17
- package/dist/esm/dataunit-fetcher-bd8f9572.js +0 -354
- package/dist/esm/draggable.bundle-41d56f06.js +0 -6884
- package/dist/esm/pesquisa-fetcher-27819123.js +0 -165
- package/dist/esm/snk-taskbar-custom-elements.entry.js +0 -16
- package/dist/sankhyablocks/p-0df2ead8.entry.js +0 -11
- package/dist/sankhyablocks/p-112455b1.js +0 -1
- package/dist/sankhyablocks/p-324ce41e.entry.js +0 -1
- package/dist/sankhyablocks/p-34604220.entry.js +0 -1
- package/dist/sankhyablocks/p-4a78e118.js +0 -1
- package/dist/sankhyablocks/p-5534e08c.js +0 -1
- package/dist/sankhyablocks/p-5d04ae42.entry.js +0 -1
- package/dist/sankhyablocks/p-6a38bda5.entry.js +0 -1
- package/dist/sankhyablocks/p-7bcd2f89.js +0 -56
- package/dist/sankhyablocks/p-7bd5aea7.js +0 -1
- package/dist/sankhyablocks/p-8014cc25.entry.js +0 -1
- package/dist/sankhyablocks/p-928efcaa.entry.js +0 -1
- package/dist/sankhyablocks/p-989937ee.entry.js +0 -1
- package/dist/sankhyablocks/p-9a270401.entry.js +0 -1
- package/dist/sankhyablocks/p-a7ee0e6f.entry.js +0 -1
- package/dist/sankhyablocks/p-ac0556a3.js +0 -1
- package/dist/sankhyablocks/p-ae6aff81.js +0 -1
- package/dist/sankhyablocks/p-b244640b.js +0 -1
- package/dist/sankhyablocks/p-b6d6b172.js +0 -1
- package/dist/sankhyablocks/p-bba91710.entry.js +0 -1
- package/dist/sankhyablocks/p-bd628455.entry.js +0 -1
- package/dist/sankhyablocks/p-c2beb95c.js +0 -1
- package/dist/sankhyablocks/p-c555075c.entry.js +0 -1
- package/dist/sankhyablocks/p-c9841939.js +0 -1
- package/dist/sankhyablocks/p-d3ec3586.entry.js +0 -1
- package/dist/sankhyablocks/p-d708b4ab.entry.js +0 -1
- package/dist/sankhyablocks/p-d84bc5c1.js +0 -1
- package/dist/sankhyablocks/p-de76b8a8.js +0 -76
- package/dist/sankhyablocks/p-e19014a9.entry.js +0 -1
- package/dist/sankhyablocks/p-e1cb1f0b.js +0 -1
- package/dist/sankhyablocks/p-e3a82e1c.entry.js +0 -1
- package/dist/sankhyablocks/p-e9b53a9a.entry.js +0 -1
- package/dist/sankhyablocks/p-ebf8c5df.entry.js +0 -1
- package/dist/sankhyablocks/p-ed5f1204.entry.js +0 -1
- package/dist/sankhyablocks/p-f9395c20.entry.js +0 -1
- package/dist/sankhyablocks/p-f94b999e.entry.js +0 -1
- package/dist/sankhyablocks/p-fa9d3f73.js +0 -1
- package/dist/sankhyablocks/p-fb1ecd0b.entry.js +0 -1
- package/dist/sankhyablocks/p-fcd09423.entry.js +0 -1
- package/dist/sankhyablocks/p-fd15aaac.entry.js +0 -1
- package/dist/types/components/snk-taskbar/snk-taskbar-custom-elements.d.ts +0 -7
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
4
|
-
const filterItemType_enum = require('./filter-item-type.enum-
|
|
5
|
-
const
|
|
3
|
+
const formConfigFetcher = require('./form-config-fetcher-df043d3d.js');
|
|
4
|
+
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
5
|
+
const core = require('@sankhyalabs/core');
|
|
6
|
+
const DataFetcher = require('./DataFetcher-ba94ed5b.js');
|
|
6
7
|
|
|
7
8
|
class GridConfigFetcher extends formConfigFetcher.ResourceFetcher {
|
|
8
9
|
constructor() {
|
|
@@ -139,7 +140,19 @@ class FilterBarConfigFetcher extends formConfigFetcher.ResourceFetcher {
|
|
|
139
140
|
var _a, _b;
|
|
140
141
|
if (item.type === filterItemType_enum.FilterItemType.MULTI_LIST) {
|
|
141
142
|
const multiListValue = item.value;
|
|
142
|
-
|
|
143
|
+
/**
|
|
144
|
+
* Existe um bug no HTML5 onde ele salva a configuração do filtro na FilterBar como objeto em vez de array
|
|
145
|
+
* Esse cenário ocorre quando há apenas um item na configuração do filtro
|
|
146
|
+
*/
|
|
147
|
+
let multilistValueArray = (_b = (_a = multiListValue === null || multiListValue === void 0 ? void 0 : multiListValue.elements) !== null && _a !== void 0 ? _a : multiListValue === null || multiListValue === void 0 ? void 0 : multiListValue.members) !== null && _b !== void 0 ? _b : multiListValue;
|
|
148
|
+
// Precisamos verificar se o objeto existe ou está unfefined
|
|
149
|
+
multilistValueArray = multilistValueArray !== null && multilistValueArray !== void 0 ? multilistValueArray : [];
|
|
150
|
+
multilistValueArray = Array.isArray(multilistValueArray) ? multilistValueArray : [multilistValueArray];
|
|
151
|
+
// Existem cenários onde o HTML5 não salva o Id do filtro, apenas seu label e value
|
|
152
|
+
multilistValueArray = multilistValueArray.map(itemRaw => {
|
|
153
|
+
return Object.assign(Object.assign({}, itemRaw), { id: (itemRaw.id !== undefined) ? itemRaw.id : itemRaw.value });
|
|
154
|
+
});
|
|
155
|
+
item.value = core.ObjectUtils.copy(multilistValueArray);
|
|
143
156
|
}
|
|
144
157
|
return item;
|
|
145
158
|
});
|
|
@@ -260,6 +273,9 @@ class PersonalizedFilterFetcher {
|
|
|
260
273
|
});
|
|
261
274
|
}
|
|
262
275
|
async savePersonalizedFilter(personalizedFilter, resourceID, configName) {
|
|
276
|
+
if (!personalizedFilter || Object.keys(personalizedFilter).length == 0) {
|
|
277
|
+
return Promise.reject(new Error("personalizedFilter não pode ser vazio"));
|
|
278
|
+
}
|
|
263
279
|
let personalizedFilterParsed = JSON.parse(JSON.stringify(personalizedFilter));
|
|
264
280
|
personalizedFilterParsed.assistent = JSON.stringify(personalizedFilterParsed.assistent);
|
|
265
281
|
return new Promise((resolve, reject) => {
|
|
@@ -1,12 +1,27 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
|
-
const _commonjsHelpers = require('./_commonjsHelpers-537d719a.js');
|
|
5
|
-
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
6
4
|
const PrintUtils = require('./PrintUtils-bcaeb82f.js');
|
|
5
|
+
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
6
|
+
|
|
7
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
8
|
+
|
|
9
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
10
|
+
return module = {
|
|
11
|
+
path: basedir,
|
|
12
|
+
exports: {},
|
|
13
|
+
require: function (path, base) {
|
|
14
|
+
return commonjsRequire();
|
|
15
|
+
}
|
|
16
|
+
}, fn(module, module.exports), module.exports;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function commonjsRequire () {
|
|
20
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
21
|
+
}
|
|
7
22
|
|
|
8
|
-
var browserPonyfill =
|
|
9
|
-
var global = typeof self !== 'undefined' ? self :
|
|
23
|
+
var browserPonyfill = createCommonjsModule(function (module, exports) {
|
|
24
|
+
var global = typeof self !== 'undefined' ? self : commonjsGlobal;
|
|
10
25
|
var __self__ = (function () {
|
|
11
26
|
function F() {
|
|
12
27
|
this.fetch = false;
|
|
@@ -562,7 +577,7 @@ exports.Response = ctx.Response;
|
|
|
562
577
|
module.exports = exports;
|
|
563
578
|
});
|
|
564
579
|
|
|
565
|
-
var isObjectLike_1 =
|
|
580
|
+
var isObjectLike_1 = createCommonjsModule(function (module, exports) {
|
|
566
581
|
|
|
567
582
|
Object.defineProperty(exports, '__esModule', {
|
|
568
583
|
value: true,
|
|
@@ -578,7 +593,7 @@ function isObjectLike(value) {
|
|
|
578
593
|
}
|
|
579
594
|
});
|
|
580
595
|
|
|
581
|
-
var invariant_1 =
|
|
596
|
+
var invariant_1 = createCommonjsModule(function (module, exports) {
|
|
582
597
|
|
|
583
598
|
Object.defineProperty(exports, '__esModule', {
|
|
584
599
|
value: true,
|
|
@@ -596,7 +611,7 @@ function invariant(condition, message) {
|
|
|
596
611
|
}
|
|
597
612
|
});
|
|
598
613
|
|
|
599
|
-
var location_1 =
|
|
614
|
+
var location_1 = createCommonjsModule(function (module, exports) {
|
|
600
615
|
|
|
601
616
|
Object.defineProperty(exports, '__esModule', {
|
|
602
617
|
value: true,
|
|
@@ -636,7 +651,7 @@ function getLocation(source, position) {
|
|
|
636
651
|
}
|
|
637
652
|
});
|
|
638
653
|
|
|
639
|
-
var printLocation_1 =
|
|
654
|
+
var printLocation_1 = createCommonjsModule(function (module, exports) {
|
|
640
655
|
|
|
641
656
|
Object.defineProperty(exports, '__esModule', {
|
|
642
657
|
value: true,
|
|
@@ -712,7 +727,7 @@ function printPrefixedLines(lines) {
|
|
|
712
727
|
}
|
|
713
728
|
});
|
|
714
729
|
|
|
715
|
-
var GraphQLError_1 =
|
|
730
|
+
var GraphQLError_1 = createCommonjsModule(function (module, exports) {
|
|
716
731
|
|
|
717
732
|
Object.defineProperty(exports, '__esModule', {
|
|
718
733
|
value: true,
|
|
@@ -981,7 +996,7 @@ function formatError(error) {
|
|
|
981
996
|
}
|
|
982
997
|
});
|
|
983
998
|
|
|
984
|
-
var syntaxError_1 =
|
|
999
|
+
var syntaxError_1 = createCommonjsModule(function (module, exports) {
|
|
985
1000
|
|
|
986
1001
|
Object.defineProperty(exports, '__esModule', {
|
|
987
1002
|
value: true,
|
|
@@ -1002,7 +1017,7 @@ function syntaxError(source, position, description) {
|
|
|
1002
1017
|
}
|
|
1003
1018
|
});
|
|
1004
1019
|
|
|
1005
|
-
var ast =
|
|
1020
|
+
var ast = createCommonjsModule(function (module, exports) {
|
|
1006
1021
|
|
|
1007
1022
|
Object.defineProperty(exports, '__esModule', {
|
|
1008
1023
|
value: true,
|
|
@@ -1228,7 +1243,7 @@ exports.OperationTypeNode = OperationTypeNode;
|
|
|
1228
1243
|
})(OperationTypeNode || (exports.OperationTypeNode = OperationTypeNode = {}));
|
|
1229
1244
|
});
|
|
1230
1245
|
|
|
1231
|
-
var directiveLocation =
|
|
1246
|
+
var directiveLocation = createCommonjsModule(function (module, exports) {
|
|
1232
1247
|
|
|
1233
1248
|
Object.defineProperty(exports, '__esModule', {
|
|
1234
1249
|
value: true,
|
|
@@ -1269,7 +1284,7 @@ exports.DirectiveLocation = DirectiveLocation;
|
|
|
1269
1284
|
*/
|
|
1270
1285
|
});
|
|
1271
1286
|
|
|
1272
|
-
var kinds =
|
|
1287
|
+
var kinds = createCommonjsModule(function (module, exports) {
|
|
1273
1288
|
|
|
1274
1289
|
Object.defineProperty(exports, '__esModule', {
|
|
1275
1290
|
value: true,
|
|
@@ -1334,7 +1349,7 @@ exports.Kind = Kind;
|
|
|
1334
1349
|
*/
|
|
1335
1350
|
});
|
|
1336
1351
|
|
|
1337
|
-
var characterClasses =
|
|
1352
|
+
var characterClasses = createCommonjsModule(function (module, exports) {
|
|
1338
1353
|
|
|
1339
1354
|
Object.defineProperty(exports, '__esModule', {
|
|
1340
1355
|
value: true,
|
|
@@ -1411,7 +1426,7 @@ function isNameContinue(code) {
|
|
|
1411
1426
|
}
|
|
1412
1427
|
});
|
|
1413
1428
|
|
|
1414
|
-
var blockString =
|
|
1429
|
+
var blockString = createCommonjsModule(function (module, exports) {
|
|
1415
1430
|
|
|
1416
1431
|
Object.defineProperty(exports, '__esModule', {
|
|
1417
1432
|
value: true,
|
|
@@ -1608,7 +1623,7 @@ function printBlockString(value, options) {
|
|
|
1608
1623
|
}
|
|
1609
1624
|
});
|
|
1610
1625
|
|
|
1611
|
-
var tokenKind =
|
|
1626
|
+
var tokenKind = createCommonjsModule(function (module, exports) {
|
|
1612
1627
|
|
|
1613
1628
|
Object.defineProperty(exports, '__esModule', {
|
|
1614
1629
|
value: true,
|
|
@@ -1653,7 +1668,7 @@ exports.TokenKind = TokenKind;
|
|
|
1653
1668
|
*/
|
|
1654
1669
|
});
|
|
1655
1670
|
|
|
1656
|
-
var lexer =
|
|
1671
|
+
var lexer = createCommonjsModule(function (module, exports) {
|
|
1657
1672
|
|
|
1658
1673
|
Object.defineProperty(exports, '__esModule', {
|
|
1659
1674
|
value: true,
|
|
@@ -2661,7 +2676,7 @@ function readName(lexer, start) {
|
|
|
2661
2676
|
}
|
|
2662
2677
|
});
|
|
2663
2678
|
|
|
2664
|
-
var devAssert_1 =
|
|
2679
|
+
var devAssert_1 = createCommonjsModule(function (module, exports) {
|
|
2665
2680
|
|
|
2666
2681
|
Object.defineProperty(exports, '__esModule', {
|
|
2667
2682
|
value: true,
|
|
@@ -2677,7 +2692,7 @@ function devAssert(condition, message) {
|
|
|
2677
2692
|
}
|
|
2678
2693
|
});
|
|
2679
2694
|
|
|
2680
|
-
var inspect_1 =
|
|
2695
|
+
var inspect_1 = createCommonjsModule(function (module, exports) {
|
|
2681
2696
|
|
|
2682
2697
|
Object.defineProperty(exports, '__esModule', {
|
|
2683
2698
|
value: true,
|
|
@@ -2800,7 +2815,7 @@ function getObjectTag(object) {
|
|
|
2800
2815
|
}
|
|
2801
2816
|
});
|
|
2802
2817
|
|
|
2803
|
-
var instanceOf_1 =
|
|
2818
|
+
var instanceOf_1 = createCommonjsModule(function (module, exports) {
|
|
2804
2819
|
|
|
2805
2820
|
Object.defineProperty(exports, '__esModule', {
|
|
2806
2821
|
value: true,
|
|
@@ -2826,7 +2841,7 @@ const instanceOf =
|
|
|
2826
2841
|
exports.instanceOf = instanceOf;
|
|
2827
2842
|
});
|
|
2828
2843
|
|
|
2829
|
-
var source =
|
|
2844
|
+
var source = createCommonjsModule(function (module, exports) {
|
|
2830
2845
|
|
|
2831
2846
|
Object.defineProperty(exports, '__esModule', {
|
|
2832
2847
|
value: true,
|
|
@@ -2893,7 +2908,7 @@ function isSource(source) {
|
|
|
2893
2908
|
}
|
|
2894
2909
|
});
|
|
2895
2910
|
|
|
2896
|
-
var parser =
|
|
2911
|
+
var parser = createCommonjsModule(function (module, exports) {
|
|
2897
2912
|
|
|
2898
2913
|
Object.defineProperty(exports, '__esModule', {
|
|
2899
2914
|
value: true,
|
|
@@ -4462,7 +4477,7 @@ function getTokenKindDesc(kind) {
|
|
|
4462
4477
|
}
|
|
4463
4478
|
});
|
|
4464
4479
|
|
|
4465
|
-
var printString_1 =
|
|
4480
|
+
var printString_1 = createCommonjsModule(function (module, exports) {
|
|
4466
4481
|
|
|
4467
4482
|
Object.defineProperty(exports, '__esModule', {
|
|
4468
4483
|
value: true,
|
|
@@ -4647,7 +4662,7 @@ const escapeSequences = [
|
|
|
4647
4662
|
];
|
|
4648
4663
|
});
|
|
4649
4664
|
|
|
4650
|
-
var visitor =
|
|
4665
|
+
var visitor = createCommonjsModule(function (module, exports) {
|
|
4651
4666
|
|
|
4652
4667
|
Object.defineProperty(exports, '__esModule', {
|
|
4653
4668
|
value: true,
|
|
@@ -5026,7 +5041,7 @@ function getVisitFn(visitor, kind, isLeaving) {
|
|
|
5026
5041
|
}
|
|
5027
5042
|
});
|
|
5028
5043
|
|
|
5029
|
-
var printer =
|
|
5044
|
+
var printer = createCommonjsModule(function (module, exports) {
|
|
5030
5045
|
|
|
5031
5046
|
Object.defineProperty(exports, '__esModule', {
|
|
5032
5047
|
value: true,
|
|
@@ -5460,7 +5475,7 @@ var _public = {
|
|
|
5460
5475
|
/* eslint-env browser */
|
|
5461
5476
|
var browser = typeof self == 'object' ? self.FormData : window.FormData;
|
|
5462
5477
|
|
|
5463
|
-
var defaultJsonSerializer =
|
|
5478
|
+
var defaultJsonSerializer = createCommonjsModule(function (module, exports) {
|
|
5464
5479
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5465
5480
|
exports.defaultJsonSerializer = void 0;
|
|
5466
5481
|
exports.defaultJsonSerializer = {
|
|
@@ -5470,8 +5485,8 @@ exports.defaultJsonSerializer = {
|
|
|
5470
5485
|
//# sourceMappingURL=defaultJsonSerializer.js.map
|
|
5471
5486
|
});
|
|
5472
5487
|
|
|
5473
|
-
var createRequestBody_1 =
|
|
5474
|
-
var __importDefault = (
|
|
5488
|
+
var createRequestBody_1 = createCommonjsModule(function (module, exports) {
|
|
5489
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
5475
5490
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
5476
5491
|
};
|
|
5477
5492
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -5527,7 +5542,7 @@ exports.default = createRequestBody;
|
|
|
5527
5542
|
//# sourceMappingURL=createRequestBody.js.map
|
|
5528
5543
|
});
|
|
5529
5544
|
|
|
5530
|
-
var parseArgs =
|
|
5545
|
+
var parseArgs = createCommonjsModule(function (module, exports) {
|
|
5531
5546
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5532
5547
|
exports.parseBatchRequestsExtendedArgs = exports.parseRawRequestExtendedArgs = exports.parseRequestExtendedArgs = exports.parseBatchRequestArgs = exports.parseRawRequestArgs = exports.parseRequestArgs = void 0;
|
|
5533
5548
|
function parseRequestArgs(documentOrOptions, variables, requestHeaders) {
|
|
@@ -5600,8 +5615,8 @@ exports.parseBatchRequestsExtendedArgs = parseBatchRequestsExtendedArgs;
|
|
|
5600
5615
|
//# sourceMappingURL=parseArgs.js.map
|
|
5601
5616
|
});
|
|
5602
5617
|
|
|
5603
|
-
var types =
|
|
5604
|
-
var __extends = (
|
|
5618
|
+
var types = createCommonjsModule(function (module, exports) {
|
|
5619
|
+
var __extends = (commonjsGlobal && commonjsGlobal.__extends) || (function () {
|
|
5605
5620
|
var extendStatics = function (d, b) {
|
|
5606
5621
|
extendStatics = Object.setPrototypeOf ||
|
|
5607
5622
|
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
@@ -5650,8 +5665,8 @@ exports.ClientError = ClientError;
|
|
|
5650
5665
|
//# sourceMappingURL=types.js.map
|
|
5651
5666
|
});
|
|
5652
5667
|
|
|
5653
|
-
var graphqlWs =
|
|
5654
|
-
var __assign = (
|
|
5668
|
+
var graphqlWs = createCommonjsModule(function (module, exports) {
|
|
5669
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5655
5670
|
__assign = Object.assign || function(t) {
|
|
5656
5671
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5657
5672
|
s = arguments[i];
|
|
@@ -5662,7 +5677,7 @@ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlob
|
|
|
5662
5677
|
};
|
|
5663
5678
|
return __assign.apply(this, arguments);
|
|
5664
5679
|
};
|
|
5665
|
-
var __awaiter = (
|
|
5680
|
+
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5666
5681
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5667
5682
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5668
5683
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -5671,7 +5686,7 @@ var __awaiter = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlo
|
|
|
5671
5686
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5672
5687
|
});
|
|
5673
5688
|
};
|
|
5674
|
-
var __generator = (
|
|
5689
|
+
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
5675
5690
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
5676
5691
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
5677
5692
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -5924,8 +5939,8 @@ function Complete(id) {
|
|
|
5924
5939
|
//# sourceMappingURL=graphql-ws.js.map
|
|
5925
5940
|
});
|
|
5926
5941
|
|
|
5927
|
-
var dist =
|
|
5928
|
-
var __assign = (
|
|
5942
|
+
var dist = createCommonjsModule(function (module, exports) {
|
|
5943
|
+
var __assign = (commonjsGlobal && commonjsGlobal.__assign) || function () {
|
|
5929
5944
|
__assign = Object.assign || function(t) {
|
|
5930
5945
|
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5931
5946
|
s = arguments[i];
|
|
@@ -5936,26 +5951,26 @@ var __assign = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlob
|
|
|
5936
5951
|
};
|
|
5937
5952
|
return __assign.apply(this, arguments);
|
|
5938
5953
|
};
|
|
5939
|
-
var __createBinding = (
|
|
5954
|
+
var __createBinding = (commonjsGlobal && commonjsGlobal.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5940
5955
|
if (k2 === undefined) k2 = k;
|
|
5941
5956
|
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5942
5957
|
}) : (function(o, m, k, k2) {
|
|
5943
5958
|
if (k2 === undefined) k2 = k;
|
|
5944
5959
|
o[k2] = m[k];
|
|
5945
5960
|
}));
|
|
5946
|
-
var __setModuleDefault = (
|
|
5961
|
+
var __setModuleDefault = (commonjsGlobal && commonjsGlobal.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
5947
5962
|
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
5948
5963
|
}) : function(o, v) {
|
|
5949
5964
|
o["default"] = v;
|
|
5950
5965
|
});
|
|
5951
|
-
var __importStar = (
|
|
5966
|
+
var __importStar = (commonjsGlobal && commonjsGlobal.__importStar) || function (mod) {
|
|
5952
5967
|
if (mod && mod.__esModule) return mod;
|
|
5953
5968
|
var result = {};
|
|
5954
5969
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
5955
5970
|
__setModuleDefault(result, mod);
|
|
5956
5971
|
return result;
|
|
5957
5972
|
};
|
|
5958
|
-
var __awaiter = (
|
|
5973
|
+
var __awaiter = (commonjsGlobal && commonjsGlobal.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
5959
5974
|
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
5960
5975
|
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5961
5976
|
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
@@ -5964,7 +5979,7 @@ var __awaiter = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlo
|
|
|
5964
5979
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
5965
5980
|
});
|
|
5966
5981
|
};
|
|
5967
|
-
var __generator = (
|
|
5982
|
+
var __generator = (commonjsGlobal && commonjsGlobal.__generator) || function (thisArg, body) {
|
|
5968
5983
|
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
5969
5984
|
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
5970
5985
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
@@ -5991,7 +6006,7 @@ var __generator = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsG
|
|
|
5991
6006
|
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
5992
6007
|
}
|
|
5993
6008
|
};
|
|
5994
|
-
var __rest = (
|
|
6009
|
+
var __rest = (commonjsGlobal && commonjsGlobal.__rest) || function (s, e) {
|
|
5995
6010
|
var t = {};
|
|
5996
6011
|
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5997
6012
|
t[p] = s[p];
|
|
@@ -6002,7 +6017,7 @@ var __rest = (_commonjsHelpers.commonjsGlobal && _commonjsHelpers.commonjsGlobal
|
|
|
6002
6017
|
}
|
|
6003
6018
|
return t;
|
|
6004
6019
|
};
|
|
6005
|
-
var __importDefault = (
|
|
6020
|
+
var __importDefault = (commonjsGlobal && commonjsGlobal.__importDefault) || function (mod) {
|
|
6006
6021
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
6007
6022
|
};
|
|
6008
6023
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -6444,6 +6459,9 @@ class UrlUtils {
|
|
|
6444
6459
|
static getResourceIdFromUrlToken(url) {
|
|
6445
6460
|
try {
|
|
6446
6461
|
const parts = url.split('/');
|
|
6462
|
+
if (!parts[1]) {
|
|
6463
|
+
return null;
|
|
6464
|
+
}
|
|
6447
6465
|
const encodedValue = parts[1];
|
|
6448
6466
|
return atob(encodedValue);
|
|
6449
6467
|
}
|
|
@@ -6457,10 +6475,13 @@ class UrlUtils {
|
|
|
6457
6475
|
*/
|
|
6458
6476
|
static getPkObjectFromUrlToken(url) {
|
|
6459
6477
|
try {
|
|
6460
|
-
|
|
6461
|
-
|
|
6462
|
-
|
|
6463
|
-
|
|
6478
|
+
let pkObjectPart = url.split('/')[2];
|
|
6479
|
+
if (!pkObjectPart)
|
|
6480
|
+
return null;
|
|
6481
|
+
if (pkObjectPart.indexOf('&') > -1) {
|
|
6482
|
+
return JSON.parse(atob(pkObjectPart.split('&')[0]));
|
|
6483
|
+
}
|
|
6484
|
+
return JSON.parse(atob(pkObjectPart));
|
|
6464
6485
|
}
|
|
6465
6486
|
catch (error) {
|
|
6466
6487
|
throw new Error('Erro ao obter a PK do objeto:' + error);
|
|
@@ -6468,21 +6489,6 @@ class UrlUtils {
|
|
|
6468
6489
|
}
|
|
6469
6490
|
}
|
|
6470
6491
|
|
|
6471
|
-
class ServiceBrokerRecaller {
|
|
6472
|
-
constructor(serviceName, requestBody, successCallback, errorCallback) {
|
|
6473
|
-
this.serviceName = serviceName;
|
|
6474
|
-
this.requestBody = requestBody;
|
|
6475
|
-
this.successCallback = successCallback;
|
|
6476
|
-
this.errorCallback = errorCallback;
|
|
6477
|
-
}
|
|
6478
|
-
reCall(requestBody) {
|
|
6479
|
-
if (requestBody) {
|
|
6480
|
-
this.requestBody = requestBody;
|
|
6481
|
-
}
|
|
6482
|
-
return DataFetcher.get().callServiceBroker(this.serviceName, this.requestBody).then(this.successCallback, this.errorCallback);
|
|
6483
|
-
}
|
|
6484
|
-
}
|
|
6485
|
-
|
|
6486
6492
|
class GraphQLRecaller {
|
|
6487
6493
|
constructor(req, resolve, reject) {
|
|
6488
6494
|
this.req = req;
|
|
@@ -6509,6 +6515,21 @@ class GraphQLRecaller {
|
|
|
6509
6515
|
}
|
|
6510
6516
|
}
|
|
6511
6517
|
|
|
6518
|
+
class ServiceBrokerRecaller {
|
|
6519
|
+
constructor(serviceName, requestBody, successCallback, errorCallback) {
|
|
6520
|
+
this.serviceName = serviceName;
|
|
6521
|
+
this.requestBody = requestBody;
|
|
6522
|
+
this.successCallback = successCallback;
|
|
6523
|
+
this.errorCallback = errorCallback;
|
|
6524
|
+
}
|
|
6525
|
+
reCall(requestBody) {
|
|
6526
|
+
if (requestBody) {
|
|
6527
|
+
this.requestBody = requestBody;
|
|
6528
|
+
}
|
|
6529
|
+
return DataFetcher.get().callServiceBroker(this.serviceName, this.requestBody).then(this.successCallback, this.errorCallback);
|
|
6530
|
+
}
|
|
6531
|
+
}
|
|
6532
|
+
|
|
6512
6533
|
var __asyncValues = (undefined && undefined.__asyncValues) || function (o) {
|
|
6513
6534
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
6514
6535
|
var m = o[Symbol.asyncIterator], i;
|
|
@@ -6518,7 +6539,6 @@ var __asyncValues = (undefined && undefined.__asyncValues) || function (o) {
|
|
|
6518
6539
|
};
|
|
6519
6540
|
class DataFetcher {
|
|
6520
6541
|
constructor() {
|
|
6521
|
-
this.GRAPHQL_PATH = `/${window.MGE_MODULE_NAME || 'mgefin-bff'}/graphql`;
|
|
6522
6542
|
this.ready = true;
|
|
6523
6543
|
this.watingRequestsById = new Map();
|
|
6524
6544
|
}
|
|
@@ -6540,6 +6560,12 @@ class DataFetcher {
|
|
|
6540
6560
|
this.instance.application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
6541
6561
|
return this.instance;
|
|
6542
6562
|
}
|
|
6563
|
+
static getGraphQLPath() {
|
|
6564
|
+
if (core.StringUtils.isEmpty(this.instance.graphqlPath) && this.instance.application != undefined) {
|
|
6565
|
+
this.instance.graphqlPath = `/${this.instance.application.getModuleName()}/graphql`;
|
|
6566
|
+
}
|
|
6567
|
+
return this.instance.graphqlPath;
|
|
6568
|
+
}
|
|
6543
6569
|
static addRequestListener(listener) {
|
|
6544
6570
|
const index = DataFetcher.requestListener.indexOf(listener);
|
|
6545
6571
|
if (index < 0) {
|
|
@@ -6589,7 +6615,7 @@ class DataFetcher {
|
|
|
6589
6615
|
}
|
|
6590
6616
|
return new core.ErrorException(title, statusMessage, tsErrorCode);
|
|
6591
6617
|
}
|
|
6592
|
-
async callGraphQL(req) {
|
|
6618
|
+
async callGraphQL(req, quietMode = false) {
|
|
6593
6619
|
var _a;
|
|
6594
6620
|
if (this.ready) {
|
|
6595
6621
|
this.pause();
|
|
@@ -6607,22 +6633,22 @@ class DataFetcher {
|
|
|
6607
6633
|
if (this.ready) {
|
|
6608
6634
|
return new Promise(async (resolve, reject) => {
|
|
6609
6635
|
let query = this.getQueryTemplate(req);
|
|
6610
|
-
const res = await this.
|
|
6636
|
+
const res = await this.fecthGraphQL([{ document: query, variables: req.values }], quietMode);
|
|
6611
6637
|
if (res.errors.length > 0) {
|
|
6612
|
-
if (!this.proccesGraphQLClientEvents(res === null || res === void 0 ? void 0 : res.extensions, req, resolve, reject)) {
|
|
6638
|
+
if (!(await this.proccesGraphQLClientEvents(res === null || res === void 0 ? void 0 : res.extensions, req, resolve, reject))) {
|
|
6613
6639
|
const error = this.processGraphQlErrorInfo(res.errors);
|
|
6614
6640
|
reject(error);
|
|
6615
6641
|
}
|
|
6616
6642
|
}
|
|
6617
6643
|
else {
|
|
6618
6644
|
resolve(res.data[0][reqKey]);
|
|
6619
|
-
this.proccesGraphQLClientEvents(res === null || res === void 0 ? void 0 : res.extensions, req, resolve, reject);
|
|
6645
|
+
await this.proccesGraphQLClientEvents(res === null || res === void 0 ? void 0 : res.extensions, req, resolve, reject);
|
|
6620
6646
|
}
|
|
6621
6647
|
});
|
|
6622
6648
|
}
|
|
6623
6649
|
else {
|
|
6624
6650
|
if (!this.watingRequestsById.has(reqKey)) {
|
|
6625
|
-
this.watingRequestsById.set(reqKey, new WaitingRequest(req));
|
|
6651
|
+
this.watingRequestsById.set(reqKey, new WaitingRequest(req, quietMode));
|
|
6626
6652
|
}
|
|
6627
6653
|
return (_a = this.watingRequestsById.get(reqKey)) === null || _a === void 0 ? void 0 : _a.promise;
|
|
6628
6654
|
}
|
|
@@ -6630,7 +6656,7 @@ class DataFetcher {
|
|
|
6630
6656
|
resolveURL() {
|
|
6631
6657
|
return UrlUtils.getUrlBase();
|
|
6632
6658
|
}
|
|
6633
|
-
proccesGraphQLClientEvents(extensions, originalRequest, resolve, reject) {
|
|
6659
|
+
async proccesGraphQLClientEvents(extensions, originalRequest, resolve, reject) {
|
|
6634
6660
|
if (extensions == undefined) {
|
|
6635
6661
|
return false;
|
|
6636
6662
|
}
|
|
@@ -6645,8 +6671,8 @@ class DataFetcher {
|
|
|
6645
6671
|
throw new core.WarningException("ClientEvent não registrado", `Ocorreu o client event ${id} porém não há client event registrado na aplicação.`);
|
|
6646
6672
|
}
|
|
6647
6673
|
const handlers = DataFetcher.clientEventsByID.get(id);
|
|
6648
|
-
handlers.forEach(handler => {
|
|
6649
|
-
handler({ id, content: JSON.parse(clientEvents[id]) }, new GraphQLRecaller(originalRequest, resolve, reject));
|
|
6674
|
+
handlers.forEach(async (handler) => {
|
|
6675
|
+
await handler({ id, content: JSON.parse(clientEvents[id]) }, new GraphQLRecaller(originalRequest, resolve, reject));
|
|
6650
6676
|
});
|
|
6651
6677
|
}
|
|
6652
6678
|
return Object.keys(clientEvents).length > 0;
|
|
@@ -6720,9 +6746,9 @@ class DataFetcher {
|
|
|
6720
6746
|
const urlParams = UrlUtils.getQueryParams(location.search);
|
|
6721
6747
|
return {
|
|
6722
6748
|
baseUrl: `${this.resolveURL()}/${module}/service.sbr`,
|
|
6723
|
-
appName: "SankhyaBlocks",
|
|
6749
|
+
appName: window['APPLICATION_NAME'] || "SankhyaBlocks",
|
|
6724
6750
|
mgeSession: `${window['mgeSession'] || urlParams.get("mgeSession")}`,
|
|
6725
|
-
globalID:
|
|
6751
|
+
globalID: window['GLOBALID'] || core.StringUtils.generateUUID(),
|
|
6726
6752
|
resourceID: (window["resourceID"] || ((_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID))
|
|
6727
6753
|
};
|
|
6728
6754
|
}
|
|
@@ -6838,44 +6864,54 @@ class DataFetcher {
|
|
|
6838
6864
|
}
|
|
6839
6865
|
async executePendingRequest(watingRequestsById) {
|
|
6840
6866
|
const requestsBatch = [];
|
|
6841
|
-
|
|
6842
|
-
|
|
6867
|
+
let quietMode = true;
|
|
6868
|
+
watingRequestsById.forEach((waitingReq) => {
|
|
6869
|
+
const query = this.getQueryTemplate(waitingReq.request);
|
|
6843
6870
|
requestsBatch.push({ document: query, variables: Object.assign({}, waitingReq.request.values) });
|
|
6871
|
+
quietMode = quietMode && waitingReq.quietMode;
|
|
6844
6872
|
});
|
|
6845
|
-
|
|
6846
|
-
|
|
6847
|
-
let errorsResponse = [];
|
|
6848
|
-
res = await this.fecthGrapql(requestsBatch);
|
|
6849
|
-
dataResponse = res.data;
|
|
6850
|
-
errorsResponse = res.errors;
|
|
6873
|
+
const response = await this.fecthGraphQL(requestsBatch, quietMode);
|
|
6874
|
+
const { data: dataResponse, errors: errorsResponse, extensions } = response;
|
|
6851
6875
|
//Reject promises with errors from query
|
|
6852
6876
|
errorsResponse.forEach((errorResponse) => {
|
|
6853
|
-
Object.entries(errorResponse).forEach(([
|
|
6877
|
+
Object.entries(errorResponse).forEach(async ([key, val]) => {
|
|
6854
6878
|
var _a;
|
|
6855
|
-
|
|
6879
|
+
const waitingRequest = watingRequestsById.get(val.request.variables[val.index].queryID);
|
|
6880
|
+
const hasClientEvent = await this.proccesGraphQLClientEvents(extensions, waitingRequest.request, waitingRequest.resolve, waitingRequest.reject);
|
|
6881
|
+
if (!hasClientEvent) {
|
|
6882
|
+
(((_a = watingRequestsById.get(val.request.variables[val.index].queryID)) === null || _a === void 0 ? void 0 : _a.reject) || Promise.reject)(new core.ErrorException("Falha detectada", val.message));
|
|
6883
|
+
}
|
|
6856
6884
|
});
|
|
6857
6885
|
});
|
|
6858
6886
|
//Resolve promises with data from query
|
|
6859
6887
|
dataResponse.forEach((data) => {
|
|
6860
|
-
Object.entries(data).forEach(([key, val]) => {
|
|
6861
|
-
|
|
6862
|
-
|
|
6888
|
+
Object.entries(data).forEach(async ([key, val]) => {
|
|
6889
|
+
const waitingRequest = watingRequestsById.get(key);
|
|
6890
|
+
await this.proccesGraphQLClientEvents(extensions, waitingRequest.request, waitingRequest.resolve, waitingRequest.reject);
|
|
6891
|
+
((waitingRequest === null || waitingRequest === void 0 ? void 0 : waitingRequest.resolve) || Promise.resolve)(val);
|
|
6863
6892
|
});
|
|
6864
6893
|
});
|
|
6865
6894
|
}
|
|
6866
|
-
|
|
6867
|
-
|
|
6868
|
-
let
|
|
6869
|
-
|
|
6870
|
-
|
|
6871
|
-
|
|
6872
|
-
if (
|
|
6873
|
-
url +=
|
|
6895
|
+
buildGraphQlURL(quietMode) {
|
|
6896
|
+
const mgeSession = window["mgeSession"];
|
|
6897
|
+
let url = `${this.resolveURL() + DataFetcher.getGraphQLPath()}`;
|
|
6898
|
+
if (mgeSession) {
|
|
6899
|
+
url += `?mgeSession=${mgeSession}`;
|
|
6900
|
+
}
|
|
6901
|
+
if (quietMode) {
|
|
6902
|
+
url += `${url.indexOf("?") > -1 ? "&" : "?"}quietMode=true`;
|
|
6874
6903
|
}
|
|
6875
|
-
|
|
6904
|
+
return url;
|
|
6905
|
+
}
|
|
6906
|
+
async fecthGraphQL(request, quietMode) {
|
|
6907
|
+
const dataResponse = [];
|
|
6908
|
+
const errorsResponse = [];
|
|
6909
|
+
const responseExtensions = [];
|
|
6910
|
+
const url = this.buildGraphQlURL(quietMode);
|
|
6911
|
+
DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request }));
|
|
6876
6912
|
try {
|
|
6877
|
-
|
|
6878
|
-
|
|
6913
|
+
const response = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=${window['SERVER_ENCODING'] || 'UTF-8'}` });
|
|
6914
|
+
response.forEach((resItem, index) => {
|
|
6879
6915
|
var _a;
|
|
6880
6916
|
if (((_a = resItem === null || resItem === void 0 ? void 0 : resItem.errors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
6881
6917
|
errorsResponse.push(resItem.errors.map((item) => this.normalizeErrorResponse(item, request, index)));
|
|
@@ -6890,7 +6926,7 @@ class DataFetcher {
|
|
|
6890
6926
|
}
|
|
6891
6927
|
catch (err) {
|
|
6892
6928
|
if (!this.isHttpError(err)) {
|
|
6893
|
-
res = err.response;
|
|
6929
|
+
const res = err.response;
|
|
6894
6930
|
const req = err.request;
|
|
6895
6931
|
Object.entries(res).forEach(([key, val]) => {
|
|
6896
6932
|
if (val.errors) {
|
|
@@ -6906,11 +6942,11 @@ class DataFetcher {
|
|
|
6906
6942
|
});
|
|
6907
6943
|
}
|
|
6908
6944
|
else {
|
|
6909
|
-
DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url
|
|
6945
|
+
DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url, requestBody: request }));
|
|
6910
6946
|
throw new core.ErrorException("Falha de comunicação", err.message);
|
|
6911
6947
|
}
|
|
6912
6948
|
}
|
|
6913
|
-
DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url
|
|
6949
|
+
DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url, requestBody: request }));
|
|
6914
6950
|
return { data: dataResponse, errors: errorsResponse, extensions: responseExtensions };
|
|
6915
6951
|
}
|
|
6916
6952
|
isHttpError(err) {
|
|
@@ -6956,7 +6992,7 @@ DataFetcher.SERVICE_BROKER_STATUS = {
|
|
|
6956
6992
|
};
|
|
6957
6993
|
DataFetcher.clientEventsByID = new Map();
|
|
6958
6994
|
class WaitingRequest {
|
|
6959
|
-
constructor(req) {
|
|
6995
|
+
constructor(req, quietMode) {
|
|
6960
6996
|
this._resolve = () => { };
|
|
6961
6997
|
this._reject = () => { };
|
|
6962
6998
|
this._request = undefined;
|
|
@@ -6965,6 +7001,7 @@ class WaitingRequest {
|
|
|
6965
7001
|
this._resolve = resolve;
|
|
6966
7002
|
this._reject = reject;
|
|
6967
7003
|
});
|
|
7004
|
+
this._quietMode = quietMode;
|
|
6968
7005
|
}
|
|
6969
7006
|
get resolve() {
|
|
6970
7007
|
return this._resolve;
|
|
@@ -6978,6 +7015,9 @@ class WaitingRequest {
|
|
|
6978
7015
|
get request() {
|
|
6979
7016
|
return this._request;
|
|
6980
7017
|
}
|
|
7018
|
+
get quietMode() {
|
|
7019
|
+
return this._quietMode;
|
|
7020
|
+
}
|
|
6981
7021
|
}
|
|
6982
7022
|
|
|
6983
7023
|
exports.DataFetcher = DataFetcher;
|