@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
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action as DUAction, ApplicationContext, DataType, ElementIDUtils,
|
|
1
|
+
import { Action as DUAction, ApplicationContext, DataType, ElementIDUtils, KeyboardManager, ObjectUtils, StringUtils, UserInterface, } from '@sankhyalabs/core';
|
|
2
2
|
import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
3
3
|
import { h } from '@stencil/core';
|
|
4
4
|
import { SIMPLE_CRUD_MODE, VIEW_MODE } from '../../lib/utils/constants';
|
|
@@ -7,7 +7,6 @@ import { CrudUtils, FormConfigFetcher, PresentationMode } from '../../lib';
|
|
|
7
7
|
import TaskbarProcessor from '../snk-taskbar/processor/taskbar-processor';
|
|
8
8
|
import InMemoryLoader from '../../lib/dataUnit/InMemoryLoader';
|
|
9
9
|
import SnkMultiSelectionListDataSource from '../snk-grid/filtercolumn/SnkMultiSelectionListDataSource';
|
|
10
|
-
import { buildFieldSearch, openFieldSearch } from '../snk-taskbar/subcomponents/field-search';
|
|
11
10
|
import { ConfigStorage } from '../../lib/configs/ConfigStorage';
|
|
12
11
|
import { SnkFormConfigManager } from '../snk-form-config/SnkFormConfigManager';
|
|
13
12
|
import { REGULAR_DEFAULT_BTNS, REGULAR_SELECTED_BTNS } from './regular-buttons';
|
|
@@ -15,13 +14,14 @@ import RmPrecisionCustomValueFormatter from '../../lib/DefaultCustomFormatters/R
|
|
|
15
14
|
import ClientSideExporterProvider from '../snk-data-exporter/providers/ClientSideExporterProvider';
|
|
16
15
|
import store from '../../lib/store';
|
|
17
16
|
import { ContinuousInsertUtils } from '../../lib/utils/ContinuousInsertUtils';
|
|
17
|
+
import { buildFieldSearch, LABEL_SEARCH_COLUMN, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
18
18
|
export class SnkSimpleCrud {
|
|
19
19
|
constructor() {
|
|
20
20
|
this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
|
|
21
|
-
this._keyDownHandler = (event) => this.keyDownListener(event);
|
|
22
21
|
this._formConfigFetcher = new FormConfigFetcher();
|
|
23
22
|
this._customEditors = new Map();
|
|
24
23
|
this._customRenders = new Map();
|
|
24
|
+
this._container = undefined;
|
|
25
25
|
this._showPopUpGridConfig = false;
|
|
26
26
|
this._currentViewMode = VIEW_MODE.GRID;
|
|
27
27
|
this._config = undefined;
|
|
@@ -49,7 +49,7 @@ export class SnkSimpleCrud {
|
|
|
49
49
|
this.useEnterLikeTab = false;
|
|
50
50
|
this.actionsList = undefined;
|
|
51
51
|
this.configName = undefined;
|
|
52
|
-
this.showConfiguratorButtons =
|
|
52
|
+
this.showConfiguratorButtons = false;
|
|
53
53
|
this.gridLegacyConfigName = undefined;
|
|
54
54
|
this.formLegacyConfigName = undefined;
|
|
55
55
|
this.ignoreReadOnlyFormFields = false;
|
|
@@ -174,6 +174,12 @@ export class SnkSimpleCrud {
|
|
|
174
174
|
this.dataUnit.isMultipleEdition = false;
|
|
175
175
|
this._viewStack.show(view);
|
|
176
176
|
}
|
|
177
|
+
if (view === VIEW_MODE.GRID) {
|
|
178
|
+
requestAnimationFrame(() => this.focusToGrid());
|
|
179
|
+
}
|
|
180
|
+
if (view === VIEW_MODE.FORM) {
|
|
181
|
+
requestAnimationFrame(() => this.focusToForm());
|
|
182
|
+
}
|
|
177
183
|
}
|
|
178
184
|
actionClickListener(evt) {
|
|
179
185
|
this.handleTaskbarAction(evt.detail);
|
|
@@ -371,6 +377,10 @@ export class SnkSimpleCrud {
|
|
|
371
377
|
}
|
|
372
378
|
}
|
|
373
379
|
}
|
|
380
|
+
disconnectedCallback() {
|
|
381
|
+
var _a;
|
|
382
|
+
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
383
|
+
}
|
|
374
384
|
setCustomRenders() {
|
|
375
385
|
if (!this._grid) {
|
|
376
386
|
return;
|
|
@@ -548,40 +558,18 @@ export class SnkSimpleCrud {
|
|
|
548
558
|
}
|
|
549
559
|
this.configuratorCancel.emit();
|
|
550
560
|
}
|
|
551
|
-
|
|
552
|
-
if (this._columnSearch != undefined) {
|
|
553
|
-
return this._columnSearch;
|
|
554
|
-
}
|
|
555
|
-
this._moreOptions = actionButton;
|
|
556
|
-
this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
|
557
|
-
this._grid.filterColumns(argument).then((columns) => {
|
|
558
|
-
accept(columns
|
|
559
|
-
.filter(column => !column.hidden)
|
|
560
|
-
.map(column => ({ label: column.label, value: column.name })));
|
|
561
|
-
});
|
|
562
|
-
}), (option) => {
|
|
563
|
-
var _a;
|
|
564
|
-
if (option != undefined) {
|
|
565
|
-
this._grid.locateColumn(option.value);
|
|
566
|
-
(_a = actionButton["hideActions"]) === null || _a === void 0 ? void 0 : _a.call(actionButton);
|
|
567
|
-
}
|
|
568
|
-
});
|
|
569
|
-
return this._columnSearch;
|
|
570
|
-
}
|
|
571
|
-
onSelectField(option, actionButton) {
|
|
561
|
+
onSelectField(option) {
|
|
572
562
|
if (option == undefined) {
|
|
573
563
|
return;
|
|
574
564
|
}
|
|
575
565
|
this._fieldToGetFocus = option.value;
|
|
576
|
-
actionButton.hideActions();
|
|
577
566
|
}
|
|
578
|
-
getFieldSearch(
|
|
567
|
+
getFieldSearch(splitButton, item) {
|
|
579
568
|
if (this._fieldSearch != undefined) {
|
|
580
569
|
return this._fieldSearch;
|
|
581
570
|
}
|
|
582
|
-
this.
|
|
583
|
-
|
|
584
|
-
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option, actionButton));
|
|
571
|
+
this._splitButtonForm = splitButton;
|
|
572
|
+
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
585
573
|
return this._fieldSearch;
|
|
586
574
|
}
|
|
587
575
|
getFormFields() {
|
|
@@ -607,17 +595,26 @@ export class SnkSimpleCrud {
|
|
|
607
595
|
isGridInsertActive() {
|
|
608
596
|
return this.enableGridInsert && this.dataUnit.hasNewRecord();
|
|
609
597
|
}
|
|
598
|
+
getColumnSearch(splitButton, item) {
|
|
599
|
+
if (this._columnSearch != undefined) {
|
|
600
|
+
return this._columnSearch;
|
|
601
|
+
}
|
|
602
|
+
this._splitButton = splitButton;
|
|
603
|
+
this._columnSearch = buildFieldSearch(item, ({ argument }) => new Promise(accept => {
|
|
604
|
+
this._grid.filterColumns(argument).then((columns) => {
|
|
605
|
+
accept(columns
|
|
606
|
+
.filter(column => !column.hidden)
|
|
607
|
+
.map(column => ({ label: column.label, value: column.name })));
|
|
608
|
+
});
|
|
609
|
+
}), (option) => {
|
|
610
|
+
if (option != undefined) {
|
|
611
|
+
this._grid.locateColumn(option.value);
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
return this._columnSearch;
|
|
615
|
+
}
|
|
610
616
|
getActionsList() {
|
|
611
|
-
|
|
612
|
-
const hardList = [{
|
|
613
|
-
value: StringUtils.generateUUID(),
|
|
614
|
-
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn", undefined)) !== null && _b !== void 0 ? _b : "Buscar",
|
|
615
|
-
disableCloseOnSelect: true,
|
|
616
|
-
eagerInitialize: true,
|
|
617
|
-
itemBuilder: (actionButton, item) => (this._currentViewMode === VIEW_MODE.GRID)
|
|
618
|
-
? this.getColumnSearch(actionButton, item)
|
|
619
|
-
: this.getFieldSearch(actionButton, item)
|
|
620
|
-
}];
|
|
617
|
+
const hardList = [];
|
|
621
618
|
if (this.enableGridInsert) {
|
|
622
619
|
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this.enableContinuousInsert, () => {
|
|
623
620
|
this.enableContinuousInsert = !this.enableContinuousInsert;
|
|
@@ -630,8 +627,28 @@ export class SnkSimpleCrud {
|
|
|
630
627
|
const taskbarID = this.getTopTaskBarId();
|
|
631
628
|
return hardList.concat(this.taskbarManager.getMoreOptions(taskbarID, this.configName, this.dataState, this.actionsList));
|
|
632
629
|
}
|
|
633
|
-
|
|
634
|
-
|
|
630
|
+
return hardList.concat(this.actionsList);
|
|
631
|
+
}
|
|
632
|
+
getSettingsListGrid() {
|
|
633
|
+
var _a, _b;
|
|
634
|
+
const hardList = [{
|
|
635
|
+
value: StringUtils.generateUUID(),
|
|
636
|
+
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findColumn", {})) !== null && _b !== void 0 ? _b : LABEL_SEARCH_COLUMN,
|
|
637
|
+
disableCloseOnSelect: true,
|
|
638
|
+
eagerInitialize: true,
|
|
639
|
+
itemBuilder: (splitButton, item) => this.getColumnSearch(splitButton, item)
|
|
640
|
+
}];
|
|
641
|
+
return hardList;
|
|
642
|
+
}
|
|
643
|
+
getSettingsListForm() {
|
|
644
|
+
var _a, _b;
|
|
645
|
+
const hardList = [{
|
|
646
|
+
value: StringUtils.generateUUID(),
|
|
647
|
+
label: (_b = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.findFields", {})) !== null && _b !== void 0 ? _b : LABEL_SEARCH_FIELD,
|
|
648
|
+
disableCloseOnSelect: true,
|
|
649
|
+
eagerInitialize: true,
|
|
650
|
+
itemBuilder: (splitButton, item) => this.getFieldSearch(splitButton, item)
|
|
651
|
+
}];
|
|
635
652
|
return hardList;
|
|
636
653
|
}
|
|
637
654
|
getTopTaskBarId() {
|
|
@@ -639,45 +656,9 @@ export class SnkSimpleCrud {
|
|
|
639
656
|
return ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? `snkGridTopTaskbar.finish_edition${PresentationMode.PRIMARY}` :
|
|
640
657
|
`snkGridTopTaskbar.regular${PresentationMode.PRIMARY}`;
|
|
641
658
|
}
|
|
642
|
-
async keyDownListener(event) {
|
|
643
|
-
if (!event.ctrlKey || event.key == undefined || event.key.toUpperCase() !== "F") {
|
|
644
|
-
return;
|
|
645
|
-
}
|
|
646
|
-
if (this._element == undefined) {
|
|
647
|
-
return;
|
|
648
|
-
}
|
|
649
|
-
if (JSUtils.isHiddenElement(this._element)) {
|
|
650
|
-
return;
|
|
651
|
-
}
|
|
652
|
-
FloatingManager.closeAll();
|
|
653
|
-
if (this._currentViewMode === VIEW_MODE.GRID) {
|
|
654
|
-
await this.findColumn();
|
|
655
|
-
}
|
|
656
|
-
else {
|
|
657
|
-
await this.findField();
|
|
658
|
-
}
|
|
659
|
-
event.preventDefault();
|
|
660
|
-
}
|
|
661
|
-
async findField() {
|
|
662
|
-
await this.openSeach(this._fieldSearch);
|
|
663
|
-
}
|
|
664
|
-
async findColumn() {
|
|
665
|
-
await this.openSeach(this._columnSearch);
|
|
666
|
-
}
|
|
667
|
-
async openSeach(fieldSearch) {
|
|
668
|
-
await openFieldSearch(this._moreOptions, fieldSearch);
|
|
669
|
-
}
|
|
670
659
|
clearFieldToFocusHandler() {
|
|
671
660
|
this._fieldToGetFocus = undefined;
|
|
672
661
|
}
|
|
673
|
-
connectedCallback() {
|
|
674
|
-
window.addEventListener("keydown", this._keyDownHandler, { capture: true });
|
|
675
|
-
}
|
|
676
|
-
disconnectedCallback() {
|
|
677
|
-
var _a;
|
|
678
|
-
window.removeEventListener("keydown", this._keyDownHandler);
|
|
679
|
-
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
680
|
-
}
|
|
681
662
|
gridConfigChangeHandler(evt) {
|
|
682
663
|
evt.stopPropagation();
|
|
683
664
|
if (!this.configName)
|
|
@@ -773,16 +754,23 @@ export class SnkSimpleCrud {
|
|
|
773
754
|
}
|
|
774
755
|
}, {
|
|
775
756
|
debounceTime: 1000,
|
|
776
|
-
description: "Cancela uma ação.",
|
|
777
|
-
element: this._element
|
|
757
|
+
description: "Cancela uma ação.", element: this._element
|
|
778
758
|
});
|
|
779
759
|
}
|
|
780
760
|
async handleFormConfigSaved() {
|
|
781
761
|
await this.loadFormConfig(true, true);
|
|
782
762
|
}
|
|
783
|
-
|
|
763
|
+
focusToGrid() {
|
|
764
|
+
const gridElement = this._grid;
|
|
765
|
+
gridElement.focus();
|
|
766
|
+
}
|
|
767
|
+
focusToForm() {
|
|
768
|
+
const formElement = this._form;
|
|
769
|
+
formElement.focus();
|
|
770
|
+
}
|
|
771
|
+
renderTaskbarContent(layout) {
|
|
784
772
|
var _a;
|
|
785
|
-
return (h("snk-taskbar", { class: this._currentViewMode === VIEW_MODE.FORM
|
|
773
|
+
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" })));
|
|
786
774
|
}
|
|
787
775
|
/* istanbul ignore next */
|
|
788
776
|
render() {
|
|
@@ -790,9 +778,9 @@ export class SnkSimpleCrud {
|
|
|
790
778
|
if (this.dataUnit == undefined) {
|
|
791
779
|
return;
|
|
792
780
|
}
|
|
793
|
-
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
|
|
781
|
+
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)
|
|
794
782
|
? undefined
|
|
795
|
-
: 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() }))));
|
|
783
|
+
: 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() }))));
|
|
796
784
|
}
|
|
797
785
|
static get is() { return "snk-simple-crud"; }
|
|
798
786
|
static get encapsulation() { return "scoped"; }
|
|
@@ -1201,7 +1189,8 @@ export class SnkSimpleCrud {
|
|
|
1201
1189
|
"text": "Usado para exibir os bot\u00F5es de a\u00E7\u00E3o do snk-configurator."
|
|
1202
1190
|
},
|
|
1203
1191
|
"attribute": "show-configurator-buttons",
|
|
1204
|
-
"reflect": false
|
|
1192
|
+
"reflect": false,
|
|
1193
|
+
"defaultValue": "false"
|
|
1205
1194
|
},
|
|
1206
1195
|
"gridLegacyConfigName": {
|
|
1207
1196
|
"type": "string",
|
|
@@ -1365,6 +1354,7 @@ export class SnkSimpleCrud {
|
|
|
1365
1354
|
}
|
|
1366
1355
|
static get states() {
|
|
1367
1356
|
return {
|
|
1357
|
+
"_container": {},
|
|
1368
1358
|
"_showPopUpGridConfig": {},
|
|
1369
1359
|
"_currentViewMode": {},
|
|
1370
1360
|
"_config": {},
|
|
@@ -87,6 +87,9 @@ export const buildElem = (element, className, dataElementId, getTitle, action, i
|
|
|
87
87
|
case TaskbarElement.FORM_MODE:
|
|
88
88
|
return iconButton("list", element, className, dataElementId, title, action, isEnabled);
|
|
89
89
|
case TaskbarElement.CONFIGURATOR:
|
|
90
|
+
if ((actions === null || actions === void 0 ? void 0 : actions.length) > 0) {
|
|
91
|
+
return splitButton("settings-inverted", element, className, title, dataElementId, isEnabled, actions, action);
|
|
92
|
+
}
|
|
90
93
|
return iconButton("settings-inverted", element, className, dataElementId, title, action, isEnabled);
|
|
91
94
|
case TaskbarElement.MORE_OPTIONS:
|
|
92
95
|
return actionButton(element, className, dataElementId, title, isEnabled, actions, action);
|
|
@@ -110,6 +113,11 @@ function iconButton(iconName, name, className, dataElementId, title, action, isE
|
|
|
110
113
|
function iconTextButton(iconName, name, className, dataElementId, text, title, action, isEnabled) {
|
|
111
114
|
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) }, h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: iconName }));
|
|
112
115
|
}
|
|
116
|
+
function splitButton(iconName, element, className, title, dataElementId, isEnabled, actions, action) {
|
|
117
|
+
return actions && actions.length > 0
|
|
118
|
+
? 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) })
|
|
119
|
+
: undefined;
|
|
120
|
+
}
|
|
113
121
|
function actionButton(element, className, dataElementId, title, isEnabled, actions, action) {
|
|
114
122
|
return actions && actions.length > 0
|
|
115
123
|
? 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) })
|
|
File without changes
|
package/dist/collection/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button.js
ADDED
|
@@ -0,0 +1,220 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
export class TaskbarSplitButton {
|
|
3
|
+
constructor() {
|
|
4
|
+
this._showDropdown = false;
|
|
5
|
+
this.iconName = undefined;
|
|
6
|
+
this.action = undefined;
|
|
7
|
+
this.name = undefined;
|
|
8
|
+
this.className = undefined;
|
|
9
|
+
this.dataElementId = undefined;
|
|
10
|
+
this.title = undefined;
|
|
11
|
+
this.enabled = undefined;
|
|
12
|
+
this.actions = undefined;
|
|
13
|
+
}
|
|
14
|
+
initializeEagerItems() {
|
|
15
|
+
var _a;
|
|
16
|
+
(_a = this.actions) === null || _a === void 0 ? void 0 : _a.forEach(action => {
|
|
17
|
+
var _a;
|
|
18
|
+
if (action && action.eagerInitialize && action.itemBuilder) {
|
|
19
|
+
(_a = action.itemBuilder) === null || _a === void 0 ? void 0 : _a.call(action, this._splitButtonRef, action);
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
componentDidLoad() {
|
|
24
|
+
this.initializeEagerItems();
|
|
25
|
+
}
|
|
26
|
+
dropdownItemBuilder(item, _level) {
|
|
27
|
+
const itemAction = this.actions.find(action => action.value === item.id);
|
|
28
|
+
if (!itemAction || !itemAction.itemBuilder) {
|
|
29
|
+
return undefined;
|
|
30
|
+
}
|
|
31
|
+
const customContent = itemAction.itemBuilder(this._splitButtonRef, itemAction);
|
|
32
|
+
if (typeof customContent === 'string') {
|
|
33
|
+
return h("div", { innerHTML: customContent });
|
|
34
|
+
}
|
|
35
|
+
return customContent;
|
|
36
|
+
}
|
|
37
|
+
loadItems() {
|
|
38
|
+
return this.actions.filter(action => action !== undefined).map(action => {
|
|
39
|
+
var _a;
|
|
40
|
+
return {
|
|
41
|
+
id: action.value,
|
|
42
|
+
label: action.label,
|
|
43
|
+
value: action.value,
|
|
44
|
+
type: (_a = action.type) !== null && _a !== void 0 ? _a : 'item',
|
|
45
|
+
children: action.children,
|
|
46
|
+
iconName: action.iconName,
|
|
47
|
+
subAction: action.subAction,
|
|
48
|
+
group: action.group,
|
|
49
|
+
disableCloseOnSelect: action.disableCloseOnSelect,
|
|
50
|
+
};
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
render() {
|
|
54
|
+
return (h(Host, null, h("ez-split-button", { ref: (ref) => this._splitButtonRef = ref, key: this.dataElementId, class: `${this.className} "ez-split-button--tertiary ez-padding--medium"`, items: this.loadItems(), mode: "icon-only", iconName: this.iconName, enabled: this.enabled, show: this._showDropdown, onButtonClick: () => this.action(this.name), itemBuilder: (item, level) => this.dropdownItemBuilder(item, level) })));
|
|
55
|
+
}
|
|
56
|
+
static get is() { return "taskbar-split-button"; }
|
|
57
|
+
static get encapsulation() { return "scoped"; }
|
|
58
|
+
static get originalStyleUrls() {
|
|
59
|
+
return {
|
|
60
|
+
"$": ["taskbar-split-button.css"]
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
static get styleUrls() {
|
|
64
|
+
return {
|
|
65
|
+
"$": ["taskbar-split-button.css"]
|
|
66
|
+
};
|
|
67
|
+
}
|
|
68
|
+
static get properties() {
|
|
69
|
+
return {
|
|
70
|
+
"iconName": {
|
|
71
|
+
"type": "string",
|
|
72
|
+
"mutable": false,
|
|
73
|
+
"complexType": {
|
|
74
|
+
"original": "string",
|
|
75
|
+
"resolved": "string",
|
|
76
|
+
"references": {}
|
|
77
|
+
},
|
|
78
|
+
"required": false,
|
|
79
|
+
"optional": false,
|
|
80
|
+
"docs": {
|
|
81
|
+
"tags": [],
|
|
82
|
+
"text": "Nome do \u00EDcone a ser exibido no bot\u00E3o."
|
|
83
|
+
},
|
|
84
|
+
"attribute": "icon-name",
|
|
85
|
+
"reflect": false
|
|
86
|
+
},
|
|
87
|
+
"action": {
|
|
88
|
+
"type": "unknown",
|
|
89
|
+
"mutable": false,
|
|
90
|
+
"complexType": {
|
|
91
|
+
"original": "(name: string) => void",
|
|
92
|
+
"resolved": "(name: string) => void",
|
|
93
|
+
"references": {}
|
|
94
|
+
},
|
|
95
|
+
"required": false,
|
|
96
|
+
"optional": false,
|
|
97
|
+
"docs": {
|
|
98
|
+
"tags": [{
|
|
99
|
+
"name": "param",
|
|
100
|
+
"text": "name Nome da a\u00E7\u00E3o a ser executada."
|
|
101
|
+
}],
|
|
102
|
+
"text": "Fun\u00E7\u00E3o de callback acionada ao clicar no bot\u00E3o principal."
|
|
103
|
+
}
|
|
104
|
+
},
|
|
105
|
+
"name": {
|
|
106
|
+
"type": "string",
|
|
107
|
+
"mutable": false,
|
|
108
|
+
"complexType": {
|
|
109
|
+
"original": "string",
|
|
110
|
+
"resolved": "string",
|
|
111
|
+
"references": {}
|
|
112
|
+
},
|
|
113
|
+
"required": false,
|
|
114
|
+
"optional": false,
|
|
115
|
+
"docs": {
|
|
116
|
+
"tags": [],
|
|
117
|
+
"text": "Nome identificador da a\u00E7\u00E3o do bot\u00E3o."
|
|
118
|
+
},
|
|
119
|
+
"attribute": "name",
|
|
120
|
+
"reflect": false
|
|
121
|
+
},
|
|
122
|
+
"className": {
|
|
123
|
+
"type": "string",
|
|
124
|
+
"mutable": false,
|
|
125
|
+
"complexType": {
|
|
126
|
+
"original": "string",
|
|
127
|
+
"resolved": "string",
|
|
128
|
+
"references": {}
|
|
129
|
+
},
|
|
130
|
+
"required": false,
|
|
131
|
+
"optional": false,
|
|
132
|
+
"docs": {
|
|
133
|
+
"tags": [],
|
|
134
|
+
"text": "Classe CSS personalizada para estilizar o bot\u00E3o."
|
|
135
|
+
},
|
|
136
|
+
"attribute": "class-name",
|
|
137
|
+
"reflect": false
|
|
138
|
+
},
|
|
139
|
+
"dataElementId": {
|
|
140
|
+
"type": "string",
|
|
141
|
+
"mutable": false,
|
|
142
|
+
"complexType": {
|
|
143
|
+
"original": "string",
|
|
144
|
+
"resolved": "string",
|
|
145
|
+
"references": {}
|
|
146
|
+
},
|
|
147
|
+
"required": false,
|
|
148
|
+
"optional": false,
|
|
149
|
+
"docs": {
|
|
150
|
+
"tags": [],
|
|
151
|
+
"text": "Identificador de elemento para fins de rastreamento e automa\u00E7\u00E3o de testes."
|
|
152
|
+
},
|
|
153
|
+
"attribute": "data-element-id",
|
|
154
|
+
"reflect": false
|
|
155
|
+
},
|
|
156
|
+
"title": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"mutable": false,
|
|
159
|
+
"complexType": {
|
|
160
|
+
"original": "string",
|
|
161
|
+
"resolved": "string",
|
|
162
|
+
"references": {}
|
|
163
|
+
},
|
|
164
|
+
"required": false,
|
|
165
|
+
"optional": false,
|
|
166
|
+
"docs": {
|
|
167
|
+
"tags": [],
|
|
168
|
+
"text": "Texto que ser\u00E1 exibido no bot\u00E3o."
|
|
169
|
+
},
|
|
170
|
+
"attribute": "title",
|
|
171
|
+
"reflect": false
|
|
172
|
+
},
|
|
173
|
+
"enabled": {
|
|
174
|
+
"type": "boolean",
|
|
175
|
+
"mutable": false,
|
|
176
|
+
"complexType": {
|
|
177
|
+
"original": "boolean",
|
|
178
|
+
"resolved": "boolean",
|
|
179
|
+
"references": {}
|
|
180
|
+
},
|
|
181
|
+
"required": false,
|
|
182
|
+
"optional": false,
|
|
183
|
+
"docs": {
|
|
184
|
+
"tags": [],
|
|
185
|
+
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o componente."
|
|
186
|
+
},
|
|
187
|
+
"attribute": "enabled",
|
|
188
|
+
"reflect": false
|
|
189
|
+
},
|
|
190
|
+
"actions": {
|
|
191
|
+
"type": "unknown",
|
|
192
|
+
"mutable": false,
|
|
193
|
+
"complexType": {
|
|
194
|
+
"original": "Array<Action>",
|
|
195
|
+
"resolved": "Action[]",
|
|
196
|
+
"references": {
|
|
197
|
+
"Array": {
|
|
198
|
+
"location": "global"
|
|
199
|
+
},
|
|
200
|
+
"Action": {
|
|
201
|
+
"location": "import",
|
|
202
|
+
"path": "../../snk-taskbar"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
},
|
|
206
|
+
"required": false,
|
|
207
|
+
"optional": false,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": "Define a lista de a\u00E7\u00F5es dispon\u00EDveis no dropdown do bot\u00E3o."
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
static get states() {
|
|
216
|
+
return {
|
|
217
|
+
"_showDropdown": {}
|
|
218
|
+
};
|
|
219
|
+
}
|
|
220
|
+
}
|
|
@@ -59,6 +59,7 @@ export class SnkTaskbar {
|
|
|
59
59
|
this.buttons = undefined;
|
|
60
60
|
this.customButtons = undefined;
|
|
61
61
|
this.actionsList = undefined;
|
|
62
|
+
this.actionsSettingsList = undefined;
|
|
62
63
|
this.primaryButton = undefined;
|
|
63
64
|
this.disabledButtons = undefined;
|
|
64
65
|
this.dataUnit = undefined;
|
|
@@ -215,7 +216,7 @@ export class SnkTaskbar {
|
|
|
215
216
|
const taskbarElement = TaskbarElement[def.toString()];
|
|
216
217
|
const dataExporterStoreKey = this._element.dataset.exporterStoreKey || this.configName;
|
|
217
218
|
if (taskbarElement) {
|
|
218
|
-
return buildElem(def, className, this.getIdElemBtnNative(def), elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.buildDynamicActionsList(), dataExporterStoreKey, this.presentationMode);
|
|
219
|
+
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);
|
|
219
220
|
}
|
|
220
221
|
else {
|
|
221
222
|
return buildCustomButton(def, className, this.getIdElemBtnCustom(def), elem => this.elementClick(elem), elem => this.isEnabled(elem));
|
|
@@ -224,10 +225,13 @@ export class SnkTaskbar {
|
|
|
224
225
|
buildDynamicActionsList() {
|
|
225
226
|
var _a;
|
|
226
227
|
if (this._hiddenActionsList.length) {
|
|
227
|
-
return [...((_a = this.actionsList) !== null && _a !== void 0 ? _a : []),
|
|
228
|
+
return [...((_a = this.actionsList) !== null && _a !== void 0 ? _a : []), ...this._hiddenActionsList];
|
|
228
229
|
}
|
|
229
230
|
return this.actionsList;
|
|
230
231
|
}
|
|
232
|
+
buildActionsSettingsList() {
|
|
233
|
+
return this.actionsSettingsList;
|
|
234
|
+
}
|
|
231
235
|
getIdElemBtnNative(taskbarElem) {
|
|
232
236
|
return StringUtils.toCamelCase(taskbarElem);
|
|
233
237
|
}
|
|
@@ -621,6 +625,28 @@ export class SnkTaskbar {
|
|
|
621
625
|
"text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\" do componente snk-taskbar."
|
|
622
626
|
}
|
|
623
627
|
},
|
|
628
|
+
"actionsSettingsList": {
|
|
629
|
+
"type": "unknown",
|
|
630
|
+
"mutable": false,
|
|
631
|
+
"complexType": {
|
|
632
|
+
"original": "Array<Action>",
|
|
633
|
+
"resolved": "Action[]",
|
|
634
|
+
"references": {
|
|
635
|
+
"Array": {
|
|
636
|
+
"location": "global"
|
|
637
|
+
},
|
|
638
|
+
"Action": {
|
|
639
|
+
"location": "local"
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
},
|
|
643
|
+
"required": false,
|
|
644
|
+
"optional": false,
|
|
645
|
+
"docs": {
|
|
646
|
+
"tags": [],
|
|
647
|
+
"text": "Lista de a\u00E7\u00F5es que devem ser usadas no bot\u00E3o \"Mais op\u00E7\u00F5es\" do componente snk-taskbar."
|
|
648
|
+
}
|
|
649
|
+
},
|
|
624
650
|
"primaryButton": {
|
|
625
651
|
"type": "string",
|
|
626
652
|
"mutable": false,
|
|
@@ -10,15 +10,15 @@ export var CONFIG_SOURCE;
|
|
|
10
10
|
})(CONFIG_SOURCE || (CONFIG_SOURCE = {}));
|
|
11
11
|
export class ConfigStorage {
|
|
12
12
|
static addFilterBarLegacyConfig(configName, legacyConfigName) {
|
|
13
|
-
this.
|
|
13
|
+
this.validateResourceId(legacyConfigName);
|
|
14
14
|
this.filterBarLegacyConfig.set(configName, legacyConfigName);
|
|
15
15
|
}
|
|
16
16
|
static addFormLegacyConfig(configName, legacyConfigName) {
|
|
17
|
-
this.
|
|
17
|
+
this.validateResourceId(legacyConfigName);
|
|
18
18
|
this.formLegacyConfig.set(configName, legacyConfigName);
|
|
19
19
|
}
|
|
20
20
|
static addGridLegacyConfig(configName, legacyConfigName) {
|
|
21
|
-
this.
|
|
21
|
+
this.validateResourceId(legacyConfigName);
|
|
22
22
|
this.gridLegacyConfig.set(configName, legacyConfigName);
|
|
23
23
|
}
|
|
24
24
|
static preload(resourceID, configName, legacyConfigs) {
|
|
@@ -75,6 +75,10 @@ export class ConfigStorage {
|
|
|
75
75
|
await this.deleteGridConfigCache(name, resourceID);
|
|
76
76
|
return this.gridConfigFetcher.saveConfig(config, name, resourceID);
|
|
77
77
|
}
|
|
78
|
+
static async loadDefaultFilter(filterId, resourceID, configName) {
|
|
79
|
+
const legacyConfigName = this.filterBarLegacyConfig.get(configName);
|
|
80
|
+
return this.personalizedFilterFetcher.loadDefaultFilter(resourceID, filterId, configName, legacyConfigName);
|
|
81
|
+
}
|
|
78
82
|
static async loadPersonalizedFilter(filterId, resourceID, configName) {
|
|
79
83
|
const legacyConfigName = this.filterBarLegacyConfig.get(configName);
|
|
80
84
|
return this.personalizedFilterFetcher.loadPersonalizedFilter(resourceID, filterId, configName, legacyConfigName);
|
|
@@ -85,6 +89,13 @@ export class ConfigStorage {
|
|
|
85
89
|
await this.deleteFilterBarConfigCache(configName, resourceID);
|
|
86
90
|
return this.personalizedFilterFetcher.savePersonalizedFilter(personalizedFilter, resourceID, configName);
|
|
87
91
|
}
|
|
92
|
+
static async saveDefaultFilter(personalizedFilter, resourceID, configName) {
|
|
93
|
+
await this.deleteFilterBarConfigCache(configName, resourceID);
|
|
94
|
+
return this.personalizedFilterFetcher.saveDefaultFilter(personalizedFilter, resourceID, configName);
|
|
95
|
+
}
|
|
96
|
+
static async removeDefaultFilter(personalizedFilter, resourceID, configName) {
|
|
97
|
+
return this.personalizedFilterFetcher.removeDefaultFilter(personalizedFilter, resourceID, configName);
|
|
98
|
+
}
|
|
88
99
|
static async removePersonalizedFilter(personalizedFilter, resourceID, configName) {
|
|
89
100
|
return this.personalizedFilterFetcher.removePersonalizedFilter(personalizedFilter, resourceID, configName);
|
|
90
101
|
}
|
|
@@ -100,10 +111,8 @@ export class ConfigStorage {
|
|
|
100
111
|
static async deleteFilterBarConfigCache(name, resourceID) {
|
|
101
112
|
await this.deleteConfigCache(name, resourceID, CONFIG_SOURCE.filterBar);
|
|
102
113
|
}
|
|
103
|
-
static
|
|
104
|
-
if (!
|
|
105
|
-
throw Error(this.CONFIG_NAME_ERROR_MESSAGE);
|
|
106
|
-
if (!legacyConfigName)
|
|
114
|
+
static validateResourceId(resourceId) {
|
|
115
|
+
if (!resourceId)
|
|
107
116
|
throw Error(this.LEGACY_CONFIG_NAME_ERROR_MESSAGE);
|
|
108
117
|
}
|
|
109
118
|
static handleLegacyConfig(configName, configSource, urlParams) {
|
|
@@ -143,7 +152,6 @@ export class ConfigStorage {
|
|
|
143
152
|
return `req_${source}_${name}_${resourceID}`;
|
|
144
153
|
}
|
|
145
154
|
}
|
|
146
|
-
ConfigStorage.CONFIG_NAME_ERROR_MESSAGE = "ConfigName precisa ser informado.";
|
|
147
155
|
ConfigStorage.LEGACY_CONFIG_NAME_ERROR_MESSAGE = "LegacyConfigName precisa ser informado.";
|
|
148
156
|
ConfigStorage.filterBarLegacyConfig = new Map();
|
|
149
157
|
ConfigStorage.formLegacyConfig = new Map();
|