@sankhyalabs/sankhyablocks 8.16.0-ms.11 → 8.16.0-ms.12
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-fe52f7cf.js → ClientSideExporterProvider-0ce2bcd9.js} +23 -28
- package/dist/cjs/{ConfigStorage-6b633b10.js → ConfigStorage-48ba265b.js} +47 -19
- package/dist/cjs/{DataFetcher-875371e9.js → DataFetcher-1afdb18e.js} +14 -2
- package/dist/cjs/FormConfigHelper-c664dbae.js +260 -0
- package/dist/cjs/{pesquisa-fetcher-30cab386.js → ISave-c76e2c51.js} +35 -3
- package/dist/cjs/{PersonalizedFilterUtils-0184ffbb.js → PersonalizedFilterUtils-7259cf65.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-d680be08.js → SnkFormConfigManager-aa4631bd.js} +4 -5
- package/dist/cjs/{SnkMessageBuilder-bae64d0d.js → SnkMessageBuilder-e3b7850b.js} +63 -30
- package/dist/cjs/{auth-fetcher-24ba4135.js → auth-fetcher-1687ac0a.js} +1 -1
- package/dist/cjs/config-header.cjs.entry.js +79 -0
- package/dist/cjs/configs-button.cjs.entry.js +61 -0
- package/dist/cjs/{constants-241934b3.js → constants-6d82e405.js} +9 -38
- package/dist/cjs/{dataunit-fetcher-b95768e8.js → dataunit-fetcher-a723f0dc.js} +12 -8
- 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/{form-config-fetcher-e0a512c3.js → form-config-fetcher-40d3f752.js} +15 -1
- 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 +7 -8
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/{snk-actions-button_5.cjs.entry.js → snk-actions-button_8.cjs.entry.js} +132 -10
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +185 -24
- package/dist/cjs/snk-attach.cjs.entry.js +9 -10
- package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +10 -3
- package/dist/cjs/snk-crud.cjs.entry.js +48 -76
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +8 -9
- package/dist/cjs/{snk-data-unit-33937ffe.js → snk-data-unit-3684c96e.js} +227 -13
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -5
- package/dist/cjs/snk-default-filter.cjs.entry.js +77 -0
- package/dist/cjs/snk-detail-view.cjs.entry.js +68 -16
- package/dist/cjs/snk-entity-list.cjs.entry.js +3 -8
- 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 +85 -31
- 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 +5 -5
- 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 +19 -6
- 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 +52 -39
- package/dist/cjs/{snk-guides-viewer-b6002ea7.js → snk-guides-viewer-edc0a00a.js} +139 -73
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +13 -13
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +55 -20
- package/dist/cjs/snk-pesquisa.cjs.entry.js +14 -15
- 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 +148 -114
- package/dist/cjs/snk-taskbar.cjs.entry.js +10 -5
- package/dist/cjs/sortable.esm-9a110bb7.js +2668 -0
- package/dist/cjs/{taskbar-elements-ebddaef4.js → taskbar-elements-3b74cd21.js} +13 -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 +11 -14
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +5 -2
- package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js +107 -0
- package/dist/collection/components/snk-application/snk-application.js +133 -13
- package/dist/collection/components/snk-configurator/snk-configurator.js +26 -1
- package/dist/collection/components/snk-crud/snk-crud.js +76 -67
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +10 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +82 -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 +152 -82
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +15 -19
- package/dist/collection/components/snk-data-unit/MultipleUpdateHelper.js +128 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +107 -12
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +2 -7
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +18 -5
- 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.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/filtercolumn/SnkMultiSelectionListDataSource.js +2 -2
- package/dist/collection/components/snk-grid/snk-grid.js +93 -42
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +2 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css +3 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +73 -0
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css +78 -0
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +57 -0
- 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-simple-crud/snk-simple-crud.js +177 -104
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.css +13 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button.js +1 -1
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +11 -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 +30 -4
- package/dist/collection/lib/configs/ConfigStorage.js +16 -8
- package/dist/collection/lib/configs/LayoutFormConfig.js +25 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +14 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +5 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +6 -5
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +14 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +29 -9
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +26 -2
- package/dist/collection/lib/message/SnkMessageBuilder.js +1 -0
- package/dist/collection/lib/message/resources/snk-crud.msg.js +1 -1
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +28 -23
- 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/message/resources/snk-taskbar.msg.js +1 -0
- package/dist/collection/lib/utils/constants.js +8 -1
- package/dist/components/ConfigStorage.js +45 -17
- package/dist/components/ContinuousInsertUtils.js +19 -54
- package/dist/components/DataFetcher.js +14 -2
- package/dist/components/ISave.js +26 -2
- package/dist/components/PersonalizedFilterUtils.js +6 -1
- package/dist/components/SnkFormConfigManager.js +2 -3
- package/dist/components/SnkMessageBuilder.js +63 -30
- 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 +9 -34
- package/dist/components/dataunit-fetcher.js +11 -7
- 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/form-config-fetcher.js +14 -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 +11 -3
- package/dist/components/index.js +11 -3
- package/dist/components/snk-application2.js +182 -16
- package/dist/components/snk-attach2.js +42 -24
- package/dist/components/snk-configurator2.js +22 -2
- package/dist/components/snk-crud.js +145 -128
- package/dist/components/snk-data-unit2.js +225 -11
- 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 +331 -152
- package/dist/components/snk-entity-list.js +2 -7
- 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-filter-search.js +18 -5
- 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-grid-config2.js +2 -0
- package/dist/components/snk-grid2.js +85 -63
- package/dist/components/snk-layout-form-config.d.ts +11 -0
- package/dist/components/snk-layout-form-config.js +6 -0
- package/dist/components/snk-layout-form-config2.js +73 -0
- package/dist/components/snk-personalized-filter2.js +50 -14
- package/dist/components/snk-simple-crud2.js +180 -124
- package/dist/components/snk-taskbar2.js +33 -10
- package/dist/components/snk-view-representation.d.ts +11 -0
- package/dist/components/snk-view-representation.js +6 -0
- package/dist/components/snk-view-representation2.js +41 -0
- package/dist/components/sortable.esm.js +2666 -0
- package/dist/components/taskbar-actions-button2.js +2 -2
- 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-bd24a4b3.js → ClientSideExporterProvider-3ed744fd.js} +23 -28
- package/dist/esm/{ConfigStorage-e5c1f4c0.js → ConfigStorage-79b9e180.js} +47 -19
- package/dist/esm/{DataFetcher-ecf5f903.js → DataFetcher-88e56266.js} +14 -2
- package/dist/esm/FormConfigHelper-49fe72ca.js +248 -0
- package/dist/esm/{pesquisa-fetcher-e26c3295.js → ISave-5efafc97.js} +36 -4
- package/dist/esm/{PersonalizedFilterUtils-e2b38ef7.js → PersonalizedFilterUtils-2db38ff2.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-1efd102b.js → SnkFormConfigManager-b4b93298.js} +4 -5
- package/dist/esm/{SnkMessageBuilder-6fff4a4c.js → SnkMessageBuilder-9c269caf.js} +63 -30
- package/dist/esm/{auth-fetcher-9987c66e.js → auth-fetcher-3510520e.js} +1 -1
- package/dist/esm/config-header.entry.js +75 -0
- package/dist/esm/configs-button.entry.js +57 -0
- package/dist/esm/{constants-75abb876.js → constants-7b422de0.js} +9 -34
- package/dist/esm/{dataunit-fetcher-ed6e65ef.js → dataunit-fetcher-0e025732.js} +12 -8
- 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/{form-config-fetcher-34becd23.js → form-config-fetcher-fa208a6c.js} +15 -1
- 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 +6 -7
- package/dist/esm/sankhyablocks.js +3 -3
- package/dist/esm/{snk-actions-button_5.entry.js → snk-actions-button_8.entry.js} +131 -12
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +185 -24
- package/dist/esm/snk-attach.entry.js +9 -10
- package/dist/esm/snk-client-confirm.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +10 -3
- package/dist/esm/snk-crud.entry.js +49 -77
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +8 -9
- package/dist/esm/{snk-data-unit-6258b8ae.js → snk-data-unit-027bca56.js} +227 -13
- package/dist/esm/snk-data-unit.entry.js +5 -5
- package/dist/esm/snk-default-filter.entry.js +73 -0
- package/dist/esm/snk-detail-view.entry.js +69 -17
- package/dist/esm/snk-entity-list.entry.js +3 -8
- 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 +85 -31
- 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 +5 -5
- 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 +19 -6
- 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 +50 -37
- package/dist/esm/{snk-guides-viewer-39fae8d5.js → snk-guides-viewer-32f3d3ab.js} +140 -74
- package/dist/esm/snk-guides-viewer.entry.js +13 -13
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +55 -20
- package/dist/esm/snk-pesquisa.entry.js +6 -7
- 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 +150 -116
- package/dist/esm/snk-taskbar.entry.js +10 -5
- package/dist/esm/sortable.esm-842f85a3.js +2666 -0
- package/dist/esm/{taskbar-elements-ed51e143.js → taskbar-elements-171476d4.js} +13 -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-09e60995.entry.js +11 -0
- package/dist/sankhyablocks/p-0cb295c1.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-2bde486e.js +1 -0
- 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-3a48bff3.entry.js +1 -0
- 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-601b252b.js +26 -0
- package/dist/sankhyablocks/p-60dd1d27.entry.js +1 -0
- package/dist/sankhyablocks/p-6416975c.js +56 -0
- package/dist/sankhyablocks/p-65c5d430.entry.js +1 -0
- 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-6dd38d7b.js +6 -0
- package/dist/sankhyablocks/p-71a05822.entry.js +1 -0
- package/dist/sankhyablocks/p-72c8c847.entry.js +1 -0
- package/dist/sankhyablocks/{p-a77bdadc.js → p-73285a8a.js} +1 -1
- package/dist/sankhyablocks/{p-ac8d1cd6.entry.js → p-7345782c.entry.js} +1 -1
- package/dist/sankhyablocks/p-763b04fa.js +1 -0
- package/dist/sankhyablocks/p-7993b2e3.js +60 -0
- 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-9ad3557c.entry.js +1 -0
- package/dist/sankhyablocks/p-9fd87bfd.entry.js +1 -0
- package/dist/sankhyablocks/p-a06bf7b9.entry.js +1 -0
- package/dist/sankhyablocks/{p-5e9fbd76.js → p-a349689a.js} +1 -1
- package/dist/sankhyablocks/p-a5bb2f93.entry.js +1 -0
- package/dist/sankhyablocks/{p-3ce68be5.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-d3b9b377.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-d9491f6f.entry.js +1 -0
- package/dist/sankhyablocks/{p-5f157b09.entry.js → p-dff65083.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2746d606.entry.js → p-e3521eae.entry.js} +1 -1
- package/dist/sankhyablocks/p-e7cccc45.entry.js +1 -0
- package/dist/sankhyablocks/{p-33718dfc.entry.js → p-e824d565.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5a7e18f4.js → p-fbba7e3d.js} +1 -1
- 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-application/search-strategy/exec-prepared-search-plus.d.ts +5 -0
- package/dist/types/components/snk-application/snk-application.d.ts +17 -2
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +6 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +9 -3
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +17 -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 +16 -7
- package/dist/types/components/snk-data-unit/MultipleUpdateHelper.d.ts +9 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +17 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +5 -3
- 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/filtercolumn/SnkMultiSelectionListDataSource.d.ts +2 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +16 -5
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +1 -0
- package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +15 -0
- package/dist/types/components/snk-layout-form-config/snk-view-representation/snk-view-representation.d.ts +10 -0
- 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-simple-crud/snk-simple-crud.d.ts +24 -12
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +2 -1
- 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 +6 -0
- package/dist/types/components.d.ts +502 -212
- package/dist/types/lib/configs/ConfigStorage.d.ts +4 -2
- package/dist/types/lib/configs/LayoutFormConfig.d.ts +11 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -1
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +8 -4
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +4 -1
- package/dist/types/lib/message/SnkMessageBuilder.d.ts +2 -1
- package/dist/types/lib/utils/constants.d.ts +7 -0
- package/package.json +4 -2
- package/react/components.d.ts +11 -3
- package/react/components.js +11 -3
- package/react/components.js.map +1 -1
- package/dist/cjs/ISave-e91b70a7.js +0 -9
- package/dist/cjs/Sortable-fb1c4cbb.js +0 -2853
- package/dist/cjs/snk-config-options_3.cjs.entry.js +0 -1388
- 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 -344
- 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 -255
- 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/ISave-d8c8bc59.js +0 -9
- package/dist/esm/Sortable-83960219.js +0 -2851
- package/dist/esm/snk-config-options_3.entry.js +0 -1382
- package/dist/esm/snk-field-config.entry.js +0 -56
- package/dist/esm/snk-tab-config.entry.js +0 -328
- package/dist/sankhyablocks/p-11afea24.entry.js +0 -1
- package/dist/sankhyablocks/p-17425c72.js +0 -1
- package/dist/sankhyablocks/p-18389343.entry.js +0 -1
- package/dist/sankhyablocks/p-1d19a5b0.js +0 -1
- package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
- package/dist/sankhyablocks/p-21749402.js +0 -1
- package/dist/sankhyablocks/p-22ddc147.js +0 -26
- package/dist/sankhyablocks/p-23736d75.js +0 -1
- package/dist/sankhyablocks/p-23cd6abf.entry.js +0 -1
- package/dist/sankhyablocks/p-240ac47f.entry.js +0 -1
- package/dist/sankhyablocks/p-2953c481.entry.js +0 -1
- package/dist/sankhyablocks/p-3ab6df3d.entry.js +0 -1
- package/dist/sankhyablocks/p-3fcb90d6.js +0 -56
- package/dist/sankhyablocks/p-43769aa9.js +0 -1
- package/dist/sankhyablocks/p-4b01cbad.entry.js +0 -11
- package/dist/sankhyablocks/p-4c9adf1c.entry.js +0 -1
- package/dist/sankhyablocks/p-517efc93.js +0 -1
- package/dist/sankhyablocks/p-6b898a51.entry.js +0 -1
- package/dist/sankhyablocks/p-77168ab4.entry.js +0 -1
- package/dist/sankhyablocks/p-7e0a0aae.js +0 -60
- package/dist/sankhyablocks/p-91708c3d.entry.js +0 -1
- package/dist/sankhyablocks/p-933c0c0b.js +0 -1
- package/dist/sankhyablocks/p-9523fc40.entry.js +0 -1
- package/dist/sankhyablocks/p-9887a437.entry.js +0 -1
- package/dist/sankhyablocks/p-9ebc3f3b.entry.js +0 -1
- package/dist/sankhyablocks/p-a5bdcb3f.entry.js +0 -1
- package/dist/sankhyablocks/p-a61bbe18.entry.js +0 -1
- package/dist/sankhyablocks/p-abd9681c.js +0 -1
- package/dist/sankhyablocks/p-bfdf92e9.entry.js +0 -1
- package/dist/sankhyablocks/p-c8622597.entry.js +0 -1
- package/dist/sankhyablocks/p-cb1e77e0.entry.js +0 -1
- package/dist/sankhyablocks/p-d9804798.js +0 -1
- package/dist/sankhyablocks/p-e289826a.js +0 -1
- package/dist/sankhyablocks/p-e51c52cf.entry.js +0 -1
- package/dist/sankhyablocks/p-e66bcb5c.entry.js +0 -1
- package/dist/sankhyablocks/p-ef076eea.js +0 -6
- 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
@@ -0,0 +1,182 @@
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
|
+
import { S as Sortable } from './sortable.esm.js';
|
3
|
+
import { ObjectUtils, ArrayUtils } from '@sankhyalabs/core';
|
4
|
+
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
5
|
+
import { T as TAB_NAMES } from './constants.js';
|
6
|
+
|
7
|
+
const guidesConfiguratorCss = ".ezSidebarNavigator.sc-guides-configurator{--ez-sidebar-navigator--height:calc(100vh - 118px)}.navigator-container.sc-guides-configurator{height:calc(100vh - 175px);display:flex;flex-direction:column;justify-content:space-between}.collapsible-container.sc-guides-configurator{display:flex;flex-direction:column;gap:12px;flex-grow:1;max-height:calc(100vh - 240px);overflow:auto}.collapsible-item.sc-guides-configurator{padding:6px;border-radius:6px;border:1px solid #dce0e8}.add-button-container.sc-guides-configurator{display:flex;align-items:center;border-top:1px solid #dce0e8;padding-top:22px;gap:6px;cursor:pointer;justify-content:center}.add-button-container.sc-guides-configurator span.sc-guides-configurator{display:block}.guide-list.sc-guides-configurator{display:flex;flex-direction:column;width:100%;min-height:10px}.guide-list.hidden-empty-content.sc-guides-configurator::before{content:\"Nenhuma guia oculta\";display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.guide-list.visible-empty-content.sc-guides-configurator::before{content:\"Nenhuma guia visível\";display:block;font-size:16px;font-weight:400;color:#AFB6C0;margin:auto;padding:8px}.item-label.sc-guides-configurator{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex-grow:1}.guide-item.sc-guides-configurator{margin:0 3px;display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:5px 10px;border-radius:6px;transition:all 0.2s ease-in-out;height:32px}.guide-item.sc-guides-configurator .actions.sc-guides-configurator{display:flex;gap:8px;transition:0.2s ease-in-out;visibility:hidden;opacity:0}.guide-item.sc-guides-configurator:hover .actions.sc-guides-configurator{visibility:visible;opacity:1}ez-button.sc-guides-configurator{width:24px;align-items:center;justify-content:center;display:flex}.ghost.sc-guides-configurator{opacity:.5;background:#e2eaf4}.main-guide.sc-guides-configurator{padding:12px;margin:12px 0;border:1px solid #dce0e8;border-radius:6px;transition:all 0.2s ease-in-out}.guide-item.selected.sc-guides-configurator,.main-guide.selected.sc-guides-configurator{background:#E2F4EF}.guide-item.sc-guides-configurator:hover,.main-guide.sc-guides-configurator:hover{background:#f5fcfa}";
|
8
|
+
|
9
|
+
const GuidesConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
10
|
+
constructor() {
|
11
|
+
super();
|
12
|
+
this.__registerHost();
|
13
|
+
this.guideSelected = createEvent(this, "guideSelected", 7);
|
14
|
+
this.guideListChanged = createEvent(this, "guideListChanged", 7);
|
15
|
+
this.guideDeleted = createEvent(this, "guideDeleted", 7);
|
16
|
+
this.createNewGuide = createEvent(this, "createNewGuide", 7);
|
17
|
+
this.ID_VISIBLE_GUIDES = 'container-visible-guides';
|
18
|
+
this.ID_HIDDEN_GUIDES = 'container-hidden-guides';
|
19
|
+
this.sortLogic = (a, b) => {
|
20
|
+
var _a, _b;
|
21
|
+
const orderA = (_a = a.order) !== null && _a !== void 0 ? _a : Number.MAX_VALUE;
|
22
|
+
const orderB = (_b = b.order) !== null && _b !== void 0 ? _b : Number.MAX_VALUE;
|
23
|
+
return orderA - orderB;
|
24
|
+
};
|
25
|
+
this.mainGuide = undefined;
|
26
|
+
this.filterTerm = '';
|
27
|
+
this.visibleGuides = [];
|
28
|
+
this.hiddenGuides = [];
|
29
|
+
this.guidesList = [];
|
30
|
+
this.selectedGuide = undefined;
|
31
|
+
this.messagesBuilder = undefined;
|
32
|
+
}
|
33
|
+
observeVisibleGuides(newGuides) {
|
34
|
+
this.initGuidesConfig(newGuides);
|
35
|
+
}
|
36
|
+
observeSelectedGuide(newGuide) {
|
37
|
+
this.guideSelected.emit(newGuide);
|
38
|
+
}
|
39
|
+
getMessage(key, params) {
|
40
|
+
return this.messagesBuilder.getMessage(key, params);
|
41
|
+
}
|
42
|
+
initGuidesConfig(newGuides) {
|
43
|
+
const visibleAux = [...newGuides.filter(guide => (guide.visible && guide.name !== TAB_NAMES.main))];
|
44
|
+
const hiddenAux = [...newGuides.filter(guide => (!guide.visible && guide.name !== TAB_NAMES.main))];
|
45
|
+
this.visibleGuides = [...visibleAux.sort(this.sortLogic)];
|
46
|
+
this.hiddenGuides = [...hiddenAux.sort(this.sortLogic)];
|
47
|
+
this.mainGuide = newGuides.find(g => g.name === TAB_NAMES.main);
|
48
|
+
}
|
49
|
+
handleAddGuide() {
|
50
|
+
this.createNewGuide.emit();
|
51
|
+
}
|
52
|
+
handleSelectGuide(guide, evt) {
|
53
|
+
evt.stopPropagation();
|
54
|
+
this.selectedGuide = guide;
|
55
|
+
}
|
56
|
+
toggleGuideVisibility(guide, evt) {
|
57
|
+
evt.stopPropagation();
|
58
|
+
const updatedGuide = Object.assign(Object.assign({}, guide), { visible: !guide.visible });
|
59
|
+
let visibleAux;
|
60
|
+
let hiddenAux;
|
61
|
+
if (guide.visible) {
|
62
|
+
visibleAux = [...this.visibleGuides.filter(g => g.name !== guide.name)];
|
63
|
+
hiddenAux = [...this.hiddenGuides, updatedGuide];
|
64
|
+
}
|
65
|
+
else {
|
66
|
+
visibleAux = [...this.visibleGuides, updatedGuide];
|
67
|
+
hiddenAux = [...this.hiddenGuides.filter(g => g.name !== guide.name)];
|
68
|
+
}
|
69
|
+
const updatedGuideList = [...visibleAux, ...hiddenAux];
|
70
|
+
this.applyGuidesUpdate(updatedGuideList);
|
71
|
+
}
|
72
|
+
adjustListOrder(guideList) {
|
73
|
+
return guideList.map((g, index) => {
|
74
|
+
return Object.assign(Object.assign({}, g), { order: index });
|
75
|
+
});
|
76
|
+
}
|
77
|
+
applyGuidesUpdate(updatedGuideList) {
|
78
|
+
let newGuidesList = this.adjustListOrder(updatedGuideList);
|
79
|
+
newGuidesList = [this.mainGuide, ...newGuidesList];
|
80
|
+
if (!ObjectUtils.equals(newGuidesList, this.guidesList)) {
|
81
|
+
this.guideListChanged.emit(newGuidesList);
|
82
|
+
}
|
83
|
+
}
|
84
|
+
async handleDeleteGuide(guide, e) {
|
85
|
+
e.stopPropagation();
|
86
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
87
|
+
const message = this.getMessage('snkFormConfig.confirm.deleteGuide').replace('{0}', guide.label);
|
88
|
+
const canRemove = await ApplicationUtils.confirm(title, message);
|
89
|
+
if (!canRemove)
|
90
|
+
return;
|
91
|
+
this.guideDeleted.emit(guide);
|
92
|
+
const deletedMessage = this.getMessage('snkFormConfig.info.successfullyGuideDeleted').replace('{0}', guide.label);
|
93
|
+
ApplicationUtils.info(deletedMessage);
|
94
|
+
}
|
95
|
+
renderItems(guides) {
|
96
|
+
const guidesToShow = ArrayUtils.applyStringFilter(this.filterTerm, guides);
|
97
|
+
return guidesToShow.map(guide => {
|
98
|
+
var _a;
|
99
|
+
return (h("div", { key: guide.name, "data-guide-name": guide.name, title: guide.label, class: `guide-item ${((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.label) === guide.label ? 'selected' : ''} ${this.filterTerm.length ? 'disable-sort' : ''}`, onClick: e => this.handleSelectGuide(guide, e) }, h("span", null, h("ez-icon", { iconName: "drag-indicator", class: 'ez-margin-right--small' })), h("span", { class: 'item-label' }, guide.label), h("div", { class: 'actions' }, h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: e => this.toggleGuideVisibility(guide, e), size: "medium", iconName: guide.visible ? 'eye-off' : 'eye', title: guide.visible ? 'Ocultar' : 'Tornar visível' }), h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: e => this.handleDeleteGuide(guide, e), size: "medium", iconName: 'delete', title: 'Excluir' }))));
|
100
|
+
});
|
101
|
+
}
|
102
|
+
getContainerElement(id) {
|
103
|
+
return this.el.querySelector(`[id="${id}"]`);
|
104
|
+
}
|
105
|
+
handleSortGuide() {
|
106
|
+
const updatedGuideList = [...this.getGuidesFromStatus(true), ...this.getGuidesFromStatus(false)];
|
107
|
+
this.applyGuidesUpdate(updatedGuideList);
|
108
|
+
}
|
109
|
+
getGuidesFromStatus(visible) {
|
110
|
+
let updatedGuideList = [];
|
111
|
+
const orderedGuides = this.getOrderedGuideNames(visible ? this.ID_VISIBLE_GUIDES : this.ID_HIDDEN_GUIDES);
|
112
|
+
orderedGuides.forEach(guideName => {
|
113
|
+
const updatedGuide = this.guidesList.find(g => g.name === guideName);
|
114
|
+
if (updatedGuide) {
|
115
|
+
updatedGuideList.push(Object.assign(Object.assign({}, updatedGuide), { visible }));
|
116
|
+
}
|
117
|
+
});
|
118
|
+
return updatedGuideList;
|
119
|
+
}
|
120
|
+
getOrderedGuideNames(containerId) {
|
121
|
+
var _a;
|
122
|
+
const guidesCollection = (_a = this.getContainerElement(containerId)) === null || _a === void 0 ? void 0 : _a.children;
|
123
|
+
return Array.from(guidesCollection).map((element) => element.getAttribute('data-guide-name'));
|
124
|
+
}
|
125
|
+
initializeDraggableContainers() {
|
126
|
+
this._sortableVisibleGuides = new Sortable(this.getContainerElement(this.ID_VISIBLE_GUIDES), {
|
127
|
+
group: 'guides',
|
128
|
+
ghostClass: 'ghost',
|
129
|
+
direction: 'vertical',
|
130
|
+
filter: '.disable-sort',
|
131
|
+
animation: 15,
|
132
|
+
onSort: () => this.handleSortGuide(),
|
133
|
+
});
|
134
|
+
this._sortableInvisibleGuides = new Sortable(this.getContainerElement(this.ID_HIDDEN_GUIDES), {
|
135
|
+
group: 'guides',
|
136
|
+
ghostClass: 'ghost',
|
137
|
+
animation: 15,
|
138
|
+
filter: '.disable-sort',
|
139
|
+
onSort: () => this.handleSortGuide(),
|
140
|
+
});
|
141
|
+
}
|
142
|
+
handleSelectMainGuide() {
|
143
|
+
this.guideSelected.emit(this.mainGuide);
|
144
|
+
}
|
145
|
+
componentDidLoad() {
|
146
|
+
this.initializeDraggableContainers();
|
147
|
+
this.initGuidesConfig(this.guidesList);
|
148
|
+
}
|
149
|
+
render() {
|
150
|
+
var _a, _b, _c;
|
151
|
+
return (h("ez-sidebar-navigator", { class: 'ezSidebarNavigator', type: 'fixed', size: 'md', titleMenu: 'Guias' }, h("div", { class: 'navigator-container' }, h("ez-filter-input", { slot: "content", mode: "slim", label: "Buscar guia", onEzChange: evt => this.filterTerm = evt.detail }), h("div", { onClick: this.handleSelectMainGuide.bind(this), class: `main-guide ${((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.name) === ((_b = this.mainGuide) === null || _b === void 0 ? void 0 : _b.name) ? 'selected' : ''}` }, h("span", null, (_c = this.mainGuide) === null || _c === void 0 ? void 0 : _c.label)), h("div", { class: 'collapsible-container' }, h("div", { class: 'collapsible-item' }, h("ez-collapsible-box", { label: "Guias vis\u00EDveis", headerSize: "large" }, h("div", { id: this.ID_VISIBLE_GUIDES, class: `guide-list ${!this.visibleGuides.length ? 'visible-empty-content' : ''}` }, this.renderItems(this.visibleGuides)))), h("div", { class: 'collapsible-item' }, h("ez-collapsible-box", { label: "Guias ocultas", headerSize: "large" }, h("div", { id: this.ID_HIDDEN_GUIDES, class: `guide-list ${!this.hiddenGuides.length ? 'hidden-empty-content' : ''}` }, this.renderItems(this.hiddenGuides))))), h("div", { class: 'add-button-container', onClick: this.handleAddGuide.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus" }), h("span", null, "Criar nova guia")))));
|
152
|
+
}
|
153
|
+
get el() { return this; }
|
154
|
+
static get watchers() { return {
|
155
|
+
"guidesList": ["observeVisibleGuides"],
|
156
|
+
"selectedGuide": ["observeSelectedGuide"]
|
157
|
+
}; }
|
158
|
+
static get style() { return guidesConfiguratorCss; }
|
159
|
+
}, [2, "guides-configurator", {
|
160
|
+
"guidesList": [16],
|
161
|
+
"selectedGuide": [16],
|
162
|
+
"messagesBuilder": [1040],
|
163
|
+
"mainGuide": [32],
|
164
|
+
"filterTerm": [32],
|
165
|
+
"visibleGuides": [32],
|
166
|
+
"hiddenGuides": [32]
|
167
|
+
}]);
|
168
|
+
function defineCustomElement() {
|
169
|
+
if (typeof customElements === "undefined") {
|
170
|
+
return;
|
171
|
+
}
|
172
|
+
const components = ["guides-configurator"];
|
173
|
+
components.forEach(tagName => { switch (tagName) {
|
174
|
+
case "guides-configurator":
|
175
|
+
if (!customElements.get(tagName)) {
|
176
|
+
customElements.define(tagName, GuidesConfigurator);
|
177
|
+
}
|
178
|
+
break;
|
179
|
+
} });
|
180
|
+
}
|
181
|
+
|
182
|
+
export { GuidesConfigurator as G, defineCustomElement as d };
|
@@ -1,4 +1,11 @@
|
|
1
1
|
/* sankhyablocks custom elements */
|
2
|
+
export { ConfigHeader as ConfigHeader } from '../types/components/snk-form-config/config-header/config-header';
|
3
|
+
export { ConfigsButton as ConfigsButton } from '../types/components/snk-form-config/config-header/configs-button/configs-button';
|
4
|
+
export { FieldConfig as FieldConfig } from '../types/components/snk-form-config/field-item/field-config/field-config';
|
5
|
+
export { FieldItem as FieldItem } from '../types/components/snk-form-config/field-item/field-item';
|
6
|
+
export { FieldLayoutComponent as FieldsLayout } from '../types/components/snk-form-config/fields-layout/fields-layout';
|
7
|
+
export { FieldsSelector as FieldsSelector } from '../types/components/snk-form-config/fields-selector/fields-selector';
|
8
|
+
export { GuidesConfigurator as GuidesConfigurator } from '../types/components/snk-form-config/guides-configurator/guides-configurator';
|
2
9
|
export { PesquisaGrid as PesquisaGrid } from '../types/components/snk-pesquisa/pesquisa-grid/pesquisa-grid';
|
3
10
|
export { PesquisaTree as PesquisaTree } from '../types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree';
|
4
11
|
export { SnkActionsButton as SnkActionsButton } from '../types/components/snk-actions-button/snk-actions-button';
|
@@ -6,18 +13,17 @@ export { SnkActionsForm as SnkActionsForm } from '../types/components/snk-action
|
|
6
13
|
export { SnkApplication as SnkApplication } from '../types/components/snk-application/snk-application';
|
7
14
|
export { SnkAttach as SnkAttach } from '../types/components/snk-attach/snk-attach';
|
8
15
|
export { SnkActionsForm as SnkClientConfirm } from '../types/components/snk-actions-button/subcomponents/snk-client-confirm';
|
9
|
-
export { SnkConfigOptions as SnkConfigOptions } from '../types/components/snk-form-config/subcomponents/snk-config-options/snk-config-options';
|
10
16
|
export { SnkConfigurator as SnkConfigurator } from '../types/components/snk-configurator/snk-configurator';
|
11
17
|
export { SnkCrud as SnkCrud } from '../types/components/snk-crud/snk-crud';
|
12
18
|
export { SnkCustomSlotElements as SnkCustomSlotElements } from '../types/components/snk-custom-slot-elements/snk-custom-slot-elements';
|
13
19
|
export { SnkDataExporter as SnkDataExporter } from '../types/components/snk-data-exporter/snk-data-exporter';
|
14
20
|
export { SnkDataUnit as SnkDataUnit } from '../types/components/snk-data-unit/snk-data-unit';
|
21
|
+
export { SnkDefaultFilter as SnkDefaultFilter } from '../types/components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter';
|
15
22
|
export { SnkDetailView as SnkDetailView } from '../types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view';
|
16
23
|
export { SnkEntityList as SnkEntityList } from '../types/components/snk-entity-list/snk-entity-list';
|
17
24
|
export { SnkExporterEmailSender as SnkExporterEmailSender } from '../types/components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender';
|
18
25
|
export { SnkExpressionGroup as SnkExpressionGroup } from '../types/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group';
|
19
26
|
export { SnkExpressionItem as SnkExpressionItem } from '../types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item';
|
20
|
-
export { SnkFieldConfig as SnkFieldConfig } from '../types/components/snk-form-config/subcomponents/snk-field-config/snk-field-config';
|
21
27
|
export { SnkFilterAdvancedMode as SnkFilterAdvancedMode } from '../types/components/snk-personalized-filter/subcomponents/snk-filter-advanced-mode/snk-filter-advanced-mode';
|
22
28
|
export { SnkFilterAssistentMode as SnkFilterAssistentMode } from '../types/components/snk-personalized-filter/subcomponents/snk-filter-assistent-mode/snk-filter-assistent-mode';
|
23
29
|
export { SnkFilterBar as SnkFilterBar } from '../types/components/snk-filter-bar/snk-filter-bar';
|
@@ -42,6 +48,7 @@ export { SnkFormView as SnkFormView } from '../types/components/snk-crud/subcomp
|
|
42
48
|
export { SnkGrid as SnkGrid } from '../types/components/snk-grid/snk-grid';
|
43
49
|
export { SnkGridConfig as SnkGridConfig } from '../types/components/snk-grid-config/snk-grid-config';
|
44
50
|
export { SnkGuidesViewer as SnkGuidesViewer } from '../types/components/snk-crud/subcomponents/snk-guides-viewer';
|
51
|
+
export { SnkLayoutFormConfig as SnkLayoutFormConfig } from '../types/components/snk-layout-form-config/snk-layout-form-config';
|
45
52
|
export { SnkPersonalizedFilter as SnkPersonalizedFilter } from '../types/components/snk-personalized-filter/snk-personalized-filter';
|
46
53
|
export { SnkFilterPersonalized as SnkPersonalizedFilterEditor } from '../types/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor';
|
47
54
|
export { SnkPesquisa as SnkPesquisa } from '../types/components/snk-pesquisa/snk-pesquisa';
|
@@ -50,9 +57,10 @@ export { SelectBox as SnkSelectBox } from '../types/components/snk-grid-config/s
|
|
50
57
|
export { SnkSimpleBar as SnkSimpleBar } from '../types/components/snk-simple-bar/snk-simple-bar';
|
51
58
|
export { SnkSimpleCrud as SnkSimpleCrud } from '../types/components/snk-simple-crud/snk-simple-crud';
|
52
59
|
export { SnkSimpleFormConfig as SnkSimpleFormConfig } from '../types/components/snk-simple-form-config/snk-simple-form-config';
|
53
|
-
export { SnkTabConfig as SnkTabConfig } from '../types/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config';
|
54
60
|
export { SnkTaskbar as SnkTaskbar } from '../types/components/snk-taskbar/snk-taskbar';
|
61
|
+
export { SnkViewRepresentation as SnkViewRepresentation } from '../types/components/snk-layout-form-config/snk-view-representation/snk-view-representation';
|
55
62
|
export { TaskbarActionsButton as TaskbarActionsButton } from '../types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button';
|
63
|
+
export { TaskbarSplitButton as TaskbarSplitButton } from '../types/components/snk-taskbar/elements/taskbar-split-button/taskbar-split-button';
|
56
64
|
export { TestePesquisa as TestePesquisa } from '../types/components/teste-pesquisa/teste-pesquisa';
|
57
65
|
|
58
66
|
/**
|
package/dist/components/index.js
CHANGED
@@ -1,4 +1,11 @@
|
|
1
1
|
export { setAssetPath, setNonce, setPlatformOptions } from '@stencil/core/internal/client';
|
2
|
+
export { ConfigHeader, defineCustomElement as defineCustomElementConfigHeader } from './config-header.js';
|
3
|
+
export { ConfigsButton, defineCustomElement as defineCustomElementConfigsButton } from './configs-button.js';
|
4
|
+
export { FieldConfig, defineCustomElement as defineCustomElementFieldConfig } from './field-config.js';
|
5
|
+
export { FieldItem, defineCustomElement as defineCustomElementFieldItem } from './field-item.js';
|
6
|
+
export { FieldsLayout, defineCustomElement as defineCustomElementFieldsLayout } from './fields-layout.js';
|
7
|
+
export { FieldsSelector, defineCustomElement as defineCustomElementFieldsSelector } from './fields-selector.js';
|
8
|
+
export { GuidesConfigurator, defineCustomElement as defineCustomElementGuidesConfigurator } from './guides-configurator.js';
|
2
9
|
export { PesquisaGrid, defineCustomElement as defineCustomElementPesquisaGrid } from './pesquisa-grid.js';
|
3
10
|
export { PesquisaTree, defineCustomElement as defineCustomElementPesquisaTree } from './pesquisa-tree.js';
|
4
11
|
export { SnkActionsButton, defineCustomElement as defineCustomElementSnkActionsButton } from './snk-actions-button.js';
|
@@ -6,18 +13,17 @@ export { SnkActionsForm, defineCustomElement as defineCustomElementSnkActionsFor
|
|
6
13
|
export { SnkApplication, defineCustomElement as defineCustomElementSnkApplication } from './snk-application.js';
|
7
14
|
export { SnkAttach, defineCustomElement as defineCustomElementSnkAttach } from './snk-attach.js';
|
8
15
|
export { SnkClientConfirm, defineCustomElement as defineCustomElementSnkClientConfirm } from './snk-client-confirm.js';
|
9
|
-
export { SnkConfigOptions, defineCustomElement as defineCustomElementSnkConfigOptions } from './snk-config-options.js';
|
10
16
|
export { SnkConfigurator, defineCustomElement as defineCustomElementSnkConfigurator } from './snk-configurator.js';
|
11
17
|
export { SnkCrud, defineCustomElement as defineCustomElementSnkCrud } from './snk-crud.js';
|
12
18
|
export { SnkCustomSlotElements, defineCustomElement as defineCustomElementSnkCustomSlotElements } from './snk-custom-slot-elements.js';
|
13
19
|
export { SnkDataExporter, defineCustomElement as defineCustomElementSnkDataExporter } from './snk-data-exporter.js';
|
14
20
|
export { SnkDataUnit, defineCustomElement as defineCustomElementSnkDataUnit } from './snk-data-unit.js';
|
21
|
+
export { SnkDefaultFilter, defineCustomElement as defineCustomElementSnkDefaultFilter } from './snk-default-filter.js';
|
15
22
|
export { SnkDetailView, defineCustomElement as defineCustomElementSnkDetailView } from './snk-detail-view.js';
|
16
23
|
export { SnkEntityList, defineCustomElement as defineCustomElementSnkEntityList } from './snk-entity-list.js';
|
17
24
|
export { SnkExporterEmailSender, defineCustomElement as defineCustomElementSnkExporterEmailSender } from './snk-exporter-email-sender.js';
|
18
25
|
export { SnkExpressionGroup, defineCustomElement as defineCustomElementSnkExpressionGroup } from './snk-expression-group.js';
|
19
26
|
export { SnkExpressionItem, defineCustomElement as defineCustomElementSnkExpressionItem } from './snk-expression-item.js';
|
20
|
-
export { SnkFieldConfig, defineCustomElement as defineCustomElementSnkFieldConfig } from './snk-field-config.js';
|
21
27
|
export { SnkFilterAdvancedMode, defineCustomElement as defineCustomElementSnkFilterAdvancedMode } from './snk-filter-advanced-mode.js';
|
22
28
|
export { SnkFilterAssistentMode, defineCustomElement as defineCustomElementSnkFilterAssistentMode } from './snk-filter-assistent-mode.js';
|
23
29
|
export { SnkFilterBar, defineCustomElement as defineCustomElementSnkFilterBar } from './snk-filter-bar.js';
|
@@ -42,6 +48,7 @@ export { SnkFormView, defineCustomElement as defineCustomElementSnkFormView } fr
|
|
42
48
|
export { SnkGrid, defineCustomElement as defineCustomElementSnkGrid } from './snk-grid.js';
|
43
49
|
export { SnkGridConfig, defineCustomElement as defineCustomElementSnkGridConfig } from './snk-grid-config.js';
|
44
50
|
export { SnkGuidesViewer, defineCustomElement as defineCustomElementSnkGuidesViewer } from './snk-guides-viewer.js';
|
51
|
+
export { SnkLayoutFormConfig, defineCustomElement as defineCustomElementSnkLayoutFormConfig } from './snk-layout-form-config.js';
|
45
52
|
export { SnkPersonalizedFilter, defineCustomElement as defineCustomElementSnkPersonalizedFilter } from './snk-personalized-filter.js';
|
46
53
|
export { SnkPersonalizedFilterEditor, defineCustomElement as defineCustomElementSnkPersonalizedFilterEditor } from './snk-personalized-filter-editor.js';
|
47
54
|
export { SnkPesquisa, defineCustomElement as defineCustomElementSnkPesquisa } from './snk-pesquisa.js';
|
@@ -50,7 +57,8 @@ export { SnkSelectBox, defineCustomElement as defineCustomElementSnkSelectBox }
|
|
50
57
|
export { SnkSimpleBar, defineCustomElement as defineCustomElementSnkSimpleBar } from './snk-simple-bar.js';
|
51
58
|
export { SnkSimpleCrud, defineCustomElement as defineCustomElementSnkSimpleCrud } from './snk-simple-crud.js';
|
52
59
|
export { SnkSimpleFormConfig, defineCustomElement as defineCustomElementSnkSimpleFormConfig } from './snk-simple-form-config.js';
|
53
|
-
export { SnkTabConfig, defineCustomElement as defineCustomElementSnkTabConfig } from './snk-tab-config.js';
|
54
60
|
export { SnkTaskbar, defineCustomElement as defineCustomElementSnkTaskbar } from './snk-taskbar.js';
|
61
|
+
export { SnkViewRepresentation, defineCustomElement as defineCustomElementSnkViewRepresentation } from './snk-view-representation.js';
|
55
62
|
export { TaskbarActionsButton, defineCustomElement as defineCustomElementTaskbarActionsButton } from './taskbar-actions-button.js';
|
63
|
+
export { TaskbarSplitButton, defineCustomElement as defineCustomElementTaskbarSplitButton } from './taskbar-split-button.js';
|
56
64
|
export { TestePesquisa, defineCustomElement as defineCustomElementTestePesquisa } from './teste-pesquisa.js';
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException,
|
2
|
+
import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, SilentException, WarningException, ErrorException, ElementIDUtils, SearchUtils, ArrayUtils, KeyboardManager, OnboardingUtils, DependencyType, ApplicationContext, DataType, ErrorTracking, UserAgentUtils, LockManager, LockManagerOperation } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
4
|
import { C as ConfigStorage } from './ConfigStorage.js';
|
5
5
|
import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher.js';
|
@@ -7,7 +7,9 @@ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher.js';
|
|
7
7
|
import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher.js';
|
8
8
|
import { a as PesquisaFetcher } from './ISave.js';
|
9
9
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
|
10
|
-
import {
|
10
|
+
import { c as TEMPLATES_SKELETON } from './constants.js';
|
11
|
+
import './filter-item-type.enum.js';
|
12
|
+
import { F as FormConfigFetcher } from './form-config-fetcher.js';
|
11
13
|
import { d as defineCustomElement$3 } from './pesquisa-grid2.js';
|
12
14
|
import { d as defineCustomElement$2 } from './pesquisa-tree2.js';
|
13
15
|
import { d as defineCustomElement$1 } from './snk-pesquisa2.js';
|
@@ -257,7 +259,10 @@ class SnkErrorHandler {
|
|
257
259
|
if (exception.errorCode) {
|
258
260
|
exception.message += this.buildErrorCodeHTML(exception.errorCode);
|
259
261
|
}
|
260
|
-
if (exception instanceof
|
262
|
+
if (exception instanceof SilentException) {
|
263
|
+
console.warn("SilentException ignorada", exception);
|
264
|
+
}
|
265
|
+
else if (exception instanceof WaitingChangeException) {
|
261
266
|
this._app.alert(exception.title, exception.message);
|
262
267
|
}
|
263
268
|
else if (exception instanceof WarningException) {
|
@@ -377,6 +382,136 @@ class RequestListenerFactory {
|
|
377
382
|
}
|
378
383
|
}
|
379
384
|
|
385
|
+
const QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH = 6;
|
386
|
+
const INVALID_CONTENT_PATTERNS = ['<img', '<svg'];
|
387
|
+
const executePreparedSearchPlus = async (mode, argument, options, app, pesquisaFetcher) => {
|
388
|
+
var _a;
|
389
|
+
const mdByName = {};
|
390
|
+
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
|
391
|
+
if (mode === "ADVANCED") {
|
392
|
+
return new Promise((accept, reject) => {
|
393
|
+
const pesquisaContent = document.createElement("snk-pesquisa");
|
394
|
+
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
395
|
+
pesquisaContent.entityName = entity;
|
396
|
+
pesquisaContent.argument = argument;
|
397
|
+
pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
|
398
|
+
pesquisaContent.isHierarchyEntity = isHierarchyEntity;
|
399
|
+
if (isHierarchyEntity) {
|
400
|
+
pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
|
401
|
+
pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
|
402
|
+
}
|
403
|
+
pesquisaContent.selectItem = (option) => {
|
404
|
+
accept(option);
|
405
|
+
app.clearPopUpTitle();
|
406
|
+
app.closePopUp();
|
407
|
+
};
|
408
|
+
app.setPopUpTitle(entityDescription);
|
409
|
+
app.showPopUp(pesquisaContent, undefined, undefined, reject);
|
410
|
+
});
|
411
|
+
}
|
412
|
+
else if (mode === "LOAD_DESCRIPTION") {
|
413
|
+
let result = await pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
|
414
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
415
|
+
let descriptionField = result.descriptionField;
|
416
|
+
const option = (_a = result.data) === null || _a === void 0 ? void 0 : _a[0];
|
417
|
+
if (!option) {
|
418
|
+
return {
|
419
|
+
value: argument,
|
420
|
+
label: ""
|
421
|
+
};
|
422
|
+
}
|
423
|
+
return {
|
424
|
+
value: argument,
|
425
|
+
label: option[descriptionField]
|
426
|
+
};
|
427
|
+
}
|
428
|
+
else {
|
429
|
+
let codeValue;
|
430
|
+
let result = await pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions, codeValue);
|
431
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
432
|
+
let descriptionField = result.descriptionField;
|
433
|
+
let pkField = result.pkField;
|
434
|
+
const list = result.data.map((item) => {
|
435
|
+
let fieldsMetadata = filterInvalidFields(result, item, mdByName);
|
436
|
+
let fields = filterMathFields(item['__matchFields'], fieldsMetadata, QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH, mdByName);
|
437
|
+
return buildOptionItem(argument, item, fields, descriptionField, pkField);
|
438
|
+
});
|
439
|
+
return list;
|
440
|
+
}
|
441
|
+
};
|
442
|
+
const buildOptionItem = (argument, item, fields, descriptionField, pkField) => {
|
443
|
+
var _a;
|
444
|
+
const matchFields = item['__matchFields'];
|
445
|
+
const descriptionValue = (_a = item[descriptionField]) !== null && _a !== void 0 ? _a : "";
|
446
|
+
const pkValue = item[pkField];
|
447
|
+
let searchOption = {
|
448
|
+
value: pkValue,
|
449
|
+
label: descriptionValue,
|
450
|
+
presentationValue: StringUtils.highlightValue(argument, matchFields, pkValue, fields, true),
|
451
|
+
presentationLabel: descriptionField ? StringUtils.highlightValue(argument, matchFields, descriptionValue, fields, true) : "",
|
452
|
+
details: SearchUtils.buildDetails(argument, fields, item)
|
453
|
+
};
|
454
|
+
return searchOption;
|
455
|
+
};
|
456
|
+
const filterInvalidFields = (resp, item, mdByName) => {
|
457
|
+
let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
|
458
|
+
let accept = !StringUtils.isEmpty(item[field.fieldName]) &&
|
459
|
+
field.visible !== false &&
|
460
|
+
field.type !== 'B' &&
|
461
|
+
resp.pkField !== field.fieldName &&
|
462
|
+
resp.descriptionField !== field.fieldName &&
|
463
|
+
(field.isPrimaryKey || !field.isLinkField) &&
|
464
|
+
!(field.type === 'S' && field.presentationType === 'H');
|
465
|
+
if (accept) {
|
466
|
+
mdByName[field.fieldName] = field;
|
467
|
+
}
|
468
|
+
//Condição que trata o problema de trazer imagem no entityCard na pesquisa de registros
|
469
|
+
if (typeof item[field.fieldName] === 'string' && INVALID_CONTENT_PATTERNS.some(pattern => item[field.fieldName].includes(pattern))) {
|
470
|
+
return false;
|
471
|
+
}
|
472
|
+
return accept;
|
473
|
+
});
|
474
|
+
return fieldsMetadata;
|
475
|
+
};
|
476
|
+
const filterMathFields = (matchFields, fields, qtyFields, mdByName) => {
|
477
|
+
if (matchFields && Array.isArray(matchFields)) {
|
478
|
+
matchFields.forEach((matchField) => {
|
479
|
+
let fieldMD = ArrayUtils.removeReference(fields, mdByName[matchField]);
|
480
|
+
if (fieldMD) {
|
481
|
+
fields.unshift(fieldMD);
|
482
|
+
}
|
483
|
+
});
|
484
|
+
}
|
485
|
+
fields = fields.slice(0, qtyFields);
|
486
|
+
return fields;
|
487
|
+
};
|
488
|
+
|
489
|
+
class LayoutFormConfig {
|
490
|
+
constructor() {
|
491
|
+
this._config = null;
|
492
|
+
this.listeners = [];
|
493
|
+
}
|
494
|
+
static getInstance() {
|
495
|
+
if (!LayoutFormConfig.instance) {
|
496
|
+
LayoutFormConfig.instance = new LayoutFormConfig();
|
497
|
+
}
|
498
|
+
return LayoutFormConfig.instance;
|
499
|
+
}
|
500
|
+
get config() {
|
501
|
+
return this._config;
|
502
|
+
}
|
503
|
+
setConfig(newConfig) {
|
504
|
+
this._config = newConfig;
|
505
|
+
this.notifyListeners();
|
506
|
+
}
|
507
|
+
onConfigChange(listener) {
|
508
|
+
this.listeners.push(listener);
|
509
|
+
}
|
510
|
+
notifyListeners() {
|
511
|
+
this.listeners.forEach(listener => listener(this._config));
|
512
|
+
}
|
513
|
+
}
|
514
|
+
|
380
515
|
const snkApplicationCss = ".sc-snk-application-h{--scrim-z-index:var(--elevation--100, 100);display:flex;flex-direction:column;height:100%}.sc-snk-application-h>.loading-hidden.sc-snk-application{display:none;pointer-events:none}.skeleton-content-left.sc-snk-application{width:300px;padding-right:5px}.skeleton-content.sc-snk-application{height:calc(100vh - 310px)}.spinner.sc-snk-application{height:100vh;gap:10px}.spinner.sc-snk-application>.spin.sc-snk-application{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
|
381
516
|
|
382
517
|
const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
@@ -397,6 +532,8 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
397
532
|
this._pendingActions = new Map;
|
398
533
|
this._loadPkParameter = null;
|
399
534
|
this._isLoadedByPk = false;
|
535
|
+
this._formConfigFetcher = new FormConfigFetcher();
|
536
|
+
this._LayoutFormConfigSingleton = LayoutFormConfig.getInstance();
|
400
537
|
this._applicationReady = false;
|
401
538
|
this._templateSkeleton = TEMPLATES_SKELETON.GRID;
|
402
539
|
this._activeScrimWindow = false;
|
@@ -471,6 +608,14 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
471
608
|
async getKeyboardManager() {
|
472
609
|
return Promise.resolve(this._keyboardManager);
|
473
610
|
}
|
611
|
+
/**
|
612
|
+
* Obtém o notificador de Layout de formulario.
|
613
|
+
*
|
614
|
+
* @return {LayoutFormConfig} the Configurador de Layout do Formulario
|
615
|
+
*/
|
616
|
+
async getLayoutFormConfig() {
|
617
|
+
return Promise.resolve(this._LayoutFormConfigSingleton);
|
618
|
+
}
|
474
619
|
/**
|
475
620
|
* Obtém `true` caso o usuário logado seja o SUP.
|
476
621
|
*/
|
@@ -1001,7 +1146,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1001
1146
|
searchOptions,
|
1002
1147
|
allowsNonAnalytic
|
1003
1148
|
};
|
1004
|
-
return this.executePreparedSearch(mode, argument, options);
|
1149
|
+
return (ctxOptions === null || ctxOptions === void 0 ? void 0 : ctxOptions.useSearchPlus) ? this.executePreparedSearchPlus(mode, argument, options) : this.executePreparedSearch(mode, argument, options);
|
1005
1150
|
}
|
1006
1151
|
}
|
1007
1152
|
filterInvalidFields(resp, item, mdByName) {
|
@@ -1045,13 +1190,23 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1045
1190
|
};
|
1046
1191
|
return exibitionItem;
|
1047
1192
|
}
|
1193
|
+
/**
|
1194
|
+
* Realiza a pesquisa de registros
|
1195
|
+
* Ex.: snk-config-options
|
1196
|
+
*/
|
1197
|
+
async executePreparedSearchPlus(mode, argument, options) {
|
1198
|
+
return await this.executePreparedSearch(mode, argument, Object.assign(Object.assign({}, options), { useSearchPlus: true }));
|
1199
|
+
}
|
1048
1200
|
/**
|
1049
1201
|
* Obtém as opções em componentes de pesquisa
|
1050
1202
|
* Ex.: snk-config-options
|
1051
1203
|
*/
|
1052
1204
|
async executePreparedSearch(mode, argument, options) {
|
1053
1205
|
const mdByName = {};
|
1054
|
-
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic } = options;
|
1206
|
+
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic, useSearchPlus } = options;
|
1207
|
+
if (useSearchPlus) {
|
1208
|
+
return executePreparedSearchPlus(mode, argument, options, this, this.pesquisaFetcher);
|
1209
|
+
}
|
1055
1210
|
if (mode === "ADVANCED") {
|
1056
1211
|
return new Promise((accept, reject) => {
|
1057
1212
|
const pesquisaContent = document.createElement("snk-pesquisa");
|
@@ -1201,10 +1356,10 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1201
1356
|
});
|
1202
1357
|
}
|
1203
1358
|
}
|
1204
|
-
clearPopUpTitle() {
|
1359
|
+
async clearPopUpTitle() {
|
1205
1360
|
this._popUp.ezTitle = "";
|
1206
1361
|
}
|
1207
|
-
setPopUpTitle(title) {
|
1362
|
+
async setPopUpTitle(title) {
|
1208
1363
|
this._popUp.ezTitle = title;
|
1209
1364
|
}
|
1210
1365
|
async pkChangeListener() {
|
@@ -1233,7 +1388,8 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1233
1388
|
this.defaultLoadByPK(pkParam, pkHash);
|
1234
1389
|
}
|
1235
1390
|
getResourceIdFromToken() {
|
1236
|
-
|
1391
|
+
var _a;
|
1392
|
+
if (((_a = (top.window.location.pathname)) === null || _a === void 0 ? void 0 : _a.indexOf("tabContent.jsp")) > -1 && (window.location['generateHash'])) {
|
1237
1393
|
return UrlUtils.getResourceIdFromUrlToken(window.location['generateHash'](window.location.hash));
|
1238
1394
|
}
|
1239
1395
|
return UrlUtils.getResourceIdFromUrlToken(top.window.location.hash);
|
@@ -1374,6 +1530,9 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1374
1530
|
ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
1375
1531
|
return this.executeSearch(searchArgument, fieldName, dataUnit, ctxOptions);
|
1376
1532
|
});
|
1533
|
+
ApplicationContext.setContextValue("__EZUI__SEARCH__PLUS__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
1534
|
+
return this.executeSearch(searchArgument, fieldName, dataUnit, Object.assign(Object.assign({}, ctxOptions), { useSearchPlus: true }));
|
1535
|
+
});
|
1377
1536
|
ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
|
1378
1537
|
this.registerPkChangeListener();
|
1379
1538
|
ErrorTracking.init();
|
@@ -1384,6 +1543,12 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1384
1543
|
ConfigStorage.preload(this.applicationResourceID, this.configName, legacyConfig);
|
1385
1544
|
document.addEventListener("click", () => Workspace.applicationClick());
|
1386
1545
|
this._waitingAppReady.forEach(resolve => resolve());
|
1546
|
+
this.setLayoutFormConfig();
|
1547
|
+
}
|
1548
|
+
async setLayoutFormConfig() {
|
1549
|
+
const response = await this._formConfigFetcher.fetchLayoutFormConfig('formColCfg.' + this.applicationResourceID);
|
1550
|
+
const config = isNaN(Number(response === null || response === void 0 ? void 0 : response.config)) ? null : Number(response === null || response === void 0 ? void 0 : response.config);
|
1551
|
+
this._LayoutFormConfigSingleton.setConfig(config);
|
1387
1552
|
}
|
1388
1553
|
connectedCallback() {
|
1389
1554
|
this._isBrowserTypeElectron = UserAgentUtils.isElectron();
|
@@ -1494,10 +1659,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1494
1659
|
.bind("F1", Workspace.openHelp.bind(this), { description: "Abrir ajuda" });
|
1495
1660
|
}
|
1496
1661
|
removeShortcuts() {
|
1497
|
-
this._keyboardManager
|
1498
|
-
.unbind("ctrl + g")
|
1499
|
-
.unbind("ctrl + d")
|
1500
|
-
.unbind("F1");
|
1662
|
+
this._keyboardManager.unbindAllShortcutKeys();
|
1501
1663
|
}
|
1502
1664
|
renderLoadingSkeleton() {
|
1503
1665
|
if (!this.enableLockManagerLoadingApp)
|
@@ -1528,16 +1690,16 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1528
1690
|
};
|
1529
1691
|
}
|
1530
1692
|
getSkeletonTemplateGrid() {
|
1531
|
-
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-flex--column ez-margin--large ez-margin-top--medium" }, h("div", { class: "ez-margin-bottom--medium" }, h("ez-skeleton", { count: 1, variant: "
|
1693
|
+
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-flex--column ez-margin--large ez-margin-top--medium" }, h("div", { class: "ez-margin-bottom--medium" }, h("ez-skeleton", { count: 1, variant: "text", width: "20%", height: "35px", animation: "progress" })), h("div", { class: "" }, h("ez-skeleton", { count: 1, variant: "text", width: "70%", height: "25px", animation: "progress" }))), h("div", { class: "ez-flex ez-flex--justify-start skeleton-content-column ez-margin-horizontal--large", style: { height: "calc(-105px + 100vh)" } }, [1, 2, 3, 4].map((_, index) => (h("div", { class: "ez-margin-right--large", key: index, style: { width: "25%" } }, h("ez-skeleton", { count: this.getCountSkeleton(50, 10), variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))))));
|
1532
1694
|
}
|
1533
1695
|
getSkeletonTemplateGridWithSidebar() {
|
1534
|
-
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-flex--column ez-margin--large ez-margin-top--medium" }, h("div", { class: "ez-margin-bottom--medium" }, h("ez-skeleton", { count: 1, variant: "
|
1696
|
+
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-flex--column ez-margin--large ez-margin-top--medium" }, h("div", { class: "ez-margin-bottom--medium" }, h("ez-skeleton", { count: 1, variant: "text", width: "20%", height: "35px", animation: "progress" })), h("div", { class: "" }, h("ez-skeleton", { count: 1, variant: "text", width: "70%", height: "25px", animation: "progress" }))), h("div", { class: "ez-flex ez-flex--justify-start skeleton-content-column ez-margin-horizontal--large", style: { height: "calc(100vh - 160px)" } }, h("div", { class: "ez-flex ez-flex--column ez-margin-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(30, 6)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "text", width: this.getSkeletonRandomWidth(), height: "30px", animation: "progress", marginBottom: "10px" }))), h("div", { class: "ez-margin-right--large", style: { width: "75%" } }, h("ez-skeleton", { count: this.getCountSkeleton(50, 10), variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))));
|
1535
1697
|
}
|
1536
1698
|
getSkeletonTemplateGridWithPanel() {
|
1537
|
-
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, h("ez-skeleton", { count: 1, variant: "
|
1699
|
+
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, h("ez-skeleton", { count: 1, variant: "text", width: "70%", height: "25px", animation: "progress" })), h("div", { class: "ez-flex ez-margin--medium ez-margin-top--medium", style: { maxHeight: "calc(-105px + 100vh)", overflow: "hidden" } }, h("div", { class: "", style: { width: "70%", overflow: "hidden" } }, h("div", { class: "ez-padding--medium", style: { height: "50%" } }, h("ez-skeleton", { count: 1, variant: "text", width: "100%", height: "100%", animation: "progress" })), h("div", { class: "ez-padding--medium", style: {} }, h("ez-skeleton", { count: 1, variant: "text", width: "250px", height: "25px", animation: "progress" })), h("div", { class: "ez-flex ez-padding--medium", style: { height: "45%" } }, [1, 2].map(() => (h("div", { style: { width: "50%" } }, h("ez-skeleton", { count: 1, variant: "text", width: "100%", height: "100%", animation: "progress" })))))), h("div", { class: "ez-flex ez-flex--column ez-padding--medium", style: { width: "30%", overflow: "hidden" } }, Array(this.getCountSkeleton(30, 10)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" }))))));
|
1538
1700
|
}
|
1539
1701
|
getSkeletonTemplateFormWithSidebar() {
|
1540
|
-
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, h("ez-skeleton", { count: 1, variant: "
|
1702
|
+
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, h("ez-skeleton", { count: 1, variant: "text", width: "70%", height: "25px", animation: "progress" })), h("div", { class: "ez-flex ez-margin--medium ez-margin-top--medium", style: { maxHeight: "calc(-105px + 100vh)", overflow: "hidden" } }, h("div", { class: "ez-flex ez-flex--column ez-margin-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(30, 6)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "text", width: this.getSkeletonRandomWidth(), height: "30px", animation: "progress", marginBottom: "10px" }))), h("div", { class: "ez-flex ez-flex--column", style: { width: "75%" } }, h("div", { class: "ez-padding--medium", style: { width: "100%" } }, h("ez-skeleton", { count: 1, variant: "text", width: "30%", height: "25px", animation: "progress" })), h("div", { class: "ez-padding--medium", style: { height: "45%" } }, h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" }))))))), h("div", { class: "ez-padding--medium", style: { width: "100%" } }, h("ez-skeleton", { count: 1, variant: "text", width: "30%", height: "25px", animation: "progress" })), h("div", { class: "ez-padding--medium", style: { height: "45%" } }, h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index) => h("ez-skeleton", { key: index, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))))))))));
|
1541
1703
|
}
|
1542
1704
|
getSpinnerLoadingDefault() {
|
1543
1705
|
return (h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, h("div", { class: "ez-flex ez-size-height--full ez-size-width--full ez-flex--justify-center ez-flex--align-items-center spinner" }, h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), h("span", { class: "ez-title ez-title--secondary ez-title--extra-large" }, "Carregando..."))));
|
@@ -1564,6 +1726,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1564
1726
|
"_templateSkeleton": [32],
|
1565
1727
|
"_activeScrimWindow": [32],
|
1566
1728
|
"getKeyboardManager": [64],
|
1729
|
+
"getLayoutFormConfig": [64],
|
1567
1730
|
"isUserSup": [64],
|
1568
1731
|
"addPendingAction": [64],
|
1569
1732
|
"callServiceBroker": [64],
|
@@ -1604,6 +1767,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1604
1767
|
"isLoadedByPk": [64],
|
1605
1768
|
"preloadMangerRemoveRecord": [64],
|
1606
1769
|
"executeSearch": [64],
|
1770
|
+
"executePreparedSearchPlus": [64],
|
1607
1771
|
"executePreparedSearch": [64],
|
1608
1772
|
"isDebugMode": [64],
|
1609
1773
|
"getAppLabel": [64],
|
@@ -1614,6 +1778,8 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
1614
1778
|
"getDataFetcher": [64],
|
1615
1779
|
"whenApplicationReady": [64],
|
1616
1780
|
"setSearchFilterContext": [64],
|
1781
|
+
"clearPopUpTitle": [64],
|
1782
|
+
"setPopUpTitle": [64],
|
1617
1783
|
"showScrimApp": [64],
|
1618
1784
|
"markToReload": [64],
|
1619
1785
|
"addLoadingLock": [64]
|