@sankhyalabs/sankhyablocks 8.16.0-dev.80 → 8.16.0-dev.82
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/{ContinuousInsertUtils-c27b439e.js → ClientSideExporterProvider-6b781452.js} +70 -1
- package/dist/cjs/IFetchDataExporterParams-e78ec415.js +8 -0
- package/dist/cjs/{index-1dfc7a6e.js → index-e3e39724.js} +5 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_5.cjs.entry.js +1 -1
- package/dist/cjs/snk-attach.cjs.entry.js +2 -2
- package/dist/cjs/snk-crud.cjs.entry.js +2 -2
- package/dist/cjs/snk-data-exporter.cjs.entry.js +11 -14
- package/dist/cjs/snk-detail-view.cjs.entry.js +3 -3
- package/dist/cjs/snk-grid.cjs.entry.js +14 -10
- package/dist/cjs/{snk-guides-viewer-bff0d27d.js → snk-guides-viewer-a029ff50.js} +2 -2
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +29 -83
- package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
- package/dist/cjs/{taskbar-elements-9ad1f9c0.js → taskbar-elements-7e19882d.js} +1 -1
- package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js +3 -9
- package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +17 -5
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +7 -4
- package/dist/collection/components/snk-grid/snk-grid.js +29 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +25 -8
- package/dist/collection/lib/@types/index.js +5 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.js +6 -1
- package/dist/components/ContinuousInsertUtils.js +70 -2
- package/dist/components/ISave.js +6 -1
- package/dist/components/snk-data-exporter2.js +17 -14
- package/dist/components/snk-grid2.js +7 -3
- package/dist/components/snk-simple-crud2.js +10 -66
- package/dist/esm/{ContinuousInsertUtils-6bf78c5e.js → ClientSideExporterProvider-ff89c7e9.js} +70 -2
- package/dist/esm/IFetchDataExporterParams-d73bed3d.js +8 -0
- package/dist/esm/{index-3aa4977a.js → index-b40568ff.js} +6 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_5.entry.js +1 -1
- package/dist/esm/snk-attach.entry.js +2 -2
- package/dist/esm/snk-crud.entry.js +2 -2
- package/dist/esm/snk-data-exporter.entry.js +11 -14
- package/dist/esm/snk-detail-view.entry.js +3 -3
- package/dist/esm/snk-grid.entry.js +8 -4
- package/dist/esm/{snk-guides-viewer-454ebc07.js → snk-guides-viewer-fa45714d.js} +2 -2
- package/dist/esm/snk-guides-viewer.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +12 -66
- package/dist/esm/snk-taskbar.entry.js +2 -2
- package/dist/esm/{taskbar-elements-d59867f1.js → taskbar-elements-d2353c64.js} +1 -1
- package/dist/sankhyablocks/{p-643b2aaa.entry.js → p-0b00d69c.entry.js} +1 -1
- package/dist/sankhyablocks/p-0f3698af.js +1 -0
- package/dist/sankhyablocks/{p-9a99c67b.entry.js → p-172848d4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ae26e8d0.entry.js → p-38c062b1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7e7a7473.js → p-3fc82614.js} +1 -1
- package/dist/sankhyablocks/p-40e323f9.js +1 -0
- package/dist/sankhyablocks/p-700a4cc3.entry.js +1 -0
- package/dist/sankhyablocks/p-8f3f2306.js +1 -0
- package/dist/sankhyablocks/p-a5e37c67.entry.js +1 -0
- package/dist/sankhyablocks/{p-28ca3908.entry.js → p-a962a3e4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-73b037a8.entry.js → p-b02e58fd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-50bf8dbc.entry.js → p-b0ff53b7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-91e34755.entry.js → p-c82deea7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bd234604.entry.js → p-d2d0535f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-478ab2b6.js → p-de9da2f2.js} +1 -1
- package/dist/sankhyablocks/p-e36f89d1.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-data-exporter/data/export-result.d.ts +2 -1
- package/dist/types/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.d.ts +0 -1
- package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +2 -1
- package/dist/types/components/snk-data-exporter/interfaces/IRecordID.d.ts +1 -0
- package/dist/types/components/snk-data-exporter/providers/ClientSideExporterProvider.d.ts +3 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +5 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -1
- package/dist/types/components.d.ts +11 -1
- package/dist/types/lib/@types/index.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams.d.ts +5 -1
- package/package.json +1 -1
- package/dist/sankhyablocks/p-03e6825e.js +0 -1
- package/dist/sankhyablocks/p-30cf616e.js +0 -1
- package/dist/sankhyablocks/p-6fc8bfa2.entry.js +0 -1
- package/dist/sankhyablocks/p-8ad7c8bc.entry.js +0 -1
- package/dist/sankhyablocks/p-a04f38aa.entry.js +0 -1
|
@@ -5,11 +5,11 @@ const core = require('@sankhyalabs/core');
|
|
|
5
5
|
const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
|
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
7
7
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
|
8
|
+
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
9
9
|
const constants = require('./constants-241934b3.js');
|
|
10
10
|
require('./DataFetcher-65879b2c.js');
|
|
11
11
|
require('./pesquisa-fetcher-5c583c93.js');
|
|
12
|
-
const index$1 = require('./index-
|
|
12
|
+
const index$1 = require('./index-e3e39724.js');
|
|
13
13
|
require('./ISave-e91b70a7.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-a029ff50.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('./SnkFormConfigManager-c11d8468.js');
|
|
@@ -15,8 +15,8 @@ require('./filter-item-type.enum-a7ffdaa6.js');
|
|
|
15
15
|
require('./constants-241934b3.js');
|
|
16
16
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
17
17
|
require('./field-search-68e34bf4.js');
|
|
18
|
-
require('./taskbar-elements-
|
|
19
|
-
require('./index-
|
|
18
|
+
require('./taskbar-elements-7e19882d.js');
|
|
19
|
+
require('./index-e3e39724.js');
|
|
20
20
|
require('./index-102ba62d.js');
|
|
21
21
|
require('./pesquisa-fetcher-5c583c93.js');
|
|
22
22
|
require('./ISave-e91b70a7.js');
|
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const pesquisaFetcher = require('./pesquisa-fetcher-5c583c93.js');
|
|
8
8
|
require('./DataFetcher-65879b2c.js');
|
|
9
|
-
require('./index-
|
|
9
|
+
require('./index-e3e39724.js');
|
|
10
10
|
require('./ISave-e91b70a7.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index
|
|
5
|
+
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const constants = require('./constants-241934b3.js');
|
|
9
|
-
const taskbarElements = require('./taskbar-elements-
|
|
9
|
+
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
10
10
|
require('./DataFetcher-65879b2c.js');
|
|
11
11
|
require('./pesquisa-fetcher-5c583c93.js');
|
|
12
|
-
const
|
|
13
|
-
const index = require('./index-
|
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-6b781452.js');
|
|
13
|
+
const index$1 = require('./index-e3e39724.js');
|
|
14
14
|
require('./ISave-e91b70a7.js');
|
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -20,10 +20,11 @@ const formConfigFetcher = require('./form-config-fetcher-90126e4c.js');
|
|
|
20
20
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
21
21
|
const ConfigStorage = require('./ConfigStorage-d024aec8.js');
|
|
22
22
|
const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
|
|
23
|
-
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
24
23
|
const index$2 = require('./index-102ba62d.js');
|
|
25
24
|
require('./PrintUtils-bcaeb82f.js');
|
|
26
25
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
26
|
+
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
27
|
+
require('./IFetchDataExporterParams-e78ec415.js');
|
|
27
28
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
28
29
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
29
30
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
@@ -31,73 +32,18 @@ require('./ResourceIDUtils-5ff86aa7.js');
|
|
|
31
32
|
const REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "MORE_OPTIONS"];
|
|
32
33
|
const REGULAR_SELECTED_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "DIVIDER", "MORE_OPTIONS"];
|
|
33
34
|
|
|
34
|
-
class ClientSideExporterProvider extends ContinuousInsertUtils.CommonsExporter {
|
|
35
|
-
getSelectedNumber() {
|
|
36
|
-
return this.dataUnit.getSelectionInfo().length;
|
|
37
|
-
}
|
|
38
|
-
getTotalRecords() {
|
|
39
|
-
var _a, _b, _c;
|
|
40
|
-
const { total } = ((_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getPaginationInfo()) || {};
|
|
41
|
-
return total !== null && total !== void 0 ? total : (_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
|
|
42
|
-
}
|
|
43
|
-
getSelectedIDs() {
|
|
44
|
-
return GetSelectedRecordsIDsInfo.getSelectedRecordsIDsInfo(this.dataUnit);
|
|
45
|
-
}
|
|
46
|
-
getRecordID() {
|
|
47
|
-
var _a, _b, _c;
|
|
48
|
-
return (_c = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.__record__id__;
|
|
49
|
-
}
|
|
50
|
-
async getRecords() {
|
|
51
|
-
if (this.dataUnit.records.length === 0) {
|
|
52
|
-
return Promise.resolve([]);
|
|
53
|
-
}
|
|
54
|
-
const selectionInfo = this.dataUnit.getSelectionInfo();
|
|
55
|
-
const records = selectionInfo.isEmpty() || selectionInfo.isAllRecords() ? await selectionInfo.getAllRecords() : selectionInfo.records;
|
|
56
|
-
return Promise.resolve(records == undefined ? [] : records);
|
|
57
|
-
}
|
|
58
|
-
getHiddenOptions() {
|
|
59
|
-
return [
|
|
60
|
-
index.DataExporterOption.EXPORT_BY_EMAIL,
|
|
61
|
-
index.DataExporterOption.EXPORT_PDF_TO_EMAIL,
|
|
62
|
-
index.DataExporterOption.EXPORT_XLS_TO_EMAIL,
|
|
63
|
-
index.DataExporterOption.EXPORT_PAGE_TO_PDF,
|
|
64
|
-
index.DataExporterOption.EXPORT_PAGE_TO_XLS
|
|
65
|
-
];
|
|
66
|
-
}
|
|
67
|
-
formatValue(record, column) {
|
|
68
|
-
const { id, descriptionFrom } = column;
|
|
69
|
-
const value = record[descriptionFrom || id];
|
|
70
|
-
if (value == undefined) {
|
|
71
|
-
return "";
|
|
72
|
-
}
|
|
73
|
-
if (descriptionFrom != undefined) {
|
|
74
|
-
return value.label;
|
|
75
|
-
}
|
|
76
|
-
const fieldDescriptor = this.dataUnit.getField(id);
|
|
77
|
-
if (fieldDescriptor.userInterface === core.UserInterface.SEARCH) {
|
|
78
|
-
return value.value;
|
|
79
|
-
}
|
|
80
|
-
if (column.customFormatter) {
|
|
81
|
-
const ezGridColumn = this.getColumnsState().find(columnState => column.id === columnState.name);
|
|
82
|
-
const formattedValue = column.customFormatter.format(value, ezGridColumn, record.__record__id__);
|
|
83
|
-
return formattedValue;
|
|
84
|
-
}
|
|
85
|
-
return this.dataUnit.getFormattedValue(id, value);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
|
|
89
35
|
const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%;--snk-simple-crud-grid--min-height:300px}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:auto 1fr;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}.simple-crud__form--hidden.sc-snk-simple-crud{display:none}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;--ez-grid__container--shadow--outline:none;--ez-grid--min-height:var(--snk-simple-crud-grid--min-height)}ez-form.sc-snk-simple-crud{min-height:300px}";
|
|
90
36
|
|
|
91
37
|
const SnkSimpleCrud = class {
|
|
92
38
|
constructor(hostRef) {
|
|
93
|
-
index
|
|
94
|
-
this.dataStateChange = index
|
|
95
|
-
this.dataUnitReady = index
|
|
96
|
-
this.actionClick = index
|
|
97
|
-
this.formItemsReady = index
|
|
98
|
-
this.configuratorSave = index
|
|
99
|
-
this.configuratorCancel = index
|
|
100
|
-
this._multiSelectionListDataSource = new
|
|
39
|
+
index.registerInstance(this, hostRef);
|
|
40
|
+
this.dataStateChange = index.createEvent(this, "dataStateChange", 3);
|
|
41
|
+
this.dataUnitReady = index.createEvent(this, "dataUnitReady", 3);
|
|
42
|
+
this.actionClick = index.createEvent(this, "actionClick", 7);
|
|
43
|
+
this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
|
|
44
|
+
this.configuratorSave = index.createEvent(this, "configuratorSave", 7);
|
|
45
|
+
this.configuratorCancel = index.createEvent(this, "configuratorCancel", 7);
|
|
46
|
+
this._multiSelectionListDataSource = new ClientSideExporterProvider.SnkMultiSelectionListDataSource();
|
|
101
47
|
this._keyDownHandler = (event) => this.keyDownListener(event);
|
|
102
48
|
this._formConfigFetcher = new formConfigFetcher.FormConfigFetcher();
|
|
103
49
|
this._customEditors = new Map();
|
|
@@ -124,7 +70,7 @@ const SnkSimpleCrud = class {
|
|
|
124
70
|
this.formConfig = undefined;
|
|
125
71
|
this._formFields = [];
|
|
126
72
|
this._fieldsProps = new Map();
|
|
127
|
-
this.
|
|
73
|
+
this.enableContinuousInsert = false;
|
|
128
74
|
this.multipleSelection = undefined;
|
|
129
75
|
this.useCancelConfirm = true;
|
|
130
76
|
this.pageSize = 150;
|
|
@@ -408,10 +354,10 @@ const SnkSimpleCrud = class {
|
|
|
408
354
|
this.processMetadata();
|
|
409
355
|
this.onModeChange();
|
|
410
356
|
this.configDatasource();
|
|
411
|
-
this._rmPrecisionCustomValueFormatter = new
|
|
412
|
-
this._continuousInsertUtils = new
|
|
357
|
+
this._rmPrecisionCustomValueFormatter = new ClientSideExporterProvider.RmPrecisionCustomValueFormatter();
|
|
358
|
+
this._continuousInsertUtils = new ClientSideExporterProvider.ContinuousInsertUtils(this.application, this.resolveResourceID(), this.configName);
|
|
413
359
|
if (this.enableGridInsert) {
|
|
414
|
-
this._continuousInsertUtils.getConfig().then(value => this.
|
|
360
|
+
this._continuousInsertUtils.getConfig().then(value => this.enableContinuousInsert = value);
|
|
415
361
|
}
|
|
416
362
|
}
|
|
417
363
|
componentDidLoad() {
|
|
@@ -663,9 +609,9 @@ const SnkSimpleCrud = class {
|
|
|
663
609
|
: this.getFieldSearch(actionButton, item)
|
|
664
610
|
}];
|
|
665
611
|
if (this.enableGridInsert) {
|
|
666
|
-
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this.
|
|
667
|
-
this.
|
|
668
|
-
this._continuousInsertUtils.handleSaveConfig(this.
|
|
612
|
+
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this.enableContinuousInsert, () => {
|
|
613
|
+
this.enableContinuousInsert = !this.enableContinuousInsert;
|
|
614
|
+
this._continuousInsertUtils.handleSaveConfig(this.enableContinuousInsert);
|
|
669
615
|
}));
|
|
670
616
|
}
|
|
671
617
|
if (this.isGridInsertActive())
|
|
@@ -680,8 +626,8 @@ const SnkSimpleCrud = class {
|
|
|
680
626
|
}
|
|
681
627
|
getTopTaskBarId() {
|
|
682
628
|
var _a;
|
|
683
|
-
return ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? `snkGridTopTaskbar.finish_edition${index.PresentationMode.PRIMARY}` :
|
|
684
|
-
`snkGridTopTaskbar.regular${index.PresentationMode.PRIMARY}`;
|
|
629
|
+
return ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? `snkGridTopTaskbar.finish_edition${index$1.PresentationMode.PRIMARY}` :
|
|
630
|
+
`snkGridTopTaskbar.regular${index$1.PresentationMode.PRIMARY}`;
|
|
685
631
|
}
|
|
686
632
|
async keyDownListener(event) {
|
|
687
633
|
if (!event.ctrlKey || event.key == undefined || event.key.toUpperCase() !== "F") {
|
|
@@ -744,7 +690,7 @@ const SnkSimpleCrud = class {
|
|
|
744
690
|
if (this._grid == undefined) {
|
|
745
691
|
return;
|
|
746
692
|
}
|
|
747
|
-
const dataExporterProvider = new ClientSideExporterProvider(this.dataUnit, this._grid);
|
|
693
|
+
const dataExporterProvider = new ClientSideExporterProvider.ClientSideExporterProvider(this.dataUnit, this._grid);
|
|
748
694
|
index$2.store.set("exporterProviders", Object.assign(Object.assign({}, index$2.store.get("exporterProviders")), { [this.getDataExporterStoreKey()]: dataExporterProvider }));
|
|
749
695
|
}
|
|
750
696
|
getDataExporterStoreKey() {
|
|
@@ -752,7 +698,7 @@ const SnkSimpleCrud = class {
|
|
|
752
698
|
}
|
|
753
699
|
setGridConfig(config) {
|
|
754
700
|
this.gridConfig = config;
|
|
755
|
-
|
|
701
|
+
ClientSideExporterProvider.CrudUtils.assertDefaultSorting(this.gridConfig, this.dataUnit);
|
|
756
702
|
}
|
|
757
703
|
setFormConfig(config, forceUpdate) {
|
|
758
704
|
if (this.formConfig && !forceUpdate)
|
|
@@ -823,7 +769,7 @@ const SnkSimpleCrud = class {
|
|
|
823
769
|
}
|
|
824
770
|
renderTaskbarContent() {
|
|
825
771
|
var _a;
|
|
826
|
-
return (index
|
|
772
|
+
return (index.h("snk-taskbar", { class: this._currentViewMode === constants.VIEW_MODE.FORM && `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow-xsmall'} ez-padding--small`, dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, "data-exporter-store-key": this.getDataExporterStoreKey(), slot: "leftButtons", presentationMode: index$1.PresentationMode.SECONDARY }, index.h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })));
|
|
827
773
|
}
|
|
828
774
|
/* istanbul ignore next */
|
|
829
775
|
render() {
|
|
@@ -831,11 +777,11 @@ const SnkSimpleCrud = class {
|
|
|
831
777
|
if (this.dataUnit == undefined) {
|
|
832
778
|
return;
|
|
833
779
|
}
|
|
834
|
-
return (index
|
|
780
|
+
return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === constants.VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section` }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
|
835
781
|
? undefined
|
|
836
|
-
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.
|
|
782
|
+
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
|
837
783
|
}
|
|
838
|
-
get _element() { return index
|
|
784
|
+
get _element() { return index.getElement(this); }
|
|
839
785
|
static get watchers() { return {
|
|
840
786
|
"resourceID": ["handleResourceIDChanged"],
|
|
841
787
|
"entityName": ["onChangeEntityName"],
|
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
|
9
|
-
const index$1 = require('./index-
|
|
8
|
+
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
9
|
+
const index$1 = require('./index-e3e39724.js');
|
|
10
10
|
require('./index-102ba62d.js');
|
|
11
11
|
|
|
12
12
|
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex;flex-wrap:wrap}.no-wrap.sc-snk-taskbar-h{flex-wrap:nowrap}.full-width.sc-snk-taskbar-h{width:100%}.align-right.sc-snk-taskbar-h{justify-content:flex-end}.overflowed.sc-snk-taskbar{display:none}";
|
package/dist/collection/components/snk-data-exporter/exporter-strategy/ClientSideExporterStrategy.js
CHANGED
|
@@ -10,17 +10,11 @@ export default class ClientSideExporterStrategy {
|
|
|
10
10
|
const visibleColumns = getVisibleColumns(columns);
|
|
11
11
|
return visibleColumns;
|
|
12
12
|
}
|
|
13
|
-
async getColumns(resolveProps) {
|
|
14
|
-
var _a;
|
|
15
|
-
if ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) {
|
|
16
|
-
return await this.getParsedColumns();
|
|
17
|
-
}
|
|
18
|
-
return await this._provider.getColumnsMetadata();
|
|
19
|
-
}
|
|
20
13
|
async executeExport(resolveProps) {
|
|
14
|
+
var _a;
|
|
21
15
|
const { methodName, gridTitle } = resolveProps;
|
|
22
|
-
const records = await this._provider.getRecords();
|
|
23
|
-
const columns = await this.
|
|
16
|
+
const records = await this._provider.getRecords(resolveProps.type);
|
|
17
|
+
const columns = ((_a = getOptionKey(resolveProps === null || resolveProps === void 0 ? void 0 : resolveProps.exportOption)) === null || _a === void 0 ? void 0 : _a.includes("PDF")) ? await this.getParsedColumns() : await this._provider.getColumnsMetadata();
|
|
24
18
|
const [serviceName, processor] = this.getExecutor(methodName);
|
|
25
19
|
const payload = {
|
|
26
20
|
serviceName,
|
package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js
CHANGED
|
@@ -2,6 +2,7 @@ import { CommonsExporter } from "../interfaces/IExporterProvider";
|
|
|
2
2
|
import { UserInterface } from "@sankhyalabs/core";
|
|
3
3
|
import { getSelectedRecordsIDsInfo as getSelectedIDs } from '../../../lib/utils/GetSelectedRecordsIDsInfo';
|
|
4
4
|
import { DataExporterOption } from "../../../lib/@types";
|
|
5
|
+
import { IExportType } from "../../../lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams";
|
|
5
6
|
export default class ClientSideExporterProvider extends CommonsExporter {
|
|
6
7
|
getSelectedNumber() {
|
|
7
8
|
return this.dataUnit.getSelectionInfo().length;
|
|
@@ -18,13 +19,24 @@ export default class ClientSideExporterProvider extends CommonsExporter {
|
|
|
18
19
|
var _a, _b, _c;
|
|
19
20
|
return (_c = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.records) === null || _b === void 0 ? void 0 : _b[0]) === null || _c === void 0 ? void 0 : _c.__record__id__;
|
|
20
21
|
}
|
|
21
|
-
async getRecords() {
|
|
22
|
-
if (this.dataUnit.records.length === 0)
|
|
23
|
-
return
|
|
22
|
+
async getRecords(exportType) {
|
|
23
|
+
if (this.dataUnit.records.length === 0)
|
|
24
|
+
return [];
|
|
25
|
+
switch (exportType) {
|
|
26
|
+
case IExportType.ALL:
|
|
27
|
+
return this.dataUnit.getSelectionInfo().getAllRecords();
|
|
28
|
+
case IExportType.SELECTION:
|
|
29
|
+
return this.resolveRecordsFromSelection();
|
|
30
|
+
case IExportType.PAGE:
|
|
31
|
+
return this.dataUnit.records;
|
|
32
|
+
default:
|
|
33
|
+
return this.resolveRecordsFromSelection();
|
|
24
34
|
}
|
|
35
|
+
}
|
|
36
|
+
resolveRecordsFromSelection() {
|
|
25
37
|
const selectionInfo = this.dataUnit.getSelectionInfo();
|
|
26
|
-
const
|
|
27
|
-
return
|
|
38
|
+
const selectionRecords = selectionInfo.isEmpty() || selectionInfo.isAllRecords() ? selectionInfo.getAllRecords() : selectionInfo.records;
|
|
39
|
+
return selectionRecords.length ? selectionRecords : this.dataUnit.records;
|
|
28
40
|
}
|
|
29
41
|
getHiddenOptions() {
|
|
30
42
|
return [
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ApplicationContext, DataType, ElementIDUtils } from '@sankhyalabs/core';
|
|
2
2
|
import { h, Host } from '@stencil/core';
|
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
|
+
import { IExportType } from '../../lib/http/data-fetcher/fetchers/fetchDataExporter/interfaces/IFetchDataExporterParams';
|
|
4
5
|
import { ItemBuilder } from './structure/ItemBuilder';
|
|
5
6
|
import { DataExporterFormat, DataExporterOption, DataExporterType } from '../../lib/@types';
|
|
6
7
|
import { REPORT_LAUNCHER_RESOURCE_ID } from '../../lib/utils/constants';
|
|
@@ -105,7 +106,9 @@ export class SnkDataExporter {
|
|
|
105
106
|
});
|
|
106
107
|
}
|
|
107
108
|
getExporterStrategy() {
|
|
108
|
-
return this.provider.getRecords == undefined
|
|
109
|
+
return this.provider.getRecords == undefined
|
|
110
|
+
? new ServerSideExporterStrategy(this.provider)
|
|
111
|
+
: new ClientSideExporterStrategy(this.provider);
|
|
109
112
|
}
|
|
110
113
|
getOptionKey(option) {
|
|
111
114
|
return Object.keys(DataExporterOption)
|
|
@@ -115,12 +118,12 @@ export class SnkDataExporter {
|
|
|
115
118
|
}
|
|
116
119
|
getExportType(option) {
|
|
117
120
|
if (option === DataExporterOption.EXPORT_ALL_RECORDS_TO_PDF || option === DataExporterOption.EXPORT_ALL_RECORDS_TO_XLS) {
|
|
118
|
-
return
|
|
121
|
+
return IExportType.ALL;
|
|
119
122
|
}
|
|
120
123
|
if (option === DataExporterOption.EXPORT_PAGE_TO_PDF || option === DataExporterOption.EXPORT_PAGE_TO_XLS) {
|
|
121
|
-
return
|
|
124
|
+
return IExportType.PAGE;
|
|
122
125
|
}
|
|
123
|
-
return
|
|
126
|
+
return IExportType.SELECTION;
|
|
124
127
|
}
|
|
125
128
|
async dispatchExporter(option) {
|
|
126
129
|
var _a, _b, _c;
|
|
@@ -2,7 +2,7 @@ import { h, Fragment, } from '@stencil/core';
|
|
|
2
2
|
import { Action as DUAction, ApplicationContext, ElementIDUtils, StringUtils } from '@sankhyalabs/core';
|
|
3
3
|
import { TaskbarElement } from '../snk-taskbar/elements/taskbar-elements';
|
|
4
4
|
import { ConfigStorage } from '../../lib/configs/ConfigStorage';
|
|
5
|
-
import { PresentationMode } from '../../lib/@types';
|
|
5
|
+
import { ExporterStrategy, PresentationMode } from '../../lib/@types';
|
|
6
6
|
import TaskbarProcessor from '../snk-taskbar/processor/taskbar-processor';
|
|
7
7
|
import store from "../../lib/store";
|
|
8
8
|
import SnkMultiSelectionListDataSource from './filtercolumn/SnkMultiSelectionListDataSource';
|
|
@@ -12,6 +12,7 @@ import { CrudUtils } from '../../lib';
|
|
|
12
12
|
import RmPrecisionCustomValueFormatter from '../../lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter';
|
|
13
13
|
import ServerSideExporterProvider from '../snk-data-exporter/providers/ServerSideExporterProvider';
|
|
14
14
|
import { ContinuousInsertUtils } from '../../lib/utils/ContinuousInsertUtils';
|
|
15
|
+
import ClientSideExporterProvider from '../snk-data-exporter/providers/ClientSideExporterProvider';
|
|
15
16
|
export class SnkGrid {
|
|
16
17
|
constructor() {
|
|
17
18
|
this._customEditors = new Map();
|
|
@@ -76,6 +77,7 @@ export class SnkGrid {
|
|
|
76
77
|
this.autoFocus = true;
|
|
77
78
|
this.enableGridInsert = false;
|
|
78
79
|
this.outlineMode = false;
|
|
80
|
+
this.strategyExporter = ExporterStrategy.SERVER_SIDE;
|
|
79
81
|
}
|
|
80
82
|
reloadConfig() {
|
|
81
83
|
this.loadConfig();
|
|
@@ -255,7 +257,9 @@ export class SnkGrid {
|
|
|
255
257
|
evt.stopPropagation();
|
|
256
258
|
}
|
|
257
259
|
async dataExporterProviderStore() {
|
|
258
|
-
const dataExporterProvider =
|
|
260
|
+
const dataExporterProvider = this.strategyExporter === ExporterStrategy.SERVER_SIDE
|
|
261
|
+
? new ServerSideExporterProvider(this._dataUnit, this._grid)
|
|
262
|
+
: new ClientSideExporterProvider(this._dataUnit, this._grid);
|
|
259
263
|
store.set("exporterProviders", Object.assign(Object.assign({}, store.get("exporterProviders")), { [this.configName]: dataExporterProvider }));
|
|
260
264
|
}
|
|
261
265
|
addElementID() {
|
|
@@ -999,6 +1003,29 @@ export class SnkGrid {
|
|
|
999
1003
|
"attribute": "outline-mode",
|
|
1000
1004
|
"reflect": false,
|
|
1001
1005
|
"defaultValue": "false"
|
|
1006
|
+
},
|
|
1007
|
+
"strategyExporter": {
|
|
1008
|
+
"type": "string",
|
|
1009
|
+
"mutable": true,
|
|
1010
|
+
"complexType": {
|
|
1011
|
+
"original": "IExporterStrategyMode",
|
|
1012
|
+
"resolved": "\"ClientSideExporterStrategy\" | \"ServerSideExporterStrategy\"",
|
|
1013
|
+
"references": {
|
|
1014
|
+
"IExporterStrategyMode": {
|
|
1015
|
+
"location": "import",
|
|
1016
|
+
"path": "../snk-data-exporter/interfaces/IRecordID"
|
|
1017
|
+
}
|
|
1018
|
+
}
|
|
1019
|
+
},
|
|
1020
|
+
"required": false,
|
|
1021
|
+
"optional": false,
|
|
1022
|
+
"docs": {
|
|
1023
|
+
"tags": [],
|
|
1024
|
+
"text": "Modo de exporta\u00E7\u00E3o dos dados."
|
|
1025
|
+
},
|
|
1026
|
+
"attribute": "strategy-exporter",
|
|
1027
|
+
"reflect": false,
|
|
1028
|
+
"defaultValue": "ExporterStrategy.SERVER_SIDE"
|
|
1002
1029
|
}
|
|
1003
1030
|
};
|
|
1004
1031
|
}
|
|
@@ -44,7 +44,7 @@ export class SnkSimpleCrud {
|
|
|
44
44
|
this.formConfig = undefined;
|
|
45
45
|
this._formFields = [];
|
|
46
46
|
this._fieldsProps = new Map();
|
|
47
|
-
this.
|
|
47
|
+
this.enableContinuousInsert = false;
|
|
48
48
|
this.multipleSelection = undefined;
|
|
49
49
|
this.useCancelConfirm = true;
|
|
50
50
|
this.pageSize = 150;
|
|
@@ -331,7 +331,7 @@ export class SnkSimpleCrud {
|
|
|
331
331
|
this._rmPrecisionCustomValueFormatter = new RmPrecisionCustomValueFormatter();
|
|
332
332
|
this._continuousInsertUtils = new ContinuousInsertUtils(this.application, this.resolveResourceID(), this.configName);
|
|
333
333
|
if (this.enableGridInsert) {
|
|
334
|
-
this._continuousInsertUtils.getConfig().then(value => this.
|
|
334
|
+
this._continuousInsertUtils.getConfig().then(value => this.enableContinuousInsert = value);
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
337
|
componentDidLoad() {
|
|
@@ -583,9 +583,9 @@ export class SnkSimpleCrud {
|
|
|
583
583
|
: this.getFieldSearch(actionButton, item)
|
|
584
584
|
}];
|
|
585
585
|
if (this.enableGridInsert) {
|
|
586
|
-
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this.
|
|
587
|
-
this.
|
|
588
|
-
this._continuousInsertUtils.handleSaveConfig(this.
|
|
586
|
+
hardList.push(this._continuousInsertUtils.actionContinuousInsert(this.enableContinuousInsert, () => {
|
|
587
|
+
this.enableContinuousInsert = !this.enableContinuousInsert;
|
|
588
|
+
this._continuousInsertUtils.handleSaveConfig(this.enableContinuousInsert);
|
|
589
589
|
}));
|
|
590
590
|
}
|
|
591
591
|
if (this.isGridInsertActive())
|
|
@@ -753,7 +753,7 @@ export class SnkSimpleCrud {
|
|
|
753
753
|
}
|
|
754
754
|
return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section` }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
|
|
755
755
|
? undefined
|
|
756
|
-
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.
|
|
756
|
+
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, this.renderTaskbarContent(), h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
|
|
757
757
|
}
|
|
758
758
|
static get is() { return "snk-simple-crud"; }
|
|
759
759
|
static get encapsulation() { return "scoped"; }
|
|
@@ -925,6 +925,24 @@ export class SnkSimpleCrud {
|
|
|
925
925
|
"text": ""
|
|
926
926
|
}
|
|
927
927
|
},
|
|
928
|
+
"enableContinuousInsert": {
|
|
929
|
+
"type": "boolean",
|
|
930
|
+
"mutable": true,
|
|
931
|
+
"complexType": {
|
|
932
|
+
"original": "boolean",
|
|
933
|
+
"resolved": "boolean",
|
|
934
|
+
"references": {}
|
|
935
|
+
},
|
|
936
|
+
"required": false,
|
|
937
|
+
"optional": false,
|
|
938
|
+
"docs": {
|
|
939
|
+
"tags": [],
|
|
940
|
+
"text": ""
|
|
941
|
+
},
|
|
942
|
+
"attribute": "enable-continuous-insert",
|
|
943
|
+
"reflect": false,
|
|
944
|
+
"defaultValue": "false"
|
|
945
|
+
},
|
|
928
946
|
"multipleSelection": {
|
|
929
947
|
"type": "boolean",
|
|
930
948
|
"mutable": false,
|
|
@@ -1260,8 +1278,7 @@ export class SnkSimpleCrud {
|
|
|
1260
1278
|
"_fieldToGetFocus": {},
|
|
1261
1279
|
"_customContainerId": {},
|
|
1262
1280
|
"_formFields": {},
|
|
1263
|
-
"_fieldsProps": {}
|
|
1264
|
-
"_enableContinuousInsert": {}
|
|
1281
|
+
"_fieldsProps": {}
|
|
1265
1282
|
};
|
|
1266
1283
|
}
|
|
1267
1284
|
static get events() {
|
|
@@ -35,3 +35,8 @@ export var DataExporterType;
|
|
|
35
35
|
DataExporterType["EXPORT_PDF_TO_EMAIL"] = "PDF";
|
|
36
36
|
DataExporterType["EXPORT_XLS_TO_EMAIL"] = "XLS";
|
|
37
37
|
})(DataExporterType || (DataExporterType = {}));
|
|
38
|
+
export var ExporterStrategy;
|
|
39
|
+
(function (ExporterStrategy) {
|
|
40
|
+
ExporterStrategy["SERVER_SIDE"] = "ServerSideExporterStrategy";
|
|
41
|
+
ExporterStrategy["CLIENT_SIDE"] = "ClientSideExporterStrategy";
|
|
42
|
+
})(ExporterStrategy || (ExporterStrategy = {}));
|