@sankhyalabs/sankhyablocks 9.1.0-dev.2 → 9.1.0-dev.21
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 +1316 -330
- 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/search-strategy/exec-prepared-search-plus.d.ts +1 -1
- 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 +290 -47
- 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/components/snk-application/snk-application.d.ts +0 -408
- 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,6 +1,6 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnitLoaderUtils, DataUnit } from '@sankhyalabs/core';
|
3
|
-
import { D as DataFetcher } from './DataFetcher.js';
|
3
|
+
import { D as DataFetcher, S as SnkMessageBuilder } from './DataFetcher.js';
|
4
4
|
import { S as SaveErrorsEnum } from './ISave.js';
|
5
5
|
import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher.js';
|
6
6
|
import './filter-item-type.enum.js';
|
@@ -358,10 +358,12 @@ class AnexoSistemaDataUnitFactory {
|
|
358
358
|
}
|
359
359
|
}
|
360
360
|
|
361
|
-
|
361
|
+
let messageBuilderInstance;
|
362
362
|
const getMessage$1 = (key) => {
|
363
|
-
|
364
|
-
|
363
|
+
if (!messageBuilderInstance) {
|
364
|
+
messageBuilderInstance = new SnkMessageBuilder();
|
365
|
+
}
|
366
|
+
return messageBuilderInstance.getMessage(key);
|
365
367
|
};
|
366
368
|
const attachCrudConfig = {
|
367
369
|
grid: {
|
@@ -535,10 +537,14 @@ class AttachFetcherDataUnitFactory {
|
|
535
537
|
}
|
536
538
|
}
|
537
539
|
|
538
|
-
|
540
|
+
let messagesBuilder;
|
539
541
|
const getMessage = (key) => {
|
540
|
-
var _a
|
541
|
-
|
542
|
+
var _a;
|
543
|
+
if (!messagesBuilder) {
|
544
|
+
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
545
|
+
messagesBuilder = application === null || application === void 0 ? void 0 : application.messagesBuilder;
|
546
|
+
}
|
547
|
+
return (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage) === null || _a === void 0 ? void 0 : _a.call(messagesBuilder, key, null);
|
542
548
|
};
|
543
549
|
const TaskbarAttachButtons = {
|
544
550
|
DOWNLOAD: {
|
@@ -627,6 +633,8 @@ const snkAttachCss = ".snk-attach__header.sc-snk-attach,.snk-attach__crud-sectio
|
|
627
633
|
|
628
634
|
const RESOURCE_ID = 'AnexoSistema';
|
629
635
|
const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
|
636
|
+
const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
|
637
|
+
const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
|
630
638
|
const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
631
639
|
constructor() {
|
632
640
|
super();
|
@@ -656,6 +664,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
656
664
|
this.back.emit();
|
657
665
|
});
|
658
666
|
};
|
667
|
+
this.gridLegacyConfigName = undefined;
|
659
668
|
this.fetcherType = undefined;
|
660
669
|
this.fetcher = undefined;
|
661
670
|
this.dataUnit = undefined;
|
@@ -722,7 +731,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
722
731
|
}
|
723
732
|
downloadAttachment(selectedRecord) {
|
724
733
|
if (!selectedRecord)
|
725
|
-
throw new Error(
|
734
|
+
throw new Error(this.getMessage("snkAttach.alertValidation.noRecordSelected.message"));
|
726
735
|
if (selectedRecord.LINK) {
|
727
736
|
window.open(`${selectedRecord.LINK}`);
|
728
737
|
return;
|
@@ -767,9 +776,11 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
767
776
|
var _a, _b;
|
768
777
|
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
769
778
|
this._currentFetcher = this.getAnexoSistemaFetcherInstance();
|
779
|
+
let gridValidateForm;
|
770
780
|
if (!this._currentDataUnit.metadata) {
|
771
781
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
772
|
-
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
782
|
+
this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
|
783
|
+
gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
|
773
784
|
}
|
774
785
|
this.initDataUnitLoaders();
|
775
786
|
this._currentDataUnit.addFilterProvider({
|
@@ -779,19 +790,21 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
779
790
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
780
791
|
});
|
781
792
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
|
782
|
-
this.disableEditFieldsNotInForm();
|
793
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
783
794
|
}
|
784
795
|
async loadAttach() {
|
785
796
|
var _a, _b;
|
786
797
|
this._currentFetcher = new AttachFetcher();
|
787
798
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
788
799
|
this._currentDataUnit.pageSize = 150;
|
800
|
+
let gridValidateForm;
|
789
801
|
this.initDataUnitLoaders();
|
790
802
|
this._currentDataUnit.addInterceptor({
|
791
803
|
interceptAction: (action) => {
|
792
804
|
var _a;
|
793
805
|
if (action.type === Action.METADATA_LOADED) {
|
794
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
806
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
807
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
795
808
|
(_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
|
796
809
|
}
|
797
810
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
@@ -799,9 +812,10 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
799
812
|
});
|
800
813
|
if (!this._currentDataUnit.metadata) {
|
801
814
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
802
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
815
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
816
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
803
817
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
|
804
|
-
this.disableEditFieldsNotInForm();
|
818
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
805
819
|
}
|
806
820
|
}
|
807
821
|
initDataUnitLoaders() {
|
@@ -820,12 +834,16 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
820
834
|
});
|
821
835
|
}
|
822
836
|
}
|
823
|
-
disableEditFieldsNotInForm() {
|
824
|
-
var _a;
|
825
|
-
(_a = this.
|
826
|
-
|
837
|
+
disableEditFieldsNotInForm(gridValidateForm) {
|
838
|
+
var _a, _b, _c, _d, _e;
|
839
|
+
const gridColumns = ((_b = (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.gridConfig) === null || _b === void 0 ? void 0 : _b.columns) || ((_c = gridValidateForm === null || gridValidateForm === void 0 ? void 0 : gridValidateForm.grid) === null || _c === void 0 ? void 0 : _c.columns) || ((_e = (_d = this.crudConfig) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.columns);
|
840
|
+
if (!!this.getGridLegacyConfigName()) {
|
841
|
+
this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
|
842
|
+
}
|
843
|
+
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
|
844
|
+
var _a, _b;
|
827
845
|
const fieldName = column.name;
|
828
|
-
if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
|
846
|
+
if (!((_b = (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.fields.some(field => (field === null || field === void 0 ? void 0 : field.name) === fieldName))) {
|
829
847
|
this._currentDataUnit.disableField(fieldName);
|
830
848
|
}
|
831
849
|
});
|
@@ -875,17 +893,23 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
875
893
|
await this._currentDataUnit.loadMetadata();
|
876
894
|
}
|
877
895
|
;
|
896
|
+
getGridLegacyConfigName() {
|
897
|
+
if (this.gridLegacyConfigName)
|
898
|
+
return this.gridLegacyConfigName;
|
899
|
+
return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
|
900
|
+
}
|
878
901
|
render() {
|
879
902
|
var _a, _b;
|
880
903
|
if (!this._currentDataUnit)
|
881
904
|
return null;
|
882
|
-
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
905
|
+
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true, configName: this.entityName, ignoreReadOnlyFormFields: this.entityName ? true : false, gridLegacyConfigName: this.getGridLegacyConfigName() }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
883
906
|
}
|
884
907
|
static get watchers() { return {
|
885
908
|
"registerKey": ["registerKeyWatcher"]
|
886
909
|
}; }
|
887
910
|
static get style() { return snkAttachCss; }
|
888
911
|
}, [2, "snk-attach", {
|
912
|
+
"gridLegacyConfigName": [1, "grid-legacy-config-name"],
|
889
913
|
"fetcherType": [1, "fetcher-type"],
|
890
914
|
"fetcher": [16],
|
891
915
|
"dataUnit": [16],
|
@@ -112,7 +112,7 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
112
112
|
insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
|
113
113
|
}
|
114
114
|
render() {
|
115
|
-
return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label:
|
115
|
+
return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light", onEzCloseModal: () => this.closeConfig() }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: this.getMessage('snkConfigurator.subTitleModeConfig'), headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), this.layoutFormConfig && h("ez-collapsible-box", { boxBordered: true, value: true, label: this.getMessage('snkConfigurator.labelLayoutForm'), headerSize: "medium", class: "snk-configurator__collapsable-box ez-margin-top--medium" }, h("div", { class: 'ez-flex ez-flex--column ez-size-width--full' }, h("snk-layout-form-config", { ref: (ref) => this._snkLayoutFormConfig = ref, messagesBuilder: this.messagesBuilder }))), h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (h("div", { class: "snk-configurator__action-buttons" }, h("ez-button", { label: this.getMessage('snkConfigurator.buttons.cancel'), onClick: () => this.cancel.emit() }), h("ez-button", { label: this.getMessage('snkConfigurator.buttons.save'), onClick: () => this.handleSave(), class: "ez-button--primary" }))))));
|
116
116
|
}
|
117
117
|
get _element() { return this; }
|
118
118
|
static get style() { return snkConfiguratorCss; }
|
@@ -96,6 +96,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
96
96
|
this.layoutFormConfig = false;
|
97
97
|
this.multipleEditionEnabled = true;
|
98
98
|
this.paginationCounterMode = 'auto';
|
99
|
+
this.layoutFormConfig = false;
|
99
100
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
100
101
|
}
|
101
102
|
/**
|
@@ -346,28 +347,32 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
346
347
|
}
|
347
348
|
if (this._keyboardManager) {
|
348
349
|
this._keyboardManager
|
349
|
-
.bind("F6", this.toggleView.bind(this), { description: "
|
350
|
-
.bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "
|
351
|
-
.bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "
|
352
|
-
.bind("F8", handleAddRecord.bind(this), { description: "
|
353
|
-
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "
|
354
|
-
.bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "
|
350
|
+
.bind("F6", this.toggleView.bind(this), { description: this.getMessage("snkCrud.shortcuts.toggleView"), element: this._element })
|
351
|
+
.bind("F7", saveDataUnitHandlingFocus.bind(this), { description: this.getMessage("snkCrud.shortcuts.saveData"), element: this._element })
|
352
|
+
.bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: this.getMessage("snkCrud.shortcuts.addRecord"), element: this._element })
|
353
|
+
.bind("F8", handleAddRecord.bind(this), { description: this.getMessage("snkCrud.shortcuts.addRecord"), element: this._element })
|
354
|
+
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkCrud.shortcuts.removeRecord"), element: this._element })
|
355
|
+
.bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkCrud.shortcuts.removeRecord"), element: this._element })
|
355
356
|
.bind("F5", async () => {
|
356
357
|
const currentView = await this._viewStack.getSelectedIndex();
|
357
358
|
if (VIEW_MODE.GRID === currentView) {
|
358
359
|
dataUnit.loadData();
|
359
360
|
}
|
360
|
-
}, { description: "
|
361
|
+
}, { description: this.getMessage("snkCrud.shortcuts.refreshData"), element: this._element })
|
361
362
|
.bind("Escape", () => {
|
362
363
|
if (dataUnit.isDirty()) {
|
363
364
|
dataUnit.cancelEdition();
|
364
365
|
}
|
365
366
|
}, {
|
366
367
|
debounceTime: 1000,
|
367
|
-
description: "
|
368
|
+
description: this.getMessage("snkCrud.shortcuts.cancelAction"), element: this._element
|
368
369
|
});
|
369
370
|
}
|
370
371
|
}
|
372
|
+
getMessage(key, params) {
|
373
|
+
if (this.messagesBuilder)
|
374
|
+
return this.messagesBuilder.getMessage(key, params);
|
375
|
+
}
|
371
376
|
async removeShortcuts() {
|
372
377
|
var _a;
|
373
378
|
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
-
import { Action, ObjectUtils, DataUnitAction, StringUtils
|
2
|
+
import { ApplicationContext, Action, ObjectUtils, DataUnitAction, StringUtils } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
-
import { O as OperationMap, S as SnkMessageBuilder } from './
|
4
|
+
import { O as OperationMap, S as SnkMessageBuilder } from './DataFetcher.js';
|
5
5
|
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher.js';
|
6
6
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
7
7
|
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo.js';
|
@@ -34,11 +34,13 @@ function groupChanges(changingFields) {
|
|
34
34
|
return changesMap;
|
35
35
|
}
|
36
36
|
function getTabName(tabName) {
|
37
|
+
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
38
|
+
const labelPrincipal = application.messagesBuilder.getMessage("snkDataUnit.main");
|
37
39
|
switch (tabName) {
|
38
40
|
case NO_TAB_NAME:
|
39
41
|
return "";
|
40
42
|
case MAIN_TAB_NAME:
|
41
|
-
return
|
43
|
+
return labelPrincipal;
|
42
44
|
default:
|
43
45
|
return tabName;
|
44
46
|
}
|
@@ -933,14 +935,6 @@ class DataStateImpl {
|
|
933
935
|
this.metadataByRow = datastate.metadataByRow;
|
934
936
|
this.rowMetadata = datastate.rowMetadata;
|
935
937
|
}
|
936
|
-
get selectedRecords() {
|
937
|
-
var _a;
|
938
|
-
console.warn("SnkDataUnit: O método `selectedRecords` foi descontinuado. Use o método `selectionInfo`.");
|
939
|
-
if ((_a = this.selectionInfo) === null || _a === void 0 ? void 0 : _a.isAllRecords()) {
|
940
|
-
throw new Error("Erro interno: Impossível obter os registros selecionados. A seleção atual é virtual. Use o atributo `selectionInfo`.");
|
941
|
-
}
|
942
|
-
return this.selectionInfo.records;
|
943
|
-
}
|
944
938
|
}
|
945
939
|
function defineCustomElement() {
|
946
940
|
if (typeof customElements === "undefined") {
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, forceUpdate,
|
|
2
2
|
import { ObjectUtils, StringUtils, Action, KeyboardManager, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { S as SnkFormConfigManager } from './SnkFormConfigManager.js';
|
4
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
5
|
-
import './DataFetcher.js';
|
5
|
+
import { S as SnkMessageBuilder } from './DataFetcher.js';
|
6
6
|
import { P as PresentationMode } from './ISave.js';
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
@@ -13,7 +13,7 @@ import { V as VIEW_MODE } from './constants.js';
|
|
13
13
|
import { T as TaskbarElement, d as defineCustomElement$5 } from './snk-taskbar2.js';
|
14
14
|
import { T as TaskbarProcessor } from './ContinuousInsertUtils.js';
|
15
15
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
16
|
-
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD
|
16
|
+
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
17
17
|
import { d as defineCustomElement$C } from './config-header2.js';
|
18
18
|
import { d as defineCustomElement$B } from './configs-button2.js';
|
19
19
|
import { d as defineCustomElement$A } from './field-config2.js';
|
@@ -26,7 +26,6 @@ import { d as defineCustomElement$u } from './snk-attach2.js';
|
|
26
26
|
import { d as defineCustomElement$t } from './snk-configurator2.js';
|
27
27
|
import { d as defineCustomElement$s } from './snk-data-exporter2.js';
|
28
28
|
import { d as defineCustomElement$r } from './snk-data-unit2.js';
|
29
|
-
import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
|
30
29
|
import { d as defineCustomElement$q } from './snk-exporter-email-sender2.js';
|
31
30
|
import { d as defineCustomElement$p } from './snk-expression-group2.js';
|
32
31
|
import { d as defineCustomElement$o } from './snk-expression-item2.js';
|
@@ -177,7 +176,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
177
176
|
var _a, _b;
|
178
177
|
if (this.dataUnit.isMultipleEdition) {
|
179
178
|
const selectedRecords = (_b = (_a = this.dataUnit.getSelectionInfo()) === null || _a === void 0 ? void 0 : _a.records) !== null && _b !== void 0 ? _b : [];
|
180
|
-
return
|
179
|
+
return this.messagesBuilder.getMessage("snkCrud.multipleEdition.editing", { COUNT: selectedRecords.length });
|
181
180
|
}
|
182
181
|
return this.messagesBuilder.getMessage(key, this.dataUnit.getSelectedRecord());
|
183
182
|
}
|
@@ -196,7 +195,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
196
195
|
Array.from(allSheets.values()).forEach((sheet) => {
|
197
196
|
const item = { id: sheet.name, label: sheet.label };
|
198
197
|
if (this.isDetail(sheet.name) && disableDetails) {
|
199
|
-
item.tooltip = "
|
198
|
+
item.tooltip = this.getMessage("snkCrud.detail.tooltip.needSingleSelection");
|
200
199
|
item.disabled = true;
|
201
200
|
}
|
202
201
|
guides.push(item);
|
@@ -442,7 +441,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
442
441
|
}
|
443
442
|
componentWillLoad() {
|
444
443
|
if (this.resourceID == undefined) {
|
445
|
-
throw new Error("
|
444
|
+
throw new Error(this.getMessage("snkCrud.errors.resourceIDNotProvided"));
|
446
445
|
}
|
447
446
|
this._configManager = new SnkFormConfigManager(this.configName, this.resourceID, this.setMasterFormConfig.bind(this), this.dataUnit);
|
448
447
|
this.addFormLegacyConfigName();
|
@@ -591,7 +590,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
591
590
|
if (!this._mainForm)
|
592
591
|
return;
|
593
592
|
await this._mainForm.showSearchField();
|
594
|
-
}, { description:
|
593
|
+
}, { description: this.getMessage("snkSimpleCrud.findFields"), element: this._element });
|
595
594
|
}
|
596
595
|
render() {
|
597
596
|
var _a, _b;
|
@@ -872,14 +871,21 @@ function defineCustomElement$1() {
|
|
872
871
|
}
|
873
872
|
|
874
873
|
class GuideBuilder {
|
875
|
-
constructor(parentGuide, formMetadata, dataUnit) {
|
874
|
+
constructor(parentGuide, formMetadata, dataUnit, messageBuilder) {
|
876
875
|
this._parentGuide = parentGuide;
|
877
876
|
this._formMetadata = formMetadata;
|
878
877
|
this._dataUnit = dataUnit;
|
878
|
+
this._messageBuilder = messageBuilder;
|
879
|
+
if (!this._messageBuilder) {
|
880
|
+
this._messageBuilder = new SnkMessageBuilder();
|
881
|
+
}
|
879
882
|
}
|
880
883
|
get id() {
|
881
884
|
return this._parentGuide.id;
|
882
885
|
}
|
886
|
+
getMessage(key, params) {
|
887
|
+
return this._messageBuilder.getMessage(key, params);
|
888
|
+
}
|
883
889
|
buildGuideItem(detailBuilders) {
|
884
890
|
const item = Object.assign({}, this._parentGuide);
|
885
891
|
delete item.expanded;
|
@@ -903,11 +909,11 @@ class GuideBuilder {
|
|
903
909
|
id,
|
904
910
|
label,
|
905
911
|
disabled,
|
906
|
-
tooltip: disabled ? "
|
912
|
+
tooltip: disabled ? this.getMessage("snkCrud.guide.tooltip.disabledDetail") : undefined
|
907
913
|
};
|
908
914
|
});
|
909
915
|
const newGuideItem = children.shift();
|
910
|
-
newGuideItem.label = isNewRecord ? "
|
916
|
+
newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.title.newRecord") : currentRecord.__record__label__;
|
911
917
|
newGuideItem.children = children;
|
912
918
|
item.children = [newGuideItem];
|
913
919
|
return item;
|
@@ -961,7 +967,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
961
967
|
const newRecord = newValue === null || newValue === void 0 ? void 0 : newValue.selectedRecord;
|
962
968
|
const oldRecord = oldValue === null || oldValue === void 0 ? void 0 : oldValue.selectedRecord;
|
963
969
|
if ((newRecord === null || newRecord === void 0 ? void 0 : newRecord.__record__id__) !== (oldRecord === null || oldRecord === void 0 ? void 0 : oldRecord.__record__id__)) {
|
964
|
-
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
|
970
|
+
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit, this.messagesBuilder));
|
965
971
|
}
|
966
972
|
if (openInsertion) {
|
967
973
|
setTimeout(() => {
|
@@ -1160,7 +1166,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
1160
1166
|
}
|
1161
1167
|
addErrorBadgeToBranchGuide() {
|
1162
1168
|
this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
|
1163
|
-
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
|
1169
|
+
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit, this.messagesBuilder));
|
1164
1170
|
}
|
1165
1171
|
normalizeBranchGuideId(id) {
|
1166
1172
|
return id === null || id === void 0 ? void 0 : id.replace(/child\[(.*?)\]/g, '$1').replace(/::/g, '>');
|
@@ -1206,7 +1212,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
1206
1212
|
this._keyboardManager = new KeyboardManager({ propagate: false, element: this._element });
|
1207
1213
|
this._keyboardManager.bind(SHORTCUT_SEARCH_FIELD, async () => {
|
1208
1214
|
await this._snkFormView.showSearchField();
|
1209
|
-
}, { description:
|
1215
|
+
}, { description: this.messagesBuilder.getMessage("snkSimpleCrud.findFields"), element: this._element });
|
1210
1216
|
}
|
1211
1217
|
render() {
|
1212
1218
|
this.updateLabel();
|
@@ -8,11 +8,11 @@ const SnkEntityList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
8
8
|
super();
|
9
9
|
this.__registerHost();
|
10
10
|
this.valueChanged = createEvent(this, "valueChanged", 7);
|
11
|
-
this._searchValue = undefined;
|
12
11
|
this._ezListSource = [];
|
13
12
|
this.config = undefined;
|
14
13
|
this.rightListSlotBuilder = undefined;
|
15
14
|
this.maxHeightList = "";
|
15
|
+
this.value = undefined;
|
16
16
|
}
|
17
17
|
async reloadList() {
|
18
18
|
this.loadListSource();
|
@@ -74,18 +74,22 @@ const SnkEntityList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
74
74
|
}
|
75
75
|
onEzSearchChange(evt) {
|
76
76
|
var _a, _b, _c, _d;
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
id: evt.detail.value,
|
82
|
-
check: true,
|
83
|
-
label: evt.detail.label
|
84
|
-
}
|
85
|
-
] });
|
86
|
-
this.loadListSource();
|
87
|
-
this.valueChanged.emit((_d = this.config) === null || _d === void 0 ? void 0 : _d.value);
|
77
|
+
const newValueIsEmpty = ObjectUtils.isEmptySafetyCheck(evt.detail);
|
78
|
+
const hasConfingOnList = (_a = this.getListConfigValue(this.config)) === null || _a === void 0 ? void 0 : _a.find((i) => { var _a; return (i === null || i === void 0 ? void 0 : i.id) === ((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); });
|
79
|
+
if (newValueIsEmpty || hasConfingOnList) {
|
80
|
+
return;
|
88
81
|
}
|
82
|
+
this.config = Object.assign(Object.assign({}, this.config), { value: [
|
83
|
+
...((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : []),
|
84
|
+
{
|
85
|
+
id: evt.detail.value,
|
86
|
+
check: true,
|
87
|
+
label: evt.detail.label
|
88
|
+
}
|
89
|
+
] });
|
90
|
+
this.loadListSource();
|
91
|
+
this.value = this.config.value;
|
92
|
+
this.valueChanged.emit((_d = this.config) === null || _d === void 0 ? void 0 : _d.value);
|
89
93
|
}
|
90
94
|
getMessage(key, params) {
|
91
95
|
var _a;
|
@@ -96,8 +100,10 @@ const SnkEntityList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
96
100
|
return (_d = (_b = (_a = config.value) === null || _a === void 0 ? void 0 : _a.elements) !== null && _b !== void 0 ? _b : (_c = config === null || config === void 0 ? void 0 : config.value) === null || _c === void 0 ? void 0 : _c.members) !== null && _d !== void 0 ? _d : config === null || config === void 0 ? void 0 : config.value;
|
97
101
|
}
|
98
102
|
render() {
|
99
|
-
var _a, _b;
|
100
|
-
|
103
|
+
var _a, _b, _c;
|
104
|
+
const isSearchPlus = ((_a = this.config.props) === null || _a === void 0 ? void 0 : _a["useSearchPlus"]) == true;
|
105
|
+
const TagName = isSearchPlus ? "ez-search-plus" : "ez-search";
|
106
|
+
return (h(Host, null, h(TagName, { ref: elem => this._searchElement = elem, optionLoader: argument => this.optionLoader(argument), label: (_b = this.config) === null || _b === void 0 ? void 0 : _b.label, onEzChange: evt => this.onEzSearchChange(evt), suppressEmptyOption: true, stopPropagateEnterKeyEvent: true }), ((_c = this._ezListSource) === null || _c === void 0 ? void 0 : _c.length) > 0 && (h("label", { class: "label" }, this.getMessage("snkEntityList.selected"))), h("div", { style: this.maxHeightList ? { 'max-height': this.maxHeightList } : {}, class: { "snk-entity-list--overflow": !!this.maxHeightList } }, h("ez-list", { ref: (el) => this._ezList = el, id: "snkEntityList", listMode: "check", dataSource: this._ezListSource, hoverFeedback: true, itemSlotBuilder: this.rightListSlotBuilder, onEzCheckChange: evt => this.ezListChangeListener(evt) }))));
|
101
107
|
}
|
102
108
|
static get watchers() { return {
|
103
109
|
"config": ["observeConfig"]
|
@@ -107,7 +113,7 @@ const SnkEntityList$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
107
113
|
"config": [1040],
|
108
114
|
"rightListSlotBuilder": [1040],
|
109
115
|
"maxHeightList": [1, "max-height-list"],
|
110
|
-
"
|
116
|
+
"value": [1040],
|
111
117
|
"_ezListSource": [32],
|
112
118
|
"reloadList": [64]
|
113
119
|
}]);
|
@@ -128,7 +128,7 @@ const SnkExpressionGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
128
128
|
entityName: "",
|
129
129
|
fieldName: "",
|
130
130
|
description: "",
|
131
|
-
label: "
|
131
|
+
label: this.getMessage("snkPersonalizedFilter.info.labelDefaultValue"),
|
132
132
|
type: undefined,
|
133
133
|
expression: undefined,
|
134
134
|
operand: undefined,
|
@@ -153,7 +153,7 @@ const SnkExpressionGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
153
153
|
entityName: "",
|
154
154
|
fieldName: "",
|
155
155
|
description: "",
|
156
|
-
label: "
|
156
|
+
label: this.getMessage("snkPersonalizedFilter.info.labelDefaultValue"),
|
157
157
|
type: undefined,
|
158
158
|
expression: undefined,
|
159
159
|
operand: undefined,
|
@@ -240,7 +240,7 @@ const SnkExpressionGroup = /*@__PURE__*/ proxyCustomElement(class extends HTMLEl
|
|
240
240
|
}
|
241
241
|
render() {
|
242
242
|
const canAddGroup = this.canAddGroup();
|
243
|
-
return (h(Host, null, h("div", { class: !this.isFirstLevel() && this._showDashes ? 'dashes' : 'hidden', style: this.buildGroupStyle() }), h("div", { class: !this.isFirstLevel() && this._showDashes ? 'horizontal-dashes' : 'hidden' }), h("div", { class: 'ez-flex ez-flex--align-items-center' }, h("div", { class: 'snk-expression-group__container-condition ez-flex ez-flex-item--align-center ez-flex--align-items-center', "data-condition": this._conditionOperator, title: this.getTooltipMessageForOperator() }, h("label", { class: "ez-label ez-padding-right--medium ez-padding-left--medium ez-title--primary" }, this.getMessage("snkPersonalizedFilter.info.condition")), h("div", null, h("ez-combo-box", Object.assign({ class: "snk-expression-group__container-option", canShowError: false, mode: "slim", suppressEmptyOption: true, enabled: this.canChangeGroupCondition(), value: this._conditionOperator, onEzChange: (evt) => this.handleConditionOperatorChange(evt.detail.value) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxConditions_level_${this.getDataGroupLevel()}` }), h("option", { value: FilterGroupCondition.AND }, "
|
243
|
+
return (h(Host, null, h("div", { class: !this.isFirstLevel() && this._showDashes ? 'dashes' : 'hidden', style: this.buildGroupStyle() }), h("div", { class: !this.isFirstLevel() && this._showDashes ? 'horizontal-dashes' : 'hidden' }), h("div", { class: 'ez-flex ez-flex--align-items-center' }, h("div", { class: 'snk-expression-group__container-condition ez-flex ez-flex-item--align-center ez-flex--align-items-center', "data-condition": this._conditionOperator, title: this.getTooltipMessageForOperator() }, h("label", { class: "ez-label ez-padding-right--medium ez-padding-left--medium ez-title--primary" }, this.getMessage("snkPersonalizedFilter.info.condition")), h("div", null, h("ez-combo-box", Object.assign({ class: "snk-expression-group__container-option", canShowError: false, mode: "slim", suppressEmptyOption: true, enabled: this.canChangeGroupCondition(), value: this._conditionOperator, onEzChange: (evt) => this.handleConditionOperatorChange(evt.detail.value) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxConditions_level_${this.getDataGroupLevel()}` }), h("option", { value: FilterGroupCondition.AND }, this.getMessage("snkPersonalizedFilter.info.conditionAnd")), h("option", { value: FilterGroupCondition.OR }, this.getMessage("snkPersonalizedFilter.info.conditionOr"))))), h("ez-button", { class: "ez-padding-right--medium ez-padding-left--medium", mode: "icon", iconName: "plus", size: "small", enabled: this.canAddExpression, title: this.getMessageAddTooltip(), onClick: () => this.handleAddExpression() }), h("ez-button", { label: this.getMessage("snkPersonalizedFilter.info.addGroup"), size: "small", enabled: canAddGroup, title: !canAddGroup ? this.getMessage('snkPersonalizedFilter.info.labelDisabledAddGroupButton', { LIMIT_GROUP_LEVEL: this.LIMIT_GROUP_LEVEL + 1 }) : '', onClick: () => this.handleAddGroup() }, h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: "plus" })), !this.isFirstLevel() && h("ez-button", { title: this.getMessage("snkPersonalizedFilter.info.labelDeleteExpression"), class: "ez-padding-left--medium", mode: "icon", iconName: "delete", size: "small", onClick: (evt) => this.confirmRemoveGroup(evt) })), h("div", { class: "ez-padding-top--small snk-expression-group__container-expression" }, h("div", { class: "ez-padding-top--small" }, this.renderExpressionItems())), h("div", { class: "ez-padding-top--small snk-expression-group__container-expression" }, h("div", { class: "ez-padding-top--small" }, this.renderGroups()))));
|
244
244
|
}
|
245
245
|
get _element() { return this; }
|
246
246
|
static get watchers() { return {
|
@@ -9,20 +9,20 @@ import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
9
9
|
import { d as defineCustomElement$1 } from './snk-filter-param-config2.js';
|
10
10
|
|
11
11
|
const defaultsOperand = [
|
12
|
-
{ label: "
|
13
|
-
{ label: "
|
14
|
-
{ label: "
|
15
|
-
{ label: "
|
16
|
-
{ label: "
|
17
|
-
{ label: "
|
18
|
-
{ label: "
|
19
|
-
{ label: "
|
12
|
+
{ label: "snkPersonalizedFilter.operands.equal", value: "EQUAL" },
|
13
|
+
{ label: "snkPersonalizedFilter.operands.different", value: "DIFFERENT" },
|
14
|
+
{ label: "snkPersonalizedFilter.operands.like", value: "LIKE" },
|
15
|
+
{ label: "snkPersonalizedFilter.operands.in", value: "IN" },
|
16
|
+
{ label: "snkPersonalizedFilter.operands.startWith", value: "START_WITH" },
|
17
|
+
{ label: "snkPersonalizedFilter.operands.finishedWith", value: "FINISHED_WITH" },
|
18
|
+
{ label: "snkPersonalizedFilter.operands.null", value: "NULL" },
|
19
|
+
{ label: "snkPersonalizedFilter.operands.notNull", value: "NOT_NULL" },
|
20
20
|
];
|
21
21
|
const FilterOperandDefault = defaultsOperand.concat([
|
22
|
-
{ label: "
|
23
|
-
{ label: "
|
24
|
-
{ label: "
|
25
|
-
{ label: "
|
22
|
+
{ label: "snkPersonalizedFilter.operands.larger", value: "LARGER" },
|
23
|
+
{ label: "snkPersonalizedFilter.operands.largerEqual", value: "LARGER_EQUAL" },
|
24
|
+
{ label: "snkPersonalizedFilter.operands.smaller", value: "SMALLER" },
|
25
|
+
{ label: "snkPersonalizedFilter.operands.smallerEqual", value: "SMALLER_EQUAL" }
|
26
26
|
]);
|
27
27
|
const FilterOperandTypeTextSearch = defaultsOperand;
|
28
28
|
const FIELD_TYPE_SEARCH_AND_TEXT = [
|
@@ -188,12 +188,15 @@ const SnkExpressionItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
188
188
|
buildOptionsOperator() {
|
189
189
|
var _a;
|
190
190
|
if (FIELD_TYPE_SEARCH_AND_TEXT.includes((_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.userInterface)) {
|
191
|
-
return this.filterOperandTypeTextSearch;
|
191
|
+
return this.translateOperandOptions(this.filterOperandTypeTextSearch);
|
192
192
|
}
|
193
193
|
else {
|
194
|
-
return this.filterOperandDefault;
|
194
|
+
return this.translateOperandOptions(this.filterOperandDefault);
|
195
195
|
}
|
196
196
|
}
|
197
|
+
translateOperandOptions(options) {
|
198
|
+
return options.map(option => ({ label: this.getMessage(option.label), value: option.value }));
|
199
|
+
}
|
197
200
|
handleChangeOperator(optionSelected) {
|
198
201
|
this.checkOptionIsNull(optionSelected);
|
199
202
|
this.setValueExpression("operand", optionSelected);
|
@@ -287,9 +290,7 @@ const SnkExpressionItem = /*@__PURE__*/ proxyCustomElement(class extends HTMLEle
|
|
287
290
|
}
|
288
291
|
render() {
|
289
292
|
var _a;
|
290
|
-
return (h(Host, null, h("div", { class: "dashes" }), h("div", { class: "box" }, h("div", { class: "box__container" }, h("div", { class: "box__container--input-filter" }, h("ez-filter-input", Object.assign({ ref: ref => this._elFilterInput = ref, value: (_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.path, label: this.getMessage("snkPersonalizedFilter.info.labelSearchField"), canShowError: false, onEzChange: (evt) => this.handleChangeFilterInput(evt), onFocus: () => this.handleFocus() }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `expressionFilterInput_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` })), h("snk-filter-field-search", { ref: ref => this._elFilterFieldSearch = ref, searchable: false, onEzSelectFilterItem: (ev) => this.handleSelectItem(ev.detail), fieldsDataSource: this._dataSourceFetcher })), h("div", { class: "box__container--input-operator" }, h("ez-combo-box", Object.assign({ label: this.getMessage("snkPersonalizedFilter.info.labelOperator"), value: this.expression.operand, canShowError: false, options: this.buildOptionsOperator(), onEzChange: (evt) => { var _a; return this.handleChangeOperator((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, suppressEmptyOption: true }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxOperand_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` }))), h("div", { class: "box__container--input-value" }, !this._fieldSelected ?
|
291
|
-
h("ez-number-input", { label: "Valor", canShowError: false, enabled: (!this._showValueVariable && !this._optionNotNull) }) :
|
292
|
-
this.buildFieldByType()), h("div", { class: "box__container--input-value-variable" }, !this._optionNotNull &&
|
293
|
+
return (h(Host, null, h("div", { class: "dashes" }), h("div", { class: "box" }, h("div", { class: "box__container" }, h("div", { class: "box__container--input-filter" }, h("ez-filter-input", Object.assign({ ref: ref => this._elFilterInput = ref, value: (_a = this._fieldSelected) === null || _a === void 0 ? void 0 : _a.path, label: this.getMessage("snkPersonalizedFilter.info.labelSearchField"), canShowError: false, onEzChange: (evt) => this.handleChangeFilterInput(evt), onFocus: () => this.handleFocus() }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `expressionFilterInput_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` })), h("snk-filter-field-search", { ref: ref => this._elFilterFieldSearch = ref, searchable: false, onEzSelectFilterItem: (ev) => this.handleSelectItem(ev.detail), fieldsDataSource: this._dataSourceFetcher })), h("div", { class: "box__container--input-operator" }, h("ez-combo-box", Object.assign({ label: this.getMessage("snkPersonalizedFilter.info.labelOperator"), value: this.expression.operand, canShowError: false, options: this.buildOptionsOperator(), onEzChange: (evt) => { var _a; return this.handleChangeOperator((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); }, suppressEmptyOption: true }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `comboBoxOperand_${this.expression.fieldName || this.DEFAULT_FIELD_NAME}` }))), h("div", { class: "box__container--input-value" }, !this._fieldSelected ? (h("ez-number-input", { label: this.getMessage('snkPersonalizedFilter.info.labelDefaultValue'), canShowError: false, enabled: !this._showValueVariable && !this._optionNotNull })) : (this.buildFieldByType())), h("div", { class: "box__container--input-value-variable" }, !this._optionNotNull &&
|
293
294
|
h("ez-tooltip", { message: this.getMessage("snkPersonalizedFilter.info.checkVariableDisabled"), active: this.isDefaultFilter }, h("ez-check", { ref: ref => this._elValueVariable = ref, value: this.expression.paramVariable, label: this.getMessage("snkPersonalizedFilter.info.labelValueVarible"), mode: CheckMode.SWITCH, onEzChange: (evt) => this.handleChangeValueVariable(evt.detail), enabled: !this.isDefaultFilter })), (this._showValueVariable && !this._optionNotNull) &&
|
294
295
|
h("ez-icon", Object.assign({ class: "box__container--input-value-variable--icon", size: "large", iconName: "settings-inverted" }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: 'iconConfig' }, { title: this.getMessage("snkPersonalizedFilter.info.titleTooltip"), onClick: () => this.openSnkFilterParamConfig() })), h("snk-filter-param-config", { ref: (el) => this._elFilterParamConfigRef = el, messagesBuilder: this.messagesBuilder })), h("div", { class: "box__container--button-delete" }, h("div", { class: "box__container--button-delete--icon" }, h("ez-button", { mode: "icon", iconName: "delete", enabled: this.canRemove, label: this.getMessage("snkPersonalizedFilter.info.labelDeleteItem"), onClick: (evt) => this.confirmRemove(evt) })))))));
|
295
296
|
}
|