@gov-design-system-ce/components 0.0.33 → 0.0.35

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 (254) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/{form-399e149e.js → form-62c6a8c6.js} +16 -5
  3. package/dist/cjs/form-62c6a8c6.js.map +1 -0
  4. package/dist/cjs/gov-app.cjs.entry.js +13 -13
  5. package/dist/cjs/gov-app.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-badge.cjs.entry.js +1 -1
  7. package/dist/cjs/gov-badge.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-form-checkbox.cjs.entry.js +13 -3
  9. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-form-control.cjs.entry.js +20 -24
  11. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-form-file.cjs.entry.js +14 -3
  13. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-form-input.cjs.entry.js +16 -5
  15. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  16. package/dist/cjs/gov-form-multi-select.cjs.entry.js +31 -15
  17. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gov-form-radio.cjs.entry.js +20 -10
  19. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  20. package/dist/cjs/gov-form-select.cjs.entry.js +15 -5
  21. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  22. package/dist/cjs/gov-form-switch.cjs.entry.js +19 -9
  23. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  24. package/dist/cjs/gov-icon.cjs.entry.js +1 -1
  25. package/dist/cjs/loader.cjs.js +1 -1
  26. package/dist/collection/components/gov-badge/gov-badge.js +1 -1
  27. package/dist/collection/components/gov-badge/gov-badge.js.map +1 -1
  28. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +20 -3
  29. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  30. package/dist/collection/components/gov-form/control/gov-form-control.js +25 -28
  31. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  32. package/dist/collection/components/gov-form/file/gov-form-file.js +20 -4
  33. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  34. package/dist/collection/components/gov-form/input/gov-form-input.js +24 -3
  35. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  36. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +25 -4
  37. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  38. package/dist/collection/components/gov-form/radio/gov-form-radio.js +36 -19
  39. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  40. package/dist/collection/components/gov-form/select/gov-form-select.js +22 -4
  41. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  42. package/dist/collection/components/gov-form/switch/gov-form-switch.js +26 -9
  43. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  44. package/dist/collection/pages/Forms.js +13 -13
  45. package/dist/collection/pages/Forms.js.map +1 -1
  46. package/dist/components/gov-accordion-item.js +0 -1
  47. package/dist/components/gov-accordion-item.js.map +1 -1
  48. package/dist/components/gov-accordion.js +0 -1
  49. package/dist/components/gov-accordion.js.map +1 -1
  50. package/dist/components/gov-alert.js +0 -1
  51. package/dist/components/gov-alert.js.map +1 -1
  52. package/dist/components/gov-app.js +13 -14
  53. package/dist/components/gov-app.js.map +1 -1
  54. package/dist/components/gov-attachments-item2.js +0 -1
  55. package/dist/components/gov-attachments-item2.js.map +1 -1
  56. package/dist/components/gov-attachments2.js +0 -1
  57. package/dist/components/gov-attachments2.js.map +1 -1
  58. package/dist/components/gov-backdrop2.js +0 -1
  59. package/dist/components/gov-backdrop2.js.map +1 -1
  60. package/dist/components/gov-badge2.js +1 -2
  61. package/dist/components/gov-badge2.js.map +1 -1
  62. package/dist/components/gov-breadcrumbs.js +0 -1
  63. package/dist/components/gov-breadcrumbs.js.map +1 -1
  64. package/dist/components/gov-button2.js +0 -1
  65. package/dist/components/gov-button2.js.map +1 -1
  66. package/dist/components/gov-card.js +0 -1
  67. package/dist/components/gov-card.js.map +1 -1
  68. package/dist/components/gov-container.js +0 -1
  69. package/dist/components/gov-container.js.map +1 -1
  70. package/dist/components/gov-cookiebar.js +0 -1
  71. package/dist/components/gov-cookiebar.js.map +1 -1
  72. package/dist/components/gov-empty.js +0 -1
  73. package/dist/components/gov-empty.js.map +1 -1
  74. package/dist/components/gov-error-code.js +0 -1
  75. package/dist/components/gov-error-code.js.map +1 -1
  76. package/dist/components/gov-form-autocomplete2.js +0 -1
  77. package/dist/components/gov-form-autocomplete2.js.map +1 -1
  78. package/dist/components/gov-form-checkbox.js +13 -3
  79. package/dist/components/gov-form-checkbox.js.map +1 -1
  80. package/dist/components/gov-form-control.js +19 -23
  81. package/dist/components/gov-form-control.js.map +1 -1
  82. package/dist/components/gov-form-file.js +14 -3
  83. package/dist/components/gov-form-file.js.map +1 -1
  84. package/dist/components/gov-form-group.js +0 -1
  85. package/dist/components/gov-form-group.js.map +1 -1
  86. package/dist/components/gov-form-input2.js +16 -5
  87. package/dist/components/gov-form-input2.js.map +1 -1
  88. package/dist/components/gov-form-label.js +0 -1
  89. package/dist/components/gov-form-label.js.map +1 -1
  90. package/dist/components/gov-form-message2.js +0 -1
  91. package/dist/components/gov-form-message2.js.map +1 -1
  92. package/dist/components/gov-form-multi-select.js +19 -7
  93. package/dist/components/gov-form-multi-select.js.map +1 -1
  94. package/dist/components/gov-form-password-power.js +0 -1
  95. package/dist/components/gov-form-password-power.js.map +1 -1
  96. package/dist/components/gov-form-radio.js +20 -10
  97. package/dist/components/gov-form-radio.js.map +1 -1
  98. package/dist/components/gov-form-search.js +0 -1
  99. package/dist/components/gov-form-search.js.map +1 -1
  100. package/dist/components/gov-form-select2.js +15 -5
  101. package/dist/components/gov-form-select2.js.map +1 -1
  102. package/dist/components/gov-form-switch.js +19 -9
  103. package/dist/components/gov-form-switch.js.map +1 -1
  104. package/dist/components/gov-grid-item.js +0 -1
  105. package/dist/components/gov-grid-item.js.map +1 -1
  106. package/dist/components/gov-grid.js +0 -1
  107. package/dist/components/gov-grid.js.map +1 -1
  108. package/dist/components/gov-icon2.js +1 -2
  109. package/dist/components/gov-icon2.js.map +1 -1
  110. package/dist/components/gov-layout-column.js +0 -1
  111. package/dist/components/gov-layout-column.js.map +1 -1
  112. package/dist/components/gov-layout.js +0 -1
  113. package/dist/components/gov-layout.js.map +1 -1
  114. package/dist/components/gov-loading.js +0 -1
  115. package/dist/components/gov-loading.js.map +1 -1
  116. package/dist/components/gov-message.js +0 -1
  117. package/dist/components/gov-message.js.map +1 -1
  118. package/dist/components/gov-modal.js +0 -1
  119. package/dist/components/gov-modal.js.map +1 -1
  120. package/dist/components/gov-nav-item.js +0 -1
  121. package/dist/components/gov-nav-item.js.map +1 -1
  122. package/dist/components/gov-nav.js +0 -1
  123. package/dist/components/gov-nav.js.map +1 -1
  124. package/dist/components/gov-pagination.js +0 -1
  125. package/dist/components/gov-pagination.js.map +1 -1
  126. package/dist/components/gov-prompt.js +0 -1
  127. package/dist/components/gov-prompt.js.map +1 -1
  128. package/dist/components/gov-side-nav-item.js +0 -1
  129. package/dist/components/gov-side-nav-item.js.map +1 -1
  130. package/dist/components/gov-side-nav.js +0 -1
  131. package/dist/components/gov-side-nav.js.map +1 -1
  132. package/dist/components/gov-skeleton.js +0 -1
  133. package/dist/components/gov-skeleton.js.map +1 -1
  134. package/dist/components/gov-spacer.js +0 -1
  135. package/dist/components/gov-spacer.js.map +1 -1
  136. package/dist/components/gov-statsbar-item.js +0 -1
  137. package/dist/components/gov-statsbar-item.js.map +1 -1
  138. package/dist/components/gov-statsbar.js +0 -1
  139. package/dist/components/gov-statsbar.js.map +1 -1
  140. package/dist/components/gov-stepper-item.js +0 -1
  141. package/dist/components/gov-stepper-item.js.map +1 -1
  142. package/dist/components/gov-stepper.js +0 -1
  143. package/dist/components/gov-stepper.js.map +1 -1
  144. package/dist/components/gov-tabs-item.js +0 -1
  145. package/dist/components/gov-tabs-item.js.map +1 -1
  146. package/dist/components/gov-tabs.js +0 -1
  147. package/dist/components/gov-tabs.js.map +1 -1
  148. package/dist/components/gov-tile.js +0 -1
  149. package/dist/components/gov-tile.js.map +1 -1
  150. package/dist/components/gov-tiles.js +0 -1
  151. package/dist/components/gov-tiles.js.map +1 -1
  152. package/dist/components/gov-toast.js +0 -1
  153. package/dist/components/gov-toast.js.map +1 -1
  154. package/dist/components/gov-tooltip-content.js +0 -1
  155. package/dist/components/gov-tooltip-content.js.map +1 -1
  156. package/dist/components/gov-tooltip.js +0 -1
  157. package/dist/components/gov-tooltip.js.map +1 -1
  158. package/dist/components/gov-wizzard-item.js +0 -1
  159. package/dist/components/gov-wizzard-item.js.map +1 -1
  160. package/dist/components/gov-wizzard.js +0 -1
  161. package/dist/components/gov-wizzard.js.map +1 -1
  162. package/dist/core/core.esm.js +1 -1
  163. package/dist/core/core.esm.js.map +1 -1
  164. package/dist/core/p-0a300d3e.entry.js +2 -0
  165. package/dist/core/p-0a300d3e.entry.js.map +1 -0
  166. package/dist/core/{p-e5a7dcf1.entry.js → p-37f6b4ef.entry.js} +2 -2
  167. package/dist/core/{p-e5a7dcf1.entry.js.map → p-37f6b4ef.entry.js.map} +1 -1
  168. package/dist/core/p-5a2a9cde.entry.js +2 -0
  169. package/dist/core/p-5a2a9cde.entry.js.map +1 -0
  170. package/dist/core/p-7e524b49.js +2 -0
  171. package/dist/core/p-7e524b49.js.map +1 -0
  172. package/dist/core/p-a423b62a.entry.js +2 -0
  173. package/dist/core/p-a423b62a.entry.js.map +1 -0
  174. package/dist/core/p-a825183a.entry.js +2 -0
  175. package/dist/core/p-a825183a.entry.js.map +1 -0
  176. package/dist/core/{p-87b75126.entry.js → p-bbc765ca.entry.js} +2 -2
  177. package/dist/core/p-bbc765ca.entry.js.map +1 -0
  178. package/dist/core/p-d1275fa8.entry.js +2 -0
  179. package/dist/core/p-d1275fa8.entry.js.map +1 -0
  180. package/dist/core/p-d14130ac.entry.js +2 -0
  181. package/dist/core/p-d14130ac.entry.js.map +1 -0
  182. package/dist/core/p-d37f03e0.entry.js +2 -0
  183. package/dist/core/p-d37f03e0.entry.js.map +1 -0
  184. package/dist/core/{p-cb710e9a.entry.js → p-e3b56738.entry.js} +2 -2
  185. package/dist/core/p-e6904513.entry.js +2 -0
  186. package/dist/core/p-e6904513.entry.js.map +1 -0
  187. package/dist/custom-elements/index.js +1 -1
  188. package/dist/custom-elements/index.js.map +1 -1
  189. package/dist/esm/core.js +1 -1
  190. package/dist/esm/{form-3aceb161.js → form-613741a5.js} +11 -3
  191. package/dist/esm/form-613741a5.js.map +1 -0
  192. package/dist/esm/gov-app.entry.js +13 -13
  193. package/dist/esm/gov-app.entry.js.map +1 -1
  194. package/dist/esm/gov-badge.entry.js +1 -1
  195. package/dist/esm/gov-badge.entry.js.map +1 -1
  196. package/dist/esm/gov-form-checkbox.entry.js +13 -3
  197. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  198. package/dist/esm/gov-form-control.entry.js +20 -24
  199. package/dist/esm/gov-form-control.entry.js.map +1 -1
  200. package/dist/esm/gov-form-file.entry.js +15 -4
  201. package/dist/esm/gov-form-file.entry.js.map +1 -1
  202. package/dist/esm/gov-form-input.entry.js +17 -6
  203. package/dist/esm/gov-form-input.entry.js.map +1 -1
  204. package/dist/esm/gov-form-multi-select.entry.js +21 -5
  205. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  206. package/dist/esm/gov-form-radio.entry.js +21 -11
  207. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  208. package/dist/esm/gov-form-select.entry.js +16 -6
  209. package/dist/esm/gov-form-select.entry.js.map +1 -1
  210. package/dist/esm/gov-form-switch.entry.js +20 -10
  211. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  212. package/dist/esm/gov-icon.entry.js +1 -1
  213. package/dist/esm/loader.js +1 -1
  214. package/dist/globals.d.ts +2 -0
  215. package/dist/hydrate/index.js +141 -63
  216. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +2 -0
  217. package/dist/types/components/gov-form/control/gov-form-control.d.ts +2 -2
  218. package/dist/types/components/gov-form/file/gov-form-file.d.ts +2 -0
  219. package/dist/types/components/gov-form/input/gov-form-input.d.ts +3 -1
  220. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +5 -1
  221. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +5 -3
  222. package/dist/types/components/gov-form/select/gov-form-select.d.ts +3 -1
  223. package/dist/types/components/gov-form/switch/gov-form-switch.d.ts +2 -0
  224. package/dist/types/components.d.ts +1 -1
  225. package/dist/types/types/typings.d.ts +6 -0
  226. package/package.json +1 -1
  227. package/dist/cjs/constants-e8760a84.js +0 -20
  228. package/dist/cjs/constants-e8760a84.js.map +0 -1
  229. package/dist/cjs/form-399e149e.js.map +0 -1
  230. package/dist/core/p-3ed60543.entry.js +0 -2
  231. package/dist/core/p-3ed60543.entry.js.map +0 -1
  232. package/dist/core/p-70c0ee18.entry.js +0 -2
  233. package/dist/core/p-70c0ee18.entry.js.map +0 -1
  234. package/dist/core/p-79f74578.entry.js +0 -2
  235. package/dist/core/p-79f74578.entry.js.map +0 -1
  236. package/dist/core/p-87b75126.entry.js.map +0 -1
  237. package/dist/core/p-942c1b73.entry.js +0 -2
  238. package/dist/core/p-942c1b73.entry.js.map +0 -1
  239. package/dist/core/p-b3d9b255.entry.js +0 -2
  240. package/dist/core/p-b3d9b255.entry.js.map +0 -1
  241. package/dist/core/p-cb830bc1.entry.js +0 -2
  242. package/dist/core/p-cb830bc1.entry.js.map +0 -1
  243. package/dist/core/p-ea493ce6.entry.js +0 -2
  244. package/dist/core/p-ea493ce6.entry.js.map +0 -1
  245. package/dist/core/p-ef79904e.js +0 -2
  246. package/dist/core/p-ef79904e.js.map +0 -1
  247. package/dist/core/p-fa7daa95.entry.js +0 -2
  248. package/dist/core/p-fa7daa95.entry.js.map +0 -1
  249. package/dist/core/p-fd2f10eb.js +0 -2
  250. package/dist/core/p-fd2f10eb.js.map +0 -1
  251. package/dist/esm/constants-136d4cd3.js +0 -16
  252. package/dist/esm/constants-136d4cd3.js.map +0 -1
  253. package/dist/esm/form-3aceb161.js.map +0 -1
  254. /package/dist/core/{p-cb710e9a.entry.js.map → p-e3b56738.entry.js.map} +0 -0
@@ -11685,10 +11685,10 @@ class FormsPage extends HTMLElement {
11685
11685
  <gov-form-input size="xl" placeholder="Co hledáte" input-type="time"></gov-form-input>
11686
11686
 
11687
11687
  <h2>Search</h2>
11688
- <gov-form-control size="m">
11688
+ <gov-form-control>
11689
11689
  <gov-form-group>
11690
11690
  <gov-form-search name="test-me-c" value="me" checked>
11691
- <gov-form-input slot="input" id="kapr" name="test-me" placeholder="Co hledáte"></gov-form-input>
11691
+ <gov-form-input slot="input" id="kapr" name="test-me" size="m" placeholder="Co hledáte"></gov-form-input>
11692
11692
  <gov-button slot="button" variant="primary" size="s">
11693
11693
  <gov-icon slot="left-icon" name="search"></gov-icon>
11694
11694
  </gov-button>
@@ -11696,10 +11696,10 @@ class FormsPage extends HTMLElement {
11696
11696
  </gov-form-group>
11697
11697
  </gov-form-control>
11698
11698
  <br>
11699
- <gov-form-control size="l">
11699
+ <gov-form-control>
11700
11700
  <gov-form-group>
11701
11701
  <gov-form-search name="test-me-c" value="me" checked>
11702
- <gov-form-input slot="input" id="kapr" name="test-me" placeholder="Co hledáte"></gov-form-input>
11702
+ <gov-form-input slot="input" id="kapr" name="test-me" size="l" placeholder="Co hledáte"></gov-form-input>
11703
11703
  <gov-button slot="button" variant="primary" size="m">
11704
11704
  Hledat
11705
11705
  </gov-button>
@@ -11707,10 +11707,10 @@ class FormsPage extends HTMLElement {
11707
11707
  </gov-form-group>
11708
11708
  </gov-form-control>
11709
11709
  <br>
11710
- <gov-form-control size="xl">
11710
+ <gov-form-control>
11711
11711
  <gov-form-group>
11712
- <gov-form-search name="test-me-c" value="me" checked variant="secondary">
11713
- <gov-form-input slot="input" id="kapr" name="test-me" placeholder="Co hledáte"></gov-form-input>
11712
+ <gov-form-search name="test-me-c" value="me"checked variant="secondary">
11713
+ <gov-form-input slot="input" id="kapr" size="xl" name="test-me" placeholder="Co hledáte"></gov-form-input>
11714
11714
  <gov-button slot="button" variant="secondary" size="l">
11715
11715
  Hledat
11716
11716
  </gov-button>
@@ -11738,12 +11738,12 @@ class FormsPage extends HTMLElement {
11738
11738
  </gov-form-control>
11739
11739
  <br>
11740
11740
 
11741
- <gov-form-control disabled>
11742
- <gov-form-label size="s" slot="top">Přidat přílohu *</gov-form-label>
11741
+ <gov-form-control>
11742
+ <gov-form-label size="s" slot="top">Přidat přílohu 22 *</gov-form-label>
11743
11743
  <gov-form-group>
11744
11744
  <gov-form-file name="test-me-c">
11745
11745
  <p aria-hidden="true">
11746
- <gov-button disabled variant="primary" type="outlined">
11746
+ <gov-button variant="primary" type="outlined">
11747
11747
  <gov-icon slot="left-icon" name="upload"></gov-icon>
11748
11748
  Nahrát soubor ze zařízení
11749
11749
  </gov-button>
@@ -11902,12 +11902,12 @@ class FormsPage extends HTMLElement {
11902
11902
  </gov-form-message>
11903
11903
  </gov-form-control>
11904
11904
  <h3>
11905
- Disabled
11905
+ Disabled DDD
11906
11906
  </h3>
11907
- <gov-form-control disabled type="input" id="metro2">
11907
+ <gov-form-control id="metro2">
11908
11908
  <gov-form-label size="s" slot="top">Label of textarea</gov-form-label>
11909
11909
  <gov-form-group>
11910
- <gov-form-input multiline rows="3" name="test-me" value="Value of textarea"></gov-form-input>
11910
+ <gov-form-input multiline rows="3" name="test-me" disabled value="Value of textarea"></gov-form-input>
11911
11911
  </gov-form-group>
11912
11912
  </gov-form-control>
11913
11913
 
@@ -14978,7 +14978,7 @@ class GovBadge {
14978
14978
  BadgeClass.root,
14979
14979
  this.h.hasSlot("right") ? BadgeClass.hasRight : undefined,
14980
14980
  this.h.hasSlot("left") ? BadgeClass.hasLeft : undefined,
14981
- ]), disabled: this.disabled, href: this.href, variant: this.variant, size: this.size, type: this.type, inverse: this.inverse, hoverable: Tag == NativeType$1.A || Tag == NativeType$1.BUTTON }, hAsync(Tag, { class: "element", href: this.href, target: this.target, "aria-label": this.wcagLabel, onClick: this.onClickHandler.bind(this), type: nativeType }, this.h.hasSlot("left") && hAsync("slot", { name: "left" }), this.h.hasSlot("left-icon") && hAsync("slot", { name: "left-icon" }), hAsync("slot", null), this.h.hasSlot("right-icon") && hAsync("slot", { name: "right-icon" }), this.h.hasSlot("right") && hAsync("slot", { name: "right" }), "ref=", el => (this.triggerRef = el))));
14981
+ ]), disabled: this.disabled, href: this.href, variant: this.variant, size: this.size, type: this.type, inverse: this.inverse, hoverable: Tag == NativeType$1.A || Tag == NativeType$1.BUTTON }, hAsync(Tag, { class: "element", href: this.href, target: this.target, "aria-label": this.wcagLabel, ref: el => (this.triggerRef = el), onClick: this.onClickHandler.bind(this), type: nativeType }, this.h.hasSlot("left") && hAsync("slot", { name: "left" }), this.h.hasSlot("left-icon") && hAsync("slot", { name: "left-icon" }), hAsync("slot", null), this.h.hasSlot("right-icon") && hAsync("slot", { name: "right-icon" }), this.h.hasSlot("right") && hAsync("slot", { name: "right" }))));
14982
14982
  }
14983
14983
  onClickHandler(e) {
14984
14984
  e.stopPropagation();
@@ -15951,8 +15951,17 @@ class GovFormCheckbox {
15951
15951
  validateSize(newValue) {
15952
15952
  validateProp(FormCheckboxSizes, newValue, FormCheckboxClass.root);
15953
15953
  }
15954
+ watchDisabled() {
15955
+ this.passControlAttrs();
15956
+ }
15957
+ passControlAttrs() {
15958
+ this.f.passAttrToControl("size", this.size);
15959
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
15960
+ this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
15961
+ }
15954
15962
  componentWillLoad() {
15955
15963
  this.f.passAttrToControl("type", "checkbox");
15964
+ this.passControlAttrs();
15956
15965
  }
15957
15966
  async componentDidRender() {
15958
15967
  this.f.passAttrToLabel("identifier", this.identifier || this.checkboxId);
@@ -16018,7 +16027,9 @@ class GovFormCheckbox {
16018
16027
  }
16019
16028
  get host() { return getElement(this); }
16020
16029
  static get watchers() { return {
16021
- "size": ["validateSize"]
16030
+ "size": ["validateSize", "watchDisabled"],
16031
+ "disabled": ["watchDisabled"],
16032
+ "invalid": ["watchDisabled"]
16022
16033
  }; }
16023
16034
  static get style() { return govFormCheckboxCss; }
16024
16035
  static get cmpMeta() { return {
@@ -16056,10 +16067,10 @@ class GovFormControl {
16056
16067
  this.disabled = false;
16057
16068
  this.success = false;
16058
16069
  this.fieldset = false;
16059
- this.size = 'm';
16070
+ this.size = "m";
16060
16071
  this.h = govHost(this.host);
16061
16072
  this.f = govForm(this.h);
16062
- this.controlId = createID('GovFormControl');
16073
+ this.controlId = createID("GovFormControl");
16063
16074
  }
16064
16075
  watchInvalid() {
16065
16076
  this.passChildAttrs();
@@ -16075,25 +16086,22 @@ class GovFormControl {
16075
16086
  }
16076
16087
  passChildAttrs() {
16077
16088
  const formElements = [
16078
- 'gov-form-select',
16079
- 'gov-form-input',
16080
- 'gov-form-switch',
16081
- 'gov-form-checkbox',
16082
- 'gov-form-radio',
16083
- 'gov-form-multi-select',
16084
- 'gov-form-file',
16085
- 'gov-form-search',
16089
+ "gov-form-select",
16090
+ "gov-form-input",
16091
+ "gov-form-switch",
16092
+ "gov-form-checkbox",
16093
+ "gov-form-radio",
16094
+ "gov-form-multi-select",
16095
+ "gov-form-file",
16096
+ "gov-form-search",
16086
16097
  ];
16087
- this.h.passChildAttr(formElements, 'size', this.size);
16088
- this.h.passChildAttr(formElements, 'invalid', this.invalid);
16089
- this.h.passChildAttr(formElements, 'disabled', this.disabled);
16090
- this.h.passChildAttr(formElements, 'success', this.success);
16098
+ this.h.passChildAttr(formElements, "success", this.success);
16091
16099
  if (this.f.hasGroupChildren === false) {
16092
- this.h.passChildAttr([...formElements, 'gov-form-label'], 'identifier', this.identifier || this.controlId);
16100
+ this.h.passChildAttr([...formElements, "gov-form-label"], "identifier", this.identifier || this.controlId);
16093
16101
  }
16094
16102
  }
16095
16103
  formElementDescriptionControl() {
16096
- const bottomSlot = this.host.querySelector('.' + FormControlClass.bottom);
16104
+ const bottomSlot = this.host.querySelector("." + FormControlClass.bottom);
16097
16105
  if (!bottomSlot)
16098
16106
  return;
16099
16107
  this.observer = new MutationObserver(function () {
@@ -16104,20 +16112,20 @@ class GovFormControl {
16104
16112
  syncControlMessages() {
16105
16113
  Promise.all(this.f.messageElements.map((message) => message.identifier())).then((ids) => {
16106
16114
  this.f.mainElementsInControl.forEach((element) => {
16107
- const currentValue = splitByWhitespace(element.getAttribute('wcag-described-by'));
16108
- element.removeAttribute('wcag-described-by');
16115
+ const currentValue = splitByWhitespace(element.getAttribute("wcag-described-by"));
16116
+ element.removeAttribute("wcag-described-by");
16109
16117
  if (Array.isArray(currentValue)) {
16110
- currentValue.forEach(id => (id.indexOf('GovFormMessage') === -1 ? ids.push(id) : null));
16118
+ currentValue.forEach(id => (id.indexOf("GovFormMessage") === -1 ? ids.push(id) : null));
16111
16119
  }
16112
16120
  if (ids.length) {
16113
- element.setAttribute('wcag-described-by', ids.join(' '));
16121
+ element.setAttribute("wcag-described-by", ids.join(" "));
16114
16122
  }
16115
16123
  });
16116
16124
  });
16117
16125
  }
16118
16126
  render() {
16119
- const Tag = this.fieldset ? 'fieldset' : 'div';
16120
- return (hAsync(Host, { size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { class: FormControlClass.holder }, this.h.hasSlot('top') && hAsync("slot", { name: "top" }), hAsync("slot", null), this.h.hasSlot('bottom') && (hAsync("div", { class: FormControlClass.bottom }, hAsync("slot", { name: "bottom" }))))));
16127
+ const Tag = this.fieldset ? "fieldset" : "div";
16128
+ return (hAsync(Host, { size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { class: FormControlClass.holder }, this.h.hasSlot("top") && hAsync("slot", { name: "top" }), hAsync("slot", null), this.h.hasSlot("bottom") && (hAsync("div", { class: FormControlClass.bottom }, hAsync("slot", { name: "bottom" }))))));
16121
16129
  }
16122
16130
  get host() { return getElement(this); }
16123
16131
  static get watchers() { return {
@@ -16209,6 +16217,14 @@ class GovFormFile {
16209
16217
  this.h = govHost(this.host);
16210
16218
  this.f = govForm(this.h);
16211
16219
  }
16220
+ watchDisabled() {
16221
+ this.passControlAttrs();
16222
+ }
16223
+ passControlAttrs() {
16224
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
16225
+ this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
16226
+ this.f.passAttrToControl("type", "File");
16227
+ }
16212
16228
  registerListeners() {
16213
16229
  function highlight() {
16214
16230
  this.areaRef.classList.add("highlight");
@@ -16266,8 +16282,8 @@ class GovFormFile {
16266
16282
  });
16267
16283
  }
16268
16284
  componentWillLoad() {
16269
- this.f.passAttrToControl("type", "File");
16270
16285
  this.f.passAttrToLabel("required", String(this.required));
16286
+ this.watchDisabled();
16271
16287
  }
16272
16288
  async componentDidRender() {
16273
16289
  if (canValidateWcagOnRender()) {
@@ -16334,6 +16350,10 @@ class GovFormFile {
16334
16350
  validateWcagLabelFor(this.identifier || this.fileId, this.wcagLabelledBy, FormFileClass.root);
16335
16351
  }
16336
16352
  get host() { return getElement(this); }
16353
+ static get watchers() { return {
16354
+ "disabled": ["watchDisabled"],
16355
+ "invalid": ["watchDisabled"]
16356
+ }; }
16337
16357
  static get style() { return govFormFileCss; }
16338
16358
  static get cmpMeta() { return {
16339
16359
  "$flags$": 4,
@@ -16451,7 +16471,7 @@ class GovFormInput {
16451
16471
  this.focused = undefined;
16452
16472
  this.h = govHost(this.host);
16453
16473
  this.inputId = createID('GovInput');
16454
- this.f = govForm(govHost(this.host));
16474
+ this.f = govForm(this.h);
16455
16475
  }
16456
16476
  validateVariant(newValue) {
16457
16477
  validateProp(FormInputVariants, newValue, FormInputClass.root);
@@ -16459,10 +16479,19 @@ class GovFormInput {
16459
16479
  validateSize(newValue) {
16460
16480
  validateProp(FormInputSizes, newValue, FormInputClass.root);
16461
16481
  }
16482
+ watchDisabled() {
16483
+ this.passControlAttrs();
16484
+ }
16485
+ passControlAttrs() {
16486
+ this.f.passAttrToControl("size", this.size);
16487
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
16488
+ this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
16489
+ this.f.passAttrToControl('type', this.multiline ? Tags$1.TEXTAREA : Tags$1.INPUT);
16490
+ }
16462
16491
  componentWillLoad() {
16463
16492
  this.validateVariant(this.variant);
16464
16493
  this.validateSize(this.size);
16465
- this.f.passAttrToControl('type', this.multiline ? Tags$1.TEXTAREA : Tags$1.INPUT);
16494
+ this.passControlAttrs();
16466
16495
  this.f.passAttrToLabel('required', String(this.required));
16467
16496
  }
16468
16497
  async componentDidRender() {
@@ -16555,7 +16584,10 @@ class GovFormInput {
16555
16584
  get host() { return getElement(this); }
16556
16585
  static get watchers() { return {
16557
16586
  "variant": ["validateVariant"],
16558
- "size": ["validateSize"]
16587
+ "size": ["validateSize", "watchDisabled"],
16588
+ "disabled": ["watchDisabled"],
16589
+ "invalid": ["watchDisabled"],
16590
+ "type": ["watchDisabled"]
16559
16591
  }; }
16560
16592
  static get style() { return govFormInputCss; }
16561
16593
  static get cmpMeta() { return {
@@ -16700,6 +16732,8 @@ class GovFormMultiSelect {
16700
16732
  this.selectedOptions = [];
16701
16733
  this.selectId = createID("GovSelect");
16702
16734
  this.listId = createID("GovMultiList");
16735
+ this.h = govHost(this.host);
16736
+ this.f = govForm(this.h);
16703
16737
  }
16704
16738
  validateVariant(newValue) {
16705
16739
  validateProp(FormMultiselectVariants, newValue, FormMultiSelectClass.root);
@@ -16713,9 +16747,18 @@ class GovFormMultiSelect {
16713
16747
  value: newValue,
16714
16748
  });
16715
16749
  }
16750
+ watchDisabled() {
16751
+ this.passControlAttrs();
16752
+ }
16753
+ passControlAttrs() {
16754
+ this.f.passAttrToControl("size", this.size);
16755
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
16756
+ this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
16757
+ }
16716
16758
  componentWillLoad() {
16717
16759
  this.validateVariant(this.variant);
16718
16760
  this.validateSize(this.size);
16761
+ this.watchDisabled();
16719
16762
  }
16720
16763
  getAvailableOptions() {
16721
16764
  return Array.from(this.selectRef.querySelectorAll("option"))
@@ -16840,7 +16883,7 @@ class GovFormMultiSelect {
16840
16883
  /**
16841
16884
  * Returns an instance of the native html select element
16842
16885
  */
16843
- async getInstance() {
16886
+ async getRef() {
16844
16887
  return this.selectRef;
16845
16888
  }
16846
16889
  /**
@@ -16855,8 +16898,10 @@ class GovFormMultiSelect {
16855
16898
  get host() { return getElement(this); }
16856
16899
  static get watchers() { return {
16857
16900
  "variant": ["validateVariant"],
16858
- "size": ["validateSize"],
16859
- "selectedOptions": ["emitChange"]
16901
+ "size": ["validateSize", "watchDisabled"],
16902
+ "selectedOptions": ["emitChange"],
16903
+ "disabled": ["watchDisabled"],
16904
+ "invalid": ["watchDisabled"]
16860
16905
  }; }
16861
16906
  static get style() { return govFormMultiSelectCss; }
16862
16907
  static get cmpMeta() { return {
@@ -16879,7 +16924,7 @@ class GovFormMultiSelect {
16879
16924
  "selectedOptions": [32],
16880
16925
  "setFocus": [64],
16881
16926
  "setValue": [64],
16882
- "getInstance": [64],
16927
+ "getRef": [64],
16883
16928
  "validateWcag": [64]
16884
16929
  },
16885
16930
  "$listeners$": undefined,
@@ -16931,24 +16976,33 @@ class GovFormRadio {
16931
16976
  this.required = false;
16932
16977
  this.disabled = undefined;
16933
16978
  this.name = undefined;
16934
- this.size = 'm';
16979
+ this.size = "m";
16935
16980
  this.identifier = undefined;
16936
16981
  this.invalid = undefined;
16937
16982
  this.wcagDescribedBy = undefined;
16938
16983
  this.wcagLabelledBy = undefined;
16939
- this.radioId = createID('GovRadio');
16984
+ this.radioId = createID("GovRadio");
16940
16985
  this.h = govHost(this.host);
16941
16986
  this.f = govForm(this.h);
16942
16987
  }
16943
16988
  validateSize(newValue) {
16944
16989
  validateProp(FormRadioSizes, newValue, FormRadioClass.root);
16945
16990
  }
16991
+ watchDisabled() {
16992
+ this.passControlAttrs();
16993
+ }
16994
+ passControlAttrs() {
16995
+ this.f.passAttrToControl("size", this.size);
16996
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
16997
+ this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
16998
+ this.f.passAttrToControl("type", "radio");
16999
+ }
16946
17000
  componentWillLoad() {
16947
- this.f.passAttrToControl('type', 'radio');
17001
+ this.passControlAttrs();
16948
17002
  }
16949
17003
  async componentDidRender() {
16950
- this.f.passAttrToLabel('identifier', this.identifier || this.radioId);
16951
- this.f.passAttrToLabel('required', String(this.required));
17004
+ this.f.passAttrToLabel("identifier", this.identifier || this.radioId);
17005
+ this.f.passAttrToLabel("required", String(this.required));
16952
17006
  if (canValidateWcagOnRender()) {
16953
17007
  await delay(500);
16954
17008
  await this.validateWcag();
@@ -17004,13 +17058,15 @@ class GovFormRadio {
17004
17058
  * Validate the WCAG attributes of the component
17005
17059
  */
17006
17060
  async validateWcag() {
17007
- validateWcagRef(this.wcagDescribedBy, 'wcag-described-by', FormRadioClass.root);
17008
- validateWcagRef(this.wcagLabelledBy, 'wcag-labelled-by', FormRadioClass.root);
17061
+ validateWcagRef(this.wcagDescribedBy, "wcag-described-by", FormRadioClass.root);
17062
+ validateWcagRef(this.wcagLabelledBy, "wcag-labelled-by", FormRadioClass.root);
17009
17063
  validateWcagLabelFor(this.identifier || this.radioId, this.wcagLabelledBy, FormRadioClass.root);
17010
17064
  }
17011
17065
  get host() { return getElement(this); }
17012
17066
  static get watchers() { return {
17013
- "size": ["validateSize"]
17067
+ "size": ["validateSize", "watchDisabled"],
17068
+ "disabled": ["watchDisabled"],
17069
+ "invalid": ["watchDisabled"]
17014
17070
  }; }
17015
17071
  static get style() { return govFormRadioCss; }
17016
17072
  static get cmpMeta() { return {
@@ -17087,8 +17143,8 @@ class GovFormSelect {
17087
17143
  this.wcagOwns = undefined;
17088
17144
  this.focused = undefined;
17089
17145
  this.h = govHost(this.host);
17146
+ this.f = govForm(this.h);
17090
17147
  this.selectId = createID("GovSelect");
17091
- this.f = govForm(govHost(this.host));
17092
17148
  }
17093
17149
  validateVariant(newValue) {
17094
17150
  validateProp(FormSelectVariants, newValue, FormSelectClass.root);
@@ -17096,6 +17152,15 @@ class GovFormSelect {
17096
17152
  validateSize(newValue) {
17097
17153
  validateProp(FormSelectSizes, newValue, FormSelectClass.root);
17098
17154
  }
17155
+ watchDisabled() {
17156
+ this.passControlAttrs();
17157
+ }
17158
+ passControlAttrs() {
17159
+ this.f.passAttrToControl("size", this.size);
17160
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
17161
+ this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
17162
+ this.f.passAttrToControl("type", "select");
17163
+ }
17099
17164
  componentWillLoad() {
17100
17165
  this.validateVariant(this.variant);
17101
17166
  this.validateSize(this.size);
@@ -17104,7 +17169,7 @@ class GovFormSelect {
17104
17169
  option.setAttribute("selected", "true");
17105
17170
  }
17106
17171
  });
17107
- this.f.passAttrToControl("type", "select");
17172
+ this.passControlAttrs();
17108
17173
  this.f.passAttrToLabel("required", String(this.required));
17109
17174
  }
17110
17175
  async componentDidRender() {
@@ -17172,7 +17237,9 @@ class GovFormSelect {
17172
17237
  get host() { return getElement(this); }
17173
17238
  static get watchers() { return {
17174
17239
  "variant": ["validateVariant"],
17175
- "size": ["validateSize"]
17240
+ "size": ["validateSize", "watchDisabled"],
17241
+ "disabled": ["watchDisabled"],
17242
+ "invalid": ["watchDisabled"]
17176
17243
  }; }
17177
17244
  static get style() { return govFormSelectCss; }
17178
17245
  static get cmpMeta() { return {
@@ -17230,12 +17297,21 @@ class GovFormSwitch {
17230
17297
  validateSize(newValue) {
17231
17298
  validateProp(FormSwitchSizes, newValue, FormSwitchClass.root);
17232
17299
  }
17233
- componentWillLoad() {
17300
+ watchDisabled() {
17301
+ this.passControlAttrs();
17302
+ }
17303
+ passControlAttrs() {
17304
+ this.f.passAttrToControl("size", this.size);
17305
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
17306
+ this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
17234
17307
  this.f.passAttrToControl("type", "switch");
17235
17308
  }
17309
+ componentWillLoad() {
17310
+ this.passControlAttrs();
17311
+ }
17236
17312
  async componentDidRender() {
17237
- this.f.passAttrToLabel('identifier', this.identifier || this.checkboxId);
17238
- this.f.passAttrToLabel('required', String(this.required));
17313
+ this.f.passAttrToLabel("identifier", this.identifier || this.checkboxId);
17314
+ this.f.passAttrToLabel("required", String(this.required));
17239
17315
  if (canValidateWcagOnRender()) {
17240
17316
  await delay(500);
17241
17317
  await this.validateWcag();
@@ -17259,7 +17335,7 @@ class GovFormSwitch {
17259
17335
  component: FormSwitchClass.root,
17260
17336
  checked: this.checked,
17261
17337
  value: this.value,
17262
- originalEvent: e
17338
+ originalEvent: e,
17263
17339
  });
17264
17340
  }
17265
17341
  onBlurHandler(e) {
@@ -17268,7 +17344,7 @@ class GovFormSwitch {
17268
17344
  component: FormSwitchClass.root,
17269
17345
  checked: this.checked,
17270
17346
  value: this.value,
17271
- originalEvent: e
17347
+ originalEvent: e,
17272
17348
  });
17273
17349
  }
17274
17350
  onChangeHandler(e) {
@@ -17278,7 +17354,7 @@ class GovFormSwitch {
17278
17354
  component: FormSwitchClass.root,
17279
17355
  checked: this.checked,
17280
17356
  value: this.value,
17281
- originalEvent: e
17357
+ originalEvent: e,
17282
17358
  });
17283
17359
  }
17284
17360
  /**
@@ -17297,7 +17373,9 @@ class GovFormSwitch {
17297
17373
  }
17298
17374
  get host() { return getElement(this); }
17299
17375
  static get watchers() { return {
17300
- "size": ["validateSize"]
17376
+ "size": ["validateSize", "watchDisabled"],
17377
+ "disabled": ["watchDisabled"],
17378
+ "invalid": ["watchDisabled"]
17301
17379
  }; }
17302
17380
  static get style() { return govFormSwitchCss; }
17303
17381
  static get cmpMeta() { return {
@@ -67,6 +67,8 @@ export declare class GovFormCheckbox {
67
67
  */
68
68
  govChange: EventEmitter<FormCheckboxEvent>;
69
69
  validateSize(newValue: string): void;
70
+ watchDisabled(): void;
71
+ private passControlAttrs;
70
72
  componentWillLoad(): void;
71
73
  componentDidRender(): Promise<void>;
72
74
  render(): any;
@@ -1,10 +1,11 @@
1
- import { FormControlSizesType } from './constants';
1
+ import { FormControlSizesType } from "./constants";
2
2
  export declare class GovFormControl {
3
3
  private readonly h;
4
4
  private f;
5
5
  private readonly controlId;
6
6
  private observer;
7
7
  constructor();
8
+ host: HTMLGovFormControlElement;
8
9
  /**
9
10
  * Defines the space between nested components.
10
11
  */
@@ -36,7 +37,6 @@ export declare class GovFormControl {
36
37
  * Form element size.
37
38
  */
38
39
  readonly size?: FormControlSizesType;
39
- host: HTMLGovFormControlElement;
40
40
  watchInvalid(): void;
41
41
  componentDidRender(): void;
42
42
  disconnectedCallback(): void;
@@ -96,6 +96,8 @@ export declare class GovFormFile {
96
96
  */
97
97
  govRemoveFile: EventEmitter<GovFormFileEvent>;
98
98
  files: GovFormFileItem[];
99
+ watchDisabled(): void;
100
+ private passControlAttrs;
99
101
  private registerListeners;
100
102
  preventDefaults(e: any): void;
101
103
  handleDrop(e: DragEvent): void;
@@ -4,7 +4,7 @@ import { FormInputVariantType } from './constants';
4
4
  import { FormInputEvent } from './gov-form-input.types';
5
5
  export declare class GovFormInput {
6
6
  private f;
7
- private h;
7
+ private readonly h;
8
8
  private inputRef?;
9
9
  private readonly inputId;
10
10
  constructor();
@@ -148,6 +148,8 @@ export declare class GovFormInput {
148
148
  focused: boolean;
149
149
  validateVariant(newValue: string): void;
150
150
  validateSize(newValue: string): void;
151
+ watchDisabled(): void;
152
+ private passControlAttrs;
151
153
  componentWillLoad(): void;
152
154
  componentDidRender(): Promise<void>;
153
155
  render(): any;
@@ -2,6 +2,8 @@ import { EventEmitter } from "../../../stencil-public-runtime";
2
2
  import { FormMultiselectSizesType, FormMultiselectVariantType } from "./constants";
3
3
  import { FormMultiselectEvent, GovFormMultiSelectItem } from "./gov-form-multi-select.types";
4
4
  export declare class GovFormMultiSelect {
5
+ private f;
6
+ private readonly h;
5
7
  private selectRef?;
6
8
  private autocompleteRef?;
7
9
  private readonly selectId;
@@ -72,6 +74,8 @@ export declare class GovFormMultiSelect {
72
74
  validateVariant(newValue: string): void;
73
75
  validateSize(newValue: string): void;
74
76
  emitChange(newValue: GovFormMultiSelectItem[]): void;
77
+ watchDisabled(): void;
78
+ private passControlAttrs;
75
79
  componentWillLoad(): void;
76
80
  private getAvailableOptions;
77
81
  private initAutocomplete;
@@ -97,7 +101,7 @@ export declare class GovFormMultiSelect {
97
101
  /**
98
102
  * Returns an instance of the native html select element
99
103
  */
100
- getInstance(): Promise<HTMLSelectElement>;
104
+ getRef(): Promise<HTMLSelectElement>;
101
105
  /**
102
106
  * Validate the WCAG attributes of the component
103
107
  */
@@ -1,6 +1,6 @@
1
- import { EventEmitter } from '../../../stencil-public-runtime';
2
- import { FormRadioSizesType } from './constants';
3
- import { FormRadioEvent } from './gov-form-radio.types';
1
+ import { EventEmitter } from "../../../stencil-public-runtime";
2
+ import { FormRadioSizesType } from "./constants";
3
+ import { FormRadioEvent } from "./gov-form-radio.types";
4
4
  export declare class GovFormRadio {
5
5
  private readonly h;
6
6
  private f;
@@ -67,6 +67,8 @@ export declare class GovFormRadio {
67
67
  */
68
68
  govChange: EventEmitter<FormRadioEvent>;
69
69
  validateSize(newValue: string): void;
70
+ watchDisabled(): void;
71
+ private passControlAttrs;
70
72
  componentWillLoad(): void;
71
73
  componentDidRender(): Promise<void>;
72
74
  render(): any;
@@ -3,7 +3,7 @@ import { FormSelectSizesType, FormSelectVariantType } from "./constants";
3
3
  import { FormSelectEvent } from "./gov-form-select.types";
4
4
  export declare class GovFormSelect {
5
5
  private f;
6
- private h;
6
+ private readonly h;
7
7
  private selectRef?;
8
8
  private readonly selectId;
9
9
  constructor();
@@ -77,6 +77,8 @@ export declare class GovFormSelect {
77
77
  focused: boolean;
78
78
  validateVariant(newValue: string): void;
79
79
  validateSize(newValue: string): void;
80
+ watchDisabled(): void;
81
+ private passControlAttrs;
80
82
  componentWillLoad(): void;
81
83
  componentDidRender(): Promise<void>;
82
84
  render(): any;
@@ -67,6 +67,8 @@ export declare class GovFormSwitch {
67
67
  */
68
68
  govChange: EventEmitter<FormSwitchEvent>;
69
69
  validateSize(newValue: string): void;
70
+ watchDisabled(): void;
71
+ private passControlAttrs;
70
72
  componentWillLoad(): void;
71
73
  componentDidRender(): Promise<void>;
72
74
  render(): any;
@@ -911,7 +911,7 @@ export namespace Components {
911
911
  /**
912
912
  * Returns an instance of the native html select element
913
913
  */
914
- "getInstance": () => Promise<HTMLSelectElement>;
914
+ "getRef": () => Promise<HTMLSelectElement>;
915
915
  /**
916
916
  * Custom select identifier.
917
917
  */
@@ -0,0 +1,6 @@
1
+ declare module '*.jpg'
2
+
3
+ declare module '*.md' {
4
+ const value: string // markdown is just a string
5
+ export default value
6
+ }
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name" : "@gov-design-system-ce/components",
3
3
  "description" : "This package includes Gov Design System Web Components and related utilities.",
4
4
  "author": "Zdeněk Vítek",
5
- "version" : "0.0.33",
5
+ "version" : "0.0.35",
6
6
  "license" : "EUPL v1.2 Licensed",
7
7
  "main" : "./dist/index.cjs.js",
8
8
  "module" : "./dist/index.js",
@@ -1,20 +0,0 @@
1
- 'use strict';
2
-
3
- const sizes = require('./sizes-79872c2a.js');
4
- const variants = require('./variants-f5ffeef3.js');
5
- const utils = require('./utils-c9b1bba3.js');
6
-
7
- const FormMultiselectSizes = utils.pick(sizes.Sizes, ['_M', '_L', '_XL']);
8
- const FormMultiselectVariants = utils.pick(variants.Variants, ['PRIMARY', 'SECONDARY']);
9
- const FormMultiSelectClass = {
10
- root: 'gov-form-multi-select',
11
- wrap: 'gov-form-multi-select__wrap',
12
- list: 'gov-form-multi-select__list',
13
- item: 'gov-form-multi-select__item',
14
- };
15
-
16
- exports.FormMultiSelectClass = FormMultiSelectClass;
17
- exports.FormMultiselectSizes = FormMultiselectSizes;
18
- exports.FormMultiselectVariants = FormMultiselectVariants;
19
-
20
- //# sourceMappingURL=constants-e8760a84.js.map