@sankhyalabs/sankhyablocks 0.0.0-feat-dev-KB-68095.2 → 0.0.0-feat-dev-KB-38448.4
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-7e9cfe06.js → ConfigStorage-e49214c6.js} +2 -2
- package/dist/cjs/{DataFetcher-cadeef8e.js → DataFetcher-77729a93.js} +20 -21
- package/dist/cjs/{IExporterProvider-5e0a1ec8.js → IExporterProvider-10b7fed5.js} +4 -4
- package/dist/cjs/{SnkFormConfigManager-a4af1627.js → SnkFormConfigManager-beebf47a.js} +15 -67
- package/dist/cjs/{auth-fetcher-06f908dc.js → auth-fetcher-29bb791c.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-4b12f70c.js → dataunit-fetcher-d4873076.js} +1 -1
- package/dist/cjs/{form-config-fetcher-5c6995ec.js → form-config-fetcher-feb08214.js} +1 -1
- package/dist/cjs/{pesquisa-fetcher-ca89181c.js → pesquisa-fetcher-a1d0353f.js} +1 -1
- package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -5
- package/dist/cjs/snk-application.cjs.entry.js +6 -6
- package/dist/cjs/snk-attach.cjs.entry.js +24 -13
- package/dist/cjs/snk-crud.cjs.entry.js +5 -5
- package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
- package/dist/cjs/{snk-data-unit-256eecd1.js → snk-data-unit-f0221097.js} +1 -1
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
- package/dist/cjs/snk-filter-bar.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form-config.cjs.entry.js +5 -5
- package/dist/cjs/snk-form.cjs.entry.js +6 -7
- package/dist/cjs/snk-grid.cjs.entry.js +6 -6
- package/dist/cjs/{snk-guides-viewer-2d705fa1.js → snk-guides-viewer-aafc3073.js} +7 -10
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -8
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-simple-crud.cjs.entry.js +8 -8
- package/dist/collection/components/snk-attach/snk-attach.js +12 -3
- package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +1 -1
- package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +2 -5
- package/dist/collection/components/snk-form/snk-form.js +2 -2
- package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +13 -65
- package/dist/collection/components/snk-form-config/snk-form-config.js +3 -3
- package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +1 -1
- package/dist/collection/lib/http/data-fetcher/DataFetcher.js +20 -21
- package/dist/collection/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.js +7 -5
- package/dist/components/DataFetcher.js +20 -21
- package/dist/components/SnkFormConfigManager.js +13 -65
- package/dist/components/snk-attach2.js +19 -8
- package/dist/components/snk-detail-view2.js +3 -6
- package/dist/components/snk-form-config2.js +3 -3
- package/dist/components/snk-form.js +2 -2
- package/dist/components/snk-simple-crud2.js +1 -1
- package/dist/esm/{ConfigStorage-06d384c5.js → ConfigStorage-e476378d.js} +2 -2
- package/dist/esm/{DataFetcher-a9c598f2.js → DataFetcher-773a3e4b.js} +20 -21
- package/dist/esm/{IExporterProvider-a57aa108.js → IExporterProvider-d597f27d.js} +4 -4
- package/dist/esm/{SnkFormConfigManager-175c8bca.js → SnkFormConfigManager-298cd647.js} +15 -67
- package/dist/esm/{auth-fetcher-03f9db14.js → auth-fetcher-a411f73c.js} +1 -1
- package/dist/esm/{dataunit-fetcher-3aac1a53.js → dataunit-fetcher-3d2ec959.js} +1 -1
- package/dist/esm/{form-config-fetcher-23473d03.js → form-config-fetcher-e0382e5a.js} +1 -1
- package/dist/esm/{pesquisa-fetcher-8edaa8cd.js → pesquisa-fetcher-a87445a0.js} +1 -1
- package/dist/esm/snk-actions-button_4.entry.js +5 -5
- package/dist/esm/snk-application.entry.js +6 -6
- package/dist/esm/snk-attach.entry.js +24 -13
- package/dist/esm/snk-crud.entry.js +5 -5
- package/dist/esm/snk-data-exporter.entry.js +5 -5
- package/dist/esm/{snk-data-unit-72418130.js → snk-data-unit-1ef94aef.js} +1 -1
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +8 -8
- package/dist/esm/snk-filter-bar.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form-config.entry.js +5 -5
- package/dist/esm/snk-form.entry.js +6 -7
- package/dist/esm/snk-grid.entry.js +6 -6
- package/dist/esm/{snk-guides-viewer-8d3a56a0.js → snk-guides-viewer-62124f3d.js} +7 -10
- package/dist/esm/snk-guides-viewer.entry.js +8 -8
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-simple-crud.entry.js +8 -8
- package/dist/sankhyablocks/{p-f8698ad3.js → p-091ce761.js} +1 -1
- package/dist/sankhyablocks/{p-7f01a848.entry.js → p-0c68f40f.entry.js} +1 -1
- package/dist/sankhyablocks/p-0cd3c0a9.js +1 -0
- package/dist/sankhyablocks/{p-d1cc1617.entry.js → p-162b9a59.entry.js} +2 -2
- package/dist/sankhyablocks/{p-d22981e1.js → p-181975f1.js} +1 -1
- package/dist/sankhyablocks/{p-1bf06cd3.js → p-25f1fc39.js} +2 -2
- package/dist/sankhyablocks/p-2e9c764c.entry.js +1 -0
- package/dist/sankhyablocks/{p-d27e3cc7.js → p-3287a6cc.js} +1 -1
- package/dist/sankhyablocks/{p-7c524b64.entry.js → p-421bec84.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5369ba7f.entry.js → p-51999ab5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-21377b29.entry.js → p-52a6a293.entry.js} +1 -1
- package/dist/sankhyablocks/{p-f3434fc4.js → p-594bc21d.js} +1 -1
- package/dist/sankhyablocks/p-5f016aed.js +1 -0
- package/dist/sankhyablocks/{p-b23c1478.entry.js → p-62f34e6f.entry.js} +1 -1
- package/dist/sankhyablocks/p-684a2590.entry.js +1 -0
- package/dist/sankhyablocks/{p-fa72057c.js → p-70001ac1.js} +1 -1
- package/dist/sankhyablocks/{p-7dd27e81.entry.js → p-74c665d5.entry.js} +1 -1
- package/dist/sankhyablocks/{p-c6468562.js → p-76a65660.js} +1 -1
- package/dist/sankhyablocks/{p-d51feaa3.entry.js → p-8c1ff936.entry.js} +1 -1
- package/dist/sankhyablocks/p-939e15d3.entry.js +1 -0
- package/dist/sankhyablocks/{p-e91c450d.entry.js → p-9dfda04a.entry.js} +1 -1
- package/dist/sankhyablocks/p-9fa9ff59.entry.js +1 -0
- package/dist/sankhyablocks/{p-35f00f51.entry.js → p-bd008859.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9c7861dc.js → p-c273d6ee.js} +1 -1
- package/dist/sankhyablocks/p-d65d98ed.entry.js +1 -0
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +0 -1
- package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +2 -6
- package/dist/types/lib/http/data-fetcher/fetchers/AttachFetcher/anexo-sistema-fetcher.d.ts +3 -2
- package/package.json +1 -1
- package/dist/sankhyablocks/p-8974e0fb.entry.js +0 -1
- package/dist/sankhyablocks/p-8b920710.js +0 -1
- package/dist/sankhyablocks/p-95d58d82.entry.js +0 -1
- package/dist/sankhyablocks/p-9c7ef5d1.entry.js +0 -1
- package/dist/sankhyablocks/p-ad9728cf.entry.js +0 -1
- package/dist/sankhyablocks/p-b8d24cf8.js +0 -1
- package/dist/sankhyablocks/p-d52eadff.entry.js +0 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
3
|
+
const formConfigFetcher = require('./form-config-fetcher-feb08214.js');
|
|
4
4
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
5
5
|
const core = require('@sankhyalabs/core');
|
|
6
|
-
const DataFetcher = require('./DataFetcher-
|
|
6
|
+
const DataFetcher = require('./DataFetcher-77729a93.js');
|
|
7
7
|
|
|
8
8
|
class GridConfigFetcher extends formConfigFetcher.ResourceFetcher {
|
|
9
9
|
constructor() {
|
|
@@ -6865,7 +6865,6 @@ class DataFetcher {
|
|
|
6865
6865
|
}
|
|
6866
6866
|
}
|
|
6867
6867
|
async executePendingRequest(watingRequestsById) {
|
|
6868
|
-
var _a, _b;
|
|
6869
6868
|
const requestsBatch = [];
|
|
6870
6869
|
let quietMode = true;
|
|
6871
6870
|
watingRequestsById.forEach((waitingReq) => {
|
|
@@ -6876,36 +6875,36 @@ class DataFetcher {
|
|
|
6876
6875
|
const response = await this.fecthGraphQL(requestsBatch, quietMode);
|
|
6877
6876
|
const { data: dataResponse, errors: errorsResponse, extensions } = response;
|
|
6878
6877
|
//Reject promises with errors from query
|
|
6879
|
-
|
|
6880
|
-
|
|
6881
|
-
|
|
6882
|
-
const waitingRequest = watingRequestsById.get(value.request.variables[value.index].queryID);
|
|
6878
|
+
errorsResponse.forEach((errorResponse) => {
|
|
6879
|
+
Object.entries(errorResponse).forEach(async ([key, val]) => {
|
|
6880
|
+
const waitingRequest = watingRequestsById.get(val.request.variables[val.index].queryID);
|
|
6883
6881
|
const hasClientEvent = await this.proccesGraphQLClientEvents(extensions, waitingRequest.request, waitingRequest.resolve, waitingRequest.reject);
|
|
6884
|
-
|
|
6882
|
+
Promise.race([
|
|
6885
6883
|
waitingRequest.promise,
|
|
6886
6884
|
new Promise((resolve) => {
|
|
6887
6885
|
resolve(false);
|
|
6888
6886
|
})
|
|
6889
|
-
])
|
|
6890
|
-
|
|
6891
|
-
if (
|
|
6892
|
-
(
|
|
6893
|
-
|
|
6894
|
-
|
|
6895
|
-
|
|
6887
|
+
]).then((data) => {
|
|
6888
|
+
var _a, _b;
|
|
6889
|
+
if (!hasClientEvent || data === false) {
|
|
6890
|
+
if (Object.keys(errorResponse[0].extensions).includes("SERVICE_CANCELED") || Object.keys(extensions).includes("isServiceCancelled")) {
|
|
6891
|
+
(((_a = watingRequestsById.get(val.request.variables[val.index].queryID)) === null || _a === void 0 ? void 0 : _a.reject) || Promise.reject)(new core.ServiceCanceledException("Service canceled", val.message));
|
|
6892
|
+
}
|
|
6893
|
+
else {
|
|
6894
|
+
(((_b = watingRequestsById.get(val.request.variables[val.index].queryID)) === null || _b === void 0 ? void 0 : _b.reject) || Promise.reject)(new core.ErrorException("Falha detectada", val.message));
|
|
6895
|
+
}
|
|
6896
6896
|
}
|
|
6897
|
-
}
|
|
6898
|
-
}
|
|
6899
|
-
}
|
|
6897
|
+
});
|
|
6898
|
+
});
|
|
6899
|
+
});
|
|
6900
6900
|
//Resolve promises with data from query
|
|
6901
|
-
|
|
6902
|
-
|
|
6903
|
-
for (const [key, val] of entries) {
|
|
6901
|
+
dataResponse.forEach((data) => {
|
|
6902
|
+
Object.entries(data).forEach(async ([key, val]) => {
|
|
6904
6903
|
const waitingRequest = watingRequestsById.get(key);
|
|
6905
6904
|
await this.proccesGraphQLClientEvents(extensions, waitingRequest.request, waitingRequest.resolve, waitingRequest.reject);
|
|
6906
6905
|
((waitingRequest === null || waitingRequest === void 0 ? void 0 : waitingRequest.resolve) || Promise.resolve)(val);
|
|
6907
|
-
}
|
|
6908
|
-
}
|
|
6906
|
+
});
|
|
6907
|
+
});
|
|
6909
6908
|
}
|
|
6910
6909
|
buildGraphQlURL(quietMode) {
|
|
6911
6910
|
const urlParams = UrlUtils.getQueryParams(location.search);
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const DataFetcher = require('./DataFetcher-
|
|
4
|
-
require('./pesquisa-fetcher-
|
|
3
|
+
const DataFetcher = require('./DataFetcher-77729a93.js');
|
|
4
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
5
5
|
const core = require('@sankhyalabs/core');
|
|
6
6
|
require('./index-1dfc7a6e.js');
|
|
7
7
|
require('./ISave-e91b70a7.js');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
9
9
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
10
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
10
|
+
const dataunitFetcher = require('./dataunit-fetcher-d4873076.js');
|
|
11
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
12
|
-
require('./form-config-fetcher-
|
|
12
|
+
require('./form-config-fetcher-feb08214.js');
|
|
13
13
|
const InMemoryFilterColumnDataSource = require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
|
|
14
14
|
|
|
15
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
3
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
6
|
-
const constants = require('./constants-35ddd366.js');
|
|
5
|
+
const formConfigFetcher = require('./form-config-fetcher-feb08214.js');
|
|
7
6
|
|
|
8
7
|
class SnkFormConfigManager {
|
|
9
|
-
constructor(configName, resourceID, onConfigChange
|
|
8
|
+
constructor(configName, resourceID, onConfigChange) {
|
|
10
9
|
this._resourceID = resourceID;
|
|
11
10
|
this._configName = configName;
|
|
12
11
|
this._onConfigChange = onConfigChange;
|
|
13
|
-
this._dataUnit = dataUnit;
|
|
14
12
|
}
|
|
15
13
|
addFormLegacyConfig(legacyConfigName) {
|
|
16
14
|
if (this._configName) {
|
|
@@ -21,7 +19,6 @@ class SnkFormConfigManager {
|
|
|
21
19
|
return new Promise(resolve => {
|
|
22
20
|
ConfigStorage.ConfigStorage.loadFormConfig(this._configName, this._resourceID)
|
|
23
21
|
.then((config) => {
|
|
24
|
-
config = this.buildFormMetadataUITabs(config);
|
|
25
22
|
this.setConfig(config);
|
|
26
23
|
resolve(config);
|
|
27
24
|
})
|
|
@@ -73,36 +70,25 @@ class SnkFormConfigManager {
|
|
|
73
70
|
}
|
|
74
71
|
return updatingCardConfig;
|
|
75
72
|
}
|
|
76
|
-
|
|
77
|
-
var _a;
|
|
78
|
-
const currentConfig = config !== null && config !== void 0 ? config : this._config;
|
|
79
|
-
if (currentConfig && ((_a = currentConfig.fields) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
80
|
-
return true;
|
|
81
|
-
}
|
|
82
|
-
return false;
|
|
83
|
-
}
|
|
84
|
-
getFieldsList(descriptionFilter) {
|
|
73
|
+
getFieldsList(dataUnit, descriptionFilter) {
|
|
85
74
|
var _a;
|
|
86
75
|
const fields = (_a = this._config) === null || _a === void 0 ? void 0 : _a.fields;
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
return fields.map(({ label, name, readOnly, visible, required, tab }) => {
|
|
90
|
-
var _a;
|
|
76
|
+
if (fields != undefined && fields.length > 0) {
|
|
77
|
+
return fields.map(({ label, name, readOnly, visible, required }) => {
|
|
91
78
|
if (label == undefined) {
|
|
92
|
-
const currentField =
|
|
93
|
-
return Object.assign(Object.assign({}, currentField), { name: name !== null && name !== void 0 ? name : currentField.name, readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : currentField.readOnly, visible: visible !== null && visible !== void 0 ? visible : currentField.visible, required: required !== null && required !== void 0 ? required : currentField.required
|
|
79
|
+
const currentField = dataUnit.getField(name);
|
|
80
|
+
return Object.assign(Object.assign({}, currentField), { name: name !== null && name !== void 0 ? name : currentField.name, readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : currentField.readOnly, visible: visible !== null && visible !== void 0 ? visible : currentField.visible, required: required !== null && required !== void 0 ? required : currentField.required });
|
|
94
81
|
}
|
|
95
|
-
return { name, label, readOnly, visible, required
|
|
82
|
+
return { name, label, readOnly, visible, required };
|
|
96
83
|
})
|
|
97
84
|
.filter(field => this.isFieldVisible(field, descriptionFilter));
|
|
98
85
|
}
|
|
99
|
-
if (
|
|
100
|
-
return
|
|
86
|
+
if (dataUnit != undefined) {
|
|
87
|
+
return dataUnit.metadata.fields
|
|
88
|
+
.filter(field => this.isFieldVisible(field, descriptionFilter))
|
|
89
|
+
.map(({ label, name, readOnly }) => { return { label, name, readOnly }; });
|
|
101
90
|
}
|
|
102
|
-
|
|
103
|
-
.filter(field => this.isFieldVisible(field, descriptionFilter))
|
|
104
|
-
.map(({ label, name, readOnly, visible, required, properties }) => ({ label, name, readOnly, visible, required, tab: properties === null || properties === void 0 ? void 0 : properties.UITabName }));
|
|
105
|
-
return filteredFields;
|
|
91
|
+
return [];
|
|
106
92
|
}
|
|
107
93
|
isFieldVisible(field, descriptionFilter) {
|
|
108
94
|
if (field.visible === false) {
|
|
@@ -116,7 +102,7 @@ class SnkFormConfigManager {
|
|
|
116
102
|
return normalizedText.includes(normalizedFilter);
|
|
117
103
|
}
|
|
118
104
|
getFormConfig(dataUnit, ignoreReadOnlyFormFields) {
|
|
119
|
-
let fields = this.getFieldsList();
|
|
105
|
+
let fields = this.getFieldsList(dataUnit);
|
|
120
106
|
if (ignoreReadOnlyFormFields) {
|
|
121
107
|
fields = fields.filter(field => {
|
|
122
108
|
if (dataUnit) {
|
|
@@ -169,44 +155,6 @@ class SnkFormConfigManager {
|
|
|
169
155
|
async fetchDefaultConfig() {
|
|
170
156
|
return this.getFormConfigFetcher().fetchDefaultConfig(this._configName, this._resourceID);
|
|
171
157
|
}
|
|
172
|
-
parseObjectList(object) {
|
|
173
|
-
if (!object) {
|
|
174
|
-
return [];
|
|
175
|
-
}
|
|
176
|
-
return Array.isArray(object) ? object : [object];
|
|
177
|
-
}
|
|
178
|
-
buildFormMetadataUITabs(config) {
|
|
179
|
-
var _a;
|
|
180
|
-
const hasConfig = this.hasConfig(config);
|
|
181
|
-
if (!this._dataUnit || hasConfig) {
|
|
182
|
-
return config;
|
|
183
|
-
}
|
|
184
|
-
config = this.getFormConfig(this._dataUnit, false);
|
|
185
|
-
config.tabs = this.parseObjectList(config.tabs);
|
|
186
|
-
config.emptyConfig = false;
|
|
187
|
-
config.defaultConfiguration = true;
|
|
188
|
-
const fields = this._dataUnit.metadata.fields;
|
|
189
|
-
for (const currentField of fields) {
|
|
190
|
-
const field = config.fields.find(field => field.name === currentField.name);
|
|
191
|
-
const uiTabName = (_a = currentField.properties) === null || _a === void 0 ? void 0 : _a.UITabName;
|
|
192
|
-
if (!uiTabName || uiTabName === constants.TAB_NAMES.main) {
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
const haveTab = config.tabs.some((tab) => tab.label === uiTabName);
|
|
196
|
-
if (!haveTab) {
|
|
197
|
-
config.tabs.push({
|
|
198
|
-
label: uiTabName,
|
|
199
|
-
name: uiTabName,
|
|
200
|
-
order: 0,
|
|
201
|
-
visible: true,
|
|
202
|
-
});
|
|
203
|
-
}
|
|
204
|
-
if (field) {
|
|
205
|
-
field.tab = uiTabName;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
return config;
|
|
209
|
-
}
|
|
210
158
|
}
|
|
211
159
|
|
|
212
160
|
exports.SnkFormConfigManager = SnkFormConfigManager;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
4
|
+
const formConfigFetcher = require('./form-config-fetcher-feb08214.js');
|
|
5
5
|
|
|
6
6
|
class AuthFetcher extends formConfigFetcher.ResourceFetcher {
|
|
7
7
|
getData(resourceID) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
|
-
const DataFetcher = require('./DataFetcher-
|
|
4
|
+
const DataFetcher = require('./DataFetcher-77729a93.js');
|
|
5
5
|
const constants = require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
6
6
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -4,20 +4,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const DataFetcher = require('./DataFetcher-
|
|
7
|
+
const DataFetcher = require('./DataFetcher-77729a93.js');
|
|
8
8
|
const ParamType = require('./ParamType-90b440a0.js');
|
|
9
|
-
require('./pesquisa-fetcher-
|
|
9
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
10
10
|
require('./index-1dfc7a6e.js');
|
|
11
11
|
require('./ISave-e91b70a7.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
-
require('./dataunit-fetcher-
|
|
14
|
+
require('./dataunit-fetcher-d4873076.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
|
-
require('./form-config-fetcher-
|
|
16
|
+
require('./form-config-fetcher-feb08214.js');
|
|
17
17
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
|
18
18
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
19
19
|
const CheckMode = require('@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode');
|
|
20
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
20
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
21
21
|
const constants = require('./constants-35ddd366.js');
|
|
22
22
|
require('./PrintUtils-bcaeb82f.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
9
|
-
const DataFetcher = require('./DataFetcher-
|
|
10
|
-
const authFetcher = require('./auth-fetcher-
|
|
11
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
12
|
-
const pesquisaFetcher = require('./pesquisa-fetcher-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
9
|
+
const DataFetcher = require('./DataFetcher-77729a93.js');
|
|
10
|
+
const authFetcher = require('./auth-fetcher-29bb791c.js');
|
|
11
|
+
const dataunitFetcher = require('./dataunit-fetcher-d4873076.js');
|
|
12
|
+
const pesquisaFetcher = require('./pesquisa-fetcher-a1d0353f.js');
|
|
13
13
|
const SnkMessageBuilder = require('./SnkMessageBuilder-cceebbae.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
14
|
+
require('./form-config-fetcher-feb08214.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
|
17
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const DataFetcher = require('./DataFetcher-
|
|
8
|
-
require('./pesquisa-fetcher-
|
|
7
|
+
const DataFetcher = require('./DataFetcher-77729a93.js');
|
|
8
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
9
9
|
require('./index-1dfc7a6e.js');
|
|
10
10
|
const ISave = require('./ISave-e91b70a7.js');
|
|
11
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
11
|
+
const dataunitFetcher = require('./dataunit-fetcher-d4873076.js');
|
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
13
|
-
require('./form-config-fetcher-
|
|
13
|
+
require('./form-config-fetcher-feb08214.js');
|
|
14
14
|
const constants = require('./constants-35ddd366.js');
|
|
15
|
-
const authFetcher = require('./auth-fetcher-
|
|
15
|
+
const authFetcher = require('./auth-fetcher-29bb791c.js');
|
|
16
16
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -117,21 +117,23 @@ const SERVICE = {
|
|
|
117
117
|
download: "AnexoSistemaSP.baixar",
|
|
118
118
|
};
|
|
119
119
|
class AnexoSistemaFetcher {
|
|
120
|
-
constructor(entityName,
|
|
120
|
+
constructor(entityName, dataUnitName) {
|
|
121
121
|
var _a;
|
|
122
122
|
this.entityName = entityName;
|
|
123
|
-
this.registerKey = registerKey;
|
|
124
123
|
this.dataUnitName = dataUnitName;
|
|
125
124
|
this.validateFields = (fields) => {
|
|
126
125
|
if (!!fields.LINK && !!fields.NOMEARQUIVO)
|
|
127
126
|
throw new Error(ISave.SaveErrorsEnum.LINK_AND_FILE_AT_THE_SAME_TIME);
|
|
128
127
|
if (!fields.LINK && !fields.NOMEARQUIVO)
|
|
129
128
|
throw new Error(ISave.SaveErrorsEnum.ANY_LINK_OR_FILE_FILLED);
|
|
130
|
-
if (!this.
|
|
129
|
+
if (!this._registerKey)
|
|
131
130
|
throw new Error('Register key can not be null');
|
|
132
131
|
};
|
|
133
132
|
this.resourceID = (window["resourceID"] || ((_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID));
|
|
134
133
|
}
|
|
134
|
+
set registerKey(registerKey) {
|
|
135
|
+
this._registerKey = registerKey;
|
|
136
|
+
}
|
|
135
137
|
async save(change) {
|
|
136
138
|
var _a, _b;
|
|
137
139
|
let { updatingFields: fields } = change;
|
|
@@ -150,7 +152,7 @@ class AnexoSistemaFetcher {
|
|
|
150
152
|
nameAttach: fileInfo === null || fileInfo === void 0 ? void 0 : fileInfo.name,
|
|
151
153
|
link: fields.LINK,
|
|
152
154
|
nameEntity: this.entityName,
|
|
153
|
-
pkEntity: this.
|
|
155
|
+
pkEntity: this._registerKey,
|
|
154
156
|
typeAcess: fields.TIPOACESSO,
|
|
155
157
|
typeApres: fields.TIPOAPRES,
|
|
156
158
|
}
|
|
@@ -190,7 +192,7 @@ class AnexoSistemaFetcher {
|
|
|
190
192
|
nameAttach: fileInfo === null || fileInfo === void 0 ? void 0 : fileInfo.name,
|
|
191
193
|
link: fields.LINK,
|
|
192
194
|
nameEntity: this.entityName,
|
|
193
|
-
pkEntity: this.
|
|
195
|
+
pkEntity: this._registerKey,
|
|
194
196
|
typeAcess: fields.TIPOACESSO,
|
|
195
197
|
typeApres: fields.TIPOAPRES,
|
|
196
198
|
}
|
|
@@ -660,6 +662,9 @@ const SnkAttach = class {
|
|
|
660
662
|
this.loadAttachmentDataUnit();
|
|
661
663
|
}
|
|
662
664
|
if (oldRegisterKey !== newRegisterKey) {
|
|
665
|
+
if (this._currentFetcher instanceof AnexoSistemaFetcher) {
|
|
666
|
+
this._currentFetcher.registerKey = newRegisterKey;
|
|
667
|
+
}
|
|
663
668
|
await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadData());
|
|
664
669
|
}
|
|
665
670
|
}
|
|
@@ -672,7 +677,9 @@ const SnkAttach = class {
|
|
|
672
677
|
}
|
|
673
678
|
this.returnToGridMode();
|
|
674
679
|
if (this.fetcherType === "AnexoSistema") {
|
|
675
|
-
|
|
680
|
+
const anexoSistemaFetcher = new AnexoSistemaFetcher(this.entityName, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
681
|
+
anexoSistemaFetcher.registerKey = this.registerKey;
|
|
682
|
+
this._currentFetcher = anexoSistemaFetcher;
|
|
676
683
|
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
677
684
|
await ((_c = this._currentDataUnit) === null || _c === void 0 ? void 0 : _c.loadData());
|
|
678
685
|
return;
|
|
@@ -744,7 +751,9 @@ const SnkAttach = class {
|
|
|
744
751
|
async loadAnexoSistema() {
|
|
745
752
|
var _a, _b, _c;
|
|
746
753
|
this._currentDataUnit = new dataunitFetcher.DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
|
|
747
|
-
|
|
754
|
+
const anexoSistemaFetcher = new AnexoSistemaFetcher(this.entityName, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
755
|
+
anexoSistemaFetcher.registerKey = this.registerKey;
|
|
756
|
+
this._currentFetcher = anexoSistemaFetcher;
|
|
748
757
|
if (!this._currentDataUnit.metadata) {
|
|
749
758
|
await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadMetadata());
|
|
750
759
|
this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
|
|
@@ -784,7 +793,9 @@ const SnkAttach = class {
|
|
|
784
793
|
initDataUnitLoaders() {
|
|
785
794
|
var _a, _b, _c;
|
|
786
795
|
if (this.fetcherType === "AnexoSistema") {
|
|
787
|
-
|
|
796
|
+
const anexoSistemaFetcher = new AnexoSistemaFetcher(this.entityName, (_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.name);
|
|
797
|
+
anexoSistemaFetcher.registerKey = this.registerKey;
|
|
798
|
+
this._currentFetcher = anexoSistemaFetcher;
|
|
788
799
|
this._currentDataUnitBuilder = new AnexoSistemaDataUnitFactory(this.entityName, this.getMessage.bind(this));
|
|
789
800
|
(_b = this._currentDataUnitBuilder) === null || _b === void 0 ? void 0 : _b.initLoaders(this._currentDataUnit, this._currentFetcher, this.returnToGridMode.bind(this));
|
|
790
801
|
}
|
|
@@ -5,17 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
8
|
-
require('./DataFetcher-
|
|
9
|
-
require('./pesquisa-fetcher-
|
|
8
|
+
require('./DataFetcher-77729a93.js');
|
|
9
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
10
10
|
const index$1 = require('./index-1dfc7a6e.js');
|
|
11
11
|
require('./ISave-e91b70a7.js');
|
|
12
12
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
-
require('./dataunit-fetcher-
|
|
14
|
+
require('./dataunit-fetcher-d4873076.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
|
-
require('./form-config-fetcher-
|
|
16
|
+
require('./form-config-fetcher-feb08214.js');
|
|
17
17
|
const constants = require('./constants-35ddd366.js');
|
|
18
|
-
const authFetcher = require('./auth-fetcher-
|
|
18
|
+
const authFetcher = require('./auth-fetcher-29bb791c.js');
|
|
19
19
|
require('./index-102ba62d.js');
|
|
20
20
|
require('./PrintUtils-bcaeb82f.js');
|
|
21
21
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -7,15 +7,15 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const index = require('./index-1dfc7a6e.js');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
const DataFetcher = require('./DataFetcher-
|
|
11
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
12
|
-
require('./pesquisa-fetcher-
|
|
10
|
+
const DataFetcher = require('./DataFetcher-77729a93.js');
|
|
11
|
+
const snkDataUnit = require('./snk-data-unit-f0221097.js');
|
|
12
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
13
13
|
require('./ISave-e91b70a7.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
require('./dataunit-fetcher-
|
|
16
|
+
require('./dataunit-fetcher-d4873076.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-feb08214.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
20
|
require('./SnkMessageBuilder-cceebbae.js');
|
|
21
21
|
require('./RecordIDUtils-3735135c.js');
|
|
@@ -4,7 +4,7 @@ const index = require('./index-f9e81701.js');
|
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
6
6
|
const SnkMessageBuilder = require('./SnkMessageBuilder-cceebbae.js');
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-d4873076.js');
|
|
8
8
|
const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
|
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
10
10
|
|
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
5
|
+
const snkDataUnit = require('./snk-data-unit-f0221097.js');
|
|
6
6
|
require('./index-f9e81701.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
require('./SnkMessageBuilder-cceebbae.js');
|
|
10
|
-
require('./dataunit-fetcher-
|
|
11
|
-
require('./DataFetcher-
|
|
10
|
+
require('./dataunit-fetcher-d4873076.js');
|
|
11
|
+
require('./DataFetcher-77729a93.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -4,22 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-beebf47a.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
|
-
require('./DataFetcher-
|
|
10
|
-
require('./pesquisa-fetcher-
|
|
9
|
+
require('./DataFetcher-77729a93.js');
|
|
10
|
+
require('./pesquisa-fetcher-a1d0353f.js');
|
|
11
11
|
const index$1 = require('./index-1dfc7a6e.js');
|
|
12
12
|
require('./ISave-e91b70a7.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
|
-
require('./dataunit-fetcher-
|
|
15
|
+
require('./dataunit-fetcher-d4873076.js');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
|
-
require('./form-config-fetcher-
|
|
17
|
+
require('./form-config-fetcher-feb08214.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
|
|
19
19
|
const constants = require('./constants-35ddd366.js');
|
|
20
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
20
|
+
const snkGuidesViewer = require('./snk-guides-viewer-aafc3073.js');
|
|
21
21
|
const SnkMessageBuilder = require('./SnkMessageBuilder-cceebbae.js');
|
|
22
|
-
require('./ConfigStorage-
|
|
22
|
+
require('./ConfigStorage-e49214c6.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
24
24
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
25
25
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -291,7 +291,7 @@ const SnkDetailView = class {
|
|
|
291
291
|
}
|
|
292
292
|
componentWillLoad() {
|
|
293
293
|
this._configName = `dynaform.${this.entityName}`;
|
|
294
|
-
this.formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata()
|
|
294
|
+
this.formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata());
|
|
295
295
|
this.formConfigManager.loadConfig();
|
|
296
296
|
if (this.messagesBuilder == undefined) {
|
|
297
297
|
this.messagesBuilder = new SnkMessageBuilder.SnkMessageBuilder(this.entityName);
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-f9e81701.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
9
9
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
10
10
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
11
11
|
const index = require('./index-c5771aba.js');
|
|
12
12
|
const filterNumberVariation = require('./filterNumberVariation-d65332da.js');
|
|
13
13
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
14
14
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
|
|
15
|
-
require('./form-config-fetcher-
|
|
16
|
-
require('./DataFetcher-
|
|
15
|
+
require('./form-config-fetcher-feb08214.js');
|
|
16
|
+
require('./DataFetcher-77729a93.js');
|
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
19
19
|
|
|
@@ -6,10 +6,10 @@ const index = require('./index-f9e81701.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
9
|
+
const ConfigStorage = require('./ConfigStorage-e49214c6.js');
|
|
10
10
|
const filterType_enum = require('./filter-type.enum-b14ce507.js');
|
|
11
|
-
require('./form-config-fetcher-
|
|
12
|
-
require('./DataFetcher-
|
|
11
|
+
require('./form-config-fetcher-feb08214.js');
|
|
12
|
+
require('./DataFetcher-77729a93.js');
|
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
|
|
@@ -7,9 +7,9 @@ const Sortable = require('./Sortable-fb1c4cbb.js');
|
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
9
|
const constants = require('./constants-35ddd366.js');
|
|
10
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
10
|
+
const formConfigFetcher = require('./form-config-fetcher-feb08214.js');
|
|
11
11
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
12
|
-
require('./DataFetcher-
|
|
12
|
+
require('./DataFetcher-77729a93.js');
|
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
|
|
@@ -540,6 +540,9 @@ const SnkFormConfig = class {
|
|
|
540
540
|
case formConfigFetcher.UserConfigType.DEFAULT:
|
|
541
541
|
config = await this.configManager.fetchDefaultConfig();
|
|
542
542
|
break;
|
|
543
|
+
case formConfigFetcher.UserConfigType.DEFAULT:
|
|
544
|
+
config = await this.configManager.fetchDefaultConfig();
|
|
545
|
+
break;
|
|
543
546
|
}
|
|
544
547
|
if (config != undefined) {
|
|
545
548
|
this._formConfig = config;
|
|
@@ -741,9 +744,6 @@ const SnkFormConfig = class {
|
|
|
741
744
|
if (layoutFormConfig == undefined) {
|
|
742
745
|
layoutFormConfig = [];
|
|
743
746
|
}
|
|
744
|
-
if (this._formConfig.defaultConfiguration) {
|
|
745
|
-
return layoutFormConfig;
|
|
746
|
-
}
|
|
747
747
|
return this._formConfig.tabs.map((tab) => {
|
|
748
748
|
return layoutFormConfig.find(config => { var _a, _b; return ((_a = tab.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = config.tab) === null || _b === void 0 ? void 0 : _b.toLowerCase()); })
|
|
749
749
|
|| { tab: tab.label, groups: [], visible: tab.visible };
|