@sankhyalabs/sankhyablocks 10.1.0-dev.4 → 10.1.0-dev.40
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-b29e31be.js → ConfigStorage-a1fab5ca.js} +19 -2
- package/dist/cjs/ContinuousInsertUtils-1ae0c6ac.js +41 -0
- package/dist/cjs/{DataFetcher-ed9d97ea.js → DataFetcher-384d2ce8.js} +2 -2733
- package/dist/cjs/{FormConfigHelper-ebb77625.js → FormConfigHelper-28fe4668.js} +44 -0
- package/dist/cjs/{ISave-81eb2fbc.js → ISave-ecbe9336.js} +1 -1
- package/dist/cjs/ImageUtils-c46f2d11.js +142 -0
- package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
- package/dist/cjs/{SnkFormConfigManager-6838389c.js → SnkFormConfigManager-44386305.js} +7 -7
- package/dist/cjs/SnkMessageBuilder-a9300ebe.js +2833 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-1e804147.js → SnkMultiSelectionListDataSource-b951ed91.js} +61 -47
- package/dist/cjs/{auth-fetcher-cc28d847.js → auth-fetcher-6b134ec4.js} +1 -1
- package/dist/cjs/config-header.cjs.entry.js +1 -1
- package/dist/cjs/configs-button.cjs.entry.js +1 -1
- package/dist/cjs/css-shim-a27d231b.js +6 -0
- package/dist/cjs/{dataunit-fetcher-ab1cc071.js → dataunit-fetcher-93f53260.js} +26 -3
- package/dist/cjs/dom-ff96a4bc.js +75 -0
- package/dist/cjs/field-config_2.cjs.entry.js +3 -3
- package/dist/cjs/fields-layout.cjs.entry.js +8 -5
- package/dist/cjs/fields-selector.cjs.entry.js +3 -3
- package/dist/cjs/{form-config-fetcher-f0897eb5.js → form-config-fetcher-45d1964c.js} +19 -1
- package/dist/cjs/guides-configurator.cjs.entry.js +6 -4
- package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1529 -177
- package/dist/cjs/{index-13d05f03.js → index-f0fe7e6e.js} +90 -21
- package/dist/cjs/loader.cjs.js +16 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +6 -5
- package/dist/cjs/sankhyablocks.cjs.js +132 -4
- package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
- package/dist/cjs/snk-actions-button_9.cjs.entry.js +147 -101
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +29 -9
- package/dist/cjs/snk-attach.cjs.entry.js +53 -26
- package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +351 -108
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-custom-slot-guide.cjs.entry.js +40 -0
- package/dist/cjs/snk-data-exporter.cjs.entry.js +9 -7
- package/dist/cjs/{snk-data-unit-68992932.js → snk-data-unit-6abc5efc.js} +21 -12
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -4
- package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +19 -20
- package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-entity-search.cjs.entry.js +211 -0
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +2 -2
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
- package/dist/cjs/{snk-filter-advanced-mode_2.cjs.entry.js → snk-filter-advanced-mode_3.cjs.entry.js} +41 -3
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +147 -94
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -4
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +11 -7
- package/dist/cjs/snk-filter-period.cjs.entry.js +14 -7
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +70 -8
- package/dist/cjs/snk-form_2.cjs.entry.js +34 -10
- package/dist/cjs/snk-grid.cjs.entry.js +63 -30
- package/dist/cjs/{snk-guides-viewer-8b841753.js → snk-guides-viewer-b4ca3437.js} +114 -188
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +11 -18
- package/dist/cjs/snk-image-input.cjs.entry.js +148 -0
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +72 -0
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +8 -7
- package/dist/cjs/snk-pesquisa.cjs.entry.js +6 -6
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +30 -35
- package/dist/cjs/snk-taskbar.cjs.entry.js +237 -168
- package/dist/cjs/{sortable.esm-9a110bb7.js → sortable.esm-b87669ab.js} +76 -90
- package/dist/cjs/taskbar-elements-80eddec8.js +152 -0
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +10 -1
- package/dist/collection/components/snk-actions-button/snk-actions-button.js +27 -3
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -0
- package/dist/collection/components/snk-application/snk-application.js +20 -2
- package/dist/collection/components/snk-attach/snk-attach.css +29 -7
- package/dist/collection/components/snk-attach/snk-attach.js +82 -19
- package/dist/collection/components/snk-crud/snk-crud.css +46 -0
- package/dist/collection/components/snk-crud/snk-crud.js +190 -96
- package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +5 -5
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.css +17 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-entity-search.js +330 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +90 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.css +22 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +165 -179
- package/dist/collection/components/snk-crud/utils/taskbarUtils.js +144 -0
- package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.css +3 -0
- package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.js +95 -0
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +20 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +9 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +13 -9
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +14 -7
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +5 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -2
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +7 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +22 -8
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +166 -78
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +42 -0
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -6
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +6 -3
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -4
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +5 -3
- package/dist/collection/components/snk-form-config/snk-form-config.js +53 -6
- package/dist/collection/components/snk-grid/snk-grid.css +24 -3
- package/dist/collection/components/snk-grid/snk-grid.js +170 -18
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +140 -39
- package/dist/collection/components/snk-image-input/snk-image-input.css +3 -0
- package/dist/collection/components/snk-image-input/snk-image-input.js +326 -0
- package/dist/collection/components/snk-image-input/utils/ImageUtils.js +133 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +1 -1
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +1 -1
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +0 -4
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +35 -23
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +8 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +38 -2
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +54 -37
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +27 -1
- package/dist/collection/components/snk-taskbar/processor/simple-taskbar-processor.js +55 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +44 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +304 -174
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.css +12 -0
- package/dist/collection/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.js +19 -0
- package/dist/collection/lib/configs/ConfigStorage.js +5 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +24 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +12 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +18 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
- package/dist/collection/lib/message/messageResourceEnUSUtils.js +2 -0
- package/dist/collection/lib/message/messageResourceEsESUtils.js +2 -0
- package/dist/collection/lib/message/messageResourcePtBRUtils.js +2 -0
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +7 -0
- package/dist/collection/lib/message/resources/en-us/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -2
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +7 -0
- package/dist/collection/lib/message/resources/es-es/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +8 -0
- package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +1 -1
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +9 -1
- package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +8 -1
- package/dist/collection/lib/message/resources/pt-br/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -2
- package/dist/components/ConfigStorage.js +17 -0
- package/dist/components/ContinuousInsertUtils.js +1 -1
- package/dist/components/DataFetcher.js +3 -2713
- package/dist/components/PersonalizedFilterUtils.js +13 -0
- package/dist/components/SnkFormConfigManager.js +6 -6
- package/dist/components/SnkMessageBuilder.js +2831 -0
- package/dist/components/dataunit-fetcher.js +25 -2
- package/dist/components/field-config2.js +44 -2
- package/dist/components/fields-layout2.js +6 -3
- package/dist/components/form-config-fetcher.js +18 -0
- package/dist/components/guides-configurator2.js +5 -3
- package/dist/components/index.d.ts +4 -0
- package/dist/components/index.js +4 -0
- package/dist/components/index2.js +90 -21
- package/dist/components/snk-actions-button2.js +6 -3
- package/dist/components/snk-application2.js +22 -2
- package/dist/components/snk-attach2.js +59 -29
- package/dist/components/snk-crud.js +435 -174
- package/dist/components/snk-custom-slot-guide.d.ts +11 -0
- package/dist/components/snk-custom-slot-guide.js +55 -0
- package/dist/components/snk-data-exporter2.js +3 -1
- package/dist/components/snk-data-unit2.js +10 -1
- package/dist/components/snk-detail-view2.js +250 -292
- package/dist/components/snk-entity-search.d.ts +11 -0
- package/dist/components/snk-entity-search.js +6 -0
- package/dist/components/snk-entity-search2.js +231 -0
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-filter-bar2.js +116 -80
- package/dist/components/snk-filter-detail2.js +1 -1
- package/dist/components/snk-filter-item2.js +9 -3
- package/dist/components/snk-filter-modal2.js +22 -9
- package/dist/components/snk-filter-number.js +12 -8
- package/dist/components/snk-filter-period.js +13 -6
- package/dist/components/snk-filter-text.js +1 -1
- package/dist/components/snk-form-config2.js +29 -5
- package/dist/components/snk-form-view2.js +79 -10
- package/dist/components/snk-grid-config2.js +96 -38
- package/dist/components/snk-grid2.js +103 -59
- package/dist/components/snk-image-input.d.ts +11 -0
- package/dist/components/snk-image-input.js +6 -0
- package/dist/components/snk-image-input2.js +302 -0
- package/dist/components/snk-layout-form-config2.js +1 -1
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-pesquisa2.js +0 -1
- package/dist/components/snk-simple-crud2.js +47 -46
- package/dist/components/snk-taskbar-skeleton.d.ts +11 -0
- package/dist/components/snk-taskbar-skeleton.js +6 -0
- package/dist/components/snk-taskbar-skeleton2.js +29 -0
- package/dist/components/snk-taskbar2.js +310 -218
- package/dist/components/snk-view-representation2.js +1 -1
- package/dist/components/sortable.esm.js +76 -90
- package/dist/components/taskbar-actions-button2.js +21 -2
- package/dist/components/taskbar-split-button2.js +10 -1
- package/dist/esm/{ConfigStorage-13d80e36.js → ConfigStorage-76872695.js} +19 -2
- package/dist/esm/ContinuousInsertUtils-bce77dc1.js +39 -0
- package/dist/esm/{DataFetcher-f4ccd9f3.js → DataFetcher-e60f8d53.js} +3 -2713
- package/dist/esm/{FormConfigHelper-4e42f0b6.js → FormConfigHelper-d09669f3.js} +43 -1
- package/dist/esm/{ISave-288fa9df.js → ISave-4929c071.js} +1 -1
- package/dist/esm/ImageUtils-7f3a4149.js +136 -0
- package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
- package/dist/esm/{SnkFormConfigManager-3ee2937b.js → SnkFormConfigManager-83f6b22f.js} +7 -7
- package/dist/esm/SnkMessageBuilder-1eb7a1af.js +2831 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-5d3a93f2.js → SnkMultiSelectionListDataSource-7fe25a58.js} +55 -41
- package/dist/esm/{auth-fetcher-59ab0c67.js → auth-fetcher-1a31c1e4.js} +1 -1
- package/dist/esm/config-header.entry.js +1 -1
- package/dist/esm/configs-button.entry.js +1 -1
- package/dist/esm/css-shim-9f2d321e.js +4 -0
- package/dist/esm/{dataunit-fetcher-c4f9f222.js → dataunit-fetcher-050b6d31.js} +25 -2
- package/dist/esm/dom-64053c71.js +73 -0
- package/dist/esm/field-config_2.entry.js +3 -3
- package/dist/esm/fields-layout.entry.js +8 -5
- package/dist/esm/fields-selector.entry.js +3 -3
- package/dist/esm/{form-config-fetcher-6a00fe9e.js → form-config-fetcher-b44b2727.js} +19 -1
- package/dist/esm/guides-configurator.entry.js +6 -4
- package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1521 -177
- package/dist/esm/{index-446f9341.js → index-ea250be6.js} +90 -21
- package/dist/esm/loader.js +17 -3
- package/dist/esm/pesquisa-grid_2.entry.js +6 -5
- package/dist/esm/sankhyablocks.js +133 -5
- package/dist/esm/shadow-css-98135883.js +387 -0
- package/dist/esm/snk-actions-button_9.entry.js +148 -102
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +28 -8
- package/dist/esm/snk-attach.entry.js +52 -25
- package/dist/esm/snk-client-confirm.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +343 -100
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-custom-slot-guide.entry.js +36 -0
- package/dist/esm/snk-data-exporter.entry.js +9 -7
- package/dist/esm/{snk-data-unit-0edeb967.js → snk-data-unit-ca2c9858.js} +12 -3
- package/dist/esm/snk-data-unit.entry.js +5 -4
- package/dist/esm/snk-default-filter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +17 -18
- package/dist/esm/snk-entity-list.entry.js +1 -1
- package/dist/esm/snk-entity-search.entry.js +207 -0
- package/dist/esm/snk-exporter-email-sender.entry.js +2 -2
- package/dist/esm/snk-expression-group_2.entry.js +2 -2
- package/dist/esm/{snk-filter-advanced-mode_2.entry.js → snk-filter-advanced-mode_3.entry.js} +41 -4
- package/dist/esm/snk-filter-bar_4.entry.js +148 -95
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
- package/dist/esm/snk-filter-detail.entry.js +3 -3
- package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
- package/dist/esm/snk-filter-modal-item.entry.js +5 -4
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +11 -7
- package/dist/esm/snk-filter-period.entry.js +14 -7
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +2 -2
- package/dist/esm/snk-form-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +71 -9
- package/dist/esm/snk-form_2.entry.js +34 -10
- package/dist/esm/snk-grid.entry.js +60 -27
- package/dist/esm/{snk-guides-viewer-9cd4d20f.js → snk-guides-viewer-cc37535b.js} +115 -189
- package/dist/esm/snk-guides-viewer.entry.js +11 -18
- package/dist/esm/snk-image-input.entry.js +144 -0
- package/dist/esm/snk-layout-form-config.entry.js +68 -0
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +8 -7
- package/dist/esm/snk-pesquisa.entry.js +6 -6
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +28 -33
- package/dist/esm/snk-taskbar.entry.js +238 -169
- package/dist/esm/{sortable.esm-842f85a3.js → sortable.esm-bc277c12.js} +76 -90
- package/dist/esm/taskbar-elements-63651ca7.js +149 -0
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/p-09ba6bd4.js +1 -0
- package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-0a160fb5.entry.js} +1 -1
- package/dist/sankhyablocks/p-10f27dc6.entry.js +1 -0
- package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
- package/dist/sankhyablocks/p-20af4b6a.entry.js +1 -0
- package/dist/sankhyablocks/p-225f92cf.entry.js +1 -0
- package/dist/sankhyablocks/p-251aee41.entry.js +11 -0
- package/dist/sankhyablocks/{p-c4fcf1fb.entry.js → p-27e0cd68.entry.js} +1 -1
- package/dist/sankhyablocks/p-2af815bb.entry.js +1 -0
- package/dist/sankhyablocks/p-2af8aca3.js +1 -0
- package/dist/sankhyablocks/p-2c9d0870.js +2 -0
- package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-2cc2526e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
- package/dist/sankhyablocks/p-3072136e.js +1 -0
- package/dist/sankhyablocks/p-33492640.entry.js +1 -0
- package/dist/sankhyablocks/p-35317d9a.entry.js +1 -0
- package/dist/sankhyablocks/{p-1c2971e4.js → p-3704bf1b.js} +1 -1
- package/dist/sankhyablocks/p-3870748a.js +28 -0
- package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
- package/dist/sankhyablocks/{p-78ff8734.js → p-3c990841.js} +2 -2
- package/dist/sankhyablocks/p-420b39b5.js +1 -0
- package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-438a225f.entry.js} +1 -1
- package/dist/sankhyablocks/p-46f75667.entry.js +1 -0
- package/dist/sankhyablocks/{p-53599b26.js → p-4f7adf97.js} +2 -2
- package/dist/sankhyablocks/p-554c0e54.js +1 -0
- package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
- package/dist/sankhyablocks/p-68c1a093.js +1 -0
- package/dist/sankhyablocks/p-6ae7543b.entry.js +1 -0
- package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
- package/dist/sankhyablocks/p-771b137e.js +1 -0
- package/dist/sankhyablocks/p-77f608bc.entry.js +1 -0
- package/dist/sankhyablocks/p-7c8bf699.entry.js +1 -0
- package/dist/sankhyablocks/p-855ccf64.entry.js +1 -0
- package/dist/sankhyablocks/p-8a8900a9.entry.js +1 -0
- package/dist/sankhyablocks/p-8b4d6719.js +1 -0
- package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
- package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
- package/dist/sankhyablocks/p-95af0bb1.entry.js +1 -0
- package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-9742ea0e.entry.js} +1 -1
- package/dist/sankhyablocks/p-98241c21.entry.js +1 -0
- package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
- package/dist/sankhyablocks/p-9e7dc97d.entry.js +1 -0
- package/dist/sankhyablocks/p-a2a9f520.entry.js +1 -0
- package/dist/sankhyablocks/p-a46ac091.js +1 -0
- package/dist/sankhyablocks/p-a73b6b00.js +1 -0
- package/dist/sankhyablocks/p-ab12f544.entry.js +1 -0
- package/dist/sankhyablocks/p-ab5e12fa.js +1 -0
- package/dist/sankhyablocks/p-ac384a1e.entry.js +1 -0
- package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
- package/dist/sankhyablocks/p-aff2d081.entry.js +1 -0
- package/dist/sankhyablocks/p-b3b51693.entry.js +1 -0
- package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
- package/dist/sankhyablocks/p-bab4cde4.entry.js +1 -0
- package/dist/sankhyablocks/p-c3ec6642.js +19 -0
- package/dist/sankhyablocks/p-cbb8e351.js +7 -0
- package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
- package/dist/sankhyablocks/p-ce3b284c.entry.js +1 -0
- package/dist/sankhyablocks/p-ce8ccd72.entry.js +1 -0
- package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
- package/dist/sankhyablocks/p-d972a9c1.js +60 -0
- package/dist/sankhyablocks/p-da455c82.js +12 -0
- package/dist/sankhyablocks/p-e5a3711f.js +1 -0
- package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-e737fd5a.entry.js} +1 -1
- package/dist/sankhyablocks/p-ee56dda6.entry.js +1 -0
- package/dist/sankhyablocks/p-ef9343c3.entry.js +1 -0
- package/dist/sankhyablocks/p-efd18bc2.entry.js +1 -0
- package/dist/sankhyablocks/{p-667cab42.entry.js → p-f152ef98.entry.js} +1 -1
- package/dist/sankhyablocks/p-f185d5ad.js +1 -0
- package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/snk-actions-button.d.ts +4 -0
- package/dist/types/components/snk-application/snk-application.d.ts +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +20 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +37 -9
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-entity-search.d.ts +62 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +12 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +28 -18
- package/dist/types/components/snk-crud/utils/taskbarUtils.d.ts +13 -0
- package/dist/types/components/snk-custom-slot-guide/snk-custom-slot-guide.d.ts +16 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -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/snk-filter-number.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +5 -1
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +33 -16
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +6 -1
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +1 -1
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +9 -2
- package/dist/types/components/snk-grid/snk-grid.d.ts +29 -1
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +11 -0
- package/dist/types/components/snk-image-input/snk-image-input.d.ts +56 -0
- package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +15 -0
- package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +0 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
- package/dist/types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.d.ts +6 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +29 -2
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +5 -0
- package/dist/types/components/snk-taskbar/processor/simple-taskbar-processor.d.ts +31 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +37 -23
- package/dist/types/components/snk-taskbar/subcomponents/snk-taskbar-skeleton.d.ts +3 -0
- package/dist/types/components.d.ts +377 -5
- package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-image-input.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-image-input.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-image-input.msg.d.ts +1 -0
- package/package.json +6 -7
- package/react/components.d.ts +4 -0
- package/react/components.js +4 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +0 -45
- package/dist/cjs/taskbar-elements-fb5d1e08.js +0 -132
- package/dist/cjs/taskbar-processor-2fba34a8.js +0 -53
- package/dist/esm/snk-simple-bar.entry.js +0 -41
- package/dist/esm/taskbar-elements-faaf5d8f.js +0 -129
- package/dist/esm/taskbar-processor-3436124c.js +0 -51
- package/dist/sankhyablocks/p-093f58fa.entry.js +0 -1
- package/dist/sankhyablocks/p-0e279e7a.js +0 -1
- package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
- package/dist/sankhyablocks/p-1858c023.entry.js +0 -1
- package/dist/sankhyablocks/p-1a0caadb.js +0 -1
- package/dist/sankhyablocks/p-21107f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-26e0f63c.entry.js +0 -1
- package/dist/sankhyablocks/p-34df7eca.entry.js +0 -1
- package/dist/sankhyablocks/p-34f447ba.entry.js +0 -1
- package/dist/sankhyablocks/p-38e56b68.entry.js +0 -1
- package/dist/sankhyablocks/p-3abeeefa.entry.js +0 -1
- package/dist/sankhyablocks/p-3d021bef.entry.js +0 -1
- package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-44939a0e.entry.js +0 -1
- package/dist/sankhyablocks/p-51833248.js +0 -7
- package/dist/sankhyablocks/p-5304753a.js +0 -60
- package/dist/sankhyablocks/p-557368df.entry.js +0 -1
- package/dist/sankhyablocks/p-55798617.js +0 -1
- package/dist/sankhyablocks/p-583151c5.entry.js +0 -1
- package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
- package/dist/sankhyablocks/p-6180de07.entry.js +0 -1
- package/dist/sankhyablocks/p-80014119.entry.js +0 -1
- package/dist/sankhyablocks/p-8f73da95.js +0 -1
- package/dist/sankhyablocks/p-91a9abb6.entry.js +0 -1
- package/dist/sankhyablocks/p-9317942f.js +0 -26
- package/dist/sankhyablocks/p-988afe78.js +0 -1
- package/dist/sankhyablocks/p-a2ed1ebd.entry.js +0 -1
- package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
- package/dist/sankhyablocks/p-a644a956.js +0 -1
- package/dist/sankhyablocks/p-ae108ffd.entry.js +0 -11
- package/dist/sankhyablocks/p-b4322b87.entry.js +0 -1
- package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
- package/dist/sankhyablocks/p-b987e15d.js +0 -1
- package/dist/sankhyablocks/p-bb2f5f38.js +0 -1
- package/dist/sankhyablocks/p-d8d8169b.js +0 -2
- package/dist/sankhyablocks/p-d9c54991.js +0 -1
- package/dist/sankhyablocks/p-dc851b6e.entry.js +0 -1
- package/dist/sankhyablocks/p-e9021f79.entry.js +0 -1
- package/dist/sankhyablocks/p-f15478a1.js +0 -1
- package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, forceUpdate, Host } from '@stencil/core/internal/client';
|
|
2
|
-
import { ObjectUtils,
|
|
2
|
+
import { ObjectUtils, Action, KeyboardManager, StringUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { S as SnkFormConfigManager } from './SnkFormConfigManager.js';
|
|
4
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
5
|
-
import
|
|
5
|
+
import './DataFetcher.js';
|
|
6
6
|
import { P as PresentationMode } from './ISave.js';
|
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
@@ -10,59 +10,62 @@ import './dataunit-fetcher.js';
|
|
|
10
10
|
import './filter-item-type.enum.js';
|
|
11
11
|
import './form-config-fetcher.js';
|
|
12
12
|
import { V as VIEW_MODE } from './constants.js';
|
|
13
|
-
import { T as TaskbarElement, d as defineCustomElement$
|
|
14
|
-
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
13
|
+
import { T as TaskbarElement, d as defineCustomElement$6 } from './snk-taskbar2.js';
|
|
15
14
|
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
16
|
-
import {
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
22
|
-
import { d as defineCustomElement$
|
|
23
|
-
import { d as defineCustomElement$
|
|
24
|
-
import { d as defineCustomElement$
|
|
25
|
-
import { d as defineCustomElement$
|
|
26
|
-
import { d as defineCustomElement$
|
|
27
|
-
import { d as defineCustomElement$
|
|
28
|
-
import { d as defineCustomElement$
|
|
29
|
-
import {
|
|
30
|
-
import { d as defineCustomElement$
|
|
31
|
-
import { d as defineCustomElement$
|
|
32
|
-
import { d as defineCustomElement$
|
|
33
|
-
import { d as defineCustomElement$
|
|
34
|
-
import { d as defineCustomElement$
|
|
35
|
-
import { d as defineCustomElement$
|
|
36
|
-
import { d as defineCustomElement$
|
|
37
|
-
import { d as defineCustomElement$
|
|
38
|
-
import { d as defineCustomElement$
|
|
39
|
-
import { d as defineCustomElement$
|
|
40
|
-
import { d as defineCustomElement$
|
|
41
|
-
import { d as defineCustomElement$
|
|
42
|
-
import { d as defineCustomElement$
|
|
43
|
-
import { d as defineCustomElement$
|
|
44
|
-
import { d as defineCustomElement$
|
|
45
|
-
import { d as defineCustomElement$
|
|
46
|
-
import { d as defineCustomElement$
|
|
47
|
-
import { d as defineCustomElement$
|
|
48
|
-
import { d as defineCustomElement$
|
|
49
|
-
import { d as defineCustomElement$
|
|
50
|
-
import { d as defineCustomElement$
|
|
51
|
-
import { d as defineCustomElement$
|
|
52
|
-
import { d as defineCustomElement$
|
|
15
|
+
import { d as defineCustomElement$I } from './config-header2.js';
|
|
16
|
+
import { d as defineCustomElement$H } from './configs-button2.js';
|
|
17
|
+
import { d as defineCustomElement$G } from './field-config2.js';
|
|
18
|
+
import { d as defineCustomElement$F } from './field-item2.js';
|
|
19
|
+
import { d as defineCustomElement$E } from './fields-layout2.js';
|
|
20
|
+
import { d as defineCustomElement$D } from './fields-selector2.js';
|
|
21
|
+
import { d as defineCustomElement$C } from './guides-configurator2.js';
|
|
22
|
+
import { d as defineCustomElement$B } from './snk-actions-button2.js';
|
|
23
|
+
import { d as defineCustomElement$A } from './snk-attach2.js';
|
|
24
|
+
import { d as defineCustomElement$z } from './snk-configurator2.js';
|
|
25
|
+
import { d as defineCustomElement$y } from './snk-data-exporter2.js';
|
|
26
|
+
import { d as defineCustomElement$x } from './snk-data-unit2.js';
|
|
27
|
+
import { d as defineCustomElement$w } from './snk-default-filter2.js';
|
|
28
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
|
|
29
|
+
import { d as defineCustomElement$v } from './snk-exporter-email-sender2.js';
|
|
30
|
+
import { d as defineCustomElement$u } from './snk-expression-group2.js';
|
|
31
|
+
import { d as defineCustomElement$t } from './snk-expression-item2.js';
|
|
32
|
+
import { d as defineCustomElement$s } from './snk-filter-advanced-mode2.js';
|
|
33
|
+
import { d as defineCustomElement$r } from './snk-filter-assistent-mode2.js';
|
|
34
|
+
import { d as defineCustomElement$q } from './snk-filter-bar2.js';
|
|
35
|
+
import { d as defineCustomElement$p } from './snk-filter-detail2.js';
|
|
36
|
+
import { d as defineCustomElement$o } from './snk-filter-field-search2.js';
|
|
37
|
+
import { d as defineCustomElement$n } from './snk-filter-item2.js';
|
|
38
|
+
import { d as defineCustomElement$m } from './snk-filter-modal2.js';
|
|
39
|
+
import { d as defineCustomElement$l } from './snk-filter-modal-item2.js';
|
|
40
|
+
import { d as defineCustomElement$k } from './snk-filter-param-config2.js';
|
|
41
|
+
import { d as defineCustomElement$i } from './snk-form-summary2.js';
|
|
42
|
+
import { d as defineCustomElement$h } from './snk-form-view2.js';
|
|
43
|
+
import { d as defineCustomElement$g } from './snk-grid2.js';
|
|
44
|
+
import { d as defineCustomElement$f } from './snk-grid-config2.js';
|
|
45
|
+
import { d as defineCustomElement$e } from './snk-image-input2.js';
|
|
46
|
+
import { d as defineCustomElement$d } from './snk-layout-form-config2.js';
|
|
47
|
+
import { d as defineCustomElement$c } from './snk-numbering-config2.js';
|
|
48
|
+
import { d as defineCustomElement$b } from './snk-personalized-filter2.js';
|
|
49
|
+
import { d as defineCustomElement$a } from './snk-select-box2.js';
|
|
50
|
+
import { d as defineCustomElement$9 } from './snk-simple-bar2.js';
|
|
51
|
+
import { d as defineCustomElement$8 } from './snk-simple-crud2.js';
|
|
52
|
+
import { d as defineCustomElement$7 } from './snk-simple-form-config2.js';
|
|
53
|
+
import { d as defineCustomElement$5 } from './snk-taskbar-skeleton2.js';
|
|
53
54
|
import { d as defineCustomElement$4 } from './snk-view-representation2.js';
|
|
54
55
|
import { d as defineCustomElement$3 } from './taskbar-actions-button2.js';
|
|
55
56
|
import { d as defineCustomElement$2 } from './taskbar-split-button2.js';
|
|
56
|
-
import { d as defineCustomElement$
|
|
57
|
+
import { d as defineCustomElement$j } from './snk-form-config2.js';
|
|
57
58
|
|
|
58
|
-
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:
|
|
59
|
+
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:132px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;--snk-workspace--header-height:40px;display:block;outline:none}ez-guide-navigator.sc-snk-guides-viewer{--ez-guide-navigator--border-radius:var(--space--12, 12px)}snk-form-view.sc-snk-guides-viewer{width:100%}stack-item.snk-guides-viewer.sc-snk-guides-viewer{display:grid}stack-item.sc-snk-guides-viewer.sc-snk-guides-viewer{display:grid;min-height:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding:0 var(--snk-guides-viewer--space-small);padding-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column;max-height:calc(100vh - var(--snk-guides-viewer__header--min-height));overflow-y:auto}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:var(--snk-guides-viewer--space-small);height:100%}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
59
60
|
|
|
60
61
|
const FORM_NAME_PREFIX = "__FORM:";
|
|
61
62
|
const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
62
63
|
constructor() {
|
|
63
64
|
super();
|
|
64
65
|
this.__registerHost();
|
|
66
|
+
this.snkShowGuide = createEvent(this, "snkShowGuide", 7);
|
|
65
67
|
this.snkMasterFormConfigChange = createEvent(this, "snkMasterFormConfigChange", 7);
|
|
68
|
+
this.formConfigVisibilityChanged = createEvent(this, "formConfigVisibilityChanged", 7);
|
|
66
69
|
this.exit = createEvent(this, "exit", 7);
|
|
67
70
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
68
71
|
this.formItemsReady = createEvent(this, "formItemsReady", 7);
|
|
@@ -85,6 +88,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
85
88
|
this.enableGridInsert = false;
|
|
86
89
|
this.ignoreReadOnlyFormFields = undefined;
|
|
87
90
|
this.getCustomTitle = undefined;
|
|
91
|
+
this.customGuidesConfig = [];
|
|
88
92
|
this._hasToCreateFieldSearch = true;
|
|
89
93
|
this._breadcrumbItems = [];
|
|
90
94
|
this._guides = undefined;
|
|
@@ -99,6 +103,13 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
99
103
|
observeDataUnit() {
|
|
100
104
|
this.loadGuides(true);
|
|
101
105
|
}
|
|
106
|
+
async observeFormConfigManager(value) {
|
|
107
|
+
const showFormConfig = !!value;
|
|
108
|
+
await this._viewStack.show(showFormConfig ?
|
|
109
|
+
GUIDES_VIEWER_VIEW_MODE.CONFIG :
|
|
110
|
+
GUIDES_VIEWER_VIEW_MODE.GUIDES);
|
|
111
|
+
this.formConfigVisibilityChanged.emit(showFormConfig);
|
|
112
|
+
}
|
|
102
113
|
observeDataState(newValue, oldValue) {
|
|
103
114
|
var _a, _b, _c, _d, _e, _f;
|
|
104
115
|
const newRecordsIds = (_b = (_a = newValue === null || newValue === void 0 ? void 0 : newValue.selectionInfo) === null || _a === void 0 ? void 0 : _a.recordIds) !== null && _b !== void 0 ? _b : (_c = newValue === null || newValue === void 0 ? void 0 : newValue.selectedRecord) === null || _c === void 0 ? void 0 : _c['__record__id__'];
|
|
@@ -147,7 +158,8 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
147
158
|
* Atribui o foco para o componente.
|
|
148
159
|
*/
|
|
149
160
|
async setFocus() {
|
|
150
|
-
|
|
161
|
+
var _a;
|
|
162
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.focus({ preventScroll: true });
|
|
151
163
|
}
|
|
152
164
|
/**
|
|
153
165
|
* Recarrega os guias baseada nos metadados atuais.
|
|
@@ -197,7 +209,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
197
209
|
if (!this._configManager.isLoaded) {
|
|
198
210
|
return;
|
|
199
211
|
}
|
|
200
|
-
this._masterFormMetadata = buildFormMetadata(this.masterFormConfig, this.dataUnit, true);
|
|
212
|
+
this._masterFormMetadata = buildFormMetadata(this.masterFormConfig, this.dataUnit, true, this.customGuidesConfig);
|
|
201
213
|
const allSheets = this._masterFormMetadata.getAllSheets();
|
|
202
214
|
const currentRecord = this.dataUnit.getSelectedRecord();
|
|
203
215
|
const disableDetails = this.hasToDisableDetails(currentRecord);
|
|
@@ -208,6 +220,13 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
208
220
|
item.tooltip = this.getMessage("snkCrud.detail.tooltip.needSingleSelection");
|
|
209
221
|
item.disabled = true;
|
|
210
222
|
}
|
|
223
|
+
if (sheet.isCustom && sheet.ctxProps) {
|
|
224
|
+
Object.entries(sheet.ctxProps).forEach(([key, value]) => {
|
|
225
|
+
if (value !== undefined) {
|
|
226
|
+
item[key] = value;
|
|
227
|
+
}
|
|
228
|
+
});
|
|
229
|
+
}
|
|
211
230
|
guides.push(item);
|
|
212
231
|
});
|
|
213
232
|
this._guides = guides;
|
|
@@ -243,63 +262,6 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
243
262
|
});
|
|
244
263
|
}
|
|
245
264
|
}
|
|
246
|
-
getTaskBarId() {
|
|
247
|
-
var _a;
|
|
248
|
-
if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
|
|
249
|
-
return TASKBAR_ID.FINISH_EDITION;
|
|
250
|
-
}
|
|
251
|
-
if (this.dataUnit.isMultipleEdition) {
|
|
252
|
-
return TASKBAR_ID.MUTIPLE_EDITION;
|
|
253
|
-
}
|
|
254
|
-
return TASKBAR_ID.REGULAR;
|
|
255
|
-
}
|
|
256
|
-
loadTaskbarProcessor() {
|
|
257
|
-
const taskbarIDs = {};
|
|
258
|
-
taskbarIDs[TASKBAR_ID.REGULAR] = this.buildBtnsRegularMode();
|
|
259
|
-
taskbarIDs[TASKBAR_ID.FINISH_EDITION] = [TaskbarElement.CANCEL, TaskbarElement.SAVE, this.handleAddGridMode()];
|
|
260
|
-
taskbarIDs[TASKBAR_ID.MUTIPLE_EDITION] = [TaskbarElement.CANCEL];
|
|
261
|
-
this._taskbarProcessor = new TaskbarProcessor(taskbarIDs);
|
|
262
|
-
this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.buildDisabledButtons(), this.buildInvisibleButtons());
|
|
263
|
-
}
|
|
264
|
-
buildBtnsRegularMode() {
|
|
265
|
-
var _a, _b;
|
|
266
|
-
const btnsRegularMode = [
|
|
267
|
-
TaskbarElement.ATTACH, TaskbarElement.CLONE, TaskbarElement.REMOVE, TaskbarElement.MORE_OPTIONS,
|
|
268
|
-
TaskbarElement.ACTIONS_BUTTON, TaskbarElement.DIVIDER, TaskbarElement.GRID_MODE, TaskbarElement.CONFIGURATOR,
|
|
269
|
-
];
|
|
270
|
-
if (((_b = (_a = this.dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) === null || _b === void 0 ? void 0 : _b.length) <= 1) {
|
|
271
|
-
btnsRegularMode.unshift(TaskbarElement.PREVIOUS, TaskbarElement.NEXT, TaskbarElement.DIVIDER);
|
|
272
|
-
}
|
|
273
|
-
if (this.presentationMode == PresentationMode.SECONDARY) {
|
|
274
|
-
btnsRegularMode.unshift(TaskbarElement.INSERT);
|
|
275
|
-
}
|
|
276
|
-
else {
|
|
277
|
-
btnsRegularMode.push(TaskbarElement.INSERT);
|
|
278
|
-
}
|
|
279
|
-
return btnsRegularMode;
|
|
280
|
-
}
|
|
281
|
-
buildDisabledButtons() {
|
|
282
|
-
var _a, _b, _c, _d, _e, _f;
|
|
283
|
-
const disabledButtons = [];
|
|
284
|
-
if (!((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.hasPrevious))
|
|
285
|
-
disabledButtons.push(TaskbarElement.PREVIOUS);
|
|
286
|
-
if (!((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.hasNext))
|
|
287
|
-
disabledButtons.push(TaskbarElement.NEXT);
|
|
288
|
-
if (((_d = (_c = this.dataState) === null || _c === void 0 ? void 0 : _c.selectionInfo) === null || _d === void 0 ? void 0 : _d.length) > 1)
|
|
289
|
-
disabledButtons.push(TaskbarElement.CLONE);
|
|
290
|
-
if ((_f = (_e = this.dataState) === null || _e === void 0 ? void 0 : _e.selectionInfo) === null || _f === void 0 ? void 0 : _f.isAllRecords())
|
|
291
|
-
disabledButtons.push(TaskbarElement.REMOVE);
|
|
292
|
-
return disabledButtons;
|
|
293
|
-
}
|
|
294
|
-
handleAddGridMode() {
|
|
295
|
-
return this.enableGridInsert ? TaskbarElement.GRID_MODE : "";
|
|
296
|
-
}
|
|
297
|
-
buildInvisibleButtons() {
|
|
298
|
-
const invisibleButtons = [];
|
|
299
|
-
if (this.dataState && this.dataState.selectionInfo.mode === SelectionMode.ALL_RECORDS)
|
|
300
|
-
invisibleButtons.push(TaskbarElement.ACTIONS_BUTTON);
|
|
301
|
-
return invisibleButtons;
|
|
302
|
-
}
|
|
303
265
|
static updateContentCard(formName, cardConfig, propertyChanged, configManager) {
|
|
304
266
|
return configManager.saveCardState(formName, cardConfig, propertyChanged);
|
|
305
267
|
}
|
|
@@ -322,7 +284,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
322
284
|
if (sheet == undefined) {
|
|
323
285
|
return;
|
|
324
286
|
}
|
|
325
|
-
return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); }, customEditors: params.propsCustomEditor, fieldsProps: params.fieldsProps });
|
|
287
|
+
return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); }, customEditors: params.propsCustomEditor, fieldsProps: params.fieldsProps, entityPath: params.entityPath });
|
|
326
288
|
})));
|
|
327
289
|
}
|
|
328
290
|
wrapDetail(levels, content) {
|
|
@@ -343,44 +305,52 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
343
305
|
return `${this.entityPath}/${entityName}`;
|
|
344
306
|
}
|
|
345
307
|
getContent() {
|
|
346
|
-
var _a, _b, _c, _d, _e;
|
|
347
308
|
if (!this.selectedGuide) {
|
|
309
|
+
this.snkShowGuide.emit(undefined);
|
|
348
310
|
return;
|
|
349
311
|
}
|
|
350
312
|
const guideId = this.selectedGuide.id;
|
|
351
|
-
|
|
313
|
+
this.snkShowGuide.emit(guideId);
|
|
314
|
+
if (this.isCustomGuide(guideId)) {
|
|
315
|
+
return h("slot", { name: guideId });
|
|
316
|
+
}
|
|
352
317
|
const levels = guideId.split("::");
|
|
353
318
|
const currentLevel = levels.pop();
|
|
354
319
|
const childEntityName = FormMetadata.getDetailName(currentLevel);
|
|
355
320
|
let detailId = guideId;
|
|
356
|
-
if (childEntityName
|
|
357
|
-
|
|
358
|
-
let detailBranch;
|
|
359
|
-
if (guideId.includes(FORM_NAME_PREFIX)) {
|
|
360
|
-
[detailId, formName] = guideId.split(FORM_NAME_PREFIX);
|
|
361
|
-
const pathSize = ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
362
|
-
detailBranch = pathSize > 1 ? this._breadcrumbItems[pathSize - 2] : this.selectedGuide;
|
|
363
|
-
}
|
|
364
|
-
else {
|
|
365
|
-
detailBranch = this.selectedGuide;
|
|
366
|
-
}
|
|
367
|
-
content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders, presentationMode: this.presentationMode }));
|
|
368
|
-
}
|
|
369
|
-
else {
|
|
370
|
-
const cardId = this.selectedGuide.id;
|
|
371
|
-
const sheet = this._masterFormMetadata.getSheet(cardId);
|
|
372
|
-
if (sheet) {
|
|
373
|
-
const cardConfig = (_c = (_b = this.masterFormConfig) === null || _b === void 0 ? void 0 : _b.cardsState) === null || _c === void 0 ? void 0 : _c.get(cardId);
|
|
374
|
-
content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
|
|
375
|
-
}
|
|
321
|
+
if (this.isDetailGuide(childEntityName, levels)) {
|
|
322
|
+
return this.buildDetailGuideContent(guideId, detailId, levels, childEntityName);
|
|
376
323
|
}
|
|
377
|
-
return
|
|
324
|
+
return this.buildFormViewGuideContent(guideId);
|
|
378
325
|
}
|
|
379
|
-
|
|
380
|
-
|
|
326
|
+
buildFormViewGuideContent(cardId) {
|
|
327
|
+
var _a, _b, _c, _d;
|
|
328
|
+
const sheet = this._masterFormMetadata.getSheet(cardId);
|
|
329
|
+
if (!sheet)
|
|
381
330
|
return;
|
|
331
|
+
const cardConfig = (_b = (_a = this.masterFormConfig) === null || _a === void 0 ? void 0 : _a.cardsState) === null || _b === void 0 ? void 0 : _b.get(cardId);
|
|
332
|
+
return (h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_d = (_c = this.masterFormConfig) === null || _c === void 0 ? void 0 : _c.summary) === null || _d === void 0 ? void 0 : _d.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: cardId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch, entityPath: this.entityPath }));
|
|
333
|
+
}
|
|
334
|
+
isDetailGuide(childEntityName, levels) {
|
|
335
|
+
return childEntityName || levels.length > 0;
|
|
336
|
+
}
|
|
337
|
+
buildDetailGuideContent(guideId, detailId, levels, childEntityName) {
|
|
338
|
+
var _a;
|
|
339
|
+
let formName;
|
|
340
|
+
let detailBranch;
|
|
341
|
+
if (guideId.includes(FORM_NAME_PREFIX)) {
|
|
342
|
+
[detailId, formName] = guideId.split(FORM_NAME_PREFIX);
|
|
343
|
+
const pathSize = ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
344
|
+
detailBranch = pathSize > 1 ? this._breadcrumbItems[pathSize - 2] : this.selectedGuide;
|
|
345
|
+
}
|
|
346
|
+
else {
|
|
347
|
+
detailBranch = this.selectedGuide;
|
|
382
348
|
}
|
|
383
|
-
this._guideNavigator.selectGuide(
|
|
349
|
+
return this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders, presentationMode: this.presentationMode }));
|
|
350
|
+
}
|
|
351
|
+
isCustomGuide(guideId) {
|
|
352
|
+
var _a;
|
|
353
|
+
return (_a = this.customGuidesConfig) === null || _a === void 0 ? void 0 : _a.map(g => g.id).includes(guideId);
|
|
384
354
|
}
|
|
385
355
|
updateSelectedGuideHandler(currentItem) {
|
|
386
356
|
this._guideHasChanged = this.selectedGuide != currentItem;
|
|
@@ -390,15 +360,13 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
390
360
|
});
|
|
391
361
|
this.resetGuideBadge(currentItem);
|
|
392
362
|
}
|
|
393
|
-
changeGuideHandler(guideName) {
|
|
394
|
-
var _a;
|
|
395
|
-
(_a = this._guideNavigator) === null || _a === void 0 ? void 0 : _a.selectGuide(guideName);
|
|
396
|
-
}
|
|
397
363
|
clearFieldToFocusHandler() {
|
|
398
364
|
this._fieldToGetFocus = undefined;
|
|
399
365
|
}
|
|
400
366
|
resetGuideBadge(selectedGuide) {
|
|
401
367
|
var _a;
|
|
368
|
+
if (!selectedGuide)
|
|
369
|
+
return;
|
|
402
370
|
this._guides = [...(_a = this._guides) === null || _a === void 0 ? void 0 : _a.map(guide => {
|
|
403
371
|
if (this.canClearGuideBadge(guide, selectedGuide.id)) {
|
|
404
372
|
return Object.assign(Object.assign({}, guide), { badge: null });
|
|
@@ -461,59 +429,9 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
461
429
|
if (!this._guideHasChanged) {
|
|
462
430
|
return;
|
|
463
431
|
}
|
|
464
|
-
|
|
465
|
-
this._currentDetail.showUp();
|
|
466
|
-
}
|
|
467
|
-
else {
|
|
468
|
-
if (this._mainForm) {
|
|
469
|
-
this._mainForm.showUp();
|
|
470
|
-
}
|
|
471
|
-
}
|
|
432
|
+
window.scrollTo(0, 0);
|
|
472
433
|
this._guideHasChanged = false;
|
|
473
434
|
}
|
|
474
|
-
getFieldsSearch(item) {
|
|
475
|
-
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
|
476
|
-
this._hasToCreateFieldSearch = false;
|
|
477
|
-
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
478
|
-
}
|
|
479
|
-
return this._fieldSearch;
|
|
480
|
-
}
|
|
481
|
-
fieldsOptionLoader(argument) {
|
|
482
|
-
return Promise.resolve(this._configManager.getFieldsList(argument)
|
|
483
|
-
.map(field => ({ value: field.name, label: field.label })));
|
|
484
|
-
}
|
|
485
|
-
onSelectField(option) {
|
|
486
|
-
if (option == undefined) {
|
|
487
|
-
return;
|
|
488
|
-
}
|
|
489
|
-
this._fieldToGetFocus = option.value;
|
|
490
|
-
const fieldGuideName = this.getGuideName(option.value);
|
|
491
|
-
if (fieldGuideName !== this.selectedGuide.id) {
|
|
492
|
-
this.changeGuideHandler(fieldGuideName);
|
|
493
|
-
}
|
|
494
|
-
}
|
|
495
|
-
getActionsList() {
|
|
496
|
-
var _a;
|
|
497
|
-
const hardList = [];
|
|
498
|
-
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
499
|
-
return hardList.concat((_a = this.taskbarManager.getMoreOptions(this.getTaskBarId(), this.configName, this.dataState, this.actionsList)) !== null && _a !== void 0 ? _a : []);
|
|
500
|
-
}
|
|
501
|
-
return hardList.concat(this.actionsList);
|
|
502
|
-
}
|
|
503
|
-
getSettingsListForm() {
|
|
504
|
-
const hardList = [{
|
|
505
|
-
value: StringUtils.generateUUID(),
|
|
506
|
-
label: this.getMessage("snkCrud.findColumn"),
|
|
507
|
-
disableCloseOnSelect: true,
|
|
508
|
-
eagerInitialize: true,
|
|
509
|
-
itemBuilder: (_, item) => this.getFieldsSearch(item)
|
|
510
|
-
}];
|
|
511
|
-
return hardList;
|
|
512
|
-
}
|
|
513
|
-
buildTaskBar() {
|
|
514
|
-
var _a;
|
|
515
|
-
return h("div", { class: `snk-guides-viewer__header-taskbar ${this.presentationMode != PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.getActionsList(), actionsSettingsList: this.getSettingsListForm(), messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? TaskbarElement.SAVE : TaskbarElement.INSERT, "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS", additionalSlotId: "GUIDES_VIEWER_DYNAMIC_SEARCH", alignRigth: true }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GUIDES_VIEWER_DYNAMIC_SEARCH" })));
|
|
516
|
-
}
|
|
517
435
|
async dataUnitActionHandler(action) {
|
|
518
436
|
var _a;
|
|
519
437
|
switch (action.type) {
|
|
@@ -568,27 +486,42 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
568
486
|
}
|
|
569
487
|
return "";
|
|
570
488
|
}
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
return (_b = (_a = this.getCustomTitle) === null || _a === void 0 ? void 0 : _a.call(this)) !== null && _b !== void 0 ? _b : this.getMessage("snkCrud.title");
|
|
489
|
+
getCustomGuidesConfig() {
|
|
490
|
+
return this._currentDetail ? [] : this.customGuidesConfig;
|
|
574
491
|
}
|
|
575
|
-
|
|
576
|
-
if (
|
|
577
|
-
|
|
578
|
-
|
|
492
|
+
getFieldsSearch() {
|
|
493
|
+
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
|
494
|
+
this._hasToCreateFieldSearch = false;
|
|
495
|
+
const item = {
|
|
496
|
+
label: this.getMessage("snkSimpleCrud.findFields"),
|
|
497
|
+
value: "findFields",
|
|
498
|
+
};
|
|
499
|
+
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
500
|
+
}
|
|
501
|
+
return this._fieldSearch;
|
|
579
502
|
}
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
503
|
+
fieldsOptionLoader(argument) {
|
|
504
|
+
return Promise.resolve(this._configManager.getFieldsList(argument)
|
|
505
|
+
.map(field => ({ value: field.name, label: field.label })));
|
|
506
|
+
}
|
|
507
|
+
changeGuideHandler(guideName) {
|
|
508
|
+
var _a;
|
|
509
|
+
(_a = this._guideNavigator) === null || _a === void 0 ? void 0 : _a.selectGuide(guideName);
|
|
510
|
+
}
|
|
511
|
+
onSelectField(option) {
|
|
512
|
+
if (option == undefined) {
|
|
513
|
+
return;
|
|
514
|
+
}
|
|
515
|
+
this._fieldToGetFocus = option.value;
|
|
516
|
+
const fieldGuideName = this.getGuideName(option.value);
|
|
517
|
+
if (fieldGuideName !== this.selectedGuide.id) {
|
|
518
|
+
this.changeGuideHandler(fieldGuideName);
|
|
585
519
|
}
|
|
586
|
-
const labels = selectedRecords.map(record => this.messagesBuilder.getMessage("snkCrud.title", record));
|
|
587
|
-
return `[${labels.join(", ")}]`;
|
|
588
520
|
}
|
|
589
521
|
componentDidLoad() {
|
|
590
522
|
this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
591
523
|
this.initKeyboardManager();
|
|
524
|
+
this.getFieldsSearch();
|
|
592
525
|
}
|
|
593
526
|
disconnectedCallback() {
|
|
594
527
|
var _a;
|
|
@@ -602,35 +535,40 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
602
535
|
await this._mainForm.showSearchField();
|
|
603
536
|
}, { description: this.getMessage("snkSimpleCrud.findFields"), element: this._element });
|
|
604
537
|
}
|
|
605
|
-
|
|
606
|
-
var _a, _b;
|
|
538
|
+
renderFormConfig() {
|
|
607
539
|
if (this._formEditorConfigManager != undefined) {
|
|
608
|
-
return (h("snk-form-config", { ref: ref => this._container = ref, tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null }));
|
|
540
|
+
return (h("snk-form-config", { ref: ref => this._container = ref, tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null, customGuidesConfig: this.getCustomGuidesConfig() }));
|
|
609
541
|
}
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
this.
|
|
614
|
-
const showGuides = this._guides && (this._guides.length > 1);
|
|
615
|
-
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabindex: -1 }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge", title: this.getTitleTooltip() }, this.getTitle()), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
616
|
-
h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
542
|
+
}
|
|
543
|
+
renderGuidesNavigator(showGuides) {
|
|
544
|
+
var _a;
|
|
545
|
+
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabIndex: -1 }, h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
617
546
|
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
618
547
|
:
|
|
619
548
|
h("div", null), h("div", { class: "snk-guides-viewer__detail-container" }, SnkGuidesViewer.buildFixedForms({
|
|
620
549
|
formConfig: this.masterFormConfig,
|
|
621
550
|
formMetadata: this._masterFormMetadata,
|
|
622
|
-
selectedForm: (
|
|
551
|
+
selectedForm: (_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.id,
|
|
623
552
|
dataUnit: this.dataUnit,
|
|
624
553
|
recordsValidator: this.recordsValidator,
|
|
625
554
|
fieldToFocus: this._fieldToGetFocus,
|
|
626
555
|
onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this),
|
|
627
556
|
propsCustomEditor: this._customEditors,
|
|
628
|
-
fieldsProps: this._fieldsProps
|
|
629
|
-
|
|
557
|
+
fieldsProps: this._fieldsProps,
|
|
558
|
+
entityPath: this.entityPath
|
|
559
|
+
}), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID, layoutFormConfig: false, disableNumberingConfig: true })));
|
|
560
|
+
}
|
|
561
|
+
render() {
|
|
562
|
+
if (!this.dataUnit || !this._configManager.isLoaded) {
|
|
563
|
+
return;
|
|
564
|
+
}
|
|
565
|
+
const showGuides = this._guides && (this._guides.length > 1);
|
|
566
|
+
return (h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "guides-viewer-stack" }, h("stack-item", null, this.renderGuidesNavigator(showGuides)), h("stack-item", null, this.renderFormConfig())));
|
|
630
567
|
}
|
|
631
568
|
get _element() { return this; }
|
|
632
569
|
static get watchers() { return {
|
|
633
570
|
"dataUnit": ["observeDataUnit"],
|
|
571
|
+
"_formEditorConfigManager": ["observeFormConfigManager"],
|
|
634
572
|
"dataState": ["observeDataState"],
|
|
635
573
|
"masterFormConfig": ["observeMasterFormConfig"]
|
|
636
574
|
}; }
|
|
@@ -643,7 +581,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
643
581
|
"actionsList": [16],
|
|
644
582
|
"recordsValidator": [16],
|
|
645
583
|
"masterFormConfig": [1040],
|
|
646
|
-
"selectedGuide": [
|
|
584
|
+
"selectedGuide": [1040],
|
|
647
585
|
"taskbarManager": [16],
|
|
648
586
|
"messagesBuilder": [1040],
|
|
649
587
|
"canEdit": [4, "can-edit"],
|
|
@@ -654,6 +592,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
654
592
|
"enableGridInsert": [4, "enable-grid-insert"],
|
|
655
593
|
"ignoreReadOnlyFormFields": [4, "ignore-read-only-form-fields"],
|
|
656
594
|
"getCustomTitle": [16],
|
|
595
|
+
"customGuidesConfig": [16],
|
|
657
596
|
"_hasToCreateFieldSearch": [32],
|
|
658
597
|
"_breadcrumbItems": [32],
|
|
659
598
|
"_guides": [32],
|
|
@@ -671,17 +610,16 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
671
610
|
"setFocus": [64],
|
|
672
611
|
"reloadGuides": [64]
|
|
673
612
|
}, [[2, "actionClick", "onActionClick"], [0, "snkContentCardChanged", "onContentCardChanged"]]]);
|
|
674
|
-
var
|
|
675
|
-
(function (
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
})(TASKBAR_ID || (TASKBAR_ID = {}));
|
|
613
|
+
var GUIDES_VIEWER_VIEW_MODE;
|
|
614
|
+
(function (GUIDES_VIEWER_VIEW_MODE) {
|
|
615
|
+
GUIDES_VIEWER_VIEW_MODE[GUIDES_VIEWER_VIEW_MODE["GUIDES"] = 0] = "GUIDES";
|
|
616
|
+
GUIDES_VIEWER_VIEW_MODE[GUIDES_VIEWER_VIEW_MODE["CONFIG"] = 1] = "CONFIG";
|
|
617
|
+
})(GUIDES_VIEWER_VIEW_MODE || (GUIDES_VIEWER_VIEW_MODE = {}));
|
|
680
618
|
function defineCustomElement$1() {
|
|
681
619
|
if (typeof customElements === "undefined") {
|
|
682
620
|
return;
|
|
683
621
|
}
|
|
684
|
-
const components = ["snk-guides-viewer", "config-header", "configs-button", "field-config", "field-item", "fields-layout", "fields-selector", "guides-configurator", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-default-filter", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-layout-form-config", "snk-numbering-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
622
|
+
const components = ["snk-guides-viewer", "config-header", "configs-button", "field-config", "field-item", "fields-layout", "fields-selector", "guides-configurator", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-default-filter", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-image-input", "snk-layout-form-config", "snk-numbering-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-taskbar-skeleton", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
685
623
|
components.forEach(tagName => { switch (tagName) {
|
|
686
624
|
case "snk-guides-viewer":
|
|
687
625
|
if (!customElements.get(tagName)) {
|
|
@@ -690,67 +628,67 @@ function defineCustomElement$1() {
|
|
|
690
628
|
break;
|
|
691
629
|
case "config-header":
|
|
692
630
|
if (!customElements.get(tagName)) {
|
|
693
|
-
defineCustomElement$
|
|
631
|
+
defineCustomElement$I();
|
|
694
632
|
}
|
|
695
633
|
break;
|
|
696
634
|
case "configs-button":
|
|
697
635
|
if (!customElements.get(tagName)) {
|
|
698
|
-
defineCustomElement$
|
|
636
|
+
defineCustomElement$H();
|
|
699
637
|
}
|
|
700
638
|
break;
|
|
701
639
|
case "field-config":
|
|
702
640
|
if (!customElements.get(tagName)) {
|
|
703
|
-
defineCustomElement$
|
|
641
|
+
defineCustomElement$G();
|
|
704
642
|
}
|
|
705
643
|
break;
|
|
706
644
|
case "field-item":
|
|
707
645
|
if (!customElements.get(tagName)) {
|
|
708
|
-
defineCustomElement$
|
|
646
|
+
defineCustomElement$F();
|
|
709
647
|
}
|
|
710
648
|
break;
|
|
711
649
|
case "fields-layout":
|
|
712
650
|
if (!customElements.get(tagName)) {
|
|
713
|
-
defineCustomElement$
|
|
651
|
+
defineCustomElement$E();
|
|
714
652
|
}
|
|
715
653
|
break;
|
|
716
654
|
case "fields-selector":
|
|
717
655
|
if (!customElements.get(tagName)) {
|
|
718
|
-
defineCustomElement$
|
|
656
|
+
defineCustomElement$D();
|
|
719
657
|
}
|
|
720
658
|
break;
|
|
721
659
|
case "guides-configurator":
|
|
722
660
|
if (!customElements.get(tagName)) {
|
|
723
|
-
defineCustomElement$
|
|
661
|
+
defineCustomElement$C();
|
|
724
662
|
}
|
|
725
663
|
break;
|
|
726
664
|
case "snk-actions-button":
|
|
727
665
|
if (!customElements.get(tagName)) {
|
|
728
|
-
defineCustomElement$
|
|
666
|
+
defineCustomElement$B();
|
|
729
667
|
}
|
|
730
668
|
break;
|
|
731
669
|
case "snk-attach":
|
|
732
670
|
if (!customElements.get(tagName)) {
|
|
733
|
-
defineCustomElement$
|
|
671
|
+
defineCustomElement$A();
|
|
734
672
|
}
|
|
735
673
|
break;
|
|
736
674
|
case "snk-configurator":
|
|
737
675
|
if (!customElements.get(tagName)) {
|
|
738
|
-
defineCustomElement$
|
|
676
|
+
defineCustomElement$z();
|
|
739
677
|
}
|
|
740
678
|
break;
|
|
741
679
|
case "snk-data-exporter":
|
|
742
680
|
if (!customElements.get(tagName)) {
|
|
743
|
-
defineCustomElement$
|
|
681
|
+
defineCustomElement$y();
|
|
744
682
|
}
|
|
745
683
|
break;
|
|
746
684
|
case "snk-data-unit":
|
|
747
685
|
if (!customElements.get(tagName)) {
|
|
748
|
-
defineCustomElement$
|
|
686
|
+
defineCustomElement$x();
|
|
749
687
|
}
|
|
750
688
|
break;
|
|
751
689
|
case "snk-default-filter":
|
|
752
690
|
if (!customElements.get(tagName)) {
|
|
753
|
-
defineCustomElement$
|
|
691
|
+
defineCustomElement$w();
|
|
754
692
|
}
|
|
755
693
|
break;
|
|
756
694
|
case "snk-detail-view":
|
|
@@ -760,125 +698,135 @@ function defineCustomElement$1() {
|
|
|
760
698
|
break;
|
|
761
699
|
case "snk-exporter-email-sender":
|
|
762
700
|
if (!customElements.get(tagName)) {
|
|
763
|
-
defineCustomElement$
|
|
701
|
+
defineCustomElement$v();
|
|
764
702
|
}
|
|
765
703
|
break;
|
|
766
704
|
case "snk-expression-group":
|
|
767
705
|
if (!customElements.get(tagName)) {
|
|
768
|
-
defineCustomElement$
|
|
706
|
+
defineCustomElement$u();
|
|
769
707
|
}
|
|
770
708
|
break;
|
|
771
709
|
case "snk-expression-item":
|
|
772
710
|
if (!customElements.get(tagName)) {
|
|
773
|
-
defineCustomElement$
|
|
711
|
+
defineCustomElement$t();
|
|
774
712
|
}
|
|
775
713
|
break;
|
|
776
714
|
case "snk-filter-advanced-mode":
|
|
777
715
|
if (!customElements.get(tagName)) {
|
|
778
|
-
defineCustomElement$
|
|
716
|
+
defineCustomElement$s();
|
|
779
717
|
}
|
|
780
718
|
break;
|
|
781
719
|
case "snk-filter-assistent-mode":
|
|
782
720
|
if (!customElements.get(tagName)) {
|
|
783
|
-
defineCustomElement$
|
|
721
|
+
defineCustomElement$r();
|
|
784
722
|
}
|
|
785
723
|
break;
|
|
786
724
|
case "snk-filter-bar":
|
|
787
725
|
if (!customElements.get(tagName)) {
|
|
788
|
-
defineCustomElement$
|
|
726
|
+
defineCustomElement$q();
|
|
789
727
|
}
|
|
790
728
|
break;
|
|
791
729
|
case "snk-filter-detail":
|
|
792
730
|
if (!customElements.get(tagName)) {
|
|
793
|
-
defineCustomElement$
|
|
731
|
+
defineCustomElement$p();
|
|
794
732
|
}
|
|
795
733
|
break;
|
|
796
734
|
case "snk-filter-field-search":
|
|
797
735
|
if (!customElements.get(tagName)) {
|
|
798
|
-
defineCustomElement$
|
|
736
|
+
defineCustomElement$o();
|
|
799
737
|
}
|
|
800
738
|
break;
|
|
801
739
|
case "snk-filter-item":
|
|
802
740
|
if (!customElements.get(tagName)) {
|
|
803
|
-
defineCustomElement$
|
|
741
|
+
defineCustomElement$n();
|
|
804
742
|
}
|
|
805
743
|
break;
|
|
806
744
|
case "snk-filter-modal":
|
|
807
745
|
if (!customElements.get(tagName)) {
|
|
808
|
-
defineCustomElement$
|
|
746
|
+
defineCustomElement$m();
|
|
809
747
|
}
|
|
810
748
|
break;
|
|
811
749
|
case "snk-filter-modal-item":
|
|
812
750
|
if (!customElements.get(tagName)) {
|
|
813
|
-
defineCustomElement$
|
|
751
|
+
defineCustomElement$l();
|
|
814
752
|
}
|
|
815
753
|
break;
|
|
816
754
|
case "snk-filter-param-config":
|
|
817
755
|
if (!customElements.get(tagName)) {
|
|
818
|
-
defineCustomElement$
|
|
756
|
+
defineCustomElement$k();
|
|
819
757
|
}
|
|
820
758
|
break;
|
|
821
759
|
case "snk-form-config":
|
|
822
760
|
if (!customElements.get(tagName)) {
|
|
823
|
-
defineCustomElement$
|
|
761
|
+
defineCustomElement$j();
|
|
824
762
|
}
|
|
825
763
|
break;
|
|
826
764
|
case "snk-form-summary":
|
|
827
765
|
if (!customElements.get(tagName)) {
|
|
828
|
-
defineCustomElement$
|
|
766
|
+
defineCustomElement$i();
|
|
829
767
|
}
|
|
830
768
|
break;
|
|
831
769
|
case "snk-form-view":
|
|
832
770
|
if (!customElements.get(tagName)) {
|
|
833
|
-
defineCustomElement$
|
|
771
|
+
defineCustomElement$h();
|
|
834
772
|
}
|
|
835
773
|
break;
|
|
836
774
|
case "snk-grid":
|
|
837
775
|
if (!customElements.get(tagName)) {
|
|
838
|
-
defineCustomElement$
|
|
776
|
+
defineCustomElement$g();
|
|
839
777
|
}
|
|
840
778
|
break;
|
|
841
779
|
case "snk-grid-config":
|
|
842
780
|
if (!customElements.get(tagName)) {
|
|
843
|
-
defineCustomElement$
|
|
781
|
+
defineCustomElement$f();
|
|
782
|
+
}
|
|
783
|
+
break;
|
|
784
|
+
case "snk-image-input":
|
|
785
|
+
if (!customElements.get(tagName)) {
|
|
786
|
+
defineCustomElement$e();
|
|
844
787
|
}
|
|
845
788
|
break;
|
|
846
789
|
case "snk-layout-form-config":
|
|
847
790
|
if (!customElements.get(tagName)) {
|
|
848
|
-
defineCustomElement$
|
|
791
|
+
defineCustomElement$d();
|
|
849
792
|
}
|
|
850
793
|
break;
|
|
851
794
|
case "snk-numbering-config":
|
|
852
795
|
if (!customElements.get(tagName)) {
|
|
853
|
-
defineCustomElement$
|
|
796
|
+
defineCustomElement$c();
|
|
854
797
|
}
|
|
855
798
|
break;
|
|
856
799
|
case "snk-personalized-filter":
|
|
857
800
|
if (!customElements.get(tagName)) {
|
|
858
|
-
defineCustomElement$
|
|
801
|
+
defineCustomElement$b();
|
|
859
802
|
}
|
|
860
803
|
break;
|
|
861
804
|
case "snk-select-box":
|
|
862
805
|
if (!customElements.get(tagName)) {
|
|
863
|
-
defineCustomElement$
|
|
806
|
+
defineCustomElement$a();
|
|
864
807
|
}
|
|
865
808
|
break;
|
|
866
809
|
case "snk-simple-bar":
|
|
867
810
|
if (!customElements.get(tagName)) {
|
|
868
|
-
defineCustomElement$
|
|
811
|
+
defineCustomElement$9();
|
|
869
812
|
}
|
|
870
813
|
break;
|
|
871
814
|
case "snk-simple-crud":
|
|
872
815
|
if (!customElements.get(tagName)) {
|
|
873
|
-
defineCustomElement$
|
|
816
|
+
defineCustomElement$8();
|
|
874
817
|
}
|
|
875
818
|
break;
|
|
876
819
|
case "snk-simple-form-config":
|
|
877
820
|
if (!customElements.get(tagName)) {
|
|
878
|
-
defineCustomElement$
|
|
821
|
+
defineCustomElement$7();
|
|
879
822
|
}
|
|
880
823
|
break;
|
|
881
824
|
case "snk-taskbar":
|
|
825
|
+
if (!customElements.get(tagName)) {
|
|
826
|
+
defineCustomElement$6();
|
|
827
|
+
}
|
|
828
|
+
break;
|
|
829
|
+
case "snk-taskbar-skeleton":
|
|
882
830
|
if (!customElements.get(tagName)) {
|
|
883
831
|
defineCustomElement$5();
|
|
884
832
|
}
|
|
@@ -944,7 +892,7 @@ class GuideBuilder {
|
|
|
944
892
|
};
|
|
945
893
|
});
|
|
946
894
|
const newGuideItem = children.shift();
|
|
947
|
-
newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.
|
|
895
|
+
newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.newRecord") : currentRecord.__record__label__;
|
|
948
896
|
newGuideItem.children = children;
|
|
949
897
|
item.children = [newGuideItem];
|
|
950
898
|
return item;
|
|
@@ -1143,9 +1091,6 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
1143
1091
|
this.snkSwitchGuide.emit(guideId);
|
|
1144
1092
|
}
|
|
1145
1093
|
}
|
|
1146
|
-
handleAttachBack() {
|
|
1147
|
-
this._viewStack.show(VIEW_MODE.GRID);
|
|
1148
|
-
}
|
|
1149
1094
|
executeActionHandler(evt) {
|
|
1150
1095
|
if (evt.detail === TaskbarElement.GRID_MODE) {
|
|
1151
1096
|
this.emitSwitchEvent(VIEW_MODE.GRID);
|
|
@@ -1156,7 +1101,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
1156
1101
|
evt.stopPropagation();
|
|
1157
1102
|
}
|
|
1158
1103
|
if (evt.detail === TaskbarElement.ATTACH) {
|
|
1159
|
-
this.
|
|
1104
|
+
this._snkAttach.open();
|
|
1160
1105
|
evt.stopPropagation();
|
|
1161
1106
|
}
|
|
1162
1107
|
}
|
|
@@ -1194,6 +1139,9 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
1194
1139
|
if (action.type === Action.FIELD_INVALIDATED) {
|
|
1195
1140
|
this.addErrorBadgeToBranchGuide();
|
|
1196
1141
|
}
|
|
1142
|
+
else if (action.type === Action.DATA_LOADED) {
|
|
1143
|
+
this.dataUnit.selectFirst();
|
|
1144
|
+
}
|
|
1197
1145
|
}
|
|
1198
1146
|
addErrorBadgeToBranchGuide() {
|
|
1199
1147
|
this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
|
|
@@ -1248,7 +1196,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
1248
1196
|
render() {
|
|
1249
1197
|
this.updateLabel();
|
|
1250
1198
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
|
1251
|
-
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), fieldToFocus: this._fieldToGetFocus, label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems), onSnkRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), fieldSearch: this._fieldSearch }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS", actionsSettingsList: this.getSettingsListForm() }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("
|
|
1199
|
+
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false, enableGridInsert: true }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), fieldToFocus: this._fieldToGetFocus, label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems), onSnkRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), fieldSearch: this._fieldSearch, entityPath: this.entityName }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS", actionsSettingsList: this.getSettingsListForm() }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))))), h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName }))));
|
|
1252
1200
|
}
|
|
1253
1201
|
get _element() { return this; }
|
|
1254
1202
|
static get watchers() { return {
|
|
@@ -1291,7 +1239,7 @@ function defineCustomElement() {
|
|
|
1291
1239
|
if (typeof customElements === "undefined") {
|
|
1292
1240
|
return;
|
|
1293
1241
|
}
|
|
1294
|
-
const components = ["snk-detail-view", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-default-filter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-layout-form-config", "snk-numbering-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
1242
|
+
const components = ["snk-detail-view", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-default-filter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-image-input", "snk-layout-form-config", "snk-numbering-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-taskbar-skeleton", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
1295
1243
|
components.forEach(tagName => { switch (tagName) {
|
|
1296
1244
|
case "snk-detail-view":
|
|
1297
1245
|
if (!customElements.get(tagName)) {
|
|
@@ -1300,150 +1248,160 @@ function defineCustomElement() {
|
|
|
1300
1248
|
break;
|
|
1301
1249
|
case "snk-actions-button":
|
|
1302
1250
|
if (!customElements.get(tagName)) {
|
|
1303
|
-
defineCustomElement$
|
|
1251
|
+
defineCustomElement$B();
|
|
1304
1252
|
}
|
|
1305
1253
|
break;
|
|
1306
1254
|
case "snk-attach":
|
|
1307
1255
|
if (!customElements.get(tagName)) {
|
|
1308
|
-
defineCustomElement$
|
|
1256
|
+
defineCustomElement$A();
|
|
1309
1257
|
}
|
|
1310
1258
|
break;
|
|
1311
1259
|
case "snk-configurator":
|
|
1312
1260
|
if (!customElements.get(tagName)) {
|
|
1313
|
-
defineCustomElement$
|
|
1261
|
+
defineCustomElement$z();
|
|
1314
1262
|
}
|
|
1315
1263
|
break;
|
|
1316
1264
|
case "snk-data-exporter":
|
|
1317
1265
|
if (!customElements.get(tagName)) {
|
|
1318
|
-
defineCustomElement$
|
|
1266
|
+
defineCustomElement$y();
|
|
1319
1267
|
}
|
|
1320
1268
|
break;
|
|
1321
1269
|
case "snk-data-unit":
|
|
1322
1270
|
if (!customElements.get(tagName)) {
|
|
1323
|
-
defineCustomElement$
|
|
1271
|
+
defineCustomElement$x();
|
|
1324
1272
|
}
|
|
1325
1273
|
break;
|
|
1326
1274
|
case "snk-default-filter":
|
|
1327
1275
|
if (!customElements.get(tagName)) {
|
|
1328
|
-
defineCustomElement$
|
|
1276
|
+
defineCustomElement$w();
|
|
1329
1277
|
}
|
|
1330
1278
|
break;
|
|
1331
1279
|
case "snk-exporter-email-sender":
|
|
1332
1280
|
if (!customElements.get(tagName)) {
|
|
1333
|
-
defineCustomElement$
|
|
1281
|
+
defineCustomElement$v();
|
|
1334
1282
|
}
|
|
1335
1283
|
break;
|
|
1336
1284
|
case "snk-expression-group":
|
|
1337
1285
|
if (!customElements.get(tagName)) {
|
|
1338
|
-
defineCustomElement$
|
|
1286
|
+
defineCustomElement$u();
|
|
1339
1287
|
}
|
|
1340
1288
|
break;
|
|
1341
1289
|
case "snk-expression-item":
|
|
1342
1290
|
if (!customElements.get(tagName)) {
|
|
1343
|
-
defineCustomElement$
|
|
1291
|
+
defineCustomElement$t();
|
|
1344
1292
|
}
|
|
1345
1293
|
break;
|
|
1346
1294
|
case "snk-filter-advanced-mode":
|
|
1347
1295
|
if (!customElements.get(tagName)) {
|
|
1348
|
-
defineCustomElement$
|
|
1296
|
+
defineCustomElement$s();
|
|
1349
1297
|
}
|
|
1350
1298
|
break;
|
|
1351
1299
|
case "snk-filter-assistent-mode":
|
|
1352
1300
|
if (!customElements.get(tagName)) {
|
|
1353
|
-
defineCustomElement$
|
|
1301
|
+
defineCustomElement$r();
|
|
1354
1302
|
}
|
|
1355
1303
|
break;
|
|
1356
1304
|
case "snk-filter-bar":
|
|
1357
1305
|
if (!customElements.get(tagName)) {
|
|
1358
|
-
defineCustomElement$
|
|
1306
|
+
defineCustomElement$q();
|
|
1359
1307
|
}
|
|
1360
1308
|
break;
|
|
1361
1309
|
case "snk-filter-detail":
|
|
1362
1310
|
if (!customElements.get(tagName)) {
|
|
1363
|
-
defineCustomElement$
|
|
1311
|
+
defineCustomElement$p();
|
|
1364
1312
|
}
|
|
1365
1313
|
break;
|
|
1366
1314
|
case "snk-filter-field-search":
|
|
1367
1315
|
if (!customElements.get(tagName)) {
|
|
1368
|
-
defineCustomElement$
|
|
1316
|
+
defineCustomElement$o();
|
|
1369
1317
|
}
|
|
1370
1318
|
break;
|
|
1371
1319
|
case "snk-filter-item":
|
|
1372
1320
|
if (!customElements.get(tagName)) {
|
|
1373
|
-
defineCustomElement$
|
|
1321
|
+
defineCustomElement$n();
|
|
1374
1322
|
}
|
|
1375
1323
|
break;
|
|
1376
1324
|
case "snk-filter-modal":
|
|
1377
1325
|
if (!customElements.get(tagName)) {
|
|
1378
|
-
defineCustomElement$
|
|
1326
|
+
defineCustomElement$m();
|
|
1379
1327
|
}
|
|
1380
1328
|
break;
|
|
1381
1329
|
case "snk-filter-modal-item":
|
|
1382
1330
|
if (!customElements.get(tagName)) {
|
|
1383
|
-
defineCustomElement$
|
|
1331
|
+
defineCustomElement$l();
|
|
1384
1332
|
}
|
|
1385
1333
|
break;
|
|
1386
1334
|
case "snk-filter-param-config":
|
|
1387
1335
|
if (!customElements.get(tagName)) {
|
|
1388
|
-
defineCustomElement$
|
|
1336
|
+
defineCustomElement$k();
|
|
1389
1337
|
}
|
|
1390
1338
|
break;
|
|
1391
1339
|
case "snk-form-summary":
|
|
1392
1340
|
if (!customElements.get(tagName)) {
|
|
1393
|
-
defineCustomElement$
|
|
1341
|
+
defineCustomElement$i();
|
|
1394
1342
|
}
|
|
1395
1343
|
break;
|
|
1396
1344
|
case "snk-form-view":
|
|
1397
1345
|
if (!customElements.get(tagName)) {
|
|
1398
|
-
defineCustomElement$
|
|
1346
|
+
defineCustomElement$h();
|
|
1399
1347
|
}
|
|
1400
1348
|
break;
|
|
1401
1349
|
case "snk-grid":
|
|
1402
1350
|
if (!customElements.get(tagName)) {
|
|
1403
|
-
defineCustomElement$
|
|
1351
|
+
defineCustomElement$g();
|
|
1404
1352
|
}
|
|
1405
1353
|
break;
|
|
1406
1354
|
case "snk-grid-config":
|
|
1407
1355
|
if (!customElements.get(tagName)) {
|
|
1408
|
-
defineCustomElement$
|
|
1356
|
+
defineCustomElement$f();
|
|
1357
|
+
}
|
|
1358
|
+
break;
|
|
1359
|
+
case "snk-image-input":
|
|
1360
|
+
if (!customElements.get(tagName)) {
|
|
1361
|
+
defineCustomElement$e();
|
|
1409
1362
|
}
|
|
1410
1363
|
break;
|
|
1411
1364
|
case "snk-layout-form-config":
|
|
1412
1365
|
if (!customElements.get(tagName)) {
|
|
1413
|
-
defineCustomElement$
|
|
1366
|
+
defineCustomElement$d();
|
|
1414
1367
|
}
|
|
1415
1368
|
break;
|
|
1416
1369
|
case "snk-numbering-config":
|
|
1417
1370
|
if (!customElements.get(tagName)) {
|
|
1418
|
-
defineCustomElement$
|
|
1371
|
+
defineCustomElement$c();
|
|
1419
1372
|
}
|
|
1420
1373
|
break;
|
|
1421
1374
|
case "snk-personalized-filter":
|
|
1422
1375
|
if (!customElements.get(tagName)) {
|
|
1423
|
-
defineCustomElement$
|
|
1376
|
+
defineCustomElement$b();
|
|
1424
1377
|
}
|
|
1425
1378
|
break;
|
|
1426
1379
|
case "snk-select-box":
|
|
1427
1380
|
if (!customElements.get(tagName)) {
|
|
1428
|
-
defineCustomElement$
|
|
1381
|
+
defineCustomElement$a();
|
|
1429
1382
|
}
|
|
1430
1383
|
break;
|
|
1431
1384
|
case "snk-simple-bar":
|
|
1432
1385
|
if (!customElements.get(tagName)) {
|
|
1433
|
-
defineCustomElement$
|
|
1386
|
+
defineCustomElement$9();
|
|
1434
1387
|
}
|
|
1435
1388
|
break;
|
|
1436
1389
|
case "snk-simple-crud":
|
|
1437
1390
|
if (!customElements.get(tagName)) {
|
|
1438
|
-
defineCustomElement$
|
|
1391
|
+
defineCustomElement$8();
|
|
1439
1392
|
}
|
|
1440
1393
|
break;
|
|
1441
1394
|
case "snk-simple-form-config":
|
|
1442
1395
|
if (!customElements.get(tagName)) {
|
|
1443
|
-
defineCustomElement$
|
|
1396
|
+
defineCustomElement$7();
|
|
1444
1397
|
}
|
|
1445
1398
|
break;
|
|
1446
1399
|
case "snk-taskbar":
|
|
1400
|
+
if (!customElements.get(tagName)) {
|
|
1401
|
+
defineCustomElement$6();
|
|
1402
|
+
}
|
|
1403
|
+
break;
|
|
1404
|
+
case "snk-taskbar-skeleton":
|
|
1447
1405
|
if (!customElements.get(tagName)) {
|
|
1448
1406
|
defineCustomElement$5();
|
|
1449
1407
|
}
|