@limetech/lime-elements 40.15.0 → 40.16.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 (363) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/cjs/_Map-BsuE0Kgq.js +57 -0
  3. package/dist/cjs/_arrayPush-0Rd-eNkQ.js +420 -0
  4. package/dist/cjs/_baseFlatten-BonTAUIo.js +199 -0
  5. package/dist/cjs/{_baseForOwn-8jMPwf3X.js → _baseForOwn-Bflq946d.js} +1 -1
  6. package/dist/cjs/{_baseIsEqual-zzV9DKMv.js → _baseIsEqual-DNSR68qD.js} +16 -428
  7. package/dist/cjs/_baseIteratee-Cistiy8H.js +263 -0
  8. package/dist/cjs/{_baseSet-DykMx7uF.js → _basePickBy-DeOMws-h.js} +29 -43
  9. package/dist/cjs/{_getPrototype-CCLHkBHj.js → _getPrototype-D74M8h-k.js} +1 -1
  10. package/dist/cjs/{_getTag-BC28Za7d.js → _getTag-CxGZ3DRt.js} +7 -57
  11. package/dist/cjs/{cloneDeep-D2immmwT.js → cloneDeep-CiuKX6HE.js} +3 -3
  12. package/dist/cjs/{drag-to-reorder-BP5YkPuu.js → drag-to-reorder-BmVz_kUy.js} +3 -193
  13. package/dist/cjs/{_baseIteratee-BIMRm4nq.js → hasIn-BQ92Jk0F.js} +10 -264
  14. package/dist/cjs/help-props-Ds30nnt1.js +90 -0
  15. package/dist/cjs/isArrayLike-0-cyPB5I.js +35 -0
  16. package/dist/cjs/{isEmpty-CCxl3bYc.js → isEmpty-BsdhcVKT.js} +4 -3
  17. package/dist/cjs/{isEqual-D3eFkhqd.js → isEqual-QhCilNoo.js} +1 -1
  18. package/dist/cjs/isLength-DvlFY_9S.js +37 -0
  19. package/dist/cjs/lime-elements.cjs.js +1 -1
  20. package/dist/cjs/limel-3d-hover-effect-glow.cjs.entry.js +1 -1
  21. package/dist/cjs/limel-action-bar_3.cjs.entry.js +3 -3
  22. package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
  23. package/dist/cjs/limel-badge.cjs.entry.js +2 -2
  24. package/dist/cjs/limel-banner.cjs.entry.js +1 -1
  25. package/dist/cjs/limel-breadcrumbs_6.cjs.entry.js +6 -6
  26. package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
  27. package/dist/cjs/limel-button.cjs.entry.js +2 -2
  28. package/dist/cjs/limel-callout.cjs.entry.js +1 -1
  29. package/dist/cjs/limel-card.cjs.entry.js +1 -1
  30. package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
  31. package/dist/cjs/limel-chip-set.cjs.entry.js +11 -8
  32. package/dist/cjs/limel-chip_2.cjs.entry.js +7 -5
  33. package/dist/cjs/limel-circular-progress.cjs.entry.js +1 -1
  34. package/dist/cjs/limel-code-diff.cjs.entry.js +1 -1
  35. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  36. package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
  37. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +2 -2
  38. package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
  39. package/dist/cjs/limel-dialog.cjs.entry.js +12 -9
  40. package/dist/cjs/limel-dock.cjs.entry.js +2 -2
  41. package/dist/cjs/limel-drag-handle_2.cjs.entry.js +3 -3
  42. package/dist/cjs/limel-email-viewer.cjs.entry.js +1 -1
  43. package/dist/cjs/limel-file-dropzone_2.cjs.entry.js +14 -10
  44. package/dist/cjs/limel-file.cjs.entry.js +1 -1
  45. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +3 -2
  46. package/dist/cjs/limel-flex-container.cjs.entry.js +1 -1
  47. package/dist/cjs/limel-form-header.cjs.entry.js +59 -0
  48. package/dist/cjs/limel-form.cjs.entry.js +140 -45
  49. package/dist/cjs/limel-grid.cjs.entry.js +1 -1
  50. package/dist/cjs/limel-header.cjs.entry.js +1 -1
  51. package/dist/cjs/{limel-help.cjs.entry.js → limel-help_2.cjs.entry.js} +22 -2
  52. package/dist/cjs/limel-helper-line_3.cjs.entry.js +4 -4
  53. package/dist/cjs/limel-hotkey_4.cjs.entry.js +5 -5
  54. package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
  55. package/dist/cjs/limel-icon.cjs.entry.js +1 -1
  56. package/dist/cjs/limel-info-tile.cjs.entry.js +2 -2
  57. package/dist/cjs/limel-list-item.cjs.entry.js +2 -2
  58. package/dist/cjs/limel-markdown.cjs.entry.js +1 -1
  59. package/dist/cjs/limel-masonry-layout.cjs.entry.js +1 -1
  60. package/dist/cjs/limel-menu-item-meta.cjs.entry.js +1 -1
  61. package/dist/cjs/limel-pagination.cjs.entry.js +1 -1
  62. package/dist/cjs/limel-picker.cjs.entry.js +1 -1
  63. package/dist/cjs/limel-popover_2.cjs.entry.js +2 -2
  64. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +13 -10
  65. package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
  66. package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
  67. package/dist/cjs/limel-resize-handle.cjs.entry.js +1 -1
  68. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  69. package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
  70. package/dist/cjs/limel-side-panel.cjs.entry.js +1 -1
  71. package/dist/cjs/limel-slider.cjs.entry.js +3 -3
  72. package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
  73. package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
  74. package/dist/cjs/limel-switch.cjs.entry.js +1 -1
  75. package/dist/cjs/limel-tab-bar.cjs.entry.js +14 -10
  76. package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
  77. package/dist/cjs/limel-table.cjs.entry.js +21 -41
  78. package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +3 -3
  79. package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
  80. package/dist/cjs/loader.cjs.js +1 -1
  81. package/dist/cjs/negate-Bg3SqQh6.js +42 -0
  82. package/dist/collection/collection-manifest.json +1 -0
  83. package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
  84. package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
  85. package/dist/collection/components/action-bar/action-bar.js +2 -2
  86. package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
  87. package/dist/collection/components/badge/badge.js +2 -2
  88. package/dist/collection/components/banner/banner.js +1 -1
  89. package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
  90. package/dist/collection/components/button/button.js +2 -2
  91. package/dist/collection/components/button-group/button-group.js +1 -1
  92. package/dist/collection/components/callout/callout.js +1 -1
  93. package/dist/collection/components/card/card.js +1 -1
  94. package/dist/collection/components/checkbox/checkbox.js +1 -1
  95. package/dist/collection/components/chip/chip.js +1 -1
  96. package/dist/collection/components/chip-set/chip-set.js +1 -1
  97. package/dist/collection/components/circular-progress/circular-progress.js +1 -1
  98. package/dist/collection/components/code-diff/code-diff.js +1 -1
  99. package/dist/collection/components/code-editor/code-editor.js +1 -1
  100. package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
  101. package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
  102. package/dist/collection/components/color-picker/color-picker.js +1 -1
  103. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
  104. package/dist/collection/components/dialog/dialog.js +2 -2
  105. package/dist/collection/components/dock/dock.js +2 -2
  106. package/dist/collection/components/drag-handle/drag-handle.js +1 -1
  107. package/dist/collection/components/email-viewer/email-viewer.js +1 -1
  108. package/dist/collection/components/file/file.js +1 -1
  109. package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
  110. package/dist/collection/components/file-input/file-input.js +1 -1
  111. package/dist/collection/components/flex-container/flex-container.js +1 -1
  112. package/dist/collection/components/form/fields/object-field.js +2 -2
  113. package/dist/collection/components/form/form.css +21 -21
  114. package/dist/collection/components/form/form.js +60 -3
  115. package/dist/collection/components/form/form.test-schemas.js +62 -0
  116. package/dist/collection/components/form/help/help.js +2 -5
  117. package/dist/collection/components/form/row/row.js +4 -1
  118. package/dist/collection/components/form/templates/array-field.js +4 -4
  119. package/dist/collection/components/form/templates/common.js +21 -4
  120. package/dist/collection/components/form/templates/heading-level.js +51 -0
  121. package/dist/collection/components/form/templates/object-field.js +3 -9
  122. package/dist/collection/components/form-header/form-header.css +3 -0
  123. package/dist/collection/components/form-header/form-header.js +163 -0
  124. package/dist/collection/components/form-header/help-props.js +17 -0
  125. package/dist/collection/components/grid/grid.js +1 -1
  126. package/dist/collection/components/header/header.js +1 -1
  127. package/dist/collection/components/help/help-content.js +1 -1
  128. package/dist/collection/components/help/help.js +2 -2
  129. package/dist/collection/components/helper-line/helper-line.js +2 -2
  130. package/dist/collection/components/hotkey/hotkey.js +1 -1
  131. package/dist/collection/components/icon/icon.js +1 -1
  132. package/dist/collection/components/icon-button/icon-button.js +1 -1
  133. package/dist/collection/components/info-tile/info-tile.js +2 -2
  134. package/dist/collection/components/input-field/input-field.js +1 -1
  135. package/dist/collection/components/list/list.js +1 -1
  136. package/dist/collection/components/list-item/list-item.js +2 -2
  137. package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
  138. package/dist/collection/components/markdown/markdown.js +1 -1
  139. package/dist/collection/components/masonry-layout/masonry-layout.js +1 -1
  140. package/dist/collection/components/menu/menu.js +1 -1
  141. package/dist/collection/components/menu-list/menu-list.js +1 -1
  142. package/dist/collection/components/menu-surface/menu-surface.js +1 -1
  143. package/dist/collection/components/notched-outline/notched-outline.js +1 -1
  144. package/dist/collection/components/pagination/pagination.js +1 -1
  145. package/dist/collection/components/picker/picker.js +1 -1
  146. package/dist/collection/components/popover/popover.js +1 -1
  147. package/dist/collection/components/popover-surface/popover-surface.js +1 -1
  148. package/dist/collection/components/portal/portal.js +1 -1
  149. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  150. package/dist/collection/components/radio-button-group/radio-button.js +2 -2
  151. package/dist/collection/components/resize-handle/resize-handle.js +1 -1
  152. package/dist/collection/components/scroller/scroller.js +2 -2
  153. package/dist/collection/components/select/select.js +1 -1
  154. package/dist/collection/components/shortcut/shortcut.js +1 -1
  155. package/dist/collection/components/side-panel/side-panel.js +1 -1
  156. package/dist/collection/components/slider/slider.js +3 -3
  157. package/dist/collection/components/snackbar/snackbar.js +2 -2
  158. package/dist/collection/components/spinner/spinner.js +1 -1
  159. package/dist/collection/components/split-button/split-button.js +2 -2
  160. package/dist/collection/components/switch/switch.js +1 -1
  161. package/dist/collection/components/tab-bar/tab-bar.js +1 -1
  162. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  163. package/dist/collection/components/table/table.js +2 -2
  164. package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
  165. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
  166. package/dist/collection/components/text-editor/text-editor.js +1 -1
  167. package/dist/collection/components/tooltip/tooltip-content.js +1 -1
  168. package/dist/collection/components/tooltip/tooltip.js +2 -2
  169. package/dist/esm/_Map-LWJCQc-c.js +54 -0
  170. package/dist/esm/_arrayPush-NEl7BpFy.js +416 -0
  171. package/dist/esm/_baseFlatten-mvFj07qD.js +195 -0
  172. package/dist/esm/{_baseForOwn-vKFWmmaS.js → _baseForOwn-C3COyhQS.js} +1 -1
  173. package/dist/esm/{_baseIsEqual-B_JRErB0.js → _baseIsEqual-CJf575VC.js} +9 -419
  174. package/dist/esm/_baseIteratee-DM5xljbg.js +260 -0
  175. package/dist/esm/{_baseSet-BUAq8NGm.js → _basePickBy-D_9Hus6l.js} +27 -41
  176. package/dist/esm/{_getPrototype-B0kMNv1F.js → _getPrototype-CQlOogH0.js} +1 -1
  177. package/dist/esm/{_getTag-BiAaLWvH.js → _getTag-BTNY_Z_q.js} +5 -53
  178. package/dist/esm/{cloneDeep-Bcll-3f8.js → cloneDeep-BYrS7zqD.js} +3 -3
  179. package/dist/esm/{drag-to-reorder-BXmXIwCa.js → drag-to-reorder-9gxiYkIo.js} +3 -192
  180. package/dist/esm/{_baseIteratee-CVz7aes3.js → hasIn-CKUl04DZ.js} +5 -259
  181. package/dist/esm/help-props-DULV6dHr.js +88 -0
  182. package/dist/esm/isArrayLike-wfLI14yj.js +33 -0
  183. package/dist/esm/{isEmpty-BGVZ12Ea.js → isEmpty-CvLNUkER.js} +3 -2
  184. package/dist/esm/{isEqual-C-pK6AAU.js → isEqual-BIfg0KPc.js} +1 -1
  185. package/dist/esm/isLength-BZrtP4vv.js +35 -0
  186. package/dist/esm/lime-elements.js +1 -1
  187. package/dist/esm/limel-3d-hover-effect-glow.entry.js +1 -1
  188. package/dist/esm/limel-action-bar_3.entry.js +3 -3
  189. package/dist/esm/limel-ai-avatar.entry.js +1 -1
  190. package/dist/esm/limel-badge.entry.js +2 -2
  191. package/dist/esm/limel-banner.entry.js +1 -1
  192. package/dist/esm/limel-breadcrumbs_6.entry.js +6 -6
  193. package/dist/esm/limel-button-group.entry.js +1 -1
  194. package/dist/esm/limel-button.entry.js +2 -2
  195. package/dist/esm/limel-callout.entry.js +1 -1
  196. package/dist/esm/limel-card.entry.js +1 -1
  197. package/dist/esm/limel-checkbox.entry.js +1 -1
  198. package/dist/esm/limel-chip-set.entry.js +11 -8
  199. package/dist/esm/limel-chip_2.entry.js +7 -5
  200. package/dist/esm/limel-circular-progress.entry.js +1 -1
  201. package/dist/esm/limel-code-diff.entry.js +1 -1
  202. package/dist/esm/limel-code-editor.entry.js +1 -1
  203. package/dist/esm/limel-collapsible-section.entry.js +1 -1
  204. package/dist/esm/limel-color-picker-palette.entry.js +2 -2
  205. package/dist/esm/limel-color-picker.entry.js +1 -1
  206. package/dist/esm/limel-dialog.entry.js +12 -9
  207. package/dist/esm/limel-dock.entry.js +2 -2
  208. package/dist/esm/limel-drag-handle_2.entry.js +3 -3
  209. package/dist/esm/limel-email-viewer.entry.js +1 -1
  210. package/dist/esm/limel-file-dropzone_2.entry.js +14 -10
  211. package/dist/esm/limel-file.entry.js +1 -1
  212. package/dist/esm/limel-flatpickr-adapter.entry.js +3 -2
  213. package/dist/esm/limel-flex-container.entry.js +1 -1
  214. package/dist/esm/limel-form-header.entry.js +57 -0
  215. package/dist/esm/limel-form.entry.js +136 -41
  216. package/dist/esm/limel-grid.entry.js +1 -1
  217. package/dist/esm/limel-header.entry.js +1 -1
  218. package/dist/esm/{limel-help.entry.js → limel-help_2.entry.js} +22 -3
  219. package/dist/esm/limel-helper-line_3.entry.js +4 -4
  220. package/dist/esm/limel-hotkey_4.entry.js +5 -5
  221. package/dist/esm/limel-icon-button.entry.js +1 -1
  222. package/dist/esm/limel-icon.entry.js +1 -1
  223. package/dist/esm/limel-info-tile.entry.js +2 -2
  224. package/dist/esm/limel-list-item.entry.js +2 -2
  225. package/dist/esm/limel-markdown.entry.js +1 -1
  226. package/dist/esm/limel-masonry-layout.entry.js +1 -1
  227. package/dist/esm/limel-menu-item-meta.entry.js +1 -1
  228. package/dist/esm/limel-pagination.entry.js +1 -1
  229. package/dist/esm/limel-picker.entry.js +1 -1
  230. package/dist/esm/limel-popover_2.entry.js +2 -2
  231. package/dist/esm/limel-prosemirror-adapter.entry.js +13 -10
  232. package/dist/esm/limel-radio-button-group.entry.js +1 -1
  233. package/dist/esm/limel-radio-button.entry.js +2 -2
  234. package/dist/esm/limel-resize-handle.entry.js +1 -1
  235. package/dist/esm/limel-select.entry.js +1 -1
  236. package/dist/esm/limel-shortcut.entry.js +1 -1
  237. package/dist/esm/limel-side-panel.entry.js +1 -1
  238. package/dist/esm/limel-slider.entry.js +3 -3
  239. package/dist/esm/limel-snackbar.entry.js +2 -2
  240. package/dist/esm/limel-split-button.entry.js +2 -2
  241. package/dist/esm/limel-switch.entry.js +1 -1
  242. package/dist/esm/limel-tab-bar.entry.js +14 -10
  243. package/dist/esm/limel-tab-panel.entry.js +1 -1
  244. package/dist/esm/limel-table.entry.js +16 -36
  245. package/dist/esm/limel-text-editor-link-menu.entry.js +3 -3
  246. package/dist/esm/limel-text-editor.entry.js +1 -1
  247. package/dist/esm/loader.js +1 -1
  248. package/dist/esm/negate-ooVD-6_a.js +40 -0
  249. package/dist/lime-elements/lime-elements.esm.js +1 -1
  250. package/dist/lime-elements/{p-1d6014ed.entry.js → p-05c1f5a0.entry.js} +1 -1
  251. package/dist/lime-elements/p-0c314c3c.entry.js +1 -0
  252. package/dist/lime-elements/{p-aac603af.entry.js → p-153e91e1.entry.js} +1 -1
  253. package/dist/lime-elements/{p-f455150b.entry.js → p-164e1ad0.entry.js} +1 -1
  254. package/dist/lime-elements/{p-67536ac3.entry.js → p-19681a98.entry.js} +1 -1
  255. package/dist/lime-elements/{p-6e9c34f9.entry.js → p-1d13245d.entry.js} +1 -1
  256. package/dist/lime-elements/{p-87c9f4de.entry.js → p-22c44279.entry.js} +1 -1
  257. package/dist/lime-elements/{p-7375fac2.entry.js → p-26347009.entry.js} +1 -1
  258. package/dist/lime-elements/{p-f0e3a147.entry.js → p-27d7c255.entry.js} +2 -2
  259. package/dist/lime-elements/{p-3fa66fb1.entry.js → p-29815107.entry.js} +1 -1
  260. package/dist/lime-elements/{p-27d375f3.entry.js → p-2a375a65.entry.js} +1 -1
  261. package/dist/lime-elements/{p-aee75ad1.entry.js → p-2c29c27f.entry.js} +1 -1
  262. package/dist/lime-elements/{p-19426c76.entry.js → p-2f5face5.entry.js} +1 -1
  263. package/dist/lime-elements/{p-8f133cd6.entry.js → p-3ae5fb67.entry.js} +1 -1
  264. package/dist/lime-elements/{p-bb40b96c.entry.js → p-3c861ca8.entry.js} +1 -1
  265. package/dist/lime-elements/{p-f96a8e2c.entry.js → p-40a48f70.entry.js} +1 -1
  266. package/dist/lime-elements/p-513d2a5e.entry.js +1 -0
  267. package/dist/lime-elements/{p-9e9187ce.entry.js → p-519603f5.entry.js} +1 -1
  268. package/dist/lime-elements/{p-4a381bc6.entry.js → p-545c087b.entry.js} +1 -1
  269. package/dist/lime-elements/{p-89316964.entry.js → p-55abec82.entry.js} +1 -1
  270. package/dist/lime-elements/{p-8e78fd4f.entry.js → p-55f7c9f5.entry.js} +1 -1
  271. package/dist/lime-elements/{p-2370ff51.entry.js → p-565e5ea7.entry.js} +1 -1
  272. package/dist/lime-elements/{p-3b4f6329.entry.js → p-586ee40c.entry.js} +1 -1
  273. package/dist/lime-elements/{p-ddabfac0.entry.js → p-5f2a34ed.entry.js} +1 -1
  274. package/dist/lime-elements/{p-dd065596.entry.js → p-5f82ea0b.entry.js} +1 -1
  275. package/dist/lime-elements/{p-82672504.entry.js → p-65eafc85.entry.js} +1 -1
  276. package/dist/lime-elements/p-67acf39d.entry.js +1 -0
  277. package/dist/lime-elements/{p-d1eaba10.entry.js → p-6aae3f58.entry.js} +1 -1
  278. package/dist/lime-elements/p-7035d93d.entry.js +1 -0
  279. package/dist/lime-elements/{p-674680f9.entry.js → p-707d4b28.entry.js} +1 -1
  280. package/dist/lime-elements/{p-068b141b.entry.js → p-713a1158.entry.js} +1 -1
  281. package/dist/lime-elements/{p-d94f1c0f.entry.js → p-7235d147.entry.js} +1 -1
  282. package/dist/lime-elements/p-72907ffd.entry.js +1 -0
  283. package/dist/lime-elements/{p-242f1032.entry.js → p-7aae3d13.entry.js} +1 -1
  284. package/dist/lime-elements/{p-88dcba1e.entry.js → p-7af16e1d.entry.js} +1 -1
  285. package/dist/lime-elements/{p-56fe13ef.entry.js → p-7d27d572.entry.js} +1 -1
  286. package/dist/lime-elements/{p-8339d921.entry.js → p-7f1a1ed5.entry.js} +1 -1
  287. package/dist/lime-elements/{p-3f447d22.entry.js → p-8045eb7f.entry.js} +1 -1
  288. package/dist/lime-elements/p-813cb15c.entry.js +1 -0
  289. package/dist/lime-elements/{p-0de00849.entry.js → p-9436aba6.entry.js} +4 -4
  290. package/dist/lime-elements/{p-b5ebcbfc.entry.js → p-9e30d206.entry.js} +1 -1
  291. package/dist/lime-elements/p-BIYP3lTf.js +1 -0
  292. package/dist/lime-elements/p-BZrtP4vv.js +1 -0
  293. package/dist/lime-elements/p-BqoaAMnl.js +1 -0
  294. package/dist/lime-elements/p-BuX-Eb_J.js +1 -0
  295. package/dist/lime-elements/p-C-Qy5a39.js +1 -0
  296. package/dist/lime-elements/p-Cn3Alk9P.js +1 -0
  297. package/dist/lime-elements/p-CnpoFRmN.js +1 -0
  298. package/dist/lime-elements/p-CzTSYn-I.js +1 -0
  299. package/dist/lime-elements/p-D5dy3YDO.js +1 -0
  300. package/dist/lime-elements/p-DVx8ZwG_.js +7 -0
  301. package/dist/lime-elements/p-DWd0MyPU.js +1 -0
  302. package/dist/lime-elements/p-DpFfRQwV.js +1 -0
  303. package/dist/lime-elements/p-UDFTKggt.js +1 -0
  304. package/dist/lime-elements/{p-9d354eca.entry.js → p-a608ebe3.entry.js} +1 -1
  305. package/dist/lime-elements/p-a81f6962.entry.js +1 -0
  306. package/dist/lime-elements/{p-6770cf06.entry.js → p-af53caab.entry.js} +1 -1
  307. package/dist/lime-elements/{p-150010b5.entry.js → p-b80433be.entry.js} +1 -1
  308. package/dist/lime-elements/{p-e13e0001.entry.js → p-b983531f.entry.js} +3 -3
  309. package/dist/lime-elements/{p-e9b1e0bd.entry.js → p-be0a8125.entry.js} +1 -1
  310. package/dist/lime-elements/{p-f0bf3fd1.entry.js → p-be2b8c1e.entry.js} +1 -1
  311. package/dist/lime-elements/p-c2_jcMp6.js +1 -0
  312. package/dist/lime-elements/{p-de3cf7d8.entry.js → p-c73f4160.entry.js} +1 -1
  313. package/dist/lime-elements/{p-5ea07cbe.entry.js → p-cc8d6198.entry.js} +1 -1
  314. package/dist/lime-elements/{p-026eed2d.entry.js → p-cced022b.entry.js} +1 -1
  315. package/dist/lime-elements/{p-BAqAt5It.js → p-cv8kR73y.js} +1 -1
  316. package/dist/lime-elements/{p-be8950a6.entry.js → p-d0908a85.entry.js} +2 -2
  317. package/dist/lime-elements/{p-17aa9235.entry.js → p-da4b4a81.entry.js} +1 -1
  318. package/dist/lime-elements/{p-5d623004.entry.js → p-dd383c12.entry.js} +1 -1
  319. package/dist/lime-elements/{p-41172b62.entry.js → p-e0ab0046.entry.js} +1 -1
  320. package/dist/lime-elements/{p-8a9361a2.entry.js → p-eb5a18ff.entry.js} +1 -1
  321. package/dist/lime-elements/p-f35880ef.entry.js +1 -0
  322. package/dist/lime-elements/p-f8566c5b.entry.js +1 -0
  323. package/dist/lime-elements/{p-64540beb.entry.js → p-fad7a3fa.entry.js} +1 -1
  324. package/dist/lime-elements/p-fdc7da58.entry.js +1 -0
  325. package/dist/lime-elements/p-ooVD-6_a.js +1 -0
  326. package/dist/lime-elements/p-rJbGuVxd.js +1 -0
  327. package/dist/lime-elements/p-xGeCwSnE.js +1 -0
  328. package/dist/types/components/form/form.d.ts +15 -1
  329. package/dist/types/components/form/form.test-schemas.d.ts +4 -0
  330. package/dist/types/components/form/form.types.d.ts +6 -0
  331. package/dist/types/components/form/help/help.d.ts +0 -2
  332. package/dist/types/components/form/row/row.d.ts +3 -0
  333. package/dist/types/components/form/templates/common.d.ts +17 -4
  334. package/dist/types/components/form/templates/heading-level.d.ts +49 -0
  335. package/dist/types/components/form-header/form-header.d.ts +47 -0
  336. package/dist/types/components/form-header/help-props.d.ts +7 -0
  337. package/dist/types/components.d.ts +140 -2
  338. package/dist/types/interface.d.ts +1 -1
  339. package/package.json +1 -1
  340. package/dist/cjs/isArrayLike-C2RwZMG4.js +0 -69
  341. package/dist/cjs/limel-help-content.cjs.entry.js +0 -24
  342. package/dist/esm/isArrayLike-CyVGB489.js +0 -66
  343. package/dist/esm/limel-help-content.entry.js +0 -22
  344. package/dist/lime-elements/p-047c3234.entry.js +0 -1
  345. package/dist/lime-elements/p-09f8f883.entry.js +0 -1
  346. package/dist/lime-elements/p-5633c069.entry.js +0 -1
  347. package/dist/lime-elements/p-600466a9.entry.js +0 -1
  348. package/dist/lime-elements/p-BYfPV0O4.js +0 -1
  349. package/dist/lime-elements/p-CW2-jhzP.js +0 -1
  350. package/dist/lime-elements/p-Cu9Ji1iJ.js +0 -1
  351. package/dist/lime-elements/p-D2VFSWDU.js +0 -1
  352. package/dist/lime-elements/p-D9Ezd43A.js +0 -1
  353. package/dist/lime-elements/p-DFu1q54T.js +0 -1
  354. package/dist/lime-elements/p-DK0pjX-Y.js +0 -1
  355. package/dist/lime-elements/p-DdnBHYb-.js +0 -7
  356. package/dist/lime-elements/p-DeIIlp6m.js +0 -1
  357. package/dist/lime-elements/p-Dq0uNStc.js +0 -1
  358. package/dist/lime-elements/p-afbe54e6.entry.js +0 -1
  359. package/dist/lime-elements/p-c583ab0d.entry.js +0 -1
  360. package/dist/lime-elements/p-e2971111.entry.js +0 -1
  361. package/dist/lime-elements/p-e332bb9b.entry.js +0 -1
  362. package/dist/lime-elements/p-e50acec1.entry.js +0 -1
  363. package/dist/lime-elements/p-f1ac7608.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,h as r,H as i}from"./p-BU9IJqli.js";import{g as a}from"./p-CgNJbSP4.js";const o=class{constructor(r){e(this,r),this.subheadingDivider="·"}render(){return r(i,{key:"772b80728f03fc7a51ae6b2b8892c0417c4dfc56"},r("div",{key:"87516edb431b0d65fdebd59b422b62e953f316a7",class:"information"},this.renderIcon(),r("div",{key:"fc6dbd30d144dafb66e6f1d2899dfe849835d923",class:"headings"},r("h1",{key:"af693c740d006353f6328459ecbc372dfa204398",class:"heading",title:this.heading},this.heading),r("h2",{key:"2b0e5ed7b7df45ec645057083610ef88ab404b75",class:"subheading",title:this.subheading},this.subheading,this.renderSupportingText()))),r("slot",{key:"88d461f901a4daa28a269aeaa2efb3a39f4f610c",name:"actions"},r("slot",{key:"4a9ade9ab15cc333b9555a8fadad9147145619f9"})))}renderIcon(){var e,i,o,t,s;const n=a(this.icon);if(n)return r("limel-icon",{class:"icon",badge:!0,name:n,style:{"--limel-header-icon-color":`${null!==(i=null===(e=this.icon)||void 0===e?void 0:e.color)&&void 0!==i?i:""}`,"--limel-header-icon-background-color":`${null!==(t=null===(o=this.icon)||void 0===o?void 0:o.backgroundColor)&&void 0!==t?t:""}`,title:`${null===(s=this.icon)||void 0===s?void 0:s.title}`}})}renderSupportingText(){if(this.supportingText)return r("span",{class:"subheading__supporting-text"},this.renderSubheadingDivider(),this.supportingText)}renderSubheadingDivider(){if(this.subheadingDivider)return r("span",null,this.subheadingDivider)}};o.style='@charset "UTF-8";:host(limel-header){display:flex;align-items:center;box-sizing:border-box;width:100%;background-color:var(--header-background-color, rgb(var(--contrast-300)));border-top-left-radius:var(--header-top-right-left-border-radius, 0.75rem);border-top-right-radius:var(--header-top-right-left-border-radius, 0.75rem);padding:0.25rem}.information{display:flex;flex-grow:1;align-items:center;min-width:0}.icon{--limel-icon-svg-margin:0.25rem;flex-shrink:0;color:var(--limel-header-icon-color, var(--header-icon-color, rgb(var(--contrast-1100))));background-color:var(--limel-header-icon-background-color, var(--header-icon-background-color, transparent));width:2.25rem;border-radius:0.56rem}.headings{min-width:0;margin-left:0.25rem}.heading,.subheading{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;padding:0}.heading{color:var(--header-heading-color, rgb(var(--contrast-1100)));font-size:1rem;font-weight:500}.subheading{color:var(--header-subheading-color, rgb(var(--contrast-900)));font-size:var(--limel-theme-default-small-font-size);font-weight:400}.subheading__supporting-text{color:var(--header-supporting-text-color, var(--header-subheading-color))}.subheading__supporting-text span{margin:0 0.125rem}slot[name=actions]{flex-shrink:0}:host(limel-header.is-narrow){padding:0.125rem 0.25rem}:host(limel-header.is-narrow) .icon{--limel-icon-svg-margin:0;width:1.25rem}:host(limel-header.is-narrow) .heading{font-size:0.9375rem}:host(limel-header.has-responsive-layout){display:grid;grid-template-columns:repeat(auto-fit, minmax(clamp(50%, var(--header-responsive-breakpoint, 22rem), 100%), 1fr))}:host(limel-header.has-responsive-layout) .headings{padding-right:0.5rem}:host(limel-header.has-responsive-layout) slot[name=actions]{display:flex;justify-content:flex-end}';export{o as limel_header}
1
+ import{r as e,h as r,H as a}from"./p-BU9IJqli.js";import{g as i}from"./p-CgNJbSP4.js";const o=class{constructor(r){e(this,r),this.subheadingDivider="·"}render(){return r(a,{key:"ee7ff339654246fbe74a971c13555ac58eb193d6"},r("div",{key:"24a8ea8b2b02a18096fdad46aeaa7716986f39f3",class:"information"},this.renderIcon(),r("div",{key:"4e6badb9212a41286043a158238edb889e95c20a",class:"headings"},r("h1",{key:"cb1e64f29d720de62e7e99d15daa77b3c3a344cb",class:"heading",title:this.heading},this.heading),r("h2",{key:"fbdd1399802934b780fb24f35dbaf8d2df98b09c",class:"subheading",title:this.subheading},this.subheading,this.renderSupportingText()))),r("slot",{key:"53774b488cc505aca85e776d9c8280c85ef7acfd",name:"actions"},r("slot",{key:"d9093bf6ca786faa5481e62c5bff604b20f0283e"})))}renderIcon(){var e,a,o,t,s;const n=i(this.icon);if(n)return r("limel-icon",{class:"icon",badge:!0,name:n,style:{"--limel-header-icon-color":`${null!==(a=null===(e=this.icon)||void 0===e?void 0:e.color)&&void 0!==a?a:""}`,"--limel-header-icon-background-color":`${null!==(t=null===(o=this.icon)||void 0===o?void 0:o.backgroundColor)&&void 0!==t?t:""}`,title:`${null===(s=this.icon)||void 0===s?void 0:s.title}`}})}renderSupportingText(){if(this.supportingText)return r("span",{class:"subheading__supporting-text"},this.renderSubheadingDivider(),this.supportingText)}renderSubheadingDivider(){if(this.subheadingDivider)return r("span",null,this.subheadingDivider)}};o.style='@charset "UTF-8";:host(limel-header){display:flex;align-items:center;box-sizing:border-box;width:100%;background-color:var(--header-background-color, rgb(var(--contrast-300)));border-top-left-radius:var(--header-top-right-left-border-radius, 0.75rem);border-top-right-radius:var(--header-top-right-left-border-radius, 0.75rem);padding:0.25rem}.information{display:flex;flex-grow:1;align-items:center;min-width:0}.icon{--limel-icon-svg-margin:0.25rem;flex-shrink:0;color:var(--limel-header-icon-color, var(--header-icon-color, rgb(var(--contrast-1100))));background-color:var(--limel-header-icon-background-color, var(--header-icon-background-color, transparent));width:2.25rem;border-radius:0.56rem}.headings{min-width:0;margin-left:0.25rem}.heading,.subheading{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;margin:0;padding:0}.heading{color:var(--header-heading-color, rgb(var(--contrast-1100)));font-size:1rem;font-weight:500}.subheading{color:var(--header-subheading-color, rgb(var(--contrast-900)));font-size:var(--limel-theme-default-small-font-size);font-weight:400}.subheading__supporting-text{color:var(--header-supporting-text-color, var(--header-subheading-color))}.subheading__supporting-text span{margin:0 0.125rem}slot[name=actions]{flex-shrink:0}:host(limel-header.is-narrow){padding:0.125rem 0.25rem}:host(limel-header.is-narrow) .icon{--limel-icon-svg-margin:0;width:1.25rem}:host(limel-header.is-narrow) .heading{font-size:0.9375rem}:host(limel-header.has-responsive-layout){display:grid;grid-template-columns:repeat(auto-fit, minmax(clamp(50%, var(--header-responsive-breakpoint, 22rem), 100%), 1fr))}:host(limel-header.has-responsive-layout) .headings{padding-right:0.5rem}:host(limel-header.has-responsive-layout) slot[name=actions]{display:flex;justify-content:flex-end}';export{o as limel_header}
@@ -1 +1 @@
1
- import{r as t,h as s,H as i,a as e}from"./p-BU9IJqli.js";const o=class{constructor(s){t(this,s),this.ordered=!1,this.containerHeight=0,this.hasRendered=!1,this.pendingLayoutFrame=null}onOrderedChange(){this.scheduleLayout()}componentDidLoad(){this.setupObservers(),this.layoutItems(),this.hasRendered=!0}connectedCallback(){this.hasRendered&&(this.setupObservers(),this.scheduleLayout())}disconnectedCallback(){var t,s,i;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(s=this.mutationObserver)||void 0===s||s.disconnect(),null===(i=this.itemResizeObserver)||void 0===i||i.disconnect(),null!==this.pendingLayoutFrame&&cancelAnimationFrame(this.pendingLayoutFrame)}render(){return s(i,{key:"b25a2eb6e10535aa5fedb8de8baeb96f51e10739",style:{height:`${this.containerHeight}rem`},class:{"is-laid-out":this.hasRendered}},s("slot",{key:"fa2c4773d1fb41e2ea0725a28911840e45e5c809"}))}setupObservers(){this.resizeObserver=new ResizeObserver((()=>{this.scheduleLayout()})),this.resizeObserver.observe(this.host),this.itemResizeObserver=new ResizeObserver((()=>{this.scheduleLayout()})),this.mutationObserver=new MutationObserver((()=>{this.observeItemSizes(),this.scheduleLayout()})),this.mutationObserver.observe(this.host,{childList:!0}),this.observeItemSizes()}observeItemSizes(){var t;null===(t=this.itemResizeObserver)||void 0===t||t.disconnect();const s=this.getItems();for(const t of s)this.itemResizeObserver.observe(t)}getItems(){return[...this.host.children].filter((t=>t instanceof HTMLElement))}getRootFontSize(){return Number.parseFloat(getComputedStyle(document.documentElement).fontSize)}pxToRem(t,s){return t/s}getCssPropertyInPx(t,s,i){const e=getComputedStyle(this.host).getPropertyValue(t).trim()||s,o=Number.parseFloat(e);return e.endsWith("px")?o:o*i}scheduleLayout(){null!==this.pendingLayoutFrame&&cancelAnimationFrame(this.pendingLayoutFrame),this.pendingLayoutFrame=requestAnimationFrame((()=>{this.pendingLayoutFrame=null,this.layoutItems()}))}layoutItems(){const t=this.getItems();if(0===t.length)return void(this.containerHeight=0);const s=this.host.offsetWidth;if(!s)return;const i=this.getRootFontSize(),e=this.getCssPropertyInPx("--masonry-layout-gap","1rem",i),{columnCount:o,columnWidth:n}=this.calculateColumns(s,e,i),r=this.positionItems(t,o,n,e,i),h=this.pxToRem(Math.max(...r)-e,i);Math.abs(h-this.containerHeight)>.1&&(this.containerHeight=h)}calculateColumns(t,s,i){const e=this.getCssPropertyInPx("--masonry-layout-min-column-width","12rem",i),o=Math.max(1,Math.floor((t+s)/(e+s)));return{columnCount:o,columnWidth:(t-(o-1)*s)/o}}positionItems(t,s,i,e,o){const n=Array.from({length:s},(()=>0));let r=0;for(const h of t){const t=this.ordered?r%s:n.indexOf(Math.min(...n)),a=t*(i+e),l=n[t];h.style.position="absolute",h.style.left=`${this.pxToRem(a,o)}rem`,h.style.top=`${this.pxToRem(l,o)}rem`,h.style.width=`${this.pxToRem(i,o)}rem`,this.hasRendered||this.staggerFadeIn(h,r),n[t]+=h.offsetHeight+e,r++}return n}staggerFadeIn(t,s){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;t.style.transition="opacity 0.2s cubic-bezier(0.2, 0, 0.2, 1)",t.style.transitionDelay=20*s+"ms";const i=s=>{s.target===t&&"opacity"===s.propertyName&&(t.style.transition="",t.style.transitionDelay="",t.removeEventListener("transitionend",i))};t.addEventListener("transitionend",i)}get host(){return e(this)}static get watchers(){return{ordered:[{onOrderedChange:0}]}}};o.style=":host(limel-masonry-layout){display:block;position:relative;box-sizing:border-box;visibility:hidden}:host(limel-masonry-layout) ::slotted(*){opacity:0;box-sizing:border-box}:host(limel-masonry-layout.is-laid-out){visibility:visible}:host(limel-masonry-layout.is-laid-out) ::slotted(*){opacity:1}";export{o as limel_masonry_layout}
1
+ import{r as t,h as s,H as i,a as e}from"./p-BU9IJqli.js";const o=class{constructor(s){t(this,s),this.ordered=!1,this.containerHeight=0,this.hasRendered=!1,this.pendingLayoutFrame=null}onOrderedChange(){this.scheduleLayout()}componentDidLoad(){this.setupObservers(),this.layoutItems(),this.hasRendered=!0}connectedCallback(){this.hasRendered&&(this.setupObservers(),this.scheduleLayout())}disconnectedCallback(){var t,s,i;null===(t=this.resizeObserver)||void 0===t||t.disconnect(),null===(s=this.mutationObserver)||void 0===s||s.disconnect(),null===(i=this.itemResizeObserver)||void 0===i||i.disconnect(),null!==this.pendingLayoutFrame&&cancelAnimationFrame(this.pendingLayoutFrame)}render(){return s(i,{key:"db11d17d15303afcf0d767e085dbe653ab90f9dd",style:{height:`${this.containerHeight}rem`},class:{"is-laid-out":this.hasRendered}},s("slot",{key:"7a4f2639e7b02720b08b778d437e536ee5707cfa"}))}setupObservers(){this.resizeObserver=new ResizeObserver((()=>{this.scheduleLayout()})),this.resizeObserver.observe(this.host),this.itemResizeObserver=new ResizeObserver((()=>{this.scheduleLayout()})),this.mutationObserver=new MutationObserver((()=>{this.observeItemSizes(),this.scheduleLayout()})),this.mutationObserver.observe(this.host,{childList:!0}),this.observeItemSizes()}observeItemSizes(){var t;null===(t=this.itemResizeObserver)||void 0===t||t.disconnect();const s=this.getItems();for(const t of s)this.itemResizeObserver.observe(t)}getItems(){return[...this.host.children].filter((t=>t instanceof HTMLElement))}getRootFontSize(){return Number.parseFloat(getComputedStyle(document.documentElement).fontSize)}pxToRem(t,s){return t/s}getCssPropertyInPx(t,s,i){const e=getComputedStyle(this.host).getPropertyValue(t).trim()||s,o=Number.parseFloat(e);return e.endsWith("px")?o:o*i}scheduleLayout(){null!==this.pendingLayoutFrame&&cancelAnimationFrame(this.pendingLayoutFrame),this.pendingLayoutFrame=requestAnimationFrame((()=>{this.pendingLayoutFrame=null,this.layoutItems()}))}layoutItems(){const t=this.getItems();if(0===t.length)return void(this.containerHeight=0);const s=this.host.offsetWidth;if(!s)return;const i=this.getRootFontSize(),e=this.getCssPropertyInPx("--masonry-layout-gap","1rem",i),{columnCount:o,columnWidth:n}=this.calculateColumns(s,e,i),r=this.positionItems(t,o,n,e,i),h=this.pxToRem(Math.max(...r)-e,i);Math.abs(h-this.containerHeight)>.1&&(this.containerHeight=h)}calculateColumns(t,s,i){const e=this.getCssPropertyInPx("--masonry-layout-min-column-width","12rem",i),o=Math.max(1,Math.floor((t+s)/(e+s)));return{columnCount:o,columnWidth:(t-(o-1)*s)/o}}positionItems(t,s,i,e,o){const n=Array.from({length:s},(()=>0));let r=0;for(const h of t){const t=this.ordered?r%s:n.indexOf(Math.min(...n)),l=t*(i+e),a=n[t];h.style.position="absolute",h.style.left=`${this.pxToRem(l,o)}rem`,h.style.top=`${this.pxToRem(a,o)}rem`,h.style.width=`${this.pxToRem(i,o)}rem`,this.hasRendered||this.staggerFadeIn(h,r),n[t]+=h.offsetHeight+e,r++}return n}staggerFadeIn(t,s){if(window.matchMedia("(prefers-reduced-motion: reduce)").matches)return;t.style.transition="opacity 0.2s cubic-bezier(0.2, 0, 0.2, 1)",t.style.transitionDelay=20*s+"ms";const i=s=>{s.target===t&&"opacity"===s.propertyName&&(t.style.transition="",t.style.transitionDelay="",t.removeEventListener("transitionend",i))};t.addEventListener("transitionend",i)}get host(){return e(this)}static get watchers(){return{ordered:[{onOrderedChange:0}]}}};o.style=":host(limel-masonry-layout){display:block;position:relative;box-sizing:border-box;visibility:hidden}:host(limel-masonry-layout) ::slotted(*){opacity:0;box-sizing:border-box}:host(limel-masonry-layout.is-laid-out){visibility:visible}:host(limel-masonry-layout.is-laid-out) ::slotted(*){opacity:1}";export{o as limel_masonry_layout}
@@ -1 +1 @@
1
- import{r as e,h as t,H as r}from"./p-BU9IJqli.js";import{m as o}from"./p-C0wwdPYT.js";import{g as a}from"./p-Dnt5w_Bp.js";import{d as n}from"./p-_UXAljNc.js";import{a as l}from"./p-BQoih_t0.js";import"./p-B85MJLTf.js";class i{constructor(e){this.handleIntersection=e=>{for(const t of e){if(!t.isIntersecting)continue;const e=t.target,r=e.dataset.src;r&&(e.setAttribute("src",r),delete e.dataset.src),this.observer.unobserve(e)}},this.observer=new IntersectionObserver(this.handleIntersection);const t=e.querySelectorAll("img");for(const e of t)this.observer.observe(e)}disconnect(){this.observer.disconnect()}}var s;const d=new Map(Object.entries(null!==(s=n.protocols)&&void 0!==s?s:{}).map((([e,t])=>[e,new Set(t)])));function m(e,t){for(const r of t){const t=e.getAttribute(r);if(!t)continue;const o=c(t);if(void 0===o)continue;const a=f(o);e[b(r)]=a}}function c(e){const t=e.trim();if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]"))try{return JSON.parse(t)}catch(e){try{const e=t.replaceAll("&#x22;",'"').replaceAll("&#34;",'"').replaceAll("&quot;",'"').replaceAll("&#x27;","'").replaceAll("&#39;","'").replaceAll("&apos;","'").replaceAll("&amp;","&");return JSON.parse(e)}catch(e){return}}}function h(e,t){const r=e.trim(),o=r.indexOf(":");if(-1===o||/[?#/]/.test(r.slice(0,o)))return!0;const a=r.slice(0,o).toLowerCase();return t.has(a)}function f(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(f);const t=Object.assign({},e);for(const e of Object.keys(t)){const r=d.get(e);r&&"string"==typeof t[e]&&!h(t[e],r)?(console.warn(`limel-markdown: Removed unsafe URL from "${e}" during sanitization.`),delete t[e]):"object"==typeof t[e]&&null!==t[e]&&(t[e]=f(t[e]))}return t}function b(e){return e.replaceAll(/-([a-z])/g,((e,t)=>t.toUpperCase()))}var u,g="undefined"==typeof document?void 0:document,p=!!g&&"content"in g.createElement("template"),v=!!g&&g.createRange&&"createContextualFragment"in g.createRange();function w(e,t){var r,o,a=e.nodeName,n=t.nodeName;return a===n||(r=a.charCodeAt(0),o=n.charCodeAt(0),r<=90&&o>=97?a===n.toUpperCase():o<=90&&r>=97&&n===a.toUpperCase())}function k(e,t,r){e[r]!==t[r]&&(e[r]=t[r],e[r]?e.setAttribute(r,""):e.removeAttribute(r))}var y={OPTION:function(e,t){var r=e.parentNode;if(r){var o=r.nodeName.toUpperCase();"OPTGROUP"===o&&(o=(r=r.parentNode)&&r.nodeName.toUpperCase()),"SELECT"!==o||r.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),r.selectedIndex=-1)}k(e,t,"selected")},INPUT:function(e,t){k(e,t,"checked"),k(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var r=t.value;e.value!==r&&(e.value=r);var o=e.firstChild;if(o){var a=o.nodeValue;if(a==r||!r&&a==e.placeholder)return;o.nodeValue=r}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var r,o,a=-1,n=0,l=e.firstChild;l;)if("OPTGROUP"===(o=l.nodeName&&l.nodeName.toUpperCase()))(l=(r=l).firstChild)||(l=r.nextSibling,r=null);else{if("OPTION"===o){if(l.hasAttribute("selected")){a=n;break}n++}!(l=l.nextSibling)&&r&&(l=r.nextSibling,r=null)}e.selectedIndex=a}}};function j(){}function x(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var z=function(e,t,r){if(r||(r={}),"string"==typeof t)if("#document"===e.nodeName||"HTML"===e.nodeName){var o=t;(t=g.createElement("html")).innerHTML=o}else if("BODY"===e.nodeName){var a=t;(t=g.createElement("html")).innerHTML=a;var n=t.querySelector("body");n&&(t=n)}else l=(l=t).trim(),t=p?function(e){var t=g.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(l):v?function(e){return u||(u=g.createRange()).selectNode(g.body),u.createContextualFragment(e).childNodes[0]}(l):function(e){var t=g.createElement("body");return t.innerHTML=e,t.childNodes[0]}(l);else 11===t.nodeType&&(t=t.firstElementChild);var l,i=r.getNodeKey||x,s=r.onBeforeNodeAdded||j,d=r.onNodeAdded||j,m=r.onBeforeElUpdated||j,c=r.onElUpdated||j,h=r.onBeforeNodeDiscarded||j,f=r.onNodeDiscarded||j,b=r.onBeforeElChildrenUpdated||j,k=r.skipFromChildren||j,z=r.addChild||function(e,t){return e.appendChild(t)},C=!0===r.childrenOnly,O=Object.create(null),T=[];function N(e){T.push(e)}function q(e,t){if(1===e.nodeType)for(var r=e.firstChild;r;){var o=void 0;t&&(o=i(r))?N(o):(f(r),r.firstChild&&q(r,t)),r=r.nextSibling}}function M(e,t,r){!1!==h(e)&&(t&&t.removeChild(e),f(e),q(e,r))}function P(e){if(1===e.nodeType||11===e.nodeType)for(var t=e.firstChild;t;){var r=i(t);r&&(O[r]=t),P(t),t=t.nextSibling}}function E(e){d(e);for(var t=e.firstChild;t;){var r=t.nextSibling,o=i(t);if(o){var a=O[o];a&&w(t,a)?(t.parentNode.replaceChild(a,t),H(a,t)):E(t)}else E(t);t=r}}function H(e,t,r){var o=i(t);if(o&&delete O[o],!r){var a=m(e,t);if(!1===a)return;if(a instanceof HTMLElement&&P(e=a),function(e,t){var r,o,a,n,l=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var i=l.length-1;i>=0;i--)o=(r=l[i]).name,n=r.value,(a=r.namespaceURI)?e.getAttributeNS(a,o=r.localName||o)!==n&&("xmlns"===r.prefix&&(o=r.name),e.setAttributeNS(a,o,n)):e.getAttribute(o)!==n&&e.setAttribute(o,n);for(var s=e.attributes,d=s.length-1;d>=0;d--)o=(r=s[d]).name,(a=r.namespaceURI)?t.hasAttributeNS(a,o=r.localName||o)||e.removeAttributeNS(a,o):t.hasAttribute(o)||e.removeAttribute(o)}}(e,t),c(e),!1===b(e,t))return}"TEXTAREA"!==e.nodeName?function(e,t){var r,o,a,n,l,d=k(e,t),m=t.firstChild,c=e.firstChild;e:for(;m;){for(n=m.nextSibling,r=i(m);!d&&c;){if(a=c.nextSibling,m.isSameNode&&m.isSameNode(c)){m=n,c=a;continue e}o=i(c);var h=c.nodeType,f=void 0;if(h===m.nodeType&&(1===h?(r?r!==o&&((l=O[r])?a===l?f=!1:(e.insertBefore(l,c),o?N(o):M(c,e,!0),o=i(c=l)):f=!1):o&&(f=!1),(f=!1!==f&&w(c,m))&&H(c,m)):3!==h&&8!=h||(f=!0,c.nodeValue!==m.nodeValue&&(c.nodeValue=m.nodeValue))),f){m=n,c=a;continue e}o?N(o):M(c,e,!0),c=a}if(r&&(l=O[r])&&w(l,m))d||z(e,l),H(l,m);else{var b=s(m);!1!==b&&(b&&(m=b),m.actualize&&(m=m.actualize(e.ownerDocument||g)),z(e,m),E(m))}m=n,c=a}!function(e,t,r){for(;t;){var o=t.nextSibling;(r=i(t))?N(r):M(t,e,!0),t=o}}(e,c,o);var u=y[e.nodeName];u&&u(e,t)}(e,t):y.TEXTAREA(e,t)}P(e);var I,L,S=e,A=S.nodeType,R=t.nodeType;if(!C)if(1===A)1===R?w(e,t)||(f(e),S=function(e,t){for(var r=e.firstChild;r;){var o=r.nextSibling;t.appendChild(r),r=o}return t}(e,(I=t.nodeName,(L=t.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==L?g.createElementNS(L,I):g.createElement(I)))):S=t;else if(3===A||8===A){if(R===A)return S.nodeValue!==t.nodeValue&&(S.nodeValue=t.nodeValue),S;S=t}if(S===t)f(e);else{if(t.isSameNode&&t.isSameNode(S))return;if(H(S,t,C),T)for(var B=0,U=T.length;B<U;B++){var D=O[T[B]];D&&M(D,D.parentNode,!1)}}return!C&&S!==e&&e.parentNode&&(S.actualize&&(S=S.actualize(e.ownerDocument||g)),e.parentNode.replaceChild(S,e)),S};const C=[{tagName:"limel-chip",attributes:["text","icon","link","badge","disabled","readonly","selected","type","size"]},{tagName:"limel-icon",attributes:["name","size","badge"]},{tagName:"limel-badge",attributes:["label"]},{tagName:"limel-callout",attributes:["heading","icon","type"]},{tagName:"limel-linear-progress",attributes:["value","indeterminate"]},{tagName:"limel-circular-progress",attributes:["value","max-value","prefix","suffix","size","display-percentage-colors"]},{tagName:"limel-spinner",attributes:["size"]},{tagName:"limel-info-tile",attributes:["value","icon","label","prefix","suffix","badge"]}],O=class{constructor(t){e(this,t),this.value="",this.whitelist=a.markdownWhitelist,this.lazyLoadImages=!1,this.removeEmptyParagraphs=!0,this.adaptColorContrast=!1,this.imageIntersectionObserver=null}async toMarkdown(){await this.rendering;const{exportMarkdown:e}=await import("./p-Bgn2bikC.js");return e(this.rootElement,this.cachedCombinedWhitelist)}textChanged(){return this.rendering=this.renderMarkdown(),this.rendering}async renderMarkdown(){try{this.cleanupImageIntersectionObserver(),this.cachedCombinedWhitelist&&this.whitelist===this.cachedConsumerWhitelist||(this.cachedConsumerWhitelist=this.whitelist,this.cachedCombinedWhitelist=function(e,t){if(!(null==t?void 0:t.length))return e.map((e=>Object.assign(Object.assign({},e),{attributes:[...e.attributes]})));const r=new Map;for(const o of[...e,...t]){const e=r.get(o.tagName);if(e)for(const t of o.attributes)e.add(t);else r.set(o.tagName,new Set(o.attributes))}return[...r].map((([e,t])=>({tagName:e,attributes:[...t]})))}(C,this.whitelist));const e=this.cachedCombinedWhitelist,t=await o(this.value,{forceHardLineBreaks:!0,whitelist:e,lazyLoadImages:this.lazyLoadImages,removeEmptyParagraphs:this.removeEmptyParagraphs});!function(e,t=""){try{z(e,`<div>${t}</div>`,{childrenOnly:!0})}catch(r){console.warn("morphdom failed, falling back to innerHTML:",r),e.innerHTML=t}}(this.rootElement,t),function(e,t){if(e&&(null==t?void 0:t.length))for(const r of t){const t=e.querySelectorAll(r.tagName);for(const e of t)m(e,r.attributes)}}(this.rootElement,e),this.adaptColorContrast&&l(this.rootElement),this.setupImageIntersectionObserver()}catch(e){console.error(e)}}handleWhitelistChange(){return this.textChanged()}handleRemoveEmptyParagraphsChange(){return this.textChanged()}handleAdaptColorContrastChange(){return this.textChanged()}async componentDidLoad(){this.textChanged()}disconnectedCallback(){this.cleanupImageIntersectionObserver()}render(){return t(r,{key:"eb1749c0d9dda5b26400cb8a11e884d435e759f4"},t("div",{key:"2574a46c51bd1d18808f1bac945a7d356550e02c",id:"markdown",ref:e=>this.rootElement=e}))}setupImageIntersectionObserver(){this.lazyLoadImages&&(this.imageIntersectionObserver=new i(this.rootElement))}cleanupImageIntersectionObserver(){this.imageIntersectionObserver&&(this.imageIntersectionObserver.disconnect(),this.imageIntersectionObserver=null)}static get watchers(){return{value:[{textChanged:0}],whitelist:[{handleWhitelistChange:0}],removeEmptyParagraphs:[{handleRemoveEmptyParagraphsChange:0}],adaptColorContrast:[{handleAdaptColorContrastChange:0}]}}};O.style='@charset "UTF-8";pre,pre p,code{font-family:ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;font-size:0.75rem}pre{max-width:100%;white-space:pre-wrap;word-wrap:break-word}code{letter-spacing:-0.0125rem;color:rgb(var(--contrast-1300));tab-size:4;hyphens:none;display:inline;border-radius:0.25rem;padding:0.03125rem 0.25rem;background-color:rgb(var(--contrast-600))}pre>code{display:block;margin:0.5rem 0;padding:0.5rem 0.75rem}h1{font-size:1.5rem}h2{font-size:1.25rem}h3{font-size:1.125rem}h4{font-size:1rem}h5{font-size:var(--limel-theme-default-font-size)}h6{font-size:0.75rem}h1,h2{margin-top:0.5rem;margin-bottom:0.5rem;letter-spacing:-0.03125rem;font-weight:500}h3,h4{margin-top:0.75rem;margin-bottom:0.25rem;font-weight:600}h5,h6{margin-top:0.5rem;margin-bottom:0.125rem;font-weight:600}h1,h2,h3,h4,h5,h6{word-break:break-word;hyphens:auto;-webkit-hyphens:auto}h1 code,h2 code,h3 code,h4 code,h5 code,h6 code{font-size:inherit}:not([contenteditable=true]) h1,:not([contenteditable=true]) h2,:not([contenteditable=true]) h3,:not([contenteditable=true]) h4,:not([contenteditable=true]) h5,:not([contenteditable=true]) h6{text-wrap:balance}[contenteditable=true] h1,[contenteditable=true] h2,[contenteditable=true] h3,[contenteditable=true] h4,[contenteditable=true] h5,[contenteditable=true] h6{text-wrap:initial}:host(limel-markdown.truncate-paragraphs) p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}p,li{font-size:var(--limel-theme-default-font-size);word-break:break-word}a{word-break:break-all}p{margin-top:0;margin-bottom:0.5rem}p:last-child{margin-bottom:0}a{transition:color 0.2s ease;color:var(--markdown-hyperlink-color, rgb(var(--color-blue-dark)));text-decoration:none}a:hover{color:var(--markdown-hyperlink-color--hovered, rgb(var(--color-blue-default)))}hr{margin:1.75rem 0 2rem 0;border-width:0;border-top:1px solid rgb(var(--contrast-500))}ul{list-style:none}ul>li{margin-left:0.75rem}ul>li:before{content:"";position:absolute;left:-0.5rem;top:0.5rem;width:0.25rem;height:0.25rem;border-radius:50%;background-color:rgb(var(--contrast-700));display:block}ol{margin-top:0.25rem;padding-left:1rem}ul{margin-top:0.25rem;padding-left:0}ul ul,ul ol,ol ol,ol ul{margin-left:0}li{position:relative;margin-bottom:0.25rem}:host(limel-markdown:not(.no-table-styles)) table{table-layout:auto;min-width:100%;border-collapse:collapse;border-spacing:0;background:transparent;margin:0.75rem 0}:host(limel-markdown:not(.no-table-styles)) tbody{border:1px solid rgb(var(--contrast-400));border-radius:0.25rem}:host(limel-markdown:not(.no-table-styles)) th,:host(limel-markdown:not(.no-table-styles)) td{text-align:left;vertical-align:top;transition:background-color 0.2s ease;font-size:var(--limel-theme-default-font-size)}:host(limel-markdown:not(.no-table-styles)) th p,:host(limel-markdown:not(.no-table-styles)) th li,:host(limel-markdown:not(.no-table-styles)) th a,:host(limel-markdown:not(.no-table-styles)) td p,:host(limel-markdown:not(.no-table-styles)) td li,:host(limel-markdown:not(.no-table-styles)) td a{word-break:normal;overflow-wrap:normal}:host(limel-markdown:not(.no-table-styles)) td{padding:0.5rem 0.375rem 0.75rem 0.375rem}:host(limel-markdown:not(.no-table-styles)) tr th{background-color:rgb(var(--contrast-400));padding:0.25rem 0.375rem;font-weight:normal}:host(limel-markdown:not(.no-table-styles)) tr th:only-child{text-align:center}:host(limel-markdown:not(.no-table-styles)) tbody tr:nth-child(odd) td{background-color:rgb(var(--contrast-200))}:host(limel-markdown:not(.no-table-styles)) tbody tr:hover td{background-color:rgb(var(--contrast-300))}table{display:block;box-sizing:border-box;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}blockquote{position:relative;max-width:100%;margin:0.75rem 0;padding:0.5rem;border-left:0.25rem solid rgb(var(--contrast-500));background-color:rgb(var(--contrast-200))}blockquote:before,blockquote:after{position:absolute;line-height:0;font-size:2rem;opacity:0.4}blockquote:before{content:"“";left:-0.5rem;top:0.5rem}blockquote:after{content:"”";right:-0.25rem;bottom:-0.25rem}blockquote blockquote{padding-top:0;padding-right:0;padding-bottom:0;padding-left:0.25rem;border-color:rgb(var(--contrast-700));border-left-width:1px}blockquote blockquote:before,blockquote blockquote:after{display:none}blockquote:has(>blockquote){padding-left:0.25rem;padding-bottom:0}dl{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr;margin-bottom:2rem;border:1px solid rgb(var(--contrast-400));border-radius:0.375rem;background-color:rgb(var(--contrast-200))}dl dt,dl dd{padding:0.375rem 0.5rem;font-size:var(--limel-theme-default-font-size);margin:0}dl dt:nth-of-type(even),dl dd:nth-of-type(even){background-color:rgb(var(--contrast-300))}dl dt:first-child{border-top-left-radius:0.375rem}dl dt:last-child{border-bottom-left-radius:0.375rem}dl dd:first-child{border-top-right-radius:0.375rem}dl dd:last-child{border-bottom-right-radius:0.375rem}img{max-width:100%;border-radius:0.25rem}kbd{display:inline-block;font-family:ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;font-weight:600;color:rgb(var(--contrast-1100));white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:normal;border-radius:0.125rem;border-style:solid;border-color:rgb(var(--contrast-500));border-width:0 1px 0.1875rem 1px;padding:0.0625rem 0.375rem;margin:0 0.25rem;background-color:rgb(var(--contrast-200));box-shadow:var(--button-shadow-normal), 0 0.625rem 0.375rem -0.5rem rgb(var(--color-black), 0.02), 0 0.025rem 0.5rem 0 rgb(var(--contrast-100)) inset}:host(limel-markdown.adjust-for-table-cell) img{max-height:1.25rem;vertical-align:middle}:host(limel-markdown.adjust-for-table-cell) p{display:inline}:host(limel-markdown.adjust-for-table-cell) h1,:host(limel-markdown.adjust-for-table-cell) h2,:host(limel-markdown.adjust-for-table-cell) h3,:host(limel-markdown.adjust-for-table-cell) h4,:host(limel-markdown.adjust-for-table-cell) h5,:host(limel-markdown.adjust-for-table-cell) h6{display:inline-block;vertical-align:bottom;font-size:var(--limel-theme-default-font-size);margin:0 0.25rem 0 0;letter-spacing:normal;font-weight:500}:host(limel-markdown.adjust-for-table-cell) h1:before,:host(limel-markdown.adjust-for-table-cell) h2:before,:host(limel-markdown.adjust-for-table-cell) h3:before,:host(limel-markdown.adjust-for-table-cell) h4:before,:host(limel-markdown.adjust-for-table-cell) h5:before,:host(limel-markdown.adjust-for-table-cell) h6:before{opacity:0.6;vertical-align:middle;font-size:0.5rem;border-radius:0.25rem 0 0 0.25rem;padding:0.25rem;padding-right:2rem;margin-right:-1.75rem;background:linear-gradient(to right, rgb(var(--contrast-800), 0.6), rgb(var(--contrast-800), 0))}:host(limel-markdown.adjust-for-table-cell) h1:before{content:"H1"}:host(limel-markdown.adjust-for-table-cell) h2:before{content:"H2"}:host(limel-markdown.adjust-for-table-cell) h3:before{content:"H3"}:host(limel-markdown.adjust-for-table-cell) h4:before{content:"H4"}:host(limel-markdown.adjust-for-table-cell) h5:before{content:"H5"}:host(limel-markdown.adjust-for-table-cell) h6:before{content:"H6"}:host(limel-markdown.adjust-for-table-cell) pre{margin:0}:host(limel-markdown.adjust-for-table-cell) pre>code{padding:0.125rem;margin:0}:host(limel-markdown.adjust-for-table-cell) dl{margin:0}:host(limel-markdown.adjust-for-table-cell) dl dt,:host(limel-markdown.adjust-for-table-cell) dl dd{padding:0.00625rem 0.125rem}*,*::before,*::after{box-sizing:border-box}* :where(:not(img,video,svg,canvas,iframe)),*::before :where(:not(img,video,svg,canvas,iframe)),*::after :where(:not(img,video,svg,canvas,iframe)){min-width:0;min-height:0}hr{border-top:1px solid rgb(var(--contrast-700))}.MsoNormal{margin:0}:host(limel-markdown.reset-img-height) #markdown img{height:auto !important}';export{O as limel_markdown}
1
+ import{r as e,h as t,H as r}from"./p-BU9IJqli.js";import{m as o}from"./p-C0wwdPYT.js";import{g as a}from"./p-Dnt5w_Bp.js";import{d as n}from"./p-_UXAljNc.js";import{a as l}from"./p-BQoih_t0.js";import"./p-B85MJLTf.js";class i{constructor(e){this.handleIntersection=e=>{for(const t of e){if(!t.isIntersecting)continue;const e=t.target,r=e.dataset.src;r&&(e.setAttribute("src",r),delete e.dataset.src),this.observer.unobserve(e)}},this.observer=new IntersectionObserver(this.handleIntersection);const t=e.querySelectorAll("img");for(const e of t)this.observer.observe(e)}disconnect(){this.observer.disconnect()}}var s;const d=new Map(Object.entries(null!==(s=n.protocols)&&void 0!==s?s:{}).map((([e,t])=>[e,new Set(t)])));function m(e,t){for(const r of t){const t=e.getAttribute(r);if(!t)continue;const o=c(t);if(void 0===o)continue;const a=f(o);e[b(r)]=a}}function c(e){const t=e.trim();if(t.startsWith("{")&&t.endsWith("}")||t.startsWith("[")&&t.endsWith("]"))try{return JSON.parse(t)}catch(e){try{const e=t.replaceAll("&#x22;",'"').replaceAll("&#34;",'"').replaceAll("&quot;",'"').replaceAll("&#x27;","'").replaceAll("&#39;","'").replaceAll("&apos;","'").replaceAll("&amp;","&");return JSON.parse(e)}catch(e){return}}}function h(e,t){const r=e.trim(),o=r.indexOf(":");if(-1===o||/[?#/]/.test(r.slice(0,o)))return!0;const a=r.slice(0,o).toLowerCase();return t.has(a)}function f(e){if(null===e||"object"!=typeof e)return e;if(Array.isArray(e))return e.map(f);const t=Object.assign({},e);for(const e of Object.keys(t)){const r=d.get(e);r&&"string"==typeof t[e]&&!h(t[e],r)?(console.warn(`limel-markdown: Removed unsafe URL from "${e}" during sanitization.`),delete t[e]):"object"==typeof t[e]&&null!==t[e]&&(t[e]=f(t[e]))}return t}function b(e){return e.replaceAll(/-([a-z])/g,((e,t)=>t.toUpperCase()))}var u,g="undefined"==typeof document?void 0:document,p=!!g&&"content"in g.createElement("template"),v=!!g&&g.createRange&&"createContextualFragment"in g.createRange();function w(e,t){var r,o,a=e.nodeName,n=t.nodeName;return a===n||(r=a.charCodeAt(0),o=n.charCodeAt(0),r<=90&&o>=97?a===n.toUpperCase():o<=90&&r>=97&&n===a.toUpperCase())}function k(e,t,r){e[r]!==t[r]&&(e[r]=t[r],e[r]?e.setAttribute(r,""):e.removeAttribute(r))}var y={OPTION:function(e,t){var r=e.parentNode;if(r){var o=r.nodeName.toUpperCase();"OPTGROUP"===o&&(o=(r=r.parentNode)&&r.nodeName.toUpperCase()),"SELECT"!==o||r.hasAttribute("multiple")||(e.hasAttribute("selected")&&!t.selected&&(e.setAttribute("selected","selected"),e.removeAttribute("selected")),r.selectedIndex=-1)}k(e,t,"selected")},INPUT:function(e,t){k(e,t,"checked"),k(e,t,"disabled"),e.value!==t.value&&(e.value=t.value),t.hasAttribute("value")||e.removeAttribute("value")},TEXTAREA:function(e,t){var r=t.value;e.value!==r&&(e.value=r);var o=e.firstChild;if(o){var a=o.nodeValue;if(a==r||!r&&a==e.placeholder)return;o.nodeValue=r}},SELECT:function(e,t){if(!t.hasAttribute("multiple")){for(var r,o,a=-1,n=0,l=e.firstChild;l;)if("OPTGROUP"===(o=l.nodeName&&l.nodeName.toUpperCase()))(l=(r=l).firstChild)||(l=r.nextSibling,r=null);else{if("OPTION"===o){if(l.hasAttribute("selected")){a=n;break}n++}!(l=l.nextSibling)&&r&&(l=r.nextSibling,r=null)}e.selectedIndex=a}}};function j(){}function x(e){if(e)return e.getAttribute&&e.getAttribute("id")||e.id}var z=function(e,t,r){if(r||(r={}),"string"==typeof t)if("#document"===e.nodeName||"HTML"===e.nodeName){var o=t;(t=g.createElement("html")).innerHTML=o}else if("BODY"===e.nodeName){var a=t;(t=g.createElement("html")).innerHTML=a;var n=t.querySelector("body");n&&(t=n)}else l=(l=t).trim(),t=p?function(e){var t=g.createElement("template");return t.innerHTML=e,t.content.childNodes[0]}(l):v?function(e){return u||(u=g.createRange()).selectNode(g.body),u.createContextualFragment(e).childNodes[0]}(l):function(e){var t=g.createElement("body");return t.innerHTML=e,t.childNodes[0]}(l);else 11===t.nodeType&&(t=t.firstElementChild);var l,i=r.getNodeKey||x,s=r.onBeforeNodeAdded||j,d=r.onNodeAdded||j,m=r.onBeforeElUpdated||j,c=r.onElUpdated||j,h=r.onBeforeNodeDiscarded||j,f=r.onNodeDiscarded||j,b=r.onBeforeElChildrenUpdated||j,k=r.skipFromChildren||j,z=r.addChild||function(e,t){return e.appendChild(t)},C=!0===r.childrenOnly,O=Object.create(null),T=[];function N(e){T.push(e)}function q(e,t){if(1===e.nodeType)for(var r=e.firstChild;r;){var o=void 0;t&&(o=i(r))?N(o):(f(r),r.firstChild&&q(r,t)),r=r.nextSibling}}function M(e,t,r){!1!==h(e)&&(t&&t.removeChild(e),f(e),q(e,r))}function P(e){if(1===e.nodeType||11===e.nodeType)for(var t=e.firstChild;t;){var r=i(t);r&&(O[r]=t),P(t),t=t.nextSibling}}function E(e){d(e);for(var t=e.firstChild;t;){var r=t.nextSibling,o=i(t);if(o){var a=O[o];a&&w(t,a)?(t.parentNode.replaceChild(a,t),H(a,t)):E(t)}else E(t);t=r}}function H(e,t,r){var o=i(t);if(o&&delete O[o],!r){var a=m(e,t);if(!1===a)return;if(a instanceof HTMLElement&&P(e=a),function(e,t){var r,o,a,n,l=t.attributes;if(11!==t.nodeType&&11!==e.nodeType){for(var i=l.length-1;i>=0;i--)o=(r=l[i]).name,n=r.value,(a=r.namespaceURI)?e.getAttributeNS(a,o=r.localName||o)!==n&&("xmlns"===r.prefix&&(o=r.name),e.setAttributeNS(a,o,n)):e.getAttribute(o)!==n&&e.setAttribute(o,n);for(var s=e.attributes,d=s.length-1;d>=0;d--)o=(r=s[d]).name,(a=r.namespaceURI)?t.hasAttributeNS(a,o=r.localName||o)||e.removeAttributeNS(a,o):t.hasAttribute(o)||e.removeAttribute(o)}}(e,t),c(e),!1===b(e,t))return}"TEXTAREA"!==e.nodeName?function(e,t){var r,o,a,n,l,d=k(e,t),m=t.firstChild,c=e.firstChild;e:for(;m;){for(n=m.nextSibling,r=i(m);!d&&c;){if(a=c.nextSibling,m.isSameNode&&m.isSameNode(c)){m=n,c=a;continue e}o=i(c);var h=c.nodeType,f=void 0;if(h===m.nodeType&&(1===h?(r?r!==o&&((l=O[r])?a===l?f=!1:(e.insertBefore(l,c),o?N(o):M(c,e,!0),o=i(c=l)):f=!1):o&&(f=!1),(f=!1!==f&&w(c,m))&&H(c,m)):3!==h&&8!=h||(f=!0,c.nodeValue!==m.nodeValue&&(c.nodeValue=m.nodeValue))),f){m=n,c=a;continue e}o?N(o):M(c,e,!0),c=a}if(r&&(l=O[r])&&w(l,m))d||z(e,l),H(l,m);else{var b=s(m);!1!==b&&(b&&(m=b),m.actualize&&(m=m.actualize(e.ownerDocument||g)),z(e,m),E(m))}m=n,c=a}!function(e,t,r){for(;t;){var o=t.nextSibling;(r=i(t))?N(r):M(t,e,!0),t=o}}(e,c,o);var u=y[e.nodeName];u&&u(e,t)}(e,t):y.TEXTAREA(e,t)}P(e);var I,L,S=e,A=S.nodeType,R=t.nodeType;if(!C)if(1===A)1===R?w(e,t)||(f(e),S=function(e,t){for(var r=e.firstChild;r;){var o=r.nextSibling;t.appendChild(r),r=o}return t}(e,(I=t.nodeName,(L=t.namespaceURI)&&"http://www.w3.org/1999/xhtml"!==L?g.createElementNS(L,I):g.createElement(I)))):S=t;else if(3===A||8===A){if(R===A)return S.nodeValue!==t.nodeValue&&(S.nodeValue=t.nodeValue),S;S=t}if(S===t)f(e);else{if(t.isSameNode&&t.isSameNode(S))return;if(H(S,t,C),T)for(var B=0,U=T.length;B<U;B++){var D=O[T[B]];D&&M(D,D.parentNode,!1)}}return!C&&S!==e&&e.parentNode&&(S.actualize&&(S=S.actualize(e.ownerDocument||g)),e.parentNode.replaceChild(S,e)),S};const C=[{tagName:"limel-chip",attributes:["text","icon","link","badge","disabled","readonly","selected","type","size"]},{tagName:"limel-icon",attributes:["name","size","badge"]},{tagName:"limel-badge",attributes:["label"]},{tagName:"limel-callout",attributes:["heading","icon","type"]},{tagName:"limel-linear-progress",attributes:["value","indeterminate"]},{tagName:"limel-circular-progress",attributes:["value","max-value","prefix","suffix","size","display-percentage-colors"]},{tagName:"limel-spinner",attributes:["size"]},{tagName:"limel-info-tile",attributes:["value","icon","label","prefix","suffix","badge"]}],O=class{constructor(t){e(this,t),this.value="",this.whitelist=a.markdownWhitelist,this.lazyLoadImages=!1,this.removeEmptyParagraphs=!0,this.adaptColorContrast=!1,this.imageIntersectionObserver=null}async toMarkdown(){await this.rendering;const{exportMarkdown:e}=await import("./p-Bgn2bikC.js");return e(this.rootElement,this.cachedCombinedWhitelist)}textChanged(){return this.rendering=this.renderMarkdown(),this.rendering}async renderMarkdown(){try{this.cleanupImageIntersectionObserver(),this.cachedCombinedWhitelist&&this.whitelist===this.cachedConsumerWhitelist||(this.cachedConsumerWhitelist=this.whitelist,this.cachedCombinedWhitelist=function(e,t){if(!(null==t?void 0:t.length))return e.map((e=>Object.assign(Object.assign({},e),{attributes:[...e.attributes]})));const r=new Map;for(const o of[...e,...t]){const e=r.get(o.tagName);if(e)for(const t of o.attributes)e.add(t);else r.set(o.tagName,new Set(o.attributes))}return[...r].map((([e,t])=>({tagName:e,attributes:[...t]})))}(C,this.whitelist));const e=this.cachedCombinedWhitelist,t=await o(this.value,{forceHardLineBreaks:!0,whitelist:e,lazyLoadImages:this.lazyLoadImages,removeEmptyParagraphs:this.removeEmptyParagraphs});!function(e,t=""){try{z(e,`<div>${t}</div>`,{childrenOnly:!0})}catch(r){console.warn("morphdom failed, falling back to innerHTML:",r),e.innerHTML=t}}(this.rootElement,t),function(e,t){if(e&&(null==t?void 0:t.length))for(const r of t){const t=e.querySelectorAll(r.tagName);for(const e of t)m(e,r.attributes)}}(this.rootElement,e),this.adaptColorContrast&&l(this.rootElement),this.setupImageIntersectionObserver()}catch(e){console.error(e)}}handleWhitelistChange(){return this.textChanged()}handleRemoveEmptyParagraphsChange(){return this.textChanged()}handleAdaptColorContrastChange(){return this.textChanged()}async componentDidLoad(){this.textChanged()}disconnectedCallback(){this.cleanupImageIntersectionObserver()}render(){return t(r,{key:"3121124a57e9522dced4b749bfedfbe8dea2ea70"},t("div",{key:"6f2b983303c0921a7b979cf0bbbdcc657e7555f8",id:"markdown",ref:e=>this.rootElement=e}))}setupImageIntersectionObserver(){this.lazyLoadImages&&(this.imageIntersectionObserver=new i(this.rootElement))}cleanupImageIntersectionObserver(){this.imageIntersectionObserver&&(this.imageIntersectionObserver.disconnect(),this.imageIntersectionObserver=null)}static get watchers(){return{value:[{textChanged:0}],whitelist:[{handleWhitelistChange:0}],removeEmptyParagraphs:[{handleRemoveEmptyParagraphsChange:0}],adaptColorContrast:[{handleAdaptColorContrastChange:0}]}}};O.style='@charset "UTF-8";pre,pre p,code{font-family:ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;font-size:0.75rem}pre{max-width:100%;white-space:pre-wrap;word-wrap:break-word}code{letter-spacing:-0.0125rem;color:rgb(var(--contrast-1300));tab-size:4;hyphens:none;display:inline;border-radius:0.25rem;padding:0.03125rem 0.25rem;background-color:rgb(var(--contrast-600))}pre>code{display:block;margin:0.5rem 0;padding:0.5rem 0.75rem}h1{font-size:1.5rem}h2{font-size:1.25rem}h3{font-size:1.125rem}h4{font-size:1rem}h5{font-size:var(--limel-theme-default-font-size)}h6{font-size:0.75rem}h1,h2{margin-top:0.5rem;margin-bottom:0.5rem;letter-spacing:-0.03125rem;font-weight:500}h3,h4{margin-top:0.75rem;margin-bottom:0.25rem;font-weight:600}h5,h6{margin-top:0.5rem;margin-bottom:0.125rem;font-weight:600}h1,h2,h3,h4,h5,h6{word-break:break-word;hyphens:auto;-webkit-hyphens:auto}h1 code,h2 code,h3 code,h4 code,h5 code,h6 code{font-size:inherit}:not([contenteditable=true]) h1,:not([contenteditable=true]) h2,:not([contenteditable=true]) h3,:not([contenteditable=true]) h4,:not([contenteditable=true]) h5,:not([contenteditable=true]) h6{text-wrap:balance}[contenteditable=true] h1,[contenteditable=true] h2,[contenteditable=true] h3,[contenteditable=true] h4,[contenteditable=true] h5,[contenteditable=true] h6{text-wrap:initial}:host(limel-markdown.truncate-paragraphs) p{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}p,li{font-size:var(--limel-theme-default-font-size);word-break:break-word}a{word-break:break-all}p{margin-top:0;margin-bottom:0.5rem}p:last-child{margin-bottom:0}a{transition:color 0.2s ease;color:var(--markdown-hyperlink-color, rgb(var(--color-blue-dark)));text-decoration:none}a:hover{color:var(--markdown-hyperlink-color--hovered, rgb(var(--color-blue-default)))}hr{margin:1.75rem 0 2rem 0;border-width:0;border-top:1px solid rgb(var(--contrast-500))}ul{list-style:none}ul>li{margin-left:0.75rem}ul>li:before{content:"";position:absolute;left:-0.5rem;top:0.5rem;width:0.25rem;height:0.25rem;border-radius:50%;background-color:rgb(var(--contrast-700));display:block}ol{margin-top:0.25rem;padding-left:1rem}ul{margin-top:0.25rem;padding-left:0}ul ul,ul ol,ol ol,ol ul{margin-left:0}li{position:relative;margin-bottom:0.25rem}:host(limel-markdown:not(.no-table-styles)) table{table-layout:auto;min-width:100%;border-collapse:collapse;border-spacing:0;background:transparent;margin:0.75rem 0}:host(limel-markdown:not(.no-table-styles)) tbody{border:1px solid rgb(var(--contrast-400));border-radius:0.25rem}:host(limel-markdown:not(.no-table-styles)) th,:host(limel-markdown:not(.no-table-styles)) td{text-align:left;vertical-align:top;transition:background-color 0.2s ease;font-size:var(--limel-theme-default-font-size)}:host(limel-markdown:not(.no-table-styles)) th p,:host(limel-markdown:not(.no-table-styles)) th li,:host(limel-markdown:not(.no-table-styles)) th a,:host(limel-markdown:not(.no-table-styles)) td p,:host(limel-markdown:not(.no-table-styles)) td li,:host(limel-markdown:not(.no-table-styles)) td a{word-break:normal;overflow-wrap:normal}:host(limel-markdown:not(.no-table-styles)) td{padding:0.5rem 0.375rem 0.75rem 0.375rem}:host(limel-markdown:not(.no-table-styles)) tr th{background-color:rgb(var(--contrast-400));padding:0.25rem 0.375rem;font-weight:normal}:host(limel-markdown:not(.no-table-styles)) tr th:only-child{text-align:center}:host(limel-markdown:not(.no-table-styles)) tbody tr:nth-child(odd) td{background-color:rgb(var(--contrast-200))}:host(limel-markdown:not(.no-table-styles)) tbody tr:hover td{background-color:rgb(var(--contrast-300))}table{display:block;box-sizing:border-box;overflow-x:auto;-webkit-overflow-scrolling:touch;max-width:100%}blockquote{position:relative;max-width:100%;margin:0.75rem 0;padding:0.5rem;border-left:0.25rem solid rgb(var(--contrast-500));background-color:rgb(var(--contrast-200))}blockquote:before,blockquote:after{position:absolute;line-height:0;font-size:2rem;opacity:0.4}blockquote:before{content:"“";left:-0.5rem;top:0.5rem}blockquote:after{content:"”";right:-0.25rem;bottom:-0.25rem}blockquote blockquote{padding-top:0;padding-right:0;padding-bottom:0;padding-left:0.25rem;border-color:rgb(var(--contrast-700));border-left-width:1px}blockquote blockquote:before,blockquote blockquote:after{display:none}blockquote:has(>blockquote){padding-left:0.25rem;padding-bottom:0}dl{display:grid;grid-template-columns:1fr 2fr;grid-template-rows:1fr;margin-bottom:2rem;border:1px solid rgb(var(--contrast-400));border-radius:0.375rem;background-color:rgb(var(--contrast-200))}dl dt,dl dd{padding:0.375rem 0.5rem;font-size:var(--limel-theme-default-font-size);margin:0}dl dt:nth-of-type(even),dl dd:nth-of-type(even){background-color:rgb(var(--contrast-300))}dl dt:first-child{border-top-left-radius:0.375rem}dl dt:last-child{border-bottom-left-radius:0.375rem}dl dd:first-child{border-top-right-radius:0.375rem}dl dd:last-child{border-bottom-right-radius:0.375rem}img{max-width:100%;border-radius:0.25rem}kbd{display:inline-block;font-family:ui-monospace, "Cascadia Code", "Source Code Pro", Menlo, Consolas, "DejaVu Sans Mono", monospace;font-weight:600;color:rgb(var(--contrast-1100));white-space:pre;word-spacing:normal;word-break:normal;word-wrap:normal;line-height:normal;border-radius:0.125rem;border-style:solid;border-color:rgb(var(--contrast-500));border-width:0 1px 0.1875rem 1px;padding:0.0625rem 0.375rem;margin:0 0.25rem;background-color:rgb(var(--contrast-200));box-shadow:var(--button-shadow-normal), 0 0.625rem 0.375rem -0.5rem rgb(var(--color-black), 0.02), 0 0.025rem 0.5rem 0 rgb(var(--contrast-100)) inset}:host(limel-markdown.adjust-for-table-cell) img{max-height:1.25rem;vertical-align:middle}:host(limel-markdown.adjust-for-table-cell) p{display:inline}:host(limel-markdown.adjust-for-table-cell) h1,:host(limel-markdown.adjust-for-table-cell) h2,:host(limel-markdown.adjust-for-table-cell) h3,:host(limel-markdown.adjust-for-table-cell) h4,:host(limel-markdown.adjust-for-table-cell) h5,:host(limel-markdown.adjust-for-table-cell) h6{display:inline-block;vertical-align:bottom;font-size:var(--limel-theme-default-font-size);margin:0 0.25rem 0 0;letter-spacing:normal;font-weight:500}:host(limel-markdown.adjust-for-table-cell) h1:before,:host(limel-markdown.adjust-for-table-cell) h2:before,:host(limel-markdown.adjust-for-table-cell) h3:before,:host(limel-markdown.adjust-for-table-cell) h4:before,:host(limel-markdown.adjust-for-table-cell) h5:before,:host(limel-markdown.adjust-for-table-cell) h6:before{opacity:0.6;vertical-align:middle;font-size:0.5rem;border-radius:0.25rem 0 0 0.25rem;padding:0.25rem;padding-right:2rem;margin-right:-1.75rem;background:linear-gradient(to right, rgb(var(--contrast-800), 0.6), rgb(var(--contrast-800), 0))}:host(limel-markdown.adjust-for-table-cell) h1:before{content:"H1"}:host(limel-markdown.adjust-for-table-cell) h2:before{content:"H2"}:host(limel-markdown.adjust-for-table-cell) h3:before{content:"H3"}:host(limel-markdown.adjust-for-table-cell) h4:before{content:"H4"}:host(limel-markdown.adjust-for-table-cell) h5:before{content:"H5"}:host(limel-markdown.adjust-for-table-cell) h6:before{content:"H6"}:host(limel-markdown.adjust-for-table-cell) pre{margin:0}:host(limel-markdown.adjust-for-table-cell) pre>code{padding:0.125rem;margin:0}:host(limel-markdown.adjust-for-table-cell) dl{margin:0}:host(limel-markdown.adjust-for-table-cell) dl dt,:host(limel-markdown.adjust-for-table-cell) dl dd{padding:0.00625rem 0.125rem}*,*::before,*::after{box-sizing:border-box}* :where(:not(img,video,svg,canvas,iframe)),*::before :where(:not(img,video,svg,canvas,iframe)),*::after :where(:not(img,video,svg,canvas,iframe)){min-width:0;min-height:0}hr{border-top:1px solid rgb(var(--contrast-700))}.MsoNormal{margin:0}:host(limel-markdown.reset-img-height) #markdown img{height:auto !important}';export{O as limel_markdown}
@@ -1 +1 @@
1
- import{r as e,c as o,h as t,a as i}from"./p-BU9IJqli.js";import{d as n}from"./p-z_E3sq3p.js";import{m as s,r}from"./p-CIf8aGSd.js";import{c as a}from"./p-BrjD-ITe.js";import{b as l,d as c,g as d}from"./p-CgNJbSP4.js";import{t as p}from"./p-B26k4gw8.js";import"./p-ChagAaNf.js";function h(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=1&&e<=6}const g=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.headingLevel=2,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;const e=`h${this.getHeadingLevel()}`;return t(e,{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}"`:" "})}componentWillLoad(){this.warnIfHeadingLevelIsInvalid()}handleHeadingLevelChange(){this.warnIfHeadingLevelIsInvalid()}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:"a962a510a5b7b832a272efa04863b2256fcafb8d",class:this.isOpen?"open":"","aria-invalid":this.invalid,"aria-labelledby":this.header?this.headingId:null},t("header",{key:"334d79ce2f441a96e3f7a9dade6284e20d6b4552"},t("button",{key:"ecbf1641823c0ae2549de6dc4e141e833399665f",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:"90c7f01227969181d176d455131ced7df34b2737",class:"divider-line",role:"presentation"}),this.renderHeaderSlot(),this.renderActions()),t("div",{key:"eb2a04b6993e09a6aad2efe34a9a3b396b4ec81f",class:"body",inert:!this.isOpen,"aria-hidden":String(!this.isOpen),id:this.bodyId,role:"region"},t("slot",{key:"86595241b48df66a4482a90edbf6a0c8f699024a"})))}getHeadingLevel(){return h(this.headingLevel)?this.headingLevel:2}warnIfHeadingLevelIsInvalid(){h(this.headingLevel)||console.warn(`limel-collapsible-section: headingLevel must be a whole number from 1 to 6, but it is ${this.headingLevel}. The heading is drawn as an h2 instead.`)}renderHeaderSlot(){return t("slot",{name:"header"})}get host(){return i(this)}static get watchers(){return{headingLevel:[{handleHeadingLevelChange:0}]}}};g.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{g as limel_collapsible_section}
1
+ import{r as e,c as o,h as t,a as i}from"./p-BU9IJqli.js";import{d as n}from"./p-z_E3sq3p.js";import{m as s,r}from"./p-CIf8aGSd.js";import{c as a}from"./p-BrjD-ITe.js";import{b as l,d as c,g as d}from"./p-CgNJbSP4.js";import{t as p}from"./p-B26k4gw8.js";import"./p-ChagAaNf.js";function h(e){return"number"==typeof e&&Number.isSafeInteger(e)&&e>=1&&e<=6}const g=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.headingLevel=2,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;const e=`h${this.getHeadingLevel()}`;return t(e,{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}"`:" "})}componentWillLoad(){this.warnIfHeadingLevelIsInvalid()}handleHeadingLevelChange(){this.warnIfHeadingLevelIsInvalid()}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:"1cb8db604bbbc8f8dbb7ca97895b3cfcf4dcd80b",class:this.isOpen?"open":"","aria-invalid":this.invalid,"aria-labelledby":this.header?this.headingId:null},t("header",{key:"4e55c5b636b1d049df4d77a77a35285648096ea0"},t("button",{key:"29eefb5499fb0f00cbdf513698acf8f357a935a6",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:"16ec84abfe81a812c9d30188a714b58d363ca8a3",class:"divider-line",role:"presentation"}),this.renderHeaderSlot(),this.renderActions()),t("div",{key:"f28ff7d73f05dc1a6ca0dcd9948cb67107647598",class:"body",inert:!this.isOpen,"aria-hidden":String(!this.isOpen),id:this.bodyId,role:"region"},t("slot",{key:"33d0fda5501c178f92dff4a1b0361a43829fe095"})))}getHeadingLevel(){return h(this.headingLevel)?this.headingLevel:2}warnIfHeadingLevelIsInvalid(){h(this.headingLevel)||console.warn(`limel-collapsible-section: headingLevel must be a whole number from 1 to 6, but it is ${this.headingLevel}. The heading is drawn as an h2 instead.`)}renderHeaderSlot(){return t("slot",{name:"header"})}get host(){return i(this)}static get watchers(){return{headingLevel:[{handleHeadingLevelChange:0}]}}};g.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{g as limel_collapsible_section}
@@ -1 +1 @@
1
- import{r as e,c as i,h as o,H as t,a as r}from"./p-BU9IJqli.js";import{I as s}from"./p-N9vxZMhe.js";import{i as a}from"./p-CrvUOVvg.js";import{g as l}from"./p-CgNJbSP4.js";import{g as c}from"./p-CllX3RLB.js";const d=class{constructor(o){e(this,o),this.actionSelected=i(this,"actionSelected",7),this.actions=[],this.clickable=!1,this.orientation="portrait",this.selected=!1,this.show3dEffect=!0,this.canScrollUp=!1,this.canScrollDown=!1,this.setMarkdownElement=e=>{var i;e!==this.markdownElement&&(this.markdownElement&&(null===(i=this.markdownResizeObserver)||void 0===i||i.disconnect(),this.markdownElement.removeEventListener("scroll",this.checkIfScrollable)),this.markdownElement=e,this.markdownElement&&(this.markdownResizeObserver=new ResizeObserver(this.checkIfScrollable),this.markdownResizeObserver.observe(this.markdownElement),this.markdownElement.addEventListener("scroll",this.checkIfScrollable,{passive:!0}),this.checkIfScrollable()))},this.checkIfScrollable=()=>{if(!this.markdownElement)return;const e=this.markdownElement.scrollHeight,i=this.markdownElement.clientHeight,o=this.markdownElement.scrollTop,t=e>i,r=t&&!(o+i>=e-2),s=t&&!(o<=1);this.canScrollDown!==r&&(this.canScrollDown=r),this.canScrollUp!==s&&(this.canScrollUp=s)},this.handleActionSelect=e=>{e.stopPropagation(),a(e.detail)&&this.actionSelected.emit(e.detail)},this.handleKeyDown=e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.host.click()))}}componentWillLoad(){const{handleMouseEnter:e,handleMouseLeave:i,cleanup:o}=c(this.host);this.handleMouseEnter=e,this.handleMouseLeave=i,this.cleanup3dHoverEffect=o}disconnectedCallback(){var e,i,o;null===(e=this.markdownResizeObserver)||void 0===e||e.disconnect(),null===(i=this.markdownElement)||void 0===i||i.removeEventListener("scroll",this.checkIfScrollable),null===(o=this.cleanup3dHoverEffect)||void 0===o||o.call(this)}componentDidLoad(){this.setMarkdownElement(this.markdownElement)}render(){return o(t,{key:"2a6a3ed639da17268e73b6f831fb078238180ff1",onMouseEnter:this.show3dEffect?this.handleMouseEnter:void 0,onMouseLeave:this.show3dEffect?this.handleMouseLeave:void 0},o("section",{key:"6f101065e3070b6bcd7c0ad1cfed1b42fd2a6ffa",tabindex:this.clickable?0:void 0,role:this.clickable?"button":void 0,"aria-pressed":this.clickable?String(this.selected):void 0,onKeyDown:this.clickable?this.handleKeyDown:void 0},this.renderImage(),o("div",{key:"fb221be028aca6ed2a9cc10240f4158be3c25635",class:"body"},this.renderHeader(),this.renderSlot(),this.renderValue(),this.renderActionBar()),this.show3dEffect&&o("limel-3d-hover-effect-glow",{key:"2ea77801c5c663342ce8cd54ff979a9252a31933"})))}renderImage(){var e;if(null===(e=this.image)||void 0===e?void 0:e.src)return o("div",{class:"image-wrapper"},o(s,{image:this.image}))}renderHeader(){if(this.heading||this.subheading||this.icon)return o("header",null,this.renderIcon(),o("div",{class:"headings"},this.renderHeading(),this.renderSubheading()))}renderIcon(){var e;const i=l(this.icon);if(!i)return;const t="string"==typeof this.icon||null===(e=this.icon)||void 0===e?void 0:e.color;return o("limel-icon",{style:{color:`${t}`},badge:!0,name:i})}renderHeading(){if(this.heading)return o("h1",{class:"title"},this.heading)}renderSubheading(){if(this.subheading)return o("h2",null,this.subheading)}renderSlot(){return o("slot",{name:"component"})}renderValue(){if(this.value)return o("div",{class:{"markdown-wrapper":!0,"can-scroll-up":this.canScrollUp,"can-scroll-down":this.canScrollDown}},o("limel-markdown",{class:"body-text",ref:this.setMarkdownElement,value:this.value}))}renderActionBar(){if(0!==this.actions.length)return o("limel-action-bar",{actions:this.actions,onItemSelected:this.handleActionSelect})}get host(){return r(this)}};d.style='@charset "UTF-8";*{box-sizing:border-box;min-width:0;min-height:0}:host(limel-card){display:flex;border-radius:var(--card-border-radius, 0.95rem)}section{box-sizing:border-box;display:flex;gap:0.5rem;flex-direction:column}:host(limel-card[orientation=landscape]) section{flex-direction:row}section{width:100%;border-radius:var(--card-border-radius, 0.95rem);border:1px solid rgb(var(--contrast-500));padding:0.25rem;background-color:var(--card-background-color, rgb(var(--contrast-300)))}:host(limel-card[clickable]) section,:host(limel-card[show-3d-effect]) section{position:relative;transition-duration:0.8s;transition-property:transform, box-shadow, background-color;transition-timing-function:ease-out;transform:scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg)}:host(limel-card[clickable]) section:focus,:host(limel-card[show-3d-effect]) section:focus{outline:none}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus,:host(limel-card[clickable]) section:focus-visible,:host(limel-card[clickable]) section:focus-within,:host(limel-card[show-3d-effect]) section:hover,:host(limel-card[show-3d-effect]) section:focus,:host(limel-card[show-3d-effect]) section:focus-visible,:host(limel-card[show-3d-effect]) section:focus-within{will-change:background-color, box-shadow, transform}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus,:host(limel-card[clickable]) section:focus-visible,:host(limel-card[clickable]) section:active,:host(limel-card[show-3d-effect]) section:hover,:host(limel-card[show-3d-effect]) section:focus,:host(limel-card[show-3d-effect]) section:focus-visible,:host(limel-card[show-3d-effect]) section:active{transition-duration:0.2s}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus-visible,:host(limel-card[show-3d-effect]) section:hover,:host(limel-card[show-3d-effect]) section:focus-visible{box-shadow:var(--button-shadow-hovered), var(--shadow-depth-16)}:host(limel-card[clickable]) section:hover,:host(limel-card[show-3d-effect]) section:hover{transform:scale3d(1.01, 1.01, 1.01) rotate3d(var(--limel-3d-hover-effect-rotate3d))}:host(limel-card[clickable]) section:focus-visible,:host(limel-card[show-3d-effect]) section:focus-visible{outline:none;transform:scale3d(1.01, 1.01, 1.01)}:host(limel-card[clickable]) section:hover limel-3d-hover-effect-glow,:host(limel-card[show-3d-effect]) section:hover limel-3d-hover-effect-glow{--limel-3d-hover-effect-glow-opacity:0.5}@media (prefers-reduced-motion){:host(limel-card[clickable]) section:hover limel-3d-hover-effect-glow,:host(limel-card[show-3d-effect]) section:hover limel-3d-hover-effect-glow{--limel-3d-hover-effect-glow-opacity:0.2}}:host(limel-card[clickable]) section{cursor:pointer;box-shadow:var(--button-shadow-normal)}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus-visible{box-shadow:var(--button-shadow-hovered), var(--shadow-depth-16)}:host(limel-card[clickable]) section:active{transform:scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg);box-shadow:var(--button-shadow-pressed)}:host(limel-card[clickable]) section:focus-visible{box-shadow:var(--shadow-depth-8-focused), var(--button-shadow-hovered)}:host(limel-card[clickable]) section:focus-visible:active{box-shadow:var(--shadow-depth-8-focused), var(--button-shadow-pressed)}:host(limel-card[clickable]) section:hover{border-color:transparent;background-color:var(--card-background-color--hovered, var(--card-background-color, rgb(var(--contrast-200))))}.body{flex-grow:1;display:flex;flex-direction:column;gap:0.5rem}.image-wrapper{flex-shrink:0;display:flex;align-items:center;justify-content:center}:host(limel-card[orientation=portrait]) .image-wrapper{width:100%}:host(limel-card[orientation=landscape]) .image-wrapper{flex-shrink:0;max-width:40%;height:100%}:host(limel-card[orientation=landscape]) .image-wrapper img{height:100%}img{transition:filter 0.6s ease;object-fit:cover;border-radius:calc(var(--card-border-radius, 0.95rem) / 1.4);min-width:0.5rem;min-height:0.5rem;max-width:100%;max-height:100%}:host(limel-card[show-3d-effect]) section:hover img,:host(limel-card[show-3d-effect]) section:focus-visible img{transition-duration:0.2s;filter:saturate(1.3)}.markdown-wrapper{position:relative;flex-grow:1;display:flex;flex-direction:column}.markdown-wrapper limel-markdown{overflow-y:auto;flex-grow:1;padding:0.5rem 0.75rem}.markdown-wrapper::before{top:0;background:radial-gradient(farthest-side at 50% 0%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0))}.markdown-wrapper::after{bottom:0;background:radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0))}.markdown-wrapper::before,.markdown-wrapper::after{content:"";pointer-events:none;position:absolute;right:0;left:0;height:0.75rem;opacity:0;transition:opacity 0.6s ease;background-repeat:no-repeat}.markdown-wrapper.can-scroll-up::before,.markdown-wrapper.can-scroll-down::after{opacity:1}header{flex-shrink:0;display:flex;justify-content:center;gap:0.5rem;padding:0.25rem 0.75rem}:host(limel-card[orientation=landscape]) header{padding-top:0.5rem}header:has(limel-icon){padding-left:0.25rem}header .headings{flex-grow:1;display:flex;flex-direction:column;gap:0.125rem}header .title{padding-right:1.25rem}header limel-icon{flex-shrink:0;width:2rem}header h1{font-size:1.125rem;font-weight:500;color:var(--card-heading-color, rgb(var(--contrast-1100)));letter-spacing:-0.03125rem}header h2{font-size:var(--limel-theme-default-font-size);font-weight:400;color:var(--card-subheading-color, rgb(var(--contrast-1000)))}header h1,header h2{word-break:break-word;hyphens:auto;-webkit-hyphens:auto;margin:0}limel-action-bar{flex-shrink:0;--action-bar-background-color:transparent;margin-left:auto}limel-3d-hover-effect-glow{border-radius:var(--card-border-radius, 0.95rem)}:host(limel-card[show-3d-effect]){isolation:isolate;transform-style:preserve-3d;perspective:1000px}@media (prefers-reduced-motion){:host(limel-card[show-3d-effect]){perspective:2000px}}:host(limel-card[selected]) section,:host(limel-card[selected]) section:hover,:host(limel-card[selected]) section:focus-visible,:host(limel-card[selected]) section:active{box-shadow:var(--shadow-focused-state)}';export{d as limel_card}
1
+ import{r as e,c as i,h as o,H as t,a as r}from"./p-BU9IJqli.js";import{I as s}from"./p-N9vxZMhe.js";import{i as a}from"./p-CrvUOVvg.js";import{g as c}from"./p-CgNJbSP4.js";import{g as l}from"./p-CllX3RLB.js";const d=class{constructor(o){e(this,o),this.actionSelected=i(this,"actionSelected",7),this.actions=[],this.clickable=!1,this.orientation="portrait",this.selected=!1,this.show3dEffect=!0,this.canScrollUp=!1,this.canScrollDown=!1,this.setMarkdownElement=e=>{var i;e!==this.markdownElement&&(this.markdownElement&&(null===(i=this.markdownResizeObserver)||void 0===i||i.disconnect(),this.markdownElement.removeEventListener("scroll",this.checkIfScrollable)),this.markdownElement=e,this.markdownElement&&(this.markdownResizeObserver=new ResizeObserver(this.checkIfScrollable),this.markdownResizeObserver.observe(this.markdownElement),this.markdownElement.addEventListener("scroll",this.checkIfScrollable,{passive:!0}),this.checkIfScrollable()))},this.checkIfScrollable=()=>{if(!this.markdownElement)return;const e=this.markdownElement.scrollHeight,i=this.markdownElement.clientHeight,o=this.markdownElement.scrollTop,t=e>i,r=t&&!(o+i>=e-2),s=t&&!(o<=1);this.canScrollDown!==r&&(this.canScrollDown=r),this.canScrollUp!==s&&(this.canScrollUp=s)},this.handleActionSelect=e=>{e.stopPropagation(),a(e.detail)&&this.actionSelected.emit(e.detail)},this.handleKeyDown=e=>{e.target===e.currentTarget&&("Enter"!==e.key&&" "!==e.key||(e.preventDefault(),this.host.click()))}}componentWillLoad(){const{handleMouseEnter:e,handleMouseLeave:i,cleanup:o}=l(this.host);this.handleMouseEnter=e,this.handleMouseLeave=i,this.cleanup3dHoverEffect=o}disconnectedCallback(){var e,i,o;null===(e=this.markdownResizeObserver)||void 0===e||e.disconnect(),null===(i=this.markdownElement)||void 0===i||i.removeEventListener("scroll",this.checkIfScrollable),null===(o=this.cleanup3dHoverEffect)||void 0===o||o.call(this)}componentDidLoad(){this.setMarkdownElement(this.markdownElement)}render(){return o(t,{key:"065b458353e8ac5f7e36caa509ff592b2ee877d9",onMouseEnter:this.show3dEffect?this.handleMouseEnter:void 0,onMouseLeave:this.show3dEffect?this.handleMouseLeave:void 0},o("section",{key:"2664c8f1fef7369afe98f42543e6f4084e381c1d",tabindex:this.clickable?0:void 0,role:this.clickable?"button":void 0,"aria-pressed":this.clickable?String(this.selected):void 0,onKeyDown:this.clickable?this.handleKeyDown:void 0},this.renderImage(),o("div",{key:"513ddc7dbdda24f15ccbc8262ae41abf25409f63",class:"body"},this.renderHeader(),this.renderSlot(),this.renderValue(),this.renderActionBar()),this.show3dEffect&&o("limel-3d-hover-effect-glow",{key:"36dcdc2eff37e0c3f45f8ae69da2d9d19bc474cc"})))}renderImage(){var e;if(null===(e=this.image)||void 0===e?void 0:e.src)return o("div",{class:"image-wrapper"},o(s,{image:this.image}))}renderHeader(){if(this.heading||this.subheading||this.icon)return o("header",null,this.renderIcon(),o("div",{class:"headings"},this.renderHeading(),this.renderSubheading()))}renderIcon(){var e;const i=c(this.icon);if(!i)return;const t="string"==typeof this.icon||null===(e=this.icon)||void 0===e?void 0:e.color;return o("limel-icon",{style:{color:`${t}`},badge:!0,name:i})}renderHeading(){if(this.heading)return o("h1",{class:"title"},this.heading)}renderSubheading(){if(this.subheading)return o("h2",null,this.subheading)}renderSlot(){return o("slot",{name:"component"})}renderValue(){if(this.value)return o("div",{class:{"markdown-wrapper":!0,"can-scroll-up":this.canScrollUp,"can-scroll-down":this.canScrollDown}},o("limel-markdown",{class:"body-text",ref:this.setMarkdownElement,value:this.value}))}renderActionBar(){if(0!==this.actions.length)return o("limel-action-bar",{actions:this.actions,onItemSelected:this.handleActionSelect})}get host(){return r(this)}};d.style='@charset "UTF-8";*{box-sizing:border-box;min-width:0;min-height:0}:host(limel-card){display:flex;border-radius:var(--card-border-radius, 0.95rem)}section{box-sizing:border-box;display:flex;gap:0.5rem;flex-direction:column}:host(limel-card[orientation=landscape]) section{flex-direction:row}section{width:100%;border-radius:var(--card-border-radius, 0.95rem);border:1px solid rgb(var(--contrast-500));padding:0.25rem;background-color:var(--card-background-color, rgb(var(--contrast-300)))}:host(limel-card[clickable]) section,:host(limel-card[show-3d-effect]) section{position:relative;transition-duration:0.8s;transition-property:transform, box-shadow, background-color;transition-timing-function:ease-out;transform:scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg)}:host(limel-card[clickable]) section:focus,:host(limel-card[show-3d-effect]) section:focus{outline:none}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus,:host(limel-card[clickable]) section:focus-visible,:host(limel-card[clickable]) section:focus-within,:host(limel-card[show-3d-effect]) section:hover,:host(limel-card[show-3d-effect]) section:focus,:host(limel-card[show-3d-effect]) section:focus-visible,:host(limel-card[show-3d-effect]) section:focus-within{will-change:background-color, box-shadow, transform}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus,:host(limel-card[clickable]) section:focus-visible,:host(limel-card[clickable]) section:active,:host(limel-card[show-3d-effect]) section:hover,:host(limel-card[show-3d-effect]) section:focus,:host(limel-card[show-3d-effect]) section:focus-visible,:host(limel-card[show-3d-effect]) section:active{transition-duration:0.2s}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus-visible,:host(limel-card[show-3d-effect]) section:hover,:host(limel-card[show-3d-effect]) section:focus-visible{box-shadow:var(--button-shadow-hovered), var(--shadow-depth-16)}:host(limel-card[clickable]) section:hover,:host(limel-card[show-3d-effect]) section:hover{transform:scale3d(1.01, 1.01, 1.01) rotate3d(var(--limel-3d-hover-effect-rotate3d))}:host(limel-card[clickable]) section:focus-visible,:host(limel-card[show-3d-effect]) section:focus-visible{outline:none;transform:scale3d(1.01, 1.01, 1.01)}:host(limel-card[clickable]) section:hover limel-3d-hover-effect-glow,:host(limel-card[show-3d-effect]) section:hover limel-3d-hover-effect-glow{--limel-3d-hover-effect-glow-opacity:0.5}@media (prefers-reduced-motion){:host(limel-card[clickable]) section:hover limel-3d-hover-effect-glow,:host(limel-card[show-3d-effect]) section:hover limel-3d-hover-effect-glow{--limel-3d-hover-effect-glow-opacity:0.2}}:host(limel-card[clickable]) section{cursor:pointer;box-shadow:var(--button-shadow-normal)}:host(limel-card[clickable]) section:hover,:host(limel-card[clickable]) section:focus-visible{box-shadow:var(--button-shadow-hovered), var(--shadow-depth-16)}:host(limel-card[clickable]) section:active{transform:scale3d(1, 1, 1) rotate3d(0, 0, 0, 0deg);box-shadow:var(--button-shadow-pressed)}:host(limel-card[clickable]) section:focus-visible{box-shadow:var(--shadow-depth-8-focused), var(--button-shadow-hovered)}:host(limel-card[clickable]) section:focus-visible:active{box-shadow:var(--shadow-depth-8-focused), var(--button-shadow-pressed)}:host(limel-card[clickable]) section:hover{border-color:transparent;background-color:var(--card-background-color--hovered, var(--card-background-color, rgb(var(--contrast-200))))}.body{flex-grow:1;display:flex;flex-direction:column;gap:0.5rem}.image-wrapper{flex-shrink:0;display:flex;align-items:center;justify-content:center}:host(limel-card[orientation=portrait]) .image-wrapper{width:100%}:host(limel-card[orientation=landscape]) .image-wrapper{flex-shrink:0;max-width:40%;height:100%}:host(limel-card[orientation=landscape]) .image-wrapper img{height:100%}img{transition:filter 0.6s ease;object-fit:cover;border-radius:calc(var(--card-border-radius, 0.95rem) / 1.4);min-width:0.5rem;min-height:0.5rem;max-width:100%;max-height:100%}:host(limel-card[show-3d-effect]) section:hover img,:host(limel-card[show-3d-effect]) section:focus-visible img{transition-duration:0.2s;filter:saturate(1.3)}.markdown-wrapper{position:relative;flex-grow:1;display:flex;flex-direction:column}.markdown-wrapper limel-markdown{overflow-y:auto;flex-grow:1;padding:0.5rem 0.75rem}.markdown-wrapper::before{top:0;background:radial-gradient(farthest-side at 50% 0%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0))}.markdown-wrapper::after{bottom:0;background:radial-gradient(farthest-side at 50% 100%, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0))}.markdown-wrapper::before,.markdown-wrapper::after{content:"";pointer-events:none;position:absolute;right:0;left:0;height:0.75rem;opacity:0;transition:opacity 0.6s ease;background-repeat:no-repeat}.markdown-wrapper.can-scroll-up::before,.markdown-wrapper.can-scroll-down::after{opacity:1}header{flex-shrink:0;display:flex;justify-content:center;gap:0.5rem;padding:0.25rem 0.75rem}:host(limel-card[orientation=landscape]) header{padding-top:0.5rem}header:has(limel-icon){padding-left:0.25rem}header .headings{flex-grow:1;display:flex;flex-direction:column;gap:0.125rem}header .title{padding-right:1.25rem}header limel-icon{flex-shrink:0;width:2rem}header h1{font-size:1.125rem;font-weight:500;color:var(--card-heading-color, rgb(var(--contrast-1100)));letter-spacing:-0.03125rem}header h2{font-size:var(--limel-theme-default-font-size);font-weight:400;color:var(--card-subheading-color, rgb(var(--contrast-1000)))}header h1,header h2{word-break:break-word;hyphens:auto;-webkit-hyphens:auto;margin:0}limel-action-bar{flex-shrink:0;--action-bar-background-color:transparent;margin-left:auto}limel-3d-hover-effect-glow{border-radius:var(--card-border-radius, 0.95rem)}:host(limel-card[show-3d-effect]){isolation:isolate;transform-style:preserve-3d;perspective:1000px}@media (prefers-reduced-motion){:host(limel-card[show-3d-effect]){perspective:2000px}}:host(limel-card[selected]) section,:host(limel-card[selected]) section:hover,:host(limel-card[selected]) section:focus-visible,:host(limel-card[selected]) section:active{box-shadow:var(--shadow-focused-state)}';export{d as limel_card}
@@ -1 +1 @@
1
- import{r,h as e}from"./p-BU9IJqli.js";import{a as o}from"./p-Bt64o80S.js";import"./p-B85MJLTf.js";const l=class{constructor(o){r(this,o),this.value=0,this.maxValue=100,this.prefix=null,this.suffix="%",this.displayPercentageColors=!1,this.renderPrefix=()=>{if(this.prefix)return e("span",{class:"prefix"},this.prefix)}}render(){const r={"lime-circular-progress":!0,"displays-percentage-colors":this.displayPercentageColors},l=100*this.value/this.maxValue+"%",c=Math.round(10*this.value)/10;return e("div",{key:"4b9b6d715a14fc11bac8380954eb070291167400",role:"progressbar",class:r,"aria-label":"%","aria-valuemin":"0","aria-valuemax":this.maxValue,"aria-valuenow":this.value,style:{"--percentage":l}},this.renderPrefix(),e("span",{key:"97c82248015952b3f590b75156b1e18e59f95ccf",class:"value"},o(c),e("span",{key:"2af86dc82e6b17a6beb1747dc35008cf938d2ded",class:"suffix"},this.suffix)))}};l.style='@charset "UTF-8";.displays-percentage-colors[style*="--percentage: 0%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 1%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 2%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 3%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 4%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 5%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 6%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 7%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 8%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 9%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 10%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 11%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 12%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 13%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 14%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 15%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 16%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 17%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 18%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 19%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 20%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 21%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 22%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 23%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 24%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 25%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 26%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 27%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 28%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 29%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 30%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 31%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 32%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 33%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 34%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 35%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 36%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 37%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 38%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 39%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 40%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 41%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 42%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 43%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 44%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 45%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 46%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 47%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 48%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 49%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 50%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 51%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 52%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 53%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 54%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 55%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 56%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 57%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 58%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 59%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 60%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 61%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 62%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 63%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 64%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 65%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 66%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 67%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 68%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 69%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 70%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 71%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 72%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 73%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 74%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 75%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 76%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 77%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 78%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 79%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 80%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 81%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 82%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 83%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 84%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 85%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 86%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 87%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 88%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 89%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 90%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 91%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 92%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 93%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 94%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 95%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 96%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 97%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 98%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 99%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 100%"]{--circular-progress-fill-color:var( --color-percent--100to110 )}.displays-percentage-colors[style="--percentage: 100%;"]{--circular-progress-fill-color:var(--color-percent--100)}:host{display:block;box-sizing:border-box;isolation:isolate}:host([size=x-small]){--circular-progress-size:1.5rem;font-weight:bold}:host([size=x-small]) .value{letter-spacing:-0.0625rem}:host([size=small]){--circular-progress-size:2rem;font-weight:bold}:host([size=small]) .value{letter-spacing:-0.03125rem}:host([size=medium]){--circular-progress-size:3rem}:host([size=large]){--circular-progress-size:4rem}:host([size=x-large]){--circular-progress-size:5rem}.lime-circular-progress{--size:var(--circular-progress-size, 3rem);--fill-color:var( --circular-progress-fill-color, var(--lime-primary-color, var(--limel-theme-primary-color)) );--track-color:var( --circular-progress-track-color, rgb(var(--contrast-400)) );position:relative;display:flex;align-items:center;justify-content:center;width:var(--size);height:var(--size);border-radius:50%;line-height:normal;box-shadow:0 0 0 0.125rem rgb(var(--contrast-100), 0.7);background:conic-gradient(var(--fill-color) 0% var(--percentage), var(--track-color) var(--percentage) 100%)}.lime-circular-progress:before{content:"";position:absolute;width:calc(var(--size) * 0.75 + 0.25rem);height:calc(var(--size) * 0.75 + 0.25rem);border-radius:50%;background-color:var(--circular-progress-background-color, rgb(var(--contrast-100)));box-shadow:var(--button-shadow-pressed)}.prefix{font-size:clamp(0.5rem, var(--size) * 0.16, 2.25rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;color:var(--circular-progress-prefix-color, rgb(var(--contrast-1000)));width:45%;top:20%;position:absolute}.value{display:flex;font-size:clamp(0.5rem, var(--size) * 0.25, 4rem);color:var(--circular-progress-text-color, rgb(var(--contrast-1200)));z-index:1;cursor:default}.suffix{font-size:clamp(0.5rem, var(--size) * 0.18, 2.5rem);color:var(--circular-progress-suffix-color, rgb(var(--contrast-1000)));padding-top:4%}';export{l as limel_circular_progress}
1
+ import{r,h as e}from"./p-BU9IJqli.js";import{a as o}from"./p-Bt64o80S.js";import"./p-B85MJLTf.js";const l=class{constructor(o){r(this,o),this.value=0,this.maxValue=100,this.prefix=null,this.suffix="%",this.displayPercentageColors=!1,this.renderPrefix=()=>{if(this.prefix)return e("span",{class:"prefix"},this.prefix)}}render(){const r={"lime-circular-progress":!0,"displays-percentage-colors":this.displayPercentageColors},l=100*this.value/this.maxValue+"%",c=Math.round(10*this.value)/10;return e("div",{key:"47a6624518e8cd5938a0d3ab1538ea9e7ebbe6a6",role:"progressbar",class:r,"aria-label":"%","aria-valuemin":"0","aria-valuemax":this.maxValue,"aria-valuenow":this.value,style:{"--percentage":l}},this.renderPrefix(),e("span",{key:"bdb7887d49ecf6175c7b99c3eb96e754277acfd8",class:"value"},o(c),e("span",{key:"4405e3306807b5f21e92286db01a1e8ca578c3f9",class:"suffix"},this.suffix)))}};l.style='@charset "UTF-8";.displays-percentage-colors[style*="--percentage: 0%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 1%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 2%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 3%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 4%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 5%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 6%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 7%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 8%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 9%"]{--circular-progress-fill-color:var( --color-percent--0to10 )}.displays-percentage-colors[style*="--percentage: 10%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 11%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 12%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 13%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 14%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 15%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 16%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 17%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 18%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 19%"]{--circular-progress-fill-color:var( --color-percent--10to20 )}.displays-percentage-colors[style*="--percentage: 20%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 21%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 22%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 23%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 24%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 25%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 26%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 27%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 28%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 29%"]{--circular-progress-fill-color:var( --color-percent--20to30 )}.displays-percentage-colors[style*="--percentage: 30%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 31%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 32%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 33%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 34%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 35%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 36%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 37%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 38%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 39%"]{--circular-progress-fill-color:var( --color-percent--30to40 )}.displays-percentage-colors[style*="--percentage: 40%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 41%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 42%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 43%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 44%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 45%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 46%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 47%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 48%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 49%"]{--circular-progress-fill-color:var( --color-percent--40to50 )}.displays-percentage-colors[style*="--percentage: 50%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 51%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 52%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 53%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 54%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 55%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 56%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 57%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 58%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 59%"]{--circular-progress-fill-color:var( --color-percent--50to60 )}.displays-percentage-colors[style*="--percentage: 60%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 61%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 62%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 63%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 64%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 65%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 66%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 67%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 68%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 69%"]{--circular-progress-fill-color:var( --color-percent--60to70 )}.displays-percentage-colors[style*="--percentage: 70%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 71%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 72%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 73%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 74%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 75%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 76%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 77%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 78%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 79%"]{--circular-progress-fill-color:var( --color-percent--70to80 )}.displays-percentage-colors[style*="--percentage: 80%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 81%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 82%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 83%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 84%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 85%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 86%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 87%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 88%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 89%"]{--circular-progress-fill-color:var( --color-percent--80to90 )}.displays-percentage-colors[style*="--percentage: 90%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 91%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 92%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 93%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 94%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 95%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 96%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 97%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 98%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 99%"]{--circular-progress-fill-color:var( --color-percent--90to100 )}.displays-percentage-colors[style*="--percentage: 100%"]{--circular-progress-fill-color:var( --color-percent--100to110 )}.displays-percentage-colors[style="--percentage: 100%;"]{--circular-progress-fill-color:var(--color-percent--100)}:host{display:block;box-sizing:border-box;isolation:isolate}:host([size=x-small]){--circular-progress-size:1.5rem;font-weight:bold}:host([size=x-small]) .value{letter-spacing:-0.0625rem}:host([size=small]){--circular-progress-size:2rem;font-weight:bold}:host([size=small]) .value{letter-spacing:-0.03125rem}:host([size=medium]){--circular-progress-size:3rem}:host([size=large]){--circular-progress-size:4rem}:host([size=x-large]){--circular-progress-size:5rem}.lime-circular-progress{--size:var(--circular-progress-size, 3rem);--fill-color:var( --circular-progress-fill-color, var(--lime-primary-color, var(--limel-theme-primary-color)) );--track-color:var( --circular-progress-track-color, rgb(var(--contrast-400)) );position:relative;display:flex;align-items:center;justify-content:center;width:var(--size);height:var(--size);border-radius:50%;line-height:normal;box-shadow:0 0 0 0.125rem rgb(var(--contrast-100), 0.7);background:conic-gradient(var(--fill-color) 0% var(--percentage), var(--track-color) var(--percentage) 100%)}.lime-circular-progress:before{content:"";position:absolute;width:calc(var(--size) * 0.75 + 0.25rem);height:calc(var(--size) * 0.75 + 0.25rem);border-radius:50%;background-color:var(--circular-progress-background-color, rgb(var(--contrast-100)));box-shadow:var(--button-shadow-pressed)}.prefix{font-size:clamp(0.5rem, var(--size) * 0.16, 2.25rem);overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-align:center;color:var(--circular-progress-prefix-color, rgb(var(--contrast-1000)));width:45%;top:20%;position:absolute}.value{display:flex;font-size:clamp(0.5rem, var(--size) * 0.25, 4rem);color:var(--circular-progress-text-color, rgb(var(--contrast-1200)));z-index:1;cursor:default}.suffix{font-size:clamp(0.5rem, var(--size) * 0.18, 2.5rem);color:var(--circular-progress-suffix-color, rgb(var(--contrast-1000)));padding-top:4%}';export{l as limel_circular_progress}