@sankhyalabs/sankhyablocks 3.4.0 → 3.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{ConfigStorage-8b5e3261.js → ConfigStorage-cfac5a0b.js} +184 -36
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/sankhyablocks.cjs.js +1 -1
- package/dist/cjs/snk-application.cjs.entry.js +1 -111
- package/dist/cjs/snk-configurator_3.cjs.entry.js +9 -8
- package/dist/cjs/snk-data-exporter_8.cjs.entry.js +23 -33
- package/dist/cjs/snk-form-config.cjs.entry.js +3 -5
- package/dist/cjs/snk-form.cjs.entry.js +10 -12
- package/dist/collection/components/snk-application/snk-application.js +2 -129
- package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +15 -12
- package/dist/collection/components/snk-form/snk-form.js +9 -11
- package/dist/collection/components/snk-form/subcomponents/snk-form-config/snk-form-config.js +2 -4
- package/dist/collection/components/snk-grid/snk-grid.js +8 -7
- package/dist/collection/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.js +23 -45
- package/dist/collection/lib/configs/ConfigStorage.js +22 -12
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +49 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.js +8 -2
- package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +23 -18
- package/dist/collection/lib/http/data-fetcher/fetchers/grid-config-fetcher.js +11 -5
- package/dist/collection/lib/http/data-fetcher/interfaces/IClientEventResponse.js +1 -0
- package/dist/collection/lib/http/data-fetcher/recaller/DataFetcherRecaller.js +14 -0
- package/dist/components/ConfigStorage.js +123 -35
- package/dist/components/DataFetcher.js +62 -2
- package/dist/components/index.d.ts +1 -1
- package/dist/components/snk-application2.js +0 -113
- package/dist/components/snk-filter-bar2.js +15 -12
- package/dist/components/snk-form-config2.js +2 -4
- package/dist/components/snk-form2.js +9 -11
- package/dist/components/snk-grid-config.js +2 -2
- package/dist/components/snk-grid-config2.js +9 -21
- package/dist/components/snk-grid2.js +8 -7
- package/dist/esm/{ConfigStorage-4654f57b.js → ConfigStorage-77bd9902.js} +185 -37
- package/dist/esm/loader.js +1 -1
- package/dist/esm/sankhyablocks.js +1 -1
- package/dist/esm/snk-application.entry.js +1 -111
- package/dist/esm/snk-configurator_3.entry.js +9 -8
- package/dist/esm/snk-data-exporter_8.entry.js +23 -33
- package/dist/esm/snk-form-config.entry.js +3 -5
- package/dist/esm/snk-form.entry.js +10 -12
- package/dist/sankhyablocks/p-032e1308.entry.js +1 -0
- package/dist/sankhyablocks/{p-e906ba66.entry.js → p-32f9dc8a.entry.js} +5 -5
- package/dist/sankhyablocks/p-43c135c4.entry.js +1 -0
- package/dist/sankhyablocks/{p-f559c71a.entry.js → p-705b7671.entry.js} +1 -1
- package/dist/sankhyablocks/{p-93d8ea09.js → p-bbd0cf7a.js} +6 -6
- package/dist/sankhyablocks/p-db6d6b59.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-application/snk-application.d.ts +1 -16
- package/dist/types/components/snk-filter-bar/snk-filter-bar.d.ts +1 -1
- package/dist/types/components/snk-grid/snk-grid.d.ts +2 -2
- package/dist/types/components/snk-grid/subcomponents/snk-grid-config/snk-grid-config.d.ts +5 -5
- package/dist/types/components.d.ts +8 -16
- package/dist/types/lib/configs/ConfigStorage.d.ts +7 -2
- package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +7 -1
- package/dist/types/lib/http/data-fetcher/fetchers/filter-bar-config-fetcher.d.ts +3 -2
- package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +2 -1
- package/dist/types/lib/http/data-fetcher/fetchers/grid-config-fetcher.d.ts +3 -2
- package/dist/types/lib/http/data-fetcher/fetchers/resource-fetcher.d.ts +5 -1
- package/dist/types/lib/http/data-fetcher/interfaces/IClientEventResponse.d.ts +4 -0
- package/dist/types/lib/http/data-fetcher/recaller/DataFetcherRecaller.d.ts +7 -0
- package/package.json +1 -1
- package/dist/sankhyablocks/p-125c2d01.entry.js +0 -1
- package/dist/sankhyablocks/p-a2ea13ed.entry.js +0 -1
- package/dist/sankhyablocks/p-b326cf51.entry.js +0 -1
|
@@ -8,7 +8,7 @@ import { d as defineCustomElement$1 } from './snk-select-box2.js';
|
|
|
8
8
|
|
|
9
9
|
const snkGridConfigCss = ".sc-snk-grid-config-h{--snk-grid-config__footer--padding-top:var(--space--medium, 12px);--snk-grid-config__main--padding-right:var(--space--medium, 12px);--snk-grid-config__tabselector-container--padding:var(--space--medium, 12px);--snk-grid-config__button-close--padding-left:var(--space--medium, 12px);--snk-grid-config__title--color:var(--title--primary, #2B3A54);--snk-grid-config__title--font-family:var(--font-pattern, \"Roboto\");--snk-grid-config__title--font-size:var(--title--large, 20px);--snk-grid-config__title--font-weight:var(--text-weight--extra-large, 700);--snk-grid-config__subtitle--font-family:var(--font-pattern, \"Roboto\");--snk-grid-config__subtitle--font-size:var(--text--medium, 14px);--snk-grid-config__group--font-family:var(--font-pattern, \"Roboto\");--snk-grid-config__group--font-size:var(--text--medium, 14px);--snk-grid-config__group--font-weight:var(--text-weight--large, 600);--snk-grid-config__group--padding-bottom:var(--space-small, 6px);--snk-grid-config__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-grid-config__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-grid-config__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-grid-config__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-grid-config__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-grid-config__scrollbar--width:var(--space--medium, 12px);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}@media screen and (min-width: 480px){.sc-snk-grid-config-h{width:359px;max-width:359px}}.padding-right--medium.sc-snk-grid-config{padding-right:var(--space--medium)}ez-list.sc-snk-grid-config{height:100%}.height-calc.sc-snk-grid-config{max-height:calc(100% - 24px)}.grid-config__footer.sc-snk-grid-config{display:flex;justify-content:flex-end;width:100%;padding-top:var(--snk-grid-config__footer--padding-top)}.hidden.sc-snk-grid-config{display:none}.tabselector-container.sc-snk-grid-config{padding:var(--snk-grid-config__tabselector-container--padding) 0}.button-close.sc-snk-grid-config{padding-left:var(--snk-grid-config__button-close--padding-left)}.title-container.sc-snk-grid-config{display:flex;justify-content:space-between;align-items:center;width:100%}.title.sc-snk-grid-config{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-grid-config__title--color);font-size:var(--snk-grid-config__title--font-size);font-family:var(--snk-grid-config__title--font-family);font-weight:var(--snk-grid-config__title--font-weight)}.subtitle.sc-snk-grid-config{color:var(--text--primary);font-size:var(--snk-grid-config__subtitle--font-size);font-family:var(--snk-grid-config__subtitle--font-family)}.grid-config__main.sc-snk-grid-config{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--snk-grid-config__scrollbar--color-clicked) var(--snk-grid-config__scrollbar--color-background);padding-right:var(--snk-grid-config__main--padding-right)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar{width:var(--snk-grid-config__scrollbar--width);max-width:var(--snk-grid-config__scrollbar--width);min-width:var(--snk-grid-config__scrollbar--width);background-color:var(--snk-grid-config__scrollbar--color-background)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-track{background-color:var(--snk-grid-config__scrollbar--color-background);border-radius:var(--snk-grid-config__scrollbar--border-radius)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb{background-color:var(--snk-grid-config__scrollbar--color-default);border-radius:var(--snk-grid-config__scrollbar--border-radius)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:vertical:hover,.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-grid-config__scrollbar--color-hover)}.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:vertical:active,.grid-config__main.sc-snk-grid-config::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-grid-config__scrollbar--color-clicked)}.group-name.sc-snk-grid-config{font-family:var(--snk-grid-config__group--font-family);font-size:var(--snk-grid-config__group--font-size);font-weight:var(--snk-grid-config__group--font-weight);padding-bottom:var(--snk-grid-config__group--padding-bottom)}";
|
|
10
10
|
|
|
11
|
-
const
|
|
11
|
+
const SnkGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
12
12
|
constructor() {
|
|
13
13
|
super();
|
|
14
14
|
this.__registerHost();
|
|
@@ -24,24 +24,9 @@ const EzGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
24
24
|
this.application = undefined;
|
|
25
25
|
this.columns = undefined;
|
|
26
26
|
this.config = undefined;
|
|
27
|
+
this.configName = undefined;
|
|
27
28
|
}
|
|
28
29
|
/* Creation Methods */
|
|
29
|
-
/**
|
|
30
|
-
* Salva as configurações da grade.
|
|
31
|
-
*/
|
|
32
|
-
async saveConfig(config) {
|
|
33
|
-
var _a;
|
|
34
|
-
if (config == undefined || ((_a = this.application) === null || _a === void 0 ? void 0 : _a.configName) == undefined) {
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
ConfigStorage.saveGridConfig(config, this.application.configName)
|
|
38
|
-
.then((response) => {
|
|
39
|
-
if ((response === null || response === void 0 ? void 0 : response.resource) != undefined) {
|
|
40
|
-
this.configChange.emit(config);
|
|
41
|
-
this._orderList.clearHistory();
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
30
|
/**
|
|
46
31
|
* Conforme mecanismo de mensagens, é possível customizar as mensagens dos blocos de construção
|
|
47
32
|
* através de um pequeno modulo na estrutura da aplicação:
|
|
@@ -263,8 +248,11 @@ const EzGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
263
248
|
}
|
|
264
249
|
}
|
|
265
250
|
_newConfig.columns = _newColumnConfigList;
|
|
266
|
-
|
|
251
|
+
ConfigStorage.saveGridConfig(_newConfig, this.configName)
|
|
252
|
+
.then((response) => {
|
|
267
253
|
ApplicationUtils.info(this.getMessage("snkGridConfig.info.successfullyConfigSaved"), { iconName: "check" });
|
|
254
|
+
this.configChange.emit(response);
|
|
255
|
+
this._orderList.clearHistory();
|
|
268
256
|
});
|
|
269
257
|
function adjustPriorityOrder(column, _newColumnConfig) {
|
|
270
258
|
if (orderArray) {
|
|
@@ -485,7 +473,7 @@ const EzGridConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
|
|
|
485
473
|
"application": [16],
|
|
486
474
|
"columns": [1040],
|
|
487
475
|
"config": [1040],
|
|
488
|
-
"
|
|
476
|
+
"configName": [1, "config-name"]
|
|
489
477
|
}]);
|
|
490
478
|
function defineCustomElement() {
|
|
491
479
|
if (typeof customElements === "undefined") {
|
|
@@ -495,7 +483,7 @@ function defineCustomElement() {
|
|
|
495
483
|
components.forEach(tagName => { switch (tagName) {
|
|
496
484
|
case "snk-grid-config":
|
|
497
485
|
if (!customElements.get(tagName)) {
|
|
498
|
-
customElements.define(tagName,
|
|
486
|
+
customElements.define(tagName, SnkGridConfig);
|
|
499
487
|
}
|
|
500
488
|
break;
|
|
501
489
|
case "snk-select-box":
|
|
@@ -506,4 +494,4 @@ function defineCustomElement() {
|
|
|
506
494
|
} });
|
|
507
495
|
}
|
|
508
496
|
|
|
509
|
-
export {
|
|
497
|
+
export { SnkGridConfig as S, defineCustomElement as d };
|
|
@@ -80,9 +80,6 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
80
80
|
this._gridConfig = config;
|
|
81
81
|
}
|
|
82
82
|
loadConfig() {
|
|
83
|
-
if (this.configName == undefined) {
|
|
84
|
-
return;
|
|
85
|
-
}
|
|
86
83
|
ConfigStorage.get()
|
|
87
84
|
.then((instance) => {
|
|
88
85
|
instance.loadGridConfig(this.configName)
|
|
@@ -94,16 +91,20 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
94
91
|
});
|
|
95
92
|
});
|
|
96
93
|
}
|
|
97
|
-
|
|
98
|
-
|
|
94
|
+
gridConfigChangeHandler(evt) {
|
|
95
|
+
const config = evt.detail;
|
|
96
|
+
ConfigStorage.saveGridConfig(config, this.configName);
|
|
97
|
+
evt.stopPropagation();
|
|
99
98
|
}
|
|
100
|
-
|
|
99
|
+
modalConfigChangeHandler(evt) {
|
|
100
|
+
const config = evt.detail;
|
|
101
101
|
this._grid.setColumnsState(config.columns)
|
|
102
102
|
.then(() => {
|
|
103
103
|
this.setGridConfig(config);
|
|
104
104
|
this.closeGridConfig();
|
|
105
105
|
this.dataExporterProviderStore();
|
|
106
106
|
});
|
|
107
|
+
evt.stopPropagation();
|
|
107
108
|
}
|
|
108
109
|
buildColumnsMetadata(columnsMetadata, gridColumns) {
|
|
109
110
|
gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach((column) => {
|
|
@@ -250,7 +251,7 @@ const SnkGrid = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
|
|
|
250
251
|
if (!this._dataUnit) {
|
|
251
252
|
return undefined;
|
|
252
253
|
}
|
|
253
|
-
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-margin-bottom--medium" }, h("snk-filter-bar", { dataUnit: this._dataUnit, "data-element-id": "gridFilter", 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", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton() })), h("ez-grid", { ref: ref => this._grid = ref, "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.
|
|
254
|
+
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-margin-bottom--medium" }, h("snk-filter-bar", { dataUnit: this._dataUnit, "data-element-id": "gridFilter", 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", "data-element-id": "grid_top", key: "topTaskbar", configName: this.configName, dataUnit: this._dataUnit, buttons: this._topTaskbarProcessor.buttons, disabledButtons: this._topTaskbarProcessor.disabledButtons, customButtons: this._topTaskbarProcessor.customButtons, primaryButton: this.getPrimaryButton() })), h("ez-grid", { ref: ref => this._grid = ref, "data-element-id": "embedded", dataUnit: this._dataUnit, key: "grid-" + this._snkDataUnit.entityName, config: this._gridConfig, onConfigChange: (evt) => { this.gridConfigChangeHandler(evt); }, onEzDoubleClick: () => this.gridDoubleClick.emit(), statusResolver: this.statusResolver, multipleSelection: this.multipleSelection }, h("snk-taskbar", { dataUnit: this._dataUnit, configName: this.configName, "data-element-id": "grid_left", 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, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), application: this._application, selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig() }))));
|
|
254
255
|
}
|
|
255
256
|
get _element() { return this; }
|
|
256
257
|
static get style() { return snkGridCss; }
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ErrorException, WarningException,
|
|
1
|
+
import { ErrorException, WarningException, ObjectUtils, StringUtils, ApplicationContext } from '@sankhyalabs/core';
|
|
2
2
|
import { c as createCommonjsModule, a as commonjsGlobal } from './_commonjsHelpers-9943807e.js';
|
|
3
3
|
|
|
4
4
|
var browserPonyfill = createCommonjsModule(function (module, exports) {
|
|
@@ -6435,6 +6435,20 @@ class UrlUtils {
|
|
|
6435
6435
|
}
|
|
6436
6436
|
}
|
|
6437
6437
|
|
|
6438
|
+
class DataFetcherRecaller {
|
|
6439
|
+
constructor(serviceName, requestBody, callback) {
|
|
6440
|
+
this.serviceName = serviceName;
|
|
6441
|
+
this.requestBody = requestBody;
|
|
6442
|
+
this.callback = callback;
|
|
6443
|
+
}
|
|
6444
|
+
reCall(requestBody) {
|
|
6445
|
+
if (requestBody) {
|
|
6446
|
+
this.requestBody = requestBody;
|
|
6447
|
+
}
|
|
6448
|
+
DataFetcher.get().callServiceBroker(this.serviceName, this.requestBody);
|
|
6449
|
+
}
|
|
6450
|
+
}
|
|
6451
|
+
|
|
6438
6452
|
class DataFetcher {
|
|
6439
6453
|
constructor() {
|
|
6440
6454
|
this.GRAPHQL_PATH = "/mge/graphql";
|
|
@@ -6534,14 +6548,44 @@ class DataFetcher {
|
|
|
6534
6548
|
const url = `${ctx.baseUrl}?serviceName=${name}&counter=21&application=${ctx.appName}&outputType=json&preventTransform=false&mgeSession=${ctx.mgeSession}&resourceID=${ctx.resourceID}&globalID=${ctx.globalID}&allowConcurrentCalls=true`;
|
|
6535
6549
|
document.cookie = `JSESSIONID=${ctx.mgeSession};`;
|
|
6536
6550
|
const http = new XMLHttpRequest();
|
|
6551
|
+
var payloadJson = {};
|
|
6552
|
+
if ('string' == typeof payload) {
|
|
6553
|
+
payload = ObjectUtils.stringToObject(payload);
|
|
6554
|
+
}
|
|
6555
|
+
if (!payload.hasOwnProperty('requestBody')) {
|
|
6556
|
+
payloadJson['requestBody'] = payload;
|
|
6557
|
+
}
|
|
6558
|
+
else {
|
|
6559
|
+
payloadJson = payload;
|
|
6560
|
+
}
|
|
6561
|
+
for (let [key] of DataFetcher.clientEventsByID) {
|
|
6562
|
+
if (!payloadJson['requestBody'].hasOwnProperty('clientEventList')) {
|
|
6563
|
+
payloadJson['requestBody']['clientEventList'] = {
|
|
6564
|
+
clientEvent: []
|
|
6565
|
+
};
|
|
6566
|
+
}
|
|
6567
|
+
payloadJson['requestBody']['clientEventList'].clientEvent.push({ $: key });
|
|
6568
|
+
}
|
|
6537
6569
|
DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: payload }));
|
|
6538
6570
|
http.open("POST", url, true);
|
|
6539
6571
|
http.withCredentials = true;
|
|
6540
|
-
http.send(
|
|
6572
|
+
http.send(ObjectUtils.objectToString(payloadJson));
|
|
6541
6573
|
http.onreadystatechange = function () {
|
|
6542
6574
|
if (this.readyState == 4 && this.status == 200) {
|
|
6543
6575
|
try {
|
|
6544
6576
|
const jsonResp = JSON.parse(this.responseText);
|
|
6577
|
+
if (jsonResp.hasOwnProperty('clientEvents')) {
|
|
6578
|
+
jsonResp.clientEvents.forEach(clientEvent => {
|
|
6579
|
+
if (DataFetcher.hasClientEvent(clientEvent.id)) {
|
|
6580
|
+
var handlers = DataFetcher.clientEventsByID.get(clientEvent.id);
|
|
6581
|
+
handlers.forEach(handler => {
|
|
6582
|
+
handler({ id: clientEvent.id, content: clientEvent }, new DataFetcherRecaller(serviceName, payloadJson, accept));
|
|
6583
|
+
});
|
|
6584
|
+
}
|
|
6585
|
+
});
|
|
6586
|
+
if (jsonResp.status == 4)
|
|
6587
|
+
return;
|
|
6588
|
+
}
|
|
6545
6589
|
if (jsonResp.status == 1) {
|
|
6546
6590
|
accept(jsonResp.responseBody);
|
|
6547
6591
|
}
|
|
@@ -6664,9 +6708,25 @@ class DataFetcher {
|
|
|
6664
6708
|
error.index = Number(requestIndex);
|
|
6665
6709
|
return error;
|
|
6666
6710
|
}
|
|
6711
|
+
static addClientEvent(eventID, handler) {
|
|
6712
|
+
let clientEvent = DataFetcher.clientEventsByID.get(eventID);
|
|
6713
|
+
if (clientEvent != undefined) {
|
|
6714
|
+
clientEvent.push(handler);
|
|
6715
|
+
}
|
|
6716
|
+
else {
|
|
6717
|
+
DataFetcher.clientEventsByID.set(eventID, [handler]);
|
|
6718
|
+
}
|
|
6719
|
+
}
|
|
6720
|
+
static hasClientEvent(eventID) {
|
|
6721
|
+
return DataFetcher.clientEventsByID.has(eventID);
|
|
6722
|
+
}
|
|
6723
|
+
static removeClientEvent(eventID) {
|
|
6724
|
+
return DataFetcher.clientEventsByID.delete(eventID);
|
|
6725
|
+
}
|
|
6667
6726
|
}
|
|
6668
6727
|
DataFetcher.appTagName = "snk-application";
|
|
6669
6728
|
DataFetcher.requestListener = [];
|
|
6729
|
+
DataFetcher.clientEventsByID = new Map();
|
|
6670
6730
|
class WaitingRequest {
|
|
6671
6731
|
constructor(req) {
|
|
6672
6732
|
this._resolve = () => { };
|
|
@@ -6784,15 +6844,17 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
6784
6844
|
}
|
|
6785
6845
|
loadFormConfig(formName, resourceID) {
|
|
6786
6846
|
return new Promise((accept, reject) => {
|
|
6787
|
-
|
|
6788
|
-
.
|
|
6789
|
-
|
|
6790
|
-
|
|
6791
|
-
|
|
6792
|
-
|
|
6793
|
-
|
|
6794
|
-
|
|
6795
|
-
}
|
|
6847
|
+
Promise.all([
|
|
6848
|
+
this.loadResource(this.getPath(resourceID, formName))
|
|
6849
|
+
])
|
|
6850
|
+
.then(([configAsString]) => {
|
|
6851
|
+
const config = configAsString ? JSON.parse(configAsString) : {};
|
|
6852
|
+
const { tabs, fields } = config;
|
|
6853
|
+
if (tabs) {
|
|
6854
|
+
const allTabs = new Map(tabs.map(t => [t.label, t]));
|
|
6855
|
+
fields === null || fields === void 0 ? void 0 : fields.forEach(f => { var _a; return f.tab = ((_a = allTabs.get(this.getTabName(f.tab))) === null || _a === void 0 ? void 0 : _a.label) || allTabs.get(this.getTabName(f.tab)); });
|
|
6856
|
+
}
|
|
6857
|
+
if (fields) {
|
|
6796
6858
|
config.fields = fields === null || fields === void 0 ? void 0 : fields.map((field) => {
|
|
6797
6859
|
if ("readonly" in field) {
|
|
6798
6860
|
const readOnly = field['readonly'] === true;
|
|
@@ -6801,11 +6863,8 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
6801
6863
|
}
|
|
6802
6864
|
return field;
|
|
6803
6865
|
});
|
|
6804
|
-
accept(config);
|
|
6805
|
-
}
|
|
6806
|
-
else {
|
|
6807
|
-
reject(`Sem configuração pro formulário "${formName}".`);
|
|
6808
6866
|
}
|
|
6867
|
+
accept(config);
|
|
6809
6868
|
})
|
|
6810
6869
|
.catch((error) => {
|
|
6811
6870
|
reject(error);
|
|
@@ -6819,11 +6878,11 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
6819
6878
|
return tab; //string type
|
|
6820
6879
|
}
|
|
6821
6880
|
saveConfig(config, formName, resourceID) {
|
|
6822
|
-
const completePath =
|
|
6881
|
+
const completePath = this.getPath(resourceID, formName);
|
|
6823
6882
|
return new Promise((resolve, reject) => {
|
|
6824
6883
|
this.saveResource(config, completePath)
|
|
6825
6884
|
.then((resp) => {
|
|
6826
|
-
resolve(resp);
|
|
6885
|
+
resolve(JSON.parse(resp.resource));
|
|
6827
6886
|
})
|
|
6828
6887
|
.catch((error) => {
|
|
6829
6888
|
reject(error);
|
|
@@ -6831,7 +6890,7 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
6831
6890
|
});
|
|
6832
6891
|
}
|
|
6833
6892
|
fetchUserAvailableConfigs(formName, resourceID) {
|
|
6834
|
-
const name =
|
|
6893
|
+
const name = this.getPath(resourceID, formName);
|
|
6835
6894
|
return new Promise((resolve, reject) => {
|
|
6836
6895
|
DataFetcher.get()
|
|
6837
6896
|
.callGraphQL({
|
|
@@ -6847,7 +6906,7 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
6847
6906
|
});
|
|
6848
6907
|
}
|
|
6849
6908
|
fetchLegacyConfig(formName, resourceID) {
|
|
6850
|
-
const name =
|
|
6909
|
+
const name = this.getPath(resourceID, formName);
|
|
6851
6910
|
return new Promise((resolve, reject) => {
|
|
6852
6911
|
DataFetcher.get()
|
|
6853
6912
|
.callGraphQL({
|
|
@@ -6863,7 +6922,7 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
6863
6922
|
});
|
|
6864
6923
|
}
|
|
6865
6924
|
fetchDefaultConfig(formName, resourceID) {
|
|
6866
|
-
const name =
|
|
6925
|
+
const name = this.getPath(resourceID, formName);
|
|
6867
6926
|
return new Promise((resolve, reject) => {
|
|
6868
6927
|
DataFetcher.get()
|
|
6869
6928
|
.callGraphQL({
|
|
@@ -6878,6 +6937,12 @@ class FormConfigFetcher extends ResourceFetcher {
|
|
|
6878
6937
|
});
|
|
6879
6938
|
});
|
|
6880
6939
|
}
|
|
6940
|
+
getPath(resourceID, name, authority = "form") {
|
|
6941
|
+
if (name) {
|
|
6942
|
+
return `cfg://${authority}/${resourceID}/${name}`;
|
|
6943
|
+
}
|
|
6944
|
+
return `cfg://${authority}/${resourceID}`;
|
|
6945
|
+
}
|
|
6881
6946
|
}
|
|
6882
6947
|
var UserConfigType;
|
|
6883
6948
|
(function (UserConfigType) {
|
|
@@ -6891,8 +6956,8 @@ class GridConfigFetcher extends ResourceFetcher {
|
|
|
6891
6956
|
super(...arguments);
|
|
6892
6957
|
this.GRID_CONFIG_VERSION = "V3:";
|
|
6893
6958
|
}
|
|
6894
|
-
getConfig(
|
|
6895
|
-
const completePath =
|
|
6959
|
+
getConfig(gridName, resourceID) {
|
|
6960
|
+
const completePath = this.getPath(resourceID, gridName);
|
|
6896
6961
|
return new Promise((resolve, reject) => {
|
|
6897
6962
|
this.loadResource(completePath)
|
|
6898
6963
|
.then(loadedResource => {
|
|
@@ -6906,23 +6971,98 @@ class GridConfigFetcher extends ResourceFetcher {
|
|
|
6906
6971
|
});
|
|
6907
6972
|
});
|
|
6908
6973
|
}
|
|
6909
|
-
saveConfig(config, resourceID) {
|
|
6910
|
-
const completePath =
|
|
6974
|
+
saveConfig(config, gridName, resourceID) {
|
|
6975
|
+
const completePath = this.getPath(resourceID, gridName);
|
|
6911
6976
|
return new Promise((resolve, reject) => {
|
|
6912
6977
|
this.saveResource(config, completePath)
|
|
6913
6978
|
.then((resp) => {
|
|
6914
|
-
resolve(resp);
|
|
6979
|
+
resolve(JSON.parse(resp.resource));
|
|
6915
6980
|
})
|
|
6916
6981
|
.catch((error) => {
|
|
6917
6982
|
reject(error);
|
|
6918
6983
|
});
|
|
6919
6984
|
});
|
|
6920
6985
|
}
|
|
6986
|
+
getPath(resourceID, name) {
|
|
6987
|
+
if (name) {
|
|
6988
|
+
return `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}/${name}`;
|
|
6989
|
+
}
|
|
6990
|
+
return `cfg://grid/${this.GRID_CONFIG_VERSION}${resourceID}`;
|
|
6991
|
+
}
|
|
6992
|
+
}
|
|
6993
|
+
|
|
6994
|
+
function normalizeValue(value) {
|
|
6995
|
+
if (value == undefined) {
|
|
6996
|
+
return value;
|
|
6997
|
+
}
|
|
6998
|
+
if (value instanceof Date) {
|
|
6999
|
+
return value.toISOString();
|
|
7000
|
+
}
|
|
7001
|
+
if (typeof value === "object") {
|
|
7002
|
+
if (value instanceof Array) {
|
|
7003
|
+
return value.map(item => normalizeValue(item));
|
|
7004
|
+
}
|
|
7005
|
+
else {
|
|
7006
|
+
const normalized = Object.assign({}, value);
|
|
7007
|
+
Object.keys(value).forEach(prop => {
|
|
7008
|
+
if (value[prop]) {
|
|
7009
|
+
normalized[prop] = normalizeValue(value[prop]);
|
|
7010
|
+
}
|
|
7011
|
+
else {
|
|
7012
|
+
delete normalized[prop];
|
|
7013
|
+
}
|
|
7014
|
+
});
|
|
7015
|
+
return normalized;
|
|
7016
|
+
}
|
|
7017
|
+
}
|
|
7018
|
+
return value;
|
|
7019
|
+
}
|
|
7020
|
+
class FilterBarConfigFetcher extends ResourceFetcher {
|
|
7021
|
+
saveConfig(items, resourceID, configName) {
|
|
7022
|
+
const state = items.map(item => {
|
|
7023
|
+
const { id, value, fixed, visible } = item;
|
|
7024
|
+
const stateItem = { id };
|
|
7025
|
+
if (value) {
|
|
7026
|
+
stateItem["value"] = normalizeValue(value);
|
|
7027
|
+
}
|
|
7028
|
+
if (fixed) {
|
|
7029
|
+
stateItem["fixed"] = fixed;
|
|
7030
|
+
}
|
|
7031
|
+
if (visible) {
|
|
7032
|
+
stateItem["visible"] = true;
|
|
7033
|
+
}
|
|
7034
|
+
return stateItem;
|
|
7035
|
+
});
|
|
7036
|
+
return this.saveResource(state, this.getPath(resourceID, configName));
|
|
7037
|
+
}
|
|
7038
|
+
getConfig(resourceID, configName) {
|
|
7039
|
+
return new Promise((accept, reject) => {
|
|
7040
|
+
this.loadResource(this.getPath(resourceID, configName))
|
|
7041
|
+
.then((configAsString) => {
|
|
7042
|
+
let fieldsList;
|
|
7043
|
+
if (configAsString) {
|
|
7044
|
+
const filterBarConfig = JSON.parse(configAsString);
|
|
7045
|
+
fieldsList = filterBarConfig.items;
|
|
7046
|
+
}
|
|
7047
|
+
accept(fieldsList || []);
|
|
7048
|
+
})
|
|
7049
|
+
.catch((error) => {
|
|
7050
|
+
reject(error);
|
|
7051
|
+
});
|
|
7052
|
+
});
|
|
7053
|
+
}
|
|
7054
|
+
getPath(resourceID, name) {
|
|
7055
|
+
if (name) {
|
|
7056
|
+
return `cfg://filter/FilterBarState:${resourceID}/${name}`;
|
|
7057
|
+
}
|
|
7058
|
+
return `cfg://filter/FilterBarState:${resourceID}`;
|
|
7059
|
+
}
|
|
6921
7060
|
}
|
|
6922
7061
|
|
|
6923
7062
|
const CONFIG_SOURCE = {
|
|
6924
7063
|
form: "form",
|
|
6925
|
-
grid: "grid"
|
|
7064
|
+
grid: "grid",
|
|
7065
|
+
filterBar: "filterBar"
|
|
6926
7066
|
};
|
|
6927
7067
|
class ConfigStorage {
|
|
6928
7068
|
static async get() {
|
|
@@ -6933,16 +7073,21 @@ class ConfigStorage {
|
|
|
6933
7073
|
const resourceID = await application.getResourceID();
|
|
6934
7074
|
ConfigStorage.instance = new ConfigStorage();
|
|
6935
7075
|
ConfigStorage.resourceID = resourceID;
|
|
7076
|
+
ConfigStorage.instance.loadFilterBarConfig(configName);
|
|
6936
7077
|
ConfigStorage.instance.loadFormConfig(configName);
|
|
6937
7078
|
ConfigStorage.instance.loadGridConfig(configName);
|
|
6938
7079
|
}
|
|
6939
7080
|
}
|
|
6940
7081
|
return this.instance;
|
|
6941
7082
|
}
|
|
6942
|
-
async
|
|
6943
|
-
|
|
6944
|
-
|
|
7083
|
+
async loadFilterBarConfig(name) {
|
|
7084
|
+
const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.filterBar);
|
|
7085
|
+
if (!ConfigStorage.configById.has(cacheID)) {
|
|
7086
|
+
ConfigStorage.configById.set(cacheID, ConfigStorage.filterBarConfigFetcher.getConfig(ConfigStorage.resourceID, name));
|
|
6945
7087
|
}
|
|
7088
|
+
return ConfigStorage.configById.get(cacheID);
|
|
7089
|
+
}
|
|
7090
|
+
async loadFormConfig(name) {
|
|
6946
7091
|
const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.form);
|
|
6947
7092
|
if (!ConfigStorage.configById.has(cacheID)) {
|
|
6948
7093
|
ConfigStorage.configById.set(cacheID, ConfigStorage.formConfigFetcher.loadFormConfig(name, ConfigStorage.resourceID));
|
|
@@ -6950,36 +7095,39 @@ class ConfigStorage {
|
|
|
6950
7095
|
return ConfigStorage.configById.get(cacheID);
|
|
6951
7096
|
}
|
|
6952
7097
|
async loadGridConfig(name) {
|
|
6953
|
-
if (name == undefined) {
|
|
6954
|
-
return;
|
|
6955
|
-
}
|
|
6956
7098
|
const cacheID = ConfigStorage.buildCacheID(name, CONFIG_SOURCE.grid);
|
|
6957
7099
|
if (!ConfigStorage.configById.has(cacheID)) {
|
|
6958
7100
|
ConfigStorage.configById.set(cacheID, ConfigStorage.gridConfigFetcher.getConfig(name, ConfigStorage.resourceID));
|
|
6959
7101
|
}
|
|
6960
7102
|
return ConfigStorage.configById.get(cacheID);
|
|
6961
7103
|
}
|
|
7104
|
+
static async saveFilterBarConfig(config, name) {
|
|
7105
|
+
const cacheID = this.buildCacheID(name, CONFIG_SOURCE.filterBar);
|
|
7106
|
+
this.configById.delete(cacheID);
|
|
7107
|
+
return this.filterBarConfigFetcher.saveConfig(config, this.resourceID, name);
|
|
7108
|
+
}
|
|
6962
7109
|
static async saveFormConfig(config, name) {
|
|
6963
|
-
if (config == undefined || name == undefined) {
|
|
6964
|
-
return;
|
|
6965
|
-
}
|
|
6966
7110
|
const cacheID = this.buildCacheID(name, CONFIG_SOURCE.form);
|
|
6967
7111
|
this.configById.delete(cacheID);
|
|
6968
7112
|
return this.formConfigFetcher.saveConfig(config, name, this.resourceID);
|
|
6969
7113
|
}
|
|
6970
7114
|
static async saveGridConfig(config, name) {
|
|
6971
|
-
if (config == undefined
|
|
7115
|
+
if (config == undefined) {
|
|
6972
7116
|
return;
|
|
6973
7117
|
}
|
|
6974
7118
|
const cacheID = this.buildCacheID(name, CONFIG_SOURCE.grid);
|
|
6975
7119
|
this.configById.delete(cacheID);
|
|
6976
|
-
return this.gridConfigFetcher.saveConfig(config, this.resourceID);
|
|
7120
|
+
return this.gridConfigFetcher.saveConfig(config, name, this.resourceID);
|
|
6977
7121
|
}
|
|
6978
7122
|
static buildCacheID(name, source) {
|
|
7123
|
+
if (name == undefined) {
|
|
7124
|
+
return `req_${source}_${this.resourceID}`;
|
|
7125
|
+
}
|
|
6979
7126
|
return `req_${source}_${name}_${this.resourceID}`;
|
|
6980
7127
|
}
|
|
6981
7128
|
}
|
|
6982
7129
|
ConfigStorage.configById = new Map();
|
|
7130
|
+
ConfigStorage.filterBarConfigFetcher = new FilterBarConfigFetcher();
|
|
6983
7131
|
ConfigStorage.formConfigFetcher = new FormConfigFetcher();
|
|
6984
7132
|
ConfigStorage.gridConfigFetcher = new GridConfigFetcher();
|
|
6985
7133
|
|
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([["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],"getSelectedRecordsIDsInfo":[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-param-config",[[2,"snk-filter-param-config",{"_opened":[32],"_configType":[32],"_expressionItem":[32],"_informedInstance":[32],"_canSave":[32],"open":[64],"close":[64]}]]],["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-exporter-email-sender",[[0,"snk-exporter-email-sender",{"getMessage":[16],"_config":[32],"_opened":[32],"_currentStep":[32],"open":[64],"close":[64]}]]],["snk-configurator_3",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_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-data-exporter_8",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32],"scrollerLocked":[32]},[[0,"filterChange","filterChangeListener"]]],[2,"snk-grid-config",{"selectedIndex":[1026,"selected-index"],"application":[16],"columns":[1040],"config":[1040],"
|
|
14
|
+
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],"getSelectedRecordsIDsInfo":[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-param-config",[[2,"snk-filter-param-config",{"_opened":[32],"_configType":[32],"_expressionItem":[32],"_informedInstance":[32],"_canSave":[32],"open":[64],"close":[64]}]]],["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-exporter-email-sender",[[0,"snk-exporter-email-sender",{"getMessage":[16],"_config":[32],"_opened":[32],"_currentStep":[32],"open":[64],"close":[64]}]]],["snk-configurator_3",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_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-data-exporter_8",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32],"scrollerLocked":[32]},[[0,"filterChange","filterChangeListener"]]],[2,"snk-grid-config",{"selectedIndex":[1026,"selected-index"],"application":[16],"columns":[1040],"config":[1040],"configName":[1,"config-name"]}],[6,"snk-taskbar",{"configName":[1,"config-name"],"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"presentationMode":[1537,"presentation-mode"],"_permissions":[32]}],[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"]}],[2,"snk-data-exporter",{"provider":[16],"_items":[32],"_showDropdown":[32],"_releasedToExport":[32]}]]],["snk-form",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32],"_showFormConfig":[32],"showConfig":[64],"hideConfig":[64]}]]],["snk-filter-detail",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-crud",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_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],"webConnection":[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],"saveFormConfig":[64],"getDefaultValues":[64],"getDefaultValue":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64],"getAppLabel":[64]}]]]], options);
|
|
15
15
|
});
|
|
16
16
|
};
|
|
17
17
|
|
|
@@ -14,5 +14,5 @@ const patchBrowser = () => {
|
|
|
14
14
|
};
|
|
15
15
|
|
|
16
16
|
patchBrowser().then(options => {
|
|
17
|
-
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],"getSelectedRecordsIDsInfo":[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-param-config",[[2,"snk-filter-param-config",{"_opened":[32],"_configType":[32],"_expressionItem":[32],"_informedInstance":[32],"_canSave":[32],"open":[64],"close":[64]}]]],["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-exporter-email-sender",[[0,"snk-exporter-email-sender",{"getMessage":[16],"_config":[32],"_opened":[32],"_currentStep":[32],"open":[64],"close":[64]}]]],["snk-configurator_3",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_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-data-exporter_8",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32],"scrollerLocked":[32]},[[0,"filterChange","filterChangeListener"]]],[2,"snk-grid-config",{"selectedIndex":[1026,"selected-index"],"application":[16],"columns":[1040],"config":[1040],"
|
|
17
|
+
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],"getSelectedRecordsIDsInfo":[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-param-config",[[2,"snk-filter-param-config",{"_opened":[32],"_configType":[32],"_expressionItem":[32],"_informedInstance":[32],"_canSave":[32],"open":[64],"close":[64]}]]],["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-exporter-email-sender",[[0,"snk-exporter-email-sender",{"getMessage":[16],"_config":[32],"_opened":[32],"_currentStep":[32],"open":[64],"close":[64]}]]],["snk-configurator_3",[[6,"snk-grid",{"configName":[1,"config-name"],"actionsList":[16],"taskbarManager":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_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-data-exporter_8",[[2,"snk-filter-bar",{"dataUnit":[1040],"configName":[1,"config-name"],"filterConfig":[1040],"allowDefault":[32],"scrollerLocked":[32]},[[0,"filterChange","filterChangeListener"]]],[2,"snk-grid-config",{"selectedIndex":[1026,"selected-index"],"application":[16],"columns":[1040],"config":[1040],"configName":[1,"config-name"]}],[6,"snk-taskbar",{"configName":[1,"config-name"],"buttons":[1],"customButtons":[16],"actionsList":[16],"primaryButton":[1,"primary-button"],"disabledButtons":[16],"dataUnit":[16],"presentationMode":[1537,"presentation-mode"],"_permissions":[32]}],[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"]}],[2,"snk-data-exporter",{"provider":[16],"_items":[32],"_showDropdown":[32],"_releasedToExport":[32]}]]],["snk-form",[[2,"snk-form",{"configName":[1,"config-name"],"recordsValidator":[16],"actionsList":[16],"taskbarManager":[16],"presentationMode":[1,"presentation-mode"],"_dataUnit":[32],"_dataState":[32],"_editionFormConfig":[32],"_insertionFormConfig":[32],"_showFormConfig":[32],"showConfig":[64],"hideConfig":[64]}]]],["snk-filter-detail",[[0,"snk-filter-detail",{"config":[1040],"getMessage":[16],"show":[64]}]]],["snk-crud",[[6,"snk-crud",{"configName":[1025,"config-name"],"actionsList":[16],"taskbarManager":[16],"recordsValidator":[16],"statusResolver":[16],"multipleSelection":[4,"multiple-selection"],"presentationMode":[1,"presentation-mode"],"_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],"webConnection":[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],"saveFormConfig":[64],"getDefaultValues":[64],"getDefaultValue":[64],"executeSearch":[64],"executePreparedSearch":[64],"isDebugMode":[64],"getAppLabel":[64]}]]]], options);
|
|
18
18
|
});
|