@sankhyalabs/sankhyablocks 8.16.0-dev.99 → 8.16.0-ms.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (157) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-cc82b68a.js → ClientSideExporterProvider-2f5f350c.js} +21 -55
  2. package/dist/cjs/{ConfigStorage-2235f35e.js → ConfigStorage-d024aec8.js} +2 -2
  3. package/dist/cjs/{DataFetcher-875371e9.js → DataFetcher-65879b2c.js} +1 -1
  4. package/dist/cjs/ISave-e91b70a7.js +9 -0
  5. package/dist/cjs/{SnkFormConfigManager-6637cd6b.js → SnkFormConfigManager-c11d8468.js} +2 -2
  6. package/dist/cjs/{auth-fetcher-abad589f.js → auth-fetcher-8480751c.js} +1 -1
  7. package/dist/cjs/{dataunit-fetcher-b95768e8.js → dataunit-fetcher-449d51a3.js} +1 -1
  8. package/dist/cjs/{form-config-fetcher-db332748.js → form-config-fetcher-90126e4c.js} +1 -15
  9. package/dist/cjs/index-f9e81701.js +2 -2
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/cjs/{ISave-62fbb1dd.js → pesquisa-fetcher-5c583c93.js} +1 -9
  12. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +6 -5
  13. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  14. package/dist/cjs/{snk-actions-button_7.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +6 -65
  15. package/dist/cjs/snk-application.cjs.entry.js +7 -50
  16. package/dist/cjs/snk-attach.cjs.entry.js +6 -5
  17. package/dist/cjs/snk-config-options_3.cjs.entry.js +4 -4
  18. package/dist/cjs/snk-configurator.cjs.entry.js +1 -8
  19. package/dist/cjs/snk-crud.cjs.entry.js +7 -7
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +7 -6
  21. package/dist/cjs/{snk-data-unit-33937ffe.js → snk-data-unit-bbd384bf.js} +1 -1
  22. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  23. package/dist/cjs/snk-detail-view.cjs.entry.js +10 -10
  24. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +3 -3
  25. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  26. package/dist/cjs/snk-grid.cjs.entry.js +7 -6
  27. package/dist/cjs/{snk-guides-viewer-0e4f3b1a.js → snk-guides-viewer-5396062f.js} +7 -6
  28. package/dist/cjs/snk-guides-viewer.cjs.entry.js +8 -7
  29. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  30. package/dist/cjs/snk-pesquisa.cjs.entry.js +12 -11
  31. package/dist/cjs/snk-simple-crud.cjs.entry.js +9 -9
  32. package/dist/collection/collection-manifest.json +0 -2
  33. package/dist/collection/components/snk-application/snk-application.js +0 -41
  34. package/dist/collection/components/snk-configurator/snk-configurator.js +1 -26
  35. package/dist/collection/components/snk-crud/snk-crud.js +1 -20
  36. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.css +1 -10
  37. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +1 -25
  38. package/dist/collection/components/snk-crud/subcomponents/snk-guides-viewer.js +1 -1
  39. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +16 -51
  40. package/dist/collection/components/snk-data-exporter/utils/ParserExport.js +1 -1
  41. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +1 -20
  42. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +1 -1
  43. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +0 -14
  44. package/dist/components/ContinuousInsertUtils.js +16 -51
  45. package/dist/components/DataFetcher.js +1 -1
  46. package/dist/components/form-config-fetcher.js +0 -14
  47. package/dist/components/index.d.ts +0 -2
  48. package/dist/components/index.js +0 -2
  49. package/dist/components/snk-application2.js +0 -45
  50. package/dist/components/snk-attach2.js +22 -34
  51. package/dist/components/snk-configurator2.js +2 -22
  52. package/dist/components/snk-crud.js +62 -76
  53. package/dist/components/snk-data-exporter2.js +1 -1
  54. package/dist/components/snk-detail-view2.js +86 -110
  55. package/dist/components/snk-simple-crud2.js +19 -33
  56. package/dist/esm/{ClientSideExporterProvider-8191676b.js → ClientSideExporterProvider-3537805a.js} +21 -55
  57. package/dist/esm/{ConfigStorage-9bd805d6.js → ConfigStorage-373bb440.js} +2 -2
  58. package/dist/esm/{DataFetcher-ecf5f903.js → DataFetcher-5221b992.js} +1 -1
  59. package/dist/esm/ISave-d8c8bc59.js +9 -0
  60. package/dist/esm/{SnkFormConfigManager-fbc6a9a8.js → SnkFormConfigManager-5022f87f.js} +2 -2
  61. package/dist/esm/{auth-fetcher-07d33333.js → auth-fetcher-e32fe8a4.js} +1 -1
  62. package/dist/esm/{dataunit-fetcher-ed6e65ef.js → dataunit-fetcher-91b094f2.js} +1 -1
  63. package/dist/esm/{form-config-fetcher-ac17cff4.js → form-config-fetcher-126e2471.js} +1 -15
  64. package/dist/esm/index-a7d3d3f1.js +2 -2
  65. package/dist/esm/loader.js +1 -1
  66. package/dist/esm/{ISave-7d546dce.js → pesquisa-fetcher-4284f2a3.js} +2 -10
  67. package/dist/esm/pesquisa-grid_2.entry.js +5 -4
  68. package/dist/esm/sankhyablocks.js +1 -1
  69. package/dist/esm/{snk-actions-button_7.entry.js → snk-actions-button_5.entry.js} +8 -65
  70. package/dist/esm/snk-application.entry.js +6 -49
  71. package/dist/esm/snk-attach.entry.js +6 -5
  72. package/dist/esm/snk-config-options_3.entry.js +4 -4
  73. package/dist/esm/snk-configurator.entry.js +1 -8
  74. package/dist/esm/snk-crud.entry.js +7 -7
  75. package/dist/esm/snk-data-exporter.entry.js +7 -6
  76. package/dist/esm/{snk-data-unit-6258b8ae.js → snk-data-unit-b03bb5cf.js} +1 -1
  77. package/dist/esm/snk-data-unit.entry.js +3 -3
  78. package/dist/esm/snk-detail-view.entry.js +10 -10
  79. package/dist/esm/snk-filter-bar_4.entry.js +3 -3
  80. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  81. package/dist/esm/snk-grid.entry.js +7 -6
  82. package/dist/esm/{snk-guides-viewer-80a8709c.js → snk-guides-viewer-749d027c.js} +7 -6
  83. package/dist/esm/snk-guides-viewer.entry.js +8 -7
  84. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  85. package/dist/esm/snk-pesquisa.entry.js +5 -4
  86. package/dist/esm/snk-simple-crud.entry.js +9 -9
  87. package/dist/sankhyablocks/p-13391b3d.entry.js +1 -0
  88. package/dist/sankhyablocks/p-1435701f.js +26 -0
  89. package/dist/sankhyablocks/{p-13f17dab.js → p-19dc71e9.js} +1 -1
  90. package/dist/sankhyablocks/{p-340e2447.entry.js → p-1cf39cfd.entry.js} +1 -1
  91. package/dist/sankhyablocks/p-21749402.js +1 -0
  92. package/dist/sankhyablocks/{p-abd9681c.js → p-23b47a92.js} +1 -1
  93. package/dist/sankhyablocks/{p-7e0a0aae.js → p-3653374d.js} +1 -1
  94. package/dist/sankhyablocks/p-389ba782.entry.js +1 -0
  95. package/dist/sankhyablocks/p-3ba431c9.js +1 -0
  96. package/dist/sankhyablocks/{p-108fee57.js → p-41c3bee5.js} +2 -2
  97. package/dist/sankhyablocks/{p-2746d606.entry.js → p-44efbeed.entry.js} +1 -1
  98. package/dist/sankhyablocks/p-4be6e0e7.entry.js +1 -0
  99. package/dist/sankhyablocks/p-4c9adf1c.entry.js +1 -0
  100. package/dist/sankhyablocks/p-4d87cd45.entry.js +1 -0
  101. package/dist/sankhyablocks/p-4fa79d68.entry.js +1 -0
  102. package/dist/sankhyablocks/p-5dd7f4c7.js +1 -0
  103. package/dist/sankhyablocks/p-6234bda8.entry.js +1 -0
  104. package/dist/sankhyablocks/p-647f9830.entry.js +11 -0
  105. package/dist/sankhyablocks/p-7b87d1a8.js +1 -0
  106. package/dist/sankhyablocks/{p-0bcd4757.entry.js → p-82ee6dc3.entry.js} +1 -1
  107. package/dist/sankhyablocks/{p-5fea0816.entry.js → p-974fdba6.entry.js} +1 -1
  108. package/dist/sankhyablocks/p-ad5e4f9d.entry.js +1 -0
  109. package/dist/sankhyablocks/p-b2de1bcc.entry.js +1 -0
  110. package/dist/sankhyablocks/{p-f467153c.entry.js → p-c021a3a9.entry.js} +1 -1
  111. package/dist/sankhyablocks/p-ca316523.entry.js +1 -0
  112. package/dist/sankhyablocks/{p-5a7e18f4.js → p-d62228fb.js} +1 -1
  113. package/dist/sankhyablocks/p-ee53b000.entry.js +1 -0
  114. package/dist/sankhyablocks/{p-48729c8c.js → p-f0b9303b.js} +1 -1
  115. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  116. package/dist/types/components/snk-application/snk-application.d.ts +0 -10
  117. package/dist/types/components/snk-configurator/snk-configurator.d.ts +0 -6
  118. package/dist/types/components/snk-crud/snk-crud.d.ts +0 -4
  119. package/dist/types/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.d.ts +0 -5
  120. package/dist/types/components/snk-data-exporter/interfaces/IExporterProvider.d.ts +0 -7
  121. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +0 -4
  122. package/dist/types/components.d.ts +1 -77
  123. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +0 -6
  124. package/package.json +1 -1
  125. package/react/components.d.ts +0 -2
  126. package/react/components.js +0 -2
  127. package/react/components.js.map +1 -1
  128. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.css +0 -3
  129. package/dist/collection/components/snk-layout-form-config/snk-layout-form-config.js +0 -73
  130. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.css +0 -78
  131. package/dist/collection/components/snk-layout-form-config/snk-view-representation/snk-view-representation.js +0 -57
  132. package/dist/collection/lib/configs/LayoutFormConfig.js +0 -25
  133. package/dist/components/snk-layout-form-config.d.ts +0 -11
  134. package/dist/components/snk-layout-form-config.js +0 -6
  135. package/dist/components/snk-layout-form-config2.js +0 -73
  136. package/dist/components/snk-view-representation.d.ts +0 -11
  137. package/dist/components/snk-view-representation.js +0 -6
  138. package/dist/components/snk-view-representation2.js +0 -41
  139. package/dist/sankhyablocks/p-01512409.js +0 -26
  140. package/dist/sankhyablocks/p-02c6dc9f.entry.js +0 -1
  141. package/dist/sankhyablocks/p-35fcf37e.js +0 -1
  142. package/dist/sankhyablocks/p-3a36d4b3.entry.js +0 -1
  143. package/dist/sankhyablocks/p-513af002.entry.js +0 -1
  144. package/dist/sankhyablocks/p-950e3cbe.entry.js +0 -1
  145. package/dist/sankhyablocks/p-9907cf67.entry.js +0 -1
  146. package/dist/sankhyablocks/p-af58c9d7.entry.js +0 -1
  147. package/dist/sankhyablocks/p-c5acb7ba.entry.js +0 -11
  148. package/dist/sankhyablocks/p-c7c6eab7.entry.js +0 -1
  149. package/dist/sankhyablocks/p-cb9d725a.js +0 -1
  150. package/dist/sankhyablocks/p-d1f04e2c.js +0 -1
  151. package/dist/sankhyablocks/p-d2065bb4.entry.js +0 -1
  152. package/dist/sankhyablocks/p-dc617b0c.entry.js +0 -1
  153. package/dist/sankhyablocks/p-e5d8891d.entry.js +0 -1
  154. package/dist/sankhyablocks/p-f861bfcb.entry.js +0 -1
  155. package/dist/types/components/snk-layout-form-config/snk-layout-form-config.d.ts +0 -15
  156. package/dist/types/components/snk-layout-form-config/snk-view-representation/snk-view-representation.d.ts +0 -10
  157. package/dist/types/lib/configs/LayoutFormConfig.d.ts +0 -11
@@ -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-2235f35e.js');
8
+ const ConfigStorage = require('./ConfigStorage-d024aec8.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-db332748.js');
14
- require('./DataFetcher-875371e9.js');
13
+ require('./form-config-fetcher-90126e4c.js');
14
+ require('./DataFetcher-65879b2c.js');
15
15
  require('./PrintUtils-bcaeb82f.js');
16
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
17
17
 
@@ -4,14 +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 ISave = require('./ISave-62fbb1dd.js');
8
- require('./DataFetcher-875371e9.js');
7
+ const pesquisaFetcher = require('./pesquisa-fetcher-5c583c93.js');
8
+ require('./DataFetcher-65879b2c.js');
9
9
  require('./index-e3e39724.js');
10
+ require('./ISave-e91b70a7.js');
10
11
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
11
12
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
12
- require('./dataunit-fetcher-b95768e8.js');
13
+ require('./dataunit-fetcher-449d51a3.js');
13
14
  require('./filter-item-type.enum-a7ffdaa6.js');
14
- require('./form-config-fetcher-db332748.js');
15
+ require('./form-config-fetcher-90126e4c.js');
15
16
  require('./constants-241934b3.js');
16
17
  require('./PrintUtils-bcaeb82f.js');
17
18
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -33,7 +34,7 @@ const SnkPesquisa = class {
33
34
  this._limitCharsToSearch = 3;
34
35
  this._deboucingTime = 450;
35
36
  this._gridDataSource = [];
36
- this.pesquisaFetcher = new ISave.PesquisaFetcher();
37
+ this.pesquisaFetcher = new pesquisaFetcher.PesquisaFetcher();
37
38
  this._itemList = undefined;
38
39
  this._startLoading = false;
39
40
  this._presentationMode = "list";
@@ -96,7 +97,7 @@ const SnkPesquisa = class {
96
97
  let pkField = resp.pkField;
97
98
  if (!pkField)
98
99
  return;
99
- this._gridMetadata = ISave.buildGridMetadata(resp);
100
+ this._gridMetadata = pesquisaFetcher.buildGridMetadata(resp);
100
101
  this._gridDataSource = [...resp.data];
101
102
  this._pkField = pkField;
102
103
  this._descriptionField = descriptionField;
@@ -350,11 +351,11 @@ const SnkPesquisa = class {
350
351
  async chooseViewMode() {
351
352
  var _a, _b;
352
353
  if (this._presentationMode !== 'list') {
353
- await ((_a = this._viewStack) === null || _a === void 0 ? void 0 : _a.show(ISave.PESQUISA_VIEW_MODE.GRID));
354
- this._currentView = ISave.PESQUISA_VIEW_MODE.GRID;
354
+ await ((_a = this._viewStack) === null || _a === void 0 ? void 0 : _a.show(pesquisaFetcher.PESQUISA_VIEW_MODE.GRID));
355
+ this._currentView = pesquisaFetcher.PESQUISA_VIEW_MODE.GRID;
355
356
  return;
356
357
  }
357
- const view = this.isHierarchyEntity ? ISave.PESQUISA_VIEW_MODE.TREE : ISave.PESQUISA_VIEW_MODE.CARDS;
358
+ const view = this.isHierarchyEntity ? pesquisaFetcher.PESQUISA_VIEW_MODE.TREE : pesquisaFetcher.PESQUISA_VIEW_MODE.CARDS;
358
359
  await ((_b = this._viewStack) === null || _b === void 0 ? void 0 : _b.show(view));
359
360
  this._currentView = view;
360
361
  }
@@ -389,9 +390,9 @@ const SnkPesquisa = class {
389
390
  var _a, _b;
390
391
  return (index.h(index.Host, null, index.h("div", { class: "snk-pesquisa" }, index.h("div", { class: "snk-pesquisa__input" }, index.h("ez-text-input", { label: "Buscar", class: "ez-margin-right--medium", canShowError: false, ref: (ref) => this._textInput = ref, onEzChange: (event) => this.onChangeValue(event), value: this.argument, "data-element-id": "searchInput" }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" }), this.argument && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value)
391
392
  ? index.h("button", { slot: "rightIcon", class: "snk-pesquisa__btn", onClick: () => this.clearSearch() }, index.h("ez-icon", { iconName: "close" }))
392
- : undefined), index.h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), index.h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), index.h("div", { class: `snk-pesquisa__records-label ${this._currentView === ISave.PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, index.h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), index.h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), index.h("div", { class: "snk-pesquisa__content" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === ISave.PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), index.h("stack-item", null, index.h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
393
+ : undefined), index.h("ez-button", { class: "ez-button--primary", label: "Pesquisar", onClick: () => this.onClickSearch() }), index.h("ez-button", { class: "ez-margin-left--medium", mode: "icon", iconName: this.getButtonModeInfo().iconName, title: this.getButtonModeInfo().title, onClick: async () => await this.handleChangeViewMode() })), index.h("div", { class: `snk-pesquisa__records-label ${this._currentView === pesquisaFetcher.PESQUISA_VIEW_MODE.TREE ? 'hidden' : ''}` }, index.h("label", { class: `snk-pesquisa__records ${this.hideRecordsMessage() ? "hidden" : ""}` }, this.getMessageView()), index.h("label", { class: `snk-pesquisa__records-limit ${this.hideLimitMessage() ? "hidden" : ""}` }, "Essa pesquisa foi limitada, existem mais resultados.")), index.h("div", { class: "snk-pesquisa__content" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("pesquisa-grid", { metadata: this._gridMetadata, dataSource: this._gridDataSource, pkField: this._pkField, descriptionField: this._descriptionField, entityName: this.entityName, shouldLoadConfig: this._currentView === pesquisaFetcher.PESQUISA_VIEW_MODE.GRID, onPesquisaGridSelectItem: ({ detail }) => this.selectItem(detail) })), index.h("stack-item", null, index.h("div", { class: 'snk-pesquisa__cards-container' }, (_b = this._itemList) === null || _b === void 0 ? void 0 : _b.map((item) => {
393
394
  return (index.h("ez-card-item", { onEzClick: (event) => this.createOption(event.detail), item: item }));
394
- }))), index.h("stack-item", null, index.h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === ISave.PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail) })))))));
395
+ }))), index.h("stack-item", null, index.h("pesquisa-tree", { ref: (element) => this._pesquisaTree = element, argument: this.argument, treeLoader: this.treeLoader, allowsNonAnalytic: this.allowsNonAnalytic, shouldLoadTree: this._currentView === pesquisaFetcher.PESQUISA_VIEW_MODE.TREE, onPesquisaTreeSelectItem: ({ detail }) => this.selectItem(detail) })))))));
395
396
  }
396
397
  get _element() { return index.getElement(this); }
397
398
  static get watchers() { return {
@@ -7,18 +7,19 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const constants = require('./constants-241934b3.js');
9
9
  const taskbarElements = require('./taskbar-elements-7e19882d.js');
10
- require('./DataFetcher-875371e9.js');
11
- require('./ISave-62fbb1dd.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-cc82b68a.js');
10
+ require('./DataFetcher-65879b2c.js');
11
+ require('./pesquisa-fetcher-5c583c93.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-2f5f350c.js');
13
13
  const index$1 = require('./index-e3e39724.js');
14
+ require('./ISave-e91b70a7.js');
14
15
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
16
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- const dataunitFetcher = require('./dataunit-fetcher-b95768e8.js');
17
+ const dataunitFetcher = require('./dataunit-fetcher-449d51a3.js');
17
18
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- const formConfigFetcher = require('./form-config-fetcher-db332748.js');
19
+ const formConfigFetcher = require('./form-config-fetcher-90126e4c.js');
19
20
  const fieldSearch = require('./field-search-68e34bf4.js');
20
- const ConfigStorage = require('./ConfigStorage-2235f35e.js');
21
- const SnkFormConfigManager = require('./SnkFormConfigManager-6637cd6b.js');
21
+ const ConfigStorage = require('./ConfigStorage-d024aec8.js');
22
+ const SnkFormConfigManager = require('./SnkFormConfigManager-c11d8468.js');
22
23
  const index$2 = require('./index-102ba62d.js');
23
24
  require('./PrintUtils-bcaeb82f.js');
24
25
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
@@ -86,7 +87,6 @@ const SnkSimpleCrud = class {
86
87
  this.ignoreReadOnlyFormFields = false;
87
88
  this.autoFocus = true;
88
89
  this.domainMessagesBuilder = undefined;
89
- this.layoutFormConfig = false;
90
90
  this.autoLoad = undefined;
91
91
  this.outlineMode = false;
92
92
  }
@@ -779,7 +779,7 @@ const SnkSimpleCrud = class {
779
779
  }
780
780
  return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === constants.VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section` }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
781
781
  ? undefined
782
- : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
782
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
783
783
  }
784
784
  get _element() { return index.getElement(this); }
785
785
  static get watchers() { return {
@@ -41,8 +41,6 @@
41
41
  "./components/snk-grid/snk-grid.js",
42
42
  "./components/snk-grid-config/snk-grid-config.js",
43
43
  "./components/snk-grid-config/snk-select-box/snk-select-box.js",
44
- "./components/snk-layout-form-config/snk-layout-form-config.js",
45
- "./components/snk-layout-form-config/snk-view-representation/snk-view-representation.js",
46
44
  "./components/snk-personalized-filter/snk-personalized-filter.js",
47
45
  "./components/snk-personalized-filter/subcomponents/snk-expression-group/snk-expression-group.js",
48
46
  "./components/snk-personalized-filter/subcomponents/snk-expression-item/snk-expression-item.js",
@@ -18,8 +18,6 @@ import { SnkErrorHandler } from "./errorhandler/snk-error-handler";
18
18
  import RequestListenerFactory from "./request-listener/RequestListenerFactory";
19
19
  import PreloadManager from "../../lib/http/data-fetcher/fetchers/data-unit/cache/PreloadManager";
20
20
  import { TEMPLATES_SKELETON } from "../../lib/utils/constants";
21
- import { LayoutFormConfig } from "../../lib/configs/LayoutFormConfig";
22
- import { FormConfigFetcher } from "../../lib";
23
21
  /**
24
22
  * É possível customizar as mensagens dos blocos de construção através de um pequeno modulo na estrutura da aplicação:
25
23
  * - Criar um arquivo no seguinte caminho: /messages/appmessages.msg.js.
@@ -39,8 +37,6 @@ export class SnkApplication {
39
37
  this._pendingActions = new Map;
40
38
  this._loadPkParameter = null;
41
39
  this._isLoadedByPk = false;
42
- this._formConfigFetcher = new FormConfigFetcher();
43
- this._LayoutFormConfigSingleton = LayoutFormConfig.getInstance();
44
40
  this._applicationReady = false;
45
41
  this._templateSkeleton = TEMPLATES_SKELETON.GRID;
46
42
  this._activeScrimWindow = false;
@@ -115,14 +111,6 @@ export class SnkApplication {
115
111
  async getKeyboardManager() {
116
112
  return Promise.resolve(this._keyboardManager);
117
113
  }
118
- /**
119
- * Obtém o notificador de Layout de formulario.
120
- *
121
- * @return {LayoutFormConfig} the Configurador de Layout do Formulario
122
- */
123
- async getLayoutFormConfig() {
124
- return Promise.resolve(this._LayoutFormConfigSingleton);
125
- }
126
114
  /**
127
115
  * Obtém `true` caso o usuário logado seja o SUP.
128
116
  */
@@ -1038,12 +1026,6 @@ export class SnkApplication {
1038
1026
  ConfigStorage.preload(this.applicationResourceID, this.configName, legacyConfig);
1039
1027
  document.addEventListener("click", () => Workspace.applicationClick());
1040
1028
  this._waitingAppReady.forEach(resolve => resolve());
1041
- this.setLayoutFormConfig();
1042
- }
1043
- async setLayoutFormConfig() {
1044
- const response = await this._formConfigFetcher.fetchLayoutFormConfig('formColCfg.' + this.applicationResourceID);
1045
- const config = isNaN(Number(response === null || response === void 0 ? void 0 : response.config)) ? null : Number(response === null || response === void 0 ? void 0 : response.config);
1046
- this._LayoutFormConfigSingleton.setConfig(config);
1047
1029
  }
1048
1030
  connectedCallback() {
1049
1031
  this._isBrowserTypeElectron = UserAgentUtils.isElectron();
@@ -1397,29 +1379,6 @@ export class SnkApplication {
1397
1379
  }]
1398
1380
  }
1399
1381
  },
1400
- "getLayoutFormConfig": {
1401
- "complexType": {
1402
- "signature": "() => Promise<LayoutFormConfig>",
1403
- "parameters": [],
1404
- "references": {
1405
- "Promise": {
1406
- "location": "global"
1407
- },
1408
- "LayoutFormConfig": {
1409
- "location": "import",
1410
- "path": "../../lib/configs/LayoutFormConfig"
1411
- }
1412
- },
1413
- "return": "Promise<LayoutFormConfig>"
1414
- },
1415
- "docs": {
1416
- "text": "Obt\u00E9m o notificador de Layout de formulario.",
1417
- "tags": [{
1418
- "name": "return",
1419
- "text": "the Configurador de Layout do Formulario"
1420
- }]
1421
- }
1422
- },
1423
1382
  "isUserSup": {
1424
1383
  "complexType": {
1425
1384
  "signature": "() => Promise<boolean>",
@@ -11,7 +11,6 @@ export class SnkConfigurator {
11
11
  this.resourceID = undefined;
12
12
  this.viewMode = VIEW_MODE.GRID;
13
13
  this.customContainerId = undefined;
14
- this.layoutFormConfig = false;
15
14
  this.messagesBuilder = undefined;
16
15
  }
17
16
  /**
@@ -72,12 +71,6 @@ export class SnkConfigurator {
72
71
  var _a;
73
72
  return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, {});
74
73
  }
75
- handleSave() {
76
- if (this.layoutFormConfig) {
77
- this._snkLayoutFormConfig.save();
78
- }
79
- this.save.emit();
80
- }
81
74
  componentWillLoad() {
82
75
  this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
83
76
  if (this._application) {
@@ -101,7 +94,7 @@ export class SnkConfigurator {
101
94
  insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
102
95
  }
103
96
  render() {
104
- return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), this.layoutFormConfig && h("ez-collapsible-box", { boxBordered: true, value: true, label: "Layout do formul\u00E1rio", headerSize: "medium", class: "snk-configurator__collapsable-box ez-margin-top--medium" }, h("div", { class: 'ez-flex ez-flex--column ez-size-width--full' }, h("snk-layout-form-config", { ref: (ref) => this._snkLayoutFormConfig = ref }))), h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (h("div", { class: "snk-configurator__action-buttons" }, h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), h("ez-button", { label: "Salvar", onClick: () => this.handleSave(), class: "ez-button--primary" }))))));
97
+ return (h("ez-modal", { ref: (element) => (this.modal = element), opened: this._opened, "close-esc": false, "close-outside-click": false, "modal-size": "small", scrim: "light" }, h("div", { class: "snk-configurator" }, h("div", { class: "snk-configurator__header" }, h("label", { class: "snk-configurator__title" }, this.getMessage('snkConfigurator.titleConfigurations')), h("div", { class: "snk-configurator__button-close" }, h("ez-button", { mode: "icon", iconName: "close", size: "medium", onClick: () => this.closeConfig() }))), h("div", { class: "snk-configurator__main" }, h("ez-collapsible-box", { boxBordered: true, label: "Modo de visualiza\u00E7\u00E3o ", headerSize: "medium", class: "snk-configurator__collapsable-box" }, h("ez-radio-button", { value: this.getViewModeValue().toString(), onEzChange: (evt) => this.onViewModeChanged(evt), enabled: this.enableModeConfig() }, h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelGrid'), value: VIEW_MODE.GRID }), h("ez-radio-button-option", { label: this.getMessage('snkConfigurator.labelForm'), value: VIEW_MODE.FORM })), h("div", { class: "snk-configurator__collsable-box-action" }, h("ez-button", { label: this.viewMode === VIEW_MODE.GRID ? this.getMessage('snkConfigurator.labelConfigGrid') : this.getMessage('snkConfigurator.labelConfigForm'), class: "snk-configurator__button-config ez-button--secondary", onClick: () => this.onClickOpenConfig(), id: "openConfigurator" }))), h("div", { id: "slotContainer", class: "snk-configurator__outline" })), this.showActionButtons && (h("div", { class: "snk-configurator__action-buttons" }, h("ez-button", { label: "Cancelar", onClick: () => this.cancel.emit() }), h("ez-button", { label: "Salvar", onClick: () => this.save.emit(), class: "ez-button--primary" }))))));
105
98
  }
106
99
  static get is() { return "snk-configurator"; }
107
100
  static get encapsulation() { return "scoped"; }
@@ -209,24 +202,6 @@ export class SnkConfigurator {
209
202
  "attribute": "custom-container-id",
210
203
  "reflect": false
211
204
  },
212
- "layoutFormConfig": {
213
- "type": "boolean",
214
- "mutable": false,
215
- "complexType": {
216
- "original": "boolean",
217
- "resolved": "boolean",
218
- "references": {}
219
- },
220
- "required": false,
221
- "optional": false,
222
- "docs": {
223
- "tags": [],
224
- "text": "Define se o LayoutFormConfig ser\u00E1 exibido no configurador."
225
- },
226
- "attribute": "layout-form-config",
227
- "reflect": false,
228
- "defaultValue": "false"
229
- },
230
205
  "messagesBuilder": {
231
206
  "type": "unknown",
232
207
  "mutable": true,
@@ -47,7 +47,6 @@ export class SnkCrud {
47
47
  this.ignoreReadOnlyFormFields = undefined;
48
48
  this.setCustomFormTitle = undefined;
49
49
  this.strategyExporter = ExporterStrategy.SERVER_SIDE;
50
- this.layoutFormConfig = false;
51
50
  this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
52
51
  }
53
52
  /**
@@ -383,7 +382,7 @@ export class SnkCrud {
383
382
  return;
384
383
  }
385
384
  this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === VIEW_MODE.GRID && !this.enableGridInsert);
386
- return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId, layoutFormConfig: this.layoutFormConfig })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
385
+ return (h(Host, null, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full ez-padding--medium' }, h("snk-grid", { ref: (ref) => this._snkGrid = ref, class: 'ez-flex ez-flex--column ez-size-height--full ez-size-width--full', filterBarTitle: this.filterBarTitle, "data-element-id": "crud_grid", configName: this.configName, onGridDoubleClick: () => this.gridToForm(true), taskbarManager: this.taskbarManager, onActionClick: evt => this.executeAction(evt.detail), messagesBuilder: this.messagesBuilder, actionsList: this.actionsList, statusResolver: this.statusResolver, multipleSelection: this.multipleSelection, presentationMode: this.presentationMode, recordsValidator: this.recordsValidator, selectionToastConfig: this.selectionToastConfig, useEnterLikeTab: this.useEnterLikeTab, canEdit: this._canEdit, resourceID: this._resourceID, disablePersonalizedFilter: this.disablePersonalizedFilter, gridLegacyConfigName: this.gridLegacyConfigName, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, strategyExporter: this.strategyExporter }, h("slot", { name: "GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkGridHeader" }), h("slot", { name: "SnkGridFooter" }), h("slot", { name: "SnkGridTaskBar" }))), h("stack-item", null, h("snk-guides-viewer", { ref: ref => this._guidesViewer = ref, entityPath: this._snkDataUnit.entityName, messagesBuilder: this.messagesBuilder, onExit: () => this.setViewMode(VIEW_MODE.GRID), dataState: this._dataState, dataUnit: this._dataUnit, actionsList: this.actionsList, taskbarManager: this.taskbarManager, configName: this.configName, onActionClick: evt => this.executeAction(evt.detail), presentationMode: this.presentationMode, "data-element-id": "crud_form", canEdit: this._canEdit, recordsValidator: this.recordsValidator, resourceID: this._resourceID, detailTaskbarCustomContainerId: this.customContainerId, formLegacyConfigName: this.formLegacyConfigName, enableGridInsert: this.enableGridInsert, getCustomTitle: this.setCustomFormTitle, ignoreReadOnlyFormFields: this.ignoreReadOnlyFormFields }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "SnkFormTaskBar" }))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName, onBack: this.backView.bind(this) })), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.setViewMode(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showActionButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this._resourceID, customContainerId: this.customContainerId })), h("div", { id: `${this.customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }), h("slot", { name: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS" }), h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }))));
387
386
  }
388
387
  static get is() { return "snk-crud"; }
389
388
  static get encapsulation() { return "scoped"; }
@@ -865,24 +864,6 @@ export class SnkCrud {
865
864
  "attribute": "strategy-exporter",
866
865
  "reflect": false,
867
866
  "defaultValue": "ExporterStrategy.SERVER_SIDE"
868
- },
869
- "layoutFormConfig": {
870
- "type": "boolean",
871
- "mutable": false,
872
- "complexType": {
873
- "original": "boolean",
874
- "resolved": "boolean",
875
- "references": {}
876
- },
877
- "required": false,
878
- "optional": false,
879
- "docs": {
880
- "tags": [],
881
- "text": "Define se o LayoutFormConfig ser\u00E1 exibido no configurador."
882
- },
883
- "attribute": "layout-form-config",
884
- "reflect": false,
885
- "defaultValue": "false"
886
867
  }
887
868
  };
888
869
  }
@@ -19,17 +19,8 @@
19
19
  .grid-container{
20
20
  background-color: #FFF;
21
21
  min-height: 100px;
22
- height: 100%;
23
22
  }
24
23
 
25
24
  .detail-header{
26
25
  padding-bottom: 0;
27
- }
28
-
29
- snk-data-unit {
30
- flex: 1;
31
- }
32
-
33
- snk-grid{
34
- height: calc(100% - 43px);
35
- }
26
+ }
@@ -28,7 +28,6 @@ export class SnkDetailView {
28
28
  this.taskbarCustomContainerId = undefined;
29
29
  this.customEditors = undefined;
30
30
  this.customRenders = undefined;
31
- this.presentationMode = PresentationMode.SECONDARY;
32
31
  }
33
32
  observeDataUnit(newDataUnit, oldDataUnit) {
34
33
  newDataUnit === null || newDataUnit === void 0 ? void 0 : newDataUnit.subscribe(this.dataUnitActionHandler.bind(this));
@@ -248,7 +247,7 @@ export class SnkDetailView {
248
247
  render() {
249
248
  this.updateLabel();
250
249
  //const cardConfig: IFormCardConfig = this._cardsState?.get(this.selectedForm);
251
- return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: this.presentationMode, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: this.presentationMode, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
250
+ return (h(Host, null, h("snk-data-unit", { ref: (el) => this._snkDataUnit = el, dataUnitName: `${this.dataUnitName}`, onDataUnitReady: evt => this.dataUnitReadyHandler(evt), entityName: this.entityName, onDataStateChange: this.handleDataStateChange.bind(this), ignoreSaveMessage: this._currentView === VIEW_MODE.GRID, messagesBuilder: this.messagesBuilder, configName: this._configName }, h("ez-view-stack", { ref: (ref) => this.updateViewStack(ref) }, h("stack-item", null, h("div", { class: "ez-box ez-box--shadow grid-container" }, h("div", { class: "ez-flex ez-title--primary ez-size-width--full ez-padding--large detail-header" }, h("div", { class: "ez-flex ez-text ez-text--bold ez-flex--justify-start ez-flex--align-items-center" }, this._levelPath ? h("span", { class: "level-path" }, this._levelPath + " /") : undefined, this.label)), h("snk-grid", { class: "ez-size-width--full ez-size-height--full", ref: (ref) => this._snkGrid = ref, configName: this._configName, messagesBuilder: this.messagesBuilder, onGridDoubleClick: () => this.emitSwitchEvent(VIEW_MODE.FORM), onActionClick: (evt) => this.executeActionHandler(evt), presentationMode: PresentationMode.SECONDARY, canEdit: this.canEdit, isDetail: true, taskbarCustomContainerId: this.taskbarCustomContainerId, gridHeaderCustomSlotId: "DETAIL_GRID_HEADER_CUSTOM_ELEMENTS", topTaskbarCustomSlotId: "DETAIL_GRID_TASKBAR_CUSTOM_ELEMENTS", outlineMode: false }))), h("stack-item", null, h("snk-form-view", { ref: (ref) => this._snkFormView = ref, canExpand: false, canFix: false, name: this.selectedForm, formMetadata: this._formMetadata, dataUnit: this.dataUnit, fields: this.getFormFields(), label: this.label, levelPath: this._levelPath, onFormItemsReady: ({ detail: formItems }) => this.formItemsReady.emit(formItems) }, h("snk-taskbar", { key: "guideViewerTaskbar", class: "form-taskbar", "data-element-id": "guideViewer", configName: this._configName, messagesBuilder: this.messagesBuilder, disabledButtons: this._disabledButtons, buttons: "INSERT,PREVIOUS,NEXT,DIVIDER,CLONE,REMOVE,MORE_OPTIONS,DIVIDER,GRID_MODE,CONFIGURATOR", primaryButton: "INSERT", presentationMode: PresentationMode.SECONDARY, onActionClick: evt => this.executeActionHandler(evt), dataUnit: this.dataUnit, resourceID: this.resourceID, customContainerId: this.taskbarCustomContainerId, customSlotId: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" }, h("slot", { name: "DETAIL_TASKBAR_CUSTOM_ELEMENTS" })))), h("stack-item", null, h("snk-attach", { registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this.entityName, onBack: this.handleAttachBack.bind(this) }))))));
252
251
  }
253
252
  static get is() { return "snk-detail-view"; }
254
253
  static get encapsulation() { return "scoped"; }
@@ -546,29 +545,6 @@ export class SnkDetailView {
546
545
  "tags": [],
547
546
  "text": "Render customizados da grade."
548
547
  }
549
- },
550
- "presentationMode": {
551
- "type": "string",
552
- "mutable": false,
553
- "complexType": {
554
- "original": "PresentationMode",
555
- "resolved": "PresentationMode.PRIMARY | PresentationMode.SECONDARY | PresentationMode.SINGLE_TASKBAR",
556
- "references": {
557
- "PresentationMode": {
558
- "location": "import",
559
- "path": "../../../../lib"
560
- }
561
- }
562
- },
563
- "required": false,
564
- "optional": false,
565
- "docs": {
566
- "tags": [],
567
- "text": "Altera o modo de apresenta\u00E7\u00E3o dos bot\u00F5es do snk-taskbar."
568
- },
569
- "attribute": "presentation-mode",
570
- "reflect": false,
571
- "defaultValue": "PresentationMode.SECONDARY"
572
548
  }
573
549
  };
574
550
  }
@@ -284,7 +284,7 @@ export class SnkGuidesViewer {
284
284
  else {
285
285
  detailBranch = this.selectedGuide;
286
286
  }
287
- content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders, presentationMode: this.presentationMode }));
287
+ content = this.wrapDetail(levels, h("snk-detail-view", { ref: (ref) => this._currentDetail = ref, dataUnitName: this.getDataUnitName(levels, childEntityName), onSnkDetailGuidesChange: (evt) => this.updateGuide(evt.detail), entityName: childEntityName, selectedForm: formName, branchGuide: detailBranch, guideItemPath: this._breadcrumbItems, key: `detail${detailId}`, canEdit: this.canEdit, onSnkSwitchGuide: evt => this._guideNavigator.selectGuide(evt.detail), resourceID: this.resourceID, taskbarCustomContainerId: this.detailTaskbarCustomContainerId, customEditors: this._customEditors, customRenders: this._customRenders }));
288
288
  }
289
289
  else {
290
290
  const cardId = this.selectedGuide.id;
@@ -2,9 +2,6 @@ import { UserInterface } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMeta
2
2
  import { DataType } from '@sankhyalabs/core';
3
3
  export class CommonsExporter {
4
4
  constructor(dataUnit, grid) {
5
- this.MAX_WIDTH_COD = 60;
6
- this.MIN_WIDTH_COD = 10;
7
- this.DEFAULT_FONT_SIZE = 13;
8
5
  this.dataUnit = dataUnit;
9
6
  this.grid = grid;
10
7
  }
@@ -17,7 +14,7 @@ export class CommonsExporter {
17
14
  return this.columnsState;
18
15
  }
19
16
  async buildColumnsMetadata(gridColumns) {
20
- var _a, _b, _c;
17
+ var _a, _b;
21
18
  const columnsMetadata = [];
22
19
  for (const column of gridColumns) {
23
20
  /**
@@ -28,62 +25,30 @@ export class CommonsExporter {
28
25
  }
29
26
  const fieldData = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
30
27
  const customFormatter = await this.grid.getCustomValueFormatter(column.name);
31
- const isUserInterfaceSEARCH = (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface.SEARCH;
32
- const widthColumnDefault = 60;
33
- const labelColumn = isUserInterfaceSEARCH ? "Cód. " : column.label;
34
- let descriptionColumn = undefined;
35
- let columnData = {
28
+ const columnData = {
29
+ label: column.label,
36
30
  id: column.name,
37
- label: labelColumn,
38
- width: isUserInterfaceSEARCH ? (labelColumn.length * this.DEFAULT_FONT_SIZE) : column.width,
31
+ width: (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface.SEARCH ? 60 : column.width,
39
32
  type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
40
33
  userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
41
34
  customFormatter
42
35
  };
43
- if (isUserInterfaceSEARCH) {
44
- if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
45
- const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
46
- const mergedFrom = fieldData.properties.mergedFrom;
47
- const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
48
- descriptionColumn = {
49
- id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
50
- label: labelDescription,
51
- width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
52
- type: DataType.TEXT,
53
- userInterface: UserInterface.LONGTEXT,
54
- descriptionFrom: fieldData.name
55
- };
56
- }
57
- if (descriptionColumn) {
58
- const newWidth = this.getWidthByMetaData(column === null || column === void 0 ? void 0 : column.width, columnData === null || columnData === void 0 ? void 0 : columnData.width, descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.width);
59
- columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
60
- descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.descWidth, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
61
- }
62
- }
63
36
  columnsMetadata.push(columnData);
64
- if (descriptionColumn)
37
+ if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
38
+ const mergedFrom = fieldData.properties.mergedFrom;
39
+ const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
40
+ const descriptionColumn = {
41
+ label: fieldData.properties.DESCRIPTIONENTITY,
42
+ id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
43
+ width: column.width,
44
+ type: DataType.TEXT,
45
+ userInterface: UserInterface.LONGTEXT,
46
+ descriptionFrom: fieldData.name
47
+ };
65
48
  columnsMetadata.push(descriptionColumn);
49
+ }
66
50
  }
67
51
  ;
68
52
  return columnsMetadata || [];
69
53
  }
70
- getWidthByMetaData(maxWidth, widthCod, widthDescription) {
71
- const totalCurrentWidth = widthCod + widthDescription;
72
- const codPercentage = widthCod / totalCurrentWidth;
73
- const descPercentage = widthDescription / totalCurrentWidth;
74
- let newWidthCod = Math.round(maxWidth * codPercentage);
75
- let newWidthDescription = Math.round(maxWidth * descPercentage);
76
- if (newWidthCod > this.MAX_WIDTH_COD) {
77
- newWidthCod = this.MAX_WIDTH_COD;
78
- newWidthDescription = maxWidth - this.MAX_WIDTH_COD;
79
- }
80
- else if (newWidthCod < this.MIN_WIDTH_COD) {
81
- newWidthCod = this.MIN_WIDTH_COD;
82
- newWidthDescription = maxWidth - this.MIN_WIDTH_COD;
83
- }
84
- return {
85
- codWidth: newWidthCod,
86
- descWidth: newWidthDescription
87
- };
88
- }
89
54
  }
@@ -1,5 +1,5 @@
1
1
  import { DataExporterOption } from "../../../lib/@types";
2
- const DOC_MAX_WIDTH = 860;
2
+ const DOC_MAX_WIDTH = 760;
3
3
  export function getVisibleColumns(columns) {
4
4
  const visibleColumns = [];
5
5
  let totalWidth = 0;
@@ -61,7 +61,6 @@ export class SnkSimpleCrud {
61
61
  this.ignoreReadOnlyFormFields = false;
62
62
  this.autoFocus = true;
63
63
  this.domainMessagesBuilder = undefined;
64
- this.layoutFormConfig = false;
65
64
  this.autoLoad = undefined;
66
65
  this.outlineMode = false;
67
66
  }
@@ -754,7 +753,7 @@ export class SnkSimpleCrud {
754
753
  }
755
754
  return (h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), ignoreSaveMessage: this._currentViewMode === VIEW_MODE.GRID, onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, h("header", null, h("slot", { name: "snkSimpleCrudHeader" })), h("section", { class: `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section` }, h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, h("stack-item", null, h("ez-grid", { class: "ez-margin-bottom--large", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
756
755
  ? undefined
757
- : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, this.renderTaskbarContent(), h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
756
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode }, this.renderTaskbarContent(), h("div", { slot: "footer" }, h("slot", { name: "snkSimpleCrudFooter" })))), h("stack-item", null, this.renderTaskbarContent(), h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId })), h("div", { id: `${this._customContainerId}` }, h("slot", { name: "SnkConfigContainerSlot" }))), h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
758
757
  }
759
758
  static get is() { return "snk-simple-crud"; }
760
759
  static get encapsulation() { return "scoped"; }
@@ -1234,24 +1233,6 @@ export class SnkSimpleCrud {
1234
1233
  "attribute": "domain-messages-builder",
1235
1234
  "reflect": false
1236
1235
  },
1237
- "layoutFormConfig": {
1238
- "type": "boolean",
1239
- "mutable": false,
1240
- "complexType": {
1241
- "original": "boolean",
1242
- "resolved": "boolean",
1243
- "references": {}
1244
- },
1245
- "required": false,
1246
- "optional": false,
1247
- "docs": {
1248
- "tags": [],
1249
- "text": "Define se o LayoutFormConfig ser\u00E1 exibido no configurador."
1250
- },
1251
- "attribute": "layout-form-config",
1252
- "reflect": false,
1253
- "defaultValue": "false"
1254
- },
1255
1236
  "autoLoad": {
1256
1237
  "type": "boolean",
1257
1238
  "mutable": false,
@@ -415,7 +415,7 @@ export class DataFetcher {
415
415
  const requestId = StringUtils.generateUUID();
416
416
  DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request, requestId }));
417
417
  try {
418
- const response = await batchRequests(url, request, { 'Content-Type': `application/json; charset=UTF-8` });
418
+ const response = await batchRequests(url, request, { 'Content-Type': `application/json; charset=${window['SERVER_ENCODING'] || 'UTF-8'}` });
419
419
  response.forEach((resItem, index) => {
420
420
  var _a;
421
421
  if (((_a = resItem === null || resItem === void 0 ? void 0 : resItem.errors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
@@ -220,20 +220,6 @@ export class FormConfigFetcher extends ResourceFetcher {
220
220
  const rawFields = (_c = (_b = (_a = config === null || config === void 0 ? void 0 : config.formConfig) === null || _a === void 0 ? void 0 : _a.layout) === null || _b === void 0 ? void 0 : _b.field) !== null && _c !== void 0 ? _c : [];
221
221
  return { emptyConfig: false, fields: Array.isArray(rawFields) ? rawFields : [rawFields] };
222
222
  }
223
- async fetchLayoutFormConfig(configName) {
224
- const payload = { 'requestBody': { 'config': { 'chave': configName, 'tipo': 'T' } } };
225
- const response = await DataFetcher.get().callServiceBroker('SystemUtilsSP.getConf', JSON.stringify(payload));
226
- if (ObjectUtils.isEmpty(response))
227
- return undefined;
228
- return response.config;
229
- }
230
- async saveLayoutFormConfig(configName, config) {
231
- const payload = { 'requestBody': { 'config': Object.assign(Object.assign({}, config), { 'chave': configName, 'tipo': 'T' }) } };
232
- const response = await DataFetcher.get().callServiceBroker('SystemUtilsSP.saveConf', JSON.stringify(payload));
233
- if (ObjectUtils.isEmpty(response))
234
- return undefined;
235
- return response;
236
- }
237
223
  }
238
224
  export var UserConfigType;
239
225
  (function (UserConfigType) {