@uh-design-system/component-library 0.5.2 → 0.6.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 (243) hide show
  1. package/dist/cjs/{utils-3412cbed.js → attributes-BMbXzbwU.js} +2 -28
  2. package/dist/cjs/component-library.cjs.js +7 -7
  3. package/dist/cjs/controlUtils-ofqiQxRF.js +42 -0
  4. package/dist/cjs/ds-accordion.cjs.entry.js +79 -0
  5. package/dist/cjs/ds-button.cjs.entry.js +107 -0
  6. package/dist/cjs/ds-card.cjs.entry.js +58 -0
  7. package/dist/cjs/ds-checkbox-group.cjs.entry.js +109 -49
  8. package/dist/cjs/ds-checkbox.cjs.entry.js +88 -79
  9. package/dist/cjs/ds-icon.cjs.entry.js +943 -0
  10. package/dist/cjs/ds-input-validity.cjs.entry.js +14 -15
  11. package/dist/cjs/ds-link-with-arrow.cjs.entry.js +21 -20
  12. package/dist/cjs/ds-link.cjs.entry.js +34 -31
  13. package/dist/cjs/ds-radio-button-group.cjs.entry.js +153 -0
  14. package/dist/cjs/ds-radio-button.cjs.entry.js +151 -0
  15. package/dist/cjs/ds-spinner.cjs.entry.js +62 -0
  16. package/dist/cjs/ds-text-input.cjs.entry.js +90 -77
  17. package/dist/cjs/ds-visually-hidden.cjs.entry.js +3 -6
  18. package/dist/cjs/index-Bp6Dd2i1.js +94 -0
  19. package/dist/cjs/{store-9bd20f3c.js → index-DwLFyR5p.js} +6 -2
  20. package/dist/cjs/{index-bf84b124.js → index-Mjp9Y-Sw.js} +701 -55
  21. package/dist/cjs/index.cjs.js +3 -5
  22. package/dist/cjs/{linkUtils-695da37c.js → linkUtils-onlbgKdI.js} +4 -2
  23. package/dist/cjs/loader.cjs.js +3 -5
  24. package/dist/cjs/utils-BjZTECpy.js +29 -0
  25. package/dist/collection/accessibility/stories/naming.stories.js +3 -3
  26. package/dist/collection/collection-manifest.json +78 -3
  27. package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.css +18 -17
  28. package/dist/collection/components/01-base-components/ds-accordion/ds-accordion.js +91 -50
  29. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.examples.stories.js +6 -6
  30. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.features.stories.js +14 -14
  31. package/dist/collection/components/01-base-components/ds-accordion/stories/ds-accordion.stories.js +24 -66
  32. package/dist/collection/components/01-base-components/ds-button/ds-button.css +124 -145
  33. package/dist/collection/components/01-base-components/ds-button/ds-button.js +150 -65
  34. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.examples.stories.js +121 -23
  35. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.features.stories.js +49 -42
  36. package/dist/collection/components/01-base-components/ds-button/stories/ds-button.stories.js +16 -72
  37. package/dist/collection/components/01-base-components/ds-card/ds-card.css +127 -0
  38. package/dist/collection/components/01-base-components/ds-card/ds-card.js +303 -0
  39. package/dist/collection/components/01-base-components/ds-card/stories/ds-card.examples.stories.js +92 -0
  40. package/dist/collection/components/01-base-components/ds-card/stories/ds-card.features.stories.js +66 -0
  41. package/dist/collection/components/01-base-components/ds-card/stories/ds-card.stories.js +71 -0
  42. package/dist/collection/components/01-base-components/ds-checkbox/ds-checkbox.css +46 -46
  43. package/dist/collection/components/01-base-components/ds-checkbox/ds-checkbox.js +120 -111
  44. package/dist/collection/components/01-base-components/ds-checkbox/stories/ds-checkbox.features.stories.js +20 -20
  45. package/dist/collection/components/01-base-components/ds-checkbox/stories/ds-checkbox.stories.js +12 -25
  46. package/dist/collection/components/01-base-components/ds-checkbox-group/ds-checkbox-group.css +2 -3
  47. package/dist/collection/components/01-base-components/ds-checkbox-group/ds-checkbox-group.js +214 -63
  48. package/dist/collection/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.features.stories.js +215 -50
  49. package/dist/collection/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.stories.js +30 -28
  50. package/dist/collection/components/01-base-components/ds-icon/ds-icon.js +36 -31
  51. package/dist/collection/components/01-base-components/ds-icon/stories/ds-icon.stories.js +10 -37
  52. package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.css +2 -2
  53. package/dist/collection/components/01-base-components/ds-input-validity/ds-input-validity.js +60 -30
  54. package/dist/collection/components/01-base-components/ds-input-validity/stories/ds-input-validity.features.stories.js +4 -4
  55. package/dist/collection/components/01-base-components/ds-input-validity/stories/ds-input-validity.stories.js +4 -9
  56. package/dist/collection/components/01-base-components/ds-link/ds-link.css +24 -14
  57. package/dist/collection/components/01-base-components/ds-link/ds-link.js +74 -75
  58. package/dist/collection/components/01-base-components/ds-link/stories/ds-link.examples.stories.js +27 -27
  59. package/dist/collection/components/01-base-components/ds-link/stories/ds-link.features.stories.js +38 -21
  60. package/dist/collection/components/01-base-components/ds-link/stories/ds-link.stories.js +8 -67
  61. package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.css +10 -12
  62. package/dist/collection/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.js +30 -52
  63. package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.examples.stories.js +4 -4
  64. package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.features.stories.js +6 -6
  65. package/dist/collection/components/01-base-components/ds-link-with-arrow/stories/ds-link-with-arrow.stories.js +4 -28
  66. package/dist/collection/components/01-base-components/ds-radio-button/ds-radio-button.css +115 -0
  67. package/dist/collection/components/01-base-components/ds-radio-button/ds-radio-button.js +449 -0
  68. package/dist/collection/components/01-base-components/ds-radio-button/stories/ds-radio-button.features.stories.js +72 -0
  69. package/dist/collection/components/01-base-components/ds-radio-button/stories/ds-radio-button.stories.js +22 -0
  70. package/dist/collection/components/01-base-components/ds-radio-button-group/ds-radio-button-group.css +30 -0
  71. package/dist/collection/components/01-base-components/ds-radio-button-group/ds-radio-button-group.js +360 -0
  72. package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.examples.stories.js +42 -0
  73. package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.features.stories.js +71 -0
  74. package/dist/collection/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.stories.js +60 -0
  75. package/dist/collection/components/01-base-components/ds-spinner/ds-spinner.css +279 -0
  76. package/dist/collection/components/01-base-components/ds-spinner/ds-spinner.js +221 -0
  77. package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.examples.stories.js +120 -0
  78. package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.features.stories.js +107 -0
  79. package/dist/collection/components/01-base-components/ds-spinner/stories/ds-spinner.stories.js +14 -0
  80. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.css +85 -118
  81. package/dist/collection/components/01-base-components/ds-text-input/ds-text-input.js +230 -155
  82. package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.examples.stories.js +26 -21
  83. package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.features.stories.js +40 -40
  84. package/dist/collection/components/01-base-components/ds-text-input/stories/ds-text-input.stories.js +30 -56
  85. package/dist/collection/components/01-base-components/ds-visually-hidden/ds-visually-hidden.js +1 -1
  86. package/dist/collection/store.js +7 -1
  87. package/dist/collection/utils/attributes/attributes.js +2 -2
  88. package/dist/collection/utils/button/buttonUtils.js +14 -0
  89. package/dist/collection/utils/colours/colourTypes.js +3 -3
  90. package/dist/collection/utils/colours/colourUtils.js +5 -3
  91. package/dist/collection/utils/controls/controlUtils.js +35 -1
  92. package/dist/collection/utils/link/linkUtils.js +3 -2
  93. package/dist/collection/utils/spinner/spinnerUtils.js +20 -0
  94. package/dist/collection/utils/tests/testUtils.js +1 -0
  95. package/dist/collection/utils/typography/typographyUtils.js +3 -3
  96. package/dist/collection/utils/utils.js +10 -9
  97. package/dist/component-library/{utils-cfc536bc.js → attributes-BD_lNRxn.js} +1 -1
  98. package/dist/component-library/component-library.css +1 -1
  99. package/dist/component-library/component-library.esm.js +1 -1
  100. package/dist/component-library/controlUtils-CNER0MvM.js +1 -0
  101. package/dist/component-library/ds-accordion.entry.js +1 -0
  102. package/dist/component-library/ds-button.entry.js +1 -0
  103. package/dist/component-library/ds-card.entry.js +1 -0
  104. package/dist/component-library/ds-checkbox-group.entry.js +1 -1
  105. package/dist/component-library/ds-checkbox.entry.js +1 -1
  106. package/dist/component-library/ds-icon.entry.js +1 -0
  107. package/dist/component-library/ds-input-validity.entry.js +1 -1
  108. package/dist/component-library/ds-link-with-arrow.entry.js +1 -1
  109. package/dist/component-library/ds-link.entry.js +1 -1
  110. package/dist/component-library/ds-radio-button-group.entry.js +1 -0
  111. package/dist/component-library/ds-radio-button.entry.js +1 -0
  112. package/dist/component-library/ds-spinner.entry.js +1 -0
  113. package/dist/component-library/ds-text-input.entry.js +1 -1
  114. package/dist/component-library/ds-visually-hidden.entry.js +1 -1
  115. package/dist/component-library/index-BfTCfPZ1.js +6 -0
  116. package/dist/component-library/index-Cm7V4EAn.js +2 -0
  117. package/dist/component-library/index-DuYjhvTn.js +1 -0
  118. package/dist/component-library/index.esm.js +1 -1
  119. package/dist/component-library/linkUtils-02nCfO0F.js +1 -0
  120. package/dist/component-library/utils-CqaqnfY4.js +1 -0
  121. package/dist/components/attributes.js +3 -3
  122. package/dist/components/controlUtils.js +35 -2
  123. package/dist/components/ds-accordion.js +58 -42
  124. package/dist/components/ds-button2.js +78 -39
  125. package/dist/components/ds-card.d.ts +11 -0
  126. package/dist/components/ds-card.js +91 -0
  127. package/dist/components/ds-checkbox-group.js +116 -56
  128. package/dist/components/ds-checkbox2.js +93 -80
  129. package/dist/components/ds-icon2.js +292 -292
  130. package/dist/components/ds-input-validity2.js +17 -14
  131. package/dist/components/ds-link-with-arrow.js +22 -22
  132. package/dist/components/ds-link.js +43 -40
  133. package/dist/components/ds-radio-button-group.d.ts +11 -0
  134. package/dist/components/ds-radio-button-group.js +185 -0
  135. package/dist/components/ds-radio-button.d.ts +11 -0
  136. package/dist/components/ds-radio-button.js +198 -0
  137. package/dist/components/ds-spinner.d.ts +11 -0
  138. package/dist/components/ds-spinner.js +6 -0
  139. package/dist/components/ds-spinner2.js +89 -0
  140. package/dist/components/ds-text-input.js +126 -104
  141. package/dist/components/ds-visually-hidden2.js +2 -3
  142. package/dist/components/index.js +208 -2
  143. package/dist/components/index2.js +713 -39
  144. package/dist/components/index3.js +69 -57
  145. package/dist/components/linkUtils.js +4 -2
  146. package/dist/docs.d.ts +443 -0
  147. package/dist/docs.json +4790 -0
  148. package/dist/esm/{utils-cfc536bc.js → attributes-BD_lNRxn.js} +3 -26
  149. package/dist/esm/component-library.js +6 -5
  150. package/dist/esm/controlUtils-CNER0MvM.js +37 -0
  151. package/dist/esm/ds-accordion.entry.js +77 -0
  152. package/dist/esm/ds-button.entry.js +105 -0
  153. package/dist/esm/ds-card.entry.js +56 -0
  154. package/dist/esm/ds-checkbox-group.entry.js +108 -46
  155. package/dist/esm/ds-checkbox.entry.js +78 -67
  156. package/dist/esm/ds-icon.entry.js +941 -0
  157. package/dist/esm/ds-input-validity.entry.js +14 -13
  158. package/dist/esm/ds-link-with-arrow.entry.js +21 -18
  159. package/dist/esm/ds-link.entry.js +34 -29
  160. package/dist/esm/ds-radio-button-group.entry.js +151 -0
  161. package/dist/esm/ds-radio-button.entry.js +149 -0
  162. package/dist/esm/ds-spinner.entry.js +60 -0
  163. package/dist/esm/ds-text-input.entry.js +88 -73
  164. package/dist/esm/ds-visually-hidden.entry.js +3 -4
  165. package/dist/esm/index-BfTCfPZ1.js +92 -0
  166. package/dist/esm/{index-434995e1.js → index-Cm7V4EAn.js} +699 -34
  167. package/dist/{components/store.js → esm/index-DuYjhvTn.js} +6 -3
  168. package/dist/esm/index.js +2 -2
  169. package/dist/esm/{linkUtils-3d1b28cf.js → linkUtils-02nCfO0F.js} +4 -2
  170. package/dist/esm/loader.js +4 -4
  171. package/dist/esm/utils-CqaqnfY4.js +25 -0
  172. package/dist/hydrate/index.d.ts +271 -0
  173. package/dist/hydrate/index.js +22280 -0
  174. package/dist/hydrate/index.mjs +22272 -0
  175. package/dist/hydrate/package.json +12 -0
  176. package/dist/styles/helpers.css +15 -0
  177. package/dist/styles/helpers.css.map +1 -0
  178. package/dist/styles/mixins/_breakpoints.scss +13 -0
  179. package/dist/styles/mixins/_focus.scss +26 -0
  180. package/dist/styles/mixins/_wrapper.scss +5 -0
  181. package/dist/styles/mixins/imports-default/_imports.scss +2 -0
  182. package/dist/styles/mixins/tokens/_breakpoints.scss +13 -0
  183. package/dist/styles/mixins/tokens/_semantic-colours.scss +75 -0
  184. package/dist/styles/mixins.scss +12 -0
  185. package/dist/styles/variables.css +176 -0
  186. package/dist/styles/variables.css.map +1 -0
  187. package/dist/types/components/01-base-components/ds-accordion/ds-accordion.d.ts +11 -8
  188. package/dist/types/components/01-base-components/ds-button/ds-button.d.ts +16 -11
  189. package/dist/types/components/01-base-components/ds-button/stories/ds-button.examples.stories.d.ts +1 -0
  190. package/dist/types/components/01-base-components/ds-button/stories/ds-button.features.stories.d.ts +1 -0
  191. package/dist/types/components/01-base-components/ds-card/ds-card.d.ts +20 -0
  192. package/dist/types/components/01-base-components/ds-card/stories/ds-card.examples.stories.d.ts +8 -0
  193. package/dist/types/components/01-base-components/ds-card/stories/ds-card.features.stories.d.ts +8 -0
  194. package/dist/types/components/01-base-components/ds-card/stories/ds-card.stories.d.ts +7 -0
  195. package/dist/types/components/01-base-components/ds-checkbox/ds-checkbox.d.ts +21 -22
  196. package/dist/types/components/01-base-components/ds-checkbox-group/ds-checkbox-group.d.ts +21 -11
  197. package/dist/types/components/01-base-components/ds-checkbox-group/stories/ds-checkbox-group.features.stories.d.ts +3 -0
  198. package/dist/types/components/01-base-components/ds-icon/ds-icon.d.ts +7 -5
  199. package/dist/types/components/01-base-components/ds-input-validity/ds-input-validity.d.ts +5 -6
  200. package/dist/types/components/01-base-components/ds-link/ds-link.d.ts +13 -14
  201. package/dist/types/components/01-base-components/ds-link/stories/ds-link.features.stories.d.ts +2 -0
  202. package/dist/types/components/01-base-components/ds-link-with-arrow/ds-link-with-arrow.d.ts +5 -7
  203. package/dist/types/components/01-base-components/ds-radio-button/ds-radio-button.d.ts +44 -0
  204. package/dist/types/components/01-base-components/ds-radio-button/stories/ds-radio-button.features.stories.d.ts +15 -0
  205. package/dist/types/components/01-base-components/ds-radio-button/stories/ds-radio-button.stories.d.ts +7 -0
  206. package/dist/types/components/01-base-components/ds-radio-button-group/ds-radio-button-group.d.ts +34 -0
  207. package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.examples.stories.d.ts +6 -0
  208. package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.features.stories.d.ts +11 -0
  209. package/dist/types/components/01-base-components/ds-radio-button-group/stories/ds-radio-button-group.stories.d.ts +7 -0
  210. package/dist/types/components/01-base-components/ds-spinner/ds-spinner.d.ts +17 -0
  211. package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.examples.stories.d.ts +7 -0
  212. package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.features.stories.d.ts +7 -0
  213. package/dist/types/components/01-base-components/ds-spinner/stories/ds-spinner.stories.d.ts +7 -0
  214. package/dist/types/components/01-base-components/ds-text-input/ds-text-input.d.ts +37 -32
  215. package/dist/types/components.d.ts +1287 -228
  216. package/dist/types/stencil-public-runtime.d.ts +22 -0
  217. package/dist/types/store.d.ts +6 -1
  218. package/dist/types/utils/attributes/attributes.d.ts +1 -1
  219. package/dist/types/utils/button/buttonUtils.d.ts +1 -0
  220. package/dist/types/utils/colours/colourTypes.d.ts +3 -3
  221. package/dist/types/utils/controls/controlUtils.d.ts +2 -0
  222. package/dist/types/utils/link/linkUtils.d.ts +1 -1
  223. package/dist/types/utils/spinner/spinnerUtils.d.ts +1 -0
  224. package/dist/types/utils/tests/testUtils.d.ts +1 -0
  225. package/dist/types/utils/utils.d.ts +2 -1
  226. package/package.json +40 -36
  227. package/dist/cjs/controlUtils-041de0fd.js +0 -7
  228. package/dist/cjs/ds-accordion_3.cjs.entry.js +0 -1095
  229. package/dist/cjs/index-5b0b9d4c.js +0 -82
  230. package/dist/component-library/controlUtils-9ca4087b.js +0 -1
  231. package/dist/component-library/ds-accordion_3.entry.js +0 -1
  232. package/dist/component-library/index-434995e1.js +0 -2
  233. package/dist/component-library/index-72ac5051.js +0 -6
  234. package/dist/component-library/linkUtils-3d1b28cf.js +0 -1
  235. package/dist/component-library/store-b8d17c10.js +0 -1
  236. package/dist/esm/controlUtils-9ca4087b.js +0 -4
  237. package/dist/esm/ds-accordion_3.entry.js +0 -1089
  238. package/dist/esm/index-72ac5051.js +0 -80
  239. package/dist/esm/store-b8d17c10.js +0 -204
  240. package/dist/loader/package.json +0 -11
  241. /package/dist/cjs/{app-globals-3a1e7e63.js → app-globals-V2Kpy_OQ.js} +0 -0
  242. /package/dist/component-library/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
  243. /package/dist/esm/{app-globals-0f993ce5.js → app-globals-DQuL1Twl.js} +0 -0
@@ -0,0 +1,91 @@
1
+ import { p as proxyCustomElement, H, h } from './index2.js';
2
+ import { c as classNames } from './index3.js';
3
+ import { s as slugifyText, d as defineCustomElement$2 } from './ds-icon2.js';
4
+
5
+ const dsCardCss = ":root{--ds-breakpoint-xSmall:20rem;--ds-breakpoint-small:30rem;--ds-breakpoint-medium:60rem;--ds-breakpoint-large:75rem;--ds-breakpoint-xLarge:90rem}:host{display:block}.ds-card{background-color:var(--ds-palette-white);border:1px solid var(--ds-palette-black-20);color:var(--ds-palette-black-95);display:flex;flex-direction:column;hyphens:auto;margin-bottom:var(--ds-spacing-2xSmall)}.ds-card:focus-within{box-shadow:false 0 0 0 var(--ds-borderWidth-thick) var(--ds-palette-white);outline:var(--ds-borderWidth-thin) solid var(--ds-palette-black-95);outline-offset:calc(var(--ds-borderWidth-thin) * -1 * -1)}.ds-card:focus-within .ds-card__heading{text-decoration:underline;text-underline-offset:2px}.ds-card.ds-card--link:hover{border-color:var(--ds-palette-black-50);cursor:pointer}.ds-card.ds-card--link:hover ds-icon{color:var(--ds-palette-black-80)}.ds-card.ds-card--link:hover .ds-card__heading{text-decoration:underline;text-underline-offset:2px}.ds-card.ds-card--link:active{border-color:var(--ds-palette-black-95)}.ds-card.ds-card--link:active ds-icon{color:var(--ds-palette-black-80)}.ds-card.ds-card--link{text-decoration:none}.ds-card.ds-card--link:focus-within ds-icon{color:var(--ds-palette-black-80)}.ds-card--filled{background-color:var(--ds-palette-black-05)}.ds-card__image-container{aspect-ratio:16/9;position:relative;width:100%;overflow:hidden}.ds-card__image{width:100%;height:100%;object-fit:cover}.ds-card__content--top{align-items:center;display:flex;gap:var(--ds-spacing-small);justify-content:space-between;padding:var(--ds-spacing-xSmall) var(--ds-spacing-small)}.ds-card__content--top__text{display:flex;flex-direction:column;gap:var(--ds-spacing-3xSmall)}.ds-card__eyebrow{color:var(--ds-palette-black-70);font-family:var(--ds-fontFamily-body);font-size:var(--ds-fontSize-16);font-weight:var(--ds-fontWeight-semibold);letter-spacing:1px;line-height:var(--ds-lineHeight-large);letter-spacing:var(--ds-letterSpacing-wide);margin-bottom:var(--ds-spacing-3xSmall);order:1}.ds-card__heading{align-items:center;color:var(--ds-palette-black-95);display:flex;font-size:var(--ds-fontSize-20);font-weight:var(--ds-fontWeight-semibold);margin:0;order:2;justify-content:space-between;text-wrap:balance}.ds-card__heading__link{all:unset}.ds-card__subtitle{font-size:var(--ds-fontSize-16);font-family:var(--ds-fontFamily-body);color:var(--ds-palette-black-70);line-height:var(--ds-lineHeight-large);letter-spacing:var(--ds-letterSpacing-wide);order:3}.ds-card__description{font-family:var(--ds-fontFamily-body);font-size:var(--ds-fontSize-16);line-height:var(--ds-lineHeight-large);letter-spacing:var(--ds-letterSpacing-wide);color:var(--ds-palette-black-95);padding:0 var(--ds-spacing-small);margin:0 0 var(--ds-spacing-small) 0;text-wrap:pretty}.ds-card ds-icon{color:var(--ds-palette-mainBlue-70);font-size:var(--ds-fontSize-20);font-weight:normal}";
6
+
7
+ const DsCard$1 = proxyCustomElement(class DsCard extends H {
8
+ constructor() {
9
+ super();
10
+ this.__registerHost();
11
+ this.__attachShadow();
12
+ }
13
+ dsVariant = 'filled';
14
+ dsHeading;
15
+ dsHeadingLevel = 3;
16
+ dsDescription;
17
+ dsUrl;
18
+ dsUrlTarget = '_blank';
19
+ dsImageUrl;
20
+ dsImageAlt = '';
21
+ dsEyebrow;
22
+ dsSubtitle;
23
+ dsShowArrow = true;
24
+ get el() { return this; }
25
+ handleClick(e) {
26
+ const clickedLink = e.composedPath().find((el) => el.tagName === 'A');
27
+ if (!clickedLink && this.dsUrl) {
28
+ const headingLink = this.el.shadowRoot?.querySelector('a.ds-card__heading__link');
29
+ if (headingLink) {
30
+ headingLink.click();
31
+ }
32
+ }
33
+ }
34
+ handleKeydown(e) {
35
+ if ((e.key === 'Enter') && this.dsUrl) {
36
+ e.preventDefault();
37
+ const headingLink = this.el.shadowRoot?.querySelector('a.ds-card__heading__link');
38
+ if (headingLink) {
39
+ headingLink.click();
40
+ }
41
+ }
42
+ }
43
+ render() {
44
+ const classes = classNames('ds-card', `ds-card--${this.dsVariant}`, {
45
+ [`ds-card--link`]: Boolean(this.dsUrl),
46
+ });
47
+ const HeadingTag = `h${this.dsHeadingLevel}`;
48
+ const randomId = Math.random().toString(36).substring(2, 9);
49
+ const headingId = `${slugifyText(this.dsHeading)}-${randomId}`;
50
+ return (h("article", { key: '39fa69acafabb5201adbfe5f361bbb6a82fbad66', "aria-labelledby": headingId, class: classes, onClick: (e) => this.handleClick(e), onKeyDown: (e) => this.handleKeydown(e) }, this.dsImageUrl && (h("div", { key: '47207c839c55179082f3b8060a93ab4622fefa08', class: "ds-card__image-container" }, h("img", { key: 'df83bfd1a75845752f746235b12df453de51ee04', class: "ds-card__image", src: this.dsImageUrl, alt: this.dsImageAlt }))), h("div", { key: 'c2e3f31bfc20d8b97d6c7485e348b60c84d9f9ae', class: "ds-card__content" }, h("div", { key: '70612da3145bf79f0a1e07c7b3cddbb309247286', class: "ds-card__content--top" }, h("div", { key: '0813a2eee2575371b561ce260215c0fc8175e4a0', class: "ds-card__content--top__text" }, this.dsUrl ?
51
+ h(HeadingTag, { class: "ds-card__heading", id: headingId }, h("a", { href: this.dsUrl, target: this.dsUrlTarget, class: "ds-card__heading__link" }, this.dsHeading))
52
+ :
53
+ h(HeadingTag, { class: "ds-card__heading" }, this.dsHeading), this.dsEyebrow && h("div", { key: '7b93368c780b3df3fd8634f65af2589810ac9953', class: "ds-card__eyebrow" }, this.dsEyebrow), this.dsSubtitle && h("div", { key: 'edc5f5a6e05b1c901a69a2ff6ccde88b7a1f9c57', class: "ds-card__subtitle" }, this.dsSubtitle)), (this.dsUrl && this.dsShowArrow) && h("ds-icon", { key: '38fdc6581093d4ae820100b61c61d94b92690646', "ds-name": "arrow_forward" })), h("div", { key: '2b068303f4880827800ec6dad5eb86bc8365bda5', class: "ds-card__content--bottom" }, this.dsDescription && h("p", { key: 'e62f55d389866099320ffc28846adff926e204d2', class: "ds-card__description" }, this.dsDescription), h("div", { key: '202aeba23c27b074dffdddbe7e6d5b59ab8e90eb', class: "ds-card__slot--content" }, h("slot", { key: '76c41243b723e124d91f5ac7b33c9f6baa99ae27', name: "content" })), h("div", { key: 'f728bd9c984773f930972181694ebb67bdad5cf6', class: "ds-card__slot--footer" }, h("slot", { key: '8ea95152f2a4fe8ff45f331c371de2d93e8e45fa', name: "footer" }))))));
54
+ }
55
+ static get style() { return dsCardCss; }
56
+ }, [1, "ds-card", {
57
+ "dsVariant": [1, "ds-variant"],
58
+ "dsHeading": [1, "ds-heading"],
59
+ "dsHeadingLevel": [2, "ds-heading-level"],
60
+ "dsDescription": [1, "ds-description"],
61
+ "dsUrl": [1, "ds-url"],
62
+ "dsUrlTarget": [1, "ds-url-target"],
63
+ "dsImageUrl": [1, "ds-image-url"],
64
+ "dsImageAlt": [1, "ds-image-alt"],
65
+ "dsEyebrow": [1, "ds-eyebrow"],
66
+ "dsSubtitle": [1, "ds-subtitle"],
67
+ "dsShowArrow": [4, "ds-show-arrow"]
68
+ }, [[2, "click", "handleClick"], [2, "keydown", "handleKeydown"]]]);
69
+ function defineCustomElement$1() {
70
+ if (typeof customElements === "undefined") {
71
+ return;
72
+ }
73
+ const components = ["ds-card", "ds-icon"];
74
+ components.forEach(tagName => { switch (tagName) {
75
+ case "ds-card":
76
+ if (!customElements.get(tagName)) {
77
+ customElements.define(tagName, DsCard$1);
78
+ }
79
+ break;
80
+ case "ds-icon":
81
+ if (!customElements.get(tagName)) {
82
+ defineCustomElement$2();
83
+ }
84
+ break;
85
+ } });
86
+ }
87
+
88
+ const DsCard = DsCard$1;
89
+ const defineCustomElement = defineCustomElement$1;
90
+
91
+ export { DsCard, defineCustomElement };
@@ -1,12 +1,12 @@
1
- import { p as proxyCustomElement, H, d as createEvent, h, F as Fragment } from './index2.js';
1
+ import { p as proxyCustomElement, H, c as createEvent, h, F as Fragment } from './index2.js';
2
2
  import { c as classNames } from './index3.js';
3
- import { i as inheritAriaAttributes } from './attributes.js';
3
+ import { a as inheritAriaAttributes } from './attributes.js';
4
4
  import { i as idGenerator, d as defineCustomElement$3 } from './ds-icon2.js';
5
+ import { g as getRequiredText, a as getOptionalText, b as atLeastOneOption, c as allOptions } from './controlUtils.js';
5
6
  import { d as defineCustomElement$4 } from './ds-checkbox2.js';
6
7
  import { d as defineCustomElement$2 } from './ds-input-validity2.js';
7
8
 
8
- const dsCheckboxGroupCss = ".ds-checkbox-group{display:inline-flex;flex-direction:column;border:none;padding:0;margin:0}.ds-checkbox-group__legend{padding-inline:0;font-size:var(--ds-fontSize-16);font-weight:var(--ds-fontWeight-semibold);letter-spacing:var(--ds-letterSpacing-wide);line-height:var(--ds-lineHeight-large)}.ds-checkbox-group__assistive-text{font-size:var(--ds-fontSize-14);color:var(--ds-textColor-secondary);line-height:var(--ds-lineHeight-large);margin-bottom:var(--ds-spacing-2xSmall)}.ds-checkbox-group__error{display:flex}.ds-checkbox-group__error--visible{padding-top:var(--ds-spacing-3xSmall)}.ds-checkbox-group>.ds-checkbox-group__checkboxes{display:inline-flex;flex-direction:column}.ds-checkbox-group--inset{margin-left:var(--ds-spacing-large)}.ds-checkbox-group--horizontal>.ds-checkbox-group__checkboxes{flex-direction:row;gap:var(--ds-spacing-small);flex-wrap:wrap}";
9
- const DsCheckboxGroupStyle0 = dsCheckboxGroupCss;
9
+ const dsCheckboxGroupCss = ".ds-checkbox-group{display:inline-flex;flex-direction:column;border:none;padding:0;margin:0}.ds-checkbox-group__legend{padding-inline:0;font-size:var(--ds-fontSize-16);font-weight:var(--ds-fontWeight-semibold);letter-spacing:var(--ds-letterSpacing-wide);line-height:var(--ds-lineHeight-large)}.ds-checkbox-group__assistive-text{font-size:var(--ds-fontSize-14);color:var(--ds-palette-black-70);line-height:var(--ds-lineHeight-large);margin-bottom:var(--ds-spacing-2xSmall)}.ds-checkbox-group__error{display:flex}.ds-checkbox-group__error--visible{padding-top:var(--ds-spacing-3xSmall)}.ds-checkbox-group>.ds-checkbox-group__checkboxes{display:inline-flex;flex-direction:column}.ds-checkbox-group--inset{margin-left:var(--ds-spacing-large)}.ds-checkbox-group--horizontal>.ds-checkbox-group__checkboxes{flex-flow:row wrap;gap:var(--ds-spacing-small)}";
10
10
 
11
11
  const fieldsetIdGenerator = idGenerator('ds-checkbox-group');
12
12
  const DsCheckboxGroup$1 = proxyCustomElement(class DsCheckboxGroup extends H {
@@ -14,9 +14,12 @@ const DsCheckboxGroup$1 = proxyCustomElement(class DsCheckboxGroup extends H {
14
14
  super();
15
15
  this.__registerHost();
16
16
  this.__attachShadow();
17
- this.dsCheckboxGroupChange = createEvent(this, "dsCheckboxGroupChange", 7);
18
- this.dsCheckboxGroupIndeterminateChildChange = createEvent(this, "dsCheckboxGroupIndeterminateChildChange", 7);
17
+ this.dsCheckboxGroupChange = createEvent(this, "dsCheckboxGroupChange");
18
+ this.dsCheckboxGroupIndeterminateChildChange = createEvent(this, "dsCheckboxGroupIndeterminateChildChange");
19
+ this.dsCheckboxGroupInvalidStateChange = createEvent(this, "dsCheckboxGroupInvalidStateChange");
20
+ this.internals = this.attachInternals();
19
21
  }
22
+ checkboxElem;
20
23
  fieldsetId = fieldsetIdGenerator.next().value;
21
24
  checkboxId = `${this.fieldsetId}-checkbox`;
22
25
  errorTextId = `${this.fieldsetId}-error`;
@@ -24,23 +27,45 @@ const DsCheckboxGroup$1 = proxyCustomElement(class DsCheckboxGroup extends H {
24
27
  nestedId = `${this.fieldsetId}-nested`;
25
28
  inheritedAttributes = {};
26
29
  get el() { return this; }
30
+ internals;
27
31
  dsCheckboxGroupChange;
28
32
  dsCheckboxGroupIndeterminateChildChange;
29
- legend;
30
- assistiveText;
31
- direction = 'vertical';
32
- errorText = '';
33
- text = '';
34
- checked = false;
35
- disabled = false;
36
- childElementsCount = 0;
33
+ dsCheckboxGroupInvalidStateChange;
34
+ dsLegend;
35
+ dsAssistiveText;
36
+ dsDirection = 'vertical';
37
+ dsErrorText = '';
38
+ dsText = '';
39
+ dsChecked = false;
40
+ dsDisabled = false;
41
+ dsRequired = false;
42
+ dsAllRequired = false;
43
+ dsOptional = false;
44
+ dsOptionalText;
45
+ childElementsCount = 1;
37
46
  checkedChildElementCount = 0;
38
47
  isIndeterminate = false;
39
48
  indeterminateChildCheckboxCount = 0;
49
+ showInternalsValidationMessage = false;
40
50
  elementIs = (localName) => (element) => element.localName === localName;
41
51
  elementIsCheckbox = this.elementIs('ds-checkbox');
42
52
  elementIsCheckboxGroup = this.elementIs('ds-checkbox-group');
43
- getAriaDescribedBy = () => [Boolean(this.assistiveText) && this.assistiveTextId, Boolean(this.errorText) && this.errorTextId].filter(Boolean).join(' ');
53
+ getLegendText = () => {
54
+ if (this.dsRequired || this.dsAllRequired) {
55
+ return getRequiredText(this.dsLegend);
56
+ }
57
+ if (this.dsOptional) {
58
+ return getOptionalText(this.dsLegend, this.dsOptionalText);
59
+ }
60
+ return this.dsLegend;
61
+ };
62
+ getAriaDescribedBy = () => [
63
+ !!this.dsAssistiveText && this.assistiveTextId,
64
+ (!!this.dsErrorText || (this.showInternalsValidationMessage && !!this.internals?.validationMessage)) && this.errorTextId,
65
+ ]
66
+ .filter(Boolean)
67
+ .join(' ');
68
+ getValidationMessage = () => this.dsErrorText || (this.showInternalsValidationMessage ? this.internals?.validationMessage : '');
44
69
  getChildElements = () => {
45
70
  const slot = this.el.shadowRoot.querySelector('slot');
46
71
  return (slot?.assignedElements() || []);
@@ -57,7 +82,7 @@ const DsCheckboxGroup$1 = proxyCustomElement(class DsCheckboxGroup extends H {
57
82
  updateChildElementsChecked = (checked) => {
58
83
  this.checkedChildElementCount = checked ? this.childElementsCount : 0;
59
84
  this.updateChildElements((element) => {
60
- element.checked = checked;
85
+ element.dsChecked = checked;
61
86
  if (this.elementIsCheckboxGroup(element)) {
62
87
  (async () => {
63
88
  await element.setChecked(checked);
@@ -70,7 +95,7 @@ const DsCheckboxGroup$1 = proxyCustomElement(class DsCheckboxGroup extends H {
70
95
  }
71
96
  watchCheckboxDisabledChange(newValue) {
72
97
  this.updateChildElements((element) => {
73
- element.disabled = newValue;
98
+ element.dsDisabled = newValue;
74
99
  });
75
100
  }
76
101
  watchCheckedChange(newValue) {
@@ -79,94 +104,129 @@ const DsCheckboxGroup$1 = proxyCustomElement(class DsCheckboxGroup extends H {
79
104
  watchIndeterminateChange(newValue) {
80
105
  this.dsCheckboxGroupIndeterminateChildChange.emit({ id: this.fieldsetId, indeterminate: newValue });
81
106
  }
107
+ errorTextObserver(errorText) {
108
+ this.dsCheckboxGroupInvalidStateChange.emit(!!errorText);
109
+ }
82
110
  listenIndeterminateChildChange(event) {
83
111
  this.indeterminateChildCheckboxCount = event.detail.indeterminate ? this.indeterminateChildCheckboxCount + 1 : this.indeterminateChildCheckboxCount - 1;
84
112
  }
85
- watchCheckedChildElementCountChange(newValue, oldValue) {
86
- this.isIndeterminate =
87
- this.checkedChildElementCount !== this.childElementsCount && this.checkedChildElementCount < this.childElementsCount && this.checkedChildElementCount > 0;
88
- if (newValue === this.childElementsCount && newValue > oldValue) {
89
- this.dsCheckboxGroupChange.emit({ id: this.fieldsetId, checked: true });
113
+ watchCheckedChildElementCountChange() {
114
+ this.isIndeterminate = this.checkedChildElementCount > 0 && this.checkedChildElementCount < this.childElementsCount;
115
+ if (this.dsRequired && this.checkedChildElementCount === 0) {
116
+ this.internals?.setValidity({ valueMissing: true }, atLeastOneOption(), this.getChildCheckboxElements()?.[0].shadowRoot.querySelector('input'));
90
117
  }
91
- else if (oldValue === this.childElementsCount && newValue < oldValue) {
92
- this.dsCheckboxGroupChange.emit({ id: this.fieldsetId, checked: false });
118
+ else if (this.dsAllRequired && this.checkedChildElementCount !== this.childElementsCount) {
119
+ this.internals?.setValidity({ valueMissing: true }, allOptions(), this.getChildCheckboxElements()?.[0].shadowRoot.querySelector('input'));
120
+ }
121
+ else {
122
+ this.internals?.setValidity({ valueMissing: false });
93
123
  }
94
124
  }
95
- updateCheckedChildElementCount = (event) => {
96
- if (event.detail.checked) {
97
- this.checkedChildElementCount = this.checkedChildElementCount === this.childElementsCount ? this.checkedChildElementCount : this.checkedChildElementCount + 1;
125
+ updateCheckedChildElementCount = (checked) => {
126
+ if (checked) {
127
+ this.checkedChildElementCount = Math.min(this.childElementsCount, this.checkedChildElementCount + 1);
98
128
  }
99
129
  else {
100
- this.checkedChildElementCount = this.checkedChildElementCount === 0 ? 0 : this.checkedChildElementCount - 1;
130
+ this.checkedChildElementCount = Math.max(0, this.checkedChildElementCount - 1);
101
131
  }
102
132
  };
103
133
  listenCheckboxChange(event) {
104
- if (event.detail.id === this.checkboxId) {
105
- this.updateChildElementsChecked(event.detail.checked);
134
+ if (!this.showInternalsValidationMessage) {
135
+ this.showInternalsValidationMessage = true;
136
+ }
137
+ if (event.target === this.el) {
138
+ this.updateChildElementsChecked(this.checkboxElem.dsChecked);
139
+ this.dsCheckboxGroupChange.emit({ id: this.fieldsetId, checked: this.checkboxElem.dsChecked });
106
140
  return;
107
141
  }
108
- if (this.getChildCheckboxElements().includes(event.target)) {
109
- this.updateCheckedChildElementCount(event);
142
+ const target = event.target;
143
+ if (this.getChildCheckboxElements().includes(target)) {
144
+ const previousCheckedChildElementCount = this.checkedChildElementCount;
145
+ this.updateCheckedChildElementCount(target.dsChecked);
146
+ if (this.checkedChildElementCount === this.childElementsCount && this.checkedChildElementCount > previousCheckedChildElementCount) {
147
+ this.dsCheckboxGroupChange.emit({ id: this.fieldsetId, checked: true });
148
+ }
149
+ else if (previousCheckedChildElementCount === this.childElementsCount && this.checkedChildElementCount < previousCheckedChildElementCount) {
150
+ this.dsCheckboxGroupChange.emit({ id: this.fieldsetId, checked: false });
151
+ }
110
152
  }
111
153
  }
112
154
  listenCheckboxGroupChange(event) {
113
155
  if (this.getChildElements().includes(event.target)) {
114
- this.updateCheckedChildElementCount(event);
156
+ event.stopPropagation();
157
+ this.updateCheckedChildElementCount(event.detail.checked);
115
158
  }
116
159
  }
117
- setChildElementCount = () => {
118
- this.childElementsCount = this.getChildElements().length;
119
- };
160
+ formResetCallback() {
161
+ this.internals?.setValidity({});
162
+ }
120
163
  componentWillLoad() {
121
164
  this.inheritedAttributes = inheritAriaAttributes(this.el, ['aria-labelledby']);
122
165
  }
123
166
  componentDidLoad() {
124
- this.setChildElementCount();
167
+ this.childElementsCount = this.getChildElements().length;
125
168
  this.updateChildCheckboxes(element => {
126
- element.setAttribute('data-errors-disabled', 'true');
169
+ element.setAttribute('ds-errors-disabled', 'true');
127
170
  });
171
+ if (this.dsRequired) {
172
+ this.internals?.setValidity({ valueMissing: true }, atLeastOneOption(), this.getChildCheckboxElements()?.[0].shadowRoot.querySelector('input'));
173
+ }
174
+ else if (this.dsAllRequired) {
175
+ this.internals?.setValidity({ valueMissing: true }, allOptions(), this.getChildCheckboxElements()?.[0].shadowRoot.querySelector('input'));
176
+ }
128
177
  }
129
178
  componentDidUpdate() {
130
- this.setChildElementCount();
179
+ const childElementCount = this.getChildElements().length;
180
+ if (this.childElementsCount !== childElementCount) {
181
+ this.childElementsCount = childElementCount;
182
+ }
131
183
  }
132
184
  render() {
133
185
  const classes = classNames('ds-checkbox-group', {
134
- 'ds-checkbox-group--horizontal': this.direction === 'horizontal',
186
+ 'ds-checkbox-group--horizontal': this.dsDirection === 'horizontal',
135
187
  });
136
188
  const legendClasses = classNames('ds-checkbox-group__legend');
137
189
  const assistiveTextClasses = classNames('ds-checkbox-group__assistive-text');
138
190
  const errorClasses = classNames('ds-checkbox-group__error', {
139
- 'ds-checkbox-group__error--visible': Boolean(this.errorText),
191
+ 'ds-checkbox-group__error--visible': Boolean(this.dsErrorText),
140
192
  });
141
193
  const nestedClasses = classNames('ds-checkbox-group', 'ds-checkbox-group--inset');
142
194
  const checkboxesClasses = classNames('ds-checkbox-group__checkboxes');
143
195
  const ariaDescribedBy = this.getAriaDescribedBy();
144
- return (h("fieldset", { key: '1029763130b4d2d138679c9f84ec72c0231fcc83', id: this.fieldsetId, class: classes, "aria-describedby": ariaDescribedBy, ...this.inheritedAttributes }, this.legend && h("legend", { key: 'a9be37aab510d5e402841c8bbda64190548bc1ea', class: legendClasses }, this.legend), this.assistiveText && (h("small", { key: '0ae42c2b46e52dad0570ad120180e662db43f2fa', class: assistiveTextClasses, id: this.assistiveTextId }, this.assistiveText)), this.text ? (h(Fragment, null, h("ds-checkbox", { id: this.checkboxId, text: this.text, checked: this.checkedChildElementCount === this.childElementsCount, disabled: this.disabled, indeterminate: this.indeterminateChildCheckboxCount > 0 || this.isIndeterminate }), h("fieldset", { id: this.nestedId, "aria-labelledby": this.checkboxId, class: nestedClasses }, h("slot", null)))) : (h("div", { class: checkboxesClasses }, h("slot", null))), h("div", { key: '3ea5bb7991a99c676cb50a24d1a679b6f68c96bf', class: errorClasses }, h("ds-input-validity", { key: '8d5ca5e80b2a5f985e09bf7039538a5a13278e8e', id: this.errorTextId, text: this.errorText, type: "error" }))));
196
+ return (h("fieldset", { key: '98ff7c5dd5c36c163ed1dfb177d5c0b28b93971a', id: this.fieldsetId, class: classes, "aria-describedby": ariaDescribedBy, ...this.inheritedAttributes }, this.dsLegend && h("legend", { key: '22274e3c85262fd08f69a9aa548d2910eaf30ce2', class: legendClasses }, this.getLegendText()), this.dsAssistiveText && (h("small", { key: '4566b9d66b0be262548ddecd11f6eda5acc6d399', class: assistiveTextClasses, id: this.assistiveTextId }, this.dsAssistiveText)), this.dsText ? (h(Fragment, null, h("ds-checkbox", { ref: checkboxElem => (this.checkboxElem = checkboxElem), dsId: this.checkboxId, dsText: this.dsText, dsChecked: this.checkedChildElementCount === this.childElementsCount, dsDisabled: this.dsDisabled, dsIndeterminate: this.indeterminateChildCheckboxCount > 0 || this.isIndeterminate }), h("fieldset", { id: this.nestedId, "aria-labelledby": this.checkboxId, class: nestedClasses }, h("slot", null)))) : (h("div", { class: checkboxesClasses }, h("slot", null))), (!!this.dsErrorText || this.dsRequired || this.dsAllRequired) && (h("div", { key: 'd0a2dbc9d46967de609096d9a398b040f5228807', class: errorClasses }, h("ds-input-validity", { key: '409b5d8fbd59b26245cb828146f28eec3d010aaa', id: this.errorTextId, dsText: this.getValidationMessage(), dsType: "error", dsAriaLive: "polite", dsAriaAtomic: "true" })))));
145
197
  }
198
+ static get formAssociated() { return true; }
146
199
  static get watchers() { return {
147
- "disabled": ["watchCheckboxDisabledChange"],
148
- "checked": ["watchCheckedChange"],
200
+ "dsDisabled": ["watchCheckboxDisabledChange"],
201
+ "dsChecked": ["watchCheckedChange"],
149
202
  "isIndeterminate": ["watchIndeterminateChange"],
203
+ "dsErrorText": ["errorTextObserver"],
150
204
  "checkedChildElementCount": ["watchCheckedChildElementCountChange"]
151
205
  }; }
152
- static get style() { return DsCheckboxGroupStyle0; }
153
- }, [1, "ds-checkbox-group", {
154
- "legend": [1],
155
- "assistiveText": [1, "assistive-text"],
156
- "direction": [1],
157
- "errorText": [1, "error-text"],
158
- "text": [1],
159
- "checked": [4],
160
- "disabled": [4],
206
+ static get style() { return dsCheckboxGroupCss; }
207
+ }, [65, "ds-checkbox-group", {
208
+ "dsLegend": [1, "ds-legend"],
209
+ "dsAssistiveText": [1, "ds-assistive-text"],
210
+ "dsDirection": [1, "ds-direction"],
211
+ "dsErrorText": [1, "ds-error-text"],
212
+ "dsText": [1, "ds-text"],
213
+ "dsChecked": [4, "ds-checked"],
214
+ "dsDisabled": [4, "ds-disabled"],
215
+ "dsRequired": [4, "ds-required"],
216
+ "dsAllRequired": [4, "ds-all-required"],
217
+ "dsOptional": [4, "ds-optional"],
218
+ "dsOptionalText": [1, "ds-optional-text"],
161
219
  "childElementsCount": [32],
162
220
  "checkedChildElementCount": [32],
163
221
  "isIndeterminate": [32],
164
222
  "indeterminateChildCheckboxCount": [32],
223
+ "showInternalsValidationMessage": [32],
165
224
  "setChecked": [64]
166
- }, [[0, "dsCheckboxGroupIndeterminateChildChange", "listenIndeterminateChildChange"], [0, "dsCheckboxInput", "listenCheckboxChange"], [0, "dsCheckboxGroupChange", "listenCheckboxGroupChange"]], {
167
- "disabled": ["watchCheckboxDisabledChange"],
168
- "checked": ["watchCheckedChange"],
225
+ }, [[0, "dsCheckboxGroupIndeterminateChildChange", "listenIndeterminateChildChange"], [0, "input", "listenCheckboxChange"], [0, "dsCheckboxGroupChange", "listenCheckboxGroupChange"]], {
226
+ "dsDisabled": ["watchCheckboxDisabledChange"],
227
+ "dsChecked": ["watchCheckedChange"],
169
228
  "isIndeterminate": ["watchIndeterminateChange"],
229
+ "dsErrorText": ["errorTextObserver"],
170
230
  "checkedChildElementCount": ["watchCheckedChildElementCountChange"]
171
231
  }]);
172
232
  function defineCustomElement$1() {