@sankhyalabs/sankhyablocks 8.16.0-dev.114 → 8.16.0-dev.115
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ClientSideExporterProvider-a2753c93.js → ClientSideExporterProvider-0ce2bcd9.js} +2 -2
- package/dist/cjs/FormConfigHelper-c664dbae.js +260 -0
- package/dist/cjs/{SnkFormConfigManager-ce7b0951.js → SnkFormConfigManager-aa4631bd.js} +2 -3
- package/dist/cjs/{SnkMessageBuilder-21cc7f09.js → SnkMessageBuilder-e3b7850b.js} +16 -2
- package/dist/cjs/config-header.cjs.entry.js +79 -0
- package/dist/cjs/configs-button.cjs.entry.js +61 -0
- package/dist/cjs/{constants-77c1b8bd.js → constants-6d82e405.js} +8 -38
- package/dist/cjs/field-config_2.cjs.entry.js +324 -0
- package/dist/cjs/fields-layout.cjs.entry.js +341 -0
- package/dist/cjs/fields-selector.cjs.entry.js +74 -0
- package/dist/cjs/guides-configurator.cjs.entry.js +164 -0
- package/dist/cjs/{index-102ba62d.js → index-0ad2baeb.js} +4 -5
- package/dist/cjs/{index-f9e81701.js → index-1cf293c1.js} +28 -10
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +2 -2
- package/dist/cjs/sankhyablocks.cjs.js +2 -2
- package/dist/cjs/snk-actions-button_8.cjs.entry.js +2 -2
- package/dist/cjs/snk-actions-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +3 -3
- package/dist/cjs/snk-attach.cjs.entry.js +4 -4
- package/dist/cjs/snk-client-confirm.cjs.entry.js +1 -1
- package/dist/cjs/snk-configurator.cjs.entry.js +2 -2
- package/dist/cjs/snk-crud.cjs.entry.js +4 -4
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +4 -4
- package/dist/cjs/{snk-data-unit-7913a033.js → snk-data-unit-3684c96e.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-default-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
- 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 +1 -1
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +1 -1
- 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 +1 -1
- package/dist/cjs/snk-filter-field-search_2.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-number.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-period.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-search.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-text.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-summary.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +1 -1
- package/dist/cjs/snk-form_2.cjs.entry.js +433 -0
- package/dist/cjs/snk-grid.cjs.entry.js +5 -5
- package/dist/cjs/{snk-guides-viewer-450baf6a.js → snk-guides-viewer-edc0a00a.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +6 -6
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +1 -1
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +2 -2
- package/dist/cjs/snk-pesquisa.cjs.entry.js +2 -2
- 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 +6 -6
- package/dist/cjs/snk-taskbar.cjs.entry.js +3 -3
- package/dist/cjs/sortable.esm-9a110bb7.js +2668 -0
- package/dist/cjs/{taskbar-elements-6f4e06af.js → taskbar-elements-3b74cd21.js} +2 -2
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +7 -14
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
- package/dist/collection/components/snk-form-config/FormConfigHelper.js +245 -0
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +4 -5
- package/dist/collection/components/snk-form-config/config-header/config-header.css +18 -0
- package/dist/collection/components/snk-form-config/config-header/config-header.js +236 -0
- package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.css +41 -0
- package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.js +170 -0
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.css +21 -0
- package/dist/collection/components/snk-form-config/field-item/field-config/field-config.js +408 -0
- package/dist/collection/components/snk-form-config/field-item/field-item.css +108 -0
- package/dist/collection/components/snk-form-config/field-item/field-item.js +206 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +133 -0
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.js +578 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +38 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +146 -0
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.css +132 -0
- package/dist/collection/components/snk-form-config/guides-configurator/guides-configurator.js +317 -0
- package/dist/collection/components/snk-form-config/snk-form-config.css +16 -229
- package/dist/collection/components/snk-form-config/snk-form-config.js +288 -980
- package/dist/collection/lib/message/resources/snk-form.msg.js +16 -2
- package/dist/collection/lib/utils/constants.js +7 -1
- package/dist/components/SnkFormConfigManager.js +2 -3
- package/dist/components/SnkMessageBuilder.js +16 -2
- package/dist/components/{snk-tab-config.d.ts → config-header.d.ts} +4 -4
- package/dist/components/config-header.js +6 -0
- package/dist/components/config-header2.js +103 -0
- package/dist/components/{snk-config-options.d.ts → configs-button.d.ts} +4 -4
- package/dist/components/configs-button.js +6 -0
- package/dist/components/configs-button2.js +76 -0
- package/dist/components/constants.js +8 -34
- package/dist/components/field-config.d.ts +11 -0
- package/dist/components/field-config.js +6 -0
- package/dist/components/field-config2.js +525 -0
- package/dist/components/field-item.d.ts +11 -0
- package/dist/components/field-item.js +6 -0
- package/dist/components/field-item2.js +93 -0
- package/dist/components/fields-layout.d.ts +11 -0
- package/dist/components/fields-layout.js +6 -0
- package/dist/components/fields-layout2.js +370 -0
- package/dist/components/{snk-field-config.d.ts → fields-selector.d.ts} +4 -4
- package/dist/components/fields-selector.js +6 -0
- package/dist/components/fields-selector2.js +98 -0
- package/dist/components/guides-configurator.d.ts +11 -0
- package/dist/components/guides-configurator.js +6 -0
- package/dist/components/guides-configurator2.js +182 -0
- package/dist/components/index.d.ts +7 -3
- package/dist/components/index.js +7 -3
- package/dist/components/index2.js +3 -4
- package/dist/components/snk-application2.js +1 -1
- package/dist/components/snk-crud.js +86 -62
- package/dist/components/snk-detail-view2.js +113 -89
- package/dist/components/snk-form-config2.js +253 -953
- package/dist/components/snk-form.js +33 -9
- package/dist/components/sortable.esm.js +2666 -0
- package/dist/esm/{ClientSideExporterProvider-b3871edb.js → ClientSideExporterProvider-3ed744fd.js} +2 -2
- package/dist/esm/FormConfigHelper-49fe72ca.js +248 -0
- package/dist/esm/{SnkFormConfigManager-327dfdd4.js → SnkFormConfigManager-b4b93298.js} +2 -3
- package/dist/esm/{SnkMessageBuilder-0f112c19.js → SnkMessageBuilder-9c269caf.js} +16 -2
- package/dist/esm/config-header.entry.js +75 -0
- package/dist/esm/configs-button.entry.js +57 -0
- package/dist/esm/{constants-7db1128a.js → constants-7b422de0.js} +8 -34
- package/dist/esm/field-config_2.entry.js +319 -0
- package/dist/esm/fields-layout.entry.js +337 -0
- package/dist/esm/fields-selector.entry.js +70 -0
- package/dist/esm/guides-configurator.entry.js +160 -0
- package/dist/esm/{index-a7d3d3f1.js → index-479e1293.js} +28 -10
- package/dist/esm/{index-bdf75557.js → index-b72af127.js} +4 -5
- package/dist/esm/loader.js +3 -3
- package/dist/esm/pesquisa-grid_2.entry.js +2 -2
- package/dist/esm/sankhyablocks.js +3 -3
- package/dist/esm/snk-actions-button_8.entry.js +2 -2
- package/dist/esm/snk-actions-form.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +3 -3
- package/dist/esm/snk-attach.entry.js +4 -4
- package/dist/esm/snk-client-confirm.entry.js +1 -1
- package/dist/esm/snk-configurator.entry.js +2 -2
- package/dist/esm/snk-crud.entry.js +4 -4
- package/dist/esm/snk-custom-slot-elements.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +4 -4
- package/dist/esm/{snk-data-unit-a95dc9fe.js → snk-data-unit-027bca56.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-default-filter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +7 -7
- 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 +1 -1
- package/dist/esm/snk-filter-bar_4.entry.js +1 -1
- 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 +1 -1
- package/dist/esm/snk-filter-field-search_2.entry.js +1 -1
- package/dist/esm/snk-filter-modal-item.entry.js +1 -1
- package/dist/esm/snk-filter-multi-select.entry.js +1 -1
- package/dist/esm/snk-filter-number.entry.js +1 -1
- package/dist/esm/snk-filter-period.entry.js +1 -1
- package/dist/esm/snk-filter-search.entry.js +1 -1
- package/dist/esm/snk-filter-text.entry.js +1 -1
- package/dist/esm/snk-form-summary.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +1 -1
- package/dist/esm/snk-form_2.entry.js +428 -0
- package/dist/esm/snk-grid.entry.js +5 -5
- package/dist/esm/{snk-guides-viewer-ebb40908.js → snk-guides-viewer-32f3d3ab.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +6 -6
- package/dist/esm/snk-personalized-filter-editor.entry.js +1 -1
- package/dist/esm/snk-personalized-filter.entry.js +2 -2
- package/dist/esm/snk-pesquisa.entry.js +2 -2
- 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 +6 -6
- package/dist/esm/snk-taskbar.entry.js +3 -3
- package/dist/esm/sortable.esm-842f85a3.js +2666 -0
- package/dist/esm/{taskbar-elements-f2cb4922.js → taskbar-elements-171476d4.js} +2 -2
- package/dist/esm/teste-pesquisa.entry.js +1 -1
- package/dist/sankhyablocks/{p-24a0dbd2.entry.js → p-0024d3fd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-e6d90f89.entry.js → p-09e60995.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7effe55f.entry.js → p-0cb295c1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b0ab5066.entry.js → p-1456d7cb.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9531fd46.entry.js → p-180716b2.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6a03b190.entry.js → p-1ea34488.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5182513e.entry.js → p-21107f0d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-118e769b.entry.js → p-27482793.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d257ff20.entry.js → p-290fea5f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-794840bd.entry.js → p-295aa209.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bd6a6203.js → p-2bde486e.js} +1 -1
- package/dist/sankhyablocks/{p-26b0ce3e.entry.js → p-2fdac5e6.entry.js} +1 -1
- package/dist/sankhyablocks/p-349d1968.entry.js +1 -0
- package/dist/sankhyablocks/p-35e73c5d.js +1 -0
- package/dist/sankhyablocks/{p-89c92727.entry.js → p-398cdd67.entry.js} +1 -1
- package/dist/sankhyablocks/{p-39f3b02d.entry.js → p-3a48bff3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-434817f0.entry.js → p-3d41f5a8.entry.js} +1 -1
- package/dist/sankhyablocks/p-3f24c9b2.js +1 -0
- package/dist/sankhyablocks/{p-def1fe2d.entry.js → p-471b34f4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7e2ded86.entry.js → p-49d968e2.entry.js} +1 -1
- package/dist/sankhyablocks/p-4d2ff2fb.entry.js +1 -0
- package/dist/sankhyablocks/p-51833248.js +7 -0
- package/dist/sankhyablocks/{p-814d99ec.entry.js → p-60dd1d27.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bd7ccf60.entry.js → p-65c5d430.entry.js} +1 -1
- package/dist/sankhyablocks/{p-21a81901.entry.js → p-667cab42.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a9813a81.entry.js → p-71a05822.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ac8d1cd6.entry.js → p-7345782c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-885802c3.js → p-763b04fa.js} +1 -1
- package/dist/sankhyablocks/{p-d07b18a4.js → p-7de79adf.js} +1 -1
- package/dist/sankhyablocks/p-7e250432.entry.js +1 -0
- package/dist/sankhyablocks/{p-47178038.entry.js → p-83c100f2.entry.js} +1 -1
- package/dist/sankhyablocks/p-86bd4478.entry.js +1 -0
- package/dist/sankhyablocks/p-9019a32f.js +1 -0
- package/dist/sankhyablocks/{p-70da6817.entry.js → p-90805683.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c2e468c9.entry.js → p-91a9abb6.entry.js} +1 -1
- package/dist/sankhyablocks/p-9751c42f.entry.js +1 -0
- package/dist/sankhyablocks/{p-16a1dd18.entry.js → p-9a63f3f7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-90684a75.entry.js → p-9ad3557c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b6200d32.entry.js → p-9fd87bfd.entry.js} +1 -1
- package/dist/sankhyablocks/p-a06bf7b9.entry.js +1 -0
- package/dist/sankhyablocks/{p-33718dfc.entry.js → p-a227b650.entry.js} +1 -1
- package/dist/sankhyablocks/p-a349689a.js +1 -0
- package/dist/sankhyablocks/{p-13a0ead0.entry.js → p-a5bb2f93.entry.js} +1 -1
- package/dist/sankhyablocks/{p-088d7e7b.js → p-a6513fcb.js} +1 -1
- package/dist/sankhyablocks/{p-8c235d4c.entry.js → p-a76e6d51.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ce94e6c4.entry.js → p-bd665460.entry.js} +1 -1
- package/dist/sankhyablocks/p-c3324d79.entry.js +1 -0
- package/dist/sankhyablocks/{p-bf2acf72.entry.js → p-c6a8a8bc.entry.js} +1 -1
- package/dist/sankhyablocks/{p-043bef5f.entry.js → p-c926cf6b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-79f823f3.entry.js → p-d67526b6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d2d301a6.js → p-d8d8169b.js} +1 -1
- package/dist/sankhyablocks/{p-5f157b09.entry.js → p-dff65083.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ab12216c.entry.js → p-e2988bb1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6a5f061b.entry.js → p-e3521eae.entry.js} +1 -1
- package/dist/sankhyablocks/{p-34f7a3ab.entry.js → p-e7cccc45.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1f80174b.entry.js → p-f4e31122.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c7492861.js → p-fc0b609e.js} +1 -1
- package/dist/sankhyablocks/{p-a14a09c3.entry.js → p-ff7060bc.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-form-config/FormConfigHelper.d.ts +31 -0
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +3 -3
- package/dist/types/components/snk-form-config/config-header/config-header.d.ts +23 -0
- package/dist/types/components/snk-form-config/config-header/configs-button/configs-button.d.ts +19 -0
- package/dist/types/components/snk-form-config/field-item/field-config/field-config.d.ts +56 -0
- package/dist/types/components/snk-form-config/fields-layout/fields-layout.d.ts +63 -0
- package/dist/types/components/snk-form-config/fields-selector/fields-selector.d.ts +18 -0
- package/dist/types/components/snk-form-config/guides-configurator/guides-configurator.d.ts +42 -0
- package/dist/types/components/snk-form-config/snk-form-config.d.ts +51 -120
- package/dist/types/components.d.ts +197 -199
- package/dist/types/lib/utils/constants.d.ts +6 -0
- package/package.json +4 -2
- package/react/components.d.ts +7 -3
- package/react/components.js +7 -3
- package/react/components.js.map +1 -1
- package/dist/cjs/Sortable-fb1c4cbb.js +0 -2853
- package/dist/cjs/snk-config-options_3.cjs.entry.js +0 -1390
- package/dist/cjs/snk-field-config.cjs.entry.js +0 -60
- package/dist/cjs/snk-tab-config.cjs.entry.js +0 -332
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.css +0 -16
- package/dist/collection/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.js +0 -346
- package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.css +0 -219
- package/dist/collection/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.js +0 -184
- package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.css +0 -323
- package/dist/collection/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js +0 -527
- package/dist/components/snk-config-options.js +0 -6
- package/dist/components/snk-config-options2.js +0 -257
- package/dist/components/snk-field-config.js +0 -6
- package/dist/components/snk-field-config2.js +0 -76
- package/dist/components/snk-tab-config.js +0 -6
- package/dist/components/snk-tab-config2.js +0 -3202
- package/dist/esm/Sortable-83960219.js +0 -2851
- package/dist/esm/snk-config-options_3.entry.js +0 -1384
- package/dist/esm/snk-field-config.entry.js +0 -56
- package/dist/esm/snk-tab-config.entry.js +0 -328
- package/dist/sankhyablocks/p-3749dffb.entry.js +0 -1
- package/dist/sankhyablocks/p-6dc031de.js +0 -1
- package/dist/sankhyablocks/p-79b3cccc.js +0 -1
- package/dist/sankhyablocks/p-9261d8a0.js +0 -1
- package/dist/sankhyablocks/p-c0eb761b.entry.js +0 -1
- package/dist/sankhyablocks/p-e3c71e43.entry.js +0 -1
- package/dist/sankhyablocks/p-fa816fb2.js +0 -1
- package/dist/types/components/snk-form-config/subcomponents/snk-config-options/snk-config-options.d.ts +0 -57
- package/dist/types/components/snk-form-config/subcomponents/snk-field-config/snk-field-config.d.ts +0 -43
- package/dist/types/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -105
@@ -30,23 +30,37 @@ export const snkFormConfigMessages = {
|
|
30
30
|
mainArea: "Área principal",
|
31
31
|
tabGeneral: "Geral"
|
32
32
|
},
|
33
|
+
configs: {
|
34
|
+
buttonLabel: "Configurações",
|
35
|
+
selectedConfig: "configuração selecionada"
|
36
|
+
},
|
33
37
|
confirm: {
|
34
38
|
title: "Aviso",
|
35
39
|
deleteTab: "Você realmente deseja excluir a aba",
|
40
|
+
deleteGuide: "Deseja realmente excluir a guia <b>{0}</b>?",
|
36
41
|
cancel: "As alterações realizadas serão descartadas.<br/><br/><b>Gostaria de continuar?</b>",
|
37
42
|
exit: "Ao sair as alterações serão descartadas.<br/><br/><b>Você realmente gostaria de sair?</b>",
|
38
|
-
apply: "A <b>{0}</b> irá substituir a
|
43
|
+
apply: "A <b>{0}</b> irá substituir a configuração atual!<br/><br/><b>Deseja continuar?</b>",
|
39
44
|
group: "Não é possível salvar as configurações com um grupo vazio!",
|
40
45
|
labelCancel: "Cancelar",
|
41
46
|
labelDelete: "Excluir"
|
42
47
|
},
|
48
|
+
noGuideSelected: {
|
49
|
+
title: "Atenção",
|
50
|
+
message: "Selecione uma guia para iniciar a configuração!"
|
51
|
+
},
|
43
52
|
alert: {
|
44
53
|
titleGroupExists: "Já existe um grupo com título",
|
54
|
+
titleGroupEditing: "Há um <b>grupo<b/> em edição. <br/> Finalize a edição para salvar as configurações.",
|
55
|
+
titleGuideExists: "Já existe uma guia com título",
|
56
|
+
titleGuideEditing: "Há uma <b>guia<b/> em edição. <br/> Finalize a edição para salvar as configurações.",
|
57
|
+
titleGuideReservedName: "Este título é reservado para configurações internas do sistema e não pode ser utilizado.",
|
45
58
|
infoValidTitle: "Por favor, digite um título válido.",
|
46
59
|
inTab: "na aba"
|
47
60
|
},
|
48
61
|
info: {
|
49
|
-
successfullyConfigSaved: "As configurações foram salvas com sucesso!"
|
62
|
+
successfullyConfigSaved: "As configurações foram salvas com sucesso!",
|
63
|
+
successfullyGuideDeleted: 'A guia "{0}" foi excluída. Salve para confirmar a alteração.'
|
50
64
|
}
|
51
65
|
};
|
52
66
|
export const snkFieldConfigMessages = {
|
@@ -57,7 +57,13 @@ export const TYPE_ACTIONS = {
|
|
57
57
|
delete: "DELETE"
|
58
58
|
};
|
59
59
|
export const TAB_NAMES = {
|
60
|
-
main: "__main"
|
60
|
+
main: "__main",
|
61
|
+
general: "Geral",
|
62
|
+
newGuide: "Nova guia",
|
63
|
+
};
|
64
|
+
export const GROUP_NAMES = {
|
65
|
+
noGroup: "__no_group",
|
66
|
+
newGroup: "Novo Grupo",
|
61
67
|
};
|
62
68
|
export const TAGS_BY_TYPE = {
|
63
69
|
LONGTEXT: "ez-text-area",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { C as ConfigStorage } from './ConfigStorage.js';
|
2
2
|
import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
|
3
3
|
import { F as FormConfigFetcher } from './form-config-fetcher.js';
|
4
|
-
import {
|
4
|
+
import { T as TAB_NAMES } from './constants.js';
|
5
5
|
|
6
6
|
class SnkFormConfigManager {
|
7
7
|
constructor(configName, resourceID, onConfigChange, dataUnit) {
|
@@ -29,8 +29,7 @@ class SnkFormConfigManager {
|
|
29
29
|
});
|
30
30
|
}
|
31
31
|
getEmptyConfig() {
|
32
|
-
|
33
|
-
return config;
|
32
|
+
return this.buildFormMetadataUITabs({ fields: [], emptyConfig: true }, true);
|
34
33
|
}
|
35
34
|
saveConfig(config) {
|
36
35
|
const configToSave = ObjectUtils.copy(config);
|
@@ -217,23 +217,37 @@ const snkFormConfigMessages = {
|
|
217
217
|
mainArea: "Área principal",
|
218
218
|
tabGeneral: "Geral"
|
219
219
|
},
|
220
|
+
configs: {
|
221
|
+
buttonLabel: "Configurações",
|
222
|
+
selectedConfig: "configuração selecionada"
|
223
|
+
},
|
220
224
|
confirm: {
|
221
225
|
title: "Aviso",
|
222
226
|
deleteTab: "Você realmente deseja excluir a aba",
|
227
|
+
deleteGuide: "Deseja realmente excluir a guia <b>{0}</b>?",
|
223
228
|
cancel: "As alterações realizadas serão descartadas.<br/><br/><b>Gostaria de continuar?</b>",
|
224
229
|
exit: "Ao sair as alterações serão descartadas.<br/><br/><b>Você realmente gostaria de sair?</b>",
|
225
|
-
apply: "A <b>{0}</b> irá substituir a
|
230
|
+
apply: "A <b>{0}</b> irá substituir a configuração atual!<br/><br/><b>Deseja continuar?</b>",
|
226
231
|
group: "Não é possível salvar as configurações com um grupo vazio!",
|
227
232
|
labelCancel: "Cancelar",
|
228
233
|
labelDelete: "Excluir"
|
229
234
|
},
|
235
|
+
noGuideSelected: {
|
236
|
+
title: "Atenção",
|
237
|
+
message: "Selecione uma guia para iniciar a configuração!"
|
238
|
+
},
|
230
239
|
alert: {
|
231
240
|
titleGroupExists: "Já existe um grupo com título",
|
241
|
+
titleGroupEditing: "Há um <b>grupo<b/> em edição. <br/> Finalize a edição para salvar as configurações.",
|
242
|
+
titleGuideExists: "Já existe uma guia com título",
|
243
|
+
titleGuideEditing: "Há uma <b>guia<b/> em edição. <br/> Finalize a edição para salvar as configurações.",
|
244
|
+
titleGuideReservedName: "Este título é reservado para configurações internas do sistema e não pode ser utilizado.",
|
232
245
|
infoValidTitle: "Por favor, digite um título válido.",
|
233
246
|
inTab: "na aba"
|
234
247
|
},
|
235
248
|
info: {
|
236
|
-
successfullyConfigSaved: "As configurações foram salvas com sucesso!"
|
249
|
+
successfullyConfigSaved: "As configurações foram salvas com sucesso!",
|
250
|
+
successfullyGuideDeleted: 'A guia "{0}" foi excluída. Salve para confirmar a alteração.'
|
237
251
|
}
|
238
252
|
};
|
239
253
|
const snkFieldConfigMessages = {
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
2
2
|
|
3
|
-
interface
|
4
|
-
export const
|
5
|
-
prototype:
|
6
|
-
new ():
|
3
|
+
interface ConfigHeader extends Components.ConfigHeader, HTMLElement {}
|
4
|
+
export const ConfigHeader: {
|
5
|
+
prototype: ConfigHeader;
|
6
|
+
new (): ConfigHeader;
|
7
7
|
};
|
8
8
|
/**
|
9
9
|
* Used to define this component and all nested components recursively.
|
@@ -0,0 +1,103 @@
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
3
|
+
import { d as defineCustomElement$1 } from './configs-button2.js';
|
4
|
+
|
5
|
+
const configHeaderCss = ".sc-config-header-h{display:flex;padding-top:12px;padding-left:12px;align-items:center;width:100%;justify-content:space-between}.left-group.sc-config-header{display:flex;gap:8px}.right-group.sc-config-header{padding-right:18px;display:flex}";
|
6
|
+
|
7
|
+
const ConfigHeader = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
8
|
+
constructor() {
|
9
|
+
super();
|
10
|
+
this.__registerHost();
|
11
|
+
this.configClose = createEvent(this, "configClose", 7);
|
12
|
+
this.saveConfig = createEvent(this, "saveConfig", 7);
|
13
|
+
this.isEditingGuide = false;
|
14
|
+
this.isEditingGroup = false;
|
15
|
+
this.configOptions = [];
|
16
|
+
this.selectedConfig = undefined;
|
17
|
+
this.messagesBuilder = undefined;
|
18
|
+
this.hasChanges = false;
|
19
|
+
this.optionConfigChanged = false;
|
20
|
+
}
|
21
|
+
handleIsEditingGuideName({ detail }) {
|
22
|
+
this.isEditingGuide = detail;
|
23
|
+
}
|
24
|
+
handleIsEditingGroupName({ detail }) {
|
25
|
+
this.isEditingGroup = detail;
|
26
|
+
}
|
27
|
+
saveFormConfig() {
|
28
|
+
if (this.isEditingGuide || this.isEditingGroup) {
|
29
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
30
|
+
const message = this.isEditingGuide
|
31
|
+
? this.getMessage('snkFormConfig.alert.titleGuideEditing')
|
32
|
+
: this.getMessage('snkFormConfig.alert.titleGroupEditing');
|
33
|
+
ApplicationUtils.alert(title, message);
|
34
|
+
return;
|
35
|
+
}
|
36
|
+
this.saveConfig.emit();
|
37
|
+
}
|
38
|
+
async closeFormConfig() {
|
39
|
+
if (this.hasChanges) {
|
40
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
41
|
+
const msg = this.getMessage('snkFormConfig.confirm.cancel');
|
42
|
+
const confirm = await ApplicationUtils.confirm(title, msg);
|
43
|
+
if (!confirm)
|
44
|
+
return;
|
45
|
+
}
|
46
|
+
this.configClose.emit();
|
47
|
+
}
|
48
|
+
getMessage(key, params) {
|
49
|
+
return this.messagesBuilder.getMessage(key, params);
|
50
|
+
}
|
51
|
+
openConfirmDialog(msg = '', title = this.getMessage('snkFormConfig.confirm.title')) {
|
52
|
+
return ApplicationUtils.confirm(title, msg);
|
53
|
+
}
|
54
|
+
async applyOptionConfig() {
|
55
|
+
var _a, _b;
|
56
|
+
const name = (_b = (_a = this.selectedConfig) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getMessage('snkFormConfig.configs.selectedConfig');
|
57
|
+
const msg = this.getMessage('snkFormConfig.confirm.apply').replace('{0}', name);
|
58
|
+
const confirm = await this.openConfirmDialog(msg);
|
59
|
+
if (confirm) {
|
60
|
+
this.saveConfig.emit();
|
61
|
+
}
|
62
|
+
}
|
63
|
+
renderSaveActions() {
|
64
|
+
if (!this.hasChanges && !this.optionConfigChanged)
|
65
|
+
return;
|
66
|
+
if (this.hasChanges) {
|
67
|
+
return (h("div", { class: "right-group" }, h("ez-button", { title: 'Cancelar', label: 'Cancelar', onClick: this.closeFormConfig.bind(this), size: "medium" }), h("ez-button", { title: 'Salvar', label: 'Salvar', class: 'ez-button--primary ez-padding-left--medium', onClick: () => this.saveFormConfig(), size: "medium" })));
|
68
|
+
}
|
69
|
+
return (h("div", { class: "right-group" }, h("ez-button", { title: 'Cancelar', label: 'Cancelar', onClick: this.closeFormConfig.bind(this), size: "medium" }), h("ez-button", { title: 'Salvar', label: this.getMessage('snkFormConfig.applyConfig'), class: 'ez-button--primary ez-padding-left--medium', onClick: async () => await this.applyOptionConfig(), size: "medium" })));
|
70
|
+
}
|
71
|
+
render() {
|
72
|
+
return (h(Host, null, h("div", { class: 'left-group' }, h("ez-button", { mode: "icon", title: this.getMessage('snkFormConfig.goBackTitle'), iconName: "arrow_back", class: "ez-padding--small", size: "small", onClick: this.closeFormConfig.bind(this), id: "formConfigToBack" }), h("h1", { class: "ez-title ez-title--primary ez-title--extra-large ez-padding--small" }, this.getMessage('snkFormConfig.title')), h("configs-button", { hasChanges: this.hasChanges, configOptions: this.configOptions, selectedConfig: this.selectedConfig, messagesBuilder: this.messagesBuilder })), this.renderSaveActions()));
|
73
|
+
}
|
74
|
+
static get style() { return configHeaderCss; }
|
75
|
+
}, [2, "config-header", {
|
76
|
+
"configOptions": [16],
|
77
|
+
"selectedConfig": [16],
|
78
|
+
"messagesBuilder": [1040],
|
79
|
+
"hasChanges": [4, "has-changes"],
|
80
|
+
"optionConfigChanged": [4, "option-config-changed"],
|
81
|
+
"isEditingGuide": [32],
|
82
|
+
"isEditingGroup": [32]
|
83
|
+
}, [[16, "isEditingGuideName", "handleIsEditingGuideName"], [16, "isEditingGroupName", "handleIsEditingGroupName"]]]);
|
84
|
+
function defineCustomElement() {
|
85
|
+
if (typeof customElements === "undefined") {
|
86
|
+
return;
|
87
|
+
}
|
88
|
+
const components = ["config-header", "configs-button"];
|
89
|
+
components.forEach(tagName => { switch (tagName) {
|
90
|
+
case "config-header":
|
91
|
+
if (!customElements.get(tagName)) {
|
92
|
+
customElements.define(tagName, ConfigHeader);
|
93
|
+
}
|
94
|
+
break;
|
95
|
+
case "configs-button":
|
96
|
+
if (!customElements.get(tagName)) {
|
97
|
+
defineCustomElement$1();
|
98
|
+
}
|
99
|
+
break;
|
100
|
+
} });
|
101
|
+
}
|
102
|
+
|
103
|
+
export { ConfigHeader as C, defineCustomElement as d };
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import type { Components, JSX } from "../types/components";
|
2
2
|
|
3
|
-
interface
|
4
|
-
export const
|
5
|
-
prototype:
|
6
|
-
new ():
|
3
|
+
interface ConfigsButton extends Components.ConfigsButton, HTMLElement {}
|
4
|
+
export const ConfigsButton: {
|
5
|
+
prototype: ConfigsButton;
|
6
|
+
new (): ConfigsButton;
|
7
7
|
};
|
8
8
|
/**
|
9
9
|
* Used to define this component and all nested components recursively.
|
@@ -0,0 +1,76 @@
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/core/internal/client';
|
2
|
+
import { ObjectUtils } from '@sankhyalabs/core';
|
3
|
+
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
4
|
+
|
5
|
+
const configsButtonCss = ".dropdown-container.sc-configs-button{font-family:'Roboto';font-size:12px;font-weight:400;display:flex;flex-direction:column;color:#2b3a54;width:200px}.main-item.sc-configs-button{padding:12px;font-size:14px;cursor:pointer;transition:all .2s ease-in-out;display:flex;flex-direction:row;gap:8px;align-items:center;justify-content:start}.main-item.sc-configs-button ez-icon.sc-configs-button{--ez-icon--color:#008561}.main-item.sc-configs-button:nth-of-type(1){padding-bottom:6px}.main-item.sc-configs-button:nth-of-type(2){padding-top:6px}.main-item.sc-configs-button:hover{background-color:#FAFCFF}.item-label.sc-configs-button{display:flex}";
|
6
|
+
|
7
|
+
const ConfigsButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
8
|
+
constructor() {
|
9
|
+
super();
|
10
|
+
this.__registerHost();
|
11
|
+
this.formConfigOptionSelected = createEvent(this, "formConfigOptionSelected", 7);
|
12
|
+
this.configOptions = [];
|
13
|
+
this.selectedConfig = undefined;
|
14
|
+
this.hasChanges = false;
|
15
|
+
this.messagesBuilder = undefined;
|
16
|
+
}
|
17
|
+
getMessage(key, params) {
|
18
|
+
return this.messagesBuilder.getMessage(key, params);
|
19
|
+
}
|
20
|
+
async showShareConfigOptions() {
|
21
|
+
if (this._refOptionsPopover && this._refShareConfigBtn) {
|
22
|
+
await this._refOptionsPopover.showUnder(this._refShareConfigBtn);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
async handleSelectOption(option) {
|
26
|
+
if (ObjectUtils.equals(option, this.selectedConfig))
|
27
|
+
return;
|
28
|
+
if (this.hasChanges) {
|
29
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
30
|
+
const msg = this.getMessage('snkFormConfig.confirm.cancel');
|
31
|
+
const confirm = await ApplicationUtils.confirm(title, msg);
|
32
|
+
if (!confirm)
|
33
|
+
return;
|
34
|
+
}
|
35
|
+
this.selectedConfig = option;
|
36
|
+
this.formConfigOptionSelected.emit(option);
|
37
|
+
await this._refOptionsPopover.hide();
|
38
|
+
}
|
39
|
+
getButtonLabel() {
|
40
|
+
var _a, _b;
|
41
|
+
return (_b = (_a = this.selectedConfig) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getMessage('snkFormConfig.configs.buttonLabel');
|
42
|
+
}
|
43
|
+
renderConfigOptions() {
|
44
|
+
return this.configOptions.map((option) => {
|
45
|
+
return (h("div", { class: `main-item`, onClick: async () => await this.handleSelectOption(option) }, h("span", { class: 'item-label' }, " ", option.name), this.renderCheckIcon(option)));
|
46
|
+
});
|
47
|
+
}
|
48
|
+
renderCheckIcon(option) {
|
49
|
+
if (this.selectedConfig && this.selectedConfig.origin === option.origin)
|
50
|
+
return h("ez-icon", { iconName: "check" });
|
51
|
+
}
|
52
|
+
render() {
|
53
|
+
return (h(Host, null, h("ez-button", { ref: ref => this._refShareConfigBtn = ref, label: this.getButtonLabel(), onClick: async () => await this.showShareConfigOptions() }, h("ez-icon", { slot: "rightIcon", iconName: "chevron-down" })), h("ez-popover-plus", { ref: ref => this._refOptionsPopover = ref, autoClose: true, overlayType: "none" }, h("div", { class: 'dropdown-container' }, this.renderConfigOptions()))));
|
54
|
+
}
|
55
|
+
static get style() { return configsButtonCss; }
|
56
|
+
}, [2, "configs-button", {
|
57
|
+
"configOptions": [16],
|
58
|
+
"selectedConfig": [16],
|
59
|
+
"hasChanges": [4, "has-changes"],
|
60
|
+
"messagesBuilder": [1040]
|
61
|
+
}]);
|
62
|
+
function defineCustomElement() {
|
63
|
+
if (typeof customElements === "undefined") {
|
64
|
+
return;
|
65
|
+
}
|
66
|
+
const components = ["configs-button"];
|
67
|
+
components.forEach(tagName => { switch (tagName) {
|
68
|
+
case "configs-button":
|
69
|
+
if (!customElements.get(tagName)) {
|
70
|
+
customElements.define(tagName, ConfigsButton);
|
71
|
+
}
|
72
|
+
break;
|
73
|
+
} });
|
74
|
+
}
|
75
|
+
|
76
|
+
export { ConfigsButton as C, defineCustomElement as d };
|
@@ -5,11 +5,6 @@ var VIEW_MODE;
|
|
5
5
|
VIEW_MODE[VIEW_MODE["FORM"] = 1] = "FORM";
|
6
6
|
VIEW_MODE[VIEW_MODE["ATTACHMENT"] = 2] = "ATTACHMENT";
|
7
7
|
})(VIEW_MODE || (VIEW_MODE = {}));
|
8
|
-
const ACTION_CONFIG = {
|
9
|
-
add: 'ADD',
|
10
|
-
remove: 'REMOVE',
|
11
|
-
configuration: 'CONFIGURATION'
|
12
|
-
};
|
13
8
|
const VARS_BY_TYPE = {
|
14
9
|
UserInterface: {
|
15
10
|
DATE: [{ label: "Data atual", value: "${data}" }],
|
@@ -26,35 +21,14 @@ const DEFAULT_TYPE = {
|
|
26
21
|
fixed: "F",
|
27
22
|
variable: "V"
|
28
23
|
};
|
29
|
-
const CONFIG_EVENTS = {
|
30
|
-
closeModal: "ezCloseModal",
|
31
|
-
cancelConfig: "cancelConfig",
|
32
|
-
changeConfig: "changeConfig",
|
33
|
-
configChanged: "configChanged",
|
34
|
-
fieldChanged: "ezChange",
|
35
|
-
dragStartDistance: 40
|
36
|
-
};
|
37
|
-
const CONFIG_SORTABLE_EVENTS = {
|
38
|
-
dragStart: "sortable:start",
|
39
|
-
dragSort: "sortable:sort",
|
40
|
-
dragSorted: "sortable:sorted",
|
41
|
-
dragStop: "sortable:stop"
|
42
|
-
};
|
43
|
-
const KEY_EVENTS = {
|
44
|
-
enter: "Enter",
|
45
|
-
arrowLeft: "ArrowLeft",
|
46
|
-
arrowRight: "ArrowRight",
|
47
|
-
tab: "Tab",
|
48
|
-
escape: "Escape"
|
49
|
-
};
|
50
|
-
const TYPE_ACTIONS = {
|
51
|
-
rename: "RENAME",
|
52
|
-
hide: "HIDE",
|
53
|
-
show: "SHOW",
|
54
|
-
delete: "DELETE"
|
55
|
-
};
|
56
24
|
const TAB_NAMES = {
|
57
|
-
main: "__main"
|
25
|
+
main: "__main",
|
26
|
+
general: "Geral",
|
27
|
+
newGuide: "Nova guia",
|
28
|
+
};
|
29
|
+
const GROUP_NAMES = {
|
30
|
+
noGroup: "__no_group",
|
31
|
+
newGroup: "Novo Grupo",
|
58
32
|
};
|
59
33
|
const TAGS_BY_TYPE = {
|
60
34
|
LONGTEXT: "ez-text-area",
|
@@ -100,4 +74,4 @@ var TEMPLATES_SKELETON;
|
|
100
74
|
TEMPLATES_SKELETON[TEMPLATES_SKELETON["FORM_WITH_SIDEBAR"] = 4] = "FORM_WITH_SIDEBAR";
|
101
75
|
})(TEMPLATES_SKELETON || (TEMPLATES_SKELETON = {}));
|
102
76
|
|
103
|
-
export {
|
77
|
+
export { DEFAULT_TYPE as D, GROUP_NAMES as G, ORDER_VALUES as O, REPORT_LAUNCHER_RESOURCE_ID as R, SIMPLE_CRUD_MODE as S, TAB_NAMES as T, VIEW_MODE as V, VARS_BY_TYPE as a, TAGS_BY_TYPE as b, TEMPLATES_SKELETON as c };
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
2
|
+
|
3
|
+
interface FieldConfig extends Components.FieldConfig, HTMLElement {}
|
4
|
+
export const FieldConfig: {
|
5
|
+
prototype: FieldConfig;
|
6
|
+
new (): FieldConfig;
|
7
|
+
};
|
8
|
+
/**
|
9
|
+
* Used to define this component and all nested components recursively.
|
10
|
+
*/
|
11
|
+
export const defineCustomElement: () => void;
|