@sankhyalabs/sankhyablocks 8.16.0-dev.114 → 8.16.0-dev.116
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 +2 -2
- 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-filter-bar/snk-filter-bar.css +1 -0
- 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-filter-bar2.js +1 -1
- 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 +2 -2
- 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-11f099ea.entry.js +1 -0
- 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-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-d257ff20.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
@@ -1,8 +1,8 @@
|
|
1
1
|
'use strict';
|
2
2
|
|
3
|
-
const index = require('./index-
|
3
|
+
const index = require('./index-1cf293c1.js');
|
4
4
|
const index$2 = require('./index-e3e39724.js');
|
5
|
-
const index$1 = require('./index-
|
5
|
+
const index$1 = require('./index-0ad2baeb.js');
|
6
6
|
|
7
7
|
exports.TaskbarElement = void 0;
|
8
8
|
(function (TaskbarElement) {
|
@@ -35,10 +35,14 @@
|
|
35
35
|
"./components/snk-filter-bar/filter-modal/subcomponents/snk-default-filter/snk-default-filter.js",
|
36
36
|
"./components/snk-filter-field-search/snk-filter-field-search.js",
|
37
37
|
"./components/snk-form/snk-form.js",
|
38
|
-
"./components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config.js",
|
39
38
|
"./components/snk-form-config/snk-form-config.js",
|
40
|
-
"./components/snk-form-config/
|
41
|
-
"./components/snk-form-config/
|
39
|
+
"./components/snk-form-config/config-header/config-header.js",
|
40
|
+
"./components/snk-form-config/config-header/configs-button/configs-button.js",
|
41
|
+
"./components/snk-form-config/field-item/field-item.js",
|
42
|
+
"./components/snk-form-config/field-item/field-config/field-config.js",
|
43
|
+
"./components/snk-form-config/fields-layout/fields-layout.js",
|
44
|
+
"./components/snk-form-config/fields-selector/fields-selector.js",
|
45
|
+
"./components/snk-form-config/guides-configurator/guides-configurator.js",
|
42
46
|
"./components/snk-grid/snk-grid.js",
|
43
47
|
"./components/snk-grid-config/snk-grid-config.js",
|
44
48
|
"./components/snk-grid-config/snk-select-box/snk-select-box.js",
|
@@ -72,11 +76,6 @@
|
|
72
76
|
"snk-application"
|
73
77
|
]
|
74
78
|
},
|
75
|
-
{
|
76
|
-
"components": [
|
77
|
-
"snk-tab-config"
|
78
|
-
]
|
79
|
-
},
|
80
79
|
{
|
81
80
|
"components": [
|
82
81
|
"snk-configurator"
|
@@ -122,11 +121,6 @@
|
|
122
121
|
"snk-data-unit"
|
123
122
|
]
|
124
123
|
},
|
125
|
-
{
|
126
|
-
"components": [
|
127
|
-
"snk-field-config"
|
128
|
-
]
|
129
|
-
},
|
130
124
|
{
|
131
125
|
"components": [
|
132
126
|
"snk-grid"
|
@@ -144,7 +138,6 @@
|
|
144
138
|
},
|
145
139
|
{
|
146
140
|
"components": [
|
147
|
-
"snk-config-options",
|
148
141
|
"snk-form",
|
149
142
|
"snk-form-config"
|
150
143
|
]
|
@@ -544,7 +544,7 @@ export class SnkGuidesViewer {
|
|
544
544
|
render() {
|
545
545
|
var _a, _b;
|
546
546
|
if (this._formEditorConfigManager != undefined) {
|
547
|
-
return (h("snk-form-config", { tabindex: -1, dataUnit: this._formEditorDataUnit, messagesBuilder: this.messagesBuilder, configManager: this._formEditorConfigManager, onConfigClose: () => this._formEditorConfigManager = null
|
547
|
+
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 }));
|
548
548
|
}
|
549
549
|
if (!this.dataUnit || !this._configManager.isLoaded) {
|
550
550
|
return;
|
@@ -0,0 +1,245 @@
|
|
1
|
+
import { DataType, UserInterface } from '@sankhyalabs/core';
|
2
|
+
import { DEFAULT_TYPE, GROUP_NAMES, TAB_NAMES } from '../../lib/utils/constants';
|
3
|
+
const iconMap = new Map([
|
4
|
+
[UserInterface.DATE, 'calendar'],
|
5
|
+
[UserInterface.DATETIME, 'calendar-clock'],
|
6
|
+
[UserInterface.ELAPSEDTIME, 'timer-outline'],
|
7
|
+
[UserInterface.TIME, 'timer-outline'],
|
8
|
+
[UserInterface.DECIMALNUMBER, 'number'],
|
9
|
+
[UserInterface.INTEGERNUMBER, 'number'],
|
10
|
+
[UserInterface.FILE, 'zip'],
|
11
|
+
[UserInterface.IMAGE, 'pdf'],
|
12
|
+
[UserInterface.HTML, 'tag_code'],
|
13
|
+
[UserInterface.SEARCH, 'search'],
|
14
|
+
[UserInterface.SEARCHPLUS, 'search'],
|
15
|
+
[UserInterface.OPTIONSELECTOR, 'list'],
|
16
|
+
[UserInterface.CHECKBOX, 'list'],
|
17
|
+
[UserInterface.SWITCH, 'boolean'],
|
18
|
+
[UserInterface.PASSWORD, 'eye-off'],
|
19
|
+
]);
|
20
|
+
export const ID_AVAILABLE_FIELDS = 'container-available-fields';
|
21
|
+
export var SORTABLE_PATH;
|
22
|
+
(function (SORTABLE_PATH) {
|
23
|
+
SORTABLE_PATH["FROM"] = "from";
|
24
|
+
SORTABLE_PATH["TO"] = "to";
|
25
|
+
})(SORTABLE_PATH || (SORTABLE_PATH = {}));
|
26
|
+
export function getFieldsStructure(evt, path, group, tab) {
|
27
|
+
var _a;
|
28
|
+
const htmlStructure = (_a = evt === null || evt === void 0 ? void 0 : evt[path]) === null || _a === void 0 ? void 0 : _a.children;
|
29
|
+
if (!htmlStructure)
|
30
|
+
return [];
|
31
|
+
return Array.from(htmlStructure).map(({ fieldConfig }) => {
|
32
|
+
return Object.assign(Object.assign({}, fieldConfig), { group, tab });
|
33
|
+
});
|
34
|
+
}
|
35
|
+
export function updateTabInFieldsFromGroupList(guideGroups, updatedName) {
|
36
|
+
return guideGroups.map(group => {
|
37
|
+
return Object.assign(Object.assign({}, group), { fields: group.fields.map(field => (Object.assign(Object.assign({}, field), { tab: updatedName }))) });
|
38
|
+
});
|
39
|
+
}
|
40
|
+
export function getValidatedFieldValue(fieldValue, dataUnit, fieldName) {
|
41
|
+
var _a;
|
42
|
+
if (fieldValue == undefined || !dataUnit || !fieldName)
|
43
|
+
return;
|
44
|
+
const dataType = (_a = dataUnit.getField(fieldName)) === null || _a === void 0 ? void 0 : _a.dataType;
|
45
|
+
if (dataType == undefined)
|
46
|
+
return;
|
47
|
+
if ((fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.waitmessage) !== undefined)
|
48
|
+
return undefined;
|
49
|
+
const isNonObjectValue = dataType !== DataType.OBJECT &&
|
50
|
+
dataType !== DataType.DATE &&
|
51
|
+
typeof fieldValue === 'object';
|
52
|
+
const processedValue = isNonObjectValue ? fieldValue.value : fieldValue;
|
53
|
+
return dataType === DataType.OBJECT
|
54
|
+
? JSON.stringify(processedValue)
|
55
|
+
: processedValue;
|
56
|
+
}
|
57
|
+
export function getEnabledByProperty(attribName, propertyName, fieldDescriptor) {
|
58
|
+
if (!fieldDescriptor)
|
59
|
+
return true;
|
60
|
+
const fieldProperties = fieldDescriptor.properties || {};
|
61
|
+
const fromAttribName = fieldDescriptor[attribName] !== true;
|
62
|
+
return fieldProperties.hasOwnProperty(propertyName)
|
63
|
+
? fieldProperties[propertyName] !== 'S'
|
64
|
+
: fromAttribName;
|
65
|
+
}
|
66
|
+
export function getValueByProperty(property, fieldDescriptor, defaultValue) {
|
67
|
+
if (fieldDescriptor && fieldDescriptor[property] === true) {
|
68
|
+
return true;
|
69
|
+
}
|
70
|
+
return defaultValue;
|
71
|
+
}
|
72
|
+
export function getIconName(userInterface) {
|
73
|
+
return iconMap.get(userInterface) || 'text';
|
74
|
+
}
|
75
|
+
export function buildNewGuideName(guidesList) {
|
76
|
+
var _a, _b;
|
77
|
+
const qtdWithNewGuideName = (_b = (_a = guidesList.filter(g => g.name.includes(TAB_NAMES.newGuide))) === null || _a === void 0 ? void 0 : _a.length) !== null && _b !== void 0 ? _b : 0;
|
78
|
+
return qtdWithNewGuideName === 0
|
79
|
+
? TAB_NAMES.newGuide
|
80
|
+
: `${TAB_NAMES.newGuide} (${qtdWithNewGuideName})`;
|
81
|
+
}
|
82
|
+
export function getFieldsToSave(guidesMap) {
|
83
|
+
const fieldsToSave = [];
|
84
|
+
guidesMap.forEach(groups => {
|
85
|
+
groups.forEach(({ fields }) => {
|
86
|
+
fields === null || fields === void 0 ? void 0 : fields.forEach((fieldConfig) => {
|
87
|
+
fieldsToSave.push(buildFieldToSave(fieldConfig));
|
88
|
+
});
|
89
|
+
});
|
90
|
+
});
|
91
|
+
return fieldsToSave;
|
92
|
+
}
|
93
|
+
export function buildGuidesMap(rawFields, tabs, dataUnit, generalTab) {
|
94
|
+
const fields = handleFieldsTabNames(rawFields);
|
95
|
+
const guidesMap = initGuidesMap(tabs);
|
96
|
+
if (!(fields === null || fields === void 0 ? void 0 : fields.length))
|
97
|
+
return;
|
98
|
+
for (let guideName of guidesMap.keys()) {
|
99
|
+
const fieldsFromGuide = getFieldsFromGuide(fields, guideName, generalTab);
|
100
|
+
const fieldsByGroupMap = getGroupsFromGuide(fieldsFromGuide, dataUnit, generalTab);
|
101
|
+
const groupsList = parserGroupMapIntoList(fieldsByGroupMap);
|
102
|
+
guidesMap.set(guideName, groupsList);
|
103
|
+
}
|
104
|
+
return guidesMap;
|
105
|
+
}
|
106
|
+
export function buildGuides(config, mainArea) {
|
107
|
+
let tabs = config.tabs ? [...config.tabs] : buildTabsFromFields(config === null || config === void 0 ? void 0 : config.fields);
|
108
|
+
tabs = getPossibleGuides(tabs);
|
109
|
+
tabs = initializeTabsNames(tabs);
|
110
|
+
return handleMainTab(tabs, mainArea);
|
111
|
+
}
|
112
|
+
function handleFieldsTabNames(allFields) {
|
113
|
+
// Campos que não fazem parte de nenhuma aba ou da aba "Geral", devem ser movidos para a aba __main.
|
114
|
+
return allFields.map(field => {
|
115
|
+
const tabName = field.tab;
|
116
|
+
return Object.assign(Object.assign({}, field), { tab: (!tabName || tabName === TAB_NAMES.general) ? TAB_NAMES.main : field.tab });
|
117
|
+
});
|
118
|
+
}
|
119
|
+
function initializeTabsNames(tabs) {
|
120
|
+
return tabs.map((tab) => {
|
121
|
+
return Object.assign(Object.assign({}, tab), { name: tab.name ? tab.name : tab.label });
|
122
|
+
});
|
123
|
+
}
|
124
|
+
function handleMainTab(tabs, mainTabName) {
|
125
|
+
const mainTab = { name: TAB_NAMES.main, label: mainTabName, visible: true };
|
126
|
+
const hasTabMain = tabs.some((tab) => tab.name === TAB_NAMES.main);
|
127
|
+
if (hasTabMain) {
|
128
|
+
tabs = tabs.map(tab => tab.name === TAB_NAMES.main ? mainTab : tab);
|
129
|
+
}
|
130
|
+
else {
|
131
|
+
tabs.unshift(mainTab);
|
132
|
+
}
|
133
|
+
return tabs;
|
134
|
+
}
|
135
|
+
function getPossibleGuides(tabs) {
|
136
|
+
//O usuário não pode criar uma guia com o nome "Geral".
|
137
|
+
// Nesses casos, precisamos mover os campos dessa guia, para a guia __main.
|
138
|
+
return [...tabs.filter(tab => tab.label !== TAB_NAMES.general)];
|
139
|
+
}
|
140
|
+
function initGuidesMap(tabs) {
|
141
|
+
const map = new Map();
|
142
|
+
let possibleGuides = getPossibleGuides(tabs);
|
143
|
+
possibleGuides.forEach(tab => {
|
144
|
+
map.set(tab.name, []);
|
145
|
+
});
|
146
|
+
return map;
|
147
|
+
}
|
148
|
+
function handleFieldLabel(field, fieldDescriptor) {
|
149
|
+
if (!field.label) {
|
150
|
+
field.label = fieldDescriptor.label;
|
151
|
+
}
|
152
|
+
}
|
153
|
+
function handleFieldTab(field, generalTabName) {
|
154
|
+
if (!field.tab) {
|
155
|
+
field.tab = generalTabName;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
function handleFieldGroup(field) {
|
159
|
+
if (!field.group) {
|
160
|
+
field.group = GROUP_NAMES.noGroup;
|
161
|
+
}
|
162
|
+
}
|
163
|
+
function isVisibleOnConfig(fieldDescriptor) {
|
164
|
+
var _a;
|
165
|
+
/**
|
166
|
+
* Quando um campo é ocultado pelo dev, mas queremos manter ele na config precisamos fazer essa tratativa.
|
167
|
+
*/
|
168
|
+
return ((_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.properties) === null || _a === void 0 ? void 0 : _a.visibleOnConfig) === true && (fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.visible) === false;
|
169
|
+
}
|
170
|
+
function getGroupsFromGuide(fieldsFromGuide, dataUnit, generalTabName) {
|
171
|
+
const groupsMap = new Map();
|
172
|
+
groupsMap.set(GROUP_NAMES.noGroup, []);
|
173
|
+
for (let field of fieldsFromGuide) {
|
174
|
+
const fieldDescriptor = dataUnit.getField(field.name);
|
175
|
+
if (!(fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.visible) && !isVisibleOnConfig(fieldDescriptor))
|
176
|
+
continue;
|
177
|
+
handleFieldLabel(field, fieldDescriptor);
|
178
|
+
handleFieldTab(field, generalTabName);
|
179
|
+
handleFieldGroup(field);
|
180
|
+
if (groupsMap.has(field.group)) {
|
181
|
+
groupsMap.get(field.group).push(field);
|
182
|
+
}
|
183
|
+
else {
|
184
|
+
groupsMap.set(field.group, [field]);
|
185
|
+
}
|
186
|
+
}
|
187
|
+
return groupsMap;
|
188
|
+
}
|
189
|
+
function getFieldsFromGuide(fields, guideName, generalTabName) {
|
190
|
+
return fields.filter(field => {
|
191
|
+
const fieldTab = getTabName(field.tab, generalTabName);
|
192
|
+
return fieldTab === guideName;
|
193
|
+
});
|
194
|
+
}
|
195
|
+
function getTabName(tab, generalTabName) {
|
196
|
+
var _a;
|
197
|
+
if (typeof tab === 'string')
|
198
|
+
return tab;
|
199
|
+
return (_a = tab === null || tab === void 0 ? void 0 : tab.label) !== null && _a !== void 0 ? _a : generalTabName;
|
200
|
+
}
|
201
|
+
function parserGroupMapIntoList(groupsMap) {
|
202
|
+
const groupsList = [];
|
203
|
+
for (let groupName of groupsMap.keys()) {
|
204
|
+
groupsList.push({ name: groupName, fields: groupsMap.get(groupName) });
|
205
|
+
}
|
206
|
+
return groupsList;
|
207
|
+
}
|
208
|
+
function canAddTab(tab, guideList) {
|
209
|
+
return tab && !(guideList.map(g => g.name).includes(tab));
|
210
|
+
}
|
211
|
+
function buildTabsFromFields(fields) {
|
212
|
+
const guideList = [];
|
213
|
+
let order = 1;
|
214
|
+
fields === null || fields === void 0 ? void 0 : fields.forEach((field) => {
|
215
|
+
const tab = field.tab;
|
216
|
+
if (canAddTab(tab, guideList)) {
|
217
|
+
guideList.push({ name: tab, label: tab, visible: true, order });
|
218
|
+
order = order + 1;
|
219
|
+
}
|
220
|
+
});
|
221
|
+
return guideList;
|
222
|
+
}
|
223
|
+
function buildFieldToSave(fieldConfig) {
|
224
|
+
const fieldToSave = {
|
225
|
+
cleanOnCopy: fieldConfig.cleanOnCopy || false,
|
226
|
+
group: fieldConfig.group === GROUP_NAMES.noGroup ? undefined : fieldConfig.group,
|
227
|
+
label: fieldConfig.label,
|
228
|
+
name: fieldConfig.name,
|
229
|
+
required: fieldConfig.required,
|
230
|
+
readOnly: fieldConfig.readOnly,
|
231
|
+
tab: fieldConfig.tab,
|
232
|
+
};
|
233
|
+
if (fieldConfig.defaultValue != undefined) {
|
234
|
+
if (fieldConfig.defaultValue.type == undefined) {
|
235
|
+
fieldToSave.defaultValue = {
|
236
|
+
type: DEFAULT_TYPE.fixed,
|
237
|
+
value: fieldConfig.defaultValue,
|
238
|
+
};
|
239
|
+
}
|
240
|
+
else {
|
241
|
+
fieldToSave.defaultValue = fieldConfig.defaultValue;
|
242
|
+
}
|
243
|
+
}
|
244
|
+
return fieldToSave;
|
245
|
+
}
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { ConfigStorage } from '../../lib/configs/ConfigStorage';
|
2
|
-
import { ObjectUtils, StringUtils } from
|
3
|
-
import { FormConfigFetcher } from
|
4
|
-
import { TAB_NAMES } from
|
2
|
+
import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
|
3
|
+
import { FormConfigFetcher } from '../../lib/http/data-fetcher/fetchers/form-config-fetcher';
|
4
|
+
import { TAB_NAMES } from '../../lib/utils/constants';
|
5
5
|
export class SnkFormConfigManager {
|
6
6
|
constructor(configName, resourceID, onConfigChange, dataUnit) {
|
7
7
|
this._resourceID = resourceID;
|
@@ -28,8 +28,7 @@ export class SnkFormConfigManager {
|
|
28
28
|
});
|
29
29
|
}
|
30
30
|
getEmptyConfig() {
|
31
|
-
|
32
|
-
return config;
|
31
|
+
return this.buildFormMetadataUITabs({ fields: [], emptyConfig: true }, true);
|
33
32
|
}
|
34
33
|
saveConfig(config) {
|
35
34
|
const configToSave = ObjectUtils.copy(config);
|
@@ -0,0 +1,18 @@
|
|
1
|
+
:host{
|
2
|
+
display: flex;
|
3
|
+
padding-top: 12px;
|
4
|
+
padding-left: 12px;
|
5
|
+
align-items: center;
|
6
|
+
width: 100%;
|
7
|
+
justify-content: space-between;
|
8
|
+
}
|
9
|
+
|
10
|
+
.left-group{
|
11
|
+
display: flex;
|
12
|
+
gap: 8px;
|
13
|
+
}
|
14
|
+
|
15
|
+
.right-group{
|
16
|
+
padding-right: 18px;
|
17
|
+
display: flex;
|
18
|
+
}
|
@@ -0,0 +1,236 @@
|
|
1
|
+
import { h, Host } from '@stencil/core';
|
2
|
+
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
3
|
+
export class ConfigHeader {
|
4
|
+
constructor() {
|
5
|
+
this.isEditingGuide = false;
|
6
|
+
this.isEditingGroup = false;
|
7
|
+
this.configOptions = [];
|
8
|
+
this.selectedConfig = undefined;
|
9
|
+
this.messagesBuilder = undefined;
|
10
|
+
this.hasChanges = false;
|
11
|
+
this.optionConfigChanged = false;
|
12
|
+
}
|
13
|
+
handleIsEditingGuideName({ detail }) {
|
14
|
+
this.isEditingGuide = detail;
|
15
|
+
}
|
16
|
+
handleIsEditingGroupName({ detail }) {
|
17
|
+
this.isEditingGroup = detail;
|
18
|
+
}
|
19
|
+
saveFormConfig() {
|
20
|
+
if (this.isEditingGuide || this.isEditingGroup) {
|
21
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
22
|
+
const message = this.isEditingGuide
|
23
|
+
? this.getMessage('snkFormConfig.alert.titleGuideEditing')
|
24
|
+
: this.getMessage('snkFormConfig.alert.titleGroupEditing');
|
25
|
+
ApplicationUtils.alert(title, message);
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
this.saveConfig.emit();
|
29
|
+
}
|
30
|
+
async closeFormConfig() {
|
31
|
+
if (this.hasChanges) {
|
32
|
+
const title = this.getMessage('snkFormConfig.confirm.title');
|
33
|
+
const msg = this.getMessage('snkFormConfig.confirm.cancel');
|
34
|
+
const confirm = await ApplicationUtils.confirm(title, msg);
|
35
|
+
if (!confirm)
|
36
|
+
return;
|
37
|
+
}
|
38
|
+
this.configClose.emit();
|
39
|
+
}
|
40
|
+
getMessage(key, params) {
|
41
|
+
return this.messagesBuilder.getMessage(key, params);
|
42
|
+
}
|
43
|
+
openConfirmDialog(msg = '', title = this.getMessage('snkFormConfig.confirm.title')) {
|
44
|
+
return ApplicationUtils.confirm(title, msg);
|
45
|
+
}
|
46
|
+
async applyOptionConfig() {
|
47
|
+
var _a, _b;
|
48
|
+
const name = (_b = (_a = this.selectedConfig) === null || _a === void 0 ? void 0 : _a.name) !== null && _b !== void 0 ? _b : this.getMessage('snkFormConfig.configs.selectedConfig');
|
49
|
+
const msg = this.getMessage('snkFormConfig.confirm.apply').replace('{0}', name);
|
50
|
+
const confirm = await this.openConfirmDialog(msg);
|
51
|
+
if (confirm) {
|
52
|
+
this.saveConfig.emit();
|
53
|
+
}
|
54
|
+
}
|
55
|
+
renderSaveActions() {
|
56
|
+
if (!this.hasChanges && !this.optionConfigChanged)
|
57
|
+
return;
|
58
|
+
if (this.hasChanges) {
|
59
|
+
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" })));
|
60
|
+
}
|
61
|
+
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" })));
|
62
|
+
}
|
63
|
+
render() {
|
64
|
+
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()));
|
65
|
+
}
|
66
|
+
static get is() { return "config-header"; }
|
67
|
+
static get encapsulation() { return "scoped"; }
|
68
|
+
static get originalStyleUrls() {
|
69
|
+
return {
|
70
|
+
"$": ["config-header.css"]
|
71
|
+
};
|
72
|
+
}
|
73
|
+
static get styleUrls() {
|
74
|
+
return {
|
75
|
+
"$": ["config-header.css"]
|
76
|
+
};
|
77
|
+
}
|
78
|
+
static get properties() {
|
79
|
+
return {
|
80
|
+
"configOptions": {
|
81
|
+
"type": "unknown",
|
82
|
+
"mutable": false,
|
83
|
+
"complexType": {
|
84
|
+
"original": "Array<IUserConfig>",
|
85
|
+
"resolved": "IUserConfig[]",
|
86
|
+
"references": {
|
87
|
+
"Array": {
|
88
|
+
"location": "global"
|
89
|
+
},
|
90
|
+
"IUserConfig": {
|
91
|
+
"location": "import",
|
92
|
+
"path": "../../../lib/http/data-fetcher/fetchers/form-config-fetcher"
|
93
|
+
}
|
94
|
+
}
|
95
|
+
},
|
96
|
+
"required": false,
|
97
|
+
"optional": false,
|
98
|
+
"docs": {
|
99
|
+
"tags": [],
|
100
|
+
"text": ""
|
101
|
+
},
|
102
|
+
"defaultValue": "[]"
|
103
|
+
},
|
104
|
+
"selectedConfig": {
|
105
|
+
"type": "unknown",
|
106
|
+
"mutable": false,
|
107
|
+
"complexType": {
|
108
|
+
"original": "IUserConfig",
|
109
|
+
"resolved": "IUserConfig",
|
110
|
+
"references": {
|
111
|
+
"IUserConfig": {
|
112
|
+
"location": "import",
|
113
|
+
"path": "../../../lib/http/data-fetcher/fetchers/form-config-fetcher"
|
114
|
+
}
|
115
|
+
}
|
116
|
+
},
|
117
|
+
"required": false,
|
118
|
+
"optional": false,
|
119
|
+
"docs": {
|
120
|
+
"tags": [],
|
121
|
+
"text": ""
|
122
|
+
}
|
123
|
+
},
|
124
|
+
"messagesBuilder": {
|
125
|
+
"type": "unknown",
|
126
|
+
"mutable": true,
|
127
|
+
"complexType": {
|
128
|
+
"original": "SnkMessageBuilder",
|
129
|
+
"resolved": "SnkMessageBuilder",
|
130
|
+
"references": {
|
131
|
+
"SnkMessageBuilder": {
|
132
|
+
"location": "import",
|
133
|
+
"path": "../../../lib/message/SnkMessageBuilder"
|
134
|
+
}
|
135
|
+
}
|
136
|
+
},
|
137
|
+
"required": false,
|
138
|
+
"optional": false,
|
139
|
+
"docs": {
|
140
|
+
"tags": [],
|
141
|
+
"text": ""
|
142
|
+
}
|
143
|
+
},
|
144
|
+
"hasChanges": {
|
145
|
+
"type": "boolean",
|
146
|
+
"mutable": false,
|
147
|
+
"complexType": {
|
148
|
+
"original": "boolean",
|
149
|
+
"resolved": "boolean",
|
150
|
+
"references": {}
|
151
|
+
},
|
152
|
+
"required": false,
|
153
|
+
"optional": true,
|
154
|
+
"docs": {
|
155
|
+
"tags": [],
|
156
|
+
"text": ""
|
157
|
+
},
|
158
|
+
"attribute": "has-changes",
|
159
|
+
"reflect": false,
|
160
|
+
"defaultValue": "false"
|
161
|
+
},
|
162
|
+
"optionConfigChanged": {
|
163
|
+
"type": "boolean",
|
164
|
+
"mutable": false,
|
165
|
+
"complexType": {
|
166
|
+
"original": "boolean",
|
167
|
+
"resolved": "boolean",
|
168
|
+
"references": {}
|
169
|
+
},
|
170
|
+
"required": false,
|
171
|
+
"optional": false,
|
172
|
+
"docs": {
|
173
|
+
"tags": [],
|
174
|
+
"text": ""
|
175
|
+
},
|
176
|
+
"attribute": "option-config-changed",
|
177
|
+
"reflect": false,
|
178
|
+
"defaultValue": "false"
|
179
|
+
}
|
180
|
+
};
|
181
|
+
}
|
182
|
+
static get states() {
|
183
|
+
return {
|
184
|
+
"isEditingGuide": {},
|
185
|
+
"isEditingGroup": {}
|
186
|
+
};
|
187
|
+
}
|
188
|
+
static get events() {
|
189
|
+
return [{
|
190
|
+
"method": "configClose",
|
191
|
+
"name": "configClose",
|
192
|
+
"bubbles": true,
|
193
|
+
"cancelable": true,
|
194
|
+
"composed": true,
|
195
|
+
"docs": {
|
196
|
+
"tags": [],
|
197
|
+
"text": ""
|
198
|
+
},
|
199
|
+
"complexType": {
|
200
|
+
"original": "void",
|
201
|
+
"resolved": "void",
|
202
|
+
"references": {}
|
203
|
+
}
|
204
|
+
}, {
|
205
|
+
"method": "saveConfig",
|
206
|
+
"name": "saveConfig",
|
207
|
+
"bubbles": true,
|
208
|
+
"cancelable": true,
|
209
|
+
"composed": true,
|
210
|
+
"docs": {
|
211
|
+
"tags": [],
|
212
|
+
"text": ""
|
213
|
+
},
|
214
|
+
"complexType": {
|
215
|
+
"original": "void",
|
216
|
+
"resolved": "void",
|
217
|
+
"references": {}
|
218
|
+
}
|
219
|
+
}];
|
220
|
+
}
|
221
|
+
static get listeners() {
|
222
|
+
return [{
|
223
|
+
"name": "isEditingGuideName",
|
224
|
+
"method": "handleIsEditingGuideName",
|
225
|
+
"target": "body",
|
226
|
+
"capture": false,
|
227
|
+
"passive": false
|
228
|
+
}, {
|
229
|
+
"name": "isEditingGroupName",
|
230
|
+
"method": "handleIsEditingGroupName",
|
231
|
+
"target": "body",
|
232
|
+
"capture": false,
|
233
|
+
"passive": false
|
234
|
+
}];
|
235
|
+
}
|
236
|
+
}
|
package/dist/collection/components/snk-form-config/config-header/configs-button/configs-button.css
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
.dropdown-container{
|
2
|
+
font-family: 'Roboto';
|
3
|
+
font-size: 12px;
|
4
|
+
font-weight: 400;
|
5
|
+
display: flex;
|
6
|
+
flex-direction: column;
|
7
|
+
color: #2b3a54;
|
8
|
+
width: 200px
|
9
|
+
}
|
10
|
+
|
11
|
+
.main-item{
|
12
|
+
padding: 12px;
|
13
|
+
font-size: 14px;
|
14
|
+
cursor: pointer;
|
15
|
+
transition: all .2s ease-in-out;
|
16
|
+
display: flex;
|
17
|
+
flex-direction: row;
|
18
|
+
gap: 8px;
|
19
|
+
align-items: center;
|
20
|
+
justify-content: start;
|
21
|
+
}
|
22
|
+
|
23
|
+
.main-item ez-icon{
|
24
|
+
--ez-icon--color: #008561;
|
25
|
+
}
|
26
|
+
|
27
|
+
.main-item:nth-of-type(1){
|
28
|
+
padding-bottom: 6px;
|
29
|
+
}
|
30
|
+
|
31
|
+
.main-item:nth-of-type(2){
|
32
|
+
padding-top: 6px;
|
33
|
+
}
|
34
|
+
|
35
|
+
.main-item:hover{
|
36
|
+
background-color: #FAFCFF;
|
37
|
+
}
|
38
|
+
|
39
|
+
.item-label {
|
40
|
+
display: flex;
|
41
|
+
}
|