@aurodesignsystem-dev/auro-formkit 0.0.0-pr624.5 → 0.0.0-pr624.7
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 +1 -0
- package/components/bibtemplate/dist/index.js +88 -6
- package/components/bibtemplate/dist/registered.js +88 -6
- package/components/checkbox/demo/api.min.js +4 -3
- package/components/checkbox/demo/index.min.js +4 -3
- package/components/checkbox/dist/index.js +4 -3
- package/components/checkbox/dist/registered.js +4 -3
- package/components/combobox/demo/api.min.js +514 -172
- package/components/combobox/demo/index.min.js +514 -172
- package/components/combobox/dist/auro-combobox.d.ts +0 -8
- package/components/combobox/dist/index.js +425 -153
- package/components/combobox/dist/registered.js +425 -153
- package/components/counter/demo/api.min.js +404 -106
- package/components/counter/demo/index.min.js +404 -106
- package/components/counter/dist/index.js +404 -106
- package/components/counter/dist/registered.js +404 -106
- package/components/datepicker/demo/api.md +13 -5
- package/components/datepicker/demo/api.min.js +876 -383
- package/components/datepicker/demo/index.md +13 -0
- package/components/datepicker/demo/index.min.js +876 -383
- package/components/datepicker/dist/auro-datepicker.d.ts +21 -2
- package/components/datepicker/dist/index.js +679 -186
- package/components/datepicker/dist/registered.js +679 -186
- package/components/datepicker/dist/styles/emphasized/style-css.d.ts +2 -0
- package/components/datepicker/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/dropdown/demo/api.md +1 -1
- package/components/dropdown/demo/api.min.js +226 -81
- package/components/dropdown/demo/index.min.js +226 -81
- package/components/dropdown/dist/auro-dropdown.d.ts +10 -0
- package/components/dropdown/dist/auro-dropdownBib.d.ts +8 -0
- package/components/dropdown/dist/index.js +226 -81
- package/components/dropdown/dist/registered.js +226 -81
- package/components/input/demo/api.md +46 -48
- package/components/input/demo/api.min.js +96 -15
- package/components/input/demo/index.min.js +96 -15
- package/components/input/dist/auro-input.d.ts +17 -15
- package/components/input/dist/index.js +96 -15
- package/components/input/dist/registered.js +96 -15
- package/components/menu/demo/api.min.js +76 -6
- package/components/menu/demo/index.min.js +76 -6
- package/components/menu/dist/index.js +76 -6
- package/components/menu/dist/registered.js +76 -6
- package/components/radio/demo/api.min.js +4 -3
- package/components/radio/demo/index.min.js +4 -3
- package/components/radio/dist/index.js +4 -3
- package/components/radio/dist/registered.js +4 -3
- package/components/select/demo/api.md +12 -4
- package/components/select/demo/api.min.js +1178 -200
- package/components/select/demo/index.html +1 -0
- package/components/select/demo/index.md +298 -777
- package/components/select/demo/index.min.js +1178 -200
- package/components/select/dist/auro-select.d.ts +96 -4
- package/components/select/dist/helptextVersion.d.ts +2 -0
- package/components/select/dist/index.js +1106 -198
- package/components/select/dist/registered.js +1106 -198
- package/components/select/dist/styles/shapeSize-css.d.ts +2 -0
- package/components/select/dist/styles/tokens-css.d.ts +2 -0
- package/package.json +3 -3
- /package/components/{dropdown/dist/styles/style-css.d.ts → datepicker/dist/styles/default/color-css.d.ts} +0 -0
|
@@ -51,7 +51,7 @@ const t=globalThis,e$1=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShad
|
|
|
51
51
|
|
|
52
52
|
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
53
53
|
|
|
54
|
-
let AuroLibraryRuntimeUtils$
|
|
54
|
+
let AuroLibraryRuntimeUtils$2 = class AuroLibraryRuntimeUtils {
|
|
55
55
|
|
|
56
56
|
/* eslint-disable jsdoc/require-param */
|
|
57
57
|
|
|
@@ -634,10 +634,11 @@ const flip$1 = function (options) {
|
|
|
634
634
|
const nextIndex = (((_middlewareData$flip2 = middlewareData.flip) == null ? void 0 : _middlewareData$flip2.index) || 0) + 1;
|
|
635
635
|
const nextPlacement = placements[nextIndex];
|
|
636
636
|
if (nextPlacement) {
|
|
637
|
-
var _overflowsData$;
|
|
638
637
|
const ignoreCrossAxisOverflow = checkCrossAxis === 'alignment' ? initialSideAxis !== getSideAxis(nextPlacement) : false;
|
|
639
|
-
|
|
640
|
-
if
|
|
638
|
+
if (!ignoreCrossAxisOverflow ||
|
|
639
|
+
// We leave the current main axis only if every placement on that axis
|
|
640
|
+
// overflows the main axis.
|
|
641
|
+
overflowsData.every(d => d.overflows[0] > 0 && getSideAxis(d.placement) === initialSideAxis)) {
|
|
641
642
|
// Try next placement and re-run the lifecycle.
|
|
642
643
|
return {
|
|
643
644
|
data: {
|
|
@@ -1658,8 +1659,28 @@ class AuroFloatingUI {
|
|
|
1658
1659
|
if (!AuroFloatingUI.isMousePressHandlerInitialized && window && window.addEventListener) {
|
|
1659
1660
|
AuroFloatingUI.isMousePressHandlerInitialized = true;
|
|
1660
1661
|
|
|
1662
|
+
// Track timeout for isMousePressed reset to avoid race conditions
|
|
1663
|
+
if (!AuroFloatingUI._mousePressedTimeout) {
|
|
1664
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
1665
|
+
}
|
|
1661
1666
|
const mouseEventGlobalHandler = (event) => {
|
|
1662
|
-
|
|
1667
|
+
const isPressed = event.type === 'mousedown';
|
|
1668
|
+
if (isPressed) {
|
|
1669
|
+
// Clear any pending timeout to prevent race condition
|
|
1670
|
+
if (AuroFloatingUI._mousePressedTimeout !== null) {
|
|
1671
|
+
clearTimeout(AuroFloatingUI._mousePressedTimeout);
|
|
1672
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
1673
|
+
}
|
|
1674
|
+
if (!AuroFloatingUI.isMousePressed) {
|
|
1675
|
+
AuroFloatingUI.isMousePressed = true;
|
|
1676
|
+
}
|
|
1677
|
+
} else if (AuroFloatingUI.isMousePressed && !isPressed) {
|
|
1678
|
+
// Schedule reset and track timeout ID
|
|
1679
|
+
AuroFloatingUI._mousePressedTimeout = setTimeout(() => {
|
|
1680
|
+
AuroFloatingUI.isMousePressed = false;
|
|
1681
|
+
AuroFloatingUI._mousePressedTimeout = null;
|
|
1682
|
+
}, 0);
|
|
1683
|
+
}
|
|
1663
1684
|
};
|
|
1664
1685
|
|
|
1665
1686
|
window.addEventListener('mousedown', mouseEventGlobalHandler);
|
|
@@ -1786,6 +1807,7 @@ class AuroFloatingUI {
|
|
|
1786
1807
|
|
|
1787
1808
|
// Compute the position of the bib
|
|
1788
1809
|
computePosition(this.element.trigger, this.element.bib, {
|
|
1810
|
+
strategy: this.element.floaterConfig?.strategy || 'fixed',
|
|
1789
1811
|
placement: this.element.floaterConfig?.placement,
|
|
1790
1812
|
middleware: middleware || []
|
|
1791
1813
|
}).then(({ x, y }) => { // eslint-disable-line id-length
|
|
@@ -1920,8 +1942,9 @@ class AuroFloatingUI {
|
|
|
1920
1942
|
if (this.element.contains(activeElement) || this.element.bib?.contains(activeElement)) {
|
|
1921
1943
|
return;
|
|
1922
1944
|
}
|
|
1923
|
-
|
|
1924
|
-
if
|
|
1945
|
+
|
|
1946
|
+
// if fullscreen bib is in fullscreen mode, do not close
|
|
1947
|
+
if (this.element.bib.hasAttribute('isfullscreen')) {
|
|
1925
1948
|
return;
|
|
1926
1949
|
}
|
|
1927
1950
|
|
|
@@ -2222,8 +2245,6 @@ class AuroFloatingUI {
|
|
|
2222
2245
|
this.element.hoverToggle = this.element.floaterConfig.hoverToggle;
|
|
2223
2246
|
}
|
|
2224
2247
|
|
|
2225
|
-
document.body.append(this.element.bib);
|
|
2226
|
-
|
|
2227
2248
|
this.regenerateBibId();
|
|
2228
2249
|
this.handleTriggerTabIndex();
|
|
2229
2250
|
|
|
@@ -2460,6 +2481,76 @@ var tokensCss$2 = i$2`:host{--ds-auro-icon-color:var(--ds-basic-color-texticon-d
|
|
|
2460
2481
|
|
|
2461
2482
|
var colorCss$3 = i$2`:host{color:var(--ds-auro-icon-color)}:host([customColor]){color:inherit}:host(:not([onDark])[variant=accent1]){--ds-auro-icon-color:var(--ds-basic-color-texticon-accent1, #265688)}:host(:not([onDark])[variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-disabled, #d0d0d0)}:host(:not([onDark])[variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-muted, #676767)}:host(:not([onDark])[variant=statusDefault]){--ds-auro-icon-color:var(--ds-basic-color-status-default, #afb9c6)}:host(:not([onDark])[variant=statusInfo]){--ds-auro-icon-color:var(--ds-basic-color-status-info, #01426a)}:host(:not([onDark])[variant=statusSuccess]){--ds-auro-icon-color:var(--ds-basic-color-status-success, #447a1f)}:host(:not([onDark])[variant=statusWarning]){--ds-auro-icon-color:var(--ds-basic-color-status-warning, #fac200)}:host(:not([onDark])[variant=statusError]){--ds-auro-icon-color:var(--ds-basic-color-status-error, #e31f26)}:host(:not([onDark])[variant=statusInfoSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-info-subtle, #ebf3f9)}:host(:not([onDark])[variant=statusSuccessSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-success-subtle, #d6eac7)}:host(:not([onDark])[variant=statusWarningSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-warning-subtle, #fff0b2)}:host(:not([onDark])[variant=statusErrorSubtle]){--ds-auro-icon-color:var(--ds-basic-color-status-error-subtle, #fbc6c6)}:host(:not([onDark])[variant=fareBasicEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-basiceconomy, #97eaf8)}:host(:not([onDark])[variant=fareBusiness]){--ds-auro-icon-color:var(--ds-basic-color-fare-business, #01426a)}:host(:not([onDark])[variant=fareEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-economy, #0074ca)}:host(:not([onDark])[variant=fareFirst]){--ds-auro-icon-color:var(--ds-basic-color-fare-first, #00274a)}:host(:not([onDark])[variant=farePremiumEconomy]){--ds-auro-icon-color:var(--ds-basic-color-fare-premiumeconomy, #005154)}:host(:not([onDark])[variant=tierOneWorldEmerald]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-emerald, #139142)}:host(:not([onDark])[variant=tierOneWorldSapphire]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-sapphire, #015daa)}:host(:not([onDark])[variant=tierOneWorldRuby]){--ds-auro-icon-color:var(--ds-basic-color-tier-program-oneworld-ruby, #a41d4a)}:host([onDark]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse, #ffffff)}:host([onDark][variant=disabled]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-disabled, #7e8894)}:host([onDark][variant=muted]){--ds-auro-icon-color:var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][variant=statusError]){--ds-auro-icon-color:var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
2462
2483
|
|
|
2484
|
+
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
2485
|
+
// See LICENSE in the project root for license information.
|
|
2486
|
+
|
|
2487
|
+
// ---------------------------------------------------------------------
|
|
2488
|
+
|
|
2489
|
+
/* eslint-disable line-comment-position, no-inline-comments, no-confusing-arrow, no-nested-ternary, implicit-arrow-linebreak */
|
|
2490
|
+
|
|
2491
|
+
let AuroLibraryRuntimeUtils$1 = class AuroLibraryRuntimeUtils {
|
|
2492
|
+
|
|
2493
|
+
/* eslint-disable jsdoc/require-param */
|
|
2494
|
+
|
|
2495
|
+
/**
|
|
2496
|
+
* This will register a new custom element with the browser.
|
|
2497
|
+
* @param {String} name - The name of the custom element.
|
|
2498
|
+
* @param {Object} componentClass - The class to register as a custom element.
|
|
2499
|
+
* @returns {void}
|
|
2500
|
+
*/
|
|
2501
|
+
registerComponent(name, componentClass) {
|
|
2502
|
+
if (!customElements.get(name)) {
|
|
2503
|
+
customElements.define(name, class extends componentClass {});
|
|
2504
|
+
}
|
|
2505
|
+
}
|
|
2506
|
+
|
|
2507
|
+
/**
|
|
2508
|
+
* Finds and returns the closest HTML Element based on a selector.
|
|
2509
|
+
* @returns {void}
|
|
2510
|
+
*/
|
|
2511
|
+
closestElement(
|
|
2512
|
+
selector, // selector like in .closest()
|
|
2513
|
+
base = this, // extra functionality to skip a parent
|
|
2514
|
+
__Closest = (el, found = el && el.closest(selector)) =>
|
|
2515
|
+
!el || el === document || el === window
|
|
2516
|
+
? null // standard .closest() returns null for non-found selectors also
|
|
2517
|
+
: found
|
|
2518
|
+
? found // found a selector INside this element
|
|
2519
|
+
: __Closest(el.getRootNode().host) // recursion!! break out to parent DOM
|
|
2520
|
+
) {
|
|
2521
|
+
return __Closest(base);
|
|
2522
|
+
}
|
|
2523
|
+
/* eslint-enable jsdoc/require-param */
|
|
2524
|
+
|
|
2525
|
+
/**
|
|
2526
|
+
* If the element passed is registered with a different tag name than what is passed in, the tag name is added as an attribute to the element.
|
|
2527
|
+
* @param {Object} elem - The element to check.
|
|
2528
|
+
* @param {String} tagName - The name of the Auro component to check for or add as an attribute.
|
|
2529
|
+
* @returns {void}
|
|
2530
|
+
*/
|
|
2531
|
+
handleComponentTagRename(elem, tagName) {
|
|
2532
|
+
const tag = tagName.toLowerCase();
|
|
2533
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2534
|
+
|
|
2535
|
+
if (elemTag !== tag) {
|
|
2536
|
+
elem.setAttribute(tag, true);
|
|
2537
|
+
}
|
|
2538
|
+
}
|
|
2539
|
+
|
|
2540
|
+
/**
|
|
2541
|
+
* Validates if an element is a specific Auro component.
|
|
2542
|
+
* @param {Object} elem - The element to validate.
|
|
2543
|
+
* @param {String} tagName - The name of the Auro component to check against.
|
|
2544
|
+
* @returns {Boolean} - Returns true if the element is the specified Auro component.
|
|
2545
|
+
*/
|
|
2546
|
+
elementMatch(elem, tagName) {
|
|
2547
|
+
const tag = tagName.toLowerCase();
|
|
2548
|
+
const elemTag = elem.tagName.toLowerCase();
|
|
2549
|
+
|
|
2550
|
+
return elemTag === tag || elem.hasAttribute(tag);
|
|
2551
|
+
}
|
|
2552
|
+
};
|
|
2553
|
+
|
|
2463
2554
|
// Copyright (c) 2025 Alaska Airlines. All right reserved. Licensed under the Apache-2.0 license
|
|
2464
2555
|
// See LICENSE in the project root for license information.
|
|
2465
2556
|
|
|
@@ -2629,7 +2720,7 @@ class AuroIcon extends BaseIcon {
|
|
|
2629
2720
|
|
|
2630
2721
|
var iconVersion = '6.1.2';
|
|
2631
2722
|
|
|
2632
|
-
var styleCss$1 = i$2`:host{position:
|
|
2723
|
+
var styleCss$1 = i$2`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}.container{display:inline-block;overflow:auto;box-sizing:border-box;margin:var(--ds-size-50, 0.25rem) 0}: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([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}`;
|
|
2633
2724
|
|
|
2634
2725
|
var colorCss$2 = i$2`.container{background-color:var(--ds-auro-dropdownbib-container-color);box-shadow:var(--ds-auro-dropdownbib-boxshadow-color);color:var(--ds-auro-dropdownbib-text-color)}`;
|
|
2635
2726
|
|
|
@@ -2639,7 +2730,6 @@ var tokensCss$1 = i$2`:host(:not([ondark])){--ds-auro-dropdown-label-text-color:
|
|
|
2639
2730
|
// See LICENSE in the project root for license information.
|
|
2640
2731
|
|
|
2641
2732
|
|
|
2642
|
-
|
|
2643
2733
|
const DESIGN_TOKEN_BREAKPOINT_PREFIX = '--ds-grid-breakpoint-';
|
|
2644
2734
|
const DESIGN_TOKEN_BREAKPOINT_OPTIONS = [
|
|
2645
2735
|
'xl',
|
|
@@ -2664,7 +2754,7 @@ class AuroDropdownBib extends i {
|
|
|
2664
2754
|
*/
|
|
2665
2755
|
this._mobileBreakpointValue = undefined;
|
|
2666
2756
|
|
|
2667
|
-
AuroLibraryRuntimeUtils$
|
|
2757
|
+
AuroLibraryRuntimeUtils$2.prototype.handleComponentTagRename(this, 'auro-dropdownbib');
|
|
2668
2758
|
}
|
|
2669
2759
|
|
|
2670
2760
|
static get styles() {
|
|
@@ -2709,6 +2799,13 @@ class AuroDropdownBib extends i {
|
|
|
2709
2799
|
type: Boolean,
|
|
2710
2800
|
reflect: true
|
|
2711
2801
|
},
|
|
2802
|
+
|
|
2803
|
+
/**
|
|
2804
|
+
* A reference to the associated bib template element.
|
|
2805
|
+
*/
|
|
2806
|
+
bibTemplate: {
|
|
2807
|
+
type: Object
|
|
2808
|
+
}
|
|
2712
2809
|
};
|
|
2713
2810
|
}
|
|
2714
2811
|
|
|
@@ -2741,9 +2838,50 @@ class AuroDropdownBib extends i {
|
|
|
2741
2838
|
}
|
|
2742
2839
|
}
|
|
2743
2840
|
});
|
|
2841
|
+
|
|
2842
|
+
if (this.bibTemplate) {
|
|
2843
|
+
// If the bib template is found, set the fullscreen attribute
|
|
2844
|
+
if (this.isFullscreen) {
|
|
2845
|
+
this.bibTemplate.setAttribute('isFullscreen', 'true');
|
|
2846
|
+
} else {
|
|
2847
|
+
this.bibTemplate.removeAttribute('isFullscreen');
|
|
2848
|
+
}
|
|
2849
|
+
}
|
|
2744
2850
|
}
|
|
2745
2851
|
}
|
|
2746
2852
|
|
|
2853
|
+
connectedCallback() {
|
|
2854
|
+
super.connectedCallback();
|
|
2855
|
+
|
|
2856
|
+
// Listen for the auro-bibtemplate-connected event to set the fullscreen attribute
|
|
2857
|
+
this.addEventListener('auro-bibtemplate-connected', (event) => {
|
|
2858
|
+
const bibTemplate = event.detail.element;
|
|
2859
|
+
this.bibTemplate = bibTemplate;
|
|
2860
|
+
|
|
2861
|
+
if (bibTemplate) {
|
|
2862
|
+
// If the bib template is found, set the fullscreen attribute
|
|
2863
|
+
if (this.isFullscreen) {
|
|
2864
|
+
bibTemplate.setAttribute('isFullscreen', 'true');
|
|
2865
|
+
} else {
|
|
2866
|
+
bibTemplate.removeAttribute('isFullscreen');
|
|
2867
|
+
}
|
|
2868
|
+
}
|
|
2869
|
+
});
|
|
2870
|
+
}
|
|
2871
|
+
|
|
2872
|
+
firstUpdated(changedProperties) {
|
|
2873
|
+
super.firstUpdated(changedProperties);
|
|
2874
|
+
|
|
2875
|
+
// Dispatch a custom event when the component is connected
|
|
2876
|
+
this.dispatchEvent(new CustomEvent('auro-dropdownbib-connected', {
|
|
2877
|
+
bubbles: true,
|
|
2878
|
+
composed: true,
|
|
2879
|
+
detail: {
|
|
2880
|
+
element: this
|
|
2881
|
+
}
|
|
2882
|
+
}));
|
|
2883
|
+
}
|
|
2884
|
+
|
|
2747
2885
|
// function that renders the HTML and CSS into the scope of the component
|
|
2748
2886
|
render() {
|
|
2749
2887
|
return u$1`
|
|
@@ -2756,7 +2894,7 @@ class AuroDropdownBib extends i {
|
|
|
2756
2894
|
|
|
2757
2895
|
var dropdownVersion = '3.0.0';
|
|
2758
2896
|
|
|
2759
|
-
var shapeSizeCss = i$2`.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-pill-xl{min-height:
|
|
2897
|
+
var shapeSizeCss = i$2`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic-lg,.shape-classic-md,.shape-classic-sm,.shape-classic-xs{min-height:58px;max-height:58px;border-style:solid;border-width:1px;border-radius:var(--ds-border-radius, 0.375rem)}.shape-classic-xl.simple,.shape-classic-lg.simple,.shape-classic-md.simple,.shape-classic-sm.simple,.shape-classic-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-classic-xl.thin,.shape-classic-lg.thin,.shape-classic-md.thin,.shape-classic-sm.thin,.shape-classic-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-classic-xl.parentBorder,.shape-classic-lg.parentBorder,.shape-classic-md.parentBorder,.shape-classic-sm.parentBorder,.shape-classic-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-snowflake-xl,.shape-snowflake-lg,.shape-snowflake-md,.shape-snowflake-sm,.shape-snowflake-xs{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:30px}.shape-snowflake-xl.simple,.shape-snowflake-lg.simple,.shape-snowflake-md.simple,.shape-snowflake-sm.simple,.shape-snowflake-xs.simple{border-width:0px;min-height:60px;max-height:60px;background-color:unset}.shape-snowflake-xl.thin,.shape-snowflake-lg.thin,.shape-snowflake-md.thin,.shape-snowflake-sm.thin,.shape-snowflake-xs.thin{border-width:1px;min-height:58px;max-height:58px;background-color:unset}.shape-snowflake-xl.parentBorder,.shape-snowflake-lg.parentBorder,.shape-snowflake-md.parentBorder,.shape-snowflake-sm.parentBorder,.shape-snowflake-xs.parentBorder{border:0;min-height:56px;max-height:56px}.shape-box-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent}.shape-box-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-box-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-box-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-rounded-lg{min-height:56px;max-height:56px;border-style:solid;border-width:2px;border-color:transparent;border-radius:6px}.shape-rounded-lg.simple{border-width:0px;min-height:56px;max-height:56px;background-color:unset}.shape-rounded-lg.thin{border-width:1px;min-height:54px;max-height:54px;background-color:unset}.shape-rounded-lg.parentBorder{border:0;min-height:52px;max-height:52px}.shape-pill-xl{min-height:68px;max-height:68px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-left-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-left-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-left-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-right-xl{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-xl.simple{border-width:0px;min-height:72px;max-height:72px;background-color:unset}.shape-pill-right-xl.thin{border-width:1px;min-height:70px;max-height:70px;background-color:unset}.shape-pill-right-xl.parentBorder{border:0;min-height:68px;max-height:68px}.shape-pill-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px}.shape-pill-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-left-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:36px 0 0 36px}.shape-pill-left-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-left-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-left-md.parentBorder{border:0;min-height:44px;max-height:44px}.shape-pill-right-md{min-height:72px;max-height:72px;border-style:solid;border-width:2px;border-color:transparent;border-radius:0 36px 36px 0}.shape-pill-right-md.simple{border-width:0px;min-height:48px;max-height:48px;background-color:unset}.shape-pill-right-md.thin{border-width:1px;min-height:46px;max-height:46px;background-color:unset}.shape-pill-right-md.parentBorder{border:0;min-height:44px;max-height:44px}`;
|
|
2760
2898
|
|
|
2761
2899
|
var colorCss$1 = i$2`:host .wrapper{border-color:var(--ds-auro-dropdown-trigger-border-color);background-color:var(--ds-auro-dropdown-trigger-background-color);color:var(--ds-auro-dropdown-trigger-text-color)}:host(:not([ondark])) .wrapper:focus,:host(:not([ondark])) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-brand, #00274a)}:host([ondark]) .wrapper:focus,:host([ondark]) .wrapper:focus-within{--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-inverse, #ffffff)}:host([error]:not([ondark])){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([error][ondark]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helpText{color:var(--ds-auro-dropdown-helptext-text-color)}`;
|
|
2762
2900
|
|
|
@@ -2764,9 +2902,9 @@ var classicColorCss = i$2`:host([layout*=classic]) .label{color:var(--ds-auro-dr
|
|
|
2764
2902
|
|
|
2765
2903
|
var classicLayoutCss = i$2`:host([layout*=classic]){position:relative;max-width:100%}:host([layout*=classic]) #bibSizer{position:absolute;z-index:-1;opacity:0;pointer-events:none}:host([layout*=classic]) .label{font-size:var(--ds-text-body-size-xs, 0.75rem);line-height:var(--ds-text-body-size-default, 1rem);transition:font-size .3s cubic-bezier(0.215, 0.61, 0.355, 1);white-space:normal}:host([layout*=classic]) .label[hasTrigger=false]{font-size:var(--ds-text-body-size-default, 1rem)}:host([layout*=classic]) .trigger{display:flex;flex-direction:row}@media(hover: hover){:host([layout*=classic]) .trigger:hover{cursor:pointer}}:host([layout*=classic]) .triggerContentWrapper{overflow:hidden;flex:1;text-overflow:ellipsis;white-space:nowrap}:host([layout*=classic]) #showStateIcon{display:flex;overflow:hidden;height:100%;align-items:center;margin-left:var(--ds-size-100, 0.5rem)}:host([layout*=classic]) #showStateIcon [auro-icon]{height:var(--ds-size-300, 1.5rem);line-height:var(--ds-size-300, 1.5rem)}:host([layout*=classic]) #showStateIcon[data-expanded=true] [auro-icon]{transform:rotate(-180deg)}:host([layout*=classic][fluid]){display:block}:host([layout*=classic][matchwidth]) #bibSizer{width:100%}:host([layout*=classic][disabled]){pointer-events:none}:host([layout*=classic][inset]) .trigger{padding:var(--ds-size-150, 0.75rem) var(--ds-size-200, 1rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][inset][bordered]) .trigger{padding:var(--ds-size-200, 1rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][inset][bordered][labeled]) .trigger{padding:var(--ds-size-100, 0.5rem) var(--ds-size-150, 0.75rem)}:host([layout*=classic][common]) .trigger,:host([layout*=classic][rounded]) .trigger{border-radius:var(--ds-border-radius, 0.375rem)}`;
|
|
2766
2904
|
|
|
2767
|
-
var styleEmphasizedCss = i$2`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
2905
|
+
var styleEmphasizedCss = i$2`:host{display:block}.layout-emphasized .chevron,.layout-emphasized-left .chevron,.layout-emphasized-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}.wrapper{display:flex;flex-direction:row}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=emphasized][shape*=pill]:not([layout*=right])) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-300, 1.5rem))}:host([layout*=emphasized][shape*=pill]:not([layout*=left]):not([layout*=right])) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}`;
|
|
2768
2906
|
|
|
2769
|
-
var styleSnowflakeCss = i$2`:host{display:block}.wrapper{display:flex;flex-direction:
|
|
2907
|
+
var styleSnowflakeCss = i$2`:host{display:block}.wrapper{display:flex;flex-direction:wrapper}.trigger{flex:1;display:flex;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{flex:1;display:flex;align-items:center;justify-content:center;width:100%}.triggerContent{overflow:hidden;flex:1;display:flex;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap;width:100%}:host([layout*=snowflake]) .leftIndent{margin-left:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}:host([layout*=snowflake]) .rightIndent{margin-right:var(--ds-size-300, 1.5rem);width:calc(100% - var(--ds-size-600, 3rem))}.layout-snowflake .chevron,.layout-snowflake-left .chevron,.layout-snowflake-right .chevron{margin-right:var(--ds-size-300, 1.5rem)}`;
|
|
2770
2908
|
|
|
2771
2909
|
var colorCss = i$2`:host([error]){--ds-auro-helptext-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]){--ds-auro-helptext-color: var(--ds-basic-color-texticon-inverse-muted, #ccd2db)}:host([onDark][error]){--ds-auro-helptext-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}.helptext-wrapper{color:var(--ds-auro-helptext-color)}`;
|
|
2772
2910
|
|
|
@@ -3100,6 +3238,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3100
3238
|
this.layout = 'classic';
|
|
3101
3239
|
this.shape = 'rounded';
|
|
3102
3240
|
this.size = 'xl';
|
|
3241
|
+
this.parentBorder = false;
|
|
3103
3242
|
|
|
3104
3243
|
this.privateDefaults();
|
|
3105
3244
|
}
|
|
@@ -3115,7 +3254,8 @@ class AuroDropdown extends AuroElement {
|
|
|
3115
3254
|
'trigger': true,
|
|
3116
3255
|
'wrapper': true,
|
|
3117
3256
|
'hasFocus': this.hasFocus,
|
|
3118
|
-
'simple': this.simple
|
|
3257
|
+
'simple': this.simple,
|
|
3258
|
+
'parentBorder': this.parentBorder
|
|
3119
3259
|
};
|
|
3120
3260
|
}
|
|
3121
3261
|
|
|
@@ -3167,7 +3307,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3167
3307
|
/**
|
|
3168
3308
|
* @private
|
|
3169
3309
|
*/
|
|
3170
|
-
this.runtimeUtils = new AuroLibraryRuntimeUtils$
|
|
3310
|
+
this.runtimeUtils = new AuroLibraryRuntimeUtils$2();
|
|
3171
3311
|
|
|
3172
3312
|
/**
|
|
3173
3313
|
* @private
|
|
@@ -3382,6 +3522,15 @@ class AuroDropdown extends AuroElement {
|
|
|
3382
3522
|
reflect: true
|
|
3383
3523
|
},
|
|
3384
3524
|
|
|
3525
|
+
/**
|
|
3526
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
3527
|
+
* @private
|
|
3528
|
+
*/
|
|
3529
|
+
parentBorder: {
|
|
3530
|
+
type: Boolean,
|
|
3531
|
+
reflect: true
|
|
3532
|
+
},
|
|
3533
|
+
|
|
3385
3534
|
/**
|
|
3386
3535
|
* If declared, the popover and trigger will be set to the same width.
|
|
3387
3536
|
*/
|
|
@@ -3509,7 +3658,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3509
3658
|
*
|
|
3510
3659
|
*/
|
|
3511
3660
|
static register(name = "auro-dropdown") {
|
|
3512
|
-
AuroLibraryRuntimeUtils$
|
|
3661
|
+
AuroLibraryRuntimeUtils$2.prototype.registerComponent(name, AuroDropdown);
|
|
3513
3662
|
}
|
|
3514
3663
|
|
|
3515
3664
|
/**
|
|
@@ -3845,8 +3994,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3845
3994
|
* @param {Event} event - The event object representing the slot change.
|
|
3846
3995
|
* @fires Function#onSlotChange - Optional callback invoked when the slot content changes.
|
|
3847
3996
|
*/
|
|
3848
|
-
handleDefaultSlot(
|
|
3849
|
-
[...event.target.assignedNodes()].forEach((node) => this.bibContent.append(node));
|
|
3997
|
+
handleDefaultSlot() {
|
|
3850
3998
|
|
|
3851
3999
|
if (this.onSlotChange) {
|
|
3852
4000
|
this.onSlotChange();
|
|
@@ -3908,6 +4056,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3908
4056
|
${this.chevron || this.common ? u$1`
|
|
3909
4057
|
<div
|
|
3910
4058
|
id="showStateIcon"
|
|
4059
|
+
class="chevron"
|
|
3911
4060
|
part="chevron">
|
|
3912
4061
|
<${this.iconTag}
|
|
3913
4062
|
category="interface"
|
|
@@ -3922,9 +4071,6 @@ class AuroDropdown extends AuroElement {
|
|
|
3922
4071
|
<div class="${e$2(helpTextClasses)}">
|
|
3923
4072
|
<slot name="helpText"></slot>
|
|
3924
4073
|
</div>
|
|
3925
|
-
<div class="slotContent">
|
|
3926
|
-
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
3927
|
-
</div>
|
|
3928
4074
|
<div id="bibSizer" part="size"></div>
|
|
3929
4075
|
<${this.dropdownBibTag}
|
|
3930
4076
|
id="bib"
|
|
@@ -3933,6 +4079,9 @@ class AuroDropdown extends AuroElement {
|
|
|
3933
4079
|
?common="${this.common}"
|
|
3934
4080
|
?rounded="${this.common || this.rounded}"
|
|
3935
4081
|
?inset="${this.common || this.inset}">
|
|
4082
|
+
<div class="slotContent">
|
|
4083
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
4084
|
+
</div>
|
|
3936
4085
|
</${this.dropdownBibTag}>
|
|
3937
4086
|
</div>
|
|
3938
4087
|
`;
|
|
@@ -3944,67 +4093,63 @@ class AuroDropdown extends AuroElement {
|
|
|
3944
4093
|
* @returns {html} - Returns HTML for the classic layout.
|
|
3945
4094
|
*/
|
|
3946
4095
|
renderLayoutClassic() {
|
|
3947
|
-
const helpTextClasses = {
|
|
3948
|
-
'helpText': true,
|
|
3949
|
-
'leftIndent': false,
|
|
3950
|
-
'rightIndent': false
|
|
3951
|
-
};
|
|
3952
4096
|
|
|
3953
4097
|
return u$1`
|
|
3954
|
-
|
|
4098
|
+
<div>
|
|
4099
|
+
<div
|
|
4100
|
+
id="trigger"
|
|
4101
|
+
class="trigger"
|
|
4102
|
+
part="trigger"
|
|
4103
|
+
tabindex="${this.tabIndex}"
|
|
4104
|
+
?showBorder="${this.showTriggerBorders}"
|
|
4105
|
+
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
4106
|
+
aria-expanded="${o(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
4107
|
+
aria-controls="${o(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
4108
|
+
aria-labelledby="${o(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
4109
|
+
>
|
|
4110
|
+
<div class="triggerContentWrapper">
|
|
4111
|
+
<label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
4112
|
+
<slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
4113
|
+
</label>
|
|
4114
|
+
<div class="triggerContent">
|
|
4115
|
+
<slot
|
|
4116
|
+
name="trigger"
|
|
4117
|
+
@slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
4118
|
+
</div>
|
|
4119
|
+
</div>
|
|
4120
|
+
${this.chevron || this.common ? u$1`
|
|
4121
|
+
<div
|
|
4122
|
+
id="showStateIcon"
|
|
4123
|
+
part="chevron">
|
|
4124
|
+
<${this.iconTag}
|
|
4125
|
+
category="interface"
|
|
4126
|
+
name="chevron-down"
|
|
4127
|
+
?onDark="${this.onDark}"
|
|
4128
|
+
variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
4129
|
+
>
|
|
4130
|
+
</${this.iconTag}>
|
|
4131
|
+
</div>
|
|
4132
|
+
` : undefined }
|
|
4133
|
+
</div>
|
|
4134
|
+
<${this.helpTextTag} part="helpText" ?onDark=${this.onDark} ?error="${this.error}">
|
|
4135
|
+
<slot name="helpText"></slot>
|
|
4136
|
+
</${this.helpTextTag}>
|
|
4137
|
+
|
|
4138
|
+
<div id="bibSizer" part="size"></div>
|
|
4139
|
+
<${this.dropdownBibTag}
|
|
4140
|
+
id="bib"
|
|
4141
|
+
?data-show="${this.isPopoverVisible}"
|
|
4142
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
4143
|
+
?common="${this.common}"
|
|
4144
|
+
?rounded="${this.common || this.rounded}"
|
|
4145
|
+
?inset="${this.common || this.inset}"
|
|
4146
|
+
>
|
|
4147
|
+
<div class="slotContent">
|
|
4148
|
+
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
4149
|
+
</div>
|
|
4150
|
+
</${this.dropdownBibTag}>
|
|
4151
|
+
</div>
|
|
3955
4152
|
`;
|
|
3956
|
-
// return html`
|
|
3957
|
-
// <div>
|
|
3958
|
-
// <div
|
|
3959
|
-
// id="trigger"
|
|
3960
|
-
// class="trigger"
|
|
3961
|
-
// part="trigger"
|
|
3962
|
-
// tabindex="${this.tabIndex}"
|
|
3963
|
-
// ?showBorder="${this.showTriggerBorders}"
|
|
3964
|
-
// role="${ifDefined(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
3965
|
-
// aria-expanded="${ifDefined(this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
3966
|
-
// aria-controls="${ifDefined(this.triggerContentFocusable ? undefined : this.dropdownId)}"
|
|
3967
|
-
// aria-labelledby="${ifDefined(this.triggerContentFocusable ? undefined : 'triggerLabel')}"
|
|
3968
|
-
// >
|
|
3969
|
-
// <div class="triggerContentWrapper">
|
|
3970
|
-
// <label class="label" id="triggerLabel" hasTrigger=${this.hasTriggerContent}>
|
|
3971
|
-
// <slot name="label" @slotchange="${this.handleLabelSlotChange}"></slot>
|
|
3972
|
-
// </label>
|
|
3973
|
-
// <div class="triggerContent">
|
|
3974
|
-
// <slot
|
|
3975
|
-
// name="trigger"
|
|
3976
|
-
// @slotchange="${this.handleTriggerContentSlotChange}"></slot>
|
|
3977
|
-
// </div>
|
|
3978
|
-
// </div>
|
|
3979
|
-
// ${this.chevron || this.common ? html`
|
|
3980
|
-
// <div
|
|
3981
|
-
// id="showStateIcon"
|
|
3982
|
-
// part="chevron">
|
|
3983
|
-
// <${this.iconTag}
|
|
3984
|
-
// category="interface"
|
|
3985
|
-
// name="chevron-down"
|
|
3986
|
-
// ?onDark="${this.onDark}"
|
|
3987
|
-
// variant="${this.disabled ? 'disabled' : 'muted'}">
|
|
3988
|
-
// >
|
|
3989
|
-
// </${this.iconTag}>
|
|
3990
|
-
// </div>
|
|
3991
|
-
// ` : undefined }
|
|
3992
|
-
// </div>
|
|
3993
|
-
// <div class="slotContent">
|
|
3994
|
-
// <slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
3995
|
-
// </div>
|
|
3996
|
-
// <div id="bibSizer" part="size"></div>
|
|
3997
|
-
// <${this.dropdownBibTag}
|
|
3998
|
-
// id="bib"
|
|
3999
|
-
// ?data-show="${this.isPopoverVisible}"
|
|
4000
|
-
// ?isfullscreen="${this.isBibFullscreen}"
|
|
4001
|
-
// ?common="${this.common}"
|
|
4002
|
-
// ?rounded="${this.common || this.rounded}"
|
|
4003
|
-
// ?inset="${this.common || this.inset}"
|
|
4004
|
-
// >
|
|
4005
|
-
// </${this.dropdownBibTag}>
|
|
4006
|
-
// </div>
|
|
4007
|
-
// `;
|
|
4008
4153
|
}
|
|
4009
4154
|
|
|
4010
4155
|
/**
|
|
@@ -145,6 +145,14 @@ export class AuroDropdown extends AuroElement {
|
|
|
145
145
|
type: BooleanConstructor;
|
|
146
146
|
reflect: boolean;
|
|
147
147
|
};
|
|
148
|
+
/**
|
|
149
|
+
* Defines if the trigger should size based on the parent element providing the border UI.
|
|
150
|
+
* @private
|
|
151
|
+
*/
|
|
152
|
+
parentBorder: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
reflect: boolean;
|
|
155
|
+
};
|
|
148
156
|
/**
|
|
149
157
|
* If declared, the popover and trigger will be set to the same width.
|
|
150
158
|
*/
|
|
@@ -248,12 +256,14 @@ export class AuroDropdown extends AuroElement {
|
|
|
248
256
|
errorMessage: string;
|
|
249
257
|
shape: string;
|
|
250
258
|
size: string;
|
|
259
|
+
parentBorder: boolean;
|
|
251
260
|
get commonLabelClasses(): {};
|
|
252
261
|
get commonWrapperClasses(): {
|
|
253
262
|
trigger: boolean;
|
|
254
263
|
wrapper: boolean;
|
|
255
264
|
hasFocus: boolean;
|
|
256
265
|
simple: boolean;
|
|
266
|
+
parentBorder: boolean;
|
|
257
267
|
};
|
|
258
268
|
/**
|
|
259
269
|
* @private
|
|
@@ -33,6 +33,12 @@ export class AuroDropdownBib extends LitElement {
|
|
|
33
33
|
type: BooleanConstructor;
|
|
34
34
|
reflect: boolean;
|
|
35
35
|
};
|
|
36
|
+
/**
|
|
37
|
+
* A reference to the associated bib template element.
|
|
38
|
+
*/
|
|
39
|
+
bibTemplate: {
|
|
40
|
+
type: ObjectConstructor;
|
|
41
|
+
};
|
|
36
42
|
};
|
|
37
43
|
/**
|
|
38
44
|
* @private
|
|
@@ -41,6 +47,8 @@ export class AuroDropdownBib extends LitElement {
|
|
|
41
47
|
set mobileFullscreenBreakpoint(value: string);
|
|
42
48
|
get mobileFullscreenBreakpoint(): string;
|
|
43
49
|
updated(changedProperties: any): void;
|
|
50
|
+
bibTemplate: any;
|
|
51
|
+
firstUpdated(changedProperties: any): void;
|
|
44
52
|
render(): import("lit-html").TemplateResult;
|
|
45
53
|
}
|
|
46
54
|
import { LitElement } from "lit";
|