@sankhyalabs/sankhyablocks 9.1.0-dev.1 → 9.1.0-dev.10

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 (172) hide show
  1. package/dist/cjs/{ClientSideExporterProvider-0ce2bcd9.js → ClientSideExporterProvider-6a4108c9.js} +4 -4
  2. package/dist/cjs/{ConfigStorage-48ba265b.js → ConfigStorage-34aa43d8.js} +2 -2
  3. package/dist/cjs/{DataFetcher-1afdb18e.js → DataFetcher-e23a263b.js} +6 -1
  4. package/dist/cjs/{ISave-c76e2c51.js → ISave-e0be2362.js} +1 -1
  5. package/dist/cjs/{SnkFormConfigManager-aa4631bd.js → SnkFormConfigManager-61bf3266.js} +2 -2
  6. package/dist/cjs/{SnkMessageBuilder-e3b7850b.js → SnkMessageBuilder-221cc88d.js} +10 -2
  7. package/dist/cjs/{auth-fetcher-1687ac0a.js → auth-fetcher-8670a38f.js} +1 -1
  8. package/dist/cjs/{dataunit-fetcher-a723f0dc.js → dataunit-fetcher-c34a8217.js} +4 -1
  9. package/dist/cjs/field-config_2.cjs.entry.js +1 -1
  10. package/dist/cjs/fields-layout.cjs.entry.js +1 -1
  11. package/dist/cjs/fields-selector.cjs.entry.js +2 -2
  12. package/dist/cjs/{form-config-fetcher-40d3f752.js → form-config-fetcher-d8b78403.js} +1 -1
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/cjs/pesquisa-grid_2.cjs.entry.js +5 -5
  15. package/dist/cjs/sankhyablocks.cjs.js +1 -1
  16. package/dist/cjs/snk-actions-button_8.cjs.entry.js +63 -203
  17. package/dist/cjs/snk-application.cjs.entry.js +7 -7
  18. package/dist/cjs/snk-attach.cjs.entry.js +33 -16
  19. package/dist/cjs/snk-crud.cjs.entry.js +6 -5
  20. package/dist/cjs/snk-data-exporter.cjs.entry.js +6 -6
  21. package/dist/cjs/{snk-data-unit-3684c96e.js → snk-data-unit-a4f9287b.js} +2 -2
  22. package/dist/cjs/snk-data-unit.cjs.entry.js +4 -4
  23. package/dist/cjs/snk-detail-view.cjs.entry.js +8 -8
  24. package/dist/cjs/snk-entity-list.cjs.entry.js +20 -14
  25. package/dist/cjs/snk-filter-bar_4.cjs.entry.js +44 -112
  26. package/dist/cjs/snk-filter-detail.cjs.entry.js +3 -1
  27. package/dist/cjs/snk-filter-modal-item.cjs.entry.js +3 -3
  28. package/dist/cjs/snk-form_2.cjs.entry.js +4 -4
  29. package/dist/cjs/snk-grid.cjs.entry.js +9 -8
  30. package/dist/cjs/{snk-guides-viewer-edc0a00a.js → snk-guides-viewer-29298823.js} +5 -5
  31. package/dist/cjs/snk-guides-viewer.cjs.entry.js +7 -7
  32. package/dist/cjs/snk-personalized-filter-editor.cjs.entry.js +6 -4
  33. package/dist/cjs/snk-personalized-filter.cjs.entry.js +3 -3
  34. package/dist/cjs/snk-pesquisa.cjs.entry.js +4 -4
  35. package/dist/cjs/snk-simple-crud.cjs.entry.js +15 -15
  36. package/dist/collection/components/snk-attach/snk-attach.js +45 -11
  37. package/dist/collection/components/snk-crud/snk-crud.js +19 -0
  38. package/dist/collection/components/snk-entity-list/snk-entity-list.js +40 -15
  39. package/dist/collection/components/snk-filter-bar/filter-item/editors/snk-personalized-filter-editor/snk-personalized-filter-editor.js +6 -4
  40. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-detail.js +3 -1
  41. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.css +4 -0
  42. package/dist/collection/components/snk-filter-bar/filter-item/snk-filter-item.js +49 -121
  43. package/dist/collection/components/snk-form-config/field-item/field-item.css +3 -23
  44. package/dist/collection/components/snk-form-config/fields-layout/fields-layout.css +4 -12
  45. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.css +4 -0
  46. package/dist/collection/components/snk-form-config/fields-selector/fields-selector.js +1 -1
  47. package/dist/collection/components/snk-grid/snk-grid.js +37 -2
  48. package/dist/collection/components/snk-grid-config/snk-grid-config.css +7 -41
  49. package/dist/collection/components/snk-grid-config/snk-grid-config.js +58 -193
  50. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.css +1 -0
  51. package/dist/collection/components/snk-grid-config/snk-select-box/snk-select-box.js +20 -1
  52. package/dist/collection/components/snk-pesquisa/pesquisa-grid/pesquisa-grid.js +1 -1
  53. package/dist/collection/components/snk-simple-crud/snk-simple-crud.js +9 -9
  54. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.css +1 -0
  55. package/dist/collection/components/snk-simple-form-config/snk-simple-form-config.js +1 -1
  56. package/dist/collection/lib/http/data-fetcher/DataFetcher.js +6 -1
  57. package/dist/collection/lib/http/data-fetcher/fetchers/data-unit/loadstrategy/DatasetStrategy.js +3 -0
  58. package/dist/collection/lib/message/resources/snk-grid.msg.js +10 -2
  59. package/dist/components/DataFetcher.js +6 -1
  60. package/dist/components/SnkMessageBuilder.js +10 -2
  61. package/dist/components/dataunit-fetcher.js +3 -0
  62. package/dist/components/field-item2.js +1 -1
  63. package/dist/components/fields-layout2.js +1 -1
  64. package/dist/components/fields-selector2.js +2 -2
  65. package/dist/components/pesquisa-grid2.js +1 -1
  66. package/dist/components/snk-attach2.js +29 -11
  67. package/dist/components/snk-crud.js +1 -0
  68. package/dist/components/snk-entity-list.js +21 -15
  69. package/dist/components/snk-filter-detail2.js +3 -1
  70. package/dist/components/snk-filter-item2.js +43 -111
  71. package/dist/components/snk-grid-config2.js +56 -195
  72. package/dist/components/snk-grid2.js +5 -2
  73. package/dist/components/snk-personalized-filter-editor.js +6 -4
  74. package/dist/components/snk-select-box2.js +5 -3
  75. package/dist/components/snk-simple-crud2.js +8 -8
  76. package/dist/components/snk-simple-form-config2.js +2 -2
  77. package/dist/esm/{ClientSideExporterProvider-3ed744fd.js → ClientSideExporterProvider-09dee1a3.js} +4 -4
  78. package/dist/esm/{ConfigStorage-79b9e180.js → ConfigStorage-89154c4e.js} +2 -2
  79. package/dist/esm/{DataFetcher-88e56266.js → DataFetcher-db08cad0.js} +6 -1
  80. package/dist/esm/{ISave-5efafc97.js → ISave-da565824.js} +1 -1
  81. package/dist/esm/{SnkFormConfigManager-b4b93298.js → SnkFormConfigManager-d64d62d6.js} +2 -2
  82. package/dist/esm/{SnkMessageBuilder-9c269caf.js → SnkMessageBuilder-da87a821.js} +10 -2
  83. package/dist/esm/{auth-fetcher-3510520e.js → auth-fetcher-43c8d76b.js} +1 -1
  84. package/dist/esm/{dataunit-fetcher-0e025732.js → dataunit-fetcher-1b78797a.js} +4 -1
  85. package/dist/esm/field-config_2.entry.js +1 -1
  86. package/dist/esm/fields-layout.entry.js +1 -1
  87. package/dist/esm/fields-selector.entry.js +2 -2
  88. package/dist/esm/{form-config-fetcher-fa208a6c.js → form-config-fetcher-e623539b.js} +1 -1
  89. package/dist/esm/loader.js +1 -1
  90. package/dist/esm/pesquisa-grid_2.entry.js +5 -5
  91. package/dist/esm/sankhyablocks.js +1 -1
  92. package/dist/esm/snk-actions-button_8.entry.js +63 -203
  93. package/dist/esm/snk-application.entry.js +7 -7
  94. package/dist/esm/snk-attach.entry.js +33 -16
  95. package/dist/esm/snk-crud.entry.js +6 -5
  96. package/dist/esm/snk-data-exporter.entry.js +6 -6
  97. package/dist/esm/{snk-data-unit-027bca56.js → snk-data-unit-330db397.js} +2 -2
  98. package/dist/esm/snk-data-unit.entry.js +4 -4
  99. package/dist/esm/snk-detail-view.entry.js +8 -8
  100. package/dist/esm/snk-entity-list.entry.js +20 -14
  101. package/dist/esm/snk-filter-bar_4.entry.js +45 -113
  102. package/dist/esm/snk-filter-detail.entry.js +3 -1
  103. package/dist/esm/snk-filter-modal-item.entry.js +3 -3
  104. package/dist/esm/snk-form_2.entry.js +4 -4
  105. package/dist/esm/snk-grid.entry.js +9 -8
  106. package/dist/esm/{snk-guides-viewer-32f3d3ab.js → snk-guides-viewer-9335318d.js} +5 -5
  107. package/dist/esm/snk-guides-viewer.entry.js +7 -7
  108. package/dist/esm/snk-personalized-filter-editor.entry.js +6 -4
  109. package/dist/esm/snk-personalized-filter.entry.js +3 -3
  110. package/dist/esm/snk-pesquisa.entry.js +4 -4
  111. package/dist/esm/snk-simple-crud.entry.js +15 -15
  112. package/dist/sankhyablocks/p-02480593.entry.js +1 -0
  113. package/dist/sankhyablocks/{p-09e60995.entry.js → p-1079e61b.entry.js} +1 -1
  114. package/dist/sankhyablocks/p-162bddae.entry.js +1 -0
  115. package/dist/sankhyablocks/{p-1456d7cb.entry.js → p-1c69a957.entry.js} +1 -1
  116. package/dist/sankhyablocks/{p-349d1968.entry.js → p-23b20add.entry.js} +1 -1
  117. package/dist/sankhyablocks/p-25209340.entry.js +1 -0
  118. package/dist/sankhyablocks/p-295b83ae.entry.js +1 -0
  119. package/dist/sankhyablocks/{p-a5bb2f93.entry.js → p-2d58f98e.entry.js} +1 -1
  120. package/dist/sankhyablocks/{p-9751c42f.entry.js → p-31193a60.entry.js} +1 -1
  121. package/dist/sankhyablocks/{p-7993b2e3.js → p-37b4f642.js} +1 -1
  122. package/dist/sankhyablocks/{p-2bde486e.js → p-3b1d73f9.js} +1 -1
  123. package/dist/sankhyablocks/{p-a6513fcb.js → p-412e06e9.js} +1 -1
  124. package/dist/sankhyablocks/p-5126b34e.entry.js +1 -0
  125. package/dist/sankhyablocks/{p-e3521eae.entry.js → p-5b31b239.entry.js} +1 -1
  126. package/dist/sankhyablocks/{p-bd665460.entry.js → p-60d3abf6.entry.js} +1 -1
  127. package/dist/sankhyablocks/{p-0cb295c1.entry.js → p-7c9815ea.entry.js} +1 -1
  128. package/dist/sankhyablocks/{p-a06bf7b9.entry.js → p-7ced2cf4.entry.js} +1 -1
  129. package/dist/sankhyablocks/{p-6416975c.js → p-8758404f.js} +1 -1
  130. package/dist/sankhyablocks/{p-65c5d430.entry.js → p-9a6fbf3d.entry.js} +1 -1
  131. package/dist/sankhyablocks/p-a2c6944d.entry.js +1 -0
  132. package/dist/sankhyablocks/{p-601b252b.js → p-b21d32f6.js} +1 -1
  133. package/dist/sankhyablocks/{p-c926cf6b.entry.js → p-b2946adb.entry.js} +1 -1
  134. package/dist/sankhyablocks/{p-6dd38d7b.js → p-c9657baa.js} +1 -1
  135. package/dist/sankhyablocks/p-cb2a4613.entry.js +1 -0
  136. package/dist/sankhyablocks/{p-fbba7e3d.js → p-cd1a5b6a.js} +1 -1
  137. package/dist/sankhyablocks/p-cfc219f6.entry.js +1 -0
  138. package/dist/sankhyablocks/{p-73285a8a.js → p-e25412da.js} +1 -1
  139. package/dist/sankhyablocks/p-e56eb36b.entry.js +1 -0
  140. package/dist/sankhyablocks/p-f442c8f6.entry.js +1 -0
  141. package/dist/sankhyablocks/{p-763b04fa.js → p-fa591f6f.js} +1 -1
  142. package/dist/sankhyablocks/p-fc4eac32.js +1 -0
  143. package/dist/sankhyablocks/{p-fc0b609e.js → p-fc87708a.js} +1 -1
  144. package/dist/sankhyablocks/p-fd571197.entry.js +1 -0
  145. package/dist/sankhyablocks/sankhyablocks.esm.js +1 -1
  146. package/dist/types/components/snk-attach/interfaces/ICrudConfig.d.ts +1 -1
  147. package/dist/types/components/snk-attach/snk-attach.d.ts +5 -0
  148. package/dist/types/components/snk-crud/snk-crud.d.ts +1 -0
  149. package/dist/types/components/snk-entity-list/snk-entity-list.d.ts +8 -4
  150. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-detail.d.ts +1 -0
  151. package/dist/types/components/snk-filter-bar/filter-item/snk-filter-item.d.ts +10 -20
  152. package/dist/types/components/snk-grid/snk-grid.d.ts +8 -0
  153. package/dist/types/components/snk-grid-config/snk-grid-config.d.ts +7 -20
  154. package/dist/types/components/snk-grid-config/snk-select-box/snk-select-box.d.ts +4 -0
  155. package/dist/types/components/snk-simple-crud/snk-simple-crud.d.ts +1 -1
  156. package/dist/types/components.d.ts +41 -1
  157. package/dist/types/lib/http/data-fetcher/DataFetcher.d.ts +1 -0
  158. package/package.json +1 -1
  159. package/dist/sankhyablocks/p-19156e59.entry.js +0 -1
  160. package/dist/sankhyablocks/p-3a48bff3.entry.js +0 -1
  161. package/dist/sankhyablocks/p-3f24c9b2.js +0 -1
  162. package/dist/sankhyablocks/p-67d6d0c8.entry.js +0 -1
  163. package/dist/sankhyablocks/p-83c100f2.entry.js +0 -1
  164. package/dist/sankhyablocks/p-90805683.entry.js +0 -1
  165. package/dist/sankhyablocks/p-c3324d79.entry.js +0 -1
  166. package/dist/sankhyablocks/p-cfd0a4c6.entry.js +0 -1
  167. package/dist/sankhyablocks/p-d9491f6f.entry.js +0 -1
  168. package/dist/sankhyablocks/p-e7cccc45.entry.js +0 -1
  169. package/dist/sankhyablocks/p-e824d565.entry.js +0 -1
  170. package/dist/sankhyablocks/p-ff7060bc.entry.js +0 -1
  171. /package/dist/collection/components/snk-simple-crud/{regular-buttons.js → snk-simple-crud.constants.js} +0 -0
  172. /package/dist/types/components/snk-simple-crud/{regular-buttons.d.ts → snk-simple-crud.constants.d.ts} +0 -0
@@ -4,14 +4,14 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-1cf293c1.js');
6
6
  const core = require('@sankhyalabs/core');
7
- const ISave = require('./ISave-c76e2c51.js');
8
- require('./DataFetcher-1afdb18e.js');
7
+ const ISave = require('./ISave-e0be2362.js');
8
+ require('./DataFetcher-e23a263b.js');
9
9
  require('./index-e3e39724.js');
10
10
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
11
11
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
12
- require('./dataunit-fetcher-a723f0dc.js');
12
+ require('./dataunit-fetcher-c34a8217.js');
13
13
  require('./filter-item-type.enum-a7ffdaa6.js');
14
- require('./form-config-fetcher-40d3f752.js');
14
+ require('./form-config-fetcher-d8b78403.js');
15
15
  require('./constants-6d82e405.js');
16
16
  require('./PrintUtils-bcaeb82f.js');
17
17
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils');
@@ -7,18 +7,18 @@ const core = require('@sankhyalabs/core');
7
7
  const utils = require('@sankhyalabs/ezui/dist/collection/utils');
8
8
  const constants = require('./constants-6d82e405.js');
9
9
  const taskbarElements = require('./taskbar-elements-3b74cd21.js');
10
- require('./DataFetcher-1afdb18e.js');
11
- require('./ISave-c76e2c51.js');
12
- const ClientSideExporterProvider = require('./ClientSideExporterProvider-0ce2bcd9.js');
10
+ require('./DataFetcher-e23a263b.js');
11
+ require('./ISave-e0be2362.js');
12
+ const ClientSideExporterProvider = require('./ClientSideExporterProvider-6a4108c9.js');
13
13
  const index$1 = require('./index-e3e39724.js');
14
14
  require('@sankhyalabs/ezui/dist/collection/utils/constants');
15
15
  require('@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata');
16
- const dataunitFetcher = require('./dataunit-fetcher-a723f0dc.js');
16
+ const dataunitFetcher = require('./dataunit-fetcher-c34a8217.js');
17
17
  require('./filter-item-type.enum-a7ffdaa6.js');
18
- const formConfigFetcher = require('./form-config-fetcher-40d3f752.js');
18
+ const formConfigFetcher = require('./form-config-fetcher-d8b78403.js');
19
19
  const taskbarProcessor = require('./taskbar-processor-2fba34a8.js');
20
- const ConfigStorage = require('./ConfigStorage-48ba265b.js');
21
- const SnkFormConfigManager = require('./SnkFormConfigManager-aa4631bd.js');
20
+ const ConfigStorage = require('./ConfigStorage-34aa43d8.js');
21
+ const SnkFormConfigManager = require('./SnkFormConfigManager-61bf3266.js');
22
22
  const index$2 = require('./index-0ad2baeb.js');
23
23
  require('./PrintUtils-bcaeb82f.js');
24
24
  require('@sankhyalabs/ezui/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource');
@@ -110,15 +110,15 @@ const SnkSimpleCrud = class {
110
110
  newCustomRenders.set(fieldName, customRender);
111
111
  this._customRenders = newCustomRenders;
112
112
  }
113
- handleResourceIDChanged(newValue, oldValue) {
113
+ async handleResourceIDChanged(newValue, oldValue) {
114
114
  if (core.StringUtils.isEmpty(newValue)) {
115
115
  return;
116
116
  }
117
117
  if (newValue === oldValue) {
118
118
  return;
119
119
  }
120
- this.loadFormConfig(true);
121
- this.loadGridConfig(true);
120
+ await this.loadFormConfig(true);
121
+ await this.loadGridConfig(true);
122
122
  }
123
123
  /**
124
124
  * Registra um formatador de valores para uma coluna da grid.
@@ -174,7 +174,7 @@ const SnkSimpleCrud = class {
174
174
  .concat(extraButtons));
175
175
  }
176
176
  addConfigButton(buttons) {
177
- if (this.configName === undefined) {
177
+ if (this.configName === undefined || (this.configName && this.gridLegacyConfigName)) {
178
178
  return buttons;
179
179
  }
180
180
  return buttons.concat(taskbarElements.TaskbarElement.CONFIGURATOR);
@@ -285,7 +285,7 @@ const SnkSimpleCrud = class {
285
285
  if (!this._formConfigAlreadyLoaded) {
286
286
  return;
287
287
  }
288
- this.loadFormConfig(true);
288
+ await this.loadFormConfig(true);
289
289
  }
290
290
  openConfig(viewMode) {
291
291
  this._snkConfigurator.close();
@@ -370,8 +370,8 @@ const SnkSimpleCrud = class {
370
370
  return;
371
371
  }
372
372
  await this.addGridLegacyConfigName();
373
- this.loadGridConfig();
374
- this.loadFormConfig();
373
+ await this.loadGridConfig();
374
+ await this.loadFormConfig();
375
375
  }
376
376
  componentDidRender() {
377
377
  this._rmPrecisionCustomValueFormatter.setGrid(this._grid);
@@ -805,7 +805,7 @@ const SnkSimpleCrud = class {
805
805
  }
806
806
  return (index.h("snk-data-unit", { ref: ref => this._snkDataUnit = ref, class: "simple-crud__container", dataUnit: this.dataUnit, useCancelConfirm: this.useCancelConfirm, onDataStateChange: evt => this.onDataStateChange(evt), onCancelEdition: this.handleCancelEdit.bind(this), pageSize: this.getPageSize(), onInsertionMode: this.handleDataUnitOnInsertionMode.bind(this), onDataUnitReady: (evt) => this.dataUnitReady.emit(evt.detail), onMessagesBuilderUpdated: evt => this.messagesBuilder = evt.detail, onDataUnitFieldsHidded: this.updateFormConfig.bind(this), domainMessagesBuilder: this.domainMessagesBuilder }, index.h("header", null, index.h("slot", { name: "snkSimpleCrudHeader" })), index.h("section", { class: `ez-box ez-box--no-outline ${this.outlineMode ? 'ez-box--outline' : 'ez-box--shadow'} simple-crud__container-section`, ref: (ref) => this._container = ref, tabindex: "0" }, index.h("ez-view-stack", { ref: (ref) => this._viewStack = ref, "data-element-id": "simple-crud" }, index.h("stack-item", null, index.h("ez-grid", { class: "ez-margin-bottom--large ez-box--no-outline", ref: ref => this._grid = ref, dataUnit: this.dataUnit, config: this.gridConfig, "no-header": true, multipleSelection: this.multipleSelection, onEzDoubleClick: () => this.goToView(constants.VIEW_MODE.FORM), onConfigChange: evt => this.gridConfigChangeHandler(evt), columnfilterDataSource: this.dataUnit.name && this.dataUnit.name.includes(dataunitFetcher.InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME)
807
807
  ? undefined
808
- : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(constants.VIEW_MODE.GRID), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(constants.VIEW_MODE.FORM), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-modal", { modalSize: "small", closeEsc: false, closeOutsideClick: false, opened: this._showPopUpGridConfig, onEzCloseModal: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
808
+ : this._multiSelectionListDataSource, useEnterLikeTab: this.useEnterLikeTab, autoFocus: this.autoFocus, enableGridInsert: this.enableGridInsert, enableContinuousInsert: this.enableContinuousInsert, enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick, enableLockManagerLoadingComp: this.enableLockManagerLoadingComp, outlineMode: this.outlineMode, tabindex: "0", paginationCounterMode: this.paginationCounterMode }, this.renderTaskbarContent(constants.VIEW_MODE.GRID), index.h("div", { slot: "footer" }, index.h("slot", { name: "snkSimpleCrudFooter" })))), index.h("stack-item", null, this.renderTaskbarContent(constants.VIEW_MODE.FORM), index.h("ez-form", { ref: (ref) => this._form = ref, class: `ez-margin-top--large ez-box--no-outline`, dataUnit: this.dataUnit, config: this.getFormConfig(), fieldToFocus: this._fieldToGetFocus, onEzFormSetFields: (evt) => this.handleFormSetFields(evt.detail), onEzFormRequestClearFieldToFocus: this.clearFieldToFocusHandler.bind(this), elementFocusSearchField: this._container, tabindex: "0" }), index.h("snk-simple-form-config", { ref: (ref) => this._snkSimpleFormConfig = ref, dataUnit: this.dataUnit, onSnkConfigSaved: this.handleFormConfigSaved.bind(this), configName: (_a = this.formLegacyConfigName) !== null && _a !== void 0 ? _a : this.configName })), this.messagesBuilder && index.h("snk-configurator", { ref: (ref) => this._snkConfigurator = ref, viewMode: this._currentViewMode, messagesBuilder: this.messagesBuilder, onConfigSelected: (evt) => this.goToView(evt.detail), onOpenConfig: (evt) => this.openConfig(evt.detail), showActionButtons: this.showConfiguratorButtons, onSave: evt => this.handleConfiguratorEvent(evt, 'SAVE'), onCancel: evt => this.handleConfiguratorEvent(evt, 'CANCEL'), resourceID: this.resolveResourceID(), customContainerId: this._customContainerId, layoutFormConfig: this.layoutFormConfig })), index.h("div", { id: `${this._customContainerId}` }, index.h("slot", { name: "SnkConfigContainerSlot" }))), index.h("ez-popup", { size: "medium", heightMode: "auto", useHeader: false, opened: this._showPopUpGridConfig, onEzClosePopup: () => this.closeGridConfig() }, index.h("snk-grid-config", { ref: ref => this._snkGridConfig = ref, config: this.gridConfig, "data-element-id": this._element.getAttribute(core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME), selectedIndex: 0, configName: this.configName, onConfigChange: (evt) => this.modalConfigChangeHandler(evt), onConfigCancel: () => this.closeGridConfig(), resourceID: this.resolveResourceID() }))));
809
809
  }
810
810
  get _element() { return index.getElement(this); }
811
811
  static get watchers() { return {
@@ -7,6 +7,8 @@ import InMemoryLoader from '../../lib/dataUnit/InMemoryLoader';
7
7
  import { SaveErrorsEnum } from '../../lib/http/data-fetcher/fetchers/AttachFetcher/interfaces';
8
8
  const RESOURCE_ID = 'AnexoSistema';
9
9
  const DATA_UNIT_NAME = 'br.com.sankhya.core.v3.anexoSistema';
10
+ const GRID_LEGACY_CONFIG_NAME = 'GrdCfgHtml5:grdcfg.dynaform.anexo';
11
+ const LINKORFILE_COLUMN_NAME = "ARQUIVOOULINK";
10
12
  export class SnkAttach {
11
13
  constructor() {
12
14
  this.handleTaskbarClick = async ({ detail: taskbar }) => {
@@ -33,6 +35,7 @@ export class SnkAttach {
33
35
  this.back.emit();
34
36
  });
35
37
  };
38
+ this.gridLegacyConfigName = undefined;
36
39
  this.fetcherType = undefined;
37
40
  this.fetcher = undefined;
38
41
  this.dataUnit = undefined;
@@ -144,9 +147,11 @@ export class SnkAttach {
144
147
  var _a, _b;
145
148
  this._currentDataUnit = new DataUnitFetcher().getDataUnit(RESOURCE_ID, DATA_UNIT_NAME);
146
149
  this._currentFetcher = this.getAnexoSistemaFetcherInstance();
150
+ let gridValidateForm;
147
151
  if (!this._currentDataUnit.metadata) {
148
152
  await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
149
- this.crudConfig = Object.assign({}, anexoSistemaCrudConfig);
153
+ this.crudConfig = this.entityName ? { form: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.form } : Object.assign({}, anexoSistemaCrudConfig);
154
+ gridValidateForm = { grid: anexoSistemaCrudConfig === null || anexoSistemaCrudConfig === void 0 ? void 0 : anexoSistemaCrudConfig.grid };
150
155
  }
151
156
  this.initDataUnitLoaders();
152
157
  this._currentDataUnit.addFilterProvider({
@@ -156,19 +161,21 @@ export class SnkAttach {
156
161
  interceptAction: (action) => this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement)
157
162
  });
158
163
  await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData());
159
- this.disableEditFieldsNotInForm();
164
+ this.disableEditFieldsNotInForm(gridValidateForm);
160
165
  }
161
166
  async loadAttach() {
162
167
  var _a, _b;
163
168
  this._currentFetcher = new AttachFetcher();
164
169
  this._currentDataUnit = new DataUnit(InMemoryLoader.IN_MEMORY_DATA_UNIT_NAME);
165
170
  this._currentDataUnit.pageSize = 150;
171
+ let gridValidateForm;
166
172
  this.initDataUnitLoaders();
167
173
  this._currentDataUnit.addInterceptor({
168
174
  interceptAction: (action) => {
169
175
  var _a;
170
176
  if (action.type === Action.METADATA_LOADED) {
171
- this.crudConfig = Object.assign({}, attachCrudConfig);
177
+ this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
178
+ gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
172
179
  (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.updateConfig();
173
180
  }
174
181
  return this._currentDataUnitBuilder.getInterceptions(this._currentDataUnit, action, this._crudElement);
@@ -176,9 +183,10 @@ export class SnkAttach {
176
183
  });
177
184
  if (!this._currentDataUnit.metadata) {
178
185
  await ((_a = this._currentDataUnit) === null || _a === void 0 ? void 0 : _a.loadMetadata());
179
- this.crudConfig = Object.assign({}, attachCrudConfig);
186
+ this.crudConfig = this.entityName ? { form: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.form } : Object.assign({}, attachCrudConfig);
187
+ gridValidateForm = { grid: attachCrudConfig === null || attachCrudConfig === void 0 ? void 0 : attachCrudConfig.grid };
180
188
  await ((_b = this._currentDataUnit) === null || _b === void 0 ? void 0 : _b.loadData(undefined, undefined, true, this.registerKey));
181
- this.disableEditFieldsNotInForm();
189
+ this.disableEditFieldsNotInForm(gridValidateForm);
182
190
  }
183
191
  }
184
192
  initDataUnitLoaders() {
@@ -197,12 +205,16 @@ export class SnkAttach {
197
205
  });
198
206
  }
199
207
  }
200
- disableEditFieldsNotInForm() {
201
- var _a;
202
- (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid.columns.forEach(column => {
203
- var _a;
208
+ disableEditFieldsNotInForm(gridValidateForm) {
209
+ var _a, _b, _c, _d, _e;
210
+ const gridColumns = ((_b = (_a = this._crudElement) === null || _a === void 0 ? void 0 : _a.gridConfig) === null || _b === void 0 ? void 0 : _b.columns) || ((_c = gridValidateForm === null || gridValidateForm === void 0 ? void 0 : gridValidateForm.grid) === null || _c === void 0 ? void 0 : _c.columns) || ((_e = (_d = this.crudConfig) === null || _d === void 0 ? void 0 : _d.grid) === null || _e === void 0 ? void 0 : _e.columns);
211
+ if (!!this.getGridLegacyConfigName()) {
212
+ this._currentDataUnit.disableField(LINKORFILE_COLUMN_NAME);
213
+ }
214
+ gridColumns === null || gridColumns === void 0 ? void 0 : gridColumns.forEach(column => {
215
+ var _a, _b;
204
216
  const fieldName = column.name;
205
- if (!((_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form.fields.some(field => field.name === fieldName))) {
217
+ if (!((_b = (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.form) === null || _b === void 0 ? void 0 : _b.fields.some(field => (field === null || field === void 0 ? void 0 : field.name) === fieldName))) {
206
218
  this._currentDataUnit.disableField(fieldName);
207
219
  }
208
220
  });
@@ -252,11 +264,16 @@ export class SnkAttach {
252
264
  await this._currentDataUnit.loadMetadata();
253
265
  }
254
266
  ;
267
+ getGridLegacyConfigName() {
268
+ if (this.gridLegacyConfigName)
269
+ return this.gridLegacyConfigName;
270
+ return this.entityName ? GRID_LEGACY_CONFIG_NAME + "." + this.entityName : this.entityName;
271
+ }
255
272
  render() {
256
273
  var _a, _b;
257
274
  if (!this._currentDataUnit)
258
275
  return null;
259
- return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
276
+ return (h("main", { class: "snk-attach__main" }, h("header", { class: "snk-attach__header" }, h("snk-simple-bar", { onExit: this.handleBack, messagesBuilder: this.messagesBuilder }, h("div", { slot: "rightSlot" }, h("ez-button", { class: "ez-button--primary", label: this.getMessage("snkAttach.finish"), onClick: this.handleFinish })))), h("div", { class: "snk-attach__crud-section ez-size-height--full ez-size-width--full ez-flex ez-flex--column" }, h("div", { class: "ez-box__container" }, h("snk-simple-crud", { ref: (el) => this._crudElement = el, dataUnit: this._currentDataUnit, taskbarManager: buildTaskBarManager(), gridConfig: (_a = this.crudConfig) === null || _a === void 0 ? void 0 : _a.grid, formConfig: (_b = this.crudConfig) === null || _b === void 0 ? void 0 : _b.form, useCancelConfirm: false, onActionClick: this.handleTaskbarClick, messagesBuilder: this.messagesBuilder, onDataStateChange: this.handleOnDataStateChange.bind(this), multipleSelection: true, configName: this.entityName, ignoreReadOnlyFormFields: this.entityName ? true : false, gridLegacyConfigName: this.getGridLegacyConfigName() }, h("div", { slot: "snkSimpleCrudHeader" }, h("div", { class: "ez-flex ez-flex--column" }, h("span", { class: "ez-title--primary ez-text ez-text--large ez-text--bold ez-padding-bottom--medium" }, this.getMessage("snkAttach.title")), h("span", { class: "ez-text ez-text--medium ez-text--secondary ez-padding-bottom--medium" }, this.getMessage("snkAttach.description")))))))));
260
277
  }
261
278
  static get is() { return "snk-attach"; }
262
279
  static get encapsulation() { return "scoped"; }
@@ -272,6 +289,23 @@ export class SnkAttach {
272
289
  }
273
290
  static get properties() {
274
291
  return {
292
+ "gridLegacyConfigName": {
293
+ "type": "string",
294
+ "mutable": false,
295
+ "complexType": {
296
+ "original": "string",
297
+ "resolved": "string",
298
+ "references": {}
299
+ },
300
+ "required": false,
301
+ "optional": false,
302
+ "docs": {
303
+ "tags": [],
304
+ "text": "Chave da configura\u00E7\u00E3o legado da grid."
305
+ },
306
+ "attribute": "grid-legacy-config-name",
307
+ "reflect": false
308
+ },
275
309
  "fetcherType": {
276
310
  "type": "string",
277
311
  "mutable": false,
@@ -49,6 +49,7 @@ export class SnkCrud {
49
49
  this.layoutFormConfig = false;
50
50
  this.multipleEditionEnabled = true;
51
51
  this.paginationCounterMode = 'auto';
52
+ this.layoutFormConfig = false;
52
53
  this.customContainerId = `SNK-CRUD-CUSTOM-CONTAINER-${StringUtils.generateUUID()}`;
53
54
  }
54
55
  /**
@@ -892,6 +893,24 @@ export class SnkCrud {
892
893
  "attribute": "pagination-counter-mode",
893
894
  "reflect": false,
894
895
  "defaultValue": "'auto'"
896
+ },
897
+ "layoutFormConfig": {
898
+ "type": "boolean",
899
+ "mutable": false,
900
+ "complexType": {
901
+ "original": "boolean",
902
+ "resolved": "boolean",
903
+ "references": {}
904
+ },
905
+ "required": false,
906
+ "optional": false,
907
+ "docs": {
908
+ "tags": [],
909
+ "text": "Define se o LayoutFormConfig ser\u00E1 exibido no configurador."
910
+ },
911
+ "attribute": "layout-form-config",
912
+ "reflect": false,
913
+ "defaultValue": "false"
895
914
  }
896
915
  };
897
916
  }
@@ -2,11 +2,11 @@ import { h, Host } from "@stencil/core";
2
2
  import { ApplicationContext, ObjectUtils } from "@sankhyalabs/core";
3
3
  export class SnkEntityList {
4
4
  constructor() {
5
- this._searchValue = undefined;
6
5
  this._ezListSource = [];
7
6
  this.config = undefined;
8
7
  this.rightListSlotBuilder = undefined;
9
8
  this.maxHeightList = "";
9
+ this.value = undefined;
10
10
  }
11
11
  async reloadList() {
12
12
  this.loadListSource();
@@ -68,18 +68,22 @@ export class SnkEntityList {
68
68
  }
69
69
  onEzSearchChange(evt) {
70
70
  var _a, _b, _c, _d;
71
- if (evt.detail != undefined && ((_a = (this.getListConfigValue(this.config))) === null || _a === void 0 ? void 0 : _a.find(i => { var _a; return (i === null || i === void 0 ? void 0 : i.id) == ((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); })) === undefined) {
72
- this.config = Object.assign(Object.assign({}, this.config), { value: [
73
- ...((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : []),
74
- {
75
- id: evt.detail.value,
76
- check: true,
77
- label: evt.detail.label
78
- }
79
- ] });
80
- this.loadListSource();
81
- this.valueChanged.emit((_d = this.config) === null || _d === void 0 ? void 0 : _d.value);
71
+ const newValueIsEmpty = ObjectUtils.isEmptySafetyCheck(evt.detail);
72
+ const hasConfingOnList = (_a = this.getListConfigValue(this.config)) === null || _a === void 0 ? void 0 : _a.find((i) => { var _a; return (i === null || i === void 0 ? void 0 : i.id) === ((_a = evt.detail) === null || _a === void 0 ? void 0 : _a.value); });
73
+ if (newValueIsEmpty || hasConfingOnList) {
74
+ return;
82
75
  }
76
+ this.config = Object.assign(Object.assign({}, this.config), { value: [
77
+ ...((_c = (_b = this.config) === null || _b === void 0 ? void 0 : _b.value) !== null && _c !== void 0 ? _c : []),
78
+ {
79
+ id: evt.detail.value,
80
+ check: true,
81
+ label: evt.detail.label
82
+ }
83
+ ] });
84
+ this.loadListSource();
85
+ this.value = this.config.value;
86
+ this.valueChanged.emit((_d = this.config) === null || _d === void 0 ? void 0 : _d.value);
83
87
  }
84
88
  getMessage(key, params) {
85
89
  var _a;
@@ -90,8 +94,10 @@ export class SnkEntityList {
90
94
  return (_d = (_b = (_a = config.value) === null || _a === void 0 ? void 0 : _a.elements) !== null && _b !== void 0 ? _b : (_c = config === null || config === void 0 ? void 0 : config.value) === null || _c === void 0 ? void 0 : _c.members) !== null && _d !== void 0 ? _d : config === null || config === void 0 ? void 0 : config.value;
91
95
  }
92
96
  render() {
93
- var _a, _b;
94
- return (h(Host, null, h("ez-search", { ref: elem => this._searchElement = elem, optionLoader: argument => this.optionLoader(argument), value: this._searchValue, label: (_a = this.config) === null || _a === void 0 ? void 0 : _a.label, onEzChange: evt => this.onEzSearchChange(evt), suppressEmptyOption: true }), ((_b = this._ezListSource) === null || _b === void 0 ? void 0 : _b.length) > 0 && (h("label", { class: "label" }, this.getMessage("snkEntityList.selected"))), h("div", { style: this.maxHeightList ? { 'max-height': this.maxHeightList } : {}, class: { "snk-entity-list--overflow": !!this.maxHeightList } }, h("ez-list", { ref: (el) => this._ezList = el, id: "snkEntityList", listMode: "check", dataSource: this._ezListSource, hoverFeedback: true, itemSlotBuilder: this.rightListSlotBuilder, onEzCheckChange: evt => this.ezListChangeListener(evt) }))));
97
+ var _a, _b, _c;
98
+ const isSearchPlus = ((_a = this.config.props) === null || _a === void 0 ? void 0 : _a["useSearchPlus"]) == true;
99
+ const TagName = isSearchPlus ? "ez-search-plus" : "ez-search";
100
+ return (h(Host, null, h(TagName, { ref: elem => this._searchElement = elem, optionLoader: argument => this.optionLoader(argument), label: (_b = this.config) === null || _b === void 0 ? void 0 : _b.label, onEzChange: evt => this.onEzSearchChange(evt), suppressEmptyOption: true, stopPropagateEnterKeyEvent: true }), ((_c = this._ezListSource) === null || _c === void 0 ? void 0 : _c.length) > 0 && (h("label", { class: "label" }, this.getMessage("snkEntityList.selected"))), h("div", { style: this.maxHeightList ? { 'max-height': this.maxHeightList } : {}, class: { "snk-entity-list--overflow": !!this.maxHeightList } }, h("ez-list", { ref: (el) => this._ezList = el, id: "snkEntityList", listMode: "check", dataSource: this._ezListSource, hoverFeedback: true, itemSlotBuilder: this.rightListSlotBuilder, onEzCheckChange: evt => this.ezListChangeListener(evt) }))));
95
101
  }
96
102
  static get is() { return "snk-entity-list"; }
97
103
  static get encapsulation() { return "scoped"; }
@@ -171,12 +177,31 @@ export class SnkEntityList {
171
177
  "attribute": "max-height-list",
172
178
  "reflect": false,
173
179
  "defaultValue": "\"\""
180
+ },
181
+ "value": {
182
+ "type": "unknown",
183
+ "mutable": true,
184
+ "complexType": {
185
+ "original": "IOption",
186
+ "resolved": "IOption",
187
+ "references": {
188
+ "IOption": {
189
+ "location": "import",
190
+ "path": "@sankhyalabs/ezui/dist/types/components/ez-combo-box/ez-combo-box"
191
+ }
192
+ }
193
+ },
194
+ "required": false,
195
+ "optional": false,
196
+ "docs": {
197
+ "tags": [],
198
+ "text": "Define o valor do componente"
199
+ }
174
200
  }
175
201
  };
176
202
  }
177
203
  static get states() {
178
204
  return {
179
- "_searchValue": {},
180
205
  "_ezListSource": {}
181
206
  };
182
207
  }
@@ -70,21 +70,23 @@ export class SnkFilterPersonalized {
70
70
  var _a, _b;
71
71
  const params = (_b = (_a = parentItem === null || parentItem === void 0 ? void 0 : parentItem.props) === null || _a === void 0 ? void 0 : _a.personalizedFilter) === null || _b === void 0 ? void 0 : _b.parameters;
72
72
  return params.map((param, index) => {
73
- var _a, _b, _c;
73
+ var _a, _b, _c, _d;
74
74
  const formProp = Object.assign(Object.assign({}, param), { id: parentItem.id });
75
75
  const value = (_a = parentItem.value) === null || _a === void 0 ? void 0 : _a[index];
76
76
  const elemId = 'param_' + index;
77
77
  switch (param.userInterface) {
78
78
  case UserInterface.SEARCH:
79
- return h("ez-search", { id: elemId, suppressEmptyOption: true, value: value, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
79
+ const isSearchPlus = ((_b = this.config.props) === null || _b === void 0 ? void 0 : _b["useSearchPlus"]) == true;
80
+ const TagName = isSearchPlus ? "ez-search-plus" : "ez-search";
81
+ return h(TagName, { id: elemId, suppressEmptyOption: true, value: value, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp), label: param.label, optionLoader: ({ mode, argument }) => this.doSearch(mode, argument, param) });
80
82
  case UserInterface.SWITCH:
81
83
  case UserInterface.CHECKBOX:
82
84
  const mode = UserInterface.SWITCH === param.userInterface ? CheckMode.SWITCH : CheckMode.REGULAR;
83
85
  return h("ez-check", { id: elemId, class: "ez-padding-bottom--medium", mode: mode, value: value, label: param.label, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
84
86
  case UserInterface.DECIMALNUMBER:
85
- return h("ez-number-input", { id: elemId, label: param.label, value: value, precision: ((_b = param.props) === null || _b === void 0 ? void 0 : _b.precision) || 2, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
87
+ return h("ez-number-input", { id: elemId, label: param.label, value: value, precision: ((_c = param.props) === null || _c === void 0 ? void 0 : _c.precision) || 2, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
86
88
  case UserInterface.INTEGERNUMBER:
87
- return h("ez-number-input", { id: elemId, label: param.label, value: value, precision: (_c = param.props) === null || _c === void 0 ? void 0 : _c.precision, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
89
+ return h("ez-number-input", { id: elemId, label: param.label, value: value, precision: (_d = param.props) === null || _d === void 0 ? void 0 : _d.precision, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
88
90
  case UserInterface.OPTIONSELECTOR:
89
91
  return h("ez-combo-box", { id: elemId, label: param.label, value: value, options: param.options, onEzChange: evt => this.handleFilterItemChange(evt.detail, formProp) });
90
92
  case UserInterface.DATE:
@@ -21,6 +21,7 @@ export class SnkFilterDetail {
21
21
  var _a, _b;
22
22
  this._editor && (this._editor["config"] = newValue);
23
23
  (_b = (_a = this._editor) === null || _a === void 0 ? void 0 : _a["reloadList"]) === null || _b === void 0 ? void 0 : _b.call(_a);
24
+ this._customElementObject = this.getContentEditor();
24
25
  }
25
26
  componentDidLoad() {
26
27
  if (this._element) {
@@ -157,9 +158,10 @@ export class SnkFilterDetail {
157
158
  }
158
159
  componentWillLoad() {
159
160
  this.originalConfig = ObjectUtils.copy(this.config);
161
+ this._customElementObject = this.getContentEditor();
160
162
  }
161
163
  render() {
162
- const { tag: CustomElement, props } = this.getContentEditor();
164
+ const { tag: CustomElement, props } = this._customElementObject;
163
165
  return (h(Host, null, h("div", { class: "col ez-col--sd-12 ez-align--right ez-padding-medium ez-flex--align-items-center" }, h("div", { class: "ez-text ez-title ez-title--small ez-padding--small sc-snk-filter-bar snk-filter-item__editor-header" }, this.config.detailTitle), this.getPopUpHeaderButtons()), h(CustomElement, Object.assign({ maxHeightList: '240px', ref: ref => this._editor = ref, value: this.config.value, config: this.config, onKeyDown: evt => this.onKeyDonwListener(evt), "data-element-id": this._idContentEditor, getMessage: this.getMessage, rightListSlotBuilder: item => this.buildRightSlot(item) }, props)), h("hr", { class: "sc-snk-filter-bar snk-filter__popover-rule" }), h("div", { class: "ez-col ez-col--sd-12 ez-align--right" }, this.filterCanBeCleared() && (h("ez-button", { label: this.getMessage("snkFilterBar.cleanFilter"), onClick: () => this.clear(), size: "small" })), h("ez-button", { ref: ref => this._applyButton = ref, label: this.getMessage("snkFilterBar.applyFilter"), onClick: () => this.apply(), size: "small", class: "ez-button--primary ez-padding-left--medium" }))));
164
166
  }
165
167
  static get is() { return "snk-filter-detail"; }
@@ -0,0 +1,4 @@
1
+ ez-popover-core {
2
+ --ez-popover__box--z-index: var(--elevation--20, 20);
3
+ --ez-popover__box--overlay-z-index: var(--elevation--16, 16);
4
+ }