@sankhyalabs/sankhyablocks 1.3.34 → 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-6c2f7bcd.js +302 -0
- 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-3daf58d3.js +16 -0
- package/dist/cjs/form-config-fetcher-2de7c16a.js +6895 -0
- package/dist/cjs/{index-1133bc2a.js → index-20e8b68a.js} +964 -209
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/sankhyablocks.cjs.js +3 -3
- package/dist/cjs/snk-application.cjs.entry.js +680 -6994
- 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 +78 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +272 -0
- package/dist/cjs/snk-field-config_2.cjs.entry.js +135 -0
- package/dist/cjs/snk-filter-binary-select.cjs.entry.js +50 -0
- package/dist/cjs/snk-filter-detail.cjs.entry.js +106 -0
- package/dist/cjs/snk-filter-multi-select.cjs.entry.js +26 -0
- package/dist/cjs/snk-filter-number.cjs.entry.js +27 -0
- package/dist/cjs/snk-filter-period.cjs.entry.js +40 -0
- package/dist/cjs/snk-filter-personalized.cjs.entry.js +89 -0
- package/dist/cjs/snk-filter-search.cjs.entry.js +38 -0
- package/dist/cjs/snk-filter-text.cjs.entry.js +22 -0
- package/dist/cjs/snk-form-config.cjs.entry.js +957 -0
- package/dist/cjs/snk-form.cjs.entry.js +146 -0
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-tab-config.cjs.entry.js +321 -0
- package/dist/cjs/taskbar-elements-9a4b1e19.js +97 -0
- package/dist/cjs/taskbar-processor-6bd0d35c.js +47 -0
- package/dist/cjs/teste-pesquisa.cjs.entry.js +1 -1
- package/dist/collection/collection-manifest.json +45 -2
- package/dist/collection/components/snk-application/errorhandler/snk-error-handler.js +9 -2
- package/dist/collection/components/snk-application/snk-application.js +1346 -642
- 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.css +6 -0
- package/dist/collection/components/snk-crud/snk-crud.js +232 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.css +6 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +517 -0
- 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 +111 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.js +87 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-number.js +88 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-period.js +101 -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 +102 -0
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-filter-text.js +63 -0
- package/dist/collection/components/snk-filter-bar/filter-item/filter-item-type.enum.js +12 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +178 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +289 -0
- package/dist/collection/components/snk-filter-bar/filter-list/snk-filter-list.js +299 -0
- 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 +149 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +462 -0
- package/dist/collection/components/snk-form/snk-form.css +38 -0
- package/dist/collection/components/snk-form/snk-form.js +336 -0
- 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.css +18 -0
- package/dist/collection/components/snk-grid/snk-grid.js +273 -0
- package/dist/collection/components/snk-pesquisa/snk-pesquisa.js +80 -79
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +90 -0
- package/dist/collection/components/snk-taskbar/processor/taskbar-processor.js +43 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.css +3 -0
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +339 -0
- package/dist/collection/components/teste-pesquisa/teste-pesquisa.js +12 -9
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +39 -14
- package/dist/collection/lib/http/data-fetcher/fetchers/dataunit-fetcher.js +87 -21
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +62 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +106 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +4 -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/http/data-fetcher/fetchers/totals-fetcher.js +47 -0
- package/dist/collection/lib/index.js +2 -0
- package/dist/collection/lib/message/SnkMessageBuilder.js +130 -0
- 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-data-unit.msg.js +23 -0
- package/dist/collection/lib/message/resources/snk-filter-bar.msg.js +30 -0
- package/dist/collection/lib/message/resources/snk-form.msg.js +67 -0
- package/dist/collection/lib/message/resources/snk-taskbar.msg.js +17 -0
- package/dist/collection/lib/utils/CrudUtils.js +73 -0
- package/dist/collection/lib/utils/constants.js +72 -0
- package/dist/components/SnkMessageBuilder.js +280 -0
- package/dist/components/_commonjsHelpers.js +17 -0
- package/dist/components/constants.js +74 -0
- package/dist/components/filter-item-type.enum.js +14 -0
- package/dist/components/form-config-fetcher.js +6889 -0
- package/dist/components/index.d.ts +26 -5
- package/dist/components/index.js +26 -0
- package/dist/components/snk-application2.js +681 -6980
- 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.d.ts +11 -0
- package/dist/components/snk-crud.js +183 -0
- package/dist/components/snk-data-unit.d.ts +11 -0
- package/dist/components/snk-data-unit.js +294 -0
- 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-bar.d.ts +11 -0
- package/dist/components/snk-filter-bar.js +6 -0
- package/dist/components/snk-filter-bar2.js +516 -0
- package/dist/components/snk-filter-binary-select.d.ts +11 -0
- package/dist/components/snk-filter-binary-select.js +67 -0
- package/dist/components/snk-filter-detail.d.ts +11 -0
- package/dist/components/snk-filter-detail.js +6 -0
- package/dist/components/snk-filter-detail2.js +120 -0
- package/dist/components/snk-filter-item.d.ts +11 -0
- package/dist/components/snk-filter-item.js +6 -0
- package/dist/components/snk-filter-item2.js +194 -0
- package/dist/components/snk-filter-list.d.ts +11 -0
- package/dist/components/snk-filter-list.js +6 -0
- package/dist/components/snk-filter-list2.js +149 -0
- 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.d.ts +11 -0
- package/dist/components/snk-filter-multi-select.js +43 -0
- package/dist/components/snk-filter-number.d.ts +11 -0
- package/dist/components/snk-filter-number.js +44 -0
- package/dist/components/snk-filter-period.d.ts +11 -0
- package/dist/components/snk-filter-period.js +57 -0
- 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.d.ts +11 -0
- package/dist/components/snk-filter-search.js +55 -0
- package/dist/components/snk-filter-text.d.ts +11 -0
- package/dist/components/snk-filter-text.js +38 -0
- 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-form.d.ts +11 -0
- package/dist/components/snk-form.js +6 -0
- package/dist/components/snk-form2.js +209 -0
- package/dist/components/snk-grid.d.ts +11 -0
- package/dist/components/snk-grid.js +6 -0
- package/dist/components/snk-grid2.js +152 -0
- 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-taskbar.d.ts +11 -0
- package/dist/components/snk-taskbar.js +6 -0
- package/dist/components/snk-taskbar2.js +282 -0
- package/dist/components/taskbar-processor.js +45 -0
- package/dist/esm/SnkMessageBuilder-5792c260.js +280 -0
- 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-a79b2fa8.js +14 -0
- package/dist/esm/form-config-fetcher-96c6c2dc.js +6889 -0
- package/dist/esm/{index-ffda6382.js → index-e4121713.js} +963 -210
- package/dist/esm/loader.js +3 -3
- package/dist/esm/polyfills/css-shim.js +1 -1
- package/dist/esm/sankhyablocks.js +3 -3
- package/dist/esm/snk-application.entry.js +667 -6981
- 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 +74 -0
- package/dist/esm/snk-data-unit.entry.js +268 -0
- package/dist/esm/snk-field-config_2.entry.js +130 -0
- package/dist/esm/snk-filter-binary-select.entry.js +46 -0
- package/dist/esm/snk-filter-detail.entry.js +102 -0
- package/dist/esm/snk-filter-multi-select.entry.js +22 -0
- package/dist/esm/snk-filter-number.entry.js +23 -0
- package/dist/esm/snk-filter-period.entry.js +36 -0
- package/dist/esm/snk-filter-personalized.entry.js +85 -0
- package/dist/esm/snk-filter-search.entry.js +34 -0
- package/dist/esm/snk-filter-text.entry.js +18 -0
- package/dist/esm/snk-form-config.entry.js +953 -0
- package/dist/esm/snk-form.entry.js +142 -0
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-tab-config.entry.js +317 -0
- package/dist/esm/taskbar-elements-e2ed0536.js +94 -0
- package/dist/esm/taskbar-processor-aa6772c9.js +45 -0
- package/dist/esm/teste-pesquisa.entry.js +1 -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-2a7b4cb3.entry.js → p-44ce5b90.entry.js} +1 -1
- package/dist/sankhyablocks/p-521c96f0.entry.js +1 -0
- package/dist/sankhyablocks/{p-9520d78a.entry.js → p-6988f4a6.entry.js} +1 -1
- 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 -1
- package/dist/types/components/snk-application/errorhandler/snk-error-handler.d.ts +1 -0
- package/dist/types/components/snk-application/snk-application.d.ts +178 -26
- 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 +13 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-multi-select.d.ts +9 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-number.d.ts +9 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-period.d.ts +15 -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 +11 -0
- package/dist/types/components/snk-filter-bar/filter-item/editors/snk-filter-text.d.ts +8 -0
- package/dist/types/components/snk-filter-bar/filter-item/filter-item-type.enum.d.ts +11 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +20 -0
- 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 +45 -0
- 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 +65 -0
- 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 +30 -0
- package/dist/types/components/snk-taskbar/processor/taskbar-processor.d.ts +12 -0
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +92 -0
- package/dist/types/components.d.ts +1100 -12
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +7 -6
- package/dist/types/lib/http/data-fetcher/fetchers/dataunit-fetcher.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +21 -3
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +1 -1
- 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/http/data-fetcher/fetchers/totals-fetcher.d.ts +8 -0
- package/dist/types/lib/index.d.ts +2 -0
- package/dist/types/lib/message/SnkMessageBuilder.d.ts +42 -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-data-unit.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-filter-bar.msg.d.ts +2 -0
- package/dist/types/lib/message/resources/snk-form.msg.d.ts +5 -0
- package/dist/types/lib/message/resources/snk-taskbar.msg.d.ts +2 -0
- 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/dist/types/stencil-public-runtime.d.ts +15 -4
- package/loader/package.json +1 -0
- package/package.json +6 -5
- package/react/components.d.ts +23 -0
- package/react/components.js +23 -0
- package/react/components.js.map +1 -1
- package/dist/sankhyablocks/p-98e8490d.entry.js +0 -69
- package/dist/sankhyablocks/p-edcb9d8e.js +0 -2
|
@@ -8,6 +8,7 @@ export declare class DataFetcher {
|
|
|
8
8
|
static get(): DataFetcher;
|
|
9
9
|
static addRequestListener(listener: RequestListener): void;
|
|
10
10
|
static removeRequestListener(listener: RequestListener): void;
|
|
11
|
+
private processErrorInfo;
|
|
11
12
|
callGraphQL(req: any): Promise<any>;
|
|
12
13
|
private resolveURL;
|
|
13
14
|
private getContext;
|
|
@@ -22,10 +23,10 @@ export declare class DataFetcher {
|
|
|
22
23
|
private normalizeErrorResponse;
|
|
23
24
|
}
|
|
24
25
|
export interface RequestListener {
|
|
25
|
-
onRequestStart(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
26
|
+
onRequestStart(param: RequestListenerParams): void;
|
|
27
|
+
onRequestEnd(param: RequestListenerParams): void;
|
|
28
|
+
}
|
|
29
|
+
export interface RequestListenerParams {
|
|
30
|
+
url: string;
|
|
31
|
+
requestBody?: any;
|
|
31
32
|
}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { DataUnit } from "@sankhyalabs/core";
|
|
2
2
|
export default class DataUnitFetcher {
|
|
3
3
|
private templateByQuery;
|
|
4
|
+
private _loadDataTimeout;
|
|
4
5
|
constructor();
|
|
5
6
|
private buldTemplates;
|
|
6
7
|
getDataUnit(entityName: string, resourceID: string): DataUnit;
|
|
7
8
|
private loadMetadata;
|
|
8
9
|
private loadData;
|
|
10
|
+
private doLoadData;
|
|
9
11
|
private saveData;
|
|
10
12
|
private removeRecords;
|
|
13
|
+
private loadRecord;
|
|
11
14
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { SnkFilterItemConfig } from "../../../../components/snk-filter-bar/filter-item/snk-filter-item";
|
|
2
|
+
import { ResourceFetcher } from "./resource-fetcher";
|
|
3
|
+
export default class FilterBarConfigFetcher extends ResourceFetcher {
|
|
4
|
+
saveConfig(items: Array<SnkFilterItemConfig>, resourceID: string, configName: string): Promise<boolean>;
|
|
5
|
+
getConfig(resourceID: string, configName: string): Promise<Array<SnkFilterItemConfig>>;
|
|
6
|
+
}
|
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IFormConfig, ITabConfig } from "@sankhyalabs/ezui/dist/types/components/ez-form/ez-form";
|
|
2
2
|
import { ResourceFetcher } from "./resource-fetcher";
|
|
3
3
|
export declare class FormConfigFetcher extends ResourceFetcher {
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
private queryConfig;
|
|
5
|
+
constructor();
|
|
6
|
+
private buildTemplatesConfig;
|
|
7
|
+
loadFormConfig(formName: string, resourceID: string): Promise<IFormConfig>;
|
|
8
|
+
getTabName(tab: string | ITabConfig): string;
|
|
9
|
+
saveConfig(config: IFormConfig, formName: string, resourceID: string): Promise<boolean>;
|
|
10
|
+
fetchUserAvailableConfigs(formName: string, resourceID: string): Promise<Array<IUserConfig>>;
|
|
11
|
+
fetchLegacyConfig(formName: string, resourceID: string): Promise<IFormConfig>;
|
|
12
|
+
fetchDefaultConfig(formName: string, resourceID: string): Promise<IFormConfig>;
|
|
13
|
+
}
|
|
14
|
+
export declare enum UserConfigType {
|
|
15
|
+
USER = "USER",
|
|
16
|
+
DEFAULT = "DEFAULT",
|
|
17
|
+
SHARED = "SHARED"
|
|
18
|
+
}
|
|
19
|
+
export interface IUserConfig {
|
|
20
|
+
name: string;
|
|
21
|
+
origin: UserConfigType;
|
|
22
|
+
key: string;
|
|
23
|
+
userID: number;
|
|
6
24
|
}
|
|
@@ -2,6 +2,6 @@ import { IGridConfig } from "@sankhyalabs/ezui/dist/types/components/ez-grid/con
|
|
|
2
2
|
import { ResourceFetcher } from "./resource-fetcher";
|
|
3
3
|
export default class GridConfigFetcher extends ResourceFetcher {
|
|
4
4
|
readonly GRID_CONFIG_VERSION = "V3:";
|
|
5
|
-
getConfig(resourceID: string): Promise<IGridConfig>;
|
|
5
|
+
getConfig(_gridName: string, resourceID: string): Promise<IGridConfig>;
|
|
6
6
|
saveConfig(config: IGridConfig, resourceID: string): Promise<boolean>;
|
|
7
7
|
}
|
|
@@ -2,12 +2,12 @@ export default class ParametersFetcher {
|
|
|
2
2
|
private templateByQuery;
|
|
3
3
|
constructor();
|
|
4
4
|
private buldTemplates;
|
|
5
|
-
getParam(name: string
|
|
6
|
-
asString(name: string
|
|
7
|
-
asInteger(name: string
|
|
8
|
-
asFloat(name: string
|
|
9
|
-
asBoolean(name: string
|
|
10
|
-
asDate(name: string
|
|
11
|
-
getBatchParams(names: Array<string
|
|
5
|
+
getParam(name: string): Promise<any>;
|
|
6
|
+
asString(name: string): Promise<string>;
|
|
7
|
+
asInteger(name: string): Promise<number>;
|
|
8
|
+
asFloat(name: string): Promise<number>;
|
|
9
|
+
asBoolean(name: string): Promise<boolean>;
|
|
10
|
+
asDate(name: string): Promise<Date>;
|
|
11
|
+
getBatchParams(names: Array<string>): Promise<{}>;
|
|
12
12
|
private getValue;
|
|
13
13
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Filter } from "@sankhyalabs/core";
|
|
2
|
+
export declare class TotalsFetcher {
|
|
3
|
+
private templateByQuery;
|
|
4
|
+
constructor();
|
|
5
|
+
private buldTemplates;
|
|
6
|
+
private getTotals;
|
|
7
|
+
fetchTotals(name: string, resourceID: string, filters?: Array<Filter>): Promise<Map<string, number>>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare class SnkMessageBuilder {
|
|
2
|
+
private _appMessages;
|
|
3
|
+
private _defaults;
|
|
4
|
+
private _currentOperation;
|
|
5
|
+
/**
|
|
6
|
+
* É possível definir um ponteiro de função para modificar
|
|
7
|
+
* a mensagem de acordo com a conveniência da aplicação
|
|
8
|
+
*/
|
|
9
|
+
customMessageBuilder: (key: string, defaultMessage: string, params: any) => {
|
|
10
|
+
message: string;
|
|
11
|
+
params: any;
|
|
12
|
+
};
|
|
13
|
+
constructor();
|
|
14
|
+
/**
|
|
15
|
+
* Existem mensagens sensíveis a operação. Por exemplo, a mensagem
|
|
16
|
+
* de inclusão pode ser diferente da mensagem de alteração do mesmo
|
|
17
|
+
* recurso. Para isso "currentOperation" pode variar de acordo com
|
|
18
|
+
* OperationMap.
|
|
19
|
+
*/
|
|
20
|
+
set currentOperation(op: OperationMap);
|
|
21
|
+
/**
|
|
22
|
+
* Método usado para se obter mensagens, respeitando o padrão do sistema
|
|
23
|
+
* ou as mensagens específicas de cada tela
|
|
24
|
+
*
|
|
25
|
+
* @param key Chave usada para obter mensagens. Deve-se usar o separador "."
|
|
26
|
+
* alcançar diversos níveis.
|
|
27
|
+
* @param params Quando a mensagem possui o padrão {{NOME}} as ocorrências
|
|
28
|
+
* serão substituidas pelo respectivo valor do param.
|
|
29
|
+
* @returns A mensagem formatada.
|
|
30
|
+
*/
|
|
31
|
+
getMessage(key: string, params: any): string;
|
|
32
|
+
private resolveMessage;
|
|
33
|
+
private isOperationSensitive;
|
|
34
|
+
private postProcess;
|
|
35
|
+
private loadAppMessages;
|
|
36
|
+
}
|
|
37
|
+
export declare enum OperationMap {
|
|
38
|
+
CLONE = "clone",
|
|
39
|
+
INSERT = "insert",
|
|
40
|
+
UPDATE = "update",
|
|
41
|
+
CLEAN = "clean"
|
|
42
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface CrudFindResult {
|
|
2
|
+
fields: Map<string, string>;
|
|
3
|
+
}
|
|
4
|
+
export declare class CrudUtils {
|
|
5
|
+
static find(entityName: string, fields: Array<string>, criteria: Map<string, string>, onlyFirst: boolean, criteriaExpression: string, orderBy: string): Promise<unknown>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export declare const VIEW_MODE: {
|
|
2
|
+
grid: {
|
|
3
|
+
index: number;
|
|
4
|
+
name: string;
|
|
5
|
+
};
|
|
6
|
+
form: {
|
|
7
|
+
index: number;
|
|
8
|
+
name: string;
|
|
9
|
+
};
|
|
10
|
+
};
|
|
11
|
+
export declare const ACTION_CONFIG: {
|
|
12
|
+
add: string;
|
|
13
|
+
remove: string;
|
|
14
|
+
configuration: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const VARS_BY_TYPE: {
|
|
17
|
+
UserInterface: {
|
|
18
|
+
DATE: {
|
|
19
|
+
label: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}[];
|
|
22
|
+
DATETIME: {
|
|
23
|
+
label: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}[];
|
|
26
|
+
INTEGERNUMBER: {
|
|
27
|
+
label: string;
|
|
28
|
+
value: string;
|
|
29
|
+
}[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
export declare const DEFAULT_TYPE: {
|
|
33
|
+
fixed: string;
|
|
34
|
+
variable: string;
|
|
35
|
+
};
|
|
36
|
+
export declare const CONFIG_EVENTS: {
|
|
37
|
+
closeModal: string;
|
|
38
|
+
cancelConfig: string;
|
|
39
|
+
changeConfig: string;
|
|
40
|
+
configChanged: string;
|
|
41
|
+
fieldChanged: string;
|
|
42
|
+
dragStart: string;
|
|
43
|
+
dragSort: string;
|
|
44
|
+
dragSorted: string;
|
|
45
|
+
dragStop: string;
|
|
46
|
+
};
|
|
47
|
+
export declare const KEY_EVENTS: {
|
|
48
|
+
enter: string;
|
|
49
|
+
arrowLeft: string;
|
|
50
|
+
arrowRight: string;
|
|
51
|
+
tab: string;
|
|
52
|
+
escape: string;
|
|
53
|
+
};
|
|
54
|
+
export declare const TYPE_ACTIONS: {
|
|
55
|
+
rename: string;
|
|
56
|
+
hide: string;
|
|
57
|
+
show: string;
|
|
58
|
+
delete: string;
|
|
59
|
+
};
|
|
60
|
+
export declare const TAB_NAMES: {
|
|
61
|
+
main: string;
|
|
62
|
+
};
|
|
63
|
+
export declare const TAGS_BY_TYPE: {
|
|
64
|
+
LONGTEXT: string;
|
|
65
|
+
FILE: string;
|
|
66
|
+
DATE: string;
|
|
67
|
+
TIME: string;
|
|
68
|
+
DATETIME: string;
|
|
69
|
+
DEFAULT: string;
|
|
70
|
+
SWITCH: string;
|
|
71
|
+
CHECKBOX: string;
|
|
72
|
+
OPTIONSELECTOR: string;
|
|
73
|
+
SEARCH: string;
|
|
74
|
+
INTEGERNUMBER: string;
|
|
75
|
+
DECIMALNUMBER: string;
|
|
76
|
+
};
|
|
@@ -1,2 +1,3 @@
|
|
|
1
1
|
import { DataUnit } from "@sankhyalabs/core";
|
|
2
|
-
|
|
2
|
+
import { ISearchArgument } from "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box";
|
|
3
|
+
export declare const pesquisaLoadOptions: (searchArgument: ISearchArgument, fieldName: string, dataUnit: DataUnit) => any;
|
|
@@ -221,7 +221,8 @@ export declare type ErrorHandler = (err: any, element?: HTMLElement) => void;
|
|
|
221
221
|
*/
|
|
222
222
|
export declare const setMode: (handler: ResolutionHandler) => void;
|
|
223
223
|
/**
|
|
224
|
-
* getMode
|
|
224
|
+
* `getMode()` is used for libraries which provide multiple "modes" for styles.
|
|
225
|
+
* @param ref a reference to the node to get styles for
|
|
225
226
|
*/
|
|
226
227
|
export declare function getMode<T = string | undefined>(ref: any): T;
|
|
227
228
|
export declare function setPlatformHelpers(helpers: {
|
|
@@ -234,6 +235,8 @@ export declare function setPlatformHelpers(helpers: {
|
|
|
234
235
|
/**
|
|
235
236
|
* Get the base path to where the assets can be found. Use `setAssetPath(path)`
|
|
236
237
|
* if the path needs to be customized.
|
|
238
|
+
* @param path the path to use in calculating the asset path. this value will be
|
|
239
|
+
* used in conjunction with the base asset path
|
|
237
240
|
*/
|
|
238
241
|
export declare function getAssetPath(path: string): string;
|
|
239
242
|
/**
|
|
@@ -246,18 +249,22 @@ export declare function getAssetPath(path: string): string;
|
|
|
246
249
|
* `setAssetPath(document.currentScript.src)`, or using a bundler's replace plugin to
|
|
247
250
|
* dynamically set the path at build time, such as `setAssetPath(process.env.ASSET_PATH)`.
|
|
248
251
|
* But do note that this configuration depends on how your script is bundled, or lack of
|
|
249
|
-
*
|
|
252
|
+
* bundling, and where your assets can be loaded from. Additionally custom bundling
|
|
250
253
|
* will have to ensure the static assets are copied to its build directory.
|
|
254
|
+
* @param path the asset path to set
|
|
251
255
|
*/
|
|
252
256
|
export declare function setAssetPath(path: string): string;
|
|
253
257
|
/**
|
|
254
|
-
*
|
|
258
|
+
* Retrieve a Stencil element for a given reference
|
|
259
|
+
* @param ref the ref to get the Stencil element for
|
|
255
260
|
*/
|
|
256
261
|
export declare function getElement(ref: any): HTMLStencilElement;
|
|
257
262
|
/**
|
|
258
263
|
* Schedules a new render of the given instance or element even if no state changed.
|
|
259
264
|
*
|
|
260
|
-
* Notice `forceUpdate()` is not
|
|
265
|
+
* Notice `forceUpdate()` is not synchronous and might perform the DOM render in the next frame.
|
|
266
|
+
*
|
|
267
|
+
* @param ref the node/element to force the re-render of
|
|
261
268
|
*/
|
|
262
269
|
export declare function forceUpdate(ref: any): void;
|
|
263
270
|
/**
|
|
@@ -272,6 +279,8 @@ export interface HTMLStencilElement extends HTMLElement {
|
|
|
272
279
|
* in the best moment to perform DOM mutation without causing layout thrashing.
|
|
273
280
|
*
|
|
274
281
|
* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
|
|
282
|
+
*
|
|
283
|
+
* @param task the DOM-write to schedule
|
|
275
284
|
*/
|
|
276
285
|
export declare function writeTask(task: RafCallback): void;
|
|
277
286
|
/**
|
|
@@ -279,6 +288,8 @@ export declare function writeTask(task: RafCallback): void;
|
|
|
279
288
|
* in the best moment to perform DOM reads without causing layout thrashing.
|
|
280
289
|
*
|
|
281
290
|
* For further information: https://developers.google.com/web/fundamentals/performance/rendering/avoid-large-complex-layouts-and-layout-thrashing
|
|
291
|
+
*
|
|
292
|
+
* @param task the DOM-read to schedule
|
|
282
293
|
*/
|
|
283
294
|
export declare function readTask(task: RafCallback): void;
|
|
284
295
|
/**
|
package/loader/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sankhyalabs/sankhyablocks",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0-beta.10",
|
|
4
4
|
"description": "Stencil Component Starter",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -32,12 +32,13 @@
|
|
|
32
32
|
"link-dev": "gulp watch-dev"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
+
"@shopify/draggable": "^1.0.0-beta.8",
|
|
35
36
|
"graphql-request": "^4.2.0"
|
|
36
37
|
},
|
|
37
38
|
"devDependencies": {
|
|
38
39
|
"@babel/preset-env": "^7.18.2",
|
|
39
|
-
"@sankhyalabs/core": "
|
|
40
|
-
"@sankhyalabs/ezui": "
|
|
40
|
+
"@sankhyalabs/core": "1.0.71-beta.13",
|
|
41
|
+
"@sankhyalabs/ezui": "1.2.0-beta.22",
|
|
41
42
|
"@sankhyalabs/skippeerdeps": "^1.0.2",
|
|
42
43
|
"@semantic-release/git": "^9.0.0",
|
|
43
44
|
"@semantic-release/gitlab": "^6.1.0",
|
|
@@ -60,8 +61,8 @@
|
|
|
60
61
|
"verbose": true
|
|
61
62
|
},
|
|
62
63
|
"peerDependencies": {
|
|
63
|
-
"@sankhyalabs/core": "^1.
|
|
64
|
-
"@sankhyalabs/ezui": "^1.
|
|
64
|
+
"@sankhyalabs/core": "^1.0.71-beta.8",
|
|
65
|
+
"@sankhyalabs/ezui": "^1.2.0-beta.6"
|
|
65
66
|
},
|
|
66
67
|
"license": "MIT"
|
|
67
68
|
}
|