@sankhyalabs/sankhyablocks 8.15.1 → 8.16.0-dev.1
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/{SnkMultiSelectionListDataSource-303e85d1.js → IExporterProvider-c78cb1b8.js} +94 -4
- package/dist/cjs/RecordIDUtils-3735135c.js +43 -0
- package/dist/cjs/{SnkFormConfigManager-f9dc0d28.js → SnkFormConfigManager-1b13bacd.js} +6 -3
- package/dist/cjs/{SnkMessageBuilder-66aa2557.js → SnkMessageBuilder-722b104e.js} +8 -12
- package/dist/cjs/{pesquisa-fetcher-213797ec.js → dataunit-fetcher-620b29a1.js} +87 -180
- package/dist/cjs/{index-0922807b.js → index-1dfc7a6e.js} +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-fetcher-680e198f.js +166 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +4 -2
- package/dist/cjs/snk-application.cjs.entry.js +34 -11
- package/dist/cjs/snk-attach.cjs.entry.js +71 -46
- package/dist/cjs/snk-crud.cjs.entry.js +96 -10
- package/dist/cjs/snk-data-exporter.cjs.entry.js +315 -85
- package/dist/cjs/snk-data-unit-82dea87e.js +679 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +12 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +48 -7
- package/dist/cjs/snk-filter-bar.cjs.entry.js +5 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +67 -0
- package/dist/cjs/snk-form.cjs.entry.js +51 -6
- package/dist/cjs/snk-grid.cjs.entry.js +164 -107
- package/dist/cjs/{snk-guides-viewer-4b6ecda8.js → snk-guides-viewer-05a1ba27.js} +36 -8
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -6
- package/dist/cjs/snk-simple-crud.cjs.entry.js +264 -37
- package/dist/cjs/snk-taskbar.cjs.entry.js +4 -3
- package/dist/cjs/{taskbar-elements-3ecd1278.js → taskbar-elements-9ad1f9c0.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +35 -11
- package/dist/collection/components/snk-attach/snk-attach.js +67 -44
- package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js +1 -0
- package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js +1 -0
- package/dist/collection/components/snk-crud/snk-crud.js +249 -7
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +135 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +161 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +112 -5
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +97 -0
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +74 -0
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +54 -1
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +1 -0
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +58 -0
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +55 -0
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +59 -52
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +62 -0
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +88 -0
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +20 -0
- package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +38 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +507 -214
- package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js +24 -0
- package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js +18 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +22 -1
- package/dist/collection/components/snk-form/snk-form.js +102 -5
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -3
- package/dist/collection/components/snk-grid/snk-grid.js +240 -101
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +386 -18
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +2 -1
- package/dist/collection/lib/@types/index.js +5 -0
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +35 -0
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +7 -3
- package/dist/collection/lib/dataUnit/ValueFormatter.js +4 -0
- package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +3 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +4 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +11 -13
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +53 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js +22 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -4
- package/dist/collection/lib/message/SnkMessageBuilder.js +5 -12
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +2 -0
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +1 -0
- package/dist/components/{field-search.js → IExporterProvider.js} +93 -6
- package/dist/components/ISave.js +47 -0
- package/dist/components/SnkFormConfigManager.js +6 -3
- package/dist/components/SnkMessageBuilder.js +8 -12
- package/dist/components/dataunit-fetcher.js +84 -182
- package/dist/components/index2.js +198 -33
- package/dist/components/pesquisa-fetcher.js +164 -0
- package/dist/components/snk-actions-button2.js +4 -11
- package/dist/components/snk-application2.js +31 -9
- package/dist/components/snk-attach2.js +65 -41
- package/dist/components/snk-crud.js +103 -11
- package/dist/components/snk-data-exporter2.js +309 -85
- package/dist/components/snk-data-unit2.js +470 -212
- package/dist/components/snk-detail-view2.js +87 -10
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-filter-bar2.js +6 -1
- package/dist/components/snk-form-view2.js +72 -1
- package/dist/components/snk-form.js +53 -6
- package/dist/components/snk-grid2.js +168 -106
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +259 -23
- package/dist/components/snk-taskbar2.js +6 -5
- package/dist/esm/{SnkMultiSelectionListDataSource-36918dbf.js → IExporterProvider-343272b3.js} +93 -5
- package/dist/esm/RecordIDUtils-87d02110.js +41 -0
- package/dist/esm/{SnkFormConfigManager-f53f9f87.js → SnkFormConfigManager-d4554df9.js} +6 -3
- package/dist/esm/{SnkMessageBuilder-0a4becdd.js → SnkMessageBuilder-89925609.js} +8 -12
- package/dist/esm/{pesquisa-fetcher-fe6f3826.js → dataunit-fetcher-3fbf9d12.js} +83 -181
- package/dist/esm/{index-0ece87a6.js → index-3aa4977a.js} +6 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-fetcher-03c8f919.js +164 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +4 -2
- package/dist/esm/snk-application.entry.js +33 -10
- package/dist/esm/snk-attach.entry.js +66 -41
- package/dist/esm/snk-crud.entry.js +96 -10
- package/dist/esm/snk-data-exporter.entry.js +316 -86
- package/dist/esm/snk-data-unit-8f98b45f.js +677 -0
- package/dist/esm/snk-data-unit.entry.js +12 -2
- package/dist/esm/snk-detail-view.entry.js +48 -7
- package/dist/esm/snk-filter-bar.entry.js +5 -1
- package/dist/esm/snk-form-view.entry.js +67 -0
- package/dist/esm/snk-form.entry.js +51 -6
- package/dist/esm/snk-grid.entry.js +162 -105
- package/dist/esm/{snk-guides-viewer-113be3fd.js → snk-guides-viewer-aee2cafe.js} +36 -8
- package/dist/esm/snk-guides-viewer.entry.js +8 -6
- package/dist/esm/snk-simple-crud.entry.js +252 -25
- package/dist/esm/snk-taskbar.entry.js +4 -3
- package/dist/esm/{taskbar-elements-2473c8ac.js → taskbar-elements-d59867f1.js} +3 -3
- package/dist/sankhyablocks/p-0d91b10f.entry.js +1 -0
- package/dist/sankhyablocks/p-1db45d26.entry.js +1 -0
- package/dist/sankhyablocks/p-26394a01.entry.js +1 -0
- package/dist/sankhyablocks/p-2d649237.entry.js +1 -0
- package/dist/sankhyablocks/p-30cf616e.js +1 -0
- package/dist/sankhyablocks/p-44767378.entry.js +1 -0
- package/dist/sankhyablocks/p-47b60deb.entry.js +1 -0
- package/dist/sankhyablocks/p-4f72727a.entry.js +1 -0
- package/dist/sankhyablocks/p-550fee49.entry.js +1 -0
- package/dist/sankhyablocks/p-5539ecb4.entry.js +1 -0
- package/dist/sankhyablocks/p-672302c3.js +60 -0
- package/dist/sankhyablocks/p-7a337364.js +1 -0
- package/dist/sankhyablocks/{p-ae4fc9a9.js → p-7e7a7473.js} +1 -1
- package/dist/sankhyablocks/p-829d4045.js +1 -0
- package/dist/sankhyablocks/p-8a5910a7.entry.js +1 -0
- package/dist/sankhyablocks/p-8cc64963.entry.js +1 -0
- package/dist/sankhyablocks/p-8fc470e5.entry.js +1 -0
- package/dist/sankhyablocks/p-9863d682.js +1 -0
- package/dist/sankhyablocks/p-9e99a92a.js +1 -0
- package/dist/sankhyablocks/p-af8efd95.js +6 -0
- package/dist/sankhyablocks/p-be603a24.js +1 -0
- package/dist/sankhyablocks/p-d09feef1.js +1 -0
- package/dist/sankhyablocks/p-e95b3b93.entry.js +11 -0
- package/dist/sankhyablocks/p-f2809746.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +7 -3
- package/dist/types/components/snk-attach/snk-attach.d.ts +11 -9
- package/dist/types/components/snk-crud/interfaces/PropsCustomEditor.d.ts +4 -0
- package/dist/types/components/snk-crud/interfaces/PropsCustomRender.d.ts +4 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +36 -1
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +23 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +28 -3
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +19 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +14 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +12 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +24 -4
- package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +5 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -1
- package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +21 -0
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +77 -0
- package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +4 -0
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +3 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +61 -2
- package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +3 -0
- package/dist/types/components/snk-data-unit/test/resources/parentMetadataMock.d.ts +3 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -0
- package/dist/types/components/snk-form/snk-form.d.ts +14 -0
- package/dist/types/components/snk-grid/snk-grid.d.ts +46 -6
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +58 -4
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components.d.ts +220 -4
- package/dist/types/lib/@types/index.d.ts +5 -0
- package/dist/types/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.d.ts +11 -0
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +2 -1
- package/dist/types/lib/dataUnit/ValueFormatter.d.ts +2 -0
- package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.d.ts +10 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.d.ts +7 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.d.ts +20 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/snk-data-unit-41c29713.js +0 -462
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +0 -34
- package/dist/components/index3.js +0 -199
- package/dist/esm/snk-data-unit-de1d140d.js +0 -460
- package/dist/sankhyablocks/p-032fe52e.js +0 -1
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +0 -1
- package/dist/sankhyablocks/p-07a61550.entry.js +0 -1
- package/dist/sankhyablocks/p-0899e0b5.entry.js +0 -1
- package/dist/sankhyablocks/p-154a7f33.entry.js +0 -1
- package/dist/sankhyablocks/p-15802c59.entry.js +0 -1
- package/dist/sankhyablocks/p-164666b1.js +0 -65
- package/dist/sankhyablocks/p-32556aa6.js +0 -1
- package/dist/sankhyablocks/p-328585d0.entry.js +0 -1
- package/dist/sankhyablocks/p-38289a55.js +0 -1
- package/dist/sankhyablocks/p-52c8e589.js +0 -1
- package/dist/sankhyablocks/p-5cb07080.js +0 -1
- package/dist/sankhyablocks/p-74d349c3.entry.js +0 -1
- package/dist/sankhyablocks/p-7fe120b8.entry.js +0 -11
- package/dist/sankhyablocks/p-add17f6a.entry.js +0 -1
- package/dist/sankhyablocks/p-af1ac81f.entry.js +0 -1
- package/dist/sankhyablocks/p-b4525fc0.entry.js +0 -1
- package/dist/sankhyablocks/p-cce0865d.js +0 -1
- package/dist/sankhyablocks/p-dec65f6c.entry.js +0 -1
- package/dist/sankhyablocks/p-ee9536bc.entry.js +0 -1
- package/dist/sankhyablocks/p-f13f7616.entry.js +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +0 -3
@@ -1,18 +1,20 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
2
|
-
import { ElementIDUtils, ApplicationContext, StringUtils
|
3
|
-
import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
2
|
+
import { Action, ElementIDUtils, ApplicationContext, StringUtils } from '@sankhyalabs/core';
|
4
3
|
import { d as defineCustomElement$2, T as TaskbarElement } from './snk-taskbar2.js';
|
5
4
|
import { C as ConfigStorage } from './ConfigStorage.js';
|
6
|
-
import { P as PresentationMode } from './
|
7
|
-
import { T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, o as openFieldSearch,
|
8
|
-
import { s as store } from './
|
5
|
+
import { P as PresentationMode } from './ISave.js';
|
6
|
+
import { C as CommonsExporter, T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, o as openFieldSearch, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as buildFieldSearch } from './IExporterProvider.js';
|
7
|
+
import { s as store } from './index2.js';
|
9
8
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
10
9
|
import './DataFetcher.js';
|
11
|
-
import './
|
12
|
-
import { d as defineCustomElement$i } from './snk-actions-button2.js';
|
10
|
+
import './pesquisa-fetcher.js';
|
13
11
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
12
|
+
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
13
|
+
import './dataunit-fetcher.js';
|
14
14
|
import './filter-item-type.enum.js';
|
15
15
|
import './form-config-fetcher.js';
|
16
|
+
import { g as getSelectedIDs } from './snk-data-unit2.js';
|
17
|
+
import { d as defineCustomElement$i } from './snk-actions-button2.js';
|
16
18
|
import { d as defineCustomElement$h } from './snk-data-exporter2.js';
|
17
19
|
import { d as defineCustomElement$g } from './snk-exporter-email-sender2.js';
|
18
20
|
import { d as defineCustomElement$f } from './snk-expression-group2.js';
|
@@ -30,6 +32,60 @@ import { d as defineCustomElement$4 } from './snk-select-box2.js';
|
|
30
32
|
import { d as defineCustomElement$3 } from './snk-simple-bar2.js';
|
31
33
|
import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
|
32
34
|
|
35
|
+
class ServerSideExporterProvider extends CommonsExporter {
|
36
|
+
getFilters() {
|
37
|
+
var _a;
|
38
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getAppliedFilters();
|
39
|
+
}
|
40
|
+
getOrders() {
|
41
|
+
var _a;
|
42
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getSort();
|
43
|
+
}
|
44
|
+
getResourceURI() {
|
45
|
+
var _a;
|
46
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.name;
|
47
|
+
}
|
48
|
+
getSelectedNumber() {
|
49
|
+
return this.dataUnit.getSelectionInfo().length;
|
50
|
+
}
|
51
|
+
getTotalRecords() {
|
52
|
+
var _a, _b, _c;
|
53
|
+
const { total } = ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo()) || {};
|
54
|
+
return total !== null && total !== void 0 ? total : (_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
|
55
|
+
}
|
56
|
+
getSelectedIDs() {
|
57
|
+
return getSelectedIDs(this.dataUnit);
|
58
|
+
}
|
59
|
+
getOffset() {
|
60
|
+
return this.getExporterOffset(this.getPaginationInfo());
|
61
|
+
}
|
62
|
+
getPageSize() {
|
63
|
+
var _a;
|
64
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.pageSize;
|
65
|
+
}
|
66
|
+
getExportLimit() {
|
67
|
+
return 5000;
|
68
|
+
}
|
69
|
+
getRecordID() {
|
70
|
+
var _a, _b, _c;
|
71
|
+
return (_c = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.__record__id__;
|
72
|
+
}
|
73
|
+
getPaginationInfo() {
|
74
|
+
var _a;
|
75
|
+
return (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo();
|
76
|
+
}
|
77
|
+
getExporterOffset(paginationInfo) {
|
78
|
+
if (paginationInfo == undefined) {
|
79
|
+
return;
|
80
|
+
}
|
81
|
+
const offset = paginationInfo.firstRecord;
|
82
|
+
if (offset > 0) {
|
83
|
+
return (offset - 1);
|
84
|
+
}
|
85
|
+
return offset;
|
86
|
+
}
|
87
|
+
}
|
88
|
+
|
33
89
|
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%}.snk-grid__header.sc-snk-grid{width:100%;display:flex;flex-wrap:nowrap;justify-content:flex-end}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--medium)}.snk-grid__table.sc-snk-grid{min-height:var(--snk-grid-min-height)}.snk-grid-container__without-shadow.sc-snk-grid{--ezgrid__container--shadow:unset}";
|
34
90
|
|
35
91
|
const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
@@ -38,6 +94,8 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
38
94
|
this.__registerHost();
|
39
95
|
this.actionClick = createEvent(this, "actionClick", 7);
|
40
96
|
this.gridDoubleClick = createEvent(this, "gridDoubleClick", 7);
|
97
|
+
this._customEditors = new Map();
|
98
|
+
this._customRenders = new Map();
|
41
99
|
this._topTaskbarProcessor = new TaskbarProcessor({
|
42
100
|
"snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
43
101
|
"snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
@@ -57,6 +115,14 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
57
115
|
"snkGridHeaderTaskbar.singleTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "FORM_MODE", "CONFIGURATOR", "REFRESH"],
|
58
116
|
"snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE"]
|
59
117
|
});
|
118
|
+
this.dataUnitInterceptor = {
|
119
|
+
interceptAction: async (action) => {
|
120
|
+
if (action.type === Action.METADATA_LOADED) {
|
121
|
+
return await this.interceptMetadataLoaded(action);
|
122
|
+
}
|
123
|
+
return action;
|
124
|
+
}
|
125
|
+
};
|
60
126
|
this._dataUnit = undefined;
|
61
127
|
this._dataState = undefined;
|
62
128
|
this._gridConfig = undefined;
|
@@ -83,6 +149,8 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
83
149
|
this.disablePersonalizedFilter = undefined;
|
84
150
|
this.gridLegacyConfigName = undefined;
|
85
151
|
this.filterBarLegacyConfigName = undefined;
|
152
|
+
this.autoLoad = undefined;
|
153
|
+
this.autoFocus = true;
|
86
154
|
}
|
87
155
|
/**
|
88
156
|
* Exibe a janela de configurações da grade.
|
@@ -127,6 +195,42 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
127
195
|
async findColumn() {
|
128
196
|
await openFieldSearch(this._moreOptions, this._columnSearch);
|
129
197
|
}
|
198
|
+
/**
|
199
|
+
* Registra um editor customizado para campos da grade e formulário
|
200
|
+
*/
|
201
|
+
async addCustomEditor(fieldName, customEditor, detailContext) {
|
202
|
+
if (this._grid) {
|
203
|
+
this._grid.addCustomEditor(fieldName, customEditor, detailContext);
|
204
|
+
return;
|
205
|
+
}
|
206
|
+
const newCustomEditors = new Map(this._customEditors);
|
207
|
+
newCustomEditors.set(fieldName, { customEditor, detailContext });
|
208
|
+
this._customEditors = newCustomEditors;
|
209
|
+
}
|
210
|
+
/**
|
211
|
+
* Registra um render customizado para colunas da grid.
|
212
|
+
*/
|
213
|
+
async addGridCustomRender(fieldName, customRender, detailContext) {
|
214
|
+
if (this._grid) {
|
215
|
+
this._grid.addGridCustomRender(fieldName, customRender, detailContext);
|
216
|
+
return;
|
217
|
+
}
|
218
|
+
const newCustomRenders = new Map(this._customRenders);
|
219
|
+
newCustomRenders.set(fieldName, { customRender, detailContext });
|
220
|
+
this._customRenders = newCustomRenders;
|
221
|
+
}
|
222
|
+
/**
|
223
|
+
* Registra um formatador de valores para uma coluna da grid.
|
224
|
+
*/
|
225
|
+
async addCustomValueFormatter(columnName, customFormatter) {
|
226
|
+
this._grid.addCustomValueFormatter(columnName, customFormatter);
|
227
|
+
}
|
228
|
+
/**
|
229
|
+
* Remove o formatador de valores de uma coluna da grid.
|
230
|
+
*/
|
231
|
+
async removeCustomValueFormatter(columnName) {
|
232
|
+
this._grid.removeCustomValueFormatter(columnName);
|
233
|
+
}
|
130
234
|
/**
|
131
235
|
* Atribui o foco para a grade.
|
132
236
|
*/
|
@@ -187,106 +291,31 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
187
291
|
});
|
188
292
|
evt.stopPropagation();
|
189
293
|
}
|
190
|
-
buildColumnsMetadata(gridColumns) {
|
191
|
-
const columnsMetadata = [];
|
192
|
-
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach((column) => {
|
193
|
-
var _a, _b;
|
194
|
-
/**
|
195
|
-
* TODO: Analisar e criar uma melhor forma de tratar essa validação do "RECDESP".
|
196
|
-
*/
|
197
|
-
if (column.hidden && column.name !== "RECDESP") {
|
198
|
-
return;
|
199
|
-
}
|
200
|
-
const fieldData = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
|
201
|
-
const columnData = {
|
202
|
-
label: column.label,
|
203
|
-
id: column.name,
|
204
|
-
width: column.width,
|
205
|
-
type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
|
206
|
-
userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface
|
207
|
-
};
|
208
|
-
columnsMetadata.push(columnData);
|
209
|
-
if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
|
210
|
-
const mergedFrom = fieldData.properties.mergedFrom;
|
211
|
-
const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
|
212
|
-
const descriptionColumn = {
|
213
|
-
label: fieldData.properties.DESCRIPTIONENTITY,
|
214
|
-
id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
|
215
|
-
width: 200,
|
216
|
-
type: DataType.TEXT,
|
217
|
-
userInterface: UserInterface.LONGTEXT
|
218
|
-
};
|
219
|
-
columnsMetadata.push(descriptionColumn);
|
220
|
-
}
|
221
|
-
});
|
222
|
-
return columnsMetadata || [];
|
223
|
-
}
|
224
|
-
getPaginationInfo() {
|
225
|
-
var _a;
|
226
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo();
|
227
|
-
}
|
228
|
-
getExporterOffset(paginationInfo) {
|
229
|
-
if (paginationInfo == undefined) {
|
230
|
-
return;
|
231
|
-
}
|
232
|
-
const offset = paginationInfo.firstRecord;
|
233
|
-
if (offset > 0) {
|
234
|
-
return (offset - 1);
|
235
|
-
}
|
236
|
-
return offset;
|
237
|
-
}
|
238
294
|
async dataExporterProviderStore() {
|
239
|
-
|
240
|
-
const selectedIDs = await ((_a = this._snkDataUnit) === null || _a === void 0 ? void 0 : _a.getSelectedRecordsIDsInfo());
|
241
|
-
const dataExporterProvider = {
|
242
|
-
getFilters: () => {
|
243
|
-
var _a;
|
244
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getAppliedFilters();
|
245
|
-
},
|
246
|
-
getColumnsMetadata: async () => {
|
247
|
-
var _a;
|
248
|
-
const columnsState = await ((_a = this._grid) === null || _a === void 0 ? void 0 : _a.getColumnsState());
|
249
|
-
return this.buildColumnsMetadata(columnsState);
|
250
|
-
},
|
251
|
-
getOrders: () => {
|
252
|
-
var _a;
|
253
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSort();
|
254
|
-
},
|
255
|
-
getResourceURI: () => {
|
256
|
-
var _a;
|
257
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.name;
|
258
|
-
},
|
259
|
-
getSelectedNumber: () => {
|
260
|
-
var _a, _b;
|
261
|
-
return (_b = (_a = this._dataState) === null || _a === void 0 ? void 0 : _a.selectionInfo) === null || _b === void 0 ? void 0 : _b.length;
|
262
|
-
},
|
263
|
-
getTotalRecords: () => {
|
264
|
-
var _a, _b, _c;
|
265
|
-
const { total } = ((_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo()) || {};
|
266
|
-
return total !== null && total !== void 0 ? total : (_c = (_b = this._dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
|
267
|
-
},
|
268
|
-
getSelectedIDs: () => {
|
269
|
-
return selectedIDs || [];
|
270
|
-
},
|
271
|
-
getOffset: () => {
|
272
|
-
return this.getExporterOffset(this.getPaginationInfo());
|
273
|
-
},
|
274
|
-
getLimit: () => {
|
275
|
-
var _a;
|
276
|
-
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.pageSize;
|
277
|
-
},
|
278
|
-
getRecordID: () => {
|
279
|
-
var _a, _b, _c;
|
280
|
-
return (_c = (_b = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.__record__id__;
|
281
|
-
}
|
282
|
-
};
|
295
|
+
const dataExporterProvider = new ServerSideExporterProvider(this._dataUnit, this._grid);
|
283
296
|
store.set("exporterProviders", Object.assign(Object.assign({}, store.get("exporterProviders")), { [this.configName]: dataExporterProvider }));
|
284
297
|
}
|
285
298
|
addElementID() {
|
286
299
|
const dataInfo = { dataUnit: this._dataUnit };
|
287
300
|
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
288
301
|
}
|
289
|
-
|
302
|
+
loadGridCustomFormatters(fields) {
|
303
|
+
if (!fields || !this._grid) {
|
304
|
+
return;
|
305
|
+
}
|
306
|
+
fields.forEach((field) => {
|
307
|
+
var _a;
|
308
|
+
if ((_a = field.properties) === null || _a === void 0 ? void 0 : _a.rm_precision) {
|
309
|
+
this.addCustomValueFormatter(field.name, this._rmPrecisionCustomValueFormatter);
|
310
|
+
}
|
311
|
+
});
|
312
|
+
}
|
313
|
+
async interceptMetadataLoaded(action) {
|
314
|
+
this.loadGridCustomFormatters(action.payload.fields);
|
315
|
+
return action;
|
316
|
+
}
|
317
|
+
finishLoading() {
|
318
|
+
this._dataUnit.addInterceptor(this.dataUnitInterceptor);
|
290
319
|
CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
291
320
|
this.addElementID();
|
292
321
|
if (this.columnFilterDataSource != undefined) {
|
@@ -294,6 +323,24 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
294
323
|
this.columnFilterDataSource.setDataUnit(this._dataUnit);
|
295
324
|
}
|
296
325
|
}
|
326
|
+
setCustomRenders() {
|
327
|
+
if (!this._grid) {
|
328
|
+
return;
|
329
|
+
}
|
330
|
+
for (const [fieldName, customRenderProps] of this._customRenders) {
|
331
|
+
this._grid.addGridCustomRender(fieldName, customRenderProps.customRender, customRenderProps.detailContext);
|
332
|
+
this._customRenders.delete(fieldName);
|
333
|
+
}
|
334
|
+
}
|
335
|
+
setCustomEditors() {
|
336
|
+
if (!this._grid) {
|
337
|
+
return;
|
338
|
+
}
|
339
|
+
for (const [fieldName, customEditorProps] of this._customEditors) {
|
340
|
+
this._grid.addCustomEditor(fieldName, customEditorProps.customEditor, customEditorProps.detailContext);
|
341
|
+
this._customEditors.delete(fieldName);
|
342
|
+
}
|
343
|
+
}
|
297
344
|
componentWillLoad() {
|
298
345
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
299
346
|
//TODO: substituir pelo metodo nativo closest
|
@@ -305,17 +352,15 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
305
352
|
if (!this._dataUnit) {
|
306
353
|
this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
307
354
|
this._dataUnit = evt.detail;
|
308
|
-
this.
|
355
|
+
this.finishLoading();
|
309
356
|
});
|
310
357
|
}
|
311
358
|
else {
|
312
|
-
this.
|
359
|
+
this.finishLoading();
|
313
360
|
}
|
314
361
|
if (!this.messagesBuilder)
|
315
362
|
this.messagesBuilder = this._snkDataUnit.messagesBuilder;
|
316
|
-
this._snkDataUnit.addEventListener("dataStateChange", (
|
317
|
-
this._dataState = evt.detail;
|
318
|
-
});
|
363
|
+
this._snkDataUnit.addEventListener("dataStateChange", this.handleDataStateChange.bind(this));
|
319
364
|
this._snkDataUnit.addEventListener("cancelEdition", () => {
|
320
365
|
var _a;
|
321
366
|
if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.recordsIsEmpty) {
|
@@ -326,9 +371,20 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
326
371
|
}
|
327
372
|
parent = parent.parentElement;
|
328
373
|
}
|
374
|
+
this._rmPrecisionCustomValueFormatter = new RmPrecisionCustomValueFormatter();
|
329
375
|
this.addGridLegacyConfigName();
|
330
376
|
this.loadConfig();
|
331
377
|
}
|
378
|
+
componentDidRender() {
|
379
|
+
this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
|
380
|
+
this.loadGridCustomFormatters(this._dataUnit.metadata.fields);
|
381
|
+
this.setCustomRenders();
|
382
|
+
this.setCustomEditors();
|
383
|
+
}
|
384
|
+
async handleDataStateChange(evt) {
|
385
|
+
this._dataState = evt.detail;
|
386
|
+
this._rmPrecisionCustomValueFormatter.setDataState(this._dataState);
|
387
|
+
}
|
332
388
|
getHeaderDisabledButtons() {
|
333
389
|
var _a;
|
334
390
|
const disabledButtons = [];
|
@@ -441,7 +497,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
441
497
|
return undefined;
|
442
498
|
}
|
443
499
|
return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, this._showSnkFilterBar &&
|
444
|
-
h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none' }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
500
|
+
h(Fragment, null, h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), h("snk-taskbar", { class: "ez-padding-left--medium", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none' }, h("slot", { name: this.topTaskbarCustomSlotId }))), h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus }, h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, h("slot", { name: this.gridHeaderCustomSlotId }))), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
445
501
|
}
|
446
502
|
get _element() { return this; }
|
447
503
|
static get watchers() { return {
|
@@ -470,6 +526,8 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
470
526
|
"disablePersonalizedFilter": [4, "disable-personalized-filter"],
|
471
527
|
"gridLegacyConfigName": [1, "grid-legacy-config-name"],
|
472
528
|
"filterBarLegacyConfigName": [1, "filter-bar-legacy-config-name"],
|
529
|
+
"autoLoad": [4, "auto-load"],
|
530
|
+
"autoFocus": [4, "auto-focus"],
|
473
531
|
"_dataUnit": [32],
|
474
532
|
"_dataState": [32],
|
475
533
|
"_gridConfig": [32],
|
@@ -481,6 +539,10 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
481
539
|
"reloadFilterBar": [64],
|
482
540
|
"getFilterBar": [64],
|
483
541
|
"findColumn": [64],
|
542
|
+
"addCustomEditor": [64],
|
543
|
+
"addGridCustomRender": [64],
|
544
|
+
"addCustomValueFormatter": [64],
|
545
|
+
"removeCustomValueFormatter": [64],
|
484
546
|
"setFocus": [64]
|
485
547
|
}]);
|
486
548
|
function defineCustomElement() {
|
@@ -3,7 +3,7 @@ import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@s
|
|
3
3
|
import { F as FilterGroupCondition, P as PersonalizedFilterUtils } from './PersonalizedFilterUtils.js';
|
4
4
|
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage.js';
|
5
5
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
6
|
-
import { s as store } from './
|
6
|
+
import { s as store } from './index2.js';
|
7
7
|
import { d as defineCustomElement$7 } from './snk-expression-group2.js';
|
8
8
|
import { d as defineCustomElement$6 } from './snk-expression-item2.js';
|
9
9
|
import { d as defineCustomElement$5 } from './snk-filter-advanced-mode2.js';
|