@sankhyalabs/sankhyablocks 10.1.0-dev.13 → 10.1.0-dev.14
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-5c0590b3.js → ConfigStorage-a4e1e518.js} +2 -2
- package/dist/cjs/{DataFetcher-5181a917.js → DataFetcher-0b6aa084.js} +11 -22
- package/dist/cjs/{ISave-0f98a457.js → ISave-2c455a77.js} +1 -1
- package/dist/cjs/{SnkFormConfigManager-1907ffed.js → SnkFormConfigManager-b8c81493.js} +2 -2
- package/dist/cjs/{SnkMultiSelectionListDataSource-e4e38139.js → SnkMultiSelectionListDataSource-3f561345.js} +4 -4
- package/dist/cjs/{auth-fetcher-cff55b1f.js → auth-fetcher-7e7796c9.js} +1 -1
- package/dist/cjs/{dataunit-fetcher-1ba5e2cc.js → dataunit-fetcher-8dffbcdf.js} +1 -1
- package/dist/cjs/{form-config-fetcher-4a679e23.js → form-config-fetcher-5516d68a.js} +1 -1
- package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -4
- package/dist/cjs/snk-actions-button_9.cjs.entry.js +5 -5
- package/dist/cjs/snk-application.cjs.entry.js +6 -6
- package/dist/cjs/snk-attach.cjs.entry.js +5 -5
- 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-061487a8.js → snk-data-unit-b8ea81e1.js} +2 -2
- package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
- package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
- package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
- package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
- package/dist/cjs/snk-form_2.cjs.entry.js +4 -4
- package/dist/cjs/snk-grid.cjs.entry.js +6 -6
- package/dist/cjs/{snk-guides-viewer-2efe60a7.js → snk-guides-viewer-61701970.js} +5 -5
- package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
- package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
- package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
- package/dist/cjs/snk-simple-crud.cjs.entry.js +7 -7
- package/dist/collection/lib/message/SnkMessageBuilder.js +11 -2
- package/dist/components/DataFetcher.js +11 -2
- package/dist/esm/{ConfigStorage-bd096633.js → ConfigStorage-39ac8fef.js} +2 -2
- package/dist/esm/{DataFetcher-5780ad39.js → DataFetcher-0b9da57d.js} +11 -2
- package/dist/esm/{ISave-8a22ec18.js → ISave-f1c9269b.js} +1 -1
- package/dist/esm/{SnkFormConfigManager-437e98bb.js → SnkFormConfigManager-a87566c8.js} +2 -2
- package/dist/esm/{SnkMultiSelectionListDataSource-42125ef4.js → SnkMultiSelectionListDataSource-2d1ea0c5.js} +4 -4
- package/dist/esm/{auth-fetcher-28b9d0db.js → auth-fetcher-acdc1cb4.js} +1 -1
- package/dist/esm/{dataunit-fetcher-c4251d80.js → dataunit-fetcher-4c312b43.js} +1 -1
- package/dist/esm/{form-config-fetcher-d0536a71.js → form-config-fetcher-7cda6254.js} +1 -1
- package/dist/esm/pesquisa-grid_2.entry.js +4 -4
- package/dist/esm/snk-actions-button_9.entry.js +5 -5
- package/dist/esm/snk-application.entry.js +6 -6
- package/dist/esm/snk-attach.entry.js +5 -5
- 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-4a1ef77f.js → snk-data-unit-6f31ec56.js} +2 -2
- package/dist/esm/snk-data-unit.entry.js +3 -3
- package/dist/esm/snk-detail-view.entry.js +7 -7
- package/dist/esm/snk-filter-bar_4.entry.js +3 -3
- package/dist/esm/snk-filter-modal-item.entry.js +3 -3
- package/dist/esm/snk-form_2.entry.js +4 -4
- package/dist/esm/snk-grid.entry.js +6 -6
- package/dist/esm/{snk-guides-viewer-c182d058.js → snk-guides-viewer-c31259f0.js} +5 -5
- package/dist/esm/snk-guides-viewer.entry.js +7 -7
- package/dist/esm/snk-personalized-filter.entry.js +3 -3
- package/dist/esm/snk-pesquisa.entry.js +4 -4
- package/dist/esm/snk-simple-crud.entry.js +7 -7
- package/dist/sankhyablocks/{p-01ca59fc.entry.js → p-04bbdf6f.entry.js} +1 -1
- package/dist/sankhyablocks/{p-fd05e31d.entry.js → p-0814b16c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-0e4f8b86.js → p-1f310bc6.js} +1 -1
- package/dist/sankhyablocks/{p-42272de8.entry.js → p-20349480.entry.js} +1 -1
- package/dist/sankhyablocks/{p-aca74b21.js → p-2ac55a5d.js} +1 -1
- package/dist/sankhyablocks/{p-82a3d522.entry.js → p-2d133b6e.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d3534985.js → p-3f68a254.js} +1 -1
- package/dist/sankhyablocks/{p-3c046287.js → p-48a5c311.js} +2 -2
- package/dist/sankhyablocks/{p-55d7abe7.js → p-4b1c26ae.js} +1 -1
- package/dist/sankhyablocks/p-52691b42.js +1 -0
- package/dist/sankhyablocks/{p-2e882241.entry.js → p-52c0cade.entry.js} +1 -1
- package/dist/sankhyablocks/{p-6e5af618.entry.js → p-5fd4f0f6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1b1373b6.js → p-6768f176.js} +1 -1
- package/dist/sankhyablocks/{p-903fa0b4.entry.js → p-6b9833c7.entry.js} +1 -1
- package/dist/sankhyablocks/{p-1037ea7b.entry.js → p-728959a6.entry.js} +1 -1
- package/dist/sankhyablocks/{p-d2ec9a24.entry.js → p-74389ec4.entry.js} +1 -1
- package/dist/sankhyablocks/p-7af6e6b8.entry.js +1 -0
- package/dist/sankhyablocks/{p-4db9dbf8.js → p-7ee6b1bf.js} +1 -1
- package/dist/sankhyablocks/{p-a1d23fef.js → p-8027f732.js} +1 -1
- package/dist/sankhyablocks/{p-028fb380.entry.js → p-8ce94b62.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9ab6ae1e.js → p-9e4555ab.js} +2 -2
- package/dist/sankhyablocks/{p-03f02b12.entry.js → p-a5e0a780.entry.js} +1 -1
- package/dist/sankhyablocks/{p-78d4b3e3.entry.js → p-af3aface.entry.js} +1 -1
- package/dist/sankhyablocks/{p-b04db4ac.entry.js → p-b47acee0.entry.js} +1 -1
- package/dist/sankhyablocks/{p-9f16d33e.entry.js → p-bdd4f02c.entry.js} +1 -1
- package/dist/sankhyablocks/{p-5d408e7e.entry.js → p-fa8c2485.entry.js} +1 -1
- package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
- package/package.json +1 -1
- package/dist/sankhyablocks/p-30a58e29.entry.js +0 -1
- package/dist/sankhyablocks/p-b9699067.js +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
4
|
-
const DataFetcher = require('./DataFetcher-
|
|
3
|
+
const formConfigFetcher = require('./form-config-fetcher-5516d68a.js');
|
|
4
|
+
const DataFetcher = require('./DataFetcher-0b6aa084.js');
|
|
5
5
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
@@ -4,26 +4,6 @@ const core = require('@sankhyalabs/core');
|
|
|
4
4
|
const PrintUtils = require('./PrintUtils-bcaeb82f.js');
|
|
5
5
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
6
6
|
|
|
7
|
-
function _interopNamespace(e) {
|
|
8
|
-
if (e && e.__esModule) return e;
|
|
9
|
-
var n = Object.create(null);
|
|
10
|
-
if (e) {
|
|
11
|
-
Object.keys(e).forEach(function (k) {
|
|
12
|
-
if (k !== 'default') {
|
|
13
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
14
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
get: function () {
|
|
17
|
-
return e[k];
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n['default'] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
7
|
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
|
28
8
|
|
|
29
9
|
function createCommonjsModule(fn, basedir, module) {
|
|
@@ -9437,8 +9417,17 @@ class SnkMessageBuilder {
|
|
|
9437
9417
|
const messagesUrl = await this._application.getApplicationPath();
|
|
9438
9418
|
const langSuffix = (this._lang !== core.LangUtils.ELanguages.PT_BR) ? `-${this._lang}` : "";
|
|
9439
9419
|
const fileUrl = `${messagesUrl}/messages/appmessages${langSuffix}.js`;
|
|
9440
|
-
const
|
|
9441
|
-
|
|
9420
|
+
const response = await fetch(fileUrl);
|
|
9421
|
+
if (!response.ok) {
|
|
9422
|
+
throw new Error(`Não foi possível carregar as mensagens: ${response.status} ${response.statusText}`);
|
|
9423
|
+
}
|
|
9424
|
+
let scriptContent = await response.text();
|
|
9425
|
+
if (scriptContent.trim().startsWith('<!DOCTYPE') || scriptContent.trim().startsWith('<html')) {
|
|
9426
|
+
throw new Error('Não foi encontrado um arquivo de mensagens válido.');
|
|
9427
|
+
}
|
|
9428
|
+
scriptContent = scriptContent.replace(/export\s+default\s+/g, 'return ');
|
|
9429
|
+
const func = new Function(scriptContent);
|
|
9430
|
+
return func();
|
|
9442
9431
|
}
|
|
9443
9432
|
}
|
|
9444
9433
|
exports.OperationMap = void 0;
|
|
@@ -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-0b6aa084.js');
|
|
5
5
|
|
|
6
6
|
function buildGridMetadata(rawValue) {
|
|
7
7
|
const fieldsMetadata = buildFieldsMetadata(rawValue.fieldsMetadata);
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
const core = require('@sankhyalabs/core');
|
|
4
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
5
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
4
|
+
const ConfigStorage = require('./ConfigStorage-a4e1e518.js');
|
|
5
|
+
const formConfigFetcher = require('./form-config-fetcher-5516d68a.js');
|
|
6
6
|
const constants = require('./constants-6d82e405.js');
|
|
7
7
|
|
|
8
8
|
class SnkFormConfigManager {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
const DataFetcher = require('./DataFetcher-
|
|
4
|
-
require('./ISave-
|
|
3
|
+
const DataFetcher = require('./DataFetcher-0b6aa084.js');
|
|
4
|
+
require('./ISave-2c455a77.js');
|
|
5
5
|
const core = require('@sankhyalabs/core');
|
|
6
6
|
const index$1 = require('./index-e3e39724.js');
|
|
7
7
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
8
8
|
const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
9
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
9
|
+
const dataunitFetcher = require('./dataunit-fetcher-8dffbcdf.js');
|
|
10
10
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
11
|
-
require('./form-config-fetcher-
|
|
11
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
12
12
|
require('./constants-6d82e405.js');
|
|
13
13
|
const index = require('./index-1cf293c1.js');
|
|
14
14
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
@@ -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-5516d68a.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-0b6aa084.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');
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
|
6
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
7
|
-
require('./DataFetcher-
|
|
8
|
-
const ISave = require('./ISave-
|
|
6
|
+
const dataunitFetcher = require('./dataunit-fetcher-8dffbcdf.js');
|
|
7
|
+
require('./DataFetcher-0b6aa084.js');
|
|
8
|
+
const ISave = require('./ISave-2c455a77.js');
|
|
9
9
|
require('@sankhyalabs/core');
|
|
10
10
|
require('./index-e3e39724.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
14
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
15
15
|
require('./constants-6d82e405.js');
|
|
16
16
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
17
17
|
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-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const DataFetcher = require('./DataFetcher-
|
|
7
|
+
const DataFetcher = require('./DataFetcher-0b6aa084.js');
|
|
8
8
|
const ParamType = require('./ParamType-90b440a0.js');
|
|
9
|
-
require('./ISave-
|
|
9
|
+
require('./ISave-2c455a77.js');
|
|
10
10
|
require('./index-e3e39724.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
|
-
require('./dataunit-fetcher-
|
|
13
|
+
require('./dataunit-fetcher-8dffbcdf.js');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
15
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
15
|
+
const formConfigFetcher = require('./form-config-fetcher-5516d68a.js');
|
|
16
16
|
const constants = require('./constants-6d82e405.js');
|
|
17
17
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
18
18
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
|
19
19
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
20
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
20
|
+
const ConfigStorage = require('./ConfigStorage-a4e1e518.js');
|
|
21
21
|
const ServicesNumberingConfig = require('./ServicesNumberingConfig-69038a0f.js');
|
|
22
22
|
require('./PrintUtils-bcaeb82f.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -5,15 +5,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-1cf293c1.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 ISave = require('./ISave-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-a4e1e518.js');
|
|
9
|
+
const DataFetcher = require('./DataFetcher-0b6aa084.js');
|
|
10
|
+
const authFetcher = require('./auth-fetcher-7e7796c9.js');
|
|
11
|
+
const dataunitFetcher = require('./dataunit-fetcher-8dffbcdf.js');
|
|
12
|
+
const ISave = require('./ISave-2c455a77.js');
|
|
13
13
|
const constants = require('./constants-6d82e405.js');
|
|
14
14
|
require('./index-e3e39724.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
16
|
+
const formConfigFetcher = require('./form-config-fetcher-5516d68a.js');
|
|
17
17
|
require('./PrintUtils-bcaeb82f.js');
|
|
18
18
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
19
19
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const DataFetcher = require('./DataFetcher-
|
|
8
|
-
const ISave = require('./ISave-
|
|
7
|
+
const DataFetcher = require('./DataFetcher-0b6aa084.js');
|
|
8
|
+
const ISave = require('./ISave-2c455a77.js');
|
|
9
9
|
require('./index-e3e39724.js');
|
|
10
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
10
|
+
const dataunitFetcher = require('./dataunit-fetcher-8dffbcdf.js');
|
|
11
11
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
12
|
-
require('./form-config-fetcher-
|
|
12
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
13
13
|
const constants = require('./constants-6d82e405.js');
|
|
14
|
-
const authFetcher = require('./auth-fetcher-
|
|
14
|
+
const authFetcher = require('./auth-fetcher-7e7796c9.js');
|
|
15
15
|
const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
|
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
|
17
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
@@ -4,16 +4,16 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
require('./DataFetcher-
|
|
8
|
-
require('./ISave-
|
|
7
|
+
require('./DataFetcher-0b6aa084.js');
|
|
8
|
+
require('./ISave-2c455a77.js');
|
|
9
9
|
const index$1 = require('./index-e3e39724.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
-
require('./dataunit-fetcher-
|
|
12
|
+
require('./dataunit-fetcher-8dffbcdf.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
14
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
15
15
|
const constants = require('./constants-6d82e405.js');
|
|
16
|
-
const authFetcher = require('./auth-fetcher-
|
|
16
|
+
const authFetcher = require('./auth-fetcher-7e7796c9.js');
|
|
17
17
|
const ServicesNumberingConfig = require('./ServicesNumberingConfig-69038a0f.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
@@ -8,14 +8,14 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
8
8
|
const IFetchDataExporterParams = require('./IFetchDataExporterParams-e78ec415.js');
|
|
9
9
|
const index = require('./index-e3e39724.js');
|
|
10
10
|
const constants = require('./constants-6d82e405.js');
|
|
11
|
-
const DataFetcher = require('./DataFetcher-
|
|
12
|
-
const snkDataUnit = require('./snk-data-unit-
|
|
13
|
-
require('./ISave-
|
|
11
|
+
const DataFetcher = require('./DataFetcher-0b6aa084.js');
|
|
12
|
+
const snkDataUnit = require('./snk-data-unit-b8ea81e1.js');
|
|
13
|
+
require('./ISave-2c455a77.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-8dffbcdf.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
require('./form-config-fetcher-
|
|
18
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
19
19
|
require('./PrintUtils-bcaeb82f.js');
|
|
20
20
|
require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
21
21
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
const index = require('./index-1cf293c1.js');
|
|
4
4
|
const core = require('@sankhyalabs/core');
|
|
5
5
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
6
|
-
const DataFetcher = require('./DataFetcher-
|
|
7
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
6
|
+
const DataFetcher = require('./DataFetcher-0b6aa084.js');
|
|
7
|
+
const dataunitFetcher = require('./dataunit-fetcher-8dffbcdf.js');
|
|
8
8
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
9
9
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
10
10
|
|
|
@@ -2,14 +2,14 @@
|
|
|
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-b8ea81e1.js');
|
|
6
6
|
require('./index-1cf293c1.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
|
-
require('./DataFetcher-
|
|
9
|
+
require('./DataFetcher-0b6aa084.js');
|
|
10
10
|
require('./PrintUtils-bcaeb82f.js');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
-
require('./dataunit-fetcher-
|
|
12
|
+
require('./dataunit-fetcher-8dffbcdf.js');
|
|
13
13
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
15
15
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -4,21 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-b8c81493.js');
|
|
8
8
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
9
|
-
const DataFetcher = require('./DataFetcher-
|
|
10
|
-
require('./ISave-
|
|
9
|
+
const DataFetcher = require('./DataFetcher-0b6aa084.js');
|
|
10
|
+
require('./ISave-2c455a77.js');
|
|
11
11
|
const index$1 = require('./index-e3e39724.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-8dffbcdf.js');
|
|
15
15
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
16
|
-
require('./form-config-fetcher-
|
|
16
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
17
17
|
const constants = require('./constants-6d82e405.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
|
|
19
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
19
|
+
const snkGuidesViewer = require('./snk-guides-viewer-61701970.js');
|
|
20
20
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
21
|
-
require('./ConfigStorage-
|
|
21
|
+
require('./ConfigStorage-a4e1e518.js');
|
|
22
22
|
require('./PrintUtils-bcaeb82f.js');
|
|
23
23
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
24
24
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index$1 = require('./index-1cf293c1.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-a4e1e518.js');
|
|
9
9
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
|
|
10
10
|
const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
|
|
11
11
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
@@ -16,8 +16,8 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
|
16
16
|
const defaultFilters = require('./default-filters-a09bf82b.js');
|
|
17
17
|
const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
|
|
18
18
|
const filterValidate = require('./filter-validate-cb4ed41a.js');
|
|
19
|
-
require('./form-config-fetcher-
|
|
20
|
-
require('./DataFetcher-
|
|
19
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
20
|
+
require('./DataFetcher-0b6aa084.js');
|
|
21
21
|
require('./PrintUtils-bcaeb82f.js');
|
|
22
22
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
23
23
|
|
|
@@ -4,12 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
7
|
+
const ConfigStorage = require('./ConfigStorage-a4e1e518.js');
|
|
8
8
|
const presentationMode = require('./presentationMode-52ec3bdd.js');
|
|
9
9
|
const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
|
|
10
10
|
const filterType_enum = require('./filter-type.enum-2bb46d2a.js');
|
|
11
|
-
require('./form-config-fetcher-
|
|
12
|
-
require('./DataFetcher-
|
|
11
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
12
|
+
require('./DataFetcher-0b6aa084.js');
|
|
13
13
|
require('./PrintUtils-bcaeb82f.js');
|
|
14
14
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
15
15
|
|
|
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
7
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-b8c81493.js');
|
|
8
8
|
const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
|
|
9
9
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
10
10
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
11
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
11
|
+
const formConfigFetcher = require('./form-config-fetcher-5516d68a.js');
|
|
12
12
|
const constants = require('./constants-6d82e405.js');
|
|
13
13
|
const FormConfigHelper = require('./FormConfigHelper-28fe4668.js');
|
|
14
|
-
require('./ConfigStorage-
|
|
15
|
-
require('./DataFetcher-
|
|
14
|
+
require('./ConfigStorage-a4e1e518.js');
|
|
15
|
+
require('./DataFetcher-0b6aa084.js');
|
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
|
17
17
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
18
18
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
@@ -6,17 +6,17 @@ const index = require('./index-1cf293c1.js');
|
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
8
8
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
9
|
-
require('./DataFetcher-
|
|
10
|
-
require('./ISave-
|
|
11
|
-
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-
|
|
9
|
+
require('./DataFetcher-0b6aa084.js');
|
|
10
|
+
require('./ISave-2c455a77.js');
|
|
11
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-3f561345.js');
|
|
12
12
|
const index$1 = require('./index-e3e39724.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-8dffbcdf.js');
|
|
16
16
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
17
|
-
require('./form-config-fetcher-
|
|
17
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
18
18
|
require('./constants-6d82e405.js');
|
|
19
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
19
|
+
const ConfigStorage = require('./ConfigStorage-a4e1e518.js');
|
|
20
20
|
const index$2 = require('./index-13d05f03.js');
|
|
21
21
|
const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
22
22
|
const filterValidate = require('./filter-validate-cb4ed41a.js');
|
|
@@ -5,16 +5,16 @@ const core = require('@sankhyalabs/core');
|
|
|
5
5
|
const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
6
6
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
7
7
|
const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
8
|
-
require('./DataFetcher-
|
|
9
|
-
require('./ISave-
|
|
8
|
+
require('./DataFetcher-0b6aa084.js');
|
|
9
|
+
require('./ISave-2c455a77.js');
|
|
10
10
|
const index$1 = require('./index-e3e39724.js');
|
|
11
11
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
12
12
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
13
|
-
require('./dataunit-fetcher-
|
|
13
|
+
require('./dataunit-fetcher-8dffbcdf.js');
|
|
14
14
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
15
|
-
require('./form-config-fetcher-
|
|
15
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
16
16
|
const constants = require('./constants-6d82e405.js');
|
|
17
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
17
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-b8c81493.js');
|
|
18
18
|
const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
|
|
19
19
|
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
|
20
20
|
|
|
@@ -2,27 +2,27 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const snkGuidesViewer = require('./snk-guides-viewer-
|
|
5
|
+
const snkGuidesViewer = require('./snk-guides-viewer-61701970.js');
|
|
6
6
|
require('./index-1cf293c1.js');
|
|
7
7
|
require('@sankhyalabs/core');
|
|
8
8
|
require('@sankhyalabs/core/dist/dataunit/DataUnit');
|
|
9
9
|
require('@sankhyalabs/ezui/dist/collection/utils');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/form');
|
|
11
|
-
require('./DataFetcher-
|
|
11
|
+
require('./DataFetcher-0b6aa084.js');
|
|
12
12
|
require('./PrintUtils-bcaeb82f.js');
|
|
13
13
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
14
|
-
require('./ISave-
|
|
14
|
+
require('./ISave-2c455a77.js');
|
|
15
15
|
require('./index-e3e39724.js');
|
|
16
16
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
17
|
-
require('./dataunit-fetcher-
|
|
17
|
+
require('./dataunit-fetcher-8dffbcdf.js');
|
|
18
18
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
19
19
|
require('@sankhyalabs/core/dist/utils/SortingUtils');
|
|
20
20
|
require('./ResourceIDUtils-5ff86aa7.js');
|
|
21
21
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
22
|
-
require('./form-config-fetcher-
|
|
22
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
23
23
|
require('./constants-6d82e405.js');
|
|
24
|
-
require('./SnkFormConfigManager-
|
|
25
|
-
require('./ConfigStorage-
|
|
24
|
+
require('./SnkFormConfigManager-b8c81493.js');
|
|
25
|
+
require('./ConfigStorage-a4e1e518.js');
|
|
26
26
|
require('./taskbar-elements-fb5d1e08.js');
|
|
27
27
|
require('./index-13d05f03.js');
|
|
28
28
|
require('./taskbar-processor-2fba34a8.js');
|
|
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-7259cf65.js');
|
|
8
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
8
|
+
const ConfigStorage = require('./ConfigStorage-a4e1e518.js');
|
|
9
9
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
10
10
|
const index$1 = require('./index-62760a9c.js');
|
|
11
11
|
const index$2 = require('./index-13d05f03.js');
|
|
12
12
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
13
|
-
require('./form-config-fetcher-
|
|
14
|
-
require('./DataFetcher-
|
|
13
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
14
|
+
require('./DataFetcher-0b6aa084.js');
|
|
15
15
|
require('./PrintUtils-bcaeb82f.js');
|
|
16
16
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
17
17
|
|
|
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
const index = require('./index-1cf293c1.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const ISave = require('./ISave-
|
|
8
|
-
require('./DataFetcher-
|
|
7
|
+
const ISave = require('./ISave-2c455a77.js');
|
|
8
|
+
require('./DataFetcher-0b6aa084.js');
|
|
9
9
|
require('./index-e3e39724.js');
|
|
10
10
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
11
11
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
12
|
-
require('./dataunit-fetcher-
|
|
12
|
+
require('./dataunit-fetcher-8dffbcdf.js');
|
|
13
13
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
14
|
-
require('./form-config-fetcher-
|
|
14
|
+
require('./form-config-fetcher-5516d68a.js');
|
|
15
15
|
require('./constants-6d82e405.js');
|
|
16
16
|
require('./PrintUtils-bcaeb82f.js');
|
|
17
17
|
require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
|
|
@@ -7,18 +7,18 @@ const core = require('@sankhyalabs/core');
|
|
|
7
7
|
const utils = require('@sankhyalabs/ezui/dist/collection/utils');
|
|
8
8
|
const constants = require('./constants-6d82e405.js');
|
|
9
9
|
const taskbarElements = require('./taskbar-elements-fb5d1e08.js');
|
|
10
|
-
require('./DataFetcher-
|
|
11
|
-
require('./ISave-
|
|
12
|
-
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-
|
|
10
|
+
require('./DataFetcher-0b6aa084.js');
|
|
11
|
+
require('./ISave-2c455a77.js');
|
|
12
|
+
const SnkMultiSelectionListDataSource = require('./SnkMultiSelectionListDataSource-3f561345.js');
|
|
13
13
|
const index$1 = require('./index-e3e39724.js');
|
|
14
14
|
require('@sankhyalabs/ezui/dist/collection/utils/constants');
|
|
15
15
|
require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
|
|
16
|
-
const dataunitFetcher = require('./dataunit-fetcher-
|
|
16
|
+
const dataunitFetcher = require('./dataunit-fetcher-8dffbcdf.js');
|
|
17
17
|
require('./filter-item-type.enum-a7ffdaa6.js');
|
|
18
|
-
const formConfigFetcher = require('./form-config-fetcher-
|
|
18
|
+
const formConfigFetcher = require('./form-config-fetcher-5516d68a.js');
|
|
19
19
|
const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
|
|
20
|
-
const ConfigStorage = require('./ConfigStorage-
|
|
21
|
-
const SnkFormConfigManager = require('./SnkFormConfigManager-
|
|
20
|
+
const ConfigStorage = require('./ConfigStorage-a4e1e518.js');
|
|
21
|
+
const SnkFormConfigManager = require('./SnkFormConfigManager-b8c81493.js');
|
|
22
22
|
const index$2 = require('./index-13d05f03.js');
|
|
23
23
|
require('./PrintUtils-bcaeb82f.js');
|
|
24
24
|
require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
|
|
@@ -127,8 +127,17 @@ export class SnkMessageBuilder {
|
|
|
127
127
|
const messagesUrl = await this._application.getApplicationPath();
|
|
128
128
|
const langSuffix = (this._lang !== LangUtils.ELanguages.PT_BR) ? `-${this._lang}` : "";
|
|
129
129
|
const fileUrl = `${messagesUrl}/messages/appmessages${langSuffix}.js`;
|
|
130
|
-
const
|
|
131
|
-
|
|
130
|
+
const response = await fetch(fileUrl);
|
|
131
|
+
if (!response.ok) {
|
|
132
|
+
throw new Error(`Não foi possível carregar as mensagens: ${response.status} ${response.statusText}`);
|
|
133
|
+
}
|
|
134
|
+
let scriptContent = await response.text();
|
|
135
|
+
if (scriptContent.trim().startsWith('<!DOCTYPE') || scriptContent.trim().startsWith('<html')) {
|
|
136
|
+
throw new Error('Não foi encontrado um arquivo de mensagens válido.');
|
|
137
|
+
}
|
|
138
|
+
scriptContent = scriptContent.replace(/export\s+default\s+/g, 'return ');
|
|
139
|
+
const func = new Function(scriptContent);
|
|
140
|
+
return func();
|
|
132
141
|
}
|
|
133
142
|
}
|
|
134
143
|
export var OperationMap;
|
|
@@ -9415,8 +9415,17 @@ class SnkMessageBuilder {
|
|
|
9415
9415
|
const messagesUrl = await this._application.getApplicationPath();
|
|
9416
9416
|
const langSuffix = (this._lang !== LangUtils.ELanguages.PT_BR) ? `-${this._lang}` : "";
|
|
9417
9417
|
const fileUrl = `${messagesUrl}/messages/appmessages${langSuffix}.js`;
|
|
9418
|
-
const
|
|
9419
|
-
|
|
9418
|
+
const response = await fetch(fileUrl);
|
|
9419
|
+
if (!response.ok) {
|
|
9420
|
+
throw new Error(`Não foi possível carregar as mensagens: ${response.status} ${response.statusText}`);
|
|
9421
|
+
}
|
|
9422
|
+
let scriptContent = await response.text();
|
|
9423
|
+
if (scriptContent.trim().startsWith('<!DOCTYPE') || scriptContent.trim().startsWith('<html')) {
|
|
9424
|
+
throw new Error('Não foi encontrado um arquivo de mensagens válido.');
|
|
9425
|
+
}
|
|
9426
|
+
scriptContent = scriptContent.replace(/export\s+default\s+/g, 'return ');
|
|
9427
|
+
const func = new Function(scriptContent);
|
|
9428
|
+
return func();
|
|
9420
9429
|
}
|
|
9421
9430
|
}
|
|
9422
9431
|
var OperationMap;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-
|
|
2
|
-
import { D as DataFetcher, d as dist } from './DataFetcher-
|
|
1
|
+
import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-7cda6254.js';
|
|
2
|
+
import { D as DataFetcher, d as dist } from './DataFetcher-0b9da57d.js';
|
|
3
3
|
import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
|
|
4
4
|
import { ObjectUtils } from '@sankhyalabs/core';
|
|
5
5
|
|
|
@@ -9415,8 +9415,17 @@ class SnkMessageBuilder {
|
|
|
9415
9415
|
const messagesUrl = await this._application.getApplicationPath();
|
|
9416
9416
|
const langSuffix = (this._lang !== LangUtils.ELanguages.PT_BR) ? `-${this._lang}` : "";
|
|
9417
9417
|
const fileUrl = `${messagesUrl}/messages/appmessages${langSuffix}.js`;
|
|
9418
|
-
const
|
|
9419
|
-
|
|
9418
|
+
const response = await fetch(fileUrl);
|
|
9419
|
+
if (!response.ok) {
|
|
9420
|
+
throw new Error(`Não foi possível carregar as mensagens: ${response.status} ${response.statusText}`);
|
|
9421
|
+
}
|
|
9422
|
+
let scriptContent = await response.text();
|
|
9423
|
+
if (scriptContent.trim().startsWith('<!DOCTYPE') || scriptContent.trim().startsWith('<html')) {
|
|
9424
|
+
throw new Error('Não foi encontrado um arquivo de mensagens válido.');
|
|
9425
|
+
}
|
|
9426
|
+
scriptContent = scriptContent.replace(/export\s+default\s+/g, 'return ');
|
|
9427
|
+
const func = new Function(scriptContent);
|
|
9428
|
+
return func();
|
|
9420
9429
|
}
|
|
9421
9430
|
}
|
|
9422
9431
|
var OperationMap;
|