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,22 +1,55 @@
1
- import { LitElement as y, css as w, html as h, svg as g } from "lit";
1
+ import { LitElement as b, css as w, html as h, svg as g } from "lit";
2
2
  import { n as o } from "../../../property-CemaeiRl.js";
3
- import { r as p } from "../../../state-CovhUvdr.js";
3
+ import { r as v } from "../../../state-CovhUvdr.js";
4
4
  import { o as f } from "../../../if-defined-C8i28hSj.js";
5
- import { createFormControlIds as $, isHorizontalLabel as m, buildAriaDescribedBy as P } from "../../../shared/form-control-utils.js";
6
- import { formControlStyles as _ } from "../../../shared/form-control-styles.js";
5
+ import { createFormControlIds as _, isHorizontalLabel as m, buildAriaDescribedBy as $ } from "../../../shared/form-control-utils.js";
6
+ import { formControlStyles as P } from "../../../shared/form-control-styles.js";
7
+ import { FaceMixin as V } from "../../../shared/face-mixin.js";
7
8
  var C = Object.defineProperty, s = (u, e, i, t) => {
8
- for (var r = void 0, n = u.length - 1, l; n >= 0; n--)
9
- (l = u[n]) && (r = l(e, i, r) || r);
10
- return r && C(e, i, r), r;
9
+ for (var a = void 0, l = u.length - 1, n; l >= 0; l--)
10
+ (n = u[l]) && (a = n(e, i, a) || a);
11
+ return a && C(e, i, a), a;
11
12
  };
12
13
  let H = 0;
13
- const v = class v extends y {
14
+ const p = class p extends V(b) {
14
15
  // Flag for pointer down state
15
16
  constructor() {
16
17
  super(), this.uniqueId = ++H, this._ratingId = "", this._labelId = "", this._helperId = "", this._errorId = "", this.labelPosition = "top", this.hoverValue = 0, this.isHovering = !1, this.isPointerDown = !1;
17
- const e = $("rating");
18
- this._ratingId = e.inputId, this._labelId = e.labelId, this._helperId = e.helperId, this._errorId = e.errorId, this.value = 0, this.max = 5, this.precision = "whole", this.readonly = !1, this.allowClear = !1, this.variant = "", this.size = "md", this.name = "", this.label = "", this.labelHidden = !1, this.noLabel = !1, this.required = !1, this.invalid = !1, this.errorMessage = "", this.helpText = "", this.handlePointerMove = this.handlePointerMove.bind(this), this.handlePointerUp = this.handlePointerUp.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this);
18
+ const e = _("rating");
19
+ this._ratingId = e.inputId, this._labelId = e.labelId, this._helperId = e.helperId, this._errorId = e.errorId, this.value = 0, this.max = 5, this.precision = "whole", this.readonly = !1, this.allowClear = !1, this.variant = "", this.size = "md", this.label = "", this.labelHidden = !1, this.noLabel = !1, this.required = !1, this.invalid = !1, this.errorMessage = "", this.helpText = "", this.validationMessages = void 0, this.handlePointerMove = this.handlePointerMove.bind(this), this.handlePointerUp = this.handlePointerUp.bind(this), this.handleKeyDown = this.handleKeyDown.bind(this);
19
20
  }
21
+ // ─── FACE ─────────────────────────────────────────────────────────────────
22
+ /**
23
+ * Sync the form value to ElementInternals.
24
+ * Submits the numeric rating as a string, or null when value is 0 (no rating).
25
+ */
26
+ _syncFormValue() {
27
+ this._internals.setFormValue(this.value > 0 ? String(this.value) : null);
28
+ }
29
+ /**
30
+ * Sync validity. No inner input to delegate to, so we implement required
31
+ * directly: a rating of 0 with required=true is valueMissing.
32
+ */
33
+ _syncValidity() {
34
+ this.required && this.value === 0 ? this._internals.setValidity(
35
+ { valueMissing: !0 },
36
+ this.validationMessages?.valueMissing ?? "Please select a rating."
37
+ ) : this._internals.setValidity({});
38
+ }
39
+ firstUpdated() {
40
+ this._syncFormValue(), this._syncValidity();
41
+ }
42
+ updated(e) {
43
+ super.updated(e), e.has("value") && (this._syncFormValue(), this._syncValidity());
44
+ }
45
+ /**
46
+ * FACE lifecycle: called when the parent form is reset.
47
+ * Restores rating to 0 (no selection).
48
+ */
49
+ formResetCallback() {
50
+ this.value = 0, this._internals.setFormValue(null), this._internals.setValidity({});
51
+ }
52
+ // ─── End FACE ─────────────────────────────────────────────────────────────
20
53
  connectedCallback() {
21
54
  super.connectedCallback(), this.addEventListener("keydown", this.handleKeyDown);
22
55
  }
@@ -38,16 +71,16 @@ const v = class v extends y {
38
71
  `;
39
72
  }
40
73
  render() {
41
- const e = this.isHovering ? this.hoverValue : this.value, i = Array.from({ length: this.max }, (d, b) => b + 1), t = P({
74
+ const e = this.isHovering ? this.hoverValue : this.value, i = Array.from({ length: this.max }, (d, y) => y + 1), t = $({
42
75
  helperId: this._helperId,
43
76
  errorId: this._errorId,
44
77
  hasHelper: !!this.helpText && !this.invalid,
45
78
  hasError: !!this.invalid && !!this.errorMessage
46
- }), r = this.helpText && !this.invalid ? h`<div class="ag-form-control__helper" id="${this._helperId}">
79
+ }), a = this.helpText && !this.invalid ? h`<div class="ag-form-control__helper" id="${this._helperId}">
47
80
  ${this.helpText}
48
- </div>` : "", n = this.invalid && this.errorMessage ? h`<div class="ag-form-control__error" id="${this._errorId}">
81
+ </div>` : "", l = this.invalid && this.errorMessage ? h`<div class="ag-form-control__error" id="${this._errorId}">
49
82
  ${this.errorMessage}
50
- </div>` : "", l = h`
83
+ </div>` : "", n = h`
51
84
  <div
52
85
  id="${this._ratingId}"
53
86
  class="rating"
@@ -76,24 +109,24 @@ const v = class v extends y {
76
109
  return m(this.labelPosition) ? h`
77
110
  <div class="ag-form-control--horizontal">
78
111
  ${this.renderLabel()}
79
- ${l}
112
+ ${n}
80
113
  </div>
81
- ${r}
82
- ${n}
83
- ` : this.labelPosition === "bottom" ? h`
114
+ ${a}
84
115
  ${l}
85
- ${r}
116
+ ` : this.labelPosition === "bottom" ? h`
86
117
  ${n}
118
+ ${a}
119
+ ${l}
87
120
  ${this.renderLabel()}
88
121
  ` : h`
89
122
  ${this.renderLabel()}
90
- ${l}
91
- ${r}
92
123
  ${n}
124
+ ${a}
125
+ ${l}
93
126
  `;
94
127
  }
95
128
  renderStar(e, i) {
96
- const t = i >= e, r = !t && i >= e - 0.5 && this.precision === "half", n = t || r ? "filled" : "", l = this.isHovering && this.hoverValue >= e ? "hover" : "", c = `ag-rating-half-${this.uniqueId}-${e}`;
129
+ const t = i >= e, a = !t && i >= e - 0.5 && this.precision === "half", l = t || a ? "filled" : "", n = this.isHovering && this.hoverValue >= e ? "hover" : "", c = `ag-rating-half-${this.uniqueId}-${e}`;
97
130
  return h`
98
131
  <span
99
132
  class="star-button"
@@ -102,8 +135,8 @@ const v = class v extends y {
102
135
  aria-label="${e} star"
103
136
  title="${e} star"
104
137
  >
105
- <span class="star ${n} ${l}" part="star" data-star="${e}">
106
- ${this.renderStarSvg(t, r, c)}
138
+ <span class="star ${l} ${n}" part="star" data-star="${e}">
139
+ ${this.renderStarSvg(t, a, c)}
107
140
  </span>
108
141
  </span>
109
142
  `;
@@ -131,14 +164,14 @@ const v = class v extends y {
131
164
  getValueFromClientX(e) {
132
165
  const i = this.shadowRoot?.querySelector(".rating");
133
166
  if (!i) return 0;
134
- const t = i.getBoundingClientRect(), r = Math.max(0, Math.min(e - t.left, t.width)), l = (t.width > 0 ? r / t.width : 0) * this.max;
135
- return this.roundToPrecision(l);
167
+ const t = i.getBoundingClientRect(), a = Math.max(0, Math.min(e - t.left, t.width)), n = (t.width > 0 ? a / t.width : 0) * this.max;
168
+ return this.roundToPrecision(n);
136
169
  }
137
170
  handleClickStar(e, i) {
138
171
  if (e.stopPropagation(), this.readonly) return;
139
172
  const t = this.value;
140
- let r = (this.precision === "half", i);
141
- this.allowClear && r === t && (r = 0), this.commitValue(r, t);
173
+ let a = (this.precision === "half", i);
174
+ this.allowClear && a === t && (a = 0), this.commitValue(a, t);
142
175
  }
143
176
  handlePointerEnter(e) {
144
177
  }
@@ -163,9 +196,9 @@ const v = class v extends y {
163
196
  }
164
197
  handlePointerUp(e) {
165
198
  if (this.readonly) return;
166
- const i = e.clientX, t = this.getValueFromClientX(i), r = this.value;
167
- let n = t;
168
- this.allowClear && n === r && (n = 0), this.commitValue(n, r), this.isPointerDown = !1, this.isHovering = !1, this.hoverValue = 0, this.emitHoverEvent("end", t), this.removeGlobalPointerListeners();
199
+ const i = e.clientX, t = this.getValueFromClientX(i), a = this.value;
200
+ let l = t;
201
+ this.allowClear && l === a && (l = 0), this.commitValue(l, a), this.isPointerDown = !1, this.isHovering = !1, this.hoverValue = 0, this.emitHoverEvent("end", t), this.removeGlobalPointerListeners();
169
202
  }
170
203
  removeGlobalPointerListeners() {
171
204
  window.removeEventListener("pointermove", this.handlePointerMove), window.removeEventListener("pointerup", this.handlePointerUp);
@@ -177,13 +210,13 @@ const v = class v extends y {
177
210
  }
178
211
  commitValue(e, i) {
179
212
  const t = this.roundToPrecision(e);
180
- this.value = t;
181
- const r = new CustomEvent("rating-change", {
213
+ this.value = t, this._syncFormValue(), this._syncValidity();
214
+ const a = new CustomEvent("rating-change", {
182
215
  detail: { oldValue: i, newValue: t },
183
216
  bubbles: !0,
184
217
  composed: !0
185
218
  });
186
- this.dispatchEvent(r), this.onRatingChange && this.onRatingChange(r);
219
+ this.dispatchEvent(a), this.onRatingChange && this.onRatingChange(a);
187
220
  }
188
221
  emitHoverEvent(e, i) {
189
222
  const t = new CustomEvent("rating-hover", {
@@ -194,8 +227,8 @@ const v = class v extends y {
194
227
  this.dispatchEvent(t), this.onRatingHover && this.onRatingHover(t);
195
228
  }
196
229
  };
197
- v.styles = [
198
- _,
230
+ p.styles = [
231
+ P,
199
232
  w`
200
233
  :host {
201
234
  display: block;
@@ -305,70 +338,70 @@ v.styles = [
305
338
  }
306
339
  `
307
340
  ];
308
- let a = v;
341
+ let r = p;
309
342
  s([
310
343
  o({ type: Number })
311
- ], a.prototype, "value");
344
+ ], r.prototype, "value");
312
345
  s([
313
346
  o({ type: Number })
314
- ], a.prototype, "max");
347
+ ], r.prototype, "max");
315
348
  s([
316
349
  o({ type: String })
317
- ], a.prototype, "precision");
350
+ ], r.prototype, "precision");
318
351
  s([
319
352
  o({ type: Boolean, reflect: !0 })
320
- ], a.prototype, "readonly");
353
+ ], r.prototype, "readonly");
321
354
  s([
322
355
  o({ type: Boolean })
323
- ], a.prototype, "allowClear");
356
+ ], r.prototype, "allowClear");
324
357
  s([
325
358
  o({ type: String, reflect: !0 })
326
- ], a.prototype, "variant");
359
+ ], r.prototype, "variant");
327
360
  s([
328
361
  o({ type: String, reflect: !0 })
329
- ], a.prototype, "size");
362
+ ], r.prototype, "size");
330
363
  s([
331
364
  o({ type: String })
332
- ], a.prototype, "name");
333
- s([
334
- o({ type: String })
335
- ], a.prototype, "label");
365
+ ], r.prototype, "label");
336
366
  s([
337
367
  o({ type: String, attribute: "label-position" })
338
- ], a.prototype, "labelPosition");
368
+ ], r.prototype, "labelPosition");
339
369
  s([
340
370
  o({ type: Boolean, attribute: "label-hidden" })
341
- ], a.prototype, "labelHidden");
371
+ ], r.prototype, "labelHidden");
342
372
  s([
343
373
  o({ type: Boolean, attribute: "no-label" })
344
- ], a.prototype, "noLabel");
374
+ ], r.prototype, "noLabel");
345
375
  s([
346
376
  o({ type: Boolean, reflect: !0 })
347
- ], a.prototype, "required");
377
+ ], r.prototype, "required");
348
378
  s([
349
379
  o({ type: Boolean, reflect: !0 })
350
- ], a.prototype, "invalid");
380
+ ], r.prototype, "invalid");
351
381
  s([
352
382
  o({ type: String, attribute: "error-message" })
353
- ], a.prototype, "errorMessage");
383
+ ], r.prototype, "errorMessage");
354
384
  s([
355
385
  o({ type: String, attribute: "help-text" })
356
- ], a.prototype, "helpText");
386
+ ], r.prototype, "helpText");
387
+ s([
388
+ o({ attribute: !1 })
389
+ ], r.prototype, "validationMessages");
357
390
  s([
358
391
  o({ attribute: !1 })
359
- ], a.prototype, "onRatingChange");
392
+ ], r.prototype, "onRatingChange");
360
393
  s([
361
394
  o({ attribute: !1 })
362
- ], a.prototype, "onRatingHover");
395
+ ], r.prototype, "onRatingHover");
363
396
  s([
364
- p()
365
- ], a.prototype, "hoverValue");
397
+ v()
398
+ ], r.prototype, "hoverValue");
366
399
  s([
367
- p()
368
- ], a.prototype, "isHovering");
400
+ v()
401
+ ], r.prototype, "isHovering");
369
402
  s([
370
- p()
371
- ], a.prototype, "isPointerDown");
403
+ v()
404
+ ], r.prototype, "isPointerDown");
372
405
  export {
373
- a as AgRating
406
+ r as AgRating
374
407
  };
@@ -1,4 +1,4 @@
1
- import { _ as f } from "../../../VueRating.vue_vue_type_script_setup_true_lang-CICncp71.js";
1
+ import { _ as f } from "../../../VueRating.vue_vue_type_script_setup_true_lang-Bm2nRrqr.js";
2
2
  export {
3
3
  f as default
4
4
  };
@@ -1,3 +1,4 @@
1
+ import { ValidationMessages } from '../../../shared/face-mixin';
1
2
 
2
3
  /**
3
4
  * Vue Rating Props
@@ -22,6 +23,7 @@ export interface VueRatingProps {
22
23
  invalid?: boolean;
23
24
  errorMessage?: string;
24
25
  helpText?: string;
26
+ validationMessages?: ValidationMessages;
25
27
  }
26
28
  declare function __VLS_template(): {
27
29
  default?(_: {}): any;
@@ -1 +1 @@
1
- {"version":3,"file":"VueRating.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Rating/vue/VueRating.vue"],"names":[],"mappings":"AA0BA;AAGA,OAAO,gBAAgB,CAAC;AAExB;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,OAAO,CAAC,EACJ,EAAE,GACF,SAAS,GACT,WAAW,GACX,SAAS,GACT,SAAS,GACT,QAAQ,GACR,YAAY,CAAC;IACjB,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,CAAC;IACnD,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAqED,iBAAS,cAAc;qBA+CO,GAAG;EAKhC;AAYD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;kBA5GU,MAAM;kBAAY,MAAM;;;eAC5B,OAAO,GAAG,MAAM,GAAG,KAAK;eAAS,MAAM;;;;;;;;;;;;;;;;;;;;;;kBADnC,MAAM;kBAAY,MAAM;;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E;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;AACxD,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAAE,QAAO;QAClD,MAAM,EAAE,CAAC,CAAC;KACT,CAAA;CAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { _ as t, _ as f } from "../../../VueRating.vue_vue_type_script_setup_true_lang-CICncp71.js";
1
+ import { _ as t, _ as f } from "../../../VueRating.vue_vue_type_script_setup_true_lang-Bm2nRrqr.js";
2
2
  export {
3
3
  t as VueRating,
4
4
  f as default
@@ -25,6 +25,7 @@ export interface SelectProps {
25
25
  onBlur?: (event: FocusEvent) => void;
26
26
  onChange?: (event: SelectChangeEvent) => void;
27
27
  }
28
+ declare const Select_base: (new (...args: any[]) => import('../../../shared/face-mixin').FaceMixinInterface) & typeof LitElement;
28
29
  /**
29
30
  * Select component - A lightly styled native select element
30
31
  *
@@ -34,11 +35,10 @@ export interface SelectProps {
34
35
  *
35
36
  * @fires change - Emitted when selection changes
36
37
  */
37
- export declare class Select extends LitElement implements SelectProps {
38
+ export declare class Select extends Select_base implements SelectProps {
38
39
  size: SelectSize;
39
40
  multiple: boolean;
40
41
  disabled: boolean;
41
- name: string;
42
42
  multipleSize?: number;
43
43
  label: string;
44
44
  labelPosition: LabelPosition;
@@ -53,6 +53,23 @@ export declare class Select extends LitElement implements SelectProps {
53
53
  onBlur?: (event: FocusEvent) => void;
54
54
  onChange?: (event: SelectChangeEvent) => void;
55
55
  private selectElement;
56
+ /**
57
+ * FACE lifecycle: called when the parent form is reset.
58
+ * Restores each option to its defaultSelected state (the `selected`
59
+ * attribute from the original HTML), then re-syncs the form value.
60
+ */
61
+ formResetCallback(): void;
62
+ /**
63
+ * Sync the form value to ElementInternals.
64
+ * Single select: submits the selected value as a string.
65
+ * Multi-select: uses the FormData overload to submit all selected values
66
+ * under the same key (matching native <select multiple> behavior).
67
+ */
68
+ private _syncFormValue;
69
+ /**
70
+ * Sync validity to ElementInternals by delegating to the inner <select>.
71
+ */
72
+ private _syncValidity;
56
73
  protected firstUpdated(): void;
57
74
  private handleSlotChange;
58
75
  static styles: import('lit').CSSResult[];
@@ -68,4 +85,5 @@ declare global {
68
85
  'ag-select': Select;
69
86
  }
70
87
  }
88
+ export {};
71
89
  //# sourceMappingURL=_Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"_Select.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/core/_Select.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,MAAM,KAAK,CAAC;AAE5C,OAAO,EAIL,KAAK,aAAa,EACnB,MAAM,oCAAoC,CAAC;AAG5C,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,EAAE,CAAC;AAGhD,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;CAC1B;AACD,MAAM,MAAM,iBAAiB,GAAG,WAAW,CAAC,uBAAuB,CAAC,CAAC;AAErE,MAAM,WAAW,WAAW;IAC1B,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IAEtB,KAA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