@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.
- package/CHANGELOG.md +19 -0
- package/components/bibtemplate/dist/index.js +148 -8
- package/components/bibtemplate/dist/registered.js +148 -8
- package/components/checkbox/README.md +1 -1
- package/components/checkbox/demo/api.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/readme.md +1 -1
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/README.md +1 -1
- package/components/combobox/demo/api.min.js +644 -113
- package/components/combobox/demo/index.min.js +644 -113
- package/components/combobox/demo/readme.md +1 -1
- package/components/combobox/dist/index.js +511 -50
- package/components/combobox/dist/registered.js +511 -50
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +500 -39
- package/components/counter/demo/index.js +1 -0
- package/components/counter/demo/index.min.js +501 -39
- package/components/counter/demo/readme.md +1 -1
- package/components/counter/dist/index.js +500 -39
- package/components/counter/dist/registered.js +500 -39
- package/components/datepicker/README.md +1 -1
- package/components/datepicker/demo/api.md +30 -0
- package/components/datepicker/demo/api.min.js +1281 -207
- package/components/datepicker/demo/index.min.js +1281 -207
- package/components/datepicker/demo/readme.md +1 -1
- package/components/datepicker/dist/auro-calendar.d.ts +5 -1
- package/components/datepicker/dist/auro-datepicker.d.ts +7 -0
- package/components/datepicker/dist/buttonVersion.d.ts +2 -0
- package/components/datepicker/dist/index.js +1281 -207
- package/components/datepicker/dist/popoverVersion.d.ts +1 -1
- package/components/datepicker/dist/registered.js +1281 -207
- package/components/dropdown/README.md +1 -1
- package/components/dropdown/demo/api.min.js +81 -10
- package/components/dropdown/demo/index.min.js +81 -10
- package/components/dropdown/demo/readme.md +1 -1
- package/components/dropdown/dist/index.js +81 -10
- package/components/dropdown/dist/registered.js +81 -10
- package/components/form/README.md +1 -1
- package/components/form/demo/readme.md +1 -1
- package/components/input/README.md +1 -1
- package/components/input/demo/api.min.js +263 -13
- package/components/input/demo/index.min.js +263 -13
- package/components/input/demo/readme.md +1 -1
- package/components/input/dist/index.js +263 -13
- package/components/input/dist/registered.js +263 -13
- package/components/menu/README.md +1 -1
- package/components/menu/demo/api.min.js +77 -7
- package/components/menu/demo/index.min.js +77 -7
- package/components/menu/demo/readme.md +1 -1
- package/components/menu/dist/index.js +77 -7
- package/components/menu/dist/registered.js +77 -7
- package/components/radio/README.md +1 -1
- package/components/radio/demo/api.min.js +1 -1
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/readme.md +1 -1
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/README.md +1 -1
- package/components/select/demo/api.min.js +319 -38
- package/components/select/demo/index.min.js +319 -38
- package/components/select/demo/readme.md +1 -1
- package/components/select/dist/index.js +240 -29
- package/components/select/dist/registered.js +240 -29
- package/package.json +2 -2
|
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
107
107
|
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.
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.
|
|
110
|
+
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.1/auro-dropdown/+esm"></script>
|
|
111
111
|
```
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
113
|
|
|
@@ -63,7 +63,7 @@ const t$1=globalThis,e$3=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
|
|
|
63
63
|
|
|
64
64
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
65
65
|
|
|
66
|
-
let AuroLibraryRuntimeUtils$
|
|
66
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
67
67
|
|
|
68
68
|
/* eslint-disable jsdoc/require-param */
|
|
69
69
|
|
|
@@ -1876,11 +1876,11 @@ class AuroFloatingUI {
|
|
|
1876
1876
|
|
|
1877
1877
|
updateCurrentExpandedDropdown() {
|
|
1878
1878
|
// Close any other dropdown that is already open
|
|
1879
|
-
if (document.
|
|
1880
|
-
|
|
1879
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
1880
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
1881
1881
|
}
|
|
1882
1882
|
|
|
1883
|
-
document.
|
|
1883
|
+
document.expandedAuroFormkitDropdown = this;
|
|
1884
1884
|
}
|
|
1885
1885
|
|
|
1886
1886
|
showBib() {
|
|
@@ -2274,6 +2274,76 @@ var tokensCss$2 = i$3`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-def
|
|
|
2274
2274
|
|
|
2275
2275
|
var colorCss$3 = i$3`: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)}`;
|
|
2276
2276
|
|
|
2277
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2278
|
+
// See LICENSE in the project root for license information.
|
|
2279
|
+
|
|
2280
|
+
// ---------------------------------------------------------------------
|
|
2281
|
+
|
|
2282
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2283
|
+
|
|
2284
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2285
|
+
|
|
2286
|
+
/* eslint-disable jsdoc/require-param */
|
|
2287
|
+
|
|
2288
|
+
/**
|
|
2289
|
+
* This will register a new custom element with the browser.
|
|
2290
|
+
* @param {String} name - The name of the custom element.
|
|
2291
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
2292
|
+
* @returns {void}
|
|
2293
|
+
*/
|
|
2294
|
+
registerComponent(name, componentClass) {
|
|
2295
|
+
if (!customElements.get(name)) {
|
|
2296
|
+
customElements.define(name, class extends componentClass {});
|
|
2297
|
+
}
|
|
2298
|
+
}
|
|
2299
|
+
|
|
2300
|
+
/**
|
|
2301
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
2302
|
+
* @returns {void}
|
|
2303
|
+
*/
|
|
2304
|
+
closestElement(
|
|
2305
|
+
selector, // selector like in .closest()
|
|
2306
|
+
base = this, // extra functionality to skip a parent
|
|
2307
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2308
|
+
!el || el === document || el === window
|
|
2309
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
2310
|
+
: found
|
|
2311
|
+
? found // found a selector INside this element
|
|
2312
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2313
|
+
) {
|
|
2314
|
+
return __Closest(base);
|
|
2315
|
+
}
|
|
2316
|
+
/* eslint-enable jsdoc/require-param */
|
|
2317
|
+
|
|
2318
|
+
/**
|
|
2319
|
+
* 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.
|
|
2320
|
+
* @param {Object} elem - The element to check.
|
|
2321
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2322
|
+
* @returns {void}
|
|
2323
|
+
*/
|
|
2324
|
+
handleComponentTagRename(elem, tagName) {
|
|
2325
|
+
const tag = tagName.toLowerCase();
|
|
2326
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2327
|
+
|
|
2328
|
+
if (elemTag !== tag) {
|
|
2329
|
+
elem.setAttribute(tag, true);
|
|
2330
|
+
}
|
|
2331
|
+
}
|
|
2332
|
+
|
|
2333
|
+
/**
|
|
2334
|
+
* Validates if an element is a specific Auro component.
|
|
2335
|
+
* @param {Object} elem - The element to validate.
|
|
2336
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
2337
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2338
|
+
*/
|
|
2339
|
+
elementMatch(elem, tagName) {
|
|
2340
|
+
const tag = tagName.toLowerCase();
|
|
2341
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2342
|
+
|
|
2343
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
2344
|
+
}
|
|
2345
|
+
};
|
|
2346
|
+
|
|
2277
2347
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2278
2348
|
// See LICENSE in the project root for license information.
|
|
2279
2349
|
|
|
@@ -2570,7 +2640,7 @@ class AuroDropdownBib extends r {
|
|
|
2570
2640
|
*/
|
|
2571
2641
|
this._mobileBreakpointValue = undefined;
|
|
2572
2642
|
|
|
2573
|
-
AuroLibraryRuntimeUtils$
|
|
2643
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2574
2644
|
}
|
|
2575
2645
|
|
|
2576
2646
|
static get styles() {
|
|
@@ -2939,7 +3009,7 @@ class AuroDropdown extends r {
|
|
|
2939
3009
|
/**
|
|
2940
3010
|
* @private
|
|
2941
3011
|
*/
|
|
2942
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
3012
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
2943
3013
|
|
|
2944
3014
|
/**
|
|
2945
3015
|
* @private
|
|
@@ -2964,17 +3034,17 @@ class AuroDropdown extends r {
|
|
|
2964
3034
|
/**
|
|
2965
3035
|
* @private
|
|
2966
3036
|
*/
|
|
2967
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
3037
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion, AuroIcon);
|
|
2968
3038
|
|
|
2969
3039
|
/**
|
|
2970
3040
|
* @private
|
|
2971
3041
|
*/
|
|
2972
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
3042
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
2973
3043
|
|
|
2974
3044
|
/**
|
|
2975
3045
|
* @private
|
|
2976
3046
|
*/
|
|
2977
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
3047
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
|
|
2978
3048
|
}
|
|
2979
3049
|
|
|
2980
3050
|
/**
|
|
@@ -3177,7 +3247,7 @@ class AuroDropdown extends r {
|
|
|
3177
3247
|
*
|
|
3178
3248
|
*/
|
|
3179
3249
|
static register(name = "auro-dropdown") {
|
|
3180
|
-
AuroLibraryRuntimeUtils$
|
|
3250
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
3181
3251
|
}
|
|
3182
3252
|
|
|
3183
3253
|
connectedCallback() {
|
|
@@ -3200,6 +3270,7 @@ class AuroDropdown extends r {
|
|
|
3200
3270
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3201
3271
|
this.handleTriggerContentSlotChange();
|
|
3202
3272
|
}
|
|
3273
|
+
|
|
3203
3274
|
}
|
|
3204
3275
|
|
|
3205
3276
|
firstUpdated() {
|
|
@@ -38,7 +38,7 @@ const t$1=globalThis,e$3=t$1.ShadowRoot&&(void 0===t$1.ShadyCSS||t$1.ShadyCSS.na
|
|
|
38
38
|
|
|
39
39
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
40
40
|
|
|
41
|
-
let AuroLibraryRuntimeUtils$
|
|
41
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
42
42
|
|
|
43
43
|
/* eslint-disable jsdoc/require-param */
|
|
44
44
|
|
|
@@ -1851,11 +1851,11 @@ class AuroFloatingUI {
|
|
|
1851
1851
|
|
|
1852
1852
|
updateCurrentExpandedDropdown() {
|
|
1853
1853
|
// Close any other dropdown that is already open
|
|
1854
|
-
if (document.
|
|
1855
|
-
|
|
1854
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
1855
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
1856
1856
|
}
|
|
1857
1857
|
|
|
1858
|
-
document.
|
|
1858
|
+
document.expandedAuroFormkitDropdown = this;
|
|
1859
1859
|
}
|
|
1860
1860
|
|
|
1861
1861
|
showBib() {
|
|
@@ -2249,6 +2249,76 @@ var tokensCss$2 = i$3`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-def
|
|
|
2249
2249
|
|
|
2250
2250
|
var colorCss$3 = i$3`: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)}`;
|
|
2251
2251
|
|
|
2252
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2253
|
+
// See LICENSE in the project root for license information.
|
|
2254
|
+
|
|
2255
|
+
// ---------------------------------------------------------------------
|
|
2256
|
+
|
|
2257
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2258
|
+
|
|
2259
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2260
|
+
|
|
2261
|
+
/* eslint-disable jsdoc/require-param */
|
|
2262
|
+
|
|
2263
|
+
/**
|
|
2264
|
+
* This will register a new custom element with the browser.
|
|
2265
|
+
* @param {String} name - The name of the custom element.
|
|
2266
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
2267
|
+
* @returns {void}
|
|
2268
|
+
*/
|
|
2269
|
+
registerComponent(name, componentClass) {
|
|
2270
|
+
if (!customElements.get(name)) {
|
|
2271
|
+
customElements.define(name, class extends componentClass {});
|
|
2272
|
+
}
|
|
2273
|
+
}
|
|
2274
|
+
|
|
2275
|
+
/**
|
|
2276
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
2277
|
+
* @returns {void}
|
|
2278
|
+
*/
|
|
2279
|
+
closestElement(
|
|
2280
|
+
selector, // selector like in .closest()
|
|
2281
|
+
base = this, // extra functionality to skip a parent
|
|
2282
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2283
|
+
!el || el === document || el === window
|
|
2284
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
2285
|
+
: found
|
|
2286
|
+
? found // found a selector INside this element
|
|
2287
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2288
|
+
) {
|
|
2289
|
+
return __Closest(base);
|
|
2290
|
+
}
|
|
2291
|
+
/* eslint-enable jsdoc/require-param */
|
|
2292
|
+
|
|
2293
|
+
/**
|
|
2294
|
+
* 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.
|
|
2295
|
+
* @param {Object} elem - The element to check.
|
|
2296
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2297
|
+
* @returns {void}
|
|
2298
|
+
*/
|
|
2299
|
+
handleComponentTagRename(elem, tagName) {
|
|
2300
|
+
const tag = tagName.toLowerCase();
|
|
2301
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2302
|
+
|
|
2303
|
+
if (elemTag !== tag) {
|
|
2304
|
+
elem.setAttribute(tag, true);
|
|
2305
|
+
}
|
|
2306
|
+
}
|
|
2307
|
+
|
|
2308
|
+
/**
|
|
2309
|
+
* Validates if an element is a specific Auro component.
|
|
2310
|
+
* @param {Object} elem - The element to validate.
|
|
2311
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
2312
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2313
|
+
*/
|
|
2314
|
+
elementMatch(elem, tagName) {
|
|
2315
|
+
const tag = tagName.toLowerCase();
|
|
2316
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2317
|
+
|
|
2318
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
2319
|
+
}
|
|
2320
|
+
};
|
|
2321
|
+
|
|
2252
2322
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2253
2323
|
// See LICENSE in the project root for license information.
|
|
2254
2324
|
|
|
@@ -2545,7 +2615,7 @@ class AuroDropdownBib extends r {
|
|
|
2545
2615
|
*/
|
|
2546
2616
|
this._mobileBreakpointValue = undefined;
|
|
2547
2617
|
|
|
2548
|
-
AuroLibraryRuntimeUtils$
|
|
2618
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2549
2619
|
}
|
|
2550
2620
|
|
|
2551
2621
|
static get styles() {
|
|
@@ -2914,7 +2984,7 @@ class AuroDropdown extends r {
|
|
|
2914
2984
|
/**
|
|
2915
2985
|
* @private
|
|
2916
2986
|
*/
|
|
2917
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
2987
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
2918
2988
|
|
|
2919
2989
|
/**
|
|
2920
2990
|
* @private
|
|
@@ -2939,17 +3009,17 @@ class AuroDropdown extends r {
|
|
|
2939
3009
|
/**
|
|
2940
3010
|
* @private
|
|
2941
3011
|
*/
|
|
2942
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
3012
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion, AuroIcon);
|
|
2943
3013
|
|
|
2944
3014
|
/**
|
|
2945
3015
|
* @private
|
|
2946
3016
|
*/
|
|
2947
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
3017
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
2948
3018
|
|
|
2949
3019
|
/**
|
|
2950
3020
|
* @private
|
|
2951
3021
|
*/
|
|
2952
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
3022
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
|
|
2953
3023
|
}
|
|
2954
3024
|
|
|
2955
3025
|
/**
|
|
@@ -3152,7 +3222,7 @@ class AuroDropdown extends r {
|
|
|
3152
3222
|
*
|
|
3153
3223
|
*/
|
|
3154
3224
|
static register(name = "auro-dropdown") {
|
|
3155
|
-
AuroLibraryRuntimeUtils$
|
|
3225
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
3156
3226
|
}
|
|
3157
3227
|
|
|
3158
3228
|
connectedCallback() {
|
|
@@ -3175,6 +3245,7 @@ class AuroDropdown extends r {
|
|
|
3175
3245
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3176
3246
|
this.handleTriggerContentSlotChange();
|
|
3177
3247
|
}
|
|
3248
|
+
|
|
3178
3249
|
}
|
|
3179
3250
|
|
|
3180
3251
|
firstUpdated() {
|
|
@@ -107,7 +107,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
107
107
|
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.
|
|
108
108
|
|
|
109
109
|
```html
|
|
110
|
-
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.
|
|
110
|
+
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.1/auro-dropdown/+esm"></script>
|
|
111
111
|
```
|
|
112
112
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
113
113
|
|
|
@@ -10,7 +10,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
10
10
|
|
|
11
11
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12
12
|
|
|
13
|
-
let AuroLibraryRuntimeUtils$
|
|
13
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
14
14
|
|
|
15
15
|
/* eslint-disable jsdoc/require-param */
|
|
16
16
|
|
|
@@ -1823,11 +1823,11 @@ class AuroFloatingUI {
|
|
|
1823
1823
|
|
|
1824
1824
|
updateCurrentExpandedDropdown() {
|
|
1825
1825
|
// Close any other dropdown that is already open
|
|
1826
|
-
if (document.
|
|
1827
|
-
|
|
1826
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
1827
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
|
-
document.
|
|
1830
|
+
document.expandedAuroFormkitDropdown = this;
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
1833
|
showBib() {
|
|
@@ -2202,6 +2202,76 @@ var tokensCss$2 = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-def
|
|
|
2202
2202
|
|
|
2203
2203
|
var colorCss$3 = css`: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)}`;
|
|
2204
2204
|
|
|
2205
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2206
|
+
// See LICENSE in the project root for license information.
|
|
2207
|
+
|
|
2208
|
+
// ---------------------------------------------------------------------
|
|
2209
|
+
|
|
2210
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2211
|
+
|
|
2212
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2213
|
+
|
|
2214
|
+
/* eslint-disable jsdoc/require-param */
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* This will register a new custom element with the browser.
|
|
2218
|
+
* @param {String} name - The name of the custom element.
|
|
2219
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
2220
|
+
* @returns {void}
|
|
2221
|
+
*/
|
|
2222
|
+
registerComponent(name, componentClass) {
|
|
2223
|
+
if (!customElements.get(name)) {
|
|
2224
|
+
customElements.define(name, class extends componentClass {});
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
2230
|
+
* @returns {void}
|
|
2231
|
+
*/
|
|
2232
|
+
closestElement(
|
|
2233
|
+
selector, // selector like in .closest()
|
|
2234
|
+
base = this, // extra functionality to skip a parent
|
|
2235
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2236
|
+
!el || el === document || el === window
|
|
2237
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
2238
|
+
: found
|
|
2239
|
+
? found // found a selector INside this element
|
|
2240
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2241
|
+
) {
|
|
2242
|
+
return __Closest(base);
|
|
2243
|
+
}
|
|
2244
|
+
/* eslint-enable jsdoc/require-param */
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* 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.
|
|
2248
|
+
* @param {Object} elem - The element to check.
|
|
2249
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2250
|
+
* @returns {void}
|
|
2251
|
+
*/
|
|
2252
|
+
handleComponentTagRename(elem, tagName) {
|
|
2253
|
+
const tag = tagName.toLowerCase();
|
|
2254
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2255
|
+
|
|
2256
|
+
if (elemTag !== tag) {
|
|
2257
|
+
elem.setAttribute(tag, true);
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
/**
|
|
2262
|
+
* Validates if an element is a specific Auro component.
|
|
2263
|
+
* @param {Object} elem - The element to validate.
|
|
2264
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
2265
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2266
|
+
*/
|
|
2267
|
+
elementMatch(elem, tagName) {
|
|
2268
|
+
const tag = tagName.toLowerCase();
|
|
2269
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2270
|
+
|
|
2271
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2205
2275
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2206
2276
|
// See LICENSE in the project root for license information.
|
|
2207
2277
|
|
|
@@ -2498,7 +2568,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
2498
2568
|
*/
|
|
2499
2569
|
this._mobileBreakpointValue = undefined;
|
|
2500
2570
|
|
|
2501
|
-
AuroLibraryRuntimeUtils$
|
|
2571
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2502
2572
|
}
|
|
2503
2573
|
|
|
2504
2574
|
static get styles() {
|
|
@@ -2867,7 +2937,7 @@ class AuroDropdown extends LitElement {
|
|
|
2867
2937
|
/**
|
|
2868
2938
|
* @private
|
|
2869
2939
|
*/
|
|
2870
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
2940
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
2871
2941
|
|
|
2872
2942
|
/**
|
|
2873
2943
|
* @private
|
|
@@ -2892,17 +2962,17 @@ class AuroDropdown extends LitElement {
|
|
|
2892
2962
|
/**
|
|
2893
2963
|
* @private
|
|
2894
2964
|
*/
|
|
2895
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
2965
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion, AuroIcon);
|
|
2896
2966
|
|
|
2897
2967
|
/**
|
|
2898
2968
|
* @private
|
|
2899
2969
|
*/
|
|
2900
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
2970
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
2901
2971
|
|
|
2902
2972
|
/**
|
|
2903
2973
|
* @private
|
|
2904
2974
|
*/
|
|
2905
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
2975
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
|
|
2906
2976
|
}
|
|
2907
2977
|
|
|
2908
2978
|
/**
|
|
@@ -3105,7 +3175,7 @@ class AuroDropdown extends LitElement {
|
|
|
3105
3175
|
*
|
|
3106
3176
|
*/
|
|
3107
3177
|
static register(name = "auro-dropdown") {
|
|
3108
|
-
AuroLibraryRuntimeUtils$
|
|
3178
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
3109
3179
|
}
|
|
3110
3180
|
|
|
3111
3181
|
connectedCallback() {
|
|
@@ -3128,6 +3198,7 @@ class AuroDropdown extends LitElement {
|
|
|
3128
3198
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3129
3199
|
this.handleTriggerContentSlotChange();
|
|
3130
3200
|
}
|
|
3201
|
+
|
|
3131
3202
|
}
|
|
3132
3203
|
|
|
3133
3204
|
firstUpdated() {
|
|
@@ -10,7 +10,7 @@ import { ifDefined } from 'lit/directives/if-defined.js';
|
|
|
10
10
|
|
|
11
11
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
12
12
|
|
|
13
|
-
let AuroLibraryRuntimeUtils$
|
|
13
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
14
14
|
|
|
15
15
|
/* eslint-disable jsdoc/require-param */
|
|
16
16
|
|
|
@@ -1823,11 +1823,11 @@ class AuroFloatingUI {
|
|
|
1823
1823
|
|
|
1824
1824
|
updateCurrentExpandedDropdown() {
|
|
1825
1825
|
// Close any other dropdown that is already open
|
|
1826
|
-
if (document.
|
|
1827
|
-
|
|
1826
|
+
if (document.expandedAuroFormkitDropdown) {
|
|
1827
|
+
document.expandedAuroFormkitDropdown.hide;
|
|
1828
1828
|
}
|
|
1829
1829
|
|
|
1830
|
-
document.
|
|
1830
|
+
document.expandedAuroFormkitDropdown = this;
|
|
1831
1831
|
}
|
|
1832
1832
|
|
|
1833
1833
|
showBib() {
|
|
@@ -2202,6 +2202,76 @@ var tokensCss$2 = css`:host{--ds-auro-icon-color:var(--ds-color-icon-primary-def
|
|
|
2202
2202
|
|
|
2203
2203
|
var colorCss$3 = css`: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)}`;
|
|
2204
2204
|
|
|
2205
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2206
|
+
// See LICENSE in the project root for license information.
|
|
2207
|
+
|
|
2208
|
+
// ---------------------------------------------------------------------
|
|
2209
|
+
|
|
2210
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2211
|
+
|
|
2212
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2213
|
+
|
|
2214
|
+
/* eslint-disable jsdoc/require-param */
|
|
2215
|
+
|
|
2216
|
+
/**
|
|
2217
|
+
* This will register a new custom element with the browser.
|
|
2218
|
+
* @param {String} name - The name of the custom element.
|
|
2219
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
2220
|
+
* @returns {void}
|
|
2221
|
+
*/
|
|
2222
|
+
registerComponent(name, componentClass) {
|
|
2223
|
+
if (!customElements.get(name)) {
|
|
2224
|
+
customElements.define(name, class extends componentClass {});
|
|
2225
|
+
}
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
/**
|
|
2229
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
2230
|
+
* @returns {void}
|
|
2231
|
+
*/
|
|
2232
|
+
closestElement(
|
|
2233
|
+
selector, // selector like in .closest()
|
|
2234
|
+
base = this, // extra functionality to skip a parent
|
|
2235
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2236
|
+
!el || el === document || el === window
|
|
2237
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
2238
|
+
: found
|
|
2239
|
+
? found // found a selector INside this element
|
|
2240
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2241
|
+
) {
|
|
2242
|
+
return __Closest(base);
|
|
2243
|
+
}
|
|
2244
|
+
/* eslint-enable jsdoc/require-param */
|
|
2245
|
+
|
|
2246
|
+
/**
|
|
2247
|
+
* 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.
|
|
2248
|
+
* @param {Object} elem - The element to check.
|
|
2249
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2250
|
+
* @returns {void}
|
|
2251
|
+
*/
|
|
2252
|
+
handleComponentTagRename(elem, tagName) {
|
|
2253
|
+
const tag = tagName.toLowerCase();
|
|
2254
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2255
|
+
|
|
2256
|
+
if (elemTag !== tag) {
|
|
2257
|
+
elem.setAttribute(tag, true);
|
|
2258
|
+
}
|
|
2259
|
+
}
|
|
2260
|
+
|
|
2261
|
+
/**
|
|
2262
|
+
* Validates if an element is a specific Auro component.
|
|
2263
|
+
* @param {Object} elem - The element to validate.
|
|
2264
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
2265
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2266
|
+
*/
|
|
2267
|
+
elementMatch(elem, tagName) {
|
|
2268
|
+
const tag = tagName.toLowerCase();
|
|
2269
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2270
|
+
|
|
2271
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
2272
|
+
}
|
|
2273
|
+
};
|
|
2274
|
+
|
|
2205
2275
|
// Copyright (c) 2020 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2206
2276
|
// See LICENSE in the project root for license information.
|
|
2207
2277
|
|
|
@@ -2498,7 +2568,7 @@ class AuroDropdownBib extends LitElement {
|
|
|
2498
2568
|
*/
|
|
2499
2569
|
this._mobileBreakpointValue = undefined;
|
|
2500
2570
|
|
|
2501
|
-
AuroLibraryRuntimeUtils$
|
|
2571
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2502
2572
|
}
|
|
2503
2573
|
|
|
2504
2574
|
static get styles() {
|
|
@@ -2867,7 +2937,7 @@ class AuroDropdown extends LitElement {
|
|
|
2867
2937
|
/**
|
|
2868
2938
|
* @private
|
|
2869
2939
|
*/
|
|
2870
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
2940
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
2871
2941
|
|
|
2872
2942
|
/**
|
|
2873
2943
|
* @private
|
|
@@ -2892,17 +2962,17 @@ class AuroDropdown extends LitElement {
|
|
|
2892
2962
|
/**
|
|
2893
2963
|
* @private
|
|
2894
2964
|
*/
|
|
2895
|
-
this.iconTag = versioning.generateTag('auro-icon', iconVersion, AuroIcon);
|
|
2965
|
+
this.iconTag = versioning.generateTag('auro-formkit-dropdown-icon', iconVersion, AuroIcon);
|
|
2896
2966
|
|
|
2897
2967
|
/**
|
|
2898
2968
|
* @private
|
|
2899
2969
|
*/
|
|
2900
|
-
this.dropdownBibTag = versioning.generateTag('auro-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
2970
|
+
this.dropdownBibTag = versioning.generateTag('auro-formkit-dropdown-dropdownbib', dropdownVersion, AuroDropdownBib);
|
|
2901
2971
|
|
|
2902
2972
|
/**
|
|
2903
2973
|
* @private
|
|
2904
2974
|
*/
|
|
2905
|
-
this.helpTextTag = versioning.generateTag('auro-helptext', helpTextVersion, AuroHelpText);
|
|
2975
|
+
this.helpTextTag = versioning.generateTag('auro-formkit-dropdown-helptext', helpTextVersion, AuroHelpText);
|
|
2906
2976
|
}
|
|
2907
2977
|
|
|
2908
2978
|
/**
|
|
@@ -3105,7 +3175,7 @@ class AuroDropdown extends LitElement {
|
|
|
3105
3175
|
*
|
|
3106
3176
|
*/
|
|
3107
3177
|
static register(name = "auro-dropdown") {
|
|
3108
|
-
AuroLibraryRuntimeUtils$
|
|
3178
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
3109
3179
|
}
|
|
3110
3180
|
|
|
3111
3181
|
connectedCallback() {
|
|
@@ -3128,6 +3198,7 @@ class AuroDropdown extends LitElement {
|
|
|
3128
3198
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
3129
3199
|
this.handleTriggerContentSlotChange();
|
|
3130
3200
|
}
|
|
3201
|
+
|
|
3131
3202
|
}
|
|
3132
3203
|
|
|
3133
3204
|
firstUpdated() {
|
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
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.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.
|
|
112
|
+
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.1/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|
|
@@ -109,7 +109,7 @@ The use of any Auro custom element has a dependency on the [Auro Design Tokens](
|
|
|
109
109
|
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.
|
|
110
110
|
|
|
111
111
|
```html
|
|
112
|
-
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.0.
|
|
112
|
+
<script type="module "src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit@2.1.0-beta.1/auro-form/+esm"></script>
|
|
113
113
|
```
|
|
114
114
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
115
115
|
|