@aurodesignsystem/auro-formkit 1.6.0-beta.10 → 1.6.0-beta.11
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/13cf37c850bd8cf4-meta.json +1 -1
- package/.turbo/cache/141bb7d9a95e288b-meta.json +1 -0
- package/.turbo/cache/141bb7d9a95e288b.tar.zst +0 -0
- package/.turbo/cache/17259cf94d8f8925-meta.json +1 -1
- package/.turbo/cache/1c99a949ec63ab35-meta.json +1 -1
- package/.turbo/cache/257a7a26ea72dbc5-meta.json +1 -1
- package/.turbo/cache/32c0b9995fb5f8dd-meta.json +1 -0
- package/.turbo/cache/32c0b9995fb5f8dd.tar.zst +0 -0
- package/.turbo/cache/3924bce8e51f0ffa-meta.json +1 -1
- package/.turbo/cache/3ba80396ea6d6457-meta.json +1 -0
- package/.turbo/cache/3ba80396ea6d6457.tar.zst +0 -0
- package/.turbo/cache/3bf45120d0cc9bd8-meta.json +1 -1
- package/.turbo/cache/45035bf5c4147ccd-meta.json +1 -1
- package/.turbo/cache/4567487084a055b7-meta.json +1 -1
- package/.turbo/cache/4763278a7d3dbc16-meta.json +1 -1
- package/.turbo/cache/4763278a7d3dbc16.tar.zst +0 -0
- 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/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/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/a77bc920ea508bb8-meta.json +1 -1
- package/.turbo/cache/a77bc920ea508bb8.tar.zst +0 -0
- package/.turbo/cache/ac45d828a2a1fb4a-meta.json +1 -0
- package/.turbo/cache/ac45d828a2a1fb4a.tar.zst +0 -0
- package/.turbo/cache/b057e863c1b9bd7b-meta.json +1 -0
- package/.turbo/cache/b057e863c1b9bd7b.tar.zst +0 -0
- package/.turbo/cache/b54fc4f664a7a5a0-meta.json +1 -1
- 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/c1b72a92dec4fe37-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd-meta.json +1 -1
- package/.turbo/cache/caa0b4ac8d2a04dd.tar.zst +0 -0
- package/.turbo/cache/cc81de9c0b452a7c-meta.json +1 -1
- package/.turbo/cache/cd845bb6102c589a-meta.json +1 -0
- package/.turbo/cache/cd845bb6102c589a.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/e86cee22dff5e281-meta.json +1 -1
- 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/f680556a8e954eac-meta.json +1 -1
- package/.turbo/cache/f680556a8e954eac.tar.zst +0 -0
- package/.turbo/cache/fa132b5b5f0e75f8-meta.json +1 -1
- 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 +32 -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 +100 -30
- package/components/combobox/demo/index.min.js +91 -30
- 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 +90 -28
- 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 +99 -29
- package/components/datepicker/demo/index.min.js +90 -29
- 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 +90 -29
- 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/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 +51 -11
- package/components/select/demo/index.min.js +42 -11
- 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 +41 -9
- 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/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/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/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/ffec4500b911b85a-meta.json +0 -1
- package/.turbo/cache/ffec4500b911b85a.tar.zst +0 -0
|
@@ -110,6 +110,30 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
110
110
|
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
+
/**
|
|
114
|
+
* Resets the element to its initial state.
|
|
115
|
+
* @private
|
|
116
|
+
* @param {object} elem - HTML element to reset.
|
|
117
|
+
* @returns {void}
|
|
118
|
+
*/
|
|
119
|
+
reset(elem) {
|
|
120
|
+
elem.validity = undefined;
|
|
121
|
+
elem.value = undefined;
|
|
122
|
+
|
|
123
|
+
// Resets the second value of the datepicker in range state
|
|
124
|
+
if (elem.valueEnd) {
|
|
125
|
+
elem.valueEnd = undefined;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
// Resets selected option of element
|
|
129
|
+
if (elem.optionSelected) {
|
|
130
|
+
elem.optionSelected = undefined;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// Runs validation to handle error attribute
|
|
134
|
+
this.validate(elem);
|
|
135
|
+
}
|
|
136
|
+
|
|
113
137
|
/**
|
|
114
138
|
* Determines the validity state of the element based on the common attribute restrictions (pattern).
|
|
115
139
|
* @private
|
|
@@ -124,10 +148,15 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
124
148
|
elem.validity = 'badInput';
|
|
125
149
|
elem.setCustomValidity = elem.setCustomValidityBadInput || '';
|
|
126
150
|
}
|
|
127
|
-
}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
154
|
+
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
128
155
|
elem.validity = 'tooShort';
|
|
129
156
|
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
130
|
-
}
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
if (elem.value?.length > elem.maxLength) {
|
|
131
160
|
elem.validity = 'tooLong';
|
|
132
161
|
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
133
162
|
}
|
|
@@ -153,7 +182,7 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
153
182
|
elem.validity = 'tooShort';
|
|
154
183
|
elem.setCustomValidity = elem.setCustomValidityForType || '';
|
|
155
184
|
}
|
|
156
|
-
} else if (elem.type === 'number'
|
|
185
|
+
} else if (elem.type === 'number') {
|
|
157
186
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
158
187
|
elem.validity = 'rangeOverflow';
|
|
159
188
|
elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
|
|
@@ -258,14 +287,10 @@ let AuroFormValidation$1 = class AuroFormValidation {
|
|
|
258
287
|
|
|
259
288
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
260
289
|
if (elem.validity && elem.validity !== 'valid') {
|
|
261
|
-
elem.isValid = false;
|
|
262
|
-
|
|
263
290
|
// Use the validity message override if it is declared
|
|
264
291
|
if (elem.ValidityMessageOverride) {
|
|
265
292
|
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
266
293
|
}
|
|
267
|
-
} else {
|
|
268
|
-
elem.isValid = true;
|
|
269
294
|
}
|
|
270
295
|
|
|
271
296
|
this.getErrorMessage(elem);
|
|
@@ -13433,7 +13458,7 @@ const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShad
|
|
|
13433
13458
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13434
13459
|
*/class r extends b{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const s=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(s,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1);}render(){return T}}r._$litElement$=!0,r["finalized"]=!0,globalThis.litElementHydrateSupport?.({LitElement:r});const i=globalThis.litElementPolyfillSupport;i?.({LitElement:r});(globalThis.litElementVersions??=[]).push("4.1.1");
|
|
13435
13460
|
|
|
13436
|
-
var styleCss$3 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem))}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.inputElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-
|
|
13461
|
+
var styleCss$3 = i$2`*,*:before,*:after{box-sizing:border-box}@media(prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.01ms !important;animation-iteration-count:1 !important;transition-duration:.01ms !important}}*:focus-visible{outline:0}*:focus-visible{outline:0}:focus:not(:focus-visible){outline:3px solid transparent}.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock,:host{display:block}.util_displayFlex{display:flex}.util_displayHidden,:host([hidden]:not(:focus):not(:active)){display:none}.util_displayHiddenVisually,:host([hiddenVisually]:not(:focus):not(:active)){position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}.typeIcon{display:flex;flex-direction:row;align-items:center}.typeIcon [auro-icon]{--ds-auro-icon-size: var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);margin-right:var(--ds-size-100, 0.5rem)}.notificationIcons{display:flex;flex-direction:row;padding-right:var(--ds-size-100, 0.5rem)}:host([bordered]) .typeIcon{padding-left:var(--ds-size-100, 0.5rem)}:host([bordered]) .notificationIcons{align-items:center}.notification:not(:first-of-type){margin-left:var(--ds-size-100, 0.5rem)}.alertNotification{width:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-300, 1.5rem) + var(--ds-size-25, 0.125rem))}.clearBtn{width:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));height:calc(var(--ds-size-200, 1rem) + var(--ds-size-25, 0.125rem));opacity:0;pointer-events:none}:host .wrapper:hover .clearBtn,:host .wrapper:focus-within .clearBtn{opacity:1;pointer-events:auto}.passwordBtn{width:calc(var(--ds-size-300, 1.5rem));height:calc(var(--ds-size-300, 1.5rem))}.notificationBtn{display:block;width:var(--ds-size-300, 1.5rem);height:var(--ds-size-300, 1.5rem);padding:0;border:0;background:unset;cursor:pointer}.notificationBtn [auro-icon]{display:block;height:var(--ds-size-300, 1.5rem);--ds-auro-icon-size: var(--ds-size-300, 1.5rem)}.notificationBtn [auro-icon][hidden]{display:none}:host(:not([bordered])) .typeIcon,:host(:not([bordered])) .notificationIcons{align-items:flex-end;padding-bottom:var(--ds-size-50, 0.25rem)}:host(:focus-within[type=password]) .notificationIcons[hasValue] .alertNotification{overflow:hidden;width:0;height:0;padding:0;margin:0;visibility:hidden}.inputElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}input{border:unset}.wrapper{position:relative;overflow:hidden;border-style:solid}:host(:not([bordered],[borderless])) .wrapper{border-width:1px 0}:host([bordered]) .wrapper{border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}:host(:not([borderless])) .wrapper:focus-within:before{position:absolute;display:block;border-bottom-width:1px;border-bottom-style:solid;content:"";inset:0;pointer-events:none}:host([validity]:not([validity=valid])) .wrapper:before{border-bottom:0}label{position:absolute;overflow:hidden;pointer-events:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}:host(:not([bordered])) label{top:calc(100% - var(--ds-size-25, 0.125rem));transform:translateY(-100%)}:host(:not([bordered])) label.withIcon{left:var(--ds-size-400, 2rem)}:host([bordered]) label{top:50%;transform:translateY(-50%)}:host([bordered]) label.withIcon{left:var(--ds-size-500, 2.5rem)}:host([bordered]) label:not(label.withIcon){left:var(--ds-size-100, 0.5rem)}:host .wrapper:focus-within label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host label.withValue{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host([activeLabel]) .wrapper label{top:var(--ds-size-100, 0.5rem);font-size:var(--ds-text-body-size-xs, 0.75rem);transform:unset}:host{--size-lgsm: 1.875rem;--size-xlsm: 2.75rem;--size-mdxxs: 1.2rem;position:relative;display:block}.wrapper{display:flex;flex-direction:row}.main{display:flex;flex-direction:row;position:relative;flex:1}input{position:relative;overflow:hidden;min-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));max-height:calc(var(--ds-size-700, 3.5rem) + var(--ds-size-25, 0.125rem));flex:1;padding:var(--ds-size-400, 2rem) 0 var(--ds-size-50, 0.25rem);margin:0;font-family:var(--ds-font-family-default, "AS Circular", Helvetica Neue, Arial, sans-serif);font-size:var(--ds-size-200, 1rem);outline:none;text-overflow:ellipsis;transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:nowrap}input::-ms-reveal,input::-ms-clear{display:none}input::-webkit-outer-spin-button,input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none}input[type=number]{-moz-appearance:textfield;appearance:textfield}input:disabled{background:none;pointer-events:none}:host([bordered]) input{padding:var(--ds-size-400, 2rem) 0 var(--ds-size-100, 0.5rem)}`;
|
|
13437
13462
|
|
|
13438
13463
|
var colorCss$3 = i$2`.wrapper{border-color:transparent}.inputElement-helpText{color:var(--ds-auro-input-help-text-color)}input{background-color:transparent;caret-color:var(--ds-auro-input-caret-color);color:var(--ds-auro-input-text-color)}input::placeholder{color:transparent}input:focus::placeholder{color:var(--ds-auro-input-placeholder-text-color)}input:disabled{--ds-auro-input-input-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}label{color:var(--ds-auro-input-label-text-color)}:host(:not([bordered],[borderless])) .wrapper{border-bottom-color:var(--ds-auro-input-border-color)}:host([bordered]) .wrapper{border-color:var(--ds-auro-input-border-color);background-color:var(--ds-auro-input-container-color)}:host([bordered]) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host(:not([borderless])) .wrapper:focus-within{--ds-auro-input-border-color: var(--ds-color-border-ui-focus-default, #2c67b5)}:host(:not([borderless])) .wrapper:focus-within:before{border-bottom-color:transparent}:host([validity]:not([validity=valid])){--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);--ds-auro-input-help-text-color: var(--ds-color-text-error-default, #cc1816)}:host([validity]:not([validity=valid])[bordered]) .wrapper{--ds-auro-input-border-color: var(--ds-color-border-error-default, #cc1816);box-shadow:inset 0 0 0 1px var(--ds-auro-input-border-color)}:host([disabled]){--ds-auro-input-border-color: var(--ds-color-border-ui-disabled-default, #adadad);--ds-auro-input-label-text-color: var(--ds-color-text-ui-disabled-default, #adadad)}`;
|
|
13439
13464
|
|
|
@@ -15075,6 +15100,30 @@ class AuroFormValidation {
|
|
|
15075
15100
|
this.runtimeUtils = new AuroLibraryRuntimeUtils();
|
|
15076
15101
|
}
|
|
15077
15102
|
|
|
15103
|
+
/**
|
|
15104
|
+
* Resets the element to its initial state.
|
|
15105
|
+
* @private
|
|
15106
|
+
* @param {object} elem - HTML element to reset.
|
|
15107
|
+
* @returns {void}
|
|
15108
|
+
*/
|
|
15109
|
+
reset(elem) {
|
|
15110
|
+
elem.validity = undefined;
|
|
15111
|
+
elem.value = undefined;
|
|
15112
|
+
|
|
15113
|
+
// Resets the second value of the datepicker in range state
|
|
15114
|
+
if (elem.valueEnd) {
|
|
15115
|
+
elem.valueEnd = undefined;
|
|
15116
|
+
}
|
|
15117
|
+
|
|
15118
|
+
// Resets selected option of element
|
|
15119
|
+
if (elem.optionSelected) {
|
|
15120
|
+
elem.optionSelected = undefined;
|
|
15121
|
+
}
|
|
15122
|
+
|
|
15123
|
+
// Runs validation to handle error attribute
|
|
15124
|
+
this.validate(elem);
|
|
15125
|
+
}
|
|
15126
|
+
|
|
15078
15127
|
/**
|
|
15079
15128
|
* Determines the validity state of the element based on the common attribute restrictions (pattern).
|
|
15080
15129
|
* @private
|
|
@@ -15089,10 +15138,15 @@ class AuroFormValidation {
|
|
|
15089
15138
|
elem.validity = 'badInput';
|
|
15090
15139
|
elem.setCustomValidity = elem.setCustomValidityBadInput || '';
|
|
15091
15140
|
}
|
|
15092
|
-
}
|
|
15141
|
+
}
|
|
15142
|
+
|
|
15143
|
+
// Length > 0 is required to prevent the error message from showing when the input is empty
|
|
15144
|
+
if (elem.value?.length > 0 && elem.value?.length < elem.minLength) {
|
|
15093
15145
|
elem.validity = 'tooShort';
|
|
15094
15146
|
elem.setCustomValidity = elem.setCustomValidityTooShort || '';
|
|
15095
|
-
}
|
|
15147
|
+
}
|
|
15148
|
+
|
|
15149
|
+
if (elem.value?.length > elem.maxLength) {
|
|
15096
15150
|
elem.validity = 'tooLong';
|
|
15097
15151
|
elem.setCustomValidity = elem.setCustomValidityTooLong || '';
|
|
15098
15152
|
}
|
|
@@ -15118,7 +15172,7 @@ class AuroFormValidation {
|
|
|
15118
15172
|
elem.validity = 'tooShort';
|
|
15119
15173
|
elem.setCustomValidity = elem.setCustomValidityForType || '';
|
|
15120
15174
|
}
|
|
15121
|
-
} else if (elem.type === 'number'
|
|
15175
|
+
} else if (elem.type === 'number') {
|
|
15122
15176
|
if (elem.max !== undefined && Number(elem.max) < Number(elem.value)) {
|
|
15123
15177
|
elem.validity = 'rangeOverflow';
|
|
15124
15178
|
elem.setCustomValidity = elem.getAttribute('setCustomValidityRangeOverflow') || '';
|
|
@@ -15223,14 +15277,10 @@ class AuroFormValidation {
|
|
|
15223
15277
|
|
|
15224
15278
|
if (validationShouldRun || elem.hasAttribute('error')) {
|
|
15225
15279
|
if (elem.validity && elem.validity !== 'valid') {
|
|
15226
|
-
elem.isValid = false;
|
|
15227
|
-
|
|
15228
15280
|
// Use the validity message override if it is declared
|
|
15229
15281
|
if (elem.ValidityMessageOverride) {
|
|
15230
15282
|
elem.setCustomValidity = elem.ValidityMessageOverride;
|
|
15231
15283
|
}
|
|
15232
|
-
} else {
|
|
15233
|
-
elem.isValid = true;
|
|
15234
15284
|
}
|
|
15235
15285
|
|
|
15236
15286
|
this.getErrorMessage(elem);
|
|
@@ -15320,12 +15370,11 @@ class AuroFormValidation {
|
|
|
15320
15370
|
* @attr {String} helpText - Deprecated, see `slot`.
|
|
15321
15371
|
* @attr {Boolean} icon - If set, will render an icon inside the input to the left of the value. Support is limited to auro-input instances with credit card format.
|
|
15322
15372
|
* @attr {String} id - Sets the unique ID of the element.
|
|
15323
|
-
* @attr {String} isValid - (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.
|
|
15324
15373
|
* @attr {String} label - Deprecated, see `slot`.
|
|
15325
15374
|
* @attr {String} lang - defines the language of an element.
|
|
15326
|
-
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `
|
|
15375
|
+
* @attr {String} max - The maximum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15327
15376
|
* @attr {Number} maxLength - The maximum number of characters the user can enter into the text input. This must be an integer value `0` or higher.
|
|
15328
|
-
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `
|
|
15377
|
+
* @attr {String} min - The minimum value allowed. This only applies for inputs with a type of `number` and all date formats.
|
|
15329
15378
|
* @attr {Number} minLength - The minimum number of characters the user can enter into the text input. This must be an non-negative integer value smaller than or equal to the value specified by `maxlength`.
|
|
15330
15379
|
* @attr {String} name - Populates the `name` attribute on the input.
|
|
15331
15380
|
* @attr {Boolean} noValidate - If set, disables auto-validation on blur.
|
|
@@ -15365,8 +15414,6 @@ class BaseInput extends r {
|
|
|
15365
15414
|
constructor() {
|
|
15366
15415
|
super();
|
|
15367
15416
|
|
|
15368
|
-
this.isValid = false;
|
|
15369
|
-
|
|
15370
15417
|
this.icon = false;
|
|
15371
15418
|
this.disabled = false;
|
|
15372
15419
|
this.required = false;
|
|
@@ -15395,6 +15442,7 @@ class BaseInput extends r {
|
|
|
15395
15442
|
|
|
15396
15443
|
this.allowedInputTypes = [
|
|
15397
15444
|
"text",
|
|
15445
|
+
"number",
|
|
15398
15446
|
"email",
|
|
15399
15447
|
"password",
|
|
15400
15448
|
"credit-card",
|
|
@@ -15487,10 +15535,6 @@ class BaseInput extends r {
|
|
|
15487
15535
|
reflect: true
|
|
15488
15536
|
},
|
|
15489
15537
|
errorMessage: { type: String },
|
|
15490
|
-
isValid: {
|
|
15491
|
-
type: String,
|
|
15492
|
-
reflect: true
|
|
15493
|
-
},
|
|
15494
15538
|
validity: {
|
|
15495
15539
|
type: String,
|
|
15496
15540
|
reflect: true
|
|
@@ -15893,7 +15937,7 @@ class BaseInput extends r {
|
|
|
15893
15937
|
* @return {void}
|
|
15894
15938
|
*/
|
|
15895
15939
|
handleInput() {
|
|
15896
|
-
// Prevent non-
|
|
15940
|
+
// Prevent non-number characters from being entered on credit card fields.
|
|
15897
15941
|
if (this.type === 'credit-card') {
|
|
15898
15942
|
this.inputElement.value = this.inputElement.value.replace(/[\D]/gu, '');
|
|
15899
15943
|
}
|
|
@@ -15979,6 +16023,13 @@ class BaseInput extends r {
|
|
|
15979
16023
|
this.validation.validate(this);
|
|
15980
16024
|
}
|
|
15981
16025
|
|
|
16026
|
+
/**
|
|
16027
|
+
* Resets component to initial state.
|
|
16028
|
+
* @returns {void}
|
|
16029
|
+
*/
|
|
16030
|
+
reset() {
|
|
16031
|
+
this.validation.reset(this);
|
|
16032
|
+
}
|
|
15982
16033
|
|
|
15983
16034
|
/**
|
|
15984
16035
|
* Sets configuration data used elsewhere based on the `type` attribute.
|
|
@@ -17420,12 +17471,10 @@ class AuroDatePicker extends r$7 {
|
|
|
17420
17471
|
reflect: true
|
|
17421
17472
|
},
|
|
17422
17473
|
value: {
|
|
17423
|
-
type: String
|
|
17424
|
-
reflect: true
|
|
17474
|
+
type: String
|
|
17425
17475
|
},
|
|
17426
17476
|
valueEnd: {
|
|
17427
|
-
type: String
|
|
17428
|
-
reflect: true
|
|
17477
|
+
type: String
|
|
17429
17478
|
},
|
|
17430
17479
|
centralDate: {
|
|
17431
17480
|
type: String
|
|
@@ -17907,6 +17956,18 @@ class AuroDatePicker extends r$7 {
|
|
|
17907
17956
|
this.dispatchEvent(new CustomEvent('auroDatePicker-newSlotContent'));
|
|
17908
17957
|
}
|
|
17909
17958
|
|
|
17959
|
+
/**
|
|
17960
|
+
* Resets component to initial state.
|
|
17961
|
+
* @returns {void}
|
|
17962
|
+
*/
|
|
17963
|
+
reset() {
|
|
17964
|
+
this.inputList.forEach((input) => {
|
|
17965
|
+
input.reset();
|
|
17966
|
+
});
|
|
17967
|
+
|
|
17968
|
+
this.validation.reset(this);
|
|
17969
|
+
}
|
|
17970
|
+
|
|
17910
17971
|
updated(changedProperties) {
|
|
17911
17972
|
if (changedProperties.has('calendarFocusDate')) {
|
|
17912
17973
|
this.handleFocusDateChange();
|
|
@@ -202,12 +202,10 @@ export class AuroDatePicker extends LitElement {
|
|
|
202
202
|
reflect: true
|
|
203
203
|
},
|
|
204
204
|
value: {
|
|
205
|
-
type: String
|
|
206
|
-
reflect: true
|
|
205
|
+
type: String
|
|
207
206
|
},
|
|
208
207
|
valueEnd: {
|
|
209
|
-
type: String
|
|
210
|
-
reflect: true
|
|
208
|
+
type: String
|
|
211
209
|
},
|
|
212
210
|
centralDate: {
|
|
213
211
|
type: String
|
|
@@ -689,6 +687,18 @@ export class AuroDatePicker extends LitElement {
|
|
|
689
687
|
this.dispatchEvent(new CustomEvent('auroDatePicker-newSlotContent'));
|
|
690
688
|
}
|
|
691
689
|
|
|
690
|
+
/**
|
|
691
|
+
* Resets component to initial state.
|
|
692
|
+
* @returns {void}
|
|
693
|
+
*/
|
|
694
|
+
reset() {
|
|
695
|
+
this.inputList.forEach((input) => {
|
|
696
|
+
input.reset();
|
|
697
|
+
});
|
|
698
|
+
|
|
699
|
+
this.validation.reset(this);
|
|
700
|
+
}
|
|
701
|
+
|
|
692
702
|
updated(changedProperties) {
|
|
693
703
|
if (changedProperties.has('calendarFocusDate')) {
|
|
694
704
|
this.handleFocusDateChange();
|
|
@@ -90,13 +90,13 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
90
90
|
|
|
91
91
|
[36m
|
|
92
92
|
[1m./src/index.js[22m → [1mdist[22m...[39m
|
|
93
|
-
[32mcreated [1mdist[22m in [
|
|
93
|
+
[32mcreated [1mdist[22m in [1m1.1s[22m[39m
|
|
94
94
|
[36m
|
|
95
95
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
96
|
-
[32mcreated [1m./demo/[22m in [
|
|
96
|
+
[32mcreated [1m./demo/[22m in [1m862ms[22m[39m
|
|
97
97
|
[36m
|
|
98
98
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
99
|
-
[32mcreated [1m./demo/[22m in [
|
|
99
|
+
[32mcreated [1m./demo/[22m in [1m632ms[22m[39m
|
|
100
100
|
|
|
101
101
|
> @auro-formkit/auro-dropdown@3.0.0 build:docs
|
|
102
102
|
> wca analyze 'scripts/wca/*.js' --outFiles docs/api.md; node ../../packages/build-tools/src/docProcessor.mjs --component dropdown
|
|
@@ -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 [1m718ms[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 [1m724ms[22m[39m
|
|
@@ -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 [1m430ms[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 [1m209ms[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 [1m140ms[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 [1m608ms[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 [1m285ms[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 [1m225ms[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.4s[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 [1m865ms[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 [1m769ms[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.5s[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 [1m895ms[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 [1m681ms[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
|