@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
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
# [3.3.0-beta.1](https://github.com/AlaskaAirlines/auro-formkit/compare/v3.2.0...v3.3.0-beta.1) (2025-04-30)
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
### Bug Fixes
|
|
7
7
|
|
|
8
|
-
*
|
|
8
|
+
* pr feedback Apr 28, 2025 ([2dcd705](https://github.com/AlaskaAirlines/auro-formkit/commit/2dcd70543c206229286a69364b7e503c6e12fb5f))
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* surface fullscreenBreakpoint with new `disabled` value ([4f00b48](https://github.com/AlaskaAirlines/auro-formkit/commit/4f00b4808254490419ca6ae387344e49834ca896))
|
|
9
14
|
|
|
10
15
|
# [3.2.0](https://github.com/AlaskaAirlines/auro-formkit/compare/v3.1.0...v3.2.0) (2025-04-30)
|
|
11
16
|
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
| [checkmark](#checkmark) | `checkmark` | `boolean` | | When attribute is present auro-menu will apply checkmarks to selected options. |
|
|
13
13
|
| [disabled](#disabled) | `disabled` | `boolean` | | If set, disables the combobox. |
|
|
14
14
|
| [error](#error) | `error` | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
|
|
15
|
-
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`
|
|
15
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
16
16
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600 |
|
|
17
17
|
| [noFilter](#noFilter) | `noFilter` | `boolean` | | If set, combobox will not filter menuoptions based in input. |
|
|
18
18
|
| [noFlip](#noFlip) | `noFlip` | `boolean` | "false" | If declared, the bib will NOT flip to an alternate position<br />when there isn't enough space in the specified `placement`. |
|
|
@@ -3657,6 +3657,7 @@ var tokensCss$1$2 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
3657
3657
|
|
|
3658
3658
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3659
3659
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3660
|
+
'xl',
|
|
3660
3661
|
'lg',
|
|
3661
3662
|
'md',
|
|
3662
3663
|
'sm',
|
|
@@ -3728,6 +3729,7 @@ class AuroDropdownBib extends r$1 {
|
|
|
3728
3729
|
|
|
3729
3730
|
set mobileFullscreenBreakpoint(value) {
|
|
3730
3731
|
// verify the defined breakpoint is valid and exit out if not
|
|
3732
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3731
3733
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3732
3734
|
if (!validatedValue) {
|
|
3733
3735
|
this._mobileBreakpointValue = undefined;
|
|
@@ -4253,7 +4255,12 @@ class AuroDropdown extends r$1 {
|
|
|
4253
4255
|
},
|
|
4254
4256
|
|
|
4255
4257
|
/**
|
|
4256
|
-
* Defines the screen size breakpoint (`
|
|
4258
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
4259
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4260
|
+
*
|
|
4261
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4262
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4263
|
+
* @default sm
|
|
4257
4264
|
*/
|
|
4258
4265
|
fullscreenBreakpoint: {
|
|
4259
4266
|
type: String,
|
|
@@ -4393,6 +4400,15 @@ class AuroDropdown extends r$1 {
|
|
|
4393
4400
|
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
4394
4401
|
}
|
|
4395
4402
|
|
|
4403
|
+
/**
|
|
4404
|
+
* Accessor for reusing the focusable entity query string.
|
|
4405
|
+
* @private
|
|
4406
|
+
* @returns {string}
|
|
4407
|
+
*/
|
|
4408
|
+
get focusableEntityQuery () {
|
|
4409
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
4410
|
+
}
|
|
4411
|
+
|
|
4396
4412
|
connectedCallback() {
|
|
4397
4413
|
super.connectedCallback();
|
|
4398
4414
|
}
|
|
@@ -4406,6 +4422,8 @@ class AuroDropdown extends r$1 {
|
|
|
4406
4422
|
updated(changedProperties) {
|
|
4407
4423
|
this.floater.handleUpdate(changedProperties);
|
|
4408
4424
|
|
|
4425
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
4426
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
4409
4427
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
4410
4428
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
4411
4429
|
}
|
|
@@ -4556,7 +4574,7 @@ class AuroDropdown extends r$1 {
|
|
|
4556
4574
|
|
|
4557
4575
|
this.triggerContentSlot.forEach((node) => {
|
|
4558
4576
|
if (node.querySelectorAll) {
|
|
4559
|
-
const auroElements = node.querySelectorAll(
|
|
4577
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4560
4578
|
auroElements.forEach((auroEl) => {
|
|
4561
4579
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
4562
4580
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4577,7 +4595,7 @@ class AuroDropdown extends r$1 {
|
|
|
4577
4595
|
|
|
4578
4596
|
this.triggerContentSlot.forEach((node) => {
|
|
4579
4597
|
if (node.querySelectorAll) {
|
|
4580
|
-
const auroElements = node.querySelectorAll(
|
|
4598
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4581
4599
|
auroElements.forEach((auroEl) => {
|
|
4582
4600
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
4583
4601
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -12988,8 +13006,11 @@ class AuroCombobox extends r$1 {
|
|
|
12988
13006
|
},
|
|
12989
13007
|
|
|
12990
13008
|
/**
|
|
12991
|
-
* Defines the screen size breakpoint (`
|
|
12992
|
-
*
|
|
13009
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
13010
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
13011
|
+
*
|
|
13012
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
13013
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
12993
13014
|
* @default sm
|
|
12994
13015
|
*/
|
|
12995
13016
|
fullscreenBreakpoint: {
|
|
@@ -13598,10 +13619,6 @@ class AuroCombobox extends r$1 {
|
|
|
13598
13619
|
const [inputValue] = this.value;
|
|
13599
13620
|
this.input.value = inputValue;
|
|
13600
13621
|
|
|
13601
|
-
// Update the menu value and matchWord
|
|
13602
|
-
this.menu.matchWord = inputValue;
|
|
13603
|
-
this.handleMenuOptions();
|
|
13604
|
-
|
|
13605
13622
|
// If the value got set programmatically make sure we hide the bib
|
|
13606
13623
|
// when input is not taking the focus (input can be in dropdown.trigger or in bibtemplate)
|
|
13607
13624
|
if (!this.contains(document.activeElement) && !this.bibtemplate.contains(document.activeElement)) {
|
|
@@ -3515,6 +3515,7 @@ var tokensCss$1$2 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
3515
3515
|
|
|
3516
3516
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3517
3517
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3518
|
+
'xl',
|
|
3518
3519
|
'lg',
|
|
3519
3520
|
'md',
|
|
3520
3521
|
'sm',
|
|
@@ -3586,6 +3587,7 @@ class AuroDropdownBib extends r$1 {
|
|
|
3586
3587
|
|
|
3587
3588
|
set mobileFullscreenBreakpoint(value) {
|
|
3588
3589
|
// verify the defined breakpoint is valid and exit out if not
|
|
3590
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3589
3591
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3590
3592
|
if (!validatedValue) {
|
|
3591
3593
|
this._mobileBreakpointValue = undefined;
|
|
@@ -4111,7 +4113,12 @@ class AuroDropdown extends r$1 {
|
|
|
4111
4113
|
},
|
|
4112
4114
|
|
|
4113
4115
|
/**
|
|
4114
|
-
* Defines the screen size breakpoint (`
|
|
4116
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
4117
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4118
|
+
*
|
|
4119
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4120
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4121
|
+
* @default sm
|
|
4115
4122
|
*/
|
|
4116
4123
|
fullscreenBreakpoint: {
|
|
4117
4124
|
type: String,
|
|
@@ -4251,6 +4258,15 @@ class AuroDropdown extends r$1 {
|
|
|
4251
4258
|
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
4252
4259
|
}
|
|
4253
4260
|
|
|
4261
|
+
/**
|
|
4262
|
+
* Accessor for reusing the focusable entity query string.
|
|
4263
|
+
* @private
|
|
4264
|
+
* @returns {string}
|
|
4265
|
+
*/
|
|
4266
|
+
get focusableEntityQuery () {
|
|
4267
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
4268
|
+
}
|
|
4269
|
+
|
|
4254
4270
|
connectedCallback() {
|
|
4255
4271
|
super.connectedCallback();
|
|
4256
4272
|
}
|
|
@@ -4264,6 +4280,8 @@ class AuroDropdown extends r$1 {
|
|
|
4264
4280
|
updated(changedProperties) {
|
|
4265
4281
|
this.floater.handleUpdate(changedProperties);
|
|
4266
4282
|
|
|
4283
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
4284
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
4267
4285
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
4268
4286
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
4269
4287
|
}
|
|
@@ -4414,7 +4432,7 @@ class AuroDropdown extends r$1 {
|
|
|
4414
4432
|
|
|
4415
4433
|
this.triggerContentSlot.forEach((node) => {
|
|
4416
4434
|
if (node.querySelectorAll) {
|
|
4417
|
-
const auroElements = node.querySelectorAll(
|
|
4435
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4418
4436
|
auroElements.forEach((auroEl) => {
|
|
4419
4437
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
4420
4438
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4435,7 +4453,7 @@ class AuroDropdown extends r$1 {
|
|
|
4435
4453
|
|
|
4436
4454
|
this.triggerContentSlot.forEach((node) => {
|
|
4437
4455
|
if (node.querySelectorAll) {
|
|
4438
|
-
const auroElements = node.querySelectorAll(
|
|
4456
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4439
4457
|
auroElements.forEach((auroEl) => {
|
|
4440
4458
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
4441
4459
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -12846,8 +12864,11 @@ class AuroCombobox extends r$1 {
|
|
|
12846
12864
|
},
|
|
12847
12865
|
|
|
12848
12866
|
/**
|
|
12849
|
-
* Defines the screen size breakpoint (`
|
|
12850
|
-
*
|
|
12867
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
12868
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
12869
|
+
*
|
|
12870
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
12871
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
12851
12872
|
* @default sm
|
|
12852
12873
|
*/
|
|
12853
12874
|
fullscreenBreakpoint: {
|
|
@@ -13456,10 +13477,6 @@ class AuroCombobox extends r$1 {
|
|
|
13456
13477
|
const [inputValue] = this.value;
|
|
13457
13478
|
this.input.value = inputValue;
|
|
13458
13479
|
|
|
13459
|
-
// Update the menu value and matchWord
|
|
13460
|
-
this.menu.matchWord = inputValue;
|
|
13461
|
-
this.handleMenuOptions();
|
|
13462
|
-
|
|
13463
13480
|
// If the value got set programmatically make sure we hide the bib
|
|
13464
13481
|
// when input is not taking the focus (input can be in dropdown.trigger or in bibtemplate)
|
|
13465
13482
|
if (!this.contains(document.activeElement) && !this.bibtemplate.contains(document.activeElement)) {
|
|
@@ -183,8 +183,11 @@ export class AuroCombobox extends LitElement {
|
|
|
183
183
|
reflect: boolean;
|
|
184
184
|
};
|
|
185
185
|
/**
|
|
186
|
-
* Defines the screen size breakpoint (`
|
|
187
|
-
*
|
|
186
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
187
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
188
|
+
*
|
|
189
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
190
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
188
191
|
* @default sm
|
|
189
192
|
*/
|
|
190
193
|
fullscreenBreakpoint: {
|
|
@@ -3446,6 +3446,7 @@ var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
3446
3446
|
|
|
3447
3447
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3448
3448
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3449
|
+
'xl',
|
|
3449
3450
|
'lg',
|
|
3450
3451
|
'md',
|
|
3451
3452
|
'sm',
|
|
@@ -3517,6 +3518,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3517
3518
|
|
|
3518
3519
|
set mobileFullscreenBreakpoint(value) {
|
|
3519
3520
|
// verify the defined breakpoint is valid and exit out if not
|
|
3521
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3520
3522
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3521
3523
|
if (!validatedValue) {
|
|
3522
3524
|
this._mobileBreakpointValue = undefined;
|
|
@@ -4042,7 +4044,12 @@ class AuroDropdown extends LitElement {
|
|
|
4042
4044
|
},
|
|
4043
4045
|
|
|
4044
4046
|
/**
|
|
4045
|
-
* Defines the screen size breakpoint (`
|
|
4047
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
4048
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4049
|
+
*
|
|
4050
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4051
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4052
|
+
* @default sm
|
|
4046
4053
|
*/
|
|
4047
4054
|
fullscreenBreakpoint: {
|
|
4048
4055
|
type: String,
|
|
@@ -4182,6 +4189,15 @@ class AuroDropdown extends LitElement {
|
|
|
4182
4189
|
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
4183
4190
|
}
|
|
4184
4191
|
|
|
4192
|
+
/**
|
|
4193
|
+
* Accessor for reusing the focusable entity query string.
|
|
4194
|
+
* @private
|
|
4195
|
+
* @returns {string}
|
|
4196
|
+
*/
|
|
4197
|
+
get focusableEntityQuery () {
|
|
4198
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4185
4201
|
connectedCallback() {
|
|
4186
4202
|
super.connectedCallback();
|
|
4187
4203
|
}
|
|
@@ -4195,6 +4211,8 @@ class AuroDropdown extends LitElement {
|
|
|
4195
4211
|
updated(changedProperties) {
|
|
4196
4212
|
this.floater.handleUpdate(changedProperties);
|
|
4197
4213
|
|
|
4214
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
4215
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
4198
4216
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
4199
4217
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
4200
4218
|
}
|
|
@@ -4345,7 +4363,7 @@ class AuroDropdown extends LitElement {
|
|
|
4345
4363
|
|
|
4346
4364
|
this.triggerContentSlot.forEach((node) => {
|
|
4347
4365
|
if (node.querySelectorAll) {
|
|
4348
|
-
const auroElements = node.querySelectorAll(
|
|
4366
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4349
4367
|
auroElements.forEach((auroEl) => {
|
|
4350
4368
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
4351
4369
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4366,7 +4384,7 @@ class AuroDropdown extends LitElement {
|
|
|
4366
4384
|
|
|
4367
4385
|
this.triggerContentSlot.forEach((node) => {
|
|
4368
4386
|
if (node.querySelectorAll) {
|
|
4369
|
-
const auroElements = node.querySelectorAll(
|
|
4387
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4370
4388
|
auroElements.forEach((auroEl) => {
|
|
4371
4389
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
4372
4390
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -12764,8 +12782,11 @@ class AuroCombobox extends LitElement {
|
|
|
12764
12782
|
},
|
|
12765
12783
|
|
|
12766
12784
|
/**
|
|
12767
|
-
* Defines the screen size breakpoint (`
|
|
12768
|
-
*
|
|
12785
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
12786
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
12787
|
+
*
|
|
12788
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
12789
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
12769
12790
|
* @default sm
|
|
12770
12791
|
*/
|
|
12771
12792
|
fullscreenBreakpoint: {
|
|
@@ -13374,10 +13395,6 @@ class AuroCombobox extends LitElement {
|
|
|
13374
13395
|
const [inputValue] = this.value;
|
|
13375
13396
|
this.input.value = inputValue;
|
|
13376
13397
|
|
|
13377
|
-
// Update the menu value and matchWord
|
|
13378
|
-
this.menu.matchWord = inputValue;
|
|
13379
|
-
this.handleMenuOptions();
|
|
13380
|
-
|
|
13381
13398
|
// If the value got set programmatically make sure we hide the bib
|
|
13382
13399
|
// when input is not taking the focus (input can be in dropdown.trigger or in bibtemplate)
|
|
13383
13400
|
if (!this.contains(document.activeElement) && !this.bibtemplate.contains(document.activeElement)) {
|
|
@@ -3446,6 +3446,7 @@ var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
3446
3446
|
|
|
3447
3447
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
3448
3448
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
3449
|
+
'xl',
|
|
3449
3450
|
'lg',
|
|
3450
3451
|
'md',
|
|
3451
3452
|
'sm',
|
|
@@ -3517,6 +3518,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
3517
3518
|
|
|
3518
3519
|
set mobileFullscreenBreakpoint(value) {
|
|
3519
3520
|
// verify the defined breakpoint is valid and exit out if not
|
|
3521
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
3520
3522
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
3521
3523
|
if (!validatedValue) {
|
|
3522
3524
|
this._mobileBreakpointValue = undefined;
|
|
@@ -4042,7 +4044,12 @@ class AuroDropdown extends LitElement {
|
|
|
4042
4044
|
},
|
|
4043
4045
|
|
|
4044
4046
|
/**
|
|
4045
|
-
* Defines the screen size breakpoint (`
|
|
4047
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
4048
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
4049
|
+
*
|
|
4050
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
4051
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
4052
|
+
* @default sm
|
|
4046
4053
|
*/
|
|
4047
4054
|
fullscreenBreakpoint: {
|
|
4048
4055
|
type: String,
|
|
@@ -4182,6 +4189,15 @@ class AuroDropdown extends LitElement {
|
|
|
4182
4189
|
AuroLibraryRuntimeUtils$1$2.prototype.registerComponent(name, AuroDropdown);
|
|
4183
4190
|
}
|
|
4184
4191
|
|
|
4192
|
+
/**
|
|
4193
|
+
* Accessor for reusing the focusable entity query string.
|
|
4194
|
+
* @private
|
|
4195
|
+
* @returns {string}
|
|
4196
|
+
*/
|
|
4197
|
+
get focusableEntityQuery () {
|
|
4198
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
4199
|
+
}
|
|
4200
|
+
|
|
4185
4201
|
connectedCallback() {
|
|
4186
4202
|
super.connectedCallback();
|
|
4187
4203
|
}
|
|
@@ -4195,6 +4211,8 @@ class AuroDropdown extends LitElement {
|
|
|
4195
4211
|
updated(changedProperties) {
|
|
4196
4212
|
this.floater.handleUpdate(changedProperties);
|
|
4197
4213
|
|
|
4214
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
4215
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
4198
4216
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
4199
4217
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
4200
4218
|
}
|
|
@@ -4345,7 +4363,7 @@ class AuroDropdown extends LitElement {
|
|
|
4345
4363
|
|
|
4346
4364
|
this.triggerContentSlot.forEach((node) => {
|
|
4347
4365
|
if (node.querySelectorAll) {
|
|
4348
|
-
const auroElements = node.querySelectorAll(
|
|
4366
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4349
4367
|
auroElements.forEach((auroEl) => {
|
|
4350
4368
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
4351
4369
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -4366,7 +4384,7 @@ class AuroDropdown extends LitElement {
|
|
|
4366
4384
|
|
|
4367
4385
|
this.triggerContentSlot.forEach((node) => {
|
|
4368
4386
|
if (node.querySelectorAll) {
|
|
4369
|
-
const auroElements = node.querySelectorAll(
|
|
4387
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
4370
4388
|
auroElements.forEach((auroEl) => {
|
|
4371
4389
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
4372
4390
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -12764,8 +12782,11 @@ class AuroCombobox extends LitElement {
|
|
|
12764
12782
|
},
|
|
12765
12783
|
|
|
12766
12784
|
/**
|
|
12767
|
-
* Defines the screen size breakpoint (`
|
|
12768
|
-
*
|
|
12785
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
12786
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
12787
|
+
*
|
|
12788
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
12789
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
12769
12790
|
* @default sm
|
|
12770
12791
|
*/
|
|
12771
12792
|
fullscreenBreakpoint: {
|
|
@@ -13374,10 +13395,6 @@ class AuroCombobox extends LitElement {
|
|
|
13374
13395
|
const [inputValue] = this.value;
|
|
13375
13396
|
this.input.value = inputValue;
|
|
13376
13397
|
|
|
13377
|
-
// Update the menu value and matchWord
|
|
13378
|
-
this.menu.matchWord = inputValue;
|
|
13379
|
-
this.handleMenuOptions();
|
|
13380
|
-
|
|
13381
13398
|
// If the value got set programmatically make sure we hide the bib
|
|
13382
13399
|
// when input is not taking the focus (input can be in dropdown.trigger or in bibtemplate)
|
|
13383
13400
|
if (!this.contains(document.activeElement) && !this.bibtemplate.contains(document.activeElement)) {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
| Property | Attribute | Type | Default | Description |
|
|
43
43
|
|---------------------------|---------------------------|-----------|----------------|--------------------------------------------------|
|
|
44
44
|
| [autoPlacement](#autoPlacement) | `autoPlacement` | `boolean` | "false" | If declared, bib's position will be automatically calculated where to appear. |
|
|
45
|
-
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`
|
|
45
|
+
| [fullscreenBreakpoint](#fullscreenBreakpoint) | `fullscreenBreakpoint` | `string` | "sm" | Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)<br />at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.<br /><br />When expanded, the dropdown will automatically display in fullscreen mode<br />if the screen size is equal to or smaller than the selected breakpoint. |
|
|
46
46
|
| [isDropdown](#isDropdown) | `isDropdown` | `boolean` | false | Indicates if the counter group is displayed as a dropdown. |
|
|
47
47
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
48
48
|
| [max](#max) | `max` | `number` | "undefined" | The maximum value allowed for the whole group of counters. |
|
|
@@ -4660,6 +4660,7 @@ var tokensCss$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
4660
4660
|
|
|
4661
4661
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4662
4662
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4663
|
+
'xl',
|
|
4663
4664
|
'lg',
|
|
4664
4665
|
'md',
|
|
4665
4666
|
'sm',
|
|
@@ -4731,6 +4732,7 @@ class AuroDropdownBib extends r {
|
|
|
4731
4732
|
|
|
4732
4733
|
set mobileFullscreenBreakpoint(value) {
|
|
4733
4734
|
// verify the defined breakpoint is valid and exit out if not
|
|
4735
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
4734
4736
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
4735
4737
|
if (!validatedValue) {
|
|
4736
4738
|
this._mobileBreakpointValue = undefined;
|
|
@@ -5256,7 +5258,12 @@ class AuroDropdown extends r {
|
|
|
5256
5258
|
},
|
|
5257
5259
|
|
|
5258
5260
|
/**
|
|
5259
|
-
* Defines the screen size breakpoint (`
|
|
5261
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5262
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5263
|
+
*
|
|
5264
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5265
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5266
|
+
* @default sm
|
|
5260
5267
|
*/
|
|
5261
5268
|
fullscreenBreakpoint: {
|
|
5262
5269
|
type: String,
|
|
@@ -5396,6 +5403,15 @@ class AuroDropdown extends r {
|
|
|
5396
5403
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
5397
5404
|
}
|
|
5398
5405
|
|
|
5406
|
+
/**
|
|
5407
|
+
* Accessor for reusing the focusable entity query string.
|
|
5408
|
+
* @private
|
|
5409
|
+
* @returns {string}
|
|
5410
|
+
*/
|
|
5411
|
+
get focusableEntityQuery () {
|
|
5412
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
5413
|
+
}
|
|
5414
|
+
|
|
5399
5415
|
connectedCallback() {
|
|
5400
5416
|
super.connectedCallback();
|
|
5401
5417
|
}
|
|
@@ -5409,6 +5425,8 @@ class AuroDropdown extends r {
|
|
|
5409
5425
|
updated(changedProperties) {
|
|
5410
5426
|
this.floater.handleUpdate(changedProperties);
|
|
5411
5427
|
|
|
5428
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
5429
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
5412
5430
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
5413
5431
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
5414
5432
|
}
|
|
@@ -5559,7 +5577,7 @@ class AuroDropdown extends r {
|
|
|
5559
5577
|
|
|
5560
5578
|
this.triggerContentSlot.forEach((node) => {
|
|
5561
5579
|
if (node.querySelectorAll) {
|
|
5562
|
-
const auroElements = node.querySelectorAll(
|
|
5580
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
5563
5581
|
auroElements.forEach((auroEl) => {
|
|
5564
5582
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
5565
5583
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5580,7 +5598,7 @@ class AuroDropdown extends r {
|
|
|
5580
5598
|
|
|
5581
5599
|
this.triggerContentSlot.forEach((node) => {
|
|
5582
5600
|
if (node.querySelectorAll) {
|
|
5583
|
-
const auroElements = node.querySelectorAll(
|
|
5601
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
5584
5602
|
auroElements.forEach((auroEl) => {
|
|
5585
5603
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
5586
5604
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -6710,8 +6728,11 @@ class AuroCounterGroup extends r {
|
|
|
6710
6728
|
},
|
|
6711
6729
|
|
|
6712
6730
|
/**
|
|
6713
|
-
* Defines the screen size breakpoint (`
|
|
6714
|
-
*
|
|
6731
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
6732
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6733
|
+
*
|
|
6734
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6735
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6715
6736
|
* @default sm
|
|
6716
6737
|
*/
|
|
6717
6738
|
fullscreenBreakpoint: {
|
|
@@ -4660,6 +4660,7 @@ var tokensCss$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
4660
4660
|
|
|
4661
4661
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4662
4662
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4663
|
+
'xl',
|
|
4663
4664
|
'lg',
|
|
4664
4665
|
'md',
|
|
4665
4666
|
'sm',
|
|
@@ -4731,6 +4732,7 @@ class AuroDropdownBib extends r {
|
|
|
4731
4732
|
|
|
4732
4733
|
set mobileFullscreenBreakpoint(value) {
|
|
4733
4734
|
// verify the defined breakpoint is valid and exit out if not
|
|
4735
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
4734
4736
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
4735
4737
|
if (!validatedValue) {
|
|
4736
4738
|
this._mobileBreakpointValue = undefined;
|
|
@@ -5256,7 +5258,12 @@ class AuroDropdown extends r {
|
|
|
5256
5258
|
},
|
|
5257
5259
|
|
|
5258
5260
|
/**
|
|
5259
|
-
* Defines the screen size breakpoint (`
|
|
5261
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5262
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5263
|
+
*
|
|
5264
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5265
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5266
|
+
* @default sm
|
|
5260
5267
|
*/
|
|
5261
5268
|
fullscreenBreakpoint: {
|
|
5262
5269
|
type: String,
|
|
@@ -5396,6 +5403,15 @@ class AuroDropdown extends r {
|
|
|
5396
5403
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
5397
5404
|
}
|
|
5398
5405
|
|
|
5406
|
+
/**
|
|
5407
|
+
* Accessor for reusing the focusable entity query string.
|
|
5408
|
+
* @private
|
|
5409
|
+
* @returns {string}
|
|
5410
|
+
*/
|
|
5411
|
+
get focusableEntityQuery () {
|
|
5412
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
5413
|
+
}
|
|
5414
|
+
|
|
5399
5415
|
connectedCallback() {
|
|
5400
5416
|
super.connectedCallback();
|
|
5401
5417
|
}
|
|
@@ -5409,6 +5425,8 @@ class AuroDropdown extends r {
|
|
|
5409
5425
|
updated(changedProperties) {
|
|
5410
5426
|
this.floater.handleUpdate(changedProperties);
|
|
5411
5427
|
|
|
5428
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
5429
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
5412
5430
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
5413
5431
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
5414
5432
|
}
|
|
@@ -5559,7 +5577,7 @@ class AuroDropdown extends r {
|
|
|
5559
5577
|
|
|
5560
5578
|
this.triggerContentSlot.forEach((node) => {
|
|
5561
5579
|
if (node.querySelectorAll) {
|
|
5562
|
-
const auroElements = node.querySelectorAll(
|
|
5580
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
5563
5581
|
auroElements.forEach((auroEl) => {
|
|
5564
5582
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
5565
5583
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5580,7 +5598,7 @@ class AuroDropdown extends r {
|
|
|
5580
5598
|
|
|
5581
5599
|
this.triggerContentSlot.forEach((node) => {
|
|
5582
5600
|
if (node.querySelectorAll) {
|
|
5583
|
-
const auroElements = node.querySelectorAll(
|
|
5601
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
5584
5602
|
auroElements.forEach((auroEl) => {
|
|
5585
5603
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
5586
5604
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -6710,8 +6728,11 @@ class AuroCounterGroup extends r {
|
|
|
6710
6728
|
},
|
|
6711
6729
|
|
|
6712
6730
|
/**
|
|
6713
|
-
* Defines the screen size breakpoint (`
|
|
6714
|
-
*
|
|
6731
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
6732
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6733
|
+
*
|
|
6734
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6735
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6715
6736
|
* @default sm
|
|
6716
6737
|
*/
|
|
6717
6738
|
fullscreenBreakpoint: {
|
|
@@ -25,8 +25,11 @@ export class AuroCounterGroup extends LitElement {
|
|
|
25
25
|
reflect: boolean;
|
|
26
26
|
};
|
|
27
27
|
/**
|
|
28
|
-
* Defines the screen size breakpoint (`
|
|
29
|
-
*
|
|
28
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
29
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
30
|
+
*
|
|
31
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
32
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
30
33
|
* @default sm
|
|
31
34
|
*/
|
|
32
35
|
fullscreenBreakpoint: {
|