@aurodesignsystem-dev/auro-formkit 0.0.0-pr1430.0 → 0.0.0-pr1431.0

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 (54) hide show
  1. package/components/checkbox/demo/api.min.js +3 -3
  2. package/components/checkbox/demo/index.min.js +3 -3
  3. package/components/checkbox/dist/index.js +3 -3
  4. package/components/checkbox/dist/registered.js +3 -3
  5. package/components/combobox/demo/api.html +1 -0
  6. package/components/combobox/demo/api.js +3 -1
  7. package/components/combobox/demo/api.md +75 -0
  8. package/components/combobox/demo/api.min.js +34 -124
  9. package/components/combobox/demo/index.min.js +21 -123
  10. package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
  11. package/components/combobox/dist/index.js +21 -123
  12. package/components/combobox/dist/registered.js +21 -123
  13. package/components/counter/demo/api.html +3 -0
  14. package/components/counter/demo/api.js +4 -0
  15. package/components/counter/demo/api.md +130 -0
  16. package/components/counter/demo/api.min.js +63 -132
  17. package/components/counter/demo/index.min.js +43 -132
  18. package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +3 -0
  19. package/components/counter/dist/index.js +43 -132
  20. package/components/counter/dist/registered.js +43 -132
  21. package/components/datepicker/demo/api.html +1 -0
  22. package/components/datepicker/demo/api.js +2 -0
  23. package/components/datepicker/demo/api.md +57 -0
  24. package/components/datepicker/demo/api.min.js +106 -123
  25. package/components/datepicker/demo/index.min.js +94 -123
  26. package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -1
  27. package/components/datepicker/dist/index.js +94 -123
  28. package/components/datepicker/dist/registered.js +94 -123
  29. package/components/dropdown/demo/api.html +1 -0
  30. package/components/dropdown/demo/api.js +2 -0
  31. package/components/dropdown/demo/api.md +95 -0
  32. package/components/dropdown/demo/api.min.js +25 -116
  33. package/components/dropdown/demo/index.min.js +5 -116
  34. package/components/dropdown/dist/index.js +5 -116
  35. package/components/dropdown/dist/registered.js +5 -116
  36. package/components/form/demo/api.min.js +220 -547
  37. package/components/form/demo/index.min.js +220 -547
  38. package/components/input/demo/api.min.js +1 -1
  39. package/components/input/demo/index.min.js +1 -1
  40. package/components/input/dist/index.js +1 -1
  41. package/components/input/dist/registered.js +1 -1
  42. package/components/radio/demo/api.min.js +2 -2
  43. package/components/radio/demo/index.min.js +2 -2
  44. package/components/radio/dist/index.js +2 -2
  45. package/components/radio/dist/registered.js +2 -2
  46. package/components/select/demo/api.html +1 -0
  47. package/components/select/demo/api.js +2 -0
  48. package/components/select/demo/api.md +76 -0
  49. package/components/select/demo/api.min.js +35 -129
  50. package/components/select/demo/index.min.js +22 -129
  51. package/components/select/dist/index.js +18 -125
  52. package/components/select/dist/registered.js +18 -125
  53. package/custom-elements.json +1451 -1427
  54. package/package.json +3 -2
@@ -13,7 +13,7 @@ import 'lit-html/directives/unsafe-html.js';
13
13
 
14
14
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
15
15
 
16
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
16
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
17
17
 
18
18
  /* eslint-disable jsdoc/require-param */
19
19
 
@@ -1802,7 +1802,6 @@ class AuroFloatingUI {
1802
1802
  this.focusHandler = null;
1803
1803
  this.clickHandler = null;
1804
1804
  this.keyDownHandler = null;
1805
- this.touchHandler = null;
1806
1805
 
1807
1806
  /**
1808
1807
  * @private
@@ -2220,28 +2219,6 @@ class AuroFloatingUI {
2220
2219
  setTimeout(() => {
2221
2220
  window.addEventListener("click", this.clickHandler);
2222
2221
  }, 0);
2223
-
2224
- // iOS Safari does not fire `click` on non-interactive elements, so
2225
- // tapping an inert backdrop never reaches the click handler above.
2226
- // Mirror the same outside-tap logic with a passive touchstart listener.
2227
- this.touchHandler = (evt) => {
2228
- const element = this.element;
2229
- if (!element?.bib) {
2230
- return;
2231
- }
2232
-
2233
- // fullscreen (modal) dialog handles its own dismissal
2234
- if (element.bib.hasAttribute("isfullscreen")) {
2235
- return;
2236
- }
2237
-
2238
- const path = evt.composedPath();
2239
- if (!path.includes(element.trigger) && !path.includes(element.bib)) {
2240
- this.hideBib("click");
2241
- }
2242
- };
2243
-
2244
- window.addEventListener("touchstart", this.touchHandler, { passive: true });
2245
2222
  }
2246
2223
 
2247
2224
  cleanupHideHandlers() {
@@ -2257,11 +2234,6 @@ class AuroFloatingUI {
2257
2234
  this.clickHandler = null;
2258
2235
  }
2259
2236
 
2260
- if (this.touchHandler) {
2261
- window.removeEventListener("touchstart", this.touchHandler);
2262
- this.touchHandler = null;
2263
- }
2264
-
2265
2237
  if (this.keyDownHandler) {
2266
2238
  document.removeEventListener("keydown", this.keyDownHandler);
2267
2239
  this.keyDownHandler = null;
@@ -3054,89 +3026,6 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
3054
3026
 
3055
3027
  var iconVersion = '9.1.2';
3056
3028
 
3057
- // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
3058
- // See LICENSE in the project root for license information.
3059
-
3060
- // ---------------------------------------------------------------------
3061
-
3062
- /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3063
-
3064
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
3065
-
3066
- /* eslint-disable jsdoc/require-param */
3067
-
3068
- /**
3069
- * This will register a new custom element with the browser.
3070
- * @param {String} name - The name of the custom element.
3071
- * @param {Object} componentClass - The class to register as a custom element.
3072
- * @returns {void}
3073
- */
3074
- registerComponent(name, componentClass) {
3075
- if (!customElements.get(name)) {
3076
- customElements.define(name, class extends componentClass {});
3077
- }
3078
- }
3079
-
3080
- /**
3081
- * Finds and returns the closest HTML Element based on a selector.
3082
- * @returns {void}
3083
- */
3084
- closestElement(
3085
- selector, // selector like in .closest()
3086
- base = this, // extra functionality to skip a parent
3087
- __Closest = (el, found = el && el.closest(selector)) =>
3088
- !el || el === document || el === window
3089
- ? null // standard .closest() returns null for non-found selectors also
3090
- : found
3091
- ? found // found a selector INside this element
3092
- : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
3093
- ) {
3094
- return __Closest(base);
3095
- }
3096
- /* eslint-enable jsdoc/require-param */
3097
-
3098
- /**
3099
- * If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
3100
- * @param {Object} elem - The element to check.
3101
- * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
3102
- * @returns {void}
3103
- */
3104
- handleComponentTagRename(elem, tagName) {
3105
- const tag = tagName.toLowerCase();
3106
- const elemTag = elem.tagName.toLowerCase();
3107
-
3108
- if (elemTag !== tag) {
3109
- elem.setAttribute(tag, true);
3110
- }
3111
- }
3112
-
3113
- /**
3114
- * Validates if an element is a specific Auro component.
3115
- * @param {Object} elem - The element to validate.
3116
- * @param {String} tagName - The name of the Auro component to check against.
3117
- * @returns {Boolean} - Returns true if the element is the specified Auro component.
3118
- */
3119
- elementMatch(elem, tagName) {
3120
- const tag = tagName.toLowerCase();
3121
- const elemTag = elem.tagName.toLowerCase();
3122
-
3123
- return elemTag === tag || elem.hasAttribute(tag);
3124
- }
3125
-
3126
- /**
3127
- * Gets the text content of a named slot.
3128
- * @returns {String}
3129
- * @private
3130
- */
3131
- getSlotText(elem, name) {
3132
- const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
3133
- const nodes = slot?.assignedNodes({ flatten: true }) || [];
3134
- const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
3135
-
3136
- return text || null;
3137
- }
3138
- };
3139
-
3140
3029
  /**
3141
3030
  * Computes display state once per keydown event.
3142
3031
  * Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
@@ -3819,7 +3708,7 @@ class AuroHelpText extends LitElement {
3819
3708
  }
3820
3709
  }
3821
3710
 
3822
- var formkitVersion = '202604082129';
3711
+ var formkitVersion = '202604091424';
3823
3712
 
3824
3713
  class AuroElement extends LitElement {
3825
3714
  static get properties() {
@@ -3925,7 +3814,7 @@ class AuroElement extends LitElement {
3925
3814
  }
3926
3815
  }
3927
3816
 
3928
- // Copyright (c) 2026 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
3817
+ // Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
3929
3818
  // See LICENSE in the project root for license information.
3930
3819
 
3931
3820
 
@@ -4030,7 +3919,7 @@ class AuroDropdown extends AuroElement {
4030
3919
  /**
4031
3920
  * @private
4032
3921
  */
4033
- this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
3922
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
4034
3923
 
4035
3924
  /**
4036
3925
  * @private
@@ -4448,7 +4337,7 @@ class AuroDropdown extends AuroElement {
4448
4337
  *
4449
4338
  */
4450
4339
  static register(name = "auro-dropdown") {
4451
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
4340
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
4452
4341
  }
4453
4342
 
4454
4343
  /**