@sankhyalabs/sankhyablocks 8.16.0-dev.105 → 8.16.0-dev.107
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-8c219037.js → ClientSideExporterProvider-a2753c93.js} +3 -3
- package/dist/cjs/{dataunit-fetcher-4a5d491a.js → dataunit-fetcher-a723f0dc.js} +5 -2
- 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-9a463a4f.js → snk-data-unit-ebfdb9ba.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-c9e1e97b.js → snk-guides-viewer-fd39f437.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 +5 -2
- package/dist/components/ContinuousInsertUtils.js +2 -2
- package/dist/components/dataunit-fetcher.js +5 -2
- package/dist/components/snk-simple-crud2.js +1 -1
- package/dist/esm/{ClientSideExporterProvider-a37f890b.js → ClientSideExporterProvider-b3871edb.js} +3 -3
- package/dist/esm/{dataunit-fetcher-1d02ecfc.js → dataunit-fetcher-0e025732.js} +5 -2
- 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-affee080.js → snk-data-unit-03654813.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-3befd409.js → snk-guides-viewer-75e06feb.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-2101be8b.entry.js → p-1a51dfde.entry.js} +1 -1
- package/dist/sankhyablocks/{p-21a5acc4.entry.js → p-1c29409b.entry.js} +1 -1
- package/dist/sankhyablocks/{p-cbb4c043.entry.js → p-271c86d3.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3f624cbe.js → p-41da5310.js} +1 -1
- package/dist/sankhyablocks/{p-624390bb.entry.js → p-4a93daef.entry.js} +1 -1
- package/dist/sankhyablocks/{p-cf685cef.entry.js → p-65be98c5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6541bb6d.entry.js → p-6a0c8ce0.entry.js} +1 -1
- package/dist/sankhyablocks/p-7993b2e3.js +60 -0
- package/dist/sankhyablocks/{p-a5e5574c.entry.js → p-7cd5c315.entry.js} +1 -1
- package/dist/sankhyablocks/p-885802c3.js +1 -0
- package/dist/sankhyablocks/{p-ea55f2ab.entry.js → p-ad07f0c5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-dcfc8b35.entry.js → p-cc8c3bca.entry.js} +1 -1
- package/dist/sankhyablocks/{p-53e1de0a.entry.js → p-cf1f25ed.entry.js} +1 -1
- package/dist/sankhyablocks/{p-3b190fb1.entry.js → p-d31a701e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-00796b12.entry.js → p-dc6ad9a6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-82177c24.js → p-f4d5bb7f.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-grid/filtercolumn/SnkMultiSelectionListDataSource.d.ts +2 -1
- 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-8fa828b5.js +0 -1
- package/dist/sankhyablocks/p-a8be1d67.js +0 -60
package/dist/cjs/{ClientSideExporterProvider-8c219037.js → ClientSideExporterProvider-a2753c93.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-a723f0dc.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, options) {
|
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, options === null || options === void 0 ? void 0 : options.onlyLabel));
|
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, onlyLabel = false) {
|
135
135
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
136
136
|
return Promise.resolve(utils.ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
137
137
|
}
|
@@ -150,7 +150,10 @@ class PreloadManager {
|
|
150
150
|
if (fieldValue == undefined) {
|
151
151
|
return { key: null, value: null };
|
152
152
|
}
|
153
|
-
|
153
|
+
let value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
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
|
+
}
|
154
157
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
155
158
|
})
|
156
159
|
.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-a723f0dc.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-a723f0dc.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-a723f0dc.js');
|
12
12
|
const ISave = require('./ISave-c76e2c51.js');
|
13
13
|
const SnkMessageBuilder = require('./SnkMessageBuilder-aecd7c18.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-a723f0dc.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-a723f0dc.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-ebfdb9ba.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-a723f0dc.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-aecd7c18.js');
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-a723f0dc.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-ebfdb9ba.js');
|
6
6
|
require('./index-f9e81701.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
9
9
|
require('./SnkMessageBuilder-aecd7c18.js');
|
10
|
-
require('./dataunit-fetcher-
|
10
|
+
require('./dataunit-fetcher-a723f0dc.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-a723f0dc.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-02379452.js');
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-fd39f437.js');
|
20
20
|
const SnkMessageBuilder = require('./SnkMessageBuilder-aecd7c18.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-a2753c93.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-a723f0dc.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-a723f0dc.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-fd39f437.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-a723f0dc.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-a723f0dc.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-02379452.js');
|
10
10
|
require('./DataFetcher-1afdb18e.js');
|
11
11
|
require('./ISave-c76e2c51.js');
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-a2753c93.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-a723f0dc.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');
|
@@ -814,7 +814,7 @@ const SnkSimpleCrud = class {
|
|
814
814
|
if (this.dataUnit == undefined) {
|
815
815
|
return;
|
816
816
|
}
|
817
|
-
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),
|
817
|
+
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)
|
818
818
|
? undefined
|
819
819
|
: 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() }))));
|
820
820
|
}
|
@@ -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, options) {
|
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, options === null || options === void 0 ? void 0 : options.onlyLabel));
|
23
23
|
}
|
24
24
|
fetchData(filterTerm, fieldName) {
|
25
25
|
return new Promise(resolve => {
|
@@ -789,7 +789,7 @@ export class SnkSimpleCrud {
|
|
789
789
|
if (this.dataUnit == undefined) {
|
790
790
|
return;
|
791
791
|
}
|
792
|
-
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),
|
792
|
+
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)
|
793
793
|
? undefined
|
794
794
|
: 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() }))));
|
795
795
|
}
|
@@ -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, onlyLabel = false) {
|
27
27
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
28
28
|
return Promise.resolve(ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
29
29
|
}
|
@@ -42,7 +42,10 @@ export default class PreloadManager {
|
|
42
42
|
if (fieldValue == undefined) {
|
43
43
|
return { key: null, value: null };
|
44
44
|
}
|
45
|
-
|
45
|
+
let value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
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
|
+
}
|
46
49
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
47
50
|
})
|
48
51
|
.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, options) {
|
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, options === null || options === void 0 ? void 0 : options.onlyLabel));
|
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, onlyLabel = false) {
|
157
157
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
158
158
|
return Promise.resolve(ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
159
159
|
}
|
@@ -172,7 +172,10 @@ class PreloadManager {
|
|
172
172
|
if (fieldValue == undefined) {
|
173
173
|
return { key: null, value: null };
|
174
174
|
}
|
175
|
-
|
175
|
+
let value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
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
|
+
}
|
176
179
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
177
180
|
})
|
178
181
|
.then(result => {
|
@@ -813,7 +813,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
813
813
|
if (this.dataUnit == undefined) {
|
814
814
|
return;
|
815
815
|
}
|
816
|
-
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),
|
816
|
+
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)
|
817
817
|
? undefined
|
818
818
|
: 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() }))));
|
819
819
|
}
|
package/dist/esm/{ClientSideExporterProvider-a37f890b.js → ClientSideExporterProvider-b3871edb.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-0e025732.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, options) {
|
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, options === null || options === void 0 ? void 0 : options.onlyLabel));
|
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, onlyLabel = false) {
|
129
129
|
if (!PreloadManager.isCacheEnabled(dataUnit)) {
|
130
130
|
return Promise.resolve(ColumnFilterManager.compileDistinct(fieldName, dataUnit));
|
131
131
|
}
|
@@ -144,7 +144,10 @@ class PreloadManager {
|
|
144
144
|
if (fieldValue == undefined) {
|
145
145
|
return { key: null, value: null };
|
146
146
|
}
|
147
|
-
|
147
|
+
let value = fieldValue.value != undefined ? fieldValue.value : fieldValue;
|
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
|
+
}
|
148
151
|
return { key: dataUnit.getFormattedValue(fieldName, fieldValue), value };
|
149
152
|
})
|
150
153
|
.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-0e025732.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-0e025732.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-0e025732.js';
|
8
8
|
import { P as PesquisaFetcher } from './ISave-5efafc97.js';
|
9
9
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-12f5fe1a.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-0e025732.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-0e025732.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-03654813.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-0e025732.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-12f5fe1a.js';
|
5
|
-
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-
|
5
|
+
import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-0e025732.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-03654813.js';
|
2
2
|
import './index-a7d3d3f1.js';
|
3
3
|
import '@sankhyalabs/core';
|
4
4
|
import '@sankhyalabs/ezui/dist/collection/utils';
|
5
5
|
import './SnkMessageBuilder-12f5fe1a.js';
|
6
|
-
import './dataunit-fetcher-
|
6
|
+
import './dataunit-fetcher-0e025732.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-0e025732.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-c62b6c66.js';
|
15
|
-
import { S as SnkGuidesViewer } from './snk-guides-viewer-
|
15
|
+
import { S as SnkGuidesViewer } from './snk-guides-viewer-75e06feb.js';
|
16
16
|
import { S as SnkMessageBuilder } from './SnkMessageBuilder-12f5fe1a.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-b3871edb.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-0e025732.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-0e025732.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-75e06feb.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-0e025732.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-0e025732.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-c62b6c66.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-b3871edb.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-0e025732.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';
|
@@ -810,7 +810,7 @@ const SnkSimpleCrud = class {
|
|
810
810
|
if (this.dataUnit == undefined) {
|
811
811
|
return;
|
812
812
|
}
|
813
|
-
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),
|
813
|
+
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)
|
814
814
|
? undefined
|
815
815
|
: 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() }))));
|
816
816
|
}
|