@webtides/element-library 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (398) hide show
  1. package/CHANGELOG.md +384 -3
  2. package/README.md +61 -41
  3. package/all.js +28 -0
  4. package/catalog.d.ts +14 -0
  5. package/catalog.js +55 -27
  6. package/custom-elements.json +16604 -3420
  7. package/package.json +35 -28
  8. package/src/components/accordion/accordion.changelog.md +10 -0
  9. package/src/components/accordion/accordion.js +10 -7
  10. package/src/components/accordion/accordion.readme.md +2 -0
  11. package/src/components/accordion/accordion.style.js +8 -0
  12. package/src/components/amount-field/amount-field.changelog.md +23 -3
  13. package/src/components/amount-field/amount-field.js +53 -26
  14. package/src/components/amount-field/amount-field.readme.md +82 -20
  15. package/src/components/amount-field/amount-field.style.js +111 -47
  16. package/src/components/avatar/avatar.changelog.md +23 -0
  17. package/src/components/avatar/avatar.define.js +3 -0
  18. package/src/components/avatar/avatar.js +115 -0
  19. package/src/components/avatar/avatar.readme.md +132 -0
  20. package/src/components/avatar/avatar.style.js +67 -0
  21. package/src/components/badge/badge.changelog.md +23 -0
  22. package/src/components/badge/badge.define.js +3 -0
  23. package/src/components/badge/badge.js +59 -0
  24. package/src/components/badge/badge.readme.md +109 -0
  25. package/src/components/badge/badge.style.js +63 -0
  26. package/src/components/breadcrumb/breadcrumb.changelog.md +22 -0
  27. package/src/components/breadcrumb/breadcrumb.define.js +3 -0
  28. package/src/components/breadcrumb/breadcrumb.js +47 -0
  29. package/src/components/breadcrumb/breadcrumb.readme.md +108 -0
  30. package/src/components/breadcrumb/breadcrumb.style.js +20 -0
  31. package/src/components/breadcrumb-item/breadcrumb-item.changelog.md +23 -0
  32. package/src/components/breadcrumb-item/breadcrumb-item.define.js +3 -0
  33. package/src/components/breadcrumb-item/breadcrumb-item.js +82 -0
  34. package/src/components/breadcrumb-item/breadcrumb-item.readme.md +106 -0
  35. package/src/components/breadcrumb-item/breadcrumb-item.style.js +92 -0
  36. package/src/components/button/button.changelog.md +34 -1
  37. package/src/components/button/button.js +285 -29
  38. package/src/components/button/button.readme.md +130 -10
  39. package/src/components/button/button.style.js +99 -120
  40. package/src/components/button-group/button-group.changelog.md +24 -0
  41. package/src/components/button-group/button-group.define.js +3 -0
  42. package/src/components/button-group/button-group.js +53 -0
  43. package/src/components/button-group/button-group.readme.md +114 -0
  44. package/src/components/button-group/button-group.style.js +41 -0
  45. package/src/components/card/card.changelog.md +23 -0
  46. package/src/components/card/card.define.js +3 -0
  47. package/src/components/card/card.js +73 -0
  48. package/src/components/card/card.readme.md +136 -0
  49. package/src/components/card/card.style.js +99 -0
  50. package/src/components/carousel/carousel.changelog.md +20 -0
  51. package/src/components/carousel/carousel.js +89 -40
  52. package/src/components/carousel/carousel.readme.md +39 -6
  53. package/src/components/carousel/carousel.style.js +21 -77
  54. package/src/components/carousel/glide/components/ShadowAnchors.js +3 -1
  55. package/src/components/carousel/glide/components/ShadowClones.js +21 -24
  56. package/src/components/carousel/glide/components/ShadowGaps.js +2 -2
  57. package/src/components/carousel/glide/components/ShadowHtml.js +22 -3
  58. package/src/components/checkbox-field/checkbox-field.changelog.md +19 -0
  59. package/src/components/checkbox-field/checkbox-field.js +25 -10
  60. package/src/components/checkbox-field/checkbox-field.readme.md +17 -4
  61. package/src/components/checkbox-field/checkbox-field.style.js +15 -3
  62. package/src/components/checkbox-group-field/checkbox-group-field.changelog.md +25 -0
  63. package/src/components/checkbox-group-field/checkbox-group-field.define.js +3 -0
  64. package/src/components/checkbox-group-field/checkbox-group-field.js +217 -0
  65. package/src/components/checkbox-group-field/checkbox-group-field.readme.md +95 -0
  66. package/src/components/checkbox-group-field/checkbox-group-field.style.js +62 -0
  67. package/src/components/color-field/color-field.changelog.md +24 -0
  68. package/src/components/color-field/color-field.define.js +3 -0
  69. package/src/components/color-field/color-field.js +184 -0
  70. package/src/components/color-field/color-field.readme.md +95 -0
  71. package/src/components/color-field/color-field.style.js +39 -0
  72. package/src/components/combobox-field/combobox-field.changelog.md +23 -0
  73. package/src/components/combobox-field/combobox-field.define.js +3 -0
  74. package/src/components/combobox-field/combobox-field.js +97 -0
  75. package/src/components/combobox-field/combobox-field.readme.md +93 -0
  76. package/src/components/combobox-field/combobox-field.style.js +56 -0
  77. package/src/components/copy-button/copy-button.changelog.md +24 -0
  78. package/src/components/copy-button/copy-button.define.js +3 -0
  79. package/src/components/copy-button/copy-button.events.js +4 -0
  80. package/src/components/copy-button/copy-button.js +237 -0
  81. package/src/components/copy-button/copy-button.readme.md +134 -0
  82. package/src/components/copy-button/copy-button.style.js +109 -0
  83. package/src/components/date-field/date-field.changelog.md +24 -0
  84. package/src/components/date-field/date-field.define.js +3 -0
  85. package/src/components/date-field/date-field.js +119 -0
  86. package/src/components/date-field/date-field.readme.md +110 -0
  87. package/src/components/date-field/date-field.style.js +53 -0
  88. package/src/components/dialog/dialog.changelog.md +16 -1
  89. package/src/components/dialog/dialog.js +252 -57
  90. package/src/components/dialog/dialog.readme.md +36 -4
  91. package/src/components/dialog/dialog.style.js +9 -109
  92. package/src/components/divider/divider.changelog.md +23 -0
  93. package/src/components/divider/divider.define.js +3 -0
  94. package/src/components/divider/divider.js +48 -0
  95. package/src/components/divider/divider.readme.md +101 -0
  96. package/src/components/divider/divider.style.js +50 -0
  97. package/src/components/drawer/drawer.changelog.md +25 -0
  98. package/src/components/drawer/drawer.define.js +3 -0
  99. package/src/components/drawer/drawer.events.js +8 -0
  100. package/src/components/drawer/drawer.js +80 -0
  101. package/src/components/drawer/drawer.readme.md +194 -0
  102. package/src/components/drawer/drawer.style.js +83 -0
  103. package/src/components/dropdown/dropdown.js +9 -7
  104. package/src/components/empty-state/empty-state.changelog.md +22 -0
  105. package/src/components/empty-state/empty-state.define.js +3 -0
  106. package/src/components/empty-state/empty-state.js +55 -0
  107. package/src/components/empty-state/empty-state.readme.md +114 -0
  108. package/src/components/empty-state/empty-state.style.js +60 -0
  109. package/src/components/file-field/file-field.changelog.md +24 -0
  110. package/src/components/file-field/file-field.define.js +3 -0
  111. package/src/components/file-field/file-field.js +205 -0
  112. package/src/components/file-field/file-field.readme.md +103 -0
  113. package/src/components/file-field/file-field.style.js +28 -0
  114. package/src/components/form-field/form-field.changelog.md +25 -0
  115. package/src/components/form-field/form-field.js +212 -15
  116. package/src/components/form-field/form-field.readme.md +82 -18
  117. package/src/components/form-field/form-field.style.js +6 -24
  118. package/src/components/input-field/input-field.changelog.md +24 -0
  119. package/src/components/input-field/input-field.js +82 -6
  120. package/src/components/input-field/input-field.readme.md +34 -5
  121. package/src/components/input-field/input-field.style.js +32 -13
  122. package/src/components/notification/notification.changelog.md +21 -1
  123. package/src/components/notification/notification.js +80 -74
  124. package/src/components/notification/notification.readme.md +54 -13
  125. package/src/components/notification/notification.style.js +37 -22
  126. package/src/components/otp-field/otp-field.changelog.md +23 -0
  127. package/src/components/otp-field/otp-field.define.js +3 -0
  128. package/src/components/otp-field/otp-field.events.js +3 -0
  129. package/src/components/otp-field/otp-field.js +172 -0
  130. package/src/components/otp-field/otp-field.readme.md +111 -0
  131. package/src/components/otp-field/otp-field.style.js +53 -0
  132. package/src/components/pagination/pagination.changelog.md +30 -0
  133. package/src/components/pagination/pagination.define.js +3 -0
  134. package/src/components/pagination/pagination.events.js +3 -0
  135. package/src/components/pagination/pagination.js +282 -0
  136. package/src/components/pagination/pagination.readme.md +167 -0
  137. package/src/components/pagination/pagination.style.js +162 -0
  138. package/src/components/password-field/password-field.changelog.md +24 -0
  139. package/src/components/password-field/password-field.js +7 -1
  140. package/src/components/password-field/password-field.readme.md +15 -6
  141. package/src/components/password-field/password-field.style.js +36 -13
  142. package/src/components/popover/popover.changelog.md +24 -0
  143. package/src/components/popover/popover.define.js +3 -0
  144. package/src/components/popover/popover.events.js +4 -0
  145. package/src/components/popover/popover.js +255 -0
  146. package/src/components/popover/popover.readme.md +132 -0
  147. package/src/components/popover/popover.style.js +41 -0
  148. package/src/components/progress-bar/progress-bar.changelog.md +23 -0
  149. package/src/components/progress-bar/progress-bar.define.js +3 -0
  150. package/src/components/progress-bar/progress-bar.js +80 -0
  151. package/src/components/progress-bar/progress-bar.readme.md +110 -0
  152. package/src/components/progress-bar/progress-bar.style.js +93 -0
  153. package/src/components/progress-ring/progress-ring.changelog.md +23 -0
  154. package/src/components/progress-ring/progress-ring.define.js +3 -0
  155. package/src/components/progress-ring/progress-ring.js +83 -0
  156. package/src/components/progress-ring/progress-ring.readme.md +115 -0
  157. package/src/components/progress-ring/progress-ring.style.js +85 -0
  158. package/src/components/radio-field/radio-field.changelog.md +16 -0
  159. package/src/components/radio-field/radio-field.js +34 -11
  160. package/src/components/radio-field/radio-field.readme.md +13 -8
  161. package/src/components/radio-field/radio-field.style.js +17 -65
  162. package/src/components/range-field/range-field.changelog.md +24 -0
  163. package/src/components/range-field/range-field.define.js +3 -0
  164. package/src/components/range-field/range-field.js +167 -0
  165. package/src/components/range-field/range-field.readme.md +87 -0
  166. package/src/components/range-field/range-field.style.js +41 -0
  167. package/src/components/rating-field/rating-field.changelog.md +24 -0
  168. package/src/components/rating-field/rating-field.define.js +3 -0
  169. package/src/components/rating-field/rating-field.js +195 -0
  170. package/src/components/rating-field/rating-field.readme.md +82 -0
  171. package/src/components/rating-field/rating-field.style.js +79 -0
  172. package/src/components/select-field/select-field.changelog.md +17 -0
  173. package/src/components/select-field/select-field.js +100 -8
  174. package/src/components/select-field/select-field.readme.md +32 -6
  175. package/src/components/select-field/select-field.style.js +19 -9
  176. package/src/components/skeleton/skeleton.changelog.md +22 -0
  177. package/src/components/skeleton/skeleton.define.js +3 -0
  178. package/src/components/skeleton/skeleton.js +49 -0
  179. package/src/components/skeleton/skeleton.readme.md +115 -0
  180. package/src/components/skeleton/skeleton.style.js +79 -0
  181. package/src/components/slider/slider.changelog.md +15 -0
  182. package/src/components/slider/slider.js +37 -5
  183. package/src/components/slider/slider.readme.md +28 -6
  184. package/src/components/slider/slider.style.js +7 -71
  185. package/src/components/spinner/spinner.changelog.md +22 -0
  186. package/src/components/spinner/spinner.define.js +3 -0
  187. package/src/components/spinner/spinner.js +48 -0
  188. package/src/components/spinner/spinner.readme.md +98 -0
  189. package/src/components/spinner/spinner.style.js +44 -0
  190. package/src/components/switch-field/switch-field.changelog.md +16 -0
  191. package/src/components/switch-field/switch-field.js +17 -9
  192. package/src/components/switch-field/switch-field.readme.md +11 -4
  193. package/src/components/switch-field/switch-field.style.js +13 -13
  194. package/src/components/tab-group/tab-group.changelog.md +19 -0
  195. package/src/components/tab-group/tab-group.js +122 -10
  196. package/src/components/tab-group/tab-group.readme.md +25 -4
  197. package/src/components/tab-link/tab-link.changelog.md +16 -0
  198. package/src/components/tab-link/tab-link.js +51 -8
  199. package/src/components/tab-link/tab-link.readme.md +14 -8
  200. package/src/components/tab-link/tab-link.style.js +13 -0
  201. package/src/components/tab-panel/tab-panel.changelog.md +8 -2
  202. package/src/components/tab-panel/tab-panel.js +7 -3
  203. package/src/components/tab-panel/tab-panel.readme.md +7 -5
  204. package/src/components/tag/tag.changelog.md +24 -0
  205. package/src/components/tag/tag.define.js +3 -0
  206. package/src/components/tag/tag.events.js +3 -0
  207. package/src/components/tag/tag.js +116 -0
  208. package/src/components/tag/tag.readme.md +119 -0
  209. package/src/components/tag/tag.style.js +101 -0
  210. package/src/components/tag-field/tag-field.changelog.md +25 -0
  211. package/src/components/tag-field/tag-field.define.js +3 -0
  212. package/src/components/tag-field/tag-field.js +359 -0
  213. package/src/components/tag-field/tag-field.readme.md +113 -0
  214. package/src/components/tag-field/tag-field.style.js +62 -0
  215. package/src/components/textarea-field/textarea-field.changelog.md +28 -4
  216. package/src/components/textarea-field/textarea-field.js +68 -14
  217. package/src/components/textarea-field/textarea-field.readme.md +45 -9
  218. package/src/components/textarea-field/textarea-field.style.js +45 -2
  219. package/src/components/toast/toast.changelog.md +24 -0
  220. package/src/components/toast/toast.define.js +3 -0
  221. package/src/components/toast/toast.js +193 -0
  222. package/src/components/toast/toast.readme.md +189 -0
  223. package/src/components/toast/toast.style.js +74 -0
  224. package/src/components/tooltip/tooltip.changelog.md +24 -0
  225. package/src/components/tooltip/tooltip.define.js +3 -0
  226. package/src/components/tooltip/tooltip.events.js +4 -0
  227. package/src/components/tooltip/tooltip.js +377 -0
  228. package/src/components/tooltip/tooltip.readme.md +172 -0
  229. package/src/components/tooltip/tooltip.style.js +107 -0
  230. package/src/components/transition-classes/transition-classes.js +6 -6
  231. package/src/styles/appearance.style.js +42 -0
  232. package/src/styles/arrow.style.js +65 -0
  233. package/src/styles/choice-group.style.js +94 -0
  234. package/src/styles/form-control.style.js +79 -0
  235. package/src/styles/host.style.js +55 -0
  236. package/src/styles/layers.css +31 -0
  237. package/src/styles/modal.style.js +146 -0
  238. package/src/styles/native.css +275 -0
  239. package/src/styles/size.style.js +48 -0
  240. package/src/styles/slide-controls.style.js +225 -0
  241. package/src/styles/utilities.css +30 -0
  242. package/src/styles/variants.style.js +78 -0
  243. package/src/themes/default.css +86 -142
  244. package/src/themes/high-contrast.css +72 -129
  245. package/src/themes/sketchy.css +95 -175
  246. package/src/utils/floating.js +71 -0
  247. package/src/utils/focus.js +18 -0
  248. package/src/utils/progress.js +25 -0
  249. package/src/utils/slots.js +21 -0
  250. package/src/utils/text-entry-attributes.js +51 -0
  251. package/types/all.d.ts +54 -1
  252. package/types/index.d.ts +1 -0
  253. package/types/src/components/accordion/accordion.d.ts +6 -4
  254. package/types/src/components/accordion/accordion.events.d.ts +3 -3
  255. package/types/src/components/accordion-group/accordion-group.d.ts +4 -3
  256. package/types/src/components/amount-field/amount-field.d.ts +30 -16
  257. package/types/src/components/avatar/avatar.d.ts +57 -0
  258. package/types/src/components/avatar/avatar.define.d.ts +1 -0
  259. package/types/src/components/avatar/avatar.style.d.ts +2 -0
  260. package/types/src/components/badge/badge.d.ts +32 -0
  261. package/types/src/components/badge/badge.define.d.ts +1 -0
  262. package/types/src/components/badge/badge.style.d.ts +2 -0
  263. package/types/src/components/breadcrumb/breadcrumb.d.ts +27 -0
  264. package/types/src/components/breadcrumb/breadcrumb.define.d.ts +1 -0
  265. package/types/src/components/breadcrumb/breadcrumb.style.d.ts +2 -0
  266. package/types/src/components/breadcrumb-item/breadcrumb-item.d.ts +38 -0
  267. package/types/src/components/breadcrumb-item/breadcrumb-item.define.d.ts +1 -0
  268. package/types/src/components/breadcrumb-item/breadcrumb-item.style.d.ts +2 -0
  269. package/types/src/components/button/button.d.ts +129 -14
  270. package/types/src/components/button-group/button-group.d.ts +28 -0
  271. package/types/src/components/button-group/button-group.define.d.ts +1 -0
  272. package/types/src/components/button-group/button-group.style.d.ts +2 -0
  273. package/types/src/components/card/card.d.ts +40 -0
  274. package/types/src/components/card/card.define.d.ts +1 -0
  275. package/types/src/components/card/card.style.d.ts +2 -0
  276. package/types/src/components/carousel/carousel.d.ts +22 -8
  277. package/types/src/components/carousel/carousel.events.d.ts +3 -3
  278. package/types/src/components/carousel/glide/components/ShadowAnchors.d.ts +1 -1
  279. package/types/src/components/carousel/glide/components/ShadowClones.d.ts +8 -1
  280. package/types/src/components/carousel/glide/components/ShadowGaps.d.ts +1 -1
  281. package/types/src/components/carousel/glide/components/ShadowHtml.d.ts +1 -1
  282. package/types/src/components/carousel/glide/components/glide-html.d.ts +1 -1
  283. package/types/src/components/checkbox-field/checkbox-field.d.ts +22 -15
  284. package/types/src/components/checkbox-group-field/checkbox-group-field.d.ts +100 -0
  285. package/types/src/components/checkbox-group-field/checkbox-group-field.define.d.ts +1 -0
  286. package/types/src/components/checkbox-group-field/checkbox-group-field.style.d.ts +2 -0
  287. package/types/src/components/color-field/color-field.d.ts +102 -0
  288. package/types/src/components/color-field/color-field.define.d.ts +1 -0
  289. package/types/src/components/color-field/color-field.style.d.ts +2 -0
  290. package/types/src/components/combobox-field/combobox-field.d.ts +84 -0
  291. package/types/src/components/combobox-field/combobox-field.define.d.ts +1 -0
  292. package/types/src/components/combobox-field/combobox-field.style.d.ts +2 -0
  293. package/types/src/components/copy-button/copy-button.d.ts +93 -0
  294. package/types/src/components/copy-button/copy-button.define.d.ts +1 -0
  295. package/types/src/components/copy-button/copy-button.events.d.ts +5 -0
  296. package/types/src/components/copy-button/copy-button.style.d.ts +2 -0
  297. package/types/src/components/date-field/date-field.d.ts +102 -0
  298. package/types/src/components/date-field/date-field.define.d.ts +1 -0
  299. package/types/src/components/date-field/date-field.style.d.ts +2 -0
  300. package/types/src/components/dialog/dialog.d.ts +101 -19
  301. package/types/src/components/dialog/dialog.events.d.ts +8 -8
  302. package/types/src/components/divider/divider.d.ts +27 -0
  303. package/types/src/components/divider/divider.define.d.ts +1 -0
  304. package/types/src/components/divider/divider.style.d.ts +2 -0
  305. package/types/src/components/drawer/drawer.d.ts +70 -0
  306. package/types/src/components/drawer/drawer.define.d.ts +1 -0
  307. package/types/src/components/drawer/drawer.events.d.ts +9 -0
  308. package/types/src/components/drawer/drawer.style.d.ts +2 -0
  309. package/types/src/components/dropdown/dropdown.d.ts +5 -3
  310. package/types/src/components/empty-state/empty-state.d.ts +29 -0
  311. package/types/src/components/empty-state/empty-state.define.d.ts +1 -0
  312. package/types/src/components/empty-state/empty-state.style.d.ts +2 -0
  313. package/types/src/components/file-field/file-field.d.ts +115 -0
  314. package/types/src/components/file-field/file-field.define.d.ts +1 -0
  315. package/types/src/components/file-field/file-field.style.d.ts +2 -0
  316. package/types/src/components/form-field/form-field.d.ts +129 -14
  317. package/types/src/components/form-field/form-field.events.d.ts +4 -4
  318. package/types/src/components/input-field/input-field.d.ts +52 -5
  319. package/types/src/components/lazy-src/lazy-src.d.ts +7 -5
  320. package/types/src/components/lazy-src/lazy-src.events.d.ts +5 -5
  321. package/types/src/components/notification/notification.d.ts +18 -18
  322. package/types/src/components/notification/notification.events.d.ts +6 -6
  323. package/types/src/components/otp-field/otp-field.d.ts +130 -0
  324. package/types/src/components/otp-field/otp-field.define.d.ts +1 -0
  325. package/types/src/components/otp-field/otp-field.events.d.ts +4 -0
  326. package/types/src/components/otp-field/otp-field.style.d.ts +2 -0
  327. package/types/src/components/pagination/pagination.d.ts +117 -0
  328. package/types/src/components/pagination/pagination.define.d.ts +1 -0
  329. package/types/src/components/pagination/pagination.events.d.ts +4 -0
  330. package/types/src/components/pagination/pagination.style.d.ts +2 -0
  331. package/types/src/components/password-field/password-field.d.ts +29 -12
  332. package/types/src/components/popover/popover.d.ts +123 -0
  333. package/types/src/components/popover/popover.define.d.ts +1 -0
  334. package/types/src/components/popover/popover.events.d.ts +5 -0
  335. package/types/src/components/popover/popover.style.d.ts +2 -0
  336. package/types/src/components/progress-bar/progress-bar.d.ts +35 -0
  337. package/types/src/components/progress-bar/progress-bar.define.d.ts +1 -0
  338. package/types/src/components/progress-bar/progress-bar.style.d.ts +2 -0
  339. package/types/src/components/progress-ring/progress-ring.d.ts +40 -0
  340. package/types/src/components/progress-ring/progress-ring.define.d.ts +1 -0
  341. package/types/src/components/progress-ring/progress-ring.style.d.ts +2 -0
  342. package/types/src/components/radio-field/radio-field.d.ts +21 -9
  343. package/types/src/components/range-field/range-field.d.ts +94 -0
  344. package/types/src/components/range-field/range-field.define.d.ts +1 -0
  345. package/types/src/components/range-field/range-field.style.d.ts +2 -0
  346. package/types/src/components/rating-field/rating-field.d.ts +96 -0
  347. package/types/src/components/rating-field/rating-field.define.d.ts +1 -0
  348. package/types/src/components/rating-field/rating-field.style.d.ts +2 -0
  349. package/types/src/components/scroll-to/scroll-to.d.ts +3 -2
  350. package/types/src/components/scroll-to-top/scroll-to-top.d.ts +4 -2
  351. package/types/src/components/select-field/select-field.d.ts +55 -5
  352. package/types/src/components/skeleton/skeleton.d.ts +29 -0
  353. package/types/src/components/skeleton/skeleton.define.d.ts +1 -0
  354. package/types/src/components/skeleton/skeleton.style.d.ts +2 -0
  355. package/types/src/components/slider/slider.d.ts +14 -8
  356. package/types/src/components/slider/slider.events.d.ts +4 -4
  357. package/types/src/components/spinner/spinner.d.ts +28 -0
  358. package/types/src/components/spinner/spinner.define.d.ts +1 -0
  359. package/types/src/components/spinner/spinner.style.d.ts +2 -0
  360. package/types/src/components/sticky/sticky.d.ts +4 -2
  361. package/types/src/components/svg-use/svg-use.d.ts +4 -2
  362. package/types/src/components/switch-field/switch-field.d.ts +17 -15
  363. package/types/src/components/tab-group/tab-group.d.ts +44 -3
  364. package/types/src/components/tab-link/tab-link.d.ts +33 -10
  365. package/types/src/components/tab-panel/tab-panel.d.ts +8 -5
  366. package/types/src/components/tag/tag.d.ts +53 -0
  367. package/types/src/components/tag/tag.define.d.ts +1 -0
  368. package/types/src/components/tag/tag.events.d.ts +4 -0
  369. package/types/src/components/tag/tag.style.d.ts +2 -0
  370. package/types/src/components/tag-field/tag-field.d.ts +178 -0
  371. package/types/src/components/tag-field/tag-field.define.d.ts +1 -0
  372. package/types/src/components/tag-field/tag-field.style.d.ts +2 -0
  373. package/types/src/components/textarea-field/textarea-field.d.ts +44 -4
  374. package/types/src/components/toast/toast.d.ts +110 -0
  375. package/types/src/components/toast/toast.define.d.ts +1 -0
  376. package/types/src/components/toast/toast.style.d.ts +2 -0
  377. package/types/src/components/tooltip/tooltip.d.ts +161 -0
  378. package/types/src/components/tooltip/tooltip.define.d.ts +1 -0
  379. package/types/src/components/tooltip/tooltip.events.d.ts +5 -0
  380. package/types/src/components/tooltip/tooltip.style.d.ts +2 -0
  381. package/types/src/components/transition-classes/transition-classes.d.ts +9 -8
  382. package/types/src/styles/appearance.style.d.ts +18 -0
  383. package/types/src/styles/arrow.style.d.ts +15 -0
  384. package/types/src/styles/choice-group.style.d.ts +23 -0
  385. package/types/src/styles/form-control.style.d.ts +26 -0
  386. package/types/src/styles/host.style.d.ts +24 -0
  387. package/types/src/styles/modal.style.d.ts +20 -0
  388. package/types/src/styles/size.style.d.ts +20 -0
  389. package/types/src/styles/slide-controls.style.d.ts +20 -0
  390. package/types/src/styles/variants.style.d.ts +32 -0
  391. package/types/src/utils/body-scroll.d.ts +12 -2
  392. package/types/src/utils/floating.d.ts +36 -0
  393. package/types/src/utils/focus.d.ts +16 -0
  394. package/types/src/utils/progress.d.ts +19 -0
  395. package/types/src/utils/slots.d.ts +19 -0
  396. package/types/src/utils/text-entry-attributes.d.ts +18 -0
  397. package/types/src/utils/transitions.d.ts +2 -2
  398. package/web-types.json +6590 -1584
@@ -0,0 +1,117 @@
1
+ import { TemplateElement } from '@webtides/element-js';
2
+ import Events from './pagination.events.js';
3
+ /**
4
+ * A pagination: the way through a list that is split into pages. It shows the current page, the
5
+ * pages around it, the first and the last, and a button for the page before and the page after.
6
+ * The pages in between are left out, and the row keeps its length while the current page moves.
7
+ *
8
+ * The pagination does not load anything. A button sets `page` and fires `pagination-change`, and
9
+ * the page shows the entries that belong to it.
10
+ *
11
+ * @element el-pagination
12
+ *
13
+ * @fires {CustomEvent<{ page: number }>} pagination-change - Fired when a button has changed the
14
+ * page. `detail.page` is the new page. Not fired when `page` is set from a script.
15
+ *
16
+ * @slot previous-icon - The icon of the button for the page before. Unset, an arrow head.
17
+ * @slot next-icon - The icon of the button for the page after. Unset, an arrow head.
18
+ *
19
+ * @csspart base - The `nav` landmark.
20
+ * @csspart list - The row of the buttons.
21
+ * @csspart button - Every button: the pages, the page before and the page after.
22
+ * @csspart page - The button of a page.
23
+ * @csspart current - The button of the current page.
24
+ * @csspart previous - The button for the page before.
25
+ * @csspart next - The button for the page after.
26
+ * @csspart ellipsis - The mark in the place of pages that are left out.
27
+ *
28
+ * @property {number} page - The current page, counted from 1. A page that does not exist is shown
29
+ * as the nearest one that does. Default `1`. Reflected to the `page` attribute.
30
+ * @property {number} total - The number of entries in the whole list. Default `0`.
31
+ * @property {number} perPage - The number of entries on one page. Default `10`.
32
+ * @property {number} siblings - How many pages are shown on each side of the current page.
33
+ * Default `1`.
34
+ * @property {number} boundaries - How many pages are shown at the start and at the end of the
35
+ * row. Default `1`.
36
+ * @property {'small'|'medium'|'large'} size - The size of the buttons. Default `'medium'`.
37
+ * Reflected to the `size` attribute.
38
+ * @property {string} label - The name of the landmark. Two paginations on a page need two names.
39
+ * Default `'Pagination'`.
40
+ * @property {string} pageLabel - The word the button of a page is named with, in front of its
41
+ * number: "Page 3". Default `'Page'`.
42
+ * @property {string} previousLabel - The name of the button for the page before. Default
43
+ * `'Previous page'`.
44
+ * @property {string} nextLabel - The name of the button for the page after. Default
45
+ * `'Next page'`.
46
+ */
47
+ export default class Pagination extends TemplateElement {
48
+ _focused: HTMLButtonElement;
49
+ page: number;
50
+ constructor();
51
+ properties(): {
52
+ page: number;
53
+ total: number;
54
+ perPage: number;
55
+ siblings: number;
56
+ boundaries: number;
57
+ size: string;
58
+ label: string;
59
+ pageLabel: string;
60
+ previousLabel: string;
61
+ nextLabel: string;
62
+ };
63
+ /**
64
+ * The number of pages: `total` divided by `perPage`, rounded up. A list without entries has one
65
+ * page, an empty one. Read-only.
66
+ * @returns {number}
67
+ */
68
+ get pages(): number;
69
+ events(): {
70
+ '[data-page]': {
71
+ click: (event: any) => void;
72
+ };
73
+ '[data-step]': {
74
+ click: (event: any) => void;
75
+ };
76
+ };
77
+ afterUpdate(): void;
78
+ /**
79
+ * The page that is shown as the current one: `page`, or the nearest page that exists.
80
+ * @private
81
+ * @returns {number}
82
+ */
83
+ private _currentPage;
84
+ /**
85
+ * Makes another page the current one, for a button.
86
+ * @private
87
+ * @param {number} page
88
+ * @param {HTMLButtonElement} button - The button that asked for it.
89
+ */
90
+ private _goTo;
91
+ /**
92
+ * Keeps the focus where the user expects it after a button has changed the page. The buttons
93
+ * of the pages are rendered anew by their place in the row: the one that was pressed can show
94
+ * another page afterwards, or can be gone for an ellipsis. So the focus goes to the button of
95
+ * the current page. It stays on the button for the page before or after, which can be pressed
96
+ * again, unless that one has reached the end and is disabled now.
97
+ * @private
98
+ */
99
+ private _restoreFocus;
100
+ /**
101
+ * The row of the pages: the numbers of the pages that are shown, and `null` in the place of
102
+ * pages that are left out.
103
+ *
104
+ * The row has a fixed number of places: the boundaries at both ends, the current page with its
105
+ * siblings in the middle, and one place between each end and the middle. That place holds an
106
+ * ellipsis, or the page itself when only one page is missing there. Near an end the middle
107
+ * does not shrink but stops, so the row is as long on the first page as on any other.
108
+ * @private
109
+ * @returns {Array<number | null>}
110
+ */
111
+ private _items;
112
+ /** @private */
113
+ private _pageTemplate;
114
+ template(): any;
115
+ }
116
+ export declare function define(): void;
117
+ export { Events };
@@ -0,0 +1,4 @@
1
+ declare const _default: {
2
+ CHANGE: string;
3
+ };
4
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;
@@ -1,4 +1,4 @@
1
- export function define(): void;
1
+ import InputField from '../input-field/input-field.js';
2
2
  /**
3
3
  * A password input with an optional show/hide reveal toggle. Extends `InputField` (and therefore
4
4
  * `FormField`), inheriting the label / help / error / validation surface; it pins the input `type`
@@ -12,14 +12,16 @@ export function define(): void;
12
12
  * @property {boolean} passwordToggle - Whether to render the show/hide reveal button. Default `true`.
13
13
  * @property {boolean} passwordVisible - Whether the value is currently revealed as plain text.
14
14
  * Default `false`.
15
+ * @property {string} showLabel - Accessible label of the reveal button while the value is masked.
16
+ * Default `'Show password'`.
17
+ * @property {string} hideLabel - Accessible label of the reveal button while the value is revealed.
18
+ * Default `'Hide password'`.
15
19
  */
16
20
  export default class PasswordField extends InputField {
21
+ passwordVisible: any;
22
+ type: string;
23
+ constructor(options: any);
17
24
  properties(): {
18
- type: string;
19
- passwordToggle: boolean;
20
- passwordVisible: boolean;
21
- placeholder: string;
22
- pattern: boolean;
23
25
  name: string;
24
26
  value: any;
25
27
  required: boolean;
@@ -30,23 +32,33 @@ export default class PasswordField extends InputField {
30
32
  helpMessage: string;
31
33
  valid: boolean;
32
34
  touched: boolean;
35
+ size: string;
36
+ placeholder: string;
37
+ pattern: boolean;
38
+ autocomplete: any;
39
+ inputmode: any;
40
+ enterkeyhint: any;
41
+ autocapitalize: any;
42
+ autocorrect: any;
43
+ spellcheck: any;
44
+ type: string;
45
+ passwordToggle: boolean;
46
+ passwordVisible: boolean;
47
+ showLabel: string;
48
+ hideLabel: string;
33
49
  };
34
50
  /**
35
51
  * Toggles between masked (`password`) and revealed (`text`) input.
36
52
  * @returns {void}
37
53
  */
38
54
  togglePasswordVisibility(): void;
39
- passwordVisible: any;
40
- type: string;
41
55
  events(): {
42
- '[data-password-toggle]': {
43
- click: () => void;
44
- };
45
56
  '[ref=input]': {
46
57
  focus: () => void;
47
58
  blur: () => void;
48
59
  keyup: (event: any) => void;
49
60
  change: () => void;
61
+ invalid: (event: any) => void;
50
62
  };
51
63
  '.is-invalid': {
52
64
  focus: () => void;
@@ -55,12 +67,17 @@ export default class PasswordField extends InputField {
55
67
  click: () => void;
56
68
  touchstart: () => void;
57
69
  };
70
+ '[data-password-toggle]': {
71
+ click: () => void;
72
+ };
58
73
  };
59
74
  /** @private */
75
+ private fieldTemplate;
76
+ /** @private */
60
77
  private toggleTemplate;
61
78
  /** @private */
62
79
  private eyeIconTemplate;
63
80
  /** @private */
64
81
  private eyeOffIconTemplate;
65
82
  }
66
- import InputField from '../input-field/input-field.js';
83
+ export declare function define(): void;
@@ -0,0 +1,123 @@
1
+ import { TemplateElement } from '@webtides/element-js';
2
+ import Events from './popover.events.js';
3
+ /**
4
+ * A panel that floats next to an anchor: a click on the anchor opens it, a second click, a click
5
+ * beside it or `Escape` closes it. Built on the native popover of the platform, which owns the top
6
+ * layer (nothing clips the panel or lies on top of it), the closing and the return of the focus.
7
+ * The component adds the anchor and the place of the panel: at the side of the anchor that
8
+ * `placement` names, on the other side when there is no room, and never outside the viewport.
9
+ *
10
+ * @element el-popover
11
+ *
12
+ * @fires {CustomEvent} popover-show - Fired when the panel has opened.
13
+ * @fires {CustomEvent} popover-hide - Fired when the panel has closed.
14
+ *
15
+ * @slot - The content of the panel.
16
+ * @slot anchor - The element the panel belongs to and opens from, a button as a rule. It gets
17
+ * `aria-expanded`.
18
+ *
19
+ * @csspart anchor - Forwarded onto the `anchor` slot.
20
+ * @csspart panel - The floating panel: background, border, radius, elevation, width.
21
+ * @csspart arrow - The arrow that points to the anchor, present only while `arrow` is `true`.
22
+ *
23
+ * @cssstate open - Set while the panel is shown. Style with `:host(:state(open))` or
24
+ * `el-popover:state(open)` from outside.
25
+ *
26
+ * @property {boolean} open - Whether the panel is shown. Reflected to the `open` attribute.
27
+ * @property {'top'|'top-start'|'top-end'|'bottom'|'bottom-start'|'bottom-end'|'left'|'left-start'|'left-end'|'right'|'right-start'|'right-end'} placement -
28
+ * The side of the anchor the panel is placed at, and with `-start` or `-end` the edge of the
29
+ * anchor it is aligned with. Without room there, the panel goes to the opposite side. Default
30
+ * `'bottom'`.
31
+ * @property {number} distance - The gap between the anchor and the panel, or the tip of its arrow,
32
+ * in pixels. Default `8`.
33
+ * @property {boolean} arrow - Whether the panel has an arrow that points to the anchor. Default
34
+ * `false`.
35
+ */
36
+ export default class Popover extends TemplateElement {
37
+ _openAtPointerDown: any;
38
+ open: any;
39
+ _focusWasInPanel: boolean;
40
+ _stopAutoUpdate: () => void;
41
+ constructor();
42
+ properties(): {
43
+ open: boolean;
44
+ placement: string;
45
+ distance: number;
46
+ arrow: boolean;
47
+ };
48
+ connected(): void;
49
+ disconnected(): void;
50
+ afterUpdate(): void;
51
+ watch(): {
52
+ open: (open: any) => void;
53
+ };
54
+ events(): {
55
+ '[data-anchor]': {
56
+ pointerdown: () => void;
57
+ click: (event: any) => void;
58
+ slotchange: () => void;
59
+ };
60
+ "[part~='panel']": {
61
+ beforetoggle: (event: any) => void;
62
+ toggle: (event: any) => void;
63
+ };
64
+ };
65
+ /**
66
+ * Opens the panel.
67
+ * @returns {void}
68
+ */
69
+ show(): void;
70
+ /**
71
+ * Closes the panel.
72
+ * @returns {void}
73
+ */
74
+ hide(): void;
75
+ /**
76
+ * Opens the panel when it is closed, and closes it when it is open.
77
+ * @returns {void}
78
+ */
79
+ toggle(): void;
80
+ /**
81
+ * The element the panel is placed at: what is in the `anchor` slot, or the popover itself.
82
+ * @private
83
+ * @returns {Element}
84
+ */
85
+ private _anchor;
86
+ /**
87
+ * Tells on the anchor whether the panel is open. Only an anchor that can say so gets the
88
+ * attribute: a button, a link, an element with a role of its own, or a custom element, which
89
+ * may pass it on to the control inside it. On a `<span>` it would be an error.
90
+ * @private
91
+ */
92
+ private _syncAnchor;
93
+ /**
94
+ * Whether the focus is in the content of the panel, that is in the popover but not in its anchor.
95
+ * @private
96
+ * @returns {boolean}
97
+ */
98
+ private _hasFocusInPanel;
99
+ /**
100
+ * Gives the focus back to the anchor when it was in the panel that has just closed. The platform
101
+ * does that for the content of a popover, but the content here is slotted: it belongs to the
102
+ * page and not to the panel, and the focus would be left on nothing.
103
+ * @private
104
+ */
105
+ private _restoreFocus;
106
+ /** @private */
107
+ private _applyOpen;
108
+ /** @private */
109
+ private _applyClose;
110
+ /**
111
+ * Places the panel now, and again whenever the anchor moves: on scroll, on resize, when the
112
+ * anchor or the panel changes its size.
113
+ * @private
114
+ */
115
+ private _startPositioning;
116
+ /** @private */
117
+ private _stopPositioning;
118
+ /** @private */
119
+ private _position;
120
+ template(): any;
121
+ }
122
+ export declare function define(): void;
123
+ export { Events };
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,5 @@
1
+ declare const _default: {
2
+ SHOW: string;
3
+ HIDE: string;
4
+ };
5
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;
@@ -0,0 +1,35 @@
1
+ import { TemplateElement } from '@webtides/element-js';
2
+ /**
3
+ * A progress bar: a track that fills with the progress of a task, an upload, an import, the steps
4
+ * of a form. `value` of `max` says how far the task is. `indeterminate` is the bar for a task
5
+ * whose progress is not known yet: a part of the track that moves, in the place where the bar with
6
+ * a value will stand.
7
+ *
8
+ * @element el-progress-bar
9
+ *
10
+ * @csspart base - The track. It carries `role="progressbar"`, the value and the label.
11
+ * @csspart indicator - The part of the track that is filled.
12
+ *
13
+ * @cssproperty --el-progress-bar-height - The height of the bar. Unset, it is `0.5rem`.
14
+ * @cssproperty --el-progress-bar-indicator-color - The part that is filled. Unset, it is
15
+ * `--el-color-accent`, and the text colour without a theme.
16
+ * @cssproperty --el-progress-bar-track-color - The track. Unset, it is a fifth of the text colour.
17
+ *
18
+ * @property {number} value - How far the task is, from `0` to `max`. A value outside of that range
19
+ * is shown as the nearest one inside. Default `0`.
20
+ * @property {number} max - The value of a task that is done. Default `100`.
21
+ * @property {boolean} indeterminate - The progress is not known: the bar has no value and a part
22
+ * of the track moves. Default `false`.
23
+ * @property {string} label - The accessible name of the bar. Default `'Progress'`.
24
+ */
25
+ export default class ProgressBar extends TemplateElement {
26
+ constructor();
27
+ properties(): {
28
+ value: number;
29
+ max: number;
30
+ indeterminate: boolean;
31
+ label: string;
32
+ };
33
+ template(): any;
34
+ }
35
+ export declare function define(): void;
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;
@@ -0,0 +1,40 @@
1
+ import { TemplateElement } from '@webtides/element-js';
2
+ /**
3
+ * A progress ring: a ring that closes with the progress of a task, for a place with little room, a
4
+ * tile of a dashboard, a card, the side of a heading. `value` of `max` says how far the task is,
5
+ * and the middle of the ring has room for a short text. It speaks the vocabulary of the progress
6
+ * bar; a wait of unknown length is a spinner.
7
+ *
8
+ * @element el-progress-ring
9
+ *
10
+ * @slot - A short text in the middle of the ring, "45 %". Not read out: the value is.
11
+ *
12
+ * @csspart base - The ring and its middle. It carries `role="progressbar"`, the value and the
13
+ * label.
14
+ * @csspart track - The whole ring, a `<circle>`.
15
+ * @csspart indicator - The part of the ring that is drawn, a `<circle>`.
16
+ * @csspart label - The middle of the ring, around the slot.
17
+ *
18
+ * @cssproperty --el-progress-ring-size - The width and the height of the ring. Unset, it is
19
+ * `4rem`.
20
+ * @cssproperty --el-progress-ring-track-width - The thickness of the ring. Unset, it is `0.25rem`.
21
+ * @cssproperty --el-progress-ring-indicator-color - The part that is drawn. Unset, it is
22
+ * `--el-color-accent`, and the text colour without a theme.
23
+ * @cssproperty --el-progress-ring-track-color - The whole ring. Unset, it is a fifth of the text
24
+ * colour.
25
+ *
26
+ * @property {number} value - How far the task is, from `0` to `max`. A value outside of that range
27
+ * is shown as the nearest one inside. Default `0`.
28
+ * @property {number} max - The value of a task that is done. Default `100`.
29
+ * @property {string} label - The accessible name of the ring. Default `'Progress'`.
30
+ */
31
+ export default class ProgressRing extends TemplateElement {
32
+ constructor();
33
+ properties(): {
34
+ value: number;
35
+ max: number;
36
+ label: string;
37
+ };
38
+ template(): any;
39
+ }
40
+ export declare function define(): void;
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;
@@ -1,4 +1,4 @@
1
- export function define(): void;
1
+ import FormField from '../form-field/form-field.js';
2
2
  /**
3
3
  * A single-choice radio group with a custom indicator, label, help text and validation. Renders a
4
4
  * native `<fieldset>`/`<legend>` wrapping mutually-exclusive `<input type="radio">`s (so keyboard
@@ -10,19 +10,17 @@ export function define(): void;
10
10
  * @fires {CustomEvent<string>} input-change - Fired when the selected value changes. `detail` is
11
11
  * the newly selected value. Bubbles.
12
12
  *
13
- * @cssstate touched - Set once the user has focused and blurred the group. Inherits `valid` and
14
- * `invalid` from `FormField`.
13
+ * @cssstate touched - Set once the user has left the group, or the browser has refused a submit
14
+ * because of it. Inherits `valid` and `invalid` from `FormField`.
15
15
  *
16
- * @property {string} value - The selected option's value.
16
+ * @property {string | null} value - The selected option's value.
17
17
  * @property {Array<string | { value: string, label?: string, disabled?: boolean }>} options -
18
18
  * Options to render. Accepts plain strings (`['Yes', 'No']`) or option objects
19
19
  * (`[{ value, label, disabled? }]`). Strings are used as both value and label.
20
20
  */
21
21
  export default class RadioField extends FormField {
22
- /** @private */
23
- private uuid;
22
+ constructor(options: any);
24
23
  properties(): {
25
- options: any[];
26
24
  name: string;
27
25
  value: any;
28
26
  required: boolean;
@@ -33,12 +31,16 @@ export default class RadioField extends FormField {
33
31
  helpMessage: string;
34
32
  valid: boolean;
35
33
  touched: boolean;
34
+ options: any[];
36
35
  };
36
+ connected(): void;
37
+ afterUpdate(): void;
37
38
  events(): {
38
39
  'input[type="radio"]': {
39
40
  change: (event: any) => void;
40
41
  focus: () => void;
41
- blur: () => void;
42
+ blur: (event: any) => void;
43
+ invalid: (event: any) => void;
42
44
  };
43
45
  };
44
46
  /**
@@ -48,15 +50,25 @@ export default class RadioField extends FormField {
48
50
  * @private
49
51
  */
50
52
  private _computeValid;
53
+ /**
54
+ * Makes the radios say what the field says, after every render. The `checked` attribute the
55
+ * template writes is only the default of a radio: once the user has chosen, the browser no
56
+ * longer follows the attribute, so a value from outside is written to the radios as well.
57
+ * @private
58
+ */
59
+ private _syncControls;
60
+ onFocus(): void;
61
+ onBlur(): void;
51
62
  /**
52
63
  * The label is rendered as the group's `<legend>` (see `template`), so the base FormField
53
64
  * `<label>` is suppressed.
54
65
  * @returns {null}
55
66
  */
56
67
  labelTemplate(): null;
68
+ template(): any;
57
69
  /** @private */
58
70
  private legendTemplate;
59
71
  /** @private */
60
72
  private fieldTemplate;
61
73
  }
62
- import FormField from '../form-field/form-field.js';
74
+ export declare function define(): void;
@@ -0,0 +1,94 @@
1
+ import FormField from '../form-field/form-field.js';
2
+ /**
3
+ * A number from a span, picked with a thumb on a track. Renders a native `<input type="range">`,
4
+ * so the keyboard, the touch handling and the form submission are the ones of the browser. Extends
5
+ * `FormField` and inherits its label / help / error surface.
6
+ *
7
+ * The control always has a value: without one it puts its thumb in the middle of the span. The
8
+ * field takes that value over, so that `value` says what the form submits.
9
+ *
10
+ * @element el-range-field
11
+ *
12
+ * @fires {CustomEvent<string>} input-change - Fired when the value changes, also while the thumb
13
+ * moves. `detail` is the new value. Bubbles.
14
+ *
15
+ * @cssstate touched - Set on the host once the user has focused and left the control. Inherits
16
+ * `valid` and `invalid` from `FormField`.
17
+ *
18
+ * @property {string | null} value - The value, as the text the form submits. A field without one
19
+ * takes over the value of the control, the middle of the span.
20
+ * @property {number} min - The lower end of the span. Default `0`.
21
+ * @property {number} max - The upper end of the span. Default `100`.
22
+ * @property {number | 'any'} step - The distance between two values. Default `1`; `'any'` takes
23
+ * every value of the span.
24
+ * @property {boolean} showValue - Shows the value beside the control. Default `false`.
25
+ */
26
+ export default class RangeField extends FormField {
27
+ /**
28
+ * The value that `input-change` last reported, or that the field started with. See `watch()`.
29
+ * @private
30
+ */
31
+ private _reportedValue;
32
+ constructor(options: any);
33
+ properties(): {
34
+ name: string;
35
+ value: any;
36
+ required: boolean;
37
+ disabled: boolean;
38
+ label: string;
39
+ labelScreenReaderOnly: boolean;
40
+ errorMessage: string;
41
+ helpMessage: string;
42
+ valid: boolean;
43
+ touched: boolean;
44
+ min: number;
45
+ max: number;
46
+ step: number;
47
+ showValue: boolean;
48
+ };
49
+ /**
50
+ * A form field takes a control with a value as touched: someone has filled it in. The control
51
+ * of this field always has a value, so that says nothing here.
52
+ */
53
+ connected(): void;
54
+ afterUpdate(): void;
55
+ watch(): {
56
+ valid: () => void;
57
+ touched: () => void;
58
+ value: () => void;
59
+ };
60
+ events(): {
61
+ '[ref=input]': {
62
+ input: () => void;
63
+ focus: () => void;
64
+ blur: () => void;
65
+ invalid: (event: any) => void;
66
+ };
67
+ };
68
+ /**
69
+ * Makes the control and `value` say the same, after every render and every change of `value`.
70
+ *
71
+ * The `value` attribute of the control is only its default: once the user has moved the thumb,
72
+ * a value from outside has to be written to the control. The control in turn keeps its value
73
+ * inside the span and on a step, and has one in the middle of the span when it is given none.
74
+ * The field takes over what the control made of the value: that is what the form submits.
75
+ * @private
76
+ */
77
+ private _matchControl;
78
+ /**
79
+ * The longest text the value can have, which keeps the room for it: the control would change
80
+ * its length with every digit that comes or goes while the thumb moves.
81
+ * @private
82
+ * @returns {string}
83
+ */
84
+ private _longestValue;
85
+ /** @private */
86
+ private fieldTemplate;
87
+ /**
88
+ * The value beside the control. It is hidden from assistive technology: the control says its
89
+ * value itself, and would be heard twice.
90
+ * @private
91
+ */
92
+ private valueTemplate;
93
+ }
94
+ export declare function define(): void;
@@ -0,0 +1,2 @@
1
+ declare const _default: string;
2
+ export default _default;