@aurodesignsystem/auro-formkit 2.0.0-beta.3 → 2.0.0-beta.4
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 -1
- package/.turbo/cache/02244170c798a2bd.tar.zst +0 -0
- package/.turbo/cache/051ff97a20add0e2-meta.json +1 -0
- package/.turbo/cache/051ff97a20add0e2.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
- package/.turbo/cache/0ea853339c064fa1-meta.json +1 -0
- package/.turbo/cache/0ea853339c064fa1.tar.zst +0 -0
- package/.turbo/cache/16658beec9f4a809-meta.json +1 -0
- package/.turbo/cache/16658beec9f4a809.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
- package/.turbo/cache/1b9818717e4bdf9f-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2-meta.json +1 -1
- package/.turbo/cache/1c0f580d37370ba2.tar.zst +0 -0
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
- package/.turbo/cache/1df4710eef8ed00d-meta.json +1 -0
- package/.turbo/cache/1df4710eef8ed00d.tar.zst +0 -0
- package/.turbo/cache/204b66d1b253e9cc-meta.json +1 -0
- package/.turbo/cache/204b66d1b253e9cc.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
- package/.turbo/cache/2a5d0939d6fc1052-meta.json +1 -0
- package/.turbo/cache/2a5d0939d6fc1052.tar.zst +0 -0
- package/.turbo/cache/2e3b829fcf75c836-meta.json +1 -0
- package/.turbo/cache/2e3b829fcf75c836.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
- package/.turbo/cache/3d380d0d40404cac-meta.json +1 -0
- package/.turbo/cache/3d380d0d40404cac.tar.zst +0 -0
- package/.turbo/cache/3e12285c614db539-meta.json +1 -1
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/5bf2d3f7ba5891e0-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 -1
- 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/786a822763403879-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327.tar.zst +0 -0
- package/.turbo/cache/7ffd501e81790676-meta.json +1 -0
- package/.turbo/cache/7ffd501e81790676.tar.zst +0 -0
- package/.turbo/cache/80a13352066a9801-meta.json +1 -1
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -1
- package/.turbo/cache/8e9ebc3df0e18de0-meta.json +1 -0
- package/.turbo/cache/8e9ebc3df0e18de0.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
- package/.turbo/cache/973d0eea26083f4b-meta.json +1 -0
- package/.turbo/cache/973d0eea26083f4b.tar.zst +0 -0
- package/.turbo/cache/9c6ad42729c7b2d8-meta.json +1 -0
- package/.turbo/cache/9c6ad42729c7b2d8.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/a9a9d012c83882d8-meta.json +1 -0
- package/.turbo/cache/a9a9d012c83882d8.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 -1
- 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/d572ebb3c833e8f4-meta.json +1 -1
- package/.turbo/cache/d572ebb3c833e8f4.tar.zst +0 -0
- package/.turbo/cache/d61543843c932504-meta.json +1 -1
- package/.turbo/cache/d61543843c932504.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
- package/.turbo/cache/db361cb6578dca84-meta.json +1 -0
- package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
- package/.turbo/cache/dea5945f55c6aba5-meta.json +1 -1
- 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/f3ff9040a2196834-meta.json +1 -0
- package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
- package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
- package/.turbo/cache/fc57c17867dcac3d-meta.json +1 -0
- package/.turbo/cache/fc57c17867dcac3d.tar.zst +0 -0
- package/CHANGELOG.md +18 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/demo/api.min.js +407 -113
- package/components/combobox/demo/index.min.js +407 -113
- package/components/combobox/dist/index.js +407 -113
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/datepicker/demo/api.min.js +407 -113
- package/components/datepicker/demo/index.min.js +407 -113
- package/components/datepicker/dist/index.js +407 -113
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/dropdown/demo/api.md +4 -4
- package/components/dropdown/demo/api.min.js +166 -42
- package/components/dropdown/demo/index.min.js +166 -42
- package/components/dropdown/dist/auro-dropdown.d.ts +93 -34
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/auro-dropdownBib.d.ts +9 -3
- package/components/dropdown/dist/auro-dropdownBib.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +166 -42
- package/components/dropdown/src/auro-dropdown.js +154 -39
- package/components/dropdown/src/auro-dropdownBib.js +12 -3
- package/components/dropdown/src/styles/style-css.js +1 -1
- package/components/dropdown/src/styles/style.css +4 -0
- package/components/dropdown/src/styles/style.scss +5 -0
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/demo/api.md +37 -35
- package/components/input/demo/api.min.js +241 -71
- package/components/input/demo/index.min.js +241 -71
- package/components/input/dist/base-input.d.ts +157 -79
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +241 -71
- package/components/input/src/base-input.js +241 -71
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/select/.turbo/turbo-build.log +7 -9
- package/components/select/demo/api.md +39 -100
- package/components/select/demo/api.min.js +292 -169
- package/components/select/demo/index.md +100 -43
- package/components/select/demo/index.min.js +292 -169
- package/components/select/dist/auro-select.d.ts +63 -50
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +287 -151
- package/components/select/src/auro-select.js +102 -102
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +11 -1
- package/package.json +1 -1
- package/.turbo/cache/1ab37ce15d9be440-meta.json +0 -1
- package/.turbo/cache/1ab37ce15d9be440.tar.zst +0 -0
- package/.turbo/cache/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/2110a4d14e0d11b2-meta.json +0 -1
- package/.turbo/cache/2110a4d14e0d11b2.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.tar.zst +0 -0
- package/.turbo/cache/2fd056afdf4eb39d-meta.json +0 -1
- package/.turbo/cache/2fd056afdf4eb39d.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.tar.zst +0 -0
- package/.turbo/cache/784c03fe9fd5ac05-meta.json +0 -1
- package/.turbo/cache/784c03fe9fd5ac05.tar.zst +0 -0
- package/.turbo/cache/87219c41a4ace9cd-meta.json +0 -1
- package/.turbo/cache/87219c41a4ace9cd.tar.zst +0 -0
- package/.turbo/cache/993dff2edb7b6766-meta.json +0 -1
- package/.turbo/cache/993dff2edb7b6766.tar.zst +0 -0
- package/.turbo/cache/9a097d6576dadd64-meta.json +0 -1
- package/.turbo/cache/9a097d6576dadd64.tar.zst +0 -0
- package/.turbo/cache/a63cbfecf0f78586-meta.json +0 -1
- package/.turbo/cache/a63cbfecf0f78586.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/b2c66328fdd78093-meta.json +0 -1
- package/.turbo/cache/b2c66328fdd78093.tar.zst +0 -0
- package/.turbo/cache/d39e6ef95ebc4cc0-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959-meta.json +0 -1
- package/.turbo/cache/f411e2deb0676959.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.tar.zst +0 -0
- /package/.turbo/cache/{d39e6ef95ebc4cc0.tar.zst → f817d89688cefca8.tar.zst} +0 -0
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);white-space:normal}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2
|
+
export default css`:host{position:relative;display:inline-block;max-width:100%}:host([fluid]){display:block}#bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}.label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}.label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}.trigger{position:relative;display:flex;align-items:center;border-width:1px;border-style:solid}@media(hover: hover){.trigger:hover{cursor:pointer}}.triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}#showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}#showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}#showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}.helpText{margin-top:var(--ds-size-50, 0.25rem);font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem)}:host([matchwidth]) #bibSizer{width:100%}:host([disabled]){pointer-events:none}:host([inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([common]) .trigger,:host([inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([common]) .trigger,:host([rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
@@ -19,8 +19,12 @@
|
|
|
19
19
|
.label {
|
|
20
20
|
font-size: var(--ds-text-body-size-xs, 0.75rem);
|
|
21
21
|
line-height: var(--ds-text-body-size-default, 1rem);
|
|
22
|
+
transition: font-size 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
|
|
22
23
|
white-space: normal;
|
|
23
24
|
}
|
|
25
|
+
.label[hasTrigger=false] {
|
|
26
|
+
font-size: var(--ds-text-body-size-default, 1rem);
|
|
27
|
+
}
|
|
24
28
|
|
|
25
29
|
.trigger {
|
|
26
30
|
position: relative;
|
|
@@ -32,7 +32,12 @@
|
|
|
32
32
|
.label {
|
|
33
33
|
font-size: var(--ds-text-body-size-xs, $ds-text-body-size-xs);
|
|
34
34
|
line-height: var(--ds-text-body-size-default, $ds-text-body-size-default);
|
|
35
|
+
transition: font-size .3s cubic-bezier(.215, .61, .355, 1);
|
|
35
36
|
white-space: normal;
|
|
37
|
+
|
|
38
|
+
&[hasTrigger='false'] {
|
|
39
|
+
font-size: var(--ds-text-body-size-default, $ds-text-body-size-default);
|
|
40
|
+
}
|
|
36
41
|
}
|
|
37
42
|
|
|
38
43
|
.trigger {
|
|
@@ -69,13 +69,13 @@ Run in verbose mode to see all warnings.
|
|
|
69
69
|
|
|
70
70
|
[36m
|
|
71
71
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
72
|
-
[32mcreated [1mdist[22m in [
|
|
72
|
+
[32mcreated [1mdist[22m in [1m551ms[22m[39m
|
|
73
73
|
[36m
|
|
74
74
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
75
|
-
[32mcreated [1m./demo/[22m in [
|
|
75
|
+
[32mcreated [1m./demo/[22m in [1m314ms[22m[39m
|
|
76
76
|
[36m
|
|
77
77
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
78
|
-
[32mcreated [1m./demo/[22m in [
|
|
78
|
+
[32mcreated [1m./demo/[22m in [1m300ms[22m[39m
|
|
79
79
|
|
|
80
80
|
> @auro-formkit/auro-form@1.0.0 build:docs
|
|
81
81
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component form
|
|
@@ -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 [1m754ms[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 [1m317ms[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 [1m302ms[22m[39m
|
|
@@ -216,13 +216,13 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
216
216
|
|
|
217
217
|
[36m
|
|
218
218
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
219
|
-
[32mcreated [1mdist[22m in [1m1.
|
|
219
|
+
[32mcreated [1mdist[22m in [1m1.6s[22m[39m
|
|
220
220
|
[36m
|
|
221
221
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
222
|
-
[32mcreated [1m./demo/[22m in [
|
|
222
|
+
[32mcreated [1m./demo/[22m in [1m656ms[22m[39m
|
|
223
223
|
[36m
|
|
224
224
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
225
|
-
[32mcreated [1m./demo/[22m in [
|
|
225
|
+
[32mcreated [1m./demo/[22m in [1m953ms[22m[39m
|
|
226
226
|
|
|
227
227
|
> @auro-formkit/auro-input@4.2.0 build:docs
|
|
228
228
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component input
|
|
@@ -4,10 +4,10 @@
|
|
|
4
4
|
|
|
5
5
|
[36m
|
|
6
6
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
7
|
-
[32mcreated [1mdist[22m in [1m1.
|
|
7
|
+
[32mcreated [1mdist[22m in [1m1.2s[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 [1m936ms[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 [1m972ms[22m[39m
|
|
@@ -31,41 +31,43 @@ Generate unique names for dependency components.
|
|
|
31
31
|
|
|
32
32
|
## Properties
|
|
33
33
|
|
|
34
|
-
| Property
|
|
35
|
-
|
|
36
|
-
| [activeLabel](#activeLabel)
|
|
37
|
-
| [autocapitalize](#autocapitalize)
|
|
38
|
-
| [autocomplete](#autocomplete)
|
|
39
|
-
| [autocorrect](#autocorrect)
|
|
40
|
-
| [
|
|
41
|
-
| [
|
|
42
|
-
| [
|
|
43
|
-
| [
|
|
44
|
-
| [
|
|
45
|
-
| [
|
|
46
|
-
| [
|
|
47
|
-
| [
|
|
48
|
-
| [
|
|
49
|
-
| [
|
|
50
|
-
| [
|
|
51
|
-
| [
|
|
52
|
-
| [
|
|
53
|
-
| [
|
|
54
|
-
| [
|
|
55
|
-
| [
|
|
56
|
-
| [
|
|
57
|
-
| [
|
|
58
|
-
| [
|
|
59
|
-
| [
|
|
60
|
-
| [
|
|
61
|
-
| [
|
|
62
|
-
| [
|
|
63
|
-
| [
|
|
64
|
-
| [
|
|
65
|
-
| [
|
|
66
|
-
| [
|
|
67
|
-
| [
|
|
68
|
-
| [
|
|
34
|
+
| Property | Attribute | Type | Default | Description |
|
|
35
|
+
|-----------------------------------|-----------------------------------|-----------|-------------|--------------------------------------------------|
|
|
36
|
+
| [activeLabel](#activeLabel) | `activeLabel` | `boolean` | false | If set, the label will remain fixed in the active position. |
|
|
37
|
+
| [autocapitalize](#autocapitalize) | `autocapitalize` | `string` | | An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters] |
|
|
38
|
+
| [autocomplete](#autocomplete) | `autocomplete` | `string` | | An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported. |
|
|
39
|
+
| [autocorrect](#autocorrect) | `autocorrect` | `string` | | When set to `off`, stops iOS from auto-correcting words when typed into a text box. |
|
|
40
|
+
| [customValidityTypeEmail](#customValidityTypeEmail) | `customValidityTypeEmail` | `string` | | Custom help text message for email type validity. |
|
|
41
|
+
| [disabled](#disabled) | `disabled` | `boolean` | false | If set, disables the input. |
|
|
42
|
+
| [error](#error) | `error` | `string` | | |
|
|
43
|
+
| [errorMessage](#errorMessage) | `errorMessage` | `string` | | Contains the help text message for the current validity error. |
|
|
44
|
+
| [icon](#icon) | `icon` | `boolean` | false | If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format. |
|
|
45
|
+
| [id](#id) | `id` | `string` | | Sets the unique ID of the element. |
|
|
46
|
+
| [lang](#lang) | `lang` | `string` | | Defines the language of an element. |
|
|
47
|
+
| [max](#max) | `max` | `string` | "undefined" | The maximum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
48
|
+
| [maxLength](#maxLength) | `maxLength` | `number` | "undefined" | The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher. |
|
|
49
|
+
| [min](#min) | `min` | `string` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
50
|
+
| [minLength](#minLength) | `minLength` | `number` | "undefined" | The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`. |
|
|
51
|
+
| [name](#name) | `name` | `string` | | Populates the `name` attribute on the input. |
|
|
52
|
+
| [noValidate](#noValidate) | `noValidate` | `boolean` | false | If set, disables auto-validation on blur. |
|
|
53
|
+
| [pattern](#pattern) | `pattern` | `string` | | Specifies a regular expression the form control's value should match. |
|
|
54
|
+
| [placeholder](#placeholder) | `placeholder` | `string` | | Define custom placeholder text, only supported by date input formats. |
|
|
55
|
+
| [readonly](#readonly) | `readonly` | `boolean` | | Makes the input read-only, but can be set programmatically. |
|
|
56
|
+
| [required](#required) | `required` | `boolean` | false | Populates the `required` attribute on the input. Used for client-side validation. |
|
|
57
|
+
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `string` | | Sets a custom help text message to display for all validityStates. |
|
|
58
|
+
| [setCustomValidityBadInput](#setCustomValidityBadInput) | `setCustomValidityBadInput` | `string` | | Custom help text message to display when validity = `badInput`. |
|
|
59
|
+
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `string` | | Custom help text message to display when validity = `customError`. |
|
|
60
|
+
| [setCustomValidityForType](#setCustomValidityForType) | `setCustomValidityForType` | `string` | "undefined" | Custom help text message to display for the declared element `type` and type validity fails. |
|
|
61
|
+
| [setCustomValidityRangeOverflow](#setCustomValidityRangeOverflow) | `setCustomValidityRangeOverflow` | `string` | | Custom help text message to display when validity = `rangeOverflow`. |
|
|
62
|
+
| [setCustomValidityRangeUnderflow](#setCustomValidityRangeUnderflow) | `setCustomValidityRangeUnderflow` | `string` | | Custom help text message to display when validity = `rangeUnderflow`. |
|
|
63
|
+
| [setCustomValidityTooLong](#setCustomValidityTooLong) | `setCustomValidityTooLong` | `string` | | Custom help text message to display when validity = `tooLong`. |
|
|
64
|
+
| [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `string` | | Custom help text message to display when validity = `tooShort`. |
|
|
65
|
+
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `string` | | Custom help text message to display when validity = `valueMissing`. |
|
|
66
|
+
| [spellcheck](#spellcheck) | `spellcheck` | `string` | | An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`. |
|
|
67
|
+
| [type](#type) | `type` | `string` | | Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`. |
|
|
68
|
+
| [validateOnInput](#validateOnInput) | `validateOnInput` | `boolean` | | Sets validation mode to re-eval with each input. |
|
|
69
|
+
| [validity](#validity) | `validity` | `string` | | Specifies the `validityState` this element is in. |
|
|
70
|
+
| [value](#value) | `value` | `string` | | Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input. |
|
|
69
71
|
|
|
70
72
|
## Methods
|
|
71
73
|
|
|
@@ -2140,41 +2140,8 @@ class AuroFormValidation {
|
|
|
2140
2140
|
/**
|
|
2141
2141
|
* Auro-input provides users a way to enter data into a text field.
|
|
2142
2142
|
*
|
|
2143
|
-
* @attr {Boolean} activeLabel - If set, the label will remain fixed in the active position.
|
|
2144
|
-
* @attr {String} autocapitalize - An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
2145
|
-
* @attr {String} autocomplete - An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
2146
|
-
* @attr {String} autocorrect - When set to `off`, stops iOS from auto correcting words when typed into a text box.
|
|
2147
2143
|
* @attr {Boolean} bordered - Applies bordered UI variant.
|
|
2148
2144
|
* @attr {Boolean} borderless - Applies borderless UI variant.
|
|
2149
|
-
* @attr {Boolean} disabled - If set, disables the input.
|
|
2150
|
-
* @attr {String} error - When defined, sets persistent validity to `customError` and sets the validation message to the attribute value.
|
|
2151
|
-
* @attr {Boolean} icon - If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
2152
|
-
* @attr {String} id - Sets the unique ID of the element.
|
|
2153
|
-
* @attr {String} lang - defines the language of an element.
|
|
2154
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2155
|
-
* @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
2156
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2157
|
-
* @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
2158
|
-
* @attr {String} name - Populates the `name` attribute on the input.
|
|
2159
|
-
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
2160
|
-
* @attr {Boolean} readonly - Makes the input read-only, but can be set programmatically.
|
|
2161
|
-
* @attr {Boolean} required - Populates the `required` attribute on the input. Used for client-side validation.
|
|
2162
|
-
* @attr {String} pattern - Specifies a regular expression the form control's value should match.
|
|
2163
|
-
* @attr {String} placeholder - Define custom placeholder text, only supported by date input formats.
|
|
2164
|
-
* @attr {String} setCustomValidity - Sets a custom help text message to display for all validity states.
|
|
2165
|
-
* @attr {String} setCustomValidityCustomError - Custom help text message to display when validity = `customError`.
|
|
2166
|
-
* @attr {String} setCustomValidityValueMissing - Custom help text message to display when validity = `valueMissing`.
|
|
2167
|
-
* @attr {String} setCustomValidityPatternMismatch - Custom help text message to display when validity = `patternMismatch`.
|
|
2168
|
-
* @attr {String} setCustomValidityTooShort - Custom help text message to display when validity = `tooShort`.
|
|
2169
|
-
* @attr {String} setCustomValidityTooLong - Custom help text message to display when validity = `tooLong`.
|
|
2170
|
-
* @attr {String} setCustomValidityForType - Custom help text message to display for the declared element `type` and type validity fails.
|
|
2171
|
-
* @attr {String} setCustomValidityRangeOverflow - Custom help text message to display when validity = `rangeOverflow`.
|
|
2172
|
-
* @attr {String} setCustomValidityRangeUnderflow - Custom help text message to display when validity = `rangeUnderflow`.
|
|
2173
|
-
* @attr {String} spellcheck - An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
2174
|
-
* @attr {String} type - Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
2175
|
-
* @attr {Boolean} validateOnInput - Sets validation mode to re-eval with each input.
|
|
2176
|
-
* @attr {String} validity - Specifies the `validityState` this element is in.
|
|
2177
|
-
* @attr {String} value - Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
2178
2145
|
*
|
|
2179
2146
|
* @slot helptext - Sets the help text displayed below the input.
|
|
2180
2147
|
* @slot label - Sets the label text for the input.
|
|
@@ -2266,69 +2233,272 @@ class BaseInput extends r {
|
|
|
2266
2233
|
.substring(idSubstrStart, idSubstrEnd);
|
|
2267
2234
|
}
|
|
2268
2235
|
|
|
2269
|
-
// function to define props used within the scope of this
|
|
2236
|
+
// function to define props used within the scope of this componentstatic
|
|
2270
2237
|
static get properties() {
|
|
2271
2238
|
return {
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2239
|
+
|
|
2240
|
+
/**
|
|
2241
|
+
* If set, the label will remain fixed in the active position.
|
|
2242
|
+
*/
|
|
2243
|
+
activeLabel: {
|
|
2244
|
+
type: Boolean,
|
|
2245
|
+
reflect: true
|
|
2246
|
+
},
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* An enumerated attribute that controls whether and how text input is automatically capitalized as it is entered/edited by the user. [off/none, on/sentences, words, characters]
|
|
2250
|
+
*/
|
|
2251
|
+
autocapitalize: {
|
|
2252
|
+
type: String
|
|
2253
|
+
},
|
|
2254
|
+
|
|
2255
|
+
/**
|
|
2256
|
+
* An enumerated attribute that defines what the user agent can suggest for autofill. At this time, only `autocomplete="off"` is supported.
|
|
2257
|
+
*/
|
|
2258
|
+
autocomplete: {
|
|
2279
2259
|
type: String,
|
|
2280
2260
|
reflect: true
|
|
2281
2261
|
},
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
|
|
2287
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* When set to `off`, stops iOS from auto-correcting words when typed into a text box.
|
|
2265
|
+
*/
|
|
2266
|
+
autocorrect: {
|
|
2267
|
+
type: String
|
|
2268
|
+
},
|
|
2269
|
+
|
|
2270
|
+
/**
|
|
2271
|
+
* If set, disables the input.
|
|
2272
|
+
*/
|
|
2273
|
+
disabled: {
|
|
2274
|
+
type: Boolean
|
|
2275
|
+
},
|
|
2276
|
+
|
|
2277
|
+
error: {
|
|
2290
2278
|
type: String,
|
|
2291
2279
|
reflect: true
|
|
2292
2280
|
},
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2281
|
+
|
|
2282
|
+
/**
|
|
2283
|
+
* Contains the help text message for the current validity error.
|
|
2284
|
+
*/
|
|
2285
|
+
errorMessage: {
|
|
2286
|
+
type: String
|
|
2287
|
+
},
|
|
2288
|
+
|
|
2289
|
+
/**
|
|
2290
|
+
* If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
2291
|
+
*/
|
|
2292
|
+
icon: {
|
|
2293
|
+
type: Boolean
|
|
2294
|
+
},
|
|
2295
|
+
|
|
2296
|
+
/**
|
|
2297
|
+
* Sets the unique ID of the element.
|
|
2298
|
+
*/
|
|
2299
|
+
id: {
|
|
2300
|
+
type: String
|
|
2301
|
+
},
|
|
2302
|
+
|
|
2303
|
+
/**
|
|
2304
|
+
* Defines the language of an element.
|
|
2305
|
+
*/
|
|
2306
|
+
lang: {
|
|
2307
|
+
type: String
|
|
2308
|
+
},
|
|
2309
|
+
|
|
2310
|
+
/**
|
|
2311
|
+
* The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2312
|
+
*/
|
|
2313
|
+
max: {
|
|
2314
|
+
type: String
|
|
2315
|
+
},
|
|
2316
|
+
|
|
2317
|
+
/**
|
|
2318
|
+
* The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
2319
|
+
*/
|
|
2320
|
+
maxLength: {
|
|
2321
|
+
type: Number
|
|
2322
|
+
},
|
|
2323
|
+
|
|
2324
|
+
/**
|
|
2325
|
+
* The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
2326
|
+
*/
|
|
2327
|
+
min: {
|
|
2328
|
+
type: String
|
|
2329
|
+
},
|
|
2330
|
+
|
|
2331
|
+
/**
|
|
2332
|
+
* The minimum number of characters the user can enter into the text input. This must be a non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
2333
|
+
*/
|
|
2334
|
+
minLength: {
|
|
2335
|
+
type: Number
|
|
2336
|
+
},
|
|
2337
|
+
|
|
2338
|
+
/**
|
|
2339
|
+
* Populates the `name` attribute on the input.
|
|
2340
|
+
*/
|
|
2341
|
+
name: {
|
|
2342
|
+
type: String
|
|
2343
|
+
},
|
|
2344
|
+
|
|
2345
|
+
/**
|
|
2346
|
+
* If set, disables auto-validation on blur.
|
|
2347
|
+
*/
|
|
2348
|
+
noValidate: {
|
|
2349
|
+
type: Boolean
|
|
2350
|
+
},
|
|
2351
|
+
|
|
2352
|
+
/**
|
|
2353
|
+
* Specifies a regular expression the form control's value should match.
|
|
2354
|
+
*/
|
|
2355
|
+
pattern: {
|
|
2356
|
+
type: String,
|
|
2296
2357
|
reflect: true
|
|
2297
2358
|
},
|
|
2298
|
-
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2359
|
+
|
|
2360
|
+
/**
|
|
2361
|
+
* Define custom placeholder text, only supported by date input formats.
|
|
2362
|
+
*/
|
|
2363
|
+
placeholder: {
|
|
2364
|
+
type: String
|
|
2365
|
+
},
|
|
2366
|
+
|
|
2367
|
+
/**
|
|
2368
|
+
* Makes the input read-only, but can be set programmatically.
|
|
2369
|
+
*/
|
|
2370
|
+
readonly: {
|
|
2371
|
+
type: Boolean
|
|
2372
|
+
},
|
|
2373
|
+
|
|
2374
|
+
/**
|
|
2375
|
+
* Populates the `required` attribute on the input. Used for client-side validation.
|
|
2376
|
+
*/
|
|
2377
|
+
required: {
|
|
2378
|
+
type: Boolean
|
|
2379
|
+
},
|
|
2302
2380
|
|
|
2303
2381
|
/**
|
|
2304
2382
|
* @ignore
|
|
2305
2383
|
*/
|
|
2306
|
-
showPassword:
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2384
|
+
showPassword: {
|
|
2385
|
+
state: true
|
|
2386
|
+
},
|
|
2387
|
+
|
|
2388
|
+
/**
|
|
2389
|
+
* Sets a custom help text message to display for all validityStates.
|
|
2390
|
+
*/
|
|
2391
|
+
setCustomValidity: {
|
|
2392
|
+
type: String
|
|
2393
|
+
},
|
|
2394
|
+
|
|
2395
|
+
/**
|
|
2396
|
+
* Custom help text message to display when validity = `badInput`.
|
|
2397
|
+
*/
|
|
2398
|
+
setCustomValidityBadInput: {
|
|
2399
|
+
type: String
|
|
2400
|
+
},
|
|
2401
|
+
|
|
2402
|
+
/**
|
|
2403
|
+
* Custom help text message to display when validity = `customError`.
|
|
2404
|
+
*/
|
|
2405
|
+
setCustomValidityCustomError: {
|
|
2406
|
+
type: String
|
|
2407
|
+
},
|
|
2408
|
+
|
|
2409
|
+
/**
|
|
2410
|
+
* Custom help text message to display for the declared element `type` and type validity fails.
|
|
2411
|
+
*/
|
|
2412
|
+
setCustomValidityForType: {
|
|
2413
|
+
type: String
|
|
2414
|
+
},
|
|
2415
|
+
|
|
2416
|
+
/**
|
|
2417
|
+
* Custom help text message to display when validity = `rangeOverflow`.
|
|
2418
|
+
*/
|
|
2419
|
+
setCustomValidityRangeOverflow: {
|
|
2420
|
+
type: String
|
|
2421
|
+
},
|
|
2422
|
+
|
|
2423
|
+
/**
|
|
2424
|
+
* Custom help text message to display when validity = `rangeUnderflow`.
|
|
2425
|
+
*/
|
|
2426
|
+
setCustomValidityRangeUnderflow: {
|
|
2427
|
+
type: String
|
|
2428
|
+
},
|
|
2429
|
+
|
|
2430
|
+
/**
|
|
2431
|
+
* Custom help text message to display when validity = `tooLong`.
|
|
2432
|
+
*/
|
|
2433
|
+
setCustomValidityTooLong: {
|
|
2434
|
+
type: String
|
|
2435
|
+
},
|
|
2436
|
+
|
|
2437
|
+
/**
|
|
2438
|
+
* Custom help text message to display when validity = `tooShort`.
|
|
2439
|
+
*/
|
|
2440
|
+
setCustomValidityTooShort: {
|
|
2441
|
+
type: String
|
|
2442
|
+
},
|
|
2443
|
+
|
|
2444
|
+
/**
|
|
2445
|
+
* Custom help text message to display when validity = `valueMissing`.
|
|
2446
|
+
*/
|
|
2447
|
+
setCustomValidityValueMissing: {
|
|
2448
|
+
type: String
|
|
2449
|
+
},
|
|
2450
|
+
|
|
2451
|
+
/**
|
|
2452
|
+
* Custom help text message for email type validity.
|
|
2453
|
+
*/
|
|
2454
|
+
customValidityTypeEmail: {
|
|
2455
|
+
type: String
|
|
2456
|
+
},
|
|
2457
|
+
|
|
2458
|
+
/**
|
|
2459
|
+
* An enumerated attribute defines whether the element may be checked for spelling errors. [true, false]. When set to `false` the attribute `autocorrect` is set to `off` and `autocapitalize` is set to `none`.
|
|
2460
|
+
*/
|
|
2461
|
+
spellcheck: {
|
|
2462
|
+
type: String
|
|
2463
|
+
},
|
|
2464
|
+
|
|
2465
|
+
/**
|
|
2466
|
+
* Populates the `type` attribute on the input. Allowed values are `password`, `email`, `credit-card`, `month-day-year`, `month-year`, `year-month-day` or `text`. If given value is not allowed or set, defaults to `text`.
|
|
2467
|
+
*/
|
|
2468
|
+
type: {
|
|
2310
2469
|
type: String,
|
|
2311
2470
|
reflect: true
|
|
2312
2471
|
},
|
|
2313
|
-
|
|
2472
|
+
|
|
2473
|
+
/**
|
|
2474
|
+
* Populates the `value` attribute on the input. Can also be read to retrieve the current value of the input.
|
|
2475
|
+
*/
|
|
2476
|
+
value: {
|
|
2477
|
+
type: String
|
|
2478
|
+
},
|
|
2479
|
+
|
|
2480
|
+
/**
|
|
2481
|
+
* Sets validation mode to re-eval with each input.
|
|
2482
|
+
*/
|
|
2483
|
+
validateOnInput: {
|
|
2484
|
+
type: Boolean
|
|
2485
|
+
},
|
|
2486
|
+
|
|
2487
|
+
/**
|
|
2488
|
+
* Specifies the `validityState` this element is in.
|
|
2489
|
+
*/
|
|
2490
|
+
validity: {
|
|
2314
2491
|
type: String,
|
|
2315
2492
|
reflect: true
|
|
2316
|
-
}
|
|
2317
|
-
setCustomValidity: { type: String },
|
|
2318
|
-
setCustomValidityCustomError: { type: String },
|
|
2319
|
-
setCustomValidityValueMissing: { type: String },
|
|
2320
|
-
setCustomValidityPatternMismatch: { type: String },
|
|
2321
|
-
setCustomValidityTooShort: { type: String },
|
|
2322
|
-
setCustomValidityTooLong: { type: String },
|
|
2323
|
-
setCustomValidityRangeOverflow: { type: String },
|
|
2324
|
-
setCustomValidityRangeUnderflow: { type: String }
|
|
2493
|
+
}
|
|
2325
2494
|
};
|
|
2326
2495
|
}
|
|
2327
2496
|
|
|
2497
|
+
|
|
2328
2498
|
static get styles() {
|
|
2329
2499
|
return [
|
|
2330
|
-
i$2`${styleCss$3}`,
|
|
2331
2500
|
i$2`${colorCss$3}`,
|
|
2501
|
+
i$2`${styleCss$3}`,
|
|
2332
2502
|
i$2`${tokensCss$3}`
|
|
2333
2503
|
];
|
|
2334
2504
|
}
|