@sankhyalabs/sankhyablocks 10.1.0-dev.2 → 10.1.0-dev.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{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 +100 -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 +14 -21
- 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 +105 -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 +23 -12
- 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 +94 -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 +6 -12
- 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 +100 -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 +14 -21
- 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-2a33d4cf.entry.js +1 -0
- 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-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-7345782c.entry.js → p-f921270b.entry.js} +1 -1
- package/dist/sankhyablocks/p-fa087ab2.entry.js +11 -0
- 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 +4 -1
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +12 -4
- package/dist/types/components.d.ts +113 -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
|
@@ -2,24 +2,24 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const constants = require('./constants-6d82e405.js');
|
|
9
|
-
const taskbarElements = require('./taskbar-elements-
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./ISave-
|
|
12
|
-
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-
|
|
9
|
+
const taskbarElements = require('./taskbar-elements-8a80420e.js');
|
|
10
|
+
require('./DataFetcher-0b6aa084.js');
|
|
11
|
+
require('./ISave-2c455a77.js');
|
|
12
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-03b58f5a.js');
|
|
13
13
|
const index$1 = require('./index-e3e39724.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
16
|
+
const dataunitFetcher = require('./dataunit-fetcher-8dffbcdf.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
18
|
+
const formConfigFetcher = require('./form-config-fetcher-5516d68a.js');
|
|
19
19
|
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
|
20
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
21
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
22
|
-
const index$2 = require('./index-
|
|
20
|
+
const ConfigStorage = require('./ConfigStorage-a4e1e518.js');
|
|
21
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-b8c81493.js');
|
|
22
|
+
const index$2 = require('./index-f0fe7e6e.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
24
24
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
25
25
|
require('./IFetchDataExporterParams-e78ec415.js');
|
|
@@ -82,6 +82,7 @@ const SnkSimpleCrud = class {
|
|
|
82
82
|
this.domainMessagesBuilder = undefined;
|
|
83
83
|
this.multipleEditionEnabled = true;
|
|
84
84
|
this.layoutFormConfig = true;
|
|
85
|
+
this.disableGridEdition = false;
|
|
85
86
|
this.autoLoad = undefined;
|
|
86
87
|
this.outlineMode = false;
|
|
87
88
|
}
|
|
@@ -182,11 +183,10 @@ const SnkSimpleCrud = class {
|
|
|
182
183
|
}
|
|
183
184
|
getButtons(selected, extraButtons, removeRefresh) {
|
|
184
185
|
let btnList = selected ? REGULAR_SELECTED_BTNS : REGULAR_DEFAULT_BTNS;
|
|
185
|
-
if (removeRefresh) {
|
|
186
|
+
if (removeRefresh || this.mode === constants.SIMPLE_CRUD_MODE.IN_MEMORY) {
|
|
186
187
|
btnList = btnList.filter(item => item !== taskbarElements.TaskbarElement.REFRESH);
|
|
187
188
|
}
|
|
188
|
-
return this.addConfigButton(
|
|
189
|
-
.concat(extraButtons));
|
|
189
|
+
return this.addConfigButton(btnList.concat(extraButtons));
|
|
190
190
|
}
|
|
191
191
|
addConfigButton(buttons) {
|
|
192
192
|
if (this.configName === undefined || (this.configName && this.gridLegacyConfigName)) {
|
|
@@ -197,13 +197,6 @@ const SnkSimpleCrud = class {
|
|
|
197
197
|
get application() {
|
|
198
198
|
return core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
199
199
|
}
|
|
200
|
-
resolveInMemoryBtns(taskbarButtons) {
|
|
201
|
-
const newTaskBarConfig = [...taskbarButtons];
|
|
202
|
-
if (this.mode === constants.SIMPLE_CRUD_MODE.IN_MEMORY) {
|
|
203
|
-
newTaskBarConfig.splice(1, 1);
|
|
204
|
-
}
|
|
205
|
-
return newTaskBarConfig;
|
|
206
|
-
}
|
|
207
200
|
/**
|
|
208
201
|
* @description Usado para alternar a visão entre GRID e FORM externamente.
|
|
209
202
|
* @param {VIEW_MODE} view - A visão para a qual navegar.
|
|
@@ -844,7 +837,7 @@ const SnkSimpleCrud = class {
|
|
|
844
837
|
}
|
|
845
838
|
return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: `ez-box ez-box--no-outline ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section`, ref: (ref) => this._container = ref, tabindex: "0" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { class: "ez-margin-bottom--large ez-box--no-outline", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
|
846
839
|
? undefined
|
|
847
|
-
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(constants.VIEW_MODE.GRID), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(constants.VIEW_MODE.FORM), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName, messagesBuilder: this.messagesBuilder })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._showPopUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
|
840
|
+
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode, canEdit: !this.disableGridEdition }, this.renderTaskbarContent(constants.VIEW_MODE.GRID), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(constants.VIEW_MODE.FORM), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), index.h("slot", { name: "snkSimpleCrudFormFooter" }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName, messagesBuilder: this.messagesBuilder })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._showPopUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
|
848
841
|
}
|
|
849
842
|
get _element() { return index.getElement(this); }
|
|
850
843
|
static get watchers() { return {
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
|
8
|
-
const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
|
|
9
7
|
const index$1 = require('./index-e3e39724.js');
|
|
10
|
-
require('./
|
|
8
|
+
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
|
9
|
+
const taskbarElements = require('./taskbar-elements-8a80420e.js');
|
|
10
|
+
require('./index-f0fe7e6e.js');
|
|
11
11
|
|
|
12
12
|
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex;flex-wrap:wrap}.no-wrap.sc-snk-taskbar-h{flex-wrap:nowrap}.full-width.sc-snk-taskbar-h{width:100%}.align-right.sc-snk-taskbar-h{justify-content:flex-end}.overflowed.sc-snk-taskbar{display:none}";
|
|
13
13
|
|
|
@@ -19,9 +19,11 @@ const SnkTaskbar = class {
|
|
|
19
19
|
this.taskbarSaveUnlocker = index.createEvent(this, "taskbarSaveUnlocker", 7);
|
|
20
20
|
this.TASKBAR_ITEM_ID_PREFIX = 'TASKBAR_ITEM_';
|
|
21
21
|
this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME = 'taskbar-custom-elements-container';
|
|
22
|
-
this.ACTIONS_BUTTON_TAG = 'TASKBAR-ACTIONS-BUTTON';
|
|
23
22
|
this.NOT_OVERFLOW_ELEMENTS = ["moreOptions", "dataExporter_snkDataExporter", "actionsButton_snkActionsButton"];
|
|
24
23
|
this.TASKBAR_CUSTOM_ELEMENTS = 'taskbar-custom-elements-container';
|
|
24
|
+
this.TASKBAR_ADDITIONAL_SLOT_CONTAINER_CLASS_NAME = 'taskbar-additional-slot-container';
|
|
25
|
+
this.TASKBAR_ADDITIONAL_SLOT = 'taskbar-additional-slot-container';
|
|
26
|
+
this._dataUnitInitialized = false;
|
|
25
27
|
this._titleKeyByElement = {
|
|
26
28
|
[taskbarElements.TaskbarElement.UPDATE_MULTIPLE]: "snkTaskbar.titleUpdateMultiple",
|
|
27
29
|
[taskbarElements.TaskbarElement.UPDATE]: "snkTaskbar.titleUpdate",
|
|
@@ -64,6 +66,7 @@ const SnkTaskbar = class {
|
|
|
64
66
|
this._isWaitingForSave = false;
|
|
65
67
|
this.alignRigth = false;
|
|
66
68
|
this.customSlotId = "TASKBAR_CUSTOM_ELEMENTS";
|
|
69
|
+
this.additionalSlotId = "TASKBAR_ADDITIONAL_SLOT";
|
|
67
70
|
this.customContainerId = undefined;
|
|
68
71
|
this.overflowStrategy = 'hiddenItems';
|
|
69
72
|
this.configName = undefined;
|
|
@@ -119,6 +122,17 @@ const SnkTaskbar = class {
|
|
|
119
122
|
this.taskbarSaveUnlocker.emit();
|
|
120
123
|
}
|
|
121
124
|
}
|
|
125
|
+
observeDataUnit(newValue) {
|
|
126
|
+
this.initializeDataUnit(newValue);
|
|
127
|
+
}
|
|
128
|
+
initializeDataUnit(dataUnit) {
|
|
129
|
+
if (!!dataUnit && !this._dataUnitInitialized) {
|
|
130
|
+
this._dataUnitInitialized = true;
|
|
131
|
+
const dataInfo = { dataUnit: this.dataUnit };
|
|
132
|
+
core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
133
|
+
this.dataUnit.subscribe(this.onSaveEvent);
|
|
134
|
+
}
|
|
135
|
+
}
|
|
122
136
|
// Internal methods
|
|
123
137
|
elementsFromString(strButtons) {
|
|
124
138
|
const elements = [];
|
|
@@ -164,45 +178,46 @@ const SnkTaskbar = class {
|
|
|
164
178
|
}
|
|
165
179
|
elementClick(elem) {
|
|
166
180
|
core.LockManager.whenResolve(this._element, core.LockManagerOperation.TASKBAR_CLICK).then(() => {
|
|
167
|
-
if (this.dataUnit) {
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
181
|
+
if (!this.dataUnit) {
|
|
182
|
+
return;
|
|
183
|
+
}
|
|
184
|
+
switch (elem) {
|
|
185
|
+
case taskbarElements.TaskbarElement.PREVIOUS:
|
|
186
|
+
this.dataUnit.previousRecord();
|
|
187
|
+
break;
|
|
188
|
+
case taskbarElements.TaskbarElement.NEXT:
|
|
189
|
+
this.dataUnit.nextRecord();
|
|
190
|
+
break;
|
|
191
|
+
case taskbarElements.TaskbarElement.REFRESH:
|
|
192
|
+
this.dataUnit.loadData();
|
|
193
|
+
break;
|
|
194
|
+
case taskbarElements.TaskbarElement.CLONE:
|
|
195
|
+
this.dataUnit.copySelected();
|
|
196
|
+
break;
|
|
197
|
+
case taskbarElements.TaskbarElement.REMOVE:
|
|
198
|
+
this.dataUnit.removeSelectedRecords();
|
|
199
|
+
break;
|
|
200
|
+
case taskbarElements.TaskbarElement.INSERT:
|
|
201
|
+
this.dataUnit.addRecord();
|
|
202
|
+
break;
|
|
203
|
+
case taskbarElements.TaskbarElement.CANCEL:
|
|
204
|
+
this.dataUnit.cancelEdition();
|
|
205
|
+
break;
|
|
206
|
+
case taskbarElements.TaskbarElement.SAVE:
|
|
207
|
+
if (!this._isWaitingForSave) {
|
|
208
|
+
this._isWaitingForSave = true;
|
|
209
|
+
this.dataUnit.saveData().catch((err) => {
|
|
210
|
+
if (err instanceof core.SilentException) {
|
|
211
|
+
return;
|
|
212
|
+
}
|
|
213
|
+
else {
|
|
214
|
+
throw err;
|
|
215
|
+
}
|
|
216
|
+
}).finally(() => {
|
|
217
|
+
this._isWaitingForSave = false;
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
break;
|
|
206
221
|
}
|
|
207
222
|
if (this.isEnabled(elem))
|
|
208
223
|
this.actionClick.emit(elem);
|
|
@@ -384,7 +399,8 @@ const SnkTaskbar = class {
|
|
|
384
399
|
return (_a = element.getAttribute('data-taskbar-label')) !== null && _a !== void 0 ? _a : "";
|
|
385
400
|
}
|
|
386
401
|
hasToIgnoreOverFlow(element) {
|
|
387
|
-
return element.classList.contains(this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME)
|
|
402
|
+
return element.classList.contains(this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME) ||
|
|
403
|
+
element.classList.contains(this.TASKBAR_ADDITIONAL_SLOT_CONTAINER_CLASS_NAME);
|
|
388
404
|
}
|
|
389
405
|
handleOverFlowStrategy() {
|
|
390
406
|
if (this.overflowStrategy === 'hiddenItems') {
|
|
@@ -400,10 +416,8 @@ const SnkTaskbar = class {
|
|
|
400
416
|
};
|
|
401
417
|
}
|
|
402
418
|
componentDidLoad() {
|
|
403
|
-
|
|
404
|
-
core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
419
|
+
this.initializeDataUnit(this.dataUnit);
|
|
405
420
|
this.handleOverFlowStrategy();
|
|
406
|
-
this.dataUnit.subscribe(this.onSaveEvent);
|
|
407
421
|
}
|
|
408
422
|
componentDidRender() {
|
|
409
423
|
this.appendCustomElementsInTaskbar();
|
|
@@ -430,7 +444,7 @@ const SnkTaskbar = class {
|
|
|
430
444
|
this._slotContainer.appendChild(customElement);
|
|
431
445
|
}
|
|
432
446
|
render() {
|
|
433
|
-
var _a;
|
|
447
|
+
var _a, _b;
|
|
434
448
|
if (this._definitions === undefined) {
|
|
435
449
|
return undefined;
|
|
436
450
|
}
|
|
@@ -450,7 +464,8 @@ const SnkTaskbar = class {
|
|
|
450
464
|
(_b = this._overFlowWatcher) === null || _b === void 0 ? void 0 : _b.addNotOverFlowElement(elem);
|
|
451
465
|
return index.h("slot", { name: elem });
|
|
452
466
|
})), index.h("div", { id: this.TASKBAR_CUSTOM_ELEMENTS, class: this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME }, index.h("slot", { name: this.customSlotId }), (_a = this._overFlowWatcher) === null || _a === void 0 ? void 0 :
|
|
453
|
-
_a.addNotOverFlowElement(this.TASKBAR_CUSTOM_ELEMENTS))))
|
|
467
|
+
_a.addNotOverFlowElement(this.TASKBAR_CUSTOM_ELEMENTS)), index.h("div", { id: this.TASKBAR_ADDITIONAL_SLOT, class: this.TASKBAR_ADDITIONAL_SLOT_CONTAINER_CLASS_NAME }, index.h("slot", { name: this.additionalSlotId }), (_b = this._overFlowWatcher) === null || _b === void 0 ? void 0 :
|
|
468
|
+
_b.addNotOverFlowElement(this.TASKBAR_ADDITIONAL_SLOT))));
|
|
454
469
|
}
|
|
455
470
|
getHostClasses() {
|
|
456
471
|
if (this.overflowStrategy !== 'hiddenItems')
|
|
@@ -462,7 +477,8 @@ const SnkTaskbar = class {
|
|
|
462
477
|
"buttons": ["observeButtons"],
|
|
463
478
|
"disabledButtons": ["observeDisabledButtons"],
|
|
464
479
|
"_lastWidth": ["observeLastWidth"],
|
|
465
|
-
"_isWaitingForSave": ["observeIsWaitingForSave"]
|
|
480
|
+
"_isWaitingForSave": ["observeIsWaitingForSave"],
|
|
481
|
+
"dataUnit": ["observeDataUnit"]
|
|
466
482
|
}; }
|
|
467
483
|
};
|
|
468
484
|
SnkTaskbar.style = snkTaskbarCss;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const index = require('./index-
|
|
3
|
+
const index = require('./index-1894343a.js');
|
|
4
4
|
const index$2 = require('./index-e3e39724.js');
|
|
5
|
-
const index$1 = require('./index-
|
|
5
|
+
const index$1 = require('./index-f0fe7e6e.js');
|
|
6
6
|
|
|
7
7
|
exports.TaskbarElement = void 0;
|
|
8
8
|
(function (TaskbarElement) {
|
|
@@ -11,12 +11,13 @@
|
|
|
11
11
|
"./components/snk-actions-button/subcomponents/snk-client-confirm.js",
|
|
12
12
|
"./components/snk-attach/snk-attach.js",
|
|
13
13
|
"./components/snk-configurator/snk-configurator.js",
|
|
14
|
+
"./components/snk-crud/subcomponents/snk-guides-viewer.js",
|
|
14
15
|
"./components/snk-crud/snk-crud.js",
|
|
15
16
|
"./components/snk-crud/subcomponents/snk-form-summary.js",
|
|
16
17
|
"./components/snk-crud/subcomponents/snk-form-view.js",
|
|
17
|
-
"./components/snk-crud/subcomponents/snk-guides-viewer.js",
|
|
18
18
|
"./components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js",
|
|
19
19
|
"./components/snk-custom-slot-elements/snk-custom-slot-elements.js",
|
|
20
|
+
"./components/snk-custom-slot-guide/snk-custom-slot-guide.js",
|
|
20
21
|
"./components/snk-data-exporter/snk-data-exporter.js",
|
|
21
22
|
"./components/snk-data-exporter/exporter-email-sender/snk-exporter-email-sender.js",
|
|
22
23
|
"./components/snk-entity-list/snk-entity-list.js",
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ElementIDUtils } from "@sankhyalabs/core";
|
|
2
|
+
const executeAdvancedModeSearch = async (argument, options, app, pesquisaFetcher) => {
|
|
3
|
+
const { entity, entityDescription, criteria, searchOptions, isHierarchyEntity, allowsNonAnalytic, executeOnOpen } = options;
|
|
4
|
+
return new Promise((accept, reject) => {
|
|
5
|
+
const pesquisaContent = document.createElement("snk-pesquisa");
|
|
6
|
+
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
|
7
|
+
pesquisaContent.entityName = entity;
|
|
8
|
+
pesquisaContent.argument = argument;
|
|
9
|
+
pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
|
|
10
|
+
pesquisaContent.isHierarchyEntity = isHierarchyEntity;
|
|
11
|
+
if (isHierarchyEntity) {
|
|
12
|
+
pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
|
|
13
|
+
pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
|
|
14
|
+
}
|
|
15
|
+
pesquisaContent.selectItem = (option) => {
|
|
16
|
+
accept(option);
|
|
17
|
+
app.clearPopUpTitle();
|
|
18
|
+
app.closePopUp();
|
|
19
|
+
};
|
|
20
|
+
app.setPopUpTitle(entityDescription);
|
|
21
|
+
app.showPopUp(pesquisaContent, undefined, undefined, reject);
|
|
22
|
+
if (executeOnOpen) {
|
|
23
|
+
pesquisaContent.executeSearch(argument);
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
export default executeAdvancedModeSearch;
|
package/dist/collection/components/snk-application/search-strategy/exec-prepared-search-plus.js
CHANGED
|
@@ -1,32 +1,13 @@
|
|
|
1
|
-
import { ArrayUtils,
|
|
2
|
-
import
|
|
3
|
-
import { StringUtils } from "@sankhyalabs/core";
|
|
1
|
+
import { ArrayUtils, ObjectUtils, SearchUtils, StringUtils } from "@sankhyalabs/core";
|
|
2
|
+
import executeAdvancedModeSearch from "./exec-prepared-search-advaced-mode";
|
|
4
3
|
const QTD_DETAIL_FIELDS_PREDICTIVE_SEARCH = 6;
|
|
5
4
|
const INVALID_CONTENT_PATTERNS = ['<img', '<svg'];
|
|
6
5
|
const executePreparedSearchPlus = async (mode, argument, options, app, pesquisaFetcher) => {
|
|
7
6
|
var _a;
|
|
8
7
|
const mdByName = {};
|
|
9
|
-
const { entity,
|
|
8
|
+
const { entity, criteria, searchOptions } = options;
|
|
10
9
|
if (mode === "ADVANCED") {
|
|
11
|
-
return
|
|
12
|
-
const pesquisaContent = document.createElement("snk-pesquisa");
|
|
13
|
-
pesquisaContent[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME] = `entity_${entity}`;
|
|
14
|
-
pesquisaContent.entityName = entity;
|
|
15
|
-
pesquisaContent.argument = argument;
|
|
16
|
-
pesquisaContent.searchLoader = (text) => pesquisaFetcher.loadAdvancedSearch(entity, text, criteria, searchOptions);
|
|
17
|
-
pesquisaContent.isHierarchyEntity = isHierarchyEntity;
|
|
18
|
-
if (isHierarchyEntity) {
|
|
19
|
-
pesquisaContent.treeLoader = (text) => pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
|
|
20
|
-
pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
|
|
21
|
-
}
|
|
22
|
-
pesquisaContent.selectItem = (option) => {
|
|
23
|
-
accept(option);
|
|
24
|
-
app.clearPopUpTitle();
|
|
25
|
-
app.closePopUp();
|
|
26
|
-
};
|
|
27
|
-
app.setPopUpTitle(entityDescription);
|
|
28
|
-
app.showPopUp(pesquisaContent, undefined, undefined, reject);
|
|
29
|
-
});
|
|
10
|
+
return executeAdvancedModeSearch(argument, options, app, pesquisaFetcher);
|
|
30
11
|
}
|
|
31
12
|
else if (mode === "LOAD_DESCRIPTION") {
|
|
32
13
|
let result = await pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
|
|
@@ -63,14 +44,13 @@ const buildOptionItem = (argument, item, fields, descriptionField, pkField) => {
|
|
|
63
44
|
const matchFields = item['__matchFields'];
|
|
64
45
|
const descriptionValue = (_a = item[descriptionField]) !== null && _a !== void 0 ? _a : "";
|
|
65
46
|
const pkValue = item[pkField];
|
|
66
|
-
|
|
47
|
+
return {
|
|
67
48
|
value: pkValue,
|
|
68
49
|
label: descriptionValue,
|
|
69
50
|
presentationValue: StringUtils.highlightValue(argument, matchFields, pkValue, fields, true),
|
|
70
51
|
presentationLabel: descriptionField ? StringUtils.highlightValue(argument, matchFields, descriptionValue, fields, true) : "",
|
|
71
52
|
details: SearchUtils.buildDetails(argument, fields, item)
|
|
72
53
|
};
|
|
73
|
-
return searchOption;
|
|
74
54
|
};
|
|
75
55
|
const filterInvalidFields = (resp, item, mdByName) => {
|
|
76
56
|
let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
|
|
@@ -20,6 +20,7 @@ import { TEMPLATES_SKELETON } from "../../lib/utils/constants";
|
|
|
20
20
|
import executePreparedSearchPlus from "./search-strategy/exec-prepared-search-plus";
|
|
21
21
|
import { LayoutFormConfig } from "../../lib/configs/LayoutFormConfig";
|
|
22
22
|
import { FormConfigFetcher } from "../../lib";
|
|
23
|
+
import executeAdvancedModeSearch from "./search-strategy/exec-prepared-search-advaced-mode";
|
|
23
24
|
/**
|
|
24
25
|
* É possível customizar as mensagens dos blocos de construção através de um pequeno modulo na estrutura da aplicação:
|
|
25
26
|
* - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
|
|
@@ -284,6 +285,7 @@ export class SnkApplication {
|
|
|
284
285
|
this._popUp.opened = true;
|
|
285
286
|
this._popUp.heightMode = size;
|
|
286
287
|
this._popUp.useHeader = useHeader;
|
|
288
|
+
this._popUp.autoClose = false;
|
|
287
289
|
if (content.tagName === 'EZ-MODAL-CONTAINER') {
|
|
288
290
|
this._popUp.useHeader = false;
|
|
289
291
|
}
|
|
@@ -394,7 +396,7 @@ export class SnkApplication {
|
|
|
394
396
|
if (this._featureFlagsCache.get(featureName) && now < this._featureFlagsCache.get(featureName).expires) {
|
|
395
397
|
return Promise.resolve(this._featureFlagsCache.get(featureName).isActive);
|
|
396
398
|
}
|
|
397
|
-
//Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
|
|
399
|
+
//Caso ocorra um erro nessa chamada, o reject do error é feito automaticamente
|
|
398
400
|
const result = await DataFetcher.get().callServiceBroker("SystemUtilsSP.featureIsActive", JSON.stringify(payload));
|
|
399
401
|
const isActive = result.isActive;
|
|
400
402
|
this._featureFlagsCache.set(featureName, {
|
|
@@ -886,53 +888,75 @@ export class SnkApplication {
|
|
|
886
888
|
* @async
|
|
887
889
|
*/
|
|
888
890
|
async executePreparedSearch(mode, argument, options) {
|
|
891
|
+
var _a;
|
|
889
892
|
const mdByName = {};
|
|
890
|
-
const { entity,
|
|
893
|
+
const { entity, criteria, searchOptions, useSearchPlus } = options;
|
|
891
894
|
if (useSearchPlus) {
|
|
892
895
|
return executePreparedSearchPlus(mode, argument, options, this, this.pesquisaFetcher);
|
|
893
896
|
}
|
|
894
|
-
if (mode === "
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
pesquisaContent.treeLoader = (text) => this.pesquisaFetcher.loadTree(entity, text, criteria, searchOptions);
|
|
904
|
-
pesquisaContent.allowsNonAnalytic = allowsNonAnalytic;
|
|
905
|
-
}
|
|
906
|
-
pesquisaContent.selectItem = (option) => {
|
|
907
|
-
accept(option);
|
|
908
|
-
this.clearPopUpTitle();
|
|
909
|
-
this.closePopUp();
|
|
897
|
+
if (mode === "LOAD_DESCRIPTION") {
|
|
898
|
+
let result = await this.pesquisaFetcher.loadByCode(entity, argument, criteria, searchOptions);
|
|
899
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
|
900
|
+
let descriptionField = result.descriptionField;
|
|
901
|
+
const option = (_a = result.data) === null || _a === void 0 ? void 0 : _a[0];
|
|
902
|
+
if (!option) {
|
|
903
|
+
return {
|
|
904
|
+
value: argument,
|
|
905
|
+
label: ""
|
|
910
906
|
};
|
|
911
|
-
|
|
912
|
-
|
|
913
|
-
|
|
907
|
+
}
|
|
908
|
+
return {
|
|
909
|
+
value: argument,
|
|
910
|
+
label: option[descriptionField]
|
|
911
|
+
};
|
|
914
912
|
}
|
|
915
|
-
else {
|
|
916
|
-
return
|
|
917
|
-
this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
|
|
918
|
-
.then(result => {
|
|
919
|
-
result = ObjectUtils.stringToObject(result.json.$);
|
|
920
|
-
let descriptionField = result.descriptionField;
|
|
921
|
-
let pkField = result.pkField;
|
|
922
|
-
const list = [];
|
|
923
|
-
result.data.forEach((item) => {
|
|
924
|
-
let fieldsMetadata = this.filterInvalidFields(result, item, mdByName);
|
|
925
|
-
let qtyFields = 6;
|
|
926
|
-
let fields = this.filterMathFields(item['__matchFields'], fieldsMetadata, qtyFields, mdByName);
|
|
927
|
-
list.push(this.builOptionItem(argument, item, fields, descriptionField, pkField));
|
|
928
|
-
});
|
|
929
|
-
resolve(list);
|
|
930
|
-
})
|
|
931
|
-
.catch(error => {
|
|
932
|
-
reject(error);
|
|
933
|
-
});
|
|
934
|
-
});
|
|
913
|
+
else if (mode === "ADVANCED") {
|
|
914
|
+
return executeAdvancedModeSearch(argument, options, this, this.pesquisaFetcher);
|
|
935
915
|
}
|
|
916
|
+
return new Promise((resolve, reject) => {
|
|
917
|
+
this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
|
|
918
|
+
.then(result => {
|
|
919
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
|
920
|
+
resolve(this.buildSearchResultList(result, mdByName, argument));
|
|
921
|
+
})
|
|
922
|
+
.catch(error => {
|
|
923
|
+
reject(error);
|
|
924
|
+
});
|
|
925
|
+
});
|
|
926
|
+
}
|
|
927
|
+
/**
|
|
928
|
+
* Obtém as opções em componentes de pesquisa além dos metadados como showMore e entityPk.
|
|
929
|
+
* @param {string} argument - O argumento da pesquisa.
|
|
930
|
+
* @param {any} options - Opções preparadas para a pesquisa.
|
|
931
|
+
* @returns {Promise<Array<IOption> | IOption>} Uma lista de opções ou uma única opção.
|
|
932
|
+
* @async
|
|
933
|
+
*/
|
|
934
|
+
async executePreparedSearchWithFullResponse(argument, options) {
|
|
935
|
+
const mdByName = {};
|
|
936
|
+
const { entity, criteria, searchOptions } = options;
|
|
937
|
+
return new Promise((resolve, reject) => {
|
|
938
|
+
this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
|
|
939
|
+
.then(result => {
|
|
940
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
|
941
|
+
result.data = this.buildSearchResultList(result, mdByName, argument);
|
|
942
|
+
resolve(result);
|
|
943
|
+
})
|
|
944
|
+
.catch(error => {
|
|
945
|
+
reject(error);
|
|
946
|
+
});
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
buildSearchResultList(result, mdByName, argument) {
|
|
950
|
+
let descriptionField = result.descriptionField;
|
|
951
|
+
let pkField = result.pkField;
|
|
952
|
+
const list = [];
|
|
953
|
+
result.data.forEach((item) => {
|
|
954
|
+
let fieldsMetadata = this.filterInvalidFields(result, item, mdByName);
|
|
955
|
+
let qtyFields = 6;
|
|
956
|
+
let fields = this.filterMathFields(item['__matchFields'], fieldsMetadata, qtyFields, mdByName);
|
|
957
|
+
list.push(this.builOptionItem(argument, item, fields, descriptionField, pkField));
|
|
958
|
+
});
|
|
959
|
+
return list;
|
|
936
960
|
}
|
|
937
961
|
/**
|
|
938
962
|
* Obtém `true` caso a tela esteja em modo de debug.
|
|
@@ -3477,9 +3501,6 @@ export class SnkApplication {
|
|
|
3477
3501
|
},
|
|
3478
3502
|
"Array": {
|
|
3479
3503
|
"location": "global"
|
|
3480
|
-
},
|
|
3481
|
-
"HTMLSnkPesquisaElement": {
|
|
3482
|
-
"location": "global"
|
|
3483
3504
|
}
|
|
3484
3505
|
},
|
|
3485
3506
|
"return": "Promise<IOption | IOption[]>"
|
|
@@ -3504,6 +3525,46 @@ export class SnkApplication {
|
|
|
3504
3525
|
}]
|
|
3505
3526
|
}
|
|
3506
3527
|
},
|
|
3528
|
+
"executePreparedSearchWithFullResponse": {
|
|
3529
|
+
"complexType": {
|
|
3530
|
+
"signature": "(argument: string, options: any) => Promise<any>",
|
|
3531
|
+
"parameters": [{
|
|
3532
|
+
"tags": [{
|
|
3533
|
+
"name": "param",
|
|
3534
|
+
"text": "argument - O argumento da pesquisa."
|
|
3535
|
+
}],
|
|
3536
|
+
"text": "- O argumento da pesquisa."
|
|
3537
|
+
}, {
|
|
3538
|
+
"tags": [{
|
|
3539
|
+
"name": "param",
|
|
3540
|
+
"text": "options - Op\u00E7\u00F5es preparadas para a pesquisa."
|
|
3541
|
+
}],
|
|
3542
|
+
"text": "- Op\u00E7\u00F5es preparadas para a pesquisa."
|
|
3543
|
+
}],
|
|
3544
|
+
"references": {
|
|
3545
|
+
"Promise": {
|
|
3546
|
+
"location": "global"
|
|
3547
|
+
}
|
|
3548
|
+
},
|
|
3549
|
+
"return": "Promise<any>"
|
|
3550
|
+
},
|
|
3551
|
+
"docs": {
|
|
3552
|
+
"text": "Obt\u00E9m as op\u00E7\u00F5es em componentes de pesquisa al\u00E9m dos metadados como showMore e entityPk.",
|
|
3553
|
+
"tags": [{
|
|
3554
|
+
"name": "param",
|
|
3555
|
+
"text": "argument - O argumento da pesquisa."
|
|
3556
|
+
}, {
|
|
3557
|
+
"name": "param",
|
|
3558
|
+
"text": "options - Op\u00E7\u00F5es preparadas para a pesquisa."
|
|
3559
|
+
}, {
|
|
3560
|
+
"name": "returns",
|
|
3561
|
+
"text": "Uma lista de op\u00E7\u00F5es ou uma \u00FAnica op\u00E7\u00E3o."
|
|
3562
|
+
}, {
|
|
3563
|
+
"name": "async",
|
|
3564
|
+
"text": undefined
|
|
3565
|
+
}]
|
|
3566
|
+
}
|
|
3567
|
+
},
|
|
3507
3568
|
"isDebugMode": {
|
|
3508
3569
|
"complexType": {
|
|
3509
3570
|
"signature": "() => Promise<boolean>",
|