@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,20 +1,12 @@
1
- import { Component, Prop, State, h, Host, Method, Element } from "@stencil/core";
1
+ import { h, Host } from "@stencil/core";
2
2
  import { ElementIDUtils } from "@sankhyalabs/core";
3
3
  import { EzScrollDirection } from "../ez-scroller/EzScrollDirection";
4
4
  const ENTER_KEY = "Enter";
5
5
  export class EzGuideNavigator {
6
6
  constructor() {
7
- /**
8
- * Define se o menu de navegação está aberto.
9
- */
10
7
  this.open = true;
11
- /**
12
- * Lista de itens do menu de navegação.
13
- */
14
8
  this.items = [];
15
- /**
16
- * Valor do campo de pesquisa usado na filtragem de guias.
17
- */
9
+ this.tooltipResolver = undefined;
18
10
  this.filterText = "";
19
11
  }
20
12
  /**
@@ -39,135 +31,138 @@ export class EzGuideNavigator {
39
31
  }
40
32
  render() {
41
33
  ElementIDUtils.addIDInfoIfNotExists(this._element);
42
- return (h(Host, null,
43
- h("ez-sidebar-button", { class: this.open ? "hidden" : "", onEzClick: this.handleToggleSidebar.bind(this), "aria-controls": "navigator", "aria-expanded": this.open, "data-element-id": ElementIDUtils.getInternalIDInfo("openButton") }),
44
- h("aside", { tabIndex: -1, id: "navigator", class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-guide-navigator " + (this.open ? "" : "hidden"), "data-element-id": ElementIDUtils.getInternalIDInfo("sidebar") },
45
- h("div", { role: "search", class: "ez-guide-navigator__actions" },
46
- h("ez-filter-input", { mode: "slim", value: this.filterText, onEzChange: (event) => (this.filterText = event.detail), label: "Buscar guia", "aria-placeholder": "Buscar guia", onKeyUp: this.handleFilterTree.bind(this), "data-element-id": ElementIDUtils.getInternalIDInfo("textinput") }),
47
- h("ez-button", { onClick: this.handleToggleSidebar.bind(this), class: "inverted", mode: "icon", size: "small", iconName: "show_menu", title: "Ocultar menu", "aria-label": "Ocultar menu", "aria-controls": "navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("closeButton") })),
48
- h("ez-scroller", { direction: EzScrollDirection.VERTICAL, activeShadow: true },
49
- h("ez-tree", { ref: element => (this._tree = element), items: this.items, "data-element-id": ElementIDUtils.getInternalIDInfo("tree"), tooltipResolver: this.tooltipResolver })))));
34
+ return (h(Host, null, h("ez-sidebar-button", { class: this.open ? "hidden" : "", onEzClick: this.handleToggleSidebar.bind(this), "aria-controls": "navigator", "aria-expanded": this.open, "data-element-id": ElementIDUtils.getInternalIDInfo("openButton") }), h("aside", { tabIndex: -1, id: "navigator", class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-guide-navigator " + (this.open ? "" : "hidden"), "data-element-id": ElementIDUtils.getInternalIDInfo("sidebar") }, h("div", { role: "search", class: "ez-guide-navigator__actions" }, h("ez-filter-input", { mode: "slim", value: this.filterText, onEzChange: (event) => (this.filterText = event.detail), label: "Buscar guia", "aria-placeholder": "Buscar guia", onKeyUp: this.handleFilterTree.bind(this), "data-element-id": ElementIDUtils.getInternalIDInfo("textinput") }), h("ez-button", { onClick: this.handleToggleSidebar.bind(this), class: "inverted", mode: "icon", size: "small", iconName: "show_menu", title: "Ocultar menu", "aria-label": "Ocultar menu", "aria-controls": "navigator", "data-element-id": ElementIDUtils.getInternalIDInfo("closeButton") })), h("ez-scroller", { direction: EzScrollDirection.VERTICAL, activeShadow: true }, h("ez-tree", { ref: element => (this._tree = element), items: this.items, "data-element-id": ElementIDUtils.getInternalIDInfo("tree"), tooltipResolver: this.tooltipResolver })))));
50
35
  }
51
36
  static get is() { return "ez-guide-navigator"; }
52
37
  static get encapsulation() { return "shadow"; }
53
- static get originalStyleUrls() { return {
54
- "$": ["ez-guide-navigator.css"]
55
- }; }
56
- static get styleUrls() { return {
57
- "$": ["ez-guide-navigator.css"]
58
- }; }
59
- static get properties() { return {
60
- "open": {
61
- "type": "boolean",
62
- "mutable": true,
63
- "complexType": {
64
- "original": "boolean",
65
- "resolved": "boolean",
66
- "references": {}
67
- },
68
- "required": false,
69
- "optional": false,
70
- "docs": {
71
- "tags": [],
72
- "text": "Define se o menu de navega\u00E7\u00E3o est\u00E1 aberto."
38
+ static get originalStyleUrls() {
39
+ return {
40
+ "$": ["ez-guide-navigator.css"]
41
+ };
42
+ }
43
+ static get styleUrls() {
44
+ return {
45
+ "$": ["ez-guide-navigator.css"]
46
+ };
47
+ }
48
+ static get properties() {
49
+ return {
50
+ "open": {
51
+ "type": "boolean",
52
+ "mutable": true,
53
+ "complexType": {
54
+ "original": "boolean",
55
+ "resolved": "boolean",
56
+ "references": {}
57
+ },
58
+ "required": false,
59
+ "optional": false,
60
+ "docs": {
61
+ "tags": [],
62
+ "text": "Define se o menu de navega\u00E7\u00E3o est\u00E1 aberto."
63
+ },
64
+ "attribute": "open",
65
+ "reflect": true,
66
+ "defaultValue": "true"
73
67
  },
74
- "attribute": "open",
75
- "reflect": true,
76
- "defaultValue": "true"
77
- },
78
- "items": {
79
- "type": "unknown",
80
- "mutable": false,
81
- "complexType": {
82
- "original": "Array<IGuideItem>",
83
- "resolved": "IGuideItem[]",
84
- "references": {
85
- "Array": {
86
- "location": "global"
87
- },
88
- "IGuideItem": {
89
- "location": "import",
90
- "path": "./interfaces"
68
+ "items": {
69
+ "type": "unknown",
70
+ "mutable": false,
71
+ "complexType": {
72
+ "original": "Array<IGuideItem>",
73
+ "resolved": "IGuideItem[]",
74
+ "references": {
75
+ "Array": {
76
+ "location": "global"
77
+ },
78
+ "IGuideItem": {
79
+ "location": "import",
80
+ "path": "./interfaces"
81
+ }
91
82
  }
92
- }
93
- },
94
- "required": false,
95
- "optional": false,
96
- "docs": {
97
- "tags": [],
98
- "text": "Lista de itens do menu de navega\u00E7\u00E3o."
83
+ },
84
+ "required": false,
85
+ "optional": false,
86
+ "docs": {
87
+ "tags": [],
88
+ "text": "Lista de itens do menu de navega\u00E7\u00E3o."
89
+ },
90
+ "defaultValue": "[]"
99
91
  },
100
- "defaultValue": "[]"
101
- },
102
- "tooltipResolver": {
103
- "type": "unknown",
104
- "mutable": false,
105
- "complexType": {
106
- "original": "(item: IGuideItem, enabled: boolean, level: number) => string",
107
- "resolved": "(item: IGuideItem, enabled: boolean, level: number) => string",
108
- "references": {
109
- "IGuideItem": {
110
- "location": "import",
111
- "path": "./interfaces"
92
+ "tooltipResolver": {
93
+ "type": "unknown",
94
+ "mutable": false,
95
+ "complexType": {
96
+ "original": "(item: IGuideItem, enabled: boolean, level: number) => string",
97
+ "resolved": "(item: IGuideItem, enabled: boolean, level: number) => string",
98
+ "references": {
99
+ "IGuideItem": {
100
+ "location": "import",
101
+ "path": "./interfaces"
102
+ }
112
103
  }
104
+ },
105
+ "required": false,
106
+ "optional": false,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": "Define uma fun\u00E7\u00E3o que vai resolver o `tooltip` ou `title` daquele item."
113
110
  }
114
- },
115
- "required": false,
116
- "optional": false,
117
- "docs": {
118
- "tags": [],
119
- "text": "Define uma fun\u00E7\u00E3o que vai resolver o `tooltip` ou `title` daquele item."
120
111
  }
121
- }
122
- }; }
123
- static get states() { return {
124
- "filterText": {}
125
- }; }
126
- static get methods() { return {
127
- "disableItem": {
128
- "complexType": {
129
- "signature": "(id: string | Array<string>) => Promise<void>",
130
- "parameters": [{
131
- "tags": [],
132
- "text": ""
133
- }],
134
- "references": {
135
- "Promise": {
136
- "location": "global"
112
+ };
113
+ }
114
+ static get states() {
115
+ return {
116
+ "filterText": {}
117
+ };
118
+ }
119
+ static get methods() {
120
+ return {
121
+ "disableItem": {
122
+ "complexType": {
123
+ "signature": "(id: string | Array<string>) => Promise<void>",
124
+ "parameters": [{
125
+ "tags": [],
126
+ "text": ""
127
+ }],
128
+ "references": {
129
+ "Promise": {
130
+ "location": "global"
131
+ },
132
+ "Array": {
133
+ "location": "global"
134
+ }
137
135
  },
138
- "Array": {
139
- "location": "global"
140
- }
136
+ "return": "Promise<void>"
141
137
  },
142
- "return": "Promise<void>"
138
+ "docs": {
139
+ "text": "Desabilita um ou mais itens.",
140
+ "tags": []
141
+ }
143
142
  },
144
- "docs": {
145
- "text": "Desabilita um ou mais itens.",
146
- "tags": []
147
- }
148
- },
149
- "enableItem": {
150
- "complexType": {
151
- "signature": "(id: string | Array<string>) => Promise<void>",
152
- "parameters": [{
153
- "tags": [],
154
- "text": ""
155
- }],
156
- "references": {
157
- "Promise": {
158
- "location": "global"
143
+ "enableItem": {
144
+ "complexType": {
145
+ "signature": "(id: string | Array<string>) => Promise<void>",
146
+ "parameters": [{
147
+ "tags": [],
148
+ "text": ""
149
+ }],
150
+ "references": {
151
+ "Promise": {
152
+ "location": "global"
153
+ },
154
+ "Array": {
155
+ "location": "global"
156
+ }
159
157
  },
160
- "Array": {
161
- "location": "global"
162
- }
158
+ "return": "Promise<void>"
163
159
  },
164
- "return": "Promise<void>"
165
- },
166
- "docs": {
167
- "text": "Habilita um ou mais itens.",
168
- "tags": []
160
+ "docs": {
161
+ "text": "Habilita um ou mais itens.",
162
+ "tags": []
163
+ }
169
164
  }
170
- }
171
- }; }
165
+ };
166
+ }
172
167
  static get elementRef() { return "_element"; }
173
168
  }
@@ -1,11 +1,10 @@
1
1
  import { ElementIDUtils, StringUtils } from "@sankhyalabs/core";
2
- import { Component, Element, h, Host, Prop } from "@stencil/core";
2
+ import { h, Host } from "@stencil/core";
3
3
  export class EzIcon {
4
4
  constructor() {
5
- /**
6
- * Define o tamanho do ícone.
7
- */
8
5
  this.size = "medium";
6
+ this.href = undefined;
7
+ this.iconName = undefined;
9
8
  }
10
9
  isSprite() {
11
10
  return this.href && this.href.indexOf("#") > -1;
@@ -15,8 +14,7 @@ export class EzIcon {
15
14
  }
16
15
  getIconContent() {
17
16
  if (this.isSprite()) {
18
- return h("svg", { class: this.size, role: "img" },
19
- h("use", { xlinkHref: this.href }));
17
+ return h("svg", { class: this.size, role: "img" }, h("use", { xlinkHref: this.href }));
20
18
  }
21
19
  else if (!StringUtils.isEmpty(this.iconName)) {
22
20
  return h("span", { class: `icon-content ${this.getIconClassName()} ${this.size}--font` });
@@ -33,65 +31,71 @@ export class EzIcon {
33
31
  }
34
32
  static get is() { return "ez-icon"; }
35
33
  static get encapsulation() { return "shadow"; }
36
- static get originalStyleUrls() { return {
37
- "$": ["ez-icon.css"]
38
- }; }
39
- static get styleUrls() { return {
40
- "$": ["ez-icon.css"]
41
- }; }
42
- static get properties() { return {
43
- "size": {
44
- "type": "string",
45
- "mutable": false,
46
- "complexType": {
47
- "original": "\"x-small\" | \"small\"| \"medium\" | \"large\" | \"x-large\"",
48
- "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\"",
49
- "references": {}
50
- },
51
- "required": false,
52
- "optional": false,
53
- "docs": {
54
- "tags": [],
55
- "text": "Define o tamanho do \u00EDcone."
56
- },
57
- "attribute": "size",
58
- "reflect": true,
59
- "defaultValue": "\"medium\""
60
- },
61
- "href": {
62
- "type": "string",
63
- "mutable": false,
64
- "complexType": {
65
- "original": "string",
66
- "resolved": "string",
67
- "references": {}
68
- },
69
- "required": false,
70
- "optional": false,
71
- "docs": {
72
- "tags": [],
73
- "text": "Define o endere\u00E7o da imagem quando n\u00E3o contempladas na biblioteca de \u00EDcones."
74
- },
75
- "attribute": "href",
76
- "reflect": true
77
- },
78
- "iconName": {
79
- "type": "string",
80
- "mutable": false,
81
- "complexType": {
82
- "original": "string",
83
- "resolved": "string",
84
- "references": {}
34
+ static get originalStyleUrls() {
35
+ return {
36
+ "$": ["ez-icon.css"]
37
+ };
38
+ }
39
+ static get styleUrls() {
40
+ return {
41
+ "$": ["ez-icon.css"]
42
+ };
43
+ }
44
+ static get properties() {
45
+ return {
46
+ "size": {
47
+ "type": "string",
48
+ "mutable": false,
49
+ "complexType": {
50
+ "original": "\"x-small\" | \"small\"| \"medium\" | \"large\" | \"x-large\"",
51
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\"",
52
+ "references": {}
53
+ },
54
+ "required": false,
55
+ "optional": false,
56
+ "docs": {
57
+ "tags": [],
58
+ "text": "Define o tamanho do \u00EDcone."
59
+ },
60
+ "attribute": "size",
61
+ "reflect": true,
62
+ "defaultValue": "\"medium\""
85
63
  },
86
- "required": false,
87
- "optional": false,
88
- "docs": {
89
- "tags": [],
90
- "text": "Define o \u00EDcone a ser usado da biblioteca de \u00EDcones: [ez-icons](https://sankhyalabs-storybook.herokuapp.com/themes/default/icons/fonts/index.html)"
64
+ "href": {
65
+ "type": "string",
66
+ "mutable": false,
67
+ "complexType": {
68
+ "original": "string",
69
+ "resolved": "string",
70
+ "references": {}
71
+ },
72
+ "required": false,
73
+ "optional": false,
74
+ "docs": {
75
+ "tags": [],
76
+ "text": "Define o endere\u00E7o da imagem quando n\u00E3o contempladas na biblioteca de \u00EDcones."
77
+ },
78
+ "attribute": "href",
79
+ "reflect": true
91
80
  },
92
- "attribute": "icon-name",
93
- "reflect": true
94
- }
95
- }; }
81
+ "iconName": {
82
+ "type": "string",
83
+ "mutable": false,
84
+ "complexType": {
85
+ "original": "string",
86
+ "resolved": "string",
87
+ "references": {}
88
+ },
89
+ "required": false,
90
+ "optional": false,
91
+ "docs": {
92
+ "tags": [],
93
+ "text": "Define o \u00EDcone a ser usado da biblioteca de \u00EDcones: [ez-icons](https://sankhyalabs-storybook.herokuapp.com/themes/default/icons/fonts/index.html)"
94
+ },
95
+ "attribute": "icon-name",
96
+ "reflect": true
97
+ }
98
+ };
99
+ }
96
100
  static get elementRef() { return "_hostElement"; }
97
101
  }