agnosticui-core 2.0.0-alpha.2 → 2.0.0-alpha.21

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 (249) hide show
  1. package/README.md +67 -33
  2. package/dist/{VueButton.vue_vue_type_script_setup_true_lang-Bq8IPXqd.js → VueButton.vue_vue_type_script_setup_true_lang-D1jGatE9.js} +17 -15
  3. package/dist/{VueButtonFx.vue_vue_type_script_setup_true_lang-BUudF-lg.js → VueButtonFx.vue_vue_type_script_setup_true_lang-BRrt6Nxs.js} +1 -0
  4. package/dist/{VueCheckbox.vue_vue_type_script_setup_true_lang-DERDRO2P.js → VueCheckbox.vue_vue_type_script_setup_true_lang-VtQfJ-6f.js} +9 -10
  5. package/dist/{VueCombobox.vue_vue_type_script_setup_true_lang-C7gDMrYJ.js → VueCombobox.vue_vue_type_script_setup_true_lang-BSTZGX2X.js} +15 -13
  6. package/dist/VueIcon.vue_vue_type_script_setup_true_lang-C2Sky3bU.js +22 -0
  7. package/dist/{VueImage.vue_vue_type_script_setup_true_lang-CUwbK3NF.js → VueImage.vue_vue_type_script_setup_true_lang-SddK93SB.js} +23 -17
  8. package/dist/{VueInput.vue_vue_type_script_setup_true_lang-Dsxo7DuX.js → VueInput.vue_vue_type_script_setup_true_lang-wYdAqg-i.js} +19 -19
  9. package/dist/{VueMenu.vue_vue_type_script_setup_true_lang-bnn7ochj.js → VueMenu.vue_vue_type_script_setup_true_lang-BXc7397e.js} +5 -4
  10. package/dist/{VueRadio.vue_vue_type_script_setup_true_lang-DxNhH12d.js → VueRadio.vue_vue_type_script_setup_true_lang-C7Z-sWpa.js} +10 -12
  11. package/dist/{VueRating.vue_vue_type_script_setup_true_lang-CICncp71.js → VueRating.vue_vue_type_script_setup_true_lang-Bm2nRrqr.js} +11 -9
  12. package/dist/VueSelectionButton.vue_vue_type_script_setup_true_lang-DJN-Uk6n.js +24 -0
  13. package/dist/VueSelectionButtonGroup.vue_vue_type_script_setup_true_lang-DwYrIMVO.js +46 -0
  14. package/dist/VueSelectionCard.vue_vue_type_script_setup_true_lang-DJiyPsXH.js +24 -0
  15. package/dist/VueSelectionCardGroup.vue_vue_type_script_setup_true_lang-D5CycLY5.js +40 -0
  16. package/dist/{VueToggle.vue_vue_type_script_setup_true_lang-BxrvAsse.js → VueToggle.vue_vue_type_script_setup_true_lang-DLPCBOqZ.js} +18 -16
  17. package/dist/components/Alert/core/_Alert.d.ts.map +1 -1
  18. package/dist/components/Alert/core/_Alert.js +38 -19
  19. package/dist/components/Button/core/_Button.d.ts +5 -0
  20. package/dist/components/Button/core/_Button.d.ts.map +1 -1
  21. package/dist/components/Button/core/_Button.js +147 -65
  22. package/dist/components/Button/vue/VueButton.js +1 -1
  23. package/dist/components/Button/vue/VueButton.vue.d.ts +3 -0
  24. package/dist/components/Button/vue/VueButton.vue.d.ts.map +1 -1
  25. package/dist/components/Button/vue/index.js +1 -1
  26. package/dist/components/ButtonFx/vue/VueButtonFx.js +1 -1
  27. package/dist/components/ButtonFx/vue/index.js +1 -1
  28. package/dist/components/Card/core/_Card.d.ts +9 -1
  29. package/dist/components/Card/core/_Card.d.ts.map +1 -1
  30. package/dist/components/Card/core/_Card.js +83 -29
  31. package/dist/components/Card/vue/VueCard.js +29 -16
  32. package/dist/components/Card/vue/VueCard.vue.d.ts +25 -5
  33. package/dist/components/Card/vue/VueCard.vue.d.ts.map +1 -1
  34. package/dist/components/Checkbox/core/_Checkbox.d.ts +37 -11
  35. package/dist/components/Checkbox/core/_Checkbox.d.ts.map +1 -1
  36. package/dist/components/Checkbox/core/_Checkbox.js +73 -42
  37. package/dist/components/Checkbox/vue/VueCheckbox.js +1 -1
  38. package/dist/components/Checkbox/vue/VueCheckbox.vue.d.ts +3 -3
  39. package/dist/components/Checkbox/vue/VueCheckbox.vue.d.ts.map +1 -1
  40. package/dist/components/Checkbox/vue/index.js +1 -1
  41. package/dist/components/Combobox/core/_Combobox.d.ts +24 -1
  42. package/dist/components/Combobox/core/_Combobox.d.ts.map +1 -1
  43. package/dist/components/Combobox/core/_Combobox.js +141 -92
  44. package/dist/components/Combobox/vue/VueCombobox.js +1 -1
  45. package/dist/components/Combobox/vue/index.js +1 -1
  46. package/dist/components/Fieldset/vue/VueFieldset.vue.d.ts +1 -1
  47. package/dist/components/Icon/vue/VueIcon.js +1 -1
  48. package/dist/components/Icon/vue/VueIcon.vue.d.ts.map +1 -1
  49. package/dist/components/Icon/vue/index.js +1 -1
  50. package/dist/components/Image/vue/VueImage.js +1 -1
  51. package/dist/components/Image/vue/VueImage.vue.d.ts.map +1 -1
  52. package/dist/components/Image/vue/index.js +1 -1
  53. package/dist/components/Input/core/_Input.d.ts +21 -2
  54. package/dist/components/Input/core/_Input.d.ts.map +1 -1
  55. package/dist/components/Input/core/_Input.js +71 -35
  56. package/dist/components/Input/vue/VueInput.js +1 -1
  57. package/dist/components/Input/vue/VueInput.vue.d.ts.map +1 -1
  58. package/dist/components/Input/vue/index.js +1 -1
  59. package/dist/components/Link/core/_Link.d.ts.map +1 -1
  60. package/dist/components/Link/core/_Link.js +1 -0
  61. package/dist/components/Link/vue/VueLink.js +6 -5
  62. package/dist/components/Link/vue/VueLink.vue.d.ts.map +1 -1
  63. package/dist/components/Menu/vue/VueMenu.js +1 -1
  64. package/dist/components/Menu/vue/index.js +1 -1
  65. package/dist/components/Pagination/core/_Pagination.d.ts +0 -1
  66. package/dist/components/Pagination/core/_Pagination.d.ts.map +1 -1
  67. package/dist/components/Pagination/core/_Pagination.js +6 -9
  68. package/dist/components/Radio/core/_Radio.d.ts +55 -10
  69. package/dist/components/Radio/core/_Radio.d.ts.map +1 -1
  70. package/dist/components/Radio/core/_Radio.js +165 -116
  71. package/dist/components/Radio/vue/VueRadio.js +1 -1
  72. package/dist/components/Radio/vue/VueRadio.vue.d.ts.map +1 -1
  73. package/dist/components/Radio/vue/index.js +1 -1
  74. package/dist/components/Rating/core/_Rating.d.ts +23 -2
  75. package/dist/components/Rating/core/_Rating.d.ts.map +1 -1
  76. package/dist/components/Rating/core/_Rating.js +97 -64
  77. package/dist/components/Rating/vue/VueRating.js +1 -1
  78. package/dist/components/Rating/vue/VueRating.vue.d.ts +2 -0
  79. package/dist/components/Rating/vue/VueRating.vue.d.ts.map +1 -1
  80. package/dist/components/Rating/vue/index.js +1 -1
  81. package/dist/components/Select/core/_Select.d.ts +20 -2
  82. package/dist/components/Select/core/_Select.d.ts.map +1 -1
  83. package/dist/components/Select/core/_Select.js +99 -69
  84. package/dist/components/SelectionButton/core/SelectionButton.d.ts +9 -0
  85. package/dist/components/SelectionButton/core/SelectionButton.d.ts.map +1 -0
  86. package/dist/components/SelectionButton/core/SelectionButton.js +5 -0
  87. package/dist/components/SelectionButton/core/_SelectionButton.d.ts +47 -0
  88. package/dist/components/SelectionButton/core/_SelectionButton.d.ts.map +1 -0
  89. package/dist/components/SelectionButton/core/_SelectionButton.js +474 -0
  90. package/dist/components/SelectionButton/react/ReactSelectionButton.d.ts +9 -0
  91. package/dist/components/SelectionButton/react/ReactSelectionButton.d.ts.map +1 -0
  92. package/dist/components/SelectionButton/react/ReactSelectionButton.js +12 -0
  93. package/dist/components/SelectionButton/react/index.d.ts +3 -0
  94. package/dist/components/SelectionButton/react/index.d.ts.map +1 -0
  95. package/dist/components/SelectionButton/react/index.js +4 -0
  96. package/dist/components/SelectionButton/vue/VueSelectionButton.js +4 -0
  97. package/dist/components/SelectionButton/vue/VueSelectionButton.vue.d.ts +55 -0
  98. package/dist/components/SelectionButton/vue/VueSelectionButton.vue.d.ts.map +1 -0
  99. package/dist/components/SelectionButton/vue/index.d.ts +6 -0
  100. package/dist/components/SelectionButton/vue/index.d.ts.map +1 -0
  101. package/dist/components/SelectionButton/vue/index.js +4 -0
  102. package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.d.ts +9 -0
  103. package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.d.ts.map +1 -0
  104. package/dist/components/SelectionButtonGroup/core/SelectionButtonGroup.js +5 -0
  105. package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.d.ts +87 -0
  106. package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.d.ts.map +1 -0
  107. package/dist/components/SelectionButtonGroup/core/_SelectionButtonGroup.js +235 -0
  108. package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.d.ts +13 -0
  109. package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.d.ts.map +1 -0
  110. package/dist/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.js +15 -0
  111. package/dist/components/SelectionButtonGroup/react/index.d.ts +3 -0
  112. package/dist/components/SelectionButtonGroup/react/index.d.ts.map +1 -0
  113. package/dist/components/SelectionButtonGroup/react/index.js +4 -0
  114. package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.js +4 -0
  115. package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue.d.ts +101 -0
  116. package/dist/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue.d.ts.map +1 -0
  117. package/dist/components/SelectionButtonGroup/vue/index.d.ts +6 -0
  118. package/dist/components/SelectionButtonGroup/vue/index.d.ts.map +1 -0
  119. package/dist/components/SelectionButtonGroup/vue/index.js +4 -0
  120. package/dist/components/SelectionCard/core/SelectionCard.d.ts +9 -0
  121. package/dist/components/SelectionCard/core/SelectionCard.d.ts.map +1 -0
  122. package/dist/components/SelectionCard/core/SelectionCard.js +5 -0
  123. package/dist/components/SelectionCard/core/_SelectionCard.d.ts +39 -0
  124. package/dist/components/SelectionCard/core/_SelectionCard.d.ts.map +1 -0
  125. package/dist/components/SelectionCard/core/_SelectionCard.js +318 -0
  126. package/dist/components/SelectionCard/react/ReactSelectionCard.d.ts +9 -0
  127. package/dist/components/SelectionCard/react/ReactSelectionCard.d.ts.map +1 -0
  128. package/dist/components/SelectionCard/react/ReactSelectionCard.js +12 -0
  129. package/dist/components/SelectionCard/react/index.d.ts +3 -0
  130. package/dist/components/SelectionCard/react/index.d.ts.map +1 -0
  131. package/dist/components/SelectionCard/react/index.js +4 -0
  132. package/dist/components/SelectionCard/vue/VueSelectionCard.js +4 -0
  133. package/dist/components/SelectionCard/vue/VueSelectionCard.vue.d.ts +55 -0
  134. package/dist/components/SelectionCard/vue/VueSelectionCard.vue.d.ts.map +1 -0
  135. package/dist/components/SelectionCard/vue/index.d.ts +6 -0
  136. package/dist/components/SelectionCard/vue/index.d.ts.map +1 -0
  137. package/dist/components/SelectionCard/vue/index.js +4 -0
  138. package/dist/components/SelectionCardGroup/core/SelectionCardGroup.d.ts +9 -0
  139. package/dist/components/SelectionCardGroup/core/SelectionCardGroup.d.ts.map +1 -0
  140. package/dist/components/SelectionCardGroup/core/SelectionCardGroup.js +5 -0
  141. package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.d.ts +69 -0
  142. package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.d.ts.map +1 -0
  143. package/dist/components/SelectionCardGroup/core/_SelectionCardGroup.js +220 -0
  144. package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.d.ts +13 -0
  145. package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.d.ts.map +1 -0
  146. package/dist/components/SelectionCardGroup/react/ReactSelectionCardGroup.js +15 -0
  147. package/dist/components/SelectionCardGroup/react/index.d.ts +3 -0
  148. package/dist/components/SelectionCardGroup/react/index.d.ts.map +1 -0
  149. package/dist/components/SelectionCardGroup/react/index.js +4 -0
  150. package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.js +4 -0
  151. package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue.d.ts +86 -0
  152. package/dist/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue.d.ts.map +1 -0
  153. package/dist/components/SelectionCardGroup/vue/index.d.ts +6 -0
  154. package/dist/components/SelectionCardGroup/vue/index.d.ts.map +1 -0
  155. package/dist/components/SelectionCardGroup/vue/index.js +4 -0
  156. package/dist/components/Slider/core/_Slider.d.ts +10 -16
  157. package/dist/components/Slider/core/_Slider.d.ts.map +1 -1
  158. package/dist/components/Slider/core/_Slider.js +28 -39
  159. package/dist/components/Timeline/core/_Timeline.d.ts.map +1 -1
  160. package/dist/components/Timeline/core/_Timeline.js +8 -3
  161. package/dist/components/Timeline/react/ReactTimeline.d.ts +23 -9
  162. package/dist/components/Timeline/react/ReactTimeline.d.ts.map +1 -1
  163. package/dist/components/Timeline/react/ReactTimeline.js +18 -14
  164. package/dist/components/Toggle/core/_Toggle.d.ts +36 -6
  165. package/dist/components/Toggle/core/_Toggle.d.ts.map +1 -1
  166. package/dist/components/Toggle/core/_Toggle.js +117 -77
  167. package/dist/components/Toggle/vue/VueToggle.js +1 -1
  168. package/dist/components/Toggle/vue/VueToggle.vue.d.ts.map +1 -1
  169. package/dist/components/Toggle/vue/index.js +1 -1
  170. package/dist/shared/face-mixin.d.ts +82 -0
  171. package/dist/shared/face-mixin.d.ts.map +1 -0
  172. package/dist/shared/face-mixin.js +86 -0
  173. package/dist/shared/form-control-styles.js +1 -1
  174. package/dist/styles/ag-tokens-dark.css +4 -0
  175. package/dist/styles/ag-tokens.css +18 -13
  176. package/dist/test-setup.js +340 -255
  177. package/package.json +51 -13
  178. package/src/components/Alert/core/_Alert.ts +21 -2
  179. package/src/components/Button/core/_Button.ts +111 -21
  180. package/src/components/Button/vue/VueButton.vue +2 -0
  181. package/src/components/Card/core/_Card.ts +70 -3
  182. package/src/components/Card/vue/VueCard.vue +19 -3
  183. package/src/components/Checkbox/core/_Checkbox.ts +78 -18
  184. package/src/components/Checkbox/vue/VueCheckbox.vue +0 -6
  185. package/src/components/Combobox/core/_Combobox.ts +84 -2
  186. package/src/components/Combobox/vue/VueCombobox.vue +1 -0
  187. package/src/components/Drawer/v1/dialog--drawer-bottom.hbs +48 -0
  188. package/src/components/Drawer/v1/dialog--drawer-end.hbs +48 -0
  189. package/src/components/Drawer/v1/dialog--drawer-start.hbs +48 -0
  190. package/src/components/Drawer/v1/dialog--drawer-top.hbs +48 -0
  191. package/src/components/Drawer/v1/dialog-demo.css +13 -0
  192. package/src/components/Drawer/v1/dialog.config.yml +5 -0
  193. package/src/components/Drawer/v1/dialog.css +99 -0
  194. package/src/components/Drawer/v1/dialog.hbs +48 -0
  195. package/src/components/Drawer/v1/drawer-animations.css +52 -0
  196. package/src/components/Drawer/v1/drawer.css +50 -0
  197. package/src/components/Icon/vue/VueIcon.vue +2 -5
  198. package/src/components/Image/vue/VueImage.vue +17 -13
  199. package/src/components/Input/core/_Input.ts +58 -3
  200. package/src/components/Input/vue/VueInput.vue +2 -6
  201. package/src/components/Link/core/_Link.ts +1 -0
  202. package/src/components/Link/vue/VueLink.vue +1 -0
  203. package/src/components/Pagination/core/_Pagination.ts +10 -18
  204. package/src/components/Radio/core/_Radio.ts +131 -41
  205. package/src/components/Radio/vue/VueRadio.vue +1 -5
  206. package/src/components/Rating/core/_Rating.ts +62 -5
  207. package/src/components/Rating/vue/VueRating.vue +3 -0
  208. package/src/components/Select/core/_Select.ts +55 -6
  209. package/src/components/SelectionButton/core/SelectionButton.ts +13 -0
  210. package/src/components/SelectionButton/core/_SelectionButton.ts +551 -0
  211. package/src/components/SelectionButton/react/ReactSelectionButton.tsx +16 -0
  212. package/src/components/SelectionButton/react/index.ts +4 -0
  213. package/src/components/SelectionButton/vue/VueSelectionButton.vue +33 -0
  214. package/src/components/SelectionButton/vue/index.ts +5 -0
  215. package/src/components/SelectionButtonGroup/core/SelectionButtonGroup.ts +13 -0
  216. package/src/components/SelectionButtonGroup/core/_SelectionButtonGroup.ts +423 -0
  217. package/src/components/SelectionButtonGroup/react/ReactSelectionButtonGroup.tsx +29 -0
  218. package/src/components/SelectionButtonGroup/react/index.ts +9 -0
  219. package/src/components/SelectionButtonGroup/vue/VueSelectionButtonGroup.vue +89 -0
  220. package/src/components/SelectionButtonGroup/vue/index.ts +5 -0
  221. package/src/components/SelectionCard/core/SelectionCard.ts +13 -0
  222. package/src/components/SelectionCard/core/_SelectionCard.ts +384 -0
  223. package/src/components/SelectionCard/react/ReactSelectionCard.tsx +16 -0
  224. package/src/components/SelectionCard/react/index.ts +4 -0
  225. package/src/components/SelectionCard/vue/VueSelectionCard.vue +33 -0
  226. package/src/components/SelectionCard/vue/index.ts +5 -0
  227. package/src/components/SelectionCardGroup/core/SelectionCardGroup.ts +13 -0
  228. package/src/components/SelectionCardGroup/core/_SelectionCardGroup.ts +396 -0
  229. package/src/components/SelectionCardGroup/react/ReactSelectionCardGroup.tsx +29 -0
  230. package/src/components/SelectionCardGroup/react/index.ts +9 -0
  231. package/src/components/SelectionCardGroup/vue/VueSelectionCardGroup.vue +71 -0
  232. package/src/components/SelectionCardGroup/vue/index.ts +5 -0
  233. package/src/components/Slider/core/_Slider.ts +28 -28
  234. package/src/components/Timeline/core/_Timeline.ts +5 -0
  235. package/src/components/Timeline/react/ReactTimeline.tsx +47 -24
  236. package/src/components/Toggle/core/_Toggle.ts +83 -9
  237. package/src/components/Toggle/vue/VueToggle.vue +2 -0
  238. package/src/shared/face-mixin.ts +233 -0
  239. package/src/shared/form-control-styles.ts +1 -1
  240. package/src/styles/ag-tokens-dark.css +4 -0
  241. package/src/styles/ag-tokens.css +18 -13
  242. package/RTL_IMPLEMENTATION_PLAN.md +0 -295
  243. package/dist/VueIcon.vue_vue_type_script_setup_true_lang-kC-nzMyu.js +0 -25
  244. package/dist/components/Input/core/_Input.BACKUP.d.ts +0 -114
  245. package/dist/components/Input/core/_Input.BACKUP.d.ts.map +0 -1
  246. package/dist/components/Input/core/_Input.BACKUP.js +0 -511
  247. package/dist/global.d.js +0 -1
  248. package/src/components/Input/core/_Input.BACKUP.ts +0 -710
  249. package/src/global.d.ts +0 -43
@@ -1,14 +1,28 @@
1
1
  import { default as React } from 'react';
2
- import { AgTimeline as AgTimelineWC, AgTimelineItem as AgTimelineItemWC, AgTimelineProps, AgTimelineItemProps } from '../core/Timeline.js';
2
+ import { AgTimeline as AgTimelineWC, AgTimelineItem as AgTimelineItemWC } from '../core/Timeline.js';
3
3
 
4
- export declare const ReactTimeline: import('@lit/react').ReactWebComponent<AgTimelineWC, {
5
- onSlotChange: string;
6
- }>;
7
- export declare const ReactTimelineItem: import('@lit/react').ReactWebComponent<AgTimelineItemWC, {}>;
8
- export type ReactTimelineProps = AgTimelineProps & {
4
+ declare module 'react/jsx-runtime' {
5
+ namespace JSX {
6
+ interface IntrinsicElements {
7
+ 'ag-timeline-item': React.DetailedHTMLProps<React.HTMLAttributes<HTMLElement>, HTMLElement>;
8
+ }
9
+ }
10
+ }
11
+ export interface ReactTimelineProps {
12
+ orientation?: 'horizontal' | 'vertical';
13
+ variant?: 'primary' | 'success' | 'warning' | 'danger' | 'monochrome' | '';
14
+ compact?: boolean;
15
+ ariaLabel?: string;
16
+ responsive?: boolean;
9
17
  children?: React.ReactNode;
10
- };
11
- export type ReactTimelineItemProps = AgTimelineItemProps & {
18
+ }
19
+ export declare const ReactTimeline: import('@lit/react').ReactWebComponent<AgTimelineWC, {}>;
20
+ export interface ReactTimelineItemProps {
21
+ start?: React.ReactNode;
22
+ marker?: React.ReactNode;
23
+ end?: React.ReactNode;
12
24
  children?: React.ReactNode;
13
- };
25
+ }
26
+ export declare const ReactTimelineItem: React.FC<ReactTimelineItemProps>;
27
+ export declare const ReactTimelineItemWC: import('@lit/react').ReactWebComponent<AgTimelineItemWC, {}>;
14
28
  //# sourceMappingURL=ReactTimeline.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ReactTimeline.d.ts","sourceRoot":"","sources":["../../../../src/components/Timeline/react/ReactTimeline.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EACL,UAAU,IAAI,YAAY,EAC1B,cAAc,IAAI,gBAAgB,EACnC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EAAE,eAAe,EAAE,mBAAmB,EAAE,MAAM,qBAAqB,CAAC;AAGhF,eAAO,MAAM,aAAa;;EAOxB,CAAC;AAGH,eAAO,MAAM,iBAAiB,8DAI5B,CAAC;AAGH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C;CAC5B;AAGD,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAS9D,CAAC;AAGF,eAAO,MAAM,mBAAmB,8DAI9B,CAAC"}
@@ -1,20 +1,24 @@
1
- import e from "react";
2
- import { o as t } from "../../../create-component-BPMDMe-q.js";
1
+ import { j as e } from "../../../jsx-runtime-BzflLqGi.js";
2
+ import a from "react";
3
+ import { o as l } from "../../../create-component-BPMDMe-q.js";
3
4
  import "../core/Timeline.js";
4
- import { AgTimeline as m, AgTimelineItem as i } from "../core/_Timeline.js";
5
- const r = t({
5
+ import { AgTimeline as r, AgTimelineItem as o } from "../core/_Timeline.js";
6
+ const x = l({
6
7
  tagName: "ag-timeline",
7
- elementClass: m,
8
- react: e,
9
- events: {
10
- onSlotChange: "slotchange"
11
- }
12
- }), c = t({
8
+ elementClass: r,
9
+ react: a
10
+ }), j = ({ start: t, marker: i, end: m, children: n }) => /* @__PURE__ */ e.jsxs("ag-timeline-item", { children: [
11
+ t && /* @__PURE__ */ e.jsx("div", { slot: "ag-start", children: t }),
12
+ i && /* @__PURE__ */ e.jsx("div", { slot: "ag-marker", children: i }),
13
+ m && /* @__PURE__ */ e.jsx("div", { slot: "ag-end", children: m }),
14
+ n
15
+ ] }), f = l({
13
16
  tagName: "ag-timeline-item",
14
- elementClass: i,
15
- react: e
17
+ elementClass: o,
18
+ react: a
16
19
  });
17
20
  export {
18
- r as ReactTimeline,
19
- c as ReactTimelineItem
21
+ x as ReactTimeline,
22
+ j as ReactTimelineItem,
23
+ f as ReactTimelineItemWC
20
24
  };
@@ -1,5 +1,6 @@
1
1
  import { LitElement } from 'lit';
2
2
  import { LabelPosition } from '../../../shared/form-control-utils';
3
+ import { ValidationMessages } from '../../../shared/face-mixin';
3
4
 
4
5
  export interface ToggleChangeEventDetail {
5
6
  checked: boolean;
@@ -23,9 +24,11 @@ export interface ToggleProps {
23
24
  helpText?: string;
24
25
  name?: string;
25
26
  value?: string;
27
+ validationMessages?: ValidationMessages;
26
28
  onClick?: (event: MouseEvent) => void;
27
29
  onToggleChange?: (event: ToggleChangeEvent) => void;
28
30
  }
31
+ declare const AgToggle_base: (new (...args: any[]) => import('../../../shared/face-mixin').FaceMixinInterface) & typeof LitElement;
29
32
  /**
30
33
  * AgToggle - Accessible binary toggle/switch component
31
34
  *
@@ -41,7 +44,7 @@ export interface ToggleProps {
41
44
  * - Size variants with consistent proportions
42
45
  * - Form integration support
43
46
  */
44
- export declare class AgToggle extends LitElement implements ToggleProps {
47
+ export declare class AgToggle extends AgToggle_base implements ToggleProps {
45
48
  static styles: import('lit').CSSResult[];
46
49
  private _toggleId;
47
50
  private _labelId;
@@ -100,22 +103,48 @@ export declare class AgToggle extends LitElement implements ToggleProps {
100
103
  */
101
104
  helpText: string;
102
105
  /**
103
- * Form integration - name attribute
104
- */
105
- name: string;
106
- /**
107
- * Form integration - value when checked
106
+ * Form integration - value submitted when checked (defaults to 'on' like native checkbox)
108
107
  */
109
108
  value: string;
110
109
  /**
111
110
  * Click event callback
112
111
  */
113
112
  onClick?: (event: MouseEvent) => void;
113
+ /**
114
+ * Consumer-supplied validation messages (overrides built-in English fallbacks)
115
+ */
116
+ validationMessages: ValidationMessages | undefined;
114
117
  /**
115
118
  * Toggle change event callback
116
119
  */
117
120
  onToggleChange?: (event: ToggleChangeEvent) => void;
118
121
  constructor();
122
+ /**
123
+ * FACE lifecycle: called when the parent form is reset.
124
+ * Restores checked to false and clears form value and validity.
125
+ */
126
+ formResetCallback(): void;
127
+ /**
128
+ * Sync validity state to ElementInternals.
129
+ * Toggle has no inner <input> to delegate to, so required validation
130
+ * is implemented directly: unchecked + required = valueMissing.
131
+ */
132
+ private _syncValidity;
133
+ /**
134
+ * Sync CustomStateSet states so :state() pseudo-classes work from external CSS.
135
+ *
136
+ * Must be called AFTER _syncValidity() so that :state(invalid) reads the
137
+ * freshly-updated _internals.validity.valid value.
138
+ *
139
+ * Exposed states:
140
+ * :state(checked) — toggle is on
141
+ * :state(disabled) — toggle is disabled
142
+ * :state(readonly) — toggle is read-only
143
+ * :state(required) — toggle is required
144
+ * :state(invalid) — FACE constraint validation is failing
145
+ */
146
+ private _syncStates;
147
+ updated(changedProperties: Map<string, unknown>): void;
119
148
  protected firstUpdated(): void;
120
149
  private renderLabel;
121
150
  private _handleClick;
@@ -123,4 +152,5 @@ export declare class AgToggle extends LitElement implements ToggleProps {
123
152
  private _performToggle;
124
153
  render(): import('lit').TemplateResult<1>;
125
154
  }
155
+ export {};
126
156
  //# sourceMappingURL=_Toggle.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_Toggle.d.ts","sourceRoot":"","sources":["../../../../src/components/Toggle/core/_Toggle.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAG5C,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,oCAAoC,CAAC;AAI5C,MAAM,WAAW,uBAAuB;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,uBAAuB,CAAC,CAAC;AAErE,MAAM,WAAW,WAAW;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IACxC,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,YAAY,CAAC;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACn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CAAC;IAE1B;;OAEG;IAEK,QAAQ,EAAE,OAAO,CAAC;IAE1B;;OAEG;IAEK,QAAQ,EAAE,OAAO,CAAC;IAE1B;;OAEG;IAEK,OAAO,EAAE,OAAO,CAAC;IAEzB;;OAEG;IAEK,YAAY,EAAE,MAAM,CAAC;IAE7B;;OAEG;IAEK,QAAQ,EAAE,MAAM,CAAC;IAEzB;;OAEG;IAEK,KAAK,EAAE,MAAM,CAAC;IAEtB;;OAEG;IAEK,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,IAAI,CAAC;IAE9C;;OAEG;IAEK,kBAAkB,EAAE,kBAAkB,GAAG,SAAS,CAAC;IAE3D;;OAEG;IAEK,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;;IA+B5D;;;OAGG;IACM,iBAAiB,IAAI,IAAI;IAOlC;;;;OAIG;IACH,OAAO,CAAC,aAAa;IAWrB;;;;;;;;;;;;OAYG;IACH,OAAO,CAAC,WAAW;IAUV,OAAO,CAAC,iBAAiB,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAUxD,SAAS,CAAC,YAAY;IAatB,OAAO,CAAC,WAAW;IAyBnB,OAAO,CAAC,YAAY,CAOlB;IAEF,OAAO,CAAC,cAAc,CAMpB;IAEF,OAAO,CAAC,cAAc,CA+BpB;IAEF,MAAM;CAiFP"}
@@ -1,26 +1,27 @@
1
- import { LitElement as b, css as u, html as s } from "lit";
2
- import { n as t } from "../../../property-CemaeiRl.js";
3
- import { o as p } from "../../../if-defined-C8i28hSj.js";
4
- import { createFormControlIds as f, isHorizontalLabel as c, buildAriaDescribedBy as m } from "../../../shared/form-control-utils.js";
5
- import { formControlStyles as y } from "../../../shared/form-control-styles.js";
6
- var v = Object.defineProperty, i = (d, r, a, l) => {
7
- for (var o = void 0, n = d.length - 1, g; n >= 0; n--)
8
- (g = d[n]) && (o = g(r, a, o) || o);
9
- return o && v(r, a, o), o;
1
+ import { LitElement as b, css as u, html as l } from "lit";
2
+ import { n as i } from "../../../property-CemaeiRl.js";
3
+ import { o as c } from "../../../if-defined-C8i28hSj.js";
4
+ import { createFormControlIds as f, isHorizontalLabel as p, buildAriaDescribedBy as y } from "../../../shared/form-control-utils.js";
5
+ import { formControlStyles as _ } from "../../../shared/form-control-styles.js";
6
+ import { FaceMixin as v } from "../../../shared/face-mixin.js";
7
+ var m = Object.defineProperty, a = (d, t, r, o) => {
8
+ for (var s = void 0, n = d.length - 1, g; n >= 0; n--)
9
+ (g = d[n]) && (s = g(t, r, s) || s);
10
+ return s && m(t, r, s), s;
10
11
  };
11
- const h = class h extends b {
12
+ const h = class h extends v(b) {
12
13
  constructor() {
13
- super(), this._toggleId = "", this._labelId = "", this._helperId = "", this._errorId = "", this.labelPosition = "top", this._handleClick = (a) => {
14
- this.onClick && this.onClick(a), this._performToggle(a);
15
- }, this._handleKeydown = (a) => {
16
- (a.key === " " || a.key === "Enter") && (a.preventDefault(), this._performToggle(a));
17
- }, this._performToggle = (a) => {
14
+ super(), this._toggleId = "", this._labelId = "", this._helperId = "", this._errorId = "", this.labelPosition = "top", this._handleClick = (r) => {
15
+ this.onClick && this.onClick(r), this._performToggle(r);
16
+ }, this._handleKeydown = (r) => {
17
+ (r.key === " " || r.key === "Enter") && (r.preventDefault(), this._performToggle(r));
18
+ }, this._performToggle = (r) => {
18
19
  if (this.disabled || this.readonly) {
19
- a.preventDefault();
20
+ r.preventDefault();
20
21
  return;
21
22
  }
22
- this.checked = !this.checked;
23
- const l = new CustomEvent("toggle-change", {
23
+ this.checked = !this.checked, this._internals.setFormValue(this.checked ? this.value || "on" : null), this._syncValidity(), this._syncStates();
24
+ const o = new CustomEvent("toggle-change", {
24
25
  detail: {
25
26
  checked: this.checked,
26
27
  name: this.name,
@@ -29,22 +30,61 @@ const h = class h extends b {
29
30
  bubbles: !0,
30
31
  composed: !0
31
32
  });
32
- this.dispatchEvent(l), this.onToggleChange && this.onToggleChange(l);
33
+ this.dispatchEvent(o), this.onToggleChange && this.onToggleChange(o);
33
34
  };
34
- const r = f("toggle");
35
- this._toggleId = r.inputId, this._labelId = r.labelId, this._helperId = r.helperId, this._errorId = r.errorId, this.label = "", this.labelHidden = !1, this.noLabel = !1, this.checked = !1, this.size = "md", this.variant = "default", this.disabled = !1, this.readonly = !1, this.required = !1, this.invalid = !1, this.errorMessage = "", this.helpText = "", this.name = "", this.value = "";
35
+ const t = f("toggle");
36
+ this._toggleId = t.inputId, this._labelId = t.labelId, this._helperId = t.helperId, this._errorId = t.errorId, this.label = "", this.labelHidden = !1, this.noLabel = !1, this.checked = !1, this.size = "md", this.variant = "default", this.disabled = !1, this.readonly = !1, this.required = !1, this.invalid = !1, this.errorMessage = "", this.helpText = "", this.value = "", this.validationMessages = void 0;
37
+ }
38
+ // ─── FACE ─────────────────────────────────────────────────────────────────
39
+ /**
40
+ * FACE lifecycle: called when the parent form is reset.
41
+ * Restores checked to false and clears form value and validity.
42
+ */
43
+ formResetCallback() {
44
+ this.checked = !1, this._internals.setFormValue(null), this._internals.setValidity({}), this._syncStates();
45
+ }
46
+ /**
47
+ * Sync validity state to ElementInternals.
48
+ * Toggle has no inner <input> to delegate to, so required validation
49
+ * is implemented directly: unchecked + required = valueMissing.
50
+ */
51
+ _syncValidity() {
52
+ this.required && !this.checked ? this._internals.setValidity(
53
+ { valueMissing: !0 },
54
+ this.validationMessages?.valueMissing ?? "Please check this field."
55
+ ) : this._internals.setValidity({});
56
+ }
57
+ /**
58
+ * Sync CustomStateSet states so :state() pseudo-classes work from external CSS.
59
+ *
60
+ * Must be called AFTER _syncValidity() so that :state(invalid) reads the
61
+ * freshly-updated _internals.validity.valid value.
62
+ *
63
+ * Exposed states:
64
+ * :state(checked) — toggle is on
65
+ * :state(disabled) — toggle is disabled
66
+ * :state(readonly) — toggle is read-only
67
+ * :state(required) — toggle is required
68
+ * :state(invalid) — FACE constraint validation is failing
69
+ */
70
+ _syncStates() {
71
+ this._setState("checked", this.checked), this._setState("disabled", this.disabled), this._setState("readonly", this.readonly), this._setState("required", this.required), this._setState("invalid", !this._internals.validity.valid);
72
+ }
73
+ // ─── End FACE ─────────────────────────────────────────────────────────────
74
+ updated(t) {
75
+ super.updated(t), (t.has("disabled") || t.has("readonly")) && this._syncStates();
36
76
  }
37
77
  firstUpdated() {
38
- !this.label && !this.noLabel && console.warn("AgToggle: label property is required for accessibility.");
78
+ this._internals.setFormValue(this.checked ? this.value || "on" : null), this._syncValidity(), this._syncStates(), !this.label && !this.noLabel && console.warn("AgToggle: label property is required for accessibility.");
39
79
  }
40
80
  renderLabel() {
41
81
  if (!this.label || this.noLabel) return "";
42
- const r = [];
43
- return c(this.labelPosition) ? (r.push("ag-form-control__label--horizontal"), r.push(`ag-form-control__label--${this.labelPosition}`)) : this.labelPosition === "bottom" && r.push(`ag-form-control__label--${this.labelPosition}`), s`
82
+ const t = [];
83
+ return p(this.labelPosition) ? (t.push("ag-form-control__label--horizontal"), t.push(`ag-form-control__label--${this.labelPosition}`)) : this.labelPosition === "bottom" && t.push(`ag-form-control__label--${this.labelPosition}`), l`
44
84
  <label
45
85
  id=${this._labelId}
46
86
  for=${this._toggleId}
47
- class="ag-form-control__label ${this.labelHidden ? "ag-form-control__label--hidden" : ""} ${this.required ? "ag-form-control__label--required" : ""} ${r.join(" ")}"
87
+ class="ag-form-control__label ${this.labelHidden ? "ag-form-control__label--hidden" : ""} ${this.required ? "ag-form-control__label--required" : ""} ${t.join(" ")}"
48
88
  part="ag-toggle-label"
49
89
  >
50
90
  ${this.label}
@@ -52,22 +92,22 @@ const h = class h extends b {
52
92
  `;
53
93
  }
54
94
  render() {
55
- const r = m({
95
+ const t = y({
56
96
  helperId: this._helperId,
57
97
  errorId: this._errorId,
58
98
  hasHelper: !!this.helpText && !this.invalid,
59
99
  hasError: !!this.invalid && !!this.errorMessage
60
- }), a = this.helpText && !this.invalid ? s`<div class="ag-form-control__helper" id="${this._helperId}">
100
+ }), r = this.helpText && !this.invalid ? l`<div class="ag-form-control__helper" id="${this._helperId}">
61
101
  ${this.helpText}
62
- </div>` : "", l = this.invalid && this.errorMessage ? s`<div class="ag-form-control__error" id="${this._errorId}">
102
+ </div>` : "", o = this.invalid && this.errorMessage ? l`<div class="ag-form-control__error" id="${this._errorId}">
63
103
  ${this.errorMessage}
64
- </div>` : "", o = s`
104
+ </div>` : "", s = l`
65
105
  <button
66
106
  id="${this._toggleId}"
67
107
  role="switch"
68
108
  aria-checked="${this.checked}"
69
- aria-labelledby="${p(this.label && !this.noLabel ? this._labelId : void 0)}"
70
- aria-describedby="${p(r)}"
109
+ aria-labelledby="${c(this.label && !this.noLabel ? this._labelId : void 0)}"
110
+ aria-describedby="${c(t)}"
71
111
  ?disabled="${this.disabled}"
72
112
  class="ag-toggle ag-toggle--${this.size} ag-toggle--${this.variant}"
73
113
  part="ag-toggle-button"
@@ -84,28 +124,28 @@ const h = class h extends b {
84
124
  </span>
85
125
  </button>
86
126
  `;
87
- return c(this.labelPosition) ? s`
127
+ return p(this.labelPosition) ? l`
88
128
  <div class="ag-form-control--horizontal">
89
129
  ${this.renderLabel()}
90
- ${o}
130
+ ${s}
91
131
  </div>
92
- ${a}
93
- ${l}
94
- ` : this.labelPosition === "bottom" ? s`
132
+ ${r}
133
+ ${o}
134
+ ` : this.labelPosition === "bottom" ? l`
135
+ ${s}
136
+ ${r}
95
137
  ${o}
96
- ${a}
97
- ${l}
98
138
  ${this.renderLabel()}
99
- ` : s`
139
+ ` : l`
100
140
  ${this.renderLabel()}
141
+ ${s}
142
+ ${r}
101
143
  ${o}
102
- ${a}
103
- ${l}
104
144
  `;
105
145
  }
106
146
  };
107
147
  h.styles = [
108
- y,
148
+ _,
109
149
  u`
110
150
  /* MINIMALIST & THEMEABLE - Styling via --ag-* design tokens */
111
151
  :host {
@@ -269,56 +309,56 @@ h.styles = [
269
309
  `
270
310
  ];
271
311
  let e = h;
272
- i([
273
- t({ type: String })
312
+ a([
313
+ i({ type: String })
274
314
  ], e.prototype, "label");
275
- i([
276
- t({ type: String, attribute: "label-position" })
315
+ a([
316
+ i({ type: String, attribute: "label-position" })
277
317
  ], e.prototype, "labelPosition");
278
- i([
279
- t({ type: Boolean, attribute: "label-hidden" })
318
+ a([
319
+ i({ type: Boolean, attribute: "label-hidden" })
280
320
  ], e.prototype, "labelHidden");
281
- i([
282
- t({ type: Boolean, attribute: "no-label" })
321
+ a([
322
+ i({ type: Boolean, attribute: "no-label" })
283
323
  ], e.prototype, "noLabel");
284
- i([
285
- t({ type: Boolean, reflect: !0 })
324
+ a([
325
+ i({ type: Boolean, reflect: !0 })
286
326
  ], e.prototype, "checked");
287
- i([
288
- t({ type: String, reflect: !0 })
327
+ a([
328
+ i({ type: String, reflect: !0 })
289
329
  ], e.prototype, "size");
290
- i([
291
- t({ type: String, reflect: !0 })
330
+ a([
331
+ i({ type: String, reflect: !0 })
292
332
  ], e.prototype, "variant");
293
- i([
294
- t({ type: Boolean, reflect: !0 })
333
+ a([
334
+ i({ type: Boolean, reflect: !0 })
295
335
  ], e.prototype, "disabled");
296
- i([
297
- t({ type: Boolean, reflect: !0 })
336
+ a([
337
+ i({ type: Boolean, reflect: !0 })
298
338
  ], e.prototype, "readonly");
299
- i([
300
- t({ type: Boolean, reflect: !0 })
339
+ a([
340
+ i({ type: Boolean, reflect: !0 })
301
341
  ], e.prototype, "required");
302
- i([
303
- t({ type: Boolean, reflect: !0 })
342
+ a([
343
+ i({ type: Boolean, reflect: !0 })
304
344
  ], e.prototype, "invalid");
305
- i([
306
- t({ type: String, attribute: "error-message" })
345
+ a([
346
+ i({ type: String, attribute: "error-message" })
307
347
  ], e.prototype, "errorMessage");
308
- i([
309
- t({ type: String, attribute: "help-text" })
348
+ a([
349
+ i({ type: String, attribute: "help-text" })
310
350
  ], e.prototype, "helpText");
311
- i([
312
- t({ type: String })
313
- ], e.prototype, "name");
314
- i([
315
- t({ type: String })
351
+ a([
352
+ i({ type: String })
316
353
  ], e.prototype, "value");
317
- i([
318
- t({ attribute: !1 })
354
+ a([
355
+ i({ attribute: !1 })
319
356
  ], e.prototype, "onClick");
320
- i([
321
- t({ attribute: !1 })
357
+ a([
358
+ i({ attribute: !1 })
359
+ ], e.prototype, "validationMessages");
360
+ a([
361
+ i({ attribute: !1 })
322
362
  ], e.prototype, "onToggleChange");
323
363
  export {
324
364
  e as AgToggle
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../../VueToggle.vue_vue_type_script_setup_true_lang-BxrvAsse.js";
1
+ import { _ as f } from "../../../VueToggle.vue_vue_type_script_setup_true_lang-DLPCBOqZ.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1 +1 @@
1
- {"version":3,"file":"VueToggle.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Toggle/vue/VueToggle.vue"],"names":[],"mappings":"AAuBA;AAGA,OAAO,KAAK,EACV,WAAW,EAEX,uBAAuB,EACxB,MAAM,gBAAgB,CAAC;AACxB,OAAO,gBAAgB,CAAC;AAGxB,MAAM,WAAW,cACf,SAAQ,IAAI,CAAC,WAAW,EAAE,SAAS,GAAG,gBAAgB,CAAC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAyH5D,wBAOG;AACH,KAAK,sBAAsB,CAAC,CAAC,IAAI,CAAC,SAAS,SAAS,GAAG,KAAK,GAAG,CAAC,CAAC;AACjE,KAAK,6BAA6B,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,GAAG,EAAE,SAAS,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,sBAAsB,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAA;KAAE,GAAG;QAAE,IAAI,EAAE,OAAO,KAAK,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;QAAC,QAAQ,EAAE,IAAI,CAAA;KAAE;CAAE,CAAC;AA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AA;KAAE;CAAE,CAAC;AAC9M,KAAK,kBAAkB,CAAC,CAAC,EAAE,CAAC,IAAI;KAE1B,CAAC,IAAI,MAAM,IAAI,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,MAAM,CAAC,GAAG,cAAc,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG;QACxE,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAA;KACb,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CACT,CAAC;AACN,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { _ as r, _ as t } from "../../../VueToggle.vue_vue_type_script_setup_true_lang-BxrvAsse.js";
1
+ import { _ as r, _ as t } from "../../../VueToggle.vue_vue_type_script_setup_true_lang-DLPCBOqZ.js";
2
2
  import "../core/Toggle.js";
3
3
  export {
4
4
  r as VueToggle,
@@ -0,0 +1,82 @@
1
+ import { LitElement } from 'lit';
2
+
3
+ type Constructor<T = {}> = new (...args: any[]) => T;
4
+ /**
5
+ * Consumer-supplied validation messages for constraint validation.
6
+ * Each key maps to the corresponding ValidityState flag.
7
+ * Provided values override the built-in English fallback strings.
8
+ */
9
+ export interface ValidationMessages {
10
+ valueMissing?: string;
11
+ typeMismatch?: string;
12
+ patternMismatch?: string;
13
+ tooLong?: string;
14
+ tooShort?: string;
15
+ rangeUnderflow?: string;
16
+ rangeOverflow?: string;
17
+ stepMismatch?: string;
18
+ badInput?: string;
19
+ customError?: string;
20
+ }
21
+ /**
22
+ * Sync the validity state of an inner <input> or <textarea> to ElementInternals.
23
+ *
24
+ * This is the recommended delegation strategy: let the native input run its own
25
+ * constraint validation (required, minlength, type="email", pattern, etc.) and
26
+ * then mirror the result into ElementInternals so the host custom element's
27
+ * validity reflects the inner element.
28
+ *
29
+ * Call this on every `input` and `change` event, and once after `firstUpdated`.
30
+ *
31
+ * @param internals - The ElementInternals handle from attachInternals()
32
+ * @param inputEl - The inner native input, textarea, or select element
33
+ */
34
+ export declare function syncInnerInputValidity(internals: ElementInternals, inputEl: HTMLInputElement | HTMLTextAreaElement | HTMLSelectElement | null | undefined): void;
35
+ /**
36
+ * Type-level declaration of everything FaceMixin adds to a class.
37
+ *
38
+ * Using `declare class` (rather than `interface`) is the Lit-recommended approach
39
+ * for mixins that include protected members — it avoids TS4094 "anonymous class
40
+ * type may not be private or protected" errors in declaration emit.
41
+ *
42
+ * Import this type when you need to declare a FACE-capable component in type position.
43
+ */
44
+ export declare class FaceMixinInterface {
45
+ /** Registers this element as form-associated with the browser */
46
+ static readonly formAssociated: boolean;
47
+ /** ElementInternals handle — subclasses use this to call setFormValue/setValidity */
48
+ protected _internals: ElementInternals;
49
+ /** The name under which this control's value is submitted with the parent form */
50
+ name: string;
51
+ /** The parent <form> element, or null */
52
+ readonly form: HTMLFormElement | null;
53
+ /** Current ValidityState, updated via _internals.setValidity() */
54
+ readonly validity: ValidityState;
55
+ /** Browser-generated or custom validation message */
56
+ readonly validationMessage: string;
57
+ /** Whether this element participates in constraint validation */
58
+ readonly willValidate: boolean;
59
+ /** Silent validity check; fires 'invalid' event if invalid */
60
+ checkValidity(): boolean;
61
+ /** Validity check with browser tooltip if invalid */
62
+ reportValidity(): boolean;
63
+ /** FACE lifecycle — called when a fieldset disabled ancestor changes */
64
+ formDisabledCallback(disabled: boolean): void;
65
+ /** FACE lifecycle — called on form reset; subclasses should override */
66
+ formResetCallback(): void;
67
+ /**
68
+ * Toggle a custom state in ElementInternals.states (CustomStateSet).
69
+ * Enables :state() pseudo-class targeting from external CSS.
70
+ * Guards against environments where states is unavailable.
71
+ */
72
+ protected _setState(state: string, active: boolean): void;
73
+ }
74
+ /**
75
+ * FaceMixin
76
+ *
77
+ * Compose onto any LitElement subclass to get full FACE boilerplate.
78
+ * Subclasses MUST override `formResetCallback()` to restore their own default state.
79
+ */
80
+ export declare const FaceMixin: <T extends Constructor<LitElement>>(superClass: T) => Constructor<FaceMixinInterface> & T;
81
+ export {};
82
+ //# sourceMappingURL=face-mixin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"face-mixin.d.ts","sourceRoot":"","sources":["../../src/shared/face-mixin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,KAAK,CAAC;AAKjC,KAAK,WAAW,CAAC,CAAC,GAAG,EAAE,IAAI,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;AAErD;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,sBAAsB,CACpC,SAAS,EAAE,gBAAgB,EAC3B,OAAO,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,iBAAiB,GAAG,IAAI,GAAG,SAAS,GACrF,IAAI,CAQN;AAED;;;;;;;;GAQG;AACH,MAAM,CAAC,OAAO,OAAO,kBAAkB;IACrC,iEAAiE;IACjE,MAAM,CAAC,QAAQ,CAAC,cAAc,EAAE,OAAO,CAAC;IACxC,qFAAqF;IACrF,SAAS,CAAC,UAAU,EAAE,gBAAgB,CAAC;IACvC,kFAAkF;IAClF,IAAI,EAAE,MAAM,CAAC;IACb,yCAAyC;IACzC,QAAQ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