@sankhyalabs/sankhyablocks 0.0.0-bugfix-dev-KB-71072.1 → 0.0.0-bugfix-dev-KB-74246.2

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 (116) hide show
  1. package/dist/cjs/{ConfigStorage-f079f5fd.js → ConfigStorage-9b965af9.js} +1 -1
  2. package/dist/cjs/{ContinuousInsertUtils-64e47516.js → ContinuousInsertUtils-42636ac1.js} +2 -2
  3. package/dist/cjs/{SnkFormConfigManager-63369164.js → SnkFormConfigManager-46e90d8d.js} +8 -6
  4. package/dist/cjs/{auth-fetcher-4f853233.js → auth-fetcher-a78242d1.js} +1 -1
  5. package/dist/cjs/{form-config-fetcher-39397ac5.js → form-config-fetcher-91fba2b1.js} +37 -0
  6. package/dist/cjs/index-f9e81701.js +4 -4
  7. package/dist/cjs/loader.cjs.js +1 -1
  8. package/dist/cjs/{pesquisa-fetcher-a9bfeb22.js → pesquisa-fetcher-2ec4811b.js} +3 -0
  9. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  10. package/dist/cjs/{snk-actions-button_4.cjs.entry.js → snk-actions-button_5.cjs.entry.js} +91 -3
  11. package/dist/cjs/snk-application.cjs.entry.js +4 -4
  12. package/dist/cjs/snk-attach.cjs.entry.js +11 -7
  13. package/dist/cjs/snk-config-options_3.cjs.entry.js +3 -3
  14. package/dist/cjs/snk-crud.cjs.entry.js +3 -3
  15. package/dist/cjs/snk-data-exporter.cjs.entry.js +2 -2
  16. package/dist/cjs/snk-detail-view.cjs.entry.js +6 -6
  17. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +5 -3
  18. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +2 -2
  19. package/dist/cjs/snk-grid.cjs.entry.js +6 -5
  20. package/dist/cjs/{snk-guides-viewer-2139481c.js → snk-guides-viewer-7d85e2fb.js} +3 -3
  21. package/dist/cjs/snk-guides-viewer.cjs.entry.js +5 -5
  22. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +3 -3
  23. package/dist/cjs/snk-personalized-filter.cjs.entry.js +2 -2
  24. package/dist/cjs/snk-simple-crud.cjs.entry.js +39 -28
  25. package/dist/collection/collection-manifest.json +1 -0
  26. package/dist/collection/components/snk-attach/structure/builder/taskbar-builder.js +8 -4
  27. package/dist/collection/components/snk-crud/subcomponents/snk-detail-view/snk-detail-view.js +1 -1
  28. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.css +13 -0
  29. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +2 -2
  30. package/dist/collection/components/snk-filter-bar/filter-modal/snk-filter-modal.js +3 -1
  31. package/dist/collection/components/snk-form-config/SnkFormConfigManager.js +6 -4
  32. package/dist/collection/components/snk-grid/snk-grid.js +20 -1
  33. package/dist/collection/components/snk-simple-crud/snk-simple-crud.css +1 -0
  34. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +52 -24
  35. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +22 -0
  36. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +179 -0
  37. package/dist/collection/lib/http/data-fetcher/fetchers/form-config-fetcher.js +41 -4
  38. package/dist/collection/lib/http/data-fetcher/fetchers/pesquisa-fetcher.js +4 -1
  39. package/dist/components/SnkFormConfigManager.js +6 -4
  40. package/dist/components/form-config-fetcher.js +37 -0
  41. package/dist/components/index.d.ts +1 -0
  42. package/dist/components/index.js +1 -0
  43. package/dist/components/pesquisa-fetcher.js +4 -1
  44. package/dist/components/snk-attach2.js +20 -34
  45. package/dist/components/snk-crud.js +61 -55
  46. package/dist/components/snk-detail-view2.js +85 -94
  47. package/dist/components/snk-filter-modal.js +3 -1
  48. package/dist/components/snk-grid2.js +3 -1
  49. package/dist/components/snk-personalized-filter-editor.js +3 -3
  50. package/dist/components/snk-simple-crud2.js +48 -55
  51. package/dist/components/snk-simple-form-config.d.ts +11 -0
  52. package/dist/components/snk-simple-form-config.js +6 -0
  53. package/dist/components/snk-simple-form-config2.js +119 -0
  54. package/dist/esm/{ConfigStorage-6514d66e.js → ConfigStorage-ff99377a.js} +1 -1
  55. package/dist/esm/{ContinuousInsertUtils-b62906f9.js → ContinuousInsertUtils-071e0b6a.js} +2 -2
  56. package/dist/esm/{SnkFormConfigManager-b409c745.js → SnkFormConfigManager-035f2975.js} +8 -6
  57. package/dist/esm/{auth-fetcher-ca5d3a49.js → auth-fetcher-0b78ca31.js} +1 -1
  58. package/dist/esm/{form-config-fetcher-a7d3e277.js → form-config-fetcher-0c2620ef.js} +37 -0
  59. package/dist/esm/index-a7d3d3f1.js +4 -4
  60. package/dist/esm/loader.js +1 -1
  61. package/dist/esm/{pesquisa-fetcher-6bc2e41a.js → pesquisa-fetcher-24e5bba0.js} +4 -1
  62. package/dist/esm/sankhyablocks.js +1 -1
  63. package/dist/esm/{snk-actions-button_4.entry.js → snk-actions-button_5.entry.js} +91 -4
  64. package/dist/esm/snk-application.entry.js +4 -4
  65. package/dist/esm/snk-attach.entry.js +11 -7
  66. package/dist/esm/snk-config-options_3.entry.js +3 -3
  67. package/dist/esm/snk-crud.entry.js +3 -3
  68. package/dist/esm/snk-data-exporter.entry.js +2 -2
  69. package/dist/esm/snk-detail-view.entry.js +6 -6
  70. package/dist/esm/snk-filter-bar_4.entry.js +5 -3
  71. package/dist/esm/snk-filter-modal-item.entry.js +2 -2
  72. package/dist/esm/snk-grid.entry.js +6 -5
  73. package/dist/esm/{snk-guides-viewer-b7ed39eb.js → snk-guides-viewer-2fd50f6b.js} +3 -3
  74. package/dist/esm/snk-guides-viewer.entry.js +5 -5
  75. package/dist/esm/snk-personalized-filter-editor.entry.js +3 -3
  76. package/dist/esm/snk-personalized-filter.entry.js +2 -2
  77. package/dist/esm/snk-simple-crud.entry.js +40 -29
  78. package/dist/sankhyablocks/{p-4138da61.entry.js → p-262583c6.entry.js} +1 -1
  79. package/dist/sankhyablocks/p-29643bef.entry.js +1 -0
  80. package/dist/sankhyablocks/{p-fca0e5cc.entry.js → p-35882caf.entry.js} +1 -1
  81. package/dist/sankhyablocks/{p-046ce9d2.entry.js → p-365d8ed4.entry.js} +1 -1
  82. package/dist/sankhyablocks/p-399e1b74.entry.js +1 -0
  83. package/dist/sankhyablocks/p-47178038.entry.js +1 -0
  84. package/dist/sankhyablocks/{p-e97be1c8.js → p-4c5fde50.js} +1 -1
  85. package/dist/sankhyablocks/{p-ec43fcc8.entry.js → p-5136d9f0.entry.js} +1 -1
  86. package/dist/sankhyablocks/{p-1d3ce0d9.entry.js → p-65650e05.entry.js} +1 -1
  87. package/dist/sankhyablocks/p-70ed0b0f.js +1 -0
  88. package/dist/sankhyablocks/{p-9ffd9fc7.js → p-763edad2.js} +1 -1
  89. package/dist/sankhyablocks/p-82274cb0.js +1 -0
  90. package/dist/sankhyablocks/{p-0387d9d7.entry.js → p-8cf0a9fe.entry.js} +1 -1
  91. package/dist/sankhyablocks/p-acca8a69.js +26 -0
  92. package/dist/sankhyablocks/{p-e4391e16.js → p-c271fbf1.js} +1 -1
  93. package/dist/sankhyablocks/{p-a2c790ac.entry.js → p-c629c07a.entry.js} +1 -1
  94. package/dist/sankhyablocks/p-e6683406.js +6 -0
  95. package/dist/sankhyablocks/{p-e390641b.entry.js → p-e7067256.entry.js} +1 -1
  96. package/dist/sankhyablocks/{p-aa003d4e.entry.js → p-e9432f45.entry.js} +1 -1
  97. package/dist/sankhyablocks/{p-3728d2aa.entry.js → p-eda55eef.entry.js} +3 -3
  98. package/dist/sankhyablocks/p-ff6c8f52.entry.js +1 -0
  99. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  100. package/dist/types/components/snk-grid/snk-grid.d.ts +6 -0
  101. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +9 -3
  102. package/dist/types/components/snk-simple-form-config/snk-simple-form-config.d.ts +33 -0
  103. package/dist/types/components.d.ts +54 -0
  104. package/dist/types/lib/http/data-fetcher/fetchers/form-config-fetcher.d.ts +8 -2
  105. package/package.json +1 -1
  106. package/react/components.d.ts +1 -0
  107. package/react/components.js +1 -0
  108. package/react/components.js.map +1 -1
  109. package/dist/sankhyablocks/p-0e206e62.js +0 -1
  110. package/dist/sankhyablocks/p-126c58ea.js +0 -26
  111. package/dist/sankhyablocks/p-341465ce.js +0 -6
  112. package/dist/sankhyablocks/p-4e1f992e.entry.js +0 -1
  113. package/dist/sankhyablocks/p-5b51491f.entry.js +0 -1
  114. package/dist/sankhyablocks/p-a3fadd0b.entry.js +0 -1
  115. package/dist/sankhyablocks/p-aaf94476.js +0 -1
  116. package/dist/sankhyablocks/p-af7f7b3e.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
- import { UserInterface, StringUtils, ApplicationContext, ObjectUtils, DataType, JSUtils, FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
2
+ import { UserInterface, StringUtils, ApplicationContext, ObjectUtils, DataType, JSUtils, FloatingManager, KeyboardManager, ElementIDUtils } from '@sankhyalabs/core';
3
3
  import { CSSVarsUtils } from '@sankhyalabs/ezui/dist/collection/utils';
4
4
  import { V as VIEW_MODE, S as SIMPLE_CRUD_MODE } from './constants.js';
5
5
  import { T as TaskbarElement, d as defineCustomElement$2 } from './snk-taskbar2.js';
@@ -16,17 +16,14 @@ import { C as ConfigStorage } from './ConfigStorage.js';
16
16
  import { S as SnkFormConfigManager } from './SnkFormConfigManager.js';
17
17
  import { g as getSelectedRecordsIDsInfo } from './GetSelectedRecordsIDsInfo.js';
18
18
  import { s as store } from './index2.js';
19
- import { d as defineCustomElement$d } from './snk-actions-button2.js';
20
- import { d as defineCustomElement$c } from './snk-config-options2.js';
21
- import { d as defineCustomElement$b } from './snk-configurator2.js';
22
- import { d as defineCustomElement$a } from './snk-data-exporter2.js';
23
- import { d as defineCustomElement$9 } from './snk-data-unit2.js';
24
- import { d as defineCustomElement$8 } from './snk-exporter-email-sender2.js';
25
- import { d as defineCustomElement$7 } from './snk-field-config2.js';
26
- import { d as defineCustomElement$6 } from './snk-form-config2.js';
19
+ import { d as defineCustomElement$a } from './snk-actions-button2.js';
20
+ import { d as defineCustomElement$9 } from './snk-configurator2.js';
21
+ import { d as defineCustomElement$8 } from './snk-data-exporter2.js';
22
+ import { d as defineCustomElement$7 } from './snk-data-unit2.js';
23
+ import { d as defineCustomElement$6 } from './snk-exporter-email-sender2.js';
27
24
  import { d as defineCustomElement$5 } from './snk-grid-config2.js';
28
25
  import { d as defineCustomElement$4 } from './snk-select-box2.js';
29
- import { d as defineCustomElement$3 } from './snk-tab-config2.js';
26
+ import { d as defineCustomElement$3 } from './snk-simple-form-config2.js';
30
27
  import { d as defineCustomElement$1 } from './taskbar-actions-button2.js';
31
28
 
32
29
  const REGULAR_DEFAULT_BTNS = ["INSERT", "REFRESH", "PREVIOUS", "NEXT", "DIVIDER", "MORE_OPTIONS"];
@@ -87,7 +84,7 @@ class ClientSideExporterProvider extends CommonsExporter {
87
84
  }
88
85
  }
89
86
 
90
- const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%;--snk-simple-crud-grid--min-height:300px}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:auto 1fr;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}.simple-crud__form--hidden.sc-snk-simple-crud{display:none}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;--ez-grid--min-height:var(--snk-simple-crud-grid--min-height)}ez-form.sc-snk-simple-crud{min-height:300px}";
87
+ const snkSimpleCrudCss = ".sc-snk-simple-crud-h{display:flex;height:100%;width:100%;--snk-simple-crud-grid--min-height:300px}.simple-crud__container.sc-snk-simple-crud{display:grid;grid-template-rows:auto 1fr;height:100%;width:100%}.simple-crud__container-section.sc-snk-simple-crud{flex-wrap:unset;flex-direction:column}.simple-crud__form--hidden.sc-snk-simple-crud{display:none}ez-grid.sc-snk-simple-crud{--ez-grid__container--shadow:none;--ez-grid__container--shadow--outline:none;--ez-grid--min-height:var(--snk-simple-crud-grid--min-height)}ez-form.sc-snk-simple-crud{min-height:300px}";
91
88
 
92
89
  const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
93
90
  constructor() {
@@ -112,7 +109,6 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
112
109
  "snkSimpleCrudTaskbar.finish_edition": this.getFinishEditionButtonsCallback.bind(this)
113
110
  });
114
111
  this._showPopUpGridConfig = false;
115
- this._showFormConfig = false;
116
112
  this._currentViewMode = VIEW_MODE.GRID;
117
113
  this._config = undefined;
118
114
  this._fieldToGetFocus = undefined;
@@ -144,6 +140,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
144
140
  this.autoFocus = true;
145
141
  this.domainMessagesBuilder = undefined;
146
142
  this.autoLoad = undefined;
143
+ this.outlineMode = false;
147
144
  }
148
145
  /**
149
146
  * Registra um editor customizado para campos da grade e formulário.
@@ -332,15 +329,9 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
332
329
  });
333
330
  }
334
331
  async openFormConfig() {
335
- var _a, _b;
336
- //No momento não daremos suporte para configuraçao de formulário quando houver legacy config
337
- if (this.formLegacyConfigName) {
338
- const title = (_a = this.messagesBuilder) === null || _a === void 0 ? void 0 : _a.getMessage("snkSimpleCrud.formConfigUnavaliable.title", undefined);
339
- const message = (_b = this.messagesBuilder) === null || _b === void 0 ? void 0 : _b.getMessage("snkSimpleCrud.formConfigUnavaliable.message", undefined);
340
- await this.application.alert(title, message);
341
- return;
332
+ if (this.formLegacyConfigName || this.configName) {
333
+ await this._snkSimpleFormConfig.show();
342
334
  }
343
- this._showFormConfig = true;
344
335
  }
345
336
  addGridLegacyConfigName() {
346
337
  if (this.gridLegacyConfigName && this.configName) {
@@ -370,7 +361,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
370
361
  formConfigIsLoaded() {
371
362
  return this.formConfig != undefined || this._formConfigAlreadyLoaded;
372
363
  }
373
- async loadFormConfig(forceLoad = false) {
364
+ async loadFormConfig(forceLoad = false, forceSetNewConfig = false) {
374
365
  if (this.configName === undefined) {
375
366
  return;
376
367
  }
@@ -385,7 +376,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
385
376
  let loadedLegacyConfig = await this._formConfigFetcher.fetchLegacyConfigurableForm(this.formLegacyConfigName);
386
377
  if (loadedLegacyConfig != undefined) {
387
378
  this._formConfigManager.setConfig(loadedLegacyConfig);
388
- this.setFormConfig(loadedLegacyConfig);
379
+ this.setFormConfig(loadedLegacyConfig, forceSetNewConfig);
389
380
  return;
390
381
  }
391
382
  this.setFormConfig(await this._formConfigManager.loadConfig());
@@ -423,6 +414,7 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
423
414
  }
424
415
  componentDidLoad() {
425
416
  CSSVarsUtils.applyVarsGrid(this._element, this._grid);
417
+ this.initKeyboardManager();
426
418
  }
427
419
  setCustomRenders() {
428
420
  if (!this._grid) {
@@ -768,9 +760,6 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
768
760
  closeGridConfig() {
769
761
  this._showPopUpGridConfig = false;
770
762
  }
771
- closeFormConfig() {
772
- this._showFormConfig = false;
773
- }
774
763
  getPageSize() {
775
764
  if (this.mode === SIMPLE_CRUD_MODE.IN_MEMORY) {
776
765
  return 0;
@@ -780,10 +769,6 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
780
769
  }
781
770
  return this.pageSize;
782
771
  }
783
- //No momento não daremos suporte para configuração de formulário quando houver formLegacyConfigName
784
- handleShowFormConfig() {
785
- return this._showFormConfig && !this.formLegacyConfigName;
786
- }
787
772
  resolveResourceID() {
788
773
  return StringUtils.isEmpty(this.resourceID) ? this._resourceID : this.resourceID;
789
774
  }
@@ -796,7 +781,10 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
796
781
  return configFromManager;
797
782
  }
798
783
  updateFormConfig() {
799
- const newConfig = Object.assign(Object.assign({}, this.formConfig), { fields: this.dataUnit.metadata.fields });
784
+ let newConfig = this.formConfig;
785
+ if (this.formLegacyConfigName == undefined) {
786
+ newConfig = Object.assign(Object.assign({}, this.formConfig), { fields: this.dataUnit.metadata.fields });
787
+ }
800
788
  this.setFormConfig(newConfig, true);
801
789
  if (this._formConfigManager == undefined) {
802
790
  this._formConfigManager = new SnkFormConfigManager(this.configName, this.resolveResourceID());
@@ -808,18 +796,38 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
808
796
  return;
809
797
  this.goToView(VIEW_MODE.FORM);
810
798
  }
799
+ async initKeyboardManager() {
800
+ const keyboardManager = new KeyboardManager();
801
+ const dataUnit = this.dataUnit || await this._snkDataUnit.getDataUnit();
802
+ keyboardManager
803
+ .bind("F7", () => dataUnit.saveData(), { description: "Salva os dados.", element: this._element })
804
+ .bind("F8", dataUnit.addRecord.bind(dataUnit), { description: "Adiciona um novo registro.", element: this._element })
805
+ .bind("F9", dataUnit.removeSelectedRecords.bind(dataUnit), { description: "Remove o registro selecionado.", element: this._element })
806
+ .bind("Escape", () => {
807
+ if (dataUnit.isDirty()) {
808
+ dataUnit.cancelEdition();
809
+ }
810
+ }, {
811
+ debounceTime: 1000,
812
+ description: "Cancela uma ação.", element: this._element
813
+ });
814
+ }
815
+ async handleFormConfigSaved() {
816
+ await this.loadFormConfig(true, true);
817
+ }
811
818
  renderTaskbarContent() {
812
819
  var _a;
813
- return (h("snk-taskbar", { class: this._currentViewMode === VIEW_MODE.FORM && "ez-box ez-box--shadow ez-padding--small", dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, "data-exporter-store-key": this.getDataExporterStoreKey(), slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })));
820
+ return (h("snk-taskbar", { class: this._currentViewMode === VIEW_MODE.FORM && `ez-box ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow-xsmall'} ez-padding--small`, dataUnit: this.dataUnit, primaryButton: ((_a = this.dataState) === null || _a === void 0 ? void 0 : _a.isDirty) ? "SAVE" : "INSERT", "data-element-id": "grid_left", messagesBuilder: this.messagesBuilder, buttons: this._taskbarProcessor.buttons, actionsList: this.getActionsList(), disabledButtons: this._taskbarProcessor.disabledButtons, customButtons: this._taskbarProcessor.customButtons, "data-exporter-store-key": this.getDataExporterStoreKey(), slot: "leftButtons", presentationMode: PresentationMode.SECONDARY }, h("slot", { name: "TASKBAR_CUSTOM_ELEMENTS" })));
814
821
  }
815
822
  /* istanbul ignore next */
816
823
  render() {
824
+ var _a;
817
825
  if (this.dataUnit == undefined) {
818
826
  return;
819
827
  }
820
- 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 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)
828
+ 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)
821
829
  ? undefined
822
- : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManger: this.enableLockManger }, 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 ${this.handleShowFormConfig() ? "simple-crud__form--hidden" : ""}`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this) }), this.handleShowFormConfig() && h("snk-form-config", { messagesBuilder: this.messagesBuilder, dataUnit: this.dataUnit, configManager: this._formConfigManager, onConfigClose: () => this.closeFormConfig() })), 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() }))));
830
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this._enableContinuousInsert, enableLockManger: this.enableLockManger, 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() }))));
823
831
  }
824
832
  get _element() { return this; }
825
833
  static get watchers() { return {
@@ -856,8 +864,8 @@ const SnkSimpleCrud = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement
856
864
  "autoFocus": [4, "auto-focus"],
857
865
  "domainMessagesBuilder": [1, "domain-messages-builder"],
858
866
  "autoLoad": [4, "auto-load"],
867
+ "outlineMode": [4, "outline-mode"],
859
868
  "_showPopUpGridConfig": [32],
860
- "_showFormConfig": [32],
861
869
  "_currentViewMode": [32],
862
870
  "_config": [32],
863
871
  "_fieldToGetFocus": [32],
@@ -882,7 +890,7 @@ function defineCustomElement() {
882
890
  if (typeof customElements === "undefined") {
883
891
  return;
884
892
  }
885
- const components = ["snk-simple-crud", "snk-actions-button", "snk-config-options", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-field-config", "snk-form-config", "snk-grid-config", "snk-select-box", "snk-tab-config", "snk-taskbar", "taskbar-actions-button"];
893
+ const components = ["snk-simple-crud", "snk-actions-button", "snk-configurator", "snk-data-exporter", "snk-data-unit", "snk-exporter-email-sender", "snk-grid-config", "snk-select-box", "snk-simple-form-config", "snk-taskbar", "taskbar-actions-button"];
886
894
  components.forEach(tagName => { switch (tagName) {
887
895
  case "snk-simple-crud":
888
896
  if (!customElements.get(tagName)) {
@@ -890,41 +898,26 @@ function defineCustomElement() {
890
898
  }
891
899
  break;
892
900
  case "snk-actions-button":
893
- if (!customElements.get(tagName)) {
894
- defineCustomElement$d();
895
- }
896
- break;
897
- case "snk-config-options":
898
- if (!customElements.get(tagName)) {
899
- defineCustomElement$c();
900
- }
901
- break;
902
- case "snk-configurator":
903
- if (!customElements.get(tagName)) {
904
- defineCustomElement$b();
905
- }
906
- break;
907
- case "snk-data-exporter":
908
901
  if (!customElements.get(tagName)) {
909
902
  defineCustomElement$a();
910
903
  }
911
904
  break;
912
- case "snk-data-unit":
905
+ case "snk-configurator":
913
906
  if (!customElements.get(tagName)) {
914
907
  defineCustomElement$9();
915
908
  }
916
909
  break;
917
- case "snk-exporter-email-sender":
910
+ case "snk-data-exporter":
918
911
  if (!customElements.get(tagName)) {
919
912
  defineCustomElement$8();
920
913
  }
921
914
  break;
922
- case "snk-field-config":
915
+ case "snk-data-unit":
923
916
  if (!customElements.get(tagName)) {
924
917
  defineCustomElement$7();
925
918
  }
926
919
  break;
927
- case "snk-form-config":
920
+ case "snk-exporter-email-sender":
928
921
  if (!customElements.get(tagName)) {
929
922
  defineCustomElement$6();
930
923
  }
@@ -939,7 +932,7 @@ function defineCustomElement() {
939
932
  defineCustomElement$4();
940
933
  }
941
934
  break;
942
- case "snk-tab-config":
935
+ case "snk-simple-form-config":
943
936
  if (!customElements.get(tagName)) {
944
937
  defineCustomElement$3();
945
938
  }
@@ -0,0 +1,11 @@
1
+ import type { Components, JSX } from "../types/components";
2
+
3
+ interface SnkSimpleFormConfig extends Components.SnkSimpleFormConfig, HTMLElement {}
4
+ export const SnkSimpleFormConfig: {
5
+ prototype: SnkSimpleFormConfig;
6
+ new (): SnkSimpleFormConfig;
7
+ };
8
+ /**
9
+ * Used to define this component and all nested components recursively.
10
+ */
11
+ export const defineCustomElement: () => void;
@@ -0,0 +1,6 @@
1
+ import { S as SnkSimpleFormConfig$1, d as defineCustomElement$1 } from './snk-simple-form-config2.js';
2
+
3
+ const SnkSimpleFormConfig = SnkSimpleFormConfig$1;
4
+ const defineCustomElement = defineCustomElement$1;
5
+
6
+ export { SnkSimpleFormConfig, defineCustomElement };
@@ -0,0 +1,119 @@
1
+ import { proxyCustomElement, HTMLElement, createEvent, h } from '@stencil/core/internal/client';
2
+ import './DataFetcher.js';
3
+ import './pesquisa-fetcher.js';
4
+ import '@sankhyalabs/core';
5
+ import './ISave.js';
6
+ import '@sankhyalabs/ezui/dist/collection/utils/constants';
7
+ import '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
8
+ import './dataunit-fetcher.js';
9
+ import './filter-item-type.enum.js';
10
+ import { F as FormConfigFetcher } from './form-config-fetcher.js';
11
+
12
+ const snkSimpleFormConfigCss = ":host{display:block}.config-container{display:flex;flex-direction:column;align-items:center;justify-content:space-between}.config-lists{margin-bottom:12px}.config-actions{display:flex;flex-direction:row;justify-content:flex-end;width:100%;gap:12px}";
13
+
14
+ const SnkSimpleFormConfig = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
15
+ constructor() {
16
+ super();
17
+ this.__registerHost();
18
+ this.snkConfigSaved = createEvent(this, "snkConfigSaved", 7);
19
+ this._formConfigFetcher = new FormConfigFetcher();
20
+ this.fieldsToSave = [];
21
+ this.dataUnit = undefined;
22
+ this.configName = undefined;
23
+ this.avaliableFields = [];
24
+ this.selectedFields = [];
25
+ }
26
+ /**
27
+ * Responsável por abrir o configurador.
28
+ */
29
+ async show() {
30
+ await this.initializeFormConfig();
31
+ this.ezPopupRef.opened = true;
32
+ }
33
+ ;
34
+ async initializeFormConfig() {
35
+ if (!this.configName)
36
+ return;
37
+ const allFields = this.getAllVisibleFieldsFromDataUnit();
38
+ const displayedFieldNameList = await this.getConfig();
39
+ //Quando não retorna dados, é por quê não existe configuração do usuário salva.
40
+ if (displayedFieldNameList.length === 0) {
41
+ this.avaliableFields = [];
42
+ this.selectedFields = [...allFields];
43
+ this.fieldsToSave = [...this.selectedFields];
44
+ return;
45
+ }
46
+ const selectedFieldsAux = this.sortDisplayedFields(displayedFieldNameList, allFields);
47
+ const avaliableFieldsAux = allFields.filter(field => !displayedFieldNameList.includes(field.id));
48
+ this.avaliableFields = [...avaliableFieldsAux];
49
+ this.selectedFields = [...selectedFieldsAux];
50
+ this.fieldsToSave = [...this.selectedFields];
51
+ }
52
+ async getConfig() {
53
+ const fieldList = await this._formConfigFetcher.fetchSimpleFormConfig(this.configName);
54
+ return [...this.removeDuplicates(fieldList)];
55
+ }
56
+ removeDuplicates(strings) {
57
+ return strings.filter((item, index) => strings.indexOf(item) === index);
58
+ }
59
+ sortDisplayedFields(displayedFieldNameList, allFields) {
60
+ const selectedFieldsAux = [];
61
+ //É preciso garantir a ordem na qual os campos vieram na resposta do fetchSimpleFormConfig.
62
+ displayedFieldNameList.forEach(fieldName => {
63
+ const field = allFields.find(field => field.id === fieldName);
64
+ if (!field)
65
+ return;
66
+ selectedFieldsAux.push(field);
67
+ });
68
+ return selectedFieldsAux;
69
+ }
70
+ getAllVisibleFieldsFromDataUnit() {
71
+ var _a, _b, _c;
72
+ const visibleFields = ((_c = (_b = (_a = this.dataUnit) === null || _a === void 0 ? void 0 : _a.metadata) === null || _b === void 0 ? void 0 : _b.fields) !== null && _c !== void 0 ? _c : []).filter(field => field.visible);
73
+ return visibleFields.map(field => {
74
+ return { id: field.name, label: field.label };
75
+ });
76
+ }
77
+ close() {
78
+ this.ezPopupRef.opened = false;
79
+ }
80
+ async handleResetConfigs() {
81
+ await this._formConfigFetcher.restoreFormConfig(this.configName);
82
+ await this.initializeFormConfig();
83
+ await this.handleSave();
84
+ }
85
+ handleCancel() {
86
+ this.close();
87
+ }
88
+ async handleSave() {
89
+ const saveList = this.fieldsToSave.map(field => field.id);
90
+ await this._formConfigFetcher.saveSimpleFormConfig(this.configName, saveList);
91
+ this.close();
92
+ this.snkConfigSaved.emit();
93
+ }
94
+ render() {
95
+ return (h("ez-popup", { ref: (ref) => this.ezPopupRef = ref, heightMode: 'auto', size: 'auto', ezTitle: 'Configurar formul\u00E1rio' }, h("div", { class: 'config-container' }, h("div", { class: 'config-lists' }, h("ez-double-list", { leftList: this.avaliableFields, leftTitle: 'Campos disponíveis', rightList: this.selectedFields, rightTitle: 'Campos selecionados', onEzRightListChanged: ({ detail }) => this.fieldsToSave = [...detail], entityLabel: 'campo', entityLabelPlural: 'campos' })), h("div", { class: 'config-actions' }, h("ez-button", { label: 'Restaurar', onClick: this.handleResetConfigs.bind(this), size: 'small' }), h("ez-button", { label: 'Cancelar', onClick: this.handleCancel.bind(this), size: 'small' }), h("ez-button", { label: 'Salvar', class: 'ez-button--primary', onClick: this.handleSave.bind(this), size: 'small' })))));
96
+ }
97
+ static get style() { return snkSimpleFormConfigCss; }
98
+ }, [0, "snk-simple-form-config", {
99
+ "dataUnit": [16],
100
+ "configName": [1, "config-name"],
101
+ "avaliableFields": [32],
102
+ "selectedFields": [32],
103
+ "show": [64]
104
+ }]);
105
+ function defineCustomElement() {
106
+ if (typeof customElements === "undefined") {
107
+ return;
108
+ }
109
+ const components = ["snk-simple-form-config"];
110
+ components.forEach(tagName => { switch (tagName) {
111
+ case "snk-simple-form-config":
112
+ if (!customElements.get(tagName)) {
113
+ customElements.define(tagName, SnkSimpleFormConfig);
114
+ }
115
+ break;
116
+ } });
117
+ }
118
+
119
+ export { SnkSimpleFormConfig as S, defineCustomElement as d };
@@ -1,4 +1,4 @@
1
- import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-a7d3e277.js';
1
+ import { R as ResourceFetcher, F as FormConfigFetcher } from './form-config-fetcher-0c2620ef.js';
2
2
  import { F as FilterItemType } from './filter-item-type.enum-d45e026f.js';
3
3
  import { ObjectUtils } from '@sankhyalabs/core';
4
4
  import { d as dist, D as DataFetcher } from './DataFetcher-5034df59.js';
@@ -1,5 +1,5 @@
1
1
  import { D as DataFetcher } from './DataFetcher-5034df59.js';
2
- import './pesquisa-fetcher-6bc2e41a.js';
2
+ import './pesquisa-fetcher-24e5bba0.js';
3
3
  import { SortMode, ApplicationContext, UserInterface, DateUtils, ObjectUtils, StringUtils, NumberUtils, DataType } from '@sankhyalabs/core';
4
4
  import './index-3aa4977a.js';
5
5
  import './ISave-d8c8bc59.js';
@@ -7,7 +7,7 @@ import '@sankhyalabs/ezui/dist/collection/utils/constants';
7
7
  import { UserInterface as UserInterface$1 } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
8
8
  import { P as PreloadManager } from './dataunit-fetcher-56cb648b.js';
9
9
  import './filter-item-type.enum-d45e026f.js';
10
- import './form-config-fetcher-a7d3e277.js';
10
+ import './form-config-fetcher-0c2620ef.js';
11
11
  import InMemoryFilterColumnDataSource from '@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource';
12
12
  import { h } from './index-a7d3d3f1.js';
13
13
 
@@ -1,6 +1,6 @@
1
- import { C as ConfigStorage } from './ConfigStorage-6514d66e.js';
1
+ import { C as ConfigStorage } from './ConfigStorage-ff99377a.js';
2
2
  import { ObjectUtils, StringUtils } from '@sankhyalabs/core';
3
- import { F as FormConfigFetcher } from './form-config-fetcher-a7d3e277.js';
3
+ import { F as FormConfigFetcher } from './form-config-fetcher-0c2620ef.js';
4
4
  import { b as TAB_NAMES } from './constants-7302ee87.js';
5
5
 
6
6
  class SnkFormConfigManager {
@@ -88,13 +88,15 @@ class SnkFormConfigManager {
88
88
  const fields = (_a = this._config) === null || _a === void 0 ? void 0 : _a.fields;
89
89
  const hasConfig = this.hasConfig();
90
90
  if (hasConfig && !forceEmptyConfig) {
91
- return fields.map(({ label, name, readOnly, visible, required, tab }) => {
91
+ return fields.map(({ label, name, readOnly, visible, required, tab, group }) => {
92
92
  var _a;
93
93
  if (label == undefined) {
94
94
  const currentField = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getField(name);
95
- return Object.assign(Object.assign({}, currentField), { name: name !== null && name !== void 0 ? name : currentField.name, readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : currentField.readOnly, visible: visible !== null && visible !== void 0 ? visible : currentField.visible, required: required !== null && required !== void 0 ? required : currentField.required, tab: tab });
95
+ if (!currentField)
96
+ return;
97
+ return Object.assign(Object.assign({}, currentField), { name: name !== null && name !== void 0 ? name : currentField.name, readOnly: readOnly !== null && readOnly !== void 0 ? readOnly : currentField.readOnly, visible: visible !== null && visible !== void 0 ? visible : currentField.visible, required: required !== null && required !== void 0 ? required : currentField.required, tab: tab, group: group });
96
98
  }
97
- return { name, label, readOnly, visible, required, tab };
99
+ return { name, label, readOnly, visible, required, tab, group };
98
100
  })
99
101
  .filter(field => this.isFieldVisible(field, descriptionFilter));
100
102
  }
@@ -107,7 +109,7 @@ class SnkFormConfigManager {
107
109
  return filteredFields;
108
110
  }
109
111
  isFieldVisible(field, descriptionFilter) {
110
- if (field.visible === false) {
112
+ if (field === undefined || field.visible === false) {
111
113
  return false;
112
114
  }
113
115
  if (descriptionFilter == undefined) {
@@ -1,5 +1,5 @@
1
1
  import { ObjectUtils } from '@sankhyalabs/core';
2
- import { R as ResourceFetcher } from './form-config-fetcher-a7d3e277.js';
2
+ import { R as ResourceFetcher } from './form-config-fetcher-0c2620ef.js';
3
3
 
4
4
  class AuthFetcher extends ResourceFetcher {
5
5
  getData(resourceID) {
@@ -240,6 +240,43 @@ class FormConfigFetcher extends ResourceFetcher {
240
240
  return undefined;
241
241
  return this.buildLegacyConfigurableForm(response);
242
242
  }
243
+ async fetchSimpleFormConfig(configName) {
244
+ const payload = { 'requestBody': { 'formConfig': { 'configName': configName } } };
245
+ const response = await DataFetcher.get().callServiceBroker('FormConfig.getFormConfig', JSON.stringify(payload));
246
+ return this.processConfig(response);
247
+ }
248
+ async saveSimpleFormConfig(configName, fieldList) {
249
+ const payload = this.buildSaveSimpleFormConfigPayload(configName, fieldList);
250
+ const response = await DataFetcher.get().callServiceBroker('FormConfig.saveFormConfig', JSON.stringify(payload));
251
+ this.processConfig(response);
252
+ }
253
+ processConfig(response) {
254
+ if (ObjectUtils.isEmpty(response))
255
+ return [];
256
+ const fields = this.getResponseAsArray(response);
257
+ return fields.map(field => field.name);
258
+ }
259
+ getResponseAsArray(response) {
260
+ var _a, _b, _c;
261
+ const rawFields = (_c = (_b = (_a = response === null || response === void 0 ? void 0 : response.formConfig) === null || _a === void 0 ? void 0 : _a.layout) === null || _b === void 0 ? void 0 : _b.field) !== null && _c !== void 0 ? _c : [];
262
+ return Array.isArray(rawFields) ? rawFields : [rawFields];
263
+ }
264
+ buildSaveSimpleFormConfigPayload(configName, fieldNameList) {
265
+ const fieldList = fieldNameList.map(fieldName => { return { name: fieldName }; });
266
+ return {
267
+ formConfig: {
268
+ configName,
269
+ layout: {
270
+ field: fieldList,
271
+ },
272
+ metadata: { field: [] },
273
+ }
274
+ };
275
+ }
276
+ async restoreFormConfig(configName) {
277
+ const payload = { 'requestBody': { 'formConfig': { 'configName': configName } } };
278
+ await DataFetcher.get().callServiceBroker('FormConfig.restoreFormConfig', JSON.stringify(payload));
279
+ }
243
280
  buildLegacyConfigurableForm(config) {
244
281
  var _a, _b, _c;
245
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 : [];
@@ -2170,6 +2170,10 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2170
2170
  return import(
2171
2171
  /* webpackMode: "lazy" */
2172
2172
  './snk-personalized-filter.entry.js').then(processMod, consoleError);
2173
+ case 'snk-actions-button_5':
2174
+ return import(
2175
+ /* webpackMode: "lazy" */
2176
+ './snk-actions-button_5.entry.js').then(processMod, consoleError);
2173
2177
  case 'snk-filter-advanced-mode_2':
2174
2178
  return import(
2175
2179
  /* webpackMode: "lazy" */
@@ -2178,10 +2182,6 @@ const loadModule = (cmpMeta, hostRef, hmrVersionId) => {
2178
2182
  return import(
2179
2183
  /* webpackMode: "lazy" */
2180
2184
  './snk-filter-detail.entry.js').then(processMod, consoleError);
2181
- case 'snk-actions-button_4':
2182
- return import(
2183
- /* webpackMode: "lazy" */
2184
- './snk-actions-button_4.entry.js').then(processMod, consoleError);
2185
2185
  case 'snk-simple-bar':
2186
2186
  return import(
2187
2187
  /* webpackMode: "lazy" */