@aurodesignsystem-dev/auro-formkit 0.0.0-pr1488.1 → 0.0.0-pr1489.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/bibtemplate/dist/auro-bibtemplate.d.ts +7 -0
- package/components/bibtemplate/dist/index.js +9 -1
- package/components/bibtemplate/dist/registered.js +9 -1
- package/components/checkbox/demo/customize.min.js +1 -1
- package/components/checkbox/demo/getting-started.min.js +1 -1
- package/components/checkbox/demo/index.min.js +1 -1
- package/components/checkbox/demo/pages.json +1 -1
- package/components/checkbox/demo/why-checkbox.html +57 -0
- package/components/checkbox/demo/why-checkbox.md +86 -0
- package/components/checkbox/dist/index.js +1 -1
- package/components/checkbox/dist/registered.js +1 -1
- package/components/combobox/demo/customize.min.js +234 -16
- package/components/combobox/demo/getting-started.min.js +234 -16
- package/components/combobox/demo/index.min.js +234 -16
- package/components/combobox/demo/pages.json +1 -1
- package/components/combobox/demo/why-combobox.html +57 -0
- package/components/combobox/demo/why-combobox.md +113 -0
- package/components/combobox/dist/index.js +234 -16
- package/components/combobox/dist/registered.js +234 -16
- package/components/counter/demo/customize.min.js +233 -15
- package/components/counter/demo/index.min.js +233 -15
- package/components/counter/demo/keyboard-behavior.md +1 -0
- package/components/counter/demo/pages.json +1 -1
- package/components/counter/demo/why-counter.html +57 -0
- package/components/counter/demo/why-counter.md +108 -0
- package/components/counter/dist/index.js +10 -2
- package/components/counter/dist/registered.js +10 -2
- package/components/datepicker/demo/accessibility.md +51 -3
- package/components/datepicker/demo/api.md +11 -2
- package/components/datepicker/demo/customize.html +2 -0
- package/components/datepicker/demo/customize.js +19 -0
- package/components/datepicker/demo/customize.md +72 -8
- package/components/datepicker/demo/customize.min.js +26029 -0
- package/components/datepicker/demo/design.md +3 -1
- package/components/datepicker/demo/index.js +5 -1
- package/components/datepicker/demo/index.md +83 -2
- package/components/datepicker/demo/index.min.js +1564 -96
- package/components/datepicker/demo/keyboard-behavior.md +201 -2
- package/components/datepicker/demo/pages.json +1 -1
- package/components/datepicker/demo/voiceover.md +19 -12
- package/components/datepicker/demo/why-datepicker.html +57 -0
- package/components/datepicker/demo/why-datepicker.md +133 -0
- package/components/datepicker/dist/index.js +1489 -97
- package/components/datepicker/dist/registered.js +1489 -97
- package/components/datepicker/dist/src/auro-calendar-cell.d.ts +66 -1
- package/components/datepicker/dist/src/auro-calendar-month.d.ts +28 -0
- package/components/datepicker/dist/src/auro-calendar.d.ts +100 -0
- package/components/datepicker/dist/src/auro-datepicker.d.ts +88 -0
- package/components/datepicker/dist/src/datepickerKeyboardStrategy.d.ts +5 -3
- package/components/dropdown/demo/accessibility.md +11 -0
- package/components/dropdown/demo/api.md +1 -0
- package/components/dropdown/demo/customize.md +3 -0
- package/components/dropdown/demo/customize.min.js +223 -13
- package/components/dropdown/demo/getting-started.min.js +223 -13
- package/components/dropdown/demo/index.min.js +223 -13
- package/components/dropdown/demo/keyboard-behavior.md +1 -0
- package/components/dropdown/demo/pages.json +1 -1
- package/components/dropdown/demo/why-dropdown.html +57 -0
- package/components/dropdown/demo/why-dropdown.md +97 -0
- package/components/dropdown/dist/auro-dropdown.d.ts +33 -1
- package/components/dropdown/dist/index.js +223 -13
- package/components/dropdown/dist/registered.js +223 -13
- package/components/form/demo/customize.min.js +2191 -145
- package/components/form/demo/getting-started.min.js +2191 -145
- package/components/form/demo/index.min.js +2191 -145
- package/components/form/demo/pages.json +1 -1
- package/components/form/demo/registerDemoDeps.min.js +2191 -145
- package/components/form/demo/why-form.html +57 -0
- package/components/form/demo/why-form.md +101 -0
- package/components/input/demo/customize.min.js +1 -1
- package/components/input/demo/getting-started.min.js +1 -1
- package/components/input/demo/index.min.js +1 -1
- package/components/input/demo/pages.json +1 -1
- package/components/input/demo/why-input.html +57 -0
- package/components/input/demo/why-input.md +121 -0
- package/components/input/dist/index.js +1 -1
- package/components/input/dist/registered.js +1 -1
- package/components/menu/demo/pages.json +1 -1
- package/components/menu/demo/why-menu.html +57 -0
- package/components/menu/demo/why-menu.md +104 -0
- package/components/radio/demo/customize.min.js +2186 -0
- package/components/radio/demo/demo-support.min.js +55807 -0
- package/components/radio/demo/getting-started.js +1 -1
- package/components/radio/demo/getting-started.md +1 -1
- package/components/radio/demo/getting-started.min.js +2205 -0
- package/components/radio/demo/index.min.js +1 -1
- package/components/radio/demo/pages.json +1 -1
- package/components/radio/demo/why-radio.html +57 -0
- package/components/radio/demo/why-radio.md +92 -0
- package/components/radio/dist/index.js +1 -1
- package/components/radio/dist/registered.js +1 -1
- package/components/select/demo/customize.min.js +233 -15
- package/components/select/demo/getting-started.min.js +233 -15
- package/components/select/demo/index.min.js +233 -15
- package/components/select/demo/keyboard-behavior.md +1 -0
- package/components/select/demo/pages.json +1 -1
- package/components/select/demo/why-select.html +57 -0
- package/components/select/demo/why-select.md +128 -0
- package/components/select/dist/index.js +233 -15
- package/components/select/dist/registered.js +233 -15
- package/custom-elements.json +2177 -1460
- package/package.json +2 -2
|
@@ -4637,7 +4637,7 @@ function applyKeyboardStrategy(component, strategy, options = {}) {
|
|
|
4637
4637
|
});
|
|
4638
4638
|
}
|
|
4639
4639
|
|
|
4640
|
-
var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host dialog{width:auto;max-width:none;height:auto;max-height:none;padding:0;border:none;margin:0;outline:none;transform:translateZ(0)}:host dialog::backdrop{background:transparent}:host(:not([isfullscreen])) dialog{position:relative;inset:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([isfullscreen]) .container::backdrop{background:var(--ds-color-background-primary, #fff)}:host(:popover-open){position:fixed;overflow:visible;padding:0;border:none;margin:0;background:transparent;inset:unset;outline:none}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}.util_displayHiddenVisually{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip-path:inset(50%);white-space:nowrap}`;
|
|
4640
|
+
var styleCss$2$1 = css`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}:host dialog{width:auto;max-width:none;height:auto;max-height:none;padding:0;border:none;margin:0;outline:none;transform:translateZ(0)}:host dialog::backdrop{background:transparent}:host(:not([isfullscreen])) dialog{position:relative;inset:unset}:host(:not([isfullscreen])) .container.shape-box{border-radius:unset}:host(:not([isfullscreen])) .container[class*=shape-pill],:host(:not([isfullscreen])) .container[class*=shape-snowflake]{border-radius:30px}:host(:not([isfullscreen])) .container[class*=shape-rounded]{border-radius:16px}:host([desktopmodal]:popover-open)::backdrop{background:transparent}:host(:not([matchWidth])) .container{min-width:fit-content}:host([isfullscreen]){position:fixed;top:0;left:0}:host([isfullscreen]) .container{width:100dvw;max-width:none;height:100dvh;max-height:none;border-radius:unset;margin-top:0;box-shadow:unset;overscroll-behavior:contain}:host([isfullscreen]) .container::backdrop{background:var(--ds-color-background-primary, #fff)}:host(:popover-open){position:fixed;overflow:visible;padding:0;border:none;margin:0;background:transparent;inset:unset;outline:none}:host([data-show]){display:flex}:host([common]:not([isfullscreen])) .container,:host([rounded]:not([isfullscreen])) .container{border-radius:var(--ds-border-radius, 0.375rem)}:host([common][isfullscreen]) .container,:host([rounded][isfullscreen]) .container{border-radius:unset;box-shadow:unset}.container{display:inline-block;overflow:auto;box-sizing:border-box;border-radius:var(--ds-border-radius, 0.375rem);margin:var(--ds-size-50, 0.25rem) 0}.util_displayHiddenVisually{position:absolute;overflow:hidden;width:1px;height:1px;padding:0;border:0;margin:-1px;clip-path:inset(50%);white-space:nowrap}`;
|
|
4641
4641
|
|
|
4642
4642
|
var colorCss$2 = css`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
4643
4643
|
|
|
@@ -5268,7 +5268,7 @@ let AuroHelpText$1 = class AuroHelpText extends LitElement {
|
|
|
5268
5268
|
}
|
|
5269
5269
|
};
|
|
5270
5270
|
|
|
5271
|
-
var formkitVersion$1 = '
|
|
5271
|
+
var formkitVersion$1 = '202606011856';
|
|
5272
5272
|
|
|
5273
5273
|
class AuroElement extends LitElement {
|
|
5274
5274
|
static get properties() {
|
|
@@ -5448,6 +5448,7 @@ class AuroDropdown extends AuroElement {
|
|
|
5448
5448
|
_intializeDefaults() {
|
|
5449
5449
|
this.appearance = 'default';
|
|
5450
5450
|
this.chevron = false;
|
|
5451
|
+
this.desktopModal = false;
|
|
5451
5452
|
this.disabled = false;
|
|
5452
5453
|
this.disableKeyboardHandling = false;
|
|
5453
5454
|
this.error = false;
|
|
@@ -5628,6 +5629,14 @@ class AuroDropdown extends AuroElement {
|
|
|
5628
5629
|
reflect: true
|
|
5629
5630
|
},
|
|
5630
5631
|
|
|
5632
|
+
/**
|
|
5633
|
+
* If declared, the dropdown will behave as a modal dialog when in a desktop viewport size.
|
|
5634
|
+
*/
|
|
5635
|
+
desktopModal: {
|
|
5636
|
+
type: Boolean,
|
|
5637
|
+
reflect: true
|
|
5638
|
+
},
|
|
5639
|
+
|
|
5631
5640
|
/**
|
|
5632
5641
|
* If declared, the dropdown will only show by calling the API .show() public method.
|
|
5633
5642
|
*/
|
|
@@ -5915,6 +5924,15 @@ class AuroDropdown extends AuroElement {
|
|
|
5915
5924
|
|
|
5916
5925
|
disconnectedCallback() {
|
|
5917
5926
|
super.disconnectedCallback();
|
|
5927
|
+
this._clearPageInert();
|
|
5928
|
+
if (this._bibTabHandler) {
|
|
5929
|
+
this.removeEventListener('keydown', this._bibTabHandler);
|
|
5930
|
+
this._bibTabHandler = undefined;
|
|
5931
|
+
}
|
|
5932
|
+
if (this.focusTrap) {
|
|
5933
|
+
this.focusTrap.disconnect();
|
|
5934
|
+
this.focusTrap = undefined;
|
|
5935
|
+
}
|
|
5918
5936
|
if (this.floater) {
|
|
5919
5937
|
this.floater.hideBib('disconnect');
|
|
5920
5938
|
this.floater.disconnect();
|
|
@@ -5942,19 +5960,45 @@ class AuroDropdown extends AuroElement {
|
|
|
5942
5960
|
if (this.isPopoverVisible) {
|
|
5943
5961
|
// Fullscreen: use showModal() for native accessibility (inert outside, focus trap)
|
|
5944
5962
|
// Desktop: use show() for Floating UI positioning + FocusTrap for focus management
|
|
5945
|
-
|
|
5946
|
-
this.
|
|
5963
|
+
this.bibElement.value.open(this.isBibFullscreen);
|
|
5964
|
+
this.updateFocusTrap();
|
|
5965
|
+
|
|
5966
|
+
// Desktop modal: make siblings inert so content outside is not interactive
|
|
5967
|
+
if (this.desktopModal && !this.isBibFullscreen) {
|
|
5968
|
+
this._setPageInert();
|
|
5969
|
+
}
|
|
5947
5970
|
} else {
|
|
5948
5971
|
this.bibElement.value.close();
|
|
5972
|
+
this._clearPageInert();
|
|
5949
5973
|
}
|
|
5950
5974
|
}
|
|
5951
5975
|
|
|
5952
5976
|
// When fullscreen strategy changes while open, re-open dialog with correct mode
|
|
5953
5977
|
// (e.g. resizing from desktop → mobile while dropdown is open)
|
|
5954
5978
|
if (changedProperties.has('isBibFullscreen') && this.isPopoverVisible && this.bibElement.value) {
|
|
5955
|
-
const useModal = this.isBibFullscreen;
|
|
5956
5979
|
this.bibElement.value.close();
|
|
5957
|
-
this.bibElement.value.open(
|
|
5980
|
+
this.bibElement.value.open(this.isBibFullscreen);
|
|
5981
|
+
|
|
5982
|
+
// Re-initialize focus management for the new strategy
|
|
5983
|
+
this.updateFocusTrap();
|
|
5984
|
+
|
|
5985
|
+
// Toggle inert: desktop modal needs it, fullscreen showModal() handles it natively
|
|
5986
|
+
if (this.desktopModal && !this.isBibFullscreen) {
|
|
5987
|
+
this._setPageInert();
|
|
5988
|
+
} else {
|
|
5989
|
+
this._clearPageInert();
|
|
5990
|
+
}
|
|
5991
|
+
}
|
|
5992
|
+
|
|
5993
|
+
// Handle desktopModal toggled while the dropdown is already open.
|
|
5994
|
+
// Re-initialize focus trapping and page inert state to match the new mode.
|
|
5995
|
+
if (changedProperties.has('desktopModal') && this.isPopoverVisible && !this.isBibFullscreen) {
|
|
5996
|
+
this.updateFocusTrap();
|
|
5997
|
+
if (this.desktopModal) {
|
|
5998
|
+
this._setPageInert();
|
|
5999
|
+
} else {
|
|
6000
|
+
this._clearPageInert();
|
|
6001
|
+
}
|
|
5958
6002
|
}
|
|
5959
6003
|
}
|
|
5960
6004
|
|
|
@@ -5964,8 +6008,14 @@ class AuroDropdown extends AuroElement {
|
|
|
5964
6008
|
* @param {CustomEvent} event - The custom event that contains the dropdown toggle information.
|
|
5965
6009
|
*/
|
|
5966
6010
|
handleDropdownToggle(event) {
|
|
5967
|
-
this.updateFocusTrap();
|
|
5968
6011
|
this.isPopoverVisible = event.detail.expanded;
|
|
6012
|
+
|
|
6013
|
+
// Tear down FocusTrap when closing. Creation happens in updated()
|
|
6014
|
+
// after the dialog is open so getFocusableElements can find content.
|
|
6015
|
+
if (!this.isPopoverVisible) {
|
|
6016
|
+
this.updateFocusTrap();
|
|
6017
|
+
}
|
|
6018
|
+
|
|
5969
6019
|
const eventType = event.detail.eventType || "unknown";
|
|
5970
6020
|
if (!this.isPopoverVisible && this.hasFocus && eventType === "keydown") {
|
|
5971
6021
|
this.trigger.focus();
|
|
@@ -6064,19 +6114,178 @@ class AuroDropdown extends AuroElement {
|
|
|
6064
6114
|
* @private
|
|
6065
6115
|
*/
|
|
6066
6116
|
updateFocusTrap() {
|
|
6117
|
+
// Always clean up existing handlers/traps before setting up new ones
|
|
6118
|
+
// to prevent duplicate listeners on repeated calls.
|
|
6119
|
+
if (this._bibTabHandler) {
|
|
6120
|
+
this.removeEventListener('keydown', this._bibTabHandler);
|
|
6121
|
+
this._bibTabHandler = undefined;
|
|
6122
|
+
}
|
|
6123
|
+
|
|
6124
|
+
if (this.focusTrap) {
|
|
6125
|
+
this.focusTrap.disconnect();
|
|
6126
|
+
this.focusTrap = undefined;
|
|
6127
|
+
}
|
|
6128
|
+
|
|
6067
6129
|
if (this.isPopoverVisible) {
|
|
6068
6130
|
if (!this.isBibFullscreen) {
|
|
6069
|
-
|
|
6070
|
-
|
|
6071
|
-
|
|
6131
|
+
if (this.desktopModal) {
|
|
6132
|
+
// Desktop modal: trap focus only within the bib content.
|
|
6133
|
+
// Can't use FocusTrap on the bib element because keydown events
|
|
6134
|
+
// from slotted content bubble through the dropdown host (light DOM),
|
|
6135
|
+
// not through the bib (shadow projection target). Using FocusTrap
|
|
6136
|
+
// on the dropdown would include the trigger in the tab cycle.
|
|
6137
|
+
// Instead, listen for Tab on the dropdown and manually wrap focus
|
|
6138
|
+
// within the bib's focusable elements.
|
|
6139
|
+
this._bibTabHandler = (event) => {
|
|
6140
|
+
if (event.key !== 'Tab') {
|
|
6141
|
+
return;
|
|
6142
|
+
}
|
|
6143
|
+
|
|
6144
|
+
// Collect focusable elements from the bib content.
|
|
6145
|
+
const focusables = getFocusableElements(this.bibContent);
|
|
6146
|
+
|
|
6147
|
+
// Fallback: try from slotted content directly
|
|
6148
|
+
if (!focusables.length) {
|
|
6149
|
+
const slot = this.shadowRoot.querySelector('.slotContent slot');
|
|
6150
|
+
const assignedNodes = slot ? slot.assignedNodes({ flatten: true }) : [];
|
|
6151
|
+
|
|
6152
|
+
for (const node of assignedNodes) {
|
|
6153
|
+
if (node.nodeType === Node.ELEMENT_NODE) {
|
|
6154
|
+
focusables.push(...getFocusableElements(node));
|
|
6155
|
+
}
|
|
6156
|
+
}
|
|
6157
|
+
}
|
|
6158
|
+
|
|
6159
|
+
if (!focusables.length) {
|
|
6160
|
+
return;
|
|
6161
|
+
}
|
|
6162
|
+
|
|
6163
|
+
event.preventDefault();
|
|
6164
|
+
|
|
6165
|
+
const direction = event.shiftKey ? -1 : 1; // eslint-disable-line no-magic-numbers
|
|
6166
|
+
|
|
6167
|
+
// Walk the active element chain through shadow roots
|
|
6168
|
+
const actives = this._getActiveElements();
|
|
6169
|
+
|
|
6170
|
+
let idx = focusables.findIndex((el) => actives.includes(el));
|
|
6171
|
+
|
|
6172
|
+
if (idx === -1) { // eslint-disable-line no-magic-numbers
|
|
6173
|
+
// Focus is not on a known element — move to first/last
|
|
6174
|
+
idx = direction === 1 ? -1 : focusables.length; // eslint-disable-line no-magic-numbers
|
|
6175
|
+
}
|
|
6176
|
+
|
|
6177
|
+
// Try each element in order, skipping any that can't receive focus
|
|
6178
|
+
// (e.g. hidden elements, elements in collapsed sections)
|
|
6179
|
+
for (let index = 0; index < focusables.length; index++) { // eslint-disable-line no-plusplus
|
|
6180
|
+
let nextIdx = idx + direction;
|
|
6181
|
+
|
|
6182
|
+
// Wrap around
|
|
6183
|
+
if (nextIdx < 0) {
|
|
6184
|
+
nextIdx = focusables.length - 1;
|
|
6185
|
+
} else if (nextIdx >= focusables.length) {
|
|
6186
|
+
nextIdx = 0;
|
|
6187
|
+
}
|
|
6188
|
+
|
|
6189
|
+
focusables[nextIdx].focus();
|
|
6190
|
+
|
|
6191
|
+
// Verify focus actually moved to the target
|
|
6192
|
+
const newActives = this._getActiveElements();
|
|
6193
|
+
|
|
6194
|
+
if (newActives.includes(focusables[nextIdx])) {
|
|
6195
|
+
return;
|
|
6196
|
+
}
|
|
6197
|
+
|
|
6198
|
+
// Focus didn't stick — skip this element and try the next
|
|
6199
|
+
idx = nextIdx;
|
|
6200
|
+
}
|
|
6201
|
+
};
|
|
6202
|
+
this.addEventListener('keydown', this._bibTabHandler);
|
|
6203
|
+
|
|
6204
|
+
// Move initial focus into the bib content, matching FocusTrap behavior
|
|
6205
|
+
requestAnimationFrame(() => {
|
|
6206
|
+
const focusables = getFocusableElements(this.bibContent);
|
|
6207
|
+
if (focusables.length) {
|
|
6208
|
+
focusables[0].focus();
|
|
6209
|
+
}
|
|
6210
|
+
});
|
|
6211
|
+
} else {
|
|
6212
|
+
// Normal desktop: use FocusTrap on the bib element
|
|
6213
|
+
this.focusTrap = new FocusTrap(this.bibContent);
|
|
6214
|
+
this.focusTrap.focusFirstElement();
|
|
6215
|
+
}
|
|
6072
6216
|
}
|
|
6073
6217
|
// Fullscreen: showModal() provides native focus trapping
|
|
6218
|
+
}
|
|
6219
|
+
}
|
|
6220
|
+
|
|
6221
|
+
/**
|
|
6222
|
+
* Returns the chain of active (focused) elements through shadow roots.
|
|
6223
|
+
* @private
|
|
6224
|
+
* @returns {Array<HTMLElement>}
|
|
6225
|
+
*/
|
|
6226
|
+
_getActiveElements() {
|
|
6227
|
+
let { activeElement } = document;
|
|
6228
|
+
const actives = [activeElement];
|
|
6229
|
+
|
|
6230
|
+
while (activeElement?.shadowRoot?.activeElement) {
|
|
6231
|
+
activeElement = activeElement.shadowRoot.activeElement;
|
|
6232
|
+
actives.push(activeElement);
|
|
6233
|
+
}
|
|
6234
|
+
|
|
6235
|
+
return actives;
|
|
6236
|
+
}
|
|
6237
|
+
|
|
6238
|
+
/**
|
|
6239
|
+
* Sets `inert` on sibling elements of the dropdown's top-level host
|
|
6240
|
+
* so that content outside the dropdown is not interactive while the modal is open.
|
|
6241
|
+
* Walks up through shadow DOM boundaries to find the outermost host element
|
|
6242
|
+
* in the light DOM, then sets `inert` on siblings at each ancestor level
|
|
6243
|
+
* to ensure all page content outside the host subtree is inert.
|
|
6244
|
+
* @private
|
|
6245
|
+
*/
|
|
6246
|
+
_setPageInert() {
|
|
6247
|
+
if (this._inertSiblings) {
|
|
6074
6248
|
return;
|
|
6075
6249
|
}
|
|
6076
6250
|
|
|
6077
|
-
|
|
6078
|
-
|
|
6079
|
-
|
|
6251
|
+
this._inertSiblings = [];
|
|
6252
|
+
|
|
6253
|
+
// Walk up through shadow DOM boundaries to find the topmost host
|
|
6254
|
+
// element in the light DOM. For example, if this dropdown is inside
|
|
6255
|
+
// auro-datepicker's shadow DOM, we walk up to the datepicker element
|
|
6256
|
+
// so we set inert on its siblings — not on the datepicker itself.
|
|
6257
|
+
let host = this;
|
|
6258
|
+
while (host.getRootNode() instanceof ShadowRoot) {
|
|
6259
|
+
host = host.getRootNode().host;
|
|
6260
|
+
}
|
|
6261
|
+
|
|
6262
|
+
// Walk up the ancestor chain, inerting siblings at each level
|
|
6263
|
+
// to ensure the entire page outside the host subtree is inert.
|
|
6264
|
+
let current = host;
|
|
6265
|
+
while (current.parentElement) {
|
|
6266
|
+
const parent = current.parentElement;
|
|
6267
|
+
for (const sibling of parent.children) {
|
|
6268
|
+
if (sibling !== current) {
|
|
6269
|
+
this._inertSiblings.push({ element: sibling, wasInert: sibling.inert });
|
|
6270
|
+
sibling.inert = true;
|
|
6271
|
+
}
|
|
6272
|
+
}
|
|
6273
|
+
current = parent;
|
|
6274
|
+
}
|
|
6275
|
+
}
|
|
6276
|
+
|
|
6277
|
+
/**
|
|
6278
|
+
* Restores `inert` state on siblings that were tracked by `_setPageInert`.
|
|
6279
|
+
* Preserves the previous inert state so externally-inerted elements are
|
|
6280
|
+
* not inadvertently re-enabled.
|
|
6281
|
+
* @private
|
|
6282
|
+
*/
|
|
6283
|
+
_clearPageInert() {
|
|
6284
|
+
if (this._inertSiblings) {
|
|
6285
|
+
for (const entry of this._inertSiblings) {
|
|
6286
|
+
entry.element.inert = entry.wasInert;
|
|
6287
|
+
}
|
|
6288
|
+
this._inertSiblings = undefined;
|
|
6080
6289
|
}
|
|
6081
6290
|
}
|
|
6082
6291
|
|
|
@@ -6315,6 +6524,7 @@ class AuroDropdown extends AuroElement {
|
|
|
6315
6524
|
shape="${this.shape}"
|
|
6316
6525
|
?data-show="${this.isPopoverVisible}"
|
|
6317
6526
|
?isfullscreen="${this.isBibFullscreen}"
|
|
6527
|
+
?desktopmodal="${this.desktopModal}"
|
|
6318
6528
|
.dialogLabel="${this.bibDialogLabel}"
|
|
6319
6529
|
${ref(this.bibElement)}
|
|
6320
6530
|
>
|
|
@@ -6682,6 +6892,14 @@ class AuroBibtemplate extends LitElement {
|
|
|
6682
6892
|
large: {
|
|
6683
6893
|
type: Boolean,
|
|
6684
6894
|
reflect: true
|
|
6895
|
+
},
|
|
6896
|
+
|
|
6897
|
+
/**
|
|
6898
|
+
* If declared, the footer slot will be rendered even when not in fullscreen mode.
|
|
6899
|
+
*/
|
|
6900
|
+
showFooter: {
|
|
6901
|
+
type: Boolean,
|
|
6902
|
+
reflect: true
|
|
6685
6903
|
}
|
|
6686
6904
|
};
|
|
6687
6905
|
}
|
|
@@ -6784,7 +7002,7 @@ class AuroBibtemplate extends LitElement {
|
|
|
6784
7002
|
<slot></slot>
|
|
6785
7003
|
</div>
|
|
6786
7004
|
|
|
6787
|
-
${this.isFullscreen ? html`
|
|
7005
|
+
${this.isFullscreen || this.showFooter ? html`
|
|
6788
7006
|
<div id="footerContainer">
|
|
6789
7007
|
<slot name="footer"></slot>
|
|
6790
7008
|
</div>` : null}
|
|
@@ -7021,7 +7239,7 @@ class AuroHelpText extends LitElement {
|
|
|
7021
7239
|
}
|
|
7022
7240
|
}
|
|
7023
7241
|
|
|
7024
|
-
var formkitVersion = '
|
|
7242
|
+
var formkitVersion = '202606011856';
|
|
7025
7243
|
|
|
7026
7244
|
var styleCss = css`.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}.body-default{font-size:var(--wcss-body-default-font-size, 1rem);font-weight:var(--wcss-body-default-weight, );line-height:var(--wcss-body-default-line-height, 1.5rem)}.body-default,.body-default-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-default-emphasized{font-size:var(--wcss-body-default-emphasized-font-size, 1rem);font-weight:var(--wcss-body-default-emphasized-weight, );line-height:var(--wcss-body-default-emphasized-line-height, 1.5rem)}.body-lg{font-size:var(--wcss-body-lg-font-size, 1.125rem);font-weight:var(--wcss-body-lg-weight, );line-height:var(--wcss-body-lg-line-height, 1.625rem)}.body-lg,.body-lg-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-lg-emphasized{font-size:var(--wcss-body-lg-emphasized-font-size, 1.125rem);font-weight:var(--wcss-body-lg-emphasized-weight, );line-height:var(--wcss-body-lg-emphasized-line-height, 1.625rem)}.body-sm{font-size:var(--wcss-body-sm-font-size, 0.875rem);font-weight:var(--wcss-body-sm-weight, );line-height:var(--wcss-body-sm-line-height, 1.25rem)}.body-sm,.body-sm-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-sm-emphasized{font-size:var(--wcss-body-sm-emphasized-font-size, 0.875rem);font-weight:var(--wcss-body-sm-emphasized-weight, );line-height:var(--wcss-body-sm-emphasized-line-height, 1.25rem)}.body-xs{font-size:var(--wcss-body-xs-font-size, 0.75rem);font-weight:var(--wcss-body-xs-weight, );line-height:var(--wcss-body-xs-line-height, 1rem)}.body-xs,.body-xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-xs-emphasized{font-size:var(--wcss-body-xs-emphasized-font-size, 0.75rem);font-weight:var(--wcss-body-xs-emphasized-weight, );line-height:var(--wcss-body-xs-emphasized-line-height, 1rem)}.body-2xs{font-size:var(--wcss-body-2xs-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-weight, );line-height:var(--wcss-body-2xs-line-height, 0.875rem)}.body-2xs,.body-2xs-emphasized{font-family:var(--wcss-body-family, "AS Circular"),system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;letter-spacing:var(--wcss-body-letter-spacing, 0)}.body-2xs-emphasized{font-size:var(--wcss-body-2xs-emphasized-font-size, 0.625rem);font-weight:var(--wcss-body-2xs-emphasized-weight, );line-height:var(--wcss-body-2xs-emphasized-line-height, 0.875rem)}.display-2xl{font-family:var(--wcss-display-2xl-family, "AS Circular"),var(--wcss-display-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-2xl-font-size, clamp(3.5rem, 6vw, 5.375rem));font-weight:var(--wcss-display-2xl-weight, 300);letter-spacing:var(--wcss-display-2xl-letter-spacing, 0);line-height:var(--wcss-display-2xl-line-height, 1.3)}.display-xl{font-family:var(--wcss-display-xl-family, "AS Circular"),var(--wcss-display-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xl-font-size, clamp(3rem, 5.3333333333vw, 4.5rem));font-weight:var(--wcss-display-xl-weight, 300);letter-spacing:var(--wcss-display-xl-letter-spacing, 0);line-height:var(--wcss-display-xl-line-height, 1.3)}.display-lg{font-family:var(--wcss-display-lg-family, "AS Circular"),var(--wcss-display-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-lg-font-size, clamp(2.75rem, 4.6666666667vw, 4rem));font-weight:var(--wcss-display-lg-weight, 300);letter-spacing:var(--wcss-display-lg-letter-spacing, 0);line-height:var(--wcss-display-lg-line-height, 1.3)}.display-md{font-family:var(--wcss-display-md-family, "AS Circular"),var(--wcss-display-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-md-font-size, clamp(2.5rem, 4vw, 3.5rem));font-weight:var(--wcss-display-md-weight, 300);letter-spacing:var(--wcss-display-md-letter-spacing, 0);line-height:var(--wcss-display-md-line-height, 1.3)}.display-sm{font-family:var(--wcss-display-sm-family, "AS Circular"),var(--wcss-display-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-sm-font-size, clamp(2rem, 3.6666666667vw, 3rem));font-weight:var(--wcss-display-sm-weight, 300);letter-spacing:var(--wcss-display-sm-letter-spacing, 0);line-height:var(--wcss-display-sm-line-height, 1.3)}.display-xs{font-family:var(--wcss-display-xs-family, "AS Circular"),var(--wcss-display-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-display-xs-font-size, clamp(1.75rem, 3vw, 2.375rem));font-weight:var(--wcss-display-xs-weight, 300);letter-spacing:var(--wcss-display-xs-letter-spacing, 0);line-height:var(--wcss-display-xs-line-height, 1.3)}.heading-xl{font-family:var(--wcss-heading-xl-family, "AS Circular"),var(--wcss-heading-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xl-font-size, clamp(2rem, 3vw, 2.5rem));font-weight:var(--wcss-heading-xl-weight, 300);letter-spacing:var(--wcss-heading-xl-letter-spacing, 0);line-height:var(--wcss-heading-xl-line-height, 1.3)}.heading-lg{font-family:var(--wcss-heading-lg-family, "AS Circular"),var(--wcss-heading-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-lg-font-size, clamp(1.75rem, 2.6666666667vw, 2.25rem));font-weight:var(--wcss-heading-lg-weight, 300);letter-spacing:var(--wcss-heading-lg-letter-spacing, 0);line-height:var(--wcss-heading-lg-line-height, 1.3)}.heading-md{font-family:var(--wcss-heading-md-family, "AS Circular"),var(--wcss-heading-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-md-font-size, clamp(1.625rem, 2.3333333333vw, 1.75rem));font-weight:var(--wcss-heading-md-weight, 300);letter-spacing:var(--wcss-heading-md-letter-spacing, 0);line-height:var(--wcss-heading-md-line-height, 1.3)}.heading-sm{font-family:var(--wcss-heading-sm-family, "AS Circular"),var(--wcss-heading-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-sm-font-size, clamp(1.375rem, 2vw, 1.5rem));font-weight:var(--wcss-heading-sm-weight, 300);letter-spacing:var(--wcss-heading-sm-letter-spacing, 0);line-height:var(--wcss-heading-sm-line-height, 1.3)}.heading-xs{font-family:var(--wcss-heading-xs-family, "AS Circular"),var(--wcss-heading-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-xs-font-size, clamp(1.25rem, 1.6666666667vw, 1.25rem));font-weight:var(--wcss-heading-xs-weight, 300);letter-spacing:var(--wcss-heading-xs-letter-spacing, 0);line-height:var(--wcss-heading-xs-line-height, 1.3)}.heading-2xs{font-family:var(--wcss-heading-2xs-family, "AS Circular"),var(--wcss-heading-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-heading-2xs-font-size, clamp(1.125rem, 1.5vw, 1.125rem));font-weight:var(--wcss-heading-2xs-weight, 300);letter-spacing:var(--wcss-heading-2xs-letter-spacing, 0);line-height:var(--wcss-heading-2xs-line-height, 1.3)}.accent-2xl{font-family:var(--wcss-accent-2xl-family, "Good OT"),var(--wcss-accent-2xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xl-font-size, clamp(2rem, 3.1666666667vw, 2.375rem));font-weight:var(--wcss-accent-2xl-weight, 450);letter-spacing:var(--wcss-accent-2xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-2xl-line-height, 1)}.accent-2xl,.accent-xl{text-transform:uppercase}.accent-xl{font-family:var(--wcss-accent-xl-family, "Good OT"),var(--wcss-accent-xl-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xl-font-size, clamp(1.625rem, 2.3333333333vw, 2rem));font-weight:var(--wcss-accent-xl-weight, 450);letter-spacing:var(--wcss-accent-xl-letter-spacing, 0.05em);line-height:var(--wcss-accent-xl-line-height, 1.3)}.accent-lg{font-family:var(--wcss-accent-lg-family, "Good OT"),var(--wcss-accent-lg-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-lg-font-size, clamp(1.5rem, 2.1666666667vw, 1.75rem));font-weight:var(--wcss-accent-lg-weight, 450);letter-spacing:var(--wcss-accent-lg-letter-spacing, 0.05em);line-height:var(--wcss-accent-lg-line-height, 1.3)}.accent-lg,.accent-md{text-transform:uppercase}.accent-md{font-family:var(--wcss-accent-md-family, "Good OT"),var(--wcss-accent-md-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-md-font-size, clamp(1.375rem, 1.8333333333vw, 1.5rem));font-weight:var(--wcss-accent-md-weight, 500);letter-spacing:var(--wcss-accent-md-letter-spacing, 0.05em);line-height:var(--wcss-accent-md-line-height, 1.3)}.accent-sm{font-family:var(--wcss-accent-sm-family, "Good OT"),var(--wcss-accent-sm-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-sm-font-size, clamp(1.125rem, 1.5vw, 1.25rem));font-weight:var(--wcss-accent-sm-weight, 500);letter-spacing:var(--wcss-accent-sm-letter-spacing, 0.05em);line-height:var(--wcss-accent-sm-line-height, 1.3)}.accent-sm,.accent-xs{text-transform:uppercase}.accent-xs{font-family:var(--wcss-accent-xs-family, "Good OT"),var(--wcss-accent-xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-xs-font-size, clamp(1rem, 1.3333333333vw, 1rem));font-weight:var(--wcss-accent-xs-weight, 500);letter-spacing:var(--wcss-accent-xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-xs-line-height, 1.3)}.accent-2xs{font-family:var(--wcss-accent-2xs-family, "Good OT"),var(--wcss-accent-2xs-family-fallback, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);font-size:var(--wcss-accent-2xs-font-size, clamp(0.875rem, 1.1666666667vw, 0.875rem));font-weight:var(--wcss-accent-2xs-weight, 450);letter-spacing:var(--wcss-accent-2xs-letter-spacing, 0.1em);line-height:var(--wcss-accent-2xs-line-height, 1.3);text-transform:uppercase}[auro-dropdown]{--ds-auro-dropdown-trigger-border-color: var(--ds-auro-select-border-color);--ds-auro-dropdown-trigger-background-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-container-color: var(--ds-auro-select-background-color);--ds-auro-dropdown-trigger-outline-color: var(--ds-auro-select-outline-color)}:host{display:inline-block;text-align:left;vertical-align:top}:host([layout*=emphasized]) [auro-dropdown],:host([layout*=snowflake]) [auro-dropdown]{--ds-auro-select-border-color: transparent}:host([layout*=emphasized]) .mainContent,:host([layout*=snowflake]) .mainContent{text-align:center}.mainContent{position:relative;display:flex;overflow:hidden;flex:1;flex-direction:column;align-items:center;justify-content:center}.valueContainer [slot=displayValue]{display:none}.accents{display:flex;flex-direction:row;align-items:center;justify-content:center}::slotted([slot=typeIcon]){margin-right:var(--ds-size-100, 0.5rem)}.displayValue{display:block}.displayValue:not(.force){display:none}.displayValue:not(.force).hasContent:is(.withValue):not(.hasFocus){display:block}.triggerContent{display:flex;width:100%;align-items:center;justify-content:center}:host([layout*=emphasized]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-300, 1.5rem)}:host([layout*=snowflake]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem) 0 var(--ds-size-200, 1rem)}:host([layout*=snowflake]) label{padding-block:var(--ds-size-25, 0.125rem)}:host([layout*=classic]) .triggerContent{padding:0 var(--ds-size-100, 0.5rem)}:host([layout*=classic]) .mainContent{align-items:start}:host([layout*=classic]) label{overflow:hidden;cursor:text;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) .value{height:auto}label{color:var(--ds-auro-select-label-text-color)}:host(:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-select-outline-color: var(--ds-basic-color-status-error, #e31f26);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-default, #2a2a2a)}:host([ondark]:is([validity]:not([validity=valid]))) [auro-dropdown],:host([appearance=inverse]:is([validity]:not([validity=valid]))) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-select-outline-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8);--ds-auro-dropdown-helptext-text-color: var(--ds-basic-color-texticon-inverse, #ffffff)}#slotHolder{display:none}:host([fluid]){width:100%}:host([disabled]){pointer-events:none;user-select:none}:host([disabled]:not([ondark])) [auro-dropdown],:host([disabled]:not([appearance=inverse])) [auro-dropdown]{--ds-auro-select-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([layout*=classic])[disabled][ondark]) [auro-dropdown],:host(:not([layout*=classic])[disabled][appearance=inverse]) [auro-dropdown]{--ds-auro-select-border-color: transparent}`;
|
|
7027
7245
|
|