@aurodesignsystem-dev/auro-formkit 0.0.0-pr1430.0 → 0.0.0-pr1430.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/checkbox/demo/api.min.js +3 -3
- package/components/checkbox/demo/index.min.js +3 -3
- package/components/checkbox/dist/index.js +3 -3
- package/components/checkbox/dist/registered.js +3 -3
- package/components/combobox/demo/api.html +1 -0
- package/components/combobox/demo/api.js +3 -1
- package/components/combobox/demo/api.md +75 -0
- package/components/combobox/demo/api.min.js +44 -96
- package/components/combobox/demo/index.min.js +31 -95
- package/components/combobox/dist/comboboxKeyboardStrategy.d.ts +1 -1
- package/components/combobox/dist/index.js +21 -95
- package/components/combobox/dist/registered.js +21 -95
- package/components/counter/demo/api.html +3 -0
- package/components/counter/demo/api.js +4 -0
- package/components/counter/demo/api.md +130 -0
- package/components/counter/demo/api.min.js +63 -104
- package/components/counter/demo/index.min.js +43 -104
- package/components/counter/dist/counterGroupKeyboardStrategy.d.ts +3 -0
- package/components/counter/dist/index.js +43 -104
- package/components/counter/dist/registered.js +43 -104
- package/components/datepicker/demo/api.html +1 -0
- package/components/datepicker/demo/api.js +2 -0
- package/components/datepicker/demo/api.md +57 -0
- package/components/datepicker/demo/api.min.js +106 -95
- package/components/datepicker/demo/index.min.js +94 -95
- package/components/datepicker/dist/datepickerKeyboardStrategy.d.ts +3 -1
- package/components/datepicker/dist/index.js +94 -95
- package/components/datepicker/dist/registered.js +94 -95
- package/components/dropdown/demo/api.html +1 -0
- package/components/dropdown/demo/api.js +2 -0
- package/components/dropdown/demo/api.md +95 -0
- package/components/dropdown/demo/api.min.js +25 -88
- package/components/dropdown/demo/index.min.js +5 -88
- package/components/dropdown/dist/index.js +5 -88
- package/components/dropdown/dist/registered.js +5 -88
- package/components/form/demo/api.min.js +230 -435
- package/components/form/demo/index.min.js +230 -435
- package/components/input/demo/api.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/api.md +1 -0
- package/components/menu/demo/api.min.js +10 -0
- package/components/menu/demo/index.min.js +10 -0
- package/components/menu/dist/auro-menuoption.d.ts +9 -0
- package/components/menu/dist/index.js +10 -0
- package/components/menu/dist/registered.js +10 -0
- package/components/radio/demo/api.min.js +2 -2
- package/components/radio/demo/index.min.js +2 -2
- package/components/radio/dist/index.js +2 -2
- package/components/radio/dist/registered.js +2 -2
- package/components/select/demo/api.html +1 -0
- package/components/select/demo/api.js +2 -0
- package/components/select/demo/api.md +76 -0
- package/components/select/demo/api.min.js +45 -101
- package/components/select/demo/index.min.js +32 -101
- package/components/select/dist/index.js +18 -97
- package/components/select/dist/registered.js +18 -97
- package/custom-elements.json +48 -3
- package/package.json +4 -3
|
@@ -1314,6 +1314,101 @@ export function inDialogExample() {
|
|
|
1314
1314
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1315
1315
|
</auro-accordion>
|
|
1316
1316
|
|
|
1317
|
+
### Dropdown in Drawer
|
|
1318
|
+
|
|
1319
|
+
The element used within an `auro-drawer`.
|
|
1320
|
+
|
|
1321
|
+
<div class="exampleWrapper">
|
|
1322
|
+
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/in-drawer.html) -->
|
|
1323
|
+
<!-- The below content is automatically added from ./../apiExamples/in-drawer.html -->
|
|
1324
|
+
<div>
|
|
1325
|
+
<auro-button id="dropdown-drawer-opener">Dropdown in Drawer</auro-button>
|
|
1326
|
+
<auro-drawer id="dropdown-drawer">
|
|
1327
|
+
<span slot="header">Dropdown in Drawer</span>
|
|
1328
|
+
<div slot="content">
|
|
1329
|
+
<auro-dropdown id="in-drawer-dropdown" layout="classic" shape="classic" size="lg">
|
|
1330
|
+
<div style="padding: var(--ds-size-150);">
|
|
1331
|
+
Lorem ipsum dolor
|
|
1332
|
+
<br />
|
|
1333
|
+
<auro-button id="in-drawer-dismiss-btn">
|
|
1334
|
+
Dismiss Dropdown
|
|
1335
|
+
</auro-button>
|
|
1336
|
+
</div>
|
|
1337
|
+
<span slot="helpText">
|
|
1338
|
+
Help text
|
|
1339
|
+
</span>
|
|
1340
|
+
<span slot="label">
|
|
1341
|
+
Element label (default text will be read by screen reader)
|
|
1342
|
+
</span>
|
|
1343
|
+
<div slot="trigger">
|
|
1344
|
+
Dropdown Trigger in Drawer
|
|
1345
|
+
</div>
|
|
1346
|
+
</auro-dropdown>
|
|
1347
|
+
</div>
|
|
1348
|
+
</auro-drawer>
|
|
1349
|
+
</div>
|
|
1350
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1351
|
+
</div>
|
|
1352
|
+
<auro-accordion alignRight>
|
|
1353
|
+
<span slot="trigger">See code</span>
|
|
1354
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.html) -->
|
|
1355
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.html -->
|
|
1356
|
+
|
|
1357
|
+
```html
|
|
1358
|
+
<div>
|
|
1359
|
+
<auro-button id="dropdown-drawer-opener">Dropdown in Drawer</auro-button>
|
|
1360
|
+
<auro-drawer id="dropdown-drawer">
|
|
1361
|
+
<span slot="header">Dropdown in Drawer</span>
|
|
1362
|
+
<div slot="content">
|
|
1363
|
+
<auro-dropdown id="in-drawer-dropdown" layout="classic" shape="classic" size="lg">
|
|
1364
|
+
<div style="padding: var(--ds-size-150);">
|
|
1365
|
+
Lorem ipsum dolor
|
|
1366
|
+
<br />
|
|
1367
|
+
<auro-button id="in-drawer-dismiss-btn">
|
|
1368
|
+
Dismiss Dropdown
|
|
1369
|
+
</auro-button>
|
|
1370
|
+
</div>
|
|
1371
|
+
<span slot="helpText">
|
|
1372
|
+
Help text
|
|
1373
|
+
</span>
|
|
1374
|
+
<span slot="label">
|
|
1375
|
+
Element label (default text will be read by screen reader)
|
|
1376
|
+
</span>
|
|
1377
|
+
<div slot="trigger">
|
|
1378
|
+
Dropdown Trigger in Drawer
|
|
1379
|
+
</div>
|
|
1380
|
+
</auro-dropdown>
|
|
1381
|
+
</div>
|
|
1382
|
+
</auro-drawer>
|
|
1383
|
+
</div>
|
|
1384
|
+
```
|
|
1385
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1386
|
+
<!-- AURO-GENERATED-CONTENT:START (CODE:src=./../apiExamples/in-drawer.js) -->
|
|
1387
|
+
<!-- The below code snippet is automatically added from ./../apiExamples/in-drawer.js -->
|
|
1388
|
+
|
|
1389
|
+
```js
|
|
1390
|
+
export function inDrawerExample() {
|
|
1391
|
+
const openBtn = document.querySelector("#dropdown-drawer-opener");
|
|
1392
|
+
const closeBtn = document.querySelector("#in-drawer-dismiss-btn");
|
|
1393
|
+
const dropdown = document.querySelector("#in-drawer-dropdown");
|
|
1394
|
+
|
|
1395
|
+
openBtn?.addEventListener("click", () => {
|
|
1396
|
+
const drawer = document.querySelector("#dropdown-drawer");
|
|
1397
|
+
if (drawer.hasAttribute('open')) {
|
|
1398
|
+
drawer.removeAttribute('open');
|
|
1399
|
+
} else {
|
|
1400
|
+
drawer.setAttribute('open', true);
|
|
1401
|
+
}
|
|
1402
|
+
});
|
|
1403
|
+
|
|
1404
|
+
closeBtn?.addEventListener("click", () => {
|
|
1405
|
+
dropdown?.hide();
|
|
1406
|
+
});
|
|
1407
|
+
};
|
|
1408
|
+
```
|
|
1409
|
+
<!-- AURO-GENERATED-CONTENT:END -->
|
|
1410
|
+
</auro-accordion>
|
|
1411
|
+
|
|
1317
1412
|
## Restyle Component with CSS Variables
|
|
1318
1413
|
|
|
1319
1414
|
The component may be restyled by changing the values of the following token(s).
|
|
@@ -85,6 +85,25 @@ function inDialogExample() {
|
|
|
85
85
|
});
|
|
86
86
|
}
|
|
87
87
|
|
|
88
|
+
function inDrawerExample() {
|
|
89
|
+
const openBtn = document.querySelector("#dropdown-drawer-opener");
|
|
90
|
+
const closeBtn = document.querySelector("#in-drawer-dismiss-btn");
|
|
91
|
+
const dropdown = document.querySelector("#in-drawer-dropdown");
|
|
92
|
+
|
|
93
|
+
openBtn?.addEventListener("click", () => {
|
|
94
|
+
const drawer = document.querySelector("#dropdown-drawer");
|
|
95
|
+
if (drawer.hasAttribute('open')) {
|
|
96
|
+
drawer.removeAttribute('open');
|
|
97
|
+
} else {
|
|
98
|
+
drawer.setAttribute('open', true);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
closeBtn?.addEventListener("click", () => {
|
|
103
|
+
dropdown?.hide();
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
|
|
88
107
|
/**
|
|
89
108
|
* @license
|
|
90
109
|
* Copyright 2017 Google LLC
|
|
@@ -137,7 +156,7 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$5=t=>(...e)=>({_$litDirective$:t,values:e});le
|
|
|
137
156
|
|
|
138
157
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
139
158
|
|
|
140
|
-
let AuroLibraryRuntimeUtils$
|
|
159
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
141
160
|
|
|
142
161
|
/* eslint-disable jsdoc/require-param */
|
|
143
162
|
|
|
@@ -3203,89 +3222,6 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
|
|
|
3203
3222
|
|
|
3204
3223
|
var iconVersion = '9.1.2';
|
|
3205
3224
|
|
|
3206
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3207
|
-
// See LICENSE in the project root for license information.
|
|
3208
|
-
|
|
3209
|
-
// ---------------------------------------------------------------------
|
|
3210
|
-
|
|
3211
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
3212
|
-
|
|
3213
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
3214
|
-
|
|
3215
|
-
/* eslint-disable jsdoc/require-param */
|
|
3216
|
-
|
|
3217
|
-
/**
|
|
3218
|
-
* This will register a new custom element with the browser.
|
|
3219
|
-
* @param {String} name - The name of the custom element.
|
|
3220
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
3221
|
-
* @returns {void}
|
|
3222
|
-
*/
|
|
3223
|
-
registerComponent(name, componentClass) {
|
|
3224
|
-
if (!customElements.get(name)) {
|
|
3225
|
-
customElements.define(name, class extends componentClass {});
|
|
3226
|
-
}
|
|
3227
|
-
}
|
|
3228
|
-
|
|
3229
|
-
/**
|
|
3230
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
3231
|
-
* @returns {void}
|
|
3232
|
-
*/
|
|
3233
|
-
closestElement(
|
|
3234
|
-
selector, // selector like in .closest()
|
|
3235
|
-
base = this, // extra functionality to skip a parent
|
|
3236
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
3237
|
-
!el || el === document || el === window
|
|
3238
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
3239
|
-
: found
|
|
3240
|
-
? found // found a selector INside this element
|
|
3241
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
3242
|
-
) {
|
|
3243
|
-
return __Closest(base);
|
|
3244
|
-
}
|
|
3245
|
-
/* eslint-enable jsdoc/require-param */
|
|
3246
|
-
|
|
3247
|
-
/**
|
|
3248
|
-
* 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.
|
|
3249
|
-
* @param {Object} elem - The element to check.
|
|
3250
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
3251
|
-
* @returns {void}
|
|
3252
|
-
*/
|
|
3253
|
-
handleComponentTagRename(elem, tagName) {
|
|
3254
|
-
const tag = tagName.toLowerCase();
|
|
3255
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
3256
|
-
|
|
3257
|
-
if (elemTag !== tag) {
|
|
3258
|
-
elem.setAttribute(tag, true);
|
|
3259
|
-
}
|
|
3260
|
-
}
|
|
3261
|
-
|
|
3262
|
-
/**
|
|
3263
|
-
* Validates if an element is a specific Auro component.
|
|
3264
|
-
* @param {Object} elem - The element to validate.
|
|
3265
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
3266
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
3267
|
-
*/
|
|
3268
|
-
elementMatch(elem, tagName) {
|
|
3269
|
-
const tag = tagName.toLowerCase();
|
|
3270
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
3271
|
-
|
|
3272
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
3273
|
-
}
|
|
3274
|
-
|
|
3275
|
-
/**
|
|
3276
|
-
* Gets the text content of a named slot.
|
|
3277
|
-
* @returns {String}
|
|
3278
|
-
* @private
|
|
3279
|
-
*/
|
|
3280
|
-
getSlotText(elem, name) {
|
|
3281
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
3282
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
3283
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
3284
|
-
|
|
3285
|
-
return text || null;
|
|
3286
|
-
}
|
|
3287
|
-
};
|
|
3288
|
-
|
|
3289
3225
|
/**
|
|
3290
3226
|
* @license
|
|
3291
3227
|
* Copyright 2017 Google LLC
|
|
@@ -3974,7 +3910,7 @@ class AuroHelpText extends i {
|
|
|
3974
3910
|
}
|
|
3975
3911
|
}
|
|
3976
3912
|
|
|
3977
|
-
var formkitVersion = '
|
|
3913
|
+
var formkitVersion = '202604091756';
|
|
3978
3914
|
|
|
3979
3915
|
class AuroElement extends i {
|
|
3980
3916
|
static get properties() {
|
|
@@ -4080,7 +4016,7 @@ class AuroElement extends i {
|
|
|
4080
4016
|
}
|
|
4081
4017
|
}
|
|
4082
4018
|
|
|
4083
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
4019
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
4084
4020
|
// See LICENSE in the project root for license information.
|
|
4085
4021
|
|
|
4086
4022
|
|
|
@@ -4185,7 +4121,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4185
4121
|
/**
|
|
4186
4122
|
* @private
|
|
4187
4123
|
*/
|
|
4188
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4124
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4189
4125
|
|
|
4190
4126
|
/**
|
|
4191
4127
|
* @private
|
|
@@ -4603,7 +4539,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4603
4539
|
*
|
|
4604
4540
|
*/
|
|
4605
4541
|
static register(name = "auro-dropdown") {
|
|
4606
|
-
AuroLibraryRuntimeUtils$
|
|
4542
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
4607
4543
|
}
|
|
4608
4544
|
|
|
4609
4545
|
/**
|
|
@@ -5125,6 +5061,7 @@ function initExamples() {
|
|
|
5125
5061
|
hideExample();
|
|
5126
5062
|
showExample();
|
|
5127
5063
|
inDialogExample();
|
|
5064
|
+
inDrawerExample();
|
|
5128
5065
|
}
|
|
5129
5066
|
|
|
5130
5067
|
export { initExamples };
|
|
@@ -77,7 +77,7 @@ const t$1={ATTRIBUTE:1,CHILD:2},e$5=t=>(...e)=>({_$litDirective$:t,values:e});le
|
|
|
77
77
|
|
|
78
78
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
79
79
|
|
|
80
|
-
let AuroLibraryRuntimeUtils$
|
|
80
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
81
81
|
|
|
82
82
|
/* eslint-disable jsdoc/require-param */
|
|
83
83
|
|
|
@@ -3143,89 +3143,6 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
|
|
|
3143
3143
|
|
|
3144
3144
|
var iconVersion = '9.1.2';
|
|
3145
3145
|
|
|
3146
|
-
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
3147
|
-
// See LICENSE in the project root for license information.
|
|
3148
|
-
|
|
3149
|
-
// ---------------------------------------------------------------------
|
|
3150
|
-
|
|
3151
|
-
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
3152
|
-
|
|
3153
|
-
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
3154
|
-
|
|
3155
|
-
/* eslint-disable jsdoc/require-param */
|
|
3156
|
-
|
|
3157
|
-
/**
|
|
3158
|
-
* This will register a new custom element with the browser.
|
|
3159
|
-
* @param {String} name - The name of the custom element.
|
|
3160
|
-
* @param {Object} componentClass - The class to register as a custom element.
|
|
3161
|
-
* @returns {void}
|
|
3162
|
-
*/
|
|
3163
|
-
registerComponent(name, componentClass) {
|
|
3164
|
-
if (!customElements.get(name)) {
|
|
3165
|
-
customElements.define(name, class extends componentClass {});
|
|
3166
|
-
}
|
|
3167
|
-
}
|
|
3168
|
-
|
|
3169
|
-
/**
|
|
3170
|
-
* Finds and returns the closest HTML Element based on a selector.
|
|
3171
|
-
* @returns {void}
|
|
3172
|
-
*/
|
|
3173
|
-
closestElement(
|
|
3174
|
-
selector, // selector like in .closest()
|
|
3175
|
-
base = this, // extra functionality to skip a parent
|
|
3176
|
-
__Closest = (el, found = el && el.closest(selector)) =>
|
|
3177
|
-
!el || el === document || el === window
|
|
3178
|
-
? null // standard .closest() returns null for non-found selectors also
|
|
3179
|
-
: found
|
|
3180
|
-
? found // found a selector INside this element
|
|
3181
|
-
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
3182
|
-
) {
|
|
3183
|
-
return __Closest(base);
|
|
3184
|
-
}
|
|
3185
|
-
/* eslint-enable jsdoc/require-param */
|
|
3186
|
-
|
|
3187
|
-
/**
|
|
3188
|
-
* 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.
|
|
3189
|
-
* @param {Object} elem - The element to check.
|
|
3190
|
-
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
3191
|
-
* @returns {void}
|
|
3192
|
-
*/
|
|
3193
|
-
handleComponentTagRename(elem, tagName) {
|
|
3194
|
-
const tag = tagName.toLowerCase();
|
|
3195
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
3196
|
-
|
|
3197
|
-
if (elemTag !== tag) {
|
|
3198
|
-
elem.setAttribute(tag, true);
|
|
3199
|
-
}
|
|
3200
|
-
}
|
|
3201
|
-
|
|
3202
|
-
/**
|
|
3203
|
-
* Validates if an element is a specific Auro component.
|
|
3204
|
-
* @param {Object} elem - The element to validate.
|
|
3205
|
-
* @param {String} tagName - The name of the Auro component to check against.
|
|
3206
|
-
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
3207
|
-
*/
|
|
3208
|
-
elementMatch(elem, tagName) {
|
|
3209
|
-
const tag = tagName.toLowerCase();
|
|
3210
|
-
const elemTag = elem.tagName.toLowerCase();
|
|
3211
|
-
|
|
3212
|
-
return elemTag === tag || elem.hasAttribute(tag);
|
|
3213
|
-
}
|
|
3214
|
-
|
|
3215
|
-
/**
|
|
3216
|
-
* Gets the text content of a named slot.
|
|
3217
|
-
* @returns {String}
|
|
3218
|
-
* @private
|
|
3219
|
-
*/
|
|
3220
|
-
getSlotText(elem, name) {
|
|
3221
|
-
const slot = elem.shadowRoot?.querySelector(`slot[name="${name}"]`);
|
|
3222
|
-
const nodes = slot?.assignedNodes({ flatten: true }) || [];
|
|
3223
|
-
const text = nodes.map(n => n.textContent?.trim()).join(' ').trim();
|
|
3224
|
-
|
|
3225
|
-
return text || null;
|
|
3226
|
-
}
|
|
3227
|
-
};
|
|
3228
|
-
|
|
3229
3146
|
/**
|
|
3230
3147
|
* @license
|
|
3231
3148
|
* Copyright 2017 Google LLC
|
|
@@ -3914,7 +3831,7 @@ class AuroHelpText extends i {
|
|
|
3914
3831
|
}
|
|
3915
3832
|
}
|
|
3916
3833
|
|
|
3917
|
-
var formkitVersion = '
|
|
3834
|
+
var formkitVersion = '202604091756';
|
|
3918
3835
|
|
|
3919
3836
|
class AuroElement extends i {
|
|
3920
3837
|
static get properties() {
|
|
@@ -4020,7 +3937,7 @@ class AuroElement extends i {
|
|
|
4020
3937
|
}
|
|
4021
3938
|
}
|
|
4022
3939
|
|
|
4023
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
3940
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
4024
3941
|
// See LICENSE in the project root for license information.
|
|
4025
3942
|
|
|
4026
3943
|
|
|
@@ -4125,7 +4042,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4125
4042
|
/**
|
|
4126
4043
|
* @private
|
|
4127
4044
|
*/
|
|
4128
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
4045
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4129
4046
|
|
|
4130
4047
|
/**
|
|
4131
4048
|
* @private
|
|
@@ -4543,7 +4460,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4543
4460
|
*
|
|
4544
4461
|
*/
|
|
4545
4462
|
static register(name = "auro-dropdown") {
|
|
4546
|
-
AuroLibraryRuntimeUtils$
|
|
4463
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
4547
4464
|
}
|
|
4548
4465
|
|
|
4549
4466
|
/**
|
|
@@ -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$
|
|
16
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
17
17
|
|
|
18
18
|
/* eslint-disable jsdoc/require-param */
|
|
19
19
|
|
|
@@ -3054,89 +3054,6 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
|
|
|
3054
3054
|
|
|
3055
3055
|
var iconVersion = '9.1.2';
|
|
3056
3056
|
|
|
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
3057
|
/**
|
|
3141
3058
|
* Computes display state once per keydown event.
|
|
3142
3059
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -3819,7 +3736,7 @@ class AuroHelpText extends LitElement {
|
|
|
3819
3736
|
}
|
|
3820
3737
|
}
|
|
3821
3738
|
|
|
3822
|
-
var formkitVersion = '
|
|
3739
|
+
var formkitVersion = '202604091756';
|
|
3823
3740
|
|
|
3824
3741
|
class AuroElement extends LitElement {
|
|
3825
3742
|
static get properties() {
|
|
@@ -3925,7 +3842,7 @@ class AuroElement extends LitElement {
|
|
|
3925
3842
|
}
|
|
3926
3843
|
}
|
|
3927
3844
|
|
|
3928
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
3845
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
3929
3846
|
// See LICENSE in the project root for license information.
|
|
3930
3847
|
|
|
3931
3848
|
|
|
@@ -4030,7 +3947,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4030
3947
|
/**
|
|
4031
3948
|
* @private
|
|
4032
3949
|
*/
|
|
4033
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
3950
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4034
3951
|
|
|
4035
3952
|
/**
|
|
4036
3953
|
* @private
|
|
@@ -4448,7 +4365,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4448
4365
|
*
|
|
4449
4366
|
*/
|
|
4450
4367
|
static register(name = "auro-dropdown") {
|
|
4451
|
-
AuroLibraryRuntimeUtils$
|
|
4368
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
4452
4369
|
}
|
|
4453
4370
|
|
|
4454
4371
|
/**
|
|
@@ -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$
|
|
16
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
17
17
|
|
|
18
18
|
/* eslint-disable jsdoc/require-param */
|
|
19
19
|
|
|
@@ -3054,89 +3054,6 @@ class p{registerComponent(t,a){customElements.get(t)||customElements.define(t,cl
|
|
|
3054
3054
|
|
|
3055
3055
|
var iconVersion = '9.1.2';
|
|
3056
3056
|
|
|
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
3057
|
/**
|
|
3141
3058
|
* Computes display state once per keydown event.
|
|
3142
3059
|
* Centralizes null-safety checks and makes the shared/modal/popover branching explicit.
|
|
@@ -3819,7 +3736,7 @@ class AuroHelpText extends LitElement {
|
|
|
3819
3736
|
}
|
|
3820
3737
|
}
|
|
3821
3738
|
|
|
3822
|
-
var formkitVersion = '
|
|
3739
|
+
var formkitVersion = '202604091756';
|
|
3823
3740
|
|
|
3824
3741
|
class AuroElement extends LitElement {
|
|
3825
3742
|
static get properties() {
|
|
@@ -3925,7 +3842,7 @@ class AuroElement extends LitElement {
|
|
|
3925
3842
|
}
|
|
3926
3843
|
}
|
|
3927
3844
|
|
|
3928
|
-
// Copyright (c) 2026 Alaska Airlines. All
|
|
3845
|
+
// Copyright (c) 2026 Alaska Airlines. All rights reserved. Licensed under the Apache-2.0 license
|
|
3929
3846
|
// See LICENSE in the project root for license information.
|
|
3930
3847
|
|
|
3931
3848
|
|
|
@@ -4030,7 +3947,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4030
3947
|
/**
|
|
4031
3948
|
* @private
|
|
4032
3949
|
*/
|
|
4033
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
3950
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$1();
|
|
4034
3951
|
|
|
4035
3952
|
/**
|
|
4036
3953
|
* @private
|
|
@@ -4448,7 +4365,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4448
4365
|
*
|
|
4449
4366
|
*/
|
|
4450
4367
|
static register(name = "auro-dropdown") {
|
|
4451
|
-
AuroLibraryRuntimeUtils$
|
|
4368
|
+
AuroLibraryRuntimeUtils$1.prototype.registerComponent(name, AuroDropdown);
|
|
4452
4369
|
}
|
|
4453
4370
|
|
|
4454
4371
|
/**
|