@aurodesignsystem/auro-formkit 5.2.2 → 5.3.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/CHANGELOG.md +10 -3
- package/components/bibtemplate/dist/buttonVersion.d.ts +1 -1
- package/components/bibtemplate/dist/index.js +18 -83
- package/components/bibtemplate/dist/registered.js +18 -83
- package/components/checkbox/demo/api.min.js +14 -3
- package/components/checkbox/demo/index.min.js +14 -3
- package/components/checkbox/dist/index.js +14 -3
- package/components/checkbox/dist/registered.js +14 -3
- package/components/combobox/demo/api.js +2 -0
- package/components/combobox/demo/api.md +117 -3
- package/components/combobox/demo/api.min.js +445 -343
- package/components/combobox/demo/index.min.js +348 -265
- package/components/combobox/dist/auro-combobox.d.ts +18 -0
- package/components/combobox/dist/index.js +275 -212
- package/components/combobox/dist/registered.js +275 -212
- package/components/counter/demo/api.md +29 -1
- package/components/counter/demo/api.min.js +264 -240
- package/components/counter/demo/index.min.js +264 -240
- package/components/counter/dist/auro-counter-group.d.ts +9 -0
- package/components/counter/dist/index.js +183 -176
- package/components/counter/dist/registered.js +183 -176
- package/components/datepicker/demo/api.md +23 -1
- package/components/datepicker/demo/api.min.js +420 -447
- package/components/datepicker/demo/index.min.js +420 -447
- package/components/datepicker/dist/auro-datepicker.d.ts +9 -0
- package/components/datepicker/dist/buttonVersion.d.ts +1 -1
- package/components/datepicker/dist/index.js +241 -279
- package/components/datepicker/dist/registered.js +241 -279
- package/components/dropdown/demo/api.md +46 -2
- package/components/dropdown/demo/api.min.js +148 -16
- package/components/dropdown/demo/index.min.js +148 -16
- package/components/dropdown/dist/auro-dropdown.d.ts +12 -0
- package/components/dropdown/dist/index.js +118 -3
- package/components/dropdown/dist/registered.js +118 -3
- package/components/input/demo/api.min.js +35 -89
- package/components/input/demo/index.min.js +35 -89
- package/components/input/dist/buttonVersion.d.ts +1 -1
- package/components/input/dist/index.js +35 -89
- package/components/input/dist/registered.js +35 -89
- package/components/menu/demo/api.min.js +11 -2
- package/components/menu/demo/index.min.js +11 -2
- package/components/menu/dist/index.js +11 -2
- package/components/menu/dist/registered.js +11 -2
- package/components/radio/demo/api.min.js +18 -7
- package/components/radio/demo/index.min.js +18 -7
- package/components/radio/dist/index.js +18 -7
- package/components/radio/dist/registered.js +18 -7
- package/components/select/demo/api.md +29 -1
- package/components/select/demo/api.min.js +269 -150
- package/components/select/demo/index.min.js +269 -150
- package/components/select/dist/auro-select.d.ts +11 -0
- package/components/select/dist/index.js +199 -106
- package/components/select/dist/registered.js +199 -106
- package/package.json +5 -5
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
| [onSlotChange](#onSlotChange) | `onSlotChange` | | | If declared, and a function is set, that function will execute when the slot content is updated. |
|
|
31
31
|
| [placement](#placement) | `placement` | `string` | "bottom-start" | Position where the bib should appear relative to the trigger. |
|
|
32
32
|
| [shape](#shape) | | | "undefined" | |
|
|
33
|
+
| [shift](#shift) | `shift` | `boolean` | "false" | If declared, the dropdown will shift its position to avoid being cut off by the viewport. |
|
|
33
34
|
| [simple](#simple) | `simple` | `boolean` | | If declared, applies a border around the trigger slot. |
|
|
34
35
|
| [size](#size) | | | "undefined" | |
|
|
35
36
|
|
|
@@ -658,12 +659,13 @@ On mobile view, adding the `fullscreenBreakpoint="{breakpoint-token}"` will swit
|
|
|
658
659
|
</auro-accordion>
|
|
659
660
|
|
|
660
661
|
### Customized bib position
|
|
661
|
-
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement` attributes.
|
|
662
|
+
The bib position can be customized with `placement`, `offset`, `flip`, `autoPlacement`, and `shift` attributes.
|
|
662
663
|
|
|
663
664
|
- `placement` specifies the preferred position where the bib should appear relative to the trigger.
|
|
664
665
|
- `offset` sets the distance between the trigger and the bib.
|
|
665
666
|
- When `autoPlacement` is enabled, smart positioning logic is applied to determine the best placement for the bib. If all sides have sufficient space, the bib will appear in the position specified by `placement`.
|
|
666
|
-
- Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
|
|
667
|
+
- Unless `noFlip` is enabled, if there isn't enough space for the preferred `placement`, the bib will automatically flip to an alternative position.
|
|
668
|
+
- `shift` when enabled, adjusts the bib position when it would overflow the viewport boundaries, ensuring it remains visible.
|
|
667
669
|
|
|
668
670
|
<div class="exampleWrapper">
|
|
669
671
|
<!-- AURO-GENERATED-CONTENT:START (FILE:src=./../apiExamples/floaterConfig.html) -->
|
|
@@ -734,6 +736,27 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
734
736
|
Trigger for right bib with 20px offset, autoPlacement and noFlip
|
|
735
737
|
</div>
|
|
736
738
|
</auro-dropdown>
|
|
739
|
+
</div>
|
|
740
|
+
<div aria-label="custom label">
|
|
741
|
+
<auro-dropdown width="350px" class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron noFlip placement="bottom-start" shift offset="20">
|
|
742
|
+
<div width="500px">
|
|
743
|
+
<p>
|
|
744
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
745
|
+
</p>
|
|
746
|
+
<p>
|
|
747
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
748
|
+
</p>
|
|
749
|
+
<p>
|
|
750
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
751
|
+
</p>
|
|
752
|
+
</div>
|
|
753
|
+
<div slot="trigger">
|
|
754
|
+
Trigger
|
|
755
|
+
</div>
|
|
756
|
+
<div slot="helpText">
|
|
757
|
+
Trigger for bottom-start bib with 20px offset, shift and noFlip
|
|
758
|
+
</div>
|
|
759
|
+
</auro-dropdown>
|
|
737
760
|
</div>
|
|
738
761
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
739
762
|
</div>
|
|
@@ -810,6 +833,27 @@ The bib position can be customized with `placement`, `offset`, `flip`, `autoPlac
|
|
|
810
833
|
</div>
|
|
811
834
|
</auro-dropdown>
|
|
812
835
|
</div>
|
|
836
|
+
<div aria-label="custom label">
|
|
837
|
+
<auro-dropdown width="350px" class="floaterConfigDropdown" layout="classic" shape="classic" size="lg" chevron noFlip placement="bottom-start" shift offset="20">
|
|
838
|
+
<div width="500px">
|
|
839
|
+
<p>
|
|
840
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
841
|
+
</p>
|
|
842
|
+
<p>
|
|
843
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
844
|
+
</p>
|
|
845
|
+
<p>
|
|
846
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
847
|
+
</p>
|
|
848
|
+
</div>
|
|
849
|
+
<div slot="trigger">
|
|
850
|
+
Trigger
|
|
851
|
+
</div>
|
|
852
|
+
<div slot="helpText">
|
|
853
|
+
Trigger for bottom-start bib with 20px offset, shift and noFlip
|
|
854
|
+
</div>
|
|
855
|
+
</auro-dropdown>
|
|
856
|
+
</div>
|
|
813
857
|
```
|
|
814
858
|
<!-- AURO-GENERATED-CONTENT:END -->
|
|
815
859
|
</auro-accordion>
|
|
@@ -28,46 +28,64 @@ function inDialogExample() {
|
|
|
28
28
|
* Copyright 2017 Google LLC
|
|
29
29
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
30
30
|
*/
|
|
31
|
-
const t$2=globalThis,i$5=t$2.trustedTypes,s$
|
|
31
|
+
const t$2=globalThis,i$5=t$2.trustedTypes,s$4=i$5?i$5.createPolicy("lit-html",{createHTML:t=>t}):void 0,e$5="$lit$",h$3=`lit$${Math.random().toFixed(9).slice(2)}$`,o$7="?"+h$3,n$5=`<${o$7}>`,r$3=document,l$2=()=>r$3.createComment(""),c$3=t=>null===t||"object"!=typeof t&&"function"!=typeof t,a$2=Array.isArray,u$2=t=>a$2(t)||"function"==typeof t?.[Symbol.iterator],d$1="[ \t\n\f\r]",f$3=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,v=/-->/g,_=/>/g,m=RegExp(`>|${d$1}(?:([^\\s"'>=/]+)(${d$1}*=${d$1}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),p$1=/'/g,g=/"/g,$=/^(?:script|style|textarea|title)$/i,y$1=t=>(i,...s)=>({_$litType$:t,strings:i,values:s}),x=y$1(1),T=Symbol.for("lit-noChange"),E=Symbol.for("lit-nothing"),A=new WeakMap,C=r$3.createTreeWalker(r$3,129);function P(t,i){if(!a$2(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==s$4?s$4.createHTML(i):i}const V=(t,i)=>{const s=t.length-1,o=[];let r,l=2===i?"<svg>":3===i?"<math>":"",c=f$3;for(let i=0;i<s;i++){const s=t[i];let a,u,d=-1,y=0;for(;y<s.length&&(c.lastIndex=y,u=c.exec(s),null!==u);)y=c.lastIndex,c===f$3?"!--"===u[1]?c=v:void 0!==u[1]?c=_:void 0!==u[2]?($.test(u[2])&&(r=RegExp("</"+u[2],"g")),c=m):void 0!==u[3]&&(c=m):c===m?">"===u[0]?(c=r??f$3,d=-1):void 0===u[1]?d=-2:(d=c.lastIndex-u[2].length,a=u[1],c=void 0===u[3]?m:'"'===u[3]?g:p$1):c===g||c===p$1?c=m:c===v||c===_?c=f$3:(c=m,r=void 0);const x=c===m&&t[i+1].startsWith("/>")?" ":"";l+=c===f$3?s+n$5:d>=0?(o.push(a),s.slice(0,d)+e$5+s.slice(d)+h$3+x):s+h$3+(-2===d?i:x);}return [P(t,l+(t[s]||"<?>")+(2===i?"</svg>":3===i?"</math>":"")),o]};class N{constructor({strings:t,_$litType$:s},n){let r;this.parts=[];let c=0,a=0;const u=t.length-1,d=this.parts,[f,v]=V(t,s);if(this.el=N.createElement(f,n),C.currentNode=this.el.content,2===s||3===s){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes);}for(;null!==(r=C.nextNode())&&d.length<u;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(e$5)){const i=v[a++],s=r.getAttribute(t).split(h$3),e=/([.?@])?(.*)/.exec(i);d.push({type:1,index:c,name:e[2],strings:s,ctor:"."===e[1]?H:"?"===e[1]?I:"@"===e[1]?L:k}),r.removeAttribute(t);}else t.startsWith(h$3)&&(d.push({type:6,index:c}),r.removeAttribute(t));if($.test(r.tagName)){const t=r.textContent.split(h$3),s=t.length-1;if(s>0){r.textContent=i$5?i$5.emptyScript:"";for(let i=0;i<s;i++)r.append(t[i],l$2()),C.nextNode(),d.push({type:2,index:++c});r.append(t[s],l$2());}}}else if(8===r.nodeType)if(r.data===o$7)d.push({type:2,index:c});else {let t=-1;for(;-1!==(t=r.data.indexOf(h$3,t+1));)d.push({type:7,index:c}),t+=h$3.length-1;}c++;}}static createElement(t,i){const s=r$3.createElement("template");return s.innerHTML=t,s}}function S$1(t,i,s=t,e){if(i===T)return i;let h=void 0!==e?s._$Co?.[e]:s._$Cl;const o=c$3(i)?void 0:i._$litDirective$;return h?.constructor!==o&&(h?._$AO?.(false),void 0===o?h=void 0:(h=new o(t),h._$AT(t,s,e)),void 0!==e?(s._$Co??=[])[e]=h:s._$Cl=h),void 0!==h&&(i=S$1(t,h._$AS(t,i.values),h,e)),i}class M{constructor(t,i){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=i;}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:i},parts:s}=this._$AD,e=(t?.creationScope??r$3).importNode(i,true);C.currentNode=e;let h=C.nextNode(),o=0,n=0,l=s[0];for(;void 0!==l;){if(o===l.index){let i;2===l.type?i=new R(h,h.nextSibling,this,t):1===l.type?i=new l.ctor(h,l.name,l.strings,this,t):6===l.type&&(i=new z(h,this,t)),this._$AV.push(i),l=s[++n];}o!==l?.index&&(h=C.nextNode(),o++);}return C.currentNode=r$3,e}p(t){let i=0;for(const s of this._$AV) void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,i),i+=s.strings.length-2):s._$AI(t[i])),i++;}}class R{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,i,s,e){this.type=2,this._$AH=E,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=s,this.options=e,this._$Cv=e?.isConnected??true;}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t?.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=S$1(this,t,i),c$3(t)?t===E||null==t||""===t?(this._$AH!==E&&this._$AR(),this._$AH=E):t!==this._$AH&&t!==T&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):u$2(t)?this.k(t):this._(t);}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t));}_(t){this._$AH!==E&&c$3(this._$AH)?this._$AA.nextSibling.data=t:this.T(r$3.createTextNode(t)),this._$AH=t;}$(t){const{values:i,_$litType$:s}=t,e="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=N.createElement(P(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===e)this._$AH.p(i);else {const t=new M(e,this),s=t.u(this.options);t.p(i),this.T(s),this._$AH=t;}}_$AC(t){let i=A.get(t.strings);return void 0===i&&A.set(t.strings,i=new N(t)),i}k(t){a$2(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let s,e=0;for(const h of t)e===i.length?i.push(s=new R(this.O(l$2()),this.O(l$2()),this,this.options)):s=i[e],s._$AI(h),e++;e<i.length&&(this._$AR(s&&s._$AB.nextSibling,e),i.length=e);}_$AR(t=this._$AA.nextSibling,i){for(this._$AP?.(false,true,i);t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i;}}setConnected(t){ void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t));}}class k{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,i,s,e,h){this.type=1,this._$AH=E,this._$AN=void 0,this.element=t,this.name=i,this._$AM=e,this.options=h,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=E;}_$AI(t,i=this,s,e){const h=this.strings;let o=false;if(void 0===h)t=S$1(this,t,i,0),o=!c$3(t)||t!==this._$AH&&t!==T,o&&(this._$AH=t);else {const e=t;let n,r;for(t=h[0],n=0;n<h.length-1;n++)r=S$1(this,e[s+n],i,n),r===T&&(r=this._$AH[n]),o||=!c$3(r)||r!==this._$AH[n],r===E?t=E:t!==E&&(t+=(r??"")+h[n+1]),this._$AH[n]=r;}o&&!e&&this.j(t);}j(t){t===E?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"");}}class H extends k{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===E?void 0:t;}}class I extends k{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==E);}}class L extends k{constructor(t,i,s,e,h){super(t,i,s,e,h),this.type=5;}_$AI(t,i=this){if((t=S$1(this,t,i,0)??E)===T)return;const s=this._$AH,e=t===E&&s!==E||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,h=t!==E&&(s===E||e);e&&this.element.removeEventListener(this.name,this,s),h&&this.element.addEventListener(this.name,this,t),this._$AH=t;}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t);}}class z{constructor(t,i,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=s;}get _$AU(){return this._$AM._$AU}_$AI(t){S$1(this,t);}}const j=t$2.litHtmlPolyfillSupport;j?.(N,R),(t$2.litHtmlVersions??=[]).push("3.3.1");const B=(t,i,s)=>{const e=s?.renderBefore??i;let h=e._$litPart$;if(void 0===h){const t=s?.renderBefore??null;e._$litPart$=h=new R(i.insertBefore(l$2(),t),t,void 0,s??{});}return h._$AI(t),h};
|
|
32
32
|
|
|
33
33
|
/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2020 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
37
37
|
*/
|
|
38
|
-
const a$1=Symbol.for(""),o$
|
|
38
|
+
const a$1=Symbol.for(""),o$6=t=>{if(t?.r===a$1)return t?._$litStatic$},s$3=t=>({_$litStatic$:t,r:a$1}),i$4=(t,...r)=>({_$litStatic$:r.reduce(((r,e,a)=>r+(t=>{if(void 0!==t._$litStatic$)return t._$litStatic$;throw Error(`Value passed to 'literal' function must be a 'literal' result: ${t}. Use 'unsafeStatic' to pass non-literal values, but\n take care to ensure page security.`)})(e)+t[a+1]),t[0]),r:a$1}),l$1=new Map,n$4=t=>(r,...e)=>{const a=e.length;let s,i;const n=[],u=[];let c,$=0,f=false;for(;$<a;){for(c=r[$];$<a&&void 0!==(i=e[$],s=o$6(i));)c+=s+r[++$],f=true;$!==a&&u.push(i),n.push(c),$++;}if($===a&&n.push(r[a]),f){const t=n.join("$$lit$$");void 0===(r=l$1.get(t))&&(n.raw=n,l$1.set(t,r=n)),e=u;}return t(r,...e)},u$1=n$4(x);
|
|
39
39
|
|
|
40
40
|
/**
|
|
41
41
|
* @license
|
|
42
42
|
* Copyright 2017 Google LLC
|
|
43
43
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
44
44
|
*/
|
|
45
|
-
const t$1={ATTRIBUTE:1},e$
|
|
45
|
+
const t$1={ATTRIBUTE:1,CHILD:2},e$4=t=>(...e)=>({_$litDirective$:t,values:e});let i$3 = class i{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i;}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* @license
|
|
49
49
|
* Copyright 2018 Google LLC
|
|
50
50
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
51
|
-
*/const e$
|
|
51
|
+
*/const e$3=e$4(class extends i$3{constructor(t){if(super(t),t.type!==t$1.ATTRIBUTE||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return " "+Object.keys(t).filter((s=>t[s])).join(" ")+" "}update(s,[i]){if(void 0===this.st){this.st=new Set,void 0!==s.strings&&(this.nt=new Set(s.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in i)i[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(i)}const r=s.element.classList;for(const t of this.st)t in i||(r.remove(t),this.st.delete(t));for(const t in i){const s=!!i[t];s===this.st.has(t)||this.nt?.has(t)||(s?(r.add(t),this.st.add(t)):(r.remove(t),this.st.delete(t)));}return T}});
|
|
52
52
|
|
|
53
53
|
/**
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2019 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
57
|
*/
|
|
58
|
-
const t=globalThis,e$
|
|
58
|
+
const t=globalThis,e$2=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,s$2=Symbol(),o$5=new WeakMap;let n$3 = class n{constructor(t,e,o){if(this._$cssResult$=true,o!==s$2)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e;}get styleSheet(){let t=this.o;const s=this.t;if(e$2&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=o$5.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&o$5.set(s,t));}return t}toString(){return this.cssText}};const r$2=t=>new n$3("string"==typeof t?t:t+"",void 0,s$2),i$2=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,s,o)=>e+(t=>{if(true===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[o+1]),t[0]);return new n$3(o,t,s$2)},S=(s,o)=>{if(e$2)s.adoptedStyleSheets=o.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of o){const o=document.createElement("style"),n=t.litNonce;void 0!==n&&o.setAttribute("nonce",n),o.textContent=e.cssText,s.appendChild(o);}},c$2=e$2?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r$2(e)})(t):t;
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
61
|
* @license
|
|
62
62
|
* Copyright 2017 Google LLC
|
|
63
63
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
64
|
-
*/const{is:i$1,defineProperty:e,getOwnPropertyDescriptor:h,getOwnPropertyNames:r,getOwnPropertySymbols:o$
|
|
64
|
+
*/const{is:i$1,defineProperty:e$1,getOwnPropertyDescriptor:h$2,getOwnPropertyNames:r$1,getOwnPropertySymbols:o$4,getPrototypeOf:n$2}=Object,a=globalThis,c$1=a.trustedTypes,l=c$1?c$1.emptyScript:"",p=a.reactiveElementPolyfillSupport,d=(t,s)=>t,u={toAttribute(t,s){switch(s){case Boolean:t=t?l:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t);}return t},fromAttribute(t,s){let i=t;switch(s){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t);}catch(t){i=null;}}return i}},f$2=(t,s)=>!i$1(t,s),b={attribute:true,type:String,converter:u,reflect:false,useDefault:false,hasChanged:f$2};Symbol.metadata??=Symbol("metadata"),a.litPropertyMetadata??=new WeakMap;class y extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t);}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,s=b){if(s.state&&(s.attribute=false),this._$Ei(),this.prototype.hasOwnProperty(t)&&((s=Object.create(s)).wrapped=true),this.elementProperties.set(t,s),!s.noAccessor){const i=Symbol(),h=this.getPropertyDescriptor(t,i,s);void 0!==h&&e$1(this.prototype,t,h);}}static getPropertyDescriptor(t,s,i){const{get:e,set:r}=h$2(this.prototype,t)??{get(){return this[s]},set(t){this[s]=t;}};return {get:e,set(s){const h=e?.call(this);r?.call(this,s),this.requestUpdate(t,h,i);},configurable:true,enumerable:true}}static getPropertyOptions(t){return this.elementProperties.get(t)??b}static _$Ei(){if(this.hasOwnProperty(d("elementProperties")))return;const t=n$2(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(d("finalized")))return;if(this.finalized=true,this._$Ei(),this.hasOwnProperty(d("properties"))){const t=this.properties,s=[...r$1(t),...o$4(t)];for(const i of s)this.createProperty(i,t[i]);}const t=this[Symbol.metadata];if(null!==t){const s=litPropertyMetadata.get(t);if(void 0!==s)for(const[t,i]of s)this.elementProperties.set(t,i);}this._$Eh=new Map;for(const[t,s]of this.elementProperties){const i=this._$Eu(t,s);void 0!==i&&this._$Eh.set(i,t);}this.elementStyles=this.finalizeStyles(this.styles);}static finalizeStyles(s){const i=[];if(Array.isArray(s)){const e=new Set(s.flat(1/0).reverse());for(const s of e)i.unshift(c$2(s));}else void 0!==s&&i.push(c$2(s));return i}static _$Eu(t,s){const i=s.attribute;return false===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=false,this.hasUpdated=false,this._$Em=null,this._$Ev();}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)));}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.();}removeController(t){this._$EO?.delete(t);}_$E_(){const t=new Map,s=this.constructor.elementProperties;for(const i of s.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t);}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return S(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(true),this._$EO?.forEach((t=>t.hostConnected?.()));}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()));}attributeChangedCallback(t,s,i){this._$AK(t,i);}_$ET(t,s){const i=this.constructor.elementProperties.get(t),e=this.constructor._$Eu(t,i);if(void 0!==e&&true===i.reflect){const h=(void 0!==i.converter?.toAttribute?i.converter:u).toAttribute(s,i.type);this._$Em=t,null==h?this.removeAttribute(e):this.setAttribute(e,h),this._$Em=null;}}_$AK(t,s){const i=this.constructor,e=i._$Eh.get(t);if(void 0!==e&&this._$Em!==e){const t=i.getPropertyOptions(e),h="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:u;this._$Em=e;const r=h.fromAttribute(s,t.type);this[e]=r??this._$Ej?.get(e)??r,this._$Em=null;}}requestUpdate(t,s,i){if(void 0!==t){const e=this.constructor,h=this[t];if(i??=e.getPropertyOptions(t),!((i.hasChanged??f$2)(h,s)||i.useDefault&&i.reflect&&h===this._$Ej?.get(t)&&!this.hasAttribute(e._$Eu(t,i))))return;this.C(t,s,i);} false===this.isUpdatePending&&(this._$ES=this._$EP());}C(t,s,{useDefault:i,reflect:e,wrapped:h},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??s??this[t]),true!==h||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(s=void 0),this._$AL.set(t,s)),true===e&&this._$Em!==t&&(this._$Eq??=new Set).add(t));}async _$EP(){this.isUpdatePending=true;try{await this._$ES;}catch(t){Promise.reject(t);}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,s]of this._$Ep)this[t]=s;this._$Ep=void 0;}const t=this.constructor.elementProperties;if(t.size>0)for(const[s,i]of t){const{wrapped:t}=i,e=this[s];true!==t||this._$AL.has(s)||void 0===e||this.C(s,void 0,i,e);}}let t=false;const s=this._$AL;try{t=this.shouldUpdate(s),t?(this.willUpdate(s),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(s)):this._$EM();}catch(s){throw t=false,this._$EM(),s}t&&this._$AE(s);}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=true,this.firstUpdated(t)),this.updated(t);}_$EM(){this._$AL=new Map,this.isUpdatePending=false;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return true}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM();}updated(t){}firstUpdated(t){}}y.elementStyles=[],y.shadowRootOptions={mode:"open"},y[d("elementProperties")]=new Map,y[d("finalized")]=new Map,p?.({ReactiveElement:y}),(a.reactiveElementVersions??=[]).push("2.1.1");
|
|
65
65
|
|
|
66
66
|
/**
|
|
67
67
|
* @license
|
|
68
68
|
* Copyright 2017 Google LLC
|
|
69
69
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
70
|
-
*/const s=globalThis;class i extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}i._$litElement$=true,i["finalized"]=true,s.litElementHydrateSupport?.({LitElement:i});const o$
|
|
70
|
+
*/const s$1=globalThis;class i extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=B(r,this.renderRoot,this.renderOptions);}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(true);}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(false);}render(){return T}}i._$litElement$=true,i["finalized"]=true,s$1.litElementHydrateSupport?.({LitElement:i});const o$3=s$1.litElementPolyfillSupport;o$3?.({LitElement:i});(s$1.litElementVersions??=[]).push("4.2.1");
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* @license
|
|
74
|
+
* Copyright 2020 Google LLC
|
|
75
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
76
|
+
*/const f$1=o=>void 0===o.strings;
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* @license
|
|
80
|
+
* Copyright 2017 Google LLC
|
|
81
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
82
|
+
*/const s=(i,t)=>{const e=i._$AN;if(void 0===e)return false;for(const i of e)i._$AO?.(t,false),s(i,t);return true},o$2=i=>{let t,e;do{if(void 0===(t=i._$AM))break;e=t._$AN,e.delete(i),i=t;}while(0===e?.size)},r=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(void 0===e)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),c(t);}};function h$1(i){ void 0!==this._$AN?(o$2(this),this._$AM=i,r(this)):this._$AM=i;}function n$1(i,t=false,e=0){const r=this._$AH,h=this._$AN;if(void 0!==h&&0!==h.size)if(t)if(Array.isArray(r))for(let i=e;i<r.length;i++)s(r[i],false),o$2(r[i]);else null!=r&&(s(r,false),o$2(r));else s(this,i);}const c=i=>{i.type==t$1.CHILD&&(i._$AP??=n$1,i._$AQ??=h$1);};class f extends i$3{constructor(){super(...arguments),this._$AN=void 0;}_$AT(i,t,e){super._$AT(i,t,e),r(this),this.isConnected=i._$AU;}_$AO(i,t=true){i!==this.isConnected&&(this.isConnected=i,i?this.reconnected?.():this.disconnected?.()),t&&(s(this,i),o$2(this));}setValue(t){if(f$1(this._$Ct))this._$Ct._$AI(t,this);else {const i=[...this._$Ct._$AH];i[this._$Ci]=t,this._$Ct._$AI(i,this,0);}}disconnected(){}reconnected(){}}
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* @license
|
|
86
|
+
* Copyright 2020 Google LLC
|
|
87
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
88
|
+
*/const e=()=>new h;class h{}const o$1=new WeakMap,n=e$4(class extends f{render(i){return E}update(i,[s]){const e=s!==this.G;return e&&void 0!==this.G&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.G=s,this.ht=i.options?.host,this.rt(this.ct=i.element)),E}rt(t){if(this.isConnected||(t=void 0),"function"==typeof this.G){const i=this.ht??globalThis;let s=o$1.get(i);void 0===s&&(s=new WeakMap,o$1.set(i,s)),void 0!==s.get(this.G)&&this.G.call(this.ht,void 0),s.set(this.G,t),void 0!==t&&this.G.call(this.ht,t);}else this.G.value=t;}get lt(){return "function"==typeof this.G?o$1.get(this.ht??globalThis)?.get(this.G):this.G?.value}disconnected(){this.lt===this.ct&&this.rt(void 0);}reconnected(){this.rt(this.ct);}});
|
|
71
89
|
|
|
72
90
|
// Copyright (c) Alaska Air. All right reserved. Licensed under the Apache-2.0 license
|
|
73
91
|
// See LICENSE in the project root for license information.
|
|
@@ -165,6 +183,9 @@ const oppositeAlignmentMap = {
|
|
|
165
183
|
start: 'end',
|
|
166
184
|
end: 'start'
|
|
167
185
|
};
|
|
186
|
+
function clamp(start, value, end) {
|
|
187
|
+
return max(start, min(value, end));
|
|
188
|
+
}
|
|
168
189
|
function evaluate(value, param) {
|
|
169
190
|
return typeof value === 'function' ? value(param) : value;
|
|
170
191
|
}
|
|
@@ -807,6 +828,84 @@ const offset$1 = function (options) {
|
|
|
807
828
|
};
|
|
808
829
|
};
|
|
809
830
|
|
|
831
|
+
/**
|
|
832
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
833
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
834
|
+
* @see https://floating-ui.com/docs/shift
|
|
835
|
+
*/
|
|
836
|
+
const shift$1 = function (options) {
|
|
837
|
+
if (options === void 0) {
|
|
838
|
+
options = {};
|
|
839
|
+
}
|
|
840
|
+
return {
|
|
841
|
+
name: 'shift',
|
|
842
|
+
options,
|
|
843
|
+
async fn(state) {
|
|
844
|
+
const {
|
|
845
|
+
x,
|
|
846
|
+
y,
|
|
847
|
+
placement
|
|
848
|
+
} = state;
|
|
849
|
+
const {
|
|
850
|
+
mainAxis: checkMainAxis = true,
|
|
851
|
+
crossAxis: checkCrossAxis = false,
|
|
852
|
+
limiter = {
|
|
853
|
+
fn: _ref => {
|
|
854
|
+
let {
|
|
855
|
+
x,
|
|
856
|
+
y
|
|
857
|
+
} = _ref;
|
|
858
|
+
return {
|
|
859
|
+
x,
|
|
860
|
+
y
|
|
861
|
+
};
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
...detectOverflowOptions
|
|
865
|
+
} = evaluate(options, state);
|
|
866
|
+
const coords = {
|
|
867
|
+
x,
|
|
868
|
+
y
|
|
869
|
+
};
|
|
870
|
+
const overflow = await detectOverflow(state, detectOverflowOptions);
|
|
871
|
+
const crossAxis = getSideAxis(getSide(placement));
|
|
872
|
+
const mainAxis = getOppositeAxis(crossAxis);
|
|
873
|
+
let mainAxisCoord = coords[mainAxis];
|
|
874
|
+
let crossAxisCoord = coords[crossAxis];
|
|
875
|
+
if (checkMainAxis) {
|
|
876
|
+
const minSide = mainAxis === 'y' ? 'top' : 'left';
|
|
877
|
+
const maxSide = mainAxis === 'y' ? 'bottom' : 'right';
|
|
878
|
+
const min = mainAxisCoord + overflow[minSide];
|
|
879
|
+
const max = mainAxisCoord - overflow[maxSide];
|
|
880
|
+
mainAxisCoord = clamp(min, mainAxisCoord, max);
|
|
881
|
+
}
|
|
882
|
+
if (checkCrossAxis) {
|
|
883
|
+
const minSide = crossAxis === 'y' ? 'top' : 'left';
|
|
884
|
+
const maxSide = crossAxis === 'y' ? 'bottom' : 'right';
|
|
885
|
+
const min = crossAxisCoord + overflow[minSide];
|
|
886
|
+
const max = crossAxisCoord - overflow[maxSide];
|
|
887
|
+
crossAxisCoord = clamp(min, crossAxisCoord, max);
|
|
888
|
+
}
|
|
889
|
+
const limitedCoords = limiter.fn({
|
|
890
|
+
...state,
|
|
891
|
+
[mainAxis]: mainAxisCoord,
|
|
892
|
+
[crossAxis]: crossAxisCoord
|
|
893
|
+
});
|
|
894
|
+
return {
|
|
895
|
+
...limitedCoords,
|
|
896
|
+
data: {
|
|
897
|
+
x: limitedCoords.x - x,
|
|
898
|
+
y: limitedCoords.y - y,
|
|
899
|
+
enabled: {
|
|
900
|
+
[mainAxis]: checkMainAxis,
|
|
901
|
+
[crossAxis]: checkCrossAxis
|
|
902
|
+
}
|
|
903
|
+
}
|
|
904
|
+
};
|
|
905
|
+
}
|
|
906
|
+
};
|
|
907
|
+
};
|
|
908
|
+
|
|
810
909
|
function hasWindow() {
|
|
811
910
|
return typeof window !== 'undefined';
|
|
812
911
|
}
|
|
@@ -1639,6 +1738,13 @@ const offset = offset$1;
|
|
|
1639
1738
|
*/
|
|
1640
1739
|
const autoPlacement = autoPlacement$1;
|
|
1641
1740
|
|
|
1741
|
+
/**
|
|
1742
|
+
* Optimizes the visibility of the floating element by shifting it in order to
|
|
1743
|
+
* keep it in view when it will overflow the clipping boundary.
|
|
1744
|
+
* @see https://floating-ui.com/docs/shift
|
|
1745
|
+
*/
|
|
1746
|
+
const shift = shift$1;
|
|
1747
|
+
|
|
1642
1748
|
/**
|
|
1643
1749
|
* Optimizes the visibility of the floating element by flipping the `placement`
|
|
1644
1750
|
* in order to keep it in view when the preferred placement(s) will overflow the
|
|
@@ -1837,6 +1943,7 @@ class AuroFloatingUI {
|
|
|
1837
1943
|
// Define the middlware for the floater configuration
|
|
1838
1944
|
const middleware = [
|
|
1839
1945
|
offset(this.element.floaterConfig?.offset || 0),
|
|
1946
|
+
...this.element.floaterConfig?.shift ? [shift()] : [], // Add shift middleware if shift is enabled.
|
|
1840
1947
|
...this.element.floaterConfig?.flip ? [flip()] : [], // Add flip middleware if flip is enabled.
|
|
1841
1948
|
...this.element.floaterConfig?.autoPlacement ? [autoPlacement()] : [], // Add autoPlacement middleware if autoPlacement is enabled.
|
|
1842
1949
|
];
|
|
@@ -2606,7 +2713,7 @@ class AuroDependencyVersioning {
|
|
|
2606
2713
|
*/
|
|
2607
2714
|
generateTag(baseName, version, tagClass) {
|
|
2608
2715
|
const elementName = this.generateElementName(baseName, version);
|
|
2609
|
-
const tag = i$4`${s$
|
|
2716
|
+
const tag = i$4`${s$3(elementName)}`;
|
|
2610
2717
|
|
|
2611
2718
|
if (!customElements.get(elementName)) {
|
|
2612
2719
|
customElements.define(elementName, class extends tagClass {});
|
|
@@ -3003,7 +3110,7 @@ class AuroIcon extends BaseIcon {
|
|
|
3003
3110
|
return x`
|
|
3004
3111
|
<div class="componentWrapper">
|
|
3005
3112
|
<div
|
|
3006
|
-
class="${e$
|
|
3113
|
+
class="${e$3(svgClasses)}"
|
|
3007
3114
|
title="${o(this.title || undefined)}">
|
|
3008
3115
|
<span aria-hidden="${o(this.ariaHidden || true)}" part="svg">
|
|
3009
3116
|
${this.customSvg ? x`
|
|
@@ -3015,7 +3122,7 @@ class AuroIcon extends BaseIcon {
|
|
|
3015
3122
|
</span>
|
|
3016
3123
|
</div>
|
|
3017
3124
|
|
|
3018
|
-
<div class="${e$
|
|
3125
|
+
<div class="${e$3(labelClasses)}">
|
|
3019
3126
|
<slot></slot>
|
|
3020
3127
|
</div>
|
|
3021
3128
|
</div>
|
|
@@ -3025,7 +3132,7 @@ class AuroIcon extends BaseIcon {
|
|
|
3025
3132
|
|
|
3026
3133
|
var iconVersion = '8.1.2';
|
|
3027
3134
|
|
|
3028
|
-
var styleCss$2 = i$2`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}: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([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}: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}.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}`;
|
|
3135
|
+
var styleCss$2 = i$2`:host{position:fixed;z-index:var(--depth-tooltip, 400);display:none;isolation:isolate}: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([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}: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}.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}`;
|
|
3029
3136
|
|
|
3030
3137
|
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)}`;
|
|
3031
3138
|
|
|
@@ -3215,7 +3322,7 @@ class AuroDropdownBib extends i {
|
|
|
3215
3322
|
classes[`shape-${this.shape}`] = true;
|
|
3216
3323
|
|
|
3217
3324
|
return u$1`
|
|
3218
|
-
<div class="${e$
|
|
3325
|
+
<div class="${e$3(classes)}" part="bibContainer">
|
|
3219
3326
|
<slot></slot>
|
|
3220
3327
|
</div>
|
|
3221
3328
|
`;
|
|
@@ -3228,7 +3335,7 @@ var shapeSizeCss = i$2`.wrapper{overflow:hidden}.shape-classic-xl,.shape-classic
|
|
|
3228
3335
|
|
|
3229
3336
|
var colorCss$1 = i$2`:host(:not([layout*=classic])){--ds-auro-dropdown-trigger-border-color: transparent}:host(:not([ondark])) .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-within,:host(:not([ondark])) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused, #01426a);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused, #01426a)}:host(:not([ondark])) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}:host(:not([onDark])[disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-disabled, #d0d0d0);--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-border-subtle, #dddddd)}:host(:not([ondark])[error]){--ds-auro-dropdown-trigger-border-color: var(--ds-basic-color-status-error, #e31f26)}:host([onDark]) .label,:host([onDark]) .helpText{color:var(--ds-auro-dropdown-label-text-color)}:host([onDark]) .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([onDark]) .wrapper:focus-within,:host([onDark]) .wrapper:active{--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-focused-inverse, #ffffff);--ds-auro-dropdown-trigger-outline-color: var(--ds-advanced-color-state-focused-inverse, #ffffff)}:host([onDark]) .wrapper:hover{--ds-auro-dropdown-trigger-background-color: var(--ds-auro-dropdown-trigger-hover-background-color)}:host([onDark][disabled]){--ds-auro-dropdown-trigger-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-label-text-color: var(--ds-basic-color-texticon-inverse-disabled, #7e8894);--ds-auro-dropdown-trigger-container-color: var(--ds-advanced-color-shared-background-inverse-disabled, rgba(255, 255, 255, 0.1))}:host([ondark][error]){--ds-auro-dropdown-trigger-border-color: var(--ds-advanced-color-state-error-inverse, #f9a4a8)}`;
|
|
3230
3337
|
|
|
3231
|
-
var styleCss$1 = i$2`:host{position:relative;display:block;text-align:left;
|
|
3338
|
+
var styleCss$1 = i$2`:host{position:relative;display:block;text-align:left}[popover=manual]{overflow:visible;padding:0;border:inherit;margin:0;background:inherit;outline:inherit}:host([open]){z-index:var(--depth-tooltip, 400)}.wrapper{display:flex;flex:1;flex-direction:row;align-items:center;justify-content:center;outline:none}.triggerContentWrapper{display:flex;overflow:hidden;width:100%;flex:1;align-items:center;justify-content:center;text-overflow:ellipsis;white-space:nowrap}:host([matchwidth]) #bibSizer{width:100%}`;
|
|
3232
3339
|
|
|
3233
3340
|
var classicColorCss = i$2``;
|
|
3234
3341
|
|
|
@@ -3586,6 +3693,9 @@ class AuroDropdown extends AuroElement {
|
|
|
3586
3693
|
/** @private */
|
|
3587
3694
|
this.handleDropdownToggle = this.handleDropdownToggle.bind(this);
|
|
3588
3695
|
|
|
3696
|
+
/** @private */
|
|
3697
|
+
this.bibElement = e();
|
|
3698
|
+
|
|
3589
3699
|
this.privateDefaults();
|
|
3590
3700
|
}
|
|
3591
3701
|
|
|
@@ -3624,6 +3734,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3624
3734
|
this.placement = 'bottom-start';
|
|
3625
3735
|
this.offset = 0;
|
|
3626
3736
|
this.noFlip = false;
|
|
3737
|
+
this.shift = false;
|
|
3627
3738
|
this.autoPlacement = false;
|
|
3628
3739
|
|
|
3629
3740
|
/**
|
|
@@ -3688,6 +3799,7 @@ class AuroDropdown extends AuroElement {
|
|
|
3688
3799
|
return {
|
|
3689
3800
|
placement: this.placement,
|
|
3690
3801
|
flip: !this.noFlip,
|
|
3802
|
+
shift: this.shift,
|
|
3691
3803
|
autoPlacement: this.autoPlacement,
|
|
3692
3804
|
offset: this.offset,
|
|
3693
3805
|
};
|
|
@@ -3888,6 +4000,15 @@ class AuroDropdown extends AuroElement {
|
|
|
3888
4000
|
reflect: true
|
|
3889
4001
|
},
|
|
3890
4002
|
|
|
4003
|
+
/**
|
|
4004
|
+
* If declared, the dropdown will shift its position to avoid being cut off by the viewport.
|
|
4005
|
+
* @default false
|
|
4006
|
+
*/
|
|
4007
|
+
shift: {
|
|
4008
|
+
type: Boolean,
|
|
4009
|
+
reflect: true
|
|
4010
|
+
},
|
|
4011
|
+
|
|
3891
4012
|
/**
|
|
3892
4013
|
* If declared, the dropdown will not hide when moving focus outside the element.
|
|
3893
4014
|
*/
|
|
@@ -4022,6 +4143,14 @@ class AuroDropdown extends AuroElement {
|
|
|
4022
4143
|
if (changedProperties.size === 0 || changedProperties.has('isPopoverVisible')) {
|
|
4023
4144
|
this.handleTriggerContentSlotChange();
|
|
4024
4145
|
}
|
|
4146
|
+
|
|
4147
|
+
if (changedProperties.has('isPopoverVisible') && this.bibElement.value) {
|
|
4148
|
+
if (this.isPopoverVisible) {
|
|
4149
|
+
this.bibElement.value.showPopover();
|
|
4150
|
+
} else {
|
|
4151
|
+
this.bibElement.value.hidePopover();
|
|
4152
|
+
}
|
|
4153
|
+
}
|
|
4025
4154
|
}
|
|
4026
4155
|
|
|
4027
4156
|
/**
|
|
@@ -4326,7 +4455,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4326
4455
|
<div>
|
|
4327
4456
|
<div
|
|
4328
4457
|
id="trigger"
|
|
4329
|
-
class="${e$
|
|
4458
|
+
class="${e$3(this.commonWrapperClasses)}" part="wrapper"
|
|
4330
4459
|
tabindex="${o(this.triggerContentFocusable ? undefined : this.tabIndex)}"
|
|
4331
4460
|
role="${o(this.triggerContentFocusable ? undefined : this.a11yRole)}"
|
|
4332
4461
|
aria-expanded="${o(this.a11yRole === 'button' || this.triggerContentFocusable ? undefined : this.isPopoverVisible)}"
|
|
@@ -4354,7 +4483,7 @@ class AuroDropdown extends AuroElement {
|
|
|
4354
4483
|
</div>
|
|
4355
4484
|
` : undefined }
|
|
4356
4485
|
</div>
|
|
4357
|
-
<div class="${e$
|
|
4486
|
+
<div class="${e$3(helpTextClasses)}">
|
|
4358
4487
|
<slot name="helpText"></slot>
|
|
4359
4488
|
</div>
|
|
4360
4489
|
<div id="bibSizer" part="size"></div>
|
|
@@ -4362,7 +4491,10 @@ class AuroDropdown extends AuroElement {
|
|
|
4362
4491
|
id="bib"
|
|
4363
4492
|
shape="${this.shape}"
|
|
4364
4493
|
?data-show="${this.isPopoverVisible}"
|
|
4365
|
-
?isfullscreen="${this.isBibFullscreen}"
|
|
4494
|
+
?isfullscreen="${this.isBibFullscreen}"
|
|
4495
|
+
${n(this.bibElement)}
|
|
4496
|
+
popover="manual"
|
|
4497
|
+
>
|
|
4366
4498
|
<div class="slotContent">
|
|
4367
4499
|
<slot @slotchange="${this.handleDefaultSlot}"></slot>
|
|
4368
4500
|
</div>
|