@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
@@ -1,13 +1,13 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-479e1293.js';
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnitLoaderUtils, DataUnit } from '@sankhyalabs/core';
|
3
|
-
import { D as DataFetcher } from './DataFetcher-
|
4
|
-
import { S as SaveErrorsEnum } from './ISave-
|
3
|
+
import { D as DataFetcher } from './DataFetcher-db08cad0.js';
|
4
|
+
import { S as SaveErrorsEnum } from './ISave-da565824.js';
|
5
5
|
import './index-b40568ff.js';
|
6
|
-
import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-
|
6
|
+
import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-1b78797a.js';
|
7
7
|
import './filter-item-type.enum-d45e026f.js';
|
8
|
-
import './form-config-fetcher-
|
8
|
+
import './form-config-fetcher-e623539b.js';
|
9
9
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
10
|
-
import { A as AutorizationType } from './auth-fetcher-
|
10
|
+
import { A as AutorizationType } from './auth-fetcher-43c8d76b.js';
|
11
11
|
import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
|
12
12
|
import './PrintUtils-3e4ff0f5.js';
|
13
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
@@ -621,6 +621,8 @@ const snkAttachCss = ".snk-attach__header.sc-snk-attach,.snk-attach__crud-sectio
|
|
621
621
|
|
622
622
|
const RESOURCE_ID = 'AnexoSistema';
|
623
623
|
const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
|
624
|
+
const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
|
625
|
+
const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
|
624
626
|
const SnkAttach = class {
|
625
627
|
constructor(hostRef) {
|
626
628
|
registerInstance(this, hostRef);
|
@@ -649,6 +651,7 @@ const SnkAttach = class {
|
|
649
651
|
this.back.emit();
|
650
652
|
});
|
651
653
|
};
|
654
|
+
this.gridLegacyConfigName = undefined;
|
652
655
|
this.fetcherType = undefined;
|
653
656
|
this.fetcher = undefined;
|
654
657
|
this.dataUnit = undefined;
|
@@ -760,9 +763,11 @@ const SnkAttach = class {
|
|
760
763
|
var _a, _b;
|
761
764
|
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
762
765
|
this._currentFetcher = this.getAnexoSistemaFetcherInstance();
|
766
|
+
let gridValidateForm;
|
763
767
|
if (!this._currentDataUnit.metadata) {
|
764
768
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
765
|
-
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
769
|
+
this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
|
770
|
+
gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
|
766
771
|
}
|
767
772
|
this.initDataUnitLoaders();
|
768
773
|
this._currentDataUnit.addFilterProvider({
|
@@ -772,19 +777,21 @@ const SnkAttach = class {
|
|
772
777
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
773
778
|
});
|
774
779
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
|
775
|
-
this.disableEditFieldsNotInForm();
|
780
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
776
781
|
}
|
777
782
|
async loadAttach() {
|
778
783
|
var _a, _b;
|
779
784
|
this._currentFetcher = new AttachFetcher();
|
780
785
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
781
786
|
this._currentDataUnit.pageSize = 150;
|
787
|
+
let gridValidateForm;
|
782
788
|
this.initDataUnitLoaders();
|
783
789
|
this._currentDataUnit.addInterceptor({
|
784
790
|
interceptAction: (action) => {
|
785
791
|
var _a;
|
786
792
|
if (action.type === Action.METADATA_LOADED) {
|
787
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
793
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
794
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
788
795
|
(_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
|
789
796
|
}
|
790
797
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
@@ -792,9 +799,10 @@ const SnkAttach = class {
|
|
792
799
|
});
|
793
800
|
if (!this._currentDataUnit.metadata) {
|
794
801
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
795
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
802
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
803
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
796
804
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
|
797
|
-
this.disableEditFieldsNotInForm();
|
805
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
798
806
|
}
|
799
807
|
}
|
800
808
|
initDataUnitLoaders() {
|
@@ -813,12 +821,16 @@ const SnkAttach = class {
|
|
813
821
|
});
|
814
822
|
}
|
815
823
|
}
|
816
|
-
disableEditFieldsNotInForm() {
|
817
|
-
var _a;
|
818
|
-
(_a = this.
|
819
|
-
|
824
|
+
disableEditFieldsNotInForm(gridValidateForm) {
|
825
|
+
var _a, _b, _c, _d, _e;
|
826
|
+
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);
|
827
|
+
if (!!this.getGridLegacyConfigName()) {
|
828
|
+
this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
|
829
|
+
}
|
830
|
+
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
|
831
|
+
var _a, _b;
|
820
832
|
const fieldName = column.name;
|
821
|
-
if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
|
833
|
+
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))) {
|
822
834
|
this._currentDataUnit.disableField(fieldName);
|
823
835
|
}
|
824
836
|
});
|
@@ -868,11 +880,16 @@ const SnkAttach = class {
|
|
868
880
|
await this._currentDataUnit.loadMetadata();
|
869
881
|
}
|
870
882
|
;
|
883
|
+
getGridLegacyConfigName() {
|
884
|
+
if (this.gridLegacyConfigName)
|
885
|
+
return this.gridLegacyConfigName;
|
886
|
+
return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
|
887
|
+
}
|
871
888
|
render() {
|
872
889
|
var _a, _b;
|
873
890
|
if (!this._currentDataUnit)
|
874
891
|
return null;
|
875
|
-
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")))))))));
|
892
|
+
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")))))))));
|
876
893
|
}
|
877
894
|
static get watchers() { return {
|
878
895
|
"registerKey": ["registerKeyWatcher"]
|
@@ -1,16 +1,16 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, KeyboardManager } from '@sankhyalabs/core';
|
3
3
|
import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
|
4
|
-
import './DataFetcher-
|
5
|
-
import './ISave-
|
4
|
+
import './DataFetcher-db08cad0.js';
|
5
|
+
import './ISave-da565824.js';
|
6
6
|
import { P as PresentationMode, E as ExporterStrategy } from './index-b40568ff.js';
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
9
|
-
import './dataunit-fetcher-
|
9
|
+
import './dataunit-fetcher-1b78797a.js';
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
11
|
-
import './form-config-fetcher-
|
11
|
+
import './form-config-fetcher-e623539b.js';
|
12
12
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
13
|
-
import { A as AutorizationType } from './auth-fetcher-
|
13
|
+
import { A as AutorizationType } from './auth-fetcher-43c8d76b.js';
|
14
14
|
import './index-b72af127.js';
|
15
15
|
import './PrintUtils-3e4ff0f5.js';
|
16
16
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
@@ -64,6 +64,7 @@ const SnkCrud = class {
|
|
64
64
|
this.layoutFormConfig = false;
|
65
65
|
this.multipleEditionEnabled = true;
|
66
66
|
this.paginationCounterMode = 'auto';
|
67
|
+
this.layoutFormConfig = false;
|
67
68
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
68
69
|
}
|
69
70
|
/**
|
@@ -4,16 +4,16 @@ import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/
|
|
4
4
|
import { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
|
5
5
|
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-b40568ff.js';
|
6
6
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7b422de0.js';
|
7
|
-
import { D as DataFetcher } from './DataFetcher-
|
8
|
-
import { S as SnkDataUnit } from './snk-data-unit-
|
9
|
-
import './ISave-
|
7
|
+
import { D as DataFetcher } from './DataFetcher-db08cad0.js';
|
8
|
+
import { S as SnkDataUnit } from './snk-data-unit-c12986b7.js';
|
9
|
+
import './ISave-da565824.js';
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
11
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
12
|
-
import './dataunit-fetcher-
|
12
|
+
import './dataunit-fetcher-1b78797a.js';
|
13
13
|
import './filter-item-type.enum-d45e026f.js';
|
14
|
-
import './form-config-fetcher-
|
14
|
+
import './form-config-fetcher-e623539b.js';
|
15
15
|
import './PrintUtils-3e4ff0f5.js';
|
16
|
-
import './SnkMessageBuilder-
|
16
|
+
import './SnkMessageBuilder-c8b452b6.js';
|
17
17
|
import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
18
18
|
import './GetSelectedRecordsIDsInfo-9fa41508.js';
|
19
19
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-479e1293.js';
|
2
2
|
import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
-
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-
|
5
|
-
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-
|
4
|
+
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-c8b452b6.js';
|
5
|
+
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-1b78797a.js';
|
6
6
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
7
7
|
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
|
8
8
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
export { S as snk_data_unit } from './snk-data-unit-
|
1
|
+
export { S as snk_data_unit } from './snk-data-unit-c12986b7.js';
|
2
2
|
import './index-479e1293.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
5
|
-
import './SnkMessageBuilder-
|
6
|
-
import './dataunit-fetcher-
|
7
|
-
import './DataFetcher-
|
5
|
+
import './SnkMessageBuilder-c8b452b6.js';
|
6
|
+
import './dataunit-fetcher-1b78797a.js';
|
7
|
+
import './DataFetcher-db08cad0.js';
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
@@ -1,21 +1,21 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { Action, StringUtils, KeyboardManager } from '@sankhyalabs/core';
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-c1cd9dcd.js';
|
4
4
|
import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
5
|
-
import './DataFetcher-
|
6
|
-
import './ISave-
|
5
|
+
import './DataFetcher-db08cad0.js';
|
6
|
+
import './ISave-da565824.js';
|
7
7
|
import { P as PresentationMode } from './index-b40568ff.js';
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
|
-
import './dataunit-fetcher-
|
10
|
+
import './dataunit-fetcher-1b78797a.js';
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
12
|
-
import './form-config-fetcher-
|
12
|
+
import './form-config-fetcher-e623539b.js';
|
13
13
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
14
14
|
import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
|
15
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
16
|
-
import { S as SnkMessageBuilder } from './SnkMessageBuilder-
|
15
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-defa2629.js';
|
16
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder-c8b452b6.js';
|
17
17
|
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
18
|
-
import './ConfigStorage-
|
18
|
+
import './ConfigStorage-cf578768.js';
|
19
19
|
import './PrintUtils-3e4ff0f5.js';
|
20
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
21
21
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext, LockManager, LockManagerOperation, DateUtils, MaskFormatter, FloatingManager, ArrayUtils } from '@sankhyalabs/core';
|
3
3
|
import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
|
4
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
4
|
+
import { C as ConfigStorage } from './ConfigStorage-cf578768.js';
|
5
5
|
import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
6
6
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
7
7
|
import { F as FilterOperand, D as DefaultFilter } from './index-8acbae97.js';
|
@@ -11,8 +11,8 @@ import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2
|
|
11
11
|
import { ModalAction } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
|
12
12
|
import { F as FilterType } from './filter-type.enum-f6a8fe23.js';
|
13
13
|
import { A as ActionDefaultFilter } from './default-filters-50105e43.js';
|
14
|
-
import './form-config-fetcher-
|
15
|
-
import './DataFetcher-
|
14
|
+
import './form-config-fetcher-e623539b.js';
|
15
|
+
import './DataFetcher-db08cad0.js';
|
16
16
|
import './PrintUtils-3e4ff0f5.js';
|
17
17
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
18
18
|
|
@@ -2,10 +2,10 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
|
|
2
2
|
import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
|
3
3
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
4
4
|
import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
|
5
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
5
|
+
import { C as ConfigStorage } from './ConfigStorage-cf578768.js';
|
6
6
|
import { F as FilterType } from './filter-type.enum-f6a8fe23.js';
|
7
|
-
import './form-config-fetcher-
|
8
|
-
import './DataFetcher-
|
7
|
+
import './form-config-fetcher-e623539b.js';
|
8
|
+
import './DataFetcher-db08cad0.js';
|
9
9
|
import './PrintUtils-3e4ff0f5.js';
|
10
10
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
11
11
|
|
@@ -1,17 +1,17 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement, H as Host } from './index-479e1293.js';
|
2
2
|
import { ElementIDUtils, ObjectUtils, ApplicationContext } from '@sankhyalabs/core';
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-c1cd9dcd.js';
|
4
4
|
import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
|
5
5
|
import { buildFormConfigFromDataUnit } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
6
6
|
import { b as buildGuides, a as buildGuidesMap, g as getFieldsToSave, u as updateTabInFieldsFromGroupList, c as buildNewGuideName } from './FormConfigHelper-49fe72ca.js';
|
7
7
|
import { a as TAB_NAMES, G as GROUP_NAMES } from './constants-7b422de0.js';
|
8
8
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
9
|
-
import { U as UserConfigType } from './form-config-fetcher-
|
10
|
-
import './ConfigStorage-
|
11
|
-
import './
|
12
|
-
import './DataFetcher-88e56266.js';
|
9
|
+
import { U as UserConfigType } from './form-config-fetcher-e623539b.js';
|
10
|
+
import './ConfigStorage-cf578768.js';
|
11
|
+
import './DataFetcher-db08cad0.js';
|
13
12
|
import './PrintUtils-3e4ff0f5.js';
|
14
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
14
|
+
import './filter-item-type.enum-d45e026f.js';
|
15
15
|
|
16
16
|
const snkFormCss = ".sc-snk-form-h{--snk-form__header--min-height:94px;display:block}.snk-form__form--hidden.sc-snk-form{display:none}";
|
17
17
|
|
@@ -1,19 +1,19 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-479e1293.js';
|
2
2
|
import { KeyboardManager, Action, ElementIDUtils, ApplicationContext, StringUtils } from '@sankhyalabs/core';
|
3
3
|
import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
|
4
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
4
|
+
import { C as ConfigStorage } from './ConfigStorage-cf578768.js';
|
5
5
|
import { P as PresentationMode, E as ExporterStrategy } from './index-b40568ff.js';
|
6
6
|
import { T as TaskbarProcessor } from './taskbar-processor-3436124c.js';
|
7
7
|
import { s as store } from './index-b72af127.js';
|
8
|
-
import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-
|
8
|
+
import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-09dee1a3.js';
|
9
9
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
10
|
-
import './DataFetcher-
|
11
|
-
import './ISave-
|
10
|
+
import './DataFetcher-db08cad0.js';
|
11
|
+
import './ISave-da565824.js';
|
12
12
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
13
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
14
|
-
import './dataunit-fetcher-
|
14
|
+
import './dataunit-fetcher-1b78797a.js';
|
15
15
|
import './filter-item-type.enum-d45e026f.js';
|
16
|
-
import './form-config-fetcher-
|
16
|
+
import './form-config-fetcher-e623539b.js';
|
17
17
|
import './constants-7b422de0.js';
|
18
18
|
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
|
19
19
|
import { buildFieldSearch } from '@sankhyalabs/ezui/dist/collection/utils';
|
@@ -1,18 +1,18 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-479e1293.js';
|
2
2
|
import { ObjectUtils, StringUtils, Action, KeyboardManager, ElementIDUtils } from '@sankhyalabs/core';
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-c1cd9dcd.js';
|
4
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
5
5
|
import { T as TaskbarProcessor } from './taskbar-processor-3436124c.js';
|
6
6
|
import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
|
7
7
|
import { V as VIEW_MODE } from './constants-7b422de0.js';
|
8
|
-
import './DataFetcher-
|
9
|
-
import './ISave-
|
8
|
+
import './DataFetcher-db08cad0.js';
|
9
|
+
import './ISave-da565824.js';
|
10
10
|
import { P as PresentationMode } from './index-b40568ff.js';
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
12
12
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
13
|
-
import './dataunit-fetcher-
|
13
|
+
import './dataunit-fetcher-1b78797a.js';
|
14
14
|
import './filter-item-type.enum-d45e026f.js';
|
15
|
-
import './form-config-fetcher-
|
15
|
+
import './form-config-fetcher-e623539b.js';
|
16
16
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
17
17
|
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
18
18
|
|
@@ -1,10 +1,10 @@
|
|
1
|
-
export { S as snk_guides_viewer } from './snk-guides-viewer-
|
1
|
+
export { S as snk_guides_viewer } from './snk-guides-viewer-defa2629.js';
|
2
2
|
import './index-479e1293.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
|
-
import './SnkFormConfigManager-
|
5
|
-
import './ConfigStorage-
|
6
|
-
import './form-config-fetcher-
|
7
|
-
import './DataFetcher-
|
4
|
+
import './SnkFormConfigManager-c1cd9dcd.js';
|
5
|
+
import './ConfigStorage-cf578768.js';
|
6
|
+
import './form-config-fetcher-e623539b.js';
|
7
|
+
import './DataFetcher-db08cad0.js';
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
@@ -14,9 +14,9 @@ import './taskbar-processor-3436124c.js';
|
|
14
14
|
import './taskbar-elements-171476d4.js';
|
15
15
|
import './index-b40568ff.js';
|
16
16
|
import './index-b72af127.js';
|
17
|
-
import './ISave-
|
17
|
+
import './ISave-da565824.js';
|
18
18
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
19
|
-
import './dataunit-fetcher-
|
19
|
+
import './dataunit-fetcher-1b78797a.js';
|
20
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
21
21
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
22
22
|
import './ResourceIDUtils-a114189a.js';
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-479e1293.js';
|
2
2
|
import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-2db38ff2.js';
|
4
|
-
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-
|
4
|
+
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-cf578768.js';
|
5
5
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
6
6
|
import { a as FilterGroupCondition, D as DefaultFilter } from './index-8acbae97.js';
|
7
7
|
import { s as store } from './index-b72af127.js';
|
8
8
|
import './filter-item-type.enum-d45e026f.js';
|
9
|
-
import './form-config-fetcher-
|
10
|
-
import './DataFetcher-
|
9
|
+
import './form-config-fetcher-e623539b.js';
|
10
|
+
import './DataFetcher-db08cad0.js';
|
11
11
|
import './PrintUtils-3e4ff0f5.js';
|
12
12
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
13
13
|
|
@@ -1,13 +1,13 @@
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-479e1293.js';
|
2
2
|
import { ObjectUtils, StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
3
|
-
import { P as PesquisaFetcher, b as buildGridMetadata, a as PESQUISA_VIEW_MODE } from './ISave-
|
4
|
-
import './DataFetcher-
|
3
|
+
import { P as PesquisaFetcher, b as buildGridMetadata, a as PESQUISA_VIEW_MODE } from './ISave-da565824.js';
|
4
|
+
import './DataFetcher-db08cad0.js';
|
5
5
|
import './index-b40568ff.js';
|
6
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
7
7
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
8
|
-
import './dataunit-fetcher-
|
8
|
+
import './dataunit-fetcher-1b78797a.js';
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
10
|
-
import './form-config-fetcher-
|
10
|
+
import './form-config-fetcher-e623539b.js';
|
11
11
|
import './constants-7b422de0.js';
|
12
12
|
import './PrintUtils-3e4ff0f5.js';
|
13
13
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
@@ -3,18 +3,18 @@ import { StringUtils, ApplicationContext, ObjectUtils, Action, DataType, UserInt
|
|
3
3
|
import { CSSVarsUtils, buildFieldSearch, LABEL_SEARCH_COLUMN, LABEL_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
4
|
import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-7b422de0.js';
|
5
5
|
import { T as TaskbarElement } from './taskbar-elements-171476d4.js';
|
6
|
-
import './DataFetcher-
|
7
|
-
import './ISave-
|
8
|
-
import { S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, a as CrudUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-
|
6
|
+
import './DataFetcher-db08cad0.js';
|
7
|
+
import './ISave-da565824.js';
|
8
|
+
import { S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, a as CrudUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-09dee1a3.js';
|
9
9
|
import { P as PresentationMode } from './index-b40568ff.js';
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
11
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
12
|
-
import { I as InMemoryLoader } from './dataunit-fetcher-
|
12
|
+
import { I as InMemoryLoader } from './dataunit-fetcher-1b78797a.js';
|
13
13
|
import './filter-item-type.enum-d45e026f.js';
|
14
|
-
import { F as FormConfigFetcher } from './form-config-fetcher-
|
14
|
+
import { F as FormConfigFetcher } from './form-config-fetcher-e623539b.js';
|
15
15
|
import { T as TaskbarProcessor } from './taskbar-processor-3436124c.js';
|
16
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
17
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
16
|
+
import { C as ConfigStorage } from './ConfigStorage-cf578768.js';
|
17
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-c1cd9dcd.js';
|
18
18
|
import { s as store } from './index-b72af127.js';
|
19
19
|
import './PrintUtils-3e4ff0f5.js';
|
20
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|
@@ -106,15 +106,15 @@ const SnkSimpleCrud = class {
|
|
106
106
|
newCustomRenders.set(fieldName, customRender);
|
107
107
|
this._customRenders = newCustomRenders;
|
108
108
|
}
|
109
|
-
handleResourceIDChanged(newValue, oldValue) {
|
109
|
+
async handleResourceIDChanged(newValue, oldValue) {
|
110
110
|
if (StringUtils.isEmpty(newValue)) {
|
111
111
|
return;
|
112
112
|
}
|
113
113
|
if (newValue === oldValue) {
|
114
114
|
return;
|
115
115
|
}
|
116
|
-
this.loadFormConfig(true);
|
117
|
-
this.loadGridConfig(true);
|
116
|
+
await this.loadFormConfig(true);
|
117
|
+
await this.loadGridConfig(true);
|
118
118
|
}
|
119
119
|
/**
|
120
120
|
* Registra um formatador de valores para uma coluna da grid.
|
@@ -170,7 +170,7 @@ const SnkSimpleCrud = class {
|
|
170
170
|
.concat(extraButtons));
|
171
171
|
}
|
172
172
|
addConfigButton(buttons) {
|
173
|
-
if (this.configName === undefined) {
|
173
|
+
if (this.configName === undefined || (this.configName && this.gridLegacyConfigName)) {
|
174
174
|
return buttons;
|
175
175
|
}
|
176
176
|
return buttons.concat(TaskbarElement.CONFIGURATOR);
|
@@ -281,7 +281,7 @@ const SnkSimpleCrud = class {
|
|
281
281
|
if (!this._formConfigAlreadyLoaded) {
|
282
282
|
return;
|
283
283
|
}
|
284
|
-
this.loadFormConfig(true);
|
284
|
+
await this.loadFormConfig(true);
|
285
285
|
}
|
286
286
|
openConfig(viewMode) {
|
287
287
|
this._snkConfigurator.close();
|
@@ -366,8 +366,8 @@ const SnkSimpleCrud = class {
|
|
366
366
|
return;
|
367
367
|
}
|
368
368
|
await this.addGridLegacyConfigName();
|
369
|
-
this.loadGridConfig();
|
370
|
-
this.loadFormConfig();
|
369
|
+
await this.loadGridConfig();
|
370
|
+
await this.loadFormConfig();
|
371
371
|
}
|
372
372
|
componentDidRender() {
|
373
373
|
this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
|
@@ -1 +1 @@
|
|
1
|
-
export{S as snk_data_unit}from"./p-
|
1
|
+
export{S as snk_data_unit}from"./p-4eb731b3.js";import"./p-d8d8169b.js";import"@sankhyalabs/core";import"@sankhyalabs/ezui/dist/collection/utils";import"./p-224fa6f9.js";import"./p-37b4f642.js";import"./p-cd1a5b6a.js";import"./p-8d884fab.js";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";import"@sankhyalabs/core/dist/dataunit/metadata/DataType";import"./p-7dd49d15.js";
|
@@ -1 +1 @@
|
|
1
|
-
import{r as s,h as i,H as t,g as e}from"./p-d8d8169b.js";import{ObjectUtils as a,StringUtils as r,ElementIDUtils as o}from"@sankhyalabs/core";import{P as n,b as l,a as c}from"./p-6dd38d7b.js";import"./p-fbba7e3d.js";import"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-8f8367d5.js";import"./p-ff1990ad.js";import"./p-601b252b.js";import"./p-9019a32f.js";import"./p-8d884fab.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";const h=class{constructor(i){s(this,i),this._mdByName={},this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this._specialCharsRegex=/[[.\-\$\+\*,_\&\(\)%\/\\#@!:\|\=\'\"]/gim,this._charsWithAccentuation="ÁÉÍÓÚ_ÃÕ_ÂÊÎÔÛ_ÀÈÌÒÙ_Ü_Ç_áéíóú_ãõ_âêîôû_àèìòù_ü_ç",this._charsWithoutAccentuation="AEIOU_AO_AEIOU_AEIOU_U_C_aeiou_ao_aeiou_aeiou_u_c",this._changeDeboucingTimeout=null,this._limitCharsToSearch=3,this._deboucingTime=450,this._gridDataSource=[],this.pesquisaFetcher=new n,this._itemList=void 0,this._startLoading=!1,this._presentationMode="list",this._currentView=void 0,this._valideDataSource=!1,this.searchLoader=void 0,this.treeLoader=void 0,this.selectItem=void 0,this.entityName=void 0,this.argument=void 0,this.isHierarchyEntity=!1,this.allowsNonAnalytic=!1}observeArgument(){this._textInput&&(this._textInput.value=this.argument)}clearSearch(){this.argument="",this._itemList=void 0}buildDetails(s,i){let t={};for(let e=0;e<s.length;e++){const a=s[e],r=i[a.fieldName];t[a.description]=this.highlightValue(i.__matchFields,a.options&&a.options[r]||r,s,!0)}return t}buildFirstFields(s,i,t=6){return s&&Array.isArray(s)&&s.forEach((s=>{let t=this.removeReference(i,this._mdByName[s]);t&&i.unshift(t)})),i=i.slice(0,t)}doSearch(s){this.searchLoader&&"function"==typeof this.searchLoader&&(this._startLoading=!0,this.searchLoader(s).then((s=>{s&&this.processSearchResponse(s)})).finally((()=>{this._startLoading=!1})))}processSearchResponse(s){let i=(s=a.stringToObject(s.json.$)).descriptionField,t=s.pkField;t&&(this._gridMetadata=l(s),this._gridDataSource=[...s.data],this._pkField=t,this._descriptionField=i,this._itemList=this.buildCardItemList(s,t,i))}buildCardItemList(s,i,t){var e;return null===(e=s.data)||void 0===e?void 0:e.map((e=>{var a;let r=this.filterFieldsMetadata(s,e),o=this.buildFirstFields(e.__matchFields,r);return{key:this.highlightValue(e.__matchFields,null===(a=e[i])||void 0===a?void 0:a.toString(),o,!0),title:t?this.highlightValue(e.__matchFields,e[t],o,!0):"",details:this.buildDetails(o,e)}}))}filterFieldsMetadata(s,i){return s.fieldsMetadata.filter((t=>{let e=!r.isEmpty(i[t.fieldName])&&!1!==t.visible&&"B"!==t.type&&s.pkField!==t.fieldName&&s.descriptionField!==t.fieldName&&(t.isPrimaryKey||!t.isLinkField)&&!("S"===t.type&&"H"===t.presentationType);return e&&(this._mdByName[t.fieldName]=t),("string"!=typeof i[t.fieldName]||!(i[t.fieldName].indexOf("<img")>-1||i[t.fieldName].indexOf("<svg")>-1))&&e}))}removeAtIndex(s,i){if(i>=0&&i<s.length)return s.splice(i,1)[0]}removeReference(s,i){let t=this.indexOf(s,i);return this.removeAtIndex(s,t)}indexOf(s,i){let t=-1;return Array.isArray(s)&&this.find(s,((s,e)=>(t=e,this.equals(i,s)))),t}equals(s,i){return a.objectToString(s)===a.objectToString(i)}find(s,i){if(s)for(let t=0,e=s.length;t<e;t++)if(i(s[t],t,s))return s[t]}highlightValue(s,i,t,e){let a=this.replaceHtmlEntities(i);if(this.argument&&(e||this.isIn(s,t.fieldName))){const s=this.getArgumentNumber();let i=(isNaN(s)?this.argument:s.toString()).split(/%|,|\s+/),e=0,r=this.replaceAccentuatedChars(a);i.forEach((s=>{if(s){s=this.replaceAccentuatedChars(s);let i=this.getSpecialCharacters(s);null!=i&&i.length>0&&(s=this.removeSpecialCharacters(s)),(t.mask||"CGC_CPF"===t.uiType||"Phone"===t.uiType)&&(s=s.split("").join("\\.?\\-?\\/?\\(?\\)?"));let o=new RegExp(s,"ig");o.lastIndex=e;let n=o.exec(r);if(n&&n.length>0){e=n.index;let s=n[0].length,i=a.substring(e,e+s),t=(null==i?void 0:i.trim())?this._startHighlightTag+i+this._endHighlightTag:"",o=a.substring(0,e),l=a.substring(e+s);a=o+t+l,e+=t.length,r=this.replaceAccentuatedChars(a)}}}))}return a}replaceHtmlEntities(s){return null==s?s:String(s).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}replaceAccentuatedChars(s){return null==s?s:this.replaceToSpace(s,["&","<",">","""]).replace(/[^\w ]/g,(s=>{let i=this._charsWithAccentuation.indexOf(s);return i>-1&&(s=this._charsWithoutAccentuation.charAt(i)),s||""}))}replaceToSpace(s,i=[]){return null==s||i.forEach((i=>{const t=new RegExp(i,"g");let e="";for(let s=0;s<i.length;s++)e+=" ";s=String(s).replace(t,e)})),s}isIn(s,i){return this.indexOf(s,i)>-1}getSpecialCharacters(s){let i,t=[];for(;i=this._specialCharsRegex.exec(s);)t.push(s[i.index]);return t}removeSpecialCharacters(s){return this.getSpecialCharacters(s).forEach((i=>{s=this.replaceAll(s,i,"")})),s}replaceAll(s,i,t){let e=(null!=s?s:"").indexOf(i);for(;e>-1;)e=(s=s.replace(i,t)).indexOf(i);return s}getArgumentNumber(){return Number(this.argument||void 0)}createOption(s){let{key:i,title:t}=s;const e=new RegExp(this._startHighlightTag,"g"),a=new RegExp(this._endHighlightTag,"g");t=r.decodeHtmlEntities(t);const o={value:null==i?void 0:i.replace(e,"").replace(a,""),label:null==t?void 0:t.replace(e,"").replace(a,"")};this.selectItem(o)}onChangeValue(s){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=setTimeout((()=>{this.onChangeValue(s)}),this._deboucingTime));if(this.argument=(s.detail||"").trim(),this.isHierarchyEntity&&"list"===this._presentationMode)return void(null===(i=this._pesquisaTree)||void 0===i||i.applyFilter());const t=this.getArgumentNumber();this.argument&&(!isNaN(t)||this.argument.length>=this._limitCharsToSearch)?this._changeDeboucingTimeout=setTimeout((()=>{this.doSearch(isNaN(t)?this.argument:t.toString()),this._valideDataSource=!0}),this._deboucingTime):(this._itemList=void 0,this._gridDataSource=[],this._valideDataSource=!1)}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=void 0)}onClickSearch(){this.doSearch((this.argument||"").trim()),this._valideDataSource=!0}getMessageView(){return this._startLoading?"Aguarde, buscando registros...":this._itemList?this._itemList.length>=1?`${this._itemList.length} ${this._itemList.length>1?"registros encontrados":"registro encontrado"}`:"Nenhum registro encontrado":"Os resultados de sua pesquisa aparecerão aqui..."}async componentWillLoad(){const s=await this.pesquisaFetcher.loadPresentationConfig(this.entityName);this._presentationMode="list"===s?"list":"table"}async componentDidLoad(){o.addIDInfo(this._element),await this.chooseViewMode()}async handleChangeViewMode(){this._presentationMode="list"===this._presentationMode?"table":"list",await this.chooseViewMode(),await this.pesquisaFetcher.savePresentationConfig(this.entityName,this._presentationMode)}async chooseViewMode(){var s,i;if("list"!==this._presentationMode)return await(null===(s=this._viewStack)||void 0===s?void 0:s.show(c.GRID)),void(this._currentView=c.GRID);const t=this.isHierarchyEntity?c.TREE:c.CARDS;await(null===(i=this._viewStack)||void 0===i?void 0:i.show(t)),this._currentView=t}hideLimitMessage(){return!this._itemList||this._itemList.length<100}hideRecordsMessage(){return"list"===this._presentationMode&&this.isHierarchyEntity}getButtonModeInfo(){return"list"===this._presentationMode?{iconName:"table",title:"Modo grade"}:this.isHierarchyEntity?{iconName:"hierarchical-tree",title:"Modo árvore hierárquica"}:{iconName:"list",title:"Modo lista"}}render(){var s,e;return i(t,null,i("div",{class:"snk-pesquisa"},i("div",{class:"snk-pesquisa__input"},i("ez-text-input",{label:"Buscar",class:"ez-margin-right--medium",canShowError:!1,ref:s=>this._textInput=s,onEzChange:s=>this.onChangeValue(s),value:this.argument,"data-element-id":"searchInput"},i("ez-icon",{slot:"leftIcon",iconName:"search"}),this.argument&&(null===(s=this._textInput)||void 0===s?void 0:s.value)?i("button",{slot:"rightIcon",class:"snk-pesquisa__btn",onClick:()=>this.clearSearch()},i("ez-icon",{iconName:"close"})):void 0),i("ez-button",{class:"ez-button--primary",label:"Pesquisar",onClick:()=>this.onClickSearch()}),i("ez-button",{class:"ez-margin-left--medium",mode:"icon",iconName:this.getButtonModeInfo().iconName,title:this.getButtonModeInfo().title,onClick:async()=>await this.handleChangeViewMode()})),i("div",{class:"snk-pesquisa__records-label "+(this._currentView===c.TREE?"hidden":"")},i("label",{class:"snk-pesquisa__records "+(this.hideRecordsMessage()?"hidden":"")},this.getMessageView()),i("label",{class:"snk-pesquisa__records-limit "+(this.hideLimitMessage()?"hidden":"")},"Essa pesquisa foi limitada, existem mais resultados.")),i("div",{class:"snk-pesquisa__content"},i("ez-view-stack",{ref:s=>this._viewStack=s,"data-element-id":"simple-crud"},i("stack-item",null,this._valideDataSource&&i("pesquisa-grid",{metadata:this._gridMetadata,dataSource:this._gridDataSource,pkField:this._pkField,descriptionField:this._descriptionField,entityName:this.entityName,shouldLoadConfig:this._currentView===c.GRID,onPesquisaGridSelectItem:({detail:s})=>this.selectItem(s)})),i("stack-item",null,i("div",{class:"snk-pesquisa__cards-container"},null===(e=this._itemList)||void 0===e?void 0:e.map((s=>i("ez-card-item",{onEzClick:s=>this.createOption(s.detail),item:s}))))),i("stack-item",null,i("pesquisa-tree",{ref:s=>this._pesquisaTree=s,argument:this.argument,treeLoader:this.treeLoader,allowsNonAnalytic:this.allowsNonAnalytic,shouldLoadTree:this._currentView===c.TREE,onPesquisaTreeSelectItem:({detail:s})=>this.selectItem(s)}))))))}get _element(){return e(this)}static get watchers(){return{argument:["observeArgument"]}}};h.style=".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--color-secondary:var(--text--secondary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);--snk-pesquisa__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-pesquisa__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-pesquisa__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-pesquisa__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-pesquisa__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__scrollbar--width:var(--space--small, 6px);height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__scrollbar--color-clicked) var(--snk-pesquisa__scrollbar--color-background);padding-right:var(--snk-pesquisa__content--padding-right);height:100vh}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__scrollbar--color-background);width:var(--snk-pesquisa__scrollbar--width);max-width:var(--snk-pesquisa__scrollbar--width);min-width:var(--snk-pesquisa__scrollbar--width)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__scrollbar--color-background);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__scrollbar--color-default);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:hover,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-pesquisa__scrollbar--color-hover)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:active,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-pesquisa__scrollbar--color-clicked)}.snk-pesquisa__records-label.sc-snk-pesquisa{display:flex;flex-direction:row;justify-content:space-between;font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__records-label.hidden.sc-snk-pesquisa{display:none}.snk-pesquisa__records.sc-snk-pesquisa{color:var(--snk-pesquisa__records--color)}.snk-pesquisa__records-limit.sc-snk-pesquisa{color:var(--snk-pesquisa__records--color-secondary)}.snk-pesquisa__records-limit.hidden.sc-snk-pesquisa,.snk-pesquisa__records.hidden.sc-snk-pesquisa{visibility:hidden}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}.snk-pesquisa__cards-container.sc-snk-pesquisa{height:100%;overflow-y:auto}";export{h as snk_pesquisa}
|
1
|
+
import{r as s,h as i,H as t,g as e}from"./p-d8d8169b.js";import{ObjectUtils as a,StringUtils as r,ElementIDUtils as o}from"@sankhyalabs/core";import{P as n,b as l,a as c}from"./p-c9657baa.js";import"./p-cd1a5b6a.js";import"./p-0f3698af.js";import"@sankhyalabs/ezui/dist/collection/utils/constants";import"@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata";import"./p-37b4f642.js";import"./p-ff1990ad.js";import"./p-b21d32f6.js";import"./p-9019a32f.js";import"./p-8d884fab.js";import"@sankhyalabs/ezui/dist/collection/components/ez-grid/utils";import"@sankhyalabs/core/dist/utils/SortingUtils";import"./p-688dcb4c.js";const h=class{constructor(i){s(this,i),this._mdByName={},this._startHighlightTag="<span class='card-item__highlight'>",this._endHighlightTag="</span>",this._specialCharsRegex=/[[.\-\$\+\*,_\&\(\)%\/\\#@!:\|\=\'\"]/gim,this._charsWithAccentuation="ÁÉÍÓÚ_ÃÕ_ÂÊÎÔÛ_ÀÈÌÒÙ_Ü_Ç_áéíóú_ãõ_âêîôû_àèìòù_ü_ç",this._charsWithoutAccentuation="AEIOU_AO_AEIOU_AEIOU_U_C_aeiou_ao_aeiou_aeiou_u_c",this._changeDeboucingTimeout=null,this._limitCharsToSearch=3,this._deboucingTime=450,this._gridDataSource=[],this.pesquisaFetcher=new n,this._itemList=void 0,this._startLoading=!1,this._presentationMode="list",this._currentView=void 0,this._valideDataSource=!1,this.searchLoader=void 0,this.treeLoader=void 0,this.selectItem=void 0,this.entityName=void 0,this.argument=void 0,this.isHierarchyEntity=!1,this.allowsNonAnalytic=!1}observeArgument(){this._textInput&&(this._textInput.value=this.argument)}clearSearch(){this.argument="",this._itemList=void 0}buildDetails(s,i){let t={};for(let e=0;e<s.length;e++){const a=s[e],r=i[a.fieldName];t[a.description]=this.highlightValue(i.__matchFields,a.options&&a.options[r]||r,s,!0)}return t}buildFirstFields(s,i,t=6){return s&&Array.isArray(s)&&s.forEach((s=>{let t=this.removeReference(i,this._mdByName[s]);t&&i.unshift(t)})),i=i.slice(0,t)}doSearch(s){this.searchLoader&&"function"==typeof this.searchLoader&&(this._startLoading=!0,this.searchLoader(s).then((s=>{s&&this.processSearchResponse(s)})).finally((()=>{this._startLoading=!1})))}processSearchResponse(s){let i=(s=a.stringToObject(s.json.$)).descriptionField,t=s.pkField;t&&(this._gridMetadata=l(s),this._gridDataSource=[...s.data],this._pkField=t,this._descriptionField=i,this._itemList=this.buildCardItemList(s,t,i))}buildCardItemList(s,i,t){var e;return null===(e=s.data)||void 0===e?void 0:e.map((e=>{var a;let r=this.filterFieldsMetadata(s,e),o=this.buildFirstFields(e.__matchFields,r);return{key:this.highlightValue(e.__matchFields,null===(a=e[i])||void 0===a?void 0:a.toString(),o,!0),title:t?this.highlightValue(e.__matchFields,e[t],o,!0):"",details:this.buildDetails(o,e)}}))}filterFieldsMetadata(s,i){return s.fieldsMetadata.filter((t=>{let e=!r.isEmpty(i[t.fieldName])&&!1!==t.visible&&"B"!==t.type&&s.pkField!==t.fieldName&&s.descriptionField!==t.fieldName&&(t.isPrimaryKey||!t.isLinkField)&&!("S"===t.type&&"H"===t.presentationType);return e&&(this._mdByName[t.fieldName]=t),("string"!=typeof i[t.fieldName]||!(i[t.fieldName].indexOf("<img")>-1||i[t.fieldName].indexOf("<svg")>-1))&&e}))}removeAtIndex(s,i){if(i>=0&&i<s.length)return s.splice(i,1)[0]}removeReference(s,i){let t=this.indexOf(s,i);return this.removeAtIndex(s,t)}indexOf(s,i){let t=-1;return Array.isArray(s)&&this.find(s,((s,e)=>(t=e,this.equals(i,s)))),t}equals(s,i){return a.objectToString(s)===a.objectToString(i)}find(s,i){if(s)for(let t=0,e=s.length;t<e;t++)if(i(s[t],t,s))return s[t]}highlightValue(s,i,t,e){let a=this.replaceHtmlEntities(i);if(this.argument&&(e||this.isIn(s,t.fieldName))){const s=this.getArgumentNumber();let i=(isNaN(s)?this.argument:s.toString()).split(/%|,|\s+/),e=0,r=this.replaceAccentuatedChars(a);i.forEach((s=>{if(s){s=this.replaceAccentuatedChars(s);let i=this.getSpecialCharacters(s);null!=i&&i.length>0&&(s=this.removeSpecialCharacters(s)),(t.mask||"CGC_CPF"===t.uiType||"Phone"===t.uiType)&&(s=s.split("").join("\\.?\\-?\\/?\\(?\\)?"));let o=new RegExp(s,"ig");o.lastIndex=e;let n=o.exec(r);if(n&&n.length>0){e=n.index;let s=n[0].length,i=a.substring(e,e+s),t=(null==i?void 0:i.trim())?this._startHighlightTag+i+this._endHighlightTag:"",o=a.substring(0,e),l=a.substring(e+s);a=o+t+l,e+=t.length,r=this.replaceAccentuatedChars(a)}}}))}return a}replaceHtmlEntities(s){return null==s?s:String(s).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}replaceAccentuatedChars(s){return null==s?s:this.replaceToSpace(s,["&","<",">","""]).replace(/[^\w ]/g,(s=>{let i=this._charsWithAccentuation.indexOf(s);return i>-1&&(s=this._charsWithoutAccentuation.charAt(i)),s||""}))}replaceToSpace(s,i=[]){return null==s||i.forEach((i=>{const t=new RegExp(i,"g");let e="";for(let s=0;s<i.length;s++)e+=" ";s=String(s).replace(t,e)})),s}isIn(s,i){return this.indexOf(s,i)>-1}getSpecialCharacters(s){let i,t=[];for(;i=this._specialCharsRegex.exec(s);)t.push(s[i.index]);return t}removeSpecialCharacters(s){return this.getSpecialCharacters(s).forEach((i=>{s=this.replaceAll(s,i,"")})),s}replaceAll(s,i,t){let e=(null!=s?s:"").indexOf(i);for(;e>-1;)e=(s=s.replace(i,t)).indexOf(i);return s}getArgumentNumber(){return Number(this.argument||void 0)}createOption(s){let{key:i,title:t}=s;const e=new RegExp(this._startHighlightTag,"g"),a=new RegExp(this._endHighlightTag,"g");t=r.decodeHtmlEntities(t);const o={value:null==i?void 0:i.replace(e,"").replace(a,""),label:null==t?void 0:t.replace(e,"").replace(a,"")};this.selectItem(o)}onChangeValue(s){var i;if(this.clearDeboucingTimeout(),this._startLoading)return void(this._changeDeboucingTimeout=setTimeout((()=>{this.onChangeValue(s)}),this._deboucingTime));if(this.argument=(s.detail||"").trim(),this.isHierarchyEntity&&"list"===this._presentationMode)return void(null===(i=this._pesquisaTree)||void 0===i||i.applyFilter());const t=this.getArgumentNumber();this.argument&&(!isNaN(t)||this.argument.length>=this._limitCharsToSearch)?this._changeDeboucingTimeout=setTimeout((()=>{this.doSearch(isNaN(t)?this.argument:t.toString()),this._valideDataSource=!0}),this._deboucingTime):(this._itemList=void 0,this._gridDataSource=[],this._valideDataSource=!1)}clearDeboucingTimeout(){this._changeDeboucingTimeout&&(clearTimeout(this._changeDeboucingTimeout),this._changeDeboucingTimeout=void 0)}onClickSearch(){this.doSearch((this.argument||"").trim()),this._valideDataSource=!0}getMessageView(){return this._startLoading?"Aguarde, buscando registros...":this._itemList?this._itemList.length>=1?`${this._itemList.length} ${this._itemList.length>1?"registros encontrados":"registro encontrado"}`:"Nenhum registro encontrado":"Os resultados de sua pesquisa aparecerão aqui..."}async componentWillLoad(){const s=await this.pesquisaFetcher.loadPresentationConfig(this.entityName);this._presentationMode="list"===s?"list":"table"}async componentDidLoad(){o.addIDInfo(this._element),await this.chooseViewMode()}async handleChangeViewMode(){this._presentationMode="list"===this._presentationMode?"table":"list",await this.chooseViewMode(),await this.pesquisaFetcher.savePresentationConfig(this.entityName,this._presentationMode)}async chooseViewMode(){var s,i;if("list"!==this._presentationMode)return await(null===(s=this._viewStack)||void 0===s?void 0:s.show(c.GRID)),void(this._currentView=c.GRID);const t=this.isHierarchyEntity?c.TREE:c.CARDS;await(null===(i=this._viewStack)||void 0===i?void 0:i.show(t)),this._currentView=t}hideLimitMessage(){return!this._itemList||this._itemList.length<100}hideRecordsMessage(){return"list"===this._presentationMode&&this.isHierarchyEntity}getButtonModeInfo(){return"list"===this._presentationMode?{iconName:"table",title:"Modo grade"}:this.isHierarchyEntity?{iconName:"hierarchical-tree",title:"Modo árvore hierárquica"}:{iconName:"list",title:"Modo lista"}}render(){var s,e;return i(t,null,i("div",{class:"snk-pesquisa"},i("div",{class:"snk-pesquisa__input"},i("ez-text-input",{label:"Buscar",class:"ez-margin-right--medium",canShowError:!1,ref:s=>this._textInput=s,onEzChange:s=>this.onChangeValue(s),value:this.argument,"data-element-id":"searchInput"},i("ez-icon",{slot:"leftIcon",iconName:"search"}),this.argument&&(null===(s=this._textInput)||void 0===s?void 0:s.value)?i("button",{slot:"rightIcon",class:"snk-pesquisa__btn",onClick:()=>this.clearSearch()},i("ez-icon",{iconName:"close"})):void 0),i("ez-button",{class:"ez-button--primary",label:"Pesquisar",onClick:()=>this.onClickSearch()}),i("ez-button",{class:"ez-margin-left--medium",mode:"icon",iconName:this.getButtonModeInfo().iconName,title:this.getButtonModeInfo().title,onClick:async()=>await this.handleChangeViewMode()})),i("div",{class:"snk-pesquisa__records-label "+(this._currentView===c.TREE?"hidden":"")},i("label",{class:"snk-pesquisa__records "+(this.hideRecordsMessage()?"hidden":"")},this.getMessageView()),i("label",{class:"snk-pesquisa__records-limit "+(this.hideLimitMessage()?"hidden":"")},"Essa pesquisa foi limitada, existem mais resultados.")),i("div",{class:"snk-pesquisa__content"},i("ez-view-stack",{ref:s=>this._viewStack=s,"data-element-id":"simple-crud"},i("stack-item",null,this._valideDataSource&&i("pesquisa-grid",{metadata:this._gridMetadata,dataSource:this._gridDataSource,pkField:this._pkField,descriptionField:this._descriptionField,entityName:this.entityName,shouldLoadConfig:this._currentView===c.GRID,onPesquisaGridSelectItem:({detail:s})=>this.selectItem(s)})),i("stack-item",null,i("div",{class:"snk-pesquisa__cards-container"},null===(e=this._itemList)||void 0===e?void 0:e.map((s=>i("ez-card-item",{onEzClick:s=>this.createOption(s.detail),item:s}))))),i("stack-item",null,i("pesquisa-tree",{ref:s=>this._pesquisaTree=s,argument:this.argument,treeLoader:this.treeLoader,allowsNonAnalytic:this.allowsNonAnalytic,shouldLoadTree:this._currentView===c.TREE,onPesquisaTreeSelectItem:({detail:s})=>this.selectItem(s)}))))))}get _element(){return e(this)}static get watchers(){return{argument:["observeArgument"]}}};h.style=".sc-snk-pesquisa-h{--snk-pesquisa--font-size:var(--text--medium, 14px);--snk-pesquisa--font-family:var(--font-pattern, Arial);--snk-pesquisa--font-weight:var(--text-weight--medium, 400);--snk-pesquisa__records--color:var(--text--primary, #626e82);--snk-pesquisa__records--color-secondary:var(--text--secondary, #626e82);--snk-pesquisa__records--padding-vertical:var(--space--medium, 12px);--snk-pesquisa__content--padding-right:var(--space--small, 6px);--snk-pesquisa__btn--color:var(--title--primary, #2B3A54);--snk-pesquisa__btn-disabled--color:var(--text--disable, #AFB6C0);--snk-pesquisa__btn-hover--color:var(--color--primary, #4e4e4e);--snk-pesquisa__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-pesquisa__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-pesquisa__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-pesquisa__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-pesquisa__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-pesquisa__scrollbar--width:var(--space--small, 6px);height:100%;display:flex;flex-direction:column;overflow-y:auto}.snk-pesquisa.sc-snk-pesquisa{display:flex;flex-direction:column;height:100%}.snk-pesquisa__input.sc-snk-pesquisa{display:flex;width:100%;box-sizing:border-box;padding-top:4px;padding-right:4px}.snk-pesquisa__input.sc-snk-pesquisa ez-icon.sc-snk-pesquisa{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.snk-pesquisa__content.sc-snk-pesquisa{display:flex;flex-direction:column;overflow-y:hidden;scrollbar-width:thin;scrollbar-color:var(--snk-pesquisa__scrollbar--color-clicked) var(--snk-pesquisa__scrollbar--color-background);padding-right:var(--snk-pesquisa__content--padding-right);height:100vh}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar{background-color:var(--snk-pesquisa__scrollbar--color-background);width:var(--snk-pesquisa__scrollbar--width);max-width:var(--snk-pesquisa__scrollbar--width);min-width:var(--snk-pesquisa__scrollbar--width)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-track{background-color:var(--snk-pesquisa__scrollbar--color-background);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb{background-color:var(--snk-pesquisa__scrollbar--color-default);border-radius:var(--snk-pesquisa__scrollbar--border-radius)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:hover,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-pesquisa__scrollbar--color-hover)}.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:vertical:active,.snk-pesquisa__content.sc-snk-pesquisa::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-pesquisa__scrollbar--color-clicked)}.snk-pesquisa__records-label.sc-snk-pesquisa{display:flex;flex-direction:row;justify-content:space-between;font-family:var(--snk-pesquisa--font-family);font-weight:var(--snk-pesquisa--font-weight);font-size:var(--snk-pesquisa--font-size);padding-bottom:var(--snk-pesquisa__records--padding-vertical);padding-top:var(--snk-pesquisa__records--padding-vertical)}.snk-pesquisa__records-label.hidden.sc-snk-pesquisa{display:none}.snk-pesquisa__records.sc-snk-pesquisa{color:var(--snk-pesquisa__records--color)}.snk-pesquisa__records-limit.sc-snk-pesquisa{color:var(--snk-pesquisa__records--color-secondary)}.snk-pesquisa__records-limit.hidden.sc-snk-pesquisa,.snk-pesquisa__records.hidden.sc-snk-pesquisa{visibility:hidden}.snk-pesquisa__btn.sc-snk-pesquisa{outline:none;border:none;background:none;cursor:pointer;color:var(--snk-pesquisa__btn--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:disabled:hover{cursor:unset;color:var(--snk-pesquisa__btn-disabled--color)}.snk-pesquisa__btn.sc-snk-pesquisa:hover{color:var(--snk-pesquisa__btn-hover--color)}.snk-pesquisa__cards-container.sc-snk-pesquisa{height:100%;overflow-y:auto}";export{h as snk_pesquisa}
|