@sankhyalabs/ezui 3.0.1 → 3.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (225) hide show
  1. package/dist/cjs/ez-actions-button.cjs.entry.js +12 -26
  2. package/dist/cjs/ez-alert.cjs.entry.js +2 -5
  3. package/dist/cjs/ez-application.cjs.entry.js +2 -2
  4. package/dist/cjs/ez-breadcrumb.cjs.entry.js +2 -5
  5. package/dist/cjs/ez-button.cjs.entry.js +6 -8
  6. package/dist/cjs/ez-calendar.cjs.entry.js +2 -14
  7. package/dist/cjs/ez-card-item.cjs.entry.js +3 -2
  8. package/dist/cjs/ez-check.cjs.entry.js +5 -8
  9. package/dist/cjs/ez-chip.cjs.entry.js +5 -8
  10. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -20
  11. package/dist/cjs/ez-combo-box.cjs.entry.js +11 -23
  12. package/dist/cjs/ez-date-input.cjs.entry.js +5 -8
  13. package/dist/cjs/ez-date-time-input.cjs.entry.js +5 -11
  14. package/dist/cjs/ez-dialog.cjs.entry.js +7 -9
  15. package/dist/cjs/ez-dropdown.cjs.entry.js +4 -5
  16. package/dist/cjs/ez-file-item.cjs.entry.js +5 -8
  17. package/dist/cjs/ez-filter-input_4.cjs.entry.js +14 -23
  18. package/dist/cjs/ez-form-view.cjs.entry.js +3 -2
  19. package/dist/cjs/ez-form.cjs.entry.js +26 -20
  20. package/dist/cjs/ez-grid.cjs.entry.js +11110 -6777
  21. package/dist/cjs/ez-guide-navigator.cjs.entry.js +3 -11
  22. package/dist/cjs/ez-icon.cjs.entry.js +4 -5
  23. package/dist/cjs/ez-list.cjs.entry.js +4 -15
  24. package/dist/cjs/ez-loading-bar.cjs.entry.js +2 -2
  25. package/dist/cjs/ez-modal-container.cjs.entry.js +8 -5
  26. package/dist/cjs/ez-modal.cjs.entry.js +7 -14
  27. package/dist/cjs/ez-number-input.cjs.entry.js +7 -8
  28. package/dist/cjs/ez-popover.cjs.entry.js +11 -30
  29. package/dist/cjs/ez-popup.cjs.entry.js +3 -14
  30. package/dist/cjs/ez-radio-button.cjs.entry.js +4 -11
  31. package/dist/cjs/ez-search.cjs.entry.js +6 -17
  32. package/dist/cjs/ez-tabselector.cjs.entry.js +6 -2
  33. package/dist/cjs/ez-text-area.cjs.entry.js +5 -14
  34. package/dist/cjs/ez-text-edit.cjs.entry.js +5 -2
  35. package/dist/cjs/ez-text-input.cjs.entry.js +7 -14
  36. package/dist/cjs/ez-time-input.cjs.entry.js +5 -11
  37. package/dist/cjs/ez-toast.cjs.entry.js +3 -11
  38. package/dist/cjs/ez-upload.cjs.entry.js +9 -5
  39. package/dist/cjs/ez-view-stack.cjs.entry.js +2 -2
  40. package/dist/cjs/ezui.cjs.js +6 -2
  41. package/dist/cjs/{index-5e208fa5.js → index-892780f1.js} +588 -248
  42. package/dist/cjs/loader.cjs.js +3 -2
  43. package/dist/collection/collection-manifest.json +2 -2
  44. package/dist/collection/components/ez-actions-button/ez-actions-button.js +248 -256
  45. package/dist/collection/components/ez-alert/ez-alert.js +34 -36
  46. package/dist/collection/components/ez-application/ez-application.js +29 -23
  47. package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js +61 -60
  48. package/dist/collection/components/ez-button/ez-button.js +159 -159
  49. package/dist/collection/components/ez-calendar/ez-calendar.js +214 -244
  50. package/dist/collection/components/ez-card-item/ez-card-item.js +60 -58
  51. package/dist/collection/components/ez-check/ez-check.js +164 -157
  52. package/dist/collection/components/ez-chip/ez-chip.js +190 -186
  53. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +282 -293
  54. package/dist/collection/components/ez-combo-box/ez-combo-box.js +348 -361
  55. package/dist/collection/components/ez-date-input/ez-date-input.js +213 -207
  56. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +233 -228
  57. package/dist/collection/components/ez-dialog/ez-dialog.js +203 -209
  58. package/dist/collection/components/ez-dropdown/ez-dropdown.js +128 -127
  59. package/dist/collection/components/ez-dropdown/structure/DropdownItem.js +1 -4
  60. package/dist/collection/components/ez-file-item/ez-file-item.js +144 -142
  61. package/dist/collection/components/ez-filter-input/ez-filter-input.js +197 -188
  62. package/dist/collection/components/ez-form/DataBinder.js +12 -6
  63. package/dist/collection/components/ez-form/ez-form.js +191 -177
  64. package/dist/collection/components/ez-form-view/ez-form-view.js +38 -29
  65. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -2
  66. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -2
  67. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -6
  68. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -2
  69. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -2
  70. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -2
  71. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -2
  72. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -2
  73. package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +1 -1
  74. package/dist/collection/components/ez-grid/ez-grid.js +365 -351
  75. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +120 -125
  76. package/dist/collection/components/ez-icon/ez-icon.js +68 -64
  77. package/dist/collection/components/ez-list/ez-list.js +246 -266
  78. package/dist/collection/components/ez-loading-bar/ez-loading-bar.js +49 -42
  79. package/dist/collection/components/ez-modal/ez-modal.js +143 -143
  80. package/dist/collection/components/ez-modal-container/ez-modal-container.js +153 -155
  81. package/dist/collection/components/ez-number-input/ez-number-input.js +246 -233
  82. package/dist/collection/components/ez-popover/ez-popover.js +273 -283
  83. package/dist/collection/components/ez-popup/ez-popup.js +121 -133
  84. package/dist/collection/components/ez-radio-button/ez-radio-button.js +123 -126
  85. package/dist/collection/components/ez-scroller/ez-scroller.js +104 -100
  86. package/dist/collection/components/ez-search/ez-search.js +260 -259
  87. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +30 -25
  88. package/dist/collection/components/ez-tabselector/ez-tabselector.js +115 -106
  89. package/dist/collection/components/ez-text-area/ez-text-area.js +217 -218
  90. package/dist/collection/components/ez-text-edit/ez-text-edit.js +109 -96
  91. package/dist/collection/components/ez-text-input/ez-text-input.js +248 -248
  92. package/dist/collection/components/ez-time-input/ez-time-input.js +227 -223
  93. package/dist/collection/components/ez-toast/ez-toast.js +117 -121
  94. package/dist/collection/components/ez-tree/ez-tree.js +289 -275
  95. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +7 -11
  96. package/dist/collection/components/ez-upload/ez-upload.js +283 -281
  97. package/dist/collection/components/ez-view-stack/ez-view-stack.js +46 -40
  98. package/dist/custom-elements/index.js +11097 -6940
  99. package/dist/esm/ez-actions-button.entry.js +12 -26
  100. package/dist/esm/ez-alert.entry.js +2 -5
  101. package/dist/esm/ez-application.entry.js +2 -2
  102. package/dist/esm/ez-breadcrumb.entry.js +2 -5
  103. package/dist/esm/ez-button.entry.js +6 -8
  104. package/dist/esm/ez-calendar.entry.js +2 -14
  105. package/dist/esm/ez-card-item.entry.js +3 -2
  106. package/dist/esm/ez-check.entry.js +5 -8
  107. package/dist/esm/ez-chip.entry.js +5 -8
  108. package/dist/esm/ez-collapsible-box.entry.js +4 -20
  109. package/dist/esm/ez-combo-box.entry.js +11 -23
  110. package/dist/esm/ez-date-input.entry.js +5 -8
  111. package/dist/esm/ez-date-time-input.entry.js +5 -11
  112. package/dist/esm/ez-dialog.entry.js +7 -9
  113. package/dist/esm/ez-dropdown.entry.js +4 -5
  114. package/dist/esm/ez-file-item.entry.js +5 -8
  115. package/dist/esm/ez-filter-input_4.entry.js +14 -23
  116. package/dist/esm/ez-form-view.entry.js +3 -2
  117. package/dist/esm/ez-form.entry.js +26 -20
  118. package/dist/esm/ez-grid.entry.js +11110 -6777
  119. package/dist/esm/ez-guide-navigator.entry.js +3 -11
  120. package/dist/esm/ez-icon.entry.js +4 -5
  121. package/dist/esm/ez-list.entry.js +4 -15
  122. package/dist/esm/ez-loading-bar.entry.js +2 -2
  123. package/dist/esm/ez-modal-container.entry.js +8 -5
  124. package/dist/esm/ez-modal.entry.js +7 -14
  125. package/dist/esm/ez-number-input.entry.js +7 -8
  126. package/dist/esm/ez-popover.entry.js +11 -30
  127. package/dist/esm/ez-popup.entry.js +3 -14
  128. package/dist/esm/ez-radio-button.entry.js +4 -11
  129. package/dist/esm/ez-search.entry.js +6 -17
  130. package/dist/esm/ez-tabselector.entry.js +6 -2
  131. package/dist/esm/ez-text-area.entry.js +5 -14
  132. package/dist/esm/ez-text-edit.entry.js +5 -2
  133. package/dist/esm/ez-text-input.entry.js +7 -14
  134. package/dist/esm/ez-time-input.entry.js +5 -11
  135. package/dist/esm/ez-toast.entry.js +3 -11
  136. package/dist/esm/ez-upload.entry.js +9 -5
  137. package/dist/esm/ez-view-stack.entry.js +2 -2
  138. package/dist/esm/ezui.js +3 -2
  139. package/dist/esm/{index-c5203f95.js → index-de655f48.js} +588 -249
  140. package/dist/esm/loader.js +3 -2
  141. package/dist/esm/polyfills/css-shim.js +1 -1
  142. package/dist/ezui/ezui.esm.js +1 -1
  143. package/dist/ezui/{p-df20c613.entry.js → p-06b3e801.entry.js} +1 -1
  144. package/dist/ezui/p-07b99b94.entry.js +1 -0
  145. package/dist/ezui/p-0c7e81fe.entry.js +1 -0
  146. package/dist/ezui/p-1581fece.entry.js +1 -0
  147. package/dist/ezui/p-1b95836f.entry.js +1 -0
  148. package/dist/ezui/p-36f7ec68.entry.js +1 -0
  149. package/dist/ezui/p-37b4bf04.entry.js +1 -0
  150. package/dist/ezui/p-493e2af4.entry.js +1 -0
  151. package/dist/ezui/p-4bfed869.entry.js +1 -0
  152. package/dist/ezui/p-600f1732.entry.js +1 -0
  153. package/dist/ezui/p-62481744.entry.js +1 -0
  154. package/dist/ezui/p-6818dd0a.entry.js +1 -0
  155. package/dist/ezui/p-695facd0.entry.js +1 -0
  156. package/dist/ezui/p-7ffd12e7.js +2 -0
  157. package/dist/ezui/p-82db6de7.entry.js +1 -0
  158. package/dist/ezui/p-86d29565.entry.js +1 -0
  159. package/dist/ezui/p-8ca4750d.entry.js +1 -0
  160. package/dist/ezui/p-9613fae6.entry.js +1 -0
  161. package/dist/ezui/{p-fc97f773.entry.js → p-a323b415.entry.js} +1 -1
  162. package/dist/ezui/p-a4b281ca.entry.js +1 -0
  163. package/dist/ezui/p-a67e056f.entry.js +1 -0
  164. package/dist/ezui/p-a8c7355e.entry.js +1 -0
  165. package/dist/ezui/p-ada6e6b0.entry.js +1 -0
  166. package/dist/ezui/p-b1e4ccf4.entry.js +1 -0
  167. package/dist/ezui/p-b3c7b243.entry.js +1 -0
  168. package/dist/ezui/p-b405d9b6.entry.js +304 -0
  169. package/dist/ezui/p-b941aeee.entry.js +1 -0
  170. package/dist/ezui/p-c0184982.entry.js +1 -0
  171. package/dist/ezui/p-c1300e84.entry.js +1 -0
  172. package/dist/ezui/p-c98e571a.entry.js +1 -0
  173. package/dist/ezui/p-cc40fcb3.entry.js +1 -0
  174. package/dist/ezui/p-cc5cfcb7.entry.js +1 -0
  175. package/dist/ezui/p-d6dd32b2.entry.js +1 -0
  176. package/dist/ezui/p-db131605.entry.js +1 -0
  177. package/dist/ezui/{p-ba03ac61.entry.js → p-e0d756d9.entry.js} +1 -1
  178. package/dist/ezui/p-eceb9382.entry.js +1 -0
  179. package/dist/ezui/p-f18d39e6.entry.js +1 -0
  180. package/dist/ezui/p-f670bd32.entry.js +1 -0
  181. package/dist/ezui/p-fcf6cf57.entry.js +1 -0
  182. package/dist/ezui/p-fd87638e.entry.js +1 -0
  183. package/dist/types/components.d.ts +195 -63
  184. package/dist/types/stencil-public-runtime.d.ts +79 -7
  185. package/loader/index.d.ts +9 -0
  186. package/loader/package.json +1 -0
  187. package/package.json +4 -4
  188. package/react/components.d.ts +0 -1
  189. package/dist/ezui/p-0cd0545d.entry.js +0 -1
  190. package/dist/ezui/p-1a27bb9f.entry.js +0 -1
  191. package/dist/ezui/p-1b94b9dc.entry.js +0 -1
  192. package/dist/ezui/p-20c01161.entry.js +0 -1
  193. package/dist/ezui/p-24717f87.entry.js +0 -1
  194. package/dist/ezui/p-3320768e.entry.js +0 -1
  195. package/dist/ezui/p-368037b9.entry.js +0 -1
  196. package/dist/ezui/p-47bcc678.entry.js +0 -1
  197. package/dist/ezui/p-4c444816.entry.js +0 -1
  198. package/dist/ezui/p-608d13e8.entry.js +0 -1
  199. package/dist/ezui/p-626b8940.entry.js +0 -1
  200. package/dist/ezui/p-6414e7cb.entry.js +0 -1
  201. package/dist/ezui/p-6630eca2.entry.js +0 -1
  202. package/dist/ezui/p-67b9a2cb.entry.js +0 -1
  203. package/dist/ezui/p-6f9aba86.entry.js +0 -1
  204. package/dist/ezui/p-7b80df03.js +0 -1
  205. package/dist/ezui/p-7d42065a.entry.js +0 -1
  206. package/dist/ezui/p-97d2d2f6.entry.js +0 -1
  207. package/dist/ezui/p-99aea44b.entry.js +0 -1
  208. package/dist/ezui/p-a4b4645d.entry.js +0 -1
  209. package/dist/ezui/p-ab5eee38.entry.js +0 -1
  210. package/dist/ezui/p-ad7151e0.entry.js +0 -1
  211. package/dist/ezui/p-ad8b7412.entry.js +0 -1
  212. package/dist/ezui/p-ae168e45.entry.js +0 -1
  213. package/dist/ezui/p-b2e861cb.entry.js +0 -1
  214. package/dist/ezui/p-b2efb22c.entry.js +0 -1
  215. package/dist/ezui/p-b4ccb29c.entry.js +0 -304
  216. package/dist/ezui/p-b5557d33.entry.js +0 -1
  217. package/dist/ezui/p-bd9792e2.entry.js +0 -1
  218. package/dist/ezui/p-bf8a633d.entry.js +0 -1
  219. package/dist/ezui/p-c071db26.entry.js +0 -1
  220. package/dist/ezui/p-c3529df3.entry.js +0 -1
  221. package/dist/ezui/p-c53b2db8.entry.js +0 -1
  222. package/dist/ezui/p-ca7435a6.entry.js +0 -1
  223. package/dist/ezui/p-cc038b32.entry.js +0 -1
  224. package/dist/ezui/p-e203c89f.entry.js +0 -1
  225. package/dist/ezui/p-f08de60b.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  import { ElementIDUtils, FloatingManager } from "@sankhyalabs/core";
2
- import { Component, h, Host, Prop, State, Event, Element, Watch, Method } from "@stencil/core";
2
+ import { h, Host } from "@stencil/core";
3
3
  import { ApplicationUtils, CSSVarsUtils } from "../../utils";
4
4
  export class EzComboBox {
5
5
  constructor() {
@@ -9,35 +9,23 @@ export class EzComboBox {
9
9
  this._maxWidthValue = 0;
10
10
  this._tabPressed = false;
11
11
  this._textEmptyList = "Nenhum resultado encontrado";
12
+ this._preSelection = undefined;
13
+ this._visibleOptions = undefined;
12
14
  this._startLoading = false;
13
15
  this._showLoading = true;
14
- /**
15
- * Se false o usuário não pode interagir com o campo.
16
- */
16
+ this._criteria = undefined;
17
+ this.value = undefined;
18
+ this.label = undefined;
17
19
  this.enabled = true;
18
- /**
19
- * Se true a opção selecionada exibe o `value` junto com `label`.
20
- */
20
+ this.options = undefined;
21
+ this.errorMessage = undefined;
22
+ this.searchMode = undefined;
21
23
  this.showSelectedValue = false;
22
- /**
23
- * Se true cada opção na lista exibe o `value` junto com `label`.
24
- */
25
24
  this.showOptionValue = false;
26
- /**
27
- * Se true desabilita a digitação dentro do componente.
28
- */
29
25
  this.suppressSearch = false;
30
- /**
31
- * Se true remove a opção vazia da lista.
32
- */
26
+ this.optionLoader = undefined;
33
27
  this.suppressEmptyOption = false;
34
- /**
35
- * Se false deixa de exibir a mensagem de erro dentro do campo.
36
- */
37
28
  this.canShowError = true;
38
- /**
39
- * Define o tamanho do campo.
40
- */
41
29
  this.mode = "regular";
42
30
  }
43
31
  observeErrorMessage() {
@@ -151,11 +139,9 @@ export class EzComboBox {
151
139
  }
152
140
  buildItem(opt, index) {
153
141
  const widthValue = this.showOptionValue && this._maxWidthValue > 0 ? `${this._maxWidthValue}px` : '';
154
- return h("li", { class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = index },
155
- this.showOptionValue
156
- ? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
157
- : undefined,
158
- h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
142
+ return h("li", { class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = index }, this.showOptionValue
143
+ ? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
144
+ : undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
159
145
  }
160
146
  showOptions() {
161
147
  if (!this.enabled) {
@@ -446,369 +432,370 @@ export class EzComboBox {
446
432
  render() {
447
433
  var _a;
448
434
  ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
449
- return (h(Host, null,
450
- 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), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode },
451
- h("button", { class: "btn", slot: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() },
452
- h("ez-icon", { iconName: this.searchMode ? "search" : "chevron-down" })),
453
- this.searchMode && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
454
- ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() },
455
- h("ez-icon", { iconName: "close" }))
456
- : undefined),
457
- h("section", { class: "list-container", ref: elem => this._listContainer = elem },
458
- h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem },
459
- h("div", { class: "list-options", ref: elem => this._optionsList = elem },
460
- this._visibleOptions.length === 0
461
- && h("div", { class: "message" },
462
- !this._showLoading && h("span", { class: "message__no-result" }, this._textEmptyList),
463
- this._showLoading && h("div", { class: "message__loading" })),
464
- this.showOptionValue
465
- ? h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem })
466
- : undefined,
467
- this._visibleOptions.length > 0 && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
435
+ 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), 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: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: this.searchMode ? "search" : "chevron-down" })), this.searchMode && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
436
+ ? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
437
+ : undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("div", { class: "list-options", ref: elem => this._optionsList = elem }, this._visibleOptions.length === 0
438
+ && h("div", { class: "message" }, !this._showLoading && h("span", { class: "message__no-result" }, this._textEmptyList), this._showLoading && h("div", { class: "message__loading" })), this.showOptionValue
439
+ ? h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem })
440
+ : undefined, this._visibleOptions.length > 0 && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
468
441
  }
469
442
  static get is() { return "ez-combo-box"; }
470
443
  static get encapsulation() { return "shadow"; }
471
- static get originalStyleUrls() { return {
472
- "$": ["ez-combo-box.css"]
473
- }; }
474
- static get styleUrls() { return {
475
- "$": ["ez-combo-box.css"]
476
- }; }
477
- static get properties() { return {
478
- "value": {
479
- "type": "string",
480
- "mutable": true,
481
- "complexType": {
482
- "original": "IOption | string",
483
- "resolved": "IOption | string",
484
- "references": {
485
- "IOption": {
486
- "location": "local"
444
+ static get originalStyleUrls() {
445
+ return {
446
+ "$": ["ez-combo-box.css"]
447
+ };
448
+ }
449
+ static get styleUrls() {
450
+ return {
451
+ "$": ["ez-combo-box.css"]
452
+ };
453
+ }
454
+ static get properties() {
455
+ return {
456
+ "value": {
457
+ "type": "string",
458
+ "mutable": true,
459
+ "complexType": {
460
+ "original": "IOption | string",
461
+ "resolved": "IOption | string",
462
+ "references": {
463
+ "IOption": {
464
+ "location": "local"
465
+ }
487
466
  }
488
- }
489
- },
490
- "required": false,
491
- "optional": false,
492
- "docs": {
493
- "tags": [],
494
- "text": "Define o valor do campo."
495
- },
496
- "attribute": "value",
497
- "reflect": true
498
- },
499
- "label": {
500
- "type": "string",
501
- "mutable": false,
502
- "complexType": {
503
- "original": "string",
504
- "resolved": "string",
505
- "references": {}
506
- },
507
- "required": false,
508
- "optional": false,
509
- "docs": {
510
- "tags": [],
511
- "text": "Texto a ser apresentado como t\u00EDtulo do campo."
467
+ },
468
+ "required": false,
469
+ "optional": false,
470
+ "docs": {
471
+ "tags": [],
472
+ "text": "Define o valor do campo."
473
+ },
474
+ "attribute": "value",
475
+ "reflect": true
512
476
  },
513
- "attribute": "label",
514
- "reflect": true
515
- },
516
- "enabled": {
517
- "type": "boolean",
518
- "mutable": false,
519
- "complexType": {
520
- "original": "boolean",
521
- "resolved": "boolean",
522
- "references": {}
477
+ "label": {
478
+ "type": "string",
479
+ "mutable": false,
480
+ "complexType": {
481
+ "original": "string",
482
+ "resolved": "string",
483
+ "references": {}
484
+ },
485
+ "required": false,
486
+ "optional": false,
487
+ "docs": {
488
+ "tags": [],
489
+ "text": "Texto a ser apresentado como t\u00EDtulo do campo."
490
+ },
491
+ "attribute": "label",
492
+ "reflect": true
523
493
  },
524
- "required": false,
525
- "optional": false,
526
- "docs": {
527
- "tags": [],
528
- "text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
494
+ "enabled": {
495
+ "type": "boolean",
496
+ "mutable": false,
497
+ "complexType": {
498
+ "original": "boolean",
499
+ "resolved": "boolean",
500
+ "references": {}
501
+ },
502
+ "required": false,
503
+ "optional": false,
504
+ "docs": {
505
+ "tags": [],
506
+ "text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
507
+ },
508
+ "attribute": "enabled",
509
+ "reflect": true,
510
+ "defaultValue": "true"
529
511
  },
530
- "attribute": "enabled",
531
- "reflect": true,
532
- "defaultValue": "true"
533
- },
534
- "options": {
535
- "type": "unknown",
536
- "mutable": true,
537
- "complexType": {
538
- "original": "Array<IOption>",
539
- "resolved": "IOption[]",
540
- "references": {
541
- "Array": {
542
- "location": "global"
543
- },
544
- "IOption": {
545
- "location": "local"
512
+ "options": {
513
+ "type": "unknown",
514
+ "mutable": true,
515
+ "complexType": {
516
+ "original": "Array<IOption>",
517
+ "resolved": "IOption[]",
518
+ "references": {
519
+ "Array": {
520
+ "location": "global"
521
+ },
522
+ "IOption": {
523
+ "location": "local"
524
+ }
546
525
  }
526
+ },
527
+ "required": false,
528
+ "optional": false,
529
+ "docs": {
530
+ "tags": [],
531
+ "text": "Array com as op\u00E7\u00F5es do ez-combo-box. Os elementos devem obedecer\no formato: `{value: string, label: string}`."
547
532
  }
548
533
  },
549
- "required": false,
550
- "optional": false,
551
- "docs": {
552
- "tags": [],
553
- "text": "Array com as op\u00E7\u00F5es do ez-combo-box. Os elementos devem obedecer\no formato: `{value: string, label: string}`."
554
- }
555
- },
556
- "errorMessage": {
557
- "type": "string",
558
- "mutable": true,
559
- "complexType": {
560
- "original": "string",
561
- "resolved": "string",
562
- "references": {}
563
- },
564
- "required": false,
565
- "optional": false,
566
- "docs": {
567
- "tags": [],
568
- "text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
569
- },
570
- "attribute": "error-message",
571
- "reflect": true
572
- },
573
- "searchMode": {
574
- "type": "boolean",
575
- "mutable": false,
576
- "complexType": {
577
- "original": "boolean",
578
- "resolved": "boolean",
579
- "references": {}
580
- },
581
- "required": false,
582
- "optional": false,
583
- "docs": {
584
- "tags": [],
585
- "text": "Se true ativa o modo pesquisa do ez-combo-box."
586
- },
587
- "attribute": "search-mode",
588
- "reflect": false
589
- },
590
- "showSelectedValue": {
591
- "type": "boolean",
592
- "mutable": false,
593
- "complexType": {
594
- "original": "boolean",
595
- "resolved": "boolean",
596
- "references": {}
597
- },
598
- "required": false,
599
- "optional": false,
600
- "docs": {
601
- "tags": [],
602
- "text": "Se true a op\u00E7\u00E3o selecionada exibe o `value` junto com `label`."
534
+ "errorMessage": {
535
+ "type": "string",
536
+ "mutable": true,
537
+ "complexType": {
538
+ "original": "string",
539
+ "resolved": "string",
540
+ "references": {}
541
+ },
542
+ "required": false,
543
+ "optional": false,
544
+ "docs": {
545
+ "tags": [],
546
+ "text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
547
+ },
548
+ "attribute": "error-message",
549
+ "reflect": true
603
550
  },
604
- "attribute": "show-selected-value",
605
- "reflect": false,
606
- "defaultValue": "false"
607
- },
608
- "showOptionValue": {
609
- "type": "boolean",
610
- "mutable": false,
611
- "complexType": {
612
- "original": "boolean",
613
- "resolved": "boolean",
614
- "references": {}
551
+ "searchMode": {
552
+ "type": "boolean",
553
+ "mutable": false,
554
+ "complexType": {
555
+ "original": "boolean",
556
+ "resolved": "boolean",
557
+ "references": {}
558
+ },
559
+ "required": false,
560
+ "optional": false,
561
+ "docs": {
562
+ "tags": [],
563
+ "text": "Se true ativa o modo pesquisa do ez-combo-box."
564
+ },
565
+ "attribute": "search-mode",
566
+ "reflect": false
615
567
  },
616
- "required": false,
617
- "optional": false,
618
- "docs": {
619
- "tags": [],
620
- "text": "Se true cada op\u00E7\u00E3o na lista exibe o `value` junto com `label`."
568
+ "showSelectedValue": {
569
+ "type": "boolean",
570
+ "mutable": false,
571
+ "complexType": {
572
+ "original": "boolean",
573
+ "resolved": "boolean",
574
+ "references": {}
575
+ },
576
+ "required": false,
577
+ "optional": false,
578
+ "docs": {
579
+ "tags": [],
580
+ "text": "Se true a op\u00E7\u00E3o selecionada exibe o `value` junto com `label`."
581
+ },
582
+ "attribute": "show-selected-value",
583
+ "reflect": false,
584
+ "defaultValue": "false"
621
585
  },
622
- "attribute": "show-option-value",
623
- "reflect": false,
624
- "defaultValue": "false"
625
- },
626
- "suppressSearch": {
627
- "type": "boolean",
628
- "mutable": false,
629
- "complexType": {
630
- "original": "boolean",
631
- "resolved": "boolean",
632
- "references": {}
586
+ "showOptionValue": {
587
+ "type": "boolean",
588
+ "mutable": false,
589
+ "complexType": {
590
+ "original": "boolean",
591
+ "resolved": "boolean",
592
+ "references": {}
593
+ },
594
+ "required": false,
595
+ "optional": false,
596
+ "docs": {
597
+ "tags": [],
598
+ "text": "Se true cada op\u00E7\u00E3o na lista exibe o `value` junto com `label`."
599
+ },
600
+ "attribute": "show-option-value",
601
+ "reflect": false,
602
+ "defaultValue": "false"
633
603
  },
634
- "required": false,
635
- "optional": false,
636
- "docs": {
637
- "tags": [],
638
- "text": "Se true desabilita a digita\u00E7\u00E3o dentro do componente."
604
+ "suppressSearch": {
605
+ "type": "boolean",
606
+ "mutable": false,
607
+ "complexType": {
608
+ "original": "boolean",
609
+ "resolved": "boolean",
610
+ "references": {}
611
+ },
612
+ "required": false,
613
+ "optional": false,
614
+ "docs": {
615
+ "tags": [],
616
+ "text": "Se true desabilita a digita\u00E7\u00E3o dentro do componente."
617
+ },
618
+ "attribute": "suppress-search",
619
+ "reflect": false,
620
+ "defaultValue": "false"
639
621
  },
640
- "attribute": "suppress-search",
641
- "reflect": false,
642
- "defaultValue": "false"
643
- },
644
- "optionLoader": {
645
- "type": "unknown",
646
- "mutable": false,
647
- "complexType": {
648
- "original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
649
- "resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
650
- "references": {
651
- "ISearchArgument": {
652
- "location": "local"
653
- },
654
- "Promise": {
655
- "location": "global"
656
- },
657
- "Array": {
658
- "location": "global"
659
- },
660
- "IOption": {
661
- "location": "local"
622
+ "optionLoader": {
623
+ "type": "unknown",
624
+ "mutable": false,
625
+ "complexType": {
626
+ "original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
627
+ "resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
628
+ "references": {
629
+ "ISearchArgument": {
630
+ "location": "local"
631
+ },
632
+ "Promise": {
633
+ "location": "global"
634
+ },
635
+ "Array": {
636
+ "location": "global"
637
+ },
638
+ "IOption": {
639
+ "location": "local"
640
+ }
662
641
  }
642
+ },
643
+ "required": false,
644
+ "optional": false,
645
+ "docs": {
646
+ "tags": [],
647
+ "text": "Carrega as op\u00E7\u00F5es dinamicamente."
663
648
  }
664
649
  },
665
- "required": false,
666
- "optional": false,
667
- "docs": {
668
- "tags": [],
669
- "text": "Carrega as op\u00E7\u00F5es dinamicamente."
670
- }
671
- },
672
- "suppressEmptyOption": {
673
- "type": "boolean",
674
- "mutable": false,
675
- "complexType": {
676
- "original": "boolean",
677
- "resolved": "boolean",
678
- "references": {}
679
- },
680
- "required": false,
681
- "optional": false,
682
- "docs": {
683
- "tags": [],
684
- "text": "Se true remove a op\u00E7\u00E3o vazia da lista."
685
- },
686
- "attribute": "suppress-empty-option",
687
- "reflect": false,
688
- "defaultValue": "false"
689
- },
690
- "canShowError": {
691
- "type": "boolean",
692
- "mutable": false,
693
- "complexType": {
694
- "original": "boolean",
695
- "resolved": "boolean",
696
- "references": {}
697
- },
698
- "required": false,
699
- "optional": false,
700
- "docs": {
701
- "tags": [],
702
- "text": "Se false deixa de exibir a mensagem de erro dentro do campo."
703
- },
704
- "attribute": "can-show-error",
705
- "reflect": true,
706
- "defaultValue": "true"
707
- },
708
- "mode": {
709
- "type": "string",
710
- "mutable": false,
711
- "complexType": {
712
- "original": "\"slim\" | \"regular\"",
713
- "resolved": "\"regular\" | \"slim\"",
714
- "references": {}
715
- },
716
- "required": false,
717
- "optional": false,
718
- "docs": {
719
- "tags": [],
720
- "text": "Define o tamanho do campo."
721
- },
722
- "attribute": "mode",
723
- "reflect": true,
724
- "defaultValue": "\"regular\""
725
- }
726
- }; }
727
- static get states() { return {
728
- "_preSelection": {},
729
- "_visibleOptions": {},
730
- "_startLoading": {},
731
- "_showLoading": {},
732
- "_criteria": {}
733
- }; }
734
- static get events() { return [{
735
- "method": "ezChange",
736
- "name": "ezChange",
737
- "bubbles": true,
738
- "cancelable": true,
739
- "composed": true,
740
- "docs": {
741
- "tags": [],
742
- "text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
650
+ "suppressEmptyOption": {
651
+ "type": "boolean",
652
+ "mutable": false,
653
+ "complexType": {
654
+ "original": "boolean",
655
+ "resolved": "boolean",
656
+ "references": {}
657
+ },
658
+ "required": false,
659
+ "optional": false,
660
+ "docs": {
661
+ "tags": [],
662
+ "text": "Se true remove a op\u00E7\u00E3o vazia da lista."
663
+ },
664
+ "attribute": "suppress-empty-option",
665
+ "reflect": false,
666
+ "defaultValue": "false"
743
667
  },
744
- "complexType": {
745
- "original": "IOption",
746
- "resolved": "IOption",
747
- "references": {
748
- "IOption": {
749
- "location": "local"
750
- }
751
- }
752
- }
753
- }]; }
754
- static get methods() { return {
755
- "setFocus": {
756
- "complexType": {
757
- "signature": "() => Promise<void>",
758
- "parameters": [],
759
- "references": {
760
- "Promise": {
761
- "location": "global"
762
- }
668
+ "canShowError": {
669
+ "type": "boolean",
670
+ "mutable": false,
671
+ "complexType": {
672
+ "original": "boolean",
673
+ "resolved": "boolean",
674
+ "references": {}
763
675
  },
764
- "return": "Promise<void>"
676
+ "required": false,
677
+ "optional": false,
678
+ "docs": {
679
+ "tags": [],
680
+ "text": "Se false deixa de exibir a mensagem de erro dentro do campo."
681
+ },
682
+ "attribute": "can-show-error",
683
+ "reflect": true,
684
+ "defaultValue": "true"
765
685
  },
766
- "docs": {
767
- "text": "Aplica o foco no campo.",
768
- "tags": []
686
+ "mode": {
687
+ "type": "string",
688
+ "mutable": false,
689
+ "complexType": {
690
+ "original": "\"slim\" | \"regular\"",
691
+ "resolved": "\"regular\" | \"slim\"",
692
+ "references": {}
693
+ },
694
+ "required": false,
695
+ "optional": false,
696
+ "docs": {
697
+ "tags": [],
698
+ "text": "Define o tamanho do campo."
699
+ },
700
+ "attribute": "mode",
701
+ "reflect": true,
702
+ "defaultValue": "\"regular\""
769
703
  }
770
- },
771
- "setBlur": {
772
- "complexType": {
773
- "signature": "() => Promise<void>",
774
- "parameters": [],
775
- "references": {
776
- "Promise": {
777
- "location": "global"
704
+ };
705
+ }
706
+ static get states() {
707
+ return {
708
+ "_preSelection": {},
709
+ "_visibleOptions": {},
710
+ "_startLoading": {},
711
+ "_showLoading": {},
712
+ "_criteria": {}
713
+ };
714
+ }
715
+ static get events() {
716
+ return [{
717
+ "method": "ezChange",
718
+ "name": "ezChange",
719
+ "bubbles": true,
720
+ "cancelable": true,
721
+ "composed": true,
722
+ "docs": {
723
+ "tags": [],
724
+ "text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
725
+ },
726
+ "complexType": {
727
+ "original": "IOption",
728
+ "resolved": "IOption",
729
+ "references": {
730
+ "IOption": {
731
+ "location": "local"
732
+ }
778
733
  }
734
+ }
735
+ }];
736
+ }
737
+ static get methods() {
738
+ return {
739
+ "setFocus": {
740
+ "complexType": {
741
+ "signature": "() => Promise<void>",
742
+ "parameters": [],
743
+ "references": {
744
+ "Promise": {
745
+ "location": "global"
746
+ }
747
+ },
748
+ "return": "Promise<void>"
779
749
  },
780
- "return": "Promise<void>"
750
+ "docs": {
751
+ "text": "Aplica o foco no campo.",
752
+ "tags": []
753
+ }
781
754
  },
782
- "docs": {
783
- "text": "Remove o foco do campo.",
784
- "tags": []
785
- }
786
- },
787
- "isInvalid": {
788
- "complexType": {
789
- "signature": "() => Promise<boolean>",
790
- "parameters": [],
791
- "references": {
792
- "Promise": {
793
- "location": "global"
794
- }
755
+ "setBlur": {
756
+ "complexType": {
757
+ "signature": "() => Promise<void>",
758
+ "parameters": [],
759
+ "references": {
760
+ "Promise": {
761
+ "location": "global"
762
+ }
763
+ },
764
+ "return": "Promise<void>"
795
765
  },
796
- "return": "Promise<boolean>"
766
+ "docs": {
767
+ "text": "Remove o foco do campo.",
768
+ "tags": []
769
+ }
797
770
  },
798
- "docs": {
799
- "text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
800
- "tags": []
771
+ "isInvalid": {
772
+ "complexType": {
773
+ "signature": "() => Promise<boolean>",
774
+ "parameters": [],
775
+ "references": {
776
+ "Promise": {
777
+ "location": "global"
778
+ }
779
+ },
780
+ "return": "Promise<boolean>"
781
+ },
782
+ "docs": {
783
+ "text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
784
+ "tags": []
785
+ }
801
786
  }
802
- }
803
- }; }
787
+ };
788
+ }
804
789
  static get elementRef() { return "el"; }
805
- static get watchers() { return [{
806
- "propName": "errorMessage",
807
- "methodName": "observeErrorMessage"
808
- }, {
809
- "propName": "value",
810
- "methodName": "observeValue"
811
- }]; }
790
+ static get watchers() {
791
+ return [{
792
+ "propName": "errorMessage",
793
+ "methodName": "observeErrorMessage"
794
+ }, {
795
+ "propName": "value",
796
+ "methodName": "observeValue"
797
+ }];
798
+ }
812
799
  }
813
800
  var SearchMode;
814
801
  (function (SearchMode) {