@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-6165.0 → 0.0.0-bugfix-dev-KB-17130.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 (273) hide show
  1. package/README.md +8 -10
  2. package/dist/cjs/{ApplicationUtils-2e444734.js → ApplicationUtils-c9d1205c.js} +56 -6
  3. package/dist/cjs/{RecordValidationProcessor-edd23705.js → RecordValidationProcessor-4c893e04.js} +1 -1
  4. package/dist/cjs/{constants-3a1d64fb.js → constants-2714478b.js} +2 -0
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +56 -28
  6. package/dist/cjs/ez-alert-list.cjs.entry.js +148 -0
  7. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  9. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-card-item_3.cjs.entry.js +182 -0
  14. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  16. package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -4
  17. package/dist/cjs/ez-combo-box.cjs.entry.js +17 -152
  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 +31 -5
  21. package/dist/cjs/ez-dropdown.cjs.entry.js +12 -6
  22. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  23. package/dist/cjs/ez-form-view.cjs.entry.js +44 -3
  24. package/dist/cjs/ez-form.cjs.entry.js +36 -4
  25. package/dist/cjs/ez-grid.cjs.entry.js +246 -64
  26. package/dist/cjs/ez-guide-navigator.cjs.entry.js +7 -1
  27. package/dist/cjs/ez-icon.cjs.entry.js +2 -2
  28. package/dist/cjs/ez-list.cjs.entry.js +5 -3
  29. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-modal.cjs.entry.js +2 -2
  32. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +23 -10
  33. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-popup.cjs.entry.js +2 -2
  36. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-scroller_3.cjs.entry.js +8 -6
  38. package/dist/cjs/ez-search.cjs.entry.js +615 -32
  39. package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-split-item.cjs.entry.js +19 -0
  41. package/dist/cjs/ez-split-panel.cjs.entry.js +776 -0
  42. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-edit.cjs.entry.js +2 -2
  45. package/dist/cjs/ez-text-input.cjs.entry.js +3 -2
  46. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-upload.cjs.entry.js +2 -2
  49. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  50. package/dist/cjs/ezui.cjs.js +2 -2
  51. package/dist/cjs/filter-column.cjs.entry.js +47 -12
  52. package/dist/cjs/{index-1064511f.js → index-a7b0c73d.js} +16 -6
  53. package/dist/cjs/loader.cjs.js +2 -2
  54. package/dist/collection/collection-manifest.json +6 -3
  55. package/dist/collection/components/ez-actions-button/ez-actions-button.css +17 -3
  56. package/dist/collection/components/ez-actions-button/ez-actions-button.js +105 -27
  57. package/dist/collection/components/ez-alert-list/ez-alert-list.css +87 -0
  58. package/dist/collection/components/ez-alert-list/ez-alert-list.js +268 -0
  59. package/dist/collection/components/ez-card-item/ez-card-item.css +17 -0
  60. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -1
  61. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +0 -1
  62. package/dist/collection/components/ez-combo-box/ez-combo-box.js +71 -169
  63. package/dist/collection/components/ez-dialog/ez-dialog.css +1 -1
  64. package/dist/collection/components/ez-dialog/ez-dialog.js +39 -4
  65. package/dist/collection/components/ez-dropdown/ez-dropdown.css +4 -3
  66. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -4
  67. package/dist/collection/components/ez-form/ez-form.js +93 -0
  68. package/dist/collection/components/ez-form-view/ez-form-view.js +23 -0
  69. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +4 -1
  70. package/dist/collection/components/ez-form-view/structure/index.js +34 -0
  71. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +21 -9
  72. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +23 -1
  73. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  74. package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js +1 -1
  75. package/dist/collection/components/ez-grid/ez-grid.css +1 -4
  76. package/dist/collection/components/ez-grid/ez-grid.js +91 -51
  77. package/dist/collection/components/ez-grid/interfaces/IColumnFilter.js +1 -0
  78. package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
  79. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +66 -12
  80. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +62 -0
  81. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +94 -0
  82. package/dist/collection/components/ez-grid/utils/index.js +1 -0
  83. package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +22 -0
  84. package/dist/collection/components/ez-icon/ez-icon.css +148 -139
  85. package/dist/collection/components/ez-list/ez-list.css +12 -7
  86. package/dist/collection/components/ez-list/ez-list.js +3 -1
  87. package/dist/collection/components/ez-modal/ez-modal.css +1 -1
  88. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +41 -10
  89. package/dist/collection/components/ez-popup/ez-popup.css +2 -2
  90. package/dist/collection/components/ez-search/ez-search.css +330 -0
  91. package/dist/collection/components/ez-search/ez-search.js +746 -55
  92. package/dist/collection/components/ez-split-panel/ez-split-panel.css +8 -0
  93. package/dist/collection/components/ez-split-panel/ez-split-panel.js +122 -0
  94. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +12 -0
  95. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +17 -0
  96. package/dist/collection/components/ez-text-input/ez-text-input.js +20 -1
  97. package/dist/collection/components/ez-tree/ez-tree.css +33 -0
  98. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  99. package/dist/collection/utils/ApplicationUtils.js +56 -6
  100. package/dist/collection/utils/constants.js +1 -0
  101. package/dist/collection/utils/form/DataBinder.js +12 -1
  102. package/dist/collection/utils/interfaces/IAction.js +1 -0
  103. package/dist/custom-elements/index.d.ts +18 -0
  104. package/dist/custom-elements/index.js +2138 -339
  105. package/dist/esm/{ApplicationUtils-d9a34a16.js → ApplicationUtils-eaf91331.js} +56 -6
  106. package/dist/esm/{RecordValidationProcessor-abc814af.js → RecordValidationProcessor-b00b8b77.js} +1 -1
  107. package/dist/esm/constants-4e0d35b7.js +5 -0
  108. package/dist/esm/ez-actions-button.entry.js +56 -28
  109. package/dist/esm/ez-alert-list.entry.js +144 -0
  110. package/dist/esm/ez-alert.entry.js +1 -1
  111. package/dist/esm/ez-application.entry.js +1 -1
  112. package/dist/esm/ez-badge.entry.js +1 -1
  113. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  114. package/dist/esm/ez-button.entry.js +1 -1
  115. package/dist/esm/ez-calendar.entry.js +1 -1
  116. package/dist/esm/ez-card-item_3.entry.js +176 -0
  117. package/dist/esm/ez-check.entry.js +1 -1
  118. package/dist/esm/ez-chip.entry.js +1 -1
  119. package/dist/esm/ez-collapsible-box.entry.js +3 -4
  120. package/dist/esm/ez-combo-box.entry.js +18 -153
  121. package/dist/esm/ez-date-input.entry.js +1 -1
  122. package/dist/esm/ez-date-time-input.entry.js +1 -1
  123. package/dist/esm/ez-dialog.entry.js +31 -5
  124. package/dist/esm/ez-dropdown.entry.js +12 -6
  125. package/dist/esm/ez-file-item.entry.js +1 -1
  126. package/dist/esm/ez-form-view.entry.js +44 -3
  127. package/dist/esm/ez-form.entry.js +36 -4
  128. package/dist/esm/ez-grid.entry.js +247 -65
  129. package/dist/esm/ez-guide-navigator.entry.js +7 -1
  130. package/dist/esm/ez-icon.entry.js +2 -2
  131. package/dist/esm/ez-list.entry.js +5 -3
  132. package/dist/esm/ez-loading-bar.entry.js +1 -1
  133. package/dist/esm/ez-modal-container.entry.js +1 -1
  134. package/dist/esm/ez-modal.entry.js +2 -2
  135. package/dist/esm/ez-multi-selection-list.entry.js +23 -10
  136. package/dist/esm/ez-number-input.entry.js +1 -1
  137. package/dist/esm/ez-popover.entry.js +1 -1
  138. package/dist/esm/ez-popup.entry.js +2 -2
  139. package/dist/esm/ez-radio-button.entry.js +1 -1
  140. package/dist/esm/ez-scroller_3.entry.js +8 -6
  141. package/dist/esm/ez-search.entry.js +616 -33
  142. package/dist/esm/ez-skeleton.entry.js +1 -1
  143. package/dist/esm/ez-split-item.entry.js +15 -0
  144. package/dist/esm/ez-split-panel.entry.js +772 -0
  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-edit.entry.js +2 -2
  148. package/dist/esm/ez-text-input.entry.js +3 -2
  149. package/dist/esm/ez-time-input.entry.js +1 -1
  150. package/dist/esm/ez-toast.entry.js +1 -1
  151. package/dist/esm/ez-upload.entry.js +2 -2
  152. package/dist/esm/ez-view-stack.entry.js +1 -1
  153. package/dist/esm/ezui.js +3 -3
  154. package/dist/esm/filter-column.entry.js +47 -12
  155. package/dist/esm/{index-296b8458.js → index-baa5e267.js} +16 -6
  156. package/dist/esm/loader.js +3 -3
  157. package/dist/ezui/ezui.esm.js +1 -1
  158. package/dist/ezui/{p-5cef0264.entry.js → p-0306dff7.entry.js} +1 -1
  159. package/dist/ezui/p-0447d17c.entry.js +1 -0
  160. package/dist/ezui/{p-86a2036d.js → p-04f24913.js} +1 -1
  161. package/dist/ezui/p-05e1f4e7.js +1 -0
  162. package/dist/ezui/p-072e6347.entry.js +1 -0
  163. package/dist/ezui/p-133fae4a.entry.js +1 -0
  164. package/dist/ezui/{p-f4208819.entry.js → p-17be134a.entry.js} +1 -1
  165. package/dist/ezui/{p-cd19a6f8.entry.js → p-1e7a8633.entry.js} +1 -1
  166. package/dist/ezui/{p-60ba28ea.entry.js → p-1f50fa05.entry.js} +1 -1
  167. package/dist/ezui/{p-a5e09759.entry.js → p-20ec22c0.entry.js} +1 -1
  168. package/dist/ezui/p-2187f86c.js +1 -0
  169. package/dist/ezui/{p-e318d280.js → p-23a36bb6.js} +1 -1
  170. package/dist/ezui/{p-ce035beb.entry.js → p-24d3fede.entry.js} +1 -1
  171. package/dist/ezui/p-2a1a0e04.entry.js +1 -0
  172. package/dist/ezui/p-40f72de4.entry.js +1 -0
  173. package/dist/ezui/p-43b03119.entry.js +1 -0
  174. package/dist/ezui/{p-9b347f04.entry.js → p-44caad9a.entry.js} +1 -1
  175. package/dist/ezui/p-49456b34.entry.js +1 -0
  176. package/dist/ezui/p-4a7f113d.entry.js +1 -0
  177. package/dist/ezui/p-51c5e071.entry.js +1 -0
  178. package/dist/ezui/{p-ccb4ccd9.entry.js → p-555c9018.entry.js} +1 -1
  179. package/dist/ezui/{p-d43b22f3.entry.js → p-596634e9.entry.js} +1 -1
  180. package/dist/ezui/p-5bd5e68f.entry.js +1 -0
  181. package/dist/ezui/{p-a01068e1.entry.js → p-5d692ed1.entry.js} +1 -1
  182. package/dist/ezui/{p-95426f93.entry.js → p-5d86cca9.entry.js} +1 -1
  183. package/dist/ezui/p-5e1d036e.entry.js +1 -0
  184. package/dist/ezui/{p-7525e604.entry.js → p-5ed81457.entry.js} +1 -1
  185. package/dist/ezui/{p-c49dbf23.entry.js → p-650e4b6d.entry.js} +1 -1
  186. package/dist/ezui/{p-fd54b5b4.entry.js → p-6e2f8e6b.entry.js} +2 -2
  187. package/dist/ezui/p-6e429cff.entry.js +1 -0
  188. package/dist/ezui/p-76ba9d67.entry.js +1 -0
  189. package/dist/ezui/{p-37673563.entry.js → p-77a4bd35.entry.js} +1 -1
  190. package/dist/ezui/p-796c1a88.entry.js +1 -0
  191. package/dist/ezui/{p-5d6f2550.entry.js → p-85c8baae.entry.js} +1 -1
  192. package/dist/ezui/{p-fa571a4e.entry.js → p-8becebf8.entry.js} +1 -1
  193. package/dist/ezui/p-8defa6d3.entry.js +1 -0
  194. package/dist/ezui/{p-391de0e4.entry.js → p-9050d2cd.entry.js} +1 -1
  195. package/dist/ezui/{p-028f264f.entry.js → p-9cad9b6e.entry.js} +1 -1
  196. package/dist/ezui/{p-b11f035c.entry.js → p-9f5fa3f9.entry.js} +1 -1
  197. package/dist/ezui/p-a08b309b.entry.js +1 -0
  198. package/dist/ezui/{p-2da09f70.entry.js → p-a80b1287.entry.js} +1 -1
  199. package/dist/ezui/p-af15c277.entry.js +1 -0
  200. package/dist/ezui/{p-32b4163f.entry.js → p-b041333c.entry.js} +1 -1
  201. package/dist/ezui/p-ba875f37.entry.js +1 -0
  202. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  203. package/dist/ezui/{p-e2dfd935.entry.js → p-c0f1715f.entry.js} +1 -1
  204. package/dist/ezui/{p-83885b21.entry.js → p-cc2dc4f4.entry.js} +1 -1
  205. package/dist/ezui/p-d6ffe679.entry.js +1 -0
  206. package/dist/ezui/p-eb36f072.entry.js +1 -0
  207. package/dist/ezui/p-f56dd1da.entry.js +1 -0
  208. package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +15 -7
  209. package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +76 -0
  210. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +12 -15
  211. package/dist/types/components/ez-dialog/ez-dialog.d.ts +8 -2
  212. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +5 -0
  213. package/dist/types/components/ez-form/ez-form.d.ts +19 -1
  214. package/dist/types/components/ez-form-view/ez-form-view.d.ts +5 -0
  215. package/dist/types/components/ez-form-view/structure/index.d.ts +15 -0
  216. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +9 -6
  217. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +2 -3
  218. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -0
  219. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  220. package/dist/types/components/ez-grid/ez-grid.d.ts +13 -5
  221. package/dist/types/components/ez-grid/interfaces/IColumnFilter.d.ts +4 -0
  222. package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
  223. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +8 -0
  224. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +9 -0
  225. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +19 -0
  226. package/dist/types/components/ez-grid/utils/index.d.ts +1 -0
  227. package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +4 -0
  228. package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +1 -0
  229. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +4 -0
  230. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -0
  231. package/dist/types/components/ez-search/ez-search.d.ts +112 -10
  232. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +3 -0
  233. package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
  234. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  235. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  236. package/dist/types/components.d.ts +236 -17
  237. package/dist/types/utils/ApplicationUtils.d.ts +24 -0
  238. package/dist/types/utils/constants.d.ts +1 -0
  239. package/dist/types/utils/form/DataBinder.d.ts +1 -0
  240. package/dist/types/utils/index.d.ts +1 -0
  241. package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +2 -1
  242. package/dist/types/utils/interfaces/IAction.d.ts +7 -0
  243. package/package.json +4 -3
  244. package/react/components.d.ts +3 -0
  245. package/react/components.js +3 -0
  246. package/react/components.js.map +1 -1
  247. package/dist/cjs/ez-card-item.cjs.entry.js +0 -52
  248. package/dist/cjs/ez-filter-input_2.cjs.entry.js +0 -137
  249. package/dist/esm/constants-6dab64f7.js +0 -4
  250. package/dist/esm/ez-card-item.entry.js +0 -48
  251. package/dist/esm/ez-filter-input_2.entry.js +0 -132
  252. package/dist/ezui/p-050247dc.entry.js +0 -1
  253. package/dist/ezui/p-1e7c4986.entry.js +0 -1
  254. package/dist/ezui/p-244dfe8a.entry.js +0 -1
  255. package/dist/ezui/p-27a01a26.js +0 -1
  256. package/dist/ezui/p-2a0e1679.entry.js +0 -1
  257. package/dist/ezui/p-4535da17.entry.js +0 -1
  258. package/dist/ezui/p-4c8b029b.entry.js +0 -1
  259. package/dist/ezui/p-4e31b69b.entry.js +0 -1
  260. package/dist/ezui/p-5495fa45.entry.js +0 -1
  261. package/dist/ezui/p-5ce6548c.entry.js +0 -1
  262. package/dist/ezui/p-68352e41.entry.js +0 -1
  263. package/dist/ezui/p-87e85160.entry.js +0 -1
  264. package/dist/ezui/p-8bd3903b.entry.js +0 -1
  265. package/dist/ezui/p-90fa4cb3.entry.js +0 -1
  266. package/dist/ezui/p-9285b53e.entry.js +0 -1
  267. package/dist/ezui/p-a510a4c5.entry.js +0 -1
  268. package/dist/ezui/p-d51aa09b.entry.js +0 -1
  269. package/dist/ezui/p-db528b31.entry.js +0 -1
  270. package/dist/ezui/p-e67d0bd5.entry.js +0 -1
  271. package/dist/ezui/p-e7fa0ad6.entry.js +0 -1
  272. package/dist/ezui/p-f15ec3bb.js +0 -1
  273. package/dist/ezui/p-ff82b176.entry.js +0 -1
@@ -16,6 +16,12 @@ export class EzActionsButton {
16
16
  return true;
17
17
  }
18
18
  }
19
+ do {
20
+ if (floatingContainer.contains(node)) {
21
+ return true;
22
+ }
23
+ node = node.offsetParent;
24
+ } while (node != undefined && node != document.getRootNode());
19
25
  }
20
26
  return false;
21
27
  };
@@ -39,6 +45,25 @@ export class EzActionsButton {
39
45
  }
40
46
  this._floatingID = undefined;
41
47
  }
48
+ /**
49
+ * Apresenta a lista de ações.
50
+ */
51
+ async showActions() {
52
+ if (!this.enabled) {
53
+ return;
54
+ }
55
+ const options = this.getFloatOptions();
56
+ this._floatingID = FloatingManager.float(this._actionsList, this._listContainer, options);
57
+ const sideLimit = this.getSideLimit();
58
+ if (sideLimit != undefined) {
59
+ options.left = sideLimit;
60
+ FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
61
+ }
62
+ window.requestAnimationFrame(() => {
63
+ this._actionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
64
+ });
65
+ this.ezPopoverOpen.emit(this._actionsList);
66
+ }
42
67
  /**
43
68
  * Verifica se a lista de ações está aberta.
44
69
  */
@@ -51,7 +76,8 @@ export class EzActionsButton {
51
76
  innerClickTest: this.innerClickCheck,
52
77
  isFixed: true,
53
78
  top: this.getPositionTop(),
54
- left: this.getPositionLeft()
79
+ left: this.getPositionLeft(),
80
+ backClickListener: () => this._floatingID = undefined
55
81
  };
56
82
  }
57
83
  getSideLimit() {
@@ -63,21 +89,6 @@ export class EzActionsButton {
63
89
  }
64
90
  return;
65
91
  }
66
- showActions() {
67
- if (!this.enabled) {
68
- return;
69
- }
70
- const options = this.getFloatOptions();
71
- this._floatingID = FloatingManager.float(this._actionsList, this._listContainer, options);
72
- const sideLimit = this.getSideLimit();
73
- if (sideLimit != undefined) {
74
- options.left = sideLimit;
75
- FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
76
- }
77
- window.requestAnimationFrame(() => {
78
- this._actionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
79
- });
80
- }
81
92
  updatePosition() {
82
93
  if (!this.enabled || this._floatingID == undefined) {
83
94
  return;
@@ -160,14 +171,18 @@ export class EzActionsButton {
160
171
  }
161
172
  }
162
173
  }
174
+ disconnectedCallback() {
175
+ this.ezDisconnectedActionButtons.emit();
176
+ }
163
177
  componentDidLoad() {
164
178
  CSSVarsUtils.applyVarsButton(this._element, this._button);
165
179
  ElementIDUtils.addIDInfo(this._element);
166
180
  this.controlScrollPage();
167
181
  }
168
182
  componentDidRender() {
183
+ var _a;
169
184
  if (this._floatingID == undefined) {
170
- this._actionsList.remove();
185
+ (_a = this._actionsList) === null || _a === void 0 ? void 0 : _a.remove();
171
186
  }
172
187
  if (this.hasLabelOrCheckOption()) {
173
188
  if (!!this.value) {
@@ -178,20 +193,31 @@ export class EzActionsButton {
178
193
  }
179
194
  }
180
195
  }
196
+ buildActionElement(action) {
197
+ var _a;
198
+ if (!action) {
199
+ return;
200
+ }
201
+ if (action.itemBuilder != undefined) {
202
+ const customContent = action.itemBuilder(this._element, action);
203
+ if (typeof customContent === "string") {
204
+ return h("div", { class: "ez-actions-button__btn-action", innerHTML: customContent });
205
+ }
206
+ return customContent;
207
+ }
208
+ return h("ez-button", { size: "small", label: action.label, onClick: () => this.actionClick(action), enabled: action.enabled, class: "ez-actions-button__btn-action" +
209
+ (this.checkOption || this.hasIconName() ? " ez-actions-button__btn-action--spaced" : "") }, this.checkOption && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.value) === action.value &&
210
+ h("ez-icon", { class: "ez-actions-button__icon-check", slot: "leftIcon", size: "small", iconName: "check" }), !this.checkOption && action.iconName &&
211
+ h("ez-icon", { class: "ez-actions-button__icon-item", slot: "leftIcon", size: "small", iconName: action.iconName }));
212
+ }
181
213
  render() {
182
214
  var _a;
183
215
  return (h(Host, null, h("ez-button", { ref: elem => this._button = elem, class: (this.isTransparent ? "ez-actions-button__btn-transparent" : "") +
184
216
  (this.showLabel ? " ez-actions-button__btn-label" : ""), label: this.showLabel && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.label), enabled: this.enabled, mode: this.showLabel ? undefined : "icon", iconName: this.showLabel ? "" : this.displayIcon || "dots-vertical", size: this.size, onClick: () => this.handlerButtonClick() }, this.showLabel &&
185
217
  h("ez-icon", { class: "ez-actions-button__icon-right", slot: "rightIcon", iconName: this.displayIcon || "dots-vertical" })), h("section", { class: "ez-actions-button__list-container", ref: elem => this._listContainer = elem }, this.arrowActive &&
186
218
  h("div", { class: "ez-actions-button__arrow ez-actions-button__arrow--" + (this.size || "small") +
187
- (this.isTransparent ? " ez-actions-button__arrow--upped" : "") }), h("div", { ref: elem => this._actionsList = elem, class: "ez-actions-button__actions-list" +
188
- (this.arrowActive && !this.isTransparent ? " ez-actions-button__actions-list--lowered" : "") }, this.actions.map(action => {
189
- var _a;
190
- return h("ez-button", { size: "small", label: action.label, onClick: () => this.actionClick(action), enabled: action.enabled, class: "ez-actions-button__btn-action" +
191
- (this.checkOption || this.hasIconName() ? " ez-actions-button__btn-action--spaced" : "") }, this.checkOption && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.value) === action.value &&
192
- h("ez-icon", { class: "ez-actions-button__icon-check", slot: "leftIcon", size: "small", iconName: "check" }), !this.checkOption && action.iconName &&
193
- h("ez-icon", { class: "ez-actions-button__icon-item", slot: "leftIcon", size: "small", iconName: action.iconName }));
194
- })))));
219
+ (this.isTransparent ? " ez-actions-button__arrow--upped" : "") }), h("div", { ref: elem => this._actionsList = elem, class: "ez-actions-button__actions-list ez-actions-button__actions-list--max-height" +
220
+ (this.arrowActive && !this.isTransparent ? " ez-actions-button__actions-list--lowered" : "") }, this.actions.map(action => this.buildActionElement(action))))));
195
221
  }
196
222
  static get is() { return "ez-actions-button"; }
197
223
  static get encapsulation() { return "shadow"; }
@@ -236,7 +262,8 @@ export class EzActionsButton {
236
262
  "location": "global"
237
263
  },
238
264
  "IAction": {
239
- "location": "local"
265
+ "location": "import",
266
+ "path": "../../utils"
240
267
  }
241
268
  }
242
269
  },
@@ -394,10 +421,45 @@ export class EzActionsButton {
394
421
  "resolved": "IAction",
395
422
  "references": {
396
423
  "IAction": {
397
- "location": "local"
424
+ "location": "import",
425
+ "path": "../../utils"
398
426
  }
399
427
  }
400
428
  }
429
+ }, {
430
+ "method": "ezPopoverOpen",
431
+ "name": "ezPopoverOpen",
432
+ "bubbles": true,
433
+ "cancelable": true,
434
+ "composed": true,
435
+ "docs": {
436
+ "tags": [],
437
+ "text": "Emitido ao mostrar a lista de a\u00E7\u00F5es"
438
+ },
439
+ "complexType": {
440
+ "original": "HTMLElement",
441
+ "resolved": "HTMLElement",
442
+ "references": {
443
+ "HTMLElement": {
444
+ "location": "global"
445
+ }
446
+ }
447
+ }
448
+ }, {
449
+ "method": "ezDisconnectedActionButtons",
450
+ "name": "ezDisconnectedActionButtons",
451
+ "bubbles": true,
452
+ "cancelable": true,
453
+ "composed": true,
454
+ "docs": {
455
+ "tags": [],
456
+ "text": "Emitido quando componente \u00E9 desconectado da DOM"
457
+ },
458
+ "complexType": {
459
+ "original": "void",
460
+ "resolved": "void",
461
+ "references": {}
462
+ }
401
463
  }];
402
464
  }
403
465
  static get methods() {
@@ -418,6 +480,22 @@ export class EzActionsButton {
418
480
  "tags": []
419
481
  }
420
482
  },
483
+ "showActions": {
484
+ "complexType": {
485
+ "signature": "() => Promise<void>",
486
+ "parameters": [],
487
+ "references": {
488
+ "Promise": {
489
+ "location": "global"
490
+ }
491
+ },
492
+ "return": "Promise<void>"
493
+ },
494
+ "docs": {
495
+ "text": "Apresenta a lista de a\u00E7\u00F5es.",
496
+ "tags": []
497
+ }
498
+ },
421
499
  "isOpened": {
422
500
  "complexType": {
423
501
  "signature": "() => Promise<boolean>",
@@ -0,0 +1,87 @@
1
+ :host {
2
+ display: flex;
3
+
4
+ /* Alert List */
5
+
6
+ /*@doc Define a largura da lista minimizado */
7
+ --ez-alert-list__container--width: 680px;
8
+ /*@doc Define a altura da lista minimizado */
9
+ --ez-alert-list__container--height: 220px;
10
+
11
+ /*@doc Define a largura da lista maximizada */
12
+ --ez-alert-list__container--width--expanded: 920px;
13
+ /*@doc Define a altura da lista maximizada */
14
+ --ez-alert-list__container--height--expanded: 540px;
15
+
16
+ /* Title */
17
+ /*@doc Define a fonte do título do componente */
18
+ --ez-alert-list__title--font-family: var(--font-pattern, "Roboto");
19
+ /*@doc Define o tamanho da fonte do título do popup.*/
20
+ --ez-alert-list__title--font-size: var(--title--large, 20px);
21
+ /*@doc Define a cor da fonte do título do popup.*/
22
+ --ez-alert-list__title--color: var(--title--primary, #2b3a54);
23
+ /*@doc Define o peso da fonte do título do popup.*/
24
+ --ez-alert-list__title--font-weight: var(--text-weight--extra-large, 700);
25
+
26
+ /* @doc Define a borda inferior do item da lista. */
27
+ --ez-list__item--border-bottom: var(--border--small, 1px solid);
28
+
29
+ /* @doc Define a cor da borda inferior do item da lista. */
30
+ --ez-list__item--border-bottom-color: var(--color--strokes, #DCE0E8);
31
+
32
+ /* @doc Define o tipo da quebra de linha do item da lista. */
33
+ --ez-list__item--white-space: break-space;
34
+ }
35
+
36
+ .alert-list__content {
37
+ display: flex;
38
+ flex-direction: column;
39
+
40
+ gap: var(--space--xs);
41
+ margin: var(--space--large, 24px);
42
+ width: 100%;
43
+ }
44
+
45
+ .alert-list__container {
46
+ z-index: var(--more-visible--2x, 3);
47
+ display: flex;
48
+ height: var(--ez-alert-list__container--height);
49
+ width: var(--ez-alert-list__container--width);
50
+ border-radius: var(--border--radius-medium);
51
+ background-color: var(--background--xlight);
52
+ box-shadow: var(--shadow--medium);
53
+
54
+ &.expanded {
55
+ height: var(--ez-alert-list__container--height--expanded);
56
+ width: var(--ez-alert-list__container--width--expanded);
57
+ }
58
+
59
+ @media (max-height: 640px) {
60
+ max-height: calc(100vh - var(--space--3xl));
61
+ }
62
+ }
63
+
64
+ .alert-list__header {
65
+ width: 100%;
66
+ display: flex;
67
+ align-items: center;
68
+ justify-content: space-between;
69
+ }
70
+
71
+ .alert-list__title {
72
+ font-family: var(--ez-alert-list__title--font-family);
73
+ font-size: var(--ez-alert-list__title--font-size);
74
+ font-weight: var(--ez-alert-list__title--font-weight);
75
+ color: var(--ez-alert-list__title--color);
76
+ }
77
+
78
+ .alert-list__header__buttons {
79
+ display: flex;
80
+ gap: var(--space--xs);
81
+ }
82
+
83
+ .alert-list__expandable-content {
84
+ overflow-y: auto;
85
+ scrollbar-width: thin;
86
+ }
87
+
@@ -0,0 +1,268 @@
1
+ import { ElementIDUtils, FloatingManager } from '@sankhyalabs/core';
2
+ import { Host, h } from '@stencil/core';
3
+ export class EzAlertList {
4
+ constructor() {
5
+ this.alerts = [];
6
+ this.enableDragAndDrop = undefined;
7
+ this.enableExpand = true;
8
+ this.itemRightSlotBuilder = undefined;
9
+ this.opened = true;
10
+ this.expanded = false;
11
+ }
12
+ observeOpened() {
13
+ this.manageOverlay();
14
+ }
15
+ /**
16
+ * Retorna o id do alerta a partir do título e do índice.
17
+ */
18
+ alertId(title, index) {
19
+ const concatTitle = (title) => { var _a; return (_a = title === null || title === void 0 ? void 0 : title.split(' ').join('-')) !== null && _a !== void 0 ? _a : ""; };
20
+ return `alert-${index}-${concatTitle(title)}`;
21
+ }
22
+ /**
23
+ * Retorna o título do alerta a partir do id.
24
+ */
25
+ getAlertTitle(id) {
26
+ var _a;
27
+ return (_a = this.alerts.find((alert, index) => this.alertId(alert.title, index) === id)) === null || _a === void 0 ? void 0 : _a.title;
28
+ }
29
+ /**
30
+ * Retorna o texto do título do alerta.
31
+ */
32
+ getTitleText(item) {
33
+ var _a;
34
+ const title = (_a = this.getAlertTitle(item.id)) !== null && _a !== void 0 ? _a : '';
35
+ return `${title}${(title && item.label) ? ':' : ''}`;
36
+ }
37
+ /**
38
+ * Gerencia a exibição do conteúdo expandido.
39
+ */
40
+ toggleExpandContainer() {
41
+ if (!this.enableExpand) {
42
+ return;
43
+ }
44
+ ;
45
+ this.expanded = !this.expanded;
46
+ this._container.classList.toggle('expanded', this.expanded);
47
+ if (this.expanded) {
48
+ this.updatePosition(this.getBoundingRight(), this.getBoundingBottom());
49
+ }
50
+ else {
51
+ this.updatePosition(`10px`, `10px`);
52
+ }
53
+ }
54
+ /**
55
+ * Gerencia a exibição do overlay usando FloatingManager do Core.
56
+ */
57
+ async manageOverlay() {
58
+ if (this.opened) {
59
+ this._overlayId = FloatingManager.float(this._container, this._overlayRef, this.getFloatOptions());
60
+ }
61
+ else {
62
+ FloatingManager.close(this._overlayId);
63
+ this._overlayId = undefined;
64
+ }
65
+ }
66
+ /**
67
+ * Atualiza a posição da lista.
68
+ */
69
+ updatePosition(right, bottom) {
70
+ FloatingManager.updateFloatPosition(this._container, this._overlayRef, Object.assign(Object.assign({}, this.getFloatOptions()), { right,
71
+ bottom }));
72
+ }
73
+ ;
74
+ /**
75
+ * Retorna valores padrões do componente
76
+ */
77
+ getFloatOptions() {
78
+ return {
79
+ autoClose: false,
80
+ isFixed: false,
81
+ bottom: '10px',
82
+ right: '10px',
83
+ };
84
+ }
85
+ ;
86
+ /**
87
+ * Retorna o valor para o alinhamento horizontal do componente.
88
+ */
89
+ getBoundingRight() {
90
+ const docWidth = document.body.clientWidth;
91
+ const boxWidth = this._container.getBoundingClientRect().width;
92
+ return ((docWidth - boxWidth) / 2) + 'px';
93
+ }
94
+ /**
95
+ * Retorna o valor para o alinhamento vertical do componente.
96
+ */
97
+ getBoundingBottom() {
98
+ const docHeight = document.body.clientHeight;
99
+ const boxHeight = this._container.getBoundingClientRect().height;
100
+ return ((docHeight - boxHeight) / 2) + 'px';
101
+ }
102
+ componentDidRender() {
103
+ this.manageOverlay();
104
+ if (this.opened) {
105
+ this._container.focus();
106
+ }
107
+ }
108
+ componentWillLoad() {
109
+ this.dataElementId = ElementIDUtils.addIDInfo(this._element, 'EzAlertList');
110
+ }
111
+ render() {
112
+ return (h(Host, Object.assign({}, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: this.dataElementId }), h("div", { ref: elem => (this._overlayRef = elem) }, h("div", { class: `alert-list__container ${this.expanded ? 'expanded' : ''}`, ref: elem => (this._container = elem) }, h("div", { class: "alert-list__content" }, h("div", { class: "alert-list__header" }, h("div", { class: "alert-list__title" }, `Avisos (${this.alerts.length})`), h("div", { class: "alert-list__header__buttons" }, this.enableExpand && (h("ez-button", { mode: "icon", size: "small", iconName: "expand", onClick: () => this.toggleExpandContainer(), "data-element-id": ElementIDUtils.getInternalIDInfo('expandButton'), title: this.expanded ? 'Resumir' : 'Expandir' })), h("ez-button", { mode: "icon", size: "small", iconName: "close", "data-element-id": ElementIDUtils.getInternalIDInfo('closeButton'), onClick: () => {
113
+ this.opened = false;
114
+ }, title: 'Fechar' }))), h("div", { class: "alert-list__expandable-content" }, h("ez-list", { hoverFeedback: true, itemLeftSlotBuilder: item => {
115
+ return (h("a", { href: "#", style: {
116
+ fontFamily: "var(--font-pattern, 'Roboto')",
117
+ fontSize: 'var(--text--medium, 14px)',
118
+ fontWeight: 'var(--text-weight--medium, 400)',
119
+ color: 'var(--color--primary, #008561)',
120
+ marginRight: '4px',
121
+ cursor: 'pointer',
122
+ display: 'flex',
123
+ width: 'max-content',
124
+ textDecoration: 'none'
125
+ } }, this.getTitleText(item)));
126
+ }, dataSource: this.alerts.map((alert, index) => {
127
+ var _a;
128
+ return {
129
+ id: this.alertId(alert.title, index),
130
+ label: (_a = alert.detail) !== null && _a !== void 0 ? _a : "",
131
+ };
132
+ }) })))))));
133
+ }
134
+ static get is() { return "ez-alert-list"; }
135
+ static get encapsulation() { return "shadow"; }
136
+ static get originalStyleUrls() {
137
+ return {
138
+ "$": ["ez-alert-list.css"]
139
+ };
140
+ }
141
+ static get styleUrls() {
142
+ return {
143
+ "$": ["ez-alert-list.css"]
144
+ };
145
+ }
146
+ static get properties() {
147
+ return {
148
+ "alerts": {
149
+ "type": "unknown",
150
+ "mutable": true,
151
+ "complexType": {
152
+ "original": "AlertItem[]",
153
+ "resolved": "AlertItem[]",
154
+ "references": {
155
+ "AlertItem": {
156
+ "location": "local"
157
+ }
158
+ }
159
+ },
160
+ "required": false,
161
+ "optional": false,
162
+ "docs": {
163
+ "tags": [],
164
+ "text": "Lista de alertas que devem ser apresentados no componente."
165
+ },
166
+ "defaultValue": "[]"
167
+ },
168
+ "enableDragAndDrop": {
169
+ "type": "boolean",
170
+ "mutable": false,
171
+ "complexType": {
172
+ "original": "boolean",
173
+ "resolved": "boolean",
174
+ "references": {}
175
+ },
176
+ "required": false,
177
+ "optional": false,
178
+ "docs": {
179
+ "tags": [],
180
+ "text": "Define se o componente pode ser arrastado na tela."
181
+ },
182
+ "attribute": "enable-drag-and-drop",
183
+ "reflect": true
184
+ },
185
+ "enableExpand": {
186
+ "type": "boolean",
187
+ "mutable": false,
188
+ "complexType": {
189
+ "original": "boolean",
190
+ "resolved": "boolean",
191
+ "references": {}
192
+ },
193
+ "required": false,
194
+ "optional": false,
195
+ "docs": {
196
+ "tags": [],
197
+ "text": "Define se o componente pode ser expandido."
198
+ },
199
+ "attribute": "enable-expand",
200
+ "reflect": true,
201
+ "defaultValue": "true"
202
+ },
203
+ "itemRightSlotBuilder": {
204
+ "type": "unknown",
205
+ "mutable": false,
206
+ "complexType": {
207
+ "original": "SlotBuilder",
208
+ "resolved": "(item: ListItem, group?: ListGroup) => string | HTMLElement",
209
+ "references": {
210
+ "SlotBuilder": {
211
+ "location": "import",
212
+ "path": "../ez-list/ez-list"
213
+ }
214
+ }
215
+ },
216
+ "required": false,
217
+ "optional": false,
218
+ "docs": {
219
+ "tags": [],
220
+ "text": "Define builder para elementos a direita do componente"
221
+ }
222
+ },
223
+ "opened": {
224
+ "type": "boolean",
225
+ "mutable": true,
226
+ "complexType": {
227
+ "original": "boolean",
228
+ "resolved": "boolean",
229
+ "references": {}
230
+ },
231
+ "required": false,
232
+ "optional": false,
233
+ "docs": {
234
+ "tags": [],
235
+ "text": "Define se o componente est\u00E1 aberto."
236
+ },
237
+ "attribute": "opened",
238
+ "reflect": true,
239
+ "defaultValue": "true"
240
+ },
241
+ "expanded": {
242
+ "type": "boolean",
243
+ "mutable": true,
244
+ "complexType": {
245
+ "original": "boolean",
246
+ "resolved": "boolean",
247
+ "references": {}
248
+ },
249
+ "required": false,
250
+ "optional": false,
251
+ "docs": {
252
+ "tags": [],
253
+ "text": "Define se o componente est\u00E1 expandido."
254
+ },
255
+ "attribute": "expanded",
256
+ "reflect": true,
257
+ "defaultValue": "false"
258
+ }
259
+ };
260
+ }
261
+ static get elementRef() { return "_element"; }
262
+ static get watchers() {
263
+ return [{
264
+ "propName": "opened",
265
+ "methodName": "observeOpened"
266
+ }];
267
+ }
268
+ }
@@ -42,6 +42,8 @@
42
42
  padding: 12px;
43
43
  z-index: 0;
44
44
  position: relative;
45
+ container-type: inline-size;
46
+ container-name: box;
45
47
  }
46
48
 
47
49
  .card-item:hover {
@@ -105,6 +107,7 @@
105
107
 
106
108
  .card-item__detail-value {
107
109
  cursor: pointer;
110
+ line-break: anywhere;
108
111
 
109
112
  /*public*/
110
113
  font-size: var(--ez-card-item--font-size);
@@ -123,4 +126,18 @@
123
126
  outline: 2px solid var(--ez-card-item__highlight--color);
124
127
  box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color),
125
128
  4px 0px 0px 0px var(--ez-card-item__highlight--color);
129
+ }
130
+
131
+ @container box (max-width: 500px) {
132
+ .card-item__details {
133
+ flex-direction: column;
134
+ }
135
+
136
+ .card-item__details-left {
137
+ width: 100%;
138
+ }
139
+
140
+ .card-item__details-right {
141
+ width: 100%;
142
+ }
126
143
  }
@@ -135,7 +135,7 @@ ez-icon {
135
135
 
136
136
  .collapsible-box__label ez-icon {
137
137
  visibility: hidden;
138
- transition: 0.25s linear;
138
+ transition: 2s all ease-in-out;
139
139
  }
140
140
 
141
141
  .collapsible-box__label:hover ez-icon {
@@ -59,7 +59,6 @@ export class EzCollapsibleBox {
59
59
  this.ezEditLabelMode.emit(this._activeEditText);
60
60
  }
61
61
  confirmRemove(evt) {
62
- evt.preventDefault();
63
62
  evt.stopPropagation();
64
63
  ApplicationUtils.confirm("Aviso", `Deseja realmente remover o grupo <b>${this.label}</b>?`)
65
64
  .then((canRemove) => {