@sankhyalabs/sankhyablocks 9.1.0-dev.2 → 9.1.0-dev.20
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-0ce2bcd9.js → ClientSideExporterProvider-994f6e26.js} +10 -6
- package/dist/cjs/{ConfigStorage-48ba265b.js → ConfigStorage-1931defc.js} +12 -2
- package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-ad9fb3bb.js} +2917 -210
- package/dist/cjs/{FormConfigHelper-c664dbae.js → FormConfigHelper-ebb77625.js} +4 -5
- package/dist/cjs/{ISave-c76e2c51.js → ISave-18ffb73e.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-aa4631bd.js → SnkFormConfigManager-65e5288e.js} +3 -3
- package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-afbe69ab.js} +1 -1
- package/dist/cjs/config-header.cjs.entry.js +2 -2
- package/dist/cjs/{dataunit-fetcher-a723f0dc.js → dataunit-fetcher-c7253b02.js} +25 -21
- package/dist/cjs/field-config_2.cjs.entry.js +10 -7
- package/dist/cjs/fields-layout.cjs.entry.js +20 -13
- package/dist/cjs/fields-selector.cjs.entry.js +12 -7
- package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-f6e66d64.js} +1 -1
- package/dist/cjs/guides-configurator.cjs.entry.js +14 -3
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +12 -8
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_8.cjs.entry.js +134 -225
- package/dist/cjs/snk-application.cjs.entry.js +282 -78
- package/dist/cjs/snk-attach.cjs.entry.js +46 -23
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +18 -13
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
- package/dist/cjs/{snk-data-unit-3684c96e.js → snk-data-unit-448fce74.js} +14 -20
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +21 -15
- package/dist/cjs/snk-entity-list.cjs.entry.js +20 -14
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +21 -20
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +52 -120
- package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-number.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +3 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +9 -9
- package/dist/cjs/snk-grid.cjs.entry.js +8 -8
- package/dist/cjs/{snk-guides-viewer-edc0a00a.js → snk-guides-viewer-c23ed218.js} +9 -9
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +6 -4
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +4 -4
- package/dist/cjs/snk-pesquisa.cjs.entry.js +26 -19
- package/dist/cjs/snk-simple-crud.cjs.entry.js +25 -23
- package/dist/collection/components/snk-actions-button/clientEvent/index.js +3 -2
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +12 -6
- package/dist/collection/components/snk-application/snk-application.js +1305 -328
- package/dist/collection/components/snk-attach/snk-attach.js +46 -12
- package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +7 -4
- package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +7 -3
- package/dist/collection/components/snk-configurator/snk-configurator.js +1 -1
- package/dist/collection/components/snk-crud/snk-crud.js +31 -8
- package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +11 -3
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +4 -4
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +5 -5
- package/dist/collection/components/snk-data-unit/MultipleUpdateHelper.js +4 -1
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +0 -8
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +40 -15
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +3 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +3 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +6 -4
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +3 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +49 -121
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +1 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +1 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +5 -5
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +4 -5
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +1 -1
- package/dist/collection/components/snk-form-config/config-header/config-header.js +2 -2
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +2 -2
- package/dist/collection/components/snk-form-config/field-item/field-item.css +3 -23
- package/dist/collection/components/snk-form-config/field-item/field-item.js +6 -3
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +6 -14
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +20 -11
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +4 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +30 -5
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +2 -2
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +15 -2
- package/dist/collection/components/snk-form-config/snk-form-config.js +3 -3
- package/dist/collection/components/snk-grid/snk-grid.js +16 -2
- package/dist/collection/components/snk-grid-config/snk-grid-config.css +7 -41
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +116 -213
- package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css +1 -0
- package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +20 -1
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +30 -1
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js +3 -3
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/filter-operands/filter-operands.js +12 -12
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js +6 -5
- package/dist/collection/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.js +28 -4
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +23 -16
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +20 -18
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +1 -0
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +26 -1
- package/dist/collection/lib/configs/ConfigStorage.js +3 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +25 -13
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js +22 -20
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +3 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +9 -1
- package/dist/collection/lib/message/SnkMessageBuilder.js +34 -56
- package/dist/collection/lib/message/messageResourceEnUSUtils.js +76 -0
- package/dist/collection/lib/message/messageResourceEsESUtils.js +76 -0
- package/dist/collection/lib/message/messageResourcePtBRUtils.js +76 -0
- package/dist/collection/lib/message/resources/en-us/continuousInsertUtils.msg.js +6 -0
- package/dist/collection/lib/message/resources/en-us/crud-utils.msg.js +3 -0
- package/dist/collection/lib/message/resources/en-us/dataFetcher.msg.js +12 -0
- package/dist/collection/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.js +18 -0
- package/dist/collection/lib/message/resources/en-us/file-viewer.msg.js +9 -0
- package/dist/collection/lib/message/resources/en-us/snk-actions-button.msg.js +29 -0
- package/dist/collection/lib/message/resources/en-us/snk-application.msg.js +27 -0
- package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js +42 -0
- package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js +13 -0
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +35 -0
- package/dist/collection/lib/message/resources/en-us/snk-data-exporter.msg.js +35 -0
- package/dist/collection/lib/message/resources/en-us/snk-data-unit.msg.js +40 -0
- package/dist/collection/lib/message/resources/en-us/snk-entity-list.msg.js +3 -0
- package/dist/collection/lib/message/resources/en-us/snk-error-handler.msg.js +17 -0
- package/dist/collection/lib/message/resources/en-us/snk-exporter.msg.js +20 -0
- package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +71 -0
- package/dist/collection/lib/message/resources/en-us/snk-filter-field-search.msg.js +7 -0
- package/dist/collection/lib/message/resources/en-us/snk-filter-list.msg.js +3 -0
- package/dist/collection/lib/message/resources/en-us/snk-filter-param-config.msg.js +18 -0
- package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +118 -0
- package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js +41 -0
- package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -0
- package/dist/collection/lib/message/resources/en-us/snk-personalized-filter.msg.js +105 -0
- package/dist/collection/lib/message/resources/en-us/snk-pesquisa.msg.js +25 -0
- package/dist/collection/lib/message/resources/en-us/snk-print-selector.msg.js +23 -0
- package/dist/collection/lib/message/resources/en-us/snk-simple-bar.msg.js +3 -0
- package/dist/collection/lib/message/resources/en-us/snk-simple-crud.msg.js +14 -0
- package/dist/collection/lib/message/resources/en-us/snk-simple-form-config.msg.js +16 -0
- package/dist/collection/lib/message/resources/en-us/snk-taskbar.msg.js +18 -0
- package/dist/collection/lib/message/resources/es-es/continuousInsertUtils.msg.js +6 -0
- package/dist/collection/lib/message/resources/es-es/crud-utils.msg.js +3 -0
- package/dist/collection/lib/message/resources/es-es/dataFetcher.msg.js +12 -0
- package/dist/collection/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.js +18 -0
- package/dist/collection/lib/message/resources/es-es/file-viewer.msg.js +9 -0
- package/dist/collection/lib/message/resources/es-es/snk-actions-button.msg.js +29 -0
- package/dist/collection/lib/message/resources/es-es/snk-application.msg.js +27 -0
- package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js +42 -0
- package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js +13 -0
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +35 -0
- package/dist/collection/lib/message/resources/es-es/snk-data-exporter.msg.js +35 -0
- package/dist/collection/lib/message/resources/es-es/snk-data-unit.msg.js +40 -0
- package/dist/collection/lib/message/resources/es-es/snk-entity-list.msg.js +3 -0
- package/dist/collection/lib/message/resources/es-es/snk-error-handler.msg.js +17 -0
- package/dist/collection/lib/message/resources/es-es/snk-exporter.msg.js +20 -0
- package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +71 -0
- package/dist/collection/lib/message/resources/es-es/snk-filter-field-search.msg.js +7 -0
- package/dist/collection/lib/message/resources/es-es/snk-filter-list.msg.js +3 -0
- package/dist/collection/lib/message/resources/es-es/snk-filter-param-config.msg.js +18 -0
- package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +118 -0
- package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js +41 -0
- package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +10 -0
- package/dist/collection/lib/message/resources/es-es/snk-personalized-filter.msg.js +105 -0
- package/dist/collection/lib/message/resources/es-es/snk-pesquisa.msg.js +25 -0
- package/dist/collection/lib/message/resources/es-es/snk-print-selector.msg.js +23 -0
- package/dist/collection/lib/message/resources/es-es/snk-simple-bar.msg.js +3 -0
- package/dist/collection/lib/message/resources/es-es/snk-simple-crud.msg.js +14 -0
- package/dist/collection/lib/message/resources/es-es/snk-simple-form-config.msg.js +16 -0
- package/dist/collection/lib/message/resources/es-es/snk-taskbar.msg.js +18 -0
- package/dist/collection/lib/message/resources/pt-br/continuousInsertUtils.msg.js +6 -0
- package/dist/collection/lib/message/resources/{crud-utils.msg.js → pt-br/crud-utils.msg.js} +1 -2
- package/dist/collection/lib/message/resources/pt-br/dataFetcher.msg.js +12 -0
- package/dist/collection/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.js +18 -0
- package/dist/collection/lib/message/resources/{file-viewer.msg.js → pt-br/file-viewer.msg.js} +1 -2
- package/dist/collection/lib/message/resources/{snk-actions-button.msg.js → pt-br/snk-actions-button.msg.js} +3 -1
- package/dist/collection/lib/message/resources/pt-br/snk-application.msg.js +27 -0
- package/dist/collection/lib/message/resources/{snk-attach.msg.js → pt-br/snk-attach.msg.js} +3 -1
- package/dist/collection/lib/message/resources/{snk-configurator.msg.js → pt-br/snk-configurator.msg.js} +6 -1
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +35 -0
- package/dist/collection/lib/message/resources/{snk-data-unit.msg.js → pt-br/snk-data-unit.msg.js} +5 -2
- package/dist/collection/lib/message/resources/pt-br/snk-error-handler.msg.js +17 -0
- package/dist/collection/lib/message/resources/{snk-exporter.msg.js → pt-br/snk-exporter.msg.js} +1 -2
- package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +71 -0
- package/dist/collection/lib/message/resources/pt-br/snk-filter-list.msg.js +3 -0
- package/dist/collection/lib/message/resources/{snk-form.msg.js → pt-br/snk-form.msg.js} +45 -3
- package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js +41 -0
- package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -0
- package/dist/collection/lib/message/resources/{snk-personalized-filter.msg.js → pt-br/snk-personalized-filter.msg.js} +17 -0
- package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js +24 -0
- package/dist/collection/lib/message/resources/{snk-simple-crud.msg.js → pt-br/snk-simple-crud.msg.js} +6 -1
- package/dist/collection/lib/message/resources/pt-br/snk-simple-form-config.msg.js +16 -0
- package/dist/collection/lib/message/resources/{snk-taskbar.msg.js → pt-br/snk-taskbar.msg.js} +1 -2
- package/dist/collection/lib/utils/ContinuousInsertUtils.js +6 -2
- package/dist/components/ConfigStorage.js +11 -1
- package/dist/components/ContinuousInsertUtils.js +6 -2
- package/dist/components/DataFetcher.js +2701 -15
- package/dist/components/SnkFormConfigManager.js +1 -1
- package/dist/components/config-header2.js +2 -2
- package/dist/components/dataunit-fetcher.js +25 -21
- package/dist/components/field-config2.js +6 -7
- package/dist/components/field-item2.js +7 -4
- package/dist/components/fields-layout2.js +19 -12
- package/dist/components/fields-selector2.js +12 -6
- package/dist/components/guides-configurator2.js +14 -3
- package/dist/components/pesquisa-tree2.js +9 -4
- package/dist/components/snk-actions-button2.js +3 -2
- package/dist/components/snk-application2.js +277 -72
- package/dist/components/snk-attach2.js +43 -19
- package/dist/components/snk-configurator2.js +1 -1
- package/dist/components/snk-crud.js +13 -8
- package/dist/components/snk-data-unit2.js +5 -11
- package/dist/components/snk-detail-view2.js +19 -13
- package/dist/components/snk-entity-list.js +21 -15
- package/dist/components/snk-expression-group2.js +3 -3
- package/dist/components/snk-expression-item2.js +18 -17
- package/dist/components/snk-filter-bar2.js +6 -6
- package/dist/components/snk-filter-detail2.js +3 -1
- package/dist/components/snk-filter-item2.js +43 -111
- package/dist/components/snk-filter-list.js +1 -1
- package/dist/components/snk-filter-modal.js +1 -1
- package/dist/components/snk-filter-number.js +3 -1
- package/dist/components/snk-filter-period.js +3 -1
- package/dist/components/snk-form-config2.js +3 -3
- package/dist/components/snk-grid-config2.js +113 -214
- package/dist/components/snk-grid2.js +2 -2
- package/dist/components/snk-layout-form-config2.js +7 -1
- package/dist/components/snk-personalized-filter-editor.js +6 -4
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-pesquisa2.js +23 -16
- package/dist/components/snk-select-box2.js +5 -3
- package/dist/components/snk-simple-crud2.js +19 -17
- package/dist/components/snk-simple-form-config2.js +8 -2
- package/dist/esm/{ClientSideExporterProvider-3ed744fd.js → ClientSideExporterProvider-7c2781f4.js} +10 -6
- package/dist/esm/{ConfigStorage-79b9e180.js → ConfigStorage-b5a1dba3.js} +12 -2
- package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-6f6de657.js} +2701 -15
- package/dist/esm/{FormConfigHelper-49fe72ca.js → FormConfigHelper-4e42f0b6.js} +4 -5
- package/dist/esm/{ISave-5efafc97.js → ISave-7ecdca20.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-b4b93298.js → SnkFormConfigManager-34fc1dc7.js} +3 -3
- package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-7332a9a9.js} +1 -1
- package/dist/esm/config-header.entry.js +2 -2
- package/dist/esm/{dataunit-fetcher-0e025732.js → dataunit-fetcher-f21cbad0.js} +25 -21
- package/dist/esm/field-config_2.entry.js +10 -7
- package/dist/esm/fields-layout.entry.js +20 -13
- package/dist/esm/fields-selector.entry.js +12 -7
- package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-6ab4e805.js} +1 -1
- package/dist/esm/guides-configurator.entry.js +14 -3
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +12 -8
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_8.entry.js +134 -225
- package/dist/esm/snk-application.entry.js +281 -77
- package/dist/esm/snk-attach.entry.js +46 -23
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +18 -13
- package/dist/esm/snk-data-exporter.entry.js +5 -6
- package/dist/esm/{snk-data-unit-027bca56.js → snk-data-unit-b7e6e7a6.js} +6 -12
- package/dist/esm/snk-data-unit.entry.js +3 -4
- package/dist/esm/snk-detail-view.entry.js +21 -15
- package/dist/esm/snk-entity-list.entry.js +20 -14
- package/dist/esm/snk-expression-group_2.entry.js +21 -20
- package/dist/esm/snk-filter-bar_4.entry.js +53 -121
- package/dist/esm/snk-filter-detail.entry.js +3 -1
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-filter-number.entry.js +3 -1
- package/dist/esm/snk-filter-period.entry.js +3 -1
- package/dist/esm/snk-form_2.entry.js +9 -9
- package/dist/esm/snk-grid.entry.js +8 -8
- package/dist/esm/{snk-guides-viewer-32f3d3ab.js → snk-guides-viewer-fbfece85.js} +10 -10
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter-editor.entry.js +6 -4
- package/dist/esm/snk-personalized-filter.entry.js +4 -4
- package/dist/esm/snk-pesquisa.entry.js +27 -20
- package/dist/esm/snk-simple-crud.entry.js +26 -24
- package/dist/sankhyablocks/p-012208e0.entry.js +1 -0
- package/dist/sankhyablocks/p-07b14811.entry.js +1 -0
- package/dist/sankhyablocks/p-0dac8fef.js +1 -0
- package/dist/sankhyablocks/p-0e495575.js +1 -0
- package/dist/sankhyablocks/p-11346b8d.entry.js +1 -0
- package/dist/sankhyablocks/{p-a6513fcb.js → p-1210500e.js} +1 -1
- package/dist/sankhyablocks/p-158adf33.entry.js +1 -0
- package/dist/sankhyablocks/p-162bddae.entry.js +1 -0
- package/dist/sankhyablocks/{p-763b04fa.js → p-16fc4acd.js} +1 -1
- package/dist/sankhyablocks/p-25209340.entry.js +1 -0
- package/dist/sankhyablocks/p-295b83ae.entry.js +1 -0
- package/dist/sankhyablocks/p-3dba3468.js +56 -0
- package/dist/sankhyablocks/p-4872dc3a.entry.js +1 -0
- package/dist/sankhyablocks/{p-c926cf6b.entry.js → p-4e63ffed.entry.js} +1 -1
- package/dist/sankhyablocks/p-5bab470d.entry.js +1 -0
- package/dist/sankhyablocks/p-5c7af8a9.entry.js +1 -0
- package/dist/sankhyablocks/p-5e282b33.entry.js +1 -0
- package/dist/sankhyablocks/p-6703336d.entry.js +1 -0
- package/dist/sankhyablocks/p-6a015ba2.js +1 -0
- package/dist/sankhyablocks/p-735a1175.entry.js +1 -0
- package/dist/sankhyablocks/p-75af335e.entry.js +1 -0
- package/dist/sankhyablocks/p-7b3ca294.entry.js +1 -0
- package/dist/sankhyablocks/p-81769310.entry.js +11 -0
- package/dist/sankhyablocks/p-8d1508aa.entry.js +1 -0
- package/dist/sankhyablocks/p-8f73da95.js +1 -0
- package/dist/sankhyablocks/p-a5108625.entry.js +1 -0
- package/dist/sankhyablocks/p-a86eee47.entry.js +1 -0
- package/dist/sankhyablocks/p-ad2ae575.entry.js +1 -0
- package/dist/sankhyablocks/p-b35574b5.js +60 -0
- package/dist/sankhyablocks/p-b49281be.entry.js +1 -0
- package/dist/sankhyablocks/{p-6dd38d7b.js → p-ba4979b4.js} +1 -1
- package/dist/sankhyablocks/{p-601b252b.js → p-c6331595.js} +1 -1
- package/dist/sankhyablocks/{p-73285a8a.js → p-c9e6d720.js} +1 -1
- package/dist/sankhyablocks/p-d377aa7a.entry.js +1 -0
- package/dist/sankhyablocks/p-eacff4b7.entry.js +1 -0
- package/dist/sankhyablocks/p-eb0616d3.entry.js +1 -0
- package/dist/sankhyablocks/p-f39b0ebe.entry.js +1 -0
- package/dist/sankhyablocks/p-f8f29e1a.entry.js +1 -0
- package/dist/sankhyablocks/p-fa18530e.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +1 -0
- package/dist/types/components/snk-application/snk-application.d.ts +251 -63
- package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +5 -0
- package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +1 -1
- package/dist/types/components/snk-crud/snk-crud.d.ts +2 -0
- package/dist/types/components/snk-crud/subcomponents/GuideBuilder.d.ts +4 -1
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +0 -6
- package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +8 -4
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +10 -20
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +1 -1
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +3 -1
- package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +3 -0
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +2 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +4 -0
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +14 -20
- package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +4 -0
- package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +3 -0
- package/dist/types/components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.d.ts +1 -0
- package/dist/types/components/snk-pesquisa/pesquisa-tree/pesquisa-tree.d.ts +6 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +3 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +2 -1
- package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +6 -0
- package/dist/types/components.d.ts +288 -45
- package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +3 -2
- package/dist/types/lib/message/SnkMessageBuilder.d.ts +11 -1
- package/dist/types/lib/message/resources/en-us/continuousInsertUtils.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/crud-utils.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/dataFetcher.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/dataUnitDataLoaderHelper.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/file-viewer.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-application.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/{snk-attach.msg.d.ts → en-us/snk-attach.msg.d.ts} +0 -1
- package/dist/types/lib/message/resources/{snk-crud.msg.d.ts → en-us/snk-crud.msg.d.ts} +0 -1
- package/dist/types/lib/message/resources/en-us/snk-data-unit.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-error-handler.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-exporter.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-filter-bar.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-filter-list.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-layout-form-config.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-pesquisa.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/{snk-simple-crud.msg.d.ts → en-us/snk-simple-crud.msg.d.ts} +0 -1
- package/dist/types/lib/message/resources/en-us/snk-simple-form-config.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/en-us/snk-taskbar.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/continuousInsertUtils.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/crud-utils.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/dataFetcher.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/dataUnitDataLoaderHelper.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/file-viewer.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-actions-button.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-application.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/{snk-application.msg.d.ts → es-es/snk-attach.msg.d.ts} +0 -1
- package/dist/types/lib/message/resources/es-es/snk-configurator.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-crud.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-data-exporter.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-data-unit.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-entity-list.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-error-handler.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-exporter.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-filter-bar.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-filter-field-search.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-filter-list.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-filter-param-config.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-form.msg.d.ts +4 -0
- package/dist/types/lib/message/resources/es-es/snk-grid.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/es-es/snk-layout-form-config.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-personalized-filter.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-pesquisa.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-print-selector.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-simple-bar.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-simple-crud.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-simple-form-config.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-taskbar.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/continuousInsertUtils.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/crud-utils.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/dataFetcher.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/dataUnitDataLoaderHelper.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/file-viewer.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-actions-button.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-application.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-attach.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-configurator.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-crud.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-data-exporter.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-data-unit.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-entity-list.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-error-handler.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-exporter.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-filter-bar.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-filter-field-search.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-filter-list.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-filter-param-config.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-form.msg.d.ts +4 -0
- package/dist/types/lib/message/resources/pt-br/snk-grid.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/pt-br/snk-layout-form-config.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-personalized-filter.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-pesquisa.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-print-selector.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-simple-bar.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-simple-crud.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-simple-form-config.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-taskbar.msg.d.ts +1 -0
- package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/SnkMessageBuilder-e3b7850b.js +0 -723
- package/dist/collection/lib/message/resources/snk-application.msg.js +0 -9
- package/dist/collection/lib/message/resources/snk-crud.msg.js +0 -11
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +0 -65
- package/dist/collection/lib/message/resources/snk-grid.msg.js +0 -32
- package/dist/components/SnkMessageBuilder.js +0 -701
- package/dist/esm/SnkMessageBuilder-9c269caf.js +0 -701
- package/dist/sankhyablocks/p-09e60995.entry.js +0 -11
- package/dist/sankhyablocks/p-0cb295c1.entry.js +0 -1
- package/dist/sankhyablocks/p-1456d7cb.entry.js +0 -1
- package/dist/sankhyablocks/p-2bde486e.js +0 -1
- package/dist/sankhyablocks/p-349d1968.entry.js +0 -1
- package/dist/sankhyablocks/p-35e73c5d.js +0 -1
- package/dist/sankhyablocks/p-3a48bff3.entry.js +0 -1
- package/dist/sankhyablocks/p-3f24c9b2.js +0 -1
- package/dist/sankhyablocks/p-49d968e2.entry.js +0 -1
- package/dist/sankhyablocks/p-4d2ff2fb.entry.js +0 -1
- package/dist/sankhyablocks/p-6416975c.js +0 -56
- package/dist/sankhyablocks/p-65c5d430.entry.js +0 -1
- package/dist/sankhyablocks/p-67d6d0c8.entry.js +0 -1
- package/dist/sankhyablocks/p-71a05822.entry.js +0 -1
- package/dist/sankhyablocks/p-7993b2e3.js +0 -60
- package/dist/sankhyablocks/p-83c100f2.entry.js +0 -1
- package/dist/sankhyablocks/p-86bd4478.entry.js +0 -1
- package/dist/sankhyablocks/p-90805683.entry.js +0 -1
- package/dist/sankhyablocks/p-9751c42f.entry.js +0 -1
- package/dist/sankhyablocks/p-9ad3557c.entry.js +0 -1
- package/dist/sankhyablocks/p-a06bf7b9.entry.js +0 -1
- package/dist/sankhyablocks/p-a5bb2f93.entry.js +0 -1
- package/dist/sankhyablocks/p-afffa6cb.entry.js +0 -1
- package/dist/sankhyablocks/p-b8b4c6b2.entry.js +0 -1
- package/dist/sankhyablocks/p-bd665460.entry.js +0 -1
- package/dist/sankhyablocks/p-c3324d79.entry.js +0 -1
- package/dist/sankhyablocks/p-cfd0a4c6.entry.js +0 -1
- package/dist/sankhyablocks/p-d67526b6.entry.js +0 -1
- package/dist/sankhyablocks/p-d9491f6f.entry.js +0 -1
- package/dist/sankhyablocks/p-e3521eae.entry.js +0 -1
- package/dist/sankhyablocks/p-e7cccc45.entry.js +0 -1
- package/dist/sankhyablocks/p-e824d565.entry.js +0 -1
- package/dist/sankhyablocks/p-fbba7e3d.js +0 -1
- package/dist/sankhyablocks/p-fc0b609e.js +0 -1
- package/dist/types/lib/message/resources/crud-utils.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/file-viewer.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +0 -2
- /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-data-exporter.msg.js → pt-br/snk-data-exporter.msg.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-entity-list.msg.js → pt-br/snk-entity-list.msg.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-filter-field-search.msg.js → pt-br/snk-filter-field-search.msg.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-filter-param-config.msg.js → pt-br/snk-filter-param-config.msg.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-print-selector.msg.js → pt-br/snk-print-selector.msg.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-simple-bar.msg.js → pt-br/snk-simple-bar.msg.js} +0 -0
- /package/dist/types/components/snk-simple-crud/{regular-buttons.d.ts → snk-simple-crud.constants.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-actions-button.msg.d.ts → en-us/snk-actions-button.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-configurator.msg.d.ts → en-us/snk-configurator.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-data-exporter.msg.d.ts → en-us/snk-data-exporter.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-entity-list.msg.d.ts → en-us/snk-entity-list.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-filter-field-search.msg.d.ts → en-us/snk-filter-field-search.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-filter-param-config.msg.d.ts → en-us/snk-filter-param-config.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-form.msg.d.ts → en-us/snk-form.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-grid.msg.d.ts → en-us/snk-grid.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-personalized-filter.msg.d.ts → en-us/snk-personalized-filter.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-print-selector.msg.d.ts → en-us/snk-print-selector.msg.d.ts} +0 -0
- /package/dist/types/lib/message/resources/{snk-simple-bar.msg.d.ts → en-us/snk-simple-bar.msg.d.ts} +0 -0
@@ -1,16 +1,9 @@
|
|
1
|
-
import { ElementIDUtils,
|
1
|
+
import { ElementIDUtils, DateUtils, MaskFormatter } from '@sankhyalabs/core';
|
2
2
|
import { h, Host } from '@stencil/core';
|
3
3
|
import FilterItemType from './filter-item-type.enum';
|
4
4
|
import { FilterNumberVariation } from './editors/enum/filterNumberVariation';
|
5
5
|
export class SnkFilterItem {
|
6
6
|
constructor() {
|
7
|
-
this.innerClickCheck = (_floatingContainer, node) => {
|
8
|
-
if (node.id != FloatingManager.MODAL_ELEMENT_ID) {
|
9
|
-
return true;
|
10
|
-
}
|
11
|
-
this.detailIsVisible = false;
|
12
|
-
return false;
|
13
|
-
};
|
14
7
|
this.detailIsVisible = undefined;
|
15
8
|
this.config = undefined;
|
16
9
|
this.getMessage = undefined;
|
@@ -19,57 +12,28 @@ export class SnkFilterItem {
|
|
19
12
|
observeDetailIsVisible(value) {
|
20
13
|
this.visibleChanged.emit(value);
|
21
14
|
}
|
15
|
+
/**
|
16
|
+
* Emitido quando o estado do filtro é alterado.
|
17
|
+
*/
|
18
|
+
filterChangeListener() {
|
19
|
+
this.hideDetail();
|
20
|
+
}
|
22
21
|
/**
|
23
22
|
* Exibe os detalhes de um item da lista.
|
24
23
|
*/
|
25
24
|
async showUp(open = false) {
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
(_a = this._chipElement) === null || _a === void 0 ? void 0 : _a.blur();
|
32
|
-
window.requestAnimationFrame(() => {
|
33
|
-
this._floatingID = FloatingManager.float(this._popover, this._popoverContainer, this.getFloatOptions());
|
34
|
-
this._popover.show();
|
35
|
-
this.detailIsVisible = true;
|
36
|
-
});
|
37
|
-
}
|
38
|
-
});
|
39
|
-
}
|
40
|
-
updatePosition() {
|
41
|
-
if (this._floatingID == undefined) {
|
42
|
-
return;
|
25
|
+
var _a;
|
26
|
+
this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
|
27
|
+
if (open) {
|
28
|
+
await ((_a = this._chipElement) === null || _a === void 0 ? void 0 : _a.setBlur());
|
29
|
+
await this._popover.showUnder(this._chipElement);
|
43
30
|
}
|
44
|
-
FloatingManager.updateFloatPosition(this._popover, this._popoverContainer, this.getFloatOptions());
|
45
|
-
}
|
46
|
-
getFloatOptions() {
|
47
|
-
return {
|
48
|
-
autoClose: true,
|
49
|
-
innerClickTest: this.innerClickCheck,
|
50
|
-
backClickListener: () => this.onDetailCloseCallback(),
|
51
|
-
left: this.getOffsetLeft(),
|
52
|
-
top: this.getOffsetTop(),
|
53
|
-
useOverlay: true,
|
54
|
-
overlayClassName: 'ez-scrim ez-scrim--light',
|
55
|
-
isFixed: true
|
56
|
-
};
|
57
|
-
}
|
58
|
-
getOffsetLeft() {
|
59
|
-
const padding = getComputedStyle(this._filterItemElement).getPropertyValue("padding-left");
|
60
|
-
const rect = this._filterItemElement.getBoundingClientRect();
|
61
|
-
// Width baseado no conteudo do snk-filter-detail. Nesse momento ele retorna 0px pois ainda não foi criado em tela.
|
62
|
-
const filterDetailWidth = 430;
|
63
|
-
const adjustRightPosition = filterDetailWidth - (document.body.clientWidth - rect.left);
|
64
|
-
return `calc(${rect.x}px + ${padding} - ${adjustRightPosition > 0 ? adjustRightPosition : 0}px)`;
|
65
31
|
}
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
window.removeEventListener("scroll", this.updatePosition.bind(this));
|
72
|
-
window.addEventListener("scroll", this.updatePosition.bind(this));
|
32
|
+
/**
|
33
|
+
* Oculta os detalhes de um item da lista.
|
34
|
+
*/
|
35
|
+
async hideDetail() {
|
36
|
+
await this._popover.hide();
|
73
37
|
}
|
74
38
|
getConfigChanges() {
|
75
39
|
var _a;
|
@@ -82,51 +46,24 @@ export class SnkFilterItem {
|
|
82
46
|
const newValue = hasMultiValues ? configToBeCleared.value.map((valueItem) => (Object.assign(Object.assign({}, valueItem), { check: false }))) : undefined;
|
83
47
|
return Object.assign(Object.assign({}, configToBeCleared), { value: newValue });
|
84
48
|
}
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
if (this._floatingID != undefined) {
|
91
|
-
FloatingManager.close(this._floatingID);
|
92
|
-
}
|
49
|
+
clearFilter(event) {
|
50
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
51
|
+
if (this.canClearFilter()) {
|
52
|
+
const configChanged = this.getConfigChanges();
|
53
|
+
this.filterChange.emit(configChanged);
|
93
54
|
}
|
94
|
-
|
95
|
-
|
96
|
-
this._floatingID = undefined;
|
97
|
-
this.detailIsVisible = false;
|
98
|
-
if (this._closeCallback) {
|
99
|
-
this._closeCallback();
|
100
|
-
this._closeCallback = undefined;
|
55
|
+
else {
|
56
|
+
this.togglePopover();
|
101
57
|
}
|
102
58
|
}
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
if (evt.target === this._rightIconElement && this.canClearFilter()) {
|
109
|
-
const configChanged = this.getConfigChanges();
|
110
|
-
this.filterChange.emit(configChanged);
|
111
|
-
}
|
112
|
-
else {
|
113
|
-
if (this.detailIsVisible) {
|
114
|
-
this.hideDetail();
|
115
|
-
}
|
116
|
-
else {
|
117
|
-
this.showUp(true);
|
118
|
-
}
|
119
|
-
}
|
120
|
-
evt.preventDefault();
|
121
|
-
evt.stopImmediatePropagation();
|
122
|
-
evt.stopPropagation();
|
59
|
+
async togglePopover(event) {
|
60
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
61
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
62
|
+
if (this.detailIsVisible) {
|
63
|
+
await this.hideDetail();
|
123
64
|
}
|
124
|
-
|
125
|
-
|
126
|
-
if (this.detailIsVisible && [this._chipElement, this._leftIconElement, this._rightIconElement].includes(evt.target)) {
|
127
|
-
evt.preventDefault();
|
128
|
-
evt.stopImmediatePropagation();
|
129
|
-
evt.stopPropagation();
|
65
|
+
else {
|
66
|
+
await this.showUp(true);
|
130
67
|
}
|
131
68
|
}
|
132
69
|
getLabel(isTooltipLabel = false) {
|
@@ -247,20 +184,6 @@ export class SnkFilterItem {
|
|
247
184
|
ElementIDUtils.addIDInfo(this._filterItemElement);
|
248
185
|
this._idSnkFilterDetail = `filterDetail_${this.config.id}`;
|
249
186
|
}
|
250
|
-
this.controlScrollPage();
|
251
|
-
}
|
252
|
-
componentDidRender() {
|
253
|
-
if (this._floatingID == undefined) {
|
254
|
-
if (this._popover) {
|
255
|
-
this._popover.remove();
|
256
|
-
}
|
257
|
-
}
|
258
|
-
}
|
259
|
-
/**
|
260
|
-
* Emitido quando o estado do filtro é alterado.
|
261
|
-
*/
|
262
|
-
filterChangeListener() {
|
263
|
-
this.hideDetail();
|
264
187
|
}
|
265
188
|
canClearFilter() {
|
266
189
|
const { value, groupedItems = [] } = this.config;
|
@@ -291,17 +214,34 @@ export class SnkFilterItem {
|
|
291
214
|
return (config.type !== FilterItemType.MULTI_LIST && config.value !== undefined) || this.hasActiveElements(config.value);
|
292
215
|
}
|
293
216
|
getEnabledChip() {
|
217
|
+
if (this.detailIsVisible) {
|
218
|
+
return true;
|
219
|
+
}
|
294
220
|
if (this.config.type === FilterItemType.PERSONALIZED) {
|
295
221
|
const { groupedItems = [] } = this.config;
|
296
222
|
return groupedItems.some(item => item.visible);
|
297
223
|
}
|
298
224
|
return this.hasActiveValue(this.config);
|
299
225
|
}
|
226
|
+
handleVisibilityPopover(event) {
|
227
|
+
this.detailIsVisible = event.detail;
|
228
|
+
}
|
300
229
|
render() {
|
301
230
|
const leftIcon = this.getLeftIconName();
|
302
|
-
return (h(Host, null, this.showChips && (h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon && (h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon,
|
231
|
+
return (h(Host, null, this.showChips && (h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip(), onClick: (event) => this.togglePopover(event), disableAutoUpdateValue: true, type: "secondary" }, leftIcon && (h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, slot: "leftIcon" })), h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), slot: "rightIcon", id: "removeFilter", onClick: (event) => this.clearFilter(event) }))), h("ez-popover-core", { ref: elem => this._popover = elem, onEzVisibilityChange: (event) => this.handleVisibilityPopover(event) }, h("snk-filter-detail", { key: this.config.id, config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", "data-element-id": this._idSnkFilterDetail, showHardFixed: this.showChips }))));
|
303
232
|
}
|
304
233
|
static get is() { return "snk-filter-item"; }
|
234
|
+
static get encapsulation() { return "scoped"; }
|
235
|
+
static get originalStyleUrls() {
|
236
|
+
return {
|
237
|
+
"$": ["snk-filter-item.css"]
|
238
|
+
};
|
239
|
+
}
|
240
|
+
static get styleUrls() {
|
241
|
+
return {
|
242
|
+
"$": ["snk-filter-item.css"]
|
243
|
+
};
|
244
|
+
}
|
305
245
|
static get properties() {
|
306
246
|
return {
|
307
247
|
"config": {
|
@@ -448,18 +388,6 @@ export class SnkFilterItem {
|
|
448
388
|
}
|
449
389
|
static get listeners() {
|
450
390
|
return [{
|
451
|
-
"name": "click",
|
452
|
-
"method": "clickListener",
|
453
|
-
"target": undefined,
|
454
|
-
"capture": true,
|
455
|
-
"passive": false
|
456
|
-
}, {
|
457
|
-
"name": "mousedown",
|
458
|
-
"method": "mouseDownListener",
|
459
|
-
"target": undefined,
|
460
|
-
"capture": true,
|
461
|
-
"passive": false
|
462
|
-
}, {
|
463
391
|
"name": "filterChange",
|
464
392
|
"method": "filterChangeListener",
|
465
393
|
"target": undefined,
|
@@ -95,7 +95,7 @@ export class SnkFilterList {
|
|
95
95
|
const hideItems = !this._filterArgument && !this._showAll && (items.length > MAX_FILTERS + 1);
|
96
96
|
if (hideItems) {
|
97
97
|
items.splice(MAX_FILTERS);
|
98
|
-
items.push({ kind: "INTERNAL", label: "
|
98
|
+
items.push({ kind: "INTERNAL", label: this.getMessage("snkFilterList.showMore"), iconName: "dots-horizontal", name: SHOW_MORE_ITEM_NAME, iconClass: "snk-filter-bar__filter-list-item__icon--secondary", labelClass: "snk-filter-bar__filter-list-item__label--secondary" });
|
99
99
|
}
|
100
100
|
this._selectableItemsCount = 0;
|
101
101
|
return h("div", { class: "sc-snk-filter-bar snk-filter-bar__filter-list-items-container" }, items.map(item => this.buildItemElement(item)));
|
@@ -233,7 +233,7 @@ export class SnkFilterModal {
|
|
233
233
|
return null;
|
234
234
|
const appliedFilters = this.getIformedFiltersCount(listItems);
|
235
235
|
const lines = this.mountFiltersLines(listItems);
|
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: "
|
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: this.getCustomMessage("clearModal"), onClick: () => isSingleItem ? this.handleClearSigleFilter(listItems[0]) : this.handleClearFilterList(listItems) })))));
|
237
237
|
}
|
238
238
|
handleDeleteFilter() {
|
239
239
|
this._application.confirm(this.getMessage('snkPersonalizedFilter.deleteConfirm.title'), this.getMessage('snkPersonalizedFilter.info.deleteDefaultFilterConfirm'), "alert-circle-inverted", "critical").then((actionConfirmed) => {
|
@@ -114,7 +114,7 @@ export class SnkFilterBar {
|
|
114
114
|
async updateFilterItem(newFilterItem) {
|
115
115
|
const itemIndex = this.filterConfig.findIndex(item => item.id === newFilterItem.id);
|
116
116
|
if (itemIndex == -1) {
|
117
|
-
console.warn("[SnkFilterBar.updateFilterItem]
|
117
|
+
console.warn("[SnkFilterBar.updateFilterItem] " + this.getMessage("snkFilterBar.filterItem.updateFilterItemNotFound"));
|
118
118
|
return Promise.resolve();
|
119
119
|
}
|
120
120
|
this._loadingPending = true;
|
@@ -129,7 +129,7 @@ export class SnkFilterBar {
|
|
129
129
|
async addFilterItem(filterItem) {
|
130
130
|
const itemIndex = this.filterConfig.findIndex(item => item.id === filterItem.id);
|
131
131
|
if (itemIndex > -1) {
|
132
|
-
console.warn("[SnkFilterBar.addFilterItem]
|
132
|
+
console.warn("[SnkFilterBar.addFilterItem] " + this.getMessage("snkFilterBar.filterItem.addFilterItemExists"));
|
133
133
|
return Promise.resolve();
|
134
134
|
}
|
135
135
|
this.filterConfig.push(filterItem);
|
@@ -147,7 +147,7 @@ export class SnkFilterBar {
|
|
147
147
|
async removeFilterItem(filterID) {
|
148
148
|
const itemIndex = this.filterConfig.findIndex(item => item.id === filterID);
|
149
149
|
if (itemIndex == -1) {
|
150
|
-
console.warn("[SnkFilterBar.removeFilterItem]
|
150
|
+
console.warn("[SnkFilterBar.removeFilterItem] " + this.getMessage("snkFilterBar.filterItem.removeFilterItemNotFound"));
|
151
151
|
return Promise.resolve(undefined);
|
152
152
|
}
|
153
153
|
const itemToRemove = this.filterConfig[itemIndex];
|
@@ -491,9 +491,9 @@ export class SnkFilterBar {
|
|
491
491
|
return h("snk-personalized-filter", { class: "filter-bar__personalized-filter", filterId: this.personalizedFilterId, ref: (el) => this._elPersonalizedFilter = el, isDefaultFilter: this._isDefaultFilter, onEzCancel: () => this.handleHidePersonalizedFilter(false), onEzAfterSave: () => this.handleHidePersonalizedFilter(true), entityUri: this.dataUnit.name, configName: this.configName, resourceID: this.resourceID });
|
492
492
|
}
|
493
493
|
if (this.mode !== "regular") {
|
494
|
-
return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined,
|
494
|
+
return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), this.mode === 'button' && (h("ez-button", { class: "ez-margin-left--medium", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) }))));
|
495
495
|
}
|
496
|
-
return (h(Host, null, h("div", null, h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), h("ez-button", { class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined,
|
496
|
+
return (h(Host, null, h("div", null, h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), h("ez-button", { class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", label: this.getMessage('snkFilterBar.filters', undefined, this.getMessage("snkFilterBar.filters")), onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" }))));
|
497
497
|
}
|
498
498
|
static get is() { return "snk-filter-bar"; }
|
499
499
|
static get encapsulation() { return "scoped"; }
|
@@ -72,12 +72,11 @@ export function getValueByProperty(property, fieldDescriptor, defaultValue) {
|
|
72
72
|
export function getIconName(userInterface) {
|
73
73
|
return iconMap.get(userInterface) || 'text';
|
74
74
|
}
|
75
|
-
export function buildNewGuideName(guidesList) {
|
75
|
+
export function buildNewGuideName(guidesList, getMessage) {
|
76
76
|
var _a, _b;
|
77
|
-
const
|
78
|
-
|
79
|
-
|
80
|
-
: `${TAB_NAMES.newGuide} (${qtdWithNewGuideName})`;
|
77
|
+
const newGuideText = getMessage('snkFormConfig.form.newGuide');
|
78
|
+
const qtdWithNewGuideName = (_b = (_a = guidesList.filter(g => g.name.includes(newGuideText))) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
79
|
+
return qtdWithNewGuideName === 0 ? newGuideText : `${newGuideText} (${qtdWithNewGuideName})`;
|
81
80
|
}
|
82
81
|
export function getFieldsToSave(guidesMap) {
|
83
82
|
const fieldsToSave = [];
|
@@ -150,7 +150,7 @@ export class SnkFormConfigManager {
|
|
150
150
|
}
|
151
151
|
}
|
152
152
|
getConfig(dataUnit, ignoreReadOnlyFormFields) {
|
153
|
-
return this.getFormConfig(dataUnit, ignoreReadOnlyFormFields
|
153
|
+
return this.getFormConfig(dataUnit, ignoreReadOnlyFormFields);
|
154
154
|
}
|
155
155
|
getFormConfigFetcher() {
|
156
156
|
if (this._formConfigFetcher == undefined) {
|
@@ -56,9 +56,9 @@ export class ConfigHeader {
|
|
56
56
|
if (!this.hasChanges && !this.optionConfigChanged)
|
57
57
|
return;
|
58
58
|
if (this.hasChanges) {
|
59
|
-
return (h("div", { class: "right-group" }, h("ez-button", { title: '
|
59
|
+
return (h("div", { class: "right-group" }, h("ez-button", { title: this.getMessage('snkFormConfig.actions.cancel'), label: this.getMessage('snkFormConfig.actions.cancel'), onClick: this.closeFormConfig.bind(this), size: "medium" }), h("ez-button", { title: this.getMessage('snkFormConfig.actions.save'), label: this.getMessage('snkFormConfig.actions.save'), class: 'ez-button--primary ez-padding-left--medium', onClick: () => this.saveFormConfig(), size: "medium" })));
|
60
60
|
}
|
61
|
-
return (h("div", { class: "right-group" }, h("ez-button", { title: '
|
61
|
+
return (h("div", { class: "right-group" }, h("ez-button", { title: this.getMessage('snkFormConfig.actions.cancel'), label: this.getMessage('snkFormConfig.actions.cancel'), onClick: this.closeFormConfig.bind(this), size: "medium" }), h("ez-button", { title: this.getMessage('snkFormConfig.actions.save'), label: this.getMessage('snkFormConfig.applyConfig'), class: 'ez-button--primary ez-padding-left--medium', onClick: async () => await this.applyOptionConfig(), size: "medium" })));
|
62
62
|
}
|
63
63
|
render() {
|
64
64
|
return (h(Host, null, h("div", { class: 'left-group' }, h("ez-button", { mode: "icon", title: this.getMessage('snkFormConfig.goBackTitle'), iconName: "arrow_back", class: "ez-padding--small", size: "small", onClick: this.closeFormConfig.bind(this), id: "formConfigToBack" }), h("h1", { class: "ez-title ez-title--primary ez-title--extra-large ez-padding--small" }, this.getMessage('snkFormConfig.title')), h("configs-button", { hasChanges: this.hasChanges, configOptions: this.configOptions, selectedConfig: this.selectedConfig, messagesBuilder: this.messagesBuilder })), this.renderSaveActions()));
|
@@ -228,7 +228,7 @@ export class FieldConfig {
|
|
228
228
|
this._popoupElement.opened = false;
|
229
229
|
}
|
230
230
|
applyErrorMessage() {
|
231
|
-
this.fieldLabelErrorMessage =
|
231
|
+
this.fieldLabelErrorMessage = `${this.getMessage('snkConfigOptions.validation.requiredField')} ${this.getMessage('snkConfigOptions.label.nameField')}`;
|
232
232
|
}
|
233
233
|
handleDiscardChanges() {
|
234
234
|
this.initializeValues();
|
@@ -239,7 +239,7 @@ export class FieldConfig {
|
|
239
239
|
this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
|
240
240
|
}
|
241
241
|
render() {
|
242
|
-
return (h("ez-popup", { heightMode: 'auto', size: 'auto', "ez-title": '
|
242
|
+
return (h("ez-popup", { heightMode: 'auto', size: 'auto', "ez-title": this.getMessage('snkConfigOptions.fieldConfig.title'), onEzClosePopup: () => this.handleDiscardChanges(), ref: ref => this._popoupElement = ref }, h("div", { class: 'field-config-container' }, h("ez-text-input", { label: this.getMessage('snkConfigOptions.label.nameField'), value: this.fieldLabel, errorMessage: this.fieldLabelErrorMessage, hasInvalid: !!this.fieldLabelErrorMessage, onEzChange: (e) => this.handleLabelChanged(e) }), h("ez-combo-box", { label: this.getMessage('snkConfigOptions.label.typeValueDefault'), suppressEmptyOption: true, enabled: this.enabledValueDefault(), onEzChange: (e) => this.handleDefaultTypeChanged(e), value: this.getDefaultType() }, h("option", { value: DEFAULT_TYPE.fixed }, this.getMessage('snkConfigOptions.options.valueFixed')), h("option", { value: DEFAULT_TYPE.variable }, this.getMessage('snkConfigOptions.options.variable'))), this.renderDefaultValueEditor(), h("ez-check", { label: this.getMessage('snkConfigOptions.label.clearDuplicate'), value: this.fieldCleanOnCopy, onEzChange: (e) => this.handleClearDuplicateChanged(e) }), h("ez-check", { label: this.getMessage('snkConfigOptions.label.requiredField'), enabled: getEnabledByProperty('required', 'systemRequired', this.fieldDescriptor), value: getValueByProperty('required', this.fieldDescriptor, this.fieldRequired), onEzChange: (e) => this.handleRequiredChanged(e) }), h("ez-check", { label: this.getMessage('snkConfigOptions.label.protectedField'), enabled: getEnabledByProperty('readOnly', 'systemReadOnly', this.fieldDescriptor), value: getValueByProperty('readOnly', this.fieldDescriptor, this.fieldReadOnly), onEzChange: (e) => this.handleReadOnlyChanged(e) }), h("div", { class: 'actions' }, h("ez-button", { label: this.getMessage('snkConfigOptions.fieldConfig.buttons.cancel'), onClick: () => this.handleDiscardChanges() }), h("ez-button", { label: this.getMessage('snkConfigOptions.fieldConfig.buttons.confirm'), class: "ez-button--primary", onClick: () => this.handleApplyChanges() })))));
|
243
243
|
}
|
244
244
|
static get is() { return "field-config"; }
|
245
245
|
static get encapsulation() { return "scoped"; }
|
@@ -1,6 +1,5 @@
|
|
1
1
|
:host {
|
2
|
-
width:
|
3
|
-
min-width: 200px;
|
2
|
+
width: 100%;
|
4
3
|
display: flex;
|
5
4
|
padding: 12px 8px;
|
6
5
|
border-radius: var(--border--radius-small, 4px);
|
@@ -12,25 +11,7 @@
|
|
12
11
|
background: #FAFCFF;
|
13
12
|
}
|
14
13
|
|
15
|
-
:host.
|
16
|
-
width: 32% !important;
|
17
|
-
}
|
18
|
-
|
19
|
-
@container (max-width: 430px) {
|
20
|
-
:host,
|
21
|
-
:host.ghost{
|
22
|
-
width: 100% !important;
|
23
|
-
}
|
24
|
-
}
|
25
|
-
|
26
|
-
@container (min-width: 431px) and (max-width: 632px) {
|
27
|
-
:host,
|
28
|
-
:host.ghost {
|
29
|
-
width: 48% !important;
|
30
|
-
}
|
31
|
-
}
|
32
|
-
|
33
|
-
:host.full-width{
|
14
|
+
:host.full-width {
|
34
15
|
width: 100%;
|
35
16
|
}
|
36
17
|
|
@@ -81,7 +62,6 @@ ez-icon {
|
|
81
62
|
align-self: self-start;
|
82
63
|
}
|
83
64
|
|
84
|
-
|
85
65
|
.actions {
|
86
66
|
display: flex;
|
87
67
|
flex-direction: row;
|
@@ -105,4 +85,4 @@ ez-button {
|
|
105
85
|
:host:hover .hiddeble {
|
106
86
|
visibility: visible;
|
107
87
|
opacity: 1;
|
108
|
-
}
|
88
|
+
}
|
@@ -22,14 +22,17 @@ export class FieldItem {
|
|
22
22
|
}
|
23
23
|
renderFieldConfig() {
|
24
24
|
if (this.onLayoutConfig && this.dataUnit && this.messagesBuilder) {
|
25
|
-
return (h("field-config", { ref: ref => this._refFieldConfig = ref, fieldConfig: this.fieldConfig, dataUnit: this.dataUnit, fieldDescriptor: this.fieldDescriptor, messagesBuilder: this.messagesBuilder, onFieldConfigChanged: () => forceUpdate(this) }));
|
25
|
+
return (h("field-config", { ref: (ref) => this._refFieldConfig = ref, fieldConfig: this.fieldConfig, dataUnit: this.dataUnit, fieldDescriptor: this.fieldDescriptor, messagesBuilder: this.messagesBuilder, onFieldConfigChanged: () => forceUpdate(this) }));
|
26
26
|
}
|
27
27
|
}
|
28
|
+
getMessage(key, params) {
|
29
|
+
return this.messagesBuilder.getMessage(key, params);
|
30
|
+
}
|
28
31
|
renderActions() {
|
29
32
|
if (this.onLayoutConfig) {
|
30
|
-
return (h("div", { class: 'actions hiddeble' }, h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: () => this.setFieldAsAvailable.emit(this.fieldConfig), size: "medium", iconName: 'minus', title: '
|
33
|
+
return (h("div", { class: 'actions hiddeble' }, h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: () => this.setFieldAsAvailable.emit(this.fieldConfig), size: "medium", iconName: 'minus', title: this.getMessage('snkFieldConfig.titleRemove') }), h("ez-button", { ref: ref => this._editIconRef = ref, mode: "icon", class: "ez-button--tertiary", onClick: this.showFieldConfig.bind(this), iconName: 'edit', size: "medium", title: this.getMessage('snkFieldConfig.titleEdit') })));
|
31
34
|
}
|
32
|
-
return (h("div", { class: 'actions hiddeble' }, h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: () => this.addFieldToGuide.emit(this.fieldConfig), iconName: 'plus', size: "medium", title: '
|
35
|
+
return (h("div", { class: 'actions hiddeble' }, h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: () => this.addFieldToGuide.emit(this.fieldConfig), iconName: 'plus', size: "medium", title: this.getMessage('snkFieldConfig.titleAddToLayout') })));
|
33
36
|
}
|
34
37
|
loadFieldDescriptor() {
|
35
38
|
if (this.dataUnit) {
|
@@ -15,9 +15,6 @@
|
|
15
15
|
height: calc(100vh - 225px);
|
16
16
|
}
|
17
17
|
|
18
|
-
.groups-container {
|
19
|
-
}
|
20
|
-
|
21
18
|
.guide-header {
|
22
19
|
display: flex;
|
23
20
|
width: 100%;
|
@@ -51,15 +48,13 @@
|
|
51
48
|
width: 100%;
|
52
49
|
}
|
53
50
|
|
54
|
-
|
55
51
|
.group-content {
|
56
|
-
display:
|
57
|
-
flex-direction: row;
|
58
|
-
flex-wrap: wrap;
|
52
|
+
display: grid;
|
59
53
|
gap: 12px;
|
60
54
|
min-height: 65px;
|
61
55
|
width: 100%;
|
62
56
|
padding: 6px 0;
|
57
|
+
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
|
63
58
|
}
|
64
59
|
|
65
60
|
.group-content.empty-content {
|
@@ -67,7 +62,7 @@
|
|
67
62
|
}
|
68
63
|
|
69
64
|
.group-content.empty-content::before {
|
70
|
-
content: "Arraste e solte um campo aqui";
|
65
|
+
content: var(--empty-content-message, "Arraste e solte um campo aqui");
|
71
66
|
color: #cbcfd7;
|
72
67
|
font-size: 16px;
|
73
68
|
font-weight: 500;
|
@@ -79,7 +74,6 @@
|
|
79
74
|
justify-content: center;
|
80
75
|
pointer-events: none;
|
81
76
|
transition: opacity 0.3s;
|
82
|
-
width: 100%;
|
83
77
|
height: 100%;
|
84
78
|
box-sizing: border-box;
|
85
79
|
padding: 10px;
|
@@ -94,8 +88,8 @@
|
|
94
88
|
border-bottom: 1px solid #dce0e8;
|
95
89
|
}
|
96
90
|
|
97
|
-
.no-group-container::before{
|
98
|
-
content: "Inclua estes campos nos grupos ou deixe-os separados no topo do formulário";
|
91
|
+
.no-group-container::before {
|
92
|
+
content: var(--no-group-message, "Inclua estes campos nos grupos ou deixe-os separados no topo do formulário");
|
99
93
|
width: 100%;
|
100
94
|
display: block;
|
101
95
|
font-size: 16px;
|
@@ -117,7 +111,6 @@
|
|
117
111
|
height: 55px;
|
118
112
|
}
|
119
113
|
|
120
|
-
|
121
114
|
.no-guide-selected {
|
122
115
|
display: block;
|
123
116
|
margin: auto;
|
@@ -129,5 +122,4 @@
|
|
129
122
|
.ghost {
|
130
123
|
opacity: .5;
|
131
124
|
background: #c8fbe2;
|
132
|
-
}
|
133
|
-
|
125
|
+
}
|
@@ -18,8 +18,10 @@ export class FieldLayoutComponent {
|
|
18
18
|
this.dataUnit = undefined;
|
19
19
|
this.messagesBuilder = undefined;
|
20
20
|
}
|
21
|
-
|
22
|
-
|
21
|
+
onMessagesBuilderChange() {
|
22
|
+
this.setCustomCSSProperties();
|
23
|
+
}
|
24
|
+
handleFieldConfigChanged({ detail: updatedField }) {
|
23
25
|
const groupToUpdate = this.groupsListMemory.find(g => g.name === updatedField.group);
|
24
26
|
if (!groupToUpdate)
|
25
27
|
return;
|
@@ -70,10 +72,9 @@ export class FieldLayoutComponent {
|
|
70
72
|
}
|
71
73
|
buildNewGroupName() {
|
72
74
|
var _a, _b;
|
73
|
-
const
|
74
|
-
|
75
|
-
|
76
|
-
: `${GROUP_NAMES.newGroup} (${qtdWithNewGroupName})`;
|
75
|
+
const newGroupMessage = this.getMessage('snkFormConfig.form.newGroup');
|
76
|
+
const qtdWithNewGroupName = (_b = (_a = this.groupsListMemory.filter(g => g.name.includes(newGroupMessage))) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
77
|
+
return qtdWithNewGroupName === 0 ? newGroupMessage : `${newGroupMessage} (${qtdWithNewGroupName})`;
|
77
78
|
}
|
78
79
|
makeDynamicFieldsContainersDraggable() {
|
79
80
|
const draggableGroups = this.groupsList.filter((g) => g.name !== GROUP_NAMES.noGroup);
|
@@ -149,7 +150,7 @@ export class FieldLayoutComponent {
|
|
149
150
|
});
|
150
151
|
}
|
151
152
|
catch (e) {
|
152
|
-
console.error('
|
153
|
+
console.error(this.getMessage('snkFormConfig.errors.failMakeGroupsDraggable'), this.ID_GROUPS);
|
153
154
|
}
|
154
155
|
}
|
155
156
|
makeFieldContainerDraggable(containerId) {
|
@@ -168,7 +169,7 @@ export class FieldLayoutComponent {
|
|
168
169
|
});
|
169
170
|
}
|
170
171
|
catch (e) {
|
171
|
-
console.error('
|
172
|
+
console.error(this.getMessage('snkFormConfig.errors.failMakeFieldContainerDraggable'), containerId);
|
172
173
|
}
|
173
174
|
}
|
174
175
|
getContainerElement(id) {
|
@@ -303,18 +304,23 @@ export class FieldLayoutComponent {
|
|
303
304
|
var _a;
|
304
305
|
if (((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.name) === TAB_NAMES.main)
|
305
306
|
return;
|
306
|
-
return (h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: () => this.startGuideNameEdition(), size: "medium", iconName: 'edit', title: '
|
307
|
+
return (h("ez-button", { mode: "icon", class: "ez-button--tertiary", onClick: () => this.startGuideNameEdition(), size: "medium", iconName: 'edit', title: this.getMessage('snkFormConfig.buttons.rename') }));
|
308
|
+
}
|
309
|
+
setCustomCSSProperties() {
|
310
|
+
document.documentElement.style.setProperty('--empty-content-message', `"${this.getMessage('snkFormConfig.form.labelDropField')}"`);
|
311
|
+
document.documentElement.style.setProperty('--no-group-message', `"${this.getMessage('snkFormConfig.form.subTitleInfo')}"`);
|
307
312
|
}
|
308
313
|
componentDidRender() {
|
309
314
|
this.makeGroupsDraggable();
|
310
315
|
this.makeDynamicFieldsContainersDraggable();
|
311
316
|
this.makeFieldContainerDraggable(GROUP_NAMES.noGroup);
|
317
|
+
this.setCustomCSSProperties();
|
312
318
|
}
|
313
319
|
render() {
|
314
320
|
if (!this.selectedGuide) {
|
315
|
-
return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, h("span", { class: 'no-guide-selected' },
|
321
|
+
return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, h("span", { class: 'no-guide-selected' }, this.getMessage('snkFormConfig.form.noGuideSelected'))));
|
316
322
|
}
|
317
|
-
return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, this.renderGuideName(), h("div", { class: 'layout-container' }, h("ez-scroller", { direction: 'vertical', activeShadow: true }, h("div", { class: 'no-group-container' }, h("div", { id: GROUP_NAMES.noGroup, class: 'group-content', "data-group-name": GROUP_NAMES.noGroup }, this.renderFixedFields())), h("hr", null), h("div", { id: this.ID_GROUPS, class: 'groups-container' }, this.renderDraggableGroups()))), h("div", { class: 'add-group-container', onClick: this.handleAddGroup.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus" }), h("span", null,
|
323
|
+
return (h(Host, { class: 'ez-flex-item--auto ez-size-height--full ez-box ez-padding--medium content-container' }, this.renderGuideName(), h("div", { class: 'layout-container' }, h("ez-scroller", { direction: 'vertical', activeShadow: true }, h("div", { class: 'no-group-container' }, h("div", { id: GROUP_NAMES.noGroup, class: 'group-content', "data-group-name": GROUP_NAMES.noGroup }, this.renderFixedFields())), h("hr", null), h("div", { id: this.ID_GROUPS, class: 'groups-container' }, this.renderDraggableGroups()))), h("div", { class: 'add-group-container', onClick: this.handleAddGroup.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus" }), h("span", null, this.getMessage('snkFormConfig.form.createNewGroup')))));
|
318
324
|
}
|
319
325
|
static get is() { return "fields-layout"; }
|
320
326
|
static get encapsulation() { return "scoped"; }
|
@@ -556,6 +562,9 @@ export class FieldLayoutComponent {
|
|
556
562
|
static get elementRef() { return "el"; }
|
557
563
|
static get watchers() {
|
558
564
|
return [{
|
565
|
+
"propName": "messagesBuilder",
|
566
|
+
"methodName": "onMessagesBuilderChange"
|
567
|
+
}, {
|
559
568
|
"propName": "selectedGuide",
|
560
569
|
"methodName": "observeSelectedGuide"
|
561
570
|
}, {
|