@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-kb-67792.0 → 0.0.0-bugfix-dev-kb-67792.2
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-0a690675.js → ConfigStorage-e49214c6.js} +1 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-f79d220c.js → IExporterProvider-10b7fed5.js} +94 -4
- package/dist/cjs/RecordIDUtils-3735135c.js +43 -0
- package/dist/cjs/{SnkFormConfigManager-d6d5db6d.js → SnkFormConfigManager-beebf47a.js} +8 -7
- package/dist/cjs/{SnkMessageBuilder-96b0f549.js → SnkMessageBuilder-cceebbae.js} +9 -13
- package/dist/cjs/{pesquisa-fetcher-cba1b3d0.js → dataunit-fetcher-d4873076.js} +87 -180
- package/dist/cjs/{index-0922807b.js → index-1dfc7a6e.js} +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-fetcher-a1d0353f.js +166 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -3
- package/dist/cjs/snk-application.cjs.entry.js +35 -12
- package/dist/cjs/snk-attach.cjs.entry.js +71 -46
- package/dist/cjs/snk-crud.cjs.entry.js +101 -10
- package/dist/cjs/snk-data-exporter.cjs.entry.js +315 -85
- package/dist/cjs/snk-data-unit-f0221097.js +690 -0
- package/dist/cjs/snk-data-unit.cjs.entry.js +12 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +50 -10
- package/dist/cjs/snk-filter-bar.cjs.entry.js +6 -2
- 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 +67 -0
- package/dist/cjs/snk-form.cjs.entry.js +52 -7
- package/dist/cjs/snk-grid.cjs.entry.js +168 -111
- package/dist/cjs/{snk-guides-viewer-bfcad2d6.js → snk-guides-viewer-aafc3073.js} +43 -10
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +9 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +269 -40
- package/dist/cjs/snk-taskbar.cjs.entry.js +4 -3
- package/dist/cjs/{taskbar-elements-3ecd1278.js → taskbar-elements-9ad1f9c0.js} +3 -3
- package/dist/collection/collection-manifest.json +1 -1
- package/dist/collection/components/snk-application/snk-application.js +35 -11
- package/dist/collection/components/snk-attach/snk-attach.js +67 -44
- package/dist/collection/components/snk-crud/interfaces/PropsCustomEditor.js +1 -0
- package/dist/collection/components/snk-crud/interfaces/PropsCustomRender.js +1 -0
- package/dist/collection/components/snk-crud/snk-crud.js +305 -7
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +136 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-form-view.js +161 -0
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +134 -7
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +97 -0
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.js +74 -0
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +54 -1
- package/dist/collection/components/snk-data-exporter/interfaces/IExporterStrategy.js +1 -0
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +58 -0
- package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +55 -0
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +59 -52
- package/dist/collection/components/snk-data-exporter/structure/ItemBuilder.js +62 -0
- package/dist/collection/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.js +88 -0
- package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +20 -0
- package/dist/collection/components/snk-data-exporter/utils/RecordIDUtils.js +38 -0
- package/dist/collection/components/snk-data-unit/snk-data-unit.js +540 -219
- package/dist/collection/components/snk-data-unit/test/resources/metadataMock.js +24 -0
- package/dist/collection/components/snk-data-unit/test/resources/parentMetadataMock.js +18 -0
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +22 -1
- package/dist/collection/components/snk-form/snk-form.js +102 -5
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +7 -6
- package/dist/collection/components/snk-form-config/snk-form-config.js +1 -1
- package/dist/collection/components/snk-grid/snk-grid.css +2 -0
- package/dist/collection/components/snk-grid/snk-grid.js +242 -103
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +407 -20
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +2 -2
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +2 -1
- package/dist/collection/lib/@types/index.js +5 -0
- package/dist/collection/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.js +35 -0
- package/dist/collection/lib/configs/ConfigStorage.js +1 -0
- package/dist/collection/lib/dataUnit/InMemoryLoader.js +7 -3
- package/dist/collection/lib/dataUnit/ValueFormatter.js +4 -0
- package/dist/collection/lib/dataUnit/interfaces/InMemoryLoaderConfig.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.js +3 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.js +4 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +11 -13
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/dataunit-fetcher.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +53 -4
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.js +22 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -4
- package/dist/collection/lib/message/SnkMessageBuilder.js +5 -12
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +2 -0
- package/dist/collection/lib/message/resources/snk-data-unit.msg.js +2 -1
- package/dist/components/ConfigStorage.js +1 -0
- package/dist/components/{field-search.js → IExporterProvider.js} +93 -6
- package/dist/components/ISave.js +47 -0
- package/dist/components/SnkFormConfigManager.js +7 -6
- package/dist/components/SnkMessageBuilder.js +9 -13
- package/dist/components/dataunit-fetcher.js +84 -182
- package/dist/components/index2.js +198 -33
- package/dist/components/pesquisa-fetcher.js +164 -0
- package/dist/components/snk-actions-button2.js +4 -11
- package/dist/components/snk-application2.js +31 -9
- package/dist/components/snk-attach2.js +65 -41
- package/dist/components/snk-crud.js +110 -11
- package/dist/components/snk-data-exporter2.js +309 -85
- package/dist/components/snk-data-unit2.js +487 -217
- package/dist/components/snk-detail-view2.js +96 -14
- package/dist/components/snk-expression-item2.js +1 -1
- package/dist/components/snk-filter-bar2.js +6 -1
- package/dist/components/snk-form-config2.js +1 -1
- package/dist/components/snk-form-view2.js +72 -1
- package/dist/components/snk-form.js +53 -6
- package/dist/components/snk-grid2.js +171 -109
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +264 -25
- package/dist/components/snk-taskbar2.js +6 -5
- package/dist/esm/{ConfigStorage-8c2ddac8.js → ConfigStorage-e476378d.js} +1 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-a4805051.js → IExporterProvider-d597f27d.js} +93 -5
- package/dist/esm/RecordIDUtils-87d02110.js +41 -0
- package/dist/esm/{SnkFormConfigManager-c01b9d9d.js → SnkFormConfigManager-298cd647.js} +8 -7
- package/dist/esm/{SnkMessageBuilder-72423074.js → SnkMessageBuilder-ae87b754.js} +9 -13
- package/dist/esm/{pesquisa-fetcher-34a8b8be.js → dataunit-fetcher-3d2ec959.js} +83 -181
- package/dist/esm/{index-0ece87a6.js → index-3aa4977a.js} +6 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-fetcher-a87445a0.js +164 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +5 -3
- package/dist/esm/snk-application.entry.js +34 -11
- package/dist/esm/snk-attach.entry.js +66 -41
- package/dist/esm/snk-crud.entry.js +101 -10
- package/dist/esm/snk-data-exporter.entry.js +316 -86
- package/dist/esm/snk-data-unit-1ef94aef.js +688 -0
- package/dist/esm/snk-data-unit.entry.js +12 -2
- package/dist/esm/snk-detail-view.entry.js +50 -10
- package/dist/esm/snk-filter-bar.entry.js +6 -2
- 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 +67 -0
- package/dist/esm/snk-form.entry.js +52 -7
- package/dist/esm/snk-grid.entry.js +166 -109
- package/dist/esm/{snk-guides-viewer-edeac29f.js → snk-guides-viewer-62124f3d.js} +43 -10
- package/dist/esm/snk-guides-viewer.entry.js +9 -7
- package/dist/esm/snk-personalized-filter.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +257 -28
- package/dist/esm/snk-taskbar.entry.js +4 -3
- package/dist/esm/{taskbar-elements-2473c8ac.js → taskbar-elements-d59867f1.js} +3 -3
- package/dist/sankhyablocks/p-08c28ddd.entry.js +1 -0
- package/dist/sankhyablocks/p-091ce761.js +60 -0
- package/dist/sankhyablocks/p-094eebf6.entry.js +1 -0
- package/dist/sankhyablocks/p-0c68f40f.entry.js +1 -0
- package/dist/sankhyablocks/p-162b9a59.entry.js +11 -0
- package/dist/sankhyablocks/p-1db45d26.entry.js +1 -0
- package/dist/sankhyablocks/p-25f1fc39.js +6 -0
- package/dist/sankhyablocks/p-2e9c764c.entry.js +1 -0
- package/dist/sankhyablocks/p-30cf616e.js +1 -0
- package/dist/sankhyablocks/{p-96621231.js → p-3287a6cc.js} +1 -1
- package/dist/sankhyablocks/p-421bec84.entry.js +1 -0
- package/dist/sankhyablocks/p-42f7b05d.entry.js +1 -0
- package/dist/sankhyablocks/p-51999ab5.entry.js +1 -0
- package/dist/sankhyablocks/p-5f016aed.js +1 -0
- package/dist/sankhyablocks/p-6c364d25.entry.js +1 -0
- package/dist/sankhyablocks/p-70001ac1.js +1 -0
- package/dist/sankhyablocks/p-74c665d5.entry.js +1 -0
- package/dist/sankhyablocks/p-76a65660.js +1 -0
- package/dist/sankhyablocks/p-7c4aabe2.js +1 -0
- package/dist/sankhyablocks/{p-ae4fc9a9.js → p-7e7a7473.js} +1 -1
- package/dist/sankhyablocks/p-8c1ff936.entry.js +1 -0
- package/dist/sankhyablocks/p-939e15d3.entry.js +1 -0
- package/dist/sankhyablocks/p-9863d682.js +1 -0
- package/dist/sankhyablocks/{p-41c2c191.entry.js → p-9dfda04a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c2ae0fab.entry.js → p-bd008859.entry.js} +1 -1
- package/dist/sankhyablocks/p-c273d6ee.js +1 -0
- package/dist/sankhyablocks/p-d65d98ed.entry.js +1 -0
- package/dist/sankhyablocks/p-f2809746.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +7 -3
- package/dist/types/components/snk-attach/snk-attach.d.ts +11 -9
- package/dist/types/components/snk-crud/interfaces/PropsCustomEditor.d.ts +4 -0
- package/dist/types/components/snk-crud/interfaces/PropsCustomRender.d.ts +4 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +45 -1
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +23 -0
- package/dist/types/components/snk-crud/subcomponents/snk-form-view.d.ts +28 -3
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +24 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +14 -0
- package/dist/types/components/snk-data-exporter/exporter-strategy/ServerSideExporterStrategy.d.ts +12 -0
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +24 -4
- package/dist/types/components/snk-data-exporter/interfaces/IExporterStrategy.d.ts +5 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/providers/ServerSideExporterProvider.d.ts +17 -0
- package/dist/types/components/snk-data-exporter/snk-data-exporter.d.ts +4 -1
- package/dist/types/components/snk-data-exporter/structure/ItemBuilder.d.ts +21 -0
- package/dist/types/components/snk-data-exporter/test/resources/ClientSideExporterStrategyResources.d.ts +77 -0
- package/dist/types/components/snk-data-exporter/utils/ParserExport.d.ts +4 -0
- package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +3 -0
- package/dist/types/components/snk-data-unit/snk-data-unit.d.ts +67 -3
- package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +3 -0
- package/dist/types/components/snk-data-unit/test/resources/parentMetadataMock.d.ts +3 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -0
- package/dist/types/components/snk-form/snk-form.d.ts +14 -0
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +2 -2
- package/dist/types/components/snk-grid/snk-grid.d.ts +46 -6
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +62 -4
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +1 -1
- package/dist/types/components.d.ts +261 -4
- package/dist/types/lib/@types/index.d.ts +5 -0
- package/dist/types/lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter.d.ts +11 -0
- package/dist/types/lib/dataUnit/InMemoryLoader.d.ts +2 -1
- package/dist/types/lib/dataUnit/ValueFormatter.d.ts +2 -0
- package/dist/types/lib/dataUnit/interfaces/InMemoryLoaderConfig.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/DataUnitDataLoader.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/ArrayRepository.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IBuildRequestBodyLoadRowMetadata.d.ts +10 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/interfaces/IRowMetadata.d.ts +7 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +6 -0
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/test/resources/metadataMock.d.ts +20 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IExporterColumnMetadata.d.ts +3 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/pesquisa-fetcher.d.ts +1 -0
- package/package.json +1 -1
- package/dist/cjs/snk-data-unit-559ac55c.js +0 -462
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +0 -34
- package/dist/components/index3.js +0 -199
- package/dist/esm/snk-data-unit-44215df7.js +0 -460
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +0 -1
- package/dist/sankhyablocks/p-176c3491.entry.js +0 -1
- package/dist/sankhyablocks/p-37e5d563.js +0 -65
- package/dist/sankhyablocks/p-38289a55.js +0 -1
- package/dist/sankhyablocks/p-46e55a95.entry.js +0 -1
- package/dist/sankhyablocks/p-4e728357.entry.js +0 -1
- package/dist/sankhyablocks/p-5571bdfe.js +0 -1
- package/dist/sankhyablocks/p-5630574e.js +0 -1
- package/dist/sankhyablocks/p-5f8c0426.entry.js +0 -1
- package/dist/sankhyablocks/p-80c64add.entry.js +0 -1
- package/dist/sankhyablocks/p-86af4cc2.js +0 -1
- package/dist/sankhyablocks/p-8b690717.js +0 -1
- package/dist/sankhyablocks/p-a1832166.entry.js +0 -1
- package/dist/sankhyablocks/p-a809d944.entry.js +0 -1
- package/dist/sankhyablocks/p-a97226f6.entry.js +0 -1
- package/dist/sankhyablocks/p-add17f6a.entry.js +0 -1
- package/dist/sankhyablocks/p-c5a9a5d9.entry.js +0 -1
- package/dist/sankhyablocks/p-c5aa7d70.entry.js +0 -11
- package/dist/sankhyablocks/p-cb0147ab.entry.js +0 -1
- package/dist/sankhyablocks/p-f0145e3b.js +0 -1
- package/dist/sankhyablocks/p-f03e4199.entry.js +0 -1
- package/dist/sankhyablocks/p-f607db63.entry.js +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +0 -3
|
@@ -1,18 +1,20 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h } from './index-a7d3d3f1.js';
|
|
2
2
|
import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnit } from '@sankhyalabs/core';
|
|
3
3
|
import { D as DataFetcher } from './DataFetcher-773a3e4b.js';
|
|
4
|
-
import
|
|
5
|
-
import './index-
|
|
4
|
+
import './pesquisa-fetcher-a87445a0.js';
|
|
5
|
+
import './index-3aa4977a.js';
|
|
6
6
|
import { S as SaveErrorsEnum } from './ISave-d8c8bc59.js';
|
|
7
|
+
import { P as PreloadManager, b as applyFilter, c as applySorting, d as buildPaginationInfo, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-3d2ec959.js';
|
|
7
8
|
import './filter-item-type.enum-d45e026f.js';
|
|
8
9
|
import './form-config-fetcher-e0382e5a.js';
|
|
9
10
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
|
10
11
|
import { A as AutorizationType } from './auth-fetcher-a411f73c.js';
|
|
11
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
12
|
+
import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
|
|
12
13
|
import './PrintUtils-3e4ff0f5.js';
|
|
13
14
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
14
15
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
15
16
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
17
|
+
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
16
18
|
import './ResourceIDUtils-a114189a.js';
|
|
17
19
|
import './index-bdf75557.js';
|
|
18
20
|
|
|
@@ -648,26 +650,37 @@ const SnkAttach = class {
|
|
|
648
650
|
this._currentDataUnit = undefined;
|
|
649
651
|
this.crudConfig = undefined;
|
|
650
652
|
}
|
|
651
|
-
registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
|
652
|
-
var _a
|
|
653
|
-
if (
|
|
653
|
+
async registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
|
654
|
+
var _a;
|
|
655
|
+
if (this._currentDataUnit == null) {
|
|
654
656
|
this.loadAttachmentDataUnit();
|
|
655
657
|
}
|
|
656
658
|
if (oldRegisterKey !== newRegisterKey) {
|
|
657
|
-
this.
|
|
658
|
-
if (this.fetcherType === "AnexoSistema") {
|
|
659
|
-
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
660
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
661
|
-
return (_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData();
|
|
662
|
-
}
|
|
663
|
-
if (this.fetcherType === "Attach") {
|
|
664
|
-
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
665
|
-
if (hasMoreOneItem)
|
|
666
|
-
return;
|
|
667
|
-
}
|
|
668
|
-
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));
|
|
659
|
+
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadData());
|
|
669
660
|
}
|
|
670
661
|
}
|
|
662
|
+
async initAttach() {
|
|
663
|
+
var _a, _b, _c, _d, _e, _f;
|
|
664
|
+
if (!this.fetcherType && !this.registerKey)
|
|
665
|
+
return;
|
|
666
|
+
if (!this.fetcherType) {
|
|
667
|
+
this.fetcherType = "AnexoSistema";
|
|
668
|
+
}
|
|
669
|
+
this.returnToGridMode();
|
|
670
|
+
if (this.fetcherType === "AnexoSistema") {
|
|
671
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
672
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
673
|
+
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
674
|
+
return;
|
|
675
|
+
}
|
|
676
|
+
if (this.fetcherType === "Attach") {
|
|
677
|
+
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
|
678
|
+
if (hasMoreOneItem)
|
|
679
|
+
return;
|
|
680
|
+
}
|
|
681
|
+
await ((_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata());
|
|
682
|
+
await ((_f = this._currentDataUnit) === null || _f === void 0 ? void 0 : _f.loadData(undefined, undefined, true, this.registerKey));
|
|
683
|
+
}
|
|
671
684
|
/**
|
|
672
685
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
673
686
|
* através de um pequeno modulo na estrutura da aplicação:
|
|
@@ -705,14 +718,14 @@ const SnkAttach = class {
|
|
|
705
718
|
if (this._crudElement)
|
|
706
719
|
this._crudElement.goToView(VIEW_MODE.GRID);
|
|
707
720
|
}
|
|
708
|
-
loadAttachmentDataUnit() {
|
|
721
|
+
async loadAttachmentDataUnit() {
|
|
709
722
|
try {
|
|
710
723
|
switch (this.fetcherType) {
|
|
711
724
|
case "AnexoSistema":
|
|
712
|
-
this.loadAnexoSistema();
|
|
725
|
+
await this.loadAnexoSistema();
|
|
713
726
|
break;
|
|
714
727
|
case "Attach":
|
|
715
|
-
this.loadAttach();
|
|
728
|
+
await this.loadAttach();
|
|
716
729
|
break;
|
|
717
730
|
default:
|
|
718
731
|
this._currentFetcher = this.fetcher;
|
|
@@ -724,28 +737,29 @@ const SnkAttach = class {
|
|
|
724
737
|
throw new Error('There was an error while creating the data unit');
|
|
725
738
|
}
|
|
726
739
|
}
|
|
727
|
-
loadAnexoSistema() {
|
|
728
|
-
var _a;
|
|
729
|
-
this._currentDataUnit =
|
|
740
|
+
async loadAnexoSistema() {
|
|
741
|
+
var _a, _b, _c;
|
|
742
|
+
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
|
730
743
|
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
731
744
|
if (!this._currentDataUnit.metadata) {
|
|
732
|
-
this._currentDataUnit
|
|
733
|
-
|
|
734
|
-
.then(() => this.crudConfig = Object.assign({}, anexoSistemaCrudConfig));
|
|
745
|
+
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata());
|
|
746
|
+
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
|
735
747
|
}
|
|
736
|
-
this.
|
|
748
|
+
this.initDataUnitLoaders();
|
|
737
749
|
this._currentDataUnit.addFilterProvider({
|
|
738
750
|
getFilter: () => this._currentDataUnitBuilder.getFilters(this.registerKey)
|
|
739
751
|
});
|
|
740
752
|
this._currentDataUnit.addInterceptor({
|
|
741
753
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
|
742
754
|
});
|
|
743
|
-
this._currentDataUnit.loadData()
|
|
755
|
+
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
756
|
+
this.disableEditFieldsNotInForm();
|
|
744
757
|
}
|
|
745
|
-
loadAttach() {
|
|
746
|
-
var _a, _b
|
|
758
|
+
async loadAttach() {
|
|
759
|
+
var _a, _b;
|
|
747
760
|
this._currentFetcher = new AttachFetcher();
|
|
748
761
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
|
762
|
+
this.initDataUnitLoaders();
|
|
749
763
|
this._currentDataUnit.addInterceptor({
|
|
750
764
|
interceptAction: (action) => {
|
|
751
765
|
var _a;
|
|
@@ -756,16 +770,26 @@ const SnkAttach = class {
|
|
|
756
770
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
|
757
771
|
}
|
|
758
772
|
});
|
|
759
|
-
this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
|
|
760
|
-
(_a = this._currentDataUnitBuilder) === null || _a === void 0 ? void 0 : _a.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
|
|
761
|
-
this.returnToGridMode();
|
|
762
|
-
await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
|
|
763
|
-
});
|
|
764
773
|
if (!this._currentDataUnit.metadata) {
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
774
|
+
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
|
775
|
+
this.crudConfig = Object.assign({}, attachCrudConfig);
|
|
776
|
+
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
|
|
777
|
+
this.disableEditFieldsNotInForm();
|
|
778
|
+
}
|
|
779
|
+
}
|
|
780
|
+
initDataUnitLoaders() {
|
|
781
|
+
var _a, _b, _c;
|
|
782
|
+
if (this.fetcherType === "AnexoSistema") {
|
|
783
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
784
|
+
this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
|
|
785
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
786
|
+
}
|
|
787
|
+
if (this.fetcherType === "Attach") {
|
|
788
|
+
this._currentFetcher = new AttachFetcher();
|
|
789
|
+
this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
|
|
790
|
+
(_c = this._currentDataUnitBuilder) === null || _c === void 0 ? void 0 : _c.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
|
|
791
|
+
this.returnToGridMode();
|
|
792
|
+
await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
|
|
769
793
|
});
|
|
770
794
|
}
|
|
771
795
|
}
|
|
@@ -779,8 +803,9 @@ const SnkAttach = class {
|
|
|
779
803
|
}
|
|
780
804
|
});
|
|
781
805
|
}
|
|
782
|
-
componentWillLoad() {
|
|
806
|
+
async componentWillLoad() {
|
|
783
807
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
808
|
+
await this.initAttach();
|
|
784
809
|
}
|
|
785
810
|
componentWillRender() {
|
|
786
811
|
if (!this.fetcherType) {
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
|
|
2
2
|
import { StringUtils, ElementIDUtils, ApplicationContext, JSUtils, FloatingManager } from '@sankhyalabs/core';
|
|
3
|
-
import { T as TaskbarElement } from './taskbar-elements-
|
|
3
|
+
import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
|
|
4
4
|
import './DataFetcher-773a3e4b.js';
|
|
5
|
-
import './pesquisa-fetcher-
|
|
6
|
-
import { P as PresentationMode } from './index-
|
|
5
|
+
import './pesquisa-fetcher-a87445a0.js';
|
|
6
|
+
import { P as PresentationMode } from './index-3aa4977a.js';
|
|
7
7
|
import './ISave-d8c8bc59.js';
|
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
10
|
+
import './dataunit-fetcher-3d2ec959.js';
|
|
10
11
|
import './filter-item-type.enum-d45e026f.js';
|
|
11
12
|
import './form-config-fetcher-e0382e5a.js';
|
|
12
13
|
import { d as VIEW_MODE } from './constants-8457af36.js';
|
|
@@ -14,6 +15,7 @@ import { A as AutorizationType } from './auth-fetcher-a411f73c.js';
|
|
|
14
15
|
import './index-bdf75557.js';
|
|
15
16
|
import './PrintUtils-3e4ff0f5.js';
|
|
16
17
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
18
|
+
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
17
19
|
import './ResourceIDUtils-a114189a.js';
|
|
18
20
|
|
|
19
21
|
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
|
@@ -25,8 +27,11 @@ const SnkCrud = class {
|
|
|
25
27
|
this.configuratorSave = createEvent(this, "configuratorSave", 7);
|
|
26
28
|
this.configuratorCancel = createEvent(this, "configuratorCancel", 7);
|
|
27
29
|
this.formItemsReady = createEvent(this, "formItemsReady", 7);
|
|
30
|
+
this.viewModeChanged = createEvent(this, "viewModeChanged", 7);
|
|
28
31
|
this._keyDownHandler = async (event) => this.keyDownListener(event);
|
|
29
32
|
this._viewHistory = [];
|
|
33
|
+
this._customEditors = new Map();
|
|
34
|
+
this._customRenders = new Map();
|
|
30
35
|
this._dataUnit = undefined;
|
|
31
36
|
this._dataState = undefined;
|
|
32
37
|
this.attachmentRegisterKey = undefined;
|
|
@@ -49,6 +54,10 @@ const SnkCrud = class {
|
|
|
49
54
|
this.filterBarLegacyConfigName = undefined;
|
|
50
55
|
this.formLegacyConfigName = undefined;
|
|
51
56
|
this.disablePersonalizedFilter = undefined;
|
|
57
|
+
this.autoLoad = undefined;
|
|
58
|
+
this.autoFocus = true;
|
|
59
|
+
this.domainMessagesBuilder = undefined;
|
|
60
|
+
this.setCustomFormTitle = undefined;
|
|
52
61
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
|
53
62
|
}
|
|
54
63
|
/**
|
|
@@ -84,6 +93,49 @@ const SnkCrud = class {
|
|
|
84
93
|
async getFilterBar() {
|
|
85
94
|
return await this._snkGrid.getFilterBar();
|
|
86
95
|
}
|
|
96
|
+
/**
|
|
97
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
98
|
+
*/
|
|
99
|
+
async addCustomEditor(fieldName, customEditor) {
|
|
100
|
+
if (this._guidesViewer && this._snkGrid) {
|
|
101
|
+
this._guidesViewer.addCustomEditor(fieldName, customEditor);
|
|
102
|
+
this._snkGrid.addCustomEditor(fieldName, customEditor);
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
const newCustomEditors = new Map(this._customEditors);
|
|
106
|
+
newCustomEditors.set(fieldName, customEditor);
|
|
107
|
+
this._customEditors = newCustomEditors;
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Registra um render customizado para colunas da grid.
|
|
111
|
+
*/
|
|
112
|
+
async addGridCustomRender(fieldName, customRender) {
|
|
113
|
+
if (this._snkGrid) {
|
|
114
|
+
this._snkGrid.addGridCustomRender(fieldName, customRender);
|
|
115
|
+
return;
|
|
116
|
+
}
|
|
117
|
+
const newCustomRenders = new Map(this._customRenders);
|
|
118
|
+
newCustomRenders.set(fieldName, customRender);
|
|
119
|
+
this._customRenders = newCustomRenders;
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Registra um formatador de valores para uma coluna da grid.
|
|
123
|
+
*/
|
|
124
|
+
async addCustomValueFormatter(columnName, customFormatter) {
|
|
125
|
+
this._snkGrid.addCustomValueFormatter(columnName, customFormatter);
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Remove o formatador de valores de uma coluna da grid.
|
|
129
|
+
*/
|
|
130
|
+
async removeCustomValueFormatter(columnName) {
|
|
131
|
+
this._snkGrid.removeCustomValueFormatter(columnName);
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
135
|
+
*/
|
|
136
|
+
async setFieldProp(fieldName, propName, value) {
|
|
137
|
+
await this._guidesViewer.setFieldProp(fieldName, propName, value);
|
|
138
|
+
}
|
|
87
139
|
currentViewModeWatcher(currentView) {
|
|
88
140
|
this._viewHistory = [...this._viewHistory.slice(-1), currentView];
|
|
89
141
|
}
|
|
@@ -114,6 +166,7 @@ const SnkCrud = class {
|
|
|
114
166
|
else if (viewMode === VIEW_MODE.FORM) {
|
|
115
167
|
this._guidesViewer.setFocus();
|
|
116
168
|
}
|
|
169
|
+
this.viewModeChanged.emit(viewMode);
|
|
117
170
|
}
|
|
118
171
|
openConfig(viewMode) {
|
|
119
172
|
this._snkConfigurator.close();
|
|
@@ -143,6 +196,29 @@ const SnkCrud = class {
|
|
|
143
196
|
const joinedPrimaryKeys = recordCriteria.map(({ value }) => value).join('_');
|
|
144
197
|
return joinedPrimaryKeys;
|
|
145
198
|
}
|
|
199
|
+
setCustomRenders() {
|
|
200
|
+
if (!this._snkGrid) {
|
|
201
|
+
return;
|
|
202
|
+
}
|
|
203
|
+
for (const [fieldName, customRender] of this._customRenders) {
|
|
204
|
+
this._snkGrid.addGridCustomRender(fieldName, customRender);
|
|
205
|
+
this._customRenders.delete(fieldName);
|
|
206
|
+
}
|
|
207
|
+
}
|
|
208
|
+
setCustomEditors() {
|
|
209
|
+
if (!this._snkGrid || !this._guidesViewer) {
|
|
210
|
+
return;
|
|
211
|
+
}
|
|
212
|
+
for (const [fieldName, customEditor] of this._customEditors) {
|
|
213
|
+
this._guidesViewer.addCustomEditor(fieldName, customEditor);
|
|
214
|
+
this._snkGrid.addCustomEditor(fieldName, customEditor);
|
|
215
|
+
this._customEditors.delete(fieldName);
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
componentDidRender() {
|
|
219
|
+
this.setCustomRenders();
|
|
220
|
+
this.setCustomEditors();
|
|
221
|
+
}
|
|
146
222
|
componentWillLoad() {
|
|
147
223
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
148
224
|
let parent = this._element.parentElement;
|
|
@@ -154,6 +230,7 @@ const SnkCrud = class {
|
|
|
154
230
|
this._snkDataUnit = parent;
|
|
155
231
|
this._snkDataUnit.addEventListener("insertionMode", () => this.insertionModeHandler());
|
|
156
232
|
this._snkDataUnit.addEventListener("cancelEdition", () => this.cancelHandler());
|
|
233
|
+
this._snkDataUnit.domainMessagesBuilder = this.domainMessagesBuilder;
|
|
157
234
|
this._dataUnit = this._snkDataUnit.dataUnit;
|
|
158
235
|
this._dataState = this._snkDataUnit.dataState;
|
|
159
236
|
if (!this._dataUnit) {
|
|
@@ -165,12 +242,7 @@ const SnkCrud = class {
|
|
|
165
242
|
else {
|
|
166
243
|
this.initDataUnit();
|
|
167
244
|
}
|
|
168
|
-
this._snkDataUnit.addEventListener("dataStateChange",
|
|
169
|
-
this._dataState = dataState;
|
|
170
|
-
if (dataState.selectedRecord !== undefined) {
|
|
171
|
-
this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
|
|
172
|
-
}
|
|
173
|
-
});
|
|
245
|
+
this._snkDataUnit.addEventListener("dataStateChange", this.handleDataStateChange.bind(this));
|
|
174
246
|
break;
|
|
175
247
|
}
|
|
176
248
|
parent = parent.parentElement;
|
|
@@ -186,6 +258,25 @@ const SnkCrud = class {
|
|
|
186
258
|
this.removeShortcuts();
|
|
187
259
|
window.removeEventListener("keydown", this._keyDownHandler);
|
|
188
260
|
}
|
|
261
|
+
async handleDataStateChange(evt) {
|
|
262
|
+
var _a;
|
|
263
|
+
this._dataState = evt.detail;
|
|
264
|
+
if (this._dataState.selectedRecord !== undefined) {
|
|
265
|
+
this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
|
|
266
|
+
}
|
|
267
|
+
const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
|
|
268
|
+
for (const field of fieldsWithRmPrecision || []) {
|
|
269
|
+
if (!field) {
|
|
270
|
+
continue;
|
|
271
|
+
}
|
|
272
|
+
const rmPrecision = (_a = this._dataState.rowMetadata) === null || _a === void 0 ? void 0 : _a.getProp('rm_precision', field);
|
|
273
|
+
if (!rmPrecision && rmPrecision !== 0) {
|
|
274
|
+
continue;
|
|
275
|
+
}
|
|
276
|
+
await this.setFieldProp(field, 'precision', rmPrecision);
|
|
277
|
+
await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
|
|
278
|
+
}
|
|
279
|
+
}
|
|
189
280
|
async initKeyboardManager() {
|
|
190
281
|
var _a;
|
|
191
282
|
const keyboardManager = await ((_a = this._application) === null || _a === void 0 ? void 0 : _a.getKeyboardManager());
|
|
@@ -305,7 +396,7 @@ const SnkCrud = class {
|
|
|
305
396
|
return;
|
|
306
397
|
}
|
|
307
398
|
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === VIEW_MODE.GRID;
|
|
308
|
-
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" }))));
|
|
399
|
+
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, autoLoad: this.autoLoad, autoFocus: this.autoFocus }, 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, getCustomTitle: this.setCustomFormTitle }, 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" }))));
|
|
309
400
|
}
|
|
310
401
|
get _element() { return getElement(this); }
|
|
311
402
|
static get watchers() { return {
|