@aurodesignsystem/auro-formkit 3.1.0 → 3.2.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.
Files changed (55) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/components/checkbox/README.md +1 -1
  3. package/components/checkbox/demo/readme.md +1 -1
  4. package/components/combobox/README.md +1 -1
  5. package/components/combobox/demo/api.md +1 -1
  6. package/components/combobox/demo/api.min.js +26 -5
  7. package/components/combobox/demo/index.min.js +26 -5
  8. package/components/combobox/demo/readme.md +1 -1
  9. package/components/combobox/dist/auro-combobox.d.ts +5 -2
  10. package/components/combobox/dist/index.js +26 -5
  11. package/components/combobox/dist/registered.js +26 -5
  12. package/components/counter/README.md +1 -1
  13. package/components/counter/demo/api.md +1 -1
  14. package/components/counter/demo/api.min.js +26 -5
  15. package/components/counter/demo/index.min.js +26 -5
  16. package/components/counter/demo/readme.md +1 -1
  17. package/components/counter/dist/auro-counter-group.d.ts +5 -2
  18. package/components/counter/dist/index.js +26 -5
  19. package/components/counter/dist/registered.js +26 -5
  20. package/components/datepicker/README.md +1 -1
  21. package/components/datepicker/demo/api.md +1 -0
  22. package/components/datepicker/demo/api.min.js +36 -4
  23. package/components/datepicker/demo/index.min.js +36 -4
  24. package/components/datepicker/demo/readme.md +1 -1
  25. package/components/datepicker/dist/auro-datepicker.d.ts +13 -0
  26. package/components/datepicker/dist/index.js +36 -4
  27. package/components/datepicker/dist/registered.js +36 -4
  28. package/components/dropdown/README.md +1 -1
  29. package/components/dropdown/demo/api.md +1 -1
  30. package/components/dropdown/demo/api.min.js +21 -3
  31. package/components/dropdown/demo/index.md +83 -0
  32. package/components/dropdown/demo/index.min.js +21 -3
  33. package/components/dropdown/demo/readme.md +1 -1
  34. package/components/dropdown/dist/auro-dropdown.d.ts +12 -1
  35. package/components/dropdown/dist/index.js +21 -3
  36. package/components/dropdown/dist/registered.js +21 -3
  37. package/components/form/README.md +1 -1
  38. package/components/form/demo/autocomplete.html +15 -0
  39. package/components/form/demo/readme.md +1 -1
  40. package/components/input/README.md +1 -1
  41. package/components/input/demo/readme.md +1 -1
  42. package/components/menu/README.md +1 -1
  43. package/components/menu/demo/readme.md +1 -1
  44. package/components/radio/README.md +1 -1
  45. package/components/radio/demo/readme.md +1 -1
  46. package/components/select/README.md +1 -1
  47. package/components/select/demo/api.md +1 -1
  48. package/components/select/demo/api.min.js +26 -5
  49. package/components/select/demo/index.md +46 -1
  50. package/components/select/demo/index.min.js +26 -5
  51. package/components/select/demo/readme.md +1 -1
  52. package/components/select/dist/auro-select.d.ts +5 -2
  53. package/components/select/dist/index.js +26 -5
  54. package/components/select/dist/registered.js +26 -5
  55. 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 (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
29
- * When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
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: {
@@ -4613,6 +4613,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
4613
4613
 
4614
4614
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
4615
4615
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
4616
+ 'xl',
4616
4617
  'lg',
4617
4618
  'md',
4618
4619
  'sm',
@@ -4684,6 +4685,7 @@ class AuroDropdownBib extends LitElement {
4684
4685
 
4685
4686
  set mobileFullscreenBreakpoint(value) {
4686
4687
  // verify the defined breakpoint is valid and exit out if not
4688
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
4687
4689
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
4688
4690
  if (!validatedValue) {
4689
4691
  this._mobileBreakpointValue = undefined;
@@ -5209,7 +5211,12 @@ class AuroDropdown extends LitElement {
5209
5211
  },
5210
5212
 
5211
5213
  /**
5212
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
5214
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
5215
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
5216
+ *
5217
+ * When expanded, the dropdown will automatically display in fullscreen mode
5218
+ * if the screen size is equal to or smaller than the selected breakpoint.
5219
+ * @default sm
5213
5220
  */
5214
5221
  fullscreenBreakpoint: {
5215
5222
  type: String,
@@ -5349,6 +5356,15 @@ class AuroDropdown extends LitElement {
5349
5356
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
5350
5357
  }
5351
5358
 
5359
+ /**
5360
+ * Accessor for reusing the focusable entity query string.
5361
+ * @private
5362
+ * @returns {string}
5363
+ */
5364
+ get focusableEntityQuery () {
5365
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
5366
+ }
5367
+
5352
5368
  connectedCallback() {
5353
5369
  super.connectedCallback();
5354
5370
  }
@@ -5362,6 +5378,8 @@ class AuroDropdown extends LitElement {
5362
5378
  updated(changedProperties) {
5363
5379
  this.floater.handleUpdate(changedProperties);
5364
5380
 
5381
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
5382
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
5365
5383
  if (changedProperties.has('fullscreenBreakpoint')) {
5366
5384
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
5367
5385
  }
@@ -5512,7 +5530,7 @@ class AuroDropdown extends LitElement {
5512
5530
 
5513
5531
  this.triggerContentSlot.forEach((node) => {
5514
5532
  if (node.querySelectorAll) {
5515
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
5533
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
5516
5534
  auroElements.forEach((auroEl) => {
5517
5535
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
5518
5536
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -5533,7 +5551,7 @@ class AuroDropdown extends LitElement {
5533
5551
 
5534
5552
  this.triggerContentSlot.forEach((node) => {
5535
5553
  if (node.querySelectorAll) {
5536
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
5554
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
5537
5555
  auroElements.forEach((auroEl) => {
5538
5556
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
5539
5557
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -6663,8 +6681,11 @@ class AuroCounterGroup extends LitElement {
6663
6681
  },
6664
6682
 
6665
6683
  /**
6666
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
6667
- * When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
6684
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6685
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
6686
+ *
6687
+ * When expanded, the dropdown will automatically display in fullscreen mode
6688
+ * if the screen size is equal to or smaller than the selected breakpoint.
6668
6689
  * @default sm
6669
6690
  */
6670
6691
  fullscreenBreakpoint: {
@@ -4613,6 +4613,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
4613
4613
 
4614
4614
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
4615
4615
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
4616
+ 'xl',
4616
4617
  'lg',
4617
4618
  'md',
4618
4619
  'sm',
@@ -4684,6 +4685,7 @@ class AuroDropdownBib extends LitElement {
4684
4685
 
4685
4686
  set mobileFullscreenBreakpoint(value) {
4686
4687
  // verify the defined breakpoint is valid and exit out if not
4688
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
4687
4689
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
4688
4690
  if (!validatedValue) {
4689
4691
  this._mobileBreakpointValue = undefined;
@@ -5209,7 +5211,12 @@ class AuroDropdown extends LitElement {
5209
5211
  },
5210
5212
 
5211
5213
  /**
5212
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
5214
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
5215
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
5216
+ *
5217
+ * When expanded, the dropdown will automatically display in fullscreen mode
5218
+ * if the screen size is equal to or smaller than the selected breakpoint.
5219
+ * @default sm
5213
5220
  */
5214
5221
  fullscreenBreakpoint: {
5215
5222
  type: String,
@@ -5349,6 +5356,15 @@ class AuroDropdown extends LitElement {
5349
5356
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
5350
5357
  }
5351
5358
 
5359
+ /**
5360
+ * Accessor for reusing the focusable entity query string.
5361
+ * @private
5362
+ * @returns {string}
5363
+ */
5364
+ get focusableEntityQuery () {
5365
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
5366
+ }
5367
+
5352
5368
  connectedCallback() {
5353
5369
  super.connectedCallback();
5354
5370
  }
@@ -5362,6 +5378,8 @@ class AuroDropdown extends LitElement {
5362
5378
  updated(changedProperties) {
5363
5379
  this.floater.handleUpdate(changedProperties);
5364
5380
 
5381
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
5382
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
5365
5383
  if (changedProperties.has('fullscreenBreakpoint')) {
5366
5384
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
5367
5385
  }
@@ -5512,7 +5530,7 @@ class AuroDropdown extends LitElement {
5512
5530
 
5513
5531
  this.triggerContentSlot.forEach((node) => {
5514
5532
  if (node.querySelectorAll) {
5515
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
5533
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
5516
5534
  auroElements.forEach((auroEl) => {
5517
5535
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
5518
5536
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -5533,7 +5551,7 @@ class AuroDropdown extends LitElement {
5533
5551
 
5534
5552
  this.triggerContentSlot.forEach((node) => {
5535
5553
  if (node.querySelectorAll) {
5536
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
5554
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
5537
5555
  auroElements.forEach((auroEl) => {
5538
5556
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
5539
5557
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -6663,8 +6681,11 @@ class AuroCounterGroup extends LitElement {
6663
6681
  },
6664
6682
 
6665
6683
  /**
6666
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
6667
- * When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
6684
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6685
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
6686
+ *
6687
+ * When expanded, the dropdown will automatically display in fullscreen mode
6688
+ * if the screen size is equal to or smaller than the selected breakpoint.
6668
6689
  * @default sm
6669
6690
  */
6670
6691
  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.0.1/auro-datepicker/+esm"></script>
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.1.0/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. |
@@ -15197,6 +15197,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
15197
15197
 
15198
15198
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
15199
15199
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
15200
+ 'xl',
15200
15201
  'lg',
15201
15202
  'md',
15202
15203
  'sm',
@@ -15268,6 +15269,7 @@ class AuroDropdownBib extends r$2 {
15268
15269
 
15269
15270
  set mobileFullscreenBreakpoint(value) {
15270
15271
  // verify the defined breakpoint is valid and exit out if not
15272
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
15271
15273
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
15272
15274
  if (!validatedValue) {
15273
15275
  this._mobileBreakpointValue = undefined;
@@ -15793,7 +15795,12 @@ class AuroDropdown extends r$2 {
15793
15795
  },
15794
15796
 
15795
15797
  /**
15796
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
15798
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
15799
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
15800
+ *
15801
+ * When expanded, the dropdown will automatically display in fullscreen mode
15802
+ * if the screen size is equal to or smaller than the selected breakpoint.
15803
+ * @default sm
15797
15804
  */
15798
15805
  fullscreenBreakpoint: {
15799
15806
  type: String,
@@ -15933,6 +15940,15 @@ class AuroDropdown extends r$2 {
15933
15940
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
15934
15941
  }
15935
15942
 
15943
+ /**
15944
+ * Accessor for reusing the focusable entity query string.
15945
+ * @private
15946
+ * @returns {string}
15947
+ */
15948
+ get focusableEntityQuery () {
15949
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
15950
+ }
15951
+
15936
15952
  connectedCallback() {
15937
15953
  super.connectedCallback();
15938
15954
  }
@@ -15946,6 +15962,8 @@ class AuroDropdown extends r$2 {
15946
15962
  updated(changedProperties) {
15947
15963
  this.floater.handleUpdate(changedProperties);
15948
15964
 
15965
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
15966
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
15949
15967
  if (changedProperties.has('fullscreenBreakpoint')) {
15950
15968
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
15951
15969
  }
@@ -16096,7 +16114,7 @@ class AuroDropdown extends r$2 {
16096
16114
 
16097
16115
  this.triggerContentSlot.forEach((node) => {
16098
16116
  if (node.querySelectorAll) {
16099
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
16117
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
16100
16118
  auroElements.forEach((auroEl) => {
16101
16119
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
16102
16120
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -16117,7 +16135,7 @@ class AuroDropdown extends r$2 {
16117
16135
 
16118
16136
  this.triggerContentSlot.forEach((node) => {
16119
16137
  if (node.querySelectorAll) {
16120
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
16138
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
16121
16139
  auroElements.forEach((auroEl) => {
16122
16140
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
16123
16141
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -23424,6 +23442,7 @@ class AuroDatePicker extends r$2 {
23424
23442
  this.calendarEndDate = undefined;
23425
23443
  this.calendarFocusDate = this.value;
23426
23444
  this.format = 'mm/dd/yyyy';
23445
+ this.fullscreenBreakpoint = 'sm';
23427
23446
  this.monthNames = [
23428
23447
  'January',
23429
23448
  'February',
@@ -23561,6 +23580,19 @@ class AuroDatePicker extends r$2 {
23561
23580
  reflect: true
23562
23581
  },
23563
23582
 
23583
+ /**
23584
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
23585
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
23586
+ *
23587
+ * When expanded, the dropdown will automatically display in fullscreen mode
23588
+ * if the screen size is equal to or smaller than the selected breakpoint.
23589
+ * @default sm
23590
+ */
23591
+ fullscreenBreakpoint: {
23592
+ type: String,
23593
+ reflect: true
23594
+ },
23595
+
23564
23596
  /**
23565
23597
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
23566
23598
  * Otherwise, Heading 600.
@@ -24387,7 +24419,7 @@ class AuroDatePicker extends r$2 {
24387
24419
  ?disabled="${this.disabled}"
24388
24420
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
24389
24421
  disableEventShow
24390
- fullscreenBreakpoint="sm"
24422
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
24391
24423
  .placement="${this.placement}"
24392
24424
  .offset="${this.offset}"
24393
24425
  ?autoPlacement="${this.autoPlacement}"
@@ -14938,6 +14938,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
14938
14938
 
14939
14939
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
14940
14940
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
14941
+ 'xl',
14941
14942
  'lg',
14942
14943
  'md',
14943
14944
  'sm',
@@ -15009,6 +15010,7 @@ class AuroDropdownBib extends r$2 {
15009
15010
 
15010
15011
  set mobileFullscreenBreakpoint(value) {
15011
15012
  // verify the defined breakpoint is valid and exit out if not
15013
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
15012
15014
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
15013
15015
  if (!validatedValue) {
15014
15016
  this._mobileBreakpointValue = undefined;
@@ -15534,7 +15536,12 @@ class AuroDropdown extends r$2 {
15534
15536
  },
15535
15537
 
15536
15538
  /**
15537
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
15539
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
15540
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
15541
+ *
15542
+ * When expanded, the dropdown will automatically display in fullscreen mode
15543
+ * if the screen size is equal to or smaller than the selected breakpoint.
15544
+ * @default sm
15538
15545
  */
15539
15546
  fullscreenBreakpoint: {
15540
15547
  type: String,
@@ -15674,6 +15681,15 @@ class AuroDropdown extends r$2 {
15674
15681
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
15675
15682
  }
15676
15683
 
15684
+ /**
15685
+ * Accessor for reusing the focusable entity query string.
15686
+ * @private
15687
+ * @returns {string}
15688
+ */
15689
+ get focusableEntityQuery () {
15690
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
15691
+ }
15692
+
15677
15693
  connectedCallback() {
15678
15694
  super.connectedCallback();
15679
15695
  }
@@ -15687,6 +15703,8 @@ class AuroDropdown extends r$2 {
15687
15703
  updated(changedProperties) {
15688
15704
  this.floater.handleUpdate(changedProperties);
15689
15705
 
15706
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
15707
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
15690
15708
  if (changedProperties.has('fullscreenBreakpoint')) {
15691
15709
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
15692
15710
  }
@@ -15837,7 +15855,7 @@ class AuroDropdown extends r$2 {
15837
15855
 
15838
15856
  this.triggerContentSlot.forEach((node) => {
15839
15857
  if (node.querySelectorAll) {
15840
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15858
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15841
15859
  auroElements.forEach((auroEl) => {
15842
15860
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
15843
15861
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -15858,7 +15876,7 @@ class AuroDropdown extends r$2 {
15858
15876
 
15859
15877
  this.triggerContentSlot.forEach((node) => {
15860
15878
  if (node.querySelectorAll) {
15861
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15879
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15862
15880
  auroElements.forEach((auroEl) => {
15863
15881
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
15864
15882
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -23165,6 +23183,7 @@ class AuroDatePicker extends r$2 {
23165
23183
  this.calendarEndDate = undefined;
23166
23184
  this.calendarFocusDate = this.value;
23167
23185
  this.format = 'mm/dd/yyyy';
23186
+ this.fullscreenBreakpoint = 'sm';
23168
23187
  this.monthNames = [
23169
23188
  'January',
23170
23189
  'February',
@@ -23302,6 +23321,19 @@ class AuroDatePicker extends r$2 {
23302
23321
  reflect: true
23303
23322
  },
23304
23323
 
23324
+ /**
23325
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
23326
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
23327
+ *
23328
+ * When expanded, the dropdown will automatically display in fullscreen mode
23329
+ * if the screen size is equal to or smaller than the selected breakpoint.
23330
+ * @default sm
23331
+ */
23332
+ fullscreenBreakpoint: {
23333
+ type: String,
23334
+ reflect: true
23335
+ },
23336
+
23305
23337
  /**
23306
23338
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
23307
23339
  * Otherwise, Heading 600.
@@ -24128,7 +24160,7 @@ class AuroDatePicker extends r$2 {
24128
24160
  ?disabled="${this.disabled}"
24129
24161
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
24130
24162
  disableEventShow
24131
- fullscreenBreakpoint="sm"
24163
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
24132
24164
  .placement="${this.placement}"
24133
24165
  .offset="${this.offset}"
24134
24166
  ?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.0.1/auro-datepicker/+esm"></script>
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.1.0/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;
@@ -14887,6 +14887,7 @@ var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
14887
14887
 
14888
14888
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
14889
14889
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
14890
+ 'xl',
14890
14891
  'lg',
14891
14892
  'md',
14892
14893
  'sm',
@@ -14958,6 +14959,7 @@ class AuroDropdownBib extends LitElement {
14958
14959
 
14959
14960
  set mobileFullscreenBreakpoint(value) {
14960
14961
  // verify the defined breakpoint is valid and exit out if not
14962
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
14961
14963
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
14962
14964
  if (!validatedValue) {
14963
14965
  this._mobileBreakpointValue = undefined;
@@ -15483,7 +15485,12 @@ class AuroDropdown extends LitElement {
15483
15485
  },
15484
15486
 
15485
15487
  /**
15486
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile. When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
15488
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
15489
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
15490
+ *
15491
+ * When expanded, the dropdown will automatically display in fullscreen mode
15492
+ * if the screen size is equal to or smaller than the selected breakpoint.
15493
+ * @default sm
15487
15494
  */
15488
15495
  fullscreenBreakpoint: {
15489
15496
  type: String,
@@ -15623,6 +15630,15 @@ class AuroDropdown extends LitElement {
15623
15630
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
15624
15631
  }
15625
15632
 
15633
+ /**
15634
+ * Accessor for reusing the focusable entity query string.
15635
+ * @private
15636
+ * @returns {string}
15637
+ */
15638
+ get focusableEntityQuery () {
15639
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
15640
+ }
15641
+
15626
15642
  connectedCallback() {
15627
15643
  super.connectedCallback();
15628
15644
  }
@@ -15636,6 +15652,8 @@ class AuroDropdown extends LitElement {
15636
15652
  updated(changedProperties) {
15637
15653
  this.floater.handleUpdate(changedProperties);
15638
15654
 
15655
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
15656
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
15639
15657
  if (changedProperties.has('fullscreenBreakpoint')) {
15640
15658
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
15641
15659
  }
@@ -15786,7 +15804,7 @@ class AuroDropdown extends LitElement {
15786
15804
 
15787
15805
  this.triggerContentSlot.forEach((node) => {
15788
15806
  if (node.querySelectorAll) {
15789
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15807
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15790
15808
  auroElements.forEach((auroEl) => {
15791
15809
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
15792
15810
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -15807,7 +15825,7 @@ class AuroDropdown extends LitElement {
15807
15825
 
15808
15826
  this.triggerContentSlot.forEach((node) => {
15809
15827
  if (node.querySelectorAll) {
15810
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15828
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15811
15829
  auroElements.forEach((auroEl) => {
15812
15830
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
15813
15831
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -23101,6 +23119,7 @@ class AuroDatePicker extends LitElement {
23101
23119
  this.calendarEndDate = undefined;
23102
23120
  this.calendarFocusDate = this.value;
23103
23121
  this.format = 'mm/dd/yyyy';
23122
+ this.fullscreenBreakpoint = 'sm';
23104
23123
  this.monthNames = [
23105
23124
  'January',
23106
23125
  'February',
@@ -23238,6 +23257,19 @@ class AuroDatePicker extends LitElement {
23238
23257
  reflect: true
23239
23258
  },
23240
23259
 
23260
+ /**
23261
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
23262
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
23263
+ *
23264
+ * When expanded, the dropdown will automatically display in fullscreen mode
23265
+ * if the screen size is equal to or smaller than the selected breakpoint.
23266
+ * @default sm
23267
+ */
23268
+ fullscreenBreakpoint: {
23269
+ type: String,
23270
+ reflect: true
23271
+ },
23272
+
23241
23273
  /**
23242
23274
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
23243
23275
  * Otherwise, Heading 600.
@@ -24064,7 +24096,7 @@ class AuroDatePicker extends LitElement {
24064
24096
  ?disabled="${this.disabled}"
24065
24097
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
24066
24098
  disableEventShow
24067
- fullscreenBreakpoint="sm"
24099
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
24068
24100
  .placement="${this.placement}"
24069
24101
  .offset="${this.offset}"
24070
24102
  ?autoPlacement="${this.autoPlacement}"