@aurodesignsystem/auro-formkit 2.0.0-beta.2 → 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 -0
- 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/0cea4c1f34f3683b-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 -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/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 -0
- package/.turbo/cache/3e12285c614db539.tar.zst +0 -0
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/5bf2d3f7ba5891e0-meta.json +1 -0
- package/.turbo/cache/5bf2d3f7ba5891e0.tar.zst +0 -0
- 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/786a822763403879-meta.json +1 -1
- package/.turbo/cache/7e1043cffa69f327-meta.json +1 -0
- 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 -0
- package/.turbo/cache/80a13352066a9801.tar.zst +0 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8e79bd5c3a16a72e-meta.json +1 -0
- 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 -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/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/db361cb6578dca84-meta.json +1 -0
- package/.turbo/cache/db361cb6578dca84.tar.zst +0 -0
- 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/f3ff9040a2196834-meta.json +1 -0
- package/.turbo/cache/f3ff9040a2196834.tar.zst +0 -0
- package/.turbo/cache/f817d89688cefca8-meta.json +1 -0
- package/.turbo/cache/f817d89688cefca8.tar.zst +0 -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 +44 -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 +500 -218
- package/components/combobox/demo/index.min.js +500 -218
- 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 +499 -217
- 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 +492 -232
- package/components/datepicker/demo/index.min.js +492 -232
- 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 +492 -232
- 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/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$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 -81
- package/components/input/demo/api.min.js +282 -121
- package/components/input/demo/index.md +6 -6
- package/components/input/demo/index.min.js +282 -121
- package/components/input/dist/auro-input.d.ts.map +1 -1
- package/components/input/dist/base-input.d.ts +155 -84
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +282 -121
- 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 +252 -85
- 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 +7 -9
- package/components/select/demo/api.md +45 -110
- package/components/select/demo/api.min.js +320 -224
- package/components/select/demo/index.md +100 -43
- package/components/select/demo/index.min.js +320 -220
- package/components/select/dist/auro-select.d.ts +64 -51
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +314 -201
- package/components/select/src/auro-select.js +100 -118
- 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/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/1de15d89eed2d760-meta.json +0 -1
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/2990aaa7ebc5b967-meta.json +0 -1
- package/.turbo/cache/2990aaa7ebc5b967.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/4f92cea2d8c63de2-meta.json +0 -1
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/56cb35d4c7473a23-meta.json +0 -1
- package/.turbo/cache/56cb35d4c7473a23.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +0 -1
- package/.turbo/cache/5c16ce3cff5c9dff.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/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/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/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/a49cc58242467fdc-meta.json +0 -1
- package/.turbo/cache/a49cc58242467fdc.tar.zst +0 -0
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +0 -1
- package/.turbo/cache/a6a56bb802e1c20f.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/ce67b6522dd09e64.tar.zst +0 -0
- 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/fbbe2704bf9cb90b-meta.json +0 -1
- package/.turbo/cache/fbbe2704bf9cb90b.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
|
@@ -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
|
|
@@ -24,6 +24,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
24
24
|
|
|
25
25
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
26
26
|
|
|
27
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
28
|
+
|
|
29
|
+
╷
|
|
30
|
+
6 │ @import 'mixins';
|
|
31
|
+
│ ^^^^^^^^
|
|
32
|
+
╵
|
|
33
|
+
src/styles/borders.scss 6:9 root stylesheet
|
|
34
|
+
|
|
35
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
36
|
+
|
|
27
37
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
28
38
|
|
|
29
39
|
╷
|
|
@@ -45,6 +55,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
45
55
|
|
|
46
56
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
47
57
|
|
|
58
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
59
|
+
|
|
60
|
+
╷
|
|
61
|
+
8 │ @import 'mixins';
|
|
62
|
+
│ ^^^^^^^^
|
|
63
|
+
╵
|
|
64
|
+
src/styles/color.scss 8:9 root stylesheet
|
|
65
|
+
|
|
66
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
67
|
+
|
|
48
68
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
49
69
|
|
|
50
70
|
╷
|
|
@@ -65,6 +85,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
65
85
|
|
|
66
86
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
67
87
|
|
|
88
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
89
|
+
|
|
90
|
+
╷
|
|
91
|
+
6 │ @import 'mixins';
|
|
92
|
+
│ ^^^^^^^^
|
|
93
|
+
╵
|
|
94
|
+
src/styles/input.scss 6:9 root stylesheet
|
|
95
|
+
|
|
96
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
97
|
+
|
|
68
98
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
69
99
|
|
|
70
100
|
╷
|
|
@@ -75,6 +105,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
75
105
|
|
|
76
106
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
77
107
|
|
|
108
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
109
|
+
|
|
110
|
+
╷
|
|
111
|
+
3 │ @import 'mixins';
|
|
112
|
+
│ ^^^^^^^^
|
|
113
|
+
╵
|
|
114
|
+
src/styles/label.scss 3:9 root stylesheet
|
|
115
|
+
|
|
116
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
117
|
+
|
|
78
118
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
79
119
|
|
|
80
120
|
╷
|
|
@@ -85,6 +125,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
85
125
|
|
|
86
126
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
87
127
|
|
|
128
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
129
|
+
|
|
130
|
+
╷
|
|
131
|
+
2 │ @import 'mixins';
|
|
132
|
+
│ ^^^^^^^^
|
|
133
|
+
╵
|
|
134
|
+
src/styles/notificationIcons.scss 2:9 root stylesheet
|
|
135
|
+
|
|
136
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
137
|
+
|
|
88
138
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
89
139
|
|
|
90
140
|
╷
|
|
@@ -133,7 +183,7 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
133
183
|
╵
|
|
134
184
|
src/styles/style.scss 31:9 root stylesheet
|
|
135
185
|
|
|
136
|
-
WARNING:
|
|
186
|
+
WARNING: 18 repetitive deprecation warnings omitted.
|
|
137
187
|
Run in verbose mode to see all warnings.
|
|
138
188
|
|
|
139
189
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
@@ -38,6 +38,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
38
38
|
|
|
39
39
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
40
40
|
|
|
41
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
42
|
+
|
|
43
|
+
╷
|
|
44
|
+
6 │ @import 'mixins';
|
|
45
|
+
│ ^^^^^^^^
|
|
46
|
+
╵
|
|
47
|
+
src/styles/borders.scss 6:9 root stylesheet
|
|
48
|
+
|
|
49
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
50
|
+
|
|
41
51
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
42
52
|
|
|
43
53
|
╷
|
|
@@ -59,6 +69,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
59
69
|
|
|
60
70
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
61
71
|
|
|
72
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
73
|
+
|
|
74
|
+
╷
|
|
75
|
+
8 │ @import 'mixins';
|
|
76
|
+
│ ^^^^^^^^
|
|
77
|
+
╵
|
|
78
|
+
src/styles/color.scss 8:9 root stylesheet
|
|
79
|
+
|
|
80
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
81
|
+
|
|
62
82
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
63
83
|
|
|
64
84
|
╷
|
|
@@ -79,6 +99,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
79
99
|
|
|
80
100
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
81
101
|
|
|
102
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
103
|
+
|
|
104
|
+
╷
|
|
105
|
+
6 │ @import 'mixins';
|
|
106
|
+
│ ^^^^^^^^
|
|
107
|
+
╵
|
|
108
|
+
src/styles/input.scss 6:9 root stylesheet
|
|
109
|
+
|
|
110
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
111
|
+
|
|
82
112
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
83
113
|
|
|
84
114
|
╷
|
|
@@ -89,6 +119,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
89
119
|
|
|
90
120
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
91
121
|
|
|
122
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
123
|
+
|
|
124
|
+
╷
|
|
125
|
+
3 │ @import 'mixins';
|
|
126
|
+
│ ^^^^^^^^
|
|
127
|
+
╵
|
|
128
|
+
src/styles/label.scss 3:9 root stylesheet
|
|
129
|
+
|
|
130
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
131
|
+
|
|
92
132
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
93
133
|
|
|
94
134
|
╷
|
|
@@ -99,6 +139,16 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
99
139
|
|
|
100
140
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
101
141
|
|
|
142
|
+
More info and automated migrator: https://sass-lang.com/d/import
|
|
143
|
+
|
|
144
|
+
╷
|
|
145
|
+
2 │ @import 'mixins';
|
|
146
|
+
│ ^^^^^^^^
|
|
147
|
+
╵
|
|
148
|
+
src/styles/notificationIcons.scss 2:9 root stylesheet
|
|
149
|
+
|
|
150
|
+
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
151
|
+
|
|
102
152
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
103
153
|
|
|
104
154
|
╷
|
|
@@ -147,7 +197,7 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
147
197
|
╵
|
|
148
198
|
src/styles/style.scss 31:9 root stylesheet
|
|
149
199
|
|
|
150
|
-
WARNING:
|
|
200
|
+
WARNING: 18 repetitive deprecation warnings omitted.
|
|
151
201
|
Run in verbose mode to see all warnings.
|
|
152
202
|
|
|
153
203
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
@@ -166,13 +216,13 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
166
216
|
|
|
167
217
|
[36m
|
|
168
218
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
169
|
-
[32mcreated [1mdist[22m in [1m1.
|
|
219
|
+
[32mcreated [1mdist[22m in [1m1.6s[22m[39m
|
|
170
220
|
[36m
|
|
171
221
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
172
|
-
[32mcreated [1m./demo/[22m in [
|
|
222
|
+
[32mcreated [1m./demo/[22m in [1m656ms[22m[39m
|
|
173
223
|
[36m
|
|
174
224
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
175
|
-
[32mcreated [1m./demo/[22m in [
|
|
225
|
+
[32mcreated [1m./demo/[22m in [1m953ms[22m[39m
|
|
176
226
|
|
|
177
227
|
> @auro-formkit/auro-input@4.2.0 build:docs
|
|
178
228
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component input
|
|
@@ -228,9 +278,9 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/input/
|
|
|
228
278
|
⁕ FILE:src=../apiExamples/value.html
|
|
229
279
|
⁕ FILE:src=../apiExamples/maxDate.html
|
|
230
280
|
⁕ FILE:src=../apiExamples/maxNumber.html
|
|
231
|
-
⁕ FILE:src=../apiExamples/maxLength.html
|
|
232
281
|
⁕ FILE:src=../apiExamples/minDate.html
|
|
233
282
|
⁕ FILE:src=../apiExamples/minNumber.html
|
|
283
|
+
⁕ FILE:src=../apiExamples/maxLength.html
|
|
234
284
|
⁕ FILE:src=../apiExamples/minLength.html
|
|
235
285
|
⁕ FILE:src=../apiExamples/pattern.html
|
|
236
286
|
⁕ FILE:src=../apiExamples/borderless.html
|
|
@@ -263,9 +313,9 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/input/
|
|
|
263
313
|
⁕ CODE:src=../apiExamples/value.js
|
|
264
314
|
⁕ CODE:src=../apiExamples/maxDate.html
|
|
265
315
|
⁕ CODE:src=../apiExamples/maxNumber.html
|
|
266
|
-
⁕ CODE:src=../apiExamples/maxLength.html
|
|
267
316
|
⁕ CODE:src=../apiExamples/minDate.html
|
|
268
317
|
⁕ CODE:src=../apiExamples/minNumber.html
|
|
318
|
+
⁕ CODE:src=../apiExamples/maxLength.html
|
|
269
319
|
⁕ CODE:src=../apiExamples/minLength.html
|
|
270
320
|
⁕ CODE:src=../apiExamples/pattern.html
|
|
271
321
|
⁕ CODE:src=../apiExamples/borderless.html
|
|
@@ -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
|
|
@@ -7,6 +7,7 @@ Rendering src/styles/color.css...
|
|
|
7
7
|
Rendering src/styles/helpText.css...
|
|
8
8
|
Rendering src/styles/input.css...
|
|
9
9
|
Rendering src/styles/label.css...
|
|
10
|
+
Rendering src/styles/mixins.css...
|
|
10
11
|
Rendering src/styles/notificationIcons.css...
|
|
11
12
|
Rendering src/styles/style.css...
|
|
12
13
|
Rendering src/styles/tokens.css...
|
|
@@ -42,6 +43,11 @@ DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart
|
|
|
42
43
|
|
|
43
44
|
More info: https://sass-lang.com/d/legacy-js-api
|
|
44
45
|
|
|
46
|
+
DEPRECATION WARNING: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
|
|
47
|
+
|
|
48
|
+
More info: https://sass-lang.com/d/legacy-js-api
|
|
49
|
+
|
|
50
|
+
Complete!
|
|
45
51
|
Complete!
|
|
46
52
|
Complete!
|
|
47
53
|
Complete!
|
|
@@ -33,41 +33,41 @@ Generate unique names for dependency components.
|
|
|
33
33
|
|
|
34
34
|
| Property | Attribute | Type | Default | Description |
|
|
35
35
|
|-----------------------------------|-----------------------------------|-----------|-------------|--------------------------------------------------|
|
|
36
|
-
| [activeLabel](#activeLabel) | `activeLabel` | `
|
|
37
|
-
| [autocapitalize](#autocapitalize) | `autocapitalize` | `
|
|
38
|
-
| [autocomplete](#autocomplete) | `autocomplete` | `
|
|
39
|
-
| [autocorrect](#autocorrect) | `autocorrect` | `
|
|
40
|
-
| [customValidityTypeEmail](#customValidityTypeEmail) | `customValidityTypeEmail` | `string` | |
|
|
41
|
-
| [disabled](#disabled) | `disabled` | `
|
|
42
|
-
| [error](#error) | `error` | `
|
|
43
|
-
| [errorMessage](#errorMessage) | `errorMessage` | `
|
|
44
|
-
| [icon](#icon) | `icon` | `
|
|
45
|
-
| [id](#id) | `id` | `
|
|
46
|
-
| [lang](#lang) | `lang` | `
|
|
47
|
-
| [max](#max) | `max` | `
|
|
48
|
-
| [maxLength](#maxLength) | `maxLength` | `
|
|
49
|
-
| [min](#min) | `min` | `
|
|
50
|
-
| [minLength](#minLength) | `minLength` | `
|
|
51
|
-
| [name](#name) | `name` | `
|
|
52
|
-
| [noValidate](#noValidate) | `noValidate` | `
|
|
53
|
-
| [pattern](#pattern) | `pattern` | `
|
|
54
|
-
| [placeholder](#placeholder) | `placeholder` | `
|
|
55
|
-
| [readonly](#readonly) | `readonly` | `
|
|
56
|
-
| [required](#required) | `required` | `
|
|
57
|
-
| [setCustomValidity](#setCustomValidity) | `setCustomValidity` | `
|
|
58
|
-
| [setCustomValidityBadInput](#setCustomValidityBadInput) | `setCustomValidityBadInput` | `
|
|
59
|
-
| [setCustomValidityCustomError](#setCustomValidityCustomError) | `setCustomValidityCustomError` | `
|
|
60
|
-
| [setCustomValidityForType](#setCustomValidityForType) | `setCustomValidityForType` | `
|
|
61
|
-
| [setCustomValidityRangeOverflow](#setCustomValidityRangeOverflow) | `setCustomValidityRangeOverflow` | `
|
|
62
|
-
| [setCustomValidityRangeUnderflow](#setCustomValidityRangeUnderflow) | `setCustomValidityRangeUnderflow` | `
|
|
63
|
-
| [setCustomValidityTooLong](#setCustomValidityTooLong) | `setCustomValidityTooLong` | `
|
|
64
|
-
| [setCustomValidityTooShort](#setCustomValidityTooShort) | `setCustomValidityTooShort` | `
|
|
65
|
-
| [setCustomValidityValueMissing](#setCustomValidityValueMissing) | `setCustomValidityValueMissing` | `
|
|
66
|
-
| [spellcheck](#spellcheck) | `spellcheck` | `
|
|
67
|
-
| [type](#type) | `type` | `
|
|
68
|
-
| [validateOnInput](#validateOnInput) | `validateOnInput` | `
|
|
69
|
-
| [validity](#validity) | `validity` | `
|
|
70
|
-
| [value](#value) | `value` | `
|
|
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. |
|
|
71
71
|
|
|
72
72
|
## Methods
|
|
73
73
|
|
|
@@ -329,42 +329,6 @@ The `setCustomValidityRangeOverflow` attribute may optionally be used in combina
|
|
|
329
329
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
330
330
|
</auro-accordion>
|
|
331
331
|
|
|
332
|
-
#### Max Length <a name="maxLength"></a>
|
|
333
|
-
Use the `maxlength` attribute to control the length of the input entered.
|
|
334
|
-
|
|
335
|
-
The `setCustomValidityTooLong` attribute may optionally be used in combination with the `maxLength` attribute to define custom help text used when the length of the input is too long.
|
|
336
|
-
|
|
337
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
338
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
|
|
339
|
-
<!-- The below content is automatically added from ../apiExamples/maxLength.html -->
|
|
340
|
-
<auro-input required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
341
|
-
<slot slot="label">Voucher Code</slot>
|
|
342
|
-
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
343
|
-
</auro-input>
|
|
344
|
-
<auro-input bordered required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
345
|
-
<slot slot="label">Voucher Code</slot>
|
|
346
|
-
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
347
|
-
</auro-input>
|
|
348
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
349
|
-
</div>
|
|
350
|
-
<auro-accordion alignRight>
|
|
351
|
-
<span slot="trigger">See code</span>
|
|
352
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxLength.html) -->
|
|
353
|
-
<!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
|
|
354
|
-
|
|
355
|
-
```html
|
|
356
|
-
<auro-input required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
357
|
-
<slot slot="label">Voucher Code</slot>
|
|
358
|
-
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
359
|
-
</auro-input>
|
|
360
|
-
<auro-input bordered required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
361
|
-
<slot slot="label">Voucher Code</slot>
|
|
362
|
-
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
363
|
-
</auro-input>
|
|
364
|
-
```
|
|
365
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
366
|
-
</auro-accordion>
|
|
367
|
-
|
|
368
332
|
### Min <a name="min"></a>
|
|
369
333
|
Use the `min` attribute to define a minimum value used during validation. The attribute will only apply when `<auro-input>` also has a `type` attribute for `number` or any date format.
|
|
370
334
|
|
|
@@ -416,6 +380,42 @@ The `setCustomValidityRangeUnderflow` attribute may optionally be used in combin
|
|
|
416
380
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
417
381
|
</auro-accordion>
|
|
418
382
|
|
|
383
|
+
### Max Length <a name="maxLength"></a>
|
|
384
|
+
Use the `maxlength` attribute to control the length of the input entered.
|
|
385
|
+
|
|
386
|
+
The `setCustomValidityTooLong` attribute may optionally be used in combination with the `maxLength` attribute to define custom help text used when the length of the input is too long.
|
|
387
|
+
|
|
388
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
389
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
|
|
390
|
+
<!-- The below content is automatically added from ../apiExamples/maxLength.html -->
|
|
391
|
+
<auro-input required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
392
|
+
<slot slot="label">Voucher Code</slot>
|
|
393
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
394
|
+
</auro-input>
|
|
395
|
+
<auro-input bordered required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
396
|
+
<slot slot="label">Voucher Code</slot>
|
|
397
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
398
|
+
</auro-input>
|
|
399
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
400
|
+
</div>
|
|
401
|
+
<auro-accordion alignRight>
|
|
402
|
+
<span slot="trigger">See code</span>
|
|
403
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxLength.html) -->
|
|
404
|
+
<!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
|
|
405
|
+
|
|
406
|
+
```html
|
|
407
|
+
<auro-input required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
408
|
+
<slot slot="label">Voucher Code</slot>
|
|
409
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
410
|
+
</auro-input>
|
|
411
|
+
<auro-input bordered required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
412
|
+
<slot slot="label">Voucher Code</slot>
|
|
413
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
414
|
+
</auro-input>
|
|
415
|
+
```
|
|
416
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
417
|
+
</auro-accordion>
|
|
418
|
+
|
|
419
419
|
### Min Length <a name="minLength"></a>
|
|
420
420
|
Use the `minlength` attribute to control the length of the input entered.
|
|
421
421
|
|
|
@@ -455,16 +455,16 @@ The `setCustomValidityTooShort` attribute may optionally be used in combination
|
|
|
455
455
|
### Pattern <a name="pattern"></a>
|
|
456
456
|
Use the `pattern` attribute to set custom input validation. This example also uses the `spellcheck` attribute set to `false` which in turn sets `autocorrect` to `off` and `autocapitalize` to `none`. Additionally the `maxlength` attribute sets the maximum length of characters that can be entered.
|
|
457
457
|
|
|
458
|
-
The `<auro-input>` component supports setting a custom validity message specific to the pattern validation by using the `
|
|
458
|
+
The `<auro-input>` component supports setting a custom validity message specific to the pattern validation by using the `setCustomValidityPatternMismatch` attribute.
|
|
459
459
|
|
|
460
460
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
461
461
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/pattern.html) -->
|
|
462
462
|
<!-- The below content is automatically added from ../apiExamples/pattern.html -->
|
|
463
|
-
<auro-input pattern="[a-z]{1,15}" spellcheck="false"
|
|
463
|
+
<auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
|
|
464
464
|
<span slot="label">Username</span>
|
|
465
465
|
<span slot="helptext">Please enter a username.</span>
|
|
466
466
|
</auro-input>
|
|
467
|
-
<auro-input bordered pattern="[a-z]{1,15}" spellcheck="false"
|
|
467
|
+
<auro-input bordered pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
|
|
468
468
|
<span slot="label">Username</span>
|
|
469
469
|
<span slot="helptext">Please enter a username.</span>
|
|
470
470
|
</auro-input>
|
|
@@ -476,11 +476,11 @@ The `<auro-input>` component supports setting a custom validity message specific
|
|
|
476
476
|
<!-- The below code snippet is automatically added from ../apiExamples/pattern.html -->
|
|
477
477
|
|
|
478
478
|
```html
|
|
479
|
-
<auro-input pattern="[a-z]{1,15}" spellcheck="false"
|
|
479
|
+
<auro-input pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
|
|
480
480
|
<span slot="label">Username</span>
|
|
481
481
|
<span slot="helptext">Please enter a username.</span>
|
|
482
482
|
</auro-input>
|
|
483
|
-
<auro-input bordered pattern="[a-z]{1,15}" spellcheck="false"
|
|
483
|
+
<auro-input bordered pattern="[a-z]{1,15}" spellcheck="false" setCustomValidityPatternMismatch="Only contain lowercase letters w/no spaces">
|
|
484
484
|
<span slot="label">Username</span>
|
|
485
485
|
<span slot="helptext">Please enter a username.</span>
|
|
486
486
|
</auro-input>
|
|
@@ -641,7 +641,7 @@ The `<auro-input>` component follows the HTML5 input `validity` and `validitySta
|
|
|
641
641
|
### Required <a name="required"></a>
|
|
642
642
|
When present, the `required` attribute specifies that an input field must be filled out before submitting the form.
|
|
643
643
|
|
|
644
|
-
When the validity check fails the validityState equals `valueMissing`. The error message for the `valueMissing` validityState can be changed to a custom string using the `setCustomValidityValueMissing`.
|
|
644
|
+
When the validity check fails, the validityState equals `valueMissing`. The error message for the `valueMissing` validityState can be changed to a custom string using the `setCustomValidityValueMissing`.
|
|
645
645
|
|
|
646
646
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
647
647
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/required.html) -->
|
|
@@ -678,11 +678,11 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
|
|
|
678
678
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
679
679
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/validateOnInput.html) -->
|
|
680
680
|
<!-- The below content is automatically added from ../apiExamples/validateOnInput.html -->
|
|
681
|
-
<auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+"
|
|
681
|
+
<auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
|
|
682
682
|
<span slot="label">Full Name</span>
|
|
683
683
|
<span slot="helptext">Please enter your full name as it appears on the card.</span>
|
|
684
684
|
</auro-input>
|
|
685
|
-
<auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+"
|
|
685
|
+
<auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
|
|
686
686
|
<span slot="label">Full Name</span>
|
|
687
687
|
<span slot="helptext">Please enter your full name as it appears on the card.</span>
|
|
688
688
|
</auro-input>
|
|
@@ -694,11 +694,11 @@ Use the `validateOnInput` attribute to enable live validation on the `input` eve
|
|
|
694
694
|
<!-- The below code snippet is automatically added from ../apiExamples/validateOnInput.html -->
|
|
695
695
|
|
|
696
696
|
```html
|
|
697
|
-
<auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+"
|
|
697
|
+
<auro-input validateOnInput required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
|
|
698
698
|
<span slot="label">Full Name</span>
|
|
699
699
|
<span slot="helptext">Please enter your full name as it appears on the card.</span>
|
|
700
700
|
</auro-input>
|
|
701
|
-
<auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+"
|
|
701
|
+
<auro-input validateOnInput bordered required pattern="[a-zA-Z-.']+( +[a-zA-Z-.']+)+" setCustomValidityPatternMismatch="Full name requires two or more names with at least one space.">
|
|
702
702
|
<span slot="label">Full Name</span>
|
|
703
703
|
<span slot="helptext">Please enter your full name as it appears on the card.</span>
|
|
704
704
|
</auro-input>
|
|
@@ -745,6 +745,8 @@ The `setCustomValidity` attribute can be used to set a custom string for all val
|
|
|
745
745
|
### Error <a name="error"></a>
|
|
746
746
|
Use the `error` attribute to apply a persistent custom error that supersedes the HTML5 validation logic.
|
|
747
747
|
|
|
748
|
+
A custom error message can be set using the `error` attribute, or it can be used in conjuction with the `setCustomValidityCustomError` attribute.
|
|
749
|
+
|
|
748
750
|
<div class="exampleWrapper">
|
|
749
751
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/error.html) -->
|
|
750
752
|
<!-- The below content is automatically added from ../apiExamples/error.html -->
|