@sankhyalabs/sankhyablocks 1.4.0-beta.1 → 1.4.0-beta.10
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-1feabfc7.entry.js +1 -0
- package/dist/sankhyablocks/p-21c8929b.js +1 -0
- package/dist/sankhyablocks/p-2284c850.entry.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-6988f4a6.entry.js +1 -0
- package/dist/sankhyablocks/p-776ff4d1.entry.js +1 -0
- package/dist/sankhyablocks/p-7b4a4a50.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/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
|
@@ -1,22 +1,20 @@
|
|
|
1
1
|
import { h } from "@stencil/core";
|
|
2
|
-
import { DataType, ErrorTracking } from "@sankhyalabs/core";
|
|
3
|
-
import { DependencyType } from "@sankhyalabs/core";
|
|
4
|
-
import DataUnitFetcher from "../../lib/http/data-fetcher/fetchers/dataunit-fetcher";
|
|
2
|
+
import { DataType, ErrorTracking, DependencyType, ApplicationContext } from "@sankhyalabs/core";
|
|
5
3
|
import { DataFetcher } from "../../lib/http/data-fetcher/DataFetcher";
|
|
6
|
-
import UrlUtils from "../../lib/utils/urlutils";
|
|
7
|
-
import Workspace from "../../lib/workspace/workspace";
|
|
8
|
-
import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-fecher";
|
|
9
4
|
import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
|
|
5
|
+
import { SnkErrorHandler } from "./errorhandler/snk-error-handler";
|
|
10
6
|
import { FormConfigFetcher } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
|
|
11
|
-
import { ApplicationContext } from "@sankhyalabs/core";
|
|
12
|
-
import GridConfigFetcher from "../../lib/http/data-fetcher/fetchers/grid-config-fetcher";
|
|
13
7
|
import { PesquisaFetcher } from "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher";
|
|
14
|
-
import AuthFetcher, { AutorizationType } from "../../lib/http/data-fetcher/fetchers/auth-fetcher";
|
|
15
|
-
import MGEAuthorization from '../../lib/auth/mgeauthorization.module';
|
|
16
|
-
import { SnkErrorHandler } from "./errorhandler/snk-error-handler";
|
|
17
8
|
import { agGridLicense } from '../../lib/licenses/sankhyalicense.module';
|
|
18
9
|
import { TotalsFetcher } from "../../lib/http/data-fetcher/fetchers/totals-fetcher";
|
|
19
10
|
import { SnkMessageBuilder } from "../../lib/message/SnkMessageBuilder";
|
|
11
|
+
import DataUnitFetcher from "../../lib/http/data-fetcher/fetchers/dataunit-fetcher";
|
|
12
|
+
import UrlUtils from "../../lib/utils/urlutils";
|
|
13
|
+
import Workspace from "../../lib/workspace/workspace";
|
|
14
|
+
import ParametersFetcher from "../../lib/http/data-fetcher/fetchers/parameters-fecher";
|
|
15
|
+
import MGEAuthorization from '../../lib/auth/mgeauthorization.module';
|
|
16
|
+
import GridConfigFetcher from "../../lib/http/data-fetcher/fetchers/grid-config-fetcher";
|
|
17
|
+
import AuthFetcher, { AutorizationType } from "../../lib/http/data-fetcher/fetchers/auth-fetcher";
|
|
20
18
|
import FilterBarConfigFetcher from "../../lib/http/data-fetcher/fetchers/filter-bar-config-fetcher";
|
|
21
19
|
/**
|
|
22
20
|
* É possível customizar as mensagens dos blocos de construção através de um pequeno modulo na estrutura da aplicação:
|
|
@@ -113,46 +111,61 @@ export class SnkApplication {
|
|
|
113
111
|
* Retorna o valor de um parâmetro do tipo string.
|
|
114
112
|
*/
|
|
115
113
|
async getStringParam(name) {
|
|
116
|
-
return this.parameters.asString(name
|
|
114
|
+
return this.parameters.asString(name);
|
|
117
115
|
}
|
|
118
116
|
/**
|
|
119
117
|
* Retorna o valor de um parâmetro do tipo Inteiro.
|
|
120
118
|
*/
|
|
121
119
|
async getIntParam(name) {
|
|
122
|
-
return this.parameters.asInteger(name
|
|
120
|
+
return this.parameters.asInteger(name);
|
|
123
121
|
}
|
|
124
122
|
/**
|
|
125
123
|
* Retorna o valor de um parâmetro do tipo Decimal.
|
|
126
124
|
*/
|
|
127
125
|
async getFloatParam(name) {
|
|
128
|
-
return this.parameters.asFloat(name
|
|
126
|
+
return this.parameters.asFloat(name);
|
|
129
127
|
}
|
|
130
128
|
/**
|
|
131
129
|
* Retorna o valor de um parâmetro do tipo booleano.
|
|
132
130
|
*/
|
|
133
131
|
async getBooleanParam(name) {
|
|
134
|
-
return this.parameters.asBoolean(name
|
|
132
|
+
return this.parameters.asBoolean(name);
|
|
135
133
|
}
|
|
136
134
|
/**
|
|
137
135
|
* Retorna o valor de um parâmetro do tipo data.
|
|
138
136
|
*/
|
|
139
137
|
async getDateParam(name) {
|
|
140
|
-
return this.parameters.asDate(name
|
|
138
|
+
return this.parameters.asDate(name);
|
|
141
139
|
}
|
|
142
140
|
/**
|
|
143
141
|
* Mostra o conteúdo passado em um Popup
|
|
144
142
|
*/
|
|
145
|
-
async showPopUp(content) {
|
|
146
|
-
this.
|
|
143
|
+
async showPopUp(content, size = "full") {
|
|
144
|
+
this.clearContent(this._popUp);
|
|
145
|
+
if (content.tagName === 'EZ-MODAL-CONTAINER') {
|
|
146
|
+
this._popUp.useHeader = false;
|
|
147
|
+
}
|
|
147
148
|
this._popUp.appendChild(content);
|
|
148
149
|
this._popUp.opened = true;
|
|
150
|
+
this._popUp.heightMode = size;
|
|
151
|
+
}
|
|
152
|
+
async showModal(content) {
|
|
153
|
+
this.clearContent(this._rightModal);
|
|
154
|
+
this._rightModal.appendChild(content);
|
|
155
|
+
this._rightModal.opened = true;
|
|
156
|
+
}
|
|
157
|
+
async closeModal() {
|
|
158
|
+
this.clearContent(this._rightModal);
|
|
159
|
+
this._rightModal.opened = false;
|
|
149
160
|
}
|
|
150
161
|
/**
|
|
151
162
|
* Fecha o popup, liberando o conteúdo.
|
|
152
163
|
*/
|
|
153
164
|
async closePopUp() {
|
|
154
|
-
this.
|
|
165
|
+
this.clearContent(this._popUp);
|
|
155
166
|
this._popUp.opened = false;
|
|
167
|
+
this._popUp.useHeader = true;
|
|
168
|
+
this._popUp.heightMode = "full";
|
|
156
169
|
}
|
|
157
170
|
/**
|
|
158
171
|
* Verifica se a licença do cliente tem determinado opcional (produto)
|
|
@@ -293,6 +306,12 @@ export class SnkApplication {
|
|
|
293
306
|
async getResourceID() {
|
|
294
307
|
return Promise.resolve(this.resourceID);
|
|
295
308
|
}
|
|
309
|
+
/**
|
|
310
|
+
* Retorna o resourceID da tela em questão.
|
|
311
|
+
*/
|
|
312
|
+
async getUserID() {
|
|
313
|
+
return Promise.resolve(window["UID"]);
|
|
314
|
+
}
|
|
296
315
|
/**
|
|
297
316
|
* Mostra o diálogo de alerta de acordo com os parâmetros passados.
|
|
298
317
|
*/
|
|
@@ -341,6 +360,24 @@ export class SnkApplication {
|
|
|
341
360
|
async loadGridConfig(name) {
|
|
342
361
|
return this.gridConfigFetcher.getConfig(name, this.resourceID);
|
|
343
362
|
}
|
|
363
|
+
/**
|
|
364
|
+
* Busca lista de configurações de formulário do usuário.
|
|
365
|
+
*/
|
|
366
|
+
async fetchUserAvailableConfigs(name) {
|
|
367
|
+
return this.formConfigFetcher.fetchUserAvailableConfigs(name, this.resourceID);
|
|
368
|
+
}
|
|
369
|
+
/**
|
|
370
|
+
* Busca a configuração de formulário do usuário.
|
|
371
|
+
*/
|
|
372
|
+
async fetchLegacyConfig(name) {
|
|
373
|
+
return this.formConfigFetcher.fetchLegacyConfig(name, this.resourceID);
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Busca a configuração padrão de formulário.
|
|
377
|
+
*/
|
|
378
|
+
async fetchDefaultConfig(name) {
|
|
379
|
+
return this.formConfigFetcher.fetchDefaultConfig(name, this.resourceID);
|
|
380
|
+
}
|
|
344
381
|
/**
|
|
345
382
|
* Busca os totalizadores da grade.
|
|
346
383
|
*/
|
|
@@ -379,6 +416,12 @@ export class SnkApplication {
|
|
|
379
416
|
async saveFilterBarConfig(config, name) {
|
|
380
417
|
return this.filterBarConfigFetcher.saveConfig(config, this.resourceID, name);
|
|
381
418
|
}
|
|
419
|
+
/**
|
|
420
|
+
* Salva a configuração de formulário.
|
|
421
|
+
*/
|
|
422
|
+
async saveFormConfig(config, name) {
|
|
423
|
+
return this.formConfigFetcher.saveConfig(config, name, this.resourceID);
|
|
424
|
+
}
|
|
382
425
|
async getAuthList(_auth) {
|
|
383
426
|
return await (new MGEAuthorization()).parseFromJSON(_auth);
|
|
384
427
|
}
|
|
@@ -494,10 +537,10 @@ export class SnkApplication {
|
|
|
494
537
|
accept(window['isDebugMode']);
|
|
495
538
|
});
|
|
496
539
|
}
|
|
497
|
-
|
|
498
|
-
if (
|
|
499
|
-
Array.from(
|
|
500
|
-
|
|
540
|
+
clearContent(container) {
|
|
541
|
+
if (container) {
|
|
542
|
+
Array.from(container.children).forEach(child => {
|
|
543
|
+
container.removeChild(child);
|
|
501
544
|
});
|
|
502
545
|
}
|
|
503
546
|
}
|
|
@@ -541,7 +584,7 @@ export class SnkApplication {
|
|
|
541
584
|
});
|
|
542
585
|
}
|
|
543
586
|
render() {
|
|
544
|
-
return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() })));
|
|
587
|
+
return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "col col--sd-3", closeOutsideClick: true, closeEsc: true })));
|
|
545
588
|
}
|
|
546
589
|
static get is() { return "snk-application"; }
|
|
547
590
|
static get encapsulation() { return "scoped"; }
|
|
@@ -786,10 +829,13 @@ export class SnkApplication {
|
|
|
786
829
|
},
|
|
787
830
|
"showPopUp": {
|
|
788
831
|
"complexType": {
|
|
789
|
-
"signature": "(content: HTMLElement) => Promise<void>",
|
|
832
|
+
"signature": "(content: HTMLElement, size?: string) => Promise<void>",
|
|
790
833
|
"parameters": [{
|
|
791
834
|
"tags": [],
|
|
792
835
|
"text": ""
|
|
836
|
+
}, {
|
|
837
|
+
"tags": [],
|
|
838
|
+
"text": ""
|
|
793
839
|
}],
|
|
794
840
|
"references": {
|
|
795
841
|
"Promise": {
|
|
@@ -806,6 +852,44 @@ export class SnkApplication {
|
|
|
806
852
|
"tags": []
|
|
807
853
|
}
|
|
808
854
|
},
|
|
855
|
+
"showModal": {
|
|
856
|
+
"complexType": {
|
|
857
|
+
"signature": "(content: HTMLElement) => Promise<void>",
|
|
858
|
+
"parameters": [{
|
|
859
|
+
"tags": [],
|
|
860
|
+
"text": ""
|
|
861
|
+
}],
|
|
862
|
+
"references": {
|
|
863
|
+
"Promise": {
|
|
864
|
+
"location": "global"
|
|
865
|
+
},
|
|
866
|
+
"HTMLElement": {
|
|
867
|
+
"location": "global"
|
|
868
|
+
}
|
|
869
|
+
},
|
|
870
|
+
"return": "Promise<void>"
|
|
871
|
+
},
|
|
872
|
+
"docs": {
|
|
873
|
+
"text": "",
|
|
874
|
+
"tags": []
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"closeModal": {
|
|
878
|
+
"complexType": {
|
|
879
|
+
"signature": "() => Promise<void>",
|
|
880
|
+
"parameters": [],
|
|
881
|
+
"references": {
|
|
882
|
+
"Promise": {
|
|
883
|
+
"location": "global"
|
|
884
|
+
}
|
|
885
|
+
},
|
|
886
|
+
"return": "Promise<void>"
|
|
887
|
+
},
|
|
888
|
+
"docs": {
|
|
889
|
+
"text": "",
|
|
890
|
+
"tags": []
|
|
891
|
+
}
|
|
892
|
+
},
|
|
809
893
|
"closePopUp": {
|
|
810
894
|
"complexType": {
|
|
811
895
|
"signature": "() => Promise<void>",
|
|
@@ -997,6 +1081,22 @@ export class SnkApplication {
|
|
|
997
1081
|
"tags": []
|
|
998
1082
|
}
|
|
999
1083
|
},
|
|
1084
|
+
"getUserID": {
|
|
1085
|
+
"complexType": {
|
|
1086
|
+
"signature": "() => Promise<string>",
|
|
1087
|
+
"parameters": [],
|
|
1088
|
+
"references": {
|
|
1089
|
+
"Promise": {
|
|
1090
|
+
"location": "global"
|
|
1091
|
+
}
|
|
1092
|
+
},
|
|
1093
|
+
"return": "Promise<string>"
|
|
1094
|
+
},
|
|
1095
|
+
"docs": {
|
|
1096
|
+
"text": "Retorna o resourceID da tela em quest\u00E3o.",
|
|
1097
|
+
"tags": []
|
|
1098
|
+
}
|
|
1099
|
+
},
|
|
1000
1100
|
"alert": {
|
|
1001
1101
|
"complexType": {
|
|
1002
1102
|
"signature": "(title: string, message: string, icon?: string, options?: MessageOptions) => Promise<boolean>",
|
|
@@ -1192,7 +1292,7 @@ export class SnkApplication {
|
|
|
1192
1292
|
},
|
|
1193
1293
|
"loadFormConfig": {
|
|
1194
1294
|
"complexType": {
|
|
1195
|
-
"signature": "(name: string) => Promise<
|
|
1295
|
+
"signature": "(name: string) => Promise<IFormConfig>",
|
|
1196
1296
|
"parameters": [{
|
|
1197
1297
|
"tags": [],
|
|
1198
1298
|
"text": ""
|
|
@@ -1201,15 +1301,12 @@ export class SnkApplication {
|
|
|
1201
1301
|
"Promise": {
|
|
1202
1302
|
"location": "global"
|
|
1203
1303
|
},
|
|
1204
|
-
"
|
|
1304
|
+
"IFormConfig": {
|
|
1205
1305
|
"location": "import",
|
|
1206
1306
|
"path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
|
|
1207
|
-
},
|
|
1208
|
-
"Array": {
|
|
1209
|
-
"location": "global"
|
|
1210
1307
|
}
|
|
1211
1308
|
},
|
|
1212
|
-
"return": "Promise<
|
|
1309
|
+
"return": "Promise<IFormConfig>"
|
|
1213
1310
|
},
|
|
1214
1311
|
"docs": {
|
|
1215
1312
|
"text": "Busca a configura\u00E7\u00E3o de formul\u00E1rio.",
|
|
@@ -1239,6 +1336,78 @@ export class SnkApplication {
|
|
|
1239
1336
|
"tags": []
|
|
1240
1337
|
}
|
|
1241
1338
|
},
|
|
1339
|
+
"fetchUserAvailableConfigs": {
|
|
1340
|
+
"complexType": {
|
|
1341
|
+
"signature": "(name: string) => Promise<Array<IUserConfig>>",
|
|
1342
|
+
"parameters": [{
|
|
1343
|
+
"tags": [],
|
|
1344
|
+
"text": ""
|
|
1345
|
+
}],
|
|
1346
|
+
"references": {
|
|
1347
|
+
"Promise": {
|
|
1348
|
+
"location": "global"
|
|
1349
|
+
},
|
|
1350
|
+
"IUserConfig": {
|
|
1351
|
+
"location": "import",
|
|
1352
|
+
"path": "../../lib/http/data-fetcher/fetchers/form-config-fetcher"
|
|
1353
|
+
},
|
|
1354
|
+
"Array": {
|
|
1355
|
+
"location": "global"
|
|
1356
|
+
}
|
|
1357
|
+
},
|
|
1358
|
+
"return": "Promise<IUserConfig[]>"
|
|
1359
|
+
},
|
|
1360
|
+
"docs": {
|
|
1361
|
+
"text": "Busca lista de configura\u00E7\u00F5es de formul\u00E1rio do usu\u00E1rio.",
|
|
1362
|
+
"tags": []
|
|
1363
|
+
}
|
|
1364
|
+
},
|
|
1365
|
+
"fetchLegacyConfig": {
|
|
1366
|
+
"complexType": {
|
|
1367
|
+
"signature": "(name: string) => Promise<IFormConfig>",
|
|
1368
|
+
"parameters": [{
|
|
1369
|
+
"tags": [],
|
|
1370
|
+
"text": ""
|
|
1371
|
+
}],
|
|
1372
|
+
"references": {
|
|
1373
|
+
"Promise": {
|
|
1374
|
+
"location": "global"
|
|
1375
|
+
},
|
|
1376
|
+
"IFormConfig": {
|
|
1377
|
+
"location": "import",
|
|
1378
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
|
|
1379
|
+
}
|
|
1380
|
+
},
|
|
1381
|
+
"return": "Promise<IFormConfig>"
|
|
1382
|
+
},
|
|
1383
|
+
"docs": {
|
|
1384
|
+
"text": "Busca a configura\u00E7\u00E3o de formul\u00E1rio do usu\u00E1rio.",
|
|
1385
|
+
"tags": []
|
|
1386
|
+
}
|
|
1387
|
+
},
|
|
1388
|
+
"fetchDefaultConfig": {
|
|
1389
|
+
"complexType": {
|
|
1390
|
+
"signature": "(name: string) => Promise<IFormConfig>",
|
|
1391
|
+
"parameters": [{
|
|
1392
|
+
"tags": [],
|
|
1393
|
+
"text": ""
|
|
1394
|
+
}],
|
|
1395
|
+
"references": {
|
|
1396
|
+
"Promise": {
|
|
1397
|
+
"location": "global"
|
|
1398
|
+
},
|
|
1399
|
+
"IFormConfig": {
|
|
1400
|
+
"location": "import",
|
|
1401
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
|
|
1402
|
+
}
|
|
1403
|
+
},
|
|
1404
|
+
"return": "Promise<IFormConfig>"
|
|
1405
|
+
},
|
|
1406
|
+
"docs": {
|
|
1407
|
+
"text": "Busca a configura\u00E7\u00E3o padr\u00E3o de formul\u00E1rio.",
|
|
1408
|
+
"tags": []
|
|
1409
|
+
}
|
|
1410
|
+
},
|
|
1242
1411
|
"loadTotals": {
|
|
1243
1412
|
"complexType": {
|
|
1244
1413
|
"signature": "(name: string, resourceID: string, filters: Array<Filter>) => Promise<Map<string, number>>",
|
|
@@ -1352,9 +1521,35 @@ export class SnkApplication {
|
|
|
1352
1521
|
"tags": []
|
|
1353
1522
|
}
|
|
1354
1523
|
},
|
|
1524
|
+
"saveFormConfig": {
|
|
1525
|
+
"complexType": {
|
|
1526
|
+
"signature": "(config: IFormConfig, name: string) => Promise<boolean>",
|
|
1527
|
+
"parameters": [{
|
|
1528
|
+
"tags": [],
|
|
1529
|
+
"text": ""
|
|
1530
|
+
}, {
|
|
1531
|
+
"tags": [],
|
|
1532
|
+
"text": ""
|
|
1533
|
+
}],
|
|
1534
|
+
"references": {
|
|
1535
|
+
"Promise": {
|
|
1536
|
+
"location": "global"
|
|
1537
|
+
},
|
|
1538
|
+
"IFormConfig": {
|
|
1539
|
+
"location": "import",
|
|
1540
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form"
|
|
1541
|
+
}
|
|
1542
|
+
},
|
|
1543
|
+
"return": "Promise<boolean>"
|
|
1544
|
+
},
|
|
1545
|
+
"docs": {
|
|
1546
|
+
"text": "Salva a configura\u00E7\u00E3o de formul\u00E1rio.",
|
|
1547
|
+
"tags": []
|
|
1548
|
+
}
|
|
1549
|
+
},
|
|
1355
1550
|
"executeSearch": {
|
|
1356
1551
|
"complexType": {
|
|
1357
|
-
"signature": "(searchArgument:
|
|
1552
|
+
"signature": "(searchArgument: ISearchArgument, fieldName: string, dataUnit: DataUnit) => Promise<Array<IOption> | IOption>",
|
|
1358
1553
|
"parameters": [{
|
|
1359
1554
|
"tags": [],
|
|
1360
1555
|
"text": ""
|
|
@@ -1369,7 +1564,11 @@ export class SnkApplication {
|
|
|
1369
1564
|
"Promise": {
|
|
1370
1565
|
"location": "global"
|
|
1371
1566
|
},
|
|
1372
|
-
"
|
|
1567
|
+
"IOption": {
|
|
1568
|
+
"location": "import",
|
|
1569
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
|
|
1570
|
+
},
|
|
1571
|
+
"ISearchArgument": {
|
|
1373
1572
|
"location": "import",
|
|
1374
1573
|
"path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
|
|
1375
1574
|
},
|
|
@@ -1385,7 +1584,7 @@ export class SnkApplication {
|
|
|
1385
1584
|
"path": "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher"
|
|
1386
1585
|
}
|
|
1387
1586
|
},
|
|
1388
|
-
"return": "Promise<
|
|
1587
|
+
"return": "Promise<IOption | IOption[]>"
|
|
1389
1588
|
},
|
|
1390
1589
|
"docs": {
|
|
1391
1590
|
"text": "",
|
|
@@ -1394,7 +1593,7 @@ export class SnkApplication {
|
|
|
1394
1593
|
},
|
|
1395
1594
|
"executePreparedSearch": {
|
|
1396
1595
|
"complexType": {
|
|
1397
|
-
"signature": "(mode: string, argument: string, options: any) => Promise<Array<
|
|
1596
|
+
"signature": "(mode: string, argument: string, options: any) => Promise<Array<IOption> | IOption>",
|
|
1398
1597
|
"parameters": [{
|
|
1399
1598
|
"tags": [],
|
|
1400
1599
|
"text": ""
|
|
@@ -1409,7 +1608,7 @@ export class SnkApplication {
|
|
|
1409
1608
|
"Promise": {
|
|
1410
1609
|
"location": "global"
|
|
1411
1610
|
},
|
|
1412
|
-
"
|
|
1611
|
+
"IOption": {
|
|
1413
1612
|
"location": "import",
|
|
1414
1613
|
"path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
|
|
1415
1614
|
},
|
|
@@ -1420,7 +1619,7 @@ export class SnkApplication {
|
|
|
1420
1619
|
"location": "global"
|
|
1421
1620
|
}
|
|
1422
1621
|
},
|
|
1423
|
-
"return": "Promise<
|
|
1622
|
+
"return": "Promise<IOption | IOption[]>"
|
|
1424
1623
|
},
|
|
1425
1624
|
"docs": {
|
|
1426
1625
|
"text": "",
|