@aurodesignsystem/auro-formkit 3.2.1 → 3.3.0-beta.1
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/CHANGELOG.md +7 -2
- package/components/combobox/demo/api.md +1 -1
- package/components/combobox/demo/api.min.js +26 -9
- package/components/combobox/demo/index.min.js +26 -9
- package/components/combobox/dist/auro-combobox.d.ts +5 -2
- package/components/combobox/dist/index.js +26 -9
- package/components/combobox/dist/registered.js +26 -9
- package/components/counter/demo/api.md +1 -1
- package/components/counter/demo/api.min.js +26 -5
- package/components/counter/demo/index.min.js +26 -5
- package/components/counter/dist/auro-counter-group.d.ts +5 -2
- package/components/counter/dist/index.js +26 -5
- package/components/counter/dist/registered.js +26 -5
- package/components/datepicker/demo/api.md +1 -0
- package/components/datepicker/demo/api.min.js +36 -4
- package/components/datepicker/demo/index.min.js +36 -4
- package/components/datepicker/dist/auro-datepicker.d.ts +13 -0
- package/components/datepicker/dist/index.js +36 -4
- package/components/datepicker/dist/registered.js +36 -4
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +21 -3
- package/components/dropdown/demo/index.md +83 -0
- package/components/dropdown/demo/index.min.js +21 -3
- package/components/dropdown/dist/auro-dropdown.d.ts +12 -1
- package/components/dropdown/dist/index.js +21 -3
- package/components/dropdown/dist/registered.js +21 -3
- package/components/form/demo/autocomplete.html +15 -0
- package/components/select/demo/api.md +1 -1
- package/components/select/demo/api.min.js +26 -5
- package/components/select/demo/index.md +46 -1
- package/components/select/demo/index.min.js +26 -5
- package/components/select/dist/auro-select.d.ts +5 -2
- package/components/select/dist/index.js +26 -5
- package/components/select/dist/registered.js +26 -5
- package/package.json +1 -1
|
@@ -3492,6 +3492,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
3492
3492
|
|
|
3493
3493
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3494
3494
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3495
|
+
'xl',
|
|
3495
3496
|
'lg',
|
|
3496
3497
|
'md',
|
|
3497
3498
|
'sm',
|
|
@@ -3563,6 +3564,7 @@ class AuroDropdownBib extends r {
|
|
|
3563
3564
|
|
|
3564
3565
|
set mobileFullscreenBreakpoint(value) {
|
|
3565
3566
|
// verify the defined breakpoint is valid and exit out if not
|
|
3567
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3566
3568
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3567
3569
|
if (!validatedValue) {
|
|
3568
3570
|
this._mobileBreakpointValue = undefined;
|
|
@@ -4088,7 +4090,12 @@ class AuroDropdown extends r {
|
|
|
4088
4090
|
},
|
|
4089
4091
|
|
|
4090
4092
|
/**
|
|
4091
|
-
* Defines the screen size breakpoint (`
|
|
4093
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
4094
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4095
|
+
*
|
|
4096
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4097
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4098
|
+
* @default sm
|
|
4092
4099
|
*/
|
|
4093
4100
|
fullscreenBreakpoint: {
|
|
4094
4101
|
type: String,
|
|
@@ -4228,6 +4235,15 @@ class AuroDropdown extends r {
|
|
|
4228
4235
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
4229
4236
|
}
|
|
4230
4237
|
|
|
4238
|
+
/**
|
|
4239
|
+
* Accessor for reusing the focusable entity query string.
|
|
4240
|
+
* @private
|
|
4241
|
+
* @returns {string}
|
|
4242
|
+
*/
|
|
4243
|
+
get focusableEntityQuery () {
|
|
4244
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
4245
|
+
}
|
|
4246
|
+
|
|
4231
4247
|
connectedCallback() {
|
|
4232
4248
|
super.connectedCallback();
|
|
4233
4249
|
}
|
|
@@ -4241,6 +4257,8 @@ class AuroDropdown extends r {
|
|
|
4241
4257
|
updated(changedProperties) {
|
|
4242
4258
|
this.floater.handleUpdate(changedProperties);
|
|
4243
4259
|
|
|
4260
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
4261
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
4244
4262
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
4245
4263
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
4246
4264
|
}
|
|
@@ -4391,7 +4409,7 @@ class AuroDropdown extends r {
|
|
|
4391
4409
|
|
|
4392
4410
|
this.triggerContentSlot.forEach((node) => {
|
|
4393
4411
|
if (node.querySelectorAll) {
|
|
4394
|
-
const auroElements = node.querySelectorAll(
|
|
4412
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4395
4413
|
auroElements.forEach((auroEl) => {
|
|
4396
4414
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
4397
4415
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4412,7 +4430,7 @@ class AuroDropdown extends r {
|
|
|
4412
4430
|
|
|
4413
4431
|
this.triggerContentSlot.forEach((node) => {
|
|
4414
4432
|
if (node.querySelectorAll) {
|
|
4415
|
-
const auroElements = node.querySelectorAll(
|
|
4433
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4416
4434
|
auroElements.forEach((auroEl) => {
|
|
4417
4435
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
4418
4436
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5636,8 +5654,11 @@ class AuroSelect extends r {
|
|
|
5636
5654
|
},
|
|
5637
5655
|
|
|
5638
5656
|
/**
|
|
5639
|
-
* Defines the screen size breakpoint (`
|
|
5640
|
-
*
|
|
5657
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5658
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5659
|
+
*
|
|
5660
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5661
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5641
5662
|
* @default sm
|
|
5642
5663
|
*/
|
|
5643
5664
|
fullscreenBreakpoint: {
|
|
@@ -36,8 +36,11 @@ export class AuroSelect extends LitElement {
|
|
|
36
36
|
reflect: boolean;
|
|
37
37
|
};
|
|
38
38
|
/**
|
|
39
|
-
* Defines the screen size breakpoint (`
|
|
40
|
-
*
|
|
39
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
40
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
41
|
+
*
|
|
42
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
43
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
41
44
|
* @default sm
|
|
42
45
|
*/
|
|
43
46
|
fullscreenBreakpoint: {
|
|
@@ -3445,6 +3445,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
3445
3445
|
|
|
3446
3446
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3447
3447
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3448
|
+
'xl',
|
|
3448
3449
|
'lg',
|
|
3449
3450
|
'md',
|
|
3450
3451
|
'sm',
|
|
@@ -3516,6 +3517,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3516
3517
|
|
|
3517
3518
|
set mobileFullscreenBreakpoint(value) {
|
|
3518
3519
|
// verify the defined breakpoint is valid and exit out if not
|
|
3520
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3519
3521
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3520
3522
|
if (!validatedValue) {
|
|
3521
3523
|
this._mobileBreakpointValue = undefined;
|
|
@@ -4041,7 +4043,12 @@ class AuroDropdown extends LitElement {
|
|
|
4041
4043
|
},
|
|
4042
4044
|
|
|
4043
4045
|
/**
|
|
4044
|
-
* Defines the screen size breakpoint (`
|
|
4046
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
4047
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4048
|
+
*
|
|
4049
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4050
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4051
|
+
* @default sm
|
|
4045
4052
|
*/
|
|
4046
4053
|
fullscreenBreakpoint: {
|
|
4047
4054
|
type: String,
|
|
@@ -4181,6 +4188,15 @@ class AuroDropdown extends LitElement {
|
|
|
4181
4188
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
4182
4189
|
}
|
|
4183
4190
|
|
|
4191
|
+
/**
|
|
4192
|
+
* Accessor for reusing the focusable entity query string.
|
|
4193
|
+
* @private
|
|
4194
|
+
* @returns {string}
|
|
4195
|
+
*/
|
|
4196
|
+
get focusableEntityQuery () {
|
|
4197
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4184
4200
|
connectedCallback() {
|
|
4185
4201
|
super.connectedCallback();
|
|
4186
4202
|
}
|
|
@@ -4194,6 +4210,8 @@ class AuroDropdown extends LitElement {
|
|
|
4194
4210
|
updated(changedProperties) {
|
|
4195
4211
|
this.floater.handleUpdate(changedProperties);
|
|
4196
4212
|
|
|
4213
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
4214
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
4197
4215
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
4198
4216
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
4199
4217
|
}
|
|
@@ -4344,7 +4362,7 @@ class AuroDropdown extends LitElement {
|
|
|
4344
4362
|
|
|
4345
4363
|
this.triggerContentSlot.forEach((node) => {
|
|
4346
4364
|
if (node.querySelectorAll) {
|
|
4347
|
-
const auroElements = node.querySelectorAll(
|
|
4365
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4348
4366
|
auroElements.forEach((auroEl) => {
|
|
4349
4367
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
4350
4368
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4365,7 +4383,7 @@ class AuroDropdown extends LitElement {
|
|
|
4365
4383
|
|
|
4366
4384
|
this.triggerContentSlot.forEach((node) => {
|
|
4367
4385
|
if (node.querySelectorAll) {
|
|
4368
|
-
const auroElements = node.querySelectorAll(
|
|
4386
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4369
4387
|
auroElements.forEach((auroEl) => {
|
|
4370
4388
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
4371
4389
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5589,8 +5607,11 @@ class AuroSelect extends LitElement {
|
|
|
5589
5607
|
},
|
|
5590
5608
|
|
|
5591
5609
|
/**
|
|
5592
|
-
* Defines the screen size breakpoint (`
|
|
5593
|
-
*
|
|
5610
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5611
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5612
|
+
*
|
|
5613
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5614
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5594
5615
|
* @default sm
|
|
5595
5616
|
*/
|
|
5596
5617
|
fullscreenBreakpoint: {
|
|
@@ -3445,6 +3445,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
3445
3445
|
|
|
3446
3446
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3447
3447
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3448
|
+
'xl',
|
|
3448
3449
|
'lg',
|
|
3449
3450
|
'md',
|
|
3450
3451
|
'sm',
|
|
@@ -3516,6 +3517,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3516
3517
|
|
|
3517
3518
|
set mobileFullscreenBreakpoint(value) {
|
|
3518
3519
|
// verify the defined breakpoint is valid and exit out if not
|
|
3520
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3519
3521
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3520
3522
|
if (!validatedValue) {
|
|
3521
3523
|
this._mobileBreakpointValue = undefined;
|
|
@@ -4041,7 +4043,12 @@ class AuroDropdown extends LitElement {
|
|
|
4041
4043
|
},
|
|
4042
4044
|
|
|
4043
4045
|
/**
|
|
4044
|
-
* Defines the screen size breakpoint (`
|
|
4046
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
4047
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4048
|
+
*
|
|
4049
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4050
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4051
|
+
* @default sm
|
|
4045
4052
|
*/
|
|
4046
4053
|
fullscreenBreakpoint: {
|
|
4047
4054
|
type: String,
|
|
@@ -4181,6 +4188,15 @@ class AuroDropdown extends LitElement {
|
|
|
4181
4188
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
4182
4189
|
}
|
|
4183
4190
|
|
|
4191
|
+
/**
|
|
4192
|
+
* Accessor for reusing the focusable entity query string.
|
|
4193
|
+
* @private
|
|
4194
|
+
* @returns {string}
|
|
4195
|
+
*/
|
|
4196
|
+
get focusableEntityQuery () {
|
|
4197
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
4198
|
+
}
|
|
4199
|
+
|
|
4184
4200
|
connectedCallback() {
|
|
4185
4201
|
super.connectedCallback();
|
|
4186
4202
|
}
|
|
@@ -4194,6 +4210,8 @@ class AuroDropdown extends LitElement {
|
|
|
4194
4210
|
updated(changedProperties) {
|
|
4195
4211
|
this.floater.handleUpdate(changedProperties);
|
|
4196
4212
|
|
|
4213
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
4214
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
4197
4215
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
4198
4216
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
4199
4217
|
}
|
|
@@ -4344,7 +4362,7 @@ class AuroDropdown extends LitElement {
|
|
|
4344
4362
|
|
|
4345
4363
|
this.triggerContentSlot.forEach((node) => {
|
|
4346
4364
|
if (node.querySelectorAll) {
|
|
4347
|
-
const auroElements = node.querySelectorAll(
|
|
4365
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4348
4366
|
auroElements.forEach((auroEl) => {
|
|
4349
4367
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
4350
4368
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4365,7 +4383,7 @@ class AuroDropdown extends LitElement {
|
|
|
4365
4383
|
|
|
4366
4384
|
this.triggerContentSlot.forEach((node) => {
|
|
4367
4385
|
if (node.querySelectorAll) {
|
|
4368
|
-
const auroElements = node.querySelectorAll(
|
|
4386
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4369
4387
|
auroElements.forEach((auroEl) => {
|
|
4370
4388
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
4371
4389
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5589,8 +5607,11 @@ class AuroSelect extends LitElement {
|
|
|
5589
5607
|
},
|
|
5590
5608
|
|
|
5591
5609
|
/**
|
|
5592
|
-
* Defines the screen size breakpoint (`
|
|
5593
|
-
*
|
|
5610
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5611
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5612
|
+
*
|
|
5613
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5614
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5594
5615
|
* @default sm
|
|
5595
5616
|
*/
|
|
5596
5617
|
fullscreenBreakpoint: {
|
package/package.json
CHANGED