@limetech/lime-elements 40.2.4 → 40.3.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 (375) hide show
  1. package/CHANGELOG.md +21 -0
  2. package/dist/cjs/{checkbox.template-BewtdTin.js → checkbox.template-BPk8WkQF.js} +1 -1
  3. package/dist/cjs/{image.template-DZC6_5a4.js → image.template-DY7qwbuy.js} +1 -1
  4. package/dist/cjs/{index-DYg_7kkT.js → index--B6-r0uo.js} +3 -3
  5. package/dist/cjs/language-CaqPKPyW.js +28 -0
  6. package/dist/cjs/lime-elements.cjs.js +2 -2
  7. package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +2 -2
  8. package/dist/cjs/limel-action-bar_3.cjs.entry.js +9 -8
  9. package/dist/cjs/limel-ai-avatar.cjs.entry.js +4 -3
  10. package/dist/cjs/limel-badge.cjs.entry.js +3 -3
  11. package/dist/cjs/limel-banner.cjs.entry.js +2 -2
  12. package/dist/cjs/limel-breadcrumbs_8.cjs.entry.js +21 -21
  13. package/dist/cjs/limel-button-group.cjs.entry.js +3 -3
  14. package/dist/cjs/limel-button.cjs.entry.js +3 -3
  15. package/dist/cjs/limel-callout.cjs.entry.js +4 -3
  16. package/dist/cjs/limel-card.cjs.entry.js +4 -4
  17. package/dist/cjs/limel-chart.cjs.entry.js +4 -3
  18. package/dist/cjs/limel-checkbox.cjs.entry.js +4 -4
  19. package/dist/cjs/limel-chip-set.cjs.entry.js +10 -9
  20. package/dist/cjs/limel-chip_2.cjs.entry.js +8 -7
  21. package/dist/cjs/limel-circular-progress.cjs.entry.js +2 -2
  22. package/dist/cjs/limel-code-diff.cjs.entry.js +5 -4
  23. package/dist/cjs/limel-code-editor.cjs.entry.js +5 -4
  24. package/dist/cjs/limel-collapsible-section.cjs.entry.js +7 -6
  25. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +4 -4
  26. package/dist/cjs/limel-color-picker.cjs.entry.js +3 -3
  27. package/dist/cjs/limel-config.cjs.entry.js +1 -1
  28. package/dist/cjs/limel-date-picker.cjs.entry.js +6 -4
  29. package/dist/cjs/limel-dialog.cjs.entry.js +5 -5
  30. package/dist/cjs/limel-dock-button.cjs.entry.js +4 -4
  31. package/dist/cjs/limel-dock.cjs.entry.js +7 -7
  32. package/dist/cjs/limel-drag-handle.cjs.entry.js +4 -3
  33. package/dist/cjs/limel-dynamic-label.cjs.entry.js +1 -1
  34. package/dist/cjs/limel-email-viewer.cjs.entry.js +5 -4
  35. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +6 -6
  36. package/dist/cjs/limel-file-viewer.cjs.entry.js +5 -4
  37. package/dist/cjs/limel-file.cjs.entry.js +6 -5
  38. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +12 -9
  39. package/dist/cjs/limel-flex-container.cjs.entry.js +2 -2
  40. package/dist/cjs/limel-form.cjs.entry.js +4 -4
  41. package/dist/cjs/limel-grid.cjs.entry.js +2 -2
  42. package/dist/cjs/limel-header.cjs.entry.js +2 -2
  43. package/dist/cjs/limel-help-content.cjs.entry.js +2 -2
  44. package/dist/cjs/limel-help.cjs.entry.js +3 -3
  45. package/dist/cjs/limel-helper-line.cjs.entry.js +3 -3
  46. package/dist/cjs/limel-hotkey_4.cjs.entry.js +6 -6
  47. package/dist/cjs/limel-icon-button.cjs.entry.js +2 -2
  48. package/dist/cjs/limel-icon.cjs.entry.js +2 -2
  49. package/dist/cjs/limel-info-tile.cjs.entry.js +3 -3
  50. package/dist/cjs/limel-list-item.cjs.entry.js +8 -7
  51. package/dist/cjs/limel-markdown.cjs.entry.js +2 -2
  52. package/dist/cjs/limel-masonry-layout.cjs.entry.js +2 -2
  53. package/dist/cjs/limel-menu-item-meta.cjs.entry.js +2 -2
  54. package/dist/cjs/limel-pagination.cjs.entry.js +619 -0
  55. package/dist/cjs/limel-picker.cjs.entry.js +7 -6
  56. package/dist/cjs/limel-popover_2.cjs.entry.js +4 -4
  57. package/dist/cjs/limel-profile-picture.cjs.entry.js +6 -5
  58. package/dist/cjs/limel-progress-flow-item.cjs.entry.js +2 -2
  59. package/dist/cjs/limel-progress-flow.cjs.entry.js +2 -2
  60. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +10 -9
  61. package/dist/cjs/limel-radio-button-group.cjs.entry.js +3 -3
  62. package/dist/cjs/limel-radio-button.cjs.entry.js +3 -3
  63. package/dist/cjs/limel-select.cjs.entry.js +4 -4
  64. package/dist/cjs/limel-shortcut.cjs.entry.js +2 -2
  65. package/dist/cjs/limel-slider.cjs.entry.js +7 -6
  66. package/dist/cjs/limel-snackbar.cjs.entry.js +7 -6
  67. package/dist/cjs/limel-split-button.cjs.entry.js +4 -4
  68. package/dist/cjs/limel-switch.cjs.entry.js +3 -3
  69. package/dist/cjs/limel-tab-bar.cjs.entry.js +4 -4
  70. package/dist/cjs/limel-tab-panel.cjs.entry.js +3 -3
  71. package/dist/cjs/limel-table.cjs.entry.js +13 -12
  72. package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +9 -8
  73. package/dist/cjs/limel-text-editor.cjs.entry.js +9 -9
  74. package/dist/cjs/loader.cjs.js +2 -2
  75. package/dist/cjs/{render-list-component-1GrRKk_R.js → render-list-component-5ZKWpCnM.js} +1 -1
  76. package/dist/cjs/{translations-Do_D3pxu.js → translations-C5T2-_rH.js} +91 -7
  77. package/dist/collection/collection-manifest.json +1 -0
  78. package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
  79. package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
  80. package/dist/collection/components/action-bar/action-bar.js +2 -2
  81. package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
  82. package/dist/collection/components/badge/badge.js +2 -2
  83. package/dist/collection/components/banner/banner.js +1 -1
  84. package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
  85. package/dist/collection/components/button/button.js +2 -2
  86. package/dist/collection/components/button-group/button-group.js +1 -1
  87. package/dist/collection/components/callout/callout.js +1 -1
  88. package/dist/collection/components/card/card.js +1 -1
  89. package/dist/collection/components/checkbox/checkbox.js +1 -1
  90. package/dist/collection/components/chip/chip.js +2 -2
  91. package/dist/collection/components/chip-set/chip-set.js +2 -2
  92. package/dist/collection/components/circular-progress/circular-progress.js +1 -1
  93. package/dist/collection/components/code-diff/code-diff.js +2 -2
  94. package/dist/collection/components/code-editor/code-editor.js +1 -1
  95. package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
  96. package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
  97. package/dist/collection/components/color-picker/color-picker.js +1 -1
  98. package/dist/collection/components/date-picker/date-formatter.js +4 -2
  99. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +2 -2
  100. package/dist/collection/components/date-picker/pickers/picker.js +7 -4
  101. package/dist/collection/components/dialog/dialog.js +2 -2
  102. package/dist/collection/components/dock/dock.js +2 -2
  103. package/dist/collection/components/drag-handle/drag-handle.js +1 -1
  104. package/dist/collection/components/email-viewer/email-viewer.js +1 -1
  105. package/dist/collection/components/file/file.js +1 -1
  106. package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
  107. package/dist/collection/components/file-input/file-input.js +1 -1
  108. package/dist/collection/components/flex-container/flex-container.js +1 -1
  109. package/dist/collection/components/form/form.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.js +1 -1
  120. package/dist/collection/components/list/list.js +1 -1
  121. package/dist/collection/components/list-item/list-item.js +2 -2
  122. package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
  123. package/dist/collection/components/markdown/markdown.js +1 -1
  124. package/dist/collection/components/masonry-layout/masonry-layout.js +1 -1
  125. package/dist/collection/components/menu/menu.js +1 -1
  126. package/dist/collection/components/menu-list/menu-list.js +1 -1
  127. package/dist/collection/components/menu-surface/menu-surface.js +1 -1
  128. package/dist/collection/components/notched-outline/notched-outline.js +1 -1
  129. package/dist/collection/components/pagination/pagination.css +227 -0
  130. package/dist/collection/components/pagination/pagination.js +668 -0
  131. package/dist/collection/components/pagination/pagination.types.js +1 -0
  132. package/dist/collection/components/pagination/pagination.util.js +113 -0
  133. package/dist/collection/components/picker/picker.js +1 -1
  134. package/dist/collection/components/popover/popover.js +1 -1
  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/select/select.js +1 -1
  140. package/dist/collection/components/shortcut/shortcut.js +1 -1
  141. package/dist/collection/components/slider/slider.js +3 -3
  142. package/dist/collection/components/snackbar/snackbar.js +2 -2
  143. package/dist/collection/components/spinner/spinner.js +1 -1
  144. package/dist/collection/components/split-button/split-button.js +2 -2
  145. package/dist/collection/components/switch/switch.js +1 -1
  146. package/dist/collection/components/tab-bar/tab-bar.js +2 -2
  147. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  148. package/dist/collection/components/table/table.js +2 -2
  149. package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
  150. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +3 -3
  151. package/dist/collection/components/text-editor/text-editor.js +1 -1
  152. package/dist/collection/components/tooltip/tooltip-content.js +1 -1
  153. package/dist/collection/components/tooltip/tooltip.js +2 -2
  154. package/dist/collection/global/translations.js +10 -7
  155. package/dist/collection/interface.js +1 -0
  156. package/dist/collection/translations/da.js +10 -0
  157. package/dist/collection/translations/de.js +10 -0
  158. package/dist/collection/translations/en.js +10 -0
  159. package/dist/collection/translations/fi.js +10 -0
  160. package/dist/collection/translations/fr.js +10 -0
  161. package/dist/collection/translations/nl.js +10 -0
  162. package/dist/collection/translations/no.js +10 -0
  163. package/dist/collection/translations/sv.js +10 -0
  164. package/dist/collection/util/language.js +24 -0
  165. package/dist/esm/{checkbox.template-LN1xNaDw.js → checkbox.template-Cx_3u92S.js} +1 -1
  166. package/dist/esm/{image.template-BXDvrqGw.js → image.template-wqMwmOF-.js} +1 -1
  167. package/dist/esm/{index-BGxJfR2f.js → index-Bnc9lzk2.js} +3 -3
  168. package/dist/esm/language-C3hECvXE.js +26 -0
  169. package/dist/esm/lime-elements.js +3 -3
  170. package/dist/esm/limel-3d-hover-effect-glow.entry.js +2 -2
  171. package/dist/esm/limel-action-bar_3.entry.js +9 -8
  172. package/dist/esm/limel-ai-avatar.entry.js +4 -3
  173. package/dist/esm/limel-badge.entry.js +3 -3
  174. package/dist/esm/limel-banner.entry.js +2 -2
  175. package/dist/esm/limel-breadcrumbs_8.entry.js +21 -21
  176. package/dist/esm/limel-button-group.entry.js +3 -3
  177. package/dist/esm/limel-button.entry.js +3 -3
  178. package/dist/esm/limel-callout.entry.js +4 -3
  179. package/dist/esm/limel-card.entry.js +4 -4
  180. package/dist/esm/limel-chart.entry.js +4 -3
  181. package/dist/esm/limel-checkbox.entry.js +4 -4
  182. package/dist/esm/limel-chip-set.entry.js +10 -9
  183. package/dist/esm/limel-chip_2.entry.js +8 -7
  184. package/dist/esm/limel-circular-progress.entry.js +2 -2
  185. package/dist/esm/limel-code-diff.entry.js +5 -4
  186. package/dist/esm/limel-code-editor.entry.js +5 -4
  187. package/dist/esm/limel-collapsible-section.entry.js +7 -6
  188. package/dist/esm/limel-color-picker-palette.entry.js +4 -4
  189. package/dist/esm/limel-color-picker.entry.js +3 -3
  190. package/dist/esm/limel-config.entry.js +1 -1
  191. package/dist/esm/limel-date-picker.entry.js +6 -4
  192. package/dist/esm/limel-dialog.entry.js +5 -5
  193. package/dist/esm/limel-dock-button.entry.js +4 -4
  194. package/dist/esm/limel-dock.entry.js +7 -7
  195. package/dist/esm/limel-drag-handle.entry.js +4 -3
  196. package/dist/esm/limel-dynamic-label.entry.js +1 -1
  197. package/dist/esm/limel-email-viewer.entry.js +5 -4
  198. package/dist/esm/limel-file-dropzone_2.entry.js +6 -6
  199. package/dist/esm/limel-file-viewer.entry.js +5 -4
  200. package/dist/esm/limel-file.entry.js +6 -5
  201. package/dist/esm/limel-flatpickr-adapter.entry.js +12 -9
  202. package/dist/esm/limel-flex-container.entry.js +2 -2
  203. package/dist/esm/limel-form.entry.js +4 -4
  204. package/dist/esm/limel-grid.entry.js +2 -2
  205. package/dist/esm/limel-header.entry.js +2 -2
  206. package/dist/esm/limel-help-content.entry.js +2 -2
  207. package/dist/esm/limel-help.entry.js +3 -3
  208. package/dist/esm/limel-helper-line.entry.js +3 -3
  209. package/dist/esm/limel-hotkey_4.entry.js +6 -6
  210. package/dist/esm/limel-icon-button.entry.js +2 -2
  211. package/dist/esm/limel-icon.entry.js +2 -2
  212. package/dist/esm/limel-info-tile.entry.js +3 -3
  213. package/dist/esm/limel-list-item.entry.js +8 -7
  214. package/dist/esm/limel-markdown.entry.js +2 -2
  215. package/dist/esm/limel-masonry-layout.entry.js +2 -2
  216. package/dist/esm/limel-menu-item-meta.entry.js +2 -2
  217. package/dist/esm/limel-pagination.entry.js +617 -0
  218. package/dist/esm/limel-picker.entry.js +7 -6
  219. package/dist/esm/limel-popover_2.entry.js +4 -4
  220. package/dist/esm/limel-profile-picture.entry.js +6 -5
  221. package/dist/esm/limel-progress-flow-item.entry.js +2 -2
  222. package/dist/esm/limel-progress-flow.entry.js +2 -2
  223. package/dist/esm/limel-prosemirror-adapter.entry.js +10 -9
  224. package/dist/esm/limel-radio-button-group.entry.js +3 -3
  225. package/dist/esm/limel-radio-button.entry.js +3 -3
  226. package/dist/esm/limel-select.entry.js +4 -4
  227. package/dist/esm/limel-shortcut.entry.js +2 -2
  228. package/dist/esm/limel-slider.entry.js +7 -6
  229. package/dist/esm/limel-snackbar.entry.js +7 -6
  230. package/dist/esm/limel-split-button.entry.js +4 -4
  231. package/dist/esm/limel-switch.entry.js +3 -3
  232. package/dist/esm/limel-tab-bar.entry.js +4 -4
  233. package/dist/esm/limel-tab-panel.entry.js +3 -3
  234. package/dist/esm/limel-table.entry.js +13 -12
  235. package/dist/esm/limel-text-editor-link-menu.entry.js +9 -8
  236. package/dist/esm/limel-text-editor.entry.js +9 -9
  237. package/dist/esm/loader.js +3 -3
  238. package/dist/esm/{render-list-component-CUJ2wdo4.js → render-list-component-cicbMp0l.js} +1 -1
  239. package/dist/esm/{translations-DgqE77nk.js → translations-Bwm2y2E4.js} +91 -7
  240. package/dist/lime-elements/lime-elements.esm.js +1 -1
  241. package/dist/lime-elements/{p-c0263530.entry.js → p-02812dc8.entry.js} +2 -2
  242. package/dist/lime-elements/{p-fe531211.entry.js → p-03fb2603.entry.js} +1 -1
  243. package/dist/lime-elements/{p-86b9f9d0.entry.js → p-052c3bc6.entry.js} +1 -1
  244. package/dist/lime-elements/{p-1b25f158.entry.js → p-0981ddef.entry.js} +2 -2
  245. package/dist/lime-elements/p-1162dd39.entry.js +1 -0
  246. package/dist/lime-elements/{p-12fe8fe1.entry.js → p-1a478498.entry.js} +3 -3
  247. package/dist/lime-elements/p-21109d9b.entry.js +1 -0
  248. package/dist/lime-elements/p-22f85b99.entry.js +1 -0
  249. package/dist/lime-elements/p-24041bbb.entry.js +1 -0
  250. package/dist/lime-elements/p-2bbdac10.entry.js +1 -0
  251. package/dist/lime-elements/p-2d84ea04.entry.js +1 -0
  252. package/dist/lime-elements/{p-a1c15727.entry.js → p-35fa1063.entry.js} +1 -1
  253. package/dist/lime-elements/p-38b09f87.entry.js +1 -0
  254. package/dist/lime-elements/p-3916b316.entry.js +1 -0
  255. package/dist/lime-elements/p-3fd7e8aa.entry.js +1 -0
  256. package/dist/lime-elements/{p-de070191.entry.js → p-408c4dcb.entry.js} +1 -1
  257. package/dist/lime-elements/p-459eea13.entry.js +1 -0
  258. package/dist/lime-elements/p-48928b4f.entry.js +1 -0
  259. package/dist/lime-elements/p-4c65dee7.entry.js +1 -0
  260. package/dist/lime-elements/p-4ffbfc79.entry.js +1 -0
  261. package/dist/lime-elements/p-51dc5f0b.entry.js +1 -0
  262. package/dist/lime-elements/p-532ea234.entry.js +1 -0
  263. package/dist/lime-elements/p-54793c06.entry.js +1 -0
  264. package/dist/lime-elements/{p-be5cc2ae.entry.js → p-54dcf46f.entry.js} +1 -1
  265. package/dist/lime-elements/{p-eeb7fcb3.entry.js → p-5b371d6b.entry.js} +2 -2
  266. package/dist/lime-elements/p-65cded0e.entry.js +1 -0
  267. package/dist/lime-elements/p-66b125f2.entry.js +1 -0
  268. package/dist/lime-elements/{p-33ccc617.entry.js → p-6b7ff8e0.entry.js} +1 -1
  269. package/dist/lime-elements/{p-a579e80f.entry.js → p-6d5b23ad.entry.js} +1 -1
  270. package/dist/lime-elements/{p-1907a5be.entry.js → p-74bd0c1a.entry.js} +1 -1
  271. package/dist/lime-elements/{p-f2c8b10b.entry.js → p-7cbf50fc.entry.js} +1 -1
  272. package/dist/lime-elements/p-7e212fa7.entry.js +1 -0
  273. package/dist/lime-elements/{p-bb9b399c.entry.js → p-8115da75.entry.js} +1 -1
  274. package/dist/lime-elements/{p-d19ab443.entry.js → p-82696d24.entry.js} +1 -1
  275. package/dist/lime-elements/{p-21558be2.entry.js → p-835149c4.entry.js} +1 -1
  276. package/dist/lime-elements/{p-f09822a6.entry.js → p-8475a3b8.entry.js} +1 -1
  277. package/dist/lime-elements/p-8af3e4a1.entry.js +16 -0
  278. package/dist/lime-elements/{p-25555311.entry.js → p-8fa9c9ea.entry.js} +1 -1
  279. package/dist/lime-elements/{p-c0a03b7c.entry.js → p-9ac39039.entry.js} +1 -1
  280. package/dist/lime-elements/{p-CYivp4-w.js → p-BY85K-4J.js} +1 -1
  281. package/dist/lime-elements/p-Bnc9lzk2.js +2 -0
  282. package/dist/lime-elements/p-C3hECvXE.js +1 -0
  283. package/dist/lime-elements/p-DAFuhe5e.js +1 -0
  284. package/dist/lime-elements/p-DQJU9gzh.js +1 -0
  285. package/dist/lime-elements/p-DpJgXIWf.js +1 -0
  286. package/dist/lime-elements/p-a41b5ff3.entry.js +1 -0
  287. package/dist/lime-elements/p-a462aeb7.entry.js +1 -0
  288. package/dist/lime-elements/p-ac9c5c88.entry.js +1 -0
  289. package/dist/lime-elements/p-b194a212.entry.js +1 -0
  290. package/dist/lime-elements/p-b4988a9b.entry.js +1 -0
  291. package/dist/lime-elements/p-b5484494.entry.js +1 -0
  292. package/dist/lime-elements/p-b81a2728.entry.js +1 -0
  293. package/dist/lime-elements/p-be8610ff.entry.js +1 -0
  294. package/dist/lime-elements/{p-70087de6.entry.js → p-c2a3ca7c.entry.js} +1 -1
  295. package/dist/lime-elements/{p-6665e14b.entry.js → p-c2a60508.entry.js} +1 -1
  296. package/dist/lime-elements/p-c2ff132c.entry.js +1 -0
  297. package/dist/lime-elements/p-c72e5007.entry.js +1 -0
  298. package/dist/lime-elements/p-c823054d.entry.js +1 -0
  299. package/dist/lime-elements/p-cb407bef.entry.js +1 -0
  300. package/dist/lime-elements/{p-7fe6a073.entry.js → p-d0cec424.entry.js} +1 -1
  301. package/dist/lime-elements/{p-120182f5.entry.js → p-d351b9ae.entry.js} +1 -1
  302. package/dist/lime-elements/{p-6acd82ce.entry.js → p-d6dadc61.entry.js} +1 -1
  303. package/dist/lime-elements/p-dadd2e17.entry.js +1 -0
  304. package/dist/lime-elements/p-de631fc3.entry.js +1 -0
  305. package/dist/lime-elements/p-e2c2a363.entry.js +23 -0
  306. package/dist/lime-elements/p-e508771f.entry.js +1 -0
  307. package/dist/lime-elements/p-f0a79cdd.entry.js +1 -0
  308. package/dist/lime-elements/p-f309ceb8.entry.js +1 -0
  309. package/dist/lime-elements/p-f333f12d.entry.js +1 -0
  310. package/dist/lime-elements/p-f6361b03.entry.js +1 -0
  311. package/dist/lime-elements/p-f717cd7a.entry.js +1 -0
  312. package/dist/lime-elements/p-f72ee01b.entry.js +1 -0
  313. package/dist/lime-elements/{p-0ecf8399.entry.js → p-f81dc23a.entry.js} +1 -1
  314. package/dist/types/components/date-picker/date.types.d.ts +5 -0
  315. package/dist/types/components/pagination/pagination.d.ts +288 -0
  316. package/dist/types/components/pagination/pagination.types.d.ts +42 -0
  317. package/dist/types/components/pagination/pagination.util.d.ts +38 -0
  318. package/dist/types/components.d.ts +155 -0
  319. package/dist/types/global/translations.d.ts +1 -0
  320. package/dist/types/interface.d.ts +1 -0
  321. package/dist/types/translations/da.d.ts +10 -0
  322. package/dist/types/translations/de.d.ts +10 -0
  323. package/dist/types/translations/en.d.ts +10 -0
  324. package/dist/types/translations/fi.d.ts +10 -0
  325. package/dist/types/translations/fr.d.ts +10 -0
  326. package/dist/types/translations/nl.d.ts +10 -0
  327. package/dist/types/translations/no.d.ts +10 -0
  328. package/dist/types/translations/sv.d.ts +10 -0
  329. package/dist/types/util/language.d.ts +20 -0
  330. package/package.json +1 -1
  331. package/dist/lime-elements/p-056ba5c5.entry.js +0 -1
  332. package/dist/lime-elements/p-0c47d262.entry.js +0 -1
  333. package/dist/lime-elements/p-191efd88.entry.js +0 -1
  334. package/dist/lime-elements/p-26fed26a.entry.js +0 -1
  335. package/dist/lime-elements/p-2737cade.entry.js +0 -1
  336. package/dist/lime-elements/p-2b01c1f2.entry.js +0 -1
  337. package/dist/lime-elements/p-3ac35da4.entry.js +0 -1
  338. package/dist/lime-elements/p-3e316685.entry.js +0 -1
  339. package/dist/lime-elements/p-565f688a.entry.js +0 -1
  340. package/dist/lime-elements/p-5dde5d72.entry.js +0 -1
  341. package/dist/lime-elements/p-62a25deb.entry.js +0 -1
  342. package/dist/lime-elements/p-6c826c25.entry.js +0 -1
  343. package/dist/lime-elements/p-73d9f0f6.entry.js +0 -1
  344. package/dist/lime-elements/p-7bfac292.entry.js +0 -1
  345. package/dist/lime-elements/p-8175c53a.entry.js +0 -1
  346. package/dist/lime-elements/p-83bdbaf7.entry.js +0 -1
  347. package/dist/lime-elements/p-8b3b7505.entry.js +0 -1
  348. package/dist/lime-elements/p-8c3798ee.entry.js +0 -1
  349. package/dist/lime-elements/p-8cf79fa1.entry.js +0 -1
  350. package/dist/lime-elements/p-946a33ea.entry.js +0 -1
  351. package/dist/lime-elements/p-BGxJfR2f.js +0 -2
  352. package/dist/lime-elements/p-DQvn9bzh.js +0 -1
  353. package/dist/lime-elements/p-DgqE77nk.js +0 -1
  354. package/dist/lime-elements/p-Dpg0OkbJ.js +0 -1
  355. package/dist/lime-elements/p-a6500046.entry.js +0 -1
  356. package/dist/lime-elements/p-aee66710.entry.js +0 -1
  357. package/dist/lime-elements/p-b03367f0.entry.js +0 -1
  358. package/dist/lime-elements/p-b04c6602.entry.js +0 -1
  359. package/dist/lime-elements/p-b1fb33a2.entry.js +0 -23
  360. package/dist/lime-elements/p-b3274e2e.entry.js +0 -1
  361. package/dist/lime-elements/p-b4b43404.entry.js +0 -1
  362. package/dist/lime-elements/p-b6528083.entry.js +0 -1
  363. package/dist/lime-elements/p-c8ce60a0.entry.js +0 -1
  364. package/dist/lime-elements/p-cafebc7d.entry.js +0 -1
  365. package/dist/lime-elements/p-cf955cc2.entry.js +0 -1
  366. package/dist/lime-elements/p-dd9591a3.entry.js +0 -1
  367. package/dist/lime-elements/p-dda63b8b.entry.js +0 -1
  368. package/dist/lime-elements/p-e3ba7e15.entry.js +0 -1
  369. package/dist/lime-elements/p-e8783848.entry.js +0 -1
  370. package/dist/lime-elements/p-ea34a4bc.entry.js +0 -1
  371. package/dist/lime-elements/p-ed53466d.entry.js +0 -1
  372. package/dist/lime-elements/p-eecd1132.entry.js +0 -1
  373. package/dist/lime-elements/p-eeddce38.entry.js +0 -16
  374. package/dist/lime-elements/p-f2294e26.entry.js +0 -1
  375. package/dist/lime-elements/p-f53d8bda.entry.js +0 -1
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as e,a as r}from"./p-Bnc9lzk2.js";import{c as o,i as a}from"./p-CGVVDGcv.js";import{a as n}from"./p-DtrvybFR.js";import{c as h}from"./p-BE1Efiuj.js";import{i as l}from"./p-B8VKuhvH.js";import{c as p}from"./p-JbKhhoXs.js";import"./p-BCq5M9TE.js";import"./p-Bu_YRgCL.js";import"./p-CgNJbSP4.js";import"./p-mmkVLOjW.js";import"./p-CZ30nDJE.js";import"./p-D4RdItCq.js";import"./p-BJQylLSL.js";import"./p-oiMYqRQ0.js";import"./p-BYfPV0O4.js";import"./p-BcJ-TDVt.js";import"./p-DbBZn7JO.js";import"./p-B--C3qwe.js";import"./p-BOEi1C7r.js";import"./p-CK4jS9_E.js";function c(t,i,s,e){for(var r=-1,o=null==t?0:t.length;++r<o;){var a=t[r];i(e,a,s(a),t)}return e}function d(t,i,s,e){return n(t,(function(t,r,o){i(e,t,s(t),o)})),e}var m,f,u=(m=function(t,i,s){t[s?0:1].push(i)},f=function(){return[[],[]]},function(t,i){var s=l(t)?c:d,e=f?[[],[]]:{};return s(t,m,h(i),e)});const b=class{constructor(e){t(this,e),this.filesSelected=i(this,"filesSelected",7),this.filesRejected=i(this,"filesRejected",7),this.accept="*",this.disabled=!1,this.helperText="",this.hasFileToDrop=!1,this.renderOnDragLayout=()=>{if(!this.disabled&&this.hasFileToDrop)return s("div",{class:"has-file-to-drop"},s("limel-icon",{class:"icon",name:"upload_2"}),s("div",{class:"text-helpertext"},this.renderText(),this.renderHelperText()))},this.renderText=()=>{if(this.text)return s("span",{class:"text"},this.text)},this.renderHelperText=()=>{if(this.helperText)return s("span",{class:"helper-text"},this.helperText)},this.handleDrop=t=>{if(t.stopPropagation(),t.preventDefault(),this.hasFileToDrop=!1,this.disabled)return;const i=[...t.dataTransfer.files].map(o),[s,e]=u(i,(t=>a(t,this.accept)));s.length>0&&this.filesSelected.emit(s),e.length>0&&this.filesRejected.emit(e)},this.handleDragOver=t=>{this.hasFileToDrop=!0,t.preventDefault()},this.handleDragLeave=t=>{this.hasFileToDrop=!1,t.preventDefault()}}render(){return s(e,{key:"841fa3b9766a42bdf7ee7e5993aa69521f081272",onDrop:this.handleDrop,onDragOver:this.handleDragOver,onDragLeave:this.handleDragLeave},s("slot",{key:"f1cd970b1555fa013cdc8391f627e6ad28a2f176"}),this.renderOnDragLayout())}};b.style=":host(limel-file-dropzone){display:block;position:relative}.has-file-to-drop{animation:display-drop-zone 0.6s ease forwards;box-sizing:border-box;isolation:isolate;z-index:1;position:absolute;inset:0.25rem;overflow:hidden;display:flex;justify-content:center;align-items:center;gap:0.5rem;color:rgb(var(--contrast-700));border:0.125rem dashed rgb(var(--color-cyan-light));border-radius:0.75rem}.text-helpertext{display:flex;flex-direction:column;justify-content:center;align-items:flex-start}.icon{width:clamp(2rem, 5vh, 7rem)}.text{font-size:clamp(1rem, 2vh, 1.75rem)}.helper-text{font-size:clamp(0.75rem, 1.5vh, 1rem)}@keyframes display-drop-zone{0%{background-color:rgb(var(--contrast-1100), 0);backdrop-filter:blur(0);-webkit-backdrop-filter:blur(0);scale:0.9;opacity:0}50%{scale:1;opacity:1}100%{background-color:rgb(var(--contrast-1100), 0.8);backdrop-filter:blur(0.25rem);-webkit-backdrop-filter:blur(0.25rem)}}";const j=class{constructor(s){t(this,s),this.filesSelected=i(this,"filesSelected",7),this.accept="*",this.disabled=!1,this.multiple=!1,this.fileInputId=p(),this.handleClick=t=>{if(this.disabled)return t.stopPropagation(),void t.preventDefault();this.triggerFileDialog(),t.stopPropagation()},this.handleKeyUp=t=>{t.stopPropagation(),t.preventDefault(),"Enter"===t.code&&this.triggerFileDialog()},this.handleFileChange=t=>{const i=[...this.fileInput.files];i.length>0&&(t.stopPropagation(),this.filesSelected.emit(i.map(o)),this.fileInput.value="")}}componentDidLoad(){this.fileInput=this.element.shadowRoot.getElementById(this.fileInputId)}render(){return s(e,{key:"e802095d33209367010aca10267f66b924aba997",onClick:this.handleClick,onKeyUp:this.handleKeyUp,onKeyDown:this.handleKeyDown},s("input",{key:"a3a70866e1541303ad277dd3ec3d82a30e7b2c60",hidden:!0,id:this.fileInputId,onChange:this.handleFileChange,type:"file",accept:this.accept,disabled:this.disabled,multiple:this.multiple}),s("slot",{key:"8ad5e423a56d3b067b16f0cd208eac25989fa1e7"}))}handleKeyDown(t){"Tab"!==t.code&&"Backspace"!==t.code&&"Enter"!==t.code&&(t.preventDefault(),t.stopPropagation())}triggerFileDialog(){this.fileInput.click()}get element(){return r(this)}};export{b as limel_file_dropzone,j as limel_file_input}
@@ -0,0 +1 @@
1
+ import{r as a,h as t,H as i}from"./p-Bnc9lzk2.js";import{t as e}from"./p-DAFuhe5e.js";import"./p-C3hECvXE.js";const r=new Set(["detailed","minimal","solid","outlined"]),o="var(--ai-avatar-primary-color, rgb(var(--lime-brand-color-ocean-teal, 111, 205, 182)))",s="var(--ai-avatar-accent-color, rgb(var(--lime-brand-color-aqua, 166, 239, 255)))",l="var(--ai-avatar-orb-edge-color, rgb(var(--lime-brand-color-sunny-orange, 254, 176, 0)))",n="var(--ai-avatar-stars-eyes-mouth-color, var(--limel-ai-avatar-stars-eyes-mouth-color, #FFFFFF))",c="#8D8D8D",p="#272727",d="white",m="black",f=class{constructor(t){a(this,t),this.isThinking=!1,this.mode="idle",this.variant="minimal",this.language=document.documentElement.lang,this.getTranslation=a=>e.get(a,this.language)}componentWillLoad(){this.isThinking&&this.warnIsThinkingDeprecation()}onIsThinkingChange(a){a&&this.warnIsThinkingDeprecation()}warnIsThinkingDeprecation(){console.warn('limel-ai-avatar: the `isThinking` prop is deprecated and will be removed in a future major version. Use `mode="thinking"` instead.')}render(){const a=this.isThinking&&"idle"===this.mode?"thinking":this.mode,e=r.has(this.variant)?this.variant:"minimal";return e!==this.variant&&console.warn(`limel-ai-avatar: unsupported variant "${this.variant}"; falling back to "minimal".`),t(i,{key:"9ef938d76c51310ceffe44c26dcf9bbfd705e86c",role:"img","aria-label":this.getHostAriaLabel(a)},this.renderAvatar(a,e))}getHostAriaLabel(a){const t=this.getTranslation("ai-avatar.label");if("idle"===a)return t;const i=`ai-avatar.mode.${a}`,e=this.getTranslation(i);return e===i?(console.warn(`limel-ai-avatar: no translation for mode "${a}"; falling back to base label.`),t):`${t} (${e})`}renderAvatar(a,i=this.variant){return t("svg",{class:`avatar mode-${a} variant-${i}`,viewBox:"0 0 740 740",xmlns:"http://www.w3.org/2000/svg",role:"presentation","aria-hidden":"true"},t("g",{class:"ring-group",filter:"url(#aiAvatar-blurHoverOuter)"},t("g",{class:"ring",filter:"url(#aiAvatar-blurHoverRing)",style:{mixBlendMode:"color-dodge"}},t("path",{d:"M369.892 67.6453C536.826 67.6453 672.139 202.948 672.139 369.892C672.139 536.837 536.816 672.139 369.892 672.139C202.969 672.139 67.6452 536.816 67.6451 369.892C67.6451 202.969 202.968 67.6453 369.892 67.6453ZM369.893 97.5906C219.507 97.5906 97.5904 219.508 97.5904 369.893C97.5905 520.279 219.507 642.195 369.893 642.195C520.279 642.195 642.195 520.298 642.195 369.893C642.195 219.489 520.288 97.5907 369.893 97.5906Z",fill:"url(#aiAvatar-hoverRing)"})),t("g",{class:"glow",transform:"scale(0.9)",filter:"url(#aiAvatar-blurHoverGlow)",style:{mixBlendMode:"plus-lighter"}},t("path",{d:"M521.016 108.139C665.585 191.606 715.119 376.438 631.646 521.016C548.174 665.595 363.329 715.108 218.769 631.646C74.2092 548.185 24.6774 363.329 108.139 218.769C191.601 74.2093 376.456 24.6774 521.016 108.139ZM506.937 133.894C374.486 57.4233 206.016 101.246 130.657 231.772C55.2971 362.298 101.581 530.11 234.032 606.581C366.483 683.051 534.944 639.245 610.313 508.702C685.682 378.159 639.397 210.369 506.937 133.894Z",fill:"var(--ai-avatar-hover-glow-color, rgb(var(--lime-brand-color-bubble-gum, 255, 166, 234)))"}))),t("g",{class:"body variant-detailed-body"},t("path",{class:"outer-ring",d:"M369.841 80.23C529.796 80.2302 659.452 209.876 659.452 369.841C659.452 529.806 529.786 659.452 369.841 659.453C209.896 659.453 80.2301 529.786 80.23 369.841C80.23 209.896 209.896 80.23 369.841 80.23ZM369.84 104.577C223.416 104.577 104.283 223.643 104.283 369.996C104.283 516.348 223.426 635.406 369.84 635.406L369.85 635.396C516.285 635.396 635.409 516.338 635.409 369.986C635.409 302.069 609.751 240.032 567.619 193.043C566.899 192.227 566.179 191.429 565.45 190.642C565.09 190.253 564.73 189.875 564.371 189.486C550.073 174.118 533.977 160.421 516.412 148.756C474.376 120.849 423.975 104.577 369.84 104.577Z",fill:"url(#aiAvatar-bigOutline)"}),t("g",{class:"body-background"},t("path",{class:"dark-ball",d:"M370.114 585.766C489.215 585.766 585.766 489.215 585.766 370.114C585.766 251.012 489.215 154.462 370.114 154.462C251.013 154.462 154.462 251.012 154.462 370.114C154.462 489.215 251.013 585.766 370.114 585.766Z",fill:"url(#aiAvatar-darkBall)"}),t("mask",{id:"aiAvatar-bgMask",style:{maskType:"alpha"},maskUnits:"userSpaceOnUse",x:"182",y:"182",width:"376",height:"376"},t("path",{d:"M370.114 557.432C473.567 557.432 557.432 473.567 557.432 370.114C557.432 266.661 473.567 182.795 370.114 182.795C266.661 182.795 182.796 266.661 182.796 370.114C182.796 473.567 266.661 557.432 370.114 557.432Z",fill:m})),t("g",{mask:"url(#aiAvatar-bgMask)"},t("path",{class:"light-ball",d:"M409.467 585.766C528.568 585.766 625.119 489.215 625.119 370.114C625.119 251.012 528.568 154.462 409.467 154.462C290.365 154.462 193.814 251.012 193.814 370.114C193.814 489.215 290.365 585.766 409.467 585.766Z",fill:"url(#aiAvatar-lightBall)"}))),t("g",{class:"inside"},t("path",{opacity:"0.8",d:"M552.097 451.055C552.097 531.302 470.7 596.36 370.295 596.36C269.891 596.36 188.486 531.302 188.486 451.055C188.486 370.807 262.461 287.679 362.866 287.679C463.27 287.679 552.089 370.799 552.089 451.055H552.097Z",fill:"url(#aiAvatar-innerDark)",style:{mixBlendMode:"overlay"}}),t("path",{opacity:"0.3",d:"M585.191 370.295C585.191 488.794 488.793 585.192 370.295 585.192C251.796 585.192 155.39 488.786 155.39 370.295C155.39 251.805 251.804 155.391 370.295 155.391C414.102 155.391 454.887 168.566 488.904 191.162C503.118 200.607 516.143 211.697 527.713 224.14C528.004 224.455 528.295 224.762 528.587 225.076C529.177 225.714 529.759 226.359 530.342 227.02C564.437 265.066 585.199 315.296 585.199 370.287L585.191 370.295Z",fill:"url(#aiAvatar-innerLight)",style:{mixBlendMode:"screen"}})),t("g",{class:"shape"},t("path",{opacity:"0.5",d:"M370.295 144.23C245.445 144.23 144.23 245.445 144.23 370.295C144.23 495.145 245.445 596.359 370.295 596.359C495.145 596.359 596.36 495.16 596.36 370.295C596.36 245.429 495.153 144.23 370.295 144.23ZM370.295 585.191C251.812 585.191 155.398 488.793 155.398 370.295C155.398 251.796 251.804 155.39 370.295 155.39C414.102 155.39 454.887 168.566 488.904 191.162C503.118 200.606 516.144 211.696 527.713 224.139C528.005 224.454 528.296 224.761 528.587 225.076C529.177 225.713 529.76 226.359 530.342 227.02C564.437 265.066 585.2 315.296 585.2 370.287C585.2 488.785 488.801 585.183 370.303 585.183L370.295 585.191Z",fill:"url(#aiAvatar-outline)"}),t("g",{opacity:"0.6",style:{mixBlendMode:"color-burn"}},t("path",{d:"M370.295 585.192C251.813 585.192 155.399 488.794 155.399 370.295C155.399 251.797 251.805 155.391 370.295 155.391C414.103 155.391 454.888 168.566 488.904 191.162C503.118 200.607 516.144 211.697 527.714 224.14C528.005 224.455 528.296 224.762 528.587 225.076C529.178 225.714 529.76 226.359 530.342 227.02C564.438 265.066 585.2 315.296 585.2 370.287C585.2 488.786 488.802 585.184 370.303 585.184L370.295 585.192Z",fill:"url(#aiAvatar-darkerFace)"})),t("path",{opacity:"0.8",d:"M585.192 370.295C585.192 488.794 488.793 585.192 370.295 585.192C251.796 585.192 155.39 488.786 155.39 370.295C155.39 251.805 251.804 155.391 370.295 155.391C414.102 155.391 454.887 168.566 488.904 191.162H488.88C488.88 191.162 354.664 144.774 308.37 185.858C283.538 207.895 314.831 225.848 338.805 251.797C362.873 277.848 338.805 287.678 280.909 310.684C233.788 329.408 219.968 424.468 275.793 476.571C331.611 528.666 508.753 502.614 525.124 457.957C541.502 413.3 412.937 465.646 422.413 435.628C435.809 393.206 525.871 365.659 537.779 322.505C550.821 275.212 542.667 241.715 530.334 227.02C564.429 265.066 585.192 315.296 585.192 370.287V370.295Z",fill:"url(#aiAvatar-shine)",style:{mixBlendMode:"screen"}}),t("g",{opacity:"0.5",style:{mixBlendMode:"color-dodge"}},t("path",{d:"M585.192 370.295C585.192 488.794 488.793 585.192 370.295 585.192C251.796 585.192 155.39 488.786 155.39 370.295C155.39 251.805 251.804 155.391 370.295 155.391C414.102 155.391 454.887 168.566 488.904 191.162H488.88C488.88 191.162 354.664 144.774 308.37 185.858C283.538 207.895 314.831 225.848 338.805 251.797C362.873 277.848 338.805 287.678 280.909 310.684C233.788 329.408 219.968 424.468 275.793 476.571C331.611 528.666 508.753 502.614 525.124 457.957C541.502 413.3 412.937 465.646 422.413 435.628C435.809 393.206 525.871 365.659 537.779 322.505C550.821 275.212 542.667 241.715 530.334 227.02C564.429 265.066 585.192 315.296 585.192 370.287V370.295Z",fill:"url(#aiAvatar-shine)",style:{mixBlendMode:"screen"}}))),t("g",{class:"reflections"},t("path",{opacity:"0.3",d:"M565.106 485.07C525.777 551.679 453.25 596.352 370.295 596.352C245.445 596.352 144.23 495.153 144.23 370.295C144.23 311.038 167.039 257.078 204.361 216.765C184.503 250.411 173.099 289.654 173.099 331.556C173.099 456.406 274.298 557.621 399.164 557.621C464.749 557.621 523.81 529.688 565.106 485.078V485.07Z",fill:"url(#aiAvatar-reflectLighten)"}),t("path",{opacity:"0.3",d:"M524.935 519.394C485.882 560.069 430.93 585.396 370.067 585.396C251.506 585.396 155.399 489.29 155.399 370.72C155.399 309.858 180.726 254.921 221.417 215.86C184.228 254.457 161.349 306.961 161.349 364.778C161.349 483.339 257.464 579.446 376.017 579.446C433.85 579.446 486.338 556.582 524.935 519.379V519.394Z",fill:"url(#aiAvatar-reflectScreen)",style:{mixBlendMode:"screen"}}),t("g",{opacity:"0.4",filter:"url(#aiAvatar-blurInner)",style:{mixBlendMode:"plus-lighter"}},t("path",{d:"M525.163 502.101C488.232 540.565 436.267 564.515 378.713 564.515C266.595 564.515 175.712 473.632 175.712 361.508C175.712 303.953 199.663 252.003 238.142 215.065C202.975 251.564 181.339 301.214 181.339 355.888C181.339 468.006 272.229 558.889 384.339 558.889C439.029 558.889 488.664 537.268 525.163 502.086V502.101Z",fill:"#00CFFF",style:{mixBlendMode:"screen"}})),t("path",{opacity:"0.8",d:"M493.579 194.247C426.262 150.078 320.53 137.312 251.316 208.202C183.472 277.691 254.11 331.005 349.564 324.678C429.859 319.357 464.922 355.192 490.974 387.941C517.025 420.69 572.284 424.224 578.053 363.377C583.295 308.047 547.736 229.775 493.579 194.24V194.247Z",fill:"url(#aiAvatar-glowBig)",style:{mixBlendMode:"screen"}}),t("path",{opacity:"0.5",d:"M526.51 332.514C560.621 298.403 560.621 243.098 526.51 208.987C492.399 174.876 437.094 174.876 402.983 208.987C368.872 243.098 368.872 298.403 402.983 332.514C437.094 366.625 492.399 366.626 526.51 332.514Z",fill:"url(#aiAvatar-glowSphere)",style:{mixBlendMode:"screen"}}),t("g",{opacity:"0.5",filter:"url(#aiAvatar-blurHighlight)",style:{mixBlendMode:"plus-lighter"}},t("path",{d:"M530.18 271.735C543.907 254.294 532.912 222.745 505.623 201.269C478.335 179.793 445.086 176.522 431.359 193.963C417.633 211.404 428.628 242.953 455.916 264.429C483.205 285.905 516.454 289.176 530.18 271.735Z",fill:"url(#aiAvatar-glowHighlight)",style:{mixBlendMode:"screen"}})))),t("g",{class:"body variant-minimal-body",transform:"translate(46 46) scale(0.92)"},t("path",{class:"glow-minimal",d:"M352.301 645.893C514.444 645.893 645.891 514.446 645.891 352.303C645.891 190.16 514.444 58.7127 352.301 58.7127C190.158 58.7127 58.7111 190.16 58.7111 352.303C58.7111 514.446 190.158 645.893 352.301 645.893Z",fill:"url(#aiAvatar-minimal)"}),t("path",{class:"dark-ball",d:"M352.301 587.182C482.01 587.182 587.18 482.013 587.18 352.304C587.18 222.595 482.01 117.426 352.301 117.426C222.593 117.426 117.424 222.595 117.424 352.304C117.424 482.013 222.593 587.182 352.301 587.182Z",fill:"url(#aiAvatar-minimal)"}),t("path",{class:"light-ball",d:"M421.952 396.298C484.908 396.298 535.953 345.253 535.953 282.298C535.953 219.343 484.908 168.298 421.952 168.298C358.997 168.298 307.953 219.343 307.953 282.298C307.953 345.253 358.997 396.298 421.952 396.298Z",fill:d}),t("path",{class:"outer-ring",d:"M351.971 76.01C504.558 76.0101 628.278 199.73 628.278 352.317C628.278 504.903 504.558 628.623 351.971 628.623C199.384 628.623 75.6645 504.903 75.6644 352.317C75.6644 199.73 199.384 76.01 351.971 76.01Z",stroke:"url(#aiAvatar-minimal)","stroke-width":"31",fill:"none"})),t("g",{class:"body variant-solid-body",transform:"translate(46 46) scale(0.92)"},t("path",{class:"dark-ball",d:"M352.301 587.182C482.01 587.182 587.18 482.013 587.18 352.304C587.18 222.595 482.01 117.426 352.301 117.426C222.593 117.426 117.424 222.595 117.424 352.304C117.424 482.013 222.593 587.182 352.301 587.182Z"}),t("path",{class:"outer-ring",d:"M351.971 76.01C504.558 76.0101 628.278 199.73 628.278 352.317C628.278 504.903 504.558 628.623 351.971 628.623C199.384 628.623 75.6645 504.903 75.6644 352.317C75.6644 199.73 199.384 76.01 351.971 76.01Z"})),t("g",{class:"face"},t("path",{class:"mouth",d:"M379.952 470.07C358.436 470.07 340.993 457.87 340.993 449.467C340.993 446.501 343.413 444.097 346.399 444.097C346.399 444.097 359.095 444.097 379.952 444.097C400.809 444.097 413.506 444.097 413.506 444.097C416.491 444.097 418.911 446.501 418.911 449.467C418.911 456.69 401.469 470.07 379.952 470.07Z",fill:n}),t("path",{class:"eye eye-left",d:"M302.23 426.8C301.442 429.87 295.735 429.945 294.881 426.894C290.963 412.947 283.999 393.474 273.633 383.121C263.751 373.251 245.844 366.751 232.31 362.992C229.208 362.13 229.274 355.991 232.395 355.189C245.919 351.721 263.765 345.568 273.628 335.717C283.985 325.373 290.944 305.558 294.862 291.311C295.707 288.242 301.46 288.316 302.235 291.4C305.81 305.638 312.328 325.392 322.666 335.712C332.516 345.549 350.718 351.698 364.576 355.171C367.715 355.958 367.781 362.158 364.66 363.007C350.794 366.765 332.539 373.261 322.666 383.121C312.324 393.451 305.801 412.862 302.225 426.8H302.23Z",fill:n}),t("path",{class:"eye eye-right",d:"M302.23 426.8C301.442 429.87 295.735 429.945 294.881 426.894C290.963 412.947 283.999 393.474 273.633 383.121C263.751 373.251 245.844 366.751 232.31 362.992C229.208 362.13 229.274 355.991 232.395 355.189C245.919 351.721 263.765 345.568 273.628 335.717C283.985 325.373 290.944 305.558 294.862 291.311C295.707 288.242 301.46 288.316 302.235 291.4C305.81 305.638 312.328 325.392 322.666 335.712C332.516 345.549 350.718 351.698 364.576 355.171C367.715 355.958 367.781 362.158 364.66 363.007C350.794 366.765 332.539 373.261 322.666 383.121C312.324 393.451 305.801 412.862 302.225 426.8H302.23Z",fill:n})),t("g",{class:"typing-ellipsis"},t("circle",{class:"circle",cx:"340",cy:"620",r:"10"}),t("circle",{class:"circle",cx:"370",cy:"620",r:"10"}),t("circle",{class:"circle",cx:"400",cy:"620",r:"10"})),this.renderDefs())}renderDefs(){return t("defs",null,t("filter",{id:"aiAvatar-blurHoverOuter",x:"17.7349",y:"17.7349",width:"704.322",height:"704.32",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},t("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),t("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t("feGaussianBlur",{stdDeviation:"24.9308",result:"effect1_foregroundBlur"})),t("filter",{id:"aiAvatar-blurHoverRing",x:"33.6395",y:"33.6397",width:"672.505",height:"672.505",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},t("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),t("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t("feGaussianBlur",{stdDeviation:"17.0028",result:"effect1_foregroundBlur"})),t("filter",{id:"aiAvatar-blurHoverGlow",x:"-33.2236",y:"-33.2236",width:"806.239",height:"806.237",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},t("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),t("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t("feGaussianBlur",{stdDeviation:"50.41",result:"effect1_foregroundBlur"})),t("filter",{id:"aiAvatar-blurInner",x:"152.712",y:"192.065",width:"395.451",height:"395.451",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},t("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),t("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t("feGaussianBlur",{stdDeviation:"11.5",result:"effect1_foregroundBlur"})),t("filter",{id:"aiAvatar-blurHighlight",x:"361.049",y:"118.353",width:"239.442",height:"228.991",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB"},t("feFlood",{"flood-opacity":"0",result:"BackgroundImageFix"}),t("feBlend",{mode:"normal",in:"SourceGraphic",in2:"BackgroundImageFix",result:"shape"}),t("feGaussianBlur",{stdDeviation:"32.2",result:"effect1_foregroundBlur"})),t("linearGradient",{id:"aiAvatar-hoverRing",x1:"216.322",y1:"643.37",x2:"512.34",y2:"116.198",gradientUnits:"userSpaceOnUse"},t("stop",{"stop-color":s}),t("stop",{offset:"0.22","stop-color":o}),t("stop",{offset:"0.71","stop-color":o}),t("stop",{offset:"1","stop-color":s})),t("linearGradient",{id:"aiAvatar-bigOutline",x1:"222.691",y1:"631.886",x2:"506.334",y2:"126.753",gradientUnits:"userSpaceOnUse"},t("stop",{"stop-color":s}),t("stop",{offset:"0.403846","stop-color":o}),t("stop",{offset:"0.774038","stop-color":"var(--ai-avatar-hover-ring-accent-color, rgb(var(--lime-brand-color-lime-green, 190, 224, 52)))"}),t("stop",{offset:"1","stop-color":s})),t("radialGradient",{id:"aiAvatar-darkBall",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(370.114 370.114) scale(215.652 215.652)"},t("stop",{offset:"0.841346","stop-color":o}),t("stop",{offset:"1","stop-color":l})),t("radialGradient",{id:"aiAvatar-lightBall",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(409.467 370.114) scale(215.652 215.652)"},t("stop",{"stop-color":"var(--ai-avatar-orb-inner-highlight-color, rgb(var(--lime-brand-color-aqua, 166, 239, 255)))"}),t("stop",{offset:"0.46","stop-color":"#60D4EF"}),t("stop",{offset:"0.841346","stop-color":o}),t("stop",{offset:"1","stop-color":l,"stop-opacity":"0"})),t("linearGradient",{id:"aiAvatar-innerDark",x1:"374.569",y1:"426.113",x2:"359.749",y2:"510.076",gradientUnits:"userSpaceOnUse"},t("stop",{"stop-color":"#48359C"}),t("stop",{offset:"1","stop-color":"#49B1C9"})),t("radialGradient",{id:"aiAvatar-innerLight",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(370.295 370.295) scale(214.897 214.896)"},t("stop",{"stop-color":"#8D80EF"}),t("stop",{offset:"0.19","stop-color":"#887CEA"}),t("stop",{offset:"0.4","stop-color":"#7A70DC"}),t("stop",{offset:"0.63","stop-color":"#635DC5"}),t("stop",{offset:"0.86","stop-color":"#4443A5"}),t("stop",{offset:"1","stop-color":"#2E318F"})),t("linearGradient",{id:"aiAvatar-outline",x1:"255.433",y1:"574.841",x2:"476.838",y2:"180.544",gradientUnits:"userSpaceOnUse"},t("stop",{"stop-color":s}),t("stop",{offset:"0.22","stop-color":o}),t("stop",{offset:"0.71","stop-color":o}),t("stop",{offset:"1","stop-color":s})),t("linearGradient",{id:"aiAvatar-darkerFace",x1:"255.433",y1:"574.842",x2:"476.838",y2:"180.545",gradientUnits:"userSpaceOnUse"},t("stop",{"stop-color":s}),t("stop",{offset:"0.22","stop-color":o}),t("stop",{offset:"0.71","stop-color":o}),t("stop",{offset:"1","stop-color":s})),t("radialGradient",{id:"aiAvatar-shine",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(370.295 366.942) scale(214.897 214.896)"},t("stop",{"stop-color":m}),t("stop",{offset:"0.38","stop-color":"#010000"}),t("stop",{offset:"0.52","stop-color":"#080104"}),t("stop",{offset:"0.61","stop-color":"#14030A"}),t("stop",{offset:"0.69","stop-color":"#250613"}),t("stop",{offset:"0.76","stop-color":"#3B0A1F"}),t("stop",{offset:"0.82","stop-color":"#560F2D"}),t("stop",{offset:"0.87","stop-color":"#543EB4"}),t("stop",{offset:"0.92","stop-color":"#5E45CE"}),t("stop",{offset:"0.97","stop-color":"#6D53DF"}),t("stop",{offset:"1","stop-color":o})),t("linearGradient",{id:"aiAvatar-reflectLighten",x1:"217.788",y1:"524.037",x2:"367.383",y2:"373.325",gradientUnits:"userSpaceOnUse"},t("stop",{"stop-color":s}),t("stop",{offset:"1","stop-color":o})),t("linearGradient",{id:"aiAvatar-reflectScreen",x1:"155.391",y1:"400.636",x2:"524.935",y2:"400.636",gradientUnits:"userSpaceOnUse"},t("stop",{"stop-color":s}),t("stop",{offset:"0.42","stop-color":s}),t("stop",{offset:"1","stop-color":d})),t("linearGradient",{id:"aiAvatar-glowBig",x1:"447.206",y1:"194.885",x2:"364.841",y2:"404.54",gradientUnits:"userSpaceOnUse"},t("stop",{"stop-color":s}),t("stop",{offset:"1","stop-color":m})),t("radialGradient",{id:"aiAvatar-glowSphere",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"translate(464.749 270.756) scale(87.347 87.3469)"},t("stop",{"stop-color":d}),t("stop",{offset:"0.42","stop-color":c}),t("stop",{offset:"0.82","stop-color":p}),t("stop",{offset:"1","stop-color":m})),t("radialGradient",{id:"aiAvatar-glowHighlight",cx:"0",cy:"0",r:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(52.5126 5.16603 17.3645 49.827 480.772 232.852)"},t("stop",{"stop-color":d}),t("stop",{offset:"0.42","stop-color":c}),t("stop",{offset:"0.82","stop-color":p}),t("stop",{offset:"1","stop-color":m})),t("linearGradient",{id:"aiAvatar-minimal",x1:"206.205",y1:"172.039",x2:"514.924",y2:"520.821",gradientUnits:"userSpaceOnUse"},t("stop",{offset:"0","stop-color":s}),t("stop",{offset:"0.45","stop-color":o}),t("stop",{offset:"0.55","stop-color":o}),t("stop",{offset:"1","stop-color":l})))}static get watchers(){return{isThinking:[{onIsThinkingChange:0}]}}};f.style='@charset "UTF-8";:host(limel-ai-avatar){display:inline-flex;justify-content:center;align-items:center;position:relative;aspect-ratio:1;max-width:20rem;max-height:20rem;min-width:1.75rem;min-height:1.75rem;content-visibility:auto;contain-intrinsic-size:auto 5rem}*{box-sizing:border-box}svg{display:block;width:100%;height:100%;overflow:visible}svg.variant-minimal{--limel-ai-avatar-stars-eyes-mouth-color:rgb(var(--contrast-100))}svg.variant-outlined{--limel-ai-avatar-stars-eyes-mouth-color:currentColor}svg.variant-detailed .dark-ball,svg.variant-detailed .light-ball{opacity:0.8}.variant-detailed .variant-minimal-body,.variant-detailed .variant-solid-body{display:none}.variant-minimal .ring-group{display:none}.variant-minimal .variant-detailed-body,.variant-minimal .variant-solid-body{display:none}.variant-solid .ring-group,.variant-outlined .ring-group{display:none}.variant-solid .variant-detailed-body,.variant-solid .variant-minimal-body,.variant-outlined .variant-detailed-body,.variant-outlined .variant-minimal-body{display:none}.variant-solid .outer-ring,.variant-outlined .outer-ring{fill:none;stroke:currentColor;stroke-width:31}.variant-solid .typing-ellipsis .circle,.variant-outlined .typing-ellipsis .circle{fill:currentColor;--limel-ai-avatar-typing-dot-flash-color:currentColor}.variant-solid .dark-ball{fill:currentColor}.variant-outlined .dark-ball{fill:none;stroke:currentColor;stroke-width:15}.variant-minimal .glow-minimal{opacity:0;transform:scale(0.9)}.variant-minimal .light-ball{opacity:0}.eye{transform-origin:298px 360px;transition:transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);will-change:transform, rotate}.mouth{transform-origin:379px 457px;opacity:0;transform:scale(0.2);transition:transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 300ms ease;will-change:transform, opacity}.eye-left{transform:translate(48px, 34px) scale(1.48)}.eye-right{transform:translate(152px, -74px) scale(0.66)}.glow-minimal,.light-ball{transition:transform 1s ease, opacity 300ms ease;will-change:transform, opacity;transform-origin:370px 370px;transform-box:view-box}.outer-ring,.ring,.glow,.glow-minimal{transform-origin:370px 370px;transform-box:view-box}.outer-ring{transform:scale(0.9);opacity:0;transition:opacity 600ms ease, transform 700ms cubic-bezier(0.55, 0.3, 0.22, 1.54)}.ring,.glow{scale:0.95;opacity:0;transition:opacity 600ms ease}svg:hover .outer-ring{opacity:0.9;transform:scale(1)}svg:hover .ring,svg:hover .glow{opacity:0.5}.mode-active .eye-left,.mode-thinking .eye-left,.mode-typing .eye-left,.mode-waiting .eye-left{transform:translate(0) scale(0.96)}.mode-active .eye-right,.mode-thinking .eye-right,.mode-typing .eye-right,.mode-waiting .eye-right{transform:translate(156px, -20px) scale(0.8)}.mode-active .mouth,.mode-thinking .mouth,.mode-typing .mouth,.mode-waiting .mouth{opacity:1;transform:scale(1)}.mode-active.variant-minimal .light-ball,.mode-thinking.variant-minimal .light-ball,.mode-typing.variant-minimal .light-ball,.mode-waiting.variant-minimal .light-ball{opacity:0.16}.mode-active .eye,.mode-thinking .eye,.mode-waiting .eye{animation:ai-avatar-blink 4.5s ease-in-out infinite}.mode-thinking .eye-left{animation:ai-avatar-blink 4.5s ease-in-out infinite, ai-avatar-look-around-left-eye 9s ease-in-out infinite}.mode-thinking .eye-right{animation:ai-avatar-blink 4.5s ease-in-out infinite, ai-avatar-look-around-right-eye 9s ease-in-out infinite}.mode-thinking .mouth{animation:ai-avatar-mouth-look-around 9s ease-in-out infinite}.mode-thinking .light-ball{animation:ai-avatar-light-ball-swirl 3s linear infinite}.mode-thinking .glow-minimal{opacity:0.3;animation:ai-avatar-breathing 5s ease-in-out infinite}.mode-waiting .glow,.mode-waiting .glow-minimal{animation:ai-avatar-breathing 5s ease-in-out infinite}.mode-waiting .glow-minimal{opacity:0.3}.mode-waiting .outer-ring{animation:ai-avatar-mode-active-ring 2s ease-out infinite}.mode-waiting.variant-minimal .outer-ring,.mode-waiting.variant-solid .outer-ring,.mode-waiting.variant-outlined .outer-ring{scale:1.1}.mode-active .glow-minimal{opacity:0.3;transform:scale(1)}.mode-typing .eye-left{animation:ai-avatar-typing-left-eye 2.5s ease-in-out infinite}.mode-typing .eye-right{animation:ai-avatar-typing-right-eye 2.5s ease-in-out infinite}.mode-typing .mouth{animation:ai-avatar-typing-mouth 2.5s ease-in-out infinite}.mode-typing .typing-ellipsis{opacity:1;transform:scale(1)}.mode-typing .typing-ellipsis .circle{animation:ai-avatar-typing-dot 1.2s infinite}.mode-typing .typing-ellipsis .circle:nth-of-type(2){animation-delay:0.2s}.mode-typing .typing-ellipsis .circle:nth-of-type(3){animation-delay:0.4s}.mode-typing.variant-minimal .light-ball{animation:ai-avatar-breathing 5s ease-in-out infinite}.mode-working .eye-left{animation:ai-avatar-working-left-star 12s steps(50, end) infinite}.mode-working .eye-right{animation:ai-avatar-working-right-star 4s steps(30, end) infinite reverse}.mode-working .light-ball{animation:ai-avatar-light-ball-swirl 6s linear infinite}.mode-working .outer-ring{opacity:0.8;animation:ai-avatar-breathing 5s ease-in-out infinite}.mode-working.variant-minimal .outer-ring,.mode-working.variant-solid .outer-ring,.mode-working.variant-outlined .outer-ring{scale:1.1}.mode-working.variant-minimal .light-ball{opacity:0.16}.typing-ellipsis{opacity:0;transform-origin:370px 620px;transform-box:view-box;scale:2.2;transition:opacity 300ms ease, transform 300ms ease}.typing-ellipsis .circle{fill:var(--ai-avatar-primary-color, rgb(var(--lime-brand-color-ocean-teal, 111, 205, 182)))}@keyframes ai-avatar-typing-dot{0%{transform:translateY(0)}6.25%{transform:translateY(-3px)}12.5%{transform:translateY(0);fill:var(--limel-ai-avatar-typing-dot-flash-color, var(--ai-avatar-accent-color, rgb(var(--lime-brand-color-aqua, 166, 239, 255))))}18.75%{transform:translateY(3px)}25%{transform:translateY(0)}}@keyframes ai-avatar-blink{0%,93%,99%,100%{rotate:x 0deg}96%{rotate:x 85deg}}@keyframes ai-avatar-light-ball-swirl{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes ai-avatar-look-around-left-eye{0%,15%,95%,100%{transform:translate(0) scale(0.96)}25%,40%{transform:translate(65px, -40px) scale(1.004) rotate(-13deg)}55%,70%{transform:translate(-67px, -91px) scale(0.72) rotate(29deg)}}@keyframes ai-avatar-look-around-right-eye{0%,15%,95%,100%{transform:translate(156px, -20px) scale(0.8)}25%,40%{transform:translate(203px, -92px) scale(0.76) rotate(-24deg)}55%,70%{transform:translate(80px, -45px) scale(1) rotate(12deg)}}@keyframes ai-avatar-mouth-look-around{0%,15%,95%,100%{transform:scale(1)}25%,40%{transform:translate(75px, -40px) scale(1.004) rotate(-9deg)}55%,70%{transform:translate(-99px, -45px) scale(1) rotate(9deg)}}@keyframes ai-avatar-typing-left-eye{0%,100%{transform:translate(0, 80px) scale(0.94)}25%{transform:translate(12px, 80px) scale(0.94) rotate(-4deg)}75%{transform:translate(-12px, 80px) scale(0.94) rotate(4deg)}}@keyframes ai-avatar-typing-right-eye{0%,100%{transform:translate(156px, 60px) scale(0.78)}25%{transform:translate(168px, 60px) scale(0.78) rotate(-5deg)}75%{transform:translate(144px, 60px) scale(0.78) rotate(5deg)}}@keyframes ai-avatar-typing-mouth{0%,100%{transform:translate(0, 70px) scale(1)}25%{transform:translate(6px, 70px) scale(1)}75%{transform:translate(-6px, 70px) scale(1)}}@keyframes ai-avatar-working-left-star{0%{transform:translate(48px, 34px) scale(1.48) rotate(0deg)}100%{transform:translate(48px, 34px) scale(1.48) rotate(360deg)}}@keyframes ai-avatar-working-right-star{0%{transform:translate(152px, -74px) scale(0.66) rotate(0deg)}100%{transform:translate(152px, -74px) scale(0.66) rotate(360deg)}}@keyframes ai-avatar-mode-active-ring{0%{transform:scale(0.9);opacity:0}30%{transform:scale(1);opacity:1}100%{transform:scale(1);opacity:0}}@keyframes ai-avatar-breathing{0%,60%,100%{transform:scale(0.9)}25%{transform:scale(1)}}';export{f as limel_ai_avatar}
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as e,H as o,a as r}from"./p-Bnc9lzk2.js";import{t as a}from"./p-DAFuhe5e.js";import{i as s}from"./p-CrvUOVvg.js";import{c as n}from"./p-JbKhhoXs.js";import{m as l,r as c}from"./p-BgTwPGeH.js";import{b as h,d,g as b}from"./p-CgNJbSP4.js";import"./p-C3hECvXE.js";const m=class{constructor(o){t(this,o),this.itemSelected=i(this,"itemSelected",7),this.actions=[],this.language="en",this.collapsible=!1,this.overflowCutoff=this.actions.length,this.hasRendered=!1,this.isFirstIntersectionCheck=!0,this.actionBarItems=[],this.renderActionBarItem=(t,i)=>e("limel-action-bar-item",{item:t,onSelect:this.handleSelect,isVisible:this.isVisible(i),role:"gridcell"}),this.renderOverflowMenu=t=>{if(this.actions.length-this.overflowCutoff)return e("limel-action-bar-overflow-menu",{openDirection:this.openDirection,items:t,onSelect:this.handleSelect,role:"gridcell"})},this.handleSelect=t=>{t.stopPropagation(),s(t.detail)&&this.itemSelected.emit(t.detail)},this.handleIntersection=t=>{const i=t.filter((t=>t.isIntersecting)),e=t.filter((t=>!t.isIntersecting));this.overflowCutoff=this.isFirstIntersectionCheck?i.length:this.overflowCutoff+i.length-e.length,this.isFirstIntersectionCheck=!1}}componentWillLoad(){this.collapsible&&console.warn("The `collapsible` prop on `limel-action-bar` is deprecated and no longer has any effect. It will be removed in a future major version. If you need expand/shrink behavior, implement it in the consuming UI instead of relying on the action bar itself.")}connectedCallback(){this.hasRendered&&this.createIntersectionObserver()}componentDidRender(){var t;this.haveItemsChanged()&&(null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.createIntersectionObserver())}disconnectedCallback(){var t;null===(t=this.intersectionObserver)||void 0===t||t.disconnect(),this.intersectionObserver=void 0,this.actionBarItems=[]}render(){var t;this.hasRendered=!0;let i=[];return this.actions.length>0&&(i=this.actions.slice(this.overflowCutoff)),e(o,{key:"395d927b80517d53543e5cc9067374134b0e9e72","aria-label":null!==(t=this.accessibleLabel)&&void 0!==t?t:a.get("action-bar",this.language),class:{"is-full-width":"fullWidth"===this.layout,"is-floating":"floating"===this.layout},role:"grid"},e("div",{key:"8d7b57b705a1ca31ed7c974176a62b7f8308461c",class:"items",role:"rowgroup"},this.actions.map(this.renderActionBarItem)),this.renderOverflowMenu(i))}isVisible(t){return t<this.overflowCutoff}createIntersectionObserver(){const t={root:this.host.shadowRoot.querySelector(".items"),rootMargin:"0px",threshold:1};this.overflowCutoff=this.actions.length,this.isFirstIntersectionCheck=!0,this.actionBarItems=[],this.intersectionObserver=new IntersectionObserver(this.handleIntersection,t);for(const t of this.host.shadowRoot.querySelectorAll("limel-action-bar-item"))this.observe(t)}observe(t){this.intersectionObserver.observe(t),this.actionBarItems.push(t)}haveItemsChanged(){const t=this.actionBarItems.some((t=>!this.host.shadowRoot.contains(t))),i=[...this.host.shadowRoot.querySelectorAll("limel-action-bar-item")].some((t=>!this.actionBarItems.includes(t)));return t||i}get host(){return r(this)}};m.style=":host(limel-action-bar){--action-bar-item-height:2rem;--limel-action-bar-item-text-color:var( --action-bar-item-text-color, rgb(var(--contrast-1100)) );--limel-action-bar-background-color:var( --action-bar-background-color, rgb(var(--contrast-100)) );box-sizing:border-box;display:inline-flex;align-items:center;padding:0.125rem 0.25rem;max-width:100%;border-radius:var(--action-bar-border-radius);background-color:var(--limel-action-bar-background-color)}:host(limel-action-bar),.items{gap:0.25rem}@media (pointer: coarse){:host(limel-action-bar),.items{gap:0.5rem}}.items{display:inline-flex;max-width:100%;min-width:0}:host(limel-action-bar.is-full-width){width:100%}:host(limel-action-bar.is-floating){--action-bar-border-radius:100vw;padding-right:0.125rem;padding-left:0.125rem;max-width:calc(100% - 2rem);box-shadow:var(--shadow-brighten-edges-inside), var(--shadow-depth-16), var(--shadow-depth-8)}";const u=class{constructor(e){t(this,e),this.select=i(this,"select",7),this.isVisible=!0,this.selected=!1,this.handleClick=t=>{t.stopPropagation(),this.select.emit(this.item)},this.tooltipId=n()}componentWillLoad(){l(this.host)}componentDidLoad(){this.triggerIconColorWarning()}disconnectedCallback(){c(this.host)}render(){return!this.isItem(this.item)&&this.item.separator?e("hr",null):e("button",{id:this.tooltipId,type:"button",onClick:this.handleClick,disabled:this.isDisabled(),class:{"is-selected":this.isItem(this.item)&&this.item.selected}},this.renderIcon(),this.renderLabel(),this.renderTooltip())}isItem(t){return!("separator"in t)}isDisabled(){return!(!this.isItem(this.item)||!this.item.disabled)||!this.isVisible||void 0}renderIcon(){if((!this.isItem(this.item)||this.item.icon)&&"icon"in this.item){const t=b(this.item.icon),i=h(this.item.icon,this.item.iconColor),o=d(this.item.icon);return e("limel-icon",{name:t,"aria-label":o,"aria-hidden":o?null:"true",style:{"--action-bar-item-icon-color":`${i}`}})}}renderLabel(){if(this.isItem(this.item)&&!this.item.iconOnly)return e("span",{class:"text"},this.item.text)}renderTooltip(){if(this.isItem(this.item))return e("limel-tooltip",{elementId:this.tooltipId,label:this.getTooltipLabel(this.item),helperLabel:this.item.commandText})}getTooltipLabel(t){const i=d(t.icon),e=t.text;return i&&e?`${i} ${e}`:e}triggerIconColorWarning(){this.isItem(this.item)&&this.item.iconColor&&console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.")}get host(){return r(this)}};u.style='@charset "UTF-8";limel-action-bar-item{transition:opacity 0.2s ease-in-out;position:relative;display:flex;align-items:center}limel-action-bar-item:not([is-visible]){opacity:0;pointer-events:none}button{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit}button:not([disabled]){transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);cursor:pointer;color:var(--limel-action-bar-item-text-color);background-color:var(--limel-action-bar-background-color)}button:not([disabled]):hover,button:not([disabled]):focus,button:not([disabled]):focus-visible{will-change:color, background-color, box-shadow, transform}button:not([disabled]):hover,button:not([disabled]):focus-visible{transform:translate3d(0, -0.04rem, 0);color:var(--limel-action-bar-item-text-color);background-color:color-mix(in srgb, var(--limel-action-bar-background-color), white 20%)}button:not([disabled]):hover{box-shadow:var(--button-shadow-hovered)}button:not([disabled]):active{--limel-clickable-transform-timing-function:cubic-bezier( 0.83, -0.15, 0.49, 1.16 );transform:translate3d(0, 0.05rem, 0);background-color:var(--limel-action-bar-background-color);box-shadow:var(--button-shadow-inset-pressed)}button:not([disabled]):hover,button:not([disabled]):active{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}button:not([disabled]):focus{outline:none}button:not([disabled]):focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}button{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:0.25rem;width:100%;min-width:var(--action-bar-item-height);max-width:var(--action-bar-item-max-width, 10rem);height:var(--action-bar-item-height);color:var(--limel-action-bar-item-text-color);border-radius:var(--action-bar-item-height);font-size:var(--limel-theme-default-font-size);padding:0 0.25rem}button:has(.text){padding:0 0.5rem}button[disabled]{opacity:0.4}button.is-selected:not(:hover){box-shadow:var(--button-shadow-inset)}button.is-selected{color:var(--lime-primary-color, var(--limel-theme-primary-color)) !important}.text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;padding:0 0.25rem}limel-icon{flex-shrink:0;width:calc(var(--action-bar-item-height) - 0.75rem);height:calc(var(--action-bar-item-height) - 0.75rem);color:var(--action-bar-item-icon-color, var(--limel-action-bar-item-text-color))}hr{all:unset;width:1px;height:1.5rem;border-radius:var(--action-bar-item-height);background-color:var(--limel-action-bar-item-text-color);opacity:0.2}@media (pointer: fine){hr{margin-right:0.5rem;margin-left:0.5rem}}limel-menu{--notification-badge-background-color:rgb(var(--contrast-600));--notification-badge-text-color:rgb(var(--contrast-1200))}limel-menu[open] button{box-shadow:var(--button-shadow-inset)}button[slot=trigger]{animation:fade-in ease-out 0.25s;font-size:0.75rem;font-weight:bold;transform:translate3d(0, 0, 0)}@keyframes fade-in{0%{scale:0.8;opacity:0}100%{scale:1;opacity:1}}';const g=class{constructor(e){t(this,e),this.select=i(this,"select",7),this.openDirection="bottom-end",this.handleSelect=t=>{t.stopPropagation(),this.select.emit(t.detail)}}render(){return e(o,{key:"75e0b7566ba7bce304b642d7877a2e1d5b32a99d"},e("limel-menu",{key:"6affbda2a405fe696e2a86448889104c8bfd1318",openDirection:this.openDirection,items:this.items,onSelect:this.handleSelect},e("button",{key:"45490eb3d812a23d20b478802e4a4b4c79ab7bae",type:"button",slot:"trigger"},`+${this.numberOfMenuItems}`)))}get numberOfMenuItems(){return this.items.filter((t=>this.isMenuItem(t))).length}isMenuItem(t){return!("separator"in t)}};export{m as limel_action_bar,u as limel_action_bar_item,g as limel_action_bar_overflow_menu}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as s,a as i}from"./p-Bnc9lzk2.js";import{b as o}from"./p-CgNJbSP4.js";const r=class{constructor(i){t(this,i),this.change=e(this,"change",7),this.flowItems=[],this.disabled=!1,this.readonly=!1,this.renderRegularFlowItem=(t,e,i)=>s("limel-progress-flow-item",{class:{"flow-item":!0,first:0===e,last:e===i.length-1,passed:e<this.selectedItemIndex,selected:t.selected},style:this.getItemStyle(t),disabled:this.disabled||this.readonly,readonly:this.readonly,item:t,onInteract:this.handleFlowItemClick(t),"data-tracking-value":t.value,currentStep:e===this.selectedItemIndex}),this.renderEndPhaseItem=(t,e,i)=>s("limel-progress-flow-item",{class:{"flow-item":!0,"off-progress-item":!0,selected:t.selected,"first-off-progress-item":0===e,"last-off-progress-item":e===i.length-1},style:this.getItemStyle(t),disabled:this.disabled||this.readonly,readonly:this.readonly,item:t,onInteract:this.handleFlowItemClick(t),"data-tracking-value":t.value}),this.handleFlowItemClick=t=>()=>{t.selected||t.disabled||this.disabled||this.change.emit(t)}}componentDidRender(){this.scrollToSelectedItem()}componentDidLoad(){this.triggerIconColorWarning()}render(){const t=this.flowItems.filter((t=>!t.isOffProgress)),e=this.flowItems.filter((t=>t.isOffProgress));return this.selectedItemIndex=t.findIndex((t=>t.selected)),[t.map(this.renderRegularFlowItem),e.map(this.renderEndPhaseItem)]}getItemStyle(t){const e=o(t.icon,t.iconColor),s={};return(null==t?void 0:t.selectedColor)&&(s["--progress-flow-step-background-color--selected"]=t.selectedColor),(null==t?void 0:t.passedColor)&&(s["--progress-flow-step-background-color--passed"]=t.passedColor),e&&(s["--progress-flow-icon-color--inactive"]=e),s}scrollToSelectedItem(){const t=this.getElementForSelectedItem();t&&this.element.scrollTo({behavior:"smooth",left:t.offsetLeft-this.element.offsetLeft-this.element.offsetWidth/2+t.offsetWidth/2})}getElementForSelectedItem(){return this.element.shadowRoot.querySelector(".flow-item.selected")}triggerIconColorWarning(){for(const t of this.flowItems)t.iconColor&&console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.")}get element(){return i(this)}};r.style=":host{--limel-progress-flow-step-content:2;--limel-progress-flow-divider:1;--step-height:2rem;--selected-indicator-right:-0.5rem;--max-text-width:10rem;isolation:isolate;box-sizing:border-box;width:100%;display:flex;flex-direction:row;align-items:flex-start;overflow-x:auto;scrollbar-width:none;-ms-overflow-style:none;padding:0.25rem}:host::-webkit-scrollbar{display:none}:host(.is-narrow){--step-height:1.5rem;--selected-indicator-right:0}";export{r as limel_progress_flow}
@@ -0,0 +1 @@
1
+ import{r as e,c as o,h as t,a as i}from"./p-Bnc9lzk2.js";import{d as n}from"./p-z_E3sq3p.js";import{m as s,r}from"./p-BgTwPGeH.js";import{c as a}from"./p-JbKhhoXs.js";import{b as l,d as c,g as d}from"./p-CgNJbSP4.js";import{t as p}from"./p-DAFuhe5e.js";import"./p-C3hECvXE.js";const h=class{constructor(i){e(this,i),this.open=o(this,"open",7),this.close=o(this,"close",7),this.action=o(this,"action",7),this.isOpen=!1,this.invalid=!1,this.language="en",this.bodyId=a(),this.headingId=a(),this.onClick=()=>{this.handleInteraction()},this.handleInteraction=()=>{this.isOpen=!this.isOpen,this.isOpen?(this.open.emit(),setTimeout(n,100)):this.close.emit()},this.renderExpandCollapseSign=()=>t("div",{class:"expand-icon",role:"presentation","aria-hidden":"true"},t("div",{class:"line"}),t("div",{class:"line"}),t("div",{class:"line"}),t("div",{class:"line"})),this.renderIcon=()=>{if(!this.icon)return;const e=d(this.icon),o=l(this.icon),i=c(this.icon);return t("limel-icon",{name:e,"aria-label":i,"aria-hidden":i?null:"true",style:{color:`${o}`}})},this.renderHeading=()=>{if(this.header)return t("h2",{class:"title mdc-typography mdc-typography--headline2",id:this.headingId},this.header)},this.renderActions=()=>{if(this.actions)return t("div",{class:"actions"},this.actions.map(this.renderActionButton))},this.renderActionButton=e=>t("limel-icon-button",{icon:e.icon,label:e.label,disabled:e.disabled,onClick:this.handleActionClick(e)}),this.handleActionClick=e=>o=>{o.stopPropagation(),this.action.emit(e)},this.getCollapsibleSectionAriaLabel=()=>p.get(this.isOpen?"collapsible-section.close":"collapsible-section.open",this.language,{header:this.header?`"${this.header}"`:" "})}componentDidRender(){const e=this.host.shadowRoot.querySelector(".open-close-toggle");s(e)}disconnectedCallback(){const e=this.host.shadowRoot.querySelector(".open-close-toggle");r(e)}render(){return t("section",{key:"404f827974295da2387c00779681c382f8bc31d1",class:this.isOpen?"open":"","aria-invalid":this.invalid,"aria-labelledby":this.header?this.headingId:null},t("header",{key:"31cfc1385f39c2f1372f0aebf739aee3b1735d8f"},t("button",{key:"977107678e2dfcd162ee2a4b187a199126f8bafe",class:"open-close-toggle",onClick:this.onClick,"aria-controls":this.bodyId,"aria-expanded":this.isOpen?"true":"false","aria-label":this.getCollapsibleSectionAriaLabel(),type:"button"}),this.renderExpandCollapseSign(),this.renderIcon(),this.renderHeading(),t("div",{key:"2f5001f43966fec8f36845a38c654b5e2f40338f",class:"divider-line",role:"presentation"}),this.renderHeaderSlot(),this.renderActions()),t("div",{key:"a51da36960e65703e88bb4bf9e8cddccd66f3f63",class:"body",inert:!this.isOpen,"aria-hidden":String(!this.isOpen),id:this.bodyId,role:"region"},t("slot",{key:"dcb7c0e4e86829dbd25bf114aba0413b8bd85b2c"})))}renderHeaderSlot(){return t("slot",{name:"header"})}get host(){return i(this)}};h.style='@charset "UTF-8";.expand-icon{position:relative;display:flex;align-items:center;justify-content:center;height:1.875rem;margin:0 0 0 0.5rem;width:0.75rem;flex-shrink:0}.line{position:absolute;inset:auto;margin:auto;width:100%;border-radius:1rem;height:0.125rem}.line:first-of-type,.line:last-of-type{transition:opacity 0.2s ease 0.1s, transform 0.4s ease 0.3s;opacity:0;background-color:var(--header-stroke-color, rgb(var(--contrast-900)))}.line:nth-of-type(2){transform:translate3d(0, 0.25rem, 0) rotate(90deg)}.line:nth-of-type(3){transform:translate3d(0, -0.25rem, 0) rotate(-90deg)}.line:nth-of-type(2),.line:nth-of-type(3){transition:opacity 0.2s ease, transform 0.18s ease}.line:nth-of-type(2):before,.line:nth-of-type(2):after,.line:nth-of-type(3):before,.line:nth-of-type(3):after{content:"";position:absolute;inset:0;margin:auto;width:50%;height:100%;border-radius:inherit;background-color:var(--header-stroke-color, rgb(var(--contrast-900)))}.line:nth-of-type(2):before,.line:nth-of-type(3):before{transform:translate3d(0, -0.1rem, 0) rotate(45deg)}.line:nth-of-type(2):after,.line:nth-of-type(3):after{transform:translate3d(0, 0.1rem, 0) rotate(-45deg)}.open-close-toggle:hover+.expand-icon .line:first-of-type,.open-close-toggle:hover+.expand-icon .line:last-of-type,.open-close-toggle:focus-visible+.expand-icon .line:first-of-type,.open-close-toggle:focus-visible+.expand-icon .line:last-of-type{transition:opacity 0.8s ease 0.4s, transform 0.4s ease 0.3s;opacity:1}.open-close-toggle:hover+.expand-icon .line:first-of-type,.open-close-toggle:focus-visible+.expand-icon .line:first-of-type{transform:rotate3d(0, 0, 1, 0deg)}.open-close-toggle:hover+.expand-icon .line:last-of-type,.open-close-toggle:focus-visible+.expand-icon .line:last-of-type{transform:rotate3d(0, 0, 1, 0deg)}.open-close-toggle:hover+.expand-icon .line:nth-of-type(2),.open-close-toggle:hover+.expand-icon .line:nth-of-type(3),.open-close-toggle:focus-visible+.expand-icon .line:nth-of-type(2),.open-close-toggle:focus-visible+.expand-icon .line:nth-of-type(3){transition:opacity 0.5s ease 0.4s, transform 0.7s cubic-bezier(0.85, 0.11, 0.14, 1.35) 0.2s}.open-close-toggle:hover+.expand-icon .line:nth-of-type(2),.open-close-toggle:focus-visible+.expand-icon .line:nth-of-type(2){transform:translate3d(0, 0.5rem, 0) rotate(90deg);opacity:0.4}.open-close-toggle:hover+.expand-icon .line:nth-of-type(3),.open-close-toggle:focus-visible+.expand-icon .line:nth-of-type(3){transform:translate3d(0, -0.5rem, 0) rotate(-90deg);opacity:0.4}section.open .line:first-of-type,section.open .line:last-of-type{transition:opacity 0.2s ease 0.1s, transform 0.4s ease 0.3s;opacity:1}section.open .line:first-of-type{transform:rotate3d(0, 0, 1, 0deg)}section.open .line:last-of-type{transform:rotate3d(0, 0, 1, 0deg)}section.open .line:nth-of-type(2),section.open .line:nth-of-type(3){transition:opacity 1s ease, transform 0.4s ease}section.open .line:nth-of-type(2){transform:translate3d(0, 1rem, 0) rotate(90deg);opacity:0}section.open .line:nth-of-type(3){transform:translate3d(0, -1rem, 0) rotate(-90deg);opacity:0}section.open .open-close-toggle:hover+.expand-icon .line:first-of-type,section.open .open-close-toggle:hover+.expand-icon .line:last-of-type,section.open .open-close-toggle:focus-visible+.expand-icon .line:first-of-type,section.open .open-close-toggle:focus-visible+.expand-icon .line:last-of-type{transition:opacity 0.2s ease 0.4s, transform 0.4s cubic-bezier(0.85, 0.11, 0.14, 1.35) 0.2s}section.open .open-close-toggle:hover+.expand-icon .line:first-of-type,section.open .open-close-toggle:focus-visible+.expand-icon .line:first-of-type{transform:rotate3d(0, 0, 1, 45deg)}section.open .open-close-toggle:hover+.expand-icon .line:last-of-type,section.open .open-close-toggle:focus-visible+.expand-icon .line:last-of-type{transform:rotate3d(0, 0, 1, -45deg)}section.open .open-close-toggle:hover+.expand-icon .line:nth-of-type(2),section.open .open-close-toggle:focus-visible+.expand-icon .line:nth-of-type(2){transform:translate3d(0, 1rem, 0) rotate(90deg);opacity:0}section.open .open-close-toggle:hover+.expand-icon .line:nth-of-type(3),section.open .open-close-toggle:focus-visible+.expand-icon .line:nth-of-type(3){transform:translate3d(0, -1rem, 0) rotate(-90deg);opacity:0}:host(limel-collapsible-section){--border-radius-of-header:0.75rem;display:block}:host([hidden]){display:none}button.open-close-toggle{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;position:absolute;inset:0;width:100%}button.open-close-toggle:focus{outline:none}button.open-close-toggle:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}button.open-close-toggle{transition:background-color 0.4s ease, border-radius 0.1s ease;cursor:pointer;z-index:-1;background-color:var(--closed-header-background-color, rgb(var(--contrast-200)));border-radius:var(--border-radius-of-header)}button.open-close-toggle:hover,button.open-close-toggle:focus-visible{background-color:var(--open-header-background-color, rgb(var(--contrast-300)))}section.open button.open-close-toggle{background-color:var(--open-header-background-color, rgb(var(--contrast-100)));border-radius:var(--border-radius-of-header) var(--border-radius-of-header) var(--limel-cs-open-header-bottom-border-radius, 0) var(--limel-cs-open-header-bottom-border-radius, 0)}section.open button.open-close-toggle:hover,section.open button.open-close-toggle:focus-visible{background-color:var(--open-header-background-color, rgb(var(--contrast-300)))}.title,.divider-line,.expand-icon{pointer-events:none}section{transition:box-shadow 0.4s ease;border-radius:var(--border-radius-of-header)}section[aria-invalid]:not([aria-invalid=false]){--header-stroke-color:rgb(var(--color-red-default)) !important}section[aria-invalid]:not([aria-invalid=false]):not(.open){box-shadow:0 0 0 1px rgb(var(--color-red-default))}header{isolation:isolate;position:relative;align-items:center;display:flex;justify-content:space-between;gap:0.5rem;padding-left:0.5rem;height:2.5rem}limel-icon{width:1.5rem;flex-shrink:0}.title{font-size:1rem;font-weight:300;color:var(--limel-theme-on-surface-color);justify-self:flex-start;user-select:none;height:auto;max-height:3rem;line-height:1.2rem;display:-webkit-box;overflow:hidden;white-space:normal;-webkit-box-orient:vertical;-webkit-line-clamp:2}.divider-line{transition:opacity 0.3s ease 0.3s;flex-grow:1;height:0.125rem;border-radius:1rem;background-color:var(--header-stroke-color, rgb(var(--contrast-900)));opacity:0;margin-right:0.5rem}section.open .divider-line{opacity:0.16}.actions{justify-self:flex-end;flex-shrink:0}::slotted([slot=header]){margin-right:0.5rem}.body{background-color:var(--body-background-color, var(--contrast-100));padding-left:var(--body-padding, 1.25rem);padding-right:var(--body-padding, 1.25rem);border-radius:0 0 var(--border-radius-of-header) var(--border-radius-of-header)}.body{transition:grid-template-rows var(--limel-cs-grid-template-rows-transition-speed) cubic-bezier(1, 0.09, 0, 0.89);display:grid;grid-template-rows:var(--limel-cs-grid-template-rows)}.body slot{transition:opacity var(--limel-cs-opacity-transition-speed) ease var(--limel-cs-opacity-transition-delay);display:block;overflow:hidden}:host(limel-collapsible-section:not([is-open])){--limel-cs-opacity-transition-speed:0.1s;--limel-cs-opacity-transition-delay:0s;--limel-cs-grid-template-rows-transition-speed:0.3s;--limel-cs-grid-template-rows:0fr}:host(limel-collapsible-section:not([is-open])) slot{opacity:0}:host(limel-collapsible-section[is-open]){--limel-cs-opacity-transition-speed:0.4s;--limel-cs-opacity-transition-delay:0.3s;--limel-cs-grid-template-rows-transition-speed:0.46s;--limel-cs-grid-template-rows:1fr}:host(limel-collapsible-section[is-open]) slot{opacity:1}header:hover+.body,header:has(.open-close-toggle:hover)+.body,header:has(.open-close-toggle:focus-visible)+.body{will-change:grid-template-rows}header:hover+.body slot,header:has(.open-close-toggle:hover)+.body slot,header:has(.open-close-toggle:focus-visible)+.body slot{will-change:opacity}';export{h as limel_collapsible_section}
@@ -1 +1 @@
1
- import{r as e,h as i,H as t}from"./p-BGxJfR2f.js";const l=class{constructor(t){e(this,t),this.invalid=!1,this.hasContent=()=>!!(this.maxLength>0||this.helperText&&this.helperText.length>0),this.renderHelperText=()=>{if(this.helperText)return i("span",{class:"helper-text",id:this.helperTextId},this.helperText)},this.renderCharacterCounter=()=>{if(this.maxLength)return i("span",{class:"counter"},`${this.length} / ${this.maxLength}`)}}render(){return i(t,{key:"fa23d0b17ccd8b914ce22e3dcad3f1967f942c59",tabIndex:-1,class:{invalid:this.invalid},style:this.hasContent()?{}:{display:"none"},"aria-hidden":!this.hasContent()},i("div",{key:"33d0ca3087175c7cf560aa97cc4739c75b068c8f"},this.renderHelperText(),this.renderCharacterCounter()))}};l.style=":host(limel-helper-line){transition:opacity 0.2s ease;box-sizing:border-box;display:grid;min-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:0.6875rem;line-height:normal;color:rgb(var(--contrast-1200))}div{display:flex;justify-content:space-between;gap:0.75rem;overflow:hidden;padding:0 1rem}:host(limel-helper-line.invalid){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-helper-line.invalid) .helper-text{color:var(--limel-theme-error-color)}.counter{flex-shrink:0;margin-left:auto}.helper-text,.counter{padding-top:0.125rem}:host(limel-helper-line){transition:grid-template-rows var(--limel-h-l-grid-template-rows-transition-speed, 0.46s) cubic-bezier(1, 0.09, 0, 0.89);grid-template-rows:var(--limel-h-l-grid-template-rows, 1fr)}:host(limel-helper-line.hide){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}";export{l as limel_helper_line}
1
+ import{r as e,h as i,H as t}from"./p-Bnc9lzk2.js";const l=class{constructor(t){e(this,t),this.invalid=!1,this.hasContent=()=>!!(this.maxLength>0||this.helperText&&this.helperText.length>0),this.renderHelperText=()=>{if(this.helperText)return i("span",{class:"helper-text",id:this.helperTextId},this.helperText)},this.renderCharacterCounter=()=>{if(this.maxLength)return i("span",{class:"counter"},`${this.length} / ${this.maxLength}`)}}render(){return i(t,{key:"5ecd83d58e8412274b36def796d0a9c24b67e582",tabIndex:-1,class:{invalid:this.invalid},style:this.hasContent()?{}:{display:"none"},"aria-hidden":!this.hasContent()},i("div",{key:"f10706f6e5f7be45da53a58a13b44a936eb091b4"},this.renderHelperText(),this.renderCharacterCounter()))}};l.style=":host(limel-helper-line){transition:opacity 0.2s ease;box-sizing:border-box;display:grid;min-width:0;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:0.6875rem;line-height:normal;color:rgb(var(--contrast-1200))}div{display:flex;justify-content:space-between;gap:0.75rem;overflow:hidden;padding:0 1rem}:host(limel-helper-line.invalid){--limel-h-l-grid-template-rows-transition-speed:0.46s;--limel-h-l-grid-template-rows:1fr}:host(limel-helper-line.invalid) .helper-text{color:var(--limel-theme-error-color)}.counter{flex-shrink:0;margin-left:auto}.helper-text,.counter{padding-top:0.125rem}:host(limel-helper-line){transition:grid-template-rows var(--limel-h-l-grid-template-rows-transition-speed, 0.46s) cubic-bezier(1, 0.09, 0, 0.89);grid-template-rows:var(--limel-h-l-grid-template-rows, 1fr)}:host(limel-helper-line.hide){--limel-h-l-grid-template-rows-transition-speed:0.3s;--limel-h-l-grid-template-rows:0fr}";export{l as limel_helper_line}
@@ -3,6 +3,11 @@
3
3
  */
4
4
  export type DateType = 'datetime' | 'date' | 'time' | 'week' | 'month' | 'quarter' | 'year';
5
5
  /**
6
+ * The languages the components can be translated into.
7
+ *
8
+ * At runtime a full BCP 47 tag, such as `nb-NO`, also resolves: it is matched
9
+ * on its primary subtag. Cast to this type when passing one on.
10
+ *
6
11
  * @public
7
12
  */
8
13
  export type Languages = 'da' | 'de' | 'en' | 'fi' | 'fr' | 'nb' | 'no' | 'nl' | 'sv';
@@ -0,0 +1,288 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { Languages } from '../date-picker/date.types';
3
+ import { GoToPageEvent } from './pagination.types';
4
+ /**
5
+ * Pagination reports where the user is in a set of results, and allows them
6
+ * to move somewhere else in it.
7
+ * For a user, knowing where they are matters as much as being able to move.
8
+ * A page number and a total tells users how much there is in the list that they are
9
+ * looking at, and how far into it they have got; and hovering a page shows
10
+ * exactly which items it holds.
11
+ *
12
+ * @exampleComponent limel-example-pagination-basic
13
+ * @exampleComponent limel-example-pagination-single-page
14
+ * @exampleComponent limel-example-pagination-page-size
15
+ * @exampleComponent limel-example-pagination-page
16
+ * @exampleComponent limel-example-pagination-total-items
17
+ * @exampleComponent limel-example-pagination-loading
18
+ * @exampleComponent limel-example-pagination-language
19
+ *
20
+ * @beta
21
+ */
22
+ export declare class Pagination {
23
+ /**
24
+ * Which page to show. The first page is `1`, not `0`.
25
+ * Set it to the page from `goToPage` to move the control.
26
+ */
27
+ page: number;
28
+ /**
29
+ * Number of items that fit on one page.
30
+ * Together with `totalItems`, used by the component to calculate the total number of pages.
31
+ */
32
+ pageSize: number;
33
+ /**
34
+ * How many items there are in total, across every page.
35
+ * `null` means the count has not arrived yet.
36
+ * Together with `pageSize`, used by the component to calculate the total number of pages.
37
+ */
38
+ totalItems: number | null;
39
+ /**
40
+ * Set this to `true` while you are fetching a page.
41
+ */
42
+ loading: boolean;
43
+ /**
44
+ * The language used for the labels and the tooltips, and for the way
45
+ * numbers are written.
46
+ */
47
+ language: Languages;
48
+ /**
49
+ * Asks for a page to be loaded, and says which items it holds.
50
+ *
51
+ * The component does not move itself. Clicking a page emits this and
52
+ * nothing else; set `page` to the number it carries and the control
53
+ * follows. Not setting it is how you decline — useful when the load fails,
54
+ * or when there is unsaved work to confirm first.
55
+ *
56
+ * The one exception is a page that does not exist, which it cannot show
57
+ * whatever you say. There it shows the nearest page that does and emits so
58
+ * you can catch up.
59
+ */
60
+ goToPage: EventEmitter<GoToPageEvent>;
61
+ /**
62
+ * The count from the last time we had one, so the control can hold its
63
+ * shape while a new one is on its way. The count rather than the page count
64
+ * it implies, because `pageSize` may change while we are waiting.
65
+ */
66
+ private lastKnownTotalItems;
67
+ private liveMessage;
68
+ /** Ids are per slot, not per page: a page moves between slots, a slot does not. */
69
+ private readonly idPrefix;
70
+ /** The value each prop was last complained about with. */
71
+ private readonly warnedAbout;
72
+ private numberFormat?;
73
+ /** Settled once per render, and the only thing `render` reads. */
74
+ private view;
75
+ /** The page the previous render showed. */
76
+ private shownPage?;
77
+ /** Which items the page held last render, announced or not. */
78
+ private lastRange?;
79
+ /** The `page` we last reported a correction for, so we report it once. */
80
+ private reportedAsk?;
81
+ /** A correction the consumer has not been told about. */
82
+ private pendingCorrection?;
83
+ /**
84
+ * Settling here rather than in a `@Watch` keeps the result the same
85
+ * however the consumer assigns the props. A watcher runs the moment one
86
+ * property is set, so `totalItems` and `page` assigned in the same tick
87
+ * would settle twice, the first time against a page count about to change.
88
+ */
89
+ componentWillRender(): void;
90
+ /**
91
+ * @param total - the count to divide, or `null` if none is known
92
+ * @param pageSize - how many items fit on one page
93
+ * @returns how many pages that makes, or `null` when nothing is known
94
+ */
95
+ private countPages;
96
+ componentDidRender(): void;
97
+ /**
98
+ * Read out the page whenever what it holds changes — not only when its
99
+ * number does. A page size that doubles leaves the user on page 3 of a
100
+ * different set, and someone who cannot see the screen is owed that.
101
+ *
102
+ * Compared as numbers rather than as the sentence they make. The same
103
+ * items in another language, or a count going away while the next one
104
+ * loads, both rewrite the sentence without anything having moved.
105
+ *
106
+ * @param page - the page about to be rendered
107
+ */
108
+ private readOut;
109
+ /**
110
+ * The items themselves, not the numbers that imply them: a total that
111
+ * ticks from 248 to 249 leaves every page but the last one holding exactly
112
+ * what it held.
113
+ *
114
+ * @param page - the page about to be rendered
115
+ * @returns which items the page holds, or `null` while that is unknown
116
+ */
117
+ private rangeIdentity;
118
+ /**
119
+ * @param page - the page to measure, 1-based
120
+ * @returns how many items come before it
121
+ */
122
+ private offsetOf;
123
+ /**
124
+ * The one place that works out which items a page holds. The last page is
125
+ * usually short, so the upper bound is capped at what exists.
126
+ *
127
+ * @param page - the page to measure, 1-based
128
+ * @returns the first and last item on it, or `null` with no count
129
+ */
130
+ private itemsOn;
131
+ /**
132
+ * Tell the consumer when we are not showing what they asked for.
133
+ *
134
+ * A page we had to *correct* is always news: the value was unusable
135
+ * whatever the count says. A page we had to *clamp* is only news when we
136
+ * have a count of our own to justify it — while one is in flight we hold
137
+ * the shape we last knew, and a shape is not evidence that the consumer's
138
+ * page is wrong. Asserting it against a stale count destroys a page that
139
+ * was about to turn out valid, and nothing later can undo that.
140
+ *
141
+ * @param page - the page about to be rendered
142
+ * @param usable - the page they asked for, once validated
143
+ */
144
+ private reconcile;
145
+ protected handleLanguageChange(): void;
146
+ render(): any;
147
+ /**
148
+ * Without a count we know where the user is but not how far the set goes,
149
+ * so we show that one page rather than nothing. A strip of arrows with no
150
+ * number on it says less than it looks like it does.
151
+ *
152
+ * @param page - the page being shown
153
+ * @param pageCount - how many pages there are, or `null` if not yet known
154
+ * @returns the positions to render
155
+ */
156
+ private slotsFor;
157
+ /**
158
+ * A gap marker, or a page button.
159
+ *
160
+ * @param slot - the position to render
161
+ * @param index - where the position sits in the window
162
+ * @returns the rendered slot
163
+ */
164
+ private readonly renderSlot;
165
+ /**
166
+ * A spinner around the page the user is heading for, while it loads.
167
+ *
168
+ * @param isCurrent - whether this is the page being loaded
169
+ * @returns the rendered spinner
170
+ */
171
+ private renderSpinner;
172
+ /**
173
+ * Names the page a button leads to, and what that page holds.
174
+ *
175
+ * Nested inside the button so the two are created and torn down as one:
176
+ * `limel-tooltip` resolves its owner element once and never looks again.
177
+ *
178
+ * @param page - the page the tooltip describes
179
+ * @param index - where the page sits in the window
180
+ * @returns the rendered tooltip
181
+ */
182
+ private renderTooltip;
183
+ /**
184
+ * @param direction - which arrow to render
185
+ * @returns the rendered arrow
186
+ */
187
+ private renderArrow;
188
+ /**
189
+ * Says what the arrow does, which its glyph only implies, and where it
190
+ * lands. At either end of the set there is nowhere to land.
191
+ *
192
+ * @param direction - which arrow to describe
193
+ * @returns the rendered tooltip
194
+ */
195
+ private renderArrowTooltip;
196
+ private isArrowDisabled;
197
+ private readonly step;
198
+ private readonly selectPage;
199
+ /**
200
+ * @param page - the page to ask for, 1-based
201
+ */
202
+ private goTo;
203
+ /** The page on screen: the one asked for, within the range that exists. */
204
+ private get currentPage();
205
+ private emitGoToPage;
206
+ /**
207
+ * `totalItems` when it is a count we can do arithmetic with, and `null`
208
+ * — "not known yet" — when it is not. A `NaN` count would make the page
209
+ * count `NaN`, which no comparison catches.
210
+ */
211
+ private get knownTotalItems();
212
+ /** `pageSize`, or the default when we were given something unusable. */
213
+ private get usablePageSize();
214
+ /**
215
+ * A page number we can count with, whatever the consumer supplied.
216
+ *
217
+ * @param page - the value the consumer gave
218
+ * @returns a whole number of at least 1
219
+ */
220
+ private wholePage;
221
+ /**
222
+ * A prop as a whole number we can safely count with, or the fallback.
223
+ *
224
+ * `Number.isSafeInteger` rather than `Number.isFinite`: past 2^53 a page
225
+ * number cannot be incremented, and arithmetic on it stops being exact.
226
+ *
227
+ * @param prop - the prop being read, for the message
228
+ * @param value - what the consumer gave
229
+ * @param least - the smallest value that makes sense
230
+ * @param fallback - what to use when the value does not
231
+ * @returns a whole number of at least `least`
232
+ */
233
+ private countable;
234
+ /**
235
+ * Caps only the top; callers have already raised the page to at least one.
236
+ *
237
+ * @param page - the page to cap
238
+ * @param pageCount
239
+ * @returns the page, or the last one if it is beyond the end
240
+ */
241
+ private capToLastPage;
242
+ /**
243
+ * Keyed on the prop and the value, so repeated renders stay quiet while a
244
+ * new fault still gets said — including the same fault returning after the
245
+ * prop has been usable in between. The message is built only when it is
246
+ * going to be read: these run several times per render.
247
+ *
248
+ * @param prop - the prop being complained about
249
+ * @param value - what it held
250
+ * @param message - what is wrong and what was done instead
251
+ */
252
+ private warnOnce;
253
+ private pageLabel;
254
+ /**
255
+ * `21–40 of 248` for a given page. The last page is usually short, so the
256
+ * upper bound is capped at the number of items that actually exist.
257
+ *
258
+ * @param page - the page to describe, 1-based
259
+ * @returns the translated range
260
+ */
261
+ private rangeLabel;
262
+ private slotId;
263
+ private arrowId;
264
+ /**
265
+ * The formatter is built once and kept until `language` changes: a page and
266
+ * its tooltip need six formatted numbers between them.
267
+ *
268
+ * @param value - the number to write out
269
+ * @returns the number in the current language
270
+ */
271
+ private formatNumber;
272
+ /**
273
+ * `Intl.NumberFormat` throws on a language it cannot parse, and this is
274
+ * called from `render`, so an unusable one would leave the control drawing
275
+ * nothing at all — the single state a user cannot click their way out of.
276
+ * `src/util/language.ts` states the rule this keeps.
277
+ *
278
+ * A tag it cannot parse throws; a well-formed tag it does not support, like
279
+ * `zz`, does not — it quietly resolves to whatever locale the machine runs
280
+ * in. Both end up formatting numbers in something other than what was
281
+ * asked for, so both are worth saying out loud.
282
+ *
283
+ * @returns a formatter, in the given language where that is possible
284
+ */
285
+ private createNumberFormat;
286
+ private readonly translate;
287
+ }
288
+ //# sourceMappingURL=pagination.d.ts.map
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Why a page is being asked for.
3
+ *
4
+ * `user` is someone picking a page. `clamped` is the component reporting that
5
+ * it could not show the page it was given — either that page no longer exists,
6
+ * or the value was not one it could use — and is showing the nearest one it
7
+ * can. Worth telling apart, because a correction is not a navigation and
8
+ * usually should not become an entry in the browser's history.
9
+ *
10
+ * @beta
11
+ */
12
+ export type GoToPageReason = 'user' | 'clamped';
13
+ /**
14
+ * Everything needed to load a page: which one it is, and where it sits in the
15
+ * set.
16
+ *
17
+ * `offset` comes along with it because that is the half most APIs ask for that
18
+ * you would otherwise compute, and the half that is easy to get wrong by one.
19
+ *
20
+ * @beta
21
+ */
22
+ export interface GoToPageEvent {
23
+ /**
24
+ * The page being asked for. Set `page` to this to show it. The first page
25
+ * is `1`, not `0`.
26
+ */
27
+ page: number;
28
+ /** Whether the user picked this page, or the component had to move them. */
29
+ reason: GoToPageReason;
30
+ /**
31
+ * How many items fit on one page. Usually `pageSize`, but if that was not
32
+ * a number the component could use, this is what it used instead.
33
+ */
34
+ pageSize: number;
35
+ /**
36
+ * How many items to skip to reach this page, which is
37
+ * `(page - 1) * pageSize`. Along with `pageSize`, this is what most APIs
38
+ * ask for, so you do not have to work the arithmetic out yourself.
39
+ */
40
+ offset: number;
41
+ }
42
+ //# sourceMappingURL=pagination.types.d.ts.map
@@ -0,0 +1,38 @@
1
+ /**
2
+ * One rendered position in the pagination component.
3
+ *
4
+ * A `gap` stands for one or more pages that the window does not have room for.
5
+ */
6
+ export type PageSlot = {
7
+ kind: 'page';
8
+ page: number;
9
+ } | {
10
+ kind: 'gap';
11
+ from: number;
12
+ to: number;
13
+ };
14
+ /**
15
+ * How many positions are rendered at once, counting both page numbers and gap
16
+ * markers. Constant, so the control keeps its width as the user pages through
17
+ * a set — a gap and a page number take up the same room, so what matters is
18
+ * how many positions there are, not how many of them are numbers.
19
+ */
20
+ export declare const VISIBLE_SLOTS = 7;
21
+ /**
22
+ * Build the list of positions to render for a given page count.
23
+ *
24
+ * The first and the last page are always included, so both ends of the set are
25
+ * always one click away. The rest of the room goes to the pages around the
26
+ * current one, and whatever is skipped becomes a gap.
27
+ *
28
+ * `Number.isSafeInteger` rather than `Number.isInteger`: past 2^53 arithmetic
29
+ * on page numbers stops being exact. The component validates these too; this
30
+ * guards them again because the cost of being wrong here is a wrong window
31
+ * during render.
32
+ *
33
+ * @param currentPage - the page the user is on, 1-based
34
+ * @param totalPages - how many pages there are in total
35
+ * @returns the positions to render, in order
36
+ */
37
+ export declare function getPageSlots(currentPage: number, totalPages: number): PageSlot[];
38
+ //# sourceMappingURL=pagination.util.d.ts.map