@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,11 +1,13 @@
|
|
|
1
1
|
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
2
2
|
import { Host, h } from "@stencil/core";
|
|
3
3
|
import { DataBinder } from "@sankhyalabs/ezui/dist/collection/utils/form";
|
|
4
|
+
import { focusOnFieldSerch, SEARCH_FIELD_FULL_WIDTH } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
5
|
export class SnkFormView {
|
|
5
6
|
constructor() {
|
|
6
7
|
this._customEditors = new Map();
|
|
7
8
|
this._fieldProps = new Map();
|
|
8
9
|
this.levelPath = undefined;
|
|
10
|
+
this.fieldSearch = undefined;
|
|
9
11
|
this.label = undefined;
|
|
10
12
|
this.name = undefined;
|
|
11
13
|
this.fields = undefined;
|
|
@@ -38,11 +40,6 @@ export class SnkFormView {
|
|
|
38
40
|
newCustomEditors.set(fieldName, { customEditor, detailContext });
|
|
39
41
|
this._customEditors = newCustomEditors;
|
|
40
42
|
}
|
|
41
|
-
observePropsCustomEditor(newValue) {
|
|
42
|
-
for (const fieldName in newValue) {
|
|
43
|
-
this.addCustomEditor(fieldName, newValue[fieldName]);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
43
|
/**
|
|
47
44
|
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
48
45
|
*/
|
|
@@ -50,6 +47,21 @@ export class SnkFormView {
|
|
|
50
47
|
const props = this._fieldProps.get(fieldName) || [];
|
|
51
48
|
this._fieldProps.set(fieldName, [...props, { propName, value }]);
|
|
52
49
|
}
|
|
50
|
+
/**
|
|
51
|
+
* Exibe a busca de campos ancorada ao container de cabeçalho do snk-form-view.
|
|
52
|
+
*/
|
|
53
|
+
async showSearchField() {
|
|
54
|
+
if (!this._headerContainer || !this._ezPopoverFieldColumn)
|
|
55
|
+
return;
|
|
56
|
+
const container = this._headerContainer.getBoundingClientRect();
|
|
57
|
+
await focusOnFieldSerch(this.fieldSearch);
|
|
58
|
+
this._ezPopoverFieldColumn.showUnder(this._headerContainer, { horizontalGap: container.width - (SEARCH_FIELD_FULL_WIDTH), verticalGap: container.height * -1 });
|
|
59
|
+
}
|
|
60
|
+
observePropsCustomEditor(newValue) {
|
|
61
|
+
for (const fieldName in newValue) {
|
|
62
|
+
this.addCustomEditor(fieldName, newValue[fieldName]);
|
|
63
|
+
}
|
|
64
|
+
}
|
|
53
65
|
async observeFieldsProps(newValue) {
|
|
54
66
|
for (const field in newValue) {
|
|
55
67
|
const fieldProps = newValue[field];
|
|
@@ -156,13 +168,13 @@ export class SnkFormView {
|
|
|
156
168
|
}
|
|
157
169
|
}
|
|
158
170
|
render() {
|
|
159
|
-
return (h(Host, { class: "ez-box__container" }, h("div", { class: "summary-header ez-flex ez-size-width--full" }, h("div", { class: "ez-flex ez-text ez-title--primary ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
|
|
171
|
+
return (h(Host, { class: "ez-box__container" }, h("div", { class: "summary-header ez-flex ez-size-width--full", ref: ref => this._headerContainer = ref }, h("div", { class: "ez-flex ez-text ez-title--primary ez-text--bold ez-flex--justify-start ez-flex--align-items-center ez-col--sd-9" }, this.levelPath ? h("span", { class: "level-path" }, this.levelPath + " /") : undefined, this.label), h("div", { class: "ez-flex ez-flex--justify-end ez-col--sd-3" }, this.canFix &&
|
|
160
172
|
h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.fixed ? "un-pin" : "push-pin", "data-element-id": ElementIDUtils.getInternalIDInfo("toggleFixed_ezFormCard"), onClick: () => this.changeFix(), title: this.fixed ? "Desafixar" : "Fixar" }), this.canExpand &&
|
|
161
173
|
h("ez-button", { class: "ez-padding-left--medium", mode: "icon", size: "small", iconName: this.contracted ? "chevron-down" : "chevron-up", "data-element-id": ElementIDUtils.getInternalIDInfo("toggleExpand_ezFormCard"), onClick: () => this.changeContracted(), title: this.contracted ? "Expandir" : "Resumir" }))), h("slot", null), this.contracted
|
|
162
174
|
?
|
|
163
175
|
h("snk-form-summary", { summary: this.getCardSummary() })
|
|
164
176
|
:
|
|
165
|
-
h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail), onFormItemsReady: (event) => this.handleFormItemsReady(event) })));
|
|
177
|
+
h("ez-form-view", { ref: ref => this._formView = ref, fields: this.fields, onEzContentReady: evt => this.bindFields(evt.detail), onFormItemsReady: (event) => this.handleFormItemsReady(event) }), this.fieldSearch && h("ez-popover", { ref: elem => (this._ezPopoverFieldColumn = elem), overlayType: "none" }, this.fieldSearch)));
|
|
166
178
|
}
|
|
167
179
|
static get is() { return "snk-form-view"; }
|
|
168
180
|
static get encapsulation() { return "scoped"; }
|
|
@@ -195,6 +207,25 @@ export class SnkFormView {
|
|
|
195
207
|
"attribute": "level-path",
|
|
196
208
|
"reflect": false
|
|
197
209
|
},
|
|
210
|
+
"fieldSearch": {
|
|
211
|
+
"type": "unknown",
|
|
212
|
+
"mutable": false,
|
|
213
|
+
"complexType": {
|
|
214
|
+
"original": "HTMLEzSearchElement",
|
|
215
|
+
"resolved": "HTMLEzSearchElement",
|
|
216
|
+
"references": {
|
|
217
|
+
"HTMLEzSearchElement": {
|
|
218
|
+
"location": "global"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
},
|
|
222
|
+
"required": false,
|
|
223
|
+
"optional": false,
|
|
224
|
+
"docs": {
|
|
225
|
+
"tags": [],
|
|
226
|
+
"text": "Campo para o buscador de campos."
|
|
227
|
+
}
|
|
228
|
+
},
|
|
198
229
|
"label": {
|
|
199
230
|
"type": "string",
|
|
200
231
|
"mutable": false,
|
|
@@ -593,6 +624,22 @@ export class SnkFormView {
|
|
|
593
624
|
"text": "Altera/adiciona uma propriedade nos metadados do campo.",
|
|
594
625
|
"tags": []
|
|
595
626
|
}
|
|
627
|
+
},
|
|
628
|
+
"showSearchField": {
|
|
629
|
+
"complexType": {
|
|
630
|
+
"signature": "() => Promise<void>",
|
|
631
|
+
"parameters": [],
|
|
632
|
+
"references": {
|
|
633
|
+
"Promise": {
|
|
634
|
+
"location": "global"
|
|
635
|
+
}
|
|
636
|
+
},
|
|
637
|
+
"return": "Promise<void>"
|
|
638
|
+
},
|
|
639
|
+
"docs": {
|
|
640
|
+
"text": "Exibe a busca de campos ancorada ao container de cabe\u00E7alho do snk-form-view.",
|
|
641
|
+
"tags": []
|
|
642
|
+
}
|
|
596
643
|
}
|
|
597
644
|
};
|
|
598
645
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Action as DUAction, ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
|
|
1
|
+
import { Action as DUAction, ElementIDUtils, KeyboardManager, StringUtils, ObjectUtils } from '@sankhyalabs/core';
|
|
2
2
|
import { Fragment, h } from '@stencil/core';
|
|
3
3
|
import { SnkFormConfigManager } from '../../snk-form-config/SnkFormConfigManager';
|
|
4
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
@@ -7,7 +7,7 @@ import { TaskbarElement } from '../../snk-taskbar/elements/taskbar-elements';
|
|
|
7
7
|
import { VIEW_MODE } from '../../../lib/utils/constants';
|
|
8
8
|
import { PresentationMode } from '../../../lib';
|
|
9
9
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
10
|
-
import { buildFieldSearch,
|
|
10
|
+
import { buildFieldSearch, LABEL_SEARCH_FIELD, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
11
11
|
const FORM_NAME_PREFIX = "__FORM:";
|
|
12
12
|
export class SnkGuidesViewer {
|
|
13
13
|
constructor() {
|
|
@@ -39,6 +39,7 @@ export class SnkGuidesViewer {
|
|
|
39
39
|
this._customEditors = undefined;
|
|
40
40
|
this._customRenders = undefined;
|
|
41
41
|
this._fieldsProps = {};
|
|
42
|
+
this._mainForm = undefined;
|
|
42
43
|
}
|
|
43
44
|
observeDataUnit() {
|
|
44
45
|
this.loadGuides(true);
|
|
@@ -65,12 +66,6 @@ export class SnkGuidesViewer {
|
|
|
65
66
|
this._formEditorConfigManager = masterConfig ? this._configManager : this._currentDetail.formConfigManager;
|
|
66
67
|
this._formEditorDataUnit = masterConfig ? this.dataUnit : this._currentDetail.dataUnit;
|
|
67
68
|
}
|
|
68
|
-
/**
|
|
69
|
-
* Abre o localizador de campos
|
|
70
|
-
*/
|
|
71
|
-
async findField() {
|
|
72
|
-
await openFieldSearch(this._moreOptions, this._fieldSearch);
|
|
73
|
-
}
|
|
74
69
|
/**
|
|
75
70
|
* Registra um editor customizado para campos da grade e formulário
|
|
76
71
|
*/
|
|
@@ -315,7 +310,7 @@ export class SnkGuidesViewer {
|
|
|
315
310
|
const sheet = this._masterFormMetadata.getSheet(cardId);
|
|
316
311
|
if (sheet) {
|
|
317
312
|
const cardConfig = (_c = (_b = this.masterFormConfig) === null || _b === void 0 ? void 0 : _b.cardsState) === null || _c === void 0 ? void 0 : _c.get(cardId);
|
|
318
|
-
content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
|
|
313
|
+
content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
|
|
319
314
|
}
|
|
320
315
|
}
|
|
321
316
|
return content;
|
|
@@ -415,12 +410,10 @@ export class SnkGuidesViewer {
|
|
|
415
410
|
}
|
|
416
411
|
this._guideHasChanged = false;
|
|
417
412
|
}
|
|
418
|
-
getFieldsSearch(
|
|
413
|
+
getFieldsSearch(item) {
|
|
419
414
|
if (this._fieldSearch == undefined || this._hasToCreateFieldSearch) {
|
|
420
415
|
this._hasToCreateFieldSearch = false;
|
|
421
|
-
this.
|
|
422
|
-
actionButton.addEventListener("taskbarActionsButtonDisconnected", () => this._hasToCreateFieldSearch = true);
|
|
423
|
-
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option, actionButton));
|
|
416
|
+
this._fieldSearch = buildFieldSearch(item, ({ argument }) => this.fieldsOptionLoader(argument), (option) => this.onSelectField(option));
|
|
424
417
|
}
|
|
425
418
|
return this._fieldSearch;
|
|
426
419
|
}
|
|
@@ -428,7 +421,7 @@ export class SnkGuidesViewer {
|
|
|
428
421
|
return Promise.resolve(this._configManager.getFieldsList(argument)
|
|
429
422
|
.map(field => ({ value: field.name, label: field.label })));
|
|
430
423
|
}
|
|
431
|
-
onSelectField(option
|
|
424
|
+
onSelectField(option) {
|
|
432
425
|
if (option == undefined) {
|
|
433
426
|
return;
|
|
434
427
|
}
|
|
@@ -437,24 +430,28 @@ export class SnkGuidesViewer {
|
|
|
437
430
|
if (fieldGuideName !== this.selectedGuide.id) {
|
|
438
431
|
this.changeGuideHandler(fieldGuideName);
|
|
439
432
|
}
|
|
440
|
-
actionButton.hideActions();
|
|
441
433
|
}
|
|
442
434
|
getActionsList() {
|
|
435
|
+
var _a;
|
|
436
|
+
const hardList = [];
|
|
437
|
+
if (this.taskbarManager != undefined && this.taskbarManager.getMoreOptions != undefined) {
|
|
438
|
+
return hardList.concat((_a = this.taskbarManager.getMoreOptions(this.getTaskBarId(), this.configName, this.dataState, this.actionsList)) !== null && _a !== void 0 ? _a : []);
|
|
439
|
+
}
|
|
440
|
+
return hardList.concat(this.actionsList);
|
|
441
|
+
}
|
|
442
|
+
getSettingsListForm() {
|
|
443
443
|
const hardList = [{
|
|
444
|
-
value:
|
|
444
|
+
value: StringUtils.generateUUID(),
|
|
445
445
|
label: this.getMessage("snkCrud.findColumn"),
|
|
446
446
|
disableCloseOnSelect: true,
|
|
447
447
|
eagerInitialize: true,
|
|
448
|
-
itemBuilder: (
|
|
448
|
+
itemBuilder: (_, item) => this.getFieldsSearch(item)
|
|
449
449
|
}];
|
|
450
|
-
|
|
451
|
-
return hardList.concat(this.taskbarManager.getMoreOptions(this.getTaskBarId(), this.configName, this.dataState, this.actionsList));
|
|
452
|
-
}
|
|
453
|
-
return hardList.concat(this.actionsList);
|
|
450
|
+
return hardList;
|
|
454
451
|
}
|
|
455
452
|
buildTaskBar() {
|
|
456
453
|
var _a;
|
|
457
|
-
return h("div", { class: `snk-guides-viewer__header-taskbar ${this.presentationMode != PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.getActionsList(), messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? TaskbarElement.SAVE : TaskbarElement.INSERT, "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS", alignRigth: true }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" })));
|
|
454
|
+
return h("div", { class: `snk-guides-viewer__header-taskbar ${this.presentationMode != PresentationMode.SECONDARY ? 'ez-align--right' : 'ez-padding-bottom--medium'}` }, h("snk-taskbar", { key: "guideViewerTaskbar", "data-element-id": "guideViewer", configName: this.configName, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, actionsList: this.getActionsList(), actionsSettingsList: this.getSettingsListForm(), messagesBuilder: this.messagesBuilder, presentationMode: this.presentationMode, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? TaskbarElement.SAVE : TaskbarElement.INSERT, "data-taskbar-owner": "master", dataUnit: this.dataUnit, resourceID: this.resourceID, customSlotId: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS", alignRigth: true }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" })));
|
|
458
455
|
}
|
|
459
456
|
async dataUnitActionHandler(action) {
|
|
460
457
|
var _a;
|
|
@@ -530,11 +527,24 @@ export class SnkGuidesViewer {
|
|
|
530
527
|
}
|
|
531
528
|
componentDidLoad() {
|
|
532
529
|
this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
530
|
+
this.initKeyboardManager();
|
|
531
|
+
}
|
|
532
|
+
disconnectedCallback() {
|
|
533
|
+
var _a;
|
|
534
|
+
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
535
|
+
}
|
|
536
|
+
async initKeyboardManager() {
|
|
537
|
+
this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
|
|
538
|
+
this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
|
|
539
|
+
if (!this._mainForm)
|
|
540
|
+
return;
|
|
541
|
+
await this._mainForm.showSearchField();
|
|
542
|
+
}, { description: LABEL_SEARCH_FIELD, element: this._element });
|
|
533
543
|
}
|
|
534
544
|
render() {
|
|
535
545
|
var _a, _b;
|
|
536
546
|
if (this._formEditorConfigManager != undefined) {
|
|
537
|
-
return (h("snk-form-config", { ref: ref => this._container = ref, tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null
|
|
547
|
+
return (h("snk-form-config", { ref: ref => this._container = ref, tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null }));
|
|
538
548
|
}
|
|
539
549
|
if (!this.dataUnit || !this._configManager.isLoaded) {
|
|
540
550
|
return;
|
|
@@ -921,7 +931,8 @@ export class SnkGuidesViewer {
|
|
|
921
931
|
"_fieldToGetFocus": {},
|
|
922
932
|
"_customEditors": {},
|
|
923
933
|
"_customRenders": {},
|
|
924
|
-
"_fieldsProps": {}
|
|
934
|
+
"_fieldsProps": {},
|
|
935
|
+
"_mainForm": {}
|
|
925
936
|
};
|
|
926
937
|
}
|
|
927
938
|
static get events() {
|
|
@@ -1026,22 +1037,6 @@ export class SnkGuidesViewer {
|
|
|
1026
1037
|
}]
|
|
1027
1038
|
}
|
|
1028
1039
|
},
|
|
1029
|
-
"findField": {
|
|
1030
|
-
"complexType": {
|
|
1031
|
-
"signature": "() => Promise<void>",
|
|
1032
|
-
"parameters": [],
|
|
1033
|
-
"references": {
|
|
1034
|
-
"Promise": {
|
|
1035
|
-
"location": "global"
|
|
1036
|
-
}
|
|
1037
|
-
},
|
|
1038
|
-
"return": "Promise<void>"
|
|
1039
|
-
},
|
|
1040
|
-
"docs": {
|
|
1041
|
-
"text": "Abre o localizador de campos",
|
|
1042
|
-
"tags": []
|
|
1043
|
-
}
|
|
1044
|
-
},
|
|
1045
1040
|
"addCustomEditor": {
|
|
1046
1041
|
"complexType": {
|
|
1047
1042
|
"signature": "(fieldName: string, customEditor: ICustomEditor) => Promise<void>",
|
|
@@ -1137,6 +1132,7 @@ export class SnkGuidesViewer {
|
|
|
1137
1132
|
}
|
|
1138
1133
|
};
|
|
1139
1134
|
}
|
|
1135
|
+
static get elementRef() { return "_element"; }
|
|
1140
1136
|
static get watchers() {
|
|
1141
1137
|
return [{
|
|
1142
1138
|
"propName": "dataUnit",
|
|
@@ -3,9 +3,11 @@ import { ModalAction } from "@sankhyalabs/ezui/dist/collection/components/ez-mod
|
|
|
3
3
|
import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
4
4
|
import FilterType from '../types/filter-type.enum';
|
|
5
5
|
import FilterItemType from '../filter-item/filter-item-type.enum';
|
|
6
|
-
import { ObjectUtils } from '@sankhyalabs/core';
|
|
6
|
+
import { ApplicationContext, ObjectUtils } from '@sankhyalabs/core';
|
|
7
7
|
import { PersonalizedFilterUtils } from '../../snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils';
|
|
8
8
|
import { FilterNumberVariation } from '../filter-item/editors/enum/filterNumberVariation';
|
|
9
|
+
import { ActionDefaultFilter } from '../types/default-filters';
|
|
10
|
+
import { DefaultFilter } from '../../snk-personalized-filter/interfaces';
|
|
9
11
|
export class SnkFilterModal {
|
|
10
12
|
constructor() {
|
|
11
13
|
this.getMessage = undefined;
|
|
@@ -17,6 +19,7 @@ export class SnkFilterModal {
|
|
|
17
19
|
this.editPersonalizedFilter = undefined;
|
|
18
20
|
this.deletePersonalizedFilter = undefined;
|
|
19
21
|
this.filtersToDelete = [];
|
|
22
|
+
this.filterDefaultToDelete = undefined;
|
|
20
23
|
this.disablePersonalizedFilter = undefined;
|
|
21
24
|
}
|
|
22
25
|
/**
|
|
@@ -75,8 +78,12 @@ export class SnkFilterModal {
|
|
|
75
78
|
return copy;
|
|
76
79
|
});
|
|
77
80
|
}
|
|
81
|
+
hasChangeToSave() {
|
|
82
|
+
const hasChangesPersonalizedFilters = ObjectUtils.objectToString(this.filters) !== ObjectUtils.objectToString(this._originalFilterConfig);
|
|
83
|
+
return hasChangesPersonalizedFilters;
|
|
84
|
+
}
|
|
78
85
|
handleClose() {
|
|
79
|
-
const hasChangesToSave =
|
|
86
|
+
const hasChangesToSave = this.hasChangeToSave();
|
|
80
87
|
if (!hasChangesToSave) {
|
|
81
88
|
this.closeModal();
|
|
82
89
|
return;
|
|
@@ -87,7 +94,7 @@ export class SnkFilterModal {
|
|
|
87
94
|
});
|
|
88
95
|
}
|
|
89
96
|
handleApplyFilters() {
|
|
90
|
-
const filterPersonalized = this.filters.find(filter => filter.filterType === FilterType.CUSTOM_FILTER);
|
|
97
|
+
const filterPersonalized = this.filters.find(filter => filter.filterType === FilterType.CUSTOM_FILTER || filter.filterType === FilterType.DEFAULT_FILTER);
|
|
91
98
|
if (this.isValidCustomFilter(filterPersonalized)) {
|
|
92
99
|
this.applyFilters(this.filters);
|
|
93
100
|
}
|
|
@@ -97,6 +104,11 @@ export class SnkFilterModal {
|
|
|
97
104
|
});
|
|
98
105
|
this.filtersToDelete = [];
|
|
99
106
|
}
|
|
107
|
+
if (this.filterDefaultToDelete) {
|
|
108
|
+
this.deletePersonalizedFilter(this.filterDefaultToDelete, this.configName, true);
|
|
109
|
+
this._defaultFilter = undefined;
|
|
110
|
+
this.filterDefaultToDelete = undefined;
|
|
111
|
+
}
|
|
100
112
|
}
|
|
101
113
|
isValidCustomFilter(filterPersonalized) {
|
|
102
114
|
const isValid = PersonalizedFilterUtils.validateVariableValues(filterPersonalized);
|
|
@@ -223,6 +235,41 @@ export class SnkFilterModal {
|
|
|
223
235
|
const lines = this.mountFiltersLines(listItems);
|
|
224
236
|
return (h("ez-collapsible-box", { class: "snk-filter-modal__collapsible-box", headerSize: "medium", value: true, label: label }, !!appliedFilters && (h("ez-badge", { class: "ez-badge--primary-subtle", slot: "rightSlot", label: appliedFilters === null || appliedFilters === void 0 ? void 0 : appliedFilters.toString() })), h("div", { class: "ez-row snk-filter-modal__rendered-items" }, lines.map(this.renderFilterLine.bind(this))), shouldRenderFooter && (h("div", { class: "ez-flex ez-flex--justify-end grow" }, h("ez-button", { class: "ez-button--tertiary", size: "medium", label: "Limpar", onClick: () => isSingleItem ? this.handleClearSigleFilter(listItems[0]) : this.handleClearFilterList(listItems) })))));
|
|
225
237
|
}
|
|
238
|
+
handleDeleteFilter() {
|
|
239
|
+
this._application.confirm(this.getMessage('snkPersonalizedFilter.deleteConfirm.title'), this.getMessage('snkPersonalizedFilter.info.deleteDefaultFilterConfirm'), "alert-circle-inverted", "critical").then((actionConfirmed) => {
|
|
240
|
+
if (!actionConfirmed) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
this.filterDefaultToDelete = this._defaultFilter;
|
|
244
|
+
this.filters = this.filters.filter(filter => filter.id !== FilterType.DEFAULT_FILTER);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
handleActionSelectedDefaultFilter({ detail: action }) {
|
|
248
|
+
switch (action) {
|
|
249
|
+
case ActionDefaultFilter.CREATE:
|
|
250
|
+
this.addPersonalizedFilter(true);
|
|
251
|
+
break;
|
|
252
|
+
case ActionDefaultFilter.EDIT:
|
|
253
|
+
this.editPersonalizedFilter(this._defaultFilter.id, true);
|
|
254
|
+
break;
|
|
255
|
+
case ActionDefaultFilter.REMOVE:
|
|
256
|
+
this.handleDeleteFilter();
|
|
257
|
+
break;
|
|
258
|
+
default:
|
|
259
|
+
break;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
getCustomFilter(filters) {
|
|
263
|
+
const customFilters = filters.filter((filter) => filter.filterType === FilterType.CUSTOM_FILTER);
|
|
264
|
+
return customFilters;
|
|
265
|
+
}
|
|
266
|
+
getDefaultFilter(filters) {
|
|
267
|
+
const defaultFilter = filters.find((item) => item.id === DefaultFilter.id);
|
|
268
|
+
return defaultFilter;
|
|
269
|
+
}
|
|
270
|
+
componentWillLoad() {
|
|
271
|
+
this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
|
272
|
+
}
|
|
226
273
|
componentWillRender() {
|
|
227
274
|
this._modalTitle = this.getCustomMessage('title');
|
|
228
275
|
this._okButtonLabel = this.getCustomMessage('okButtonLabel');
|
|
@@ -233,10 +280,11 @@ export class SnkFilterModal {
|
|
|
233
280
|
this._originalFilterConfig = this.filters;
|
|
234
281
|
}
|
|
235
282
|
render() {
|
|
236
|
-
|
|
283
|
+
this._defaultFilter = this.getDefaultFilter(this.filters);
|
|
284
|
+
const customFilters = this.getCustomFilter(this.filters);
|
|
237
285
|
const quickFilters = this.filters.filter(filter => filter.filterType === FilterType.QUICK_FILTER);
|
|
238
286
|
const otherFilters = this.filters.filter(filter => filter.filterType === FilterType.OTHER_FILTERS);
|
|
239
|
-
return (h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true)))));
|
|
287
|
+
return (h("ez-modal-container", { class: "snk-filter-modal__container", modalTitle: this._modalTitle, cancelButtonLabel: this._cancelButtonLabel, okButtonLabel: this._okButtonLabel, onEzModalAction: this.modalActionListener.bind(this) }, h("div", { class: "snk-filter-modal__content ez-col--sd-12" }, h("snk-default-filter", { getMessage: this.getCustomMessage.bind(this), hasDefaultFilter: !!this._defaultFilter, onActionSelected: this.handleActionSelectedDefaultFilter.bind(this) }), !this.disablePersonalizedFilter && this.renderCollapsibleFilterBox(this.getCustomMessage('customFilters'), customFilters, false, false), this.renderCollapsibleFilterBox(this.getCustomMessage('quickFilters'), quickFilters, false), otherFilters.map(filter => this.renderCollapsibleFilterBox(filter.label, [filter], true)))));
|
|
240
288
|
}
|
|
241
289
|
static get is() { return "snk-filter-modal"; }
|
|
242
290
|
static get originalStyleUrls() {
|
|
@@ -348,8 +396,8 @@ export class SnkFilterModal {
|
|
|
348
396
|
"type": "unknown",
|
|
349
397
|
"mutable": false,
|
|
350
398
|
"complexType": {
|
|
351
|
-
"original": "() => void",
|
|
352
|
-
"resolved": "() => void",
|
|
399
|
+
"original": "(isDefault?: boolean) => void",
|
|
400
|
+
"resolved": "(isDefault?: boolean) => void",
|
|
353
401
|
"references": {}
|
|
354
402
|
},
|
|
355
403
|
"required": false,
|
|
@@ -363,8 +411,8 @@ export class SnkFilterModal {
|
|
|
363
411
|
"type": "unknown",
|
|
364
412
|
"mutable": false,
|
|
365
413
|
"complexType": {
|
|
366
|
-
"original": "(id:string) => void",
|
|
367
|
-
"resolved": "(id: string) => void",
|
|
414
|
+
"original": "(id:string, isDefault?: boolean) => void",
|
|
415
|
+
"resolved": "(id: string, isDefault?: boolean) => void",
|
|
368
416
|
"references": {}
|
|
369
417
|
},
|
|
370
418
|
"required": false,
|
|
@@ -378,8 +426,8 @@ export class SnkFilterModal {
|
|
|
378
426
|
"type": "unknown",
|
|
379
427
|
"mutable": false,
|
|
380
428
|
"complexType": {
|
|
381
|
-
"original": "(filter: IPersonalizedFilter, configName: string) => void",
|
|
382
|
-
"resolved": "(filter: IPersonalizedFilter, configName: string) => void",
|
|
429
|
+
"original": "(filter: IPersonalizedFilter, configName: string, isDefault?: boolean) => void",
|
|
430
|
+
"resolved": "(filter: IPersonalizedFilter, configName: string, isDefault?: boolean) => void",
|
|
383
431
|
"references": {
|
|
384
432
|
"IPersonalizedFilter": {
|
|
385
433
|
"location": "import",
|
|
@@ -396,7 +444,7 @@ export class SnkFilterModal {
|
|
|
396
444
|
},
|
|
397
445
|
"filtersToDelete": {
|
|
398
446
|
"type": "unknown",
|
|
399
|
-
"mutable":
|
|
447
|
+
"mutable": true,
|
|
400
448
|
"complexType": {
|
|
401
449
|
"original": "IPersonalizedFilter[]",
|
|
402
450
|
"resolved": "IPersonalizedFilter[]",
|
|
@@ -415,6 +463,26 @@ export class SnkFilterModal {
|
|
|
415
463
|
},
|
|
416
464
|
"defaultValue": "[]"
|
|
417
465
|
},
|
|
466
|
+
"filterDefaultToDelete": {
|
|
467
|
+
"type": "unknown",
|
|
468
|
+
"mutable": true,
|
|
469
|
+
"complexType": {
|
|
470
|
+
"original": "SnkFilterItemConfig",
|
|
471
|
+
"resolved": "SnkFilterItemConfig",
|
|
472
|
+
"references": {
|
|
473
|
+
"SnkFilterItemConfig": {
|
|
474
|
+
"location": "import",
|
|
475
|
+
"path": "../filter-item/snk-filter-item"
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
},
|
|
479
|
+
"required": false,
|
|
480
|
+
"optional": false,
|
|
481
|
+
"docs": {
|
|
482
|
+
"tags": [],
|
|
483
|
+
"text": "Guarda o filtro a ser deletado no Apply do modal"
|
|
484
|
+
}
|
|
485
|
+
},
|
|
418
486
|
"disablePersonalizedFilter": {
|
|
419
487
|
"type": "boolean",
|
|
420
488
|
"mutable": false,
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: flex-end;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.default_container {
|
|
7
|
+
border: none;
|
|
8
|
+
background: none;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
gap: var(--space--3xs, 4px);
|
|
12
|
+
font-family: var(--font-pattern);
|
|
13
|
+
color: var(--title--primary, #2b3a54);
|
|
14
|
+
font-size: var(--text--medium, 14px);
|
|
15
|
+
padding: 0;
|
|
16
|
+
outline: none;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.default_container ez-icon {
|
|
20
|
+
cursor: pointer;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.default_container ez-icon:hover {
|
|
24
|
+
color: var(--color--primary-600);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.new_filter {
|
|
28
|
+
cursor: pointer;
|
|
29
|
+
margin: 0 var(--space--3xs, 4px);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.new_filter:hover {
|
|
33
|
+
color: var(--color--primary-600);
|
|
34
|
+
}
|
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
|
2
|
+
import { ActionDefaultFilter } from '../../../types/default-filters';
|
|
3
|
+
export class SnkDefaultFilter {
|
|
4
|
+
constructor() {
|
|
5
|
+
this.OFFSET_HEIGHT = 5;
|
|
6
|
+
this.getMessage = undefined;
|
|
7
|
+
this.hasDefaultFilter = false;
|
|
8
|
+
this._opened = false;
|
|
9
|
+
}
|
|
10
|
+
repositionDropDown() {
|
|
11
|
+
if (!this._refIcon || !this._refDropdown) {
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
const boundingIcon = this._refIcon.getBoundingClientRect();
|
|
15
|
+
const boundingDropDown = this._refDropdown.getBoundingClientRect();
|
|
16
|
+
this._refDropdown.style.top = (boundingIcon.y + boundingIcon.height + this.OFFSET_HEIGHT) + "px";
|
|
17
|
+
this._refDropdown.style.left = ((boundingIcon.x + (boundingIcon.width / 2)) - boundingDropDown.width) + "px";
|
|
18
|
+
}
|
|
19
|
+
toggleDropdown() {
|
|
20
|
+
this._opened = !this._opened;
|
|
21
|
+
}
|
|
22
|
+
closeDropdown(evt) {
|
|
23
|
+
const target = evt === null || evt === void 0 ? void 0 : evt.target;
|
|
24
|
+
if (!target) {
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (!target.closest("#dropdown-parent-demo")) {
|
|
28
|
+
this._opened = false;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
buildItems() {
|
|
32
|
+
return ([
|
|
33
|
+
{
|
|
34
|
+
id: ActionDefaultFilter.EDIT,
|
|
35
|
+
label: this.getMessage('defaultFilter.edit'),
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: ActionDefaultFilter.REMOVE,
|
|
39
|
+
label: this.getMessage('defaultFilter.remove'),
|
|
40
|
+
},
|
|
41
|
+
]);
|
|
42
|
+
}
|
|
43
|
+
onValueSelected({ detail: item }) {
|
|
44
|
+
this._opened = false;
|
|
45
|
+
this.actionSelected.emit(item.id);
|
|
46
|
+
}
|
|
47
|
+
openCreateNewFilter() {
|
|
48
|
+
this.actionSelected.emit(ActionDefaultFilter.CREATE);
|
|
49
|
+
}
|
|
50
|
+
componentDidRender() {
|
|
51
|
+
this.repositionDropDown();
|
|
52
|
+
}
|
|
53
|
+
componentWillLoad() {
|
|
54
|
+
this._items = this.buildItems();
|
|
55
|
+
document.removeEventListener("scroll", this.repositionDropDown.bind(this));
|
|
56
|
+
document.addEventListener("scroll", this.repositionDropDown.bind(this));
|
|
57
|
+
}
|
|
58
|
+
render() {
|
|
59
|
+
if (!this.hasDefaultFilter) {
|
|
60
|
+
return (h(Host, null, h("button", { class: "default_container new_filter", onClick: this.openCreateNewFilter.bind(this) }, h("span", null, this.getMessage('defaultFilter.create')))));
|
|
61
|
+
}
|
|
62
|
+
return (h(Host, null, h("button", { class: "default_container", onClick: this.toggleDropdown.bind(this) }, h("span", null, this.getMessage('defaultFilter.title')), h("ez-icon", { ref: (ref) => this._refIcon = ref, iconName: 'dots-vertical' })), this._opened &&
|
|
63
|
+
h("ez-dropdown", { ref: (ref) => this._refDropdown = ref, items: this._items, onEzClick: this.onValueSelected.bind(this), onEzOutsideClick: this.closeDropdown.bind(this) })));
|
|
64
|
+
}
|
|
65
|
+
static get is() { return "snk-default-filter"; }
|
|
66
|
+
static get encapsulation() { return "scoped"; }
|
|
67
|
+
static get originalStyleUrls() {
|
|
68
|
+
return {
|
|
69
|
+
"$": ["snk-default-filter.css"]
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
static get styleUrls() {
|
|
73
|
+
return {
|
|
74
|
+
"$": ["snk-default-filter.css"]
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
static get properties() {
|
|
78
|
+
return {
|
|
79
|
+
"getMessage": {
|
|
80
|
+
"type": "unknown",
|
|
81
|
+
"mutable": false,
|
|
82
|
+
"complexType": {
|
|
83
|
+
"original": "(key: string, props?: any) => string",
|
|
84
|
+
"resolved": "(key: string, props?: any) => string",
|
|
85
|
+
"references": {}
|
|
86
|
+
},
|
|
87
|
+
"required": false,
|
|
88
|
+
"optional": false,
|
|
89
|
+
"docs": {
|
|
90
|
+
"tags": [],
|
|
91
|
+
"text": "Usado pra flexibilizar os verbetes e mensagens de acordo com o SnkMessageBuilder."
|
|
92
|
+
}
|
|
93
|
+
},
|
|
94
|
+
"hasDefaultFilter": {
|
|
95
|
+
"type": "boolean",
|
|
96
|
+
"mutable": false,
|
|
97
|
+
"complexType": {
|
|
98
|
+
"original": "boolean",
|
|
99
|
+
"resolved": "boolean",
|
|
100
|
+
"references": {}
|
|
101
|
+
},
|
|
102
|
+
"required": false,
|
|
103
|
+
"optional": false,
|
|
104
|
+
"docs": {
|
|
105
|
+
"tags": [],
|
|
106
|
+
"text": "Informa se j\u00E1 existe um filtro padr\u00E3o criado."
|
|
107
|
+
},
|
|
108
|
+
"attribute": "has-default-filter",
|
|
109
|
+
"reflect": false,
|
|
110
|
+
"defaultValue": "false"
|
|
111
|
+
}
|
|
112
|
+
};
|
|
113
|
+
}
|
|
114
|
+
static get states() {
|
|
115
|
+
return {
|
|
116
|
+
"_opened": {}
|
|
117
|
+
};
|
|
118
|
+
}
|
|
119
|
+
static get events() {
|
|
120
|
+
return [{
|
|
121
|
+
"method": "actionSelected",
|
|
122
|
+
"name": "actionSelected",
|
|
123
|
+
"bubbles": true,
|
|
124
|
+
"cancelable": true,
|
|
125
|
+
"composed": true,
|
|
126
|
+
"docs": {
|
|
127
|
+
"tags": [],
|
|
128
|
+
"text": ""
|
|
129
|
+
},
|
|
130
|
+
"complexType": {
|
|
131
|
+
"original": "ActionDefaultFilter",
|
|
132
|
+
"resolved": "ActionDefaultFilter.CREATE | ActionDefaultFilter.EDIT | ActionDefaultFilter.REMOVE",
|
|
133
|
+
"references": {
|
|
134
|
+
"ActionDefaultFilter": {
|
|
135
|
+
"location": "import",
|
|
136
|
+
"path": "../../../types/default-filters"
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
}];
|
|
141
|
+
}
|
|
142
|
+
}
|