@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,15 +1,14 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnit } from '@sankhyalabs/core';
|
|
3
3
|
import { D as DataFetcher } from './DataFetcher.js';
|
|
4
|
-
import './
|
|
5
|
-
import
|
|
6
|
-
import {
|
|
4
|
+
import { a as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher.js';
|
|
5
|
+
import './index2.js';
|
|
6
|
+
import { a as SaveErrorsEnum, d as defineCustomElement$f } from './snk-actions-button2.js';
|
|
7
7
|
import './filter-item-type.enum.js';
|
|
8
8
|
import './form-config-fetcher.js';
|
|
9
9
|
import { V as VIEW_MODE } from './constants.js';
|
|
10
10
|
import { A as AutorizationType } from './auth-fetcher.js';
|
|
11
11
|
import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
|
|
12
|
-
import { d as defineCustomElement$f } from './snk-actions-button2.js';
|
|
13
12
|
import { d as defineCustomElement$e } from './snk-config-options2.js';
|
|
14
13
|
import { d as defineCustomElement$d } from './snk-configurator2.js';
|
|
15
14
|
import { d as defineCustomElement$c } from './snk-data-exporter2.js';
|
|
@@ -657,37 +656,26 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
657
656
|
this._currentDataUnit = undefined;
|
|
658
657
|
this.crudConfig = undefined;
|
|
659
658
|
}
|
|
660
|
-
|
|
661
|
-
var _a;
|
|
662
|
-
if (this._currentDataUnit
|
|
659
|
+
registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
|
660
|
+
var _a, _b, _c, _d, _e, _f;
|
|
661
|
+
if (!this._currentDataUnit) {
|
|
663
662
|
this.loadAttachmentDataUnit();
|
|
664
663
|
}
|
|
665
664
|
if (oldRegisterKey !== newRegisterKey) {
|
|
666
|
-
|
|
665
|
+
this.returnToGridMode();
|
|
666
|
+
if (this.fetcherType === "AnexoSistema") {
|
|
667
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
668
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
669
|
+
return (_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData();
|
|
670
|
+
}
|
|
671
|
+
if (this.fetcherType === "Attach") {
|
|
672
|
+
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
673
|
+
if (hasMoreOneItem)
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
return (_f = (_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata()) === null || _f === void 0 ? void 0 : _f.then(this._currentDataUnit.loadData.bind(undefined, undefined, true, this.registerKey));
|
|
667
677
|
}
|
|
668
678
|
}
|
|
669
|
-
async initAttach() {
|
|
670
|
-
var _a, _b, _c, _d, _e, _f;
|
|
671
|
-
if (!this.fetcherType && !this.registerKey)
|
|
672
|
-
return;
|
|
673
|
-
if (!this.fetcherType) {
|
|
674
|
-
this.fetcherType = "AnexoSistema";
|
|
675
|
-
}
|
|
676
|
-
this.returnToGridMode();
|
|
677
|
-
if (this.fetcherType === "AnexoSistema") {
|
|
678
|
-
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
679
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
680
|
-
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
681
|
-
return;
|
|
682
|
-
}
|
|
683
|
-
if (this.fetcherType === "Attach") {
|
|
684
|
-
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
685
|
-
if (hasMoreOneItem)
|
|
686
|
-
return;
|
|
687
|
-
}
|
|
688
|
-
await ((_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata());
|
|
689
|
-
await ((_f = this._currentDataUnit) === null || _f === void 0 ? void 0 : _f.loadData(undefined, undefined, true, this.registerKey));
|
|
690
|
-
}
|
|
691
679
|
/**
|
|
692
680
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
693
681
|
* através de um pequeno modulo na estrutura da aplicação:
|
|
@@ -725,14 +713,14 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
725
713
|
if (this._crudElement)
|
|
726
714
|
this._crudElement.goToView(VIEW_MODE.GRID);
|
|
727
715
|
}
|
|
728
|
-
|
|
716
|
+
loadAttachmentDataUnit() {
|
|
729
717
|
try {
|
|
730
718
|
switch (this.fetcherType) {
|
|
731
719
|
case "AnexoSistema":
|
|
732
|
-
|
|
720
|
+
this.loadAnexoSistema();
|
|
733
721
|
break;
|
|
734
722
|
case "Attach":
|
|
735
|
-
|
|
723
|
+
this.loadAttach();
|
|
736
724
|
break;
|
|
737
725
|
default:
|
|
738
726
|
this._currentFetcher = this.fetcher;
|
|
@@ -744,29 +732,28 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
744
732
|
throw new Error('There was an error while creating the data unit');
|
|
745
733
|
}
|
|
746
734
|
}
|
|
747
|
-
|
|
748
|
-
var _a
|
|
749
|
-
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
|
735
|
+
loadAnexoSistema() {
|
|
736
|
+
var _a;
|
|
737
|
+
this._currentDataUnit = this._currentDataUnit || new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
|
750
738
|
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
751
739
|
if (!this._currentDataUnit.metadata) {
|
|
752
|
-
|
|
753
|
-
|
|
740
|
+
this._currentDataUnit
|
|
741
|
+
.loadMetadata()
|
|
742
|
+
.then(() => this.crudConfig = Object.assign({}, anexoSistemaCrudConfig));
|
|
754
743
|
}
|
|
755
|
-
this.
|
|
744
|
+
this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
|
|
756
745
|
this._currentDataUnit.addFilterProvider({
|
|
757
746
|
getFilter: () => this._currentDataUnitBuilder.getFilters(this.registerKey)
|
|
758
747
|
});
|
|
759
748
|
this._currentDataUnit.addInterceptor({
|
|
760
749
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
|
761
750
|
});
|
|
762
|
-
|
|
763
|
-
this.disableEditFieldsNotInForm();
|
|
751
|
+
this._currentDataUnit.loadData().then(this.disableEditFieldsNotInForm.bind(this));
|
|
764
752
|
}
|
|
765
|
-
|
|
766
|
-
var _a, _b;
|
|
753
|
+
loadAttach() {
|
|
754
|
+
var _a, _b, _c;
|
|
767
755
|
this._currentFetcher = new AttachFetcher();
|
|
768
756
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
|
769
|
-
this.initDataUnitLoaders();
|
|
770
757
|
this._currentDataUnit.addInterceptor({
|
|
771
758
|
interceptAction: (action) => {
|
|
772
759
|
var _a;
|
|
@@ -777,26 +764,16 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
777
764
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
|
778
765
|
}
|
|
779
766
|
});
|
|
767
|
+
this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
|
|
768
|
+
(_a = this._currentDataUnitBuilder) === null || _a === void 0 ? void 0 : _a.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
|
|
769
|
+
this.returnToGridMode();
|
|
770
|
+
await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
|
|
771
|
+
});
|
|
780
772
|
if (!this._currentDataUnit.metadata) {
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
initDataUnitLoaders() {
|
|
788
|
-
var _a, _b, _c;
|
|
789
|
-
if (this.fetcherType === "AnexoSistema") {
|
|
790
|
-
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
791
|
-
this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
|
|
792
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
793
|
-
}
|
|
794
|
-
if (this.fetcherType === "Attach") {
|
|
795
|
-
this._currentFetcher = new AttachFetcher();
|
|
796
|
-
this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
|
|
797
|
-
(_c = this._currentDataUnitBuilder) === null || _c === void 0 ? void 0 : _c.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
|
|
798
|
-
this.returnToGridMode();
|
|
799
|
-
await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
|
|
773
|
+
(_c = (_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata()) === null || _c === void 0 ? void 0 : _c.then(() => {
|
|
774
|
+
var _a, _b;
|
|
775
|
+
this.crudConfig = Object.assign({}, attachCrudConfig);
|
|
776
|
+
(_b = (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadData(undefined, undefined, true, this.registerKey)) === null || _b === void 0 ? void 0 : _b.then(this.disableEditFieldsNotInForm.bind(this));
|
|
800
777
|
});
|
|
801
778
|
}
|
|
802
779
|
}
|
|
@@ -810,9 +787,8 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
810
787
|
}
|
|
811
788
|
});
|
|
812
789
|
}
|
|
813
|
-
|
|
790
|
+
componentWillLoad() {
|
|
814
791
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
815
|
-
await this.initAttach();
|
|
816
792
|
}
|
|
817
793
|
componentWillRender() {
|
|
818
794
|
if (!this.fetcherType) {
|
|
@@ -2,16 +2,15 @@ import { proxyCustomElement, HTMLElement, createEvent, h, Host } from '@stencil/
|
|
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
|
3
3
|
import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
|
|
4
4
|
import './DataFetcher.js';
|
|
5
|
-
import './
|
|
6
|
-
import { P as PresentationMode } from './
|
|
5
|
+
import './dataunit-fetcher.js';
|
|
6
|
+
import { P as PresentationMode } from './index2.js';
|
|
7
|
+
import { d as defineCustomElement$w } from './snk-actions-button2.js';
|
|
7
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
8
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
9
|
-
import './dataunit-fetcher.js';
|
|
10
10
|
import './filter-item-type.enum.js';
|
|
11
11
|
import './form-config-fetcher.js';
|
|
12
12
|
import { V as VIEW_MODE } from './constants.js';
|
|
13
13
|
import { A as AutorizationType } from './auth-fetcher.js';
|
|
14
|
-
import { d as defineCustomElement$w } from './snk-actions-button2.js';
|
|
15
14
|
import { d as defineCustomElement$v } from './snk-attach2.js';
|
|
16
15
|
import { d as defineCustomElement$u } from './snk-config-options2.js';
|
|
17
16
|
import { d as defineCustomElement$t } from './snk-configurator2.js';
|
|
@@ -51,11 +50,8 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
51
50
|
this.configuratorSave = createEvent(this, "configuratorSave", 7);
|
|
52
51
|
this.configuratorCancel = createEvent(this, "configuratorCancel", 7);
|
|
53
52
|
this.formItemsReady = createEvent(this, "formItemsReady", 7);
|
|
54
|
-
this.viewModeChanged = createEvent(this, "viewModeChanged", 7);
|
|
55
53
|
this._keyDownHandler = async (event) => this.keyDownListener(event);
|
|
56
54
|
this._viewHistory = [];
|
|
57
|
-
this._customEditors = new Map();
|
|
58
|
-
this._customRenders = new Map();
|
|
59
55
|
this._dataUnit = undefined;
|
|
60
56
|
this._dataState = undefined;
|
|
61
57
|
this.attachmentRegisterKey = undefined;
|
|
@@ -78,10 +74,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
78
74
|
this.filterBarLegacyConfigName = undefined;
|
|
79
75
|
this.formLegacyConfigName = undefined;
|
|
80
76
|
this.disablePersonalizedFilter = undefined;
|
|
81
|
-
this.autoLoad = undefined;
|
|
82
|
-
this.autoFocus = true;
|
|
83
|
-
this.domainMessagesBuilder = undefined;
|
|
84
|
-
this.setCustomFormTitle = undefined;
|
|
85
77
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
|
86
78
|
}
|
|
87
79
|
/**
|
|
@@ -117,49 +109,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
117
109
|
async getFilterBar() {
|
|
118
110
|
return await this._snkGrid.getFilterBar();
|
|
119
111
|
}
|
|
120
|
-
/**
|
|
121
|
-
* Registra um editor customizado para campos da grade e formulário.
|
|
122
|
-
*/
|
|
123
|
-
async addCustomEditor(fieldName, customEditor) {
|
|
124
|
-
if (this._guidesViewer && this._snkGrid) {
|
|
125
|
-
this._guidesViewer.addCustomEditor(fieldName, customEditor);
|
|
126
|
-
this._snkGrid.addCustomEditor(fieldName, customEditor);
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
|
-
const newCustomEditors = new Map(this._customEditors);
|
|
130
|
-
newCustomEditors.set(fieldName, customEditor);
|
|
131
|
-
this._customEditors = newCustomEditors;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Registra um render customizado para colunas da grid.
|
|
135
|
-
*/
|
|
136
|
-
async addGridCustomRender(fieldName, customRender) {
|
|
137
|
-
if (this._snkGrid) {
|
|
138
|
-
this._snkGrid.addGridCustomRender(fieldName, customRender);
|
|
139
|
-
return;
|
|
140
|
-
}
|
|
141
|
-
const newCustomRenders = new Map(this._customRenders);
|
|
142
|
-
newCustomRenders.set(fieldName, customRender);
|
|
143
|
-
this._customRenders = newCustomRenders;
|
|
144
|
-
}
|
|
145
|
-
/**
|
|
146
|
-
* Registra um formatador de valores para uma coluna da grid.
|
|
147
|
-
*/
|
|
148
|
-
async addCustomValueFormatter(columnName, customFormatter) {
|
|
149
|
-
this._snkGrid.addCustomValueFormatter(columnName, customFormatter);
|
|
150
|
-
}
|
|
151
|
-
/**
|
|
152
|
-
* Remove o formatador de valores de uma coluna da grid.
|
|
153
|
-
*/
|
|
154
|
-
async removeCustomValueFormatter(columnName) {
|
|
155
|
-
this._snkGrid.removeCustomValueFormatter(columnName);
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
159
|
-
*/
|
|
160
|
-
async setFieldProp(fieldName, propName, value) {
|
|
161
|
-
await this._guidesViewer.setFieldProp(fieldName, propName, value);
|
|
162
|
-
}
|
|
163
112
|
currentViewModeWatcher(currentView) {
|
|
164
113
|
this._viewHistory = [...this._viewHistory.slice(-1), currentView];
|
|
165
114
|
}
|
|
@@ -190,7 +139,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
190
139
|
else if (viewMode === VIEW_MODE.FORM) {
|
|
191
140
|
this._guidesViewer.setFocus();
|
|
192
141
|
}
|
|
193
|
-
this.viewModeChanged.emit(viewMode);
|
|
194
142
|
}
|
|
195
143
|
openConfig(viewMode) {
|
|
196
144
|
this._snkConfigurator.close();
|
|
@@ -220,29 +168,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
220
168
|
const joinedPrimaryKeys = recordCriteria.map(({ value }) => value).join('_');
|
|
221
169
|
return joinedPrimaryKeys;
|
|
222
170
|
}
|
|
223
|
-
setCustomRenders() {
|
|
224
|
-
if (!this._snkGrid) {
|
|
225
|
-
return;
|
|
226
|
-
}
|
|
227
|
-
for (const [fieldName, customRender] of this._customRenders) {
|
|
228
|
-
this._snkGrid.addGridCustomRender(fieldName, customRender);
|
|
229
|
-
this._customRenders.delete(fieldName);
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
setCustomEditors() {
|
|
233
|
-
if (!this._snkGrid || !this._guidesViewer) {
|
|
234
|
-
return;
|
|
235
|
-
}
|
|
236
|
-
for (const [fieldName, customEditor] of this._customEditors) {
|
|
237
|
-
this._guidesViewer.addCustomEditor(fieldName, customEditor);
|
|
238
|
-
this._snkGrid.addCustomEditor(fieldName, customEditor);
|
|
239
|
-
this._customEditors.delete(fieldName);
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
componentDidRender() {
|
|
243
|
-
this.setCustomRenders();
|
|
244
|
-
this.setCustomEditors();
|
|
245
|
-
}
|
|
246
171
|
componentWillLoad() {
|
|
247
172
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
248
173
|
let parent = this._element.parentElement;
|
|
@@ -254,7 +179,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
254
179
|
this._snkDataUnit = parent;
|
|
255
180
|
this._snkDataUnit.addEventListener("insertionMode", () => this.insertionModeHandler());
|
|
256
181
|
this._snkDataUnit.addEventListener("cancelEdition", () => this.cancelHandler());
|
|
257
|
-
this._snkDataUnit.domainMessagesBuilder = this.domainMessagesBuilder;
|
|
258
182
|
this._dataUnit = this._snkDataUnit.dataUnit;
|
|
259
183
|
this._dataState = this._snkDataUnit.dataState;
|
|
260
184
|
if (!this._dataUnit) {
|
|
@@ -266,7 +190,12 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
266
190
|
else {
|
|
267
191
|
this.initDataUnit();
|
|
268
192
|
}
|
|
269
|
-
this._snkDataUnit.addEventListener("dataStateChange",
|
|
193
|
+
this._snkDataUnit.addEventListener("dataStateChange", async ({ detail: dataState }) => {
|
|
194
|
+
this._dataState = dataState;
|
|
195
|
+
if (dataState.selectedRecord !== undefined) {
|
|
196
|
+
this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
|
|
197
|
+
}
|
|
198
|
+
});
|
|
270
199
|
break;
|
|
271
200
|
}
|
|
272
201
|
parent = parent.parentElement;
|
|
@@ -282,25 +211,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
282
211
|
this.removeShortcuts();
|
|
283
212
|
window.removeEventListener("keydown", this._keyDownHandler);
|
|
284
213
|
}
|
|
285
|
-
async handleDataStateChange(evt) {
|
|
286
|
-
var _a;
|
|
287
|
-
this._dataState = evt.detail;
|
|
288
|
-
if (this._dataState.selectedRecord !== undefined) {
|
|
289
|
-
this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
|
|
290
|
-
}
|
|
291
|
-
const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
|
|
292
|
-
for (const field of fieldsWithRmPrecision || []) {
|
|
293
|
-
if (!field) {
|
|
294
|
-
continue;
|
|
295
|
-
}
|
|
296
|
-
const rmPrecision = (_a = this._dataState.rowMetadata) === null || _a === void 0 ? void 0 : _a.getProp('rm_precision', field);
|
|
297
|
-
if (!rmPrecision && rmPrecision !== 0) {
|
|
298
|
-
continue;
|
|
299
|
-
}
|
|
300
|
-
await this.setFieldProp(field, 'precision', rmPrecision);
|
|
301
|
-
await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
214
|
async initKeyboardManager() {
|
|
305
215
|
var _a;
|
|
306
216
|
const keyboardManager = await ((_a = this._application) === null || _a === void 0 ? void 0 : _a.getKeyboardManager());
|
|
@@ -420,7 +330,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
420
330
|
return;
|
|
421
331
|
}
|
|
422
332
|
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === VIEW_MODE.GRID;
|
|
423
|
-
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName
|
|
333
|
+
return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", null, h("snk-grid", { ref: (ref) => this._snkGrid = ref, filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
|
424
334
|
}
|
|
425
335
|
get _element() { return this; }
|
|
426
336
|
static get watchers() { return {
|
|
@@ -444,10 +354,6 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
444
354
|
"filterBarLegacyConfigName": [1, "filter-bar-legacy-config-name"],
|
|
445
355
|
"formLegacyConfigName": [1, "form-legacy-config-name"],
|
|
446
356
|
"disablePersonalizedFilter": [4, "disable-personalized-filter"],
|
|
447
|
-
"autoLoad": [4, "auto-load"],
|
|
448
|
-
"autoFocus": [4, "auto-focus"],
|
|
449
|
-
"domainMessagesBuilder": [1, "domain-messages-builder"],
|
|
450
|
-
"setCustomFormTitle": [16],
|
|
451
357
|
"_dataUnit": [32],
|
|
452
358
|
"_dataState": [32],
|
|
453
359
|
"attachmentRegisterKey": [32],
|
|
@@ -459,12 +365,7 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
459
365
|
"openConfigurator": [64],
|
|
460
366
|
"closeConfigurator": [64],
|
|
461
367
|
"reloadFilterBar": [64],
|
|
462
|
-
"getFilterBar": [64]
|
|
463
|
-
"addCustomEditor": [64],
|
|
464
|
-
"addGridCustomRender": [64],
|
|
465
|
-
"addCustomValueFormatter": [64],
|
|
466
|
-
"removeCustomValueFormatter": [64],
|
|
467
|
-
"setFieldProp": [64]
|
|
368
|
+
"getFilterBar": [64]
|
|
468
369
|
}]);
|
|
469
370
|
function defineCustomElement$1() {
|
|
470
371
|
if (typeof customElements === "undefined") {
|