@sankhyalabs/sankhyablocks 10.1.0-dev.3 → 10.1.0-dev.30
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-b29e31be.js → ConfigStorage-d9d24844.js} +2 -2
- package/dist/cjs/{DataFetcher-ed9d97ea.js → DataFetcher-3a8ea521.js} +2 -2733
- package/dist/cjs/{FormConfigHelper-ebb77625.js → FormConfigHelper-28fe4668.js} +44 -0
- package/dist/cjs/{ISave-81eb2fbc.js → ISave-a66bb65e.js} +1 -1
- package/dist/cjs/ImageUtils-5e3f406b.js +142 -0
- package/dist/cjs/{PersonalizedFilterUtils-7259cf65.js → PersonalizedFilterUtils-eccb267a.js} +13 -0
- package/dist/cjs/{SnkFormConfigManager-6838389c.js → SnkFormConfigManager-c88cf1e9.js} +7 -7
- package/dist/cjs/SnkMessageBuilder-d9558dba.js +2809 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-1e804147.js → SnkMultiSelectionListDataSource-a891430e.js} +5 -5
- package/dist/cjs/{auth-fetcher-cc28d847.js → auth-fetcher-faa61f64.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-ab1cc071.js → dataunit-fetcher-4320f7ec.js} +3 -2
- 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-f0897eb5.js → form-config-fetcher-72cf0e3d.js} +1 -1
- package/dist/cjs/guides-configurator.cjs.entry.js +6 -4
- package/dist/cjs/{index-1cf293c1.js → index-1894343a.js} +1525 -173
- 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 +6 -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 → snk-actions-button_8.cjs.entry.js} +20 -61
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +29 -9
- package/dist/cjs/snk-attach.cjs.entry.js +10 -9
- 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 +18 -10
- 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 +7 -6
- package/dist/cjs/{snk-data-unit-68992932.js → snk-data-unit-b54fdf9a.js} +21 -12
- package/dist/cjs/snk-data-unit.cjs.entry.js +5 -4
- package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +18 -14
- 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 +59 -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 +3 -3
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +5 -4
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +11 -7
- package/dist/cjs/snk-filter-period.cjs.entry.js +14 -7
- 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 +73 -8
- package/dist/cjs/snk-form_2.cjs.entry.js +34 -10
- package/dist/cjs/snk-grid.cjs.entry.js +30 -19
- package/dist/cjs/{snk-guides-viewer-8b841753.js → snk-guides-viewer-58185ae3.js} +91 -42
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +11 -10
- package/dist/cjs/snk-image-input.cjs.entry.js +148 -0
- package/dist/cjs/snk-layout-form-config.cjs.entry.js +72 -0
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +7 -6
- package/dist/cjs/snk-pesquisa.cjs.entry.js +6 -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 +15 -21
- package/dist/cjs/snk-taskbar.cjs.entry.js +59 -47
- package/dist/cjs/{taskbar-elements-fb5d1e08.js → taskbar-elements-a94d4318.js} +6 -5
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +8 -1
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -0
- package/dist/collection/components/snk-application/snk-application.js +20 -2
- package/dist/collection/components/snk-attach/snk-attach.js +1 -1
- package/dist/collection/components/snk-crud/snk-crud.js +48 -3
- package/dist/collection/components/snk-crud/subcomponents/GuideBuilder.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +4 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +93 -8
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +138 -36
- 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 +13 -9
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +14 -7
- 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-detail.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 +22 -12
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +12 -4
- package/dist/collection/components/snk-image-input/snk-image-input.css +3 -0
- package/dist/collection/components/snk-image-input/snk-image-input.js +326 -0
- package/dist/collection/components/snk-image-input/utils/ImageUtils.js +133 -0
- package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +1 -1
- package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +1 -1
- 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.js +0 -4
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +23 -12
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +4 -3
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +58 -44
- package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
- package/dist/collection/lib/message/messageResourceEnUSUtils.js +2 -0
- package/dist/collection/lib/message/messageResourceEsESUtils.js +2 -0
- package/dist/collection/lib/message/messageResourcePtBRUtils.js +2 -0
- package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +1 -1
- package/dist/collection/lib/message/resources/en-us/snk-form.msg.js +7 -0
- package/dist/collection/lib/message/resources/en-us/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/en-us/snk-layout-form-config.msg.js +10 -2
- package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +1 -1
- package/dist/collection/lib/message/resources/es-es/snk-form.msg.js +7 -0
- package/dist/collection/lib/message/resources/es-es/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/es-es/snk-layout-form-config.msg.js +8 -0
- package/dist/collection/lib/message/resources/pt-br/snk-configurator.msg.js +1 -1
- package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +1 -1
- package/dist/collection/lib/message/resources/pt-br/snk-form.msg.js +8 -1
- package/dist/collection/lib/message/resources/pt-br/snk-image-input.msg.js +11 -0
- package/dist/collection/lib/message/resources/pt-br/snk-layout-form-config.msg.js +10 -2
- package/dist/components/DataFetcher.js +3 -2713
- package/dist/components/PersonalizedFilterUtils.js +13 -0
- package/dist/components/SnkFormConfigManager.js +6 -6
- package/dist/components/SnkMessageBuilder.js +2807 -0
- package/dist/components/dataunit-fetcher.js +2 -1
- 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 +2 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index2.js +90 -21
- package/dist/components/snk-application2.js +22 -2
- package/dist/components/snk-attach2.js +3 -2
- package/dist/components/snk-crud.js +79 -65
- 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 +10 -1
- package/dist/components/snk-detail-view2.js +186 -121
- package/dist/components/snk-filter-bar2.js +30 -13
- package/dist/components/snk-filter-detail2.js +1 -1
- 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 +12 -8
- package/dist/components/snk-filter-period.js +13 -6
- package/dist/components/snk-filter-text.js +1 -1
- package/dist/components/snk-form-config2.js +29 -5
- package/dist/components/snk-form-view2.js +82 -10
- package/dist/components/snk-grid-config2.js +12 -4
- package/dist/components/snk-grid2.js +22 -11
- package/dist/components/snk-image-input.d.ts +11 -0
- package/dist/components/snk-image-input.js +6 -0
- package/dist/components/snk-image-input2.js +302 -0
- package/dist/components/snk-layout-form-config2.js +1 -1
- package/dist/components/snk-pesquisa2.js +0 -1
- package/dist/components/snk-simple-crud2.js +6 -12
- package/dist/components/snk-taskbar2.js +61 -48
- package/dist/components/snk-view-representation2.js +1 -1
- package/dist/esm/{ConfigStorage-13d80e36.js → ConfigStorage-d15d2014.js} +2 -2
- package/dist/esm/{DataFetcher-f4ccd9f3.js → DataFetcher-1dd7e8c0.js} +3 -2713
- package/dist/esm/{FormConfigHelper-4e42f0b6.js → FormConfigHelper-d09669f3.js} +43 -1
- package/dist/esm/{ISave-288fa9df.js → ISave-498c4831.js} +1 -1
- package/dist/esm/ImageUtils-8fc8d905.js +136 -0
- package/dist/esm/{PersonalizedFilterUtils-2db38ff2.js → PersonalizedFilterUtils-d2439a9a.js} +13 -0
- package/dist/esm/{SnkFormConfigManager-3ee2937b.js → SnkFormConfigManager-86befa68.js} +7 -7
- package/dist/esm/SnkMessageBuilder-c0bc4424.js +2807 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-5d3a93f2.js → SnkMultiSelectionListDataSource-14633bf6.js} +5 -5
- package/dist/esm/{auth-fetcher-59ab0c67.js → auth-fetcher-69cbda8d.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-c4f9f222.js → dataunit-fetcher-3d5c4ae4.js} +2 -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-6a00fe9e.js → form-config-fetcher-fcc7b62f.js} +1 -1
- package/dist/esm/guides-configurator.entry.js +6 -4
- package/dist/esm/{index-479e1293.js → index-04f73a26.js} +1517 -173
- 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 +6 -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 → snk-actions-button_8.entry.js} +21 -61
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +28 -8
- package/dist/esm/snk-attach.entry.js +9 -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 +18 -10
- 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 +7 -6
- package/dist/esm/{snk-data-unit-0edeb967.js → snk-data-unit-363c3551.js} +12 -3
- package/dist/esm/snk-data-unit.entry.js +5 -4
- package/dist/esm/snk-default-filter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +16 -12
- 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 +59 -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 +3 -3
- package/dist/esm/snk-filter-field-search_2.entry.js +2 -2
- package/dist/esm/snk-filter-modal-item.entry.js +5 -4
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +11 -7
- package/dist/esm/snk-filter-period.entry.js +14 -7
- 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 +74 -9
- package/dist/esm/snk-form_2.entry.js +34 -10
- package/dist/esm/snk-grid.entry.js +30 -19
- package/dist/esm/{snk-guides-viewer-9cd4d20f.js → snk-guides-viewer-6a72a3f4.js} +91 -42
- package/dist/esm/snk-guides-viewer.entry.js +11 -10
- package/dist/esm/snk-image-input.entry.js +144 -0
- package/dist/esm/snk-layout-form-config.entry.js +68 -0
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +7 -6
- package/dist/esm/snk-pesquisa.entry.js +6 -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 +15 -21
- package/dist/esm/snk-taskbar.entry.js +60 -48
- package/dist/esm/{taskbar-elements-faaf5d8f.js → taskbar-elements-97541bdd.js} +6 -5
- 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-10cad767.entry.js +1 -0
- package/dist/sankhyablocks/{p-162bddae.entry.js → p-175c9576.entry.js} +1 -1
- package/dist/sankhyablocks/p-18cc9111.entry.js +1 -0
- package/dist/sankhyablocks/p-1df34264.entry.js +11 -0
- package/dist/sankhyablocks/p-27d6590e.js +1 -0
- package/dist/sankhyablocks/{p-c4fcf1fb.entry.js → p-27e0cd68.entry.js} +1 -1
- package/dist/sankhyablocks/p-2a356340.entry.js +1 -0
- package/dist/sankhyablocks/{p-9a63f3f7.entry.js → p-2b882835.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-f15478a1.js → p-2ccbbeec.js} +1 -1
- package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
- package/dist/sankhyablocks/p-2ee83af1.entry.js +1 -0
- package/dist/sankhyablocks/p-30641d55.entry.js +1 -0
- package/dist/sankhyablocks/{p-53599b26.js → p-32ad76cc.js} +1 -1
- package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
- package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-438a225f.entry.js} +1 -1
- package/dist/sankhyablocks/p-45f53520.entry.js +1 -0
- package/dist/sankhyablocks/p-48762fe9.js +1 -0
- package/dist/sankhyablocks/p-48c580b9.entry.js +1 -0
- package/dist/sankhyablocks/p-4ff3b494.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-685bc841.js +60 -0
- package/dist/sankhyablocks/p-68c1a093.js +1 -0
- package/dist/sankhyablocks/{p-7b3ca294.entry.js → p-7150eacf.entry.js} +1 -1
- package/dist/sankhyablocks/p-72d62f22.js +1 -0
- package/dist/sankhyablocks/{p-825098c1.entry.js → p-752c57f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e258de96.entry.js → p-76729994.entry.js} +1 -1
- package/dist/sankhyablocks/p-7c4f4851.js +1 -0
- package/dist/sankhyablocks/p-7cede5db.entry.js +1 -0
- package/dist/sankhyablocks/p-7e9f8fa4.js +1 -0
- 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-78ff8734.js → p-9114e869.js} +1 -1
- package/dist/sankhyablocks/{p-21107f0d.entry.js → p-9c1ff75e.entry.js} +1 -1
- package/dist/sankhyablocks/p-9ce1539b.entry.js +1 -0
- package/dist/sankhyablocks/{p-2fdac5e6.entry.js → p-9e109f5e.entry.js} +1 -1
- package/dist/sankhyablocks/p-a210e55b.entry.js +1 -0
- package/dist/sankhyablocks/p-a2a9f520.entry.js +1 -0
- package/dist/sankhyablocks/p-a46ac091.js +1 -0
- package/dist/sankhyablocks/p-a73b6b00.js +1 -0
- package/dist/sankhyablocks/{p-9317942f.js → p-a9839628.js} +1 -1
- package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
- package/dist/sankhyablocks/p-b25777fa.entry.js +1 -0
- package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
- package/dist/sankhyablocks/p-bdf0077f.js +1 -0
- package/dist/sankhyablocks/p-c3ec6642.js +19 -0
- package/dist/sankhyablocks/p-c6a97fda.entry.js +1 -0
- package/dist/sankhyablocks/{p-91a9abb6.entry.js → p-c8043a53.entry.js} +1 -1
- package/dist/sankhyablocks/p-c860552e.entry.js +1 -0
- package/dist/sankhyablocks/{p-c3dbf441.entry.js → p-cc64239c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-471b34f4.entry.js → p-cd00a3d1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-4c763b10.entry.js → p-d657f71f.entry.js} +1 -1
- package/dist/sankhyablocks/p-d70de708.entry.js +1 -0
- package/dist/sankhyablocks/p-da455c82.js +12 -0
- package/dist/sankhyablocks/{p-1c2971e4.js → p-e0a6818c.js} +1 -1
- package/dist/sankhyablocks/p-e0e3914e.entry.js +1 -0
- package/dist/sankhyablocks/p-e30acdca.entry.js +1 -0
- package/dist/sankhyablocks/p-ebce5394.entry.js +1 -0
- package/dist/sankhyablocks/p-ee56dda6.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-f4ac3b50.entry.js +1 -0
- package/dist/sankhyablocks/{p-7e250432.entry.js → p-f7170e10.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7345782c.entry.js → p-f921270b.entry.js} +1 -1
- package/dist/sankhyablocks/p-fc5e95f4.entry.js +1 -0
- package/dist/sankhyablocks/p-fce86770.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +1 -1
- package/dist/types/components/snk-crud/snk-crud.d.ts +10 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +12 -0
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +24 -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-number.d.ts +1 -1
- 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 +2 -0
- package/dist/types/components/snk-image-input/snk-image-input.d.ts +56 -0
- package/dist/types/components/snk-image-input/utils/ImageUtils.d.ts +15 -0
- package/dist/types/components/snk-personalized-filter/interfaces/IParameter.d.ts +1 -0
- package/dist/types/components/snk-pesquisa/snk-pesquisa.d.ts +0 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -1
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +6 -3
- package/dist/types/components.d.ts +164 -1
- package/dist/types/lib/message/resources/en-us/snk-image-input.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/es-es/snk-image-input.msg.d.ts +1 -0
- package/dist/types/lib/message/resources/pt-br/snk-image-input.msg.d.ts +1 -0
- package/package.json +1 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/sankhyablocks/p-093f58fa.entry.js +0 -1
- package/dist/sankhyablocks/p-0e279e7a.js +0 -1
- package/dist/sankhyablocks/p-11346b8d.entry.js +0 -1
- package/dist/sankhyablocks/p-1858c023.entry.js +0 -1
- package/dist/sankhyablocks/p-26e0f63c.entry.js +0 -1
- package/dist/sankhyablocks/p-34df7eca.entry.js +0 -1
- package/dist/sankhyablocks/p-34f447ba.entry.js +0 -1
- package/dist/sankhyablocks/p-38e56b68.entry.js +0 -1
- package/dist/sankhyablocks/p-3abeeefa.entry.js +0 -1
- package/dist/sankhyablocks/p-3d021bef.entry.js +0 -1
- package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-44939a0e.entry.js +0 -1
- package/dist/sankhyablocks/p-5304753a.js +0 -60
- package/dist/sankhyablocks/p-557368df.entry.js +0 -1
- package/dist/sankhyablocks/p-55798617.js +0 -1
- package/dist/sankhyablocks/p-583151c5.entry.js +0 -1
- package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
- package/dist/sankhyablocks/p-6180de07.entry.js +0 -1
- package/dist/sankhyablocks/p-80014119.entry.js +0 -1
- package/dist/sankhyablocks/p-8a88690f.entry.js +0 -1
- package/dist/sankhyablocks/p-8f73da95.js +0 -1
- package/dist/sankhyablocks/p-988afe78.js +0 -1
- package/dist/sankhyablocks/p-a2ed1ebd.entry.js +0 -1
- package/dist/sankhyablocks/p-a5108625.entry.js +0 -1
- package/dist/sankhyablocks/p-a644a956.js +0 -1
- package/dist/sankhyablocks/p-ae108ffd.entry.js +0 -11
- package/dist/sankhyablocks/p-b4322b87.entry.js +0 -1
- package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
- package/dist/sankhyablocks/p-b987e15d.js +0 -1
- package/dist/sankhyablocks/p-bb2f5f38.js +0 -1
- package/dist/sankhyablocks/p-d8d8169b.js +0 -2
- package/dist/sankhyablocks/p-d9c54991.js +0 -1
- package/dist/sankhyablocks/p-e9021f79.entry.js +0 -1
- package/dist/sankhyablocks/p-f8f29e1a.entry.js +0 -1
|
@@ -0,0 +1,148 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-d9558dba.js');
|
|
8
|
+
const ImageUtils = require('./ImageUtils-5e3f406b.js');
|
|
9
|
+
|
|
10
|
+
const snkImageInputCss = ":host{display:block}";
|
|
11
|
+
|
|
12
|
+
const SnkImageInput = class {
|
|
13
|
+
constructor(hostRef) {
|
|
14
|
+
index.registerInstance(this, hostRef);
|
|
15
|
+
this.imageError = index.createEvent(this, "imageError", 7);
|
|
16
|
+
this.dataUnitObserver = async (action) => {
|
|
17
|
+
var _a;
|
|
18
|
+
const actionsMoveSelection = [core.Action.NEXT_SELECTED, core.Action.PREVIOUS_SELECTED];
|
|
19
|
+
if (actionsMoveSelection.includes(action.type)) {
|
|
20
|
+
await this.loadImage();
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const selection = ((_a = action.payload) === null || _a === void 0 ? void 0 : _a.selection) || [];
|
|
24
|
+
if (action.type === core.Action.SELECTION_CHANGED && selection.length > 0) {
|
|
25
|
+
await this.loadImage();
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
if (action.type === core.Action.RECORDS_ADDED) {
|
|
29
|
+
await this.clearImage();
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
this.dataUnit = undefined;
|
|
34
|
+
this.fieldName = undefined;
|
|
35
|
+
this.entityName = undefined;
|
|
36
|
+
this.enabled = true;
|
|
37
|
+
this.acceptType = undefined;
|
|
38
|
+
this.maxSize = undefined;
|
|
39
|
+
this.label = undefined;
|
|
40
|
+
this.imageValue = undefined;
|
|
41
|
+
this.loading = true;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Força o reload da imagem
|
|
45
|
+
*/
|
|
46
|
+
async reloadImage(pks) {
|
|
47
|
+
await this.loadImage(pks);
|
|
48
|
+
}
|
|
49
|
+
getMessage(key, params) {
|
|
50
|
+
if (!this.messagesBuilder) {
|
|
51
|
+
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder();
|
|
52
|
+
}
|
|
53
|
+
return this.messagesBuilder.getMessage(key, params);
|
|
54
|
+
}
|
|
55
|
+
async clearImage() {
|
|
56
|
+
this.imageValue = undefined;
|
|
57
|
+
}
|
|
58
|
+
async handleImageChange(event) {
|
|
59
|
+
const base64 = event.detail;
|
|
60
|
+
if (!base64) {
|
|
61
|
+
await this.clearImage();
|
|
62
|
+
await this.updatedataUnitField(true);
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
const blob = await ImageUtils.base64ToBlob(base64);
|
|
66
|
+
if (this.maxSize && blob.size > this.maxSize * 1024) {
|
|
67
|
+
const errorMsg = this.getMessage('snkImageInput.errorImageSize') + this.maxSize + '(KB)';
|
|
68
|
+
this.imageError.emit(errorMsg);
|
|
69
|
+
if (this.application) {
|
|
70
|
+
await this.application.error(this.getMessage('snkImageInput.errorTitle'), errorMsg);
|
|
71
|
+
}
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
this.imageValue = base64;
|
|
75
|
+
await ImageUtils.sessionFileUpload(blob, this.entityName, this.fieldName);
|
|
76
|
+
await this.updatedataUnitField();
|
|
77
|
+
}
|
|
78
|
+
async updatedataUnitField(deleted = false) {
|
|
79
|
+
if (!this.dataUnit || !this.dataUnit.getSelectedRecord()) {
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
if (deleted) {
|
|
83
|
+
await this.dataUnit.setFieldValue(this.fieldName, 'deletado');
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
await this.dataUnit.setFieldValue(this.fieldName, `$file.session.key{${ImageUtils.buildFileKey(this.entityName, this.fieldName)}}`);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
async handleImageError(event) {
|
|
90
|
+
this.imageError.emit(event.detail);
|
|
91
|
+
if (this.application) {
|
|
92
|
+
await this.application.error(this.getMessage('snkImageInput.errorTitle'), event.detail);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
getPksFromDataUnit() {
|
|
96
|
+
if (!this.dataUnit) {
|
|
97
|
+
return undefined;
|
|
98
|
+
}
|
|
99
|
+
const selectedRecord = this.dataUnit.getSelectedRecord();
|
|
100
|
+
if (!selectedRecord) {
|
|
101
|
+
return undefined;
|
|
102
|
+
}
|
|
103
|
+
const fieldValue = selectedRecord[this.fieldName];
|
|
104
|
+
if (!fieldValue) {
|
|
105
|
+
return undefined;
|
|
106
|
+
}
|
|
107
|
+
try {
|
|
108
|
+
const pk = JSON.parse(fieldValue);
|
|
109
|
+
return pk;
|
|
110
|
+
}
|
|
111
|
+
catch (error) {
|
|
112
|
+
console.error('Error parsing PK from data unit field:', error);
|
|
113
|
+
return undefined;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
async loadImage(pks) {
|
|
117
|
+
var _a;
|
|
118
|
+
this.loading = true;
|
|
119
|
+
if (this.dataUnit && this.entityName) {
|
|
120
|
+
pks = (_a = pks !== null && pks !== void 0 ? pks : this.getPksFromDataUnit()) !== null && _a !== void 0 ? _a : ImageUtils.getPKs(this.dataUnit);
|
|
121
|
+
this.imageValue = await ImageUtils.downloadImage(pks, this.fieldName, this.entityName);
|
|
122
|
+
}
|
|
123
|
+
this.loading = false;
|
|
124
|
+
}
|
|
125
|
+
async componentWillLoad() {
|
|
126
|
+
this.application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
127
|
+
if (!this.messagesBuilder) {
|
|
128
|
+
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder();
|
|
129
|
+
}
|
|
130
|
+
if (this.dataUnit) {
|
|
131
|
+
this.dataUnit.subscribe(this.dataUnitObserver);
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
disconnectedCallback() {
|
|
135
|
+
if (this.dataUnit) {
|
|
136
|
+
this.dataUnit.unsubscribe(this.dataUnitObserver);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
async componentDidLoad() {
|
|
140
|
+
await this.loadImage();
|
|
141
|
+
}
|
|
142
|
+
render() {
|
|
143
|
+
return (index.h(index.Host, null, index.h("ez-image-input", { enabled: this.enabled, label: this.label, name: this.fieldName, value: this.imageValue, maxFileSize: this.maxSize ? this.maxSize * 1024 : undefined, accept: this.acceptType || 'image/png,image/jpeg,image/gif', onEzChange: (e) => this.handleImageChange(e), onEzError: (e) => this.handleImageError(e), loading: this.loading })));
|
|
144
|
+
}
|
|
145
|
+
};
|
|
146
|
+
SnkImageInput.style = snkImageInputCss;
|
|
147
|
+
|
|
148
|
+
exports.snk_image_input = SnkImageInput;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-1894343a.js');
|
|
6
|
+
require('./DataFetcher-3a8ea521.js');
|
|
7
|
+
require('./ISave-a66bb65e.js');
|
|
8
|
+
const core = require('@sankhyalabs/core');
|
|
9
|
+
require('./index-e3e39724.js');
|
|
10
|
+
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
|
+
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
+
require('./dataunit-fetcher-4320f7ec.js');
|
|
13
|
+
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
+
const formConfigFetcher = require('./form-config-fetcher-72cf0e3d.js');
|
|
15
|
+
require('./constants-6d82e405.js');
|
|
16
|
+
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
17
|
+
require('./PrintUtils-bcaeb82f.js');
|
|
18
|
+
require('./SnkMessageBuilder-d9558dba.js');
|
|
19
|
+
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
20
|
+
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
21
|
+
require('./ResourceIDUtils-5ff86aa7.js');
|
|
22
|
+
|
|
23
|
+
const snkLayoutFormConfigCss = ".sc-snk-layout-form-config-h{display:block}";
|
|
24
|
+
|
|
25
|
+
const FORM_COL_CONFIG_PREFIX = 'formColCfg.';
|
|
26
|
+
const SnkLayoutFormConfig = class {
|
|
27
|
+
constructor(hostRef) {
|
|
28
|
+
index.registerInstance(this, hostRef);
|
|
29
|
+
this._formConfigFetcher = new formConfigFetcher.FormConfigFetcher();
|
|
30
|
+
this.messagesBuilder = undefined;
|
|
31
|
+
this.layoutType = utils.FormLayout.SIDE_BY_SIDE;
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Salva o tipo de layout escolhido. Sem retorno.
|
|
35
|
+
*/
|
|
36
|
+
async save() {
|
|
37
|
+
this._LayoutFormConfigSingleton.setConfig(this.layoutType);
|
|
38
|
+
this._formConfigFetcher.saveLayoutFormConfig(FORM_COL_CONFIG_PREFIX + this._resourceID, { config: this.layoutType, newConfig: true });
|
|
39
|
+
}
|
|
40
|
+
async componentWillLoad() {
|
|
41
|
+
const _application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
42
|
+
this._LayoutFormConfigSingleton = await (_application === null || _application === void 0 ? void 0 : _application.getLayoutFormConfig());
|
|
43
|
+
this._resourceID = await (_application === null || _application === void 0 ? void 0 : _application.getResourceID());
|
|
44
|
+
this.setLayoutInit();
|
|
45
|
+
}
|
|
46
|
+
setLayoutInit() {
|
|
47
|
+
if (!this._LayoutFormConfigSingleton)
|
|
48
|
+
return;
|
|
49
|
+
const { config } = this._LayoutFormConfigSingleton;
|
|
50
|
+
if (config == null) {
|
|
51
|
+
this.layoutType = utils.FormLayout.SIDE_BY_SIDE;
|
|
52
|
+
return;
|
|
53
|
+
}
|
|
54
|
+
const configAsNumber = Number(config);
|
|
55
|
+
this.layoutType = Object.values(utils.FormLayout).includes(configAsNumber)
|
|
56
|
+
? configAsNumber
|
|
57
|
+
: utils.FormLayout.SIDE_BY_SIDE;
|
|
58
|
+
}
|
|
59
|
+
toggleLayout(key) {
|
|
60
|
+
this.layoutType = key;
|
|
61
|
+
}
|
|
62
|
+
getMessage(key, params) {
|
|
63
|
+
var _a;
|
|
64
|
+
return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, params);
|
|
65
|
+
}
|
|
66
|
+
render() {
|
|
67
|
+
return (index.h("div", { class: "ez-flex ez-flex--column" }, index.h("div", { class: "ez-margin-bottom--small" }, index.h("ez-check", { label: this.getMessage('snkLayoutFormConfig.cascadeLayout.label'), class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(utils.FormLayout.CASCADE), value: this.layoutType === utils.FormLayout.CASCADE }), index.h("snk-view-representation", { mode: utils.FormLayout.CASCADE }), index.h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, this.getMessage('snkLayoutFormConfig.cascadeLayout.description'))), index.h("div", { class: "ez-margin-bottom--small" }, index.h("ez-check", { label: this.getMessage('snkLayoutFormConfig.classicCascadeLayout.label'), class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(utils.FormLayout.CLASSIC_CASCADE), value: this.layoutType === utils.FormLayout.CLASSIC_CASCADE }), index.h("snk-view-representation", { mode: utils.FormLayout.CLASSIC_CASCADE }), index.h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, this.getMessage('snkLayoutFormConfig.classicCascadeLayout.description'))), index.h("div", { class: "ez-margin-bottom--small" }, index.h("ez-check", { label: this.getMessage('snkLayoutFormConfig.sideBySideLayout.label'), class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(utils.FormLayout.SIDE_BY_SIDE), value: this.layoutType === utils.FormLayout.SIDE_BY_SIDE }), index.h("snk-view-representation", { mode: utils.FormLayout.SIDE_BY_SIDE }), index.h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, this.getMessage('snkLayoutFormConfig.sideBySideLayout.description'))), index.h("div", null, index.h("ez-check", { label: this.getMessage('snkLayoutFormConfig.classicSideBySideLayout.label'), class: "ez-margin-bottom--small", onEzChange: () => this.toggleLayout(utils.FormLayout.CLASSIC_SIDE_BY_SIDE), value: this.layoutType === utils.FormLayout.CLASSIC_SIDE_BY_SIDE }), index.h("snk-view-representation", { mode: utils.FormLayout.CLASSIC_SIDE_BY_SIDE }), index.h("label", { class: "ez-label ez-margin--small ez-flex ez-text--medium" }, this.getMessage('snkLayoutFormConfig.classicSideBySideLayout.description')))));
|
|
68
|
+
}
|
|
69
|
+
};
|
|
70
|
+
SnkLayoutFormConfig.style = snkLayoutFormConfigCss;
|
|
71
|
+
|
|
72
|
+
exports.snk_layout_form_config = SnkLayoutFormConfig;
|
|
@@ -2,7 +2,7 @@
|
|
|
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 filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
@@ -2,17 +2,18 @@
|
|
|
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 PersonalizedFilterUtils = require('./PersonalizedFilterUtils-
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
7
|
+
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-eccb267a.js');
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-d9d24844.js');
|
|
9
9
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
10
10
|
const index$1 = require('./index-62760a9c.js');
|
|
11
|
-
const index$2 = require('./index-
|
|
11
|
+
const index$2 = require('./index-f0fe7e6e.js');
|
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
13
|
-
require('./form-config-fetcher-
|
|
14
|
-
require('./DataFetcher-
|
|
13
|
+
require('./form-config-fetcher-72cf0e3d.js');
|
|
14
|
+
require('./DataFetcher-3a8ea521.js');
|
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
|
16
|
+
require('./SnkMessageBuilder-d9558dba.js');
|
|
16
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
17
18
|
|
|
18
19
|
const snkPersonalizedFilterCss = ".sc-snk-personalized-filter-h{display:flex;height:100%;padding:var(--space--large, 24px);--snk-personalized-filter--width:100%;--snk-personalized-filter--height:100%;--snk-personalized-filter--background-color-line:var(--color--disable-secondary);--snk-personalized-filter--margin-line:var(--border--radius-medium, 12px)}.snk-personalized-filter.sc-snk-personalized-filter{height:var(--snk-personalized-filter--width);width:var(--snk-personalized-filter--height)}.snk-personalized-filter__header-actions.sc-snk-personalized-filter{display:flex;gap:var(--space--medium)}.snk-personalized-filter__group.sc-snk-personalized-filter{flex:1}.snk-personalized-filter__expression-input--line.sc-snk-personalized-filter{width:100%;height:2px;background-color:var(--snk-personalized-filter--background-color-line);margin-top:var(--snk-personalized-filter--margin-line);margin-bottom:var(--snk-personalized-filter--margin-line)}.ez-box__main.sc-snk-personalized-filter{height:90%}.snk-personalized-filter__button-mode.sc-snk-personalized-filter{height:35px}";
|
|
@@ -2,18 +2,19 @@
|
|
|
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 ISave = require('./ISave-
|
|
8
|
-
require('./DataFetcher-
|
|
7
|
+
const ISave = require('./ISave-a66bb65e.js');
|
|
8
|
+
require('./DataFetcher-3a8ea521.js');
|
|
9
9
|
require('./index-e3e39724.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
-
require('./dataunit-fetcher-
|
|
12
|
+
require('./dataunit-fetcher-4320f7ec.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
14
|
+
require('./form-config-fetcher-72cf0e3d.js');
|
|
15
15
|
require('./constants-6d82e405.js');
|
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
|
17
|
+
require('./SnkMessageBuilder-d9558dba.js');
|
|
17
18
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
18
19
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
19
20
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
@@ -56,7 +57,6 @@ const SnkPesquisa = class {
|
|
|
56
57
|
* Útil para cenários onde a pesquisa precisa ser disparada sem interação do usuário.
|
|
57
58
|
*
|
|
58
59
|
* @param text Texto utilizado como argumento de pesquisa.
|
|
59
|
-
* @returns Promise<void>
|
|
60
60
|
* @example
|
|
61
61
|
* await pesquisaRef.executeSearch("Texto para pesquisa");
|
|
62
62
|
*/
|
|
@@ -2,7 +2,7 @@
|
|
|
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 PrintUtils = require('./PrintUtils-bcaeb82f.js');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const core = require('@sankhyalabs/core');
|
|
@@ -2,7 +2,7 @@
|
|
|
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
|
|
|
8
8
|
const snkSimpleBarCss = ".sc-snk-simple-bar-h{display:flex;height:100%;width:100%}.simple-bar__container.sc-snk-simple-bar{flex:1;display:flex;align-items:stretch;gap:var(--space--small)}.simple-bar__left-slot.sc-snk-simple-bar{min-width:280px;flex:1;display:flex;align-items:center}.simple-bar__right-slot.sc-snk-simple-bar{flex:1;display:flex;align-items:center;justify-content:flex-end}.simple-bar__column.sc-snk-simple-bar{flex:1;display:flex;flex-direction:column}";
|
|
@@ -2,25 +2,26 @@
|
|
|
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-a94d4318.js');
|
|
10
|
+
require('./DataFetcher-3a8ea521.js');
|
|
11
|
+
require('./ISave-a66bb65e.js');
|
|
12
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-a891430e.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-4320f7ec.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
18
|
+
const formConfigFetcher = require('./form-config-fetcher-72cf0e3d.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-d9d24844.js');
|
|
21
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-c88cf1e9.js');
|
|
22
|
+
const index$2 = require('./index-f0fe7e6e.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
24
|
+
require('./SnkMessageBuilder-d9558dba.js');
|
|
24
25
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
25
26
|
require('./IFetchDataExporterParams-e78ec415.js');
|
|
26
27
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
@@ -82,6 +83,7 @@ const SnkSimpleCrud = class {
|
|
|
82
83
|
this.domainMessagesBuilder = undefined;
|
|
83
84
|
this.multipleEditionEnabled = true;
|
|
84
85
|
this.layoutFormConfig = true;
|
|
86
|
+
this.disableGridEdition = false;
|
|
85
87
|
this.autoLoad = undefined;
|
|
86
88
|
this.outlineMode = false;
|
|
87
89
|
}
|
|
@@ -182,11 +184,10 @@ const SnkSimpleCrud = class {
|
|
|
182
184
|
}
|
|
183
185
|
getButtons(selected, extraButtons, removeRefresh) {
|
|
184
186
|
let btnList = selected ? REGULAR_SELECTED_BTNS : REGULAR_DEFAULT_BTNS;
|
|
185
|
-
if (removeRefresh) {
|
|
187
|
+
if (removeRefresh || this.mode === constants.SIMPLE_CRUD_MODE.IN_MEMORY) {
|
|
186
188
|
btnList = btnList.filter(item => item !== taskbarElements.TaskbarElement.REFRESH);
|
|
187
189
|
}
|
|
188
|
-
return this.addConfigButton(
|
|
189
|
-
.concat(extraButtons));
|
|
190
|
+
return this.addConfigButton(btnList.concat(extraButtons));
|
|
190
191
|
}
|
|
191
192
|
addConfigButton(buttons) {
|
|
192
193
|
if (this.configName === undefined || (this.configName && this.gridLegacyConfigName)) {
|
|
@@ -197,13 +198,6 @@ const SnkSimpleCrud = class {
|
|
|
197
198
|
get application() {
|
|
198
199
|
return core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
199
200
|
}
|
|
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
201
|
/**
|
|
208
202
|
* @description Usado para alternar a visão entre GRID e FORM externamente.
|
|
209
203
|
* @param {VIEW_MODE} view - A visão para a qual navegar.
|
|
@@ -844,7 +838,7 @@ const SnkSimpleCrud = class {
|
|
|
844
838
|
}
|
|
845
839
|
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
840
|
? 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() }))));
|
|
841
|
+
: 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
842
|
}
|
|
849
843
|
get _element() { return index.getElement(this); }
|
|
850
844
|
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-a94d4318.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
|
|
|
@@ -23,6 +23,7 @@ const SnkTaskbar = class {
|
|
|
23
23
|
this.TASKBAR_CUSTOM_ELEMENTS = 'taskbar-custom-elements-container';
|
|
24
24
|
this.TASKBAR_ADDITIONAL_SLOT_CONTAINER_CLASS_NAME = 'taskbar-additional-slot-container';
|
|
25
25
|
this.TASKBAR_ADDITIONAL_SLOT = 'taskbar-additional-slot-container';
|
|
26
|
+
this._dataUnitInitialized = false;
|
|
26
27
|
this._titleKeyByElement = {
|
|
27
28
|
[taskbarElements.TaskbarElement.UPDATE_MULTIPLE]: "snkTaskbar.titleUpdateMultiple",
|
|
28
29
|
[taskbarElements.TaskbarElement.UPDATE]: "snkTaskbar.titleUpdate",
|
|
@@ -121,6 +122,17 @@ const SnkTaskbar = class {
|
|
|
121
122
|
this.taskbarSaveUnlocker.emit();
|
|
122
123
|
}
|
|
123
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
|
+
}
|
|
124
136
|
// Internal methods
|
|
125
137
|
elementsFromString(strButtons) {
|
|
126
138
|
const elements = [];
|
|
@@ -166,45 +178,46 @@ const SnkTaskbar = class {
|
|
|
166
178
|
}
|
|
167
179
|
elementClick(elem) {
|
|
168
180
|
core.LockManager.whenResolve(this._element, core.LockManagerOperation.TASKBAR_CLICK).then(() => {
|
|
169
|
-
if (this.dataUnit) {
|
|
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
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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;
|
|
208
221
|
}
|
|
209
222
|
if (this.isEnabled(elem))
|
|
210
223
|
this.actionClick.emit(elem);
|
|
@@ -403,10 +416,8 @@ const SnkTaskbar = class {
|
|
|
403
416
|
};
|
|
404
417
|
}
|
|
405
418
|
componentDidLoad() {
|
|
406
|
-
|
|
407
|
-
core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
419
|
+
this.initializeDataUnit(this.dataUnit);
|
|
408
420
|
this.handleOverFlowStrategy();
|
|
409
|
-
this.dataUnit.subscribe(this.onSaveEvent);
|
|
410
421
|
}
|
|
411
422
|
componentDidRender() {
|
|
412
423
|
this.appendCustomElementsInTaskbar();
|
|
@@ -466,7 +477,8 @@ const SnkTaskbar = class {
|
|
|
466
477
|
"buttons": ["observeButtons"],
|
|
467
478
|
"disabledButtons": ["observeDisabledButtons"],
|
|
468
479
|
"_lastWidth": ["observeLastWidth"],
|
|
469
|
-
"_isWaitingForSave": ["observeIsWaitingForSave"]
|
|
480
|
+
"_isWaitingForSave": ["observeIsWaitingForSave"],
|
|
481
|
+
"dataUnit": ["observeDataUnit"]
|
|
470
482
|
}; }
|
|
471
483
|
};
|
|
472
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) {
|
|
@@ -52,7 +52,7 @@ const buildCustomButton = (def, className, dataElementId, action, isEnabled) =>
|
|
|
52
52
|
}
|
|
53
53
|
};
|
|
54
54
|
const buildElem = (element, className, dataElementId, getTitle, action, isEnabled, actions, dataExporterStoreKey, presentationMode) => {
|
|
55
|
-
var _a;
|
|
55
|
+
var _a, _b;
|
|
56
56
|
const title = getTitle(element);
|
|
57
57
|
switch (element) {
|
|
58
58
|
case exports.TaskbarElement.PREVIOUS:
|
|
@@ -95,11 +95,12 @@ const buildElem = (element, className, dataElementId, getTitle, action, isEnable
|
|
|
95
95
|
}
|
|
96
96
|
return iconButton("settings-inverted", element, className, dataElementId, title, action, isEnabled);
|
|
97
97
|
case exports.TaskbarElement.MORE_OPTIONS:
|
|
98
|
-
|
|
98
|
+
const definedActions = (_a = actions === null || actions === void 0 ? void 0 : actions.filter(a => a !== undefined)) !== null && _a !== void 0 ? _a : [];
|
|
99
|
+
return actionButton(element, className, dataElementId, title, isEnabled, definedActions, action);
|
|
99
100
|
case exports.TaskbarElement.DIVIDER:
|
|
100
101
|
return index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin--none ez-margin-left--medium", "data-taskbar-divider": true });
|
|
101
102
|
case exports.TaskbarElement.DATA_EXPORTER:
|
|
102
|
-
const provider = (
|
|
103
|
+
const provider = (_b = index$1.store.get("exporterProviders")) === null || _b === void 0 ? void 0 : _b[dataExporterStoreKey];
|
|
103
104
|
return index.h("snk-data-exporter", { class: className, provider: provider, "data-element-id": dataElementId, "data-taskbar-element": element });
|
|
104
105
|
case exports.TaskbarElement.ATTACH:
|
|
105
106
|
return iconButton("anexo", element, className, dataElementId, title, action, isEnabled);
|
|
@@ -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",
|
|
@@ -46,6 +47,7 @@
|
|
|
46
47
|
"./components/snk-grid/snk-grid.js",
|
|
47
48
|
"./components/snk-grid-config/snk-grid-config.js",
|
|
48
49
|
"./components/snk-grid-config/snk-select-box/snk-select-box.js",
|
|
50
|
+
"./components/snk-image-input/snk-image-input.js",
|
|
49
51
|
"./components/snk-layout-form-config/snk-layout-form-config.js",
|
|
50
52
|
"./components/snk-layout-form-config/snk-view-representation/snk-view-representation.js",
|
|
51
53
|
"./components/snk-numbering-config/snk-numbering-config.js",
|
|
@@ -107,6 +109,11 @@
|
|
|
107
109
|
"snk-guides-viewer"
|
|
108
110
|
]
|
|
109
111
|
},
|
|
112
|
+
{
|
|
113
|
+
"components": [
|
|
114
|
+
"snk-layout-form-config"
|
|
115
|
+
]
|
|
116
|
+
},
|
|
110
117
|
{
|
|
111
118
|
"components": [
|
|
112
119
|
"snk-data-exporter"
|