@sankhyalabs/sankhyablocks 8.15.0-rc.9 → 8.15.0
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/{ConfigStorage-d4c99a5e.js → ConfigStorage-942ce74b.js} +70 -7
- package/dist/cjs/{DataFetcher-99f0f6ed.js → DataFetcher-313debd8.js} +13 -5
- package/dist/cjs/{SnkFormConfigManager-3621bfc4.js → SnkFormConfigManager-f9dc0d28.js} +21 -13
- package/dist/cjs/{SnkMessageBuilder-141aa18d.js → SnkMessageBuilder-66aa2557.js} +4 -0
- package/dist/cjs/SnkMultiSelectionListDataSource-303e85d1.js +140 -0
- package/dist/cjs/{auth-fetcher-5161d082.js → auth-fetcher-54f5ff9d.js} +1 -1
- package/dist/cjs/{form-config-fetcher-9f1a13ca.js → form-config-fetcher-2dd00e5b.js} +13 -1
- package/dist/cjs/index-f9e81701.js +2 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-8bbee432.js → pesquisa-fetcher-213797ec.js} +273 -50
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_2.cjs.entry.js → snk-actions-button_4.cjs.entry.js} +519 -4
- package/dist/cjs/snk-application.cjs.entry.js +13 -8
- package/dist/cjs/snk-attach.cjs.entry.js +66 -46
- package/dist/cjs/snk-configurator.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +25 -17
- package/dist/cjs/snk-custom-slot-elements.cjs.entry.js +6 -2
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
- package/dist/cjs/{snk-data-unit-6026a9f7.js → snk-data-unit-41c29713.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +8 -9
- package/dist/cjs/snk-filter-bar.cjs.entry.js +31 -7
- package/dist/cjs/snk-filter-detail.cjs.entry.js +4 -1
- package/dist/cjs/snk-filter-item.cjs.entry.js +10 -6
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +8 -2
- package/dist/cjs/snk-form.cjs.entry.js +11 -4
- package/dist/cjs/snk-grid.cjs.entry.js +40 -21
- package/dist/cjs/{snk-guides-viewer-e87f01b9.js → snk-guides-viewer-4b6ecda8.js} +20 -11
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +6 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +255 -21
- package/dist/cjs/snk-taskbar.cjs.entry.js +69 -8
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/snk-application/snk-application.js +42 -2
- package/dist/collection/components/snk-attach/snk-attach.js +39 -24
- package/dist/collection/components/snk-attach/structure/builder/attach-crud-config.builder.js +1 -1
- package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +29 -22
- package/dist/collection/components/snk-configurator/snk-configurator.js +1 -1
- package/dist/collection/components/snk-crud/snk-crud.js +71 -11
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +50 -7
- package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.css +1 -1
- package/dist/collection/components/snk-custom-slot-elements/snk-custom-slot-elements.js +22 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +2 -2
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +22 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +28 -6
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.css +2 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +44 -3
- package/dist/collection/components/snk-form/snk-form.js +25 -1
- package/dist/collection/components/{snk-form → snk-form-config}/SnkFormConfigManager.js +20 -12
- package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.js +11 -5
- package/dist/collection/components/snk-grid/snk-grid.js +86 -16
- package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.js +130 -123
- package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.js +1 -1
- package/dist/collection/components/snk-simple-crud/regular-buttons.js +3 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +10 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +421 -17
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +86 -8
- package/dist/collection/lib/configs/ConfigStorage.js +63 -3
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +9 -40
- package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +33 -0
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +13 -5
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +12 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.js +6 -3
- package/dist/collection/lib/message/resources/snk-simple-crud.msg.js +4 -0
- package/dist/collection/lib/utils/CrudUtils.js +13 -1
- package/dist/components/ConfigStorage.js +68 -5
- package/dist/components/DataFetcher.js +13 -5
- package/dist/components/SnkFormConfigManager.js +19 -11
- package/dist/components/SnkMessageBuilder.js +4 -0
- package/dist/components/dataunit-fetcher.js +41 -39
- package/dist/components/field-search.js +93 -3
- package/dist/components/form-config-fetcher.js +12 -0
- package/dist/components/index.d.ts +6 -6
- package/dist/components/snk-application2.js +9 -1
- package/dist/components/snk-attach2.js +115 -52
- package/dist/components/snk-configurator2.js +1 -1
- package/dist/components/snk-crud.js +23 -11
- package/dist/components/snk-custom-slot-elements.js +7 -3
- package/dist/components/snk-data-exporter2.js +2 -2
- package/dist/components/snk-detail-view2.js +48 -11
- package/dist/components/snk-filter-bar2.js +29 -4
- package/dist/components/snk-filter-detail2.js +5 -1
- package/dist/components/snk-filter-item2.js +11 -6
- package/dist/components/snk-form-config2.js +7 -1
- package/dist/components/snk-form.js +8 -0
- package/dist/components/snk-grid-config2.js +128 -102
- package/dist/components/snk-grid2.js +42 -18
- package/dist/components/snk-simple-crud2.js +317 -29
- package/dist/components/snk-taskbar2.js +75 -11
- package/dist/esm/{ConfigStorage-39ed8aeb.js → ConfigStorage-86187da3.js} +70 -7
- package/dist/esm/{DataFetcher-a650ae58.js → DataFetcher-c1baf61d.js} +13 -5
- package/dist/esm/{SnkFormConfigManager-692e20c7.js → SnkFormConfigManager-f53f9f87.js} +21 -13
- package/dist/esm/{SnkMessageBuilder-9747ddd2.js → SnkMessageBuilder-0a4becdd.js} +4 -0
- package/dist/esm/SnkMultiSelectionListDataSource-36918dbf.js +133 -0
- package/dist/esm/{auth-fetcher-17dc5b5e.js → auth-fetcher-039abba3.js} +1 -1
- package/dist/esm/{form-config-fetcher-f121f880.js → form-config-fetcher-30fb808f.js} +13 -1
- package/dist/esm/index-a7d3d3f1.js +2 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-5a8cae10.js → pesquisa-fetcher-fe6f3826.js} +262 -43
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_2.entry.js → snk-actions-button_4.entry.js} +518 -5
- package/dist/esm/snk-application.entry.js +13 -8
- package/dist/esm/snk-attach.entry.js +65 -45
- package/dist/esm/snk-configurator.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +25 -17
- package/dist/esm/snk-custom-slot-elements.entry.js +7 -3
- package/dist/esm/snk-data-exporter.entry.js +5 -5
- package/dist/esm/{snk-data-unit-4c343635.js → snk-data-unit-de1d140d.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +8 -9
- package/dist/esm/snk-filter-bar.entry.js +31 -7
- package/dist/esm/snk-filter-detail.entry.js +4 -1
- package/dist/esm/snk-filter-item.entry.js +10 -6
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form-config.entry.js +9 -3
- package/dist/esm/snk-form.entry.js +11 -4
- package/dist/esm/snk-grid.entry.js +41 -22
- package/dist/esm/{snk-guides-viewer-ba8ce538.js → snk-guides-viewer-113be3fd.js} +20 -11
- package/dist/esm/snk-guides-viewer.entry.js +6 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +256 -22
- package/dist/esm/snk-taskbar.entry.js +70 -9
- package/dist/sankhyablocks/p-032fe52e.js +1 -0
- package/dist/sankhyablocks/p-07a61550.entry.js +1 -0
- package/dist/sankhyablocks/p-0899e0b5.entry.js +1 -0
- package/dist/sankhyablocks/p-14a08904.entry.js +1 -0
- package/dist/sankhyablocks/p-154a7f33.entry.js +1 -0
- package/dist/sankhyablocks/p-15802c59.entry.js +1 -0
- package/dist/sankhyablocks/p-164666b1.js +65 -0
- package/dist/sankhyablocks/p-21a81901.entry.js +1 -0
- package/dist/sankhyablocks/p-32556aa6.js +1 -0
- package/dist/sankhyablocks/p-328585d0.entry.js +1 -0
- package/dist/sankhyablocks/p-47bad461.entry.js +11 -0
- package/dist/sankhyablocks/{p-9a5d1b39.js → p-52c8e589.js} +1 -1
- package/dist/sankhyablocks/p-54a5d52a.entry.js +1 -0
- package/dist/sankhyablocks/p-5cb07080.js +1 -0
- package/dist/sankhyablocks/p-74d349c3.entry.js +1 -0
- package/dist/sankhyablocks/p-7663f597.entry.js +1 -0
- package/dist/sankhyablocks/{p-50783a8b.js → p-913a9979.js} +1 -1
- package/dist/sankhyablocks/{p-827e4b01.entry.js → p-a1d72395.entry.js} +1 -1
- package/dist/sankhyablocks/p-add17f6a.entry.js +1 -0
- package/dist/sankhyablocks/p-af1ac81f.entry.js +1 -0
- package/dist/sankhyablocks/p-aff76a53.js +56 -0
- package/dist/sankhyablocks/p-b4525fc0.entry.js +1 -0
- package/dist/sankhyablocks/p-cce0865d.js +1 -0
- package/dist/sankhyablocks/{p-be75153c.js → p-dc7c9047.js} +1 -1
- package/dist/sankhyablocks/p-dec65f6c.entry.js +1 -0
- package/dist/sankhyablocks/p-df5451c7.js +26 -0
- package/dist/sankhyablocks/p-e8763234.entry.js +1 -0
- package/dist/sankhyablocks/{p-9d608b62.entry.js → p-eae7a817.entry.js} +1 -1
- package/dist/sankhyablocks/{p-20b46647.entry.js → p-ee9536bc.entry.js} +1 -1
- package/dist/sankhyablocks/p-f13f7616.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +8 -0
- package/dist/types/components/snk-attach/snk-attach.d.ts +2 -1
- package/dist/types/components/snk-attach/structure/builder/attach-crud-config.builder.d.ts +10 -1
- package/dist/types/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.d.ts +5 -4
- package/dist/types/components/snk-crud/snk-crud.d.ts +12 -0
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +11 -1
- package/dist/types/components/snk-custom-slot-elements/snk-custom-slot-elements.d.ts +6 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +4 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +6 -2
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +8 -0
- package/dist/types/components/snk-form/snk-form.d.ts +6 -1
- package/dist/types/components/{snk-form → snk-form-config}/SnkFormConfigManager.d.ts +2 -1
- package/dist/types/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.d.ts +4 -3
- package/dist/types/components/snk-grid/snk-grid.d.ts +14 -1
- package/dist/types/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.d.ts +11 -6
- package/dist/types/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.d.ts +1 -1
- package/dist/types/components/snk-simple-crud/regular-buttons.d.ts +3 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +76 -3
- package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +11 -0
- package/dist/types/components.d.ts +171 -10
- package/dist/types/lib/configs/ConfigStorage.d.ts +21 -1
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +0 -2
- package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +2 -0
- package/dist/types/lib/http/data-fetcher/fetchers/personalized-filter-fetcher.d.ts +2 -1
- package/dist/types/lib/utils/CrudUtils.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cjs/PreloadManager-84466da6.js +0 -224
- package/dist/cjs/SnkMultiSelectionListDataSource-ba5838c2.js +0 -49
- package/dist/cjs/snk-grid-config.cjs.entry.js +0 -483
- package/dist/cjs/snk-select-box.cjs.entry.js +0 -25
- package/dist/esm/PreloadManager-c1c2f2b4.js +0 -222
- package/dist/esm/SnkMultiSelectionListDataSource-44494b0e.js +0 -43
- package/dist/esm/snk-grid-config.entry.js +0 -479
- package/dist/esm/snk-select-box.entry.js +0 -21
- package/dist/sankhyablocks/p-094c30cb.js +0 -1
- package/dist/sankhyablocks/p-1c55becf.entry.js +0 -1
- package/dist/sankhyablocks/p-230f5148.entry.js +0 -1
- package/dist/sankhyablocks/p-2936303b.js +0 -1
- package/dist/sankhyablocks/p-2e4eb644.entry.js +0 -1
- package/dist/sankhyablocks/p-3e2e2424.entry.js +0 -1
- package/dist/sankhyablocks/p-3e91d5ea.entry.js +0 -1
- package/dist/sankhyablocks/p-43de1258.entry.js +0 -1
- package/dist/sankhyablocks/p-4ce6cb02.entry.js +0 -11
- package/dist/sankhyablocks/p-5e681b7b.js +0 -65
- package/dist/sankhyablocks/p-5f74c859.entry.js +0 -1
- package/dist/sankhyablocks/p-67aedbe0.js +0 -56
- package/dist/sankhyablocks/p-69754d94.entry.js +0 -1
- package/dist/sankhyablocks/p-725d04ba.js +0 -1
- package/dist/sankhyablocks/p-86801b08.entry.js +0 -1
- package/dist/sankhyablocks/p-8a3a2631.entry.js +0 -1
- package/dist/sankhyablocks/p-965b79a9.js +0 -1
- package/dist/sankhyablocks/p-98674137.entry.js +0 -1
- package/dist/sankhyablocks/p-a13ccb86.js +0 -26
- package/dist/sankhyablocks/p-aba0e87f.entry.js +0 -1
- package/dist/sankhyablocks/p-c22c1d8e.js +0 -1
- package/dist/sankhyablocks/p-d26e0a02.entry.js +0 -1
- package/dist/sankhyablocks/p-d6317851.entry.js +0 -1
- package/dist/sankhyablocks/p-d7d85fa9.entry.js +0 -1
- package/dist/sankhyablocks/p-e3bd000e.entry.js +0 -1
- package/dist/sankhyablocks/p-e7dbe53a.entry.js +0 -1
- package/dist/sankhyablocks/p-fcdcb0e2.entry.js +0 -1
- /package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.js +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.css +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.css +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -0
@@ -28,7 +28,7 @@ import { EzGridColumn, IGridConfig, IStatusResolver, StatusResolverFunction } fr
|
|
28
28
|
import { IExporterProvider } from "./components/snk-data-exporter/interfaces/IExporterProvider";
|
29
29
|
import { DataState } from "./components/snk-data-unit/snk-data-unit";
|
30
30
|
import { IRecordID } from "./components/snk-data-exporter/interfaces/IRecordID";
|
31
|
-
import { SnkFormConfigManager } from "./components/snk-form/SnkFormConfigManager";
|
31
|
+
import { SnkFormConfigManager } from "./components/snk-form-config/SnkFormConfigManager";
|
32
32
|
import { IGuideItem } from "@sankhyalabs/ezui/dist/types/components/ez-guide-navigator/interfaces";
|
33
33
|
import { DataState as DataState1 } from "./components/snk-data-unit/snk-data-unit";
|
34
34
|
import { GuideBuilder } from "./components/snk-crud/subcomponents/GuideBuilder";
|
@@ -54,7 +54,7 @@ import { PresentationMode as PresentationMode1 } from "./lib/@types";
|
|
54
54
|
import { PrintSelectorResponse } from "./components/snk-print-selector/snk-print-selector";
|
55
55
|
import { PendingPrintJobData } from "./lib/utils/PrintUtils";
|
56
56
|
import { IBreadcrumbItem } from "@sankhyalabs/ezui/dist/types/components/ez-breadcrumb/ez-breadcrumb";
|
57
|
-
import { ITab } from "./components/snk-form/subcomponents/snk-tab-config/snk-tab-config";
|
57
|
+
import { ITab } from "./components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config";
|
58
58
|
import { Action as Action1, CustomButton } from "./components/snk-taskbar/snk-taskbar";
|
59
59
|
export namespace Components {
|
60
60
|
interface SnkActionsButton {
|
@@ -137,6 +137,10 @@ export namespace Components {
|
|
137
137
|
* Com base em um campo realiza um "select distinct" respeitando os filtros atuais do dataUnit e um critério de filtro para a própria coluna.
|
138
138
|
*/
|
139
139
|
"executeSelectDistinct": (dataUnit: DataUnit, fieldName: string, argument: string) => Promise<Array<any>>;
|
140
|
+
/**
|
141
|
+
* Chave da configuração legado do formulário.
|
142
|
+
*/
|
143
|
+
"formLegacyConfigName": string;
|
140
144
|
/**
|
141
145
|
* Obtém todos os acessos do usuário logado.
|
142
146
|
*/
|
@@ -199,6 +203,10 @@ export namespace Components {
|
|
199
203
|
* Obtém o UserId da tela em questão.
|
200
204
|
*/
|
201
205
|
"getUserID": () => Promise<string>;
|
206
|
+
/**
|
207
|
+
* Chave da configuração legado da grade.
|
208
|
+
*/
|
209
|
+
"gridLegacyConfigName": string;
|
202
210
|
/**
|
203
211
|
* Obtém `true` caso o usuário logado tem permissão pra determinada ação.
|
204
212
|
*/
|
@@ -424,10 +432,18 @@ export namespace Components {
|
|
424
432
|
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
425
433
|
*/
|
426
434
|
"disablePersonalizedFilter": boolean;
|
435
|
+
/**
|
436
|
+
* Chave da configuração legado da barra de filtros.
|
437
|
+
*/
|
438
|
+
"filterBarLegacyConfigName": string;
|
427
439
|
/**
|
428
440
|
* Título que será apresentado na barra de filtros
|
429
441
|
*/
|
430
442
|
"filterBarTitle": string;
|
443
|
+
/**
|
444
|
+
* Chave da configuração legado do formulário.
|
445
|
+
*/
|
446
|
+
"formLegacyConfigName": string;
|
431
447
|
/**
|
432
448
|
* Retorna o elemento da filter-bar da grade.
|
433
449
|
*/
|
@@ -436,6 +452,10 @@ export namespace Components {
|
|
436
452
|
* Usado para alternar a visão entre GRID e FORM externamente.
|
437
453
|
*/
|
438
454
|
"goToView": (mode: string) => Promise<void>;
|
455
|
+
/**
|
456
|
+
* Chave da configuração legado da grade.
|
457
|
+
*/
|
458
|
+
"gridLegacyConfigName": string;
|
439
459
|
/**
|
440
460
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
441
461
|
*/
|
@@ -747,6 +767,10 @@ export namespace Components {
|
|
747
767
|
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
748
768
|
*/
|
749
769
|
"disablePersonalizedFilter": boolean;
|
770
|
+
/**
|
771
|
+
* Chave da configuração legado da barra de filtros.
|
772
|
+
*/
|
773
|
+
"filterBarLegacyConfigName": string;
|
750
774
|
/**
|
751
775
|
* Lista todos os filtros disponíveis ao usuário.
|
752
776
|
*/
|
@@ -828,6 +852,10 @@ export namespace Components {
|
|
828
852
|
* Exibe o componente snk-filter-detail.
|
829
853
|
*/
|
830
854
|
"show": () => Promise<void>;
|
855
|
+
/**
|
856
|
+
* Controla a visibilidade do botão de fixar elemento
|
857
|
+
*/
|
858
|
+
"showHardFixed": boolean;
|
831
859
|
}
|
832
860
|
interface SnkFilterFieldSearch {
|
833
861
|
/**
|
@@ -864,6 +892,10 @@ export namespace Components {
|
|
864
892
|
* Oculta os detalhes de um item da lista.
|
865
893
|
*/
|
866
894
|
"hideDetail": () => Promise<void>;
|
895
|
+
/**
|
896
|
+
* Usado para controlar a visibilidade dos chips de filtros
|
897
|
+
*/
|
898
|
+
"showChips": boolean;
|
867
899
|
/**
|
868
900
|
* Exibe os detalhes de um item da lista.
|
869
901
|
*/
|
@@ -1057,6 +1089,10 @@ export namespace Components {
|
|
1057
1089
|
* Nome usado para guardar/recuperar as configurações do formulário.
|
1058
1090
|
*/
|
1059
1091
|
"configName": string;
|
1092
|
+
/**
|
1093
|
+
* Chave da configuração legado do formulário.
|
1094
|
+
*/
|
1095
|
+
"formLegacyConfigName": string;
|
1060
1096
|
/**
|
1061
1097
|
* Fecha a janela de configurações do formulário.
|
1062
1098
|
*/
|
@@ -1176,6 +1212,10 @@ export namespace Components {
|
|
1176
1212
|
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
1177
1213
|
*/
|
1178
1214
|
"disablePersonalizedFilter": boolean;
|
1215
|
+
/**
|
1216
|
+
* Chave da configuração legado da barra de filtros.
|
1217
|
+
*/
|
1218
|
+
"filterBarLegacyConfigName": string;
|
1179
1219
|
/**
|
1180
1220
|
* Título que será apresentado na barra de filtros
|
1181
1221
|
*/
|
@@ -1192,6 +1232,10 @@ export namespace Components {
|
|
1192
1232
|
* Nome do slot de elementos customizados da Taskbar do cabeçalho da grade.
|
1193
1233
|
*/
|
1194
1234
|
"gridHeaderCustomSlotId": string;
|
1235
|
+
/**
|
1236
|
+
* Chave da configuração legado da grade.
|
1237
|
+
*/
|
1238
|
+
"gridLegacyConfigName": string;
|
1195
1239
|
/**
|
1196
1240
|
* Fecha a janela de configurações da grade.
|
1197
1241
|
*/
|
@@ -1232,6 +1276,10 @@ export namespace Components {
|
|
1232
1276
|
* Atribui o valor da configuração da grade.
|
1233
1277
|
*/
|
1234
1278
|
"setConfig": (config: IGridConfig) => Promise<void>;
|
1279
|
+
/**
|
1280
|
+
* Atribui o foco para a grade.
|
1281
|
+
*/
|
1282
|
+
"setFocus": () => Promise<void>;
|
1235
1283
|
/**
|
1236
1284
|
* Exibe a janela de configurações da grade.
|
1237
1285
|
*/
|
@@ -1258,10 +1306,6 @@ export namespace Components {
|
|
1258
1306
|
"useEnterLikeTab": boolean;
|
1259
1307
|
}
|
1260
1308
|
interface SnkGridConfig {
|
1261
|
-
/**
|
1262
|
-
* Referência para o SnkApplication
|
1263
|
-
*/
|
1264
|
-
"application": SnkApplication;
|
1265
1309
|
/**
|
1266
1310
|
* Colunas da grade.
|
1267
1311
|
*/
|
@@ -1316,6 +1360,10 @@ export namespace Components {
|
|
1316
1360
|
* Abre o localizador de campos
|
1317
1361
|
*/
|
1318
1362
|
"findField": () => Promise<void>;
|
1363
|
+
/**
|
1364
|
+
* Chave da configuração legado do formulário.
|
1365
|
+
*/
|
1366
|
+
"formLegacyConfigName": string;
|
1319
1367
|
/**
|
1320
1368
|
* Configuração do formulário master.
|
1321
1369
|
*/
|
@@ -1340,6 +1388,10 @@ export namespace Components {
|
|
1340
1388
|
* Guia selecionada.
|
1341
1389
|
*/
|
1342
1390
|
"selectedGuide": IGuideItem;
|
1391
|
+
/**
|
1392
|
+
* Atribui o foco para o componente.
|
1393
|
+
*/
|
1394
|
+
"setFocus": () => Promise<void>;
|
1343
1395
|
/**
|
1344
1396
|
* Abre o configurador do formulário
|
1345
1397
|
* @param detail - Define se a configuração que está sendo carregada é referente a um form detail.
|
@@ -1437,6 +1489,10 @@ export namespace Components {
|
|
1437
1489
|
* Ações a serem colocadas no botão "Mais opções" do componente snk-taskbar.
|
1438
1490
|
*/
|
1439
1491
|
"actionsList": Array<Action>;
|
1492
|
+
/**
|
1493
|
+
* Usado para fechar o configurator do CRUD
|
1494
|
+
*/
|
1495
|
+
"closeConfigurator": () => Promise<void>;
|
1440
1496
|
/**
|
1441
1497
|
* Usado para salvar as configurações dos blocos de construção.
|
1442
1498
|
*/
|
@@ -1444,12 +1500,24 @@ export namespace Components {
|
|
1444
1500
|
"dataState": DataState1;
|
1445
1501
|
"dataUnit": DataUnit;
|
1446
1502
|
"formConfig": IFormConfig;
|
1503
|
+
/**
|
1504
|
+
* Chave da configuração legado do formulário.
|
1505
|
+
*/
|
1506
|
+
"formLegacyConfigName": string;
|
1447
1507
|
"getRecords": () => Promise<Array<Record>>;
|
1448
1508
|
/**
|
1449
1509
|
* Usado para alternar a visão entre GRID e FORM externamente.
|
1450
1510
|
*/
|
1451
1511
|
"goToView": (view: VIEW_MODE) => Promise<void>;
|
1452
1512
|
"gridConfig": IGridConfig;
|
1513
|
+
/**
|
1514
|
+
* Chave da configuração legado da grade.
|
1515
|
+
*/
|
1516
|
+
"gridLegacyConfigName": string;
|
1517
|
+
/**
|
1518
|
+
* Ignora os campos "somente leitura" no modo de inserção.
|
1519
|
+
*/
|
1520
|
+
"ignoreReadOnlyFormFields": boolean;
|
1453
1521
|
/**
|
1454
1522
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
1455
1523
|
*/
|
@@ -1459,12 +1527,25 @@ export namespace Components {
|
|
1459
1527
|
* Determina se pode haver mais de uma linha selecionada na grade.
|
1460
1528
|
*/
|
1461
1529
|
"multipleSelection": boolean;
|
1530
|
+
/**
|
1531
|
+
* Usado para abrir o configurator do CRUD
|
1532
|
+
*/
|
1533
|
+
"openConfigurator": () => Promise<void>;
|
1534
|
+
/**
|
1535
|
+
* Identificador de recursos como configurações e acesso.
|
1536
|
+
*/
|
1537
|
+
"resourceID": string;
|
1462
1538
|
"setMetadata": (metadata: UnitMetadata) => Promise<void>;
|
1463
1539
|
"setRecords": (records: Array<Record>) => Promise<void>;
|
1540
|
+
/**
|
1541
|
+
* Usado para exibir os botões de ação do snk-configurator.
|
1542
|
+
*/
|
1543
|
+
"showConfiguratorButtons": boolean;
|
1464
1544
|
/**
|
1465
1545
|
* Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões.
|
1466
1546
|
*/
|
1467
1547
|
"taskbarManager": TaskbarManager;
|
1548
|
+
"updateConfig": () => Promise<void>;
|
1468
1549
|
"useCancelConfirm": boolean;
|
1469
1550
|
/**
|
1470
1551
|
* Quando verdadeiro, o ENTER fará a navegação como se fosse a tecla TAB na grade.
|
@@ -1600,6 +1681,10 @@ export interface SnkCrudCustomEvent<T> extends CustomEvent<T> {
|
|
1600
1681
|
detail: T;
|
1601
1682
|
target: HTMLSnkCrudElement;
|
1602
1683
|
}
|
1684
|
+
export interface SnkCustomSlotElementsCustomEvent<T> extends CustomEvent<T> {
|
1685
|
+
detail: T;
|
1686
|
+
target: HTMLSnkCustomSlotElementsElement;
|
1687
|
+
}
|
1603
1688
|
export interface SnkDataUnitCustomEvent<T> extends CustomEvent<T> {
|
1604
1689
|
detail: T;
|
1605
1690
|
target: HTMLSnkDataUnitElement;
|
@@ -2126,6 +2211,14 @@ declare namespace LocalJSX {
|
|
2126
2211
|
* Usado para salvar as configurações dos blocos de construção.
|
2127
2212
|
*/
|
2128
2213
|
"configName"?: string;
|
2214
|
+
/**
|
2215
|
+
* Chave da configuração legado do formulário.
|
2216
|
+
*/
|
2217
|
+
"formLegacyConfigName"?: string;
|
2218
|
+
/**
|
2219
|
+
* Chave da configuração legado da grade.
|
2220
|
+
*/
|
2221
|
+
"gridLegacyConfigName"?: string;
|
2129
2222
|
/**
|
2130
2223
|
* Usado para receber um parâmetro na inicialização da tela, e utilizá-lo conforme necessário caso a tela receba um parâmetro, e, esta propriedade não seja informada é criado um filtro de forma automática através do método defaultLoadByPk
|
2131
2224
|
*/
|
@@ -2269,10 +2362,22 @@ declare namespace LocalJSX {
|
|
2269
2362
|
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
2270
2363
|
*/
|
2271
2364
|
"disablePersonalizedFilter"?: boolean;
|
2365
|
+
/**
|
2366
|
+
* Chave da configuração legado da barra de filtros.
|
2367
|
+
*/
|
2368
|
+
"filterBarLegacyConfigName"?: string;
|
2272
2369
|
/**
|
2273
2370
|
* Título que será apresentado na barra de filtros
|
2274
2371
|
*/
|
2275
2372
|
"filterBarTitle"?: string;
|
2373
|
+
/**
|
2374
|
+
* Chave da configuração legado do formulário.
|
2375
|
+
*/
|
2376
|
+
"formLegacyConfigName"?: string;
|
2377
|
+
/**
|
2378
|
+
* Chave da configuração legado da grade.
|
2379
|
+
*/
|
2380
|
+
"gridLegacyConfigName"?: string;
|
2276
2381
|
/**
|
2277
2382
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
2278
2383
|
*/
|
@@ -2327,6 +2432,10 @@ declare namespace LocalJSX {
|
|
2327
2432
|
"useEnterLikeTab"?: boolean;
|
2328
2433
|
}
|
2329
2434
|
interface SnkCustomSlotElements {
|
2435
|
+
/**
|
2436
|
+
* Emitido quando elemento é carregado na tela.
|
2437
|
+
*/
|
2438
|
+
"onSnkCustomSlotElementsLoaded"?: (event: SnkCustomSlotElementsCustomEvent<string>) => void;
|
2330
2439
|
/**
|
2331
2440
|
* Nome do slot onde os elementos customizados deverão aparecer.
|
2332
2441
|
*/
|
@@ -2629,6 +2738,10 @@ declare namespace LocalJSX {
|
|
2629
2738
|
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
2630
2739
|
*/
|
2631
2740
|
"disablePersonalizedFilter"?: boolean;
|
2741
|
+
/**
|
2742
|
+
* Chave da configuração legado da barra de filtros.
|
2743
|
+
*/
|
2744
|
+
"filterBarLegacyConfigName"?: string;
|
2632
2745
|
/**
|
2633
2746
|
* Lista todos os filtros disponíveis ao usuário.
|
2634
2747
|
*/
|
@@ -2692,6 +2805,10 @@ declare namespace LocalJSX {
|
|
2692
2805
|
* Emitido quando há uma alteração nos filtros.
|
2693
2806
|
*/
|
2694
2807
|
"onFilterChange"?: (event: SnkFilterDetailCustomEvent<SnkFilterItemConfig>) => void;
|
2808
|
+
/**
|
2809
|
+
* Controla a visibilidade do botão de fixar elemento
|
2810
|
+
*/
|
2811
|
+
"showHardFixed"?: boolean;
|
2695
2812
|
}
|
2696
2813
|
interface SnkFilterFieldSearch {
|
2697
2814
|
/**
|
@@ -2725,6 +2842,10 @@ declare namespace LocalJSX {
|
|
2725
2842
|
* Emitido quando o detalhe de um item da lista é aberto ou fechado.
|
2726
2843
|
*/
|
2727
2844
|
"onVisibleChanged"?: (event: SnkFilterItemCustomEvent<boolean>) => void;
|
2845
|
+
/**
|
2846
|
+
* Usado para controlar a visibilidade dos chips de filtros
|
2847
|
+
*/
|
2848
|
+
"showChips"?: boolean;
|
2728
2849
|
}
|
2729
2850
|
interface SnkFilterList {
|
2730
2851
|
/**
|
@@ -2913,6 +3034,10 @@ declare namespace LocalJSX {
|
|
2913
3034
|
* Nome usado para guardar/recuperar as configurações do formulário.
|
2914
3035
|
*/
|
2915
3036
|
"configName"?: string;
|
3037
|
+
/**
|
3038
|
+
* Chave da configuração legado do formulário.
|
3039
|
+
*/
|
3040
|
+
"formLegacyConfigName"?: string;
|
2916
3041
|
/**
|
2917
3042
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
2918
3043
|
*/
|
@@ -3055,6 +3180,10 @@ declare namespace LocalJSX {
|
|
3055
3180
|
* Desabilita a apresentação da opção de filtros personalizados na filter bar (chip de filtros) e no modal lateral de filtros (container de filtros personalizados).
|
3056
3181
|
*/
|
3057
3182
|
"disablePersonalizedFilter"?: boolean;
|
3183
|
+
/**
|
3184
|
+
* Chave da configuração legado da barra de filtros.
|
3185
|
+
*/
|
3186
|
+
"filterBarLegacyConfigName"?: string;
|
3058
3187
|
/**
|
3059
3188
|
* Título que será apresentado na barra de filtros
|
3060
3189
|
*/
|
@@ -3063,6 +3192,10 @@ declare namespace LocalJSX {
|
|
3063
3192
|
* Nome do slot de elementos customizados da Taskbar do cabeçalho da grade.
|
3064
3193
|
*/
|
3065
3194
|
"gridHeaderCustomSlotId"?: string;
|
3195
|
+
/**
|
3196
|
+
* Chave da configuração legado da grade.
|
3197
|
+
*/
|
3198
|
+
"gridLegacyConfigName"?: string;
|
3066
3199
|
/**
|
3067
3200
|
* Determina se a grade está vinculada a um detalhe.
|
3068
3201
|
*/
|
@@ -3121,10 +3254,6 @@ declare namespace LocalJSX {
|
|
3121
3254
|
"useEnterLikeTab"?: boolean;
|
3122
3255
|
}
|
3123
3256
|
interface SnkGridConfig {
|
3124
|
-
/**
|
3125
|
-
* Referência para o SnkApplication
|
3126
|
-
*/
|
3127
|
-
"application"?: SnkApplication;
|
3128
3257
|
/**
|
3129
3258
|
* Colunas da grade.
|
3130
3259
|
*/
|
@@ -3183,6 +3312,10 @@ declare namespace LocalJSX {
|
|
3183
3312
|
* Determina todo o caminho de entidades.
|
3184
3313
|
*/
|
3185
3314
|
"entityPath"?: string;
|
3315
|
+
/**
|
3316
|
+
* Chave da configuração legado do formulário.
|
3317
|
+
*/
|
3318
|
+
"formLegacyConfigName"?: string;
|
3186
3319
|
/**
|
3187
3320
|
* Configuração do formulário master.
|
3188
3321
|
*/
|
@@ -3334,7 +3467,19 @@ declare namespace LocalJSX {
|
|
3334
3467
|
"dataState"?: DataState1;
|
3335
3468
|
"dataUnit"?: DataUnit;
|
3336
3469
|
"formConfig"?: IFormConfig;
|
3470
|
+
/**
|
3471
|
+
* Chave da configuração legado do formulário.
|
3472
|
+
*/
|
3473
|
+
"formLegacyConfigName"?: string;
|
3337
3474
|
"gridConfig"?: IGridConfig;
|
3475
|
+
/**
|
3476
|
+
* Chave da configuração legado da grade.
|
3477
|
+
*/
|
3478
|
+
"gridLegacyConfigName"?: string;
|
3479
|
+
/**
|
3480
|
+
* Ignora os campos "somente leitura" no modo de inserção.
|
3481
|
+
*/
|
3482
|
+
"ignoreReadOnlyFormFields"?: boolean;
|
3338
3483
|
/**
|
3339
3484
|
* Responsável por flexibilizar e padronizar o uso de mensagens nos blocos de construção.
|
3340
3485
|
*/
|
@@ -3348,6 +3493,14 @@ declare namespace LocalJSX {
|
|
3348
3493
|
* Emitido sempre que houver click de botão ou ação.
|
3349
3494
|
*/
|
3350
3495
|
"onActionClick"?: (event: SnkSimpleCrudCustomEvent<string>) => void;
|
3496
|
+
/**
|
3497
|
+
* Emitido quando cancela o salvamento da configuração no configurator do CRUD.
|
3498
|
+
*/
|
3499
|
+
"onConfiguratorCancel"?: (event: SnkSimpleCrudCustomEvent<any>) => void;
|
3500
|
+
/**
|
3501
|
+
* Emitido quando salva a configuração no configurator do CRUD.
|
3502
|
+
*/
|
3503
|
+
"onConfiguratorSave"?: (event: SnkSimpleCrudCustomEvent<any>) => void;
|
3351
3504
|
/**
|
3352
3505
|
* Emitido quando há qualquer mudança de estado no DataUnit.
|
3353
3506
|
*/
|
@@ -3360,6 +3513,14 @@ declare namespace LocalJSX {
|
|
3360
3513
|
* Responsável por notificar quando ocorrer a renderização de itens do formulário.
|
3361
3514
|
*/
|
3362
3515
|
"onFormItemsReady"?: (event: SnkSimpleCrudCustomEvent<Array<HTMLElement>>) => void;
|
3516
|
+
/**
|
3517
|
+
* Identificador de recursos como configurações e acesso.
|
3518
|
+
*/
|
3519
|
+
"resourceID"?: string;
|
3520
|
+
/**
|
3521
|
+
* Usado para exibir os botões de ação do snk-configurator.
|
3522
|
+
*/
|
3523
|
+
"showConfiguratorButtons"?: boolean;
|
3363
3524
|
/**
|
3364
3525
|
* Gerenciador das barras de tarefas. É possível determinar botões específicos ou mesmo gerenciar o estado dos botões.
|
3365
3526
|
*/
|
@@ -3,13 +3,30 @@ import { SnkFilterItemConfig } from "../../components/snk-filter-bar/filter-item
|
|
3
3
|
import { IFormCardConfig, IFormConfig } from "@sankhyalabs/ezui/dist/types/utils/form/interfaces";
|
4
4
|
import { ISaveResourceResponse } from "../http/data-fetcher/fetchers/resource-fetcher";
|
5
5
|
import { IPersonalizedFilter, IValidateFilter } from "../../components/snk-personalized-filter/interfaces/IPersonalizedFilter";
|
6
|
+
export declare enum CONFIG_SOURCE {
|
7
|
+
form = "form",
|
8
|
+
grid = "grid",
|
9
|
+
filterBar = "filterBar"
|
10
|
+
}
|
11
|
+
export interface ILegacyConfigNameParams {
|
12
|
+
gridLegacyConfig?: string;
|
13
|
+
formLegacyConfig?: string;
|
14
|
+
}
|
6
15
|
export declare class ConfigStorage {
|
16
|
+
private static readonly CONFIG_NAME_ERROR_MESSAGE;
|
17
|
+
private static readonly LEGACY_CONFIG_NAME_ERROR_MESSAGE;
|
18
|
+
private static filterBarLegacyConfig;
|
19
|
+
private static formLegacyConfig;
|
20
|
+
private static gridLegacyConfig;
|
7
21
|
private static configById;
|
8
22
|
private static filterBarConfigFetcher;
|
9
23
|
private static formConfigFetcher;
|
10
24
|
private static gridConfigFetcher;
|
11
25
|
private static personalizedFilterFetcher;
|
12
|
-
static
|
26
|
+
static addFilterBarLegacyConfig(configName: string, legacyConfigName: string): void;
|
27
|
+
static addFormLegacyConfig(configName: string, legacyConfigName: string): void;
|
28
|
+
static addGridLegacyConfig(configName: string, legacyConfigName: string): void;
|
29
|
+
static preload(resourceID: string, configName: string, legacyConfigs?: ILegacyConfigNameParams): void;
|
13
30
|
static loadFilterBarConfig(name: string, resourceID: string, urlParams?: object): Promise<Array<SnkFilterItemConfig>>;
|
14
31
|
static loadFormConfig(name: string, resourceID: string): Promise<IFormConfig>;
|
15
32
|
static loadGridConfig(name: string, resourceID: string): Promise<IGridConfig>;
|
@@ -24,6 +41,9 @@ export declare class ConfigStorage {
|
|
24
41
|
static deleteGridConfigCache(name: string, resourceID: string): Promise<void>;
|
25
42
|
static deleteFormConfigCache(name: string, resourceID: string): Promise<void>;
|
26
43
|
static deleteFilterBarConfigCache(name: string, resourceID: string): Promise<void>;
|
44
|
+
private static validateConfigName;
|
45
|
+
private static handleLegacyConfig;
|
46
|
+
private static handleLegacyConfigAsString;
|
27
47
|
private static deleteConfigCache;
|
28
48
|
private static buildCacheID;
|
29
49
|
}
|
@@ -14,8 +14,6 @@ export default class InMemoryLoader {
|
|
14
14
|
set metadata(metadata: UnitMetadata);
|
15
15
|
private generateUniqueId;
|
16
16
|
private inMemoryLoader;
|
17
|
-
private applyFilter;
|
18
|
-
private applySorting;
|
19
17
|
private metadaLoader;
|
20
18
|
private saveLoader;
|
21
19
|
removeLoader(_dataUnit: DataUnit, recordIds: Array<string>): Promise<Array<string>>;
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { DataUnit, Filter, PaginationInfo, Record, Sort } from '@sankhyalabs/core';
|
2
|
+
export declare function applyFilter(records: Array<Record>, dataUnit: DataUnit, filters: Array<Filter>): Array<Record>;
|
3
|
+
export declare function applySorting(records: Array<Record>, dataUnit: DataUnit, sorting: Array<Sort>): Array<Record>;
|
4
|
+
export declare function buildPaginationInfo(records: Array<Record>, offset?: number, limit?: number): PaginationInfo | undefined;
|
@@ -12,6 +12,8 @@ export declare class FormConfigFetcher extends ResourceFetcher {
|
|
12
12
|
fetchLegacyConfig(formName: string, resourceID: string): Promise<IFormConfig>;
|
13
13
|
fetchDefaultConfig(formName: string, resourceID: string): Promise<IFormConfig>;
|
14
14
|
private getPath;
|
15
|
+
fetchLegacyConfigurableForm(configName: string): Promise<IFormConfig>;
|
16
|
+
private buildLegacyConfigurableForm;
|
15
17
|
}
|
16
18
|
export declare enum UserConfigType {
|
17
19
|
USER = "USER",
|
@@ -5,7 +5,8 @@ export default class PersonalizedFilterFetcher {
|
|
5
5
|
constructor();
|
6
6
|
private resolveURI;
|
7
7
|
private buildTemplates;
|
8
|
-
loadPersonalizedFilter(resourceID: string, filterID: string, configName?: string): Promise<IPersonalizedFilter>;
|
8
|
+
loadPersonalizedFilter(resourceID: string, filterID: string, configName?: string, legacyConfigName?: string): Promise<IPersonalizedFilter>;
|
9
|
+
private resolveLegacyConfigName;
|
9
10
|
savePersonalizedFilter(personalizedFilter: IPersonalizedFilter, resourceID: string, configName?: string): Promise<IPersonalizedFilter>;
|
10
11
|
removePersonalizedFilter(personalizedFilter: IPersonalizedFilter, resourceID: string, configName?: string): Promise<IPersonalizedFilter>;
|
11
12
|
validatePersonalizedFilter(dataUnitName: string, expression: string): Promise<IValidateFilter>;
|
@@ -1,6 +1,9 @@
|
|
1
|
+
import { DataUnit } from '@sankhyalabs/core';
|
2
|
+
import { IGridConfig } from '@sankhyalabs/ezui/dist/types/components/ez-grid/controller/EzGridController';
|
1
3
|
export interface CrudFindResult {
|
2
4
|
fields: Map<string, string>;
|
3
5
|
}
|
4
6
|
export declare class CrudUtils {
|
7
|
+
static assertDefaultSorting(gridConfig: IGridConfig, dataUnit: DataUnit): void;
|
5
8
|
static find(entityName: string, fields: Array<string>, criteria: Map<string, string>, onlyFirst: boolean, criteriaExpression: string, orderBy: string): Promise<unknown>;
|
6
9
|
}
|