@aurodesignsystem/auro-formkit 2.0.0-beta.10 → 2.0.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/0c8124a987c1cc05-meta.json +1 -1
- package/.turbo/cache/0cd512cdf86242c7-meta.json +1 -0
- package/.turbo/cache/{ff4dbfffc29255ab.tar.zst → 0cd512cdf86242c7.tar.zst} +0 -0
- package/.turbo/cache/123c83cd8727dff3-meta.json +1 -0
- package/.turbo/cache/123c83cd8727dff3.tar.zst +0 -0
- package/.turbo/cache/18129dba20f51b6b-meta.json +1 -1
- package/.turbo/cache/253e861af7025ed4-meta.json +1 -0
- package/.turbo/cache/253e861af7025ed4.tar.zst +0 -0
- package/.turbo/cache/2787020e69f50af2-meta.json +1 -1
- package/.turbo/cache/2a5295c8f561ed84-meta.json +1 -0
- package/.turbo/cache/2c0d681132c153dd-meta.json +1 -1
- package/.turbo/cache/4006a206400d5c7b-meta.json +1 -1
- package/.turbo/cache/492dda333b8d15f1-meta.json +1 -1
- package/.turbo/cache/4e3619d9dfc86809-meta.json +1 -0
- package/.turbo/cache/4e3619d9dfc86809.tar.zst +0 -0
- package/.turbo/cache/50993de942ec15a9-meta.json +1 -1
- package/.turbo/cache/50cd7dcfc9f820c5-meta.json +1 -0
- package/.turbo/cache/50cd7dcfc9f820c5.tar.zst +0 -0
- package/.turbo/cache/51eaa58d5c167de8-meta.json +1 -1
- package/.turbo/cache/5a0d3e26da304c62-meta.json +1 -0
- package/.turbo/cache/5a0d3e26da304c62.tar.zst +0 -0
- package/.turbo/cache/5c960af698582835-meta.json +1 -0
- package/.turbo/cache/5c960af698582835.tar.zst +0 -0
- package/.turbo/cache/5dbbb71dffc3f542-meta.json +1 -0
- package/.turbo/cache/5dbbb71dffc3f542.tar.zst +0 -0
- package/.turbo/cache/6081837e8943b62e-meta.json +1 -1
- package/.turbo/cache/60ad74320c682a2b-meta.json +1 -1
- package/.turbo/cache/61e218aba69cff58-meta.json +1 -1
- package/.turbo/cache/77da375a012de9d0-meta.json +1 -1
- package/.turbo/cache/7964d1656e9e702a-meta.json +1 -0
- package/.turbo/cache/7964d1656e9e702a.tar.zst +0 -0
- package/.turbo/cache/7bf2b06a479d0b30-meta.json +1 -1
- package/.turbo/cache/7c9ca6163e61285c-meta.json +1 -1
- package/.turbo/cache/80aca269cd346fb4-meta.json +1 -0
- package/.turbo/cache/80aca269cd346fb4.tar.zst +0 -0
- package/.turbo/cache/8602fc2bb737a5cf-meta.json +1 -0
- package/.turbo/cache/89e0e7a6148e854f-meta.json +1 -0
- package/.turbo/cache/89e0e7a6148e854f.tar.zst +0 -0
- package/.turbo/cache/8bb856bd31b5b479-meta.json +1 -1
- package/.turbo/cache/93c887fb93a10daa-meta.json +1 -0
- package/.turbo/cache/93c887fb93a10daa.tar.zst +0 -0
- package/.turbo/cache/94dae2a64e9d8356-meta.json +1 -0
- package/.turbo/cache/97f6fe83b54acf09-meta.json +1 -0
- package/.turbo/cache/{080ca6155e637d5d.tar.zst → 97f6fe83b54acf09.tar.zst} +0 -0
- package/.turbo/cache/98317b0d14d94df7-meta.json +1 -0
- package/.turbo/cache/98317b0d14d94df7.tar.zst +0 -0
- package/.turbo/cache/9ae99e8e7bd83d06-meta.json +1 -1
- package/.turbo/cache/9cbcd13b1d031f63-meta.json +1 -0
- package/.turbo/cache/{8af27c076dc010c3.tar.zst → 9cbcd13b1d031f63.tar.zst} +0 -0
- package/.turbo/cache/afbbd49ed1a558b9-meta.json +1 -0
- package/.turbo/cache/b353ce8f6da43dea-meta.json +1 -0
- package/.turbo/cache/b5e6dc7fb9ae1a2f-meta.json +1 -1
- package/.turbo/cache/b6a202cc85cb61a0-meta.json +1 -1
- package/.turbo/cache/b8db059a9b9ccb5d-meta.json +1 -0
- package/.turbo/cache/bc24a38aa1b1a102-meta.json +1 -0
- package/.turbo/cache/be0b95293ea517cc-meta.json +1 -1
- package/.turbo/cache/c3a4f7a3565d6706-meta.json +1 -0
- package/.turbo/cache/c3a4f7a3565d6706.tar.zst +0 -0
- package/.turbo/cache/c44efc9e4ddd8a0e-meta.json +1 -1
- package/.turbo/cache/c6c6411199b68170-meta.json +1 -1
- package/.turbo/cache/c97b043e748e3580-meta.json +1 -0
- package/.turbo/cache/d5db503b2eaf239c-meta.json +1 -1
- package/.turbo/cache/d775555355d6b8fc-meta.json +1 -1
- package/.turbo/cache/d7c3007be148d2a1-meta.json +1 -1
- package/.turbo/cache/dad3d78b33edd9e4-meta.json +1 -1
- package/.turbo/cache/dc597b3ea4f61ec8-meta.json +1 -0
- package/.turbo/cache/dc597b3ea4f61ec8.tar.zst +0 -0
- package/.turbo/cache/df40b180126e5351-meta.json +1 -0
- package/.turbo/cache/df40b180126e5351.tar.zst +0 -0
- package/.turbo/cache/e5f217f77c32c93b-meta.json +1 -0
- package/.turbo/cache/{c2b51643f886a493.tar.zst → e5f217f77c32c93b.tar.zst} +0 -0
- package/.turbo/cache/e62cfee068e3ef36-meta.json +1 -1
- package/.turbo/cache/e9e36823f6c98f07-meta.json +1 -1
- package/.turbo/cache/ee1a3c1fe389da51-meta.json +1 -0
- package/.turbo/cache/f3c7b40f2c6a4094-meta.json +1 -0
- package/.turbo/cache/{b22ca87b2f7f9cc2.tar.zst → f3c7b40f2c6a4094.tar.zst} +0 -0
- package/.turbo/cache/f5958c3acb889631-meta.json +1 -0
- package/.turbo/cache/fb3809ac3f90e3b2-meta.json +1 -0
- package/.turbo/cache/{eb1dbe885532c1dc.tar.zst → fb3809ac3f90e3b2.tar.zst} +0 -0
- package/.turbo/cache/fd5ddfa43ebd8e5c-meta.json +1 -0
- package/.turbo/cache/fd5ddfa43ebd8e5c.tar.zst +0 -0
- package/CHANGELOG.md +13 -0
- package/components/checkbox/.turbo/turbo-build.log +3 -3
- package/components/checkbox/.turbo/turbo-bundler.log +3 -3
- package/components/checkbox/README.md +1 -1
- package/components/combobox/.turbo/turbo-build.log +3 -3
- package/components/combobox/README.md +4 -4
- package/components/combobox/demo/api.md +9 -9
- package/components/combobox/demo/api.min.js +2508 -642
- package/components/combobox/demo/index.min.js +2505 -639
- package/components/combobox/dist/auro-combobox.d.ts +9 -4
- package/components/combobox/dist/auro-combobox.d.ts.map +1 -1
- package/components/combobox/dist/index.js +1863 -312
- package/components/combobox/src/auro-combobox.js +70 -26
- package/components/counter/.turbo/turbo-build.log +3 -3
- package/components/counter/.turbo/turbo-bundler.log +3 -3
- package/components/counter/README.md +1 -1
- package/components/datepicker/.turbo/turbo-build.log +3 -3
- package/components/datepicker/README.md +4 -4
- package/components/dropdown/.turbo/turbo-build.log +3 -3
- package/components/dropdown/.turbo/turbo-bundler.log +2 -2
- package/components/dropdown/README.md +1 -1
- 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/input/.turbo/turbo-build.log +3 -3
- package/components/input/.turbo/turbo-bundler.log +3 -3
- package/components/input/README.md +1 -1
- package/components/menu/.turbo/turbo-build.log +4 -2
- package/components/menu/.turbo/turbo-bundler.log +3 -3
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.md +57 -20
- package/components/menu/demo/api.min.js +620 -305
- package/components/menu/demo/index.min.js +618 -303
- package/components/menu/dist/auro-menu-utils.d.ts +43 -0
- package/components/menu/dist/auro-menu-utils.d.ts.map +1 -0
- package/components/menu/dist/auro-menu.d.ts +97 -81
- package/components/menu/dist/auro-menu.d.ts.map +1 -1
- package/components/menu/dist/index.d.ts +1 -0
- package/components/menu/dist/index.js +619 -304
- package/components/menu/src/auro-menu-utils.js +131 -0
- package/components/menu/src/auro-menu.js +493 -303
- package/components/menu/src/index.js +7 -0
- package/components/radio/.turbo/turbo-build.log +3 -3
- package/components/radio/.turbo/turbo-bundler.log +3 -3
- package/components/radio/README.md +1 -1
- package/components/select/.turbo/turbo-build.log +5 -3
- package/components/select/README.md +3 -3
- package/components/select/demo/api.md +46 -11
- package/components/select/demo/api.min.js +2336 -485
- package/components/select/demo/index.min.js +2337 -486
- package/components/select/dist/auro-select.d.ts +17 -6
- package/components/select/dist/auro-select.d.ts.map +1 -1
- package/components/select/dist/index.js +1706 -170
- package/components/select/src/auro-select.js +53 -24
- package/components/select/src/styles/style-css.js +1 -1
- package/components/select/src/styles/style.css +7 -0
- package/components/select/src/styles/style.scss +13 -0
- package/package.json +1 -1
- package/.turbo/cache/026e4d886ba97e63-meta.json +0 -1
- package/.turbo/cache/026e4d886ba97e63.tar.zst +0 -0
- package/.turbo/cache/080ca6155e637d5d-meta.json +0 -1
- package/.turbo/cache/0b115e30ff606299-meta.json +0 -1
- package/.turbo/cache/0b115e30ff606299.tar.zst +0 -0
- package/.turbo/cache/1c630fb3411e4a41-meta.json +0 -1
- package/.turbo/cache/24b19ac5895e5dd6-meta.json +0 -1
- package/.turbo/cache/24b19ac5895e5dd6.tar.zst +0 -0
- package/.turbo/cache/29b72c73cbccb53d-meta.json +0 -1
- package/.turbo/cache/29b72c73cbccb53d.tar.zst +0 -0
- package/.turbo/cache/3e647c5863d32e6f-meta.json +0 -1
- package/.turbo/cache/3e647c5863d32e6f.tar.zst +0 -0
- package/.turbo/cache/43f5206cc4e69b44-meta.json +0 -1
- package/.turbo/cache/4a85ec226b585fd5-meta.json +0 -1
- package/.turbo/cache/50a29c70b93c57dd-meta.json +0 -1
- package/.turbo/cache/50a29c70b93c57dd.tar.zst +0 -0
- package/.turbo/cache/56455145cd768755-meta.json +0 -1
- package/.turbo/cache/56455145cd768755.tar.zst +0 -0
- package/.turbo/cache/5c06332cf9f132da-meta.json +0 -1
- package/.turbo/cache/5e613afc6868d0e2-meta.json +0 -1
- package/.turbo/cache/5e613afc6868d0e2.tar.zst +0 -0
- package/.turbo/cache/639dac15b979bedc-meta.json +0 -1
- package/.turbo/cache/664c2e08614fd212-meta.json +0 -1
- package/.turbo/cache/6c51b0ebfc086faa-meta.json +0 -1
- package/.turbo/cache/6c51b0ebfc086faa.tar.zst +0 -0
- package/.turbo/cache/7216d994164825fb-meta.json +0 -1
- package/.turbo/cache/7216d994164825fb.tar.zst +0 -0
- package/.turbo/cache/83a167e135cb431a-meta.json +0 -1
- package/.turbo/cache/83a167e135cb431a.tar.zst +0 -0
- package/.turbo/cache/8af27c076dc010c3-meta.json +0 -1
- package/.turbo/cache/953c8216249d3509-meta.json +0 -1
- package/.turbo/cache/95a5e76ffd8c5110-meta.json +0 -1
- package/.turbo/cache/95a5e76ffd8c5110.tar.zst +0 -0
- package/.turbo/cache/a8b0fa0a9aa707c5-meta.json +0 -1
- package/.turbo/cache/a8b0fa0a9aa707c5.tar.zst +0 -0
- package/.turbo/cache/b22ca87b2f7f9cc2-meta.json +0 -1
- package/.turbo/cache/b7bbe2e7d44b77f0-meta.json +0 -1
- package/.turbo/cache/b7bbe2e7d44b77f0.tar.zst +0 -0
- package/.turbo/cache/c2b51643f886a493-meta.json +0 -1
- package/.turbo/cache/c74d369a0475b124-meta.json +0 -1
- package/.turbo/cache/c7f5a276ddb73cf7-meta.json +0 -1
- package/.turbo/cache/c96933d40404e4c8-meta.json +0 -1
- package/.turbo/cache/c96933d40404e4c8.tar.zst +0 -0
- package/.turbo/cache/eb1dbe885532c1dc-meta.json +0 -1
- package/.turbo/cache/f1f6744948f1b18f-meta.json +0 -1
- package/.turbo/cache/f1f6744948f1b18f.tar.zst +0 -0
- package/.turbo/cache/feefbc25d550c1cd-meta.json +0 -1
- package/.turbo/cache/ff4dbfffc29255ab-meta.json +0 -1
- /package/.turbo/cache/{639dac15b979bedc.tar.zst → 2a5295c8f561ed84.tar.zst} +0 -0
- /package/.turbo/cache/{1c630fb3411e4a41.tar.zst → 8602fc2bb737a5cf.tar.zst} +0 -0
- /package/.turbo/cache/{664c2e08614fd212.tar.zst → 94dae2a64e9d8356.tar.zst} +0 -0
- /package/.turbo/cache/{c7f5a276ddb73cf7.tar.zst → afbbd49ed1a558b9.tar.zst} +0 -0
- /package/.turbo/cache/{43f5206cc4e69b44.tar.zst → b353ce8f6da43dea.tar.zst} +0 -0
- /package/.turbo/cache/{c74d369a0475b124.tar.zst → b8db059a9b9ccb5d.tar.zst} +0 -0
- /package/.turbo/cache/{4a85ec226b585fd5.tar.zst → bc24a38aa1b1a102.tar.zst} +0 -0
- /package/.turbo/cache/{5c06332cf9f132da.tar.zst → c97b043e748e3580.tar.zst} +0 -0
- /package/.turbo/cache/{953c8216249d3509.tar.zst → ee1a3c1fe389da51.tar.zst} +0 -0
- /package/.turbo/cache/{feefbc25d550c1cd.tar.zst → f5958c3acb889631.tar.zst} +0 -0
|
@@ -18,6 +18,11 @@ import { AuroDependencyVersioning } from '@aurodesignsystem/auro-library/scripts
|
|
|
18
18
|
import { AuroDropdown } from '@aurodesignsystem/auro-dropdown';
|
|
19
19
|
import dropdownVersion from './formkit/auro-dropdownVersion.js';
|
|
20
20
|
|
|
21
|
+
import {
|
|
22
|
+
arrayConverter,
|
|
23
|
+
arrayOrUndefinedHasChanged
|
|
24
|
+
} from '@aurodesignsystem/auro-menu';
|
|
25
|
+
|
|
21
26
|
import styleCss from "./styles/style-css.js";
|
|
22
27
|
import colorCss from "./styles/color-css.js";
|
|
23
28
|
import tokensCss from "./styles/tokens-css.js";
|
|
@@ -41,7 +46,7 @@ export class AuroSelect extends LitElement {
|
|
|
41
46
|
super();
|
|
42
47
|
|
|
43
48
|
this.optionSelected = undefined;
|
|
44
|
-
this.
|
|
49
|
+
this.value = undefined;
|
|
45
50
|
|
|
46
51
|
const idLength = 36;
|
|
47
52
|
const idSubstrEnd = 8;
|
|
@@ -138,7 +143,9 @@ export class AuroSelect extends LitElement {
|
|
|
138
143
|
* Specifies the current selected menuOption.
|
|
139
144
|
*/
|
|
140
145
|
optionSelected: {
|
|
141
|
-
|
|
146
|
+
// Allow HTMLElement[] arrays and undefined
|
|
147
|
+
converter: arrayConverter,
|
|
148
|
+
hasChanged: arrayOrUndefinedHasChanged
|
|
142
149
|
},
|
|
143
150
|
|
|
144
151
|
/**
|
|
@@ -197,8 +204,19 @@ export class AuroSelect extends LitElement {
|
|
|
197
204
|
* Value selected for the component.
|
|
198
205
|
*/
|
|
199
206
|
value: {
|
|
200
|
-
|
|
201
|
-
|
|
207
|
+
// Allow string[] arrays and undefined
|
|
208
|
+
converter: arrayConverter,
|
|
209
|
+
hasChanged: arrayOrUndefinedHasChanged
|
|
210
|
+
},
|
|
211
|
+
|
|
212
|
+
/**
|
|
213
|
+
* Sets multi-select mode, allowing multiple options to be selected at once.
|
|
214
|
+
*/
|
|
215
|
+
multiSelect: {
|
|
216
|
+
type: Boolean,
|
|
217
|
+
reflect: true,
|
|
218
|
+
attribute: 'multiselect'
|
|
219
|
+
},
|
|
202
220
|
};
|
|
203
221
|
}
|
|
204
222
|
|
|
@@ -240,29 +258,30 @@ export class AuroSelect extends LitElement {
|
|
|
240
258
|
}
|
|
241
259
|
|
|
242
260
|
/**
|
|
243
|
-
* Updates the displayed value in an Auro dropdown component based on optionSelected
|
|
261
|
+
* Updates the displayed value in an Auro dropdown component based on optionSelected.
|
|
244
262
|
* @private
|
|
245
263
|
* @returns {void}
|
|
246
264
|
*/
|
|
247
265
|
updateDisplayedValue() {
|
|
248
266
|
const triggerContentEl = this.dropdown.querySelector('#triggerFocus');
|
|
249
267
|
|
|
250
|
-
//
|
|
251
|
-
triggerContentEl.
|
|
252
|
-
|
|
253
|
-
|
|
268
|
+
// Clear everything except placeholder
|
|
269
|
+
const placeholder = triggerContentEl.querySelector('#placeholder');
|
|
270
|
+
triggerContentEl.innerHTML = '';
|
|
271
|
+
if (placeholder) {
|
|
272
|
+
triggerContentEl.appendChild(placeholder);
|
|
273
|
+
}
|
|
254
274
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
clone.removeAttribute('class');
|
|
275
|
+
// Handle selected options
|
|
276
|
+
if (this.optionSelected && this.optionSelected.length) {
|
|
277
|
+
// Create display text from selected options
|
|
278
|
+
const displayText = this.optionSelected.map((option) => option.textContent).join(', ');
|
|
260
279
|
|
|
261
|
-
|
|
262
|
-
|
|
280
|
+
const span = document.createElement('span');
|
|
281
|
+
span.textContent = displayText;
|
|
282
|
+
triggerContentEl.appendChild(span);
|
|
263
283
|
}
|
|
264
284
|
|
|
265
|
-
// notify dropdown as trigger content is changed
|
|
266
285
|
this.dropdown.requestUpdate();
|
|
267
286
|
}
|
|
268
287
|
|
|
@@ -282,6 +301,10 @@ export class AuroSelect extends LitElement {
|
|
|
282
301
|
return;
|
|
283
302
|
}
|
|
284
303
|
|
|
304
|
+
if (this.multiSelect) {
|
|
305
|
+
this.menu.multiSelect = this.multiSelect;
|
|
306
|
+
}
|
|
307
|
+
|
|
285
308
|
this.menu.addEventListener("auroMenu-loadingChange", (event) => this.handleMenuLoadingChange(event));
|
|
286
309
|
this.menu.setAttribute('aria-hidden', 'true');
|
|
287
310
|
|
|
@@ -292,8 +315,10 @@ export class AuroSelect extends LitElement {
|
|
|
292
315
|
});
|
|
293
316
|
|
|
294
317
|
this.menu.addEventListener('auroMenu-selectedOption', () => {
|
|
318
|
+
// Get array of selected options from menu
|
|
295
319
|
this.optionSelected = this.menu.optionSelected;
|
|
296
|
-
|
|
320
|
+
// For single select, we still use arrays but only take first value
|
|
321
|
+
this.value = this.menu.value;
|
|
297
322
|
|
|
298
323
|
if (this.dropdown.isPopoverVisible) {
|
|
299
324
|
this.dropdown.hide();
|
|
@@ -308,7 +333,7 @@ export class AuroSelect extends LitElement {
|
|
|
308
333
|
* with `auro-select.value`.
|
|
309
334
|
*/
|
|
310
335
|
this.menu.addEventListener('auroMenu-selectValueFailure', () => {
|
|
311
|
-
this.
|
|
336
|
+
this.menu.clearSelection();
|
|
312
337
|
});
|
|
313
338
|
|
|
314
339
|
this.menu.addEventListener('auroMenu-selectValueReset', () => {
|
|
@@ -333,7 +358,7 @@ export class AuroSelect extends LitElement {
|
|
|
333
358
|
this.dropdown.show();
|
|
334
359
|
|
|
335
360
|
if (this.dropdown.isPopoverVisible) {
|
|
336
|
-
this.menu.
|
|
361
|
+
this.menu.navigateOptions('up');
|
|
337
362
|
}
|
|
338
363
|
}
|
|
339
364
|
|
|
@@ -343,7 +368,7 @@ export class AuroSelect extends LitElement {
|
|
|
343
368
|
this.dropdown.show();
|
|
344
369
|
|
|
345
370
|
if (this.dropdown.isPopoverVisible) {
|
|
346
|
-
this.menu.
|
|
371
|
+
this.menu.navigateOptions('down');
|
|
347
372
|
}
|
|
348
373
|
}
|
|
349
374
|
|
|
@@ -406,7 +431,7 @@ export class AuroSelect extends LitElement {
|
|
|
406
431
|
* input as no longer in the initial state.
|
|
407
432
|
*/
|
|
408
433
|
if (this.value === undefined) {
|
|
409
|
-
this.value =
|
|
434
|
+
this.value = undefined;
|
|
410
435
|
this.removeEventListener('focusin', this.handleFocusin);
|
|
411
436
|
}
|
|
412
437
|
}
|
|
@@ -464,11 +489,15 @@ export class AuroSelect extends LitElement {
|
|
|
464
489
|
}
|
|
465
490
|
}
|
|
466
491
|
|
|
467
|
-
updated(changedProperties) {
|
|
468
|
-
// After the component is ready, send direct value changes to auro-menu.
|
|
492
|
+
async updated(changedProperties) {
|
|
469
493
|
if (changedProperties.has('value')) {
|
|
470
494
|
if (this.value) {
|
|
471
495
|
this.menu.value = this.value;
|
|
496
|
+
|
|
497
|
+
// Wait for menu to finish updating its value
|
|
498
|
+
await this.menu.updateComplete;
|
|
499
|
+
|
|
500
|
+
this.optionSelected = this.menu.optionSelected;
|
|
472
501
|
} else {
|
|
473
502
|
this.menu.value = undefined;
|
|
474
503
|
}
|
|
@@ -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_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}`;
|
|
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_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[slot=trigger]{width:100%;padding:0;border:0;cursor:pointer;font-family:inherit;font-size:inherit;text-align:left}[slot=trigger] .nestingSpacer{display:none}[slot=trigger] #placeholder.hidden{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host [auro-dropdown]{position:relative}:host [auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}:host [auro-dropdown]::part(popover){max-width:-webkit-fill-available;overflow-y:scroll}:host([disabled]) *{user-select:none}.outerWrapper{position:relative}auro-menuoption{padding:0;pointer-events:none}.menuWrapper{padding:var(--ds-size-50, 0.25rem) 0}.selectElement-helpText{margin:var(--ds-size-50, 0.25rem) 0;font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:1rem}:host([multiselect]) [slot=trigger]{display:flex}:host([multiselect]) auro-menuoption:not(:first-child){margin-left:var(--ds-size-100)}`;
|
|
@@ -102,3 +102,10 @@ auro-menuoption {
|
|
|
102
102
|
font-size: var(--ds-text-body-size-xs, 0.75rem);
|
|
103
103
|
line-height: 1rem;
|
|
104
104
|
}
|
|
105
|
+
|
|
106
|
+
:host([multiselect]) [slot=trigger] {
|
|
107
|
+
display: flex;
|
|
108
|
+
}
|
|
109
|
+
:host([multiselect]) auro-menuoption:not(:first-child) {
|
|
110
|
+
margin-left: var(--ds-size-100);
|
|
111
|
+
}
|
|
@@ -74,3 +74,16 @@ auro-menuoption {
|
|
|
74
74
|
font-size: var(--ds-text-body-size-xs, $ds-text-body-size-xs);
|
|
75
75
|
line-height: 1rem;
|
|
76
76
|
}
|
|
77
|
+
|
|
78
|
+
// Multiselect styles
|
|
79
|
+
:host([multiselect]) {
|
|
80
|
+
[slot="trigger"] {
|
|
81
|
+
display: flex;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
auro-menuoption {
|
|
85
|
+
&:not(:first-child) {
|
|
86
|
+
margin-left: var(--ds-size-100);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"026e4d886ba97e63","duration":4139}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"080ca6155e637d5d","duration":2708}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"0b115e30ff606299","duration":21859}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"1c630fb3411e4a41","duration":6592}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"24b19ac5895e5dd6","duration":818}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"29b72c73cbccb53d","duration":20406}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"3e647c5863d32e6f","duration":21019}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"43f5206cc4e69b44","duration":899}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"4a85ec226b585fd5","duration":5450}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"50a29c70b93c57dd","duration":2013}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"56455145cd768755","duration":5730}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"5c06332cf9f132da","duration":804}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"5e613afc6868d0e2","duration":10115}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"639dac15b979bedc","duration":5310}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"664c2e08614fd212","duration":6096}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"6c51b0ebfc086faa","duration":1834}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"7216d994164825fb","duration":2054}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"83a167e135cb431a","duration":21107}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"8af27c076dc010c3","duration":20842}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"953c8216249d3509","duration":5039}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"95a5e76ffd8c5110","duration":20620}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"a8b0fa0a9aa707c5","duration":9871}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"b22ca87b2f7f9cc2","duration":20487}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"b7bbe2e7d44b77f0","duration":3725}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"c2b51643f886a493","duration":22094}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"c74d369a0475b124","duration":1114}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"c7f5a276ddb73cf7","duration":901}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"c96933d40404e4c8","duration":3597}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"eb1dbe885532c1dc","duration":2772}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"f1f6744948f1b18f","duration":2995}
|
|
Binary file
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"feefbc25d550c1cd","duration":4694}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"hash":"ff4dbfffc29255ab","duration":4281}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|