@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-86600.1 → 0.0.0-bugfix-dev-KB-86904.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 (262) hide show
  1. package/dist/cjs/{types-6a5df0c7.js → FormLayout-18853e70.js} +6 -0
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +3 -4
  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-avatar.cjs.entry.js +50 -0
  7. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-button.cjs.entry.js +2 -2
  10. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-card-item_2.cjs.entry.js +13 -16
  12. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-check.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -4
  16. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +4 -5
  17. package/dist/cjs/ez-combo-box.cjs.entry.js +7 -8
  18. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  20. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-dropdown.cjs.entry.js +2 -2
  23. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-filter-input.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  26. package/dist/cjs/ez-form.cjs.entry.js +61 -6
  27. package/dist/cjs/ez-grid.cjs.entry.js +80 -17
  28. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  29. package/dist/cjs/ez-icon.cjs.entry.js +12 -6
  30. package/dist/cjs/ez-list.cjs.entry.js +2 -2
  31. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
  33. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  36. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +32 -3
  37. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-search-plus.cjs.entry.js +5 -6
  42. package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-search.cjs.entry.js +14 -4
  44. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-skeleton.cjs.entry.js +119 -37
  46. package/dist/cjs/ez-split-button.cjs.entry.js +16 -7
  47. package/dist/cjs/ez-split-item.cjs.entry.js +2 -3
  48. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-text-input.cjs.entry.js +17 -3
  52. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  53. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  54. package/dist/cjs/ez-tooltip.cjs.entry.js +3 -3
  55. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  56. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  57. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  58. package/dist/cjs/ezui.cjs.js +2 -2
  59. package/dist/cjs/filter-column.cjs.entry.js +1 -2
  60. package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +7 -0
  61. package/dist/cjs/loader.cjs.js +2 -2
  62. package/dist/cjs/{DataBinder-b9973a19.js → search-column-1d3c9fa5.js} +31 -0
  63. package/dist/collection/collection-manifest.json +1 -0
  64. package/dist/collection/components/ez-actions-button/ez-actions-button.css +2 -0
  65. package/dist/collection/components/ez-avatar/ez-avatar.css +139 -0
  66. package/dist/collection/components/ez-avatar/ez-avatar.js +143 -0
  67. package/dist/collection/components/ez-button/ez-button.css +2 -2
  68. package/dist/collection/components/ez-check/ez-check.css +1 -1
  69. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -1
  70. package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -5
  71. package/dist/collection/components/ez-dropdown/ez-dropdown.js +1 -1
  72. package/dist/collection/components/ez-form/ez-form.js +95 -2
  73. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +25 -2
  74. package/dist/collection/components/ez-grid/ez-grid.css +8 -0
  75. package/dist/collection/components/ez-grid/ez-grid.js +84 -6
  76. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +0 -1
  77. package/dist/collection/components/ez-icon/ez-icon.js +28 -5
  78. package/dist/collection/components/ez-list/ez-list.css +1 -0
  79. package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -1
  80. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +12 -15
  81. package/dist/collection/components/ez-search/ez-search.js +12 -1
  82. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +31 -2
  83. package/dist/collection/components/ez-search-plus/ez-search-plus.js +16 -40
  84. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +25 -1
  85. package/dist/collection/components/ez-skeleton/ez-skeleton.css +122 -80
  86. package/dist/collection/components/ez-skeleton/ez-skeleton.js +210 -46
  87. package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
  88. package/dist/collection/components/ez-split-button/ez-split-button.js +87 -10
  89. package/dist/collection/components/ez-text-input/ez-text-input.css +7 -0
  90. package/dist/collection/components/ez-text-input/ez-text-input.js +15 -1
  91. package/dist/collection/components/ez-tooltip/ez-tooltip.css +1 -0
  92. package/dist/collection/components/ez-tooltip/ez-tooltip.js +2 -2
  93. package/dist/collection/utils/index.js +1 -0
  94. package/dist/collection/utils/searchColumn/search-column.js +35 -0
  95. package/dist/custom-elements/index.d.ts +6 -0
  96. package/dist/custom-elements/index.js +434 -98
  97. package/dist/esm/{types-6f6b2650.js → FormLayout-071d324c.js} +7 -1
  98. package/dist/esm/ez-actions-button.entry.js +3 -4
  99. package/dist/esm/ez-alert-list.entry.js +1 -1
  100. package/dist/esm/ez-alert.entry.js +1 -1
  101. package/dist/esm/ez-application.entry.js +1 -1
  102. package/dist/esm/ez-avatar.entry.js +46 -0
  103. package/dist/esm/ez-badge.entry.js +1 -1
  104. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  105. package/dist/esm/ez-button.entry.js +2 -2
  106. package/dist/esm/ez-calendar.entry.js +1 -1
  107. package/dist/esm/ez-card-item_2.entry.js +13 -16
  108. package/dist/esm/ez-chart.entry.js +1 -1
  109. package/dist/esm/ez-check.entry.js +2 -2
  110. package/dist/esm/ez-chip.entry.js +1 -1
  111. package/dist/esm/ez-collapsible-box.entry.js +3 -4
  112. package/dist/esm/ez-combo-box-list_3.entry.js +3 -4
  113. package/dist/esm/ez-combo-box.entry.js +7 -8
  114. package/dist/esm/ez-date-input.entry.js +1 -1
  115. package/dist/esm/ez-date-time-input.entry.js +1 -1
  116. package/dist/esm/ez-dialog.entry.js +1 -1
  117. package/dist/esm/ez-double-list.entry.js +1 -1
  118. package/dist/esm/ez-dropdown.entry.js +2 -2
  119. package/dist/esm/ez-file-item.entry.js +1 -1
  120. package/dist/esm/ez-filter-input.entry.js +1 -1
  121. package/dist/esm/ez-form-view.entry.js +1 -1
  122. package/dist/esm/ez-form.entry.js +60 -5
  123. package/dist/esm/ez-grid.entry.js +75 -12
  124. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  125. package/dist/esm/ez-icon.entry.js +12 -6
  126. package/dist/esm/ez-list.entry.js +2 -2
  127. package/dist/esm/ez-loading-bar.entry.js +1 -1
  128. package/dist/esm/ez-modal-container.entry.js +2 -2
  129. package/dist/esm/ez-modal.entry.js +1 -1
  130. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  131. package/dist/esm/ez-number-input.entry.js +1 -1
  132. package/dist/esm/ez-popover-plus_3.entry.js +32 -3
  133. package/dist/esm/ez-popover.entry.js +1 -1
  134. package/dist/esm/ez-popup.entry.js +1 -1
  135. package/dist/esm/ez-radio-button.entry.js +1 -1
  136. package/dist/esm/ez-scroller_2.entry.js +1 -1
  137. package/dist/esm/ez-search-plus.entry.js +2 -3
  138. package/dist/esm/ez-search-result-list.entry.js +1 -1
  139. package/dist/esm/ez-search.entry.js +14 -4
  140. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  141. package/dist/esm/ez-skeleton.entry.js +119 -37
  142. package/dist/esm/ez-split-button.entry.js +16 -7
  143. package/dist/esm/ez-split-item.entry.js +2 -3
  144. package/dist/esm/ez-split-panel.entry.js +1 -1
  145. package/dist/esm/ez-tabselector.entry.js +1 -1
  146. package/dist/esm/ez-text-area.entry.js +1 -1
  147. package/dist/esm/ez-text-input.entry.js +17 -3
  148. package/dist/esm/ez-time-input.entry.js +1 -1
  149. package/dist/esm/ez-toast.entry.js +1 -1
  150. package/dist/esm/ez-tooltip.entry.js +3 -3
  151. package/dist/esm/ez-tree.entry.js +1 -1
  152. package/dist/esm/ez-upload.entry.js +1 -1
  153. package/dist/esm/ez-view-stack.entry.js +1 -1
  154. package/dist/esm/ezui.js +3 -3
  155. package/dist/esm/filter-column.entry.js +1 -2
  156. package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +7 -1
  157. package/dist/esm/loader.js +3 -3
  158. package/dist/esm/{DataBinder-1035e36f.js → search-column-35f4ad93.js} +26 -1
  159. package/dist/ezui/ezui.esm.js +1 -1
  160. package/dist/ezui/{p-e75c7a23.entry.js → p-000159dc.entry.js} +1 -1
  161. package/dist/ezui/p-01b72d7e.entry.js +1 -0
  162. package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
  163. package/dist/ezui/{p-288631d1.entry.js → p-06f1b8e4.entry.js} +1 -1
  164. package/dist/ezui/{p-d47dabdf.entry.js → p-07594da0.entry.js} +1 -1
  165. package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
  166. package/dist/ezui/p-15d9cd15.entry.js +1 -0
  167. package/dist/ezui/p-175154a0.js +1 -0
  168. package/dist/ezui/{p-9c5cd3b2.entry.js → p-18e71523.entry.js} +1 -1
  169. package/dist/ezui/{p-2b4df33d.entry.js → p-1fefb37a.entry.js} +1 -1
  170. package/dist/ezui/{p-7e677b7b.entry.js → p-2069c78a.entry.js} +1 -1
  171. package/dist/ezui/p-28987410.entry.js +1 -0
  172. package/dist/ezui/p-2d10bb18.entry.js +1 -0
  173. package/dist/ezui/{p-e06a9886.entry.js → p-2f351332.entry.js} +1 -1
  174. package/dist/ezui/p-30ffb9ed.js +1 -0
  175. package/dist/ezui/{p-fa6732f2.entry.js → p-44b39e81.entry.js} +1 -1
  176. package/dist/ezui/p-4a876b8b.entry.js +1 -0
  177. package/dist/ezui/{p-03c106f6.entry.js → p-4e66eaeb.entry.js} +1 -1
  178. package/dist/ezui/{p-574b9e72.entry.js → p-682931aa.entry.js} +46 -46
  179. package/dist/ezui/p-6b2cc9b8.entry.js +1 -0
  180. package/dist/ezui/{p-496f7832.entry.js → p-6b3fddee.entry.js} +1 -1
  181. package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
  182. package/dist/ezui/p-6ec40dec.entry.js +1 -0
  183. package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
  184. package/dist/ezui/p-700c1320.entry.js +1 -0
  185. package/dist/ezui/{p-da1b4a38.entry.js → p-708b196e.entry.js} +1 -1
  186. package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
  187. package/dist/ezui/p-769632d5.entry.js +1 -0
  188. package/dist/ezui/{p-0bffeffc.entry.js → p-7ec3f335.entry.js} +1 -1
  189. package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
  190. package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
  191. package/dist/ezui/{p-2872fd16.entry.js → p-87f5a060.entry.js} +1 -1
  192. package/dist/ezui/p-90c90351.entry.js +1 -0
  193. package/dist/ezui/{p-4bd6dd6a.entry.js → p-90e91173.entry.js} +1 -1
  194. package/dist/ezui/{p-09de35a2.entry.js → p-91ccae0c.entry.js} +1 -1
  195. package/dist/ezui/{p-bac0f920.entry.js → p-926a0bde.entry.js} +1 -1
  196. package/dist/ezui/{p-c0d9c4f8.entry.js → p-92748142.entry.js} +1 -1
  197. package/dist/ezui/{p-3ba9565c.entry.js → p-97d94ef3.entry.js} +1 -1
  198. package/dist/ezui/{p-e6a9041d.entry.js → p-9e95bfeb.entry.js} +1 -1
  199. package/dist/ezui/{p-cb75eb46.entry.js → p-a11827ca.entry.js} +1 -1
  200. package/dist/ezui/{p-bf9dec89.entry.js → p-b3b3c99a.entry.js} +1 -1
  201. package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
  202. package/dist/ezui/{p-dc73e1fe.entry.js → p-c7035d65.entry.js} +1 -1
  203. package/dist/ezui/p-c8e6204f.entry.js +1 -0
  204. package/dist/ezui/{p-20c024f7.entry.js → p-cf33bc48.entry.js} +1 -1
  205. package/dist/ezui/{p-7019f782.entry.js → p-d2290004.entry.js} +1 -1
  206. package/dist/ezui/p-d4d6d5fe.entry.js +1 -0
  207. package/dist/ezui/p-da66838e.entry.js +1 -0
  208. package/dist/ezui/p-dd7d305a.entry.js +1 -0
  209. package/dist/ezui/{p-9567b31a.entry.js → p-ddb22a70.entry.js} +1 -1
  210. package/dist/ezui/p-ddd0bd61.entry.js +1 -0
  211. package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
  212. package/dist/ezui/{p-b81881ac.entry.js → p-e195eaad.entry.js} +1 -1
  213. package/dist/ezui/p-e4ae4ddb.entry.js +1 -0
  214. package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
  215. package/dist/ezui/p-e4ead194.entry.js +1 -0
  216. package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
  217. package/dist/ezui/{p-6825bdc7.entry.js → p-ea053063.entry.js} +1 -1
  218. package/dist/ezui/{p-9478b13b.entry.js → p-ed48a632.entry.js} +1 -1
  219. package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
  220. package/dist/types/components/ez-avatar/ez-avatar.d.ts +24 -0
  221. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
  222. package/dist/types/components/ez-form/ez-form.d.ts +18 -0
  223. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +9 -1
  224. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -1
  225. package/dist/types/components/ez-grid/ez-grid.d.ts +12 -0
  226. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -0
  227. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +1 -3
  228. package/dist/types/components/ez-search/ez-search.d.ts +1 -0
  229. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +6 -0
  230. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +8 -8
  231. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +55 -1
  232. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +50 -22
  233. package/dist/types/components/ez-split-button/ez-split-button.d.ts +14 -2
  234. package/dist/types/components/ez-text-input/ez-text-input.d.ts +2 -0
  235. package/dist/types/components.d.ts +182 -24
  236. package/dist/types/utils/index.d.ts +1 -0
  237. package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
  238. package/package.json +5 -4
  239. package/react/components.d.ts +1 -0
  240. package/react/components.js +1 -0
  241. package/react/components.js.map +1 -1
  242. package/dist/cjs/FormLayout-c2451c7f.js +0 -7
  243. package/dist/esm/FormLayout-54092963.js +0 -7
  244. package/dist/ezui/p-15ea0c98.js +0 -1
  245. package/dist/ezui/p-173f68ea.js +0 -1
  246. package/dist/ezui/p-4cf0aaeb.entry.js +0 -1
  247. package/dist/ezui/p-56fe5341.entry.js +0 -1
  248. package/dist/ezui/p-5895e687.js +0 -1
  249. package/dist/ezui/p-5a14f506.entry.js +0 -1
  250. package/dist/ezui/p-5ec0ae79.entry.js +0 -1
  251. package/dist/ezui/p-629d15ed.entry.js +0 -1
  252. package/dist/ezui/p-6754489a.entry.js +0 -1
  253. package/dist/ezui/p-6f4681f8.entry.js +0 -1
  254. package/dist/ezui/p-7742802c.entry.js +0 -1
  255. package/dist/ezui/p-a4cee65d.entry.js +0 -1
  256. package/dist/ezui/p-bc2f844e.entry.js +0 -1
  257. package/dist/ezui/p-c00df4be.entry.js +0 -1
  258. package/dist/ezui/p-ebd23857.entry.js +0 -1
  259. package/dist/ezui/p-ecaac11f.entry.js +0 -1
  260. package/dist/ezui/p-f4861c6a.entry.js +0 -1
  261. package/dist/ezui/p-f5a30e35.entry.js +0 -1
  262. package/dist/ezui/p-f6316720.entry.js +0 -1
@@ -13,6 +13,7 @@ export class EzSplitButton {
13
13
  this.rightTitle = 'Mais opções';
14
14
  this.mode = 'default';
15
15
  this.size = 'medium';
16
+ this.itemBuilder = undefined;
16
17
  }
17
18
  /**
18
19
  * Remove o foco de ambos os botões.
@@ -33,6 +34,18 @@ export class EzSplitButton {
33
34
  async setRightButtonFocus() {
34
35
  this.rightButton.focus();
35
36
  }
37
+ /**
38
+ * Abre ou Fecha o dropdown do Split Button.
39
+ */
40
+ async toggleDropdown() {
41
+ this.show = !this.show;
42
+ }
43
+ /**
44
+ * Informa se a lista de ações está aberta.
45
+ */
46
+ async isOpenedDropdown() {
47
+ return this.show;
48
+ }
36
49
  clickListener(evt) {
37
50
  if (!this.enabled) {
38
51
  evt.preventDefault();
@@ -49,16 +62,12 @@ export class EzSplitButton {
49
62
  closeDropdown() {
50
63
  this.show = false;
51
64
  }
52
- toggleDropdown() {
53
- this.show = !this.show;
54
- }
55
65
  handleButtonClick() {
56
66
  this.buttonClick.emit();
57
67
  }
58
68
  handleDropdownItemClick(evt) {
59
69
  this.dropdownItemClick.emit(evt.detail);
60
70
  evt.stopPropagation();
61
- this.closeDropdown();
62
71
  }
63
72
  handleDropdownSubActionClick(evt) {
64
73
  this.dropdownSubActionClick.emit(evt.detail);
@@ -140,7 +149,7 @@ export class EzSplitButton {
140
149
  const hasIconButton = this.shouldShowIconOnLeftButton();
141
150
  const hasLabelButton = this.shouldShowLabelOnLeftButton();
142
151
  const iconSize = this.getIconSize();
143
- return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); } }))))));
152
+ return (h("div", { class: "label-icon" }, h("button", { class: `ez-split-button__left-button ${iconSize} ${this.mode}`, title: this.leftTitle || this.label, type: "button", disabled: !this.enabled, onClick: () => { this.handleButtonClick(); }, ref: el => (this.leftButton = el) }, hasIconButton && h("ez-icon", { href: this.image, iconName: this.iconName, size: iconSize }), hasLabelButton && h("label", { title: this.leftTitle || this.label }, this.label)), h("div", { class: "dropdown" }, h("button", { class: `ez-split-button__right-button ${iconSize} ez-split-button__right-button--${iconSize} ez-split-button__right-button--divider`, title: this.rightTitle || this.rightDefaultTitle, type: "button", disabled: !this.enabled, onClick: () => { this.toggleDropdown(); }, ref: el => (this.rightButton = el) }, h("ez-icon", { class: `ez-split-button__right-button-container ` + (iconSize ? `btn-icon--${iconSize}` : ''), iconName: 'chevron-down', size: iconSize })), h("div", { class: `dropdown-content dropdown-content--${this.size}`, ref: (ref) => (this.dropdownParent = ref) }, this.show && (h("ez-dropdown", { items: this.items, onClick: evt => { evt.stopPropagation(); }, onEzOutsideClick: () => { this.closeDropdown(); }, onEzClick: evt => { this.handleDropdownItemClick(evt); }, onEzSubActionClick: evt => { this.handleDropdownSubActionClick(evt); }, itemBuilder: this.itemBuilder }))))));
144
153
  }
145
154
  shouldShowLabelOnLeftButton() {
146
155
  return ['icon-left', 'default'].includes(this.mode);
@@ -162,6 +171,24 @@ export class EzSplitButton {
162
171
  }
163
172
  static get properties() {
164
173
  return {
174
+ "show": {
175
+ "type": "boolean",
176
+ "mutable": false,
177
+ "complexType": {
178
+ "original": "boolean",
179
+ "resolved": "boolean",
180
+ "references": {}
181
+ },
182
+ "required": false,
183
+ "optional": false,
184
+ "docs": {
185
+ "tags": [],
186
+ "text": ""
187
+ },
188
+ "attribute": "show",
189
+ "reflect": true,
190
+ "defaultValue": "false"
191
+ },
165
192
  "enabled": {
166
193
  "type": "boolean",
167
194
  "mutable": false,
@@ -324,14 +351,32 @@ export class EzSplitButton {
324
351
  "attribute": "size",
325
352
  "reflect": true,
326
353
  "defaultValue": "'medium'"
354
+ },
355
+ "itemBuilder": {
356
+ "type": "unknown",
357
+ "mutable": false,
358
+ "complexType": {
359
+ "original": "(item: IDropdownItem, level: number) => HTMLElement | string",
360
+ "resolved": "(item: IDropdownItem, level: number) => string | HTMLElement",
361
+ "references": {
362
+ "IDropdownItem": {
363
+ "location": "import",
364
+ "path": "../ez-dropdown/structure/DropdownItem"
365
+ },
366
+ "HTMLElement": {
367
+ "location": "global"
368
+ }
369
+ }
370
+ },
371
+ "required": false,
372
+ "optional": false,
373
+ "docs": {
374
+ "tags": [],
375
+ "text": "Fun\u00E7\u00E3o builder que possibilita alterar como o item da lista vai ser apresentado.\nObserva\u00E7\u00E3o: No react ele se transforma em VNode e n\u00E3o como HTMLElement."
376
+ }
327
377
  }
328
378
  };
329
379
  }
330
- static get states() {
331
- return {
332
- "show": {}
333
- };
334
- }
335
380
  static get events() {
336
381
  return [{
337
382
  "method": "buttonClick",
@@ -439,6 +484,38 @@ export class EzSplitButton {
439
484
  "text": "Aplica o foco no bot\u00E3o do dropdown.",
440
485
  "tags": []
441
486
  }
487
+ },
488
+ "toggleDropdown": {
489
+ "complexType": {
490
+ "signature": "() => Promise<void>",
491
+ "parameters": [],
492
+ "references": {
493
+ "Promise": {
494
+ "location": "global"
495
+ }
496
+ },
497
+ "return": "Promise<void>"
498
+ },
499
+ "docs": {
500
+ "text": "Abre ou Fecha o dropdown do Split Button.",
501
+ "tags": []
502
+ }
503
+ },
504
+ "isOpenedDropdown": {
505
+ "complexType": {
506
+ "signature": "() => Promise<boolean>",
507
+ "parameters": [],
508
+ "references": {
509
+ "Promise": {
510
+ "location": "global"
511
+ }
512
+ },
513
+ "return": "Promise<boolean>"
514
+ },
515
+ "docs": {
516
+ "text": "Informa se a lista de a\u00E7\u00F5es est\u00E1 aberta.",
517
+ "tags": []
518
+ }
442
519
  }
443
520
  };
444
521
  }
@@ -158,6 +158,13 @@ input:focus {
158
158
  border-color: var(--ez-text-input__input--focus--border-color);
159
159
  }
160
160
 
161
+ input.focused{
162
+ /*private*/
163
+ border: var(--border--medium, 2px solid);
164
+ /*public*/
165
+ border-color: var(--ez-text-input__input--focus--border-color);
166
+ }
167
+
161
168
  input.icon--left {
162
169
  padding-left: var(--ez-text-input__icon--width);
163
170
  }
@@ -123,7 +123,12 @@ export class EzTextInput {
123
123
  const { selectText } = options || {};
124
124
  if (selectText)
125
125
  this._inputElem.select();
126
- this._inputElem.focus();
126
+ if (this._inputElem.disabled) {
127
+ this._inputElem.classList.add("focused");
128
+ this._inputElem.scrollIntoView({ behavior: "smooth", block: "start" });
129
+ return;
130
+ }
131
+ requestAnimationFrame(() => this._inputElem.focus());
127
132
  }
128
133
  /**
129
134
  * Remove o foco do campo.
@@ -318,6 +323,15 @@ export class EzTextInput {
318
323
  var _a;
319
324
  this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
320
325
  });
326
+ this.onClickOutside = (event) => {
327
+ if (!this._inputElem.contains(event.target)) {
328
+ this._inputElem.classList.remove("focused");
329
+ }
330
+ };
331
+ document.addEventListener("click", this.onClickOutside);
332
+ }
333
+ disconnectedCallback() {
334
+ document.removeEventListener("click", this.onClickOutside);
321
335
  }
322
336
  componentDidRender() {
323
337
  this.adjustFloatingLabel();
@@ -1,5 +1,6 @@
1
1
  :host {
2
2
  --triangle-size: 8px;
3
+ width: 100%;
3
4
  }
4
5
 
5
6
  .tooltip {
@@ -1,6 +1,6 @@
1
1
  import { arrow, computePosition, flip, offset, shift } from "@floating-ui/dom";
2
2
  import { ElementIDUtils } from "@sankhyalabs/core";
3
- import { Fragment, h } from "@stencil/core";
3
+ import { h, Host } from "@stencil/core";
4
4
  export class EzTooltip {
5
5
  constructor() {
6
6
  this._opened = false;
@@ -109,7 +109,7 @@ export class EzTooltip {
109
109
  this.setEvents();
110
110
  }
111
111
  render() {
112
- return (h(Fragment, null, h("div", Object.assign({ ref: ref => this._tooltipElement = ref }, { inert: true }, { class: {
112
+ return (h(Host, null, h("div", Object.assign({ ref: ref => this._tooltipElement = ref }, { inert: true }, { class: {
113
113
  "tooltip": true,
114
114
  [`${this.type}-tooltip`]: true,
115
115
  }, style: {
@@ -8,3 +8,4 @@ export { CustomEditorSource } from './customEditor/interfaces/ICustomEditor';
8
8
  export { CustomRenderSource } from './customRender/interfaces/ICustomRender';
9
9
  export { SearchMode } from './search/types';
10
10
  export { FormLayout } from './form/interfaces';
11
+ export { buildFieldSearch, openFieldSearch, focusOnFieldSerch, SEARCH_FIELD_FULL_WIDTH, LABEL_SEARCH_FIELD, LABEL_SEARCH_COLUMN, SHORTCUT_SEARCH_FIELD } from './searchColumn/search-column';
@@ -0,0 +1,35 @@
1
+ import { h } from '@stencil/core';
2
+ export const LABEL_SEARCH_FIELD = "Buscar campos (ctrl+F)";
3
+ export const LABEL_SEARCH_COLUMN = "Buscar colunas (Ctrl+F)";
4
+ export const SHORTCUT_SEARCH_FIELD = "ctrl+f";
5
+ export const SEARCH_FIELD_FULL_WIDTH = 240;
6
+ const SEARCH_FIELD_MARGIN_BOTTOM = "0px";
7
+ const SEARCH_FIELD_WIDTH = String(SEARCH_FIELD_FULL_WIDTH - 30) + "px";
8
+ export const buildFieldSearch = (action, optionLoader, onSelectField) => {
9
+ return h("ez-search", { class: 'ez-padding--small ez-margin--none', style: {
10
+ "--ez-text-input__margin-bottom": SEARCH_FIELD_MARGIN_BOTTOM,
11
+ "--ez-search--width": SEARCH_FIELD_WIDTH
12
+ }, canShowError: false, showSelectedValue: false, showOptionValue: false, suppressEmptyOption: true, label: action.label, value: null, optionLoader: optionLoader, onEzChange: (evt) => onSelectField(evt.detail), ignoreLimitCharsToSearch: true });
13
+ };
14
+ export const openFieldSearch = async (splitButton, field) => {
15
+ if (!splitButton) {
16
+ return;
17
+ }
18
+ const isOpen = await splitButton.isOpenedDropdown();
19
+ if (isOpen) {
20
+ await focusOnFieldSerch(field);
21
+ return;
22
+ }
23
+ await splitButton.toggleDropdown();
24
+ };
25
+ export const focusOnFieldSerch = async (field) => {
26
+ requestAnimationFrame(async () => {
27
+ if (field) {
28
+ const realElement = field['$elm$'];
29
+ if (!realElement)
30
+ return;
31
+ realElement.value = null;
32
+ await realElement.setFocus();
33
+ }
34
+ });
35
+ };
@@ -26,6 +26,12 @@ export const EzApplication: {
26
26
  new (): EzApplication;
27
27
  };
28
28
 
29
+ interface EzAvatar extends Components.EzAvatar, HTMLElement {}
30
+ export const EzAvatar: {
31
+ prototype: EzAvatar;
32
+ new (): EzAvatar;
33
+ };
34
+
29
35
  interface EzBadge extends Components.EzBadge, HTMLElement {}
30
36
  export const EzBadge: {
31
37
  prototype: EzBadge;