@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
@@ -260,9 +260,6 @@ class RmPrecisionCustomValueFormatter {
260
260
 
261
261
  class CommonsExporter {
262
262
  constructor(dataUnit, grid) {
263
- this.MAX_WIDTH_COD = 60;
264
- this.MIN_WIDTH_COD = 10;
265
- this.DEFAULT_FONT_SIZE = 13;
266
263
  this.dataUnit = dataUnit;
267
264
  this.grid = grid;
268
265
  }
@@ -275,7 +272,7 @@ class CommonsExporter {
275
272
  return this.columnsState;
276
273
  }
277
274
  async buildColumnsMetadata(gridColumns) {
278
- var _a, _b, _c;
275
+ var _a, _b;
279
276
  const columnsMetadata = [];
280
277
  for (const column of gridColumns) {
281
278
  /**
@@ -286,63 +283,31 @@ class CommonsExporter {
286
283
  }
287
284
  const fieldData = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.getField(column.name);
288
285
  const customFormatter = await this.grid.getCustomValueFormatter(column.name);
289
- const isUserInterfaceSEARCH = (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface$1.SEARCH;
290
- const widthColumnDefault = 60;
291
- const labelColumn = isUserInterfaceSEARCH ? "Cód. " : column.label;
292
- let descriptionColumn = undefined;
293
- let columnData = {
286
+ const columnData = {
287
+ label: column.label,
294
288
  id: column.name,
295
- label: labelColumn,
296
- width: isUserInterfaceSEARCH ? (labelColumn.length * this.DEFAULT_FONT_SIZE) : column.width,
289
+ width: (fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface) === UserInterface$1.SEARCH ? 60 : column.width,
297
290
  type: fieldData === null || fieldData === void 0 ? void 0 : fieldData.dataType,
298
291
  userInterface: fieldData === null || fieldData === void 0 ? void 0 : fieldData.userInterface,
299
292
  customFormatter
300
293
  };
301
- if (isUserInterfaceSEARCH) {
302
- if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
303
- const labelDescription = (_c = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONENTITY;
304
- const mergedFrom = fieldData.properties.mergedFrom;
305
- const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
306
- descriptionColumn = {
307
- id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
308
- label: labelDescription,
309
- width: isUserInterfaceSEARCH && labelDescription ? (labelDescription.length * this.DEFAULT_FONT_SIZE - widthColumnDefault) : column.width,
310
- type: DataType.TEXT,
311
- userInterface: UserInterface$1.LONGTEXT,
312
- descriptionFrom: fieldData.name
313
- };
314
- }
315
- if (descriptionColumn) {
316
- 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);
317
- columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
318
- 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) });
319
- }
320
- }
321
294
  columnsMetadata.push(columnData);
322
- if (descriptionColumn)
295
+ if (((_b = fieldData === null || fieldData === void 0 ? void 0 : fieldData.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD) != undefined) {
296
+ const mergedFrom = fieldData.properties.mergedFrom;
297
+ const descriptionField = `${fieldData.properties.ENTITYNAME}.${fieldData.properties.DESCRIPTIONFIELD}`;
298
+ const descriptionColumn = {
299
+ label: fieldData.properties.DESCRIPTIONENTITY,
300
+ id: `${mergedFrom ? (mergedFrom + ".") : ""}${descriptionField}`,
301
+ width: column.width,
302
+ type: DataType.TEXT,
303
+ userInterface: UserInterface$1.LONGTEXT,
304
+ descriptionFrom: fieldData.name
305
+ };
323
306
  columnsMetadata.push(descriptionColumn);
307
+ }
324
308
  }
325
309
  return columnsMetadata || [];
326
310
  }
327
- getWidthByMetaData(maxWidth, widthCod, widthDescription) {
328
- const totalCurrentWidth = widthCod + widthDescription;
329
- const codPercentage = widthCod / totalCurrentWidth;
330
- const descPercentage = widthDescription / totalCurrentWidth;
331
- let newWidthCod = Math.round(maxWidth * codPercentage);
332
- let newWidthDescription = Math.round(maxWidth * descPercentage);
333
- if (newWidthCod > this.MAX_WIDTH_COD) {
334
- newWidthCod = this.MAX_WIDTH_COD;
335
- newWidthDescription = maxWidth - this.MAX_WIDTH_COD;
336
- }
337
- else if (newWidthCod < this.MIN_WIDTH_COD) {
338
- newWidthCod = this.MIN_WIDTH_COD;
339
- newWidthDescription = maxWidth - this.MIN_WIDTH_COD;
340
- }
341
- return {
342
- codWidth: newWidthCod,
343
- descWidth: newWidthDescription
344
- };
345
- }
346
311
  }
347
312
 
348
313
  class ClientSideExporterProvider extends CommonsExporter {
@@ -7058,7 +7058,7 @@ class DataFetcher {
7058
7058
  const requestId = StringUtils.generateUUID();
7059
7059
  DataFetcher.requestListener.forEach(listener => listener.onRequestStart({ url, requestBody: request, requestId }));
7060
7060
  try {
7061
- const response = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=UTF-8` });
7061
+ const response = await dist.batchRequests(url, request, { 'Content-Type': `application/json; charset=${window['SERVER_ENCODING'] || 'UTF-8'}` });
7062
7062
  response.forEach((resItem, index) => {
7063
7063
  var _a;
7064
7064
  if (((_a = resItem === null || resItem === void 0 ? void 0 : resItem.errors) === null || _a === void 0 ? void 0 : _a.length) > 0) {
@@ -282,20 +282,6 @@ class FormConfigFetcher extends ResourceFetcher {
282
282
  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 : [];
283
283
  return { emptyConfig: false, fields: Array.isArray(rawFields) ? rawFields : [rawFields] };
284
284
  }
285
- async fetchLayoutFormConfig(configName) {
286
- const payload = { 'requestBody': { 'config': { 'chave': configName, 'tipo': 'T' } } };
287
- const response = await DataFetcher.get().callServiceBroker('SystemUtilsSP.getConf', JSON.stringify(payload));
288
- if (ObjectUtils.isEmpty(response))
289
- return undefined;
290
- return response.config;
291
- }
292
- async saveLayoutFormConfig(configName, config) {
293
- const payload = { 'requestBody': { 'config': Object.assign(Object.assign({}, config), { 'chave': configName, 'tipo': 'T' }) } };
294
- const response = await DataFetcher.get().callServiceBroker('SystemUtilsSP.saveConf', JSON.stringify(payload));
295
- if (ObjectUtils.isEmpty(response))
296
- return undefined;
297
- return response;
298
- }
299
285
  }
300
286
  var UserConfigType;
301
287
  (function (UserConfigType) {
@@ -42,7 +42,6 @@ export { SnkFormView as SnkFormView } from '../types/components/snk-crud/subcomp
42
42
  export { SnkGrid as SnkGrid } from '../types/components/snk-grid/snk-grid';
43
43
  export { SnkGridConfig as SnkGridConfig } from '../types/components/snk-grid-config/snk-grid-config';
44
44
  export { SnkGuidesViewer as SnkGuidesViewer } from '../types/components/snk-crud/subcomponents/snk-guides-viewer';
45
- export { SnkLayoutFormConfig as SnkLayoutFormConfig } from '../types/components/snk-layout-form-config/snk-layout-form-config';
46
45
  export { SnkPersonalizedFilter as SnkPersonalizedFilter } from '../types/components/snk-personalized-filter/snk-personalized-filter';
47
46
  export { SnkFilterPersonalized as SnkPersonalizedFilterEditor } from '../types/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor';
48
47
  export { SnkPesquisa as SnkPesquisa } from '../types/components/snk-pesquisa/snk-pesquisa';
@@ -53,7 +52,6 @@ export { SnkSimpleCrud as SnkSimpleCrud } from '../types/components/snk-simple-c
53
52
  export { SnkSimpleFormConfig as SnkSimpleFormConfig } from '../types/components/snk-simple-form-config/snk-simple-form-config';
54
53
  export { SnkTabConfig as SnkTabConfig } from '../types/components/snk-form-config/subcomponents/snk-tab-config/snk-tab-config';
55
54
  export { SnkTaskbar as SnkTaskbar } from '../types/components/snk-taskbar/snk-taskbar';
56
- export { SnkViewRepresentation as SnkViewRepresentation } from '../types/components/snk-layout-form-config/snk-view-representation/snk-view-representation';
57
55
  export { TaskbarActionsButton as TaskbarActionsButton } from '../types/components/snk-taskbar/elements/taskbar-actions-button/taskbar-actions-button';
58
56
  export { TestePesquisa as TestePesquisa } from '../types/components/teste-pesquisa/teste-pesquisa';
59
57
 
@@ -42,7 +42,6 @@ export { SnkFormView, defineCustomElement as defineCustomElementSnkFormView } fr
42
42
  export { SnkGrid, defineCustomElement as defineCustomElementSnkGrid } from './snk-grid.js';
43
43
  export { SnkGridConfig, defineCustomElement as defineCustomElementSnkGridConfig } from './snk-grid-config.js';
44
44
  export { SnkGuidesViewer, defineCustomElement as defineCustomElementSnkGuidesViewer } from './snk-guides-viewer.js';
45
- export { SnkLayoutFormConfig, defineCustomElement as defineCustomElementSnkLayoutFormConfig } from './snk-layout-form-config.js';
46
45
  export { SnkPersonalizedFilter, defineCustomElement as defineCustomElementSnkPersonalizedFilter } from './snk-personalized-filter.js';
47
46
  export { SnkPersonalizedFilterEditor, defineCustomElement as defineCustomElementSnkPersonalizedFilterEditor } from './snk-personalized-filter-editor.js';
48
47
  export { SnkPesquisa, defineCustomElement as defineCustomElementSnkPesquisa } from './snk-pesquisa.js';
@@ -53,6 +52,5 @@ export { SnkSimpleCrud, defineCustomElement as defineCustomElementSnkSimpleCrud
53
52
  export { SnkSimpleFormConfig, defineCustomElement as defineCustomElementSnkSimpleFormConfig } from './snk-simple-form-config.js';
54
53
  export { SnkTabConfig, defineCustomElement as defineCustomElementSnkTabConfig } from './snk-tab-config.js';
55
54
  export { SnkTaskbar, defineCustomElement as defineCustomElementSnkTaskbar } from './snk-taskbar.js';
56
- export { SnkViewRepresentation, defineCustomElement as defineCustomElementSnkViewRepresentation } from './snk-view-representation.js';
57
55
  export { TaskbarActionsButton, defineCustomElement as defineCustomElementTaskbarActionsButton } from './taskbar-actions-button.js';
58
56
  export { TestePesquisa, defineCustomElement as defineCustomElementTestePesquisa } from './teste-pesquisa.js';
@@ -8,8 +8,6 @@ import { P as PreloadManager, D as DataUnitFetcher } from './dataunit-fetcher.js
8
8
  import { a as PesquisaFetcher } from './ISave.js';
9
9
  import { S as SnkMessageBuilder } from './SnkMessageBuilder.js';
10
10
  import { T as TEMPLATES_SKELETON } from './constants.js';
11
- import './filter-item-type.enum.js';
12
- import { F as FormConfigFetcher } from './form-config-fetcher.js';
13
11
  import { d as defineCustomElement$3 } from './pesquisa-grid2.js';
14
12
  import { d as defineCustomElement$2 } from './pesquisa-tree2.js';
15
13
  import { d as defineCustomElement$1 } from './snk-pesquisa2.js';
@@ -379,32 +377,6 @@ class RequestListenerFactory {
379
377
  }
380
378
  }
381
379
 
382
- class LayoutFormConfig {
383
- constructor() {
384
- this._config = null;
385
- this.listeners = [];
386
- }
387
- static getInstance() {
388
- if (!LayoutFormConfig.instance) {
389
- LayoutFormConfig.instance = new LayoutFormConfig();
390
- }
391
- return LayoutFormConfig.instance;
392
- }
393
- get config() {
394
- return this._config;
395
- }
396
- setConfig(newConfig) {
397
- this._config = newConfig;
398
- this.notifyListeners();
399
- }
400
- onConfigChange(listener) {
401
- this.listeners.push(listener);
402
- }
403
- notifyListeners() {
404
- this.listeners.forEach(listener => listener(this._config));
405
- }
406
- }
407
-
408
380
  const snkApplicationCss = ".sc-snk-application-h{--scrim-z-index:var(--elevation--100, 100);display:flex;flex-direction:column;height:100%}.sc-snk-application-h>.loading-hidden.sc-snk-application{display:none;pointer-events:none}.skeleton-content-left.sc-snk-application{width:300px;padding-right:5px}.skeleton-content.sc-snk-application{height:calc(100vh - 310px)}.spinner.sc-snk-application{height:100vh;gap:10px}.spinner.sc-snk-application>.spin.sc-snk-application{animation-name:spin;animation-duration:5000ms;animation-iteration-count:infinite;animation-timing-function:linear}@keyframes spin{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}";
409
381
 
410
382
  const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
@@ -425,8 +397,6 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
425
397
  this._pendingActions = new Map;
426
398
  this._loadPkParameter = null;
427
399
  this._isLoadedByPk = false;
428
- this._formConfigFetcher = new FormConfigFetcher();
429
- this._LayoutFormConfigSingleton = LayoutFormConfig.getInstance();
430
400
  this._applicationReady = false;
431
401
  this._templateSkeleton = TEMPLATES_SKELETON.GRID;
432
402
  this._activeScrimWindow = false;
@@ -501,14 +471,6 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
501
471
  async getKeyboardManager() {
502
472
  return Promise.resolve(this._keyboardManager);
503
473
  }
504
- /**
505
- * Obtém o notificador de Layout de formulario.
506
- *
507
- * @return {LayoutFormConfig} the Configurador de Layout do Formulario
508
- */
509
- async getLayoutFormConfig() {
510
- return Promise.resolve(this._LayoutFormConfigSingleton);
511
- }
512
474
  /**
513
475
  * Obtém `true` caso o usuário logado seja o SUP.
514
476
  */
@@ -1422,12 +1384,6 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1422
1384
  ConfigStorage.preload(this.applicationResourceID, this.configName, legacyConfig);
1423
1385
  document.addEventListener("click", () => Workspace.applicationClick());
1424
1386
  this._waitingAppReady.forEach(resolve => resolve());
1425
- this.setLayoutFormConfig();
1426
- }
1427
- async setLayoutFormConfig() {
1428
- const response = await this._formConfigFetcher.fetchLayoutFormConfig('formColCfg.' + this.applicationResourceID);
1429
- const config = isNaN(Number(response === null || response === void 0 ? void 0 : response.config)) ? null : Number(response === null || response === void 0 ? void 0 : response.config);
1430
- this._LayoutFormConfigSingleton.setConfig(config);
1431
1387
  }
1432
1388
  connectedCallback() {
1433
1389
  this._isBrowserTypeElectron = UserAgentUtils.isElectron();
@@ -1608,7 +1564,6 @@ const SnkApplication = /*@__PURE__*/ proxyCustomElement(class extends HTMLElemen
1608
1564
  "_templateSkeleton": [32],
1609
1565
  "_activeScrimWindow": [32],
1610
1566
  "getKeyboardManager": [64],
1611
- "getLayoutFormConfig": [64],
1612
1567
  "isUserSup": [64],
1613
1568
  "addPendingAction": [64],
1614
1569
  "callServiceBroker": [64],
@@ -7,19 +7,17 @@ import './filter-item-type.enum.js';
7
7
  import './form-config-fetcher.js';
8
8
  import { V as VIEW_MODE } from './constants.js';
9
9
  import { A as AutorizationType } from './auth-fetcher.js';
10
- import { T as TaskbarElement, d as defineCustomElement$3 } from './snk-taskbar2.js';
11
- import { d as defineCustomElement$e } from './snk-actions-button2.js';
12
- import { d as defineCustomElement$d } from './snk-configurator2.js';
13
- import { d as defineCustomElement$c } from './snk-data-exporter2.js';
14
- import { d as defineCustomElement$b } from './snk-data-unit2.js';
15
- import { d as defineCustomElement$a } from './snk-exporter-email-sender2.js';
16
- import { d as defineCustomElement$9 } from './snk-grid-config2.js';
17
- import { d as defineCustomElement$8 } from './snk-layout-form-config2.js';
18
- import { d as defineCustomElement$7 } from './snk-select-box2.js';
19
- import { d as defineCustomElement$6 } from './snk-simple-bar2.js';
20
- import { d as defineCustomElement$5 } from './snk-simple-crud2.js';
21
- import { d as defineCustomElement$4 } from './snk-simple-form-config2.js';
22
- import { d as defineCustomElement$2 } from './snk-view-representation2.js';
10
+ import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
11
+ import { d as defineCustomElement$c } from './snk-actions-button2.js';
12
+ import { d as defineCustomElement$b } from './snk-configurator2.js';
13
+ import { d as defineCustomElement$a } from './snk-data-exporter2.js';
14
+ import { d as defineCustomElement$9 } from './snk-data-unit2.js';
15
+ import { d as defineCustomElement$8 } from './snk-exporter-email-sender2.js';
16
+ import { d as defineCustomElement$7 } from './snk-grid-config2.js';
17
+ import { d as defineCustomElement$6 } from './snk-select-box2.js';
18
+ import { d as defineCustomElement$5 } from './snk-simple-bar2.js';
19
+ import { d as defineCustomElement$4 } from './snk-simple-crud2.js';
20
+ import { d as defineCustomElement$3 } from './snk-simple-form-config2.js';
23
21
  import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
24
22
 
25
23
  const SERVICE$1 = {
@@ -871,7 +869,7 @@ function defineCustomElement() {
871
869
  if (typeof customElements === "undefined") {
872
870
  return;
873
871
  }
874
- const components = ["snk-attach", "snk-actions-button", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-grid-config", "snk-layout-form-config", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "snk-view-representation", "taskbar-actions-button"];
872
+ const components = ["snk-attach", "snk-actions-button", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-grid-config", "snk-select-box", "snk-simple-bar", "snk-simple-crud", "snk-simple-form-config", "snk-taskbar", "taskbar-actions-button"];
875
873
  components.forEach(tagName => { switch (tagName) {
876
874
  case "snk-attach":
877
875
  if (!customElements.get(tagName)) {
@@ -879,66 +877,56 @@ function defineCustomElement() {
879
877
  }
880
878
  break;
881
879
  case "snk-actions-button":
882
- if (!customElements.get(tagName)) {
883
- defineCustomElement$e();
884
- }
885
- break;
886
- case "snk-configurator":
887
- if (!customElements.get(tagName)) {
888
- defineCustomElement$d();
889
- }
890
- break;
891
- case "snk-data-exporter":
892
880
  if (!customElements.get(tagName)) {
893
881
  defineCustomElement$c();
894
882
  }
895
883
  break;
896
- case "snk-data-unit":
884
+ case "snk-configurator":
897
885
  if (!customElements.get(tagName)) {
898
886
  defineCustomElement$b();
899
887
  }
900
888
  break;
901
- case "snk-exporter-email-sender":
889
+ case "snk-data-exporter":
902
890
  if (!customElements.get(tagName)) {
903
891
  defineCustomElement$a();
904
892
  }
905
893
  break;
906
- case "snk-grid-config":
894
+ case "snk-data-unit":
907
895
  if (!customElements.get(tagName)) {
908
896
  defineCustomElement$9();
909
897
  }
910
898
  break;
911
- case "snk-layout-form-config":
899
+ case "snk-exporter-email-sender":
912
900
  if (!customElements.get(tagName)) {
913
901
  defineCustomElement$8();
914
902
  }
915
903
  break;
916
- case "snk-select-box":
904
+ case "snk-grid-config":
917
905
  if (!customElements.get(tagName)) {
918
906
  defineCustomElement$7();
919
907
  }
920
908
  break;
921
- case "snk-simple-bar":
909
+ case "snk-select-box":
922
910
  if (!customElements.get(tagName)) {
923
911
  defineCustomElement$6();
924
912
  }
925
913
  break;
926
- case "snk-simple-crud":
914
+ case "snk-simple-bar":
927
915
  if (!customElements.get(tagName)) {
928
916
  defineCustomElement$5();
929
917
  }
930
918
  break;
931
- case "snk-simple-form-config":
919
+ case "snk-simple-crud":
932
920
  if (!customElements.get(tagName)) {
933
921
  defineCustomElement$4();
934
922
  }
935
923
  break;
936
- case "snk-taskbar":
924
+ case "snk-simple-form-config":
937
925
  if (!customElements.get(tagName)) {
938
926
  defineCustomElement$3();
939
927
  }
940
928
  break;
941
- case "snk-view-representation":
929
+ case "snk-taskbar":
942
930
  if (!customElements.get(tagName)) {
943
931
  defineCustomElement$2();
944
932
  }
@@ -2,8 +2,6 @@ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/i
2
2
  import { ApplicationContext } from '@sankhyalabs/core';
3
3
  import { V as VIEW_MODE } from './constants.js';
4
4
  import { A as AuthorizationConfig } from './AuthorizationConfig.js';
5
- import { d as defineCustomElement$2 } from './snk-layout-form-config2.js';
6
- import { d as defineCustomElement$1 } from './snk-view-representation2.js';
7
5
 
8
6
  const snkConfiguratorCss = ".sc-snk-configurator-h{--snk-configurator__button-close--padding-left:var(--space--medium, 12px);--snk-configurator__title--color:var(--title--primary, #2B3A54);--snk-configurator__title--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__title--font-size:var(--title--large, 20px);--snk-configurator__title--font-weight:var(--text-weight--extra-large, 700);--snk-configurator__subtitle--color:var(--title--primary, #2B3A54);--snk-configurator__subtitle--font-family:var(--font-pattern, \"Roboto\");--snk-configurator__subtitle--font-size:var(--text--medium, 14px);--snk-configurator__subtitle--font-weight:var(--text-weight--large, 600);--snk-configurator__scrollbar--color-default:var(--scrollbar--default, #626e82);--snk-configurator__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--snk-configurator__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--snk-configurator__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--snk-configurator__scrollbar--border-radius:var(--border--radius-small, 6px);--snk-configurator__scrollbar--width:var(--space--small, 6px)}.snk-configurator.sc-snk-configurator{display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}.snk-configurator__collsable-box-action.sc-snk-configurator{width:100%}.snk-configurator__action-buttons.sc-snk-configurator{display:flex;flex-direction:row;justify-content:flex-end;gap:var(--space--medium)}.snk-configurator__outline.sc-snk-configurator{display:flex;flex-direction:column;gap:var(--space--small);margin-top:var(--space--small);margin-bottom:var(--space--large)}@media screen and (min-width: 480px){.snk-configurator.sc-snk-configurator{width:359px;max-width:359px}}.snk-configurator__button-config.sc-snk-configurator{--ez-button--min-width:100%}.snk-configurator__header.sc-snk-configurator{display:flex;justify-content:space-between;align-items:center;width:100%}.snk-configurator__title.sc-snk-configurator{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-configurator__title--color);font-size:var(--snk-configurator__title--font-size);font-family:var(--snk-configurator__title--font-family);font-weight:var(--snk-configurator__title--font-weight)}.snk-configurator__subtitle.sc-snk-configurator{display:flex;margin:0;padding-top:var(--space--medium);padding-bottom:var(--space--small);color:var(--snk-configurator__subtitle--color);font-size:var(--snk-configurator__subtitle--font-size);font-family:var(--snk-configurator__subtitle--font-family);font-weight:var(--snk-configurator__subtitle--font-weight)}.snk-configurator__button-close.sc-snk-configurator{padding-left:var(--snk-configurator__button-close--padding-left)}.snk-configurator__main.sc-snk-configurator{overflow-y:auto;scrollbar-width:thin;margin:var(--space--medium) 0;scrollbar-color:var(--snk-configurator__scrollbar--color-clicked) var(--snk-configurator__scrollbar--color-background)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar{background-color:var(--snk-configurator__scrollbar--color-background);width:var(--snk-configurator__scrollbar--width);max-width:var(--snk-configurator__scrollbar--width);min-width:var(--snk-configurator__scrollbar--width)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-track{background-color:var(--snk-configurator__scrollbar--color-background);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb{background-color:var(--snk-configurator__scrollbar--color-default);border-radius:var(--snk-configurator__scrollbar--border-radius)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:hover,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--snk-configurator__scrollbar--color-hover)}.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:vertical:active,.snk-configurator__main.sc-snk-configurator::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--snk-configurator__scrollbar--color-clicked)}";
9
7
 
@@ -22,7 +20,6 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
22
20
  this.resourceID = undefined;
23
21
  this.viewMode = VIEW_MODE.GRID;
24
22
  this.customContainerId = undefined;
25
- this.layoutFormConfig = false;
26
23
  this.messagesBuilder = undefined;
27
24
  }
28
25
  /**
@@ -83,12 +80,6 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
83
80
  var _a;
84
81
  return (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage(key, {});
85
82
  }
86
- handleSave() {
87
- if (this.layoutFormConfig) {
88
- this._snkLayoutFormConfig.save();
89
- }
90
- this.save.emit();
91
- }
92
83
  componentWillLoad() {
93
84
  this._application = ApplicationContext.getContextValue('__SNK__APPLICATION__');
94
85
  if (this._application) {
@@ -112,7 +103,7 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
112
103
  insideCustomElementsContainer === null || insideCustomElementsContainer === void 0 ? void 0 : insideCustomElementsContainer.appendChild(configuratorCustomElement);
113
104
  }
114
105
  render() {
115
- 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" }))))));
106
+ 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" }))))));
116
107
  }
117
108
  get _element() { return this; }
118
109
  static get style() { return snkConfiguratorCss; }
@@ -122,7 +113,6 @@ const SnkConfigurator = /*@__PURE__*/ proxyCustomElement(class extends HTMLEleme
122
113
  "resourceID": [1, "resource-i-d"],
123
114
  "viewMode": [2, "view-mode"],
124
115
  "customContainerId": [1, "custom-container-id"],
125
- "layoutFormConfig": [4, "layout-form-config"],
126
116
  "messagesBuilder": [1040],
127
117
  "_opened": [32],
128
118
  "_permissions": [32],
@@ -133,23 +123,13 @@ function defineCustomElement() {
133
123
  if (typeof customElements === "undefined") {
134
124
  return;
135
125
  }
136
- const components = ["snk-configurator", "snk-layout-form-config", "snk-view-representation"];
126
+ const components = ["snk-configurator"];
137
127
  components.forEach(tagName => { switch (tagName) {
138
128
  case "snk-configurator":
139
129
  if (!customElements.get(tagName)) {
140
130
  customElements.define(tagName, SnkConfigurator);
141
131
  }
142
132
  break;
143
- case "snk-layout-form-config":
144
- if (!customElements.get(tagName)) {
145
- defineCustomElement$2();
146
- }
147
- break;
148
- case "snk-view-representation":
149
- if (!customElements.get(tagName)) {
150
- defineCustomElement$1();
151
- }
152
- break;
153
133
  } });
154
134
  }
155
135