@aurodesignsystem/auro-formkit 2.0.0-beta.1 → 2.0.0-beta.3

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 (216) hide show
  1. package/.turbo/cache/013a48308b893dac-meta.json +1 -1
  2. package/.turbo/cache/02244170c798a2bd-meta.json +1 -0
  3. package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
  4. package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
  5. package/.turbo/cache/0cea4c1f34f3683b-meta.json +1 -1
  6. package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
  7. package/.turbo/cache/1ab37ce15d9be440-meta.json +1 -0
  8. package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
  9. package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -0
  10. package/.turbo/cache/1b9818717e4bdf9f.tar.zst +0 -0
  11. package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -0
  12. package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
  13. package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
  14. package/.turbo/cache/1de15d89eed2d760-meta.json +1 -1
  15. package/.turbo/cache/2110a4d14e0d11b2-meta.json +1 -0
  16. package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
  17. package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
  18. package/.turbo/cache/2990aaa7ebc5b967-meta.json +1 -1
  19. package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
  20. package/.turbo/cache/2fd056afdf4eb39d-meta.json +1 -0
  21. package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
  22. package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
  23. package/.turbo/cache/3e12285c614db539-meta.json +1 -0
  24. package/.turbo/cache/3e12285c614db539.tar.zst +0 -0
  25. package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
  26. package/.turbo/cache/4f92cea2d8c63de2-meta.json +1 -1
  27. package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -0
  28. package/.turbo/cache/5bf2d3f7ba5891e0.tar.zst +0 -0
  29. package/.turbo/cache/5c16ce3cff5c9dff-meta.json +1 -1
  30. package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
  31. package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
  32. package/.turbo/cache/691a74627ec57993-meta.json +1 -1
  33. package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
  34. package/.turbo/cache/6dd67d179191bda8-meta.json +1 -0
  35. package/.turbo/cache/6dd67d179191bda8.tar.zst +0 -0
  36. package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
  37. package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
  38. package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
  39. package/.turbo/cache/784c03fe9fd5ac05-meta.json +1 -1
  40. package/.turbo/cache/786a822763403879-meta.json +1 -1
  41. package/.turbo/cache/7e1043cffa69f327-meta.json +1 -0
  42. package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
  43. package/.turbo/cache/80a13352066a9801-meta.json +1 -0
  44. package/.turbo/cache/80a13352066a9801.tar.zst +0 -0
  45. package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
  46. package/.turbo/cache/87219c41a4ace9cd-meta.json +1 -1
  47. package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
  48. package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
  49. package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -0
  50. package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
  51. package/.turbo/cache/993dff2edb7b6766-meta.json +1 -1
  52. package/.turbo/cache/9a097d6576dadd64-meta.json +1 -1
  53. package/.turbo/cache/a63cbfecf0f78586-meta.json +1 -0
  54. package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
  55. package/.turbo/cache/a6a56bb802e1c20f-meta.json +1 -1
  56. package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
  57. package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
  58. package/.turbo/cache/b2c66328fdd78093-meta.json +1 -0
  59. package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
  60. package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
  61. package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
  62. package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
  63. package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
  64. package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -0
  65. package/.turbo/cache/bffc7582905c2a5e.tar.zst +0 -0
  66. package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
  67. package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
  68. package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
  69. package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +1 -0
  70. package/.turbo/cache/d39e6ef95ebc4cc0.tar.zst +0 -0
  71. package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -0
  72. package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
  73. package/.turbo/cache/d61543843c932504-meta.json +1 -0
  74. package/.turbo/cache/d61543843c932504.tar.zst +0 -0
  75. package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
  76. package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -0
  77. package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
  78. package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
  79. package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
  80. package/.turbo/cache/f411e2deb0676959-meta.json +1 -0
  81. package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
  82. package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
  83. package/.turbo/cache/fbbe2704bf9cb90b-meta.json +1 -1
  84. package/CHANGELOG.md +34 -0
  85. package/components/checkbox/.turbo/turbo-build.log +3 -3
  86. package/components/checkbox/.turbo/turbo-bundler.log +3 -3
  87. package/components/checkbox/README.md +8 -8
  88. package/components/checkbox/demo/api.md +53 -51
  89. package/components/checkbox/demo/api.min.js +32 -37
  90. package/components/checkbox/demo/index.md +62 -62
  91. package/components/checkbox/demo/index.min.js +32 -37
  92. package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
  93. package/components/checkbox/dist/auro-checkbox.d.ts +1 -1
  94. package/components/checkbox/dist/index.js +32 -37
  95. package/components/checkbox/src/auro-checkbox-group.js +2 -2
  96. package/components/checkbox/src/auro-checkbox.js +1 -1
  97. package/components/combobox/.turbo/turbo-build.log +3 -3
  98. package/components/combobox/demo/api.md +17 -15
  99. package/components/combobox/demo/api.min.js +104 -116
  100. package/components/combobox/demo/index.min.js +104 -116
  101. package/components/combobox/dist/auro-combobox.d.ts +11 -4
  102. package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
  103. package/components/combobox/dist/index.js +103 -115
  104. package/components/combobox/src/auro-combobox.js +22 -20
  105. package/components/counter/.turbo/turbo-build.log +3 -3
  106. package/components/counter/.turbo/turbo-bundler.log +3 -3
  107. package/components/datepicker/.turbo/turbo-build.log +9 -8
  108. package/components/datepicker/demo/api.md +107 -87
  109. package/components/datepicker/demo/api.min.js +96 -130
  110. package/components/datepicker/demo/index.min.js +96 -130
  111. package/components/datepicker/dist/auro-datepicker.d.ts +6 -13
  112. package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
  113. package/components/datepicker/dist/index.js +96 -130
  114. package/components/datepicker/src/auro-datepicker.js +15 -35
  115. package/components/dropdown/.turbo/turbo-build.log +3 -3
  116. package/components/dropdown/.turbo/turbo-bundler.log +2 -2
  117. package/components/form/.turbo/turbo-build.log +3 -3
  118. package/components/form/.turbo/turbo-bundler.log +3 -3
  119. package/components/input/.turbo/turbo-build$colon$sass.log +51 -1
  120. package/components/input/.turbo/turbo-build.log +56 -6
  121. package/components/input/.turbo/turbo-bundler.log +2 -2
  122. package/components/input/.turbo/turbo-sass$colon$render.log +6 -0
  123. package/components/input/demo/api.md +83 -83
  124. package/components/input/demo/api.min.js +52 -61
  125. package/components/input/demo/index.md +6 -6
  126. package/components/input/demo/index.min.js +52 -61
  127. package/components/input/dist/auro-input.d.ts.map +1 -1
  128. package/components/input/dist/base-input.d.ts +5 -12
  129. package/components/input/dist/base-input.d.ts.map +1 -1
  130. package/components/input/dist/index.js +52 -61
  131. package/components/input/dist/styles/mixins-css.d.ts +3 -0
  132. package/components/input/dist/styles/mixins-css.d.ts.map +1 -0
  133. package/components/input/src/auro-input.js +0 -1
  134. package/components/input/src/base-input.js +22 -25
  135. package/components/input/src/styles/borders.scss +3 -19
  136. package/components/input/src/styles/color.css +1 -2
  137. package/components/input/src/styles/color.scss +3 -10
  138. package/components/input/src/styles/input-css.js +1 -1
  139. package/components/input/src/styles/input.css +1 -1
  140. package/components/input/src/styles/input.scss +4 -1
  141. package/components/input/src/styles/label-css.js +1 -1
  142. package/components/input/src/styles/label.css +1 -1
  143. package/components/input/src/styles/label.scss +4 -7
  144. package/components/input/src/styles/mixins-css.js +2 -0
  145. package/components/input/src/styles/mixins.css +1 -0
  146. package/components/input/src/styles/mixins.scss +45 -0
  147. package/components/input/src/styles/notificationIcons-css.js +1 -1
  148. package/components/input/src/styles/notificationIcons.css +13 -12
  149. package/components/input/src/styles/notificationIcons.scss +17 -25
  150. package/components/input/src/styles/style-css.js +1 -1
  151. package/components/input/src/styles/style.css +15 -17
  152. package/components/input/src/styles/style.scss +0 -4
  153. package/components/menu/.turbo/turbo-build.log +3 -3
  154. package/components/menu/.turbo/turbo-bundler.log +3 -3
  155. package/components/menu/demo/api.min.js +1 -1
  156. package/components/menu/demo/index.min.js +1 -1
  157. package/components/menu/dist/auro-menu.d.ts +1 -1
  158. package/components/menu/dist/index.js +1 -1
  159. package/components/menu/src/auro-menu.js +1 -1
  160. package/components/radio/.turbo/turbo-build.log +3 -3
  161. package/components/radio/.turbo/turbo-bundler.log +3 -3
  162. package/components/radio/demo/api.md +3 -1
  163. package/components/radio/demo/api.min.js +30 -35
  164. package/components/radio/demo/index.min.js +30 -35
  165. package/components/radio/dist/index.js +30 -35
  166. package/components/radio/src/auro-radio-group.js +1 -1
  167. package/components/select/.turbo/turbo-build.log +3 -3
  168. package/components/select/demo/api.md +7 -11
  169. package/components/select/demo/api.min.js +33 -60
  170. package/components/select/demo/index.min.js +33 -56
  171. package/components/select/dist/auro-select.d.ts +2 -2
  172. package/components/select/dist/auro-select.d.ts.map +1 -1
  173. package/components/select/dist/index.js +32 -55
  174. package/components/select/src/auro-select.js +3 -21
  175. package/package.json +1 -1
  176. package/packages/form-validation/src/validation.js +29 -34
  177. package/.turbo/cache/0663fcbb1d711029-meta.json +0 -1
  178. package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
  179. package/.turbo/cache/0a2b0a4df8a0443f-meta.json +0 -1
  180. package/.turbo/cache/120c8e207aa1ba35-meta.json +0 -1
  181. package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
  182. package/.turbo/cache/141bb7d9a95e288b-meta.json +0 -1
  183. package/.turbo/cache/141bb7d9a95e288b.tar.zst +0 -0
  184. package/.turbo/cache/17dd4bdef6550a07-meta.json +0 -1
  185. package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
  186. package/.turbo/cache/32c0b9995fb5f8dd-meta.json +0 -1
  187. package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
  188. package/.turbo/cache/56cb35d4c7473a23-meta.json +0 -1
  189. package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
  190. package/.turbo/cache/626afdc67e0cb540-meta.json +0 -1
  191. package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
  192. package/.turbo/cache/6ef81cf9a66f982a-meta.json +0 -1
  193. package/.turbo/cache/6ef81cf9a66f982a.tar.zst +0 -0
  194. package/.turbo/cache/9154e8fe6ab767ea-meta.json +0 -1
  195. package/.turbo/cache/9154e8fe6ab767ea.tar.zst +0 -0
  196. package/.turbo/cache/a49cc58242467fdc-meta.json +0 -1
  197. package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
  198. package/.turbo/cache/af061e7a077a9ba5-meta.json +0 -1
  199. package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
  200. package/.turbo/cache/b50f1b283b4b81cd-meta.json +0 -1
  201. package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
  202. package/.turbo/cache/bb8b41cd0ade3986-meta.json +0 -1
  203. package/.turbo/cache/bb8b41cd0ade3986.tar.zst +0 -0
  204. package/.turbo/cache/bf85bc040b7e64db-meta.json +0 -1
  205. package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
  206. package/.turbo/cache/cd5f6987783fb56d-meta.json +0 -1
  207. package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
  208. package/.turbo/cache/cd845bb6102c589a-meta.json +0 -1
  209. package/.turbo/cache/cd845bb6102c589a.tar.zst +0 -0
  210. package/.turbo/cache/ce67b6522dd09e64-meta.json +0 -1
  211. package/.turbo/cache/ce67b6522dd09e64.tar.zst +0 -0
  212. package/.turbo/cache/d7a47b77deb3d9a4-meta.json +0 -1
  213. package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
  214. package/.turbo/cache/ff58f630c9d69af4-meta.json +0 -1
  215. package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
  216. /package/.turbo/cache/{0a2b0a4df8a0443f.tar.zst → 8e79bd5c3a16a72e.tar.zst} +0 -0
@@ -27,9 +27,11 @@ import styleCss from "./styles/style-css.js";
27
27
  * @prop {Object} optionSelected - Specifies the current selected option.
28
28
  * @prop {String} value - Value selected for the dropdown menu.
29
29
  * @prop {Boolean} checkmark - When attribute is present auro-menu will apply checkmarks to selected options.
30
- * @attr {Boolean} error - Sets a persistent error state (e.g. an error state returned from the server).
30
+ * @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
31
31
  * @attr {String} validity - Specifies the `validityState` this element is in.
32
32
  * @attr {String} setCustomValidity - Sets a custom help text message to display for all validityStates.
33
+ * @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
34
+ * @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
33
35
  * @attr {Boolean} disabled - If set, disables the combobox.
34
36
  * @attr {Boolean} noFilter - If set, combobox will not filter menuoptions based in input.
35
37
  * @attr {Boolean} noValidate - If set, disables auto-validation on blur.
@@ -95,12 +97,17 @@ export class AuroCombobox extends LitElement {
95
97
  return {
96
98
  // ...super.properties,
97
99
  error: {
98
- type: Boolean,
100
+ type: String,
99
101
  reflect: true
100
102
  },
101
103
  setCustomValidity: {
102
- type: String,
103
- reflect: true
104
+ type: String
105
+ },
106
+ setCustomValidityCustomError: {
107
+ type: String
108
+ },
109
+ setCustomValidityValueMissing: {
110
+ type: String
104
111
  },
105
112
  validity: {
106
113
  type: String,
@@ -384,9 +391,7 @@ export class AuroCombobox extends LitElement {
384
391
  });
385
392
 
386
393
  this.menu.addEventListener('auroMenu-selectValueReset', () => {
387
- this.optionSelected = undefined;
388
- this.value = undefined;
389
- this.validation.validate(this);
394
+ this.reset();
390
395
  });
391
396
  }
392
397
 
@@ -464,7 +469,7 @@ export class AuroCombobox extends LitElement {
464
469
  });
465
470
 
466
471
  this.input.addEventListener('auroFormElement-validated', (evt) => {
467
- this.auroInputHelpText = evt.detail.message;
472
+ this.errorMessage = evt.detail.message;
468
473
  });
469
474
  }
470
475
 
@@ -608,9 +613,6 @@ export class AuroCombobox extends LitElement {
608
613
  * @returns {void}
609
614
  */
610
615
  reset() {
611
- // Resets the help text of the combobox
612
- this.auroInputHelpText = undefined;
613
-
614
616
  this.input.reset();
615
617
  this.validation.reset(this);
616
618
  }
@@ -643,10 +645,6 @@ export class AuroCombobox extends LitElement {
643
645
  this.input.setAttribute('error', this.getAttribute('error'));
644
646
  this.validation.validate(this);
645
647
  }
646
-
647
- if (changedProperties.has('setCustomValidity')) {
648
- this.input.setAttribute('setCustomValidity', this.setCustomValidity);
649
- }
650
648
  }
651
649
 
652
650
  /**
@@ -700,19 +698,23 @@ export class AuroCombobox extends LitElement {
700
698
  ?noValidate="${this.noValidate}"
701
699
  ?disabled="${this.disabled}"
702
700
  ?icon="${this.triggerIcon}"
701
+ setCustomValidity="${this.setCustomValidity}"
702
+ setCustomValidityValueMissing="${this.setCustomValidityValueMissing}"
703
+ setCustomValidityCustomError="${this.setCustomValidityCustomError}"
703
704
  .type="${this.type}">
704
705
  <slot name="label" slot="label"></slot>
705
706
  </${this.inputTag}>
706
707
  <div class="menuWrapper">
707
708
  </div>
708
709
  <span slot="helpText">
709
- ${this.auroInputHelpText
710
+ <!-- Help text and error message template -->
711
+ ${!this.validity || this.validity === undefined || this.validity === 'valid'
710
712
  ? html`
711
- ${this.auroInputHelpText}
712
- `
713
- : html`
714
713
  <slot name="helpText"></slot>
715
- `
714
+ ` : html`
715
+ <p role="alert" aria-live="assertive" part="helpText">
716
+ ${this.errorMessage}
717
+ </p>`
716
718
  }
717
719
  </span>
718
720
  </${this.dropdownTag}>
@@ -74,13 +74,13 @@ More info and automated migrator: https://sass-lang.com/d/import
74
74
 
75
75
  
76
76
  ./src/index.js → dist...
77
- created dist in 474ms
77
+ created dist in 662ms
78
78
  
79
79
  ./demo/index.js → ./demo/...
80
- created ./demo/ in 192ms
80
+ created ./demo/ in 219ms
81
81
  
82
82
  ./demo/api.js → ./demo/...
83
- created ./demo/ in 256ms
83
+ created ./demo/ in 265ms
84
84
 
85
85
  > @auro-formkit/auro-counter@1.0.0 types
86
86
  > tsc --project tsconfig.json
@@ -4,10 +4,10 @@
4
4
 
5
5
  
6
6
  ./src/index.js → dist...
7
- created dist in 817ms
7
+ created dist in 479ms
8
8
  
9
9
  ./demo/index.js → ./demo/...
10
- created ./demo/ in 266ms
10
+ created ./demo/ in 319ms
11
11
  
12
12
  ./demo/api.js → ./demo/...
13
- created ./demo/ in 282ms
13
+ created ./demo/ in 397ms
@@ -376,10 +376,10 @@ More info and automated migrator: https://sass-lang.com/d/import
376
376
  created dist in 7.5s
377
377
  
378
378
  ./demo/index.js → ./demo/...
379
- created ./demo/ in 3.5s
379
+ created ./demo/ in 3.7s
380
380
  
381
381
  ./demo/api.js → ./demo/...
382
- created ./demo/ in 3.3s
382
+ created ./demo/ in 3.5s
383
383
 
384
384
  > @auro-formkit/auro-datepicker@3.2.0 build:docs
385
385
  > wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component datepicker
@@ -421,17 +421,17 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/datepi
421
421
  Transforms run
422
422
  ⁕ FILE:src=./../docs/api.md
423
423
  ⁕ FILE:src=./../apiExamples/basic.html
424
- ⁕ FILE:src=./../apiExamples/calendarStartAndEndDate.html
425
- ⁕ FILE:src=./../apiExamples/calendarFocusDate.html
424
+ ⁕ FILE:src=./../apiExamples/basicRange.html
426
425
  ⁕ FILE:src=./../apiExamples/disabled.html
427
426
  ⁕ FILE:src=./../apiExamples/error.html
427
+ ⁕ FILE:src=./../apiExamples/calendarStartAndEndDate.html
428
+ ⁕ FILE:src=./../apiExamples/calendarFocusDate.html
428
429
  ⁕ FILE:src=./../apiExamples/maxDate.html
429
430
  ⁕ FILE:src=./../apiExamples/updateMaxDate.html
430
431
  ⁕ FILE:src=./../apiExamples/minDate.html
431
432
  ⁕ FILE:src=./../apiExamples/updateMinDate.html
432
433
  ⁕ FILE:src=./../apiExamples/monthNames.html
433
434
  ⁕ FILE:src=./../apiExamples/noValidate.html
434
- ⁕ FILE:src=./../apiExamples/basicRange.html
435
435
  ⁕ FILE:src=./../apiExamples/required.html
436
436
  ⁕ FILE:src=./../apiExamples/validity.html
437
437
  ⁕ FILE:src=./../apiExamples/value.html
@@ -448,10 +448,12 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/datepi
448
448
  ⁕ FILE:src=./../apiExamples/alertValue.html
449
449
  ⁕ FILE:src=./../apiExamples/inDialog.html
450
450
  ⁕ CODE:src=./../apiExamples/basic.html
451
- ⁕ CODE:src=./../apiExamples/calendarStartAndEndDate.html
452
- ⁕ CODE:src=./../apiExamples/calendarFocusDate.html
451
+ ⁕ CODE:src=./../apiExamples/basicRange.html
453
452
  ⁕ CODE:src=./../apiExamples/disabled.html
454
453
  ⁕ CODE:src=./../apiExamples/error.html
454
+ ⁕ CODE:src=./../apiExamples/error.js
455
+ ⁕ CODE:src=./../apiExamples/calendarStartAndEndDate.html
456
+ ⁕ CODE:src=./../apiExamples/calendarFocusDate.html
455
457
  ⁕ CODE:src=./../apiExamples/maxDate.html
456
458
  ⁕ CODE:src=./../apiExamples/updateMaxDate.html
457
459
  ⁕ CODE:src=./../apiExamples/updateMaxDate.js
@@ -461,7 +463,6 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/datepi
461
463
  ⁕ CODE:src=./../apiExamples/monthNames.html
462
464
  ⁕ CODE:src=./../apiExamples/monthNames.js
463
465
  ⁕ CODE:src=./../apiExamples/noValidate.html
464
- ⁕ CODE:src=./../apiExamples/basicRange.html
465
466
  ⁕ CODE:src=./../apiExamples/required.html
466
467
  ⁕ CODE:src=./../apiExamples/validity.html
467
468
  ⁕ CODE:src=./../apiExamples/validity.js
@@ -12,7 +12,7 @@
12
12
  | [calendarStartDate](#calendarStartDate) | `calendarStartDate` | `String` | "undefined" | The first date that may be displayed in the calendar. |
13
13
  | [centralDate](#centralDate) | `centralDate` | `String` | | The date that determines the currently visible month. |
14
14
  | [disabled](#disabled) | `disabled` | `Boolean` | false | If set, disables the datepicker. |
15
- | [error](#error) | `error` | `String` | | When defined, sets persistent validity to `customError` and sets `setCustomValidity` = attribute value. |
15
+ | [error](#error) | `error` | `String` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
16
16
  | [maxDate](#maxDate) | `maxDate` | `String` | | Maximum date. All dates after will be disabled. |
17
17
  | [minDate](#minDate) | `minDate` | `String` | | Minimum date. All dates before will be disabled. |
18
18
  | [monthNames](#monthNames) | `monthNames` | `array` | ["January","February","March","April","May","June","July","August","September","October","November","December"] | |
@@ -20,6 +20,7 @@
20
20
  | [range](#range) | `range` | `Boolean` | false | If set, turns on date range functionality in auro-calendar. |
21
21
  | [required](#required) | `required` | `Boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
22
22
  | [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `String` | | Sets a custom help text message to display for all validityStates. |
23
+ | [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `String` | | Custom help text message to display when validity = `customError`. |
23
24
  | [setCustomValidityRangeOverflow](#setCustomValidityRangeOverflow) | `setCustomValidityRangeOverflow` | `String` | | Custom help text message to display when validity = `rangeOverflow`. |
24
25
  | [setCustomValidityRangeUnderflow](#setCustomValidityRangeUnderflow) | `setCustomValidityRangeUnderflow` | `String` | | Custom help text message to display when validity = `rangeUnderflow`. |
25
26
  | [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `String` | | Help text message to display when validity = `valueMissing`. |
@@ -95,8 +96,110 @@
95
96
  <!-- AURO-GENERATED-CONTENT:END -->
96
97
  </auro-accordion>
97
98
 
99
+ #### Basic Range
100
+
101
+ When used, the datepicker will display two inputs and the component will support selection of dates for a start and end date.
102
+
103
+ <div class="exampleWrapper">
104
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
105
+ <!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
106
+ <auro-datepicker range>
107
+ <span slot="fromLabel">Departure</span>
108
+ <span slot="toLabel">Return</span>
109
+ <span slot="mobileDateLabel">Roundtrip</span>
110
+ </auro-datepicker>
111
+ <!-- AURO-GENERATED-CONTENT:END -->
112
+ </div>
113
+ <auro-accordion alignRight>
114
+ <span slot="trigger">See code</span>
115
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicRange.html) -->
116
+ <!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
117
+
118
+ ```html
119
+ <auro-datepicker range>
120
+ <span slot="fromLabel">Departure</span>
121
+ <span slot="toLabel">Return</span>
122
+ <span slot="mobileDateLabel">Roundtrip</span>
123
+ </auro-datepicker>
124
+ ```
125
+ <!-- AURO-GENERATED-CONTENT:END -->
126
+ </auro-accordion>
127
+
98
128
  ### Property Examples
99
129
 
130
+ #### disabled
131
+
132
+ If set, disables the datepicker.
133
+
134
+ <div class="exampleWrapper">
135
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
136
+ <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
137
+ <auro-datepicker disabled>
138
+ <span slot="label">Choose a date</span>
139
+ </auro-datepicker>
140
+ <!-- AURO-GENERATED-CONTENT:END -->
141
+ </div>
142
+ <auro-accordion alignRight>
143
+ <span slot="trigger">See code</span>
144
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
145
+ <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
146
+
147
+ ```html
148
+ <auro-datepicker disabled>
149
+ <span slot="label">Choose a date</span>
150
+ </auro-datepicker>
151
+ ```
152
+ <!-- AURO-GENERATED-CONTENT:END -->
153
+ </auro-accordion>
154
+
155
+ #### error
156
+
157
+ Use the `error` attribute to apply a persistent custom error that supersedes the HTML5 validation logic.
158
+
159
+ A custom error message can be set using the `error` attribute, or it can be used in conjuction with the `setCustomValidityCustomError` attribute.
160
+
161
+ <div class="exampleWrapper">
162
+ <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
163
+ <!-- The below content is automatically added from ./../apiExamples/error.html -->
164
+ <auro-datepicker error="Custom error message" id="errorExample">
165
+ <span slot="label">Choose a date</span>
166
+ </auro-datepicker>
167
+ <auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
168
+ <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
169
+ <!-- AURO-GENERATED-CONTENT:END -->
170
+ </div>
171
+ <auro-accordion alignRight>
172
+ <span slot="trigger">See code</span>
173
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
174
+ <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
175
+
176
+ ```html
177
+ <auro-datepicker error="Custom error message" id="errorExample">
178
+ <span slot="label">Choose a date</span>
179
+ </auro-datepicker>
180
+ <auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
181
+ <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
182
+ ```
183
+ <!-- AURO-GENERATED-CONTENT:END -->
184
+ <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.js) -->
185
+ <!-- The below code snippet is automatically added from ./../apiExamples/error.js -->
186
+
187
+ ```js
188
+ export function errorExample() {
189
+ const errorExample = document.querySelector('#errorExample');
190
+
191
+ document.querySelector('#undefinedValueExampleBtnAddError').addEventListener('click', () => {
192
+ errorExample.error = 'Custom New Error';
193
+ })
194
+
195
+ document.querySelector('#undefinedValueExampleBtnRemoveError').addEventListener('click', () => {
196
+ errorExample.removeAttribute('error');
197
+ })
198
+ }
199
+ ```
200
+ <!-- AURO-GENERATED-CONTENT:END -->
201
+ </auro-accordion>
202
+
100
203
  #### calendarStartDate & calendarEndDate
101
204
 
102
205
  The `calendarStartDate` and `calendarEndDate` properties may be used to explicitly control which calendar months _may_ be rendered in the calendar.
@@ -163,62 +266,6 @@ In <strong>mobile</strong> layout, upon first opening the bib, the vertical list
163
266
  <!-- AURO-GENERATED-CONTENT:END -->
164
267
  </auro-accordion>
165
268
 
166
- #### disabled
167
-
168
- If set, disables the datepicker.
169
-
170
- <div class="exampleWrapper">
171
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/disabled.html) -->
172
- <!-- The below content is automatically added from ./../apiExamples/disabled.html -->
173
- <auro-datepicker disabled>
174
- <span slot="label">Choose a date</span>
175
- </auro-datepicker>
176
- <!-- AURO-GENERATED-CONTENT:END -->
177
- </div>
178
- <auro-accordion alignRight>
179
- <span slot="trigger">See code</span>
180
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/disabled.html) -->
181
- <!-- The below code snippet is automatically added from ./../apiExamples/disabled.html -->
182
-
183
- ```html
184
- <auro-datepicker disabled>
185
- <span slot="label">Choose a date</span>
186
- </auro-datepicker>
187
- ```
188
- <!-- AURO-GENERATED-CONTENT:END -->
189
- </auro-accordion>
190
-
191
- #### error
192
-
193
- Sets a persistent error state (e.g. an error state returned from the server). This error state will override all default validation until the error attribute is removed from the datepicker.
194
-
195
- <div class="exampleWrapper">
196
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/error.html) -->
197
- <!-- The below content is automatically added from ./../apiExamples/error.html -->
198
- <auro-datepicker error="Custom error message" id="errorExample">
199
- <span slot="label">Choose a date</span>
200
- </auro-datepicker>
201
- <br/><br/>
202
- <auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
203
- <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
204
- <!-- AURO-GENERATED-CONTENT:END -->
205
- </div>
206
- <auro-accordion alignRight>
207
- <span slot="trigger">See code</span>
208
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/error.html) -->
209
- <!-- The below code snippet is automatically added from ./../apiExamples/error.html -->
210
-
211
- ```html
212
- <auro-datepicker error="Custom error message" id="errorExample">
213
- <span slot="label">Choose a date</span>
214
- </auro-datepicker>
215
- <br/><br/>
216
- <auro-button id="undefinedValueExampleBtnAddError">Set Error</auro-button>
217
- <auro-button id="undefinedValueExampleBtnRemoveError">Remove Error</auro-button>
218
- ```
219
- <!-- AURO-GENERATED-CONTENT:END -->
220
- </auro-accordion>
221
-
222
269
  #### maxDate
223
270
 
224
271
  To give a higher limit you can bind a date to the `maxDate` property. It is recommended to use the `setCustomValidityRangeOverflow` attribute to define an error message to display when validation fails the maximum date restriction.
@@ -468,7 +515,7 @@ When set, the datepicker will not validate when navigating away from the compone
468
515
  <span slot="fromLabel">Choose a date</span>
469
516
  </auro-datepicker>
470
517
  <!-- AURO-GENERATED-CONTENT:END -->
471
- </div>
518
+ </div>
472
519
  <auro-accordion alignRight>
473
520
  <span slot="trigger">See code</span>
474
521
  <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/noValidate.html) -->
@@ -482,39 +529,12 @@ When set, the datepicker will not validate when navigating away from the compone
482
529
  <!-- AURO-GENERATED-CONTENT:END -->
483
530
  </auro-accordion>
484
531
 
485
- #### range
486
-
487
- When used, the datepicker will display two inputs and the component will support selection of dates for a start and end date.
488
-
489
- <div class="exampleWrapper">
490
- <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/basicRange.html) -->
491
- <!-- The below content is automatically added from ./../apiExamples/basicRange.html -->
492
- <auro-datepicker range>
493
- <span slot="fromLabel">Departure</span>
494
- <span slot="toLabel">Return</span>
495
- <span slot="mobileDateLabel">Roundtrip</span>
496
- </auro-datepicker>
497
- <!-- AURO-GENERATED-CONTENT:END -->
498
- </div>
499
- <auro-accordion alignRight>
500
- <span slot="trigger">See code</span>
501
- <!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/basicRange.html) -->
502
- <!-- The below code snippet is automatically added from ./../apiExamples/basicRange.html -->
503
-
504
- ```html
505
- <auro-datepicker range>
506
- <span slot="fromLabel">Departure</span>
507
- <span slot="toLabel">Return</span>
508
- <span slot="mobileDateLabel">Roundtrip</span>
509
- </auro-datepicker>
510
- ```
511
- <!-- AURO-GENERATED-CONTENT:END -->
512
- </auro-accordion>
513
-
514
532
  #### required
515
533
 
516
534
  Populates the `required` attribute on the input. Used for client-side validation.
517
535
 
536
+ When the validity check fails the validityState, equals `valueMissing`. The error message for the `valueMissing` validityState can be set to a custom string using the `setCustomValidityValueMissing`. There is no default error message defined.
537
+
518
538
  <div class="exampleWrapper">
519
539
  <!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/required.html) -->
520
540
  <!-- The below content is automatically added from ./../apiExamples/required.html -->