@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-85772.0 → 0.0.0-bugfix-dev-KB-87769.0

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 (228) hide show
  1. package/dist/cjs/{DataBinder-c2060474.js → DataBinder-b9973a19.js} +39 -11
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-card-item_2.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-check.cjs.entry.js +19 -11
  13. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +2 -2
  16. package/dist/cjs/ez-combo-box.cjs.entry.js +3 -2
  17. package/dist/cjs/ez-date-input.cjs.entry.js +3 -2
  18. package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -2
  19. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-form.cjs.entry.js +2 -2
  26. package/dist/cjs/ez-grid.cjs.entry.js +53 -17
  27. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-number-input.cjs.entry.js +3 -2
  35. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-search-plus.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-search.cjs.entry.js +3 -2
  43. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-text-area.cjs.entry.js +25 -4
  50. package/dist/cjs/ez-text-input.cjs.entry.js +28 -4
  51. package/dist/cjs/ez-time-input.cjs.entry.js +3 -2
  52. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  55. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  57. package/dist/cjs/ezui.cjs.js +2 -2
  58. package/dist/cjs/filter-column.cjs.entry.js +15 -5
  59. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +0 -3
  60. package/dist/cjs/loader.cjs.js +2 -2
  61. package/dist/collection/components/ez-check/ez-check.css +9 -0
  62. package/dist/collection/components/ez-check/ez-check.js +34 -9
  63. package/dist/collection/components/ez-combo-box/ez-combo-box.js +19 -1
  64. package/dist/collection/components/ez-date-input/ez-date-input.js +19 -1
  65. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +19 -1
  66. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +38 -8
  67. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +4 -2
  68. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +9 -5
  69. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +14 -4
  70. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
  71. package/dist/collection/components/ez-number-input/ez-number-input.js +19 -1
  72. package/dist/collection/components/ez-search/ez-search.js +19 -1
  73. package/dist/collection/components/ez-search-plus/ez-search-plus.js +40 -16
  74. package/dist/collection/components/ez-text-area/ez-text-area.js +47 -2
  75. package/dist/collection/components/ez-text-input/ez-text-input.js +47 -3
  76. package/dist/collection/components/ez-time-input/ez-time-input.js +19 -1
  77. package/dist/collection/utils/form/DataBinder.js +40 -12
  78. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  79. package/dist/custom-elements/index.js +194 -62
  80. package/dist/esm/{DataBinder-89946126.js → DataBinder-1035e36f.js} +40 -12
  81. package/dist/esm/ez-actions-button.entry.js +1 -1
  82. package/dist/esm/ez-alert-list.entry.js +1 -1
  83. package/dist/esm/ez-alert.entry.js +1 -1
  84. package/dist/esm/ez-application.entry.js +1 -1
  85. package/dist/esm/ez-badge.entry.js +1 -1
  86. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  87. package/dist/esm/ez-button.entry.js +1 -1
  88. package/dist/esm/ez-calendar.entry.js +1 -1
  89. package/dist/esm/ez-card-item_2.entry.js +1 -1
  90. package/dist/esm/ez-chart.entry.js +1 -1
  91. package/dist/esm/ez-check.entry.js +19 -11
  92. package/dist/esm/ez-chip.entry.js +1 -1
  93. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  94. package/dist/esm/ez-combo-box-list_3.entry.js +2 -2
  95. package/dist/esm/ez-combo-box.entry.js +3 -2
  96. package/dist/esm/ez-date-input.entry.js +3 -2
  97. package/dist/esm/ez-date-time-input.entry.js +3 -2
  98. package/dist/esm/ez-dialog.entry.js +1 -1
  99. package/dist/esm/ez-double-list.entry.js +1 -1
  100. package/dist/esm/ez-dropdown.entry.js +1 -1
  101. package/dist/esm/ez-file-item.entry.js +1 -1
  102. package/dist/esm/ez-filter-input.entry.js +1 -1
  103. package/dist/esm/ez-form-view.entry.js +1 -1
  104. package/dist/esm/ez-form.entry.js +2 -2
  105. package/dist/esm/ez-grid.entry.js +54 -18
  106. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  107. package/dist/esm/ez-icon.entry.js +1 -1
  108. package/dist/esm/ez-list.entry.js +1 -1
  109. package/dist/esm/ez-loading-bar.entry.js +1 -1
  110. package/dist/esm/ez-modal-container.entry.js +1 -1
  111. package/dist/esm/ez-modal.entry.js +1 -1
  112. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  113. package/dist/esm/ez-number-input.entry.js +3 -2
  114. package/dist/esm/ez-popover-plus_3.entry.js +1 -1
  115. package/dist/esm/ez-popover.entry.js +1 -1
  116. package/dist/esm/ez-popup.entry.js +1 -1
  117. package/dist/esm/ez-radio-button.entry.js +1 -1
  118. package/dist/esm/ez-scroller_2.entry.js +1 -1
  119. package/dist/esm/ez-search-plus.entry.js +1 -1
  120. package/dist/esm/ez-search-result-list.entry.js +1 -1
  121. package/dist/esm/ez-search.entry.js +3 -2
  122. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  123. package/dist/esm/ez-skeleton.entry.js +1 -1
  124. package/dist/esm/ez-split-button.entry.js +1 -1
  125. package/dist/esm/ez-split-item.entry.js +1 -1
  126. package/dist/esm/ez-split-panel.entry.js +1 -1
  127. package/dist/esm/ez-tabselector.entry.js +1 -1
  128. package/dist/esm/ez-text-area.entry.js +25 -4
  129. package/dist/esm/ez-text-input.entry.js +28 -4
  130. package/dist/esm/ez-time-input.entry.js +3 -2
  131. package/dist/esm/ez-toast.entry.js +1 -1
  132. package/dist/esm/ez-tooltip.entry.js +1 -1
  133. package/dist/esm/ez-tree.entry.js +1 -1
  134. package/dist/esm/ez-upload.entry.js +1 -1
  135. package/dist/esm/ez-view-stack.entry.js +1 -1
  136. package/dist/esm/ezui.js +3 -3
  137. package/dist/esm/filter-column.entry.js +15 -5
  138. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +1 -3
  139. package/dist/esm/loader.js +3 -3
  140. package/dist/ezui/ezui.esm.js +1 -1
  141. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  142. package/dist/ezui/{p-b8344ae8.entry.js → p-03c106f6.entry.js} +1 -1
  143. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  144. package/dist/ezui/{p-1f7241cd.entry.js → p-0bffeffc.entry.js} +1 -1
  145. package/dist/ezui/p-15ea0c98.js +1 -0
  146. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  147. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  148. package/dist/ezui/{p-cf33bc48.entry.js → p-20c024f7.entry.js} +1 -1
  149. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  150. package/dist/ezui/{p-8f49705f.entry.js → p-2872fd16.entry.js} +1 -1
  151. package/dist/ezui/{p-06f1b8e4.entry.js → p-288631d1.entry.js} +1 -1
  152. package/dist/ezui/{p-1fefb37a.entry.js → p-2b4df33d.entry.js} +1 -1
  153. package/dist/ezui/p-3ba9565c.entry.js +1 -0
  154. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  155. package/dist/ezui/p-496f7832.entry.js +1 -0
  156. package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
  157. package/dist/ezui/{p-2f77f563.entry.js → p-4cf0aaeb.entry.js} +1 -1
  158. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  159. package/dist/ezui/{p-9066b0b0.entry.js → p-56fe5341.entry.js} +1 -1
  160. package/dist/ezui/p-5a14f506.entry.js +1 -0
  161. package/dist/ezui/{p-0f658cfd.entry.js → p-5ec0ae79.entry.js} +1 -1
  162. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  163. package/dist/ezui/p-629d15ed.entry.js +1 -0
  164. package/dist/ezui/{p-5b8639c0.entry.js → p-6754489a.entry.js} +1 -1
  165. package/dist/ezui/{p-b9255e16.entry.js → p-6825bdc7.entry.js} +1 -1
  166. package/dist/ezui/{p-bab2bb93.entry.js → p-6b39b79a.entry.js} +2 -2
  167. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  168. package/dist/ezui/p-6f4681f8.entry.js +1 -0
  169. package/dist/ezui/p-7019f782.entry.js +1 -0
  170. package/dist/ezui/{p-f6a88217.entry.js → p-7742802c.entry.js} +1 -1
  171. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  172. package/dist/ezui/{p-2069c78a.entry.js → p-7e677b7b.entry.js} +1 -1
  173. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  174. package/dist/ezui/{p-ed48a632.entry.js → p-9478b13b.entry.js} +1 -1
  175. package/dist/ezui/{p-ddb22a70.entry.js → p-9567b31a.entry.js} +1 -1
  176. package/dist/ezui/{p-18e71523.entry.js → p-9c5cd3b2.entry.js} +1 -1
  177. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  178. package/dist/ezui/{p-0cfbbe82.entry.js → p-a4cee65d.entry.js} +1 -1
  179. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  180. package/dist/ezui/p-b81881ac.entry.js +1 -0
  181. package/dist/ezui/{p-926a0bde.entry.js → p-bac0f920.entry.js} +1 -1
  182. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  183. package/dist/ezui/{p-e18c7afe.entry.js → p-bf9dec89.entry.js} +1 -1
  184. package/dist/ezui/p-c00df4be.entry.js +1 -0
  185. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  186. package/dist/ezui/p-cb75eb46.entry.js +1 -0
  187. package/dist/ezui/{p-07594da0.entry.js → p-d47dabdf.entry.js} +1 -1
  188. package/dist/ezui/{p-708b196e.entry.js → p-da1b4a38.entry.js} +1 -1
  189. package/dist/ezui/{p-c7035d65.entry.js → p-dc73e1fe.entry.js} +1 -1
  190. package/dist/ezui/{p-2f351332.entry.js → p-e06a9886.entry.js} +1 -1
  191. package/dist/ezui/{p-9e95bfeb.entry.js → p-e6a9041d.entry.js} +1 -1
  192. package/dist/ezui/{p-000159dc.entry.js → p-e75c7a23.entry.js} +1 -1
  193. package/dist/ezui/p-ebd23857.entry.js +1 -0
  194. package/dist/ezui/{p-72731b9b.entry.js → p-ecaac11f.entry.js} +1 -1
  195. package/dist/ezui/{p-8d9ab0b0.entry.js → p-f4861c6a.entry.js} +1 -1
  196. package/dist/ezui/{p-3eaa0f67.entry.js → p-f5a30e35.entry.js} +1 -1
  197. package/dist/ezui/{p-bcffc6c5.entry.js → p-f6316720.entry.js} +1 -1
  198. package/dist/ezui/{p-44b39e81.entry.js → p-fa6732f2.entry.js} +1 -1
  199. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  200. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +4 -0
  201. package/dist/types/components/ez-date-input/ez-date-input.d.ts +4 -0
  202. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +4 -0
  203. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -0
  204. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -0
  205. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
  206. package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
  207. package/dist/types/components/ez-number-input/ez-number-input.d.ts +4 -0
  208. package/dist/types/components/ez-search/ez-search.d.ts +4 -0
  209. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +8 -8
  210. package/dist/types/components/ez-text-area/ez-text-area.d.ts +8 -0
  211. package/dist/types/components/ez-text-input/ez-text-input.d.ts +9 -0
  212. package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
  213. package/dist/types/components.d.ts +88 -16
  214. package/dist/types/utils/form/DataBinder.d.ts +4 -2
  215. package/package.json +1 -1
  216. package/dist/ezui/p-1bb62d6b.entry.js +0 -1
  217. package/dist/ezui/p-23dab72f.entry.js +0 -1
  218. package/dist/ezui/p-4818b8ce.entry.js +0 -1
  219. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  220. package/dist/ezui/p-6ee27742.entry.js +0 -1
  221. package/dist/ezui/p-88c615f0.entry.js +0 -1
  222. package/dist/ezui/p-906015ee.entry.js +0 -1
  223. package/dist/ezui/p-a64cfcfc.js +0 -1
  224. package/dist/ezui/p-a79f3789.entry.js +0 -1
  225. package/dist/ezui/p-bbf086de.entry.js +0 -1
  226. package/dist/ezui/p-c2b1b592.entry.js +0 -1
  227. package/dist/ezui/p-c96fbbef.entry.js +0 -1
  228. package/dist/ezui/p-e18d9e6a.entry.js +0 -1
@@ -4,6 +4,7 @@ import { CheckMode } from './CheckMode';
4
4
  export class EzCheck {
5
5
  constructor() {
6
6
  this.label = undefined;
7
+ this.alternativePlaceholder = undefined;
7
8
  this.value = undefined;
8
9
  this.enabled = true;
9
10
  this.indeterminate = undefined;
@@ -55,25 +56,32 @@ export class EzCheck {
55
56
  this.ezChange.emit(this.value);
56
57
  }
57
58
  getLabelClasses() {
58
- const classes = ["label"];
59
+ const classes = ['label'];
59
60
  if (!this.enabled) {
60
- classes.push("label--disabled");
61
+ classes.push('label--disabled');
61
62
  }
62
63
  if (!this.compact) {
63
- classes.push("label--padding");
64
+ classes.push('label--padding');
64
65
  }
65
- return classes.join(" ");
66
+ return classes.join(' ');
66
67
  }
67
68
  getInputClasses() {
68
69
  var _a;
69
- const classes = [""];
70
- classes.push(((_a = this.mode) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === CheckMode.SWITCH ? "switch-mode" : "regular-mode");
70
+ const classes = [''];
71
+ classes.push(((_a = this.mode) === null || _a === void 0 ? void 0 : _a.toUpperCase()) === CheckMode.SWITCH ? 'switch-mode' : 'regular-mode');
71
72
  if (this.compact)
72
- classes.push("compact");
73
- return classes.join(" ");
73
+ classes.push('compact');
74
+ return classes.join(' ');
74
75
  }
75
76
  render() {
76
- return (h(Host, null, h("input", { type: "checkbox", ref: (el) => this._inputElem = el, class: this.getInputClasses(), checked: this.value === true, onChange: () => { this.changeValue(); }, indeterminate: this.indeterminate, disabled: !this.enabled, "data-element-id": ElementIDUtils.getInternalIDInfo("input") }), this.label ? h("label", { class: this.getLabelClasses(), onClick: () => { this.changeValue(); }, title: this.label }, this.label) : undefined));
77
+ return (h(Host, null, h("input", { type: "checkbox", ref: (el) => this._inputElem = el, class: this.getInputClasses(), checked: this.value === true, onChange: () => {
78
+ this.changeValue();
79
+ }, indeterminate: this.indeterminate, disabled: !this.enabled, "data-element-id": ElementIDUtils.getInternalIDInfo('input') }), this.renderLabel()));
80
+ }
81
+ renderLabel() {
82
+ if (!this.label)
83
+ return undefined;
84
+ return (h("label", { class: this.getLabelClasses(), onClick: () => this.changeValue(), title: this.label }, this.label, " ", this.alternativePlaceholder ? h("span", { class: "label-alternative" }, this.alternativePlaceholder) : undefined));
77
85
  }
78
86
  static get is() { return "ez-check"; }
79
87
  static get encapsulation() { return "shadow"; }
@@ -106,6 +114,23 @@ export class EzCheck {
106
114
  "attribute": "label",
107
115
  "reflect": true
108
116
  },
117
+ "alternativePlaceholder": {
118
+ "type": "string",
119
+ "mutable": false,
120
+ "complexType": {
121
+ "original": "string",
122
+ "resolved": "string",
123
+ "references": {}
124
+ },
125
+ "required": false,
126
+ "optional": false,
127
+ "docs": {
128
+ "tags": [],
129
+ "text": "Texto alternativo a ser apresentado como t\u00EDtulo do campo."
130
+ },
131
+ "attribute": "alternative-placeholder",
132
+ "reflect": true
133
+ },
109
134
  "value": {
110
135
  "type": "boolean",
111
136
  "mutable": true,
@@ -33,6 +33,7 @@ export class EzComboBox {
33
33
  this.listOptionsPosition = undefined;
34
34
  this.isTextSearch = false;
35
35
  this.autoFocus = false;
36
+ this.alternativePlaceholder = undefined;
36
37
  }
37
38
  observeErrorMessage() {
38
39
  var _a;
@@ -437,7 +438,7 @@ export class EzComboBox {
437
438
  render() {
438
439
  var _a;
439
440
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
440
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), 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: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', onEzVisibilityChange: event => this.isOpen = event.detail }, h("ez-combo-box-list", { ref: ref => this._comboBoxList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, showOptionValue: this.showOptionValue, preSelection: this._preSelection, maxWidth: this._maxWidthValue, width: (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.clientWidth, onOptionSelect: (opt) => this.selectOption(opt), onOptionHover: (index) => this._preSelection = index }))));
441
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: `text-input-slot-container ${this.suppressSearch ? "suppressed-search-input" : ""}`, ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, alternativePlaceholder: this.alternativePlaceholder }, h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "chevron-down" }))), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', onEzVisibilityChange: event => this.isOpen = event.detail }, h("ez-combo-box-list", { ref: ref => this._comboBoxList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, showOptionValue: this.showOptionValue, preSelection: this._preSelection, maxWidth: this._maxWidthValue, width: (_a = this._textInput) === null || _a === void 0 ? void 0 : _a.clientWidth, onOptionSelect: (opt) => this.selectOption(opt), onOptionHover: (index) => this._preSelection = index }))));
441
442
  }
442
443
  static get is() { return "ez-combo-box"; }
443
444
  static get encapsulation() { return "shadow"; }
@@ -792,6 +793,23 @@ export class EzComboBox {
792
793
  "attribute": "auto-focus",
793
794
  "reflect": false,
794
795
  "defaultValue": "false"
796
+ },
797
+ "alternativePlaceholder": {
798
+ "type": "string",
799
+ "mutable": false,
800
+ "complexType": {
801
+ "original": "string",
802
+ "resolved": "string",
803
+ "references": {}
804
+ },
805
+ "required": false,
806
+ "optional": false,
807
+ "docs": {
808
+ "tags": [],
809
+ "text": "Texto alternativo a ser apresentado como t\u00EDtulo do campo."
810
+ },
811
+ "attribute": "alternative-placeholder",
812
+ "reflect": true
795
813
  }
796
814
  };
797
815
  }
@@ -13,6 +13,7 @@ export class EzDateInput {
13
13
  this.mode = "regular";
14
14
  this.canShowError = true;
15
15
  this.autoFocus = false;
16
+ this.alternativePlaceholder = undefined;
16
17
  }
17
18
  observeLabel() {
18
19
  if (this._textInput) {
@@ -163,7 +164,7 @@ export class EzDateInput {
163
164
  }
164
165
  render() {
165
166
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
166
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); } }))));
167
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), restrict: "0123456789/", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); } }))));
167
168
  }
168
169
  static get is() { return "ez-date-input"; }
169
170
  static get encapsulation() { return "shadow"; }
@@ -303,6 +304,23 @@ export class EzDateInput {
303
304
  "attribute": "auto-focus",
304
305
  "reflect": false,
305
306
  "defaultValue": "false"
307
+ },
308
+ "alternativePlaceholder": {
309
+ "type": "string",
310
+ "mutable": false,
311
+ "complexType": {
312
+ "original": "string",
313
+ "resolved": "string",
314
+ "references": {}
315
+ },
316
+ "required": false,
317
+ "optional": false,
318
+ "docs": {
319
+ "tags": [],
320
+ "text": "Texto alternativo ser apresentado como t\u00EDtulo do campo."
321
+ },
322
+ "attribute": "alternative-placeholder",
323
+ "reflect": true
306
324
  }
307
325
  };
308
326
  }
@@ -14,6 +14,7 @@ export class EzDateTimeInput {
14
14
  this.mode = "regular";
15
15
  this.canShowError = true;
16
16
  this.autoFocus = false;
17
+ this.alternativePlaceholder = undefined;
17
18
  }
18
19
  observeLabel() {
19
20
  if (this._textInput) {
@@ -214,7 +215,7 @@ export class EzDateTimeInput {
214
215
  }
215
216
  render() {
216
217
  ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
217
- return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, time: true, showSeconds: this.showSeconds }))));
218
+ return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, restrict: "0123456789/: ", enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, onKeyDown: event => { this.handleKeyDown(event); }, onBlur: () => this.handleBlur(), onInput: (evt) => this.handleInput(evt), onFocus: () => this.handleFocus(), onClick: () => this.handleClick(), canShowError: this.canShowError, alternativePlaceholder: this.alternativePlaceholder }, h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-cal", onClick: () => { var _a; return (_a = this._popover) === null || _a === void 0 ? void 0 : _a.showUnder(this._textInput); }, slot: "leftIcon" })), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this._textInput, autoClose: true, boxWidth: 'fit-content', overlayType: 'none' }, h("ez-calendar", { ref: elem => this._calendar = elem, "data-element-id": ElementIDUtils.getInternalIDInfo("calendar"), onEzChange: (event) => { this.hideCalendar(); event.stopPropagation(); }, time: true, showSeconds: this.showSeconds }))));
218
219
  }
219
220
  static get is() { return "ez-date-time-input"; }
220
221
  static get encapsulation() { return "shadow"; }
@@ -372,6 +373,23 @@ export class EzDateTimeInput {
372
373
  "attribute": "auto-focus",
373
374
  "reflect": false,
374
375
  "defaultValue": "false"
376
+ },
377
+ "alternativePlaceholder": {
378
+ "type": "string",
379
+ "mutable": false,
380
+ "complexType": {
381
+ "original": "string",
382
+ "resolved": "string",
383
+ "references": {}
384
+ },
385
+ "required": false,
386
+ "optional": false,
387
+ "docs": {
388
+ "tags": [],
389
+ "text": "Texto alternativo ser apresentado como t\u00EDtulo do campo."
390
+ },
391
+ "attribute": "alternative-placeholder",
392
+ "reflect": true
375
393
  }
376
394
  };
377
395
  }
@@ -31,7 +31,8 @@ export default class AgGridController {
31
31
  }
32
32
  showFilterColumn(configs) {
33
33
  var _a;
34
- (_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
34
+ const presentationMetadata = this.resolveDescriptionColMetadata(configs.columnName);
35
+ (_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(Object.assign(Object.assign({}, configs), { fieldDescriptor: presentationMetadata }));
35
36
  }
36
37
  constructor(_enterprise) {
37
38
  this.DEFAULT_ROW_HEIGHT = 30;
@@ -87,10 +88,15 @@ export default class AgGridController {
87
88
  return;
88
89
  }
89
90
  return Array.from(this._filteredColumns.entries())
90
- .map(([column, items]) => {
91
+ .map(([col, items]) => {
91
92
  var _a;
92
93
  const checkedOptions = items.filter(option => option.check);
93
94
  if (checkedOptions.length > 0) {
95
+ let column = col;
96
+ const presentationFrom = this.getCodeColFromDescriptionCol(col);
97
+ if (!StringUtils.isEmpty(presentationFrom)) {
98
+ column = presentationFrom;
99
+ }
94
100
  const fieldDescriptor = this._dataUnit.getField(column);
95
101
  const dataType = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.dataType) !== null && _a !== void 0 ? _a : DataType.TEXT;
96
102
  let placeholders = '';
@@ -284,6 +290,23 @@ export default class AgGridController {
284
290
  action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
285
291
  };
286
292
  }
293
+ resolveDescriptionColMetadata(columnName) {
294
+ var _a;
295
+ const colDef = (_a = this._gridOptions.columnApi.getColumn(columnName)) === null || _a === void 0 ? void 0 : _a.getColDef();
296
+ const presentationFrom = this.getCodeColFromDescriptionCol(columnName);
297
+ if (!StringUtils.isEmpty(presentationFrom)) {
298
+ return {
299
+ label: colDef.headerName,
300
+ name: columnName,
301
+ userInterface: UserInterface.SHORTTEXT,
302
+ dataType: DataType.TEXT,
303
+ properties: {
304
+ [PRESENTATION_FROM_COL_PROP_NAME]: presentationFrom
305
+ }
306
+ };
307
+ }
308
+ return undefined;
309
+ }
287
310
  buildMenuItemOptionPin(params) {
288
311
  const { column, columnApi } = params;
289
312
  const isPinned = params.column.isPinned();
@@ -610,7 +633,7 @@ export default class AgGridController {
610
633
  }
611
634
  syncSelectWithDataUnit() {
612
635
  const rowNode = this._gridOptions.api.getRowNode(this._dataUnit.getSelectedRecord().__record__id__);
613
- if ((rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
636
+ if (!rowNode || (rowNode === null || rowNode === void 0 ? void 0 : rowNode.rowIndex) < 0)
614
637
  return;
615
638
  const rowRange = this._gridOptions.api.getCellRanges().find(row => row.startRow.rowIndex === rowNode.rowIndex);
616
639
  if ((rowRange === null || rowRange === void 0 ? void 0 : rowRange.columns.length) > 0) {
@@ -881,7 +904,7 @@ export default class AgGridController {
881
904
  return filterOptions.map(item => item.check).includes(true);
882
905
  }
883
906
  buildColDef(source) {
884
- var _a, _b, _c, _d;
907
+ var _a, _b, _c, _d, _e;
885
908
  let tooltip = undefined;
886
909
  const propSortable = StringUtils.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get('gridSortable'), true);
887
910
  if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get('gridHeaderTooltip')) {
@@ -890,6 +913,7 @@ export default class AgGridController {
890
913
  else if (propSortable === false) {
891
914
  tooltip = 'Coluna não pode ser ordenada';
892
915
  }
916
+ const presentationFrom = (_d = source === null || source === void 0 ? void 0 : source.props) === null || _d === void 0 ? void 0 : _d.get(PRESENTATION_FROM_COL_PROP_NAME);
893
917
  return this._editionManager.configureColumn({
894
918
  headerName: source.label,
895
919
  field: source.name,
@@ -897,16 +921,16 @@ export default class AgGridController {
897
921
  resizable: true,
898
922
  headerComponent: 'ezGridCustomHeader',
899
923
  headerComponentParams: {
924
+ presentationFrom,
900
925
  tooltip: tooltip,
901
926
  isSortable: propSortable,
902
927
  hasFilter: () => this.hasFilterColumn(source.name),
903
928
  showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name), fromIcon: true }),
904
929
  },
905
930
  valueFormatter: params => {
906
- var _a, _b, _c, _d;
907
- const presentationFrom = (_a = source === null || source === void 0 ? void 0 : source.props) === null || _a === void 0 ? void 0 : _a.get(PRESENTATION_FROM_COL_PROP_NAME);
931
+ var _a, _b, _c;
908
932
  if (presentationFrom) {
909
- return (_d = (_c = (_b = params === null || params === void 0 ? void 0 : params.data) === null || _b === void 0 ? void 0 : _b[presentationFrom]) === null || _c === void 0 ? void 0 : _c.label) !== null && _d !== void 0 ? _d : "";
933
+ return (_c = (_b = (_a = params === null || params === void 0 ? void 0 : params.data) === null || _a === void 0 ? void 0 : _a[presentationFrom]) === null || _b === void 0 ? void 0 : _b.label) !== null && _c !== void 0 ? _c : "";
910
934
  }
911
935
  if (params.value === undefined || params.value === null) {
912
936
  return "";
@@ -927,7 +951,7 @@ export default class AgGridController {
927
951
  return this.getFormatterByColumn(params, source);
928
952
  },
929
953
  cellStyle: this.getStyleByColumn(source),
930
- editable: !((_d = source.props) === null || _d === void 0 ? void 0 : _d.has(PRESENTATION_FROM_COL_PROP_NAME))
954
+ editable: !((_e = source.props) === null || _e === void 0 ? void 0 : _e.has(PRESENTATION_FROM_COL_PROP_NAME))
931
955
  });
932
956
  }
933
957
  setCustomFormatters(customFormatters) {
@@ -1198,4 +1222,10 @@ export default class AgGridController {
1198
1222
  const labelSize = ((label === null || label === void 0 ? void 0 : label.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
1199
1223
  return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
1200
1224
  }
1225
+ getCodeColFromDescriptionCol(descriptionColName) {
1226
+ var _a;
1227
+ const colGrid = this._gridOptions.columnApi.getColumn(descriptionColName);
1228
+ const colDef = colGrid === null || colGrid === void 0 ? void 0 : colGrid.getColDef();
1229
+ return (_a = colDef === null || colDef === void 0 ? void 0 : colDef.headerComponentParams) === null || _a === void 0 ? void 0 : _a.presentationFrom;
1230
+ }
1201
1231
  }
@@ -272,9 +272,11 @@ export default class DataSource {
272
272
  var _a, _b, _c, _d;
273
273
  const props = new Map();
274
274
  props.set(PRESENTATION_FROM_COL_PROP_NAME, field.name);
275
+ const descriptionFieldName = `${(_a = field.properties) === null || _a === void 0 ? void 0 : _a.ENTITYNAME}.${(_b = field.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONFIELD}`;
276
+ this._dataUnit.addSourceFieldValue(descriptionFieldName, field.name);
275
277
  return {
276
- label: `${(_a = field.properties) === null || _a === void 0 ? void 0 : _a.DESCRIPTIONFIELDLABEL} (${(_b = field.properties) === null || _b === void 0 ? void 0 : _b.DESCRIPTIONENTITY})`,
277
- name: `${(_c = field.properties) === null || _c === void 0 ? void 0 : _c.ENTITYNAME}.${(_d = field.properties) === null || _d === void 0 ? void 0 : _d.DESCRIPTIONFIELD}`,
278
+ label: `${(_c = field.properties) === null || _c === void 0 ? void 0 : _c.DESCRIPTIONFIELDLABEL} (${(_d = field.properties) === null || _d === void 0 ? void 0 : _d.DESCRIPTIONENTITY})`,
279
+ name: descriptionFieldName,
278
280
  userInterface: UserInterface.SHORTTEXT,
279
281
  props
280
282
  };
@@ -392,21 +392,25 @@ export default class GridEditionManager {
392
392
  return this.updateCellValue(event, resolved);
393
393
  }
394
394
  async updateCellValue(event, newValue) {
395
- var _a, _b, _c, _d;
395
+ var _a, _b, _c;
396
396
  const fieldName = event.colDef.field;
397
+ const fieldDescriptor = this._dataUnit.getField(fieldName);
398
+ if (newValue == '' && newValue != this._dataUnit.getFieldValue(fieldName) && (fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.userInterface) === UserInterface.SEARCH) {
399
+ newValue = this._dataUnit.getFieldValue(fieldName);
400
+ }
397
401
  const newData = { [fieldName]: newValue };
398
- const descriptionColName = (_b = (_a = this._dataUnit.getField(fieldName)) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_COL_ID_PROP_NAME];
402
+ const descriptionColName = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.properties) === null || _a === void 0 ? void 0 : _a[PRESENTATION_COL_ID_PROP_NAME];
399
403
  if (!StringUtils.isEmpty(descriptionColName)) {
400
404
  newData[descriptionColName] = newValue === null || newValue === void 0 ? void 0 : newValue.label;
401
405
  }
402
- event.node.setData(Object.assign(Object.assign({}, event.data), { newData }));
403
- (_c = this._currentEditLock) === null || _c === void 0 ? void 0 : _c.call(this);
406
+ event.node.setData(Object.assign(Object.assign({}, event.data), { [fieldName]: newValue }));
407
+ (_b = this._currentEditLock) === null || _b === void 0 ? void 0 : _b.call(this);
404
408
  if (event.oldValue !== newValue) {
405
409
  this._isGridEdition = true;
406
410
  await this._dataUnit.setFieldValue(fieldName, newValue, [event.data.__record__id__], { suppressCreateNewRecord: true });
407
411
  this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
408
412
  }
409
- (_d = this._inProgressChanges) === null || _d === void 0 ? void 0 : _d.forEach(({ resolve }) => resolve(newValue));
413
+ (_c = this._inProgressChanges) === null || _c === void 0 ? void 0 : _c.forEach(({ resolve }) => resolve(newValue));
410
414
  }
411
415
  setCellEditors(customEditors) {
412
416
  var _a;
@@ -1,5 +1,6 @@
1
1
  import { UserInterface } from '@sankhyalabs/core';
2
2
  import { h } from '@stencil/core';
3
+ import { PRESENTATION_FROM_COL_PROP_NAME } from '../../../utils/constants';
3
4
  const windowInstace = window;
4
5
  const onSubmitFilter = new CustomEvent('onSubmitFilter', {
5
6
  detail: {
@@ -30,13 +31,14 @@ export class FilterColumn {
30
31
  * @Params IFilterColumnConfigs informações para configurar o filtro
31
32
  */
32
33
  async show(configs) {
34
+ var _a;
33
35
  if (this.canShow(configs)) {
34
36
  await this.hide();
35
- this.fieldDescriptor = this.dataUnit.getField(configs.columnName);
37
+ this.fieldDescriptor = (_a = configs.fieldDescriptor) !== null && _a !== void 0 ? _a : this.dataUnit.getField(configs.columnName);
36
38
  this.buildIsTextSearch();
37
39
  this.columnName = configs.columnName;
38
40
  this.columnLabel = configs.columnLabel;
39
- await this.setOptions(configs.filteredOptions);
41
+ await this.setOptions(configs);
40
42
  await this.ezPopoverElement.showUnder(`filter-column-${configs.columnName}-${this.dataUnit.dataUnitId}`);
41
43
  }
42
44
  }
@@ -74,14 +76,22 @@ export class FilterColumn {
74
76
  return this.fieldDescriptor.userInterface === UserInterface.SWITCH
75
77
  || this.fieldDescriptor.userInterface === UserInterface.CHECKBOX;
76
78
  }
77
- async setOptions(selectedItems) {
79
+ async setOptions(config) {
80
+ var _a, _b, _c, _d;
81
+ const selectedItems = config.filteredOptions;
78
82
  const validateFieldUserInterfaceOptionSelector = this.hasToUseOptions();
79
83
  if (validateFieldUserInterfaceOptionSelector) {
80
84
  this.useOptions = validateFieldUserInterfaceOptionSelector;
81
85
  this.options = validateFieldUserInterfaceOptionSelector ? this.buildOptions(selectedItems) : (selectedItems !== null && selectedItems !== void 0 ? selectedItems : null);
82
86
  return;
83
87
  }
84
- const options = await this.dataSource.getStaticOptions(this.columnName);
88
+ let colName = this.columnName;
89
+ const staticOptionsConfig = { onlyLabel: false };
90
+ if ((_b = (_a = config.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b[PRESENTATION_FROM_COL_PROP_NAME]) {
91
+ colName = (_d = (_c = config.fieldDescriptor) === null || _c === void 0 ? void 0 : _c.properties) === null || _d === void 0 ? void 0 : _d[PRESENTATION_FROM_COL_PROP_NAME];
92
+ staticOptionsConfig.onlyLabel = true;
93
+ }
94
+ const options = await this.dataSource.getStaticOptions(colName, staticOptionsConfig);
85
95
  if (options != undefined) {
86
96
  const selected = new Set((selectedItems || []).filter(item => item.check).map(item => item.label));
87
97
  this.useOptions = true;
@@ -17,6 +17,7 @@ export class EzNumberInput {
17
17
  this.prettyPrecision = undefined;
18
18
  this.mode = "regular";
19
19
  this.autoFocus = false;
20
+ this.alternativePlaceholder = undefined;
20
21
  }
21
22
  /**
22
23
  * Aplica o foco no campo.
@@ -175,7 +176,7 @@ export class EzNumberInput {
175
176
  if (this.allowNegative) {
176
177
  restrict += '-';
177
178
  }
178
- return (h("ez-text-input", { class: "number__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: restrict, enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, value: this._value }));
179
+ return (h("ez-text-input", { class: "number__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, "data-slave-mode": "true", label: this.label, onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), restrict: restrict, enabled: this.enabled, errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, value: this._value, alternativePlaceholder: this.alternativePlaceholder }));
179
180
  }
180
181
  static get is() { return "ez-number-input"; }
181
182
  static get encapsulation() { return "shadow"; }
@@ -365,6 +366,23 @@ export class EzNumberInput {
365
366
  "attribute": "auto-focus",
366
367
  "reflect": false,
367
368
  "defaultValue": "false"
369
+ },
370
+ "alternativePlaceholder": {
371
+ "type": "string",
372
+ "mutable": false,
373
+ "complexType": {
374
+ "original": "string",
375
+ "resolved": "string",
376
+ "references": {}
377
+ },
378
+ "required": false,
379
+ "optional": false,
380
+ "docs": {
381
+ "tags": [],
382
+ "text": "Texto alternativo a ser apresentado como t\u00EDtulo do campo."
383
+ },
384
+ "attribute": "alternative-placeholder",
385
+ "reflect": false
368
386
  }
369
387
  };
370
388
  }
@@ -42,6 +42,7 @@ export class EzSearch {
42
42
  this.ensureClearButtonVisible = false;
43
43
  this.suppressPreLoad = true;
44
44
  this.autoFocus = false;
45
+ this.alternativePlaceholder = undefined;
45
46
  }
46
47
  observeErrorMessage() {
47
48
  var _a;
@@ -596,7 +597,7 @@ export class EzSearch {
596
597
  render() {
597
598
  var _a;
598
599
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
599
- 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() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
600
+ 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, alternativePlaceholder: this.alternativePlaceholder }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
600
601
  ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
601
602
  : undefined), h("ez-popover-plus", { ref: elem => this._ezPopOverPlusElement = elem, autoClose: false, overlayType: "none", useAnchorSize: true, anchorElement: [this._textInput, this.el] }, h("search-list", { ref: (ref) => this._searchList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, canShowListOptions: this.canShowListOptions(), value: this.value, showOptionValue: this.showOptionValue, preSelection: this._preSelection, onChangeValue: ({ detail }) => this.selectOption(detail), onChangePreSelection: ({ detail }) => this.onChangePreSelection(detail) }))));
602
603
  }
@@ -1007,6 +1008,23 @@ export class EzSearch {
1007
1008
  "attribute": "auto-focus",
1008
1009
  "reflect": false,
1009
1010
  "defaultValue": "false"
1011
+ },
1012
+ "alternativePlaceholder": {
1013
+ "type": "string",
1014
+ "mutable": false,
1015
+ "complexType": {
1016
+ "original": "string",
1017
+ "resolved": "string",
1018
+ "references": {}
1019
+ },
1020
+ "required": false,
1021
+ "optional": false,
1022
+ "docs": {
1023
+ "tags": [],
1024
+ "text": "Texto alternativo a ser apresentado como t\u00EDtulo do campo."
1025
+ },
1026
+ "attribute": "alternative-placeholder",
1027
+ "reflect": true
1010
1028
  }
1011
1029
  };
1012
1030
  }
@@ -669,8 +669,11 @@ export class EzSearchPlus {
669
669
  "required": false,
670
670
  "optional": false,
671
671
  "docs": {
672
- "tags": [],
673
- "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
672
+ "tags": [{
673
+ "name": "deprecated",
674
+ "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
675
+ }],
676
+ "text": ""
674
677
  },
675
678
  "attribute": "show-selected-value",
676
679
  "reflect": false,
@@ -687,8 +690,11 @@ export class EzSearchPlus {
687
690
  "required": false,
688
691
  "optional": false,
689
692
  "docs": {
690
- "tags": [],
691
- "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
693
+ "tags": [{
694
+ "name": "deprecated",
695
+ "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
696
+ }],
697
+ "text": ""
692
698
  },
693
699
  "attribute": "suppress-empty-option",
694
700
  "reflect": false,
@@ -705,8 +711,11 @@ export class EzSearchPlus {
705
711
  "required": false,
706
712
  "optional": false,
707
713
  "docs": {
708
- "tags": [],
709
- "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
714
+ "tags": [{
715
+ "name": "deprecated",
716
+ "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
717
+ }],
718
+ "text": ""
710
719
  },
711
720
  "attribute": "hide-error-on-focus-out",
712
721
  "reflect": false,
@@ -728,8 +737,11 @@ export class EzSearchPlus {
728
737
  "required": false,
729
738
  "optional": false,
730
739
  "docs": {
731
- "tags": [],
732
- "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
740
+ "tags": [{
741
+ "name": "deprecated",
742
+ "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
743
+ }],
744
+ "text": ""
733
745
  }
734
746
  },
735
747
  "isTextSearch": {
@@ -743,8 +755,11 @@ export class EzSearchPlus {
743
755
  "required": false,
744
756
  "optional": false,
745
757
  "docs": {
746
- "tags": [],
747
- "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
758
+ "tags": [{
759
+ "name": "deprecated",
760
+ "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
761
+ }],
762
+ "text": ""
748
763
  },
749
764
  "attribute": "is-text-search",
750
765
  "reflect": false,
@@ -761,8 +776,11 @@ export class EzSearchPlus {
761
776
  "required": false,
762
777
  "optional": false,
763
778
  "docs": {
764
- "tags": [],
765
- "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
779
+ "tags": [{
780
+ "name": "deprecated",
781
+ "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
782
+ }],
783
+ "text": ""
766
784
  },
767
785
  "attribute": "ignore-limit-chars-to-search",
768
786
  "reflect": false,
@@ -779,8 +797,11 @@ export class EzSearchPlus {
779
797
  "required": false,
780
798
  "optional": false,
781
799
  "docs": {
782
- "tags": [],
783
- "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
800
+ "tags": [{
801
+ "name": "deprecated",
802
+ "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
803
+ }],
804
+ "text": ""
784
805
  },
785
806
  "attribute": "suppress-search",
786
807
  "reflect": false,
@@ -797,8 +818,11 @@ export class EzSearchPlus {
797
818
  "required": false,
798
819
  "optional": false,
799
820
  "docs": {
800
- "tags": [],
801
- "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
821
+ "tags": [{
822
+ "name": "deprecated",
823
+ "text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
824
+ }],
825
+ "text": ""
802
826
  },
803
827
  "attribute": "suppress-pre-load",
804
828
  "reflect": false,