@aurodesignsystem/auro-formkit 3.0.0 → 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 (66) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/components/bibtemplate/dist/auro-bibtemplate.d.ts +1 -0
  3. package/components/bibtemplate/dist/index.js +2 -0
  4. package/components/bibtemplate/dist/registered.js +2 -0
  5. package/components/checkbox/README.md +1 -1
  6. package/components/checkbox/demo/readme.md +1 -1
  7. package/components/combobox/README.md +1 -1
  8. package/components/combobox/demo/api.md +5 -5
  9. package/components/combobox/demo/api.min.js +54 -18
  10. package/components/combobox/demo/index.min.js +54 -18
  11. package/components/combobox/demo/readme.md +1 -1
  12. package/components/combobox/dist/auro-combobox.d.ts +16 -7
  13. package/components/combobox/dist/index.js +54 -18
  14. package/components/combobox/dist/registered.js +54 -18
  15. package/components/counter/README.md +1 -1
  16. package/components/counter/demo/api.md +2 -2
  17. package/components/counter/demo/api.min.js +33 -6
  18. package/components/counter/demo/index.min.js +33 -6
  19. package/components/counter/demo/readme.md +1 -1
  20. package/components/counter/dist/auro-counter-group.d.ts +9 -3
  21. package/components/counter/dist/index.js +33 -6
  22. package/components/counter/dist/registered.js +33 -6
  23. package/components/datepicker/README.md +1 -1
  24. package/components/datepicker/demo/api.md +3 -2
  25. package/components/datepicker/demo/api.min.js +63 -14
  26. package/components/datepicker/demo/index.min.js +63 -14
  27. package/components/datepicker/demo/readme.md +1 -1
  28. package/components/datepicker/dist/auro-calendar-cell.d.ts +1 -0
  29. package/components/datepicker/dist/auro-calendar-month.d.ts +1 -0
  30. package/components/datepicker/dist/auro-calendar.d.ts +3 -2
  31. package/components/datepicker/dist/auro-datepicker.d.ts +16 -0
  32. package/components/datepicker/dist/index.js +63 -14
  33. package/components/datepicker/dist/registered.js +63 -14
  34. package/components/dropdown/README.md +1 -1
  35. package/components/dropdown/demo/api.md +1 -1
  36. package/components/dropdown/demo/api.min.js +21 -3
  37. package/components/dropdown/demo/index.md +83 -0
  38. package/components/dropdown/demo/index.min.js +21 -3
  39. package/components/dropdown/demo/readme.md +1 -1
  40. package/components/dropdown/dist/auro-dropdown.d.ts +12 -1
  41. package/components/dropdown/dist/index.js +21 -3
  42. package/components/dropdown/dist/registered.js +21 -3
  43. package/components/form/README.md +1 -1
  44. package/components/form/demo/autocomplete.html +15 -0
  45. package/components/form/demo/readme.md +1 -1
  46. package/components/input/README.md +1 -1
  47. package/components/input/demo/api.min.js +10 -5
  48. package/components/input/demo/index.min.js +10 -5
  49. package/components/input/demo/readme.md +1 -1
  50. package/components/input/dist/base-input.d.ts +5 -0
  51. package/components/input/dist/index.js +10 -5
  52. package/components/input/dist/registered.js +10 -5
  53. package/components/menu/README.md +1 -1
  54. package/components/menu/demo/readme.md +1 -1
  55. package/components/radio/README.md +1 -1
  56. package/components/radio/demo/readme.md +1 -1
  57. package/components/select/README.md +1 -1
  58. package/components/select/demo/api.md +1 -1
  59. package/components/select/demo/api.min.js +28 -5
  60. package/components/select/demo/index.md +46 -1
  61. package/components/select/demo/index.min.js +28 -5
  62. package/components/select/demo/readme.md +1 -1
  63. package/components/select/dist/auro-select.d.ts +5 -2
  64. package/components/select/dist/index.js +28 -5
  65. package/components/select/dist/registered.js +28 -5
  66. package/package.json +1 -1
@@ -3002,6 +3002,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
3002
3002
 
3003
3003
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
3004
3004
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3005
+ 'xl',
3005
3006
  'lg',
3006
3007
  'md',
3007
3008
  'sm',
@@ -3073,6 +3074,7 @@ class AuroDropdownBib extends LitElement {
3073
3074
 
3074
3075
  set mobileFullscreenBreakpoint(value) {
3075
3076
  // verify the defined breakpoint is valid and exit out if not
3077
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
3076
3078
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
3077
3079
  if (!validatedValue) {
3078
3080
  this._mobileBreakpointValue = undefined;
@@ -3585,7 +3587,12 @@ class AuroDropdown extends LitElement {
3585
3587
  },
3586
3588
 
3587
3589
  /**
3588
- * 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.
3590
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
3591
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
3592
+ *
3593
+ * When expanded, the dropdown will automatically display in fullscreen mode
3594
+ * if the screen size is equal to or smaller than the selected breakpoint.
3595
+ * @default sm
3589
3596
  */
3590
3597
  fullscreenBreakpoint: {
3591
3598
  type: String,
@@ -3708,6 +3715,15 @@ class AuroDropdown extends LitElement {
3708
3715
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
3709
3716
  }
3710
3717
 
3718
+ /**
3719
+ * Accessor for reusing the focusable entity query string.
3720
+ * @private
3721
+ * @returns {string}
3722
+ */
3723
+ get focusableEntityQuery () {
3724
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
3725
+ }
3726
+
3711
3727
  connectedCallback() {
3712
3728
  super.connectedCallback();
3713
3729
  }
@@ -3721,6 +3737,8 @@ class AuroDropdown extends LitElement {
3721
3737
  updated(changedProperties) {
3722
3738
  this.floater.handleUpdate(changedProperties);
3723
3739
 
3740
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
3741
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
3724
3742
  if (changedProperties.has('fullscreenBreakpoint')) {
3725
3743
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
3726
3744
  }
@@ -3856,7 +3874,7 @@ class AuroDropdown extends LitElement {
3856
3874
 
3857
3875
  this.triggerContentSlot.forEach((node) => {
3858
3876
  if (node.querySelectorAll) {
3859
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
3877
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
3860
3878
  auroElements.forEach((auroEl) => {
3861
3879
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
3862
3880
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -3877,7 +3895,7 @@ class AuroDropdown extends LitElement {
3877
3895
 
3878
3896
  this.triggerContentSlot.forEach((node) => {
3879
3897
  if (node.querySelectorAll) {
3880
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
3898
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
3881
3899
  auroElements.forEach((auroEl) => {
3882
3900
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
3883
3901
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -4714,6 +4732,8 @@ class AuroBibtemplate extends LitElement {
4714
4732
  constructor() {
4715
4733
  super();
4716
4734
 
4735
+ this.large = false;
4736
+
4717
4737
  AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
4718
4738
 
4719
4739
  const versioning = new AuroDependencyVersioning();
@@ -5062,8 +5082,11 @@ class AuroSelect extends LitElement {
5062
5082
  },
5063
5083
 
5064
5084
  /**
5065
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
5066
- * When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
5085
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
5086
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
5087
+ *
5088
+ * When expanded, the dropdown will automatically display in fullscreen mode
5089
+ * if the screen size is equal to or smaller than the selected breakpoint.
5067
5090
  * @default sm
5068
5091
  */
5069
5092
  fullscreenBreakpoint: {
@@ -3002,6 +3002,7 @@ var tokensCss$1 = css`:host{--ds-auro-dropdown-label-text-color: var(--ds-basic-
3002
3002
 
3003
3003
  const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
3004
3004
  const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
3005
+ 'xl',
3005
3006
  'lg',
3006
3007
  'md',
3007
3008
  'sm',
@@ -3073,6 +3074,7 @@ class AuroDropdownBib extends LitElement {
3073
3074
 
3074
3075
  set mobileFullscreenBreakpoint(value) {
3075
3076
  // verify the defined breakpoint is valid and exit out if not
3077
+ // 'disabled' is a design token breakpoint so it acts as our "undefined" value
3076
3078
  const validatedValue = DESIGN_TOKEN_BREAKPOINT_OPTIONS.includes(value) ? value : undefined;
3077
3079
  if (!validatedValue) {
3078
3080
  this._mobileBreakpointValue = undefined;
@@ -3585,7 +3587,12 @@ class AuroDropdown extends LitElement {
3585
3587
  },
3586
3588
 
3587
3589
  /**
3588
- * 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.
3590
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
3591
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
3592
+ *
3593
+ * When expanded, the dropdown will automatically display in fullscreen mode
3594
+ * if the screen size is equal to or smaller than the selected breakpoint.
3595
+ * @default sm
3589
3596
  */
3590
3597
  fullscreenBreakpoint: {
3591
3598
  type: String,
@@ -3708,6 +3715,15 @@ class AuroDropdown extends LitElement {
3708
3715
  AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroDropdown);
3709
3716
  }
3710
3717
 
3718
+ /**
3719
+ * Accessor for reusing the focusable entity query string.
3720
+ * @private
3721
+ * @returns {string}
3722
+ */
3723
+ get focusableEntityQuery () {
3724
+ return 'auro-input, [auro-input], auro-button, [auro-button], button, input';
3725
+ }
3726
+
3711
3727
  connectedCallback() {
3712
3728
  super.connectedCallback();
3713
3729
  }
@@ -3721,6 +3737,8 @@ class AuroDropdown extends LitElement {
3721
3737
  updated(changedProperties) {
3722
3738
  this.floater.handleUpdate(changedProperties);
3723
3739
 
3740
+ // Note: `disabled` is not a breakpoint (it is not a screen size),
3741
+ // so it looks like we never consume this - however, dropdownBib handles this in the setter as "undefined"
3724
3742
  if (changedProperties.has('fullscreenBreakpoint')) {
3725
3743
  this.bibContent.mobileFullscreenBreakpoint = this.fullscreenBreakpoint;
3726
3744
  }
@@ -3856,7 +3874,7 @@ class AuroDropdown extends LitElement {
3856
3874
 
3857
3875
  this.triggerContentSlot.forEach((node) => {
3858
3876
  if (node.querySelectorAll) {
3859
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
3877
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
3860
3878
  auroElements.forEach((auroEl) => {
3861
3879
  auroEl.addEventListener('focus', this.bindFocusEventToTrigger);
3862
3880
  auroEl.addEventListener('blur', this.bindFocusEventToTrigger);
@@ -3877,7 +3895,7 @@ class AuroDropdown extends LitElement {
3877
3895
 
3878
3896
  this.triggerContentSlot.forEach((node) => {
3879
3897
  if (node.querySelectorAll) {
3880
- const auroElements = node.querySelectorAll('auro-input, [auro-input], auro-button, [auro-button], button, input');
3898
+ const auroElements = node.querySelectorAll(this.focusableEntityQuery);
3881
3899
  auroElements.forEach((auroEl) => {
3882
3900
  auroEl.removeEventListener('focus', this.bindFocusEventToTrigger);
3883
3901
  auroEl.removeEventListener('blur', this.bindFocusEventToTrigger);
@@ -4714,6 +4732,8 @@ class AuroBibtemplate extends LitElement {
4714
4732
  constructor() {
4715
4733
  super();
4716
4734
 
4735
+ this.large = false;
4736
+
4717
4737
  AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
4718
4738
 
4719
4739
  const versioning = new AuroDependencyVersioning();
@@ -5062,8 +5082,11 @@ class AuroSelect extends LitElement {
5062
5082
  },
5063
5083
 
5064
5084
  /**
5065
- * Defines the screen size breakpoint (`lg`, `md`, `sm`, or `xs`) at which the dropdown switches to fullscreen mode on mobile.
5066
- * When expanded, the dropdown will automatically display in fullscreen mode if the screen size is equal to or smaller than the selected breakpoint.
5085
+ * Defines the screen size breakpoint (`xs`, `sm`, `md`, `lg`, `xl`, `disabled`)
5086
+ * at which the dropdown switches to fullscreen mode on mobile. `disabled` indicates a dropdown should _never_ enter fullscreen.
5087
+ *
5088
+ * When expanded, the dropdown will automatically display in fullscreen mode
5089
+ * if the screen size is equal to or smaller than the selected breakpoint.
5067
5090
  * @default sm
5068
5091
  */
5069
5092
  fullscreenBreakpoint: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aurodesignsystem/auro-formkit",
3
- "version": "3.0.0",
3
+ "version": "3.1.0-beta.1",
4
4
  "description": "A collection of web components used to build forms.",
5
5
  "homepage": "https://github.com/AlaskaAirlines/auro-formkit#readme",
6
6
  "bugs": {