@aurodesignsystem/auro-formkit 1.6.0-beta.10 → 1.6.0-beta.12
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/0593477832b1052b-meta.json +1 -0
- package/.turbo/cache/0593477832b1052b.tar.zst +0 -0
- package/.turbo/cache/07ca42419b9f050c-meta.json +1 -1
- package/.turbo/cache/0a2b0a4df8a0443f-meta.json +1 -0
- package/.turbo/cache/0a2b0a4df8a0443f.tar.zst +0 -0
- package/.turbo/cache/0cea4c1f34f3683b-meta.json +1 -1
- package/.turbo/cache/141bb7d9a95e288b-meta.json +1 -0
- package/.turbo/cache/141bb7d9a95e288b.tar.zst +0 -0
- package/.turbo/cache/15b611d69353176d-meta.json +1 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
- package/.turbo/cache/1de15d89eed2d760-meta.json +1 -0
- package/.turbo/cache/1de15d89eed2d760.tar.zst +0 -0
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
- package/.turbo/cache/28b3bf750d6c5738-meta.json +1 -0
- package/.turbo/cache/28b3bf750d6c5738.tar.zst +0 -0
- package/.turbo/cache/32c0b9995fb5f8dd-meta.json +1 -0
- package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/4ceca20b1e98dbd7-meta.json +1 -0
- package/.turbo/cache/4ceca20b1e98dbd7.tar.zst +0 -0
- package/.turbo/cache/4e8c9ab436c836bc-meta.json +1 -0
- package/.turbo/cache/4e8c9ab436c836bc.tar.zst +0 -0
- package/.turbo/cache/4f92cea2d8c63de2-meta.json +1 -0
- package/.turbo/cache/4f92cea2d8c63de2.tar.zst +0 -0
- package/.turbo/cache/5bfa30d06f8727c7-meta.json +1 -0
- package/.turbo/cache/5bfa30d06f8727c7.tar.zst +0 -0
- package/.turbo/cache/5c16ce3cff5c9dff-meta.json +1 -1
- package/.turbo/cache/5f304c0f37ef25f3-meta.json +1 -1
- package/.turbo/cache/626afdc67e0cb540-meta.json +1 -0
- package/.turbo/cache/626afdc67e0cb540.tar.zst +0 -0
- 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/69f7eb632e38f934-meta.json +1 -0
- package/.turbo/cache/69f7eb632e38f934.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/7f01d2fe1c245278-meta.json +1 -0
- package/.turbo/cache/80b5d974184a01df-meta.json +1 -1
- package/.turbo/cache/8954c6073396fadd-meta.json +1 -1
- package/.turbo/cache/8ca4e3f31520b797-meta.json +1 -0
- package/.turbo/cache/8ca4e3f31520b797.tar.zst +0 -0
- package/.turbo/cache/92daa6d7c389d548-meta.json +1 -1
- package/.turbo/cache/9a097d6576dadd64-meta.json +1 -1
- package/.turbo/cache/a6a56bb802e1c20f-meta.json +1 -0
- package/.turbo/cache/a6a56bb802e1c20f.tar.zst +0 -0
- package/.turbo/cache/a77bc920ea508bb8-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
- package/.turbo/cache/b8b1814a990c06f8-meta.json +1 -0
- package/.turbo/cache/b8b1814a990c06f8.tar.zst +0 -0
- package/.turbo/cache/ba4418918621fbcd-meta.json +1 -1
- package/.turbo/cache/bb8b41cd0ade3986-meta.json +1 -0
- package/.turbo/cache/bb8b41cd0ade3986.tar.zst +0 -0
- package/.turbo/cache/bb8ec1d0fe0a761f-meta.json +1 -0
- package/.turbo/cache/bb8ec1d0fe0a761f.tar.zst +0 -0
- package/.turbo/cache/be7c23c37b8ec74b-meta.json +1 -1
- package/.turbo/cache/be7c23c37b8ec74b.tar.zst +0 -0
- package/.turbo/cache/bf85bc040b7e64db-meta.json +1 -0
- package/.turbo/cache/bf85bc040b7e64db.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/cd845bb6102c589a-meta.json +1 -0
- package/.turbo/cache/cd845bb6102c589a.tar.zst +0 -0
- package/.turbo/cache/d65801fd9a8c1a75-meta.json +1 -0
- package/.turbo/cache/d65801fd9a8c1a75.tar.zst +0 -0
- package/.turbo/cache/d7a47b77deb3d9a4-meta.json +1 -0
- package/.turbo/cache/d7a47b77deb3d9a4.tar.zst +0 -0
- package/.turbo/cache/dad1301ac69bcb85-meta.json +1 -1
- package/.turbo/cache/e44f36589cdc0bbc-meta.json +1 -0
- package/.turbo/cache/e44f36589cdc0bbc.tar.zst +0 -0
- package/.turbo/cache/e992dab20aeefbaf-meta.json +1 -1
- package/.turbo/cache/e992dab20aeefbaf.tar.zst +0 -0
- package/.turbo/cache/f5db6f7110f4ae32-meta.json +1 -0
- package/.turbo/cache/f5db6f7110f4ae32.tar.zst +0 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
- package/.turbo/cache/fa6b53275a3b4dc5-meta.json +1 -0
- package/.turbo/cache/fa6b53275a3b4dc5.tar.zst +0 -0
- package/.turbo/cache/fbbe2704bf9cb90b-meta.json +1 -1
- package/.turbo/cache/ff58f630c9d69af4-meta.json +1 -0
- package/.turbo/cache/ff58f630c9d69af4.tar.zst +0 -0
- package/CHANGELOG.md +39 -0
- package/components/checkbox/.turbo/turbo-build.log +6 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/demo/api.html +6 -1
- package/components/checkbox/demo/api.js +16 -0
- package/components/checkbox/demo/api.md +63 -4
- package/components/checkbox/demo/api.min.js +84 -13
- package/components/checkbox/demo/index.min.js +59 -13
- package/components/checkbox/dist/auro-checkbox-group.d.ts +6 -1
- package/components/checkbox/dist/auro-checkbox-group.d.ts.map +1 -1
- package/components/checkbox/dist/auro-checkbox.d.ts +5 -0
- package/components/checkbox/dist/auro-checkbox.d.ts.map +1 -1
- package/components/checkbox/dist/index.js +59 -13
- package/components/checkbox/src/auro-checkbox-group.js +18 -6
- package/components/checkbox/src/auro-checkbox.js +9 -0
- package/components/combobox/.turbo/turbo-build.log +6 -3
- package/components/combobox/demo/api.js +4 -2
- package/components/combobox/demo/api.md +60 -1
- package/components/combobox/demo/api.min.js +101 -31
- package/components/combobox/demo/index.min.js +92 -31
- package/components/combobox/dist/auro-combobox.d.ts +5 -1
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/index.js +91 -29
- package/components/combobox/src/auro-combobox.js +14 -3
- 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 +6 -3
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +46 -1
- package/components/datepicker/demo/api.min.js +100 -30
- package/components/datepicker/demo/index.min.js +91 -30
- package/components/datepicker/dist/auro-datepicker.d.ts +5 -2
- package/components/datepicker/dist/auro-datepicker.d.ts.map +1 -1
- package/components/datepicker/dist/index.js +91 -30
- package/components/datepicker/src/auro-datepicker.js +14 -4
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +3 -3
- package/components/dropdown/demo/api.min.js +1 -1
- package/components/dropdown/demo/index.min.js +1 -1
- package/components/dropdown/dist/index.js +1 -1
- package/components/dropdown/src/styles/bibStyles-css.js +1 -1
- package/components/dropdown/src/styles/bibStyles.css +0 -5
- package/components/dropdown/src/styles/bibStyles.scss +0 -7
- 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 +2 -2
- package/components/input/.turbo/turbo-build.log +16 -13
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/demo/api.js +2 -0
- package/components/input/demo/api.md +148 -98
- package/components/input/demo/api.min.js +56 -21
- package/components/input/demo/index.min.js +44 -18
- package/components/input/dist/base-input.d.ts +7 -8
- package/components/input/dist/base-input.d.ts.map +1 -1
- package/components/input/dist/index.js +44 -18
- package/components/input/src/base-input.js +11 -10
- package/components/input/src/styles/input-css.js +1 -1
- package/components/input/src/styles/input.css +13 -0
- package/components/input/src/styles/input.scss +21 -0
- package/components/input/src/styles/label-css.js +1 -1
- package/components/input/src/styles/label.css +3 -3
- package/components/input/src/styles/label.scss +1 -2
- package/components/input/src/styles/notificationIcons-css.js +1 -1
- package/components/input/src/styles/notificationIcons.css +7 -0
- package/components/input/src/styles/notificationIcons.scss +14 -0
- package/components/input/src/styles/style-css.js +1 -1
- package/components/input/src/styles/style.css +23 -3
- 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 -2
- package/components/menu/demo/index.min.js +1 -2
- package/components/menu/dist/auro-menuoption.d.ts +0 -1
- package/components/menu/dist/auro-menuoption.d.ts.map +1 -1
- package/components/menu/dist/index.js +1 -2
- package/components/menu/src/auro-menuoption.js +1 -2
- package/components/radio/.turbo/turbo-build.log +6 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/radio/demo/api.html +1 -0
- package/components/radio/demo/api.js +2 -0
- package/components/radio/demo/api.md +57 -3
- package/components/radio/demo/api.min.js +55 -12
- package/components/radio/demo/index.min.js +46 -12
- package/components/radio/dist/auro-radio-group.d.ts +1 -1
- package/components/radio/dist/auro-radio.d.ts +5 -0
- package/components/radio/dist/auro-radio.d.ts.map +1 -1
- package/components/radio/dist/index.js +46 -12
- package/components/radio/src/auro-radio-group.js +5 -5
- package/components/radio/src/auro-radio.js +9 -0
- package/components/select/.turbo/turbo-build.log +7 -4
- package/components/select/demo/api.js +4 -2
- package/components/select/demo/api.md +81 -17
- package/components/select/demo/api.min.js +52 -12
- package/components/select/demo/index.min.js +43 -12
- package/components/select/dist/auro-select.d.ts +5 -1
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +42 -10
- package/components/select/src/auro-select.js +9 -2
- package/package.json +1 -1
- package/packages/form-validation/src/validation.js +32 -7
- package/.turbo/cache/049b9083252d38be-meta.json +0 -1
- package/.turbo/cache/049b9083252d38be.tar.zst +0 -0
- package/.turbo/cache/0a1dd4481355cb0b-meta.json +0 -1
- package/.turbo/cache/0a1dd4481355cb0b.tar.zst +0 -0
- package/.turbo/cache/13cf37c850bd8cf4-meta.json +0 -1
- package/.turbo/cache/3323eb841acb9c4e-meta.json +0 -1
- package/.turbo/cache/3323eb841acb9c4e.tar.zst +0 -0
- package/.turbo/cache/34ba23e2e2d652ad-meta.json +0 -1
- package/.turbo/cache/34ba23e2e2d652ad.tar.zst +0 -0
- package/.turbo/cache/368cd6fed7975ad2-meta.json +0 -1
- package/.turbo/cache/368cd6fed7975ad2.tar.zst +0 -0
- package/.turbo/cache/3924bce8e51f0ffa-meta.json +0 -1
- package/.turbo/cache/3924bce8e51f0ffa.tar.zst +0 -0
- package/.turbo/cache/4567487084a055b7-meta.json +0 -1
- package/.turbo/cache/4567487084a055b7.tar.zst +0 -0
- package/.turbo/cache/4763278a7d3dbc16-meta.json +0 -1
- package/.turbo/cache/4763278a7d3dbc16.tar.zst +0 -0
- package/.turbo/cache/549e6ef9f9ffd9a8-meta.json +0 -1
- package/.turbo/cache/549e6ef9f9ffd9a8.tar.zst +0 -0
- package/.turbo/cache/59ccd8430174883c-meta.json +0 -1
- package/.turbo/cache/59ccd8430174883c.tar.zst +0 -0
- package/.turbo/cache/683d4c0e20c077a9-meta.json +0 -1
- package/.turbo/cache/683d4c0e20c077a9.tar.zst +0 -0
- package/.turbo/cache/8f8ffe35cc79d1a9-meta.json +0 -1
- package/.turbo/cache/8f8ffe35cc79d1a9.tar.zst +0 -0
- package/.turbo/cache/926d632729ca6536-meta.json +0 -1
- package/.turbo/cache/926d632729ca6536.tar.zst +0 -0
- package/.turbo/cache/9e7be41cc3a7ef43-meta.json +0 -1
- package/.turbo/cache/9e7be41cc3a7ef43.tar.zst +0 -0
- package/.turbo/cache/9ee793063ea89126-meta.json +0 -1
- package/.turbo/cache/9ee793063ea89126.tar.zst +0 -0
- package/.turbo/cache/a1558cef51c034da-meta.json +0 -1
- package/.turbo/cache/a1558cef51c034da.tar.zst +0 -0
- package/.turbo/cache/a24f2ff8e94e56e8-meta.json +0 -1
- package/.turbo/cache/a24f2ff8e94e56e8.tar.zst +0 -0
- package/.turbo/cache/a2705cf095a2ceb0-meta.json +0 -1
- package/.turbo/cache/a2705cf095a2ceb0.tar.zst +0 -0
- package/.turbo/cache/a33c0749886a41b5-meta.json +0 -1
- package/.turbo/cache/a33c0749886a41b5.tar.zst +0 -0
- package/.turbo/cache/a66b465385a30a2b-meta.json +0 -1
- package/.turbo/cache/a66b465385a30a2b.tar.zst +0 -0
- package/.turbo/cache/c1b72a92dec4fe37-meta.json +0 -1
- package/.turbo/cache/e25ac25a8a0ad126-meta.json +0 -1
- package/.turbo/cache/e25ac25a8a0ad126.tar.zst +0 -0
- package/.turbo/cache/e671573e4ef02c47-meta.json +0 -1
- package/.turbo/cache/e671573e4ef02c47.tar.zst +0 -0
- package/.turbo/cache/e86cee22dff5e281-meta.json +0 -1
- package/.turbo/cache/e86cee22dff5e281.tar.zst +0 -0
- package/.turbo/cache/f680556a8e954eac-meta.json +0 -1
- package/.turbo/cache/f680556a8e954eac.tar.zst +0 -0
- package/.turbo/cache/ffec4500b911b85a-meta.json +0 -1
- package/.turbo/cache/ffec4500b911b85a.tar.zst +0 -0
- /package/.turbo/cache/{c1b72a92dec4fe37.tar.zst → 15b611d69353176d.tar.zst} +0 -0
- /package/.turbo/cache/{13cf37c850bd8cf4.tar.zst → 7f01d2fe1c245278.tar.zst} +0 -0
|
@@ -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.1s[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 [1m894ms[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 [1m631ms[22m[39m
|
|
@@ -2433,7 +2433,7 @@ var colorCss$1 = i$3`.label{color:var(--ds-auro-dropdown-label-text-color)}.trig
|
|
|
2433
2433
|
|
|
2434
2434
|
var tokensCss = i$3`:host{--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
2435
2435
|
|
|
2436
|
-
var styleCss = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common]
|
|
2436
|
+
var styleCss = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
2437
2437
|
|
|
2438
2438
|
var colorCss = i$3`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2439
2439
|
|
|
@@ -2408,7 +2408,7 @@ var colorCss$1 = i$3`.label{color:var(--ds-auro-dropdown-label-text-color)}.trig
|
|
|
2408
2408
|
|
|
2409
2409
|
var tokensCss = i$3`:host{--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
2410
2410
|
|
|
2411
|
-
var styleCss = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common]
|
|
2411
|
+
var styleCss = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
2412
2412
|
|
|
2413
2413
|
var colorCss = i$3`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2414
2414
|
|
|
@@ -2408,7 +2408,7 @@ var colorCss$1 = i$3`.label{color:var(--ds-auro-dropdown-label-text-color)}.trig
|
|
|
2408
2408
|
|
|
2409
2409
|
var tokensCss = i$3`:host{--ds-auro-dropdown-help-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-label-text-color: var(--ds-color-text-secondary-default, #525252);--ds-auro-dropdown-popover-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-popover-border-color: transparent;--ds-auro-dropdown-popover-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdown-trigger-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdown-trigger-border-color: transparent;--ds-auro-dropdown-trigger-text-color: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-dropdownbib-boxshadow-color: var(--ds-elevation-200, 0px 0px 10px rgba(0, 0, 0, 0.15));--ds-auro-dropdownbib-container-color: var(--ds-color-container-primary-default, #ffffff);--ds-auro-dropdownbib-text-color: var(--ds-color-text-primary-default, #2a2a2a)}`;
|
|
2410
2410
|
|
|
2411
|
-
var styleCss = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common]
|
|
2411
|
+
var styleCss = i$3`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
2412
2412
|
|
|
2413
2413
|
var colorCss = i$3`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2414
2414
|
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common]
|
|
2
|
+
export default css`:host{position:absolute;z-index:var(--depth-tooltip, 400);display:none}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}`;
|
|
@@ -36,11 +36,6 @@
|
|
|
36
36
|
border-radius: var(--ds-border-radius, 0.375rem);
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
-
:host([common]) .container,
|
|
40
|
-
:host([inset]) .container {
|
|
41
|
-
padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem);
|
|
42
|
-
}
|
|
43
|
-
|
|
44
39
|
:host([common][isfullscreen]) .container,
|
|
45
40
|
:host([rounded][isfullscreen]) .container {
|
|
46
41
|
border-radius: unset;
|
|
@@ -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 [1m477ms[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 [1m214ms[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 [1m268ms[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 [1m429ms[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 [1m219ms[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 [1m157ms[22m[39m
|
|
@@ -58,10 +58,10 @@ DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Da
|
|
|
58
58
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
59
59
|
|
|
60
60
|
╷
|
|
61
|
-
|
|
61
|
+
4 │ @import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
|
|
62
62
|
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
63
63
|
╵
|
|
64
|
-
src/styles/input.scss
|
|
64
|
+
src/styles/input.scss 4:9 root stylesheet
|
|
65
65
|
|
|
66
66
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
67
67
|
|
|
@@ -72,10 +72,10 @@ DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Da
|
|
|
72
72
|
More info and automated migrator: https://sass-lang.com/d/import
|
|
73
73
|
|
|
74
74
|
╷
|
|
75
|
-
|
|
75
|
+
4 │ @import '@aurodesignsystem/design-tokens/dist/tokens/SCSSVariables';
|
|
76
76
|
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
77
77
|
╵
|
|
78
|
-
src/styles/input.scss
|
|
78
|
+
src/styles/input.scss 4:9 root stylesheet
|
|
79
79
|
|
|
80
80
|
DEPRECATION WARNING: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
|
|
81
81
|
|
|
@@ -166,13 +166,13 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
166
166
|
|
|
167
167
|
[36m
|
|
168
168
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
169
|
-
[32mcreated [1mdist[22m in [1m1.
|
|
169
|
+
[32mcreated [1mdist[22m in [1m1.5s[22m[39m
|
|
170
170
|
[36m
|
|
171
171
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
172
|
-
[32mcreated [1m./demo/[22m in [
|
|
172
|
+
[32mcreated [1m./demo/[22m in [1m1s[22m[39m
|
|
173
173
|
[36m
|
|
174
174
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
175
|
-
[32mcreated [1m./demo/[22m in [
|
|
175
|
+
[32mcreated [1m./demo/[22m in [1m778ms[22m[39m
|
|
176
176
|
|
|
177
177
|
> @auro-formkit/auro-input@4.2.0 build:docs
|
|
178
178
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component input
|
|
@@ -227,9 +227,11 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/input/
|
|
|
227
227
|
⁕ FILE:src=../apiExamples/programmaticValue.html
|
|
228
228
|
⁕ FILE:src=../apiExamples/value.html
|
|
229
229
|
⁕ FILE:src=../apiExamples/maxDate.html
|
|
230
|
-
⁕ FILE:src=../apiExamples/
|
|
230
|
+
⁕ FILE:src=../apiExamples/maxNumber.html
|
|
231
|
+
⁕ FILE:src=../apiExamples/maxLength.html
|
|
231
232
|
⁕ FILE:src=../apiExamples/minDate.html
|
|
232
|
-
⁕ FILE:src=../apiExamples/
|
|
233
|
+
⁕ FILE:src=../apiExamples/minNumber.html
|
|
234
|
+
⁕ FILE:src=../apiExamples/minLength.html
|
|
233
235
|
⁕ FILE:src=../apiExamples/pattern.html
|
|
234
236
|
⁕ FILE:src=../apiExamples/borderless.html
|
|
235
237
|
⁕ FILE:src=../apiExamples/readonly.html
|
|
@@ -242,8 +244,6 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/input/
|
|
|
242
244
|
⁕ FILE:src=../apiExamples/password.html
|
|
243
245
|
⁕ FILE:src=../apiExamples/email.html
|
|
244
246
|
⁕ FILE:src=../apiExamples/number.html
|
|
245
|
-
⁕ FILE:src=../apiExamples/maxLength.html
|
|
246
|
-
⁕ FILE:src=../apiExamples/minLength.html
|
|
247
247
|
⁕ FILE:src=../apiExamples/creditCard.html
|
|
248
248
|
⁕ FILE:src=../apiExamples/creditCardIcon.html
|
|
249
249
|
⁕ FILE:src=../apiExamples/monthDayYear.html
|
|
@@ -253,6 +253,7 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/input/
|
|
|
253
253
|
⁕ FILE:src=../apiExamples/month.html
|
|
254
254
|
⁕ FILE:src=../apiExamples/year.html
|
|
255
255
|
⁕ FILE:src=../apiExamples/fullYear.html
|
|
256
|
+
⁕ FILE:src=../apiExamples/resetState.html
|
|
256
257
|
⁕ FILE:src=../apiExamples/swapValue.html
|
|
257
258
|
⁕ CODE:src=../apiExamples/basic.html
|
|
258
259
|
⁕ CODE:src=../apiExamples/disabled.html
|
|
@@ -261,9 +262,11 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/input/
|
|
|
261
262
|
⁕ CODE:src=../apiExamples/value.html
|
|
262
263
|
⁕ CODE:src=../apiExamples/value.js
|
|
263
264
|
⁕ CODE:src=../apiExamples/maxDate.html
|
|
264
|
-
⁕ CODE:src=../apiExamples/
|
|
265
|
+
⁕ CODE:src=../apiExamples/maxNumber.html
|
|
266
|
+
⁕ CODE:src=../apiExamples/maxLength.html
|
|
265
267
|
⁕ CODE:src=../apiExamples/minDate.html
|
|
266
|
-
⁕ CODE:src=../apiExamples/
|
|
268
|
+
⁕ CODE:src=../apiExamples/minNumber.html
|
|
269
|
+
⁕ CODE:src=../apiExamples/minLength.html
|
|
267
270
|
⁕ CODE:src=../apiExamples/pattern.html
|
|
268
271
|
⁕ CODE:src=../apiExamples/borderless.html
|
|
269
272
|
⁕ CODE:src=../apiExamples/readonly.html
|
|
@@ -278,8 +281,6 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/input/
|
|
|
278
281
|
⁕ CODE:src=../apiExamples/password.html
|
|
279
282
|
⁕ CODE:src=../apiExamples/email.html
|
|
280
283
|
⁕ CODE:src=../apiExamples/number.html
|
|
281
|
-
⁕ CODE:src=../apiExamples/maxLength.html
|
|
282
|
-
⁕ CODE:src=../apiExamples/minLength.html
|
|
283
284
|
⁕ CODE:src=../apiExamples/creditCard.html
|
|
284
285
|
⁕ CODE:src=../apiExamples/creditCardIcon.html
|
|
285
286
|
⁕ CODE:src=../apiExamples/monthDayYear.html
|
|
@@ -289,6 +290,8 @@ Retrieving latest "/home/runner/work/auro-formkit/auro-formkit/components/input/
|
|
|
289
290
|
⁕ CODE:src=../apiExamples/month.html
|
|
290
291
|
⁕ CODE:src=../apiExamples/year.html
|
|
291
292
|
⁕ CODE:src=../apiExamples/fullYear.html
|
|
293
|
+
⁕ CODE:src=../apiExamples/resetState.html
|
|
294
|
+
⁕ CODE:src=../apiExamples/resetState.js
|
|
292
295
|
⁕ CODE:src=../apiExamples/swapValue.html
|
|
293
296
|
⁕ CODE:src=../apiExamples/swapValue.js
|
|
294
297
|
⁕ CODE:src=../src/styles/tokens.scss
|
|
@@ -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.3s[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 [1m905ms[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 [1m600ms[22m[39m
|
|
@@ -3,6 +3,7 @@ import { customError } from "../apiExamples/error";
|
|
|
3
3
|
import { setReadonlyValue } from "../apiExamples/readonly";
|
|
4
4
|
import { swapInputValues } from "../apiExamples/swapValue";
|
|
5
5
|
import { programmaticallySetValue } from "../apiExamples/value";
|
|
6
|
+
import { resetStateExample } from "../apiExamples/resetState";
|
|
6
7
|
import './index.js';
|
|
7
8
|
|
|
8
9
|
export function initExamples(initCount) {
|
|
@@ -14,6 +15,7 @@ export function initExamples(initCount) {
|
|
|
14
15
|
setReadonlyValue();
|
|
15
16
|
swapInputValues();
|
|
16
17
|
programmaticallySetValue();
|
|
18
|
+
resetStateExample();
|
|
17
19
|
} catch (error) {
|
|
18
20
|
if (initCount <= 20) {
|
|
19
21
|
// setTimeout handles issue where content is sometimes loaded after the functions get called
|
|
@@ -44,12 +44,11 @@ Generate unique names for dependency components.
|
|
|
44
44
|
| [helpText](#helpText) | `helpText` | `String` | | Deprecated, see `slot`. |
|
|
45
45
|
| [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. |
|
|
46
46
|
| [id](#id) | `id` | `String` | | Sets the unique ID of the element. |
|
|
47
|
-
| [isValid](#isValid) | `isValid` | `String` | false | (DEPRECATED - Please use validity) Can be accessed to determine if the input validity. Returns true when validity has not yet been checked or validity = 'valid', all other cases return false. Not intended to be set by the consumer. |
|
|
48
47
|
| [label](#label) | `label` | `String` | "Input label is undefined" | Deprecated, see `slot`. |
|
|
49
48
|
| [lang](#lang) | `lang` | `String` | | defines the language of an element. |
|
|
50
|
-
| [max](#max) | `max` | `String` | "undefined" | The maximum value allowed. This only applies for inputs with a type of `
|
|
49
|
+
| [max](#max) | `max` | `String` | "undefined" | The maximum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
51
50
|
| [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. |
|
|
52
|
-
| [min](#min) | `min` | `String` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `
|
|
51
|
+
| [min](#min) | `min` | `String` | "undefined" | The minimum value allowed. This only applies for inputs with a type of `number` and all date formats. |
|
|
53
52
|
| [minLength](#minLength) | `minLength` | `Number` | "undefined" | 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`. |
|
|
54
53
|
| [name](#name) | `name` | `String` | | Populates the `name` attribute on the input. |
|
|
55
54
|
| [noValidate](#noValidate) | `noValidate` | `Boolean` | false | If set, disables auto-validation on blur. |
|
|
@@ -77,6 +76,7 @@ Generate unique names for dependency components.
|
|
|
77
76
|
| Method | Type | Description |
|
|
78
77
|
|--------------|---------------|------------------------------------------|
|
|
79
78
|
| [isDateType](#isDateType) | `(): boolean` | |
|
|
79
|
+
| [reset](#reset) | `(): void` | Resets component to initial state. |
|
|
80
80
|
| [validate](#validate) | `(): void` | Public method force validation of input. |
|
|
81
81
|
|
|
82
82
|
## Events
|
|
@@ -238,7 +238,7 @@ Note: Setting the `value` to `undefined` will also reset the element.
|
|
|
238
238
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/value.html) -->
|
|
239
239
|
<!-- The below content is automatically added from ../apiExamples/value.html -->
|
|
240
240
|
<auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
|
|
241
|
-
<auro-button id="
|
|
241
|
+
<auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
|
|
242
242
|
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
|
|
243
243
|
<span slot="label">Name</span>
|
|
244
244
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -252,7 +252,7 @@ Note: Setting the `value` to `undefined` will also reset the element.
|
|
|
252
252
|
|
|
253
253
|
```html
|
|
254
254
|
<auro-button id="setValidValueBtn">Set Value to Alaska</auro-button>
|
|
255
|
-
<auro-button id="
|
|
255
|
+
<auro-button id="setUndefinedValueBtn">Set Value to Undefined</auro-button>
|
|
256
256
|
<auro-input id="setProgrammaticValueExample" value="Press one of the buttons above!" bordered>
|
|
257
257
|
<span slot="label">Name</span>
|
|
258
258
|
<span slot="helptext">Please enter your full name.</span>
|
|
@@ -268,12 +268,12 @@ export function programmaticallySetValue() {
|
|
|
268
268
|
|
|
269
269
|
// set value of auro-input element
|
|
270
270
|
document.querySelector('#setValidValueBtn').addEventListener('click', () => {
|
|
271
|
-
|
|
271
|
+
elem.value = "Alaska Airlines is the best";
|
|
272
272
|
});
|
|
273
273
|
|
|
274
274
|
// reset the value of auro-input element
|
|
275
|
-
document.querySelector('#
|
|
276
|
-
|
|
275
|
+
document.querySelector('#setUndefinedValueBtn').addEventListener('click', () => {
|
|
276
|
+
elem.value = undefined;
|
|
277
277
|
});
|
|
278
278
|
}
|
|
279
279
|
```
|
|
@@ -281,9 +281,9 @@ export function programmaticallySetValue() {
|
|
|
281
281
|
</auro-accordion>
|
|
282
282
|
|
|
283
283
|
### Max <a name="max"></a>
|
|
284
|
-
Use the `max` attribute to define a maximum value used during validation. The attribute will only apply when `<auro-input>` also has a `type` attribute for `
|
|
284
|
+
Use the `max` attribute to define a maximum value used during validation. The attribute will only apply when `<auro-input>` also has a `type` attribute for `number` or any date format.
|
|
285
285
|
|
|
286
|
-
The `
|
|
286
|
+
The `setCustomValidityRangeOverflow` attribute may optionally be used in combination with the `max` attribute to define custom help text used when the input value is greater than the value of the `max` attribute.
|
|
287
287
|
|
|
288
288
|
#### Date Example
|
|
289
289
|
|
|
@@ -308,11 +308,11 @@ The `max` attribute should be used in combination with the `setCustomValidityRan
|
|
|
308
308
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
309
309
|
</auro-accordion>
|
|
310
310
|
|
|
311
|
-
####
|
|
311
|
+
#### Number Example
|
|
312
312
|
|
|
313
313
|
<div class="exampleWrapper">
|
|
314
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
315
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
314
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxNumber.html) -->
|
|
315
|
+
<!-- The below content is automatically added from ../apiExamples/maxNumber.html -->
|
|
316
316
|
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
|
|
317
317
|
<span slot="label">Choose a number</span>
|
|
318
318
|
</auro-input>
|
|
@@ -320,8 +320,8 @@ The `max` attribute should be used in combination with the `setCustomValidityRan
|
|
|
320
320
|
</div>
|
|
321
321
|
<auro-accordion alignRight>
|
|
322
322
|
<span slot="trigger">See code</span>
|
|
323
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
324
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
323
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxNumber.html) -->
|
|
324
|
+
<!-- The below code snippet is automatically added from ../apiExamples/maxNumber.html -->
|
|
325
325
|
|
|
326
326
|
```html
|
|
327
327
|
<auro-input type="number" max="10" setCustomValidityRangeOverflow="The selected value is above the defined maximum.">
|
|
@@ -331,10 +331,46 @@ The `max` attribute should be used in combination with the `setCustomValidityRan
|
|
|
331
331
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
332
332
|
</auro-accordion>
|
|
333
333
|
|
|
334
|
+
#### Max Length <a name="maxLength"></a>
|
|
335
|
+
Use the `maxlength` attribute to control the length of the input entered.
|
|
336
|
+
|
|
337
|
+
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.
|
|
338
|
+
|
|
339
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
340
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
|
|
341
|
+
<!-- The below content is automatically added from ../apiExamples/maxLength.html -->
|
|
342
|
+
<auro-input required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
343
|
+
<slot slot="label">Voucher Code</slot>
|
|
344
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
345
|
+
</auro-input>
|
|
346
|
+
<auro-input bordered required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
347
|
+
<slot slot="label">Voucher Code</slot>
|
|
348
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
349
|
+
</auro-input>
|
|
350
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
351
|
+
</div>
|
|
352
|
+
<auro-accordion alignRight>
|
|
353
|
+
<span slot="trigger">See code</span>
|
|
354
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxLength.html) -->
|
|
355
|
+
<!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
|
|
356
|
+
|
|
357
|
+
```html
|
|
358
|
+
<auro-input required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
359
|
+
<slot slot="label">Voucher Code</slot>
|
|
360
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
361
|
+
</auro-input>
|
|
362
|
+
<auro-input bordered required maxlength="12" setCustomValidityTooLong="Oops! There were too many characters entered.">
|
|
363
|
+
<slot slot="label">Voucher Code</slot>
|
|
364
|
+
<slot slot="helptext">Please enter your 12 character voucher code.</slot>
|
|
365
|
+
</auro-input>
|
|
366
|
+
```
|
|
367
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
368
|
+
</auro-accordion>
|
|
369
|
+
|
|
334
370
|
### Min <a name="min"></a>
|
|
335
|
-
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
|
|
371
|
+
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.
|
|
336
372
|
|
|
337
|
-
The `
|
|
373
|
+
The `setCustomValidityRangeUnderflow` attribute may optionally be used in combination with the `min` attribute to define custom help text used when the input value is less than the value of the `min` attribute.
|
|
338
374
|
|
|
339
375
|
#### Date Example
|
|
340
376
|
|
|
@@ -359,11 +395,11 @@ The `min` attribute should be used in combination with the `setCustomValidityRan
|
|
|
359
395
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
360
396
|
</auro-accordion>
|
|
361
397
|
|
|
362
|
-
####
|
|
398
|
+
#### Number Example
|
|
363
399
|
|
|
364
400
|
<div class="exampleWrapper">
|
|
365
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/
|
|
366
|
-
<!-- The below content is automatically added from ../apiExamples/
|
|
401
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minNumber.html) -->
|
|
402
|
+
<!-- The below content is automatically added from ../apiExamples/minNumber.html -->
|
|
367
403
|
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
|
|
368
404
|
<span slot="label">Choose a number</span>
|
|
369
405
|
</auro-input>
|
|
@@ -371,8 +407,8 @@ The `min` attribute should be used in combination with the `setCustomValidityRan
|
|
|
371
407
|
</div>
|
|
372
408
|
<auro-accordion alignRight>
|
|
373
409
|
<span slot="trigger">See code</span>
|
|
374
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/
|
|
375
|
-
<!-- The below code snippet is automatically added from ../apiExamples/
|
|
410
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/minNumber.html) -->
|
|
411
|
+
<!-- The below code snippet is automatically added from ../apiExamples/minNumber.html -->
|
|
376
412
|
|
|
377
413
|
```html
|
|
378
414
|
<auro-input type="number" min="10" setCustomValidityRangeUnderflow="The selected value is below the defined minimum.">
|
|
@@ -382,6 +418,42 @@ The `min` attribute should be used in combination with the `setCustomValidityRan
|
|
|
382
418
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
383
419
|
</auro-accordion>
|
|
384
420
|
|
|
421
|
+
### Min Length <a name="minLength"></a>
|
|
422
|
+
Use the `minlength` attribute to control the length of the input entered.
|
|
423
|
+
|
|
424
|
+
The `setCustomValidityTooShort` attribute may optionally be used in combination with the `minLength` attribute to define custom help text used when the length of the input is not long enough.
|
|
425
|
+
|
|
426
|
+
<div class="exampleWrapper exampleWrapper--flex">
|
|
427
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minLength.html) -->
|
|
428
|
+
<!-- The below content is automatically added from ../apiExamples/minLength.html -->
|
|
429
|
+
<auro-input required minlength="4" setCustomValidityTooShort="Please enter a full voucher code.">
|
|
430
|
+
<slot slot="label">Voucher Code</slot>
|
|
431
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
432
|
+
</auro-input>
|
|
433
|
+
<auro-input bordered required minlength="4" setCustomValidityTooShort="Please enter a full voucher code.">
|
|
434
|
+
<slot slot="label">Voucher Code</slot>
|
|
435
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
436
|
+
</auro-input>
|
|
437
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
438
|
+
</div>
|
|
439
|
+
<auro-accordion alignRight>
|
|
440
|
+
<span slot="trigger">See code</span>
|
|
441
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/minLength.html) -->
|
|
442
|
+
<!-- The below code snippet is automatically added from ../apiExamples/minLength.html -->
|
|
443
|
+
|
|
444
|
+
```html
|
|
445
|
+
<auro-input required minlength="4" setCustomValidityTooShort="Please enter a full voucher code.">
|
|
446
|
+
<slot slot="label">Voucher Code</slot>
|
|
447
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
448
|
+
</auro-input>
|
|
449
|
+
<auro-input bordered required minlength="4" setCustomValidityTooShort="Please enter a full voucher code.">
|
|
450
|
+
<slot slot="label">Voucher Code</slot>
|
|
451
|
+
<slot slot="helptext">Please enter your 4 character voucher code.</slot>
|
|
452
|
+
</auro-input>
|
|
453
|
+
```
|
|
454
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
455
|
+
</auro-accordion>
|
|
456
|
+
|
|
385
457
|
### Pattern <a name="pattern"></a>
|
|
386
458
|
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.
|
|
387
459
|
|
|
@@ -796,16 +868,18 @@ Default help text will be added to the input `type="email"` if custom help text
|
|
|
796
868
|
|
|
797
869
|
Use the `type="number"` attribute for a numeric style input and invoke a numeric virtual keyboard on handheld devices.
|
|
798
870
|
|
|
871
|
+
This `number` input type should only be used for incremental numeric values, meaning values with decimals will be considered invalid. The `number` input type is not appropriate for values that happen to only consist of but aren't strictly speaking a number, such as postal codes in many countries or credit card numbers. See [MDN Web Docs](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/number) for more information.
|
|
872
|
+
|
|
799
873
|
<div class="exampleWrapper exampleWrapper--flex">
|
|
800
874
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/number.html) -->
|
|
801
875
|
<!-- The below content is automatically added from ../apiExamples/number.html -->
|
|
802
876
|
<auro-input required type="number">
|
|
803
|
-
<slot slot="label">
|
|
804
|
-
<slot slot="helptext">Please enter
|
|
877
|
+
<slot slot="label">Number of Passengers</slot>
|
|
878
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
805
879
|
</auro-input>
|
|
806
880
|
<auro-input bordered required type="number">
|
|
807
|
-
<slot slot="label">
|
|
808
|
-
<slot slot="helptext">Please enter
|
|
881
|
+
<slot slot="label">Number of Passengers</slot>
|
|
882
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
809
883
|
</auro-input>
|
|
810
884
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
811
885
|
</div>
|
|
@@ -816,80 +890,12 @@ Use the `type="number"` attribute for a numeric style input and invoke a numeric
|
|
|
816
890
|
|
|
817
891
|
```html
|
|
818
892
|
<auro-input required type="number">
|
|
819
|
-
<slot slot="label">
|
|
820
|
-
<slot slot="helptext">Please enter
|
|
893
|
+
<slot slot="label">Number of Passengers</slot>
|
|
894
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
821
895
|
</auro-input>
|
|
822
896
|
<auro-input bordered required type="number">
|
|
823
|
-
<slot slot="label">
|
|
824
|
-
<slot slot="helptext">Please enter
|
|
825
|
-
</auro-input>
|
|
826
|
-
```
|
|
827
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
828
|
-
</auro-accordion>
|
|
829
|
-
|
|
830
|
-
#### maxLength <a name="maxLength"></a>
|
|
831
|
-
Use the `type="number"` in combination wit the `maxlength` attribute to control the length of the number entered.
|
|
832
|
-
|
|
833
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
834
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/maxLength.html) -->
|
|
835
|
-
<!-- The below content is automatically added from ../apiExamples/maxLength.html -->
|
|
836
|
-
<auro-input required type="number" maxlength="12">
|
|
837
|
-
<slot slot="label">Account number</slot>
|
|
838
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
839
|
-
</auro-input>
|
|
840
|
-
<auro-input bordered required type="number" maxlength="12">
|
|
841
|
-
<slot slot="label">Account number</slot>
|
|
842
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
843
|
-
</auro-input>
|
|
844
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
845
|
-
</div>
|
|
846
|
-
<auro-accordion alignRight>
|
|
847
|
-
<span slot="trigger">See code</span>
|
|
848
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/maxLength.html) -->
|
|
849
|
-
<!-- The below code snippet is automatically added from ../apiExamples/maxLength.html -->
|
|
850
|
-
|
|
851
|
-
```html
|
|
852
|
-
<auro-input required type="number" maxlength="12">
|
|
853
|
-
<slot slot="label">Account number</slot>
|
|
854
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
855
|
-
</auro-input>
|
|
856
|
-
<auro-input bordered required type="number" maxlength="12">
|
|
857
|
-
<slot slot="label">Account number</slot>
|
|
858
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
859
|
-
</auro-input>
|
|
860
|
-
```
|
|
861
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
862
|
-
</auro-accordion>
|
|
863
|
-
|
|
864
|
-
#### minLength <a name="minLength"></a>
|
|
865
|
-
Use the `type="number"` in combination wit the `minlength` attribute to control the length of the number entered.
|
|
866
|
-
|
|
867
|
-
<div class="exampleWrapper exampleWrapper--flex">
|
|
868
|
-
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/minLength.html) -->
|
|
869
|
-
<!-- The below content is automatically added from ../apiExamples/minLength.html -->
|
|
870
|
-
<auro-input required type="number" minlength="1">
|
|
871
|
-
<slot slot="label">Account number</slot>
|
|
872
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
873
|
-
</auro-input>
|
|
874
|
-
<auro-input bordered required type="number" minlength="1">
|
|
875
|
-
<slot slot="label">Account number</slot>
|
|
876
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
877
|
-
</auro-input>
|
|
878
|
-
<!-- AURO-GENERATED-CONTENT:END -->
|
|
879
|
-
</div>
|
|
880
|
-
<auro-accordion alignRight>
|
|
881
|
-
<span slot="trigger">See code</span>
|
|
882
|
-
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/minLength.html) -->
|
|
883
|
-
<!-- The below code snippet is automatically added from ../apiExamples/minLength.html -->
|
|
884
|
-
|
|
885
|
-
```html
|
|
886
|
-
<auro-input required type="number" minlength="1">
|
|
887
|
-
<slot slot="label">Account number</slot>
|
|
888
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
889
|
-
</auro-input>
|
|
890
|
-
<auro-input bordered required type="number" minlength="1">
|
|
891
|
-
<slot slot="label">Account number</slot>
|
|
892
|
-
<slot slot="helptext">Please enter your 12 digit account number.</slot>
|
|
897
|
+
<slot slot="label">Number of Passengers</slot>
|
|
898
|
+
<slot slot="helptext">Please enter the number of passengers.</slot>
|
|
893
899
|
</auro-input>
|
|
894
900
|
```
|
|
895
901
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
@@ -1146,6 +1152,50 @@ Use the `type="fullYear"` attribute for a date formatted input.
|
|
|
1146
1152
|
|
|
1147
1153
|
## Additional Use Cases
|
|
1148
1154
|
|
|
1155
|
+
### Reset State
|
|
1156
|
+
|
|
1157
|
+
Use the `reset()` method to reset the `<auro-input>`'s `value` and `validity` state. Doing so will preserve all other attributes and properties.
|
|
1158
|
+
|
|
1159
|
+
<div class="exampleWrapper">
|
|
1160
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=../apiExamples/resetState.html) -->
|
|
1161
|
+
<!-- The below content is automatically added from ../apiExamples/resetState.html -->
|
|
1162
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
1163
|
+
<br /><br />
|
|
1164
|
+
<auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
|
|
1165
|
+
<slot slot="label">Full Name</slot>
|
|
1166
|
+
<slot slot="helptext">Please enter your full name.</slot>
|
|
1167
|
+
</auro-input>
|
|
1168
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1169
|
+
</div>
|
|
1170
|
+
<auro-accordion alignRight>
|
|
1171
|
+
<span slot="trigger">See code</span>
|
|
1172
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/resetState.html) -->
|
|
1173
|
+
<!-- The below code snippet is automatically added from ../apiExamples/resetState.html -->
|
|
1174
|
+
|
|
1175
|
+
```html
|
|
1176
|
+
<auro-button id="resetStateBtn">Reset</auro-button>
|
|
1177
|
+
<br /><br />
|
|
1178
|
+
<auro-input id="resetStateExample" bordered minlength="12" value="Auro Team" setCustomValidityTooShort="Please enter your full name!">
|
|
1179
|
+
<slot slot="label">Full Name</slot>
|
|
1180
|
+
<slot slot="helptext">Please enter your full name.</slot>
|
|
1181
|
+
</auro-input>
|
|
1182
|
+
```
|
|
1183
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1184
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=../apiExamples/resetState.js) -->
|
|
1185
|
+
<!-- The below code snippet is automatically added from ../apiExamples/resetState.js -->
|
|
1186
|
+
|
|
1187
|
+
```js
|
|
1188
|
+
export function resetStateExample() {
|
|
1189
|
+
const elem = document.querySelector('#resetStateExample');
|
|
1190
|
+
|
|
1191
|
+
document.querySelector('#resetStateBtn').addEventListener('click', () => {
|
|
1192
|
+
elem.reset();
|
|
1193
|
+
});
|
|
1194
|
+
}
|
|
1195
|
+
```
|
|
1196
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1197
|
+
</auro-accordion>
|
|
1198
|
+
|
|
1149
1199
|
### Swapping Values Between Inputs
|
|
1150
1200
|
|
|
1151
1201
|
Example illustrates using a JavaScript function attached to an `auro-button` component `click` event to swap the values of two `auro-input` elements. An example of this use case would be swapping the departure and arrival airports in a flight search form.
|