@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-86600.1 → 0.0.0-bugfix-dev-KB-86904.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ClientSideExporterProvider-a2753c93.js → ClientSideExporterProvider-0ce2bcd9.js} +2 -2
- package/dist/cjs/{ConfigStorage-df09fb78.js → ConfigStorage-48ba265b.js} +45 -17
- package/dist/cjs/FormConfigHelper-c664dbae.js +260 -0
- package/dist/cjs/{PersonalizedFilterUtils-0184ffbb.js → PersonalizedFilterUtils-7259cf65.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-45a8d7b7.js → SnkFormConfigManager-aa4631bd.js} +3 -4
- package/dist/cjs/{SnkMessageBuilder-aecd7c18.js → SnkMessageBuilder-e3b7850b.js} +32 -6
- package/dist/cjs/config-header.cjs.entry.js +79 -0
- package/dist/cjs/configs-button.cjs.entry.js +61 -0
- package/dist/cjs/{constants-77c1b8bd.js → constants-6d82e405.js} +8 -38
- package/dist/cjs/default-filters-a09bf82b.js +8 -0
- package/dist/cjs/field-config_2.cjs.entry.js +324 -0
- package/dist/cjs/fields-layout.cjs.entry.js +341 -0
- package/dist/cjs/fields-selector.cjs.entry.js +74 -0
- package/dist/cjs/{filter-type.enum-b14ce507.js → filter-type.enum-2bb46d2a.js} +1 -0
- package/dist/cjs/guides-configurator.cjs.entry.js +164 -0
- package/dist/cjs/{index-ab1cfb44.js → index-0ad2baeb.js} +1 -1
- package/dist/cjs/{index-f9e81701.js → index-1cf293c1.js} +34 -12
- package/dist/cjs/{index-c5771aba.js → index-62760a9c.js} +5 -0
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +3 -3
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/{snk-actions-button_7.cjs.entry.js → snk-actions-button_8.cjs.entry.js} +64 -3
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +8 -8
- package/dist/cjs/snk-attach.cjs.entry.js +47 -18
- package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +2 -2
- package/dist/cjs/snk-crud.cjs.entry.js +6 -30
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +4 -4
- package/dist/cjs/{snk-data-unit-ebfdb9ba.js → snk-data-unit-3684c96e.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-default-filter.cjs.entry.js +77 -0
- package/dist/cjs/snk-detail-view.cjs.entry.js +62 -10
- package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +10 -8
- package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +5 -4
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +83 -29
- 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 +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +20 -8
- package/dist/cjs/snk-form_2.cjs.entry.js +433 -0
- package/dist/cjs/snk-grid.cjs.entry.js +30 -30
- package/dist/cjs/{snk-guides-viewer-401c4854.js → snk-guides-viewer-edc0a00a.js} +39 -27
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -8
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +53 -18
- package/dist/cjs/snk-pesquisa.cjs.entry.js +9 -3
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +79 -91
- package/dist/cjs/snk-taskbar.cjs.entry.js +9 -5
- package/dist/cjs/sortable.esm-9a110bb7.js +2668 -0
- package/dist/cjs/{taskbar-elements-21f0370c.js → taskbar-elements-3b74cd21.js} +10 -2
- package/dist/cjs/{field-search-68e34bf4.js → taskbar-processor-2fba34a8.js} +0 -35
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +9 -14
- package/dist/collection/components/snk-application/snk-application.js +4 -4
- package/dist/collection/components/snk-attach/snk-attach.js +27 -1
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +17 -13
- package/dist/collection/components/snk-crud/snk-crud.js +21 -45
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +58 -4
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +54 -7
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +36 -40
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +80 -12
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.css +34 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.js +142 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +24 -15
- package/dist/collection/components/snk-filter-bar/types/default-filters.js +6 -0
- package/dist/collection/components/snk-filter-bar/types/filter-type.enum.js +1 -0
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +4 -4
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +245 -0
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +4 -5
- package/dist/collection/components/snk-form-config/config-header/config-header.css +18 -0
- package/dist/collection/components/snk-form-config/config-header/config-header.js +236 -0
- package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.css +41 -0
- package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.js +170 -0
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +21 -0
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +408 -0
- package/dist/collection/components/snk-form-config/field-item/field-item.css +108 -0
- package/dist/collection/components/snk-form-config/field-item/field-item.js +206 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +133 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +578 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +38 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +146 -0
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +132 -0
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +317 -0
- package/dist/collection/components/snk-form-config/snk-form-config.css +16 -229
- package/dist/collection/components/snk-form-config/snk-form-config.js +288 -980
- package/dist/collection/components/snk-grid/snk-grid.css +1 -0
- package/dist/collection/components/snk-grid/snk-grid.js +64 -45
- package/dist/collection/components/snk-personalized-filter/interfaces/index.js +5 -0
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +67 -13
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.css +3 -0
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +20 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +22 -3
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.js +20 -1
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +1 -1
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +9 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +75 -85
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +8 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.css +0 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js +220 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +28 -2
- package/dist/collection/lib/configs/ConfigStorage.js +16 -8
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +29 -9
- package/dist/collection/lib/message/resources/snk-crud.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +6 -0
- package/dist/collection/lib/message/resources/snk-form.msg.js +16 -2
- package/dist/collection/lib/message/resources/snk-grid.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-personalized-filter.msg.js +6 -1
- package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +2 -1
- package/dist/collection/lib/utils/constants.js +7 -1
- package/dist/components/ConfigStorage.js +45 -17
- package/dist/components/ContinuousInsertUtils.js +2 -33
- package/dist/components/PersonalizedFilterUtils.js +6 -1
- package/dist/components/SnkFormConfigManager.js +2 -3
- package/dist/components/SnkMessageBuilder.js +32 -6
- package/dist/components/{snk-tab-config.d.ts → config-header.d.ts} +4 -4
- package/dist/components/config-header.js +6 -0
- package/dist/components/config-header2.js +103 -0
- package/dist/components/configs-button.d.ts +11 -0
- package/dist/components/configs-button.js +6 -0
- package/dist/components/configs-button2.js +76 -0
- package/dist/components/constants.js +8 -34
- package/dist/components/field-config.d.ts +11 -0
- package/dist/components/field-config.js +6 -0
- package/dist/components/field-config2.js +525 -0
- package/dist/components/field-item.d.ts +11 -0
- package/dist/components/field-item.js +6 -0
- package/dist/components/field-item2.js +93 -0
- package/dist/components/fields-layout.d.ts +11 -0
- package/dist/components/fields-layout.js +6 -0
- package/dist/components/fields-layout2.js +370 -0
- package/dist/components/{snk-field-config.d.ts → fields-selector.d.ts} +4 -4
- package/dist/components/fields-selector.js +6 -0
- package/dist/components/fields-selector2.js +98 -0
- package/dist/components/guides-configurator.d.ts +11 -0
- package/dist/components/guides-configurator.js +6 -0
- package/dist/components/guides-configurator2.js +182 -0
- package/dist/components/index.d.ts +9 -3
- package/dist/components/index.js +9 -3
- package/dist/components/pesquisa-grid2.js +1 -1
- package/dist/components/snk-application2.js +5 -5
- package/dist/components/snk-attach2.js +77 -42
- package/dist/components/snk-crud.js +65 -59
- package/dist/components/{snk-config-options.d.ts → snk-default-filter.d.ts} +4 -4
- package/dist/components/snk-default-filter.js +6 -0
- package/dist/components/snk-default-filter2.js +97 -0
- package/dist/components/snk-detail-view2.js +168 -68
- package/dist/components/snk-expression-group2.js +4 -2
- package/dist/components/snk-expression-item2.js +5 -3
- package/dist/components/snk-filter-assistent-mode2.js +4 -2
- package/dist/components/snk-filter-bar2.js +29 -20
- package/dist/components/snk-filter-modal-item2.js +1 -0
- package/dist/components/snk-filter-modal.js +59 -8
- package/dist/components/snk-form-config2.js +253 -953
- package/dist/components/snk-form-view2.js +22 -8
- package/dist/components/snk-form.js +33 -9
- package/dist/components/snk-grid2.js +67 -60
- package/dist/components/snk-personalized-filter2.js +50 -14
- package/dist/components/snk-pesquisa2.js +9 -2
- package/dist/components/snk-simple-crud2.js +104 -109
- package/dist/components/snk-taskbar2.js +29 -10
- package/dist/components/sortable.esm.js +2666 -0
- package/dist/components/taskbar-split-button.d.ts +11 -0
- package/dist/components/taskbar-split-button.js +6 -0
- package/dist/components/taskbar-split-button2.js +87 -0
- package/dist/esm/{ClientSideExporterProvider-b3871edb.js → ClientSideExporterProvider-3ed744fd.js} +2 -2
- package/dist/esm/{ConfigStorage-71e6766f.js → ConfigStorage-79b9e180.js} +45 -17
- package/dist/esm/FormConfigHelper-49fe72ca.js +248 -0
- package/dist/esm/{PersonalizedFilterUtils-e2b38ef7.js → PersonalizedFilterUtils-2db38ff2.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-be490a33.js → SnkFormConfigManager-b4b93298.js} +3 -4
- package/dist/esm/{SnkMessageBuilder-12f5fe1a.js → SnkMessageBuilder-9c269caf.js} +32 -6
- package/dist/esm/config-header.entry.js +75 -0
- package/dist/esm/configs-button.entry.js +57 -0
- package/dist/esm/{constants-7db1128a.js → constants-7b422de0.js} +8 -34
- package/dist/esm/default-filters-50105e43.js +8 -0
- package/dist/esm/field-config_2.entry.js +319 -0
- package/dist/esm/fields-layout.entry.js +337 -0
- package/dist/esm/fields-selector.entry.js +70 -0
- package/dist/esm/{filter-type.enum-a80c1b6b.js → filter-type.enum-f6a8fe23.js} +1 -0
- package/dist/esm/guides-configurator.entry.js +160 -0
- package/dist/esm/{index-a7d3d3f1.js → index-479e1293.js} +34 -12
- package/dist/esm/{index-ae591a44.js → index-8acbae97.js} +6 -1
- package/dist/esm/{index-c57e49af.js → index-b72af127.js} +1 -1
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pesquisa-grid_2.entry.js +3 -3
- package/dist/esm/sankhyablocks.js +3 -3
- package/dist/esm/{snk-actions-button_7.entry.js → snk-actions-button_8.entry.js} +64 -4
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +8 -8
- package/dist/esm/snk-attach.entry.js +47 -18
- package/dist/esm/snk-client-confirm.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +2 -2
- package/dist/esm/snk-crud.entry.js +7 -31
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +4 -4
- package/dist/esm/{snk-data-unit-03654813.js → snk-data-unit-027bca56.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-default-filter.entry.js +73 -0
- package/dist/esm/snk-detail-view.entry.js +63 -11
- package/dist/esm/snk-entity-list.entry.js +1 -1
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-expression-group_2.entry.js +10 -8
- package/dist/esm/snk-filter-advanced-mode_2.entry.js +5 -4
- package/dist/esm/snk-filter-bar_4.entry.js +83 -29
- 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 +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +1 -1
- package/dist/esm/snk-filter-period.entry.js +1 -1
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +1 -1
- package/dist/esm/snk-form-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +20 -8
- package/dist/esm/snk-form_2.entry.js +428 -0
- package/dist/esm/snk-grid.entry.js +28 -28
- package/dist/esm/{snk-guides-viewer-e17ff4ec.js → snk-guides-viewer-32f3d3ab.js} +39 -27
- package/dist/esm/snk-guides-viewer.entry.js +9 -8
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +53 -18
- package/dist/esm/snk-pesquisa.entry.js +9 -3
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-bar.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +80 -92
- package/dist/esm/snk-taskbar.entry.js +9 -5
- package/dist/esm/sortable.esm-842f85a3.js +2666 -0
- package/dist/esm/{taskbar-elements-08cf25e8.js → taskbar-elements-171476d4.js} +10 -2
- package/dist/esm/{field-search-f8b1d91e.js → taskbar-processor-3436124c.js} +1 -34
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/p-0024d3fd.entry.js +1 -0
- package/dist/sankhyablocks/{p-2c08fa3e.entry.js → p-09e60995.entry.js} +3 -3
- package/dist/sankhyablocks/p-0cb295c1.entry.js +1 -0
- package/dist/sankhyablocks/p-11f099ea.entry.js +1 -0
- package/dist/sankhyablocks/p-1456d7cb.entry.js +1 -0
- package/dist/sankhyablocks/{p-9531fd46.entry.js → p-180716b2.entry.js} +1 -1
- package/dist/sankhyablocks/p-19156e59.entry.js +1 -0
- package/dist/sankhyablocks/p-1a0caadb.js +1 -0
- package/dist/sankhyablocks/p-21107f0d.entry.js +1 -0
- package/dist/sankhyablocks/{p-118e769b.entry.js → p-27482793.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f4d5bb7f.js → p-2bde486e.js} +1 -1
- package/dist/sankhyablocks/{p-26b0ce3e.entry.js → p-2fdac5e6.entry.js} +1 -1
- package/dist/sankhyablocks/p-349d1968.entry.js +1 -0
- package/dist/sankhyablocks/p-35e73c5d.js +1 -0
- package/dist/sankhyablocks/{p-89c92727.entry.js → p-398cdd67.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6a0c8ce0.entry.js → p-3a48bff3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-434817f0.entry.js → p-3d41f5a8.entry.js} +1 -1
- package/dist/sankhyablocks/p-3f24c9b2.js +1 -0
- package/dist/sankhyablocks/{p-8002dcd0.entry.js → p-471b34f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7e2ded86.entry.js → p-49d968e2.entry.js} +1 -1
- package/dist/sankhyablocks/p-4d2ff2fb.entry.js +1 -0
- package/dist/sankhyablocks/p-51833248.js +7 -0
- package/dist/sankhyablocks/p-60dd1d27.entry.js +1 -0
- package/dist/sankhyablocks/p-6416975c.js +56 -0
- package/dist/sankhyablocks/{p-ad07f0c5.entry.js → p-65c5d430.entry.js} +1 -1
- package/dist/sankhyablocks/{p-21a81901.entry.js → p-667cab42.entry.js} +1 -1
- package/dist/sankhyablocks/p-67d6d0c8.entry.js +1 -0
- package/dist/sankhyablocks/p-6a4b21dd.js +1 -0
- package/dist/sankhyablocks/p-71a05822.entry.js +1 -0
- package/dist/sankhyablocks/p-72c8c847.entry.js +1 -0
- package/dist/sankhyablocks/{p-ac8d1cd6.entry.js → p-7345782c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-885802c3.js → p-763b04fa.js} +1 -1
- package/dist/sankhyablocks/p-7de79adf.js +1 -0
- package/dist/sankhyablocks/p-7e250432.entry.js +1 -0
- package/dist/sankhyablocks/{p-47178038.entry.js → p-83c100f2.entry.js} +1 -1
- package/dist/sankhyablocks/p-84345e7a.js +1 -0
- package/dist/sankhyablocks/p-86bd4478.entry.js +1 -0
- package/dist/sankhyablocks/p-9019a32f.js +1 -0
- package/dist/sankhyablocks/{p-54a5d52a.entry.js → p-90805683.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c2e468c9.entry.js → p-91a9abb6.entry.js} +1 -1
- package/dist/sankhyablocks/p-9751c42f.entry.js +1 -0
- package/dist/sankhyablocks/{p-057fad05.js → p-988afe78.js} +1 -1
- package/dist/sankhyablocks/{p-16a1dd18.entry.js → p-9a63f3f7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-90684a75.entry.js → p-9ad3557c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b6200d32.entry.js → p-9fd87bfd.entry.js} +1 -1
- package/dist/sankhyablocks/p-a06bf7b9.entry.js +1 -0
- package/dist/sankhyablocks/{p-33718dfc.entry.js → p-a227b650.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5e9fbd76.js → p-a349689a.js} +1 -1
- package/dist/sankhyablocks/p-a5bb2f93.entry.js +1 -0
- package/dist/sankhyablocks/{p-ebdb9d89.js → p-a6513fcb.js} +1 -1
- package/dist/sankhyablocks/{p-8c235d4c.entry.js → p-a76e6d51.entry.js} +1 -1
- package/dist/sankhyablocks/p-b568c1d4.js +1 -0
- package/dist/sankhyablocks/p-bd665460.entry.js +1 -0
- package/dist/sankhyablocks/p-c3324d79.entry.js +1 -0
- package/dist/sankhyablocks/{p-bf2acf72.entry.js → p-c6a8a8bc.entry.js} +1 -1
- package/dist/sankhyablocks/{p-165cde3b.entry.js → p-c926cf6b.entry.js} +1 -1
- package/dist/sankhyablocks/p-cfd0a4c6.entry.js +1 -0
- package/dist/sankhyablocks/{p-79f823f3.entry.js → p-d67526b6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d2d301a6.js → p-d8d8169b.js} +1 -1
- package/dist/sankhyablocks/{p-5f157b09.entry.js → p-dff65083.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4a93daef.entry.js → p-e3521eae.entry.js} +1 -1
- package/dist/sankhyablocks/p-e7cccc45.entry.js +1 -0
- package/dist/sankhyablocks/p-fc0b609e.js +1 -0
- package/dist/sankhyablocks/p-ff7060bc.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +4 -7
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +12 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +11 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +6 -6
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +16 -4
- package/dist/types/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.d.ts +27 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -3
- package/dist/types/components/snk-filter-bar/types/default-filters.d.ts +5 -0
- package/dist/types/components/snk-filter-bar/types/filter-type.enum.d.ts +2 -1
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +3 -3
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +31 -0
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +3 -3
- package/dist/types/components/snk-form-config/config-header/config-header.d.ts +23 -0
- package/dist/types/components/snk-form-config/config-header/configs-button/configs-button.d.ts +19 -0
- package/dist/types/components/snk-form-config/field-item/field-config/field-config.d.ts +56 -0
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +63 -0
- package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +18 -0
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +42 -0
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +51 -120
- package/dist/types/components/snk-grid/snk-grid.d.ts +13 -7
- package/dist/types/components/snk-personalized-filter/interfaces/index.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/snk-personalized-filter.d.ts +7 -1
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +4 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode.d.ts +4 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +1 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +10 -10
- package/dist/types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.d.ts +44 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +5 -0
- package/dist/types/components.d.ts +391 -211
- package/dist/types/lib/configs/ConfigStorage.d.ts +4 -2
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +8 -4
- package/dist/types/lib/utils/constants.d.ts +6 -0
- package/package.json +8 -6
- package/react/components.d.ts +9 -3
- package/react/components.js +9 -3
- package/react/components.js.map +1 -1
- package/dist/cjs/Sortable-fb1c4cbb.js +0 -2853
- package/dist/cjs/snk-config-options_3.cjs.entry.js +0 -1390
- package/dist/cjs/snk-field-config.cjs.entry.js +0 -60
- package/dist/cjs/snk-tab-config.cjs.entry.js +0 -332
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.css +0 -16
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js +0 -346
- package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.css +0 -219
- package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.js +0 -184
- package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.css +0 -323
- package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js +0 -527
- package/dist/collection/components/snk-taskbar/subcomponents/field-search.js +0 -31
- package/dist/components/snk-config-options.js +0 -6
- package/dist/components/snk-config-options2.js +0 -257
- package/dist/components/snk-field-config.js +0 -6
- package/dist/components/snk-field-config2.js +0 -76
- package/dist/components/snk-tab-config.js +0 -6
- package/dist/components/snk-tab-config2.js +0 -3202
- package/dist/esm/Sortable-83960219.js +0 -2851
- package/dist/esm/snk-config-options_3.entry.js +0 -1384
- package/dist/esm/snk-field-config.entry.js +0 -56
- package/dist/esm/snk-tab-config.entry.js +0 -328
- package/dist/sankhyablocks/p-03b68a74.js +0 -56
- package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
- package/dist/sankhyablocks/p-1ee379ce.entry.js +0 -1
- package/dist/sankhyablocks/p-23736d75.js +0 -1
- package/dist/sankhyablocks/p-3749dffb.entry.js +0 -1
- package/dist/sankhyablocks/p-3ab6df3d.entry.js +0 -1
- package/dist/sankhyablocks/p-3c9794dc.entry.js +0 -1
- package/dist/sankhyablocks/p-42dd1346.js +0 -1
- package/dist/sankhyablocks/p-5ffa0493.entry.js +0 -1
- package/dist/sankhyablocks/p-60137b7a.entry.js +0 -1
- package/dist/sankhyablocks/p-7b920eb8.entry.js +0 -1
- package/dist/sankhyablocks/p-80f8c22c.js +0 -1
- package/dist/sankhyablocks/p-847449f8.entry.js +0 -1
- package/dist/sankhyablocks/p-9261d8a0.js +0 -1
- package/dist/sankhyablocks/p-933c0c0b.js +0 -1
- package/dist/sankhyablocks/p-979ecc40.entry.js +0 -1
- package/dist/sankhyablocks/p-a3f5ebb6.entry.js +0 -1
- package/dist/sankhyablocks/p-aadd3911.entry.js +0 -1
- package/dist/sankhyablocks/p-bfdf92e9.entry.js +0 -1
- package/dist/sankhyablocks/p-c0eb761b.entry.js +0 -1
- package/dist/sankhyablocks/p-c8b3cb54.js +0 -1
- package/dist/sankhyablocks/p-d31a701e.entry.js +0 -1
- package/dist/sankhyablocks/p-d9804798.js +0 -1
- package/dist/sankhyablocks/p-dc6ad9a6.entry.js +0 -1
- package/dist/sankhyablocks/p-dce8e631.entry.js +0 -1
- package/dist/sankhyablocks/p-fa816fb2.js +0 -1
- package/dist/types/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.d.ts +0 -57
- package/dist/types/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.d.ts +0 -43
- package/dist/types/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -105
- package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +0 -4
|
@@ -32,6 +32,7 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
32
32
|
this._startLoading = false;
|
|
33
33
|
this._presentationMode = "list";
|
|
34
34
|
this._currentView = undefined;
|
|
35
|
+
this._valideDataSource = false;
|
|
35
36
|
this.searchLoader = undefined;
|
|
36
37
|
this.treeLoader = undefined;
|
|
37
38
|
this.selectItem = undefined;
|
|
@@ -302,10 +303,13 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
302
303
|
if (this.argument && (!isNaN(argumentNumber) || this.argument.length >= this._limitCharsToSearch)) {
|
|
303
304
|
this._changeDeboucingTimeout = setTimeout(() => {
|
|
304
305
|
this.doSearch(isNaN(argumentNumber) ? this.argument : argumentNumber.toString());
|
|
306
|
+
this._valideDataSource = true;
|
|
305
307
|
}, this._deboucingTime);
|
|
306
308
|
}
|
|
307
309
|
else {
|
|
308
310
|
this._itemList = undefined;
|
|
311
|
+
this._gridDataSource = [];
|
|
312
|
+
this._valideDataSource = false;
|
|
309
313
|
}
|
|
310
314
|
}
|
|
311
315
|
clearDeboucingTimeout() {
|
|
@@ -316,6 +320,7 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
316
320
|
}
|
|
317
321
|
onClickSearch() {
|
|
318
322
|
this.doSearch((this.argument || "").trim());
|
|
323
|
+
this._valideDataSource = true;
|
|
319
324
|
}
|
|
320
325
|
getMessageView() {
|
|
321
326
|
return this._startLoading
|
|
@@ -383,7 +388,8 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
383
388
|
var _a, _b;
|
|
384
389
|
return (h(Host, null, h("div", { class: "snk-pesquisa" }, h("div", { class: "snk-pesquisa__input" }, h("ez-text-input", { label: "Buscar", class: "ez-margin-right--medium", canShowError: false, ref: (ref) => this._textInput = ref, onEzChange: (event) => this.onChangeValue(event), value: this.argument, "data-element-id": "searchInput" }, h("ez-icon", { slot: "leftIcon", iconName: "search" }), this.argument && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value)
|
|
385
390
|
? h("button", { slot: "rightIcon", class: "snk-pesquisa__btn", onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
386
|
-
: undefined), h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), h("div", { class: `snk-pesquisa__records-label ${this._currentView === PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), h("div", { class: "snk-pesquisa__content" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null,
|
|
391
|
+
: undefined), h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), h("div", { class: `snk-pesquisa__records-label ${this._currentView === PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), h("div", { class: "snk-pesquisa__content" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, this._valideDataSource &&
|
|
392
|
+
h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), h("stack-item", null, h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
|
|
387
393
|
return (h("ez-card-item", { onEzClick: (event) => this.createOption(event.detail), item: item }));
|
|
388
394
|
}))), h("stack-item", null, h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail) })))))));
|
|
389
395
|
}
|
|
@@ -403,7 +409,8 @@ const SnkPesquisa = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
403
409
|
"_itemList": [32],
|
|
404
410
|
"_startLoading": [32],
|
|
405
411
|
"_presentationMode": [32],
|
|
406
|
-
"_currentView": [32]
|
|
412
|
+
"_currentView": [32],
|
|
413
|
+
"_valideDataSource": [32]
|
|
407
414
|
}]);
|
|
408
415
|
function defineCustomElement() {
|
|
409
416
|
if (typeof customElements === "undefined") {
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
-
import { StringUtils, ApplicationContext, ObjectUtils, Action, DataType, UserInterface,
|
|
3
|
-
import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
2
|
+
import { StringUtils, ApplicationContext, ObjectUtils, Action, DataType, UserInterface, KeyboardManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
+
import { CSSVarsUtils, buildFieldSearch, LABEL_SEARCH_COLUMN, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants.js';
|
|
5
|
-
import { T as TaskbarElement, d as defineCustomElement$
|
|
5
|
+
import { T as TaskbarElement, d as defineCustomElement$4 } from './snk-taskbar2.js';
|
|
6
6
|
import './DataFetcher.js';
|
|
7
7
|
import { P as PresentationMode } from './ISave.js';
|
|
8
|
-
import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor, R as RmPrecisionCustomValueFormatter,
|
|
8
|
+
import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, a as CrudUtils, c as ClientSideExporterProvider } from './ContinuousInsertUtils.js';
|
|
9
9
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
10
10
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
11
11
|
import { I as InMemoryLoader } from './dataunit-fetcher.js';
|
|
@@ -14,17 +14,18 @@ import { F as FormConfigFetcher } from './form-config-fetcher.js';
|
|
|
14
14
|
import { C as ConfigStorage } from './ConfigStorage.js';
|
|
15
15
|
import { S as SnkFormConfigManager } from './SnkFormConfigManager.js';
|
|
16
16
|
import { s as store } from './index2.js';
|
|
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$
|
|
17
|
+
import { d as defineCustomElement$d } from './snk-actions-button2.js';
|
|
18
|
+
import { d as defineCustomElement$c } from './snk-configurator2.js';
|
|
19
|
+
import { d as defineCustomElement$b } from './snk-data-exporter2.js';
|
|
20
|
+
import { d as defineCustomElement$a } from './snk-data-unit2.js';
|
|
21
|
+
import { d as defineCustomElement$9 } from './snk-exporter-email-sender2.js';
|
|
22
|
+
import { d as defineCustomElement$8 } from './snk-grid-config2.js';
|
|
23
|
+
import { d as defineCustomElement$7 } from './snk-layout-form-config2.js';
|
|
24
|
+
import { d as defineCustomElement$6 } from './snk-select-box2.js';
|
|
25
|
+
import { d as defineCustomElement$5 } from './snk-simple-form-config2.js';
|
|
26
|
+
import { d as defineCustomElement$3 } from './snk-view-representation2.js';
|
|
27
|
+
import { d as defineCustomElement$2 } from './taskbar-actions-button2.js';
|
|
28
|
+
import { d as defineCustomElement$1 } from './taskbar-split-button2.js';
|
|
28
29
|
|
|
29
30
|
const REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "MORE_OPTIONS"];
|
|
30
31
|
const REGULAR_SELECTED_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "DIVIDER", "MORE_OPTIONS"];
|
|
@@ -42,10 +43,10 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
42
43
|
this.configuratorSave = createEvent(this, "configuratorSave", 7);
|
|
43
44
|
this.configuratorCancel = createEvent(this, "configuratorCancel", 7);
|
|
44
45
|
this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
|
|
45
|
-
this._keyDownHandler = (event) => this.keyDownListener(event);
|
|
46
46
|
this._formConfigFetcher = new FormConfigFetcher();
|
|
47
47
|
this._customEditors = new Map();
|
|
48
48
|
this._customRenders = new Map();
|
|
49
|
+
this._container = undefined;
|
|
49
50
|
this._showPopUpGridConfig = false;
|
|
50
51
|
this._currentViewMode = VIEW_MODE.GRID;
|
|
51
52
|
this._config = undefined;
|
|
@@ -73,7 +74,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
73
74
|
this.useEnterLikeTab = false;
|
|
74
75
|
this.actionsList = undefined;
|
|
75
76
|
this.configName = undefined;
|
|
76
|
-
this.showConfiguratorButtons =
|
|
77
|
+
this.showConfiguratorButtons = false;
|
|
77
78
|
this.gridLegacyConfigName = undefined;
|
|
78
79
|
this.formLegacyConfigName = undefined;
|
|
79
80
|
this.ignoreReadOnlyFormFields = false;
|
|
@@ -198,6 +199,12 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
198
199
|
this.dataUnit.isMultipleEdition = false;
|
|
199
200
|
this._viewStack.show(view);
|
|
200
201
|
}
|
|
202
|
+
if (view === VIEW_MODE.GRID) {
|
|
203
|
+
requestAnimationFrame(() => this.focusToGrid());
|
|
204
|
+
}
|
|
205
|
+
if (view === VIEW_MODE.FORM) {
|
|
206
|
+
requestAnimationFrame(() => this.focusToForm());
|
|
207
|
+
}
|
|
201
208
|
}
|
|
202
209
|
actionClickListener(evt) {
|
|
203
210
|
this.handleTaskbarAction(evt.detail);
|
|
@@ -395,6 +402,10 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
395
402
|
}
|
|
396
403
|
}
|
|
397
404
|
}
|
|
405
|
+
disconnectedCallback() {
|
|
406
|
+
var _a;
|
|
407
|
+
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
408
|
+
}
|
|
398
409
|
setCustomRenders() {
|
|
399
410
|
if (!this._grid) {
|
|
400
411
|
return;
|
|
@@ -572,40 +583,18 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
572
583
|
}
|
|
573
584
|
this.configuratorCancel.emit();
|
|
574
585
|
}
|
|
575
|
-
|
|
576
|
-
if (this._columnSearch != undefined) {
|
|
577
|
-
return this._columnSearch;
|
|
578
|
-
}
|
|
579
|
-
this._moreOptions = actionButton;
|
|
580
|
-
this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
|
581
|
-
this._grid.filterColumns(argument).then((columns) => {
|
|
582
|
-
accept(columns
|
|
583
|
-
.filter(column => !column.hidden)
|
|
584
|
-
.map(column => ({ label: column.label, value: column.name })));
|
|
585
|
-
});
|
|
586
|
-
}), (option) => {
|
|
587
|
-
var _a;
|
|
588
|
-
if (option != undefined) {
|
|
589
|
-
this._grid.locateColumn(option.value);
|
|
590
|
-
(_a = actionButton["hideActions"]) === null || _a === void 0 ? void 0 : _a.call(actionButton);
|
|
591
|
-
}
|
|
592
|
-
});
|
|
593
|
-
return this._columnSearch;
|
|
594
|
-
}
|
|
595
|
-
onSelectField(option, actionButton) {
|
|
586
|
+
onSelectField(option) {
|
|
596
587
|
if (option == undefined) {
|
|
597
588
|
return;
|
|
598
589
|
}
|
|
599
590
|
this._fieldToGetFocus = option.value;
|
|
600
|
-
actionButton.hideActions();
|
|
601
591
|
}
|
|
602
|
-
getFieldSearch(
|
|
592
|
+
getFieldSearch(splitButton, item) {
|
|
603
593
|
if (this._fieldSearch != undefined) {
|
|
604
594
|
return this._fieldSearch;
|
|
605
595
|
}
|
|
606
|
-
this.
|
|
607
|
-
|
|
608
|
-
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option, actionButton));
|
|
596
|
+
this._splitButtonForm = splitButton;
|
|
597
|
+
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
609
598
|
return this._fieldSearch;
|
|
610
599
|
}
|
|
611
600
|
getFormFields() {
|
|
@@ -631,17 +620,26 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
631
620
|
isGridInsertActive() {
|
|
632
621
|
return this.enableGridInsert && this.dataUnit.hasNewRecord();
|
|
633
622
|
}
|
|
623
|
+
getColumnSearch(splitButton, item) {
|
|
624
|
+
if (this._columnSearch != undefined) {
|
|
625
|
+
return this._columnSearch;
|
|
626
|
+
}
|
|
627
|
+
this._splitButton = splitButton;
|
|
628
|
+
this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
|
629
|
+
this._grid.filterColumns(argument).then((columns) => {
|
|
630
|
+
accept(columns
|
|
631
|
+
.filter(column => !column.hidden)
|
|
632
|
+
.map(column => ({ label: column.label, value: column.name })));
|
|
633
|
+
});
|
|
634
|
+
}), (option) => {
|
|
635
|
+
if (option != undefined) {
|
|
636
|
+
this._grid.locateColumn(option.value);
|
|
637
|
+
}
|
|
638
|
+
});
|
|
639
|
+
return this._columnSearch;
|
|
640
|
+
}
|
|
634
641
|
getActionsList() {
|
|
635
|
-
|
|
636
|
-
const hardList = [{
|
|
637
|
-
value: StringUtils.generateUUID(),
|
|
638
|
-
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn", undefined)) !== null && _b !== void 0 ? _b : "Buscar",
|
|
639
|
-
disableCloseOnSelect: true,
|
|
640
|
-
eagerInitialize: true,
|
|
641
|
-
itemBuilder: (actionButton, item) => (this._currentViewMode === VIEW_MODE.GRID)
|
|
642
|
-
? this.getColumnSearch(actionButton, item)
|
|
643
|
-
: this.getFieldSearch(actionButton, item)
|
|
644
|
-
}];
|
|
642
|
+
const hardList = [];
|
|
645
643
|
if (this.enableGridInsert) {
|
|
646
644
|
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this.enableContinuousInsert, () => {
|
|
647
645
|
this.enableContinuousInsert = !this.enableContinuousInsert;
|
|
@@ -654,8 +652,28 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
654
652
|
const taskbarID = this.getTopTaskBarId();
|
|
655
653
|
return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this.dataState, this.actionsList));
|
|
656
654
|
}
|
|
657
|
-
|
|
658
|
-
|
|
655
|
+
return hardList.concat(this.actionsList);
|
|
656
|
+
}
|
|
657
|
+
getSettingsListGrid() {
|
|
658
|
+
var _a, _b;
|
|
659
|
+
const hardList = [{
|
|
660
|
+
value: StringUtils.generateUUID(),
|
|
661
|
+
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn", {})) !== null && _b !== void 0 ? _b : LABEL_SEARCH_COLUMN,
|
|
662
|
+
disableCloseOnSelect: true,
|
|
663
|
+
eagerInitialize: true,
|
|
664
|
+
itemBuilder: (splitButton, item) => this.getColumnSearch(splitButton, item)
|
|
665
|
+
}];
|
|
666
|
+
return hardList;
|
|
667
|
+
}
|
|
668
|
+
getSettingsListForm() {
|
|
669
|
+
var _a, _b;
|
|
670
|
+
const hardList = [{
|
|
671
|
+
value: StringUtils.generateUUID(),
|
|
672
|
+
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findFields", {})) !== null && _b !== void 0 ? _b : LABEL_SEARCH_FIELD,
|
|
673
|
+
disableCloseOnSelect: true,
|
|
674
|
+
eagerInitialize: true,
|
|
675
|
+
itemBuilder: (splitButton, item) => this.getFieldSearch(splitButton, item)
|
|
676
|
+
}];
|
|
659
677
|
return hardList;
|
|
660
678
|
}
|
|
661
679
|
getTopTaskBarId() {
|
|
@@ -663,45 +681,9 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
663
681
|
return ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? `snkGridTopTaskbar.finish_edition${PresentationMode.PRIMARY}` :
|
|
664
682
|
`snkGridTopTaskbar.regular${PresentationMode.PRIMARY}`;
|
|
665
683
|
}
|
|
666
|
-
async keyDownListener(event) {
|
|
667
|
-
if (!event.ctrlKey || event.key == undefined || event.key.toUpperCase() !== "F") {
|
|
668
|
-
return;
|
|
669
|
-
}
|
|
670
|
-
if (this._element == undefined) {
|
|
671
|
-
return;
|
|
672
|
-
}
|
|
673
|
-
if (JSUtils.isHiddenElement(this._element)) {
|
|
674
|
-
return;
|
|
675
|
-
}
|
|
676
|
-
FloatingManager.closeAll();
|
|
677
|
-
if (this._currentViewMode === VIEW_MODE.GRID) {
|
|
678
|
-
await this.findColumn();
|
|
679
|
-
}
|
|
680
|
-
else {
|
|
681
|
-
await this.findField();
|
|
682
|
-
}
|
|
683
|
-
event.preventDefault();
|
|
684
|
-
}
|
|
685
|
-
async findField() {
|
|
686
|
-
await this.openSeach(this._fieldSearch);
|
|
687
|
-
}
|
|
688
|
-
async findColumn() {
|
|
689
|
-
await this.openSeach(this._columnSearch);
|
|
690
|
-
}
|
|
691
|
-
async openSeach(fieldSearch) {
|
|
692
|
-
await openFieldSearch(this._moreOptions, fieldSearch);
|
|
693
|
-
}
|
|
694
684
|
clearFieldToFocusHandler() {
|
|
695
685
|
this._fieldToGetFocus = undefined;
|
|
696
686
|
}
|
|
697
|
-
connectedCallback() {
|
|
698
|
-
window.addEventListener("keydown", this._keyDownHandler, { capture: true });
|
|
699
|
-
}
|
|
700
|
-
disconnectedCallback() {
|
|
701
|
-
var _a;
|
|
702
|
-
window.removeEventListener("keydown", this._keyDownHandler);
|
|
703
|
-
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
704
|
-
}
|
|
705
687
|
gridConfigChangeHandler(evt) {
|
|
706
688
|
evt.stopPropagation();
|
|
707
689
|
if (!this.configName)
|
|
@@ -797,16 +779,23 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
797
779
|
}
|
|
798
780
|
}, {
|
|
799
781
|
debounceTime: 1000,
|
|
800
|
-
description: "Cancela uma ação.",
|
|
801
|
-
element: this._element
|
|
782
|
+
description: "Cancela uma ação.", element: this._element
|
|
802
783
|
});
|
|
803
784
|
}
|
|
804
785
|
async handleFormConfigSaved() {
|
|
805
786
|
await this.loadFormConfig(true, true);
|
|
806
787
|
}
|
|
807
|
-
|
|
788
|
+
focusToGrid() {
|
|
789
|
+
const gridElement = this._grid;
|
|
790
|
+
gridElement.focus();
|
|
791
|
+
}
|
|
792
|
+
focusToForm() {
|
|
793
|
+
const formElement = this._form;
|
|
794
|
+
formElement.focus();
|
|
795
|
+
}
|
|
796
|
+
renderTaskbarContent(layout) {
|
|
808
797
|
var _a;
|
|
809
|
-
return (h("snk-taskbar", { class: this._currentViewMode === VIEW_MODE.FORM
|
|
798
|
+
return (h("snk-taskbar", { class: `ez-box--no-outline ez-box ${this._currentViewMode === VIEW_MODE.FORM ? (this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow-xsmall') + ' ez-padding--small' : ''}`, dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), actionsSettingsList: layout === VIEW_MODE.GRID ? this.getSettingsListGrid() : this.getSettingsListForm(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, "data-exporter-store-key": this.getDataExporterStoreKey(), slot: "leftButtons", presentationMode: PresentationMode.SECONDARY, tabindex: "0" }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })));
|
|
810
799
|
}
|
|
811
800
|
/* istanbul ignore next */
|
|
812
801
|
render() {
|
|
@@ -814,9 +803,9 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
814
803
|
if (this.dataUnit == undefined) {
|
|
815
804
|
return;
|
|
816
805
|
}
|
|
817
|
-
return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section
|
|
806
|
+
return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: `ez-box ez-box--no-outline ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section`, ref: (ref) => this._container = ref, tabindex: "0" }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large ez-box--no-outline", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
|
818
807
|
? undefined
|
|
819
|
-
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(), h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, this.renderTaskbarContent(), h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
|
808
|
+
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(VIEW_MODE.GRID), h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, this.renderTaskbarContent(VIEW_MODE.FORM), h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
|
820
809
|
}
|
|
821
810
|
get _element() { return this; }
|
|
822
811
|
static get watchers() { return {
|
|
@@ -859,6 +848,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
859
848
|
"layoutFormConfig": [4, "layout-form-config"],
|
|
860
849
|
"autoLoad": [4, "auto-load"],
|
|
861
850
|
"outlineMode": [4, "outline-mode"],
|
|
851
|
+
"_container": [32],
|
|
862
852
|
"_showPopUpGridConfig": [32],
|
|
863
853
|
"_currentViewMode": [32],
|
|
864
854
|
"_config": [32],
|
|
@@ -892,7 +882,7 @@ function defineCustomElement() {
|
|
|
892
882
|
if (typeof customElements === "undefined") {
|
|
893
883
|
return;
|
|
894
884
|
}
|
|
895
|
-
const components = ["snk-simple-crud", "snk-actions-button", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-grid-config", "snk-layout-form-config", "snk-select-box", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button"];
|
|
885
|
+
const components = ["snk-simple-crud", "snk-actions-button", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-grid-config", "snk-layout-form-config", "snk-select-box", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
896
886
|
components.forEach(tagName => { switch (tagName) {
|
|
897
887
|
case "snk-simple-crud":
|
|
898
888
|
if (!customElements.get(tagName)) {
|
|
@@ -901,60 +891,65 @@ function defineCustomElement() {
|
|
|
901
891
|
break;
|
|
902
892
|
case "snk-actions-button":
|
|
903
893
|
if (!customElements.get(tagName)) {
|
|
904
|
-
defineCustomElement$
|
|
894
|
+
defineCustomElement$d();
|
|
905
895
|
}
|
|
906
896
|
break;
|
|
907
897
|
case "snk-configurator":
|
|
908
898
|
if (!customElements.get(tagName)) {
|
|
909
|
-
defineCustomElement$
|
|
899
|
+
defineCustomElement$c();
|
|
910
900
|
}
|
|
911
901
|
break;
|
|
912
902
|
case "snk-data-exporter":
|
|
913
903
|
if (!customElements.get(tagName)) {
|
|
914
|
-
defineCustomElement$
|
|
904
|
+
defineCustomElement$b();
|
|
915
905
|
}
|
|
916
906
|
break;
|
|
917
907
|
case "snk-data-unit":
|
|
918
908
|
if (!customElements.get(tagName)) {
|
|
919
|
-
defineCustomElement$
|
|
909
|
+
defineCustomElement$a();
|
|
920
910
|
}
|
|
921
911
|
break;
|
|
922
912
|
case "snk-exporter-email-sender":
|
|
923
913
|
if (!customElements.get(tagName)) {
|
|
924
|
-
defineCustomElement$
|
|
914
|
+
defineCustomElement$9();
|
|
925
915
|
}
|
|
926
916
|
break;
|
|
927
917
|
case "snk-grid-config":
|
|
928
918
|
if (!customElements.get(tagName)) {
|
|
929
|
-
defineCustomElement$
|
|
919
|
+
defineCustomElement$8();
|
|
930
920
|
}
|
|
931
921
|
break;
|
|
932
922
|
case "snk-layout-form-config":
|
|
933
923
|
if (!customElements.get(tagName)) {
|
|
934
|
-
defineCustomElement$
|
|
924
|
+
defineCustomElement$7();
|
|
935
925
|
}
|
|
936
926
|
break;
|
|
937
927
|
case "snk-select-box":
|
|
938
928
|
if (!customElements.get(tagName)) {
|
|
939
|
-
defineCustomElement$
|
|
929
|
+
defineCustomElement$6();
|
|
940
930
|
}
|
|
941
931
|
break;
|
|
942
932
|
case "snk-simple-form-config":
|
|
943
933
|
if (!customElements.get(tagName)) {
|
|
944
|
-
defineCustomElement$
|
|
934
|
+
defineCustomElement$5();
|
|
945
935
|
}
|
|
946
936
|
break;
|
|
947
937
|
case "snk-taskbar":
|
|
948
938
|
if (!customElements.get(tagName)) {
|
|
949
|
-
defineCustomElement$
|
|
939
|
+
defineCustomElement$4();
|
|
950
940
|
}
|
|
951
941
|
break;
|
|
952
942
|
case "snk-view-representation":
|
|
953
943
|
if (!customElements.get(tagName)) {
|
|
954
|
-
defineCustomElement$
|
|
944
|
+
defineCustomElement$3();
|
|
955
945
|
}
|
|
956
946
|
break;
|
|
957
947
|
case "taskbar-actions-button":
|
|
948
|
+
if (!customElements.get(tagName)) {
|
|
949
|
+
defineCustomElement$2();
|
|
950
|
+
}
|
|
951
|
+
break;
|
|
952
|
+
case "taskbar-split-button":
|
|
958
953
|
if (!customElements.get(tagName)) {
|
|
959
954
|
defineCustomElement$1();
|
|
960
955
|
}
|
|
@@ -3,10 +3,11 @@ import { Action, LockManager, LockManagerOperation, SilentException, StringUtils
|
|
|
3
3
|
import { A as AuthorizationConfig } from './AuthorizationConfig.js';
|
|
4
4
|
import { P as PresentationMode } from './ISave.js';
|
|
5
5
|
import { s as store } from './index2.js';
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
6
|
+
import { d as defineCustomElement$5 } from './snk-actions-button2.js';
|
|
7
|
+
import { d as defineCustomElement$4 } from './snk-data-exporter2.js';
|
|
8
|
+
import { d as defineCustomElement$3 } from './snk-exporter-email-sender2.js';
|
|
9
|
+
import { d as defineCustomElement$2 } from './taskbar-actions-button2.js';
|
|
10
|
+
import { d as defineCustomElement$1 } from './taskbar-split-button2.js';
|
|
10
11
|
|
|
11
12
|
var TaskbarElement;
|
|
12
13
|
(function (TaskbarElement) {
|
|
@@ -94,6 +95,9 @@ const buildElem = (element, className, dataElementId, getTitle, action, isEnable
|
|
|
94
95
|
case TaskbarElement.FORM_MODE:
|
|
95
96
|
return iconButton("list", element, className, dataElementId, title, action, isEnabled);
|
|
96
97
|
case TaskbarElement.CONFIGURATOR:
|
|
98
|
+
if ((actions === null || actions === void 0 ? void 0 : actions.length) > 0) {
|
|
99
|
+
return splitButton("settings-inverted", element, className, title, dataElementId, isEnabled, actions, action);
|
|
100
|
+
}
|
|
97
101
|
return iconButton("settings-inverted", element, className, dataElementId, title, action, isEnabled);
|
|
98
102
|
case TaskbarElement.MORE_OPTIONS:
|
|
99
103
|
return actionButton(element, className, dataElementId, title, isEnabled, actions, action);
|
|
@@ -118,6 +122,11 @@ function iconTextButton(iconName, name, className, dataElementId, text, title, a
|
|
|
118
122
|
return h("ez-button", { key: dataElementId, title: title, label: text, size: "small", class: className, "data-taskbar-label": text, "data-taskbar-icon": iconName, "data-taskbar-element": name, "data-element-id": dataElementId, enabled: isEnabled(name), onClick: () => action(name) },
|
|
119
123
|
h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: iconName }));
|
|
120
124
|
}
|
|
125
|
+
function splitButton(iconName, element, className, title, dataElementId, isEnabled, actions, action) {
|
|
126
|
+
return actions && actions.length > 0
|
|
127
|
+
? h("taskbar-split-button", { iconName: iconName, class: className, key: dataElementId, "data-taskbar-icon": iconName, "data-taskbar-label": title, "data-taskbar-element": element, "data-element-id": dataElementId, enabled: isEnabled(element), actions: actions, title: title, action: () => action(element) })
|
|
128
|
+
: undefined;
|
|
129
|
+
}
|
|
121
130
|
function actionButton(element, className, dataElementId, title, isEnabled, actions, action) {
|
|
122
131
|
return actions && actions.length > 0
|
|
123
132
|
? h("taskbar-actions-button", { class: className, key: dataElementId, title: title, "data-taskbar-element": element, "data-element-id": dataElementId, enabled: isEnabled(element), actions: actions, onTaskbarActionSelected: (evt) => action(evt.detail.value) })
|
|
@@ -187,6 +196,7 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
187
196
|
this.buttons = undefined;
|
|
188
197
|
this.customButtons = undefined;
|
|
189
198
|
this.actionsList = undefined;
|
|
199
|
+
this.actionsSettingsList = undefined;
|
|
190
200
|
this.primaryButton = undefined;
|
|
191
201
|
this.disabledButtons = undefined;
|
|
192
202
|
this.dataUnit = undefined;
|
|
@@ -343,7 +353,7 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
343
353
|
const taskbarElement = TaskbarElement[def.toString()];
|
|
344
354
|
const dataExporterStoreKey = this._element.dataset.exporterStoreKey || this.configName;
|
|
345
355
|
if (taskbarElement) {
|
|
346
|
-
return buildElem(def, className, this.getIdElemBtnNative(def), elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.buildDynamicActionsList(), dataExporterStoreKey, this.presentationMode);
|
|
356
|
+
return buildElem(def, className, this.getIdElemBtnNative(def), elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), def !== TaskbarElement.CONFIGURATOR ? this.buildDynamicActionsList() : this.buildActionsSettingsList(), dataExporterStoreKey, this.presentationMode);
|
|
347
357
|
}
|
|
348
358
|
else {
|
|
349
359
|
return buildCustomButton(def, className, this.getIdElemBtnCustom(def), elem => this.elementClick(elem), elem => this.isEnabled(elem));
|
|
@@ -352,10 +362,13 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
352
362
|
buildDynamicActionsList() {
|
|
353
363
|
var _a;
|
|
354
364
|
if (this._hiddenActionsList.length) {
|
|
355
|
-
return [...((_a = this.actionsList) !== null && _a !== void 0 ? _a : []),
|
|
365
|
+
return [...((_a = this.actionsList) !== null && _a !== void 0 ? _a : []), ...this._hiddenActionsList];
|
|
356
366
|
}
|
|
357
367
|
return this.actionsList;
|
|
358
368
|
}
|
|
369
|
+
buildActionsSettingsList() {
|
|
370
|
+
return this.actionsSettingsList;
|
|
371
|
+
}
|
|
359
372
|
getIdElemBtnNative(taskbarElem) {
|
|
360
373
|
return StringUtils.toCamelCase(taskbarElem);
|
|
361
374
|
}
|
|
@@ -587,6 +600,7 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
587
600
|
"buttons": [1],
|
|
588
601
|
"customButtons": [16],
|
|
589
602
|
"actionsList": [16],
|
|
603
|
+
"actionsSettingsList": [16],
|
|
590
604
|
"primaryButton": [1, "primary-button"],
|
|
591
605
|
"disabledButtons": [16],
|
|
592
606
|
"dataUnit": [16],
|
|
@@ -606,7 +620,7 @@ function defineCustomElement() {
|
|
|
606
620
|
if (typeof customElements === "undefined") {
|
|
607
621
|
return;
|
|
608
622
|
}
|
|
609
|
-
const components = ["snk-taskbar", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender", "taskbar-actions-button"];
|
|
623
|
+
const components = ["snk-taskbar", "snk-actions-button", "snk-data-exporter", "snk-exporter-email-sender", "taskbar-actions-button", "taskbar-split-button"];
|
|
610
624
|
components.forEach(tagName => { switch (tagName) {
|
|
611
625
|
case "snk-taskbar":
|
|
612
626
|
if (!customElements.get(tagName)) {
|
|
@@ -615,20 +629,25 @@ function defineCustomElement() {
|
|
|
615
629
|
break;
|
|
616
630
|
case "snk-actions-button":
|
|
617
631
|
if (!customElements.get(tagName)) {
|
|
618
|
-
defineCustomElement$
|
|
632
|
+
defineCustomElement$5();
|
|
619
633
|
}
|
|
620
634
|
break;
|
|
621
635
|
case "snk-data-exporter":
|
|
622
636
|
if (!customElements.get(tagName)) {
|
|
623
|
-
defineCustomElement$
|
|
637
|
+
defineCustomElement$4();
|
|
624
638
|
}
|
|
625
639
|
break;
|
|
626
640
|
case "snk-exporter-email-sender":
|
|
627
641
|
if (!customElements.get(tagName)) {
|
|
628
|
-
defineCustomElement$
|
|
642
|
+
defineCustomElement$3();
|
|
629
643
|
}
|
|
630
644
|
break;
|
|
631
645
|
case "taskbar-actions-button":
|
|
646
|
+
if (!customElements.get(tagName)) {
|
|
647
|
+
defineCustomElement$2();
|
|
648
|
+
}
|
|
649
|
+
break;
|
|
650
|
+
case "taskbar-split-button":
|
|
632
651
|
if (!customElements.get(tagName)) {
|
|
633
652
|
defineCustomElement$1();
|
|
634
653
|
}
|