@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-38445.1 → 0.0.0-bugfix-dev-kb-67792.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-942ce74b.js → ConfigStorage-0a690675.js} +2 -2
- package/dist/cjs/{DataFetcher-313debd8.js → DataFetcher-77729a93.js} +7 -2
- package/dist/cjs/{SnkFormConfigManager-1b13bacd.js → SnkFormConfigManager-d6d5db6d.js} +5 -8
- package/dist/cjs/{SnkMessageBuilder-722b104e.js → SnkMessageBuilder-96b0f549.js} +13 -9
- package/dist/cjs/{IExporterProvider-597949f9.js → SnkMultiSelectionListDataSource-f79d220c.js} +6 -96
- package/dist/cjs/{auth-fetcher-54f5ff9d.js → auth-fetcher-29bb791c.js} +1 -1
- package/dist/cjs/{form-config-fetcher-2dd00e5b.js → form-config-fetcher-feb08214.js} +1 -1
- package/dist/cjs/{index-1dfc7a6e.js → index-0922807b.js} +0 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{dataunit-fetcher-688d3f05.js → pesquisa-fetcher-cba1b3d0.js} +181 -88
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -7
- package/dist/cjs/snk-application.cjs.entry.js +15 -38
- package/dist/cjs/snk-attach.cjs.entry.js +49 -74
- package/dist/cjs/snk-crud.cjs.entry.js +13 -99
- package/dist/cjs/snk-data-exporter.cjs.entry.js +88 -318
- package/dist/cjs/snk-data-unit-559ac55c.js +462 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -12
- package/dist/cjs/snk-detail-view.cjs.entry.js +10 -51
- package/dist/cjs/snk-exporter-email-sender.cjs.entry.js +1 -1
- package/dist/cjs/snk-filter-bar.cjs.entry.js +14 -9
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
- package/dist/cjs/snk-form-view.cjs.entry.js +0 -67
- package/dist/cjs/snk-form.cjs.entry.js +9 -54
- package/dist/cjs/snk-grid.cjs.entry.js +112 -169
- package/dist/cjs/{snk-guides-viewer-67605336.js → snk-guides-viewer-bfcad2d6.js} +10 -38
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -11
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +40 -267
- package/dist/cjs/snk-taskbar.cjs.entry.js +3 -4
- package/dist/cjs/{taskbar-elements-9ad1f9c0.js → taskbar-elements-3ecd1278.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +11 -35
- package/dist/collection/components/snk-attach/snk-attach.js +44 -67
- package/dist/collection/components/snk-crud/snk-crud.js +7 -249
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +0 -135
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +0 -161
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +5 -112
- package/dist/collection/components/snk-data-exporter/exporter-email-sender/options-step.js +1 -1
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +1 -54
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +52 -59
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +2 -64
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +214 -507
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +11 -23
- package/dist/collection/components/snk-form/snk-form.js +5 -102
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +3 -6
- package/dist/collection/components/snk-grid/snk-grid.css +0 -2
- package/dist/collection/components/snk-grid/snk-grid.js +102 -241
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +18 -386
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -2
- package/dist/collection/lib/@types/index.js +0 -5
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +3 -7
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +8 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +0 -3
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +0 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +13 -11
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +0 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +4 -53
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +34 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -4
- package/dist/collection/lib/message/SnkMessageBuilder.js +12 -5
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +0 -2
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +0 -1
- package/dist/collection/lib/message/resources/snk-exporter.msg.js +1 -1
- package/dist/components/DataFetcher.js +8 -3
- package/dist/components/SnkFormConfigManager.js +3 -6
- package/dist/components/SnkMessageBuilder.js +13 -9
- package/dist/components/dataunit-fetcher.js +182 -84
- package/dist/components/{IExporterProvider.js → field-search.js} +6 -93
- package/dist/components/index2.js +33 -198
- package/dist/components/index3.js +199 -0
- package/dist/components/snk-actions-button2.js +11 -4
- package/dist/components/snk-application2.js +9 -31
- package/dist/components/snk-attach2.js +41 -65
- package/dist/components/snk-crud.js +11 -103
- package/dist/components/snk-data-exporter2.js +87 -311
- package/dist/components/snk-data-unit2.js +212 -470
- package/dist/components/snk-detail-view2.js +10 -87
- package/dist/components/snk-exporter-email-sender2.js +1 -1
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-filter-bar2.js +11 -7
- package/dist/components/snk-form-view2.js +1 -72
- package/dist/components/snk-form.js +6 -53
- package/dist/components/snk-grid2.js +108 -170
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +23 -259
- package/dist/components/snk-taskbar2.js +5 -6
- package/dist/esm/{ConfigStorage-86187da3.js → ConfigStorage-8c2ddac8.js} +2 -2
- package/dist/esm/{DataFetcher-c1baf61d.js → DataFetcher-773a3e4b.js} +8 -3
- package/dist/esm/{SnkFormConfigManager-d4554df9.js → SnkFormConfigManager-c01b9d9d.js} +5 -8
- package/dist/esm/{SnkMessageBuilder-89925609.js → SnkMessageBuilder-72423074.js} +13 -9
- package/dist/esm/{IExporterProvider-63a188b6.js → SnkMultiSelectionListDataSource-a4805051.js} +7 -95
- package/dist/esm/{auth-fetcher-039abba3.js → auth-fetcher-a411f73c.js} +1 -1
- package/dist/esm/{form-config-fetcher-30fb808f.js → form-config-fetcher-e0382e5a.js} +1 -1
- package/dist/esm/{index-3aa4977a.js → index-0ece87a6.js} +1 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{dataunit-fetcher-264191b2.js → pesquisa-fetcher-34a8b8be.js} +182 -84
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +5 -7
- package/dist/esm/snk-application.entry.js +14 -37
- package/dist/esm/snk-attach.entry.js +44 -69
- package/dist/esm/snk-crud.entry.js +13 -99
- package/dist/esm/snk-data-exporter.entry.js +89 -319
- package/dist/esm/snk-data-unit-44215df7.js +460 -0
- package/dist/esm/snk-data-unit.entry.js +2 -12
- package/dist/esm/snk-detail-view.entry.js +10 -51
- package/dist/esm/snk-exporter-email-sender.entry.js +1 -1
- package/dist/esm/snk-filter-bar.entry.js +14 -9
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form-config.entry.js +2 -2
- package/dist/esm/snk-form-view.entry.js +0 -67
- package/dist/esm/snk-form.entry.js +9 -54
- package/dist/esm/snk-grid.entry.js +110 -167
- package/dist/esm/{snk-guides-viewer-151f6091.js → snk-guides-viewer-edeac29f.js} +10 -38
- package/dist/esm/snk-guides-viewer.entry.js +9 -11
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +28 -255
- package/dist/esm/snk-taskbar.entry.js +3 -4
- package/dist/esm/{taskbar-elements-d59867f1.js → taskbar-elements-2473c8ac.js} +3 -3
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +1 -0
- package/dist/sankhyablocks/{p-913a9979.js → p-0cd3c0a9.js} +1 -1
- package/dist/sankhyablocks/p-16a1dd18.entry.js +1 -0
- package/dist/sankhyablocks/p-176c3491.entry.js +1 -0
- package/dist/sankhyablocks/{p-df5451c7.js → p-181975f1.js} +1 -1
- package/dist/sankhyablocks/p-37e5d563.js +65 -0
- package/dist/sankhyablocks/p-38289a55.js +1 -0
- package/dist/sankhyablocks/{p-a1d72395.entry.js → p-41c2c191.entry.js} +1 -1
- package/dist/sankhyablocks/p-46e55a95.entry.js +1 -0
- package/dist/sankhyablocks/p-4e728357.entry.js +1 -0
- package/dist/sankhyablocks/p-5571bdfe.js +1 -0
- package/dist/sankhyablocks/p-5630574e.js +1 -0
- package/dist/sankhyablocks/p-594bc21d.js +1 -0
- package/dist/sankhyablocks/p-5f8c0426.entry.js +1 -0
- package/dist/sankhyablocks/p-80c64add.entry.js +1 -0
- package/dist/sankhyablocks/p-86af4cc2.js +1 -0
- package/dist/sankhyablocks/p-8b690717.js +1 -0
- package/dist/sankhyablocks/{p-aff76a53.js → p-96621231.js} +1 -1
- package/dist/sankhyablocks/p-a1832166.entry.js +1 -0
- package/dist/sankhyablocks/p-a809d944.entry.js +1 -0
- package/dist/sankhyablocks/p-a97226f6.entry.js +1 -0
- package/dist/sankhyablocks/p-add17f6a.entry.js +1 -0
- package/dist/sankhyablocks/{p-7e7a7473.js → p-ae4fc9a9.js} +1 -1
- package/dist/sankhyablocks/{p-eae7a817.entry.js → p-c2ae0fab.entry.js} +1 -1
- package/dist/sankhyablocks/p-c5a9a5d9.entry.js +1 -0
- package/dist/sankhyablocks/p-c5aa7d70.entry.js +11 -0
- package/dist/sankhyablocks/p-cb0147ab.entry.js +1 -0
- package/dist/sankhyablocks/p-f0145e3b.js +1 -0
- package/dist/sankhyablocks/{p-14a08904.entry.js → p-f03e4199.entry.js} +1 -1
- package/dist/sankhyablocks/p-f607db63.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +3 -7
- package/dist/types/components/snk-attach/snk-attach.d.ts +9 -11
- package/dist/types/components/snk-crud/snk-crud.d.ts +1 -36
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +0 -23
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +3 -28
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +0 -19
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +4 -24
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +1 -4
- package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +0 -21
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +2 -61
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +1 -4
- package/dist/types/components/snk-form/snk-form.d.ts +0 -14
- package/dist/types/components/snk-grid/snk-grid.d.ts +6 -46
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +4 -58
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components.d.ts +4 -220
- package/dist/types/lib/@types/index.d.ts +0 -5
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +1 -2
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +1 -2
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +0 -6
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +0 -3
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +1 -2
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +0 -1
- package/package.json +1 -1
- package/dist/cjs/RecordIDUtils-3735135c.js +0 -43
- package/dist/cjs/pesquisa-fetcher-680e198f.js +0 -166
- package/dist/cjs/snk-data-unit-685272e7.js +0 -679
- package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js +0 -1
- package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js +0 -1
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +0 -97
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +0 -74
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +0 -1
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +0 -58
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +0 -55
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +0 -88
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +0 -20
- package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +0 -38
- package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js +0 -24
- package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js +0 -18
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +0 -35
- package/dist/collection/lib/dataUnit/ValueFormatter.js +0 -4
- package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js +0 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js +0 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js +0 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js +0 -22
- package/dist/components/ISave.js +0 -47
- package/dist/components/pesquisa-fetcher.js +0 -164
- package/dist/esm/RecordIDUtils-87d02110.js +0 -41
- package/dist/esm/pesquisa-fetcher-03c8f919.js +0 -164
- package/dist/esm/snk-data-unit-63f83504.js +0 -677
- package/dist/sankhyablocks/p-14b9f964.entry.js +0 -1
- package/dist/sankhyablocks/p-19c18d06.entry.js +0 -1
- package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
- package/dist/sankhyablocks/p-219f888d.entry.js +0 -1
- package/dist/sankhyablocks/p-30cf616e.js +0 -1
- package/dist/sankhyablocks/p-3a212712.js +0 -1
- package/dist/sankhyablocks/p-47b60deb.entry.js +0 -1
- package/dist/sankhyablocks/p-7505da04.entry.js +0 -1
- package/dist/sankhyablocks/p-75f83d1d.entry.js +0 -1
- package/dist/sankhyablocks/p-7a337364.js +0 -1
- package/dist/sankhyablocks/p-829d4045.js +0 -1
- package/dist/sankhyablocks/p-82a0bfb0.entry.js +0 -11
- package/dist/sankhyablocks/p-8fc470e5.entry.js +0 -1
- package/dist/sankhyablocks/p-941bf3ef.entry.js +0 -1
- package/dist/sankhyablocks/p-9863d682.js +0 -1
- package/dist/sankhyablocks/p-af8efd95.js +0 -6
- package/dist/sankhyablocks/p-b4b21558.entry.js +0 -1
- package/dist/sankhyablocks/p-bad55caa.entry.js +0 -1
- package/dist/sankhyablocks/p-c053256c.entry.js +0 -1
- package/dist/sankhyablocks/p-c5268346.entry.js +0 -1
- package/dist/sankhyablocks/p-cefba299.js +0 -1
- package/dist/sankhyablocks/p-dc7c9047.js +0 -1
- package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
- package/dist/sankhyablocks/p-fcac4dfc.js +0 -1
- package/dist/sankhyablocks/p-fe79f83a.js +0 -60
- package/dist/types/components/snk-crud/interfaces/PropsCustomEditor.d.ts +0 -4
- package/dist/types/components/snk-crud/interfaces/PropsCustomRender.d.ts +0 -4
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +0 -14
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +0 -12
- package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +0 -5
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +0 -17
- package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +0 -17
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +0 -77
- package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +0 -4
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +0 -3
- package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +0 -3
- package/dist/types/components/snk-data-unit/test/resources/parentMetadataMock.d.ts +0 -3
- package/dist/types/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.d.ts +0 -11
- package/dist/types/lib/dataUnit/ValueFormatter.d.ts +0 -2
- package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +0 -3
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.d.ts +0 -10
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.d.ts +0 -7
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.d.ts +0 -20
|
@@ -1,20 +1,18 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Fragment } from '@stencil/core/internal/client';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementIDUtils, ApplicationContext, StringUtils, DataType } from '@sankhyalabs/core';
|
|
3
|
+
import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
3
4
|
import { d as defineCustomElement$2, T as TaskbarElement } from './snk-taskbar2.js';
|
|
4
5
|
import { C as ConfigStorage } from './ConfigStorage.js';
|
|
5
|
-
import { P as PresentationMode } from './
|
|
6
|
-
import {
|
|
7
|
-
import { s as store } from './
|
|
6
|
+
import { P as PresentationMode } from './index2.js';
|
|
7
|
+
import { T as TaskbarProcessor, S as SnkMultiSelectionListDataSource, o as openFieldSearch, C as CrudUtils, b as buildFieldSearch } from './field-search.js';
|
|
8
|
+
import { s as store } from './index3.js';
|
|
8
9
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
9
10
|
import './DataFetcher.js';
|
|
10
|
-
import './pesquisa-fetcher.js';
|
|
11
|
-
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
12
|
-
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
13
11
|
import './dataunit-fetcher.js';
|
|
12
|
+
import { d as defineCustomElement$i } from './snk-actions-button2.js';
|
|
13
|
+
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
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';
|
|
18
16
|
import { d as defineCustomElement$h } from './snk-data-exporter2.js';
|
|
19
17
|
import { d as defineCustomElement$g } from './snk-exporter-email-sender2.js';
|
|
20
18
|
import { d as defineCustomElement$f } from './snk-expression-group2.js';
|
|
@@ -32,61 +30,7 @@ import { d as defineCustomElement$4 } from './snk-select-box2.js';
|
|
|
32
30
|
import { d as defineCustomElement$3 } from './snk-simple-bar2.js';
|
|
33
31
|
import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
|
|
34
32
|
|
|
35
|
-
|
|
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
|
-
|
|
89
|
-
const snkGridCss = ".sc-snk-grid-h{--snk-grid-min-height:300px;--snk-grid-padding:var(--space--lg)}.snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%;padding:var(--snk-grid-padding)}.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}";
|
|
33
|
+
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}";
|
|
90
34
|
|
|
91
35
|
const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
92
36
|
constructor() {
|
|
@@ -94,8 +38,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
94
38
|
this.__registerHost();
|
|
95
39
|
this.actionClick = createEvent(this, "actionClick", 7);
|
|
96
40
|
this.gridDoubleClick = createEvent(this, "gridDoubleClick", 7);
|
|
97
|
-
this._customEditors = new Map();
|
|
98
|
-
this._customRenders = new Map();
|
|
99
41
|
this._topTaskbarProcessor = new TaskbarProcessor({
|
|
100
42
|
"snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
|
101
43
|
"snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
|
@@ -115,14 +57,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
115
57
|
"snkGridHeaderTaskbar.singleTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "FORM_MODE", "CONFIGURATOR", "REFRESH"],
|
|
116
58
|
"snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE"]
|
|
117
59
|
});
|
|
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
|
-
};
|
|
126
60
|
this._dataUnit = undefined;
|
|
127
61
|
this._dataState = undefined;
|
|
128
62
|
this._gridConfig = undefined;
|
|
@@ -149,8 +83,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
149
83
|
this.disablePersonalizedFilter = undefined;
|
|
150
84
|
this.gridLegacyConfigName = undefined;
|
|
151
85
|
this.filterBarLegacyConfigName = undefined;
|
|
152
|
-
this.autoLoad = undefined;
|
|
153
|
-
this.autoFocus = true;
|
|
154
86
|
}
|
|
155
87
|
/**
|
|
156
88
|
* Exibe a janela de configurações da grade.
|
|
@@ -195,42 +127,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
195
127
|
async findColumn() {
|
|
196
128
|
await openFieldSearch(this._moreOptions, this._columnSearch);
|
|
197
129
|
}
|
|
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
|
-
}
|
|
234
130
|
/**
|
|
235
131
|
* Atribui o foco para a grade.
|
|
236
132
|
*/
|
|
@@ -291,31 +187,106 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
291
187
|
});
|
|
292
188
|
evt.stopPropagation();
|
|
293
189
|
}
|
|
294
|
-
|
|
295
|
-
const
|
|
296
|
-
|
|
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 || [];
|
|
297
223
|
}
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
224
|
+
getPaginationInfo() {
|
|
225
|
+
var _a;
|
|
226
|
+
return (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo();
|
|
301
227
|
}
|
|
302
|
-
|
|
303
|
-
if (
|
|
228
|
+
getExporterOffset(paginationInfo) {
|
|
229
|
+
if (paginationInfo == undefined) {
|
|
304
230
|
return;
|
|
305
231
|
}
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
232
|
+
const offset = paginationInfo.firstRecord;
|
|
233
|
+
if (offset > 0) {
|
|
234
|
+
return (offset - 1);
|
|
235
|
+
}
|
|
236
|
+
return offset;
|
|
237
|
+
}
|
|
238
|
+
async dataExporterProviderStore() {
|
|
239
|
+
var _a;
|
|
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__;
|
|
310
281
|
}
|
|
311
|
-
}
|
|
282
|
+
};
|
|
283
|
+
store.set("exporterProviders", Object.assign(Object.assign({}, store.get("exporterProviders")), { [this.configName]: dataExporterProvider }));
|
|
312
284
|
}
|
|
313
|
-
|
|
314
|
-
this.
|
|
315
|
-
|
|
285
|
+
addElementID() {
|
|
286
|
+
const dataInfo = { dataUnit: this._dataUnit };
|
|
287
|
+
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
316
288
|
}
|
|
317
|
-
|
|
318
|
-
this._dataUnit.addInterceptor(this.dataUnitInterceptor);
|
|
289
|
+
finshLoading() {
|
|
319
290
|
CrudUtils.assertDefaultSorting(this._gridConfig, this._dataUnit);
|
|
320
291
|
this.addElementID();
|
|
321
292
|
if (this.columnFilterDataSource != undefined) {
|
|
@@ -323,24 +294,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
323
294
|
this.columnFilterDataSource.setDataUnit(this._dataUnit);
|
|
324
295
|
}
|
|
325
296
|
}
|
|
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
|
-
}
|
|
344
297
|
componentWillLoad() {
|
|
345
298
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
346
299
|
//TODO: substituir pelo metodo nativo closest
|
|
@@ -352,15 +305,17 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
352
305
|
if (!this._dataUnit) {
|
|
353
306
|
this._snkDataUnit.addEventListener("dataUnitReady", (evt) => {
|
|
354
307
|
this._dataUnit = evt.detail;
|
|
355
|
-
this.
|
|
308
|
+
this.finshLoading();
|
|
356
309
|
});
|
|
357
310
|
}
|
|
358
311
|
else {
|
|
359
|
-
this.
|
|
312
|
+
this.finshLoading();
|
|
360
313
|
}
|
|
361
314
|
if (!this.messagesBuilder)
|
|
362
315
|
this.messagesBuilder = this._snkDataUnit.messagesBuilder;
|
|
363
|
-
this._snkDataUnit.addEventListener("dataStateChange",
|
|
316
|
+
this._snkDataUnit.addEventListener("dataStateChange", (evt) => {
|
|
317
|
+
this._dataState = evt.detail;
|
|
318
|
+
});
|
|
364
319
|
this._snkDataUnit.addEventListener("cancelEdition", () => {
|
|
365
320
|
var _a;
|
|
366
321
|
if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.recordsIsEmpty) {
|
|
@@ -371,20 +326,9 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
371
326
|
}
|
|
372
327
|
parent = parent.parentElement;
|
|
373
328
|
}
|
|
374
|
-
this._rmPrecisionCustomValueFormatter = new RmPrecisionCustomValueFormatter();
|
|
375
329
|
this.addGridLegacyConfigName();
|
|
376
330
|
this.loadConfig();
|
|
377
331
|
}
|
|
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
|
-
}
|
|
388
332
|
getHeaderDisabledButtons() {
|
|
389
333
|
var _a;
|
|
390
334
|
const disabledButtons = [];
|
|
@@ -496,8 +440,8 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
496
440
|
if (!this._dataUnit) {
|
|
497
441
|
return undefined;
|
|
498
442
|
}
|
|
499
|
-
return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto" }, h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, this._showSnkFilterBar &&
|
|
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
|
|
443
|
+
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 }))));
|
|
501
445
|
}
|
|
502
446
|
get _element() { return this; }
|
|
503
447
|
static get watchers() { return {
|
|
@@ -526,8 +470,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
526
470
|
"disablePersonalizedFilter": [4, "disable-personalized-filter"],
|
|
527
471
|
"gridLegacyConfigName": [1, "grid-legacy-config-name"],
|
|
528
472
|
"filterBarLegacyConfigName": [1, "filter-bar-legacy-config-name"],
|
|
529
|
-
"autoLoad": [4, "auto-load"],
|
|
530
|
-
"autoFocus": [4, "auto-focus"],
|
|
531
473
|
"_dataUnit": [32],
|
|
532
474
|
"_dataState": [32],
|
|
533
475
|
"_gridConfig": [32],
|
|
@@ -539,10 +481,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
539
481
|
"reloadFilterBar": [64],
|
|
540
482
|
"getFilterBar": [64],
|
|
541
483
|
"findColumn": [64],
|
|
542
|
-
"addCustomEditor": [64],
|
|
543
|
-
"addGridCustomRender": [64],
|
|
544
|
-
"addCustomValueFormatter": [64],
|
|
545
|
-
"removeCustomValueFormatter": [64],
|
|
546
484
|
"setFocus": [64]
|
|
547
485
|
}]);
|
|
548
486
|
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 './index3.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';
|