@sankhyalabs/sankhyablocks 9.1.0-ms.4 → 9.1.0-ms.6
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-b7943abc.js → ClientSideExporterProvider-6a4108c9.js} +4 -4
- package/dist/cjs/{ConfigStorage-48ba265b.js → ConfigStorage-bb8c0edf.js} +12 -2
- package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-e23a263b.js} +6 -1
- package/dist/cjs/{ISave-c76e2c51.js → ISave-e0be2362.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-aa4631bd.js → SnkFormConfigManager-a23df43c.js} +2 -2
- package/dist/cjs/SnkMessageBuilder-acd9ec62.js +1937 -0
- package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-8670a38f.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-c2aef198.js → dataunit-fetcher-c34a8217.js} +1 -1
- package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-d8b78403.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -4
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_8.cjs.entry.js +80 -41
- package/dist/cjs/snk-application.cjs.entry.js +7 -7
- package/dist/cjs/snk-attach.cjs.entry.js +33 -16
- package/dist/cjs/snk-crud.cjs.entry.js +6 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
- package/dist/cjs/{snk-data-unit-87c56d62.js → snk-data-unit-47c6d16b.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form_2.cjs.entry.js +5 -5
- package/dist/cjs/snk-grid.cjs.entry.js +6 -6
- package/dist/cjs/{snk-guides-viewer-fedf7ba8.js → snk-guides-viewer-1689e877.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
- package/dist/cjs/snk-simple-crud.cjs.entry.js +14 -14
- package/dist/collection/components/snk-attach/snk-attach.js +45 -11
- package/dist/collection/components/snk-crud/snk-crud.js +19 -0
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +74 -36
- package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +20 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +8 -8
- package/dist/collection/lib/configs/ConfigStorage.js +3 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +6 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +9 -1
- package/dist/collection/lib/message/SnkMessageBuilder.js +25 -52
- package/dist/collection/lib/message/messageResourceEnUSUtils.js +91 -0
- package/dist/collection/lib/message/messageResourceEsESUtils.js +91 -0
- package/dist/collection/lib/message/messageResourcePtBRUtils.js +91 -0
- package/dist/collection/lib/message/resources/en-us/crud-utils.msg.js +3 -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 +27 -0
- package/dist/collection/lib/message/resources/en-us/snk-application.msg.js +8 -0
- package/dist/collection/lib/message/resources/en-us/snk-attach.msg.js +39 -0
- package/dist/collection/lib/message/resources/en-us/snk-configurator.msg.js +8 -0
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +10 -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 +36 -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-exporter.msg.js +20 -0
- package/dist/collection/lib/message/resources/en-us/snk-filter-bar.msg.js +64 -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-param-config.msg.js +18 -0
- package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +76 -0
- package/dist/collection/lib/message/resources/en-us/snk-grid.msg.js +41 -0
- package/dist/collection/lib/message/resources/en-us/snk-personalized-filter.msg.js +88 -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 +8 -0
- package/dist/collection/lib/message/resources/en-us/snk-taskbar.msg.js +18 -0
- package/dist/collection/lib/message/resources/es-es/crud-utils.msg.js +3 -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 +27 -0
- package/dist/collection/lib/message/resources/es-es/snk-application.msg.js +8 -0
- package/dist/collection/lib/message/resources/es-es/snk-attach.msg.js +39 -0
- package/dist/collection/lib/message/resources/es-es/snk-configurator.msg.js +8 -0
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +10 -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 +36 -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-exporter.msg.js +20 -0
- package/dist/collection/lib/message/resources/es-es/snk-filter-bar.msg.js +64 -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-param-config.msg.js +18 -0
- package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +76 -0
- package/dist/collection/lib/message/resources/es-es/snk-grid.msg.js +41 -0
- package/dist/collection/lib/message/resources/es-es/snk-personalized-filter.msg.js +88 -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 +8 -0
- package/dist/collection/lib/message/resources/es-es/snk-taskbar.msg.js +18 -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/{file-viewer.msg.js → pt-br/file-viewer.msg.js} +1 -2
- package/dist/collection/lib/message/resources/{snk-application.msg.js → pt-br/snk-application.msg.js} +1 -2
- package/dist/collection/lib/message/resources/{snk-attach.msg.js → pt-br/snk-attach.msg.js} +0 -1
- package/dist/collection/lib/message/resources/{snk-crud.msg.js → pt-br/snk-crud.msg.js} +0 -1
- package/dist/collection/lib/message/resources/{snk-data-unit.msg.js → pt-br/snk-data-unit.msg.js} +1 -2
- 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 +64 -0
- package/dist/collection/lib/message/resources/pt-br/snk-grid.msg.js +41 -0
- package/dist/collection/lib/message/resources/{snk-simple-crud.msg.js → pt-br/snk-simple-crud.msg.js} +0 -1
- package/dist/collection/lib/message/resources/{snk-taskbar.msg.js → pt-br/snk-taskbar.msg.js} +1 -2
- package/dist/components/ConfigStorage.js +11 -1
- package/dist/components/DataFetcher.js +6 -1
- package/dist/components/SnkMessageBuilder.js +1345 -139
- package/dist/components/snk-attach2.js +29 -11
- package/dist/components/snk-crud.js +1 -0
- package/dist/components/snk-grid-config2.js +73 -35
- package/dist/components/snk-select-box2.js +4 -2
- package/dist/components/snk-simple-crud2.js +7 -7
- package/dist/esm/{ClientSideExporterProvider-b468acad.js → ClientSideExporterProvider-09dee1a3.js} +4 -4
- package/dist/esm/{ConfigStorage-79b9e180.js → ConfigStorage-cf578768.js} +12 -2
- package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-db08cad0.js} +6 -1
- package/dist/esm/{ISave-5efafc97.js → ISave-da565824.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-b4b93298.js → SnkFormConfigManager-c1cd9dcd.js} +2 -2
- package/dist/esm/SnkMessageBuilder-c8b452b6.js +1915 -0
- package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-43c8d76b.js} +1 -1
- package/dist/esm/{dataunit-fetcher-613a6fb9.js → dataunit-fetcher-1b78797a.js} +1 -1
- package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-e623539b.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +4 -4
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_8.entry.js +80 -41
- package/dist/esm/snk-application.entry.js +7 -7
- package/dist/esm/snk-attach.entry.js +33 -16
- package/dist/esm/snk-crud.entry.js +6 -5
- package/dist/esm/snk-data-exporter.entry.js +6 -6
- package/dist/esm/{snk-data-unit-8da2d175.js → snk-data-unit-c12986b7.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +4 -4
- package/dist/esm/snk-detail-view.entry.js +8 -8
- package/dist/esm/snk-filter-bar_4.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form_2.entry.js +5 -5
- package/dist/esm/snk-grid.entry.js +6 -6
- package/dist/esm/{snk-guides-viewer-0fc793de.js → snk-guides-viewer-defa2629.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +4 -4
- package/dist/esm/snk-simple-crud.entry.js +14 -14
- package/dist/sankhyablocks/{p-5b963f03.entry.js → p-09ba8326.entry.js} +1 -1
- package/dist/sankhyablocks/{p-134414d0.entry.js → p-1c69a957.entry.js} +1 -1
- package/dist/sankhyablocks/p-224fa6f9.js +1 -0
- package/dist/sankhyablocks/{p-a414a26c.entry.js → p-2628f34e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-cb4bcf34.entry.js → p-34cfb5ad.entry.js} +2 -2
- package/dist/sankhyablocks/p-360f0b74.js +1 -0
- package/dist/sankhyablocks/{p-8f8367d5.js → p-37b4f642.js} +1 -1
- package/dist/sankhyablocks/p-405edf96.js +56 -0
- package/dist/sankhyablocks/{p-848c0ece.js → p-4b8691b6.js} +1 -1
- package/dist/sankhyablocks/{p-6d2c841d.js → p-4eb731b3.js} +1 -1
- package/dist/sankhyablocks/{p-59d84130.entry.js → p-60d3abf6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9751c42f.entry.js → p-6bc7c7ee.entry.js} +1 -1
- package/dist/sankhyablocks/p-81820bf8.entry.js +1 -0
- package/dist/sankhyablocks/{p-a5bb2f93.entry.js → p-86c8f7f2.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c926cf6b.entry.js → p-90ee1990.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d0d8de69.entry.js → p-aef68e58.entry.js} +1 -1
- package/dist/sankhyablocks/p-b033bf30.entry.js +1 -0
- package/dist/sankhyablocks/{p-8691b78e.entry.js → p-b1ea8c6d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-601b252b.js → p-b21d32f6.js} +1 -1
- package/dist/sankhyablocks/{p-6dd38d7b.js → p-c9657baa.js} +1 -1
- package/dist/sankhyablocks/p-cb2a4613.entry.js +1 -0
- package/dist/sankhyablocks/{p-fbba7e3d.js → p-cd1a5b6a.js} +1 -1
- package/dist/sankhyablocks/p-cfa8cac2.entry.js +1 -0
- package/dist/sankhyablocks/{p-73285a8a.js → p-e25412da.js} +1 -1
- package/dist/sankhyablocks/{p-e0313142.entry.js → p-f442c8f6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f21325f1.entry.js → p-f65421cd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7bb04271.js → p-fa591f6f.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +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-crud/snk-crud.d.ts +1 -0
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +7 -0
- package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +4 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -1
- package/dist/types/components.d.ts +16 -0
- package/dist/types/lib/configs/ConfigStorage.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +3 -2
- package/dist/types/lib/message/SnkMessageBuilder.d.ts +4 -0
- package/dist/types/lib/message/resources/en-us/crud-utils.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-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/{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-taskbar.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/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-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-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-personalized-filter.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-taskbar.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/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-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-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-personalized-filter.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-taskbar.msg.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/SnkMessageBuilder-221cc88d.js +0 -731
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +0 -65
- package/dist/collection/lib/message/resources/snk-grid.msg.js +0 -40
- package/dist/esm/SnkMessageBuilder-da87a821.js +0 -709
- package/dist/sankhyablocks/p-536dc236.entry.js +0 -1
- package/dist/sankhyablocks/p-6416975c.js +0 -56
- package/dist/sankhyablocks/p-a6513fcb.js +0 -1
- package/dist/sankhyablocks/p-ef2022ac.entry.js +0 -1
- package/dist/sankhyablocks/p-efb76b5f.entry.js +0 -1
- package/dist/sankhyablocks/p-fac65ae7.entry.js +0 -1
- package/dist/sankhyablocks/p-fc4eac32.js +0 -1
- package/dist/types/lib/message/resources/crud-utils.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/file-viewer.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/snk-data-unit.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/snk-exporter.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +0 -2
- package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +0 -2
- /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-actions-button.msg.js → pt-br/snk-actions-button.msg.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-configurator.msg.js → pt-br/snk-configurator.msg.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-form.msg.js → pt-br/snk-form.msg.js} +0 -0
- /package/dist/collection/lib/message/resources/{snk-personalized-filter.msg.js → pt-br/snk-personalized-filter.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
@@ -627,6 +627,8 @@ const snkAttachCss = ".snk-attach__header.sc-snk-attach,.snk-attach__crud-sectio
|
|
627
627
|
|
628
628
|
const RESOURCE_ID = 'AnexoSistema';
|
629
629
|
const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
|
630
|
+
const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
|
631
|
+
const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
|
630
632
|
const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
631
633
|
constructor() {
|
632
634
|
super();
|
@@ -656,6 +658,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
656
658
|
this.back.emit();
|
657
659
|
});
|
658
660
|
};
|
661
|
+
this.gridLegacyConfigName = undefined;
|
659
662
|
this.fetcherType = undefined;
|
660
663
|
this.fetcher = undefined;
|
661
664
|
this.dataUnit = undefined;
|
@@ -767,9 +770,11 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
767
770
|
var _a, _b;
|
768
771
|
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
769
772
|
this._currentFetcher = this.getAnexoSistemaFetcherInstance();
|
773
|
+
let gridValidateForm;
|
770
774
|
if (!this._currentDataUnit.metadata) {
|
771
775
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
772
|
-
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
776
|
+
this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
|
777
|
+
gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
|
773
778
|
}
|
774
779
|
this.initDataUnitLoaders();
|
775
780
|
this._currentDataUnit.addFilterProvider({
|
@@ -779,19 +784,21 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
779
784
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
780
785
|
});
|
781
786
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
|
782
|
-
this.disableEditFieldsNotInForm();
|
787
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
783
788
|
}
|
784
789
|
async loadAttach() {
|
785
790
|
var _a, _b;
|
786
791
|
this._currentFetcher = new AttachFetcher();
|
787
792
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
788
793
|
this._currentDataUnit.pageSize = 150;
|
794
|
+
let gridValidateForm;
|
789
795
|
this.initDataUnitLoaders();
|
790
796
|
this._currentDataUnit.addInterceptor({
|
791
797
|
interceptAction: (action) => {
|
792
798
|
var _a;
|
793
799
|
if (action.type === Action.METADATA_LOADED) {
|
794
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
800
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
801
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
795
802
|
(_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
|
796
803
|
}
|
797
804
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
@@ -799,9 +806,10 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
799
806
|
});
|
800
807
|
if (!this._currentDataUnit.metadata) {
|
801
808
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
802
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
809
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
810
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
803
811
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
|
804
|
-
this.disableEditFieldsNotInForm();
|
812
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
805
813
|
}
|
806
814
|
}
|
807
815
|
initDataUnitLoaders() {
|
@@ -820,12 +828,16 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
820
828
|
});
|
821
829
|
}
|
822
830
|
}
|
823
|
-
disableEditFieldsNotInForm() {
|
824
|
-
var _a;
|
825
|
-
(_a = this.
|
826
|
-
|
831
|
+
disableEditFieldsNotInForm(gridValidateForm) {
|
832
|
+
var _a, _b, _c, _d, _e;
|
833
|
+
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);
|
834
|
+
if (!!this.getGridLegacyConfigName()) {
|
835
|
+
this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
|
836
|
+
}
|
837
|
+
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
|
838
|
+
var _a, _b;
|
827
839
|
const fieldName = column.name;
|
828
|
-
if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
|
840
|
+
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
841
|
this._currentDataUnit.disableField(fieldName);
|
830
842
|
}
|
831
843
|
});
|
@@ -875,17 +887,23 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
875
887
|
await this._currentDataUnit.loadMetadata();
|
876
888
|
}
|
877
889
|
;
|
890
|
+
getGridLegacyConfigName() {
|
891
|
+
if (this.gridLegacyConfigName)
|
892
|
+
return this.gridLegacyConfigName;
|
893
|
+
return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
|
894
|
+
}
|
878
895
|
render() {
|
879
896
|
var _a, _b;
|
880
897
|
if (!this._currentDataUnit)
|
881
898
|
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")))))))));
|
899
|
+
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
900
|
}
|
884
901
|
static get watchers() { return {
|
885
902
|
"registerKey": ["registerKeyWatcher"]
|
886
903
|
}; }
|
887
904
|
static get style() { return snkAttachCss; }
|
888
905
|
}, [2, "snk-attach", {
|
906
|
+
"gridLegacyConfigName": [1, "grid-legacy-config-name"],
|
889
907
|
"fetcherType": [1, "fetcher-type"],
|
890
908
|
"fetcher": [16],
|
891
909
|
"dataUnit": [16],
|
@@ -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
|
/**
|
@@ -83,23 +83,10 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
83
83
|
this._orderListItems = newSortableList;
|
84
84
|
}
|
85
85
|
createColumnList() {
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
let hiddenGroup = {
|
91
|
-
group: this.getMessage('snkGridConfig.group.hidden'),
|
92
|
-
items: [],
|
93
|
-
sort: ORDER_VALUES.asc.value,
|
94
|
-
};
|
95
|
-
this.columns.forEach((column) => {
|
96
|
-
var _a;
|
97
|
-
let item = {
|
98
|
-
label: column.label,
|
99
|
-
selected: false,
|
100
|
-
sort: (_a = column === null || column === void 0 ? void 0 : column.sort) !== null && _a !== void 0 ? _a : ORDER_VALUES.asc.value,
|
101
|
-
id: column.name,
|
102
|
-
};
|
86
|
+
const visibleGroup = this.buildVisibleGroup();
|
87
|
+
const hiddenGroup = this.buildHiddenGroup();
|
88
|
+
this.columns.forEach(column => {
|
89
|
+
const item = this.buildListItemFromColumn(column);
|
103
90
|
if (column.hidden) {
|
104
91
|
hiddenGroup.items.push(item);
|
105
92
|
}
|
@@ -112,6 +99,19 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
112
99
|
this._hiddenList = hiddenGroup.items;
|
113
100
|
this.createOrderList();
|
114
101
|
}
|
102
|
+
buildVisibleGroup() {
|
103
|
+
return {
|
104
|
+
group: this.getMessage('snkGridConfig.group.visible'),
|
105
|
+
items: [],
|
106
|
+
};
|
107
|
+
}
|
108
|
+
buildHiddenGroup() {
|
109
|
+
return {
|
110
|
+
group: this.getMessage('snkGridConfig.group.hidden'),
|
111
|
+
items: [],
|
112
|
+
sort: ORDER_VALUES.asc.value,
|
113
|
+
};
|
114
|
+
}
|
115
115
|
createOrderListSlotDataElementId(item) {
|
116
116
|
return `${this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME)}_configItem_${StringUtils.toCamelCase(item.label)}`;
|
117
117
|
}
|
@@ -124,7 +124,7 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
124
124
|
return (h("snk-select-box", { selectedOption: selectedOption, key: 'snk-select-box-' + this._componenteInternalKey + '-' + item, "data-element-id": dataElementId, onEzChange: (evt) => {
|
125
125
|
evt.stopPropagation();
|
126
126
|
this.updateOrder(evt.detail, item.label);
|
127
|
-
} }));
|
127
|
+
}, preventAutoFocus: true }));
|
128
128
|
}
|
129
129
|
updateOrder(sortOrder, updatedItemLabel) {
|
130
130
|
var _a;
|
@@ -159,25 +159,21 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
159
159
|
this.closeConfig();
|
160
160
|
return;
|
161
161
|
}
|
162
|
-
|
163
|
-
this._columListItems.forEach((group) => {
|
164
|
-
group.items.forEach((item) => {
|
165
|
-
const baseColumn = this.columns.find((column) => column.label === item.label);
|
166
|
-
let newColumnItem = Object.assign({}, baseColumn);
|
167
|
-
if (group.group === this.getMessage('snkGridConfig.group.hidden')) {
|
168
|
-
newColumnItem.hidden = true;
|
169
|
-
}
|
170
|
-
else {
|
171
|
-
newColumnItem.hidden = false;
|
172
|
-
}
|
173
|
-
newColumnList.push(newColumnItem);
|
174
|
-
});
|
175
|
-
});
|
176
|
-
this.columns = newColumnList;
|
162
|
+
this.updateColumns();
|
177
163
|
this._dataChanged = false;
|
178
164
|
this.closeConfig();
|
179
165
|
this.save();
|
180
166
|
}
|
167
|
+
updateColumns() {
|
168
|
+
this.columns = this._columListItems.flatMap((group) => group.items.map((item) => this.buildColumnFromListItem(item, group)));
|
169
|
+
}
|
170
|
+
buildColumnFromListItem(item, group) {
|
171
|
+
const baseColumn = this.columns.find((column) => column.label === item.label);
|
172
|
+
if (!baseColumn) {
|
173
|
+
throw new Error(`Column with label "${item.label}" not found.`);
|
174
|
+
}
|
175
|
+
return Object.assign(Object.assign({}, baseColumn), { hidden: group.group === this.getMessage('snkGridConfig.group.hidden') });
|
176
|
+
}
|
181
177
|
saveGridConfigOnStorage(_newConfig) {
|
182
178
|
ConfigStorage.saveGridConfig(_newConfig, this.configName, this.resourceID)
|
183
179
|
.then((savedConfig) => {
|
@@ -347,13 +343,55 @@ const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
347
343
|
},
|
348
344
|
};
|
349
345
|
}
|
346
|
+
renderResetConfigBtn() {
|
347
|
+
if (!this.resourceID)
|
348
|
+
return;
|
349
|
+
return h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.reset'), onClick: () => this.setDefaultConfig() });
|
350
|
+
}
|
351
|
+
async setDefaultConfig() {
|
352
|
+
var _a;
|
353
|
+
if (!this.resourceID)
|
354
|
+
return;
|
355
|
+
this._dataChanged = true;
|
356
|
+
const config = await ConfigStorage.getDefaultGridConfig(this.resourceID);
|
357
|
+
const defaultVisibleCols = (_a = config === null || config === void 0 ? void 0 : config.columns.map(col => col.name)) !== null && _a !== void 0 ? _a : [];
|
358
|
+
const visibleGroup = this.buildVisibleGroup();
|
359
|
+
const hiddenGroup = this.buildHiddenGroup();
|
360
|
+
const visibleItemsMap = new Map();
|
361
|
+
this.columns.forEach(column => {
|
362
|
+
const item = this.buildListItemFromColumn(column);
|
363
|
+
if (defaultVisibleCols.includes(column.name)) {
|
364
|
+
visibleItemsMap.set(column.name, item);
|
365
|
+
}
|
366
|
+
else {
|
367
|
+
hiddenGroup.items.push(item);
|
368
|
+
}
|
369
|
+
});
|
370
|
+
visibleGroup.items = defaultVisibleCols
|
371
|
+
.map(name => visibleItemsMap.get(name))
|
372
|
+
.filter(item => item);
|
373
|
+
this._columListItems = [visibleGroup, hiddenGroup];
|
374
|
+
this._visibleList = visibleGroup.items;
|
375
|
+
this._hiddenList = hiddenGroup.items;
|
376
|
+
this.updateColumns();
|
377
|
+
this.createOrderList();
|
378
|
+
}
|
379
|
+
buildListItemFromColumn(column) {
|
380
|
+
var _a;
|
381
|
+
return {
|
382
|
+
label: column.label,
|
383
|
+
selected: false,
|
384
|
+
sort: (_a = column === null || column === void 0 ? void 0 : column.sort) !== null && _a !== void 0 ? _a : ORDER_VALUES.asc.value,
|
385
|
+
id: column.name,
|
386
|
+
};
|
387
|
+
}
|
350
388
|
render() {
|
351
|
-
return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "ez-margin-bottom--medium" }, h("label", { class: "title" }, this.getMessage('snkGridConfig.gridConfiguration')), h("label", { class: "subtitle" }, this.getMessage('snkGridConfig.columnVisibilityOrder'))), h("div", { class: "button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", class: "ez-button--tertiary", onClick: () => this.closeConfig() })))), h("div", { class:
|
389
|
+
return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "ez-margin-bottom--medium" }, h("label", { class: "title" }, this.getMessage('snkGridConfig.gridConfiguration')), h("label", { class: "subtitle" }, this.getMessage('snkGridConfig.columnVisibilityOrder'))), h("div", { class: "button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", class: "ez-button--tertiary", onClick: () => this.closeConfig() })))), h("div", { class: 'grid-config__body' }, h("ez-collapsible-box", { id: 'group-select-columns', label: this.getMessage('snkGridConfig.columnsSelection'), "header-size": "medium", key: 'key_group-select-columns', value: this._collapsibleBoxListSelect, onEzChange: ({ detail }) => this._collapsibleBoxListOrder = !detail }, h("div", { class: "grid-config__main" }, h("ez-double-list", { leftList: this._hiddenList, leftTitle: this.getMessage('snkGridConfig.availableColumns'), rightList: this._visibleList, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), onEzRightListChanged: ({ detail }) => this.handleRightListChange(detail), emptyMessage: {
|
352
390
|
LEFT_LIST: this.getMessage('snkGridConfig.emptyMensage.left'),
|
353
391
|
RIGHT_LIST: this.getMessage('snkGridConfig.emptyMensage.right'),
|
354
392
|
}, entityLabel: 'coluna', entityLabelPlural: 'colunas' }))), h("ez-collapsible-box", { id: 'ID_group-order-columns', label: this.getMessage('snkGridConfig.dataOrdering'), "header-size": "medium", key: 'KEY_group-order-columns', value: this._collapsibleBoxListOrder, onEzChange: ({ detail }) => this._collapsibleBoxListSelect = !detail }, h("div", { class: "grid-config__main" }, h("ez-double-list", { rightList: this._orderListItems, rightTitle: this.getMessage('snkGridConfig.selectedColumns'), useOnlyRightList: true, slotsListBuilder: this.getListSlots(), emptyMessage: {
|
355
393
|
RIGHT_LIST: this.getMessage('snkGridConfig.emptyMensage.right'),
|
356
|
-
}, entityLabel: 'coluna', entityLabelPlural: 'colunas' })))), h("div", { class: "grid-config__footer" }, h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.cancel'), onClick: () => this.closeConfig() }), h("ez-button", { label: this.getMessage('snkGridConfig.complete'), class: "ez-button--primary", onClick: () => this.finish() }))));
|
394
|
+
}, entityLabel: 'coluna', entityLabelPlural: 'colunas' })))), h("div", { class: "grid-config__footer" }, this.renderResetConfigBtn(), h("ez-button", { class: "padding-right--medium", label: this.getMessage('snkGridConfig.cancel'), onClick: () => this.closeConfig() }), h("ez-button", { label: this.getMessage('snkGridConfig.complete'), class: "ez-button--primary", onClick: () => this.finish() }))));
|
357
395
|
}
|
358
396
|
static get assetsDirs() { return ["../assets"]; }
|
359
397
|
get _element() { return this; }
|
@@ -10,16 +10,18 @@ const SelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
10
10
|
this.__attachShadow();
|
11
11
|
this.ezChange = createEvent(this, "ezChange", 7);
|
12
12
|
this.selectedOption = ORDER_VALUES.none;
|
13
|
+
this.preventAutoFocus = false;
|
13
14
|
}
|
14
15
|
render() {
|
15
|
-
return (h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, Object.keys(ORDER_VALUES).map((key) => {
|
16
|
+
return (h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true, preventAutoFocus: this.preventAutoFocus }, Object.keys(ORDER_VALUES).map((key) => {
|
16
17
|
return h("option", { value: ORDER_VALUES[key].value }, ORDER_VALUES[key].label);
|
17
18
|
})));
|
18
19
|
}
|
19
20
|
static get assetsDirs() { return ["../assets"]; }
|
20
21
|
static get style() { return snkSelectBoxCss; }
|
21
22
|
}, [1, "snk-select-box", {
|
22
|
-
"selectedOption": [1, "selected-option"]
|
23
|
+
"selectedOption": [1, "selected-option"],
|
24
|
+
"preventAutoFocus": [4, "prevent-auto-focus"]
|
23
25
|
}]);
|
24
26
|
function defineCustomElement() {
|
25
27
|
if (typeof customElements === "undefined") {
|
@@ -110,15 +110,15 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
110
110
|
newCustomRenders.set(fieldName, customRender);
|
111
111
|
this._customRenders = newCustomRenders;
|
112
112
|
}
|
113
|
-
handleResourceIDChanged(newValue, oldValue) {
|
113
|
+
async handleResourceIDChanged(newValue, oldValue) {
|
114
114
|
if (StringUtils.isEmpty(newValue)) {
|
115
115
|
return;
|
116
116
|
}
|
117
117
|
if (newValue === oldValue) {
|
118
118
|
return;
|
119
119
|
}
|
120
|
-
this.loadFormConfig(true);
|
121
|
-
this.loadGridConfig(true);
|
120
|
+
await this.loadFormConfig(true);
|
121
|
+
await this.loadGridConfig(true);
|
122
122
|
}
|
123
123
|
/**
|
124
124
|
* Registra um formatador de valores para uma coluna da grid.
|
@@ -174,7 +174,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
174
174
|
.concat(extraButtons));
|
175
175
|
}
|
176
176
|
addConfigButton(buttons) {
|
177
|
-
if (this.configName === undefined) {
|
177
|
+
if (this.configName === undefined || (this.configName && this.gridLegacyConfigName)) {
|
178
178
|
return buttons;
|
179
179
|
}
|
180
180
|
return buttons.concat(TaskbarElement.CONFIGURATOR);
|
@@ -285,7 +285,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
285
285
|
if (!this._formConfigAlreadyLoaded) {
|
286
286
|
return;
|
287
287
|
}
|
288
|
-
this.loadFormConfig(true);
|
288
|
+
await this.loadFormConfig(true);
|
289
289
|
}
|
290
290
|
openConfig(viewMode) {
|
291
291
|
this._snkConfigurator.close();
|
@@ -370,8 +370,8 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
370
370
|
return;
|
371
371
|
}
|
372
372
|
await this.addGridLegacyConfigName();
|
373
|
-
this.loadGridConfig();
|
374
|
-
this.loadFormConfig();
|
373
|
+
await this.loadGridConfig();
|
374
|
+
await this.loadFormConfig();
|
375
375
|
}
|
376
376
|
componentDidRender() {
|
377
377
|
this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
|
package/dist/esm/{ClientSideExporterProvider-b468acad.js → ClientSideExporterProvider-09dee1a3.js}
RENAMED
@@ -1,12 +1,12 @@
|
|
1
|
-
import { D as DataFetcher } from './DataFetcher-
|
2
|
-
import './ISave-
|
1
|
+
import { D as DataFetcher } from './DataFetcher-db08cad0.js';
|
2
|
+
import './ISave-da565824.js';
|
3
3
|
import { SortMode, ApplicationContext, UserInterface, DateUtils, ObjectUtils, StringUtils, NumberUtils, DataType } from '@sankhyalabs/core';
|
4
4
|
import { D as DataExporterOption } from './index-b40568ff.js';
|
5
5
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
6
6
|
import { UserInterface as UserInterface$1 } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
7
|
-
import { P as PreloadManager } from './dataunit-fetcher-
|
7
|
+
import { P as PreloadManager } from './dataunit-fetcher-1b78797a.js';
|
8
8
|
import './filter-item-type.enum-d45e026f.js';
|
9
|
-
import './form-config-fetcher-
|
9
|
+
import './form-config-fetcher-e623539b.js';
|
10
10
|
import './constants-7b422de0.js';
|
11
11
|
import InMemoryFilterColumnDataSource from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|
12
12
|
import { h } from './index-479e1293.js';
|
@@ -1,13 +1,20 @@
|
|
1
|
-
import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-
|
1
|
+
import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-e623539b.js';
|
2
|
+
import { D as DataFetcher, d as dist } from './DataFetcher-db08cad0.js';
|
2
3
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
3
4
|
import { ObjectUtils } from '@sankhyalabs/core';
|
4
|
-
import { d as dist, D as DataFetcher } from './DataFetcher-88e56266.js';
|
5
5
|
|
6
6
|
class GridConfigFetcher extends ResourceFetcher {
|
7
7
|
constructor() {
|
8
8
|
super(...arguments);
|
9
9
|
this.GRID_CONFIG_VERSION = "V3:";
|
10
10
|
}
|
11
|
+
async getDefaultConfig(resourceId) {
|
12
|
+
var _a, _b;
|
13
|
+
const payload = { 'requestBody': { 'gridConfig': { 'configName': `GrdCfgHtml5:${resourceId}` } } };
|
14
|
+
const response = await DataFetcher.get().callServiceBroker('GridConfig.restoreGridConfigFromJson', JSON.stringify(payload));
|
15
|
+
const columns = (_b = (_a = response === null || response === void 0 ? void 0 : response.gridConfig) === null || _a === void 0 ? void 0 : _a.field) !== null && _b !== void 0 ? _b : [];
|
16
|
+
return { columns };
|
17
|
+
}
|
11
18
|
getConfig(gridName, resourceID) {
|
12
19
|
const completePath = this.getPath(resourceID, gridName);
|
13
20
|
return new Promise((resolve, reject) => {
|
@@ -439,6 +446,9 @@ class ConfigStorage {
|
|
439
446
|
static async saveCardState(config, name, resourceID) {
|
440
447
|
return this.formConfigFetcher.saveCardState(config, name, resourceID);
|
441
448
|
}
|
449
|
+
static async getDefaultGridConfig(resourceId) {
|
450
|
+
return await this.gridConfigFetcher.getDefaultConfig(resourceId);
|
451
|
+
}
|
442
452
|
static async saveGridConfig(config, name, resourceID) {
|
443
453
|
if (config == undefined) {
|
444
454
|
return;
|
@@ -6757,6 +6757,9 @@ class DataFetcher {
|
|
6757
6757
|
}
|
6758
6758
|
return new ErrorException(title, statusMessage, tsErrorCode);
|
6759
6759
|
}
|
6760
|
+
isDevMode() {
|
6761
|
+
return window === null || window === void 0 ? void 0 : window.hasOwnProperty('wksdata');
|
6762
|
+
}
|
6760
6763
|
async callGraphQL(req, quietMode = false) {
|
6761
6764
|
var _a;
|
6762
6765
|
if (this.ready) {
|
@@ -6901,7 +6904,9 @@ class DataFetcher {
|
|
6901
6904
|
const ctx = this.getContext(module);
|
6902
6905
|
let url = `${ctx.baseUrl}?serviceName=${name}&counter=21&application=${ctx.appName}&outputType=json&preventTransform=false&mgeSession=${ctx.mgeSession}&resourceID=${ctx.resourceID}&globalID=${ctx.globalID}&allowConcurrentCalls=true`;
|
6903
6906
|
url = await this.addUrlParams(options, url);
|
6904
|
-
|
6907
|
+
if (this.isDevMode()) {
|
6908
|
+
document.cookie = `JSESSIONID=${ctx.mgeSession};`;
|
6909
|
+
}
|
6905
6910
|
const http = new XMLHttpRequest();
|
6906
6911
|
var payloadJson = {};
|
6907
6912
|
if ('string' == typeof payload) {
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { UserInterface, DataType, ApplicationContext, ErrorException } from '@sankhyalabs/core';
|
2
|
-
import { d as dist, D as DataFetcher } from './DataFetcher-
|
2
|
+
import { d as dist, D as DataFetcher } from './DataFetcher-db08cad0.js';
|
3
3
|
|
4
4
|
function buildGridMetadata(rawValue) {
|
5
5
|
const fieldsMetadata = buildFieldsMetadata(rawValue.fieldsMetadata);
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
1
|
+
import { C as ConfigStorage } from './ConfigStorage-cf578768.js';
|
2
2
|
import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
|
3
|
-
import { F as FormConfigFetcher } from './form-config-fetcher-
|
3
|
+
import { F as FormConfigFetcher } from './form-config-fetcher-e623539b.js';
|
4
4
|
import { a as TAB_NAMES } from './constants-7b422de0.js';
|
5
5
|
|
6
6
|
class SnkFormConfigManager {
|