@sankhyalabs/sankhyablocks 9.1.0-dev.1 → 9.1.0-dev.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ClientSideExporterProvider-0ce2bcd9.js → ClientSideExporterProvider-6a4108c9.js} +4 -4
- package/dist/cjs/{ConfigStorage-48ba265b.js → ConfigStorage-34aa43d8.js} +2 -2
- package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-e23a263b.js} +6 -1
- package/dist/cjs/{ISave-c76e2c51.js → ISave-e0be2362.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-aa4631bd.js → SnkFormConfigManager-61bf3266.js} +2 -2
- package/dist/cjs/{SnkMessageBuilder-e3b7850b.js → SnkMessageBuilder-221cc88d.js} +10 -2
- package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-8670a38f.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-a723f0dc.js → dataunit-fetcher-c34a8217.js} +4 -1
- package/dist/cjs/field-config_2.cjs.entry.js +1 -1
- package/dist/cjs/fields-layout.cjs.entry.js +1 -1
- package/dist/cjs/fields-selector.cjs.entry.js +2 -2
- package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-d8b78403.js} +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_8.cjs.entry.js +63 -203
- package/dist/cjs/snk-application.cjs.entry.js +7 -7
- package/dist/cjs/snk-attach.cjs.entry.js +33 -16
- package/dist/cjs/snk-crud.cjs.entry.js +6 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
- package/dist/cjs/{snk-data-unit-3684c96e.js → snk-data-unit-a4f9287b.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
- package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
- package/dist/cjs/snk-entity-list.cjs.entry.js +20 -14
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +44 -112
- package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -1
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form_2.cjs.entry.js +4 -4
- package/dist/cjs/snk-grid.cjs.entry.js +9 -8
- package/dist/cjs/{snk-guides-viewer-edc0a00a.js → snk-guides-viewer-29298823.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +6 -4
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
- package/dist/cjs/snk-simple-crud.cjs.entry.js +15 -15
- package/dist/collection/components/snk-attach/snk-attach.js +45 -11
- package/dist/collection/components/snk-crud/snk-crud.js +19 -0
- package/dist/collection/components/snk-entity-list/snk-entity-list.js +40 -15
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +6 -4
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +3 -1
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
- package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +49 -121
- package/dist/collection/components/snk-form-config/field-item/field-item.css +3 -23
- package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +4 -12
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +4 -0
- package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +1 -1
- package/dist/collection/components/snk-grid/snk-grid.js +37 -2
- package/dist/collection/components/snk-grid-config/snk-grid-config.css +7 -41
- package/dist/collection/components/snk-grid-config/snk-grid-config.js +58 -193
- package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css +1 -0
- package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +20 -1
- package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +1 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +9 -9
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +1 -0
- package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +1 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +6 -1
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +3 -0
- package/dist/collection/lib/message/resources/snk-grid.msg.js +10 -2
- package/dist/components/DataFetcher.js +6 -1
- package/dist/components/SnkMessageBuilder.js +10 -2
- package/dist/components/dataunit-fetcher.js +3 -0
- package/dist/components/field-item2.js +1 -1
- package/dist/components/fields-layout2.js +1 -1
- package/dist/components/fields-selector2.js +2 -2
- package/dist/components/pesquisa-grid2.js +1 -1
- package/dist/components/snk-attach2.js +29 -11
- package/dist/components/snk-crud.js +1 -0
- package/dist/components/snk-entity-list.js +21 -15
- package/dist/components/snk-filter-detail2.js +3 -1
- package/dist/components/snk-filter-item2.js +43 -111
- package/dist/components/snk-grid-config2.js +56 -195
- package/dist/components/snk-grid2.js +5 -2
- package/dist/components/snk-personalized-filter-editor.js +6 -4
- package/dist/components/snk-select-box2.js +5 -3
- package/dist/components/snk-simple-crud2.js +8 -8
- package/dist/components/snk-simple-form-config2.js +2 -2
- package/dist/esm/{ClientSideExporterProvider-3ed744fd.js → ClientSideExporterProvider-09dee1a3.js} +4 -4
- package/dist/esm/{ConfigStorage-79b9e180.js → ConfigStorage-89154c4e.js} +2 -2
- package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-db08cad0.js} +6 -1
- package/dist/esm/{ISave-5efafc97.js → ISave-da565824.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-b4b93298.js → SnkFormConfigManager-d64d62d6.js} +2 -2
- package/dist/esm/{SnkMessageBuilder-9c269caf.js → SnkMessageBuilder-da87a821.js} +10 -2
- package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-43c8d76b.js} +1 -1
- package/dist/esm/{dataunit-fetcher-0e025732.js → dataunit-fetcher-1b78797a.js} +4 -1
- package/dist/esm/field-config_2.entry.js +1 -1
- package/dist/esm/fields-layout.entry.js +1 -1
- package/dist/esm/fields-selector.entry.js +2 -2
- package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-e623539b.js} +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +5 -5
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_8.entry.js +63 -203
- package/dist/esm/snk-application.entry.js +7 -7
- package/dist/esm/snk-attach.entry.js +33 -16
- package/dist/esm/snk-crud.entry.js +6 -5
- package/dist/esm/snk-data-exporter.entry.js +6 -6
- package/dist/esm/{snk-data-unit-027bca56.js → snk-data-unit-330db397.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +4 -4
- package/dist/esm/snk-detail-view.entry.js +8 -8
- package/dist/esm/snk-entity-list.entry.js +20 -14
- package/dist/esm/snk-filter-bar_4.entry.js +45 -113
- package/dist/esm/snk-filter-detail.entry.js +3 -1
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form_2.entry.js +4 -4
- package/dist/esm/snk-grid.entry.js +9 -8
- package/dist/esm/{snk-guides-viewer-32f3d3ab.js → snk-guides-viewer-9335318d.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter-editor.entry.js +6 -4
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +4 -4
- package/dist/esm/snk-simple-crud.entry.js +15 -15
- package/dist/sankhyablocks/p-02480593.entry.js +1 -0
- package/dist/sankhyablocks/{p-09e60995.entry.js → p-1079e61b.entry.js} +1 -1
- package/dist/sankhyablocks/p-162bddae.entry.js +1 -0
- package/dist/sankhyablocks/{p-1456d7cb.entry.js → p-1c69a957.entry.js} +1 -1
- package/dist/sankhyablocks/{p-349d1968.entry.js → p-23b20add.entry.js} +1 -1
- package/dist/sankhyablocks/p-25209340.entry.js +1 -0
- package/dist/sankhyablocks/p-295b83ae.entry.js +1 -0
- package/dist/sankhyablocks/{p-a5bb2f93.entry.js → p-2d58f98e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9751c42f.entry.js → p-31193a60.entry.js} +1 -1
- package/dist/sankhyablocks/{p-7993b2e3.js → p-37b4f642.js} +1 -1
- package/dist/sankhyablocks/{p-2bde486e.js → p-3b1d73f9.js} +1 -1
- package/dist/sankhyablocks/{p-a6513fcb.js → p-412e06e9.js} +1 -1
- package/dist/sankhyablocks/p-5126b34e.entry.js +1 -0
- package/dist/sankhyablocks/{p-e3521eae.entry.js → p-5b31b239.entry.js} +1 -1
- package/dist/sankhyablocks/{p-bd665460.entry.js → p-60d3abf6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0cb295c1.entry.js → p-7c9815ea.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a06bf7b9.entry.js → p-7ced2cf4.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6416975c.js → p-8758404f.js} +1 -1
- package/dist/sankhyablocks/{p-65c5d430.entry.js → p-9a6fbf3d.entry.js} +1 -1
- package/dist/sankhyablocks/p-a2c6944d.entry.js +1 -0
- package/dist/sankhyablocks/{p-601b252b.js → p-b21d32f6.js} +1 -1
- package/dist/sankhyablocks/{p-c926cf6b.entry.js → p-b2946adb.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6dd38d7b.js → p-c9657baa.js} +1 -1
- package/dist/sankhyablocks/p-cb2a4613.entry.js +1 -0
- package/dist/sankhyablocks/{p-fbba7e3d.js → p-cd1a5b6a.js} +1 -1
- package/dist/sankhyablocks/p-cfc219f6.entry.js +1 -0
- package/dist/sankhyablocks/{p-73285a8a.js → p-e25412da.js} +1 -1
- package/dist/sankhyablocks/p-e56eb36b.entry.js +1 -0
- package/dist/sankhyablocks/p-f442c8f6.entry.js +1 -0
- package/dist/sankhyablocks/{p-763b04fa.js → p-fa591f6f.js} +1 -1
- package/dist/sankhyablocks/p-fc4eac32.js +1 -0
- package/dist/sankhyablocks/{p-fc0b609e.js → p-fc87708a.js} +1 -1
- package/dist/sankhyablocks/p-fd571197.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +5 -0
- package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
- package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +8 -4
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +10 -20
- package/dist/types/components/snk-grid/snk-grid.d.ts +8 -0
- package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +7 -20
- package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +4 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -1
- package/dist/types/components.d.ts +41 -1
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-19156e59.entry.js +0 -1
- package/dist/sankhyablocks/p-3a48bff3.entry.js +0 -1
- package/dist/sankhyablocks/p-3f24c9b2.js +0 -1
- package/dist/sankhyablocks/p-67d6d0c8.entry.js +0 -1
- package/dist/sankhyablocks/p-83c100f2.entry.js +0 -1
- package/dist/sankhyablocks/p-90805683.entry.js +0 -1
- package/dist/sankhyablocks/p-c3324d79.entry.js +0 -1
- package/dist/sankhyablocks/p-cfd0a4c6.entry.js +0 -1
- package/dist/sankhyablocks/p-d9491f6f.entry.js +0 -1
- package/dist/sankhyablocks/p-e7cccc45.entry.js +0 -1
- package/dist/sankhyablocks/p-e824d565.entry.js +0 -1
- package/dist/sankhyablocks/p-ff7060bc.entry.js +0 -1
- /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
- /package/dist/types/components/snk-simple-crud/{regular-buttons.d.ts → snk-simple-crud.constants.d.ts} +0 -0
@@ -8,16 +8,16 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
9
9
|
const index = require('./index-e3e39724.js');
|
10
10
|
const constants = require('./constants-6d82e405.js');
|
11
|
-
const DataFetcher = require('./DataFetcher-
|
12
|
-
const snkDataUnit = require('./snk-data-unit-
|
13
|
-
require('./ISave-
|
11
|
+
const DataFetcher = require('./DataFetcher-e23a263b.js');
|
12
|
+
const snkDataUnit = require('./snk-data-unit-a4f9287b.js');
|
13
|
+
require('./ISave-e0be2362.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-c34a8217.js');
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
18
|
-
require('./form-config-fetcher-
|
18
|
+
require('./form-config-fetcher-d8b78403.js');
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
20
|
-
require('./SnkMessageBuilder-
|
20
|
+
require('./SnkMessageBuilder-221cc88d.js');
|
21
21
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
22
22
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
@@ -3,8 +3,8 @@
|
|
3
3
|
const index = require('./index-1cf293c1.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
6
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
6
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-221cc88d.js');
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-c34a8217.js');
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
10
10
|
|
@@ -2,13 +2,13 @@
|
|
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-a4f9287b.js');
|
6
6
|
require('./index-1cf293c1.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
9
|
-
require('./SnkMessageBuilder-
|
10
|
-
require('./dataunit-fetcher-
|
11
|
-
require('./DataFetcher-
|
9
|
+
require('./SnkMessageBuilder-221cc88d.js');
|
10
|
+
require('./dataunit-fetcher-c34a8217.js');
|
11
|
+
require('./DataFetcher-e23a263b.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
@@ -4,22 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-61bf3266.js');
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
9
|
-
require('./DataFetcher-
|
10
|
-
require('./ISave-
|
9
|
+
require('./DataFetcher-e23a263b.js');
|
10
|
+
require('./ISave-e0be2362.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-c34a8217.js');
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
16
|
-
require('./form-config-fetcher-
|
16
|
+
require('./form-config-fetcher-d8b78403.js');
|
17
17
|
const constants = require('./constants-6d82e405.js');
|
18
18
|
const taskbarElements = require('./taskbar-elements-3b74cd21.js');
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
20
|
-
const SnkMessageBuilder = require('./SnkMessageBuilder-
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-29298823.js');
|
20
|
+
const SnkMessageBuilder = require('./SnkMessageBuilder-221cc88d.js');
|
21
21
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
22
|
-
require('./ConfigStorage-
|
22
|
+
require('./ConfigStorage-34aa43d8.js');
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
@@ -11,11 +11,11 @@ const SnkEntityList = class {
|
|
11
11
|
constructor(hostRef) {
|
12
12
|
index.registerInstance(this, hostRef);
|
13
13
|
this.valueChanged = index.createEvent(this, "valueChanged", 7);
|
14
|
-
this._searchValue = undefined;
|
15
14
|
this._ezListSource = [];
|
16
15
|
this.config = undefined;
|
17
16
|
this.rightListSlotBuilder = undefined;
|
18
17
|
this.maxHeightList = "";
|
18
|
+
this.value = undefined;
|
19
19
|
}
|
20
20
|
async reloadList() {
|
21
21
|
this.loadListSource();
|
@@ -77,18 +77,22 @@ const SnkEntityList = class {
|
|
77
77
|
}
|
78
78
|
onEzSearchChange(evt) {
|
79
79
|
var _a, _b, _c, _d;
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
id: evt.detail.value,
|
85
|
-
check: true,
|
86
|
-
label: evt.detail.label
|
87
|
-
}
|
88
|
-
] });
|
89
|
-
this.loadListSource();
|
90
|
-
this.valueChanged.emit((_d = this.config) === null || _d === void 0 ? void 0 : _d.value);
|
80
|
+
const newValueIsEmpty = core.ObjectUtils.isEmptySafetyCheck(evt.detail);
|
81
|
+
const hasConfingOnList = (_a = this.getListConfigValue(this.config)) === null || _a === void 0 ? void 0 : _a.find((i) => { var _a; return (i === null || i === void 0 ? void 0 : i.id) === ((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); });
|
82
|
+
if (newValueIsEmpty || hasConfingOnList) {
|
83
|
+
return;
|
91
84
|
}
|
85
|
+
this.config = Object.assign(Object.assign({}, this.config), { value: [
|
86
|
+
...((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : []),
|
87
|
+
{
|
88
|
+
id: evt.detail.value,
|
89
|
+
check: true,
|
90
|
+
label: evt.detail.label
|
91
|
+
}
|
92
|
+
] });
|
93
|
+
this.loadListSource();
|
94
|
+
this.value = this.config.value;
|
95
|
+
this.valueChanged.emit((_d = this.config) === null || _d === void 0 ? void 0 : _d.value);
|
92
96
|
}
|
93
97
|
getMessage(key, params) {
|
94
98
|
var _a;
|
@@ -99,8 +103,10 @@ const SnkEntityList = class {
|
|
99
103
|
return (_d = (_b = (_a = config.value) === null || _a === void 0 ? void 0 : _a.elements) !== null && _b !== void 0 ? _b : (_c = config === null || config === void 0 ? void 0 : config.value) === null || _c === void 0 ? void 0 : _c.members) !== null && _d !== void 0 ? _d : config === null || config === void 0 ? void 0 : config.value;
|
100
104
|
}
|
101
105
|
render() {
|
102
|
-
var _a, _b;
|
103
|
-
|
106
|
+
var _a, _b, _c;
|
107
|
+
const isSearchPlus = ((_a = this.config.props) === null || _a === void 0 ? void 0 : _a["useSearchPlus"]) == true;
|
108
|
+
const TagName = isSearchPlus ? "ez-search-plus" : "ez-search";
|
109
|
+
return (index.h(index.Host, null, index.h(TagName, { ref: elem => this._searchElement = elem, optionLoader: argument => this.optionLoader(argument), label: (_b = this.config) === null || _b === void 0 ? void 0 : _b.label, onEzChange: evt => this.onEzSearchChange(evt), suppressEmptyOption: true, stopPropagateEnterKeyEvent: true }), ((_c = this._ezListSource) === null || _c === void 0 ? void 0 : _c.length) > 0 && (index.h("label", { class: "label" }, this.getMessage("snkEntityList.selected"))), index.h("div", { style: this.maxHeightList ? { 'max-height': this.maxHeightList } : {}, class: { "snk-entity-list--overflow": !!this.maxHeightList } }, index.h("ez-list", { ref: (el) => this._ezList = el, id: "snkEntityList", listMode: "check", dataSource: this._ezListSource, hoverFeedback: true, itemSlotBuilder: this.rightListSlotBuilder, onEzCheckChange: evt => this.ezListChangeListener(evt) }))));
|
104
110
|
}
|
105
111
|
static get watchers() { return {
|
106
112
|
"config": ["observeConfig"]
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index$1 = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
10
10
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
11
11
|
const index = require('./index-62760a9c.js');
|
@@ -15,8 +15,8 @@ const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js')
|
|
15
15
|
const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
|
16
16
|
const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
|
17
17
|
const defaultFilters = require('./default-filters-a09bf82b.js');
|
18
|
-
require('./form-config-fetcher-
|
19
|
-
require('./DataFetcher-
|
18
|
+
require('./form-config-fetcher-d8b78403.js');
|
19
|
+
require('./DataFetcher-e23a263b.js');
|
20
20
|
require('./PrintUtils-bcaeb82f.js');
|
21
21
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
22
22
|
|
@@ -754,18 +754,13 @@ const SnkFilterBar = class {
|
|
754
754
|
};
|
755
755
|
SnkFilterBar.style = snkFilterBarCss;
|
756
756
|
|
757
|
+
const snkFilterItemCss = "ez-popover-core.sc-snk-filter-item{--ez-popover__box--z-index:var(--elevation--20, 20);--ez-popover__box--overlay-z-index:var(--elevation--16, 16)}";
|
758
|
+
|
757
759
|
const SnkFilterItem = class {
|
758
760
|
constructor(hostRef) {
|
759
761
|
index$1.registerInstance(this, hostRef);
|
760
762
|
this.visibleChanged = index$1.createEvent(this, "visibleChanged", 7);
|
761
763
|
this.filterChange = index$1.createEvent(this, "filterChange", 3);
|
762
|
-
this.innerClickCheck = (_floatingContainer, node) => {
|
763
|
-
if (node.id != core.FloatingManager.MODAL_ELEMENT_ID) {
|
764
|
-
return true;
|
765
|
-
}
|
766
|
-
this.detailIsVisible = false;
|
767
|
-
return false;
|
768
|
-
};
|
769
764
|
this.detailIsVisible = undefined;
|
770
765
|
this.config = undefined;
|
771
766
|
this.getMessage = undefined;
|
@@ -774,57 +769,28 @@ const SnkFilterItem = class {
|
|
774
769
|
observeDetailIsVisible(value) {
|
775
770
|
this.visibleChanged.emit(value);
|
776
771
|
}
|
772
|
+
/**
|
773
|
+
* Emitido quando o estado do filtro é alterado.
|
774
|
+
*/
|
775
|
+
filterChangeListener() {
|
776
|
+
this.hideDetail();
|
777
|
+
}
|
777
778
|
/**
|
778
779
|
* Exibe os detalhes de um item da lista.
|
779
780
|
*/
|
780
781
|
async showUp(open = false) {
|
781
|
-
|
782
|
-
|
783
|
-
|
784
|
-
|
785
|
-
|
786
|
-
(_a = this._chipElement) === null || _a === void 0 ? void 0 : _a.blur();
|
787
|
-
window.requestAnimationFrame(() => {
|
788
|
-
this._floatingID = core.FloatingManager.float(this._popover, this._popoverContainer, this.getFloatOptions());
|
789
|
-
this._popover.show();
|
790
|
-
this.detailIsVisible = true;
|
791
|
-
});
|
792
|
-
}
|
793
|
-
});
|
794
|
-
}
|
795
|
-
updatePosition() {
|
796
|
-
if (this._floatingID == undefined) {
|
797
|
-
return;
|
782
|
+
var _a;
|
783
|
+
this._filterItemElement.scrollIntoView({ behavior: "auto", block: "nearest", inline: "nearest" });
|
784
|
+
if (open) {
|
785
|
+
await ((_a = this._chipElement) === null || _a === void 0 ? void 0 : _a.setBlur());
|
786
|
+
await this._popover.showUnder(this._chipElement);
|
798
787
|
}
|
799
|
-
core.FloatingManager.updateFloatPosition(this._popover, this._popoverContainer, this.getFloatOptions());
|
800
|
-
}
|
801
|
-
getFloatOptions() {
|
802
|
-
return {
|
803
|
-
autoClose: true,
|
804
|
-
innerClickTest: this.innerClickCheck,
|
805
|
-
backClickListener: () => this.onDetailCloseCallback(),
|
806
|
-
left: this.getOffsetLeft(),
|
807
|
-
top: this.getOffsetTop(),
|
808
|
-
useOverlay: true,
|
809
|
-
overlayClassName: 'ez-scrim ez-scrim--light',
|
810
|
-
isFixed: true
|
811
|
-
};
|
812
788
|
}
|
813
|
-
|
814
|
-
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
const adjustRightPosition = filterDetailWidth - (document.body.clientWidth - rect.left);
|
819
|
-
return `calc(${rect.x}px + ${padding} - ${adjustRightPosition > 0 ? adjustRightPosition : 0}px)`;
|
820
|
-
}
|
821
|
-
getOffsetTop() {
|
822
|
-
const rect = this._filterItemElement.getBoundingClientRect();
|
823
|
-
return (rect.y + rect.height) + "px";
|
824
|
-
}
|
825
|
-
controlScrollPage() {
|
826
|
-
window.removeEventListener("scroll", this.updatePosition.bind(this));
|
827
|
-
window.addEventListener("scroll", this.updatePosition.bind(this));
|
789
|
+
/**
|
790
|
+
* Oculta os detalhes de um item da lista.
|
791
|
+
*/
|
792
|
+
async hideDetail() {
|
793
|
+
await this._popover.hide();
|
828
794
|
}
|
829
795
|
getConfigChanges() {
|
830
796
|
var _a;
|
@@ -837,51 +803,24 @@ const SnkFilterItem = class {
|
|
837
803
|
const newValue = hasMultiValues ? configToBeCleared.value.map((valueItem) => (Object.assign(Object.assign({}, valueItem), { check: false }))) : undefined;
|
838
804
|
return Object.assign(Object.assign({}, configToBeCleared), { value: newValue });
|
839
805
|
}
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
if (this._floatingID != undefined) {
|
846
|
-
core.FloatingManager.close(this._floatingID);
|
847
|
-
}
|
806
|
+
clearFilter(event) {
|
807
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
808
|
+
if (this.canClearFilter()) {
|
809
|
+
const configChanged = this.getConfigChanges();
|
810
|
+
this.filterChange.emit(configChanged);
|
848
811
|
}
|
849
|
-
|
850
|
-
|
851
|
-
this._floatingID = undefined;
|
852
|
-
this.detailIsVisible = false;
|
853
|
-
if (this._closeCallback) {
|
854
|
-
this._closeCallback();
|
855
|
-
this._closeCallback = undefined;
|
856
|
-
}
|
857
|
-
}
|
858
|
-
//---------------------------------------------
|
859
|
-
// Event handlers
|
860
|
-
//---------------------------------------------
|
861
|
-
clickListener(evt) {
|
862
|
-
if ([this._chipElement, this._leftIconElement, this._rightIconElement].includes(evt.target)) {
|
863
|
-
if (evt.target === this._rightIconElement && this.canClearFilter()) {
|
864
|
-
const configChanged = this.getConfigChanges();
|
865
|
-
this.filterChange.emit(configChanged);
|
866
|
-
}
|
867
|
-
else {
|
868
|
-
if (this.detailIsVisible) {
|
869
|
-
this.hideDetail();
|
870
|
-
}
|
871
|
-
else {
|
872
|
-
this.showUp(true);
|
873
|
-
}
|
874
|
-
}
|
875
|
-
evt.preventDefault();
|
876
|
-
evt.stopImmediatePropagation();
|
877
|
-
evt.stopPropagation();
|
812
|
+
else {
|
813
|
+
this.togglePopover();
|
878
814
|
}
|
879
815
|
}
|
880
|
-
|
881
|
-
|
882
|
-
|
883
|
-
|
884
|
-
|
816
|
+
async togglePopover(event) {
|
817
|
+
event === null || event === void 0 ? void 0 : event.preventDefault();
|
818
|
+
event === null || event === void 0 ? void 0 : event.stopPropagation();
|
819
|
+
if (this.detailIsVisible) {
|
820
|
+
await this.hideDetail();
|
821
|
+
}
|
822
|
+
else {
|
823
|
+
await this.showUp(true);
|
885
824
|
}
|
886
825
|
}
|
887
826
|
getLabel(isTooltipLabel = false) {
|
@@ -1002,20 +941,6 @@ const SnkFilterItem = class {
|
|
1002
941
|
core.ElementIDUtils.addIDInfo(this._filterItemElement);
|
1003
942
|
this._idSnkFilterDetail = `filterDetail_${this.config.id}`;
|
1004
943
|
}
|
1005
|
-
this.controlScrollPage();
|
1006
|
-
}
|
1007
|
-
componentDidRender() {
|
1008
|
-
if (this._floatingID == undefined) {
|
1009
|
-
if (this._popover) {
|
1010
|
-
this._popover.remove();
|
1011
|
-
}
|
1012
|
-
}
|
1013
|
-
}
|
1014
|
-
/**
|
1015
|
-
* Emitido quando o estado do filtro é alterado.
|
1016
|
-
*/
|
1017
|
-
filterChangeListener() {
|
1018
|
-
this.hideDetail();
|
1019
944
|
}
|
1020
945
|
canClearFilter() {
|
1021
946
|
const { value, groupedItems = [] } = this.config;
|
@@ -1046,21 +971,28 @@ const SnkFilterItem = class {
|
|
1046
971
|
return (config.type !== filterItemType_enum.FilterItemType.MULTI_LIST && config.value !== undefined) || this.hasActiveElements(config.value);
|
1047
972
|
}
|
1048
973
|
getEnabledChip() {
|
974
|
+
if (this.detailIsVisible) {
|
975
|
+
return true;
|
976
|
+
}
|
1049
977
|
if (this.config.type === filterItemType_enum.FilterItemType.PERSONALIZED) {
|
1050
978
|
const { groupedItems = [] } = this.config;
|
1051
979
|
return groupedItems.some(item => item.visible);
|
1052
980
|
}
|
1053
981
|
return this.hasActiveValue(this.config);
|
1054
982
|
}
|
983
|
+
handleVisibilityPopover(event) {
|
984
|
+
this.detailIsVisible = event.detail;
|
985
|
+
}
|
1055
986
|
render() {
|
1056
987
|
const leftIcon = this.getLeftIconName();
|
1057
|
-
return (index$1.h(index$1.Host, null, this.showChips && (index$1.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip() }, leftIcon && (index$1.h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" })), index$1.h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter" }))), index$1.h("
|
988
|
+
return (index$1.h(index$1.Host, null, this.showChips && (index$1.h("ez-chip", { id: this.config.id, ref: ref => this._chipElement = ref, label: this.getLabel(), value: this.getEnabledChip(), onClick: (event) => this.togglePopover(event), disableAutoUpdateValue: true }, leftIcon && (index$1.h("ez-icon", { ref: ref => this._leftIconElement = ref, iconName: leftIcon, class: "ez-padding-right--small", slot: "leftIcon" })), index$1.h("ez-icon", { ref: ref => this._rightIconElement = ref, iconName: this.getRightIconName(), class: "ez-padding-left--small", slot: "rightIcon", id: "removeFilter", onClick: (event) => this.clearFilter(event) }))), index$1.h("ez-popover-core", { ref: elem => this._popover = elem, onEzVisibilityChange: (event) => this.handleVisibilityPopover(event) }, index$1.h("snk-filter-detail", { key: this.config.id, config: this.config, getMessage: this.getMessage, class: "sc-snk-filter-bar snk-filter__popover ez-padding--small ez-elevation--16", "data-element-id": this._idSnkFilterDetail, showHardFixed: this.showChips }))));
|
1058
989
|
}
|
1059
990
|
get _filterItemElement() { return index$1.getElement(this); }
|
1060
991
|
static get watchers() { return {
|
1061
992
|
"detailIsVisible": ["observeDetailIsVisible"]
|
1062
993
|
}; }
|
1063
994
|
};
|
995
|
+
SnkFilterItem.style = snkFilterItemCss;
|
1064
996
|
|
1065
997
|
const SHOW_MORE_ITEM_NAME = "__SHOWMORE__";
|
1066
998
|
const MAX_FILTERS = 5;
|
@@ -29,6 +29,7 @@ const SnkFilterDetail = class {
|
|
29
29
|
var _a, _b;
|
30
30
|
this._editor && (this._editor["config"] = newValue);
|
31
31
|
(_b = (_a = this._editor) === null || _a === void 0 ? void 0 : _a["reloadList"]) === null || _b === void 0 ? void 0 : _b.call(_a);
|
32
|
+
this._customElementObject = this.getContentEditor();
|
32
33
|
}
|
33
34
|
componentDidLoad() {
|
34
35
|
if (this._element) {
|
@@ -165,9 +166,10 @@ const SnkFilterDetail = class {
|
|
165
166
|
}
|
166
167
|
componentWillLoad() {
|
167
168
|
this.originalConfig = core.ObjectUtils.copy(this.config);
|
169
|
+
this._customElementObject = this.getContentEditor();
|
168
170
|
}
|
169
171
|
render() {
|
170
|
-
const { tag: CustomElement, props } = this.
|
172
|
+
const { tag: CustomElement, props } = this._customElementObject;
|
171
173
|
return (index.h(index.Host, null, index.h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, index.h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), index.h(CustomElement, Object.assign({ maxHeightList: '240px', ref: ref => this._editor = ref, value: this.config.value, config: this.config, onKeyDown: evt => this.onKeyDonwListener(evt), "data-element-id": this._idContentEditor, getMessage: this.getMessage, rightListSlotBuilder: item => this.buildRightSlot(item) }, props)), index.h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), index.h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, this.filterCanBeCleared() && (index.h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" })), index.h("ez-button", { ref: ref => this._applyButton = ref, label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
|
172
174
|
}
|
173
175
|
get _element() { return index.getElement(this); }
|
@@ -6,10 +6,10 @@ const index = require('./index-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
9
|
+
const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
|
10
10
|
const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
|
11
|
-
require('./form-config-fetcher-
|
12
|
-
require('./DataFetcher-
|
11
|
+
require('./form-config-fetcher-d8b78403.js');
|
12
|
+
require('./DataFetcher-e23a263b.js');
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
15
|
|
@@ -4,16 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-61bf3266.js');
|
8
8
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
9
9
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
10
10
|
const FormConfigHelper = require('./FormConfigHelper-c664dbae.js');
|
11
11
|
const constants = require('./constants-6d82e405.js');
|
12
12
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
13
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
14
|
-
require('./ConfigStorage-
|
13
|
+
const formConfigFetcher = require('./form-config-fetcher-d8b78403.js');
|
14
|
+
require('./ConfigStorage-34aa43d8.js');
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
16
|
-
require('./DataFetcher-
|
16
|
+
require('./DataFetcher-e23a263b.js');
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
19
19
|
|
@@ -5,19 +5,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const taskbarElements = require('./taskbar-elements-3b74cd21.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
|
9
9
|
const index$1 = require('./index-e3e39724.js');
|
10
10
|
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
11
11
|
const index$2 = require('./index-0ad2baeb.js');
|
12
|
-
const ClientSideExporterProvider = require('./ClientSideExporterProvider-
|
12
|
+
const ClientSideExporterProvider = require('./ClientSideExporterProvider-6a4108c9.js');
|
13
13
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
14
|
-
require('./DataFetcher-
|
15
|
-
require('./ISave-
|
14
|
+
require('./DataFetcher-e23a263b.js');
|
15
|
+
require('./ISave-e0be2362.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-c34a8217.js');
|
19
19
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
20
|
-
require('./form-config-fetcher-
|
20
|
+
require('./form-config-fetcher-d8b78403.js');
|
21
21
|
require('./constants-6d82e405.js');
|
22
22
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
23
23
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
@@ -157,6 +157,8 @@ const SnkGrid = class {
|
|
157
157
|
this.useSearchColumn = true;
|
158
158
|
this.multipleEditionEnabled = true;
|
159
159
|
this.paginationCounterMode = 'auto';
|
160
|
+
this.suppressCheckboxColumn = undefined;
|
161
|
+
this.compact = undefined;
|
160
162
|
}
|
161
163
|
getGridHeaderSelectedBtns() {
|
162
164
|
const btns = [
|
@@ -285,7 +287,6 @@ const SnkGrid = class {
|
|
285
287
|
this._grid.getColumnsState()
|
286
288
|
.then((gridColumns) => {
|
287
289
|
this._snkGridConfig.columns = gridColumns.filter(c => c.name);
|
288
|
-
this._snkGridConfig.selectedIndex = 0;
|
289
290
|
this._popUpGridConfig = true;
|
290
291
|
});
|
291
292
|
}
|
@@ -573,7 +574,7 @@ const SnkGrid = class {
|
|
573
574
|
return undefined;
|
574
575
|
}
|
575
576
|
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large ez-box--no-outline", tabindex: "0" }, index.h("div", { class: "snk-grid__header ez-margin-bottom--extra-small" }, this._showSnkFilterBar &&
|
576
|
-
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-
|
577
|
+
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this.resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp }), index.h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" })), index.h("snk-taskbar", { class: "ez-padding-left--medium ez-padding-top--extra-small", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.topTaskbarCustomSlotId, overflowStrategy: 'none', actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.topTaskbarCustomSlotId }))), index.h("ez-grid", { ref: ref => this._grid = ref, class: (this.presentationMode === index$1.PresentationMode.SECONDARY ? "snk-grid-container__without-shadow " : "") + "snk-grid__table", "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: (evt) => this.gridDoubleClick.emit(evt.detail), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, columnfilterDataSource: this.columnFilterDataSource, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, recordsValidator: this.recordsValidator, canEdit: this.canEdit, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, useSearchColumn: this.useSearchColumn, suppressHorizontalScroll: this.suppressHorizontalScroll, paginationCounterMode: this.paginationCounterMode, suppressCheckboxColumn: this.suppressCheckboxColumn, compact: this.compact }, index.h("snk-taskbar", { id: 'teste', dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this.getGridHeaderButtons(), presentationMode: this.presentationMode, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), primaryButton: this.getPrimaryButton(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId, actionsSettingsList: this.getActionsSettingsList() }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12 snk-grid-container__footer" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._popUpGridConfig, onEzClosePopup: () => 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.resourceID }))));
|
577
578
|
}
|
578
579
|
get _element() { return index.getElement(this); }
|
579
580
|
static get watchers() { return {
|
@@ -2,19 +2,19 @@
|
|
2
2
|
|
3
3
|
const index = require('./index-1cf293c1.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-61bf3266.js');
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
7
7
|
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
8
8
|
const taskbarElements = require('./taskbar-elements-3b74cd21.js');
|
9
9
|
const constants = require('./constants-6d82e405.js');
|
10
|
-
require('./DataFetcher-
|
11
|
-
require('./ISave-
|
10
|
+
require('./DataFetcher-e23a263b.js');
|
11
|
+
require('./ISave-e0be2362.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-c34a8217.js');
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
17
|
-
require('./form-config-fetcher-
|
17
|
+
require('./form-config-fetcher-d8b78403.js');
|
18
18
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
19
19
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
20
20
|
|
@@ -2,13 +2,13 @@
|
|
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-29298823.js');
|
6
6
|
require('./index-1cf293c1.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
|
-
require('./SnkFormConfigManager-
|
9
|
-
require('./ConfigStorage-
|
10
|
-
require('./form-config-fetcher-
|
11
|
-
require('./DataFetcher-
|
8
|
+
require('./SnkFormConfigManager-61bf3266.js');
|
9
|
+
require('./ConfigStorage-34aa43d8.js');
|
10
|
+
require('./form-config-fetcher-d8b78403.js');
|
11
|
+
require('./DataFetcher-e23a263b.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
@@ -18,9 +18,9 @@ require('./taskbar-processor-2fba34a8.js');
|
|
18
18
|
require('./taskbar-elements-3b74cd21.js');
|
19
19
|
require('./index-e3e39724.js');
|
20
20
|
require('./index-0ad2baeb.js');
|
21
|
-
require('./ISave-
|
21
|
+
require('./ISave-e0be2362.js');
|
22
22
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
23
|
-
require('./dataunit-fetcher-
|
23
|
+
require('./dataunit-fetcher-c34a8217.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');
|
@@ -82,21 +82,23 @@ const SnkFilterPersonalized = class {
|
|
82
82
|
var _a, _b;
|
83
83
|
const params = (_b = (_a = parentItem === null || parentItem === void 0 ? void 0 : parentItem.props) === null || _a === void 0 ? void 0 : _a.personalizedFilter) === null || _b === void 0 ? void 0 : _b.parameters;
|
84
84
|
return params.map((param, index$1) => {
|
85
|
-
var _a, _b, _c;
|
85
|
+
var _a, _b, _c, _d;
|
86
86
|
const formProp = Object.assign(Object.assign({}, param), { id: parentItem.id });
|
87
87
|
const value = (_a = parentItem.value) === null || _a === void 0 ? void 0 : _a[index$1];
|
88
88
|
const elemId = 'param_' + index$1;
|
89
89
|
switch (param.userInterface) {
|
90
90
|
case core.UserInterface.SEARCH:
|
91
|
-
|
91
|
+
const isSearchPlus = ((_b = this.config.props) === null || _b === void 0 ? void 0 : _b["useSearchPlus"]) == true;
|
92
|
+
const TagName = isSearchPlus ? "ez-search-plus" : "ez-search";
|
93
|
+
return index.h(TagName, { id: elemId, suppressEmptyOption: true, value: value, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
|
92
94
|
case core.UserInterface.SWITCH:
|
93
95
|
case core.UserInterface.CHECKBOX:
|
94
96
|
const mode = core.UserInterface.SWITCH === param.userInterface ? utils.CheckMode.SWITCH : utils.CheckMode.REGULAR;
|
95
97
|
return index.h("ez-check", { id: elemId, class: "ez-padding-bottom--medium", mode: mode, value: value, label: param.label, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
96
98
|
case core.UserInterface.DECIMALNUMBER:
|
97
|
-
return index.h("ez-number-input", { id: elemId, label: param.label, value: value, precision: ((
|
99
|
+
return index.h("ez-number-input", { id: elemId, label: param.label, value: value, precision: ((_c = param.props) === null || _c === void 0 ? void 0 : _c.precision) || 2, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
98
100
|
case core.UserInterface.INTEGERNUMBER:
|
99
|
-
return index.h("ez-number-input", { id: elemId, label: param.label, value: value, precision: (
|
101
|
+
return index.h("ez-number-input", { id: elemId, label: param.label, value: value, precision: (_d = param.props) === null || _d === void 0 ? void 0 : _d.precision, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
100
102
|
case core.UserInterface.OPTIONSELECTOR:
|
101
103
|
return index.h("ez-combo-box", { id: elemId, label: param.label, value: value, options: param.options, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
|
102
104
|
case core.UserInterface.DATE:
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
|
9
9
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
10
10
|
const index$1 = require('./index-62760a9c.js');
|
11
11
|
const index$2 = require('./index-0ad2baeb.js');
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
13
|
-
require('./form-config-fetcher-
|
14
|
-
require('./DataFetcher-
|
13
|
+
require('./form-config-fetcher-d8b78403.js');
|
14
|
+
require('./DataFetcher-e23a263b.js');
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
17
17
|
|