@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-72026.1 → 0.0.0-bugfix-dev-KB-71601.1

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 (138) hide show
  1. package/dist/cjs/{ConfigStorage-ecc0ed20.js → ConfigStorage-e49214c6.js} +2 -2
  2. package/dist/cjs/{DataFetcher-cadeef8e.js → DataFetcher-77729a93.js} +20 -21
  3. package/dist/cjs/{IExporterProvider-9ac15aaf.js → IExporterProvider-5d129ffd.js} +4 -4
  4. package/dist/cjs/{GetSelectedRecordsIDsInfo-bd50caf1.js → RecordIDUtils-3735135c.js} +10 -10
  5. package/dist/cjs/{SnkFormConfigManager-f1c92f79.js → SnkFormConfigManager-beebf47a.js} +16 -72
  6. package/dist/cjs/{auth-fetcher-d68841bc.js → auth-fetcher-29bb791c.js} +1 -1
  7. package/dist/cjs/{dataunit-fetcher-4b12f70c.js → dataunit-fetcher-0c2f5903.js} +37 -16
  8. package/dist/cjs/{form-config-fetcher-ed497282.js → form-config-fetcher-feb08214.js} +2 -5
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/{pesquisa-fetcher-ca89181c.js → pesquisa-fetcher-a1d0353f.js} +1 -1
  11. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  12. package/dist/cjs/snk-actions-button_4.cjs.entry.js +14 -17
  13. package/dist/cjs/snk-application.cjs.entry.js +6 -6
  14. package/dist/cjs/snk-attach.cjs.entry.js +6 -8
  15. package/dist/cjs/snk-crud.cjs.entry.js +5 -5
  16. package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
  17. package/dist/cjs/{snk-data-unit-2f2e6f8c.js → snk-data-unit-610fb4bc.js} +3 -3
  18. package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
  19. package/dist/cjs/snk-detail-view.cjs.entry.js +9 -9
  20. package/dist/cjs/snk-filter-bar.cjs.entry.js +3 -3
  21. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  22. package/dist/cjs/snk-form-config.cjs.entry.js +4 -15
  23. package/dist/cjs/snk-form.cjs.entry.js +6 -7
  24. package/dist/cjs/snk-grid.cjs.entry.js +8 -8
  25. package/dist/cjs/{snk-guides-viewer-866447ab.js → snk-guides-viewer-d6d543af.js} +7 -10
  26. package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -8
  27. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  28. package/dist/cjs/snk-simple-crud.cjs.entry.js +10 -10
  29. package/dist/cjs/snk-taskbar.cjs.entry.js +1 -23
  30. package/dist/collection/components/snk-actions-button/actions/index.js +9 -12
  31. package/dist/collection/components/snk-attach/structure/fetcher/factory/attach-fetcher-data-unit.factory.js +2 -4
  32. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +2 -2
  33. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +2 -5
  34. package/dist/collection/components/snk-data-exporter/providers/ClientSideExporterProvider.js +1 -1
  35. package/dist/collection/components/snk-data-exporter/providers/ServerSideExporterProvider.js +1 -1
  36. package/dist/collection/{lib/utils/GetSelectedRecordsIDsInfo.js → components/snk-data-exporter/utils/RecordIDUtils.js} +9 -9
  37. package/dist/collection/components/snk-data-unit/snk-data-unit.js +2 -2
  38. package/dist/collection/components/snk-form/snk-form.js +2 -2
  39. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +14 -70
  40. package/dist/collection/components/snk-form-config/snk-form-config.js +2 -13
  41. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +1 -1
  42. package/dist/collection/components/snk-taskbar/snk-taskbar.js +0 -64
  43. package/dist/collection/lib/dataUnit/InMemoryLoader.js +2 -4
  44. package/dist/collection/lib/dataUnit/dataUnitInMemoryUtils.js +34 -9
  45. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +20 -21
  46. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +1 -4
  47. package/dist/components/DataFetcher.js +20 -21
  48. package/dist/components/SnkFormConfigManager.js +14 -70
  49. package/dist/components/dataunit-fetcher.js +36 -13
  50. package/dist/components/form-config-fetcher.js +1 -4
  51. package/dist/components/snk-actions-button2.js +9 -12
  52. package/dist/components/snk-attach2.js +2 -4
  53. package/dist/components/snk-data-unit2.js +42 -5
  54. package/dist/components/snk-detail-view2.js +4 -7
  55. package/dist/components/snk-form-config2.js +2 -13
  56. package/dist/components/snk-form.js +2 -2
  57. package/dist/components/snk-grid2.js +2 -2
  58. package/dist/components/snk-simple-crud2.js +3 -4
  59. package/dist/components/snk-taskbar2.js +2 -24
  60. package/dist/esm/{ConfigStorage-7b36d041.js → ConfigStorage-e476378d.js} +2 -2
  61. package/dist/esm/{DataFetcher-a9c598f2.js → DataFetcher-773a3e4b.js} +20 -21
  62. package/dist/esm/{IExporterProvider-09df2e3e.js → IExporterProvider-24f1d5be.js} +4 -4
  63. package/dist/esm/{GetSelectedRecordsIDsInfo-9fa41508.js → RecordIDUtils-87d02110.js} +10 -10
  64. package/dist/esm/{SnkFormConfigManager-139f09fa.js → SnkFormConfigManager-298cd647.js} +16 -72
  65. package/dist/esm/{auth-fetcher-749d880f.js → auth-fetcher-a411f73c.js} +1 -1
  66. package/dist/esm/{dataunit-fetcher-3aac1a53.js → dataunit-fetcher-3308edba.js} +37 -14
  67. package/dist/esm/{form-config-fetcher-adbe5d34.js → form-config-fetcher-e0382e5a.js} +2 -5
  68. package/dist/esm/loader.js +1 -1
  69. package/dist/esm/{pesquisa-fetcher-8edaa8cd.js → pesquisa-fetcher-a87445a0.js} +1 -1
  70. package/dist/esm/sankhyablocks.js +1 -1
  71. package/dist/esm/snk-actions-button_4.entry.js +14 -17
  72. package/dist/esm/snk-application.entry.js +6 -6
  73. package/dist/esm/snk-attach.entry.js +6 -8
  74. package/dist/esm/snk-crud.entry.js +5 -5
  75. package/dist/esm/snk-data-exporter.entry.js +6 -6
  76. package/dist/esm/{snk-data-unit-acf3dd64.js → snk-data-unit-f4727294.js} +3 -3
  77. package/dist/esm/snk-data-unit.entry.js +4 -4
  78. package/dist/esm/snk-detail-view.entry.js +9 -9
  79. package/dist/esm/snk-filter-bar.entry.js +3 -3
  80. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  81. package/dist/esm/snk-form-config.entry.js +4 -15
  82. package/dist/esm/snk-form.entry.js +6 -7
  83. package/dist/esm/snk-grid.entry.js +8 -8
  84. package/dist/esm/{snk-guides-viewer-cb8a0b48.js → snk-guides-viewer-57cfa507.js} +7 -10
  85. package/dist/esm/snk-guides-viewer.entry.js +8 -8
  86. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  87. package/dist/esm/snk-simple-crud.entry.js +10 -10
  88. package/dist/esm/snk-taskbar.entry.js +1 -23
  89. package/dist/sankhyablocks/p-038f6a70.entry.js +1 -0
  90. package/dist/sankhyablocks/p-0611c5d4.js +1 -0
  91. package/dist/sankhyablocks/{p-ca5ec380.js → p-0cd3c0a9.js} +1 -1
  92. package/dist/sankhyablocks/p-0e7db332.entry.js +1 -0
  93. package/dist/sankhyablocks/{p-06421fdb.js → p-181975f1.js} +2 -2
  94. package/dist/sankhyablocks/{p-1ab19772.js → p-1d13de28.js} +1 -1
  95. package/dist/sankhyablocks/{p-0e9a872d.entry.js → p-1f2f07c2.entry.js} +1 -1
  96. package/dist/sankhyablocks/{p-8862ba4a.entry.js → p-212c54c1.entry.js} +1 -1
  97. package/dist/sankhyablocks/{p-1bf06cd3.js → p-25f1fc39.js} +2 -2
  98. package/dist/sankhyablocks/{p-640140b3.entry.js → p-29016f61.entry.js} +2 -2
  99. package/dist/sankhyablocks/p-2e9c764c.entry.js +1 -0
  100. package/dist/sankhyablocks/{p-4d9549cf.js → p-3287a6cc.js} +1 -1
  101. package/dist/sankhyablocks/p-4c92bf50.entry.js +1 -0
  102. package/dist/sankhyablocks/{p-1f47a0b2.entry.js → p-50d7d40b.entry.js} +1 -1
  103. package/dist/sankhyablocks/{p-f3434fc4.js → p-594bc21d.js} +1 -1
  104. package/dist/sankhyablocks/{p-b2caaaf9.entry.js → p-5b26cc7c.entry.js} +1 -1
  105. package/dist/sankhyablocks/p-5f016aed.js +1 -0
  106. package/dist/sankhyablocks/p-8ad41dcb.entry.js +1 -0
  107. package/dist/sankhyablocks/p-939e15d3.entry.js +1 -0
  108. package/dist/sankhyablocks/p-9863d682.js +1 -0
  109. package/dist/sankhyablocks/{p-212213d9.entry.js → p-9dfda04a.entry.js} +1 -1
  110. package/dist/sankhyablocks/{p-16969508.entry.js → p-a0e0c10f.entry.js} +1 -1
  111. package/dist/sankhyablocks/p-a875c5f2.js +60 -0
  112. package/dist/sankhyablocks/{p-fb34e0cf.entry.js → p-bd008859.entry.js} +1 -1
  113. package/dist/sankhyablocks/{p-a31e761f.js → p-c319fccd.js} +1 -1
  114. package/dist/sankhyablocks/p-cfb72d5e.entry.js +1 -0
  115. package/dist/sankhyablocks/p-f2809746.entry.js +1 -0
  116. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  117. package/dist/types/components/snk-actions-button/actions/index.d.ts +0 -1
  118. package/dist/types/components/snk-crud/subcomponents/snk-guides-viewer.d.ts +0 -1
  119. package/dist/types/components/snk-data-exporter/utils/RecordIDUtils.d.ts +3 -0
  120. package/dist/types/components/snk-form-config/SnkFormConfigManager.d.ts +2 -7
  121. package/dist/types/components/snk-taskbar/snk-taskbar.d.ts +0 -11
  122. package/dist/types/components.d.ts +0 -8
  123. package/dist/types/lib/dataUnit/dataUnitInMemoryUtils.d.ts +12 -2
  124. package/package.json +1 -1
  125. package/dist/components/GetSelectedRecordsIDsInfo.js +0 -41
  126. package/dist/sankhyablocks/p-18ed15f4.entry.js +0 -1
  127. package/dist/sankhyablocks/p-3757394b.entry.js +0 -1
  128. package/dist/sankhyablocks/p-3d542b58.entry.js +0 -1
  129. package/dist/sankhyablocks/p-53c1d25d.entry.js +0 -1
  130. package/dist/sankhyablocks/p-60b29483.entry.js +0 -1
  131. package/dist/sankhyablocks/p-73185e58.entry.js +0 -1
  132. package/dist/sankhyablocks/p-7dd49d15.js +0 -1
  133. package/dist/sankhyablocks/p-8d7e2747.entry.js +0 -1
  134. package/dist/sankhyablocks/p-afbb070d.js +0 -1
  135. package/dist/sankhyablocks/p-bc4b94d2.entry.js +0 -1
  136. package/dist/sankhyablocks/p-ce6eed2c.js +0 -1
  137. package/dist/sankhyablocks/p-f8698ad3.js +0 -60
  138. package/dist/types/lib/utils/GetSelectedRecordsIDsInfo.d.ts +0 -3
@@ -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-beebf47a.js');
6
6
  const form = require('@sankhyalabs/ezui/dist/collection/utils/form');
7
7
  const fieldSearch = require('./field-search-f56aa7d6.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-ca89181c.js');
10
+ require('./DataFetcher-77729a93.js');
11
+ require('./pesquisa-fetcher-a1d0353f.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-4b12f70c.js');
16
+ require('./dataunit-fetcher-0c2f5903.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- require('./form-config-fetcher-ed497282.js');
18
+ require('./form-config-fetcher-feb08214.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-medium:var(--space--medium, 12px);--snk-guides-viewer__header--min-height:94px;--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-medium);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-medium)}.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-medium));height:calc(100vh - var(--snk-guides-viewer__header--min-height) - var(--snk-guides-viewer--space-large) - var(--snk-guides-viewer--space-medium))}.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}";
@@ -377,14 +377,11 @@ const SnkGuidesViewer = class {
377
377
  this._configManager.addFormLegacyConfig(this.formLegacyConfigName);
378
378
  }
379
379
  }
380
- setMasterFormConfig(config) {
381
- this.masterFormConfig = config;
382
- }
383
380
  componentWillLoad() {
384
381
  if (this.resourceID == undefined) {
385
382
  throw new Error("Erro interno: resourceID não informado");
386
383
  }
387
- this._configManager = new SnkFormConfigManager.SnkFormConfigManager(this.configName, this.resourceID, this.setMasterFormConfig.bind(this), this.dataUnit);
384
+ this._configManager = new SnkFormConfigManager.SnkFormConfigManager(this.configName, this.resourceID, config => this.masterFormConfig = config);
388
385
  this.addFormLegacyConfigName();
389
386
  this._configManager.loadConfig();
390
387
  }
@@ -412,7 +409,7 @@ const SnkGuidesViewer = class {
412
409
  return this._fieldSearch;
413
410
  }
414
411
  fieldsOptionLoader(argument) {
415
- return Promise.resolve(this._configManager.getFieldsList(argument)
412
+ return Promise.resolve(this._configManager.getFieldsList(this.dataUnit, argument)
416
413
  .map(field => ({ value: field.name, label: field.label })));
417
414
  }
418
415
  onSelectField(option, actionButton) {
@@ -2,26 +2,26 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const snkGuidesViewer = require('./snk-guides-viewer-866447ab.js');
5
+ const snkGuidesViewer = require('./snk-guides-viewer-d6d543af.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-beebf47a.js');
9
+ require('./ConfigStorage-e49214c6.js');
10
+ require('./form-config-fetcher-feb08214.js');
11
+ require('./DataFetcher-77729a93.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');
15
- require('./constants-35ddd366.js');
16
15
  require('@sankhyalabs/ezui/dist/collection/utils/form');
17
16
  require('./field-search-f56aa7d6.js');
18
17
  require('./taskbar-elements-9ad1f9c0.js');
19
18
  require('./index-1dfc7a6e.js');
20
19
  require('./index-102ba62d.js');
21
- require('./pesquisa-fetcher-ca89181c.js');
20
+ require('./constants-35ddd366.js');
21
+ require('./pesquisa-fetcher-a1d0353f.js');
22
22
  require('./ISave-e91b70a7.js');
23
23
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
24
- require('./dataunit-fetcher-4b12f70c.js');
24
+ require('./dataunit-fetcher-0c2f5903.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');
@@ -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 PersonalizedFilterUtils = require('./PersonalizedFilterUtils-0184ffbb.js');
8
- const ConfigStorage = require('./ConfigStorage-ecc0ed20.js');
8
+ const ConfigStorage = require('./ConfigStorage-e49214c6.js');
9
9
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
10
10
  const index$1 = require('./index-c5771aba.js');
11
11
  const index$2 = require('./index-102ba62d.js');
12
12
  require('./filter-item-type.enum-a7ffdaa6.js');
13
- require('./form-config-fetcher-ed497282.js');
14
- require('./DataFetcher-cadeef8e.js');
13
+ require('./form-config-fetcher-feb08214.js');
14
+ require('./DataFetcher-77729a93.js');
15
15
  require('./PrintUtils-bcaeb82f.js');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
17
17
 
@@ -7,20 +7,20 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const constants = require('./constants-35ddd366.js');
9
9
  const taskbarElements = require('./taskbar-elements-9ad1f9c0.js');
10
- require('./DataFetcher-cadeef8e.js');
11
- require('./pesquisa-fetcher-ca89181c.js');
12
- const IExporterProvider = require('./IExporterProvider-9ac15aaf.js');
10
+ require('./DataFetcher-77729a93.js');
11
+ require('./pesquisa-fetcher-a1d0353f.js');
12
+ const IExporterProvider = require('./IExporterProvider-5d129ffd.js');
13
13
  const index = require('./index-1dfc7a6e.js');
14
14
  require('./ISave-e91b70a7.js');
15
15
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
17
- const dataunitFetcher = require('./dataunit-fetcher-4b12f70c.js');
17
+ const dataunitFetcher = require('./dataunit-fetcher-0c2f5903.js');
18
18
  require('./filter-item-type.enum-a7ffdaa6.js');
19
- const formConfigFetcher = require('./form-config-fetcher-ed497282.js');
19
+ const formConfigFetcher = require('./form-config-fetcher-feb08214.js');
20
20
  const fieldSearch = require('./field-search-f56aa7d6.js');
21
- const ConfigStorage = require('./ConfigStorage-ecc0ed20.js');
22
- const SnkFormConfigManager = require('./SnkFormConfigManager-f1c92f79.js');
23
- const GetSelectedRecordsIDsInfo = require('./GetSelectedRecordsIDsInfo-bd50caf1.js');
21
+ const ConfigStorage = require('./ConfigStorage-e49214c6.js');
22
+ const SnkFormConfigManager = require('./SnkFormConfigManager-beebf47a.js');
23
+ const RecordIDUtils = require('./RecordIDUtils-3735135c.js');
24
24
  const index$2 = require('./index-102ba62d.js');
25
25
  require('./PrintUtils-bcaeb82f.js');
26
26
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
@@ -41,7 +41,7 @@ class ClientSideExporterProvider extends IExporterProvider.CommonsExporter {
41
41
  return total !== null && total !== void 0 ? total : (_c = (_b = this.dataUnit) === null || _b === void 0 ? void 0 : _b.records) === null || _c === void 0 ? void 0 : _c.length;
42
42
  }
43
43
  getSelectedIDs() {
44
- return GetSelectedRecordsIDsInfo.getSelectedRecordsIDsInfo(this.dataUnit);
44
+ return RecordIDUtils.getSelectedIDs(this.dataUnit);
45
45
  }
46
46
  getRecordID() {
47
47
  var _a, _b, _c;
@@ -359,7 +359,7 @@ const SnkSimpleCrud = class {
359
359
  return;
360
360
  }
361
361
  if (this._formConfigManager == undefined) {
362
- this._formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this.configName, this.resolveResourceID(), undefined, this.dataUnit);
362
+ this._formConfigManager = new SnkFormConfigManager.SnkFormConfigManager(this.configName, this.resolveResourceID());
363
363
  this._formConfigManager.setConfig(this.formConfig);
364
364
  }
365
365
  if (this.formConfigIsLoaded() && !forceLoad) {
@@ -15,8 +15,6 @@ const SnkTaskbar = class {
15
15
  constructor(hostRef) {
16
16
  index.registerInstance(this, hostRef);
17
17
  this.actionClick = index.createEvent(this, "actionClick", 7);
18
- this.taskbarSaveLocker = index.createEvent(this, "taskbarSaveLocker", 7);
19
- this.taskbarSaveUnlocker = index.createEvent(this, "taskbarSaveUnlocker", 7);
20
18
  this.TASKBAR_ITEM_ID_PREFIX = 'TASKBAR_ITEM_';
21
19
  this.TASKBAR_CUSTOM_ELEMENTS_CONTAINER_CLASS_NAME = 'taskbar-custom-elements-container';
22
20
  this.ACTIONS_BUTTON_TAG = 'TASKBAR-ACTIONS-BUTTON';
@@ -40,7 +38,6 @@ const SnkTaskbar = class {
40
38
  this.onSaveEvent = (action) => {
41
39
  switch (action.type) {
42
40
  case core.Action.FIELD_INVALIDATED:
43
- case core.Action.INVALIDATE_CLEAN:
44
41
  case core.Action.DATA_SAVED:
45
42
  case core.Action.SAVING_ERROR:
46
43
  this._isWaitingForSave = false;
@@ -79,16 +76,6 @@ const SnkTaskbar = class {
79
76
  this.getCustomElements(true);
80
77
  }
81
78
  }
82
- handleTaskbarSaveLocker() {
83
- if (this._isWaitingForSave !== true) {
84
- this._isWaitingForSave = true;
85
- }
86
- }
87
- handleTaskbarSaveUnlocker() {
88
- if (this._isWaitingForSave === true) {
89
- this._isWaitingForSave = false;
90
- }
91
- }
92
79
  hasToSearchCustomElements(event) {
93
80
  return this.customSlotId === event.detail && !this._slotContainer;
94
81
  }
@@ -107,14 +94,6 @@ const SnkTaskbar = class {
107
94
  this._hasToUpdateOverFlow = true;
108
95
  }
109
96
  }
110
- observeIsWaitingForSave(newValue, oldValue) {
111
- if (newValue == true && oldValue == false) {
112
- this.taskbarSaveLocker.emit();
113
- }
114
- if (newValue == false && oldValue == true) {
115
- this.taskbarSaveUnlocker.emit();
116
- }
117
- }
118
97
  // Internal methods
119
98
  elementsFromString(strButtons) {
120
99
  const elements = [];
@@ -443,8 +422,7 @@ const SnkTaskbar = class {
443
422
  static get watchers() { return {
444
423
  "buttons": ["observeButtons"],
445
424
  "disabledButtons": ["observeDisabledButtons"],
446
- "_lastWidth": ["observeLastWidth"],
447
- "_isWaitingForSave": ["observeIsWaitingForSave"]
425
+ "_lastWidth": ["observeLastWidth"]
448
426
  }; }
449
427
  };
450
428
  SnkTaskbar.style = snkTaskbarCss;
@@ -3,9 +3,9 @@ import { RefreshType } from "./enum/RefreshType";
3
3
  import { ParamType } from "./enum/ParamType";
4
4
  import { DataFetcher } from "../../../lib";
5
5
  import { ActionsType } from "./enum/ActionsType";
6
- import { getSelectedRecordsIDsInfo } from "../../../lib/utils/GetSelectedRecordsIDsInfo";
7
6
  const MASTER_ROW_PROPERTY = "__MASTER_ROW__";
8
7
  const ENTITY_NAME_PROPERTY = '__ENTITY_NAME__';
8
+ const NUFIN_COLUMN = 'NUFIN';
9
9
  const SERVICE_GET_CONFIGURATIONS = 'SystemUtilsSP.getConf';
10
10
  export default class Actions {
11
11
  constructor(actionsExecuteInterface, dataUnit, appResourceId) {
@@ -17,10 +17,6 @@ export default class Actions {
17
17
  this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
18
18
  this._appResourceId = appResourceId;
19
19
  }
20
- getPrimaryKeys() {
21
- const ids = getSelectedRecordsIDsInfo(this._dataUnit);
22
- return ids.map(({ name }) => name);
23
- }
24
20
  apply(action, hasParamsToSave) {
25
21
  this._application.closePopUp();
26
22
  this._actionsExecuteInterface.execute(action, this._dataUnit)
@@ -289,7 +285,6 @@ export default class Actions {
289
285
  executeAction(execSource);
290
286
  }
291
287
  addRows(execSource) {
292
- const primaryKeys = this.getPrimaryKeys();
293
288
  const rows = {
294
289
  row: []
295
290
  };
@@ -303,13 +298,15 @@ export default class Actions {
303
298
  delete sourceRow[MASTER_ROW_PROPERTY];
304
299
  delete sourceRow[ENTITY_NAME_PROPERTY];
305
300
  }
306
- if (!row.field) {
307
- row.field = [];
308
- }
309
- for (const primaryKey of primaryKeys) {
301
+ for (const fieldName in sourceRow) {
302
+ if (fieldName !== NUFIN_COLUMN)
303
+ continue;
304
+ if (!row.field) {
305
+ row.field = [];
306
+ }
310
307
  row.field.push({
311
- fieldName: primaryKey,
312
- $: sourceRow[primaryKey]
308
+ fieldName: fieldName,
309
+ $: sourceRow[fieldName]
313
310
  });
314
311
  }
315
312
  rows.row.push(row);
@@ -3,7 +3,7 @@ import { SaveErrorsEnum } from '../../../../../lib/http/data-fetcher/fetchers/At
3
3
  import { AutorizationType } from '../../../../../lib/http/data-fetcher/fetchers/auth-fetcher';
4
4
  import { attachFetcherMetadataBuilder } from '../../builder/attach-crud-config.builder';
5
5
  import { VIEW_MODE } from '../../../../../lib/utils/constants';
6
- import { applyFilter, applySorting, buildPaginationInfo } from '../../../../../lib/dataUnit/dataUnitInMemoryUtils';
6
+ import { buildLoadDataResponse } from '../../../../../lib/dataUnit/dataUnitInMemoryUtils';
7
7
  const SERVICE_LOAD = "Attach.load";
8
8
  export class AttachFetcherDataUnitFactory {
9
9
  constructor(getMessage) {
@@ -49,9 +49,7 @@ export class AttachFetcherDataUnitFactory {
49
49
  });
50
50
  this._records = records;
51
51
  }
52
- let records = applyFilter(this._records, dataUnit, request.filters);
53
- records = applySorting(records, dataUnit, request.sort);
54
- return Promise.resolve({ records, paginationInfo: buildPaginationInfo(records, request.offset, request.limit) });
52
+ return buildLoadDataResponse(this._records, dataUnit, request);
55
53
  }
56
54
  saveLoader(changes, fetcher) {
57
55
  return new Promise((resolve) => {
@@ -198,7 +198,7 @@ export class SnkDetailView {
198
198
  this.emitSwitchEvent(VIEW_MODE.GRID);
199
199
  evt.stopPropagation();
200
200
  }
201
- if (evt.detail === TaskbarElement.FORM_MODE || evt.detail === TaskbarElement.UPDATE) {
201
+ if (evt.detail === TaskbarElement.FORM_MODE) {
202
202
  this.emitSwitchEvent(VIEW_MODE.FORM);
203
203
  evt.stopPropagation();
204
204
  }
@@ -222,7 +222,7 @@ export class SnkDetailView {
222
222
  }
223
223
  componentWillLoad() {
224
224
  this._configName = `dynaform.${this.entityName}`;
225
- this.formConfigManager = new SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata(), this.dataUnit);
225
+ this.formConfigManager = new SnkFormConfigManager(this._configName, this.resourceID, () => this.loadMetadata());
226
226
  this.formConfigManager.loadConfig();
227
227
  if (this.messagesBuilder == undefined) {
228
228
  this.messagesBuilder = new SnkMessageBuilder(this.entityName);
@@ -361,14 +361,11 @@ export class SnkGuidesViewer {
361
361
  this._configManager.addFormLegacyConfig(this.formLegacyConfigName);
362
362
  }
363
363
  }
364
- setMasterFormConfig(config) {
365
- this.masterFormConfig = config;
366
- }
367
364
  componentWillLoad() {
368
365
  if (this.resourceID == undefined) {
369
366
  throw new Error("Erro interno: resourceID não informado");
370
367
  }
371
- this._configManager = new SnkFormConfigManager(this.configName, this.resourceID, this.setMasterFormConfig.bind(this), this.dataUnit);
368
+ this._configManager = new SnkFormConfigManager(this.configName, this.resourceID, config => this.masterFormConfig = config);
372
369
  this.addFormLegacyConfigName();
373
370
  this._configManager.loadConfig();
374
371
  }
@@ -396,7 +393,7 @@ export class SnkGuidesViewer {
396
393
  return this._fieldSearch;
397
394
  }
398
395
  fieldsOptionLoader(argument) {
399
- return Promise.resolve(this._configManager.getFieldsList(argument)
396
+ return Promise.resolve(this._configManager.getFieldsList(this.dataUnit, argument)
400
397
  .map(field => ({ value: field.name, label: field.label })));
401
398
  }
402
399
  onSelectField(option, actionButton) {
@@ -1,6 +1,6 @@
1
1
  import { CommonsExporter } from "../interfaces/IExporterProvider";
2
2
  import { UserInterface } from "@sankhyalabs/core";
3
- import { getSelectedRecordsIDsInfo as getSelectedIDs } from '../../../lib/utils/GetSelectedRecordsIDsInfo';
3
+ import { getSelectedIDs } from "../utils/RecordIDUtils";
4
4
  import { DataExporterOption } from "../../../lib/@types";
5
5
  export default class ClientSideExporterProvider extends CommonsExporter {
6
6
  getSelectedNumber() {
@@ -1,5 +1,5 @@
1
1
  import { CommonsExporter } from "../interfaces/IExporterProvider";
2
- import { getSelectedRecordsIDsInfo as getSelectedIDs } from '../../../lib/utils/GetSelectedRecordsIDsInfo';
2
+ import { getSelectedIDs } from "../utils/RecordIDUtils";
3
3
  export default class ServerSideExporterProvider extends CommonsExporter {
4
4
  getFilters() {
5
5
  var _a;
@@ -1,29 +1,29 @@
1
1
  import { DataType, JSUtils } from "@sankhyalabs/core";
2
- export function getSelectedRecordsIDsInfo(dataUnit) {
3
- const selectionInfo = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getSelectionInfo();
2
+ export const getSelectedIDs = (dataUnit) => {
3
+ const selectionInfo = dataUnit.getSelectionInfo();
4
4
  if (selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.isAllRecords()) {
5
5
  return [];
6
6
  }
7
7
  const selectedRecordsIDsInfo = [];
8
- const selectedRecords = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.records;
8
+ const selectedRecords = selectionInfo === null || selectionInfo === void 0 ? void 0 : selectionInfo.recordIds;
9
9
  if ((selectedRecords === null || selectedRecords === void 0 ? void 0 : selectedRecords.length) > 0) {
10
- selectedRecords.forEach(({ __record__id__ }) => {
11
- if (!dataUnit.isNewRecord(__record__id__)) {
10
+ selectedRecords.forEach(recordId => {
11
+ if (!dataUnit.isNewRecord(recordId)) {
12
12
  /*
13
13
  Esse if foi necessário para tratar corretamente o ID
14
14
  do record quando está sendo utilizado no modo standAlone
15
15
  isso não faz a exportação da grid funcionar no modo standAlone
16
16
  mas deixa de causar erro nas oprações de CRUD.
17
17
  */
18
- if (!JSUtils.isBase64(__record__id__)) {
18
+ if (!JSUtils.isBase64(recordId)) {
19
19
  selectedRecordsIDsInfo.push({
20
20
  name: "__record__id__",
21
21
  type: DataType.TEXT,
22
- value: __record__id__
22
+ value: recordId
23
23
  });
24
24
  return;
25
25
  }
26
- const revertBase64ToObject = JSON.parse(window.atob(__record__id__));
26
+ const revertBase64ToObject = JSON.parse(window.atob(recordId));
27
27
  Object.entries(revertBase64ToObject).forEach(([name, value]) => {
28
28
  const metadataField = dataUnit === null || dataUnit === void 0 ? void 0 : dataUnit.getField(name);
29
29
  if (metadataField == undefined) {
@@ -35,4 +35,4 @@ export function getSelectedRecordsIDsInfo(dataUnit) {
35
35
  });
36
36
  }
37
37
  return selectedRecordsIDsInfo;
38
- }
38
+ };
@@ -4,8 +4,8 @@ import { ApplicationUtils, DialogType } from '@sankhyalabs/ezui/dist/collection/
4
4
  import { OperationMap, SnkMessageBuilder } from '../../lib/message/SnkMessageBuilder';
5
5
  import { DatasetStrategy } from '../../lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy';
6
6
  import { getRecordValue } from '../../lib/dataUnit/ValueFormatter';
7
+ import { getSelectedIDs } from '../snk-data-exporter/utils/RecordIDUtils';
7
8
  import { convertType } from '@sankhyalabs/core/dist/dataunit/metadata/DataType';
8
- import { getSelectedRecordsIDsInfo } from '../../lib/utils/GetSelectedRecordsIDsInfo';
9
9
  export class SnkDataUnit {
10
10
  constructor() {
11
11
  this._onDataUnitResolve = [];
@@ -110,7 +110,7 @@ export class SnkDataUnit {
110
110
  * @returns Retorna a lista de IDs dos registros selecionados.
111
111
  */
112
112
  async getSelectedRecordsIDsInfo() {
113
- return getSelectedRecordsIDsInfo(this.dataUnit);
113
+ return Promise.resolve(getSelectedIDs(this.dataUnit));
114
114
  }
115
115
  /**
116
116
  * Retorna os campos que possuem a propriedade "rmp" (Row Metadata Provider).
@@ -87,7 +87,7 @@ export class SnkForm {
87
87
  if (this.resourceID == undefined) {
88
88
  this.resourceID = await ResourceIDUtils.getResourceID();
89
89
  }
90
- this._configManager = new SnkFormConfigManager(this.configName, this.resourceID, undefined, this._dataUnit);
90
+ this._configManager = new SnkFormConfigManager(this.configName, this.resourceID);
91
91
  this.addFormLegacyConfig();
92
92
  await this._configManager.loadConfig();
93
93
  }
@@ -117,7 +117,7 @@ export class SnkForm {
117
117
  if (!this._dataUnit || !this._dataState) {
118
118
  return undefined;
119
119
  }
120
- return (h("section", null, h("div", { class: "ez-row" }, h("div", { class: "ez-col ez-col--sd-12" }, h("ez-form", { ref: (ref) => this._form = ref, key: "ezForm" + this._snkDataUnit.entityName, "data-element-id": "embedded", dataUnit: this._dataUnit, config: this._configManager.getConfig(this._dataUnit), recordsValidator: this.recordsValidator, class: this._showFormConfig ? 'snk-form__form--hidden' : '' }), this._showFormConfig &&
120
+ return (h("section", null, h("div", { class: "ez-row" }, h("div", { class: "ez-col ez-col--sd-12" }, h("ez-form", { ref: (ref) => this._form = ref, key: "ezForm" + this._snkDataUnit.entityName, "data-element-id": "embedded", dataUnit: this._dataUnit, config: this._configManager.getConfig(this._dataState.insertionMode, this._dataUnit), recordsValidator: this.recordsValidator, class: this._showFormConfig ? 'snk-form__form--hidden' : '' }), this._showFormConfig &&
121
121
  h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this._dataUnit, configManager: this._configManager, onConfigClose: () => this.closeConfig() })))));
122
122
  }
123
123
  static get is() { return "snk-form"; }
@@ -1,13 +1,11 @@
1
1
  import { ConfigStorage } from '../../lib/configs/ConfigStorage';
2
2
  import { ObjectUtils, StringUtils } from "@sankhyalabs/core";
3
3
  import { FormConfigFetcher } from "../../lib/http/data-fetcher/fetchers/form-config-fetcher";
4
- import { TAB_NAMES } from "../../lib/utils/constants";
5
4
  export class SnkFormConfigManager {
6
- constructor(configName, resourceID, onConfigChange, dataUnit) {
5
+ constructor(configName, resourceID, onConfigChange) {
7
6
  this._resourceID = resourceID;
8
7
  this._configName = configName;
9
8
  this._onConfigChange = onConfigChange;
10
- this._dataUnit = dataUnit;
11
9
  }
12
10
  addFormLegacyConfig(legacyConfigName) {
13
11
  if (this._configName) {
@@ -18,7 +16,6 @@ export class SnkFormConfigManager {
18
16
  return new Promise(resolve => {
19
17
  ConfigStorage.loadFormConfig(this._configName, this._resourceID)
20
18
  .then((config) => {
21
- config = this.buildFormMetadataUITabs(config);
22
19
  this.setConfig(config);
23
20
  resolve(config);
24
21
  })
@@ -27,10 +24,6 @@ export class SnkFormConfigManager {
27
24
  });
28
25
  });
29
26
  }
30
- getEmptyConfig() {
31
- const config = this.buildFormMetadataUITabs({ fields: [], emptyConfig: true }, true);
32
- return config;
33
- }
34
27
  saveConfig(config) {
35
28
  const configToSave = ObjectUtils.copy(config);
36
29
  return new Promise(accept => {
@@ -74,36 +67,25 @@ export class SnkFormConfigManager {
74
67
  }
75
68
  return updatingCardConfig;
76
69
  }
77
- hasConfig(config) {
78
- var _a;
79
- const currentConfig = config !== null && config !== void 0 ? config : this._config;
80
- if (currentConfig && ((_a = currentConfig.fields) === null || _a === void 0 ? void 0 : _a.length)) {
81
- return true;
82
- }
83
- return false;
84
- }
85
- getFieldsList(descriptionFilter, forceEmptyConfig = false) {
70
+ getFieldsList(dataUnit, descriptionFilter) {
86
71
  var _a;
87
72
  const fields = (_a = this._config) === null || _a === void 0 ? void 0 : _a.fields;
88
- const hasConfig = this.hasConfig();
89
- if (hasConfig && !forceEmptyConfig) {
90
- return fields.map(({ label, name, readOnly, visible, required, tab }) => {
91
- var _a;
73
+ if (fields != undefined && fields.length > 0) {
74
+ return fields.map(({ label, name, readOnly, visible, required }) => {
92
75
  if (label == undefined) {
93
- const currentField = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(name);
94
- return Object.assign(Object.assign({}, currentField), { name: name !== null && name !== void 0 ? name : currentField.name, readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : currentField.readOnly, visible: visible !== null && visible !== void 0 ? visible : currentField.visible, required: required !== null && required !== void 0 ? required : currentField.required, tab: tab });
76
+ const currentField = dataUnit.getField(name);
77
+ return Object.assign(Object.assign({}, currentField), { name: name !== null && name !== void 0 ? name : currentField.name, readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : currentField.readOnly, visible: visible !== null && visible !== void 0 ? visible : currentField.visible, required: required !== null && required !== void 0 ? required : currentField.required });
95
78
  }
96
- return { name, label, readOnly, visible, required, tab };
79
+ return { name, label, readOnly, visible, required };
97
80
  })
98
81
  .filter(field => this.isFieldVisible(field, descriptionFilter));
99
82
  }
100
- if (!this._dataUnit) {
101
- return [];
83
+ if (dataUnit != undefined) {
84
+ return dataUnit.metadata.fields
85
+ .filter(field => this.isFieldVisible(field, descriptionFilter))
86
+ .map(({ label, name, readOnly }) => { return { label, name, readOnly }; });
102
87
  }
103
- const filteredFields = this._dataUnit.metadata.fields
104
- .filter(field => this.isFieldVisible(field, descriptionFilter))
105
- .map(({ label, name, readOnly, visible, required, properties }) => ({ label, name, readOnly, visible, required, tab: properties === null || properties === void 0 ? void 0 : properties.UITabName }));
106
- return filteredFields;
88
+ return [];
107
89
  }
108
90
  isFieldVisible(field, descriptionFilter) {
109
91
  if (field.visible === false) {
@@ -116,8 +98,8 @@ export class SnkFormConfigManager {
116
98
  const normalizedFilter = StringUtils.replaceAccentuatedCharsLower(descriptionFilter.toLocaleLowerCase());
117
99
  return normalizedText.includes(normalizedFilter);
118
100
  }
119
- getFormConfig(dataUnit, ignoreReadOnlyFormFields, forceEmptyConfig = false) {
120
- let fields = this.getFieldsList(undefined, forceEmptyConfig);
101
+ getFormConfig(dataUnit, ignoreReadOnlyFormFields) {
102
+ let fields = this.getFieldsList(dataUnit);
121
103
  if (ignoreReadOnlyFormFields) {
122
104
  fields = fields.filter(field => {
123
105
  if (dataUnit) {
@@ -170,42 +152,4 @@ export class SnkFormConfigManager {
170
152
  async fetchDefaultConfig() {
171
153
  return this.getFormConfigFetcher().fetchDefaultConfig(this._configName, this._resourceID);
172
154
  }
173
- parseObjectList(object) {
174
- if (!object) {
175
- return [];
176
- }
177
- return Array.isArray(object) ? object : [object];
178
- }
179
- buildFormMetadataUITabs(config, forceEmptyConfig = false) {
180
- var _a;
181
- const hasConfig = this.hasConfig(config);
182
- if (!forceEmptyConfig && (!this._dataUnit || hasConfig)) {
183
- return config;
184
- }
185
- config = this.getFormConfig(this._dataUnit, false, true);
186
- config.tabs = this.parseObjectList(config.tabs);
187
- config.emptyConfig = false;
188
- config.defaultConfiguration = true;
189
- const fields = this._dataUnit.metadata.fields;
190
- for (const currentField of fields) {
191
- const field = config.fields.find(field => field.name === currentField.name);
192
- const uiTabName = (_a = currentField.properties) === null || _a === void 0 ? void 0 : _a.UITabName;
193
- if (!uiTabName || uiTabName === TAB_NAMES.main) {
194
- continue;
195
- }
196
- const haveTab = config.tabs.some((tab) => tab.label === uiTabName);
197
- if (!haveTab) {
198
- config.tabs.push({
199
- label: uiTabName,
200
- name: uiTabName,
201
- order: 0,
202
- visible: true,
203
- });
204
- }
205
- if (field) {
206
- field.tab = uiTabName;
207
- }
208
- }
209
- return config;
210
- }
211
155
  }
@@ -193,11 +193,6 @@ export class SnkFormConfig {
193
193
  this.configManager.saveConfig(this.buildConfigToSave())
194
194
  .then(savedConfig => {
195
195
  ApplicationUtils.info(this.getMessage("snkFormConfig.info.successfullyConfigSaved"), { iconName: "check" });
196
- const userOption = this._formConfigOptions
197
- .find((config) => {
198
- return config.origin === UserConfigType.USER;
199
- });
200
- this.setFormConfig(userOption);
201
196
  this.configChange.emit(savedConfig);
202
197
  });
203
198
  }
@@ -534,12 +529,9 @@ export class SnkFormConfig {
534
529
  switch (this._optionFormConfigSelected.origin) {
535
530
  case UserConfigType.DEFAULT:
536
531
  config = await this.configManager.fetchDefaultConfig();
537
- if (!config) {
538
- config = this.configManager.getEmptyConfig();
539
- }
540
532
  break;
541
- default:
542
- config = this.getConfig();
533
+ case UserConfigType.DEFAULT:
534
+ config = await this.configManager.fetchDefaultConfig();
543
535
  break;
544
536
  }
545
537
  if (config != undefined) {
@@ -742,9 +734,6 @@ export class SnkFormConfig {
742
734
  if (layoutFormConfig == undefined) {
743
735
  layoutFormConfig = [];
744
736
  }
745
- if (this._formConfig.defaultConfiguration) {
746
- return layoutFormConfig;
747
- }
748
737
  return this._formConfig.tabs.map((tab) => {
749
738
  return layoutFormConfig.find(config => { var _a, _b; return ((_a = tab.label) === null || _a === void 0 ? void 0 : _a.toLowerCase()) === ((_b = config.tab) === null || _b === void 0 ? void 0 : _b.toLowerCase()); })
750
739
  || { tab: tab.label, groups: [], visible: tab.visible };
@@ -279,7 +279,7 @@ export class SnkSimpleCrud {
279
279
  return;
280
280
  }
281
281
  if (this._formConfigManager == undefined) {
282
- this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID(), undefined, this.dataUnit);
282
+ this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
283
283
  this._formConfigManager.setConfig(this.formConfig);
284
284
  }
285
285
  if (this.formConfigIsLoaded() && !forceLoad) {