@gov-design-system-ce/components 4.0.8-rc17 → 4.0.8-rc19

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 (176) hide show
  1. package/dist/cjs/core.cjs.js +1 -1
  2. package/dist/cjs/gov-form-checkbox.cjs.entry.js +5 -4
  3. package/dist/cjs/gov-form-checkbox.cjs.entry.js.map +1 -1
  4. package/dist/cjs/gov-form-control.cjs.entry.js +1 -37
  5. package/dist/cjs/gov-form-control.cjs.entry.js.map +1 -1
  6. package/dist/cjs/gov-form-file.cjs.entry.js +7 -6
  7. package/dist/cjs/gov-form-file.cjs.entry.js.map +1 -1
  8. package/dist/cjs/gov-form-input.cjs.entry.js +11 -9
  9. package/dist/cjs/gov-form-input.cjs.entry.js.map +1 -1
  10. package/dist/cjs/gov-form-multi-select.cjs.entry.js +7 -7
  11. package/dist/cjs/gov-form-multi-select.cjs.entry.js.map +1 -1
  12. package/dist/cjs/gov-form-radio.cjs.entry.js +5 -4
  13. package/dist/cjs/gov-form-radio.cjs.entry.js.map +1 -1
  14. package/dist/cjs/gov-form-select.cjs.entry.js +10 -7
  15. package/dist/cjs/gov-form-select.cjs.entry.js.map +1 -1
  16. package/dist/cjs/gov-form-switch.cjs.entry.js +2 -1
  17. package/dist/cjs/gov-form-switch.cjs.entry.js.map +1 -1
  18. package/dist/cjs/gov-icon.cjs.entry.js +1 -1
  19. package/dist/cjs/gov-tile.cjs.entry.js +1 -1
  20. package/dist/cjs/gov-tile.cjs.entry.js.map +1 -1
  21. package/dist/cjs/loader.cjs.js +1 -1
  22. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js +5 -4
  23. package/dist/collection/components/gov-form/checkbox/gov-form-checkbox.js.map +1 -1
  24. package/dist/collection/components/gov-form/control/gov-form-control.js +5 -64
  25. package/dist/collection/components/gov-form/control/gov-form-control.js.map +1 -1
  26. package/dist/collection/components/gov-form/file/gov-form-file.js +7 -6
  27. package/dist/collection/components/gov-form/file/gov-form-file.js.map +1 -1
  28. package/dist/collection/components/gov-form/input/gov-form-input.js +16 -14
  29. package/dist/collection/components/gov-form/input/gov-form-input.js.map +1 -1
  30. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js +7 -7
  31. package/dist/collection/components/gov-form/multiselect/gov-form-multi-select.js.map +1 -1
  32. package/dist/collection/components/gov-form/radio/gov-form-radio.js +5 -4
  33. package/dist/collection/components/gov-form/radio/gov-form-radio.js.map +1 -1
  34. package/dist/collection/components/gov-form/select/gov-form-select.js +12 -7
  35. package/dist/collection/components/gov-form/select/gov-form-select.js.map +1 -1
  36. package/dist/collection/components/gov-form/switch/gov-form-switch.js +2 -1
  37. package/dist/collection/components/gov-form/switch/gov-form-switch.js.map +1 -1
  38. package/dist/collection/components/gov-tile/gov-tile.js +1 -1
  39. package/dist/collection/components/gov-tile/gov-tile.js.map +1 -1
  40. package/dist/collection/pages/Forms.js +12 -12
  41. package/dist/collection/pages/Forms.js.map +1 -1
  42. package/dist/components/gov-accordion-item.js +1 -1
  43. package/dist/components/gov-attachments-item.js +1 -1
  44. package/dist/components/gov-breadcrumbs.js +1 -1
  45. package/dist/components/gov-button.js +1 -1
  46. package/dist/components/gov-card.js +1 -1
  47. package/dist/components/gov-chip.js +1 -1
  48. package/dist/components/gov-form-autocomplete.js +1 -1
  49. package/dist/components/gov-form-checkbox.js +1 -1
  50. package/dist/components/gov-form-checkbox.js.map +1 -1
  51. package/dist/components/gov-form-control.js +1 -1
  52. package/dist/components/gov-form-control.js.map +1 -1
  53. package/dist/components/gov-form-file.js +1 -1
  54. package/dist/components/gov-form-file.js.map +1 -1
  55. package/dist/components/gov-form-input.js +1 -1
  56. package/dist/components/gov-form-multi-select.js +1 -1
  57. package/dist/components/gov-form-multi-select.js.map +1 -1
  58. package/dist/components/gov-form-radio.js +1 -1
  59. package/dist/components/gov-form-radio.js.map +1 -1
  60. package/dist/components/gov-form-select.js +1 -1
  61. package/dist/components/gov-form-switch.js +1 -1
  62. package/dist/components/gov-form-switch.js.map +1 -1
  63. package/dist/components/gov-icon.js +1 -1
  64. package/dist/components/gov-infobar.js +1 -1
  65. package/dist/components/gov-loading.js +1 -1
  66. package/dist/components/gov-modal.js +1 -1
  67. package/dist/components/gov-pagination.js +1 -1
  68. package/dist/components/gov-prompt.js +1 -1
  69. package/dist/components/gov-side-nav-item.js +1 -1
  70. package/dist/components/gov-tabs.js +1 -1
  71. package/dist/components/gov-tabs.js.map +1 -1
  72. package/dist/components/gov-tag.js +1 -1
  73. package/dist/components/gov-tile.js +1 -1
  74. package/dist/components/gov-tile.js.map +1 -1
  75. package/dist/components/gov-toast.js +1 -1
  76. package/dist/components/gov-tooltip-content.js +1 -1
  77. package/dist/components/gov-wizard-item.js +1 -1
  78. package/dist/components/{p-8ac22724.js → p-37b342d0.js} +2 -2
  79. package/dist/components/p-37b342d0.js.map +1 -0
  80. package/dist/components/{p-57bc98b3.js → p-410e296d.js} +2 -2
  81. package/dist/components/{p-fd554fb4.js → p-4f694d25.js} +2 -2
  82. package/dist/components/{p-3248435d.js → p-5ee68c72.js} +2 -2
  83. package/dist/components/p-5ee68c72.js.map +1 -0
  84. package/dist/components/{p-483d079f.js → p-701f03e1.js} +2 -2
  85. package/dist/components/{p-e35fdedd.js → p-ab0ea373.js} +2 -2
  86. package/dist/components/{p-44c731a0.js → p-eefec75b.js} +2 -2
  87. package/dist/core/core.esm.js +1 -1
  88. package/dist/core/core.esm.js.map +1 -1
  89. package/dist/core/{p-a87d8f17.entry.js → p-2cdb5670.entry.js} +3 -2
  90. package/dist/core/p-2cdb5670.entry.js.map +1 -0
  91. package/dist/core/{p-4c83f443.entry.js → p-2e07619e.entry.js} +2 -2
  92. package/dist/core/{p-4c83f443.entry.js.map → p-2e07619e.entry.js.map} +1 -1
  93. package/dist/core/{p-14e5fd00.entry.js → p-396ae350.entry.js} +2 -2
  94. package/dist/core/p-396ae350.entry.js.map +1 -0
  95. package/dist/core/{p-065b396a.entry.js → p-3c0058a4.entry.js} +2 -2
  96. package/dist/core/p-3c0058a4.entry.js.map +1 -0
  97. package/dist/core/{p-98e89c46.entry.js → p-4b88cdf6.entry.js} +2 -2
  98. package/dist/core/{p-bc2ec133.entry.js → p-5f3721be.entry.js} +2 -2
  99. package/dist/core/p-5f3721be.entry.js.map +1 -0
  100. package/dist/core/p-6110119c.entry.js +2 -0
  101. package/dist/core/p-6110119c.entry.js.map +1 -0
  102. package/dist/core/{p-afb86442.entry.js → p-6be9b50d.entry.js} +3 -2
  103. package/dist/core/p-6be9b50d.entry.js.map +1 -0
  104. package/dist/core/{p-d0446df9.entry.js → p-74627eb2.entry.js} +2 -2
  105. package/dist/core/p-74627eb2.entry.js.map +1 -0
  106. package/dist/core/{p-b18be1d6.entry.js → p-753e4861.entry.js} +3 -2
  107. package/dist/core/p-753e4861.entry.js.map +1 -0
  108. package/dist/core/{p-36312bef.entry.js → p-92f752e1.entry.js} +3 -2
  109. package/dist/core/p-92f752e1.entry.js.map +1 -0
  110. package/dist/core/{p-6092fd22.entry.js → p-aa91f33f.entry.js} +2 -2
  111. package/dist/core/p-aa91f33f.entry.js.map +1 -0
  112. package/dist/core/{p-c7e8faec.entry.js → p-ab2f6b4d.entry.js} +2 -2
  113. package/dist/core/{p-c7e8faec.entry.js.map → p-ab2f6b4d.entry.js.map} +1 -1
  114. package/dist/core/{p-0d99a3d8.entry.js → p-e102ae1d.entry.js} +2 -2
  115. package/dist/core/p-e102ae1d.entry.js.map +1 -0
  116. package/dist/core/{p-dbb67e76.entry.js → p-e21b402c.entry.js} +3 -2
  117. package/dist/core/p-e21b402c.entry.js.map +1 -0
  118. package/dist/core/{p-1d67220c.entry.js → p-f9e6f776.entry.js} +3 -2
  119. package/dist/core/p-f9e6f776.entry.js.map +1 -0
  120. package/dist/core/{p-dbad9256.entry.js → p-fc3d4a73.entry.js} +3 -2
  121. package/dist/core/p-fc3d4a73.entry.js.map +1 -0
  122. package/dist/esm/core.js +1 -1
  123. package/dist/esm/gov-form-checkbox.entry.js +5 -4
  124. package/dist/esm/gov-form-checkbox.entry.js.map +1 -1
  125. package/dist/esm/gov-form-control.entry.js +2 -38
  126. package/dist/esm/gov-form-control.entry.js.map +1 -1
  127. package/dist/esm/gov-form-file.entry.js +7 -6
  128. package/dist/esm/gov-form-file.entry.js.map +1 -1
  129. package/dist/esm/gov-form-input.entry.js +11 -9
  130. package/dist/esm/gov-form-input.entry.js.map +1 -1
  131. package/dist/esm/gov-form-multi-select.entry.js +7 -7
  132. package/dist/esm/gov-form-multi-select.entry.js.map +1 -1
  133. package/dist/esm/gov-form-radio.entry.js +5 -4
  134. package/dist/esm/gov-form-radio.entry.js.map +1 -1
  135. package/dist/esm/gov-form-select.entry.js +10 -7
  136. package/dist/esm/gov-form-select.entry.js.map +1 -1
  137. package/dist/esm/gov-form-switch.entry.js +2 -1
  138. package/dist/esm/gov-form-switch.entry.js.map +1 -1
  139. package/dist/esm/gov-icon.entry.js +1 -1
  140. package/dist/esm/gov-tile.entry.js +1 -1
  141. package/dist/esm/gov-tile.entry.js.map +1 -1
  142. package/dist/esm/loader.js +1 -1
  143. package/dist/hydrate/index.js +54 -82
  144. package/dist/hydrate/index.mjs +54 -82
  145. package/dist/types/components/gov-form/checkbox/gov-form-checkbox.d.ts +1 -1
  146. package/dist/types/components/gov-form/control/gov-form-control.d.ts +3 -10
  147. package/dist/types/components/gov-form/file/gov-form-file.d.ts +1 -1
  148. package/dist/types/components/gov-form/input/gov-form-input.d.ts +1 -1
  149. package/dist/types/components/gov-form/multiselect/gov-form-multi-select.d.ts +1 -1
  150. package/dist/types/components/gov-form/radio/gov-form-radio.d.ts +1 -1
  151. package/dist/types/components/gov-form/select/gov-form-select.d.ts +1 -1
  152. package/dist/types/components.d.ts +6 -14
  153. package/package.json +1 -1
  154. package/dist/components/p-3248435d.js.map +0 -1
  155. package/dist/components/p-8ac22724.js.map +0 -1
  156. package/dist/core/p-065b396a.entry.js.map +0 -1
  157. package/dist/core/p-0d99a3d8.entry.js.map +0 -1
  158. package/dist/core/p-14e5fd00.entry.js.map +0 -1
  159. package/dist/core/p-1d67220c.entry.js.map +0 -1
  160. package/dist/core/p-36312bef.entry.js.map +0 -1
  161. package/dist/core/p-4b048e19.entry.js +0 -2
  162. package/dist/core/p-4b048e19.entry.js.map +0 -1
  163. package/dist/core/p-6092fd22.entry.js.map +0 -1
  164. package/dist/core/p-a87d8f17.entry.js.map +0 -1
  165. package/dist/core/p-afb86442.entry.js.map +0 -1
  166. package/dist/core/p-b18be1d6.entry.js.map +0 -1
  167. package/dist/core/p-bc2ec133.entry.js.map +0 -1
  168. package/dist/core/p-d0446df9.entry.js.map +0 -1
  169. package/dist/core/p-dbad9256.entry.js.map +0 -1
  170. package/dist/core/p-dbb67e76.entry.js.map +0 -1
  171. /package/dist/components/{p-57bc98b3.js.map → p-410e296d.js.map} +0 -0
  172. /package/dist/components/{p-fd554fb4.js.map → p-4f694d25.js.map} +0 -0
  173. /package/dist/components/{p-483d079f.js.map → p-701f03e1.js.map} +0 -0
  174. /package/dist/components/{p-e35fdedd.js.map → p-ab0ea373.js.map} +0 -0
  175. /package/dist/components/{p-44c731a0.js.map → p-eefec75b.js.map} +0 -0
  176. /package/dist/core/{p-98e89c46.entry.js.map → p-4b88cdf6.entry.js.map} +0 -0
@@ -4214,11 +4214,12 @@ class GovFormCheckbox {
4214
4214
  validateSize(newValue) {
4215
4215
  validateProp(FormCheckboxSizes, newValue, FormCheckboxClass.root);
4216
4216
  }
4217
- watchDisabled() {
4217
+ watchControlAttrs() {
4218
4218
  this.passControlAttrs();
4219
4219
  }
4220
4220
  passControlAttrs() {
4221
4221
  this.f.passAttrToControl("size", this.size);
4222
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
4222
4223
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
4223
4224
  }
4224
4225
  componentWillLoad() {
@@ -4292,9 +4293,9 @@ class GovFormCheckbox {
4292
4293
  }
4293
4294
  get host() { return getElement(this); }
4294
4295
  static get watchers() { return {
4295
- "size": ["validateSize", "watchDisabled"],
4296
- "disabled": ["watchDisabled"],
4297
- "invalid": ["watchDisabled"]
4296
+ "size": ["validateSize", "watchControlAttrs"],
4297
+ "disabled": ["watchControlAttrs"],
4298
+ "invalid": ["watchControlAttrs"]
4298
4299
  }; }
4299
4300
  static get style() { return GovFormCheckboxStyle0; }
4300
4301
  static get cmpMeta() { return {
@@ -4428,7 +4429,6 @@ var GovFormControlStyle0 = govFormControlCss;
4428
4429
  class GovFormControl {
4429
4430
  constructor(hostRef) {
4430
4431
  registerInstance(this, hostRef);
4431
- this.gap = undefined;
4432
4432
  this.identifier = undefined;
4433
4433
  this.invalid = false;
4434
4434
  this.disabled = false;
@@ -4437,11 +4437,8 @@ class GovFormControl {
4437
4437
  this.size = "m";
4438
4438
  this.h = govHost(this.host);
4439
4439
  this.f = govForm(this.h);
4440
- this.controlId = createID("GovFormControl");
4441
4440
  }
4442
4441
  componentDidRender() {
4443
- this.passChildAttrs();
4444
- this.invalidChildAttrs();
4445
4442
  this.syncControlMessages();
4446
4443
  this.formElementDescriptionControl();
4447
4444
  }
@@ -4449,38 +4446,6 @@ class GovFormControl {
4449
4446
  var _a;
4450
4447
  (_a = this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();
4451
4448
  }
4452
- passChildAttrs() {
4453
- const formElements = [
4454
- "gov-form-select",
4455
- "gov-form-input",
4456
- "gov-form-switch",
4457
- "gov-form-checkbox",
4458
- "gov-form-radio",
4459
- "gov-form-multi-select",
4460
- "gov-form-file",
4461
- "gov-form-search",
4462
- ];
4463
- this.h.passChildAttr(formElements, "success", this.success);
4464
- if (this.f.hasGroupChildren === false) {
4465
- this.h.passChildAttr([...formElements, "gov-form-label"], "identifier", this.identifier || this.controlId);
4466
- }
4467
- }
4468
- invalidChildAttrs() {
4469
- const formElements = [
4470
- "gov-form-select",
4471
- "gov-form-input",
4472
- "gov-form-switch",
4473
- "gov-form-checkbox",
4474
- "gov-form-radio",
4475
- "gov-form-multi-select",
4476
- "gov-form-file",
4477
- "gov-form-search",
4478
- ];
4479
- this.h.passChildAttr(formElements, "invalid", this.invalid);
4480
- if (this.f.hasGroupChildren === false) {
4481
- this.h.passChildAttr([...formElements, "gov-form-label"], "identifier", this.identifier || this.controlId);
4482
- }
4483
- }
4484
4449
  formElementDescriptionControl() {
4485
4450
  const bottomSlot = this.host.querySelector("." + FormControlClass.bottom);
4486
4451
  if (!bottomSlot)
@@ -4506,7 +4471,7 @@ class GovFormControl {
4506
4471
  }
4507
4472
  render() {
4508
4473
  const Tag = this.fieldset ? "fieldset" : "div";
4509
- return (hAsync(Host, { key: '995792ee7710d6773866b229f94c694e4b442e34', size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { key: '3ee8104bd8f394da8d422c11be6eecd6733cd3e9', class: FormControlClass.holder }, this.h.hasSlot("top") && hAsync("slot", { key: '18221ae1cbc710eea0e90869174438a3eeae32dd', name: "top" }), hAsync("slot", { key: 'f4362ffaf96e51c1e20977ea8ef0d8d2deab6d4c' }), this.h.hasSlot("bottom") && (hAsync("div", { key: '528552235a2eaa1530e635870bf97b110fd32753', class: FormControlClass.bottom }, hAsync("slot", { key: '102521effa28ca385838c6c01e33a871b2bf0f4a', name: "bottom" }))))));
4474
+ return (hAsync(Host, { key: '9178f9dbaff42cb649849621e34059afa6d387d7', size: this.size, class: this.h.classes(FormControlClass.root) }, hAsync(Tag, { key: '296540b214c4106f676b3bf4981ad84409004472', class: FormControlClass.holder }, this.h.hasSlot("top") && hAsync("slot", { key: 'b62e1d46f8fdc6b56ae481de1cb1fb020f9f8ec6', name: "top" }), hAsync("slot", { key: '24ffcd827657b1b02cbe657c41be16af9f8da165' }), this.h.hasSlot("bottom") && (hAsync("div", { key: '77d9ee6b541d4b1073fd621deec00c2336aff240', class: FormControlClass.bottom }, hAsync("slot", { key: '4c7f2200a2fd55b3f801dc40383b7a91cbb18b7d', name: "bottom" }))))));
4510
4475
  }
4511
4476
  get host() { return getElement(this); }
4512
4477
  static get style() { return GovFormControlStyle0; }
@@ -4514,7 +4479,6 @@ class GovFormControl {
4514
4479
  "$flags$": 4,
4515
4480
  "$tagName$": "gov-form-control",
4516
4481
  "$members$": {
4517
- "gap": [1],
4518
4482
  "identifier": [1],
4519
4483
  "invalid": [4],
4520
4484
  "disabled": [4],
@@ -4599,12 +4563,12 @@ class GovFormFile {
4599
4563
  this.h = govHost(this.host);
4600
4564
  this.f = govForm(this.h);
4601
4565
  }
4602
- watchDisabled() {
4566
+ watchControlAttrs() {
4603
4567
  this.passControlAttrs();
4604
4568
  }
4605
4569
  passControlAttrs() {
4606
4570
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
4607
- this.f.passAttrToControl("type", "File");
4571
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
4608
4572
  }
4609
4573
  registerListeners() {
4610
4574
  function highlight() {
@@ -4679,7 +4643,8 @@ class GovFormFile {
4679
4643
  }
4680
4644
  componentWillLoad() {
4681
4645
  this.f.passAttrToLabel("required", String(this.required));
4682
- this.watchDisabled();
4646
+ this.f.passAttrToControl("type", "File");
4647
+ this.passControlAttrs();
4683
4648
  }
4684
4649
  async componentDidRender() {
4685
4650
  if (canValidateWcagOnRender()) {
@@ -4689,7 +4654,7 @@ class GovFormFile {
4689
4654
  this.registerListeners();
4690
4655
  }
4691
4656
  render() {
4692
- return (hAsync(Host, { key: '0f0c007e221e04c4876b204dc1967f5b3bc7cfa4', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { key: 'f49933f160fcebaf5b6b7a65a039d4b1dadeadea', class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", { key: '1bd9bc79fae21146bfa60b34cc0a9caeaf53b4e0' }), hAsync("input", { key: '71c235790f137f973f65fa5cc355af2da124a86f', class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, multiple: this.multiple, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) })), this.h.hasSlot("attachments") ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("gov-attachments", { label: this.wcagAttachmentsLabel, "wcag-label": this.wcagAttachmentsLabel }, this.files.map(item => (hAsync("gov-attachments-item", { "wcag-remove-labelled-by": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, hAsync("span", { class: "sr-only", id: item.id }, this.wcagRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (hAsync("gov-form-message", { slot: "message", variant: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (hAsync("gov-form-message", { slot: "message", variant: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, hAsync("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
4657
+ return (hAsync(Host, { key: 'f8ab9ecfba8ade897c1ba9d343259fd77fe74f68', class: this.h.classes([FormFileClass.root]), invalid: toBoolAttrIfDefined(this.invalid), expanded: toBoolAttrIfDefined(this.expanded) }, hAsync("div", { key: '9b1051cb9163af7ceaf42462a2d040a04e3e2088', class: FormFileClass.area, ref: el => (this.areaRef = el) }, hAsync("slot", { key: 'cf789459997322558f3a27eeaacaab2e11757aed' }), hAsync("input", { key: '82d86f00eecd47a10b9540cc0671303d443b536b', class: FormFileClass.input, ref: el => (this.inputRef = el), id: this.identifier || this.fileId, type: "file", name: this.name, accept: this.accept, multiple: this.multiple, onChange: this.onChangeHandler.bind(this), onFocus: this.onFocusHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, disabled: this.disabled, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-disabled": toBoolAttrIfDefined(this.disabled) })), this.h.hasSlot("attachments") ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("slot", { name: "attachments" }))) : null, this.files.length && this.displayAttachments ? (hAsync("div", { class: FormFileClass.attachments }, hAsync("gov-attachments", { label: this.wcagAttachmentsLabel, "wcag-label": this.wcagAttachmentsLabel }, this.files.map(item => (hAsync("gov-attachments-item", { "wcag-remove-labelled-by": item.id, "on-gov-remove": () => this.onRemoveFileHandler(item) }, hAsync("span", { class: "sr-only", id: item.id }, this.wcagRemoveLabel.replace("{FILE_NAME}", item.file.name)), item.file.name, item.acceptValid === false ? (hAsync("gov-form-message", { slot: "message", variant: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), item.acceptValid === false ? this.errorAccept : null)) : null, item.sizeValid === false ? (hAsync("gov-form-message", { slot: "message", variant: "error" }, hAsync("gov-icon", { slot: "icon", name: "exclamation-triangle-fill" }), this.errorSize.replace("{FILE_SIZE}", formatBytes(this.maxFileSize)))) : null, hAsync("span", { slot: "info" }, "(", formatBytes(item.file.size), ")"))))))) : null));
4693
4658
  }
4694
4659
  onRemoveFileHandler(file) {
4695
4660
  const index = this.files.findIndex(item => item.id === file.id);
@@ -4754,8 +4719,8 @@ class GovFormFile {
4754
4719
  }
4755
4720
  get host() { return getElement(this); }
4756
4721
  static get watchers() { return {
4757
- "disabled": ["watchDisabled"],
4758
- "invalid": ["watchDisabled"]
4722
+ "disabled": ["watchControlAttrs"],
4723
+ "invalid": ["watchControlAttrs"]
4759
4724
  }; }
4760
4725
  static get style() { return GovFormFileStyle0; }
4761
4726
  static get cmpMeta() { return {
@@ -4897,19 +4862,21 @@ class GovFormInput {
4897
4862
  validateSize(newValue) {
4898
4863
  validateProp(FormInputSizes, newValue, FormInputClass.root);
4899
4864
  }
4900
- watchDisabled() {
4865
+ watchControlAttrs() {
4901
4866
  this.passControlAttrs();
4902
4867
  }
4903
4868
  passControlAttrs() {
4904
4869
  this.f.passAttrToControl("size", this.size);
4870
+ this.f.passAttrToControl("success", toBoolAttr(this.success));
4871
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
4905
4872
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
4906
- this.f.passAttrToControl("type", this.multiline ? Tags$1.TEXTAREA : Tags$1.INPUT);
4907
4873
  }
4908
4874
  componentWillLoad() {
4909
4875
  this.validateVariant(this.variant);
4910
4876
  this.validateSize(this.size);
4911
4877
  this.passControlAttrs();
4912
4878
  this.f.passAttrToLabel("required", String(this.required));
4879
+ this.f.passAttrToControl("type", this.multiline ? Tags$1.TEXTAREA : Tags$1.INPUT);
4913
4880
  }
4914
4881
  async componentDidRender() {
4915
4882
  if (canValidateWcagOnRender()) {
@@ -4922,9 +4889,9 @@ class GovFormInput {
4922
4889
  }
4923
4890
  render() {
4924
4891
  const Tag = this.multiline ? Tags$1.TEXTAREA : Tags$1.INPUT;
4925
- return (hAsync(Host, { key: '1d217855ba964b9c637373529e2b677fb09f8034', class: FormInputClass.root, size: this.size, variant: this.variant, type: this.type }, this.h.hasSlot("prefix") && hAsync("slot", { key: '75b989d2f4b70cf43e9a5315fdb6eb56af832118', name: "prefix" }), hAsync("span", { key: '39f063be627ad300abe364adfa4a32b79a879773', class: "element" }, this.h.hasSlot("left-icon") && hAsync("slot", { key: '84da6d8d05274f5a9760b871ffb89dec870122f8', name: "left-icon" }), this.h.hasSlot("right-icon") && !(this.success || this.invalid) && hAsync("slot", { key: 'b8ede08c703cc88e526593cb5aac4a868293543c', name: "right-icon" }), this.success && !this.multiline &&
4926
- hAsync("gov-icon", { key: '1dad15f0bbab72fef2f2d596fb2ce27b097eb3a4', slot: "right-icon", class: "icon-validation", name: "check-lg" }), this.invalid && !this.multiline &&
4927
- hAsync("gov-icon", { key: '9d8ed110a2640133ecc462c6b06f1f5496fb61f7', slot: "right-icon", class: "icon-validation", name: "exclamation-lg" }), hAsync(Tag, { key: '62ac8ee0c14c5289c377685fabf535947a43f4c5', type: this.inputType, disabled: this.disabled, id: this.identifier || this.inputId, name: this.name, onFocus: this.onFocusHandler.bind(this), onInput: this.onInputHandler.bind(this), onBlur: this.onBlurHandler.bind(this), onKeyUp: this.onKeyUpHandler.bind(this), onKeyDown: this.onKeyDownHandler.bind(this), ref: el => (this.inputRef = el), placeholder: this.placeholder, value: this.value, spellcheck: toBoolAttrIfDefined(this.spellcheck), lang: this.inputLang, readonly: toBoolAttrIfDefined(this.readonly), autocomplete: toOnOffAttrIfDefined(this.autocomplete), autocorrect: toOnOffAttrIfDefined(this.autocorrect), minlength: this.minlength, maxlength: this.maxlength, min: this.min, max: this.max, required: this.required, rows: this.rows, cols: this.cols, role: this.role, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns, "aria-expanded": toBoolAttrIfDefined(this.wcagExpanded), "aria-autocomplete": this.wcagAutocomplete })), this.h.hasSlot("sufix") && hAsync("slot", { key: '9746bac959c672b37d1c5529cbbe0da13ecf4ce8', name: "sufix" })));
4892
+ return (hAsync(Host, { key: 'fb06974797e9fe99cc0845cd9aac8cc79bfc0583', class: FormInputClass.root, size: this.size, variant: this.variant, type: this.type }, this.h.hasSlot("prefix") && hAsync("slot", { key: 'c8a307ca8c1e4e4a27ac00463523f19c4012bbfe', name: "prefix" }), hAsync("span", { key: 'b86a839790465feda8d50385ca5b44a98c3ee81d', class: "element" }, this.h.hasSlot("left-icon") && hAsync("slot", { key: '300d97f0f13e95ac306b3c0332ccb58b99988c7a', name: "left-icon" }), this.h.hasSlot("right-icon") && !(this.success || this.invalid) && hAsync("slot", { key: '6d2673bc16e363b52662671a172f7c20eca85c62', name: "right-icon" }), this.success && !this.multiline &&
4893
+ hAsync("gov-icon", { key: '40c2f0e9991833ad731e469164d0bd148d883007', slot: "right-icon", class: "icon-validation", name: "check-lg" }), this.invalid && !this.multiline &&
4894
+ hAsync("gov-icon", { key: '56d940b36602db7749fc1656fdee739b2ad21370', slot: "right-icon", class: "icon-validation", name: "exclamation-lg" }), hAsync(Tag, { key: 'ecdf27b1a0889cfd0367ded8cffd24152c2e1d01', type: this.inputType, disabled: this.disabled, id: this.identifier || this.inputId, name: this.name, onFocus: this.onFocusHandler.bind(this), onInput: this.onInputHandler.bind(this), onBlur: this.onBlurHandler.bind(this), onKeyUp: this.onKeyUpHandler.bind(this), onKeyDown: this.onKeyDownHandler.bind(this), ref: el => (this.inputRef = el), placeholder: this.placeholder, value: this.value, spellcheck: toBoolAttrIfDefined(this.spellcheck), lang: this.inputLang, readonly: toBoolAttrIfDefined(this.readonly), autocomplete: toOnOffAttrIfDefined(this.autocomplete), autocorrect: toOnOffAttrIfDefined(this.autocorrect), minlength: this.minlength, maxlength: this.maxlength, min: this.min, max: this.max, required: this.required, rows: this.rows, cols: this.cols, role: this.role, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns, "aria-expanded": toBoolAttrIfDefined(this.wcagExpanded), "aria-autocomplete": this.wcagAutocomplete })), this.h.hasSlot("sufix") && hAsync("slot", { key: 'bd6b9c7a981c40fdddf83e8ce0778978e1ea31af', name: "sufix" })));
4928
4895
  }
4929
4896
  onFocusHandler(e) {
4930
4897
  e.stopPropagation();
@@ -5006,10 +4973,10 @@ class GovFormInput {
5006
4973
  get host() { return getElement(this); }
5007
4974
  static get watchers() { return {
5008
4975
  "variant": ["validateVariant"],
5009
- "size": ["validateSize", "watchDisabled"],
5010
- "disabled": ["watchDisabled"],
5011
- "invalid": ["watchDisabled"],
5012
- "type": ["watchDisabled"]
4976
+ "size": ["validateSize", "watchControlAttrs"],
4977
+ "disabled": ["watchControlAttrs"],
4978
+ "invalid": ["watchControlAttrs"],
4979
+ "success": ["watchControlAttrs"]
5013
4980
  }; }
5014
4981
  static get style() { return GovFormInputStyle0; }
5015
4982
  static get cmpMeta() { return {
@@ -5019,14 +4986,14 @@ class GovFormInput {
5019
4986
  "value": [1537],
5020
4987
  "identifier": [1],
5021
4988
  "variant": [1],
5022
- "success": [4],
4989
+ "success": [516],
5023
4990
  "size": [1],
5024
4991
  "name": [1],
5025
4992
  "multiline": [4],
5026
4993
  "rows": [2],
5027
4994
  "cols": [2],
5028
- "required": [4],
5029
- "disabled": [4],
4995
+ "required": [516],
4996
+ "disabled": [516],
5030
4997
  "placeholder": [1],
5031
4998
  "readonly": [4],
5032
4999
  "minlength": [2],
@@ -5040,7 +5007,7 @@ class GovFormInput {
5040
5007
  "type": [1],
5041
5008
  "inputType": [1, "input-type"],
5042
5009
  "role": [1],
5043
- "invalid": [4],
5010
+ "invalid": [516],
5044
5011
  "wcagDescribedBy": [1, "wcag-described-by"],
5045
5012
  "wcagLabelledBy": [1, "wcag-labelled-by"],
5046
5013
  "wcagOwns": [1, "wcag-owns"],
@@ -5055,7 +5022,7 @@ class GovFormInput {
5055
5022
  },
5056
5023
  "$listeners$": undefined,
5057
5024
  "$lazyBundleId$": "-",
5058
- "$attrsToReflect$": [["value", "value"]]
5025
+ "$attrsToReflect$": [["value", "value"], ["success", "success"], ["required", "required"], ["disabled", "disabled"], ["invalid", "invalid"]]
5059
5026
  }; }
5060
5027
  }
5061
5028
 
@@ -5183,18 +5150,18 @@ class GovFormMultiSelect {
5183
5150
  watchValue(newValue) {
5184
5151
  this.selectedOptionsState = propsValueToArray(newValue);
5185
5152
  }
5186
- watchDisabled() {
5153
+ watchControlAttrs() {
5187
5154
  this.passControlAttrs();
5188
5155
  }
5189
5156
  passControlAttrs() {
5190
5157
  this.f.passAttrToControl('size', this.size);
5191
5158
  this.f.passAttrToControl('invalid', toBoolAttr(this.invalid));
5159
+ this.f.passAttrToControl('disabled', toBoolAttr(this.disabled));
5192
5160
  this.f.passAttrToControl('success', toBoolAttr(this.success));
5193
5161
  }
5194
5162
  componentWillLoad() {
5195
5163
  this.validateVariant(this.variant);
5196
5164
  this.validateSize(this.size);
5197
- this.watchDisabled();
5198
5165
  this.passControlAttrs();
5199
5166
  this.f.passAttrToLabel('required', String(this.required));
5200
5167
  this.optionsState = propsValueToArray(this.options);
@@ -5310,7 +5277,7 @@ class GovFormMultiSelect {
5310
5277
  }
5311
5278
  }
5312
5279
  render() {
5313
- return (hAsync(Host, { key: 'bb5855ba2a4cd63ad2093ae2aebd67f3349cea28', class: FormMultiSelectClass.root, size: this.size, variant: this.variant }, hAsync("div", { key: '3abae4b8ea9cc625a21dd45e1b9ee8befc49b8b6', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && hAsync("slot", { key: '86da9e574fe68a4883b3df4da602e05f627e4714', name: "prefix" }), hAsync("div", { key: '87d30a0d40739f4a4dbeaa9b5cef946ed9873c00', class: "element" }, hAsync("gov-form-autocomplete", { key: 'ee44381d4eb97059d935135391951e7750afa648', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, size: this.size, variant: this.variant, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "name-key": 'label', wcagDescribedBy: this.wcagDescribedBy, wcagLabelledBy: this.wcagLabelledBy, wcagOwns: this.listId }), hAsync("gov-icon", { key: '83bdc379de06eab7db28d17cd39cd34128e60090', slot: "right-icon", class: "icon-arrow", name: "chevron-down" }), this.h.hasSlot('right-icon') && !(this.success || this.invalid) && hAsync("slot", { key: '809ab0378b25182006e15effcb29babacb93274a', name: "right-icon" }), this.success && hAsync("gov-icon", { key: '85ef665e98040503ea14743e8497ceb7b48d3a9e', slot: "right-icon", class: "icon-validation", name: "check-lg" }), this.invalid && hAsync("gov-icon", { key: '88509ad301ad83c61957b0d1dd6e95586cf8d65a', slot: "right-icon", class: "icon-validation", name: "exclamation-lg" }), hAsync("select", { key: '382f9855fe424f6427d158568339c51fc7ea46a5', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns }, hAsync("slot", { key: '678201c2968bbb6d3e470ccc03d149b70fed50db' }))), this.h.hasSlot('sufix') && hAsync("slot", { key: '25a9c902b37c15988f4591a136006d9f3db0fa8d', name: "sufix" })), this.hideSelectedList === false ? (hAsync("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
5280
+ return (hAsync(Host, { key: 'd196b10aa1a15b405235bec76b0c9a50ce7b7a32', class: FormMultiSelectClass.root, size: this.size, variant: this.variant }, hAsync("div", { key: '18b3d6b6b568d4c2e6185cc2b5397dc0d0b397e3', class: FormMultiSelectClass.wrap }, this.h.hasSlot('prefix') && hAsync("slot", { key: 'b7c67fef5eea42e0f948487082cb481fbd8f6264', name: "prefix" }), hAsync("div", { key: 'a9c6e91522fa96fa40ba75afee7150c2f0b9c07a', class: "element" }, hAsync("gov-form-autocomplete", { key: '2792873c33eee760c93bffbaba9268e4dff4acba', value: this.valueState, disabled: this.disabled, identifier: this.identifier || this.selectId, required: false, size: this.size, variant: this.variant, placeholder: this.placeholder, "message-empty": this.messageEmpty, "message-loading": this.messageLoading, ref: el => (this.autocompleteRef = el), minlength: 0, "name-key": 'label', wcagDescribedBy: this.wcagDescribedBy, wcagLabelledBy: this.wcagLabelledBy, wcagOwns: this.listId }), hAsync("gov-icon", { key: 'd03af7b6c89e62d7f6054d8b5be3bc73f8b1fe96', slot: "right-icon", class: "icon-arrow", name: "chevron-down" }), this.h.hasSlot('right-icon') && !(this.success || this.invalid) && hAsync("slot", { key: '34299ffce891c3f31947ef8f6ccd5d7144a5e485', name: "right-icon" }), this.success && hAsync("gov-icon", { key: '0343f86ccaf5a9fad2f6c2c0aa82cf508e19c1c1', slot: "right-icon", class: "icon-validation", name: "check-lg" }), this.invalid && hAsync("gov-icon", { key: '481ae336432840d2994455371f3407644fd1e1b1', slot: "right-icon", class: "icon-validation", name: "exclamation-lg" }), hAsync("select", { key: '0348cced9ebf67b2047586a024c6fd05ec71dff1', hidden: true, class: 'hidden-select-list', "aria-hidden": toBoolAttr(true), multiple: true, required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns }, hAsync("slot", { key: 'cc4d489c662d6515c2c5d6398bb34cc43871b426' }))), this.h.hasSlot('sufix') && hAsync("slot", { key: 'adabdc557faf6eab58d48e6ad40f6d01fb610132', name: "sufix" })), this.hideSelectedList === false ? (hAsync("ul", { role: "listbox", id: this.listId, class: FormMultiSelectClass.list }, Array.isArray(this.selectedOptionsState) && this.selectedOptionsState.map(selected => {
5314
5281
  var _a, _b;
5315
5282
  const option = this.getOption(selected);
5316
5283
  if (!option)
@@ -5382,12 +5349,12 @@ class GovFormMultiSelect {
5382
5349
  get host() { return getElement(this); }
5383
5350
  static get watchers() { return {
5384
5351
  "variant": ["validateVariant"],
5385
- "size": ["validateSize", "watchDisabled"],
5352
+ "size": ["validateSize", "watchControlAttrs"],
5386
5353
  "options": ["watchOptions"],
5387
5354
  "value": ["watchValue"],
5388
- "disabled": ["watchDisabled"],
5389
- "invalid": ["watchDisabled"],
5390
- "success": ["watchDisabled"]
5355
+ "disabled": ["watchControlAttrs"],
5356
+ "invalid": ["watchControlAttrs"],
5357
+ "success": ["watchControlAttrs"]
5391
5358
  }; }
5392
5359
  static get style() { return GovFormMultiSelectStyle0; }
5393
5360
  static get cmpMeta() { return {
@@ -5484,12 +5451,13 @@ class GovFormRadio {
5484
5451
  validateSize(newValue) {
5485
5452
  validateProp(FormRadioSizes, newValue, FormRadioClass.root);
5486
5453
  }
5487
- watchDisabled() {
5454
+ watchControlAttrs() {
5488
5455
  this.passControlAttrs();
5489
5456
  }
5490
5457
  passControlAttrs() {
5491
5458
  this.f.passAttrToControl("size", this.size);
5492
5459
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
5460
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
5493
5461
  this.f.passAttrToControl("type", "radio");
5494
5462
  }
5495
5463
  componentWillLoad() {
@@ -5562,9 +5530,9 @@ class GovFormRadio {
5562
5530
  }
5563
5531
  get host() { return getElement(this); }
5564
5532
  static get watchers() { return {
5565
- "size": ["validateSize", "watchDisabled"],
5566
- "disabled": ["watchDisabled"],
5567
- "invalid": ["watchDisabled"]
5533
+ "size": ["validateSize", "watchControlAttrs"],
5534
+ "disabled": ["watchControlAttrs"],
5535
+ "invalid": ["watchControlAttrs"]
5568
5536
  }; }
5569
5537
  static get style() { return GovFormRadioStyle0; }
5570
5538
  static get cmpMeta() { return {
@@ -5731,7 +5699,7 @@ class GovFormSelect {
5731
5699
  watchOptions(newValue) {
5732
5700
  this.optionsState = propsValueToArray(newValue);
5733
5701
  }
5734
- watchDisabled() {
5702
+ watchControlAttrs() {
5735
5703
  this.passControlAttrs();
5736
5704
  }
5737
5705
  watchValue() {
@@ -5740,7 +5708,8 @@ class GovFormSelect {
5740
5708
  passControlAttrs() {
5741
5709
  this.f.passAttrToControl('size', this.size);
5742
5710
  this.f.passAttrToControl('invalid', toBoolAttr(this.invalid));
5743
- this.f.passAttrToControl('type', 'select');
5711
+ this.f.passAttrToControl('success', toBoolAttr(this.success));
5712
+ this.f.passAttrToControl('disabled', toBoolAttr(this.disabled));
5744
5713
  }
5745
5714
  componentWillLoad() {
5746
5715
  this.validateVariant(this.variant);
@@ -5748,6 +5717,7 @@ class GovFormSelect {
5748
5717
  this.markSelectedValue();
5749
5718
  this.passControlAttrs();
5750
5719
  this.f.passAttrToLabel('required', String(this.required));
5720
+ this.f.passAttrToControl('type', 'select');
5751
5721
  this.optionsState = propsValueToArray(this.options);
5752
5722
  }
5753
5723
  async componentDidRender() {
@@ -5768,10 +5738,10 @@ class GovFormSelect {
5768
5738
  });
5769
5739
  }
5770
5740
  render() {
5771
- return (hAsync(Host, { key: '5e9b2cdd4aae50ae5ee5ce8fe35db02888d682db', class: FormSelectClass.root, size: this.size, variant: this.variant }, this.h.hasSlot('prefix') && hAsync("slot", { key: '1eb66206a8dd47a44496c1566cd386b5183766ee', name: "prefix" }), hAsync("span", { key: 'df3d012666a80ca6e2ad96981f04f2adda0d8654', class: "element" }, hAsync("gov-icon", { key: 'e8ad512230dec7eb045e4dc91169b16709674f0b', slot: "right-icon", name: "chevron-down", class: "icon-arrow" }), this.h.hasSlot('right-icon') && !(this.success || this.invalid) && hAsync("slot", { key: 'f05864931816635b3dc3c4613680ba5c1dac0283', name: "right-icon" }), this.success && hAsync("gov-icon", { key: 'e5d8ad5dc8a6c5c14a1db233426ab2f56e4da6d3', slot: "right-icon", class: "icon-validation", name: "check-lg" }), this.invalid && hAsync("gov-icon", { key: 'c63c87a6cfc3eafdb979ebd40e019e3f65ecd35f', slot: "right-icon", class: "icon-validation", name: "exclamation-lg" }), hAsync("select", { key: 'b0d5876fb44872b8189870d7cf8ac374612153c7', id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-activedescendant": this.wcagActiveDescendant, "aria-controls": this.wcagControls, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns }, hAsync("slot", { key: '5edd39b36e1dc407a26c28e41eda625e9a780f3f' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
5741
+ return (hAsync(Host, { key: '0ef3419f4afce93b161ad8b71401a228ae8b9c4a', class: FormSelectClass.root, size: this.size, variant: this.variant }, this.h.hasSlot('prefix') && hAsync("slot", { key: '828f069b3672d5bb766a44ef37384b9117327eab', name: "prefix" }), hAsync("span", { key: '169ac6c9d58c88bbdcc96f36b8208ea05faa8e51', class: "element" }, hAsync("gov-icon", { key: 'a2501ad9ecc603d3e52fc0143fef2ee53ae63d4d', slot: "right-icon", name: "chevron-down", class: "icon-arrow" }), this.h.hasSlot('right-icon') && !(this.success || this.invalid) && hAsync("slot", { key: '97b2417a96a781620b67a557244c4c0cfa8b3669', name: "right-icon" }), this.success && hAsync("gov-icon", { key: 'cebe7eb826cb741bae4afdbd8d9b18948c410f8c', slot: "right-icon", class: "icon-validation", name: "check-lg" }), this.invalid && hAsync("gov-icon", { key: 'cef9b5715b1c134242f52439f65b88c7d228054f', slot: "right-icon", class: "icon-validation", name: "exclamation-lg" }), hAsync("select", { key: 'b8374d51d9a66f313db7f851446916e22debeee3', id: this.identifier || this.selectId, onFocus: this.onFocusHandler.bind(this), onChange: this.onChangeHandler.bind(this), onBlur: this.onBlurHandler.bind(this), required: this.required, name: this.name, disabled: this.disabled, ref: el => (this.selectRef = el), "aria-disabled": toBoolAttrIfDefined(this.disabled), "aria-activedescendant": this.wcagActiveDescendant, "aria-controls": this.wcagControls, "aria-required": toBoolAttrIfDefined(this.required), "aria-invalid": toBoolAttrIfDefined(this.invalid), "aria-describedby": this.wcagDescribedBy, "aria-labelledby": this.wcagLabelledBy, "aria-owns": this.wcagOwns }, hAsync("slot", { key: '5ad33b529b013a1e4846aaf3d6a778a0e7652f83' }), Array.isArray(this.optionsState) && this.optionsState.map((option) => {
5772
5742
  var _a;
5773
5743
  return (hAsync("option", { value: option.value, selected: option.value === this.value, disabled: option === null || option === void 0 ? void 0 : option.disabled }, (_a = option.label) !== null && _a !== void 0 ? _a : option.value));
5774
- }))), this.h.hasSlot('sufix') && hAsync("slot", { key: '9d2e12ec4dda23883e70b65773a7936cc231d03c', name: "sufix" })));
5744
+ }))), this.h.hasSlot('sufix') && hAsync("slot", { key: '257ebbc1fbe845806360efbf491640c2c364d540', name: "sufix" })));
5775
5745
  }
5776
5746
  onFocusHandler(e) {
5777
5747
  this.focused = true;
@@ -5823,10 +5793,11 @@ class GovFormSelect {
5823
5793
  get host() { return getElement(this); }
5824
5794
  static get watchers() { return {
5825
5795
  "variant": ["validateVariant"],
5826
- "size": ["validateSize", "watchDisabled"],
5796
+ "size": ["validateSize", "watchControlAttrs"],
5827
5797
  "options": ["watchOptions"],
5828
- "disabled": ["watchDisabled"],
5829
- "invalid": ["watchDisabled"],
5798
+ "disabled": ["watchControlAttrs"],
5799
+ "invalid": ["watchControlAttrs"],
5800
+ "success": ["watchControlAttrs"],
5830
5801
  "value": ["watchValue"]
5831
5802
  }; }
5832
5803
  static get style() { return GovFormSelectStyle0; }
@@ -5895,7 +5866,7 @@ class GovFormSwitch {
5895
5866
  passControlAttrs() {
5896
5867
  this.f.passAttrToControl("size", this.size);
5897
5868
  this.f.passAttrToControl("invalid", toBoolAttr(this.invalid));
5898
- this.f.passAttrToControl("type", "switch");
5869
+ this.f.passAttrToControl("disabled", toBoolAttr(this.disabled));
5899
5870
  }
5900
5871
  componentWillLoad() {
5901
5872
  this.passControlAttrs();
@@ -5903,6 +5874,7 @@ class GovFormSwitch {
5903
5874
  async componentDidRender() {
5904
5875
  this.f.passAttrToLabel("identifier", this.identifier || this.checkboxId);
5905
5876
  this.f.passAttrToLabel("required", String(this.required));
5877
+ this.f.passAttrToControl("type", "switch");
5906
5878
  if (canValidateWcagOnRender()) {
5907
5879
  await delay(500);
5908
5880
  await this.validateWcag();
@@ -7933,7 +7905,7 @@ class GovTile {
7933
7905
  this.h = govHost(this.host);
7934
7906
  }
7935
7907
  render() {
7936
- return (hAsync(Host, { key: '94c2322c722ff5c79358c01eb303d66a22027fbf', class: this.h.classes(TileClass.root) }, this.h.hasSlot("icon") && (hAsync("span", { key: '844a8fdd671adb4bf5bcc4b89dcfe40a7e2e2c4c', class: TileClass.icon }, hAsync("slot", { key: '0039f4b07b8f373feeeb9e597f36b17576920602', name: "icon" }))), this.href ? (hAsync("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, this.h.hasSlot("title") && (hAsync("span", { class: TileClass.title }, hAsync("slot", { name: "title" }))))) : (this.h.hasSlot("title") && (hAsync("span", { class: TileClass.title }, hAsync("slot", { name: "title" })))), hAsync("div", { key: '6a49825e9ff9cd160d7142d4537fed7b6e6f8b7d', class: TileClass.content }, hAsync("slot", { key: '0dcf8ab4dbdaafd68bc0af6b9cb6928fc9029a6c' }))));
7908
+ return (hAsync(Host, { key: '94c2322c722ff5c79358c01eb303d66a22027fbf', class: this.h.classes(TileClass.root) }, this.h.hasSlot("icon") && (hAsync("span", { key: '844a8fdd671adb4bf5bcc4b89dcfe40a7e2e2c4c', class: TileClass.icon }, hAsync("slot", { key: '0039f4b07b8f373feeeb9e597f36b17576920602', name: "icon" }))), this.href ? (hAsync("a", { href: this.href, target: this.target, class: TileClass.link, ref: el => (this.triggerRef = el) }, this.h.hasSlot("title") && (hAsync("span", { class: TileClass.title }, hAsync("slot", { name: "title" }), hAsync("gov-icon", { class: TileClass.arrow, name: "chevron-right" }))))) : (this.h.hasSlot("title") && (hAsync("span", { class: TileClass.title }, hAsync("slot", { name: "title" })))), hAsync("div", { key: '48844f936d995bab93594f87cd01f2a1da2fd37c', class: TileClass.content }, hAsync("slot", { key: '860a227cd05409613037658777a8e3edbfcc22d0' }))));
7937
7909
  }
7938
7910
  /**
7939
7911
  * Returns a clickable element instance