@sankhyalabs/sankhyablocks 9.1.0-dev.4 → 9.1.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/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-attach.cjs.entry.js +28 -11
- package/dist/cjs/snk-simple-crud.cjs.entry.js +7 -7
- package/dist/collection/components/snk-attach/snk-attach.js +45 -11
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +8 -8
- package/dist/components/snk-attach2.js +29 -11
- package/dist/components/snk-simple-crud2.js +7 -7
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-attach.entry.js +28 -11
- package/dist/esm/snk-simple-crud.entry.js +7 -7
- package/dist/sankhyablocks/p-0d72d9c3.entry.js +1 -0
- package/dist/sankhyablocks/{p-bd665460.entry.js → p-33a44ca7.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
- package/dist/types/components/snk-attach/snk-attach.d.ts +5 -0
- package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -1
- package/dist/types/components.d.ts +8 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-50b68b68.entry.js +0 -1
- /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
- /package/dist/types/components/snk-simple-crud/{regular-buttons.d.ts → snk-simple-crud.constants.d.ts} +0 -0
@@ -7,6 +7,8 @@ import InMemoryLoader from '../../lib/dataUnit/InMemoryLoader';
|
|
7
7
|
import { SaveErrorsEnum } from '../../lib/http/data-fetcher/fetchers/AttachFetcher/interfaces';
|
8
8
|
const RESOURCE_ID = 'AnexoSistema';
|
9
9
|
const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
|
10
|
+
const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
|
11
|
+
const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
|
10
12
|
export class SnkAttach {
|
11
13
|
constructor() {
|
12
14
|
this.handleTaskbarClick = async ({ detail: taskbar }) => {
|
@@ -33,6 +35,7 @@ export class SnkAttach {
|
|
33
35
|
this.back.emit();
|
34
36
|
});
|
35
37
|
};
|
38
|
+
this.gridLegacyConfigName = undefined;
|
36
39
|
this.fetcherType = undefined;
|
37
40
|
this.fetcher = undefined;
|
38
41
|
this.dataUnit = undefined;
|
@@ -144,9 +147,11 @@ export class SnkAttach {
|
|
144
147
|
var _a, _b;
|
145
148
|
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
146
149
|
this._currentFetcher = this.getAnexoSistemaFetcherInstance();
|
150
|
+
let gridValidateForm;
|
147
151
|
if (!this._currentDataUnit.metadata) {
|
148
152
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
149
|
-
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
153
|
+
this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
|
154
|
+
gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
|
150
155
|
}
|
151
156
|
this.initDataUnitLoaders();
|
152
157
|
this._currentDataUnit.addFilterProvider({
|
@@ -156,19 +161,21 @@ export class SnkAttach {
|
|
156
161
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
157
162
|
});
|
158
163
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
|
159
|
-
this.disableEditFieldsNotInForm();
|
164
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
160
165
|
}
|
161
166
|
async loadAttach() {
|
162
167
|
var _a, _b;
|
163
168
|
this._currentFetcher = new AttachFetcher();
|
164
169
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
165
170
|
this._currentDataUnit.pageSize = 150;
|
171
|
+
let gridValidateForm;
|
166
172
|
this.initDataUnitLoaders();
|
167
173
|
this._currentDataUnit.addInterceptor({
|
168
174
|
interceptAction: (action) => {
|
169
175
|
var _a;
|
170
176
|
if (action.type === Action.METADATA_LOADED) {
|
171
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
177
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
178
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
172
179
|
(_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
|
173
180
|
}
|
174
181
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
@@ -176,9 +183,10 @@ export class SnkAttach {
|
|
176
183
|
});
|
177
184
|
if (!this._currentDataUnit.metadata) {
|
178
185
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
179
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
186
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
187
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
180
188
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
|
181
|
-
this.disableEditFieldsNotInForm();
|
189
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
182
190
|
}
|
183
191
|
}
|
184
192
|
initDataUnitLoaders() {
|
@@ -197,12 +205,16 @@ export class SnkAttach {
|
|
197
205
|
});
|
198
206
|
}
|
199
207
|
}
|
200
|
-
disableEditFieldsNotInForm() {
|
201
|
-
var _a;
|
202
|
-
(_a = this.
|
203
|
-
|
208
|
+
disableEditFieldsNotInForm(gridValidateForm) {
|
209
|
+
var _a, _b, _c, _d, _e;
|
210
|
+
const gridColumns = ((_b = (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.gridConfig) === null || _b === void 0 ? void 0 : _b.columns) || ((_c = gridValidateForm === null || gridValidateForm === void 0 ? void 0 : gridValidateForm.grid) === null || _c === void 0 ? void 0 : _c.columns) || ((_e = (_d = this.crudConfig) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.columns);
|
211
|
+
if (!!this.getGridLegacyConfigName()) {
|
212
|
+
this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
|
213
|
+
}
|
214
|
+
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
|
215
|
+
var _a, _b;
|
204
216
|
const fieldName = column.name;
|
205
|
-
if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
|
217
|
+
if (!((_b = (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.fields.some(field => (field === null || field === void 0 ? void 0 : field.name) === fieldName))) {
|
206
218
|
this._currentDataUnit.disableField(fieldName);
|
207
219
|
}
|
208
220
|
});
|
@@ -252,11 +264,16 @@ export class SnkAttach {
|
|
252
264
|
await this._currentDataUnit.loadMetadata();
|
253
265
|
}
|
254
266
|
;
|
267
|
+
getGridLegacyConfigName() {
|
268
|
+
if (this.gridLegacyConfigName)
|
269
|
+
return this.gridLegacyConfigName;
|
270
|
+
return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
|
271
|
+
}
|
255
272
|
render() {
|
256
273
|
var _a, _b;
|
257
274
|
if (!this._currentDataUnit)
|
258
275
|
return null;
|
259
|
-
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
276
|
+
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true, configName: this.entityName, ignoreReadOnlyFormFields: this.entityName ? true : false, gridLegacyConfigName: this.getGridLegacyConfigName() }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
260
277
|
}
|
261
278
|
static get is() { return "snk-attach"; }
|
262
279
|
static get encapsulation() { return "scoped"; }
|
@@ -272,6 +289,23 @@ export class SnkAttach {
|
|
272
289
|
}
|
273
290
|
static get properties() {
|
274
291
|
return {
|
292
|
+
"gridLegacyConfigName": {
|
293
|
+
"type": "string",
|
294
|
+
"mutable": false,
|
295
|
+
"complexType": {
|
296
|
+
"original": "string",
|
297
|
+
"resolved": "string",
|
298
|
+
"references": {}
|
299
|
+
},
|
300
|
+
"required": false,
|
301
|
+
"optional": false,
|
302
|
+
"docs": {
|
303
|
+
"tags": [],
|
304
|
+
"text": "Chave da configura\u00E7\u00E3o legado da grid."
|
305
|
+
},
|
306
|
+
"attribute": "grid-legacy-config-name",
|
307
|
+
"reflect": false
|
308
|
+
},
|
275
309
|
"fetcherType": {
|
276
310
|
"type": "string",
|
277
311
|
"mutable": false,
|
@@ -9,7 +9,7 @@ import InMemoryLoader from '../../lib/dataUnit/InMemoryLoader';
|
|
9
9
|
import SnkMultiSelectionListDataSource from '../snk-grid/filtercolumn/SnkMultiSelectionListDataSource';
|
10
10
|
import { ConfigStorage } from '../../lib/configs/ConfigStorage';
|
11
11
|
import { SnkFormConfigManager } from '../snk-form-config/SnkFormConfigManager';
|
12
|
-
import { REGULAR_DEFAULT_BTNS, REGULAR_SELECTED_BTNS } from './
|
12
|
+
import { REGULAR_DEFAULT_BTNS, REGULAR_SELECTED_BTNS } from './snk-simple-crud.constants';
|
13
13
|
import RmPrecisionCustomValueFormatter from '../../lib/DefaultCustomFormatters/RmPrecisionCustomValueFormatter';
|
14
14
|
import ClientSideExporterProvider from '../snk-data-exporter/providers/ClientSideExporterProvider';
|
15
15
|
import store from '../../lib/store';
|
@@ -85,15 +85,15 @@ export class SnkSimpleCrud {
|
|
85
85
|
newCustomRenders.set(fieldName, customRender);
|
86
86
|
this._customRenders = newCustomRenders;
|
87
87
|
}
|
88
|
-
handleResourceIDChanged(newValue, oldValue) {
|
88
|
+
async handleResourceIDChanged(newValue, oldValue) {
|
89
89
|
if (StringUtils.isEmpty(newValue)) {
|
90
90
|
return;
|
91
91
|
}
|
92
92
|
if (newValue === oldValue) {
|
93
93
|
return;
|
94
94
|
}
|
95
|
-
this.loadFormConfig(true);
|
96
|
-
this.loadGridConfig(true);
|
95
|
+
await this.loadFormConfig(true);
|
96
|
+
await this.loadGridConfig(true);
|
97
97
|
}
|
98
98
|
/**
|
99
99
|
* Registra um formatador de valores para uma coluna da grid.
|
@@ -149,7 +149,7 @@ export class SnkSimpleCrud {
|
|
149
149
|
.concat(extraButtons));
|
150
150
|
}
|
151
151
|
addConfigButton(buttons) {
|
152
|
-
if (this.configName === undefined) {
|
152
|
+
if (this.configName === undefined || (this.configName && this.gridLegacyConfigName)) {
|
153
153
|
return buttons;
|
154
154
|
}
|
155
155
|
return buttons.concat(TaskbarElement.CONFIGURATOR);
|
@@ -260,7 +260,7 @@ export class SnkSimpleCrud {
|
|
260
260
|
if (!this._formConfigAlreadyLoaded) {
|
261
261
|
return;
|
262
262
|
}
|
263
|
-
this.loadFormConfig(true);
|
263
|
+
await this.loadFormConfig(true);
|
264
264
|
}
|
265
265
|
openConfig(viewMode) {
|
266
266
|
this._snkConfigurator.close();
|
@@ -345,8 +345,8 @@ export class SnkSimpleCrud {
|
|
345
345
|
return;
|
346
346
|
}
|
347
347
|
await this.addGridLegacyConfigName();
|
348
|
-
this.loadGridConfig();
|
349
|
-
this.loadFormConfig();
|
348
|
+
await this.loadGridConfig();
|
349
|
+
await this.loadFormConfig();
|
350
350
|
}
|
351
351
|
componentDidRender() {
|
352
352
|
this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
|
@@ -627,6 +627,8 @@ const snkAttachCss = ".snk-attach__header.sc-snk-attach,.snk-attach__crud-sectio
|
|
627
627
|
|
628
628
|
const RESOURCE_ID = 'AnexoSistema';
|
629
629
|
const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
|
630
|
+
const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
|
631
|
+
const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
|
630
632
|
const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
631
633
|
constructor() {
|
632
634
|
super();
|
@@ -656,6 +658,7 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
656
658
|
this.back.emit();
|
657
659
|
});
|
658
660
|
};
|
661
|
+
this.gridLegacyConfigName = undefined;
|
659
662
|
this.fetcherType = undefined;
|
660
663
|
this.fetcher = undefined;
|
661
664
|
this.dataUnit = undefined;
|
@@ -767,9 +770,11 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
767
770
|
var _a, _b;
|
768
771
|
this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
769
772
|
this._currentFetcher = this.getAnexoSistemaFetcherInstance();
|
773
|
+
let gridValidateForm;
|
770
774
|
if (!this._currentDataUnit.metadata) {
|
771
775
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
772
|
-
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
776
|
+
this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
|
777
|
+
gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
|
773
778
|
}
|
774
779
|
this.initDataUnitLoaders();
|
775
780
|
this._currentDataUnit.addFilterProvider({
|
@@ -779,19 +784,21 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
779
784
|
interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
|
780
785
|
});
|
781
786
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
|
782
|
-
this.disableEditFieldsNotInForm();
|
787
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
783
788
|
}
|
784
789
|
async loadAttach() {
|
785
790
|
var _a, _b;
|
786
791
|
this._currentFetcher = new AttachFetcher();
|
787
792
|
this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
|
788
793
|
this._currentDataUnit.pageSize = 150;
|
794
|
+
let gridValidateForm;
|
789
795
|
this.initDataUnitLoaders();
|
790
796
|
this._currentDataUnit.addInterceptor({
|
791
797
|
interceptAction: (action) => {
|
792
798
|
var _a;
|
793
799
|
if (action.type === Action.METADATA_LOADED) {
|
794
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
800
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
801
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
795
802
|
(_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
|
796
803
|
}
|
797
804
|
return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
|
@@ -799,9 +806,10 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
799
806
|
});
|
800
807
|
if (!this._currentDataUnit.metadata) {
|
801
808
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
|
802
|
-
this.crudConfig = Object.assign({}, attachCrudConfig);
|
809
|
+
this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
|
810
|
+
gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
|
803
811
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
|
804
|
-
this.disableEditFieldsNotInForm();
|
812
|
+
this.disableEditFieldsNotInForm(gridValidateForm);
|
805
813
|
}
|
806
814
|
}
|
807
815
|
initDataUnitLoaders() {
|
@@ -820,12 +828,16 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
820
828
|
});
|
821
829
|
}
|
822
830
|
}
|
823
|
-
disableEditFieldsNotInForm() {
|
824
|
-
var _a;
|
825
|
-
(_a = this.
|
826
|
-
|
831
|
+
disableEditFieldsNotInForm(gridValidateForm) {
|
832
|
+
var _a, _b, _c, _d, _e;
|
833
|
+
const gridColumns = ((_b = (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.gridConfig) === null || _b === void 0 ? void 0 : _b.columns) || ((_c = gridValidateForm === null || gridValidateForm === void 0 ? void 0 : gridValidateForm.grid) === null || _c === void 0 ? void 0 : _c.columns) || ((_e = (_d = this.crudConfig) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.columns);
|
834
|
+
if (!!this.getGridLegacyConfigName()) {
|
835
|
+
this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
|
836
|
+
}
|
837
|
+
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
|
838
|
+
var _a, _b;
|
827
839
|
const fieldName = column.name;
|
828
|
-
if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
|
840
|
+
if (!((_b = (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.fields.some(field => (field === null || field === void 0 ? void 0 : field.name) === fieldName))) {
|
829
841
|
this._currentDataUnit.disableField(fieldName);
|
830
842
|
}
|
831
843
|
});
|
@@ -875,17 +887,23 @@ const SnkAttach = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
875
887
|
await this._currentDataUnit.loadMetadata();
|
876
888
|
}
|
877
889
|
;
|
890
|
+
getGridLegacyConfigName() {
|
891
|
+
if (this.gridLegacyConfigName)
|
892
|
+
return this.gridLegacyConfigName;
|
893
|
+
return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
|
894
|
+
}
|
878
895
|
render() {
|
879
896
|
var _a, _b;
|
880
897
|
if (!this._currentDataUnit)
|
881
898
|
return null;
|
882
|
-
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
899
|
+
return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true, configName: this.entityName, ignoreReadOnlyFormFields: this.entityName ? true : false, gridLegacyConfigName: this.getGridLegacyConfigName() }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
|
883
900
|
}
|
884
901
|
static get watchers() { return {
|
885
902
|
"registerKey": ["registerKeyWatcher"]
|
886
903
|
}; }
|
887
904
|
static get style() { return snkAttachCss; }
|
888
905
|
}, [2, "snk-attach", {
|
906
|
+
"gridLegacyConfigName": [1, "grid-legacy-config-name"],
|
889
907
|
"fetcherType": [1, "fetcher-type"],
|
890
908
|
"fetcher": [16],
|
891
909
|
"dataUnit": [16],
|
@@ -110,15 +110,15 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
110
110
|
newCustomRenders.set(fieldName, customRender);
|
111
111
|
this._customRenders = newCustomRenders;
|
112
112
|
}
|
113
|
-
handleResourceIDChanged(newValue, oldValue) {
|
113
|
+
async handleResourceIDChanged(newValue, oldValue) {
|
114
114
|
if (StringUtils.isEmpty(newValue)) {
|
115
115
|
return;
|
116
116
|
}
|
117
117
|
if (newValue === oldValue) {
|
118
118
|
return;
|
119
119
|
}
|
120
|
-
this.loadFormConfig(true);
|
121
|
-
this.loadGridConfig(true);
|
120
|
+
await this.loadFormConfig(true);
|
121
|
+
await this.loadGridConfig(true);
|
122
122
|
}
|
123
123
|
/**
|
124
124
|
* Registra um formatador de valores para uma coluna da grid.
|
@@ -174,7 +174,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
174
174
|
.concat(extraButtons));
|
175
175
|
}
|
176
176
|
addConfigButton(buttons) {
|
177
|
-
if (this.configName === undefined) {
|
177
|
+
if (this.configName === undefined || (this.configName && this.gridLegacyConfigName)) {
|
178
178
|
return buttons;
|
179
179
|
}
|
180
180
|
return buttons.concat(TaskbarElement.CONFIGURATOR);
|
@@ -285,7 +285,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
285
285
|
if (!this._formConfigAlreadyLoaded) {
|
286
286
|
return;
|
287
287
|
}
|
288
|
-
this.loadFormConfig(true);
|
288
|
+
await this.loadFormConfig(true);
|
289
289
|
}
|
290
290
|
openConfig(viewMode) {
|
291
291
|
this._snkConfigurator.close();
|
@@ -370,8 +370,8 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
370
370
|
return;
|
371
371
|
}
|
372
372
|
await this.addGridLegacyConfigName();
|
373
|
-
this.loadGridConfig();
|
374
|
-
this.loadFormConfig();
|
373
|
+
await this.loadGridConfig();
|
374
|
+
await this.loadFormConfig();
|
375
375
|
}
|
376
376
|
componentDidRender() {
|
377
377
|
this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
|
package/dist/esm/loader.js
CHANGED
@@ -11,7 +11,7 @@ const patchEsm = () => {
|
|
11
11
|
const defineCustomElements = (win, options) => {
|
12
12
|
if (typeof window === 'undefined') return Promise.resolve();
|
13
13
|
return patchEsm().then(() => {
|
14
|
-
return bootstrapLazy(JSON.parse("[[\"snk-actions-form\",[[2,\"snk-actions-form\",{\"action\":[16],\"applyParameters\":[16],\"dataUnit\":[32],\"openPopup\":[64]}]]],[\"snk-client-confirm\",[[2,\"snk-client-confirm\",{\"titleMessage\":[1,\"title-message\"],\"message\":[1],\"accept\":[16],\"cancel\":[16],\"openPopup\":[64]}]]],[\"snk-custom-slot-elements\",[[6,\"snk-custom-slot-elements\",{\"slotName\":[1,\"slot-name\"]}]]],[\"snk-entity-list\",[[2,\"snk-entity-list\",{\"config\":[1040],\"rightListSlotBuilder\":[1040],\"maxHeightList\":[1,\"max-height-list\"],\"_searchValue\":[32],\"_ezListSource\":[32],\"reloadList\":[64]}]]],[\"snk-filter-binary-select\",[[0,\"snk-filter-binary-select\",{\"value\":[1544],\"config\":[16],\"presentationMode\":[2,\"presentation-mode\"],\"resetValues\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"snk-filter-checkbox-list\",[[0,\"snk-filter-checkbox-list\",{\"config\":[1040],\"optionsList\":[32]}]]],[\"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],\"getMessage\":[16],\"value\":[2],\"presentationMode\":[2,\"presentation-mode\"],\"show\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"snk-filter-period\",[[0,\"snk-filter-period\",{\"config\":[16],\"getMessage\":[16],\"value\":[8],\"presentationMode\":[2,\"presentation-mode\"],\"show\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"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-personalized-filter-editor\",[[2,\"snk-personalized-filter-editor\",{\"messagesBuilder\":[1040],\"presentationMode\":[2,\"presentation-mode\"],\"config\":[16],\"value\":[1040],\"items\":[32],\"show\":[64]}]]],[\"snk-print-selector\",[[2,\"snk-print-selector\",{\"_printServerActive\":[32],\"_selectedPrinter\":[32],\"_remotePrintersDataSource\":[32],\"_localPrintersDataSource\":[32],\"_printJobData\":[32],\"openPrintSelector\":[64]}]]],[\"pesquisa-grid_2\",[[2,\"pesquisa-grid\",{\"metadata\":[16],\"dataSource\":[16],\"pkField\":[1,\"pk-field\"],\"descriptionField\":[1,\"description-field\"],\"entityName\":[1,\"entity-name\"],\"shouldLoadConfig\":[4,\"should-load-config\"],\"_gridConfig\":[32],\"_inMemoryLoader\":[32],\"_dataunit\":[32]}],[2,\"pesquisa-tree\",{\"treeLoader\":[16],\"argument\":[1025],\"allowsNonAnalytic\":[4,\"allows-non-analytic\"],\"shouldLoadTree\":[4,\"should-load-tree\"],\"items\":[32],\"applyFilter\":[64]}]]],[\"snk-pesquisa\",[[2,\"snk-pesquisa\",{\"searchLoader\":[16],\"treeLoader\":[16],\"selectItem\":[16],\"entityName\":[1,\"entity-name\"],\"argument\":[1025],\"isHierarchyEntity\":[4,\"is-hierarchy-entity\"],\"allowsNonAnalytic\":[4,\"allows-non-analytic\"],\"_itemList\":[32],\"_startLoading\":[32],\"_presentationMode\":[32],\"_currentView\":[32],\"_valideDataSource\":[32]}]]],[\"snk-application\",[[2,\"snk-application\",{\"enableLockManagerLoadingApp\":[4,\"enable-lock-manager-loading-app\"],\"messagesBuilder\":[1040],\"configName\":[1,\"config-name\"],\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"loadByPK\":[16],\"_applicationReady\":[32],\"_templateSkeleton\":[32],\"_activeScrimWindow\":[32],\"getKeyboardManager\":[64],\"getLayoutFormConfig\":[64],\"isUserSup\":[64],\"addPendingAction\":[64],\"callServiceBroker\":[64],\"initOnboarding\":[64],\"hasAccess\":[64],\"getAllAccess\":[64],\"getStringParam\":[64],\"getIntParam\":[64],\"getFloatParam\":[64],\"getBooleanParam\":[64],\"getDateParam\":[64],\"showPopUp\":[64],\"showModal\":[64],\"showAlerts\":[64],\"closeModal\":[64],\"closePopUp\":[64],\"temOpcional\":[64],\"getConfig\":[64],\"saveConfig\":[64],\"getAttributeFromHTMLWrapper\":[64],\"openApp\":[64],\"webConnection\":[64],\"createDataunit\":[64],\"updateDataunitCache\":[64],\"getDataUnit\":[64],\"addClientEvent\":[64],\"removeClientEvent\":[64],\"hasClientEvent\":[64],\"getResourceID\":[64],\"getUserID\":[64],\"alert\":[64],\"error\":[64],\"success\":[64],\"message\":[64],\"confirm\":[64],\"info\":[64],\"loadTotals\":[64],\"isLoadedByPk\":[64],\"preloadMangerRemoveRecord\":[64],\"executeSearch\":[64],\"executePreparedSearchPlus\":[64],\"executePreparedSearch\":[64],\"isDebugMode\":[64],\"getAppLabel\":[64],\"addSearchListener\":[64],\"importScript\":[64],\"getApplicationPath\":[64],\"executeSelectDistinct\":[64],\"getDataFetcher\":[64],\"whenApplicationReady\":[64],\"setSearchFilterContext\":[64],\"clearPopUpTitle\":[64],\"setPopUpTitle\":[64],\"showScrimApp\":[64],\"markToReload\":[64],\"addLoadingLock\":[64]}]]],[\"teste-pesquisa\",[[1,\"teste-pesquisa\"]]],[\"snk-default-filter\",[[2,\"snk-default-filter\",{\"getMessage\":[16],\"hasDefaultFilter\":[4,\"has-default-filter\"],\"_opened\":[32]}]]],[\"snk-filter-modal-item\",[[0,\"snk-filter-modal-item\",{\"filterItem\":[1040],\"configName\":[1025,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"]}]]],[\"field-config_2\",[[2,\"field-item\",{\"fieldConfig\":[8,\"field-config\"],\"onLayoutConfig\":[4,\"on-layout-config\"],\"dataUnit\":[16],\"messagesBuilder\":[1040],\"fieldDescriptor\":[32]}],[2,\"field-config\",{\"dataUnit\":[16],\"fieldConfig\":[1544,\"field-config\"],\"fieldDescriptor\":[16],\"messagesBuilder\":[1040],\"fieldLabel\":[32],\"fieldLabelErrorMessage\":[32],\"fieldDefaultValue\":[32],\"fieldCleanOnCopy\":[32],\"fieldRequired\":[32],\"fieldReadOnly\":[32],\"_defaultType\":[32],\"show\":[64]}]]],[\"fields-layout\",[[2,\"fields-layout\",{\"selectedGuide\":[16],\"groupsList\":[16],\"guideNames\":[16],\"dataUnit\":[16],\"messagesBuilder\":[1040],\"isEditGuideNameActive\":[32],\"addFieldToLayout\":[64]},[[16,\"fieldConfigChanged\",\"handleFieldConfigChanged\"]]]]],[\"snk-form_2\",[[2,\"snk-form\",{\"configName\":[1,\"config-name\"],\"recordsValidator\":[16],\"messagesBuilder\":[1040],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"_dataUnit\":[32],\"_dataState\":[32],\"_showFormConfig\":[32],\"_configManager\":[32],\"showConfig\":[64],\"hideConfig\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}],[2,\"snk-form-config\",{\"dataUnit\":[16],\"configManager\":[16],\"ignoreReadOnlyFormFields\":[4,\"ignore-read-only-form-fields\"],\"messagesBuilder\":[1040],\"availableFields\":[32],\"guidesList\":[32],\"groupsList\":[32],\"selectedGuide\":[32],\"_formConfig\":[32],\"configOptions\":[32],\"originalConfigSelected\":[32],\"configSelected\":[32],\"hasChanges\":[32],\"optionConfigChanged\":[32]},[[16,\"fieldConfigChanged\",\"handleFieldConfigChanged\"],[16,\"formConfigOptionSelected\",\"handleFormConfigOptionSelected\"],[16,\"addFieldToGuide\",\"handleAddFieldToGuide\"],[16,\"setFieldAsAvailable\",\"handleSetFieldAsAvailable\"],[16,\"removeFieldFromAvailable\",\"handleRemoveFieldFromAvailable\"]]]]],[\"snk-form-summary\",[[2,\"snk-form-summary\",{\"fixed\":[1540],\"contracted\":[1540],\"summary\":[16]}]]],[\"snk-form-view\",[[6,\"snk-form-view\",{\"levelPath\":[1,\"level-path\"],\"fieldSearch\":[16],\"label\":[1],\"name\":[1],\"fields\":[16],\"formMetadata\":[8,\"form-metadata\"],\"dataUnit\":[16],\"contracted\":[4],\"fixed\":[1540],\"summaryFields\":[16],\"canExpand\":[4,\"can-expand\"],\"canFix\":[4,\"can-fix\"],\"recordsValidator\":[16],\"fieldToFocus\":[1,\"field-to-focus\"],\"customEditors\":[16],\"fieldsProps\":[16],\"showUp\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64],\"showSearchField\":[64]}]]],[\"fields-selector\",[[2,\"fields-selector\",{\"availableFields\":[16],\"dataUnit\":[16],\"filterTerm\":[32]}]]],[\"snk-personalized-filter\",[[2,\"snk-personalized-filter\",{\"messagesBuilder\":[1040],\"entityUri\":[1025,\"entity-uri\"],\"filterId\":[1025,\"filter-id\"],\"configName\":[1025,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"isDefaultFilter\":[4,\"is-default-filter\"],\"_filterAssistentMode\":[32],\"_filterAssistent\":[32],\"createPersonalizedFilter\":[64]}]]],[\"configs-button\",[[2,\"configs-button\",{\"configOptions\":[16],\"selectedConfig\":[16],\"hasChanges\":[4,\"has-changes\"],\"messagesBuilder\":[1040]}]]],[\"config-header\",[[2,\"config-header\",{\"configOptions\":[16],\"selectedConfig\":[16],\"messagesBuilder\":[1040],\"hasChanges\":[4,\"has-changes\"],\"optionConfigChanged\":[4,\"option-config-changed\"],\"isEditingGuide\":[32],\"isEditingGroup\":[32]},[[16,\"isEditingGuideName\",\"handleIsEditingGuideName\"],[16,\"isEditingGroupName\",\"handleIsEditingGroupName\"]]]]],[\"guides-configurator\",[[2,\"guides-configurator\",{\"guidesList\":[16],\"selectedGuide\":[16],\"messagesBuilder\":[1040],\"mainGuide\":[32],\"filterTerm\":[32],\"visibleGuides\":[32],\"hiddenGuides\":[32]}]]],[\"snk-configurator\",[[2,\"snk-configurator\",{\"showActionButtons\":[4,\"show-action-buttons\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"viewMode\":[2,\"view-mode\"],\"customContainerId\":[1,\"custom-container-id\"],\"layoutFormConfig\":[4,\"layout-form-config\"],\"messagesBuilder\":[1040],\"_opened\":[32],\"_permissions\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-data-unit\",[[2,\"snk-data-unit\",{\"dataState\":[1040],\"messagesBuilder\":[1040],\"dataUnitName\":[1,\"data-unit-name\"],\"entityName\":[1,\"entity-name\"],\"pageSize\":[2,\"page-size\"],\"dataUnit\":[1040],\"beforeSave\":[16],\"afterSave\":[16],\"useCancelConfirm\":[4,\"use-cancel-confirm\"],\"ignoreSaveMessage\":[4,\"ignore-save-message\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"domainMessagesBuilder\":[1,\"domain-messages-builder\"],\"fieldsToLink\":[32],\"getDataUnit\":[64],\"getSelectedRecordsIDsInfo\":[64],\"getFieldsWithRmp\":[64],\"getFieldsWithRmPrecision\":[64],\"getRowMetadata\":[64]},[[0,\"snkMasterFormConfigChange\",\"onMasterFormConfigChange\"]]]]],[\"snk-filter-detail\",[[0,\"snk-filter-detail\",{\"config\":[1040],\"getMessage\":[16],\"showHardFixed\":[4,\"show-hard-fixed\"],\"show\":[64]}]]],[\"snk-exporter-email-sender\",[[0,\"snk-exporter-email-sender\",{\"getMessage\":[16],\"_config\":[32],\"_opened\":[32],\"_currentStep\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-data-exporter\",[[2,\"snk-data-exporter\",{\"provider\":[16],\"messagesBuilder\":[1040],\"_items\":[32],\"_showDropdown\":[32]}]]],[\"snk-filter-field-search_2\",[[2,\"snk-filter-field-search\",{\"searchable\":[4],\"fieldsDataSource\":[16],\"breadcrumbItems\":[32],\"linkItems\":[32],\"fieldItems\":[32],\"searchEmpty\":[32],\"groupEmpty\":[32],\"show\":[64],\"applyFilter\":[64]}],[0,\"snk-filter-param-config\",{\"messagesBuilder\":[1040],\"_opened\":[32],\"_configType\":[32],\"_expressionItem\":[32],\"_informedInstance\":[32],\"_canSave\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-expression-group_2\",[[2,\"snk-expression-group\",{\"parentTop\":[1026,\"parent-top\"],\"group\":[1040],\"messagesBuilder\":[1040],\"filterId\":[1025,\"filter-id\"],\"entityURI\":[1025,\"entity-u-r-i\"],\"isDefaultFilter\":[4,\"is-default-filter\"],\"_conditionOperator\":[32],\"_group\":[32],\"_selfTop\":[32],\"canAddExpression\":[32],\"_showDashes\":[32],\"getExpressionGroup\":[64]},[[8,\"ezExpressionLayoutChanged\",\"todoCompletedHandler\"]]],[2,\"snk-expression-item\",{\"expression\":[16],\"canRemove\":[516,\"can-remove\"],\"messagesBuilder\":[1040],\"isDefaultFilter\":[4,\"is-default-filter\"],\"entityURI\":[1025,\"entity-u-r-i\"],\"_showValueVariable\":[32],\"_fieldSelected\":[32],\"_optionNotNull\":[32]}]]],[\"snk-actions-button_8\",[[0,\"snk-simple-form-config\",{\"dataUnit\":[16],\"configName\":[1,\"config-name\"],\"avaliableFields\":[32],\"selectedFields\":[32],\"show\":[64]}],[2,\"snk-grid-config\",{\"selectedIndex\":[1026,\"selected-index\"],\"columns\":[1040],\"config\":[1040],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"_collapsibleBoxListOrder\":[32],\"_collapsibleBoxListSelect\":[32]}],[2,\"snk-layout-form-config\",{\"layoutType\":[32],\"save\":[64]}],[2,\"snk-actions-button\",{\"_items\":[32],\"_showDropdown\":[32]}],[1,\"snk-select-box\",{\"selectedOption\":[1,\"selected-option\"]}],[2,\"snk-view-representation\",{\"mode\":[8]}],[2,\"taskbar-actions-button\",{\"title\":[1],\"enabled\":[4],\"actions\":[16],\"_showDropdown\":[32],\"showActions\":[64],\"hideActions\":[64],\"isOpened\":[64]},[[8,\"keydown\",\"handleKeyDown\"],[8,\"ezOpenModal\",\"handleClose\"]]],[2,\"taskbar-split-button\",{\"iconName\":[1,\"icon-name\"],\"action\":[16],\"name\":[1],\"className\":[1,\"class-name\"],\"dataElementId\":[1,\"data-element-id\"],\"title\":[1],\"enabled\":[4],\"actions\":[16],\"_showDropdown\":[32]}]]],[\"snk-taskbar\",[[6,\"snk-taskbar\",{\"alignRigth\":[4,\"align-rigth\"],\"customSlotId\":[1,\"custom-slot-id\"],\"customContainerId\":[1,\"custom-container-id\"],\"overflowStrategy\":[1,\"overflow-strategy\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"buttons\":[1],\"customButtons\":[16],\"actionsList\":[16],\"actionsSettingsList\":[16],\"primaryButton\":[1,\"primary-button\"],\"disabledButtons\":[16],\"dataUnit\":[16],\"presentationMode\":[1537,\"presentation-mode\"],\"messagesBuilder\":[1040],\"_permissions\":[32],\"_overFlowedElements\":[32],\"_customElements\":[32],\"_customElementsId\":[32],\"_slotContainer\":[32],\"_hiddenActionsList\":[32],\"_lastWidth\":[32],\"_hasToUpdateOverFlow\":[32],\"_isWaitingForSave\":[32]},[[8,\"snkCustomSlotElementsLoaded\",\"handleCustomSlotElementsLoaded\"],[8,\"taskbarSaveLocker\",\"handleTaskbarSaveLocker\"],[8,\"taskbarSaveUnlocker\",\"handleTaskbarSaveUnlocker\"]]]]],[\"snk-simple-crud\",[[6,\"snk-simple-crud\",{\"enableLockManagerLoadingComp\":[4,\"enable-lock-manager-loading-comp\"],\"enableLockManagerTaskbarClick\":[4,\"enable-lock-manager-taskbar-click\"],\"dataState\":[16],\"dataUnit\":[16],\"entityName\":[1,\"entity-name\"],\"mode\":[2],\"gridConfig\":[1040],\"formConfig\":[1040],\"enableContinuousInsert\":[1028,\"enable-continuous-insert\"],\"multipleSelection\":[4,\"multiple-selection\"],\"useCancelConfirm\":[4,\"use-cancel-confirm\"],\"pageSize\":[2,\"page-size\"],\"resourceID\":[1,\"resource-i-d\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"taskbarManager\":[16],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"actionsList\":[16],\"configName\":[1025,\"config-name\"],\"showConfiguratorButtons\":[4,\"show-configurator-buttons\"],\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"ignoreReadOnlyFormFields\":[4,\"ignore-read-only-form-fields\"],\"autoFocus\":[4,\"auto-focus\"],\"domainMessagesBuilder\":[1,\"domain-messages-builder\"],\"multipleEditionEnabled\":[4,\"multiple-edition-enabled\"],\"layoutFormConfig\":[4,\"layout-form-config\"],\"autoLoad\":[4,\"auto-load\"],\"outlineMode\":[4,\"outline-mode\"],\"_container\":[32],\"_showPopUpGridConfig\":[32],\"_currentViewMode\":[32],\"_config\":[32],\"_fieldToGetFocus\":[32],\"_customContainerId\":[32],\"_formFields\":[32],\"_fieldsProps\":[32],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"setFieldProp\":[64],\"goToView\":[64],\"setMetadata\":[64],\"setRecords\":[64],\"getRecords\":[64],\"openConfigurator\":[64],\"closeConfigurator\":[64],\"updateConfig\":[64]},[[0,\"actionClick\",\"actionClickListener\"]]]]],[\"snk-simple-bar\",[[6,\"snk-simple-bar\",{\"label\":[1],\"breadcrumbItens\":[16],\"messagesBuilder\":[1040]}]]],[\"snk-filter-advanced-mode_2\",[[2,\"snk-filter-assistent-mode\",{\"filterAssistent\":[1040],\"messagesBuilder\":[1040],\"filterId\":[1025,\"filter-id\"],\"entityUri\":[1025,\"entity-uri\"],\"application\":[1040],\"isDefaultFilter\":[4,\"is-default-filter\"]}],[2,\"snk-filter-advanced-mode\",{\"filterAssistent\":[1040],\"application\":[1040]}]]],[\"snk-filter-bar_4\",[[0,\"snk-filter-modal\",{\"getMessage\":[16],\"configName\":[1025,\"config-name\"],\"filters\":[1040],\"applyFilters\":[16],\"closeModal\":[16],\"addPersonalizedFilter\":[16],\"editPersonalizedFilter\":[16],\"deletePersonalizedFilter\":[16],\"filtersToDelete\":[1040],\"filterDefaultToDelete\":[1040],\"disablePersonalizedFilter\":[4,\"disable-personalized-filter\"]},[[0,\"deleteFilter\",\"deletePersonalizedFilterListener\"]]],[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\"]]],[2,\"snk-filter-bar\",{\"enableLockManagerLoadingComp\":[4,\"enable-lock-manager-loading-comp\"],\"customFilterBarConfig\":[16],\"dataUnit\":[1040],\"title\":[1],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"mode\":[1],\"filterConfig\":[1040],\"messagesBuilder\":[1040],\"disablePersonalizedFilter\":[4,\"disable-personalized-filter\"],\"filterBarLegacyConfigName\":[1,\"filter-bar-legacy-config-name\"],\"autoLoad\":[4,\"auto-load\"],\"afterApplyConfig\":[16],\"allowDefault\":[32],\"scrollerLocked\":[32],\"showPersonalizedFilter\":[32],\"personalizedFilterId\":[32],\"reload\":[64],\"getFilterItem\":[64],\"updateFilterItem\":[64],\"addFilterItem\":[64],\"removeFilterItem\":[64],\"showFilterModal\":[64]},[[0,\"filterChange\",\"filterChangeListener\"]]],[0,\"snk-filter-item\",{\"config\":[1040],\"getMessage\":[16],\"showChips\":[4,\"show-chips\"],\"detailIsVisible\":[32],\"showUp\":[64],\"hideDetail\":[64]},[[2,\"click\",\"clickListener\"],[2,\"mousedown\",\"mouseDownListener\"],[0,\"filterChange\",\"filterChangeListener\"]]]]],[\"snk-grid\",[[6,\"snk-grid\",{\"columnFilterDataSource\":[1040],\"enableLockManagerLoadingComp\":[4,\"enable-lock-manager-loading-comp\"],\"enableLockManagerTaskbarClick\":[4,\"enable-lock-manager-taskbar-click\"],\"configName\":[1,\"config-name\"],\"filterBarTitle\":[1,\"filter-bar-title\"],\"resourceID\":[1,\"resource-i-d\"],\"selectionToastConfig\":[16],\"actionsList\":[16],\"isDetail\":[4,\"is-detail\"],\"taskbarManager\":[16],\"statusResolver\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"presentationMode\":[1,\"presentation-mode\"],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"recordsValidator\":[16],\"canEdit\":[4,\"can-edit\"],\"taskbarCustomContainerId\":[1,\"taskbar-custom-container-id\"],\"gridHeaderCustomSlotId\":[1,\"grid-header-custom-slot-id\"],\"topTaskbarCustomSlotId\":[1,\"top-taskbar-custom-slot-id\"],\"disablePersonalizedFilter\":[4,\"disable-personalized-filter\"],\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"filterBarLegacyConfigName\":[1,\"filter-bar-legacy-config-name\"],\"autoLoad\":[4,\"auto-load\"],\"autoFocus\":[4,\"auto-focus\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"outlineMode\":[4,\"outline-mode\"],\"suppressHorizontalScroll\":[4,\"suppress-horizontal-scroll\"],\"strategyExporter\":[1025,\"strategy-exporter\"],\"useSearchColumn\":[4,\"use-search-column\"],\"multipleEditionEnabled\":[4,\"multiple-edition-enabled\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"suppressCheckboxColumn\":[4,\"suppress-checkbox-column\"],\"compact\":[4],\"_dataUnit\":[32],\"_dataState\":[32],\"_gridConfig\":[32],\"_popUpGridConfig\":[32],\"_showSnkFilterBar\":[32],\"_enableContinuousInsert\":[32],\"reloadConfig\":[64],\"showConfig\":[64],\"hideConfig\":[64],\"setConfig\":[64],\"reloadFilterBar\":[64],\"getFilterBar\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"setFocus\":[64]},[[2,\"click\",\"handleClick\"]]]]],[\"snk-attach\",[[2,\"snk-attach\",{\"fetcherType\":[1,\"fetcher-type\"],\"fetcher\":[16],\"dataUnit\":[16],\"dataUnitBuilder\":[16],\"registerKey\":[1,\"register-key\"],\"entityName\":[1,\"entity-name\"],\"messagesBuilder\":[1040],\"_currentFetcher\":[32],\"_currentDataUnit\":[32],\"crudConfig\":[32]}]]],[\"snk-detail-view\",[[6,\"snk-detail-view\",{\"formConfigManager\":[1040],\"dataUnitName\":[1,\"data-unit-name\"],\"resourceID\":[1,\"resource-i-d\"],\"guideItemPath\":[16],\"entityName\":[1,\"entity-name\"],\"label\":[1],\"dataUnit\":[1040],\"selectedForm\":[1025,\"selected-form\"],\"dataState\":[1040],\"messagesBuilder\":[1040],\"branchGuide\":[1040],\"canEdit\":[4,\"can-edit\"],\"taskbarCustomContainerId\":[1,\"taskbar-custom-container-id\"],\"customEditors\":[16],\"customRenders\":[16],\"presentationMode\":[1,\"presentation-mode\"],\"_disabledButtons\":[32],\"_currentView\":[32],\"attachmentRegisterKey\":[32],\"_fieldToGetFocus\":[32],\"_hasToCreateFieldSearch\":[32],\"changeViewMode\":[64],\"configGrid\":[64],\"showUp\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64]},[[0,\"snkContentCardChanged\",\"onContentCardChanged\"]]]]],[\"snk-guides-viewer\",[[6,\"snk-guides-viewer\",{\"dataUnit\":[16],\"dataState\":[16],\"configName\":[1,\"config-name\"],\"entityPath\":[1,\"entity-path\"],\"actionsList\":[16],\"recordsValidator\":[16],\"masterFormConfig\":[1040],\"selectedGuide\":[16],\"taskbarManager\":[16],\"messagesBuilder\":[1040],\"canEdit\":[4,\"can-edit\"],\"presentationMode\":[1,\"presentation-mode\"],\"resourceID\":[1,\"resource-i-d\"],\"detailTaskbarCustomContainerId\":[1,\"detail-taskbar-custom-container-id\"],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"ignoreReadOnlyFormFields\":[4,\"ignore-read-only-form-fields\"],\"getCustomTitle\":[16],\"_hasToCreateFieldSearch\":[32],\"_breadcrumbItems\":[32],\"_guides\":[32],\"_formEditorConfigManager\":[32],\"_formEditorDataUnit\":[32],\"_fieldToGetFocus\":[32],\"_customEditors\":[32],\"_customRenders\":[32],\"_fieldsProps\":[32],\"_mainForm\":[32],\"showFormConfig\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"setFieldProp\":[64],\"setFocus\":[64]},[[2,\"actionClick\",\"onActionClick\"],[0,\"snkContentCardChanged\",\"onContentCardChanged\"]]]]],[\"snk-crud\",[[6,\"snk-crud\",{\"enableLockManagerLoadingComp\":[4,\"enable-lock-manager-loading-comp\"],\"enableLockManagerTaskbarClick\":[4,\"enable-lock-manager-taskbar-click\"],\"configName\":[1025,\"config-name\"],\"filterBarTitle\":[1,\"filter-bar-title\"],\"selectionToastConfig\":[16],\"showActionButtons\":[4,\"show-action-buttons\"],\"actionsList\":[16],\"taskbarManager\":[16],\"recordsValidator\":[16],\"statusResolver\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"presentationMode\":[1,\"presentation-mode\"],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"filterBarLegacyConfigName\":[1,\"filter-bar-legacy-config-name\"],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"disablePersonalizedFilter\":[4,\"disable-personalized-filter\"],\"autoLoad\":[4,\"auto-load\"],\"autoFocus\":[4,\"auto-focus\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"domainMessagesBuilder\":[1,\"domain-messages-builder\"],\"ignoreReadOnlyFormFields\":[4,\"ignore-read-only-form-fields\"],\"setCustomFormTitle\":[16],\"strategyExporter\":[1025,\"strategy-exporter\"],\"layoutFormConfig\":[4,\"layout-form-config\"],\"multipleEditionEnabled\":[4,\"multiple-edition-enabled\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"_dataUnit\":[32],\"_dataState\":[32],\"attachmentRegisterKey\":[32],\"_currentViewMode\":[32],\"_canEdit\":[32],\"_resourceID\":[32],\"customContainerId\":[32],\"goToView\":[64],\"openConfigurator\":[64],\"closeConfigurator\":[64],\"reloadFilterBar\":[64],\"getFilterBar\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"setFieldProp\":[64]}]]]]"), options);
|
14
|
+
return bootstrapLazy(JSON.parse("[[\"snk-actions-form\",[[2,\"snk-actions-form\",{\"action\":[16],\"applyParameters\":[16],\"dataUnit\":[32],\"openPopup\":[64]}]]],[\"snk-client-confirm\",[[2,\"snk-client-confirm\",{\"titleMessage\":[1,\"title-message\"],\"message\":[1],\"accept\":[16],\"cancel\":[16],\"openPopup\":[64]}]]],[\"snk-custom-slot-elements\",[[6,\"snk-custom-slot-elements\",{\"slotName\":[1,\"slot-name\"]}]]],[\"snk-entity-list\",[[2,\"snk-entity-list\",{\"config\":[1040],\"rightListSlotBuilder\":[1040],\"maxHeightList\":[1,\"max-height-list\"],\"_searchValue\":[32],\"_ezListSource\":[32],\"reloadList\":[64]}]]],[\"snk-filter-binary-select\",[[0,\"snk-filter-binary-select\",{\"value\":[1544],\"config\":[16],\"presentationMode\":[2,\"presentation-mode\"],\"resetValues\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"snk-filter-checkbox-list\",[[0,\"snk-filter-checkbox-list\",{\"config\":[1040],\"optionsList\":[32]}]]],[\"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],\"getMessage\":[16],\"value\":[2],\"presentationMode\":[2,\"presentation-mode\"],\"show\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"snk-filter-period\",[[0,\"snk-filter-period\",{\"config\":[16],\"getMessage\":[16],\"value\":[8],\"presentationMode\":[2,\"presentation-mode\"],\"show\":[64]},[[0,\"ezChange\",\"ezChangeListener\"]]]]],[\"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-personalized-filter-editor\",[[2,\"snk-personalized-filter-editor\",{\"messagesBuilder\":[1040],\"presentationMode\":[2,\"presentation-mode\"],\"config\":[16],\"value\":[1040],\"items\":[32],\"show\":[64]}]]],[\"snk-print-selector\",[[2,\"snk-print-selector\",{\"_printServerActive\":[32],\"_selectedPrinter\":[32],\"_remotePrintersDataSource\":[32],\"_localPrintersDataSource\":[32],\"_printJobData\":[32],\"openPrintSelector\":[64]}]]],[\"pesquisa-grid_2\",[[2,\"pesquisa-grid\",{\"metadata\":[16],\"dataSource\":[16],\"pkField\":[1,\"pk-field\"],\"descriptionField\":[1,\"description-field\"],\"entityName\":[1,\"entity-name\"],\"shouldLoadConfig\":[4,\"should-load-config\"],\"_gridConfig\":[32],\"_inMemoryLoader\":[32],\"_dataunit\":[32]}],[2,\"pesquisa-tree\",{\"treeLoader\":[16],\"argument\":[1025],\"allowsNonAnalytic\":[4,\"allows-non-analytic\"],\"shouldLoadTree\":[4,\"should-load-tree\"],\"items\":[32],\"applyFilter\":[64]}]]],[\"snk-pesquisa\",[[2,\"snk-pesquisa\",{\"searchLoader\":[16],\"treeLoader\":[16],\"selectItem\":[16],\"entityName\":[1,\"entity-name\"],\"argument\":[1025],\"isHierarchyEntity\":[4,\"is-hierarchy-entity\"],\"allowsNonAnalytic\":[4,\"allows-non-analytic\"],\"_itemList\":[32],\"_startLoading\":[32],\"_presentationMode\":[32],\"_currentView\":[32],\"_valideDataSource\":[32]}]]],[\"snk-application\",[[2,\"snk-application\",{\"enableLockManagerLoadingApp\":[4,\"enable-lock-manager-loading-app\"],\"messagesBuilder\":[1040],\"configName\":[1,\"config-name\"],\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"loadByPK\":[16],\"_applicationReady\":[32],\"_templateSkeleton\":[32],\"_activeScrimWindow\":[32],\"getKeyboardManager\":[64],\"getLayoutFormConfig\":[64],\"isUserSup\":[64],\"addPendingAction\":[64],\"callServiceBroker\":[64],\"initOnboarding\":[64],\"hasAccess\":[64],\"getAllAccess\":[64],\"getStringParam\":[64],\"getIntParam\":[64],\"getFloatParam\":[64],\"getBooleanParam\":[64],\"getDateParam\":[64],\"showPopUp\":[64],\"showModal\":[64],\"showAlerts\":[64],\"closeModal\":[64],\"closePopUp\":[64],\"temOpcional\":[64],\"getConfig\":[64],\"saveConfig\":[64],\"getAttributeFromHTMLWrapper\":[64],\"openApp\":[64],\"webConnection\":[64],\"createDataunit\":[64],\"updateDataunitCache\":[64],\"getDataUnit\":[64],\"addClientEvent\":[64],\"removeClientEvent\":[64],\"hasClientEvent\":[64],\"getResourceID\":[64],\"getUserID\":[64],\"alert\":[64],\"error\":[64],\"success\":[64],\"message\":[64],\"confirm\":[64],\"info\":[64],\"loadTotals\":[64],\"isLoadedByPk\":[64],\"preloadMangerRemoveRecord\":[64],\"executeSearch\":[64],\"executePreparedSearchPlus\":[64],\"executePreparedSearch\":[64],\"isDebugMode\":[64],\"getAppLabel\":[64],\"addSearchListener\":[64],\"importScript\":[64],\"getApplicationPath\":[64],\"executeSelectDistinct\":[64],\"getDataFetcher\":[64],\"whenApplicationReady\":[64],\"setSearchFilterContext\":[64],\"clearPopUpTitle\":[64],\"setPopUpTitle\":[64],\"showScrimApp\":[64],\"markToReload\":[64],\"addLoadingLock\":[64]}]]],[\"teste-pesquisa\",[[1,\"teste-pesquisa\"]]],[\"snk-default-filter\",[[2,\"snk-default-filter\",{\"getMessage\":[16],\"hasDefaultFilter\":[4,\"has-default-filter\"],\"_opened\":[32]}]]],[\"snk-filter-modal-item\",[[0,\"snk-filter-modal-item\",{\"filterItem\":[1040],\"configName\":[1025,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"]}]]],[\"field-config_2\",[[2,\"field-item\",{\"fieldConfig\":[8,\"field-config\"],\"onLayoutConfig\":[4,\"on-layout-config\"],\"dataUnit\":[16],\"messagesBuilder\":[1040],\"fieldDescriptor\":[32]}],[2,\"field-config\",{\"dataUnit\":[16],\"fieldConfig\":[1544,\"field-config\"],\"fieldDescriptor\":[16],\"messagesBuilder\":[1040],\"fieldLabel\":[32],\"fieldLabelErrorMessage\":[32],\"fieldDefaultValue\":[32],\"fieldCleanOnCopy\":[32],\"fieldRequired\":[32],\"fieldReadOnly\":[32],\"_defaultType\":[32],\"show\":[64]}]]],[\"fields-layout\",[[2,\"fields-layout\",{\"selectedGuide\":[16],\"groupsList\":[16],\"guideNames\":[16],\"dataUnit\":[16],\"messagesBuilder\":[1040],\"isEditGuideNameActive\":[32],\"addFieldToLayout\":[64]},[[16,\"fieldConfigChanged\",\"handleFieldConfigChanged\"]]]]],[\"snk-form_2\",[[2,\"snk-form\",{\"configName\":[1,\"config-name\"],\"recordsValidator\":[16],\"messagesBuilder\":[1040],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"_dataUnit\":[32],\"_dataState\":[32],\"_showFormConfig\":[32],\"_configManager\":[32],\"showConfig\":[64],\"hideConfig\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64]}],[2,\"snk-form-config\",{\"dataUnit\":[16],\"configManager\":[16],\"ignoreReadOnlyFormFields\":[4,\"ignore-read-only-form-fields\"],\"messagesBuilder\":[1040],\"availableFields\":[32],\"guidesList\":[32],\"groupsList\":[32],\"selectedGuide\":[32],\"_formConfig\":[32],\"configOptions\":[32],\"originalConfigSelected\":[32],\"configSelected\":[32],\"hasChanges\":[32],\"optionConfigChanged\":[32]},[[16,\"fieldConfigChanged\",\"handleFieldConfigChanged\"],[16,\"formConfigOptionSelected\",\"handleFormConfigOptionSelected\"],[16,\"addFieldToGuide\",\"handleAddFieldToGuide\"],[16,\"setFieldAsAvailable\",\"handleSetFieldAsAvailable\"],[16,\"removeFieldFromAvailable\",\"handleRemoveFieldFromAvailable\"]]]]],[\"snk-form-summary\",[[2,\"snk-form-summary\",{\"fixed\":[1540],\"contracted\":[1540],\"summary\":[16]}]]],[\"snk-form-view\",[[6,\"snk-form-view\",{\"levelPath\":[1,\"level-path\"],\"fieldSearch\":[16],\"label\":[1],\"name\":[1],\"fields\":[16],\"formMetadata\":[8,\"form-metadata\"],\"dataUnit\":[16],\"contracted\":[4],\"fixed\":[1540],\"summaryFields\":[16],\"canExpand\":[4,\"can-expand\"],\"canFix\":[4,\"can-fix\"],\"recordsValidator\":[16],\"fieldToFocus\":[1,\"field-to-focus\"],\"customEditors\":[16],\"fieldsProps\":[16],\"showUp\":[64],\"addCustomEditor\":[64],\"setFieldProp\":[64],\"showSearchField\":[64]}]]],[\"fields-selector\",[[2,\"fields-selector\",{\"availableFields\":[16],\"dataUnit\":[16],\"filterTerm\":[32]}]]],[\"snk-personalized-filter\",[[2,\"snk-personalized-filter\",{\"messagesBuilder\":[1040],\"entityUri\":[1025,\"entity-uri\"],\"filterId\":[1025,\"filter-id\"],\"configName\":[1025,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"isDefaultFilter\":[4,\"is-default-filter\"],\"_filterAssistentMode\":[32],\"_filterAssistent\":[32],\"createPersonalizedFilter\":[64]}]]],[\"configs-button\",[[2,\"configs-button\",{\"configOptions\":[16],\"selectedConfig\":[16],\"hasChanges\":[4,\"has-changes\"],\"messagesBuilder\":[1040]}]]],[\"config-header\",[[2,\"config-header\",{\"configOptions\":[16],\"selectedConfig\":[16],\"messagesBuilder\":[1040],\"hasChanges\":[4,\"has-changes\"],\"optionConfigChanged\":[4,\"option-config-changed\"],\"isEditingGuide\":[32],\"isEditingGroup\":[32]},[[16,\"isEditingGuideName\",\"handleIsEditingGuideName\"],[16,\"isEditingGroupName\",\"handleIsEditingGroupName\"]]]]],[\"guides-configurator\",[[2,\"guides-configurator\",{\"guidesList\":[16],\"selectedGuide\":[16],\"messagesBuilder\":[1040],\"mainGuide\":[32],\"filterTerm\":[32],\"visibleGuides\":[32],\"hiddenGuides\":[32]}]]],[\"snk-configurator\",[[2,\"snk-configurator\",{\"showActionButtons\":[4,\"show-action-buttons\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"viewMode\":[2,\"view-mode\"],\"customContainerId\":[1,\"custom-container-id\"],\"layoutFormConfig\":[4,\"layout-form-config\"],\"messagesBuilder\":[1040],\"_opened\":[32],\"_permissions\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-data-unit\",[[2,\"snk-data-unit\",{\"dataState\":[1040],\"messagesBuilder\":[1040],\"dataUnitName\":[1,\"data-unit-name\"],\"entityName\":[1,\"entity-name\"],\"pageSize\":[2,\"page-size\"],\"dataUnit\":[1040],\"beforeSave\":[16],\"afterSave\":[16],\"useCancelConfirm\":[4,\"use-cancel-confirm\"],\"ignoreSaveMessage\":[4,\"ignore-save-message\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"domainMessagesBuilder\":[1,\"domain-messages-builder\"],\"fieldsToLink\":[32],\"getDataUnit\":[64],\"getSelectedRecordsIDsInfo\":[64],\"getFieldsWithRmp\":[64],\"getFieldsWithRmPrecision\":[64],\"getRowMetadata\":[64]},[[0,\"snkMasterFormConfigChange\",\"onMasterFormConfigChange\"]]]]],[\"snk-filter-detail\",[[0,\"snk-filter-detail\",{\"config\":[1040],\"getMessage\":[16],\"showHardFixed\":[4,\"show-hard-fixed\"],\"show\":[64]}]]],[\"snk-exporter-email-sender\",[[0,\"snk-exporter-email-sender\",{\"getMessage\":[16],\"_config\":[32],\"_opened\":[32],\"_currentStep\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-data-exporter\",[[2,\"snk-data-exporter\",{\"provider\":[16],\"messagesBuilder\":[1040],\"_items\":[32],\"_showDropdown\":[32]}]]],[\"snk-filter-field-search_2\",[[2,\"snk-filter-field-search\",{\"searchable\":[4],\"fieldsDataSource\":[16],\"breadcrumbItems\":[32],\"linkItems\":[32],\"fieldItems\":[32],\"searchEmpty\":[32],\"groupEmpty\":[32],\"show\":[64],\"applyFilter\":[64]}],[0,\"snk-filter-param-config\",{\"messagesBuilder\":[1040],\"_opened\":[32],\"_configType\":[32],\"_expressionItem\":[32],\"_informedInstance\":[32],\"_canSave\":[32],\"open\":[64],\"close\":[64]}]]],[\"snk-expression-group_2\",[[2,\"snk-expression-group\",{\"parentTop\":[1026,\"parent-top\"],\"group\":[1040],\"messagesBuilder\":[1040],\"filterId\":[1025,\"filter-id\"],\"entityURI\":[1025,\"entity-u-r-i\"],\"isDefaultFilter\":[4,\"is-default-filter\"],\"_conditionOperator\":[32],\"_group\":[32],\"_selfTop\":[32],\"canAddExpression\":[32],\"_showDashes\":[32],\"getExpressionGroup\":[64]},[[8,\"ezExpressionLayoutChanged\",\"todoCompletedHandler\"]]],[2,\"snk-expression-item\",{\"expression\":[16],\"canRemove\":[516,\"can-remove\"],\"messagesBuilder\":[1040],\"isDefaultFilter\":[4,\"is-default-filter\"],\"entityURI\":[1025,\"entity-u-r-i\"],\"_showValueVariable\":[32],\"_fieldSelected\":[32],\"_optionNotNull\":[32]}]]],[\"snk-actions-button_8\",[[0,\"snk-simple-form-config\",{\"dataUnit\":[16],\"configName\":[1,\"config-name\"],\"avaliableFields\":[32],\"selectedFields\":[32],\"show\":[64]}],[2,\"snk-grid-config\",{\"selectedIndex\":[1026,\"selected-index\"],\"columns\":[1040],\"config\":[1040],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"_collapsibleBoxListOrder\":[32],\"_collapsibleBoxListSelect\":[32]}],[2,\"snk-layout-form-config\",{\"layoutType\":[32],\"save\":[64]}],[2,\"snk-actions-button\",{\"_items\":[32],\"_showDropdown\":[32]}],[1,\"snk-select-box\",{\"selectedOption\":[1,\"selected-option\"]}],[2,\"snk-view-representation\",{\"mode\":[8]}],[2,\"taskbar-actions-button\",{\"title\":[1],\"enabled\":[4],\"actions\":[16],\"_showDropdown\":[32],\"showActions\":[64],\"hideActions\":[64],\"isOpened\":[64]},[[8,\"keydown\",\"handleKeyDown\"],[8,\"ezOpenModal\",\"handleClose\"]]],[2,\"taskbar-split-button\",{\"iconName\":[1,\"icon-name\"],\"action\":[16],\"name\":[1],\"className\":[1,\"class-name\"],\"dataElementId\":[1,\"data-element-id\"],\"title\":[1],\"enabled\":[4],\"actions\":[16],\"_showDropdown\":[32]}]]],[\"snk-taskbar\",[[6,\"snk-taskbar\",{\"alignRigth\":[4,\"align-rigth\"],\"customSlotId\":[1,\"custom-slot-id\"],\"customContainerId\":[1,\"custom-container-id\"],\"overflowStrategy\":[1,\"overflow-strategy\"],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"buttons\":[1],\"customButtons\":[16],\"actionsList\":[16],\"actionsSettingsList\":[16],\"primaryButton\":[1,\"primary-button\"],\"disabledButtons\":[16],\"dataUnit\":[16],\"presentationMode\":[1537,\"presentation-mode\"],\"messagesBuilder\":[1040],\"_permissions\":[32],\"_overFlowedElements\":[32],\"_customElements\":[32],\"_customElementsId\":[32],\"_slotContainer\":[32],\"_hiddenActionsList\":[32],\"_lastWidth\":[32],\"_hasToUpdateOverFlow\":[32],\"_isWaitingForSave\":[32]},[[8,\"snkCustomSlotElementsLoaded\",\"handleCustomSlotElementsLoaded\"],[8,\"taskbarSaveLocker\",\"handleTaskbarSaveLocker\"],[8,\"taskbarSaveUnlocker\",\"handleTaskbarSaveUnlocker\"]]]]],[\"snk-simple-crud\",[[6,\"snk-simple-crud\",{\"enableLockManagerLoadingComp\":[4,\"enable-lock-manager-loading-comp\"],\"enableLockManagerTaskbarClick\":[4,\"enable-lock-manager-taskbar-click\"],\"dataState\":[16],\"dataUnit\":[16],\"entityName\":[1,\"entity-name\"],\"mode\":[2],\"gridConfig\":[1040],\"formConfig\":[1040],\"enableContinuousInsert\":[1028,\"enable-continuous-insert\"],\"multipleSelection\":[4,\"multiple-selection\"],\"useCancelConfirm\":[4,\"use-cancel-confirm\"],\"pageSize\":[2,\"page-size\"],\"resourceID\":[1,\"resource-i-d\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"taskbarManager\":[16],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"actionsList\":[16],\"configName\":[1025,\"config-name\"],\"showConfiguratorButtons\":[4,\"show-configurator-buttons\"],\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"ignoreReadOnlyFormFields\":[4,\"ignore-read-only-form-fields\"],\"autoFocus\":[4,\"auto-focus\"],\"domainMessagesBuilder\":[1,\"domain-messages-builder\"],\"multipleEditionEnabled\":[4,\"multiple-edition-enabled\"],\"layoutFormConfig\":[4,\"layout-form-config\"],\"autoLoad\":[4,\"auto-load\"],\"outlineMode\":[4,\"outline-mode\"],\"_container\":[32],\"_showPopUpGridConfig\":[32],\"_currentViewMode\":[32],\"_config\":[32],\"_fieldToGetFocus\":[32],\"_customContainerId\":[32],\"_formFields\":[32],\"_fieldsProps\":[32],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"setFieldProp\":[64],\"goToView\":[64],\"setMetadata\":[64],\"setRecords\":[64],\"getRecords\":[64],\"openConfigurator\":[64],\"closeConfigurator\":[64],\"updateConfig\":[64]},[[0,\"actionClick\",\"actionClickListener\"]]]]],[\"snk-simple-bar\",[[6,\"snk-simple-bar\",{\"label\":[1],\"breadcrumbItens\":[16],\"messagesBuilder\":[1040]}]]],[\"snk-filter-advanced-mode_2\",[[2,\"snk-filter-assistent-mode\",{\"filterAssistent\":[1040],\"messagesBuilder\":[1040],\"filterId\":[1025,\"filter-id\"],\"entityUri\":[1025,\"entity-uri\"],\"application\":[1040],\"isDefaultFilter\":[4,\"is-default-filter\"]}],[2,\"snk-filter-advanced-mode\",{\"filterAssistent\":[1040],\"application\":[1040]}]]],[\"snk-filter-bar_4\",[[0,\"snk-filter-modal\",{\"getMessage\":[16],\"configName\":[1025,\"config-name\"],\"filters\":[1040],\"applyFilters\":[16],\"closeModal\":[16],\"addPersonalizedFilter\":[16],\"editPersonalizedFilter\":[16],\"deletePersonalizedFilter\":[16],\"filtersToDelete\":[1040],\"filterDefaultToDelete\":[1040],\"disablePersonalizedFilter\":[4,\"disable-personalized-filter\"]},[[0,\"deleteFilter\",\"deletePersonalizedFilterListener\"]]],[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\"]]],[2,\"snk-filter-bar\",{\"enableLockManagerLoadingComp\":[4,\"enable-lock-manager-loading-comp\"],\"customFilterBarConfig\":[16],\"dataUnit\":[1040],\"title\":[1],\"configName\":[1,\"config-name\"],\"resourceID\":[1,\"resource-i-d\"],\"mode\":[1],\"filterConfig\":[1040],\"messagesBuilder\":[1040],\"disablePersonalizedFilter\":[4,\"disable-personalized-filter\"],\"filterBarLegacyConfigName\":[1,\"filter-bar-legacy-config-name\"],\"autoLoad\":[4,\"auto-load\"],\"afterApplyConfig\":[16],\"allowDefault\":[32],\"scrollerLocked\":[32],\"showPersonalizedFilter\":[32],\"personalizedFilterId\":[32],\"reload\":[64],\"getFilterItem\":[64],\"updateFilterItem\":[64],\"addFilterItem\":[64],\"removeFilterItem\":[64],\"showFilterModal\":[64]},[[0,\"filterChange\",\"filterChangeListener\"]]],[0,\"snk-filter-item\",{\"config\":[1040],\"getMessage\":[16],\"showChips\":[4,\"show-chips\"],\"detailIsVisible\":[32],\"showUp\":[64],\"hideDetail\":[64]},[[2,\"click\",\"clickListener\"],[2,\"mousedown\",\"mouseDownListener\"],[0,\"filterChange\",\"filterChangeListener\"]]]]],[\"snk-grid\",[[6,\"snk-grid\",{\"columnFilterDataSource\":[1040],\"enableLockManagerLoadingComp\":[4,\"enable-lock-manager-loading-comp\"],\"enableLockManagerTaskbarClick\":[4,\"enable-lock-manager-taskbar-click\"],\"configName\":[1,\"config-name\"],\"filterBarTitle\":[1,\"filter-bar-title\"],\"resourceID\":[1,\"resource-i-d\"],\"selectionToastConfig\":[16],\"actionsList\":[16],\"isDetail\":[4,\"is-detail\"],\"taskbarManager\":[16],\"statusResolver\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"presentationMode\":[1,\"presentation-mode\"],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"recordsValidator\":[16],\"canEdit\":[4,\"can-edit\"],\"taskbarCustomContainerId\":[1,\"taskbar-custom-container-id\"],\"gridHeaderCustomSlotId\":[1,\"grid-header-custom-slot-id\"],\"topTaskbarCustomSlotId\":[1,\"top-taskbar-custom-slot-id\"],\"disablePersonalizedFilter\":[4,\"disable-personalized-filter\"],\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"filterBarLegacyConfigName\":[1,\"filter-bar-legacy-config-name\"],\"autoLoad\":[4,\"auto-load\"],\"autoFocus\":[4,\"auto-focus\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"outlineMode\":[4,\"outline-mode\"],\"suppressHorizontalScroll\":[4,\"suppress-horizontal-scroll\"],\"strategyExporter\":[1025,\"strategy-exporter\"],\"useSearchColumn\":[4,\"use-search-column\"],\"multipleEditionEnabled\":[4,\"multiple-edition-enabled\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"suppressCheckboxColumn\":[4,\"suppress-checkbox-column\"],\"compact\":[4],\"_dataUnit\":[32],\"_dataState\":[32],\"_gridConfig\":[32],\"_popUpGridConfig\":[32],\"_showSnkFilterBar\":[32],\"_enableContinuousInsert\":[32],\"reloadConfig\":[64],\"showConfig\":[64],\"hideConfig\":[64],\"setConfig\":[64],\"reloadFilterBar\":[64],\"getFilterBar\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"setFocus\":[64]},[[2,\"click\",\"handleClick\"]]]]],[\"snk-attach\",[[2,\"snk-attach\",{\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"fetcherType\":[1,\"fetcher-type\"],\"fetcher\":[16],\"dataUnit\":[16],\"dataUnitBuilder\":[16],\"registerKey\":[1,\"register-key\"],\"entityName\":[1,\"entity-name\"],\"messagesBuilder\":[1040],\"_currentFetcher\":[32],\"_currentDataUnit\":[32],\"crudConfig\":[32]}]]],[\"snk-detail-view\",[[6,\"snk-detail-view\",{\"formConfigManager\":[1040],\"dataUnitName\":[1,\"data-unit-name\"],\"resourceID\":[1,\"resource-i-d\"],\"guideItemPath\":[16],\"entityName\":[1,\"entity-name\"],\"label\":[1],\"dataUnit\":[1040],\"selectedForm\":[1025,\"selected-form\"],\"dataState\":[1040],\"messagesBuilder\":[1040],\"branchGuide\":[1040],\"canEdit\":[4,\"can-edit\"],\"taskbarCustomContainerId\":[1,\"taskbar-custom-container-id\"],\"customEditors\":[16],\"customRenders\":[16],\"presentationMode\":[1,\"presentation-mode\"],\"_disabledButtons\":[32],\"_currentView\":[32],\"attachmentRegisterKey\":[32],\"_fieldToGetFocus\":[32],\"_hasToCreateFieldSearch\":[32],\"changeViewMode\":[64],\"configGrid\":[64],\"showUp\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64]},[[0,\"snkContentCardChanged\",\"onContentCardChanged\"]]]]],[\"snk-guides-viewer\",[[6,\"snk-guides-viewer\",{\"dataUnit\":[16],\"dataState\":[16],\"configName\":[1,\"config-name\"],\"entityPath\":[1,\"entity-path\"],\"actionsList\":[16],\"recordsValidator\":[16],\"masterFormConfig\":[1040],\"selectedGuide\":[16],\"taskbarManager\":[16],\"messagesBuilder\":[1040],\"canEdit\":[4,\"can-edit\"],\"presentationMode\":[1,\"presentation-mode\"],\"resourceID\":[1,\"resource-i-d\"],\"detailTaskbarCustomContainerId\":[1,\"detail-taskbar-custom-container-id\"],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"ignoreReadOnlyFormFields\":[4,\"ignore-read-only-form-fields\"],\"getCustomTitle\":[16],\"_hasToCreateFieldSearch\":[32],\"_breadcrumbItems\":[32],\"_guides\":[32],\"_formEditorConfigManager\":[32],\"_formEditorDataUnit\":[32],\"_fieldToGetFocus\":[32],\"_customEditors\":[32],\"_customRenders\":[32],\"_fieldsProps\":[32],\"_mainForm\":[32],\"showFormConfig\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"setFieldProp\":[64],\"setFocus\":[64]},[[2,\"actionClick\",\"onActionClick\"],[0,\"snkContentCardChanged\",\"onContentCardChanged\"]]]]],[\"snk-crud\",[[6,\"snk-crud\",{\"enableLockManagerLoadingComp\":[4,\"enable-lock-manager-loading-comp\"],\"enableLockManagerTaskbarClick\":[4,\"enable-lock-manager-taskbar-click\"],\"configName\":[1025,\"config-name\"],\"filterBarTitle\":[1,\"filter-bar-title\"],\"selectionToastConfig\":[16],\"showActionButtons\":[4,\"show-action-buttons\"],\"actionsList\":[16],\"taskbarManager\":[16],\"recordsValidator\":[16],\"statusResolver\":[16],\"multipleSelection\":[4,\"multiple-selection\"],\"presentationMode\":[1,\"presentation-mode\"],\"messagesBuilder\":[1040],\"useEnterLikeTab\":[4,\"use-enter-like-tab\"],\"gridLegacyConfigName\":[1,\"grid-legacy-config-name\"],\"filterBarLegacyConfigName\":[1,\"filter-bar-legacy-config-name\"],\"formLegacyConfigName\":[1,\"form-legacy-config-name\"],\"disablePersonalizedFilter\":[4,\"disable-personalized-filter\"],\"autoLoad\":[4,\"auto-load\"],\"autoFocus\":[4,\"auto-focus\"],\"enableGridInsert\":[4,\"enable-grid-insert\"],\"domainMessagesBuilder\":[1,\"domain-messages-builder\"],\"ignoreReadOnlyFormFields\":[4,\"ignore-read-only-form-fields\"],\"setCustomFormTitle\":[16],\"strategyExporter\":[1025,\"strategy-exporter\"],\"layoutFormConfig\":[4,\"layout-form-config\"],\"multipleEditionEnabled\":[4,\"multiple-edition-enabled\"],\"paginationCounterMode\":[1,\"pagination-counter-mode\"],\"_dataUnit\":[32],\"_dataState\":[32],\"attachmentRegisterKey\":[32],\"_currentViewMode\":[32],\"_canEdit\":[32],\"_resourceID\":[32],\"customContainerId\":[32],\"goToView\":[64],\"openConfigurator\":[64],\"closeConfigurator\":[64],\"reloadFilterBar\":[64],\"getFilterBar\":[64],\"addCustomEditor\":[64],\"addGridCustomRender\":[64],\"addCustomValueFormatter\":[64],\"removeCustomValueFormatter\":[64],\"setFieldProp\":[64]}]]]]"), options);
|
15
15
|
});
|
16
16
|
};
|
17
17
|
|