@sankhyalabs/sankhyablocks 1.4.0-beta.1 → 1.4.0-beta.11
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/{SnkMessageBuilder-7717f1e4.js → SnkMessageBuilder-6c2f7bcd.js} +107 -131
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/configurableElementsStorage-93459c72.js +20 -0
- package/dist/cjs/constants-9056ca9e.js +84 -0
- package/dist/cjs/draggable.bundle-82a25c06.js +6886 -0
- package/dist/cjs/{filter-item-type.enum-e2e1bc5b.js → filter-item-type.enum-3daf58d3.js} +2 -0
- package/dist/cjs/form-config-fetcher-2de7c16a.js +6895 -0
- package/dist/cjs/{index-b0b676c5.js → index-20e8b68a.js} +165 -1473
- package/dist/cjs/loader.cjs.js +2 -18
- package/dist/cjs/sankhyablocks.cjs.js +4 -116
- package/dist/cjs/snk-application.cjs.entry.js +330 -7196
- package/dist/cjs/snk-config-modal.cjs.entry.js +62 -0
- package/dist/cjs/snk-config-options.cjs.entry.js +230 -0
- package/dist/cjs/snk-configurator_6.cjs.entry.js +1156 -0
- package/dist/cjs/snk-crud.cjs.entry.js +21 -13
- package/dist/cjs/snk-data-unit.cjs.entry.js +24 -32
- package/dist/cjs/snk-field-config_2.cjs.entry.js +135 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +5 -2
- package/dist/cjs/snk-filter-detail.cjs.entry.js +62 -5
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +6 -3
- package/dist/cjs/snk-filter-number.cjs.entry.js +6 -3
- package/dist/cjs/snk-filter-period.cjs.entry.js +5 -2
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +89 -0
- package/dist/cjs/snk-filter-search.cjs.entry.js +7 -13
- package/dist/cjs/snk-filter-text.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-config.cjs.entry.js +957 -0
- package/dist/cjs/snk-form.cjs.entry.js +41 -28
- package/dist/cjs/snk-pesquisa.cjs.entry.js +5 -5
- package/dist/cjs/snk-tab-config.cjs.entry.js +321 -0
- package/dist/cjs/{taskbar-elements-283c737e.js → taskbar-elements-9a4b1e19.js} +10 -6
- package/dist/cjs/teste-pesquisa.cjs.entry.js +5 -5
- package/dist/collection/collection-manifest.json +29 -1
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +1 -1
- package/dist/collection/components/snk-application/snk-application.js +236 -37
- package/dist/collection/components/snk-configurator/snk-configurator.js +261 -0
- package/dist/collection/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.js +16 -0
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.css +122 -0
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.js +137 -0
- package/dist/collection/components/snk-crud/snk-crud.js +46 -17
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +1 -28
- package/dist/collection/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.js +100 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.js +23 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +24 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +24 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +23 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.js +180 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-search.js +22 -38
- 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/filter-item-type.enum.js +2 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +80 -20
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +65 -31
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +85 -19
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +222 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +39 -4
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +250 -141
- package/dist/collection/components/snk-form/snk-form.css +4 -0
- package/dist/collection/components/snk-form/snk-form.js +108 -30
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.css +9 -0
- package/dist/collection/components/snk-form/subcomponents/snk-config-options/snk-config-options.js +315 -0
- package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.css +164 -0
- package/dist/collection/components/snk-form/subcomponents/snk-field-config/snk-field-config.js +140 -0
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +185 -0
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +1062 -0
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.css +272 -0
- package/dist/collection/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.js +476 -0
- package/dist/collection/components/snk-grid/snk-grid.js +94 -26
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +9 -5
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +35 -3
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +3 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +35 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +18 -10
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +106 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/parameters-fecher.js +15 -15
- package/dist/collection/lib/http/data-fetcher/fetchers/resource-fetcher.js +9 -1
- package/dist/collection/lib/index.js +1 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
- package/dist/collection/lib/message/resources/crud-utils.msg.js +4 -0
- package/dist/collection/lib/message/resources/snk-configurator.msg.js +11 -0
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +14 -2
- package/dist/collection/lib/message/resources/snk-form.msg.js +59 -2
- package/dist/collection/lib/message/resources/snk-taskbar.msg.js +1 -1
- package/dist/collection/lib/utils/CrudUtils.js +73 -0
- package/dist/collection/lib/utils/constants.js +72 -0
- package/dist/components/SnkMessageBuilder.js +108 -131
- package/dist/components/_commonjsHelpers.js +17 -0
- package/dist/components/constants.js +74 -0
- package/dist/components/filter-item-type.enum.js +2 -0
- package/dist/{sankhyablocks/snk-application.entry.js → components/form-config-fetcher.js} +88 -1347
- package/dist/components/index.d.ts +8 -0
- package/dist/components/index.js +8 -4
- package/dist/components/snk-application2.js +313 -7173
- package/dist/components/snk-config-modal.d.ts +11 -0
- package/dist/components/snk-config-modal.js +6 -0
- package/dist/components/snk-config-modal2.js +91 -0
- package/dist/components/snk-config-options.d.ts +11 -0
- package/dist/components/snk-config-options.js +6 -0
- package/dist/components/snk-config-options2.js +245 -0
- package/dist/components/snk-configurator.d.ts +11 -0
- package/dist/components/snk-configurator.js +6 -0
- package/dist/components/snk-configurator2.js +212 -0
- package/dist/components/snk-crud.js +76 -26
- package/dist/components/snk-data-unit.js +4 -13
- package/dist/components/snk-field-config.d.ts +11 -0
- package/dist/components/snk-field-config.js +6 -0
- package/dist/components/snk-field-config2.js +70 -0
- package/dist/components/snk-filter-bar2.js +354 -148
- package/dist/components/snk-filter-binary-select.js +5 -1
- package/dist/components/snk-filter-detail2.js +62 -5
- package/dist/components/snk-filter-item2.js +52 -33
- package/dist/components/snk-filter-list2.js +60 -22
- package/dist/components/snk-filter-modal.d.ts +11 -0
- package/dist/components/snk-filter-modal.js +6 -0
- package/dist/components/snk-filter-modal2.js +84 -0
- package/dist/components/snk-filter-multi-select.js +6 -2
- package/dist/components/snk-filter-number.js +6 -2
- package/dist/components/snk-filter-period.js +5 -1
- package/dist/components/snk-filter-personalized.d.ts +11 -0
- package/dist/components/snk-filter-personalized.js +108 -0
- package/dist/components/snk-filter-search.js +5 -12
- package/dist/components/snk-filter-text.js +1 -1
- package/dist/components/snk-form-config.d.ts +11 -0
- package/dist/components/snk-form-config.js +6 -0
- package/dist/components/snk-form-config2.js +996 -0
- package/dist/components/snk-form2.js +79 -29
- package/dist/components/snk-grid2.js +57 -32
- package/dist/components/snk-pesquisa2.js +1 -1
- package/dist/components/snk-tab-config.d.ts +11 -0
- package/dist/components/snk-tab-config.js +6 -0
- package/dist/components/snk-tab-config2.js +7220 -0
- package/dist/components/snk-taskbar2.js +28 -10
- package/dist/components/teste-pesquisa.js +1 -1
- package/dist/{sankhyablocks/SnkMessageBuilder-a7da466b.js → esm/SnkMessageBuilder-5792c260.js} +108 -131
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/configurableElementsStorage-cdc144b5.js +18 -0
- package/dist/esm/constants-c6039d3d.js +74 -0
- package/dist/esm/draggable.bundle-41d56f06.js +6884 -0
- package/dist/esm/{filter-item-type.enum-61fbf80a.js → filter-item-type.enum-a79b2fa8.js} +2 -0
- package/dist/esm/form-config-fetcher-96c6c2dc.js +6889 -0
- package/dist/{sankhyablocks/index-2b4d2d14.js → esm/index-e4121713.js} +165 -1466
- package/dist/esm/loader.js +2 -18
- package/dist/esm/sankhyablocks.js +4 -116
- package/dist/esm/snk-application.entry.js +308 -7174
- package/dist/esm/snk-config-modal.entry.js +58 -0
- package/dist/esm/snk-config-options.entry.js +226 -0
- package/dist/esm/snk-configurator_6.entry.js +1147 -0
- package/dist/esm/snk-crud.entry.js +20 -12
- package/dist/esm/snk-data-unit.entry.js +5 -13
- package/dist/esm/snk-field-config_2.entry.js +130 -0
- package/dist/esm/snk-filter-binary-select.entry.js +5 -2
- package/dist/esm/snk-filter-detail.entry.js +62 -5
- package/dist/esm/snk-filter-multi-select.entry.js +6 -3
- package/dist/esm/snk-filter-number.entry.js +6 -3
- package/dist/esm/snk-filter-period.entry.js +5 -2
- package/dist/esm/snk-filter-personalized.entry.js +85 -0
- package/dist/esm/snk-filter-search.entry.js +6 -12
- package/dist/esm/snk-filter-text.entry.js +2 -2
- package/dist/esm/snk-form-config.entry.js +953 -0
- package/dist/esm/snk-form.entry.js +40 -27
- package/dist/esm/snk-pesquisa.entry.js +2 -2
- package/dist/esm/snk-tab-config.entry.js +317 -0
- package/dist/{sankhyablocks/taskbar-elements-35d64ff9.js → esm/taskbar-elements-e2ed0536.js} +10 -6
- package/dist/esm/teste-pesquisa.entry.js +2 -2
- package/dist/sankhyablocks/index.esm.js +0 -1
- package/dist/sankhyablocks/p-029ae4e4.entry.js +1 -0
- package/dist/sankhyablocks/p-03f9c407.js +1 -0
- package/dist/sankhyablocks/p-112455b1.js +1 -0
- package/dist/sankhyablocks/p-12ad2a19.entry.js +1 -0
- package/dist/sankhyablocks/p-21c8929b.js +1 -0
- package/dist/sankhyablocks/p-2b891c4a.entry.js +1 -0
- package/dist/sankhyablocks/p-2dc76d79.entry.js +1 -0
- package/dist/sankhyablocks/p-361299e8.js +26 -0
- package/dist/sankhyablocks/p-3a276f3d.entry.js +1 -0
- package/dist/sankhyablocks/p-400cc777.entry.js +1 -0
- package/dist/sankhyablocks/p-44ce5b90.entry.js +1 -0
- package/dist/sankhyablocks/p-521c96f0.entry.js +1 -0
- package/dist/sankhyablocks/p-60eef7cd.entry.js +1 -0
- package/dist/sankhyablocks/p-6988f4a6.entry.js +1 -0
- package/dist/sankhyablocks/p-6a4162bd.entry.js +1 -0
- package/dist/sankhyablocks/p-776ff4d1.entry.js +1 -0
- package/dist/sankhyablocks/p-9ba3df4c.js +2 -0
- package/dist/sankhyablocks/p-9dc4426d.entry.js +1 -0
- package/dist/sankhyablocks/p-9dd2b8cb.js +1 -0
- package/dist/sankhyablocks/p-a17a4fca.entry.js +1 -0
- package/dist/sankhyablocks/p-a5b26df2.js +1 -0
- package/dist/sankhyablocks/p-b6d6b172.js +1 -0
- package/dist/sankhyablocks/p-cc4bef9f.entry.js +1 -0
- package/dist/sankhyablocks/p-d50651a3.js +1 -0
- package/dist/sankhyablocks/p-d690b6b5.entry.js +75 -0
- package/dist/sankhyablocks/p-d9fbb26f.js +1 -0
- package/dist/sankhyablocks/p-deb1f523.entry.js +1 -0
- package/dist/sankhyablocks/p-e871aa92.entry.js +1 -0
- package/dist/sankhyablocks/p-e9beab79.entry.js +1 -0
- package/dist/sankhyablocks/p-f37cdeb5.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -129
- package/dist/types/components/snk-application/snk-application.d.ts +38 -16
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +46 -0
- package/dist/types/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.d.ts +8 -0
- package/dist/types/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.d.ts +38 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +50 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +92 -0
- package/dist/types/components/snk-filter-bar/filter-item/dataunitfilter/data-unit-filter-builder.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-binary-select.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +2 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +2 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-personalized.d.ts +24 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-search.d.ts +4 -5
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +3 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +7 -1
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +40 -0
- package/dist/types/components/snk-filter-bar/filter-list/snk-filter-list.d.ts +8 -3
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +26 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +31 -17
- package/dist/types/components/snk-form/snk-form.d.ts +71 -0
- package/dist/types/components/snk-form/subcomponents/snk-config-options/snk-config-options.d.ts +51 -0
- package/dist/types/components/snk-form/subcomponents/snk-field-config/snk-field-config.d.ts +32 -0
- package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +139 -0
- package/dist/types/components/snk-form/subcomponents/snk-tab-config/snk-tab-config.d.ts +97 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +59 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +6 -5
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -3
- package/dist/types/components.d.ts +424 -24
- package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +21 -3
- package/dist/types/lib/http/data-fetcher/fetchers/parameters-fecher.d.ts +7 -7
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +1 -0
- package/dist/types/lib/index.d.ts +1 -0
- package/dist/types/lib/message/resources/crud-utils.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-form.msg.d.ts +5 -2
- package/dist/types/lib/utils/CrudUtils.d.ts +6 -0
- package/dist/types/lib/utils/constants.d.ts +76 -0
- package/dist/types/lib/utils/pesquisa.d.ts +2 -1
- package/package.json +4 -3
- package/react/components.d.ts +25 -0
- package/react/components.js +25 -0
- package/react/components.js.map +1 -1
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/css-shim-b8158822.js +0 -6
- package/dist/cjs/dom-36862b77.js +0 -75
- package/dist/cjs/index-02201bc9.js +0 -2397
- package/dist/cjs/shadow-css-346c0795.js +0 -389
- package/dist/cjs/snk-filter-bar.cjs.entry.js +0 -278
- package/dist/cjs/snk-filter-item.cjs.entry.js +0 -154
- package/dist/cjs/snk-filter-list.cjs.entry.js +0 -91
- package/dist/cjs/snk-grid.cjs.entry.js +0 -79
- package/dist/cjs/snk-taskbar.cjs.entry.js +0 -160
- package/dist/components/index2.js +0 -2384
- package/dist/esm/SnkMessageBuilder-a7da466b.js +0 -303
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/css-shim-b3f2ee8d.js +0 -4
- package/dist/esm/dom-665d6011.js +0 -73
- package/dist/esm/index-2b4d2d14.js +0 -3262
- package/dist/esm/index-f1d3e4da.js +0 -2384
- package/dist/esm/shadow-css-b18e99d7.js +0 -387
- package/dist/esm/snk-filter-bar.entry.js +0 -274
- package/dist/esm/snk-filter-item.entry.js +0 -150
- package/dist/esm/snk-filter-list.entry.js +0 -87
- package/dist/esm/snk-grid.entry.js +0 -75
- package/dist/esm/snk-taskbar.entry.js +0 -156
- package/dist/esm/taskbar-elements-35d64ff9.js +0 -90
- package/dist/sankhyablocks/app-globals-0f993ce5.js +0 -3
- package/dist/sankhyablocks/css-shim-b3f2ee8d.js +0 -4
- package/dist/sankhyablocks/dom-665d6011.js +0 -73
- package/dist/sankhyablocks/filter-item-type.enum-61fbf80a.js +0 -12
- package/dist/sankhyablocks/index-f1d3e4da.js +0 -2384
- package/dist/sankhyablocks/shadow-css-b18e99d7.js +0 -387
- package/dist/sankhyablocks/snk-crud.entry.js +0 -66
- package/dist/sankhyablocks/snk-data-unit.entry.js +0 -276
- package/dist/sankhyablocks/snk-filter-bar.entry.js +0 -274
- package/dist/sankhyablocks/snk-filter-binary-select.entry.js +0 -43
- package/dist/sankhyablocks/snk-filter-detail.entry.js +0 -45
- package/dist/sankhyablocks/snk-filter-item.entry.js +0 -150
- package/dist/sankhyablocks/snk-filter-list.entry.js +0 -87
- package/dist/sankhyablocks/snk-filter-multi-select.entry.js +0 -19
- package/dist/sankhyablocks/snk-filter-number.entry.js +0 -20
- package/dist/sankhyablocks/snk-filter-period.entry.js +0 -33
- package/dist/sankhyablocks/snk-filter-search.entry.js +0 -40
- package/dist/sankhyablocks/snk-filter-text.entry.js +0 -18
- package/dist/sankhyablocks/snk-form.entry.js +0 -129
- package/dist/sankhyablocks/snk-grid.entry.js +0 -75
- package/dist/sankhyablocks/snk-pesquisa.entry.js +0 -311
- package/dist/sankhyablocks/snk-taskbar.entry.js +0 -156
- package/dist/sankhyablocks/taskbar-processor-aa6772c9.js +0 -45
- package/dist/sankhyablocks/teste-pesquisa.entry.js +0 -33
|
@@ -12,9 +12,9 @@ export var TaskbarElement;
|
|
|
12
12
|
TaskbarElement["SAVE"] = "SAVE";
|
|
13
13
|
TaskbarElement["GRID_MODE"] = "GRID_MODE";
|
|
14
14
|
TaskbarElement["FORM_MODE"] = "FORM_MODE";
|
|
15
|
-
TaskbarElement["CONFIG_GRID"] = "CONFIG_GRID";
|
|
16
15
|
TaskbarElement["MORE_OPTIONS"] = "MORE_OPTIONS";
|
|
17
16
|
TaskbarElement["DIVIDER"] = "DIVIDER";
|
|
17
|
+
TaskbarElement["CONFIGURATOR"] = "CONFIGURATOR";
|
|
18
18
|
})(TaskbarElement || (TaskbarElement = {}));
|
|
19
19
|
export var AuthorizationElements;
|
|
20
20
|
(function (AuthorizationElements) {
|
|
@@ -22,11 +22,12 @@ export var AuthorizationElements;
|
|
|
22
22
|
AuthorizationElements["CLONE"] = "CLONE";
|
|
23
23
|
AuthorizationElements["REMOVE"] = "REMOVE";
|
|
24
24
|
AuthorizationElements["INSERT"] = "INSERT";
|
|
25
|
-
AuthorizationElements["
|
|
25
|
+
AuthorizationElements["CONFIGURATOR"] = "CONFIGURATOR";
|
|
26
26
|
})(AuthorizationElements || (AuthorizationElements = {}));
|
|
27
27
|
export var VisibleWhenForbidden;
|
|
28
28
|
(function (VisibleWhenForbidden) {
|
|
29
29
|
VisibleWhenForbidden["CONFIG_GRID"] = "CONFIG_GRID";
|
|
30
|
+
VisibleWhenForbidden["CONFIGURATOR"] = "CONFIGURATOR";
|
|
30
31
|
})(VisibleWhenForbidden || (VisibleWhenForbidden = {}));
|
|
31
32
|
export const buildCustomButton = (def, className, action, isEnabled) => {
|
|
32
33
|
const { hint, text, iconName } = def;
|
|
@@ -42,7 +43,7 @@ export const buildCustomButton = (def, className, action, isEnabled) => {
|
|
|
42
43
|
return textButton(def.name, className, text, hint, action, isEnabled);
|
|
43
44
|
}
|
|
44
45
|
};
|
|
45
|
-
export const buildElem = (element, className, getTitle, action, isEnabled, actions) => {
|
|
46
|
+
export const buildElem = (element, className, getTitle, action, isEnabled, actions, configName) => {
|
|
46
47
|
const title = getTitle(element);
|
|
47
48
|
switch (element) {
|
|
48
49
|
case TaskbarElement.PREVIOUS:
|
|
@@ -67,8 +68,8 @@ export const buildElem = (element, className, getTitle, action, isEnabled, actio
|
|
|
67
68
|
return iconButton("table", element, className, title, action, isEnabled);
|
|
68
69
|
case TaskbarElement.FORM_MODE:
|
|
69
70
|
return iconButton("list", element, className, title, action, isEnabled);
|
|
70
|
-
case TaskbarElement.
|
|
71
|
-
return
|
|
71
|
+
case TaskbarElement.CONFIGURATOR:
|
|
72
|
+
return configButton(element, className, getTitle, action, isEnabled, configName);
|
|
72
73
|
case TaskbarElement.MORE_OPTIONS:
|
|
73
74
|
return actions && actions.length > 0 ? h("ez-actions-button", { title: title, size: "small", class: className, enabled: isEnabled(element), onEzAction: (evt) => action(evt.detail.value), actions: actions }) : undefined;
|
|
74
75
|
case TaskbarElement.DIVIDER:
|
|
@@ -84,3 +85,6 @@ function iconButton(iconName, name, className, title, action, isEnabled) {
|
|
|
84
85
|
function iconTextButton(iconName, name, className, text, title, action, isEnabled) {
|
|
85
86
|
return h("ez-button", { name: iconName, title: title, label: text, size: "small", class: className, enabled: isEnabled(name), onClick: () => action(name) }, h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: iconName }));
|
|
86
87
|
}
|
|
88
|
+
function configButton(element, className, getTitle, action, isEnabled, configName) {
|
|
89
|
+
return h("snk-configurator", { key: "configurator", configName: configName, title: getTitle(element), class: className, enabled: isEnabled(element), onChangeViewMode: (evt) => action(evt === null || evt === void 0 ? void 0 : evt.detail) });
|
|
90
|
+
}
|
|
@@ -15,8 +15,8 @@ export class SnkTaskbar {
|
|
|
15
15
|
[TaskbarElement.CANCEL]: "snkTaskbar.titleCancel",
|
|
16
16
|
[TaskbarElement.SAVE]: "snkTaskbar.titleSave",
|
|
17
17
|
[TaskbarElement.GRID_MODE]: "snkTaskbar.titleGridMode",
|
|
18
|
-
[TaskbarElement.
|
|
19
|
-
[TaskbarElement.
|
|
18
|
+
[TaskbarElement.FORM_MODE]: "snkTaskbar.titleFormMode",
|
|
19
|
+
[TaskbarElement.CONFIGURATOR]: "snkTaskbar.titleConfigurator"
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
22
|
observeButtons() {
|
|
@@ -100,7 +100,7 @@ export class SnkTaskbar {
|
|
|
100
100
|
className += "ez-padding-left--medium";
|
|
101
101
|
}
|
|
102
102
|
if (TaskbarElement[def.toString()]) {
|
|
103
|
-
return buildElem(def, className, elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.actionsList);
|
|
103
|
+
return buildElem(def, className, elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.actionsList, this.configName);
|
|
104
104
|
}
|
|
105
105
|
else {
|
|
106
106
|
return buildCustomButton(def, className, elem => this.elementClick(elem), elem => this.isEnabled(elem));
|
|
@@ -156,6 +156,23 @@ export class SnkTaskbar {
|
|
|
156
156
|
}
|
|
157
157
|
static get properties() {
|
|
158
158
|
return {
|
|
159
|
+
"configName": {
|
|
160
|
+
"type": "string",
|
|
161
|
+
"mutable": false,
|
|
162
|
+
"complexType": {
|
|
163
|
+
"original": "string",
|
|
164
|
+
"resolved": "string",
|
|
165
|
+
"references": {}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": "Nome usado para guardar/recuperar as configura\u00E7\u00F5es do formul\u00E1rio"
|
|
172
|
+
},
|
|
173
|
+
"attribute": "config-name",
|
|
174
|
+
"reflect": false
|
|
175
|
+
},
|
|
159
176
|
"buttons": {
|
|
160
177
|
"type": "string",
|
|
161
178
|
"mutable": false,
|
|
@@ -296,6 +313,21 @@ export class SnkTaskbar {
|
|
|
296
313
|
"resolved": "string",
|
|
297
314
|
"references": {}
|
|
298
315
|
}
|
|
316
|
+
}, {
|
|
317
|
+
"method": "actionChange",
|
|
318
|
+
"name": "actionChange",
|
|
319
|
+
"bubbles": true,
|
|
320
|
+
"cancelable": true,
|
|
321
|
+
"composed": true,
|
|
322
|
+
"docs": {
|
|
323
|
+
"tags": [],
|
|
324
|
+
"text": "Emitido sempre que houver altera\u00E7\u00E3o em algum elemento aberto pelo bot\u00E3o de a\u00E7\u00E3o"
|
|
325
|
+
},
|
|
326
|
+
"complexType": {
|
|
327
|
+
"original": "any",
|
|
328
|
+
"resolved": "any",
|
|
329
|
+
"references": {}
|
|
330
|
+
}
|
|
299
331
|
}];
|
|
300
332
|
}
|
|
301
333
|
static get watchers() {
|
|
@@ -83,14 +83,14 @@ export class DataFetcher {
|
|
|
83
83
|
return UrlUtils.getUrlBase();
|
|
84
84
|
}
|
|
85
85
|
getContext(module) {
|
|
86
|
+
var _a;
|
|
86
87
|
const urlParams = UrlUtils.getQueryParams(location.search);
|
|
87
88
|
return {
|
|
88
89
|
baseUrl: `${this.resolveURL()}/${module}/service.sbr`,
|
|
89
90
|
appName: "SankhyaBlocks",
|
|
90
|
-
mgeSession: `${window['skw_session'] || urlParams.mgeSession}`,
|
|
91
|
+
mgeSession: `${window['skw_session'] || urlParams.get("mgeSession")}`,
|
|
91
92
|
globalID: "85C0093DFA240EAB699B4E47A10215BD",
|
|
92
|
-
|
|
93
|
-
resourceID: "br.com.sankhya.mov.bancaria"
|
|
93
|
+
resourceID: (window["resourceID"] || ((_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID))
|
|
94
94
|
};
|
|
95
95
|
}
|
|
96
96
|
async callServiceBroker(serviceName, payload) {
|
|
@@ -60,6 +60,17 @@ export default class DataUnitFetcher {
|
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
}`);
|
|
63
|
+
this.templateByQuery.set("fetchDataRecord", gql `query($dataunit: String! $recordID: [String!]) {
|
|
64
|
+
$queryAlias$: fetchDataUnit(name: $dataunit){
|
|
65
|
+
record(id: $recordID){
|
|
66
|
+
id
|
|
67
|
+
fields {
|
|
68
|
+
name
|
|
69
|
+
value
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
}`);
|
|
63
74
|
}
|
|
64
75
|
getDataUnit(entityName, resourceID) {
|
|
65
76
|
const dataUnit = new DataUnit(`dd://${entityName}/${resourceID}`);
|
|
@@ -67,6 +78,7 @@ export default class DataUnitFetcher {
|
|
|
67
78
|
dataUnit.dataLoader = (dataUnit, request) => this.loadData(dataUnit, request);
|
|
68
79
|
dataUnit.saveLoader = (dataUnit, changes) => this.saveData(dataUnit, changes);
|
|
69
80
|
dataUnit.removeLoader = (dataUnit, recordIds) => this.removeRecords(dataUnit, recordIds);
|
|
81
|
+
dataUnit.recordLoader = (dataUnit, recordIds) => this.loadRecord(dataUnit, recordIds);
|
|
70
82
|
return dataUnit;
|
|
71
83
|
}
|
|
72
84
|
loadMetadata(dataUnit) {
|
|
@@ -235,4 +247,27 @@ export default class DataUnitFetcher {
|
|
|
235
247
|
});
|
|
236
248
|
});
|
|
237
249
|
}
|
|
250
|
+
loadRecord(dataUnit, recordIds) {
|
|
251
|
+
return new Promise((resolve, reject) => {
|
|
252
|
+
DataFetcher.get()
|
|
253
|
+
.callGraphQL({
|
|
254
|
+
values: { recordID: recordIds, dataunit: dataUnit.name },
|
|
255
|
+
query: this.templateByQuery.get("fetchDataRecord"),
|
|
256
|
+
})
|
|
257
|
+
.then((response) => {
|
|
258
|
+
const dataUnitRecords = [];
|
|
259
|
+
response.record.forEach(responseRecord => {
|
|
260
|
+
const duRecord = { __record__id__: responseRecord.id };
|
|
261
|
+
responseRecord.fields.forEach(({ name, value }) => {
|
|
262
|
+
duRecord[name] = dataUnit.valueFromString(name, value);
|
|
263
|
+
});
|
|
264
|
+
dataUnitRecords.push(duRecord);
|
|
265
|
+
});
|
|
266
|
+
resolve(dataUnitRecords);
|
|
267
|
+
})
|
|
268
|
+
.catch((error) => {
|
|
269
|
+
reject(error);
|
|
270
|
+
});
|
|
271
|
+
});
|
|
272
|
+
}
|
|
238
273
|
}
|
|
@@ -1,19 +1,27 @@
|
|
|
1
1
|
import { ResourceFetcher } from "./resource-fetcher";
|
|
2
2
|
function normalizeValue(value) {
|
|
3
|
+
if (value == undefined) {
|
|
4
|
+
return value;
|
|
5
|
+
}
|
|
3
6
|
if (value instanceof Date) {
|
|
4
7
|
return value.toISOString();
|
|
5
8
|
}
|
|
6
9
|
if (typeof value === "object") {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
if (value instanceof Array) {
|
|
11
|
+
return value.map(item => normalizeValue(item));
|
|
12
|
+
}
|
|
13
|
+
else {
|
|
14
|
+
const normalized = Object.assign({}, value);
|
|
15
|
+
Object.keys(value).forEach(prop => {
|
|
16
|
+
if (value[prop]) {
|
|
17
|
+
normalized[prop] = normalizeValue(value[prop]);
|
|
18
|
+
}
|
|
19
|
+
else {
|
|
20
|
+
delete normalized[prop];
|
|
21
|
+
}
|
|
22
|
+
});
|
|
23
|
+
return normalized;
|
|
24
|
+
}
|
|
17
25
|
}
|
|
18
26
|
return value;
|
|
19
27
|
}
|
|
@@ -1,5 +1,34 @@
|
|
|
1
|
+
import { gql } from "graphql-request";
|
|
1
2
|
import { ResourceFetcher } from "./resource-fetcher";
|
|
3
|
+
import { DataFetcher } from "../DataFetcher";
|
|
4
|
+
import { ObjectUtils } from "@sankhyalabs/core";
|
|
2
5
|
export class FormConfigFetcher extends ResourceFetcher {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.queryConfig = new Map();
|
|
9
|
+
this.buildTemplatesConfig();
|
|
10
|
+
}
|
|
11
|
+
buildTemplatesConfig() {
|
|
12
|
+
this.queryConfig.set("fetchUserAvailableConfigs", gql `query($name: String!) {
|
|
13
|
+
$queryAlias$: fetchUserAvailableConfigs(name: $name){
|
|
14
|
+
name
|
|
15
|
+
origin
|
|
16
|
+
key
|
|
17
|
+
}
|
|
18
|
+
}`);
|
|
19
|
+
this.queryConfig.set("fetchLegacyConfig", gql `query($name: String!) {
|
|
20
|
+
$queryAlias$: fetchLegacyConfig(name: $name){
|
|
21
|
+
name
|
|
22
|
+
resource
|
|
23
|
+
}
|
|
24
|
+
}`);
|
|
25
|
+
this.queryConfig.set("fetchDefaultConfig", gql `query($name: String!) {
|
|
26
|
+
$queryAlias$: fetchDefaultConfig(name: $name){
|
|
27
|
+
name
|
|
28
|
+
resource
|
|
29
|
+
}
|
|
30
|
+
}`);
|
|
31
|
+
}
|
|
3
32
|
loadFormConfig(formName, resourceID) {
|
|
4
33
|
return new Promise((accept, reject) => {
|
|
5
34
|
this.loadResource(`cfg://form/${resourceID}/${formName}`)
|
|
@@ -9,9 +38,17 @@ export class FormConfigFetcher extends ResourceFetcher {
|
|
|
9
38
|
const { tabs, fields } = config;
|
|
10
39
|
if (tabs) {
|
|
11
40
|
const allTabs = new Map(tabs.map(t => [t.label, t]));
|
|
12
|
-
fields.forEach(f => f.tab = allTabs.get(this.getTabName(f.tab)));
|
|
41
|
+
fields === null || fields === void 0 ? void 0 : fields.forEach(f => { var _a; return f.tab = ((_a = allTabs.get(this.getTabName(f.tab))) === null || _a === void 0 ? void 0 : _a.label) || allTabs.get(this.getTabName(f.tab)); });
|
|
13
42
|
}
|
|
14
|
-
|
|
43
|
+
config.fields = fields === null || fields === void 0 ? void 0 : fields.map((field) => {
|
|
44
|
+
if ("readonly" in field) {
|
|
45
|
+
const readOnly = field['readonly'];
|
|
46
|
+
delete field['readonly'];
|
|
47
|
+
field.readOnly = readOnly;
|
|
48
|
+
}
|
|
49
|
+
return field;
|
|
50
|
+
});
|
|
51
|
+
accept(config);
|
|
15
52
|
}
|
|
16
53
|
else {
|
|
17
54
|
reject(`Sem configuração pro formulário "${formName}".`);
|
|
@@ -23,9 +60,75 @@ export class FormConfigFetcher extends ResourceFetcher {
|
|
|
23
60
|
});
|
|
24
61
|
}
|
|
25
62
|
getTabName(tab) {
|
|
26
|
-
if (typeof tab === 'object') { //
|
|
63
|
+
if (typeof tab === 'object') { // ITabConfig type
|
|
27
64
|
return tab.label;
|
|
28
65
|
}
|
|
29
66
|
return tab; //string type
|
|
30
67
|
}
|
|
68
|
+
saveConfig(config, formName, resourceID) {
|
|
69
|
+
const completePath = `cfg://form/${resourceID}/${formName}`;
|
|
70
|
+
return new Promise((resolve, reject) => {
|
|
71
|
+
this.saveResource(config, completePath)
|
|
72
|
+
.then((resp) => {
|
|
73
|
+
resolve(resp);
|
|
74
|
+
})
|
|
75
|
+
.catch((error) => {
|
|
76
|
+
reject(error);
|
|
77
|
+
});
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
fetchUserAvailableConfigs(formName, resourceID) {
|
|
81
|
+
const name = `cfg://form/${resourceID}/${formName}`;
|
|
82
|
+
return new Promise((resolve, reject) => {
|
|
83
|
+
DataFetcher.get()
|
|
84
|
+
.callGraphQL({
|
|
85
|
+
values: { name },
|
|
86
|
+
query: this.queryConfig.get("fetchUserAvailableConfigs"),
|
|
87
|
+
})
|
|
88
|
+
.then((result) => {
|
|
89
|
+
resolve(result);
|
|
90
|
+
})
|
|
91
|
+
.catch((error) => {
|
|
92
|
+
reject(error);
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
fetchLegacyConfig(formName, resourceID) {
|
|
97
|
+
const name = `cfg://form/${resourceID}/${formName}`;
|
|
98
|
+
return new Promise((resolve, reject) => {
|
|
99
|
+
DataFetcher.get()
|
|
100
|
+
.callGraphQL({
|
|
101
|
+
values: { name },
|
|
102
|
+
query: this.queryConfig.get("fetchLegacyConfig"),
|
|
103
|
+
})
|
|
104
|
+
.then((result) => {
|
|
105
|
+
resolve(ObjectUtils.stringToObject((result === null || result === void 0 ? void 0 : result.resource) || ''));
|
|
106
|
+
})
|
|
107
|
+
.catch((error) => {
|
|
108
|
+
reject(error);
|
|
109
|
+
});
|
|
110
|
+
});
|
|
111
|
+
}
|
|
112
|
+
fetchDefaultConfig(formName, resourceID) {
|
|
113
|
+
const name = `cfg://form/${resourceID}/${formName}`;
|
|
114
|
+
return new Promise((resolve, reject) => {
|
|
115
|
+
DataFetcher.get()
|
|
116
|
+
.callGraphQL({
|
|
117
|
+
values: { name },
|
|
118
|
+
query: this.queryConfig.get("fetchDefaultConfig"),
|
|
119
|
+
})
|
|
120
|
+
.then((result) => {
|
|
121
|
+
resolve(ObjectUtils.stringToObject((result === null || result === void 0 ? void 0 : result.resource) || ''));
|
|
122
|
+
})
|
|
123
|
+
.catch((error) => {
|
|
124
|
+
reject(error);
|
|
125
|
+
});
|
|
126
|
+
});
|
|
127
|
+
}
|
|
31
128
|
}
|
|
129
|
+
export var UserConfigType;
|
|
130
|
+
(function (UserConfigType) {
|
|
131
|
+
UserConfigType["USER"] = "USER";
|
|
132
|
+
UserConfigType["DEFAULT"] = "DEFAULT";
|
|
133
|
+
UserConfigType["SHARED"] = "SHARED";
|
|
134
|
+
})(UserConfigType || (UserConfigType = {}));
|
|
@@ -14,35 +14,35 @@ export default class ParametersFetcher {
|
|
|
14
14
|
}
|
|
15
15
|
}`);
|
|
16
16
|
}
|
|
17
|
-
async getParam(name
|
|
18
|
-
const completPath = `param
|
|
17
|
+
async getParam(name) {
|
|
18
|
+
const completPath = `param://application?params=${name}`;
|
|
19
19
|
return DataFetcher.get().callGraphQL({
|
|
20
20
|
values: { name: completPath },
|
|
21
21
|
query: this.templateByQuery.get("fetchParam"),
|
|
22
22
|
});
|
|
23
23
|
}
|
|
24
|
-
async asString(name
|
|
25
|
-
const paramArr = await this.getParam(name
|
|
24
|
+
async asString(name) {
|
|
25
|
+
const paramArr = await this.getParam(name);
|
|
26
26
|
return this.getValue(paramArr);
|
|
27
27
|
}
|
|
28
|
-
async asInteger(name
|
|
29
|
-
const paramArr = await this.getParam(name
|
|
28
|
+
async asInteger(name) {
|
|
29
|
+
const paramArr = await this.getParam(name);
|
|
30
30
|
return parseInt(this.getValue(paramArr));
|
|
31
31
|
}
|
|
32
|
-
async asFloat(name
|
|
33
|
-
const paramArr = await this.getParam(name
|
|
32
|
+
async asFloat(name) {
|
|
33
|
+
const paramArr = await this.getParam(name);
|
|
34
34
|
return parseFloat(this.getValue(paramArr));
|
|
35
35
|
}
|
|
36
|
-
async asBoolean(name
|
|
37
|
-
const paramArr = await this.getParam(name
|
|
38
|
-
return this.getValue(paramArr)
|
|
36
|
+
async asBoolean(name) {
|
|
37
|
+
const paramArr = await this.getParam(name);
|
|
38
|
+
return this.getValue(paramArr).includes('"S"');
|
|
39
39
|
}
|
|
40
|
-
async asDate(name
|
|
41
|
-
const paramArr = await this.getParam(name
|
|
40
|
+
async asDate(name) {
|
|
41
|
+
const paramArr = await this.getParam(name);
|
|
42
42
|
return DateUtils.strToDate(this.getValue(paramArr));
|
|
43
43
|
}
|
|
44
|
-
async getBatchParams(names
|
|
45
|
-
const paramArr = await this.getParam(names.join(",")
|
|
44
|
+
async getBatchParams(names) {
|
|
45
|
+
const paramArr = await this.getParam(names.join(","));
|
|
46
46
|
//TODO: try to typed params val?
|
|
47
47
|
const response = {};
|
|
48
48
|
paramArr.forEach((param) => (response[param.name] = param.resource));
|
|
@@ -19,7 +19,10 @@ export class ResourceFetcher {
|
|
|
19
19
|
}`);
|
|
20
20
|
}
|
|
21
21
|
loadResource(name) {
|
|
22
|
-
|
|
22
|
+
if (ResourceFetcher._loadingResource.has(name)) {
|
|
23
|
+
return ResourceFetcher._loadingResource.get(name);
|
|
24
|
+
}
|
|
25
|
+
const promiseLoadResource = new Promise((resolve, reject) => {
|
|
23
26
|
DataFetcher.get()
|
|
24
27
|
.callGraphQL({
|
|
25
28
|
values: { name },
|
|
@@ -27,11 +30,15 @@ export class ResourceFetcher {
|
|
|
27
30
|
})
|
|
28
31
|
.then((result) => {
|
|
29
32
|
resolve(result === null || result === void 0 ? void 0 : result.resource);
|
|
33
|
+
ResourceFetcher._loadingResource.delete(name);
|
|
30
34
|
})
|
|
31
35
|
.catch((error) => {
|
|
32
36
|
reject(error);
|
|
37
|
+
ResourceFetcher._loadingResource.delete(name);
|
|
33
38
|
});
|
|
34
39
|
});
|
|
40
|
+
ResourceFetcher._loadingResource.set(name, promiseLoadResource);
|
|
41
|
+
return promiseLoadResource;
|
|
35
42
|
}
|
|
36
43
|
saveResource(resource, name) {
|
|
37
44
|
return new Promise((resolve, reject) => {
|
|
@@ -54,3 +61,4 @@ export class ResourceFetcher {
|
|
|
54
61
|
});
|
|
55
62
|
}
|
|
56
63
|
}
|
|
64
|
+
ResourceFetcher._loadingResource = new Map();
|
|
@@ -1,14 +1,23 @@
|
|
|
1
1
|
import snkDataUnitMessages from "./resources/snk-data-unit.msg.js";
|
|
2
2
|
import snkFilterBarMessages from "./resources/snk-filter-bar.msg.js";
|
|
3
|
-
import snkFormMessages from "./resources/snk-form.msg.js";
|
|
4
3
|
import snkTaskbarMessages from "./resources/snk-taskbar.msg.js";
|
|
4
|
+
import crudUtilsMessages from "./resources/crud-utils.msg.js";
|
|
5
|
+
import { snkFormMessages, snkFormConfigMessages, snkConfigOptionsMessages, snkFieldConfigMessages, snkTabConfigMessages } from "./resources/snk-form.msg.js";
|
|
6
|
+
import { snkConfiguratorMessages, snkConfigModalMessages } from "./resources/snk-configurator.msg.js";
|
|
5
7
|
export class SnkMessageBuilder {
|
|
6
8
|
constructor() {
|
|
7
9
|
this._defaults = {
|
|
8
10
|
snkDataUnit: snkDataUnitMessages,
|
|
9
11
|
snkForm: snkFormMessages,
|
|
12
|
+
snkFormConfig: snkFormConfigMessages,
|
|
13
|
+
snkConfigOptions: snkConfigOptionsMessages,
|
|
10
14
|
snkTaskbar: snkTaskbarMessages,
|
|
11
|
-
|
|
15
|
+
snkConfigModal: snkConfigModalMessages,
|
|
16
|
+
snkFieldConfig: snkFieldConfigMessages,
|
|
17
|
+
snkFilterBar: snkFilterBarMessages,
|
|
18
|
+
snkConfigurator: snkConfiguratorMessages,
|
|
19
|
+
snkTabConfig: snkTabConfigMessages,
|
|
20
|
+
crudUtils: crudUtilsMessages
|
|
12
21
|
};
|
|
13
22
|
this._currentOperation = OperationMap.CLEAN;
|
|
14
23
|
this.loadAppMessages().then((msgs) => {
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export const snkConfiguratorMessages = {
|
|
2
|
+
msgSaveSuccessfully: "As configurações foram salvas com sucesso!"
|
|
3
|
+
};
|
|
4
|
+
export const snkConfigModalMessages = {
|
|
5
|
+
titleConfigurations: "Configurações",
|
|
6
|
+
subTitleModeConfig: "Modo de visualização",
|
|
7
|
+
labelConfigGrid: "Configurar grade",
|
|
8
|
+
labelConfigForm: "Configurar formulário",
|
|
9
|
+
labelGrid: "Grade",
|
|
10
|
+
labelForm: "Formulário"
|
|
11
|
+
};
|
|
@@ -7,12 +7,24 @@ const snkFilterBarMessages = {
|
|
|
7
7
|
"applyFilter": "Aplicar",
|
|
8
8
|
"findFilter": "Buscar filtros...",
|
|
9
9
|
"findField": "Buscar filtros...",
|
|
10
|
+
"modalFindFilter": "Buscar filtro",
|
|
10
11
|
"emptyFiltersList": "Não há filtros disponíveis",
|
|
11
12
|
"emptyAppliedFiltersList": "Não há filtros aplicados",
|
|
12
13
|
"customFilter": "Filtro personalizado",
|
|
13
|
-
"defaultFilter": "Filtro
|
|
14
|
+
"defaultFilter": "Filtro padrão",
|
|
14
15
|
"failToLoadConfig": "Falha ao buscar configuração de filtros",
|
|
15
16
|
"clearAllFilters": "Limpar todos os filtros",
|
|
16
|
-
"successfullyCleaned": "Filtro limpo com sucesso!"
|
|
17
|
+
"successfullyCleaned": "Filtro limpo com sucesso!",
|
|
18
|
+
"activeFilter": "{{ACTIVE_FILTERS}} filtro aplicado",
|
|
19
|
+
"activeFilters": "{{ACTIVE_FILTERS}} filtros aplicados",
|
|
20
|
+
"noActiveFilters": "Nenhum filtro aplicado",
|
|
21
|
+
"modalDefaultFilterTitle": "Filtro padrão",
|
|
22
|
+
"modalInfoTextEditDefault": "Use o layout antigo para editar o seu filtro padrão, em breve traremos uma nova experiência.",
|
|
23
|
+
"modalInfoTextCreateDefault": "Use o layout antigo para criar o seu filtro padrão, em breve traremos uma nova experiência.",
|
|
24
|
+
"modalPersonalizedFilterTitle": "Filtro personalizado",
|
|
25
|
+
"modalPersonalizedFilterSubTitle": "Gerencie seus filtros",
|
|
26
|
+
"modalInfoTextCreateEditPersonalized": "Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",
|
|
27
|
+
"modalOkButtonLabel": "Aplicar",
|
|
28
|
+
"modalCancelButtonLabel": "Limpar"
|
|
17
29
|
};
|
|
18
30
|
export default snkFilterBarMessages;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const snkFormMessages = {
|
|
1
|
+
export const snkFormMessages = {
|
|
2
2
|
title: {
|
|
3
3
|
clone: "Duplicar registro",
|
|
4
4
|
insert: "Cadastrar registro",
|
|
@@ -7,4 +7,61 @@ const snkFormMessages = {
|
|
|
7
7
|
},
|
|
8
8
|
goBackTitle: "Voltar"
|
|
9
9
|
};
|
|
10
|
-
export
|
|
10
|
+
export const snkConfigOptionsMessages = {
|
|
11
|
+
label: {
|
|
12
|
+
nameField: "Nome do Campo *",
|
|
13
|
+
typeValueDefault: "Tipo de valor padrão *",
|
|
14
|
+
valueDefault: "Valor Padrão",
|
|
15
|
+
clearDuplicate: "Limpar ao Duplicar",
|
|
16
|
+
requiredField: "Campo Obrigatório",
|
|
17
|
+
protectedField: "Campo Protegido"
|
|
18
|
+
},
|
|
19
|
+
options: {
|
|
20
|
+
valueFixed: "Valor Fixo",
|
|
21
|
+
variable: "Variável"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
export const snkFormConfigMessages = {
|
|
25
|
+
title: "Configuração do formulário",
|
|
26
|
+
applyConfig: "Aplicar configuração",
|
|
27
|
+
availableFields: {
|
|
28
|
+
title: "Campos disponíveis",
|
|
29
|
+
labelNoFields: "Nenhum campo disponível",
|
|
30
|
+
labelOneField: "1 campo disponível",
|
|
31
|
+
labelAvailableFields: "Campos disponíveis",
|
|
32
|
+
labelSearchField: "Procurar campo"
|
|
33
|
+
},
|
|
34
|
+
form: {
|
|
35
|
+
subTitleInfo: "Inclua estes campos nos grupos ou deixe-os separados no topo do formulário!",
|
|
36
|
+
labelDropField: "Arraste e solte um campo aqui",
|
|
37
|
+
labelNewGroup: "Adicionar novo grupo",
|
|
38
|
+
mainArea: "Área principal",
|
|
39
|
+
tabGeneral: "Geral"
|
|
40
|
+
},
|
|
41
|
+
confirm: {
|
|
42
|
+
title: "Aviso",
|
|
43
|
+
deleteTab: "A aba selecionada será excluída.<br/><br/> Tem certeza que deseja excluir aba",
|
|
44
|
+
cancel: "As alterações realizadas serão descartadas.<br/><br/><b>Gostaria de continuar?</b>",
|
|
45
|
+
exit: "Ao sair as alterações serão descartadas.<br/><br/><b>Você realmente gostaria de sair?</b>",
|
|
46
|
+
apply: "A <b>{0}</b> irá substituir a sua configuração {1}!<br/><br/><b>Deseja continuar?</b>",
|
|
47
|
+
group: "Não é possível salvar as configurações com um grupo vazio!",
|
|
48
|
+
labelYes: "Sim",
|
|
49
|
+
labelNo: "Não"
|
|
50
|
+
},
|
|
51
|
+
alert: {
|
|
52
|
+
titleGroupExists: "Já existe um grupo com título",
|
|
53
|
+
infoValidTitle: "Por favor, digite um título válido.",
|
|
54
|
+
inTab: "na aba"
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
export const snkFieldConfigMessages = {
|
|
58
|
+
titleRemove: "Remover",
|
|
59
|
+
titleConfigurations: "Configurações",
|
|
60
|
+
titleAdd: "Adicionar"
|
|
61
|
+
};
|
|
62
|
+
export const snkTabConfigMessages = {
|
|
63
|
+
labelRename: "Renomear",
|
|
64
|
+
labelHide: "Ocultar",
|
|
65
|
+
labelShow: "Exibir",
|
|
66
|
+
labelDelete: "Excluir"
|
|
67
|
+
};
|
|
@@ -11,7 +11,7 @@ const snkTaskbarMessages = {
|
|
|
11
11
|
titleSave: "Salvar",
|
|
12
12
|
titleGridMode: "Modo Grade",
|
|
13
13
|
titleFormMode: "Modo Formulário",
|
|
14
|
-
|
|
14
|
+
titleConfigurator: "Configurações",
|
|
15
15
|
forbidden: "Permissão não liberada"
|
|
16
16
|
};
|
|
17
17
|
export default snkTaskbarMessages;
|