@sankhyalabs/sankhyablocks 10.1.0-dev.56 → 10.1.0-dev.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. package/dist/cjs/{ConfigStorage-a28eceb2.js → ConfigStorage-156bfcac.js} +2 -2
  2. package/dist/cjs/{DataFetcher-98d95e8f.js → DataFetcher-d13b4637.js} +12 -0
  3. package/dist/cjs/{ISave-a9815bb3.js → ISave-55d9dcc3.js} +1 -1
  4. package/dist/cjs/{SnkFormConfigManager-af47ba2f.js → SnkFormConfigManager-5cb9a39c.js} +2 -2
  5. package/dist/cjs/{SnkMultiSelectionListDataSource-2691125d.js → SnkMultiSelectionListDataSource-8d426f44.js} +15 -7
  6. package/dist/cjs/{auth-fetcher-9c257a1f.js → auth-fetcher-d1715459.js} +1 -1
  7. package/dist/cjs/{dataunit-fetcher-afc246d8.js → dataunit-fetcher-fae710c5.js} +1 -1
  8. package/dist/cjs/{form-config-fetcher-1ce4125c.js → form-config-fetcher-bbebdcb8.js} +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +4 -4
  11. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  12. package/dist/cjs/snk-actions-button_9.cjs.entry.js +8 -8
  13. package/dist/cjs/snk-application.cjs.entry.js +6 -6
  14. package/dist/cjs/snk-attach_11.cjs.entry.js +12 -10
  15. package/dist/cjs/snk-crud.cjs.entry.js +12 -8
  16. package/dist/cjs/snk-data-exporter.cjs.entry.js +5 -5
  17. package/dist/cjs/{snk-data-unit-ab570f87.js → snk-data-unit-32237a2d.js} +2 -2
  18. package/dist/cjs/snk-data-unit.cjs.entry.js +3 -3
  19. package/dist/cjs/snk-detail-view.cjs.entry.js +7 -7
  20. package/dist/cjs/snk-dynaform-detail-view_2.cjs.entry.js +31 -8
  21. package/dist/cjs/{snk-dynaform-guides-view-30ce5a8c.js → snk-dynaform-guides-view-c956fdd4.js} +388 -41
  22. package/dist/cjs/snk-dynaform-guides-view.cjs.entry.js +4 -4
  23. package/dist/cjs/snk-dynaform.cjs.entry.js +12 -8
  24. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +4 -4
  25. package/dist/cjs/snk-form_2.cjs.entry.js +4 -4
  26. package/dist/cjs/snk-grid.cjs.entry.js +6 -6
  27. package/dist/cjs/{snk-guides-viewer-2a55fa3a.js → snk-guides-viewer-727cc1b6.js} +1 -1
  28. package/dist/cjs/snk-guides-viewer.cjs.entry.js +5 -5
  29. package/dist/cjs/snk-layout-form-config.cjs.entry.js +4 -4
  30. package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
  31. package/dist/cjs/{taskbarUtils-4ca4235e.js → taskbarUtils-be0fb299.js} +9 -4
  32. package/dist/collection/components/snk-actions-button/snk-actions-button.js +3 -3
  33. package/dist/collection/components/snk-crud/snk-crud.css +9 -4
  34. package/dist/collection/components/snk-crud/snk-crud.js +5 -1
  35. package/dist/collection/components/snk-crud/utils/taskbarUtils.js +5 -0
  36. package/dist/collection/components/snk-data-exporter/interfaces/IExporterProvider.js +11 -3
  37. package/dist/collection/components/snk-dynaform/snk-dynaform.css +9 -4
  38. package/dist/collection/components/snk-dynaform/snk-dynaform.js +5 -1
  39. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.css +71 -1
  40. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.js +23 -0
  41. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.css +35 -1
  42. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.js +3 -1
  43. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.css +229 -6
  44. package/dist/collection/components/snk-dynaform/subcomponents/snk-dynaform-guides-view/snk-dynaform-guides-view.js +458 -38
  45. package/dist/collection/components/snk-dynaform-form-config/SnkFormConfigManager.js +8 -1
  46. package/dist/collection/components/snk-filter-bar/snk-filter-bar.js +1 -1
  47. package/dist/collection/lib/message/resources/en-us/snk-crud.msg.js +4 -0
  48. package/dist/collection/lib/message/resources/es-es/snk-crud.msg.js +4 -0
  49. package/dist/collection/lib/message/resources/pt-br/snk-crud.msg.js +4 -0
  50. package/dist/components/ContinuousInsertUtils.js +11 -3
  51. package/dist/components/SnkMessageBuilder.js +12 -0
  52. package/dist/components/snk-actions-button2.js +3 -3
  53. package/dist/components/snk-crud.js +6 -2
  54. package/dist/components/snk-dynaform-detail-view2.js +419 -41
  55. package/dist/components/snk-dynaform-form-view2.js +4 -2
  56. package/dist/components/snk-dynaform.js +6 -2
  57. package/dist/components/snk-filter-bar2.js +1 -1
  58. package/dist/components/taskbarUtils.js +5 -0
  59. package/dist/esm/{ConfigStorage-346d781d.js → ConfigStorage-0d1c0695.js} +2 -2
  60. package/dist/esm/{DataFetcher-7d8df5a2.js → DataFetcher-70de9419.js} +12 -0
  61. package/dist/esm/{ISave-2117075a.js → ISave-f5704813.js} +1 -1
  62. package/dist/esm/{SnkFormConfigManager-066d370b.js → SnkFormConfigManager-e7f05f79.js} +2 -2
  63. package/dist/esm/{SnkMultiSelectionListDataSource-056ede43.js → SnkMultiSelectionListDataSource-eefb24b4.js} +15 -7
  64. package/dist/esm/{auth-fetcher-5891e22c.js → auth-fetcher-e34880e5.js} +1 -1
  65. package/dist/esm/{dataunit-fetcher-5dcb0e89.js → dataunit-fetcher-d26e4a08.js} +1 -1
  66. package/dist/esm/{form-config-fetcher-8e2082f3.js → form-config-fetcher-98c42169.js} +1 -1
  67. package/dist/esm/loader.js +1 -1
  68. package/dist/esm/pesquisa-grid_2.entry.js +4 -4
  69. package/dist/esm/sankhyablocks.js +1 -1
  70. package/dist/esm/snk-actions-button_9.entry.js +8 -8
  71. package/dist/esm/snk-application.entry.js +6 -6
  72. package/dist/esm/snk-attach_11.entry.js +12 -10
  73. package/dist/esm/snk-crud.entry.js +12 -8
  74. package/dist/esm/snk-data-exporter.entry.js +5 -5
  75. package/dist/esm/{snk-data-unit-f697345b.js → snk-data-unit-ff57ac90.js} +2 -2
  76. package/dist/esm/snk-data-unit.entry.js +3 -3
  77. package/dist/esm/snk-detail-view.entry.js +7 -7
  78. package/dist/esm/snk-dynaform-detail-view_2.entry.js +31 -8
  79. package/dist/esm/{snk-dynaform-guides-view-6aae38f7.js → snk-dynaform-guides-view-9977a60e.js} +389 -42
  80. package/dist/esm/snk-dynaform-guides-view.entry.js +4 -4
  81. package/dist/esm/snk-dynaform.entry.js +12 -8
  82. package/dist/esm/snk-filter-bar_4.entry.js +4 -4
  83. package/dist/esm/snk-form_2.entry.js +4 -4
  84. package/dist/esm/snk-grid.entry.js +6 -6
  85. package/dist/esm/{snk-guides-viewer-3ea7e312.js → snk-guides-viewer-d512dc7a.js} +1 -1
  86. package/dist/esm/snk-guides-viewer.entry.js +5 -5
  87. package/dist/esm/snk-layout-form-config.entry.js +4 -4
  88. package/dist/esm/snk-pesquisa.entry.js +4 -4
  89. package/dist/esm/{taskbarUtils-a43e4bba.js → taskbarUtils-c08efdbb.js} +9 -4
  90. package/dist/sankhyablocks/{p-3190ac29.js → p-097d75b3.js} +2 -2
  91. package/dist/sankhyablocks/{p-aa9d61fa.entry.js → p-12579574.entry.js} +1 -1
  92. package/dist/sankhyablocks/p-1567aaf9.entry.js +1 -0
  93. package/dist/sankhyablocks/p-2a83f20e.entry.js +1 -0
  94. package/dist/sankhyablocks/{p-5a8390f9.entry.js → p-30570022.entry.js} +1 -1
  95. package/dist/sankhyablocks/p-33f84e69.entry.js +1 -0
  96. package/dist/sankhyablocks/p-4299bcbb.js +1 -0
  97. package/dist/sankhyablocks/{p-10d883b0.js → p-4dd574d6.js} +1 -1
  98. package/dist/sankhyablocks/{p-c5889dae.js → p-59717928.js} +1 -1
  99. package/dist/sankhyablocks/{p-7e63af25.entry.js → p-62601ac6.entry.js} +1 -1
  100. package/dist/sankhyablocks/p-64f14e9c.entry.js +1 -0
  101. package/dist/sankhyablocks/{p-b3762105.entry.js → p-69f1b522.entry.js} +1 -1
  102. package/dist/sankhyablocks/{p-ee192f06.entry.js → p-711508e7.entry.js} +1 -1
  103. package/dist/sankhyablocks/p-75f261aa.js +1 -0
  104. package/dist/sankhyablocks/{p-95777c35.entry.js → p-8be9d886.entry.js} +1 -1
  105. package/dist/sankhyablocks/{p-c1e168a2.js → p-8d1ef77a.js} +1 -1
  106. package/dist/sankhyablocks/{p-13f91e7e.js → p-8d81c8d3.js} +1 -1
  107. package/dist/sankhyablocks/p-9a0e5bdf.js +1 -0
  108. package/dist/sankhyablocks/{p-741f1ad0.entry.js → p-9b5c9387.entry.js} +1 -1
  109. package/dist/sankhyablocks/p-9e02a785.js +1 -0
  110. package/dist/sankhyablocks/{p-c6b6567f.entry.js → p-a9330ce9.entry.js} +1 -1
  111. package/dist/sankhyablocks/{p-6f2de911.entry.js → p-af58b0d9.entry.js} +1 -1
  112. package/dist/sankhyablocks/{p-3630a5ae.entry.js → p-c4b34e2b.entry.js} +1 -1
  113. package/dist/sankhyablocks/{p-8d513b64.js → p-c9440c8a.js} +1 -1
  114. package/dist/sankhyablocks/{p-58e0f14b.entry.js → p-d10df418.entry.js} +1 -1
  115. package/dist/sankhyablocks/{p-4a53fbeb.entry.js → p-d622b92c.entry.js} +1 -1
  116. package/dist/sankhyablocks/{p-7827871d.entry.js → p-d8361914.entry.js} +1 -1
  117. package/dist/sankhyablocks/{p-e91bd00e.js → p-eac48627.js} +1 -1
  118. package/dist/sankhyablocks/{p-d7657667.js → p-ec7c87bb.js} +1 -1
  119. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  120. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-detail-view/snk-dynaform-detail-view.d.ts +11 -0
  121. package/dist/types/components/snk-dynaform/subcomponents/snk-dynaform-form-view/snk-dynaform-form-view.d.ts +1 -0
  122. package/dist/types/components.d.ts +32 -0
  123. package/package.json +1 -1
  124. package/dist/sankhyablocks/p-1bc6849e.js +0 -1
  125. package/dist/sankhyablocks/p-3cc67d50.entry.js +0 -1
  126. package/dist/sankhyablocks/p-5c8217fa.entry.js +0 -1
  127. package/dist/sankhyablocks/p-a8a93568.entry.js +0 -1
  128. package/dist/sankhyablocks/p-acd3adf9.entry.js +0 -1
  129. package/dist/sankhyablocks/p-c3bc693a.js +0 -1
  130. package/dist/sankhyablocks/p-ed1b1b14.js +0 -1
  131. package/dist/sankhyablocks/p-fb3e17ff.js +0 -1
@@ -184,7 +184,9 @@ export class SnkFormConfigManager {
184
184
  return config;
185
185
  }
186
186
  config = this.getFormConfig(this._dataUnit, false, true);
187
- config.tabs = this.parseObjectList(config.tabs);
187
+ const previousTabs = this.parseObjectList(config.tabs)
188
+ .map(tab => (Object.assign(Object.assign({}, tab), { visible: true })));
189
+ config.tabs = [];
188
190
  config.emptyConfig = false;
189
191
  config.defaultConfiguration = true;
190
192
  const fields = (_b = (_a = this._dataUnit.metadata) === null || _a === void 0 ? void 0 : _a.fields) !== null && _b !== void 0 ? _b : [];
@@ -207,6 +209,11 @@ export class SnkFormConfigManager {
207
209
  field.tab = uiTabName;
208
210
  }
209
211
  }
212
+ for (const prevTab of previousTabs) {
213
+ if (!config.tabs.some(t => t.name === prevTab.name)) {
214
+ config.tabs.push(prevTab);
215
+ }
216
+ }
210
217
  return config;
211
218
  }
212
219
  }
@@ -543,7 +543,7 @@ export class SnkFilterBar {
543
543
  if (this.mode !== "regular") {
544
544
  return (h(Host, { "data-mode": this.mode }, this.getPersonalizedFilterVariableItems(), (this.mode === 'button' && !this.hideFilterButton) && (h("ez-button", { variant: "secondary", mode: "icon", iconName: "filter", class: "ez-margin-left--medium ez-margin-top--extra-small", size: "small", onClick: this.showFilterModal.bind(this) })), h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
545
545
  }
546
- return (h(Host, null, h("div", null, h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked, scrollAmount: 100, navigationMode: "buttons" }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), !this.hideFilterButton &&
546
+ return (h(Host, null, h("div", null, this.title && h("span", { class: "snk-filter-bar__title", title: this.title, "data-tooltip": this.title, "data-flow": "bottom" }, this.title)), h("ez-scroller", { class: "snk-filter-bar__scroller", direction: EzScrollDirection.HORIZONTAL, activeShadow: true, locked: this.scrollerLocked, scrollAmount: 100, navigationMode: "buttons" }, h("section", { class: "snk-filter-bar__filter-item-container" }, this.getFilterItems())), !this.hideFilterButton &&
547
547
  h("ez-button", { variant: "secondary", mode: "icon", iconName: "filter", class: "ez-padding-left--medium ez-margin-top--extra-small", size: "small", onClick: this.showFilterModal.bind(this) }, h("ez-icon", { slot: "leftIcon", iconName: "plus", class: "ez-padding-right--small" })), h("snk-filter-modal", { opened: this.isFilterModalOpen, filterConfig: this.filterConfig, configName: this.configName, disablePersonalizedFilter: this.disablePersonalizedFilter, getMessage: (key, props) => this.getMessage(key, props), applyFilters: (filters) => this.applyFiltersFromModal(filters), closeModal: () => this.closeFilterModal(), addPersonalizedFilter: (isDefault) => this.addPersonalizedFilter(isDefault), editPersonalizedFilter: (id, isDefault) => this.editPersonalizedFilter(id, isDefault), deletePersonalizedFilter: (filter, configName, isDefault) => this.deletePersonalizedFilter(filter, FilterItemType.PERSONALIZED, configName, isDefault), filterCustomConfigInterceptor: this.filterCustomConfigInterceptor })));
548
548
  }
549
549
  static get is() { return "snk-filter-bar"; }
@@ -39,5 +39,9 @@ export const snkCrudMessages = {
39
39
  entitySearch: {
40
40
  label: "Search for records",
41
41
  placeholder: "Type what you are looking for here..."
42
+ },
43
+ master: {
44
+ expand: "Expand main form",
45
+ collapse: "Collapse"
42
46
  }
43
47
  };
@@ -39,5 +39,9 @@ export const snkCrudMessages = {
39
39
  entitySearch: {
40
40
  label: "Búsqueda de registros",
41
41
  placeholder: "Escribe lo que buscas aquí..."
42
+ },
43
+ master: {
44
+ expand: "Expandir formulario principal",
45
+ collapse: "Contraer"
42
46
  }
43
47
  };
@@ -39,5 +39,9 @@ export const snkCrudMessages = {
39
39
  entitySearch: {
40
40
  label: "Busca por registros",
41
41
  placeholder: "Digite o que você procura aqui..."
42
+ },
43
+ master: {
44
+ expand: "Expandir formulário principal",
45
+ collapse: "Recolher"
42
46
  }
43
47
  };
@@ -256,6 +256,7 @@ class CommonsExporter {
256
256
  var _a;
257
257
  const columnsMetadata = [];
258
258
  const searchPlusDescriptionIds = this.collectSearchPlusDescriptionIds(gridColumns);
259
+ const gridColumnsByName = new Map(gridColumns.map(column => [column.name, column]));
259
260
  for (const column of gridColumns) {
260
261
  if (this.isHiddenColumn(column)) {
261
262
  continue;
@@ -282,9 +283,16 @@ class CommonsExporter {
282
283
  };
283
284
  let descriptionColumn = isSearchField ? this.buildDescriptionColumn(fieldData, column) : undefined;
284
285
  if (descriptionColumn) {
285
- 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);
286
- columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
287
- 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) });
286
+ const realDescriptionColumn = gridColumnsByName.get(descriptionColumn.id);
287
+ if (realDescriptionColumn === null || realDescriptionColumn === void 0 ? void 0 : realDescriptionColumn.width) {
288
+ columnData = Object.assign(Object.assign({}, columnData), { width: Math.min(columnData.width, this.MAX_WIDTH_COD) });
289
+ descriptionColumn = Object.assign(Object.assign({}, descriptionColumn), { width: realDescriptionColumn.width, label: (descriptionColumn === null || descriptionColumn === void 0 ? void 0 : descriptionColumn.label) || (column === null || column === void 0 ? void 0 : column.label) });
290
+ }
291
+ else {
292
+ 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);
293
+ columnData = Object.assign(Object.assign({}, columnData), { width: newWidth === null || newWidth === void 0 ? void 0 : newWidth.codWidth });
294
+ 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) });
295
+ }
288
296
  }
289
297
  columnsMetadata.push(columnData);
290
298
  if (descriptionColumn)
@@ -197,6 +197,10 @@ const snkCrudMessages$2 = {
197
197
  entitySearch: {
198
198
  label: "Busca por registros",
199
199
  placeholder: "Digite o que você procura aqui..."
200
+ },
201
+ master: {
202
+ expand: "Expandir formulário principal",
203
+ collapse: "Recolher"
200
204
  }
201
205
  };
202
206
 
@@ -1077,6 +1081,10 @@ const snkCrudMessages$1 = {
1077
1081
  entitySearch: {
1078
1082
  label: "Search for records",
1079
1083
  placeholder: "Type what you are looking for here..."
1084
+ },
1085
+ master: {
1086
+ expand: "Expand main form",
1087
+ collapse: "Collapse"
1080
1088
  }
1081
1089
  };
1082
1090
 
@@ -1958,6 +1966,10 @@ const snkCrudMessages = {
1958
1966
  entitySearch: {
1959
1967
  label: "Búsqueda de registros",
1960
1968
  placeholder: "Escribe lo que buscas aquí..."
1969
+ },
1970
+ master: {
1971
+ expand: "Expandir formulario principal",
1972
+ collapse: "Contraer"
1961
1973
  }
1962
1974
  };
1963
1975
 
@@ -663,9 +663,9 @@ const SnkActionsButton = /*@__PURE__*/ proxyCustomElement(class extends HTMLElem
663
663
  var _a, _b;
664
664
  this._application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
665
665
  await this.loadParameters();
666
- const snkDataUnit = this._element.parentElement;
667
- this._dataUnit = snkDataUnit === null || snkDataUnit === void 0 ? void 0 : snkDataUnit.dataUnit;
668
- this._resourceID = snkDataUnit === null || snkDataUnit === void 0 ? void 0 : snkDataUnit.resourceID;
666
+ const snkTaskbar = this._element.closest('snk-taskbar');
667
+ this._dataUnit = snkTaskbar === null || snkTaskbar === void 0 ? void 0 : snkTaskbar.dataUnit;
668
+ this._resourceID = snkTaskbar === null || snkTaskbar === void 0 ? void 0 : snkTaskbar.resourceID;
669
669
  this._entityName = (_b = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.split('/')[2];
670
670
  if (this._resourceID == undefined) {
671
671
  this._resourceID = await ResourceIDUtils.getResourceID();
@@ -58,7 +58,7 @@ import { d as defineCustomElement$4 } from './snk-view-representation2.js';
58
58
  import { d as defineCustomElement$3 } from './taskbar-actions-button2.js';
59
59
  import { d as defineCustomElement$2 } from './taskbar-split-button2.js';
60
60
 
61
- const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%;overflow-y:auto;scrollbar-gutter:stable both-edges}snk-grid.sc-snk-crud{--snk-grid-padding:0 var(--space--6, 6px) var(--space--6, 6px) var(--space--6, 6px)}stack-item.sc-snk-crud.sc-snk-crud{display:grid;min-height:100%}.snk-crud__header.sc-snk-crud{margin-bottom:var(--space--10, 10px)}.snk-crud__grid-stack-item.sc-snk-crud{display:flex;flex-direction:column;height:100%;width:100%;padding:0 var(--space--2, 2px)}.snk-crud__header-top.sc-snk-crud{display:flex;justify-content:space-between;align-items:center;padding:var(--space--8, 8px);padding-top:var(--space--12, 12px)}.snk-crud__header-bottom.sc-snk-crud{display:flex;justify-content:space-between;align-items:center;padding:0 var(--space--8, 8px) 0 var(--space--6, 6px)}.snk-crud__header-bottom.sc-snk-crud>snk-taskbar.sc-snk-crud{padding-bottom:var(--space--8, 8px);margin-left:var(--space--12, 12px)}.snk-crud--hidden.sc-snk-crud{display:none !important}ez-record-navigation.sc-snk-crud,ez-grid-pagination.sc-snk-crud{margin-bottom:var(--space--8, 8px)}";
61
+ const snkCrudCss = ".sc-snk-crud-h{display:flex;flex-direction:column;height:100%;width:100%;overflow-y:auto;scrollbar-gutter:stable both-edges}snk-grid.sc-snk-crud{--snk-grid-padding:0 var(--space--6, 6px) var(--space--6, 6px) var(--space--6, 6px)}stack-item.sc-snk-crud.sc-snk-crud{display:grid;min-height:100%}.snk-crud__grid-stack-item.sc-snk-crud{display:flex;flex-direction:column;height:100%;width:100%;padding:0 var(--space--2, 2px)}.snk-crud__header-top.sc-snk-crud{display:flex;justify-content:space-between;align-items:center;padding:var(--space--8, 8px);padding-top:var(--space--12, 12px)}.snk-crud__header-bottom.sc-snk-crud{display:flex;justify-content:space-between;align-items:center;padding:0 var(--space--8, 8px) 0 var(--space--6, 6px)}.snk-crud__header-bottom.sc-snk-crud>snk-taskbar.sc-snk-crud{padding-bottom:var(--space--8, 8px);margin-left:var(--space--12, 12px)}.snk-crud--hidden.sc-snk-crud{display:none !important}.snk-crud__filter-bar--hidden.sc-snk-crud{display:none !important}snk-filter-bar.sc-snk-crud{padding-inline:var(--space--4, 4px)}ez-record-navigation.sc-snk-crud,ez-grid-pagination.sc-snk-crud{margin-bottom:var(--space--8, 8px)}";
62
62
 
63
63
  const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
64
64
  constructor() {
@@ -648,7 +648,11 @@ const SnkCrud$1 = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
648
648
  return;
649
649
  }
650
650
  this._snkDataUnit.ignoreSaveMessage = (this._currentViewMode === VIEW_MODE.GRID && !this.enableGridInsert);
651
- return (h(Host, null, h("header", { class: { 'snk-crud--hidden': !this._headerVisible, 'snk-crud__header': true } }, h("div", { class: "snk-crud__header-top" }, h("snk-taskbar", { "data-element-id": "grid_top", key: "snkGridTopTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, resourceID: this._resourceID, primaryButton: "INSERT", overflowStrategy: "hiddenItems", alignRigth: true, actionsList: this.getActionsList(), customActionsList: this.buildTaskbarCustomActionsList(), sizeButtons: 'medium' })), h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: "snk-grid__filter-bar ez-align--top", configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this._resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, mode: this._filterMode, hideFilterButton: true, sizeChips: 'default' })), h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'snk-crud__grid-stack-item' }, 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, multipleEditionEnabled: this.multipleEditionEnabled, paginationCounterMode: this.paginationCounterMode, hideHeader: true, hideGridTaskbar: true }, 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, customGuidesConfig: this.customGuidesConfig, 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, onFormConfigVisibilityChanged: evt => this._headerVisible = !evt.detail }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), this.renderCustomGuideSlots(), h("slot", { name: "SnkFormTaskBar" })))), h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName }), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, entityName: this._snkDataUnit.entityName, 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 }), this.renderDynamicSearch(), 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" }))));
651
+ return (h(Host, null, h("header", { class: { 'snk-crud--hidden': !this._headerVisible, 'snk-crud__header': true } }, h("div", { class: "snk-crud__header-top" }, h("snk-taskbar", { "data-element-id": "grid_top", key: "snkGridTopTaskbar", configName: this.configName, dataUnit: this._dataUnit, messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, resourceID: this._resourceID, primaryButton: "INSERT", overflowStrategy: "hiddenItems", alignRigth: true, actionsList: this.getActionsList(), customActionsList: this.buildTaskbarCustomActionsList(), sizeButtons: 'medium' })), h("snk-filter-bar", { ref: (ref) => this._snkFilterBar = ref, title: this.filterBarTitle, dataUnit: this._dataUnit, "data-element-id": "gridFilter", class: {
652
+ 'snk-grid__filter-bar': true,
653
+ 'ez-align--top': true,
654
+ 'snk-crud__filter-bar--hidden': this._currentViewMode !== VIEW_MODE.GRID
655
+ }, configName: this.configName, messagesBuilder: this.messagesBuilder, resourceID: this._resourceID, onConfigUpdated: evt => this.handleFilterConfigUpdated(evt.detail), disablePersonalizedFilter: this.disablePersonalizedFilter, filterBarLegacyConfigName: this.filterBarLegacyConfigName, autoLoad: this.autoLoad, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, mode: this._filterMode, hideFilterButton: true, sizeChips: 'default' })), h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "crud" }, h("stack-item", { class: 'snk-crud__grid-stack-item' }, 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, multipleEditionEnabled: this.multipleEditionEnabled, paginationCounterMode: this.paginationCounterMode, hideHeader: true, hideGridTaskbar: true }, 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, customGuidesConfig: this.customGuidesConfig, 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, onFormConfigVisibilityChanged: evt => this._headerVisible = !evt.detail }, h("slot", { name: "GUIDES_VIEWER_TASKBAR_CUSTOM_ELEMENTS" }), this.renderCustomGuideSlots(), h("slot", { name: "SnkFormTaskBar" })))), h("snk-attach", { ref: (ref) => this._snkAttach = ref, registerKey: this.attachmentRegisterKey, messagesBuilder: this.messagesBuilder, entityName: this._snkDataUnit.entityName }), h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, entityName: this._snkDataUnit.entityName, 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 }), this.renderDynamicSearch(), 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" }))));
652
656
  }
653
657
  get _element() { return this; }
654
658
  static get watchers() { return {