@sankhyalabs/sankhyablocks 2.1.3 → 2.1.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/AuthorizationConfig-79ffae4b.js +7 -0
- package/dist/cjs/{form-config-fetcher-2de7c16a.js → ConfigStorage-c112de1d.js} +101 -1
- package/dist/cjs/{SnkMessageBuilder-89482d28.js → SnkMessageBuilder-61f00e7f.js} +33 -5
- package/dist/cjs/{constants-9056ca9e.js → constants-a47a5190.js} +15 -0
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +30 -64
- package/dist/cjs/snk-config-options.cjs.entry.js +1 -1
- package/dist/cjs/{snk-field-config_2.cjs.entry.js → snk-configurator_3.cjs.entry.js} +134 -13
- package/dist/cjs/snk-crud.cjs.entry.js +23 -6
- package/dist/cjs/snk-data-unit.cjs.entry.js +1 -1
- package/dist/cjs/{snk-configurator_6.cjs.entry.js → snk-filter-bar_7.cjs.entry.js} +498 -188
- package/dist/cjs/snk-form-config.cjs.entry.js +32 -26
- package/dist/cjs/snk-form.cjs.entry.js +30 -17
- package/dist/cjs/snk-tab-config.cjs.entry.js +1 -1
- package/dist/cjs/{taskbar-elements-d762e436.js → taskbar-elements-997af1c9.js} +9 -8
- package/dist/collection/collection-manifest.json +3 -2
- package/dist/collection/components/snk-application/snk-application.js +3 -2
- package/dist/collection/components/snk-configurator/AuthorizationConfig.js +5 -0
- package/dist/collection/components/snk-configurator/snk-configurator.css +124 -0
- package/dist/collection/components/snk-configurator/snk-configurator.js +126 -181
- package/dist/collection/components/snk-crud/snk-crud.js +23 -5
- package/dist/collection/components/snk-form/snk-form.js +37 -54
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.css +1 -1
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +48 -29
- package/dist/collection/components/snk-grid/snk-grid.js +69 -20
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.css +166 -0
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +605 -0
- package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.css +9 -0
- package/dist/collection/components/snk-grid/subcomponents/snk-select-box/snk-select-box.js +70 -0
- package/dist/collection/components/snk-taskbar/elements/taskbar-elements.js +9 -8
- package/dist/collection/components/snk-taskbar/snk-taskbar.js +9 -1
- package/dist/collection/lib/configs/ConfigStorage.js +15 -15
- package/dist/collection/lib/message/SnkMessageBuilder.js +5 -3
- package/dist/collection/lib/message/resources/snk-configurator.msg.js +0 -3
- package/dist/collection/lib/message/resources/snk-form.msg.js +3 -0
- package/dist/collection/lib/message/resources/snk-grid.msg.js +26 -0
- package/dist/collection/lib/utils/constants.js +14 -0
- package/dist/components/AuthorizationConfig.js +7 -0
- package/dist/components/{form-config-fetcher.js → ConfigStorage.js} +100 -2
- package/dist/components/SnkMessageBuilder.js +33 -5
- package/dist/components/constants.js +15 -1
- package/dist/components/index.d.ts +2 -1
- package/dist/components/index.js +2 -1
- package/dist/components/snk-application2.js +2 -36
- package/dist/components/snk-configurator2.js +63 -165
- package/dist/components/snk-crud.js +53 -29
- package/dist/components/snk-form-config2.js +27 -21
- package/dist/components/snk-form2.js +33 -32
- package/dist/components/{snk-config-modal.d.ts → snk-grid-config.d.ts} +4 -4
- package/dist/components/snk-grid-config.js +6 -0
- package/dist/components/snk-grid-config2.js +497 -0
- package/dist/components/snk-grid2.js +65 -27
- package/dist/components/snk-select-box.d.ts +11 -0
- package/dist/components/snk-select-box.js +6 -0
- package/dist/components/snk-select-box2.js +38 -0
- package/dist/components/snk-taskbar2.js +19 -22
- package/dist/esm/AuthorizationConfig-dcbd207a.js +7 -0
- package/dist/esm/{form-config-fetcher-96c6c2dc.js → ConfigStorage-99025655.js} +100 -2
- package/dist/esm/{SnkMessageBuilder-a27fc561.js → SnkMessageBuilder-f5ef87df.js} +33 -5
- package/dist/esm/{constants-c6039d3d.js → constants-babe1a08.js} +15 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-application.entry.js +3 -37
- package/dist/esm/snk-config-options.entry.js +1 -1
- package/dist/esm/{snk-field-config_2.entry.js → snk-configurator_3.entry.js} +134 -14
- package/dist/esm/snk-crud.entry.js +23 -6
- package/dist/esm/snk-data-unit.entry.js +1 -1
- package/dist/esm/{snk-configurator_6.entry.js → snk-filter-bar_7.entry.js} +499 -190
- package/dist/esm/snk-form-config.entry.js +27 -21
- package/dist/esm/snk-form.entry.js +30 -17
- package/dist/esm/snk-tab-config.entry.js +1 -1
- package/dist/esm/{taskbar-elements-1092b0b7.js → taskbar-elements-a0a8b106.js} +9 -8
- package/dist/sankhyablocks/p-09720dd1.js +1 -0
- package/dist/sankhyablocks/p-105cd4a8.entry.js +1 -0
- package/dist/sankhyablocks/p-133cf71d.entry.js +1 -0
- package/dist/sankhyablocks/p-341b2ceb.entry.js +1 -0
- package/dist/sankhyablocks/p-395d5e42.entry.js +1 -0
- package/dist/sankhyablocks/{p-8706fe65.entry.js → p-43aff8f5.entry.js} +1 -1
- package/dist/sankhyablocks/p-53f33e9d.entry.js +1 -0
- package/dist/sankhyablocks/p-639b8f6e.entry.js +76 -0
- package/dist/sankhyablocks/{p-a5b26df2.js → p-6673c77c.js} +1 -1
- package/dist/sankhyablocks/p-6ba8f415.js +26 -0
- package/dist/sankhyablocks/{p-2517529d.js → p-877bd6cf.js} +1 -1
- package/dist/sankhyablocks/{p-f37cdeb5.entry.js → p-cd03ea9e.entry.js} +1 -1
- package/dist/sankhyablocks/p-dc36cfbf.js +1 -0
- package/dist/sankhyablocks/{p-92782503.entry.js → p-eb94df0b.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +0 -1
- package/dist/types/components/snk-configurator/AuthorizationConfig.d.ts +4 -0
- package/dist/types/components/snk-configurator/snk-configurator.d.ts +21 -24
- package/dist/types/components/snk-crud/snk-crud.d.ts +6 -0
- package/dist/types/components/snk-form/snk-form.d.ts +6 -9
- package/dist/types/components/snk-form/subcomponents/snk-form-config/snk-form-config.d.ts +7 -3
- package/dist/types/components/snk-grid/snk-grid.d.ts +13 -3
- package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +66 -0
- package/dist/types/components/snk-grid/subcomponents/snk-select-box/snk-select-box.d.ts +7 -0
- package/dist/types/components/snk-taskbar/elements/taskbar-elements.d.ts +3 -4
- package/dist/types/components.d.ts +104 -74
- package/dist/types/lib/configs/ConfigStorage.d.ts +3 -3
- package/dist/types/lib/message/resources/snk-configurator.msg.d.ts +0 -1
- package/dist/types/lib/message/resources/snk-grid.msg.d.ts +2 -0
- package/dist/types/lib/utils/constants.d.ts +14 -0
- package/package.json +1 -1
- package/react/components.d.ts +2 -1
- package/react/components.js +2 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/configurableElementsStorage-93459c72.js +0 -20
- package/dist/cjs/snk-config-modal.cjs.entry.js +0 -62
- package/dist/collection/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.js +0 -16
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.css +0 -122
- package/dist/collection/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.js +0 -137
- package/dist/components/snk-config-modal.js +0 -6
- package/dist/components/snk-config-modal2.js +0 -91
- package/dist/esm/configurableElementsStorage-cdc144b5.js +0 -18
- package/dist/esm/snk-config-modal.entry.js +0 -58
- package/dist/sankhyablocks/p-361299e8.js +0 -26
- package/dist/sankhyablocks/p-429c5e3f.entry.js +0 -1
- package/dist/sankhyablocks/p-4fab64ec.js +0 -1
- package/dist/sankhyablocks/p-60eef7cd.entry.js +0 -1
- package/dist/sankhyablocks/p-626cf022.entry.js +0 -1
- package/dist/sankhyablocks/p-6511d132.entry.js +0 -1
- package/dist/sankhyablocks/p-8c14bbfb.entry.js +0 -76
- package/dist/sankhyablocks/p-c4ae984b.entry.js +0 -1
- package/dist/sankhyablocks/p-ce7c38a1.entry.js +0 -1
- package/dist/sankhyablocks/p-d50651a3.js +0 -1
- package/dist/types/components/snk-configurator/subcomponents/configModalProvider/configurableElementsStorage.d.ts +0 -8
- package/dist/types/components/snk-configurator/subcomponents/snk-config-modal/snk-config-modal.d.ts +0 -38
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
2
|
import { T as TaskbarProcessor } from './taskbar-processor.js';
|
|
3
|
-
import { C as
|
|
4
|
-
import { d as defineCustomElement$
|
|
5
|
-
import { d as defineCustomElement$
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
3
|
+
import { C as ConfigStorage } from './ConfigStorage.js';
|
|
4
|
+
import { d as defineCustomElement$8 } from './snk-filter-bar2.js';
|
|
5
|
+
import { d as defineCustomElement$7 } from './snk-filter-detail2.js';
|
|
6
|
+
import { d as defineCustomElement$6 } from './snk-filter-item2.js';
|
|
7
|
+
import { d as defineCustomElement$5 } from './snk-filter-list2.js';
|
|
8
|
+
import { d as defineCustomElement$4 } from './snk-filter-modal2.js';
|
|
9
|
+
import { d as defineCustomElement$3 } from './snk-grid-config2.js';
|
|
10
|
+
import { d as defineCustomElement$2 } from './snk-select-box2.js';
|
|
10
11
|
import { d as defineCustomElement$1 } from './snk-taskbar2.js';
|
|
11
12
|
|
|
12
13
|
const snkGridCss = ".snk-grid__container.sc-snk-grid{display:flex;height:100%;width:100%}.snk-grid__header.sc-snk-grid{display:flex;flex-wrap:nowrap;width:100%}.snk-grid__filter-bar.sc-snk-grid{width:100%}.snk-grid__header-divider.sc-snk-grid{margin-bottom:var(--space--small)}";
|
|
@@ -25,33 +26,67 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
25
26
|
"snkGridHeaderTaskbar.unselected": ["REFRESH"],
|
|
26
27
|
"snkGridHeaderTaskbar.selected": ["UPDATE", "CLONE", "REMOVE", "MORE_OPTIONS", "DIVIDER", "REFRESH"]
|
|
27
28
|
});
|
|
29
|
+
this._popUpGridConfig = false;
|
|
28
30
|
}
|
|
29
31
|
/**
|
|
30
|
-
* Método responsável em abrir
|
|
32
|
+
* Método responsável em abrir o modal de configurações da grade.
|
|
31
33
|
*/
|
|
32
|
-
async
|
|
34
|
+
async showConfig() {
|
|
33
35
|
if (this._grid == undefined) {
|
|
34
36
|
return;
|
|
35
37
|
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
38
|
+
this.openGridConfig();
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Método responsável em fechar o modal de configurações da grade.
|
|
42
|
+
*/
|
|
43
|
+
async hideConfig() {
|
|
44
|
+
if (this._grid == undefined) {
|
|
45
|
+
return;
|
|
41
46
|
}
|
|
47
|
+
this.closeGridConfig();
|
|
42
48
|
}
|
|
43
49
|
/**
|
|
44
50
|
* Método responsável por setar as configurações da grade.
|
|
45
51
|
*/
|
|
46
52
|
async setConfig(config) {
|
|
53
|
+
this.setGridConfig(config);
|
|
54
|
+
}
|
|
55
|
+
openGridConfig() {
|
|
56
|
+
this._grid.getColumnsState()
|
|
57
|
+
.then((gridColumns) => {
|
|
58
|
+
this._snkGridConfig.columns = gridColumns.filter(c => c.name);
|
|
59
|
+
this._snkGridConfig.selectedIndex = 0;
|
|
60
|
+
this._popUpGridConfig = true;
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
closeGridConfig() {
|
|
64
|
+
this._popUpGridConfig = false;
|
|
65
|
+
}
|
|
66
|
+
setGridConfig(config) {
|
|
47
67
|
this._gridConfig = config;
|
|
48
68
|
}
|
|
69
|
+
loadConfig() {
|
|
70
|
+
ConfigStorage.get()
|
|
71
|
+
.loadGridConfig(this.configName)
|
|
72
|
+
.then((config) => {
|
|
73
|
+
this.setGridConfig(config);
|
|
74
|
+
})
|
|
75
|
+
.catch((error) => {
|
|
76
|
+
console.warn(error);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
saveConfig(config) {
|
|
80
|
+
this._snkGridConfig.saveConfig(config)
|
|
81
|
+
.then(() => {
|
|
82
|
+
this.changeConfig(config);
|
|
83
|
+
});
|
|
84
|
+
}
|
|
49
85
|
changeConfig(config) {
|
|
86
|
+
this._grid.setColumnsState(config.columns);
|
|
87
|
+
this.closeGridConfig();
|
|
50
88
|
this.configChanged.emit(config);
|
|
51
89
|
}
|
|
52
|
-
componentDidRender() {
|
|
53
|
-
ConfigurableElementsStorage.setGrid(this.configName, this._element);
|
|
54
|
-
}
|
|
55
90
|
componentWillLoad() {
|
|
56
91
|
let parent = this._element.parentElement;
|
|
57
92
|
while (parent) {
|
|
@@ -70,6 +105,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
70
105
|
}
|
|
71
106
|
parent = parent.parentElement;
|
|
72
107
|
}
|
|
108
|
+
this.loadConfig();
|
|
73
109
|
}
|
|
74
110
|
componentWillRender() {
|
|
75
111
|
const headerTaskbarId = this._dataState && this._dataState.selectedRecords.length > 0 ? "snkGridHeaderTaskbar.selected" : "snkGridHeaderTaskbar.unselected";
|
|
@@ -80,7 +116,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
80
116
|
if (!this._dataUnit) {
|
|
81
117
|
return undefined;
|
|
82
118
|
}
|
|
83
|
-
return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-padding-bottom--medium ez-margin-bottom--medium" }, h("snk-filter-bar", { dataUnit: this._dataUnit, class: "snk-grid__filter-bar ez-align--top", configName: this.configName }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), h("snk-taskbar", { class: "ez-padding-left--medium", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: "INSERT" })), h("ez-grid", { ref: ref => this._grid = ref, dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.
|
|
119
|
+
return (h("div", { class: "snk-grid__container ez-flex ez-flex--column ez-flex-item--auto ez-padding--large" }, h("div", { class: "snk-grid__header ez-padding-bottom--medium ez-margin-bottom--medium" }, h("snk-filter-bar", { dataUnit: this._dataUnit, class: "snk-grid__filter-bar ez-align--top", configName: this.configName }), h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-left--medium snk-grid__header-divider" }), h("snk-taskbar", { class: "ez-padding-left--medium", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: "INSERT" })), h("ez-grid", { ref: ref => this._grid = ref, dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.saveConfig(evt.detail); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection }, h("snk-taskbar", { dataUnit: this._dataUnit, buttons: this._headerTaskbarProcessor.buttons, disabledButtons: this._headerTaskbarProcessor.disabledButtons, customButtons: this._headerTaskbarProcessor.customButtons, slot: "leftButtons", actionsList: this.actionsList })), h("div", { class: "ez-col ez-col--sd-12" }, h("slot", { name: "SnkGridFooter" })), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._popUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this._gridConfig, selectedIndex: 0, onConfigChange: (evt) => this.changeConfig(evt.detail), onConfigCancel: () => this.closeGridConfig() }))));
|
|
84
120
|
}
|
|
85
121
|
get _element() { return this; }
|
|
86
122
|
static get style() { return snkGridCss; }
|
|
@@ -93,51 +129,53 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
93
129
|
"_dataUnit": [32],
|
|
94
130
|
"_dataState": [32],
|
|
95
131
|
"_gridConfig": [32],
|
|
96
|
-
"
|
|
132
|
+
"_popUpGridConfig": [32],
|
|
133
|
+
"showConfig": [64],
|
|
134
|
+
"hideConfig": [64],
|
|
97
135
|
"setConfig": [64]
|
|
98
136
|
}]);
|
|
99
137
|
function defineCustomElement() {
|
|
100
138
|
if (typeof customElements === "undefined") {
|
|
101
139
|
return;
|
|
102
140
|
}
|
|
103
|
-
const components = ["snk-grid", "snk-
|
|
141
|
+
const components = ["snk-grid", "snk-filter-bar", "snk-filter-detail", "snk-filter-item", "snk-filter-list", "snk-filter-modal", "snk-grid-config", "snk-select-box", "snk-taskbar"];
|
|
104
142
|
components.forEach(tagName => { switch (tagName) {
|
|
105
143
|
case "snk-grid":
|
|
106
144
|
if (!customElements.get(tagName)) {
|
|
107
145
|
customElements.define(tagName, SnkGrid);
|
|
108
146
|
}
|
|
109
147
|
break;
|
|
110
|
-
case "snk-
|
|
148
|
+
case "snk-filter-bar":
|
|
111
149
|
if (!customElements.get(tagName)) {
|
|
112
150
|
defineCustomElement$8();
|
|
113
151
|
}
|
|
114
152
|
break;
|
|
115
|
-
case "snk-
|
|
153
|
+
case "snk-filter-detail":
|
|
116
154
|
if (!customElements.get(tagName)) {
|
|
117
155
|
defineCustomElement$7();
|
|
118
156
|
}
|
|
119
157
|
break;
|
|
120
|
-
case "snk-filter-
|
|
158
|
+
case "snk-filter-item":
|
|
121
159
|
if (!customElements.get(tagName)) {
|
|
122
160
|
defineCustomElement$6();
|
|
123
161
|
}
|
|
124
162
|
break;
|
|
125
|
-
case "snk-filter-
|
|
163
|
+
case "snk-filter-list":
|
|
126
164
|
if (!customElements.get(tagName)) {
|
|
127
165
|
defineCustomElement$5();
|
|
128
166
|
}
|
|
129
167
|
break;
|
|
130
|
-
case "snk-filter-
|
|
168
|
+
case "snk-filter-modal":
|
|
131
169
|
if (!customElements.get(tagName)) {
|
|
132
170
|
defineCustomElement$4();
|
|
133
171
|
}
|
|
134
172
|
break;
|
|
135
|
-
case "snk-
|
|
173
|
+
case "snk-grid-config":
|
|
136
174
|
if (!customElements.get(tagName)) {
|
|
137
175
|
defineCustomElement$3();
|
|
138
176
|
}
|
|
139
177
|
break;
|
|
140
|
-
case "snk-
|
|
178
|
+
case "snk-select-box":
|
|
141
179
|
if (!customElements.get(tagName)) {
|
|
142
180
|
defineCustomElement$2();
|
|
143
181
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Components, JSX } from "../types/components";
|
|
2
|
+
|
|
3
|
+
interface SnkSelectBox extends Components.SnkSelectBox, HTMLElement {}
|
|
4
|
+
export const SnkSelectBox: {
|
|
5
|
+
prototype: SnkSelectBox;
|
|
6
|
+
new (): SnkSelectBox;
|
|
7
|
+
};
|
|
8
|
+
/**
|
|
9
|
+
* Used to define this component and all nested components recursively.
|
|
10
|
+
*/
|
|
11
|
+
export const defineCustomElement: () => void;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
|
|
2
|
+
import { O as ORDER_VALUES } from './constants.js';
|
|
3
|
+
|
|
4
|
+
const snkSelectBoxCss = "ez-combo-box{width:100px}.grid-config-combo{--ez-text-input--height:28px;--ez-text-input__input--background-color:#fff;--ez-text-input__input--border-color:#dce0e8}";
|
|
5
|
+
|
|
6
|
+
const SelectBox = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
7
|
+
constructor() {
|
|
8
|
+
super();
|
|
9
|
+
this.__registerHost();
|
|
10
|
+
this.__attachShadow();
|
|
11
|
+
this.ezChange = createEvent(this, "ezChange", 7);
|
|
12
|
+
this.selectedOption = ORDER_VALUES.none;
|
|
13
|
+
}
|
|
14
|
+
render() {
|
|
15
|
+
return (h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, Object.keys(ORDER_VALUES).map((key) => {
|
|
16
|
+
return h("option", { value: ORDER_VALUES[key].value }, ORDER_VALUES[key].label);
|
|
17
|
+
})));
|
|
18
|
+
}
|
|
19
|
+
static get assetsDirs() { return ["../assets"]; }
|
|
20
|
+
static get style() { return snkSelectBoxCss; }
|
|
21
|
+
}, [1, "snk-select-box", {
|
|
22
|
+
"selectedOption": [1, "selected-option"]
|
|
23
|
+
}]);
|
|
24
|
+
function defineCustomElement() {
|
|
25
|
+
if (typeof customElements === "undefined") {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const components = ["snk-select-box"];
|
|
29
|
+
components.forEach(tagName => { switch (tagName) {
|
|
30
|
+
case "snk-select-box":
|
|
31
|
+
if (!customElements.get(tagName)) {
|
|
32
|
+
customElements.define(tagName, SelectBox);
|
|
33
|
+
}
|
|
34
|
+
break;
|
|
35
|
+
} });
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export { SelectBox as S, defineCustomElement as d };
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { h, proxyCustomElement, HTMLElement, createEvent, Host } from '@stencil/core/internal/client';
|
|
2
2
|
import { ApplicationContext } from '@sankhyalabs/core';
|
|
3
|
-
import {
|
|
4
|
-
import { d as defineCustomElement$1 } from './snk-configurator2.js';
|
|
3
|
+
import { A as AuthorizationConfig } from './AuthorizationConfig.js';
|
|
5
4
|
|
|
6
5
|
var TaskbarElement;
|
|
7
6
|
(function (TaskbarElement) {
|
|
@@ -16,7 +15,6 @@ var TaskbarElement;
|
|
|
16
15
|
TaskbarElement["SAVE"] = "SAVE";
|
|
17
16
|
TaskbarElement["GRID_MODE"] = "GRID_MODE";
|
|
18
17
|
TaskbarElement["FORM_MODE"] = "FORM_MODE";
|
|
19
|
-
TaskbarElement["CONFIG_GRID"] = "CONFIG_GRID";
|
|
20
18
|
TaskbarElement["MORE_OPTIONS"] = "MORE_OPTIONS";
|
|
21
19
|
TaskbarElement["DIVIDER"] = "DIVIDER";
|
|
22
20
|
TaskbarElement["CONFIGURATOR"] = "CONFIGURATOR";
|
|
@@ -27,11 +25,11 @@ var AuthorizationElements;
|
|
|
27
25
|
AuthorizationElements["CLONE"] = "CLONE";
|
|
28
26
|
AuthorizationElements["REMOVE"] = "REMOVE";
|
|
29
27
|
AuthorizationElements["INSERT"] = "INSERT";
|
|
30
|
-
AuthorizationElements["
|
|
28
|
+
AuthorizationElements["CONFIGURATOR"] = "CONFIGURATOR";
|
|
31
29
|
})(AuthorizationElements || (AuthorizationElements = {}));
|
|
32
30
|
var VisibleWhenForbidden;
|
|
33
31
|
(function (VisibleWhenForbidden) {
|
|
34
|
-
VisibleWhenForbidden["
|
|
32
|
+
VisibleWhenForbidden["CONFIGURATOR"] = "CONFIGURATOR";
|
|
35
33
|
})(VisibleWhenForbidden || (VisibleWhenForbidden = {}));
|
|
36
34
|
const buildCustomButton = (def, className, action, isEnabled) => {
|
|
37
35
|
const { hint, text, iconName } = def;
|
|
@@ -47,7 +45,7 @@ const buildCustomButton = (def, className, action, isEnabled) => {
|
|
|
47
45
|
return textButton(def.name, className, text, hint, action, isEnabled);
|
|
48
46
|
}
|
|
49
47
|
};
|
|
50
|
-
const buildElem = (element, className, getTitle, action, isEnabled, actions
|
|
48
|
+
const buildElem = (element, className, getTitle, action, isEnabled, actions) => {
|
|
51
49
|
const title = getTitle(element);
|
|
52
50
|
switch (element) {
|
|
53
51
|
case TaskbarElement.PREVIOUS:
|
|
@@ -73,9 +71,9 @@ const buildElem = (element, className, getTitle, action, isEnabled, actions, con
|
|
|
73
71
|
case TaskbarElement.FORM_MODE:
|
|
74
72
|
return iconButton("list", element, className, title, action, isEnabled);
|
|
75
73
|
case TaskbarElement.CONFIGURATOR:
|
|
76
|
-
return
|
|
74
|
+
return iconButton("settings-inverted", element, className, title, action, isEnabled);
|
|
77
75
|
case TaskbarElement.MORE_OPTIONS:
|
|
78
|
-
return
|
|
76
|
+
return actionButton(element, className, title, action, isEnabled, actions);
|
|
79
77
|
case TaskbarElement.DIVIDER:
|
|
80
78
|
return h("hr", { class: "ez-divider-vertical ez-divider--dark ez-margin-horizontal--medium", "data-taskbar-divider": true });
|
|
81
79
|
}
|
|
@@ -90,8 +88,10 @@ function iconTextButton(iconName, name, className, text, title, action, isEnable
|
|
|
90
88
|
return h("ez-button", { name: iconName, title: title, label: text, size: "small", class: className, enabled: isEnabled(name), onClick: () => action(name) },
|
|
91
89
|
h("ez-icon", { class: "ez-padding-right--small", slot: "leftIcon", iconName: iconName }));
|
|
92
90
|
}
|
|
93
|
-
function
|
|
94
|
-
return
|
|
91
|
+
function actionButton(element, className, title, action, isEnabled, actions) {
|
|
92
|
+
return actions && actions.length > 0
|
|
93
|
+
? h("ez-actions-button", { title: title, size: "small", arrowActive: true, class: className, enabled: isEnabled(element), onEzAction: (evt) => action(evt.detail.value), actions: actions })
|
|
94
|
+
: undefined;
|
|
95
95
|
}
|
|
96
96
|
|
|
97
97
|
const snkTaskbarCss = ".sc-snk-taskbar-h{display:flex}";
|
|
@@ -135,6 +135,13 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
135
135
|
return elements;
|
|
136
136
|
}
|
|
137
137
|
isAllowed(buttonName) {
|
|
138
|
+
if (buttonName === AuthorizationElements.CONFIGURATOR) {
|
|
139
|
+
return this._permissions
|
|
140
|
+
? this._permissions.isSup
|
|
141
|
+
|| this._permissions[AuthorizationConfig.CONFIG_GRID]
|
|
142
|
+
|| this._permissions[AuthorizationConfig.CONFIG]
|
|
143
|
+
: false;
|
|
144
|
+
}
|
|
138
145
|
if (AuthorizationElements[buttonName]) {
|
|
139
146
|
return this._permissions ? this._permissions.isSup || this._permissions[buttonName] : false;
|
|
140
147
|
}
|
|
@@ -199,7 +206,7 @@ const SnkTaskbar = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
199
206
|
className += "ez-padding-left--medium";
|
|
200
207
|
}
|
|
201
208
|
if (TaskbarElement[def.toString()]) {
|
|
202
|
-
return buildElem(def, className, elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.actionsList
|
|
209
|
+
return buildElem(def, className, elem => this.getTitle(elem), elem => this.elementClick(elem), elem => this.isEnabled(elem), this.actionsList);
|
|
203
210
|
}
|
|
204
211
|
else {
|
|
205
212
|
return buildCustomButton(def, className, elem => this.elementClick(elem), elem => this.isEnabled(elem));
|
|
@@ -279,23 +286,13 @@ function defineCustomElement() {
|
|
|
279
286
|
if (typeof customElements === "undefined") {
|
|
280
287
|
return;
|
|
281
288
|
}
|
|
282
|
-
const components = ["snk-taskbar"
|
|
289
|
+
const components = ["snk-taskbar"];
|
|
283
290
|
components.forEach(tagName => { switch (tagName) {
|
|
284
291
|
case "snk-taskbar":
|
|
285
292
|
if (!customElements.get(tagName)) {
|
|
286
293
|
customElements.define(tagName, SnkTaskbar);
|
|
287
294
|
}
|
|
288
295
|
break;
|
|
289
|
-
case "snk-config-modal":
|
|
290
|
-
if (!customElements.get(tagName)) {
|
|
291
|
-
defineCustomElement$2();
|
|
292
|
-
}
|
|
293
|
-
break;
|
|
294
|
-
case "snk-configurator":
|
|
295
|
-
if (!customElements.get(tagName)) {
|
|
296
|
-
defineCustomElement$1();
|
|
297
|
-
}
|
|
298
|
-
break;
|
|
299
296
|
} });
|
|
300
297
|
}
|
|
301
298
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
+
import { ErrorException, WarningException, StringUtils, ObjectUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
1
2
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
|
|
2
|
-
import { ErrorException, WarningException, StringUtils, ObjectUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
4
|
var browserPonyfill = createCommonjsModule(function (module, exports) {
|
|
5
5
|
var global = typeof self !== 'undefined' ? self : commonjsGlobal;
|
|
@@ -6886,4 +6886,102 @@ var UserConfigType;
|
|
|
6886
6886
|
UserConfigType["SHARED"] = "SHARED";
|
|
6887
6887
|
})(UserConfigType || (UserConfigType = {}));
|
|
6888
6888
|
|
|
6889
|
-
|
|
6889
|
+
class GridConfigFetcher extends ResourceFetcher {
|
|
6890
|
+
constructor() {
|
|
6891
|
+
super(...arguments);
|
|
6892
|
+
this.GRID_CONFIG_VERSION = "V3:";
|
|
6893
|
+
}
|
|
6894
|
+
getConfig(_gridName, resourceID) {
|
|
6895
|
+
const completePath = `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}`;
|
|
6896
|
+
return new Promise((resolve, reject) => {
|
|
6897
|
+
this.loadResource(completePath)
|
|
6898
|
+
.then(loadedResource => {
|
|
6899
|
+
let config = undefined;
|
|
6900
|
+
if (loadedResource) {
|
|
6901
|
+
config = JSON.parse(loadedResource);
|
|
6902
|
+
}
|
|
6903
|
+
resolve(config);
|
|
6904
|
+
}).catch((error) => {
|
|
6905
|
+
reject(error);
|
|
6906
|
+
});
|
|
6907
|
+
});
|
|
6908
|
+
}
|
|
6909
|
+
saveConfig(config, resourceID) {
|
|
6910
|
+
const completePath = `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}`;
|
|
6911
|
+
return new Promise((resolve, reject) => {
|
|
6912
|
+
this.saveResource(config, completePath)
|
|
6913
|
+
.then((resp) => {
|
|
6914
|
+
resolve(resp);
|
|
6915
|
+
})
|
|
6916
|
+
.catch((error) => {
|
|
6917
|
+
reject(error);
|
|
6918
|
+
});
|
|
6919
|
+
});
|
|
6920
|
+
}
|
|
6921
|
+
}
|
|
6922
|
+
|
|
6923
|
+
const CONFIG_SOURCE = {
|
|
6924
|
+
form: "form",
|
|
6925
|
+
grid: "grid"
|
|
6926
|
+
};
|
|
6927
|
+
class ConfigStorage {
|
|
6928
|
+
static get() {
|
|
6929
|
+
if (!ConfigStorage.instance) {
|
|
6930
|
+
const application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
|
|
6931
|
+
if (application != undefined) {
|
|
6932
|
+
ConfigStorage.instance = new ConfigStorage();
|
|
6933
|
+
application.getResourceID().then((resourceID) => {
|
|
6934
|
+
const configName = application.configName;
|
|
6935
|
+
ConfigStorage.resourceID = resourceID;
|
|
6936
|
+
ConfigStorage.instance.loadFormConfig(configName);
|
|
6937
|
+
ConfigStorage.instance.loadGridConfig(configName);
|
|
6938
|
+
});
|
|
6939
|
+
}
|
|
6940
|
+
}
|
|
6941
|
+
return this.instance;
|
|
6942
|
+
}
|
|
6943
|
+
async loadFormConfig(name) {
|
|
6944
|
+
if (name == undefined) {
|
|
6945
|
+
return;
|
|
6946
|
+
}
|
|
6947
|
+
const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.form);
|
|
6948
|
+
if (!ConfigStorage.configById.has(cacheID)) {
|
|
6949
|
+
ConfigStorage.configById.set(cacheID, ConfigStorage.formConfigFetcher.loadFormConfig(name, ConfigStorage.resourceID));
|
|
6950
|
+
}
|
|
6951
|
+
return ConfigStorage.configById.get(cacheID);
|
|
6952
|
+
}
|
|
6953
|
+
async loadGridConfig(name) {
|
|
6954
|
+
if (name == undefined) {
|
|
6955
|
+
return;
|
|
6956
|
+
}
|
|
6957
|
+
const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.grid);
|
|
6958
|
+
if (!ConfigStorage.configById.has(cacheID)) {
|
|
6959
|
+
ConfigStorage.configById.set(cacheID, ConfigStorage.gridConfigFetcher.getConfig(name, ConfigStorage.resourceID));
|
|
6960
|
+
}
|
|
6961
|
+
return ConfigStorage.configById.get(cacheID);
|
|
6962
|
+
}
|
|
6963
|
+
static async saveFormConfig(config, name) {
|
|
6964
|
+
if (config == undefined || name == undefined) {
|
|
6965
|
+
return;
|
|
6966
|
+
}
|
|
6967
|
+
const cacheID = this.buildCacheID(name, CONFIG_SOURCE.form);
|
|
6968
|
+
this.configById.delete(cacheID);
|
|
6969
|
+
return this.formConfigFetcher.saveConfig(config, name, this.resourceID);
|
|
6970
|
+
}
|
|
6971
|
+
static async saveGridConfig(config, name) {
|
|
6972
|
+
if (config == undefined || name == undefined) {
|
|
6973
|
+
return;
|
|
6974
|
+
}
|
|
6975
|
+
const cacheID = this.buildCacheID(name, CONFIG_SOURCE.grid);
|
|
6976
|
+
this.configById.delete(cacheID);
|
|
6977
|
+
return this.gridConfigFetcher.saveConfig(config, this.resourceID);
|
|
6978
|
+
}
|
|
6979
|
+
static buildCacheID(name, source) {
|
|
6980
|
+
return `req_${source}_${name}_${this.resourceID}`;
|
|
6981
|
+
}
|
|
6982
|
+
}
|
|
6983
|
+
ConfigStorage.configById = new Map();
|
|
6984
|
+
ConfigStorage.formConfigFetcher = new FormConfigFetcher();
|
|
6985
|
+
ConfigStorage.gridConfigFetcher = new GridConfigFetcher();
|
|
6986
|
+
|
|
6987
|
+
export { ConfigStorage as C, DataFetcher as D, FormConfigFetcher as F, GridConfigFetcher as G, ResourceFetcher as R, UrlUtils as U, UserConfigType as a, dist as d };
|
|
@@ -130,6 +130,9 @@ const snkFormConfigMessages = {
|
|
|
130
130
|
titleGroupExists: "Já existe um grupo com título",
|
|
131
131
|
infoValidTitle: "Por favor, digite um título válido.",
|
|
132
132
|
inTab: "na aba"
|
|
133
|
+
},
|
|
134
|
+
info: {
|
|
135
|
+
successfullyConfigSaved: "As configurações foram salvas com sucesso!"
|
|
133
136
|
}
|
|
134
137
|
};
|
|
135
138
|
const snkFieldConfigMessages = {
|
|
@@ -145,9 +148,6 @@ const snkTabConfigMessages = {
|
|
|
145
148
|
};
|
|
146
149
|
|
|
147
150
|
const snkConfiguratorMessages = {
|
|
148
|
-
msgSaveSuccessfully: "As configurações foram salvas com sucesso!"
|
|
149
|
-
};
|
|
150
|
-
const snkConfigModalMessages = {
|
|
151
151
|
titleConfigurations: "Configurações",
|
|
152
152
|
subTitleModeConfig: "Modo de visualização",
|
|
153
153
|
labelConfigGrid: "Configurar grade",
|
|
@@ -156,6 +156,33 @@ const snkConfigModalMessages = {
|
|
|
156
156
|
labelForm: "Formulário"
|
|
157
157
|
};
|
|
158
158
|
|
|
159
|
+
const snkGridMessages = {};
|
|
160
|
+
const snkGridConfigMessages = {
|
|
161
|
+
gridConfiguration: "Configuração da Grade",
|
|
162
|
+
columnVisibilityOrder: "Defina visibilidade e ordem das colunas.",
|
|
163
|
+
sortingSequence: "Sequência da ordenação",
|
|
164
|
+
findColumn: "Localizar coluna",
|
|
165
|
+
cancel: "Cancelar",
|
|
166
|
+
complete: "Concluir",
|
|
167
|
+
tab: {
|
|
168
|
+
columns: "Colunas",
|
|
169
|
+
lineOrdering: "Ordenação das linhas",
|
|
170
|
+
},
|
|
171
|
+
info: {
|
|
172
|
+
successfullyConfigSaved: "As configurações foram salvas com sucesso!"
|
|
173
|
+
},
|
|
174
|
+
confirm: {
|
|
175
|
+
cancel: "Descartar",
|
|
176
|
+
save: "Salvar",
|
|
177
|
+
alert: "Aviso",
|
|
178
|
+
msgCancel: "As alterações realizadas serão descartadas. Gostaria de salvar antes de sair?"
|
|
179
|
+
},
|
|
180
|
+
group: {
|
|
181
|
+
visible: "Visíveis",
|
|
182
|
+
hidden: "Ocultas"
|
|
183
|
+
}
|
|
184
|
+
};
|
|
185
|
+
|
|
159
186
|
class SnkMessageBuilder {
|
|
160
187
|
constructor() {
|
|
161
188
|
this._defaults = {
|
|
@@ -164,12 +191,13 @@ class SnkMessageBuilder {
|
|
|
164
191
|
snkFormConfig: snkFormConfigMessages,
|
|
165
192
|
snkConfigOptions: snkConfigOptionsMessages,
|
|
166
193
|
snkTaskbar: snkTaskbarMessages,
|
|
167
|
-
snkConfigModal: snkConfigModalMessages,
|
|
168
194
|
snkFieldConfig: snkFieldConfigMessages,
|
|
169
195
|
snkFilterBar: snkFilterBarMessages,
|
|
170
196
|
snkConfigurator: snkConfiguratorMessages,
|
|
171
197
|
snkTabConfig: snkTabConfigMessages,
|
|
172
|
-
crudUtils: crudUtilsMessages
|
|
198
|
+
crudUtils: crudUtilsMessages,
|
|
199
|
+
snkGrid: snkGridMessages,
|
|
200
|
+
snkGridConfig: snkGridConfigMessages
|
|
173
201
|
};
|
|
174
202
|
this._currentOperation = OperationMap.CLEAN;
|
|
175
203
|
this.loadAppMessages().then((msgs) => {
|
|
@@ -70,5 +70,19 @@ const TAGS_BY_TYPE = {
|
|
|
70
70
|
INTEGERNUMBER: "ez-number-input",
|
|
71
71
|
DECIMALNUMBER: "ez-number-input"
|
|
72
72
|
};
|
|
73
|
+
const ORDER_VALUES = {
|
|
74
|
+
none: {
|
|
75
|
+
value: "NA",
|
|
76
|
+
label: "N/A",
|
|
77
|
+
},
|
|
78
|
+
asc: {
|
|
79
|
+
value: "ASC",
|
|
80
|
+
label: "A-Z"
|
|
81
|
+
},
|
|
82
|
+
desc: {
|
|
83
|
+
value: "DESC",
|
|
84
|
+
label: "Z-A"
|
|
85
|
+
}
|
|
86
|
+
};
|
|
73
87
|
|
|
74
|
-
export { ACTION_CONFIG as A, CONFIG_EVENTS as C, DEFAULT_TYPE as D, KEY_EVENTS as K, TAB_NAMES as T, VARS_BY_TYPE as V, TAGS_BY_TYPE as a, TYPE_ACTIONS as b, VIEW_MODE as c };
|
|
88
|
+
export { ACTION_CONFIG as A, CONFIG_EVENTS as C, DEFAULT_TYPE as D, KEY_EVENTS as K, ORDER_VALUES as O, TAB_NAMES as T, VARS_BY_TYPE as V, TAGS_BY_TYPE as a, TYPE_ACTIONS as b, VIEW_MODE as c };
|
package/dist/esm/loader.js
CHANGED
|
@@ -10,7 +10,7 @@ const patchEsm = () => {
|
|
|
10
10
|
const defineCustomElements = (win, options) => {
|
|
11
11
|
if (typeof window === 'undefined') return Promise.resolve();
|
|
12
12
|
return patchEsm().then(() => {
|
|
13
|
-
return bootstrapLazy([["teste-pesquisa",[[1,"teste-pesquisa"]]],["snk-data-unit",[[2,"snk-data-unit",{"dataState":[1040],"dataUnitName":[1,"data-unit-name"],"entityName":[1,"entity-name"],"pageSize":[2,"page-size"],"dataUnit":[1040],"beforeSave":[16],"afterSave":[16],"getDataUnit":[64]}]]],["snk-filter-binary-select",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-pesquisa",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-config-options",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-filter-detail",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-
|
|
13
|
+
return bootstrapLazy([["teste-pesquisa",[[1,"teste-pesquisa"]]],["snk-data-unit",[[2,"snk-data-unit",{"dataState":[1040],"dataUnitName":[1,"data-unit-name"],"entityName":[1,"entity-name"],"pageSize":[2,"page-size"],"dataUnit":[1040],"beforeSave":[16],"afterSave":[16],"getDataUnit":[64]}]]],["snk-filter-binary-select",[[0,"snk-filter-binary-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-multi-select",[[0,"snk-filter-multi-select",{"value":[1544],"config":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-number",[[0,"snk-filter-number",{"config":[16],"value":[2],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-period",[[0,"snk-filter-period",{"config":[16],"value":[8],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-personalized",[[0,"snk-filter-personalized",{"config":[16],"value":[1040],"fix":[16],"unfix":[16],"show":[64]}]]],["snk-filter-search",[[0,"snk-filter-search",{"config":[16],"value":[16],"show":[64]},[[0,"ezChange","ezChangeListener"]]]]],["snk-filter-text",[[0,"snk-filter-text",{"config":[16],"value":[1]},[[0,"ezChange","ezChangeListener"]]]]],["snk-pesquisa",[[2,"snk-pesquisa",{"searchLoader":[16],"selectItem":[16],"argument":[1025],"_itemList":[32],"_startLoading":[32]}]]],["snk-config-options",[[2,"snk-config-options",{"fieldConfig":[16],"idConfig":[513,"id-config"],"dataUnit":[16],"_defaultType":[32]}]]],["snk-tab-config",[[6,"snk-tab-config",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1],"_processedTabs":[32],"_activeEditText":[32],"_activeEditTextIndex":[32],"_actionsHide":[32],"_actionsShow":[32]}]]],["snk-filter-detail",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-configurator_3",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"_dataUnit":[32],"_dataState":[32],"_gridConfig":[32],"_popUpGridConfig":[32],"showConfig":[64],"hideConfig":[64],"setConfig":[64]}],[2,"snk-configurator",{"configName":[1,"config-name"],"viewMode":[1,"view-mode"],"_opened":[32],"_permissions":[32],"open":[64],"close":[64]}],[2,"snk-field-config",{"isConfigActive":[16],"fieldConfig":[16],"modeInsertion":[516,"mode-insertion"],"dataUnit":[16]}]]],["snk-form-config",[[2,"snk-form-config",{"dataUnit":[16],"formConfig":[16],"configName":[513,"config-name"],"_formConfigOptions":[32],"_fieldConfigSelected":[32],"_layoutFormConfig":[32],"_fieldsAvailable":[32],"_formConfig":[32],"_formConfigChanged":[32],"_optionFormConfigSelected":[32],"_optionFormConfigChanged":[32],"_tempGroups":[32]}]]],["snk-filter-bar_7",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32]},[[0,"filterChange","filterChangeListener"]]],[2,"snk-grid-config",{"selectedIndex":[1026,"selected-index"],"columns":[1040],"config":[1040],"saveConfig":[64]}],[0,"snk-filter-item",{"config":[1040],"getMessage":[16],"detailIsVisible":[32],"showUp":[64],"hideDetail":[64]},[[2,"click","clickListener"],[2,"mousedown","mouseDownListener"],[0,"filterChange","filterChangeListener"]]],[4,"snk-filter-list",{"label":[1],"iconName":[1,"icon-name"],"items":[16],"getMessage":[16],"emptyText":[1,"empty-text"],"findFilterText":[1,"find-filter-text"],"buttonClass":[1,"button-class"],"_filterArgument":[32],"_showAll":[32],"hideDetail":[64]},[[2,"keydown","keyDownHandler"]]],[0,"snk-filter-modal",{"getMessage":[16],"items":[1040],"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"infoText":[1,"info-text"],"useSearch":[4,"use-search"],"processModalAction":[16],"_filterArgument":[32]}],[1,"snk-select-box",{"selectedOption":[1,"selected-option"]}],[6,"snk-taskbar",{"configName":[1,"config-name"],"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"_permissions":[32]}]]],["snk-form",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"_dataUnit":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32],"_showFormConfig":[32],"showConfig":[64],"hideConfig":[64]}]]],["snk-crud",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"_dataUnit":[32],"_dataState":[32],"_viewMode":[32],"goToView":[64]}]]],["snk-application",[[2,"snk-application",{"messagesBuilder":[1040],"configName":[1,"config-name"],"isUserSup":[64],"hasAccess":[64],"getAllAccess":[64],"getStringParam":[64],"getIntParam":[64],"getFloatParam":[64],"getBooleanParam":[64],"getDateParam":[64],"showPopUp":[64],"showModal":[64],"closeModal":[64],"closePopUp":[64],"temOpcional":[64],"getConfig":[64],"saveConfig":[64],"getAttributeFromHTMLWrapper":[64],"openApp":[64],"createDataunit":[64],"getDataUnit":[64],"getResourceID":[64],"getUserID":[64],"alert":[64],"error":[64],"success":[64],"message":[64],"confirm":[64],"info":[64],"loadFormConfig":[64],"loadGridConfig":[64],"fetchUserAvailableConfigs":[64],"fetchLegacyConfig":[64],"fetchDefaultConfig":[64],"loadTotals":[64],"saveGridConfig":[64],"getFilterBarConfig":[64],"saveFilterBarConfig":[64],"saveFormConfig":[64],"getDefaultValues":[64],"getDefaultValue":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64]}]]]], options);
|
|
14
14
|
});
|
|
15
15
|
};
|
|
16
16
|
|