@sankhyalabs/sankhyablocks 10.1.0-dev.4 → 10.1.0-dev.41
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 +160 -113
- 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 +153 -51
- 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 +109 -50
- 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 +161 -114
- 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-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-2b3c284c.entry.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
|
@@ -2,21 +2,22 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index$1 = require('./index-
|
|
5
|
+
const index$1 = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
|
9
9
|
const index = require('./index-e3e39724.js');
|
|
10
10
|
const constants = require('./constants-6d82e405.js');
|
|
11
|
-
const DataFetcher = require('./DataFetcher-
|
|
12
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
13
|
-
require('./ISave-
|
|
11
|
+
const DataFetcher = require('./DataFetcher-384d2ce8.js');
|
|
12
|
+
const snkDataUnit = require('./snk-data-unit-6abc5efc.js');
|
|
13
|
+
require('./ISave-ecbe9336.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
require('./dataunit-fetcher-
|
|
16
|
+
require('./dataunit-fetcher-93f53260.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-45d1964c.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
|
+
require('./SnkMessageBuilder-a9300ebe.js');
|
|
20
21
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
21
22
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
22
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -465,6 +466,7 @@ const SnkDataExporter = class {
|
|
|
465
466
|
this._showDropdown = false;
|
|
466
467
|
this.provider = null;
|
|
467
468
|
this.messagesBuilder = undefined;
|
|
469
|
+
this.size = 'medium';
|
|
468
470
|
}
|
|
469
471
|
async exportByEmail() {
|
|
470
472
|
const selectedRows = this._selectedNumber;
|
|
@@ -750,7 +752,7 @@ const SnkDataExporter = class {
|
|
|
750
752
|
render() {
|
|
751
753
|
return (index$1.h(index$1.Host, null, index$1.h("div", { class: `snk-data-exporter
|
|
752
754
|
${this.canShowDropdown() ? " ez-elevation--16" : ""}
|
|
753
|
-
` }, index$1.h("ez-button", Object.assign({ ref: (ref) => this._ezButton = ref, iconName: "file-download",
|
|
755
|
+
` }, index$1.h("ez-tooltip", { message: this.getMessage("snkDataExporter.group.export.title") }, index$1.h("ez-button", Object.assign({ ref: (ref) => this._ezButton = ref, iconName: "file-download", mode: "icon", onClick: () => this.controlDropdown(), size: this.size }, this.getElementID("button")))), index$1.h("div", Object.assign({ ref: (ref) => this._dropdownParent = ref, class: `snk-data-exporter__dropdown
|
|
754
756
|
${this.canShowDropdown() ? "snk-data-exporter__dropdown--show" : ""}
|
|
755
757
|
` }, this.getElementID("dropdown")), this.canShowDropdown() &&
|
|
756
758
|
index$1.h("ez-dropdown", Object.assign({ items: this._items, onEzClick: (evt) => this.processExporter(evt) }, this.getElementID("dropdown"))))), this.canShowDropdown() &&
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-1894343a.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
6
|
-
const
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
6
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-a9300ebe.js');
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-93f53260.js');
|
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
10
10
|
|
|
@@ -155,6 +155,7 @@ const SnkDataUnit = class {
|
|
|
155
155
|
this._metadataByRow = new Map();
|
|
156
156
|
this._rowMetadataCache = new Map();
|
|
157
157
|
this._formFieldsConfig = [];
|
|
158
|
+
this._internalDataStateChange = false;
|
|
158
159
|
this.REGEX_DATAUNIT_NAME = /dd:\/\/(.+?)\//;
|
|
159
160
|
this._dataUnitObserver = async (action) => {
|
|
160
161
|
const duState = await this.buildDataState(action.type);
|
|
@@ -409,11 +410,17 @@ const SnkDataUnit = class {
|
|
|
409
410
|
if (this.isAllowed("UPDATE") || this.dataUnit.isNewRecord(recordId)) {
|
|
410
411
|
return action;
|
|
411
412
|
}
|
|
413
|
+
if (this._internalDataStateChange) {
|
|
414
|
+
this._internalDataStateChange = false;
|
|
415
|
+
return;
|
|
416
|
+
}
|
|
412
417
|
if (this._openedAlert) {
|
|
418
|
+
this._internalDataStateChange = true;
|
|
413
419
|
await this.dataUnit.cancelEdition();
|
|
414
420
|
return;
|
|
415
421
|
}
|
|
416
422
|
this._openedAlert = true;
|
|
423
|
+
this._internalDataStateChange = true;
|
|
417
424
|
await this.dataUnit.cancelEdition();
|
|
418
425
|
await utils.ApplicationUtils.alert(this.getMessage("snkDataUnit.forbidden"), this.getMessage("snkDataUnit.forbiddenUpdate"));
|
|
419
426
|
this._openedAlert = false;
|
|
@@ -616,6 +623,8 @@ const SnkDataUnit = class {
|
|
|
616
623
|
return records;
|
|
617
624
|
const parentSelectedRecord = parentDataUnit.getSelectedRecord();
|
|
618
625
|
const selfInfo = parentDataUnit === null || parentDataUnit === void 0 ? void 0 : parentDataUnit.getChildInfo(this.getCleanDataUnitName());
|
|
626
|
+
if (!selfInfo)
|
|
627
|
+
return records;
|
|
619
628
|
const { links } = selfInfo;
|
|
620
629
|
if (!links || links.length === 0)
|
|
621
630
|
return records;
|
|
@@ -691,7 +700,7 @@ const SnkDataUnit = class {
|
|
|
691
700
|
this.dataState = await this.buildDataState();
|
|
692
701
|
let saveOperation = changes[0]._operation.toLowerCase();
|
|
693
702
|
if (saveOperation == 'copy') {
|
|
694
|
-
saveOperation =
|
|
703
|
+
saveOperation = SnkMessageBuilder.OperationMap.CLONE;
|
|
695
704
|
}
|
|
696
705
|
if (this.canIgnoreOperationMessage(saveOperation))
|
|
697
706
|
return;
|
|
@@ -704,7 +713,7 @@ const SnkDataUnit = class {
|
|
|
704
713
|
return this.ignoreSaveMessage && !this.isCloneOrInsertOperation(saveOperation);
|
|
705
714
|
}
|
|
706
715
|
isCloneOrInsertOperation(saveOperation) {
|
|
707
|
-
return [
|
|
716
|
+
return [SnkMessageBuilder.OperationMap.CLONE, SnkMessageBuilder.OperationMap.INSERT].includes(saveOperation);
|
|
708
717
|
}
|
|
709
718
|
buildOperationMessage(saveOperation, records) {
|
|
710
719
|
if (this.isMultiplesUpdate(saveOperation, records)) {
|
|
@@ -719,10 +728,10 @@ const SnkDataUnit = class {
|
|
|
719
728
|
* de um registro se trata de uma chave composta.
|
|
720
729
|
*/
|
|
721
730
|
const key = `snkDataUnit.${isCancel ? 'cancelInfo' : 'saveInfo'}`;
|
|
722
|
-
return this.getMessage(key, { records: records },
|
|
731
|
+
return this.getMessage(key, { records: records }, SnkMessageBuilder.OperationMap.UPDATE_MULTIPLES);
|
|
723
732
|
}
|
|
724
733
|
isMultiplesUpdate(saveOperation, records) {
|
|
725
|
-
return saveOperation ===
|
|
734
|
+
return saveOperation === SnkMessageBuilder.OperationMap.UPDATE && records.length > 1;
|
|
726
735
|
}
|
|
727
736
|
handleRecordsRemoved(action) {
|
|
728
737
|
var _a, _b;
|
|
@@ -767,15 +776,15 @@ const SnkDataUnit = class {
|
|
|
767
776
|
}
|
|
768
777
|
getMessageOperation() {
|
|
769
778
|
if (this.dataState.copyMode) {
|
|
770
|
-
return
|
|
779
|
+
return SnkMessageBuilder.OperationMap.CLONE;
|
|
771
780
|
}
|
|
772
781
|
if (this.dataState.insertionMode || this.dataState.isStartingInsertionMode) {
|
|
773
|
-
return
|
|
782
|
+
return SnkMessageBuilder.OperationMap.INSERT;
|
|
774
783
|
}
|
|
775
784
|
if (this.dataState.isDirty) {
|
|
776
|
-
return
|
|
785
|
+
return SnkMessageBuilder.OperationMap.UPDATE;
|
|
777
786
|
}
|
|
778
|
-
return
|
|
787
|
+
return SnkMessageBuilder.OperationMap.CLEAN;
|
|
779
788
|
}
|
|
780
789
|
async getDataUnitParentOrChild() {
|
|
781
790
|
var _a;
|
|
@@ -878,7 +887,7 @@ const SnkDataUnit = class {
|
|
|
878
887
|
if (this.messagesBuilder) {
|
|
879
888
|
return;
|
|
880
889
|
}
|
|
881
|
-
this.messagesBuilder = new
|
|
890
|
+
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
|
|
882
891
|
}
|
|
883
892
|
//---------------------------------------------
|
|
884
893
|
// Lifecycle web component
|
|
@@ -2,14 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
6
|
-
require('./index-
|
|
5
|
+
const snkDataUnit = require('./snk-data-unit-6abc5efc.js');
|
|
6
|
+
require('./index-1894343a.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
|
-
require('./
|
|
9
|
+
require('./SnkMessageBuilder-a9300ebe.js');
|
|
10
|
+
require('./dataunit-fetcher-93f53260.js');
|
|
11
|
+
require('./DataFetcher-384d2ce8.js');
|
|
10
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
11
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
-
require('./dataunit-fetcher-ab1cc071.js');
|
|
13
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
14
15
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
15
16
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
6
|
const defaultFilters = require('./default-filters-a09bf82b.js');
|
|
7
7
|
|
|
8
8
|
const snkDefaultFilterCss = ".sc-snk-default-filter-h{display:flex;justify-content:flex-end}.default_container.sc-snk-default-filter{border:none;background:none;display:flex;align-items:center;gap:var(--space--3xs, 4px);font-family:var(--font-pattern);color:var(--title--primary, #2b3a54);font-size:var(--text--medium, 14px);padding:0;outline:none}.default_container.sc-snk-default-filter ez-icon.sc-snk-default-filter{cursor:pointer}.default_container.sc-snk-default-filter ez-icon.sc-snk-default-filter:hover{color:var(--color--primary-600)}.new_filter.sc-snk-default-filter{cursor:pointer;margin:0 var(--space--3xs, 4px)}.new_filter.sc-snk-default-filter:hover{color:var(--color--primary-600)}";
|
|
@@ -2,30 +2,29 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-44386305.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
|
-
|
|
10
|
-
require('./ISave-
|
|
9
|
+
require('./DataFetcher-384d2ce8.js');
|
|
10
|
+
require('./ISave-ecbe9336.js');
|
|
11
11
|
const index$1 = require('./index-e3e39724.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
-
require('./dataunit-fetcher-
|
|
14
|
+
require('./dataunit-fetcher-93f53260.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
|
-
require('./form-config-fetcher-
|
|
16
|
+
require('./form-config-fetcher-45d1964c.js');
|
|
17
17
|
const constants = require('./constants-6d82e405.js');
|
|
18
|
-
const taskbarElements = require('./taskbar-elements-
|
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
18
|
+
const taskbarElements = require('./taskbar-elements-80eddec8.js');
|
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-b4ca3437.js');
|
|
20
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-a9300ebe.js');
|
|
20
21
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
21
|
-
require('./ConfigStorage-
|
|
22
|
+
require('./ConfigStorage-a1fab5ca.js');
|
|
22
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
23
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
24
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
25
26
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
26
|
-
require('./index-
|
|
27
|
-
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
28
|
-
require('./taskbar-processor-2fba34a8.js');
|
|
27
|
+
require('./index-f0fe7e6e.js');
|
|
29
28
|
|
|
30
29
|
class GuideBuilder {
|
|
31
30
|
constructor(parentGuide, formMetadata, dataUnit, messageBuilder) {
|
|
@@ -34,7 +33,7 @@ class GuideBuilder {
|
|
|
34
33
|
this._dataUnit = dataUnit;
|
|
35
34
|
this._messageBuilder = messageBuilder;
|
|
36
35
|
if (!this._messageBuilder) {
|
|
37
|
-
this._messageBuilder = new
|
|
36
|
+
this._messageBuilder = new SnkMessageBuilder.SnkMessageBuilder();
|
|
38
37
|
}
|
|
39
38
|
}
|
|
40
39
|
get id() {
|
|
@@ -70,7 +69,7 @@ class GuideBuilder {
|
|
|
70
69
|
};
|
|
71
70
|
});
|
|
72
71
|
const newGuideItem = children.shift();
|
|
73
|
-
newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.
|
|
72
|
+
newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.newRecord") : currentRecord.__record__label__;
|
|
74
73
|
newGuideItem.children = children;
|
|
75
74
|
item.children = [newGuideItem];
|
|
76
75
|
return item;
|
|
@@ -268,9 +267,6 @@ const SnkDetailView = class {
|
|
|
268
267
|
this.snkSwitchGuide.emit(guideId);
|
|
269
268
|
}
|
|
270
269
|
}
|
|
271
|
-
handleAttachBack() {
|
|
272
|
-
this._viewStack.show(constants.VIEW_MODE.GRID);
|
|
273
|
-
}
|
|
274
270
|
executeActionHandler(evt) {
|
|
275
271
|
if (evt.detail === taskbarElements.TaskbarElement.GRID_MODE) {
|
|
276
272
|
this.emitSwitchEvent(constants.VIEW_MODE.GRID);
|
|
@@ -281,7 +277,7 @@ const SnkDetailView = class {
|
|
|
281
277
|
evt.stopPropagation();
|
|
282
278
|
}
|
|
283
279
|
if (evt.detail === taskbarElements.TaskbarElement.ATTACH) {
|
|
284
|
-
this.
|
|
280
|
+
this._snkAttach.open();
|
|
285
281
|
evt.stopPropagation();
|
|
286
282
|
}
|
|
287
283
|
}
|
|
@@ -303,7 +299,7 @@ const SnkDetailView = class {
|
|
|
303
299
|
this.formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata(), this.dataUnit);
|
|
304
300
|
this.formConfigManager.loadConfig();
|
|
305
301
|
if (this.messagesBuilder == undefined) {
|
|
306
|
-
this.messagesBuilder = new
|
|
302
|
+
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder(this.entityName);
|
|
307
303
|
}
|
|
308
304
|
}
|
|
309
305
|
async componentDidLoad() {
|
|
@@ -319,6 +315,9 @@ const SnkDetailView = class {
|
|
|
319
315
|
if (action.type === core.Action.FIELD_INVALIDATED) {
|
|
320
316
|
this.addErrorBadgeToBranchGuide();
|
|
321
317
|
}
|
|
318
|
+
else if (action.type === core.Action.DATA_LOADED) {
|
|
319
|
+
this.dataUnit.selectFirst();
|
|
320
|
+
}
|
|
322
321
|
}
|
|
323
322
|
addErrorBadgeToBranchGuide() {
|
|
324
323
|
this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
|
|
@@ -373,7 +372,7 @@ const SnkDetailView = class {
|
|
|
373
372
|
render() {
|
|
374
373
|
this.updateLabel();
|
|
375
374
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
|
376
|
-
return (index.h(index.Host, null, index.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 === constants.VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, index.h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.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 }))), index.h("stack-item", null, index.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 }, index.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() }, index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), index.h("
|
|
375
|
+
return (index.h(index.Host, null, index.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 === constants.VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, index.h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, index.h("stack-item", null, index.h("div", { class: "ez-box ez-box--shadow grid-container" }, index.h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, index.h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? index.h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), index.h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(constants.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 }))), index.h("stack-item", null, index.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 }, index.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() }, index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))))), index.h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName }))));
|
|
377
376
|
}
|
|
378
377
|
get _element() { return index.getElement(this); }
|
|
379
378
|
static get watchers() { return {
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const snkEntityListCss = ".sc-snk-entity-list-h{--snk-entity-list--label--font-size:var(--text--medium, 14px);--snk-entity-list--label--font-family:var(--font-pattern, Arial);--snk-entity-list--label--color:var(--title--primary, #000);--snk-entity-list--label--disabled--color:var(--text--disable, #AFB6C0)}.label.sc-snk-entity-list{flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--snk-entity-list--label--color);font-size:var(--snk-entity-list--label--font-size);font-family:var(--snk-entity-list--label--font-family);cursor:default;padding-left:var(--space--small);padding-bottom:var(--space--extra-small)}.snk-entity-list--overflow.sc-snk-entity-list{overflow:auto}.snk-entity-list--overflow.sc-snk-entity-list::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";
|
|
@@ -0,0 +1,211 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
|
|
8
|
+
const snkEntitySearchCss = ".entity-search-popover{width:432px;font-family:var(--font-pattern, \"Roboto\");color:var(--color--gray-600, #1C1D22);text-shadow:0 0 var(--color--gray-500, #494A4E), 0 0 1px transparent;font-size:var(--font-size--large, 18px);padding:var(--space--24, 24px);max-width:430px;display:flex;flex-direction:column}.entity-search-popover label{margin-bottom:var(--space--16, 16px)}";
|
|
9
|
+
|
|
10
|
+
const SnkEntitySearch = class {
|
|
11
|
+
constructor(hostRef) {
|
|
12
|
+
index.registerInstance(this, hostRef);
|
|
13
|
+
this.loaded = index.createEvent(this, "loaded", 7);
|
|
14
|
+
this.SEARCH_DESCRIPTION_TIMEOUT = 300;
|
|
15
|
+
this._entityPKField = null;
|
|
16
|
+
this.searchEntitySelect = async (item) => {
|
|
17
|
+
if (!this._entityPKField || !item) {
|
|
18
|
+
return;
|
|
19
|
+
}
|
|
20
|
+
try {
|
|
21
|
+
const pk = [{ name: this._entityPKField, value: item.value }];
|
|
22
|
+
await this.closeSearchPopover();
|
|
23
|
+
await this.refreshDataUnitByPk(pk);
|
|
24
|
+
}
|
|
25
|
+
catch (error) {
|
|
26
|
+
console.error('Erro ao selecionar entidade:', error);
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
this.entityName = "";
|
|
30
|
+
this.dataUnit = undefined;
|
|
31
|
+
this.messagesBuilder = undefined;
|
|
32
|
+
this._searchInputValue = "";
|
|
33
|
+
this._showMoreOnSearch = false;
|
|
34
|
+
this.visibleOptions = [];
|
|
35
|
+
this.value = undefined;
|
|
36
|
+
this.showLoading = true;
|
|
37
|
+
}
|
|
38
|
+
async showUnder(element) {
|
|
39
|
+
await this._popoverSearchEntity.showUnder(element, { horizontalGap: 12, verticalGap: 4 });
|
|
40
|
+
}
|
|
41
|
+
buildSearchOptions(limit) {
|
|
42
|
+
return {
|
|
43
|
+
entity: this.entityName,
|
|
44
|
+
entityDescription: this.entityName,
|
|
45
|
+
executeOnOpen: true,
|
|
46
|
+
searchOptions: {
|
|
47
|
+
localEntityName: this.entityName,
|
|
48
|
+
limit,
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
async handlePredictiveSearch(argument) {
|
|
53
|
+
var _a, _b;
|
|
54
|
+
const response = await this._application.executePreparedSearchWithFullResponse(argument, this.buildSearchOptions(5));
|
|
55
|
+
this._showMoreOnSearch = (_a = response === null || response === void 0 ? void 0 : response.hasMore) !== null && _a !== void 0 ? _a : false;
|
|
56
|
+
this._entityPKField = response === null || response === void 0 ? void 0 : response.pkField;
|
|
57
|
+
return (_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : [];
|
|
58
|
+
}
|
|
59
|
+
async loadEntitySuggestions(argument) {
|
|
60
|
+
var _a;
|
|
61
|
+
const value = (_a = argument === null || argument === void 0 ? void 0 : argument.argument) !== null && _a !== void 0 ? _a : '';
|
|
62
|
+
const mode = (argument === null || argument === void 0 ? void 0 : argument.mode) || "PREDICTIVE";
|
|
63
|
+
if (!value || value.trim().length === 0) {
|
|
64
|
+
return [];
|
|
65
|
+
}
|
|
66
|
+
try {
|
|
67
|
+
this._showMoreOnSearch = false;
|
|
68
|
+
if (mode === "PREDICTIVE") {
|
|
69
|
+
return await this.handlePredictiveSearch(value);
|
|
70
|
+
}
|
|
71
|
+
const searchResult = await this._application.executePreparedSearch(mode, value, this.buildSearchOptions());
|
|
72
|
+
return Array.isArray(searchResult) ? searchResult : [searchResult];
|
|
73
|
+
}
|
|
74
|
+
catch (error) {
|
|
75
|
+
console.error('Erro ao carregar sugestões de entidades:', error);
|
|
76
|
+
return [];
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
async refreshDataUnitByPk(pks) {
|
|
80
|
+
try {
|
|
81
|
+
const pkField = pks[0].name;
|
|
82
|
+
const pkValue = pks[0].value;
|
|
83
|
+
// Criar filtro para a busca específica
|
|
84
|
+
const quickFilter = {
|
|
85
|
+
term: '',
|
|
86
|
+
filter: {
|
|
87
|
+
name: '',
|
|
88
|
+
params: [],
|
|
89
|
+
expression: `(${pkField} = ${pkValue})`
|
|
90
|
+
}
|
|
91
|
+
};
|
|
92
|
+
// Carregar dados com o filtro aplicado diretamente
|
|
93
|
+
await this.dataUnit.loadData(quickFilter);
|
|
94
|
+
this.loaded.emit(this.dataUnit.records);
|
|
95
|
+
}
|
|
96
|
+
catch (error) {
|
|
97
|
+
console.error('Erro ao atualizar dataset:', error);
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
async closeSearchPopover() {
|
|
101
|
+
if (this._popoverSearchEntity && this._popoverSearchEntity.opened) {
|
|
102
|
+
await this._popoverSearchEntity.hide();
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
async handleOnEzVisibilityChange(event) {
|
|
106
|
+
if (event.detail) {
|
|
107
|
+
await this._textInput.setFocus();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
async handleSelectItem(evt) {
|
|
111
|
+
const currentOpt = evt.detail;
|
|
112
|
+
this.value = currentOpt;
|
|
113
|
+
await this._popoverListResult.hide();
|
|
114
|
+
await this.searchEntitySelect(currentOpt);
|
|
115
|
+
this._searchInputValue = "";
|
|
116
|
+
}
|
|
117
|
+
updateKeyOption(option) {
|
|
118
|
+
return (Object.assign(Object.assign({}, option), { presentationValue: option.value, presentationLabel: option.label }));
|
|
119
|
+
}
|
|
120
|
+
async handleInputChange(value) {
|
|
121
|
+
if (this._debounceSearch) {
|
|
122
|
+
clearTimeout(this._debounceSearch);
|
|
123
|
+
}
|
|
124
|
+
return new Promise((resolve) => {
|
|
125
|
+
this._debounceSearch = setTimeout(async () => {
|
|
126
|
+
var _a;
|
|
127
|
+
this.showLoading = true;
|
|
128
|
+
this._searchInputValue = value;
|
|
129
|
+
await this._popoverListResult.showUnder(this._textInput);
|
|
130
|
+
this.visibleOptions = (_a = (await this.loadEntitySuggestions({ argument: this._searchInputValue, mode: undefined }))) === null || _a === void 0 ? void 0 : _a.map(this.updateKeyOption);
|
|
131
|
+
this.showLoading = false;
|
|
132
|
+
resolve();
|
|
133
|
+
}, this.SEARCH_DESCRIPTION_TIMEOUT);
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
isOptionsVisible() {
|
|
137
|
+
return this._popoverListResult.opened;
|
|
138
|
+
}
|
|
139
|
+
async handleArrowUp() {
|
|
140
|
+
if (!this.isOptionsVisible()) {
|
|
141
|
+
return;
|
|
142
|
+
}
|
|
143
|
+
await this._searchList.previousOption();
|
|
144
|
+
}
|
|
145
|
+
async handleArrowDown() {
|
|
146
|
+
if (!this.isOptionsVisible()) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
await this._searchList.nextOption();
|
|
150
|
+
}
|
|
151
|
+
async selectCurrentItem() {
|
|
152
|
+
var _a;
|
|
153
|
+
await ((_a = this._searchList) === null || _a === void 0 ? void 0 : _a.selectCurrentItem());
|
|
154
|
+
}
|
|
155
|
+
async cancelSelection() {
|
|
156
|
+
var _a, _b;
|
|
157
|
+
await ((_a = this._searchList) === null || _a === void 0 ? void 0 : _a.cancelSelection());
|
|
158
|
+
(_b = this._popoverListResult) === null || _b === void 0 ? void 0 : _b.hide();
|
|
159
|
+
}
|
|
160
|
+
async handleInputTab() {
|
|
161
|
+
await this.cancelSelection();
|
|
162
|
+
}
|
|
163
|
+
async handleInputEsc() {
|
|
164
|
+
await this.cancelSelection();
|
|
165
|
+
}
|
|
166
|
+
getMessage(key, params) {
|
|
167
|
+
if (this.messagesBuilder) {
|
|
168
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
169
|
+
}
|
|
170
|
+
// Fallback para mensagens padrão em português
|
|
171
|
+
const messages = {
|
|
172
|
+
'snkCrud.entitySearch.label': 'Busca por registros',
|
|
173
|
+
'snkCrud.entitySearch.placeholder': 'Digite o que você procura aqui...'
|
|
174
|
+
};
|
|
175
|
+
return messages[key] || key;
|
|
176
|
+
}
|
|
177
|
+
async initKeyboardManager() {
|
|
178
|
+
this._keyboardManager = new core.KeyboardManager();
|
|
179
|
+
const defaultOpts = { element: this._elem, propagate: true };
|
|
180
|
+
this._keyboardManager
|
|
181
|
+
.bind("ArrowUp", () => this.handleArrowUp(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
182
|
+
.bind("ArrowDown", () => this.handleArrowDown(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
183
|
+
.bind("Enter", () => this.selectCurrentItem(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
184
|
+
.bind("Tab", () => this.handleInputTab(), defaultOpts)
|
|
185
|
+
.bind("Escape", () => this.handleInputEsc(), defaultOpts);
|
|
186
|
+
}
|
|
187
|
+
connectedCallback() {
|
|
188
|
+
this.initKeyboardManager();
|
|
189
|
+
}
|
|
190
|
+
componentWillLoad() {
|
|
191
|
+
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
192
|
+
}
|
|
193
|
+
componentDidLoad() {
|
|
194
|
+
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'snk-entity-search');
|
|
195
|
+
}
|
|
196
|
+
disconnectedCallback() {
|
|
197
|
+
this._keyboardManager
|
|
198
|
+
.unbind("ArrowUp")
|
|
199
|
+
.unbind("ArrowDown")
|
|
200
|
+
.unbind("Enter")
|
|
201
|
+
.unbind("Tab")
|
|
202
|
+
.unbind("Escape");
|
|
203
|
+
}
|
|
204
|
+
render() {
|
|
205
|
+
return (index.h(index.Host, null, index.h("ez-popover-core", { ref: (ref) => this._popoverSearchEntity = ref, onEzVisibilityChange: (event) => this.handleOnEzVisibilityChange(event) }, index.h("div", { class: "entity-search-popover" }, index.h("label", null, this.getMessage('snkCrud.entitySearch.label')), index.h("ez-classic-input", { ref: (ref) => this._textInput = ref, placeholder: this.getMessage('snkCrud.entitySearch.placeholder'), rightIconClickable: true, size: "small", value: this._searchInputValue, onEzChange: (evt) => this.handleInputChange(evt.detail) }), index.h("ez-popover-core", { ref: elem => this._popoverListResult = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', useAnchorSize: true, onEzVisibilityChange: (event) => event.stopPropagation() }, index.h("ez-search-result-list", { ref: (ref) => this._searchList = ref, showLoading: this.showLoading, visibleOptions: this.visibleOptions, value: this.value, onChangeValue: (evt) => this.handleSelectItem(evt) }))))));
|
|
206
|
+
}
|
|
207
|
+
get _elem() { return index.getElement(this); }
|
|
208
|
+
};
|
|
209
|
+
SnkEntitySearch.style = snkEntitySearchCss;
|
|
210
|
+
|
|
211
|
+
exports.snk_entity_search = SnkEntitySearch;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
|
|
8
8
|
|
|
@@ -124,7 +124,7 @@ const SnkExporterEmailSender = class {
|
|
|
124
124
|
return (index.h("ez-popup", { useHeader: false, size: "x-small", heightMode: "auto", opened: this._opened }, index.h("ez-modal-container", { onEzModalAction: (evt) => {
|
|
125
125
|
if (evt.detail === ezModalContainer.ModalAction.CLOSE)
|
|
126
126
|
this.close();
|
|
127
|
-
}, modalTitle: this.getMessage("snkExporter.emailSenderTitle"), modalSubTitle: this.getStepMessage("subTitle") }, index.h("ez-view-stack", { ref: ref => this._viewStack = ref }, index.h("stack-item", null, index.h(OptionsStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateConfigInfo(field, value) })), index.h("stack-item", null, index.h(EmailInfoStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateEmailInfo(field, value) }))), index.h("div", { class: "ez-col ez-col--sd-12 ez-flex--justify-end ez-margin-vertical--small" }, index.h("ez-button", Object.assign({ class: "ez-
|
|
127
|
+
}, modalTitle: this.getMessage("snkExporter.emailSenderTitle"), modalSubTitle: this.getStepMessage("subTitle") }, index.h("ez-view-stack", { ref: ref => this._viewStack = ref }, index.h("stack-item", null, index.h(OptionsStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateConfigInfo(field, value) })), index.h("stack-item", null, index.h(EmailInfoStep, { getMessage: this.getMessage, data: this._config, changeInfo: (field, value) => this.updateEmailInfo(field, value) }))), index.h("div", { class: "ez-col ez-col--sd-12 ez-flex--justify-end ez-margin-vertical--small" }, index.h("ez-button", Object.assign({ class: "ez-padding-right--medium", label: this.getStepMessage("firstButton"), onClick: () => this.executeButtonAction(true), enabled: this.checkButtonEnabled(true) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("firstButton")}` }, { variant: "secondary", size: "medium" })), index.h("ez-button", Object.assign({ label: this.getStepMessage("secondButton"), onClick: () => this.executeButtonAction(false), enabled: this.checkButtonEnabled(false) }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${core.ElementIDUtils.getInternalIDInfo("secondButton")}` }, { variant: "primary", size: "medium" }))))));
|
|
128
128
|
}
|
|
129
129
|
get _element() { return index.getElement(this); }
|
|
130
130
|
};
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
6
|
const index$1 = require('./index-62760a9c.js');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const core = require('@sankhyalabs/core');
|
|
9
9
|
const index$3 = require('./index-8d94b7e0.js');
|
|
10
10
|
const FieldBuilder = require('@sankhyalabs/ezui/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder');
|
|
11
|
-
const index$2 = require('./index-
|
|
11
|
+
const index$2 = require('./index-f0fe7e6e.js');
|
|
12
12
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
13
13
|
|
|
14
14
|
const snkExpressionGroupCss = ".sc-snk-expression-group-h{display:block;--snk-expression-group--container-condition--width:184px;--snk-expression-group--container-condition--height:38px;--snk-expression-group--container-condition--border-radius:var(--border--radius-medium, 12px);--snk-expression-group--container-option--width:85px;--snk-expression-group__container-condition--background-and:#66B6A0;--snk-expression-group__container-condition--background-or:#EBC65E;--snk-expression-group__container-expression--padding-left:26px;--snk-expression-group__background-color-dashed:var(--background--body, #fafcff);--ez-text-input__margin-bottom:0px}.snk-expression-group__container-condition.sc-snk-expression-group{width:var(--snk-expression-group--container-condition--width);height:var(--snk-expression-group--container-condition--height);border-radius:var(--snk-expression-group--container-condition--border-radius);z-index:var(--more-visible--2x, 3);padding:var(--space--nano, 2px)}.snk-expression-group__container-option.sc-snk-expression-group{width:var(--snk-expression-group--container-option--width)}.snk-expression-group__container-condition[data-condition=\"AND\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-and)}.snk-expression-group__container-condition[data-condition=\"OR\"].sc-snk-expression-group{background-color:var(--snk-expression-group__container-condition--background-or)}.snk-expression-group__container-expression.sc-snk-expression-group{padding-left:var(--snk-expression-group__container-expression--padding-left)}.dashes.sc-snk-expression-group{z-index:var(--visible, 1);background:var(--snk-expression-group__background-color-dashed);border-left:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:58px;margin-left:-15px;margin-top:-36.5px}.horizontal-dashes.sc-snk-expression-group{z-index:var(--more-visible, 2);border-bottom:2px dashed var(--text-secondary, #A2ABB9);position:absolute;width:15px;height:54px;margin-left:-15px;margin-top:-33.5px}.hidden.sc-snk-expression-group{display:none}";
|
package/dist/cjs/{snk-filter-advanced-mode_2.cjs.entry.js → snk-filter-advanced-mode_3.cjs.entry.js}
RENAMED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
6
|
-
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-
|
|
7
|
-
require('@sankhyalabs/core');
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
|
+
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-eccb267a.js');
|
|
7
|
+
const core = require('@sankhyalabs/core');
|
|
8
8
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
9
9
|
require('./index-62760a9c.js');
|
|
10
10
|
|
|
@@ -57,5 +57,43 @@ const SnkFilterAssistentMode = class {
|
|
|
57
57
|
};
|
|
58
58
|
SnkFilterAssistentMode.style = snkFilterAssistentModeCss;
|
|
59
59
|
|
|
60
|
+
const snkSimpleBarCss = ".sc-snk-simple-bar-h{display:flex;height:100%;width:100%}.simple-bar__container.sc-snk-simple-bar{flex:1;display:flex;align-items:stretch;gap:var(--space--small)}.simple-bar__left-slot.sc-snk-simple-bar{min-width:280px;flex:1;display:flex;align-items:center}.simple-bar__right-slot.sc-snk-simple-bar{flex:1;display:flex;align-items:center;justify-content:flex-end}.simple-bar__column.sc-snk-simple-bar{flex:1;display:flex;flex-direction:column}";
|
|
61
|
+
|
|
62
|
+
const SnkSimpleBar = class {
|
|
63
|
+
constructor(hostRef) {
|
|
64
|
+
index.registerInstance(this, hostRef);
|
|
65
|
+
this.clickBreadcrumbItem = index.createEvent(this, "clickBreadcrumbItem", 3);
|
|
66
|
+
this.exit = index.createEvent(this, "exit", 3);
|
|
67
|
+
this.label = undefined;
|
|
68
|
+
this.breadcrumbItens = undefined;
|
|
69
|
+
this.messagesBuilder = undefined;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Permite customizar as mensagens dos blocos de construção
|
|
73
|
+
* através de um pequeno módulo na estrutura da aplicação:
|
|
74
|
+
* - Crie um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
|
75
|
+
* Para conhecer os detalhes do módulo, veja o arquivo neste projeto: "/src/lib/message/resources/snk-simple-bar.msg.ts"
|
|
76
|
+
*/
|
|
77
|
+
getMessage(key, params) {
|
|
78
|
+
var _a;
|
|
79
|
+
if (this.messagesBuilder)
|
|
80
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
81
|
+
if ((_a = this._application) === null || _a === void 0 ? void 0 : _a.messagesBuilder)
|
|
82
|
+
return this._application.messagesBuilder.getMessage(key, params);
|
|
83
|
+
}
|
|
84
|
+
componentDidLoad() {
|
|
85
|
+
if (!this._element)
|
|
86
|
+
return;
|
|
87
|
+
core.ElementIDUtils.addIDInfo(this._element);
|
|
88
|
+
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
89
|
+
}
|
|
90
|
+
render() {
|
|
91
|
+
return (index.h("div", { class: "simple-bar__container ez-margin-vertical--small ez-padding--extra-small" }, index.h("div", { class: "simple-bar__left-slot" }, index.h("ez-button", { class: "ez-padding-right--medium", title: this.getMessage('snkSimpleBar.backTitle'), mode: 'icon', iconName: "arrow_back", size: 'medium', onClick: () => this.exit.emit() }), index.h("div", { class: "simple-bar__column" }, index.h("h1", { class: "ez-title ez-title--primary ez-title--extra-large" }, this.label), index.h("ez-breadcrumb", { items: this.breadcrumbItens, onSelectedItem: ({ detail }) => this.clickBreadcrumbItem.emit(detail) }))), index.h("div", { class: "simple-bar__right-slot" }, index.h("slot", { name: "rightSlot" }))));
|
|
92
|
+
}
|
|
93
|
+
get _element() { return index.getElement(this); }
|
|
94
|
+
};
|
|
95
|
+
SnkSimpleBar.style = snkSimpleBarCss;
|
|
96
|
+
|
|
60
97
|
exports.snk_filter_advanced_mode = SnkFilterAdvancedMode;
|
|
61
98
|
exports.snk_filter_assistent_mode = SnkFilterAssistentMode;
|
|
99
|
+
exports.snk_simple_bar = SnkSimpleBar;
|