@sankhyalabs/sankhyablocks 8.1.0-dev.11 → 8.1.0-dev.12

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 (108) hide show
  1. package/dist/cjs/{ConfigStorage-d688c739.js → ConfigStorage-42601579.js} +4 -5
  2. package/dist/cjs/{DataFetcher-d2c6ae38.js → DataFetcher-370cc8f2.js} +38 -29
  3. package/dist/cjs/ISave-d68ce3cd.js +8 -0
  4. package/dist/cjs/{SnkFormConfigManager-29b73c81.js → SnkFormConfigManager-e5a28b2e.js} +2 -2
  5. package/dist/cjs/{auth-fetcher-da975ac5.js → auth-fetcher-c42326e9.js} +2 -2
  6. package/dist/cjs/{dataunit-fetcher-58ad78a7.js → dataunit-fetcher-eab8050e.js} +1 -1
  7. package/dist/cjs/{form-config-fetcher-761994b9.js → form-config-fetcher-6704319c.js} +66 -3
  8. package/dist/cjs/{pesquisa-fetcher-bb0bb679.js → pesquisa-fetcher-84d392c7.js} +1 -1
  9. package/dist/cjs/snk-actions-button.cjs.entry.js +7 -3
  10. package/dist/cjs/snk-application.cjs.entry.js +8 -7
  11. package/dist/cjs/snk-attach.cjs.entry.js +7 -13
  12. package/dist/cjs/snk-crud.cjs.entry.js +8 -5
  13. package/dist/cjs/snk-data-exporter.cjs.entry.js +1 -1
  14. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -9
  15. package/dist/cjs/snk-filter-bar.cjs.entry.js +3 -4
  16. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -4
  17. package/dist/cjs/snk-form-config.cjs.entry.js +2 -3
  18. package/dist/cjs/snk-form.cjs.entry.js +4 -5
  19. package/dist/cjs/snk-grid-config.cjs.entry.js +3 -4
  20. package/dist/cjs/snk-grid.cjs.entry.js +3 -4
  21. package/dist/cjs/{snk-guides-viewer-f67f9cea.js → snk-guides-viewer-fd785f55.js} +8 -3
  22. package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -7
  23. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -4
  24. package/dist/cjs/snk-print-selector.cjs.entry.js +1 -1
  25. package/dist/cjs/snk-simple-crud.cjs.entry.js +7 -3
  26. package/dist/collection/components/snk-application/snk-application.js +2 -0
  27. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +38 -29
  28. package/dist/collection/lib/index.js +10 -0
  29. package/dist/components/ConfigStorage.js +40 -40
  30. package/dist/components/DataFetcher.js +38 -29
  31. package/dist/components/snk-actions-button2.js +12 -1
  32. package/dist/components/snk-application2.js +92 -90
  33. package/dist/components/snk-attach2.js +1 -8
  34. package/dist/components/snk-crud.js +5 -1
  35. package/dist/components/snk-detail-view2.js +5 -1
  36. package/dist/components/snk-simple-crud2.js +5 -1
  37. package/dist/esm/{ConfigStorage-cfe03e99.js → ConfigStorage-2915a841.js} +2 -3
  38. package/dist/esm/{DataFetcher-aaaff866.js → DataFetcher-0b121ffb.js} +38 -29
  39. package/dist/esm/ISave-4412b20c.js +8 -0
  40. package/dist/esm/{SnkFormConfigManager-bfd8eabd.js → SnkFormConfigManager-8005340f.js} +2 -2
  41. package/dist/esm/{auth-fetcher-7860d777.js → auth-fetcher-643f240e.js} +1 -1
  42. package/dist/esm/{dataunit-fetcher-9dfcdb1d.js → dataunit-fetcher-6423d6eb.js} +1 -1
  43. package/dist/esm/{form-config-fetcher-4a34b86a.js → form-config-fetcher-77cdb26c.js} +65 -3
  44. package/dist/esm/{pesquisa-fetcher-01d058e6.js → pesquisa-fetcher-c5a3c564.js} +1 -1
  45. package/dist/esm/snk-actions-button.entry.js +7 -3
  46. package/dist/esm/snk-application.entry.js +8 -7
  47. package/dist/esm/snk-attach.entry.js +3 -9
  48. package/dist/esm/snk-crud.entry.js +8 -5
  49. package/dist/esm/snk-data-exporter.entry.js +1 -1
  50. package/dist/esm/snk-detail-view.entry.js +10 -9
  51. package/dist/esm/snk-filter-bar.entry.js +3 -4
  52. package/dist/esm/snk-filter-modal-item.entry.js +3 -4
  53. package/dist/esm/snk-form-config.entry.js +2 -3
  54. package/dist/esm/snk-form.entry.js +4 -5
  55. package/dist/esm/snk-grid-config.entry.js +3 -4
  56. package/dist/esm/snk-grid.entry.js +3 -4
  57. package/dist/esm/{snk-guides-viewer-3ea14ab4.js → snk-guides-viewer-43b550a2.js} +8 -3
  58. package/dist/esm/snk-guides-viewer.entry.js +8 -7
  59. package/dist/esm/snk-personalized-filter.entry.js +3 -4
  60. package/dist/esm/snk-print-selector.entry.js +1 -1
  61. package/dist/esm/snk-simple-crud.entry.js +7 -3
  62. package/dist/sankhyablocks/p-1108ed0e.entry.js +1 -0
  63. package/dist/sankhyablocks/p-18ead46b.entry.js +1 -0
  64. package/dist/sankhyablocks/p-1986cfa4.js +26 -0
  65. package/dist/sankhyablocks/p-1c7b4bad.entry.js +1 -0
  66. package/dist/sankhyablocks/p-508822c3.entry.js +1 -0
  67. package/dist/sankhyablocks/{p-85affa29.js → p-53a7ab6c.js} +1 -1
  68. package/dist/sankhyablocks/{p-9f387187.entry.js → p-58b84e45.entry.js} +1 -1
  69. package/dist/sankhyablocks/{p-05bcad8a.entry.js → p-774afde8.entry.js} +1 -1
  70. package/dist/sankhyablocks/p-84b9208d.entry.js +1 -0
  71. package/dist/sankhyablocks/p-85dfb90b.entry.js +1 -0
  72. package/dist/sankhyablocks/{p-9d591463.js → p-86dda34d.js} +1 -1
  73. package/dist/sankhyablocks/{p-bee6b5d7.js → p-9bfc7124.js} +1 -1
  74. package/dist/sankhyablocks/p-9d81ad53.entry.js +1 -0
  75. package/dist/sankhyablocks/p-9e7d65a4.js +1 -0
  76. package/dist/sankhyablocks/{p-9d93da18.js → p-a107474c.js} +2 -2
  77. package/dist/sankhyablocks/p-a28470ae.entry.js +1 -0
  78. package/dist/sankhyablocks/p-b9376677.entry.js +1 -0
  79. package/dist/sankhyablocks/{p-15230263.js → p-c7c035eb.js} +1 -1
  80. package/dist/sankhyablocks/p-caaef934.js +1 -0
  81. package/dist/sankhyablocks/p-cf65dbb2.entry.js +1 -0
  82. package/dist/sankhyablocks/{p-aa4c112f.entry.js → p-da2422ef.entry.js} +3 -3
  83. package/dist/sankhyablocks/p-f1f5232d.entry.js +1 -0
  84. package/dist/sankhyablocks/{p-60791bb6.js → p-f88bdc84.js} +1 -1
  85. package/dist/sankhyablocks/p-fcdd5761.entry.js +1 -0
  86. package/dist/sankhyablocks/p-fdf6b377.entry.js +1 -0
  87. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  88. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -1
  89. package/dist/types/lib/index.d.ts +11 -0
  90. package/package.json +1 -1
  91. package/dist/cjs/resource-fetcher-95d24dff.js +0 -68
  92. package/dist/esm/resource-fetcher-b36ac145.js +0 -66
  93. package/dist/sankhyablocks/p-0ae5b923.entry.js +0 -1
  94. package/dist/sankhyablocks/p-18fa618e.entry.js +0 -1
  95. package/dist/sankhyablocks/p-1b81c379.entry.js +0 -1
  96. package/dist/sankhyablocks/p-2dd0f891.js +0 -17
  97. package/dist/sankhyablocks/p-330f584a.entry.js +0 -1
  98. package/dist/sankhyablocks/p-4c33a77c.entry.js +0 -1
  99. package/dist/sankhyablocks/p-53884b5f.entry.js +0 -1
  100. package/dist/sankhyablocks/p-64c2cec3.js +0 -1
  101. package/dist/sankhyablocks/p-70e785db.entry.js +0 -1
  102. package/dist/sankhyablocks/p-861a3495.entry.js +0 -1
  103. package/dist/sankhyablocks/p-878b0dd3.entry.js +0 -1
  104. package/dist/sankhyablocks/p-97d2fbd9.entry.js +0 -1
  105. package/dist/sankhyablocks/p-bae87498.entry.js +0 -1
  106. package/dist/sankhyablocks/p-cc67bd06.entry.js +0 -1
  107. package/dist/sankhyablocks/p-e070d7a3.entry.js +0 -1
  108. package/dist/sankhyablocks/p-f737f7e1.js +0 -10
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { WaitingChangeException, WarningException, ErrorException, ObjectUtils, DateUtils, StringUtils, OnboardingUtils, DependencyType, ElementIDUtils, ApplicationContext, ErrorTracking, DataType } from '@sankhyalabs/core';
2
+ import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, OnboardingUtils, DependencyType, ElementIDUtils, ApplicationContext, ErrorTracking, DataType } from '@sankhyalabs/core';
3
3
  import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher.js';
4
4
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
5
5
  import { P as PesquisaFetcher } from './pesquisa-fetcher.js';
@@ -9,68 +9,6 @@ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher.js';
9
9
  import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
10
10
  import { d as defineCustomElement$1 } from './snk-pesquisa2.js';
11
11
 
12
- class SnkErrorHandler {
13
- constructor(app) {
14
- this._app = app;
15
- window.addEventListener("error", evt => this.errorHandler(evt));
16
- window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
17
- }
18
- rejectionHandler(evt) {
19
- const reason = evt.reason;
20
- //Promisse rejeitada com WaitingChangeException, não precisam
21
- //ser notificadas pelo usuário.
22
- if (!(reason instanceof WaitingChangeException)) {
23
- if (reason) {
24
- this.processException(reason);
25
- }
26
- else {
27
- this._app.isDebugMode().then((isDebug) => {
28
- if (isDebug) {
29
- this._app.error("Promise rejeitada", "Erro interno: Uma promise foi rejeitada sem razão determinada.");
30
- }
31
- });
32
- }
33
- }
34
- }
35
- errorHandler(evt) {
36
- this.processException(evt.error);
37
- }
38
- buildErrorCodeHTML(errorCode) {
39
- const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
40
- return '<br><a href="#" onclick="' + onclick + '">Código: ' + errorCode + '</a>';
41
- }
42
- processException(exception) {
43
- if (exception.errorCode) {
44
- exception.message += this.buildErrorCodeHTML(exception.errorCode);
45
- }
46
- if (exception instanceof WaitingChangeException) {
47
- this._app.alert(exception.title, exception.message);
48
- }
49
- else if (exception instanceof WarningException) {
50
- this._app.alert(exception.title, exception.message);
51
- }
52
- else if (exception instanceof ErrorException) {
53
- this._app.error(exception.title, exception.message);
54
- }
55
- else {
56
- this._app.isDebugMode().then(isDebug => {
57
- if (isDebug) {
58
- if (exception instanceof Error) {
59
- this._app.error(exception.name, exception.message);
60
- }
61
- else {
62
- const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
63
- const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${ObjectUtils.objectToString(exception)}"`;
64
- this._app.error(title, message);
65
- }
66
- }
67
- });
68
- }
69
- }
70
- }
71
-
72
- 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);
73
-
74
12
  class TotalsFetcher {
75
13
  constructor() {
76
14
  this.templateByQuery = new Map();
@@ -133,33 +71,6 @@ class TotalsFetcher {
133
71
  }
134
72
  }
135
73
 
136
- var _a;
137
- class Workspace {
138
- static openAppActivity(resourceId, pkObject) {
139
- var _a;
140
- (_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.openAppActivity(resourceId, pkObject);
141
- }
142
- static getAppLabel(resourceID) {
143
- if ((window === null || window === void 0 ? void 0 : window["workspace"]) == undefined) {
144
- return;
145
- }
146
- if (window["workspace"].getAppLabel == undefined) {
147
- window["workspace"].getAppLabel = (id) => {
148
- return (id || "").split(".").pop();
149
- };
150
- }
151
- return window["workspace"].getAppLabel(resourceID);
152
- }
153
- }
154
- Workspace.resourceID = (_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID;
155
-
156
- class AppletCaller {
157
- static webConnectionCaller(port, methodName, params) {
158
- var _a;
159
- (_a = window["AppletCaller"]) === null || _a === void 0 ? void 0 : _a.webConnectionCaller(port, methodName, params);
160
- }
161
- }
162
-
163
74
  class ParametersFetcher {
164
75
  constructor() {
165
76
  this.templateByQuery = new Map();
@@ -224,6 +135,95 @@ class ParametersFetcher {
224
135
  }
225
136
  }
226
137
 
138
+ class SnkErrorHandler {
139
+ constructor(app) {
140
+ this._app = app;
141
+ window.addEventListener("error", evt => this.errorHandler(evt));
142
+ window.addEventListener("unhandledrejection", evt => this.rejectionHandler(evt));
143
+ }
144
+ rejectionHandler(evt) {
145
+ const reason = evt.reason;
146
+ //Promisse rejeitada com WaitingChangeException, não precisam
147
+ //ser notificadas pelo usuário.
148
+ if (!(reason instanceof WaitingChangeException)) {
149
+ if (reason) {
150
+ this.processException(reason);
151
+ }
152
+ else {
153
+ this._app.isDebugMode().then((isDebug) => {
154
+ if (isDebug) {
155
+ this._app.error("Promise rejeitada", "Erro interno: Uma promise foi rejeitada sem razão determinada.");
156
+ }
157
+ });
158
+ }
159
+ }
160
+ }
161
+ errorHandler(evt) {
162
+ this.processException(evt.error);
163
+ }
164
+ buildErrorCodeHTML(errorCode) {
165
+ const onclick = 'try{window.workspace.openHelp(\'_tbcode:' + errorCode + '\')} catch(e){alert(\'Não é possível abrir a ajuda fora do workspace Sankhya\');}';
166
+ return '<br><a href="#" onclick="' + onclick + '">Código: ' + errorCode + '</a>';
167
+ }
168
+ processException(exception) {
169
+ if (exception.errorCode) {
170
+ exception.message += this.buildErrorCodeHTML(exception.errorCode);
171
+ }
172
+ if (exception instanceof WaitingChangeException) {
173
+ this._app.alert(exception.title, exception.message);
174
+ }
175
+ else if (exception instanceof WarningException) {
176
+ this._app.alert(exception.title, exception.message);
177
+ }
178
+ else if (exception instanceof ErrorException) {
179
+ this._app.error(exception.title, exception.message);
180
+ }
181
+ else {
182
+ this._app.isDebugMode().then(isDebug => {
183
+ if (isDebug) {
184
+ if (exception instanceof Error) {
185
+ this._app.error(exception.name, exception.message);
186
+ }
187
+ else {
188
+ const title = (exception === null || exception === void 0 ? void 0 : exception.title) || "Erro detectado";
189
+ const message = (typeof exception === "string") ? exception : exception.message || `Erro interno "${ObjectUtils.objectToString(exception)}"`;
190
+ this._app.error(title, message);
191
+ }
192
+ }
193
+ });
194
+ }
195
+ }
196
+ }
197
+
198
+ 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);
199
+
200
+ var _a;
201
+ class Workspace {
202
+ static openAppActivity(resourceId, pkObject) {
203
+ var _a;
204
+ (_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.openAppActivity(resourceId, pkObject);
205
+ }
206
+ static getAppLabel(resourceID) {
207
+ if ((window === null || window === void 0 ? void 0 : window["workspace"]) == undefined) {
208
+ return;
209
+ }
210
+ if (window["workspace"].getAppLabel == undefined) {
211
+ window["workspace"].getAppLabel = (id) => {
212
+ return (id || "").split(".").pop();
213
+ };
214
+ }
215
+ return window["workspace"].getAppLabel(resourceID);
216
+ }
217
+ }
218
+ Workspace.resourceID = (_a = window["workspace"]) === null || _a === void 0 ? void 0 : _a.resourceID;
219
+
220
+ class AppletCaller {
221
+ static webConnectionCaller(port, methodName, params) {
222
+ var _a;
223
+ (_a = window["AppletCaller"]) === null || _a === void 0 ? void 0 : _a.webConnectionCaller(port, methodName, params);
224
+ }
225
+ }
226
+
227
227
  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'];}}
228
228
 
229
229
  const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
@@ -844,6 +844,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
844
844
  this._popUp.ezTitle = title;
845
845
  }
846
846
  componentWillLoad() {
847
+ ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", true);
847
848
  this._errorHandler = new SnkErrorHandler(this);
848
849
  this.messagesBuilder = new SnkMessageBuilder();
849
850
  ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${UrlUtils.getUrlBase()}/mge/upload/file`);
@@ -864,6 +865,7 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
864
865
  componentDidLoad() {
865
866
  this.applicationLoading.emit(true);
866
867
  window.requestAnimationFrame(() => {
868
+ ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", false);
867
869
  this.applicationLoaded.emit(true);
868
870
  });
869
871
  ElementIDUtils.addIDInfo(this._element, `resource_${this.applicationResourceID}`);
@@ -1,23 +1,16 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
2
  import { ApplicationContext, DataType, Action } from '@sankhyalabs/core';
3
3
  import { D as DataFetcher } from './DataFetcher.js';
4
+ import { a as SaveErrorsEnum, d as defineCustomElement$7 } from './snk-actions-button2.js';
4
5
  import { V as VIEW_MODE } from './constants.js';
5
6
  import { D as DataUnitFetcher } from './dataunit-fetcher.js';
6
7
  import { T as TaskbarElement, d as defineCustomElement$1 } from './snk-taskbar2.js';
7
- import { d as defineCustomElement$7 } from './snk-actions-button2.js';
8
8
  import { d as defineCustomElement$6 } from './snk-data-exporter2.js';
9
9
  import { d as defineCustomElement$5 } from './snk-data-unit2.js';
10
10
  import { d as defineCustomElement$4 } from './snk-exporter-email-sender2.js';
11
11
  import { d as defineCustomElement$3 } from './snk-simple-bar2.js';
12
12
  import { d as defineCustomElement$2 } from './snk-simple-crud2.js';
13
13
 
14
- var SaveErrorsEnum;
15
- (function (SaveErrorsEnum) {
16
- SaveErrorsEnum["LINK_AND_FILE_AT_THE_SAME_TIME"] = "LINK_AND_FILE_AT_THE_SAME_TIME";
17
- SaveErrorsEnum["ANY_LINK_OR_FILE_FILLED"] = "ANY_LINK_OR_FILE_FILLED";
18
- SaveErrorsEnum["UNKNOWN"] = "UNKNOWN";
19
- })(SaveErrorsEnum || (SaveErrorsEnum = {}));
20
-
21
14
  class AttachFetcher {
22
15
  constructor(entityName, registerKey, dataUnitName) {
23
16
  var _a;
@@ -4,9 +4,13 @@ import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.
4
4
  import './DataFetcher.js';
5
5
  import './pesquisa-fetcher.js';
6
6
  import { P as PresentationMode } from './index2.js';
7
+ import { d as defineCustomElement$v } from './snk-actions-button2.js';
8
+ import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
+ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
+ import './filter-item-type.enum.js';
11
+ import './form-config-fetcher.js';
7
12
  import { V as VIEW_MODE } from './constants.js';
8
13
  import { A as AutorizationType } from './auth-fetcher.js';
9
- import { d as defineCustomElement$v } from './snk-actions-button2.js';
10
14
  import { d as defineCustomElement$u } from './snk-attach2.js';
11
15
  import { d as defineCustomElement$t } from './snk-config-options2.js';
12
16
  import { d as defineCustomElement$s } from './snk-configurator2.js';
@@ -5,11 +5,15 @@ import './DataFetcher.js';
5
5
  import './pesquisa-fetcher.js';
6
6
  import { ElementIDUtils } from '@sankhyalabs/core';
7
7
  import { P as PresentationMode } from './index2.js';
8
+ import { d as defineCustomElement$t } from './snk-actions-button2.js';
9
+ import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
+ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
+ import './filter-item-type.enum.js';
12
+ import './form-config-fetcher.js';
8
13
  import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
9
14
  import { V as VIEW_MODE } from './constants.js';
10
15
  import { T as TaskbarProcessor } from './SnkMultiSelectionListDataSource.js';
11
16
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
12
- import { d as defineCustomElement$t } from './snk-actions-button2.js';
13
17
  import { d as defineCustomElement$s } from './snk-attach2.js';
14
18
  import { d as defineCustomElement$r } from './snk-config-options2.js';
15
19
  import { d as defineCustomElement$q } from './snk-configurator2.js';
@@ -5,8 +5,12 @@ import { T as TaskbarElement, d as defineCustomElement$1 } from './snk-taskbar2.
5
5
  import './DataFetcher.js';
6
6
  import './pesquisa-fetcher.js';
7
7
  import { P as PresentationMode } from './index2.js';
8
- import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor } from './SnkMultiSelectionListDataSource.js';
9
8
  import { d as defineCustomElement$5 } from './snk-actions-button2.js';
9
+ import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
+ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
+ import './filter-item-type.enum.js';
12
+ import './form-config-fetcher.js';
13
+ import { S as SnkMultiSelectionListDataSource, T as TaskbarProcessor } from './SnkMultiSelectionListDataSource.js';
10
14
  import { d as defineCustomElement$4 } from './snk-data-exporter2.js';
11
15
  import { d as defineCustomElement$3 } from './snk-data-unit2.js';
12
16
  import { d as defineCustomElement$2 } from './snk-exporter-email-sender2.js';
@@ -1,7 +1,6 @@
1
- import { F as FormConfigFetcher } from './form-config-fetcher-4a34b86a.js';
2
- import { R as ResourceFetcher } from './resource-fetcher-b36ac145.js';
1
+ import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-77cdb26c.js';
3
2
  import { F as FilterItemType } from './filter-item-type.enum-5028ed3f.js';
4
- import { d as dist, D as DataFetcher } from './DataFetcher-aaaff866.js';
3
+ import { d as dist, D as DataFetcher } from './DataFetcher-0b121ffb.js';
5
4
 
6
5
  class GridConfigFetcher extends ResourceFetcher {
7
6
  constructor() {
@@ -6709,6 +6709,7 @@ class AppletImpressao {
6709
6709
  class DataFetcher {
6710
6710
  constructor() {
6711
6711
  this.GRAPHQL_PATH = "/mgefin-bff/graphql";
6712
+ this.ready = true;
6712
6713
  this.watingRequestsById = new Map();
6713
6714
  }
6714
6715
  static get() {
@@ -6719,6 +6720,9 @@ class DataFetcher {
6719
6720
  DataFetcher.instance.resume();
6720
6721
  }
6721
6722
  else {
6723
+ if (ApplicationContext.getContextValue("__SNK__APPLICATION__LOADING__") === true) {
6724
+ DataFetcher.instance.pause();
6725
+ }
6722
6726
  application.addEventListener('applicationLoading', () => DataFetcher.instance.pause());
6723
6727
  application.addEventListener('applicationLoaded', () => DataFetcher.instance.resume());
6724
6728
  }
@@ -6777,6 +6781,10 @@ class DataFetcher {
6777
6781
  }
6778
6782
  async callGraphQL(req) {
6779
6783
  var _a;
6784
+ if (this.ready) {
6785
+ this.pause();
6786
+ window.requestAnimationFrame(() => this.resume());
6787
+ }
6780
6788
  const reqKey = this.getReqKey(req);
6781
6789
  req.queryID = reqKey;
6782
6790
  req.values.queryID = reqKey;
@@ -6806,7 +6814,7 @@ class DataFetcher {
6806
6814
  if (!this.watingRequestsById.has(reqKey)) {
6807
6815
  this.watingRequestsById.set(reqKey, new WaitingRequest(req));
6808
6816
  }
6809
- return (_a = this.getWatingRequest(reqKey)) === null || _a === void 0 ? void 0 : _a.promise;
6817
+ return (_a = this.watingRequestsById.get(reqKey)) === null || _a === void 0 ? void 0 : _a.promise;
6810
6818
  }
6811
6819
  }
6812
6820
  resolveURL() {
@@ -6954,42 +6962,43 @@ class DataFetcher {
6954
6962
  getQueryTemplate(re) {
6955
6963
  return (re.query || "").replaceAll("$queryAlias$", re.queryID);
6956
6964
  }
6957
- getWatingRequest(reqID) {
6958
- return this.watingRequestsById.get(reqID);
6959
- }
6960
6965
  pause() {
6961
6966
  this.ready = false;
6962
6967
  }
6963
6968
  async resume() {
6964
6969
  this.ready = true;
6965
6970
  if (this.watingRequestsById.size > 0) {
6966
- const requestsBatch = [];
6967
- this.watingRequestsById.forEach(async (waitingReq) => {
6968
- let query = this.getQueryTemplate(waitingReq.request);
6969
- requestsBatch.push({ document: query, variables: Object.assign({}, waitingReq.request.values) });
6970
- });
6971
- let res = undefined;
6972
- let dataResponse = [];
6973
- let errorsResponse = [];
6974
- res = await this.fecthGrapql(requestsBatch);
6975
- dataResponse = res.data;
6976
- errorsResponse = res.errors;
6977
- //Reject promises with errors from query
6978
- errorsResponse.forEach((errorResponse) => {
6979
- Object.entries(errorResponse).forEach(([_key, val]) => {
6980
- var _a;
6981
- (((_a = this.getWatingRequest(val.request.variables[val.index].queryID)) === null || _a === void 0 ? void 0 : _a.reject) || Promise.reject)(new ErrorException("Falha detectada", val.message));
6982
- });
6971
+ const waitinRequests = this.watingRequestsById;
6972
+ this.watingRequestsById = new Map();
6973
+ this.executePendingRequest(waitinRequests);
6974
+ }
6975
+ }
6976
+ async executePendingRequest(watingRequestsById) {
6977
+ const requestsBatch = [];
6978
+ watingRequestsById.forEach(async (waitingReq) => {
6979
+ let query = this.getQueryTemplate(waitingReq.request);
6980
+ requestsBatch.push({ document: query, variables: Object.assign({}, waitingReq.request.values) });
6981
+ });
6982
+ let res = undefined;
6983
+ let dataResponse = [];
6984
+ let errorsResponse = [];
6985
+ res = await this.fecthGrapql(requestsBatch);
6986
+ dataResponse = res.data;
6987
+ errorsResponse = res.errors;
6988
+ //Reject promises with errors from query
6989
+ errorsResponse.forEach((errorResponse) => {
6990
+ Object.entries(errorResponse).forEach(([_key, val]) => {
6991
+ var _a;
6992
+ (((_a = watingRequestsById.get(val.request.variables[val.index].queryID)) === null || _a === void 0 ? void 0 : _a.reject) || Promise.reject)(new ErrorException("Falha detectada", val.message));
6983
6993
  });
6984
- //Resolve promises with data from query
6985
- dataResponse.forEach((data) => {
6986
- Object.entries(data).forEach(([key, val]) => {
6987
- var _a;
6988
- (((_a = this.getWatingRequest(key)) === null || _a === void 0 ? void 0 : _a.resolve) || Promise.resolve)(val);
6989
- });
6994
+ });
6995
+ //Resolve promises with data from query
6996
+ dataResponse.forEach((data) => {
6997
+ Object.entries(data).forEach(([key, val]) => {
6998
+ var _a;
6999
+ (((_a = watingRequestsById.get(key)) === null || _a === void 0 ? void 0 : _a.resolve) || Promise.resolve)(val);
6990
7000
  });
6991
- this.watingRequestsById.clear();
6992
- }
7001
+ });
6993
7002
  }
6994
7003
  async fecthGrapql(request) {
6995
7004
  let res = undefined;
@@ -0,0 +1,8 @@
1
+ var SaveErrorsEnum;
2
+ (function (SaveErrorsEnum) {
3
+ SaveErrorsEnum["LINK_AND_FILE_AT_THE_SAME_TIME"] = "LINK_AND_FILE_AT_THE_SAME_TIME";
4
+ SaveErrorsEnum["ANY_LINK_OR_FILE_FILLED"] = "ANY_LINK_OR_FILE_FILLED";
5
+ SaveErrorsEnum["UNKNOWN"] = "UNKNOWN";
6
+ })(SaveErrorsEnum || (SaveErrorsEnum = {}));
7
+
8
+ export { SaveErrorsEnum as S };
@@ -1,6 +1,6 @@
1
- import { C as ConfigStorage } from './ConfigStorage-cfe03e99.js';
1
+ import { C as ConfigStorage } from './ConfigStorage-2915a841.js';
2
2
  import { ObjectUtils } from '@sankhyalabs/core';
3
- import { F as FormConfigFetcher } from './form-config-fetcher-4a34b86a.js';
3
+ import { F as FormConfigFetcher } from './form-config-fetcher-77cdb26c.js';
4
4
 
5
5
  class SnkFormConfigManager {
6
6
  constructor(configName, resourceID, onConfigChange) {
@@ -1,5 +1,5 @@
1
1
  import { ObjectUtils } from '@sankhyalabs/core';
2
- import { R as ResourceFetcher } from './resource-fetcher-b36ac145.js';
2
+ import { R as ResourceFetcher } from './form-config-fetcher-77cdb26c.js';
3
3
 
4
4
  class AuthFetcher extends ResourceFetcher {
5
5
  getData(resourceID) {
@@ -1,5 +1,5 @@
1
1
  import { DataUnit, StringUtils, DataType, DataUnitStorage, ChangeOperation } from '@sankhyalabs/core';
2
- import { d as dist, D as DataFetcher } from './DataFetcher-aaaff866.js';
2
+ import { d as dist, D as DataFetcher } from './DataFetcher-0b121ffb.js';
3
3
  import { DISTINCT_FILTER_NAME_PREFIX } from '@sankhyalabs/ezui/dist/collection/utils/constants';
4
4
  import { DataUnitTransient } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
5
5
 
@@ -1,6 +1,68 @@
1
- import { d as dist, D as DataFetcher } from './DataFetcher-aaaff866.js';
1
+ import { d as dist, D as DataFetcher } from './DataFetcher-0b121ffb.js';
2
2
  import { ObjectUtils } from '@sankhyalabs/core';
3
- import { R as ResourceFetcher } from './resource-fetcher-b36ac145.js';
3
+
4
+ class ResourceFetcher {
5
+ constructor() {
6
+ this.templateByQuery = new Map();
7
+ this.buldTemplates();
8
+ }
9
+ buldTemplates() {
10
+ this.templateByQuery.set("fetchResource", dist.gql `query($name: String!) {
11
+ $queryAlias$: fetchResource(name: $name){
12
+ resource
13
+ }
14
+ }`);
15
+ this.templateByQuery.set("saveResource", dist.gql `mutation($resource: InputResource!) {
16
+ $queryAlias$: saveResource(resource: $resource){
17
+ name
18
+ resource
19
+ }
20
+ }`);
21
+ }
22
+ loadResource(name) {
23
+ if (ResourceFetcher._loadingResource.has(name)) {
24
+ return ResourceFetcher._loadingResource.get(name);
25
+ }
26
+ const promiseLoadResource = new Promise((resolve, reject) => {
27
+ DataFetcher.get()
28
+ .callGraphQL({
29
+ values: { name },
30
+ query: this.templateByQuery.get("fetchResource"),
31
+ })
32
+ .then((result) => {
33
+ resolve(result === null || result === void 0 ? void 0 : result.resource);
34
+ ResourceFetcher._loadingResource.delete(name);
35
+ })
36
+ .catch((error) => {
37
+ reject(error);
38
+ ResourceFetcher._loadingResource.delete(name);
39
+ });
40
+ });
41
+ ResourceFetcher._loadingResource.set(name, promiseLoadResource);
42
+ return promiseLoadResource;
43
+ }
44
+ saveResource(resource, name) {
45
+ return new Promise((resolve, reject) => {
46
+ DataFetcher.get()
47
+ .callGraphQL({
48
+ values: {
49
+ resource: {
50
+ name: name,
51
+ resource: JSON.stringify(resource)
52
+ }
53
+ },
54
+ query: this.templateByQuery.get("saveResource")
55
+ })
56
+ .then((resp) => {
57
+ resolve(resp);
58
+ })
59
+ .catch((error) => {
60
+ reject(error);
61
+ });
62
+ });
63
+ }
64
+ }
65
+ ResourceFetcher._loadingResource = new Map();
4
66
 
5
67
  class FormConfigFetcher extends ResourceFetcher {
6
68
  constructor() {
@@ -176,4 +238,4 @@ var UserConfigType;
176
238
  UserConfigType["SHARED"] = "SHARED";
177
239
  })(UserConfigType || (UserConfigType = {}));
178
240
 
179
- export { FormConfigFetcher as F, UserConfigType as U };
241
+ export { FormConfigFetcher as F, ResourceFetcher as R, UserConfigType as U };
@@ -1,5 +1,5 @@
1
1
  import { DataType } from '@sankhyalabs/core';
2
- import { d as dist, D as DataFetcher } from './DataFetcher-aaaff866.js';
2
+ import { d as dist, D as DataFetcher } from './DataFetcher-0b121ffb.js';
3
3
 
4
4
  class PesquisaFetcher {
5
5
  constructor() {
@@ -1,12 +1,16 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { ApplicationContext, StringUtils, ErrorException, WarningException, ObjectUtils, DateUtils, ArrayUtils, ElementIDUtils } from '@sankhyalabs/core';
3
- import { D as DataFetcher } from './DataFetcher-aaaff866.js';
3
+ import { D as DataFetcher } from './DataFetcher-0b121ffb.js';
4
4
  import { P as ParamType } from './ParamType-d5152b06.js';
5
- import './pesquisa-fetcher-01d058e6.js';
5
+ import './pesquisa-fetcher-c5a3c564.js';
6
6
  import './index-1564817d.js';
7
+ import './ISave-4412b20c.js';
8
+ import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
+ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
+ import './filter-item-type.enum-5028ed3f.js';
11
+ import './form-config-fetcher-77cdb26c.js';
7
12
  import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
8
13
  import './_commonjsHelpers-9943807e.js';
9
- import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
14
 
11
15
  const SERVICE_ACTION_EXECUTE_JAVA = 'ActionButtonsSP.executeJava';
12
16
  class JavaExecutor {
@@ -1,16 +1,15 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
2
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-aaaff866.js';
3
+ import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-0b121ffb.js';
4
4
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
5
- import { P as PesquisaFetcher } from './pesquisa-fetcher-01d058e6.js';
6
- import { C as ConfigStorage } from './ConfigStorage-cfe03e99.js';
7
- import { D as DataUnitFetcher } from './dataunit-fetcher-9dfcdb1d.js';
8
- import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-7860d777.js';
5
+ import { P as PesquisaFetcher } from './pesquisa-fetcher-c5a3c564.js';
6
+ import { C as ConfigStorage } from './ConfigStorage-2915a841.js';
7
+ import { D as DataUnitFetcher } from './dataunit-fetcher-6423d6eb.js';
8
+ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-643f240e.js';
9
9
  import { S as SnkMessageBuilder } from './SnkMessageBuilder-68c1c25a.js';
10
10
  import './_commonjsHelpers-9943807e.js';
11
11
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
12
- import './form-config-fetcher-4a34b86a.js';
13
- import './resource-fetcher-b36ac145.js';
12
+ import './form-config-fetcher-77cdb26c.js';
14
13
  import './filter-item-type.enum-5028ed3f.js';
15
14
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
16
15
 
@@ -848,6 +847,7 @@ const SnkApplication = class {
848
847
  this._popUp.ezTitle = title;
849
848
  }
850
849
  componentWillLoad() {
850
+ ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", true);
851
851
  this._errorHandler = new SnkErrorHandler(this);
852
852
  this.messagesBuilder = new SnkMessageBuilder();
853
853
  ApplicationContext.setContextValue("__EZUI__UPLOAD__ADD__URL__", `${UrlUtils.getUrlBase()}/mge/upload/file`);
@@ -868,6 +868,7 @@ const SnkApplication = class {
868
868
  componentDidLoad() {
869
869
  this.applicationLoading.emit(true);
870
870
  window.requestAnimationFrame(() => {
871
+ ApplicationContext.setContextValue("__SNK__APPLICATION__LOADING__", false);
871
872
  this.applicationLoaded.emit(true);
872
873
  });
873
874
  ElementIDUtils.addIDInfo(this._element, `resource_${this.applicationResourceID}`);
@@ -1,8 +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-aaaff866.js';
3
+ import { D as DataFetcher } from './DataFetcher-0b121ffb.js';
4
+ import { S as SaveErrorsEnum } from './ISave-4412b20c.js';
4
5
  import { c as VIEW_MODE } from './constants-3644f1b6.js';
5
- import { D as DataUnitFetcher } from './dataunit-fetcher-9dfcdb1d.js';
6
+ import { D as DataUnitFetcher } from './dataunit-fetcher-6423d6eb.js';
6
7
  import { T as TaskbarElement } from './taskbar-elements-2c761819.js';
7
8
  import './_commonjsHelpers-9943807e.js';
8
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -10,13 +11,6 @@ import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
11
  import './index-1564817d.js';
11
12
  import './index-bdf75557.js';
12
13
 
13
- var SaveErrorsEnum;
14
- (function (SaveErrorsEnum) {
15
- SaveErrorsEnum["LINK_AND_FILE_AT_THE_SAME_TIME"] = "LINK_AND_FILE_AT_THE_SAME_TIME";
16
- SaveErrorsEnum["ANY_LINK_OR_FILE_FILLED"] = "ANY_LINK_OR_FILE_FILLED";
17
- SaveErrorsEnum["UNKNOWN"] = "UNKNOWN";
18
- })(SaveErrorsEnum || (SaveErrorsEnum = {}));
19
-
20
14
  class AttachFetcher {
21
15
  constructor(entityName, registerKey, dataUnitName) {
22
16
  var _a;