@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-121322.0 → 0.0.0-bugfix-dev-KB-132392.0
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-72f34bd4.js → ConfigStorage-d9d24844.js} +2 -2
- package/dist/cjs/{DataFetcher-991b0349.js → DataFetcher-3a8ea521.js} +2 -2751
- package/dist/cjs/{FormConfigHelper-e253a418.js → FormConfigHelper-28fe4668.js} +3 -1
- package/dist/cjs/{ISave-ebf6b4ed.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-cdbb29d4.js → SnkFormConfigManager-c88cf1e9.js} +5 -5
- package/dist/cjs/SnkMessageBuilder-d9558dba.js +2809 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-011bec79.js → SnkMultiSelectionListDataSource-a891430e.js} +5 -5
- package/dist/cjs/{auth-fetcher-c3cac878.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-8bf469e7.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 +5 -5
- package/dist/cjs/fields-selector.cjs.entry.js +2 -2
- package/dist/cjs/{form-config-fetcher-c7af90d8.js → form-config-fetcher-72cf0e3d.js} +1 -1
- package/dist/cjs/guides-configurator.cjs.entry.js +3 -3
- 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} +8 -57
- 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 -12
- 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-7d587ad5.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 +22 -11
- package/dist/cjs/snk-grid.cjs.entry.js +26 -17
- package/dist/cjs/{snk-guides-viewer-366d5c32.js → snk-guides-viewer-c252149f.js} +51 -64
- 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 +3 -3
- 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 +7 -0
- 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 +24 -6
- 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 +59 -58
- 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 +3 -1
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +3 -3
- 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 +4 -4
- 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 +2 -2
- package/dist/collection/components/snk-form-config/snk-form-config.js +15 -5
- package/dist/collection/components/snk-grid/snk-grid.css +5 -5
- package/dist/collection/components/snk-grid/snk-grid.js +16 -9
- 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/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 +1 -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 +1 -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 +1 -0
- 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 -2731
- package/dist/components/PersonalizedFilterUtils.js +13 -0
- package/dist/components/SnkFormConfigManager.js +3 -3
- package/dist/components/SnkMessageBuilder.js +2807 -0
- package/dist/components/dataunit-fetcher.js +2 -1
- package/dist/components/field-config2.js +4 -2
- package/dist/components/fields-layout2.js +4 -4
- package/dist/components/guides-configurator2.js +2 -2
- 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 +78 -68
- 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 +145 -143
- 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 +15 -5
- package/dist/components/snk-form-view2.js +82 -10
- package/dist/components/snk-grid2.js +17 -9
- 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-view-representation2.js +1 -1
- package/dist/esm/{ConfigStorage-22324b6b.js → ConfigStorage-d15d2014.js} +2 -2
- package/dist/esm/{DataFetcher-450828a0.js → DataFetcher-1dd7e8c0.js} +3 -2731
- package/dist/esm/{FormConfigHelper-e89ca25c.js → FormConfigHelper-d09669f3.js} +3 -1
- package/dist/esm/{ISave-61153166.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-b5a92e12.js → SnkFormConfigManager-86befa68.js} +5 -5
- package/dist/esm/SnkMessageBuilder-c0bc4424.js +2807 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-d7ce2e54.js → SnkMultiSelectionListDataSource-14633bf6.js} +5 -5
- package/dist/esm/{auth-fetcher-eef9d01e.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-da9596f6.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 +5 -5
- package/dist/esm/fields-selector.entry.js +2 -2
- package/dist/esm/{form-config-fetcher-8d0a5e1c.js → form-config-fetcher-fcc7b62f.js} +1 -1
- package/dist/esm/guides-configurator.entry.js +3 -3
- 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} +9 -57
- 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 -12
- 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-99616a07.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 +22 -11
- package/dist/esm/snk-grid.entry.js +26 -17
- package/dist/esm/{snk-guides-viewer-240de636.js → snk-guides-viewer-988e7e1a.js} +51 -64
- 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 +3 -3
- 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-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-62aef37a.js → p-2ccbbeec.js} +1 -1
- package/dist/sankhyablocks/{p-75af335e.entry.js → p-2ebda226.entry.js} +1 -1
- package/dist/sankhyablocks/p-30641d55.entry.js +1 -0
- package/dist/sankhyablocks/{p-840fb68c.js → p-32ad76cc.js} +1 -1
- package/dist/sankhyablocks/p-3a35917e.entry.js +1 -0
- package/dist/sankhyablocks/p-3b07c117.entry.js +1 -0
- package/dist/sankhyablocks/{p-49ddc27a.entry.js → p-438a225f.entry.js} +1 -1
- package/dist/sankhyablocks/p-43d84207.entry.js +1 -0
- package/dist/sankhyablocks/p-48c580b9.entry.js +1 -0
- package/dist/sankhyablocks/p-4d2f5708.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-0b9a42ad.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-e258de96.entry.js → p-76729994.entry.js} +1 -1
- package/dist/sankhyablocks/p-7c4f4851.js +1 -0
- package/dist/sankhyablocks/{p-92cfc028.js → p-7e9f8fa4.js} +1 -1
- package/dist/sankhyablocks/{p-118c221e.js → p-8b4d6719.js} +1 -1
- 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-7d6f1285.js → p-9114e869.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-a2a9f520.entry.js +1 -0
- package/dist/sankhyablocks/p-a46ac091.js +1 -0
- package/dist/sankhyablocks/p-a65559fe.entry.js +1 -0
- package/dist/sankhyablocks/p-a73b6b00.js +1 -0
- package/dist/sankhyablocks/{p-c35fc941.js → p-a9839628.js} +1 -1
- package/dist/sankhyablocks/p-adc59e2c.entry.js +1 -0
- package/dist/sankhyablocks/{p-180716b2.entry.js → p-ae326d06.entry.js} +1 -1
- package/dist/sankhyablocks/p-b16322aa.js +1 -0
- package/dist/sankhyablocks/{p-c98c79c3.entry.js → p-b471bfab.entry.js} +1 -1
- package/dist/sankhyablocks/p-b555ce38.entry.js +1 -0
- package/dist/sankhyablocks/p-bb81a356.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-b987e15d.js → p-cc9935af.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-da455c82.js +12 -0
- package/dist/sankhyablocks/{p-002d4d2b.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-e973a5d4.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-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 +5 -1
- 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 +9 -7
- 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 +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 +2 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +1 -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.d.ts +134 -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-0948dc0a.entry.js +0 -11
- package/dist/sankhyablocks/p-16f05a66.entry.js +0 -1
- package/dist/sankhyablocks/p-1d589380.entry.js +0 -1
- package/dist/sankhyablocks/p-28f50632.js +0 -1
- package/dist/sankhyablocks/p-39be771c.js +0 -1
- package/dist/sankhyablocks/p-3ed04f0d.entry.js +0 -1
- package/dist/sankhyablocks/p-4963dd2a.entry.js +0 -1
- package/dist/sankhyablocks/p-55798617.js +0 -1
- package/dist/sankhyablocks/p-55f6fef2.entry.js +0 -1
- package/dist/sankhyablocks/p-56f16390.entry.js +0 -1
- package/dist/sankhyablocks/p-58683e28.js +0 -60
- package/dist/sankhyablocks/p-5ea893c5.entry.js +0 -1
- package/dist/sankhyablocks/p-60dd1d27.entry.js +0 -1
- package/dist/sankhyablocks/p-62e9b9b8.entry.js +0 -1
- package/dist/sankhyablocks/p-669bb869.entry.js +0 -1
- package/dist/sankhyablocks/p-6ee2ca7a.entry.js +0 -1
- package/dist/sankhyablocks/p-7cac3870.entry.js +0 -1
- package/dist/sankhyablocks/p-86e54841.entry.js +0 -1
- package/dist/sankhyablocks/p-88b337fe.entry.js +0 -1
- package/dist/sankhyablocks/p-91005a00.entry.js +0 -1
- package/dist/sankhyablocks/p-988afe78.js +0 -1
- package/dist/sankhyablocks/p-ada013c0.entry.js +0 -1
- package/dist/sankhyablocks/p-b7e891cc.entry.js +0 -1
- package/dist/sankhyablocks/p-cadf4846.entry.js +0 -1
- package/dist/sankhyablocks/p-d8d8169b.js +0 -2
- package/dist/sankhyablocks/p-e91c3c57.entry.js +0 -1
- package/dist/sankhyablocks/p-ea729922.entry.js +0 -1
- package/dist/sankhyablocks/p-ec5fbad8.js +0 -1
- package/dist/sankhyablocks/p-f5e942b7.entry.js +0 -1
|
@@ -2,7 +2,7 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Fragment, forceUpdate,
|
|
|
2
2
|
import { ObjectUtils, StringUtils, Action, KeyboardManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { S as SnkFormConfigManager } from './SnkFormConfigManager.js';
|
|
4
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
5
|
-
import
|
|
5
|
+
import './DataFetcher.js';
|
|
6
6
|
import { P as PresentationMode } from './ISave.js';
|
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
@@ -14,35 +14,37 @@ import { T as TaskbarElement, d as defineCustomElement$5 } from './snk-taskbar2.
|
|
|
14
14
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
15
15
|
import { buildFieldSearch, SHORTCUT_SEARCH_FIELD } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
16
16
|
import { T as TaskbarProcessor } from './ContinuousInsertUtils.js';
|
|
17
|
-
import { d as defineCustomElement$
|
|
18
|
-
import { d as defineCustomElement$
|
|
19
|
-
import { d as defineCustomElement$
|
|
20
|
-
import { d as defineCustomElement$
|
|
21
|
-
import { d as defineCustomElement$
|
|
22
|
-
import { d as defineCustomElement$
|
|
23
|
-
import { d as defineCustomElement$
|
|
24
|
-
import { d as defineCustomElement$
|
|
25
|
-
import { d as defineCustomElement$
|
|
26
|
-
import { d as defineCustomElement$
|
|
27
|
-
import { d as defineCustomElement$
|
|
28
|
-
import { d as defineCustomElement$
|
|
29
|
-
import { d as defineCustomElement$
|
|
30
|
-
import {
|
|
31
|
-
import { d as defineCustomElement$
|
|
32
|
-
import { d as defineCustomElement$
|
|
33
|
-
import { d as defineCustomElement$
|
|
34
|
-
import { d as defineCustomElement$
|
|
35
|
-
import { d as defineCustomElement$
|
|
36
|
-
import { d as defineCustomElement$
|
|
37
|
-
import { d as defineCustomElement$
|
|
38
|
-
import { d as defineCustomElement$
|
|
39
|
-
import { d as defineCustomElement$
|
|
40
|
-
import { d as defineCustomElement$
|
|
41
|
-
import { d as defineCustomElement$
|
|
42
|
-
import { d as defineCustomElement$
|
|
43
|
-
import { d as defineCustomElement$
|
|
44
|
-
import { d as defineCustomElement$
|
|
45
|
-
import { d as defineCustomElement$
|
|
17
|
+
import { d as defineCustomElement$H } from './config-header2.js';
|
|
18
|
+
import { d as defineCustomElement$G } from './configs-button2.js';
|
|
19
|
+
import { d as defineCustomElement$F } from './field-config2.js';
|
|
20
|
+
import { d as defineCustomElement$E } from './field-item2.js';
|
|
21
|
+
import { d as defineCustomElement$D } from './fields-layout2.js';
|
|
22
|
+
import { d as defineCustomElement$C } from './fields-selector2.js';
|
|
23
|
+
import { d as defineCustomElement$B } from './guides-configurator2.js';
|
|
24
|
+
import { d as defineCustomElement$A } from './snk-actions-button2.js';
|
|
25
|
+
import { d as defineCustomElement$z } from './snk-attach2.js';
|
|
26
|
+
import { d as defineCustomElement$y } from './snk-configurator2.js';
|
|
27
|
+
import { d as defineCustomElement$x } from './snk-data-exporter2.js';
|
|
28
|
+
import { d as defineCustomElement$w } from './snk-data-unit2.js';
|
|
29
|
+
import { d as defineCustomElement$v } from './snk-default-filter2.js';
|
|
30
|
+
import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
|
|
31
|
+
import { d as defineCustomElement$u } from './snk-exporter-email-sender2.js';
|
|
32
|
+
import { d as defineCustomElement$t } from './snk-expression-group2.js';
|
|
33
|
+
import { d as defineCustomElement$s } from './snk-expression-item2.js';
|
|
34
|
+
import { d as defineCustomElement$r } from './snk-filter-advanced-mode2.js';
|
|
35
|
+
import { d as defineCustomElement$q } from './snk-filter-assistent-mode2.js';
|
|
36
|
+
import { d as defineCustomElement$p } from './snk-filter-bar2.js';
|
|
37
|
+
import { d as defineCustomElement$o } from './snk-filter-detail2.js';
|
|
38
|
+
import { d as defineCustomElement$n } from './snk-filter-field-search2.js';
|
|
39
|
+
import { d as defineCustomElement$m } from './snk-filter-item2.js';
|
|
40
|
+
import { d as defineCustomElement$l } from './snk-filter-modal2.js';
|
|
41
|
+
import { d as defineCustomElement$k } from './snk-filter-modal-item2.js';
|
|
42
|
+
import { d as defineCustomElement$j } from './snk-filter-param-config2.js';
|
|
43
|
+
import { d as defineCustomElement$h } from './snk-form-summary2.js';
|
|
44
|
+
import { d as defineCustomElement$g } from './snk-form-view2.js';
|
|
45
|
+
import { d as defineCustomElement$f } from './snk-grid2.js';
|
|
46
|
+
import { d as defineCustomElement$e } from './snk-grid-config2.js';
|
|
47
|
+
import { d as defineCustomElement$d } from './snk-image-input2.js';
|
|
46
48
|
import { d as defineCustomElement$c } from './snk-layout-form-config2.js';
|
|
47
49
|
import { d as defineCustomElement$b } from './snk-numbering-config2.js';
|
|
48
50
|
import { d as defineCustomElement$a } from './snk-personalized-filter2.js';
|
|
@@ -53,7 +55,7 @@ import { d as defineCustomElement$6 } from './snk-simple-form-config2.js';
|
|
|
53
55
|
import { d as defineCustomElement$4 } from './snk-view-representation2.js';
|
|
54
56
|
import { d as defineCustomElement$3 } from './taskbar-actions-button2.js';
|
|
55
57
|
import { d as defineCustomElement$2 } from './taskbar-split-button2.js';
|
|
56
|
-
import { d as defineCustomElement$
|
|
58
|
+
import { d as defineCustomElement$i } from './snk-form-config2.js';
|
|
57
59
|
|
|
58
60
|
const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
|
|
59
61
|
|
|
@@ -62,14 +64,13 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
62
64
|
constructor() {
|
|
63
65
|
super();
|
|
64
66
|
this.__registerHost();
|
|
67
|
+
this.snkShowGuide = createEvent(this, "snkShowGuide", 7);
|
|
65
68
|
this.snkMasterFormConfigChange = createEvent(this, "snkMasterFormConfigChange", 7);
|
|
66
69
|
this.formConfigVisibilityChanged = createEvent(this, "formConfigVisibilityChanged", 7);
|
|
67
70
|
this.exit = createEvent(this, "exit", 7);
|
|
68
71
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
69
72
|
this.formItemsReady = createEvent(this, "formItemsReady", 7);
|
|
70
73
|
this._guideBuilders = new Map();
|
|
71
|
-
this.CUSTOM_GUIDE_ID_PREFIX = "CUSTOM_GUIDE_";
|
|
72
|
-
this.CUSTOM_GUIDE_DATA_CUSTOM_ID = "CUSTOM_GUIDE";
|
|
73
74
|
this.dataUnit = undefined;
|
|
74
75
|
this.dataState = undefined;
|
|
75
76
|
this.configName = undefined;
|
|
@@ -103,8 +104,12 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
103
104
|
observeDataUnit() {
|
|
104
105
|
this.loadGuides(true);
|
|
105
106
|
}
|
|
106
|
-
observeFormConfigManager(value) {
|
|
107
|
-
|
|
107
|
+
async observeFormConfigManager(value) {
|
|
108
|
+
const showFormConfig = !!value;
|
|
109
|
+
await this._viewStack.show(showFormConfig ?
|
|
110
|
+
GUIDES_VIEWER_VIEW_MODE.CONFIG :
|
|
111
|
+
GUIDES_VIEWER_VIEW_MODE.GUIDES);
|
|
112
|
+
this.formConfigVisibilityChanged.emit(showFormConfig);
|
|
108
113
|
}
|
|
109
114
|
observeDataState(newValue, oldValue) {
|
|
110
115
|
var _a, _b, _c, _d, _e, _f;
|
|
@@ -154,7 +159,8 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
154
159
|
* Atribui o foco para o componente.
|
|
155
160
|
*/
|
|
156
161
|
async setFocus() {
|
|
157
|
-
|
|
162
|
+
var _a;
|
|
163
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.focus();
|
|
158
164
|
}
|
|
159
165
|
/**
|
|
160
166
|
* Recarrega os guias baseada nos metadados atuais.
|
|
@@ -215,6 +221,13 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
215
221
|
item.tooltip = this.getMessage("snkCrud.detail.tooltip.needSingleSelection");
|
|
216
222
|
item.disabled = true;
|
|
217
223
|
}
|
|
224
|
+
if (sheet.isCustom && sheet.ctxProps) {
|
|
225
|
+
Object.entries(sheet.ctxProps).forEach(([key, value]) => {
|
|
226
|
+
if (value !== undefined) {
|
|
227
|
+
item[key] = value;
|
|
228
|
+
}
|
|
229
|
+
});
|
|
230
|
+
}
|
|
218
231
|
guides.push(item);
|
|
219
232
|
});
|
|
220
233
|
this._guides = guides;
|
|
@@ -329,7 +342,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
329
342
|
if (sheet == undefined) {
|
|
330
343
|
return;
|
|
331
344
|
}
|
|
332
|
-
return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); }, customEditors: params.propsCustomEditor, fieldsProps: params.fieldsProps });
|
|
345
|
+
return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); }, customEditors: params.propsCustomEditor, fieldsProps: params.fieldsProps, entityPath: params.entityPath });
|
|
333
346
|
})));
|
|
334
347
|
}
|
|
335
348
|
wrapDetail(levels, content) {
|
|
@@ -351,11 +364,13 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
351
364
|
}
|
|
352
365
|
getContent() {
|
|
353
366
|
if (!this.selectedGuide) {
|
|
367
|
+
this.snkShowGuide.emit(undefined);
|
|
354
368
|
return;
|
|
355
369
|
}
|
|
356
370
|
const guideId = this.selectedGuide.id;
|
|
371
|
+
this.snkShowGuide.emit(guideId);
|
|
357
372
|
if (this.isCustomGuide(guideId)) {
|
|
358
|
-
return h("
|
|
373
|
+
return h("slot", { name: guideId });
|
|
359
374
|
}
|
|
360
375
|
const levels = guideId.split("::");
|
|
361
376
|
const currentLevel = levels.pop();
|
|
@@ -366,16 +381,13 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
366
381
|
}
|
|
367
382
|
return this.buildFormViewGuideContent(guideId);
|
|
368
383
|
}
|
|
369
|
-
buildCustomGuideContainerId(guideId) {
|
|
370
|
-
return `${this.CUSTOM_GUIDE_ID_PREFIX}${guideId}`;
|
|
371
|
-
}
|
|
372
384
|
buildFormViewGuideContent(cardId) {
|
|
373
385
|
var _a, _b, _c, _d;
|
|
374
386
|
const sheet = this._masterFormMetadata.getSheet(cardId);
|
|
375
387
|
if (!sheet)
|
|
376
388
|
return;
|
|
377
389
|
const cardConfig = (_b = (_a = this.masterFormConfig) === null || _a === void 0 ? void 0 : _a.cardsState) === null || _b === void 0 ? void 0 : _b.get(cardId);
|
|
378
|
-
return (h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_d = (_c = this.masterFormConfig) === null || _c === void 0 ? void 0 : _c.summary) === null || _d === void 0 ? void 0 : _d.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: cardId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar()));
|
|
390
|
+
return (h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_d = (_c = this.masterFormConfig) === null || _c === void 0 ? void 0 : _c.summary) === null || _d === void 0 ? void 0 : _d.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: cardId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler(), customEditors: this._customEditors, fieldsProps: this._fieldsProps, fieldSearch: this._fieldSearch, entityPath: this.entityPath }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar()));
|
|
379
391
|
}
|
|
380
392
|
isDetailGuide(childEntityName, levels) {
|
|
381
393
|
return childEntityName || levels.length > 0;
|
|
@@ -398,20 +410,6 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
398
410
|
var _a;
|
|
399
411
|
return (_a = this.customGuidesConfig) === null || _a === void 0 ? void 0 : _a.map(g => g.id).includes(guideId);
|
|
400
412
|
}
|
|
401
|
-
attachCustomGuideInView() {
|
|
402
|
-
//As guias customizadas ficam em slots reservados na DOM e
|
|
403
|
-
// precisam ser acessadas via querySelector e colocadas no container correto na view.
|
|
404
|
-
var _a;
|
|
405
|
-
const guideId = (_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.id;
|
|
406
|
-
if (!this.isCustomGuide(guideId))
|
|
407
|
-
return;
|
|
408
|
-
const customGuideSlot = document.querySelector(`#${guideId}`);
|
|
409
|
-
const customGuideElement = customGuideSlot === null || customGuideSlot === void 0 ? void 0 : customGuideSlot.firstElementChild;
|
|
410
|
-
const customGuideViewContainer = document.querySelector(`#${this.buildCustomGuideContainerId(guideId)}`);
|
|
411
|
-
if (!customGuideElement || !customGuideViewContainer)
|
|
412
|
-
return;
|
|
413
|
-
customGuideViewContainer.appendChild(customGuideElement);
|
|
414
|
-
}
|
|
415
413
|
onBreadcrumbClickHandler(item) {
|
|
416
414
|
if ((item === null || item === void 0 ? void 0 : item.id) == undefined) {
|
|
417
415
|
return;
|
|
@@ -435,6 +433,8 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
435
433
|
}
|
|
436
434
|
resetGuideBadge(selectedGuide) {
|
|
437
435
|
var _a;
|
|
436
|
+
if (!selectedGuide)
|
|
437
|
+
return;
|
|
438
438
|
this._guides = [...(_a = this._guides) === null || _a === void 0 ? void 0 : _a.map(guide => {
|
|
439
439
|
if (this.canClearGuideBadge(guide, selectedGuide.id)) {
|
|
440
440
|
return Object.assign(Object.assign({}, guide), { badge: null });
|
|
@@ -493,29 +493,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
493
493
|
this.addFormLegacyConfigName();
|
|
494
494
|
this._configManager.loadConfig();
|
|
495
495
|
}
|
|
496
|
-
componentWillRender() {
|
|
497
|
-
this.detachCustomGuideFromView();
|
|
498
|
-
}
|
|
499
|
-
detachCustomGuideFromView() {
|
|
500
|
-
// Antes de cada renderização, o componente remove a guia customizada da view
|
|
501
|
-
// e a coloca de volta no slot reservado na DOM para que não seja perdida sua referência.
|
|
502
|
-
if (!this.customGuidesConfig || this.customGuidesConfig.length === 0)
|
|
503
|
-
return;
|
|
504
|
-
const viewCustomGuideContainer = this._element.querySelector(`[data-custom-id="${this.CUSTOM_GUIDE_DATA_CUSTOM_ID}"]`);
|
|
505
|
-
const reservedSlotId = viewCustomGuideContainer === null || viewCustomGuideContainer === void 0 ? void 0 : viewCustomGuideContainer.getAttribute('data-reserved-slot-id');
|
|
506
|
-
if (!(viewCustomGuideContainer === null || viewCustomGuideContainer === void 0 ? void 0 : viewCustomGuideContainer.hasChildNodes()) || !reservedSlotId)
|
|
507
|
-
return;
|
|
508
|
-
const customGuideReservedSlot = document.querySelector(`#${reservedSlotId}`);
|
|
509
|
-
const customGuideElement = viewCustomGuideContainer === null || viewCustomGuideContainer === void 0 ? void 0 : viewCustomGuideContainer.firstElementChild;
|
|
510
|
-
if (!customGuideReservedSlot || !customGuideElement)
|
|
511
|
-
return;
|
|
512
|
-
customGuideReservedSlot.appendChild(customGuideElement);
|
|
513
|
-
}
|
|
514
496
|
componentDidRender() {
|
|
515
|
-
var _a;
|
|
516
|
-
if (this.isCustomGuide((_a = this.selectedGuide) === null || _a === void 0 ? void 0 : _a.id)) {
|
|
517
|
-
this.attachCustomGuideInView();
|
|
518
|
-
}
|
|
519
497
|
if (!this._guideHasChanged) {
|
|
520
498
|
return;
|
|
521
499
|
}
|
|
@@ -663,17 +641,14 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
663
641
|
await this._mainForm.showSearchField();
|
|
664
642
|
}, { description: this.getMessage("snkSimpleCrud.findFields"), element: this._element });
|
|
665
643
|
}
|
|
666
|
-
|
|
667
|
-
var _a, _b;
|
|
644
|
+
renderFormConfig() {
|
|
668
645
|
if (this._formEditorConfigManager != undefined) {
|
|
669
646
|
return (h("snk-form-config", { ref: ref => this._container = ref, tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null, customGuidesConfig: this.getCustomGuidesConfig() }));
|
|
670
647
|
}
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
this.
|
|
675
|
-
const showGuides = this._guides && (this._guides.length > 1);
|
|
676
|
-
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabindex: -1 }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge", title: this.getTitleTooltip() }, this.getTitle()), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
648
|
+
}
|
|
649
|
+
renderGuidesNavigator(showGuides) {
|
|
650
|
+
var _a, _b;
|
|
651
|
+
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabIndex: -1 }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge", title: this.getTitleTooltip() }, this.getTitle()), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
677
652
|
h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
678
653
|
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
679
654
|
:
|
|
@@ -686,8 +661,17 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
686
661
|
fieldToFocus: this._fieldToGetFocus,
|
|
687
662
|
onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this),
|
|
688
663
|
propsCustomEditor: this._customEditors,
|
|
689
|
-
fieldsProps: this._fieldsProps
|
|
690
|
-
|
|
664
|
+
fieldsProps: this._fieldsProps,
|
|
665
|
+
entityPath: this.entityPath
|
|
666
|
+
}), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID, layoutFormConfig: false, disableNumberingConfig: true })));
|
|
667
|
+
}
|
|
668
|
+
render() {
|
|
669
|
+
if (!this.dataUnit || !this._configManager.isLoaded) {
|
|
670
|
+
return;
|
|
671
|
+
}
|
|
672
|
+
this.loadTaskbarProcessor();
|
|
673
|
+
const showGuides = this._guides && (this._guides.length > 1);
|
|
674
|
+
return (h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "guides-viewer-stack" }, h("stack-item", null, this.renderGuidesNavigator(showGuides)), h("stack-item", null, this.renderFormConfig())));
|
|
691
675
|
}
|
|
692
676
|
get _element() { return this; }
|
|
693
677
|
static get watchers() { return {
|
|
@@ -705,7 +689,7 @@ const SnkGuidesViewer = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
|
|
|
705
689
|
"actionsList": [16],
|
|
706
690
|
"recordsValidator": [16],
|
|
707
691
|
"masterFormConfig": [1040],
|
|
708
|
-
"selectedGuide": [
|
|
692
|
+
"selectedGuide": [1040],
|
|
709
693
|
"taskbarManager": [16],
|
|
710
694
|
"messagesBuilder": [1040],
|
|
711
695
|
"canEdit": [4, "can-edit"],
|
|
@@ -740,11 +724,16 @@ var TASKBAR_ID;
|
|
|
740
724
|
TASKBAR_ID["MUTIPLE_EDITION"] = "snkGuideViewer.multiple_edition";
|
|
741
725
|
TASKBAR_ID["REGULAR"] = "snkGuideViewer.regular";
|
|
742
726
|
})(TASKBAR_ID || (TASKBAR_ID = {}));
|
|
727
|
+
var GUIDES_VIEWER_VIEW_MODE;
|
|
728
|
+
(function (GUIDES_VIEWER_VIEW_MODE) {
|
|
729
|
+
GUIDES_VIEWER_VIEW_MODE[GUIDES_VIEWER_VIEW_MODE["GUIDES"] = 0] = "GUIDES";
|
|
730
|
+
GUIDES_VIEWER_VIEW_MODE[GUIDES_VIEWER_VIEW_MODE["CONFIG"] = 1] = "CONFIG";
|
|
731
|
+
})(GUIDES_VIEWER_VIEW_MODE || (GUIDES_VIEWER_VIEW_MODE = {}));
|
|
743
732
|
function defineCustomElement$1() {
|
|
744
733
|
if (typeof customElements === "undefined") {
|
|
745
734
|
return;
|
|
746
735
|
}
|
|
747
|
-
const components = ["snk-guides-viewer", "config-header", "configs-button", "field-config", "field-item", "fields-layout", "fields-selector", "guides-configurator", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-default-filter", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-layout-form-config", "snk-numbering-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
736
|
+
const components = ["snk-guides-viewer", "config-header", "configs-button", "field-config", "field-item", "fields-layout", "fields-selector", "guides-configurator", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-default-filter", "snk-detail-view", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-form-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-image-input", "snk-layout-form-config", "snk-numbering-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
748
737
|
components.forEach(tagName => { switch (tagName) {
|
|
749
738
|
case "snk-guides-viewer":
|
|
750
739
|
if (!customElements.get(tagName)) {
|
|
@@ -753,67 +742,67 @@ function defineCustomElement$1() {
|
|
|
753
742
|
break;
|
|
754
743
|
case "config-header":
|
|
755
744
|
if (!customElements.get(tagName)) {
|
|
756
|
-
defineCustomElement$
|
|
745
|
+
defineCustomElement$H();
|
|
757
746
|
}
|
|
758
747
|
break;
|
|
759
748
|
case "configs-button":
|
|
760
749
|
if (!customElements.get(tagName)) {
|
|
761
|
-
defineCustomElement$
|
|
750
|
+
defineCustomElement$G();
|
|
762
751
|
}
|
|
763
752
|
break;
|
|
764
753
|
case "field-config":
|
|
765
754
|
if (!customElements.get(tagName)) {
|
|
766
|
-
defineCustomElement$
|
|
755
|
+
defineCustomElement$F();
|
|
767
756
|
}
|
|
768
757
|
break;
|
|
769
758
|
case "field-item":
|
|
770
759
|
if (!customElements.get(tagName)) {
|
|
771
|
-
defineCustomElement$
|
|
760
|
+
defineCustomElement$E();
|
|
772
761
|
}
|
|
773
762
|
break;
|
|
774
763
|
case "fields-layout":
|
|
775
764
|
if (!customElements.get(tagName)) {
|
|
776
|
-
defineCustomElement$
|
|
765
|
+
defineCustomElement$D();
|
|
777
766
|
}
|
|
778
767
|
break;
|
|
779
768
|
case "fields-selector":
|
|
780
769
|
if (!customElements.get(tagName)) {
|
|
781
|
-
defineCustomElement$
|
|
770
|
+
defineCustomElement$C();
|
|
782
771
|
}
|
|
783
772
|
break;
|
|
784
773
|
case "guides-configurator":
|
|
785
774
|
if (!customElements.get(tagName)) {
|
|
786
|
-
defineCustomElement$
|
|
775
|
+
defineCustomElement$B();
|
|
787
776
|
}
|
|
788
777
|
break;
|
|
789
778
|
case "snk-actions-button":
|
|
790
779
|
if (!customElements.get(tagName)) {
|
|
791
|
-
defineCustomElement$
|
|
780
|
+
defineCustomElement$A();
|
|
792
781
|
}
|
|
793
782
|
break;
|
|
794
783
|
case "snk-attach":
|
|
795
784
|
if (!customElements.get(tagName)) {
|
|
796
|
-
defineCustomElement$
|
|
785
|
+
defineCustomElement$z();
|
|
797
786
|
}
|
|
798
787
|
break;
|
|
799
788
|
case "snk-configurator":
|
|
800
789
|
if (!customElements.get(tagName)) {
|
|
801
|
-
defineCustomElement$
|
|
790
|
+
defineCustomElement$y();
|
|
802
791
|
}
|
|
803
792
|
break;
|
|
804
793
|
case "snk-data-exporter":
|
|
805
794
|
if (!customElements.get(tagName)) {
|
|
806
|
-
defineCustomElement$
|
|
795
|
+
defineCustomElement$x();
|
|
807
796
|
}
|
|
808
797
|
break;
|
|
809
798
|
case "snk-data-unit":
|
|
810
799
|
if (!customElements.get(tagName)) {
|
|
811
|
-
defineCustomElement$
|
|
800
|
+
defineCustomElement$w();
|
|
812
801
|
}
|
|
813
802
|
break;
|
|
814
803
|
case "snk-default-filter":
|
|
815
804
|
if (!customElements.get(tagName)) {
|
|
816
|
-
defineCustomElement$
|
|
805
|
+
defineCustomElement$v();
|
|
817
806
|
}
|
|
818
807
|
break;
|
|
819
808
|
case "snk-detail-view":
|
|
@@ -823,85 +812,90 @@ function defineCustomElement$1() {
|
|
|
823
812
|
break;
|
|
824
813
|
case "snk-exporter-email-sender":
|
|
825
814
|
if (!customElements.get(tagName)) {
|
|
826
|
-
defineCustomElement$
|
|
815
|
+
defineCustomElement$u();
|
|
827
816
|
}
|
|
828
817
|
break;
|
|
829
818
|
case "snk-expression-group":
|
|
830
819
|
if (!customElements.get(tagName)) {
|
|
831
|
-
defineCustomElement$
|
|
820
|
+
defineCustomElement$t();
|
|
832
821
|
}
|
|
833
822
|
break;
|
|
834
823
|
case "snk-expression-item":
|
|
835
824
|
if (!customElements.get(tagName)) {
|
|
836
|
-
defineCustomElement$
|
|
825
|
+
defineCustomElement$s();
|
|
837
826
|
}
|
|
838
827
|
break;
|
|
839
828
|
case "snk-filter-advanced-mode":
|
|
840
829
|
if (!customElements.get(tagName)) {
|
|
841
|
-
defineCustomElement$
|
|
830
|
+
defineCustomElement$r();
|
|
842
831
|
}
|
|
843
832
|
break;
|
|
844
833
|
case "snk-filter-assistent-mode":
|
|
845
834
|
if (!customElements.get(tagName)) {
|
|
846
|
-
defineCustomElement$
|
|
835
|
+
defineCustomElement$q();
|
|
847
836
|
}
|
|
848
837
|
break;
|
|
849
838
|
case "snk-filter-bar":
|
|
850
839
|
if (!customElements.get(tagName)) {
|
|
851
|
-
defineCustomElement$
|
|
840
|
+
defineCustomElement$p();
|
|
852
841
|
}
|
|
853
842
|
break;
|
|
854
843
|
case "snk-filter-detail":
|
|
855
844
|
if (!customElements.get(tagName)) {
|
|
856
|
-
defineCustomElement$
|
|
845
|
+
defineCustomElement$o();
|
|
857
846
|
}
|
|
858
847
|
break;
|
|
859
848
|
case "snk-filter-field-search":
|
|
860
849
|
if (!customElements.get(tagName)) {
|
|
861
|
-
defineCustomElement$
|
|
850
|
+
defineCustomElement$n();
|
|
862
851
|
}
|
|
863
852
|
break;
|
|
864
853
|
case "snk-filter-item":
|
|
865
854
|
if (!customElements.get(tagName)) {
|
|
866
|
-
defineCustomElement$
|
|
855
|
+
defineCustomElement$m();
|
|
867
856
|
}
|
|
868
857
|
break;
|
|
869
858
|
case "snk-filter-modal":
|
|
870
859
|
if (!customElements.get(tagName)) {
|
|
871
|
-
defineCustomElement$
|
|
860
|
+
defineCustomElement$l();
|
|
872
861
|
}
|
|
873
862
|
break;
|
|
874
863
|
case "snk-filter-modal-item":
|
|
875
864
|
if (!customElements.get(tagName)) {
|
|
876
|
-
defineCustomElement$
|
|
865
|
+
defineCustomElement$k();
|
|
877
866
|
}
|
|
878
867
|
break;
|
|
879
868
|
case "snk-filter-param-config":
|
|
880
869
|
if (!customElements.get(tagName)) {
|
|
881
|
-
defineCustomElement$
|
|
870
|
+
defineCustomElement$j();
|
|
882
871
|
}
|
|
883
872
|
break;
|
|
884
873
|
case "snk-form-config":
|
|
885
874
|
if (!customElements.get(tagName)) {
|
|
886
|
-
defineCustomElement$
|
|
875
|
+
defineCustomElement$i();
|
|
887
876
|
}
|
|
888
877
|
break;
|
|
889
878
|
case "snk-form-summary":
|
|
890
879
|
if (!customElements.get(tagName)) {
|
|
891
|
-
defineCustomElement$
|
|
880
|
+
defineCustomElement$h();
|
|
892
881
|
}
|
|
893
882
|
break;
|
|
894
883
|
case "snk-form-view":
|
|
895
884
|
if (!customElements.get(tagName)) {
|
|
896
|
-
defineCustomElement$
|
|
885
|
+
defineCustomElement$g();
|
|
897
886
|
}
|
|
898
887
|
break;
|
|
899
888
|
case "snk-grid":
|
|
900
889
|
if (!customElements.get(tagName)) {
|
|
901
|
-
defineCustomElement$
|
|
890
|
+
defineCustomElement$f();
|
|
902
891
|
}
|
|
903
892
|
break;
|
|
904
893
|
case "snk-grid-config":
|
|
894
|
+
if (!customElements.get(tagName)) {
|
|
895
|
+
defineCustomElement$e();
|
|
896
|
+
}
|
|
897
|
+
break;
|
|
898
|
+
case "snk-image-input":
|
|
905
899
|
if (!customElements.get(tagName)) {
|
|
906
900
|
defineCustomElement$d();
|
|
907
901
|
}
|
|
@@ -1007,7 +1001,7 @@ class GuideBuilder {
|
|
|
1007
1001
|
};
|
|
1008
1002
|
});
|
|
1009
1003
|
const newGuideItem = children.shift();
|
|
1010
|
-
newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.
|
|
1004
|
+
newGuideItem.label = isNewRecord ? this.getMessage("snkCrud.newRecord") : currentRecord.__record__label__;
|
|
1011
1005
|
newGuideItem.children = children;
|
|
1012
1006
|
item.children = [newGuideItem];
|
|
1013
1007
|
return item;
|
|
@@ -1257,6 +1251,9 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
1257
1251
|
if (action.type === Action.FIELD_INVALIDATED) {
|
|
1258
1252
|
this.addErrorBadgeToBranchGuide();
|
|
1259
1253
|
}
|
|
1254
|
+
else if (action.type === Action.DATA_LOADED) {
|
|
1255
|
+
this.dataUnit.selectFirst();
|
|
1256
|
+
}
|
|
1260
1257
|
}
|
|
1261
1258
|
addErrorBadgeToBranchGuide() {
|
|
1262
1259
|
this.branchGuide = Object.assign(Object.assign({}, this.branchGuide), { badge: 'error' });
|
|
@@ -1311,7 +1308,7 @@ const SnkDetailView = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
1311
1308
|
render() {
|
|
1312
1309
|
this.updateLabel();
|
|
1313
1310
|
//const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
|
|
1314
|
-
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), fieldToFocus: this._fieldToGetFocus, label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems), onSnkRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), fieldSearch: this._fieldSearch }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS", actionsSettingsList: this.getSettingsListForm() }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
|
1311
|
+
return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false, enableGridInsert: true }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), fieldToFocus: this._fieldToGetFocus, label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems), onSnkRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), fieldSearch: this._fieldSearch, entityPath: this.entityName }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS", actionsSettingsList: this.getSettingsListForm() }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
|
|
1315
1312
|
}
|
|
1316
1313
|
get _element() { return this; }
|
|
1317
1314
|
static get watchers() { return {
|
|
@@ -1354,7 +1351,7 @@ function defineCustomElement() {
|
|
|
1354
1351
|
if (typeof customElements === "undefined") {
|
|
1355
1352
|
return;
|
|
1356
1353
|
}
|
|
1357
|
-
const components = ["snk-detail-view", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-default-filter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-layout-form-config", "snk-numbering-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
1354
|
+
const components = ["snk-detail-view", "snk-actions-button", "snk-attach", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-default-filter", "snk-exporter-email-sender", "snk-expression-group", "snk-expression-item", "snk-filter-advanced-mode", "snk-filter-assistent-mode", "snk-filter-bar", "snk-filter-detail", "snk-filter-field-search", "snk-filter-item", "snk-filter-modal", "snk-filter-modal-item", "snk-filter-param-config", "snk-form-summary", "snk-form-view", "snk-grid", "snk-grid-config", "snk-image-input", "snk-layout-form-config", "snk-numbering-config", "snk-personalized-filter", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button", "taskbar-split-button"];
|
|
1358
1355
|
components.forEach(tagName => { switch (tagName) {
|
|
1359
1356
|
case "snk-detail-view":
|
|
1360
1357
|
if (!customElements.get(tagName)) {
|
|
@@ -1363,110 +1360,115 @@ function defineCustomElement() {
|
|
|
1363
1360
|
break;
|
|
1364
1361
|
case "snk-actions-button":
|
|
1365
1362
|
if (!customElements.get(tagName)) {
|
|
1366
|
-
defineCustomElement$
|
|
1363
|
+
defineCustomElement$A();
|
|
1367
1364
|
}
|
|
1368
1365
|
break;
|
|
1369
1366
|
case "snk-attach":
|
|
1370
1367
|
if (!customElements.get(tagName)) {
|
|
1371
|
-
defineCustomElement$
|
|
1368
|
+
defineCustomElement$z();
|
|
1372
1369
|
}
|
|
1373
1370
|
break;
|
|
1374
1371
|
case "snk-configurator":
|
|
1375
1372
|
if (!customElements.get(tagName)) {
|
|
1376
|
-
defineCustomElement$
|
|
1373
|
+
defineCustomElement$y();
|
|
1377
1374
|
}
|
|
1378
1375
|
break;
|
|
1379
1376
|
case "snk-data-exporter":
|
|
1380
1377
|
if (!customElements.get(tagName)) {
|
|
1381
|
-
defineCustomElement$
|
|
1378
|
+
defineCustomElement$x();
|
|
1382
1379
|
}
|
|
1383
1380
|
break;
|
|
1384
1381
|
case "snk-data-unit":
|
|
1385
1382
|
if (!customElements.get(tagName)) {
|
|
1386
|
-
defineCustomElement$
|
|
1383
|
+
defineCustomElement$w();
|
|
1387
1384
|
}
|
|
1388
1385
|
break;
|
|
1389
1386
|
case "snk-default-filter":
|
|
1390
1387
|
if (!customElements.get(tagName)) {
|
|
1391
|
-
defineCustomElement$
|
|
1388
|
+
defineCustomElement$v();
|
|
1392
1389
|
}
|
|
1393
1390
|
break;
|
|
1394
1391
|
case "snk-exporter-email-sender":
|
|
1395
1392
|
if (!customElements.get(tagName)) {
|
|
1396
|
-
defineCustomElement$
|
|
1393
|
+
defineCustomElement$u();
|
|
1397
1394
|
}
|
|
1398
1395
|
break;
|
|
1399
1396
|
case "snk-expression-group":
|
|
1400
1397
|
if (!customElements.get(tagName)) {
|
|
1401
|
-
defineCustomElement$
|
|
1398
|
+
defineCustomElement$t();
|
|
1402
1399
|
}
|
|
1403
1400
|
break;
|
|
1404
1401
|
case "snk-expression-item":
|
|
1405
1402
|
if (!customElements.get(tagName)) {
|
|
1406
|
-
defineCustomElement$
|
|
1403
|
+
defineCustomElement$s();
|
|
1407
1404
|
}
|
|
1408
1405
|
break;
|
|
1409
1406
|
case "snk-filter-advanced-mode":
|
|
1410
1407
|
if (!customElements.get(tagName)) {
|
|
1411
|
-
defineCustomElement$
|
|
1408
|
+
defineCustomElement$r();
|
|
1412
1409
|
}
|
|
1413
1410
|
break;
|
|
1414
1411
|
case "snk-filter-assistent-mode":
|
|
1415
1412
|
if (!customElements.get(tagName)) {
|
|
1416
|
-
defineCustomElement$
|
|
1413
|
+
defineCustomElement$q();
|
|
1417
1414
|
}
|
|
1418
1415
|
break;
|
|
1419
1416
|
case "snk-filter-bar":
|
|
1420
1417
|
if (!customElements.get(tagName)) {
|
|
1421
|
-
defineCustomElement$
|
|
1418
|
+
defineCustomElement$p();
|
|
1422
1419
|
}
|
|
1423
1420
|
break;
|
|
1424
1421
|
case "snk-filter-detail":
|
|
1425
1422
|
if (!customElements.get(tagName)) {
|
|
1426
|
-
defineCustomElement$
|
|
1423
|
+
defineCustomElement$o();
|
|
1427
1424
|
}
|
|
1428
1425
|
break;
|
|
1429
1426
|
case "snk-filter-field-search":
|
|
1430
1427
|
if (!customElements.get(tagName)) {
|
|
1431
|
-
defineCustomElement$
|
|
1428
|
+
defineCustomElement$n();
|
|
1432
1429
|
}
|
|
1433
1430
|
break;
|
|
1434
1431
|
case "snk-filter-item":
|
|
1435
1432
|
if (!customElements.get(tagName)) {
|
|
1436
|
-
defineCustomElement$
|
|
1433
|
+
defineCustomElement$m();
|
|
1437
1434
|
}
|
|
1438
1435
|
break;
|
|
1439
1436
|
case "snk-filter-modal":
|
|
1440
1437
|
if (!customElements.get(tagName)) {
|
|
1441
|
-
defineCustomElement$
|
|
1438
|
+
defineCustomElement$l();
|
|
1442
1439
|
}
|
|
1443
1440
|
break;
|
|
1444
1441
|
case "snk-filter-modal-item":
|
|
1445
1442
|
if (!customElements.get(tagName)) {
|
|
1446
|
-
defineCustomElement$
|
|
1443
|
+
defineCustomElement$k();
|
|
1447
1444
|
}
|
|
1448
1445
|
break;
|
|
1449
1446
|
case "snk-filter-param-config":
|
|
1450
1447
|
if (!customElements.get(tagName)) {
|
|
1451
|
-
defineCustomElement$
|
|
1448
|
+
defineCustomElement$j();
|
|
1452
1449
|
}
|
|
1453
1450
|
break;
|
|
1454
1451
|
case "snk-form-summary":
|
|
1455
1452
|
if (!customElements.get(tagName)) {
|
|
1456
|
-
defineCustomElement$
|
|
1453
|
+
defineCustomElement$h();
|
|
1457
1454
|
}
|
|
1458
1455
|
break;
|
|
1459
1456
|
case "snk-form-view":
|
|
1460
1457
|
if (!customElements.get(tagName)) {
|
|
1461
|
-
defineCustomElement$
|
|
1458
|
+
defineCustomElement$g();
|
|
1462
1459
|
}
|
|
1463
1460
|
break;
|
|
1464
1461
|
case "snk-grid":
|
|
1465
1462
|
if (!customElements.get(tagName)) {
|
|
1466
|
-
defineCustomElement$
|
|
1463
|
+
defineCustomElement$f();
|
|
1467
1464
|
}
|
|
1468
1465
|
break;
|
|
1469
1466
|
case "snk-grid-config":
|
|
1467
|
+
if (!customElements.get(tagName)) {
|
|
1468
|
+
defineCustomElement$e();
|
|
1469
|
+
}
|
|
1470
|
+
break;
|
|
1471
|
+
case "snk-image-input":
|
|
1470
1472
|
if (!customElements.get(tagName)) {
|
|
1471
1473
|
defineCustomElement$d();
|
|
1472
1474
|
}
|