@limetech/lime-elements 40.15.0 → 40.17.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 (373) hide show
  1. package/CHANGELOG.md +26 -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 +2 -2
  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 +3 -2
  62. package/dist/cjs/limel-picker.cjs.entry.js +1 -1
  63. package/dist/cjs/limel-popover_2.cjs.entry.js +27 -4
  64. package/dist/cjs/limel-profile-picture.cjs.entry.js +2 -1
  65. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +13 -10
  66. package/dist/cjs/limel-radio-button-group.cjs.entry.js +1 -1
  67. package/dist/cjs/limel-radio-button.cjs.entry.js +2 -2
  68. package/dist/cjs/limel-resize-handle.cjs.entry.js +1 -1
  69. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  70. package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
  71. package/dist/cjs/limel-side-panel.cjs.entry.js +1 -1
  72. package/dist/cjs/limel-slider.cjs.entry.js +3 -3
  73. package/dist/cjs/limel-snackbar.cjs.entry.js +2 -2
  74. package/dist/cjs/limel-split-button.cjs.entry.js +2 -2
  75. package/dist/cjs/limel-switch.cjs.entry.js +1 -1
  76. package/dist/cjs/limel-tab-bar.cjs.entry.js +14 -10
  77. package/dist/cjs/limel-tab-panel.cjs.entry.js +1 -1
  78. package/dist/cjs/limel-table.cjs.entry.js +21 -41
  79. package/dist/cjs/limel-text-editor-link-menu.cjs.entry.js +3 -3
  80. package/dist/cjs/limel-text-editor.cjs.entry.js +1 -1
  81. package/dist/cjs/loader.cjs.js +1 -1
  82. package/dist/cjs/negate-Bg3SqQh6.js +42 -0
  83. package/dist/collection/collection-manifest.json +1 -0
  84. package/dist/collection/components/3d-hover-effect-glow/3d-hover-effect-glow.js +1 -1
  85. package/dist/collection/components/action-bar/action-bar-item/action-bar-overflow-menu.js +1 -1
  86. package/dist/collection/components/action-bar/action-bar.js +2 -2
  87. package/dist/collection/components/ai-avatar/ai-avatar.js +1 -1
  88. package/dist/collection/components/badge/badge.js +2 -2
  89. package/dist/collection/components/banner/banner.js +1 -1
  90. package/dist/collection/components/breadcrumbs/breadcrumbs.js +1 -1
  91. package/dist/collection/components/button/button.js +2 -2
  92. package/dist/collection/components/button-group/button-group.js +1 -1
  93. package/dist/collection/components/callout/callout.js +1 -1
  94. package/dist/collection/components/card/card.js +1 -1
  95. package/dist/collection/components/checkbox/checkbox.js +1 -1
  96. package/dist/collection/components/chip/chip.js +1 -1
  97. package/dist/collection/components/chip-set/chip-set.js +1 -1
  98. package/dist/collection/components/circular-progress/circular-progress.js +1 -1
  99. package/dist/collection/components/code-diff/code-diff.js +1 -1
  100. package/dist/collection/components/code-editor/code-editor.js +1 -1
  101. package/dist/collection/components/collapsible-section/collapsible-section.js +1 -1
  102. package/dist/collection/components/color-picker/color-picker-palette.js +2 -2
  103. package/dist/collection/components/color-picker/color-picker.js +2 -2
  104. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.js +1 -1
  105. package/dist/collection/components/dialog/dialog.js +2 -2
  106. package/dist/collection/components/dock/dock.js +2 -2
  107. package/dist/collection/components/drag-handle/drag-handle.js +1 -1
  108. package/dist/collection/components/email-viewer/email-viewer.js +1 -1
  109. package/dist/collection/components/file/file.js +1 -1
  110. package/dist/collection/components/file-dropzone/file-dropzone.js +1 -1
  111. package/dist/collection/components/file-input/file-input.js +1 -1
  112. package/dist/collection/components/flex-container/flex-container.js +1 -1
  113. package/dist/collection/components/form/fields/object-field.js +2 -2
  114. package/dist/collection/components/form/form.css +21 -21
  115. package/dist/collection/components/form/form.js +60 -3
  116. package/dist/collection/components/form/form.test-schemas.js +62 -0
  117. package/dist/collection/components/form/help/help.js +2 -5
  118. package/dist/collection/components/form/row/row.js +4 -1
  119. package/dist/collection/components/form/templates/array-field.js +4 -4
  120. package/dist/collection/components/form/templates/common.js +21 -4
  121. package/dist/collection/components/form/templates/heading-level.js +51 -0
  122. package/dist/collection/components/form/templates/object-field.js +3 -9
  123. package/dist/collection/components/form-header/form-header.css +3 -0
  124. package/dist/collection/components/form-header/form-header.js +163 -0
  125. package/dist/collection/components/form-header/help-props.js +17 -0
  126. package/dist/collection/components/grid/grid.js +1 -1
  127. package/dist/collection/components/header/header.js +1 -1
  128. package/dist/collection/components/help/help-content.js +1 -1
  129. package/dist/collection/components/help/help.js +2 -2
  130. package/dist/collection/components/helper-line/helper-line.js +2 -2
  131. package/dist/collection/components/hotkey/hotkey.js +1 -1
  132. package/dist/collection/components/icon/icon.js +1 -1
  133. package/dist/collection/components/icon-button/icon-button.js +1 -1
  134. package/dist/collection/components/info-tile/info-tile.js +2 -2
  135. package/dist/collection/components/input-field/input-field.js +1 -1
  136. package/dist/collection/components/list/list.js +1 -1
  137. package/dist/collection/components/list-item/list-item.js +2 -2
  138. package/dist/collection/components/list-item/menu-item-meta/menu-item-meta.js +1 -1
  139. package/dist/collection/components/markdown/markdown.js +1 -1
  140. package/dist/collection/components/masonry-layout/masonry-layout.js +1 -1
  141. package/dist/collection/components/menu/menu.js +1 -1
  142. package/dist/collection/components/menu-list/menu-list.js +1 -1
  143. package/dist/collection/components/menu-surface/menu-surface.js +1 -1
  144. package/dist/collection/components/notched-outline/notched-outline.js +1 -1
  145. package/dist/collection/components/pagination/pagination.js +3 -2
  146. package/dist/collection/components/picker/picker.js +1 -1
  147. package/dist/collection/components/popover/popover.js +64 -3
  148. package/dist/collection/components/popover-surface/popover-surface.js +39 -1
  149. package/dist/collection/components/portal/portal.js +1 -1
  150. package/dist/collection/components/profile-picture/profile-picture.js +2 -1
  151. package/dist/collection/components/radio-button-group/radio-button-group.js +1 -1
  152. package/dist/collection/components/radio-button-group/radio-button.js +2 -2
  153. package/dist/collection/components/resize-handle/resize-handle.js +1 -1
  154. package/dist/collection/components/scroller/scroller.js +2 -2
  155. package/dist/collection/components/select/select.js +1 -1
  156. package/dist/collection/components/shortcut/shortcut.js +1 -1
  157. package/dist/collection/components/side-panel/side-panel.js +1 -1
  158. package/dist/collection/components/slider/slider.js +3 -3
  159. package/dist/collection/components/snackbar/snackbar.js +2 -2
  160. package/dist/collection/components/spinner/spinner.js +1 -1
  161. package/dist/collection/components/split-button/split-button.js +2 -2
  162. package/dist/collection/components/switch/switch.js +1 -1
  163. package/dist/collection/components/tab-bar/tab-bar.js +1 -1
  164. package/dist/collection/components/tab-panel/tab-panel.js +1 -1
  165. package/dist/collection/components/table/table.js +2 -2
  166. package/dist/collection/components/text-editor/link-menu/editor-link-menu.js +3 -3
  167. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.js +1 -1
  168. package/dist/collection/components/text-editor/text-editor.js +1 -1
  169. package/dist/collection/components/tooltip/tooltip-content.js +1 -1
  170. package/dist/collection/components/tooltip/tooltip.js +2 -2
  171. package/dist/esm/_Map-LWJCQc-c.js +54 -0
  172. package/dist/esm/_arrayPush-NEl7BpFy.js +416 -0
  173. package/dist/esm/_baseFlatten-mvFj07qD.js +195 -0
  174. package/dist/esm/{_baseForOwn-vKFWmmaS.js → _baseForOwn-C3COyhQS.js} +1 -1
  175. package/dist/esm/{_baseIsEqual-B_JRErB0.js → _baseIsEqual-CJf575VC.js} +9 -419
  176. package/dist/esm/_baseIteratee-DM5xljbg.js +260 -0
  177. package/dist/esm/{_baseSet-BUAq8NGm.js → _basePickBy-D_9Hus6l.js} +27 -41
  178. package/dist/esm/{_getPrototype-B0kMNv1F.js → _getPrototype-CQlOogH0.js} +1 -1
  179. package/dist/esm/{_getTag-BiAaLWvH.js → _getTag-BTNY_Z_q.js} +5 -53
  180. package/dist/esm/{cloneDeep-Bcll-3f8.js → cloneDeep-BYrS7zqD.js} +3 -3
  181. package/dist/esm/{drag-to-reorder-BXmXIwCa.js → drag-to-reorder-9gxiYkIo.js} +3 -192
  182. package/dist/esm/{_baseIteratee-CVz7aes3.js → hasIn-CKUl04DZ.js} +5 -259
  183. package/dist/esm/help-props-DULV6dHr.js +88 -0
  184. package/dist/esm/isArrayLike-wfLI14yj.js +33 -0
  185. package/dist/esm/{isEmpty-BGVZ12Ea.js → isEmpty-CvLNUkER.js} +3 -2
  186. package/dist/esm/{isEqual-C-pK6AAU.js → isEqual-BIfg0KPc.js} +1 -1
  187. package/dist/esm/isLength-BZrtP4vv.js +35 -0
  188. package/dist/esm/lime-elements.js +1 -1
  189. package/dist/esm/limel-3d-hover-effect-glow.entry.js +1 -1
  190. package/dist/esm/limel-action-bar_3.entry.js +3 -3
  191. package/dist/esm/limel-ai-avatar.entry.js +1 -1
  192. package/dist/esm/limel-badge.entry.js +2 -2
  193. package/dist/esm/limel-banner.entry.js +1 -1
  194. package/dist/esm/limel-breadcrumbs_6.entry.js +6 -6
  195. package/dist/esm/limel-button-group.entry.js +1 -1
  196. package/dist/esm/limel-button.entry.js +2 -2
  197. package/dist/esm/limel-callout.entry.js +1 -1
  198. package/dist/esm/limel-card.entry.js +1 -1
  199. package/dist/esm/limel-checkbox.entry.js +1 -1
  200. package/dist/esm/limel-chip-set.entry.js +11 -8
  201. package/dist/esm/limel-chip_2.entry.js +7 -5
  202. package/dist/esm/limel-circular-progress.entry.js +1 -1
  203. package/dist/esm/limel-code-diff.entry.js +1 -1
  204. package/dist/esm/limel-code-editor.entry.js +1 -1
  205. package/dist/esm/limel-collapsible-section.entry.js +1 -1
  206. package/dist/esm/limel-color-picker-palette.entry.js +2 -2
  207. package/dist/esm/limel-color-picker.entry.js +2 -2
  208. package/dist/esm/limel-dialog.entry.js +12 -9
  209. package/dist/esm/limel-dock.entry.js +2 -2
  210. package/dist/esm/limel-drag-handle_2.entry.js +3 -3
  211. package/dist/esm/limel-email-viewer.entry.js +1 -1
  212. package/dist/esm/limel-file-dropzone_2.entry.js +14 -10
  213. package/dist/esm/limel-file.entry.js +1 -1
  214. package/dist/esm/limel-flatpickr-adapter.entry.js +3 -2
  215. package/dist/esm/limel-flex-container.entry.js +1 -1
  216. package/dist/esm/limel-form-header.entry.js +57 -0
  217. package/dist/esm/limel-form.entry.js +136 -41
  218. package/dist/esm/limel-grid.entry.js +1 -1
  219. package/dist/esm/limel-header.entry.js +1 -1
  220. package/dist/esm/{limel-help.entry.js → limel-help_2.entry.js} +22 -3
  221. package/dist/esm/limel-helper-line_3.entry.js +4 -4
  222. package/dist/esm/limel-hotkey_4.entry.js +5 -5
  223. package/dist/esm/limel-icon-button.entry.js +1 -1
  224. package/dist/esm/limel-icon.entry.js +1 -1
  225. package/dist/esm/limel-info-tile.entry.js +2 -2
  226. package/dist/esm/limel-list-item.entry.js +2 -2
  227. package/dist/esm/limel-markdown.entry.js +1 -1
  228. package/dist/esm/limel-masonry-layout.entry.js +1 -1
  229. package/dist/esm/limel-menu-item-meta.entry.js +1 -1
  230. package/dist/esm/limel-pagination.entry.js +3 -2
  231. package/dist/esm/limel-picker.entry.js +1 -1
  232. package/dist/esm/limel-popover_2.entry.js +27 -4
  233. package/dist/esm/limel-profile-picture.entry.js +2 -1
  234. package/dist/esm/limel-prosemirror-adapter.entry.js +13 -10
  235. package/dist/esm/limel-radio-button-group.entry.js +1 -1
  236. package/dist/esm/limel-radio-button.entry.js +2 -2
  237. package/dist/esm/limel-resize-handle.entry.js +1 -1
  238. package/dist/esm/limel-select.entry.js +1 -1
  239. package/dist/esm/limel-shortcut.entry.js +1 -1
  240. package/dist/esm/limel-side-panel.entry.js +1 -1
  241. package/dist/esm/limel-slider.entry.js +3 -3
  242. package/dist/esm/limel-snackbar.entry.js +2 -2
  243. package/dist/esm/limel-split-button.entry.js +2 -2
  244. package/dist/esm/limel-switch.entry.js +1 -1
  245. package/dist/esm/limel-tab-bar.entry.js +14 -10
  246. package/dist/esm/limel-tab-panel.entry.js +1 -1
  247. package/dist/esm/limel-table.entry.js +16 -36
  248. package/dist/esm/limel-text-editor-link-menu.entry.js +3 -3
  249. package/dist/esm/limel-text-editor.entry.js +1 -1
  250. package/dist/esm/loader.js +1 -1
  251. package/dist/esm/negate-ooVD-6_a.js +40 -0
  252. package/dist/lime-elements/lime-elements.esm.js +1 -1
  253. package/dist/lime-elements/{p-1d6014ed.entry.js → p-05c1f5a0.entry.js} +1 -1
  254. package/dist/lime-elements/p-0c314c3c.entry.js +1 -0
  255. package/dist/lime-elements/{p-aac603af.entry.js → p-153e91e1.entry.js} +1 -1
  256. package/dist/lime-elements/{p-f455150b.entry.js → p-164e1ad0.entry.js} +1 -1
  257. package/dist/lime-elements/{p-67536ac3.entry.js → p-19681a98.entry.js} +1 -1
  258. package/dist/lime-elements/{p-6e9c34f9.entry.js → p-1d13245d.entry.js} +1 -1
  259. package/dist/lime-elements/{p-87c9f4de.entry.js → p-22c44279.entry.js} +1 -1
  260. package/dist/lime-elements/{p-7375fac2.entry.js → p-26347009.entry.js} +1 -1
  261. package/dist/lime-elements/{p-f0e3a147.entry.js → p-27d7c255.entry.js} +2 -2
  262. package/dist/lime-elements/{p-3fa66fb1.entry.js → p-29815107.entry.js} +1 -1
  263. package/dist/lime-elements/{p-27d375f3.entry.js → p-2a375a65.entry.js} +1 -1
  264. package/dist/lime-elements/{p-aee75ad1.entry.js → p-2c29c27f.entry.js} +1 -1
  265. package/dist/lime-elements/{p-19426c76.entry.js → p-2f5face5.entry.js} +1 -1
  266. package/dist/lime-elements/{p-8f133cd6.entry.js → p-3ae5fb67.entry.js} +1 -1
  267. package/dist/lime-elements/{p-bb40b96c.entry.js → p-3c861ca8.entry.js} +1 -1
  268. package/dist/lime-elements/{p-f96a8e2c.entry.js → p-40a48f70.entry.js} +1 -1
  269. package/dist/lime-elements/p-513d2a5e.entry.js +1 -0
  270. package/dist/lime-elements/{p-9e9187ce.entry.js → p-519603f5.entry.js} +1 -1
  271. package/dist/lime-elements/{p-4a381bc6.entry.js → p-545c087b.entry.js} +1 -1
  272. package/dist/lime-elements/{p-89316964.entry.js → p-55abec82.entry.js} +1 -1
  273. package/dist/lime-elements/{p-8e78fd4f.entry.js → p-55f7c9f5.entry.js} +1 -1
  274. package/dist/lime-elements/{p-2370ff51.entry.js → p-565e5ea7.entry.js} +1 -1
  275. package/dist/lime-elements/{p-3b4f6329.entry.js → p-586ee40c.entry.js} +1 -1
  276. package/dist/lime-elements/p-5d9a2877.entry.js +1 -0
  277. package/dist/lime-elements/{p-ddabfac0.entry.js → p-5f2a34ed.entry.js} +1 -1
  278. package/dist/lime-elements/{p-dd065596.entry.js → p-5f82ea0b.entry.js} +1 -1
  279. package/dist/lime-elements/{p-82672504.entry.js → p-65eafc85.entry.js} +1 -1
  280. package/dist/lime-elements/p-67acf39d.entry.js +1 -0
  281. package/dist/lime-elements/{p-d1eaba10.entry.js → p-6aae3f58.entry.js} +1 -1
  282. package/dist/lime-elements/p-7035d93d.entry.js +1 -0
  283. package/dist/lime-elements/{p-674680f9.entry.js → p-707d4b28.entry.js} +1 -1
  284. package/dist/lime-elements/{p-d94f1c0f.entry.js → p-7235d147.entry.js} +1 -1
  285. package/dist/lime-elements/p-72907ffd.entry.js +1 -0
  286. package/dist/lime-elements/{p-242f1032.entry.js → p-7aae3d13.entry.js} +1 -1
  287. package/dist/lime-elements/{p-88dcba1e.entry.js → p-7af16e1d.entry.js} +1 -1
  288. package/dist/lime-elements/{p-56fe13ef.entry.js → p-7d27d572.entry.js} +1 -1
  289. package/dist/lime-elements/{p-8339d921.entry.js → p-7f1a1ed5.entry.js} +1 -1
  290. package/dist/lime-elements/p-813cb15c.entry.js +1 -0
  291. package/dist/lime-elements/p-895a68c5.entry.js +1 -0
  292. package/dist/lime-elements/{p-0de00849.entry.js → p-9436aba6.entry.js} +4 -4
  293. package/dist/lime-elements/{p-b5ebcbfc.entry.js → p-9e30d206.entry.js} +1 -1
  294. package/dist/lime-elements/p-BIYP3lTf.js +1 -0
  295. package/dist/lime-elements/p-BZrtP4vv.js +1 -0
  296. package/dist/lime-elements/p-BqoaAMnl.js +1 -0
  297. package/dist/lime-elements/p-BuX-Eb_J.js +1 -0
  298. package/dist/lime-elements/p-C-Qy5a39.js +1 -0
  299. package/dist/lime-elements/p-Cn3Alk9P.js +1 -0
  300. package/dist/lime-elements/p-CnpoFRmN.js +1 -0
  301. package/dist/lime-elements/p-CzTSYn-I.js +1 -0
  302. package/dist/lime-elements/p-D5dy3YDO.js +1 -0
  303. package/dist/lime-elements/p-DVx8ZwG_.js +7 -0
  304. package/dist/lime-elements/p-DWd0MyPU.js +1 -0
  305. package/dist/lime-elements/p-DpFfRQwV.js +1 -0
  306. package/dist/lime-elements/p-UDFTKggt.js +1 -0
  307. package/dist/lime-elements/{p-9d354eca.entry.js → p-a608ebe3.entry.js} +1 -1
  308. package/dist/lime-elements/p-a7a84633.entry.js +1 -0
  309. package/dist/lime-elements/p-a81f6962.entry.js +1 -0
  310. package/dist/lime-elements/{p-150010b5.entry.js → p-b80433be.entry.js} +1 -1
  311. package/dist/lime-elements/{p-e13e0001.entry.js → p-b983531f.entry.js} +3 -3
  312. package/dist/lime-elements/{p-e9b1e0bd.entry.js → p-be0a8125.entry.js} +1 -1
  313. package/dist/lime-elements/{p-f0bf3fd1.entry.js → p-be2b8c1e.entry.js} +1 -1
  314. package/dist/lime-elements/p-c2_jcMp6.js +1 -0
  315. package/dist/lime-elements/{p-de3cf7d8.entry.js → p-c73f4160.entry.js} +1 -1
  316. package/dist/lime-elements/p-c8f09dd5.entry.js +1 -0
  317. package/dist/lime-elements/{p-5ea07cbe.entry.js → p-cc8d6198.entry.js} +1 -1
  318. package/dist/lime-elements/{p-026eed2d.entry.js → p-cced022b.entry.js} +1 -1
  319. package/dist/lime-elements/{p-BAqAt5It.js → p-cv8kR73y.js} +1 -1
  320. package/dist/lime-elements/{p-be8950a6.entry.js → p-d0908a85.entry.js} +2 -2
  321. package/dist/lime-elements/{p-17aa9235.entry.js → p-da4b4a81.entry.js} +1 -1
  322. package/dist/lime-elements/{p-5d623004.entry.js → p-dd383c12.entry.js} +1 -1
  323. package/dist/lime-elements/{p-41172b62.entry.js → p-e0ab0046.entry.js} +1 -1
  324. package/dist/lime-elements/{p-8a9361a2.entry.js → p-eb5a18ff.entry.js} +1 -1
  325. package/dist/lime-elements/p-f35880ef.entry.js +1 -0
  326. package/dist/lime-elements/p-f8566c5b.entry.js +1 -0
  327. package/dist/lime-elements/{p-64540beb.entry.js → p-fad7a3fa.entry.js} +1 -1
  328. package/dist/lime-elements/p-fdc7da58.entry.js +1 -0
  329. package/dist/lime-elements/p-ooVD-6_a.js +1 -0
  330. package/dist/lime-elements/p-rJbGuVxd.js +1 -0
  331. package/dist/lime-elements/p-xGeCwSnE.js +1 -0
  332. package/dist/types/components/form/form.d.ts +15 -1
  333. package/dist/types/components/form/form.test-schemas.d.ts +4 -0
  334. package/dist/types/components/form/form.types.d.ts +6 -0
  335. package/dist/types/components/form/help/help.d.ts +0 -2
  336. package/dist/types/components/form/row/row.d.ts +3 -0
  337. package/dist/types/components/form/templates/common.d.ts +17 -4
  338. package/dist/types/components/form/templates/heading-level.d.ts +49 -0
  339. package/dist/types/components/form-header/form-header.d.ts +47 -0
  340. package/dist/types/components/form-header/help-props.d.ts +7 -0
  341. package/dist/types/components/popover/popover.d.ts +24 -0
  342. package/dist/types/components/popover-surface/popover-surface.d.ts +8 -0
  343. package/dist/types/components.d.ts +179 -3
  344. package/dist/types/interface.d.ts +1 -1
  345. package/package.json +1 -1
  346. package/dist/cjs/isArrayLike-C2RwZMG4.js +0 -69
  347. package/dist/cjs/limel-help-content.cjs.entry.js +0 -24
  348. package/dist/esm/isArrayLike-CyVGB489.js +0 -66
  349. package/dist/esm/limel-help-content.entry.js +0 -22
  350. package/dist/lime-elements/p-047c3234.entry.js +0 -1
  351. package/dist/lime-elements/p-068b141b.entry.js +0 -1
  352. package/dist/lime-elements/p-09f8f883.entry.js +0 -1
  353. package/dist/lime-elements/p-3f447d22.entry.js +0 -1
  354. package/dist/lime-elements/p-5633c069.entry.js +0 -1
  355. package/dist/lime-elements/p-600466a9.entry.js +0 -1
  356. package/dist/lime-elements/p-62b6e235.entry.js +0 -1
  357. package/dist/lime-elements/p-6770cf06.entry.js +0 -1
  358. package/dist/lime-elements/p-BYfPV0O4.js +0 -1
  359. package/dist/lime-elements/p-CW2-jhzP.js +0 -1
  360. package/dist/lime-elements/p-Cu9Ji1iJ.js +0 -1
  361. package/dist/lime-elements/p-D2VFSWDU.js +0 -1
  362. package/dist/lime-elements/p-D9Ezd43A.js +0 -1
  363. package/dist/lime-elements/p-DFu1q54T.js +0 -1
  364. package/dist/lime-elements/p-DK0pjX-Y.js +0 -1
  365. package/dist/lime-elements/p-DdnBHYb-.js +0 -7
  366. package/dist/lime-elements/p-DeIIlp6m.js +0 -1
  367. package/dist/lime-elements/p-Dq0uNStc.js +0 -1
  368. package/dist/lime-elements/p-afbe54e6.entry.js +0 -1
  369. package/dist/lime-elements/p-c583ab0d.entry.js +0 -1
  370. package/dist/lime-elements/p-e2971111.entry.js +0 -1
  371. package/dist/lime-elements/p-e332bb9b.entry.js +0 -1
  372. package/dist/lime-elements/p-e50acec1.entry.js +0 -1
  373. package/dist/lime-elements/p-f1ac7608.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as e,c as o,h as t,H as r,a as i}from"./p-BU9IJqli.js";import{t as a}from"./p-B26k4gw8.js";import{A as s,b as n,c as l,d as c}from"./p-Bu6-QXrA.js";import"./p-ChagAaNf.js";const h={left:{axis:"x",cursor:"col-resize",direction:-1,growKey:l,shrinkKey:c},right:{axis:"x",cursor:"col-resize",direction:1,growKey:c,shrinkKey:l},top:{axis:"y",cursor:"row-resize",direction:-1,growKey:s,shrinkKey:n},bottom:{axis:"y",cursor:"row-resize",direction:1,growKey:n,shrinkKey:s}};function d(e){return"x"===h[e].axis?"vertical":"horizontal"}const p={activeDrags:0};function b(e){document.body.style.cursor=e.cursor,document.body.style.userSelect=e.userSelect}function m(e,o){let t,r,i,a=h.left,s=!1;const n=e=>"x"===a.axis?e.clientX:e.clientY,l=l=>{var c;void 0===t&&(l.preventDefault(),t=l.pointerId,s=!1,a=h[o.getLocation()],r=n(l),i=o.getSize(),e.setPointerCapture(l.pointerId),c=a.cursor,0===p.activeDrags&&(p.before={cursor:document.body.style.cursor,userSelect:document.body.style.userSelect}),p.activeDrags+=1,b({cursor:c,userSelect:"none"}))},c=e=>{e.pointerId===t&&(s=!0,o.resize(i+a.direction*(n(e)-r)))},d=e=>{e.pointerId===t&&(m(),s&&o.end())},m=()=>{void 0!==t&&(t=void 0,p.activeDrags-=1,0===p.activeDrags&&b(p.before))};return e.addEventListener("pointerdown",l),e.addEventListener("pointermove",c),e.addEventListener("pointerup",d),e.addEventListener("pointercancel",d),e.addEventListener("lostpointercapture",d),()=>{m(),e.removeEventListener("pointerdown",l),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",d),e.removeEventListener("pointercancel",d),e.removeEventListener("lostpointercapture",d)}}const v="separator",u=class{constructor(t){e(this,t),this.changeSize=o(this,"changeSize",1),this.endResize=o(this,"endResize",1),this.location="left",this.language="en",this.isPointerOver=!1,this.hasKeyboardFocus=!1,this.handlePointerEnter=()=>{this.isPointerOver=!0},this.handlePointerLeave=()=>{this.isPointerOver=!1},this.handleFocus=e=>{this.hasKeyboardFocus=e.currentTarget.matches(":focus-visible")},this.handleBlur=()=>{this.hasKeyboardFocus=!1},this.handleKeyDown=e=>{const o=function(e,o){const{growKey:t,shrinkKey:r}=h[e];return o===t?8:o===r?-8:void 0}(this.location,e.key);void 0!==o&&(e.preventDefault(),this.hasKeyboardFocus=!0,this.changeSize.emit(this.elementSize()+o),this.endResize.emit())},this.elementSize=()=>{return e=this.resizableElement(),"x"===h[this.location].axis?e.offsetWidth:e.offsetHeight;var e}}connectedCallback(){this.stopResizing=m(this.host,{getLocation:()=>this.location,getSize:this.elementSize,resize:e=>this.changeSize.emit(e),end:()=>this.endResize.emit()})}disconnectedCallback(){var e;null===(e=this.stopResizing)||void 0===e||e.call(this),this.stopResizing=void 0}render(){const e=this.getName();return t(r,{key:"a764146953b0d52a3a3b81450e8e1e65c90c5210",onKeyDown:this.handleKeyDown,onPointerEnter:this.handlePointerEnter,onPointerLeave:this.handlePointerLeave},t("div",{key:"0d65a5646d9ede0f310045cb2858c554210c001a",role:"separator",id:v,tabindex:"0","aria-orientation":d(this.location),"aria-label":e,"aria-valuenow":this.value,"aria-valuemin":this.min,"aria-valuemax":this.max,onFocus:this.handleFocus,onBlur:this.handleBlur},t("div",{key:"6c5d001384b9b7289c7a40c641c858c7c72de3ca",role:"presentation"},t("span",{key:"c43208aff2850d3e3ce439774e069d3bba23bdec"}),t("span",{key:"f30a64d1bde31ba4a6578d2cdb71ad742bc55ae6"}),t("span",{key:"6d6bac3ba8a6ad7cbdebc730084eed8a8df2f9a2"}))),t("limel-tooltip",{key:"9e2c59edf8223ff52a634e227855ca8b1b4d7664",elementId:v,label:e,helperLabel:this.getHint(),openDirection:this.location}))}getName(){return this.resizableRegionLabel?a.get("resize-handle.resize",this.language,{region:this.resizableRegionLabel}):a.get("resize-handle.resize-this-region",this.language)}getHint(){if(this.isPointerOver&&!this.hasKeyboardFocus)return a.get("resize-handle.drag",this.language);const e="vertical"===d(this.location)?"resize-handle.keys-left-right":"resize-handle.keys-up-down";return a.get(e,this.language)}resizableElement(){return this.host.parentElement?this.host.parentElement:this.host.getRootNode().host}static get delegatesFocus(){return!0}get host(){return i(this)}};u.style='@charset "UTF-8";:host(limel-resize-handle){position:absolute;z-index:1;touch-action:none}div[role=separator]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:100vh;outline:none}div[role=separator]::before,div[role=separator]::after{pointer-events:none;content:"";display:block;position:absolute;inset:0;border-radius:100vh;margin:auto}div[role=separator]::before{transition:scale 0.3s ease, opacity 0.3s ease;transition-delay:0.2s;opacity:0}div[role=separator]::after{transition:background-color 0.4s ease;transition-delay:0.2s;background-color:rgb(var(--contrast-600))}:host([location=top]),:host([location=bottom]){cursor:row-resize;height:var(--limel-resize-handle-thickness, 0.5rem) !important;right:0;left:0}:host([location=top]) div[role=separator]::before,:host([location=bottom]) div[role=separator]::before{scale:1 0.9;height:0.5rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top]) div[role=separator]::after,:host([location=bottom]) div[role=separator]::after{height:0.125rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top]){top:0}:host([location=top]) div[role=separator]::before{top:0;bottom:auto}:host([location=top]) div[role=separator]::after{top:calc((0.5rem - 0.125rem) / 2);bottom:auto}:host([location=bottom]){bottom:0}:host([location=bottom]) div[role=separator]::before{top:auto;bottom:0}:host([location=bottom]) div[role=separator]::after{top:auto;bottom:calc((0.5rem - 0.125rem) / 2)}:host([location=left]),:host([location=right]){cursor:col-resize;width:0.5rem;top:0;bottom:0}:host([location=left]) div[role=separator]::before,:host([location=right]) div[role=separator]::before{scale:0.9 1}:host([location=left]) div[role=separator]::after,:host([location=right]) div[role=separator]::after{width:0.125rem}:host([location=left]){left:0}:host([location=right]){right:0}:host(:hover) div[role=separator]::before,:host div[role=separator]:focus-visible::before{transition-duration:0.46s;transition-timing-function:ease-in;opacity:1;scale:1 1;background-color:rgb(var(--color-sky-light), 0.4)}:host(:hover) div[role=separator]::after,:host div[role=separator]:focus-visible::after{transition-duration:0.2s;transition-timing-function:ease-in;background-color:rgb(var(--color-sky-default))}div[role=presentation]{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);pointer-events:none;position:relative;z-index:1;display:flex;gap:0.25rem;align-items:center;justify-content:center;width:fit-content;padding:0.1875rem 0.25rem;border-radius:100vh;margin:auto;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-pressed)}div[role=presentation] span{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);border-radius:0.125rem;width:0.25rem;height:0.125rem;background-color:rgb(var(--contrast-700))}:host([location=top]) div[role=presentation]{margin-top:0;margin-bottom:auto}:host([location=bottom]) div[role=presentation]{margin-top:auto;margin-bottom:0}div[role=separator][aria-orientation=vertical]>div[role=presentation]{rotate:90deg}:host(:hover),:host div[role=separator]:focus-visible{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(:hover) div[role=presentation],:host div[role=separator]:focus-visible div[role=presentation]{will-change:background-color, box-shadow, transform;transform:translate3d(0, -0.04rem, 0);box-shadow:var(--button-shadow-normal)}:host(:hover) span,:host div[role=separator]:focus-visible span{will-change:background-color;background-color:var(--mdc-theme-primary)}';export{u as limel_resize_handle}
1
+ import{r as e,c as o,h as t,H as r,a as i}from"./p-BU9IJqli.js";import{t as a}from"./p-B26k4gw8.js";import{A as s,b as n,c as l,d as c}from"./p-Bu6-QXrA.js";import"./p-ChagAaNf.js";const h={left:{axis:"x",cursor:"col-resize",direction:-1,growKey:l,shrinkKey:c},right:{axis:"x",cursor:"col-resize",direction:1,growKey:c,shrinkKey:l},top:{axis:"y",cursor:"row-resize",direction:-1,growKey:s,shrinkKey:n},bottom:{axis:"y",cursor:"row-resize",direction:1,growKey:n,shrinkKey:s}};function d(e){return"x"===h[e].axis?"vertical":"horizontal"}const p={activeDrags:0};function b(e){document.body.style.cursor=e.cursor,document.body.style.userSelect=e.userSelect}function m(e,o){let t,r,i,a=h.left,s=!1;const n=e=>"x"===a.axis?e.clientX:e.clientY,l=l=>{var c;void 0===t&&(l.preventDefault(),t=l.pointerId,s=!1,a=h[o.getLocation()],r=n(l),i=o.getSize(),e.setPointerCapture(l.pointerId),c=a.cursor,0===p.activeDrags&&(p.before={cursor:document.body.style.cursor,userSelect:document.body.style.userSelect}),p.activeDrags+=1,b({cursor:c,userSelect:"none"}))},c=e=>{e.pointerId===t&&(s=!0,o.resize(i+a.direction*(n(e)-r)))},d=e=>{e.pointerId===t&&(m(),s&&o.end())},m=()=>{void 0!==t&&(t=void 0,p.activeDrags-=1,0===p.activeDrags&&b(p.before))};return e.addEventListener("pointerdown",l),e.addEventListener("pointermove",c),e.addEventListener("pointerup",d),e.addEventListener("pointercancel",d),e.addEventListener("lostpointercapture",d),()=>{m(),e.removeEventListener("pointerdown",l),e.removeEventListener("pointermove",c),e.removeEventListener("pointerup",d),e.removeEventListener("pointercancel",d),e.removeEventListener("lostpointercapture",d)}}const v="separator",u=class{constructor(t){e(this,t),this.changeSize=o(this,"changeSize",1),this.endResize=o(this,"endResize",1),this.location="left",this.language="en",this.isPointerOver=!1,this.hasKeyboardFocus=!1,this.handlePointerEnter=()=>{this.isPointerOver=!0},this.handlePointerLeave=()=>{this.isPointerOver=!1},this.handleFocus=e=>{this.hasKeyboardFocus=e.currentTarget.matches(":focus-visible")},this.handleBlur=()=>{this.hasKeyboardFocus=!1},this.handleKeyDown=e=>{const o=function(e,o){const{growKey:t,shrinkKey:r}=h[e];return o===t?8:o===r?-8:void 0}(this.location,e.key);void 0!==o&&(e.preventDefault(),this.hasKeyboardFocus=!0,this.changeSize.emit(this.elementSize()+o),this.endResize.emit())},this.elementSize=()=>{return e=this.resizableElement(),"x"===h[this.location].axis?e.offsetWidth:e.offsetHeight;var e}}connectedCallback(){this.stopResizing=m(this.host,{getLocation:()=>this.location,getSize:this.elementSize,resize:e=>this.changeSize.emit(e),end:()=>this.endResize.emit()})}disconnectedCallback(){var e;null===(e=this.stopResizing)||void 0===e||e.call(this),this.stopResizing=void 0}render(){const e=this.getName();return t(r,{key:"60afc9a25d46b0353ea82e5d952c4f16ea966af9",onKeyDown:this.handleKeyDown,onPointerEnter:this.handlePointerEnter,onPointerLeave:this.handlePointerLeave},t("div",{key:"cf668350fd88ceb546b2ba5d9f2e256fad850633",role:"separator",id:v,tabindex:"0","aria-orientation":d(this.location),"aria-label":e,"aria-valuenow":this.value,"aria-valuemin":this.min,"aria-valuemax":this.max,onFocus:this.handleFocus,onBlur:this.handleBlur},t("div",{key:"581a96a20905d70ed32f5a25b8db803ea4daee6a",role:"presentation"},t("span",{key:"a06b14126c53c2a28c32897cf27d95f2d86d6e71"}),t("span",{key:"b0b80786f6fa842b562c3e17c82f6d569f977d6f"}),t("span",{key:"f1604f9a3e96bf59558bba08a3c9388f97ecb17e"}))),t("limel-tooltip",{key:"43c3a9a2502f30e58067f1eb16e53129face2bf4",elementId:v,label:e,helperLabel:this.getHint(),openDirection:this.location}))}getName(){return this.resizableRegionLabel?a.get("resize-handle.resize",this.language,{region:this.resizableRegionLabel}):a.get("resize-handle.resize-this-region",this.language)}getHint(){if(this.isPointerOver&&!this.hasKeyboardFocus)return a.get("resize-handle.drag",this.language);const e="vertical"===d(this.location)?"resize-handle.keys-left-right":"resize-handle.keys-up-down";return a.get(e,this.language)}resizableElement(){return this.host.parentElement?this.host.parentElement:this.host.getRootNode().host}static get delegatesFocus(){return!0}get host(){return i(this)}};u.style='@charset "UTF-8";:host(limel-resize-handle){position:absolute;z-index:1;touch-action:none}div[role=separator]{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;border-radius:100vh;outline:none}div[role=separator]::before,div[role=separator]::after{pointer-events:none;content:"";display:block;position:absolute;inset:0;border-radius:100vh;margin:auto}div[role=separator]::before{transition:scale 0.3s ease, opacity 0.3s ease;transition-delay:0.2s;opacity:0}div[role=separator]::after{transition:background-color 0.4s ease;transition-delay:0.2s;background-color:rgb(var(--contrast-600))}:host([location=top]),:host([location=bottom]){cursor:row-resize;height:var(--limel-resize-handle-thickness, 0.5rem) !important;right:0;left:0}:host([location=top]) div[role=separator]::before,:host([location=bottom]) div[role=separator]::before{scale:1 0.9;height:0.5rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top]) div[role=separator]::after,:host([location=bottom]) div[role=separator]::after{height:0.125rem;width:var(--limel-resize-handle-visual-length, auto)}:host([location=top]){top:0}:host([location=top]) div[role=separator]::before{top:0;bottom:auto}:host([location=top]) div[role=separator]::after{top:calc((0.5rem - 0.125rem) / 2);bottom:auto}:host([location=bottom]){bottom:0}:host([location=bottom]) div[role=separator]::before{top:auto;bottom:0}:host([location=bottom]) div[role=separator]::after{top:auto;bottom:calc((0.5rem - 0.125rem) / 2)}:host([location=left]),:host([location=right]){cursor:col-resize;width:0.5rem;top:0;bottom:0}:host([location=left]) div[role=separator]::before,:host([location=right]) div[role=separator]::before{scale:0.9 1}:host([location=left]) div[role=separator]::after,:host([location=right]) div[role=separator]::after{width:0.125rem}:host([location=left]){left:0}:host([location=right]){right:0}:host(:hover) div[role=separator]::before,:host div[role=separator]:focus-visible::before{transition-duration:0.46s;transition-timing-function:ease-in;opacity:1;scale:1 1;background-color:rgb(var(--color-sky-light), 0.4)}:host(:hover) div[role=separator]::after,:host div[role=separator]:focus-visible::after{transition-duration:0.2s;transition-timing-function:ease-in;background-color:rgb(var(--color-sky-default))}div[role=presentation]{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);pointer-events:none;position:relative;z-index:1;display:flex;gap:0.25rem;align-items:center;justify-content:center;width:fit-content;padding:0.1875rem 0.25rem;border-radius:100vh;margin:auto;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--button-shadow-pressed)}div[role=presentation] span{transition:color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);border-radius:0.125rem;width:0.25rem;height:0.125rem;background-color:rgb(var(--contrast-700))}:host([location=top]) div[role=presentation]{margin-top:0;margin-bottom:auto}:host([location=bottom]) div[role=presentation]{margin-top:auto;margin-bottom:0}div[role=separator][aria-orientation=vertical]>div[role=presentation]{rotate:90deg}:host(:hover),:host div[role=separator]:focus-visible{--limel-clickable-transition-speed:0.2s;--limel-clickable-transform-speed:0.16s}:host(:hover) div[role=presentation],:host div[role=separator]:focus-visible div[role=presentation]{will-change:background-color, box-shadow, transform;transform:translate3d(0, -0.04rem, 0);box-shadow:var(--button-shadow-normal)}:host(:hover) span,:host div[role=separator]:focus-visible span{will-change:background-color;background-color:var(--mdc-theme-primary)}';export{u as limel_resize_handle}
@@ -0,0 +1 @@
1
+ import{r as t,c as e,h as r,a as o}from"./p-BU9IJqli.js";import{i}from"./p-CnpoFRmN.js";import{g as a,b as l}from"./p-CgNJbSP4.js";import{A as n,b as s,H as c,e as b,c as d,d as h}from"./p-Bu6-QXrA.js";import{a as u,b as m,i as v,D as p}from"./p-DVx8ZwG_.js";import{S as g,c as f}from"./p-BqoaAMnl.js";import{b as w}from"./p-BuX-Eb_J.js";import"./p-CK4jS9_E.js";import"./p-xGeCwSnE.js";import"./p-BcJ-TDVt.js";import"./p-BJQylLSL.js";import"./p-BZrtP4vv.js";import"./p-oiMYqRQ0.js";import"./p-rJbGuVxd.js";import"./p-DbBZn7JO.js";import"./p-CZ30nDJE.js";import"./p-DpFfRQwV.js";import"./p-B8VKuhvH.js";import"./p-CzTSYn-I.js";import"./p-B--C3qwe.js";import"./p-9W8bTt2G.js";var x=m((function(t,e){return v(t)?function(t,e){var r=-1,o=u,i=!0,a=t.length,l=[],n=e.length;if(!a)return l;e.length>=200&&(o=f,i=!1,e=new g(e));t:for(;++r<a;){var s=t[r],c=s;if(s=0!==s?s:0,i&&c==c){for(var b=n;b--;)if(e[b]===c)continue t;l.push(s)}else o(e,c,undefined)||l.push(s)}return l}(t,w(e,1,v,!0)):[]}));const k={horizontal:new Map([[d,"previous"],[h,"next"],[c,"first"],[b,"last"]]),vertical:new Map([[n,"previous"],[s,"next"],[c,"first"],[b,"last"]])};function j(t,e){return t>=0&&t<e}function y(t,e){return r=>{var o;return!(null===(o=null==e?void 0:e.isDisabled)||void 0===o?void 0:o.call(e,t[r]))}}function C(t,e,r,o,i){for(let a=0;a<t;a+=1){const l=e+r*a;if(!o&&!j(l,t))break;const n=(l%t+t)%t;if(i(n))return n}return-1}const z=class{constructor(r){t(this,r),this.changeTab=e(this,"changeTab",7),this.reorderTab=e(this,"reorderTab",7),this.tabs=[],this.orientation="horizontal",this.allowTabReorder=!1,this.hasLoaded=!1,this.isLaidOutAgain=!1,this.renderedTabs=[],this.handleReorder=t=>{const e=function(t,e){const{order:r,fromIndex:o,toIndex:a}=e,l=e=>e>=0&&e<t.length;if(!l(o)||!l(a))return;const n=[...r];return n.splice(o,0,...n.splice(a,1)),i(n,t.map((({id:t})=>String(t))))?{tab:t[o],fromIndex:o,toIndex:a}:void 0}(this.tabs,t);if(!e)return;const r=this.tabs.map((({id:t})=>t));r.splice(e.toIndex,0,...r.splice(e.fromIndex,1)),this.tabIdsAfterReorder=r,this.reorderTab.emit(e)},this.handleKeyDown=this.handleKeyDown.bind(this)}async connectedCallback(){this.hasLoaded&&(this.revealedTabId=void 0,this.setUpReordering(),await this.revealActiveTab("auto"))}disconnectedCallback(){var t;null===(t=this.dragToReorder)||void 0===t||t.teardown()}componentDidLoad(){this.hasLoaded=!0,this.triggerIconColorWarning()}componentWillRender(){var t;const e=this.getTabElements().indexOf(this.host.shadowRoot.activeElement);this.tabWithFocus=-1===e?void 0:{id:null===(t=this.renderedTabs[e])||void 0===t?void 0:t.id,button:this.getTabElements()[e]}}async componentDidRender(){this.restoreFocus(),this.renderedTabs=this.tabs,this.setUpReordering();const t=this.isLaidOutAgain;this.isLaidOutAgain=!1,await this.revealActiveTab(!this.hasLoaded||t?"auto":void 0,t)}render(){const t=function(t,e,r){const o=t.length,i=y(t,r);return j(e,o)&&i(e)?e:C(o,0,1,!1,i)}(this.tabs,this.tabs.findIndex((t=>t.active)),this.getNavigationOptions());return r("div",{key:"d5f54de83640eb4898a58cd71696085e28f3701a",role:"tablist","aria-orientation":this.getOrientation(),onKeyDown:this.handleKeyDown},r("limel-scroller",{key:"565bbbcdf070a6b2521064a84347028baaae273e",orientation:this.getOrientation()},this.tabs.map(((e,r)=>this.renderTabOrMovableTab(e,r,r===t)))))}tabsChanged(t=[],e=[]){const r=t.map((t=>t.id)),o=e.map((t=>t.id));if(i(r,o))return;const a=this.tabIdsAfterReorder;this.tabIdsAfterReorder=void 0,i(r,a)||(this.revealedTabId=void 0)}orientationChanged(){this.revealedTabId=void 0,this.isLaidOutAgain=!0}getOrientation(){return"vertical"===this.orientation?"vertical":"horizontal"}getNavigationOptions(){return{orientation:this.getOrientation(),wrap:!0}}restoreFocus(){var t;const e=this.tabWithFocus;if(this.tabWithFocus=void 0,!e||e.button.isConnected)return;const r=this.tabs.findIndex((t=>t.id===e.id));null===(t=this.getTabElements()[r])||void 0===t||t.focus()}getTabElements(){return[...this.host.shadowRoot.querySelectorAll('button[role="tab"]')]}canReorderTabs(){return this.allowTabReorder&&this.tabs.length>1}setUpReordering(){var t,e;if(!this.canReorderTabs())return void(null===(t=this.dragToReorder)||void 0===t||t.teardown());const r=this.host.shadowRoot.querySelector("limel-scroller");r&&(null!==(e=this.dragToReorder)&&void 0!==e||(this.dragToReorder=new p({draggable:"[data-reorder-id]",revertDrop:!0,onReorder:this.handleReorder})),this.dragToReorder.setup(r,this.getOrientation()))}async revealActiveTab(t,e=!1){const r=this.tabs.findIndex((t=>t.active));if(-1===r)return void(this.revealedTabId=void 0);if(this.tabs[r].id===this.revealedTabId)return;this.revealedTabId=this.tabs[r].id;const o=this.getTabElements()[r],i=this.host.shadowRoot.querySelector("limel-scroller");o&&i&&(o.matches(":focus")&&!e||(await i.componentOnReady(),await i.reveal(o,t)))}handleKeyDown(t){const e=this.getNavigationOptions();if(!function(t,e){return!(t.altKey||t.ctrlKey||t.metaKey)&&k[e.orientation].has(t.key)}(t,e))return;const r=this.getTabElements().indexOf(t.target);-1!==r&&(t.preventDefault(),this.activateTab(function(t,e,r,o){const i=k[o.orientation].get(e),a=t.length,l=y(t,o),n=C(a,0,1,!1,l);if(!i||-1===n)return-1;if("first"===i)return n;const s=C(a,a-1,-1,!1,l);if("last"===i)return s;if(!j(r,a))return"next"===i?n:s;const c="next"===i?1:-1,b=C(a,r+c,c,Boolean(o.wrap),l);return-1===b?r:b}(this.tabs,t.key,r,e)))}activateTab(t){if(-1===t)return;if(this.getTabElements()[t].focus(),t===this.tabs.findIndex((t=>t.active)))return;const e=function(t,e){const r=t.findIndex((t=>!0===t.active)),o=[...t];return-1!==r&&(o[r]=Object.assign(Object.assign({},t[r]),{active:!1})),o[e]=Object.assign(Object.assign({},t[e]),{active:!0}),o}(this.tabs,t),r=x(e,this.tabs).sort(this.sortByInactive);for(const t of r)this.changeTab.emit(t);this.tabs=e}sortByInactive(t,e){return Number(t.active)-Number(e.active)}renderIcon(t){if(!t.icon)return;const e=a(t.icon),o=l(t.icon,t.iconColor),i={color:""};return o&&(i.color=o),r("limel-icon",{name:e,style:i,size:"small","aria-hidden":"true"})}renderTabOrMovableTab(t,e,o){return this.canReorderTabs()?r("div",{key:t.id,role:"presentation","data-reorder-id":t.id},this.renderTab(t,e,o),r("limel-drag-handle",{"aria-hidden":"true",dragDirection:this.getOrientation(),tooltipOpenDirection:"vertical"===this.getOrientation()?"right":"bottom"})):this.renderTab(t,e,o)}renderTab(t,e,o){return r("button",{key:t.id,role:"tab","aria-selected":t.active?"true":"false",tabindex:o?0:-1,onClick:()=>this.activateTab(e)},r("span",{class:"content"},this.renderIcon(t),r("span",{class:"text"},t.text),t.badge?r("limel-badge",{label:t.badge}):""))}triggerIconColorWarning(){this.tabs.some((t=>t.iconColor))&&console.warn("The `iconColor` prop is deprecated now! Use the new `Icon` interface and instead of `iconColor: 'color-name'` write `icon {name: 'icon-name', color: 'color-name'}`.")}get host(){return o(this)}static get watchers(){return{tabs:[{tabsChanged:0}],orientation:[{orientationChanged:0}]}}};z.style="@charset \"UTF-8\";:host(limel-tab-bar){--limel-tab-background-color:var(--contrast-300);--limel-tab-border-radius:0.625rem;--limel-tab-content-inset:0.25rem;--limel-active-tab-background-color:var( --tab-panel-background-color, rgb(var(--contrast-100)) );--limel-active-tab-color:var( --lime-primary-color, var(--limel-theme-primary-color) );--limel-tab-active-outer-edge-curve-size:0.75rem;--limel-tab-separator-width:0.125rem;--limel-tab-separator-background-color:rgb(var(--contrast-600));isolation:isolate;display:block;position:relative}limel-scroller{--limel-scroller-fade-color:var(--limel-tab-background-color);--limel-scroller-content-padding:0.25rem var(--limel-tab-active-outer-edge-curve-size) 0;background-color:rgb(var(--limel-tab-background-color))}:host(.has-tabs-with-equal-width:not([orientation=vertical])) button[role=tab],:host(.has-tabs-with-equal-width:not([orientation=vertical])) limel-scroller>div{flex:1 0 auto;max-width:var(--tab-bar-horizontal-tab-max-width, none)}limel-scroller>div:has(limel-drag-handle:hover),limel-scroller>div:has(limel-drag-handle:focus-within),limel-scroller>div.is-elevated,limel-scroller>div.sortable-chosen{will-change:transform, box-shadow, border-radius, background-color}limel-scroller>div.sortable-ghost{border-radius:0.5rem;box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}limel-scroller>div.sortable-chosen{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color)}limel-scroller>div.is-elevated[draggable=false]{animation:sit-here 0.8s forwards}@keyframes sit-here{0%{border-radius:0.5rem;background-color:var(--lime-elevated-surface-background-color);box-shadow:var(--shadow-depth-64), 0 0.65rem 0.75rem -0.425rem rgb(var(--color-black), 0.3)}100%{box-shadow:none}}limel-scroller>div{position:relative;display:flex;flex:0 0 auto}limel-scroller>div button[role=tab]{flex:1 1 auto;min-width:0}limel-scroller>div span.content{padding-right:2rem}limel-scroller>div limel-drag-handle{position:absolute;z-index:3;top:0;bottom:0;right:0.25rem}button[role=tab]{appearance:none;background:none;border:none;padding:0;margin:0;font:inherit;color:inherit;text-align:inherit;position:relative;display:flex;box-sizing:border-box;border-radius:0;padding:var(--limel-tab-content-inset);min-width:2.5rem;background-color:transparent;flex:0 0 auto;height:2.5rem;outline:none;cursor:pointer;white-space:nowrap;font-size:var(--limel-theme-default-font-size)}button[role=tab] limel-icon{transition:color 0.2s ease;color:rgb(var(--contrast-800));margin-left:-0.25rem;flex-shrink:0}button[role=tab] span.text{transition:color 0.2s ease;line-height:1.25;overflow:hidden;text-overflow:ellipsis;color:var(--limel-theme-on-surface-color)}button[role=tab]:hover span.text{color:var(--limel-theme-text-primary-on-background-color)}button[role=tab] limel-badge{margin-right:-0.25rem;box-shadow:0 0 0 1px rgb(var(--contrast-600));pointer-events:none;flex-shrink:0}button[role=tab][aria-selected=true]{background-color:var(--limel-active-tab-background-color);z-index:2}button[role=tab][aria-selected=true]:before,button[role=tab][aria-selected=true]:after{content:\"\";display:block;width:var(--limel-tab-active-outer-edge-curve-size);height:var(--limel-tab-active-outer-edge-curve-size);position:absolute;background-color:var(--limel-active-tab-background-color);-webkit-mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\");mask-image:url(\"data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20fill-rule='evenodd'%20stroke-linejoin='round'%20stroke-miterlimit='2'%20clip-rule='evenodd'%20viewBox='0%200%2050%2050'%3E%3Cdefs/%3E%3Cpath%20d='M0%200c0%2027.594%2022.406%2050%2050%2050H0V0z'/%3E%3C/svg%3E\")}button[role=tab][aria-selected=true] limel-icon{color:var(--limel-active-tab-color)}button[role=tab][aria-selected=true] span.text{color:var(--limel-active-tab-color)}span.content{transition:box-shadow 0.2s ease;display:flex;flex-grow:1;min-width:0;align-items:center;justify-content:center;gap:0.375rem;padding:0 0.75rem;border-radius:calc(var(--limel-tab-border-radius) - var(--limel-tab-content-inset))}button[role=tab]:focus-visible span.content{transition-duration:0.3s;box-shadow:var(--shadow-depth-8-focused)}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab]{max-width:var(--tab-bar-horizontal-tab-max-width, 16rem)}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab]:not([aria-selected=true]):after{content:\"\";display:block;background-color:var(--limel-tab-separator-background-color);width:var(--limel-tab-separator-width);height:1rem;margin:auto;position:absolute;top:0;bottom:0;border-radius:1rem;right:calc(-1 * var(--limel-tab-separator-width))}:host(limel-tab-bar:not([orientation=vertical])) limel-scroller>:last-child:not([aria-selected=true]):after,:host(limel-tab-bar:not([orientation=vertical])) limel-scroller>:last-child>button[role=tab]:not([aria-selected=true]):after{display:none}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]{border-radius:var(--limel-tab-border-radius) var(--limel-tab-border-radius) 0 0}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]:before,:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]:after{bottom:0}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]:before{left:calc(-1 * var(--limel-tab-active-outer-edge-curve-size));transform:rotateY(180deg)}:host(limel-tab-bar:not([orientation=vertical])) button[role=tab][aria-selected=true]:after{right:calc(-1 * var(--limel-tab-active-outer-edge-curve-size))}:host(limel-tab-bar[orientation=vertical]){width:var(--tab-bar-vertical-width, 10rem)}:host(limel-tab-bar[orientation=vertical]) div[role=tablist]{height:100%}:host(limel-tab-bar[orientation=vertical]) limel-scroller{--limel-scroller-content-padding:var( --limel-tab-active-outer-edge-curve-size ) 0 var(--limel-tab-active-outer-edge-curve-size) 0.25rem;height:100%}:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]{border-radius:var(--limel-tab-border-radius) 0 0 var(--limel-tab-border-radius)}:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]:before,:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]:after{right:0}:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]:before{bottom:100%;transform:rotateY(180deg)}:host(limel-tab-bar[orientation=vertical]) button[role=tab][aria-selected=true]:after{top:100%;transform:rotate(180deg)}:host(limel-tab-bar[orientation=vertical]) span.content{justify-content:flex-start}:host(limel-tab-bar[orientation=vertical]) span.text{flex-grow:1}";export{z as limel_tab_bar}
@@ -0,0 +1 @@
1
+ function t(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var r=arguments;switch(r.length){case 0:return!t.call(this);case 1:return!t.call(this,r[0]);case 2:return!t.call(this,r[0],r[1]);case 3:return!t.call(this,r[0],r[1],r[2])}return!t.apply(this,r)}}export{t as n}
@@ -0,0 +1 @@
1
+ import{g as t}from"./p-DbBZn7JO.js";import{e as n}from"./p-CZ30nDJE.js";import{M as r}from"./p-DpFfRQwV.js";var i=t(Object,"create"),s=Object.prototype.hasOwnProperty,o=Object.prototype.hasOwnProperty;function u(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}function h(t,r){for(var i=t.length;i--;)if(n(t[i][0],r))return i;return-1}u.prototype.clear=function(){this.__data__=i?i(null):{},this.size=0},u.prototype.delete=function(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n},u.prototype.get=function(t){var n=this.__data__;if(i){var r=n[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(n,t)?n[t]:void 0},u.prototype.has=function(t){var n=this.__data__;return i?void 0!==n[t]:o.call(n,t)},u.prototype.set=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=i&&void 0===n?"__lodash_hash_undefined__":n,this};var e=Array.prototype.splice;function a(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}function f(t,n){var r,i,s=t.__data__;return("string"==(i=typeof(r=n))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==r:null===r)?s["string"==typeof n?"string":"hash"]:s.map}function v(t){var n=-1,r=null==t?0:t.length;for(this.clear();++n<r;){var i=t[n];this.set(i[0],i[1])}}function c(t,n){for(var r=-1,i=n.length,s=t.length;++r<i;)t[s+r]=n[r];return t}a.prototype.clear=function(){this.__data__=[],this.size=0},a.prototype.delete=function(t){var n=this.__data__,r=h(n,t);return!(r<0||(r==n.length-1?n.pop():e.call(n,r,1),--this.size,0))},a.prototype.get=function(t){var n=this.__data__,r=h(n,t);return r<0?void 0:n[r][1]},a.prototype.has=function(t){return h(this.__data__,t)>-1},a.prototype.set=function(t,n){var r=this.__data__,i=h(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this},v.prototype.clear=function(){this.size=0,this.__data__={hash:new u,map:new(r||a),string:new u}},v.prototype.delete=function(t){var n=f(this,t).delete(t);return this.size-=n?1:0,n},v.prototype.get=function(t){return f(this,t).get(t)},v.prototype.has=function(t){return f(this,t).has(t)},v.prototype.set=function(t,n){var r=f(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this};export{a as L,v as M,c as a}
@@ -0,0 +1 @@
1
+ import{i as r}from"./p-BcJ-TDVt.js";import{i as t}from"./p-BZrtP4vv.js";function i(i){return null!=i&&t(i.length)&&!r(i)}export{i}
@@ -1,5 +1,5 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { FormError, FormSchema, ValidationError, ValidationStatus } from './form.types';
2
+ import { FormError, FormSchema, HeadingLevel, ValidationError, ValidationStatus } from './form.types';
3
3
  /**
4
4
  * @exampleComponent limel-example-form
5
5
  * @exampleComponent limel-example-nested-form
@@ -18,6 +18,7 @@ import { FormError, FormSchema, ValidationError, ValidationStatus } from './form
18
18
  * @exampleComponent limel-example-builtin-field-types-form
19
19
  * @exampleComponent limel-example-code-editor-form
20
20
  * @exampleComponent limel-example-form-highlighted-field
21
+ * @exampleComponent limel-example-form-heading-level
21
22
  */
22
23
  export declare class Form {
23
24
  /**
@@ -51,6 +52,16 @@ export declare class Form {
51
52
  * errors generated server side.
52
53
  */
53
54
  errors: ValidationError;
55
+ /**
56
+ * The level, from `1` to `6`, of the topmost headings in the form.
57
+ * The headings of the sections inside them get one level more for each
58
+ * level of nesting, down to `6`.
59
+ *
60
+ * Set it so that the headings of the form fit below the headings of
61
+ * the page around it. For example, when the form is in a section with
62
+ * an `h2` heading, set it to `3`.
63
+ */
64
+ headingLevel: HeadingLevel;
54
65
  /**
55
66
  * Set to `true` to render every field with a validation error as
56
67
  * invalid, even untouched ones, and to reflect that on each
@@ -85,7 +96,10 @@ export declare class Form {
85
96
  private initialized;
86
97
  constructor();
87
98
  connectedCallback(): void;
99
+ componentWillLoad(): void;
88
100
  componentDidLoad(): void;
101
+ protected handleHeadingLevelChange(): void;
102
+ private warnIfHeadingLevelIsInvalid;
89
103
  protected handleHighlightedFieldChange(newPath?: Array<string | number>, oldPath?: Array<string | number>): void;
90
104
  private initialize;
91
105
  componentDidUpdate(): void;
@@ -45,4 +45,8 @@ export declare const nestedLayoutSchemaPathSchema: FormSchema;
45
45
  export declare const getConditionalCustomComponentSchema: (value: Record<string, any>) => FormSchema;
46
46
  export declare const arrayItemWithEnumAndDefaultSchema: FormSchema;
47
47
  export declare const requiredCheckboxSchema: FormSchema;
48
+ export declare const nestedTitlesSchema: FormSchema;
49
+ export declare const titledRowLayoutSchema: FormSchema;
50
+ export declare const untitledRootSchema: FormSchema;
51
+ export declare const untitledRowSchema: FormSchema;
48
52
  //# sourceMappingURL=form.test-schemas.d.ts.map
@@ -72,6 +72,12 @@ export type ValidationError = {
72
72
  */
73
73
  [key: string]: string[] | ValidationError;
74
74
  };
75
+ /**
76
+ * The level of a heading, from `1` for an `h1` to `6` for an `h6`.
77
+ *
78
+ * @public
79
+ */
80
+ export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
75
81
  /**
76
82
  * @public
77
83
  */
@@ -6,8 +6,6 @@ import { FormSchema } from '../form.types';
6
6
  * @param extraProps - additional props to pass to the limel-help element
7
7
  */
8
8
  export declare function getHelpComponent(schema: FormSchema, extraProps?: Record<string, unknown>): React.ReactElement<{
9
- value: string;
10
- }, string | React.JSXElementConstructor<any>> | React.ReactElement<{
11
9
  openDirection?: import("../../..").OpenDirection;
12
10
  readMoreLink?: import("../../..").Link;
13
11
  trigger?: string;
@@ -1,7 +1,10 @@
1
1
  import React from 'react';
2
2
  import { RowProps } from '../templates/types';
3
+ import { HeadingLevelContext } from '../templates/heading-level';
3
4
  export declare class Row extends React.Component<RowProps> {
4
5
  props: RowProps;
6
+ static readonly contextType: React.Context<import("../form.types").HeadingLevel>;
7
+ context: React.ContextType<typeof HeadingLevelContext>;
5
8
  constructor(props: RowProps);
6
9
  render(): React.DetailedReactHTMLElement<{
7
10
  className: string;
@@ -1,13 +1,26 @@
1
1
  import React from 'react';
2
2
  import { JSONSchema7 } from 'json-schema';
3
3
  import { ErrorSchema } from '@rjsf/utils';
4
+ import { Help } from '../../help/help.types';
4
5
  /**
6
+ * Render the title of a field, with its description and help, as a
7
+ * heading.
5
8
  *
6
- * @param title
9
+ * @param title - the title of the field
10
+ * @param description - the description of the field, in markdown
11
+ * @param help - the help of the field, as in `lime.help` of the schema
7
12
  */
8
- export declare function renderTitle(title: string): React.DetailedReactHTMLElement<{
9
- className: string;
10
- }, HTMLElement>;
13
+ export declare function renderHeader(title: string, description?: string, help?: string | Partial<Help>): React.FunctionComponentElement<import("./heading-level").HeaderProps>;
14
+ /**
15
+ * Render a field with its header, followed by its content. The headings in
16
+ * the content are one level below the heading of the field.
17
+ *
18
+ * @param title - the title of the field
19
+ * @param description - the description of the field, in markdown
20
+ * @param help - the help of the field, as in `lime.help` of the schema
21
+ * @param content - the content of the field
22
+ */
23
+ export declare function renderSection(title: string, description: string | undefined, help: string | Partial<Help> | undefined, ...content: React.ReactNode[]): React.FunctionComponentElement<React.FragmentProps>;
11
24
  /**
12
25
  *
13
26
  * @param description
@@ -0,0 +1,49 @@
1
+ import React, { PropsWithChildren } from 'react';
2
+ import { Help } from '../../help/help.types';
3
+ import { HeadingLevel } from '../form.types';
4
+ /**
5
+ * @param level - any value
6
+ * @returns whether the value is a heading level, from `1` to `6`
7
+ */
8
+ export declare function isHeadingLevel(level: unknown): level is HeadingLevel;
9
+ /**
10
+ * The heading level that a title at the current depth in the form gets.
11
+ */
12
+ export declare const HeadingLevelContext: React.Context<HeadingLevel>;
13
+ /**
14
+ * @param level - a heading level
15
+ * @returns the level of the headings one step below, down to `h6`
16
+ */
17
+ export declare function nextHeadingLevel(level: HeadingLevel): HeadingLevel;
18
+ export interface HeaderProps {
19
+ title: string;
20
+ description?: string;
21
+ help?: string | Partial<Help>;
22
+ }
23
+ /**
24
+ * The title of a field, drawn with the heading level of its depth.
25
+ *
26
+ * @param props
27
+ * @param props.title - the title of the field
28
+ * @param props.description - the description of the field, in markdown
29
+ * @param props.help - the help of the field
30
+ */
31
+ export declare function Header({ title, description, help }: HeaderProps): React.ReactElement<{
32
+ heading: string;
33
+ headingLevel: HeadingLevel;
34
+ description: string;
35
+ help: string | Partial<Help>;
36
+ }, string | React.JSXElementConstructor<any>>;
37
+ export interface BelowHeadingProps {
38
+ hasHeading: boolean;
39
+ }
40
+ /**
41
+ * Gives the fields it wraps one heading level more than the level of the
42
+ * heading above them, if there is one.
43
+ *
44
+ * @param props
45
+ * @param props.hasHeading - whether the fields are below a heading
46
+ * @param props.children - the fields
47
+ */
48
+ export declare function BelowHeading({ hasHeading, children, }: PropsWithChildren<BelowHeadingProps>): React.FunctionComponentElement<React.ProviderProps<HeadingLevel>>;
49
+ //# sourceMappingURL=heading-level.d.ts.map
@@ -0,0 +1,47 @@
1
+ import { Help } from '../help/help.types';
2
+ import { HeadingLevel } from '../form/form.types';
3
+ /**
4
+ * This is an internal and private component that `limel-form` uses to
5
+ * draw the heading of a section, a list or a custom component, together
6
+ * with its description and its help.
7
+ *
8
+ * Consumers of `limel-form` do not use it. They set the `title`,
9
+ * the `description` and `lime.help` in the schema, and the form draws
10
+ * this component with the right heading level.
11
+ *
12
+ * :::note
13
+ * The component has `shadow: false`, so that the heading, the description
14
+ * and the help are part of the DOM of `limel-form`. This way, the styles
15
+ * of the form that depend on how deep a field is reach them directly.
16
+ * :::
17
+ *
18
+ * @exampleComponent limel-example-form-header-basic
19
+ * @exampleComponent limel-example-form-header-heading-level
20
+ * @exampleComponent limel-example-form-header-help
21
+ * @private
22
+ */
23
+ export declare class FormHeader {
24
+ /**
25
+ * The title of the section, the list or the custom component.
26
+ */
27
+ heading?: string;
28
+ /**
29
+ * Which of the heading elements, from `h1` to `h6`, to draw
30
+ * the `heading` with.
31
+ */
32
+ headingLevel: HeadingLevel;
33
+ /**
34
+ * Text, in markdown, that describes what the `heading` is about.
35
+ */
36
+ description?: string;
37
+ /**
38
+ * Help to show beside the `heading`. A string is used as the `value`
39
+ * of the help.
40
+ */
41
+ help?: string | Partial<Help>;
42
+ render(): any;
43
+ private renderHeading;
44
+ private renderHelp;
45
+ private renderDescription;
46
+ }
47
+ //# sourceMappingURL=form-header.d.ts.map
@@ -0,0 +1,7 @@
1
+ import { Help } from '../help/help.types';
2
+ /**
3
+ * @param help - the help of a field, from its schema
4
+ * @returns the properties of `limel-help` that the help sets, and no others
5
+ */
6
+ export declare function getHelpProps(help: string | Partial<Help>): Partial<Help>;
7
+ //# sourceMappingURL=help-props.d.ts.map
@@ -53,6 +53,25 @@ export declare class Popover {
53
53
  * Decides the popover's location in relation to its trigger
54
54
  */
55
55
  openDirection: OpenDirection;
56
+ /**
57
+ * Says what kind of popup the trigger opens, so that a screen reader can
58
+ * announce it. Use the one that fits what you put in the popover: `dialog`
59
+ * for a form, a message or other content, and `menu`, `listbox`, `tree`
60
+ * or `grid` when the content is one of those widgets.
61
+ *
62
+ * A popup with one of these roles needs a name, so the role is used only
63
+ * together with `accessibleLabel`. Without one, the popover warns in the
64
+ * console.
65
+ *
66
+ * When the role is not set or not used, the trigger only says that it
67
+ * opens a popup.
68
+ */
69
+ popupRole?: 'dialog' | 'menu' | 'listbox' | 'tree' | 'grid';
70
+ /**
71
+ * The name of the popup, which a screen reader announces when the focus
72
+ * moves into it. Used together with `popupRole`.
73
+ */
74
+ accessibleLabel?: string;
56
75
  /**
57
76
  * Emits an event when the component is closing
58
77
  */
@@ -61,10 +80,12 @@ export declare class Popover {
61
80
  private portalId;
62
81
  private triggerSlot;
63
82
  private shouldRestoreFocusOnClose;
83
+ private hasWarnedAboutMissingName;
64
84
  constructor();
65
85
  protected watchOpen(): void;
66
86
  connectedCallback(): void;
67
87
  disconnectedCallback(): void;
88
+ componentWillRender(): void;
68
89
  componentDidRender(): void;
69
90
  private setupGlobalHandlers;
70
91
  /**
@@ -81,5 +102,8 @@ export declare class Popover {
81
102
  private readonly setTriggerRef;
82
103
  private readonly focusTrigger;
83
104
  private setTriggerAttributes;
105
+ private getNamedPopupRole;
106
+ private warnIfRoleHasNoName;
107
+ private setControlledPopup;
84
108
  }
85
109
  //# sourceMappingURL=popover.d.ts.map
@@ -7,6 +7,14 @@ export declare class PopoverSurface {
7
7
  * Content to render
8
8
  */
9
9
  contentCollection: HTMLCollection;
10
+ /**
11
+ * The role of the surface, for assistive technology
12
+ */
13
+ popupRole?: string;
14
+ /**
15
+ * The name of the surface, for assistive technology
16
+ */
17
+ accessibleLabel?: string;
10
18
  private host;
11
19
  componentDidLoad(): void;
12
20
  render(): any;