@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-65214.0 → 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-e49214c6.js → ConfigStorage-0a690675.js} +0 -1
- package/dist/cjs/{SnkFormConfigManager-beebf47a.js → SnkFormConfigManager-d6d5db6d.js} +7 -8
- package/dist/cjs/{SnkMessageBuilder-cceebbae.js → SnkMessageBuilder-96b0f549.js} +13 -9
- package/dist/cjs/{IExporterProvider-10b7fed5.js → SnkMultiSelectionListDataSource-f79d220c.js} +4 -94
- package/dist/cjs/{index-1dfc7a6e.js → index-0922807b.js} +0 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{dataunit-fetcher-d4873076.js → pesquisa-fetcher-cba1b3d0.js} +180 -87
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +3 -5
- package/dist/cjs/snk-application.cjs.entry.js +12 -35
- package/dist/cjs/snk-attach.cjs.entry.js +46 -71
- package/dist/cjs/snk-crud.cjs.entry.js +10 -101
- package/dist/cjs/snk-data-exporter.cjs.entry.js +85 -315
- 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 -50
- package/dist/cjs/snk-filter-bar.cjs.entry.js +12 -7
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-form-view.cjs.entry.js +0 -67
- package/dist/cjs/snk-form.cjs.entry.js +7 -52
- package/dist/cjs/snk-grid.cjs.entry.js +110 -167
- package/dist/cjs/{snk-guides-viewer-aafc3073.js → snk-guides-viewer-bfcad2d6.js} +10 -43
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -9
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +40 -268
- 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 -305
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -136
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +0 -161
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +7 -134
- 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 +0 -62
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +219 -540
- 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 +6 -7
- package/dist/collection/components/snk-form-config/snk-form-config.js +1 -1
- 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 +20 -406
- 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/configs/ConfigStorage.js +0 -1
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +3 -7
- 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 +1 -2
- package/dist/components/ConfigStorage.js +0 -1
- package/dist/components/SnkFormConfigManager.js +6 -7
- 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 -110
- package/dist/components/snk-data-exporter2.js +85 -309
- package/dist/components/snk-data-unit2.js +217 -487
- package/dist/components/snk-detail-view2.js +14 -96
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-filter-bar2.js +11 -7
- package/dist/components/snk-form-config2.js +1 -1
- 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 +25 -263
- package/dist/components/snk-taskbar2.js +5 -6
- package/dist/esm/{ConfigStorage-e476378d.js → ConfigStorage-8c2ddac8.js} +0 -1
- package/dist/esm/{SnkFormConfigManager-298cd647.js → SnkFormConfigManager-c01b9d9d.js} +7 -8
- package/dist/esm/{SnkMessageBuilder-ae87b754.js → SnkMessageBuilder-72423074.js} +13 -9
- package/dist/esm/{IExporterProvider-d597f27d.js → SnkMultiSelectionListDataSource-a4805051.js} +5 -93
- package/dist/esm/{index-3aa4977a.js → index-0ece87a6.js} +1 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{dataunit-fetcher-3d2ec959.js → pesquisa-fetcher-34a8b8be.js} +181 -83
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +3 -5
- package/dist/esm/snk-application.entry.js +11 -34
- package/dist/esm/snk-attach.entry.js +41 -66
- package/dist/esm/snk-crud.entry.js +10 -101
- package/dist/esm/snk-data-exporter.entry.js +86 -316
- 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 -50
- package/dist/esm/snk-filter-bar.entry.js +12 -7
- package/dist/esm/snk-filter-modal-item.entry.js +1 -1
- package/dist/esm/snk-form-config.entry.js +1 -1
- package/dist/esm/snk-form-view.entry.js +0 -67
- package/dist/esm/snk-form.entry.js +7 -52
- package/dist/esm/snk-grid.entry.js +108 -165
- package/dist/esm/{snk-guides-viewer-62124f3d.js → snk-guides-viewer-edeac29f.js} +10 -43
- package/dist/esm/snk-guides-viewer.entry.js +7 -9
- package/dist/esm/snk-personalized-filter.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +28 -256
- 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-176c3491.entry.js +1 -0
- package/dist/sankhyablocks/p-37e5d563.js +65 -0
- package/dist/sankhyablocks/p-38289a55.js +1 -0
- package/dist/sankhyablocks/{p-9dfda04a.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-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-3287a6cc.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-bd008859.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-f03e4199.entry.js +1 -0
- 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 -45
- 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 -24
- 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 +3 -67
- 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-form-config/SnkFormConfigManager.d.ts +2 -2
- 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 -62
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components.d.ts +4 -261
- 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-a1d0353f.js +0 -166
- package/dist/cjs/snk-data-unit-f0221097.js +0 -690
- 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-a87445a0.js +0 -164
- package/dist/esm/snk-data-unit-1ef94aef.js +0 -688
- package/dist/sankhyablocks/p-091ce761.js +0 -60
- package/dist/sankhyablocks/p-0c68f40f.entry.js +0 -1
- package/dist/sankhyablocks/p-162b9a59.entry.js +0 -11
- package/dist/sankhyablocks/p-1db45d26.entry.js +0 -1
- package/dist/sankhyablocks/p-25f1fc39.js +0 -6
- package/dist/sankhyablocks/p-2e9c764c.entry.js +0 -1
- package/dist/sankhyablocks/p-30cf616e.js +0 -1
- package/dist/sankhyablocks/p-421bec84.entry.js +0 -1
- package/dist/sankhyablocks/p-42f7b05d.entry.js +0 -1
- package/dist/sankhyablocks/p-51999ab5.entry.js +0 -1
- package/dist/sankhyablocks/p-52a6a293.entry.js +0 -1
- package/dist/sankhyablocks/p-5f016aed.js +0 -1
- package/dist/sankhyablocks/p-62f34e6f.entry.js +0 -1
- package/dist/sankhyablocks/p-684a2590.entry.js +0 -1
- package/dist/sankhyablocks/p-70001ac1.js +0 -1
- package/dist/sankhyablocks/p-74c665d5.entry.js +0 -1
- package/dist/sankhyablocks/p-76a65660.js +0 -1
- package/dist/sankhyablocks/p-7c4aabe2.js +0 -1
- package/dist/sankhyablocks/p-8c1ff936.entry.js +0 -1
- package/dist/sankhyablocks/p-939e15d3.entry.js +0 -1
- package/dist/sankhyablocks/p-9863d682.js +0 -1
- package/dist/sankhyablocks/p-c273d6ee.js +0 -1
- package/dist/sankhyablocks/p-d65d98ed.entry.js +0 -1
- package/dist/sankhyablocks/p-f2809746.entry.js +0 -1
- 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,17 +1,16 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-a7d3d3f1.js';
|
|
2
2
|
import { Action, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
|
3
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-c01b9d9d.js';
|
|
4
4
|
import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
5
5
|
import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './field-search-efbe307f.js';
|
|
6
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
6
|
+
import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
|
|
7
7
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
|
8
8
|
import './DataFetcher-773a3e4b.js';
|
|
9
|
-
import './pesquisa-fetcher-
|
|
10
|
-
import { P as PresentationMode } from './index-
|
|
9
|
+
import './pesquisa-fetcher-34a8b8be.js';
|
|
10
|
+
import { P as PresentationMode } from './index-0ece87a6.js';
|
|
11
11
|
import './ISave-d8c8bc59.js';
|
|
12
12
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
13
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
14
|
-
import './dataunit-fetcher-3d2ec959.js';
|
|
15
14
|
import './filter-item-type.enum-d45e026f.js';
|
|
16
15
|
import './form-config-fetcher-e0382e5a.js';
|
|
17
16
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
@@ -41,16 +40,12 @@ const SnkGuidesViewer = class {
|
|
|
41
40
|
this.resourceID = undefined;
|
|
42
41
|
this.detailTaskbarCustomContainerId = undefined;
|
|
43
42
|
this.formLegacyConfigName = undefined;
|
|
44
|
-
this.getCustomTitle = undefined;
|
|
45
43
|
this._hasToCreateFieldSearch = true;
|
|
46
44
|
this._breadcrumbItems = [];
|
|
47
45
|
this._guides = undefined;
|
|
48
46
|
this._formEditorConfigManager = undefined;
|
|
49
47
|
this._formEditorDataUnit = undefined;
|
|
50
48
|
this._fieldToGetFocus = undefined;
|
|
51
|
-
this._customEditors = undefined;
|
|
52
|
-
this._customRenders = undefined;
|
|
53
|
-
this._fieldsProps = {};
|
|
54
49
|
}
|
|
55
50
|
observeDataUnit() {
|
|
56
51
|
this.loadGuides(true);
|
|
@@ -81,28 +76,6 @@ const SnkGuidesViewer = class {
|
|
|
81
76
|
async findField() {
|
|
82
77
|
await openFieldSearch(this._moreOptions, this._fieldSearch);
|
|
83
78
|
}
|
|
84
|
-
/**
|
|
85
|
-
* Registra um editor customizado para campos da grade e formulário
|
|
86
|
-
*/
|
|
87
|
-
async addCustomEditor(fieldName, customEditor) {
|
|
88
|
-
this._customEditors = Object.assign(Object.assign({}, this._customEditors), { [fieldName]: customEditor });
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Registra um render customizado para colunas da grid.
|
|
92
|
-
*/
|
|
93
|
-
async addGridCustomRender(fieldName, customRender) {
|
|
94
|
-
this._customRenders = Object.assign(Object.assign({}, this._customRenders), { [fieldName]: customRender });
|
|
95
|
-
}
|
|
96
|
-
;
|
|
97
|
-
/**
|
|
98
|
-
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
99
|
-
*/
|
|
100
|
-
async setFieldProp(fieldName, propName, value) {
|
|
101
|
-
const newFieldsProps = {
|
|
102
|
-
[fieldName]: Object.assign(Object.assign({}, this._fieldsProps[fieldName]), { [propName]: value })
|
|
103
|
-
};
|
|
104
|
-
this._fieldsProps = Object.assign(Object.assign({}, this._fieldsProps), newFieldsProps);
|
|
105
|
-
}
|
|
106
79
|
/**
|
|
107
80
|
* Atribui o foco para o componente.
|
|
108
81
|
*/
|
|
@@ -128,7 +101,7 @@ const SnkGuidesViewer = class {
|
|
|
128
101
|
}
|
|
129
102
|
onContentCardChanged(evt) {
|
|
130
103
|
SnkGuidesViewer.updateContentCard(evt.detail.formName, evt.detail.cardConfig, evt.detail.propertyChanged, this._configManager)
|
|
131
|
-
.then(() => this.masterFormConfig = this._configManager.getConfig(this.dataUnit));
|
|
104
|
+
.then(() => this.masterFormConfig = this._configManager.getConfig(this.dataState.insertionMode, this.dataUnit));
|
|
132
105
|
}
|
|
133
106
|
/**
|
|
134
107
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
@@ -251,7 +224,7 @@ const SnkGuidesViewer = class {
|
|
|
251
224
|
if (sheet == undefined) {
|
|
252
225
|
return;
|
|
253
226
|
}
|
|
254
|
-
return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); }
|
|
227
|
+
return h("snk-form-view", { levelPath: params.levelPath, label: sheet.label, name: formName, fields: sheet.fields, formMetadata: params.formMetadata, dataUnit: params.dataUnit, recordsValidator: params.recordsValidator, contracted: (cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.presentation) === "CONTRACTED", fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_b = (_a = params.formConfig) === null || _a === void 0 ? void 0 : _a.summary) === null || _b === void 0 ? void 0 : _b.get(formName), fieldToFocus: params.fieldToFocus, key: formName, onSnkRequestClearFieldToFocus: _ => { var _a; return (_a = params.onRequestClearFieldToFocus) === null || _a === void 0 ? void 0 : _a.call(params); } });
|
|
255
228
|
})));
|
|
256
229
|
}
|
|
257
230
|
wrapDetail(levels, content) {
|
|
@@ -293,14 +266,14 @@ const SnkGuidesViewer = class {
|
|
|
293
266
|
else {
|
|
294
267
|
detailBranch = this.selectedGuide;
|
|
295
268
|
}
|
|
296
|
-
content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId
|
|
269
|
+
content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId }));
|
|
297
270
|
}
|
|
298
271
|
else {
|
|
299
272
|
const cardId = this.selectedGuide.id;
|
|
300
273
|
const sheet = this._masterFormMetadata.getSheet(cardId);
|
|
301
274
|
if (sheet) {
|
|
302
275
|
const cardConfig = (_c = (_b = this.masterFormConfig) === null || _b === void 0 ? void 0 : _b.cardsState) === null || _c === void 0 ? void 0 : _c.get(cardId);
|
|
303
|
-
content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler()
|
|
276
|
+
content = h("snk-form-view", { ref: ref => this._mainForm = ref, fixed: cardConfig === null || cardConfig === void 0 ? void 0 : cardConfig.fixed, summaryFields: (_e = (_d = this.masterFormConfig) === null || _d === void 0 ? void 0 : _d.summary) === null || _e === void 0 ? void 0 : _e.get(cardId), name: cardId, label: sheet.label, fields: sheet.fields, dataUnit: this.dataUnit, formMetadata: this._masterFormMetadata, recordsValidator: this.recordsValidator, fieldToFocus: this._fieldToGetFocus, key: guideId, onSnkRequestClearFieldToFocus: _ => this.clearFieldToFocusHandler() }, this.presentationMode == PresentationMode.SECONDARY && this.buildTaskBar());
|
|
304
277
|
}
|
|
305
278
|
}
|
|
306
279
|
return content;
|
|
@@ -479,10 +452,6 @@ const SnkGuidesViewer = class {
|
|
|
479
452
|
}
|
|
480
453
|
return "";
|
|
481
454
|
}
|
|
482
|
-
getTitle() {
|
|
483
|
-
var _a, _b;
|
|
484
|
-
return (_b = (_a = this.getCustomTitle) === null || _a === void 0 ? void 0 : _a.call(this)) !== null && _b !== void 0 ? _b : this.getMessage("snkCrud.title");
|
|
485
|
-
}
|
|
486
455
|
componentDidLoad() {
|
|
487
456
|
this.dataUnit.subscribe(this.dataUnitActionHandler.bind(this));
|
|
488
457
|
}
|
|
@@ -496,7 +465,7 @@ const SnkGuidesViewer = class {
|
|
|
496
465
|
}
|
|
497
466
|
this.loadTaskbarProcessor();
|
|
498
467
|
const showGuides = this._guides && (this._guides.length > 1);
|
|
499
|
-
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabindex: -1 }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.
|
|
468
|
+
return (h("section", { class: "snk-guides-viewer", ref: ref => this._container = ref, tabindex: -1 }, h("div", { class: "ez-row snk-guides-viewer__header" }, h("div", { class: "snk-guides-viewer__header-breadcrumb ez-flex--align-items-center ez-flex-item--align-center ez-padding-left--large", key: "header" }, h("ez-button", { onClick: () => this.exitViewer(), title: this.getMessage("snkCrud.goBackTitle"), mode: "icon", iconName: "arrow_back", class: "ez-padding-right--medium", size: "small" }), h("div", { class: "ez-flex ez-flex--column ez-flex-item--auto" }, h("h1", { class: "ez-title ez-title--primary ez-title--xlarge" }, this.getMessage("snkCrud.title")), ((_a = this._breadcrumbItems) === null || _a === void 0 ? void 0 : _a.length) > 1 &&
|
|
500
469
|
h("div", { class: "ez-margin-top--extra-small" }, h("ez-breadcrumb", Object.assign({ items: this._breadcrumbItems, onSelectedItem: (evt) => this.onBreadcrumbClickHandler(evt === null || evt === void 0 ? void 0 : evt.detail) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: `${ElementIDUtils.getInternalIDInfo("breadcrumb")}` }))))), this.presentationMode != PresentationMode.SECONDARY && this.buildTaskBar()), h("div", { class: "snk-guides-viewer__container" }, showGuides ?
|
|
501
470
|
h("ez-guide-navigator", { ref: (ref) => this._guideNavigator = ref, class: "snk-guides-viewer__guide-navigator", items: this._guides, selectedId: this.selectedGuide ? this.selectedGuide.id : undefined, onEzSelectionChange: evt => this.updateSelectedGuideHandler(evt.detail) })
|
|
502
471
|
:
|
|
@@ -507,9 +476,7 @@ const SnkGuidesViewer = class {
|
|
|
507
476
|
dataUnit: this.dataUnit,
|
|
508
477
|
recordsValidator: this.recordsValidator,
|
|
509
478
|
fieldToFocus: this._fieldToGetFocus,
|
|
510
|
-
onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this)
|
|
511
|
-
propsCustomEditor: this._customEditors,
|
|
512
|
-
fieldsProps: this._fieldsProps
|
|
479
|
+
onRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this)
|
|
513
480
|
}), this.getContent())), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this.getConfigViewMode(), onConfigSelected: (evt) => this.changeConfigViewMode(evt.detail), messagesBuilder: this.messagesBuilder, onOpenConfig: (evt) => this.openConfig(evt.detail), resourceID: this.resourceID })));
|
|
514
481
|
}
|
|
515
482
|
static get watchers() { return {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { S as snk_guides_viewer } from './snk-guides-viewer-
|
|
1
|
+
export { S as snk_guides_viewer } from './snk-guides-viewer-edeac29f.js';
|
|
2
2
|
import './index-a7d3d3f1.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
|
-
import './SnkFormConfigManager-
|
|
5
|
-
import './ConfigStorage-
|
|
4
|
+
import './SnkFormConfigManager-c01b9d9d.js';
|
|
5
|
+
import './ConfigStorage-8c2ddac8.js';
|
|
6
6
|
import './form-config-fetcher-e0382e5a.js';
|
|
7
7
|
import './DataFetcher-773a3e4b.js';
|
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
|
@@ -10,15 +10,13 @@ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/utils/form';
|
|
12
12
|
import './field-search-efbe307f.js';
|
|
13
|
-
import './taskbar-elements-
|
|
14
|
-
import './index-
|
|
13
|
+
import './taskbar-elements-2473c8ac.js';
|
|
14
|
+
import './index-0ece87a6.js';
|
|
15
15
|
import './index-bdf75557.js';
|
|
16
16
|
import './constants-8457af36.js';
|
|
17
|
-
import './pesquisa-fetcher-
|
|
18
|
-
import './ISave-d8c8bc59.js';
|
|
17
|
+
import './pesquisa-fetcher-34a8b8be.js';
|
|
19
18
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
20
|
-
import './dataunit-fetcher-3d2ec959.js';
|
|
21
19
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
22
|
-
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
23
20
|
import './ResourceIDUtils-a114189a.js';
|
|
21
|
+
import './ISave-d8c8bc59.js';
|
|
24
22
|
import '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-a7d3d3f1.js';
|
|
2
2
|
import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-e2b38ef7.js';
|
|
4
|
-
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-
|
|
4
|
+
import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-8c2ddac8.js';
|
|
5
5
|
import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
6
6
|
import { a as FilterGroupCondition } from './index-ae591a44.js';
|
|
7
7
|
import { s as store } from './index-bdf75557.js';
|
|
@@ -1,87 +1,29 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
|
|
2
|
-
import {
|
|
2
|
+
import { StringUtils, ApplicationContext, ObjectUtils, DataType, UserInterface, JSUtils, FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { d as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-8457af36.js';
|
|
5
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
5
|
+
import { T as TaskbarElement } from './taskbar-elements-2473c8ac.js';
|
|
6
6
|
import './DataFetcher-773a3e4b.js';
|
|
7
|
-
import './pesquisa-fetcher-
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
7
|
+
import { I as InMemoryLoader } from './pesquisa-fetcher-34a8b8be.js';
|
|
8
|
+
import { S as SnkMultiSelectionListDataSource, C as CrudUtils } from './SnkMultiSelectionListDataSource-a4805051.js';
|
|
9
|
+
import { P as PresentationMode } from './index-0ece87a6.js';
|
|
10
10
|
import './ISave-d8c8bc59.js';
|
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
12
12
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
13
|
-
import { I as InMemoryLoader } from './dataunit-fetcher-3d2ec959.js';
|
|
14
13
|
import './filter-item-type.enum-d45e026f.js';
|
|
15
14
|
import { F as FormConfigFetcher } from './form-config-fetcher-e0382e5a.js';
|
|
16
15
|
import { T as TaskbarProcessor, b as buildFieldSearch, o as openFieldSearch } from './field-search-efbe307f.js';
|
|
17
|
-
import { C as ConfigStorage } from './ConfigStorage-
|
|
18
|
-
import { S as SnkFormConfigManager } from './SnkFormConfigManager-
|
|
19
|
-
import
|
|
20
|
-
import { s as store } from './index-bdf75557.js';
|
|
16
|
+
import { C as ConfigStorage } from './ConfigStorage-8c2ddac8.js';
|
|
17
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager-c01b9d9d.js';
|
|
18
|
+
import './index-bdf75557.js';
|
|
21
19
|
import './PrintUtils-3e4ff0f5.js';
|
|
22
|
-
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|
|
23
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
24
|
-
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
25
21
|
import './ResourceIDUtils-a114189a.js';
|
|
22
|
+
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|
|
26
23
|
|
|
27
24
|
const REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "MORE_OPTIONS"];
|
|
28
25
|
const REGULAR_SELECTED_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "DIVIDER", "MORE_OPTIONS"];
|
|
29
26
|
|
|
30
|
-
class ClientSideExporterProvider extends CommonsExporter {
|
|
31
|
-
getSelectedNumber() {
|
|
32
|
-
return this.dataUnit.getSelectionInfo().length;
|
|
33
|
-
}
|
|
34
|
-
getTotalRecords() {
|
|
35
|
-
var _a, _b, _c;
|
|
36
|
-
const { total } = ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo()) || {};
|
|
37
|
-
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;
|
|
38
|
-
}
|
|
39
|
-
getSelectedIDs() {
|
|
40
|
-
return getSelectedIDs(this.dataUnit);
|
|
41
|
-
}
|
|
42
|
-
getRecordID() {
|
|
43
|
-
var _a, _b, _c;
|
|
44
|
-
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__;
|
|
45
|
-
}
|
|
46
|
-
async getRecords() {
|
|
47
|
-
if (this.dataUnit.records.length === 0) {
|
|
48
|
-
return Promise.resolve([]);
|
|
49
|
-
}
|
|
50
|
-
const selectionInfo = this.dataUnit.getSelectionInfo();
|
|
51
|
-
const records = selectionInfo.isEmpty() || selectionInfo.isAllRecords() ? await selectionInfo.getAllRecords() : selectionInfo.records;
|
|
52
|
-
return Promise.resolve(records == undefined ? [] : records);
|
|
53
|
-
}
|
|
54
|
-
getHiddenOptions() {
|
|
55
|
-
return [
|
|
56
|
-
DataExporterOption.EXPORT_BY_EMAIL,
|
|
57
|
-
DataExporterOption.EXPORT_PDF_TO_EMAIL,
|
|
58
|
-
DataExporterOption.EXPORT_XLS_TO_EMAIL,
|
|
59
|
-
DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
60
|
-
DataExporterOption.EXPORT_PAGE_TO_XLS
|
|
61
|
-
];
|
|
62
|
-
}
|
|
63
|
-
formatValue(record, column) {
|
|
64
|
-
const { id, descriptionFrom } = column;
|
|
65
|
-
const value = record[descriptionFrom || id];
|
|
66
|
-
if (value == undefined) {
|
|
67
|
-
return "";
|
|
68
|
-
}
|
|
69
|
-
if (descriptionFrom != undefined) {
|
|
70
|
-
return value.label;
|
|
71
|
-
}
|
|
72
|
-
const fieldDescriptor = this.dataUnit.getField(id);
|
|
73
|
-
if (fieldDescriptor.userInterface === UserInterface.SEARCH) {
|
|
74
|
-
return value.value;
|
|
75
|
-
}
|
|
76
|
-
if (column.customFormatter) {
|
|
77
|
-
const ezGridColumn = this.getColumnsState().find(columnState => column.id === columnState.name);
|
|
78
|
-
const formattedValue = column.customFormatter.format(value, ezGridColumn, record.__record__id__);
|
|
79
|
-
return formattedValue;
|
|
80
|
-
}
|
|
81
|
-
return this.dataUnit.getFormattedValue(id, value);
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
27
|
const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%;--snk-simple-crud-grid--min-height:300px}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:auto 1fr;row-gap:12px;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}.simple-crud__form--hidden.sc-snk-simple-crud{display:none}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;--ez-grid--min-height:var(--snk-simple-crud-grid--min-height)}ez-form.sc-snk-simple-crud{min-height:300px}";
|
|
86
28
|
|
|
87
29
|
const SnkSimpleCrud = class {
|
|
@@ -96,13 +38,11 @@ const SnkSimpleCrud = class {
|
|
|
96
38
|
this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
|
|
97
39
|
this._keyDownHandler = (event) => this.keyDownListener(event);
|
|
98
40
|
this._formConfigFetcher = new FormConfigFetcher();
|
|
99
|
-
this._customEditors = new Map();
|
|
100
|
-
this._customRenders = new Map();
|
|
101
41
|
this._taskbarProcessor = new TaskbarProcessor({
|
|
102
|
-
"snkSimpleCrudTaskbar.form_regular": this.getButtons(false,
|
|
103
|
-
"snkSimpleCrudTaskbar.grid_regular": this.getButtons(false,
|
|
104
|
-
"snkSimpleCrudTaskbar.form_selected": this.getButtons(true,
|
|
105
|
-
"snkSimpleCrudTaskbar.grid_selected": this.getButtons(true,
|
|
42
|
+
"snkSimpleCrudTaskbar.form_regular": this.getButtons(false, TaskbarElement.GRID_MODE),
|
|
43
|
+
"snkSimpleCrudTaskbar.grid_regular": this.getButtons(false, TaskbarElement.FORM_MODE),
|
|
44
|
+
"snkSimpleCrudTaskbar.form_selected": this.getButtons(true, TaskbarElement.GRID_MODE),
|
|
45
|
+
"snkSimpleCrudTaskbar.grid_selected": this.getButtons(true, TaskbarElement.FORM_MODE),
|
|
106
46
|
"snkSimpleCrudTaskbar.finish_edition": ["CANCEL", "SAVE"]
|
|
107
47
|
});
|
|
108
48
|
this._showPopUpGridConfig = false;
|
|
@@ -113,15 +53,12 @@ const SnkSimpleCrud = class {
|
|
|
113
53
|
this._customContainerId = `SNK-SIMPLE-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
|
114
54
|
this.dataState = undefined;
|
|
115
55
|
this.dataUnit = undefined;
|
|
116
|
-
this.entityName = undefined;
|
|
117
56
|
this.mode = SIMPLE_CRUD_MODE.SERVER;
|
|
118
57
|
this.gridConfig = undefined;
|
|
119
58
|
this.formConfig = undefined;
|
|
120
59
|
this._formFields = [];
|
|
121
|
-
this._fieldsProps = new Map();
|
|
122
60
|
this.multipleSelection = undefined;
|
|
123
61
|
this.useCancelConfirm = true;
|
|
124
|
-
this.pageSize = 150;
|
|
125
62
|
this.resourceID = undefined;
|
|
126
63
|
this.taskbarManager = undefined;
|
|
127
64
|
this.messagesBuilder = undefined;
|
|
@@ -132,34 +69,6 @@ const SnkSimpleCrud = class {
|
|
|
132
69
|
this.gridLegacyConfigName = undefined;
|
|
133
70
|
this.formLegacyConfigName = undefined;
|
|
134
71
|
this.ignoreReadOnlyFormFields = false;
|
|
135
|
-
this.autoFocus = true;
|
|
136
|
-
this.domainMessagesBuilder = undefined;
|
|
137
|
-
this.autoLoad = undefined;
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* Registra um editor customizado para campos da grade e formulário.
|
|
141
|
-
*/
|
|
142
|
-
async addCustomEditor(fieldName, customEditor) {
|
|
143
|
-
if (this._grid && this._form) {
|
|
144
|
-
this._grid.addCustomEditor(fieldName, customEditor);
|
|
145
|
-
this._form.addCustomEditor(fieldName, customEditor);
|
|
146
|
-
return;
|
|
147
|
-
}
|
|
148
|
-
const newCustomEditors = new Map(this._customEditors);
|
|
149
|
-
newCustomEditors.set(fieldName, customEditor);
|
|
150
|
-
this._customEditors = newCustomEditors;
|
|
151
|
-
}
|
|
152
|
-
/**
|
|
153
|
-
* Registra um render customizado para colunas da grid.
|
|
154
|
-
*/
|
|
155
|
-
async addGridCustomRender(fieldName, customRender) {
|
|
156
|
-
if (this._grid) {
|
|
157
|
-
this._grid.addGridCustomRender(fieldName, customRender);
|
|
158
|
-
return;
|
|
159
|
-
}
|
|
160
|
-
const newCustomRenders = new Map(this._customRenders);
|
|
161
|
-
newCustomRenders.set(fieldName, customRender);
|
|
162
|
-
this._customRenders = newCustomRenders;
|
|
163
72
|
}
|
|
164
73
|
handleResourceIDChanged(newValue, oldValue) {
|
|
165
74
|
if (StringUtils.isEmpty(newValue)) {
|
|
@@ -171,30 +80,9 @@ const SnkSimpleCrud = class {
|
|
|
171
80
|
this.loadFormConfig(true);
|
|
172
81
|
this.loadGridConfig(true);
|
|
173
82
|
}
|
|
174
|
-
|
|
175
|
-
* Registra um formatador de valores para uma coluna da grid.
|
|
176
|
-
*/
|
|
177
|
-
async addCustomValueFormatter(columnName, customFormatter) {
|
|
178
|
-
this._grid.addCustomValueFormatter(columnName, customFormatter);
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Remove o formatador de valores de uma coluna da grid.
|
|
182
|
-
*/
|
|
183
|
-
async removeCustomValueFormatter(columnName) {
|
|
184
|
-
this._grid.removeCustomValueFormatter(columnName);
|
|
185
|
-
}
|
|
186
|
-
/**
|
|
187
|
-
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
188
|
-
*/
|
|
189
|
-
async setFieldProp(fieldName, propName, value) {
|
|
190
|
-
const newCustomFieldProps = new Map(this._fieldsProps);
|
|
191
|
-
const currentProps = this._fieldsProps.get(fieldName);
|
|
192
|
-
newCustomFieldProps.set(fieldName, Object.assign(Object.assign({}, currentProps), { [propName]: value }));
|
|
193
|
-
this._fieldsProps = newCustomFieldProps;
|
|
194
|
-
}
|
|
195
|
-
getButtons(selected, extraButtons) {
|
|
83
|
+
getButtons(selected, changeModeBtn) {
|
|
196
84
|
return this.addConfigButton(this.resolveInMemoryBtns(selected ? REGULAR_SELECTED_BTNS : REGULAR_DEFAULT_BTNS)
|
|
197
|
-
.concat(
|
|
85
|
+
.concat(changeModeBtn));
|
|
198
86
|
}
|
|
199
87
|
addConfigButton(buttons) {
|
|
200
88
|
if (this.configName === undefined) {
|
|
@@ -234,19 +122,15 @@ const SnkSimpleCrud = class {
|
|
|
234
122
|
}
|
|
235
123
|
evt.stopPropagation();
|
|
236
124
|
}
|
|
237
|
-
async onChangeEntityName(newValue) {
|
|
238
|
-
if (this.dataUnit)
|
|
239
|
-
return;
|
|
240
|
-
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
241
|
-
this.dataUnit = await application.getDataUnit(newValue, null, null, this.configName);
|
|
242
|
-
}
|
|
243
125
|
onModeChange() {
|
|
244
126
|
if (this.mode == SIMPLE_CRUD_MODE.IN_MEMORY) {
|
|
245
127
|
this.initInMemoryDataUnit();
|
|
246
128
|
}
|
|
247
129
|
}
|
|
248
130
|
observeDataState(newValue, oldValue) {
|
|
249
|
-
|
|
131
|
+
if (ObjectUtils.objectToString(oldValue) != ObjectUtils.objectToString(newValue)) {
|
|
132
|
+
this.dataStateChange.emit(newValue);
|
|
133
|
+
}
|
|
250
134
|
}
|
|
251
135
|
async observeFormLegacy(newValue, oldValue) {
|
|
252
136
|
await this.handleUpdateFormLegacyConfig(newValue, oldValue);
|
|
@@ -254,28 +138,6 @@ const SnkSimpleCrud = class {
|
|
|
254
138
|
async observeGridLegacy(newValue, oldValue) {
|
|
255
139
|
await this.handleUpdateGridLegacyConfig(newValue, oldValue);
|
|
256
140
|
}
|
|
257
|
-
async handleDataStateChange(newValue, oldValue) {
|
|
258
|
-
if (ObjectUtils.objectToString(oldValue) != ObjectUtils.objectToString(newValue)) {
|
|
259
|
-
this.dataStateChange.emit(newValue);
|
|
260
|
-
}
|
|
261
|
-
await this.processRmPrecision();
|
|
262
|
-
}
|
|
263
|
-
async processRmPrecision() {
|
|
264
|
-
var _a, _b;
|
|
265
|
-
const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
|
|
266
|
-
for (const field of fieldsWithRmPrecision || []) {
|
|
267
|
-
if (!field) {
|
|
268
|
-
continue;
|
|
269
|
-
}
|
|
270
|
-
const rmPrecision = (_b = (_a = this.dataState) === null || _a === void 0 ? void 0 : _a.rowMetadata) === null || _b === void 0 ? void 0 : _b.getProp('rm_precision', field);
|
|
271
|
-
if (!rmPrecision && rmPrecision !== 0) {
|
|
272
|
-
continue;
|
|
273
|
-
}
|
|
274
|
-
await this.setFieldProp(field, 'precision', rmPrecision);
|
|
275
|
-
await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
|
|
276
|
-
}
|
|
277
|
-
this._rmPrecisionCustomValueFormatter.setDataState(this.dataState);
|
|
278
|
-
}
|
|
279
141
|
async handleUpdateGridLegacyConfig(newValue, oldValue) {
|
|
280
142
|
if (newValue == undefined || newValue == oldValue) {
|
|
281
143
|
return;
|
|
@@ -372,7 +234,6 @@ const SnkSimpleCrud = class {
|
|
|
372
234
|
}
|
|
373
235
|
async componentWillRender() {
|
|
374
236
|
this._resourceID = await this.application.getResourceID();
|
|
375
|
-
this.dataExporterProviderStore();
|
|
376
237
|
this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.getTaskBarDisabledButtons());
|
|
377
238
|
if (this.configName === undefined) {
|
|
378
239
|
return;
|
|
@@ -384,70 +245,32 @@ const SnkSimpleCrud = class {
|
|
|
384
245
|
this.loadGridConfig();
|
|
385
246
|
this.loadFormConfig();
|
|
386
247
|
}
|
|
387
|
-
componentDidRender() {
|
|
388
|
-
this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
|
|
389
|
-
this.addGridCustomValueFormattters();
|
|
390
|
-
this.setFieldsProps();
|
|
391
|
-
this.setCustomRenders();
|
|
392
|
-
this.setCustomEditors();
|
|
393
|
-
}
|
|
394
248
|
componentWillLoad() {
|
|
395
249
|
this.processMetadata();
|
|
396
250
|
this.onModeChange();
|
|
397
251
|
this.configDatasource();
|
|
398
|
-
this._rmPrecisionCustomValueFormatter = new RmPrecisionCustomValueFormatter();
|
|
399
252
|
}
|
|
400
253
|
componentDidLoad() {
|
|
401
254
|
CSSVarsUtils.applyVarsGrid(this._element, this._grid);
|
|
402
255
|
}
|
|
403
|
-
setCustomRenders() {
|
|
404
|
-
if (!this._grid) {
|
|
405
|
-
return;
|
|
406
|
-
}
|
|
407
|
-
for (const [fieldName, customRender] of this._customRenders) {
|
|
408
|
-
this._grid.addGridCustomRender(fieldName, customRender);
|
|
409
|
-
this._customRenders.delete(fieldName);
|
|
410
|
-
}
|
|
411
|
-
}
|
|
412
|
-
setCustomEditors() {
|
|
413
|
-
if (!this._grid || !this._form) {
|
|
414
|
-
return;
|
|
415
|
-
}
|
|
416
|
-
for (const [fieldName, customEditor] of this._customEditors) {
|
|
417
|
-
this._grid.addCustomEditor(fieldName, customEditor);
|
|
418
|
-
this._form.addCustomEditor(fieldName, customEditor);
|
|
419
|
-
this._customEditors.delete(fieldName);
|
|
420
|
-
}
|
|
421
|
-
}
|
|
422
256
|
configDatasource() {
|
|
423
257
|
this._multiSelectionListDataSource.setApplication(this.application);
|
|
424
258
|
this._multiSelectionListDataSource.setDataUnit(this.dataUnit);
|
|
425
259
|
}
|
|
426
|
-
setFieldsProps() {
|
|
427
|
-
if (!this._form) {
|
|
428
|
-
return;
|
|
429
|
-
}
|
|
430
|
-
for (const [fieldName, props] of this._fieldsProps) {
|
|
431
|
-
for (const prop in props) {
|
|
432
|
-
this._form.setFieldProp(fieldName, prop, props[prop]);
|
|
433
|
-
}
|
|
434
|
-
this._fieldsProps.delete(fieldName);
|
|
435
|
-
}
|
|
436
|
-
}
|
|
437
260
|
getTaskBarId() {
|
|
438
|
-
var _a, _b;
|
|
261
|
+
var _a, _b, _c;
|
|
439
262
|
if ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
|
|
440
263
|
return "snkSimpleCrudTaskbar.finish_edition";
|
|
441
264
|
}
|
|
442
265
|
if (((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.selectionInfo) &&
|
|
443
266
|
!this.dataState.selectionInfo.isAllRecords() &&
|
|
444
|
-
this.dataState.selectionInfo.length > 0) {
|
|
267
|
+
((_c = this.dataState.selectionInfo.records) === null || _c === void 0 ? void 0 : _c.length) > 0) {
|
|
445
268
|
return this._currentViewMode === VIEW_MODE.GRID ? "snkSimpleCrudTaskbar.grid_selected" : "snkSimpleCrudTaskbar.form_selected";
|
|
446
269
|
}
|
|
447
270
|
return this._currentViewMode === VIEW_MODE.GRID ? "snkSimpleCrudTaskbar.grid_regular" : "snkSimpleCrudTaskbar.form_regular";
|
|
448
271
|
}
|
|
449
272
|
initInMemoryDataUnit() {
|
|
450
|
-
this._inMemoryLoader = new InMemoryLoader(this._metadata
|
|
273
|
+
this._inMemoryLoader = new InMemoryLoader(this._metadata);
|
|
451
274
|
this.dataUnit = this._inMemoryLoader.dataUnit;
|
|
452
275
|
this.dataUnitReady.emit(this.dataUnit);
|
|
453
276
|
}
|
|
@@ -486,11 +309,12 @@ const SnkSimpleCrud = class {
|
|
|
486
309
|
var _a;
|
|
487
310
|
(_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.close();
|
|
488
311
|
}
|
|
489
|
-
|
|
312
|
+
updateConfig() {
|
|
490
313
|
if (this._formConfigManager == undefined) {
|
|
491
314
|
this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
|
|
492
315
|
}
|
|
493
316
|
this._formConfigManager.setConfig(this.formConfig);
|
|
317
|
+
return;
|
|
494
318
|
}
|
|
495
319
|
processMetadata() {
|
|
496
320
|
const fieldsMetadataElem = this._element.querySelectorAll("snk-field-metadata");
|
|
@@ -522,28 +346,11 @@ const SnkSimpleCrud = class {
|
|
|
522
346
|
};
|
|
523
347
|
}
|
|
524
348
|
}
|
|
525
|
-
addGridCustomValueFormattters() {
|
|
526
|
-
var _a, _b, _c;
|
|
527
|
-
const metadataFields = ((_a = this._metadata) === null || _a === void 0 ? void 0 : _a.fields) || ((_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.metadata) === null || _c === void 0 ? void 0 : _c.fields);
|
|
528
|
-
if (!metadataFields) {
|
|
529
|
-
return;
|
|
530
|
-
}
|
|
531
|
-
const fieldsWithRmPrecision = [];
|
|
532
|
-
metadataFields.forEach((field) => {
|
|
533
|
-
var _a;
|
|
534
|
-
if (((_a = field.properties) === null || _a === void 0 ? void 0 : _a.rm_precision) && !fieldsWithRmPrecision.includes(field.name)) {
|
|
535
|
-
fieldsWithRmPrecision.push(field.name);
|
|
536
|
-
}
|
|
537
|
-
});
|
|
538
|
-
fieldsWithRmPrecision.forEach(field => {
|
|
539
|
-
this.addCustomValueFormatter(field, this._rmPrecisionCustomValueFormatter);
|
|
540
|
-
});
|
|
541
|
-
}
|
|
542
349
|
onDataStateChange(evt) {
|
|
543
350
|
this.dataState = Object.assign({}, evt.detail);
|
|
544
351
|
}
|
|
545
352
|
getTaskBarDisabledButtons() {
|
|
546
|
-
var _a, _b, _c, _d
|
|
353
|
+
var _a, _b, _c, _d;
|
|
547
354
|
const disabledButtons = [];
|
|
548
355
|
if (!((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.hasNext)) {
|
|
549
356
|
disabledButtons.push(TaskbarElement.NEXT);
|
|
@@ -554,9 +361,6 @@ const SnkSimpleCrud = class {
|
|
|
554
361
|
if ((_d = (_c = this.dataState) === null || _c === void 0 ? void 0 : _c.selectionInfo) === null || _d === void 0 ? void 0 : _d.isEmpty()) {
|
|
555
362
|
disabledButtons.push(TaskbarElement.FORM_MODE);
|
|
556
363
|
}
|
|
557
|
-
if (((_f = (_e = this.dataState) === null || _e === void 0 ? void 0 : _e.selectionInfo) === null || _f === void 0 ? void 0 : _f.length) > 1) {
|
|
558
|
-
disabledButtons.push(TaskbarElement.CLONE);
|
|
559
|
-
}
|
|
560
364
|
return disabledButtons;
|
|
561
365
|
}
|
|
562
366
|
handleCancelEdit() {
|
|
@@ -700,23 +504,9 @@ const SnkSimpleCrud = class {
|
|
|
700
504
|
.then(() => {
|
|
701
505
|
this.setGridConfig(config);
|
|
702
506
|
this.closeGridConfig();
|
|
703
|
-
this.dataExporterProviderStore();
|
|
704
507
|
});
|
|
705
508
|
evt.stopPropagation();
|
|
706
509
|
}
|
|
707
|
-
async dataExporterProviderStore() {
|
|
708
|
-
if (this.dataUnit == undefined) {
|
|
709
|
-
return;
|
|
710
|
-
}
|
|
711
|
-
if (this._grid == undefined) {
|
|
712
|
-
return;
|
|
713
|
-
}
|
|
714
|
-
const dataExporterProvider = new ClientSideExporterProvider(this.dataUnit, this._grid);
|
|
715
|
-
store.set("exporterProviders", Object.assign(Object.assign({}, store.get("exporterProviders")), { [this.getDataExporterStoreKey()]: dataExporterProvider }));
|
|
716
|
-
}
|
|
717
|
-
getDataExporterStoreKey() {
|
|
718
|
-
return `SnkSimpleCrudDataExporter:${this.configName == undefined ? this.dataUnit.name : this.configName}`;
|
|
719
|
-
}
|
|
720
510
|
setGridConfig(config) {
|
|
721
511
|
this.gridConfig = config;
|
|
722
512
|
CrudUtils.assertDefaultSorting(this.gridConfig, this.dataUnit);
|
|
@@ -732,15 +522,6 @@ const SnkSimpleCrud = class {
|
|
|
732
522
|
closeFormConfig() {
|
|
733
523
|
this._showFormConfig = false;
|
|
734
524
|
}
|
|
735
|
-
getPageSize() {
|
|
736
|
-
if (this.mode === SIMPLE_CRUD_MODE.IN_MEMORY) {
|
|
737
|
-
return 0;
|
|
738
|
-
}
|
|
739
|
-
if (this.pageSize == undefined) {
|
|
740
|
-
return 150;
|
|
741
|
-
}
|
|
742
|
-
return this.pageSize;
|
|
743
|
-
}
|
|
744
525
|
//No momento não daremos suporte para configuração de formulário quando houver formLegacyConfigName
|
|
745
526
|
handleShowFormConfig() {
|
|
746
527
|
return this._showFormConfig && !this.formLegacyConfigName;
|
|
@@ -749,35 +530,26 @@ const SnkSimpleCrud = class {
|
|
|
749
530
|
return StringUtils.isEmpty(this.resourceID) ? this._resourceID : this.resourceID;
|
|
750
531
|
}
|
|
751
532
|
getFormConfig() {
|
|
752
|
-
var _a;
|
|
753
|
-
const configFromManager = (_a = this._formConfigManager) === null || _a === void 0 ? void 0 : _a.getConfig(this.dataUnit, this.ignoreReadOnlyFormFields);
|
|
533
|
+
var _a, _b;
|
|
534
|
+
const configFromManager = (_a = this._formConfigManager) === null || _a === void 0 ? void 0 : _a.getConfig((_b = this.dataState) === null || _b === void 0 ? void 0 : _b.insertionMode, this.dataUnit, this.ignoreReadOnlyFormFields);
|
|
754
535
|
if (!this.configName && !configFromManager) {
|
|
755
536
|
return this.formConfig;
|
|
756
537
|
}
|
|
757
538
|
return configFromManager;
|
|
758
539
|
}
|
|
759
|
-
updateFormConfig() {
|
|
760
|
-
const newConfig = Object.assign(Object.assign({}, this.formConfig), { fields: this.dataUnit.metadata.fields });
|
|
761
|
-
this.setFormConfig(newConfig, true);
|
|
762
|
-
if (this._formConfigManager == undefined) {
|
|
763
|
-
this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
|
|
764
|
-
}
|
|
765
|
-
this._formConfigManager.setConfig(this.formConfig);
|
|
766
|
-
}
|
|
767
540
|
/* istanbul ignore next */
|
|
768
541
|
render() {
|
|
769
542
|
var _a;
|
|
770
543
|
if (this.dataUnit == undefined) {
|
|
771
544
|
return;
|
|
772
545
|
}
|
|
773
|
-
return (h("snk-data-unit", {
|
|
546
|
+
return (h("snk-data-unit", { class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), onInsertionMode: () => this.goToView(VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: "ez-box ez-box--shadow simple-crud__container-section" }, h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
|
774
547
|
? undefined
|
|
775
|
-
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab
|
|
548
|
+
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { class: `ez-margin-top--large ${this.handleShowFormConfig() ? "simple-crud__form--hidden" : ""}`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), this.handleShowFormConfig() && h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this.dataUnit, configManager: this._formConfigManager, onConfigClose: () => this.closeFormConfig() })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, 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.resolveResourceID() }))));
|
|
776
549
|
}
|
|
777
550
|
get _element() { return getElement(this); }
|
|
778
551
|
static get watchers() { return {
|
|
779
552
|
"resourceID": ["handleResourceIDChanged"],
|
|
780
|
-
"entityName": ["onChangeEntityName"],
|
|
781
553
|
"mode": ["onModeChange"],
|
|
782
554
|
"dataState": ["observeDataState"],
|
|
783
555
|
"formLegacyConfigName": ["observeFormLegacy"],
|