@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-87855.0 → 0.0.0-bugfix-dev-KB-87769.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ClientSideExporterProvider-e4f717b5.js → ClientSideExporterProvider-8c219037.js} +3 -3
- package/dist/cjs/{dataunit-fetcher-a723f0dc.js → dataunit-fetcher-4a5d491a.js} +2 -5
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +1 -1
- package/dist/cjs/snk-actions-button_7.cjs.entry.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +1 -1
- package/dist/cjs/snk-attach.cjs.entry.js +1 -1
- package/dist/cjs/snk-crud.cjs.entry.js +1 -1
- package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
- package/dist/cjs/{snk-data-unit-bab0b78a.js → snk-data-unit-4b510d6e.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +2 -2
- package/dist/cjs/snk-grid.cjs.entry.js +2 -2
- package/dist/cjs/{snk-guides-viewer-b9a97db8.js → snk-guides-viewer-e8e5f7b4.js} +1 -1
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +2 -2
- package/dist/cjs/snk-pesquisa.cjs.entry.js +1 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +3 -3
- package/dist/collection/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.js +2 -2
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +1 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.js +2 -5
- package/dist/components/ContinuousInsertUtils.js +2 -2
- package/dist/components/dataunit-fetcher.js +2 -5
- package/dist/components/snk-simple-crud2.js +1 -1
- package/dist/esm/{ClientSideExporterProvider-3b8ba474.js → ClientSideExporterProvider-a37f890b.js} +3 -3
- package/dist/esm/{dataunit-fetcher-0e025732.js → dataunit-fetcher-1d02ecfc.js} +2 -5
- package/dist/esm/pesquisa-grid_2.entry.js +1 -1
- package/dist/esm/snk-actions-button_7.entry.js +1 -1
- package/dist/esm/snk-application.entry.js +1 -1
- package/dist/esm/snk-attach.entry.js +1 -1
- package/dist/esm/snk-crud.entry.js +1 -1
- package/dist/esm/snk-data-exporter.entry.js +2 -2
- package/dist/esm/{snk-data-unit-0cb53554.js → snk-data-unit-7d0ce406.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +2 -2
- package/dist/esm/snk-grid.entry.js +2 -2
- package/dist/esm/{snk-guides-viewer-83eecbd7.js → snk-guides-viewer-c44b3839.js} +1 -1
- package/dist/esm/snk-guides-viewer.entry.js +2 -2
- package/dist/esm/snk-pesquisa.entry.js +1 -1
- package/dist/esm/snk-simple-crud.entry.js +3 -3
- package/dist/sankhyablocks/{p-dc6ad9a6.entry.js → p-00796b12.entry.js} +1 -1
- package/dist/sankhyablocks/{p-10878f04.entry.js → p-17d36ce0.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9a7f7ca3.entry.js → p-35f85998.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9b4c5dae.entry.js → p-38e3ffda.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d31a701e.entry.js → p-3b190fb1.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d4752c92.entry.js → p-5503e89f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6a0c8ce0.entry.js → p-6541bb6d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-18c460f2.js → p-6e0a5314.js} +1 -1
- package/dist/sankhyablocks/{p-15f67e59.entry.js → p-754559b9.entry.js} +1 -1
- package/dist/sankhyablocks/{p-841d3c3e.entry.js → p-835128f5.entry.js} +1 -1
- package/dist/sankhyablocks/p-8fa828b5.js +1 -0
- package/dist/sankhyablocks/{p-15784f66.js → p-92778d5a.js} +1 -1
- package/dist/sankhyablocks/p-a8be1d67.js +60 -0
- package/dist/sankhyablocks/{p-1bdc7355.entry.js → p-b2a2a83e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-af133934.entry.js → p-e35fe2bd.entry.js} +1 -1
- package/dist/sankhyablocks/{p-475df998.entry.js → p-ef6f0a1b.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +1 -2
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager.d.ts +1 -1
- package/package.json +1 -1
- package/dist/sankhyablocks/p-7993b2e3.js +0 -60
- package/dist/sankhyablocks/p-e66968aa.js +0 -1
package/dist/cjs/{ClientSideExporterProvider-e4f717b5.js → ClientSideExporterProvider-8c219037.js}
RENAMED
|
@@ -6,7 +6,7 @@ const core = require('@sankhyalabs/core');
|
|
|
6
6
|
const index$1 = require('./index-e3e39724.js');
|
|
7
7
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
8
8
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
9
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
9
|
+
const dataunitFetcher = require('./dataunit-fetcher-4a5d491a.js');
|
|
10
10
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
11
11
|
require('./form-config-fetcher-40d3f752.js');
|
|
12
12
|
require('./constants-77c1b8bd.js');
|
|
@@ -125,11 +125,11 @@ class SnkMultiSelectionListDataSource {
|
|
|
125
125
|
}
|
|
126
126
|
return String(this._dataUnit.getFormattedValue(fieldName, value));
|
|
127
127
|
}
|
|
128
|
-
async getStaticOptions(fieldName
|
|
128
|
+
async getStaticOptions(fieldName) {
|
|
129
129
|
if (fieldName == undefined) {
|
|
130
130
|
return Promise.resolve(undefined);
|
|
131
131
|
}
|
|
132
|
-
return Promise.resolve(await dataunitFetcher.PreloadManager.getDistinct(this._dataUnit, fieldName
|
|
132
|
+
return Promise.resolve(await dataunitFetcher.PreloadManager.getDistinct(this._dataUnit, fieldName));
|
|
133
133
|
}
|
|
134
134
|
fetchData(filterTerm, fieldName) {
|
|
135
135
|
return new Promise(resolve => {
|
|
@@ -131,7 +131,7 @@ class PreloadManager {
|
|
|
131
131
|
static getSortingFunction(dataUnit, sorting) {
|
|
132
132
|
return SortingUtils__default['default'].getSortingFunction(dataUnit, sorting);
|
|
133
133
|
}
|
|
134
|
-
static async getDistinct(dataUnit, fieldName
|
|
134
|
+
static async getDistinct(dataUnit, fieldName) {
|
|
135
135
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
|
136
136
|
return Promise.resolve(utils.ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
|
137
137
|
}
|
|
@@ -150,10 +150,7 @@ class PreloadManager {
|
|
|
150
150
|
if (fieldValue == undefined) {
|
|
151
151
|
return { key: null, value: null };
|
|
152
152
|
}
|
|
153
|
-
|
|
154
|
-
if ((fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label) && onlyLabel) {
|
|
155
|
-
return { key: fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label, value: dataUnit.getFormattedValue(fieldName, value) };
|
|
156
|
-
}
|
|
153
|
+
const value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
|
157
154
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
|
158
155
|
})
|
|
159
156
|
.then(result => {
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
6
|
+
const dataunitFetcher = require('./dataunit-fetcher-4a5d491a.js');
|
|
7
7
|
require('./DataFetcher-1afdb18e.js');
|
|
8
8
|
const ISave = require('./ISave-c76e2c51.js');
|
|
9
9
|
require('@sankhyalabs/core');
|
|
@@ -10,7 +10,7 @@ require('./ISave-c76e2c51.js');
|
|
|
10
10
|
require('./index-e3e39724.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
|
-
require('./dataunit-fetcher-
|
|
13
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
15
15
|
const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
|
|
16
16
|
const constants = require('./constants-77c1b8bd.js');
|
|
@@ -8,7 +8,7 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
8
8
|
const ConfigStorage = require('./ConfigStorage-df09fb78.js');
|
|
9
9
|
const DataFetcher = require('./DataFetcher-1afdb18e.js');
|
|
10
10
|
const authFetcher = require('./auth-fetcher-1687ac0a.js');
|
|
11
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
11
|
+
const dataunitFetcher = require('./dataunit-fetcher-4a5d491a.js');
|
|
12
12
|
const ISave = require('./ISave-c76e2c51.js');
|
|
13
13
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
|
14
14
|
const constants = require('./constants-77c1b8bd.js');
|
|
@@ -7,7 +7,7 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const DataFetcher = require('./DataFetcher-1afdb18e.js');
|
|
8
8
|
const ISave = require('./ISave-c76e2c51.js');
|
|
9
9
|
require('./index-e3e39724.js');
|
|
10
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
10
|
+
const dataunitFetcher = require('./dataunit-fetcher-4a5d491a.js');
|
|
11
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
12
12
|
require('./form-config-fetcher-40d3f752.js');
|
|
13
13
|
const constants = require('./constants-77c1b8bd.js');
|
|
@@ -10,7 +10,7 @@ require('./ISave-c76e2c51.js');
|
|
|
10
10
|
const index$1 = require('./index-e3e39724.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
|
-
require('./dataunit-fetcher-
|
|
13
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
15
15
|
require('./form-config-fetcher-40d3f752.js');
|
|
16
16
|
const constants = require('./constants-77c1b8bd.js');
|
|
@@ -9,11 +9,11 @@ const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js
|
|
|
9
9
|
const index = require('./index-e3e39724.js');
|
|
10
10
|
const constants = require('./constants-77c1b8bd.js');
|
|
11
11
|
const DataFetcher = require('./DataFetcher-1afdb18e.js');
|
|
12
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
12
|
+
const snkDataUnit = require('./snk-data-unit-4b510d6e.js');
|
|
13
13
|
require('./ISave-c76e2c51.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
require('./dataunit-fetcher-
|
|
16
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
18
|
require('./form-config-fetcher-40d3f752.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -4,7 +4,7 @@ const index = require('./index-f9e81701.js');
|
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
6
6
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-4a5d491a.js');
|
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
10
10
|
|
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
5
|
+
const snkDataUnit = require('./snk-data-unit-4b510d6e.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
require('./SnkMessageBuilder-bae64d0d.js');
|
|
10
|
-
require('./dataunit-fetcher-
|
|
10
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
11
11
|
require('./DataFetcher-1afdb18e.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -11,12 +11,12 @@ require('./ISave-c76e2c51.js');
|
|
|
11
11
|
const index$1 = require('./index-e3e39724.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
-
require('./dataunit-fetcher-
|
|
14
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
require('./form-config-fetcher-40d3f752.js');
|
|
17
17
|
const constants = require('./constants-77c1b8bd.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-e8e5f7b4.js');
|
|
20
20
|
const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
|
|
21
21
|
require('./ConfigStorage-df09fb78.js');
|
|
22
22
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -9,13 +9,13 @@ const ConfigStorage = require('./ConfigStorage-df09fb78.js');
|
|
|
9
9
|
const index$1 = require('./index-e3e39724.js');
|
|
10
10
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-8c219037.js');
|
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
14
14
|
require('./DataFetcher-1afdb18e.js');
|
|
15
15
|
require('./ISave-c76e2c51.js');
|
|
16
16
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
17
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
18
|
-
require('./dataunit-fetcher-
|
|
18
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
19
19
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
20
20
|
require('./form-config-fetcher-40d3f752.js');
|
|
21
21
|
require('./constants-77c1b8bd.js');
|
|
@@ -12,7 +12,7 @@ require('./ISave-c76e2c51.js');
|
|
|
12
12
|
const index$1 = require('./index-e3e39724.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
|
-
require('./dataunit-fetcher-
|
|
15
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
17
|
require('./form-config-fetcher-40d3f752.js');
|
|
18
18
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
@@ -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-e8e5f7b4.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('./SnkFormConfigManager-45a8d7b7.js');
|
|
@@ -20,7 +20,7 @@ require('./index-e3e39724.js');
|
|
|
20
20
|
require('./index-102ba62d.js');
|
|
21
21
|
require('./ISave-c76e2c51.js');
|
|
22
22
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
23
|
-
require('./dataunit-fetcher-
|
|
23
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
26
26
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
@@ -9,7 +9,7 @@ require('./DataFetcher-1afdb18e.js');
|
|
|
9
9
|
require('./index-e3e39724.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
-
require('./dataunit-fetcher-
|
|
12
|
+
require('./dataunit-fetcher-4a5d491a.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
14
|
require('./form-config-fetcher-40d3f752.js');
|
|
15
15
|
require('./constants-77c1b8bd.js');
|
|
@@ -9,11 +9,11 @@ const constants = require('./constants-77c1b8bd.js');
|
|
|
9
9
|
const taskbarElements = require('./taskbar-elements-7e19882d.js');
|
|
10
10
|
require('./DataFetcher-1afdb18e.js');
|
|
11
11
|
require('./ISave-c76e2c51.js');
|
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-8c219037.js');
|
|
13
13
|
const index$1 = require('./index-e3e39724.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
16
|
+
const dataunitFetcher = require('./dataunit-fetcher-4a5d491a.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
18
|
const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
|
|
19
19
|
const fieldSearch = require('./field-search-68e34bf4.js');
|
|
@@ -780,7 +780,7 @@ const SnkSimpleCrud = class {
|
|
|
780
780
|
if (this.dataUnit == undefined) {
|
|
781
781
|
return;
|
|
782
782
|
}
|
|
783
|
-
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),
|
|
783
|
+
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), 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)
|
|
784
784
|
? undefined
|
|
785
785
|
: 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, layoutFormConfig: this.layoutFormConfig })), 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() }))));
|
|
786
786
|
}
|
|
@@ -15,11 +15,11 @@ export default class SnkMultiSelectionListDataSource {
|
|
|
15
15
|
}
|
|
16
16
|
return String(this._dataUnit.getFormattedValue(fieldName, value));
|
|
17
17
|
}
|
|
18
|
-
async getStaticOptions(fieldName
|
|
18
|
+
async getStaticOptions(fieldName) {
|
|
19
19
|
if (fieldName == undefined) {
|
|
20
20
|
return Promise.resolve(undefined);
|
|
21
21
|
}
|
|
22
|
-
return Promise.resolve(await PreloadManager.getDistinct(this._dataUnit, fieldName
|
|
22
|
+
return Promise.resolve(await PreloadManager.getDistinct(this._dataUnit, fieldName));
|
|
23
23
|
}
|
|
24
24
|
fetchData(filterTerm, fieldName) {
|
|
25
25
|
return new Promise(resolve => {
|
|
@@ -755,7 +755,7 @@ export class SnkSimpleCrud {
|
|
|
755
755
|
if (this.dataUnit == undefined) {
|
|
756
756
|
return;
|
|
757
757
|
}
|
|
758
|
-
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),
|
|
758
|
+
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), 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)
|
|
759
759
|
? undefined
|
|
760
760
|
: 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, layoutFormConfig: this.layoutFormConfig })), 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() }))));
|
|
761
761
|
}
|
|
@@ -23,7 +23,7 @@ export default class PreloadManager {
|
|
|
23
23
|
static getSortingFunction(dataUnit, sorting) {
|
|
24
24
|
return SortingUtils.getSortingFunction(dataUnit, sorting);
|
|
25
25
|
}
|
|
26
|
-
static async getDistinct(dataUnit, fieldName
|
|
26
|
+
static async getDistinct(dataUnit, fieldName) {
|
|
27
27
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
|
28
28
|
return Promise.resolve(ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
|
29
29
|
}
|
|
@@ -42,10 +42,7 @@ export default class PreloadManager {
|
|
|
42
42
|
if (fieldValue == undefined) {
|
|
43
43
|
return { key: null, value: null };
|
|
44
44
|
}
|
|
45
|
-
|
|
46
|
-
if ((fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label) && onlyLabel) {
|
|
47
|
-
return { key: fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label, value: dataUnit.getFormattedValue(fieldName, value) };
|
|
48
|
-
}
|
|
45
|
+
const value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
|
49
46
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
|
50
47
|
})
|
|
51
48
|
.then(result => {
|
|
@@ -168,11 +168,11 @@ class SnkMultiSelectionListDataSource {
|
|
|
168
168
|
}
|
|
169
169
|
return String(this._dataUnit.getFormattedValue(fieldName, value));
|
|
170
170
|
}
|
|
171
|
-
async getStaticOptions(fieldName
|
|
171
|
+
async getStaticOptions(fieldName) {
|
|
172
172
|
if (fieldName == undefined) {
|
|
173
173
|
return Promise.resolve(undefined);
|
|
174
174
|
}
|
|
175
|
-
return Promise.resolve(await PreloadManager.getDistinct(this._dataUnit, fieldName
|
|
175
|
+
return Promise.resolve(await PreloadManager.getDistinct(this._dataUnit, fieldName));
|
|
176
176
|
}
|
|
177
177
|
fetchData(filterTerm, fieldName) {
|
|
178
178
|
return new Promise(resolve => {
|
|
@@ -153,7 +153,7 @@ class PreloadManager {
|
|
|
153
153
|
static getSortingFunction(dataUnit, sorting) {
|
|
154
154
|
return SortingUtils.getSortingFunction(dataUnit, sorting);
|
|
155
155
|
}
|
|
156
|
-
static async getDistinct(dataUnit, fieldName
|
|
156
|
+
static async getDistinct(dataUnit, fieldName) {
|
|
157
157
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
|
158
158
|
return Promise.resolve(ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
|
159
159
|
}
|
|
@@ -172,10 +172,7 @@ class PreloadManager {
|
|
|
172
172
|
if (fieldValue == undefined) {
|
|
173
173
|
return { key: null, value: null };
|
|
174
174
|
}
|
|
175
|
-
|
|
176
|
-
if ((fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label) && onlyLabel) {
|
|
177
|
-
return { key: fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label, value: dataUnit.getFormattedValue(fieldName, value) };
|
|
178
|
-
}
|
|
175
|
+
const value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
|
179
176
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
|
180
177
|
})
|
|
181
178
|
.then(result => {
|
|
@@ -779,7 +779,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
779
779
|
if (this.dataUnit == undefined) {
|
|
780
780
|
return;
|
|
781
781
|
}
|
|
782
|
-
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),
|
|
782
|
+
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), 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)
|
|
783
783
|
? undefined
|
|
784
784
|
: 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, layoutFormConfig: this.layoutFormConfig })), 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() }))));
|
|
785
785
|
}
|
package/dist/esm/{ClientSideExporterProvider-3b8ba474.js → ClientSideExporterProvider-a37f890b.js}
RENAMED
|
@@ -4,7 +4,7 @@ import { SortMode, ApplicationContext, UserInterface, DateUtils, ObjectUtils, St
|
|
|
4
4
|
import { D as DataExporterOption } from './index-b40568ff.js';
|
|
5
5
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
6
6
|
import { UserInterface as UserInterface$1 } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
7
|
-
import { P as PreloadManager } from './dataunit-fetcher-
|
|
7
|
+
import { P as PreloadManager } from './dataunit-fetcher-1d02ecfc.js';
|
|
8
8
|
import './filter-item-type.enum-d45e026f.js';
|
|
9
9
|
import './form-config-fetcher-fa208a6c.js';
|
|
10
10
|
import './constants-7db1128a.js';
|
|
@@ -119,11 +119,11 @@ class SnkMultiSelectionListDataSource {
|
|
|
119
119
|
}
|
|
120
120
|
return String(this._dataUnit.getFormattedValue(fieldName, value));
|
|
121
121
|
}
|
|
122
|
-
async getStaticOptions(fieldName
|
|
122
|
+
async getStaticOptions(fieldName) {
|
|
123
123
|
if (fieldName == undefined) {
|
|
124
124
|
return Promise.resolve(undefined);
|
|
125
125
|
}
|
|
126
|
-
return Promise.resolve(await PreloadManager.getDistinct(this._dataUnit, fieldName
|
|
126
|
+
return Promise.resolve(await PreloadManager.getDistinct(this._dataUnit, fieldName));
|
|
127
127
|
}
|
|
128
128
|
fetchData(filterTerm, fieldName) {
|
|
129
129
|
return new Promise(resolve => {
|
|
@@ -125,7 +125,7 @@ class PreloadManager {
|
|
|
125
125
|
static getSortingFunction(dataUnit, sorting) {
|
|
126
126
|
return SortingUtils.getSortingFunction(dataUnit, sorting);
|
|
127
127
|
}
|
|
128
|
-
static async getDistinct(dataUnit, fieldName
|
|
128
|
+
static async getDistinct(dataUnit, fieldName) {
|
|
129
129
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
|
130
130
|
return Promise.resolve(ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
|
131
131
|
}
|
|
@@ -144,10 +144,7 @@ class PreloadManager {
|
|
|
144
144
|
if (fieldValue == undefined) {
|
|
145
145
|
return { key: null, value: null };
|
|
146
146
|
}
|
|
147
|
-
|
|
148
|
-
if ((fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label) && onlyLabel) {
|
|
149
|
-
return { key: fieldValue === null || fieldValue === void 0 ? void 0 : fieldValue.label, value: dataUnit.getFormattedValue(fieldName, value) };
|
|
150
|
-
}
|
|
147
|
+
const value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
|
151
148
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
|
152
149
|
})
|
|
153
150
|
.then(result => {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, F as Fragment } from './index-a7d3d3f1.js';
|
|
2
|
-
import { I as InMemoryLoader } from './dataunit-fetcher-
|
|
2
|
+
import { I as InMemoryLoader } from './dataunit-fetcher-1d02ecfc.js';
|
|
3
3
|
import './DataFetcher-88e56266.js';
|
|
4
4
|
import { P as PesquisaFetcher } from './ISave-5efafc97.js';
|
|
5
5
|
import '@sankhyalabs/core';
|
|
@@ -6,7 +6,7 @@ import './ISave-5efafc97.js';
|
|
|
6
6
|
import './index-b40568ff.js';
|
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
9
|
-
import './dataunit-fetcher-
|
|
9
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
|
11
11
|
import { F as FormConfigFetcher } from './form-config-fetcher-fa208a6c.js';
|
|
12
12
|
import { O as ORDER_VALUES } from './constants-7db1128a.js';
|
|
@@ -4,7 +4,7 @@ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
|
4
4
|
import { C as ConfigStorage } from './ConfigStorage-71e6766f.js';
|
|
5
5
|
import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-88e56266.js';
|
|
6
6
|
import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-3510520e.js';
|
|
7
|
-
import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-
|
|
7
|
+
import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher-1d02ecfc.js';
|
|
8
8
|
import { P as PesquisaFetcher } from './ISave-5efafc97.js';
|
|
9
9
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
|
|
10
10
|
import { T as TEMPLATES_SKELETON } from './constants-7db1128a.js';
|
|
@@ -3,7 +3,7 @@ import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataU
|
|
|
3
3
|
import { D as DataFetcher } from './DataFetcher-88e56266.js';
|
|
4
4
|
import { S as SaveErrorsEnum } from './ISave-5efafc97.js';
|
|
5
5
|
import './index-b40568ff.js';
|
|
6
|
-
import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-
|
|
6
|
+
import { P as PreloadManager, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-1d02ecfc.js';
|
|
7
7
|
import './filter-item-type.enum-d45e026f.js';
|
|
8
8
|
import './form-config-fetcher-fa208a6c.js';
|
|
9
9
|
import { V as VIEW_MODE } from './constants-7db1128a.js';
|
|
@@ -6,7 +6,7 @@ import './ISave-5efafc97.js';
|
|
|
6
6
|
import { P as PresentationMode, E as ExporterStrategy } from './index-b40568ff.js';
|
|
7
7
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
8
8
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
9
|
-
import './dataunit-fetcher-
|
|
9
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
10
10
|
import './filter-item-type.enum-d45e026f.js';
|
|
11
11
|
import './form-config-fetcher-fa208a6c.js';
|
|
12
12
|
import { V as VIEW_MODE } from './constants-7db1128a.js';
|
|
@@ -5,11 +5,11 @@ import { I as IExportType } from './IFetchDataExporterParams-d73bed3d.js';
|
|
|
5
5
|
import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-b40568ff.js';
|
|
6
6
|
import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7db1128a.js';
|
|
7
7
|
import { D as DataFetcher } from './DataFetcher-88e56266.js';
|
|
8
|
-
import { S as SnkDataUnit } from './snk-data-unit-
|
|
8
|
+
import { S as SnkDataUnit } from './snk-data-unit-7d0ce406.js';
|
|
9
9
|
import './ISave-5efafc97.js';
|
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
11
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
12
|
-
import './dataunit-fetcher-
|
|
12
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
13
13
|
import './filter-item-type.enum-d45e026f.js';
|
|
14
14
|
import './form-config-fetcher-fa208a6c.js';
|
|
15
15
|
import './PrintUtils-3e4ff0f5.js';
|
|
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host
|
|
|
2
2
|
import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
3
3
|
import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
|
|
4
4
|
import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
|
|
5
|
-
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-
|
|
5
|
+
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-1d02ecfc.js';
|
|
6
6
|
import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
|
|
7
7
|
import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
|
|
8
8
|
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export { S as snk_data_unit } from './snk-data-unit-
|
|
1
|
+
export { S as snk_data_unit } from './snk-data-unit-7d0ce406.js';
|
|
2
2
|
import './index-a7d3d3f1.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
|
5
5
|
import './SnkMessageBuilder-6fff4a4c.js';
|
|
6
|
-
import './dataunit-fetcher-
|
|
6
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
7
7
|
import './DataFetcher-88e56266.js';
|
|
8
8
|
import './PrintUtils-3e4ff0f5.js';
|
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
@@ -7,12 +7,12 @@ import './ISave-5efafc97.js';
|
|
|
7
7
|
import { P as PresentationMode } from './index-b40568ff.js';
|
|
8
8
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
9
9
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
10
|
-
import './dataunit-fetcher-
|
|
10
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
11
11
|
import './filter-item-type.enum-d45e026f.js';
|
|
12
12
|
import './form-config-fetcher-fa208a6c.js';
|
|
13
13
|
import { V as VIEW_MODE } from './constants-7db1128a.js';
|
|
14
14
|
import { T as TaskbarElement } from './taskbar-elements-d2353c64.js';
|
|
15
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
|
15
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-c44b3839.js';
|
|
16
16
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
|
|
17
17
|
import './ConfigStorage-71e6766f.js';
|
|
18
18
|
import './PrintUtils-3e4ff0f5.js';
|
|
@@ -5,13 +5,13 @@ import { C as ConfigStorage } from './ConfigStorage-71e6766f.js';
|
|
|
5
5
|
import { P as PresentationMode, E as ExporterStrategy } from './index-b40568ff.js';
|
|
6
6
|
import { T as TaskbarProcessor, o as openFieldSearch, b as buildFieldSearch } from './field-search-f8b1d91e.js';
|
|
7
7
|
import { s as store } from './index-bdf75557.js';
|
|
8
|
-
import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-
|
|
8
|
+
import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-a37f890b.js';
|
|
9
9
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
10
10
|
import './DataFetcher-88e56266.js';
|
|
11
11
|
import './ISave-5efafc97.js';
|
|
12
12
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
13
13
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
14
|
-
import './dataunit-fetcher-
|
|
14
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
15
15
|
import './filter-item-type.enum-d45e026f.js';
|
|
16
16
|
import './form-config-fetcher-fa208a6c.js';
|
|
17
17
|
import './constants-7db1128a.js';
|
|
@@ -10,7 +10,7 @@ import './ISave-5efafc97.js';
|
|
|
10
10
|
import { P as PresentationMode } from './index-b40568ff.js';
|
|
11
11
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
12
12
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
13
|
-
import './dataunit-fetcher-
|
|
13
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
14
14
|
import './filter-item-type.enum-d45e026f.js';
|
|
15
15
|
import './form-config-fetcher-fa208a6c.js';
|
|
16
16
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { S as snk_guides_viewer } from './snk-guides-viewer-
|
|
1
|
+
export { S as snk_guides_viewer } from './snk-guides-viewer-c44b3839.js';
|
|
2
2
|
import './index-a7d3d3f1.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
4
|
import './SnkFormConfigManager-be490a33.js';
|
|
@@ -16,7 +16,7 @@ import './index-b40568ff.js';
|
|
|
16
16
|
import './index-bdf75557.js';
|
|
17
17
|
import './ISave-5efafc97.js';
|
|
18
18
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
19
|
-
import './dataunit-fetcher-
|
|
19
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
20
20
|
import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
|
|
21
21
|
import '@sankhyalabs/core/dist/utils/SortingUtils';
|
|
22
22
|
import './ResourceIDUtils-a114189a.js';
|
|
@@ -5,7 +5,7 @@ import './DataFetcher-88e56266.js';
|
|
|
5
5
|
import './index-b40568ff.js';
|
|
6
6
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
7
7
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
8
|
-
import './dataunit-fetcher-
|
|
8
|
+
import './dataunit-fetcher-1d02ecfc.js';
|
|
9
9
|
import './filter-item-type.enum-d45e026f.js';
|
|
10
10
|
import './form-config-fetcher-fa208a6c.js';
|
|
11
11
|
import './constants-7db1128a.js';
|
|
@@ -5,11 +5,11 @@ import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-7db1128a.js';
|
|
|
5
5
|
import { T as TaskbarElement } from './taskbar-elements-d2353c64.js';
|
|
6
6
|
import './DataFetcher-88e56266.js';
|
|
7
7
|
import './ISave-5efafc97.js';
|
|
8
|
-
import { S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, a as CrudUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-
|
|
8
|
+
import { S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, a as CrudUtils, c as ClientSideExporterProvider } from './ClientSideExporterProvider-a37f890b.js';
|
|
9
9
|
import { P as PresentationMode } from './index-b40568ff.js';
|
|
10
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
|
11
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
12
|
-
import { I as InMemoryLoader } from './dataunit-fetcher-
|
|
12
|
+
import { I as InMemoryLoader } from './dataunit-fetcher-1d02ecfc.js';
|
|
13
13
|
import './filter-item-type.enum-d45e026f.js';
|
|
14
14
|
import { F as FormConfigFetcher } from './form-config-fetcher-fa208a6c.js';
|
|
15
15
|
import { T as TaskbarProcessor, b as buildFieldSearch, o as openFieldSearch } from './field-search-f8b1d91e.js';
|
|
@@ -776,7 +776,7 @@ const SnkSimpleCrud = class {
|
|
|
776
776
|
if (this.dataUnit == undefined) {
|
|
777
777
|
return;
|
|
778
778
|
}
|
|
779
|
-
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),
|
|
779
|
+
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), 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)
|
|
780
780
|
? undefined
|
|
781
781
|
: 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, layoutFormConfig: this.layoutFormConfig })), 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() }))));
|
|
782
782
|
}
|