@aurodesignsystem/auro-formkit 2.0.0-beta.33 → 2.0.0-beta.34
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/08582d94197f10ee-meta.json +1 -0
- package/.turbo/cache/08582d94197f10ee.tar.zst +0 -0
- package/.turbo/cache/103d2a28d83aecaa-meta.json +1 -0
- package/.turbo/cache/103d2a28d83aecaa.tar.zst +0 -0
- package/.turbo/cache/19fbb16e12ecafea-meta.json +1 -0
- package/.turbo/cache/1d4280429ff4222f-meta.json +1 -1
- package/.turbo/cache/1e094164b4932553-meta.json +1 -1
- package/.turbo/cache/23362f9e97bfb2aa-meta.json +1 -0
- package/.turbo/cache/23362f9e97bfb2aa.tar.zst +0 -0
- package/.turbo/cache/251ba344c6338ba3-meta.json +1 -1
- package/.turbo/cache/27b0d0b95232015d-meta.json +1 -0
- package/.turbo/cache/27b0d0b95232015d.tar.zst +0 -0
- package/.turbo/cache/28fe2121c9ba81e2-meta.json +1 -1
- package/.turbo/cache/298b6ff0272e6226-meta.json +1 -1
- package/.turbo/cache/2abb5400a01a1694-meta.json +1 -1
- package/.turbo/cache/3058929eb73309e5-meta.json +1 -0
- package/.turbo/cache/30fda91ef83677e4-meta.json +1 -1
- package/.turbo/cache/3221d91a94756c26-meta.json +1 -1
- package/.turbo/cache/3ab09fe7cf32b3bf-meta.json +1 -1
- package/.turbo/cache/3e7c2d508c29564b-meta.json +1 -0
- package/.turbo/cache/3e7c2d508c29564b.tar.zst +0 -0
- package/.turbo/cache/3f1b3db13386acdc-meta.json +1 -1
- package/.turbo/cache/430c124614841675-meta.json +1 -1
- package/.turbo/cache/457a9f56f941d179-meta.json +1 -0
- package/.turbo/cache/457a9f56f941d179.tar.zst +0 -0
- package/.turbo/cache/45bdeb0396723b25-meta.json +1 -1
- package/.turbo/cache/4e8248fc9e1e3e8f-meta.json +1 -1
- package/.turbo/cache/4e8248fc9e1e3e8f.tar.zst +0 -0
- package/.turbo/cache/4e9c9a5dd62c50a4-meta.json +1 -1
- package/.turbo/cache/4f5f322655310502-meta.json +1 -0
- package/.turbo/cache/4f5f322655310502.tar.zst +0 -0
- package/.turbo/cache/5326b73ddda05291-meta.json +1 -1
- package/.turbo/cache/5a9a22bec5b85071-meta.json +1 -0
- package/.turbo/cache/5fc9a7a072827b7b-meta.json +1 -1
- package/.turbo/cache/636856e9513dd881-meta.json +1 -0
- package/.turbo/cache/{bed01678759af66e.tar.zst → 636856e9513dd881.tar.zst} +0 -0
- package/.turbo/cache/64124d335f246ad4-meta.json +1 -0
- package/.turbo/cache/64124d335f246ad4.tar.zst +0 -0
- package/.turbo/cache/6e0b3da6e3ff3718-meta.json +1 -1
- package/.turbo/cache/753b119a389426be-meta.json +1 -1
- package/.turbo/cache/785960dbbde053b6-meta.json +1 -1
- package/.turbo/cache/82a9f389dc683578-meta.json +1 -0
- package/.turbo/cache/82a9f389dc683578.tar.zst +0 -0
- package/.turbo/cache/838d169577bdd409-meta.json +1 -0
- package/.turbo/cache/838d169577bdd409.tar.zst +0 -0
- package/.turbo/cache/88f0204c4fde872f-meta.json +1 -0
- package/.turbo/cache/{0899fc2ef909db30.tar.zst → 88f0204c4fde872f.tar.zst} +0 -0
- package/.turbo/cache/8d64907e7ce80f3e-meta.json +1 -0
- package/.turbo/cache/8d64907e7ce80f3e.tar.zst +0 -0
- package/.turbo/cache/a57b56e1d77cb964-meta.json +1 -0
- package/.turbo/cache/{76667a5d27a45c7a.tar.zst → a57b56e1d77cb964.tar.zst} +0 -0
- package/.turbo/cache/a60bcc111612dda1-meta.json +1 -0
- package/.turbo/cache/a60bcc111612dda1.tar.zst +0 -0
- package/.turbo/cache/a8889572165c9122-meta.json +1 -0
- package/.turbo/cache/a8889572165c9122.tar.zst +0 -0
- package/.turbo/cache/b0b5e4ac676e8308-meta.json +1 -0
- package/.turbo/cache/b169402fda42f218-meta.json +1 -1
- package/.turbo/cache/b169402fda42f218.tar.zst +0 -0
- package/.turbo/cache/b7c4f3a43e3ac43b-meta.json +1 -0
- package/.turbo/cache/b7c4f3a43e3ac43b.tar.zst +0 -0
- package/.turbo/cache/bf3d1eace5e676f9-meta.json +1 -1
- package/.turbo/cache/ca9625ba0a5cd272-meta.json +1 -1
- package/.turbo/cache/cbcd9db8ac9a2d52-meta.json +1 -1
- package/.turbo/cache/d3afdb9a7db9eacc-meta.json +1 -1
- package/.turbo/cache/d8ecdff9c663c38e-meta.json +1 -1
- package/.turbo/cache/de494df6a3006101-meta.json +1 -1
- package/.turbo/cache/e04489ada7560903-meta.json +1 -0
- package/.turbo/cache/{f93a33e9c99af8e4.tar.zst → e04489ada7560903.tar.zst} +0 -0
- package/.turbo/cache/e56a9865641ec3e8-meta.json +1 -1
- package/.turbo/cache/e7ed9e7056d80938-meta.json +1 -1
- package/.turbo/cache/e837827cd24834c4-meta.json +1 -1
- package/.turbo/cache/e9ff93179777aa26-meta.json +1 -1
- package/.turbo/cache/f2e689c8cdd1aafe-meta.json +1 -1
- package/.turbo/cache/f7ab9a13f9acc0ab-meta.json +1 -1
- package/.turbo/cache/ff3c8a3042cab66e-meta.json +1 -1
- package/CHANGELOG.md +21 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/README.md +1 -1
- package/components/combobox/.turbo/turbo-build.log +1 -1
- package/components/combobox/README.md +4 -4
- package/components/combobox/demo/api.min.js +10 -1
- package/components/combobox/demo/index.min.js +10 -1
- package/components/combobox/dist/index.js +10 -1
- package/components/counter/.turbo/turbo-build.log +2 -2
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +169 -55
- package/components/counter/demo/index.min.js +169 -55
- package/components/counter/dist/auro-counter-group.d.ts +15 -3
- package/components/counter/dist/auro-counter-group.d.ts.map +1 -1
- package/components/counter/dist/auro-counter.d.ts +16 -7
- package/components/counter/dist/auro-counter.d.ts.map +1 -1
- package/components/counter/dist/index.js +169 -55
- package/components/counter/src/auro-counter-group.js +75 -8
- package/components/counter/src/auro-counter.js +80 -40
- package/components/counter/src/styles/color-css.js +1 -1
- package/components/counter/src/styles/color.css +4 -0
- package/components/counter/src/styles/color.scss +6 -1
- package/components/counter/src/styles/counter-button-color-css.js +1 -1
- package/components/counter/src/styles/counter-button-color.css +0 -3
- package/components/counter/src/styles/counter-button-color.scss +0 -6
- package/components/counter/src/styles/counter-button-css.js +1 -1
- package/components/counter/src/styles/counter-button-tokens-css.js +1 -1
- package/components/counter/src/styles/counter-button-tokens.css +0 -1
- package/components/counter/src/styles/counter-button-tokens.scss +1 -2
- package/components/counter/src/styles/counter-button.css +1 -3
- package/components/counter/src/styles/counter-button.scss +2 -4
- package/components/counter/src/styles/counter-wrapper.scss +1 -1
- package/components/counter/src/styles/style-css.js +1 -1
- package/components/counter/src/styles/style.css +6 -0
- package/components/counter/src/styles/style.scss +7 -0
- package/components/counter/src/styles/tokens-css.js +1 -1
- package/components/counter/src/styles/tokens.css +1 -0
- package/components/counter/src/styles/tokens.scss +2 -1
- package/components/datepicker/.turbo/turbo-build.log +1 -1
- package/components/datepicker/README.md +4 -4
- package/components/datepicker/demo/api.min.js +10 -1
- package/components/datepicker/demo/index.min.js +10 -1
- package/components/datepicker/dist/index.js +10 -1
- package/components/dropdown/.turbo/turbo-build.log +2 -2
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.min.js +10 -1
- package/components/dropdown/demo/index.min.js +10 -1
- package/components/dropdown/dist/auro-dropdown.d.ts +1 -1
- package/components/dropdown/dist/auro-dropdown.d.ts.map +1 -1
- package/components/dropdown/dist/index.js +10 -1
- package/components/dropdown/src/auro-dropdown.js +11 -3
- package/components/form/.turbo/turbo-build.log +3 -3
- package/components/form/.turbo/turbo-bundler.log +3 -3
- package/components/form/README.md +1 -1
- package/components/helptext/.turbo/turbo-build.log +1 -1
- package/components/helptext/.turbo/turbo-bundler.log +1 -1
- package/components/input/.turbo/turbo-build.log +3 -3
- package/components/input/README.md +1 -1
- package/components/menu/.turbo/turbo-build.log +3 -3
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/README.md +1 -1
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/README.md +1 -1
- package/components/select/.turbo/turbo-build.log +2 -2
- package/components/select/README.md +3 -3
- package/components/select/demo/api.min.js +10 -1
- package/components/select/demo/index.min.js +10 -1
- package/components/select/dist/index.js +10 -1
- package/package.json +1 -1
- package/.turbo/cache/02882630667e46f8-meta.json +0 -1
- package/.turbo/cache/02882630667e46f8.tar.zst +0 -0
- package/.turbo/cache/0899fc2ef909db30-meta.json +0 -1
- package/.turbo/cache/1e3f844e58a3d4f2-meta.json +0 -1
- package/.turbo/cache/1e3f844e58a3d4f2.tar.zst +0 -0
- package/.turbo/cache/317b33937a355f80-meta.json +0 -1
- package/.turbo/cache/317b33937a355f80.tar.zst +0 -0
- package/.turbo/cache/3c795c4f80600a07-meta.json +0 -1
- package/.turbo/cache/62214e9883afcc4d-meta.json +0 -1
- package/.turbo/cache/62214e9883afcc4d.tar.zst +0 -0
- package/.turbo/cache/721262daa6b8164a-meta.json +0 -1
- package/.turbo/cache/721262daa6b8164a.tar.zst +0 -0
- package/.turbo/cache/7593109ea54e7505-meta.json +0 -1
- package/.turbo/cache/7629bef0037115af-meta.json +0 -1
- package/.turbo/cache/76667a5d27a45c7a-meta.json +0 -1
- package/.turbo/cache/92b4b6ba93458685-meta.json +0 -1
- package/.turbo/cache/92b4b6ba93458685.tar.zst +0 -0
- package/.turbo/cache/9c15f2276d1905d6-meta.json +0 -1
- package/.turbo/cache/9c15f2276d1905d6.tar.zst +0 -0
- package/.turbo/cache/a263932c5b42ec4f-meta.json +0 -1
- package/.turbo/cache/a263932c5b42ec4f.tar.zst +0 -0
- package/.turbo/cache/b10915c26145587e-meta.json +0 -1
- package/.turbo/cache/b10915c26145587e.tar.zst +0 -0
- package/.turbo/cache/b32a99cd28bc1388-meta.json +0 -1
- package/.turbo/cache/bed01678759af66e-meta.json +0 -1
- package/.turbo/cache/bf154f26b6bb6f24-meta.json +0 -1
- package/.turbo/cache/bf154f26b6bb6f24.tar.zst +0 -0
- package/.turbo/cache/c103542625831d7c-meta.json +0 -1
- package/.turbo/cache/c103542625831d7c.tar.zst +0 -0
- package/.turbo/cache/c860cecd25be20af-meta.json +0 -1
- package/.turbo/cache/c860cecd25be20af.tar.zst +0 -0
- package/.turbo/cache/ed455be2856be7ac-meta.json +0 -1
- package/.turbo/cache/ed455be2856be7ac.tar.zst +0 -0
- package/.turbo/cache/f473f3d9902768db-meta.json +0 -1
- package/.turbo/cache/f473f3d9902768db.tar.zst +0 -0
- package/.turbo/cache/f93a33e9c99af8e4-meta.json +0 -1
- /package/.turbo/cache/{b32a99cd28bc1388.tar.zst → 19fbb16e12ecafea.tar.zst} +0 -0
- /package/.turbo/cache/{7629bef0037115af.tar.zst → 3058929eb73309e5.tar.zst} +0 -0
- /package/.turbo/cache/{7593109ea54e7505.tar.zst → 5a9a22bec5b85071.tar.zst} +0 -0
- /package/.turbo/cache/{3c795c4f80600a07.tar.zst → b0b5e4ac676e8308.tar.zst} +0 -0
|
@@ -37,6 +37,7 @@ export class AuroCounter extends LitElement {
|
|
|
37
37
|
constructor() {
|
|
38
38
|
super();
|
|
39
39
|
|
|
40
|
+
this.defaultSlot = undefined;
|
|
40
41
|
this.disabled = false;
|
|
41
42
|
this.disableMax = false;
|
|
42
43
|
this.disableMin = false;
|
|
@@ -62,6 +63,25 @@ export class AuroCounter extends LitElement {
|
|
|
62
63
|
* @type {string}
|
|
63
64
|
*/
|
|
64
65
|
this.iconTag = versioning.generateTag("auro-icon", iconVersion, AuroIcon);
|
|
66
|
+
|
|
67
|
+
/**
|
|
68
|
+
* @private
|
|
69
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
70
|
+
*/
|
|
71
|
+
this.constructor.shadowRootOptions = {
|
|
72
|
+
...LitElement.shadowRootOptions,
|
|
73
|
+
delegatesFocus: true,
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
connectedCallback() {
|
|
78
|
+
super.connectedCallback();
|
|
79
|
+
this.addEventListener('keydown', this.handleKeyDown);
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
disconnectedCallback() {
|
|
83
|
+
this.removeEventListener('keydown', this.handleKeyDown);
|
|
84
|
+
super.disconnectedCallback();
|
|
65
85
|
}
|
|
66
86
|
|
|
67
87
|
/**
|
|
@@ -71,6 +91,15 @@ export class AuroCounter extends LitElement {
|
|
|
71
91
|
static get properties() {
|
|
72
92
|
return {
|
|
73
93
|
|
|
94
|
+
/**
|
|
95
|
+
* The default slot content.
|
|
96
|
+
* @type {string}
|
|
97
|
+
* @private
|
|
98
|
+
*/
|
|
99
|
+
defaultSlot: {
|
|
100
|
+
type: String,
|
|
101
|
+
},
|
|
102
|
+
|
|
74
103
|
/**
|
|
75
104
|
* Indicates if the counter is disabled.
|
|
76
105
|
*/
|
|
@@ -153,7 +182,7 @@ export class AuroCounter extends LitElement {
|
|
|
153
182
|
* @returns {void}
|
|
154
183
|
*/
|
|
155
184
|
increment(value) {
|
|
156
|
-
if (this.disabled) {
|
|
185
|
+
if (this.disabled || this.disableMax || this.value >= this.max) {
|
|
157
186
|
return;
|
|
158
187
|
}
|
|
159
188
|
|
|
@@ -167,7 +196,7 @@ export class AuroCounter extends LitElement {
|
|
|
167
196
|
* @returns {void}
|
|
168
197
|
*/
|
|
169
198
|
decrement(value) {
|
|
170
|
-
if (this.disabled) {
|
|
199
|
+
if (this.disabled || this.disableMin || this.value <= this.min) {
|
|
171
200
|
return;
|
|
172
201
|
}
|
|
173
202
|
|
|
@@ -205,19 +234,6 @@ export class AuroCounter extends LitElement {
|
|
|
205
234
|
return true;
|
|
206
235
|
}
|
|
207
236
|
|
|
208
|
-
/**
|
|
209
|
-
* Moves the focus to the first enabled button within the shadow DOM.
|
|
210
|
-
* This method searches for the first `auro-counter-button` element that is not disabled
|
|
211
|
-
* and sets the focus on it.
|
|
212
|
-
* @private
|
|
213
|
-
*/
|
|
214
|
-
jumpFocusToEnabled() {
|
|
215
|
-
const button = this.shadowRoot.querySelector("auro-counter-button:not([disabled])");
|
|
216
|
-
if (button && button instanceof HTMLButtonElement) {
|
|
217
|
-
button.focus();
|
|
218
|
-
}
|
|
219
|
-
}
|
|
220
|
-
|
|
221
237
|
/**
|
|
222
238
|
* Validates value.
|
|
223
239
|
* @param {boolean} [force=false] - Whether to force validation.
|
|
@@ -226,11 +242,49 @@ export class AuroCounter extends LitElement {
|
|
|
226
242
|
this.validation.validate(this, force);
|
|
227
243
|
}
|
|
228
244
|
|
|
245
|
+
/**
|
|
246
|
+
* Handles the keydown event for the counter component.
|
|
247
|
+
* @param {KeyboardEvent} event - The keyboard event object.
|
|
248
|
+
* @returns {void}
|
|
249
|
+
* @private
|
|
250
|
+
*/
|
|
251
|
+
handleKeyDown(event) {
|
|
252
|
+
if (this.disabled) {
|
|
253
|
+
return;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
switch (event.key) {
|
|
257
|
+
case 'ArrowUp':
|
|
258
|
+
event.preventDefault();
|
|
259
|
+
this.increment();
|
|
260
|
+
break;
|
|
261
|
+
case 'ArrowDown':
|
|
262
|
+
event.preventDefault();
|
|
263
|
+
this.decrement();
|
|
264
|
+
break;
|
|
265
|
+
default:
|
|
266
|
+
break;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
229
269
|
|
|
230
270
|
firstUpdated() {
|
|
231
271
|
this.initValue();
|
|
232
272
|
}
|
|
233
273
|
|
|
274
|
+
/**
|
|
275
|
+
* Handles the change event for the default slot.
|
|
276
|
+
* Updates the defaultSlot property with the trimmed text content of the first assigned node.
|
|
277
|
+
*
|
|
278
|
+
* @param {Event} event - The event object representing the slot change event.
|
|
279
|
+
* @private
|
|
280
|
+
*/
|
|
281
|
+
onDefaultSlotChange(event) {
|
|
282
|
+
const assignedNodes = event.target.assignedNodes();
|
|
283
|
+
if (assignedNodes.length > 0) {
|
|
284
|
+
this.defaultSlot = assignedNodes[0].textContent.trim();
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
234
288
|
updated(changedProperties) {
|
|
235
289
|
if (changedProperties.has("value")) {
|
|
236
290
|
this.validate();
|
|
@@ -241,42 +295,25 @@ export class AuroCounter extends LitElement {
|
|
|
241
295
|
},
|
|
242
296
|
}),
|
|
243
297
|
{
|
|
244
|
-
|
|
245
|
-
|
|
298
|
+
bubbles: true,
|
|
299
|
+
composed: true,
|
|
246
300
|
}
|
|
247
301
|
);
|
|
248
|
-
|
|
249
|
-
if (
|
|
250
|
-
this.value === this.max ||
|
|
251
|
-
this.value === this.min ||
|
|
252
|
-
changedProperties.get("disableMax") ||
|
|
253
|
-
changedProperties.get("disableMin")
|
|
254
|
-
) {
|
|
255
|
-
this.jumpFocusToEnabled();
|
|
256
|
-
}
|
|
257
|
-
}
|
|
258
|
-
/* eslint-disable no-extra-parens */
|
|
259
|
-
if (
|
|
260
|
-
(changedProperties.has("disableMax") &&
|
|
261
|
-
changedProperties.get("disableMax") !== undefined) ||
|
|
262
|
-
(changedProperties.has("disableMin") &&
|
|
263
|
-
changedProperties.get("disableMin") !== undefined)
|
|
264
|
-
) {
|
|
265
|
-
this.jumpFocusToEnabled();
|
|
266
302
|
}
|
|
267
|
-
/* eslint-enable no-extra-parens */
|
|
268
303
|
}
|
|
269
304
|
|
|
270
305
|
render() {
|
|
271
306
|
return html`
|
|
272
307
|
<div class="counter">
|
|
273
308
|
<div class="content" >
|
|
274
|
-
<label class="label"><slot></slot></label>
|
|
275
|
-
<slot name="description"></slot>
|
|
309
|
+
<label id="counter-label" class="label"><slot @slotchange="${this.onDefaultSlotChange}" ></slot></label>
|
|
310
|
+
<slot id="counter-description" name="description"></slot>
|
|
276
311
|
</div>
|
|
277
|
-
|
|
278
|
-
<div part="counterControl">
|
|
312
|
+
<div part="counterControl" aria-labelledby="counter-label" aria-describedby="counter-description" tabindex="${this.disabled ? '-1' : '0'}" role="spinbutton" aria-valuemin="${this.min}" aria-valuemax="${this.max}" aria-valuenow="${this.value}">
|
|
279
313
|
<auro-counter-button
|
|
314
|
+
aria-hidden="true"
|
|
315
|
+
iconOnly
|
|
316
|
+
tabindex="-1"
|
|
280
317
|
part="controlMinus"
|
|
281
318
|
@click="${() => this.decrement()}"
|
|
282
319
|
?disabled="${this.disabled || this.disableMin || this.isIncrementDisabled(this.min)}"
|
|
@@ -289,6 +326,9 @@ export class AuroCounter extends LitElement {
|
|
|
289
326
|
</div>
|
|
290
327
|
|
|
291
328
|
<auro-counter-button
|
|
329
|
+
aria-hidden="true"
|
|
330
|
+
iconOnly
|
|
331
|
+
tabindex="-1"
|
|
292
332
|
part="controlPlus"
|
|
293
333
|
@click="${() => this.increment()}"
|
|
294
334
|
?disabled="${this.disabled || this.disableMax || this.isIncrementDisabled(this.max)}"
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`.counter{color:var(--ds-auro-counter-text-default)}[name=description]::slotted(*){color:var(--ds-auro-counter-text-secondary)}.controlIcon{color:var(--ds-auro-counter-icon-color-default)}.quantityWrapper{background-color:var(--ds-auro-counter-control-ui-bkg)}[disabled] .controlIcon,:host([disabled]) .controlIcon{color:var(--ds-auro-counter-control-ui-disabled)}[disabled] label,[disabled] [name=description]::slotted(*),[disabled]::part(counterControl),:host([disabled]) label,:host([disabled]) [name=description]::slotted(*),:host([disabled])::part(counterControl){color:var(--ds-auro-counter-text-disabled)}`;
|
|
2
|
+
export default css`.counter{color:var(--ds-auro-counter-text-default)}[name=description]::slotted(*){color:var(--ds-auro-counter-text-secondary)}.controlIcon{color:var(--ds-auro-counter-icon-color-default)}.quantityWrapper{background-color:var(--ds-auro-counter-control-ui-bkg)}::part(counterControl):focus-visible{outline-color:var(--ds-auro-counter-control-border-active)}[disabled] .controlIcon,:host([disabled]) .controlIcon{color:var(--ds-auro-counter-control-ui-disabled)}[disabled] label,[disabled] [name=description]::slotted(*),[disabled]::part(counterControl),:host([disabled]) label,:host([disabled]) [name=description]::slotted(*),:host([disabled])::part(counterControl){color:var(--ds-auro-counter-text-disabled)}`;
|
|
@@ -15,6 +15,10 @@
|
|
|
15
15
|
background-color: var(--ds-auro-counter-control-ui-bkg);
|
|
16
16
|
}
|
|
17
17
|
|
|
18
|
+
::part(counterControl):focus-visible {
|
|
19
|
+
outline-color: var(--ds-auro-counter-control-border-active);
|
|
20
|
+
}
|
|
21
|
+
|
|
18
22
|
[disabled] .controlIcon, :host([disabled]) .controlIcon {
|
|
19
23
|
color: var(--ds-auro-counter-control-ui-disabled);
|
|
20
24
|
}
|
|
@@ -22,7 +22,6 @@
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
26
25
|
.controlIcon {
|
|
27
26
|
color: var(--ds-auro-counter-icon-color-default);
|
|
28
27
|
}
|
|
@@ -31,6 +30,12 @@
|
|
|
31
30
|
background-color: var(--ds-auro-counter-control-ui-bkg);
|
|
32
31
|
}
|
|
33
32
|
|
|
33
|
+
::part(counterControl) {
|
|
34
|
+
&:focus-visible {
|
|
35
|
+
outline-color: var(--ds-auro-counter-control-border-active);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
|
|
34
39
|
[disabled], :host([disabled]) {
|
|
35
40
|
.controlIcon {
|
|
36
41
|
color: var(--ds-auro-counter-control-ui-disabled);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-ui-bkg);color:var(--ds-auro-button-text-color);-webkit-tap-highlight-color:var(--ds-auro-button-tap-color)}
|
|
2
|
+
export default css`.auroButton{border-color:unset;background-color:var(--ds-auro-counter-control-ui-bkg);color:var(--ds-auro-button-text-color);-webkit-tap-highlight-color:var(--ds-auro-button-tap-color)}@media(hover: hover){.auroButton:active:not(:disabled),.auroButton:hover:not(:disabled){background-color:var(--ds-auro-counter-control-ui-hover)}}`;
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
color: var(--ds-auro-button-text-color);
|
|
5
5
|
-webkit-tap-highlight-color: var(--ds-auro-button-tap-color);
|
|
6
6
|
}
|
|
7
|
-
.auroButton:focus-visible:not(.auroButton:focus-visible:disabled) {
|
|
8
|
-
outline-color: var(--ds-auro-counter-control-border-active);
|
|
9
|
-
}
|
|
10
7
|
@media (hover: hover) {
|
|
11
8
|
.auroButton:active:not(:disabled), .auroButton:hover:not(:disabled) {
|
|
12
9
|
background-color: var(--ds-auro-counter-control-ui-hover);
|
|
@@ -13,12 +13,6 @@
|
|
|
13
13
|
color: var(--ds-auro-button-text-color);
|
|
14
14
|
-webkit-tap-highlight-color: var(--ds-auro-button-tap-color);
|
|
15
15
|
|
|
16
|
-
&:focus-visible {
|
|
17
|
-
&:not(&:disabled) {
|
|
18
|
-
outline-color: var(--ds-auro-counter-control-border-active);
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
|
|
22
16
|
@media (hover: hover) {
|
|
23
17
|
&:active, &:hover{
|
|
24
18
|
&:not(:disabled) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`*,*: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_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.contentWrapper{display:flex;align-items:center}.contentWrapper span{display:block;height:var(--ds-size-300, 1.5rem)}.auroButton{position:relative;display:inline-flex;overflow:visible;width:calc(var(--ds-size-50, 0.25rem) + var(--ds-size-400, 2rem));height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));flex-direction:row;align-items:center;justify-content:center;padding:var(--ds-auro-counter-control-padding);border:none;border-radius:var(--ds-auro-counter-control-border-radius);margin:0;cursor:pointer;gap:var(--ds-size-100, 0.5rem);line-height:unset;-webkit-touch-callout:none;user-select:none;white-space:nowrap}.auroButton:active .contentWrapper{transform:scale(0.95)}.auroButton:disabled{cursor:not-allowed;transform:unset}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline
|
|
2
|
+
export default css`*,*: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_insetNone{padding:0}.util_insetXxxs{padding:.125rem}.util_insetXxxs--stretch{padding:.25rem .125rem}.util_insetXxxs--squish{padding:0 .125rem}.util_insetXxs{padding:.25rem}.util_insetXxs--stretch{padding:.375rem .25rem}.util_insetXxs--squish{padding:.125rem .25rem}.util_insetXs{padding:.5rem}.util_insetXs--stretch{padding:.75rem .5rem}.util_insetXs--squish{padding:.25rem .5rem}.util_insetSm{padding:.75rem}.util_insetSm--stretch{padding:1.125rem .75rem}.util_insetSm--squish{padding:.375rem .75rem}.util_insetMd{padding:1rem}.util_insetMd--stretch{padding:1.5rem 1rem}.util_insetMd--squish{padding:.5rem 1rem}.util_insetLg{padding:1.5rem}.util_insetLg--stretch{padding:2.25rem 1.5rem}.util_insetLg--squish{padding:.75rem 1.5rem}.util_insetXl{padding:2rem}.util_insetXl--stretch{padding:3rem 2rem}.util_insetXl--squish{padding:1rem 2rem}.util_insetXxl{padding:3rem}.util_insetXxl--stretch{padding:4.5rem 3rem}.util_insetXxl--squish{padding:1.5rem 3rem}.util_insetXxxl{padding:4rem}.util_insetXxxl--stretch{padding:6rem 4rem}.util_insetXxxl--squish{padding:2rem 4rem}::slotted(svg){vertical-align:middle}slot{pointer-events:none}.contentWrapper{display:flex;align-items:center}.contentWrapper span{display:block;height:var(--ds-size-300, 1.5rem)}.auroButton{position:relative;display:inline-flex;overflow:visible;width:calc(var(--ds-size-50, 0.25rem) + var(--ds-size-400, 2rem));height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));flex-direction:row;align-items:center;justify-content:center;padding:var(--ds-auro-counter-control-padding);border:none;border-radius:var(--ds-auro-counter-control-border-radius);margin:0;cursor:pointer;gap:var(--ds-size-100, 0.5rem);line-height:unset;-webkit-touch-callout:none;user-select:none;white-space:nowrap}.auroButton:active .contentWrapper{transform:scale(0.95)}.auroButton:disabled{cursor:not-allowed;transform:unset}.auroButton:focus-visible:not(.auroButton:focus-visible:disabled){outline:none;transform:unset}`;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`:host{--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-border-
|
|
2
|
+
export default css`:host{--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-border-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03))}`;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
:host {
|
|
2
2
|
--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));
|
|
3
3
|
--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);
|
|
4
|
-
--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #0074c8);
|
|
5
4
|
--ds-auro-counter-control-border-hover: var(--ds-color-ui-bkg-hover-default, rgba(0, 0, 0, 0.06));
|
|
6
5
|
--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));
|
|
7
6
|
}
|
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
:host {
|
|
4
4
|
--ds-auro-counter-control-ui-hover: var(--ds-color-ui-bkg-hover-default, #{$ds-color-ui-bkg-hover-default});
|
|
5
5
|
--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #{$ds-color-ui-active-default});
|
|
6
|
-
--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #{$ds-color-border-active-default});
|
|
7
6
|
--ds-auro-counter-control-border-hover: var(--ds-color-ui-bkg-hover-default, #{$ds-color-ui-bkg-hover-default});
|
|
8
7
|
--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, #{$ds-color-ui-bkg-default-default});
|
|
9
|
-
}
|
|
8
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;line-height:0}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
|
|
2
|
+
export default css`.counter{display:flex;align-items:center;justify-content:space-between;column-gap:var(--ds-size-150, 0.75rem)}.content{display:flex;flex-flow:column}[name=description]::slotted(*){display:block;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-size-200, 1rem)}.quantityWrapper{width:var(--ds-size-400, 2rem);height:calc(var(--ds-size-25, 0.125rem) + var(--ds-size-400, 2rem));align-content:center;cursor:default;font-size:var(--ds-size-250, 1.25rem);text-align:center}:host{position:relative}:host::part(counterControl){display:flex;border-radius:var(--ds-size-500, 2.5rem);line-height:0}:host::part(counterControl):focus-visible{outline-offset:0;outline-style:solid;outline-width:var(--ds-size-25, 0.125rem)}:host::part(controlMinus){--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem)}:host::part(controlPlus){--ds-auro-counter-control-border-radius: 0 var(--ds-size-500, 2.5rem) var(--ds-size-500, 2.5rem) 0;--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem)}auro-counter-button{display:flex}`;
|
|
@@ -30,8 +30,14 @@
|
|
|
30
30
|
}
|
|
31
31
|
:host::part(counterControl) {
|
|
32
32
|
display: flex;
|
|
33
|
+
border-radius: var(--ds-size-500, 2.5rem);
|
|
33
34
|
line-height: 0;
|
|
34
35
|
}
|
|
36
|
+
:host::part(counterControl):focus-visible {
|
|
37
|
+
outline-offset: 0;
|
|
38
|
+
outline-style: solid;
|
|
39
|
+
outline-width: var(--ds-size-25, 0.125rem);
|
|
40
|
+
}
|
|
35
41
|
:host::part(controlMinus) {
|
|
36
42
|
--ds-auro-counter-control-border-radius: var(--ds-size-500, 2.5rem) 0 0 var(--ds-size-500, 2.5rem);
|
|
37
43
|
--ds-auro-counter-control-padding: var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-50, 0.25rem) var(--ds-size-100, 0.5rem);
|
|
@@ -44,7 +44,14 @@
|
|
|
44
44
|
|
|
45
45
|
&::part(counterControl) {
|
|
46
46
|
display: flex;
|
|
47
|
+
border-radius: var(--ds-size-500, $ds-size-500);
|
|
47
48
|
line-height: 0;
|
|
49
|
+
|
|
50
|
+
&:focus-visible {
|
|
51
|
+
outline-offset: 0;
|
|
52
|
+
outline-style: solid;
|
|
53
|
+
outline-width: var(--ds-size-25, $ds-size-25);
|
|
54
|
+
}
|
|
48
55
|
}
|
|
49
56
|
|
|
50
57
|
&::part(controlMinus) {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { css } from 'lit';
|
|
2
|
-
export default css`:host{--ds-auro-counter-text-default: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-counter-text-secondary: var(--ds-color-text-secondary-default, #525252);--ds-auro-counter-text-disabled: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-ui-hover: var(--ds-color-ui-hover-default, #054687);--ds-auro-counter-control-ui-disabled: var(--ds-color-ui-disabled-default, rgba(0, 116, 200, 0.2));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, 0.875rem);--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #0074c8)}`;
|
|
2
|
+
export default css`:host{--ds-auro-counter-text-default: var(--ds-color-text-primary-default, #2a2a2a);--ds-auro-counter-text-secondary: var(--ds-color-text-secondary-default, #525252);--ds-auro-counter-text-disabled: var(--ds-color-text-ui-disabled-default, #adadad);--ds-auro-counter-control-ui-active: var(--ds-color-ui-active-default, #054687);--ds-auro-counter-control-ui-hover: var(--ds-color-ui-hover-default, #054687);--ds-auro-counter-control-ui-disabled: var(--ds-color-ui-disabled-default, rgba(0, 116, 200, 0.2));--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, 0.875rem);--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #0074c8);--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #0074c8)}`;
|
|
@@ -8,4 +8,5 @@
|
|
|
8
8
|
--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, rgba(0, 0, 0, 0.03));
|
|
9
9
|
--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, 0.875rem);
|
|
10
10
|
--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #0074c8);
|
|
11
|
+
--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #0074c8);
|
|
11
12
|
}
|
|
@@ -21,4 +21,5 @@
|
|
|
21
21
|
--ds-auro-counter-control-ui-bkg: var(--ds-color-ui-bkg-default-default, #{$ds-color-ui-bkg-default-default});
|
|
22
22
|
--ds-auro-counter-control-line-height: var(--ds-text-body-size-sm, #{$ds-text-body-size-sm});
|
|
23
23
|
--ds-auro-counter-icon-color-default: var(--ds-color-ui-default-default, #{$ds-color-ui-default-default});
|
|
24
|
-
}
|
|
24
|
+
--ds-auro-counter-control-border-active: var(--ds-color-border-active-default, #{$ds-color-border-active-default});
|
|
25
|
+
}
|
|
@@ -376,7 +376,7 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
376
376
|
[32mcreated [1mdist[22m in [1m10.2s[22m[39m
|
|
377
377
|
[36m
|
|
378
378
|
[1m./demo/index.js[22m → [1m./demo/[22m...[39m
|
|
379
|
-
[32mcreated [1m./demo/[22m in [
|
|
379
|
+
[32mcreated [1m./demo/[22m in [1m4s[22m[39m
|
|
380
380
|
[36m
|
|
381
381
|
[1m./demo/api.js[22m → [1m./demo/[22m...[39m
|
|
382
382
|
[32mcreated [1m./demo/[22m in [1m3.5s[22m[39m
|
|
@@ -93,10 +93,10 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
93
93
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
94
94
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13/dist/tokens/CSSCustomProperties.css" />
|
|
95
95
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@6.0.0/dist/bundled/essentials.css" />
|
|
96
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.
|
|
97
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.
|
|
98
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.
|
|
99
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.
|
|
96
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.33/dist/auro-dropdown__bundled.js" type="module"></script>
|
|
97
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.33/dist/auro-input__bundled.js" type="module"></script>
|
|
98
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.33/dist/auro-popover__bundled.js" type="module"></script>
|
|
99
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.33/dist/auro-datepicker__bundled.js" type="module"></script>
|
|
100
100
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
101
101
|
|
|
102
102
|
## auro-datepicker use cases
|
|
@@ -13521,6 +13521,15 @@ class AuroDropdown extends r$4$1 {
|
|
|
13521
13521
|
this.noHideOnThisFocusLoss = false;
|
|
13522
13522
|
|
|
13523
13523
|
this.privateDefaults();
|
|
13524
|
+
|
|
13525
|
+
/**
|
|
13526
|
+
* @private
|
|
13527
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
13528
|
+
*/
|
|
13529
|
+
this.constructor.shadowRootOptions = {
|
|
13530
|
+
...r$4$1.shadowRootOptions,
|
|
13531
|
+
delegatesFocus: true,
|
|
13532
|
+
};
|
|
13524
13533
|
}
|
|
13525
13534
|
|
|
13526
13535
|
/**
|
|
@@ -13841,7 +13850,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
13841
13850
|
*
|
|
13842
13851
|
* @private
|
|
13843
13852
|
* @method handleTriggerContentSlotChange
|
|
13844
|
-
* @param {Event} event -
|
|
13853
|
+
* @param {Event} event - Native slotchange event.
|
|
13845
13854
|
* @returns {void}
|
|
13846
13855
|
*/
|
|
13847
13856
|
handleTriggerContentSlotChange(event) {
|
|
@@ -13261,6 +13261,15 @@ class AuroDropdown extends r$4$1 {
|
|
|
13261
13261
|
this.noHideOnThisFocusLoss = false;
|
|
13262
13262
|
|
|
13263
13263
|
this.privateDefaults();
|
|
13264
|
+
|
|
13265
|
+
/**
|
|
13266
|
+
* @private
|
|
13267
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
13268
|
+
*/
|
|
13269
|
+
this.constructor.shadowRootOptions = {
|
|
13270
|
+
...r$4$1.shadowRootOptions,
|
|
13271
|
+
delegatesFocus: true,
|
|
13272
|
+
};
|
|
13264
13273
|
}
|
|
13265
13274
|
|
|
13266
13275
|
/**
|
|
@@ -13581,7 +13590,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
13581
13590
|
*
|
|
13582
13591
|
* @private
|
|
13583
13592
|
* @method handleTriggerContentSlotChange
|
|
13584
|
-
* @param {Event} event -
|
|
13593
|
+
* @param {Event} event - Native slotchange event.
|
|
13585
13594
|
* @returns {void}
|
|
13586
13595
|
*/
|
|
13587
13596
|
handleTriggerContentSlotChange(event) {
|
|
@@ -13261,6 +13261,15 @@ class AuroDropdown extends r$4$1 {
|
|
|
13261
13261
|
this.noHideOnThisFocusLoss = false;
|
|
13262
13262
|
|
|
13263
13263
|
this.privateDefaults();
|
|
13264
|
+
|
|
13265
|
+
/**
|
|
13266
|
+
* @private
|
|
13267
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
13268
|
+
*/
|
|
13269
|
+
this.constructor.shadowRootOptions = {
|
|
13270
|
+
...r$4$1.shadowRootOptions,
|
|
13271
|
+
delegatesFocus: true,
|
|
13272
|
+
};
|
|
13264
13273
|
}
|
|
13265
13274
|
|
|
13266
13275
|
/**
|
|
@@ -13581,7 +13590,7 @@ class AuroDropdown extends r$4$1 {
|
|
|
13581
13590
|
*
|
|
13582
13591
|
* @private
|
|
13583
13592
|
* @method handleTriggerContentSlotChange
|
|
13584
|
-
* @param {Event} event -
|
|
13593
|
+
* @param {Event} event - Native slotchange event.
|
|
13585
13594
|
* @returns {void}
|
|
13586
13595
|
*/
|
|
13587
13596
|
handleTriggerContentSlotChange(event) {
|
|
@@ -93,10 +93,10 @@ More info and automated migrator: https://sass-lang.com/d/import
|
|
|
93
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 [1m840ms[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 [1m641ms[22m[39m
|
|
100
100
|
|
|
101
101
|
> @aurodesignsystem/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
|
|
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
97
97
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
98
98
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.9.2/dist/tokens/CSSCustomProperties.css" />
|
|
99
99
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
100
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.
|
|
100
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.33/dist/auro-dropdown__bundled.js" type="module"></script>
|
|
101
101
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
102
102
|
|
|
103
103
|
## auro-dropdown use cases
|
|
@@ -2783,6 +2783,15 @@ class AuroDropdown extends r$4 {
|
|
|
2783
2783
|
this.noHideOnThisFocusLoss = false;
|
|
2784
2784
|
|
|
2785
2785
|
this.privateDefaults();
|
|
2786
|
+
|
|
2787
|
+
/**
|
|
2788
|
+
* @private
|
|
2789
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
2790
|
+
*/
|
|
2791
|
+
this.constructor.shadowRootOptions = {
|
|
2792
|
+
...r$4.shadowRootOptions,
|
|
2793
|
+
delegatesFocus: true,
|
|
2794
|
+
};
|
|
2786
2795
|
}
|
|
2787
2796
|
|
|
2788
2797
|
/**
|
|
@@ -3103,7 +3112,7 @@ class AuroDropdown extends r$4 {
|
|
|
3103
3112
|
*
|
|
3104
3113
|
* @private
|
|
3105
3114
|
* @method handleTriggerContentSlotChange
|
|
3106
|
-
* @param {Event} event -
|
|
3115
|
+
* @param {Event} event - Native slotchange event.
|
|
3107
3116
|
* @returns {void}
|
|
3108
3117
|
*/
|
|
3109
3118
|
handleTriggerContentSlotChange(event) {
|
|
@@ -2758,6 +2758,15 @@ class AuroDropdown extends r$4 {
|
|
|
2758
2758
|
this.noHideOnThisFocusLoss = false;
|
|
2759
2759
|
|
|
2760
2760
|
this.privateDefaults();
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* @private
|
|
2764
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
2765
|
+
*/
|
|
2766
|
+
this.constructor.shadowRootOptions = {
|
|
2767
|
+
...r$4.shadowRootOptions,
|
|
2768
|
+
delegatesFocus: true,
|
|
2769
|
+
};
|
|
2761
2770
|
}
|
|
2762
2771
|
|
|
2763
2772
|
/**
|
|
@@ -3078,7 +3087,7 @@ class AuroDropdown extends r$4 {
|
|
|
3078
3087
|
*
|
|
3079
3088
|
* @private
|
|
3080
3089
|
* @method handleTriggerContentSlotChange
|
|
3081
|
-
* @param {Event} event -
|
|
3090
|
+
* @param {Event} event - Native slotchange event.
|
|
3082
3091
|
* @returns {void}
|
|
3083
3092
|
*/
|
|
3084
3093
|
handleTriggerContentSlotChange(event) {
|
|
@@ -229,7 +229,7 @@ export class AuroDropdown extends LitElement {
|
|
|
229
229
|
*
|
|
230
230
|
* @private
|
|
231
231
|
* @method handleTriggerContentSlotChange
|
|
232
|
-
* @param {Event} event -
|
|
232
|
+
* @param {Event} event - Native slotchange event.
|
|
233
233
|
* @returns {void}
|
|
234
234
|
*/
|
|
235
235
|
private handleTriggerContentSlotChange;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auro-dropdown.d.ts","sourceRoot":"","sources":["../src/auro-dropdown.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auro-dropdown.d.ts","sourceRoot":"","sources":["../src/auro-dropdown.js"],"names":[],"mappings":"AAyBA;;;;;;;;;;;;GAYG;AACH;IAyFE;QAGI;;WAEG;;;;;QAMH;;;WAGG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;QAMH;;WAEG;;;;;;;;;QAWH;;WAEG;;;;QAKH;;WAEG;;;;;QAMH;;WAEG;;;;MAKN;IAED,+CAMC;IAED;;;;;;;OAOG;IACH,uBANW,MAAM,QAQhB;IArQC,0BAA6B;IAC7B,oBAAuB;IACvB,+BAAkC;IAcpC;;;OAGG;IACH,wBA8CC;IA7CC,kBAAqB;IACrB,iBAAoB;IACpB,kBAAqB;IACrB,eAAkB;IAClB,eAAkB;IAClB,kBAA+B;IAC/B,iBAAoB;IAEpB,kBAAqB;IAErB;;OAEG;IACH,0BAA8B;IAE9B;;OAEG;IACH,2BAAmC;IAEnC;;OAEG;IACH,qBAAiD;IAEjD;;OAEG;IACH,gBAAmC;IAEnC;;OAEG;IACH,sBAKC;IAMD,aAAyE;IAG3E;;;OAGG;IACH,QAFa,IAAI,CAIhB;IAED;;;OAGG;IACH,QAFa,IAAI,CAIhB;IA6LD,sCAYC;IAED,qBAMC;IAJC,gBAA0C;IAM5C;;;;OAIG;IACH,uBAEC;IAED;;;;;OAKG;IACH,4BAiBC;IAED;;;;;;;;;;;OAWG;IACH,uCAuBC;IAnBG,yBAA+B;IAqBnC;;;;;;;;;;;OAWG;IACH,0BAMC;IAGD,4CAoDC;CACF;2BAxd0B,KAAK"}
|
|
@@ -2758,6 +2758,15 @@ class AuroDropdown extends r$4 {
|
|
|
2758
2758
|
this.noHideOnThisFocusLoss = false;
|
|
2759
2759
|
|
|
2760
2760
|
this.privateDefaults();
|
|
2761
|
+
|
|
2762
|
+
/**
|
|
2763
|
+
* @private
|
|
2764
|
+
* @property {boolean} delegatesFocus - Whether the shadow root delegates focus.
|
|
2765
|
+
*/
|
|
2766
|
+
this.constructor.shadowRootOptions = {
|
|
2767
|
+
...r$4.shadowRootOptions,
|
|
2768
|
+
delegatesFocus: true,
|
|
2769
|
+
};
|
|
2761
2770
|
}
|
|
2762
2771
|
|
|
2763
2772
|
/**
|
|
@@ -3078,7 +3087,7 @@ class AuroDropdown extends r$4 {
|
|
|
3078
3087
|
*
|
|
3079
3088
|
* @private
|
|
3080
3089
|
* @method handleTriggerContentSlotChange
|
|
3081
|
-
* @param {Event} event -
|
|
3090
|
+
* @param {Event} event - Native slotchange event.
|
|
3082
3091
|
* @returns {void}
|
|
3083
3092
|
*/
|
|
3084
3093
|
handleTriggerContentSlotChange(event) {
|