@duyluonganduin/acl-web-components 0.0.37 → 0.0.39
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/dist/acl-web-components.cjs +1 -1
- package/dist/acl-web-components.iife.js +35 -29
- package/dist/acl-web-components.js +1 -1
- package/dist/{anduin-resizable-Cd7pgK77.js → anduin-resizable-B0NdBVJ8.js} +12 -6
- package/dist/{anduin-resizable-BwIKsJVA.cjs → anduin-resizable-Df1balNa.cjs} +10 -4
- package/dist/react.cjs +1 -1
- package/dist/react.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./anduin-resizable-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./anduin-resizable-Df1balNa.cjs"),i=':root{--color-gray-0: oklch(1 0 0);--color-gray-1: oklch(.9846 .0017 247.84);--color-gray-2: oklch(.9515 .0046 258.32);--color-gray-3: oklch(.9336 .0058 264.53);--color-gray-4: oklch(.8618 .0141 258.35);--color-gray-5: oklch(.7073 .0268 263.28);--color-gray-6: oklch(.6528 .0316 266.24);--color-gray-7: oklch(.5371 .0337 264.24);--color-gray-8: oklch(.3544 .0326 260.94);--color-gray-9: oklch(.2776 .0341 255.81);--color-danger-1: oklch(.9437 .0174 17.47);--color-danger-2: oklch(.8643 .0573 18.32);--color-danger-3: oklch(.712 .1517 21.64);--color-danger-4: oklch(.5948 .2165 26.91);--color-danger-5: oklch(.531 .2147 28.91);--color-primary-1: oklch(.9474 .0256 221.57);--color-primary-2: oklch(.8652 .066 236.86);--color-primary-3: oklch(.7219 .1335 240.15);--color-primary-4: oklch(.5679 .1784 254.76);--color-primary-5: oklch(.4682 .1548 255.23);--color-success-1: oklch(.9276 .0541 150.91);--color-success-2: oklch(.8592 .1078 149.75);--color-success-3: oklch(.6953 .1711 149.14);--color-success-4: oklch(.6149 .1634 148.21);--color-success-5: oklch(.5075 .136 146.46);--color-warning-1: oklch(.9549 .0496 88.08);--color-warning-2: oklch(.912 .0811 83.56);--color-warning-3: oklch(.8282 .1628 78.73);--color-warning-4: oklch(.7325 .1512 75.97);--color-warning-5: oklch(.5329 .1098 82);--color-semantic-gray-0: oklch(1 0 0);--color-semantic-gray-1: oklch(.9846 .0017 247.84);--color-semantic-gray-2: oklch(.9515 .0046 258.32);--color-semantic-gray-3: oklch(.9336 .0058 264.53);--color-semantic-gray-4: oklch(.8618 .0141 258.35);--color-semantic-gray-5: oklch(.7073 .0268 263.28);--color-semantic-gray-6: oklch(.6528 .0316 266.24);--color-semantic-gray-7: oklch(.5371 .0337 264.24);--color-semantic-gray-8: oklch(.3544 .0326 260.94);--color-semantic-gray-9: oklch(.2776 .0341 255.81);--color-semantic-danger-1: oklch(.9437 .0174 17.47);--color-semantic-danger-2: oklch(.8643 .0573 18.32);--color-semantic-danger-3: oklch(.712 .1517 21.64);--color-semantic-danger-4: oklch(.5948 .2165 26.91);--color-semantic-danger-5: oklch(.531 .2147 28.91);--color-semantic-primary-1: oklch(.9474 .0256 221.57);--color-semantic-primary-2: oklch(.8652 .066 236.86);--color-semantic-primary-3: oklch(.7219 .1335 240.15);--color-semantic-primary-4: oklch(.5679 .1784 254.76);--color-semantic-primary-5: oklch(.4682 .1548 255.23);--color-semantic-success-1: oklch(.9276 .0541 150.91);--color-semantic-success-2: oklch(.8592 .1078 149.75);--color-semantic-success-3: oklch(.6953 .1711 149.14);--color-semantic-success-4: oklch(.6149 .1634 148.21);--color-semantic-success-5: oklch(.5075 .136 146.46);--color-semantic-warning-1: oklch(.9549 .0496 88.08);--color-semantic-warning-2: oklch(.912 .0811 83.56);--color-semantic-warning-3: oklch(.8282 .1628 78.73);--color-semantic-warning-4: oklch(.7325 .1512 75.97);--color-semantic-warning-5: oklch(.5329 .1098 82);--color-purple-50: oklch(.9676 .016 286.1);--color-purple-100: oklch(.9434 .0255 288.32);--color-purple-200: oklch(.8927 .0519 287.71);--color-purple-300: oklch(.81 .0925 287.61);--color-purple-400: oklch(.7048 .1478 287.77);--color-purple-500: oklch(.5961 .2043 286.53);--color-purple-600: oklch(.5316 .2303 286.64);--color-purple-700: oklch(.471 .2307 285.3);--color-purple-800: oklch(.4148 .2014 285.43);--color-purple-900: oklch(.3654 .17 286.37);--color-purple-950: oklch(.2734 .1288 284.42);--color-white: var(--color-gray-0);--font-sans: system-ui, -apple-system, Roboto, Oxygen, Cantarell, Ubuntu, "Segoe UI", sans-serif;--font-mono: monospace;--text-9: 9px;--text-10: 10px;--text-11: 11px;--text-12: 12px;--text-13: 13px;--text-15: 15px;--text-17: 17px;--text-20: 20px;--text-23: 23px;--text-26: 26px;--text-30: 30px;--text-35: 35px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--leading-16: 16px;--leading-20: 20px;--leading-24: 24px;--leading-28: 28px;--leading-32: 32px;--leading-40: 40px;--leading-44: 44px;--leading-r1p5: 1.5;--radius-0: 0;--radius-2: 2px;--radius-3: 3px;--radius-4: 4px;--radius-6: 6px;--radius-8: 8px;--radius-12: 12px;--radius-16: 16px;--radius-20: 20px;--radius-24: 24px;--radius-full: 9999px;--shadow-1: 0px 1px 2px rgba(29, 41, 57, .07);--shadow-2: 0px 1px 2px rgba(29, 41, 57, .04), 0px 2px 8px rgba(29, 41, 57, .08);--shadow-3: 0px 2px 8px rgba(29, 41, 57, .08), 0px 8px 24px rgba(29, 41, 57, .12);--shadow-4: 0px 4px 8px rgba(29, 41, 57, .08), 0px 16px 48px rgba(29, 41, 57, .16);--spacing-px: 1px;--spacing-0: 0;--spacing-2: 2px;--spacing-4: 4px;--spacing-6: 6px;--spacing-8: 8px;--spacing-12: 12px;--spacing-16: 16px;--spacing-20: 20px;--spacing-24: 24px;--spacing-28: 28px;--spacing-32: 32px;--spacing-40: 40px;--spacing-48: 48px;--spacing-56: 56px;--spacing-64: 64px;--spacing-128: 128px;--spacing-256: 256px;--z-0: 0;--z-1: 1;--z-2: 2;--z-3: 3;--z-4: 4;--z-5: 5;--z-999: 999;--z-9999: 9999}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-13)}';if(typeof document<"u"&&!document.getElementById("acl-tokens")){const o=document.createElement("style");o.id="acl-tokens",o.textContent=i,document.head.appendChild(o)}exports.AnduinAvatar=n.AnduinAvatar;exports.AnduinBadge=n.AnduinBadge;exports.AnduinBadgeCount=n.AnduinBadgeCount;exports.AnduinButton=n.AnduinButton;exports.AnduinCallout=n.AnduinCallout;exports.AnduinCheckbox=n.AnduinCheckbox;exports.AnduinDivider=n.AnduinDivider;exports.AnduinDot=n.AnduinDot;exports.AnduinDrawer=n.AnduinDrawer;exports.AnduinDrawerClose=n.AnduinDrawerClose;exports.AnduinDropdown=n.AnduinDropdown;exports.AnduinField=n.AnduinField;exports.AnduinFieldDescription=n.AnduinFieldDescription;exports.AnduinFieldError=n.AnduinFieldError;exports.AnduinFieldGroup=n.AnduinFieldGroup;exports.AnduinFieldLabel=n.AnduinFieldLabel;exports.AnduinFileIcon=n.AnduinFileIcon;exports.AnduinIcon=n.AnduinIcon;exports.AnduinInput=n.AnduinInput;exports.AnduinLoadingState=n.AnduinLoadingState;exports.AnduinMenu=n.AnduinMenu;exports.AnduinMenuItem=n.AnduinMenuItem;exports.AnduinModal=n.AnduinModal;exports.AnduinModalClose=n.AnduinModalClose;exports.AnduinNavigation=n.AnduinNavigation;exports.AnduinNavigationItem=n.AnduinNavigationItem;exports.AnduinPopover=n.AnduinPopover;exports.AnduinPopoverClose=n.AnduinPopoverClose;exports.AnduinProgress=n.AnduinProgress;exports.AnduinRadio=n.AnduinRadio;exports.AnduinRadioGroup=n.AnduinRadioGroup;exports.AnduinResizableHandle=n.AnduinResizableHandle;exports.AnduinResizablePanel=n.AnduinResizablePanel;exports.AnduinResizablePanelGroup=n.AnduinResizablePanelGroup;exports.AnduinSkeleton=n.AnduinSkeleton;exports.AnduinSparkleSpinner=n.AnduinSparkleSpinner;exports.AnduinSpinner=n.AnduinSpinner;exports.AnduinSuggestion=n.AnduinSuggestion;exports.AnduinSwitcher=n.AnduinSwitcher;exports.AnduinTabContent=n.AnduinTabContent;exports.AnduinTabTrigger=n.AnduinTabTrigger;exports.AnduinTabs=n.AnduinTabs;exports.AnduinTabsList=n.AnduinTabsList;exports.AnduinTag=n.AnduinTag;exports.AnduinTagClose=n.AnduinTagClose;exports.AnduinTextarea=n.AnduinTextarea;exports.AnduinToast=n.AnduinToast;exports.AnduinToaster=n.AnduinToaster;exports.AnduinToggleGroup=n.AnduinToggleGroup;exports.AnduinToggleGroupItem=n.AnduinToggleGroupItem;exports.AnduinTooltip=n.AnduinTooltip;exports.AnduinTooltipContent=n.AnduinTooltipContent;exports.AnduinTooltipTrigger=n.AnduinTooltipTrigger;exports.AnduinWell=n.AnduinWell;exports.AnduinWellClose=n.AnduinWellClose;exports.BADGE_STYLES=n.BADGE_STYLES;exports.CHECKBOX_CHANGE=n.CHECKBOX_CHANGE;exports.DRAWER_AFTER_CLOSE_EVENT=n.DRAWER_AFTER_CLOSE_EVENT;exports.DRAWER_CLOSE_EVENT=n.DRAWER_CLOSE_EVENT;exports.DROPDOWN_CHANGE=n.DROPDOWN_CHANGE;exports.FIELD_LABEL_CLICK=n.FIELD_LABEL_CLICK;exports.FIELD_LABEL_CLICK_COORDINATED=n.FIELD_LABEL_CLICK_COORDINATED;exports.FILE_ICONS=n.FILE_ICONS;exports.INPUT_CHANGE=n.INPUT_CHANGE;exports.INPUT_CLEAR=n.INPUT_CLEAR;exports.MENU_ITEM_CLICK=n.MENU_ITEM_CLICK;exports.MODAL_AFTER_CLOSE_EVENT=n.MODAL_AFTER_CLOSE_EVENT;exports.MODAL_CLOSE_EVENT=n.MODAL_CLOSE_EVENT;exports.NAVIGATION_CHANGE=n.NAVIGATION_CHANGE;exports.NAVIGATION_ITEM_CLICK=n.NAVIGATION_ITEM_CLICK;exports.POPOVER_CLOSE=n.POPOVER_CLOSE;exports.RADIO_CHANGE=n.RADIO_CHANGE;exports.RADIO_GROUP_CHANGE=n.RADIO_GROUP_CHANGE;exports.RESIZE_EVENT=n.RESIZE_EVENT;exports.SUGGESTION_CHANGE=n.SUGGESTION_CHANGE;exports.SUGGESTION_CLEAR=n.SUGGESTION_CLEAR;exports.SUGGESTION_SELECT=n.SUGGESTION_SELECT;exports.SWITCHER_CHANGE=n.SWITCHER_CHANGE;exports.TAB_CHANGE=n.TAB_CHANGE;exports.TAB_TRIGGER_CLICK=n.TAB_TRIGGER_CLICK;exports.TAB_VALUE_CHANGED=n.TAB_VALUE_CHANGED;exports.TAG_CLOSE_CLICK=n.TAG_CLOSE_CLICK;exports.TEXTAREA_CHANGE=n.TEXTAREA_CHANGE;exports.TOGGLE_GROUP_CHANGE=n.TOGGLE_GROUP_CHANGE;exports.TOGGLE_GROUP_ITEM_CHANGE=n.TOGGLE_GROUP_ITEM_CHANGE;exports.TOGGLE_GROUP_ITEM_CLICK=n.TOGGLE_GROUP_ITEM_CLICK;exports.TOGGLE_GROUP_ITEM_DESELECT=n.TOGGLE_GROUP_ITEM_DESELECT;exports.TOGGLE_GROUP_ITEM_SELECT=n.TOGGLE_GROUP_ITEM_SELECT;exports.TOOLTIP_CONTENT_POPUP_MOUNTED=n.TOOLTIP_CONTENT_POPUP_MOUNTED;exports.TOOLTIP_CONTENT_POPUP_UNMOUNTED=n.TOOLTIP_CONTENT_POPUP_UNMOUNTED;exports.TOOLTIP_HIDE=n.TOOLTIP_HIDE;exports.TOOLTIP_SHOW=n.TOOLTIP_SHOW;exports.TOOLTIP_TRIGGER_MOUNTED=n.TOOLTIP_TRIGGER_MOUNTED;exports.TOOLTIP_VISIBILITY_CHANGED=n.TOOLTIP_VISIBILITY_CHANGED;exports.WELL_CLOSE_CLICK=n.WELL_CLOSE_CLICK;exports.getBadgeVariantClass=n.getBadgeVariantClass;exports.resolveFileIcon=n.resolveFileIcon;exports.toast=n.toast;
|
|
@@ -12,7 +12,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
13
|
*/const F1=globalThis,o4=r=>r,l2=F1.trustedTypes,i4=l2?l2.createPolicy("lit-html",{createHTML:r=>r}):void 0,l4="$lit$",X=`lit$${Math.random().toFixed(9).slice(2)}$`,r4="?"+X,g3=`<${r4}>`,l1=document,T1=()=>l1.createComment(""),N1=r=>r===null||typeof r!="object"&&typeof r!="function",R2=Array.isArray,v3=r=>R2(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",k2=`[
|
|
14
14
|
\f\r]`,G1=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,n4=/-->/g,a4=/>/g,r1=RegExp(`>|${k2}(?:([^\\s"'>=/]+)(${k2}*=${k2}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),s4=/'/g,C4=/"/g,d4=/^(?:script|style|textarea|title)$/i,c4=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),C=c4(1),r2=c4(2),n1=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),p4=new WeakMap,a1=l1.createTreeWalker(l1,129);function u4(r,e){if(!R2(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return i4!==void 0?i4.createHTML(e):e}const f3=(r,e)=>{const t=r.length-1,i=[];let o,l=e===2?"<svg>":e===3?"<math>":"",n=G1;for(let s=0;s<t;s++){const c=r[s];let u,v,f=-1,m=0;for(;m<c.length&&(n.lastIndex=m,v=n.exec(c),v!==null);)m=n.lastIndex,n===G1?v[1]==="!--"?n=n4:v[1]!==void 0?n=a4:v[2]!==void 0?(d4.test(v[2])&&(o=RegExp("</"+v[2],"g")),n=r1):v[3]!==void 0&&(n=r1):n===r1?v[0]===">"?(n=o??G1,f=-1):v[1]===void 0?f=-2:(f=n.lastIndex-v[2].length,u=v[1],n=v[3]===void 0?r1:v[3]==='"'?C4:s4):n===C4||n===s4?n=r1:n===n4||n===a4?n=G1:(n=r1,o=void 0);const H=n===r1&&r[s+1].startsWith("/>")?" ":"";l+=n===G1?c+g3:f>=0?(i.push(u),c.slice(0,f)+l4+c.slice(f)+X+H):c+X+(f===-2?s:H)}return[u4(r,l+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class U1{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let l=0,n=0;const s=e.length-1,c=this.parts,[u,v]=f3(e,t);if(this.el=U1.createElement(u,i),a1.currentNode=this.el.content,t===2||t===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=a1.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const f of o.getAttributeNames())if(f.endsWith(l4)){const m=v[n++],H=o.getAttribute(f).split(X),w=/([.?@])?(.*)/.exec(m);c.push({type:1,index:l,name:w[2],strings:H,ctor:w[1]==="."?m3:w[1]==="?"?V3:w[1]==="@"?
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),s4=/'/g,C4=/"/g,d4=/^(?:script|style|textarea|title)$/i,c4=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),C=c4(1),r2=c4(2),n1=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),p4=new WeakMap,a1=l1.createTreeWalker(l1,129);function u4(r,e){if(!R2(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return i4!==void 0?i4.createHTML(e):e}const f3=(r,e)=>{const t=r.length-1,i=[];let o,l=e===2?"<svg>":e===3?"<math>":"",n=G1;for(let s=0;s<t;s++){const c=r[s];let u,v,f=-1,m=0;for(;m<c.length&&(n.lastIndex=m,v=n.exec(c),v!==null);)m=n.lastIndex,n===G1?v[1]==="!--"?n=n4:v[1]!==void 0?n=a4:v[2]!==void 0?(d4.test(v[2])&&(o=RegExp("</"+v[2],"g")),n=r1):v[3]!==void 0&&(n=r1):n===r1?v[0]===">"?(n=o??G1,f=-1):v[1]===void 0?f=-2:(f=n.lastIndex-v[2].length,u=v[1],n=v[3]===void 0?r1:v[3]==='"'?C4:s4):n===C4||n===s4?n=r1:n===n4||n===a4?n=G1:(n=r1,o=void 0);const H=n===r1&&r[s+1].startsWith("/>")?" ":"";l+=n===G1?c+g3:f>=0?(i.push(u),c.slice(0,f)+l4+c.slice(f)+X+H):c+X+(f===-2?s:H)}return[u4(r,l+(r[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class U1{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let l=0,n=0;const s=e.length-1,c=this.parts,[u,v]=f3(e,t);if(this.el=U1.createElement(u,i),a1.currentNode=this.el.content,t===2||t===3){const f=this.el.content.firstChild;f.replaceWith(...f.childNodes)}for(;(o=a1.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes())for(const f of o.getAttributeNames())if(f.endsWith(l4)){const m=v[n++],H=o.getAttribute(f).split(X),w=/([.?@])?(.*)/.exec(m);c.push({type:1,index:l,name:w[2],strings:H,ctor:w[1]==="."?m3:w[1]==="?"?V3:w[1]==="@"?b3:n2}),o.removeAttribute(f)}else f.startsWith(X)&&(c.push({type:6,index:l}),o.removeAttribute(f));if(d4.test(o.tagName)){const f=o.textContent.split(X),m=f.length-1;if(m>0){o.textContent=l2?l2.emptyScript:"";for(let H=0;H<m;H++)o.append(f[H],T1()),a1.nextNode(),c.push({type:2,index:++l});o.append(f[m],T1())}}}else if(o.nodeType===8)if(o.data===r4)c.push({type:2,index:l});else{let f=-1;for(;(f=o.data.indexOf(X,f+1))!==-1;)c.push({type:7,index:l}),f+=X.length-1}l++}}static createElement(e,t){const i=l1.createElement("template");return i.innerHTML=e,i}}function M1(r,e,t=r,i){var n,s;if(e===n1)return e;let o=i!==void 0?(n=t._$Co)==null?void 0:n[i]:t._$Cl;const l=N1(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==l&&((s=o==null?void 0:o._$AO)==null||s.call(o,!1),l===void 0?o=void 0:(o=new l(r),o._$AT(r,t,i)),i!==void 0?(t._$Co??(t._$Co=[]))[i]=o:t._$Cl=o),o!==void 0&&(e=M1(r,o._$AS(r,e.values),o,i)),e}class H3{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){const{el:{content:t},parts:i}=this._$AD,o=((e==null?void 0:e.creationScope)??l1).importNode(t,!0);a1.currentNode=o;let l=a1.nextNode(),n=0,s=0,c=i[0];for(;c!==void 0;){if(n===c.index){let u;c.type===2?u=new j1(l,l.nextSibling,this,e):c.type===1?u=new c.ctor(l,c.name,c.strings,this,e):c.type===6&&(u=new L3(l,this,e)),this._$AV.push(u),c=i[++s]}n!==(c==null?void 0:c.index)&&(l=a1.nextNode(),n++)}return a1.currentNode=l1,o}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class j1{get _$AU(){var e;return((e=this._$AM)==null?void 0:e._$AU)??this._$Cv}constructor(e,t,i,o){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(o==null?void 0:o.isConnected)??!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=M1(this,e,t),N1(e)?e===p||e==null||e===""?(this._$AH!==p&&this._$AR(),this._$AH=p):e!==this._$AH&&e!==n1&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):v3(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==p&&N1(this._$AH)?this._$AA.nextSibling.data=e:this.T(l1.createTextNode(e)),this._$AH=e}$(e){var l;const{values:t,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=U1.createElement(u4(i.h,i.h[0]),this.options)),i);if(((l=this._$AH)==null?void 0:l._$AD)===o)this._$AH.p(t);else{const n=new H3(o,this),s=n.u(this.options);n.p(t),this.T(s),this._$AH=n}}_$AC(e){let t=p4.get(e.strings);return t===void 0&&p4.set(e.strings,t=new U1(e)),t}k(e){R2(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const l of e)o===t.length?t.push(i=new j1(this.O(T1()),this.O(T1()),this,this.options)):i=t[o],i._$AI(l),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e!==this._$AB;){const o=o4(e).nextSibling;o4(e).remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class n2{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,l){this.type=1,this._$AH=p,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=l,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}_$AI(e,t=this,i,o){const l=this.strings;let n=!1;if(l===void 0)e=M1(this,e,t,0),n=!N1(e)||e!==this._$AH&&e!==n1,n&&(this._$AH=e);else{const s=e;let c,u;for(e=l[0],c=0;c<l.length-1;c++)u=M1(this,s[i+c],t,c),u===n1&&(u=this._$AH[c]),n||(n=!N1(u)||u!==this._$AH[c]),u===p?e=p:e!==p&&(e+=(u??"")+l[c+1]),this._$AH[c]=u}n&&!o&&this.j(e)}j(e){e===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class m3 extends n2{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===p?void 0:e}}class V3 extends n2{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==p)}}class b3 extends n2{constructor(e,t,i,o,l){super(e,t,i,o,l),this.type=5}_$AI(e,t=this){if((e=M1(this,e,t,0)??p)===n1)return;const i=this._$AH,o=e===p&&i!==p||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,l=e!==p&&(i===p||o);o&&this.element.removeEventListener(this.name,this,i),l&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t;typeof this._$AH=="function"?this._$AH.call(((t=this.options)==null?void 0:t.host)??this.element,e):this._$AH.handleEvent(e)}}class L3{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){M1(this,e)}}const E2=F1.litHtmlPolyfillSupport;E2==null||E2(U1,j1),(F1.litHtmlVersions??(F1.litHtmlVersions=[])).push("3.3.2");const y3=(r,e,t)=>{const i=(t==null?void 0:t.renderBefore)??e;let o=i._$litPart$;if(o===void 0){const l=(t==null?void 0:t.renderBefore)??null;i._$litPart$=o=new j1(e.insertBefore(T1(),l),l,void 0,t??{})}return o._$AI(r),o};/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -24,7 +24,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
24
24
|
* @license
|
|
25
25
|
* Copyright 2017 Google LLC
|
|
26
26
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/function
|
|
27
|
+
*/function b(r){return a({...r,state:!0,attribute:!1})}/**
|
|
28
28
|
* @license
|
|
29
29
|
* Copyright 2017 Google LLC
|
|
30
30
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -298,7 +298,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
298
298
|
.button--icon-only.button--small { width: 24px; min-width: 24px; padding-left: 0; padding-right: 0; }
|
|
299
299
|
.button--icon-only.button--medium { width: 32px; min-width: 32px; padding-left: 0; padding-right: 0; }
|
|
300
300
|
.button--icon-only.button--large { width: 40px; min-width: 40px; padding-left: 0; padding-right: 0; }
|
|
301
|
-
`;let y=l5;Z([
|
|
301
|
+
`;let y=l5;Z([b()],y.prototype,"iconOnly"),Z([a({converter:r=>r||"filled"})],y.prototype,"appearance"),Z([a()],y.prototype,"variant"),Z([a()],y.prototype,"size"),Z([a({type:Boolean})],y.prototype,"disabled"),Z([a({type:Boolean})],y.prototype,"loading"),Z([a({type:Boolean,attribute:"full-width",reflect:!0})],y.prototype,"fullWidth"),Z([a({type:Boolean})],y.prototype,"pill"),Z([a({type:Boolean})],y.prototype,"selected"),Z([a()],y.prototype,"href"),Z([a({type:Boolean,attribute:"open-new-tab"})],y.prototype,"openNewTab"),Z([a()],y.prototype,"download"),Z([a({attribute:"start-icon"})],y.prototype,"startIcon"),Z([a({attribute:"end-icon"})],y.prototype,"endIcon"),Z([a()],y.prototype,"label"),customElements.get("anduin-button")||customElements.define("anduin-button",y);var P3=Object.defineProperty,S3=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&P3(e,t,o),o};const r5=class r5 extends h{constructor(){super(...arguments),this.variant="gray"}render(){return C`
|
|
302
302
|
<div class="callout callout--${this.variant}" part="callout">
|
|
303
303
|
<slot name="icon"></slot>
|
|
304
304
|
<div><slot></slot></div>
|
|
@@ -333,7 +333,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
333
333
|
.divider--vertical { margin-left: 8px; margin-right: 8px; height: 100%; display: grid; grid-template-rows: 1fr auto 1fr; row-gap: 8px; text-align: center; }
|
|
334
334
|
.divider--vertical-empty { background-color: var(--color-gray-3); width: 1px; }
|
|
335
335
|
.divider__line--vertical { border-left: 1px solid var(--color-gray-3); justify-self: center; }
|
|
336
|
-
`;let R1=n5;V4([a({reflect:!0})],R1.prototype,"direction"),V4([
|
|
336
|
+
`;let R1=n5;V4([a({reflect:!0})],R1.prototype,"direction"),V4([b()],R1.prototype,"hasContent"),customElements.get("anduin-divider")||customElements.define("anduin-divider",R1);var I3=Object.defineProperty,D3=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&I3(e,t,o),o};const a5=class a5 extends h{constructor(){super(...arguments),this.variant="gray"}render(){return C`<div class="dot dot--${this.variant}" part="dot"></div>`}};a5.styles=g`
|
|
337
337
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
338
338
|
.dot { width: 10px; height: 10px; border-radius: 9999px; }
|
|
339
339
|
.dot--gray { background-color: var(--color-semantic-gray-6); color: var(--color-semantic-gray-0); }
|
|
@@ -341,7 +341,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
341
341
|
.dot--primary { background-color: var(--color-semantic-primary-4); color: var(--color-semantic-gray-0); }
|
|
342
342
|
.dot--danger { background-color: var(--color-semantic-danger-4); color: var(--color-semantic-gray-0); }
|
|
343
343
|
.dot--warning { background-color: var(--color-semantic-warning-3); color: var(--color-semantic-gray-8); }
|
|
344
|
-
`;let Y1=a5;D3([a()],Y1.prototype,"variant"),customElements.get("anduin-dot")||customElements.define("anduin-dot",Y1);var F3=Object.defineProperty,
|
|
344
|
+
`;let Y1=a5;D3([a()],Y1.prototype,"variant"),customElements.get("anduin-dot")||customElements.define("anduin-dot",Y1);var F3=Object.defineProperty,b4=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&F3(e,t,o),o};const s5=class s5 extends h{constructor(){super(...arguments),this.percent="",this.height="medium"}render(){const e=this.height==="large"?8:3,t=this.percent===""||this.percent===null;let i="";const o=["progress__fill"];return t?o.push("progress__fill--indeterminate"):i=`width: ${Math.max(0,Math.min(1,parseFloat(this.percent)||0))*100}%;`,C`
|
|
345
345
|
<div class="progress" style="height: ${e}px;" part="progress">
|
|
346
346
|
<div class="${o.join(" ")}" style="${i}"></div>
|
|
347
347
|
<div class="progress__background"></div>
|
|
@@ -361,7 +361,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
361
361
|
from { transform: translateX(-100%); }
|
|
362
362
|
to { transform: translateX(330%); }
|
|
363
363
|
}
|
|
364
|
-
`;let k1=s5;
|
|
364
|
+
`;let k1=s5;b4([a()],k1.prototype,"percent"),b4([a()],k1.prototype,"height"),customElements.get("anduin-progress")||customElements.define("anduin-progress",k1);var T3=Object.defineProperty,E1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&T3(e,t,o),o};const C5=class C5 extends h{constructor(){super(...arguments),this.effect="pulse",this.shape="rectangle",this.height="",this.width="100%",this.duration=1500,this.fontSize=""}render(){const e=["skeleton",this.shape==="circle"?"skeleton--circle":"",this.shape==="rounded"?"skeleton--rounded":"",this.shape==="rectangle"?"skeleton--rectangle":"",this.shape==="text"&&this.fontSize?"skeleton--text":""].filter(Boolean).join(" "),t=this.shape==="text"&&this.fontSize?`--anduin-skeleton-font-size: ${this.fontSize};`:"",i=`${this.height?`height: ${this.height};`:""} width: ${this.width};`,o=this.effect==="pulse"?`animation: skeleton-pulse ${this.duration}ms ease-in-out infinite;`:"";return C`
|
|
365
365
|
<div class="${e}" style="${t} ${i} ${o}" part="skeleton">
|
|
366
366
|
${this.effect==="wave"?C`<div class="skeleton__wave" style="animation: skeleton-wave ${this.duration}ms linear infinite;"></div>`:""}
|
|
367
367
|
</div>
|
|
@@ -426,7 +426,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
426
426
|
`;let s2=h5;const g5=class g5 extends h{render(){return C`<div class="field-group" part="group"><slot></slot></div>`}};g5.styles=g`
|
|
427
427
|
:host { display: block; font-family: var(--font-sans); }
|
|
428
428
|
.field-group { display: flex; flex-direction: column; row-gap: 24px; }
|
|
429
|
-
`;let C2=g5;customElements.get("anduin-field")||customElements.define("anduin-field",X1),customElements.get("anduin-field-label")||customElements.define("anduin-field-label",$1),customElements.get("anduin-field-description")||customElements.define("anduin-field-description",a2),customElements.get("anduin-field-error")||customElements.define("anduin-field-error",s2),customElements.get("anduin-field-group")||customElements.define("anduin-field-group",C2);var j3=Object.defineProperty,J1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&j3(e,t,o),o};const
|
|
429
|
+
`;let C2=g5;customElements.get("anduin-field")||customElements.define("anduin-field",X1),customElements.get("anduin-field-label")||customElements.define("anduin-field-label",$1),customElements.get("anduin-field-description")||customElements.define("anduin-field-description",a2),customElements.get("anduin-field-error")||customElements.define("anduin-field-error",s2),customElements.get("anduin-field-group")||customElements.define("anduin-field-group",C2);var j3=Object.defineProperty,J1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&j3(e,t,o),o};const L4="anduin-checkbox:change",v5=class v5 extends h{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.indeterminate=!1,this.readonly=!1,this.inputid=""}connectedCallback(){super.connectedCallback();const e=this.closest("anduin-field");e&&e.addEventListener(C1,t=>{const i=t;this.inputid&&this.inputid===i.detail&&!this.disabled&&!this.readonly&&this.toggle()})}toggle(){this.checked=!this.checked,this.dispatchEvent(new CustomEvent(L4,{detail:this.checked,bubbles:!0,composed:!0}))}onInputChange(){this.toggle()}render(){const e=["checkbox__box",this.indeterminate||this.checked?"checkbox__box--checked":"",this.readonly&&!this.indeterminate&&!this.checked?"checkbox__box--readonly":"",this.disabled&&!this.indeterminate&&!this.checked?"checkbox__box--disabled":"",!this.indeterminate&&!this.checked&&!this.readonly&&!this.disabled?"checkbox__box--unchecked":""].filter(Boolean).join(" "),t=this.indeterminate?"minusBold":this.checked?"checkBold":"",i=!this.disabled&&!this.readonly,o=i?0:-1;return C`
|
|
430
430
|
<label class="${this.disabled?"is-disabled":""}">
|
|
431
431
|
<div
|
|
432
432
|
class="checkbox ${i?"checkbox--interactive":""} ${this.disabled?"checkbox--disabled":""}"
|
|
@@ -628,7 +628,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
628
628
|
position: absolute; bottom: 0; background-color: var(--color-primary-4);
|
|
629
629
|
left: 0; height: 2px; transition-duration: 200ms; transition-property: transform, width;
|
|
630
630
|
}
|
|
631
|
-
`;let A1=V5;$([a()],A1.prototype,"alignment"),$([E(".tabs-list__indicator")],A1.prototype,"indicator");const
|
|
631
|
+
`;let A1=V5;$([a()],A1.prototype,"alignment"),$([E(".tabs-list__indicator")],A1.prototype,"indicator");const b5=class b5 extends h{constructor(){super(...arguments),this.value="",this.startIcon="",this.disabled=!1,this.showBadge=!1,this.badgeCount="",this.isActive=!1}connectedCallback(){super.connectedCallback();const e=this.closest("anduin-tabs");e&&e.addEventListener(Q1,t=>{const i=t;this.isActive=i.detail===this.value})}onClick(){this.dispatchEvent(new CustomEvent(O2,{detail:this.value,bubbles:!0,composed:!0}))}render(){return C`
|
|
632
632
|
<button
|
|
633
633
|
class="tab-trigger ${this.isActive?"tab-trigger--active":"tab-trigger--normal"}"
|
|
634
634
|
role="tab"
|
|
@@ -643,7 +643,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
643
643
|
${this.showBadge?C`<span class="tab-trigger__badge">${this.badgeCount}</span>`:p}
|
|
644
644
|
</div>
|
|
645
645
|
</button>
|
|
646
|
-
`}};
|
|
646
|
+
`}};b5.styles=g`
|
|
647
647
|
:host { display: inline-block; font-family: var(--font-sans); }
|
|
648
648
|
.tab-trigger {
|
|
649
649
|
cursor: pointer; background: none; border: none; display: block;
|
|
@@ -665,15 +665,15 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
665
665
|
font-size: 11px; line-height: 16px; font-weight: 590; letter-spacing: 0.066px;
|
|
666
666
|
color: var(--color-gray-7); white-space: nowrap;
|
|
667
667
|
}
|
|
668
|
-
`;let T=
|
|
668
|
+
`;let T=b5;$([a({reflect:!0})],T.prototype,"value"),$([a({attribute:"start-icon"})],T.prototype,"startIcon"),$([a({type:Boolean})],T.prototype,"disabled"),$([a({type:Boolean,attribute:"show-badge"})],T.prototype,"showBadge"),$([a({attribute:"badge-count"})],T.prototype,"badgeCount"),$([b()],T.prototype,"isActive");const L5=class L5 extends h{constructor(){super(...arguments),this.value="",this.isActive=!1}connectedCallback(){super.connectedCallback();const e=this.closest("anduin-tabs");e&&e.addEventListener(Q1,t=>{const i=t;this.isActive=i.detail===this.value})}updated(e){e.has("isActive")&&this.toggleAttribute("active",this.isActive)}render(){return C`
|
|
669
669
|
<div class="tab-content" role="tabpanel" tabindex="0" part="tab-content">
|
|
670
670
|
<slot></slot>
|
|
671
671
|
</div>
|
|
672
|
-
`}};
|
|
672
|
+
`}};L5.styles=g`
|
|
673
673
|
:host { display: block; font-family: var(--font-sans); flex: var(--_tab-fill-flex, 0 0 auto); min-height: 0; }
|
|
674
674
|
:host(:not([active])) { display: none; }
|
|
675
675
|
.tab-content { width: 100%; height: var(--_tab-fill-height, auto); overflow-x: hidden; overflow-y: auto; }
|
|
676
|
-
`;let z1=
|
|
676
|
+
`;let z1=L5;$([a()],z1.prototype,"value"),$([b()],z1.prototype,"isActive"),customElements.get("anduin-tabs")||customElements.define("anduin-tabs",d1),customElements.get("anduin-tabs-list")||customElements.define("anduin-tabs-list",A1),customElements.get("anduin-tab-trigger")||customElements.define("anduin-tab-trigger",T),customElements.get("anduin-tab-content")||customElements.define("anduin-tab-content",z1);var K3=Object.defineProperty,I2=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&K3(e,t,o),o};const Z4="anduin-tag-close:click",X3={gray:"tag--light-gray",primary:"tag--light-primary",success:"tag--light-success",warning:"tag--light-warning",danger:"tag--light-danger",boldGray:"tag--bold-gray",boldPrimary:"tag--bold-primary",boldSuccess:"tag--bold-success",boldWarning:"tag--bold-warning",boldDanger:"tag--bold-danger",customAqua:"tag--custom-aqua",customBlue:"tag--custom-blue",customBlueGreen:"tag--custom-blue-green",customGreen:"tag--custom-green",customHotPink:"tag--custom-hot-pink",customIndigo:"tag--custom-indigo",customMagenta:"tag--custom-magenta",customOrange:"tag--custom-orange",customPink:"tag--custom-pink",customPurple:"tag--custom-purple",customRed:"tag--custom-red",customYellow:"tag--custom-yellow",customYellowGreen:"tag--custom-yellow-green",customYellowOrange:"tag--custom-yellow-orange"},J3={gray:"tag__icon--light-gray",primary:"tag__icon--light-primary",success:"tag__icon--light-success",warning:"tag__icon--light-warning",danger:"tag__icon--light-danger",boldGray:"tag__icon--bold-gray",boldPrimary:"tag__icon--bold-primary",boldSuccess:"tag__icon--bold-success",boldWarning:"tag__icon--bold-warning",boldDanger:"tag__icon--bold-danger",customRed:"tag__icon--custom-red",customBlue:"tag__icon--custom-blue",customIndigo:"tag__icon--custom-indigo",customPurple:"tag__icon--custom-purple",customGreen:"tag__icon--custom-green",customHotPink:"tag__icon--custom-hot-pink",customAqua:"tag__icon--custom-aqua",customOrange:"tag__icon--custom-orange",customYellowOrange:"tag__icon--custom-yellow-orange",customYellow:"tag__icon--custom-yellow",customYellowGreen:"tag__icon--custom-yellow-green",customMagenta:"tag__icon--custom-magenta",customBlueGreen:"tag__icon--custom-blue-green",customPink:"tag__icon--custom-pink"},y5=class y5 extends h{constructor(){super(...arguments),this.variant="gray",this.icon="",this.disabled=!1}render(){const e=X3[this.variant]||"tag--light-gray",t=J3[this.variant]||"tag__icon--light-gray";return C`
|
|
677
677
|
<div class="tag ${e} ${this.disabled?"tag--disabled":""}" part="tag">
|
|
678
678
|
${this.icon?C`<anduin-icon name="${this.icon}" size="12" class="tag__icon ${t}"></anduin-icon>`:p}
|
|
679
679
|
<div class="tag__label"><slot></slot></div>
|
|
@@ -766,13 +766,17 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
766
766
|
--toggle-group-item-padding: 0; --toggle-group-item-line-height: inherit;
|
|
767
767
|
--toggle-group-item-icon-gap: 8px;
|
|
768
768
|
}
|
|
769
|
-
|
|
770
|
-
|
|
769
|
+
/* Each item draws its own left border only when it's the first in the row;
|
|
770
|
+
every other item omits its left border so the divider between two items
|
|
771
|
+
is a single 1px line (item N's right border), never a doubled one. */
|
|
772
|
+
::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 0; --toggle-group-item-border-left: 0; }
|
|
773
|
+
::slotted(anduin-toggle-group-item:first-child) { --toggle-group-item-radius: 4px 0 0 4px; --toggle-group-item-border-left: 1px; }
|
|
771
774
|
::slotted(anduin-toggle-group-item:last-child) { --toggle-group-item-radius: 0 4px 4px 0; }
|
|
772
775
|
::slotted(anduin-toggle-group-item:only-child) { --toggle-group-item-radius: 4px; }
|
|
773
776
|
.toggle-group--gap { flex-wrap: wrap; gap: 8px; }
|
|
774
|
-
|
|
775
|
-
|
|
777
|
+
/* Gapped pills stand alone, so each keeps all four borders. */
|
|
778
|
+
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
|
|
779
|
+
`;let P=_5;R([a()],P.prototype,"mode"),R([a({attribute:"default-value"})],P.prototype,"defaultValue"),R([a()],P.prototype,"value"),R([a()],P.prototype,"size"),R([a()],P.prototype,"variant"),R([a({type:Boolean})],P.prototype,"gap"),R([b()],P.prototype,"internalValue");const Z5=class Z5 extends h{constructor(){super(...arguments),this.value="",this.startIcon="",this.disabled=!1,this.selected=!1,this.groupSize="medium",this.groupVariant="gray",this.groupMode="single"}emitSelectionChange(e){this.dispatchEvent(new CustomEvent(w4,{detail:e,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(e?R4:k4,{detail:this.value,bubbles:!0,composed:!0}))}updated(e){(e.has("selected")||e.has("groupMode"))&&(this.groupMode==="single"?(this.setAttribute("role","radio"),this.setAttribute("aria-checked",String(this.selected))):(this.removeAttribute("role"),this.removeAttribute("aria-checked")))}onClick(){this.dispatchEvent(new CustomEvent(c2,{detail:this.value,bubbles:!0,composed:!0}))}render(){const e=["toggle-item",this.selected?"toggle-item--selected":"",this.disabled?"toggle-item--disabled":"",`toggle-item--variant-${this.groupVariant}`].filter(Boolean).join(" ");return C`
|
|
776
780
|
<button
|
|
777
781
|
type="button"
|
|
778
782
|
class="${e}"
|
|
@@ -792,6 +796,8 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
792
796
|
position: relative; z-index: 0; box-sizing: border-box;
|
|
793
797
|
display: flex; align-items: center; justify-content: center;
|
|
794
798
|
background: none; border: 1px solid var(--color-gray-4);
|
|
799
|
+
/* Group omits the left border on all but the first item so dividers never double. */
|
|
800
|
+
border-left-width: var(--toggle-group-item-border-left, 1px);
|
|
795
801
|
border-radius: var(--toggle-group-item-radius, 4px);
|
|
796
802
|
color: var(--color-gray-7); cursor: pointer; font-family: inherit;
|
|
797
803
|
font-size: var(--toggle-group-item-font-size, 13px); font-weight: 500;
|
|
@@ -819,7 +825,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
819
825
|
.toggle-item:hover .toggle-item__icon { color: var(--color-gray-7); }
|
|
820
826
|
.toggle-item--selected .toggle-item__icon { color: var(--color-gray-7); }
|
|
821
827
|
.toggle-item--variant-primary.toggle-item--selected .toggle-item__icon { color: var(--color-primary-4); }
|
|
822
|
-
`;let S=Z5;R([a({reflect:!0})],S.prototype,"value"),R([a({attribute:"start-icon"})],S.prototype,"startIcon"),R([a({type:Boolean})],S.prototype,"disabled"),R([a({attribute:!1})],S.prototype,"selected"),R([a({attribute:!1})],S.prototype,"groupSize"),R([a({attribute:!1})],S.prototype,"groupVariant"),R([a({attribute:!1})],S.prototype,"groupMode");function D2(r){return r.split(" ").map(e=>e.trim()).filter(Boolean)}customElements.get("anduin-toggle-group")||customElements.define("anduin-toggle-group",P),customElements.get("anduin-toggle-group-item")||customElements.define("anduin-toggle-group-item",S);var e7=Object.defineProperty,E4=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&e7(e,t,o),o};const F2="anduin-tooltip:show",p2="anduin-tooltip:hide",T2="anduin-tooltip:trigger-mounted",N2="anduin-tooltip:content-popup-mounted",G2="anduin-tooltip:content-popup-unmounted",U2="anduin-tooltip:visibility-changed",t7=["top-start","top-center","top-end","right-start","right-center","right-end","bottom-start","bottom-center","bottom-end","left-start","left-center","left-end"];function $4(r,e,t,i,o){switch(i){case"top-start":return{left:r.left,top:r.top-t-o};case"top-center":return{left:r.left+r.width/2-e/2,top:r.top-t-o};case"top-end":return{left:r.left+r.width-e,top:r.top-t-o};case"right-start":return{left:r.right+o,top:r.top};case"right-center":return{left:r.right+o,top:r.top+r.height/2-t/2};case"right-end":return{left:r.right+o,top:r.top+r.height-t};case"bottom-start":return{left:r.left,top:r.bottom+o};case"bottom-center":return{left:r.left+r.width/2-e/2,top:r.bottom+o};case"bottom-end":return{left:r.left+r.width-e,top:r.bottom+o};case"left-start":return{left:r.left-e-o,top:r.top};case"left-center":return{left:r.left-e-o,top:r.top+r.height/2-t/2};case"left-end":return{left:r.left-e-o,top:r.top+r.height-t};default:return{left:0,top:0}}}function A4(r,e){return e.right>=r.left&&e.left<=r.right&&e.top<=r.bottom&&e.bottom>=r.top}function z4(r,e){const t=Math.max(r.left,e.left),i=Math.max(r.top,e.top),o=Math.min(r.right,e.right),l=Math.min(r.bottom,e.bottom);return o<t||l<i?0:(o-t)*(l-i)}function o7(r,e,t,i=8){const o=window.innerWidth,l=window.innerHeight,n={left:0,top:0,right:o,bottom:l},s=e.width,c=e.height;if(!A4({left:r.left,top:r.top,right:r.right,bottom:r.bottom},n))return null;const u=$4(r,s,c,t,i),v=t7.map(H=>({p:H,off:$4(r,s,c,H,i)})).filter(({off:H})=>A4({left:H.left,top:H.top,right:H.left+s,bottom:H.top+c},n));if(v.length===0)return{placement:t,left:Math.round(Math.min(Math.max(u.left,0),o-s)),top:Math.round(Math.min(Math.max(u.top,0),l-c))};v.sort((H,w)=>{const i1={left:H.off.left,top:H.off.top,right:H.off.left+s,bottom:H.off.top+c},k={left:w.off.left,top:w.off.top,right:w.off.left+s,bottom:w.off.top+c},Y=z4(i1,n),
|
|
828
|
+
`;let S=Z5;R([a({reflect:!0})],S.prototype,"value"),R([a({attribute:"start-icon"})],S.prototype,"startIcon"),R([a({type:Boolean})],S.prototype,"disabled"),R([a({attribute:!1})],S.prototype,"selected"),R([a({attribute:!1})],S.prototype,"groupSize"),R([a({attribute:!1})],S.prototype,"groupVariant"),R([a({attribute:!1})],S.prototype,"groupMode");function D2(r){return r.split(" ").map(e=>e.trim()).filter(Boolean)}customElements.get("anduin-toggle-group")||customElements.define("anduin-toggle-group",P),customElements.get("anduin-toggle-group-item")||customElements.define("anduin-toggle-group-item",S);var e7=Object.defineProperty,E4=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&e7(e,t,o),o};const F2="anduin-tooltip:show",p2="anduin-tooltip:hide",T2="anduin-tooltip:trigger-mounted",N2="anduin-tooltip:content-popup-mounted",G2="anduin-tooltip:content-popup-unmounted",U2="anduin-tooltip:visibility-changed",t7=["top-start","top-center","top-end","right-start","right-center","right-end","bottom-start","bottom-center","bottom-end","left-start","left-center","left-end"];function $4(r,e,t,i,o){switch(i){case"top-start":return{left:r.left,top:r.top-t-o};case"top-center":return{left:r.left+r.width/2-e/2,top:r.top-t-o};case"top-end":return{left:r.left+r.width-e,top:r.top-t-o};case"right-start":return{left:r.right+o,top:r.top};case"right-center":return{left:r.right+o,top:r.top+r.height/2-t/2};case"right-end":return{left:r.right+o,top:r.top+r.height-t};case"bottom-start":return{left:r.left,top:r.bottom+o};case"bottom-center":return{left:r.left+r.width/2-e/2,top:r.bottom+o};case"bottom-end":return{left:r.left+r.width-e,top:r.bottom+o};case"left-start":return{left:r.left-e-o,top:r.top};case"left-center":return{left:r.left-e-o,top:r.top+r.height/2-t/2};case"left-end":return{left:r.left-e-o,top:r.top+r.height-t};default:return{left:0,top:0}}}function A4(r,e){return e.right>=r.left&&e.left<=r.right&&e.top<=r.bottom&&e.bottom>=r.top}function z4(r,e){const t=Math.max(r.left,e.left),i=Math.max(r.top,e.top),o=Math.min(r.right,e.right),l=Math.min(r.bottom,e.bottom);return o<t||l<i?0:(o-t)*(l-i)}function o7(r,e,t,i=8){const o=window.innerWidth,l=window.innerHeight,n={left:0,top:0,right:o,bottom:l},s=e.width,c=e.height;if(!A4({left:r.left,top:r.top,right:r.right,bottom:r.bottom},n))return null;const u=$4(r,s,c,t,i),v=t7.map(H=>({p:H,off:$4(r,s,c,H,i)})).filter(({off:H})=>A4({left:H.left,top:H.top,right:H.left+s,bottom:H.top+c},n));if(v.length===0)return{placement:t,left:Math.round(Math.min(Math.max(u.left,0),o-s)),top:Math.round(Math.min(Math.max(u.top,0),l-c))};v.sort((H,w)=>{const i1={left:H.off.left,top:H.off.top,right:H.off.left+s,bottom:H.off.top+c},k={left:w.off.left,top:w.off.top,right:w.off.left+s,bottom:w.off.top+c},Y=z4(i1,n),L1=z4(k,n);if(L1!==Y)return L1-Y;const y2=Math.abs(H.off.left-u.left)+Math.abs(H.off.top-u.top),M2=Math.abs(w.off.left-u.left)+Math.abs(w.off.top-u.top);return y2-M2});const{p:f,off:m}=v[0];return{placement:f,left:Math.round(Math.min(Math.max(m.left,0),o-s)),top:Math.round(Math.min(Math.max(m.top,0),l-c))}}function j2(r){return r.split("-")[0]||"top"}function i7(r,e,t){let i=!1,o=t.length-1;for(let l=0;l<t.length;l++){const n=t[l][0],s=t[l][1],c=t[o][0],u=t[o][1];s>e!=u>e&&r<(c-n)*(e-s)/(u-s)+n&&(i=!i),o=l}return i}const x5=class x5 extends h{constructor(){super(...arguments),this.disabled=!1,this.placement="top-center",this.triggerElement=null,this.contentPopupElement=null,this.containingBlockLeft=0,this.containingBlockTop=0,this.rafId=0,this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN,this.isVisible=!1}connectedCallback(){super.connectedCallback(),this.addEventListener(T2,e=>{e.stopPropagation(),this.triggerElement=e.detail,this.maybeStartPositionLoop()}),this.addEventListener(N2,e=>{e.stopPropagation(),this.contentPopupElement=e.detail,this.computeContainingBlockOffset(this.contentPopupElement),this.maybeStartPositionLoop()}),this.addEventListener(G2,e=>{e.stopPropagation(),this.stopPositionLoop(),this.contentPopupElement=null}),this.addEventListener(F2,e=>{e.stopPropagation(),!this.disabled&&(this.isVisible=!0,this.broadcastVisibilityChanged(`show:${this.placement}`))}),this.addEventListener(p2,e=>{e.stopPropagation(),this.isVisible=!1,this.stopPositionLoop(),this.broadcastVisibilityChanged("hide")})}updated(e){e.has("disabled")&&this.disabled&&this.isVisible&&(this.isVisible=!1,this.stopPositionLoop(),this.broadcastVisibilityChanged("hide"))}disconnectedCallback(){super.disconnectedCallback(),this.stopPositionLoop(),this.triggerElement=null,this.contentPopupElement=null}maybeStartPositionLoop(){this.isVisible&&this.triggerElement&&this.contentPopupElement&&this.startPositionLoop()}startPositionLoop(){this.stopPositionLoop(),this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN;const e=this.triggerElement,t=this.contentPopupElement,i=this.placement,o=()=>{const l=e.getBoundingClientRect();(l.top!==this.prevTriggerTop||l.left!==this.prevTriggerLeft)&&(this.prevTriggerTop=l.top,this.prevTriggerLeft=l.left,this.positionPopup(t,e,i)),this.rafId=requestAnimationFrame(o)};this.rafId=requestAnimationFrame(o)}stopPositionLoop(){this.rafId&&(cancelAnimationFrame(this.rafId),this.rafId=0),this.prevTriggerTop=NaN,this.prevTriggerLeft=NaN}computeContainingBlockOffset(e){const t=e,i=t.style.transform;t.style.transform="none";const o=e.getBoundingClientRect();this.containingBlockLeft=o.left,this.containingBlockTop=o.top,t.style.transform=i}positionPopup(e,t,i){const o=t.getBoundingClientRect(),l=e.getBoundingClientRect(),n=o7(o,l,i,8);if(n){const s=e;s.style.transform=`translate(${n.left-this.containingBlockLeft}px, ${n.top-this.containingBlockTop}px)`;const c=j2(n.placement),u=j2(i);if(c!==u){const v=e.querySelector(".tooltip-arrow");v&&(v.classList.remove(`tooltip-arrow--${u}`),v.classList.add(`tooltip-arrow--${c}`))}}}broadcastVisibilityChanged(e){this.dispatchEvent(new CustomEvent(U2,{detail:e,bubbles:!1,composed:!1}))}render(){return C`<div class="tooltip-root" part="tooltip"><slot></slot></div>`}};x5.styles=g`
|
|
823
829
|
:host { display: inline-block; position: relative; max-width: 100%; font-family: var(--font-sans); }
|
|
824
830
|
.tooltip-root { display: inline-block; position: relative; max-width: 100%; }
|
|
825
831
|
`;let B1=x5;E4([a({type:Boolean})],B1.prototype,"disabled"),E4([a()],B1.prototype,"placement");const w5=class w5 extends h{firstUpdated(){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent(T2,{detail:this,bubbles:!0,composed:!0}))}),this.addEventListener("pointerenter",()=>{this.dispatchEvent(new CustomEvent(F2,{bubbles:!0,composed:!0}))}),this.addEventListener("click",()=>{this.dispatchEvent(new CustomEvent(p2,{bubbles:!0,composed:!0}))})}render(){return C`<span class="tooltip-trigger" part="tooltip-trigger"><slot></slot></span>`}};w5.styles=g`
|
|
@@ -955,7 +961,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
955
961
|
.well-close__button:active {
|
|
956
962
|
background-color: var(--color-gray-3);
|
|
957
963
|
}
|
|
958
|
-
`;let g2=E5;customElements.get("anduin-well")||customElements.define("anduin-well",e2),customElements.get("anduin-well-close")||customElements.define("anduin-well-close",g2);var n7=Object.defineProperty,p1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&n7(e,t,o),o};const v2="anduin-popover:close",$5=class $5 extends h{constructor(){super(...arguments),this.open=!1,this.placement="bottom-start",this.fullWidth=!1,this._visible=!1,this._closing=!1,this._closeTransitionEndHandler=null,this._onOutsideClick=e=>{var t;!this.contains(e.target)&&!((t=this.shadowRoot)!=null&&t.contains(e.target))&&(this.open=!1)},this._onScrollOrResize=()=>{this.open&&this._updatePosition()},this._onPopoverClose=()=>{this.open=!1}}_onTriggerClick(){this.open=!this.open}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize),this.addEventListener(v2,this._onPopoverClose)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize),this.removeEventListener(v2,this._onPopoverClose)}updated(e){e.has("open")&&(this.open?(this._cancelCloseAnimation(),this._closing=!1,this._visible=!0,requestAnimationFrame(()=>this._updatePosition())):this._startCloseAnimation())}_cancelCloseAnimation(){this._closeTransitionEndHandler&&this._panelEl&&(this._panelEl.removeEventListener("transitionend",this._closeTransitionEndHandler),this._closeTransitionEndHandler=null),this._closing=!1}_startCloseAnimation(){if(!this._visible)return;this._closing=!0;const e=t=>{var i;t.propertyName==="opacity"&&((i=this._panelEl)==null||i.removeEventListener("transitionend",e),this._closeTransitionEndHandler=null,this._closing=!1,this._visible=!1)};this._closeTransitionEndHandler=e,requestAnimationFrame(()=>{var t;return(t=this._panelEl)==null?void 0:t.addEventListener("transitionend",e)})}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const i=e.getBoundingClientRect(),o=t.style.transform;t.style.transform="none";const l=t.getBoundingClientRect();t.style.transform=o;const n=t.getBoundingClientRect(),s=4,c=window.innerWidth,u=window.innerHeight,v=8;let f=0,m=0,H="bottom";const w=!this.placement.startsWith("top"),i1=u-i.bottom-s,k=i.top-s,Y=i1>=n.height,
|
|
964
|
+
`;let g2=E5;customElements.get("anduin-well")||customElements.define("anduin-well",e2),customElements.get("anduin-well-close")||customElements.define("anduin-well-close",g2);var n7=Object.defineProperty,p1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&n7(e,t,o),o};const v2="anduin-popover:close",$5=class $5 extends h{constructor(){super(...arguments),this.open=!1,this.placement="bottom-start",this.fullWidth=!1,this._visible=!1,this._closing=!1,this._closeTransitionEndHandler=null,this._onOutsideClick=e=>{var t;!this.contains(e.target)&&!((t=this.shadowRoot)!=null&&t.contains(e.target))&&(this.open=!1)},this._onScrollOrResize=()=>{this.open&&this._updatePosition()},this._onPopoverClose=()=>{this.open=!1}}_onTriggerClick(){this.open=!this.open}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize),this.addEventListener(v2,this._onPopoverClose)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize),this.removeEventListener(v2,this._onPopoverClose)}updated(e){e.has("open")&&(this.open?(this._cancelCloseAnimation(),this._closing=!1,this._visible=!0,requestAnimationFrame(()=>this._updatePosition())):this._startCloseAnimation())}_cancelCloseAnimation(){this._closeTransitionEndHandler&&this._panelEl&&(this._panelEl.removeEventListener("transitionend",this._closeTransitionEndHandler),this._closeTransitionEndHandler=null),this._closing=!1}_startCloseAnimation(){if(!this._visible)return;this._closing=!0;const e=t=>{var i;t.propertyName==="opacity"&&((i=this._panelEl)==null||i.removeEventListener("transitionend",e),this._closeTransitionEndHandler=null,this._closing=!1,this._visible=!1)};this._closeTransitionEndHandler=e,requestAnimationFrame(()=>{var t;return(t=this._panelEl)==null?void 0:t.addEventListener("transitionend",e)})}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const i=e.getBoundingClientRect(),o=t.style.transform;t.style.transform="none";const l=t.getBoundingClientRect();t.style.transform=o;const n=t.getBoundingClientRect(),s=4,c=window.innerWidth,u=window.innerHeight,v=8;let f=0,m=0,H="bottom";const w=!this.placement.startsWith("top"),i1=u-i.bottom-s,k=i.top-s,Y=i1>=n.height,L1=k>=n.height,y2=w?Y||i1>=k:!L1&&Y;H=y2?"bottom":"top",m=y2?i.bottom+s:i.top-n.height-s;const M2=this.placement.endsWith("end")?"end":this.placement.endsWith("start")?"start":"center";M2==="start"?f=i.left:M2==="end"?f=i.right-n.width:f=i.left+i.width/2-n.width/2,f=Math.max(v,Math.min(f,c-n.width-v)),m=Math.max(v,Math.min(m,u-n.height-v)),t.style.transform=`translate(${Math.round(f-l.left)}px, ${Math.round(m-l.top)}px)`,t.dataset.side=H}render(){return C`
|
|
959
965
|
<div class="popover__trigger" @click=${this._onTriggerClick} part="trigger">
|
|
960
966
|
<slot name="trigger"></slot>
|
|
961
967
|
</div>
|
|
@@ -1016,7 +1022,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
1016
1022
|
.popover__panel--open[data-side="top"] .popover__inner {
|
|
1017
1023
|
transform: none;
|
|
1018
1024
|
}
|
|
1019
|
-
`;let O=$5;p1([a({type:Boolean,reflect:!0})],O.prototype,"open"),p1([a()],O.prototype,"placement"),p1([a({type:Boolean,attribute:"full-width",reflect:!0})],O.prototype,"fullWidth"),p1([
|
|
1025
|
+
`;let O=$5;p1([a({type:Boolean,reflect:!0})],O.prototype,"open"),p1([a()],O.prototype,"placement"),p1([a({type:Boolean,attribute:"full-width",reflect:!0})],O.prototype,"fullWidth"),p1([b()],O.prototype,"_visible"),p1([b()],O.prototype,"_closing"),p1([E(".popover__trigger")],O.prototype,"_triggerEl"),p1([E(".popover__panel")],O.prototype,"_panelEl"),customElements.get("anduin-popover")||customElements.define("anduin-popover",O);const A5=class A5 extends h{_onClick(){this.dispatchEvent(new CustomEvent(v2,{bubbles:!0,composed:!0}))}render(){return C`<span @click=${this._onClick}><slot></slot></span>`}};A5.styles=g`:host { display: contents; }`;let f2=A5;customElements.get("anduin-popover-close")||customElements.define("anduin-popover-close",f2);var a7=Object.defineProperty,u1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&a7(e,t,o),o};const H2="anduin-menu-item:click",z5=class z5 extends h{constructor(){super(...arguments),this.open=!1,this.placement="bottom-start",this._onOutsideClick=e=>{var t;!this.contains(e.target)&&!((t=this.shadowRoot)!=null&&t.contains(e.target))&&(this.open=!1)},this._onItemClick=()=>{this.open=!1},this._onScrollOrResize=()=>{this.open&&this._updatePosition()}}_onTriggerClick(){this.open=!this.open}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onOutsideClick),this.addEventListener(H2,this._onItemClick),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onOutsideClick),this.removeEventListener(H2,this._onItemClick),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize)}updated(e){e.has("open")&&this.open&&requestAnimationFrame(()=>this._updatePosition())}_updatePosition(){const e=this._triggerEl,t=this._panelEl;if(!e||!t)return;const i=e.getBoundingClientRect(),o=t.style.transform;t.style.transform="none";const l=t.getBoundingClientRect();t.style.transform=o;const n=t.getBoundingClientRect(),s=4;let c=0,u=0,v="bottom";switch(this.placement){case"bottom-start":c=i.left,u=i.bottom+s,v="bottom";break;case"bottom-end":c=i.right-n.width,u=i.bottom+s,v="bottom";break;case"bottom":c=i.left+i.width/2-n.width/2,u=i.bottom+s,v="bottom";break;case"top-start":c=i.left,u=i.top-n.height-s,v="top";break;case"top-end":c=i.right-n.width,u=i.top-n.height-s,v="top";break;case"top":c=i.left+i.width/2-n.width/2,u=i.top-n.height-s,v="top";break}t.style.transform=`translate(${Math.round(c-l.left)}px, ${Math.round(u-l.top)}px)`,t.dataset.side=v}render(){return C`
|
|
1020
1026
|
<div class="menu__trigger" @click=${this._onTriggerClick} part="trigger">
|
|
1021
1027
|
<slot name="trigger"></slot>
|
|
1022
1028
|
</div>
|
|
@@ -1329,7 +1335,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
1329
1335
|
padding: 16px 24px;
|
|
1330
1336
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
1331
1337
|
}
|
|
1332
|
-
`,o1._PRESETS=new Set(["480","600","720","960","1160"]),o1);g1([a({type:Boolean,reflect:!0})],e1.prototype,"open"),g1([a()],e1.prototype,"heading"),g1([a({type:Boolean,attribute:"hide-header"})],e1.prototype,"hideHeader"),g1([a({type:Boolean,attribute:"hide-footer"})],e1.prototype,"hideFooter"),g1([a({attribute:"max-width"})],e1.prototype,"maxWidth"),g1([a({type:Boolean})],e1.prototype,"fullscreen"),g1([
|
|
1338
|
+
`,o1._PRESETS=new Set(["480","600","720","960","1160"]),o1);g1([a({type:Boolean,reflect:!0})],e1.prototype,"open"),g1([a()],e1.prototype,"heading"),g1([a({type:Boolean,attribute:"hide-header"})],e1.prototype,"hideHeader"),g1([a({type:Boolean,attribute:"hide-footer"})],e1.prototype,"hideFooter"),g1([a({attribute:"max-width"})],e1.prototype,"maxWidth"),g1([a({type:Boolean})],e1.prototype,"fullscreen"),g1([b()],e1.prototype,"_leaving");let O4=e1;customElements.get("anduin-modal")||customElements.define("anduin-modal",O4);class I4 extends HTMLElement{constructor(){super(...arguments),this._onClick=()=>{this.dispatchEvent(new CustomEvent(P1,{bubbles:!0,composed:!0}))}}connectedCallback(){this.style.display="contents",this.addEventListener("click",this._onClick)}disconnectedCallback(){this.removeEventListener("click",this._onClick)}}customElements.get("anduin-modal-close")||customElements.define("anduin-modal-close",I4);var C7=Object.defineProperty,j=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&C7(e,t,o),o};const m2="anduin-radio:change",D4="anduin-radio-group:change",P5=class P5 extends h{constructor(){super(...arguments),this.checked=!1,this.disabled=!1,this.readonly=!1,this.value="",this.name="",this.inputid=""}connectedCallback(){super.connectedCallback();const e=this.closest("anduin-field");e&&e.addEventListener(C1,t=>{const i=t;this.inputid&&this.inputid===i.detail&&!this.disabled&&!this.readonly&&this._select()})}_select(){this.checked||(this.checked=!0,this.dispatchEvent(new CustomEvent(m2,{detail:this.value,bubbles:!0,composed:!0})))}_onInputChange(){this._select()}render(){const e=!this.disabled&&!this.readonly,t=["radio__circle",this.checked?"radio__circle--checked":"",!this.checked&&this.readonly?"radio__circle--readonly":"",!this.checked&&this.disabled?"radio__circle--disabled":"",!this.checked&&!this.readonly&&!this.disabled?"radio__circle--unchecked":""].filter(Boolean).join(" ");return C`
|
|
1333
1339
|
<label class="${this.disabled?"is-disabled":""}">
|
|
1334
1340
|
<div
|
|
1335
1341
|
class="radio ${e?"radio--interactive":""} ${this.disabled?"radio--disabled":""}"
|
|
@@ -1475,7 +1481,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
1475
1481
|
object-fit: cover;
|
|
1476
1482
|
display: block;
|
|
1477
1483
|
}
|
|
1478
|
-
`;let I=O5;f1([a()],I.prototype,"src"),f1([a({reflect:!0})],I.prototype,"name"),f1([a()],I.prototype,"alt"),f1([a()],I.prototype,"icon"),f1([a({type:Number})],I.prototype,"size"),f1([a()],I.prototype,"shape"),f1([
|
|
1484
|
+
`;let I=O5;f1([a()],I.prototype,"src"),f1([a({reflect:!0})],I.prototype,"name"),f1([a()],I.prototype,"alt"),f1([a()],I.prototype,"icon"),f1([a({type:Number})],I.prototype,"size"),f1([a()],I.prototype,"shape"),f1([b()],I.prototype,"_imgError"),customElements.get("anduin-avatar")||customElements.define("anduin-avatar",I);/**
|
|
1479
1485
|
* @license
|
|
1480
1486
|
* Copyright 2017 Google LLC
|
|
1481
1487
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -1804,7 +1810,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
1804
1810
|
.toast__close:active {
|
|
1805
1811
|
background: var(--color-gray-3, #d0d5dd);
|
|
1806
1812
|
}
|
|
1807
|
-
`;let q=D5;H1([a()],q.prototype,"variant"),H1([a()],q.prototype,"heading"),H1([a()],q.prototype,"description"),H1([
|
|
1813
|
+
`;let q=D5;H1([a()],q.prototype,"variant"),H1([a()],q.prototype,"heading"),H1([a()],q.prototype,"description"),H1([b()],q.prototype,"_dismissing"),H1([E(".toast")],q.prototype,"_toastEl"),customElements.get("anduin-toast")||customElements.define("anduin-toast",q);const F5=class F5 extends h{constructor(){super(...arguments),this.position="bottom-left",this._toasts=[],this._nextId=0}show(e){const t=this._nextId++,i=e.position??this.position;this._toasts=[...this._toasts,{id:t,opts:{...e,position:i}}];const o=e.duration??4e3;return o>0&&setTimeout(()=>this._dismissById(t),o),t}dismiss(e){this._dismissById(e)}_dismissById(e){var i;const t=(i=this.shadowRoot)==null?void 0:i.querySelector(`anduin-toast[data-id="${e}"]`);t?t.dismiss():this._removeById(e)}_removeById(e){this._toasts=this._toasts.filter(t=>t.id!==e)}_onDismiss(e,t){e.stopPropagation(),this._removeById(t)}render(){return C`
|
|
1808
1814
|
<div class="toaster toaster--${this.position}" part="toaster">
|
|
1809
1815
|
${this._toasts.map(({id:e,opts:t})=>C`
|
|
1810
1816
|
<anduin-toast
|
|
@@ -1862,7 +1868,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
1862
1868
|
right: 20px;
|
|
1863
1869
|
align-items: flex-end;
|
|
1864
1870
|
}
|
|
1865
|
-
`;let O1=F5;H1([a()],O1.prototype,"position"),H1([
|
|
1871
|
+
`;let O1=F5;H1([a()],O1.prototype,"position"),H1([b()],O1.prototype,"_toasts"),customElements.get("anduin-toaster")||customElements.define("anduin-toaster",O1);const b7={show(r){return L7(r.position).show(r)},success(r,e,t){return this.show({...t,variant:"success",heading:r,description:e})},danger(r,e,t){return this.show({...t,variant:"danger",heading:r,description:e})},warning(r,e,t){return this.show({...t,variant:"warning",heading:r,description:e})},primary(r,e,t){return this.show({...t,variant:"primary",heading:r,description:e})},gray(r,e,t){return this.show({...t,variant:"gray",heading:r,description:e})}},X2=new Map;function L7(r="bottom-left"){if(X2.has(r))return X2.get(r);const e=document.createElement("anduin-toaster");return e.position=r,document.body.appendChild(e),X2.set(r,e),e}var y7=Object.defineProperty,j4=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&y7(e,t,o),o};const q4="anduin-switcher:change",T5=class T5 extends h{constructor(){super(...arguments),this.checked=!1,this.disabled=!1}onChange(){this.checked=!this.checked,this.dispatchEvent(new CustomEvent(q4,{detail:this.checked,bubbles:!0,composed:!0}))}render(){return C`
|
|
1866
1872
|
<label class="${this.disabled?"is-disabled":""}">
|
|
1867
1873
|
<div class="track${this.checked?" track--checked":""}" part="track">
|
|
1868
1874
|
<input
|
|
@@ -2171,7 +2177,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
2171
2177
|
color: var(--color-gray-5, #98a1b2);
|
|
2172
2178
|
text-align: center;
|
|
2173
2179
|
}
|
|
2174
|
-
`;let
|
|
2180
|
+
`;let L=N5;_([a()],L.prototype,"value"),_([a()],L.prototype,"placeholder"),_([a({attribute:!1})],L.prototype,"options"),_([a()],L.prototype,"icon"),_([a({type:Boolean})],L.prototype,"searchable"),_([a({type:Boolean})],L.prototype,"disabled"),_([a()],L.prototype,"placement"),_([a()],L.prototype,"appearance"),_([a()],L.prototype,"variant"),_([a()],L.prototype,"size"),_([a({type:Boolean,attribute:"full-width",reflect:!0})],L.prototype,"fullWidth"),_([b()],L.prototype,"_open"),_([b()],L.prototype,"_query"),_([E(".trigger")],L.prototype,"_triggerEl"),_([E(".panel")],L.prototype,"_panelEl"),_([E("anduin-input")],L.prototype,"_searchEl"),customElements.get("anduin-dropdown")||customElements.define("anduin-dropdown",L);var _7=Object.defineProperty,t1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&_7(e,t,o),o};const V2="anduin-close",W4="anduin-after-close",Z7=300,Y4=250,x7=new Map([["320",320],["360",360],["400",400],["640",640]]),G5=class G5 extends h{constructor(){super(...arguments),this.open=!1,this.heading="",this.hideHeader=!1,this.hideFooter=!1,this.defaultWidth="320",this.allowInteractOutside=!1,this._leaving=!1,this._width=320,this._resizing=!1,this._startX=0,this._startWidth=0,this._onResizeStart=e=>{this._resizing=!0,this._startX=e.clientX,this._startWidth=this._width,e.currentTarget.setPointerCapture(e.pointerId),e.preventDefault()},this._onResizeMove=e=>{var l;if(!this._resizing)return;const t=this._startX-e.clientX,i=Math.max(200,Math.min(window.innerWidth*.9,this._startWidth+t));this._width=Math.round(i);const o=(l=this.shadowRoot)==null?void 0:l.querySelector(".drawer");o&&(o.style.width=`${this._width}px`)},this._onResizeEnd=()=>{this._resizing=!1}}willUpdate(e){e.has("defaultWidth")&&(this._width=x7.get(this.defaultWidth)??(parseInt(this.defaultWidth)||320))}updated(e){e.has("open")&&(this.open?(this._leaving=!1,this.classList.add("is-shown")):this.classList.contains("is-shown")&&(this._leaving=!0,setTimeout(()=>{this._leaving=!1,this.classList.remove("is-shown"),this.dispatchEvent(new CustomEvent(W4,{bubbles:!0,composed:!0}))},Y4)))}_dispatch(e){this.dispatchEvent(new CustomEvent(e,{bubbles:!0,composed:!0}))}_onClose(){this._dispatch(V2)}_onBackdropClick(){this._dispatch(V2)}render(){const e=this._leaving;return C`
|
|
2175
2181
|
${this.allowInteractOutside?p:C`<div class="backdrop" @click=${this._onBackdropClick}></div>`}
|
|
2176
2182
|
<div
|
|
2177
2183
|
class=${`drawer${e?" is-leaving":""}`}
|
|
@@ -2324,7 +2330,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
2324
2330
|
padding: 16px 20px;
|
|
2325
2331
|
border-top: 1px solid var(--color-gray-3, #e4e7ec);
|
|
2326
2332
|
}
|
|
2327
|
-
`;let z=G5;t1([a({type:Boolean,reflect:!0})],z.prototype,"open"),t1([a()],z.prototype,"heading"),t1([a({type:Boolean,attribute:"hide-header"})],z.prototype,"hideHeader"),t1([a({type:Boolean,attribute:"hide-footer"})],z.prototype,"hideFooter"),t1([a({attribute:"default-width"})],z.prototype,"defaultWidth"),t1([a({type:Boolean,attribute:"allow-interact-outside"})],z.prototype,"allowInteractOutside"),t1([
|
|
2333
|
+
`;let z=G5;t1([a({type:Boolean,reflect:!0})],z.prototype,"open"),t1([a()],z.prototype,"heading"),t1([a({type:Boolean,attribute:"hide-header"})],z.prototype,"hideHeader"),t1([a({type:Boolean,attribute:"hide-footer"})],z.prototype,"hideFooter"),t1([a({attribute:"default-width"})],z.prototype,"defaultWidth"),t1([a({type:Boolean,attribute:"allow-interact-outside"})],z.prototype,"allowInteractOutside"),t1([b()],z.prototype,"_leaving"),t1([b()],z.prototype,"_width"),customElements.get("anduin-drawer")||customElements.define("anduin-drawer",z);class K4 extends HTMLElement{constructor(){super(...arguments),this._onClick=()=>{this.dispatchEvent(new CustomEvent(V2,{bubbles:!0,composed:!0}))}}connectedCallback(){this.style.display="contents",this.addEventListener("click",this._onClick)}disconnectedCallback(){this.removeEventListener("click",this._onClick)}}customElements.get("anduin-drawer-close")||customElements.define("anduin-drawer-close",K4);var w7=Object.defineProperty,M=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&w7(e,t,o),o};const b2="anduin-suggestion:change",X4="anduin-suggestion:select",J4="anduin-suggestion:clear",U5=class U5 extends h{constructor(){super(...arguments),this.value="",this.size="default",this.disabled=!1,this.readonly=!1,this.placeholder="",this.inputid="",this.status="",this.startIcon="",this.endIcon="",this.clearable=!1,this.suggestions=[],this.filter=!1,this.hideWhenEmpty=!1,this.emptyText="No suggestions",this._open=!1,this._activeIndex=-1,this._onDocumentMouseDown=e=>{var t;!this.contains(e.target)&&!((t=this.shadowRoot)!=null&&t.contains(e.target))&&(this._open=!1)},this._onScrollOrResize=()=>{this._open&&this._updatePosition()}}connectedCallback(){super.connectedCallback(),document.addEventListener("mousedown",this._onDocumentMouseDown),window.addEventListener("scroll",this._onScrollOrResize,{passive:!0,capture:!0}),window.addEventListener("resize",this._onScrollOrResize);const e=this.closest("anduin-field");e&&e.addEventListener(C1,t=>{var o;const i=t;this.inputid&&this.inputid===i.detail&&((o=this._inputEl)==null||o.focus())})}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("mousedown",this._onDocumentMouseDown),window.removeEventListener("scroll",this._onScrollOrResize,{capture:!0}),window.removeEventListener("resize",this._onScrollOrResize)}updated(e){this._inputEl&&this._inputEl.value!==this.value&&(this._inputEl.value=this.value),this._open&&(e.has("_open")||e.has("value"))&&requestAnimationFrame(()=>this._updatePosition())}_normalized(){return this.suggestions.map(e=>typeof e=="string"?{value:e,label:e}:{label:e.value,...e})}get _filteredSuggestions(){const e=this._normalized();if(!this.filter||!this.value)return e;const t=this.value.toLowerCase();return e.filter(i=>(i.label??i.value).toLowerCase().includes(t))}_openPanel(){this.disabled||this.readonly||(this._open=!0,this._activeIndex=-1)}_onFocus(){this._openPanel()}_onInput(){this.value=this._inputEl.value,this._open||this._openPanel(),this._activeIndex=-1,this.dispatchEvent(new CustomEvent(b2,{detail:this.value,bubbles:!0,composed:!0}))}_onKeyDown(e){const t=this._filteredSuggestions;if(e.key==="ArrowDown"){if(e.preventDefault(),!this._open){this._openPanel();return}if(t.length===0)return;this._activeIndex=(this._activeIndex+1)%t.length,this._scrollActiveIntoView()}else if(e.key==="ArrowUp"){if(e.preventDefault(),!this._open){this._openPanel();return}if(t.length===0)return;this._activeIndex=this._activeIndex<=0?t.length-1:this._activeIndex-1,this._scrollActiveIntoView()}else e.key==="Enter"?this._open&&this._activeIndex>=0&&this._activeIndex<t.length&&(e.preventDefault(),this._selectSuggestion(t[this._activeIndex])):e.key==="Escape"&&this._open&&(e.preventDefault(),this._open=!1)}_scrollActiveIntoView(){requestAnimationFrame(()=>{var t;const e=(t=this.shadowRoot)==null?void 0:t.querySelector(".option--active");e==null||e.scrollIntoView({block:"nearest"})})}_selectSuggestion(e){var t;this.value=e.value,this._inputEl&&(this._inputEl.value=e.value),this._open=!1,this.dispatchEvent(new CustomEvent(b2,{detail:this.value,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(X4,{detail:e,bubbles:!0,composed:!0})),(t=this._inputEl)==null||t.focus()}_onClear(){var e;this.value="",this._inputEl&&(this._inputEl.value=""),this._activeIndex=-1,this.dispatchEvent(new CustomEvent(b2,{detail:"",bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(J4,{bubbles:!0,composed:!0})),(e=this._inputEl)==null||e.focus()}_updatePosition(){var L1;const e=(L1=this.shadowRoot)==null?void 0:L1.querySelector(".input-wrapper"),t=this._panelEl;if(!e||!t)return;const i=e.getBoundingClientRect(),o=t.style.transform;t.style.transform="none";const l=t.getBoundingClientRect();t.style.transform=o;const n=t.querySelector(".panel__inner");n&&(n.style.minWidth=`${i.width}px`);const s=t.getBoundingClientRect(),c=4,u=window.innerWidth,v=window.innerHeight,f=8,m=v-i.bottom-c,H=i.top-c,i1=s.height<=m||m>=H?i.bottom+c:i.top-s.height-c;let k=i.left;k=Math.max(f,Math.min(k,u-s.width-f));const Y=Math.max(f,Math.min(i1,v-s.height-f));t.style.transform=`translate(${Math.round(k-l.left)}px, ${Math.round(Y-l.top)}px)`}render(){const e=this.size==="small"?"input--small":this.size==="large"?"input--large":"input--default",t=this.status?`input--${this.status}`:"",i=!!this.startIcon,o=!!this.endIcon||this.clearable&&!!this.value,l=this.clearable&&!!this.value&&!this.disabled&&!this.readonly,n=this.size==="small"?"12":this.size==="large"?"20":"16",s=this.size==="small"?"10":this.size==="large"?"16":"14",c=this._filteredSuggestions,u=this._open&&(!this.hideWhenEmpty||c.length>0);return C`
|
|
2328
2334
|
<div class="input-wrapper">
|
|
2329
2335
|
${i?C`
|
|
2330
2336
|
<span class="input__start">
|
|
@@ -2497,7 +2503,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
2497
2503
|
color: var(--color-gray-5, #98a1b2);
|
|
2498
2504
|
text-align: center;
|
|
2499
2505
|
}
|
|
2500
|
-
`;let V=U5;M([a()],V.prototype,"value"),M([a()],V.prototype,"size"),M([a({type:Boolean})],V.prototype,"disabled"),M([a({type:Boolean})],V.prototype,"readonly"),M([a()],V.prototype,"placeholder"),M([a()],V.prototype,"inputid"),M([a()],V.prototype,"status"),M([a({attribute:"start-icon"})],V.prototype,"startIcon"),M([a({attribute:"end-icon"})],V.prototype,"endIcon"),M([a({type:Boolean})],V.prototype,"clearable"),M([a({attribute:!1})],V.prototype,"suggestions"),M([a({type:Boolean})],V.prototype,"filter"),M([a({type:Boolean,attribute:"hide-when-empty"})],V.prototype,"hideWhenEmpty"),M([a({attribute:"empty-text"})],V.prototype,"emptyText"),M([
|
|
2506
|
+
`;let V=U5;M([a()],V.prototype,"value"),M([a()],V.prototype,"size"),M([a({type:Boolean})],V.prototype,"disabled"),M([a({type:Boolean})],V.prototype,"readonly"),M([a()],V.prototype,"placeholder"),M([a()],V.prototype,"inputid"),M([a()],V.prototype,"status"),M([a({attribute:"start-icon"})],V.prototype,"startIcon"),M([a({attribute:"end-icon"})],V.prototype,"endIcon"),M([a({type:Boolean})],V.prototype,"clearable"),M([a({attribute:!1})],V.prototype,"suggestions"),M([a({type:Boolean})],V.prototype,"filter"),M([a({type:Boolean,attribute:"hide-when-empty"})],V.prototype,"hideWhenEmpty"),M([a({attribute:"empty-text"})],V.prototype,"emptyText"),M([b()],V.prototype,"_open"),M([b()],V.prototype,"_activeIndex"),M([E("input")],V.prototype,"_inputEl"),M([E(".panel")],V.prototype,"_panelEl"),customElements.get("anduin-suggestion")||customElements.define("anduin-suggestion",V);var R7=Object.defineProperty,D=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&R7(e,t,o),o};const Q4="anduin-navigation:change",L2="anduin-navigation-item:item-click",j5=class j5 extends h{constructor(){super(...arguments),this.defaultValue="",this.value=null,this.theme="light",this.alignment="left",this.internalValue="",this.onItemClick=e=>{e.stopPropagation();const i=e.detail;i!==this.selection&&(this.dispatchEvent(new CustomEvent(Q4,{detail:i,bubbles:!0,composed:!0})),this.isControlled||(this.internalValue=i))}}get isControlled(){return this.value!=null}get selection(){return this.isControlled?this.value:this.internalValue}connectedCallback(){super.connectedCallback(),this.hasUpdated||(this.internalValue=this.defaultValue),this.addEventListener(L2,this.onItemClick)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(L2,this.onItemClick)}updated(){this.syncItems()}get items(){return Array.from(this.querySelectorAll("anduin-navigation-item"))}syncItems(){const e=this.selection;for(const t of this.items)t.selected=t.value===e,t.theme=this.theme}render(){return C`
|
|
2501
2507
|
<div class="navigation navigation--${this.alignment}" role="navigation" part="navigation">
|
|
2502
2508
|
<slot @slotchange=${this.syncItems}></slot>
|
|
2503
2509
|
</div>
|
|
@@ -2543,7 +2549,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
2543
2549
|
.navigation--left { justify-content: flex-start; }
|
|
2544
2550
|
.navigation--center { justify-content: center; }
|
|
2545
2551
|
.navigation--right { justify-content: flex-end; }
|
|
2546
|
-
`;let W=j5;D([a({attribute:"default-value"})],W.prototype,"defaultValue"),D([a()],W.prototype,"value"),D([a({reflect:!0})],W.prototype,"theme"),D([a()],W.prototype,"alignment"),D([
|
|
2552
|
+
`;let W=j5;D([a({attribute:"default-value"})],W.prototype,"defaultValue"),D([a()],W.prototype,"value"),D([a({reflect:!0})],W.prototype,"theme"),D([a()],W.prototype,"alignment"),D([b()],W.prototype,"internalValue");const q5=class q5 extends h{constructor(){super(...arguments),this.value="",this.startIcon="",this.href="",this.disabled=!1,this.selected=!1,this.theme="light"}onClick(e){if(this.disabled){e.preventDefault();return}this.dispatchEvent(new CustomEvent(L2,{detail:this.value,bubbles:!0,composed:!0}))}updated(e){e.has("selected")&&this.setAttribute("aria-current",this.selected?"page":"false")}render(){const e=["nav-item",this.selected?"nav-item--active":"",this.disabled?"nav-item--disabled":""].filter(Boolean).join(" "),t=C`
|
|
2547
2553
|
${this.startIcon?C`<span class="nav-item__icon"><anduin-icon name="${this.startIcon}" size="16"></anduin-icon></span>`:p}
|
|
2548
2554
|
<slot></slot>
|
|
2549
2555
|
`;return this.href?C`
|
|
@@ -2607,7 +2613,7 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
2607
2613
|
pointer-events: none;
|
|
2608
2614
|
}
|
|
2609
2615
|
.nav-item__icon { display: flex; }
|
|
2610
|
-
`;let G=q5;D([a()],G.prototype,"value"),D([a({attribute:"start-icon"})],G.prototype,"startIcon"),D([a()],G.prototype,"href"),D([a({type:Boolean})],G.prototype,"disabled"),D([a({attribute:!1})],G.prototype,"selected"),D([a({attribute:!1})],G.prototype,"theme"),customElements.get("anduin-navigation")||customElements.define("anduin-navigation",W),customElements.get("anduin-navigation-item")||customElements.define("anduin-navigation-item",G);var k7=Object.defineProperty,m1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&k7(e,t,o),o};const e3="anduin-resizable:resize",t3="anduin-resizable-panel",o3=r=>!!r&&r.tagName.toLowerCase()===t3;function i3(r,e,t){const i=(r||"").trim();if(!i)return t;const o=parseFloat(i);return Number.isNaN(o)?t:i.endsWith("%")?o/100*e:o}const W5=class W5 extends h{constructor(){super(...arguments),this.orientation="horizontal"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}get isVertical(){return this.orientation==="vertical"}get axisSize(){const e=this.getBoundingClientRect();return this.isVertical?e.height:e.width}get panels(){return Array.from(this.querySelectorAll(`:scope > ${t3}`))}updated(){for(const e of this.querySelectorAll(":scope > anduin-resizable-handle"))e.setOrientation(this.isVertical)}normalizeToGrow(){const e=this.axisSize;if(
|
|
2616
|
+
`;let G=q5;D([a()],G.prototype,"value"),D([a({attribute:"start-icon"})],G.prototype,"startIcon"),D([a()],G.prototype,"href"),D([a({type:Boolean})],G.prototype,"disabled"),D([a({attribute:!1})],G.prototype,"selected"),D([a({attribute:!1})],G.prototype,"theme"),customElements.get("anduin-navigation")||customElements.define("anduin-navigation",W),customElements.get("anduin-navigation-item")||customElements.define("anduin-navigation-item",G);var k7=Object.defineProperty,m1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&k7(e,t,o),o};const e3="anduin-resizable:resize",t3="anduin-resizable-panel",o3=r=>!!r&&r.tagName.toLowerCase()===t3;function i3(r,e,t){const i=(r||"").trim();if(!i)return t;const o=parseFloat(i);return Number.isNaN(o)?t:i.endsWith("%")?o/100*e:o}const W5=class W5 extends h{constructor(){super(...arguments),this.orientation="horizontal"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}get isVertical(){return this.orientation==="vertical"}get axisSize(){const e=this.getBoundingClientRect();return this.isVertical?e.height:e.width}get panels(){return Array.from(this.querySelectorAll(`:scope > ${t3}`))}updated(){for(const e of this.querySelectorAll(":scope > anduin-resizable-handle"))e.setOrientation(this.isVertical)}normalizeToGrow(){const e=this.axisSize;if(e<=0)return;const t=this.panels,i=t.map(o=>o.axisSize(this.isVertical));t.forEach((o,l)=>o.setGrow(i[l]/e*100))}render(){return C`
|
|
2611
2617
|
<div class="panel-group ${this.isVertical?"panel-group--vertical":""}" part="panel-group">
|
|
2612
2618
|
<slot></slot>
|
|
2613
2619
|
</div>
|
|
@@ -2645,4 +2651,4 @@ var AclWebComponents=(function(d){"use strict";var l3,o1;const r3=':root{--color
|
|
|
2645
2651
|
}
|
|
2646
2652
|
.handle:hover .handle__grip, .handle--dragging .handle__grip, :host(:focus-visible) .handle__grip { opacity: 1; }
|
|
2647
2653
|
.handle--vertical .handle__grip { transform: rotate(90deg); }
|
|
2648
|
-
`;let
|
|
2654
|
+
`;let b1=K5;if(m1([a({type:Boolean,attribute:"with-handle"})],b1.prototype,"withHandle"),m1([b()],b1.prototype,"groupVertical"),m1([b()],b1.prototype,"dragging"),customElements.get("anduin-resizable-panel-group")||customElements.define("anduin-resizable-panel-group",t2),customElements.get("anduin-resizable-panel")||customElements.define("anduin-resizable-panel",V1),customElements.get("anduin-resizable-handle")||customElements.define("anduin-resizable-handle",b1),typeof document<"u"&&!document.getElementById("acl-tokens")){const r=document.createElement("style");r.id="acl-tokens",r.textContent=r3,document.head.appendChild(r)}return d.AnduinAvatar=I,d.AnduinBadge=q1,d.AnduinBadgeCount=w1,d.AnduinButton=y,d.AnduinCallout=W1,d.AnduinCheckbox=U,d.AnduinDivider=R1,d.AnduinDot=Y1,d.AnduinDrawer=z,d.AnduinDrawerClose=K4,d.AnduinDropdown=L,d.AnduinField=X1,d.AnduinFieldDescription=a2,d.AnduinFieldError=s2,d.AnduinFieldGroup=C2,d.AnduinFieldLabel=$1,d.AnduinFileIcon=S1,d.AnduinIcon=x1,d.AnduinInput=x,d.AnduinLoadingState=K1,d.AnduinMenu=Q,d.AnduinMenuItem=h1,d.AnduinModal=O4,d.AnduinModalClose=I4,d.AnduinNavigation=W,d.AnduinNavigationItem=G,d.AnduinPopover=O,d.AnduinPopoverClose=f2,d.AnduinProgress=k1,d.AnduinRadio=N,d.AnduinRadioGroup=v1,d.AnduinResizableHandle=b1,d.AnduinResizablePanel=V1,d.AnduinResizablePanelGroup=t2,d.AnduinSkeleton=F,d.AnduinSparkleSpinner=Z1,d.AnduinSpinner=_1,d.AnduinSuggestion=V,d.AnduinSwitcher=I1,d.AnduinTabContent=z1,d.AnduinTabTrigger=T,d.AnduinTabs=d1,d.AnduinTabsList=A1,d.AnduinTag=c1,d.AnduinTagClose=d2,d.AnduinTextarea=A,d.AnduinToast=q,d.AnduinToaster=O1,d.AnduinToggleGroup=P,d.AnduinToggleGroupItem=S,d.AnduinTooltip=B1,d.AnduinTooltipContent=h2,d.AnduinTooltipTrigger=u2,d.AnduinWell=e2,d.AnduinWellClose=g2,d.BADGE_STYLES=A2,d.CHECKBOX_CHANGE=L4,d.DRAWER_AFTER_CLOSE_EVENT=W4,d.DRAWER_CLOSE_EVENT=V2,d.DROPDOWN_CHANGE=J2,d.FIELD_LABEL_CLICK=P2,d.FIELD_LABEL_CLICK_COORDINATED=C1,d.FILE_ICONS=T4,d.INPUT_CHANGE=S2,d.INPUT_CLEAR=y4,d.MENU_ITEM_CLICK=H2,d.MODAL_AFTER_CLOSE_EVENT=P4,d.MODAL_CLOSE_EVENT=P1,d.NAVIGATION_CHANGE=Q4,d.NAVIGATION_ITEM_CLICK=L2,d.POPOVER_CLOSE=v2,d.RADIO_CHANGE=m2,d.RADIO_GROUP_CHANGE=D4,d.RESIZE_EVENT=e3,d.SUGGESTION_CHANGE=b2,d.SUGGESTION_CLEAR=J4,d.SUGGESTION_SELECT=X4,d.SWITCHER_CHANGE=q4,d.TAB_CHANGE=_4,d.TAB_TRIGGER_CLICK=O2,d.TAB_VALUE_CHANGED=Q1,d.TAG_CLOSE_CLICK=Z4,d.TEXTAREA_CHANGE=M4,d.TOGGLE_GROUP_CHANGE=x4,d.TOGGLE_GROUP_ITEM_CHANGE=w4,d.TOGGLE_GROUP_ITEM_CLICK=c2,d.TOGGLE_GROUP_ITEM_DESELECT=k4,d.TOGGLE_GROUP_ITEM_SELECT=R4,d.TOOLTIP_CONTENT_POPUP_MOUNTED=N2,d.TOOLTIP_CONTENT_POPUP_UNMOUNTED=G2,d.TOOLTIP_HIDE=p2,d.TOOLTIP_SHOW=F2,d.TOOLTIP_TRIGGER_MOUNTED=T2,d.TOOLTIP_VISIBILITY_CHANGED=U2,d.WELL_CLOSE_CLICK=B4,d.getBadgeVariantClass=z2,d.resolveFileIcon=N4,d.toast=b7,Object.defineProperty(d,Symbol.toStringTag,{value:"Module"}),d})({});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as c, a as l, b as r, c as i, d as e, e as p, f as t, g as d, h as u, i as g, j as A, k as x, l as E, m as h, n as k, o as T, p as _, q as C, r as m, s as O, t as I, u as G, v as L, w as y, x as N, y as S, z as R, B as P, C as D, D as w, E as b, F as U, G as H, H as f, I as M, J as z, K as B, L as F, M as v, N as V, O as K, P as W, Q as X, R as Y, S as j, T as q, U as Z, V as J, W as Q, X as $, Y as aa, Z as oa, _ as na, $ as sa, a0 as ca, a1 as la, a2 as ra, a3 as ia, a4 as ea, a5 as pa, a6 as ta, a7 as da, a8 as ua, a9 as ga, aa as Aa, ab as xa, ac as Ea, ad as ha, ae as ka, af as Ta, ag as _a, ah as Ca, ai as ma, aj as Oa, ak as Ia, al as Ga, am as La, an as ya, ao as Na, ap as Sa, aq as Ra, ar as Pa, as as Da, at as wa, au as ba, av as Ua, aw as Ha, ax as fa, ay as Ma, az as za, aA as Ba, aB as Fa, aC as va, aD as Va, aE as Ka, aF as Wa, aG as Xa, aH as Ya } from "./anduin-resizable-
|
|
1
|
+
import { A as c, a as l, b as r, c as i, d as e, e as p, f as t, g as d, h as u, i as g, j as A, k as x, l as E, m as h, n as k, o as T, p as _, q as C, r as m, s as O, t as I, u as G, v as L, w as y, x as N, y as S, z as R, B as P, C as D, D as w, E as b, F as U, G as H, H as f, I as M, J as z, K as B, L as F, M as v, N as V, O as K, P as W, Q as X, R as Y, S as j, T as q, U as Z, V as J, W as Q, X as $, Y as aa, Z as oa, _ as na, $ as sa, a0 as ca, a1 as la, a2 as ra, a3 as ia, a4 as ea, a5 as pa, a6 as ta, a7 as da, a8 as ua, a9 as ga, aa as Aa, ab as xa, ac as Ea, ad as ha, ae as ka, af as Ta, ag as _a, ah as Ca, ai as ma, aj as Oa, ak as Ia, al as Ga, am as La, an as ya, ao as Na, ap as Sa, aq as Ra, ar as Pa, as as Da, at as wa, au as ba, av as Ua, aw as Ha, ax as fa, ay as Ma, az as za, aA as Ba, aB as Fa, aC as va, aD as Va, aE as Ka, aF as Wa, aG as Xa, aH as Ya } from "./anduin-resizable-B0NdBVJ8.js";
|
|
2
2
|
const o = ':root{--color-gray-0: oklch(1 0 0);--color-gray-1: oklch(.9846 .0017 247.84);--color-gray-2: oklch(.9515 .0046 258.32);--color-gray-3: oklch(.9336 .0058 264.53);--color-gray-4: oklch(.8618 .0141 258.35);--color-gray-5: oklch(.7073 .0268 263.28);--color-gray-6: oklch(.6528 .0316 266.24);--color-gray-7: oklch(.5371 .0337 264.24);--color-gray-8: oklch(.3544 .0326 260.94);--color-gray-9: oklch(.2776 .0341 255.81);--color-danger-1: oklch(.9437 .0174 17.47);--color-danger-2: oklch(.8643 .0573 18.32);--color-danger-3: oklch(.712 .1517 21.64);--color-danger-4: oklch(.5948 .2165 26.91);--color-danger-5: oklch(.531 .2147 28.91);--color-primary-1: oklch(.9474 .0256 221.57);--color-primary-2: oklch(.8652 .066 236.86);--color-primary-3: oklch(.7219 .1335 240.15);--color-primary-4: oklch(.5679 .1784 254.76);--color-primary-5: oklch(.4682 .1548 255.23);--color-success-1: oklch(.9276 .0541 150.91);--color-success-2: oklch(.8592 .1078 149.75);--color-success-3: oklch(.6953 .1711 149.14);--color-success-4: oklch(.6149 .1634 148.21);--color-success-5: oklch(.5075 .136 146.46);--color-warning-1: oklch(.9549 .0496 88.08);--color-warning-2: oklch(.912 .0811 83.56);--color-warning-3: oklch(.8282 .1628 78.73);--color-warning-4: oklch(.7325 .1512 75.97);--color-warning-5: oklch(.5329 .1098 82);--color-semantic-gray-0: oklch(1 0 0);--color-semantic-gray-1: oklch(.9846 .0017 247.84);--color-semantic-gray-2: oklch(.9515 .0046 258.32);--color-semantic-gray-3: oklch(.9336 .0058 264.53);--color-semantic-gray-4: oklch(.8618 .0141 258.35);--color-semantic-gray-5: oklch(.7073 .0268 263.28);--color-semantic-gray-6: oklch(.6528 .0316 266.24);--color-semantic-gray-7: oklch(.5371 .0337 264.24);--color-semantic-gray-8: oklch(.3544 .0326 260.94);--color-semantic-gray-9: oklch(.2776 .0341 255.81);--color-semantic-danger-1: oklch(.9437 .0174 17.47);--color-semantic-danger-2: oklch(.8643 .0573 18.32);--color-semantic-danger-3: oklch(.712 .1517 21.64);--color-semantic-danger-4: oklch(.5948 .2165 26.91);--color-semantic-danger-5: oklch(.531 .2147 28.91);--color-semantic-primary-1: oklch(.9474 .0256 221.57);--color-semantic-primary-2: oklch(.8652 .066 236.86);--color-semantic-primary-3: oklch(.7219 .1335 240.15);--color-semantic-primary-4: oklch(.5679 .1784 254.76);--color-semantic-primary-5: oklch(.4682 .1548 255.23);--color-semantic-success-1: oklch(.9276 .0541 150.91);--color-semantic-success-2: oklch(.8592 .1078 149.75);--color-semantic-success-3: oklch(.6953 .1711 149.14);--color-semantic-success-4: oklch(.6149 .1634 148.21);--color-semantic-success-5: oklch(.5075 .136 146.46);--color-semantic-warning-1: oklch(.9549 .0496 88.08);--color-semantic-warning-2: oklch(.912 .0811 83.56);--color-semantic-warning-3: oklch(.8282 .1628 78.73);--color-semantic-warning-4: oklch(.7325 .1512 75.97);--color-semantic-warning-5: oklch(.5329 .1098 82);--color-purple-50: oklch(.9676 .016 286.1);--color-purple-100: oklch(.9434 .0255 288.32);--color-purple-200: oklch(.8927 .0519 287.71);--color-purple-300: oklch(.81 .0925 287.61);--color-purple-400: oklch(.7048 .1478 287.77);--color-purple-500: oklch(.5961 .2043 286.53);--color-purple-600: oklch(.5316 .2303 286.64);--color-purple-700: oklch(.471 .2307 285.3);--color-purple-800: oklch(.4148 .2014 285.43);--color-purple-900: oklch(.3654 .17 286.37);--color-purple-950: oklch(.2734 .1288 284.42);--color-white: var(--color-gray-0);--font-sans: system-ui, -apple-system, Roboto, Oxygen, Cantarell, Ubuntu, "Segoe UI", sans-serif;--font-mono: monospace;--text-9: 9px;--text-10: 10px;--text-11: 11px;--text-12: 12px;--text-13: 13px;--text-15: 15px;--text-17: 17px;--text-20: 20px;--text-23: 23px;--text-26: 26px;--text-30: 30px;--text-35: 35px;--font-weight-normal: 400;--font-weight-medium: 500;--font-weight-semibold: 600;--font-weight-bold: 700;--leading-16: 16px;--leading-20: 20px;--leading-24: 24px;--leading-28: 28px;--leading-32: 32px;--leading-40: 40px;--leading-44: 44px;--leading-r1p5: 1.5;--radius-0: 0;--radius-2: 2px;--radius-3: 3px;--radius-4: 4px;--radius-6: 6px;--radius-8: 8px;--radius-12: 12px;--radius-16: 16px;--radius-20: 20px;--radius-24: 24px;--radius-full: 9999px;--shadow-1: 0px 1px 2px rgba(29, 41, 57, .07);--shadow-2: 0px 1px 2px rgba(29, 41, 57, .04), 0px 2px 8px rgba(29, 41, 57, .08);--shadow-3: 0px 2px 8px rgba(29, 41, 57, .08), 0px 8px 24px rgba(29, 41, 57, .12);--shadow-4: 0px 4px 8px rgba(29, 41, 57, .08), 0px 16px 48px rgba(29, 41, 57, .16);--spacing-px: 1px;--spacing-0: 0;--spacing-2: 2px;--spacing-4: 4px;--spacing-6: 6px;--spacing-8: 8px;--spacing-12: 12px;--spacing-16: 16px;--spacing-20: 20px;--spacing-24: 24px;--spacing-28: 28px;--spacing-32: 32px;--spacing-40: 40px;--spacing-48: 48px;--spacing-56: 56px;--spacing-64: 64px;--spacing-128: 128px;--spacing-256: 256px;--z-0: 0;--z-1: 1;--z-2: 2;--z-3: 3;--z-4: 4;--z-5: 5;--z-999: 999;--z-9999: 9999}body{font-family:var(--font-sans);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-size:var(--text-13)}';
|
|
3
3
|
if (typeof document < "u" && !document.getElementById("acl-tokens")) {
|
|
4
4
|
const a = document.createElement("style");
|
|
@@ -2673,12 +2673,16 @@ u5.styles = g`
|
|
|
2673
2673
|
--toggle-group-item-padding: 0; --toggle-group-item-line-height: inherit;
|
|
2674
2674
|
--toggle-group-item-icon-gap: 8px;
|
|
2675
2675
|
}
|
|
2676
|
-
|
|
2677
|
-
|
|
2676
|
+
/* Each item draws its own left border only when it's the first in the row;
|
|
2677
|
+
every other item omits its left border so the divider between two items
|
|
2678
|
+
is a single 1px line (item N's right border), never a doubled one. */
|
|
2679
|
+
::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 0; --toggle-group-item-border-left: 0; }
|
|
2680
|
+
::slotted(anduin-toggle-group-item:first-child) { --toggle-group-item-radius: 4px 0 0 4px; --toggle-group-item-border-left: 1px; }
|
|
2678
2681
|
::slotted(anduin-toggle-group-item:last-child) { --toggle-group-item-radius: 0 4px 4px 0; }
|
|
2679
2682
|
::slotted(anduin-toggle-group-item:only-child) { --toggle-group-item-radius: 4px; }
|
|
2680
2683
|
.toggle-group--gap { flex-wrap: wrap; gap: 8px; }
|
|
2681
|
-
|
|
2684
|
+
/* Gapped pills stand alone, so each keeps all four borders. */
|
|
2685
|
+
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
|
|
2682
2686
|
`;
|
|
2683
2687
|
let P = u5;
|
|
2684
2688
|
R([
|
|
@@ -2758,6 +2762,8 @@ h5.styles = g`
|
|
|
2758
2762
|
position: relative; z-index: 0; box-sizing: border-box;
|
|
2759
2763
|
display: flex; align-items: center; justify-content: center;
|
|
2760
2764
|
background: none; border: 1px solid var(--color-gray-4);
|
|
2765
|
+
/* Group omits the left border on all but the first item so dividers never double. */
|
|
2766
|
+
border-left-width: var(--toggle-group-item-border-left, 1px);
|
|
2761
2767
|
border-radius: var(--toggle-group-item-radius, 4px);
|
|
2762
2768
|
color: var(--color-gray-7); cursor: pointer; font-family: inherit;
|
|
2763
2769
|
font-size: var(--toggle-group-item-font-size, 13px); font-weight: 500;
|
|
@@ -6196,9 +6202,9 @@ const P5 = class P5 extends u {
|
|
|
6196
6202
|
*/
|
|
6197
6203
|
normalizeToGrow() {
|
|
6198
6204
|
const e = this.axisSize;
|
|
6199
|
-
if (
|
|
6200
|
-
|
|
6201
|
-
|
|
6205
|
+
if (e <= 0) return;
|
|
6206
|
+
const t = this.panels, i = t.map((o) => o.axisSize(this.isVertical));
|
|
6207
|
+
t.forEach((o, l) => o.setGrow(i[l] / e * 100));
|
|
6202
6208
|
}
|
|
6203
6209
|
render() {
|
|
6204
6210
|
return C`
|
|
@@ -766,12 +766,16 @@
|
|
|
766
766
|
--toggle-group-item-padding: 0; --toggle-group-item-line-height: inherit;
|
|
767
767
|
--toggle-group-item-icon-gap: 8px;
|
|
768
768
|
}
|
|
769
|
-
|
|
770
|
-
|
|
769
|
+
/* Each item draws its own left border only when it's the first in the row;
|
|
770
|
+
every other item omits its left border so the divider between two items
|
|
771
|
+
is a single 1px line (item N's right border), never a doubled one. */
|
|
772
|
+
::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 0; --toggle-group-item-border-left: 0; }
|
|
773
|
+
::slotted(anduin-toggle-group-item:first-child) { --toggle-group-item-radius: 4px 0 0 4px; --toggle-group-item-border-left: 1px; }
|
|
771
774
|
::slotted(anduin-toggle-group-item:last-child) { --toggle-group-item-radius: 0 4px 4px 0; }
|
|
772
775
|
::slotted(anduin-toggle-group-item:only-child) { --toggle-group-item-radius: 4px; }
|
|
773
776
|
.toggle-group--gap { flex-wrap: wrap; gap: 8px; }
|
|
774
|
-
|
|
777
|
+
/* Gapped pills stand alone, so each keeps all four borders. */
|
|
778
|
+
.toggle-group--gap ::slotted(anduin-toggle-group-item) { --toggle-group-item-radius: 4px; --toggle-group-item-border-left: 1px; }
|
|
775
779
|
`;let z=M5;R([a()],z.prototype,"mode");R([a({attribute:"default-value"})],z.prototype,"defaultValue");R([a()],z.prototype,"value");R([a()],z.prototype,"size");R([a()],z.prototype,"variant");R([a({type:Boolean})],z.prototype,"gap");R([L()],z.prototype,"internalValue");const _5=class _5 extends u{constructor(){super(...arguments),this.value="",this.startIcon="",this.disabled=!1,this.selected=!1,this.groupSize="medium",this.groupVariant="gray",this.groupMode="single"}emitSelectionChange(e){this.dispatchEvent(new CustomEvent(S4,{detail:e,bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent(e?O4:I4,{detail:this.value,bubbles:!0,composed:!0}))}updated(e){(e.has("selected")||e.has("groupMode"))&&(this.groupMode==="single"?(this.setAttribute("role","radio"),this.setAttribute("aria-checked",String(this.selected))):(this.removeAttribute("role"),this.removeAttribute("aria-checked")))}onClick(){this.dispatchEvent(new CustomEvent(p2,{detail:this.value,bubbles:!0,composed:!0}))}render(){const e=["toggle-item",this.selected?"toggle-item--selected":"",this.disabled?"toggle-item--disabled":"",`toggle-item--variant-${this.groupVariant}`].filter(Boolean).join(" ");return C`
|
|
776
780
|
<button
|
|
777
781
|
type="button"
|
|
@@ -792,6 +796,8 @@
|
|
|
792
796
|
position: relative; z-index: 0; box-sizing: border-box;
|
|
793
797
|
display: flex; align-items: center; justify-content: center;
|
|
794
798
|
background: none; border: 1px solid var(--color-gray-4);
|
|
799
|
+
/* Group omits the left border on all but the first item so dividers never double. */
|
|
800
|
+
border-left-width: var(--toggle-group-item-border-left, 1px);
|
|
795
801
|
border-radius: var(--toggle-group-item-radius, 4px);
|
|
796
802
|
color: var(--color-gray-7); cursor: pointer; font-family: inherit;
|
|
797
803
|
font-size: var(--toggle-group-item-font-size, 13px); font-weight: 500;
|
|
@@ -2607,7 +2613,7 @@
|
|
|
2607
2613
|
pointer-events: none;
|
|
2608
2614
|
}
|
|
2609
2615
|
.nav-item__icon { display: flex; }
|
|
2610
|
-
`;let N=j5;I([a()],N.prototype,"value");I([a({attribute:"start-icon"})],N.prototype,"startIcon");I([a()],N.prototype,"href");I([a({type:Boolean})],N.prototype,"disabled");I([a({attribute:!1})],N.prototype,"selected");I([a({attribute:!1})],N.prototype,"theme");customElements.get("anduin-navigation")||customElements.define("anduin-navigation",q);customElements.get("anduin-navigation-item")||customElements.define("anduin-navigation-item",N);var w7=Object.defineProperty,L1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&w7(e,t,o),o};const o3="anduin-resizable:resize",i3="anduin-resizable-panel",v4=r=>!!r&&r.tagName.toLowerCase()===i3;function f4(r,e,t){const i=(r||"").trim();if(!i)return t;const o=parseFloat(i);return Number.isNaN(o)?t:i.endsWith("%")?o/100*e:o}const q5=class q5 extends u{constructor(){super(...arguments),this.orientation="horizontal"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}get isVertical(){return this.orientation==="vertical"}get axisSize(){const e=this.getBoundingClientRect();return this.isVertical?e.height:e.width}get panels(){return Array.from(this.querySelectorAll(`:scope > ${i3}`))}updated(){for(const e of this.querySelectorAll(":scope > anduin-resizable-handle"))e.setOrientation(this.isVertical)}normalizeToGrow(){const e=this.axisSize;if(
|
|
2616
|
+
`;let N=j5;I([a()],N.prototype,"value");I([a({attribute:"start-icon"})],N.prototype,"startIcon");I([a()],N.prototype,"href");I([a({type:Boolean})],N.prototype,"disabled");I([a({attribute:!1})],N.prototype,"selected");I([a({attribute:!1})],N.prototype,"theme");customElements.get("anduin-navigation")||customElements.define("anduin-navigation",q);customElements.get("anduin-navigation-item")||customElements.define("anduin-navigation-item",N);var w7=Object.defineProperty,L1=(r,e,t,i)=>{for(var o=void 0,l=r.length-1,n;l>=0;l--)(n=r[l])&&(o=n(e,t,o)||o);return o&&w7(e,t,o),o};const o3="anduin-resizable:resize",i3="anduin-resizable-panel",v4=r=>!!r&&r.tagName.toLowerCase()===i3;function f4(r,e,t){const i=(r||"").trim();if(!i)return t;const o=parseFloat(i);return Number.isNaN(o)?t:i.endsWith("%")?o/100*e:o}const q5=class q5 extends u{constructor(){super(...arguments),this.orientation="horizontal"}connectedCallback(){super.connectedCallback(),this.setAttribute("role","group")}get isVertical(){return this.orientation==="vertical"}get axisSize(){const e=this.getBoundingClientRect();return this.isVertical?e.height:e.width}get panels(){return Array.from(this.querySelectorAll(`:scope > ${i3}`))}updated(){for(const e of this.querySelectorAll(":scope > anduin-resizable-handle"))e.setOrientation(this.isVertical)}normalizeToGrow(){const e=this.axisSize;if(e<=0)return;const t=this.panels,i=t.map(o=>o.axisSize(this.isVertical));t.forEach((o,l)=>o.setGrow(i[l]/e*100))}render(){return C`
|
|
2611
2617
|
<div class="panel-group ${this.isVertical?"panel-group--vertical":""}" part="panel-group">
|
|
2612
2618
|
<slot></slot>
|
|
2613
2619
|
</div>
|
package/dist/react.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),t=require("@lit/react"),e=require("./anduin-resizable-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react"),t=require("@lit/react"),e=require("./anduin-resizable-Df1balNa.cjs"),a=t.createComponent({react:n,tagName:"anduin-spinner",elementClass:e.AnduinSpinner}),o=t.createComponent({react:n,tagName:"anduin-sparkle-spinner",elementClass:e.AnduinSparkleSpinner}),s=t.createComponent({react:n,tagName:"anduin-icon",elementClass:e.AnduinIcon}),l=t.createComponent({react:n,tagName:"anduin-badge",elementClass:e.AnduinBadge}),C=t.createComponent({react:n,tagName:"anduin-badge-count",elementClass:e.AnduinBadgeCount}),r=t.createComponent({react:n,tagName:"anduin-button",elementClass:e.AnduinButton}),i=t.createComponent({react:n,tagName:"anduin-callout",elementClass:e.AnduinCallout}),c=t.createComponent({react:n,tagName:"anduin-divider",elementClass:e.AnduinDivider}),m=t.createComponent({react:n,tagName:"anduin-dot",elementClass:e.AnduinDot}),E=t.createComponent({react:n,tagName:"anduin-progress",elementClass:e.AnduinProgress}),d=t.createComponent({react:n,tagName:"anduin-skeleton",elementClass:e.AnduinSkeleton}),u=t.createComponent({react:n,tagName:"anduin-loading-state",elementClass:e.AnduinLoadingState}),g=t.createComponent({react:n,tagName:"anduin-field",elementClass:e.AnduinField}),A=t.createComponent({react:n,tagName:"anduin-field-label",elementClass:e.AnduinFieldLabel}),N=t.createComponent({react:n,tagName:"anduin-field-description",elementClass:e.AnduinFieldDescription}),T=t.createComponent({react:n,tagName:"anduin-field-error",elementClass:e.AnduinFieldError}),p=t.createComponent({react:n,tagName:"anduin-field-group",elementClass:e.AnduinFieldGroup}),_=t.createComponent({react:n,tagName:"anduin-radio",elementClass:e.AnduinRadio,events:{onChange:e.RADIO_CHANGE}}),G=t.createComponent({react:n,tagName:"anduin-radio-group",elementClass:e.AnduinRadioGroup,events:{onChange:e.RADIO_GROUP_CHANGE}}),O=t.createComponent({react:n,tagName:"anduin-checkbox",elementClass:e.AnduinCheckbox,events:{onChange:e.CHECKBOX_CHANGE}}),S=t.createComponent({react:n,tagName:"anduin-input",elementClass:e.AnduinInput,events:{onChange:e.INPUT_CHANGE,onClear:e.INPUT_CLEAR}}),R=t.createComponent({react:n,tagName:"anduin-textarea",elementClass:e.AnduinTextarea,events:{onChange:e.TEXTAREA_CHANGE}}),L=t.createComponent({react:n,tagName:"anduin-popover",elementClass:e.AnduinPopover}),I=t.createComponent({react:n,tagName:"anduin-popover-close",elementClass:e.AnduinPopoverClose}),D=t.createComponent({react:n,tagName:"anduin-menu",elementClass:e.AnduinMenu}),H=t.createComponent({react:n,tagName:"anduin-menu-item",elementClass:e.AnduinMenuItem}),b=t.createComponent({react:n,tagName:"anduin-modal",elementClass:e.AnduinModal,events:{onClose:e.MODAL_CLOSE_EVENT,onAfterClose:e.MODAL_AFTER_CLOSE_EVENT}}),v=t.createComponent({react:n,tagName:"anduin-modal-close",elementClass:e.AnduinModalClose}),P=t.createComponent({react:n,tagName:"anduin-tabs",elementClass:e.AnduinTabs,events:{onChange:e.TAB_CHANGE}}),M=t.createComponent({react:n,tagName:"anduin-tabs-list",elementClass:e.AnduinTabsList}),U=t.createComponent({react:n,tagName:"anduin-tab-trigger",elementClass:e.AnduinTabTrigger}),F=t.createComponent({react:n,tagName:"anduin-tab-content",elementClass:e.AnduinTabContent}),h=t.createComponent({react:n,tagName:"anduin-tag",elementClass:e.AnduinTag}),W=t.createComponent({react:n,tagName:"anduin-tag-close",elementClass:e.AnduinTagClose,events:{onClick:e.TAG_CLOSE_CLICK}}),w=t.createComponent({react:n,tagName:"anduin-toggle-group",elementClass:e.AnduinToggleGroup,events:{onChange:e.TOGGLE_GROUP_CHANGE}}),V=t.createComponent({react:n,tagName:"anduin-toggle-group-item",elementClass:e.AnduinToggleGroupItem,events:{onChange:e.TOGGLE_GROUP_ITEM_CHANGE,onSelect:e.TOGGLE_GROUP_ITEM_SELECT,onDeselect:e.TOGGLE_GROUP_ITEM_DESELECT}}),B=t.createComponent({react:n,tagName:"anduin-tooltip",elementClass:e.AnduinTooltip}),k=t.createComponent({react:n,tagName:"anduin-tooltip-trigger",elementClass:e.AnduinTooltipTrigger}),z=t.createComponent({react:n,tagName:"anduin-tooltip-content",elementClass:e.AnduinTooltipContent}),K=t.createComponent({react:n,tagName:"anduin-well",elementClass:e.AnduinWell}),f=t.createComponent({react:n,tagName:"anduin-well-close",elementClass:e.AnduinWellClose,events:{onClick:e.WELL_CLOSE_CLICK}}),x=t.createComponent({react:n,tagName:"anduin-avatar",elementClass:e.AnduinAvatar}),X=t.createComponent({react:n,tagName:"anduin-file-icon",elementClass:e.AnduinFileIcon}),q=t.createComponent({react:n,tagName:"anduin-toast",elementClass:e.AnduinToast}),Z=t.createComponent({react:n,tagName:"anduin-toaster",elementClass:e.AnduinToaster}),y=t.createComponent({react:n,tagName:"anduin-dropdown",elementClass:e.AnduinDropdown,events:{onChange:e.DROPDOWN_CHANGE}}),j=t.createComponent({react:n,tagName:"anduin-drawer",elementClass:e.AnduinDrawer,events:{onClose:e.DRAWER_CLOSE_EVENT,onAfterClose:e.DRAWER_AFTER_CLOSE_EVENT}}),J=t.createComponent({react:n,tagName:"anduin-drawer-close",elementClass:e.AnduinDrawerClose}),Q=t.createComponent({react:n,tagName:"anduin-switcher",elementClass:e.AnduinSwitcher,events:{onChange:e.SWITCHER_CHANGE}}),Y=t.createComponent({react:n,tagName:"anduin-suggestion",elementClass:e.AnduinSuggestion,events:{onChange:e.SUGGESTION_CHANGE,onSelect:e.SUGGESTION_SELECT,onClear:e.SUGGESTION_CLEAR}}),$=t.createComponent({react:n,tagName:"anduin-navigation",elementClass:e.AnduinNavigation,events:{onChange:e.NAVIGATION_CHANGE}}),ee=t.createComponent({react:n,tagName:"anduin-navigation-item",elementClass:e.AnduinNavigationItem}),ne=t.createComponent({react:n,tagName:"anduin-resizable-panel-group",elementClass:e.AnduinResizablePanelGroup}),te=t.createComponent({react:n,tagName:"anduin-resizable-panel",elementClass:e.AnduinResizablePanel}),ae=t.createComponent({react:n,tagName:"anduin-resizable-handle",elementClass:e.AnduinResizableHandle,events:{onResize:e.RESIZE_EVENT}});exports.CHECKBOX_CHANGE=e.CHECKBOX_CHANGE;exports.DRAWER_AFTER_CLOSE_EVENT=e.DRAWER_AFTER_CLOSE_EVENT;exports.DRAWER_CLOSE_EVENT=e.DRAWER_CLOSE_EVENT;exports.DROPDOWN_CHANGE=e.DROPDOWN_CHANGE;exports.INPUT_CHANGE=e.INPUT_CHANGE;exports.INPUT_CLEAR=e.INPUT_CLEAR;exports.MENU_ITEM_CLICK=e.MENU_ITEM_CLICK;exports.MODAL_AFTER_CLOSE_EVENT=e.MODAL_AFTER_CLOSE_EVENT;exports.MODAL_CLOSE_EVENT=e.MODAL_CLOSE_EVENT;exports.NAVIGATION_CHANGE=e.NAVIGATION_CHANGE;exports.RADIO_CHANGE=e.RADIO_CHANGE;exports.RADIO_GROUP_CHANGE=e.RADIO_GROUP_CHANGE;exports.RESIZE_EVENT=e.RESIZE_EVENT;exports.SUGGESTION_CHANGE=e.SUGGESTION_CHANGE;exports.SUGGESTION_CLEAR=e.SUGGESTION_CLEAR;exports.SUGGESTION_SELECT=e.SUGGESTION_SELECT;exports.SWITCHER_CHANGE=e.SWITCHER_CHANGE;exports.TAB_CHANGE=e.TAB_CHANGE;exports.TAG_CLOSE_CLICK=e.TAG_CLOSE_CLICK;exports.TEXTAREA_CHANGE=e.TEXTAREA_CHANGE;exports.TOGGLE_GROUP_CHANGE=e.TOGGLE_GROUP_CHANGE;exports.TOGGLE_GROUP_ITEM_CHANGE=e.TOGGLE_GROUP_ITEM_CHANGE;exports.TOGGLE_GROUP_ITEM_DESELECT=e.TOGGLE_GROUP_ITEM_DESELECT;exports.TOGGLE_GROUP_ITEM_SELECT=e.TOGGLE_GROUP_ITEM_SELECT;exports.WELL_CLOSE_CLICK=e.WELL_CLOSE_CLICK;exports.Avatar=x;exports.Badge=l;exports.BadgeCount=C;exports.Button=r;exports.Callout=i;exports.Checkbox=O;exports.Divider=c;exports.Dot=m;exports.Drawer=j;exports.DrawerClose=J;exports.Dropdown=y;exports.Field=g;exports.FieldDescription=N;exports.FieldError=T;exports.FieldGroup=p;exports.FieldLabel=A;exports.FileIcon=X;exports.Icon=s;exports.Input=S;exports.LoadingState=u;exports.Menu=D;exports.MenuItem=H;exports.Modal=b;exports.ModalClose=v;exports.Navigation=$;exports.NavigationItem=ee;exports.Popover=L;exports.PopoverClose=I;exports.Progress=E;exports.Radio=_;exports.RadioGroup=G;exports.ResizableHandle=ae;exports.ResizablePanel=te;exports.ResizablePanelGroup=ne;exports.Skeleton=d;exports.SparkleSpinner=o;exports.Spinner=a;exports.Suggestion=Y;exports.Switcher=Q;exports.TabContent=F;exports.TabTrigger=U;exports.Tabs=P;exports.TabsList=M;exports.Tag=h;exports.TagClose=W;exports.Textarea=R;exports.Toast=q;exports.Toaster=Z;exports.ToggleGroup=w;exports.ToggleGroupItem=V;exports.Tooltip=B;exports.TooltipContent=z;exports.TooltipTrigger=k;exports.Well=K;exports.WellClose=f;
|
package/dist/react.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import e from "react";
|
|
2
2
|
import { createComponent as a } from "@lit/react";
|
|
3
|
-
import { K as n, J as t, q as s, a as o, b as l, c as i, d as r, f as d, g as u, C as c, I as m, s as C, k as g, o as A, l as N, m as E, n as T, ah as p, D as G, ai as _, E as v, a2 as S, e as b, aa as R, a9 as I, r as L, as as O, T as D, z as h, B as P, t as H, u as w, ac as M, ad as F, v as f, w as k, ao as U, P as z, Q as x, O as W, N as B, R as V, ar as K, S as X, at as j, W as Z, aw as q, ax as y, au as J, X as Q, Y, _ as $, Z as ee, $ as ae, aE as ne, a0 as te, A as se, p as oe, U as le, V as ie, a5 as re, j as de, a3 as ue, a4 as ce, h as me, i as Ce, an as ge, M as Ae, al as Ne, am as Ee, ak as Te, L as pe, ae as Ge, x as _e, y as ve, H as Se, G as be, aj as Re, F as Ie } from "./anduin-resizable-
|
|
4
|
-
import { ab as wa } from "./anduin-resizable-
|
|
3
|
+
import { K as n, J as t, q as s, a as o, b as l, c as i, d as r, f as d, g as u, C as c, I as m, s as C, k as g, o as A, l as N, m as E, n as T, ah as p, D as G, ai as _, E as v, a2 as S, e as b, aa as R, a9 as I, r as L, as as O, T as D, z as h, B as P, t as H, u as w, ac as M, ad as F, v as f, w as k, ao as U, P as z, Q as x, O as W, N as B, R as V, ar as K, S as X, at as j, W as Z, aw as q, ax as y, au as J, X as Q, Y, _ as $, Z as ee, $ as ae, aE as ne, a0 as te, A as se, p as oe, U as le, V as ie, a5 as re, j as de, a3 as ue, a4 as ce, h as me, i as Ce, an as ge, M as Ae, al as Ne, am as Ee, ak as Te, L as pe, ae as Ge, x as _e, y as ve, H as Se, G as be, aj as Re, F as Ie } from "./anduin-resizable-B0NdBVJ8.js";
|
|
4
|
+
import { ab as wa } from "./anduin-resizable-B0NdBVJ8.js";
|
|
5
5
|
const he = a({ react: e, tagName: "anduin-spinner", elementClass: n }), Pe = a({ react: e, tagName: "anduin-sparkle-spinner", elementClass: t }), He = a({ react: e, tagName: "anduin-icon", elementClass: s }), we = a({ react: e, tagName: "anduin-badge", elementClass: o }), Me = a({ react: e, tagName: "anduin-badge-count", elementClass: l }), Fe = a({ react: e, tagName: "anduin-button", elementClass: i }), fe = a({ react: e, tagName: "anduin-callout", elementClass: r }), ke = a({ react: e, tagName: "anduin-divider", elementClass: d }), Ue = a({ react: e, tagName: "anduin-dot", elementClass: u }), ze = a({ react: e, tagName: "anduin-progress", elementClass: c }), xe = a({ react: e, tagName: "anduin-skeleton", elementClass: m }), We = a({ react: e, tagName: "anduin-loading-state", elementClass: C }), Be = a({ react: e, tagName: "anduin-field", elementClass: g }), Ve = a({ react: e, tagName: "anduin-field-label", elementClass: A }), Ke = a({ react: e, tagName: "anduin-field-description", elementClass: N }), Xe = a({ react: e, tagName: "anduin-field-error", elementClass: E }), je = a({ react: e, tagName: "anduin-field-group", elementClass: T }), Ze = a({
|
|
6
6
|
react: e,
|
|
7
7
|
tagName: "anduin-radio",
|