@sankhyalabs/sankhyablocks 8.15.3 → 8.16.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-942ce74b.js → ConfigStorage-a343e418.js} +1 -0
- package/dist/cjs/{SnkMultiSelectionListDataSource-3c08d25c.js → IExporterProvider-597949f9.js} +94 -4
- package/dist/cjs/RecordIDUtils-3735135c.js +43 -0
- package/dist/cjs/{SnkFormConfigManager-f9dc0d28.js → SnkFormConfigManager-166cbd1f.js} +8 -7
- package/dist/cjs/{SnkMessageBuilder-66aa2557.js → SnkMessageBuilder-897ffd08.js} +9 -13
- package/dist/cjs/{pesquisa-fetcher-562d281f.js → dataunit-fetcher-688d3f05.js} +87 -180
- package/dist/cjs/{index-0922807b.js → index-1dfc7a6e.js} +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-fetcher-680e198f.js +166 -0
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +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-8fa7917a.js +689 -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 +165 -108
- package/dist/cjs/{snk-guides-viewer-bb6087cd.js → snk-guides-viewer-9c682034.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 +268 -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 +538 -218
- 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.js +240 -101
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +406 -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 +485 -216
- 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 +168 -106
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/components/snk-simple-crud2.js +263 -25
- package/dist/components/snk-taskbar2.js +6 -5
- package/dist/esm/{ConfigStorage-86187da3.js → ConfigStorage-3806514e.js} +1 -0
- package/dist/esm/{SnkMultiSelectionListDataSource-6a879955.js → IExporterProvider-63a188b6.js} +93 -5
- package/dist/esm/RecordIDUtils-87d02110.js +41 -0
- package/dist/esm/{SnkFormConfigManager-f53f9f87.js → SnkFormConfigManager-31b24066.js} +8 -7
- package/dist/esm/{SnkMessageBuilder-0a4becdd.js → SnkMessageBuilder-571462fb.js} +9 -13
- package/dist/esm/{pesquisa-fetcher-c7ce8ee7.js → dataunit-fetcher-264191b2.js} +83 -181
- package/dist/esm/{index-0ece87a6.js → index-3aa4977a.js} +6 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-fetcher-03c8f919.js +164 -0
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +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-f5cbe64b.js +687 -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 +163 -106
- package/dist/esm/{snk-guides-viewer-1d95ebf2.js → snk-guides-viewer-8f6960a2.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 +256 -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-17def7cd.js +1 -0
- package/dist/sankhyablocks/p-1db45d26.entry.js +1 -0
- package/dist/sankhyablocks/p-28ee0972.js +1 -0
- package/dist/sankhyablocks/p-2a408684.js +1 -0
- package/dist/sankhyablocks/{p-eae7a817.entry.js → p-2c68b3ae.entry.js} +1 -1
- package/dist/sankhyablocks/p-30cf616e.js +1 -0
- package/dist/sankhyablocks/p-3a212712.js +1 -0
- package/dist/sankhyablocks/p-450c60e4.entry.js +1 -0
- package/dist/sankhyablocks/{p-a1d72395.entry.js → p-47db7e88.entry.js} +1 -1
- package/dist/sankhyablocks/p-4e5e1313.entry.js +1 -0
- package/dist/sankhyablocks/{p-aff76a53.js → p-52920496.js} +1 -1
- package/dist/sankhyablocks/p-62ba211a.entry.js +1 -0
- package/dist/sankhyablocks/p-6bb2f3e9.entry.js +1 -0
- package/dist/sankhyablocks/p-7505da04.entry.js +1 -0
- package/dist/sankhyablocks/p-7619bdb1.entry.js +11 -0
- package/dist/sankhyablocks/p-7a85fd49.entry.js +1 -0
- package/dist/sankhyablocks/{p-ae4fc9a9.js → p-7e7a7473.js} +1 -1
- package/dist/sankhyablocks/p-7ef9c55c.js +1 -0
- package/dist/sankhyablocks/p-80042dc6.entry.js +1 -0
- package/dist/sankhyablocks/p-8c59edd7.entry.js +1 -0
- package/dist/sankhyablocks/p-9606509c.entry.js +1 -0
- package/dist/sankhyablocks/p-9863d682.js +1 -0
- package/dist/sankhyablocks/p-ae93d46a.entry.js +1 -0
- package/dist/sankhyablocks/p-af8efd95.js +6 -0
- package/dist/sankhyablocks/p-d6e26ea8.entry.js +1 -0
- package/dist/sankhyablocks/p-f2809746.entry.js +1 -0
- package/dist/sankhyablocks/p-f4450320.entry.js +1 -0
- package/dist/sankhyablocks/p-fe79f83a.js +60 -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 +66 -2
- package/dist/types/components/snk-data-unit/test/resources/metadataMock.d.ts +3 -0
- package/dist/types/components/snk-data-unit/test/resources/parentMetadataMock.d.ts +3 -0
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +4 -0
- package/dist/types/components/snk-form/snk-form.d.ts +14 -0
- package/dist/types/components/snk-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-41c29713.js +0 -462
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/index.js +0 -34
- package/dist/components/index3.js +0 -199
- package/dist/esm/snk-data-unit-de1d140d.js +0 -460
- package/dist/sankhyablocks/p-032fe52e.js +0 -1
- package/dist/sankhyablocks/p-03dcc5ff.entry.js +0 -1
- package/dist/sankhyablocks/p-0594db5a.entry.js +0 -1
- package/dist/sankhyablocks/p-06e13db2.js +0 -1
- package/dist/sankhyablocks/p-07a61550.entry.js +0 -1
- package/dist/sankhyablocks/p-1403a4b6.entry.js +0 -1
- package/dist/sankhyablocks/p-14a08904.entry.js +0 -1
- package/dist/sankhyablocks/p-15802c59.entry.js +0 -1
- package/dist/sankhyablocks/p-235dc7b1.js +0 -65
- package/dist/sankhyablocks/p-32556aa6.js +0 -1
- package/dist/sankhyablocks/p-38289a55.js +0 -1
- package/dist/sankhyablocks/p-3c632d48.js +0 -1
- package/dist/sankhyablocks/p-3f833983.entry.js +0 -1
- package/dist/sankhyablocks/p-52c8e589.js +0 -1
- package/dist/sankhyablocks/p-5e1502b6.entry.js +0 -11
- package/dist/sankhyablocks/p-74d349c3.entry.js +0 -1
- package/dist/sankhyablocks/p-93167e28.entry.js +0 -1
- package/dist/sankhyablocks/p-add17f6a.entry.js +0 -1
- package/dist/sankhyablocks/p-bd47dd16.entry.js +0 -1
- package/dist/sankhyablocks/p-c1f88236.entry.js +0 -1
- package/dist/sankhyablocks/p-ccdd5332.entry.js +0 -1
- package/dist/sankhyablocks/p-ee9536bc.entry.js +0 -1
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/index.d.ts +0 -3
@@ -5,18 +5,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const DataFetcher = require('./DataFetcher-313debd8.js');
|
8
|
-
|
9
|
-
require('./index-
|
8
|
+
require('./pesquisa-fetcher-680e198f.js');
|
9
|
+
require('./index-1dfc7a6e.js');
|
10
10
|
const ISave = require('./ISave-e91b70a7.js');
|
11
|
+
const dataunitFetcher = require('./dataunit-fetcher-688d3f05.js');
|
11
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
12
13
|
require('./form-config-fetcher-2dd00e5b.js');
|
13
14
|
const constants = require('./constants-35ddd366.js');
|
14
15
|
const authFetcher = require('./auth-fetcher-54f5ff9d.js');
|
15
|
-
const taskbarElements = require('./taskbar-elements-
|
16
|
+
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
16
17
|
require('./PrintUtils-bcaeb82f.js');
|
17
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
18
19
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
19
20
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
21
|
+
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
20
22
|
require('./ResourceIDUtils-5ff86aa7.js');
|
21
23
|
require('./index-102ba62d.js');
|
22
24
|
|
@@ -313,7 +315,7 @@ class AnexoSistemaDataUnitFactory {
|
|
313
315
|
const { records } = dataUnit.getSelectionInfo();
|
314
316
|
const recordToDelete = records[0];
|
315
317
|
fetcher.delete(recordToDelete).then(() => {
|
316
|
-
|
318
|
+
dataunitFetcher.PreloadManager.removeRecords(dataUnit, [recordToDelete]);
|
317
319
|
return resolve(ids);
|
318
320
|
});
|
319
321
|
});
|
@@ -460,9 +462,9 @@ class AttachFetcherDataUnitFactory {
|
|
460
462
|
});
|
461
463
|
this._records = records;
|
462
464
|
}
|
463
|
-
let records =
|
464
|
-
records =
|
465
|
-
return Promise.resolve({ records, paginationInfo:
|
465
|
+
let records = dataunitFetcher.applyFilter(this._records, dataUnit, request.filters);
|
466
|
+
records = dataunitFetcher.applySorting(records, dataUnit, request.sort);
|
467
|
+
return Promise.resolve({ records, paginationInfo: dataunitFetcher.buildPaginationInfo(records, request.offset, request.limit) });
|
466
468
|
}
|
467
469
|
saveLoader(changes, fetcher) {
|
468
470
|
return new Promise((resolve) => {
|
@@ -652,26 +654,37 @@ const SnkAttach = class {
|
|
652
654
|
this._currentDataUnit = undefined;
|
653
655
|
this.crudConfig = undefined;
|
654
656
|
}
|
655
|
-
registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
656
|
-
var _a
|
657
|
-
if (
|
657
|
+
async registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
658
|
+
var _a;
|
659
|
+
if (this._currentDataUnit == null) {
|
658
660
|
this.loadAttachmentDataUnit();
|
659
661
|
}
|
660
662
|
if (oldRegisterKey !== newRegisterKey) {
|
661
|
-
this.
|
662
|
-
if (this.fetcherType === "AnexoSistema") {
|
663
|
-
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
664
|
-
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
665
|
-
return (_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData();
|
666
|
-
}
|
667
|
-
if (this.fetcherType === "Attach") {
|
668
|
-
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
669
|
-
if (hasMoreOneItem)
|
670
|
-
return;
|
671
|
-
}
|
672
|
-
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));
|
663
|
+
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadData());
|
673
664
|
}
|
674
665
|
}
|
666
|
+
async initAttach() {
|
667
|
+
var _a, _b, _c, _d, _e, _f;
|
668
|
+
if (!this.fetcherType && !this.registerKey)
|
669
|
+
return;
|
670
|
+
if (!this.fetcherType) {
|
671
|
+
this.fetcherType = "AnexoSistema";
|
672
|
+
}
|
673
|
+
this.returnToGridMode();
|
674
|
+
if (this.fetcherType === "AnexoSistema") {
|
675
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
676
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
677
|
+
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
678
|
+
return;
|
679
|
+
}
|
680
|
+
if (this.fetcherType === "Attach") {
|
681
|
+
const hasMoreOneItem = ((_d = this.registerKey) === null || _d === void 0 ? void 0 : _d.split("_").length) > 1;
|
682
|
+
if (hasMoreOneItem)
|
683
|
+
return;
|
684
|
+
}
|
685
|
+
await ((_e = this._currentDataUnit) === null || _e === void 0 ? void 0 : _e.loadMetadata());
|
686
|
+
await ((_f = this._currentDataUnit) === null || _f === void 0 ? void 0 : _f.loadData(undefined, undefined, true, this.registerKey));
|
687
|
+
}
|
675
688
|
/**
|
676
689
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
677
690
|
* através de um pequeno modulo na estrutura da aplicação:
|
@@ -709,14 +722,14 @@ const SnkAttach = class {
|
|
709
722
|
if (this._crudElement)
|
710
723
|
this._crudElement.goToView(constants.VIEW_MODE.GRID);
|
711
724
|
}
|
712
|
-
loadAttachmentDataUnit() {
|
725
|
+
async loadAttachmentDataUnit() {
|
713
726
|
try {
|
714
727
|
switch (this.fetcherType) {
|
715
728
|
case "AnexoSistema":
|
716
|
-
this.loadAnexoSistema();
|
729
|
+
await this.loadAnexoSistema();
|
717
730
|
break;
|
718
731
|
case "Attach":
|
719
|
-
this.loadAttach();
|
732
|
+
await this.loadAttach();
|
720
733
|
break;
|
721
734
|
default:
|
722
735
|
this._currentFetcher = this.fetcher;
|
@@ -728,28 +741,29 @@ const SnkAttach = class {
|
|
728
741
|
throw new Error('There was an error while creating the data unit');
|
729
742
|
}
|
730
743
|
}
|
731
|
-
loadAnexoSistema() {
|
732
|
-
var _a;
|
733
|
-
this._currentDataUnit =
|
744
|
+
async loadAnexoSistema() {
|
745
|
+
var _a, _b, _c;
|
746
|
+
this._currentDataUnit = new dataunitFetcher.DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
734
747
|
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
735
748
|
if (!this._currentDataUnit.metadata) {
|
736
|
-
this._currentDataUnit
|
737
|
-
|
738
|
-
.then(() => this.crudConfig = Object.assign({}, anexoSistemaCrudConfig));
|
749
|
+
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata());
|
750
|
+
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
739
751
|
}
|
740
|
-
this.
|
752
|
+
this.initDataUnitLoaders();
|
741
753
|
this._currentDataUnit.addFilterProvider({
|
742
754
|
getFilter: () => this._currentDataUnitBuilder.getFilters(this.registerKey)
|
743
755
|
});
|
744
756
|
this._currentDataUnit.addInterceptor({
|
745
757
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
746
758
|
});
|
747
|
-
this._currentDataUnit.loadData()
|
759
|
+
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
760
|
+
this.disableEditFieldsNotInForm();
|
748
761
|
}
|
749
|
-
loadAttach() {
|
750
|
-
var _a, _b
|
762
|
+
async loadAttach() {
|
763
|
+
var _a, _b;
|
751
764
|
this._currentFetcher = new AttachFetcher();
|
752
|
-
this._currentDataUnit = new core.DataUnit(
|
765
|
+
this._currentDataUnit = new core.DataUnit(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
766
|
+
this.initDataUnitLoaders();
|
753
767
|
this._currentDataUnit.addInterceptor({
|
754
768
|
interceptAction: (action) => {
|
755
769
|
var _a;
|
@@ -760,16 +774,26 @@ const SnkAttach = class {
|
|
760
774
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
761
775
|
}
|
762
776
|
});
|
763
|
-
this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
|
764
|
-
(_a = this._currentDataUnitBuilder) === null || _a === void 0 ? void 0 : _a.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
|
765
|
-
this.returnToGridMode();
|
766
|
-
await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
|
767
|
-
});
|
768
777
|
if (!this._currentDataUnit.metadata) {
|
769
|
-
|
770
|
-
|
771
|
-
|
772
|
-
|
778
|
+
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
779
|
+
this.crudConfig = Object.assign({}, attachCrudConfig);
|
780
|
+
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
|
781
|
+
this.disableEditFieldsNotInForm();
|
782
|
+
}
|
783
|
+
}
|
784
|
+
initDataUnitLoaders() {
|
785
|
+
var _a, _b, _c;
|
786
|
+
if (this.fetcherType === "AnexoSistema") {
|
787
|
+
this._currentFetcher = new AnexoSistemaFetcher(this.entityName, this.registerKey, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
788
|
+
this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
|
789
|
+
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
790
|
+
}
|
791
|
+
if (this.fetcherType === "Attach") {
|
792
|
+
this._currentFetcher = new AttachFetcher();
|
793
|
+
this._currentDataUnitBuilder = new AttachFetcherDataUnitFactory(this.getMessage.bind(this));
|
794
|
+
(_c = this._currentDataUnitBuilder) === null || _c === void 0 ? void 0 : _c.initLoaders(this._currentDataUnit, this._currentFetcher, async () => {
|
795
|
+
this.returnToGridMode();
|
796
|
+
await this._currentDataUnit.loadData(undefined, undefined, true, this.registerKey);
|
773
797
|
});
|
774
798
|
}
|
775
799
|
}
|
@@ -783,8 +807,9 @@ const SnkAttach = class {
|
|
783
807
|
}
|
784
808
|
});
|
785
809
|
}
|
786
|
-
componentWillLoad() {
|
810
|
+
async componentWillLoad() {
|
787
811
|
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
812
|
+
await this.initAttach();
|
788
813
|
}
|
789
814
|
componentWillRender() {
|
790
815
|
if (!this.fetcherType) {
|
@@ -4,13 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const taskbarElements = require('./taskbar-elements-
|
7
|
+
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
8
8
|
require('./DataFetcher-313debd8.js');
|
9
|
-
require('./pesquisa-fetcher-
|
10
|
-
const index$1 = require('./index-
|
9
|
+
require('./pesquisa-fetcher-680e198f.js');
|
10
|
+
const index$1 = require('./index-1dfc7a6e.js');
|
11
11
|
require('./ISave-e91b70a7.js');
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
|
+
require('./dataunit-fetcher-688d3f05.js');
|
14
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
16
|
require('./form-config-fetcher-2dd00e5b.js');
|
16
17
|
const constants = require('./constants-35ddd366.js');
|
@@ -18,6 +19,7 @@ const authFetcher = require('./auth-fetcher-54f5ff9d.js');
|
|
18
19
|
require('./index-102ba62d.js');
|
19
20
|
require('./PrintUtils-bcaeb82f.js');
|
20
21
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
22
|
+
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
21
23
|
require('./ResourceIDUtils-5ff86aa7.js');
|
22
24
|
|
23
25
|
const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%}";
|
@@ -29,8 +31,11 @@ const SnkCrud = class {
|
|
29
31
|
this.configuratorSave = index.createEvent(this, "configuratorSave", 7);
|
30
32
|
this.configuratorCancel = index.createEvent(this, "configuratorCancel", 7);
|
31
33
|
this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
|
34
|
+
this.viewModeChanged = index.createEvent(this, "viewModeChanged", 7);
|
32
35
|
this._keyDownHandler = async (event) => this.keyDownListener(event);
|
33
36
|
this._viewHistory = [];
|
37
|
+
this._customEditors = new Map();
|
38
|
+
this._customRenders = new Map();
|
34
39
|
this._dataUnit = undefined;
|
35
40
|
this._dataState = undefined;
|
36
41
|
this.attachmentRegisterKey = undefined;
|
@@ -53,6 +58,10 @@ const SnkCrud = class {
|
|
53
58
|
this.filterBarLegacyConfigName = undefined;
|
54
59
|
this.formLegacyConfigName = undefined;
|
55
60
|
this.disablePersonalizedFilter = undefined;
|
61
|
+
this.autoLoad = undefined;
|
62
|
+
this.autoFocus = true;
|
63
|
+
this.domainMessagesBuilder = undefined;
|
64
|
+
this.setCustomFormTitle = undefined;
|
56
65
|
this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${core.StringUtils.generateUUID()}`;
|
57
66
|
}
|
58
67
|
/**
|
@@ -88,6 +97,49 @@ const SnkCrud = class {
|
|
88
97
|
async getFilterBar() {
|
89
98
|
return await this._snkGrid.getFilterBar();
|
90
99
|
}
|
100
|
+
/**
|
101
|
+
* Registra um editor customizado para campos da grade e formulário.
|
102
|
+
*/
|
103
|
+
async addCustomEditor(fieldName, customEditor) {
|
104
|
+
if (this._guidesViewer && this._snkGrid) {
|
105
|
+
this._guidesViewer.addCustomEditor(fieldName, customEditor);
|
106
|
+
this._snkGrid.addCustomEditor(fieldName, customEditor);
|
107
|
+
return;
|
108
|
+
}
|
109
|
+
const newCustomEditors = new Map(this._customEditors);
|
110
|
+
newCustomEditors.set(fieldName, customEditor);
|
111
|
+
this._customEditors = newCustomEditors;
|
112
|
+
}
|
113
|
+
/**
|
114
|
+
* Registra um render customizado para colunas da grid.
|
115
|
+
*/
|
116
|
+
async addGridCustomRender(fieldName, customRender) {
|
117
|
+
if (this._snkGrid) {
|
118
|
+
this._snkGrid.addGridCustomRender(fieldName, customRender);
|
119
|
+
return;
|
120
|
+
}
|
121
|
+
const newCustomRenders = new Map(this._customRenders);
|
122
|
+
newCustomRenders.set(fieldName, customRender);
|
123
|
+
this._customRenders = newCustomRenders;
|
124
|
+
}
|
125
|
+
/**
|
126
|
+
* Registra um formatador de valores para uma coluna da grid.
|
127
|
+
*/
|
128
|
+
async addCustomValueFormatter(columnName, customFormatter) {
|
129
|
+
this._snkGrid.addCustomValueFormatter(columnName, customFormatter);
|
130
|
+
}
|
131
|
+
/**
|
132
|
+
* Remove o formatador de valores de uma coluna da grid.
|
133
|
+
*/
|
134
|
+
async removeCustomValueFormatter(columnName) {
|
135
|
+
this._snkGrid.removeCustomValueFormatter(columnName);
|
136
|
+
}
|
137
|
+
/**
|
138
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
139
|
+
*/
|
140
|
+
async setFieldProp(fieldName, propName, value) {
|
141
|
+
await this._guidesViewer.setFieldProp(fieldName, propName, value);
|
142
|
+
}
|
91
143
|
currentViewModeWatcher(currentView) {
|
92
144
|
this._viewHistory = [...this._viewHistory.slice(-1), currentView];
|
93
145
|
}
|
@@ -118,6 +170,7 @@ const SnkCrud = class {
|
|
118
170
|
else if (viewMode === constants.VIEW_MODE.FORM) {
|
119
171
|
this._guidesViewer.setFocus();
|
120
172
|
}
|
173
|
+
this.viewModeChanged.emit(viewMode);
|
121
174
|
}
|
122
175
|
openConfig(viewMode) {
|
123
176
|
this._snkConfigurator.close();
|
@@ -147,6 +200,29 @@ const SnkCrud = class {
|
|
147
200
|
const joinedPrimaryKeys = recordCriteria.map(({ value }) => value).join('_');
|
148
201
|
return joinedPrimaryKeys;
|
149
202
|
}
|
203
|
+
setCustomRenders() {
|
204
|
+
if (!this._snkGrid) {
|
205
|
+
return;
|
206
|
+
}
|
207
|
+
for (const [fieldName, customRender] of this._customRenders) {
|
208
|
+
this._snkGrid.addGridCustomRender(fieldName, customRender);
|
209
|
+
this._customRenders.delete(fieldName);
|
210
|
+
}
|
211
|
+
}
|
212
|
+
setCustomEditors() {
|
213
|
+
if (!this._snkGrid || !this._guidesViewer) {
|
214
|
+
return;
|
215
|
+
}
|
216
|
+
for (const [fieldName, customEditor] of this._customEditors) {
|
217
|
+
this._guidesViewer.addCustomEditor(fieldName, customEditor);
|
218
|
+
this._snkGrid.addCustomEditor(fieldName, customEditor);
|
219
|
+
this._customEditors.delete(fieldName);
|
220
|
+
}
|
221
|
+
}
|
222
|
+
componentDidRender() {
|
223
|
+
this.setCustomRenders();
|
224
|
+
this.setCustomEditors();
|
225
|
+
}
|
150
226
|
componentWillLoad() {
|
151
227
|
this._application = core.ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
152
228
|
let parent = this._element.parentElement;
|
@@ -158,6 +234,7 @@ const SnkCrud = class {
|
|
158
234
|
this._snkDataUnit = parent;
|
159
235
|
this._snkDataUnit.addEventListener("insertionMode", () => this.insertionModeHandler());
|
160
236
|
this._snkDataUnit.addEventListener("cancelEdition", () => this.cancelHandler());
|
237
|
+
this._snkDataUnit.domainMessagesBuilder = this.domainMessagesBuilder;
|
161
238
|
this._dataUnit = this._snkDataUnit.dataUnit;
|
162
239
|
this._dataState = this._snkDataUnit.dataState;
|
163
240
|
if (!this._dataUnit) {
|
@@ -169,12 +246,7 @@ const SnkCrud = class {
|
|
169
246
|
else {
|
170
247
|
this.initDataUnit();
|
171
248
|
}
|
172
|
-
this._snkDataUnit.addEventListener("dataStateChange",
|
173
|
-
this._dataState = dataState;
|
174
|
-
if (dataState.selectedRecord !== undefined) {
|
175
|
-
this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
|
176
|
-
}
|
177
|
-
});
|
249
|
+
this._snkDataUnit.addEventListener("dataStateChange", this.handleDataStateChange.bind(this));
|
178
250
|
break;
|
179
251
|
}
|
180
252
|
parent = parent.parentElement;
|
@@ -190,6 +262,25 @@ const SnkCrud = class {
|
|
190
262
|
this.removeShortcuts();
|
191
263
|
window.removeEventListener("keydown", this._keyDownHandler);
|
192
264
|
}
|
265
|
+
async handleDataStateChange(evt) {
|
266
|
+
var _a;
|
267
|
+
this._dataState = evt.detail;
|
268
|
+
if (this._dataState.selectedRecord !== undefined) {
|
269
|
+
this.attachmentRegisterKey = await this.getAttachmentRegisterKey();
|
270
|
+
}
|
271
|
+
const fieldsWithRmPrecision = await this._snkDataUnit.getFieldsWithRmPrecision();
|
272
|
+
for (const field of fieldsWithRmPrecision || []) {
|
273
|
+
if (!field) {
|
274
|
+
continue;
|
275
|
+
}
|
276
|
+
const rmPrecision = (_a = this._dataState.rowMetadata) === null || _a === void 0 ? void 0 : _a.getProp('rm_precision', field);
|
277
|
+
if (!rmPrecision && rmPrecision !== 0) {
|
278
|
+
continue;
|
279
|
+
}
|
280
|
+
await this.setFieldProp(field, 'precision', rmPrecision);
|
281
|
+
await this.setFieldProp(field, 'prettyPrecision', rmPrecision);
|
282
|
+
}
|
283
|
+
}
|
193
284
|
async initKeyboardManager() {
|
194
285
|
var _a;
|
195
286
|
const keyboardManager = await ((_a = this._application) === null || _a === void 0 ? void 0 : _a.getKeyboardManager());
|
@@ -309,7 +400,7 @@ const SnkCrud = class {
|
|
309
400
|
return;
|
310
401
|
}
|
311
402
|
this._snkDataUnit.ignoreSaveMessage = this._currentViewMode === constants.VIEW_MODE.GRID;
|
312
|
-
return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.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 }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.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 }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.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 })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
403
|
+
return (index.h(index.Host, null, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, index.h("stack-item", null, index.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 }, index.h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkGridHeader" }), index.h("slot", { name: "SnkGridFooter" }), index.h("slot", { name: "SnkGridTaskBar" }))), index.h("stack-item", null, index.h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(constants.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 }, index.h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "SnkFormTaskBar" }))), index.h("stack-item", null, index.h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), index.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 })), index.h("div", { id: `${this.customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }), index.h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), index.h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
|
313
404
|
}
|
314
405
|
get _element() { return index.getElement(this); }
|
315
406
|
static get watchers() { return {
|