@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,20 +1,20 @@
1
1
  import { r as registerInstance, h, H as Host, g as getElement, c as createEvent } 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-a9c598f2.js';
3
+ import { D as DataFetcher } from './DataFetcher-5034df59.js';
4
4
  import { P as ParamType } from './ParamType-d5152b06.js';
5
- import './pesquisa-fetcher-50fc7e6b.js';
5
+ import './pesquisa-fetcher-6bc2e41a.js';
6
6
  import './index-3aa4977a.js';
7
7
  import './ISave-d8c8bc59.js';
8
8
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
- import './dataunit-fetcher-fd58c640.js';
10
+ import './dataunit-fetcher-56cb648b.js';
11
11
  import './filter-item-type.enum-d45e026f.js';
12
- import './form-config-fetcher-adbe5d34.js';
12
+ import './form-config-fetcher-a7d3e277.js';
13
13
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
14
14
  import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
15
15
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
16
16
  import { CheckMode } from '@sankhyalabs/ezui/dist/collection/components/ez-check/CheckMode';
17
- import { C as ConfigStorage } from './ConfigStorage-7b36d041.js';
17
+ import { C as ConfigStorage } from './ConfigStorage-6514d66e.js';
18
18
  import { O as ORDER_VALUES } from './constants-7302ee87.js';
19
19
  import './PrintUtils-3e4ff0f5.js';
20
20
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { DateUtils, StringUtils, ObjectUtils, WaitingChangeException, WarningException, ErrorException, KeyboardManager, OnboardingUtils, DependencyType, ArrayUtils, SearchUtils, ElementIDUtils, ApplicationContext, DataType, ErrorTracking } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
- import { C as ConfigStorage } from './ConfigStorage-7b36d041.js';
5
- import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-a9c598f2.js';
6
- import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-749d880f.js';
7
- import { D as DataUnitFetcher } from './dataunit-fetcher-fd58c640.js';
8
- import { P as PesquisaFetcher } from './pesquisa-fetcher-50fc7e6b.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-6514d66e.js';
5
+ import { d as dist, D as DataFetcher, U as UrlUtils } from './DataFetcher-5034df59.js';
6
+ import { A as AutorizationType, a as AuthFetcher } from './auth-fetcher-ca5d3a49.js';
7
+ import { D as DataUnitFetcher } from './dataunit-fetcher-56cb648b.js';
8
+ import { P as PesquisaFetcher } from './pesquisa-fetcher-6bc2e41a.js';
9
9
  import { S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
10
- import './form-config-fetcher-adbe5d34.js';
10
+ import './form-config-fetcher-a7d3e277.js';
11
11
  import './filter-item-type.enum-d45e026f.js';
12
12
  import './PrintUtils-3e4ff0f5.js';
13
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -281,6 +281,99 @@ class SnkErrorHandler {
281
281
  }
282
282
  }
283
283
 
284
+ class DebouncedRequestListener {
285
+ constructor() {
286
+ this._debounceTime = 1500;
287
+ this.requests = new Map();
288
+ this.requestsLoadingBar = [];
289
+ }
290
+ onRequestStart(param) {
291
+ if (param.url.includes("quietMode=true")) {
292
+ return;
293
+ }
294
+ this.requestsLoadingBar.push(param.requestId);
295
+ const timeout = setTimeout(() => {
296
+ this.ezLoadingBar.show();
297
+ }, this._debounceTime);
298
+ this.requests.set(param.requestId, timeout);
299
+ }
300
+ ;
301
+ onRequestEnd(param) {
302
+ const timeoutId = this.requests.get(param.requestId);
303
+ clearTimeout(timeoutId);
304
+ if (this.requestsLoadingBar.includes(param.requestId)) {
305
+ this.requestsLoadingBar = this.requestsLoadingBar.filter(id => id !== param.requestId);
306
+ !this.requestsLoadingBar.length && this.ezLoadingBar.hide();
307
+ }
308
+ }
309
+ ;
310
+ }
311
+
312
+ class RequestListenerLoadingBar {
313
+ constructor() {
314
+ this._debounceTime = 1000;
315
+ this._ignoredNameTypes = ["totals"];
316
+ this._countRequest = 0;
317
+ }
318
+ onRequestStart(param) {
319
+ if (this.isIgnoreLoadingOnRequest(param)) {
320
+ return;
321
+ }
322
+ this._countRequest++;
323
+ this.ezLoadingBar.show();
324
+ if (this._timerLoading) {
325
+ clearTimeout(this._timerLoading);
326
+ }
327
+ }
328
+ ;
329
+ onRequestEnd(param) {
330
+ if (this.isIgnoreLoadingOnRequest(param)) {
331
+ return;
332
+ }
333
+ this._countRequest--;
334
+ this._timerLoading = setTimeout(() => {
335
+ if (this._countRequest <= 0) {
336
+ this.ezLoadingBar.hide();
337
+ }
338
+ }, this._debounceTime);
339
+ }
340
+ ;
341
+ isIgnoreLoadingOnRequest(param) {
342
+ if (param == undefined) {
343
+ return false;
344
+ }
345
+ if (param.url.includes("quietMode=true")) {
346
+ return true;
347
+ }
348
+ if (param.requestBody == undefined) {
349
+ return false;
350
+ }
351
+ if (param.requestBody.length == 1) {
352
+ const { name } = param.requestBody[0].variables;
353
+ if (name) {
354
+ const nameParts = name.split(":");
355
+ const nameType = nameParts[0];
356
+ return this._ignoredNameTypes.indexOf(nameType) >= 0;
357
+ }
358
+ }
359
+ return false;
360
+ }
361
+ ;
362
+ }
363
+
364
+ class RequestListenerFactory {
365
+ static create({ strategy }) {
366
+ switch (strategy) {
367
+ case 'request_name':
368
+ return new RequestListenerLoadingBar();
369
+ case 'request_time':
370
+ return new DebouncedRequestListener();
371
+ default:
372
+ throw new Error('Strategy not found');
373
+ }
374
+ }
375
+ }
376
+
284
377
  const snkApplicationCss = ".sc-snk-application-h{display:flex;flex-direction:column;height:100%}";
285
378
 
286
379
  const SnkApplication = class {
@@ -294,7 +387,7 @@ const SnkApplication = class {
294
387
  this._waitingAppReady = new Array();
295
388
  this._duCache = new Map();
296
389
  this._duPromises = new Map();
297
- this._requestListener = new RequestListenerLoadingBar();
390
+ this._requestListener = RequestListenerFactory.create({ strategy: 'request_time' });
298
391
  this._pendingActions = new Map;
299
392
  this._loadPkParameter = null;
300
393
  this._isLoadedByPk = false;
@@ -1268,64 +1361,13 @@ const SnkApplication = class {
1268
1361
  .unbind("F1");
1269
1362
  }
1270
1363
  render() {
1271
- return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.loadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true })));
1364
+ return (h("div", null, h("ez-loading-bar", { ref: (ref) => this._requestListener.ezLoadingBar = ref }), h("ez-popup", { opened: false, ref: (ref) => this._popUp = ref, onEzClosePopup: () => this.closePopUp() }), h("ez-modal", { opened: false, ref: (ref) => this._rightModal = ref, "modal-size": "small", closeOutsideClick: true, closeEsc: true })));
1272
1365
  }
1273
1366
  get _element() { return getElement(this); }
1274
1367
  static get watchers() { return {
1275
1368
  "loadByPK": ["watchPropHandler"]
1276
1369
  }; }
1277
1370
  };
1278
- class RequestListenerLoadingBar {
1279
- constructor() {
1280
- this._debounceTime = 1000;
1281
- this._ignoredNameTypes = ["totals"];
1282
- this._countRequest = 0;
1283
- }
1284
- onRequestStart(param) {
1285
- if (this.isIgnoreLoadingOnRequest(param)) {
1286
- return;
1287
- }
1288
- this._countRequest++;
1289
- this.loadingBar.show();
1290
- if (this._timerLoading) {
1291
- clearTimeout(this._timerLoading);
1292
- }
1293
- }
1294
- ;
1295
- onRequestEnd(param) {
1296
- if (this.isIgnoreLoadingOnRequest(param)) {
1297
- return;
1298
- }
1299
- this._countRequest--;
1300
- this._timerLoading = setTimeout(() => {
1301
- if (this._countRequest <= 0) {
1302
- this.loadingBar.hide();
1303
- }
1304
- }, this._debounceTime);
1305
- }
1306
- ;
1307
- isIgnoreLoadingOnRequest(param) {
1308
- if (param == undefined) {
1309
- return false;
1310
- }
1311
- if (param.url.includes("quietMode=true")) {
1312
- return true;
1313
- }
1314
- if (param.requestBody == undefined) {
1315
- return false;
1316
- }
1317
- if (param.requestBody.length == 1) {
1318
- const { name } = param.requestBody[0].variables;
1319
- if (name) {
1320
- const nameParts = name.split(":");
1321
- const nameType = nameParts[0];
1322
- return this._ignoredNameTypes.indexOf(nameType) >= 0;
1323
- }
1324
- }
1325
- return false;
1326
- }
1327
- ;
1328
- }
1329
1371
  class PendingPromise {
1330
1372
  constructor(resolve, reject) {
1331
1373
  this.resolve = resolve;
@@ -1,14 +1,14 @@
1
1
  import { r as registerInstance, c as createEvent, h } from './index-a7d3d3f1.js';
2
2
  import { ApplicationContext, DataType, Action, UserInterface, StringUtils, DataUnit } from '@sankhyalabs/core';
3
- import { D as DataFetcher } from './DataFetcher-a9c598f2.js';
4
- import './pesquisa-fetcher-50fc7e6b.js';
3
+ import { D as DataFetcher } from './DataFetcher-5034df59.js';
4
+ import './pesquisa-fetcher-6bc2e41a.js';
5
5
  import './index-3aa4977a.js';
6
6
  import { S as SaveErrorsEnum } from './ISave-d8c8bc59.js';
7
- import { P as PreloadManager, b as buildLoadDataResponse, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-fd58c640.js';
7
+ import { P as PreloadManager, b as buildLoadDataResponse, D as DataUnitFetcher, I as InMemoryLoader } from './dataunit-fetcher-56cb648b.js';
8
8
  import './filter-item-type.enum-d45e026f.js';
9
- import './form-config-fetcher-adbe5d34.js';
9
+ import './form-config-fetcher-a7d3e277.js';
10
10
  import { V as VIEW_MODE } from './constants-7302ee87.js';
11
- import { A as AutorizationType } from './auth-fetcher-749d880f.js';
11
+ import { A as AutorizationType } from './auth-fetcher-ca5d3a49.js';
12
12
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
13
13
  import './PrintUtils-3e4ff0f5.js';
14
14
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
@@ -3,14 +3,14 @@ import { UserInterface, ObjectUtils, StringUtils, ApplicationContext, ElementIDU
3
3
  import { DataType, getConvertedValue } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
4
4
  import { CheckMode, ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
5
5
  import { c as VARS_BY_TYPE, D as DEFAULT_TYPE, d as TAGS_BY_TYPE, C as CONFIG_EVENTS, a as CONFIG_SORTABLE_EVENTS, b as TAB_NAMES, A as ACTION_CONFIG } from './constants-7302ee87.js';
6
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-f1a0fc92.js';
6
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-b409c745.js';
7
7
  import { R as ResourceIDUtils } from './ResourceIDUtils-a114189a.js';
8
8
  import { S as Sortable } from './Sortable-83960219.js';
9
- import { U as UserConfigType } from './form-config-fetcher-adbe5d34.js';
9
+ import { U as UserConfigType } from './form-config-fetcher-a7d3e277.js';
10
10
  import { buildFormConfigFromDataUnit } from '@sankhyalabs/ezui/dist/collection/utils/form';
11
- import './ConfigStorage-7b36d041.js';
11
+ import './ConfigStorage-6514d66e.js';
12
12
  import './filter-item-type.enum-d45e026f.js';
13
- import './DataFetcher-a9c598f2.js';
13
+ import './DataFetcher-5034df59.js';
14
14
  import './PrintUtils-3e4ff0f5.js';
15
15
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
16
16
 
@@ -1,17 +1,17 @@
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, JSUtils, FloatingManager } from '@sankhyalabs/core';
3
3
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
4
- import './DataFetcher-a9c598f2.js';
5
- import './pesquisa-fetcher-50fc7e6b.js';
4
+ import './DataFetcher-5034df59.js';
5
+ import './pesquisa-fetcher-6bc2e41a.js';
6
6
  import { P as PresentationMode } from './index-3aa4977a.js';
7
7
  import './ISave-d8c8bc59.js';
8
8
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
- import './dataunit-fetcher-fd58c640.js';
10
+ import './dataunit-fetcher-56cb648b.js';
11
11
  import './filter-item-type.enum-d45e026f.js';
12
- import './form-config-fetcher-adbe5d34.js';
12
+ import './form-config-fetcher-a7d3e277.js';
13
13
  import { V as VIEW_MODE } from './constants-7302ee87.js';
14
- import { A as AutorizationType } from './auth-fetcher-749d880f.js';
14
+ import { A as AutorizationType } from './auth-fetcher-ca5d3a49.js';
15
15
  import './index-bdf75557.js';
16
16
  import './PrintUtils-3e4ff0f5.js';
17
17
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
@@ -3,15 +3,15 @@ import { ApplicationContext, ObjectUtils, UserInterface, DataType, ElementIDUtil
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { D as DataExporterOption, a as DataExporterType, b as DataExporterFormat } from './index-3aa4977a.js';
5
5
  import { R as REPORT_LAUNCHER_RESOURCE_ID } from './constants-7302ee87.js';
6
- import { D as DataFetcher } from './DataFetcher-a9c598f2.js';
7
- import { S as SnkDataUnit } from './snk-data-unit-590225b5.js';
8
- import './pesquisa-fetcher-50fc7e6b.js';
6
+ import { D as DataFetcher } from './DataFetcher-5034df59.js';
7
+ import { S as SnkDataUnit } from './snk-data-unit-618e0b80.js';
8
+ import './pesquisa-fetcher-6bc2e41a.js';
9
9
  import './ISave-d8c8bc59.js';
10
10
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
11
11
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
12
- import './dataunit-fetcher-fd58c640.js';
12
+ import './dataunit-fetcher-56cb648b.js';
13
13
  import './filter-item-type.enum-d45e026f.js';
14
- import './form-config-fetcher-adbe5d34.js';
14
+ import './form-config-fetcher-a7d3e277.js';
15
15
  import './PrintUtils-3e4ff0f5.js';
16
16
  import './SnkMessageBuilder-6fff4a4c.js';
17
17
  import '@sankhyalabs/core/dist/dataunit/metadata/DataType';
@@ -2,7 +2,7 @@ import { r as registerInstance, c as createEvent, h, g as getElement, H as Host
2
2
  import { Action, ObjectUtils, DataUnitAction, StringUtils, ApplicationContext } from '@sankhyalabs/core';
3
3
  import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { O as OperationMap, S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
5
- import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-fd58c640.js';
5
+ import { g as getRecordValue, a as DatasetStrategy } from './dataunit-fetcher-56cb648b.js';
6
6
  import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
7
7
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
8
8
 
@@ -1,10 +1,10 @@
1
- export { S as snk_data_unit } from './snk-data-unit-590225b5.js';
1
+ export { S as snk_data_unit } from './snk-data-unit-618e0b80.js';
2
2
  import './index-a7d3d3f1.js';
3
3
  import '@sankhyalabs/core';
4
4
  import '@sankhyalabs/ezui/dist/collection/utils';
5
5
  import './SnkMessageBuilder-6fff4a4c.js';
6
- import './dataunit-fetcher-fd58c640.js';
7
- import './DataFetcher-a9c598f2.js';
6
+ import './dataunit-fetcher-56cb648b.js';
7
+ import './DataFetcher-5034df59.js';
8
8
  import './PrintUtils-3e4ff0f5.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
@@ -1,21 +1,21 @@
1
1
  import { r as registerInstance, c as createEvent, f as forceUpdate, h, H as Host } from './index-a7d3d3f1.js';
2
2
  import { Action } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-f1a0fc92.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-b409c745.js';
4
4
  import { FormMetadata, buildFormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
- import './DataFetcher-a9c598f2.js';
6
- import './pesquisa-fetcher-50fc7e6b.js';
5
+ import './DataFetcher-5034df59.js';
6
+ import './pesquisa-fetcher-6bc2e41a.js';
7
7
  import { P as PresentationMode } from './index-3aa4977a.js';
8
8
  import './ISave-d8c8bc59.js';
9
9
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
- import './dataunit-fetcher-fd58c640.js';
11
+ import './dataunit-fetcher-56cb648b.js';
12
12
  import './filter-item-type.enum-d45e026f.js';
13
- import './form-config-fetcher-adbe5d34.js';
13
+ import './form-config-fetcher-a7d3e277.js';
14
14
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
15
15
  import { V as VIEW_MODE } from './constants-7302ee87.js';
16
- import { S as SnkGuidesViewer } from './snk-guides-viewer-2f4dcdc5.js';
16
+ import { S as SnkGuidesViewer } from './snk-guides-viewer-e8ca764a.js';
17
17
  import { S as SnkMessageBuilder } from './SnkMessageBuilder-6fff4a4c.js';
18
- import './ConfigStorage-7b36d041.js';
18
+ import './ConfigStorage-6514d66e.js';
19
19
  import './PrintUtils-3e4ff0f5.js';
20
20
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
21
21
  import '@sankhyalabs/core/dist/utils/SortingUtils';
@@ -1,7 +1,7 @@
1
1
  import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { DataType, StringUtils, ObjectUtils, ElementIDUtils, ErrorException, ApplicationContext, FloatingManager, DateUtils, ArrayUtils } from '@sankhyalabs/core';
3
3
  import { EzScrollDirection } from '@sankhyalabs/ezui/dist/collection/components/ez-scroller/EzScrollDirection';
4
- import { C as ConfigStorage } from './ConfigStorage-7b36d041.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-6514d66e.js';
5
5
  import { toString } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
6
6
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
7
7
  import { F as FilterOperand } from './index-ae591a44.js';
@@ -10,8 +10,8 @@ import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
10
10
  import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-e2b38ef7.js';
11
11
  import { ModalAction } from '@sankhyalabs/ezui/dist/collection/components/ez-modal-container';
12
12
  import { F as FilterType } from './filter-type.enum-a80c1b6b.js';
13
- import './form-config-fetcher-adbe5d34.js';
14
- import './DataFetcher-a9c598f2.js';
13
+ import './form-config-fetcher-a7d3e277.js';
14
+ import './DataFetcher-5034df59.js';
15
15
  import './PrintUtils-3e4ff0f5.js';
16
16
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
17
17
 
@@ -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-d45e026f.js';
4
4
  import { E as EPresentationMode } from './presentationMode-783bbf9d.js';
5
- import { C as ConfigStorage } from './ConfigStorage-7b36d041.js';
5
+ import { C as ConfigStorage } from './ConfigStorage-6514d66e.js';
6
6
  import { F as FilterType } from './filter-type.enum-a80c1b6b.js';
7
- import './form-config-fetcher-adbe5d34.js';
8
- import './DataFetcher-a9c598f2.js';
7
+ import './form-config-fetcher-a7d3e277.js';
8
+ import './DataFetcher-5034df59.js';
9
9
  import './PrintUtils-3e4ff0f5.js';
10
10
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
11
11
 
@@ -1,20 +1,20 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, g as getElement } from './index-a7d3d3f1.js';
2
2
  import { Action, ElementIDUtils, ApplicationContext, StringUtils } from '@sankhyalabs/core';
3
3
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
4
- import { C as ConfigStorage } from './ConfigStorage-7b36d041.js';
4
+ import { C as ConfigStorage } from './ConfigStorage-6514d66e.js';
5
5
  import { P as PresentationMode } from './index-3aa4977a.js';
6
6
  import { T as TaskbarProcessor, o as openFieldSearch, b as buildFieldSearch } from './field-search-f8b1d91e.js';
7
7
  import { s as store } from './index-bdf75557.js';
8
- import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils } from './ContinuousInsertUtils-881c41a9.js';
8
+ import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, a as CrudUtils, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils } from './ContinuousInsertUtils-b62906f9.js';
9
9
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
10
- import './DataFetcher-a9c598f2.js';
11
- import './pesquisa-fetcher-50fc7e6b.js';
10
+ import './DataFetcher-5034df59.js';
11
+ import './pesquisa-fetcher-6bc2e41a.js';
12
12
  import './ISave-d8c8bc59.js';
13
13
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
14
14
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
15
- import './dataunit-fetcher-fd58c640.js';
15
+ import './dataunit-fetcher-56cb648b.js';
16
16
  import './filter-item-type.enum-d45e026f.js';
17
- import './form-config-fetcher-adbe5d34.js';
17
+ import './form-config-fetcher-a7d3e277.js';
18
18
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
19
19
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
20
20
  import './PrintUtils-3e4ff0f5.js';
@@ -1,19 +1,19 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment } from './index-a7d3d3f1.js';
2
2
  import { Action, ElementIDUtils } from '@sankhyalabs/core';
3
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-f1a0fc92.js';
3
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-b409c745.js';
4
4
  import { buildFormMetadata, FormMetadata } from '@sankhyalabs/ezui/dist/collection/utils/form';
5
5
  import { o as openFieldSearch, T as TaskbarProcessor, b as buildFieldSearch } from './field-search-f8b1d91e.js';
6
6
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
7
7
  import { V as VIEW_MODE } from './constants-7302ee87.js';
8
- import './DataFetcher-a9c598f2.js';
9
- import './pesquisa-fetcher-50fc7e6b.js';
8
+ import './DataFetcher-5034df59.js';
9
+ import './pesquisa-fetcher-6bc2e41a.js';
10
10
  import { P as PresentationMode } from './index-3aa4977a.js';
11
11
  import './ISave-d8c8bc59.js';
12
12
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
13
13
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
14
- import './dataunit-fetcher-fd58c640.js';
14
+ import './dataunit-fetcher-56cb648b.js';
15
15
  import './filter-item-type.enum-d45e026f.js';
16
- import './form-config-fetcher-adbe5d34.js';
16
+ import './form-config-fetcher-a7d3e277.js';
17
17
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
18
18
 
19
19
  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}";
@@ -453,6 +453,9 @@ const SnkGuidesViewer = class {
453
453
  await this.addErrorBadgeToGuide(guideName);
454
454
  await this.openGuideNavigator(guideName);
455
455
  }
456
+ if (action.type === Action.METADATA_LOADED) {
457
+ this.loadGuides(false);
458
+ }
456
459
  }
457
460
  async addErrorBadgeToGuide(guideName) {
458
461
  var _a;
@@ -1,10 +1,10 @@
1
- export { S as snk_guides_viewer } from './snk-guides-viewer-2f4dcdc5.js';
1
+ export { S as snk_guides_viewer } from './snk-guides-viewer-e8ca764a.js';
2
2
  import './index-a7d3d3f1.js';
3
3
  import '@sankhyalabs/core';
4
- import './SnkFormConfigManager-f1a0fc92.js';
5
- import './ConfigStorage-7b36d041.js';
6
- import './form-config-fetcher-adbe5d34.js';
7
- import './DataFetcher-a9c598f2.js';
4
+ import './SnkFormConfigManager-b409c745.js';
5
+ import './ConfigStorage-6514d66e.js';
6
+ import './form-config-fetcher-a7d3e277.js';
7
+ import './DataFetcher-5034df59.js';
8
8
  import './PrintUtils-3e4ff0f5.js';
9
9
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
10
10
  import './filter-item-type.enum-d45e026f.js';
@@ -14,10 +14,10 @@ import './field-search-f8b1d91e.js';
14
14
  import './taskbar-elements-d59867f1.js';
15
15
  import './index-3aa4977a.js';
16
16
  import './index-bdf75557.js';
17
- import './pesquisa-fetcher-50fc7e6b.js';
17
+ import './pesquisa-fetcher-6bc2e41a.js';
18
18
  import './ISave-d8c8bc59.js';
19
19
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
20
- import './dataunit-fetcher-fd58c640.js';
20
+ import './dataunit-fetcher-56cb648b.js';
21
21
  import '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils';
22
22
  import '@sankhyalabs/core/dist/utils/SortingUtils';
23
23
  import './ResourceIDUtils-a114189a.js';
@@ -1,13 +1,13 @@
1
1
  import { r as registerInstance, c as createEvent, h, F as Fragment, H as Host } from './index-a7d3d3f1.js';
2
2
  import { StringUtils, ObjectUtils, ApplicationContext, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { P as PersonalizedFilterUtils } from './PersonalizedFilterUtils-e2b38ef7.js';
4
- import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-7b36d041.js';
4
+ import { P as PersonalizedFilterFetcher, C as ConfigStorage } from './ConfigStorage-6514d66e.js';
5
5
  import { ApplicationUtils } from '@sankhyalabs/ezui/dist/collection/utils';
6
6
  import { a as FilterGroupCondition } from './index-ae591a44.js';
7
7
  import { s as store } from './index-bdf75557.js';
8
8
  import './filter-item-type.enum-d45e026f.js';
9
- import './form-config-fetcher-adbe5d34.js';
10
- import './DataFetcher-a9c598f2.js';
9
+ import './form-config-fetcher-a7d3e277.js';
10
+ import './DataFetcher-5034df59.js';
11
11
  import './PrintUtils-3e4ff0f5.js';
12
12
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
13
13
 
@@ -3,19 +3,19 @@ import { UserInterface, StringUtils, ApplicationContext, ObjectUtils, DataType,
3
3
  import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants-7302ee87.js';
5
5
  import { T as TaskbarElement } from './taskbar-elements-d59867f1.js';
6
- import './DataFetcher-a9c598f2.js';
7
- import './pesquisa-fetcher-50fc7e6b.js';
8
- import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, a as CrudUtils } from './ContinuousInsertUtils-881c41a9.js';
6
+ import './DataFetcher-5034df59.js';
7
+ import './pesquisa-fetcher-6bc2e41a.js';
8
+ import { C as CommonsExporter, S as SnkMultiSelectionListDataSource, R as RmPrecisionCustomValueFormatter, b as ContinuousInsertUtils, a as CrudUtils } from './ContinuousInsertUtils-b62906f9.js';
9
9
  import { D as DataExporterOption, P as PresentationMode } from './index-3aa4977a.js';
10
10
  import './ISave-d8c8bc59.js';
11
11
  import '@sankhyalabs/ezui/dist/collection/utils/constants';
12
12
  import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
13
- import { I as InMemoryLoader } from './dataunit-fetcher-fd58c640.js';
13
+ import { I as InMemoryLoader } from './dataunit-fetcher-56cb648b.js';
14
14
  import './filter-item-type.enum-d45e026f.js';
15
- import { F as FormConfigFetcher } from './form-config-fetcher-adbe5d34.js';
15
+ import { F as FormConfigFetcher } from './form-config-fetcher-a7d3e277.js';
16
16
  import { T as TaskbarProcessor, b as buildFieldSearch, o as openFieldSearch } from './field-search-f8b1d91e.js';
17
- import { C as ConfigStorage } from './ConfigStorage-7b36d041.js';
18
- import { S as SnkFormConfigManager } from './SnkFormConfigManager-f1a0fc92.js';
17
+ import { C as ConfigStorage } from './ConfigStorage-6514d66e.js';
18
+ import { S as SnkFormConfigManager } from './SnkFormConfigManager-b409c745.js';
19
19
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo-9fa41508.js';
20
20
  import { s as store } from './index-bdf75557.js';
21
21
  import './PrintUtils-3e4ff0f5.js';