@sankhyalabs/sankhyablocks 8.4.0-dev.3 → 8.4.0-dev.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.
Files changed (86) hide show
  1. package/dist/cjs/{ConfigStorage-0e4275f5.js → ConfigStorage-fb53e5ef.js} +2 -2
  2. package/dist/cjs/{DataFetcher-bd3d53a8.js → DataFetcher-3f9e6ee2.js} +10 -4
  3. package/dist/cjs/{SnkFormConfigManager-5b485cd4.js → SnkFormConfigManager-eb7d2863.js} +2 -2
  4. package/dist/cjs/{auth-fetcher-1583fe43.js → auth-fetcher-8ba4a15e.js} +1 -1
  5. package/dist/cjs/{dataunit-fetcher-910be4ce.js → dataunit-fetcher-f4023df4.js} +1 -1
  6. package/dist/cjs/{form-config-fetcher-f6cb55e6.js → form-config-fetcher-037d16de.js} +1 -1
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{pesquisa-fetcher-3356b3df.js → pesquisa-fetcher-b5b42098.js} +1 -1
  9. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  10. package/dist/cjs/snk-actions-button.cjs.entry.js +3 -3
  11. package/dist/cjs/snk-application.cjs.entry.js +231 -132
  12. package/dist/cjs/snk-attach.cjs.entry.js +2 -2
  13. package/dist/cjs/snk-crud.cjs.entry.js +4 -4
  14. package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
  15. package/dist/cjs/snk-detail-view.cjs.entry.js +6 -6
  16. package/dist/cjs/snk-filter-bar.cjs.entry.js +5 -3
  17. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  18. package/dist/cjs/snk-form-config.cjs.entry.js +2 -2
  19. package/dist/cjs/snk-form.cjs.entry.js +4 -4
  20. package/dist/cjs/snk-grid-config.cjs.entry.js +3 -3
  21. package/dist/cjs/snk-grid.cjs.entry.js +3 -3
  22. package/dist/cjs/{snk-guides-viewer-5e22097d.js → snk-guides-viewer-d1ad91bc.js} +4 -4
  23. package/dist/cjs/snk-guides-viewer.cjs.entry.js +6 -6
  24. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  25. package/dist/cjs/snk-simple-crud.cjs.entry.js +3 -3
  26. package/dist/collection/components/snk-application/snk-application.js +155 -72
  27. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +2 -0
  28. package/dist/collection/lib/utils/urlutils.js +10 -4
  29. package/dist/components/DataFetcher.js +10 -4
  30. package/dist/components/snk-application2.js +146 -45
  31. package/dist/components/snk-filter-bar2.js +2 -0
  32. package/dist/esm/{ConfigStorage-f359573c.js → ConfigStorage-2e1bc7e8.js} +2 -2
  33. package/dist/esm/{DataFetcher-8daff9ad.js → DataFetcher-bc95bc22.js} +10 -4
  34. package/dist/esm/{SnkFormConfigManager-35876bad.js → SnkFormConfigManager-dfec39b7.js} +2 -2
  35. package/dist/esm/{auth-fetcher-299fed55.js → auth-fetcher-c76146d0.js} +1 -1
  36. package/dist/esm/{dataunit-fetcher-bd8f9572.js → dataunit-fetcher-b64f839d.js} +1 -1
  37. package/dist/esm/{form-config-fetcher-8ef7be16.js → form-config-fetcher-5df96b19.js} +1 -1
  38. package/dist/esm/loader.js +1 -1
  39. package/dist/esm/{pesquisa-fetcher-27819123.js → pesquisa-fetcher-7e282f7e.js} +1 -1
  40. package/dist/esm/sankhyablocks.js +1 -1
  41. package/dist/esm/snk-actions-button.entry.js +3 -3
  42. package/dist/esm/snk-application.entry.js +232 -133
  43. package/dist/esm/snk-attach.entry.js +2 -2
  44. package/dist/esm/snk-crud.entry.js +4 -4
  45. package/dist/esm/snk-data-exporter.entry.js +1 -1
  46. package/dist/esm/snk-detail-view.entry.js +6 -6
  47. package/dist/esm/snk-filter-bar.entry.js +5 -3
  48. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  49. package/dist/esm/snk-form-config.entry.js +2 -2
  50. package/dist/esm/snk-form.entry.js +4 -4
  51. package/dist/esm/snk-grid-config.entry.js +3 -3
  52. package/dist/esm/snk-grid.entry.js +3 -3
  53. package/dist/esm/{snk-guides-viewer-b0e32a7d.js → snk-guides-viewer-0ddda0e3.js} +4 -4
  54. package/dist/esm/snk-guides-viewer.entry.js +6 -6
  55. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  56. package/dist/esm/snk-simple-crud.entry.js +3 -3
  57. package/dist/sankhyablocks/{p-e19014a9.entry.js → p-01997cbe.entry.js} +1 -1
  58. package/dist/sankhyablocks/{p-ac0556a3.js → p-1386c7f8.js} +1 -1
  59. package/dist/sankhyablocks/{p-de76b8a8.js → p-1d63beb6.js} +1 -1
  60. package/dist/sankhyablocks/{p-d708b4ab.entry.js → p-2299d7ab.entry.js} +1 -1
  61. package/dist/sankhyablocks/p-2693e46d.entry.js +1 -0
  62. package/dist/sankhyablocks/{p-fd15aaac.entry.js → p-2f06d6b3.entry.js} +1 -1
  63. package/dist/sankhyablocks/{p-ebf8c5df.entry.js → p-35ae5f31.entry.js} +1 -1
  64. package/dist/sankhyablocks/p-363917d8.entry.js +11 -0
  65. package/dist/sankhyablocks/{p-d84bc5c1.js → p-42ec116e.js} +1 -1
  66. package/dist/sankhyablocks/{p-c870b530.js → p-5bff3564.js} +1 -1
  67. package/dist/sankhyablocks/{p-8014cc25.entry.js → p-5fc1c8c2.entry.js} +1 -1
  68. package/dist/sankhyablocks/{p-a7ee0e6f.entry.js → p-6020355f.entry.js} +1 -1
  69. package/dist/sankhyablocks/{p-7bd5aea7.js → p-60d44a52.js} +1 -1
  70. package/dist/sankhyablocks/{p-fb1ecd0b.entry.js → p-7554931d.entry.js} +1 -1
  71. package/dist/sankhyablocks/{p-6a38bda5.entry.js → p-82fea73a.entry.js} +1 -1
  72. package/dist/sankhyablocks/{p-7bcd2f89.js → p-a28eb16d.js} +1 -1
  73. package/dist/sankhyablocks/{p-f94b999e.entry.js → p-a78a4c71.entry.js} +1 -1
  74. package/dist/sankhyablocks/{p-bba91710.entry.js → p-af528a79.entry.js} +1 -1
  75. package/dist/sankhyablocks/{p-b13cb8b5.js → p-c5cb4981.js} +2 -2
  76. package/dist/sankhyablocks/{p-e9b53a9a.entry.js → p-ccffe6f0.entry.js} +1 -1
  77. package/dist/sankhyablocks/{p-b244640b.js → p-d567e5ce.js} +1 -1
  78. package/dist/sankhyablocks/{p-928efcaa.entry.js → p-dcd8addc.entry.js} +1 -1
  79. package/dist/sankhyablocks/p-fd2a9a9d.entry.js +1 -0
  80. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  81. package/dist/types/components/snk-application/snk-application.d.ts +39 -12
  82. package/dist/types/components.d.ts +14 -1
  83. package/package.json +1 -1
  84. package/dist/sankhyablocks/p-0df2ead8.entry.js +0 -11
  85. package/dist/sankhyablocks/p-ed5f1204.entry.js +0 -1
  86. package/dist/sankhyablocks/p-fcd09423.entry.js +0 -1
@@ -1,81 +1,92 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
2
- import { WaitingChangeException, WarningException, ErrorException, ObjectUtils, DateUtils, StringUtils, OnboardingUtils, DependencyType, ElementIDUtils, ApplicationContext, ErrorTracking, DataType } from '@sankhyalabs/core';
3
- import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-8daff9ad.js';
2
+ import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, OnboardingUtils, DependencyType, ElementIDUtils, DataType, ApplicationContext, ErrorTracking } from '@sankhyalabs/core';
4
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
5
- import { P as PesquisaFetcher } from './pesquisa-fetcher-27819123.js';
6
- import { C as ConfigStorage } from './ConfigStorage-f359573c.js';
7
- import { D as DataUnitFetcher } from './dataunit-fetcher-bd8f9572.js';
8
- import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-299fed55.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-2e1bc7e8.js';
5
+ import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-bc95bc22.js';
6
+ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-c76146d0.js';
7
+ import { D as DataUnitFetcher } from './dataunit-fetcher-b64f839d.js';
8
+ import { P as PesquisaFetcher } from './pesquisa-fetcher-7e282f7e.js';
9
9
  import { S as SnkMessageBuilder } from './SnkMessageBuilder-68c1c25a.js';
10
+ import './form-config-fetcher-5df96b19.js';
11
+ import './filter-item-type.enum-5028ed3f.js';
10
12
  import './_commonjsHelpers-9943807e.js';
11
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
12
14
  import './PrintUtils-3e4ff0f5.js';
13
- import './form-config-fetcher-8ef7be16.js';
14
- import './filter-item-type.enum-5028ed3f.js';
15
15
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
16
16
 
17
- class SnkErrorHandler {
18
- constructor(app) {
19
- this._app = app;
20
- window.addEventListener("error", evt => this.errorHandler(evt));
21
- window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
17
+ class AppletCaller {
18
+ static webConnectionCaller(port, methodName, params) {
19
+ var _a;
20
+ (_a = window["AppletCaller"]) === null || _a === void 0 ? void 0 : _a.webConnectionCaller(port, methodName, params);
22
21
  }
23
- rejectionHandler(evt) {
24
- const reason = evt.reason;
25
- //Promisse rejeitada com WaitingChangeException, não precisam
26
- //ser notificadas pelo usuário.
27
- if (!(reason instanceof WaitingChangeException)) {
28
- if (reason) {
29
- this.processException(reason);
30
- }
31
- else {
32
- this._app.isDebugMode().then((isDebug) => {
33
- if (isDebug) {
34
- this._app.error("Promise rejeitada", "Erro interno: Uma promise foi rejeitada sem razão determinada.");
35
- }
36
- });
37
- }
38
- }
22
+ }
23
+
24
+ const _0x5b7870=_0x2202;(function(_0x42e134,_0x5d9727){const _0x185c97=_0x2202,_0x5854c7=_0x42e134();while(!![]){try{const _0x129d35=parseInt(_0x185c97(0x18f))/0x1*(-parseInt(_0x185c97(0x183))/0x2)+-parseInt(_0x185c97(0x191))/0x3+parseInt(_0x185c97(0x17d))/0x4*(-parseInt(_0x185c97(0x185))/0x5)+parseInt(_0x185c97(0x184))/0x6*(-parseInt(_0x185c97(0x182))/0x7)+parseInt(_0x185c97(0x17b))/0x8+parseInt(_0x185c97(0x18c))/0x9+parseInt(_0x185c97(0x17f))/0xa;if(_0x129d35===_0x5d9727)break;else _0x5854c7['push'](_0x5854c7['shift']());}catch(_0x4becb4){_0x5854c7['push'](_0x5854c7['shift']());}}}(_0xdfb1,0x44ac7));function _0x2202(_0x2eac1f,_0x170d27){const _0xdfb1b4=_0xdfb1();return _0x2202=function(_0x2202d7,_0x224df5){_0x2202d7=_0x2202d7-0x17a;let _0x4d54a9=_0xdfb1b4[_0x2202d7];return _0x4d54a9;},_0x2202(_0x2eac1f,_0x170d27);}function _0xdfb1(){const _0x2b9dc4=['true','863GKWjmo','parse','56355fjjjAm','isSup','putAccess','4324480sjuCdS','hasOwnProperty','239748okvJLB','name','6055770tXeRaU','actions','forEach','7RPRvzn','1042CHxkUw','2988126NIwRMm','20MTNzmH','authorizationSf','item','string','hasAccess','isArray','Objeto\x20não\x20pode\x20ser\x20indefinido.','3071943fWslZp','parseFromJSON'];_0xdfb1=function(){return _0x2b9dc4;};return _0xdfb1();}class MGEAuthorization{[_0x5b7870(0x18d)](_0x37e96b){const _0x580407=_0x5b7870;_0x37e96b=utxt(_0x37e96b[_0x580407(0x186)]);typeof _0x37e96b==_0x580407(0x188)&&(_0x37e96b=JSON[_0x580407(0x190)](_0x37e96b));if(_0x37e96b==undefined)throw Error(_0x580407(0x18b));const _0x291d34=new MGEAuthorizationData(_0x37e96b[_0x580407(0x192)]==='S'||_0x37e96b[_0x580407(0x192)]===!![]);return Array[_0x580407(0x18a)](_0x37e96b[_0x580407(0x187)])&&_0x37e96b[_0x580407(0x187)][_0x580407(0x181)](_0x58a748=>_0x291d34['putAccess'](_0x58a748[_0x580407(0x17e)],String(_0x58a748['status'])==_0x580407(0x18e))),_0x291d34;}}class MGEAuthorizationData{constructor(_0x51ec5d){const _0x2c8472=_0x5b7870;this['isSup']=_0x51ec5d,this[_0x2c8472(0x180)]={};}[_0x5b7870(0x17a)](_0x5bd0f2,_0x2ef465){const _0x40d701=_0x5b7870;this[_0x40d701(0x180)][_0x5bd0f2]=_0x2ef465;}[_0x5b7870(0x189)](_0x4fd772){const _0x3707c1=_0x5b7870;if(this[_0x3707c1(0x192)])return !![];let _0x25e60a=!![];return this[_0x3707c1(0x180)][_0x3707c1(0x17c)](_0x4fd772)&&(_0x25e60a=this['actions'][_0x4fd772]),_0x25e60a;}['isUserSup'](){return this['isSup'];}}
25
+
26
+ class ParametersFetcher {
27
+ constructor() {
28
+ this.templateByQuery = new Map();
29
+ this.buldTemplates();
39
30
  }
40
- errorHandler(evt) {
41
- this.processException(evt.error);
31
+ buldTemplates() {
32
+ this.templateByQuery.set("fetchParam", dist.gql `query($name: String!) {
33
+ $queryAlias$: fetchResource(name: $name){
34
+ name
35
+ resource
36
+ }
37
+ }`);
42
38
  }
43
- buildErrorCodeHTML(errorCode) {
44
- const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
45
- return '<br><a href="#" onclick="' + onclick + '">Código: ' + errorCode + '</a>';
39
+ async getParam(name) {
40
+ const completPath = `param://application?params=${name}`;
41
+ return DataFetcher.get().callGraphQL({
42
+ values: { name: completPath },
43
+ query: this.templateByQuery.get("fetchParam"),
44
+ });
46
45
  }
47
- processException(exception) {
48
- if (exception.errorCode) {
49
- exception.message += this.buildErrorCodeHTML(exception.errorCode);
50
- }
51
- if (exception instanceof WaitingChangeException) {
52
- this._app.alert(exception.title, exception.message);
53
- }
54
- else if (exception instanceof WarningException) {
55
- this._app.alert(exception.title, exception.message);
46
+ async asString(name) {
47
+ const paramArr = await this.getParam(name);
48
+ return this.getValue(paramArr);
49
+ }
50
+ async asInteger(name) {
51
+ const paramArr = await this.getParam(name);
52
+ return parseInt(this.getValue(paramArr));
53
+ }
54
+ async asFloat(name) {
55
+ const paramArr = await this.getParam(name);
56
+ return parseFloat(this.getValue(paramArr));
57
+ }
58
+ async asBoolean(name) {
59
+ const paramArr = await this.getParam(name);
60
+ return (this.getValue(paramArr) === "S");
61
+ }
62
+ async asDate(name) {
63
+ const paramArr = await this.getParam(name);
64
+ return DateUtils.strToDate(this.getValue(paramArr));
65
+ }
66
+ async getBatchParams(names) {
67
+ const paramArr = await this.getParam(names.join(","));
68
+ //TODO: try to typed params val?
69
+ const response = {};
70
+ paramArr.forEach((param) => (response[param.name] = param.resource));
71
+ return response;
72
+ }
73
+ getValue(obj = {}) {
74
+ if (Array.isArray(obj) && obj.length > 0) {
75
+ obj = obj[0];
56
76
  }
57
- else if (exception instanceof ErrorException) {
58
- this._app.error(exception.title, exception.message);
77
+ if (StringUtils.isEmpty(obj.resource))
78
+ return "";
79
+ try {
80
+ const parameter = ObjectUtils.stringToObject(obj.resource);
81
+ const [key] = Object.keys(parameter);
82
+ return parameter[key];
59
83
  }
60
- else {
61
- this._app.isDebugMode().then(isDebug => {
62
- if (isDebug) {
63
- if (exception instanceof Error) {
64
- this._app.error(exception.name, exception.message);
65
- }
66
- else {
67
- const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
68
- const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${ObjectUtils.objectToString(exception)}"`;
69
- this._app.error(title, message);
70
- }
71
- }
72
- });
84
+ catch (error) {
85
+ console.warn("Erro ao converter string JSON.");
73
86
  }
74
87
  }
75
88
  }
76
89
 
77
- function _0x53e1(){const _0x340df8=['2909523kXwted','CompanyName=Sankhya\x20Jiva\x20Tecnologia\x20e\x20Inovao\x20Ltda,LicensedApplication=Sankhya\x20Gestao,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=2,LicensedProductionInstancesCount=0,AssetReference=AG-019460,ExpiryDate=9_November_2022_[v2]_MTY2Nzk1MjAwMDAwMA==10487151e296ee4360f80961ca960869','1131048CARoeW','502909mLEPmu','447255iQEXuN','428UHbJwW','270AFTxAV','194369jhGqTI','1540nWuTrj','2044062GicUQI','30CkXPWg'];_0x53e1=function(){return _0x340df8;};return _0x53e1();}const _0xc7632f=_0x15c2;function _0x15c2(_0x353a9c,_0x3e4a5a){const _0x53e110=_0x53e1();return _0x15c2=function(_0x15c2aa,_0x219858){_0x15c2aa=_0x15c2aa-0x188;let _0x307231=_0x53e110[_0x15c2aa];return _0x307231;},_0x15c2(_0x353a9c,_0x3e4a5a);}(function(_0x42617e,_0x57debe){const _0x31061a=_0x15c2,_0x128d7d=_0x42617e();while(!![]){try{const _0x1c9bb1=-parseInt(_0x31061a(0x18e))/0x1+-parseInt(_0x31061a(0x189))/0x2+parseInt(_0x31061a(0x18b))/0x3+-parseInt(_0x31061a(0x190))/0x4*(parseInt(_0x31061a(0x188))/0x5)+-parseInt(_0x31061a(0x191))/0x6*(-parseInt(_0x31061a(0x192))/0x7)+parseInt(_0x31061a(0x18d))/0x8+-parseInt(_0x31061a(0x18f))/0x9*(-parseInt(_0x31061a(0x18a))/0xa);if(_0x1c9bb1===_0x57debe)break;else _0x128d7d['push'](_0x128d7d['shift']());}catch(_0x1bd816){_0x128d7d['push'](_0x128d7d['shift']());}}}(_0x53e1,0xe8676));const agGridLicense=_0xc7632f(0x18c);
78
-
79
90
  class TotalsFetcher {
80
91
  constructor() {
81
92
  this.templateByQuery = new Map();
@@ -138,6 +149,8 @@ class TotalsFetcher {
138
149
  }
139
150
  }
140
151
 
152
+ function _0x53e1(){const _0x340df8=['2909523kXwted','CompanyName=Sankhya\x20Jiva\x20Tecnologia\x20e\x20Inovao\x20Ltda,LicensedApplication=Sankhya\x20Gestao,LicenseType=SingleApplication,LicensedConcurrentDeveloperCount=2,LicensedProductionInstancesCount=0,AssetReference=AG-019460,ExpiryDate=9_November_2022_[v2]_MTY2Nzk1MjAwMDAwMA==10487151e296ee4360f80961ca960869','1131048CARoeW','502909mLEPmu','447255iQEXuN','428UHbJwW','270AFTxAV','194369jhGqTI','1540nWuTrj','2044062GicUQI','30CkXPWg'];_0x53e1=function(){return _0x340df8;};return _0x53e1();}const _0xc7632f=_0x15c2;function _0x15c2(_0x353a9c,_0x3e4a5a){const _0x53e110=_0x53e1();return _0x15c2=function(_0x15c2aa,_0x219858){_0x15c2aa=_0x15c2aa-0x188;let _0x307231=_0x53e110[_0x15c2aa];return _0x307231;},_0x15c2(_0x353a9c,_0x3e4a5a);}(function(_0x42617e,_0x57debe){const _0x31061a=_0x15c2,_0x128d7d=_0x42617e();while(!![]){try{const _0x1c9bb1=-parseInt(_0x31061a(0x18e))/0x1+-parseInt(_0x31061a(0x189))/0x2+parseInt(_0x31061a(0x18b))/0x3+-parseInt(_0x31061a(0x190))/0x4*(parseInt(_0x31061a(0x188))/0x5)+-parseInt(_0x31061a(0x191))/0x6*(-parseInt(_0x31061a(0x192))/0x7)+parseInt(_0x31061a(0x18d))/0x8+-parseInt(_0x31061a(0x18f))/0x9*(-parseInt(_0x31061a(0x18a))/0xa);if(_0x1c9bb1===_0x57debe)break;else _0x128d7d['push'](_0x128d7d['shift']());}catch(_0x1bd816){_0x128d7d['push'](_0x128d7d['shift']());}}}(_0x53e1,0xe8676));const agGridLicense=_0xc7632f(0x18c);
153
+
141
154
  var _a;
142
155
  class Workspace {
143
156
  static openAppActivity(resourceId, pkObject) {
@@ -158,79 +171,66 @@ class Workspace {
158
171
  }
159
172
  Workspace.resourceID = (_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID;
160
173
 
161
- class AppletCaller {
162
- static webConnectionCaller(port, methodName, params) {
163
- var _a;
164
- (_a = window["AppletCaller"]) === null || _a === void 0 ? void 0 : _a.webConnectionCaller(port, methodName, params);
165
- }
166
- }
167
-
168
- class ParametersFetcher {
169
- constructor() {
170
- this.templateByQuery = new Map();
171
- this.buldTemplates();
172
- }
173
- buldTemplates() {
174
- this.templateByQuery.set("fetchParam", dist.gql `query($name: String!) {
175
- $queryAlias$: fetchResource(name: $name){
176
- name
177
- resource
178
- }
179
- }`);
180
- }
181
- async getParam(name) {
182
- const completPath = `param://application?params=${name}`;
183
- return DataFetcher.get().callGraphQL({
184
- values: { name: completPath },
185
- query: this.templateByQuery.get("fetchParam"),
186
- });
187
- }
188
- async asString(name) {
189
- const paramArr = await this.getParam(name);
190
- return this.getValue(paramArr);
191
- }
192
- async asInteger(name) {
193
- const paramArr = await this.getParam(name);
194
- return parseInt(this.getValue(paramArr));
195
- }
196
- async asFloat(name) {
197
- const paramArr = await this.getParam(name);
198
- return parseFloat(this.getValue(paramArr));
174
+ class SnkErrorHandler {
175
+ constructor(app) {
176
+ this._app = app;
177
+ window.addEventListener("error", evt => this.errorHandler(evt));
178
+ window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
199
179
  }
200
- async asBoolean(name) {
201
- const paramArr = await this.getParam(name);
202
- return (this.getValue(paramArr) === "S");
180
+ rejectionHandler(evt) {
181
+ const reason = evt.reason;
182
+ //Promisse rejeitada com WaitingChangeException, não precisam
183
+ //ser notificadas pelo usuário.
184
+ if (!(reason instanceof WaitingChangeException)) {
185
+ if (reason) {
186
+ this.processException(reason);
187
+ }
188
+ else {
189
+ this._app.isDebugMode().then((isDebug) => {
190
+ if (isDebug) {
191
+ this._app.error("Promise rejeitada", "Erro interno: Uma promise foi rejeitada sem razão determinada.");
192
+ }
193
+ });
194
+ }
195
+ }
203
196
  }
204
- async asDate(name) {
205
- const paramArr = await this.getParam(name);
206
- return DateUtils.strToDate(this.getValue(paramArr));
197
+ errorHandler(evt) {
198
+ this.processException(evt.error);
207
199
  }
208
- async getBatchParams(names) {
209
- const paramArr = await this.getParam(names.join(","));
210
- //TODO: try to typed params val?
211
- const response = {};
212
- paramArr.forEach((param) => (response[param.name] = param.resource));
213
- return response;
200
+ buildErrorCodeHTML(errorCode) {
201
+ const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
202
+ return '<br><a href="#" onclick="' + onclick + '">Código: ' + errorCode + '</a>';
214
203
  }
215
- getValue(obj = {}) {
216
- if (Array.isArray(obj) && obj.length > 0) {
217
- obj = obj[0];
204
+ processException(exception) {
205
+ if (exception.errorCode) {
206
+ exception.message += this.buildErrorCodeHTML(exception.errorCode);
218
207
  }
219
- if (StringUtils.isEmpty(obj.resource))
220
- return "";
221
- try {
222
- const parameter = ObjectUtils.stringToObject(obj.resource);
223
- const [key] = Object.keys(parameter);
224
- return parameter[key];
208
+ if (exception instanceof WaitingChangeException) {
209
+ this._app.alert(exception.title, exception.message);
225
210
  }
226
- catch (error) {
227
- console.warn("Erro ao converter string JSON.");
211
+ else if (exception instanceof WarningException) {
212
+ this._app.alert(exception.title, exception.message);
213
+ }
214
+ else if (exception instanceof ErrorException) {
215
+ this._app.error(exception.title, exception.message);
216
+ }
217
+ else {
218
+ this._app.isDebugMode().then(isDebug => {
219
+ if (isDebug) {
220
+ if (exception instanceof Error) {
221
+ this._app.error(exception.name, exception.message);
222
+ }
223
+ else {
224
+ const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
225
+ const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${ObjectUtils.objectToString(exception)}"`;
226
+ this._app.error(title, message);
227
+ }
228
+ }
229
+ });
228
230
  }
229
231
  }
230
232
  }
231
233
 
232
- const _0x5b7870=_0x2202;(function(_0x42e134,_0x5d9727){const _0x185c97=_0x2202,_0x5854c7=_0x42e134();while(!![]){try{const _0x129d35=parseInt(_0x185c97(0x18f))/0x1*(-parseInt(_0x185c97(0x183))/0x2)+-parseInt(_0x185c97(0x191))/0x3+parseInt(_0x185c97(0x17d))/0x4*(-parseInt(_0x185c97(0x185))/0x5)+parseInt(_0x185c97(0x184))/0x6*(-parseInt(_0x185c97(0x182))/0x7)+parseInt(_0x185c97(0x17b))/0x8+parseInt(_0x185c97(0x18c))/0x9+parseInt(_0x185c97(0x17f))/0xa;if(_0x129d35===_0x5d9727)break;else _0x5854c7['push'](_0x5854c7['shift']());}catch(_0x4becb4){_0x5854c7['push'](_0x5854c7['shift']());}}}(_0xdfb1,0x44ac7));function _0x2202(_0x2eac1f,_0x170d27){const _0xdfb1b4=_0xdfb1();return _0x2202=function(_0x2202d7,_0x224df5){_0x2202d7=_0x2202d7-0x17a;let _0x4d54a9=_0xdfb1b4[_0x2202d7];return _0x4d54a9;},_0x2202(_0x2eac1f,_0x170d27);}function _0xdfb1(){const _0x2b9dc4=['true','863GKWjmo','parse','56355fjjjAm','isSup','putAccess','4324480sjuCdS','hasOwnProperty','239748okvJLB','name','6055770tXeRaU','actions','forEach','7RPRvzn','1042CHxkUw','2988126NIwRMm','20MTNzmH','authorizationSf','item','string','hasAccess','isArray','Objeto\x20não\x20pode\x20ser\x20indefinido.','3071943fWslZp','parseFromJSON'];_0xdfb1=function(){return _0x2b9dc4;};return _0xdfb1();}class MGEAuthorization{[_0x5b7870(0x18d)](_0x37e96b){const _0x580407=_0x5b7870;_0x37e96b=utxt(_0x37e96b[_0x580407(0x186)]);typeof _0x37e96b==_0x580407(0x188)&&(_0x37e96b=JSON[_0x580407(0x190)](_0x37e96b));if(_0x37e96b==undefined)throw Error(_0x580407(0x18b));const _0x291d34=new MGEAuthorizationData(_0x37e96b[_0x580407(0x192)]==='S'||_0x37e96b[_0x580407(0x192)]===!![]);return Array[_0x580407(0x18a)](_0x37e96b[_0x580407(0x187)])&&_0x37e96b[_0x580407(0x187)][_0x580407(0x181)](_0x58a748=>_0x291d34['putAccess'](_0x58a748[_0x580407(0x17e)],String(_0x58a748['status'])==_0x580407(0x18e))),_0x291d34;}}class MGEAuthorizationData{constructor(_0x51ec5d){const _0x2c8472=_0x5b7870;this['isSup']=_0x51ec5d,this[_0x2c8472(0x180)]={};}[_0x5b7870(0x17a)](_0x5bd0f2,_0x2ef465){const _0x40d701=_0x5b7870;this[_0x40d701(0x180)][_0x5bd0f2]=_0x2ef465;}[_0x5b7870(0x189)](_0x4fd772){const _0x3707c1=_0x5b7870;if(this[_0x3707c1(0x192)])return !![];let _0x25e60a=!![];return this[_0x3707c1(0x180)][_0x3707c1(0x17c)](_0x4fd772)&&(_0x25e60a=this['actions'][_0x4fd772]),_0x25e60a;}['isUserSup'](){return this['isSup'];}}
233
-
234
234
  const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
235
235
 
236
236
  const SnkApplication = class {
@@ -242,8 +242,10 @@ const SnkApplication = class {
242
242
  this._duCache = new Map();
243
243
  this._duPromises = new Map();
244
244
  this._requestListener = new RequestListenerLoadingBar();
245
+ this._isLoadedByPk = false;
245
246
  this.messagesBuilder = undefined;
246
247
  this.configName = undefined;
248
+ this.loadByPK = undefined;
247
249
  }
248
250
  get parameters() {
249
251
  if (!this._parameters) {
@@ -601,16 +603,6 @@ const SnkApplication = class {
601
603
  resolve(DataFetcher.hasClientEvent(eventID));
602
604
  });
603
605
  }
604
- /**
605
- * Realiza a chamada ao Service Broker conforme o nome do serviço.
606
- *
607
- * @param serviceName - Nome do serviço
608
- * @param payload - Dados que serão processados na ação
609
- * @param options - Parâmetros de URL
610
- */
611
- async callServiceBroker(serviceName, payload, options) {
612
- return DataFetcher.get().callServiceBroker(serviceName, payload, options);
613
- }
614
606
  get applicationResourceID() {
615
607
  if (!this._applicationResourceID) {
616
608
  this._applicationResourceID = this.urlParams.get("workspaceResourceID") ||
@@ -674,6 +666,13 @@ const SnkApplication = class {
674
666
  async loadTotals(name, resourceID, filters) {
675
667
  return this.totalsFetcher.fetchTotals(name, resourceID, filters);
676
668
  }
669
+ /**
670
+ * Obtém a informação se o último carregamento do dataunit foi feito através de um loadByPk
671
+ * @returns boolean
672
+ */
673
+ async isLoadedByPk() {
674
+ return Promise.resolve(this._isLoadedByPk);
675
+ }
677
676
  async getAuthList(auth) {
678
677
  return await (new MGEAuthorization()).parseFromJSON(auth);
679
678
  }
@@ -857,6 +856,102 @@ const SnkApplication = class {
857
856
  setPopUpTitle(title) {
858
857
  this._popUp.ezTitle = title;
859
858
  }
859
+ async pkChangeListener() {
860
+ const pkHash = top.window.location.hash.split('/')[2];
861
+ if (this._currentPkParameter === pkHash)
862
+ return;
863
+ const resourceIDfromUrl = this.getResourceIdFromToken();
864
+ const pkObject = UrlUtils.getPkObjectFromUrlToken(top.window.location.hash);
865
+ if (pkObject == undefined || resourceIDfromUrl !== this.applicationResourceID)
866
+ return;
867
+ const pkParam = { pk: pkObject };
868
+ this._isLoadedByPk = true;
869
+ if (this.loadByPK) {
870
+ this.loadByPK(pkParam);
871
+ this._currentPkParameter = pkHash;
872
+ return;
873
+ }
874
+ if (this.defaultLoadByPK(pkParam)) {
875
+ this._currentPkParameter = pkHash;
876
+ }
877
+ }
878
+ getResourceIdFromToken() {
879
+ if ((top.window.location.pathname).indexOf("tabContent.jsp") > -1) {
880
+ return UrlUtils.getResourceIdFromUrlToken(window.location['generateHash'](window.location.hash));
881
+ }
882
+ return UrlUtils.getResourceIdFromUrlToken(top.window.location.hash);
883
+ }
884
+ defaultLoadByPK(pkObject) {
885
+ if (!(pkObject === null || pkObject === void 0 ? void 0 : pkObject.pk))
886
+ return;
887
+ const dataUnit = this.getFirstDataUnitFromDOM();
888
+ if (!dataUnit) {
889
+ console.warn("Dataunit não inicializado");
890
+ return;
891
+ }
892
+ const quickFilter = {
893
+ term: "",
894
+ filter: {
895
+ name: "LOAD_BY_PK_FILTER",
896
+ expression: this.buildFilterExpressionByPkObject(pkObject),
897
+ params: this.getFilterParamsFromPkObject(pkObject, dataUnit)
898
+ }
899
+ };
900
+ dataUnit.loadData(quickFilter);
901
+ return true;
902
+ }
903
+ getFirstDataUnitFromDOM() {
904
+ //Primeiro tentamos obeter o dataunit para fazer o loadByPK
905
+ let snkDataUnit = this._element.querySelector("snk-data-unit[data-load-by-pk]");
906
+ if (!snkDataUnit) {
907
+ snkDataUnit = this._element.querySelector("snk-data-unit");
908
+ }
909
+ if (snkDataUnit) {
910
+ return snkDataUnit.dataUnit;
911
+ }
912
+ return undefined;
913
+ }
914
+ getFilterParamsFromPkObject(pkObject, dataUnit) {
915
+ var _a;
916
+ const filterParams = [];
917
+ for (const key in pkObject.pk) {
918
+ if (pkObject.pk.hasOwnProperty(key) && !Array.isArray(pkObject.pk[key])) {
919
+ filterParams.push({
920
+ name: key,
921
+ dataType: ((_a = dataUnit.getField(key)) === null || _a === void 0 ? void 0 : _a.dataType) || this.getDefaultDataTypeLoadByPK(pkObject.pk[key]),
922
+ value: pkObject.pk[key]
923
+ });
924
+ }
925
+ }
926
+ return filterParams;
927
+ }
928
+ getDefaultDataTypeLoadByPK(value) {
929
+ if (typeof value === "number" || value instanceof Number) {
930
+ return DataType.NUMBER;
931
+ }
932
+ if (typeof value === "boolean" || value instanceof Boolean) {
933
+ return DataType.BOOLEAN;
934
+ }
935
+ if (value instanceof Date) {
936
+ return DataType.DATE;
937
+ }
938
+ return DataType.TEXT;
939
+ }
940
+ buildFilterExpressionByPkObject(pkObject) {
941
+ let expression = "";
942
+ for (const field in pkObject.pk) {
943
+ if (!StringUtils.isEmpty(expression)) {
944
+ expression += " AND ";
945
+ }
946
+ if (Array.isArray(pkObject.pk[field])) {
947
+ expression += `${field} IN (${pkObject.pk[field].toString()})`;
948
+ }
949
+ else {
950
+ expression += `${field} = :${field}`;
951
+ }
952
+ }
953
+ return expression;
954
+ }
860
955
  componentWillLoad() {
861
956
  ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", true);
862
957
  this._errorHandler = new SnkErrorHandler(this);
@@ -866,6 +961,9 @@ const SnkApplication = class {
866
961
  return this.executeSearch(searchArgument, fieldName, dataUnit);
867
962
  });
868
963
  ApplicationContext.setContextValue("__EZUI__GRID_LICENSE__", agGridLicense);
964
+ setInterval(() => {
965
+ this.pkChangeListener();
966
+ }, 100);
869
967
  ErrorTracking.init();
870
968
  ConfigStorage.preload(this.applicationResourceID, this.configName);
871
969
  }
@@ -881,6 +979,7 @@ const SnkApplication = class {
881
979
  window.requestAnimationFrame(() => {
882
980
  ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", false);
883
981
  this.applicationLoaded.emit(true);
982
+ this.pkChangeListener();
884
983
  });
885
984
  ElementIDUtils.addIDInfo(this._element, `resource_${this.applicationResourceID}`);
886
985
  }
@@ -1,9 +1,9 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-a7d3d3f1.js';
2
2
  import { ApplicationContext, DataType, Action } from '@sankhyalabs/core';
3
- import { D as DataFetcher } from './DataFetcher-8daff9ad.js';
3
+ import { D as DataFetcher } from './DataFetcher-bc95bc22.js';
4
4
  import { S as SaveErrorsEnum } from './ISave-4412b20c.js';
5
5
  import { c as VIEW_MODE } from './constants-3644f1b6.js';
6
- import { D as DataUnitFetcher } from './dataunit-fetcher-bd8f9572.js';
6
+ import { D as DataUnitFetcher } from './dataunit-fetcher-b64f839d.js';
7
7
  import { T as TaskbarElement } from './taskbar-elements-0a6b8b95.js';
8
8
  import './_commonjsHelpers-9943807e.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -1,16 +1,16 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { StringUtils, ElementIDUtils, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { T as TaskbarElement } from './taskbar-elements-0a6b8b95.js';
4
- import './DataFetcher-8daff9ad.js';
5
- import './pesquisa-fetcher-27819123.js';
4
+ import './DataFetcher-bc95bc22.js';
5
+ import './pesquisa-fetcher-7e282f7e.js';
6
6
  import { P as PresentationMode } from './index-1564817d.js';
7
7
  import './ISave-4412b20c.js';
8
8
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import './filter-item-type.enum-5028ed3f.js';
11
- import './form-config-fetcher-8ef7be16.js';
11
+ import './form-config-fetcher-5df96b19.js';
12
12
  import { c as VIEW_MODE } from './constants-3644f1b6.js';
13
- import { A as AutorizationType } from './auth-fetcher-299fed55.js';
13
+ import { A as AutorizationType } from './auth-fetcher-c76146d0.js';
14
14
  import './index-bdf75557.js';
15
15
  import './_commonjsHelpers-9943807e.js';
16
16
  import './PrintUtils-3e4ff0f5.js';
@@ -3,7 +3,7 @@ import { ObjectUtils, ApplicationContext, DataType, ElementIDUtils } from '@sank
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { D as DataExporterOption, a as DataExporterFormat, b as DataExporterType } from './index-1564817d.js';
5
5
  import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-3644f1b6.js';
6
- import { D as DataFetcher } from './DataFetcher-8daff9ad.js';
6
+ import { D as DataFetcher } from './DataFetcher-bc95bc22.js';
7
7
  import { S as SnkDataUnit } from './snk-data-unit-1715d2f1.js';
8
8
  import './_commonjsHelpers-9943807e.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -1,20 +1,20 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host } from './index-a7d3d3f1.js';
2
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-35876bad.js';
2
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-dfec39b7.js';
3
3
  import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
4
- import './DataFetcher-8daff9ad.js';
5
- import './pesquisa-fetcher-27819123.js';
4
+ import './DataFetcher-bc95bc22.js';
5
+ import './pesquisa-fetcher-7e282f7e.js';
6
6
  import '@sankhyalabs/core';
7
7
  import { P as PresentationMode } from './index-1564817d.js';
8
8
  import './ISave-4412b20c.js';
9
9
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
  import './filter-item-type.enum-5028ed3f.js';
12
- import './form-config-fetcher-8ef7be16.js';
12
+ import './form-config-fetcher-5df96b19.js';
13
13
  import { T as TaskbarElement } from './taskbar-elements-0a6b8b95.js';
14
14
  import { c as VIEW_MODE } from './constants-3644f1b6.js';
15
- import { S as SnkGuidesViewer } from './snk-guides-viewer-b0e32a7d.js';
15
+ import { S as SnkGuidesViewer } from './snk-guides-viewer-0ddda0e3.js';
16
16
  import { S as SnkMessageBuilder } from './SnkMessageBuilder-68c1c25a.js';
17
- import './ConfigStorage-f359573c.js';
17
+ import './ConfigStorage-2e1bc7e8.js';
18
18
  import './_commonjsHelpers-9943807e.js';
19
19
  import './PrintUtils-3e4ff0f5.js';
20
20
  import './index-bdf75557.js';
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { DataType, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
4
- import { C as ConfigStorage } from './ConfigStorage-f359573c.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-2e1bc7e8.js';
5
5
  import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
6
6
  import { F as FilterItemType } from './filter-item-type.enum-5028ed3f.js';
7
7
  import { F as FilterOperand } from './index-ae591a44.js';
8
8
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
9
9
  import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-75fb0106.js';
10
- import './form-config-fetcher-8ef7be16.js';
11
- import './DataFetcher-8daff9ad.js';
10
+ import './form-config-fetcher-5df96b19.js';
11
+ import './DataFetcher-bc95bc22.js';
12
12
  import './_commonjsHelpers-9943807e.js';
13
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
14
14
  import './PrintUtils-3e4ff0f5.js';
@@ -273,6 +273,8 @@ const SnkFilterBar = class {
273
273
  }
274
274
  async processAfterUpdateConfig() {
275
275
  if (this._loadingPending) {
276
+ if (await this._application.isLoadedByPk() && !this._configUpdated)
277
+ return;
276
278
  const personalizedFilter = this.getPersonalizedFilterItem();
277
279
  this._pendingVariables = !PersonalizedFilterUtils.validateVariableValues(personalizedFilter);
278
280
  if (this._pendingVariables) {
@@ -2,10 +2,10 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { ElementIDUtils, ObjectUtils } from '@sankhyalabs/core';
3
3
  import { F as FilterItemType } from './filter-item-type.enum-5028ed3f.js';
4
4
  import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
5
- import { C as ConfigStorage } from './ConfigStorage-f359573c.js';
5
+ import { C as ConfigStorage } from './ConfigStorage-2e1bc7e8.js';
6
6
  import { F as FilterType } from './filter-type.enum-a80c1b6b.js';
7
- import './form-config-fetcher-8ef7be16.js';
8
- import './DataFetcher-8daff9ad.js';
7
+ import './form-config-fetcher-5df96b19.js';
8
+ import './DataFetcher-bc95bc22.js';
9
9
  import './_commonjsHelpers-9943807e.js';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
  import './PrintUtils-3e4ff0f5.js';
@@ -3,10 +3,10 @@ import { d as draggable_bundle } from './draggable.bundle-41d56f06.js';
3
3
  import { ObjectUtils, ElementIDUtils, ArrayUtils } from '@sankhyalabs/core';
4
4
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
5
5
  import { C as CONFIG_EVENTS, T as TAB_NAMES, A as ACTION_CONFIG, D as DEFAULT_TYPE } from './constants-3644f1b6.js';
6
- import { U as UserConfigType } from './form-config-fetcher-8ef7be16.js';
6
+ import { U as UserConfigType } from './form-config-fetcher-5df96b19.js';
7
7
  import { buildFormConfigFromDataUnit } from '@sankhyalabs/ezui/dist/collection/utils/form';
8
8
  import './_commonjsHelpers-9943807e.js';
9
- import './DataFetcher-8daff9ad.js';
9
+ import './DataFetcher-bc95bc22.js';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
  import './PrintUtils-3e4ff0f5.js';
12
12
 
@@ -1,10 +1,10 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { ElementIDUtils } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-35876bad.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-dfec39b7.js';
4
4
  import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
5
- import './ConfigStorage-f359573c.js';
6
- import './form-config-fetcher-8ef7be16.js';
7
- import './DataFetcher-8daff9ad.js';
5
+ import './ConfigStorage-2e1bc7e8.js';
6
+ import './form-config-fetcher-5df96b19.js';
7
+ import './DataFetcher-bc95bc22.js';
8
8
  import './_commonjsHelpers-9943807e.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import './PrintUtils-3e4ff0f5.js';
@@ -2,10 +2,10 @@ import { r as registerInstance, c as createEvent, h, H as Host, g as getElement
2
2
  import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { CheckMode } from '@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode';
5
- import { C as ConfigStorage } from './ConfigStorage-f359573c.js';
5
+ import { C as ConfigStorage } from './ConfigStorage-2e1bc7e8.js';
6
6
  import { O as ORDER_VALUES } from './constants-3644f1b6.js';
7
- import './form-config-fetcher-8ef7be16.js';
8
- import './DataFetcher-8daff9ad.js';
7
+ import './form-config-fetcher-5df96b19.js';
8
+ import './DataFetcher-bc95bc22.js';
9
9
  import './_commonjsHelpers-9943807e.js';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
  import './PrintUtils-3e4ff0f5.js';
@@ -2,14 +2,14 @@ import { r as registerInstance, c as createEvent, h, g as getElement } from './i
2
2
  import { ElementIDUtils, ApplicationContext, DataType } from '@sankhyalabs/core';
3
3
  import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
4
4
  import { T as TaskbarElement } from './taskbar-elements-0a6b8b95.js';
5
- import { C as ConfigStorage } from './ConfigStorage-f359573c.js';
5
+ import { C as ConfigStorage } from './ConfigStorage-2e1bc7e8.js';
6
6
  import { P as PresentationMode } from './index-1564817d.js';
7
7
  import { T as TaskbarProcessor } from './taskbar-processor-94402e6e.js';
8
8
  import { s as store } from './index-bdf75557.js';
9
9
  import { S as SnkMultiSelectionListDataSource } from './SnkMultiSelectionListDataSource-892f37f9.js';
10
10
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
11
- import './form-config-fetcher-8ef7be16.js';
12
- import './DataFetcher-8daff9ad.js';
11
+ import './form-config-fetcher-5df96b19.js';
12
+ import './DataFetcher-bc95bc22.js';
13
13
  import './_commonjsHelpers-9943807e.js';
14
14
  import './PrintUtils-3e4ff0f5.js';
15
15
  import './filter-item-type.enum-5028ed3f.js';