@aurodesignsystem/auro-formkit 2.0.0-beta.47 → 2.0.0-beta.48
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 +7 -0
- package/components/checkbox/README.md +1 -1
- package/components/combobox/README.md +4 -4
- package/components/combobox/demo/api.min.js +44 -25
- package/components/combobox/demo/index.min.js +44 -25
- package/components/combobox/dist/auro-combobox.d.ts +9 -0
- package/components/combobox/dist/index.js +44 -25
- package/components/combobox/dist/registered.js +44 -25
- package/components/counter/README.md +1 -1
- package/components/counter/demo/api.min.js +40 -14
- package/components/counter/demo/index.min.js +40 -14
- package/components/counter/dist/auro-counter-group.d.ts +11 -0
- package/components/counter/dist/index.js +40 -14
- package/components/counter/dist/registered.js +40 -14
- package/components/datepicker/README.md +4 -4
- package/components/dropdown/README.md +1 -1
- package/components/form/README.md +1 -1
- package/components/input/README.md +1 -1
- package/components/menu/README.md +1 -1
- package/components/radio/README.md +1 -1
- package/components/select/README.md +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# Semantic Release Automated Changelog
|
|
2
2
|
|
|
3
|
+
# [2.0.0-beta.48](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.0.0-beta.47...v2.0.0-beta.48) (2025-02-27)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* support dynamic `bib.fullscreen.headline` and `label` ([5f3b7ca](https://github.com/AlaskaAirlines/auro-formkit/commit/5f3b7ca00aeb4c11eed14451c470df6c4c2118a2))
|
|
9
|
+
|
|
3
10
|
# [2.0.0-beta.47](https://github.com/AlaskaAirlines/auro-formkit/compare/v2.0.0-beta.46...v2.0.0-beta.47) (2025-02-27)
|
|
4
11
|
|
|
5
12
|
|
|
@@ -96,7 +96,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
96
96
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
97
97
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
98
98
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
99
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-checkbox@2.0.0-beta.
|
|
99
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-checkbox@2.0.0-beta.47/dist/auro-checkbox__bundled.js" type="module"></script>
|
|
100
100
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
101
101
|
|
|
102
102
|
## auro-checkbox use cases
|
|
@@ -101,10 +101,10 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
101
101
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
102
102
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
103
103
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@6.0.0/dist/bundled/essentials.css" />
|
|
104
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.
|
|
105
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.
|
|
106
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.
|
|
107
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-combobox@2.0.0-beta.
|
|
104
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.47/dist/auro-dropdown__bundled.js" type="module"></script>
|
|
105
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.47/dist/auro-input__bundled.js" type="module"></script>
|
|
106
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.47/dist/auro-menu__bundled.js" type="module"></script>
|
|
107
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-combobox@2.0.0-beta.47/dist/auro-combobox__bundled.js" type="module"></script>
|
|
108
108
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
109
109
|
|
|
110
110
|
## auro-combobox use cases
|
|
@@ -11508,7 +11508,7 @@ i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-i
|
|
|
11508
11508
|
|
|
11509
11509
|
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)}`;
|
|
11510
11510
|
|
|
11511
|
-
var styleCss$3 = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}`;
|
|
11511
|
+
var styleCss$3 = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}#slotHolder{display:none}`;
|
|
11512
11512
|
|
|
11513
11513
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11514
11514
|
// See LICENSE in the project root for license information.
|
|
@@ -11880,12 +11880,6 @@ class AuroCombobox extends r$b {
|
|
|
11880
11880
|
this.hideBib = this.hideBib.bind(this);
|
|
11881
11881
|
this.bibtemplate.addEventListener('close-click', this.hideBib);
|
|
11882
11882
|
|
|
11883
|
-
const bibHeader = this.querySelector('[slot="bib.fullscreen.headline"]');
|
|
11884
|
-
if (bibHeader) {
|
|
11885
|
-
bibHeader.setAttribute('slot', 'header');
|
|
11886
|
-
this.bibtemplate.append(bibHeader);
|
|
11887
|
-
}
|
|
11888
|
-
|
|
11889
11883
|
this.dropdown.setAttribute('role', 'combobox');
|
|
11890
11884
|
this.dropdown.addEventListener('auroDropdown-triggerClick', () => {
|
|
11891
11885
|
this.showBib();
|
|
@@ -12017,13 +12011,6 @@ class AuroCombobox extends r$b {
|
|
|
12017
12011
|
this.input.addEventListener('keydown', this.bubbleUpInputKeyEvent);
|
|
12018
12012
|
this.input.addEventListener('keyup', this.bubbleUpInputKeyEvent);
|
|
12019
12013
|
|
|
12020
|
-
// Programatically inject as the slot cannot be carried over to bibtemplate.
|
|
12021
|
-
// It's because the bib is newly attach to body.
|
|
12022
|
-
const label = this.querySelector('[slot="label"]');
|
|
12023
|
-
if (label) {
|
|
12024
|
-
this.input.append(label);
|
|
12025
|
-
}
|
|
12026
|
-
|
|
12027
12014
|
this.addEventListener('keyup', (evt) => {
|
|
12028
12015
|
if (evt.key.length === 1 || evt.key === 'Backspace' || evt.key === 'Delete') {
|
|
12029
12016
|
this.showBib();
|
|
@@ -12327,6 +12314,24 @@ class AuroCombobox extends r$b {
|
|
|
12327
12314
|
}
|
|
12328
12315
|
}
|
|
12329
12316
|
|
|
12317
|
+
/**
|
|
12318
|
+
* Applies slotted nodes to a target element with a new slot name.
|
|
12319
|
+
* @private
|
|
12320
|
+
* @param {HTMLSlotElement} slot - The slot element containing the nodes to apply.
|
|
12321
|
+
* @param {HTMLElement} target - The target element to apply the nodes to.
|
|
12322
|
+
* @param {string} newSlotName - The new slot name for the applied nodes.
|
|
12323
|
+
* @returns {void}
|
|
12324
|
+
*/
|
|
12325
|
+
transportAssignedNodes(slot, target, newSlotName) {
|
|
12326
|
+
// Remove previous slot nodes if necessary.
|
|
12327
|
+
target.querySelectorAll(`[slot="${newSlotName}"]`).forEach((old) => old.remove());
|
|
12328
|
+
slot.assignedNodes().forEach((node) => {
|
|
12329
|
+
const clone = node.cloneNode(true);
|
|
12330
|
+
clone.setAttribute('slot', newSlotName);
|
|
12331
|
+
target.append(clone);
|
|
12332
|
+
});
|
|
12333
|
+
}
|
|
12334
|
+
|
|
12330
12335
|
/**
|
|
12331
12336
|
* Watch for slot changes and recalculate the menuoptions.
|
|
12332
12337
|
* @private
|
|
@@ -12334,18 +12339,28 @@ class AuroCombobox extends r$b {
|
|
|
12334
12339
|
* @returns {void}
|
|
12335
12340
|
*/
|
|
12336
12341
|
handleSlotChange(event) {
|
|
12337
|
-
|
|
12338
|
-
|
|
12339
|
-
|
|
12340
|
-
|
|
12341
|
-
|
|
12342
|
-
|
|
12343
|
-
|
|
12344
|
-
|
|
12345
|
-
|
|
12346
|
-
|
|
12342
|
+
switch (event.target.name) {
|
|
12343
|
+
case '':
|
|
12344
|
+
// Treat only generic menuoptions.
|
|
12345
|
+
this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
12346
|
+
this.options.forEach((opt) => {
|
|
12347
|
+
if (this.checkmark) {
|
|
12348
|
+
opt.removeAttribute('nocheckmark');
|
|
12349
|
+
} else {
|
|
12350
|
+
opt.setAttribute('nocheckmark', '');
|
|
12351
|
+
}
|
|
12352
|
+
});
|
|
12347
12353
|
|
|
12348
|
-
|
|
12354
|
+
this.handleMenuOptions();
|
|
12355
|
+
break;
|
|
12356
|
+
case 'label':
|
|
12357
|
+
// Programatically inject as the slot cannot be carried over to bibtemplate.
|
|
12358
|
+
// It's because the bib is/will be seperated from dropdown to body.
|
|
12359
|
+
this.transportAssignedNodes(event.target, this.input, 'label');
|
|
12360
|
+
break;
|
|
12361
|
+
case 'bib.fullscreen.headline':
|
|
12362
|
+
this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
|
|
12363
|
+
break;
|
|
12349
12364
|
}
|
|
12350
12365
|
}
|
|
12351
12366
|
|
|
@@ -12361,6 +12376,10 @@ class AuroCombobox extends r$b {
|
|
|
12361
12376
|
: undefined
|
|
12362
12377
|
}
|
|
12363
12378
|
</div>
|
|
12379
|
+
<div id="slotHolder" aria-hidden="true">
|
|
12380
|
+
<slot name="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
12381
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
12382
|
+
</div>
|
|
12364
12383
|
<${this.dropdownTag}
|
|
12365
12384
|
for="dropdownMenu"
|
|
12366
12385
|
fluid
|
|
@@ -11366,7 +11366,7 @@ i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-i
|
|
|
11366
11366
|
|
|
11367
11367
|
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)}`;
|
|
11368
11368
|
|
|
11369
|
-
var styleCss$3 = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}`;
|
|
11369
|
+
var styleCss$3 = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}#slotHolder{display:none}`;
|
|
11370
11370
|
|
|
11371
11371
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11372
11372
|
// See LICENSE in the project root for license information.
|
|
@@ -11738,12 +11738,6 @@ class AuroCombobox extends r$b {
|
|
|
11738
11738
|
this.hideBib = this.hideBib.bind(this);
|
|
11739
11739
|
this.bibtemplate.addEventListener('close-click', this.hideBib);
|
|
11740
11740
|
|
|
11741
|
-
const bibHeader = this.querySelector('[slot="bib.fullscreen.headline"]');
|
|
11742
|
-
if (bibHeader) {
|
|
11743
|
-
bibHeader.setAttribute('slot', 'header');
|
|
11744
|
-
this.bibtemplate.append(bibHeader);
|
|
11745
|
-
}
|
|
11746
|
-
|
|
11747
11741
|
this.dropdown.setAttribute('role', 'combobox');
|
|
11748
11742
|
this.dropdown.addEventListener('auroDropdown-triggerClick', () => {
|
|
11749
11743
|
this.showBib();
|
|
@@ -11875,13 +11869,6 @@ class AuroCombobox extends r$b {
|
|
|
11875
11869
|
this.input.addEventListener('keydown', this.bubbleUpInputKeyEvent);
|
|
11876
11870
|
this.input.addEventListener('keyup', this.bubbleUpInputKeyEvent);
|
|
11877
11871
|
|
|
11878
|
-
// Programatically inject as the slot cannot be carried over to bibtemplate.
|
|
11879
|
-
// It's because the bib is newly attach to body.
|
|
11880
|
-
const label = this.querySelector('[slot="label"]');
|
|
11881
|
-
if (label) {
|
|
11882
|
-
this.input.append(label);
|
|
11883
|
-
}
|
|
11884
|
-
|
|
11885
11872
|
this.addEventListener('keyup', (evt) => {
|
|
11886
11873
|
if (evt.key.length === 1 || evt.key === 'Backspace' || evt.key === 'Delete') {
|
|
11887
11874
|
this.showBib();
|
|
@@ -12185,6 +12172,24 @@ class AuroCombobox extends r$b {
|
|
|
12185
12172
|
}
|
|
12186
12173
|
}
|
|
12187
12174
|
|
|
12175
|
+
/**
|
|
12176
|
+
* Applies slotted nodes to a target element with a new slot name.
|
|
12177
|
+
* @private
|
|
12178
|
+
* @param {HTMLSlotElement} slot - The slot element containing the nodes to apply.
|
|
12179
|
+
* @param {HTMLElement} target - The target element to apply the nodes to.
|
|
12180
|
+
* @param {string} newSlotName - The new slot name for the applied nodes.
|
|
12181
|
+
* @returns {void}
|
|
12182
|
+
*/
|
|
12183
|
+
transportAssignedNodes(slot, target, newSlotName) {
|
|
12184
|
+
// Remove previous slot nodes if necessary.
|
|
12185
|
+
target.querySelectorAll(`[slot="${newSlotName}"]`).forEach((old) => old.remove());
|
|
12186
|
+
slot.assignedNodes().forEach((node) => {
|
|
12187
|
+
const clone = node.cloneNode(true);
|
|
12188
|
+
clone.setAttribute('slot', newSlotName);
|
|
12189
|
+
target.append(clone);
|
|
12190
|
+
});
|
|
12191
|
+
}
|
|
12192
|
+
|
|
12188
12193
|
/**
|
|
12189
12194
|
* Watch for slot changes and recalculate the menuoptions.
|
|
12190
12195
|
* @private
|
|
@@ -12192,18 +12197,28 @@ class AuroCombobox extends r$b {
|
|
|
12192
12197
|
* @returns {void}
|
|
12193
12198
|
*/
|
|
12194
12199
|
handleSlotChange(event) {
|
|
12195
|
-
|
|
12196
|
-
|
|
12197
|
-
|
|
12198
|
-
|
|
12199
|
-
|
|
12200
|
-
|
|
12201
|
-
|
|
12202
|
-
|
|
12203
|
-
|
|
12204
|
-
|
|
12200
|
+
switch (event.target.name) {
|
|
12201
|
+
case '':
|
|
12202
|
+
// Treat only generic menuoptions.
|
|
12203
|
+
this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
12204
|
+
this.options.forEach((opt) => {
|
|
12205
|
+
if (this.checkmark) {
|
|
12206
|
+
opt.removeAttribute('nocheckmark');
|
|
12207
|
+
} else {
|
|
12208
|
+
opt.setAttribute('nocheckmark', '');
|
|
12209
|
+
}
|
|
12210
|
+
});
|
|
12205
12211
|
|
|
12206
|
-
|
|
12212
|
+
this.handleMenuOptions();
|
|
12213
|
+
break;
|
|
12214
|
+
case 'label':
|
|
12215
|
+
// Programatically inject as the slot cannot be carried over to bibtemplate.
|
|
12216
|
+
// It's because the bib is/will be seperated from dropdown to body.
|
|
12217
|
+
this.transportAssignedNodes(event.target, this.input, 'label');
|
|
12218
|
+
break;
|
|
12219
|
+
case 'bib.fullscreen.headline':
|
|
12220
|
+
this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
|
|
12221
|
+
break;
|
|
12207
12222
|
}
|
|
12208
12223
|
}
|
|
12209
12224
|
|
|
@@ -12219,6 +12234,10 @@ class AuroCombobox extends r$b {
|
|
|
12219
12234
|
: undefined
|
|
12220
12235
|
}
|
|
12221
12236
|
</div>
|
|
12237
|
+
<div id="slotHolder" aria-hidden="true">
|
|
12238
|
+
<slot name="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
12239
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
12240
|
+
</div>
|
|
12222
12241
|
<${this.dropdownTag}
|
|
12223
12242
|
for="dropdownMenu"
|
|
12224
12243
|
fluid
|
|
@@ -275,6 +275,15 @@ export class AuroCombobox extends LitElement {
|
|
|
275
275
|
*/
|
|
276
276
|
validate(force?: boolean): void;
|
|
277
277
|
updated(changedProperties: any): void;
|
|
278
|
+
/**
|
|
279
|
+
* Applies slotted nodes to a target element with a new slot name.
|
|
280
|
+
* @private
|
|
281
|
+
* @param {HTMLSlotElement} slot - The slot element containing the nodes to apply.
|
|
282
|
+
* @param {HTMLElement} target - The target element to apply the nodes to.
|
|
283
|
+
* @param {string} newSlotName - The new slot name for the applied nodes.
|
|
284
|
+
* @returns {void}
|
|
285
|
+
*/
|
|
286
|
+
private transportAssignedNodes;
|
|
278
287
|
/**
|
|
279
288
|
* Watch for slot changes and recalculate the menuoptions.
|
|
280
289
|
* @private
|
|
@@ -11343,7 +11343,7 @@ i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-i
|
|
|
11343
11343
|
|
|
11344
11344
|
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)}`;
|
|
11345
11345
|
|
|
11346
|
-
var styleCss = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}`;
|
|
11346
|
+
var styleCss = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}#slotHolder{display:none}`;
|
|
11347
11347
|
|
|
11348
11348
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11349
11349
|
// See LICENSE in the project root for license information.
|
|
@@ -11715,12 +11715,6 @@ class AuroCombobox extends r$b {
|
|
|
11715
11715
|
this.hideBib = this.hideBib.bind(this);
|
|
11716
11716
|
this.bibtemplate.addEventListener('close-click', this.hideBib);
|
|
11717
11717
|
|
|
11718
|
-
const bibHeader = this.querySelector('[slot="bib.fullscreen.headline"]');
|
|
11719
|
-
if (bibHeader) {
|
|
11720
|
-
bibHeader.setAttribute('slot', 'header');
|
|
11721
|
-
this.bibtemplate.append(bibHeader);
|
|
11722
|
-
}
|
|
11723
|
-
|
|
11724
11718
|
this.dropdown.setAttribute('role', 'combobox');
|
|
11725
11719
|
this.dropdown.addEventListener('auroDropdown-triggerClick', () => {
|
|
11726
11720
|
this.showBib();
|
|
@@ -11852,13 +11846,6 @@ class AuroCombobox extends r$b {
|
|
|
11852
11846
|
this.input.addEventListener('keydown', this.bubbleUpInputKeyEvent);
|
|
11853
11847
|
this.input.addEventListener('keyup', this.bubbleUpInputKeyEvent);
|
|
11854
11848
|
|
|
11855
|
-
// Programatically inject as the slot cannot be carried over to bibtemplate.
|
|
11856
|
-
// It's because the bib is newly attach to body.
|
|
11857
|
-
const label = this.querySelector('[slot="label"]');
|
|
11858
|
-
if (label) {
|
|
11859
|
-
this.input.append(label);
|
|
11860
|
-
}
|
|
11861
|
-
|
|
11862
11849
|
this.addEventListener('keyup', (evt) => {
|
|
11863
11850
|
if (evt.key.length === 1 || evt.key === 'Backspace' || evt.key === 'Delete') {
|
|
11864
11851
|
this.showBib();
|
|
@@ -12162,6 +12149,24 @@ class AuroCombobox extends r$b {
|
|
|
12162
12149
|
}
|
|
12163
12150
|
}
|
|
12164
12151
|
|
|
12152
|
+
/**
|
|
12153
|
+
* Applies slotted nodes to a target element with a new slot name.
|
|
12154
|
+
* @private
|
|
12155
|
+
* @param {HTMLSlotElement} slot - The slot element containing the nodes to apply.
|
|
12156
|
+
* @param {HTMLElement} target - The target element to apply the nodes to.
|
|
12157
|
+
* @param {string} newSlotName - The new slot name for the applied nodes.
|
|
12158
|
+
* @returns {void}
|
|
12159
|
+
*/
|
|
12160
|
+
transportAssignedNodes(slot, target, newSlotName) {
|
|
12161
|
+
// Remove previous slot nodes if necessary.
|
|
12162
|
+
target.querySelectorAll(`[slot="${newSlotName}"]`).forEach((old) => old.remove());
|
|
12163
|
+
slot.assignedNodes().forEach((node) => {
|
|
12164
|
+
const clone = node.cloneNode(true);
|
|
12165
|
+
clone.setAttribute('slot', newSlotName);
|
|
12166
|
+
target.append(clone);
|
|
12167
|
+
});
|
|
12168
|
+
}
|
|
12169
|
+
|
|
12165
12170
|
/**
|
|
12166
12171
|
* Watch for slot changes and recalculate the menuoptions.
|
|
12167
12172
|
* @private
|
|
@@ -12169,18 +12174,28 @@ class AuroCombobox extends r$b {
|
|
|
12169
12174
|
* @returns {void}
|
|
12170
12175
|
*/
|
|
12171
12176
|
handleSlotChange(event) {
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12177
|
+
switch (event.target.name) {
|
|
12178
|
+
case '':
|
|
12179
|
+
// Treat only generic menuoptions.
|
|
12180
|
+
this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
12181
|
+
this.options.forEach((opt) => {
|
|
12182
|
+
if (this.checkmark) {
|
|
12183
|
+
opt.removeAttribute('nocheckmark');
|
|
12184
|
+
} else {
|
|
12185
|
+
opt.setAttribute('nocheckmark', '');
|
|
12186
|
+
}
|
|
12187
|
+
});
|
|
12182
12188
|
|
|
12183
|
-
|
|
12189
|
+
this.handleMenuOptions();
|
|
12190
|
+
break;
|
|
12191
|
+
case 'label':
|
|
12192
|
+
// Programatically inject as the slot cannot be carried over to bibtemplate.
|
|
12193
|
+
// It's because the bib is/will be seperated from dropdown to body.
|
|
12194
|
+
this.transportAssignedNodes(event.target, this.input, 'label');
|
|
12195
|
+
break;
|
|
12196
|
+
case 'bib.fullscreen.headline':
|
|
12197
|
+
this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
|
|
12198
|
+
break;
|
|
12184
12199
|
}
|
|
12185
12200
|
}
|
|
12186
12201
|
|
|
@@ -12196,6 +12211,10 @@ class AuroCombobox extends r$b {
|
|
|
12196
12211
|
: undefined
|
|
12197
12212
|
}
|
|
12198
12213
|
</div>
|
|
12214
|
+
<div id="slotHolder" aria-hidden="true">
|
|
12215
|
+
<slot name="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
12216
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
12217
|
+
</div>
|
|
12199
12218
|
<${this.dropdownTag}
|
|
12200
12219
|
for="dropdownMenu"
|
|
12201
12220
|
fluid
|
|
@@ -11343,7 +11343,7 @@ i$5`:host{--ds-auro-icon-color: var(--ds-color-icon-primary-default, $ds-color-i
|
|
|
11343
11343
|
|
|
11344
11344
|
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)}`;
|
|
11345
11345
|
|
|
11346
|
-
var styleCss = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}`;
|
|
11346
|
+
var styleCss = i$g`.util_displayInline{display:inline}.util_displayInlineBlock{display:inline-block}.util_displayBlock{display:block}.util_displayFlex{display:flex}.util_displayHidden{display:none}.util_displayHiddenVisually{position:absolute;overflow:hidden;clip:rect(1px, 1px, 1px, 1px);width:1px;height:1px;padding:0;border:0}[auro-input]{min-height:var(--ds-size-700, 3.5rem);max-height:var(--ds-size-700, 3.5rem)}[auro-input]::part(iconContainer){top:0;display:flex;height:100%;align-items:center}[auro-input]::part(accentIcon){transition:all .3s cubic-bezier(0.215, 0.61, 0.355, 1)}[auro-input]::part(helpText){display:none}[auro-input]::part(wrapper){border-width:0 !important;box-shadow:unset !important;outline:unset !important;--ds-auro-input-border-color: transparent;--ds-auro-input-container-color: transparent}#slotHolder{display:none}`;
|
|
11347
11347
|
|
|
11348
11348
|
// Copyright (c) 2022 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
11349
11349
|
// See LICENSE in the project root for license information.
|
|
@@ -11715,12 +11715,6 @@ class AuroCombobox extends r$b {
|
|
|
11715
11715
|
this.hideBib = this.hideBib.bind(this);
|
|
11716
11716
|
this.bibtemplate.addEventListener('close-click', this.hideBib);
|
|
11717
11717
|
|
|
11718
|
-
const bibHeader = this.querySelector('[slot="bib.fullscreen.headline"]');
|
|
11719
|
-
if (bibHeader) {
|
|
11720
|
-
bibHeader.setAttribute('slot', 'header');
|
|
11721
|
-
this.bibtemplate.append(bibHeader);
|
|
11722
|
-
}
|
|
11723
|
-
|
|
11724
11718
|
this.dropdown.setAttribute('role', 'combobox');
|
|
11725
11719
|
this.dropdown.addEventListener('auroDropdown-triggerClick', () => {
|
|
11726
11720
|
this.showBib();
|
|
@@ -11852,13 +11846,6 @@ class AuroCombobox extends r$b {
|
|
|
11852
11846
|
this.input.addEventListener('keydown', this.bubbleUpInputKeyEvent);
|
|
11853
11847
|
this.input.addEventListener('keyup', this.bubbleUpInputKeyEvent);
|
|
11854
11848
|
|
|
11855
|
-
// Programatically inject as the slot cannot be carried over to bibtemplate.
|
|
11856
|
-
// It's because the bib is newly attach to body.
|
|
11857
|
-
const label = this.querySelector('[slot="label"]');
|
|
11858
|
-
if (label) {
|
|
11859
|
-
this.input.append(label);
|
|
11860
|
-
}
|
|
11861
|
-
|
|
11862
11849
|
this.addEventListener('keyup', (evt) => {
|
|
11863
11850
|
if (evt.key.length === 1 || evt.key === 'Backspace' || evt.key === 'Delete') {
|
|
11864
11851
|
this.showBib();
|
|
@@ -12162,6 +12149,24 @@ class AuroCombobox extends r$b {
|
|
|
12162
12149
|
}
|
|
12163
12150
|
}
|
|
12164
12151
|
|
|
12152
|
+
/**
|
|
12153
|
+
* Applies slotted nodes to a target element with a new slot name.
|
|
12154
|
+
* @private
|
|
12155
|
+
* @param {HTMLSlotElement} slot - The slot element containing the nodes to apply.
|
|
12156
|
+
* @param {HTMLElement} target - The target element to apply the nodes to.
|
|
12157
|
+
* @param {string} newSlotName - The new slot name for the applied nodes.
|
|
12158
|
+
* @returns {void}
|
|
12159
|
+
*/
|
|
12160
|
+
transportAssignedNodes(slot, target, newSlotName) {
|
|
12161
|
+
// Remove previous slot nodes if necessary.
|
|
12162
|
+
target.querySelectorAll(`[slot="${newSlotName}"]`).forEach((old) => old.remove());
|
|
12163
|
+
slot.assignedNodes().forEach((node) => {
|
|
12164
|
+
const clone = node.cloneNode(true);
|
|
12165
|
+
clone.setAttribute('slot', newSlotName);
|
|
12166
|
+
target.append(clone);
|
|
12167
|
+
});
|
|
12168
|
+
}
|
|
12169
|
+
|
|
12165
12170
|
/**
|
|
12166
12171
|
* Watch for slot changes and recalculate the menuoptions.
|
|
12167
12172
|
* @private
|
|
@@ -12169,18 +12174,28 @@ class AuroCombobox extends r$b {
|
|
|
12169
12174
|
* @returns {void}
|
|
12170
12175
|
*/
|
|
12171
12176
|
handleSlotChange(event) {
|
|
12172
|
-
|
|
12173
|
-
|
|
12174
|
-
|
|
12175
|
-
|
|
12176
|
-
|
|
12177
|
-
|
|
12178
|
-
|
|
12179
|
-
|
|
12180
|
-
|
|
12181
|
-
|
|
12177
|
+
switch (event.target.name) {
|
|
12178
|
+
case '':
|
|
12179
|
+
// Treat only generic menuoptions.
|
|
12180
|
+
this.options = this.menu.querySelectorAll('auro-menuoption, [auro-menuoption]');
|
|
12181
|
+
this.options.forEach((opt) => {
|
|
12182
|
+
if (this.checkmark) {
|
|
12183
|
+
opt.removeAttribute('nocheckmark');
|
|
12184
|
+
} else {
|
|
12185
|
+
opt.setAttribute('nocheckmark', '');
|
|
12186
|
+
}
|
|
12187
|
+
});
|
|
12182
12188
|
|
|
12183
|
-
|
|
12189
|
+
this.handleMenuOptions();
|
|
12190
|
+
break;
|
|
12191
|
+
case 'label':
|
|
12192
|
+
// Programatically inject as the slot cannot be carried over to bibtemplate.
|
|
12193
|
+
// It's because the bib is/will be seperated from dropdown to body.
|
|
12194
|
+
this.transportAssignedNodes(event.target, this.input, 'label');
|
|
12195
|
+
break;
|
|
12196
|
+
case 'bib.fullscreen.headline':
|
|
12197
|
+
this.transportAssignedNodes(event.target, this.bibtemplate, 'header');
|
|
12198
|
+
break;
|
|
12184
12199
|
}
|
|
12185
12200
|
}
|
|
12186
12201
|
|
|
@@ -12196,6 +12211,10 @@ class AuroCombobox extends r$b {
|
|
|
12196
12211
|
: undefined
|
|
12197
12212
|
}
|
|
12198
12213
|
</div>
|
|
12214
|
+
<div id="slotHolder" aria-hidden="true">
|
|
12215
|
+
<slot name="label" @slotchange="${this.handleSlotChange}"></slot>
|
|
12216
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
12217
|
+
</div>
|
|
12199
12218
|
<${this.dropdownTag}
|
|
12200
12219
|
for="dropdownMenu"
|
|
12201
12220
|
fluid
|
|
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
100
100
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
101
101
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
102
102
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
103
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.
|
|
103
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-counter@2.0.0-beta.47/dist/auro-counter__bundled.js" type="module"></script>
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
106
106
|
## auro-counter use cases
|
|
@@ -1616,7 +1616,7 @@ class AuroCounter extends r$9 {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
1619
|
-
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}`;
|
|
1619
|
+
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}#slotHolder{display:none}`;
|
|
1620
1620
|
|
|
1621
1621
|
/**
|
|
1622
1622
|
* @license
|
|
@@ -5864,6 +5864,11 @@ class AuroCounterGroup extends r$9 {
|
|
|
5864
5864
|
*/
|
|
5865
5865
|
this.dropdown = undefined;
|
|
5866
5866
|
|
|
5867
|
+
/**
|
|
5868
|
+
* @private
|
|
5869
|
+
*/
|
|
5870
|
+
this.bibtemplate = undefined;
|
|
5871
|
+
|
|
5867
5872
|
/**
|
|
5868
5873
|
* @private
|
|
5869
5874
|
*/
|
|
@@ -6089,22 +6094,39 @@ class AuroCounterGroup extends r$9 {
|
|
|
6089
6094
|
* This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
|
|
6090
6095
|
*/
|
|
6091
6096
|
configureBibtemplate() {
|
|
6092
|
-
|
|
6093
|
-
bibtemplate.addEventListener('close-click', () => {
|
|
6097
|
+
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
|
|
6098
|
+
this.bibtemplate.addEventListener('close-click', () => {
|
|
6094
6099
|
if (this.dropdown.isPopoverVisible) {
|
|
6095
6100
|
this.dropdown.hide();
|
|
6096
6101
|
}
|
|
6097
6102
|
});
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6103
|
+
}
|
|
6104
|
+
|
|
6105
|
+
/**
|
|
6106
|
+
* Watch for slot changes and recalculate the menuoptions.
|
|
6107
|
+
* @private
|
|
6108
|
+
* @param {Event} event - `slotchange` event.
|
|
6109
|
+
* @returns {void}
|
|
6110
|
+
*/
|
|
6111
|
+
handleSlotChange(event) {
|
|
6112
|
+
let targetSlot = '';
|
|
6113
|
+
if (event.target.name === 'bib.fullscreen.headline') {
|
|
6114
|
+
targetSlot = 'header';
|
|
6115
|
+
} else if (event.target.name === 'bib.fullscreen.footer') {
|
|
6116
|
+
targetSlot = 'footer';
|
|
6102
6117
|
}
|
|
6118
|
+
if (targetSlot) {
|
|
6119
|
+
if (!this.dropdown) {
|
|
6120
|
+
this.configureDropdownCounters();
|
|
6121
|
+
}
|
|
6103
6122
|
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6123
|
+
this.bibtemplate.querySelectorAll(`[slot="${targetSlot}"]`).forEach((old) => old.remove());
|
|
6124
|
+
|
|
6125
|
+
event.target.assignedNodes().forEach((node) => {
|
|
6126
|
+
const clone = node.cloneNode(true);
|
|
6127
|
+
clone.setAttribute('slot', targetSlot);
|
|
6128
|
+
this.bibtemplate.append(clone);
|
|
6129
|
+
});
|
|
6108
6130
|
}
|
|
6109
6131
|
}
|
|
6110
6132
|
|
|
@@ -6183,19 +6205,23 @@ class AuroCounterGroup extends r$9 {
|
|
|
6183
6205
|
return u$6`
|
|
6184
6206
|
${this.isDropdown
|
|
6185
6207
|
? u$6`<${this.dropdownTag} common chevron fullscreenBreakpoint="${this.fullscreenBreakpoint}">
|
|
6186
|
-
|
|
6187
6208
|
<div slot="trigger"><slot name="valueText">
|
|
6188
6209
|
${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.defaultSlot}${index !== this.counters.length - 1 ? ', ' : ''}`)}
|
|
6189
6210
|
</slot></div>
|
|
6190
6211
|
<div slot="label"><slot name="label"></slot></div>
|
|
6191
6212
|
<div slot="helpText"><slot name="helpText"></slot></div>
|
|
6192
6213
|
|
|
6193
|
-
|
|
6214
|
+
<${this.bibtemplateTag} ?large="${this.largeMobileHeadline}">
|
|
6194
6215
|
<auro-counter-wrapper isInDropdown>
|
|
6195
6216
|
</auro-counter-wrapper>
|
|
6196
6217
|
</${this.bibtemplateTag}>
|
|
6197
6218
|
</${this.dropdownTag}>
|
|
6198
|
-
<slot @slotchange=${() => this.configureDropdownCounters()}></slot
|
|
6219
|
+
<slot @slotchange=${() => this.configureDropdownCounters()}></slot>
|
|
6220
|
+
<div id="slotHolder">
|
|
6221
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
6222
|
+
<slot name="bib.fullscreen.footer" @slotchange="${this.handleSlotChange}"></slot>
|
|
6223
|
+
</div>
|
|
6224
|
+
`
|
|
6199
6225
|
: u$6`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
|
|
6200
6226
|
}`;
|
|
6201
6227
|
}
|
|
@@ -1616,7 +1616,7 @@ class AuroCounter extends r$9 {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
1619
|
-
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}`;
|
|
1619
|
+
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}#slotHolder{display:none}`;
|
|
1620
1620
|
|
|
1621
1621
|
/**
|
|
1622
1622
|
* @license
|
|
@@ -5864,6 +5864,11 @@ class AuroCounterGroup extends r$9 {
|
|
|
5864
5864
|
*/
|
|
5865
5865
|
this.dropdown = undefined;
|
|
5866
5866
|
|
|
5867
|
+
/**
|
|
5868
|
+
* @private
|
|
5869
|
+
*/
|
|
5870
|
+
this.bibtemplate = undefined;
|
|
5871
|
+
|
|
5867
5872
|
/**
|
|
5868
5873
|
* @private
|
|
5869
5874
|
*/
|
|
@@ -6089,22 +6094,39 @@ class AuroCounterGroup extends r$9 {
|
|
|
6089
6094
|
* This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
|
|
6090
6095
|
*/
|
|
6091
6096
|
configureBibtemplate() {
|
|
6092
|
-
|
|
6093
|
-
bibtemplate.addEventListener('close-click', () => {
|
|
6097
|
+
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
|
|
6098
|
+
this.bibtemplate.addEventListener('close-click', () => {
|
|
6094
6099
|
if (this.dropdown.isPopoverVisible) {
|
|
6095
6100
|
this.dropdown.hide();
|
|
6096
6101
|
}
|
|
6097
6102
|
});
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6103
|
+
}
|
|
6104
|
+
|
|
6105
|
+
/**
|
|
6106
|
+
* Watch for slot changes and recalculate the menuoptions.
|
|
6107
|
+
* @private
|
|
6108
|
+
* @param {Event} event - `slotchange` event.
|
|
6109
|
+
* @returns {void}
|
|
6110
|
+
*/
|
|
6111
|
+
handleSlotChange(event) {
|
|
6112
|
+
let targetSlot = '';
|
|
6113
|
+
if (event.target.name === 'bib.fullscreen.headline') {
|
|
6114
|
+
targetSlot = 'header';
|
|
6115
|
+
} else if (event.target.name === 'bib.fullscreen.footer') {
|
|
6116
|
+
targetSlot = 'footer';
|
|
6102
6117
|
}
|
|
6118
|
+
if (targetSlot) {
|
|
6119
|
+
if (!this.dropdown) {
|
|
6120
|
+
this.configureDropdownCounters();
|
|
6121
|
+
}
|
|
6103
6122
|
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6123
|
+
this.bibtemplate.querySelectorAll(`[slot="${targetSlot}"]`).forEach((old) => old.remove());
|
|
6124
|
+
|
|
6125
|
+
event.target.assignedNodes().forEach((node) => {
|
|
6126
|
+
const clone = node.cloneNode(true);
|
|
6127
|
+
clone.setAttribute('slot', targetSlot);
|
|
6128
|
+
this.bibtemplate.append(clone);
|
|
6129
|
+
});
|
|
6108
6130
|
}
|
|
6109
6131
|
}
|
|
6110
6132
|
|
|
@@ -6183,19 +6205,23 @@ class AuroCounterGroup extends r$9 {
|
|
|
6183
6205
|
return u$6`
|
|
6184
6206
|
${this.isDropdown
|
|
6185
6207
|
? u$6`<${this.dropdownTag} common chevron fullscreenBreakpoint="${this.fullscreenBreakpoint}">
|
|
6186
|
-
|
|
6187
6208
|
<div slot="trigger"><slot name="valueText">
|
|
6188
6209
|
${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.defaultSlot}${index !== this.counters.length - 1 ? ', ' : ''}`)}
|
|
6189
6210
|
</slot></div>
|
|
6190
6211
|
<div slot="label"><slot name="label"></slot></div>
|
|
6191
6212
|
<div slot="helpText"><slot name="helpText"></slot></div>
|
|
6192
6213
|
|
|
6193
|
-
|
|
6214
|
+
<${this.bibtemplateTag} ?large="${this.largeMobileHeadline}">
|
|
6194
6215
|
<auro-counter-wrapper isInDropdown>
|
|
6195
6216
|
</auro-counter-wrapper>
|
|
6196
6217
|
</${this.bibtemplateTag}>
|
|
6197
6218
|
</${this.dropdownTag}>
|
|
6198
|
-
<slot @slotchange=${() => this.configureDropdownCounters()}></slot
|
|
6219
|
+
<slot @slotchange=${() => this.configureDropdownCounters()}></slot>
|
|
6220
|
+
<div id="slotHolder">
|
|
6221
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
6222
|
+
<slot name="bib.fullscreen.footer" @slotchange="${this.handleSlotChange}"></slot>
|
|
6223
|
+
</div>
|
|
6224
|
+
`
|
|
6199
6225
|
: u$6`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
|
|
6200
6226
|
}`;
|
|
6201
6227
|
}
|
|
@@ -95,6 +95,10 @@ export class AuroCounterGroup extends LitElement {
|
|
|
95
95
|
* @private
|
|
96
96
|
*/
|
|
97
97
|
private dropdown;
|
|
98
|
+
/**
|
|
99
|
+
* @private
|
|
100
|
+
*/
|
|
101
|
+
private bibtemplate;
|
|
98
102
|
/**
|
|
99
103
|
* @private
|
|
100
104
|
*/
|
|
@@ -147,6 +151,13 @@ export class AuroCounterGroup extends LitElement {
|
|
|
147
151
|
* This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
|
|
148
152
|
*/
|
|
149
153
|
private configureBibtemplate;
|
|
154
|
+
/**
|
|
155
|
+
* Watch for slot changes and recalculate the menuoptions.
|
|
156
|
+
* @private
|
|
157
|
+
* @param {Event} event - `slotchange` event.
|
|
158
|
+
* @returns {void}
|
|
159
|
+
*/
|
|
160
|
+
private handleSlotChange;
|
|
150
161
|
/**
|
|
151
162
|
* Safely converts a value to a number, returning 0 if invalid.
|
|
152
163
|
* @private
|
|
@@ -1616,7 +1616,7 @@ class AuroCounter extends r$9 {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
1619
|
-
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}`;
|
|
1619
|
+
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}#slotHolder{display:none}`;
|
|
1620
1620
|
|
|
1621
1621
|
/**
|
|
1622
1622
|
* @license
|
|
@@ -5864,6 +5864,11 @@ class AuroCounterGroup extends r$9 {
|
|
|
5864
5864
|
*/
|
|
5865
5865
|
this.dropdown = undefined;
|
|
5866
5866
|
|
|
5867
|
+
/**
|
|
5868
|
+
* @private
|
|
5869
|
+
*/
|
|
5870
|
+
this.bibtemplate = undefined;
|
|
5871
|
+
|
|
5867
5872
|
/**
|
|
5868
5873
|
* @private
|
|
5869
5874
|
*/
|
|
@@ -6089,22 +6094,39 @@ class AuroCounterGroup extends r$9 {
|
|
|
6089
6094
|
* This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
|
|
6090
6095
|
*/
|
|
6091
6096
|
configureBibtemplate() {
|
|
6092
|
-
|
|
6093
|
-
bibtemplate.addEventListener('close-click', () => {
|
|
6097
|
+
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
|
|
6098
|
+
this.bibtemplate.addEventListener('close-click', () => {
|
|
6094
6099
|
if (this.dropdown.isPopoverVisible) {
|
|
6095
6100
|
this.dropdown.hide();
|
|
6096
6101
|
}
|
|
6097
6102
|
});
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6103
|
+
}
|
|
6104
|
+
|
|
6105
|
+
/**
|
|
6106
|
+
* Watch for slot changes and recalculate the menuoptions.
|
|
6107
|
+
* @private
|
|
6108
|
+
* @param {Event} event - `slotchange` event.
|
|
6109
|
+
* @returns {void}
|
|
6110
|
+
*/
|
|
6111
|
+
handleSlotChange(event) {
|
|
6112
|
+
let targetSlot = '';
|
|
6113
|
+
if (event.target.name === 'bib.fullscreen.headline') {
|
|
6114
|
+
targetSlot = 'header';
|
|
6115
|
+
} else if (event.target.name === 'bib.fullscreen.footer') {
|
|
6116
|
+
targetSlot = 'footer';
|
|
6102
6117
|
}
|
|
6118
|
+
if (targetSlot) {
|
|
6119
|
+
if (!this.dropdown) {
|
|
6120
|
+
this.configureDropdownCounters();
|
|
6121
|
+
}
|
|
6103
6122
|
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6123
|
+
this.bibtemplate.querySelectorAll(`[slot="${targetSlot}"]`).forEach((old) => old.remove());
|
|
6124
|
+
|
|
6125
|
+
event.target.assignedNodes().forEach((node) => {
|
|
6126
|
+
const clone = node.cloneNode(true);
|
|
6127
|
+
clone.setAttribute('slot', targetSlot);
|
|
6128
|
+
this.bibtemplate.append(clone);
|
|
6129
|
+
});
|
|
6108
6130
|
}
|
|
6109
6131
|
}
|
|
6110
6132
|
|
|
@@ -6183,19 +6205,23 @@ class AuroCounterGroup extends r$9 {
|
|
|
6183
6205
|
return u$6`
|
|
6184
6206
|
${this.isDropdown
|
|
6185
6207
|
? u$6`<${this.dropdownTag} common chevron fullscreenBreakpoint="${this.fullscreenBreakpoint}">
|
|
6186
|
-
|
|
6187
6208
|
<div slot="trigger"><slot name="valueText">
|
|
6188
6209
|
${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.defaultSlot}${index !== this.counters.length - 1 ? ', ' : ''}`)}
|
|
6189
6210
|
</slot></div>
|
|
6190
6211
|
<div slot="label"><slot name="label"></slot></div>
|
|
6191
6212
|
<div slot="helpText"><slot name="helpText"></slot></div>
|
|
6192
6213
|
|
|
6193
|
-
|
|
6214
|
+
<${this.bibtemplateTag} ?large="${this.largeMobileHeadline}">
|
|
6194
6215
|
<auro-counter-wrapper isInDropdown>
|
|
6195
6216
|
</auro-counter-wrapper>
|
|
6196
6217
|
</${this.bibtemplateTag}>
|
|
6197
6218
|
</${this.dropdownTag}>
|
|
6198
|
-
<slot @slotchange=${() => this.configureDropdownCounters()}></slot
|
|
6219
|
+
<slot @slotchange=${() => this.configureDropdownCounters()}></slot>
|
|
6220
|
+
<div id="slotHolder">
|
|
6221
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
6222
|
+
<slot name="bib.fullscreen.footer" @slotchange="${this.handleSlotChange}"></slot>
|
|
6223
|
+
</div>
|
|
6224
|
+
`
|
|
6199
6225
|
: u$6`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
|
|
6200
6226
|
}`;
|
|
6201
6227
|
}
|
|
@@ -1616,7 +1616,7 @@ class AuroCounter extends r$9 {
|
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
|
|
1619
|
-
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}`;
|
|
1619
|
+
var styleCss$5 = i$g`:host{position:relative;display:block}[slot=trigger],::slotted([slot=valueText]){display:block;overflow:hidden;text-overflow:ellipsis}[auro-dropdown]{display:block}[auro-dropdown]::part(trigger){max-height:var(--ds-size-300, 1.5rem)}#slotHolder{display:none}`;
|
|
1620
1620
|
|
|
1621
1621
|
/**
|
|
1622
1622
|
* @license
|
|
@@ -5864,6 +5864,11 @@ class AuroCounterGroup extends r$9 {
|
|
|
5864
5864
|
*/
|
|
5865
5865
|
this.dropdown = undefined;
|
|
5866
5866
|
|
|
5867
|
+
/**
|
|
5868
|
+
* @private
|
|
5869
|
+
*/
|
|
5870
|
+
this.bibtemplate = undefined;
|
|
5871
|
+
|
|
5867
5872
|
/**
|
|
5868
5873
|
* @private
|
|
5869
5874
|
*/
|
|
@@ -6089,22 +6094,39 @@ class AuroCounterGroup extends r$9 {
|
|
|
6089
6094
|
* This sets up a close event listener and moves any slotted `bib.fullscreen.headline` and `bib.fullscreen.footer` content into the bibtemplate.
|
|
6090
6095
|
*/
|
|
6091
6096
|
configureBibtemplate() {
|
|
6092
|
-
|
|
6093
|
-
bibtemplate.addEventListener('close-click', () => {
|
|
6097
|
+
this.bibtemplate = this.dropdown.querySelector(this.bibtemplateTag._$litStatic$); // eslint-disable-line no-underscore-dangle
|
|
6098
|
+
this.bibtemplate.addEventListener('close-click', () => {
|
|
6094
6099
|
if (this.dropdown.isPopoverVisible) {
|
|
6095
6100
|
this.dropdown.hide();
|
|
6096
6101
|
}
|
|
6097
6102
|
});
|
|
6098
|
-
|
|
6099
|
-
|
|
6100
|
-
|
|
6101
|
-
|
|
6103
|
+
}
|
|
6104
|
+
|
|
6105
|
+
/**
|
|
6106
|
+
* Watch for slot changes and recalculate the menuoptions.
|
|
6107
|
+
* @private
|
|
6108
|
+
* @param {Event} event - `slotchange` event.
|
|
6109
|
+
* @returns {void}
|
|
6110
|
+
*/
|
|
6111
|
+
handleSlotChange(event) {
|
|
6112
|
+
let targetSlot = '';
|
|
6113
|
+
if (event.target.name === 'bib.fullscreen.headline') {
|
|
6114
|
+
targetSlot = 'header';
|
|
6115
|
+
} else if (event.target.name === 'bib.fullscreen.footer') {
|
|
6116
|
+
targetSlot = 'footer';
|
|
6102
6117
|
}
|
|
6118
|
+
if (targetSlot) {
|
|
6119
|
+
if (!this.dropdown) {
|
|
6120
|
+
this.configureDropdownCounters();
|
|
6121
|
+
}
|
|
6103
6122
|
|
|
6104
|
-
|
|
6105
|
-
|
|
6106
|
-
|
|
6107
|
-
|
|
6123
|
+
this.bibtemplate.querySelectorAll(`[slot="${targetSlot}"]`).forEach((old) => old.remove());
|
|
6124
|
+
|
|
6125
|
+
event.target.assignedNodes().forEach((node) => {
|
|
6126
|
+
const clone = node.cloneNode(true);
|
|
6127
|
+
clone.setAttribute('slot', targetSlot);
|
|
6128
|
+
this.bibtemplate.append(clone);
|
|
6129
|
+
});
|
|
6108
6130
|
}
|
|
6109
6131
|
}
|
|
6110
6132
|
|
|
@@ -6183,19 +6205,23 @@ class AuroCounterGroup extends r$9 {
|
|
|
6183
6205
|
return u$6`
|
|
6184
6206
|
${this.isDropdown
|
|
6185
6207
|
? u$6`<${this.dropdownTag} common chevron fullscreenBreakpoint="${this.fullscreenBreakpoint}">
|
|
6186
|
-
|
|
6187
6208
|
<div slot="trigger"><slot name="valueText">
|
|
6188
6209
|
${this.counters && Array.from(this.counters).map((counter, index) => `${counter.value} ${counter.defaultSlot}${index !== this.counters.length - 1 ? ', ' : ''}`)}
|
|
6189
6210
|
</slot></div>
|
|
6190
6211
|
<div slot="label"><slot name="label"></slot></div>
|
|
6191
6212
|
<div slot="helpText"><slot name="helpText"></slot></div>
|
|
6192
6213
|
|
|
6193
|
-
|
|
6214
|
+
<${this.bibtemplateTag} ?large="${this.largeMobileHeadline}">
|
|
6194
6215
|
<auro-counter-wrapper isInDropdown>
|
|
6195
6216
|
</auro-counter-wrapper>
|
|
6196
6217
|
</${this.bibtemplateTag}>
|
|
6197
6218
|
</${this.dropdownTag}>
|
|
6198
|
-
<slot @slotchange=${() => this.configureDropdownCounters()}></slot
|
|
6219
|
+
<slot @slotchange=${() => this.configureDropdownCounters()}></slot>
|
|
6220
|
+
<div id="slotHolder">
|
|
6221
|
+
<slot name="bib.fullscreen.headline" @slotchange="${this.handleSlotChange}"></slot>
|
|
6222
|
+
<slot name="bib.fullscreen.footer" @slotchange="${this.handleSlotChange}"></slot>
|
|
6223
|
+
</div>
|
|
6224
|
+
`
|
|
6199
6225
|
: u$6`<auro-counter-wrapper><slot @slotchange=${() => this.configureCounters()}></slot></auro-counter-wrapper>`
|
|
6200
6226
|
}`;
|
|
6201
6227
|
}
|
|
@@ -94,10 +94,10 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
94
94
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
95
95
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
96
96
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@6.0.0/dist/bundled/essentials.css" />
|
|
97
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.
|
|
98
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.
|
|
99
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.
|
|
100
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.
|
|
97
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.47/dist/auro-dropdown__bundled.js" type="module"></script>
|
|
98
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.47/dist/auro-input__bundled.js" type="module"></script>
|
|
99
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-popover@2.0.0-beta.47/dist/auro-popover__bundled.js" type="module"></script>
|
|
100
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-datepicker@2.0.0-beta.47/dist/auro-datepicker__bundled.js" type="module"></script>
|
|
101
101
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
102
102
|
|
|
103
103
|
## auro-datepicker use cases
|
|
@@ -97,7 +97,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
97
97
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
98
98
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
99
99
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
100
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.
|
|
100
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.47/dist/auro-dropdown__bundled.js" type="module"></script>
|
|
101
101
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
102
102
|
|
|
103
103
|
## auro-dropdown use cases
|
|
@@ -98,7 +98,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
98
98
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
99
99
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
100
100
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
101
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.
|
|
101
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-form@2.0.0-beta.47/dist/auro-form__bundled.js" type="module"></script>
|
|
102
102
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
103
103
|
|
|
104
104
|
## auro-form use cases
|
|
@@ -89,7 +89,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
89
89
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
90
90
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
91
91
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
92
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.
|
|
92
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-input@2.0.0-beta.47/dist/auro-input__bundled.js" type="module"></script>
|
|
93
93
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
94
94
|
|
|
95
95
|
## auro-input use cases
|
|
@@ -100,7 +100,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
100
100
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
101
101
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
102
102
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
103
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.
|
|
103
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.47/dist/auro-menu__bundled.js" type="module"></script>
|
|
104
104
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
105
105
|
|
|
106
106
|
## auro-menu use cases
|
|
@@ -90,7 +90,7 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
90
90
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
91
91
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
92
92
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
93
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-radio@2.0.0-beta.
|
|
93
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-radio@2.0.0-beta.47/dist/auro-radio__bundled.js" type="module"></script>
|
|
94
94
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
95
95
|
|
|
96
96
|
## auro-radio use cases
|
|
@@ -99,9 +99,9 @@ In cases where the project is not able to process JS assets, there are pre-proce
|
|
|
99
99
|
<!-- The below content is automatically added from ../../docs/templates/componentBundleUseModBrowsers.md -->
|
|
100
100
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/design-tokens@4.13.0/dist/tokens/CSSCustomProperties.css" />
|
|
101
101
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@aurodesignsystem/webcorestylesheets@5.1.2/dist/bundled/essentials.css" />
|
|
102
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.
|
|
103
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.
|
|
104
|
-
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.
|
|
102
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-dropdown@2.0.0-beta.47/dist/auro-dropdown__bundled.js" type="module"></script>
|
|
103
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-menu@2.0.0-beta.47/dist/auro-menu__bundled.js" type="module"></script>
|
|
104
|
+
<script src="https://cdn.jsdelivr.net/npm/@aurodesignsystem/auro-formkit/auro-select@2.0.0-beta.47/dist/auro-select__bundled.js" type="module"></script>
|
|
105
105
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
106
106
|
|
|
107
107
|
## auro-select use cases
|
package/package.json
CHANGED