@sankhyalabs/sankhyablocks 8.15.0-dev.30 → 8.15.0-dev.32
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/{SnkMessageBuilder-e7dcf408.js → SnkMessageBuilder-141aa18d.js} +2 -1
- package/dist/cjs/SnkMultiSelectionListDataSource-5213120b.js +140 -0
- package/dist/cjs/index-f9e81701.js +2 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{pesquisa-fetcher-c416a6b7.js → pesquisa-fetcher-94f6b316.js} +231 -20
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/{snk-actions-button_2.cjs.entry.js → snk-actions-button_4.cjs.entry.js} +517 -2
- package/dist/cjs/snk-application.cjs.entry.js +2 -3
- package/dist/cjs/snk-attach.cjs.entry.js +4 -5
- package/dist/cjs/snk-crud.cjs.entry.js +3 -4
- package/dist/cjs/snk-data-exporter.cjs.entry.js +7 -3
- package/dist/cjs/{snk-data-unit-82c08a8c.js → snk-data-unit-6026a9f7.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +2 -2
- package/dist/cjs/snk-detail-view.cjs.entry.js +6 -7
- package/dist/cjs/snk-form-config.cjs.entry.js +45 -25
- package/dist/cjs/snk-form.cjs.entry.js +1 -1
- package/dist/cjs/snk-grid.cjs.entry.js +11 -20
- package/dist/cjs/{snk-guides-viewer-bd69fce4.js → snk-guides-viewer-75047f22.js} +3 -4
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +4 -5
- package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +3 -1
- package/dist/cjs/snk-simple-crud.cjs.entry.js +148 -17
- package/dist/cjs/snk-taskbar.cjs.entry.js +6 -9
- package/dist/cjs/{taskbar-elements-1e4fb2e0.js → taskbar-elements-3ecd1278.js} +1 -1
- package/dist/collection/collection-manifest.json +6 -6
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -2
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
- package/dist/collection/components/snk-data-exporter/snk-data-exporter.js +5 -1
- package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +3 -1
- package/dist/collection/components/snk-form/snk-form.js +1 -1
- package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.js +50 -30
- package/dist/collection/components/snk-grid/snk-grid.js +5 -16
- package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.js +130 -123
- package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.js +1 -1
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +5 -0
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +226 -14
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +1 -1
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +5 -8
- package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +1 -8
- package/dist/collection/lib/message/resources/snk-data-exporter.msg.js +2 -1
- package/dist/collection/lib/utils/CrudUtils.js +13 -1
- package/dist/components/SnkMessageBuilder.js +2 -1
- package/dist/components/dataunit-fetcher.js +1 -8
- package/dist/components/field-search.js +93 -3
- package/dist/components/index.d.ts +6 -6
- package/dist/components/snk-attach2.js +54 -12
- package/dist/components/snk-data-exporter2.js +5 -1
- package/dist/components/snk-detail-view2.js +29 -4
- package/dist/components/snk-form-config2.js +46 -26
- package/dist/components/snk-grid-config2.js +128 -102
- package/dist/components/snk-grid2.js +10 -17
- package/dist/components/snk-personalized-filter-editor.js +3 -1
- package/dist/components/snk-simple-crud2.js +204 -24
- package/dist/components/snk-taskbar2.js +6 -9
- package/dist/esm/{SnkMessageBuilder-0fb796b9.js → SnkMessageBuilder-9747ddd2.js} +2 -1
- package/dist/esm/SnkMultiSelectionListDataSource-7e7eada5.js +133 -0
- package/dist/esm/index-a7d3d3f1.js +2 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{pesquisa-fetcher-ab16a2e8.js → pesquisa-fetcher-f05a12ca.js} +222 -12
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/{snk-actions-button_2.entry.js → snk-actions-button_4.entry.js} +516 -3
- package/dist/esm/snk-application.entry.js +2 -3
- package/dist/esm/snk-attach.entry.js +3 -4
- package/dist/esm/snk-crud.entry.js +3 -4
- package/dist/esm/snk-data-exporter.entry.js +7 -3
- package/dist/esm/{snk-data-unit-5d201fb3.js → snk-data-unit-4c343635.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +2 -2
- package/dist/esm/snk-detail-view.entry.js +6 -7
- package/dist/esm/snk-form-config.entry.js +46 -26
- package/dist/esm/snk-form.entry.js +1 -1
- package/dist/esm/snk-grid.entry.js +12 -21
- package/dist/esm/{snk-guides-viewer-fde82cc1.js → snk-guides-viewer-8b679ee6.js} +3 -4
- package/dist/esm/snk-guides-viewer.entry.js +4 -5
- package/dist/esm/snk-personalized-filter-editor.entry.js +3 -1
- package/dist/esm/snk-simple-crud.entry.js +149 -18
- package/dist/esm/snk-taskbar.entry.js +6 -9
- package/dist/esm/{taskbar-elements-846c027c.js → taskbar-elements-2473c8ac.js} +1 -1
- package/dist/sankhyablocks/p-20b46647.entry.js +1 -0
- package/dist/sankhyablocks/p-230f5148.entry.js +1 -0
- package/dist/sankhyablocks/p-2897fb8c.js +1 -0
- package/dist/sankhyablocks/{p-05243555.js → p-2936303b.js} +1 -1
- package/dist/sankhyablocks/p-2e493bef.entry.js +1 -0
- package/dist/sankhyablocks/p-4b0c5921.entry.js +1 -0
- package/dist/sankhyablocks/p-5eaecd30.entry.js +1 -0
- package/dist/sankhyablocks/{p-fcdcb0e2.entry.js → p-746fc99e.entry.js} +1 -1
- package/dist/sankhyablocks/p-7e05bd83.entry.js +1 -0
- package/dist/sankhyablocks/p-8a00836e.js +1 -0
- package/dist/sankhyablocks/{p-f3d1c48e.js → p-9a5d1b39.js} +1 -1
- package/dist/sankhyablocks/p-9fb97691.entry.js +1 -0
- package/dist/sankhyablocks/p-a1c630fb.entry.js +1 -0
- package/dist/sankhyablocks/p-ae4fc9a9.js +1 -0
- package/dist/sankhyablocks/p-b11aa1e0.entry.js +1 -0
- package/dist/sankhyablocks/p-ba4871b5.entry.js +1 -0
- package/dist/sankhyablocks/{p-fd0a8d68.entry.js → p-c4bcdd4b.entry.js} +3 -3
- package/dist/sankhyablocks/p-d0bc5ef3.entry.js +1 -0
- package/dist/sankhyablocks/p-d78d4062.js +65 -0
- package/dist/sankhyablocks/p-e7dbe53a.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +1 -1
- package/dist/types/components/snk-form/snk-form.d.ts +1 -1
- package/dist/types/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.d.ts +5 -3
- package/dist/types/components/snk-grid/snk-grid.d.ts +0 -1
- package/dist/types/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.d.ts +11 -6
- package/dist/types/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.d.ts +1 -1
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +46 -1
- package/dist/types/components.d.ts +26 -10
- package/dist/types/lib/utils/CrudUtils.d.ts +3 -0
- package/package.json +1 -1
- package/dist/cjs/PreloadManager-84466da6.js +0 -224
- package/dist/cjs/SnkMultiSelectionListDataSource-ba5838c2.js +0 -49
- package/dist/cjs/snk-grid-config.cjs.entry.js +0 -483
- package/dist/cjs/snk-select-box.cjs.entry.js +0 -25
- package/dist/esm/PreloadManager-c1c2f2b4.js +0 -222
- package/dist/esm/SnkMultiSelectionListDataSource-44494b0e.js +0 -43
- package/dist/esm/snk-grid-config.entry.js +0 -479
- package/dist/esm/snk-select-box.entry.js +0 -21
- package/dist/sankhyablocks/p-094c30cb.js +0 -1
- package/dist/sankhyablocks/p-0b0b36ac.entry.js +0 -1
- package/dist/sankhyablocks/p-11ad137d.entry.js +0 -1
- package/dist/sankhyablocks/p-57212bb5.js +0 -1
- package/dist/sankhyablocks/p-5f5b58b6.entry.js +0 -1
- package/dist/sankhyablocks/p-84bb8f47.entry.js +0 -1
- package/dist/sankhyablocks/p-8c13d8d6.entry.js +0 -1
- package/dist/sankhyablocks/p-8c49760e.js +0 -1
- package/dist/sankhyablocks/p-91b7f78a.entry.js +0 -1
- package/dist/sankhyablocks/p-98674137.entry.js +0 -1
- package/dist/sankhyablocks/p-b7004423.entry.js +0 -1
- package/dist/sankhyablocks/p-c22c1d8e.js +0 -1
- package/dist/sankhyablocks/p-c4874327.entry.js +0 -1
- package/dist/sankhyablocks/p-c6247955.js +0 -65
- package/dist/sankhyablocks/p-c758265f.entry.js +0 -1
- package/dist/sankhyablocks/p-d4802f81.entry.js +0 -1
- package/dist/sankhyablocks/p-e3bd000e.entry.js +0 -1
- package/dist/sankhyablocks/p-fb842329.entry.js +0 -1
- package/dist/sankhyablocks/p-fdc4cb9b.entry.js +0 -1
- /package/dist/cjs/{SnkFormConfigManager-3621bfc4.js → SnkFormConfigManager-0ffd098d.js} +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/SnkFormConfigManager.js +0 -0
- /package/dist/collection/components/{snk-form/subcomponents/snk-form-config → snk-form-config}/snk-form-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.js +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.css +0 -0
- /package/dist/collection/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.js +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents/snk-grid-config → snk-grid-config}/snk-grid-config.css +0 -0
- /package/dist/collection/components/{snk-grid/subcomponents → snk-grid-config}/snk-select-box/snk-select-box.css +0 -0
- /package/dist/esm/{SnkFormConfigManager-692e20c7.js → SnkFormConfigManager-dd450734.js} +0 -0
- /package/dist/sankhyablocks/{p-725d04ba.js → p-9ea14b61.js} +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/SnkFormConfigManager.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-config-options/snk-config-options.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-field-config/snk-field-config.d.ts +0 -0
- /package/dist/types/components/{snk-form → snk-form-config}/subcomponents/snk-tab-config/snk-tab-config.d.ts +0 -0
@@ -1,22 +1,31 @@
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
2
|
-
import {
|
2
|
+
import { StringUtils, ApplicationContext, ObjectUtils, DataType, UserInterface, JSUtils, FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
3
3
|
import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants.js';
|
4
4
|
import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
|
5
5
|
import './DataFetcher.js';
|
6
6
|
import { I as InMemoryLoader } from './dataunit-fetcher.js';
|
7
|
+
import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor, b as buildFieldSearch, o as openFieldSearch, C as CrudUtils } from './field-search.js';
|
7
8
|
import { P as PresentationMode } from './index2.js';
|
8
|
-
import { d as defineCustomElement$
|
9
|
+
import { d as defineCustomElement$d } from './snk-actions-button2.js';
|
9
10
|
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
10
11
|
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
11
12
|
import './filter-item-type.enum.js';
|
12
13
|
import './form-config-fetcher.js';
|
13
|
-
import {
|
14
|
-
import {
|
15
|
-
import { d as defineCustomElement$
|
16
|
-
import { d as defineCustomElement$
|
14
|
+
import { C as ConfigStorage } from './ConfigStorage.js';
|
15
|
+
import { S as SnkFormConfigManager } from './SnkFormConfigManager.js';
|
16
|
+
import { d as defineCustomElement$c } from './snk-config-options2.js';
|
17
|
+
import { d as defineCustomElement$b } from './snk-configurator2.js';
|
18
|
+
import { d as defineCustomElement$a } from './snk-data-exporter2.js';
|
19
|
+
import { d as defineCustomElement$9 } from './snk-data-unit2.js';
|
20
|
+
import { d as defineCustomElement$8 } from './snk-exporter-email-sender2.js';
|
21
|
+
import { d as defineCustomElement$7 } from './snk-field-config2.js';
|
22
|
+
import { d as defineCustomElement$6 } from './snk-form-config2.js';
|
23
|
+
import { d as defineCustomElement$5 } from './snk-grid-config2.js';
|
24
|
+
import { d as defineCustomElement$4 } from './snk-select-box2.js';
|
25
|
+
import { d as defineCustomElement$3 } from './snk-tab-config2.js';
|
17
26
|
import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
|
18
27
|
|
19
|
-
const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:max-content;row-gap:12px;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;min-height:300px}ez-form.sc-snk-simple-crud{min-height:300px}";
|
28
|
+
const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:max-content;row-gap:12px;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}.simple-crud__form--hidden.sc-snk-simple-crud{display:none}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;min-height:300px}ez-form.sc-snk-simple-crud{min-height:300px}";
|
20
29
|
|
21
30
|
const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
22
31
|
constructor() {
|
@@ -26,20 +35,25 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
26
35
|
this.dataUnitReady = createEvent(this, "dataUnitReady", 3);
|
27
36
|
this.actionClick = createEvent(this, "actionClick", 7);
|
28
37
|
this.formItemsReady = createEvent(this, "formItemsReady", 7);
|
38
|
+
this.configuratorSave = createEvent(this, "configuratorSave", 7);
|
39
|
+
this.configuratorCancel = createEvent(this, "configuratorCancel", 7);
|
29
40
|
this.REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "MORE_OPTIONS"];
|
30
41
|
this.REGULAR_SELECTED_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "CLONE", "REMOVE", "DIVIDER", "MORE_OPTIONS"];
|
31
42
|
this._multiSelectionListDataSource = new SnkMultiSelectionListDataSource();
|
32
43
|
this._keyDownHandler = (event) => this.keyDownListener(event);
|
33
44
|
this._taskbarProcessor = new TaskbarProcessor({
|
34
|
-
"snkSimpleCrudTaskbar.form_regular": this.
|
35
|
-
"snkSimpleCrudTaskbar.grid_regular": this.
|
36
|
-
"snkSimpleCrudTaskbar.form_selected": this.
|
37
|
-
"snkSimpleCrudTaskbar.grid_selected": this.
|
45
|
+
"snkSimpleCrudTaskbar.form_regular": this.getButtons(false, TaskbarElement.GRID_MODE),
|
46
|
+
"snkSimpleCrudTaskbar.grid_regular": this.getButtons(false, TaskbarElement.FORM_MODE),
|
47
|
+
"snkSimpleCrudTaskbar.form_selected": this.getButtons(true, TaskbarElement.GRID_MODE),
|
48
|
+
"snkSimpleCrudTaskbar.grid_selected": this.getButtons(true, TaskbarElement.FORM_MODE),
|
38
49
|
"snkSimpleCrudTaskbar.finish_edition": ["CANCEL", "SAVE"]
|
39
50
|
});
|
51
|
+
this._showPopUpGridConfig = false;
|
52
|
+
this._showFormConfig = false;
|
40
53
|
this._currentViewMode = VIEW_MODE.GRID;
|
41
54
|
this._config = undefined;
|
42
55
|
this._fieldToGetFocus = undefined;
|
56
|
+
this._customContainerId = `SNK-SIMPLE-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
|
43
57
|
this.dataState = undefined;
|
44
58
|
this.dataUnit = undefined;
|
45
59
|
this.mode = SIMPLE_CRUD_MODE.SERVER;
|
@@ -53,6 +67,20 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
53
67
|
this.useEnterLikeTab = false;
|
54
68
|
this.actionsList = undefined;
|
55
69
|
this.configName = undefined;
|
70
|
+
this.showConfiguratorButtons = undefined;
|
71
|
+
}
|
72
|
+
getButtons(selected, changeModeBtn) {
|
73
|
+
return this.addConfigButton(this.resolveInMemoryBtns(selected ? this.REGULAR_DEFAULT_BTNS : this.REGULAR_SELECTED_BTNS)
|
74
|
+
.concat(changeModeBtn));
|
75
|
+
}
|
76
|
+
addConfigButton(buttons) {
|
77
|
+
if (this.configName === undefined) {
|
78
|
+
return buttons;
|
79
|
+
}
|
80
|
+
return buttons.concat(TaskbarElement.CONFIGURATOR);
|
81
|
+
}
|
82
|
+
get application() {
|
83
|
+
return ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
56
84
|
}
|
57
85
|
resolveInMemoryBtns(taskbarButtons) {
|
58
86
|
const newTaskBarConfig = [...taskbarButtons];
|
@@ -72,7 +100,10 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
72
100
|
}
|
73
101
|
actionClickListener(evt) {
|
74
102
|
const act = evt.detail;
|
75
|
-
if (act === TaskbarElement.
|
103
|
+
if (act === TaskbarElement.CONFIGURATOR) {
|
104
|
+
this._snkConfigurator.open();
|
105
|
+
}
|
106
|
+
else if (act === TaskbarElement.GRID_MODE) {
|
76
107
|
this.goToView(VIEW_MODE.GRID);
|
77
108
|
}
|
78
109
|
else if (act === TaskbarElement.FORM_MODE) {
|
@@ -90,8 +121,64 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
90
121
|
this.dataStateChange.emit(newValue);
|
91
122
|
}
|
92
123
|
}
|
93
|
-
|
124
|
+
openConfig(viewMode) {
|
125
|
+
this._snkConfigurator.close();
|
126
|
+
if (viewMode === VIEW_MODE.GRID) {
|
127
|
+
this.openGridConfig();
|
128
|
+
}
|
129
|
+
else if (viewMode === VIEW_MODE.FORM) {
|
130
|
+
this.openFormConfig();
|
131
|
+
}
|
132
|
+
}
|
133
|
+
openGridConfig() {
|
134
|
+
this._grid.getColumnsState()
|
135
|
+
.then((gridColumns) => {
|
136
|
+
this._snkGridConfig.columns = gridColumns.filter(c => c.name);
|
137
|
+
this._snkGridConfig.selectedIndex = 0;
|
138
|
+
this._showPopUpGridConfig = true;
|
139
|
+
});
|
140
|
+
}
|
141
|
+
openFormConfig() {
|
142
|
+
this._showFormConfig = true;
|
143
|
+
}
|
144
|
+
loadGridConfig() {
|
145
|
+
if (this.gridConfig != undefined || this._gridConfigAlreadyLoaded) {
|
146
|
+
return;
|
147
|
+
}
|
148
|
+
this._gridConfigAlreadyLoaded = true;
|
149
|
+
return new Promise((accept, reject) => {
|
150
|
+
ConfigStorage.loadGridConfig(this.configName, this._resourceID)
|
151
|
+
.then(config => {
|
152
|
+
this.setGridConfig(config);
|
153
|
+
accept();
|
154
|
+
})
|
155
|
+
.catch(reason => {
|
156
|
+
reject(reason);
|
157
|
+
});
|
158
|
+
});
|
159
|
+
}
|
160
|
+
async loadFormConfig() {
|
161
|
+
if (this._formConfigManager == undefined) {
|
162
|
+
this._formConfigManager = new SnkFormConfigManager(this.configName, this._resourceID);
|
163
|
+
this._formConfigManager.setConfig(this.formConfig);
|
164
|
+
}
|
165
|
+
if (this.formConfig != undefined || this._formConfigAlreadyLoaded) {
|
166
|
+
return;
|
167
|
+
}
|
168
|
+
this._formConfigAlreadyLoaded = true;
|
169
|
+
this.setFormConfig(await this._formConfigManager.loadConfig());
|
170
|
+
}
|
171
|
+
async componentWillRender() {
|
172
|
+
this._resourceID = await this.application.getResourceID();
|
94
173
|
this._taskbarProcessor.process(this.getTaskBarId(), this.taskbarManager, this.dataState, this.getTaskBarDisabledButtons());
|
174
|
+
if (this.configName === undefined) {
|
175
|
+
return;
|
176
|
+
}
|
177
|
+
if (this.gridConfig != undefined || this._gridConfigAlreadyLoaded) {
|
178
|
+
return;
|
179
|
+
}
|
180
|
+
this.loadGridConfig();
|
181
|
+
this.loadFormConfig();
|
95
182
|
}
|
96
183
|
componentWillLoad() {
|
97
184
|
this.processMetadata();
|
@@ -99,8 +186,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
99
186
|
this.configDatasource();
|
100
187
|
}
|
101
188
|
configDatasource() {
|
102
|
-
|
103
|
-
this._multiSelectionListDataSource.setApplication(application);
|
189
|
+
this._multiSelectionListDataSource.setApplication(this.application);
|
104
190
|
this._multiSelectionListDataSource.setDataUnit(this.dataUnit);
|
105
191
|
}
|
106
192
|
getTaskBarId() {
|
@@ -141,6 +227,20 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
141
227
|
getRecords() {
|
142
228
|
return Promise.resolve(this.dataUnit.records);
|
143
229
|
}
|
230
|
+
/**
|
231
|
+
* Usado para abrir o configurator do CRUD
|
232
|
+
*/
|
233
|
+
async openConfigurator() {
|
234
|
+
var _a;
|
235
|
+
(_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.open();
|
236
|
+
}
|
237
|
+
/**
|
238
|
+
* Usado para fechar o configurator do CRUD
|
239
|
+
*/
|
240
|
+
async closeConfigurator() {
|
241
|
+
var _a;
|
242
|
+
(_a = this._snkConfigurator) === null || _a === void 0 ? void 0 : _a.close();
|
243
|
+
}
|
144
244
|
processMetadata() {
|
145
245
|
const fieldsMetadataElem = this._element.querySelectorAll("snk-field-metadata");
|
146
246
|
const fieldMetadata = [];
|
@@ -195,6 +295,14 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
195
295
|
this.dataUnit.clearSelection();
|
196
296
|
}
|
197
297
|
}
|
298
|
+
handleConfiguratorEvent(evt, type) {
|
299
|
+
evt.stopImmediatePropagation();
|
300
|
+
if (type === 'SAVE') {
|
301
|
+
this.configuratorSave.emit();
|
302
|
+
return;
|
303
|
+
}
|
304
|
+
this.configuratorCancel.emit();
|
305
|
+
}
|
198
306
|
getColumnSearch(actionButton, item) {
|
199
307
|
if (this._columnSearch != undefined) {
|
200
308
|
return this._columnSearch;
|
@@ -308,11 +416,42 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
308
416
|
disconnectedCallback() {
|
309
417
|
window.removeEventListener("keydown", this._keyDownHandler);
|
310
418
|
}
|
419
|
+
gridConfigChangeHandler(evt) {
|
420
|
+
const config = evt.detail;
|
421
|
+
ConfigStorage.saveGridConfig(config, this.configName, this._resourceID);
|
422
|
+
evt.stopPropagation();
|
423
|
+
}
|
424
|
+
modalConfigChangeHandler(evt) {
|
425
|
+
const config = evt.detail;
|
426
|
+
this._grid.setColumnsState(config.columns)
|
427
|
+
.then(() => {
|
428
|
+
this.setGridConfig(config);
|
429
|
+
this.closeGridConfig();
|
430
|
+
});
|
431
|
+
evt.stopPropagation();
|
432
|
+
}
|
433
|
+
setGridConfig(config) {
|
434
|
+
this.gridConfig = config;
|
435
|
+
CrudUtils.assertDefaultSorting(this.gridConfig, this.dataUnit);
|
436
|
+
}
|
437
|
+
setFormConfig(config) {
|
438
|
+
this.formConfig = config;
|
439
|
+
}
|
440
|
+
closeGridConfig() {
|
441
|
+
this._showPopUpGridConfig = false;
|
442
|
+
}
|
443
|
+
closeFormConfig() {
|
444
|
+
this._showFormConfig = false;
|
445
|
+
}
|
446
|
+
/* istanbul ignore next */
|
311
447
|
render() {
|
312
|
-
var _a;
|
313
|
-
|
448
|
+
var _a, _b, _c;
|
449
|
+
if (this.dataUnit == undefined) {
|
450
|
+
return;
|
451
|
+
}
|
452
|
+
return (h("snk-data-unit", { class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), onInsertionMode: () => this.goToView(VIEW_MODE.FORM), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: "ez-box ez-box--shadow simple-crud__container-section" }, h("snk-taskbar", { class: "ez-box ez-box--shadow ez-padding--medium", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })), 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)
|
314
453
|
? undefined
|
315
|
-
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { class:
|
454
|
+
: this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab }, h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, h("ez-form", { class: `ez-margin-top--large ${this._showFormConfig ? "simple-crud__form--hidden" : ""}`, dataUnit: this.dataUnit, config: (_b = this._formConfigManager) === null || _b === void 0 ? void 0 : _b.getConfig((_c = this.dataState) === null || _c === void 0 ? void 0 : _c.insertionMode, this.dataUnit), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), this._showFormConfig && h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this.dataUnit, configManager: this._formConfigManager, onConfigClose: () => this.closeFormConfig() })), 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._resourceID, customContainerId: this._customContainerId })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this._resourceID }))));
|
316
455
|
}
|
317
456
|
get _element() { return this; }
|
318
457
|
static get watchers() { return {
|
@@ -324,7 +463,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
324
463
|
"dataState": [16],
|
325
464
|
"dataUnit": [16],
|
326
465
|
"mode": [2],
|
327
|
-
"gridConfig": [
|
466
|
+
"gridConfig": [1040],
|
328
467
|
"formConfig": [16],
|
329
468
|
"multipleSelection": [4, "multiple-selection"],
|
330
469
|
"useCancelConfirm": [4, "use-cancel-confirm"],
|
@@ -333,20 +472,26 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
333
472
|
"useEnterLikeTab": [4, "use-enter-like-tab"],
|
334
473
|
"actionsList": [16],
|
335
474
|
"configName": [1025, "config-name"],
|
475
|
+
"showConfiguratorButtons": [4, "show-configurator-buttons"],
|
476
|
+
"_showPopUpGridConfig": [32],
|
477
|
+
"_showFormConfig": [32],
|
336
478
|
"_currentViewMode": [32],
|
337
479
|
"_config": [32],
|
338
480
|
"_fieldToGetFocus": [32],
|
481
|
+
"_customContainerId": [32],
|
339
482
|
"_formFields": [32],
|
340
483
|
"goToView": [64],
|
341
484
|
"setMetadata": [64],
|
342
485
|
"setRecords": [64],
|
343
|
-
"getRecords": [64]
|
486
|
+
"getRecords": [64],
|
487
|
+
"openConfigurator": [64],
|
488
|
+
"closeConfigurator": [64]
|
344
489
|
}, [[0, "actionClick", "actionClickListener"]]]);
|
345
490
|
function defineCustomElement() {
|
346
491
|
if (typeof customElements === "undefined") {
|
347
492
|
return;
|
348
493
|
}
|
349
|
-
const components = ["snk-simple-crud", "snk-actions-button", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-taskbar", "taskbar-actions-button"];
|
494
|
+
const components = ["snk-simple-crud", "snk-actions-button", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-field-config", "snk-form-config", "snk-grid-config", "snk-select-box", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
|
350
495
|
components.forEach(tagName => { switch (tagName) {
|
351
496
|
case "snk-simple-crud":
|
352
497
|
if (!customElements.get(tagName)) {
|
@@ -355,20 +500,55 @@ function defineCustomElement() {
|
|
355
500
|
break;
|
356
501
|
case "snk-actions-button":
|
357
502
|
if (!customElements.get(tagName)) {
|
358
|
-
defineCustomElement$
|
503
|
+
defineCustomElement$d();
|
504
|
+
}
|
505
|
+
break;
|
506
|
+
case "snk-config-options":
|
507
|
+
if (!customElements.get(tagName)) {
|
508
|
+
defineCustomElement$c();
|
509
|
+
}
|
510
|
+
break;
|
511
|
+
case "snk-configurator":
|
512
|
+
if (!customElements.get(tagName)) {
|
513
|
+
defineCustomElement$b();
|
359
514
|
}
|
360
515
|
break;
|
361
516
|
case "snk-data-exporter":
|
362
517
|
if (!customElements.get(tagName)) {
|
363
|
-
defineCustomElement$
|
518
|
+
defineCustomElement$a();
|
364
519
|
}
|
365
520
|
break;
|
366
521
|
case "snk-data-unit":
|
367
522
|
if (!customElements.get(tagName)) {
|
368
|
-
defineCustomElement$
|
523
|
+
defineCustomElement$9();
|
369
524
|
}
|
370
525
|
break;
|
371
526
|
case "snk-exporter-email-sender":
|
527
|
+
if (!customElements.get(tagName)) {
|
528
|
+
defineCustomElement$8();
|
529
|
+
}
|
530
|
+
break;
|
531
|
+
case "snk-field-config":
|
532
|
+
if (!customElements.get(tagName)) {
|
533
|
+
defineCustomElement$7();
|
534
|
+
}
|
535
|
+
break;
|
536
|
+
case "snk-form-config":
|
537
|
+
if (!customElements.get(tagName)) {
|
538
|
+
defineCustomElement$6();
|
539
|
+
}
|
540
|
+
break;
|
541
|
+
case "snk-grid-config":
|
542
|
+
if (!customElements.get(tagName)) {
|
543
|
+
defineCustomElement$5();
|
544
|
+
}
|
545
|
+
break;
|
546
|
+
case "snk-select-box":
|
547
|
+
if (!customElements.get(tagName)) {
|
548
|
+
defineCustomElement$4();
|
549
|
+
}
|
550
|
+
break;
|
551
|
+
case "snk-tab-config":
|
372
552
|
if (!customElements.get(tagName)) {
|
373
553
|
defineCustomElement$3();
|
374
554
|
}
|
@@ -95,7 +95,7 @@ const buildElem = (element, className, dataElementId, getTitle, action, isEnable
|
|
95
95
|
case TaskbarElement.MORE_OPTIONS:
|
96
96
|
return actionButton(element, className, dataElementId, title, isEnabled, actions, action);
|
97
97
|
case TaskbarElement.DIVIDER:
|
98
|
-
return h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-
|
98
|
+
return h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin--none ez-margin-left--medium", "data-taskbar-divider": true });
|
99
99
|
case TaskbarElement.DATA_EXPORTER:
|
100
100
|
const provider = (_a = store.get("exporterProviders")) === null || _a === void 0 ? void 0 : _a[configName];
|
101
101
|
return h("snk-data-exporter", { class: className, provider: provider, "data-element-id": dataElementId, "data-taskbar-element": element });
|
@@ -171,7 +171,9 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
171
171
|
}
|
172
172
|
observeButtons() {
|
173
173
|
this._definitions = undefined;
|
174
|
-
requestAnimationFrame(() => {
|
174
|
+
requestAnimationFrame(() => {
|
175
|
+
requestAnimationFrame(() => { var _a; return (_a = this._overFlowWatcher) === null || _a === void 0 ? void 0 : _a.forceUpdate(); });
|
176
|
+
});
|
175
177
|
}
|
176
178
|
// Internal methods
|
177
179
|
elementsFromString(strButtons) {
|
@@ -326,7 +328,7 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
326
328
|
this._customElementsId.push(elementId);
|
327
329
|
(_a = this._overFlowWatcher) === null || _a === void 0 ? void 0 : _a.addNotOverFlowElement(elementId);
|
328
330
|
}
|
329
|
-
return h("span", { key: elementId, id: elementId });
|
331
|
+
return h("span", { class: "ez-padding-left--medium", key: elementId, id: elementId });
|
330
332
|
}
|
331
333
|
getCustomElements() {
|
332
334
|
var _a, _b;
|
@@ -450,12 +452,7 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
450
452
|
let index = 0;
|
451
453
|
return (h(Host, { class: this.getHostClasses() }, this.removeEmpty(this._definitions.map((elem) => {
|
452
454
|
var _a, _b;
|
453
|
-
|
454
|
-
index = 0;
|
455
|
-
}
|
456
|
-
else {
|
457
|
-
index++;
|
458
|
-
}
|
455
|
+
index++;
|
459
456
|
if (TaskbarElement[elem]) {
|
460
457
|
return this.getElement(index, TaskbarElement[elem]);
|
461
458
|
}
|
@@ -286,7 +286,8 @@ const snkDataExporterMessages = {
|
|
286
286
|
},
|
287
287
|
message: {
|
288
288
|
emailSuccess: "E-mail enviado com sucesso",
|
289
|
-
exportError: "
|
289
|
+
exportError: "Falha ao exportar dados",
|
290
|
+
unknownFailure: "O motivo da falha não pode ser identificado.",
|
290
291
|
exportPermission: "O usuário não possui permissão para exportar o arquivo.",
|
291
292
|
},
|
292
293
|
title: {
|
@@ -0,0 +1,133 @@
|
|
1
|
+
import { D as DataFetcher } from './DataFetcher-a650ae58.js';
|
2
|
+
import { a as PreloadManager } from './pesquisa-fetcher-f05a12ca.js';
|
3
|
+
import { SortMode, ApplicationContext, UserInterface, DateUtils } from '@sankhyalabs/core';
|
4
|
+
import './index-0ece87a6.js';
|
5
|
+
import './ISave-d8c8bc59.js';
|
6
|
+
import '@sankhyalabs/ezui/dist/collection/utils/constants';
|
7
|
+
import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
8
|
+
import './filter-item-type.enum-d45e026f.js';
|
9
|
+
import './form-config-fetcher-f121f880.js';
|
10
|
+
import InMemoryFilterColumnDataSource from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
|
11
|
+
|
12
|
+
class CrudUtils {
|
13
|
+
static assertDefaultSorting(gridConfig, dataUnit) {
|
14
|
+
if (gridConfig && dataUnit) {
|
15
|
+
dataUnit.defaultSorting = gridConfig
|
16
|
+
.columns
|
17
|
+
.filter(col => col.ascending != undefined)
|
18
|
+
.sort((colA, colB) => colA.orderIndex - colB.orderIndex)
|
19
|
+
.map(({ name: field, ascending }) => {
|
20
|
+
const { dataType } = dataUnit.getField(field);
|
21
|
+
return { field, dataType, mode: ascending ? SortMode.ASC : SortMode.DESC };
|
22
|
+
});
|
23
|
+
}
|
24
|
+
}
|
25
|
+
static find(entityName, fields, criteria, onlyFirst = true, criteriaExpression, orderBy) {
|
26
|
+
const SERVICE_CRUD_FIND = "mge@crud.find";
|
27
|
+
let parsedFields = [];
|
28
|
+
let parsedCriteria = [];
|
29
|
+
let literalCriteria = {};
|
30
|
+
let application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
31
|
+
if (fields) {
|
32
|
+
if (!Array.isArray(fields)) {
|
33
|
+
throw new Error(application.messagesBuilder.getMessage("crudUtils.errorArray", null));
|
34
|
+
}
|
35
|
+
fields.forEach((fieldName) => {
|
36
|
+
parsedFields.push({
|
37
|
+
name: fieldName
|
38
|
+
});
|
39
|
+
});
|
40
|
+
}
|
41
|
+
if (criteria) {
|
42
|
+
for (const key in criteria) {
|
43
|
+
if (criteria.hasOwnProperty(key)) {
|
44
|
+
parsedCriteria.push({ nome: key, valor: criteria[key] });
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
if (criteriaExpression) {
|
49
|
+
literalCriteria = {
|
50
|
+
expression: {
|
51
|
+
$: criteriaExpression
|
52
|
+
}
|
53
|
+
};
|
54
|
+
}
|
55
|
+
let request = {
|
56
|
+
requestBody: {
|
57
|
+
entity: {
|
58
|
+
name: entityName,
|
59
|
+
criterio: parsedCriteria,
|
60
|
+
fields: {
|
61
|
+
field: parsedFields
|
62
|
+
},
|
63
|
+
literalCriteria: literalCriteria,
|
64
|
+
orderby: orderBy
|
65
|
+
}
|
66
|
+
}
|
67
|
+
};
|
68
|
+
return new Promise((resolve) => {
|
69
|
+
DataFetcher.get().callServiceBroker(SERVICE_CRUD_FIND, JSON.stringify(request)).then((result) => {
|
70
|
+
var _a;
|
71
|
+
let entities = (_a = result.entidades) === null || _a === void 0 ? void 0 : _a.entidade;
|
72
|
+
if (entities != undefined) {
|
73
|
+
let crudFindResult = {
|
74
|
+
fields: new Map()
|
75
|
+
};
|
76
|
+
for (let key in entities) {
|
77
|
+
let fieldValue = entities[key];
|
78
|
+
if (fieldValue.hasOwnProperty('$')) {
|
79
|
+
crudFindResult.fields.set(key, fieldValue.$);
|
80
|
+
}
|
81
|
+
if (onlyFirst) {
|
82
|
+
break;
|
83
|
+
}
|
84
|
+
}
|
85
|
+
resolve(crudFindResult);
|
86
|
+
}
|
87
|
+
else {
|
88
|
+
resolve(null);
|
89
|
+
}
|
90
|
+
});
|
91
|
+
});
|
92
|
+
}
|
93
|
+
}
|
94
|
+
|
95
|
+
class SnkMultiSelectionListDataSource {
|
96
|
+
setDataUnit(dataUnit) {
|
97
|
+
this._dataUnit = dataUnit;
|
98
|
+
}
|
99
|
+
setApplication(application) {
|
100
|
+
this._application = application;
|
101
|
+
}
|
102
|
+
formatLabel(fieldName, value) {
|
103
|
+
const { userInterface } = this._dataUnit.getField(fieldName);
|
104
|
+
if (userInterface === UserInterface.DATETIME) {
|
105
|
+
return DateUtils.formatDate(this._dataUnit.valueFromString(fieldName, value));
|
106
|
+
}
|
107
|
+
return String(this._dataUnit.getFormattedValue(fieldName, value));
|
108
|
+
}
|
109
|
+
async getStaticOptions(fieldName) {
|
110
|
+
if (fieldName == undefined) {
|
111
|
+
return Promise.resolve(undefined);
|
112
|
+
}
|
113
|
+
return Promise.resolve(await PreloadManager.getDistinct(this._dataUnit, fieldName));
|
114
|
+
}
|
115
|
+
fetchData(filterTerm, fieldName) {
|
116
|
+
return new Promise(resolve => {
|
117
|
+
this._application.executeSelectDistinct(this._dataUnit, fieldName, filterTerm).then(result => {
|
118
|
+
resolve(result.map(item => {
|
119
|
+
const field = this._dataUnit.getField(fieldName);
|
120
|
+
if (field.userInterface === UserInterface.SEARCH) {
|
121
|
+
return Object.assign(Object.assign({}, JSON.parse(item)), { check: true });
|
122
|
+
}
|
123
|
+
return { value: item, label: this.formatLabel(fieldName, item), check: true };
|
124
|
+
}));
|
125
|
+
});
|
126
|
+
});
|
127
|
+
}
|
128
|
+
sortItems(fieldName, items) {
|
129
|
+
return InMemoryFilterColumnDataSource.defaultSorterMultSelectionOption(this._dataUnit, fieldName, items);
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
export { CrudUtils as C, SnkMultiSelectionListDataSource as S };
|
@@ -2182,10 +2182,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
2182
2182
|
return import(
|
2183
2183
|
/* webpackMode: "lazy" */
|
2184
2184
|
'./snk-attach.entry.js').then(processMod, consoleError);
|
2185
|
-
case 'snk-grid-config':
|
2186
|
-
return import(
|
2187
|
-
/* webpackMode: "lazy" */
|
2188
|
-
'./snk-grid-config.entry.js').then(processMod, consoleError);
|
2189
2185
|
case 'snk-simple-crud':
|
2190
2186
|
return import(
|
2191
2187
|
/* webpackMode: "lazy" */
|
@@ -2194,10 +2190,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
2194
2190
|
return import(
|
2195
2191
|
/* webpackMode: "lazy" */
|
2196
2192
|
'./snk-personalized-filter.entry.js').then(processMod, consoleError);
|
2197
|
-
case 'snk-select-box':
|
2198
|
-
return import(
|
2199
|
-
/* webpackMode: "lazy" */
|
2200
|
-
'./snk-select-box.entry.js').then(processMod, consoleError);
|
2201
2193
|
case 'snk-filter-advanced-mode_2':
|
2202
2194
|
return import(
|
2203
2195
|
/* webpackMode: "lazy" */
|
@@ -2206,10 +2198,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
|
|
2206
2198
|
return import(
|
2207
2199
|
/* webpackMode: "lazy" */
|
2208
2200
|
'./snk-filter-detail.entry.js').then(processMod, consoleError);
|
2209
|
-
case 'snk-actions-
|
2201
|
+
case 'snk-actions-button_4':
|
2210
2202
|
return import(
|
2211
2203
|
/* webpackMode: "lazy" */
|
2212
|
-
'./snk-actions-
|
2204
|
+
'./snk-actions-button_4.entry.js').then(processMod, consoleError);
|
2213
2205
|
case 'snk-simple-bar':
|
2214
2206
|
return import(
|
2215
2207
|
/* webpackMode: "lazy" */
|