@aurodesignsystem/auro-formkit 3.0.1 → 3.1.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: {
@@ -4170,6 +4170,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
4170
4170
 
4171
4171
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
4172
4172
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
4173
+ 'xl',
4173
4174
  'lg',
4174
4175
  'md',
4175
4176
  'sm',
@@ -4241,6 +4242,7 @@ class AuroDropdownBib extends LitElement {
4241
4242
 
4242
4243
  set mobileFullscreenBreakpoint(value) {
4243
4244
  // verify the defined breakpoint is valid and exit out if not
4245
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
4244
4246
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
4245
4247
  if (!validatedValue) {
4246
4248
  this._mobileBreakpointValue = undefined;
@@ -4753,7 +4755,12 @@ class AuroDropdown extends LitElement {
4753
4755
  },
4754
4756
 
4755
4757
  /**
4756
- * 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.
4758
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
4759
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
4760
+ *
4761
+ * When expanded, the dropdown will automatically display in fullscreen mode
4762
+ * if the screen size is equal to or smaller than the selected breakpoint.
4763
+ * @default sm
4757
4764
  */
4758
4765
  fullscreenBreakpoint: {
4759
4766
  type: String,
@@ -4876,6 +4883,15 @@ class AuroDropdown extends LitElement {
4876
4883
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
4877
4884
  }
4878
4885
 
4886
+ /**
4887
+ * Accessor for reusing the focusable entity query string.
4888
+ * @private
4889
+ * @returns {string}
4890
+ */
4891
+ get focusableEntityQuery () {
4892
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
4893
+ }
4894
+
4879
4895
  connectedCallback() {
4880
4896
  super.connectedCallback();
4881
4897
  }
@@ -4889,6 +4905,8 @@ class AuroDropdown extends LitElement {
4889
4905
  updated(changedProperties) {
4890
4906
  this.floater.handleUpdate(changedProperties);
4891
4907
 
4908
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
4909
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
4892
4910
  if (changedProperties.has('fullscreenBreakpoint')) {
4893
4911
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
4894
4912
  }
@@ -5024,7 +5042,7 @@ class AuroDropdown extends LitElement {
5024
5042
 
5025
5043
  this.triggerContentSlot.forEach((node) => {
5026
5044
  if (node.querySelectorAll) {
5027
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
5045
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
5028
5046
  auroElements.forEach((auroEl) => {
5029
5047
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
5030
5048
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -5045,7 +5063,7 @@ class AuroDropdown extends LitElement {
5045
5063
 
5046
5064
  this.triggerContentSlot.forEach((node) => {
5047
5065
  if (node.querySelectorAll) {
5048
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
5066
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
5049
5067
  auroElements.forEach((auroEl) => {
5050
5068
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
5051
5069
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -6138,8 +6156,11 @@ class AuroCounterGroup extends LitElement {
6138
6156
  },
6139
6157
 
6140
6158
  /**
6141
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
6142
- * When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
6159
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6160
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
6161
+ *
6162
+ * When expanded, the dropdown will automatically display in fullscreen mode
6163
+ * if the screen size is equal to or smaller than the selected breakpoint.
6143
6164
  * @default sm
6144
6165
  */
6145
6166
  fullscreenBreakpoint: {
@@ -4170,6 +4170,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
4170
4170
 
4171
4171
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
4172
4172
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
4173
+ 'xl',
4173
4174
  'lg',
4174
4175
  'md',
4175
4176
  'sm',
@@ -4241,6 +4242,7 @@ class AuroDropdownBib extends LitElement {
4241
4242
 
4242
4243
  set mobileFullscreenBreakpoint(value) {
4243
4244
  // verify the defined breakpoint is valid and exit out if not
4245
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
4244
4246
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
4245
4247
  if (!validatedValue) {
4246
4248
  this._mobileBreakpointValue = undefined;
@@ -4753,7 +4755,12 @@ class AuroDropdown extends LitElement {
4753
4755
  },
4754
4756
 
4755
4757
  /**
4756
- * 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.
4758
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
4759
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
4760
+ *
4761
+ * When expanded, the dropdown will automatically display in fullscreen mode
4762
+ * if the screen size is equal to or smaller than the selected breakpoint.
4763
+ * @default sm
4757
4764
  */
4758
4765
  fullscreenBreakpoint: {
4759
4766
  type: String,
@@ -4876,6 +4883,15 @@ class AuroDropdown extends LitElement {
4876
4883
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
4877
4884
  }
4878
4885
 
4886
+ /**
4887
+ * Accessor for reusing the focusable entity query string.
4888
+ * @private
4889
+ * @returns {string}
4890
+ */
4891
+ get focusableEntityQuery () {
4892
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
4893
+ }
4894
+
4879
4895
  connectedCallback() {
4880
4896
  super.connectedCallback();
4881
4897
  }
@@ -4889,6 +4905,8 @@ class AuroDropdown extends LitElement {
4889
4905
  updated(changedProperties) {
4890
4906
  this.floater.handleUpdate(changedProperties);
4891
4907
 
4908
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
4909
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
4892
4910
  if (changedProperties.has('fullscreenBreakpoint')) {
4893
4911
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
4894
4912
  }
@@ -5024,7 +5042,7 @@ class AuroDropdown extends LitElement {
5024
5042
 
5025
5043
  this.triggerContentSlot.forEach((node) => {
5026
5044
  if (node.querySelectorAll) {
5027
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
5045
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
5028
5046
  auroElements.forEach((auroEl) => {
5029
5047
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
5030
5048
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -5045,7 +5063,7 @@ class AuroDropdown extends LitElement {
5045
5063
 
5046
5064
  this.triggerContentSlot.forEach((node) => {
5047
5065
  if (node.querySelectorAll) {
5048
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
5066
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
5049
5067
  auroElements.forEach((auroEl) => {
5050
5068
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
5051
5069
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -6138,8 +6156,11 @@ class AuroCounterGroup extends LitElement {
6138
6156
  },
6139
6157
 
6140
6158
  /**
6141
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
6142
- * When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
6159
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
6160
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
6161
+ *
6162
+ * When expanded, the dropdown will automatically display in fullscreen mode
6163
+ * if the screen size is equal to or smaller than the selected breakpoint.
6143
6164
  * @default sm
6144
6165
  */
6145
6166
  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.0/auro-datepicker/+esm"></script>
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/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. |
@@ -14754,6 +14754,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
14754
14754
 
14755
14755
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
14756
14756
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
14757
+ 'xl',
14757
14758
  'lg',
14758
14759
  'md',
14759
14760
  'sm',
@@ -14825,6 +14826,7 @@ class AuroDropdownBib extends r$2 {
14825
14826
 
14826
14827
  set mobileFullscreenBreakpoint(value) {
14827
14828
  // verify the defined breakpoint is valid and exit out if not
14829
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
14828
14830
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
14829
14831
  if (!validatedValue) {
14830
14832
  this._mobileBreakpointValue = undefined;
@@ -15337,7 +15339,12 @@ class AuroDropdown extends r$2 {
15337
15339
  },
15338
15340
 
15339
15341
  /**
15340
- * 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.
15342
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
15343
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
15344
+ *
15345
+ * When expanded, the dropdown will automatically display in fullscreen mode
15346
+ * if the screen size is equal to or smaller than the selected breakpoint.
15347
+ * @default sm
15341
15348
  */
15342
15349
  fullscreenBreakpoint: {
15343
15350
  type: String,
@@ -15460,6 +15467,15 @@ class AuroDropdown extends r$2 {
15460
15467
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
15461
15468
  }
15462
15469
 
15470
+ /**
15471
+ * Accessor for reusing the focusable entity query string.
15472
+ * @private
15473
+ * @returns {string}
15474
+ */
15475
+ get focusableEntityQuery () {
15476
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
15477
+ }
15478
+
15463
15479
  connectedCallback() {
15464
15480
  super.connectedCallback();
15465
15481
  }
@@ -15473,6 +15489,8 @@ class AuroDropdown extends r$2 {
15473
15489
  updated(changedProperties) {
15474
15490
  this.floater.handleUpdate(changedProperties);
15475
15491
 
15492
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
15493
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
15476
15494
  if (changedProperties.has('fullscreenBreakpoint')) {
15477
15495
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
15478
15496
  }
@@ -15608,7 +15626,7 @@ class AuroDropdown extends r$2 {
15608
15626
 
15609
15627
  this.triggerContentSlot.forEach((node) => {
15610
15628
  if (node.querySelectorAll) {
15611
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15629
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15612
15630
  auroElements.forEach((auroEl) => {
15613
15631
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
15614
15632
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -15629,7 +15647,7 @@ class AuroDropdown extends r$2 {
15629
15647
 
15630
15648
  this.triggerContentSlot.forEach((node) => {
15631
15649
  if (node.querySelectorAll) {
15632
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15650
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15633
15651
  auroElements.forEach((auroEl) => {
15634
15652
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
15635
15653
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -22421,6 +22439,7 @@ class AuroDatePicker extends r$2 {
22421
22439
  this.calendarEndDate = undefined;
22422
22440
  this.calendarFocusDate = this.value;
22423
22441
  this.format = 'mm/dd/yyyy';
22442
+ this.fullscreenBreakpoint = 'sm';
22424
22443
  this.monthNames = [
22425
22444
  'January',
22426
22445
  'February',
@@ -22558,6 +22577,19 @@ class AuroDatePicker extends r$2 {
22558
22577
  reflect: true
22559
22578
  },
22560
22579
 
22580
+ /**
22581
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
22582
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
22583
+ *
22584
+ * When expanded, the dropdown will automatically display in fullscreen mode
22585
+ * if the screen size is equal to or smaller than the selected breakpoint.
22586
+ * @default sm
22587
+ */
22588
+ fullscreenBreakpoint: {
22589
+ type: String,
22590
+ reflect: true
22591
+ },
22592
+
22561
22593
  /**
22562
22594
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
22563
22595
  * Otherwise, Heading 600.
@@ -23384,7 +23416,7 @@ class AuroDatePicker extends r$2 {
23384
23416
  ?disabled="${this.disabled}"
23385
23417
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
23386
23418
  disableEventShow
23387
- fullscreenBreakpoint="sm"
23419
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
23388
23420
  .placement="${this.placement}"
23389
23421
  .offset="${this.offset}"
23390
23422
  ?autoPlacement="${this.autoPlacement}"
@@ -14495,6 +14495,7 @@ var tokensCss$1$1 = i$5`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
14495
14495
 
14496
14496
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
14497
14497
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
14498
+ 'xl',
14498
14499
  'lg',
14499
14500
  'md',
14500
14501
  'sm',
@@ -14566,6 +14567,7 @@ class AuroDropdownBib extends r$2 {
14566
14567
 
14567
14568
  set mobileFullscreenBreakpoint(value) {
14568
14569
  // verify the defined breakpoint is valid and exit out if not
14570
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
14569
14571
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
14570
14572
  if (!validatedValue) {
14571
14573
  this._mobileBreakpointValue = undefined;
@@ -15078,7 +15080,12 @@ class AuroDropdown extends r$2 {
15078
15080
  },
15079
15081
 
15080
15082
  /**
15081
- * 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.
15083
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
15084
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
15085
+ *
15086
+ * When expanded, the dropdown will automatically display in fullscreen mode
15087
+ * if the screen size is equal to or smaller than the selected breakpoint.
15088
+ * @default sm
15082
15089
  */
15083
15090
  fullscreenBreakpoint: {
15084
15091
  type: String,
@@ -15201,6 +15208,15 @@ class AuroDropdown extends r$2 {
15201
15208
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
15202
15209
  }
15203
15210
 
15211
+ /**
15212
+ * Accessor for reusing the focusable entity query string.
15213
+ * @private
15214
+ * @returns {string}
15215
+ */
15216
+ get focusableEntityQuery () {
15217
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
15218
+ }
15219
+
15204
15220
  connectedCallback() {
15205
15221
  super.connectedCallback();
15206
15222
  }
@@ -15214,6 +15230,8 @@ class AuroDropdown extends r$2 {
15214
15230
  updated(changedProperties) {
15215
15231
  this.floater.handleUpdate(changedProperties);
15216
15232
 
15233
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
15234
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
15217
15235
  if (changedProperties.has('fullscreenBreakpoint')) {
15218
15236
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
15219
15237
  }
@@ -15349,7 +15367,7 @@ class AuroDropdown extends r$2 {
15349
15367
 
15350
15368
  this.triggerContentSlot.forEach((node) => {
15351
15369
  if (node.querySelectorAll) {
15352
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15370
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15353
15371
  auroElements.forEach((auroEl) => {
15354
15372
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
15355
15373
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -15370,7 +15388,7 @@ class AuroDropdown extends r$2 {
15370
15388
 
15371
15389
  this.triggerContentSlot.forEach((node) => {
15372
15390
  if (node.querySelectorAll) {
15373
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15391
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15374
15392
  auroElements.forEach((auroEl) => {
15375
15393
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
15376
15394
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -22162,6 +22180,7 @@ class AuroDatePicker extends r$2 {
22162
22180
  this.calendarEndDate = undefined;
22163
22181
  this.calendarFocusDate = this.value;
22164
22182
  this.format = 'mm/dd/yyyy';
22183
+ this.fullscreenBreakpoint = 'sm';
22165
22184
  this.monthNames = [
22166
22185
  'January',
22167
22186
  'February',
@@ -22299,6 +22318,19 @@ class AuroDatePicker extends r$2 {
22299
22318
  reflect: true
22300
22319
  },
22301
22320
 
22321
+ /**
22322
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
22323
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
22324
+ *
22325
+ * When expanded, the dropdown will automatically display in fullscreen mode
22326
+ * if the screen size is equal to or smaller than the selected breakpoint.
22327
+ * @default sm
22328
+ */
22329
+ fullscreenBreakpoint: {
22330
+ type: String,
22331
+ reflect: true
22332
+ },
22333
+
22302
22334
  /**
22303
22335
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
22304
22336
  * Otherwise, Heading 600.
@@ -23125,7 +23157,7 @@ class AuroDatePicker extends r$2 {
23125
23157
  ?disabled="${this.disabled}"
23126
23158
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
23127
23159
  disableEventShow
23128
- fullscreenBreakpoint="sm"
23160
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
23129
23161
  .placement="${this.placement}"
23130
23162
  .offset="${this.offset}"
23131
23163
  ?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.0/auro-datepicker/+esm"></script>
107
+ <script type="module" src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@3.0.1/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;
@@ -14444,6 +14444,7 @@ var tokensCss$1$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basi
14444
14444
 
14445
14445
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
14446
14446
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
14447
+ 'xl',
14447
14448
  'lg',
14448
14449
  'md',
14449
14450
  'sm',
@@ -14515,6 +14516,7 @@ class AuroDropdownBib extends LitElement {
14515
14516
 
14516
14517
  set mobileFullscreenBreakpoint(value) {
14517
14518
  // verify the defined breakpoint is valid and exit out if not
14519
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
14518
14520
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
14519
14521
  if (!validatedValue) {
14520
14522
  this._mobileBreakpointValue = undefined;
@@ -15027,7 +15029,12 @@ class AuroDropdown extends LitElement {
15027
15029
  },
15028
15030
 
15029
15031
  /**
15030
- * 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.
15032
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
15033
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
15034
+ *
15035
+ * When expanded, the dropdown will automatically display in fullscreen mode
15036
+ * if the screen size is equal to or smaller than the selected breakpoint.
15037
+ * @default sm
15031
15038
  */
15032
15039
  fullscreenBreakpoint: {
15033
15040
  type: String,
@@ -15150,6 +15157,15 @@ class AuroDropdown extends LitElement {
15150
15157
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
15151
15158
  }
15152
15159
 
15160
+ /**
15161
+ * Accessor for reusing the focusable entity query string.
15162
+ * @private
15163
+ * @returns {string}
15164
+ */
15165
+ get focusableEntityQuery () {
15166
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
15167
+ }
15168
+
15153
15169
  connectedCallback() {
15154
15170
  super.connectedCallback();
15155
15171
  }
@@ -15163,6 +15179,8 @@ class AuroDropdown extends LitElement {
15163
15179
  updated(changedProperties) {
15164
15180
  this.floater.handleUpdate(changedProperties);
15165
15181
 
15182
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
15183
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
15166
15184
  if (changedProperties.has('fullscreenBreakpoint')) {
15167
15185
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
15168
15186
  }
@@ -15298,7 +15316,7 @@ class AuroDropdown extends LitElement {
15298
15316
 
15299
15317
  this.triggerContentSlot.forEach((node) => {
15300
15318
  if (node.querySelectorAll) {
15301
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15319
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15302
15320
  auroElements.forEach((auroEl) => {
15303
15321
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
15304
15322
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -15319,7 +15337,7 @@ class AuroDropdown extends LitElement {
15319
15337
 
15320
15338
  this.triggerContentSlot.forEach((node) => {
15321
15339
  if (node.querySelectorAll) {
15322
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
15340
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
15323
15341
  auroElements.forEach((auroEl) => {
15324
15342
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
15325
15343
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -22098,6 +22116,7 @@ class AuroDatePicker extends LitElement {
22098
22116
  this.calendarEndDate = undefined;
22099
22117
  this.calendarFocusDate = this.value;
22100
22118
  this.format = 'mm/dd/yyyy';
22119
+ this.fullscreenBreakpoint = 'sm';
22101
22120
  this.monthNames = [
22102
22121
  'January',
22103
22122
  'February',
@@ -22235,6 +22254,19 @@ class AuroDatePicker extends LitElement {
22235
22254
  reflect: true
22236
22255
  },
22237
22256
 
22257
+ /**
22258
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
22259
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
22260
+ *
22261
+ * When expanded, the dropdown will automatically display in fullscreen mode
22262
+ * if the screen size is equal to or smaller than the selected breakpoint.
22263
+ * @default sm
22264
+ */
22265
+ fullscreenBreakpoint: {
22266
+ type: String,
22267
+ reflect: true
22268
+ },
22269
+
22238
22270
  /**
22239
22271
  * If declared, make bib.fullscreen.headline in HeadingDisplay.
22240
22272
  * Otherwise, Heading 600.
@@ -23061,7 +23093,7 @@ class AuroDatePicker extends LitElement {
23061
23093
  ?disabled="${this.disabled}"
23062
23094
  ?error="${this.validity !== undefined && this.validity !== 'valid'}"
23063
23095
  disableEventShow
23064
- fullscreenBreakpoint="sm"
23096
+ .fullscreenBreakpoint="${this.fullscreenBreakpoint}"
23065
23097
  .placement="${this.placement}"
23066
23098
  .offset="${this.offset}"
23067
23099
  ?autoPlacement="${this.autoPlacement}"