@aurodesignsystem/auro-formkit 2.0.0-beta.2 → 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.
- package/.turbo/cache/013a48308b893dac-meta.json +1 -1
- package/.turbo/cache/02244170c798a2bd-meta.json +1 -0
- package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
- package/.turbo/cache/0cea4c1f34f3683b-meta.json +1 -1
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
- package/.turbo/cache/1ab37ce15d9be440-meta.json +1 -0
- package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
- package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -0
- package/.turbo/cache/1b9818717e4bdf9f.tar.zst +0 -0
- package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -0
- package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
- package/.turbo/cache/1de15d89eed2d760-meta.json +1 -1
- package/.turbo/cache/2110a4d14e0d11b2-meta.json +1 -0
- package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +1 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/2fd056afdf4eb39d-meta.json +1 -0
- package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
- package/.turbo/cache/3e12285c614db539-meta.json +1 -0
- package/.turbo/cache/3e12285c614db539.tar.zst +0 -0
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +1 -1
- package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -0
- package/.turbo/cache/5bf2d3f7ba5891e0.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +1 -1
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
- package/.turbo/cache/64de7a53e02db647-meta.json +1 -1
- package/.turbo/cache/691a74627ec57993-meta.json +1 -1
- package/.turbo/cache/69aae513b7ec6c7d-meta.json +1 -1
- package/.turbo/cache/6dd67d179191bda8-meta.json +1 -0
- package/.turbo/cache/6dd67d179191bda8.tar.zst +0 -0
- package/.turbo/cache/6dd7058e6703cb35-meta.json +1 -1
- package/.turbo/cache/73e9073a5274616d-meta.json +1 -1
- package/.turbo/cache/773edc0f83c8c5a5-meta.json +1 -1
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +1 -1
- package/.turbo/cache/786a822763403879-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327-meta.json +1 -0
- package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
- package/.turbo/cache/80a13352066a9801-meta.json +1 -0
- package/.turbo/cache/80a13352066a9801.tar.zst +0 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/87219c41a4ace9cd-meta.json +1 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
- package/.turbo/cache/993dff2edb7b6766-meta.json +1 -1
- package/.turbo/cache/9a097d6576dadd64-meta.json +1 -1
- package/.turbo/cache/a63cbfecf0f78586-meta.json +1 -0
- package/.turbo/cache/{ce67b6522dd09e64.tar.zst → a63cbfecf0f78586.tar.zst} +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/b2c66328fdd78093-meta.json +1 -0
- package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
- package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bffc7582905c2a5e-meta.json +1 -0
- package/.turbo/cache/bffc7582905c2a5e.tar.zst +0 -0
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
- package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +1 -0
- package/.turbo/cache/d39e6ef95ebc4cc0.tar.zst +0 -0
- package/.turbo/cache/d572ebb3c833e8f4-meta.json +1 -0
- package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
- package/.turbo/cache/d61543843c932504-meta.json +1 -0
- package/.turbo/cache/d61543843c932504.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
- package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -0
- package/.turbo/cache/dea5945f55c6aba5.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/f411e2deb0676959-meta.json +1 -0
- package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +1 -1
- package/CHANGELOG.md +26 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/demo/api.md +4 -2
- package/components/checkbox/demo/api.min.js +31 -36
- package/components/checkbox/demo/index.min.js +31 -36
- package/components/checkbox/dist/auro-checkbox-group.d.ts +1 -1
- package/components/checkbox/dist/index.js +31 -36
- package/components/checkbox/src/auro-checkbox-group.js +2 -2
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/demo/api.md +17 -15
- package/components/combobox/demo/api.min.js +104 -116
- package/components/combobox/demo/index.min.js +104 -116
- package/components/combobox/dist/auro-combobox.d.ts +11 -4
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/index.js +103 -115
- package/components/combobox/src/auro-combobox.js +22 -20
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/datepicker/.turbo/turbo-build.log +9 -8
- package/components/datepicker/demo/api.md +107 -87
- package/components/datepicker/demo/api.min.js +96 -130
- package/components/datepicker/demo/index.min.js +96 -130
- package/components/datepicker/dist/auro-datepicker.d.ts +6 -13
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +96 -130
- package/components/datepicker/src/auro-datepicker.js +15 -35
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-build$colon$sass.log +51 -1
- package/components/input/.turbo/turbo-build.log +56 -6
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-sass$colon$render.log +6 -0
- package/components/input/demo/api.md +83 -83
- package/components/input/demo/api.min.js +52 -61
- package/components/input/demo/index.md +6 -6
- package/components/input/demo/index.min.js +52 -61
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +5 -12
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +52 -61
- package/components/input/dist/styles/mixins-css.d.ts +3 -0
- package/components/input/dist/styles/mixins-css.d.ts.map +1 -0
- package/components/input/src/auro-input.js +0 -1
- package/components/input/src/base-input.js +22 -25
- package/components/input/src/styles/borders.scss +3 -19
- package/components/input/src/styles/color.css +1 -2
- package/components/input/src/styles/color.scss +3 -10
- package/components/input/src/styles/input-css.js +1 -1
- package/components/input/src/styles/input.css +1 -1
- package/components/input/src/styles/input.scss +4 -1
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +1 -1
- package/components/input/src/styles/label.scss +4 -7
- package/components/input/src/styles/mixins-css.js +2 -0
- package/components/input/src/styles/mixins.css +1 -0
- package/components/input/src/styles/mixins.scss +45 -0
- package/components/input/src/styles/notificationIcons-css.js +1 -1
- package/components/input/src/styles/notificationIcons.css +13 -12
- package/components/input/src/styles/notificationIcons.scss +17 -25
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +15 -17
- package/components/input/src/styles/style.scss +0 -4
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/demo/api.min.js +1 -1
- package/components/menu/demo/index.min.js +1 -1
- package/components/menu/dist/auro-menu.d.ts +1 -1
- package/components/menu/dist/index.js +1 -1
- package/components/menu/src/auro-menu.js +1 -1
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/radio/demo/api.md +3 -1
- package/components/radio/demo/api.min.js +30 -35
- package/components/radio/demo/index.min.js +30 -35
- package/components/radio/dist/index.js +30 -35
- package/components/radio/src/auro-radio-group.js +1 -1
- package/components/select/.turbo/turbo-build.log +3 -3
- package/components/select/demo/api.md +7 -11
- package/components/select/demo/api.min.js +33 -60
- package/components/select/demo/index.min.js +33 -56
- package/components/select/dist/auro-select.d.ts +2 -2
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +32 -55
- package/components/select/src/auro-select.js +3 -21
- package/package.json +1 -1
- package/packages/form-validation/src/validation.js +29 -34
- package/.turbo/cache/0663fcbb1d711029-meta.json +0 -1
- package/.turbo/cache/0663fcbb1d711029.tar.zst +0 -0
- package/.turbo/cache/0a2b0a4df8a0443f-meta.json +0 -1
- package/.turbo/cache/120c8e207aa1ba35-meta.json +0 -1
- package/.turbo/cache/120c8e207aa1ba35.tar.zst +0 -0
- package/.turbo/cache/17dd4bdef6550a07-meta.json +0 -1
- package/.turbo/cache/17dd4bdef6550a07.tar.zst +0 -0
- package/.turbo/cache/32c0b9995fb5f8dd-meta.json +0 -1
- package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
- package/.turbo/cache/47ba2b5ebdb579e9-meta.json +0 -1
- package/.turbo/cache/47ba2b5ebdb579e9.tar.zst +0 -0
- package/.turbo/cache/56cb35d4c7473a23-meta.json +0 -1
- package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
- package/.turbo/cache/626afdc67e0cb540-meta.json +0 -1
- package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
- package/.turbo/cache/6ef81cf9a66f982a-meta.json +0 -1
- package/.turbo/cache/6ef81cf9a66f982a.tar.zst +0 -0
- package/.turbo/cache/8b735250fa5a62bf-meta.json +0 -1
- package/.turbo/cache/8b735250fa5a62bf.tar.zst +0 -0
- package/.turbo/cache/9154e8fe6ab767ea-meta.json +0 -1
- package/.turbo/cache/9154e8fe6ab767ea.tar.zst +0 -0
- package/.turbo/cache/a49cc58242467fdc-meta.json +0 -1
- package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
- package/.turbo/cache/af061e7a077a9ba5-meta.json +0 -1
- package/.turbo/cache/af061e7a077a9ba5.tar.zst +0 -0
- package/.turbo/cache/b50f1b283b4b81cd-meta.json +0 -1
- package/.turbo/cache/b50f1b283b4b81cd.tar.zst +0 -0
- package/.turbo/cache/bf85bc040b7e64db-meta.json +0 -1
- package/.turbo/cache/bf85bc040b7e64db.tar.zst +0 -0
- package/.turbo/cache/cd5f6987783fb56d-meta.json +0 -1
- package/.turbo/cache/cd5f6987783fb56d.tar.zst +0 -0
- package/.turbo/cache/ce67b6522dd09e64-meta.json +0 -1
- package/.turbo/cache/d716cb7a08152beb-meta.json +0 -1
- package/.turbo/cache/d716cb7a08152beb.tar.zst +0 -0
- package/.turbo/cache/d7a47b77deb3d9a4-meta.json +0 -1
- package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
- package/.turbo/cache/ff58f630c9d69af4-meta.json +0 -1
- package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
- /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 {
|
|
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:
|
|
100
|
+
type: String,
|
|
99
101
|
reflect: true
|
|
100
102
|
},
|
|
101
103
|
setCustomValidity: {
|
|
102
|
-
type: String
|
|
103
|
-
|
|
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.
|
|
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.
|
|
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
|
-
|
|
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
|
[36m
|
|
76
76
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
77
|
-
[32mcreated [1mdist[22m in [
|
|
77
|
+
[32mcreated [1mdist[22m in [1m662ms[22m[39m
|
|
78
78
|
[36m
|
|
79
79
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
80
|
-
[32mcreated [1m./demo/[22m in [
|
|
80
|
+
[32mcreated [1m./demo/[22m in [1m219ms[22m[39m
|
|
81
81
|
[36m
|
|
82
82
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
83
|
-
[32mcreated [1m./demo/[22m in [
|
|
83
|
+
[32mcreated [1m./demo/[22m in [1m265ms[22m[39m
|
|
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
|
[36m
|
|
6
6
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
7
|
-
[32mcreated [1mdist[22m in [
|
|
7
|
+
[32mcreated [1mdist[22m in [1m479ms[22m[39m
|
|
8
8
|
[36m
|
|
9
9
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
10
|
-
[32mcreated [1m./demo/[22m in [
|
|
10
|
+
[32mcreated [1m./demo/[22m in [1m319ms[22m[39m
|
|
11
11
|
[36m
|
|
12
12
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
13
|
-
[32mcreated [1m./demo/[22m in [
|
|
13
|
+
[32mcreated [1m./demo/[22m in [1m397ms[22m[39m
|
|
@@ -376,10 +376,10 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
376
376
|
[32mcreated [1mdist[22m in [1m7.5s[22m[39m
|
|
377
377
|
[36m
|
|
378
378
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
379
|
-
[32mcreated [1m./demo/[22m in [1m3.
|
|
379
|
+
[32mcreated [1m./demo/[22m in [1m3.7s[22m[39m
|
|
380
380
|
[36m
|
|
381
381
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
382
|
-
[32mcreated [1m./demo/[22m in [1m3.
|
|
382
|
+
[32mcreated [1m./demo/[22m in [1m3.5s[22m[39m
|
|
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/
|
|
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/
|
|
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
|
|
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 -->
|