@sankhyalabs/sankhyablocks 9.1.0-dev.13 → 9.1.0-dev.15
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-6a4108c9.js → ClientSideExporterProvider-c14393e1.js} +10 -6
- package/dist/cjs/{ConfigStorage-bb8c0edf.js → ConfigStorage-54b9f26d.js} +2 -2
- package/dist/cjs/{DataFetcher-e23a263b.js → DataFetcher-b3508dda.js} +2737 -22
- package/dist/cjs/{FormConfigHelper-c664dbae.js → FormConfigHelper-ebb77625.js} +4 -5
- package/dist/cjs/{ISave-e0be2362.js → ISave-b4f736d5.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-a23df43c.js → SnkFormConfigManager-ee250c13.js} +2 -2
- package/dist/cjs/{auth-fetcher-8670a38f.js → auth-fetcher-e9ffe276.js} +1 -1
- package/dist/cjs/config-header.cjs.entry.js +2 -2
- package/dist/cjs/{dataunit-fetcher-c34a8217.js → dataunit-fetcher-0fe0ee18.js} +22 -21
- package/dist/cjs/field-config_2.cjs.entry.js +9 -6
- package/dist/cjs/fields-layout.cjs.entry.js +20 -13
- package/dist/cjs/fields-selector.cjs.entry.js +11 -6
- package/dist/cjs/{form-config-fetcher-d8b78403.js → form-config-fetcher-e4187da9.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 +20 -9
- package/dist/cjs/snk-application.cjs.entry.js +51 -21
- package/dist/cjs/snk-attach.cjs.entry.js +18 -12
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +17 -13
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -6
- package/dist/cjs/{snk-data-unit-47c6d16b.js → snk-data-unit-a0224064.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-expression-group_2.cjs.entry.js +21 -20
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +10 -10
- 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 +8 -8
- package/dist/cjs/snk-grid.cjs.entry.js +6 -6
- package/dist/cjs/{snk-guides-viewer-1689e877.js → snk-guides-viewer-6b4be669.js} +9 -9
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- 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 +18 -16
- 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 +51 -7
- package/dist/collection/components/snk-attach/snk-attach.js +1 -1
- 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 +12 -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-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-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.js +5 -5
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +4 -5
- 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.js +6 -3
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +2 -2
- 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.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-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 +12 -10
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +26 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +19 -12
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/helpers/DataUnitDataLoaderHelper.js +22 -20
- package/dist/collection/lib/message/SnkMessageBuilder.js +28 -7
- package/dist/collection/lib/message/messageResourceEnUSUtils.js +30 -45
- package/dist/collection/lib/message/messageResourceEsESUtils.js +30 -45
- package/dist/collection/lib/message/messageResourcePtBRUtils.js +30 -45
- package/dist/collection/lib/message/resources/en-us/continuousInsertUtils.msg.js +6 -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/snk-actions-button.msg.js +3 -1
- package/dist/collection/lib/message/resources/en-us/snk-application.msg.js +21 -2
- package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js +4 -1
- package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js +6 -1
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +28 -3
- package/dist/collection/lib/message/resources/en-us/snk-data-unit.msg.js +5 -2
- package/dist/collection/lib/message/resources/en-us/snk-error-handler.msg.js +17 -0
- package/dist/collection/lib/message/resources/en-us/snk-filter-bar.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-form.msg.js +44 -2
- 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 +17 -0
- package/dist/collection/lib/message/resources/en-us/snk-pesquisa.msg.js +25 -0
- package/dist/collection/lib/message/resources/en-us/snk-simple-crud.msg.js +6 -0
- package/dist/collection/lib/message/resources/en-us/snk-simple-form-config.msg.js +16 -0
- package/dist/collection/lib/message/resources/es-es/continuousInsertUtils.msg.js +6 -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/snk-actions-button.msg.js +3 -1
- package/dist/collection/lib/message/resources/es-es/snk-application.msg.js +21 -2
- package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js +3 -0
- package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js +6 -1
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +27 -2
- package/dist/collection/lib/message/resources/es-es/snk-data-unit.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-filter-bar.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-form.msg.js +44 -2
- 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 +17 -0
- package/dist/collection/lib/message/resources/es-es/snk-pesquisa.msg.js +25 -0
- package/dist/collection/lib/message/resources/es-es/snk-simple-crud.msg.js +6 -0
- package/dist/collection/lib/message/resources/es-es/snk-simple-form-config.msg.js +16 -0
- package/dist/collection/lib/message/resources/pt-br/continuousInsertUtils.msg.js +6 -0
- 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/pt-br/snk-actions-button.msg.js +3 -1
- package/dist/collection/lib/message/resources/pt-br/snk-application.msg.js +19 -0
- package/dist/collection/lib/message/resources/pt-br/snk-attach.msg.js +3 -0
- package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +6 -1
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +27 -2
- package/dist/collection/lib/message/resources/pt-br/snk-data-unit.msg.js +3 -0
- package/dist/collection/lib/message/resources/pt-br/snk-error-handler.msg.js +17 -0
- package/dist/collection/lib/message/resources/pt-br/snk-filter-bar.msg.js +7 -0
- package/dist/collection/lib/message/resources/pt-br/snk-filter-list.msg.js +3 -0
- package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +45 -3
- package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -0
- package/dist/collection/lib/message/resources/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/pt-br/snk-simple-crud.msg.js +6 -0
- package/dist/collection/lib/message/resources/pt-br/snk-simple-form-config.msg.js +16 -0
- package/dist/collection/lib/utils/ContinuousInsertUtils.js +6 -2
- package/dist/components/ContinuousInsertUtils.js +6 -2
- package/dist/components/DataFetcher.js +2707 -13
- package/dist/components/config-header2.js +2 -2
- package/dist/components/dataunit-fetcher.js +22 -21
- package/dist/components/field-config2.js +6 -7
- package/dist/components/field-item2.js +6 -3
- package/dist/components/fields-layout2.js +19 -12
- package/dist/components/fields-selector2.js +11 -5
- 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 +46 -15
- package/dist/components/snk-attach2.js +14 -8
- package/dist/components/snk-configurator2.js +1 -1
- package/dist/components/snk-crud.js +12 -8
- package/dist/components/snk-data-unit2.js +5 -11
- package/dist/components/snk-detail-view2.js +19 -13
- 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 +5 -5
- 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-layout-form-config2.js +7 -1
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-pesquisa2.js +23 -16
- package/dist/components/snk-simple-crud2.js +12 -10
- package/dist/components/snk-simple-form-config2.js +7 -1
- package/dist/esm/{ClientSideExporterProvider-09dee1a3.js → ClientSideExporterProvider-4f81855c.js} +10 -6
- package/dist/esm/{ConfigStorage-cf578768.js → ConfigStorage-7f782e00.js} +2 -2
- package/dist/esm/{DataFetcher-db08cad0.js → DataFetcher-b51050a0.js} +2707 -13
- package/dist/esm/{FormConfigHelper-49fe72ca.js → FormConfigHelper-4e42f0b6.js} +4 -5
- package/dist/esm/{ISave-da565824.js → ISave-bc31d9f4.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-c1cd9dcd.js → SnkFormConfigManager-ab1948b0.js} +2 -2
- package/dist/esm/{auth-fetcher-43c8d76b.js → auth-fetcher-8ac800aa.js} +1 -1
- package/dist/esm/config-header.entry.js +2 -2
- package/dist/esm/{dataunit-fetcher-1b78797a.js → dataunit-fetcher-16702941.js} +22 -21
- package/dist/esm/field-config_2.entry.js +9 -6
- package/dist/esm/fields-layout.entry.js +20 -13
- package/dist/esm/fields-selector.entry.js +11 -6
- package/dist/esm/{form-config-fetcher-e623539b.js → form-config-fetcher-6fe8d856.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 +20 -9
- package/dist/esm/snk-application.entry.js +50 -20
- package/dist/esm/snk-attach.entry.js +18 -12
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +17 -13
- package/dist/esm/snk-data-exporter.entry.js +5 -6
- package/dist/esm/{snk-data-unit-c12986b7.js → snk-data-unit-fd6be603.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-expression-group_2.entry.js +21 -20
- package/dist/esm/snk-filter-bar_4.entry.js +10 -10
- 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 +8 -8
- package/dist/esm/snk-grid.entry.js +6 -6
- package/dist/esm/{snk-guides-viewer-defa2629.js → snk-guides-viewer-480d909c.js} +10 -10
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- 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 +19 -17
- package/dist/sankhyablocks/{p-fa591f6f.js → p-05969d8a.js} +1 -1
- package/dist/sankhyablocks/p-07b14811.entry.js +1 -0
- package/dist/sankhyablocks/p-11346b8d.entry.js +1 -0
- package/dist/sankhyablocks/p-162a92a7.entry.js +1 -0
- package/dist/sankhyablocks/p-187a58f2.entry.js +1 -0
- package/dist/sankhyablocks/p-1a150f81.entry.js +1 -0
- package/dist/sankhyablocks/p-1a53afc6.entry.js +1 -0
- package/dist/sankhyablocks/p-20e0db8f.entry.js +1 -0
- package/dist/sankhyablocks/p-21b7b011.entry.js +1 -0
- package/dist/sankhyablocks/p-367c998c.entry.js +1 -0
- package/dist/sankhyablocks/p-379d6206.js +60 -0
- package/dist/sankhyablocks/p-566b468b.entry.js +1 -0
- package/dist/sankhyablocks/{p-c9657baa.js → p-56874df8.js} +1 -1
- package/dist/sankhyablocks/p-5bab470d.entry.js +1 -0
- package/dist/sankhyablocks/p-64fed9bf.js +1 -0
- package/dist/sankhyablocks/p-6703336d.entry.js +1 -0
- package/dist/sankhyablocks/p-68d66cd8.entry.js +11 -0
- package/dist/sankhyablocks/p-6cf54569.js +1 -0
- package/dist/sankhyablocks/{p-b21d32f6.js → p-709bf708.js} +1 -1
- 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-7baecc09.entry.js +1 -0
- package/dist/sankhyablocks/p-7fd47ce5.entry.js +1 -0
- package/dist/sankhyablocks/p-8f73da95.js +1 -0
- package/dist/sankhyablocks/{p-90ee1990.entry.js → p-a200817c.entry.js} +1 -1
- package/dist/sankhyablocks/p-a5108625.entry.js +1 -0
- package/dist/sankhyablocks/p-c4eae355.entry.js +1 -0
- package/dist/sankhyablocks/p-cc55bf41.entry.js +1 -0
- package/dist/sankhyablocks/p-d271f2b4.entry.js +1 -0
- package/dist/sankhyablocks/p-d540affc.js +1 -0
- package/dist/sankhyablocks/{p-e25412da.js → p-dc27d59a.js} +1 -1
- package/dist/sankhyablocks/{p-cfa8cac2.entry.js → p-e67e9a48.entry.js} +1 -1
- package/dist/sankhyablocks/p-e93ca8a8.js +1 -0
- package/dist/sankhyablocks/p-f8f29e1a.entry.js +1 -0
- package/dist/sankhyablocks/{p-405edf96.js → p-fb757021.js} +1 -1
- 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 +6 -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 +1 -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-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-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-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 +1 -0
- package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +6 -0
- package/dist/types/components.d.ts +24 -0
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +2 -0
- package/dist/types/lib/message/SnkMessageBuilder.d.ts +8 -1
- package/dist/types/lib/message/resources/en-us/continuousInsertUtils.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/snk-error-handler.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/en-us/snk-simple-form-config.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/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/snk-error-handler.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-layout-form-config.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-simple-form-config.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/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/snk-error-handler.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-layout-form-config.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-simple-form-config.msg.d.ts +1 -0
- package/dist/types/lib/utils/ContinuousInsertUtils.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/SnkMessageBuilder-acd9ec62.js +0 -1937
- package/dist/components/SnkMessageBuilder.js +0 -1915
- package/dist/esm/SnkMessageBuilder-c8b452b6.js +0 -1915
- package/dist/sankhyablocks/p-09ba8326.entry.js +0 -1
- package/dist/sankhyablocks/p-1c69a957.entry.js +0 -1
- package/dist/sankhyablocks/p-224fa6f9.js +0 -1
- package/dist/sankhyablocks/p-22a8656b.entry.js +0 -1
- package/dist/sankhyablocks/p-23b20add.entry.js +0 -1
- package/dist/sankhyablocks/p-2628f34e.entry.js +0 -1
- package/dist/sankhyablocks/p-34cfb5ad.entry.js +0 -11
- package/dist/sankhyablocks/p-35e73c5d.js +0 -1
- package/dist/sankhyablocks/p-360f0b74.js +0 -1
- package/dist/sankhyablocks/p-37b4f642.js +0 -60
- package/dist/sankhyablocks/p-49d968e2.entry.js +0 -1
- package/dist/sankhyablocks/p-4b8691b6.js +0 -1
- package/dist/sankhyablocks/p-4d2ff2fb.entry.js +0 -1
- package/dist/sankhyablocks/p-4eb731b3.js +0 -1
- package/dist/sankhyablocks/p-60d3abf6.entry.js +0 -1
- package/dist/sankhyablocks/p-6bc7c7ee.entry.js +0 -1
- package/dist/sankhyablocks/p-71a05822.entry.js +0 -1
- package/dist/sankhyablocks/p-7ced2cf4.entry.js +0 -1
- package/dist/sankhyablocks/p-81820bf8.entry.js +0 -1
- package/dist/sankhyablocks/p-86bd4478.entry.js +0 -1
- package/dist/sankhyablocks/p-86c8f7f2.entry.js +0 -1
- package/dist/sankhyablocks/p-aef68e58.entry.js +0 -1
- package/dist/sankhyablocks/p-b033bf30.entry.js +0 -1
- package/dist/sankhyablocks/p-b1ea8c6d.entry.js +0 -1
- package/dist/sankhyablocks/p-cb2a4613.entry.js +0 -1
- package/dist/sankhyablocks/p-cd1a5b6a.js +0 -1
- package/dist/sankhyablocks/p-cfc219f6.entry.js +0 -1
- package/dist/sankhyablocks/p-d67526b6.entry.js +0 -1
- package/dist/sankhyablocks/p-f442c8f6.entry.js +0 -1
- package/dist/sankhyablocks/p-f65421cd.entry.js +0 -1
@@ -5,16 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
9
|
-
const DataFetcher = require('./DataFetcher-
|
10
|
-
const authFetcher = require('./auth-fetcher-
|
11
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
12
|
-
const ISave = require('./ISave-
|
13
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-acd9ec62.js');
|
8
|
+
const ConfigStorage = require('./ConfigStorage-54b9f26d.js');
|
9
|
+
const DataFetcher = require('./DataFetcher-b3508dda.js');
|
10
|
+
const authFetcher = require('./auth-fetcher-e9ffe276.js');
|
11
|
+
const dataunitFetcher = require('./dataunit-fetcher-0fe0ee18.js');
|
12
|
+
const ISave = require('./ISave-b4f736d5.js');
|
14
13
|
const constants = require('./constants-6d82e405.js');
|
15
14
|
require('./index-e3e39724.js');
|
16
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
16
|
+
const formConfigFetcher = require('./form-config-fetcher-e4187da9.js');
|
18
17
|
require('./PrintUtils-bcaeb82f.js');
|
19
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
20
19
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -239,6 +238,9 @@ class SnkErrorHandler {
|
|
239
238
|
window.addEventListener("error", evt => this.errorHandler(evt));
|
240
239
|
window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
|
241
240
|
}
|
241
|
+
getMessage(key, params) {
|
242
|
+
return this._app.messagesBuilder.getMessage(key, params);
|
243
|
+
}
|
242
244
|
rejectionHandler(evt) {
|
243
245
|
const reason = evt.reason;
|
244
246
|
//Promisse rejeitada com WaitingChangeException, não precisam
|
@@ -250,7 +252,7 @@ class SnkErrorHandler {
|
|
250
252
|
else {
|
251
253
|
this._app.isDebugMode().then((isDebug) => {
|
252
254
|
if (isDebug) {
|
253
|
-
this._app.error("
|
255
|
+
this._app.error(this.getMessage("snkErrorHandler.title.promiseRejected"), this.getMessage("snkErrorHandler.message.undeterminedPromiseRejection"));
|
254
256
|
}
|
255
257
|
});
|
256
258
|
}
|
@@ -260,15 +262,17 @@ class SnkErrorHandler {
|
|
260
262
|
this.processException(evt.error);
|
261
263
|
}
|
262
264
|
buildErrorCodeHTML(errorCode) {
|
263
|
-
const
|
264
|
-
|
265
|
+
const cannotOpenHelpMessage = this.getMessage("snkErrorHandler.message.cannotOpenHelp");
|
266
|
+
const errorCodeLabel = this.getMessage("snkErrorHandler.errorCode.label");
|
267
|
+
const onclick = `try{window.workspace.openHelp('_tbcode:${errorCode}')} catch(e){alert('${cannotOpenHelpMessage}');}`;
|
268
|
+
return `<br><a href="#" onclick="${onclick}">${errorCodeLabel}${errorCode}</a>`;
|
265
269
|
}
|
266
270
|
processException(exception) {
|
267
271
|
if (exception.errorCode) {
|
268
272
|
exception.message += this.buildErrorCodeHTML(exception.errorCode);
|
269
273
|
}
|
270
274
|
if (exception instanceof core.SilentException) {
|
271
|
-
console.warn("
|
275
|
+
console.warn(this.getMessage("snkErrorHandler.message.silentExceptionIgnored"), exception);
|
272
276
|
}
|
273
277
|
else if (exception instanceof core.WaitingChangeException) {
|
274
278
|
this._app.alert(exception.title, exception.message);
|
@@ -286,8 +290,9 @@ class SnkErrorHandler {
|
|
286
290
|
this._app.error(exception.name, exception.message);
|
287
291
|
}
|
288
292
|
else {
|
289
|
-
const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "
|
290
|
-
const message = (typeof exception === "string") ? exception :
|
293
|
+
const title = (exception === null || exception === void 0 ? void 0 : exception.title) || this.getMessage("snkErrorHandler.title.errorDetected", undefined);
|
294
|
+
const message = (typeof exception === "string") ? exception :
|
295
|
+
exception.message || `${this.getMessage("snkErrorHandler.error.internal")} "${core.ObjectUtils.objectToString(exception)}"`;
|
291
296
|
this._app.error(title, message);
|
292
297
|
}
|
293
298
|
}
|
@@ -528,6 +533,7 @@ const SnkApplication = class {
|
|
528
533
|
this.applicationLoaded = index.createEvent(this, "applicationLoaded", 7);
|
529
534
|
this.applicationLoading = index.createEvent(this, "applicationLoading", 7);
|
530
535
|
this.NEW_VERSION_POPUP_LOCKER = "NEW_VERSION_POPUP_LOCKER";
|
536
|
+
this.FEATURE_FLAG_CACHE_DURATION = 3600000; // 1 hora em milissegundos
|
531
537
|
this._authPromises = [];
|
532
538
|
this._keyboardManager = new core.KeyboardManager();
|
533
539
|
this._waitingAppReady = new Array();
|
@@ -535,6 +541,7 @@ const SnkApplication = class {
|
|
535
541
|
this._duPromises = new Map();
|
536
542
|
this._requestListener = RequestListenerFactory.create({ strategy: 'request_time' });
|
537
543
|
this._maxTimerAppLoading = 10000;
|
544
|
+
this._featureFlagsCache = new Map();
|
538
545
|
this._isBrowserTypeElectron = false;
|
539
546
|
this._pendingActions = new Map;
|
540
547
|
this._loadPkParameter = null;
|
@@ -826,6 +833,29 @@ const SnkApplication = class {
|
|
826
833
|
.catch(error => reject(error));
|
827
834
|
});
|
828
835
|
}
|
836
|
+
/**
|
837
|
+
* Retorna se uma feature flag global está ativa ou não.
|
838
|
+
*/
|
839
|
+
async isFeatureActive(featureName) {
|
840
|
+
const now = Date.now();
|
841
|
+
let payload = {
|
842
|
+
"serviceName": "SystemUtilsSP.featureIsActive",
|
843
|
+
"requestBody": {
|
844
|
+
"featureName": featureName
|
845
|
+
}
|
846
|
+
};
|
847
|
+
if (this._featureFlagsCache.get(featureName) && now < this._featureFlagsCache.get(featureName).expires) {
|
848
|
+
return Promise.resolve(this._featureFlagsCache.get(featureName).isActive);
|
849
|
+
}
|
850
|
+
//Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
|
851
|
+
const result = await DataFetcher.DataFetcher.get().callServiceBroker("SystemUtilsSP.featureIsActive", JSON.stringify(payload));
|
852
|
+
const isActive = result.isActive;
|
853
|
+
this._featureFlagsCache.set(featureName, {
|
854
|
+
isActive: isActive,
|
855
|
+
expires: now + this.FEATURE_FLAG_CACHE_DURATION,
|
856
|
+
});
|
857
|
+
return isActive;
|
858
|
+
}
|
829
859
|
/**
|
830
860
|
* Salva a configuração de determinado recurso.
|
831
861
|
*/
|
@@ -1135,8 +1165,8 @@ const SnkApplication = class {
|
|
1135
1165
|
const dataType = (masterDescriptor === null || masterDescriptor === void 0 ? void 0 : masterDescriptor.dataType) || core.DataType.TEXT;
|
1136
1166
|
const value = dataUnit.getFieldValue(fieldName);
|
1137
1167
|
if (value == undefined) {
|
1138
|
-
this.alert("
|
1139
|
-
throw new Error(
|
1168
|
+
this.alert(this.getMessage("snkApplication.search.error.title"), this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
|
1169
|
+
throw new Error(this.getMessage("snkApplication.search.error.requiredField", { fieldLabel: masterDescriptor.label }));
|
1140
1170
|
}
|
1141
1171
|
return { name: fieldName, value, dataType };
|
1142
1172
|
})
|
@@ -1407,7 +1437,7 @@ const SnkApplication = class {
|
|
1407
1437
|
const snkDataUnit = this.getFirstDataUnitFromDOM();
|
1408
1438
|
const dataUnit = snkDataUnit.dataUnit;
|
1409
1439
|
if (!dataUnit) {
|
1410
|
-
console.warn("
|
1440
|
+
console.warn(this.getMessage("snkApplication.dataUnit.initDataUnitError"));
|
1411
1441
|
snkDataUnit.addEventListener("dataUnitReady", (event) => {
|
1412
1442
|
this.loadDataWithPKFilter(pkObject, event.detail);
|
1413
1443
|
this._currentPkParameter = pkHash;
|
@@ -1532,7 +1562,7 @@ const SnkApplication = class {
|
|
1532
1562
|
componentWillLoad() {
|
1533
1563
|
core.ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", true);
|
1534
1564
|
this._errorHandler = new SnkErrorHandler(this);
|
1535
|
-
this.messagesBuilder = new
|
1565
|
+
this.messagesBuilder = new DataFetcher.SnkMessageBuilder();
|
1536
1566
|
core.ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${DataFetcher.UrlUtils.getUrlBase()}/mge/upload/file`);
|
1537
1567
|
core.ApplicationContext.setContextValue("__EZUI__SEARCH__OPTION__LOADER__", (searchArgument, fieldName, dataUnit, ctxOptions) => {
|
1538
1568
|
return this.executeSearch(searchArgument, fieldName, dataUnit, ctxOptions);
|
@@ -1661,9 +1691,9 @@ const SnkApplication = class {
|
|
1661
1691
|
}
|
1662
1692
|
initKeyboardManager() {
|
1663
1693
|
this._keyboardManager
|
1664
|
-
.bind("ctrl + g", Workspace.searchApp.bind(this), { description: "
|
1665
|
-
.bind("ctrl + d", Workspace.showDesktop.bind(this), { description: "
|
1666
|
-
.bind("F1", Workspace.openHelp.bind(this), { description: "
|
1694
|
+
.bind("ctrl + g", Workspace.searchApp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.searchApp") })
|
1695
|
+
.bind("ctrl + d", Workspace.showDesktop.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.showDesktop") })
|
1696
|
+
.bind("F1", Workspace.openHelp.bind(this), { description: this.getMessage("snkApplication.keyboard.shortcuts.openHelp") });
|
1667
1697
|
}
|
1668
1698
|
removeShortcuts() {
|
1669
1699
|
this._keyboardManager.unbindAllShortcutKeys();
|
@@ -1709,7 +1739,7 @@ const SnkApplication = class {
|
|
1709
1739
|
return (index.h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, index.h("div", { class: "ez-margin--medium ez-margin-top--medium ez-padding--medium" }, index.h("ez-skeleton", { count: 1, variant: "text", width: "70%", height: "25px", animation: "progress" })), index.h("div", { class: "ez-flex ez-margin--medium ez-margin-top--medium", style: { maxHeight: "calc(-105px + 100vh)", overflow: "hidden" } }, index.h("div", { class: "ez-flex ez-flex--column ez-margin-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(30, 6)).fill(null).map((_, index$1) => index.h("ez-skeleton", { key: index$1, count: 1, variant: "text", width: this.getSkeletonRandomWidth(), height: "30px", animation: "progress", marginBottom: "10px" }))), index.h("div", { class: "ez-flex ez-flex--column", style: { width: "75%" } }, index.h("div", { class: "ez-padding--medium", style: { width: "100%" } }, index.h("ez-skeleton", { count: 1, variant: "text", width: "30%", height: "25px", animation: "progress" })), index.h("div", { class: "ez-padding--medium", style: { height: "45%" } }, index.h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (index.h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index$1) => index.h("ez-skeleton", { key: index$1, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" }))))))), index.h("div", { class: "ez-padding--medium", style: { width: "100%" } }, index.h("ez-skeleton", { count: 1, variant: "text", width: "30%", height: "25px", animation: "progress" })), index.h("div", { class: "ez-padding--medium", style: { height: "45%" } }, index.h("div", { class: "ez-flex", style: { width: "100%", height: "100%" } }, [1, 2, 3, 4].map((_, columnIndex) => (index.h("div", { key: columnIndex, class: "ez-padding-right--large", style: { width: "25%", overflow: "hidden" } }, Array(this.getCountSkeleton(50, 20)).fill(null).map((_, index$1) => index.h("ez-skeleton", { key: index$1, count: 1, variant: "text", width: "100%", height: "50px", animation: "progress", marginBottom: "10px" })))))))))));
|
1710
1740
|
}
|
1711
1741
|
getSpinnerLoadingDefault() {
|
1712
|
-
return (index.h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, index.h("div", { class: "ez-flex ez-size-height--full ez-size-width--full ez-flex--justify-center ez-flex--align-items-center spinner" }, index.h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), index.h("span", { class: "ez-title ez-title--secondary ez-title--extra-large" }, "
|
1742
|
+
return (index.h("div", { class: "loading-hidden", style: this.getLoadingVisibilityStyle() }, index.h("div", { class: "ez-flex ez-size-height--full ez-size-width--full ez-flex--justify-center ez-flex--align-items-center spinner" }, index.h("ez-icon", { iconName: "sync", size: "x-large", class: "spin" }), index.h("span", { class: "ez-title ez-title--secondary ez-title--extra-large" }, this.getMessage("snkApplication.loading.text")))));
|
1713
1743
|
}
|
1714
1744
|
render() {
|
1715
1745
|
return (index.h(index.Host, { style: {
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const DataFetcher = require('./DataFetcher-
|
8
|
-
const ISave = require('./ISave-
|
7
|
+
const DataFetcher = require('./DataFetcher-b3508dda.js');
|
8
|
+
const ISave = require('./ISave-b4f736d5.js');
|
9
9
|
require('./index-e3e39724.js');
|
10
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
10
|
+
const dataunitFetcher = require('./dataunit-fetcher-0fe0ee18.js');
|
11
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
12
|
-
require('./form-config-fetcher-
|
12
|
+
require('./form-config-fetcher-e4187da9.js');
|
13
13
|
const constants = require('./constants-6d82e405.js');
|
14
|
-
const authFetcher = require('./auth-fetcher-
|
14
|
+
const authFetcher = require('./auth-fetcher-e9ffe276.js');
|
15
15
|
const taskbarElements = require('./taskbar-elements-3b74cd21.js');
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
17
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
@@ -356,10 +356,12 @@ class AnexoSistemaDataUnitFactory {
|
|
356
356
|
}
|
357
357
|
}
|
358
358
|
|
359
|
-
|
359
|
+
let messageBuilderInstance;
|
360
360
|
const getMessage$1 = (key) => {
|
361
|
-
|
362
|
-
|
361
|
+
if (!messageBuilderInstance) {
|
362
|
+
messageBuilderInstance = new DataFetcher.SnkMessageBuilder();
|
363
|
+
}
|
364
|
+
return messageBuilderInstance.getMessage(key);
|
363
365
|
};
|
364
366
|
const attachCrudConfig = {
|
365
367
|
grid: {
|
@@ -533,10 +535,14 @@ class AttachFetcherDataUnitFactory {
|
|
533
535
|
}
|
534
536
|
}
|
535
537
|
|
536
|
-
|
538
|
+
let messagesBuilder;
|
537
539
|
const getMessage = (key) => {
|
538
|
-
var _a
|
539
|
-
|
540
|
+
var _a;
|
541
|
+
if (!messagesBuilder) {
|
542
|
+
const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
543
|
+
messagesBuilder = application === null || application === void 0 ? void 0 : application.messagesBuilder;
|
544
|
+
}
|
545
|
+
return (_a = messagesBuilder === null || messagesBuilder === void 0 ? void 0 : messagesBuilder.getMessage) === null || _a === void 0 ? void 0 : _a.call(messagesBuilder, key, null);
|
540
546
|
};
|
541
547
|
const TaskbarAttachButtons = {
|
542
548
|
DOWNLOAD: {
|
@@ -722,7 +728,7 @@ const SnkAttach = class {
|
|
722
728
|
}
|
723
729
|
downloadAttachment(selectedRecord) {
|
724
730
|
if (!selectedRecord)
|
725
|
-
throw new Error(
|
731
|
+
throw new Error(this.getMessage("snkAttach.alertValidation.noRecordSelected.message"));
|
726
732
|
if (selectedRecord.LINK) {
|
727
733
|
window.open(`${selectedRecord.LINK}`);
|
728
734
|
return;
|
@@ -113,7 +113,7 @@ const SnkConfigurator = class {
|
|
113
113
|
insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
|
114
114
|
}
|
115
115
|
render() {
|
116
|
-
return (index.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() }, index.h("div", { class: "snk-configurator" }, index.h("div", { class: "snk-configurator__header" }, index.h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), index.h("div", { class: "snk-configurator__button-close" }, index.h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), index.h("div", { class: "snk-configurator__main" }, index.h("ez-collapsible-box", { boxBordered: true, label:
|
116
|
+
return (index.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() }, index.h("div", { class: "snk-configurator" }, index.h("div", { class: "snk-configurator__header" }, index.h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), index.h("div", { class: "snk-configurator__button-close" }, index.h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), index.h("div", { class: "snk-configurator__main" }, index.h("ez-collapsible-box", { boxBordered: true, label: this.getMessage('snkConfigurator.subTitleModeConfig'), headerSize: "medium", class: "snk-configurator__collapsable-box" }, index.h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: constants.VIEW_MODE.GRID }), index.h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: constants.VIEW_MODE.FORM })), index.h("div", { class: "snk-configurator__collsable-box-action" }, index.h("ez-button", { label: this.viewMode === constants.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 && index.h("ez-collapsible-box", { boxBordered: true, value: true, label: this.getMessage('snkConfigurator.labelLayoutForm'), headerSize: "medium", class: "snk-configurator__collapsable-box ez-margin-top--medium" }, index.h("div", { class: 'ez-flex ez-flex--column ez-size-width--full' }, index.h("snk-layout-form-config", { ref: (ref) => this._snkLayoutFormConfig = ref, messagesBuilder: this.messagesBuilder }))), index.h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (index.h("div", { class: "snk-configurator__action-buttons" }, index.h("ez-button", { label: this.getMessage('snkConfigurator.buttons.cancel'), onClick: () => this.cancel.emit() }), index.h("ez-button", { label: this.getMessage('snkConfigurator.buttons.save'), onClick: () => this.handleSave(), class: "ez-button--primary" }))))));
|
117
117
|
}
|
118
118
|
get _element() { return index.getElement(this); }
|
119
119
|
};
|
@@ -5,16 +5,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const taskbarElements = require('./taskbar-elements-3b74cd21.js');
|
8
|
-
require('./DataFetcher-
|
9
|
-
require('./ISave-
|
8
|
+
require('./DataFetcher-b3508dda.js');
|
9
|
+
require('./ISave-b4f736d5.js');
|
10
10
|
const index$1 = require('./index-e3e39724.js');
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
13
|
-
require('./dataunit-fetcher-
|
13
|
+
require('./dataunit-fetcher-0fe0ee18.js');
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
|
-
require('./form-config-fetcher-
|
15
|
+
require('./form-config-fetcher-e4187da9.js');
|
16
16
|
const constants = require('./constants-6d82e405.js');
|
17
|
-
const authFetcher = require('./auth-fetcher-
|
17
|
+
const authFetcher = require('./auth-fetcher-e9ffe276.js');
|
18
18
|
require('./index-0ad2baeb.js');
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
20
20
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -319,28 +319,32 @@ const SnkCrud = class {
|
|
319
319
|
}
|
320
320
|
if (this._keyboardManager) {
|
321
321
|
this._keyboardManager
|
322
|
-
.bind("F6", this.toggleView.bind(this), { description: "
|
323
|
-
.bind("F7", saveDataUnitHandlingFocus.bind(this), { description: "
|
324
|
-
.bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: "
|
325
|
-
.bind("F8", handleAddRecord.bind(this), { description: "
|
326
|
-
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "
|
327
|
-
.bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "
|
322
|
+
.bind("F6", this.toggleView.bind(this), { description: this.getMessage("snkCrud.shortcuts.toggleView"), element: this._element })
|
323
|
+
.bind("F7", saveDataUnitHandlingFocus.bind(this), { description: this.getMessage("snkCrud.shortcuts.saveData"), element: this._element })
|
324
|
+
.bind("ctrl + \\", saveDataUnitHandlingFocus.bind(this), { description: this.getMessage("snkCrud.shortcuts.addRecord"), element: this._element })
|
325
|
+
.bind("F8", handleAddRecord.bind(this), { description: this.getMessage("snkCrud.shortcuts.addRecord"), element: this._element })
|
326
|
+
.bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkCrud.shortcuts.removeRecord"), element: this._element })
|
327
|
+
.bind("ctrl + F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: this.getMessage("snkCrud.shortcuts.removeRecord"), element: this._element })
|
328
328
|
.bind("F5", async () => {
|
329
329
|
const currentView = await this._viewStack.getSelectedIndex();
|
330
330
|
if (constants.VIEW_MODE.GRID === currentView) {
|
331
331
|
dataUnit.loadData();
|
332
332
|
}
|
333
|
-
}, { description: "
|
333
|
+
}, { description: this.getMessage("snkCrud.shortcuts.refreshData"), element: this._element })
|
334
334
|
.bind("Escape", () => {
|
335
335
|
if (dataUnit.isDirty()) {
|
336
336
|
dataUnit.cancelEdition();
|
337
337
|
}
|
338
338
|
}, {
|
339
339
|
debounceTime: 1000,
|
340
|
-
description: "
|
340
|
+
description: this.getMessage("snkCrud.shortcuts.cancelAction"), element: this._element
|
341
341
|
});
|
342
342
|
}
|
343
343
|
}
|
344
|
+
getMessage(key, params) {
|
345
|
+
if (this.messagesBuilder)
|
346
|
+
return this.messagesBuilder.getMessage(key, params);
|
347
|
+
}
|
344
348
|
async removeShortcuts() {
|
345
349
|
var _a;
|
346
350
|
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
@@ -8,16 +8,15 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
9
9
|
const index = require('./index-e3e39724.js');
|
10
10
|
const constants = require('./constants-6d82e405.js');
|
11
|
-
const DataFetcher = require('./DataFetcher-
|
12
|
-
const snkDataUnit = require('./snk-data-unit-
|
13
|
-
require('./ISave-
|
11
|
+
const DataFetcher = require('./DataFetcher-b3508dda.js');
|
12
|
+
const snkDataUnit = require('./snk-data-unit-a0224064.js');
|
13
|
+
require('./ISave-b4f736d5.js');
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
16
|
-
require('./dataunit-fetcher-
|
16
|
+
require('./dataunit-fetcher-0fe0ee18.js');
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
18
|
-
require('./form-config-fetcher-
|
18
|
+
require('./form-config-fetcher-e4187da9.js');
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
20
|
-
require('./SnkMessageBuilder-acd9ec62.js');
|
21
20
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
22
21
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
23
22
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -3,8 +3,8 @@
|
|
3
3
|
const index = require('./index-1cf293c1.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
6
|
-
const
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
6
|
+
const DataFetcher = require('./DataFetcher-b3508dda.js');
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-0fe0ee18.js');
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
10
10
|
|
@@ -36,11 +36,13 @@ function groupChanges(changingFields) {
|
|
36
36
|
return changesMap;
|
37
37
|
}
|
38
38
|
function getTabName(tabName) {
|
39
|
+
const application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
40
|
+
const labelPrincipal = application.messagesBuilder.getMessage("snkDataUnit.main");
|
39
41
|
switch (tabName) {
|
40
42
|
case NO_TAB_NAME:
|
41
43
|
return "";
|
42
44
|
case MAIN_TAB_NAME:
|
43
|
-
return
|
45
|
+
return labelPrincipal;
|
44
46
|
default:
|
45
47
|
return tabName;
|
46
48
|
}
|
@@ -679,7 +681,7 @@ const SnkDataUnit = class {
|
|
679
681
|
this.dataState = await this.buildDataState();
|
680
682
|
let saveOperation = changes[0]._operation.toLowerCase();
|
681
683
|
if (saveOperation == 'copy') {
|
682
|
-
saveOperation =
|
684
|
+
saveOperation = DataFetcher.OperationMap.CLONE;
|
683
685
|
}
|
684
686
|
if (this.canIgnoreOperationMessage(saveOperation))
|
685
687
|
return;
|
@@ -692,7 +694,7 @@ const SnkDataUnit = class {
|
|
692
694
|
return this.ignoreSaveMessage && !this.isCloneOrInsertOperation(saveOperation);
|
693
695
|
}
|
694
696
|
isCloneOrInsertOperation(saveOperation) {
|
695
|
-
return [
|
697
|
+
return [DataFetcher.OperationMap.CLONE, DataFetcher.OperationMap.INSERT].includes(saveOperation);
|
696
698
|
}
|
697
699
|
buildOperationMessage(saveOperation, records) {
|
698
700
|
if (this.isMultiplesUpdate(saveOperation, records)) {
|
@@ -707,10 +709,10 @@ const SnkDataUnit = class {
|
|
707
709
|
* de um registro se trata de uma chave composta.
|
708
710
|
*/
|
709
711
|
const key = `snkDataUnit.${isCancel ? 'cancelInfo' : 'saveInfo'}`;
|
710
|
-
return this.getMessage(key, { records: records },
|
712
|
+
return this.getMessage(key, { records: records }, DataFetcher.OperationMap.UPDATE_MULTIPLES);
|
711
713
|
}
|
712
714
|
isMultiplesUpdate(saveOperation, records) {
|
713
|
-
return saveOperation ===
|
715
|
+
return saveOperation === DataFetcher.OperationMap.UPDATE && records.length > 1;
|
714
716
|
}
|
715
717
|
handleRecordsRemoved(action) {
|
716
718
|
var _a, _b;
|
@@ -755,15 +757,15 @@ const SnkDataUnit = class {
|
|
755
757
|
}
|
756
758
|
getMessageOperation() {
|
757
759
|
if (this.dataState.copyMode) {
|
758
|
-
return
|
760
|
+
return DataFetcher.OperationMap.CLONE;
|
759
761
|
}
|
760
762
|
if (this.dataState.insertionMode || this.dataState.isStartingInsertionMode) {
|
761
|
-
return
|
763
|
+
return DataFetcher.OperationMap.INSERT;
|
762
764
|
}
|
763
765
|
if (this.dataState.isDirty) {
|
764
|
-
return
|
766
|
+
return DataFetcher.OperationMap.UPDATE;
|
765
767
|
}
|
766
|
-
return
|
768
|
+
return DataFetcher.OperationMap.CLEAN;
|
767
769
|
}
|
768
770
|
async getDataUnitParentOrChild() {
|
769
771
|
var _a;
|
@@ -866,7 +868,7 @@ const SnkDataUnit = class {
|
|
866
868
|
if (this.messagesBuilder) {
|
867
869
|
return;
|
868
870
|
}
|
869
|
-
this.messagesBuilder = new
|
871
|
+
this.messagesBuilder = new DataFetcher.SnkMessageBuilder((_a = this.domainMessagesBuilder) !== null && _a !== void 0 ? _a : this.entityName);
|
870
872
|
}
|
871
873
|
//---------------------------------------------
|
872
874
|
// Lifecycle web component
|
@@ -914,14 +916,6 @@ class DataStateImpl {
|
|
914
916
|
this.metadataByRow = datastate.metadataByRow;
|
915
917
|
this.rowMetadata = datastate.rowMetadata;
|
916
918
|
}
|
917
|
-
get selectedRecords() {
|
918
|
-
var _a;
|
919
|
-
console.warn("SnkDataUnit: O método `selectedRecords` foi descontinuado. Use o método `selectionInfo`.");
|
920
|
-
if ((_a = this.selectionInfo) === null || _a === void 0 ? void 0 : _a.isAllRecords()) {
|
921
|
-
throw new Error("Erro interno: Impossível obter os registros selecionados. A seleção atual é virtual. Use o atributo `selectionInfo`.");
|
922
|
-
}
|
923
|
-
return this.selectionInfo.records;
|
924
|
-
}
|
925
919
|
}
|
926
920
|
|
927
921
|
exports.SnkDataUnit = SnkDataUnit;
|
@@ -2,15 +2,14 @@
|
|
2
2
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
4
4
|
|
5
|
-
const snkDataUnit = require('./snk-data-unit-
|
5
|
+
const snkDataUnit = require('./snk-data-unit-a0224064.js');
|
6
6
|
require('./index-1cf293c1.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
9
|
-
require('./
|
10
|
-
require('./dataunit-fetcher-c34a8217.js');
|
11
|
-
require('./DataFetcher-e23a263b.js');
|
9
|
+
require('./DataFetcher-b3508dda.js');
|
12
10
|
require('./PrintUtils-bcaeb82f.js');
|
13
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
12
|
+
require('./dataunit-fetcher-0fe0ee18.js');
|
14
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
15
14
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
16
15
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
@@ -4,22 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-ee250c13.js');
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
9
|
-
require('./DataFetcher-
|
10
|
-
require('./ISave-
|
9
|
+
const DataFetcher = require('./DataFetcher-b3508dda.js');
|
10
|
+
require('./ISave-b4f736d5.js');
|
11
11
|
const index$1 = require('./index-e3e39724.js');
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
|
-
require('./dataunit-fetcher-
|
14
|
+
require('./dataunit-fetcher-0fe0ee18.js');
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
16
|
-
require('./form-config-fetcher-
|
16
|
+
require('./form-config-fetcher-e4187da9.js');
|
17
17
|
const constants = require('./constants-6d82e405.js');
|
18
18
|
const taskbarElements = require('./taskbar-elements-3b74cd21.js');
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
20
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-acd9ec62.js');
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-6b4be669.js');
|
21
20
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
22
|
-
require('./ConfigStorage-
|
21
|
+
require('./ConfigStorage-54b9f26d.js');
|
23
22
|
require('./PrintUtils-bcaeb82f.js');
|
24
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
25
24
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
@@ -29,14 +28,21 @@ require('./taskbar-processor-2fba34a8.js');
|
|
29
28
|
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
30
29
|
|
31
30
|
class GuideBuilder {
|
32
|
-
constructor(parentGuide, formMetadata, dataUnit) {
|
31
|
+
constructor(parentGuide, formMetadata, dataUnit, messageBuilder) {
|
33
32
|
this._parentGuide = parentGuide;
|
34
33
|
this._formMetadata = formMetadata;
|
35
34
|
this._dataUnit = dataUnit;
|
35
|
+
this._messageBuilder = messageBuilder;
|
36
|
+
if (!this._messageBuilder) {
|
37
|
+
this._messageBuilder = new DataFetcher.SnkMessageBuilder();
|
38
|
+
}
|
36
39
|
}
|
37
40
|
get id() {
|
38
41
|
return this._parentGuide.id;
|
39
42
|
}
|
43
|
+
getMessage(key, params) {
|
44
|
+
return this._messageBuilder.getMessage(key, params);
|
45
|
+
}
|
40
46
|
buildGuideItem(detailBuilders) {
|
41
47
|
const item = Object.assign({}, this._parentGuide);
|
42
48
|
delete item.expanded;
|
@@ -60,11 +66,11 @@ class GuideBuilder {
|
|
60
66
|
id,
|
61
67
|
label,
|
62
68
|
disabled,
|
63
|
-
tooltip: disabled ? "
|
69
|
+
tooltip: disabled ? this.getMessage("snkCrud.guide.tooltip.disabledDetail") : undefined
|
64
70
|
};
|
65
71
|
});
|
66
72
|
const newGuideItem = children.shift();
|
67
|
-
newGuideItem.label = isNewRecord ? "
|
73
|
+
newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.title.newRecord") : currentRecord.__record__label__;
|
68
74
|
newGuideItem.children = children;
|
69
75
|
item.children = [newGuideItem];
|
70
76
|
return item;
|
@@ -117,7 +123,7 @@ const SnkDetailView = class {
|
|
117
123
|
const newRecord = newValue === null || newValue === void 0 ? void 0 : newValue.selectedRecord;
|
118
124
|
const oldRecord = oldValue === null || oldValue === void 0 ? void 0 : oldValue.selectedRecord;
|
119
125
|
if ((newRecord === null || newRecord === void 0 ? void 0 : newRecord.__record__id__) !== (oldRecord === null || oldRecord === void 0 ? void 0 : oldRecord.__record__id__)) {
|
120
|
-
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
|
126
|
+
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit, this.messagesBuilder));
|
121
127
|
}
|
122
128
|
if (openInsertion) {
|
123
129
|
setTimeout(() => {
|
@@ -297,7 +303,7 @@ const SnkDetailView = class {
|
|
297
303
|
this.formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata(), this.dataUnit);
|
298
304
|
this.formConfigManager.loadConfig();
|
299
305
|
if (this.messagesBuilder == undefined) {
|
300
|
-
this.messagesBuilder = new
|
306
|
+
this.messagesBuilder = new DataFetcher.SnkMessageBuilder(this.entityName);
|
301
307
|
}
|
302
308
|
}
|
303
309
|
async componentDidLoad() {
|
@@ -316,7 +322,7 @@ const SnkDetailView = class {
|
|
316
322
|
}
|
317
323
|
addErrorBadgeToBranchGuide() {
|
318
324
|
this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
|
319
|
-
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit));
|
325
|
+
this.snkDetailGuidesChange.emit(new GuideBuilder(this.branchGuide, this._formMetadata, this.dataUnit, this.messagesBuilder));
|
320
326
|
}
|
321
327
|
normalizeBranchGuideId(id) {
|
322
328
|
return id === null || id === void 0 ? void 0 : id.replace(/child\[(.*?)\]/g, '$1').replace(/::/g, '>');
|
@@ -362,7 +368,7 @@ const SnkDetailView = class {
|
|
362
368
|
this._keyboardManager = new core.KeyboardManager({ propagate: false, element: this._element });
|
363
369
|
this._keyboardManager.bind(utils.SHORTCUT_SEARCH_FIELD, async () => {
|
364
370
|
await this._snkFormView.showSearchField();
|
365
|
-
}, { description:
|
371
|
+
}, { description: this.messagesBuilder.getMessage("snkSimpleCrud.findFields"), element: this._element });
|
366
372
|
}
|
367
373
|
render() {
|
368
374
|
this.updateLabel();
|