@aurodesignsystem/auro-formkit 3.2.8 → 3.3.0-beta.2
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 +16 -0
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.md +1 -1
- package/components/combobox/demo/api.min.js +26 -5
- package/components/combobox/demo/index.min.js +26 -5
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/auro-combobox.d.ts +5 -2
- package/components/combobox/dist/index.js +26 -5
- package/components/combobox/dist/registered.js +26 -5
- package/components/counter/README.md +1 -1
- 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/demo/readme.md +1 -1
- 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/README.md +1 -1
- 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/demo/readme.md +1 -1
- 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/README.md +1 -1
- 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/demo/readme.md +1 -1
- 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/README.md +1 -1
- package/components/form/demo/autocomplete.html +15 -0
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/readme.md +1 -1
- package/components/menu/README.md +1 -1
- package/components/menu/demo/readme.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/select/README.md +1 -1
- 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/demo/readme.md +1 -1
- 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
|
@@ -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: {
|
|
@@ -4615,6 +4615,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
4615
4615
|
|
|
4616
4616
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4617
4617
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4618
|
+
'xl',
|
|
4618
4619
|
'lg',
|
|
4619
4620
|
'md',
|
|
4620
4621
|
'sm',
|
|
@@ -4686,6 +4687,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4686
4687
|
|
|
4687
4688
|
set mobileFullscreenBreakpoint(value) {
|
|
4688
4689
|
// verify the defined breakpoint is valid and exit out if not
|
|
4690
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
4689
4691
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
4690
4692
|
if (!validatedValue) {
|
|
4691
4693
|
this._mobileBreakpointValue = undefined;
|
|
@@ -5211,7 +5213,12 @@ class AuroDropdown extends LitElement {
|
|
|
5211
5213
|
},
|
|
5212
5214
|
|
|
5213
5215
|
/**
|
|
5214
|
-
* Defines the screen size breakpoint (`
|
|
5216
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5217
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5218
|
+
*
|
|
5219
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5220
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5221
|
+
* @default sm
|
|
5215
5222
|
*/
|
|
5216
5223
|
fullscreenBreakpoint: {
|
|
5217
5224
|
type: String,
|
|
@@ -5351,6 +5358,15 @@ class AuroDropdown extends LitElement {
|
|
|
5351
5358
|
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
5352
5359
|
}
|
|
5353
5360
|
|
|
5361
|
+
/**
|
|
5362
|
+
* Accessor for reusing the focusable entity query string.
|
|
5363
|
+
* @private
|
|
5364
|
+
* @returns {string}
|
|
5365
|
+
*/
|
|
5366
|
+
get focusableEntityQuery () {
|
|
5367
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5354
5370
|
connectedCallback() {
|
|
5355
5371
|
super.connectedCallback();
|
|
5356
5372
|
}
|
|
@@ -5364,6 +5380,8 @@ class AuroDropdown extends LitElement {
|
|
|
5364
5380
|
updated(changedProperties) {
|
|
5365
5381
|
this.floater.handleUpdate(changedProperties);
|
|
5366
5382
|
|
|
5383
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
5384
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
5367
5385
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
5368
5386
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
5369
5387
|
}
|
|
@@ -5514,7 +5532,7 @@ class AuroDropdown extends LitElement {
|
|
|
5514
5532
|
|
|
5515
5533
|
this.triggerContentSlot.forEach((node) => {
|
|
5516
5534
|
if (node.querySelectorAll) {
|
|
5517
|
-
const auroElements = node.querySelectorAll(
|
|
5535
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
5518
5536
|
auroElements.forEach((auroEl) => {
|
|
5519
5537
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
5520
5538
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5535,7 +5553,7 @@ class AuroDropdown extends LitElement {
|
|
|
5535
5553
|
|
|
5536
5554
|
this.triggerContentSlot.forEach((node) => {
|
|
5537
5555
|
if (node.querySelectorAll) {
|
|
5538
|
-
const auroElements = node.querySelectorAll(
|
|
5556
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
5539
5557
|
auroElements.forEach((auroEl) => {
|
|
5540
5558
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
5541
5559
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -6595,8 +6613,11 @@ class AuroCounterGroup extends LitElement {
|
|
|
6595
6613
|
},
|
|
6596
6614
|
|
|
6597
6615
|
/**
|
|
6598
|
-
* Defines the screen size breakpoint (`
|
|
6599
|
-
*
|
|
6616
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
6617
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6618
|
+
*
|
|
6619
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6620
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6600
6621
|
* @default sm
|
|
6601
6622
|
*/
|
|
6602
6623
|
fullscreenBreakpoint: {
|
|
@@ -4615,6 +4615,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
|
|
|
4615
4615
|
|
|
4616
4616
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
4617
4617
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
4618
|
+
'xl',
|
|
4618
4619
|
'lg',
|
|
4619
4620
|
'md',
|
|
4620
4621
|
'sm',
|
|
@@ -4686,6 +4687,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
4686
4687
|
|
|
4687
4688
|
set mobileFullscreenBreakpoint(value) {
|
|
4688
4689
|
// verify the defined breakpoint is valid and exit out if not
|
|
4690
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
4689
4691
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
4690
4692
|
if (!validatedValue) {
|
|
4691
4693
|
this._mobileBreakpointValue = undefined;
|
|
@@ -5211,7 +5213,12 @@ class AuroDropdown extends LitElement {
|
|
|
5211
5213
|
},
|
|
5212
5214
|
|
|
5213
5215
|
/**
|
|
5214
|
-
* Defines the screen size breakpoint (`
|
|
5216
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
5217
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
5218
|
+
*
|
|
5219
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
5220
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
5221
|
+
* @default sm
|
|
5215
5222
|
*/
|
|
5216
5223
|
fullscreenBreakpoint: {
|
|
5217
5224
|
type: String,
|
|
@@ -5351,6 +5358,15 @@ class AuroDropdown extends LitElement {
|
|
|
5351
5358
|
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
5352
5359
|
}
|
|
5353
5360
|
|
|
5361
|
+
/**
|
|
5362
|
+
* Accessor for reusing the focusable entity query string.
|
|
5363
|
+
* @private
|
|
5364
|
+
* @returns {string}
|
|
5365
|
+
*/
|
|
5366
|
+
get focusableEntityQuery () {
|
|
5367
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
5368
|
+
}
|
|
5369
|
+
|
|
5354
5370
|
connectedCallback() {
|
|
5355
5371
|
super.connectedCallback();
|
|
5356
5372
|
}
|
|
@@ -5364,6 +5380,8 @@ class AuroDropdown extends LitElement {
|
|
|
5364
5380
|
updated(changedProperties) {
|
|
5365
5381
|
this.floater.handleUpdate(changedProperties);
|
|
5366
5382
|
|
|
5383
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
5384
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
5367
5385
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
5368
5386
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
5369
5387
|
}
|
|
@@ -5514,7 +5532,7 @@ class AuroDropdown extends LitElement {
|
|
|
5514
5532
|
|
|
5515
5533
|
this.triggerContentSlot.forEach((node) => {
|
|
5516
5534
|
if (node.querySelectorAll) {
|
|
5517
|
-
const auroElements = node.querySelectorAll(
|
|
5535
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
5518
5536
|
auroElements.forEach((auroEl) => {
|
|
5519
5537
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
5520
5538
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -5535,7 +5553,7 @@ class AuroDropdown extends LitElement {
|
|
|
5535
5553
|
|
|
5536
5554
|
this.triggerContentSlot.forEach((node) => {
|
|
5537
5555
|
if (node.querySelectorAll) {
|
|
5538
|
-
const auroElements = node.querySelectorAll(
|
|
5556
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
5539
5557
|
auroElements.forEach((auroEl) => {
|
|
5540
5558
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
5541
5559
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -6595,8 +6613,11 @@ class AuroCounterGroup extends LitElement {
|
|
|
6595
6613
|
},
|
|
6596
6614
|
|
|
6597
6615
|
/**
|
|
6598
|
-
* Defines the screen size breakpoint (`
|
|
6599
|
-
*
|
|
6616
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
6617
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
6618
|
+
*
|
|
6619
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
6620
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
6600
6621
|
* @default sm
|
|
6601
6622
|
*/
|
|
6602
6623
|
fullscreenBreakpoint: {
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.8/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
| [disabled](#disabled) | `disabled` | | `boolean` | false | If set, disables the datepicker. |
|
|
16
16
|
| [error](#error) | `error` | | `string` | | When defined, sets persistent validity to `customError` and sets the validation message to the attribute value. |
|
|
17
17
|
| [format](#format) | `format` | | `string` | "mm/dd/yyyy" | Specifies the date format. The default is `mm/dd/yyyy`. |
|
|
18
|
+
| [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. |
|
|
18
19
|
| [largeFullscreenHeadline](#largeFullscreenHeadline) | `largeFullscreenHeadline` | | `boolean` | false | If declared, make bib.fullscreen.headline in HeadingDisplay.<br />Otherwise, Heading 600. |
|
|
19
20
|
| [maxDate](#maxDate) | `maxDate` | | `string` | | Maximum date. All dates after will be disabled. |
|
|
20
21
|
| [minDate](#minDate) | `minDate` | | `string` | | Minimum date. All dates before will be disabled. |
|
|
@@ -15129,6 +15129,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
15129
15129
|
|
|
15130
15130
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
15131
15131
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
15132
|
+
'xl',
|
|
15132
15133
|
'lg',
|
|
15133
15134
|
'md',
|
|
15134
15135
|
'sm',
|
|
@@ -15200,6 +15201,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
15200
15201
|
|
|
15201
15202
|
set mobileFullscreenBreakpoint(value) {
|
|
15202
15203
|
// verify the defined breakpoint is valid and exit out if not
|
|
15204
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
15203
15205
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
15204
15206
|
if (!validatedValue) {
|
|
15205
15207
|
this._mobileBreakpointValue = undefined;
|
|
@@ -15725,7 +15727,12 @@ class AuroDropdown extends i$2 {
|
|
|
15725
15727
|
},
|
|
15726
15728
|
|
|
15727
15729
|
/**
|
|
15728
|
-
* Defines the screen size breakpoint (`
|
|
15730
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
15731
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
15732
|
+
*
|
|
15733
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
15734
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
15735
|
+
* @default sm
|
|
15729
15736
|
*/
|
|
15730
15737
|
fullscreenBreakpoint: {
|
|
15731
15738
|
type: String,
|
|
@@ -15865,6 +15872,15 @@ class AuroDropdown extends i$2 {
|
|
|
15865
15872
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15866
15873
|
}
|
|
15867
15874
|
|
|
15875
|
+
/**
|
|
15876
|
+
* Accessor for reusing the focusable entity query string.
|
|
15877
|
+
* @private
|
|
15878
|
+
* @returns {string}
|
|
15879
|
+
*/
|
|
15880
|
+
get focusableEntityQuery () {
|
|
15881
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
15882
|
+
}
|
|
15883
|
+
|
|
15868
15884
|
connectedCallback() {
|
|
15869
15885
|
super.connectedCallback();
|
|
15870
15886
|
}
|
|
@@ -15878,6 +15894,8 @@ class AuroDropdown extends i$2 {
|
|
|
15878
15894
|
updated(changedProperties) {
|
|
15879
15895
|
this.floater.handleUpdate(changedProperties);
|
|
15880
15896
|
|
|
15897
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
15898
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
15881
15899
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
15882
15900
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
15883
15901
|
}
|
|
@@ -16028,7 +16046,7 @@ class AuroDropdown extends i$2 {
|
|
|
16028
16046
|
|
|
16029
16047
|
this.triggerContentSlot.forEach((node) => {
|
|
16030
16048
|
if (node.querySelectorAll) {
|
|
16031
|
-
const auroElements = node.querySelectorAll(
|
|
16049
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
16032
16050
|
auroElements.forEach((auroEl) => {
|
|
16033
16051
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
16034
16052
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -16049,7 +16067,7 @@ class AuroDropdown extends i$2 {
|
|
|
16049
16067
|
|
|
16050
16068
|
this.triggerContentSlot.forEach((node) => {
|
|
16051
16069
|
if (node.querySelectorAll) {
|
|
16052
|
-
const auroElements = node.querySelectorAll(
|
|
16070
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
16053
16071
|
auroElements.forEach((auroEl) => {
|
|
16054
16072
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
16055
16073
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -23356,6 +23374,7 @@ class AuroDatePicker extends i$2 {
|
|
|
23356
23374
|
this.calendarEndDate = undefined;
|
|
23357
23375
|
this.calendarFocusDate = this.value;
|
|
23358
23376
|
this.format = 'mm/dd/yyyy';
|
|
23377
|
+
this.fullscreenBreakpoint = 'sm';
|
|
23359
23378
|
this.monthNames = [
|
|
23360
23379
|
'January',
|
|
23361
23380
|
'February',
|
|
@@ -23493,6 +23512,19 @@ class AuroDatePicker extends i$2 {
|
|
|
23493
23512
|
reflect: true
|
|
23494
23513
|
},
|
|
23495
23514
|
|
|
23515
|
+
/**
|
|
23516
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
23517
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
23518
|
+
*
|
|
23519
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
23520
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
23521
|
+
* @default sm
|
|
23522
|
+
*/
|
|
23523
|
+
fullscreenBreakpoint: {
|
|
23524
|
+
type: String,
|
|
23525
|
+
reflect: true
|
|
23526
|
+
},
|
|
23527
|
+
|
|
23496
23528
|
/**
|
|
23497
23529
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
23498
23530
|
* Otherwise, Heading 600.
|
|
@@ -24319,7 +24351,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24319
24351
|
?disabled="${this.disabled}"
|
|
24320
24352
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
24321
24353
|
disableEventShow
|
|
24322
|
-
fullscreenBreakpoint="
|
|
24354
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
24323
24355
|
.placement="${this.placement}"
|
|
24324
24356
|
.offset="${this.offset}"
|
|
24325
24357
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -14870,6 +14870,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
14870
14870
|
|
|
14871
14871
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
14872
14872
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
14873
|
+
'xl',
|
|
14873
14874
|
'lg',
|
|
14874
14875
|
'md',
|
|
14875
14876
|
'sm',
|
|
@@ -14941,6 +14942,7 @@ class AuroDropdownBib extends i$2 {
|
|
|
14941
14942
|
|
|
14942
14943
|
set mobileFullscreenBreakpoint(value) {
|
|
14943
14944
|
// verify the defined breakpoint is valid and exit out if not
|
|
14945
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
14944
14946
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
14945
14947
|
if (!validatedValue) {
|
|
14946
14948
|
this._mobileBreakpointValue = undefined;
|
|
@@ -15466,7 +15468,12 @@ class AuroDropdown extends i$2 {
|
|
|
15466
15468
|
},
|
|
15467
15469
|
|
|
15468
15470
|
/**
|
|
15469
|
-
* Defines the screen size breakpoint (`
|
|
15471
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
15472
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
15473
|
+
*
|
|
15474
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
15475
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
15476
|
+
* @default sm
|
|
15470
15477
|
*/
|
|
15471
15478
|
fullscreenBreakpoint: {
|
|
15472
15479
|
type: String,
|
|
@@ -15606,6 +15613,15 @@ class AuroDropdown extends i$2 {
|
|
|
15606
15613
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15607
15614
|
}
|
|
15608
15615
|
|
|
15616
|
+
/**
|
|
15617
|
+
* Accessor for reusing the focusable entity query string.
|
|
15618
|
+
* @private
|
|
15619
|
+
* @returns {string}
|
|
15620
|
+
*/
|
|
15621
|
+
get focusableEntityQuery () {
|
|
15622
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
15623
|
+
}
|
|
15624
|
+
|
|
15609
15625
|
connectedCallback() {
|
|
15610
15626
|
super.connectedCallback();
|
|
15611
15627
|
}
|
|
@@ -15619,6 +15635,8 @@ class AuroDropdown extends i$2 {
|
|
|
15619
15635
|
updated(changedProperties) {
|
|
15620
15636
|
this.floater.handleUpdate(changedProperties);
|
|
15621
15637
|
|
|
15638
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
15639
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
15622
15640
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
15623
15641
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
15624
15642
|
}
|
|
@@ -15769,7 +15787,7 @@ class AuroDropdown extends i$2 {
|
|
|
15769
15787
|
|
|
15770
15788
|
this.triggerContentSlot.forEach((node) => {
|
|
15771
15789
|
if (node.querySelectorAll) {
|
|
15772
|
-
const auroElements = node.querySelectorAll(
|
|
15790
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
15773
15791
|
auroElements.forEach((auroEl) => {
|
|
15774
15792
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
15775
15793
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -15790,7 +15808,7 @@ class AuroDropdown extends i$2 {
|
|
|
15790
15808
|
|
|
15791
15809
|
this.triggerContentSlot.forEach((node) => {
|
|
15792
15810
|
if (node.querySelectorAll) {
|
|
15793
|
-
const auroElements = node.querySelectorAll(
|
|
15811
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
15794
15812
|
auroElements.forEach((auroEl) => {
|
|
15795
15813
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
15796
15814
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -23097,6 +23115,7 @@ class AuroDatePicker extends i$2 {
|
|
|
23097
23115
|
this.calendarEndDate = undefined;
|
|
23098
23116
|
this.calendarFocusDate = this.value;
|
|
23099
23117
|
this.format = 'mm/dd/yyyy';
|
|
23118
|
+
this.fullscreenBreakpoint = 'sm';
|
|
23100
23119
|
this.monthNames = [
|
|
23101
23120
|
'January',
|
|
23102
23121
|
'February',
|
|
@@ -23234,6 +23253,19 @@ class AuroDatePicker extends i$2 {
|
|
|
23234
23253
|
reflect: true
|
|
23235
23254
|
},
|
|
23236
23255
|
|
|
23256
|
+
/**
|
|
23257
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
23258
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
23259
|
+
*
|
|
23260
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
23261
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
23262
|
+
* @default sm
|
|
23263
|
+
*/
|
|
23264
|
+
fullscreenBreakpoint: {
|
|
23265
|
+
type: String,
|
|
23266
|
+
reflect: true
|
|
23267
|
+
},
|
|
23268
|
+
|
|
23237
23269
|
/**
|
|
23238
23270
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
23239
23271
|
* Otherwise, Heading 600.
|
|
@@ -24060,7 +24092,7 @@ class AuroDatePicker extends i$2 {
|
|
|
24060
24092
|
?disabled="${this.disabled}"
|
|
24061
24093
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
24062
24094
|
disableEventShow
|
|
24063
|
-
fullscreenBreakpoint="
|
|
24095
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
24064
24096
|
.placement="${this.placement}"
|
|
24065
24097
|
.offset="${this.offset}"
|
|
24066
24098
|
?autoPlacement="${this.autoPlacement}"
|
|
@@ -104,7 +104,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
104
104
|
In cases where the project is not able to process JS assets, there are pre-processed assets available for use. Legacy browsers such as IE11 are no longer supported.
|
|
105
105
|
|
|
106
106
|
```html
|
|
107
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.
|
|
107
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.2.8/auro-datepicker/+esm"></script>
|
|
108
108
|
```
|
|
109
109
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
110
110
|
|
|
@@ -77,6 +77,18 @@ export class AuroDatePicker extends LitElement {
|
|
|
77
77
|
type: StringConstructor;
|
|
78
78
|
reflect: boolean;
|
|
79
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
82
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
83
|
+
*
|
|
84
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
85
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
86
|
+
* @default sm
|
|
87
|
+
*/
|
|
88
|
+
fullscreenBreakpoint: {
|
|
89
|
+
type: StringConstructor;
|
|
90
|
+
reflect: boolean;
|
|
91
|
+
};
|
|
80
92
|
/**
|
|
81
93
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
82
94
|
* Otherwise, Heading 600.
|
|
@@ -258,6 +270,7 @@ export class AuroDatePicker extends LitElement {
|
|
|
258
270
|
calendarEndDate: any;
|
|
259
271
|
calendarFocusDate: any;
|
|
260
272
|
format: string;
|
|
273
|
+
fullscreenBreakpoint: string;
|
|
261
274
|
monthNames: string[];
|
|
262
275
|
monthFirst: boolean;
|
|
263
276
|
placement: string;
|
|
@@ -14819,6 +14819,7 @@ var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
|
|
|
14819
14819
|
|
|
14820
14820
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
14821
14821
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
14822
|
+
'xl',
|
|
14822
14823
|
'lg',
|
|
14823
14824
|
'md',
|
|
14824
14825
|
'sm',
|
|
@@ -14890,6 +14891,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
14890
14891
|
|
|
14891
14892
|
set mobileFullscreenBreakpoint(value) {
|
|
14892
14893
|
// verify the defined breakpoint is valid and exit out if not
|
|
14894
|
+
// 'disabled' is a design token breakpoint so it acts as our "undefined" value
|
|
14893
14895
|
const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
|
|
14894
14896
|
if (!validatedValue) {
|
|
14895
14897
|
this._mobileBreakpointValue = undefined;
|
|
@@ -15415,7 +15417,12 @@ class AuroDropdown extends LitElement {
|
|
|
15415
15417
|
},
|
|
15416
15418
|
|
|
15417
15419
|
/**
|
|
15418
|
-
* Defines the screen size breakpoint (`
|
|
15420
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
15421
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
15422
|
+
*
|
|
15423
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
15424
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
15425
|
+
* @default sm
|
|
15419
15426
|
*/
|
|
15420
15427
|
fullscreenBreakpoint: {
|
|
15421
15428
|
type: String,
|
|
@@ -15555,6 +15562,15 @@ class AuroDropdown extends LitElement {
|
|
|
15555
15562
|
AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
|
|
15556
15563
|
}
|
|
15557
15564
|
|
|
15565
|
+
/**
|
|
15566
|
+
* Accessor for reusing the focusable entity query string.
|
|
15567
|
+
* @private
|
|
15568
|
+
* @returns {string}
|
|
15569
|
+
*/
|
|
15570
|
+
get focusableEntityQuery () {
|
|
15571
|
+
return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
|
|
15572
|
+
}
|
|
15573
|
+
|
|
15558
15574
|
connectedCallback() {
|
|
15559
15575
|
super.connectedCallback();
|
|
15560
15576
|
}
|
|
@@ -15568,6 +15584,8 @@ class AuroDropdown extends LitElement {
|
|
|
15568
15584
|
updated(changedProperties) {
|
|
15569
15585
|
this.floater.handleUpdate(changedProperties);
|
|
15570
15586
|
|
|
15587
|
+
// Note: `disabled` is not a breakpoint (it is not a screen size),
|
|
15588
|
+
// so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
|
|
15571
15589
|
if (changedProperties.has('fullscreenBreakpoint')) {
|
|
15572
15590
|
this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
|
|
15573
15591
|
}
|
|
@@ -15718,7 +15736,7 @@ class AuroDropdown extends LitElement {
|
|
|
15718
15736
|
|
|
15719
15737
|
this.triggerContentSlot.forEach((node) => {
|
|
15720
15738
|
if (node.querySelectorAll) {
|
|
15721
|
-
const auroElements = node.querySelectorAll(
|
|
15739
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
15722
15740
|
auroElements.forEach((auroEl) => {
|
|
15723
15741
|
auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
|
|
15724
15742
|
auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -15739,7 +15757,7 @@ class AuroDropdown extends LitElement {
|
|
|
15739
15757
|
|
|
15740
15758
|
this.triggerContentSlot.forEach((node) => {
|
|
15741
15759
|
if (node.querySelectorAll) {
|
|
15742
|
-
const auroElements = node.querySelectorAll(
|
|
15760
|
+
const auroElements = node.querySelectorAll(this.focusableEntityQuery);
|
|
15743
15761
|
auroElements.forEach((auroEl) => {
|
|
15744
15762
|
auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
|
|
15745
15763
|
auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
|
|
@@ -23033,6 +23051,7 @@ class AuroDatePicker extends LitElement {
|
|
|
23033
23051
|
this.calendarEndDate = undefined;
|
|
23034
23052
|
this.calendarFocusDate = this.value;
|
|
23035
23053
|
this.format = 'mm/dd/yyyy';
|
|
23054
|
+
this.fullscreenBreakpoint = 'sm';
|
|
23036
23055
|
this.monthNames = [
|
|
23037
23056
|
'January',
|
|
23038
23057
|
'February',
|
|
@@ -23170,6 +23189,19 @@ class AuroDatePicker extends LitElement {
|
|
|
23170
23189
|
reflect: true
|
|
23171
23190
|
},
|
|
23172
23191
|
|
|
23192
|
+
/**
|
|
23193
|
+
* Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
|
|
23194
|
+
* at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
|
|
23195
|
+
*
|
|
23196
|
+
* When expanded, the dropdown will automatically display in fullscreen mode
|
|
23197
|
+
* if the screen size is equal to or smaller than the selected breakpoint.
|
|
23198
|
+
* @default sm
|
|
23199
|
+
*/
|
|
23200
|
+
fullscreenBreakpoint: {
|
|
23201
|
+
type: String,
|
|
23202
|
+
reflect: true
|
|
23203
|
+
},
|
|
23204
|
+
|
|
23173
23205
|
/**
|
|
23174
23206
|
* If declared, make bib.fullscreen.headline in HeadingDisplay.
|
|
23175
23207
|
* Otherwise, Heading 600.
|
|
@@ -23996,7 +24028,7 @@ class AuroDatePicker extends LitElement {
|
|
|
23996
24028
|
?disabled="${this.disabled}"
|
|
23997
24029
|
?error="${this.validity !== undefined && this.validity !== 'valid'}"
|
|
23998
24030
|
disableEventShow
|
|
23999
|
-
fullscreenBreakpoint="
|
|
24031
|
+
.fullscreenBreakpoint="${this.fullscreenBreakpoint}"
|
|
24000
24032
|
.placement="${this.placement}"
|
|
24001
24033
|
.offset="${this.offset}"
|
|
24002
24034
|
?autoPlacement="${this.autoPlacement}"
|