@sankhyalabs/ezui 0.0.0-bugfix-dev-kb-67792.1 → 0.0.0-bugfix-dev-KB-65214.1

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 (184) hide show
  1. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  2. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-card-item_3.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +31 -3
  16. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-form.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-grid.cjs.entry.js +5 -5
  24. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -3
  29. package/dist/cjs/ez-modal.cjs.entry.js +2 -8
  30. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-popup.cjs.entry.js +3 -10
  34. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-search.cjs.entry.js +2 -5
  37. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-tabselector.cjs.entry.js +3 -9
  43. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  50. package/dist/cjs/ezui.cjs.js +2 -2
  51. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  52. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +3 -0
  53. package/dist/cjs/loader.cjs.js +2 -2
  54. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +43 -2
  55. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -0
  56. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +0 -1
  57. package/dist/collection/components/ez-grid/ez-grid.js +0 -3
  58. package/dist/collection/components/ez-modal/ez-modal.js +1 -25
  59. package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -20
  60. package/dist/collection/components/ez-popup/ez-popup.css +1 -5
  61. package/dist/collection/components/ez-popup/ez-popup.js +1 -26
  62. package/dist/collection/components/ez-search/ez-search.js +1 -22
  63. package/dist/collection/components/ez-tabselector/ez-tabselector.js +2 -34
  64. package/dist/custom-elements/index.js +44 -39
  65. package/dist/esm/ez-actions-button.entry.js +1 -1
  66. package/dist/esm/ez-alert-list.entry.js +1 -1
  67. package/dist/esm/ez-alert.entry.js +1 -1
  68. package/dist/esm/ez-application.entry.js +1 -1
  69. package/dist/esm/ez-badge.entry.js +1 -1
  70. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  71. package/dist/esm/ez-button.entry.js +1 -1
  72. package/dist/esm/ez-calendar.entry.js +1 -1
  73. package/dist/esm/ez-card-item_3.entry.js +1 -1
  74. package/dist/esm/ez-chart.entry.js +1 -1
  75. package/dist/esm/ez-check.entry.js +1 -1
  76. package/dist/esm/ez-chip.entry.js +1 -1
  77. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  78. package/dist/esm/ez-combo-box.entry.js +1 -1
  79. package/dist/esm/ez-custom-form-input_2.entry.js +32 -4
  80. package/dist/esm/ez-date-input.entry.js +1 -1
  81. package/dist/esm/ez-date-time-input.entry.js +1 -1
  82. package/dist/esm/ez-dialog.entry.js +1 -1
  83. package/dist/esm/ez-dropdown.entry.js +1 -1
  84. package/dist/esm/ez-file-item.entry.js +1 -1
  85. package/dist/esm/ez-form-view.entry.js +1 -1
  86. package/dist/esm/ez-form.entry.js +1 -1
  87. package/dist/esm/ez-grid.entry.js +5 -5
  88. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  89. package/dist/esm/ez-icon.entry.js +1 -1
  90. package/dist/esm/ez-list.entry.js +1 -1
  91. package/dist/esm/ez-loading-bar.entry.js +1 -1
  92. package/dist/esm/ez-modal-container.entry.js +2 -3
  93. package/dist/esm/ez-modal.entry.js +2 -8
  94. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  95. package/dist/esm/ez-number-input.entry.js +1 -1
  96. package/dist/esm/ez-popover.entry.js +1 -1
  97. package/dist/esm/ez-popup.entry.js +3 -10
  98. package/dist/esm/ez-radio-button.entry.js +1 -1
  99. package/dist/esm/ez-scroller_2.entry.js +1 -1
  100. package/dist/esm/ez-search.entry.js +2 -5
  101. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  102. package/dist/esm/ez-skeleton.entry.js +1 -1
  103. package/dist/esm/ez-split-button.entry.js +1 -1
  104. package/dist/esm/ez-split-item.entry.js +1 -1
  105. package/dist/esm/ez-split-panel.entry.js +1 -1
  106. package/dist/esm/ez-tabselector.entry.js +3 -9
  107. package/dist/esm/ez-text-area.entry.js +1 -1
  108. package/dist/esm/ez-text-input.entry.js +1 -1
  109. package/dist/esm/ez-time-input.entry.js +1 -1
  110. package/dist/esm/ez-toast.entry.js +1 -1
  111. package/dist/esm/ez-tree.entry.js +1 -1
  112. package/dist/esm/ez-upload.entry.js +1 -1
  113. package/dist/esm/ez-view-stack.entry.js +1 -1
  114. package/dist/esm/ezui.js +3 -3
  115. package/dist/esm/filter-column.entry.js +1 -1
  116. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +3 -1
  117. package/dist/esm/loader.js +3 -3
  118. package/dist/ezui/ezui.esm.js +1 -1
  119. package/dist/ezui/p-034e21ca.entry.js +1 -0
  120. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  121. package/dist/ezui/{p-5b205c80.entry.js → p-044d46d5.entry.js} +1 -1
  122. package/dist/ezui/p-0eebdc88.entry.js +1 -0
  123. package/dist/ezui/{p-1285c902.entry.js → p-11b09aa1.entry.js} +1 -1
  124. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  125. package/dist/ezui/{p-8888d9ed.entry.js → p-1b08bf3c.entry.js} +1 -1
  126. package/dist/ezui/{p-af95cd16.entry.js → p-24ca32a3.entry.js} +1 -1
  127. package/dist/ezui/{p-7922142b.entry.js → p-2af4e2de.entry.js} +1 -1
  128. package/dist/ezui/{p-baf80b13.entry.js → p-30951bd7.entry.js} +1 -1
  129. package/dist/ezui/{p-922ac38b.entry.js → p-31674f8e.entry.js} +1 -1
  130. package/dist/ezui/{p-bf79aaa1.entry.js → p-33792b2b.entry.js} +1 -1
  131. package/dist/ezui/{p-e85c48d7.entry.js → p-36180f4d.entry.js} +1 -1
  132. package/dist/ezui/{p-7bc07c31.entry.js → p-3f8c33e0.entry.js} +1 -1
  133. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  134. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  135. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  136. package/dist/ezui/{p-ecc2c1ec.entry.js → p-752c4069.entry.js} +1 -1
  137. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  138. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  139. package/dist/ezui/{p-3b4eeeb6.entry.js → p-81cffa53.entry.js} +1 -1
  140. package/dist/ezui/{p-a31b9c90.entry.js → p-81f99ace.entry.js} +1 -1
  141. package/dist/ezui/{p-072e6347.entry.js → p-82ac8b06.entry.js} +1 -1
  142. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  143. package/dist/ezui/{p-bcb53f27.entry.js → p-868b56f7.entry.js} +1 -1
  144. package/dist/ezui/{p-85c8baae.entry.js → p-8eef0f70.entry.js} +1 -1
  145. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  146. package/dist/ezui/{p-3faa2b46.entry.js → p-9634631d.entry.js} +1 -1
  147. package/dist/ezui/p-9a11e223.entry.js +1 -0
  148. package/dist/ezui/{p-7af81663.entry.js → p-9a23d513.entry.js} +1 -1
  149. package/dist/ezui/{p-84e439b9.entry.js → p-9aa27e69.entry.js} +1 -1
  150. package/dist/ezui/{p-784fe207.entry.js → p-9c2e2d68.entry.js} +1 -1
  151. package/dist/ezui/{p-9ab22a07.entry.js → p-a35b41e6.entry.js} +1 -1
  152. package/dist/ezui/{p-9050d2cd.entry.js → p-b0e71d23.entry.js} +1 -1
  153. package/dist/ezui/{p-32e553e5.entry.js → p-b150ccd3.entry.js} +2 -2
  154. package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
  155. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  156. package/dist/ezui/{p-5bd5e68f.entry.js → p-c3b7a23e.entry.js} +1 -1
  157. package/dist/ezui/p-c5a80844.entry.js +1 -0
  158. package/dist/ezui/p-cd1a2e6b.entry.js +1 -0
  159. package/dist/ezui/{p-bae4e180.entry.js → p-dbeee5aa.entry.js} +1 -1
  160. package/dist/ezui/{p-2097d0cf.entry.js → p-de870657.entry.js} +1 -1
  161. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  162. package/dist/ezui/p-e151e795.entry.js +1 -0
  163. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  164. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  165. package/dist/ezui/{p-fcf0acce.entry.js → p-ee9315ff.entry.js} +1 -1
  166. package/dist/ezui/{p-650e4b6d.entry.js → p-f1c2c19e.entry.js} +1 -1
  167. package/dist/ezui/{p-13d2fe2d.entry.js → p-f1c3f85d.entry.js} +1 -1
  168. package/dist/ezui/{p-49456b34.entry.js → p-f291db18.entry.js} +1 -1
  169. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  170. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  171. package/dist/types/components/ez-modal/ez-modal.d.ts +0 -5
  172. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +0 -4
  173. package/dist/types/components/ez-popup/ez-popup.d.ts +0 -6
  174. package/dist/types/components/ez-search/ez-search.d.ts +0 -4
  175. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +1 -2
  176. package/dist/types/components.d.ts +0 -33
  177. package/package.json +1 -1
  178. package/dist/ezui/p-34b6916c.entry.js +0 -1
  179. package/dist/ezui/p-42533ea4.entry.js +0 -1
  180. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  181. package/dist/ezui/p-8f0144f6.entry.js +0 -1
  182. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  183. package/dist/ezui/p-c0d9c4f8.entry.js +0 -1
  184. package/dist/ezui/p-c36b7c56.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import { CustomEditorSource } from '../../../utils/customEditor/interfaces/ICustomEditor';
3
- import { HTMLBuilder, StringUtils } from '@sankhyalabs/core';
3
+ import { HTMLBuilder, ObjectUtils, StringUtils } from '@sankhyalabs/core';
4
4
  export class EzCustomFormInput {
5
5
  constructor() {
6
6
  this.gui = undefined;
@@ -11,6 +11,26 @@ export class EzCustomFormInput {
11
11
  this.builderFallback = undefined;
12
12
  this.selectedRecord = undefined;
13
13
  }
14
+ watchValue() {
15
+ this.handleValue(this.gui);
16
+ }
17
+ watchCustomEditor() {
18
+ this.getContent();
19
+ }
20
+ watchFormViewField(newValue, oldValue) {
21
+ if (!ObjectUtils.equals(newValue, oldValue))
22
+ this.getContent();
23
+ }
24
+ watchDetailContext() {
25
+ this.getContent();
26
+ }
27
+ watchBuilderFallback() {
28
+ this.getContent();
29
+ }
30
+ watchSelectedRecord(newValue, oldValue) {
31
+ if (newValue['__record__id__'] != oldValue['__record__id__'])
32
+ this.getContent();
33
+ }
14
34
  /**
15
35
  * Aplica foco no campo.
16
36
  */
@@ -89,7 +109,7 @@ export class EzCustomFormInput {
89
109
  child.$attrs$.value = this.value;
90
110
  });
91
111
  }
92
- componentWillRender() {
112
+ componentWillLoad() {
93
113
  this.getContent();
94
114
  }
95
115
  render() {
@@ -275,4 +295,25 @@ export class EzCustomFormInput {
275
295
  }
276
296
  };
277
297
  }
298
+ static get watchers() {
299
+ return [{
300
+ "propName": "value",
301
+ "methodName": "watchValue"
302
+ }, {
303
+ "propName": "customEditor",
304
+ "methodName": "watchCustomEditor"
305
+ }, {
306
+ "propName": "formViewField",
307
+ "methodName": "watchFormViewField"
308
+ }, {
309
+ "propName": "detailContext",
310
+ "methodName": "watchDetailContext"
311
+ }, {
312
+ "propName": "builderFallback",
313
+ "methodName": "watchBuilderFallback"
314
+ }, {
315
+ "propName": "selectedRecord",
316
+ "methodName": "watchSelectedRecord"
317
+ }];
318
+ }
278
319
  }
@@ -176,6 +176,10 @@ export default class AgGridController {
176
176
  else {
177
177
  this._grid = new Grid(container, this._gridOptions);
178
178
  }
179
+ container.addEventListener('focusout', (event) => {
180
+ if (!container.contains(event.relatedTarget))
181
+ this._gridOptions.api.clearFocusedCell();
182
+ });
179
183
  const selection = (_a = this._dataUnit) === null || _a === void 0 ? void 0 : _a.getSelectionInfo();
180
184
  if (selection === null || selection === void 0 ? void 0 : selection.isAllRecords()) {
181
185
  this.selectAll(true);
@@ -9,7 +9,6 @@ export const buildSearch = ({ name, required, readOnly, eGridCell, dataUnit }) =
9
9
  />`);
10
10
  const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
11
11
  ezSearch.optionLoader = (argument) => loader(argument, name, dataUnit);
12
- ezSearch.fromGrid = true;
13
12
  ezSearch.listOptionsPosition = { verticalPosition: 29, bottomLimit: getViewPortHeight(eGridCell), hardPosition: true };
14
13
  ezSearch.valueGetter = () => ezSearch.getValueAsync();
15
14
  return ezSearch;
@@ -454,9 +454,6 @@ export class EzGrid {
454
454
  }
455
455
  componentDidUpdate() {
456
456
  this._gridController.setAutoFocus(this.autoFocus);
457
- if (this.dataUnit) {
458
- this.setSelection(this.dataUnit.getSelectionInfo());
459
- }
460
457
  }
461
458
  getDataSource() {
462
459
  var _a;
@@ -8,7 +8,6 @@ export class EzModal {
8
8
  this.opened = true;
9
9
  this.closeEsc = false;
10
10
  this.closeOutsideClick = false;
11
- this.closeOutsideLeave = false;
12
11
  this.scrim = "medium";
13
12
  }
14
13
  observeOpened() {
@@ -40,11 +39,6 @@ export class EzModal {
40
39
  this.closeModal();
41
40
  }
42
41
  }
43
- onMouseLeaveHandler() {
44
- if (this.closeOutsideLeave) {
45
- this.closeModal();
46
- }
47
- }
48
42
  render() {
49
43
  const positionSufix = this.align === "left" ? "left" : "right";
50
44
  const regularVerticalPaddingClass = this.heightMode === "regular" ? 'modal__vertical-padding' : '';
@@ -52,7 +46,7 @@ export class EzModal {
52
46
  const scrimType = `modal__screen-${this.scrim}`;
53
47
  return (h(Host, null, this.opened
54
48
  ?
55
- h("div", { ref: ref => this._modalRef = ref, class: `modal ${scrimType} ${regularVerticalPaddingClass}`, onMouseDown: evt => this.onMouseDownHandler(evt), tabIndex: -1 }, h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, h("div", { onMouseLeave: () => this.onMouseLeaveHandler(), class: `modal__content ${modalContentHeightMode} ${this.modalSize}` }, h("slot", null))))
49
+ h("div", { ref: ref => this._modalRef = ref, class: `modal ${scrimType} ${regularVerticalPaddingClass}`, onMouseDown: evt => this.onMouseDownHandler(evt), tabIndex: -1 }, h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, h("div", { class: `modal__content ${modalContentHeightMode} ${this.modalSize}` }, h("slot", null))))
56
50
  :
57
51
  undefined));
58
52
  }
@@ -180,24 +174,6 @@ export class EzModal {
180
174
  "reflect": false,
181
175
  "defaultValue": "false"
182
176
  },
183
- "closeOutsideLeave": {
184
- "type": "boolean",
185
- "mutable": false,
186
- "complexType": {
187
- "original": "boolean",
188
- "resolved": "boolean",
189
- "references": {}
190
- },
191
- "required": false,
192
- "optional": true,
193
- "docs": {
194
- "tags": [],
195
- "text": "Define se o modal ser\u00E1 fechado se o mouse sair para fora do conte\u00FAdo."
196
- },
197
- "attribute": "close-outside-leave",
198
- "reflect": false,
199
- "defaultValue": "false"
200
- },
201
177
  "scrim": {
202
178
  "type": "string",
203
179
  "mutable": false,
@@ -11,7 +11,6 @@ export class EzModalContainer {
11
11
  this.okButtonLabel = undefined;
12
12
  this.cancelButtonStatus = undefined;
13
13
  this.okButtonStatus = undefined;
14
- this.showCloseButton = true;
15
14
  }
16
15
  async handleEzModalAction(event) {
17
16
  var _a;
@@ -48,7 +47,7 @@ export class EzModalContainer {
48
47
  this._closeButton.focus();
49
48
  }
50
49
  render() {
51
- return (h(Host, null, h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusLast() }), h("div", { ref: ref => this._modalRef = ref, tabIndex: -1, class: "ez-modal-container__header-container" }, this.showTitleBar && (h("div", { class: "ez-modal-container__header ez-margin-bottom--large" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle && (h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle))), (this.showCloseButton && h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction.CLOSE) }, h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" })))))), h("div", { class: "ez-modal-container__content" }, h("slot", null)), h("div", { class: "ez-modal-container__footer" }, this.cancelIsVisible() && (h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.CANCEL) })), this.okIsVisible() && (h("ez-button", { ref: ref => this._okButton = ref, class: "ez-button--primary", label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.OK) }))), h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusFirst() })));
50
+ return (h(Host, null, h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusLast() }), h("div", { ref: ref => this._modalRef = ref, tabIndex: -1, class: "ez-modal-container__header-container" }, this.showTitleBar && (h("div", { class: "ez-modal-container__header ez-margin-bottom--large" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle && (h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle))), h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction.CLOSE) }, h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" }))))), h("div", { class: "ez-modal-container__content" }, h("slot", null)), h("div", { class: "ez-modal-container__footer" }, this.cancelIsVisible() && (h("ez-button", { label: this.cancelButtonLabel, enabled: this.cancelButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.CANCEL) })), this.okIsVisible() && (h("ez-button", { ref: ref => this._okButton = ref, class: "ez-button--primary", label: this.okButtonLabel, enabled: this.okButtonStatus !== ModalButtonStatus.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction.OK) }))), h("button", { class: "ez-modal-container__focus-ctrl", onFocusin: () => this.focusFirst() })));
52
51
  }
53
52
  static get is() { return "ez-modal-container"; }
54
53
  static get encapsulation() { return "scoped"; }
@@ -183,24 +182,6 @@ export class EzModalContainer {
183
182
  },
184
183
  "attribute": "ok-button-status",
185
184
  "reflect": false
186
- },
187
- "showCloseButton": {
188
- "type": "boolean",
189
- "mutable": false,
190
- "complexType": {
191
- "original": "boolean",
192
- "resolved": "boolean",
193
- "references": {}
194
- },
195
- "required": false,
196
- "optional": true,
197
- "docs": {
198
- "tags": [],
199
- "text": "Define a visibilidade do bot\u00E3o de fechar."
200
- },
201
- "attribute": "show-close-button",
202
- "reflect": false,
203
- "defaultValue": "true"
204
185
  }
205
186
  };
206
187
  }
@@ -68,17 +68,13 @@
68
68
  border-radius: 12px;
69
69
  box-shadow: 0px 0px 16px rgba(0, 38, 111, 0.122);
70
70
  box-sizing: border-box;
71
- padding: var(--ez-popup__container--padding);
71
+ padding: var(--ez-popup__container--padding)
72
72
  }
73
73
 
74
74
  .popup__container--auto {
75
75
  height: auto;
76
76
  }
77
77
 
78
- .popup__overflow-y--auto {
79
- overflow-y: auto;
80
- }
81
-
82
78
  .popup__content {
83
79
  box-sizing: border-box;
84
80
  height: 100%;
@@ -15,7 +15,6 @@ export class EzPopup {
15
15
  this.useHeader = true;
16
16
  this.heightMode = "full";
17
17
  this.ezTitle = undefined;
18
- this.enabledScroll = false;
19
18
  }
20
19
  observeConfig() {
21
20
  this.manageOverflow();
@@ -53,17 +52,11 @@ export class EzPopup {
53
52
  getGridSize() {
54
53
  return this._sizeClasses[this.size] || this._sizeClasses["medium"];
55
54
  }
56
- handlePopupHeight() {
57
- return this.heightMode === 'auto' ? 'popup__container--auto' : '';
58
- }
59
- handlePopupOverflowY() {
60
- return this.enabledScroll ? 'popup__overflow-y--auto' : '';
61
- }
62
55
  componentDidRender() {
63
56
  this.manageOverlay();
64
57
  }
65
58
  render() {
66
- return (h(Host, null, this.opened ? (h("div", { class: "overlay", ref: ref => this._popupRef = ref, tabIndex: -1 }, h("div", { class: "popup col " + this.getGridSize() }, h("div", { class: `popup__container ${(this.handlePopupHeight())} ${this.handlePopupOverflowY()}` }, h("div", { class: "popup__content" }, h("div", { class: "popup__header " + (this.useHeader ? "popup__header--padding" : "") }, this.useHeader &&
59
+ return (h(Host, null, this.opened ? (h("div", { class: "overlay", ref: ref => this._popupRef = ref, tabIndex: -1 }, h("div", { class: "popup col " + this.getGridSize() }, h("div", { class: "popup__container " + (this.heightMode === "auto" ? "popup__container--auto" : "") }, h("div", { class: "popup__content" }, h("div", { class: "popup__header " + (this.useHeader ? "popup__header--padding" : "") }, this.useHeader &&
67
60
  h(Fragment, null, !!this.ezTitle && h("div", { class: "popup__title" }, this.ezTitle), h("button", { class: this.ezTitle ? "btn-close" : "btn-close btn-close--solo", onClick: () => { this.opened = false; this.ezClosePopup.emit(); } }))), h("div", { class: "popup__expandable-content" }, h("slot", null))))))) : undefined));
68
61
  }
69
62
  static get is() { return "ez-popup"; }
@@ -168,24 +161,6 @@ export class EzPopup {
168
161
  },
169
162
  "attribute": "ez-title",
170
163
  "reflect": false
171
- },
172
- "enabledScroll": {
173
- "type": "boolean",
174
- "mutable": false,
175
- "complexType": {
176
- "original": "boolean",
177
- "resolved": "boolean",
178
- "references": {}
179
- },
180
- "required": false,
181
- "optional": false,
182
- "docs": {
183
- "tags": [],
184
- "text": "Possibilita scroll vertical no conte\u00FAdo interno do componente"
185
- },
186
- "attribute": "enabled-scroll",
187
- "reflect": false,
188
- "defaultValue": "false"
189
164
  }
190
165
  };
191
166
  }
@@ -35,7 +35,6 @@ export class EzSearch {
35
35
  this.ignoreLimitCharsToSearch = false;
36
36
  this.options = undefined;
37
37
  this.suppressSearch = false;
38
- this.fromGrid = false;
39
38
  }
40
39
  observeErrorMessage() {
41
40
  var _a;
@@ -68,8 +67,6 @@ export class EzSearch {
68
67
  }
69
68
  }
70
69
  observeOptions(newOptions, oldOptions) {
71
- if (!newOptions.length && this.fromGrid)
72
- return;
73
70
  if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
74
71
  return;
75
72
  this.loadOptions(SearchMode.PRELOAD);
@@ -662,7 +659,7 @@ export class EzSearch {
662
659
  render() {
663
660
  var _a;
664
661
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
665
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.fromGrid)
662
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
666
663
  ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
667
664
  : undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
668
665
  && this._visibleOptions.length === 0
@@ -987,24 +984,6 @@ export class EzSearch {
987
984
  "attribute": "suppress-search",
988
985
  "reflect": false,
989
986
  "defaultValue": "false"
990
- },
991
- "fromGrid": {
992
- "type": "boolean",
993
- "mutable": false,
994
- "complexType": {
995
- "original": "boolean",
996
- "resolved": "boolean",
997
- "references": {}
998
- },
999
- "required": false,
1000
- "optional": false,
1001
- "docs": {
1002
- "tags": [],
1003
- "text": "Informa se o componente est\u00E1 instanciado de dentro de uma grade"
1004
- },
1005
- "attribute": "from-grid",
1006
- "reflect": false,
1007
- "defaultValue": "false"
1008
987
  }
1009
988
  };
1010
989
  }
@@ -67,17 +67,11 @@ export class EzTabselector {
67
67
  this.processesTabs();
68
68
  }
69
69
  }
70
- async goToTab(tabIndex, silent = false) {
71
- const tab = this._processedTabs.find(tab => tab.index === tabIndex);
72
- this.handleTabClick(tab, !silent);
73
- }
74
- handleTabClick(tab, emitChange = true) {
70
+ handleTabClick(tab) {
75
71
  this.selectedIndex = tab.index;
76
72
  this._focusedIndex = undefined;
77
73
  this.selectedTab = tab.tabKey;
78
- if (emitChange) {
79
- this.ezChange.emit(tab);
80
- }
74
+ this.ezChange.emit(tab);
81
75
  this.setFocusedBtn(false, tab.index);
82
76
  }
83
77
  componentWillLoad() {
@@ -322,32 +316,6 @@ export class EzTabselector {
322
316
  }
323
317
  }];
324
318
  }
325
- static get methods() {
326
- return {
327
- "goToTab": {
328
- "complexType": {
329
- "signature": "(tabIndex: number, silent?: boolean) => Promise<void>",
330
- "parameters": [{
331
- "tags": [],
332
- "text": ""
333
- }, {
334
- "tags": [],
335
- "text": ""
336
- }],
337
- "references": {
338
- "Promise": {
339
- "location": "global"
340
- }
341
- },
342
- "return": "Promise<void>"
343
- },
344
- "docs": {
345
- "text": "",
346
- "tags": []
347
- }
348
- }
349
- };
350
- }
351
319
  static get elementRef() { return "_hostElem"; }
352
320
  static get watchers() {
353
321
  return [{