@sankhyalabs/sankhyablocks 10.1.0-dev.2 → 10.1.0-dev.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-5a73e979.js → ConfigStorage-a4e1e518.js} +2 -2
- package/dist/cjs/{DataFetcher-eeb3b0b7.js → DataFetcher-0b6aa084.js} +34 -24
- package/dist/cjs/{FormConfigHelper-ebb77625.js → FormConfigHelper-28fe4668.js} +44 -0
- package/dist/cjs/{ISave-861e9d6d.js → ISave-2c455a77.js} +4 -4
- package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
- package/dist/cjs/{SnkFormConfigManager-8d4fded8.js → SnkFormConfigManager-b8c81493.js} +7 -7
- package/dist/cjs/{SnkMultiSelectionListDataSource-3b93f6a6.js → SnkMultiSelectionListDataSource-03b58f5a.js} +5 -5
- package/dist/cjs/{auth-fetcher-8d8acd69.js → auth-fetcher-7e7796c9.js} +1 -1
- package/dist/cjs/config-header.cjs.entry.js +1 -1
- package/dist/cjs/configs-button.cjs.entry.js +1 -1
- package/dist/cjs/css-shim-a27d231b.js +6 -0
- package/dist/cjs/{dataunit-fetcher-1cea0695.js → dataunit-fetcher-8dffbcdf.js} +1 -1
- package/dist/cjs/dom-ff96a4bc.js +75 -0
- package/dist/cjs/field-config_2.cjs.entry.js +3 -3
- package/dist/cjs/fields-layout.cjs.entry.js +7 -4
- package/dist/cjs/fields-selector.cjs.entry.js +2 -2
- package/dist/cjs/{form-config-fetcher-f347f884.js → form-config-fetcher-5516d68a.js} +1 -1
- package/dist/cjs/guides-configurator.cjs.entry.js +6 -4
- package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1515 -171
- package/dist/cjs/{index-13d05f03.js → index-f0fe7e6e.js} +90 -21
- package/dist/cjs/loader.cjs.js +16 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
- package/dist/cjs/sankhyablocks.cjs.js +132 -4
- package/dist/cjs/shadow-css-7e3e0ab1.js +389 -0
- package/dist/cjs/snk-actions-button_9.cjs.entry.js +6 -6
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +99 -70
- package/dist/cjs/snk-attach.cjs.entry.js +8 -8
- package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +100 -9
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-custom-slot-guide.cjs.entry.js +40 -0
- package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
- package/dist/cjs/{snk-data-unit-de248308.js → snk-data-unit-036ce58c.js} +12 -3
- package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
- package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +10 -10
- package/dist/cjs/snk-entity-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-expression-group_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-advanced-mode_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +58 -25
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-checkbox-list.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-detail.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +4 -4
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-period.cjs.entry.js +11 -6
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +33 -10
- package/dist/cjs/snk-grid.cjs.entry.js +28 -19
- package/dist/cjs/{snk-guides-viewer-4ec3e7e1.js → snk-guides-viewer-164c063e.js} +86 -40
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +10 -10
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +6 -6
- package/dist/cjs/snk-pesquisa.cjs.entry.js +17 -6
- package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-bar.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +12 -20
- package/dist/cjs/snk-taskbar.cjs.entry.js +67 -51
- package/dist/cjs/{taskbar-elements-fb5d1e08.js → taskbar-elements-8a80420e.js} +2 -2
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +2 -1
- package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-advaced-mode.js +27 -0
- package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js +5 -25
- package/dist/collection/components/snk-application/snk-application.js +104 -44
- package/dist/collection/components/snk-attach/snk-attach.js +1 -1
- package/dist/collection/components/snk-crud/snk-crud.js +151 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +133 -34
- package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.css +3 -0
- package/dist/collection/components/snk-custom-slot-guide/snk-custom-slot-guide.js +95 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +9 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +2 -2
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +11 -6
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +1 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +7 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.css +1 -0
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +15 -4
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +30 -13
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +42 -0
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -6
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +1 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +16 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +6 -3
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +3 -3
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +5 -3
- package/dist/collection/components/snk-form-config/snk-form-config.js +53 -6
- package/dist/collection/components/snk-grid/snk-grid.css +12 -0
- package/dist/collection/components/snk-grid/snk-grid.js +39 -12
- package/dist/collection/components/snk-personalized-filter/subcomponents/snk-filter-param-config/utils/PersonalizedFilterUtils.js +13 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.css +5 -1
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +43 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +3 -11
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +87 -48
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +3 -3
- package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
- package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +7 -0
- package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +7 -0
- package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +8 -1
- package/dist/collection/lib/message/resources/pt-br/snk-pesquisa.msg.js +1 -1
- package/dist/components/DataFetcher.js +34 -4
- package/dist/components/ISave.js +3 -3
- package/dist/components/PersonalizedFilterUtils.js +13 -0
- package/dist/components/SnkFormConfigManager.js +6 -6
- package/dist/components/field-config2.js +44 -2
- package/dist/components/fields-layout2.js +6 -3
- package/dist/components/guides-configurator2.js +5 -3
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.js +1 -0
- package/dist/components/index2.js +90 -21
- package/dist/components/snk-application2.js +93 -63
- package/dist/components/snk-attach2.js +1 -1
- package/dist/components/snk-crud.js +96 -1
- package/dist/components/snk-custom-slot-guide.d.ts +11 -0
- package/dist/components/snk-custom-slot-guide.js +55 -0
- package/dist/components/snk-data-unit2.js +9 -0
- package/dist/components/snk-detail-view2.js +81 -34
- package/dist/components/snk-filter-bar2.js +30 -13
- package/dist/components/snk-filter-item2.js +8 -2
- package/dist/components/snk-filter-modal2.js +16 -6
- package/dist/components/snk-filter-number.js +2 -2
- package/dist/components/snk-filter-period.js +10 -5
- package/dist/components/snk-filter-text.js +1 -1
- package/dist/components/snk-form-config2.js +29 -5
- package/dist/components/snk-grid2.js +22 -11
- package/dist/components/snk-pesquisa2.js +14 -2
- package/dist/components/snk-simple-crud2.js +3 -11
- package/dist/components/snk-taskbar2.js +66 -49
- package/dist/esm/{ConfigStorage-568dc227.js → ConfigStorage-39ac8fef.js} +2 -2
- package/dist/esm/{DataFetcher-743feb3b.js → DataFetcher-0b9da57d.js} +34 -4
- package/dist/esm/{FormConfigHelper-4e42f0b6.js → FormConfigHelper-d09669f3.js} +43 -1
- package/dist/esm/{ISave-345481c1.js → ISave-f1c9269b.js} +4 -4
- package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
- package/dist/esm/{SnkFormConfigManager-d61df0c8.js → SnkFormConfigManager-a87566c8.js} +7 -7
- package/dist/esm/{SnkMultiSelectionListDataSource-ca8d7a09.js → SnkMultiSelectionListDataSource-01b3744b.js} +5 -5
- package/dist/esm/{auth-fetcher-c353127d.js → auth-fetcher-acdc1cb4.js} +1 -1
- package/dist/esm/config-header.entry.js +1 -1
- package/dist/esm/configs-button.entry.js +1 -1
- package/dist/esm/css-shim-9f2d321e.js +4 -0
- package/dist/esm/{dataunit-fetcher-7f2c61ca.js → dataunit-fetcher-4c312b43.js} +1 -1
- package/dist/esm/dom-64053c71.js +73 -0
- package/dist/esm/field-config_2.entry.js +3 -3
- package/dist/esm/fields-layout.entry.js +7 -4
- package/dist/esm/fields-selector.entry.js +2 -2
- package/dist/esm/{form-config-fetcher-898d2dd1.js → form-config-fetcher-7cda6254.js} +1 -1
- package/dist/esm/guides-configurator.entry.js +6 -4
- package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1507 -171
- package/dist/esm/{index-446f9341.js → index-ea250be6.js} +90 -21
- package/dist/esm/loader.js +17 -3
- package/dist/esm/pesquisa-grid_2.entry.js +5 -5
- package/dist/esm/sankhyablocks.js +133 -5
- package/dist/esm/shadow-css-98135883.js +387 -0
- package/dist/esm/snk-actions-button_9.entry.js +6 -6
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +99 -70
- package/dist/esm/snk-attach.entry.js +8 -8
- package/dist/esm/snk-client-confirm.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +100 -9
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-custom-slot-guide.entry.js +36 -0
- package/dist/esm/snk-data-exporter.entry.js +6 -6
- package/dist/esm/{snk-data-unit-60b338c5.js → snk-data-unit-130021b3.js} +12 -3
- package/dist/esm/snk-data-unit.entry.js +4 -4
- package/dist/esm/snk-default-filter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +10 -10
- package/dist/esm/snk-entity-list.entry.js +1 -1
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-expression-group_2.entry.js +2 -2
- package/dist/esm/snk-filter-advanced-mode_2.entry.js +2 -2
- package/dist/esm/snk-filter-bar_4.entry.js +58 -25
- package/dist/esm/snk-filter-binary-select.entry.js +1 -1
- package/dist/esm/snk-filter-checkbox-list.entry.js +1 -1
- package/dist/esm/snk-filter-detail.entry.js +2 -2
- package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
- package/dist/esm/snk-filter-modal-item.entry.js +4 -4
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +2 -2
- package/dist/esm/snk-filter-period.entry.js +11 -6
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +2 -2
- package/dist/esm/snk-form-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +1 -1
- package/dist/esm/snk-form_2.entry.js +33 -10
- package/dist/esm/snk-grid.entry.js +28 -19
- package/dist/esm/{snk-guides-viewer-339e10b3.js → snk-guides-viewer-3fd18298.js} +86 -40
- package/dist/esm/snk-guides-viewer.entry.js +10 -10
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +6 -6
- package/dist/esm/snk-pesquisa.entry.js +17 -6
- package/dist/esm/snk-print-selector.entry.js +1 -1
- package/dist/esm/snk-simple-bar.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +12 -20
- package/dist/esm/snk-taskbar.entry.js +68 -52
- package/dist/esm/{taskbar-elements-faaf5d8f.js → taskbar-elements-d1e63fb2.js} +2 -2
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/{p-7f7fe6c4.entry.js → p-0a160fb5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-144da1d1.entry.js → p-12f595a6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
- package/dist/sankhyablocks/p-18d66638.entry.js +1 -0
- package/dist/sankhyablocks/{p-1788d191.js → p-1f310bc6.js} +1 -1
- package/dist/sankhyablocks/{p-c4fcf1fb.entry.js → p-27e0cd68.entry.js} +1 -1
- package/dist/sankhyablocks/p-2ac55a5d.js +1 -0
- package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-2b882835.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1f8cb438.entry.js → p-2c6be187.entry.js} +1 -1
- package/dist/sankhyablocks/p-2c9d0870.js +2 -0
- package/dist/sankhyablocks/{p-cb4343c4.entry.js → p-2cc2526e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
- package/dist/sankhyablocks/{p-093f58fa.entry.js → p-2f94cf87.entry.js} +1 -1
- package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
- package/dist/sankhyablocks/p-3a443150.entry.js +1 -0
- package/dist/sankhyablocks/{p-c90f337a.entry.js → p-3b6d8d33.entry.js} +1 -1
- package/dist/sankhyablocks/p-3db72758.entry.js +1 -0
- package/dist/sankhyablocks/{p-e8c49c12.js → p-48a5c311.js} +2 -2
- package/dist/sankhyablocks/p-52691b42.js +1 -0
- package/dist/sankhyablocks/{p-27482793.entry.js → p-5aae5c74.entry.js} +1 -1
- package/dist/sankhyablocks/p-6564180d.entry.js +1 -0
- package/dist/sankhyablocks/{p-6d241415.js → p-6768f176.js} +1 -1
- package/dist/sankhyablocks/p-68c1a093.js +1 -0
- package/dist/sankhyablocks/p-6d322b0a.js +1 -0
- package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-7150eacf.entry.js} +1 -1
- package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-752f4e29.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7fc46290.js → p-7ee6b1bf.js} +1 -1
- package/dist/sankhyablocks/{p-27005fac.entry.js → p-877d9614.entry.js} +1 -1
- package/dist/sankhyablocks/p-8b4d6719.js +1 -0
- package/dist/sankhyablocks/{p-3d41f5a8.entry.js → p-8d946600.entry.js} +1 -1
- package/dist/sankhyablocks/{p-96d45943.entry.js → p-90ae6c2e.entry.js} +1 -1
- package/dist/sankhyablocks/p-94267a30.entry.js +1 -0
- package/dist/sankhyablocks/{p-59b8f277.js → p-998a9d6f.js} +1 -1
- package/dist/sankhyablocks/{p-21107f0d.entry.js → p-9c1ff75e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-88ed2793.js → p-9e4555ab.js} +1 -1
- package/dist/sankhyablocks/p-a46ac091.js +1 -0
- package/dist/sankhyablocks/p-a73b6b00.js +1 -0
- package/dist/sankhyablocks/{p-164c822d.entry.js → p-acd2ba28.entry.js} +1 -1
- package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
- package/dist/sankhyablocks/p-b471bfab.entry.js +1 -0
- package/dist/sankhyablocks/p-b533edab.entry.js +1 -0
- package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
- package/dist/sankhyablocks/p-c2d33fc8.entry.js +1 -0
- package/dist/sankhyablocks/p-c3ec6642.js +19 -0
- package/dist/sankhyablocks/{p-91a9abb6.entry.js → p-c8043a53.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b987e15d.js → p-cc9935af.js} +1 -1
- package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b7e891cc.entry.js → p-cd40c8cf.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bd203e8d.entry.js → p-cd412add.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e6b1c769.entry.js → p-d6dad5e4.entry.js} +1 -1
- package/dist/sankhyablocks/p-d714b6ca.js +1 -0
- package/dist/sankhyablocks/p-da455c82.js +12 -0
- package/dist/sankhyablocks/p-dea58642.entry.js +11 -0
- package/dist/sankhyablocks/p-e30acdca.entry.js +1 -0
- package/dist/sankhyablocks/p-ec9027a7.entry.js +1 -0
- package/dist/sankhyablocks/p-ef9343c3.entry.js +1 -0
- package/dist/sankhyablocks/{p-667cab42.entry.js → p-f152ef98.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
- package/dist/sankhyablocks/p-f8c5395a.entry.js +1 -0
- package/dist/sankhyablocks/p-f8da8569.entry.js +1 -0
- package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/search-strategy/exec-prepared-search-advaced-mode.d.ts +5 -0
- package/dist/types/components/snk-application/snk-application.d.ts +9 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +22 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +23 -0
- package/dist/types/components/snk-custom-slot-guide/snk-custom-slot-guide.d.ts +16 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +1 -1
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +2 -1
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +6 -1
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +1 -1
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +2 -2
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +1 -1
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +9 -2
- package/dist/types/components/snk-grid/snk-grid.d.ts +6 -0
- package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +8 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +0 -1
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +12 -4
- package/dist/types/components.d.ts +105 -0
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -0
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/sankhyablocks/p-0cf9aa38.js +0 -1
- package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
- package/dist/sankhyablocks/p-1649f51e.entry.js +0 -1
- package/dist/sankhyablocks/p-1d585081.js +0 -1
- package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-4759912d.entry.js +0 -1
- package/dist/sankhyablocks/p-55798617.js +0 -1
- package/dist/sankhyablocks/p-56948f00.entry.js +0 -11
- package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
- package/dist/sankhyablocks/p-626b7a17.js +0 -1
- package/dist/sankhyablocks/p-8f73da95.js +0 -1
- package/dist/sankhyablocks/p-95c71f5e.entry.js +0 -1
- package/dist/sankhyablocks/p-988afe78.js +0 -1
- package/dist/sankhyablocks/p-9f2cdaab.entry.js +0 -1
- package/dist/sankhyablocks/p-9fe91526.js +0 -1
- package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
- package/dist/sankhyablocks/p-aae4258d.entry.js +0 -1
- package/dist/sankhyablocks/p-af9d79e0.entry.js +0 -1
- package/dist/sankhyablocks/p-bb0de89c.entry.js +0 -1
- package/dist/sankhyablocks/p-d8d8169b.js +0 -2
- package/dist/sankhyablocks/p-e64958ba.entry.js +0 -1
- package/dist/sankhyablocks/p-f25c50f7.entry.js +0 -1
- package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
|
@@ -385,32 +385,40 @@ class RequestListenerFactory {
|
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
+
const executeAdvancedModeSearch = async (argument, options, app, pesquisaFetcher) => {
|
|
389
|
+
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic, executeOnOpen } = options;
|
|
390
|
+
return new Promise((accept, reject) => {
|
|
391
|
+
const pesquisaContent = document.createElement("snk-pesquisa");
|
|
392
|
+
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
|
393
|
+
pesquisaContent.entityName = entity;
|
|
394
|
+
pesquisaContent.argument = argument;
|
|
395
|
+
pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
|
|
396
|
+
pesquisaContent.isHierarchyEntity = isHierarchyEntity;
|
|
397
|
+
if (isHierarchyEntity) {
|
|
398
|
+
pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
|
|
399
|
+
pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
|
|
400
|
+
}
|
|
401
|
+
pesquisaContent.selectItem = (option) => {
|
|
402
|
+
accept(option);
|
|
403
|
+
app.clearPopUpTitle();
|
|
404
|
+
app.closePopUp();
|
|
405
|
+
};
|
|
406
|
+
app.setPopUpTitle(entityDescription);
|
|
407
|
+
app.showPopUp(pesquisaContent, undefined, undefined, reject);
|
|
408
|
+
if (executeOnOpen) {
|
|
409
|
+
pesquisaContent.executeSearch(argument);
|
|
410
|
+
}
|
|
411
|
+
});
|
|
412
|
+
};
|
|
413
|
+
|
|
388
414
|
const QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH = 6;
|
|
389
415
|
const INVALID_CONTENT_PATTERNS = ['<img', '<svg'];
|
|
390
416
|
const executePreparedSearchPlus = async (mode, argument, options, app, pesquisaFetcher) => {
|
|
391
417
|
var _a;
|
|
392
418
|
const mdByName = {};
|
|
393
|
-
const { entity,
|
|
419
|
+
const { entity, criteria, searchOptions } = options;
|
|
394
420
|
if (mode === "ADVANCED") {
|
|
395
|
-
return
|
|
396
|
-
const pesquisaContent = document.createElement("snk-pesquisa");
|
|
397
|
-
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
|
398
|
-
pesquisaContent.entityName = entity;
|
|
399
|
-
pesquisaContent.argument = argument;
|
|
400
|
-
pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
|
|
401
|
-
pesquisaContent.isHierarchyEntity = isHierarchyEntity;
|
|
402
|
-
if (isHierarchyEntity) {
|
|
403
|
-
pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
|
|
404
|
-
pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
|
|
405
|
-
}
|
|
406
|
-
pesquisaContent.selectItem = (option) => {
|
|
407
|
-
accept(option);
|
|
408
|
-
app.clearPopUpTitle();
|
|
409
|
-
app.closePopUp();
|
|
410
|
-
};
|
|
411
|
-
app.setPopUpTitle(entityDescription);
|
|
412
|
-
app.showPopUp(pesquisaContent, undefined, undefined, reject);
|
|
413
|
-
});
|
|
421
|
+
return executeAdvancedModeSearch(argument, options, app, pesquisaFetcher);
|
|
414
422
|
}
|
|
415
423
|
else if (mode === "LOAD_DESCRIPTION") {
|
|
416
424
|
let result = await pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
|
|
@@ -447,14 +455,13 @@ const buildOptionItem = (argument, item, fields, descriptionField, pkField) => {
|
|
|
447
455
|
const matchFields = item['__matchFields'];
|
|
448
456
|
const descriptionValue = (_a = item[descriptionField]) !== null && _a !== void 0 ? _a : "";
|
|
449
457
|
const pkValue = item[pkField];
|
|
450
|
-
|
|
458
|
+
return {
|
|
451
459
|
value: pkValue,
|
|
452
460
|
label: descriptionValue,
|
|
453
461
|
presentationValue: StringUtils.highlightValue(argument, matchFields, pkValue, fields, true),
|
|
454
462
|
presentationLabel: descriptionField ? StringUtils.highlightValue(argument, matchFields, descriptionValue, fields, true) : "",
|
|
455
463
|
details: SearchUtils.buildDetails(argument, fields, item)
|
|
456
464
|
};
|
|
457
|
-
return searchOption;
|
|
458
465
|
};
|
|
459
466
|
const filterInvalidFields = (resp, item, mdByName) => {
|
|
460
467
|
let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
|
|
@@ -890,7 +897,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
890
897
|
if (this._featureFlagsCache.get(featureName) && now < this._featureFlagsCache.get(featureName).expires) {
|
|
891
898
|
return Promise.resolve(this._featureFlagsCache.get(featureName).isActive);
|
|
892
899
|
}
|
|
893
|
-
//Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
|
|
900
|
+
//Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
|
|
894
901
|
const result = await DataFetcher.get().callServiceBroker("SystemUtilsSP.featureIsActive", JSON.stringify(payload));
|
|
895
902
|
const isActive = result.isActive;
|
|
896
903
|
this._featureFlagsCache.set(featureName, {
|
|
@@ -1380,53 +1387,75 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
1380
1387
|
* @async
|
|
1381
1388
|
*/
|
|
1382
1389
|
async executePreparedSearch(mode, argument, options) {
|
|
1390
|
+
var _a;
|
|
1383
1391
|
const mdByName = {};
|
|
1384
|
-
const { entity,
|
|
1392
|
+
const { entity, criteria, searchOptions, useSearchPlus } = options;
|
|
1385
1393
|
if (useSearchPlus) {
|
|
1386
1394
|
return executePreparedSearchPlus(mode, argument, options, this, this.pesquisaFetcher);
|
|
1387
1395
|
}
|
|
1388
|
-
if (mode === "
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
pesquisaContent.treeLoader = (text) => this.pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
|
|
1398
|
-
pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
|
|
1399
|
-
}
|
|
1400
|
-
pesquisaContent.selectItem = (option) => {
|
|
1401
|
-
accept(option);
|
|
1402
|
-
this.clearPopUpTitle();
|
|
1403
|
-
this.closePopUp();
|
|
1396
|
+
if (mode === "LOAD_DESCRIPTION") {
|
|
1397
|
+
let result = await this.pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
|
|
1398
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
|
1399
|
+
let descriptionField = result.descriptionField;
|
|
1400
|
+
const option = (_a = result.data) === null || _a === void 0 ? void 0 : _a[0];
|
|
1401
|
+
if (!option) {
|
|
1402
|
+
return {
|
|
1403
|
+
value: argument,
|
|
1404
|
+
label: ""
|
|
1404
1405
|
};
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
|
|
1406
|
+
}
|
|
1407
|
+
return {
|
|
1408
|
+
value: argument,
|
|
1409
|
+
label: option[descriptionField]
|
|
1410
|
+
};
|
|
1408
1411
|
}
|
|
1409
|
-
else {
|
|
1410
|
-
return
|
|
1411
|
-
this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
|
|
1412
|
-
.then(result => {
|
|
1413
|
-
result = ObjectUtils.stringToObject(result.json.$);
|
|
1414
|
-
let descriptionField = result.descriptionField;
|
|
1415
|
-
let pkField = result.pkField;
|
|
1416
|
-
const list = [];
|
|
1417
|
-
result.data.forEach((item) => {
|
|
1418
|
-
let fieldsMetadata = this.filterInvalidFields(result, item, mdByName);
|
|
1419
|
-
let qtyFields = 6;
|
|
1420
|
-
let fields = this.filterMathFields(item['__matchFields'], fieldsMetadata, qtyFields, mdByName);
|
|
1421
|
-
list.push(this.builOptionItem(argument, item, fields, descriptionField, pkField));
|
|
1422
|
-
});
|
|
1423
|
-
resolve(list);
|
|
1424
|
-
})
|
|
1425
|
-
.catch(error => {
|
|
1426
|
-
reject(error);
|
|
1427
|
-
});
|
|
1428
|
-
});
|
|
1412
|
+
else if (mode === "ADVANCED") {
|
|
1413
|
+
return executeAdvancedModeSearch(argument, options, this, this.pesquisaFetcher);
|
|
1429
1414
|
}
|
|
1415
|
+
return new Promise((resolve, reject) => {
|
|
1416
|
+
this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
|
|
1417
|
+
.then(result => {
|
|
1418
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
|
1419
|
+
resolve(this.buildSearchResultList(result, mdByName, argument));
|
|
1420
|
+
})
|
|
1421
|
+
.catch(error => {
|
|
1422
|
+
reject(error);
|
|
1423
|
+
});
|
|
1424
|
+
});
|
|
1425
|
+
}
|
|
1426
|
+
/**
|
|
1427
|
+
* Obtém as opções em componentes de pesquisa além dos metadados como showMore e entityPk.
|
|
1428
|
+
* @param {string} argument - O argumento da pesquisa.
|
|
1429
|
+
* @param {any} options - Opções preparadas para a pesquisa.
|
|
1430
|
+
* @returns {Promise<Array<IOption> | IOption>} Uma lista de opções ou uma única opção.
|
|
1431
|
+
* @async
|
|
1432
|
+
*/
|
|
1433
|
+
async executePreparedSearchWithFullResponse(argument, options) {
|
|
1434
|
+
const mdByName = {};
|
|
1435
|
+
const { entity, criteria, searchOptions } = options;
|
|
1436
|
+
return new Promise((resolve, reject) => {
|
|
1437
|
+
this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
|
|
1438
|
+
.then(result => {
|
|
1439
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
|
1440
|
+
result.data = this.buildSearchResultList(result, mdByName, argument);
|
|
1441
|
+
resolve(result);
|
|
1442
|
+
})
|
|
1443
|
+
.catch(error => {
|
|
1444
|
+
reject(error);
|
|
1445
|
+
});
|
|
1446
|
+
});
|
|
1447
|
+
}
|
|
1448
|
+
buildSearchResultList(result, mdByName, argument) {
|
|
1449
|
+
let descriptionField = result.descriptionField;
|
|
1450
|
+
let pkField = result.pkField;
|
|
1451
|
+
const list = [];
|
|
1452
|
+
result.data.forEach((item) => {
|
|
1453
|
+
let fieldsMetadata = this.filterInvalidFields(result, item, mdByName);
|
|
1454
|
+
let qtyFields = 6;
|
|
1455
|
+
let fields = this.filterMathFields(item['__matchFields'], fieldsMetadata, qtyFields, mdByName);
|
|
1456
|
+
list.push(this.builOptionItem(argument, item, fields, descriptionField, pkField));
|
|
1457
|
+
});
|
|
1458
|
+
return list;
|
|
1430
1459
|
}
|
|
1431
1460
|
/**
|
|
1432
1461
|
* Obtém `true` caso a tela esteja em modo de debug.
|
|
@@ -1979,6 +2008,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
|
|
|
1979
2008
|
"executeSearch": [64],
|
|
1980
2009
|
"executePreparedSearchPlus": [64],
|
|
1981
2010
|
"executePreparedSearch": [64],
|
|
2011
|
+
"executePreparedSearchWithFullResponse": [64],
|
|
1982
2012
|
"isDebugMode": [64],
|
|
1983
2013
|
"getAppLabel": [64],
|
|
1984
2014
|
"addSearchListener": [64],
|
|
@@ -911,7 +911,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
911
911
|
static get style() { return snkAttachCss; }
|
|
912
912
|
}, [2, "snk-attach", {
|
|
913
913
|
"gridLegacyConfigName": [1, "grid-legacy-config-name"],
|
|
914
|
-
"fetcherType": [
|
|
914
|
+
"fetcherType": [1025, "fetcher-type"],
|
|
915
915
|
"fetcher": [16],
|
|
916
916
|
"dataUnit": [16],
|
|
917
917
|
"dataUnitBuilder": [16],
|
|
@@ -58,6 +58,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
58
58
|
constructor() {
|
|
59
59
|
super();
|
|
60
60
|
this.__registerHost();
|
|
61
|
+
this.snkShowGuide = createEvent(this, "snkShowGuide", 7);
|
|
61
62
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
62
63
|
this.configuratorSave = createEvent(this, "configuratorSave", 7);
|
|
63
64
|
this.configuratorCancel = createEvent(this, "configuratorCancel", 7);
|
|
@@ -67,6 +68,38 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
67
68
|
this._viewHistory = [];
|
|
68
69
|
this._customEditors = new Map();
|
|
69
70
|
this._customRenders = new Map();
|
|
71
|
+
this.loadEntitySuggestions = async (argument) => {
|
|
72
|
+
var _a;
|
|
73
|
+
const value = (_a = argument === null || argument === void 0 ? void 0 : argument.argument) !== null && _a !== void 0 ? _a : '';
|
|
74
|
+
const mode = (argument === null || argument === void 0 ? void 0 : argument.mode) || "PREDICTIVE";
|
|
75
|
+
if (!value || value.trim().length === 0) {
|
|
76
|
+
return [];
|
|
77
|
+
}
|
|
78
|
+
try {
|
|
79
|
+
this._showMoreOnSearch = false;
|
|
80
|
+
const entityName = this._snkDataUnit.entityName;
|
|
81
|
+
if (mode === "PREDICTIVE") {
|
|
82
|
+
return await this.handlePredictiveSearch(value, entityName);
|
|
83
|
+
}
|
|
84
|
+
return await this._application.executePreparedSearch(mode, value, this.buildSearchOptions(entityName));
|
|
85
|
+
}
|
|
86
|
+
catch (error) {
|
|
87
|
+
console.error('Erro ao carregar sugestões de entidades:', error);
|
|
88
|
+
return [];
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
this.searchEntitySelect = async (item) => {
|
|
92
|
+
if (!this._entityPKField || !item) {
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
try {
|
|
96
|
+
const pk = [{ name: this._entityPKField, value: item.value }];
|
|
97
|
+
await this.refreshDataUnitByPk(pk);
|
|
98
|
+
}
|
|
99
|
+
catch (error) {
|
|
100
|
+
console.error('Erro ao selecionar entidade:', error);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
70
103
|
this.dataUnitInterceptor = {
|
|
71
104
|
interceptAction: (action) => {
|
|
72
105
|
if (action.type === Action.DATA_SAVED) {
|
|
@@ -83,6 +116,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
83
116
|
this._resourceID = undefined;
|
|
84
117
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
|
85
118
|
this.numberingConfig = undefined;
|
|
119
|
+
this._showMoreOnSearch = false;
|
|
120
|
+
this._entityPKField = undefined;
|
|
86
121
|
this.enableLockManagerLoadingComp = false;
|
|
87
122
|
this.enableLockManagerTaskbarClick = false;
|
|
88
123
|
this.configName = undefined;
|
|
@@ -111,6 +146,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
111
146
|
this.layoutFormConfig = true;
|
|
112
147
|
this.multipleEditionEnabled = true;
|
|
113
148
|
this.paginationCounterMode = 'auto';
|
|
149
|
+
this.customGuidesConfig = [];
|
|
150
|
+
this.showEntitySearch = true;
|
|
114
151
|
this.disableNumberingConfig = false;
|
|
115
152
|
}
|
|
116
153
|
/**
|
|
@@ -406,6 +443,49 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
406
443
|
var _a;
|
|
407
444
|
(_a = this._keyboardManager) === null || _a === void 0 ? void 0 : _a.unbindAllShortcutKeys();
|
|
408
445
|
}
|
|
446
|
+
async handlePredictiveSearch(argument, entityName) {
|
|
447
|
+
var _a, _b;
|
|
448
|
+
const response = await this._application.executePreparedSearchWithFullResponse(argument, this.buildSearchOptions(entityName, 5));
|
|
449
|
+
this._showMoreOnSearch = (_a = response === null || response === void 0 ? void 0 : response.hasMore) !== null && _a !== void 0 ? _a : false;
|
|
450
|
+
this._entityPKField = response === null || response === void 0 ? void 0 : response.pkField;
|
|
451
|
+
return (_b = response === null || response === void 0 ? void 0 : response.data) !== null && _b !== void 0 ? _b : [];
|
|
452
|
+
}
|
|
453
|
+
async refreshDataUnitByPk(pks) {
|
|
454
|
+
try {
|
|
455
|
+
const pkField = pks[0].name;
|
|
456
|
+
const pkValue = pks[0].value;
|
|
457
|
+
// Criar filtro para a busca específica
|
|
458
|
+
const quickFilter = {
|
|
459
|
+
term: '',
|
|
460
|
+
filter: {
|
|
461
|
+
name: '',
|
|
462
|
+
params: [],
|
|
463
|
+
expression: `(${pkField} = ${pkValue})`
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
// Carregar dados com o filtro aplicado diretamente
|
|
467
|
+
await this._dataUnit.loadData(quickFilter);
|
|
468
|
+
// Navegar para o formulário se houver apenas um registro
|
|
469
|
+
if (this._dataUnit.records.length === 1) {
|
|
470
|
+
this._dataUnit.selectFirst();
|
|
471
|
+
this.gridToForm(true);
|
|
472
|
+
}
|
|
473
|
+
}
|
|
474
|
+
catch (error) {
|
|
475
|
+
console.error('Erro ao atualizar dataset:', error);
|
|
476
|
+
}
|
|
477
|
+
}
|
|
478
|
+
buildSearchOptions(entityName, limit) {
|
|
479
|
+
return {
|
|
480
|
+
entity: entityName,
|
|
481
|
+
entityDescription: entityName,
|
|
482
|
+
executeOnOpen: true,
|
|
483
|
+
searchOptions: {
|
|
484
|
+
localEntityName: entityName,
|
|
485
|
+
limit,
|
|
486
|
+
}
|
|
487
|
+
};
|
|
488
|
+
}
|
|
409
489
|
async toggleView() {
|
|
410
490
|
const currentView = await this._viewStack.getSelectedIndex();
|
|
411
491
|
this.setViewMode(VIEW_MODE.GRID === currentView ? VIEW_MODE.FORM : VIEW_MODE.GRID);
|
|
@@ -512,12 +592,23 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
512
592
|
}
|
|
513
593
|
this.configuratorCancel.emit();
|
|
514
594
|
}
|
|
595
|
+
renderCustomGuideSlots() {
|
|
596
|
+
if (!this.customGuidesConfig)
|
|
597
|
+
return;
|
|
598
|
+
return this.customGuidesConfig.map(g => h("slot", { name: g.id }));
|
|
599
|
+
}
|
|
600
|
+
renderDynamicSearch(slotName) {
|
|
601
|
+
var _a;
|
|
602
|
+
if (!this.showEntitySearch || ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.insertionMode) === true)
|
|
603
|
+
return;
|
|
604
|
+
return (h("div", { slot: slotName, class: "entity-search-container", style: { position: 'relative', display: 'inline-block', marginLeft: '10px', minWidth: '200px' } }, h("ez-search", { label: "Buscar registros", optionLoader: this.loadEntitySuggestions, onEzChange: (evt) => this.searchEntitySelect(evt.detail), mode: "slim", showMore: this._showMoreOnSearch, suppressEmptyOption: true, suppressInputPersist: true })));
|
|
605
|
+
}
|
|
515
606
|
render() {
|
|
516
607
|
if (this._resourceID == undefined) {
|
|
517
608
|
return;
|
|
518
609
|
}
|
|
519
610
|
this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === VIEW_MODE.GRID && !this.enableGridInsert);
|
|
520
|
-
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter, multipleEditionEnabled: this.multipleEditionEnabled, paginationCounterMode: this.paginationCounterMode }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", { tabIndex: "0" }, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, entityName: this._snkDataUnit.entityName, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId, layoutFormConfig: this.layoutFormConfig })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
|
611
|
+
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter, multipleEditionEnabled: this.multipleEditionEnabled, paginationCounterMode: this.paginationCounterMode }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }), this.renderDynamicSearch("GRID_HEADER_DYNAMIC_SEARCH"))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, customGuidesConfig: this.customGuidesConfig, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), this.renderCustomGuideSlots(), this.renderDynamicSearch("GUIDES_VIEWER_DYNAMIC_SEARCH"), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", { tabIndex: "0" }, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, entityName: this._snkDataUnit.entityName, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId, layoutFormConfig: this.layoutFormConfig })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
|
521
612
|
}
|
|
522
613
|
get _element() { return this; }
|
|
523
614
|
static get watchers() { return {
|
|
@@ -553,6 +644,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
553
644
|
"layoutFormConfig": [4, "layout-form-config"],
|
|
554
645
|
"multipleEditionEnabled": [4, "multiple-edition-enabled"],
|
|
555
646
|
"paginationCounterMode": [1, "pagination-counter-mode"],
|
|
647
|
+
"customGuidesConfig": [16],
|
|
648
|
+
"showEntitySearch": [4, "show-entity-search"],
|
|
556
649
|
"disableNumberingConfig": [4, "disable-numbering-config"],
|
|
557
650
|
"_dataUnit": [32],
|
|
558
651
|
"_dataState": [32],
|
|
@@ -562,6 +655,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
562
655
|
"_resourceID": [32],
|
|
563
656
|
"customContainerId": [32],
|
|
564
657
|
"numberingConfig": [32],
|
|
658
|
+
"_showMoreOnSearch": [32],
|
|
659
|
+
"_entityPKField": [32],
|
|
565
660
|
"goToView": [64],
|
|
566
661
|
"openConfigurator": [64],
|
|
567
662
|
"closeConfigurator": [64],
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SnkCustomSlotGuide extends Components.SnkCustomSlotGuide, HTMLElement {}
|
|
4
|
+
export const SnkCustomSlotGuide: {
|
|
5
|
+
prototype: SnkCustomSlotGuide;
|
|
6
|
+
new (): SnkCustomSlotGuide;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
|
2
|
+
|
|
3
|
+
const snkCustomSlotGuideCss = ".sc-snk-custom-slot-guide-h{display:none}";
|
|
4
|
+
|
|
5
|
+
const SnkCustomSlotGuide$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.__registerHost();
|
|
9
|
+
this.snkCustomSlotGuideLoaded = createEvent(this, "snkCustomSlotGuideLoaded", 7);
|
|
10
|
+
this.slotName = 'CUSTOM_SLOT_GUIDE';
|
|
11
|
+
}
|
|
12
|
+
onGuideChange(evt) {
|
|
13
|
+
const guideName = evt.detail;
|
|
14
|
+
if (guideName === this.slotName) {
|
|
15
|
+
this._element.style.setProperty('display', 'block');
|
|
16
|
+
}
|
|
17
|
+
else {
|
|
18
|
+
this._element.style.setProperty('display', 'none');
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
onFormConfigVisibilityChange(evt) {
|
|
22
|
+
const isFormConfigVisible = evt.detail;
|
|
23
|
+
if (isFormConfigVisible) {
|
|
24
|
+
this._element.style.setProperty('display', 'none');
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
componentDidLoad() {
|
|
28
|
+
this.snkCustomSlotGuideLoaded.emit(this.slotName);
|
|
29
|
+
}
|
|
30
|
+
render() {
|
|
31
|
+
return (h(Host, { slot: this.slotName, id: this.slotName, class: "custom-slot-guide-container" }, h("slot", null)));
|
|
32
|
+
}
|
|
33
|
+
get _element() { return this; }
|
|
34
|
+
static get style() { return snkCustomSlotGuideCss; }
|
|
35
|
+
}, [6, "snk-custom-slot-guide", {
|
|
36
|
+
"slotName": [1, "slot-name"]
|
|
37
|
+
}, [[8, "snkShowGuide", "onGuideChange"], [8, "formConfigVisibilityChanged", "onFormConfigVisibilityChange"]]]);
|
|
38
|
+
function defineCustomElement$1() {
|
|
39
|
+
if (typeof customElements === "undefined") {
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
const components = ["snk-custom-slot-guide"];
|
|
43
|
+
components.forEach(tagName => { switch (tagName) {
|
|
44
|
+
case "snk-custom-slot-guide":
|
|
45
|
+
if (!customElements.get(tagName)) {
|
|
46
|
+
customElements.define(tagName, SnkCustomSlotGuide$1);
|
|
47
|
+
}
|
|
48
|
+
break;
|
|
49
|
+
} });
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
const SnkCustomSlotGuide = SnkCustomSlotGuide$1;
|
|
53
|
+
const defineCustomElement = defineCustomElement$1;
|
|
54
|
+
|
|
55
|
+
export { SnkCustomSlotGuide, defineCustomElement };
|
|
@@ -154,6 +154,7 @@ const SnkDataUnit = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
154
154
|
this._metadataByRow = new Map();
|
|
155
155
|
this._rowMetadataCache = new Map();
|
|
156
156
|
this._formFieldsConfig = [];
|
|
157
|
+
this._internalDataStateChange = false;
|
|
157
158
|
this.REGEX_DATAUNIT_NAME = /dd:\/\/(.+?)\//;
|
|
158
159
|
this._dataUnitObserver = async (action) => {
|
|
159
160
|
const duState = await this.buildDataState(action.type);
|
|
@@ -408,11 +409,17 @@ const SnkDataUnit = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
408
409
|
if (this.isAllowed("UPDATE") || this.dataUnit.isNewRecord(recordId)) {
|
|
409
410
|
return action;
|
|
410
411
|
}
|
|
412
|
+
if (this._internalDataStateChange) {
|
|
413
|
+
this._internalDataStateChange = false;
|
|
414
|
+
return;
|
|
415
|
+
}
|
|
411
416
|
if (this._openedAlert) {
|
|
417
|
+
this._internalDataStateChange = true;
|
|
412
418
|
await this.dataUnit.cancelEdition();
|
|
413
419
|
return;
|
|
414
420
|
}
|
|
415
421
|
this._openedAlert = true;
|
|
422
|
+
this._internalDataStateChange = true;
|
|
416
423
|
await this.dataUnit.cancelEdition();
|
|
417
424
|
await ApplicationUtils.alert(this.getMessage("snkDataUnit.forbidden"), this.getMessage("snkDataUnit.forbiddenUpdate"));
|
|
418
425
|
this._openedAlert = false;
|
|
@@ -615,6 +622,8 @@ const SnkDataUnit = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
615
622
|
return records;
|
|
616
623
|
const parentSelectedRecord = parentDataUnit.getSelectedRecord();
|
|
617
624
|
const selfInfo = parentDataUnit === null || parentDataUnit === void 0 ? void 0 : parentDataUnit.getChildInfo(this.getCleanDataUnitName());
|
|
625
|
+
if (!selfInfo)
|
|
626
|
+
return records;
|
|
618
627
|
const { links } = selfInfo;
|
|
619
628
|
if (!links || links.length === 0)
|
|
620
629
|
return records;
|