@limetech/lime-elements 40.18.3 → 40.20.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 (352) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/cjs/controlled-element-Ajn5eA-q.js +26 -0
  3. package/dist/cjs/{index-zZvs6xK-.js → index-DIiA99Er.js} +271 -71
  4. package/dist/cjs/keyboard-navigation-VyqkMDKy.js +152 -0
  5. package/dist/cjs/lime-elements.cjs.js +1 -1
  6. package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-action-bar_3.cjs.entry.js +4 -4
  8. package/dist/cjs/limel-ai-avatar.cjs.entry.js +2 -2
  9. package/dist/cjs/{limel-breadcrumbs_6.cjs.entry.js → limel-badge_7.cjs.entry.js} +98 -12
  10. package/dist/cjs/limel-banner.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
  12. package/dist/cjs/limel-button.cjs.entry.js +2 -2
  13. package/dist/cjs/limel-callout.cjs.entry.js +2 -2
  14. package/dist/cjs/limel-card.cjs.entry.js +1 -1
  15. package/dist/cjs/limel-chart.cjs.entry.js +51362 -270
  16. package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/limel-chip-set.cjs.entry.js +23 -4
  18. package/dist/cjs/limel-chip_2.cjs.entry.js +2 -2
  19. package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-code-diff.cjs.entry.js +2 -2
  21. package/dist/cjs/limel-code-editor.cjs.entry.js +2 -2
  22. package/dist/cjs/limel-collapsible-section.cjs.entry.js +2 -2
  23. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +2 -2
  24. package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-dialog.cjs.entry.js +2 -2
  26. package/dist/cjs/limel-dock.cjs.entry.js +3 -3
  27. package/dist/cjs/limel-drag-handle_2.cjs.entry.js +4 -4
  28. package/dist/cjs/limel-email-viewer.cjs.entry.js +2 -2
  29. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +2 -2
  30. package/dist/cjs/limel-file-viewer.cjs.entry.js +2 -2
  31. package/dist/cjs/limel-file.cjs.entry.js +2 -2
  32. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
  33. package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
  34. package/dist/cjs/limel-form-header.cjs.entry.js +1 -1
  35. package/dist/cjs/limel-form.cjs.entry.js +1 -1
  36. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  37. package/dist/cjs/limel-header.cjs.entry.js +1 -1
  38. package/dist/cjs/limel-help_2.cjs.entry.js +3 -3
  39. package/dist/cjs/limel-helper-line_3.cjs.entry.js +6 -5
  40. package/dist/cjs/limel-hotkey_4.cjs.entry.js +5 -5
  41. package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
  42. package/dist/cjs/limel-icon.cjs.entry.js +1 -1
  43. package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
  44. package/dist/cjs/limel-list-item.cjs.entry.js +3 -3
  45. package/dist/cjs/limel-markdown.cjs.entry.js +4 -4
  46. package/dist/cjs/limel-masonry-layout.cjs.entry.js +1 -1
  47. package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
  48. package/dist/cjs/limel-pagination-jump.cjs.entry.js +1 -1
  49. package/dist/cjs/limel-pagination.cjs.entry.js +2 -2
  50. package/dist/cjs/limel-picker.cjs.entry.js +51 -24
  51. package/dist/cjs/limel-popover_2.cjs.entry.js +4 -11
  52. package/dist/cjs/limel-profile-picture.cjs.entry.js +1 -1
  53. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +4 -4
  54. package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
  55. package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
  56. package/dist/cjs/limel-resize-handle.cjs.entry.js +2 -2
  57. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  58. package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
  59. package/dist/cjs/limel-side-panel.cjs.entry.js +2 -2
  60. package/dist/cjs/limel-slider.cjs.entry.js +4 -4
  61. package/dist/cjs/limel-snackbar.cjs.entry.js +3 -3
  62. package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
  63. package/dist/cjs/limel-switch.cjs.entry.js +1 -1
  64. package/dist/cjs/limel-tab-bar.cjs.entry.js +7 -150
  65. package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
  66. package/dist/cjs/limel-table.cjs.entry.js +3 -3
  67. package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +4 -4
  68. package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
  69. package/dist/cjs/live-message-BNl3Ihcz.js +65 -0
  70. package/dist/cjs/loader.cjs.js +1 -1
  71. package/dist/cjs/{markdown-exporter-VtX_2D1d.js → markdown-exporter-BWS2EBxq.js} +2 -2
  72. package/dist/cjs/{markdown-parser-BYtTHL4W.js → markdown-parser-toAp9-Eq.js} +1 -1
  73. package/dist/cjs/{translations-CLSqfR3x.js → translations-CqJEWcfw.js} +8 -0
  74. package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
  75. package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
  76. package/dist/collection/components/action-bar/action-bar.js +2 -2
  77. package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
  78. package/dist/collection/components/badge/badge.js +2 -2
  79. package/dist/collection/components/banner/banner.js +1 -1
  80. package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
  81. package/dist/collection/components/button/button.js +2 -2
  82. package/dist/collection/components/button-group/button-group.js +1 -1
  83. package/dist/collection/components/callout/callout.js +1 -1
  84. package/dist/collection/components/card/card.js +1 -1
  85. package/dist/collection/components/chart/chart.css +63 -927
  86. package/dist/collection/components/chart/chart.js +330 -288
  87. package/dist/collection/components/chart/options.js +572 -0
  88. package/dist/collection/components/chart/scale.js +193 -0
  89. package/dist/collection/components/chart/theme.js +133 -0
  90. package/dist/collection/components/checkbox/checkbox.js +1 -1
  91. package/dist/collection/components/chip/chip.js +1 -1
  92. package/dist/collection/components/chip-set/chip-set.js +66 -3
  93. package/dist/collection/components/circular-progress/circular-progress.js +1 -1
  94. package/dist/collection/components/code-diff/code-diff.js +1 -1
  95. package/dist/collection/components/code-editor/code-editor.js +1 -1
  96. package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
  97. package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
  98. package/dist/collection/components/color-picker/color-picker.js +1 -1
  99. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
  100. package/dist/collection/components/dialog/dialog.js +2 -2
  101. package/dist/collection/components/dock/dock.js +2 -2
  102. package/dist/collection/components/drag-handle/drag-handle.js +1 -1
  103. package/dist/collection/components/email-viewer/email-viewer.js +1 -1
  104. package/dist/collection/components/file/file.js +1 -1
  105. package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
  106. package/dist/collection/components/file-input/file-input.js +1 -1
  107. package/dist/collection/components/flex-container/flex-container.js +1 -1
  108. package/dist/collection/components/form/form.js +1 -1
  109. package/dist/collection/components/form-header/form-header.js +1 -1
  110. package/dist/collection/components/grid/grid.js +1 -1
  111. package/dist/collection/components/header/header.js +1 -1
  112. package/dist/collection/components/help/help-content.js +1 -1
  113. package/dist/collection/components/help/help.js +2 -2
  114. package/dist/collection/components/helper-line/helper-line.js +2 -2
  115. package/dist/collection/components/hotkey/hotkey.js +1 -1
  116. package/dist/collection/components/icon/icon.js +1 -1
  117. package/dist/collection/components/icon-button/icon-button.js +1 -1
  118. package/dist/collection/components/info-tile/info-tile.js +2 -2
  119. package/dist/collection/components/input-field/input-field.css +13 -0
  120. package/dist/collection/components/input-field/input-field.js +86 -5
  121. package/dist/collection/components/list/list-renderer.js +1 -1
  122. package/dist/collection/components/list/list.js +22 -1
  123. package/dist/collection/components/list-item/list-item.js +2 -2
  124. package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
  125. package/dist/collection/components/markdown/markdown.js +1 -1
  126. package/dist/collection/components/masonry-layout/masonry-layout.js +1 -1
  127. package/dist/collection/components/menu/menu.js +1 -1
  128. package/dist/collection/components/menu-list/menu-list.js +1 -1
  129. package/dist/collection/components/menu-surface/menu-surface.js +1 -1
  130. package/dist/collection/components/notched-outline/notched-outline.js +1 -1
  131. package/dist/collection/components/pagination/pagination.js +1 -1
  132. package/dist/collection/components/picker/picker.css +112 -0
  133. package/dist/collection/components/picker/picker.js +49 -20
  134. package/dist/collection/components/popover/popover.js +3 -10
  135. package/dist/collection/components/popover-surface/popover-surface.js +1 -1
  136. package/dist/collection/components/portal/portal.js +1 -1
  137. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  138. package/dist/collection/components/radio-button-group/radio-button.js +2 -2
  139. package/dist/collection/components/resize-handle/resize-handle.js +1 -1
  140. package/dist/collection/components/scroller/scroller.js +3 -3
  141. package/dist/collection/components/select/select.js +1 -1
  142. package/dist/collection/components/shortcut/shortcut.js +1 -1
  143. package/dist/collection/components/side-panel/side-panel.js +1 -1
  144. package/dist/collection/components/slider/slider.js +3 -3
  145. package/dist/collection/components/snackbar/snackbar.js +2 -2
  146. package/dist/collection/components/spinner/spinner.js +1 -1
  147. package/dist/collection/components/split-button/split-button.js +2 -2
  148. package/dist/collection/components/switch/switch.js +1 -1
  149. package/dist/collection/components/tab-bar/tab-bar.js +1 -1
  150. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  151. package/dist/collection/components/table/table.js +2 -2
  152. package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
  153. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
  154. package/dist/collection/components/text-editor/text-editor.js +1 -1
  155. package/dist/collection/components/tooltip/tooltip-content.js +1 -1
  156. package/dist/collection/components/tooltip/tooltip.js +2 -2
  157. package/dist/collection/translations/da.js +1 -0
  158. package/dist/collection/translations/de.js +1 -0
  159. package/dist/collection/translations/en.js +1 -0
  160. package/dist/collection/translations/fi.js +1 -0
  161. package/dist/collection/translations/fr.js +1 -0
  162. package/dist/collection/translations/nl.js +1 -0
  163. package/dist/collection/translations/no.js +1 -0
  164. package/dist/collection/translations/sv.js +1 -0
  165. package/dist/collection/util/controlled-element.js +22 -0
  166. package/dist/collection/util/live-message.js +30 -0
  167. package/dist/esm/controlled-element-ByOXsysp.js +24 -0
  168. package/dist/esm/{index-BN64nlbO.js → index-CofmbCdQ.js} +271 -71
  169. package/dist/esm/keyboard-navigation-BF7IKmnG.js +147 -0
  170. package/dist/esm/{keycodes-Bu6-QXrA.js → keycodes-DQ5DmW_Y.js} +1 -1
  171. package/dist/esm/lime-elements.js +1 -1
  172. package/dist/esm/limel-3d-hover-effect-glow.entry.js +1 -1
  173. package/dist/esm/limel-action-bar_3.entry.js +4 -4
  174. package/dist/esm/limel-ai-avatar.entry.js +2 -2
  175. package/dist/esm/{limel-breadcrumbs_6.entry.js → limel-badge_7.entry.js} +100 -15
  176. package/dist/esm/limel-banner.entry.js +1 -1
  177. package/dist/esm/limel-button-group.entry.js +1 -1
  178. package/dist/esm/limel-button.entry.js +2 -2
  179. package/dist/esm/limel-callout.entry.js +2 -2
  180. package/dist/esm/limel-card.entry.js +1 -1
  181. package/dist/esm/limel-chart.entry.js +51363 -271
  182. package/dist/esm/limel-checkbox.entry.js +1 -1
  183. package/dist/esm/limel-chip-set.entry.js +24 -5
  184. package/dist/esm/limel-chip_2.entry.js +3 -3
  185. package/dist/esm/limel-circular-progress.entry.js +1 -1
  186. package/dist/esm/limel-code-diff.entry.js +2 -2
  187. package/dist/esm/limel-code-editor.entry.js +2 -2
  188. package/dist/esm/limel-collapsible-section.entry.js +2 -2
  189. package/dist/esm/limel-color-picker-palette.entry.js +2 -2
  190. package/dist/esm/limel-color-picker.entry.js +1 -1
  191. package/dist/esm/limel-dialog.entry.js +2 -2
  192. package/dist/esm/limel-dock.entry.js +3 -3
  193. package/dist/esm/limel-drag-handle_2.entry.js +4 -4
  194. package/dist/esm/limel-email-viewer.entry.js +2 -2
  195. package/dist/esm/limel-file-dropzone_2.entry.js +2 -2
  196. package/dist/esm/limel-file-viewer.entry.js +2 -2
  197. package/dist/esm/limel-file.entry.js +2 -2
  198. package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
  199. package/dist/esm/limel-flex-container.entry.js +1 -1
  200. package/dist/esm/limel-form-header.entry.js +1 -1
  201. package/dist/esm/limel-form.entry.js +1 -1
  202. package/dist/esm/limel-grid.entry.js +1 -1
  203. package/dist/esm/limel-header.entry.js +1 -1
  204. package/dist/esm/limel-help_2.entry.js +3 -3
  205. package/dist/esm/limel-helper-line_3.entry.js +6 -5
  206. package/dist/esm/limel-hotkey_4.entry.js +5 -5
  207. package/dist/esm/limel-icon-button.entry.js +1 -1
  208. package/dist/esm/limel-icon.entry.js +1 -1
  209. package/dist/esm/limel-info-tile.entry.js +2 -2
  210. package/dist/esm/limel-list-item.entry.js +3 -3
  211. package/dist/esm/limel-markdown.entry.js +4 -4
  212. package/dist/esm/limel-masonry-layout.entry.js +1 -1
  213. package/dist/esm/limel-menu-item-meta.entry.js +1 -1
  214. package/dist/esm/limel-pagination-jump.entry.js +2 -2
  215. package/dist/esm/limel-pagination.entry.js +2 -2
  216. package/dist/esm/limel-picker.entry.js +52 -25
  217. package/dist/esm/limel-popover_2.entry.js +5 -12
  218. package/dist/esm/limel-profile-picture.entry.js +1 -1
  219. package/dist/esm/limel-prosemirror-adapter.entry.js +4 -4
  220. package/dist/esm/limel-radio-button-group.entry.js +1 -1
  221. package/dist/esm/limel-radio-button.entry.js +2 -2
  222. package/dist/esm/limel-resize-handle.entry.js +3 -3
  223. package/dist/esm/limel-select.entry.js +3 -3
  224. package/dist/esm/limel-shortcut.entry.js +1 -1
  225. package/dist/esm/limel-side-panel.entry.js +3 -3
  226. package/dist/esm/limel-slider.entry.js +4 -4
  227. package/dist/esm/limel-snackbar.entry.js +3 -3
  228. package/dist/esm/limel-split-button.entry.js +2 -2
  229. package/dist/esm/limel-switch.entry.js +1 -1
  230. package/dist/esm/limel-tab-bar.entry.js +3 -146
  231. package/dist/esm/limel-tab-panel.entry.js +1 -1
  232. package/dist/esm/limel-table.entry.js +3 -3
  233. package/dist/esm/limel-text-editor-link-menu.entry.js +5 -5
  234. package/dist/esm/limel-text-editor.entry.js +1 -1
  235. package/dist/esm/live-message-BQAYeNiX.js +62 -0
  236. package/dist/esm/loader.js +1 -1
  237. package/dist/esm/{markdown-exporter-tb8ft8Gq.js → markdown-exporter-B2vFxSLw.js} +2 -2
  238. package/dist/esm/{markdown-parser-DFP65EFu.js → markdown-parser-Cw8iW5R9.js} +1 -1
  239. package/dist/esm/{translations-Drl5LNAD.js → translations-kct5Kybu.js} +8 -0
  240. package/dist/esm/{typeahead-DOlnT3wh.js → typeahead-B4PwrlM3.js} +1 -1
  241. package/dist/lime-elements/lime-elements.esm.js +1 -1
  242. package/dist/lime-elements/{p-a608ebe3.entry.js → p-0319f07f.entry.js} +1 -1
  243. package/dist/lime-elements/{p-300f80e7.entry.js → p-07f3565b.entry.js} +1 -1
  244. package/dist/lime-elements/{p-a7a84633.entry.js → p-1a7d1d2b.entry.js} +1 -1
  245. package/dist/lime-elements/{p-f8566c5b.entry.js → p-1d9bc526.entry.js} +1 -1
  246. package/dist/lime-elements/{p-e0ab0046.entry.js → p-1e0ced6a.entry.js} +1 -1
  247. package/dist/lime-elements/{p-dd383c12.entry.js → p-22e9e327.entry.js} +1 -1
  248. package/dist/lime-elements/{p-65eafc85.entry.js → p-23067836.entry.js} +1 -1
  249. package/dist/lime-elements/{p-5f2a34ed.entry.js → p-28957b5c.entry.js} +1 -1
  250. package/dist/lime-elements/{p-3ae5fb67.entry.js → p-39d1e157.entry.js} +1 -1
  251. package/dist/lime-elements/{p-d0908a85.entry.js → p-3ac39bd5.entry.js} +2 -2
  252. package/dist/lime-elements/{p-7f1a1ed5.entry.js → p-3f7fa772.entry.js} +1 -1
  253. package/dist/lime-elements/{p-b80433be.entry.js → p-40940a6c.entry.js} +1 -1
  254. package/dist/lime-elements/{p-7235d147.entry.js → p-438fe49b.entry.js} +1 -1
  255. package/dist/lime-elements/{p-0c314c3c.entry.js → p-47fe76a8.entry.js} +1 -1
  256. package/dist/lime-elements/{p-22c44279.entry.js → p-48a412ed.entry.js} +1 -1
  257. package/dist/lime-elements/{p-eb5a18ff.entry.js → p-496b2437.entry.js} +1 -1
  258. package/dist/lime-elements/{p-5d9a2877.entry.js → p-4c080cd9.entry.js} +1 -1
  259. package/dist/lime-elements/{p-be0a8125.entry.js → p-54537c85.entry.js} +1 -1
  260. package/dist/lime-elements/{p-2c29c27f.entry.js → p-55fa19ae.entry.js} +1 -1
  261. package/dist/lime-elements/{p-fad7a3fa.entry.js → p-56e2fa48.entry.js} +1 -1
  262. package/dist/lime-elements/{p-da4b4a81.entry.js → p-5dce791c.entry.js} +1 -1
  263. package/dist/lime-elements/{p-67acf39d.entry.js → p-5e408c27.entry.js} +1 -1
  264. package/dist/lime-elements/{p-b983531f.entry.js → p-6053608a.entry.js} +1 -1
  265. package/dist/lime-elements/{p-164e1ad0.entry.js → p-6ae093c8.entry.js} +1 -1
  266. package/dist/lime-elements/{p-29815107.entry.js → p-6d2d25b9.entry.js} +1 -1
  267. package/dist/lime-elements/{p-9e30d206.entry.js → p-6d9b89db.entry.js} +1 -1
  268. package/dist/lime-elements/{p-be2b8c1e.entry.js → p-6e9eeb0a.entry.js} +1 -1
  269. package/dist/lime-elements/{p-68129487.entry.js → p-764d2f86.entry.js} +1 -1
  270. package/dist/lime-elements/{p-49a53f0b.entry.js → p-7ab726c2.entry.js} +1 -1
  271. package/dist/lime-elements/{p-cced022b.entry.js → p-7b87e547.entry.js} +1 -1
  272. package/dist/lime-elements/{p-586ee40c.entry.js → p-7d0ffc60.entry.js} +1 -1
  273. package/dist/lime-elements/p-7fcd48c6.entry.js +1 -0
  274. package/dist/lime-elements/{p-7d27d572.entry.js → p-814b4934.entry.js} +1 -1
  275. package/dist/lime-elements/p-8514480b.entry.js +56 -0
  276. package/dist/lime-elements/p-8d602078.entry.js +1 -0
  277. package/dist/lime-elements/p-8fe28845.entry.js +1 -0
  278. package/dist/lime-elements/{p-f35880ef.entry.js → p-909466b8.entry.js} +1 -1
  279. package/dist/lime-elements/{p-545c087b.entry.js → p-933ffaa8.entry.js} +1 -1
  280. package/dist/lime-elements/{p-cc8d6198.entry.js → p-95a486c8.entry.js} +1 -1
  281. package/dist/lime-elements/{p-565c85ac.entry.js → p-9b2623fe.entry.js} +1 -1
  282. package/dist/lime-elements/{p-C0wwdPYT.js → p-Bd37Vplf.js} +2 -2
  283. package/dist/lime-elements/p-ByOXsysp.js +1 -0
  284. package/dist/lime-elements/{p-_UXAljNc.js → p-CbPYnlF-.js} +1 -1
  285. package/dist/lime-elements/{p-Bgn2bikC.js → p-CvHpvp0f.js} +1 -1
  286. package/dist/lime-elements/p-Cw7VQSGU.js +1 -0
  287. package/dist/lime-elements/{p-fYs7n6yY.js → p-DNYOwOWu.js} +1 -1
  288. package/dist/lime-elements/{p-Bu6-QXrA.js → p-DQ5DmW_Y.js} +1 -1
  289. package/dist/lime-elements/p-Dzp8dXTo.js +1 -0
  290. package/dist/lime-elements/p-_1yBt1pG.js +1 -0
  291. package/dist/lime-elements/{p-565e5ea7.entry.js → p-a6387dc7.entry.js} +1 -1
  292. package/dist/lime-elements/{p-40a48f70.entry.js → p-a6c6a31b.entry.js} +1 -1
  293. package/dist/lime-elements/{p-e8255f0b.entry.js → p-a7be03e1.entry.js} +1 -1
  294. package/dist/lime-elements/p-a807a45f.entry.js +159 -0
  295. package/dist/lime-elements/{p-707d4b28.entry.js → p-bffb5ed2.entry.js} +1 -1
  296. package/dist/lime-elements/{p-7035d93d.entry.js → p-c0ebf7cc.entry.js} +1 -1
  297. package/dist/lime-elements/{p-7aae3d13.entry.js → p-c2056ebc.entry.js} +1 -1
  298. package/dist/lime-elements/{p-19681a98.entry.js → p-c2f993cc.entry.js} +1 -1
  299. package/dist/lime-elements/{p-c73f4160.entry.js → p-c61e9b83.entry.js} +1 -1
  300. package/dist/lime-elements/{p-519603f5.entry.js → p-c6b3448c.entry.js} +1 -1
  301. package/dist/lime-elements/p-c8a34cef.entry.js +1 -0
  302. package/dist/lime-elements/p-cd479c23.entry.js +1 -0
  303. package/dist/lime-elements/{p-153e91e1.entry.js → p-ce71c5b9.entry.js} +1 -1
  304. package/dist/lime-elements/p-cf2d43c7.entry.js +1 -0
  305. package/dist/lime-elements/{p-2a375a65.entry.js → p-d35d2859.entry.js} +1 -1
  306. package/dist/lime-elements/{p-26347009.entry.js → p-d3f13124.entry.js} +1 -1
  307. package/dist/lime-elements/{p-a2dc6645.entry.js → p-d8559847.entry.js} +1 -1
  308. package/dist/lime-elements/{p-c8f09dd5.entry.js → p-db9cb7ef.entry.js} +1 -1
  309. package/dist/lime-elements/{p-05c1f5a0.entry.js → p-e5abe390.entry.js} +1 -1
  310. package/dist/lime-elements/p-f036ad27.entry.js +1 -0
  311. package/dist/lime-elements/{p-c1678d3a.entry.js → p-f3b93ce8.entry.js} +2 -2
  312. package/dist/lime-elements/{p-2f5face5.entry.js → p-f59447bf.entry.js} +1 -1
  313. package/dist/lime-elements/{p-a81f6962.entry.js → p-f5bb17eb.entry.js} +1 -1
  314. package/dist/types/components/chart/chart.d.ts +51 -52
  315. package/dist/types/components/chart/chart.types.d.ts +5 -0
  316. package/dist/types/components/chart/options.d.ts +88 -0
  317. package/dist/types/components/chart/scale.d.ts +101 -0
  318. package/dist/types/components/chart/theme.d.ts +52 -0
  319. package/dist/types/components/chip-set/chip-set.d.ts +15 -0
  320. package/dist/types/components/input-field/input-field.d.ts +13 -0
  321. package/dist/types/components/list/list-renderer-config.d.ts +1 -0
  322. package/dist/types/components/list/list.d.ts +6 -0
  323. package/dist/types/components/picker/picker.d.ts +12 -5
  324. package/dist/types/components/popover/popover.d.ts +0 -1
  325. package/dist/types/components.d.ts +53 -38
  326. package/dist/types/translations/da.d.ts +1 -0
  327. package/dist/types/translations/de.d.ts +1 -0
  328. package/dist/types/translations/en.d.ts +1 -0
  329. package/dist/types/translations/fi.d.ts +1 -0
  330. package/dist/types/translations/fr.d.ts +1 -0
  331. package/dist/types/translations/nl.d.ts +1 -0
  332. package/dist/types/translations/no.d.ts +1 -0
  333. package/dist/types/translations/sv.d.ts +1 -0
  334. package/dist/types/util/controlled-element.d.ts +11 -0
  335. package/dist/types/util/live-message.d.ts +17 -0
  336. package/package.json +3 -2
  337. package/dist/cjs/dom-BWMDM6En.js +0 -32
  338. package/dist/cjs/limel-badge.cjs.entry.js +0 -37
  339. package/dist/esm/dom-B9Ofc5RB.js +0 -30
  340. package/dist/esm/limel-badge.entry.js +0 -35
  341. package/dist/lime-elements/p-513d2a5e.entry.js +0 -1
  342. package/dist/lime-elements/p-55abec82.entry.js +0 -1
  343. package/dist/lime-elements/p-55f7c9f5.entry.js +0 -1
  344. package/dist/lime-elements/p-70272ea2.entry.js +0 -1
  345. package/dist/lime-elements/p-813cb15c.entry.js +0 -1
  346. package/dist/lime-elements/p-895a68c5.entry.js +0 -1
  347. package/dist/lime-elements/p-93a2d3b3.entry.js +0 -159
  348. package/dist/lime-elements/p-9bbf2612.entry.js +0 -1
  349. package/dist/lime-elements/p-B26k4gw8.js +0 -1
  350. package/dist/lime-elements/p-B9Ofc5RB.js +0 -1
  351. package/dist/lime-elements/p-ea11f365.entry.js +0 -1
  352. package/dist/lime-elements/p-fdc7da58.entry.js +0 -1
@@ -97,922 +97,94 @@
97
97
  * Media query mixins for responsive design based on screen width.
98
98
  * Note that these mixins do not detect the device type!
99
99
  */
100
- :host(limel-chart[type=bar]) .chart,
101
- :host(limel-chart[type=dot]) .chart,
102
- :host(limel-chart[type=line]) .chart,
103
- :host(limel-chart[type=area]) .chart {
104
- display: flex;
105
- background-color: var(--chart-background-color, transparent);
106
- }
107
- :host(limel-chart[type=bar]) .item,
108
- :host(limel-chart[type=dot]) .item,
109
- :host(limel-chart[type=line]) .item,
110
- :host(limel-chart[type=area]) .item {
100
+ /**
101
+ * @prop --chart-background-color: Defines the background color of the chart. Defaults to `transparent` for _most_ chart types.
102
+ * @prop --chart-item-color: If no color is defined for chart items, this color will be use. Defaults to `rgb(var(--contrast-1100), 0.8)`.
103
+ * @prop --chart-item-divider-color: Defines the color that visually separates items in some charts, such as `stacked-bar` chart items. Defaults to `rgb(var(--contrast-100), 0.6)`, which is light in light mode and dark in dark mode.
104
+ * @prop --chart-axis-line-color: Defines color of the axis lines. Defaults to `rgb(var(--contrast-900), 0.4)`.
105
+ * @prop --chart-item-border-radius: Defines the roundness of corners of items in `bar` and `stacked-bar` charts.
106
+ * @prop --chart-scatter-item-size: Defines the diameter of the dots in a `scatter` chart. Defaults to `0.5rem`.
107
+ */
108
+ :host(limel-chart) {
109
+ --limel-chart-item-color: var(
110
+ --chart-item-color,
111
+ rgb(var(--contrast-1100), 0.8)
112
+ );
113
+ --limel-chart-axis-line-color: var(
114
+ --chart-axis-line-color,
115
+ rgb(var(--contrast-900), 0.4)
116
+ );
117
+ --limel-chart-background-color: var(--chart-background-color, transparent);
118
+ --limel-chart-item-divider-color: var(
119
+ --chart-item-divider-color,
120
+ rgb(var(--contrast-100), 0.6)
121
+ );
122
+ --limel-chart-item-border-radius: var(--chart-item-border-radius, 0);
123
+ --limel-chart-scatter-item-size: var(--chart-scatter-item-size, 0.5rem);
124
+ --limel-chart-text-color: rgb(var(--contrast-1000));
125
+ --limel-chart-line-color: rgb(var(--contrast-900));
126
+ --limel-chart-surface-color: rgb(var(--contrast-100));
127
+ --limel-chart-nps-detractors-color: rgb(var(--color-coral-default));
128
+ --limel-chart-nps-passives-color: rgb(var(--color-amber-light));
129
+ --limel-chart-nps-good-color: rgb(var(--color-lime-light));
130
+ --limel-chart-nps-excellent-color: rgb(var(--color-lime-default));
131
+ box-sizing: border-box;
111
132
  position: relative;
112
- mix-blend-mode: hard-light;
113
- }
114
-
115
- :host(limel-chart[type=bar][orientation=landscape]),
116
- :host(limel-chart[type=dot][orientation=landscape]),
117
- :host(limel-chart[type=line][orientation=landscape]),
118
- :host(limel-chart[type=area][orientation=landscape]) {
119
- --limel-chart-padding: 0.5rem 0.5rem 0.5rem 2rem;
120
- }
121
- :host(limel-chart[type=bar][orientation=landscape]) .chart,
122
- :host(limel-chart[type=dot][orientation=landscape]) .chart,
123
- :host(limel-chart[type=line][orientation=landscape]) .chart,
124
- :host(limel-chart[type=area][orientation=landscape]) .chart {
125
- flex-direction: row;
126
- align-items: flex-end;
127
- overflow: auto hidden;
128
- padding: 0 0.125rem;
129
- }
130
- :host(limel-chart[type=bar][orientation=landscape]) .item,
131
- :host(limel-chart[type=dot][orientation=landscape]) .item,
132
- :host(limel-chart[type=line][orientation=landscape]) .item,
133
- :host(limel-chart[type=area][orientation=landscape]) .item {
134
- min-width: var(--limel-chart-min-item-size);
135
- width: inherit;
136
- }
137
-
138
- :host(limel-chart[type=bar][orientation=portrait]),
139
- :host(limel-chart[type=dot][orientation=portrait]),
140
- :host(limel-chart[type=line][orientation=portrait]),
141
- :host(limel-chart[type=area][orientation=portrait]) {
142
- --limel-chart-padding: 0.5rem 0.5rem 1rem 0.5rem;
143
- }
144
- :host(limel-chart[type=bar][orientation=portrait]) .chart,
145
- :host(limel-chart[type=dot][orientation=portrait]) .chart,
146
- :host(limel-chart[type=line][orientation=portrait]) .chart,
147
- :host(limel-chart[type=area][orientation=portrait]) .chart {
148
- flex-direction: column;
149
- overflow: hidden auto;
150
- padding: 0.125rem 0;
151
- }
152
- :host(limel-chart[type=bar][orientation=portrait]) .item,
153
- :host(limel-chart[type=dot][orientation=portrait]) .item,
154
- :host(limel-chart[type=line][orientation=portrait]) .item,
155
- :host(limel-chart[type=area][orientation=portrait]) .item {
156
- min-height: var(--limel-chart-min-item-size);
157
- height: inherit;
158
- }
159
-
160
- :host(limel-chart[display-axis-labels][orientation=portrait]) {
161
- --limel-chart-padding: 0.5rem 0.5rem 2rem
162
- 1.25rem;
163
- }
164
-
165
- :host(limel-chart[display-axis-labels][orientation=landscape]) {
166
- --limel-chart-padding: 0.5rem 0.5rem 1.25rem
167
- 3rem;
168
- }
169
-
170
- :host(limel-chart[display-axis-labels][type=scatter]) table thead,
171
- :host(limel-chart[display-axis-labels][type=scatter]) table th,
172
- :host(limel-chart[display-axis-labels][type=line]) table thead,
173
- :host(limel-chart[display-axis-labels][type=line]) table th,
174
- :host(limel-chart[display-axis-labels][type=dot]) table thead,
175
- :host(limel-chart[display-axis-labels][type=dot]) table th,
176
- :host(limel-chart[display-axis-labels][type=area]) table thead,
177
- :host(limel-chart[display-axis-labels][type=area]) table th,
178
- :host(limel-chart[display-axis-labels][type=bar]) table thead,
179
- :host(limel-chart[display-axis-labels][type=bar]) table th {
180
- all: unset;
181
- }
182
- :host(limel-chart[display-axis-labels][type=scatter]) table th,
183
- :host(limel-chart[display-axis-labels][type=line]) table th,
184
- :host(limel-chart[display-axis-labels][type=dot]) table th,
185
- :host(limel-chart[display-axis-labels][type=area]) table th,
186
- :host(limel-chart[display-axis-labels][type=bar]) table th {
187
- position: absolute;
188
- font-size: var(--limel-theme-default-small-font-size);
189
- max-width: 100%;
190
- max-height: 100%;
191
- overflow: hidden;
192
- white-space: nowrap;
193
- text-overflow: ellipsis;
194
- }
195
-
196
- :host(limel-chart[display-axis-labels][orientation=portrait]) table thead th:first-of-type {
197
- left: -1.25rem;
198
- writing-mode: sideways-lr;
199
- }
200
- :host(limel-chart[display-axis-labels][orientation=portrait]) table thead th:last-of-type {
201
- bottom: -2rem;
202
- left: 50%;
203
- transform: translateX(-50%);
204
- }
205
-
206
- :host(limel-chart[display-axis-labels][orientation=landscape]) table thead th:first-of-type {
207
- bottom: -1.25rem;
208
- left: 50%;
209
- transform: translateX(-50%);
210
- }
211
- :host(limel-chart[display-axis-labels][orientation=landscape]) table thead th:last-of-type {
212
- left: -3rem;
213
- writing-mode: sideways-lr;
214
- }
215
-
216
- :host(limel-chart[display-item-text][type=scatter]) td.text,
217
- :host(limel-chart[display-item-text][type=line]) td.text,
218
- :host(limel-chart[display-item-text][type=area]) td.text,
219
- :host(limel-chart[display-item-text][type=dot]) td.text,
220
- :host(limel-chart[display-item-text][type=bar]) td.text {
221
- all: unset;
222
- overflow: hidden;
223
- white-space: nowrap;
224
- text-overflow: ellipsis;
225
- position: absolute;
226
- font-size: 0.75rem;
227
- max-width: max(5rem, 100%);
228
- mix-blend-mode: difference;
229
- }
230
-
231
- :host(limel-chart[display-item-value][type=scatter]) td.value,
232
- :host(limel-chart[display-item-value][type=line]) td.value,
233
- :host(limel-chart[display-item-value][type=area]) td.value,
234
- :host(limel-chart[display-item-value][type=dot]) td.value,
235
- :host(limel-chart[display-item-value][type=bar]) td.value {
236
- all: unset;
237
- overflow: hidden;
238
- white-space: nowrap;
239
- text-overflow: ellipsis;
240
- position: absolute;
241
- font-size: 0.75rem;
242
- max-width: max(5rem, 100%);
243
- border-radius: 9rem;
244
- padding: 0 0.25rem;
245
- background-color: rgb(var(--contrast-100), 0.7);
246
- box-shadow: var(--shadow-brighten-edges-outside);
247
- }
248
- :host(limel-chart[display-item-value][type=scatter]) .item.has-value-zero td.value,
249
- :host(limel-chart[display-item-value][type=line]) .item.has-value-zero td.value,
250
- :host(limel-chart[display-item-value][type=area]) .item.has-value-zero td.value,
251
- :host(limel-chart[display-item-value][type=dot]) .item.has-value-zero td.value,
252
- :host(limel-chart[display-item-value][type=bar]) .item.has-value-zero td.value {
253
- opacity: 0;
254
- }
255
-
256
- :host(limel-chart[display-item-text][orientation=landscape]) .item.has-negative-value-only td.text,
257
- :host(limel-chart[display-item-text][orientation=landscape]) .item.has-negative-value-only td.value,
258
- :host(limel-chart[display-item-value][orientation=landscape]) .item.has-negative-value-only td.text,
259
- :host(limel-chart[display-item-value][orientation=landscape]) .item.has-negative-value-only td.value {
260
- transform: rotateX(180deg);
261
- }
262
- :host(limel-chart[display-item-text][orientation=landscape]) .item.has-value-zero td.text,
263
- :host(limel-chart[display-item-value][orientation=landscape]) .item.has-value-zero td.text {
264
- transform: translateY(-50%);
265
- }
266
-
267
- :host(limel-chart[display-item-text][orientation=portrait]) .item.has-negative-value-only td.text,
268
- :host(limel-chart[display-item-text][orientation=portrait]) .item.has-negative-value-only td.value,
269
- :host(limel-chart[display-item-value][orientation=portrait]) .item.has-negative-value-only td.text,
270
- :host(limel-chart[display-item-value][orientation=portrait]) .item.has-negative-value-only td.value {
271
- transform: rotateY(180deg);
272
- }
273
-
274
- :host(limel-chart[display-item-text][orientation=landscape][type=bar]) td.value,
275
- :host(limel-chart[display-item-value][orientation=landscape][type=bar]) td.value {
276
- top: 0;
277
- transform: translateY(-50%);
278
- }
279
- :host(limel-chart[display-item-text][orientation=landscape][type=bar]) .item.has-negative-value-only td.value,
280
- :host(limel-chart[display-item-value][orientation=landscape][type=bar]) .item.has-negative-value-only td.value {
281
- transform: rotateX(180deg) translateY(50%);
282
- }
283
-
284
- :host(limel-chart[display-item-text][orientation=portrait][type=bar]) td.value,
285
- :host(limel-chart[display-item-value][orientation=portrait][type=bar]) td.value {
286
- right: 0;
287
- transform: translateX(50%);
288
- }
289
- :host(limel-chart[display-item-text][orientation=portrait][type=bar]) .item.has-negative-value-only td.value,
290
- :host(limel-chart[display-item-value][orientation=portrait][type=bar]) .item.has-negative-value-only td.value {
291
- transform: rotateY(180deg) translateX(-50%);
292
- }
293
- :host(limel-chart[display-item-text][orientation=portrait][type=bar]) .item.has-value-zero td.text,
294
- :host(limel-chart[display-item-value][orientation=portrait][type=bar]) .item.has-value-zero td.text {
295
- transform: translateX(50%);
296
- }
297
-
298
- :host(limel-chart[display-item-text][orientation=landscape][type=dot]) td.value,
299
- :host(limel-chart[display-item-value][orientation=landscape][type=dot]) td.value {
300
- top: 1rem;
301
- }
302
- :host(limel-chart[display-item-text][orientation=landscape][type=dot]) td.text,
303
- :host(limel-chart[display-item-value][orientation=landscape][type=dot]) td.text {
304
- top: 0;
305
- }
306
- :host(limel-chart[display-item-text][orientation=landscape][type=dot]) .item.has-negative-value-only td.value,
307
- :host(limel-chart[display-item-value][orientation=landscape][type=dot]) .item.has-negative-value-only td.value {
308
- transform: rotateX(180deg);
309
- }
310
- :host(limel-chart[display-item-text][orientation=landscape][type=dot]) .item.has-value-zero td.text,
311
- :host(limel-chart[display-item-value][orientation=landscape][type=dot]) .item.has-value-zero td.text {
312
- transform: translateY(-100%);
313
- }
314
-
315
- :host(limel-chart[display-item-text][orientation=portrait][type=dot]) td.value,
316
- :host(limel-chart[display-item-value][orientation=portrait][type=dot]) td.value {
317
- right: -0.25rem;
318
- transform: translateX(100%);
319
- }
320
- :host(limel-chart[display-item-text][orientation=portrait][type=dot]) td.text,
321
- :host(limel-chart[display-item-value][orientation=portrait][type=dot]) td.text {
322
- right: 0.5rem;
323
- }
324
- :host(limel-chart[display-item-text][orientation=portrait][type=dot]) .item.has-negative-value-only td.value,
325
- :host(limel-chart[display-item-value][orientation=portrait][type=dot]) .item.has-negative-value-only td.value {
326
- transform: rotateY(180deg) translateX(-100%);
327
- }
328
-
329
- :host(limel-chart[display-item-text][type=scatter]) td.text {
330
- bottom: calc(100% + 0.25rem);
331
- left: 50%;
332
- transform: translateX(-50%);
333
- }
334
-
335
- :host(limel-chart[display-item-value][type=scatter]) td.value {
336
- top: calc(100% + 0.25rem);
337
- left: 50%;
338
- transform: translateX(-50%);
339
- }
340
-
341
- :host(limel-chart[display-item-text][orientation=landscape][type=line]) td.text,
342
- :host(limel-chart[display-item-text][orientation=landscape][type=line]) td.value,
343
- :host(limel-chart[display-item-value][orientation=landscape][type=line]) td.text,
344
- :host(limel-chart[display-item-value][orientation=landscape][type=line]) td.value,
345
- :host(limel-chart[display-item-text][orientation=landscape][type=area]) td.text,
346
- :host(limel-chart[display-item-text][orientation=landscape][type=area]) td.value,
347
- :host(limel-chart[display-item-value][orientation=landscape][type=area]) td.text,
348
- :host(limel-chart[display-item-value][orientation=landscape][type=area]) td.value {
349
- left: 0.5rem;
350
- bottom: calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%);
351
- }
352
- :host(limel-chart[display-item-text][orientation=landscape][type=line]) td.text,
353
- :host(limel-chart[display-item-value][orientation=landscape][type=line]) td.text,
354
- :host(limel-chart[display-item-text][orientation=landscape][type=area]) td.text,
355
- :host(limel-chart[display-item-value][orientation=landscape][type=area]) td.text {
356
- transform: translateY(150%);
357
- }
358
- :host(limel-chart[display-item-text][orientation=landscape][type=line]) td.value,
359
- :host(limel-chart[display-item-value][orientation=landscape][type=line]) td.value,
360
- :host(limel-chart[display-item-text][orientation=landscape][type=area]) td.value,
361
- :host(limel-chart[display-item-value][orientation=landscape][type=area]) td.value {
362
- transform: translateY(50%);
363
- }
364
- :host(limel-chart[display-item-text][orientation=landscape][type=line]) .item.has-negative-value-only td.text,
365
- :host(limel-chart[display-item-value][orientation=landscape][type=line]) .item.has-negative-value-only td.text,
366
- :host(limel-chart[display-item-text][orientation=landscape][type=area]) .item.has-negative-value-only td.text,
367
- :host(limel-chart[display-item-value][orientation=landscape][type=area]) .item.has-negative-value-only td.text {
368
- transform: translateY(50%);
369
- }
370
- :host(limel-chart[display-item-text][orientation=landscape][type=line]) .item.has-negative-value-only td.value,
371
- :host(limel-chart[display-item-value][orientation=landscape][type=line]) .item.has-negative-value-only td.value,
372
- :host(limel-chart[display-item-text][orientation=landscape][type=area]) .item.has-negative-value-only td.value,
373
- :host(limel-chart[display-item-value][orientation=landscape][type=area]) .item.has-negative-value-only td.value {
374
- transform: translateY(150%);
375
- }
376
-
377
- :host(limel-chart[display-item-text][orientation=portrait][type=line]) td.text,
378
- :host(limel-chart[display-item-text][orientation=portrait][type=line]) td.value,
379
- :host(limel-chart[display-item-value][orientation=portrait][type=line]) td.text,
380
- :host(limel-chart[display-item-value][orientation=portrait][type=line]) td.value,
381
- :host(limel-chart[display-item-text][orientation=portrait][type=area]) td.text,
382
- :host(limel-chart[display-item-text][orientation=portrait][type=area]) td.value,
383
- :host(limel-chart[display-item-value][orientation=portrait][type=area]) td.text,
384
- :host(limel-chart[display-item-value][orientation=portrait][type=area]) td.value {
385
- left: calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%);
386
- }
387
- :host(limel-chart[display-item-text][orientation=portrait][type=line]) td.text,
388
- :host(limel-chart[display-item-value][orientation=portrait][type=line]) td.text,
389
- :host(limel-chart[display-item-text][orientation=portrait][type=area]) td.text,
390
- :host(limel-chart[display-item-value][orientation=portrait][type=area]) td.text {
391
- transform: translateX(-100%);
392
- }
393
- :host(limel-chart[display-item-text][orientation=portrait][type=line]) td.value,
394
- :host(limel-chart[display-item-value][orientation=portrait][type=line]) td.value,
395
- :host(limel-chart[display-item-text][orientation=portrait][type=area]) td.value,
396
- :host(limel-chart[display-item-value][orientation=portrait][type=area]) td.value {
397
- transform: translateX(0);
398
- }
399
- :host(limel-chart[display-item-text][orientation=portrait][type=line]) .item.has-negative-value-only td.text,
400
- :host(limel-chart[display-item-value][orientation=portrait][type=line]) .item.has-negative-value-only td.text,
401
- :host(limel-chart[display-item-text][orientation=portrait][type=area]) .item.has-negative-value-only td.text,
402
- :host(limel-chart[display-item-value][orientation=portrait][type=area]) .item.has-negative-value-only td.text {
403
- transform: translateX(0);
404
- }
405
- :host(limel-chart[display-item-text][orientation=portrait][type=line]) .item.has-negative-value-only td.value,
406
- :host(limel-chart[display-item-value][orientation=portrait][type=line]) .item.has-negative-value-only td.value,
407
- :host(limel-chart[display-item-text][orientation=portrait][type=area]) .item.has-negative-value-only td.value,
408
- :host(limel-chart[display-item-value][orientation=portrait][type=area]) .item.has-negative-value-only td.value {
409
- transform: translateX(-100%);
410
- }
411
-
412
- :host(limel-chart[type=pie]) table,
413
- :host(limel-chart[type=doughnut]) table,
414
- :host(limel-chart[type=ring]) table {
415
- min-height: 2rem;
416
- min-width: 2rem;
417
- }
418
- :host(limel-chart[type=pie]) .chart,
419
- :host(limel-chart[type=pie]) .item,
420
- :host(limel-chart[type=doughnut]) .chart,
421
- :host(limel-chart[type=doughnut]) .item,
422
- :host(limel-chart[type=ring]) .chart,
423
- :host(limel-chart[type=ring]) .item {
424
- aspect-ratio: 1;
425
133
  display: flex;
426
- margin: auto;
427
- }
428
- :host(limel-chart[type=pie]) .chart,
429
- :host(limel-chart[type=doughnut]) .chart,
430
- :host(limel-chart[type=ring]) .chart {
431
- justify-content: center;
432
- align-items: center;
433
- }
434
- :host(limel-chart[type=pie]) .chart:before,
435
- :host(limel-chart[type=doughnut]) .chart:before,
436
- :host(limel-chart[type=ring]) .chart:before {
437
- aspect-ratio: 1;
438
- content: "";
439
- position: absolute;
440
- z-index: 0;
441
- inset: 0;
442
- margin: auto;
443
- border-radius: 50%;
444
- max-width: 100%;
445
- max-height: 100%;
446
- background-color: var(--chart-background-color, rgb(var(--contrast-200)));
447
- }
448
- :host(limel-chart[type=pie]) .item,
449
- :host(limel-chart[type=doughnut]) .item,
450
- :host(limel-chart[type=ring]) .item {
451
- max-width: 100%;
452
- max-height: 100%;
453
- border-radius: 50%;
454
- position: absolute;
455
- inset: 0;
456
- }
457
-
458
- :host(limel-chart[type=bar]) .chart,
459
- :host(limel-chart[type=dot]) .chart {
460
- gap: 0.5rem;
461
- }
462
- :host(limel-chart[type=bar]) .item,
463
- :host(limel-chart[type=dot]) .item {
464
- display: flex;
465
- align-items: center;
466
- justify-content: center;
467
- border-radius: var(--chart-item-border-radius, 0.125rem);
468
- }
469
-
470
- :host(limel-chart[type=bar]) .item {
471
- background: var(--limel-chart-item-color, var(--limel-chart-default-item-color));
472
- }
473
-
474
- :host(limel-chart[type=dot]) .item:before, :host(limel-chart[type=dot]) .item:after {
475
- content: "";
476
- position: absolute;
477
- margin: auto;
478
- width: var(--limel-chart-min-item-size);
479
- height: var(--limel-chart-min-item-size);
480
- border-radius: 50%;
481
- }
482
- :host(limel-chart[type=dot]) .item::after {
483
- background-color: var(--limel-chart-item-color, var(--limel-chart-default-item-color));
484
- }
485
- :host(limel-chart[type=dot]) .item.has-start-value:before {
486
- background-color: var(--limel-chart-item-color, var(--limel-chart-default-item-color));
487
- }
488
-
489
- :host(limel-chart[type=bar][orientation=landscape]) .item,
490
- :host(limel-chart[type=dot][orientation=landscape]) .item {
491
- height: calc(var(--limel-chart-item-size) * 1%);
492
- bottom: calc(var(--limel-chart-item-offset) * 1%);
493
- }
494
- :host(limel-chart[type=bar][orientation=landscape]) .item.has-negative-value-only,
495
- :host(limel-chart[type=dot][orientation=landscape]) .item.has-negative-value-only {
496
- height: calc(var(--limel-chart-item-size) * -1%);
497
- transform-origin: bottom;
498
- transform: rotateX(180deg);
499
- }
500
-
501
- :host(limel-chart[type=dot][orientation=landscape]) .item.has-start-value, :host(limel-chart[type=dot][orientation=landscape]) .item:hover, :host(limel-chart[type=dot][orientation=landscape]) .item:focus-visible {
502
- background: linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/1px 100% no-repeat;
503
- }
504
- :host(limel-chart[type=dot][orientation=landscape]) .item:before {
505
- inset: auto 0 0 0;
506
- transform: translateY(50%);
507
- }
508
- :host(limel-chart[type=dot][orientation=landscape]) .item::after {
509
- inset: 0 0 auto 0;
510
- transform: translateY(-50%);
511
- }
512
-
513
- :host(limel-chart[type=bar][orientation=portrait]) .item,
514
- :host(limel-chart[type=dot][orientation=portrait]) .item {
515
- width: calc(var(--limel-chart-item-size) * 1%);
516
- left: calc(var(--limel-chart-item-offset) * 1%);
517
- }
518
- :host(limel-chart[type=bar][orientation=portrait]) .item.has-negative-value-only,
519
- :host(limel-chart[type=dot][orientation=portrait]) .item.has-negative-value-only {
520
- width: calc(var(--limel-chart-item-size) * -1%);
521
- transform-origin: left;
522
- transform: rotateY(180deg);
523
- }
524
-
525
- :host(limel-chart[type=dot][orientation=portrait]) .item.has-start-value, :host(limel-chart[type=dot][orientation=portrait]) .item:hover, :host(limel-chart[type=dot][orientation=portrait]) .item:focus-visible {
526
- background: linear-gradient(to right, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/100% 1px no-repeat;
527
- }
528
- :host(limel-chart[type=dot][orientation=portrait]) .item:before {
529
- inset: 0 auto 0 0;
530
- transform: translateX(-50%);
531
- }
532
- :host(limel-chart[type=dot][orientation=portrait]) .item:after {
533
- inset: 0 0 0 auto;
534
- transform: translateX(50%);
535
- }
536
-
537
- :host(limel-chart[type=area]) .item,
538
- :host(limel-chart[type=line]) .item {
539
- position: relative;
540
- }
541
- :host(limel-chart[type=area]) .item:after,
542
- :host(limel-chart[type=line]) .item:after {
543
- margin: auto;
544
- width: var(--limel-chart-min-item-size);
545
- height: var(--limel-chart-min-item-size);
546
- border-radius: 50%;
547
- border: 1px solid rgb(var(--contrast-100));
548
- }
549
- :host(limel-chart[type=area]) .item:before,
550
- :host(limel-chart[type=line]) .item:before {
551
- inset: 0;
552
- }
553
- :host(limel-chart[type=area]) .item:after, :host(limel-chart[type=area]) .item:before,
554
- :host(limel-chart[type=line]) .item:after,
555
- :host(limel-chart[type=line]) .item:before {
556
- transition: border-color 0.2s ease, opacity 0.4s ease;
557
- content: "";
558
- position: absolute;
559
- background: var(--limel-chart-item-color, var(--limel-chart-default-item-color));
560
- }
561
- :host(limel-chart[type=area]) .item:hover:after, :host(limel-chart[type=area]) .item:focus-visible:after,
562
- :host(limel-chart[type=line]) .item:hover:after,
563
- :host(limel-chart[type=line]) .item:focus-visible:after {
564
- border-color: transparent;
565
- }
566
-
567
- :host(limel-chart[type=line][orientation=landscape]) .item,
568
- :host(limel-chart[type=area][orientation=landscape]) .item {
569
- height: 100%;
570
- }
571
- :host(limel-chart[type=line][orientation=landscape]) .item:after,
572
- :host(limel-chart[type=area][orientation=landscape]) .item:after {
573
- transform: translateX(-50%) translateY(50%);
574
- left: 0;
575
- bottom: calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%);
576
- }
577
- :host(limel-chart[type=line][orientation=landscape]) .item:last-of-type:before,
578
- :host(limel-chart[type=area][orientation=landscape]) .item:last-of-type:before {
579
- display: none;
580
- }
581
-
582
- :host(limel-chart[type=line][orientation=portrait]) .item,
583
- :host(limel-chart[type=area][orientation=portrait]) .item {
584
134
  width: 100%;
585
- }
586
- :host(limel-chart[type=line][orientation=portrait]) .item:after,
587
- :host(limel-chart[type=area][orientation=portrait]) .item:after {
588
- transform: translateX(-50%) translateY(-50%);
589
- left: calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%);
590
- }
591
-
592
- :host(limel-chart[type=area]) .item:after {
593
- opacity: 0;
594
- }
595
- :host(limel-chart[type=area]) .item:hover:after, :host(limel-chart[type=area]) .item:focus-visible:after {
596
- opacity: 1;
597
- }
598
- :host(limel-chart[type=area]) .item:hover:before, :host(limel-chart[type=area]) .item:focus-visible:before {
599
- opacity: 0.7;
600
- }
601
-
602
- :host(limel-chart[type=area][orientation=landscape]) {
603
- /* prettier-ignore */
604
- /* prettier-ignore */
605
- }
606
- :host(limel-chart[type=area][orientation=landscape]) .item:before {
607
- clip-path: polygon(0 calc((100 - var(--limel-chart-item-offset)) * 1%), 0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1%), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1%), 100% calc((100 - var(--limel-chart-next-item-offset)) * 1%));
608
- }
609
-
610
- :host(limel-chart[type=area][orientation=portrait]) {
611
- /* prettier-ignore */
612
- /* prettier-ignore */
613
- }
614
- :host(limel-chart[type=area][orientation=portrait]) .item:before {
615
- clip-path: polygon(calc(var(--limel-chart-item-offset) * 1%) 0, calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%) 0, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1%) 100%, calc(var(--limel-chart-next-item-offset) * 1%) 100%);
616
- }
617
-
618
- :host(limel-chart[type=line]) {
619
- --limel-chart-line-thickness: 0.125rem;
620
- }
621
- :host(limel-chart[type=line]) .item:hover:before {
622
- opacity: 0.4;
623
- }
624
-
625
- :host(limel-chart[type=line][orientation=landscape]) {
626
- /* prettier-ignore */
627
- /* prettier-ignore */
628
- /* prettier-ignore */
629
- /* prettier-ignore */
630
- }
631
- :host(limel-chart[type=line][orientation=landscape]) .item:hover {
632
- background: linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) left/1px 100% no-repeat;
633
- }
634
- :host(limel-chart[type=line][orientation=landscape]) .item:before {
635
- clip-path: polygon(0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1%), 0 calc((100 - (var(--limel-chart-item-size) + var(--limel-chart-item-offset))) * 1% + var(--limel-chart-line-thickness)), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1% + var(--limel-chart-line-thickness)), 100% calc((100 - (var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset))) * 1%));
636
- }
637
-
638
- :host(limel-chart[type=line][orientation=portrait]) {
639
- /* prettier-ignore */
640
- /* prettier-ignore */
641
- /* prettier-ignore */
642
- /* prettier-ignore */
643
- }
644
- :host(limel-chart[type=line][orientation=portrait]) .item:hover {
645
- background: linear-gradient(to right, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) top/100% 1px no-repeat;
646
- }
647
- :host(limel-chart[type=line][orientation=portrait]) .item:before {
648
- clip-path: polygon(calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1%) 0, calc((var(--limel-chart-item-size) + var(--limel-chart-item-offset)) * 1% + var(--limel-chart-line-thickness)) 0, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1% + var(--limel-chart-line-thickness)) 100%, calc((var(--limel-chart-next-item-size) + var(--limel-chart-next-item-offset)) * 1%) 100%);
649
- }
650
-
651
- :host(limel-chart[type=pie]) .item,
652
- :host(limel-chart[type=doughnut]) .item {
653
- background: conic-gradient(transparent 0 calc(var(--limel-chart-item-offset) * 1%), var(--limel-chart-item-color, var(--limel-chart-default-item-color)) calc(var(--limel-chart-item-offset) * 1%) calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%), transparent calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%));
654
- }
655
- :host(limel-chart[type=pie]) .item:focus, :host(limel-chart[type=pie]) .item:focus-visible,
656
- :host(limel-chart[type=doughnut]) .item:focus,
657
- :host(limel-chart[type=doughnut]) .item:focus-visible {
658
- outline: none;
659
- }
660
- :host(limel-chart[type=pie]) .item,
661
- :host(limel-chart[type=doughnut]) .item {
662
- pointer-events: none;
663
- }
664
-
665
- :host(limel-chart[type=doughnut]) .chart:after {
666
- aspect-ratio: 1;
667
- content: "";
668
- position: absolute;
669
- inset: 0;
670
- margin: auto;
671
- max-width: 60%;
672
- max-height: 60%;
673
- border-radius: 50%;
674
- background-color: rgb(var(--contrast-100));
135
+ height: 100%;
136
+ min-width: 0;
137
+ min-height: 0;
675
138
  }
676
139
 
677
- :host(limel-chart[type=ring]) .chart:after {
678
- content: "";
679
- position: absolute;
680
- inset: 0;
681
- aspect-ratio: 1;
682
- border-radius: 50%;
683
- max-height: calc(100% - var(--limel-chart-number-of-items) * 100% / (var(--limel-chart-number-of-items) + 1));
684
- max-width: calc(100% - var(--limel-chart-number-of-items) * 100% / (var(--limel-chart-number-of-items) + 1));
685
- background-color: var(--limel-chart-background-color, rgb(var(--contrast-200)));
686
- }
687
- :host(limel-chart[type=ring]) .chart:has(.item:hover) .item, :host(limel-chart[type=ring]) .chart:has(.item:focus-visible) .item {
688
- opacity: 1;
689
- filter: grayscale(1);
690
- }
691
- :host(limel-chart[type=ring]) .chart:after,
692
- :host(limel-chart[type=ring]) .item {
693
- margin: auto;
694
- border: 1px solid var(--limel-chart-background-color, rgb(var(--contrast-400)));
695
- }
696
- :host(limel-chart[type=ring]) .item {
697
- background: conic-gradient(var(--limel-chart-item-color, var(--limel-chart-default-item-color)) 0 calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%), var(--chart-background-color, rgb(var(--contrast-200))) calc(var(--limel-chart-item-offset) * 1% + var(--limel-chart-item-size) * 1%));
698
- max-width: calc(100% - var(--limel-chart-item-index) * 100% / (var(--limel-chart-number-of-items) + 1));
699
- max-height: calc(100% - var(--limel-chart-item-index) * 100% / (var(--limel-chart-number-of-items) + 1));
700
- }
701
- :host(limel-chart[type=ring]) .item:focus-visible, :host(limel-chart[type=ring]) .item:hover {
702
- filter: grayscale(0) !important;
140
+ :host(limel-chart[type=bar]) {
141
+ --limel-chart-item-border-radius: var(--chart-item-border-radius, 0.125rem);
703
142
  }
704
143
 
705
- :host(limel-chart[type=stacked-bar]) .chart {
706
- display: flex;
707
- border-radius: 0.25rem;
708
- overflow: hidden;
709
- background-color: var(--chart-background-color, rgb(var(--contrast-800), 0.2));
710
- }
711
- :host(limel-chart[type=stacked-bar]) .item {
712
- display: flex;
713
- border-radius: var(--chart-item-border-radius, 0);
714
- background: var(--limel-chart-item-color, var(--limel-chart-default-item-color));
715
- }
716
- :host(limel-chart[type=stacked-bar]) .item:last-of-type:not(:focus-visible) {
717
- box-shadow: none !important;
144
+ :host(limel-chart[type=stacked-bar]) {
145
+ --limel-chart-background-color: var(
146
+ --chart-background-color,
147
+ rgb(var(--contrast-800), 0.2)
148
+ );
718
149
  }
719
150
 
720
- :host(limel-chart[type=stacked-bar][orientation=landscape]) .chart {
721
- flex-direction: row;
722
- }
723
- :host(limel-chart[type=stacked-bar][orientation=landscape]) .item {
151
+ :host(limel-chart[type=stacked-bar][orientation=landscape]) {
724
152
  min-height: 0.5rem;
725
- width: calc(var(--limel-chart-item-size) * 1%);
726
- }
727
- :host(limel-chart[type=stacked-bar][orientation=landscape]) .item:not(:focus-visible) {
728
- box-shadow: -1px 0 0 0 var(--chart-item-divider-color, rgb(var(--color-white), 0.6)) inset;
729
153
  }
730
154
 
731
- :host(limel-chart[type=stacked-bar][orientation=portrait]) .chart {
732
- flex-direction: column-reverse;
733
- }
734
- :host(limel-chart[type=stacked-bar][orientation=portrait]) .item {
155
+ :host(limel-chart[type=stacked-bar][orientation=portrait]) {
735
156
  min-width: 0.5rem;
736
- height: calc(var(--limel-chart-item-size) * 1%);
737
- }
738
- :host(limel-chart[type=stacked-bar][orientation=portrait]) .item:not(:focus-visible) {
739
- box-shadow: 0 -1px 0 0 rgb(var(--color-white), 0.6) inset;
740
157
  }
741
158
 
742
- :host(limel-chart[type=nps]) {
743
- --limel-chart-nps-gauge-angel: 220deg;
744
- }
745
- :host(limel-chart[type=nps]) table {
746
- min-height: 4rem;
747
- min-width: 4rem;
748
- }
749
- :host(limel-chart[type=nps]) .chart {
750
- position: relative;
751
- display: flex;
752
- justify-content: center;
753
- align-items: center;
754
- aspect-ratio: 1;
755
- margin: auto;
756
- width: unset;
757
- height: unset;
758
- max-width: 100%;
759
- max-height: 100%;
760
- rotate: calc(var(--limel-chart-nps-gauge-angel) / 2 * -1);
761
- transform: translate(-15%, -5%);
762
- }
763
- :host(limel-chart[type=nps]) .chart:before, :host(limel-chart[type=nps]) .chart:after {
764
- content: "";
765
- aspect-ratio: 1;
766
- position: absolute;
767
- border-radius: 50%;
768
- z-index: -1;
769
- min-height: 0;
770
- min-width: 0;
771
- }
772
- :host(limel-chart[type=nps]) .chart:before {
773
- height: 100%;
774
- max-height: 100%;
775
- background: conic-gradient(rgb(var(--color-coral-default)) 0deg calc(var(--limel-chart-nps-gauge-angel) / 2), rgb(var(--color-amber-light)) calc(var(--limel-chart-nps-gauge-angel) / 2) calc(var(--limel-chart-nps-gauge-angel) * 0.65), rgb(var(--color-lime-light)) calc(var(--limel-chart-nps-gauge-angel) * 0.65) calc(var(--limel-chart-nps-gauge-angel) * 0.85), rgb(var(--color-lime-default)) calc(var(--limel-chart-nps-gauge-angel) * 0.85) var(--limel-chart-nps-gauge-angel), transparent var(--limel-chart-nps-gauge-angel));
776
- }
777
- :host(limel-chart[type=nps]) .chart:after {
778
- height: calc(100% - min(3rem, 20%) * 2);
779
- max-height: calc(100% - min(3rem, 20%) * 2);
780
- background: conic-gradient(var(--chart-background-color, rgb(var(--contrast-100))) 0deg var(--limel-chart-nps-gauge-angel), transparent var(--limel-chart-nps-gauge-angel));
781
- }
782
- :host(limel-chart[type=nps]) .item {
783
- display: flex;
784
- align-items: flex-start;
785
- justify-content: center;
786
- border-radius: 0.5rem;
787
- position: absolute;
788
- height: calc(50% - min(3rem, 20%) + 0.5rem);
789
- width: 0.5rem;
790
- transform: translateY(-50%) rotate(calc((var(--limel-chart-item-value) + 100) / 200 * var(--limel-chart-nps-gauge-angel)));
791
- transform-origin: bottom;
792
- }
793
- :host(limel-chart[type=nps]) .item:hover, :host(limel-chart[type=nps]) .item:focus-visible {
794
- background: linear-gradient(to bottom, rgb(var(--contrast-800), 0.4) 0%, rgb(var(--contrast-800), 0.4) 100%) center/1px 100% no-repeat;
795
- }
796
- :host(limel-chart[type=nps]) .item:before, :host(limel-chart[type=nps]) .item:after {
797
- content: "";
798
- position: absolute;
799
- }
800
- :host(limel-chart[type=nps]) .item:before {
801
- transform: translateY(-60%);
802
- width: 0.4rem;
803
- border-radius: 1rem;
804
- border-color: var(--limel-chart-item-color, var(--limel-chart-default-item-color));
805
- border-style: solid;
806
- border-bottom-width: 1.75rem;
807
- border-right-color: transparent;
808
- border-left-color: transparent;
809
- border-top-color: transparent;
810
- }
811
- :host(limel-chart[type=nps]) .item:after {
812
- border-radius: 50%;
813
- background-color: var(--limel-chart-item-color, var(--limel-chart-default-item-color));
814
- aspect-ratio: 1;
815
- height: clamp(0.75rem, 10%, 1.25rem);
816
- border: 0.125rem solid rgb(var(--contrast-100), 0.8);
817
- box-shadow: var(--shadow-depth-8);
818
- }
819
-
820
- :host(limel-chart[type=scatter]) {
821
- --limel-chart-padding: 0.5rem 0.5rem 1rem 2rem;
822
- }
823
- :host(limel-chart[type=scatter]) .chart {
824
- display: block;
825
- background-color: var(--chart-background-color, transparent);
826
- }
827
- :host(limel-chart[type=scatter]) .item {
828
- position: absolute;
829
- transform-origin: center;
830
- width: var(--chart-scatter-item-size, 0.5rem);
831
- height: var(--chart-scatter-item-size, 0.5rem);
832
- border-radius: 50%;
833
- background-color: var(--limel-chart-item-color, var(--limel-chart-default-item-color));
834
- mix-blend-mode: hard-light;
835
- }
836
-
837
- :host(limel-chart[type=scatter][orientation=landscape]) .item {
838
- left: calc(var(--limel-chart-item-offset-x) * 1%);
839
- bottom: calc(var(--limel-chart-item-offset-y) * 1%);
840
- transform: translate(-50%, 50%);
841
- }
842
-
843
- :host(limel-chart[type=scatter][orientation=portrait]) .item {
844
- left: calc(var(--limel-chart-item-offset-y) * 1%);
845
- top: calc(var(--limel-chart-item-offset-x) * 1%);
846
- transform: translate(-50%, -50%);
847
- }
848
-
849
- :host(limel-chart[type=scatter][display-axis-labels][orientation=landscape]),
850
- :host(limel-chart[type=scatter][display-axis-labels][orientation=portrait]) {
851
- --limel-chart-padding: 0.5rem 0.5rem 2rem 3rem;
852
- }
853
-
854
- :host(limel-chart[type=scatter][display-axis-labels][orientation=landscape]) table thead th:first-of-type {
855
- bottom: -2rem;
856
- left: 50%;
857
- transform: translateX(-50%);
858
- }
859
- :host(limel-chart[type=scatter][display-axis-labels][orientation=landscape]) table thead th:last-of-type {
860
- left: -3rem;
861
- writing-mode: sideways-lr;
159
+ :host(limel-chart[type=pie]),
160
+ :host(limel-chart[type=doughnut]),
161
+ :host(limel-chart[type=ring]) {
162
+ --limel-chart-background-color: var(
163
+ --chart-background-color,
164
+ rgb(var(--contrast-200))
165
+ );
862
166
  }
863
167
 
864
- :host(limel-chart[type=scatter][display-axis-labels][orientation=portrait]) table thead th:first-of-type {
865
- left: -3rem;
866
- writing-mode: sideways-lr;
867
- }
868
- :host(limel-chart[type=scatter][display-axis-labels][orientation=portrait]) table thead th:last-of-type {
869
- bottom: -2rem;
870
- left: 50%;
871
- transform: translateX(-50%);
168
+ :host(limel-chart[type=nps]) {
169
+ --limel-chart-background-color: var(
170
+ --chart-background-color,
171
+ rgb(var(--contrast-100))
172
+ );
872
173
  }
873
174
 
874
- .axises {
875
- position: absolute;
876
- display: flex;
877
- justify-content: space-between;
878
- min-height: 100%;
879
- min-width: 100%;
880
- height: 100%;
881
- width: 100%;
175
+ :host(limel-chart[type=pie]),
176
+ :host(limel-chart[type=doughnut]),
177
+ :host(limel-chart[type=ring]),
178
+ :host(limel-chart[type=nps]) {
179
+ aspect-ratio: 1;
882
180
  }
883
181
 
884
- .axis-line {
885
- transition: opacity 0.4s ease;
886
- position: relative;
887
- opacity: 0.2;
888
- font-size: 0.625rem;
889
- border-color: var(--limel-chart-axis-line-color);
890
- }
891
- .axis-line:hover {
892
- opacity: 0.6;
893
- transition-duration: 0.2s;
894
- }
895
- .axis-line.zero-line {
896
- opacity: 0.6;
897
- z-index: 1;
898
- }
899
- .axis-line limel-badge {
900
- --badge-background-color: transparent;
901
- --badge-text-color: currentColor;
182
+ .plot {
902
183
  position: absolute;
903
- text-align: right;
904
- min-width: 2rem;
905
- }
906
-
907
- :host(limel-chart[orientation=landscape]:not([type=scatter])) .axises {
908
- flex-direction: column-reverse;
909
- }
910
- :host(limel-chart[orientation=landscape]:not([type=scatter])) .axis-line {
911
- border-bottom: 1px solid;
912
- transform: translateY(50%);
913
- }
914
- :host(limel-chart[orientation=landscape]:not([type=scatter])) .axis-line limel-badge {
915
- bottom: 0;
916
- left: -2rem;
917
- transform: translateY(50%);
918
- }
919
-
920
- :host(limel-chart[orientation=portrait]:not([type=scatter])) .axises {
921
- flex-direction: row;
922
- }
923
- :host(limel-chart[orientation=portrait]:not([type=scatter])) .axis-line {
924
- border-left: 1px solid;
925
- transform: translateX(-50%);
926
- }
927
- :host(limel-chart[orientation=portrait]:not([type=scatter])) .axis-line limel-badge {
928
- bottom: -1rem;
929
- right: -1rem;
930
- }
931
-
932
- .axises.horizontal-lines .axis-line {
933
- border-bottom: 1px solid;
934
- transform: translateY(50%);
935
- }
936
- .axises.horizontal-lines .axis-line limel-badge {
937
- bottom: 0;
938
- left: -2rem;
939
- transform: translateY(50%);
940
- }
941
-
942
- :host(limel-chart[orientation=landscape]) .axises.horizontal-lines {
943
- flex-direction: column-reverse;
944
- }
945
-
946
- :host(limel-chart[orientation=portrait]) .axises.horizontal-lines {
947
- flex-direction: column;
948
- }
949
-
950
- .axises.vertical-lines {
951
- flex-direction: row;
952
- }
953
- .axises.vertical-lines .axis-line {
954
- border-left: 1px solid;
955
- transform: translateX(-50%);
956
- }
957
- .axises.vertical-lines .axis-line limel-badge {
958
- bottom: -1rem;
959
- right: -1rem;
960
- }
961
-
962
- /**
963
- * @prop --chart-background-color: Defines the background color of the chart. Defaults to `transparent` for _most_ chart types.
964
- * @prop --chart-item-color: If no color is defined for chart items, this color will be use. Defaults to `rgb(var(--contrast-1100), 0.8)`.
965
- * @prop --chart-item-divider-color: Defines the color that visually separates items in some charts, such as `stacked-bar` chart items. Defaults to `rgb(var(--color-white), 0.6)`.
966
- * @prop --chart-axis-line-color: Defines color of the axis lines. Defaults to `--contrast-900`. Note that lines have opacity as well, and get opaque on hover.
967
- * @prop --chart-item-border-radius: Defines the roundness of corners of items in a chart. Defaults to different values depending on the chart type. Does not have any effect on `pie` and `doughnut` types.
968
- * @prop --chart-scatter-item-size: Defines the diameter of the dots in a `scatter` chart. Defaults to `0.5rem`.
969
- */
970
- :host(limel-chart) {
971
- --limel-chart-min-item-size: 0.5rem;
972
- --limel-chart-default-item-color: var(
973
- --chart-item-color,
974
- rgb(var(--contrast-1100), 0.8)
975
- );
976
- --chart-axis-line-color: var(
977
- --limel-chart-axis-line-color,
978
- rgb(var(--contrast-900))
979
- );
980
- box-sizing: border-box;
981
- isolation: isolate;
982
- display: flex;
983
- width: 100%;
984
- height: 100%;
985
- min-width: 0;
986
- min-height: 0;
987
- padding: var(--limel-chart-padding);
184
+ inset: 0;
988
185
  }
989
186
 
990
187
  table {
991
- all: unset;
992
- border-collapse: collapse;
993
- border-spacing: 0;
994
- empty-cells: show;
995
- position: relative;
996
- display: flex;
997
- width: 100%;
998
- height: 100%;
999
- min-width: 0;
1000
- min-height: 0;
1001
- }
1002
- table colgroup,
1003
- table thead,
1004
- table tbody,
1005
- table tr,
1006
- table th,
1007
- table td {
1008
- all: unset;
1009
- }
1010
- table caption,
1011
- table colgroup,
1012
- table thead,
1013
- table tfoot,
1014
- table th,
1015
- table td {
1016
188
  position: absolute;
1017
189
  width: 0;
1018
190
  height: 0;
@@ -1025,42 +197,6 @@ table td {
1025
197
  white-space: nowrap;
1026
198
  }
1027
199
 
1028
- *,
1029
- *:before,
1030
- *:after {
1031
- box-sizing: border-box;
1032
- }
1033
-
1034
- .chart {
1035
- position: relative;
1036
- flex-grow: 1;
1037
- width: 100%;
1038
- height: 100%;
1039
- min-height: 0;
1040
- min-width: 0;
1041
- }
1042
- .chart:has(.item:hover) .item, .chart:has(.item:focus-visible) .item {
1043
- opacity: 0.4;
1044
- }
1045
-
1046
- .item:focus {
1047
- outline: none;
1048
- }
1049
- .item:focus-visible {
1050
- outline: none;
1051
- box-shadow: var(--shadow-depth-8-focused);
1052
- }
1053
- .item {
1054
- transition: background-color 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.4s ease;
1055
- cursor: help;
1056
- }
1057
- .item:focus-visible, .item:hover {
1058
- opacity: 1 !important;
1059
- }
1060
- .item[role=button] {
1061
- cursor: pointer;
1062
- }
1063
-
1064
200
  limel-spinner {
1065
201
  margin: auto;
1066
202
  }