@sankhyalabs/ezui 5.22.0-dev.14 → 5.22.0-dev.141

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 (443) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
  2. package/dist/cjs/FocusResolver-885f2173.js +35 -0
  3. package/dist/cjs/FormLayout-18853e70.js +27 -0
  4. package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
  5. package/dist/cjs/ez-actions-button.cjs.entry.js +6 -5
  6. package/dist/cjs/ez-avatar.cjs.entry.js +50 -0
  7. package/dist/cjs/ez-badge.cjs.entry.js +14 -2
  8. package/dist/cjs/ez-button.cjs.entry.js +11 -5
  9. package/dist/cjs/ez-card-item_2.cjs.entry.js +267 -0
  10. package/dist/cjs/ez-chart.cjs.entry.js +3 -3
  11. package/dist/cjs/ez-check.cjs.entry.js +18 -10
  12. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
  14. package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +387 -0
  15. package/dist/cjs/ez-combo-box.cjs.entry.js +80 -158
  16. package/dist/cjs/ez-date-input.cjs.entry.js +16 -19
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +15 -20
  18. package/dist/cjs/ez-dialog.cjs.entry.js +18 -8
  19. package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
  20. package/dist/cjs/ez-dropdown.cjs.entry.js +14 -8
  21. package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
  22. package/dist/cjs/ez-form-view.cjs.entry.js +41 -27
  23. package/dist/cjs/ez-form.cjs.entry.js +89 -327
  24. package/dist/cjs/ez-grid.cjs.entry.js +15290 -69794
  25. package/dist/cjs/ez-icon.cjs.entry.js +12 -6
  26. package/dist/cjs/ez-list.cjs.entry.js +258 -211
  27. package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
  28. package/dist/cjs/ez-modal.cjs.entry.js +17 -4
  29. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
  30. package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
  31. package/dist/cjs/ez-popover-plus_3.cjs.entry.js +238 -0
  32. package/dist/cjs/ez-popup.cjs.entry.js +29 -3
  33. package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
  34. package/dist/cjs/ez-search-plus.cjs.entry.js +397 -0
  35. package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
  36. package/dist/cjs/ez-search.cjs.entry.js +134 -191
  37. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-skeleton.cjs.entry.js +118 -36
  39. package/dist/cjs/ez-split-button.cjs.entry.js +16 -7
  40. package/dist/cjs/ez-split-item.cjs.entry.js +7 -4
  41. package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
  42. package/dist/cjs/ez-text-area.cjs.entry.js +91 -8
  43. package/dist/cjs/ez-text-input.cjs.entry.js +150 -31
  44. package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
  45. package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
  46. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  47. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  48. package/dist/cjs/ezui.cjs.js +1 -1
  49. package/dist/cjs/filter-column.cjs.entry.js +24 -52
  50. package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
  51. package/dist/cjs/index-a7b0c73d.js +36 -8
  52. package/dist/cjs/loader.cjs.js +1 -1
  53. package/dist/cjs/search-column-27d1f72f.js +505 -0
  54. package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
  55. package/dist/collection/collection-manifest.json +21 -2
  56. package/dist/collection/components/ez-actions-button/ez-actions-button.css +2 -0
  57. package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
  58. package/dist/collection/components/ez-avatar/ez-avatar.css +139 -0
  59. package/dist/collection/components/ez-avatar/ez-avatar.js +143 -0
  60. package/dist/collection/components/ez-badge/ez-badge.css +12 -1
  61. package/dist/collection/components/ez-badge/ez-badge.js +31 -1
  62. package/dist/collection/components/ez-button/ez-button.css +24 -14
  63. package/dist/collection/components/ez-button/ez-button.js +12 -6
  64. package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
  65. package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
  66. package/dist/collection/components/ez-chart/ez-chart.js +2 -2
  67. package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js +1 -0
  68. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +3 -3
  69. package/dist/collection/components/ez-check/ez-check.css +10 -6
  70. package/dist/collection/components/ez-check/ez-check.js +34 -9
  71. package/dist/collection/components/ez-chip/ez-chip.css +5 -1
  72. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -1
  73. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
  74. package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
  75. package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
  76. package/dist/collection/components/ez-combo-box/ez-combo-box.js +141 -167
  77. package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
  78. package/dist/collection/components/ez-date-input/ez-date-input.js +58 -19
  79. package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
  80. package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +57 -20
  81. package/dist/collection/components/ez-dialog/ez-dialog.css +27 -24
  82. package/dist/collection/components/ez-dialog/ez-dialog.js +18 -17
  83. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  84. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  85. package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
  86. package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
  87. package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
  88. package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
  89. package/dist/collection/components/ez-form/ez-form.js +125 -4
  90. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
  91. package/dist/collection/components/ez-form-view/ez-form-view.css +13 -2
  92. package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
  93. package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
  94. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  95. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  96. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
  97. package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
  98. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  99. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  100. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
  101. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
  102. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
  103. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +443 -76
  104. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +172 -33
  105. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  106. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +248 -43
  107. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
  108. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
  109. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
  110. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
  111. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
  112. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
  113. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
  114. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
  115. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
  116. package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
  117. package/dist/collection/components/ez-grid/ez-grid.css +107 -10
  118. package/dist/collection/components/ez-grid/ez-grid.js +518 -23
  119. package/dist/collection/components/ez-grid/interfaces/IGridMode.js +1 -0
  120. package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
  121. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
  122. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +23 -51
  123. package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
  124. package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
  125. package/dist/collection/components/ez-icon/ez-icon.css +156 -149
  126. package/dist/collection/components/ez-icon/ez-icon.js +28 -5
  127. package/dist/collection/components/ez-list/ez-list.css +6 -4
  128. package/dist/collection/components/ez-list/ez-list.js +301 -212
  129. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  130. package/dist/collection/components/ez-modal/ez-modal.css +7 -2
  131. package/dist/collection/components/ez-modal/ez-modal.js +18 -5
  132. package/dist/collection/components/ez-modal-container/ez-modal-container.css +3 -1
  133. package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
  134. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
  135. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
  136. package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
  137. package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
  138. package/dist/collection/components/ez-number-input/ez-number-input.js +67 -1
  139. package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
  140. package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
  141. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
  142. package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +524 -0
  143. package/dist/collection/components/ez-popup/ez-popup.css +8 -3
  144. package/dist/collection/components/ez-popup/ez-popup.js +48 -4
  145. package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
  146. package/dist/collection/components/ez-search/ez-search.css +2 -210
  147. package/dist/collection/components/ez-search/ez-search.js +234 -204
  148. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
  149. package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +318 -0
  150. package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
  151. package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
  152. package/dist/collection/components/ez-search-plus/ez-search-plus.js +960 -0
  153. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
  154. package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
  155. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
  156. package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
  157. package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
  158. package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +25 -1
  159. package/dist/collection/components/ez-skeleton/ez-skeleton.css +140 -78
  160. package/dist/collection/components/ez-skeleton/ez-skeleton.js +210 -46
  161. package/dist/collection/components/ez-split-button/ez-split-button.css +53 -15
  162. package/dist/collection/components/ez-split-button/ez-split-button.js +90 -13
  163. package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
  164. package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
  165. package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
  166. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
  167. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
  168. package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
  169. package/dist/collection/components/ez-text-area/ez-text-area.js +151 -6
  170. package/dist/collection/components/ez-text-input/ez-text-input.css +133 -93
  171. package/dist/collection/components/ez-text-input/ez-text-input.js +231 -29
  172. package/dist/collection/components/ez-time-input/ez-time-input.js +43 -1
  173. package/dist/collection/components/ez-tooltip/ez-tooltip.css +62 -0
  174. package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
  175. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  176. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  177. package/dist/collection/sw.js +46 -0
  178. package/dist/collection/utils/CSSVarsUtils.js +1 -0
  179. package/dist/collection/utils/FocusResolver.js +31 -0
  180. package/dist/collection/utils/constants.js +2 -0
  181. package/dist/collection/utils/form/DataBinder.js +65 -21
  182. package/dist/collection/utils/form/FormMetadata.js +2 -1
  183. package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
  184. package/dist/collection/utils/form/interfaces/index.js +1 -1
  185. package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
  186. package/dist/collection/utils/index.js +3 -0
  187. package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
  188. package/dist/collection/utils/search/types.js +7 -0
  189. package/dist/collection/utils/searchColumn/search-column.js +35 -0
  190. package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
  191. package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
  192. package/dist/custom-elements/index.d.ts +54 -0
  193. package/dist/custom-elements/index.js +20072 -70949
  194. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
  195. package/dist/esm/FocusResolver-1ccbf850.js +33 -0
  196. package/dist/esm/FormLayout-071d324c.js +27 -0
  197. package/dist/esm/constants-b036528f.js +7 -0
  198. package/dist/esm/ez-actions-button.entry.js +6 -5
  199. package/dist/esm/ez-avatar.entry.js +46 -0
  200. package/dist/esm/ez-badge.entry.js +14 -2
  201. package/dist/esm/ez-button.entry.js +11 -5
  202. package/dist/esm/ez-card-item_2.entry.js +262 -0
  203. package/dist/esm/ez-chart.entry.js +3 -3
  204. package/dist/esm/ez-check.entry.js +18 -10
  205. package/dist/esm/ez-chip.entry.js +1 -1
  206. package/dist/esm/ez-collapsible-box.entry.js +2 -2
  207. package/dist/esm/ez-combo-box-list_3.entry.js +381 -0
  208. package/dist/esm/ez-combo-box.entry.js +81 -159
  209. package/dist/esm/ez-date-input.entry.js +16 -19
  210. package/dist/esm/ez-date-time-input.entry.js +15 -20
  211. package/dist/esm/ez-dialog.entry.js +19 -9
  212. package/dist/esm/ez-double-list.entry.js +283 -0
  213. package/dist/esm/ez-dropdown.entry.js +14 -8
  214. package/dist/esm/ez-filter-input.entry.js +125 -0
  215. package/dist/esm/ez-form-view.entry.js +42 -28
  216. package/dist/esm/ez-form.entry.js +88 -326
  217. package/dist/esm/ez-grid.entry.js +15289 -69793
  218. package/dist/esm/ez-icon.entry.js +12 -6
  219. package/dist/esm/ez-list.entry.js +258 -211
  220. package/dist/esm/ez-modal-container.entry.js +7 -3
  221. package/dist/esm/ez-modal.entry.js +17 -4
  222. package/dist/esm/ez-multi-selection-list.entry.js +2 -2
  223. package/dist/esm/ez-number-input.entry.js +16 -3
  224. package/dist/esm/ez-popover-plus_3.entry.js +232 -0
  225. package/dist/esm/ez-popup.entry.js +29 -3
  226. package/dist/esm/ez-scroller_2.entry.js +3 -3
  227. package/dist/esm/ez-search-plus.entry.js +393 -0
  228. package/dist/esm/ez-search-result-list.entry.js +93 -0
  229. package/dist/esm/ez-search.entry.js +135 -192
  230. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  231. package/dist/esm/ez-skeleton.entry.js +118 -36
  232. package/dist/esm/ez-split-button.entry.js +16 -7
  233. package/dist/esm/ez-split-item.entry.js +7 -4
  234. package/dist/esm/ez-split-panel.entry.js +69 -7
  235. package/dist/esm/ez-text-area.entry.js +91 -8
  236. package/dist/esm/ez-text-input.entry.js +150 -31
  237. package/dist/esm/ez-time-input.entry.js +9 -2
  238. package/dist/esm/ez-tooltip.entry.js +131 -0
  239. package/dist/esm/ez-tree.entry.js +5 -4
  240. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  241. package/dist/esm/ezui.js +1 -1
  242. package/dist/esm/filter-column.entry.js +24 -52
  243. package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
  244. package/dist/esm/index-baa5e267.js +36 -8
  245. package/dist/esm/loader.js +1 -1
  246. package/dist/esm/search-column-e609d513.js +495 -0
  247. package/dist/esm/searchFormatters-8229207e.js +20 -0
  248. package/dist/ezui/ezui.esm.js +1 -1
  249. package/dist/ezui/p-07894c4a.entry.js +1 -0
  250. package/dist/ezui/p-0d9856a4.entry.js +1 -0
  251. package/dist/ezui/p-1bcfd88c.entry.js +1 -0
  252. package/dist/ezui/p-1eb34cad.entry.js +1 -0
  253. package/dist/ezui/p-20c024f7.entry.js +1 -0
  254. package/dist/ezui/p-26685c50.entry.js +1 -0
  255. package/dist/ezui/p-288631d1.entry.js +1 -0
  256. package/dist/ezui/p-2b42abbb.entry.js +1 -0
  257. package/dist/ezui/p-2b4df33d.entry.js +1 -0
  258. package/dist/ezui/p-30ffb9ed.js +1 -0
  259. package/dist/ezui/p-33326ac5.entry.js +1 -0
  260. package/dist/ezui/p-341da682.entry.js +1 -0
  261. package/dist/ezui/p-35115d5d.entry.js +1 -0
  262. package/dist/ezui/p-3ba9565c.entry.js +1 -0
  263. package/dist/ezui/p-40a60148.js +1 -0
  264. package/dist/ezui/p-496f7832.entry.js +1 -0
  265. package/dist/ezui/p-4b67138e.entry.js +1 -0
  266. package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
  267. package/dist/ezui/p-4d30b703.entry.js +1 -0
  268. package/dist/ezui/p-57363cfd.entry.js +1 -0
  269. package/dist/ezui/p-58f69d24.entry.js +1 -0
  270. package/dist/ezui/{p-84e439b9.entry.js → p-5dde9df3.entry.js} +1 -1
  271. package/dist/ezui/p-5eea9886.js +1 -0
  272. package/dist/ezui/p-69937816.entry.js +1 -0
  273. package/dist/ezui/p-7019f782.entry.js +1 -0
  274. package/dist/ezui/p-79044c3e.entry.js +1 -0
  275. package/dist/ezui/p-7e677b7b.entry.js +1 -0
  276. package/dist/ezui/p-7eae6986.entry.js +1 -0
  277. package/dist/ezui/p-80dfc50b.js +1 -0
  278. package/dist/ezui/p-9478b13b.entry.js +1 -0
  279. package/dist/ezui/p-9567b31a.entry.js +1 -0
  280. package/dist/ezui/p-97c7cf51.entry.js +1 -0
  281. package/dist/ezui/p-998afb6a.entry.js +1 -0
  282. package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
  283. package/dist/ezui/p-a148e994.entry.js +1 -0
  284. package/dist/ezui/p-a3bf8cf1.entry.js +1 -0
  285. package/dist/ezui/p-b38411b4.entry.js +309 -0
  286. package/dist/ezui/p-b81881ac.entry.js +1 -0
  287. package/dist/ezui/p-bac0f920.entry.js +1 -0
  288. package/dist/ezui/p-bff24a7b.js +1 -0
  289. package/dist/ezui/p-cb75eb46.entry.js +1 -0
  290. package/dist/ezui/{p-5b205c80.entry.js → p-d47dabdf.entry.js} +1 -1
  291. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  292. package/dist/ezui/p-dc628ed3.js +1 -0
  293. package/dist/ezui/p-dc73e1fe.entry.js +1 -0
  294. package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
  295. package/dist/ezui/p-e07e4671.js +1 -0
  296. package/dist/ezui/p-e6a9041d.entry.js +1 -0
  297. package/dist/ezui/p-e75c7a23.entry.js +1 -0
  298. package/dist/ezui/p-ec7db713.js +1 -0
  299. package/dist/ezui/p-fa6732f2.entry.js +1 -0
  300. package/dist/types/components/ez-avatar/ez-avatar.d.ts +24 -0
  301. package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
  302. package/dist/types/components/ez-button/ez-button.d.ts +2 -1
  303. package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
  304. package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
  305. package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +2 -0
  306. package/dist/types/components/ez-chart/interfaces/ChartTypeValue.d.ts +1 -0
  307. package/dist/types/components/ez-check/ez-check.d.ts +7 -2
  308. package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
  309. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +19 -15
  310. package/dist/types/components/ez-date-input/ez-date-input.d.ts +12 -3
  311. package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +12 -3
  312. package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -1
  313. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  314. package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
  315. package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
  316. package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
  317. package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
  318. package/dist/types/components/ez-form/ez-form.d.ts +23 -1
  319. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
  320. package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
  321. package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
  322. package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
  323. package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
  324. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +84 -5
  325. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +47 -7
  326. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
  327. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
  328. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
  329. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
  330. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
  331. package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
  332. package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
  333. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
  334. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
  335. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
  336. package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
  337. package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
  338. package/dist/types/components/ez-grid/ez-grid.d.ts +80 -2
  339. package/dist/types/components/ez-grid/interfaces/IGridMode.d.ts +1 -0
  340. package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
  341. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -11
  342. package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
  343. package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
  344. package/dist/types/components/ez-icon/ez-icon.d.ts +5 -0
  345. package/dist/types/components/ez-list/ez-list.d.ts +23 -2
  346. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  347. package/dist/types/components/ez-modal/ez-modal.d.ts +4 -1
  348. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
  349. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
  350. package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
  351. package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
  352. package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
  353. package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +89 -0
  354. package/dist/types/components/ez-popup/ez-popup.d.ts +10 -1
  355. package/dist/types/components/ez-search/ez-search.d.ts +37 -18
  356. package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +29 -0
  357. package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
  358. package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
  359. package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
  360. package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +55 -1
  361. package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +50 -22
  362. package/dist/types/components/ez-split-button/ez-split-button.d.ts +15 -3
  363. package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
  364. package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
  365. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
  366. package/dist/types/components/ez-text-area/ez-text-area.d.ts +25 -0
  367. package/dist/types/components/ez-text-input/ez-text-input.d.ts +37 -3
  368. package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
  369. package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
  370. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  371. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  372. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  373. package/dist/types/components.d.ts +1390 -54
  374. package/dist/types/utils/FocusResolver.d.ts +5 -0
  375. package/dist/types/utils/constants.d.ts +2 -0
  376. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
  377. package/dist/types/utils/form/DataBinder.d.ts +7 -2
  378. package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
  379. package/dist/types/utils/form/interfaces/index.d.ts +1 -0
  380. package/dist/types/utils/index.d.ts +3 -0
  381. package/dist/types/utils/search/types.d.ts +12 -0
  382. package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
  383. package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
  384. package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
  385. package/package.json +16 -7
  386. package/react/components.d.ts +63 -54
  387. package/react/components.js +9 -0
  388. package/react/components.js.map +1 -1
  389. package/react/react-component-lib/createComponent.d.ts +1 -1
  390. package/react/react-component-lib/createComponent.js.map +1 -1
  391. package/react/react-component-lib/createOverlayComponent.js.map +1 -1
  392. package/react/react-component-lib/interfaces.js +1 -0
  393. package/react/react-component-lib/utils/attachProps.d.ts +1 -1
  394. package/react/react-component-lib/utils/attachProps.js.map +1 -1
  395. package/react/react-component-lib/utils/dev.js.map +1 -1
  396. package/react/react-component-lib/utils/index.d.ts +2 -2
  397. package/react/react-component-lib/utils/index.js.map +1 -1
  398. package/dist/cjs/ICustomRender-6fafffce.js +0 -13
  399. package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
  400. package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
  401. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
  402. package/dist/esm/ICustomRender-875b5a40.js +0 -13
  403. package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
  404. package/dist/esm/constants-4e0d35b7.js +0 -5
  405. package/dist/esm/ez-card-item_3.entry.js +0 -177
  406. package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
  407. package/dist/ezui/p-04f24913.js +0 -1
  408. package/dist/ezui/p-05e1f4e7.js +0 -1
  409. package/dist/ezui/p-072e6347.entry.js +0 -1
  410. package/dist/ezui/p-1285c902.entry.js +0 -1
  411. package/dist/ezui/p-13d2fe2d.entry.js +0 -1
  412. package/dist/ezui/p-2097d0cf.entry.js +0 -1
  413. package/dist/ezui/p-32e553e5.entry.js +0 -304
  414. package/dist/ezui/p-34b6916c.entry.js +0 -1
  415. package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
  416. package/dist/ezui/p-3faa2b46.entry.js +0 -1
  417. package/dist/ezui/p-42533ea4.entry.js +0 -1
  418. package/dist/ezui/p-4607fb89.js +0 -1
  419. package/dist/ezui/p-49456b34.entry.js +0 -1
  420. package/dist/ezui/p-4d5235f1.entry.js +0 -1
  421. package/dist/ezui/p-5bd5e68f.entry.js +0 -1
  422. package/dist/ezui/p-650e4b6d.entry.js +0 -1
  423. package/dist/ezui/p-784fe207.entry.js +0 -1
  424. package/dist/ezui/p-7922142b.entry.js +0 -1
  425. package/dist/ezui/p-7af81663.entry.js +0 -1
  426. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  427. package/dist/ezui/p-85c8baae.entry.js +0 -1
  428. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  429. package/dist/ezui/p-9050d2cd.entry.js +0 -1
  430. package/dist/ezui/p-922ac38b.entry.js +0 -1
  431. package/dist/ezui/p-9e11fc7b.js +0 -1
  432. package/dist/ezui/p-a31b9c90.entry.js +0 -1
  433. package/dist/ezui/p-aba3da00.entry.js +0 -1
  434. package/dist/ezui/p-af95cd16.entry.js +0 -1
  435. package/dist/ezui/p-bae4e180.entry.js +0 -1
  436. package/dist/ezui/p-baf80b13.entry.js +0 -1
  437. package/dist/ezui/p-bcb53f27.entry.js +0 -1
  438. package/dist/ezui/p-bf79aaa1.entry.js +0 -1
  439. package/dist/ezui/p-cdc472cc.entry.js +0 -1
  440. package/dist/ezui/p-d9401ea0.entry.js +0 -1
  441. package/dist/ezui/p-e85c48d7.entry.js +0 -1
  442. package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
  443. package/dist/ezui/p-fcf0acce.entry.js +0 -1
@@ -30,6 +30,7 @@ class CSSVarsUtils {
30
30
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--border-color');
31
31
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__icon--width');
32
32
  CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--focus--icon-color');
33
+ CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__margin-bottom');
33
34
  }
34
35
  }
35
36
  static applyVarsButton(host, child) {
@@ -0,0 +1,35 @@
1
+ 'use strict';
2
+
3
+ class FocusResolver {
4
+ static resolveFocus(element, selectText = true) {
5
+ var _a;
6
+ if (!element)
7
+ return;
8
+ (_a = element.focus) === null || _a === void 0 ? void 0 : _a.call(element);
9
+ if (element.setFocus) {
10
+ element.setFocus({ selectText });
11
+ return;
12
+ }
13
+ this.resolveFocusOnChild(element, selectText);
14
+ }
15
+ static resolveFocusOnChild(element, selectText = true) {
16
+ var _a, _b;
17
+ if (this.isGridCell(element) && element.firstElementChild) {
18
+ this.resolveFocusOnChild(element.firstElementChild);
19
+ return;
20
+ }
21
+ if (!element || !element.classList.contains('hydrated'))
22
+ return;
23
+ const firstChild = element.firstElementChild;
24
+ if (!(firstChild === null || firstChild === void 0 ? void 0 : firstChild.focus) && !(firstChild === null || firstChild === void 0 ? void 0 : firstChild.setFocus))
25
+ return;
26
+ (_a = firstChild === null || firstChild === void 0 ? void 0 : firstChild.focus) === null || _a === void 0 ? void 0 : _a.call(firstChild);
27
+ (_b = firstChild === null || firstChild === void 0 ? void 0 : firstChild.setFocus) === null || _b === void 0 ? void 0 : _b.call(firstChild, { selectText });
28
+ }
29
+ static isGridCell(element) {
30
+ var _a;
31
+ return ((_a = element === null || element === void 0 ? void 0 : element.getAttribute) === null || _a === void 0 ? void 0 : _a.call(element, "role")) === 'gridcell';
32
+ }
33
+ }
34
+
35
+ exports.FocusResolver = FocusResolver;
@@ -0,0 +1,27 @@
1
+ 'use strict';
2
+
3
+ exports.CustomEditorSource = void 0;
4
+ (function (CustomEditorSource) {
5
+ CustomEditorSource["GRID"] = "GRID";
6
+ CustomEditorSource["FORM"] = "FORM";
7
+ })(exports.CustomEditorSource || (exports.CustomEditorSource = {}));
8
+
9
+ exports.CustomRenderSource = void 0;
10
+ (function (CustomRenderSource) {
11
+ CustomRenderSource["GRID"] = "GRID";
12
+ CustomRenderSource["FORM"] = "FORM";
13
+ })(exports.CustomRenderSource || (exports.CustomRenderSource = {}));
14
+
15
+ exports.SearchMode = void 0;
16
+ (function (SearchMode) {
17
+ SearchMode["ADVANCED"] = "ADVANCED";
18
+ SearchMode["PREDICTIVE"] = "PREDICTIVE";
19
+ SearchMode["LOAD_DESCRIPTION"] = "LOAD_DESCRIPTION";
20
+ SearchMode["PRELOAD"] = "PRELOAD";
21
+ })(exports.SearchMode || (exports.SearchMode = {}));
22
+
23
+ exports.FormLayout = void 0;
24
+ (function (FormLayout) {
25
+ FormLayout[FormLayout["CASCADE"] = 0] = "CASCADE";
26
+ FormLayout[FormLayout["SIDE_BY_SIDE"] = 1] = "SIDE_BY_SIDE";
27
+ })(exports.FormLayout || (exports.FormLayout = {}));
@@ -3,7 +3,11 @@
3
3
  const REQUIRED_INFO = " (obrigatório) *";
4
4
  const DISTINCT_FILTER_NAME_PREFIX = 'FILTRO_COLUNA_';
5
5
  const EZ_GRID_LOADING_SOURCE = "EZ_GRID_LOADING_SOURCE";
6
+ const PRESENTATION_COL_ID_PROP_NAME = "gridDescriptionColID";
7
+ const PRESENTATION_FROM_COL_PROP_NAME = "presentationFieldFrom";
6
8
 
7
9
  exports.DISTINCT_FILTER_NAME_PREFIX = DISTINCT_FILTER_NAME_PREFIX;
8
10
  exports.EZ_GRID_LOADING_SOURCE = EZ_GRID_LOADING_SOURCE;
11
+ exports.PRESENTATION_COL_ID_PROP_NAME = PRESENTATION_COL_ID_PROP_NAME;
12
+ exports.PRESENTATION_FROM_COL_PROP_NAME = PRESENTATION_FROM_COL_PROP_NAME;
9
13
  exports.REQUIRED_INFO = REQUIRED_INFO;
@@ -5,12 +5,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
  require('./ApplicationUtils-c9d1205c.js');
8
- const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
8
+ const CSSVarsUtils = require('./CSSVarsUtils-f20973d1.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
- require('./ICustomRender-6fafffce.js');
11
+ require('./FormLayout-18853e70.js');
12
12
 
13
- const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
13
+ const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px);--ez-button--border:none}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none;--ez-button--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
14
14
 
15
15
  const EzActionsButton = class {
16
16
  constructor(hostRef) {
@@ -99,8 +99,9 @@ const EzActionsButton = class {
99
99
  var _a;
100
100
  const docWidth = document.body.clientWidth;
101
101
  const boundingList = (_a = this._actionsList) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
102
- if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) > docWidth) {
103
- return (docWidth - boundingList.width) + "px";
102
+ const rightOffset = docWidth - this._button.getBoundingClientRect().right;
103
+ if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) >= docWidth || (boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) === (docWidth - rightOffset)) {
104
+ return (docWidth - boundingList.width - rightOffset) + "px";
104
105
  }
105
106
  return;
106
107
  }
@@ -0,0 +1,50 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-a7b0c73d.js');
6
+
7
+ const ezAvatarCss = ":host{--ez-avatar--background-color:var(--color--ocean-green-600, #008561);--ez-avatar--color:var(--color--gray-70, #fff);--ez-avatar--border-radius-circle:50%;--ez-avatar--border-radius-square:25%;--ez-avatar--background-color-hover:var(--color--ocean-green-700, #00684C)}button,figure{display:flex;align-items:center;justify-content:center;border:var(--ez-avatar--border);background-color:var(--ez-avatar--background-color);color:var(--ez-avatar--color);font-weight:var(--font-weight--medium, 500);font-family:var(--font-pattern, 'Roboto');transition:background-color 0.2s linear, color 0.2s linear;margin:0;padding:0}button:hover{cursor:pointer;background-color:var(--ez-avatar--background-color-hover)}.avatar--320{--avatar-size:320px;width:20rem;height:20rem}.avatar--300{--avatar-size:300px;width:18.75rem;height:18.75rem}.avatar--280{--avatar-size:280px;width:17.5rem;height:17.5rem}.avatar--260{--avatar-size:260px;width:16.25rem;height:16.25rem}.avatar--240{--avatar-size:240px;width:15rem;height:15rem}.avatar--220{--avatar-size:220px;width:13.75rem;height:13.75rem}.avatar--200{--avatar-size:200px;width:12.5rem;height:12.5rem}.avatar--180{--avatar-size:180px;width:11.25rem;height:11.25rem}.avatar--160{--avatar-size:160px;width:10rem;height:10rem}.avatar--140{--avatar-size:140px;width:8.75rem;height:8.75rem}.avatar--120{--avatar-size:120px;width:7.5rem;height:7.5rem}.avatar--100{--avatar-size:100px;width:6.25rem;height:6.25rem}.avatar--80{--avatar-size:80px;width:5rem;height:5rem}.avatar--60{--avatar-size:60px;width:3.75rem;height:3.75rem}.avatar-initial{font-size:calc(0.375 * var(--avatar-size));}.avatar--circle{border-radius:var(--ez-avatar--border-radius-circle)}.avatar--square{border-radius:var(--ez-avatar--border-radius-square)}.avatar-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar--has-image{background-color:transparent}ez-icon{--ez-icon--color:var(--color--gray-70, #fff);font-weight:var(--font-weight--medium, 500)}";
8
+
9
+ const EzAvatar = class {
10
+ constructor(hostRef) {
11
+ index.registerInstance(this, hostRef);
12
+ this.DECIMAL_PARSE_BASE = 10;
13
+ this.FONT_SIZE_BASE_CALC = 0.375;
14
+ this.name = undefined;
15
+ this.imageSrc = undefined;
16
+ this.size = '100';
17
+ this.shape = 'circle';
18
+ this.isInteractive = false;
19
+ }
20
+ /** Obtém a inicial do nome do usuário. */
21
+ getInitial() {
22
+ var _a;
23
+ return ((_a = this.name) === null || _a === void 0 ? void 0 : _a.trim()) ? this.name.charAt(0).toUpperCase() : '';
24
+ }
25
+ calcFontSize() {
26
+ const sizeNumber = parseInt(this.size, this.DECIMAL_PARSE_BASE);
27
+ return this.FONT_SIZE_BASE_CALC * sizeNumber;
28
+ }
29
+ getClass() {
30
+ return `avatar avatar--${this.size} avatar--${this.shape} ${this.imageSrc ? 'avatar--has-image' : ''}`;
31
+ }
32
+ renderAvatarContent() {
33
+ if (this.imageSrc) {
34
+ return index.h("img", { src: this.imageSrc, alt: this.name || 'Avatar', class: "avatar-image" });
35
+ }
36
+ if (this.name) {
37
+ return index.h("span", { class: "avatar-initial", "aria-hidden": "true" }, this.getInitial());
38
+ }
39
+ return index.h("ez-icon", { class: "avatar-icon", iconName: "account-outline", fontSize: this.calcFontSize() });
40
+ }
41
+ render() {
42
+ if (this.isInteractive) {
43
+ return (index.h("button", { "aria-label": "Perfil", class: this.getClass() }, this.renderAvatarContent()));
44
+ }
45
+ return (index.h("figure", { class: this.getClass() }, this.renderAvatarContent()));
46
+ }
47
+ };
48
+ EzAvatar.style = ezAvatarCss;
49
+
50
+ exports.ez_avatar = EzAvatar;
@@ -15,7 +15,7 @@ var Sizes;
15
15
  Sizes["EXTRA_SMALL"] = "extra-small";
16
16
  })(Sizes || (Sizes = {}));
17
17
 
18
- const ezBadgeCss = ":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center;align-items:center}.badge__content--fill-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px)}.badge__content--fill-2xs{height:var(--ez-badge--size-2xs, 8px);min-width:var(--ez-badge--size-2xs, 8px)}.badge__content--text-md{height:calc(var(--ez-badge--size-md, 20px) - 2px);min-width:var(--ez-badge--size-sm, 20px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-md)}.badge__content--text-sm{height:calc(var(--ez-badge--size-sm, 16px) - 2px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-sm)}.badge__content--text-xs{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-2xs);padding-bottom:var(--ez-badge--padding-2xs);padding-right:var(--ez-badge--padding-lg);padding-left:var(--ez-badge--padding-lg);font-size:var(--ez-badge--font-size-xs)}.badge__content--icon-lg{height:var(--ez-badge--size-lg, 24px);min-width:var(--ez-badge--size-lg, 24px);padding:var(--ez-badge--padding-md)}.badge__content--icon-md{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-md)}.badge__content--icon-sm{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px);padding:var(--ez-badge--padding-xs)}.badge__content--fill{position:absolute;top:0;inset-inline-end:0;z-index:var(--most-visible, 2)}.badge__content--fill-top-right{transform:translate(50%, -50%);position:absolute;top:0;right:0}.badge__content--fill-top-left{transform:translate(-50%, -50%);position:absolute;top:0;left:0}.badge__content--fill-bottom-left{transform:translate(-50%, 50%);position:absolute;bottom:0;left:0}.badge__content--fill-bottom-right{transform:translate(50%, 50%);position:absolute;bottom:0;right:0}";
18
+ const ezBadgeCss = ":host{--ez-badge--size-2xs:var(--space--2xs, 8px);--ez-badge--size-xs:var(--space--xs, 12px);--ez-badge--size-sm:var(--space--sm, 16px);--ez-badge--size-md:var(--space--md, 20px);--ez-badge--size-lg:var(--space--lg, 24px);--ez-badge--size-xl:var(--space--xl, 32px);--ez-badge--padding-2xs:0;--ez-badge--padding-xs:var(--space--nano, 2px);--ez-badge--padding-sm:calc(var(--space--nano, 2px) + 1px);--ez-badge--padding-md:var(--space--3xs, 4px);--ez-badge--padding-lg:calc(var(--space--3xs, 4px) + 2px);--ez-badge--padding-xl:var(--space--2xs);--ez-badge--border-radius:calc(var(--border--radius-medium, 12px) + 8px);--ez-badge--font-family:var(--font-pattern, Roboto);--ez-badge--font-weight-medium:var(--text-weight--medium, 400);--ez-badge--background-color:var(--color--primary, #008561);--ez-badge--border-none:0;--ez-badge--color:var(--text--inverted, #ffffff);--ez-badge--gap:calc(var(--ez-badge--padding-xs) + 1px);--ez-badge--font-size-md:var(--text--medium);--ez-badge--font-size-sm:var(--text--medium);--ez-badge--font-size-xs:var(--text--small)}ez-icon{--ez-icon--color:inherit}.badge{display:flex;justify-content:center;align-items:center;position:relative}.badge__content{font-family:var(--ez-badge--font-family, Roboto);font-weight:var(--ez-badge--font-weight-medium, 400);background-color:var(--ez-badge--background-color, #008561);border:var(--ez-badge--border-none, 0);color:var(--ez-badge--color, #ffffff);border-radius:var(--ez-badge--border-radius, 20px);gap:var(--ez-badge--gap, 3px);display:flex;justify-content:center}.badge__content--fill-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px)}.badge__content--fill-2xs{height:var(--ez-badge--size-2xs, 8px);min-width:var(--ez-badge--size-2xs, 8px)}.badge__content--text-md{height:calc(var(--ez-badge--size-md, 20px) - 2px);min-width:var(--ez-badge--size-sm, 20px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-md)}.badge__content--text-sm{height:calc(var(--ez-badge--size-sm, 16px) - 2px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-sm);padding-bottom:var(--ez-badge--padding-sm);padding-right:var(--ez-badge--padding-xl);padding-left:var(--ez-badge--padding-xl);font-size:var(--ez-badge--font-size-sm)}.badge__content--text-xs{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding-top:var(--ez-badge--padding-2xs);padding-bottom:var(--ez-badge--padding-2xs);padding-right:var(--ez-badge--padding-lg);padding-left:var(--ez-badge--padding-lg);font-size:var(--ez-badge--font-size-xs)}.badge__content--icon-lg{height:var(--ez-badge--size-lg, 24px);min-width:var(--ez-badge--size-lg, 24px);padding:var(--ez-badge--padding-md)}.badge__content--icon-md{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-md)}.badge__content--icon-sm{height:var(--ez-badge--size-sm, 16px);min-width:var(--ez-badge--size-sm, 16px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-xs{height:var(--ez-badge--size-xs, 12px);min-width:var(--ez-badge--size-xs, 12px);padding:var(--ez-badge--padding-xs)}.badge__content--icon-align-center{align-items:center}.badge__content--icon-align-start{align-items:flex-start}.badge__content--icon-align-end{align-items:flex-end}.badge__content--fill{position:absolute;top:0;inset-inline-end:0;z-index:var(--most-visible, 2)}.badge__content--fill-top-right{transform:translate(50%, -50%);position:absolute;top:0;right:0}.badge__content--fill-top-left{transform:translate(-50%, -50%);position:absolute;top:0;left:0}.badge__content--fill-bottom-left{transform:translate(-50%, 50%);position:absolute;bottom:0;left:0}.badge__content--fill-bottom-right{transform:translate(50%, 50%);position:absolute;bottom:0;right:0}";
19
19
 
20
20
  const EzBadge = class {
21
21
  constructor(hostRef) {
@@ -46,6 +46,7 @@ const EzBadge = class {
46
46
  this.iconLeft = undefined;
47
47
  this.iconRight = undefined;
48
48
  this.position = { horizontal: "right", vertical: "top" };
49
+ this.alignItems = "center";
49
50
  }
50
51
  getIconSize() {
51
52
  switch (this.size) {
@@ -60,6 +61,16 @@ const EzBadge = class {
60
61
  return null;
61
62
  }
62
63
  }
64
+ getAlignItemsClass() {
65
+ switch (this.alignItems) {
66
+ case "flex-end":
67
+ return "end";
68
+ case "flex-start":
69
+ return "start";
70
+ default:
71
+ return "center";
72
+ }
73
+ }
63
74
  componentDidLoad() {
64
75
  if (this._element) {
65
76
  core.ElementIDUtils.addIDInfo(this._element);
@@ -83,7 +94,8 @@ const EzBadge = class {
83
94
  }
84
95
  createContainerClassName() {
85
96
  let sizeSufix = this._sizes[this.size].sufix;
86
- let containerClassNames = ["badge__content"];
97
+ let alignItemsClass = "badge__content--icon-align-" + this.getAlignItemsClass();
98
+ let containerClassNames = ["badge__content", alignItemsClass];
87
99
  if (this.hasSlot) {
88
100
  containerClassNames.push("badge__content--fill-" + sizeSufix);
89
101
  if (this.position.vertical == "bottom" && this.position.horizontal == "right") {
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600);--ez-button--hover--background-color:var(--background--medium, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--color--disable-primary, '#e5eaf0');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
8
+ const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #2B3A54);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large, 500);--ez-button--background-color:var(--background--light, #ffffff);--ez-button--border-radius:var(--border--radius-large, 24px);--ez-button--border:1px solid var(--color--strokes);--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600, #007a5a);--ez-button--hover--background-color:var(--background--light, #ffffff);--ez-button--disabled-color:var(--text--primary);--ez-button--disabled--background-color:var(--background--medium);--ez-button--focus--border:var(--border--medium, 2px solid) var(--color--primary-300);--ez-button--focus--box-shadow:var(--color--primary-300) 0px 0px 0px 2px;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--text--secondary, #a2abb9);--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:none;box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.x-small{height:28px;--ez-button--font-size:var(--text--small, 12px)}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--x-small{width:28px;min-width:28px;height:28px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
9
9
 
10
10
  const EzButton = class {
11
11
  constructor(hostRef) {
@@ -43,10 +43,16 @@ const EzButton = class {
43
43
  core.ElementIDUtils.addIDInfo(this._button, 'button', dataInfo);
44
44
  }
45
45
  }
46
+ getButtonSize(sizeParam = "medium") {
47
+ const sizeList = ["x-small", "small", "medium", "large"];
48
+ const sizeLowerCase = this.size && this.size.toLowerCase();
49
+ return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
50
+ }
46
51
  getIconSize(sizeParam = "medium") {
47
52
  const sizeList = ["small", "medium", "large"];
48
53
  const sizeLowerCase = this.size && this.size.toLowerCase();
49
- return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
54
+ const sizeMapped = sizeLowerCase === "x-small" ? "small" : sizeLowerCase;
55
+ return sizeList.includes(sizeMapped) ? sizeMapped : sizeParam;
50
56
  }
51
57
  handleSlotChange(ev) {
52
58
  const slot = ev.target;
@@ -68,16 +74,16 @@ const EzButton = class {
68
74
  }
69
75
  render() {
70
76
  if (this.mode == "icon") {
71
- return (index.h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
77
+ return (index.h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })));
72
78
  }
73
79
  else if (this.mode == "label-icon") {
74
- return (index.h("div", { class: "label-icon" }, index.h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), index.h("label", { title: this.label }, this.label)));
80
+ return (index.h("div", { class: "label-icon" }, index.h("button", { class: "btn-icon " + ((this.getButtonSize()) ? `btn-icon--${this.getButtonSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), index.h("label", { title: this.label }, this.label)));
75
81
  }
76
82
  else if (this.mode == "link") {
77
83
  return (index.h("a", { class: `${this.getIconSize()} ${!this.enabled ? "disabled" : ""}`, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
78
84
  }
79
85
  else {
80
- return (index.h("button", { class: this.getIconSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
86
+ return (index.h("button", { class: this.getButtonSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
81
87
  }
82
88
  }
83
89
  get _element() { return index.getElement(this); }
@@ -0,0 +1,267 @@
1
+ 'use strict';
2
+
3
+ Object.defineProperty(exports, '__esModule', { value: true });
4
+
5
+ const index = require('./index-a7b0c73d.js');
6
+ const core = require('@sankhyalabs/core');
7
+ const floatingUi_dom_esm = require('./floating-ui.dom.esm-017acce4.js');
8
+
9
+ const ezCardItemCss = ":host { \n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define o tamanho da fonte do componente no modo compacto.*/\n --ez-card-item--font-size-compacted: var(--text--extra-small, 10px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--text-weight--medium, 400);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--text-weight--large, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--detail-label--font-weight: var(--text-weight--large, 400);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item__detail{\n display: inline-block;\n width: 100%;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n opacity: var(--opacity--soft);\n}\n\n\n\n.card-item__expanded {\n padding: var(--space--medium);\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n display: flex;\n flex-direction: column;\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail{\n cursor: pointer;\n}\n\n.card-item__detail-default:not(:last-child) {\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--detail-label--font-weight);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container_default{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n/* Modo compacto */\n.card-item__compacted {\n padding: var(--space--2xs) var(--space--small);\n}\n\n.card-item__detail-label-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__detail-value-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__title-compacted {\n font-size: var(--ez-card-item--font-size-compacted);\n}\n\n.card-item__details-container__left-compacted{\n width: 100%;\n}\n\n.card-item__details-container__right-compacted {\n width: 100%;\n}\n\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-container__left {\n width: 100%;\n }\n \n .card-item__details-container__right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";
10
+
11
+ const EzCardItem = class {
12
+ constructor(hostRef) {
13
+ index.registerInstance(this, hostRef);
14
+ this.ezClick = index.createEvent(this, "ezClick", 7);
15
+ this.item = undefined;
16
+ this.enableKey = true;
17
+ this.compacted = false;
18
+ }
19
+ componentWillRender() {
20
+ this.createDetailList();
21
+ }
22
+ componentDidLoad() {
23
+ var _a, _b;
24
+ const dataInfo = { id: core.StringUtils.toCamelCase(((_a = this.item) === null || _a === void 0 ? void 0 : _a.key) || ((_b = this.item) === null || _b === void 0 ? void 0 : _b.title) || "") };
25
+ core.ElementIDUtils.addIDInfo(this._element, null, dataInfo);
26
+ }
27
+ createDetailList() {
28
+ var _a, _b, _c;
29
+ this._details = { detailsLeft: [], detailsRight: [] };
30
+ let cont = 0;
31
+ if ((_a = this.item) === null || _a === void 0 ? void 0 : _a.details) {
32
+ for (const attribute in this.item.details) {
33
+ cont < 3 ?
34
+ this._details.detailsLeft.push({ label: attribute, value: (_b = this.item.details[attribute]) === null || _b === void 0 ? void 0 : _b.toString() }) :
35
+ this._details.detailsRight.push({ label: attribute, value: (_c = this.item.details[attribute]) === null || _c === void 0 ? void 0 : _c.toString() });
36
+ cont++;
37
+ }
38
+ }
39
+ }
40
+ buildDetailContentTitle(detail) {
41
+ var _a, _b;
42
+ if ((detail === null || detail === void 0 ? void 0 : detail.label) == undefined && (detail === null || detail === void 0 ? void 0 : detail.value) == undefined)
43
+ return;
44
+ const cleanLabel = (_a = core.StringUtils.replaceAccentuatedCharsHtmlEntities(detail === null || detail === void 0 ? void 0 : detail.label)) === null || _a === void 0 ? void 0 : _a.replace(/<[^>]*>/g, '');
45
+ const cleanValue = (_b = core.StringUtils.replaceAccentuatedCharsHtmlEntities(detail === null || detail === void 0 ? void 0 : detail.value)) === null || _b === void 0 ? void 0 : _b.replace(/<[^>]*>/g, '');
46
+ return `${cleanLabel}: ${cleanValue}`;
47
+ }
48
+ buildDetailContent(detail) {
49
+ return index.h("div", { class: `card-item__detail ${this.compacted ? "" : "card-item__detail-default"}`, title: this.buildDetailContentTitle(detail) }, index.h("label", { class: `card-item__detail-label ${this.compacted ? "card-item__detail-label-compacted" : ""}` }, `${detail.label}: `), " ", index.h("label", { class: `card-item__detail-value ${this.compacted ? "card-item__detail-value-compacted" : ""}`, innerHTML: detail.value }));
50
+ }
51
+ render() {
52
+ return (index.h(index.Host, null, this.item &&
53
+ index.h("div", { class: `card-item ${this.compacted ? "card-item__compacted" : "card-item__expanded"} `, onClick: () => { this.ezClick.emit(this.item); } }, index.h("div", { class: "ez-row card-item__content" }, index.h("div", { class: "ez-col ez-col--sd-11 card-item__details" }, index.h("label", { class: `card-item__title ${this.compacted ? "card-item__title-compacted" : ""}` }, this.enableKey && (index.h("span", { class: "card-item__key", innerHTML: this.item.key })), index.h("span", { innerHTML: this.item.title })), index.h("div", { class: `${this.compacted ? "card-item__details-container_compacted" : "card-item__details-container_default"}` }, index.h("div", { class: `card-item__details-container__left ${this.compacted ? "card-item__details-container__left-compacted" : ""}` }, this._details.detailsLeft.map(detail => {
54
+ return this.buildDetailContent(detail);
55
+ })), index.h("div", { class: `card-item__details-container__right ${this.compacted ? "card-item__details-container__right-compacted" : ""}` }, this._details.detailsRight.map(detail => {
56
+ return this.buildDetailContent(detail);
57
+ })))), index.h("div", { class: "ez-col ez-col--sd-1 card-item__details-slot" }, index.h("slot", { name: "rightSlot" }))))));
58
+ }
59
+ get _element() { return index.getElement(this); }
60
+ };
61
+ EzCardItem.style = ezCardItemCss;
62
+
63
+ const ezPopoverCoreCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--elevation--100, 100);position:relative;display:flex;user-select:none}.popover__overlay{display:none;position:fixed;padding:0;top:0px;left:0px;width:100%;height:100vh;box-sizing:border-box;z-index:var(--elevation--24, 24)}.popover__overlay--light{background-color:rgba(var(--rgb-background--overlay), var(--opacity--bright))}.popover__overlay--medium{background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.popover__box{display:none;position:fixed;top:0;left:0;z-index:var(--ez-popover__box--z-index);flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:calc(100% - 10px)}";
64
+
65
+ const EzPopoverCore = class {
66
+ constructor(hostRef) {
67
+ index.registerInstance(this, hostRef);
68
+ this.ezVisibilityChange = index.createEvent(this, "ezVisibilityChange", 7);
69
+ this.autoClose = true;
70
+ this.boxWidth = "fit-content";
71
+ this.opened = false;
72
+ this.overlayType = "light";
73
+ this.anchorElement = undefined;
74
+ this.options = { horizontalGap: 0, verticalGap: 0, fromRight: false };
75
+ this.useAnchorSize = false;
76
+ this.minWidth = 150;
77
+ }
78
+ observeOpened(newValue, oldValue) {
79
+ if (newValue === oldValue) {
80
+ return;
81
+ }
82
+ if (newValue) {
83
+ this.openPopover();
84
+ }
85
+ else {
86
+ this.hidePopover();
87
+ }
88
+ }
89
+ /**
90
+ * Atualiza a posição do popover.
91
+ */
92
+ async updatePosition(top, left) {
93
+ this.updateOptionPosition(top, left);
94
+ await this.updatePositionPopover();
95
+ }
96
+ /**
97
+ * Exibe o ez-popover.
98
+ */
99
+ async show(top, left) {
100
+ this.updateOptionPosition(top, left);
101
+ this.opened = true;
102
+ }
103
+ /**
104
+ * Ancora a exibição do popOver a um elemento HTML.
105
+ */
106
+ async showUnder(element, options) {
107
+ if (options) {
108
+ this.options = options;
109
+ }
110
+ this.anchorElement = element;
111
+ this.opened = true;
112
+ }
113
+ /**
114
+ * Oculta o ez-popover.
115
+ */
116
+ async hide() {
117
+ this.opened = false;
118
+ }
119
+ /**
120
+ * Altera as opções.
121
+ */
122
+ async setOptions(options) {
123
+ Object.assign(this.options, options);
124
+ }
125
+ /**
126
+ * Altera o elemento de ancoragem.
127
+ */
128
+ async setAnchorElement(anchor) {
129
+ this.anchorElement = anchor;
130
+ }
131
+ parseSizePixel(sizePixel, defaultValue) {
132
+ if (!sizePixel) {
133
+ return defaultValue !== null && defaultValue !== void 0 ? defaultValue : 0;
134
+ }
135
+ if (typeof sizePixel === "string") {
136
+ return Number(sizePixel.replace("px", ""));
137
+ }
138
+ return sizePixel !== null && sizePixel !== void 0 ? sizePixel : 0;
139
+ }
140
+ updateOptionPosition(top, left) {
141
+ Object.assign(this.options, {
142
+ horizontalGap: this.parseSizePixel(left, this.options.horizontalGap),
143
+ verticalGap: this.parseSizePixel(top, this.options.verticalGap),
144
+ });
145
+ }
146
+ getElement(element) {
147
+ if (typeof element === 'string') {
148
+ return document.getElementById(element);
149
+ }
150
+ return element;
151
+ }
152
+ getAnchorElement() {
153
+ if (!this.anchorElement) {
154
+ return this._host;
155
+ }
156
+ if (Array.isArray(this.anchorElement)) {
157
+ for (const element of this.anchorElement) {
158
+ const htmlElement = this.getElement(element);
159
+ if (htmlElement) {
160
+ return htmlElement;
161
+ }
162
+ }
163
+ return this._host;
164
+ }
165
+ return this.getElement(this.anchorElement);
166
+ }
167
+ async updatePositionPopover() {
168
+ if (!this._box || !this.opened) {
169
+ return;
170
+ }
171
+ const currentAnchorElement = this.getAnchorElement();
172
+ await floatingUi_dom_esm.computePosition(currentAnchorElement, this._box, {
173
+ placement: this.options.fromRight ? 'bottom-end' : 'bottom-start',
174
+ middleware: [floatingUi_dom_esm.flip(), floatingUi_dom_esm.shift({ padding: 5 })],
175
+ strategy: 'fixed',
176
+ }).then(({ x, y, placement }) => {
177
+ const newTop = placement.includes("bottom") ? y + this.options.verticalGap : y - this.options.verticalGap;
178
+ const newLeft = placement.includes("start") ? x + this.options.horizontalGap : x - this.options.horizontalGap;
179
+ Object.assign(this._box.style, {
180
+ top: `${newTop}px`,
181
+ left: `${newLeft}px`,
182
+ });
183
+ });
184
+ }
185
+ hidePopover() {
186
+ if (!this._box) {
187
+ return;
188
+ }
189
+ this._box.style.display = '';
190
+ this.hideOverlay();
191
+ this.ezVisibilityChange.emit(false);
192
+ }
193
+ async openPopover() {
194
+ if (!this._box || !this.opened) {
195
+ return;
196
+ }
197
+ this._box.style.display = 'flex';
198
+ this._box.style.visibility = 'hidden';
199
+ if (this.useAnchorSize) {
200
+ const currentAnchorElement = this.getAnchorElement();
201
+ const anchorSize = currentAnchorElement.getBoundingClientRect().width;
202
+ const width = anchorSize < this.minWidth ? this.minWidth : anchorSize;
203
+ this._box.style.width = `${width}px`;
204
+ }
205
+ await this.updatePositionPopover();
206
+ this.openOverlay();
207
+ this.ezVisibilityChange.emit(true);
208
+ this._box.style.visibility = 'visible';
209
+ }
210
+ openOverlay() {
211
+ if (!this._overlay || !this._overlayIsActive) {
212
+ return;
213
+ }
214
+ this._overlay.style.display = 'block';
215
+ }
216
+ hideOverlay() {
217
+ if (!this._overlay) {
218
+ return;
219
+ }
220
+ this._overlay.style.display = 'none';
221
+ }
222
+ checkStatusOverlay() {
223
+ if (this.overlayType !== "none") {
224
+ return true;
225
+ }
226
+ if (this.overlayType === "none" && this.autoClose) {
227
+ return true;
228
+ }
229
+ return false;
230
+ }
231
+ handlePositionUpdate() {
232
+ if (!this.opened) {
233
+ return;
234
+ }
235
+ this.updatePositionPopover();
236
+ }
237
+ componentWillLoad() {
238
+ window.addEventListener('scroll', this.handlePositionUpdate.bind(this), true);
239
+ window.addEventListener('resize', this.handlePositionUpdate.bind(this), true);
240
+ }
241
+ componentDidLoad() {
242
+ this._overlayIsActive = this.checkStatusOverlay();
243
+ this._resizeObserver = new ResizeObserver(this.updatePositionPopover.bind(this));
244
+ this._resizeObserver.observe(this._box);
245
+ this.openPopover();
246
+ }
247
+ disconnectedCallback() {
248
+ window.removeEventListener('scroll', this.handlePositionUpdate.bind(this), true);
249
+ window.removeEventListener('resize', this.handlePositionUpdate.bind(this), true);
250
+ this._resizeObserver.disconnect();
251
+ }
252
+ render() {
253
+ return (index.h(index.Host, null, index.h("div", { ref: el => this._overlay = el, onClick: () => this.hide(), class: `popover__overlay popover__overlay--${this.overlayType}` }), index.h("section", { ref: el => this._box = el, class: {
254
+ "popover__box": true,
255
+ "popover__box--fit-content": this.boxWidth === "fit-content",
256
+ "popover__box--full-width": this.boxWidth !== "fit-content",
257
+ } }, index.h("slot", null))));
258
+ }
259
+ get _host() { return index.getElement(this); }
260
+ static get watchers() { return {
261
+ "opened": ["observeOpened"]
262
+ }; }
263
+ };
264
+ EzPopoverCore.style = ezPopoverCoreCss;
265
+
266
+ exports.ez_card_item = EzCardItem;
267
+ exports.ez_popover_core = EzPopoverCore;
@@ -191,14 +191,14 @@ class BaseHighChartsRender {
191
191
  return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (name && { name })), (type && { type })), (data && { data })), (color && { color })), (showDataLabel && { dataLabels: { enabled: showDataLabel } })), (yAxis !== undefined && { yAxis }));
192
192
  }
193
193
  chartAxisToAxisOptions(axis) {
194
- const { categories, color, text, invertedPosition, formatter } = axis;
195
- return Object.assign(Object.assign(Object.assign(Object.assign({}, (categories && { categories })), (text && {
194
+ const { categories, color, text, invertedPosition, formatter, type } = axis;
195
+ return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, (categories && { categories })), (text && {
196
196
  title: Object.assign({ text }, (color && { style: { color } }))
197
197
  })), (formatter && {
198
198
  labels: {
199
199
  formatter: function () { return formatter(this.value); },
200
200
  }
201
- })), (invertedPosition && { opposite: invertedPosition }));
201
+ })), (invertedPosition && { opposite: invertedPosition })), (type && { type }));
202
202
  }
203
203
  }
204
204