@sankhyalabs/sankhyablocks 8.16.0-dev.41 → 8.16.0-dev.43

Sign up to get free protection for your applications and to get access to all the features.
Files changed (91) hide show
  1. package/dist/cjs/{ConfigStorage-ecc0ed20.js → ConfigStorage-f079f5fd.js} +2 -2
  2. package/dist/cjs/{ContinuousInsertUtils-37c7cbcf.js → ContinuousInsertUtils-64e47516.js} +4 -4
  3. package/dist/cjs/{DataFetcher-cadeef8e.js → DataFetcher-e059eb72.js} +7 -5
  4. package/dist/cjs/{SnkFormConfigManager-f1c92f79.js → SnkFormConfigManager-63369164.js} +2 -2
  5. package/dist/cjs/{auth-fetcher-d68841bc.js → auth-fetcher-4f853233.js} +1 -1
  6. package/dist/cjs/{dataunit-fetcher-a36ae041.js → dataunit-fetcher-228016f4.js} +1 -1
  7. package/dist/cjs/{form-config-fetcher-ed497282.js → form-config-fetcher-39397ac5.js} +1 -1
  8. package/dist/cjs/{pesquisa-fetcher-490a86c3.js → pesquisa-fetcher-a9bfeb22.js} +1 -1
  9. package/dist/cjs/snk-actions-button_4.cjs.entry.js +5 -5
  10. package/dist/cjs/snk-application.cjs.entry.js +101 -59
  11. package/dist/cjs/snk-attach.cjs.entry.js +5 -5
  12. package/dist/cjs/snk-config-options_3.cjs.entry.js +4 -4
  13. package/dist/cjs/snk-crud.cjs.entry.js +5 -5
  14. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
  15. package/dist/cjs/{snk-data-unit-b460f1da.js → snk-data-unit-3d4d0e2a.js} +1 -1
  16. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  17. package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
  18. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
  19. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  20. package/dist/cjs/snk-grid.cjs.entry.js +6 -6
  21. package/dist/cjs/{snk-guides-viewer-de0a5c57.js → snk-guides-viewer-eee43c8b.js} +8 -5
  22. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  23. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  24. package/dist/cjs/snk-simple-crud.cjs.entry.js +7 -7
  25. package/dist/collection/components/snk-application/request-listener/DebouncedRequestListener.js +28 -0
  26. package/dist/collection/components/snk-application/request-listener/RequestListenerFactory.js +16 -0
  27. package/dist/collection/components/snk-application/request-listener/RequestListenerLoadingBar.js +52 -0
  28. package/dist/collection/components/snk-application/snk-application.js +3 -53
  29. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +3 -0
  30. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +8 -6
  31. package/dist/components/DataFetcher.js +7 -5
  32. package/dist/components/snk-application2.js +95 -53
  33. package/dist/components/snk-detail-view2.js +3 -0
  34. package/dist/esm/{ConfigStorage-7b36d041.js → ConfigStorage-6514d66e.js} +2 -2
  35. package/dist/esm/{ContinuousInsertUtils-881c41a9.js → ContinuousInsertUtils-b62906f9.js} +4 -4
  36. package/dist/esm/{DataFetcher-a9c598f2.js → DataFetcher-5034df59.js} +7 -5
  37. package/dist/esm/{SnkFormConfigManager-f1a0fc92.js → SnkFormConfigManager-b409c745.js} +2 -2
  38. package/dist/esm/{auth-fetcher-749d880f.js → auth-fetcher-ca5d3a49.js} +1 -1
  39. package/dist/esm/{dataunit-fetcher-fd58c640.js → dataunit-fetcher-56cb648b.js} +1 -1
  40. package/dist/esm/{form-config-fetcher-adbe5d34.js → form-config-fetcher-a7d3e277.js} +1 -1
  41. package/dist/esm/{pesquisa-fetcher-50fc7e6b.js → pesquisa-fetcher-6bc2e41a.js} +1 -1
  42. package/dist/esm/snk-actions-button_4.entry.js +5 -5
  43. package/dist/esm/snk-application.entry.js +101 -59
  44. package/dist/esm/snk-attach.entry.js +5 -5
  45. package/dist/esm/snk-config-options_3.entry.js +4 -4
  46. package/dist/esm/snk-crud.entry.js +5 -5
  47. package/dist/esm/snk-data-exporter.entry.js +5 -5
  48. package/dist/esm/{snk-data-unit-590225b5.js → snk-data-unit-618e0b80.js} +1 -1
  49. package/dist/esm/snk-data-unit.entry.js +3 -3
  50. package/dist/esm/snk-detail-view.entry.js +7 -7
  51. package/dist/esm/snk-filter-bar_4.entry.js +3 -3
  52. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  53. package/dist/esm/snk-grid.entry.js +6 -6
  54. package/dist/esm/{snk-guides-viewer-2f4dcdc5.js → snk-guides-viewer-e8ca764a.js} +8 -5
  55. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  56. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  57. package/dist/esm/snk-simple-crud.entry.js +7 -7
  58. package/dist/sankhyablocks/{p-f3434fc4.js → p-00278e07.js} +1 -1
  59. package/dist/sankhyablocks/{p-fadc8339.js → p-0e206e62.js} +1 -1
  60. package/dist/sankhyablocks/{p-242d010e.entry.js → p-0e250436.entry.js} +1 -1
  61. package/dist/sankhyablocks/{p-06421fdb.js → p-126c58ea.js} +1 -1
  62. package/dist/sankhyablocks/{p-6114ee36.entry.js → p-1dbd5c18.entry.js} +1 -1
  63. package/dist/sankhyablocks/{p-fa6c5826.entry.js → p-30ebcbe0.entry.js} +1 -1
  64. package/dist/sankhyablocks/{p-8a9638ae.js → p-341465ce.js} +2 -2
  65. package/dist/sankhyablocks/{p-052213ba.entry.js → p-3858a2e4.entry.js} +1 -1
  66. package/dist/sankhyablocks/p-42130213.entry.js +1 -0
  67. package/dist/sankhyablocks/{p-cefb0ee1.entry.js → p-43353d86.entry.js} +1 -1
  68. package/dist/sankhyablocks/{p-47bce500.js → p-47d24ac8.js} +1 -1
  69. package/dist/sankhyablocks/{p-275de842.entry.js → p-563b7c28.entry.js} +1 -1
  70. package/dist/sankhyablocks/{p-72c10005.entry.js → p-9c3138f5.entry.js} +1 -1
  71. package/dist/sankhyablocks/{p-4d9549cf.js → p-9ffd9fc7.js} +1 -1
  72. package/dist/sankhyablocks/{p-0b6cd238.entry.js → p-a2c790ac.entry.js} +1 -1
  73. package/dist/sankhyablocks/{p-fd13b4d2.js → p-a75e9dcc.js} +1 -1
  74. package/dist/sankhyablocks/{p-212213d9.entry.js → p-aa003d4e.entry.js} +1 -1
  75. package/dist/sankhyablocks/p-aaf94476.js +1 -0
  76. package/dist/sankhyablocks/{p-583517ba.entry.js → p-c1adf0dd.entry.js} +1 -1
  77. package/dist/sankhyablocks/p-da87e42c.entry.js +11 -0
  78. package/dist/sankhyablocks/{p-7bd9683d.js → p-e3a285a2.js} +1 -1
  79. package/dist/sankhyablocks/{p-cfa1b199.js → p-e4391e16.js} +1 -1
  80. package/dist/sankhyablocks/{p-5e51e833.entry.js → p-f0aaad2b.entry.js} +1 -1
  81. package/dist/sankhyablocks/{p-fb34e0cf.entry.js → p-fca0e5cc.entry.js} +1 -1
  82. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  83. package/dist/types/components/snk-application/request-listener/DebouncedRequestListener.d.ts +11 -0
  84. package/dist/types/components/snk-application/request-listener/RequestListenerFactory.d.ts +12 -0
  85. package/dist/types/components/snk-application/request-listener/RequestListenerLoadingBar.d.ts +13 -0
  86. package/dist/types/components/snk-application/snk-application.d.ts +3 -12
  87. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  88. package/package.json +1 -1
  89. package/dist/sankhyablocks/p-ab1645fb.entry.js +0 -1
  90. package/dist/sankhyablocks/p-ca5ec380.js +0 -1
  91. package/dist/sankhyablocks/p-dbe6174a.entry.js +0 -11
@@ -1,9 +1,9 @@
1
1
  'use strict';
2
2
 
3
- const formConfigFetcher = require('./form-config-fetcher-ed497282.js');
3
+ const formConfigFetcher = require('./form-config-fetcher-39397ac5.js');
4
4
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
5
5
  const core = require('@sankhyalabs/core');
6
- const DataFetcher = require('./DataFetcher-cadeef8e.js');
6
+ const DataFetcher = require('./DataFetcher-e059eb72.js');
7
7
 
8
8
  class GridConfigFetcher extends formConfigFetcher.ResourceFetcher {
9
9
  constructor() {
@@ -1,15 +1,15 @@
1
1
  'use strict';
2
2
 
3
- const DataFetcher = require('./DataFetcher-cadeef8e.js');
4
- require('./pesquisa-fetcher-490a86c3.js');
3
+ const DataFetcher = require('./DataFetcher-e059eb72.js');
4
+ require('./pesquisa-fetcher-a9bfeb22.js');
5
5
  const core = require('@sankhyalabs/core');
6
6
  require('./index-1dfc7a6e.js');
7
7
  require('./ISave-e91b70a7.js');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
9
9
  const UnitMetadata = require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
10
- const dataunitFetcher = require('./dataunit-fetcher-a36ae041.js');
10
+ const dataunitFetcher = require('./dataunit-fetcher-228016f4.js');
11
11
  require('./filter-item-type.enum-a7ffdaa6.js');
12
- require('./form-config-fetcher-ed497282.js');
12
+ require('./form-config-fetcher-39397ac5.js');
13
13
  const InMemoryFilterColumnDataSource = require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
14
14
  const index = require('./index-f9e81701.js');
15
15
 
@@ -6779,7 +6779,8 @@ class DataFetcher {
6779
6779
  }
6780
6780
  payloadJson['requestBody']['clientEventList'].clientEvent.push({ $: key });
6781
6781
  }
6782
- DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: payload }));
6782
+ const requestId = core.StringUtils.generateUUID();
6783
+ DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url: url, requestBody: payload, requestId }));
6783
6784
  http.open("POST", url, true);
6784
6785
  http.withCredentials = true;
6785
6786
  http.send(core.ObjectUtils.objectToString(payloadJson));
@@ -6819,7 +6820,7 @@ class DataFetcher {
6819
6820
  else if (http.readyState == 4 && http.status != 200) {
6820
6821
  reject(new core.ErrorException(`Erro ao executar serviço: ${serviceName}`, http.responseText));
6821
6822
  }
6822
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: payload }));
6823
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url: url, requestBody: payload, requestId }));
6823
6824
  };
6824
6825
  });
6825
6826
  }
@@ -6924,7 +6925,8 @@ class DataFetcher {
6924
6925
  const errorsResponse = [];
6925
6926
  const responseExtensions = [];
6926
6927
  const url = this.buildGraphQlURL(quietMode);
6927
- DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request }));
6928
+ const requestId = core.StringUtils.generateUUID();
6929
+ DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request, requestId }));
6928
6930
  try {
6929
6931
  const response = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=${window['SERVER_ENCODING'] || 'UTF-8'}` });
6930
6932
  response.forEach((resItem, index) => {
@@ -6958,11 +6960,11 @@ class DataFetcher {
6958
6960
  });
6959
6961
  }
6960
6962
  else {
6961
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url, requestBody: request }));
6963
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url, requestBody: request, requestId }));
6962
6964
  throw new core.ErrorException("Falha de comunicação", err.message);
6963
6965
  }
6964
6966
  }
6965
- DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url, requestBody: request }));
6967
+ DataFetcher.requestListener.forEach(listener => listener.onRequestEnd({ url, requestBody: request, requestId }));
6966
6968
  return { data: dataResponse, errors: errorsResponse, extensions: responseExtensions };
6967
6969
  }
6968
6970
  isHttpError(err) {
@@ -1,8 +1,8 @@
1
1
  'use strict';
2
2
 
3
- const ConfigStorage = require('./ConfigStorage-ecc0ed20.js');
3
+ const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
4
4
  const core = require('@sankhyalabs/core');
5
- const formConfigFetcher = require('./form-config-fetcher-ed497282.js');
5
+ const formConfigFetcher = require('./form-config-fetcher-39397ac5.js');
6
6
  const constants = require('./constants-35ddd366.js');
7
7
 
8
8
  class SnkFormConfigManager {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const core = require('@sankhyalabs/core');
4
- const formConfigFetcher = require('./form-config-fetcher-ed497282.js');
4
+ const formConfigFetcher = require('./form-config-fetcher-39397ac5.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-cadeef8e.js');
4
+ const DataFetcher = require('./DataFetcher-e059eb72.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');
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- const DataFetcher = require('./DataFetcher-cadeef8e.js');
3
+ const DataFetcher = require('./DataFetcher-e059eb72.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
 
6
6
  class ResourceFetcher {
@@ -1,7 +1,7 @@
1
1
  'use strict';
2
2
 
3
3
  const core = require('@sankhyalabs/core');
4
- const DataFetcher = require('./DataFetcher-cadeef8e.js');
4
+ const DataFetcher = require('./DataFetcher-e059eb72.js');
5
5
 
6
6
  class PesquisaFetcher {
7
7
  constructor() {
@@ -4,21 +4,21 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const DataFetcher = require('./DataFetcher-cadeef8e.js');
7
+ const DataFetcher = require('./DataFetcher-e059eb72.js');
8
8
  const ParamType = require('./ParamType-90b440a0.js');
9
- require('./pesquisa-fetcher-490a86c3.js');
9
+ require('./pesquisa-fetcher-a9bfeb22.js');
10
10
  require('./index-1dfc7a6e.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./dataunit-fetcher-a36ae041.js');
14
+ require('./dataunit-fetcher-228016f4.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./form-config-fetcher-ed497282.js');
16
+ require('./form-config-fetcher-39397ac5.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
20
  const CheckMode = require('@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode');
21
- const ConfigStorage = require('./ConfigStorage-ecc0ed20.js');
21
+ const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
22
22
  const constants = require('./constants-35ddd366.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -5,13 +5,13 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
- const ConfigStorage = require('./ConfigStorage-ecc0ed20.js');
9
- const DataFetcher = require('./DataFetcher-cadeef8e.js');
10
- const authFetcher = require('./auth-fetcher-d68841bc.js');
11
- const dataunitFetcher = require('./dataunit-fetcher-a36ae041.js');
12
- const pesquisaFetcher = require('./pesquisa-fetcher-490a86c3.js');
8
+ const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
9
+ const DataFetcher = require('./DataFetcher-e059eb72.js');
10
+ const authFetcher = require('./auth-fetcher-4f853233.js');
11
+ const dataunitFetcher = require('./dataunit-fetcher-228016f4.js');
12
+ const pesquisaFetcher = require('./pesquisa-fetcher-a9bfeb22.js');
13
13
  const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
14
- require('./form-config-fetcher-ed497282.js');
14
+ require('./form-config-fetcher-39397ac5.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
16
  require('./PrintUtils-bcaeb82f.js');
17
17
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -285,6 +285,99 @@ class SnkErrorHandler {
285
285
  }
286
286
  }
287
287
 
288
+ class DebouncedRequestListener {
289
+ constructor() {
290
+ this._debounceTime = 1500;
291
+ this.requests = new Map();
292
+ this.requestsLoadingBar = [];
293
+ }
294
+ onRequestStart(param) {
295
+ if (param.url.includes("quietMode=true")) {
296
+ return;
297
+ }
298
+ this.requestsLoadingBar.push(param.requestId);
299
+ const timeout = setTimeout(() => {
300
+ this.ezLoadingBar.show();
301
+ }, this._debounceTime);
302
+ this.requests.set(param.requestId, timeout);
303
+ }
304
+ ;
305
+ onRequestEnd(param) {
306
+ const timeoutId = this.requests.get(param.requestId);
307
+ clearTimeout(timeoutId);
308
+ if (this.requestsLoadingBar.includes(param.requestId)) {
309
+ this.requestsLoadingBar = this.requestsLoadingBar.filter(id => id !== param.requestId);
310
+ !this.requestsLoadingBar.length && this.ezLoadingBar.hide();
311
+ }
312
+ }
313
+ ;
314
+ }
315
+
316
+ class RequestListenerLoadingBar {
317
+ constructor() {
318
+ this._debounceTime = 1000;
319
+ this._ignoredNameTypes = ["totals"];
320
+ this._countRequest = 0;
321
+ }
322
+ onRequestStart(param) {
323
+ if (this.isIgnoreLoadingOnRequest(param)) {
324
+ return;
325
+ }
326
+ this._countRequest++;
327
+ this.ezLoadingBar.show();
328
+ if (this._timerLoading) {
329
+ clearTimeout(this._timerLoading);
330
+ }
331
+ }
332
+ ;
333
+ onRequestEnd(param) {
334
+ if (this.isIgnoreLoadingOnRequest(param)) {
335
+ return;
336
+ }
337
+ this._countRequest--;
338
+ this._timerLoading = setTimeout(() => {
339
+ if (this._countRequest <= 0) {
340
+ this.ezLoadingBar.hide();
341
+ }
342
+ }, this._debounceTime);
343
+ }
344
+ ;
345
+ isIgnoreLoadingOnRequest(param) {
346
+ if (param == undefined) {
347
+ return false;
348
+ }
349
+ if (param.url.includes("quietMode=true")) {
350
+ return true;
351
+ }
352
+ if (param.requestBody == undefined) {
353
+ return false;
354
+ }
355
+ if (param.requestBody.length == 1) {
356
+ const { name } = param.requestBody[0].variables;
357
+ if (name) {
358
+ const nameParts = name.split(":");
359
+ const nameType = nameParts[0];
360
+ return this._ignoredNameTypes.indexOf(nameType) >= 0;
361
+ }
362
+ }
363
+ return false;
364
+ }
365
+ ;
366
+ }
367
+
368
+ class RequestListenerFactory {
369
+ static create({ strategy }) {
370
+ switch (strategy) {
371
+ case 'request_name':
372
+ return new RequestListenerLoadingBar();
373
+ case 'request_time':
374
+ return new DebouncedRequestListener();
375
+ default:
376
+ throw new Error('Strategy not found');
377
+ }
378
+ }
379
+ }
380
+
288
381
  const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
289
382
 
290
383
  const SnkApplication = class {
@@ -298,7 +391,7 @@ const SnkApplication = class {
298
391
  this._waitingAppReady = new Array();
299
392
  this._duCache = new Map();
300
393
  this._duPromises = new Map();
301
- this._requestListener = new RequestListenerLoadingBar();
394
+ this._requestListener = RequestListenerFactory.create({ strategy: 'request_time' });
302
395
  this._pendingActions = new Map;
303
396
  this._loadPkParameter = null;
304
397
  this._isLoadedByPk = false;
@@ -1272,64 +1365,13 @@ const SnkApplication = class {
1272
1365
  .unbind("F1");
1273
1366
  }
1274
1367
  render() {
1275
- return (index.h("div", null, index.h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), index.h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), index.h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true })));
1368
+ return (index.h("div", null, index.h("ez-loading-bar", { ref: (ref) => this._requestListener.ezLoadingBar = ref }), index.h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), index.h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true })));
1276
1369
  }
1277
1370
  get _element() { return index.getElement(this); }
1278
1371
  static get watchers() { return {
1279
1372
  "loadByPK": ["watchPropHandler"]
1280
1373
  }; }
1281
1374
  };
1282
- class RequestListenerLoadingBar {
1283
- constructor() {
1284
- this._debounceTime = 1000;
1285
- this._ignoredNameTypes = ["totals"];
1286
- this._countRequest = 0;
1287
- }
1288
- onRequestStart(param) {
1289
- if (this.isIgnoreLoadingOnRequest(param)) {
1290
- return;
1291
- }
1292
- this._countRequest++;
1293
- this.loadingBar.show();
1294
- if (this._timerLoading) {
1295
- clearTimeout(this._timerLoading);
1296
- }
1297
- }
1298
- ;
1299
- onRequestEnd(param) {
1300
- if (this.isIgnoreLoadingOnRequest(param)) {
1301
- return;
1302
- }
1303
- this._countRequest--;
1304
- this._timerLoading = setTimeout(() => {
1305
- if (this._countRequest <= 0) {
1306
- this.loadingBar.hide();
1307
- }
1308
- }, this._debounceTime);
1309
- }
1310
- ;
1311
- isIgnoreLoadingOnRequest(param) {
1312
- if (param == undefined) {
1313
- return false;
1314
- }
1315
- if (param.url.includes("quietMode=true")) {
1316
- return true;
1317
- }
1318
- if (param.requestBody == undefined) {
1319
- return false;
1320
- }
1321
- if (param.requestBody.length == 1) {
1322
- const { name } = param.requestBody[0].variables;
1323
- if (name) {
1324
- const nameParts = name.split(":");
1325
- const nameType = nameParts[0];
1326
- return this._ignoredNameTypes.indexOf(nameType) >= 0;
1327
- }
1328
- }
1329
- return false;
1330
- }
1331
- ;
1332
- }
1333
1375
  class PendingPromise {
1334
1376
  constructor(resolve, reject) {
1335
1377
  this.resolve = resolve;
@@ -4,15 +4,15 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const DataFetcher = require('./DataFetcher-cadeef8e.js');
8
- require('./pesquisa-fetcher-490a86c3.js');
7
+ const DataFetcher = require('./DataFetcher-e059eb72.js');
8
+ require('./pesquisa-fetcher-a9bfeb22.js');
9
9
  require('./index-1dfc7a6e.js');
10
10
  const ISave = require('./ISave-e91b70a7.js');
11
- const dataunitFetcher = require('./dataunit-fetcher-a36ae041.js');
11
+ const dataunitFetcher = require('./dataunit-fetcher-228016f4.js');
12
12
  require('./filter-item-type.enum-a7ffdaa6.js');
13
- require('./form-config-fetcher-ed497282.js');
13
+ require('./form-config-fetcher-39397ac5.js');
14
14
  const constants = require('./constants-35ddd366.js');
15
- const authFetcher = require('./auth-fetcher-d68841bc.js');
15
+ const authFetcher = require('./auth-fetcher-4f853233.js');
16
16
  const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
17
17
  require('./PrintUtils-bcaeb82f.js');
18
18
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
@@ -7,14 +7,14 @@ const core = require('@sankhyalabs/core');
7
7
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
8
8
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
9
9
  const constants = require('./constants-35ddd366.js');
10
- const SnkFormConfigManager = require('./SnkFormConfigManager-f1c92f79.js');
10
+ const SnkFormConfigManager = require('./SnkFormConfigManager-63369164.js');
11
11
  const ResourceIDUtils = require('./ResourceIDUtils-5ff86aa7.js');
12
12
  const Sortable = require('./Sortable-fb1c4cbb.js');
13
- const formConfigFetcher = require('./form-config-fetcher-ed497282.js');
13
+ const formConfigFetcher = require('./form-config-fetcher-39397ac5.js');
14
14
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
15
- require('./ConfigStorage-ecc0ed20.js');
15
+ require('./ConfigStorage-f079f5fd.js');
16
16
  require('./filter-item-type.enum-a7ffdaa6.js');
17
- require('./DataFetcher-cadeef8e.js');
17
+ require('./DataFetcher-e059eb72.js');
18
18
  require('./PrintUtils-bcaeb82f.js');
19
19
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
20
20
 
@@ -5,17 +5,17 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
8
- require('./DataFetcher-cadeef8e.js');
9
- require('./pesquisa-fetcher-490a86c3.js');
8
+ require('./DataFetcher-e059eb72.js');
9
+ require('./pesquisa-fetcher-a9bfeb22.js');
10
10
  const index$1 = require('./index-1dfc7a6e.js');
11
11
  require('./ISave-e91b70a7.js');
12
12
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
- require('./dataunit-fetcher-a36ae041.js');
14
+ require('./dataunit-fetcher-228016f4.js');
15
15
  require('./filter-item-type.enum-a7ffdaa6.js');
16
- require('./form-config-fetcher-ed497282.js');
16
+ require('./form-config-fetcher-39397ac5.js');
17
17
  const constants = require('./constants-35ddd366.js');
18
- const authFetcher = require('./auth-fetcher-d68841bc.js');
18
+ const authFetcher = require('./auth-fetcher-4f853233.js');
19
19
  require('./index-102ba62d.js');
20
20
  require('./PrintUtils-bcaeb82f.js');
21
21
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -7,15 +7,15 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const index = require('./index-1dfc7a6e.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
- const DataFetcher = require('./DataFetcher-cadeef8e.js');
11
- const snkDataUnit = require('./snk-data-unit-b460f1da.js');
12
- require('./pesquisa-fetcher-490a86c3.js');
10
+ const DataFetcher = require('./DataFetcher-e059eb72.js');
11
+ const snkDataUnit = require('./snk-data-unit-3d4d0e2a.js');
12
+ require('./pesquisa-fetcher-a9bfeb22.js');
13
13
  require('./ISave-e91b70a7.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- require('./dataunit-fetcher-a36ae041.js');
16
+ require('./dataunit-fetcher-228016f4.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- require('./form-config-fetcher-ed497282.js');
18
+ require('./form-config-fetcher-39397ac5.js');
19
19
  require('./PrintUtils-bcaeb82f.js');
20
20
  require('./SnkMessageBuilder-bae64d0d.js');
21
21
  require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
@@ -4,7 +4,7 @@ const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
5
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
6
6
  const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
7
- const dataunitFetcher = require('./dataunit-fetcher-a36ae041.js');
7
+ const dataunitFetcher = require('./dataunit-fetcher-228016f4.js');
8
8
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
9
9
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
10
10
 
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkDataUnit = require('./snk-data-unit-b460f1da.js');
5
+ const snkDataUnit = require('./snk-data-unit-3d4d0e2a.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
8
  require('@sankhyalabs/ezui/dist/collection/utils');
9
9
  require('./SnkMessageBuilder-bae64d0d.js');
10
- require('./dataunit-fetcher-a36ae041.js');
11
- require('./DataFetcher-cadeef8e.js');
10
+ require('./dataunit-fetcher-228016f4.js');
11
+ require('./DataFetcher-e059eb72.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
@@ -4,22 +4,22 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const SnkFormConfigManager = require('./SnkFormConfigManager-f1c92f79.js');
7
+ const SnkFormConfigManager = require('./SnkFormConfigManager-63369164.js');
8
8
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
9
- require('./DataFetcher-cadeef8e.js');
10
- require('./pesquisa-fetcher-490a86c3.js');
9
+ require('./DataFetcher-e059eb72.js');
10
+ require('./pesquisa-fetcher-a9bfeb22.js');
11
11
  const index$1 = require('./index-1dfc7a6e.js');
12
12
  require('./ISave-e91b70a7.js');
13
13
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
- require('./dataunit-fetcher-a36ae041.js');
15
+ require('./dataunit-fetcher-228016f4.js');
16
16
  require('./filter-item-type.enum-a7ffdaa6.js');
17
- require('./form-config-fetcher-ed497282.js');
17
+ require('./form-config-fetcher-39397ac5.js');
18
18
  const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
19
19
  const constants = require('./constants-35ddd366.js');
20
- const snkGuidesViewer = require('./snk-guides-viewer-de0a5c57.js');
20
+ const snkGuidesViewer = require('./snk-guides-viewer-eee43c8b.js');
21
21
  const SnkMessageBuilder = require('./SnkMessageBuilder-bae64d0d.js');
22
- require('./ConfigStorage-ecc0ed20.js');
22
+ require('./ConfigStorage-f079f5fd.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
25
25
  require('@sankhyalabs/core/dist/utils/SortingUtils');
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index$1 = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const EzScrollDirection = require('@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection');
8
- const ConfigStorage = require('./ConfigStorage-ecc0ed20.js');
8
+ const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
9
9
  const DataType = require('@sankhyalabs/core/dist/dataunit/metadata/DataType');
10
10
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
11
11
  const index = require('./index-c5771aba.js');
@@ -14,8 +14,8 @@ const utils = require('@sankhyalabs/ezui/dist/collection/utils');
14
14
  const PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
15
15
  const ezModalContainer = require('@sankhyalabs/ezui/dist/collection/components/ez-modal-container');
16
16
  const filterType_enum = require('./filter-type.enum-b14ce507.js');
17
- require('./form-config-fetcher-ed497282.js');
18
- require('./DataFetcher-cadeef8e.js');
17
+ require('./form-config-fetcher-39397ac5.js');
18
+ require('./DataFetcher-e059eb72.js');
19
19
  require('./PrintUtils-bcaeb82f.js');
20
20
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
21
21
 
@@ -6,10 +6,10 @@ const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const filterItemType_enum = require('./filter-item-type.enum-a7ffdaa6.js');
8
8
  const presentationMode = require('./presentationMode-52ec3bdd.js');
9
- const ConfigStorage = require('./ConfigStorage-ecc0ed20.js');
9
+ const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
10
10
  const filterType_enum = require('./filter-type.enum-b14ce507.js');
11
- require('./form-config-fetcher-ed497282.js');
12
- require('./DataFetcher-cadeef8e.js');
11
+ require('./form-config-fetcher-39397ac5.js');
12
+ require('./DataFetcher-e059eb72.js');
13
13
  require('./PrintUtils-bcaeb82f.js');
14
14
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
15
15
 
@@ -5,20 +5,20 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-f9e81701.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
8
- const ConfigStorage = require('./ConfigStorage-ecc0ed20.js');
8
+ const ConfigStorage = require('./ConfigStorage-f079f5fd.js');
9
9
  const index$1 = require('./index-1dfc7a6e.js');
10
10
  const fieldSearch = require('./field-search-68e34bf4.js');
11
11
  const index$2 = require('./index-102ba62d.js');
12
- const ContinuousInsertUtils = require('./ContinuousInsertUtils-37c7cbcf.js');
12
+ const ContinuousInsertUtils = require('./ContinuousInsertUtils-64e47516.js');
13
13
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
14
- require('./DataFetcher-cadeef8e.js');
15
- require('./pesquisa-fetcher-490a86c3.js');
14
+ require('./DataFetcher-e059eb72.js');
15
+ require('./pesquisa-fetcher-a9bfeb22.js');
16
16
  require('./ISave-e91b70a7.js');
17
17
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
18
18
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
19
- require('./dataunit-fetcher-a36ae041.js');
19
+ require('./dataunit-fetcher-228016f4.js');
20
20
  require('./filter-item-type.enum-a7ffdaa6.js');
21
- require('./form-config-fetcher-ed497282.js');
21
+ require('./form-config-fetcher-39397ac5.js');
22
22
  const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
23
23
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
24
24
  require('./PrintUtils-bcaeb82f.js');
@@ -2,20 +2,20 @@
2
2
 
3
3
  const index = require('./index-f9e81701.js');
4
4
  const core = require('@sankhyalabs/core');
5
- const SnkFormConfigManager = require('./SnkFormConfigManager-f1c92f79.js');
5
+ const SnkFormConfigManager = require('./SnkFormConfigManager-63369164.js');
6
6
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
7
7
  const fieldSearch = require('./field-search-68e34bf4.js');
8
8
  const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
9
9
  const constants = require('./constants-35ddd366.js');
10
- require('./DataFetcher-cadeef8e.js');
11
- require('./pesquisa-fetcher-490a86c3.js');
10
+ require('./DataFetcher-e059eb72.js');
11
+ require('./pesquisa-fetcher-a9bfeb22.js');
12
12
  const index$1 = require('./index-1dfc7a6e.js');
13
13
  require('./ISave-e91b70a7.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- require('./dataunit-fetcher-a36ae041.js');
16
+ require('./dataunit-fetcher-228016f4.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- require('./form-config-fetcher-ed497282.js');
18
+ require('./form-config-fetcher-39397ac5.js');
19
19
  const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
20
20
 
21
21
  const snkGuidesViewerCss = ".sc-snk-guides-viewer-h{--snk-guides-viewer--space-large:var(--space--large, 24px);--snk-guides-viewer--space-small:var(--space--2xs, 8px);--snk-guides-viewer__header--min-height:68px;--snk-guides-viewer__header--z-index:var(--more-visible, 2);--snk-guides-viewer__header--background-color:var(--background--body, #fafcff);--snk-guides-viewer__guide-navigator--width:340px;display:block}snk-form-view.sc-snk-guides-viewer{width:100%}.snk-guides-viewer.sc-snk-guides-viewer{position:relative;padding-left:0px;padding-top:0px;padding-right:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__detail-container.sc-snk-guides-viewer{display:flex;row-gap:24px;flex-direction:column}.snk-guides-viewer__header.sc-snk-guides-viewer{position:sticky;align-items:center;top:0;z-index:var(--snk-guides-viewer__header--z-index);background-color:var(--snk-guides-viewer__header--background-color);min-height:var(--snk-guides-viewer__header--min-height);width:calc(100% + (var(--snk-guides-viewer--space-large) * 2));padding-left:var(--snk-guides-viewer--space-large);padding-right:var(--snk-guides-viewer--space-large);padding-top:var(--snk-guides-viewer--space-large);padding-bottom:var(--snk-guides-viewer--space-small);margin-left:calc(var(--snk-guides-viewer--space-large) * -1);margin-right:calc(var(--snk-guides-viewer--space-large) * -1);margin-bottom:var(--snk-guides-viewer--space-small)}.snk-guides-viewer__header-breadcrumb.sc-snk-guides-viewer{width:25%;display:flex}.snk-guides-viewer__header-taskbar.sc-snk-guides-viewer{width:75%}.snk-guides-viewer__container.sc-snk-guides-viewer{display:grid;grid-template-columns:minmax(0, auto) minmax(0, 100%);height:100%;column-gap:var(--snk-guides-viewer--space-large)}.snk-guides-viewer__guide-navigator.sc-snk-guides-viewer{position:sticky;top:calc(var(--snk-guides-viewer__header--min-height) + var(--snk-guides-viewer--space-small));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-small))}.snk-guides-viewer__guide-navigator[open].sc-snk-guides-viewer{width:var(--snk-guides-viewer__guide-navigator--width);max-width:var(--snk-guides-viewer__guide-navigator--width);min-width:var(--snk-guides-viewer__guide-navigator--width)}.snk-guides-viewer__detail-content.sc-snk-guides-viewer{min-height:100%;align-items:flex-start;align-content:flex-start}";
@@ -455,6 +455,9 @@ const SnkGuidesViewer = class {
455
455
  await this.addErrorBadgeToGuide(guideName);
456
456
  await this.openGuideNavigator(guideName);
457
457
  }
458
+ if (action.type === core.Action.METADATA_LOADED) {
459
+ this.loadGuides(false);
460
+ }
458
461
  }
459
462
  async addErrorBadgeToGuide(guideName) {
460
463
  var _a;
@@ -2,13 +2,13 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-de0a5c57.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-eee43c8b.js');
6
6
  require('./index-f9e81701.js');
7
7
  require('@sankhyalabs/core');
8
- require('./SnkFormConfigManager-f1c92f79.js');
9
- require('./ConfigStorage-ecc0ed20.js');
10
- require('./form-config-fetcher-ed497282.js');
11
- require('./DataFetcher-cadeef8e.js');
8
+ require('./SnkFormConfigManager-63369164.js');
9
+ require('./ConfigStorage-f079f5fd.js');
10
+ require('./form-config-fetcher-39397ac5.js');
11
+ require('./DataFetcher-e059eb72.js');
12
12
  require('./PrintUtils-bcaeb82f.js');
13
13
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
14
14
  require('./filter-item-type.enum-a7ffdaa6.js');
@@ -18,10 +18,10 @@ require('./field-search-68e34bf4.js');
18
18
  require('./taskbar-elements-9ad1f9c0.js');
19
19
  require('./index-1dfc7a6e.js');
20
20
  require('./index-102ba62d.js');
21
- require('./pesquisa-fetcher-490a86c3.js');
21
+ require('./pesquisa-fetcher-a9bfeb22.js');
22
22
  require('./ISave-e91b70a7.js');
23
23
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
24
- require('./dataunit-fetcher-a36ae041.js');
24
+ require('./dataunit-fetcher-228016f4.js');
25
25
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
26
26
  require('@sankhyalabs/core/dist/utils/SortingUtils');
27
27
  require('./ResourceIDUtils-5ff86aa7.js');