@sankhyalabs/sankhyablocks 8.15.0-dev.3 → 8.15.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-0d507a8f.js → ConfigStorage-8009ecb2.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-467907f6.js → SnkFormConfigManager-7d850fbc.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-de65b9fc.js → dataunit-fetcher-bd4c52da.js} +11 -6
- package/dist/cjs/{index-0e663819.js → index-0922807b.js} +1 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-actions-button_2.cjs.entry.js +2 -2
- package/dist/cjs/snk-application.cjs.entry.js +63 -3
- package/dist/cjs/snk-attach.cjs.entry.js +11 -4
- package/dist/cjs/snk-crud.cjs.entry.js +3 -3
- package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
- package/dist/cjs/snk-detail-view.cjs.entry.js +6 -6
- package/dist/cjs/snk-filter-bar.cjs.entry.js +28 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +1 -2
- package/dist/cjs/snk-filter-modal.cjs.entry.js +14 -0
- package/dist/cjs/snk-form.cjs.entry.js +2 -2
- package/dist/cjs/snk-grid-config.cjs.entry.js +1 -1
- package/dist/cjs/snk-grid.cjs.entry.js +41 -18
- package/dist/cjs/{snk-guides-viewer-7e87ffce.js → snk-guides-viewer-cb176c4d.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +6 -6
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +2 -2
- package/dist/cjs/snk-simple-crud.cjs.entry.js +3 -3
- package/dist/cjs/snk-taskbar.cjs.entry.js +2 -2
- package/dist/cjs/{taskbar-elements-b8c428a9.js → taskbar-elements-01b85b99.js} +1 -1
- package/dist/collection/components/snk-application/snk-application.js +76 -13
- package/dist/collection/components/snk-attach/snk-attach.js +8 -1
- package/dist/collection/components/snk-crud/snk-crud.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +2 -2
- package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +65 -1
- package/dist/collection/components/snk-filter-bar/filter-modal/subcomponents/snk-filter-modal-item.js +0 -1
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +57 -1
- package/dist/collection/components/snk-filter-bar/utils/SnkFilterModalFactory.js +3 -1
- package/dist/collection/components/snk-grid/snk-grid.js +39 -16
- package/dist/collection/components/snk-personalized-filter/snk-personalized-filter.js +1 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +1 -1
- package/dist/collection/lib/@types/index.js +1 -0
- package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +11 -6
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +1 -1
- package/dist/components/ConfigStorage.js +1 -1
- package/dist/components/dataunit-fetcher.js +11 -6
- package/dist/components/index2.js +1 -0
- package/dist/components/snk-application2.js +62 -2
- package/dist/components/snk-attach2.js +8 -1
- package/dist/components/snk-detail-view2.js +1 -1
- package/dist/components/snk-filter-bar2.js +29 -3
- package/dist/components/snk-filter-modal-item2.js +0 -1
- package/dist/components/snk-filter-modal.js +18 -2
- package/dist/components/snk-grid2.js +38 -15
- package/dist/components/snk-personalized-filter2.js +1 -1
- package/dist/esm/{ConfigStorage-379a9cba.js → ConfigStorage-1244b8b0.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-587e9030.js → SnkFormConfigManager-9be0e7d4.js} +1 -1
- package/dist/esm/{dataunit-fetcher-e218c6d2.js → dataunit-fetcher-65714f21.js} +11 -6
- package/dist/esm/{index-1564817d.js → index-0ece87a6.js} +1 -0
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-actions-button_2.entry.js +2 -2
- package/dist/esm/snk-application.entry.js +64 -4
- package/dist/esm/snk-attach.entry.js +11 -4
- package/dist/esm/snk-crud.entry.js +3 -3
- package/dist/esm/snk-data-exporter.entry.js +1 -1
- package/dist/esm/snk-detail-view.entry.js +6 -6
- package/dist/esm/snk-filter-bar.entry.js +28 -3
- package/dist/esm/snk-filter-modal-item.entry.js +1 -2
- package/dist/esm/snk-filter-modal.entry.js +14 -0
- package/dist/esm/snk-form.entry.js +2 -2
- package/dist/esm/snk-grid-config.entry.js +1 -1
- package/dist/esm/snk-grid.entry.js +41 -18
- package/dist/esm/{snk-guides-viewer-2134aba2.js → snk-guides-viewer-eeb8f354.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +6 -6
- package/dist/esm/snk-personalized-filter.entry.js +2 -2
- package/dist/esm/snk-simple-crud.entry.js +3 -3
- package/dist/esm/snk-taskbar.entry.js +2 -2
- package/dist/esm/{taskbar-elements-26c981af.js → taskbar-elements-d4d0b424.js} +1 -1
- package/dist/sankhyablocks/{p-35fe6e61.entry.js → p-0874adb5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-aaa1438e.entry.js → p-11081798.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ba627e85.js → p-29804fc5.js} +1 -1
- package/dist/sankhyablocks/p-3520c088.entry.js +1 -0
- package/dist/sankhyablocks/p-374d03f6.js +1 -0
- package/dist/sankhyablocks/p-38289a55.js +1 -0
- package/dist/sankhyablocks/{p-4396d1a6.js → p-585294ee.js} +1 -1
- package/dist/sankhyablocks/{p-953346b9.entry.js → p-69efa80d.entry.js} +1 -1
- package/dist/sankhyablocks/{p-a49b1019.entry.js → p-6d20d38c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-2028633c.js → p-776ee8e3.js} +1 -1
- package/dist/sankhyablocks/p-7d51d949.entry.js +11 -0
- package/dist/sankhyablocks/p-809f367d.entry.js +1 -0
- package/dist/sankhyablocks/{p-0cd2e986.entry.js → p-95a3778f.entry.js} +1 -1
- package/dist/sankhyablocks/p-a9e5b094.entry.js +1 -0
- package/dist/sankhyablocks/p-b146a9f0.entry.js +1 -0
- package/dist/sankhyablocks/p-bedb8ad6.entry.js +1 -0
- package/dist/sankhyablocks/{p-a7923832.entry.js → p-ca4d337a.entry.js} +1 -1
- package/dist/sankhyablocks/{p-ca8e7da0.entry.js → p-cdd66657.entry.js} +1 -1
- package/dist/sankhyablocks/p-d1f5bc50.js +1 -0
- package/dist/sankhyablocks/p-f2056f66.entry.js +1 -0
- package/dist/sankhyablocks/p-f514913b.entry.js +1 -0
- package/dist/sankhyablocks/{p-729f5f5b.entry.js → p-fd8814b9.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-actions-button/subcomponents/snk-actions-form.d.ts +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +5 -2
- package/dist/types/components/snk-attach/snk-attach.d.ts +1 -0
- package/dist/types/components/snk-filter-bar/filter-modal/snk-filter-modal.d.ts +14 -1
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +11 -0
- package/dist/types/components/snk-filter-bar/utils/SnkFilterModalFactory.d.ts +5 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +1 -0
- package/dist/types/components/snk-taskbar/subcomponents/field-search.d.ts +1 -0
- package/dist/types/components.d.ts +34 -11
- package/dist/types/lib/@types/index.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.d.ts +1 -0
- package/package.json +3 -3
- package/dist/sankhyablocks/p-145c4434.js +0 -1
- package/dist/sankhyablocks/p-4b0ea83f.entry.js +0 -1
- package/dist/sankhyablocks/p-5534e08c.js +0 -1
- package/dist/sankhyablocks/p-58218eb7.entry.js +0 -1
- package/dist/sankhyablocks/p-78777ae0.entry.js +0 -1
- package/dist/sankhyablocks/p-7915c452.entry.js +0 -1
- package/dist/sankhyablocks/p-a037f5b4.entry.js +0 -1
- package/dist/sankhyablocks/p-b52c2175.js +0 -1
- package/dist/sankhyablocks/p-bf9b7149.entry.js +0 -11
- package/dist/sankhyablocks/p-c259545b.entry.js +0 -1
- package/dist/sankhyablocks/p-d1677df0.entry.js +0 -1
@@ -4,9 +4,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-7d850fbc.js');
|
8
8
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
9
|
-
require('./ConfigStorage-
|
9
|
+
require('./ConfigStorage-8009ecb2.js');
|
10
10
|
require('./form-config-fetcher-df043d3d.js');
|
11
11
|
require('./DataFetcher-ba94ed5b.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -6,7 +6,7 @@ const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
8
8
|
const CheckMode = require('@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode');
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
9
|
+
const ConfigStorage = require('./ConfigStorage-8009ecb2.js');
|
10
10
|
const constants = require('./constants-35ddd366.js');
|
11
11
|
require('./form-config-fetcher-df043d3d.js');
|
12
12
|
require('./DataFetcher-ba94ed5b.js');
|
@@ -5,9 +5,9 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
10
|
-
const index$1 = require('./index-
|
8
|
+
const taskbarElements = require('./taskbar-elements-01b85b99.js');
|
9
|
+
const ConfigStorage = require('./ConfigStorage-8009ecb2.js');
|
10
|
+
const index$1 = require('./index-0922807b.js');
|
11
11
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
12
12
|
const index$2 = require('./index-102ba62d.js');
|
13
13
|
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-ba5838c2.js');
|
@@ -30,14 +30,21 @@ const SnkGrid = class {
|
|
30
30
|
this._topTaskbarProcessor = new fieldSearch.TaskbarProcessor({
|
31
31
|
"snkGridTopTaskbar.regular": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
32
32
|
"snkGridTopTaskbar.regular.secondary": ["FORM_MODE", "CONFIGURATOR", "INSERT"],
|
33
|
+
"snkGridTopTaskbar.regular.singleTaskbar": [],
|
33
34
|
"snkGridTopTaskbar.finish_edition": ["CANCEL", "SAVE"],
|
34
|
-
"snkGridTopTaskbar.finish_edition.secondary": []
|
35
|
+
"snkGridTopTaskbar.finish_edition.secondary": [],
|
36
|
+
"snkGridTopTaskbar.finish_edition.singleTaskbar": [],
|
35
37
|
});
|
36
38
|
this._headerTaskbarProcessor = new fieldSearch.TaskbarProcessor({
|
37
39
|
"snkGridHeaderTaskbar.unselected": ["REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
|
38
40
|
"snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
|
39
41
|
"snkGridHeaderTaskbar.detail.unselected": ["REFRESH", "MORE_OPTIONS"],
|
40
|
-
"snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"]
|
42
|
+
"snkGridHeaderTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"],
|
43
|
+
"snkGridHeaderTaskbar.singleTaskbar.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON", "MORE_OPTIONS"],
|
44
|
+
"snkGridHeaderTaskbar.singleTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "ATTACH", "FORM_MODE", "CONFIGURATOR", "REFRESH", "DATA_EXPORTER", "ACTIONS_BUTTON"],
|
45
|
+
"snkGridHeaderTaskbar.singleTaskbar.detail.unselected": ["INSERT", "FORM_MODE", "CONFIGURATOR", "REFRESH", "MORE_OPTIONS"],
|
46
|
+
"snkGridHeaderTaskbar.singleTaskbar.detail.selected": ["UPDATE", "ATTACH", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "FORM_MODE", "CONFIGURATOR", "REFRESH"],
|
47
|
+
"snkGridHeaderTaskbar.singleTaskbar.finish_edition": ["CANCEL", "SAVE"]
|
41
48
|
});
|
42
49
|
this._dataUnit = undefined;
|
43
50
|
this._dataState = undefined;
|
@@ -318,30 +325,46 @@ const SnkGrid = class {
|
|
318
325
|
return invisibleButtons;
|
319
326
|
}
|
320
327
|
componentWillRender() {
|
321
|
-
var _a;
|
322
328
|
const invisibleButtons = this.getInvisibleButtons();
|
323
|
-
|
324
|
-
let headerTaskbarId;
|
325
|
-
if (hasSelectedRecord) {
|
326
|
-
headerTaskbarId = this.isDetail ? "snkGridHeaderTaskbar.detail.selected" : "snkGridHeaderTaskbar.selected";
|
327
|
-
}
|
328
|
-
else {
|
329
|
-
headerTaskbarId = this.isDetail ? "snkGridHeaderTaskbar.detail.unselected" : "snkGridHeaderTaskbar.unselected";
|
330
|
-
}
|
331
|
-
this._headerTaskbarProcessor.process(headerTaskbarId, this.taskbarManager, this._dataState, this.getHeaderDisabledButtons(), invisibleButtons);
|
329
|
+
this._headerTaskbarProcessor.process(this.getHeaderTaskbarId(), this.taskbarManager, this._dataState, this.getHeaderDisabledButtons(), invisibleButtons);
|
332
330
|
this._topTaskbarProcessor.process(this.getTopTaskBarId(), this.taskbarManager, this._dataState, undefined, invisibleButtons);
|
333
331
|
this.dataExporterProviderStore();
|
334
332
|
}
|
333
|
+
getHeaderTaskbarId() {
|
334
|
+
var _a, _b;
|
335
|
+
const hasSelectedRecord = this._dataState && !!((_a = this._dataState.selectionInfo) === null || _a === void 0 ? void 0 : _a.length);
|
336
|
+
const taskbarIdPrefixLookup = {
|
337
|
+
primary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
|
338
|
+
secondary: this.isDetail ? "snkGridHeaderTaskbar.detail" : "snkGridHeaderTaskbar",
|
339
|
+
singleTaskbar: this.isDetail ? "snkGridHeaderTaskbar.singleTaskbar.detail" : "snkGridHeaderTaskbar.singleTaskbar"
|
340
|
+
};
|
341
|
+
const taskbarIdPrefix = taskbarIdPrefixLookup[this.presentationMode];
|
342
|
+
let headerTaskbarId = hasSelectedRecord ? `${taskbarIdPrefix}.selected` : `${taskbarIdPrefix}.unselected`;
|
343
|
+
if (((_b = this._dataState) === null || _b === void 0 ? void 0 : _b.isDirty) && this.presentationMode === index$1.PresentationMode.SINGLE_TASKBAR) {
|
344
|
+
headerTaskbarId = "snkGridHeaderTaskbar.singleTaskbar.finish_edition";
|
345
|
+
}
|
346
|
+
return headerTaskbarId;
|
347
|
+
}
|
335
348
|
getTopTaskBarId() {
|
336
349
|
var _a;
|
337
|
-
const
|
350
|
+
const suffixLookup = {
|
351
|
+
primary: "",
|
352
|
+
secondary: ".secondary",
|
353
|
+
singleTaskbar: ".singleTaskbar"
|
354
|
+
};
|
355
|
+
const sufix = suffixLookup[this.presentationMode];
|
338
356
|
if ((_a = this._dataState) === null || _a === void 0 ? void 0 : _a.isDirty) {
|
339
357
|
return `snkGridTopTaskbar.finish_edition${sufix}`;
|
340
358
|
}
|
341
359
|
return `snkGridTopTaskbar.regular${sufix}`;
|
342
360
|
}
|
343
361
|
getPrimaryButton() {
|
344
|
-
|
362
|
+
const primaryButtonLookup = {
|
363
|
+
primary: "INSERT",
|
364
|
+
secondary: "",
|
365
|
+
singleTaskbar: "INSERT"
|
366
|
+
};
|
367
|
+
return primaryButtonLookup[this.presentationMode];
|
345
368
|
}
|
346
369
|
getColumnSearch(actionButton, item) {
|
347
370
|
if (this._columnSearch != undefined) {
|
@@ -392,7 +415,7 @@ const SnkGrid = class {
|
|
392
415
|
return undefined;
|
393
416
|
}
|
394
417
|
return (index.h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, index.h("div", { class: "snk-grid__header ez-margin-bottom--medium" }, this._showSnkFilterBar &&
|
395
|
-
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, 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) }), 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", "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 }, 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 }, index.h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.getActionsList(), resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: this.gridHeaderCustomSlotId }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, 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), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
418
|
+
index.h(index.Fragment, null, index.h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, 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) }), 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", "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 }, 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 }, index.h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, messagesBuilder: this.messagesBuilder, "data-element-id": "grid_left", buttons: this._headerTaskbarProcessor.buttons, 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 }, index.h("slot", { name: this.gridHeaderCustomSlotId }))), index.h("div", { class: "ez-col ez-col--sd-12" }, index.h("slot", { name: "SnkGridFooter" })), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, 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), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resourceID }))));
|
396
419
|
}
|
397
420
|
get _element() { return index.getElement(this); }
|
398
421
|
};
|
@@ -2,18 +2,18 @@
|
|
2
2
|
|
3
3
|
const index = require('./index-f9e81701.js');
|
4
4
|
const core = require('@sankhyalabs/core');
|
5
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
5
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-7d850fbc.js');
|
6
6
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
7
7
|
const fieldSearch = require('./field-search-f56aa7d6.js');
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
8
|
+
const taskbarElements = require('./taskbar-elements-01b85b99.js');
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
10
10
|
require('./DataFetcher-ba94ed5b.js');
|
11
11
|
require('./pesquisa-fetcher-ef050a47.js');
|
12
|
-
const index$1 = require('./index-
|
12
|
+
const index$1 = require('./index-0922807b.js');
|
13
13
|
require('./ISave-d68ce3cd.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-bd4c52da.js');
|
17
17
|
require('./PreloadManager-84466da6.js');
|
18
18
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
19
19
|
require('./form-config-fetcher-df043d3d.js');
|
@@ -151,7 +151,7 @@ const SnkGuidesViewer = class {
|
|
151
151
|
});
|
152
152
|
this._guides = this._guides.map(guide => {
|
153
153
|
if (guide.id === guideItem.id) {
|
154
|
-
return Object.assign(Object.assign({}, guide), guideItem);
|
154
|
+
return Object.assign(Object.assign(Object.assign({}, guide), guideItem), (guideItem.children !== undefined ? {} : { children: undefined }));
|
155
155
|
}
|
156
156
|
return guide;
|
157
157
|
});
|
@@ -2,11 +2,11 @@
|
|
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-cb176c4d.js');
|
6
6
|
require('./index-f9e81701.js');
|
7
7
|
require('@sankhyalabs/core');
|
8
|
-
require('./SnkFormConfigManager-
|
9
|
-
require('./ConfigStorage-
|
8
|
+
require('./SnkFormConfigManager-7d850fbc.js');
|
9
|
+
require('./ConfigStorage-8009ecb2.js');
|
10
10
|
require('./form-config-fetcher-df043d3d.js');
|
11
11
|
require('./DataFetcher-ba94ed5b.js');
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
@@ -14,14 +14,14 @@ require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
15
15
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
16
16
|
require('./field-search-f56aa7d6.js');
|
17
|
-
require('./taskbar-elements-
|
18
|
-
require('./index-
|
17
|
+
require('./taskbar-elements-01b85b99.js');
|
18
|
+
require('./index-0922807b.js');
|
19
19
|
require('./index-102ba62d.js');
|
20
20
|
require('./constants-35ddd366.js');
|
21
21
|
require('./pesquisa-fetcher-ef050a47.js');
|
22
22
|
require('./ISave-d68ce3cd.js');
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
24
|
-
require('./dataunit-fetcher-
|
24
|
+
require('./dataunit-fetcher-bd4c52da.js');
|
25
25
|
require('./PreloadManager-84466da6.js');
|
26
26
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
27
27
|
require('./ResourceIDUtils-5ff86aa7.js');
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
8
|
+
const ConfigStorage = require('./ConfigStorage-8009ecb2.js');
|
9
9
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
10
10
|
const index$1 = require('./index-c5771aba.js');
|
11
11
|
const index$2 = require('./index-102ba62d.js');
|
@@ -204,7 +204,7 @@ const SnkPersonalizedFilter = class {
|
|
204
204
|
return personalizedFilter;
|
205
205
|
}
|
206
206
|
addFilterGroupCondition(personalizedFilter) {
|
207
|
-
if (!personalizedFilter.assistent.operand) {
|
207
|
+
if (personalizedFilter.assistent && !personalizedFilter.assistent.operand) {
|
208
208
|
personalizedFilter.assistent.operand = index$1.FilterGroupCondition.AND;
|
209
209
|
}
|
210
210
|
}
|
@@ -5,14 +5,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const constants = require('./constants-35ddd366.js');
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
8
|
+
const taskbarElements = require('./taskbar-elements-01b85b99.js');
|
9
9
|
require('./DataFetcher-ba94ed5b.js');
|
10
10
|
require('./pesquisa-fetcher-ef050a47.js');
|
11
|
-
const index$1 = require('./index-
|
11
|
+
const index$1 = require('./index-0922807b.js');
|
12
12
|
require('./ISave-d68ce3cd.js');
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
15
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
15
|
+
const dataunitFetcher = require('./dataunit-fetcher-bd4c52da.js');
|
16
16
|
require('./PreloadManager-84466da6.js');
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
18
18
|
require('./form-config-fetcher-df043d3d.js');
|
@@ -5,8 +5,8 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
6
6
|
const core = require('@sankhyalabs/core');
|
7
7
|
const AuthorizationConfig = require('./AuthorizationConfig-79ffae4b.js');
|
8
|
-
const taskbarElements = require('./taskbar-elements-
|
9
|
-
const index$1 = require('./index-
|
8
|
+
const taskbarElements = require('./taskbar-elements-01b85b99.js');
|
9
|
+
const index$1 = require('./index-0922807b.js');
|
10
10
|
require('./index-102ba62d.js');
|
11
11
|
|
12
12
|
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex}";
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ApplicationContext, DataType, DependencyType, ElementIDUtils, ErrorTracking, OnboardingUtils, StringUtils, KeyboardManager } from "@sankhyalabs/core";
|
1
|
+
import { ApplicationContext, DataType, DependencyType, ElementIDUtils, ErrorTracking, OnboardingUtils, StringUtils, KeyboardManager, ObjectUtils, ArrayUtils, SearchUtils } from "@sankhyalabs/core";
|
2
2
|
import { ApplicationUtils } from "@sankhyalabs/ezui/dist/collection/utils";
|
3
3
|
import { h } from "@stencil/core";
|
4
4
|
import AppletCaller from "../../lib/applet-caller/applet-caller";
|
@@ -582,11 +582,53 @@ export class SnkApplication {
|
|
582
582
|
return this.executePreparedSearch(mode, argument, { entity: ENTITYNAME, entityDescription: DESCRIPTIONENTITY, criteria, searchOptions });
|
583
583
|
}
|
584
584
|
}
|
585
|
+
filterInvalidFields(resp, item, mdByName) {
|
586
|
+
let fieldsMetadata = resp.fieldsMetadata.filter((field) => {
|
587
|
+
let accept = !StringUtils.isEmpty(item[field.fieldName]) &&
|
588
|
+
field.visible !== false &&
|
589
|
+
field.type !== 'B' &&
|
590
|
+
resp.pkField !== field.fieldName &&
|
591
|
+
resp.descriptionField !== field.fieldName &&
|
592
|
+
(field.isPrimaryKey || !field.isLinkField) &&
|
593
|
+
!(field.type === 'S' && field.presentationType === 'H');
|
594
|
+
if (accept) {
|
595
|
+
mdByName[field.fieldName] = field;
|
596
|
+
}
|
597
|
+
//Condição que trata o problema de trazer imagem no entityCard na pesquisa de registros
|
598
|
+
if (typeof item[field.fieldName] === 'string' && (item[field.fieldName].indexOf('<img') > -1 || item[field.fieldName].indexOf('<svg') > -1)) {
|
599
|
+
return false;
|
600
|
+
}
|
601
|
+
return accept;
|
602
|
+
});
|
603
|
+
return fieldsMetadata;
|
604
|
+
}
|
605
|
+
filterMathFields(matchFields, fields, qtyFields, mdByName) {
|
606
|
+
if (matchFields && Array.isArray(matchFields)) {
|
607
|
+
matchFields.forEach((matchField) => {
|
608
|
+
let fieldMD = ArrayUtils.removeReference(fields, mdByName[matchField]);
|
609
|
+
if (fieldMD) {
|
610
|
+
fields.unshift(fieldMD);
|
611
|
+
}
|
612
|
+
});
|
613
|
+
}
|
614
|
+
fields = fields.slice(0, qtyFields);
|
615
|
+
return fields;
|
616
|
+
}
|
617
|
+
builOptionItem(argument, item, fields, descriptionField, pkField) {
|
618
|
+
var _a;
|
619
|
+
let exibitionItem = {
|
620
|
+
value: StringUtils.highlightValue(argument, item['__matchFields'], (_a = item[pkField]) === null || _a === void 0 ? void 0 : _a.toString(), fields, true),
|
621
|
+
label: descriptionField ? StringUtils.highlightValue(argument, item['__matchFields'], item[descriptionField], fields, true) : "",
|
622
|
+
details: SearchUtils.buildDetails(argument, fields, item)
|
623
|
+
};
|
624
|
+
return exibitionItem;
|
625
|
+
}
|
585
626
|
/**
|
586
627
|
* Obtém as opções em componentes de pesquisa
|
587
628
|
* Ex.: snk-config-options
|
588
629
|
*/
|
589
630
|
async executePreparedSearch(mode, argument, options) {
|
631
|
+
const mdByName = {};
|
590
632
|
const { entity, entityDescription, criteria, searchOptions } = options;
|
591
633
|
if (mode === "ADVANCED") {
|
592
634
|
return new Promise(accept => {
|
@@ -604,7 +646,25 @@ export class SnkApplication {
|
|
604
646
|
});
|
605
647
|
}
|
606
648
|
else {
|
607
|
-
return
|
649
|
+
return new Promise((resolve, reject) => {
|
650
|
+
this.pesquisaFetcher.loadAdvancedSearch(entity, argument, criteria, searchOptions)
|
651
|
+
.then(result => {
|
652
|
+
result = ObjectUtils.stringToObject(result.json.$);
|
653
|
+
let descriptionField = result.descriptionField;
|
654
|
+
let pkField = result.pkField;
|
655
|
+
const list = [];
|
656
|
+
result.data.forEach((item) => {
|
657
|
+
let fieldsMetadata = this.filterInvalidFields(result, item, mdByName);
|
658
|
+
let qtyFields = 6;
|
659
|
+
let fields = this.filterMathFields(item['__matchFields'], fieldsMetadata, qtyFields, mdByName);
|
660
|
+
list.push(this.builOptionItem(argument, item, fields, descriptionField, pkField));
|
661
|
+
});
|
662
|
+
resolve(list);
|
663
|
+
})
|
664
|
+
.catch(error => {
|
665
|
+
reject(error);
|
666
|
+
});
|
667
|
+
});
|
608
668
|
}
|
609
669
|
}
|
610
670
|
/**
|
@@ -1363,6 +1423,9 @@ export class SnkApplication {
|
|
1363
1423
|
"text": ""
|
1364
1424
|
}],
|
1365
1425
|
"references": {
|
1426
|
+
"Promise": {
|
1427
|
+
"location": "global"
|
1428
|
+
},
|
1366
1429
|
"Array": {
|
1367
1430
|
"location": "global"
|
1368
1431
|
},
|
@@ -2078,13 +2141,9 @@ export class SnkApplication {
|
|
2078
2141
|
"Promise": {
|
2079
2142
|
"location": "global"
|
2080
2143
|
},
|
2081
|
-
"IOption": {
|
2082
|
-
"location": "import",
|
2083
|
-
"path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
|
2084
|
-
},
|
2085
2144
|
"ISearchArgument": {
|
2086
2145
|
"location": "import",
|
2087
|
-
"path": "@sankhyalabs/ezui/dist/types/components/ez-
|
2146
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
|
2088
2147
|
},
|
2089
2148
|
"DataUnit": {
|
2090
2149
|
"location": "import",
|
@@ -2093,12 +2152,16 @@ export class SnkApplication {
|
|
2093
2152
|
"Array": {
|
2094
2153
|
"location": "global"
|
2095
2154
|
},
|
2155
|
+
"IOption": {
|
2156
|
+
"location": "import",
|
2157
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
|
2158
|
+
},
|
2096
2159
|
"SearchCriteria": {
|
2097
2160
|
"location": "import",
|
2098
2161
|
"path": "../../lib/http/data-fetcher/fetchers/pesquisa-fetcher"
|
2099
2162
|
}
|
2100
2163
|
},
|
2101
|
-
"return": "Promise<
|
2164
|
+
"return": "Promise<any>"
|
2102
2165
|
},
|
2103
2166
|
"docs": {
|
2104
2167
|
"text": "Obt\u00E9m as op\u00E7\u00F5es em componentes de pesquisa\nEx.: snk-config-options",
|
@@ -2122,18 +2185,18 @@ export class SnkApplication {
|
|
2122
2185
|
"Promise": {
|
2123
2186
|
"location": "global"
|
2124
2187
|
},
|
2125
|
-
"IOption": {
|
2126
|
-
"location": "import",
|
2127
|
-
"path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
|
2128
|
-
},
|
2129
2188
|
"Array": {
|
2130
2189
|
"location": "global"
|
2131
2190
|
},
|
2191
|
+
"IOption": {
|
2192
|
+
"location": "import",
|
2193
|
+
"path": "@sankhyalabs/ezui/dist/types/components/ez-search/ez-search"
|
2194
|
+
},
|
2132
2195
|
"HTMLSnkPesquisaElement": {
|
2133
2196
|
"location": "global"
|
2134
2197
|
}
|
2135
2198
|
},
|
2136
|
-
"return": "Promise<
|
2199
|
+
"return": "Promise<any>"
|
2137
2200
|
},
|
2138
2201
|
"docs": {
|
2139
2202
|
"text": "Obt\u00E9m as op\u00E7\u00F5es em componentes de pesquisa\nEx.: snk-config-options",
|
@@ -34,6 +34,9 @@ export class SnkAttach {
|
|
34
34
|
}
|
35
35
|
registerKeyWatcher(newRegisterKey, oldRegisterKey) {
|
36
36
|
var _a;
|
37
|
+
if (this.dataUnit == null) {
|
38
|
+
this.loadAttachmentDataUnit();
|
39
|
+
}
|
37
40
|
if (oldRegisterKey !== newRegisterKey) {
|
38
41
|
this.returnToGridMode();
|
39
42
|
this._attachFetcher = new AttachFetcher(this.entityName, this.registerKey, (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
@@ -104,7 +107,11 @@ export class SnkAttach {
|
|
104
107
|
}
|
105
108
|
componentWillLoad() {
|
106
109
|
this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
107
|
-
|
110
|
+
}
|
111
|
+
componentWillRender() {
|
112
|
+
if (this.dataUnit == null) {
|
113
|
+
this.loadAttachmentDataUnit();
|
114
|
+
}
|
108
115
|
}
|
109
116
|
render() {
|
110
117
|
var _a, _b;
|
@@ -459,7 +459,7 @@ export class SnkCrud {
|
|
459
459
|
"mutable": false,
|
460
460
|
"complexType": {
|
461
461
|
"original": "PresentationMode",
|
462
|
-
"resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY",
|
462
|
+
"resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY | PresentationMode.SINGLE_TASKBAR",
|
463
463
|
"references": {
|
464
464
|
"PresentationMode": {
|
465
465
|
"location": "import",
|
@@ -134,7 +134,7 @@ export class SnkGuidesViewer {
|
|
134
134
|
});
|
135
135
|
this._guides = this._guides.map(guide => {
|
136
136
|
if (guide.id === guideItem.id) {
|
137
|
-
return Object.assign(Object.assign({}, guide), guideItem);
|
137
|
+
return Object.assign(Object.assign(Object.assign({}, guide), guideItem), (guideItem.children !== undefined ? {} : { children: undefined }));
|
138
138
|
}
|
139
139
|
return guide;
|
140
140
|
});
|
@@ -690,7 +690,7 @@ export class SnkGuidesViewer {
|
|
690
690
|
"mutable": false,
|
691
691
|
"complexType": {
|
692
692
|
"original": "PresentationMode",
|
693
|
-
"resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY",
|
693
|
+
"resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY | PresentationMode.SINGLE_TASKBAR",
|
694
694
|
"references": {
|
695
695
|
"PresentationMode": {
|
696
696
|
"location": "import",
|
@@ -15,6 +15,14 @@ export class SnkFilterModal {
|
|
15
15
|
this.closeModal = undefined;
|
16
16
|
this.addPersonalizedFilter = undefined;
|
17
17
|
this.editPersonalizedFilter = undefined;
|
18
|
+
this.deletePersonalizedFilter = undefined;
|
19
|
+
this.filtersToDelete = [];
|
20
|
+
}
|
21
|
+
/**
|
22
|
+
* Emitido quando um filtro personalizado é deletado.
|
23
|
+
*/
|
24
|
+
deletePersonalizedFilterListener(event) {
|
25
|
+
this.filtersToDelete.push(event.detail);
|
18
26
|
}
|
19
27
|
getCustomMessage(key, params) {
|
20
28
|
var _a;
|
@@ -82,6 +90,12 @@ export class SnkFilterModal {
|
|
82
90
|
if (this.isValidCustomFilter(filterPersonalized)) {
|
83
91
|
this.applyFilters(this.filters);
|
84
92
|
}
|
93
|
+
if (this.filtersToDelete.length > 0) {
|
94
|
+
this.filtersToDelete.forEach(filter => {
|
95
|
+
this.deletePersonalizedFilter(filter, this.configName);
|
96
|
+
});
|
97
|
+
this.filtersToDelete = [];
|
98
|
+
}
|
85
99
|
}
|
86
100
|
isValidCustomFilter(filterPersonalized) {
|
87
101
|
const isValid = PersonalizedFilterUtils.validateVariableValues(filterPersonalized);
|
@@ -354,9 +368,59 @@ export class SnkFilterModal {
|
|
354
368
|
"optional": false,
|
355
369
|
"docs": {
|
356
370
|
"tags": [],
|
357
|
-
"text": "A\u00E7\u00E3o executada ao
|
371
|
+
"text": "A\u00E7\u00E3o executada ao editar um filtro personalizado"
|
372
|
+
}
|
373
|
+
},
|
374
|
+
"deletePersonalizedFilter": {
|
375
|
+
"type": "unknown",
|
376
|
+
"mutable": false,
|
377
|
+
"complexType": {
|
378
|
+
"original": "(filter: IPersonalizedFilter, configName: string) => void",
|
379
|
+
"resolved": "(filter: IPersonalizedFilter, configName: string) => void",
|
380
|
+
"references": {
|
381
|
+
"IPersonalizedFilter": {
|
382
|
+
"location": "import",
|
383
|
+
"path": "../../snk-personalized-filter/interfaces/IPersonalizedFilter"
|
384
|
+
}
|
385
|
+
}
|
386
|
+
},
|
387
|
+
"required": false,
|
388
|
+
"optional": false,
|
389
|
+
"docs": {
|
390
|
+
"tags": [],
|
391
|
+
"text": "A\u00E7\u00E3o executada ao deletar um filtro personalizado"
|
358
392
|
}
|
393
|
+
},
|
394
|
+
"filtersToDelete": {
|
395
|
+
"type": "unknown",
|
396
|
+
"mutable": false,
|
397
|
+
"complexType": {
|
398
|
+
"original": "IPersonalizedFilter[]",
|
399
|
+
"resolved": "IPersonalizedFilter[]",
|
400
|
+
"references": {
|
401
|
+
"IPersonalizedFilter": {
|
402
|
+
"location": "import",
|
403
|
+
"path": "../../snk-personalized-filter/interfaces/IPersonalizedFilter"
|
404
|
+
}
|
405
|
+
}
|
406
|
+
},
|
407
|
+
"required": false,
|
408
|
+
"optional": false,
|
409
|
+
"docs": {
|
410
|
+
"tags": [],
|
411
|
+
"text": "Guarda filtros a serem deletados no Apply do modal"
|
412
|
+
},
|
413
|
+
"defaultValue": "[]"
|
359
414
|
}
|
360
415
|
};
|
361
416
|
}
|
417
|
+
static get listeners() {
|
418
|
+
return [{
|
419
|
+
"name": "deleteFilter",
|
420
|
+
"method": "deletePersonalizedFilterListener",
|
421
|
+
"target": undefined,
|
422
|
+
"capture": false,
|
423
|
+
"passive": false
|
424
|
+
}];
|
425
|
+
}
|
362
426
|
}
|
@@ -41,7 +41,6 @@ export class SnkFilterModalItem {
|
|
41
41
|
buildSnkFilterPersonalizedProps() {
|
42
42
|
return {
|
43
43
|
tag: "snk-personalized-filter-editor", props: {
|
44
|
-
onDeleteFilter: (event) => this.handleDeleteFilter(event.detail, FilterItemType.PERSONALIZED),
|
45
44
|
onEditFilter: (event) => this.editPersonalizedFilter.emit(event.detail),
|
46
45
|
onAddFilter: () => this.addPersonalizedFilter.emit(),
|
47
46
|
}
|