@aurodesignsystem/auro-formkit 2.0.3-beta.1 → 2.1.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/components/bibtemplate/dist/index.js +148 -8
  3. package/components/bibtemplate/dist/registered.js +148 -8
  4. package/components/checkbox/README.md +1 -1
  5. package/components/checkbox/demo/api.min.js +1 -1
  6. package/components/checkbox/demo/index.min.js +1 -1
  7. package/components/checkbox/demo/readme.md +1 -1
  8. package/components/checkbox/dist/index.js +1 -1
  9. package/components/checkbox/dist/registered.js +1 -1
  10. package/components/combobox/README.md +1 -1
  11. package/components/combobox/demo/api.min.js +644 -113
  12. package/components/combobox/demo/index.min.js +644 -113
  13. package/components/combobox/demo/readme.md +1 -1
  14. package/components/combobox/dist/index.js +511 -50
  15. package/components/combobox/dist/registered.js +511 -50
  16. package/components/counter/README.md +1 -1
  17. package/components/counter/demo/api.min.js +500 -39
  18. package/components/counter/demo/index.js +1 -0
  19. package/components/counter/demo/index.min.js +501 -39
  20. package/components/counter/demo/readme.md +1 -1
  21. package/components/counter/dist/index.js +500 -39
  22. package/components/counter/dist/registered.js +500 -39
  23. package/components/datepicker/README.md +1 -1
  24. package/components/datepicker/demo/api.md +30 -0
  25. package/components/datepicker/demo/api.min.js +1281 -207
  26. package/components/datepicker/demo/index.min.js +1281 -207
  27. package/components/datepicker/demo/readme.md +1 -1
  28. package/components/datepicker/dist/auro-calendar.d.ts +5 -1
  29. package/components/datepicker/dist/auro-datepicker.d.ts +7 -0
  30. package/components/datepicker/dist/buttonVersion.d.ts +2 -0
  31. package/components/datepicker/dist/index.js +1281 -207
  32. package/components/datepicker/dist/popoverVersion.d.ts +1 -1
  33. package/components/datepicker/dist/registered.js +1281 -207
  34. package/components/dropdown/README.md +1 -1
  35. package/components/dropdown/demo/api.min.js +81 -10
  36. package/components/dropdown/demo/index.min.js +81 -10
  37. package/components/dropdown/demo/readme.md +1 -1
  38. package/components/dropdown/dist/index.js +81 -10
  39. package/components/dropdown/dist/registered.js +81 -10
  40. package/components/form/README.md +1 -1
  41. package/components/form/demo/readme.md +1 -1
  42. package/components/input/README.md +1 -1
  43. package/components/input/demo/api.min.js +263 -13
  44. package/components/input/demo/index.min.js +263 -13
  45. package/components/input/demo/readme.md +1 -1
  46. package/components/input/dist/index.js +263 -13
  47. package/components/input/dist/registered.js +263 -13
  48. package/components/menu/README.md +1 -1
  49. package/components/menu/demo/api.min.js +77 -7
  50. package/components/menu/demo/index.min.js +77 -7
  51. package/components/menu/demo/readme.md +1 -1
  52. package/components/menu/dist/index.js +77 -7
  53. package/components/menu/dist/registered.js +77 -7
  54. package/components/radio/README.md +1 -1
  55. package/components/radio/demo/api.min.js +1 -1
  56. package/components/radio/demo/index.min.js +1 -1
  57. package/components/radio/demo/readme.md +1 -1
  58. package/components/radio/dist/index.js +1 -1
  59. package/components/radio/dist/registered.js +1 -1
  60. package/components/select/README.md +1 -1
  61. package/components/select/demo/api.min.js +319 -38
  62. package/components/select/demo/index.min.js +319 -38
  63. package/components/select/demo/readme.md +1 -1
  64. package/components/select/dist/index.js +240 -29
  65. package/components/select/dist/registered.js +240 -29
  66. package/package.json +2 -2
@@ -155,7 +155,7 @@ const a=Symbol.for(""),o$1=t=>{if(t?.r===a)return t?._$litStatic$},s=t=>({_$litS
155
155
 
156
156
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
157
157
 
158
- let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
158
+ let AuroLibraryRuntimeUtils$5 = class AuroLibraryRuntimeUtils {
159
159
 
160
160
  /* eslint-disable jsdoc/require-param */
161
161
 
@@ -224,7 +224,7 @@ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
224
224
 
225
225
  class AuroFormValidation {
226
226
  constructor() {
227
- this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
227
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
228
228
  }
229
229
 
230
230
  /**
@@ -582,7 +582,7 @@ let AuroDependencyVersioning$2 = class AuroDependencyVersioning {
582
582
 
583
583
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
584
584
 
585
- let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
585
+ let AuroLibraryRuntimeUtils$2$1 = class AuroLibraryRuntimeUtils {
586
586
 
587
587
  /* eslint-disable jsdoc/require-param */
588
588
 
@@ -2395,11 +2395,11 @@ class AuroFloatingUI {
2395
2395
 
2396
2396
  updateCurrentExpandedDropdown() {
2397
2397
  // Close any other dropdown that is already open
2398
- if (document.expandedAuroDropdown) {
2399
- this.hideBib(document.expandedAuroDropdown);
2398
+ if (document.expandedAuroFormkitDropdown) {
2399
+ document.expandedAuroFormkitDropdown.hide;
2400
2400
  }
2401
2401
 
2402
- document.expandedAuroDropdown = this;
2402
+ document.expandedAuroFormkitDropdown = this;
2403
2403
  }
2404
2404
 
2405
2405
  showBib() {
@@ -2774,6 +2774,76 @@ var tokensCss$2$1 = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-d
2774
2774
 
2775
2775
  var colorCss$3$1 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
2776
2776
 
2777
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
2778
+ // See LICENSE in the project root for license information.
2779
+
2780
+ // ---------------------------------------------------------------------
2781
+
2782
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
2783
+
2784
+ let AuroLibraryRuntimeUtils$1$1 = class AuroLibraryRuntimeUtils {
2785
+
2786
+ /* eslint-disable jsdoc/require-param */
2787
+
2788
+ /**
2789
+ * This will register a new custom element with the browser.
2790
+ * @param {String} name - The name of the custom element.
2791
+ * @param {Object} componentClass - The class to register as a custom element.
2792
+ * @returns {void}
2793
+ */
2794
+ registerComponent(name, componentClass) {
2795
+ if (!customElements.get(name)) {
2796
+ customElements.define(name, class extends componentClass {});
2797
+ }
2798
+ }
2799
+
2800
+ /**
2801
+ * Finds and returns the closest HTML Element based on a selector.
2802
+ * @returns {void}
2803
+ */
2804
+ closestElement(
2805
+ selector, // selector like in .closest()
2806
+ base = this, // extra functionality to skip a parent
2807
+ __Closest = (el, found = el && el.closest(selector)) =>
2808
+ !el || el === document || el === window
2809
+ ? null // standard .closest() returns null for non-found selectors also
2810
+ : found
2811
+ ? found // found a selector INside this element
2812
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
2813
+ ) {
2814
+ return __Closest(base);
2815
+ }
2816
+ /* eslint-enable jsdoc/require-param */
2817
+
2818
+ /**
2819
+ * 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.
2820
+ * @param {Object} elem - The element to check.
2821
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
2822
+ * @returns {void}
2823
+ */
2824
+ handleComponentTagRename(elem, tagName) {
2825
+ const tag = tagName.toLowerCase();
2826
+ const elemTag = elem.tagName.toLowerCase();
2827
+
2828
+ if (elemTag !== tag) {
2829
+ elem.setAttribute(tag, true);
2830
+ }
2831
+ }
2832
+
2833
+ /**
2834
+ * Validates if an element is a specific Auro component.
2835
+ * @param {Object} elem - The element to validate.
2836
+ * @param {String} tagName - The name of the Auro component to check against.
2837
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
2838
+ */
2839
+ elementMatch(elem, tagName) {
2840
+ const tag = tagName.toLowerCase();
2841
+ const elemTag = elem.tagName.toLowerCase();
2842
+
2843
+ return elemTag === tag || elem.hasAttribute(tag);
2844
+ }
2845
+ };
2846
+
2777
2847
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
2778
2848
  // See LICENSE in the project root for license information.
2779
2849
 
@@ -2806,7 +2876,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
2806
2876
  this.tertiary = false;
2807
2877
  this.warning = false;
2808
2878
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
2809
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
2879
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1$1();
2810
2880
  }
2811
2881
 
2812
2882
  // function to define props used within the scope of this component
@@ -2968,7 +3038,7 @@ let AuroIcon$2 = class AuroIcon extends BaseIcon$2 {
2968
3038
  *
2969
3039
  */
2970
3040
  static register(name = "auro-icon") {
2971
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
3041
+ AuroLibraryRuntimeUtils$1$1.prototype.registerComponent(name, AuroIcon);
2972
3042
  }
2973
3043
 
2974
3044
  connectedCallback() {
@@ -3070,7 +3140,7 @@ class AuroDropdownBib extends r {
3070
3140
  */
3071
3141
  this._mobileBreakpointValue = undefined;
3072
3142
 
3073
- AuroLibraryRuntimeUtils$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3143
+ AuroLibraryRuntimeUtils$2$1.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
3074
3144
  }
3075
3145
 
3076
3146
  static get styles() {
@@ -3178,7 +3248,7 @@ var tokensCss$4 = i$5`:host{--ds-auro-helptext-color: var(--ds-color-text-tertia
3178
3248
 
3179
3249
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3180
3250
 
3181
- let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
3251
+ let AuroLibraryRuntimeUtils$4 = class AuroLibraryRuntimeUtils {
3182
3252
 
3183
3253
  /* eslint-disable jsdoc/require-param */
3184
3254
 
@@ -3258,7 +3328,7 @@ class AuroHelpText extends r {
3258
3328
  this.error = false;
3259
3329
  this.hasTextContent = false;
3260
3330
 
3261
- AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-helptext');
3331
+ AuroLibraryRuntimeUtils$4.prototype.handleComponentTagRename(this, 'auro-helptext');
3262
3332
  }
3263
3333
 
3264
3334
  static get styles() {
@@ -3306,7 +3376,7 @@ class AuroHelpText extends r {
3306
3376
  *
3307
3377
  */
3308
3378
  static register(name = "auro-helptext") {
3309
- AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroHelpText);
3379
+ AuroLibraryRuntimeUtils$4.prototype.registerComponent(name, AuroHelpText);
3310
3380
  }
3311
3381
 
3312
3382
  updated() {
@@ -3439,7 +3509,7 @@ class AuroDropdown extends r {
3439
3509
  /**
3440
3510
  * @private
3441
3511
  */
3442
- this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
3512
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$2$1();
3443
3513
 
3444
3514
  /**
3445
3515
  * @private
@@ -3464,17 +3534,17 @@ class AuroDropdown extends r {
3464
3534
  /**
3465
3535
  * @private
3466
3536
  */
3467
- this.iconTag = versioning.generateTag('auro-icon', iconVersion$2, AuroIcon$2);
3537
+ this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion$2, AuroIcon$2);
3468
3538
 
3469
3539
  /**
3470
3540
  * @private
3471
3541
  */
3472
- this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion$1, AuroDropdownBib);
3542
+ this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion$1, AuroDropdownBib);
3473
3543
 
3474
3544
  /**
3475
3545
  * @private
3476
3546
  */
3477
- this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
3547
+ this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
3478
3548
  }
3479
3549
 
3480
3550
  /**
@@ -3677,7 +3747,7 @@ class AuroDropdown extends r {
3677
3747
  *
3678
3748
  */
3679
3749
  static register(name = "auro-dropdown") {
3680
- AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
3750
+ AuroLibraryRuntimeUtils$2$1.prototype.registerComponent(name, AuroDropdown);
3681
3751
  }
3682
3752
 
3683
3753
  connectedCallback() {
@@ -3700,6 +3770,7 @@ class AuroDropdown extends r {
3700
3770
  if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
3701
3771
  this.handleTriggerContentSlotChange();
3702
3772
  }
3773
+
3703
3774
  }
3704
3775
 
3705
3776
  firstUpdated() {
@@ -3945,7 +4016,7 @@ var tokenCss = i$5`:host{--ds-auro-dropdownbib-header-boxshadow-color: var(--ds-
3945
4016
 
3946
4017
  /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
3947
4018
 
3948
- class AuroLibraryRuntimeUtils {
4019
+ let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
3949
4020
 
3950
4021
  /* eslint-disable jsdoc/require-param */
3951
4022
 
@@ -4006,7 +4077,7 @@ class AuroLibraryRuntimeUtils {
4006
4077
 
4007
4078
  return elemTag === tag || elem.hasAttribute(tag);
4008
4079
  }
4009
- }
4080
+ };
4010
4081
 
4011
4082
  // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
4012
4083
  // See LICENSE in the project root for license information.
@@ -4199,6 +4270,76 @@ var tokensCss$3 = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-def
4199
4270
 
4200
4271
  var colorCss$4 = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
4201
4272
 
4273
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
4274
+ // See LICENSE in the project root for license information.
4275
+
4276
+ // ---------------------------------------------------------------------
4277
+
4278
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
4279
+
4280
+ let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
4281
+
4282
+ /* eslint-disable jsdoc/require-param */
4283
+
4284
+ /**
4285
+ * This will register a new custom element with the browser.
4286
+ * @param {String} name - The name of the custom element.
4287
+ * @param {Object} componentClass - The class to register as a custom element.
4288
+ * @returns {void}
4289
+ */
4290
+ registerComponent(name, componentClass) {
4291
+ if (!customElements.get(name)) {
4292
+ customElements.define(name, class extends componentClass {});
4293
+ }
4294
+ }
4295
+
4296
+ /**
4297
+ * Finds and returns the closest HTML Element based on a selector.
4298
+ * @returns {void}
4299
+ */
4300
+ closestElement(
4301
+ selector, // selector like in .closest()
4302
+ base = this, // extra functionality to skip a parent
4303
+ __Closest = (el, found = el && el.closest(selector)) =>
4304
+ !el || el === document || el === window
4305
+ ? null // standard .closest() returns null for non-found selectors also
4306
+ : found
4307
+ ? found // found a selector INside this element
4308
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
4309
+ ) {
4310
+ return __Closest(base);
4311
+ }
4312
+ /* eslint-enable jsdoc/require-param */
4313
+
4314
+ /**
4315
+ * 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.
4316
+ * @param {Object} elem - The element to check.
4317
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
4318
+ * @returns {void}
4319
+ */
4320
+ handleComponentTagRename(elem, tagName) {
4321
+ const tag = tagName.toLowerCase();
4322
+ const elemTag = elem.tagName.toLowerCase();
4323
+
4324
+ if (elemTag !== tag) {
4325
+ elem.setAttribute(tag, true);
4326
+ }
4327
+ }
4328
+
4329
+ /**
4330
+ * Validates if an element is a specific Auro component.
4331
+ * @param {Object} elem - The element to validate.
4332
+ * @param {String} tagName - The name of the Auro component to check against.
4333
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
4334
+ */
4335
+ elementMatch(elem, tagName) {
4336
+ const tag = tagName.toLowerCase();
4337
+ const elemTag = elem.tagName.toLowerCase();
4338
+
4339
+ return elemTag === tag || elem.hasAttribute(tag);
4340
+ }
4341
+ };
4342
+
4202
4343
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
4203
4344
  // See LICENSE in the project root for license information.
4204
4345
 
@@ -4231,7 +4372,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
4231
4372
  this.tertiary = false;
4232
4373
  this.warning = false;
4233
4374
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
4234
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
4375
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
4235
4376
  }
4236
4377
 
4237
4378
  // function to define props used within the scope of this component
@@ -4393,7 +4534,7 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
4393
4534
  *
4394
4535
  */
4395
4536
  static register(name = "auro-icon") {
4396
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
4537
+ AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroIcon);
4397
4538
  }
4398
4539
 
4399
4540
  connectedCallback() {
@@ -4461,6 +4602,76 @@ let AuroIcon$1 = class AuroIcon extends BaseIcon$1 {
4461
4602
 
4462
4603
  var iconVersion$1 = '7.0.1';
4463
4604
 
4605
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
4606
+ // See LICENSE in the project root for license information.
4607
+
4608
+ // ---------------------------------------------------------------------
4609
+
4610
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
4611
+
4612
+ let AuroLibraryRuntimeUtils$3 = class AuroLibraryRuntimeUtils {
4613
+
4614
+ /* eslint-disable jsdoc/require-param */
4615
+
4616
+ /**
4617
+ * This will register a new custom element with the browser.
4618
+ * @param {String} name - The name of the custom element.
4619
+ * @param {Object} componentClass - The class to register as a custom element.
4620
+ * @returns {void}
4621
+ */
4622
+ registerComponent(name, componentClass) {
4623
+ if (!customElements.get(name)) {
4624
+ customElements.define(name, class extends componentClass {});
4625
+ }
4626
+ }
4627
+
4628
+ /**
4629
+ * Finds and returns the closest HTML Element based on a selector.
4630
+ * @returns {void}
4631
+ */
4632
+ closestElement(
4633
+ selector, // selector like in .closest()
4634
+ base = this, // extra functionality to skip a parent
4635
+ __Closest = (el, found = el && el.closest(selector)) =>
4636
+ !el || el === document || el === window
4637
+ ? null // standard .closest() returns null for non-found selectors also
4638
+ : found
4639
+ ? found // found a selector INside this element
4640
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
4641
+ ) {
4642
+ return __Closest(base);
4643
+ }
4644
+ /* eslint-enable jsdoc/require-param */
4645
+
4646
+ /**
4647
+ * 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.
4648
+ * @param {Object} elem - The element to check.
4649
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
4650
+ * @returns {void}
4651
+ */
4652
+ handleComponentTagRename(elem, tagName) {
4653
+ const tag = tagName.toLowerCase();
4654
+ const elemTag = elem.tagName.toLowerCase();
4655
+
4656
+ if (elemTag !== tag) {
4657
+ elem.setAttribute(tag, true);
4658
+ }
4659
+ }
4660
+
4661
+ /**
4662
+ * Validates if an element is a specific Auro component.
4663
+ * @param {Object} elem - The element to validate.
4664
+ * @param {String} tagName - The name of the Auro component to check against.
4665
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
4666
+ */
4667
+ elementMatch(elem, tagName) {
4668
+ const tag = tagName.toLowerCase();
4669
+ const elemTag = elem.tagName.toLowerCase();
4670
+
4671
+ return elemTag === tag || elem.hasAttribute(tag);
4672
+ }
4673
+ };
4674
+
4464
4675
  var styleCss$4 = i$5`.heading{margin:1.75rem 0;letter-spacing:var(--ds-text-heading-default-spacing, -0.2px);font-weight:var(--ds-text-heading-default-weight, 500)}.heading--display{margin-top:0;font-size:var(--ds-text-heading-display-size-breakpoint-sm, 2.75rem);font-weight:var(--ds-text-heading-display-weight, 100);line-height:var(--ds-text-heading-display-height-breakpoint-sm, 3.375rem)}@media screen and (min-width: 768px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-md, 3rem);line-height:var(--ds-text-heading-display-height-breakpoint-md, 3.75rem)}}@media screen and (min-width: 1024px){.heading--display{font-size:var(--ds-text-heading-display-size-breakpoint-lg, 3.5rem);line-height:var(--ds-text-heading-display-height-breakpoint-lg, 4.25rem)}}.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-sm, 2rem);font-weight:var(--ds-text-heading-800-weight, 500);line-height:var(--ds-text-heading-800-height-breakpoint-sm, 2.375rem)}@media screen and (min-width: 768px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-md, 2.25rem);line-height:var(--ds-text-heading-800-height-breakpoint-md, 2.625rem)}}@media screen and (min-width: 1024px){.heading--800{font-size:var(--ds-text-heading-800-size-breakpoint-lg, 2.5rem);line-height:var(--ds-text-heading-800-height-breakpoint-lg, 3rem)}}.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-sm, 1.75rem);font-weight:var(--ds-text-heading-700-weight, 500);line-height:var(--ds-text-heading-700-height-breakpoint-sm, 2.125rem)}@media screen and (min-width: 768px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-md, 2rem);line-height:var(--ds-text-heading-700-height-breakpoint-md, 2.375rem)}}@media screen and (min-width: 1024px){.heading--700{font-size:var(--ds-text-heading-700-size-breakpoint-lg, 2.25rem);line-height:var(--ds-text-heading-700-height-breakpoint-lg, 2.75rem)}}.heading--600{margin:1rem 0;font-size:var(--ds-text-heading-600-size-breakpoint-sm, 1.625rem);font-weight:var(--ds-text-heading-600-weight, 300);line-height:var(--ds-text-heading-600-height-breakpoint-sm, 1.875rem)}@media screen and (min-width: 768px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-md, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-md, 2.125rem)}}@media screen and (min-width: 1024px){.heading--600{font-size:var(--ds-text-heading-600-size-breakpoint-lg, 1.75rem);line-height:var(--ds-text-heading-600-height-breakpoint-lg, 2.25rem)}}.heading--500{margin:1rem 0;font-size:var(--ds-text-heading-500-size-breakpoint-sm, 1.375rem);font-weight:var(--ds-text-heading-500-weight, 300);line-height:var(--ds-text-heading-500-height-breakpoint-sm, 1.625rem)}@media screen and (min-width: 768px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-md, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-md, 1.875rem)}}@media screen and (min-width: 1024px){.heading--500{font-size:var(--ds-text-heading-500-size-breakpoint-lg, 1.5rem);line-height:var(--ds-text-heading-500-height-breakpoint-lg, 2rem)}}.heading--400{margin:.75rem 0;font-size:var(--ds-text-heading-400-size, 1.25rem);font-weight:var(--ds-text-heading-400-weight, 300);line-height:var(--ds-text-heading-400-height, 1.625rem)}.heading--300{margin:.75rem 0;font-size:var(--ds-text-heading-300-size, 1.125rem);font-weight:var(--ds-text-heading-300-weight, 300);line-height:var(--ds-text-heading-300-height, 1.625rem)}:host([no-margin-block]) .heading{margin-block:0}.util_stackMarginnone--bottom{margin-bottom:0}.util_stackMargin25--bottom{margin-bottom:var(--ds-size-25, 0.125rem)}.util_stackMargin50--bottom{margin-bottom:var(--ds-size-50, 0.25rem)}.util_stackMargin100--bottom{margin-bottom:var(--ds-size-100, 0.5rem)}.util_stackMargin150--bottom{margin-bottom:var(--ds-size-150, 0.75rem)}.util_stackMargin200--bottom{margin-bottom:var(--ds-size-200, 1rem)}.util_stackMargin300--bottom{margin-bottom:var(--ds-size-300, 1.5rem)}.util_stackMargin400--bottom{margin-bottom:var(--ds-size-400, 2rem)}.util_stackMargin600--bottom{margin-bottom:var(--ds-size-600, 3rem)}.util_stackMargin800--bottom{margin-bottom:var(--ds-size-800, 4rem)}.util_stackMarginnone--top{margin-top:0}.util_stackMargin25--top{margin-top:var(--ds-size-25, 0.125rem)}.util_stackMargin50--top{margin-top:var(--ds-size-50, 0.25rem)}.util_stackMargin100--top{margin-top:var(--ds-size-100, 0.5rem)}.util_stackMargin150--top{margin-top:var(--ds-size-150, 0.75rem)}.util_stackMargin200--top{margin-top:var(--ds-size-200, 1rem)}.util_stackMargin300--top{margin-top:var(--ds-size-300, 1.5rem)}.util_stackMargin400--top{margin-top:var(--ds-size-400, 2rem)}.util_stackMargin600--top{margin-top:var(--ds-size-600, 3rem)}.util_stackMargin800--top{margin-top:var(--ds-size-800, 4rem)}`;
4465
4676
 
4466
4677
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
@@ -4490,7 +4701,7 @@ class AuroHeader extends r {
4490
4701
  /**
4491
4702
  * @private
4492
4703
  */
4493
- this.runtimeUtils = new AuroLibraryRuntimeUtils();
4704
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
4494
4705
  }
4495
4706
 
4496
4707
  // function to define props used within the scope of this component
@@ -4520,7 +4731,7 @@ class AuroHeader extends r {
4520
4731
  *
4521
4732
  */
4522
4733
  static register(name = "auro-header") {
4523
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroHeader);
4734
+ AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroHeader);
4524
4735
  }
4525
4736
 
4526
4737
  firstUpdated() {
@@ -4614,11 +4825,11 @@ class AuroBibtemplate extends r {
4614
4825
  constructor() {
4615
4826
  super();
4616
4827
 
4617
- AuroLibraryRuntimeUtils.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
4828
+ AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-bibtemplate');
4618
4829
 
4619
4830
  const versioning = new AuroDependencyVersioning();
4620
- this.iconTag = versioning.generateTag('auro-icon', iconVersion$1, AuroIcon$1);
4621
- this.headerTag = versioning.generateTag('auro-header', headerVersion, AuroHeader);
4831
+ this.iconTag = versioning.generateTag('auro-formkit-bibtemplate-icon', iconVersion$1, AuroIcon$1);
4832
+ this.headerTag = versioning.generateTag('auro-formkit-bibtemplate-header', headerVersion, AuroHeader);
4622
4833
  }
4623
4834
 
4624
4835
  static get styles() {
@@ -4653,7 +4864,7 @@ class AuroBibtemplate extends r {
4653
4864
  *
4654
4865
  */
4655
4866
  static register(name = "auro-bibtemplate") {
4656
- AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroBibtemplate);
4867
+ AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroBibtemplate);
4657
4868
  }
4658
4869
 
4659
4870
  /**
@@ -4892,7 +5103,7 @@ class AuroSelect extends r {
4892
5103
  /**
4893
5104
  * @private
4894
5105
  */
4895
- this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
5106
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
4896
5107
 
4897
5108
  /**
4898
5109
  * Generate unique names for dependency components.
@@ -4902,12 +5113,12 @@ class AuroSelect extends r {
4902
5113
  /**
4903
5114
  * @private
4904
5115
  */
4905
- this.dropdownTag = versioning.generateTag('auro-dropdown', dropdownVersion, AuroDropdown);
5116
+ this.dropdownTag = versioning.generateTag('auro-formkit-select-dropdown', dropdownVersion, AuroDropdown);
4906
5117
 
4907
5118
  /**
4908
5119
  * @private
4909
5120
  */
4910
- this.bibtemplateTag = versioning.generateTag('auro-bibtemplate', bibTemplateVersion, AuroBibtemplate);
5121
+ this.bibtemplateTag = versioning.generateTag('auro-formkit-select-bibtemplate', bibTemplateVersion, AuroBibtemplate);
4911
5122
 
4912
5123
  /**
4913
5124
  * @private
@@ -5110,7 +5321,7 @@ class AuroSelect extends r {
5110
5321
  *
5111
5322
  */
5112
5323
  static register(name = "auro-select") {
5113
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroSelect);
5324
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroSelect);
5114
5325
  }
5115
5326
 
5116
5327
  /**
@@ -5788,7 +5999,7 @@ class AuroMenu extends r {
5788
5999
  *
5789
6000
  */
5790
6001
  static register(name = "auro-menu") {
5791
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroMenu);
6002
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenu);
5792
6003
  }
5793
6004
 
5794
6005
  // Lifecycle Methods
@@ -5812,7 +6023,7 @@ class AuroMenu extends r {
5812
6023
  }
5813
6024
 
5814
6025
  firstUpdated() {
5815
- AuroLibraryRuntimeUtils$3.prototype.handleComponentTagRename(this, 'auro-menu');
6026
+ AuroLibraryRuntimeUtils$5.prototype.handleComponentTagRename(this, 'auro-menu');
5816
6027
 
5817
6028
  this.loadingSlots = this.querySelectorAll("[slot='loadingText'], [slot='loadingIcon']");
5818
6029
  this.initializeMenu();
@@ -6503,6 +6714,76 @@ var tokensCss = i$5`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-defau
6503
6714
 
6504
6715
  var colorCss = i$5`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-default, #a2c270)}:host(:not([onDark])[disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-default, #adadad)}:host(:not([onDark])[emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-default, #2a2a2a)}:host(:not([onDark])[error]){--ds-auro-icon-color:var(--ds-color-icon-error-default, #cc1816)}:host(:not([onDark])[info]){--ds-auro-icon-color:var(--ds-color-icon-info-default, #326aa5)}:host(:not([onDark])[secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-default, #7e8894)}:host(:not([onDark])[subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-default, #a0c9f1)}:host(:not([onDark])[success]){--ds-auro-icon-color:var(--ds-color-icon-success-default, #40a080)}:host(:not([onDark])[tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-default, #afb9c6)}:host(:not([onDark])[warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-default, #c49432)}:host([onDark]){--ds-auro-icon-color:var(--ds-color-icon-primary-inverse, #f7f7f7)}:host([onDark][accent]){--ds-auro-icon-color:var(--ds-color-icon-accent-inverse, #badd81)}:host([onDark][disabled]){--ds-auro-icon-color:var(--ds-color-icon-ui-primary-disabled-inverse, #7e7e7e)}:host([onDark][emphasis]){--ds-auro-icon-color:var(--ds-color-icon-emphasis-inverse, #ffffff)}:host([onDark][error]){--ds-auro-icon-color:var(--ds-color-icon-error-inverse, #f9aca6)}:host([onDark][info]){--ds-auro-icon-color:var(--ds-color-icon-info-inverse, #89b2d4)}:host([onDark][secondary]){--ds-auro-icon-color:var(--ds-color-icon-secondary-inverse, #ccd2db)}:host([onDark][subtle]){--ds-auro-icon-color:var(--ds-color-icon-subtle-inverse, #326aa5)}:host([onDark][success]){--ds-auro-icon-color:var(--ds-color-icon-success-inverse, #8eceb9)}:host([onDark][tertiary]){--ds-auro-icon-color:var(--ds-color-icon-tertiary-inverse, #939fad)}:host([onDark][warning]){--ds-auro-icon-color:var(--ds-color-icon-warning-inverse, #f2c153)}`;
6505
6716
 
6717
+ // Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
6718
+ // See LICENSE in the project root for license information.
6719
+
6720
+ // ---------------------------------------------------------------------
6721
+
6722
+ /* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
6723
+
6724
+ class AuroLibraryRuntimeUtils {
6725
+
6726
+ /* eslint-disable jsdoc/require-param */
6727
+
6728
+ /**
6729
+ * This will register a new custom element with the browser.
6730
+ * @param {String} name - The name of the custom element.
6731
+ * @param {Object} componentClass - The class to register as a custom element.
6732
+ * @returns {void}
6733
+ */
6734
+ registerComponent(name, componentClass) {
6735
+ if (!customElements.get(name)) {
6736
+ customElements.define(name, class extends componentClass {});
6737
+ }
6738
+ }
6739
+
6740
+ /**
6741
+ * Finds and returns the closest HTML Element based on a selector.
6742
+ * @returns {void}
6743
+ */
6744
+ closestElement(
6745
+ selector, // selector like in .closest()
6746
+ base = this, // extra functionality to skip a parent
6747
+ __Closest = (el, found = el && el.closest(selector)) =>
6748
+ !el || el === document || el === window
6749
+ ? null // standard .closest() returns null for non-found selectors also
6750
+ : found
6751
+ ? found // found a selector INside this element
6752
+ : __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
6753
+ ) {
6754
+ return __Closest(base);
6755
+ }
6756
+ /* eslint-enable jsdoc/require-param */
6757
+
6758
+ /**
6759
+ * 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.
6760
+ * @param {Object} elem - The element to check.
6761
+ * @param {String} tagName - The name of the Auro component to check for or add as an attribute.
6762
+ * @returns {void}
6763
+ */
6764
+ handleComponentTagRename(elem, tagName) {
6765
+ const tag = tagName.toLowerCase();
6766
+ const elemTag = elem.tagName.toLowerCase();
6767
+
6768
+ if (elemTag !== tag) {
6769
+ elem.setAttribute(tag, true);
6770
+ }
6771
+ }
6772
+
6773
+ /**
6774
+ * Validates if an element is a specific Auro component.
6775
+ * @param {Object} elem - The element to validate.
6776
+ * @param {String} tagName - The name of the Auro component to check against.
6777
+ * @returns {Boolean} - Returns true if the element is the specified Auro component.
6778
+ */
6779
+ elementMatch(elem, tagName) {
6780
+ const tag = tagName.toLowerCase();
6781
+ const elemTag = elem.tagName.toLowerCase();
6782
+
6783
+ return elemTag === tag || elem.hasAttribute(tag);
6784
+ }
6785
+ }
6786
+
6506
6787
  // Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
6507
6788
  // See LICENSE in the project root for license information.
6508
6789
 
@@ -6535,7 +6816,7 @@ class AuroIcon extends BaseIcon {
6535
6816
  this.tertiary = false;
6536
6817
  this.warning = false;
6537
6818
  this.uri = 'https://cdn.jsdelivr.net/npm/@alaskaairux/icons@latest/dist';
6538
- this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
6819
+ this.runtimeUtils = new AuroLibraryRuntimeUtils();
6539
6820
  }
6540
6821
 
6541
6822
  // function to define props used within the scope of this component
@@ -6697,7 +6978,7 @@ class AuroIcon extends BaseIcon {
6697
6978
  *
6698
6979
  */
6699
6980
  static register(name = "auro-icon") {
6700
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroIcon);
6981
+ AuroLibraryRuntimeUtils.prototype.registerComponent(name, AuroIcon);
6701
6982
  }
6702
6983
 
6703
6984
  connectedCallback() {
@@ -6789,7 +7070,7 @@ class AuroMenuOption extends r {
6789
7070
  * Generate unique names for dependency components.
6790
7071
  */
6791
7072
  const versioning = new AuroDependencyVersioning$2();
6792
- this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
7073
+ this.iconTag = versioning.generateTag('auro-formkit-menuoption-icon', iconVersion, AuroIcon);
6793
7074
 
6794
7075
  this.selected = false;
6795
7076
  this.nocheckmark = false;
@@ -6803,7 +7084,7 @@ class AuroMenuOption extends r {
6803
7084
  /**
6804
7085
  * @private
6805
7086
  */
6806
- this.runtimeUtils = new AuroLibraryRuntimeUtils$3();
7087
+ this.runtimeUtils = new AuroLibraryRuntimeUtils$5();
6807
7088
  }
6808
7089
 
6809
7090
  static get properties() {
@@ -6847,7 +7128,7 @@ class AuroMenuOption extends r {
6847
7128
  *
6848
7129
  */
6849
7130
  static register(name = "auro-menuoption") {
6850
- AuroLibraryRuntimeUtils$3.prototype.registerComponent(name, AuroMenuOption);
7131
+ AuroLibraryRuntimeUtils$5.prototype.registerComponent(name, AuroMenuOption);
6851
7132
  }
6852
7133
 
6853
7134
  firstUpdated() {