@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
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { DataFetcher } from '../';
|
|
2
|
+
import { ApplicationContext } from '@sankhyalabs/core';
|
|
3
|
+
export class CrudUtils {
|
|
4
|
+
static find(entityName, fields, criteria, onlyFirst = true, criteriaExpression, orderBy) {
|
|
5
|
+
const SERVICE_CRUD_FIND = "mge@crud.find";
|
|
6
|
+
let parsedFields = [];
|
|
7
|
+
let parsedCriteria = [];
|
|
8
|
+
let literalCriteria = {};
|
|
9
|
+
let application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
10
|
+
if (fields) {
|
|
11
|
+
if (!Array.isArray(fields)) {
|
|
12
|
+
throw new Error(application.messagesBuilder.getMessage("crudUtils.errorArray", null));
|
|
13
|
+
}
|
|
14
|
+
fields.forEach((fieldName) => {
|
|
15
|
+
parsedFields.push({
|
|
16
|
+
name: fieldName
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
if (criteria) {
|
|
21
|
+
for (const key in criteria) {
|
|
22
|
+
if (criteria.hasOwnProperty(key)) {
|
|
23
|
+
parsedCriteria.push({ nome: key, valor: criteria[key] });
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
;
|
|
28
|
+
if (criteriaExpression) {
|
|
29
|
+
literalCriteria = {
|
|
30
|
+
expression: {
|
|
31
|
+
$: criteriaExpression
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
let request = {
|
|
36
|
+
requestBody: {
|
|
37
|
+
entity: {
|
|
38
|
+
name: entityName,
|
|
39
|
+
criterio: parsedCriteria,
|
|
40
|
+
fields: {
|
|
41
|
+
field: parsedFields
|
|
42
|
+
},
|
|
43
|
+
literalCriteria: literalCriteria,
|
|
44
|
+
orderby: orderBy
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
return new Promise((resolve) => {
|
|
49
|
+
DataFetcher.get().callServiceBroker(SERVICE_CRUD_FIND, JSON.stringify(request)).then((result) => {
|
|
50
|
+
var _a;
|
|
51
|
+
let entities = (_a = result.entidades) === null || _a === void 0 ? void 0 : _a.entidade;
|
|
52
|
+
if (entities != undefined) {
|
|
53
|
+
let crudFindResult = {
|
|
54
|
+
fields: new Map()
|
|
55
|
+
};
|
|
56
|
+
for (let key in entities) {
|
|
57
|
+
let fieldValue = entities[key];
|
|
58
|
+
if (fieldValue.hasOwnProperty('$')) {
|
|
59
|
+
crudFindResult.fields.set(key, fieldValue.$);
|
|
60
|
+
}
|
|
61
|
+
if (onlyFirst) {
|
|
62
|
+
break;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
resolve(crudFindResult);
|
|
66
|
+
}
|
|
67
|
+
else {
|
|
68
|
+
resolve(null);
|
|
69
|
+
}
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
export const VIEW_MODE = {
|
|
2
|
+
grid: {
|
|
3
|
+
index: 0,
|
|
4
|
+
name: "GRID_MODE"
|
|
5
|
+
},
|
|
6
|
+
form: {
|
|
7
|
+
index: 1,
|
|
8
|
+
name: "FORM_MODE"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
export const ACTION_CONFIG = {
|
|
12
|
+
add: 'ADD',
|
|
13
|
+
remove: 'REMOVE',
|
|
14
|
+
configuration: 'CONFIGURATION'
|
|
15
|
+
};
|
|
16
|
+
export const VARS_BY_TYPE = {
|
|
17
|
+
UserInterface: {
|
|
18
|
+
DATE: [{ label: "Data atual", value: "${data}" }],
|
|
19
|
+
DATETIME: [{ label: "Data e hora atuais", value: "${datahora}" }],
|
|
20
|
+
INTEGERNUMBER: [
|
|
21
|
+
{ label: "Código do usuário logado", value: "${usuario}" },
|
|
22
|
+
{ label: "Empresa do usuário logado", value: "${usuario.empresa}" },
|
|
23
|
+
{ label: "Vendedor para o usuário logado", value: "${usuario.vendedor}" },
|
|
24
|
+
{ label: "Cent. Resultado usuário logado", value: "${usuario.centroresultado}" }
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
export const DEFAULT_TYPE = {
|
|
29
|
+
fixed: "F",
|
|
30
|
+
variable: "V"
|
|
31
|
+
};
|
|
32
|
+
export const CONFIG_EVENTS = {
|
|
33
|
+
closeModal: "ezCloseModal",
|
|
34
|
+
cancelConfig: "cancelConfig",
|
|
35
|
+
changeConfig: "changeConfig",
|
|
36
|
+
configChanged: "configChanged",
|
|
37
|
+
fieldChanged: "ezChange",
|
|
38
|
+
dragStart: "sortable:start",
|
|
39
|
+
dragSort: "sortable:sort",
|
|
40
|
+
dragSorted: "sortable:sorted",
|
|
41
|
+
dragStop: "sortable:stop"
|
|
42
|
+
};
|
|
43
|
+
export const KEY_EVENTS = {
|
|
44
|
+
enter: "Enter",
|
|
45
|
+
arrowLeft: "ArrowLeft",
|
|
46
|
+
arrowRight: "ArrowRight",
|
|
47
|
+
tab: "Tab",
|
|
48
|
+
escape: "Escape"
|
|
49
|
+
};
|
|
50
|
+
export const TYPE_ACTIONS = {
|
|
51
|
+
rename: "RENAME",
|
|
52
|
+
hide: "HIDE",
|
|
53
|
+
show: "SHOW",
|
|
54
|
+
delete: "DELETE"
|
|
55
|
+
};
|
|
56
|
+
export const TAB_NAMES = {
|
|
57
|
+
main: "__main"
|
|
58
|
+
};
|
|
59
|
+
export const TAGS_BY_TYPE = {
|
|
60
|
+
LONGTEXT: "ez-text-area",
|
|
61
|
+
FILE: "ez-upload",
|
|
62
|
+
DATE: "ez-date-input",
|
|
63
|
+
TIME: "ez-time",
|
|
64
|
+
DATETIME: "ez-date-time-input",
|
|
65
|
+
DEFAULT: "ez-text-input",
|
|
66
|
+
SWITCH: "ez-check",
|
|
67
|
+
CHECKBOX: "ez-check",
|
|
68
|
+
OPTIONSELECTOR: "ez-combo-box",
|
|
69
|
+
SEARCH: "ez-search",
|
|
70
|
+
INTEGERNUMBER: "ez-number-input",
|
|
71
|
+
DECIMALNUMBER: "ez-number-input"
|
|
72
|
+
};
|
|
@@ -1,119 +1,3 @@
|
|
|
1
|
-
var DialogType;
|
|
2
|
-
(function (DialogType) {
|
|
3
|
-
DialogType["WARN"] = "warn";
|
|
4
|
-
DialogType["CRITICAL"] = "critical";
|
|
5
|
-
DialogType["DEFAULT"] = "default";
|
|
6
|
-
})(DialogType || (DialogType = {}));
|
|
7
|
-
|
|
8
|
-
class ApplicationUtils {
|
|
9
|
-
static async showDialog(title, message, icon = null, confirm, dialogType = DialogType.DEFAULT, options) {
|
|
10
|
-
if (options) {
|
|
11
|
-
options = Object.assign(Object.assign({}, ApplicationUtils.defaultMessageOptions), options);
|
|
12
|
-
}
|
|
13
|
-
return new Promise(resolve => {
|
|
14
|
-
let dialog = document.querySelector("ez-dialog");
|
|
15
|
-
if (!dialog) {
|
|
16
|
-
dialog = document.createElement("ez-dialog");
|
|
17
|
-
window.document.body.appendChild(dialog);
|
|
18
|
-
}
|
|
19
|
-
dialog.show(title, message, dialogType, confirm, icon, options.labelCancel, options.labelConfirm, options.btnConfirmDanger).then(ok => resolve(ok));
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
static async alert(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
|
|
23
|
-
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.WARN, options);
|
|
24
|
-
}
|
|
25
|
-
static async error(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
|
|
26
|
-
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.CRITICAL, options);
|
|
27
|
-
}
|
|
28
|
-
static async confirm(title, message, icon = null, dialogType = DialogType.WARN, options = ApplicationUtils.defaultMessageOptions) {
|
|
29
|
-
return ApplicationUtils.showDialog(title, message, icon, true, dialogType, options);
|
|
30
|
-
}
|
|
31
|
-
static async message(title, message, icon = null, options = ApplicationUtils.defaultMessageOptions) {
|
|
32
|
-
return ApplicationUtils.showDialog(title, message, icon, false, DialogType.DEFAULT, options);
|
|
33
|
-
}
|
|
34
|
-
static async info(message, options = ApplicationUtils.defaultMessageOptions) {
|
|
35
|
-
let toast = document.querySelector("ez-toast");
|
|
36
|
-
if (!toast) {
|
|
37
|
-
toast = document.createElement("ez-toast");
|
|
38
|
-
const icon = document.createElement("ez-icon");
|
|
39
|
-
icon.className = "ez-margin-right--small toast__icon--color";
|
|
40
|
-
icon.slot = "icon";
|
|
41
|
-
toast.appendChild(icon);
|
|
42
|
-
window.document.body.appendChild(toast);
|
|
43
|
-
}
|
|
44
|
-
if (options.iconName) {
|
|
45
|
-
const iconElem = toast.querySelector("ez-icon");
|
|
46
|
-
if (iconElem) {
|
|
47
|
-
iconElem.iconName = options.iconName;
|
|
48
|
-
toast.useIcon = true;
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
else {
|
|
52
|
-
toast.useIcon = false;
|
|
53
|
-
}
|
|
54
|
-
toast.show(message, 5000, false, options.canClose);
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
ApplicationUtils.defaultMessageOptions = {
|
|
58
|
-
canClose: true,
|
|
59
|
-
labelCancel: 'Não',
|
|
60
|
-
labelConfirm: 'Sim',
|
|
61
|
-
btnConfirmDanger: false
|
|
62
|
-
};
|
|
63
|
-
;
|
|
64
|
-
|
|
65
|
-
class CSSVarsUtils {
|
|
66
|
-
static applyVarsTextInput(host, child) {
|
|
67
|
-
if (child) {
|
|
68
|
-
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
|
|
69
|
-
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
|
|
70
|
-
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input--height');
|
|
71
|
-
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--disabled--background-color');
|
|
72
|
-
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--disabled--color');
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
static applyVarsButton(host, child) {
|
|
76
|
-
if (child) {
|
|
77
|
-
["--ez-button--min-width",
|
|
78
|
-
"--ez-button--height",
|
|
79
|
-
"--ez-button__icon--width",
|
|
80
|
-
"--ez-button__inline__icon--padding",
|
|
81
|
-
"--ez-button--padding-top",
|
|
82
|
-
"--ez-button--padding-bottom",
|
|
83
|
-
"--ez-button--padding-right",
|
|
84
|
-
"--ez-button--padding-left",
|
|
85
|
-
"--ez-button--color",
|
|
86
|
-
"--ez-button--font-size",
|
|
87
|
-
"--ez-button--font-family",
|
|
88
|
-
"--ez-button--font-weight",
|
|
89
|
-
"--ez-button--background-color",
|
|
90
|
-
"--ez-button--border-radius",
|
|
91
|
-
"--ez-button--border",
|
|
92
|
-
"--ez-button--hover-color",
|
|
93
|
-
"--ez-button--hover--background-color",
|
|
94
|
-
"--ez-button--disabled-color",
|
|
95
|
-
"--ez-button--disabled--background-color",
|
|
96
|
-
"--ez-button--focus--border",
|
|
97
|
-
"--ez-button--focus--box-shadow",
|
|
98
|
-
"--ez-button--active-color",
|
|
99
|
-
"--ez-button--active--background-color",
|
|
100
|
-
"--ez-button--link-color",
|
|
101
|
-
"--ez-button--link--hover-color",
|
|
102
|
-
"--ez-button--link--small--font-size",
|
|
103
|
-
"--ez-button--link--medium--font-size",
|
|
104
|
-
"--ez-button--link--large--font-size",].forEach(prop => {
|
|
105
|
-
CSSVarsUtils.applyIfExists(host, child, prop);
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
static applyIfExists(host, element, varName) {
|
|
110
|
-
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
111
|
-
if (prop) {
|
|
112
|
-
element.style.setProperty(varName, prop);
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
|
|
117
1
|
const snkDataUnitMessages = {
|
|
118
2
|
saveInfo: {
|
|
119
3
|
clone: "Duplicação realizada!",
|
|
@@ -146,23 +30,25 @@ const snkFilterBarMessages = {
|
|
|
146
30
|
"applyFilter": "Aplicar",
|
|
147
31
|
"findFilter": "Buscar filtros...",
|
|
148
32
|
"findField": "Buscar filtros...",
|
|
33
|
+
"modalFindFilter": "Buscar filtro",
|
|
149
34
|
"emptyFiltersList": "Não há filtros disponíveis",
|
|
150
35
|
"emptyAppliedFiltersList": "Não há filtros aplicados",
|
|
151
36
|
"customFilter": "Filtro personalizado",
|
|
152
|
-
"defaultFilter": "Filtro
|
|
37
|
+
"defaultFilter": "Filtro padrão",
|
|
153
38
|
"failToLoadConfig": "Falha ao buscar configuração de filtros",
|
|
154
39
|
"clearAllFilters": "Limpar todos os filtros",
|
|
155
|
-
"successfullyCleaned": "Filtro limpo com sucesso!"
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
40
|
+
"successfullyCleaned": "Filtro limpo com sucesso!",
|
|
41
|
+
"activeFilter": "{{ACTIVE_FILTERS}} filtro aplicado",
|
|
42
|
+
"activeFilters": "{{ACTIVE_FILTERS}} filtros aplicados",
|
|
43
|
+
"noActiveFilters": "Nenhum filtro aplicado",
|
|
44
|
+
"modalDefaultFilterTitle": "Filtro padrão",
|
|
45
|
+
"modalInfoTextEditDefault": "Use o layout antigo para editar o seu filtro padrão, em breve traremos uma nova experiência.",
|
|
46
|
+
"modalInfoTextCreateDefault": "Use o layout antigo para criar o seu filtro padrão, em breve traremos uma nova experiência.",
|
|
47
|
+
"modalPersonalizedFilterTitle": "Filtro personalizado",
|
|
48
|
+
"modalPersonalizedFilterSubTitle": "Gerencie seus filtros",
|
|
49
|
+
"modalInfoTextCreateEditPersonalized": "Use o layout antigo para criar ou editar filtros, em breve traremos uma nova experiência",
|
|
50
|
+
"modalOkButtonLabel": "Aplicar",
|
|
51
|
+
"modalCancelButtonLabel": "Limpar"
|
|
166
52
|
};
|
|
167
53
|
|
|
168
54
|
const snkTaskbarMessages = {
|
|
@@ -178,17 +64,108 @@ const snkTaskbarMessages = {
|
|
|
178
64
|
titleSave: "Salvar",
|
|
179
65
|
titleGridMode: "Modo Grade",
|
|
180
66
|
titleFormMode: "Modo Formulário",
|
|
181
|
-
|
|
67
|
+
titleConfigurator: "Configurações",
|
|
182
68
|
forbidden: "Permissão não liberada"
|
|
183
69
|
};
|
|
184
70
|
|
|
71
|
+
const crudUtilsMessages = {
|
|
72
|
+
errorArray: "CrudUtils.find deve receber um array de fields, ou uma lista separada por virgula.",
|
|
73
|
+
};
|
|
74
|
+
|
|
75
|
+
const snkFormMessages = {
|
|
76
|
+
title: {
|
|
77
|
+
clone: "Duplicar registro",
|
|
78
|
+
insert: "Cadastrar registro",
|
|
79
|
+
update: "Alterar registro",
|
|
80
|
+
clean: "{{ENTITY_NAME}}"
|
|
81
|
+
},
|
|
82
|
+
goBackTitle: "Voltar"
|
|
83
|
+
};
|
|
84
|
+
const snkConfigOptionsMessages = {
|
|
85
|
+
label: {
|
|
86
|
+
nameField: "Nome do Campo *",
|
|
87
|
+
typeValueDefault: "Tipo de valor padrão *",
|
|
88
|
+
valueDefault: "Valor Padrão",
|
|
89
|
+
clearDuplicate: "Limpar ao Duplicar",
|
|
90
|
+
requiredField: "Campo Obrigatório",
|
|
91
|
+
protectedField: "Campo Protegido"
|
|
92
|
+
},
|
|
93
|
+
options: {
|
|
94
|
+
valueFixed: "Valor Fixo",
|
|
95
|
+
variable: "Variável"
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
const snkFormConfigMessages = {
|
|
99
|
+
title: "Configuração do formulário",
|
|
100
|
+
applyConfig: "Aplicar configuração",
|
|
101
|
+
availableFields: {
|
|
102
|
+
title: "Campos disponíveis",
|
|
103
|
+
labelNoFields: "Nenhum campo disponível",
|
|
104
|
+
labelOneField: "1 campo disponível",
|
|
105
|
+
labelAvailableFields: "Campos disponíveis",
|
|
106
|
+
labelSearchField: "Procurar campo"
|
|
107
|
+
},
|
|
108
|
+
form: {
|
|
109
|
+
subTitleInfo: "Inclua estes campos nos grupos ou deixe-os separados no topo do formulário!",
|
|
110
|
+
labelDropField: "Arraste e solte um campo aqui",
|
|
111
|
+
labelNewGroup: "Adicionar novo grupo",
|
|
112
|
+
mainArea: "Área principal",
|
|
113
|
+
tabGeneral: "Geral"
|
|
114
|
+
},
|
|
115
|
+
confirm: {
|
|
116
|
+
title: "Aviso",
|
|
117
|
+
deleteTab: "A aba selecionada será excluída.<br/><br/> Tem certeza que deseja excluir aba",
|
|
118
|
+
cancel: "As alterações realizadas serão descartadas.<br/><br/><b>Gostaria de continuar?</b>",
|
|
119
|
+
exit: "Ao sair as alterações serão descartadas.<br/><br/><b>Você realmente gostaria de sair?</b>",
|
|
120
|
+
apply: "A <b>{0}</b> irá substituir a sua configuração {1}!<br/><br/><b>Deseja continuar?</b>",
|
|
121
|
+
group: "Não é possível salvar as configurações com um grupo vazio!",
|
|
122
|
+
labelYes: "Sim",
|
|
123
|
+
labelNo: "Não"
|
|
124
|
+
},
|
|
125
|
+
alert: {
|
|
126
|
+
titleGroupExists: "Já existe um grupo com título",
|
|
127
|
+
infoValidTitle: "Por favor, digite um título válido.",
|
|
128
|
+
inTab: "na aba"
|
|
129
|
+
}
|
|
130
|
+
};
|
|
131
|
+
const snkFieldConfigMessages = {
|
|
132
|
+
titleRemove: "Remover",
|
|
133
|
+
titleConfigurations: "Configurações",
|
|
134
|
+
titleAdd: "Adicionar"
|
|
135
|
+
};
|
|
136
|
+
const snkTabConfigMessages = {
|
|
137
|
+
labelRename: "Renomear",
|
|
138
|
+
labelHide: "Ocultar",
|
|
139
|
+
labelShow: "Exibir",
|
|
140
|
+
labelDelete: "Excluir"
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
const snkConfiguratorMessages = {
|
|
144
|
+
msgSaveSuccessfully: "As configurações foram salvas com sucesso!"
|
|
145
|
+
};
|
|
146
|
+
const snkConfigModalMessages = {
|
|
147
|
+
titleConfigurations: "Configurações",
|
|
148
|
+
subTitleModeConfig: "Modo de visualização",
|
|
149
|
+
labelConfigGrid: "Configurar grade",
|
|
150
|
+
labelConfigForm: "Configurar formulário",
|
|
151
|
+
labelGrid: "Grade",
|
|
152
|
+
labelForm: "Formulário"
|
|
153
|
+
};
|
|
154
|
+
|
|
185
155
|
class SnkMessageBuilder {
|
|
186
156
|
constructor() {
|
|
187
157
|
this._defaults = {
|
|
188
158
|
snkDataUnit: snkDataUnitMessages,
|
|
189
159
|
snkForm: snkFormMessages,
|
|
160
|
+
snkFormConfig: snkFormConfigMessages,
|
|
161
|
+
snkConfigOptions: snkConfigOptionsMessages,
|
|
190
162
|
snkTaskbar: snkTaskbarMessages,
|
|
191
|
-
|
|
163
|
+
snkConfigModal: snkConfigModalMessages,
|
|
164
|
+
snkFieldConfig: snkFieldConfigMessages,
|
|
165
|
+
snkFilterBar: snkFilterBarMessages,
|
|
166
|
+
snkConfigurator: snkConfiguratorMessages,
|
|
167
|
+
snkTabConfig: snkTabConfigMessages,
|
|
168
|
+
crudUtils: crudUtilsMessages
|
|
192
169
|
};
|
|
193
170
|
this._currentOperation = OperationMap.CLEAN;
|
|
194
171
|
this.loadAppMessages().then((msgs) => {
|
|
@@ -300,4 +277,4 @@ var OperationMap;
|
|
|
300
277
|
OperationMap["CLEAN"] = "clean";
|
|
301
278
|
})(OperationMap || (OperationMap = {}));
|
|
302
279
|
|
|
303
|
-
export {
|
|
280
|
+
export { OperationMap as O, SnkMessageBuilder as S };
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
2
|
+
|
|
3
|
+
function createCommonjsModule(fn, basedir, module) {
|
|
4
|
+
return module = {
|
|
5
|
+
path: basedir,
|
|
6
|
+
exports: {},
|
|
7
|
+
require: function (path, base) {
|
|
8
|
+
return commonjsRequire();
|
|
9
|
+
}
|
|
10
|
+
}, fn(module, module.exports), module.exports;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function commonjsRequire () {
|
|
14
|
+
throw new Error('Dynamic requires are not currently supported by @rollup/plugin-commonjs');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export { commonjsGlobal as a, createCommonjsModule as c };
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
const VIEW_MODE = {
|
|
2
|
+
grid: {
|
|
3
|
+
index: 0,
|
|
4
|
+
name: "GRID_MODE"
|
|
5
|
+
},
|
|
6
|
+
form: {
|
|
7
|
+
index: 1,
|
|
8
|
+
name: "FORM_MODE"
|
|
9
|
+
}
|
|
10
|
+
};
|
|
11
|
+
const ACTION_CONFIG = {
|
|
12
|
+
add: 'ADD',
|
|
13
|
+
remove: 'REMOVE',
|
|
14
|
+
configuration: 'CONFIGURATION'
|
|
15
|
+
};
|
|
16
|
+
const VARS_BY_TYPE = {
|
|
17
|
+
UserInterface: {
|
|
18
|
+
DATE: [{ label: "Data atual", value: "${data}" }],
|
|
19
|
+
DATETIME: [{ label: "Data e hora atuais", value: "${datahora}" }],
|
|
20
|
+
INTEGERNUMBER: [
|
|
21
|
+
{ label: "Código do usuário logado", value: "${usuario}" },
|
|
22
|
+
{ label: "Empresa do usuário logado", value: "${usuario.empresa}" },
|
|
23
|
+
{ label: "Vendedor para o usuário logado", value: "${usuario.vendedor}" },
|
|
24
|
+
{ label: "Cent. Resultado usuário logado", value: "${usuario.centroresultado}" }
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
const DEFAULT_TYPE = {
|
|
29
|
+
fixed: "F",
|
|
30
|
+
variable: "V"
|
|
31
|
+
};
|
|
32
|
+
const CONFIG_EVENTS = {
|
|
33
|
+
closeModal: "ezCloseModal",
|
|
34
|
+
cancelConfig: "cancelConfig",
|
|
35
|
+
changeConfig: "changeConfig",
|
|
36
|
+
configChanged: "configChanged",
|
|
37
|
+
fieldChanged: "ezChange",
|
|
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
|
+
const TAB_NAMES = {
|
|
57
|
+
main: "__main"
|
|
58
|
+
};
|
|
59
|
+
const TAGS_BY_TYPE = {
|
|
60
|
+
LONGTEXT: "ez-text-area",
|
|
61
|
+
FILE: "ez-upload",
|
|
62
|
+
DATE: "ez-date-input",
|
|
63
|
+
TIME: "ez-time",
|
|
64
|
+
DATETIME: "ez-date-time-input",
|
|
65
|
+
DEFAULT: "ez-text-input",
|
|
66
|
+
SWITCH: "ez-check",
|
|
67
|
+
CHECKBOX: "ez-check",
|
|
68
|
+
OPTIONSELECTOR: "ez-combo-box",
|
|
69
|
+
SEARCH: "ez-search",
|
|
70
|
+
INTEGERNUMBER: "ez-number-input",
|
|
71
|
+
DECIMALNUMBER: "ez-number-input"
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export { ACTION_CONFIG as A, CONFIG_EVENTS as C, DEFAULT_TYPE as D, KEY_EVENTS as K, TAGS_BY_TYPE as T, VIEW_MODE as V, VARS_BY_TYPE as a, TAB_NAMES as b, TYPE_ACTIONS as c };
|
|
@@ -6,6 +6,8 @@ var FilterItemType;
|
|
|
6
6
|
FilterItemType["SEARCH"] = "SEARCH";
|
|
7
7
|
FilterItemType["TEXT"] = "TEXT";
|
|
8
8
|
FilterItemType["NUMBER"] = "NUMBER";
|
|
9
|
+
FilterItemType["DEFAULT_FILTER"] = "DEFAULT_FILTER";
|
|
10
|
+
FilterItemType["PERSONALIZED"] = "PERSONALIZED";
|
|
9
11
|
})(FilterItemType || (FilterItemType = {}));
|
|
10
12
|
const FilterItemType$1 = FilterItemType;
|
|
11
13
|
|