@vscode-elements/elements 2.0.0-pre.3 → 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/custom-elements.json +1038 -855
- package/dist/bundled.js +388 -292
- package/dist/includes/VscElement.d.ts.map +1 -1
- package/dist/includes/VscElement.js +2 -5
- package/dist/includes/VscElement.js.map +1 -1
- package/dist/includes/form-button-widget/base.styles.d.ts.map +1 -1
- package/dist/includes/form-button-widget/base.styles.js +8 -9
- package/dist/includes/form-button-widget/base.styles.js.map +1 -1
- package/dist/includes/test-helpers.d.ts +11 -0
- package/dist/includes/test-helpers.d.ts.map +1 -1
- package/dist/includes/test-helpers.js +36 -0
- package/dist/includes/test-helpers.js.map +1 -1
- package/dist/includes/vscode-select/styles.d.ts.map +1 -1
- package/dist/includes/vscode-select/styles.js +4 -3
- package/dist/includes/vscode-select/styles.js.map +1 -1
- package/dist/vscode-badge/vscode-badge.js +1 -1
- package/dist/vscode-badge/vscode-badge.js.map +1 -1
- package/dist/vscode-badge/vscode-badge.styles.d.ts.map +1 -1
- package/dist/vscode-badge/vscode-badge.styles.js +8 -4
- package/dist/vscode-badge/vscode-badge.styles.js.map +1 -1
- package/dist/vscode-button/vscode-button.d.ts +0 -2
- package/dist/vscode-button/vscode-button.d.ts.map +1 -1
- package/dist/vscode-button/vscode-button.js +10 -24
- package/dist/vscode-button/vscode-button.js.map +1 -1
- package/dist/vscode-button/vscode-button.styles.d.ts.map +1 -1
- package/dist/vscode-button/vscode-button.styles.js +31 -18
- package/dist/vscode-button/vscode-button.styles.js.map +1 -1
- package/dist/vscode-button-group/vscode-button-group.d.ts.map +1 -1
- package/dist/vscode-button-group/vscode-button-group.js +2 -3
- package/dist/vscode-button-group/vscode-button-group.js.map +1 -1
- package/dist/vscode-button-group/vscode-button-group.styles.d.ts.map +1 -1
- package/dist/vscode-button-group/vscode-button-group.styles.js +17 -13
- package/dist/vscode-button-group/vscode-button-group.styles.js.map +1 -1
- package/dist/vscode-checkbox/vscode-checkbox.d.ts.map +1 -1
- package/dist/vscode-checkbox/vscode-checkbox.js +0 -10
- package/dist/vscode-checkbox/vscode-checkbox.js.map +1 -1
- package/dist/vscode-collapsible/vscode-collapsible.d.ts +11 -2
- package/dist/vscode-collapsible/vscode-collapsible.d.ts.map +1 -1
- package/dist/vscode-collapsible/vscode-collapsible.js +16 -4
- package/dist/vscode-collapsible/vscode-collapsible.js.map +1 -1
- package/dist/vscode-context-menu/vscode-context-menu.d.ts +0 -1
- package/dist/vscode-context-menu/vscode-context-menu.d.ts.map +1 -1
- package/dist/vscode-context-menu/vscode-context-menu.js +0 -18
- package/dist/vscode-context-menu/vscode-context-menu.js.map +1 -1
- package/dist/vscode-context-menu/vscode-context-menu.styles.js +4 -4
- package/dist/vscode-context-menu/vscode-context-menu.styles.js.map +1 -1
- package/dist/vscode-context-menu-item/vscode-context-menu-item.styles.js +4 -4
- package/dist/vscode-context-menu-item/vscode-context-menu-item.styles.js.map +1 -1
- package/dist/vscode-divider/vscode-divider.js +1 -1
- package/dist/vscode-divider/vscode-divider.js.map +1 -1
- package/dist/vscode-divider/vscode-divider.styles.d.ts.map +1 -1
- package/dist/vscode-divider/vscode-divider.styles.js +5 -2
- package/dist/vscode-divider/vscode-divider.styles.js.map +1 -1
- package/dist/vscode-form-container/vscode-form-container.d.ts +0 -5
- package/dist/vscode-form-container/vscode-form-container.d.ts.map +1 -1
- package/dist/vscode-form-container/vscode-form-container.js +0 -63
- package/dist/vscode-form-container/vscode-form-container.js.map +1 -1
- package/dist/vscode-label/vscode-label.styles.js +6 -6
- package/dist/vscode-label/vscode-label.styles.js.map +1 -1
- package/dist/vscode-multi-select/vscode-multi-select.d.ts.map +1 -1
- package/dist/vscode-multi-select/vscode-multi-select.js +0 -7
- package/dist/vscode-multi-select/vscode-multi-select.js.map +1 -1
- package/dist/vscode-progress-ring/vscode-progress-ring.styles.d.ts.map +1 -1
- package/dist/vscode-progress-ring/vscode-progress-ring.styles.js +0 -1
- package/dist/vscode-progress-ring/vscode-progress-ring.styles.js.map +1 -1
- package/dist/vscode-radio/vscode-radio.d.ts +0 -1
- package/dist/vscode-radio/vscode-radio.d.ts.map +1 -1
- package/dist/vscode-radio/vscode-radio.js +0 -14
- package/dist/vscode-radio/vscode-radio.js.map +1 -1
- package/dist/vscode-scrollable/vscode-scrollable.d.ts +0 -1
- package/dist/vscode-scrollable/vscode-scrollable.d.ts.map +1 -1
- package/dist/vscode-scrollable/vscode-scrollable.js +7 -9
- package/dist/vscode-scrollable/vscode-scrollable.js.map +1 -1
- package/dist/vscode-single-select/vscode-single-select.d.ts +0 -1
- package/dist/vscode-single-select/vscode-single-select.d.ts.map +1 -1
- package/dist/vscode-single-select/vscode-single-select.js +0 -10
- package/dist/vscode-single-select/vscode-single-select.js.map +1 -1
- package/dist/vscode-tab-header/vscode-tab-header.d.ts +5 -6
- package/dist/vscode-tab-header/vscode-tab-header.d.ts.map +1 -1
- package/dist/vscode-tab-header/vscode-tab-header.js +5 -6
- package/dist/vscode-tab-header/vscode-tab-header.js.map +1 -1
- package/dist/vscode-tab-header/vscode-tab-header.styles.d.ts.map +1 -1
- package/dist/vscode-tab-header/vscode-tab-header.styles.js +19 -12
- package/dist/vscode-tab-header/vscode-tab-header.styles.js.map +1 -1
- package/dist/vscode-tab-panel/vscode-tab-panel.d.ts +2 -2
- package/dist/vscode-tab-panel/vscode-tab-panel.js +2 -2
- package/dist/vscode-tab-panel/vscode-tab-panel.js.map +1 -1
- package/dist/vscode-tab-panel/vscode-tab-panel.styles.js +2 -2
- package/dist/vscode-tab-panel/vscode-tab-panel.styles.js.map +1 -1
- package/dist/vscode-table/vscode-table.d.ts +3 -7
- package/dist/vscode-table/vscode-table.d.ts.map +1 -1
- package/dist/vscode-table/vscode-table.js +3 -7
- package/dist/vscode-table/vscode-table.js.map +1 -1
- package/dist/vscode-table/vscode-table.styles.d.ts.map +1 -1
- package/dist/vscode-table/vscode-table.styles.js +17 -5
- package/dist/vscode-table/vscode-table.styles.js.map +1 -1
- package/dist/vscode-table-body/vscode-table-body.d.ts +0 -2
- package/dist/vscode-table-body/vscode-table-body.d.ts.map +1 -1
- package/dist/vscode-table-body/vscode-table-body.js +0 -2
- package/dist/vscode-table-body/vscode-table-body.js.map +1 -1
- package/dist/vscode-table-cell/vscode-table-cell.d.ts +4 -4
- package/dist/vscode-table-cell/vscode-table-cell.js +4 -4
- package/dist/vscode-table-cell/vscode-table-cell.js.map +1 -1
- package/dist/vscode-table-cell/vscode-table-cell.styles.d.ts.map +1 -1
- package/dist/vscode-table-cell/vscode-table-cell.styles.js +7 -4
- package/dist/vscode-table-cell/vscode-table-cell.styles.js.map +1 -1
- package/dist/vscode-table-header/vscode-table-header.d.ts +1 -1
- package/dist/vscode-table-header/vscode-table-header.js +1 -1
- package/dist/vscode-table-header/vscode-table-header.js.map +1 -1
- package/dist/vscode-table-header/vscode-table-header.styles.d.ts.map +1 -1
- package/dist/vscode-table-header/vscode-table-header.styles.js +4 -1
- package/dist/vscode-table-header/vscode-table-header.styles.js.map +1 -1
- package/dist/vscode-table-header-cell/vscode-table-header-cell.d.ts +3 -3
- package/dist/vscode-table-header-cell/vscode-table-header-cell.js +3 -3
- package/dist/vscode-table-header-cell/vscode-table-header-cell.js.map +1 -1
- package/dist/vscode-table-header-cell/vscode-table-header-cell.styles.js +3 -3
- package/dist/vscode-table-header-cell/vscode-table-header-cell.styles.js.map +1 -1
- package/dist/vscode-table-row/vscode-table-row.d.ts +1 -1
- package/dist/vscode-table-row/vscode-table-row.js +1 -1
- package/dist/vscode-table-row/vscode-table-row.js.map +1 -1
- package/dist/vscode-table-row/vscode-table-row.styles.d.ts.map +1 -1
- package/dist/vscode-table-row/vscode-table-row.styles.js +4 -1
- package/dist/vscode-table-row/vscode-table-row.styles.js.map +1 -1
- package/dist/vscode-tabs/vscode-tabs.d.ts +5 -7
- package/dist/vscode-tabs/vscode-tabs.d.ts.map +1 -1
- package/dist/vscode-tabs/vscode-tabs.js +12 -18
- package/dist/vscode-tabs/vscode-tabs.js.map +1 -1
- package/dist/vscode-tabs/vscode-tabs.styles.d.ts.map +1 -1
- package/dist/vscode-tabs/vscode-tabs.styles.js +10 -5
- package/dist/vscode-tabs/vscode-tabs.styles.js.map +1 -1
- package/dist/vscode-textarea/vscode-textarea.d.ts.map +1 -1
- package/dist/vscode-textarea/vscode-textarea.js +2 -10
- package/dist/vscode-textarea/vscode-textarea.js.map +1 -1
- package/dist/vscode-textarea/vscode-textarea.styles.js +1 -1
- package/dist/vscode-textarea/vscode-textarea.styles.js.map +1 -1
- package/dist/vscode-textfield/vscode-textfield.d.ts.map +1 -1
- package/dist/vscode-textfield/vscode-textfield.js +31 -35
- package/dist/vscode-textfield/vscode-textfield.js.map +1 -1
- package/dist/vscode-textfield/vscode-textfield.styles.d.ts.map +1 -1
- package/dist/vscode-textfield/vscode-textfield.styles.js +8 -3
- package/dist/vscode-textfield/vscode-textfield.styles.js.map +1 -1
- package/dist/vscode-toolbar-container/vscode-toolbar-container.js +1 -1
- package/dist/vscode-toolbar-container/vscode-toolbar-container.js.map +1 -1
- package/dist/vscode-toolbar-container/vscode-toolbar-container.styles.d.ts.map +1 -1
- package/dist/vscode-toolbar-container/vscode-toolbar-container.styles.js +4 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.styles.js.map +1 -1
- package/dist/vscode-tree/vscode-tree.d.ts +18 -17
- package/dist/vscode-tree/vscode-tree.d.ts.map +1 -1
- package/dist/vscode-tree/vscode-tree.js +32 -36
- package/dist/vscode-tree/vscode-tree.js.map +1 -1
- package/dist/vscode-tree/vscode-tree.styles.d.ts.map +1 -1
- package/dist/vscode-tree/vscode-tree.styles.js +13 -6
- package/dist/vscode-tree/vscode-tree.styles.js.map +1 -1
- package/dist/vscode-tree-item/vscode-tree-item.d.ts.map +1 -1
- package/dist/vscode-tree-item/vscode-tree-item.js +2 -2
- package/dist/vscode-tree-item/vscode-tree-item.js.map +1 -1
- package/dist/vscode-tree-item/vscode-tree-item.styles.d.ts.map +1 -1
- package/dist/vscode-tree-item/vscode-tree-item.styles.js +25 -10
- package/dist/vscode-tree-item/vscode-tree-item.styles.js.map +1 -1
- package/package.json +1 -1
- package/vscode.css-custom-data.json +35 -31
- package/vscode.html-custom-data.json +57 -68
package/dist/bundled.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),s=new WeakMap;let o=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const i=this.t;if(e&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=s.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&s.set(i,t))}return t}toString(){return this.cssText}};const r=t=>new o("string"==typeof t?t:t+"",void 0,i),n=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new o(s,t,i)},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return r(e)})(t):t,{is:h,defineProperty:a,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:u,getPrototypeOf:v}=Object,p=globalThis,b=p.trustedTypes,f=b?b.emptyScript:"",g=p.reactiveElementPolyfillSupport,m=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},y=(t,e)=>!h(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&a(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const r=s?.call(this);o?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=v(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,e=[...d(t),...u(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((i,s)=>{if(e)i.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of s){const s=document.createElement("style"),o=t.litNonce;void 0!==o&&s.setAttribute("nonce",o),s.textContent=e.cssText,i.appendChild(s)}})(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:x).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=i.getPropertyOptions(s),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=s,this[s]=o.fromAttribute(e,t.type)??this._$Ej?.get(s)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const s=this.constructor,o=this[t];if(i??=s.getPropertyOptions(t),!((i.hasChanged??y)(o,e)||i.useDefault&&i.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[m("elementProperties")]=new Map,k[m("finalized")]=new Map,g?.({ReactiveElement:k}),(p.reactiveElementVersions??=[]).push("2.1.0");const $=globalThis,_=$.trustedTypes,S=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,C="$lit$",B=`lit$${Math.random().toFixed(9).slice(2)}$`,O="?"+B,z=`<${O}>`,A=document,E=()=>A.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,M="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,F=/>/g,V=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,R=/"/g,T=/^(?:script|style|textarea|title)$/i,L=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),U=L(1),G=L(2),H=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,K=A.createTreeWalker(A,129);function J(t,e){if(!j(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}const Y=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=P;for(let e=0;e<i;e++){const i=t[e];let l,h,a=-1,c=0;for(;c<i.length&&(n.lastIndex=c,h=n.exec(i),null!==h);)c=n.lastIndex,n===P?"!--"===h[1]?n=D:void 0!==h[1]?n=F:void 0!==h[2]?(T.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=V):void 0!==h[3]&&(n=V):n===V?">"===h[0]?(n=o??P,a=-1):void 0===h[1]?a=-2:(a=n.lastIndex-h[2].length,l=h[1],n=void 0===h[3]?V:'"'===h[3]?R:N):n===R||n===N?n=V:n===D||n===F?n=P:(n=V,o=void 0);const d=n===V&&t[e+1].startsWith("/>")?" ":"";r+=n===P?i+z:a>=0?(s.push(l),i.slice(0,a)+C+i.slice(a)+B+d):i+B+(-2===a?e:d)}return[J(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class X{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[h,a]=Y(t,e);if(this.el=X.createElement(h,i),K.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=K.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(C)){const e=a[r++],i=s.getAttribute(t).split(B),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?et:"?"===n[1]?it:"@"===n[1]?st:tt}),s.removeAttribute(t)}else t.startsWith(B)&&(l.push({type:6,index:o}),s.removeAttribute(t));if(T.test(s.tagName)){const t=s.textContent.split(B),e=t.length-1;if(e>0){s.textContent=_?_.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],E()),K.nextNode(),l.push({type:2,index:++o});s.append(t[e],E())}}}else if(8===s.nodeType)if(s.data===O)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(B,t+1));)l.push({type:7,index:o}),t+=B.length-1}o++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,s){if(e===H)return e;let o=void 0!==s?i._$Co?.[s]:i._$Cl;const r=I(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=o:i._$Cl=o),void 0!==o&&(e=Z(t,o._$AS(t,e.values),o,s)),e}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),I(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==H&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>j(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==q&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=X.createElement(J(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??A).importNode(e,!0);K.currentNode=s;let o=K.nextNode(),r=0,n=0,l=i[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Q(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new ot(o,this,t)),this._$AV.push(e),l=i[++n]}r!==l?.index&&(o=K.nextNode(),r++)}return K.currentNode=A,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new X(t)),e}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new Q(this.O(E()),this.O(E()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=Z(this,t,e,0),r=!I(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const s=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Z(this,s[i+n],e,n),l===H&&(l=this._$AH[n]),r||=!I(l)||l!==this._$AH[n],l===q?t=q:t!==q&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!s&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}class it extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==q)}}class st extends tt{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??q)===H)return;const i=this._$AH,s=t===q&&i!==q||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==q&&(i===q||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const rt={I:Q},nt=$.litHtmlPolyfillSupport;nt?.(X,Q),($.litHtmlVersions??=[]).push("3.3.0");const lt=(t,e,i)=>{const s=i?.renderBefore??e;let o=s._$litPart$;if(void 0===o){const t=i?.renderBefore??null;s._$litPart$=o=new Q(e.insertBefore(E(),t),t,void 0,i??{})}return o._$AI(t),o},ht=globalThis;let at=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return H}};at._$litElement$=!0,at.finalized=!0,ht.litElementHydrateSupport?.({LitElement:at});const ct=ht.litElementPolyfillSupport;ct?.({LitElement:at}),(ht.litElementVersions??=[]).push("4.2.0");const dt=t=>(e,i)=>{void 0!==i?i.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},ut={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},vt=(t=ut,e,i)=>{const{kind:s,metadata:o}=i;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),"accessor"===s){const{name:s}=i;return{set(i){const o=e.get.call(this);e.set.call(this,i),this.requestUpdate(s,o,t)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=i;return function(i){const o=this[s];e.call(this,i),this.requestUpdate(s,o,t)}}throw Error("Unsupported decorator location: "+s)};function pt(t){return(e,i)=>"object"==typeof i?vt(t,e,i):((t,e,i)=>{const s=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),s?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}function bt(t){return pt({...t,state:!0,attribute:!1})}const ft=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,i);function gt(t,e){return(i,s,o)=>{const r=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof s?i:o??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return ft(0,0,{get(){let i=t.call(this);return void 0===i&&(i=r(this),(null!==i||this.hasUpdated)&&e.call(this,i)),i}})}return ft(0,0,{get(){return r(this)}})}}let mt;function xt(t){return(e,i)=>{const{slot:s,selector:o}=t??{},r="slot"+(s?`[name=${s}]`:":not([name])");return ft(0,0,{get(){const e=this.renderRoot?.querySelector(r),i=e?.assignedElements(t)??[];return void 0===o?i:i.filter((t=>t.matches(o)))}})}}const yt="2.0.0-pre.3",wt="__vscodeElements_disableRegistryWarning__";class kt extends at{get version(){return yt}}const $t=t=>e=>{if(!customElements.get(t))return void customElements.define(t,e);if(wt in window)return;const i=document.createElement(t),s=i?.version;let o="";s?s!==yt?(o+="is already registered by a different version of VSCode Elements. ",o+=`This version is "${yt}", while the other one is "${s}".`):o+="is already registered by the same version of VSCode Elements. ":(console.warn(t,"is already registered by an unknown custom element handler class."),o+="is already registered by an unknown custom element handler class."),console.warn(`[VSCode Elements] ${t} ${o}\nTo suppress this warning, set window.${wt} to true`)};var _t=n`
|
|
1
|
+
const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),s=new WeakMap;let o=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const i=this.t;if(e&&void 0===t){const e=void 0!==i&&1===i.length;e&&(t=s.get(i)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&s.set(i,t))}return t}toString(){return this.cssText}};const r=t=>new o("string"==typeof t?t:t+"",void 0,i),n=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new o(s,t,i)},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return r(e)})(t):t,{is:h,defineProperty:a,getOwnPropertyDescriptor:c,getOwnPropertyNames:d,getOwnPropertySymbols:u,getPrototypeOf:p}=Object,v=globalThis,b=v.trustedTypes,f=b?b.emptyScript:"",g=v.reactiveElementPolyfillSupport,m=(t,e)=>t,x={toAttribute(t,e){switch(e){case Boolean:t=t?f:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},y=(t,e)=>!h(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,useDefault:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),v.litPropertyMetadata??=new WeakMap;let k=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=w){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);void 0!==s&&a(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){const{get:s,set:o}=c(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get:s,set(e){const r=s?.call(this);o?.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??w}static _$Ei(){if(this.hasOwnProperty(m("elementProperties")))return;const t=p(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(m("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(m("properties"))){const t=this.properties,e=[...d(t),...u(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const i=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((i,s)=>{if(e)i.adoptedStyleSheets=s.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of s){const s=document.createElement("style"),o=t.litNonce;void 0!==o&&s.setAttribute("nonce",o),s.textContent=e.cssText,i.appendChild(s)}})(i,this.constructor.elementStyles),i}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(void 0!==s&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:x).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(s):this.setAttribute(s,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,s=i._$Eh.get(t);if(void 0!==s&&this._$Em!==s){const t=i.getPropertyOptions(s),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=s,this[s]=o.fromAttribute(e,t.type)??this._$Ej?.get(s)??null,this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){const s=this.constructor,o=this[t];if(i??=s.getPropertyOptions(t),!((i.hasChanged??y)(o,e)||i.useDefault&&i.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(s._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:o},r){i&&!(this._$Ej??=new Map).has(t)&&(this._$Ej.set(t,r??e??this[t]),!0!==o||void 0!==r)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===s&&this._$Em!==t&&(this._$Eq??=new Set).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t){const{wrapped:t}=i,s=this[e];!0!==t||this._$AL.has(e)||void 0===s||this.C(e,void 0,i,s)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EM()}catch(e){throw t=!1,this._$EM(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&=this._$Eq.forEach((t=>this._$ET(t,this[t]))),this._$EM()}updated(t){}firstUpdated(t){}};k.elementStyles=[],k.shadowRootOptions={mode:"open"},k[m("elementProperties")]=new Map,k[m("finalized")]=new Map,g?.({ReactiveElement:k}),(v.reactiveElementVersions??=[]).push("2.1.0");const $=globalThis,_=$.trustedTypes,S=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",C=`lit$${Math.random().toFixed(9).slice(2)}$`,O="?"+C,z=`<${O}>`,A=document,E=()=>A.createComment(""),I=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,M="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,F=/>/g,V=RegExp(`>|${M}(?:([^\\s"'>=/]+)(${M}*=${M}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),N=/'/g,R=/"/g,T=/^(?:script|style|textarea|title)$/i,L=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),U=L(1),G=L(2),H=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),W=new WeakMap,K=A.createTreeWalker(A,129);function J(t,e){if(!j(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}const Y=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=P;for(let e=0;e<i;e++){const i=t[e];let l,h,a=-1,c=0;for(;c<i.length&&(n.lastIndex=c,h=n.exec(i),null!==h);)c=n.lastIndex,n===P?"!--"===h[1]?n=D:void 0!==h[1]?n=F:void 0!==h[2]?(T.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=V):void 0!==h[3]&&(n=V):n===V?">"===h[0]?(n=o??P,a=-1):void 0===h[1]?a=-2:(a=n.lastIndex-h[2].length,l=h[1],n=void 0===h[3]?V:'"'===h[3]?R:N):n===R||n===N?n=V:n===D||n===F?n=P:(n=V,o=void 0);const d=n===V&&t[e+1].startsWith("/>")?" ":"";r+=n===P?i+z:a>=0?(s.push(l),i.slice(0,a)+B+i.slice(a)+C+d):i+C+(-2===a?e:d)}return[J(t,r+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),s]};class X{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[h,a]=Y(t,e);if(this.el=X.createElement(h,i),K.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(s=K.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes())for(const t of s.getAttributeNames())if(t.endsWith(B)){const e=a[r++],i=s.getAttribute(t).split(C),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?et:"?"===n[1]?it:"@"===n[1]?st:tt}),s.removeAttribute(t)}else t.startsWith(C)&&(l.push({type:6,index:o}),s.removeAttribute(t));if(T.test(s.tagName)){const t=s.textContent.split(C),e=t.length-1;if(e>0){s.textContent=_?_.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],E()),K.nextNode(),l.push({type:2,index:++o});s.append(t[e],E())}}}else if(8===s.nodeType)if(s.data===O)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(C,t+1));)l.push({type:7,index:o}),t+=C.length-1}o++}}static createElement(t,e){const i=A.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,s){if(e===H)return e;let o=void 0!==s?i._$Co?.[s]:i._$Cl;const r=I(e)?void 0:e._$litDirective$;return o?.constructor!==r&&(o?._$AO?.(!1),void 0===r?o=void 0:(o=new r(t),o._$AT(t,i,s)),void 0!==s?(i._$Co??=[])[s]=o:i._$Cl=o),void 0!==o&&(e=Z(t,o._$AS(t,e.values),o,s)),e}class Q{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,s){this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),I(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==H&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>j(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==q&&I(this._$AH)?this._$AA.nextSibling.data=t:this.T(A.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,s="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=X.createElement(J(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(e);else{const t=new class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,s=(t?.creationScope??A).importNode(e,!0);K.currentNode=s;let o=K.nextNode(),r=0,n=0,l=i[0];for(;void 0!==l;){if(r===l.index){let e;2===l.type?e=new Q(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new ot(o,this,t)),this._$AV.push(e),l=i[++n]}r!==l?.index&&(o=K.nextNode(),r++)}return K.currentNode=A,s}p(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}(s,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=W.get(t.strings);return void 0===e&&W.set(t.strings,e=new X(t)),e}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new Q(this.O(E()),this.O(E()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,o){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=q}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(void 0===o)t=Z(this,t,e,0),r=!I(t)||t!==this._$AH&&t!==H,r&&(this._$AH=t);else{const s=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=Z(this,s[i+n],e,n),l===H&&(l=this._$AH[n]),r||=!I(l)||l!==this._$AH[n],l===q?t=q:t!==q&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!s&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}class it extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==q)}}class st extends tt{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){if((t=Z(this,t,e,0)??q)===H)return;const i=this._$AH,s=t===q&&i!==q||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==q&&(i===q||s);s&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ot{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Z(this,t)}}const rt={I:Q},nt=$.litHtmlPolyfillSupport;nt?.(X,Q),($.litHtmlVersions??=[]).push("3.3.0");const lt=(t,e,i)=>{const s=i?.renderBefore??e;let o=s._$litPart$;if(void 0===o){const t=i?.renderBefore??null;s._$litPart$=o=new Q(e.insertBefore(E(),t),t,void 0,i??{})}return o._$AI(t),o},ht=globalThis;let at=class extends k{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=lt(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return H}};at._$litElement$=!0,at.finalized=!0,ht.litElementHydrateSupport?.({LitElement:at});const ct=ht.litElementPolyfillSupport;ct?.({LitElement:at}),(ht.litElementVersions??=[]).push("4.2.0");const dt={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},ut=(t=dt,e,i)=>{const{kind:s,metadata:o}=i;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),"setter"===s&&((t=Object.create(t)).wrapped=!0),r.set(i.name,t),"accessor"===s){const{name:s}=i;return{set(i){const o=e.get.call(this);e.set.call(this,i),this.requestUpdate(s,o,t)},init(e){return void 0!==e&&this.C(s,void 0,t,e),e}}}if("setter"===s){const{name:s}=i;return function(i){const o=this[s];e.call(this,i),this.requestUpdate(s,o,t)}}throw Error("Unsupported decorator location: "+s)};function pt(t){return(e,i)=>"object"==typeof i?ut(t,e,i):((t,e,i)=>{const s=e.hasOwnProperty(i);return e.constructor.createProperty(i,t),s?Object.getOwnPropertyDescriptor(e,i):void 0})(t,e,i)}function vt(t){return pt({...t,state:!0,attribute:!1})}const bt=(t,e,i)=>(i.configurable=!0,i.enumerable=!0,i);function ft(t,e){return(i,s,o)=>{const r=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof s?i:o??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return bt(0,0,{get(){let i=t.call(this);return void 0===i&&(i=r(this),(null!==i||this.hasUpdated)&&e.call(this,i)),i}})}return bt(0,0,{get(){return r(this)}})}}let gt;function mt(t){return(e,i)=>{const{slot:s,selector:o}=t??{},r="slot"+(s?`[name=${s}]`:":not([name])");return bt(0,0,{get(){const e=this.renderRoot?.querySelector(r),i=e?.assignedElements(t)??[];return void 0===o?i:i.filter((t=>t.matches(o)))}})}}const xt="2.0.0",yt="__vscodeElements_disableRegistryWarning__";class wt extends at{get version(){return xt}}const kt=t=>e=>{if(!customElements.get(t))return void customElements.define(t,e);if(yt in window)return;const i=document.createElement(t),s=i?.version;let o="";s?s!==xt?(o+="is already registered by a different version of VSCode Elements. ",o+=`This version is "${xt}", while the other one is "${s}".`):o+=`is already registered by the same version of VSCode Elements (${xt}).`:o+="is already registered by an unknown custom element handler class.",console.warn(`[VSCode Elements] ${t} ${o}\nTo suppress this warning, set window.${yt} to true`)};var $t=n`
|
|
2
2
|
:host([hidden]) {
|
|
3
3
|
display: none;
|
|
4
4
|
}
|
|
@@ -9,15 +9,19 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
9
9
|
opacity: 0.4;
|
|
10
10
|
pointer-events: none;
|
|
11
11
|
}
|
|
12
|
-
`;function
|
|
12
|
+
`;function _t(){return navigator.userAgent.indexOf("Linux")>-1?'system-ui, "Ubuntu", "Droid Sans", sans-serif':navigator.userAgent.indexOf("Mac")>-1?"-apple-system, BlinkMacSystemFont, sans-serif":navigator.userAgent.indexOf("Windows")>-1?'"Segoe WPC", "Segoe UI", sans-serif':"sans-serif"}const St=[$t,n`
|
|
13
13
|
:host {
|
|
14
|
+
display: inline-block;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.root {
|
|
14
18
|
background-color: var(--vscode-badge-background, #616161);
|
|
15
19
|
border: 1px solid var(--vscode-contrastBorder, transparent);
|
|
16
20
|
border-radius: 2px;
|
|
17
21
|
box-sizing: border-box;
|
|
18
22
|
color: var(--vscode-badge-foreground, #f8f8f8);
|
|
19
|
-
display:
|
|
20
|
-
font-family: var(--vscode-font-family, ${r(
|
|
23
|
+
display: block;
|
|
24
|
+
font-family: var(--vscode-font-family, ${r(_t())});
|
|
21
25
|
font-size: 11px;
|
|
22
26
|
font-weight: 400;
|
|
23
27
|
line-height: 14px;
|
|
@@ -27,7 +31,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
27
31
|
white-space: nowrap;
|
|
28
32
|
}
|
|
29
33
|
|
|
30
|
-
:host([variant='counter']) {
|
|
34
|
+
:host([variant='counter']) .root {
|
|
31
35
|
border-radius: 11px;
|
|
32
36
|
line-height: 11px;
|
|
33
37
|
min-height: 18px;
|
|
@@ -35,7 +39,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
35
39
|
padding: 3px 6px;
|
|
36
40
|
}
|
|
37
41
|
|
|
38
|
-
:host([variant='activity-bar-counter']) {
|
|
42
|
+
:host([variant='activity-bar-counter']) .root {
|
|
39
43
|
background-color: var(--vscode-activityBarBadge-background, #0078d4);
|
|
40
44
|
border-radius: 20px;
|
|
41
45
|
color: var(--vscode-activityBarBadge-foreground, #ffffff);
|
|
@@ -45,7 +49,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
45
49
|
padding: 0 4px;
|
|
46
50
|
}
|
|
47
51
|
|
|
48
|
-
:host([variant='tab-header-counter']) {
|
|
52
|
+
:host([variant='tab-header-counter']) .root {
|
|
49
53
|
background-color: var(--vscode-activityBarBadge-background, #0078d4);
|
|
50
54
|
border-radius: 10px;
|
|
51
55
|
color: var(--vscode-activityBarBadge-foreground, #ffffff);
|
|
@@ -54,7 +58,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
54
58
|
min-width: 16px;
|
|
55
59
|
padding: 3px 5px;
|
|
56
60
|
}
|
|
57
|
-
`];var Bt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let
|
|
61
|
+
`];var Bt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Ct=class extends wt{constructor(){super(...arguments),this.variant="default"}render(){return U`<div class="root"><slot></slot></div>`}};Ct.styles=St,Bt([pt({reflect:!0})],Ct.prototype,"variant",void 0),Ct=Bt([kt("vscode-badge")],Ct);const Ot=1,zt=2,At=3,Et=t=>(...e)=>({_$litDirective$:t,values:e});let It=class{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}};const jt=Et(class extends It{constructor(t){if(super(t),t.type!==Ot||"class"!==t.name||t.strings?.length>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){if(void 0===this.st){this.st=new Set,void 0!==t.strings&&(this.nt=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!this.nt?.has(t)&&this.st.add(t);return this.render(e)}const i=t.element.classList;for(const t of this.st)t in e||(i.remove(t),this.st.delete(t));for(const t in e){const s=!!e[t];s===this.st.has(t)||this.nt?.has(t)||(s?(i.add(t),this.st.add(t)):(i.remove(t),this.st.delete(t)))}return H}}),Mt=t=>t??q;const Pt=Et(class extends It{constructor(t){if(super(t),this._prevProperties={},t.type!==At||"style"!==t.name)throw new Error("The `stylePropertyMap` directive must be used in the `style` property")}update(t,[e]){return Object.entries(e).forEach((([e,i])=>{this._prevProperties[e]!==i&&(e.startsWith("--")?t.element.style.setProperty(e,i):t.element.style[e]=i,this._prevProperties[e]=i)})),H}render(t){return H}}),Dt=[$t,n`
|
|
58
62
|
:host {
|
|
59
63
|
color: var(--vscode-icon-foreground, #cccccc);
|
|
60
64
|
display: inline-block;
|
|
@@ -114,9 +118,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
114
118
|
animation-timing-function: linear;
|
|
115
119
|
animation-iteration-count: infinite;
|
|
116
120
|
}
|
|
117
|
-
`];var Vt
|
|
118
|
-
class=${
|
|
119
|
-
.style=${
|
|
121
|
+
`];var Ft,Vt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Nt=Ft=class extends wt{constructor(){super(...arguments),this.label="",this.name="",this.size=16,this.spin=!1,this.spinDuration=1.5,this.actionIcon=!1,this._onButtonClick=t=>{this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}}))}}connectedCallback(){super.connectedCallback();const{href:t,nonce:e}=this._getStylesheetConfig();Ft.stylesheetHref=t,Ft.nonce=e}_getStylesheetConfig(){const t=document.getElementById("vscode-codicon-stylesheet"),e=t?.getAttribute("href")||void 0,i=t?.nonce||void 0;if(!t){let t="[VSCode Elements] To use the Icon component, the codicons.css file must be included in the page with the id `vscode-codicon-stylesheet`! ";t+="See https://vscode-elements.github.io/components/icon/ for more details.",console.warn(t)}return{nonce:i,href:e}}render(){const{stylesheetHref:t,nonce:e}=Ft,i=U`<span
|
|
122
|
+
class=${jt({codicon:!0,["codicon-"+this.name]:!0,spin:this.spin})}
|
|
123
|
+
.style=${Pt({animationDuration:String(this.spinDuration)+"s",fontSize:this.size+"px",height:this.size+"px",width:this.size+"px"})}
|
|
120
124
|
></span>`,s=this.actionIcon?U` <button
|
|
121
125
|
class="button"
|
|
122
126
|
@click=${this._onButtonClick}
|
|
@@ -128,21 +132,33 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
128
132
|
>`;return U`
|
|
129
133
|
<link
|
|
130
134
|
rel="stylesheet"
|
|
131
|
-
href=${
|
|
132
|
-
nonce=${
|
|
135
|
+
href=${Mt(t)}
|
|
136
|
+
nonce=${Mt(e)}
|
|
133
137
|
>
|
|
134
138
|
${s}
|
|
135
|
-
`}};
|
|
139
|
+
`}};Nt.styles=Dt,Nt.stylesheetHref="",Nt.nonce="",Vt([pt()],Nt.prototype,"label",void 0),Vt([pt({type:String})],Nt.prototype,"name",void 0),Vt([pt({type:Number})],Nt.prototype,"size",void 0),Vt([pt({type:Boolean,reflect:!0})],Nt.prototype,"spin",void 0),Vt([pt({type:Number,attribute:"spin-duration"})],Nt.prototype,"spinDuration",void 0),Vt([pt({type:Boolean,reflect:!0,attribute:"action-icon"})],Nt.prototype,"actionIcon",void 0),Nt=Ft=Vt([kt("vscode-icon")],Nt);const Rt=[$t,n`
|
|
136
140
|
:host {
|
|
141
|
+
cursor: pointer;
|
|
142
|
+
display: inline-block;
|
|
143
|
+
width: auto;
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.root {
|
|
137
147
|
background-color: var(--vscode-button-background, #0078d4);
|
|
148
|
+
border-bottom-left-radius: var(--vsc-border-left-radius, 2px);
|
|
149
|
+
border-bottom-right-radius: var(--vsc-border-right-radius, 2px);
|
|
150
|
+
border-bottom-width: 1px;
|
|
138
151
|
border-color: var(--vscode-button-border, transparent);
|
|
152
|
+
border-left-width: var(--vsc-border-left-width, 1px);
|
|
153
|
+
border-right-width: var(--vsc-border-right-width, 1px);
|
|
139
154
|
border-style: solid;
|
|
140
|
-
border-radius: 2px;
|
|
141
|
-
border-
|
|
155
|
+
border-top-left-radius: var(--vsc-border-left-radius, 2px);
|
|
156
|
+
border-top-right-radius: var(--vsc-border-right-radius, 2px);
|
|
157
|
+
border-top-width: 1px;
|
|
158
|
+
box-sizing: border-box;
|
|
142
159
|
color: var(--vscode-button-foreground, #ffffff);
|
|
143
|
-
cursor: pointer;
|
|
144
160
|
display: inline-flex;
|
|
145
|
-
font-family: var(--vscode-font-family, ${r(
|
|
161
|
+
font-family: var(--vscode-font-family, ${r(_t())});
|
|
146
162
|
font-size: var(--vscode-font-size, 13px);
|
|
147
163
|
font-weight: var(--vscode-font-weight, normal);
|
|
148
164
|
line-height: 22px;
|
|
@@ -150,9 +166,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
150
166
|
padding: 0;
|
|
151
167
|
user-select: none;
|
|
152
168
|
white-space: nowrap;
|
|
169
|
+
width: 100%;
|
|
153
170
|
}
|
|
154
171
|
|
|
155
|
-
:host([secondary]) {
|
|
172
|
+
:host([secondary]) .root {
|
|
156
173
|
color: var(--vscode-button-secondaryForeground, #cccccc);
|
|
157
174
|
background-color: var(--vscode-button-secondaryBackground, #313131);
|
|
158
175
|
border-color: var(
|
|
@@ -167,19 +184,19 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
167
184
|
pointer-events: none;
|
|
168
185
|
}
|
|
169
186
|
|
|
170
|
-
:host(:hover) {
|
|
187
|
+
:host(:hover) .root {
|
|
171
188
|
background-color: var(--vscode-button-hoverBackground, #026ec1);
|
|
172
189
|
}
|
|
173
190
|
|
|
174
|
-
:host([disabled]:hover) {
|
|
191
|
+
:host([disabled]:hover) .root {
|
|
175
192
|
background-color: var(--vscode-button-background, #0078d4);
|
|
176
193
|
}
|
|
177
194
|
|
|
178
|
-
:host([secondary]:hover) {
|
|
195
|
+
:host([secondary]:hover) .root {
|
|
179
196
|
background-color: var(--vscode-button-secondaryHoverBackground, #3c3c3c);
|
|
180
197
|
}
|
|
181
198
|
|
|
182
|
-
:host([secondary][disabled]:hover) {
|
|
199
|
+
:host([secondary][disabled]:hover) .root {
|
|
183
200
|
background-color: var(--vscode-button-secondaryBackground, #313131);
|
|
184
201
|
}
|
|
185
202
|
|
|
@@ -188,22 +205,22 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
188
205
|
outline: none;
|
|
189
206
|
}
|
|
190
207
|
|
|
191
|
-
:host(:focus) {
|
|
208
|
+
:host(:focus) .root {
|
|
192
209
|
background-color: var(--vscode-button-hoverBackground, #026ec1);
|
|
193
210
|
outline: 1px solid var(--vscode-focusBorder, #0078d4);
|
|
194
211
|
outline-offset: 2px;
|
|
195
212
|
}
|
|
196
213
|
|
|
197
|
-
:host([disabled]:focus) {
|
|
214
|
+
:host([disabled]:focus) .root {
|
|
198
215
|
background-color: var(--vscode-button-background, #0078d4);
|
|
199
216
|
outline: 0;
|
|
200
217
|
}
|
|
201
218
|
|
|
202
|
-
:host([secondary]:focus) {
|
|
219
|
+
:host([secondary]:focus) .root {
|
|
203
220
|
background-color: var(--vscode-button-secondaryHoverBackground, #3c3c3c);
|
|
204
221
|
}
|
|
205
222
|
|
|
206
|
-
:host([secondary][disabled]:focus) {
|
|
223
|
+
:host([secondary][disabled]:focus) .root {
|
|
207
224
|
background-color: var(--vscode-button-secondaryBackground, #313131);
|
|
208
225
|
}
|
|
209
226
|
|
|
@@ -225,22 +242,22 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
225
242
|
color: inherit;
|
|
226
243
|
}
|
|
227
244
|
|
|
228
|
-
.
|
|
245
|
+
.content {
|
|
229
246
|
align-items: center;
|
|
230
247
|
box-sizing: border-box;
|
|
231
248
|
display: flex;
|
|
232
249
|
justify-content: center;
|
|
233
250
|
position: relative;
|
|
234
|
-
width:
|
|
251
|
+
width: 100%;
|
|
235
252
|
height: 100%;
|
|
236
253
|
padding: 1px 13px;
|
|
237
254
|
}
|
|
238
255
|
|
|
239
|
-
:host(:empty) .
|
|
240
|
-
:host([icon-only]) .
|
|
256
|
+
:host(:empty) .content,
|
|
257
|
+
:host([icon-only]) .content {
|
|
241
258
|
min-height: 24px;
|
|
242
259
|
min-width: 16px;
|
|
243
|
-
padding: 1px
|
|
260
|
+
padding: 1px 4px;
|
|
244
261
|
}
|
|
245
262
|
|
|
246
263
|
slot {
|
|
@@ -265,7 +282,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
265
282
|
}
|
|
266
283
|
|
|
267
284
|
.divider {
|
|
268
|
-
display: var(--divider-display, none);
|
|
285
|
+
display: var(--vsc-divider-display, none);
|
|
269
286
|
background-color: transparent;
|
|
270
287
|
padding: 4px 0;
|
|
271
288
|
box-sizing: border-box;
|
|
@@ -299,58 +316,59 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
299
316
|
background-color: var(--vscode-button-secondaryForeground, #cccccc);
|
|
300
317
|
opacity: 0.4;
|
|
301
318
|
}
|
|
302
|
-
`];var
|
|
319
|
+
`];var Tt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Lt=class extends wt{get form(){return this._internals.form}constructor(){super(),this.autofocus=!1,this.tabIndex=0,this.secondary=!1,this.role="button",this.disabled=!1,this.icon="",this.iconSpin=!1,this.iconAfter="",this.iconAfterSpin=!1,this.focused=!1,this.name=void 0,this.iconOnly=!1,this.type="button",this.value="",this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1},this.addEventListener("keydown",this._handleKeyDown.bind(this)),this.addEventListener("click",this._handleClick.bind(this)),this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.autofocus&&(this.tabIndex<0&&(this.tabIndex=0),this.updateComplete.then((()=>{this.focus(),this.requestUpdate()}))),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}update(t){super.update(t),t.has("value")&&this._internals.setFormValue(this.value),t.has("disabled")&&(this.disabled?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):this.tabIndex=this._prevTabindex)}_executeAction(){"submit"===this.type&&this._internals.form&&this._internals.form.requestSubmit(),"reset"===this.type&&this._internals.form&&this._internals.form.reset()}_handleKeyDown(t){if(("Enter"===t.key||" "===t.key)&&!this.hasAttribute("disabled")){const t=new MouseEvent("click",{bubbles:!0,cancelable:!0});t.synthetic=!0,this.dispatchEvent(t),this._executeAction()}}_handleClick(t){t.synthetic||this.hasAttribute("disabled")||this._executeAction()}render(){const t=""!==this.icon,e=""!==this.iconAfter,i={content:!0,"has-icon-before":t,"has-icon-after":e,"icon-only":this.iconOnly},s=t?U`<vscode-icon
|
|
303
320
|
name=${this.icon}
|
|
304
321
|
?spin=${this.iconSpin}
|
|
305
|
-
spin-duration=${
|
|
322
|
+
spin-duration=${Mt(this.iconSpinDuration)}
|
|
306
323
|
class="icon"
|
|
307
324
|
></vscode-icon>`:q,o=e?U`<vscode-icon
|
|
308
325
|
name=${this.iconAfter}
|
|
309
326
|
?spin=${this.iconAfterSpin}
|
|
310
|
-
spin-duration=${
|
|
327
|
+
spin-duration=${Mt(this.iconAfterSpinDuration)}
|
|
311
328
|
class="icon-after"
|
|
312
329
|
></vscode-icon>`:q;return U`
|
|
313
|
-
<
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
330
|
+
<div class="root">
|
|
331
|
+
<div class=${jt(i)}>
|
|
332
|
+
${s}
|
|
333
|
+
<slot></slot>
|
|
334
|
+
${o}
|
|
335
|
+
</div>
|
|
336
|
+
<div class="divider"><div></div></div>
|
|
337
|
+
</div>
|
|
338
|
+
`}};Lt.styles=Rt,Lt.formAssociated=!0,Tt([pt({type:Boolean,reflect:!0})],Lt.prototype,"autofocus",void 0),Tt([pt({type:Number,reflect:!0})],Lt.prototype,"tabIndex",void 0),Tt([pt({type:Boolean,reflect:!0})],Lt.prototype,"secondary",void 0),Tt([pt({reflect:!0})],Lt.prototype,"role",void 0),Tt([pt({type:Boolean,reflect:!0})],Lt.prototype,"disabled",void 0),Tt([pt()],Lt.prototype,"icon",void 0),Tt([pt({type:Boolean,reflect:!0,attribute:"icon-spin"})],Lt.prototype,"iconSpin",void 0),Tt([pt({type:Number,reflect:!0,attribute:"icon-spin-duration"})],Lt.prototype,"iconSpinDuration",void 0),Tt([pt({attribute:"icon-after"})],Lt.prototype,"iconAfter",void 0),Tt([pt({type:Boolean,reflect:!0,attribute:"icon-after-spin"})],Lt.prototype,"iconAfterSpin",void 0),Tt([pt({type:Number,reflect:!0,attribute:"icon-after-spin-duration"})],Lt.prototype,"iconAfterSpinDuration",void 0),Tt([pt({type:Boolean,reflect:!0})],Lt.prototype,"focused",void 0),Tt([pt({type:String,reflect:!0})],Lt.prototype,"name",void 0),Tt([pt({type:Boolean,reflect:!0,attribute:"icon-only"})],Lt.prototype,"iconOnly",void 0),Tt([pt({reflect:!0})],Lt.prototype,"type",void 0),Tt([pt()],Lt.prototype,"value",void 0),Lt=Tt([kt("vscode-button")],Lt);const Ut=[$t,n`
|
|
320
339
|
:host {
|
|
321
|
-
display: inline-
|
|
340
|
+
display: inline-block;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
.root {
|
|
322
344
|
align-items: stretch;
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
overflow: hidden;
|
|
345
|
+
display: flex;
|
|
346
|
+
width: 100%;
|
|
326
347
|
}
|
|
327
348
|
|
|
328
349
|
::slotted(vscode-button:not(:first-child)) {
|
|
329
|
-
border-
|
|
330
|
-
border-
|
|
331
|
-
border-left-width: 0;
|
|
350
|
+
--vsc-border-left-width: 0;
|
|
351
|
+
--vsc-border-left-radius: 0;
|
|
352
|
+
--vsc-border-left-width: 0;
|
|
332
353
|
}
|
|
333
354
|
|
|
334
355
|
::slotted(vscode-button:not(:last-child)) {
|
|
335
|
-
--divider-display: block;
|
|
336
|
-
--
|
|
337
|
-
|
|
338
|
-
border-
|
|
339
|
-
border-bottom-right-radius: 0;
|
|
340
|
-
border-right-width: 0;
|
|
356
|
+
--vsc-divider-display: block;
|
|
357
|
+
--vsc-border-right-width: 0;
|
|
358
|
+
--vsc-border-right-radius: 0;
|
|
359
|
+
--vsc-border-right-width: 0;
|
|
341
360
|
}
|
|
342
361
|
|
|
343
362
|
::slotted(vscode-button:focus) {
|
|
344
363
|
z-index: 1;
|
|
345
364
|
}
|
|
346
|
-
|
|
365
|
+
|
|
366
|
+
::slotted(vscode-button:not(:empty)) {
|
|
367
|
+
width: 100%;
|
|
368
|
+
}
|
|
369
|
+
`];var Gt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Ht=class extends wt{render(){return U`<div class="root"><slot></slot></div>`}};Ht.styles=Ut,Ht=Gt([kt("vscode-button-group")],Ht);var qt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};class Wt extends wt{constructor(){super(),this.focused=!1,this._prevTabindex=0,this._handleFocus=()=>{this.focused=!0},this._handleBlur=()=>{this.focused=!1}}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this._handleFocus),this.addEventListener("blur",this._handleBlur)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this._handleFocus),this.removeEventListener("blur",this._handleBlur)}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"disabled"===t&&this.hasAttribute("disabled")?(this._prevTabindex=this.tabIndex,this.tabIndex=-1):"disabled"!==t||this.hasAttribute("disabled")||(this.tabIndex=this._prevTabindex)}}qt([pt({type:Boolean,reflect:!0})],Wt.prototype,"focused",void 0);var Kt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Jt=t=>{class e extends t{constructor(){super(...arguments),this._label="",this._slottedText=""}set label(t){this._label=t,""===this._slottedText&&this.setAttribute("aria-label",t)}get label(){return this._label}_handleSlotChange(){this._slottedText=this.textContent?this.textContent.trim():"",""!==this._slottedText&&this.setAttribute("aria-label",this._slottedText)}_renderLabelAttribute(){return""===this._slottedText?U`<span class="label-attr">${this._label}</span>`:U`${q}`}}return Kt([pt()],e.prototype,"label",null),e};var Yt=[n`
|
|
347
370
|
:host {
|
|
348
|
-
color: var(--vscode-foreground, #cccccc);
|
|
349
371
|
display: inline-block;
|
|
350
|
-
font-family: var(--vscode-font-family, sans-serif);
|
|
351
|
-
font-size: var(--vscode-font-size, 13px);
|
|
352
|
-
font-weight: var(--vscode-font-weight, normal);
|
|
353
|
-
line-height: 18px;
|
|
354
372
|
}
|
|
355
373
|
|
|
356
374
|
:host(:focus) {
|
|
@@ -362,9 +380,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
362
380
|
}
|
|
363
381
|
|
|
364
382
|
.wrapper {
|
|
383
|
+
color: var(--vscode-foreground, #cccccc);
|
|
365
384
|
cursor: pointer;
|
|
366
385
|
display: block;
|
|
386
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
367
387
|
font-size: var(--vscode-font-size, 13px);
|
|
388
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
389
|
+
line-height: 18px;
|
|
368
390
|
margin-bottom: 4px;
|
|
369
391
|
margin-top: 4px;
|
|
370
392
|
min-height: 18px;
|
|
@@ -377,15 +399,15 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
377
399
|
}
|
|
378
400
|
|
|
379
401
|
input {
|
|
380
|
-
|
|
402
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
381
403
|
height: 1px;
|
|
382
404
|
left: 9px;
|
|
383
405
|
margin: 0;
|
|
384
|
-
top: 17px;
|
|
385
|
-
width: 1px;
|
|
386
406
|
overflow: hidden;
|
|
387
|
-
|
|
407
|
+
position: absolute;
|
|
408
|
+
top: 17px;
|
|
388
409
|
white-space: nowrap;
|
|
410
|
+
width: 1px;
|
|
389
411
|
}
|
|
390
412
|
|
|
391
413
|
.icon {
|
|
@@ -432,7 +454,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
432
454
|
:host([disabled]) .label {
|
|
433
455
|
cursor: default;
|
|
434
456
|
}
|
|
435
|
-
`];const
|
|
457
|
+
`];const Xt=[$t,Yt,n`
|
|
436
458
|
:host(:invalid) .icon,
|
|
437
459
|
:host([invalid]) .icon {
|
|
438
460
|
background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
@@ -454,7 +476,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
454
476
|
outline: 1px solid var(--vscode-focusBorder, #0078d4);
|
|
455
477
|
outline-offset: -1px;
|
|
456
478
|
}
|
|
457
|
-
`];var
|
|
479
|
+
`];var Zt=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Qt=class extends(Jt(Wt)){set checked(t){this._checked=t,this._manageRequired(),this.requestUpdate()}get checked(){return this._checked}set required(t){this._required=t,this._manageRequired(),this.requestUpdate()}get required(){return this._required}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}constructor(){super(),this.autofocus=!1,this._checked=!1,this.defaultChecked=!1,this.invalid=!1,this.name=void 0,this.value="",this.disabled=!1,this.indeterminate=!1,this._required=!1,this.type="checkbox",this._handleClick=t=>{t.preventDefault(),this.disabled||this._toggleState()},this._handleKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault()," "===t.key&&this._toggleState(),"Enter"===t.key&&this._internals.form?.requestSubmit())},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyDown),this.updateComplete.then((()=>{this._manageRequired(),this._setActualFormValue()}))}disconnectedCallback(){this.removeEventListener("keydown",this._handleKeyDown)}update(t){super.update(t),t.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}formResetCallback(){this.checked=this.defaultChecked}formStateRestoreCallback(t,e){t&&(this.checked=!0)}_setActualFormValue(){let t="";t=this.checked?this.value?this.value:"on":null,this._internals.setFormValue(t)}_toggleState(){this.checked=!this.checked,this.indeterminate=!1,this._setActualFormValue(),this._manageRequired(),this.dispatchEvent(new Event("change",{bubbles:!0}))}_manageRequired(){!this.checked&&this.required?this._internals.setValidity({valueMissing:!0},"Please check this box if you want to proceed.",this._inputEl??void 0):this._internals.setValidity({})}render(){const t=jt({icon:!0,checked:this.checked,indeterminate:this.indeterminate}),e=jt({"label-inner":!0}),i=U`<svg
|
|
458
480
|
width="16"
|
|
459
481
|
height="16"
|
|
460
482
|
viewBox="0 0 16 16"
|
|
@@ -485,7 +507,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
485
507
|
</span>
|
|
486
508
|
</label>
|
|
487
509
|
</div>
|
|
488
|
-
`}};
|
|
510
|
+
`}};Qt.styles=Xt,Qt.formAssociated=!0,Qt.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"autofocus",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"checked",null),Zt([pt({type:Boolean,reflect:!0,attribute:"default-checked"})],Qt.prototype,"defaultChecked",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"invalid",void 0),Zt([pt({reflect:!0})],Qt.prototype,"name",void 0),Zt([pt()],Qt.prototype,"value",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"disabled",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"indeterminate",void 0),Zt([pt({type:Boolean,reflect:!0})],Qt.prototype,"required",null),Zt([pt()],Qt.prototype,"type",void 0),Zt([ft("#input")],Qt.prototype,"_inputEl",void 0),Qt=Zt([kt("vscode-checkbox")],Qt);const te=[$t,n`
|
|
489
511
|
:host {
|
|
490
512
|
display: block;
|
|
491
513
|
}
|
|
@@ -515,11 +537,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
515
537
|
:host([variant='vertical']) ::slotted(vscode-checkbox:last-child) {
|
|
516
538
|
margin-bottom: 0;
|
|
517
539
|
}
|
|
518
|
-
`];var
|
|
540
|
+
`];var ee=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let ie=class extends wt{constructor(){super(...arguments),this.role="group",this.variant="horizontal"}render(){return U`
|
|
519
541
|
<div class="wrapper">
|
|
520
542
|
<slot></slot>
|
|
521
543
|
</div>
|
|
522
|
-
`}};
|
|
544
|
+
`}};ie.styles=te,ee([pt({reflect:!0})],ie.prototype,"role",void 0),ee([pt({reflect:!0})],ie.prototype,"variant",void 0),ie=ee([kt("vscode-checkbox-group")],ie);const se=[$t,n`
|
|
523
545
|
.collapsible {
|
|
524
546
|
background-color: var(--vscode-sideBar-background, #181818);
|
|
525
547
|
}
|
|
@@ -608,7 +630,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
608
630
|
.collapsible.open .collapsible-body {
|
|
609
631
|
display: block;
|
|
610
632
|
}
|
|
611
|
-
`];var
|
|
633
|
+
`];var oe=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let re=class extends wt{constructor(){super(...arguments),this.title="",this.heading="",this.description="",this.open=!1}_emitToggleEvent(){this.dispatchEvent(new CustomEvent("vsc-collapsible-toggle",{detail:{open:this.open}}))}_onHeaderClick(){this.open=!this.open,this._emitToggleEvent()}_onHeaderKeyDown(t){"Enter"===t.key&&(this.open=!this.open,this._emitToggleEvent())}render(){const t=jt({collapsible:!0,open:this.open}),e=this.heading?this.heading:this.title,i=U`<svg
|
|
612
634
|
width="16"
|
|
613
635
|
height="16"
|
|
614
636
|
viewBox="0 0 16 16"
|
|
@@ -621,17 +643,16 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
621
643
|
clip-rule="evenodd"
|
|
622
644
|
d="M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z"
|
|
623
645
|
/>
|
|
624
|
-
</svg>`,
|
|
646
|
+
</svg>`,s=this.description?U`<span class="description">${this.description}</span>`:q;return U`
|
|
625
647
|
<div class=${t}>
|
|
626
648
|
<div
|
|
627
649
|
class="collapsible-header"
|
|
628
650
|
tabindex="0"
|
|
629
|
-
title=${this.title}
|
|
630
651
|
@click=${this._onHeaderClick}
|
|
631
652
|
@keydown=${this._onHeaderKeyDown}
|
|
632
653
|
>
|
|
633
|
-
${
|
|
634
|
-
<h3 class="title">${
|
|
654
|
+
${i}
|
|
655
|
+
<h3 class="title">${e}${s}</h3>
|
|
635
656
|
<div class="header-slots">
|
|
636
657
|
<div class="actions"><slot name="actions"></slot></div>
|
|
637
658
|
<div class="decorations"><slot name="decorations"></slot></div>
|
|
@@ -641,13 +662,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
641
662
|
<slot></slot>
|
|
642
663
|
</div>
|
|
643
664
|
</div>
|
|
644
|
-
`}};
|
|
665
|
+
`}};re.styles=se,oe([pt({type:String})],re.prototype,"title",void 0),oe([pt()],re.prototype,"heading",void 0),oe([pt()],re.prototype,"description",void 0),oe([pt({type:Boolean,reflect:!0})],re.prototype,"open",void 0),re=oe([kt("vscode-collapsible")],re);const ne=[$t,n`
|
|
645
666
|
:host {
|
|
646
667
|
display: block;
|
|
647
|
-
font-family: var(--vscode-font-family, sans-serif);
|
|
648
|
-
font-size: var(--vscode-font-size, 13px);
|
|
649
|
-
font-weight: var(--vscode-font-weight, normal);
|
|
650
|
-
line-height: 1.4em;
|
|
651
668
|
outline: none;
|
|
652
669
|
position: relative;
|
|
653
670
|
}
|
|
@@ -656,6 +673,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
656
673
|
background-color: var(--vscode-menu-background, #1f1f1f);
|
|
657
674
|
color: var(--vscode-menu-foreground, #cccccc);
|
|
658
675
|
display: flex;
|
|
676
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
677
|
+
font-size: var(--vscode-font-size, 13px);
|
|
678
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
679
|
+
line-height: 1.4em;
|
|
659
680
|
user-select: none;
|
|
660
681
|
white-space: nowrap;
|
|
661
682
|
}
|
|
@@ -710,7 +731,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
710
731
|
padding: 0 22px;
|
|
711
732
|
text-align: right;
|
|
712
733
|
}
|
|
713
|
-
`];var
|
|
734
|
+
`];var le=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let he=class extends wt{constructor(){super(...arguments),this.label="",this.keybinding="",this.value="",this.separator=!1,this.tabindex=0}onItemClick(){this.dispatchEvent(new CustomEvent("vsc-click",{detail:{label:this.label,keybinding:this.keybinding,value:this.value||this.label,separator:this.separator,tabindex:this.tabindex},bubbles:!0,composed:!0}))}render(){return U`
|
|
714
735
|
${this.separator?U`
|
|
715
736
|
<div class="context-menu-item separator">
|
|
716
737
|
<span class="ruler"></span>
|
|
@@ -723,13 +744,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
723
744
|
</a>
|
|
724
745
|
</div>
|
|
725
746
|
`}
|
|
726
|
-
`}};
|
|
747
|
+
`}};he.styles=ne,le([pt({type:String})],he.prototype,"label",void 0),le([pt({type:String})],he.prototype,"keybinding",void 0),le([pt({type:String})],he.prototype,"value",void 0),le([pt({type:Boolean,reflect:!0})],he.prototype,"separator",void 0),le([pt({type:Number})],he.prototype,"tabindex",void 0),he=le([kt("vscode-context-menu-item")],he);const ae=[$t,n`
|
|
727
748
|
:host {
|
|
728
749
|
display: block;
|
|
729
|
-
font-family: var(--vscode-font-family, sans-serif);
|
|
730
|
-
font-size: var(--vscode-font-size, 13px);
|
|
731
|
-
font-weight: var(--vscode-font-weight, normal);
|
|
732
|
-
line-height: 1.4em;
|
|
733
750
|
position: relative;
|
|
734
751
|
}
|
|
735
752
|
|
|
@@ -741,6 +758,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
741
758
|
border-width: 1px;
|
|
742
759
|
box-shadow: 0 2px 8px var(--vscode-widget-shadow, rgba(0, 0, 0, 0.36));
|
|
743
760
|
color: var(--vscode-menu-foreground, #cccccc);
|
|
761
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
762
|
+
font-size: var(--vscode-font-size, 13px);
|
|
763
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
764
|
+
line-height: 1.4em;
|
|
744
765
|
padding: 4px 0;
|
|
745
766
|
white-space: nowrap;
|
|
746
767
|
}
|
|
@@ -748,7 +769,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
748
769
|
.context-menu:focus {
|
|
749
770
|
outline: 0;
|
|
750
771
|
}
|
|
751
|
-
`];var
|
|
772
|
+
`];var ce=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let de=class extends wt{set data(t){this._data=t;const e=[];t.forEach(((t,i)=>{t.separator||e.push(i)})),this._clickableItemIndexes=e}get data(){return this._data}set show(t){this._show=t,this._selectedClickableItemIndex=-1,t&&this.updateComplete.then((()=>{this._wrapperEl&&this._wrapperEl.focus(),requestAnimationFrame((()=>{document.addEventListener("click",this._onClickOutsideBound,{once:!0})}))}))}get show(){return this._show}constructor(){super(),this.preventClose=!1,this.tabIndex=0,this._selectedClickableItemIndex=-1,this._show=!1,this._data=[],this._clickableItemIndexes=[],this._onClickOutsideBound=this._onClickOutside.bind(this),this.addEventListener("keydown",this._onKeyDown)}_onClickOutside(t){t.composedPath().includes(this)||(this.show=!1)}_onKeyDown(t){const{key:e}=t;switch("ArrowUp"!==e&&"ArrowDown"!==e&&"Escape"!==e&&"Enter"!==e||t.preventDefault(),e){case"ArrowUp":this._handleArrowUp();break;case"ArrowDown":this._handleArrowDown();break;case"Escape":this._handleEscape();break;case"Enter":this._handleEnter()}}_handleArrowUp(){0===this._selectedClickableItemIndex?this._selectedClickableItemIndex=this._clickableItemIndexes.length-1:this._selectedClickableItemIndex-=1}_handleArrowDown(){this._selectedClickableItemIndex+1<this._clickableItemIndexes.length?this._selectedClickableItemIndex+=1:this._selectedClickableItemIndex=0}_handleEscape(){this.show=!1,document.removeEventListener("click",this._onClickOutsideBound)}_dispatchSelectEvent(t){const{keybinding:e,label:i,value:s,separator:o,tabindex:r}=t;this.dispatchEvent(new CustomEvent("vsc-context-menu-select",{detail:{keybinding:e,label:i,separator:o,tabindex:r,value:s}}))}_handleEnter(){if(-1===this._selectedClickableItemIndex)return;const t=this._clickableItemIndexes[this._selectedClickableItemIndex],e=this._wrapperEl.querySelectorAll("vscode-context-menu-item")[t];this._dispatchSelectEvent(e),this.preventClose||(this.show=!1,document.removeEventListener("click",this._onClickOutsideBound))}_onItemClick(t){const e=t.currentTarget;this._dispatchSelectEvent(e),this.preventClose||(this.show=!1)}_onItemMouseOver(t){const e=t.target,i=e.dataset.index?+e.dataset.index:-1,s=this._clickableItemIndexes.findIndex((t=>t===i));-1!==s&&(this._selectedClickableItemIndex=s)}_onItemMouseOut(){this._selectedClickableItemIndex=-1}render(){if(!this._show)return U`${q}`;const t=this._clickableItemIndexes[this._selectedClickableItemIndex];return U`
|
|
752
773
|
<div class="context-menu" tabindex="0">
|
|
753
774
|
${this.data?this.data.map((({label:e="",keybinding:i="",value:s="",separator:o=!1,tabindex:r=0},n)=>U`
|
|
754
775
|
<vscode-context-menu-item
|
|
@@ -765,25 +786,28 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
765
786
|
></vscode-context-menu-item>
|
|
766
787
|
`)):U`<slot></slot>`}
|
|
767
788
|
</div>
|
|
768
|
-
`}};
|
|
789
|
+
`}};de.styles=ae,ce([pt({type:Array,attribute:!1})],de.prototype,"data",null),ce([pt({type:Boolean,reflect:!0,attribute:"prevent-close"})],de.prototype,"preventClose",void 0),ce([pt({type:Boolean,reflect:!0})],de.prototype,"show",null),ce([pt({type:Number,reflect:!0})],de.prototype,"tabIndex",void 0),ce([vt()],de.prototype,"_selectedClickableItemIndex",void 0),ce([vt()],de.prototype,"_show",void 0),ce([ft(".context-menu")],de.prototype,"_wrapperEl",void 0),de=ce([kt("vscode-context-menu")],de);const ue=[$t,n`
|
|
769
790
|
:host {
|
|
770
|
-
background-color: var(--vscode-foreground, #cccccc);
|
|
771
791
|
display: block;
|
|
772
|
-
height: 1px;
|
|
773
792
|
margin-bottom: 10px;
|
|
774
793
|
margin-top: 10px;
|
|
794
|
+
}
|
|
795
|
+
|
|
796
|
+
div {
|
|
797
|
+
background-color: var(--vscode-foreground, #cccccc);
|
|
798
|
+
height: 1px;
|
|
775
799
|
opacity: 0.4;
|
|
776
800
|
}
|
|
777
|
-
`];var pe=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let
|
|
801
|
+
`];var pe=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let ve=class extends wt{constructor(){super(...arguments),this.role="separator"}render(){return U`<div></div>`}};ve.styles=ue,pe([pt({reflect:!0})],ve.prototype,"role",void 0),ve=pe([kt("vscode-divider")],ve);const be=[$t,n`
|
|
778
802
|
:host {
|
|
779
803
|
display: block;
|
|
780
804
|
max-width: 727px;
|
|
781
805
|
}
|
|
782
|
-
`];var ge
|
|
806
|
+
`];var fe,ge=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};!function(t){t.HORIZONTAL="horizontal",t.VERTICAL="vertical"}(fe||(fe={}));let me=class extends wt{constructor(){super(...arguments),this.breakpoint=490,this._responsive=!1,this._firstUpdateComplete=!1,this._resizeObserverCallbackBound=this._resizeObserverCallback.bind(this)}set responsive(t){this._responsive=t,this._firstUpdateComplete&&(t?this._activateResponsiveLayout():this._deactivateResizeObserver())}get responsive(){return this._responsive}_toggleCompactLayout(t){this._assignedFormGroups.forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const i=e.dataset.originalVariant;t===fe.VERTICAL&&"horizontal"===i?e.variant="vertical":e.variant=i;e.querySelectorAll("vscode-checkbox-group, vscode-radio-group").forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const i=e.dataset.originalVariant;t===fe.HORIZONTAL&&i===fe.HORIZONTAL?e.variant="horizontal":e.variant="vertical"}))}))}_resizeObserverCallback(t){let e=0;for(const i of t)e=i.contentRect.width;const i=e<this.breakpoint?fe.VERTICAL:fe.HORIZONTAL;i!==this._currentFormGroupLayout&&(this._toggleCompactLayout(i),this._currentFormGroupLayout=i)}_activateResponsiveLayout(){this._resizeObserver=new ResizeObserver(this._resizeObserverCallbackBound),this._resizeObserver.observe(this._wrapperElement)}_deactivateResizeObserver(){this._resizeObserver?.disconnect(),this._resizeObserver=null}firstUpdated(){this._firstUpdateComplete=!0,this._responsive&&this._activateResponsiveLayout()}render(){return U`
|
|
783
807
|
<div class="wrapper">
|
|
784
808
|
<slot></slot>
|
|
785
809
|
</div>
|
|
786
|
-
`}};
|
|
810
|
+
`}};me.styles=be,ge([pt({type:Boolean,reflect:!0})],me.prototype,"responsive",null),ge([pt({type:Number})],me.prototype,"breakpoint",void 0),ge([ft(".wrapper")],me.prototype,"_wrapperElement",void 0),ge([mt({selector:"vscode-form-group"})],me.prototype,"_assignedFormGroups",void 0),me=ge([kt("vscode-form-container")],me);const xe=[$t,n`
|
|
787
811
|
:host {
|
|
788
812
|
--label-right-margin: 14px;
|
|
789
813
|
--label-width: 150px;
|
|
@@ -868,11 +892,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
868
892
|
::slotted(vscode-button) {
|
|
869
893
|
margin-right: 4px;
|
|
870
894
|
}
|
|
871
|
-
`];var
|
|
895
|
+
`];var ye=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let we=class extends wt{constructor(){super(...arguments),this.variant="horizontal"}render(){return U`
|
|
872
896
|
<div class="wrapper">
|
|
873
897
|
<slot></slot>
|
|
874
898
|
</div>
|
|
875
|
-
`}};
|
|
899
|
+
`}};we.styles=xe,ye([pt({reflect:!0})],we.prototype,"variant",void 0),we=ye([kt("vscode-form-group")],we);const ke=[$t,n`
|
|
876
900
|
:host {
|
|
877
901
|
display: block;
|
|
878
902
|
line-height: 1.4em;
|
|
@@ -885,22 +909,22 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
885
909
|
:host([vertical]) {
|
|
886
910
|
margin-left: 0;
|
|
887
911
|
}
|
|
888
|
-
`];var
|
|
912
|
+
`];var $e=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const _e=new CSSStyleSheet;_e.replaceSync("\n vscode-form-helper * {\n margin: 0;\n }\n\n vscode-form-helper *:not(:last-child) {\n margin-bottom: 8px;\n }\n");let Se=class extends wt{constructor(){super(),this._injectLightDOMStyles()}_injectLightDOMStyles(){const t=document.adoptedStyleSheets.find((t=>t===_e));t||document.adoptedStyleSheets.push(_e)}render(){return U`<slot></slot>`}};Se.styles=ke,Se=$e([kt("vscode-form-helper")],Se);let Be=0;const Ce=(t="")=>(Be++,`${t}${Be}`),Oe=[$t,n`
|
|
889
913
|
:host {
|
|
914
|
+
display: block;
|
|
915
|
+
}
|
|
916
|
+
|
|
917
|
+
.wrapper {
|
|
890
918
|
color: var(--vscode-foreground, #cccccc);
|
|
919
|
+
cursor: default;
|
|
920
|
+
display: block;
|
|
891
921
|
font-family: var(--vscode-font-family, sans-serif);
|
|
892
922
|
font-size: var(--vscode-font-size, 13px);
|
|
893
923
|
font-weight: 600;
|
|
894
924
|
line-height: ${1.2307692307692308};
|
|
895
|
-
cursor: default;
|
|
896
|
-
display: block;
|
|
897
925
|
padding: 5px 0;
|
|
898
926
|
}
|
|
899
927
|
|
|
900
|
-
.wrapper {
|
|
901
|
-
display: block;
|
|
902
|
-
}
|
|
903
|
-
|
|
904
928
|
.wrapper.required:after {
|
|
905
929
|
content: ' *';
|
|
906
930
|
}
|
|
@@ -913,13 +937,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
913
937
|
color: var(--vscode-foreground, #cccccc);
|
|
914
938
|
opacity: 0.9;
|
|
915
939
|
}
|
|
916
|
-
`];var
|
|
940
|
+
`];var ze=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Ae=class extends wt{constructor(){super(...arguments),this.required=!1,this._id="",this._htmlFor="",this._connected=!1}set htmlFor(t){this._htmlFor=t,this.setAttribute("for",t),this._connected&&this._connectWithTarget()}get htmlFor(){return this._htmlFor}set id(t){this._id=t}get id(){return this._id}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._connected=!0,""===this._id&&(this._id=Ce("vscode-label-"),this.setAttribute("id",this._id)),this._connectWithTarget()}_getTarget(){let t=null;if(this._htmlFor){const e=this.getRootNode({composed:!1});e&&(t=e.querySelector(`#${this._htmlFor}`))}return t}async _connectWithTarget(){await this.updateComplete;const t=this._getTarget();["vscode-radio-group","vscode-checkbox-group"].includes(t?.tagName.toLowerCase()??"")&&t.setAttribute("aria-labelledby",this._id);let e="";this.textContent&&(e=this.textContent.trim()),t&&"label"in t&&["vscode-textfield","vscode-textarea","vscode-single-select","vscode-multi-select"].includes(t?.tagName.toLowerCase()??"")&&(t.label=e)}_handleClick(){const t=this._getTarget();t&&"focus"in t&&t.focus()}render(){return U`
|
|
917
941
|
<label
|
|
918
|
-
class=${
|
|
942
|
+
class=${jt({wrapper:!0,required:this.required})}
|
|
919
943
|
@click=${this._handleClick}
|
|
920
944
|
><slot></slot
|
|
921
945
|
></label>
|
|
922
|
-
`}};
|
|
946
|
+
`}};Ae.styles=Oe,ze([pt({reflect:!0,attribute:"for"})],Ae.prototype,"htmlFor",null),ze([pt()],Ae.prototype,"id",null),ze([pt({type:Boolean,reflect:!0})],Ae.prototype,"required",void 0),Ae=ze([kt("vscode-label")],Ae);const Ee=U`
|
|
923
947
|
<span class="icon">
|
|
924
948
|
<svg
|
|
925
949
|
width="16"
|
|
@@ -935,7 +959,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
935
959
|
/>
|
|
936
960
|
</svg>
|
|
937
961
|
</span>
|
|
938
|
-
`,
|
|
962
|
+
`,Ie=G`<svg
|
|
939
963
|
width="16"
|
|
940
964
|
height="16"
|
|
941
965
|
viewBox="0 0 16 16"
|
|
@@ -947,7 +971,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
947
971
|
clip-rule="evenodd"
|
|
948
972
|
d="M14.431 3.323l-8.47 10-.79-.036-3.35-4.77.818-.574 2.978 4.24 8.051-9.506.764.646z"
|
|
949
973
|
/>
|
|
950
|
-
</svg>`,{I:De}=rt,Fe=()=>document.createComment(""),Ve=(t,e,i)=>{const s=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Fe(),o),r=s.insertBefore(Fe(),o);i=new De(e,r,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,n=r!==t;if(n){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==o||n){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,o),t=e}}}return i},Ne=(t,e,i=t)=>(t._$AI(e,i),t),Re={},Te=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Le=(t,e,i)=>{const s=new Map;for(let o=e;o<=i;o++)s.set(t[o],o);return s},Ue=It(class extends jt{constructor(t){if(super(t),t.type!==At)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let s;void 0===i?i=e:void 0!==e&&(s=e);const o=[],r=[];let n=0;for(const e of t)o[n]=s?s(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,s]){const o=(t=>t._$AH)(t),{values:r,keys:n}=this.dt(e,i,s);if(!Array.isArray(o))return this.ut=n,r;const l=this.ut??=[],h=[];let a,c,d=0,u=o.length-1,v=0,p=r.length-1;for(;d<=u&&v<=p;)if(null===o[d])d++;else if(null===o[u])u--;else if(l[d]===n[v])h[v]=Ne(o[d],r[v]),d++,v++;else if(l[u]===n[p])h[p]=Ne(o[u],r[p]),u--,p--;else if(l[d]===n[p])h[p]=Ne(o[d],r[p]),Ve(t,h[p+1],o[d]),d++,p--;else if(l[u]===n[v])h[v]=Ne(o[u],r[v]),Ve(t,o[d],o[u]),u--,v++;else if(void 0===a&&(a=Le(n,v,p),c=Le(l,d,u)),a.has(l[d]))if(a.has(l[u])){const e=c.get(n[v]),i=void 0!==e?o[e]:null;if(null===i){const e=Ve(t,o[d]);Ne(e,r[v]),h[v]=e}else h[v]=Ne(i,r[v]),Ve(t,o[d],i),o[e]=null;v++}else Te(o[u]),u--;else Te(o[d]),d++;for(;v<=p;){const e=Ve(t,h[p+1]);Ne(e,r[v]),h[v++]=e}for(;d<=u;){const t=o[d++];null!==t&&Te(t)}return this.ut=n,((t,e=Re)=>{t._$AH=e})(t,h),H}});var Ge=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let He=class extends kt{constructor(){super(...arguments),this.description="",this.selected=!1,this.disabled=!1,this._initialized=!1,this._handleSlotChange=()=>{this._initialized&&this.dispatchEvent(new Event("vsc-option-state-change",{bubbles:!0}))}}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._initialized=!0}))}willUpdate(t){this._initialized&&(t.has("description")||t.has("value")||t.has("selected")||t.has("disabled"))&&this.dispatchEvent(new Event("vsc-option-state-change",{bubbles:!0}))}render(){return U`<slot @slotchange=${this._handleSlotChange}></slot>`}};He.styles=_t,Ge([pt({type:String})],He.prototype,"value",void 0),Ge([pt({type:String})],He.prototype,"description",void 0),Ge([pt({type:Boolean,reflect:!0})],He.prototype,"selected",void 0),Ge([pt({type:Boolean,reflect:!0})],He.prototype,"disabled",void 0),He=Ge([$t("vscode-option")],He);const qe=(t,e)=>{const i={match:!1,ranges:[]},s=t.toLowerCase(),o=e.toLowerCase(),r=s.split(" ");let n=0;return r.forEach(((e,s)=>{if(s>0&&(n+=r[s-1].length+1),i.match)return;const l=e.indexOf(o),h=o.length;0===l&&(i.match=!0,i.ranges.push([n+l,Math.min(n+l+h,t.length)]))})),i},We=(t,e)=>{const i={match:!1,ranges:[]};return 0===t.toLowerCase().indexOf(e.toLowerCase())&&(i.match=!0,i.ranges=[[0,e.length]]),i},Ke=(t,e)=>{const i={match:!1,ranges:[]},s=t.toLowerCase().indexOf(e.toLowerCase());return s>-1&&(i.match=!0,i.ranges=[[s,s+e.length]]),i},Je=(t,e)=>{const i={match:!1,ranges:[]};let s=0,o=0;const r=e.length-1,n=t.toLowerCase(),l=e.toLowerCase();for(let t=0;t<=r;t++){if(o=n.indexOf(l[t],s),-1===o)return{match:!1,ranges:[]};i.match=!0,i.ranges.push([o,o+1]),s=o+1}return i},Ye=t=>{const e=[];return" "===t?(e.push(U` `),e):(0===t.indexOf(" ")&&e.push(U` `),e.push(U`${t.trimStart().trimEnd()}`),t.lastIndexOf(" ")===t.length-1&&e.push(U` `),e)};class Xe{constructor(t){this._activeIndex=-1,this._options=[],this._filterPattern="",this._filterMethod="fuzzy",this._combobox=!1,this._indexByValue=new Map,this._indexByLabel=new Map,this._selectedIndex=-1,this._selectedIndexes=new Set,this._multiSelect=!1,this._numOfVisibleOptions=0,(this._host=t).addController(this)}hostConnected(){}get activeIndex(){return this._activeIndex}set activeIndex(t){this._activeIndex=t,this._host.requestUpdate()}get relativeActiveIndex(){return this._options[this._activeIndex]?.filteredIndex??-1}set comboboxMode(t){this._combobox=t,this._host.requestUpdate()}get comboboxMode(){return this._combobox}get multiSelect(){return this._multiSelect}set multiSelect(t){this._selectedIndex=-1,this._selectedIndexes.clear(),this._multiSelect=t,this._host.requestUpdate()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){-1!==this._selectedIndex&&(this._options[this._selectedIndex].selected??=!1);const e=this.getOptionByIndex(t);this._selectedIndex=e?t:-1,this._host.requestUpdate()}get selectedIndexes(){return Array.from(this._selectedIndexes)}set selectedIndexes(t){this._selectedIndexes.forEach((t=>{this._options[t].selected=!1})),this._selectedIndexes=new Set(t),t.forEach((t=>{void 0!==this._options[t]&&(this._options[t].selected=!0)})),this._host.requestUpdate()}set value(t){if(this._multiSelect){const e=t.map((t=>this._indexByValue.get(t))).filter((t=>void 0!==t));this._selectedIndexes=new Set(e)}else this._selectedIndex=this._indexByValue.get(t)??-1;this._host.requestUpdate()}get value(){return this._multiSelect?this._selectedIndexes.size>0?Array.from(this._selectedIndexes).map((t=>this._options[t].value)):[]:this._selectedIndex>-1?this._options[this._selectedIndex].value:""}set multiSelectValue(t){const e=t.map((t=>this._indexByValue.get(t))).filter((t=>void 0!==t));this._selectedIndexes=new Set(e)}get multiSelectValue(){return this._selectedIndexes.size>0?Array.from(this._selectedIndexes).map((t=>this._options[t].value)):[]}get filterPattern(){return this._filterPattern}set filterPattern(t){t!==this._filterPattern&&(this._filterPattern=t,this._updateState())}get filterMethod(){return this._filterMethod}set filterMethod(t){t!==this._filterMethod&&(this._filterMethod=t,this._updateState())}get options(){return this._options}get numOfVisibleOptions(){return this._numOfVisibleOptions}get numOptions(){return this._options.length}populate(t){this._indexByValue.clear(),this._indexByLabel.clear(),this._options=t.map(((t,e)=>(this._indexByValue.set(t.value??"",e),this._indexByLabel.set(t.label??"",e),{description:t.description??"",disabled:t.disabled??!1,label:t.label??"",selected:t.selected??!1,value:t.value??"",index:e,filteredIndex:e,ranges:[],visible:!0}))),this._numOfVisibleOptions=this._options.length}add(t){const e=this._options.length,{description:i,disabled:s,label:o,selected:r,value:n}=t;let l=!0,h=[];if(this._combobox&&""!==this._filterPattern){const t=this._searchByPattern(o??"");l=t.match,h=t.ranges}this._indexByValue.set(n??"",e),this._indexByLabel.set(o??"",e),r&&(this._selectedIndex=e,this._selectedIndexes.add(e),this._activeIndex=e),this._options.push({index:e,filteredIndex:e,description:i??"",disabled:s??!1,label:o??"",selected:r??!1,value:n??"",visible:l,ranges:h}),l&&(this._numOfVisibleOptions+=1)}clear(){this._options=[],this._indexByValue.clear(),this._indexByLabel.clear(),this._numOfVisibleOptions=0}getIsIndexSelected(t){return this._multiSelect?this._selectedIndexes.has(t):this._selectedIndex===t}expandMultiSelection(t){t.forEach((t=>{const e=this._indexByValue.get(t)??-1;-1!==e&&this._selectedIndexes.add(e)})),this._host.requestUpdate()}toggleActiveMultiselectOption(){const t=this._options[this._activeIndex]??null;if(!t)return;this._selectedIndexes.has(t.index)?this._selectedIndexes.delete(t.index):this._selectedIndexes.add(t.index),this._host.requestUpdate()}toggleOptionSelected(t){const e=this._selectedIndexes.has(t);this._options[t].selected=!this._options[t].selected,e?this._selectedIndexes.delete(t):this._selectedIndexes.add(t),this._host.requestUpdate()}getActiveOption(){return this._options[this._activeIndex]??null}getSelectedOption(){return this._options[this._selectedIndex]??null}getOptionByIndex(t){return this._options[t]??null}findOptionIndex(t){return this._indexByValue.get(t)??-1}getOptionByValue(t,e=!1){const i=this._indexByValue.get(t)??-1;return-1===i?null:e||this._options[i].visible?this._options[i]:null}getOptionByLabel(t){const e=this._indexByLabel.get(t)??-1;return-1===e?null:this._options[e]}next(t){let e=-1;for(let i=(t??this._activeIndex)+1;i<this._options.length;i++)if(this._options[i]&&!this._options[i].disabled&&this._options[i].visible){e=i;break}return e>-1?this._options[e]:null}prev(t){let e=-1;for(let i=(t??this._activeIndex)-1;i>=0;i--)if(this._options[i]&&!this._options[i].disabled&&this._options[i].visible){e=i;break}return e>-1?this._options[e]:null}activateDefault(){if(this._multiSelect){if(this._selectedIndexes.size>0){const t=this._selectedIndexes.values().next();this._activeIndex=t.value?t.value:0}}else this._selectedIndex>-1?this._activeIndex=this._selectedIndex:this._activeIndex=0;this._host.requestUpdate()}selectAll(){this._multiSelect&&(this._options.forEach(((t,e)=>{this._options[e].selected=!0,this._selectedIndexes.add(e)})),this._host.requestUpdate())}selectNone(){this._multiSelect&&(this._options.forEach(((t,e)=>{this._options[e].selected=!1})),this._selectedIndexes.clear(),this._host.requestUpdate())}_searchByPattern(t){let e;switch(this._filterMethod){case"startsWithPerTerm":e=qe(t,this._filterPattern);break;case"startsWith":e=We(t,this._filterPattern);break;case"contains":e=Ke(t,this._filterPattern);break;default:e=Je(t,this._filterPattern)}return e}_updateState(){if(this._combobox&&""!==this._filterPattern){let t=-1;this._numOfVisibleOptions=0,this._options.forEach((({label:e},i)=>{const s=this._searchByPattern(e);this._options[i].visible=s.match,this._options[i].ranges=s.ranges,this._options[i].filteredIndex=s.match?++t:-1,s.match&&(this._numOfVisibleOptions+=1)}))}else this._options.forEach(((t,e)=>{this._options[e].visible=!0,this._options[e].ranges=[]})),this._numOfVisibleOptions=this._options.length;this._host.requestUpdate()}}const Ze=[_t,n`
|
|
974
|
+
</svg>`,{I:je}=rt,Me=()=>document.createComment(""),Pe=(t,e,i)=>{const s=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===i){const e=s.insertBefore(Me(),o),r=s.insertBefore(Me(),o);i=new je(e,r,t,t.options)}else{const e=i._$AB.nextSibling,r=i._$AM,n=r!==t;if(n){let e;i._$AQ?.(t),i._$AM=t,void 0!==i._$AP&&(e=t._$AU)!==r._$AU&&i._$AP(e)}if(e!==o||n){let t=i._$AA;for(;t!==e;){const e=t.nextSibling;s.insertBefore(t,o),t=e}}}return i},De=(t,e,i=t)=>(t._$AI(e,i),t),Fe={},Ve=t=>{t._$AP?.(!1,!0);let e=t._$AA;const i=t._$AB.nextSibling;for(;e!==i;){const t=e.nextSibling;e.remove(),e=t}},Ne=(t,e,i)=>{const s=new Map;for(let o=e;o<=i;o++)s.set(t[o],o);return s},Re=Et(class extends It{constructor(t){if(super(t),t.type!==zt)throw Error("repeat() can only be used in text expressions")}dt(t,e,i){let s;void 0===i?i=e:void 0!==e&&(s=e);const o=[],r=[];let n=0;for(const e of t)o[n]=s?s(e,n):n,r[n]=i(e,n),n++;return{values:r,keys:o}}render(t,e,i){return this.dt(t,e,i).values}update(t,[e,i,s]){const o=(t=>t._$AH)(t),{values:r,keys:n}=this.dt(e,i,s);if(!Array.isArray(o))return this.ut=n,r;const l=this.ut??=[],h=[];let a,c,d=0,u=o.length-1,p=0,v=r.length-1;for(;d<=u&&p<=v;)if(null===o[d])d++;else if(null===o[u])u--;else if(l[d]===n[p])h[p]=De(o[d],r[p]),d++,p++;else if(l[u]===n[v])h[v]=De(o[u],r[v]),u--,v--;else if(l[d]===n[v])h[v]=De(o[d],r[v]),Pe(t,h[v+1],o[d]),d++,v--;else if(l[u]===n[p])h[p]=De(o[u],r[p]),Pe(t,o[d],o[u]),u--,p++;else if(void 0===a&&(a=Ne(n,p,v),c=Ne(l,d,u)),a.has(l[d]))if(a.has(l[u])){const e=c.get(n[p]),i=void 0!==e?o[e]:null;if(null===i){const e=Pe(t,o[d]);De(e,r[p]),h[p]=e}else h[p]=De(i,r[p]),Pe(t,o[d],i),o[e]=null;p++}else Ve(o[u]),u--;else Ve(o[d]),d++;for(;p<=v;){const e=Pe(t,h[v+1]);De(e,r[p]),h[p++]=e}for(;d<=u;){const t=o[d++];null!==t&&Ve(t)}return this.ut=n,((t,e=Fe)=>{t._$AH=e})(t,h),H}});var Te=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Le=class extends wt{constructor(){super(...arguments),this.description="",this.selected=!1,this.disabled=!1,this._initialized=!1,this._handleSlotChange=()=>{this._initialized&&this.dispatchEvent(new Event("vsc-option-state-change",{bubbles:!0}))}}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._initialized=!0}))}willUpdate(t){this._initialized&&(t.has("description")||t.has("value")||t.has("selected")||t.has("disabled"))&&this.dispatchEvent(new Event("vsc-option-state-change",{bubbles:!0}))}render(){return U`<slot @slotchange=${this._handleSlotChange}></slot>`}};Le.styles=$t,Te([pt({type:String})],Le.prototype,"value",void 0),Te([pt({type:String})],Le.prototype,"description",void 0),Te([pt({type:Boolean,reflect:!0})],Le.prototype,"selected",void 0),Te([pt({type:Boolean,reflect:!0})],Le.prototype,"disabled",void 0),Le=Te([kt("vscode-option")],Le);const Ue=(t,e)=>{const i={match:!1,ranges:[]},s=t.toLowerCase(),o=e.toLowerCase(),r=s.split(" ");let n=0;return r.forEach(((e,s)=>{if(s>0&&(n+=r[s-1].length+1),i.match)return;const l=e.indexOf(o),h=o.length;0===l&&(i.match=!0,i.ranges.push([n+l,Math.min(n+l+h,t.length)]))})),i},Ge=(t,e)=>{const i={match:!1,ranges:[]};return 0===t.toLowerCase().indexOf(e.toLowerCase())&&(i.match=!0,i.ranges=[[0,e.length]]),i},He=(t,e)=>{const i={match:!1,ranges:[]},s=t.toLowerCase().indexOf(e.toLowerCase());return s>-1&&(i.match=!0,i.ranges=[[s,s+e.length]]),i},qe=(t,e)=>{const i={match:!1,ranges:[]};let s=0,o=0;const r=e.length-1,n=t.toLowerCase(),l=e.toLowerCase();for(let t=0;t<=r;t++){if(o=n.indexOf(l[t],s),-1===o)return{match:!1,ranges:[]};i.match=!0,i.ranges.push([o,o+1]),s=o+1}return i},We=t=>{const e=[];return" "===t?(e.push(U` `),e):(0===t.indexOf(" ")&&e.push(U` `),e.push(U`${t.trimStart().trimEnd()}`),t.lastIndexOf(" ")===t.length-1&&e.push(U` `),e)};class Ke{constructor(t){this._activeIndex=-1,this._options=[],this._filterPattern="",this._filterMethod="fuzzy",this._combobox=!1,this._indexByValue=new Map,this._indexByLabel=new Map,this._selectedIndex=-1,this._selectedIndexes=new Set,this._multiSelect=!1,this._numOfVisibleOptions=0,(this._host=t).addController(this)}hostConnected(){}get activeIndex(){return this._activeIndex}set activeIndex(t){this._activeIndex=t,this._host.requestUpdate()}get relativeActiveIndex(){return this._options[this._activeIndex]?.filteredIndex??-1}set comboboxMode(t){this._combobox=t,this._host.requestUpdate()}get comboboxMode(){return this._combobox}get multiSelect(){return this._multiSelect}set multiSelect(t){this._selectedIndex=-1,this._selectedIndexes.clear(),this._multiSelect=t,this._host.requestUpdate()}get selectedIndex(){return this._selectedIndex}set selectedIndex(t){-1!==this._selectedIndex&&(this._options[this._selectedIndex].selected??=!1);const e=this.getOptionByIndex(t);this._selectedIndex=e?t:-1,this._host.requestUpdate()}get selectedIndexes(){return Array.from(this._selectedIndexes)}set selectedIndexes(t){this._selectedIndexes.forEach((t=>{this._options[t].selected=!1})),this._selectedIndexes=new Set(t),t.forEach((t=>{void 0!==this._options[t]&&(this._options[t].selected=!0)})),this._host.requestUpdate()}set value(t){if(this._multiSelect){const e=t.map((t=>this._indexByValue.get(t))).filter((t=>void 0!==t));this._selectedIndexes=new Set(e)}else this._selectedIndex=this._indexByValue.get(t)??-1;this._host.requestUpdate()}get value(){return this._multiSelect?this._selectedIndexes.size>0?Array.from(this._selectedIndexes).map((t=>this._options[t].value)):[]:this._selectedIndex>-1?this._options[this._selectedIndex].value:""}set multiSelectValue(t){const e=t.map((t=>this._indexByValue.get(t))).filter((t=>void 0!==t));this._selectedIndexes=new Set(e)}get multiSelectValue(){return this._selectedIndexes.size>0?Array.from(this._selectedIndexes).map((t=>this._options[t].value)):[]}get filterPattern(){return this._filterPattern}set filterPattern(t){t!==this._filterPattern&&(this._filterPattern=t,this._updateState())}get filterMethod(){return this._filterMethod}set filterMethod(t){t!==this._filterMethod&&(this._filterMethod=t,this._updateState())}get options(){return this._options}get numOfVisibleOptions(){return this._numOfVisibleOptions}get numOptions(){return this._options.length}populate(t){this._indexByValue.clear(),this._indexByLabel.clear(),this._options=t.map(((t,e)=>(this._indexByValue.set(t.value??"",e),this._indexByLabel.set(t.label??"",e),{description:t.description??"",disabled:t.disabled??!1,label:t.label??"",selected:t.selected??!1,value:t.value??"",index:e,filteredIndex:e,ranges:[],visible:!0}))),this._numOfVisibleOptions=this._options.length}add(t){const e=this._options.length,{description:i,disabled:s,label:o,selected:r,value:n}=t;let l=!0,h=[];if(this._combobox&&""!==this._filterPattern){const t=this._searchByPattern(o??"");l=t.match,h=t.ranges}this._indexByValue.set(n??"",e),this._indexByLabel.set(o??"",e),r&&(this._selectedIndex=e,this._selectedIndexes.add(e),this._activeIndex=e),this._options.push({index:e,filteredIndex:e,description:i??"",disabled:s??!1,label:o??"",selected:r??!1,value:n??"",visible:l,ranges:h}),l&&(this._numOfVisibleOptions+=1)}clear(){this._options=[],this._indexByValue.clear(),this._indexByLabel.clear(),this._numOfVisibleOptions=0}getIsIndexSelected(t){return this._multiSelect?this._selectedIndexes.has(t):this._selectedIndex===t}expandMultiSelection(t){t.forEach((t=>{const e=this._indexByValue.get(t)??-1;-1!==e&&this._selectedIndexes.add(e)})),this._host.requestUpdate()}toggleActiveMultiselectOption(){const t=this._options[this._activeIndex]??null;if(!t)return;this._selectedIndexes.has(t.index)?this._selectedIndexes.delete(t.index):this._selectedIndexes.add(t.index),this._host.requestUpdate()}toggleOptionSelected(t){const e=this._selectedIndexes.has(t);this._options[t].selected=!this._options[t].selected,e?this._selectedIndexes.delete(t):this._selectedIndexes.add(t),this._host.requestUpdate()}getActiveOption(){return this._options[this._activeIndex]??null}getSelectedOption(){return this._options[this._selectedIndex]??null}getOptionByIndex(t){return this._options[t]??null}findOptionIndex(t){return this._indexByValue.get(t)??-1}getOptionByValue(t,e=!1){const i=this._indexByValue.get(t)??-1;return-1===i?null:e||this._options[i].visible?this._options[i]:null}getOptionByLabel(t){const e=this._indexByLabel.get(t)??-1;return-1===e?null:this._options[e]}next(t){let e=-1;for(let i=(t??this._activeIndex)+1;i<this._options.length;i++)if(this._options[i]&&!this._options[i].disabled&&this._options[i].visible){e=i;break}return e>-1?this._options[e]:null}prev(t){let e=-1;for(let i=(t??this._activeIndex)-1;i>=0;i--)if(this._options[i]&&!this._options[i].disabled&&this._options[i].visible){e=i;break}return e>-1?this._options[e]:null}activateDefault(){if(this._multiSelect){if(this._selectedIndexes.size>0){const t=this._selectedIndexes.values().next();this._activeIndex=t.value?t.value:0}}else this._selectedIndex>-1?this._activeIndex=this._selectedIndex:this._activeIndex=0;this._host.requestUpdate()}selectAll(){this._multiSelect&&(this._options.forEach(((t,e)=>{this._options[e].selected=!0,this._selectedIndexes.add(e)})),this._host.requestUpdate())}selectNone(){this._multiSelect&&(this._options.forEach(((t,e)=>{this._options[e].selected=!1})),this._selectedIndexes.clear(),this._host.requestUpdate())}_searchByPattern(t){let e;switch(this._filterMethod){case"startsWithPerTerm":e=Ue(t,this._filterPattern);break;case"startsWith":e=Ge(t,this._filterPattern);break;case"contains":e=He(t,this._filterPattern);break;default:e=qe(t,this._filterPattern)}return e}_updateState(){if(this._combobox&&""!==this._filterPattern){let t=-1;this._numOfVisibleOptions=0,this._options.forEach((({label:e},i)=>{const s=this._searchByPattern(e);this._options[i].visible=s.match,this._options[i].ranges=s.ranges,this._options[i].filteredIndex=s.match?++t:-1,s.match&&(this._numOfVisibleOptions+=1)}))}else this._options.forEach(((t,e)=>{this._options[e].visible=!0,this._options[e].ranges=[]})),this._numOfVisibleOptions=this._options.length;this._host.requestUpdate()}}const Je=[$t,n`
|
|
951
975
|
:host {
|
|
952
976
|
display: block;
|
|
953
977
|
position: relative;
|
|
@@ -1050,25 +1074,25 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1050
1074
|
.content {
|
|
1051
1075
|
overflow: hidden;
|
|
1052
1076
|
}
|
|
1053
|
-
`];var
|
|
1077
|
+
`];var Ye=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Xe=class extends wt{set scrollPos(t){this._scrollPos=t,this._updateScrollbar(),this._updateThumbPosition(),this.requestUpdate()}get scrollPos(){return this._scrollPos}get scrollMax(){return this._scrollableContainer?this._scrollableContainer.scrollHeight-this._scrollableContainer.clientHeight:0}constructor(){super(),this.alwaysVisible=!1,this.fastScrollSensitivity=5,this.minThumbSize=20,this.mouseWheelScrollSensitivity=1,this.shadow=!0,this.scrolled=!1,this._scrollPos=0,this._isDragging=!1,this._thumbHeight=0,this._thumbY=0,this._thumbVisible=!1,this._thumbFade=!1,this._thumbActive=!1,this._scrollThumbStartY=0,this._mouseStartY=0,this._scrollbarVisible=!0,this._scrollbarTrackZ=0,this._resizeObserverCallback=()=>{this._updateScrollbar(),this._updateThumbPosition()},this._handleSlotChange=()=>{this._updateScrollbar(),this._updateThumbPosition(),this._zIndexFix()},this._handleScrollThumbMouseMove=t=>{const e=this._scrollThumbStartY+(t.screenY-this._mouseStartY);this._thumbY=this._limitThumbPos(e),this.scrollPos=this._calculateScrollPosFromThumbPos(this._thumbY),this.dispatchEvent(new CustomEvent("vsc-scrollable-scroll",{detail:this.scrollPos}))},this._handleScrollThumbMouseUp=t=>{this._isDragging=!1,this._thumbActive=!1;const e=this.getBoundingClientRect(),{x:i,y:s,width:o,height:r}=e,{pageX:n,pageY:l}=t;(n>i+o||n<i||l>s+r||l<s)&&(this._thumbFade=!0,this._thumbVisible=!1),document.removeEventListener("mousemove",this._handleScrollThumbMouseMove),document.removeEventListener("mouseup",this._handleScrollThumbMouseUp)},this._handleComponentMouseOver=()=>{this._thumbVisible=!0,this._thumbFade=!1},this._handleComponentMouseOut=()=>{this._thumbActive||(this._thumbVisible=!1,this._thumbFade=!0)},this._handleComponentWheel=t=>{t.preventDefault();const e=t.altKey?this.mouseWheelScrollSensitivity*this.fastScrollSensitivity:this.mouseWheelScrollSensitivity;this.scrollPos=this._limitScrollPos(this.scrollPos+t.deltaY*e),this.dispatchEvent(new CustomEvent("vsc-scrollable-scroll",{detail:this.scrollPos}))},this._handleScrollableContainerScroll=t=>{t.currentTarget&&(this.scrollPos=t.currentTarget.scrollTop)},this.addEventListener("mouseover",this._handleComponentMouseOver),this.addEventListener("mouseout",this._handleComponentMouseOut),this.addEventListener("wheel",this._handleComponentWheel)}connectedCallback(){super.connectedCallback(),this._hostResizeObserver=new ResizeObserver(this._resizeObserverCallback),this._contentResizeObserver=new ResizeObserver(this._resizeObserverCallback),this.requestUpdate(),this.updateComplete.then((()=>{this._hostResizeObserver.observe(this),this._contentResizeObserver.observe(this._contentElement),this._updateThumbPosition()}))}disconnectedCallback(){super.disconnectedCallback(),this._hostResizeObserver.unobserve(this),this._hostResizeObserver.disconnect(),this._contentResizeObserver.unobserve(this._contentElement),this._contentResizeObserver.disconnect()}firstUpdated(t){this._updateThumbPosition()}_calcThumbHeight(){const t=this.offsetHeight,e=t*(t/(this._contentElement?.offsetHeight??0));return Math.max(this.minThumbSize,e)}_updateScrollbar(){const t=this._contentElement?.offsetHeight??0;this.offsetHeight>=t?this._scrollbarVisible=!1:(this._scrollbarVisible=!0,this._thumbHeight=this._calcThumbHeight()),this.requestUpdate()}_zIndexFix(){let t=0;this._assignedElements.forEach((e=>{if("style"in e){const i=window.getComputedStyle(e).zIndex;/([0-9-])+/g.test(i)&&(t=Number(i)>t?Number(i):t)}})),this._scrollbarTrackZ=t+1,this.requestUpdate()}_updateThumbPosition(){if(!this._scrollableContainer)return;this.scrolled=this.scrollPos>0;const t=this.offsetHeight,e=this._thumbHeight,i=this._contentElement.offsetHeight-t,s=this.scrollPos/i,o=t-e;this._thumbY=Math.min(s*(t-e),o)}_calculateScrollPosFromThumbPos(t){const e=this.getBoundingClientRect().height,i=t/(e-this._scrollThumbElement.getBoundingClientRect().height)*(this._contentElement.getBoundingClientRect().height-e);return this._limitScrollPos(i)}_limitScrollPos(t){return t<0?0:t>this.scrollMax?this.scrollMax:t}_limitThumbPos(t){const e=this.getBoundingClientRect().height,i=this._scrollThumbElement.getBoundingClientRect().height;return t<0?0:t>e-i?e-i:t}_handleScrollThumbMouseDown(t){const e=this.getBoundingClientRect(),i=this._scrollThumbElement.getBoundingClientRect();this._mouseStartY=t.screenY,this._scrollThumbStartY=i.top-e.top,this._isDragging=!0,this._thumbActive=!0,document.addEventListener("mousemove",this._handleScrollThumbMouseMove),document.addEventListener("mouseup",this._handleScrollThumbMouseUp)}_handleScrollbarTrackPress(t){t.target===t.currentTarget&&(this._thumbY=t.offsetY-this._thumbHeight/2,this.scrollPos=this._calculateScrollPosFromThumbPos(this._thumbY))}render(){return U`
|
|
1054
1078
|
<div
|
|
1055
1079
|
class="scrollable-container"
|
|
1056
|
-
.style=${
|
|
1057
|
-
.scrollTop=${this.
|
|
1080
|
+
.style=${Pt({userSelect:this._isDragging?"none":"auto"})}
|
|
1081
|
+
.scrollTop=${this.scrollPos}
|
|
1058
1082
|
@scroll=${this._handleScrollableContainerScroll}
|
|
1059
1083
|
>
|
|
1060
1084
|
<div
|
|
1061
|
-
class=${
|
|
1062
|
-
.style=${
|
|
1085
|
+
class=${jt({shadow:!0,visible:this.scrolled})}
|
|
1086
|
+
.style=${Pt({zIndex:String(this._scrollbarTrackZ)})}
|
|
1063
1087
|
></div>
|
|
1064
1088
|
${this._isDragging?U`<div class="prevent-interaction"></div>`:q}
|
|
1065
1089
|
<div
|
|
1066
|
-
class=${
|
|
1090
|
+
class=${jt({"scrollbar-track":!0,hidden:!this._scrollbarVisible})}
|
|
1067
1091
|
@mousedown=${this._handleScrollbarTrackPress}
|
|
1068
1092
|
>
|
|
1069
1093
|
<div
|
|
1070
|
-
class=${
|
|
1071
|
-
.style=${
|
|
1094
|
+
class=${jt({"scrollbar-thumb":!0,visible:!!this.alwaysVisible||this._thumbVisible,fade:!this.alwaysVisible&&this._thumbFade,active:this._thumbActive})}
|
|
1095
|
+
.style=${Pt({height:`${this._thumbHeight}px`,top:`${this._thumbY}px`})}
|
|
1072
1096
|
@mousedown=${this._handleScrollThumbMouseDown}
|
|
1073
1097
|
></div>
|
|
1074
1098
|
</div>
|
|
@@ -1076,11 +1100,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1076
1100
|
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
1077
1101
|
</div>
|
|
1078
1102
|
</div>
|
|
1079
|
-
`}};
|
|
1103
|
+
`}};Xe.styles=Je,Ye([pt({type:Boolean,reflect:!0,attribute:"always-visible"})],Xe.prototype,"alwaysVisible",void 0),Ye([pt({type:Number,attribute:"fast-scroll-sensitivity"})],Xe.prototype,"fastScrollSensitivity",void 0),Ye([pt({type:Number,attribute:"min-thumb-size"})],Xe.prototype,"minThumbSize",void 0),Ye([pt({type:Number,attribute:"mouse-wheel-scroll-sensitivity"})],Xe.prototype,"mouseWheelScrollSensitivity",void 0),Ye([pt({type:Boolean,reflect:!0})],Xe.prototype,"shadow",void 0),Ye([pt({type:Boolean,reflect:!0})],Xe.prototype,"scrolled",void 0),Ye([pt({type:Number,attribute:"scroll-pos"})],Xe.prototype,"scrollPos",null),Ye([vt()],Xe.prototype,"_isDragging",void 0),Ye([vt()],Xe.prototype,"_thumbHeight",void 0),Ye([vt()],Xe.prototype,"_thumbY",void 0),Ye([vt()],Xe.prototype,"_thumbVisible",void 0),Ye([vt()],Xe.prototype,"_thumbFade",void 0),Ye([vt()],Xe.prototype,"_thumbActive",void 0),Ye([ft(".content")],Xe.prototype,"_contentElement",void 0),Ye([ft(".scrollbar-thumb",!0)],Xe.prototype,"_scrollThumbElement",void 0),Ye([ft(".scrollable-container")],Xe.prototype,"_scrollableContainer",void 0),Ye([mt()],Xe.prototype,"_assignedElements",void 0),Xe=Ye([kt("vscode-scrollable")],Xe);var Ze=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Qe=22;class ti extends wt{set combobox(t){this._opts.comboboxMode=t}get combobox(){return this._opts.comboboxMode}set disabled(t){this._disabled=t,this.ariaDisabled=t?"true":"false",!0===t?(this._originalTabIndex=this.tabIndex,this.tabIndex=-1):(this.tabIndex=this._originalTabIndex??0,this._originalTabIndex=void 0),this.requestUpdate()}get disabled(){return this._disabled}set filter(t){let e;["contains","fuzzy","startsWith","startsWithPerTerm"].includes(t)?e=t:(console.warn(`[VSCode Webview Elements] Invalid filter: "${t}", fallback to default. Valid values are: "contains", "fuzzy", "startsWith", "startsWithPerm".`,this),e="fuzzy"),this._opts.filterMethod=e}get filter(){return this._opts.filterMethod}set options(t){this._opts.populate(t)}get options(){return this._opts.options.map((({label:t,value:e,description:i,selected:s,disabled:o})=>({label:t,value:e,description:i,selected:s,disabled:o})))}constructor(){super(),this.creatable=!1,this.label="",this.invalid=!1,this.focused=!1,this.open=!1,this.position="below",this._opts=new Ke(this),this._firstUpdateCompleted=!1,this._currentDescription="",this._filter="fuzzy",this._selectedIndexes=[],this._options=[],this._value="",this._values=[],this._isPlaceholderOptionActive=!1,this._isBeingFiltered=!1,this._optionListScrollPos=0,this._isHoverForbidden=!1,this._disabled=!1,this._originalTabIndex=void 0,this._onClickOutside=t=>{-1===t.composedPath().findIndex((t=>t===this))&&(this.open=!1)},this._onMouseMove=()=>{this._isHoverForbidden=!1,window.removeEventListener("mousemove",this._onMouseMove)},this._onOptionListScroll=t=>{this._optionListScrollPos=t.detail},this._onComponentKeyDown=t=>{[" ","ArrowUp","ArrowDown","Escape"].includes(t.key)&&(t.stopPropagation(),t.preventDefault()),"Enter"===t.key&&this._onEnterKeyDown(t)," "===t.key&&this._onSpaceKeyDown(),"Escape"===t.key&&this._onEscapeKeyDown(),"ArrowUp"===t.key&&this._onArrowUpKeyDown(),"ArrowDown"===t.key&&this._onArrowDownKeyDown()},this._onComponentFocus=()=>{this.focused=!0},this._onComponentBlur=()=>{this.focused=!1},this.addEventListener("vsc-option-state-change",(t=>{t.stopPropagation(),this._setStateFromSlottedElements(),this.requestUpdate()}))}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._onComponentKeyDown),this.addEventListener("focus",this._onComponentFocus),this.addEventListener("blur",this._onComponentBlur),this._setAutoFocus()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onComponentKeyDown),this.removeEventListener("focus",this._onComponentFocus),this.removeEventListener("blur",this._onComponentBlur)}firstUpdated(t){this._firstUpdateCompleted=!0}willUpdate(t){t.has("required")&&this._firstUpdateCompleted&&this._manageRequired()}update(t){super.update(t),t.has("open")&&(this.open?(this._opts.activateDefault(),this._scrollActiveElementToTop(),window.addEventListener("click",this._onClickOutside)):window.removeEventListener("click",this._onClickOutside))}get _filteredOptions(){return this.combobox&&""!==this._opts.filterPattern?((t,e,i)=>{const s=[];return t.forEach((t=>{let o;switch(i){case"startsWithPerTerm":o=Ue(t.label,e);break;case"startsWith":o=Ge(t.label,e);break;case"contains":o=He(t.label,e);break;default:o=qe(t.label,e)}o.match&&s.push({...t,ranges:o.ranges})})),s})(this._options,this._opts.filterPattern,this._filter):this._options}_setAutoFocus(){this.hasAttribute("autofocus")&&(this.tabIndex<0&&(this.tabIndex=0),this.combobox?this.updateComplete.then((()=>{this.shadowRoot?.querySelector(".combobox-input").focus()})):this.updateComplete.then((()=>{this.shadowRoot?.querySelector(".select-face").focus()})))}get _isSuggestedOptionVisible(){if(!this.combobox||!this.creatable)return!1;const t=null!==this._opts.getOptionByValue(this._opts.filterPattern),e=this._opts.filterPattern.length>0;return!t&&e}_manageRequired(){}_setStateFromSlottedElements(){const t=this._assignedOptions??[];this._opts.clear(),t.forEach((t=>{const{innerText:e,description:i,disabled:s}=t,o="string"==typeof t.value?t.value:e.trim(),r=t.selected??!1,n={label:e.trim(),value:o,description:i,selected:r,disabled:s};this._opts.add(n)}))}_createSuggestedOption(){const t=this._opts.numOptions,e=document.createElement("vscode-option");return e.value=this._opts.filterPattern,lt(this._opts.filterPattern,e),this.appendChild(e),t}_dispatchChangeEvent(){this.dispatchEvent(new Event("change")),this.dispatchEvent(new Event("input"))}async _createAndSelectSuggestedOption(){}_toggleComboboxDropdown(){this._opts.filterPattern="",this.open=!this.open}_scrollActiveElementToTop(){this._optionListScrollPos=Math.floor(this._opts.relativeActiveIndex*Qe)}async _adjustOptionListScrollPos(t,e){let i=this._opts.numOfVisibleOptions;if(this._isSuggestedOptionVisible&&(i+=1),i<=10)return;this._isHoverForbidden=!0,window.addEventListener("mousemove",this._onMouseMove);const s=this._optionListScrollPos,o=e*Qe,r=o>=s&&o<=s+220-Qe;"down"===t&&(r||(this._optionListScrollPos=e*Qe-198)),"up"===t&&(r||(this._optionListScrollPos=Math.floor(this._opts.relativeActiveIndex*Qe)))}_onFaceClick(){this.open=!this.open}_onComboboxButtonClick(){this._toggleComboboxDropdown()}_onComboboxButtonKeyDown(t){"Enter"===t.key&&this._toggleComboboxDropdown()}_onOptionMouseOver(t){if(this._isHoverForbidden)return;const e=t.target;e.matches(".option")&&(e.matches(".placeholder")?(this._isPlaceholderOptionActive=!0,this._opts.activeIndex=-1):(this._isPlaceholderOptionActive=!1,this._opts.activeIndex=+e.dataset.index))}_onPlaceholderOptionMouseOut(){this._isPlaceholderOptionActive=!1}_onNoOptionsClick(t){t.stopPropagation()}_onEnterKeyDown(t){this._isBeingFiltered=!1;!!t?.composedPath&&t.composedPath().find((t=>!!t.matches&&t.matches("vscode-button.button-accept")))}_onSpaceKeyDown(){this.open||(this.open=!0)}_onArrowUpKeyDown(){if(this.open){if(this._opts.activeIndex<=0&&(!this.combobox||!this.creatable))return;if(this._isPlaceholderOptionActive){const t=this._opts.numOfVisibleOptions-1;this._opts.activeIndex=t,this._isPlaceholderOptionActive=!1}else{const t=this._opts.prev();if(null!==t){this._opts.activeIndex=t?.index??-1;const e=t?.filteredIndex??-1;e>-1&&this._adjustOptionListScrollPos("up",e)}}}else this.open=!0,this._opts.activateDefault()}_onArrowDownKeyDown(){let t=this._opts.numOfVisibleOptions;const e=this._isSuggestedOptionVisible;if(e&&(t+=1),this.open){if(this._isPlaceholderOptionActive&&-1===this._opts.activeIndex)return;const i=this._opts.next();if(e&&null===i)this._isPlaceholderOptionActive=!0,this._adjustOptionListScrollPos("down",t-1),this._opts.activeIndex=-1;else if(null!==i){const t=i?.filteredIndex??-1;this._opts.activeIndex=i?.index??-1,t>-1&&this._adjustOptionListScrollPos("down",t)}}else this.open=!0,this._opts.activateDefault()}_onEscapeKeyDown(){this.open=!1}_onSlotChange(){this._setStateFromSlottedElements(),this.requestUpdate()}_onComboboxInputFocus(t){t.target.select(),this._isBeingFiltered=!1,this._opts.filterPattern=""}_onComboboxInputBlur(){this._isBeingFiltered=!1}_onComboboxInputInput(t){this._isBeingFiltered=!0,this._opts.filterPattern=t.target.value,this._opts.activeIndex=-1,this.open=!0}_onComboboxInputClick(){this._isBeingFiltered=""!==this._opts.filterPattern,this.open=!0}_onComboboxInputSpaceKeyDown(t){" "===t.key&&t.stopPropagation()}_onOptionClick(t){this._isBeingFiltered=!1}_renderCheckbox(t,e){return U`<span class=${jt({"checkbox-icon":!0,checked:t})}>${Ie}</span
|
|
1080
1104
|
><span class="option-label">${e}</span>`}_renderOptions(){const t=this._opts.options;return U`
|
|
1081
1105
|
<ul
|
|
1082
|
-
aria-label=${
|
|
1083
|
-
aria-multiselectable=${
|
|
1106
|
+
aria-label=${Mt(this.label??void 0)}
|
|
1107
|
+
aria-multiselectable=${Mt(this._opts.multiSelect?"true":void 0)}
|
|
1084
1108
|
class="options"
|
|
1085
1109
|
id="select-listbox"
|
|
1086
1110
|
role="listbox"
|
|
@@ -1088,10 +1112,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1088
1112
|
@click=${this._onOptionClick}
|
|
1089
1113
|
@mouseover=${this._onOptionMouseOver}
|
|
1090
1114
|
>
|
|
1091
|
-
${
|
|
1115
|
+
${Re(t,(t=>t.index),((t,e)=>{if(!t.visible)return q;const i=t.index===this._opts.activeIndex&&!t.disabled,s=this._opts.getIsIndexSelected(t.index),o={active:i,disabled:t.disabled,option:!0,selected:s},r=t.ranges?.length?((t,e)=>{const i=[],s=e.length;return s<1?U`${t}`:(e.forEach(((o,r)=>{const n=t.substring(o[0],o[1]);0===r&&0!==o[0]&&i.push(...We(t.substring(0,e[0][0]))),r>0&&r<s&&o[0]-e[r-1][1]!=0&&i.push(...We(t.substring(e[r-1][1],o[0]))),i.push(U`<b>${We(n)}</b>`),r===s-1&&o[1]<t.length&&i.push(...We(t.substring(o[1],t.length)))})),i)})(t.label,t.ranges??[]):t.label;return U`
|
|
1092
1116
|
<li
|
|
1093
1117
|
aria-selected=${s?"true":"false"}
|
|
1094
|
-
class=${
|
|
1118
|
+
class=${jt(o)}
|
|
1095
1119
|
data-index=${t.index}
|
|
1096
1120
|
data-filtered-index=${e}
|
|
1097
1121
|
id=${`op-${t.index}`}
|
|
@@ -1104,14 +1128,14 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1104
1128
|
${this._renderPlaceholderOption(this._opts.numOfVisibleOptions<1)}
|
|
1105
1129
|
</ul>
|
|
1106
1130
|
`}_renderPlaceholderOption(t){if(!this.combobox)return q;return this._opts.getOptionByLabel(this._opts.filterPattern)?q:this.creatable&&this._opts.filterPattern.length>0?U`<li
|
|
1107
|
-
class=${
|
|
1131
|
+
class=${jt({option:!0,placeholder:!0,active:this._isPlaceholderOptionActive})}
|
|
1108
1132
|
@mouseout=${this._onPlaceholderOptionMouseOut}
|
|
1109
1133
|
>
|
|
1110
1134
|
Add "${this._opts.filterPattern}"
|
|
1111
1135
|
</li>`:t?U`<li class="no-options" @click=${this._onNoOptionsClick}>
|
|
1112
1136
|
No options
|
|
1113
|
-
</li>`:q}_renderDescription(){const t=this._opts.getActiveOption();if(!t)return q;const{description:e}=t;return e?U`<div class="description">${e}</div>`:q}_renderSelectFace(){return U`${q}`}_renderComboboxFace(){return U`${q}`}_renderDropdownControls(){return U`${q}`}_renderDropdown(){const t={dropdown:!0,multiple:this._opts.multiSelect,open:this.open},e=this._isSuggestedOptionVisible||0===this._opts.numOfVisibleOptions?this._opts.numOfVisibleOptions+1:this._opts.numOfVisibleOptions,i=Math.min(e*
|
|
1114
|
-
<div class=${
|
|
1137
|
+
</li>`:q}_renderDescription(){const t=this._opts.getActiveOption();if(!t)return q;const{description:e}=t;return e?U`<div class="description">${e}</div>`:q}_renderSelectFace(){return U`${q}`}_renderComboboxFace(){return U`${q}`}_renderDropdownControls(){return U`${q}`}_renderDropdown(){const t={dropdown:!0,multiple:this._opts.multiSelect,open:this.open},e=this._isSuggestedOptionVisible||0===this._opts.numOfVisibleOptions?this._opts.numOfVisibleOptions+1:this._opts.numOfVisibleOptions,i=Math.min(e*Qe,220);return U`
|
|
1138
|
+
<div class=${jt(t)}>
|
|
1115
1139
|
${"above"===this.position?this._renderDescription():q}
|
|
1116
1140
|
<vscode-scrollable
|
|
1117
1141
|
always-visible
|
|
@@ -1120,13 +1144,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1120
1144
|
tabindex="-1"
|
|
1121
1145
|
@vsc-scrollable-scroll=${this._onOptionListScroll}
|
|
1122
1146
|
.scrollPos=${this._optionListScrollPos}
|
|
1123
|
-
.style=${
|
|
1147
|
+
.style=${Pt({height:`${i}px`})}
|
|
1124
1148
|
>
|
|
1125
1149
|
${this._renderOptions()} ${this._renderDropdownControls()}
|
|
1126
1150
|
</vscode-scrollable>
|
|
1127
1151
|
${"below"===this.position?this._renderDescription():q}
|
|
1128
1152
|
</div>
|
|
1129
|
-
`}}
|
|
1153
|
+
`}}Ze([pt({type:Boolean,reflect:!0})],ti.prototype,"creatable",void 0),Ze([pt({type:Boolean,reflect:!0})],ti.prototype,"combobox",null),Ze([pt({reflect:!0})],ti.prototype,"label",void 0),Ze([pt({type:Boolean,reflect:!0})],ti.prototype,"disabled",null),Ze([pt({type:Boolean,reflect:!0})],ti.prototype,"invalid",void 0),Ze([pt()],ti.prototype,"filter",null),Ze([pt({type:Boolean,reflect:!0})],ti.prototype,"focused",void 0),Ze([pt({type:Boolean,reflect:!0})],ti.prototype,"open",void 0),Ze([pt({type:Array})],ti.prototype,"options",null),Ze([pt({reflect:!0})],ti.prototype,"position",void 0),Ze([mt({flatten:!0,selector:"vscode-option"})],ti.prototype,"_assignedOptions",void 0),Ze([vt()],ti.prototype,"_currentDescription",void 0),Ze([vt()],ti.prototype,"_filter",void 0),Ze([vt()],ti.prototype,"_filteredOptions",null),Ze([vt()],ti.prototype,"_selectedIndexes",void 0),Ze([vt()],ti.prototype,"_options",void 0),Ze([vt()],ti.prototype,"_value",void 0),Ze([vt()],ti.prototype,"_values",void 0),Ze([vt()],ti.prototype,"_isPlaceholderOptionActive",void 0),Ze([vt()],ti.prototype,"_isBeingFiltered",void 0),Ze([vt()],ti.prototype,"_optionListScrollPos",void 0);var ei=[$t,n`
|
|
1130
1154
|
:host {
|
|
1131
1155
|
display: inline-block;
|
|
1132
1156
|
max-width: 100%;
|
|
@@ -1329,16 +1353,14 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1329
1353
|
}
|
|
1330
1354
|
|
|
1331
1355
|
.option {
|
|
1332
|
-
align-items: center;
|
|
1333
1356
|
box-sizing: border-box;
|
|
1334
1357
|
color: var(--vscode-foreground, #cccccc);
|
|
1335
1358
|
cursor: pointer;
|
|
1336
|
-
display: flex;
|
|
1337
1359
|
font-family: var(--vscode-font-family, sans-serif);
|
|
1338
1360
|
font-size: var(--vscode-font-size, 13px);
|
|
1339
1361
|
font-weight: var(--vscode-font-weight, normal);
|
|
1340
1362
|
height: 22px;
|
|
1341
|
-
line-height:
|
|
1363
|
+
line-height: 20px;
|
|
1342
1364
|
min-height: calc(var(--vscode-font-size) * 1.3);
|
|
1343
1365
|
padding: 1px 3px;
|
|
1344
1366
|
user-select: none;
|
|
@@ -1346,6 +1368,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1346
1368
|
outline-offset: -1px;
|
|
1347
1369
|
outline-style: solid;
|
|
1348
1370
|
outline-width: 1px;
|
|
1371
|
+
overflow: hidden;
|
|
1372
|
+
white-space: nowrap;
|
|
1373
|
+
text-overflow: ellipsis;
|
|
1349
1374
|
}
|
|
1350
1375
|
|
|
1351
1376
|
.option b {
|
|
@@ -1515,7 +1540,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1515
1540
|
:host([position='above']) .description {
|
|
1516
1541
|
border-width: 0 0 1px;
|
|
1517
1542
|
}
|
|
1518
|
-
`],
|
|
1543
|
+
`],ii=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let si=class extends ti{set selectedIndexes(t){this._opts.selectedIndexes=t}get selectedIndexes(){return this._opts.selectedIndexes}set value(t){this._opts.multiSelectValue=t,this._opts.selectedIndexes.length>0?this._requestedValueToSetLater=[]:this._requestedValueToSetLater=Array.isArray(t)?t:[t],this._setFormValue(),this._manageRequired()}get value(){return this._opts.multiSelectValue}get form(){return this._internals.form}get type(){return"select-multiple"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}selectAll(){this._opts.selectAll()}selectNone(){this._opts.selectNone()}constructor(){super(),this.defaultValue=[],this.required=!1,this.name=void 0,this._requestedValueToSetLater=[],this._onOptionClick=t=>{const e=t.composedPath().find((t=>"matches"in t&&t.matches("li.option")));if(!e)return;if(e.classList.contains("placeholder"))return void this._createAndSelectSuggestedOption();const i=Number(e.dataset.index);this._opts.toggleOptionSelected(i),this._setFormValue(),this._manageRequired(),this._dispatchChangeEvent()},this._opts.multiSelect=!0,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._setDefaultValue(),this._manageRequired()}))}formResetCallback(){this.updateComplete.then((()=>{this.value=this.defaultValue}))}formStateRestoreCallback(t,e){const i=Array.from(t.entries()).map((t=>String(t[1])));this.updateComplete.then((()=>{this.value=i}))}_setDefaultValue(){if(Array.isArray(this.defaultValue)&&this.defaultValue.length>0){const t=this.defaultValue.map((t=>String(t)));this.value=t}}_dispatchChangeEvent(){super._dispatchChangeEvent()}_onFaceClick(){super._onFaceClick(),this._opts.activeIndex=0}_toggleComboboxDropdown(){super._toggleComboboxDropdown(),this._opts.activeIndex=-1}_manageRequired(){const{value:t}=this;0===t.length&&this.required?this._internals.setValidity({valueMissing:!0},"Please select an item in the list.",this._faceElement):this._internals.setValidity({})}_setFormValue(){const t=new FormData;this._values.forEach((e=>{t.append(this.name??"",e)})),this._internals.setFormValue(t)}async _createAndSelectSuggestedOption(){super._createAndSelectSuggestedOption();const t=this._createSuggestedOption();await this.updateComplete,this.selectedIndexes=[...this.selectedIndexes,t],this._dispatchChangeEvent();const e=new CustomEvent("vsc-multi-select-create-option",{detail:{value:this._opts.getOptionByIndex(t)?.value??""}});this.dispatchEvent(e),this.open=!1,this._isPlaceholderOptionActive=!1}_onSlotChange(){super._onSlotChange(),this._requestedValueToSetLater.length>0&&(this._opts.expandMultiSelection(this._requestedValueToSetLater),this._requestedValueToSetLater=this._requestedValueToSetLater.filter((t=>-1===this._opts.findOptionIndex(t))))}_onEnterKeyDown(t){super._onEnterKeyDown(t),this.open?this._isPlaceholderOptionActive?this._createAndSelectSuggestedOption():(this._opts.toggleActiveMultiselectOption(),this._setFormValue(),this._manageRequired(),this._dispatchChangeEvent()):(this._opts.filterPattern="",this.open=!0)}_onMultiAcceptClick(){this.open=!1}_onMultiDeselectAllClick(){this._opts.selectedIndexes=[],this._values=[],this._options=this._options.map((t=>({...t,selected:!1}))),this._manageRequired(),this._dispatchChangeEvent()}_onMultiSelectAllClick(){this._opts.selectedIndexes=[],this._values=[],this._options=this._options.map((t=>({...t,selected:!0}))),this._options.forEach(((t,e)=>{this._selectedIndexes.push(e),this._values.push(t.value),this._dispatchChangeEvent()})),this._setFormValue(),this._manageRequired()}_renderLabel(){return 0===this._opts.selectedIndexes.length?U`<span class="select-face-badge no-item">0 Selected</span>`:U`<span class="select-face-badge"
|
|
1519
1544
|
>${this._opts.selectedIndexes.length} Selected</span
|
|
1520
1545
|
>`}_renderComboboxFace(){let t="";if(this._isBeingFiltered)t=this._opts.filterPattern;else{const e=this._opts.getSelectedOption();t=e?.label??""}const e=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"",i=this.open?"true":"false";return U`
|
|
1521
1546
|
<div class="combobox-face face">
|
|
@@ -1526,7 +1551,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1526
1551
|
aria-controls="select-listbox"
|
|
1527
1552
|
aria-expanded=${i}
|
|
1528
1553
|
aria-haspopup="listbox"
|
|
1529
|
-
aria-label=${
|
|
1554
|
+
aria-label=${Mt(this.label)}
|
|
1530
1555
|
class="combobox-input"
|
|
1531
1556
|
role="combobox"
|
|
1532
1557
|
spellcheck="false"
|
|
@@ -1547,21 +1572,21 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1547
1572
|
@keydown=${this._onComboboxButtonKeyDown}
|
|
1548
1573
|
tabindex="-1"
|
|
1549
1574
|
>
|
|
1550
|
-
${
|
|
1575
|
+
${Ee}
|
|
1551
1576
|
</button>
|
|
1552
1577
|
</div>
|
|
1553
1578
|
`}_renderSelectFace(){const t=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"",e=this.open?"true":"false";return U`
|
|
1554
1579
|
<div
|
|
1555
|
-
aria-activedescendant=${
|
|
1580
|
+
aria-activedescendant=${Mt(this._opts.multiSelect?void 0:t)}
|
|
1556
1581
|
aria-controls="select-listbox"
|
|
1557
|
-
aria-expanded=${
|
|
1582
|
+
aria-expanded=${Mt(this._opts.multiSelect?void 0:e)}
|
|
1558
1583
|
aria-haspopup="listbox"
|
|
1559
|
-
aria-label=${
|
|
1584
|
+
aria-label=${Mt(this.label??void 0)}
|
|
1560
1585
|
class="select-face face multiselect"
|
|
1561
1586
|
@click=${this._onFaceClick}
|
|
1562
1587
|
.tabIndex=${this.disabled?-1:0}
|
|
1563
1588
|
>
|
|
1564
|
-
${this._renderLabel()} ${
|
|
1589
|
+
${this._renderLabel()} ${Ee}
|
|
1565
1590
|
</div>
|
|
1566
1591
|
`}_renderDropdownControls(){return this._filteredOptions.length>0?U`
|
|
1567
1592
|
<div class="dropdown-controls">
|
|
@@ -1595,9 +1620,8 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1595
1620
|
${this.combobox?this._renderComboboxFace():this._renderSelectFace()}
|
|
1596
1621
|
${this._renderDropdown()}
|
|
1597
1622
|
</div>
|
|
1598
|
-
`}};
|
|
1623
|
+
`}};si.styles=ei,si.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},si.formAssociated=!0,ii([pt({type:Array,attribute:"default-value"})],si.prototype,"defaultValue",void 0),ii([pt({type:Boolean,reflect:!0})],si.prototype,"required",void 0),ii([pt({reflect:!0})],si.prototype,"name",void 0),ii([pt({type:Array,attribute:!1})],si.prototype,"selectedIndexes",null),ii([pt({type:Array})],si.prototype,"value",null),ii([ft(".face")],si.prototype,"_faceElement",void 0),si=ii([kt("vscode-multi-select")],si);const oi=[$t,n`
|
|
1599
1624
|
:host {
|
|
1600
|
-
align-items: center;
|
|
1601
1625
|
display: block;
|
|
1602
1626
|
height: 28px;
|
|
1603
1627
|
margin: 0;
|
|
@@ -1641,7 +1665,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1641
1665
|
transform: rotate(1080deg);
|
|
1642
1666
|
}
|
|
1643
1667
|
}
|
|
1644
|
-
`];var
|
|
1668
|
+
`];var ri=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let ni=class extends wt{constructor(){super(...arguments),this.ariaLabel="Loading",this.ariaLive="assertive",this.role="alert"}render(){return U`<svg class="progress" part="progress" viewBox="0 0 16 16">
|
|
1645
1669
|
<circle
|
|
1646
1670
|
class="background"
|
|
1647
1671
|
part="background"
|
|
@@ -1656,7 +1680,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1656
1680
|
cy="8px"
|
|
1657
1681
|
r="7px"
|
|
1658
1682
|
></circle>
|
|
1659
|
-
</svg>`}};
|
|
1683
|
+
</svg>`}};ni.styles=oi,ri([pt({reflect:!0,attribute:"aria-label"})],ni.prototype,"ariaLabel",void 0),ri([pt({reflect:!0,attribute:"aria-live"})],ni.prototype,"ariaLive",void 0),ri([pt({reflect:!0})],ni.prototype,"role",void 0),ni=ri([kt("vscode-progress-ring")],ni);const li=[$t,Yt,n`
|
|
1660
1684
|
:host(:invalid) .icon,
|
|
1661
1685
|
:host([invalid]) .icon {
|
|
1662
1686
|
background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
@@ -1683,7 +1707,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1683
1707
|
outline: 1px solid var(--vscode-focusBorder, #0078d4);
|
|
1684
1708
|
outline-offset: -1px;
|
|
1685
1709
|
}
|
|
1686
|
-
`];var
|
|
1710
|
+
`];var hi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let ai=class extends(Jt(Wt)){constructor(){super(),this.autofocus=!1,this.checked=!1,this.defaultChecked=!1,this.invalid=!1,this.name="",this.value="",this.disabled=!1,this.required=!1,this.role="radio",this.tabIndex=0,this._slottedText="",this.type="radio",this._handleClick=()=>{this.disabled||this.checked||(this._checkButton(),this._handleValueChange(),this.dispatchEvent(new Event("change",{bubbles:!0})))},this._handleKeyDown=t=>{this.disabled||"Enter"!==t.key&&" "!==t.key||(t.preventDefault()," "!==t.key||this.checked||(this.checked=!0,this._handleValueChange(),this.dispatchEvent(new Event("change",{bubbles:!0}))),"Enter"===t.key&&this._internals.form?.requestSubmit())},this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._handleKeyDown),this.addEventListener("click",this._handleClick),this._handleValueChange()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._handleKeyDown),this.removeEventListener("click",this._handleClick)}update(t){super.update(t),t.has("checked")&&this._handleValueChange(),t.has("required")&&this._handleValueChange()}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}formResetCallback(){this._getRadios().forEach((t=>{t.checked=t.defaultChecked})),this.updateComplete.then((()=>{this._handleValueChange()}))}formStateRestoreCallback(t,e){this.value===t&&""!==t&&(this.checked=!0)}_getRadios(){const t=this.getRootNode({composed:!0});if(!t)return[];const e=t.querySelectorAll(`vscode-radio[name="${this.name}"]`);return Array.from(e)}_uncheckOthers(t){t.forEach((t=>{t!==this&&(t.checked=!1)}))}_checkButton(){const t=this._getRadios();this.checked=!0,t.forEach((t=>{t!==this&&(t.checked=!1)}))}setComponentValidity(t){t?this._internals.setValidity({}):this._internals.setValidity({valueMissing:!0},"Please select one of these options.",this._inputEl)}_setGroupValidity(t,e){this.updateComplete.then((()=>{t.forEach((t=>{t.setComponentValidity(e)}))}))}_setActualFormValue(){let t="";t=this.checked?this.value?this.value:"on":null,this._internals.setFormValue(t)}_handleValueChange(){const t=this._getRadios(),e=t.some((t=>t.required));if(this._setActualFormValue(),this.checked)this._uncheckOthers(t),this._setGroupValidity(t,!0);else{const i=!!t.find((t=>t.checked)),s=e&&!i;this._setGroupValidity(t,!s)}}render(){const t=jt({icon:!0,checked:this.checked}),e=jt({"label-inner":!0,"is-slot-empty":""===this._slottedText});return U`
|
|
1687
1711
|
<div class="wrapper">
|
|
1688
1712
|
<input
|
|
1689
1713
|
?autofocus=${this.autofocus}
|
|
@@ -1702,7 +1726,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1702
1726
|
</span>
|
|
1703
1727
|
</label>
|
|
1704
1728
|
</div>
|
|
1705
|
-
`}};
|
|
1729
|
+
`}};ai.styles=li,ai.formAssociated=!0,ai.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},hi([pt({type:Boolean,reflect:!0})],ai.prototype,"autofocus",void 0),hi([pt({type:Boolean,reflect:!0})],ai.prototype,"checked",void 0),hi([pt({type:Boolean,reflect:!0,attribute:"default-checked"})],ai.prototype,"defaultChecked",void 0),hi([pt({type:Boolean,reflect:!0})],ai.prototype,"invalid",void 0),hi([pt({reflect:!0})],ai.prototype,"name",void 0),hi([pt()],ai.prototype,"value",void 0),hi([pt({type:Boolean,reflect:!0})],ai.prototype,"disabled",void 0),hi([pt({type:Boolean,reflect:!0})],ai.prototype,"required",void 0),hi([pt({reflect:!0})],ai.prototype,"role",void 0),hi([pt({type:Number,reflect:!0})],ai.prototype,"tabIndex",void 0),hi([vt()],ai.prototype,"_slottedText",void 0),hi([ft("#input")],ai.prototype,"_inputEl",void 0),hi([pt()],ai.prototype,"type",void 0),ai=hi([kt("vscode-radio")],ai);const ci=[$t,n`
|
|
1706
1730
|
:host {
|
|
1707
1731
|
display: block;
|
|
1708
1732
|
}
|
|
@@ -1732,26 +1756,26 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1732
1756
|
:host([variant='vertical']) ::slotted(vscode-radio:last-child) {
|
|
1733
1757
|
margin-bottom: 0;
|
|
1734
1758
|
}
|
|
1735
|
-
`];var
|
|
1759
|
+
`];var di=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let ui=class extends wt{constructor(){super(...arguments),this.variant="horizontal",this.role="radiogroup",this._focusedRadio=-1,this._checkedRadio=-1,this._firstContentLoaded=!1,this._onKeyDownBound=this._onKeyDown.bind(this)}connectedCallback(){super.connectedCallback(),this.addEventListener("keydown",this._onKeyDownBound)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onKeyDownBound)}_uncheckPreviousChecked(t,e){-1!==t&&(this._radios[t].checked=!1),-1!==e&&(this._radios[e].tabIndex=-1)}_afterCheck(){this._focusedRadio=this._checkedRadio,this._radios[this._checkedRadio].checked=!0,this._radios[this._checkedRadio].tabIndex=0,this._radios[this._checkedRadio].focus()}_checkPrev(){const t=this._radios.findIndex((t=>t.checked)),e=this._radios.findIndex((t=>t.focused)),i=-1!==e?e:t;this._uncheckPreviousChecked(t,e),this._checkedRadio=-1===i?this._radios.length-1:i-1>=0?i-1:this._radios.length-1,this._afterCheck()}_checkNext(){const t=this._radios.findIndex((t=>t.checked)),e=this._radios.findIndex((t=>t.focused)),i=-1!==e?e:t;this._uncheckPreviousChecked(t,e),-1===i?this._checkedRadio=0:i+1<this._radios.length?this._checkedRadio=i+1:this._checkedRadio=0,this._afterCheck()}_onKeyDown(t){const{key:e}=t;["ArrowLeft","ArrowUp","ArrowRight","ArrowDown"].includes(e)&&t.preventDefault(),"ArrowRight"!==e&&"ArrowDown"!==e||this._checkNext(),"ArrowLeft"!==e&&"ArrowUp"!==e||this._checkPrev()}_onChange(t){const e=this._radios.findIndex((e=>e===t.target));-1!==e&&(-1!==this._focusedRadio&&(this._radios[this._focusedRadio].tabIndex=-1),-1!==this._checkedRadio&&this._checkedRadio!==e&&(this._radios[this._checkedRadio].checked=!1),this._focusedRadio=e,this._checkedRadio=e,this._radios[e].tabIndex=0)}_onSlotChange(){if(!this._firstContentLoaded){const t=this._radios.findIndex((t=>t.autofocus));t>-1&&(this._focusedRadio=t),this._firstContentLoaded=!0}this._radios.forEach(((t,e)=>{this._focusedRadio>-1?t.tabIndex=e===this._focusedRadio?0:-1:t.tabIndex=0===e?0:-1}))}render(){return U`
|
|
1736
1760
|
<div class="wrapper">
|
|
1737
1761
|
<slot
|
|
1738
1762
|
@slotchange=${this._onSlotChange}
|
|
1739
1763
|
@vsc-change=${this._onChange}
|
|
1740
1764
|
></slot>
|
|
1741
1765
|
</div>
|
|
1742
|
-
`}};
|
|
1766
|
+
`}};ui.styles=ci,di([pt({reflect:!0})],ui.prototype,"variant",void 0),di([pt({reflect:!0})],ui.prototype,"role",void 0),di([mt({selector:"vscode-radio"})],ui.prototype,"_radios",void 0),di([vt()],ui.prototype,"_focusedRadio",void 0),di([vt()],ui.prototype,"_checkedRadio",void 0),ui=di([kt("vscode-radio-group")],ui);var pi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let vi=class extends ti{set selectedIndex(t){this._opts.selectedIndex=t;const e=this._opts.getOptionByIndex(t);e?(this._opts.activeIndex=t,this._value=e.value,this._internals.setFormValue(this._value),this._manageRequired()):(this._value="",this._internals.setFormValue(""),this._manageRequired())}get selectedIndex(){return this._opts.selectedIndex}set value(t){this._opts.value=t,this._opts.selectedIndex>-1?this._requestedValueToSetLater="":this._requestedValueToSetLater=t,this._internals.setFormValue(this._value),this._manageRequired()}get value(){return this._opts.value}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}updateInputValue(){if(!this.combobox)return;const t=this.renderRoot.querySelector(".combobox-input");if(t){const e=this._opts.getSelectedOption();t.value=e?.label??""}}constructor(){super(),this.defaultValue="",this.name=void 0,this.required=!1,this._requestedValueToSetLater="",this._opts.multiSelect=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._manageRequired()}))}formResetCallback(){this.value=this.defaultValue}formStateRestoreCallback(t,e){this.updateComplete.then((()=>{this.value=t}))}get type(){return"select-one"}get form(){return this._internals.form}async _createAndSelectSuggestedOption(){const t=this._createSuggestedOption();await this.updateComplete,this._opts.selectedIndex=t,this._dispatchChangeEvent();const e=new CustomEvent("vsc-single-select-create-option",{detail:{value:this._opts.getOptionByIndex(t)?.value??""}});this.dispatchEvent(e),this.open=!1,this._isPlaceholderOptionActive=!1}_setStateFromSlottedElements(){super._setStateFromSlottedElements(),this.combobox||0!==this._opts.selectedIndexes.length||(this._opts.selectedIndex=this._opts.options.length>0?0:-1)}_onSlotChange(){if(super._onSlotChange(),this._requestedValueToSetLater){const t=this._opts.getOptionByValue(this._requestedValueToSetLater);t&&(this._opts.selectedIndex=t.index,this._requestedValueToSetLater="")}this._opts.selectedIndex>-1&&this._opts.numOptions>0?(this._internals.setFormValue(this._opts.value),this._manageRequired()):(this._internals.setFormValue(null),this._manageRequired())}_onEnterKeyDown(t){super._onEnterKeyDown(t);let e=!1;this.combobox?this.open?this._isPlaceholderOptionActive?this._createAndSelectSuggestedOption():(e=this._opts.activeIndex!==this._opts.selectedIndex,this._opts.selectedIndex=this._opts.activeIndex,this.open=!1):(this.open=!0,this._scrollActiveElementToTop()):this.open?(e=this._opts.activeIndex!==this._opts.selectedIndex,this._opts.selectedIndex=this._opts.activeIndex,this.open=!1):(this.open=!0,this._scrollActiveElementToTop()),e&&(this._dispatchChangeEvent(),this.updateInputValue(),this._internals.setFormValue(this._opts.value),this._manageRequired())}_onOptionClick(t){super._onOptionClick(t);const e=t.composedPath().find((t=>{if("matches"in t)return t.matches("li.option")}));if(!e||e.matches(".disabled"))return;e.classList.contains("placeholder")?this.creatable&&this._createAndSelectSuggestedOption():(this._opts.selectedIndex=Number(e.dataset.index),this.open=!1,this._internals.setFormValue(this._value),this._manageRequired(),this._dispatchChangeEvent())}_manageRequired(){const{value:t}=this;""===t&&this.required?this._internals.setValidity({valueMissing:!0},"Please select an item in the list.",this._face):this._internals.setValidity({})}_renderSelectFace(){const t=this._opts.getSelectedOption(),e=t?.label??"",i=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"";return U`
|
|
1743
1767
|
<div
|
|
1744
1768
|
aria-activedescendant=${i}
|
|
1745
1769
|
aria-controls="select-listbox"
|
|
1746
1770
|
aria-expanded=${this.open?"true":"false"}
|
|
1747
1771
|
aria-haspopup="listbox"
|
|
1748
|
-
aria-label=${
|
|
1772
|
+
aria-label=${Mt(this.label)}
|
|
1749
1773
|
class="select-face face"
|
|
1750
1774
|
@click=${this._onFaceClick}
|
|
1751
1775
|
role="combobox"
|
|
1752
1776
|
tabindex="0"
|
|
1753
1777
|
>
|
|
1754
|
-
<span class="text">${e}</span> ${
|
|
1778
|
+
<span class="text">${e}</span> ${Ee}
|
|
1755
1779
|
</div>
|
|
1756
1780
|
`}_renderComboboxFace(){let t="";if(this._isBeingFiltered)t=this._opts.filterPattern;else{const e=this._opts.getSelectedOption();t=e?.label??""}const e=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"",i=this.open?"true":"false";return U`
|
|
1757
1781
|
<div class="combobox-face face">
|
|
@@ -1761,7 +1785,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1761
1785
|
aria-controls="select-listbox"
|
|
1762
1786
|
aria-expanded=${i}
|
|
1763
1787
|
aria-haspopup="listbox"
|
|
1764
|
-
aria-label=${
|
|
1788
|
+
aria-label=${Mt(this.label)}
|
|
1765
1789
|
class="combobox-input"
|
|
1766
1790
|
role="combobox"
|
|
1767
1791
|
spellcheck="false"
|
|
@@ -1782,7 +1806,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1782
1806
|
@keydown=${this._onComboboxButtonKeyDown}
|
|
1783
1807
|
tabindex="-1"
|
|
1784
1808
|
>
|
|
1785
|
-
${
|
|
1809
|
+
${Ee}
|
|
1786
1810
|
</button>
|
|
1787
1811
|
</div>
|
|
1788
1812
|
`}render(){return U`
|
|
@@ -1791,7 +1815,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1791
1815
|
${this.combobox?this._renderComboboxFace():this._renderSelectFace()}
|
|
1792
1816
|
${this._renderDropdown()}
|
|
1793
1817
|
</div>
|
|
1794
|
-
`}};
|
|
1818
|
+
`}};vi.styles=ei,vi.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},vi.formAssociated=!0,pi([pt({attribute:"default-value"})],vi.prototype,"defaultValue",void 0),pi([pt({reflect:!0})],vi.prototype,"name",void 0),pi([pt({type:Number,attribute:"selected-index"})],vi.prototype,"selectedIndex",null),pi([pt({type:String})],vi.prototype,"value",null),pi([pt({type:Boolean,reflect:!0})],vi.prototype,"required",void 0),pi([ft(".face")],vi.prototype,"_face",void 0),vi=pi([kt("vscode-single-select")],vi);const bi=[$t,n`
|
|
1795
1819
|
:host {
|
|
1796
1820
|
--separator-border: var(--vscode-editorWidget-border, #454545);
|
|
1797
1821
|
|
|
@@ -1898,43 +1922,50 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1898
1922
|
cursor: ns-resize;
|
|
1899
1923
|
width: 100%;
|
|
1900
1924
|
}
|
|
1901
|
-
`];var
|
|
1902
|
-
<div class=${
|
|
1903
|
-
<div class="start" .style=${
|
|
1925
|
+
`];var fi,gi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const mi=t=>{if(!t)return{value:0,unit:"pixel"};let e,i;t.endsWith("%")?(e="percent",i=+t.substring(0,t.length-1)):t.endsWith("px")?(e="pixel",i=+t.substring(0,t.length-2)):(e="pixel",i=+t);return{unit:e,value:isNaN(i)?0:i}},xi=(t,e)=>0===e?0:Math.min(100,t/e*100),yi=(t,e)=>e*(t/100);let wi=fi=class extends wt{set split(t){this._split!==t&&(this._split=t,this.resetHandlePosition())}get split(){return this._split}set handlePosition(t){this._rawHandlePosition=t,this._handlePositionPropChanged()}get handlePosition(){return this._rawHandlePosition}set fixedPane(t){this._fixedPane=t,this._fixedPanePropChanged()}get fixedPane(){return this._fixedPane}constructor(){super(),this._split="vertical",this.resetOnDblClick=!1,this.handleSize=4,this.initialHandlePosition="50%",this._fixedPane="none",this._handlePosition=0,this._isDragActive=!1,this._hover=!1,this._hide=!1,this._boundRect=new DOMRect,this._handleOffset=0,this._wrapperObserved=!1,this._fixedPaneSize=0,this._handleResize=t=>{const e=t[0].contentRect,{width:i,height:s}=e;this._boundRect=e;const o="vertical"===this.split?i:s;"start"===this.fixedPane&&(this._handlePosition=this._fixedPaneSize),"end"===this.fixedPane&&(this._handlePosition=o-this._fixedPaneSize)},this._handleMouseUp=t=>{this._isDragActive=!1,t.target!==this&&(this._hover=!1,this._hide=!0),window.removeEventListener("mouseup",this._handleMouseUp),window.removeEventListener("mousemove",this._handleMouseMove);const{width:e,height:i}=this._boundRect,s="vertical"===this.split?e:i,o=xi(this._handlePosition,s);this.dispatchEvent(new CustomEvent("vsc-split-layout-change",{detail:{position:this._handlePosition,positionInPercentage:o},composed:!0}))},this._handleMouseMove=t=>{const{clientX:e,clientY:i}=t,{left:s,top:o,height:r,width:n}=this._boundRect,l="vertical"===this.split,h=l?n:r,a=l?e-s:i-o;this._handlePosition=Math.max(0,Math.min(a-this._handleOffset+this.handleSize/2,h)),"start"===this.fixedPane&&(this._fixedPaneSize=this._handlePosition),"end"===this.fixedPane&&(this._fixedPaneSize=h-this._handlePosition)},this._resizeObserver=new ResizeObserver(this._handleResize)}resetHandlePosition(){if(!this._wrapperEl)return void(this._handlePosition=0);const{width:t,height:e}=this._wrapperEl.getBoundingClientRect(),i="vertical"===this.split?t:e,{value:s,unit:o}=mi(this.initialHandlePosition??"50%");this._handlePosition="percent"===o?yi(s,i):s}connectedCallback(){super.connectedCallback()}firstUpdated(t){"none"!==this.fixedPane&&(this._resizeObserver.observe(this._wrapperEl),this._wrapperObserved=!0),this._boundRect=this._wrapperEl.getBoundingClientRect();const{value:e,unit:i}=this.handlePosition?mi(this.handlePosition):mi(this.initialHandlePosition);this._setPosition(e,i),this._initFixedPane()}_handlePositionPropChanged(){if(this.handlePosition&&this._wrapperEl){this._boundRect=this._wrapperEl.getBoundingClientRect();const{value:t,unit:e}=mi(this.handlePosition);this._setPosition(t,e)}}_fixedPanePropChanged(){this._wrapperEl&&this._initFixedPane()}_initFixedPane(){if("none"===this.fixedPane)this._wrapperObserved&&(this._resizeObserver.unobserve(this._wrapperEl),this._wrapperObserved=!1);else{const{width:t,height:e}=this._boundRect,i="vertical"===this.split?t:e;this._fixedPaneSize="start"===this.fixedPane?this._handlePosition:i-this._handlePosition,this._wrapperObserved||(this._resizeObserver.observe(this._wrapperEl),this._wrapperObserved=!0)}}_setPosition(t,e){const{width:i,height:s}=this._boundRect,o="vertical"===this.split?i:s;this._handlePosition="percent"===e?yi(t,o):t}_handleMouseOver(){this._hover=!0,this._hide=!1}_handleMouseOut(t){1!==t.buttons&&(this._hover=!1,this._hide=!0)}_handleMouseDown(t){t.stopPropagation(),t.preventDefault(),this._boundRect=this._wrapperEl.getBoundingClientRect();const{left:e,top:i}=this._boundRect,{left:s,top:o}=this._handleEl.getBoundingClientRect(),r=t.clientX-e,n=t.clientY-i;"vertical"===this.split&&(this._handleOffset=r-(s-e)),"horizontal"===this.split&&(this._handleOffset=n-(o-i)),this._isDragActive=!0,window.addEventListener("mouseup",this._handleMouseUp),window.addEventListener("mousemove",this._handleMouseMove)}_handleDblClick(){this.resetOnDblClick&&this.resetHandlePosition()}_handleSlotChange(){[...this._nestedLayoutsAtStart,...this._nestedLayoutsAtEnd].forEach((t=>{t instanceof fi&&t.resetHandlePosition()}))}render(){const{width:t,height:e}=this._boundRect,i="vertical"===this.split?t:e,s="none"!==this.fixedPane?`${this._handlePosition}px`:`${xi(this._handlePosition,i)}%`;let o="";o="start"===this.fixedPane?`0 0 ${this._fixedPaneSize}px`:`1 1 ${xi(this._handlePosition,i)}%`;let r="";r="end"===this.fixedPane?`0 0 ${this._fixedPaneSize}px`:`1 1 ${xi(i-this._handlePosition,i)}%`;const n={left:"vertical"===this.split?s:"0",top:"vertical"===this.split?"0":s},l=this.handleSize??4;"vertical"===this.split&&(n.marginLeft=0-l/2+"px",n.width=`${l}px`),"horizontal"===this.split&&(n.height=`${l}px`,n.marginTop=0-l/2+"px");const h=jt({"handle-overlay":!0,active:this._isDragActive,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split}),a=jt({handle:!0,hover:this._hover,hide:this._hide,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split}),c={wrapper:!0,horizontal:"horizontal"===this.split};return U`
|
|
1926
|
+
<div class=${jt(c)}>
|
|
1927
|
+
<div class="start" .style=${Pt({flex:o})}>
|
|
1904
1928
|
<slot name="start" @slotchange=${this._handleSlotChange}></slot>
|
|
1905
1929
|
</div>
|
|
1906
|
-
<div class="end" .style=${
|
|
1930
|
+
<div class="end" .style=${Pt({flex:r})}>
|
|
1907
1931
|
<slot name="end" @slotchange=${this._handleSlotChange}></slot>
|
|
1908
1932
|
</div>
|
|
1909
1933
|
<div class=${h}></div>
|
|
1910
1934
|
<div
|
|
1911
1935
|
class=${a}
|
|
1912
|
-
.style=${
|
|
1936
|
+
.style=${Pt(n)}
|
|
1913
1937
|
@mouseover=${this._handleMouseOver}
|
|
1914
1938
|
@mouseout=${this._handleMouseOut}
|
|
1915
1939
|
@mousedown=${this._handleMouseDown}
|
|
1916
1940
|
@dblclick=${this._handleDblClick}
|
|
1917
1941
|
></div>
|
|
1918
1942
|
</div>
|
|
1919
|
-
`}};
|
|
1943
|
+
`}};wi.styles=bi,gi([pt({reflect:!0})],wi.prototype,"split",null),gi([pt({type:Boolean,reflect:!0,attribute:"reset-on-dbl-click"})],wi.prototype,"resetOnDblClick",void 0),gi([pt({type:Number,reflect:!0,attribute:"handle-size"})],wi.prototype,"handleSize",void 0),gi([pt({reflect:!0,attribute:"initial-handle-position"})],wi.prototype,"initialHandlePosition",void 0),gi([pt({attribute:"handle-position"})],wi.prototype,"handlePosition",null),gi([pt({attribute:"fixed-pane"})],wi.prototype,"fixedPane",null),gi([vt()],wi.prototype,"_handlePosition",void 0),gi([vt()],wi.prototype,"_isDragActive",void 0),gi([vt()],wi.prototype,"_hover",void 0),gi([vt()],wi.prototype,"_hide",void 0),gi([ft(".wrapper")],wi.prototype,"_wrapperEl",void 0),gi([ft(".handle")],wi.prototype,"_handleEl",void 0),gi([mt({slot:"start",selector:"vscode-split-layout"})],wi.prototype,"_nestedLayoutsAtStart",void 0),gi([mt({slot:"end",selector:"vscode-split-layout"})],wi.prototype,"_nestedLayoutsAtEnd",void 0),wi=fi=gi([kt("vscode-split-layout")],wi);const ki=[$t,n`
|
|
1920
1944
|
:host {
|
|
1921
|
-
border-bottom: 1px solid transparent;
|
|
1922
1945
|
cursor: pointer;
|
|
1923
1946
|
display: block;
|
|
1924
|
-
|
|
1947
|
+
user-select: none;
|
|
1948
|
+
}
|
|
1949
|
+
|
|
1950
|
+
.wrapper {
|
|
1951
|
+
align-items: center;
|
|
1952
|
+
border-bottom: 1px solid transparent;
|
|
1953
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1954
|
+
display: flex;
|
|
1955
|
+
min-height: 20px;
|
|
1925
1956
|
overflow: hidden;
|
|
1926
1957
|
padding: 7px 8px;
|
|
1958
|
+
position: relative;
|
|
1927
1959
|
text-overflow: ellipsis;
|
|
1928
|
-
user-select: none;
|
|
1929
1960
|
white-space: nowrap;
|
|
1930
1961
|
}
|
|
1931
1962
|
|
|
1932
|
-
:host([active]) {
|
|
1933
|
-
border-bottom-color: var(--vscode-panelTitle-activeForeground);
|
|
1934
|
-
color: var(--vscode-panelTitle-activeForeground);
|
|
1963
|
+
:host([active]) .wrapper {
|
|
1964
|
+
border-bottom-color: var(--vscode-panelTitle-activeForeground, #cccccc);
|
|
1965
|
+
color: var(--vscode-panelTitle-activeForeground, #cccccc);
|
|
1935
1966
|
}
|
|
1936
1967
|
|
|
1937
|
-
:host([panel]) {
|
|
1968
|
+
:host([panel]) .wrapper {
|
|
1938
1969
|
border-bottom: 0;
|
|
1939
1970
|
margin-bottom: 0;
|
|
1940
1971
|
padding: 0;
|
|
@@ -1946,7 +1977,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1946
1977
|
|
|
1947
1978
|
.wrapper {
|
|
1948
1979
|
align-items: center;
|
|
1949
|
-
color: var(--vscode-foreground);
|
|
1980
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1950
1981
|
display: flex;
|
|
1951
1982
|
min-height: 20px;
|
|
1952
1983
|
overflow: inherit;
|
|
@@ -1955,12 +1986,12 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1955
1986
|
}
|
|
1956
1987
|
|
|
1957
1988
|
.wrapper.panel {
|
|
1958
|
-
color: var(--vscode-panelTitle-inactiveForeground);
|
|
1989
|
+
color: var(--vscode-panelTitle-inactiveForeground, #9d9d9d);
|
|
1959
1990
|
}
|
|
1960
1991
|
|
|
1961
1992
|
.wrapper.panel.active,
|
|
1962
1993
|
.wrapper.panel:hover {
|
|
1963
|
-
color: var(--vscode-panelTitle-activeForeground);
|
|
1994
|
+
color: var(--vscode-panelTitle-activeForeground, #cccccc);
|
|
1964
1995
|
}
|
|
1965
1996
|
|
|
1966
1997
|
:host([panel]) .wrapper {
|
|
@@ -1981,7 +2012,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1981
2012
|
}
|
|
1982
2013
|
|
|
1983
2014
|
.active-indicator.panel.active {
|
|
1984
|
-
border-top: 1px solid var(--vscode-panelTitle-activeBorder);
|
|
2015
|
+
border-top: 1px solid var(--vscode-panelTitle-activeBorder, #0078d4);
|
|
1985
2016
|
bottom: 4px;
|
|
1986
2017
|
display: block;
|
|
1987
2018
|
left: 8px;
|
|
@@ -1991,7 +2022,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1991
2022
|
}
|
|
1992
2023
|
|
|
1993
2024
|
:host(:focus-visible) .wrapper {
|
|
1994
|
-
outline-color: var(--vscode-focusBorder);
|
|
2025
|
+
outline-color: var(--vscode-focusBorder, #0078d4);
|
|
1995
2026
|
outline-offset: 3px;
|
|
1996
2027
|
outline-style: solid;
|
|
1997
2028
|
outline-width: 1px;
|
|
@@ -2008,34 +2039,34 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2008
2039
|
slot[name='content-after']::slotted(vscode-badge) {
|
|
2009
2040
|
margin-left: 8px;
|
|
2010
2041
|
}
|
|
2011
|
-
`];var
|
|
2042
|
+
`];var $i=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let _i=class extends wt{constructor(){super(...arguments),this.active=!1,this.ariaControls="",this.panel=!1,this.role="tab",this.tabId=-1}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"active"===t){const t=null!==i;this.ariaSelected=t?"true":"false",this.tabIndex=t?0:-1}}render(){return U`
|
|
2012
2043
|
<div
|
|
2013
|
-
class=${
|
|
2044
|
+
class=${jt({wrapper:!0,active:this.active,panel:this.panel})}
|
|
2014
2045
|
>
|
|
2015
2046
|
<div class="before"><slot name="content-before"></slot></div>
|
|
2016
2047
|
<div class="main"><slot></slot></div>
|
|
2017
2048
|
<div class="after"><slot name="content-after"></slot></div>
|
|
2018
2049
|
<span
|
|
2019
|
-
class=${
|
|
2050
|
+
class=${jt({"active-indicator":!0,active:this.active,panel:this.panel})}
|
|
2020
2051
|
></span>
|
|
2021
2052
|
</div>
|
|
2022
|
-
`}};
|
|
2053
|
+
`}};_i.styles=ki,$i([pt({type:Boolean,reflect:!0})],_i.prototype,"active",void 0),$i([pt({reflect:!0,attribute:"aria-controls"})],_i.prototype,"ariaControls",void 0),$i([pt({type:Boolean,reflect:!0})],_i.prototype,"panel",void 0),$i([pt({reflect:!0})],_i.prototype,"role",void 0),$i([pt({type:Number,reflect:!0,attribute:"tab-id"})],_i.prototype,"tabId",void 0),_i=$i([kt("vscode-tab-header")],_i);const Si=[$t,n`
|
|
2023
2054
|
:host {
|
|
2024
2055
|
display: block;
|
|
2025
2056
|
overflow: hidden;
|
|
2026
2057
|
}
|
|
2027
2058
|
|
|
2028
2059
|
:host(:focus-visible) {
|
|
2029
|
-
outline-color: var(--vscode-focusBorder);
|
|
2060
|
+
outline-color: var(--vscode-focusBorder, #0078d4);
|
|
2030
2061
|
outline-offset: 3px;
|
|
2031
2062
|
outline-style: solid;
|
|
2032
2063
|
outline-width: 1px;
|
|
2033
2064
|
}
|
|
2034
2065
|
|
|
2035
2066
|
:host([panel]) {
|
|
2036
|
-
background-color: var(--vscode-panel-background);
|
|
2067
|
+
background-color: var(--vscode-panel-background, #181818);
|
|
2037
2068
|
}
|
|
2038
|
-
`];var
|
|
2069
|
+
`];var Bi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Ci=class extends wt{constructor(){super(...arguments),this.hidden=!1,this.ariaLabelledby="",this.panel=!1,this.role="tabpanel",this.tabIndex=0}render(){return U` <slot></slot> `}};Ci.styles=Si,Bi([pt({type:Boolean,reflect:!0})],Ci.prototype,"hidden",void 0),Bi([pt({reflect:!0,attribute:"aria-labelledby"})],Ci.prototype,"ariaLabelledby",void 0),Bi([pt({type:Boolean,reflect:!0})],Ci.prototype,"panel",void 0),Bi([pt({reflect:!0})],Ci.prototype,"role",void 0),Bi([pt({type:Number,reflect:!0})],Ci.prototype,"tabIndex",void 0),Ci=Bi([kt("vscode-tab-panel")],Ci);const Oi=[$t,n`
|
|
2039
2070
|
:host {
|
|
2040
2071
|
display: table;
|
|
2041
2072
|
table-layout: fixed;
|
|
@@ -2049,16 +2080,19 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2049
2080
|
::slotted(vscode-table-row:nth-child(odd)) {
|
|
2050
2081
|
background-color: var(--vsc-row-odd-background);
|
|
2051
2082
|
}
|
|
2052
|
-
`];var
|
|
2083
|
+
`];var zi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Ai=class extends wt{constructor(){super(...arguments),this.role="rowgroup"}render(){return U` <slot></slot> `}};Ai.styles=Oi,zi([pt({reflect:!0})],Ai.prototype,"role",void 0),Ai=zi([kt("vscode-table-body")],Ai);const Ei=[$t,n`
|
|
2053
2084
|
:host {
|
|
2054
|
-
border-bottom-color: var(
|
|
2085
|
+
border-bottom-color: var(
|
|
2086
|
+
--vscode-editorGroup-border,
|
|
2087
|
+
rgba(255, 255, 255, 0.09)
|
|
2088
|
+
);
|
|
2055
2089
|
border-bottom-style: solid;
|
|
2056
2090
|
border-bottom-width: var(--vsc-row-border-bottom-width);
|
|
2057
2091
|
box-sizing: border-box;
|
|
2058
|
-
color: var(--vscode-foreground);
|
|
2092
|
+
color: var(--vscode-foreground, #cccccc);
|
|
2059
2093
|
display: table-cell;
|
|
2060
|
-
font-family: var(--vscode-font-family);
|
|
2061
|
-
font-size: var(--vscode-font-size);
|
|
2094
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
2095
|
+
font-size: var(--vscode-font-size, 13px);
|
|
2062
2096
|
height: 24px;
|
|
2063
2097
|
overflow: hidden;
|
|
2064
2098
|
padding-left: 10px;
|
|
@@ -2092,27 +2126,30 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2092
2126
|
.column-label {
|
|
2093
2127
|
font-weight: bold;
|
|
2094
2128
|
}
|
|
2095
|
-
`];var
|
|
2129
|
+
`];var Ii=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let ji=class extends wt{constructor(){super(...arguments),this.role="cell",this.columnLabel="",this.compact=!1}render(){const t=this.columnLabel?U`<div class="column-label" role="presentation">
|
|
2096
2130
|
${this.columnLabel}
|
|
2097
2131
|
</div>`:q;return U`
|
|
2098
2132
|
<div class="wrapper">
|
|
2099
2133
|
${t}
|
|
2100
2134
|
<slot></slot>
|
|
2101
2135
|
</div>
|
|
2102
|
-
`}};
|
|
2136
|
+
`}};ji.styles=Ei,Ii([pt({reflect:!0})],ji.prototype,"role",void 0),Ii([pt({attribute:"column-label"})],ji.prototype,"columnLabel",void 0),Ii([pt({type:Boolean,reflect:!0})],ji.prototype,"compact",void 0),ji=Ii([kt("vscode-table-cell")],ji);const Mi=[$t,n`
|
|
2103
2137
|
:host {
|
|
2104
|
-
background-color: var(
|
|
2138
|
+
background-color: var(
|
|
2139
|
+
--vscode-keybindingTable-headerBackground,
|
|
2140
|
+
rgba(204, 204, 204, 0.04)
|
|
2141
|
+
);
|
|
2105
2142
|
display: table;
|
|
2106
2143
|
table-layout: fixed;
|
|
2107
2144
|
width: 100%;
|
|
2108
2145
|
}
|
|
2109
|
-
`];var
|
|
2146
|
+
`];var Pi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Di=class extends wt{constructor(){super(...arguments),this.role="rowgroup"}render(){return U` <slot></slot> `}};Di.styles=Mi,Pi([pt({reflect:!0})],Di.prototype,"role",void 0),Di=Pi([kt("vscode-table-header")],Di);const Fi=[$t,n`
|
|
2110
2147
|
:host {
|
|
2111
2148
|
box-sizing: border-box;
|
|
2112
|
-
color: var(--vscode-foreground);
|
|
2149
|
+
color: var(--vscode-foreground, #cccccc);
|
|
2113
2150
|
display: table-cell;
|
|
2114
|
-
font-family: var(--vscode-font-family);
|
|
2115
|
-
font-size: var(--vscode-font-size);
|
|
2151
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
2152
|
+
font-size: var(--vscode-font-size, 13px);
|
|
2116
2153
|
font-weight: bold;
|
|
2117
2154
|
line-height: 20px;
|
|
2118
2155
|
overflow: hidden;
|
|
@@ -2131,19 +2168,22 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2131
2168
|
white-space: inherit;
|
|
2132
2169
|
width: 100%;
|
|
2133
2170
|
}
|
|
2134
|
-
`];var
|
|
2171
|
+
`];var Vi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Ni=class extends wt{constructor(){super(...arguments),this.role="columnheader"}render(){return U`
|
|
2135
2172
|
<div class="wrapper">
|
|
2136
2173
|
<slot></slot>
|
|
2137
2174
|
</div>
|
|
2138
|
-
`}};
|
|
2175
|
+
`}};Ni.styles=Fi,Vi([pt({reflect:!0})],Ni.prototype,"role",void 0),Ni=Vi([kt("vscode-table-header-cell")],Ni);const Ri=[$t,n`
|
|
2139
2176
|
:host {
|
|
2140
|
-
border-top-color: var(
|
|
2177
|
+
border-top-color: var(
|
|
2178
|
+
--vscode-editorGroup-border,
|
|
2179
|
+
rgba(255, 255, 255, 0.09)
|
|
2180
|
+
);
|
|
2141
2181
|
border-top-style: solid;
|
|
2142
2182
|
border-top-width: var(--vsc-row-border-top-width);
|
|
2143
2183
|
display: var(--vsc-row-display);
|
|
2144
2184
|
width: 100%;
|
|
2145
2185
|
}
|
|
2146
|
-
`];var
|
|
2186
|
+
`];var Ti=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Li=class extends wt{constructor(){super(...arguments),this.role="row"}render(){return U` <slot></slot> `}};Li.styles=Ri,Ti([pt({reflect:!0})],Li.prototype,"role",void 0),Li=Ti([kt("vscode-table-row")],Li);const Ui=(t,e)=>{if("number"!=typeof t||Number.isNaN(t)){if("string"==typeof t&&/^[0-9.]+$/.test(t)){return Number(t)/e*100}if("string"==typeof t&&/^[0-9.]+%$/.test(t))return Number(t.substring(0,t.length-1));if("string"==typeof t&&/^[0-9.]+px$/.test(t)){return Number(t.substring(0,t.length-2))/e*100}return null}return t/e*100},Gi=[$t,n`
|
|
2147
2187
|
:host {
|
|
2148
2188
|
display: block;
|
|
2149
2189
|
--vsc-row-even-background: transparent;
|
|
@@ -2169,11 +2209,17 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2169
2209
|
}
|
|
2170
2210
|
|
|
2171
2211
|
:host([zebra]) {
|
|
2172
|
-
--vsc-row-even-background: var(
|
|
2212
|
+
--vsc-row-even-background: var(
|
|
2213
|
+
--vscode-keybindingTable-rowsBackground,
|
|
2214
|
+
rgba(204, 204, 204, 0.04)
|
|
2215
|
+
);
|
|
2173
2216
|
}
|
|
2174
2217
|
|
|
2175
2218
|
:host([zebra-odd]) {
|
|
2176
|
-
--vsc-row-odd-background: var(
|
|
2219
|
+
--vsc-row-odd-background: var(
|
|
2220
|
+
--vscode-keybindingTable-rowsBackground,
|
|
2221
|
+
rgba(204, 204, 204, 0.04)
|
|
2222
|
+
);
|
|
2177
2223
|
}
|
|
2178
2224
|
|
|
2179
2225
|
::slotted(vscode-table-row) {
|
|
@@ -2215,7 +2261,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2215
2261
|
}
|
|
2216
2262
|
|
|
2217
2263
|
.wrapper:not(.compact-view) .scrollable:not([scrolled]):before {
|
|
2218
|
-
background-color: var(
|
|
2264
|
+
background-color: var(
|
|
2265
|
+
--vscode-editorGroup-border,
|
|
2266
|
+
rgba(255, 255, 255, 0.09)
|
|
2267
|
+
);
|
|
2219
2268
|
}
|
|
2220
2269
|
|
|
2221
2270
|
.sash {
|
|
@@ -2247,7 +2296,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2247
2296
|
}
|
|
2248
2297
|
|
|
2249
2298
|
.sash-visible {
|
|
2250
|
-
background-color: var(
|
|
2299
|
+
background-color: var(
|
|
2300
|
+
--vscode-editorGroup-border,
|
|
2301
|
+
rgba(255, 255, 255, 0.09)
|
|
2302
|
+
);
|
|
2251
2303
|
height: 100%;
|
|
2252
2304
|
position: absolute;
|
|
2253
2305
|
top: 30px;
|
|
@@ -2255,7 +2307,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2255
2307
|
}
|
|
2256
2308
|
|
|
2257
2309
|
.sash.hover .sash-visible {
|
|
2258
|
-
background-color: var(--vscode-sash-hoverBorder);
|
|
2310
|
+
background-color: var(--vscode-sash-hoverBorder, #0078d4);
|
|
2259
2311
|
transition: background-color 50ms linear 300ms;
|
|
2260
2312
|
}
|
|
2261
2313
|
|
|
@@ -2266,11 +2318,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2266
2318
|
position: absolute;
|
|
2267
2319
|
width: 5px;
|
|
2268
2320
|
}
|
|
2269
|
-
`];var
|
|
2321
|
+
`];var Hi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let qi=class extends wt{constructor(){super(...arguments),this.role="table",this.resizable=!1,this.responsive=!1,this.bordered=!1,this.borderedColumns=!1,this.borderedRows=!1,this.breakpoint=300,this.minColumnWidth="50px",this.delayedResizing=!1,this.compact=!1,this.zebra=!1,this.zebraOdd=!1,this._sashPositions=[],this._isDragging=!1,this._sashHovers=[],this._columns=[],this._activeSashElementIndex=-1,this._activeSashCursorOffset=0,this._componentX=0,this._componentH=0,this._componentW=0,this._headerCells=[],this._cellsOfFirstRow=[],this._prevHeaderHeight=0,this._prevComponentHeight=0,this._componentResizeObserverCallback=()=>{this._memoizeComponentDimensions(),this._updateResizeHandlersSize(),this.responsive&&this._toggleCompactView(),this._resizeTableBody()},this._headerResizeObserverCallback=()=>{this._updateResizeHandlersSize()},this._bodyResizeObserverCallback=()=>{this._resizeTableBody()},this._onResizingMouseMove=t=>{t.stopPropagation(),this._updateActiveSashPosition(t.pageX),this.delayedResizing?this._resizeColumns(!1):this._resizeColumns(!0)},this._onResizingMouseUp=t=>{this._resizeColumns(!0),this._updateActiveSashPosition(t.pageX),this._sashHovers[this._activeSashElementIndex]=!1,this._isDragging=!1,this._activeSashElementIndex=-1,document.removeEventListener("mousemove",this._onResizingMouseMove),document.removeEventListener("mouseup",this._onResizingMouseUp)}}set columns(t){this._columns=t,this.isConnected&&this._initDefaultColumnSizes()}get columns(){return this._columns}connectedCallback(){super.connectedCallback(),this._memoizeComponentDimensions(),this._initDefaultColumnSizes()}disconnectedCallback(){super.disconnectedCallback(),this._componentResizeObserver?.unobserve(this),this._componentResizeObserver?.disconnect(),this._bodyResizeObserver?.disconnect()}_px2Percent(t){return t/this._componentW*100}_percent2Px(t){return this._componentW*t/100}_memoizeComponentDimensions(){const t=this.getBoundingClientRect();this._componentH=t.height,this._componentW=t.width,this._componentX=t.x}_queryHeaderCells(){const t=this._assignedHeaderElements;return t&&t[0]?Array.from(t[0].querySelectorAll("vscode-table-header-cell")):[]}_getHeaderCells(){return this._headerCells.length||(this._headerCells=this._queryHeaderCells()),this._headerCells}_queryCellsOfFirstRow(){const t=this._assignedBodyElements;return t&&t[0]?Array.from(t[0].querySelectorAll("vscode-table-row:first-child vscode-table-cell")):[]}_getCellsOfFirstRow(){return this._cellsOfFirstRow.length||(this._cellsOfFirstRow=this._queryCellsOfFirstRow()),this._cellsOfFirstRow}_resizeTableBody(){let t=0,e=0;const i=this.getBoundingClientRect().height;this._assignedHeaderElements&&this._assignedHeaderElements.length&&(t=this._assignedHeaderElements[0].getBoundingClientRect().height),this._assignedBodyElements&&this._assignedBodyElements.length&&(e=this._assignedBodyElements[0].getBoundingClientRect().height);const s=e-t-i;this._scrollableElement.style.height=s>0?i-t+"px":"auto"}_initResizeObserver(){this._componentResizeObserver=new ResizeObserver(this._componentResizeObserverCallback),this._componentResizeObserver.observe(this),this._headerResizeObserver=new ResizeObserver(this._headerResizeObserverCallback),this._headerResizeObserver.observe(this._headerElement)}_calcColWidthPercentages(){const t=this._getHeaderCells().length;let e=this.columns.slice(0,t);const i=e.filter((t=>"auto"===t)).length+t-e.length;let s=100;if(e=e.map((t=>{const e=Ui(t,this._componentW);return null===e?"auto":(s-=e,e)})),e.length<t)for(let i=e.length;i<t;i++)e.push("auto");return e=e.map((t=>"auto"===t?s/i:t)),e}_initHeaderCellSizes(t){this._getHeaderCells().forEach(((e,i)=>{e.style.width=`${t[i]}%`}))}_initBodyColumnSizes(t){this._getCellsOfFirstRow().forEach(((e,i)=>{e.style.width=`${t[i]}%`}))}_initSashes(t){const e=t.length;let i=0;this._sashPositions=[],t.forEach(((t,s)=>{if(s<e-1){const e=i+t;this._sashPositions.push(e),i=e}}))}_initDefaultColumnSizes(){const t=this._calcColWidthPercentages();this._initHeaderCellSizes(t),this._initBodyColumnSizes(t),this._initSashes(t)}_updateResizeHandlersSize(){const t=this._headerElement.getBoundingClientRect();if(t.height===this._prevHeaderHeight&&this._componentH===this._prevComponentHeight)return;this._prevHeaderHeight=t.height,this._prevComponentHeight=this._componentH;const e=this._componentH-t.height;this._sashVisibleElements.forEach((i=>{i.style.height=`${e}px`,i.style.top=`${t.height}px`}))}_applyCompactViewColumnLabels(){const t=this._getHeaderCells().map((t=>t.innerText));this.querySelectorAll("vscode-table-row").forEach((e=>{e.querySelectorAll("vscode-table-cell").forEach(((e,i)=>{e.columnLabel=t[i],e.compact=!0}))}))}_clearCompactViewColumnLabels(){this.querySelectorAll("vscode-table-cell").forEach((t=>{t.columnLabel="",t.compact=!1}))}_toggleCompactView(){const t=this.getBoundingClientRect().width<this.breakpoint;this.compact!==t&&(this.compact=t,t?this._applyCompactViewColumnLabels():this._clearCompactViewColumnLabels())}_onDefaultSlotChange(){this._assignedElements.forEach((t=>{"vscode-table-header"!==t.tagName.toLowerCase()?"vscode-table-body"!==t.tagName.toLowerCase()||(t.slot="body"):t.slot="header"}))}_onHeaderSlotChange(){this._headerCells=this._queryHeaderCells()}_onBodySlotChange(){if(this._initDefaultColumnSizes(),this._initResizeObserver(),this._updateResizeHandlersSize(),!this._bodyResizeObserver){const t=this._assignedBodyElements[0]??null;t&&(this._bodyResizeObserver=new ResizeObserver(this._bodyResizeObserverCallback),this._bodyResizeObserver.observe(t))}}_onSashMouseOver(t){if(this._isDragging)return;const e=t.currentTarget,i=Number(e.dataset.index);this._sashHovers[i]=!0,this.requestUpdate()}_onSashMouseOut(t){if(t.stopPropagation(),this._isDragging)return;const e=t.currentTarget,i=Number(e.dataset.index);this._sashHovers[i]=!1,this.requestUpdate()}_onSashMouseDown(t){t.stopPropagation();const{pageX:e,currentTarget:i}=t,s=i,o=Number(s.dataset.index),r=s.getBoundingClientRect().x;this._isDragging=!0,this._activeSashElementIndex=o,this._sashHovers[this._activeSashElementIndex]=!0,this._activeSashCursorOffset=this._px2Percent(e-r);const n=this._getHeaderCells();this._headerCellsToResize=[],this._headerCellsToResize.push(n[o]),n[o+1]&&(this._headerCellsToResize[1]=n[o+1]);const l=this._bodySlot.assignedElements()[0].querySelectorAll("vscode-table-row:first-child > vscode-table-cell");this._cellsToResize=[],this._cellsToResize.push(l[o]),l[o+1]&&this._cellsToResize.push(l[o+1]),document.addEventListener("mousemove",this._onResizingMouseMove),document.addEventListener("mouseup",this._onResizingMouseUp)}_updateActiveSashPosition(t){const{prevSashPos:e,nextSashPos:i}=this._getSashPositions();let s=Ui(this.minColumnWidth,this._componentW);null===s&&(s=0);const o=e?e+s:s,r=i?i-s:100-s;let n=this._px2Percent(t-this._componentX-this._percent2Px(this._activeSashCursorOffset));n=Math.max(n,o),n=Math.min(n,r),this._sashPositions[this._activeSashElementIndex]=n,this.requestUpdate()}_getSashPositions(){return{sashPos:this._sashPositions[this._activeSashElementIndex],prevSashPos:this._sashPositions[this._activeSashElementIndex-1]||0,nextSashPos:this._sashPositions[this._activeSashElementIndex+1]||100}}_resizeColumns(t=!0){const{sashPos:e,prevSashPos:i,nextSashPos:s}=this._getSashPositions(),o=`${e-i}%`,r=`${s-e}%`;this._headerCellsToResize[0].style.width=o,this._headerCellsToResize[1]&&(this._headerCellsToResize[1].style.width=r),t&&(this._cellsToResize[0].style.width=o,this._cellsToResize[1]&&(this._cellsToResize[1].style.width=r))}render(){const t=this._sashPositions.map(((t,e)=>{const i=jt({sash:!0,hover:this._sashHovers[e],resizable:this.resizable}),s=`${t}%`;return this.resizable?U`
|
|
2270
2322
|
<div
|
|
2271
2323
|
class=${i}
|
|
2272
2324
|
data-index=${e}
|
|
2273
|
-
.style=${
|
|
2325
|
+
.style=${Pt({left:s})}
|
|
2274
2326
|
@mousedown=${this._onSashMouseDown}
|
|
2275
2327
|
@mouseover=${this._onSashMouseOver}
|
|
2276
2328
|
@mouseout=${this._onSashMouseOut}
|
|
@@ -2281,10 +2333,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2281
2333
|
`:U`<div
|
|
2282
2334
|
class=${i}
|
|
2283
2335
|
data-index=${e}
|
|
2284
|
-
.style=${
|
|
2336
|
+
.style=${Pt({left:s})}
|
|
2285
2337
|
>
|
|
2286
2338
|
<div class="sash-visible"></div>
|
|
2287
|
-
</div>`})),e=
|
|
2339
|
+
</div>`})),e=jt({wrapper:!0,"select-disabled":this._isDragging,"resize-cursor":this._isDragging,"compact-view":this.compact});return U`
|
|
2288
2340
|
<div class=${e}>
|
|
2289
2341
|
<div class="header">
|
|
2290
2342
|
<slot name="caption"></slot>
|
|
@@ -2300,7 +2352,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2300
2352
|
${t}
|
|
2301
2353
|
<slot @slotchange=${this._onDefaultSlotChange}></slot>
|
|
2302
2354
|
</div>
|
|
2303
|
-
`}};
|
|
2355
|
+
`}};qi.styles=Gi,Hi([pt({reflect:!0})],qi.prototype,"role",void 0),Hi([pt({type:Boolean,reflect:!0})],qi.prototype,"resizable",void 0),Hi([pt({type:Boolean,reflect:!0})],qi.prototype,"responsive",void 0),Hi([pt({type:Boolean,reflect:!0})],qi.prototype,"bordered",void 0),Hi([pt({type:Boolean,reflect:!0,attribute:"bordered-columns"})],qi.prototype,"borderedColumns",void 0),Hi([pt({type:Boolean,reflect:!0,attribute:"bordered-rows"})],qi.prototype,"borderedRows",void 0),Hi([pt({type:Number})],qi.prototype,"breakpoint",void 0),Hi([pt({type:Array})],qi.prototype,"columns",null),Hi([pt({attribute:"min-column-width"})],qi.prototype,"minColumnWidth",void 0),Hi([pt({type:Boolean,reflect:!0,attribute:"delayed-resizing"})],qi.prototype,"delayedResizing",void 0),Hi([pt({type:Boolean,reflect:!0})],qi.prototype,"compact",void 0),Hi([pt({type:Boolean,reflect:!0})],qi.prototype,"zebra",void 0),Hi([pt({type:Boolean,reflect:!0,attribute:"zebra-odd"})],qi.prototype,"zebraOdd",void 0),Hi([ft('slot[name="body"]')],qi.prototype,"_bodySlot",void 0),Hi([ft(".header")],qi.prototype,"_headerElement",void 0),Hi([ft(".scrollable")],qi.prototype,"_scrollableElement",void 0),Hi([function(t){return(e,i)=>bt(0,0,{get(){return(this.renderRoot??(gt??=document.createDocumentFragment())).querySelectorAll(t)}})}(".sash-visible")],qi.prototype,"_sashVisibleElements",void 0),Hi([mt({flatten:!0,selector:"vscode-table-header, vscode-table-body"})],qi.prototype,"_assignedElements",void 0),Hi([mt({slot:"header",flatten:!0,selector:"vscode-table-header"})],qi.prototype,"_assignedHeaderElements",void 0),Hi([mt({slot:"body",flatten:!0,selector:"vscode-table-body"})],qi.prototype,"_assignedBodyElements",void 0),Hi([vt()],qi.prototype,"_sashPositions",void 0),Hi([vt()],qi.prototype,"_isDragging",void 0),qi=Hi([kt("vscode-table")],qi);const Wi=[$t,n`
|
|
2304
2356
|
:host {
|
|
2305
2357
|
display: block;
|
|
2306
2358
|
}
|
|
@@ -2308,44 +2360,55 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2308
2360
|
.header {
|
|
2309
2361
|
align-items: center;
|
|
2310
2362
|
display: flex;
|
|
2311
|
-
font-family: var(--vscode-font-family);
|
|
2312
|
-
font-size: var(--vscode-font-size);
|
|
2313
|
-
font-weight: var(--vscode-font-weight);
|
|
2363
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
2364
|
+
font-size: var(--vscode-font-size, 13px);
|
|
2365
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
2314
2366
|
width: 100%;
|
|
2315
2367
|
}
|
|
2316
2368
|
|
|
2317
2369
|
.header {
|
|
2318
|
-
border-bottom-color: var(--vscode-settings-headerBorder);
|
|
2370
|
+
border-bottom-color: var(--vscode-settings-headerBorder, #2b2b2b);
|
|
2319
2371
|
border-bottom-style: solid;
|
|
2320
2372
|
border-bottom-width: 1px;
|
|
2321
2373
|
}
|
|
2322
2374
|
|
|
2323
2375
|
.header.panel {
|
|
2324
|
-
background-color: var(--vscode-panel-background);
|
|
2376
|
+
background-color: var(--vscode-panel-background, #181818);
|
|
2325
2377
|
border-bottom-width: 0;
|
|
2326
2378
|
box-sizing: border-box;
|
|
2327
2379
|
padding-left: 8px;
|
|
2328
2380
|
padding-right: 8px;
|
|
2329
2381
|
}
|
|
2330
2382
|
|
|
2383
|
+
.tablist {
|
|
2384
|
+
display: flex;
|
|
2385
|
+
margin-bottom: -1px;
|
|
2386
|
+
}
|
|
2387
|
+
|
|
2331
2388
|
slot[name='addons'] {
|
|
2332
2389
|
display: block;
|
|
2333
2390
|
margin-left: auto;
|
|
2334
2391
|
}
|
|
2335
|
-
`];var
|
|
2392
|
+
`];var Ki=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Ji=class extends wt{constructor(){super(),this.panel=!1,this.selectedIndex=0,this._tabHeaders=[],this._tabPanels=[],this._componentId="",this._tabFocus=0,this._componentId=Ce()}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"selected-index"===t&&this._setActiveTab(),"panel"===t&&(this._tabHeaders.forEach((t=>t.panel=null!==i)),this._tabPanels.forEach((t=>t.panel=null!==i)))}_dispatchSelectEvent(){this.dispatchEvent(new CustomEvent("vsc-tabs-select",{detail:{selectedIndex:this.selectedIndex},composed:!0}))}_setActiveTab(){this._tabFocus=this.selectedIndex,this._tabPanels.forEach(((t,e)=>{t.hidden=e!==this.selectedIndex})),this._tabHeaders.forEach(((t,e)=>{t.active=e===this.selectedIndex}))}_focusPrevTab(){0===this._tabFocus?this._tabFocus=this._tabHeaders.length-1:this._tabFocus-=1}_focusNextTab(){this._tabFocus===this._tabHeaders.length-1?this._tabFocus=0:this._tabFocus+=1}_onHeaderKeyDown(t){"ArrowLeft"!==t.key&&"ArrowRight"!==t.key||(t.preventDefault(),this._tabHeaders[this._tabFocus].setAttribute("tabindex","-1"),"ArrowLeft"===t.key?this._focusPrevTab():"ArrowRight"===t.key&&this._focusNextTab(),this._tabHeaders[this._tabFocus].setAttribute("tabindex","0"),this._tabHeaders[this._tabFocus].focus()),"Enter"===t.key&&(t.preventDefault(),this.selectedIndex=this._tabFocus,this._dispatchSelectEvent())}_moveHeadersToHeaderSlot(){const t=this._mainSlotElements.filter((t=>t instanceof _i));t.length>0&&t.forEach((t=>t.setAttribute("slot","header")))}_onMainSlotChange(){this._moveHeadersToHeaderSlot(),this._tabPanels=this._mainSlotElements.filter((t=>t instanceof Ci)),this._tabPanels.forEach(((t,e)=>{t.ariaLabelledby=`t${this._componentId}-h${e}`,t.id=`t${this._componentId}-p${e}`,t.panel=this.panel})),this._setActiveTab()}_onHeaderSlotChange(){this._tabHeaders=this._headerSlotElements.filter((t=>t instanceof _i)),this._tabHeaders.forEach(((t,e)=>{t.tabId=e,t.id=`t${this._componentId}-h${e}`,t.ariaControls=`t${this._componentId}-p${e}`,t.panel=this.panel,t.active=e===this.selectedIndex}))}_onHeaderClick(t){const e=t.composedPath().find((t=>t instanceof _i));e&&(this.selectedIndex=e.tabId,this._setActiveTab(),this._dispatchSelectEvent())}render(){return U`
|
|
2336
2393
|
<div
|
|
2337
|
-
class=${
|
|
2394
|
+
class=${jt({header:!0,panel:this.panel})}
|
|
2338
2395
|
@click=${this._onHeaderClick}
|
|
2339
2396
|
@keydown=${this._onHeaderKeyDown}
|
|
2340
2397
|
>
|
|
2341
|
-
<
|
|
2398
|
+
<div role="tablist" class="tablist">
|
|
2399
|
+
<slot
|
|
2400
|
+
name="header"
|
|
2401
|
+
@slotchange=${this._onHeaderSlotChange}
|
|
2402
|
+
role="tablist"
|
|
2403
|
+
></slot>
|
|
2404
|
+
</div>
|
|
2342
2405
|
<slot name="addons"></slot>
|
|
2343
2406
|
</div>
|
|
2344
2407
|
<slot @slotchange=${this._onMainSlotChange}></slot>
|
|
2345
|
-
`}};
|
|
2408
|
+
`}};Ji.styles=Wi,Ki([pt({type:Boolean,reflect:!0})],Ji.prototype,"panel",void 0),Ki([pt({type:Number,reflect:!0,attribute:"selected-index"})],Ji.prototype,"selectedIndex",void 0),Ki([mt({slot:"header"})],Ji.prototype,"_headerSlotElements",void 0),Ki([mt()],Ji.prototype,"_mainSlotElements",void 0),Ji=Ki([kt("vscode-tabs")],Ji);const Yi=[$t,n`
|
|
2346
2409
|
:host {
|
|
2347
2410
|
display: inline-block;
|
|
2348
|
-
height:
|
|
2411
|
+
height: auto;
|
|
2349
2412
|
position: relative;
|
|
2350
2413
|
width: 320px;
|
|
2351
2414
|
}
|
|
@@ -2473,25 +2536,25 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2473
2536
|
background-repeat: no-repeat;
|
|
2474
2537
|
background-position: right bottom;
|
|
2475
2538
|
}
|
|
2476
|
-
`];var
|
|
2539
|
+
`];var Xi=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let Zi=class extends wt{set value(t){this._value=t,this._internals.setFormValue(t)}get value(){return this._value}get wrappedElement(){return this._textareaEl}get form(){return this._internals.form}get type(){return"textarea"}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.invalid=!1,this.label="",this.maxLength=void 0,this.minLength=void 0,this.rows=void 0,this.cols=void 0,this.name=void 0,this.placeholder=void 0,this.readonly=!1,this.resize="none",this.required=!1,this.spellcheck=!1,this.monospace=!1,this._value="",this._textareaPointerCursor=!1,this._shadow=!1,this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._textareaEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._textareaEl.value)}))}updated(t){const e=["maxLength","minLength","required"];for(const i of t.keys())if(e.includes(String(i))){this.updateComplete.then((()=>{this._setValidityFromInput()}));break}}formResetCallback(){this.value=this.defaultValue}formStateRestoreCallback(t,e){this.updateComplete.then((()=>{this._value=t}))}checkValidity(){return this._internals.checkValidity()}reportValidity(){return this._internals.reportValidity()}_setValidityFromInput(){this._internals.setValidity(this._textareaEl.validity,this._textareaEl.validationMessage,this._textareaEl)}_dataChanged(){this._value=this._textareaEl.value,this._internals.setFormValue(this._textareaEl.value)}_handleChange(){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change"))}_handleInput(){this._dataChanged(),this._setValidityFromInput()}_handleMouseMove(t){if(this._textareaEl.clientHeight>=this._textareaEl.scrollHeight)return void(this._textareaPointerCursor=!1);const e=this._textareaEl.getBoundingClientRect(),i=t.clientX;this._textareaPointerCursor=i>=e.left+e.width-14-2}_handleScroll(){this._shadow=this._textareaEl.scrollTop>0}render(){return U`
|
|
2477
2540
|
<div
|
|
2478
|
-
class=${
|
|
2541
|
+
class=${jt({shadow:!0,visible:this._shadow})}
|
|
2479
2542
|
></div>
|
|
2480
2543
|
<textarea
|
|
2481
|
-
autocomplete=${
|
|
2544
|
+
autocomplete=${Mt(this.autocomplete)}
|
|
2482
2545
|
?autofocus=${this.autofocus}
|
|
2483
2546
|
?disabled=${this.disabled}
|
|
2484
2547
|
aria-label=${this.label}
|
|
2485
2548
|
id="textarea"
|
|
2486
|
-
class=${
|
|
2487
|
-
maxlength=${
|
|
2488
|
-
minlength=${
|
|
2489
|
-
rows=${
|
|
2490
|
-
cols=${
|
|
2491
|
-
name=${
|
|
2492
|
-
placeholder=${
|
|
2549
|
+
class=${jt({monospace:this.monospace,"cursor-pointer":this._textareaPointerCursor})}
|
|
2550
|
+
maxlength=${Mt(this.maxLength)}
|
|
2551
|
+
minlength=${Mt(this.minLength)}
|
|
2552
|
+
rows=${Mt(this.rows)}
|
|
2553
|
+
cols=${Mt(this.cols)}
|
|
2554
|
+
name=${Mt(this.name)}
|
|
2555
|
+
placeholder=${Mt(this.placeholder)}
|
|
2493
2556
|
?readonly=${this.readonly}
|
|
2494
|
-
.style=${
|
|
2557
|
+
.style=${Pt({resize:this.resize})}
|
|
2495
2558
|
?required=${this.required}
|
|
2496
2559
|
spellcheck=${this.spellcheck}
|
|
2497
2560
|
@change=${this._handleChange}
|
|
@@ -2500,8 +2563,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2500
2563
|
@scroll=${this._handleScroll}
|
|
2501
2564
|
.value=${this._value}
|
|
2502
2565
|
></textarea>
|
|
2503
|
-
`}};
|
|
2566
|
+
`}};Zi.styles=Yi,Zi.formAssociated=!0,Zi.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},Xi([pt()],Zi.prototype,"autocomplete",void 0),Xi([pt({type:Boolean,reflect:!0})],Zi.prototype,"autofocus",void 0),Xi([pt({attribute:"default-value"})],Zi.prototype,"defaultValue",void 0),Xi([pt({type:Boolean,reflect:!0})],Zi.prototype,"disabled",void 0),Xi([pt({type:Boolean,reflect:!0})],Zi.prototype,"invalid",void 0),Xi([pt({attribute:!1})],Zi.prototype,"label",void 0),Xi([pt({type:Number})],Zi.prototype,"maxLength",void 0),Xi([pt({type:Number})],Zi.prototype,"minLength",void 0),Xi([pt({type:Number})],Zi.prototype,"rows",void 0),Xi([pt({type:Number})],Zi.prototype,"cols",void 0),Xi([pt()],Zi.prototype,"name",void 0),Xi([pt()],Zi.prototype,"placeholder",void 0),Xi([pt({type:Boolean,reflect:!0})],Zi.prototype,"readonly",void 0),Xi([pt()],Zi.prototype,"resize",void 0),Xi([pt({type:Boolean,reflect:!0})],Zi.prototype,"required",void 0),Xi([pt({type:Boolean})],Zi.prototype,"spellcheck",void 0),Xi([pt({type:Boolean,reflect:!0})],Zi.prototype,"monospace",void 0),Xi([pt()],Zi.prototype,"value",null),Xi([ft("#textarea")],Zi.prototype,"_textareaEl",void 0),Xi([vt()],Zi.prototype,"_value",void 0),Xi([vt()],Zi.prototype,"_textareaPointerCursor",void 0),Xi([vt()],Zi.prototype,"_shadow",void 0),Zi=Xi([kt("vscode-textarea")],Zi);const Qi=r(_t()),ts=[$t,n`
|
|
2504
2567
|
:host {
|
|
2568
|
+
display: inline-block;
|
|
2569
|
+
width: 320px;
|
|
2570
|
+
}
|
|
2571
|
+
|
|
2572
|
+
.root {
|
|
2505
2573
|
align-items: center;
|
|
2506
2574
|
background-color: var(--vscode-settings-textInputBackground, #313131);
|
|
2507
2575
|
border-color: var(
|
|
@@ -2513,13 +2581,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2513
2581
|
border-width: 1px;
|
|
2514
2582
|
box-sizing: border-box;
|
|
2515
2583
|
color: var(--vscode-settings-textInputForeground, #cccccc);
|
|
2516
|
-
display:
|
|
2584
|
+
display: flex;
|
|
2517
2585
|
max-width: 100%;
|
|
2518
2586
|
position: relative;
|
|
2519
|
-
width:
|
|
2587
|
+
width: 100%;
|
|
2520
2588
|
}
|
|
2521
2589
|
|
|
2522
|
-
:host([focused]) {
|
|
2590
|
+
:host([focused]) .root {
|
|
2523
2591
|
border-color: var(--vscode-focusBorder, #0078d4);
|
|
2524
2592
|
}
|
|
2525
2593
|
|
|
@@ -2555,7 +2623,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2555
2623
|
box-sizing: border-box;
|
|
2556
2624
|
color: var(--vscode-settings-textInputForeground, #cccccc);
|
|
2557
2625
|
display: block;
|
|
2558
|
-
font-family: var(--vscode-font-family, ${
|
|
2626
|
+
font-family: var(--vscode-font-family, ${Qi});
|
|
2559
2627
|
font-size: var(--vscode-font-size, 13px);
|
|
2560
2628
|
font-weight: var(--vscode-font-weight, 'normal');
|
|
2561
2629
|
line-height: 18px;
|
|
@@ -2589,7 +2657,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2589
2657
|
border-radius: 2px;
|
|
2590
2658
|
color: var(--vscode-button-foreground, #ffffff);
|
|
2591
2659
|
cursor: pointer;
|
|
2592
|
-
font-family: var(--vscode-font-family, ${
|
|
2660
|
+
font-family: var(--vscode-font-family, ${Qi});
|
|
2593
2661
|
font-size: var(--vscode-font-size, 13px);
|
|
2594
2662
|
font-weight: var(--vscode-font-weight, 'normal');
|
|
2595
2663
|
line-height: 20px;
|
|
@@ -2599,35 +2667,37 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2599
2667
|
input[type='file']::file-selector-button:hover {
|
|
2600
2668
|
background-color: var(--vscode-button-hoverBackground, #026ec1);
|
|
2601
2669
|
}
|
|
2602
|
-
`];var
|
|
2603
|
-
<
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2670
|
+
`];var es=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let is=class extends wt{set type(t){this._type=["color","date","datetime-local","email","file","month","number","password","search","tel","text","time","url","week"].includes(t)?t:"text"}get type(){return this._type}set value(t){"file"!==this.type&&(this._value=t,this._internals.setFormValue(t)),this.updateComplete.then((()=>{this._setValidityFromInput()}))}get value(){return this._value}set minlength(t){this.minLength=t}get minlength(){return this.minLength}set maxlength(t){this.maxLength=t}get maxlength(){return this.maxLength}get form(){return this._internals.form}get validity(){return this._internals.validity}get validationMessage(){return this._internals.validationMessage}get willValidate(){return this._internals.willValidate}checkValidity(){return this._setValidityFromInput(),this._internals.checkValidity()}reportValidity(){return this._setValidityFromInput(),this._internals.reportValidity()}get wrappedElement(){return this._inputEl}constructor(){super(),this.autocomplete=void 0,this.autofocus=!1,this.defaultValue="",this.disabled=!1,this.focused=!1,this.invalid=!1,this.label="",this.max=void 0,this.maxLength=void 0,this.min=void 0,this.minLength=void 0,this.multiple=!1,this.name=void 0,this.pattern=void 0,this.placeholder=void 0,this.readonly=!1,this.required=!1,this.step=void 0,this._value="",this._type="text",this._internals=this.attachInternals()}connectedCallback(){super.connectedCallback(),this.updateComplete.then((()=>{this._inputEl.checkValidity(),this._setValidityFromInput(),this._internals.setFormValue(this._inputEl.value)}))}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);["max","maxlength","min","minlength","pattern","required","step"].includes(t)&&this.updateComplete.then((()=>{this._setValidityFromInput()}))}formResetCallback(){this.value=this.defaultValue,this.requestUpdate()}formStateRestoreCallback(t,e){this.value=t}_dataChanged(){if(this._value=this._inputEl.value,"file"===this.type&&this._inputEl.files)for(const t of this._inputEl.files)this._internals.setFormValue(t);else this._internals.setFormValue(this._inputEl.value)}_setValidityFromInput(){this._inputEl&&this._internals.setValidity(this._inputEl.validity,this._inputEl.validationMessage,this._inputEl)}_onInput(){this._dataChanged(),this._setValidityFromInput()}_onChange(){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change"))}_onFocus(){this.focused=!0}_onBlur(){this.focused=!1}_onKeyDown(t){"Enter"===t.key&&this._internals.form&&this._internals.form?.requestSubmit()}render(){return U`
|
|
2671
|
+
<div class="root">
|
|
2672
|
+
<slot name="content-before"></slot>
|
|
2673
|
+
<input
|
|
2674
|
+
id="input"
|
|
2675
|
+
type=${this.type}
|
|
2676
|
+
?autofocus=${this.autofocus}
|
|
2677
|
+
autocomplete=${Mt(this.autocomplete)}
|
|
2678
|
+
aria-label=${this.label}
|
|
2679
|
+
?disabled=${this.disabled}
|
|
2680
|
+
max=${Mt(this.max)}
|
|
2681
|
+
maxlength=${Mt(this.maxLength)}
|
|
2682
|
+
min=${Mt(this.min)}
|
|
2683
|
+
minlength=${Mt(this.minLength)}
|
|
2684
|
+
?multiple=${this.multiple}
|
|
2685
|
+
name=${Mt(this.name)}
|
|
2686
|
+
pattern=${Mt(this.pattern)}
|
|
2687
|
+
placeholder=${Mt(this.placeholder)}
|
|
2688
|
+
?readonly=${this.readonly}
|
|
2689
|
+
?required=${this.required}
|
|
2690
|
+
step=${Mt(this.step)}
|
|
2691
|
+
.value=${this._value}
|
|
2692
|
+
@blur=${this._onBlur}
|
|
2693
|
+
@change=${this._onChange}
|
|
2694
|
+
@focus=${this._onFocus}
|
|
2695
|
+
@input=${this._onInput}
|
|
2696
|
+
@keydown=${this._onKeyDown}
|
|
2697
|
+
>
|
|
2698
|
+
<slot name="content-after"></slot>
|
|
2699
|
+
</div>
|
|
2700
|
+
`}};is.styles=ts,is.formAssociated=!0,is.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},es([pt()],is.prototype,"autocomplete",void 0),es([pt({type:Boolean,reflect:!0})],is.prototype,"autofocus",void 0),es([pt({attribute:"default-value"})],is.prototype,"defaultValue",void 0),es([pt({type:Boolean,reflect:!0})],is.prototype,"disabled",void 0),es([pt({type:Boolean,reflect:!0})],is.prototype,"focused",void 0),es([pt({type:Boolean,reflect:!0})],is.prototype,"invalid",void 0),es([pt({attribute:!1})],is.prototype,"label",void 0),es([pt({type:Number})],is.prototype,"max",void 0),es([pt({type:Number})],is.prototype,"maxLength",void 0),es([pt({type:Number})],is.prototype,"min",void 0),es([pt({type:Number})],is.prototype,"minLength",void 0),es([pt({type:Boolean,reflect:!0})],is.prototype,"multiple",void 0),es([pt({reflect:!0})],is.prototype,"name",void 0),es([pt()],is.prototype,"pattern",void 0),es([pt()],is.prototype,"placeholder",void 0),es([pt({type:Boolean,reflect:!0})],is.prototype,"readonly",void 0),es([pt({type:Boolean,reflect:!0})],is.prototype,"required",void 0),es([pt({type:Number})],is.prototype,"step",void 0),es([pt({reflect:!0})],is.prototype,"type",null),es([pt()],is.prototype,"value",null),es([ft("#input")],is.prototype,"_inputEl",void 0),es([vt()],is.prototype,"_value",void 0),es([vt()],is.prototype,"_type",void 0),is=es([kt("vscode-textfield")],is);const ss=[$t,n`
|
|
2631
2701
|
:host {
|
|
2632
2702
|
display: inline-flex;
|
|
2633
2703
|
}
|
|
@@ -2696,35 +2766,43 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2696
2766
|
slot.textOnly:not(.empty) {
|
|
2697
2767
|
padding: 0 5px;
|
|
2698
2768
|
}
|
|
2699
|
-
`];var
|
|
2769
|
+
`];var os=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let rs=class extends wt{constructor(){super(...arguments),this.icon="",this.label=void 0,this.toggleable=!1,this.checked=!1,this._isSlotEmpty=!0}_handleSlotChange(){this._isSlotEmpty=!((this._assignedNodes?.length??0)>0)}_handleButtonClick(){this.toggleable&&(this.checked=!this.checked,this.dispatchEvent(new Event("change")))}render(){const t=this.checked?"true":"false";return U`
|
|
2700
2770
|
<button
|
|
2701
2771
|
type="button"
|
|
2702
|
-
aria-label=${
|
|
2703
|
-
role=${
|
|
2704
|
-
aria-checked=${
|
|
2705
|
-
class=${
|
|
2772
|
+
aria-label=${Mt(this.label)}
|
|
2773
|
+
role=${Mt(this.toggleable?"switch":void 0)}
|
|
2774
|
+
aria-checked=${Mt(this.toggleable?t:void 0)}
|
|
2775
|
+
class=${jt({checked:this.toggleable&&this.checked})}
|
|
2706
2776
|
@click=${this._handleButtonClick}
|
|
2707
2777
|
>
|
|
2708
2778
|
${this.icon?U`<vscode-icon name=${this.icon}></vscode-icon>`:q}
|
|
2709
2779
|
<slot
|
|
2710
2780
|
@slotchange=${this._handleSlotChange}
|
|
2711
|
-
class=${
|
|
2781
|
+
class=${jt({empty:this._isSlotEmpty,textOnly:!this.icon})}
|
|
2712
2782
|
></slot>
|
|
2713
2783
|
</button>
|
|
2714
|
-
`}};
|
|
2784
|
+
`}};rs.styles=ss,os([pt({reflect:!0})],rs.prototype,"icon",void 0),os([pt()],rs.prototype,"label",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"toggleable",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"checked",void 0),os([vt()],rs.prototype,"_isSlotEmpty",void 0),os([function(t){return(e,i)=>{const{slot:s}={},o="slot"+(s?`[name=${s}]`:":not([name])");return bt(0,0,{get(){const e=this.renderRoot?.querySelector(o);return e?.assignedNodes(t)??[]}})}}()],rs.prototype,"_assignedNodes",void 0),rs=os([kt("vscode-toolbar-button")],rs);const ns=[$t,n`
|
|
2715
2785
|
:host {
|
|
2786
|
+
display: block;
|
|
2787
|
+
}
|
|
2788
|
+
|
|
2789
|
+
div {
|
|
2716
2790
|
gap: 4px;
|
|
2717
2791
|
display: flex;
|
|
2718
2792
|
align-items: center;
|
|
2719
2793
|
}
|
|
2720
|
-
`];var
|
|
2794
|
+
`];var ls=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};let hs=class extends wt{render(){return U`<div><slot></slot></div>`}};hs.styles=ns,hs=ls([kt("vscode-toolbar-container")],hs);let as=class extends Event{constructor(t,e,i){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.callback=e,this.subscribe=i??!1}};let cs=class{constructor(t,e,i,s){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(t,e)=>{this.unsubscribe&&(this.unsubscribe!==e&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=t,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(t,e)),this.unsubscribe=e},this.host=t,void 0!==e.context){const t=e;this.context=t.context,this.callback=t.callback,this.subscribe=t.subscribe??!1}else this.context=e,this.callback=i,this.subscribe=s??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new as(this.context,this.t,this.subscribe))}};class ds{get value(){return this.o}set value(t){this.setValue(t)}setValue(t,e=!1){const i=e||!Object.is(t,this.o);this.o=t,i&&this.updateObservers()}constructor(t){this.subscriptions=new Map,this.updateObservers=()=>{for(const[t,{disposer:e}]of this.subscriptions)t(this.o,e)},void 0!==t&&(this.value=t)}addCallback(t,e,i){if(!i)return void t(this.value);this.subscriptions.has(t)||this.subscriptions.set(t,{disposer:()=>{this.subscriptions.delete(t)},consumerHost:e});const{disposer:s}=this.subscriptions.get(t);t(this.value,s)}clearCallbacks(){this.subscriptions.clear()}}let us=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class ps extends ds{constructor(t,e,i){super(void 0!==e.context?e.initialValue:i),this.onContextRequest=t=>{const e=t.composedPath()[0];t.context===this.context&&e!==this.host&&(t.stopPropagation(),this.addCallback(t.callback,e,t.subscribe))},this.onProviderRequest=t=>{const e=t.composedPath()[0];if(t.context!==this.context||e===this.host)return;const i=new Set;for(const[t,{consumerHost:e}]of this.subscriptions)i.has(t)||(i.add(t),e.dispatchEvent(new as(this.context,t,!0)));t.stopPropagation()},this.host=t,void 0!==e.context?this.context=e.context:this.context=e,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new us(this.context))}}function vs({context:t}){return(e,i)=>{const s=new WeakMap;if("object"==typeof i)return i.addInitializer((function(){s.set(this,new ps(this,{context:t}))})),{get(){return e.get.call(this)},set(t){return s.get(this)?.setValue(t),e.set.call(this,t)},init(t){return s.get(this)?.setValue(t),t}};{e.constructor.addInitializer((e=>{s.set(e,new ps(e,{context:t}))}));const o=Object.getOwnPropertyDescriptor(e,i);let r;if(void 0===o){const t=new WeakMap;r={get(){return t.get(this)},set(e){s.get(this).setValue(e),t.set(this,e)},configurable:!0,enumerable:!0}}else{const t=o.set;r={...o,set(e){s.get(this).setValue(e),t?.call(this,e)}}}return void Object.defineProperty(e,i,r)}}}function bs({context:t,subscribe:e}){return(i,s)=>{"object"==typeof s?s.addInitializer((function(){new cs(this,{context:t,callback:t=>{i.set.call(this,t)},subscribe:e})})):i.constructor.addInitializer((i=>{new cs(i,{context:t,callback:t=>{i[s]=t},subscribe:e})}))}}const fs=[$t,n`
|
|
2721
2795
|
:host {
|
|
2722
2796
|
--vsc-tree-item-arrow-display: flex;
|
|
2723
2797
|
--internal-selectionBackground: var(
|
|
2724
|
-
--vscode-list-inactiveSelectionBackground
|
|
2798
|
+
--vscode-list-inactiveSelectionBackground,
|
|
2799
|
+
#37373d
|
|
2800
|
+
);
|
|
2801
|
+
--internal-selectionForeground: var(--vscode-foreground, #cccccc);
|
|
2802
|
+
--internal-selectionIconForeground: var(
|
|
2803
|
+
--vscode-icon-foreground,
|
|
2804
|
+
#cccccc
|
|
2725
2805
|
);
|
|
2726
|
-
--internal-selectionForeground: var(--vscode-foreground);
|
|
2727
|
-
--internal-selectionIconForeground: var(--vscode-icon-foreground);
|
|
2728
2806
|
--internal-defaultIndentGuideDisplay: none;
|
|
2729
2807
|
--internal-highlightedIndentGuideDisplay: block;
|
|
2730
2808
|
|
|
@@ -2738,13 +2816,16 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2738
2816
|
|
|
2739
2817
|
:host(:focus-within) {
|
|
2740
2818
|
--internal-selectionBackground: var(
|
|
2741
|
-
--vscode-list-activeSelectionBackground
|
|
2819
|
+
--vscode-list-activeSelectionBackground,
|
|
2820
|
+
#04395e
|
|
2742
2821
|
);
|
|
2743
2822
|
--internal-selectionForeground: var(
|
|
2744
|
-
--vscode-list-activeSelectionForeground
|
|
2823
|
+
--vscode-list-activeSelectionForeground,
|
|
2824
|
+
#ffffff
|
|
2745
2825
|
);
|
|
2746
2826
|
--internal-selectionIconForeground: var(
|
|
2747
|
-
--vscode-list-activeSelectionIconForeground
|
|
2827
|
+
--vscode-list-activeSelectionIconForeground,
|
|
2828
|
+
#ffffff
|
|
2748
2829
|
);
|
|
2749
2830
|
}
|
|
2750
2831
|
|
|
@@ -2763,9 +2844,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2763
2844
|
--internal-defaultIndentGuideDisplay: block;
|
|
2764
2845
|
--internal-highlightedIndentGuideDisplay: block;
|
|
2765
2846
|
}
|
|
2766
|
-
`],
|
|
2847
|
+
`],gs="vscode-list",ms=Symbol("configContext"),xs=t=>t instanceof Element&&t.matches("vscode-tree-item"),ys=(t,e)=>{const i=e.length,s=(o=t)instanceof Element&&o.matches("vscode-tree")?-1:t.level;var o;"branch"in t&&(t.branch=i>0),e.forEach(((e,i)=>{e.path="path"in t?[...t.path,i]:[i],e.level=s+1,e.dataset.path=e.path.join(".")}))},ws=t=>{const e=t.lastElementChild;return e&&xs(e)?e.branch&&e.open?ws(e):e:t},ks=t=>{if(!t.parentElement)return null;if(!xs(t.parentElement))return null;const e=$s(t.parentElement);return e||ks(t.parentElement)},$s=t=>{let e=t.nextElementSibling;for(;e&&!xs(e);)e=e.nextElementSibling;return e};function _s(t){return t.parentElement&&xs(t.parentElement)?t.parentElement:null}var Ss=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const Bs="singleClick",Cs="doubleClick",Os="none",zs=[" ","ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter","Escape","Shift"];let As=class extends wt{constructor(){super(),this.expandMode="singleClick",this.hideArrows=!1,this.indent=8,this.indentGuides="onHover",this.multiSelect=!1,this._treeContextState={isShiftPressed:!1,activeItem:null,selectedItems:new Set,allItems:null,itemListUpToDate:!1,focusedItem:null,prevFocusedItem:null,hasBranchItem:!1,rootElement:this,highlightedItems:new Set,highlightIndentGuides:()=>{this._highlightIndentGuides()},emitSelectEvent:()=>{this._emitSelectEvent()}},this._configContext={hideArrows:this.hideArrows,expandMode:this.expandMode,indent:this.indent,indentGuides:this.indentGuides,multiSelect:this.multiSelect},this._handleComponentKeyDown=t=>{const e=t.key;switch(zs.includes(e)&&(t.stopPropagation(),t.preventDefault()),e){case" ":case"Enter":this._handleEnterPress();break;case"ArrowDown":this._handleArrowDownPress();break;case"ArrowLeft":this._handleArrowLeftPress(t);break;case"ArrowRight":this._handleArrowRightPress();break;case"ArrowUp":this._handleArrowUpPress();break;case"Shift":this._handleShiftPress()}},this._handleComponentKeyUp=t=>{"Shift"===t.key&&(this._treeContextState.isShiftPressed=!1)},this._handleSlotChange=()=>{this._treeContextState.itemListUpToDate=!1,ys(this,this._assignedTreeItems),this.updateComplete.then((()=>{if(null===this._treeContextState.activeItem){const t=this.querySelector(":scope > vscode-tree-item");t&&(t.active=!0)}}))},this.addEventListener("keyup",this._handleComponentKeyUp),this.addEventListener("keydown",this._handleComponentKeyDown)}connectedCallback(){super.connectedCallback(),this.role="tree"}willUpdate(t){this._updateConfigContext(t),t.has("multiSelect")&&(this.ariaMultiSelectable=this.multiSelect?"true":"false")}expandAll(){this.querySelectorAll("vscode-tree-item").forEach((t=>{t.branch&&(t.open=!0)}))}collapseAll(){this.querySelectorAll("vscode-tree-item").forEach((t=>{t.branch&&(t.open=!1)}))}updateHasBranchItemFlag(){const t=this._assignedTreeItems.some((t=>t.branch));this._treeContextState={...this._treeContextState,hasBranchItem:t}}_emitSelectEvent(){const t=new CustomEvent("vsc-tree-select",{detail:Array.from(this._treeContextState.selectedItems)});this.dispatchEvent(t)}_highlightIndentGuideOfItem(t){if(t.branch&&t.open)t.highlightedGuides=!0,this._treeContextState.highlightedItems?.add(t);else{const e=_s(t);e&&(e.highlightedGuides=!0,this._treeContextState.highlightedItems?.add(e))}}_highlightIndentGuides(){this.indentGuides!==Os&&(this._treeContextState.highlightedItems?.forEach((t=>t.highlightedGuides=!1)),this._treeContextState.highlightedItems?.clear(),this._treeContextState.activeItem&&this._highlightIndentGuideOfItem(this._treeContextState.activeItem),this._treeContextState.selectedItems.forEach((t=>{this._highlightIndentGuideOfItem(t)})))}_updateConfigContext(t){const{hideArrows:e,expandMode:i,indent:s,indentGuides:o,multiSelect:r}=this;t.has("hideArrows")&&(this._configContext={...this._configContext,hideArrows:e}),t.has("expandMode")&&(this._configContext={...this._configContext,expandMode:i}),t.has("indent")&&(this._configContext={...this._configContext,indent:s}),t.has("indentGuides")&&(this._configContext={...this._configContext,indentGuides:o}),t.has("multiSelect")&&(this._configContext={...this._configContext,multiSelect:r})}_focusItem(t){t.active=!0,t.updateComplete.then((()=>{t.focus(),this._highlightIndentGuides()}))}_focusPrevItem(){if(this._treeContextState.focusedItem){const t=(t=>{const{parentElement:e}=t;if(!e||!xs(t))return null;let i=t.previousElementSibling;for(;i&&!xs(i);)i=i.previousElementSibling;if(!i&&xs(e))return e;if(i&&i.branch&&i.open)return ws(i);return i})(this._treeContextState.focusedItem);t&&(this._focusItem(t),this._treeContextState.isShiftPressed&&this.multiSelect&&(t.selected=!t.selected,this._emitSelectEvent()))}}_focusNextItem(){if(this._treeContextState.focusedItem){const t=(t=>{const{parentElement:e}=t;if(!e||!xs(t))return null;let i;if(t.branch&&t.open){const e=t.querySelector("vscode-tree-item");e?i=e:(i=$s(t),i||(i=ks(t)))}else i=$s(t),i||(i=ks(t));return i||t})(this._treeContextState.focusedItem);t&&(this._focusItem(t),this._treeContextState.isShiftPressed&&this.multiSelect&&(t.selected=!t.selected,this._emitSelectEvent()))}}_handleArrowRightPress(){if(!this._treeContextState.focusedItem)return;const{focusedItem:t}=this._treeContextState;t.branch&&(t.open?this._focusNextItem():t.open=!0)}_handleArrowLeftPress(t){if(t.ctrlKey)return void this.collapseAll();if(!this._treeContextState.focusedItem)return;const{focusedItem:e}=this._treeContextState,i=_s(e);e.branch&&e.open?e.open=!1:i&&i.branch&&this._focusItem(i)}_handleArrowDownPress(){this._treeContextState.focusedItem?this._focusNextItem():this._focusItem(this._assignedTreeItems[0])}_handleArrowUpPress(){this._treeContextState.focusedItem?this._focusPrevItem():this._focusItem(this._assignedTreeItems[0])}_handleEnterPress(){const{focusedItem:t}=this._treeContextState;t&&(this._treeContextState.selectedItems.forEach((t=>t.selected=!1)),this._treeContextState.selectedItems.clear(),this._highlightIndentGuides(),t.selected=!0,this._emitSelectEvent(),t.branch&&(t.open=!t.open))}_handleShiftPress(){this._treeContextState.isShiftPressed=!0}render(){return U`<div>
|
|
2767
2848
|
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
2768
|
-
</div>`}};
|
|
2849
|
+
</div>`}};As.styles=fs,Ss([pt({type:String,attribute:"expand-mode"})],As.prototype,"expandMode",void 0),Ss([pt({type:Boolean,reflect:!0,attribute:"hide-arrows"})],As.prototype,"hideArrows",void 0),Ss([pt({type:Number,reflect:!0})],As.prototype,"indent",void 0),Ss([pt({type:String,attribute:"indent-guides",useDefault:!0,reflect:!0})],As.prototype,"indentGuides",void 0),Ss([pt({type:Boolean,reflect:!0,attribute:"multi-select"})],As.prototype,"multiSelect",void 0),Ss([vs({context:gs})],As.prototype,"_treeContextState",void 0),Ss([vs({context:ms})],As.prototype,"_configContext",void 0),Ss([mt({selector:"vscode-tree-item"})],As.prototype,"_assignedTreeItems",void 0),As=Ss([kt("vscode-tree")],As);const Es=[$t,n`
|
|
2769
2850
|
:host {
|
|
2770
2851
|
--hover-outline-color: transparent;
|
|
2771
2852
|
--hover-outline-style: solid;
|
|
@@ -2780,23 +2861,31 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2780
2861
|
user-select: none;
|
|
2781
2862
|
}
|
|
2782
2863
|
|
|
2864
|
+
::slotted(vscode-icon) {
|
|
2865
|
+
display: block;
|
|
2866
|
+
}
|
|
2867
|
+
|
|
2783
2868
|
.root {
|
|
2784
2869
|
display: block;
|
|
2785
2870
|
}
|
|
2786
2871
|
|
|
2787
2872
|
.wrapper {
|
|
2788
2873
|
align-items: flex-start;
|
|
2874
|
+
color: var(--vscode-foreground, #cccccc);
|
|
2789
2875
|
display: flex;
|
|
2790
|
-
font-family: var(--vscode-font-family);
|
|
2791
|
-
font-size: var(--vscode-font-size);
|
|
2792
|
-
font-weight: var(--vscode-font-weight);
|
|
2876
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
2877
|
+
font-size: var(--vscode-font-size, 13px);
|
|
2878
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
2793
2879
|
outline-offset: -1px;
|
|
2794
2880
|
padding-right: 12px;
|
|
2795
2881
|
}
|
|
2796
2882
|
|
|
2797
2883
|
.wrapper:hover {
|
|
2798
|
-
background-color: var(--vscode-list-hoverBackground);
|
|
2799
|
-
color: var(
|
|
2884
|
+
background-color: var(--vscode-list-hoverBackground, #2a2d2e);
|
|
2885
|
+
color: var(
|
|
2886
|
+
--vscode-list-hoverForeground,
|
|
2887
|
+
var(--vscode-foreground, #cccccc)
|
|
2888
|
+
);
|
|
2800
2889
|
}
|
|
2801
2890
|
|
|
2802
2891
|
:host([selected]) .wrapper {
|
|
@@ -2815,7 +2904,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2815
2904
|
:host(:focus) .wrapper.active {
|
|
2816
2905
|
outline-color: var(
|
|
2817
2906
|
--vscode-list-focusAndSelectionOutline,
|
|
2818
|
-
var(--vscode-list-focusOutline)
|
|
2907
|
+
var(--vscode-list-focusOutline, #0078d4)
|
|
2819
2908
|
);
|
|
2820
2909
|
outline-style: solid;
|
|
2821
2910
|
outline-width: 1px;
|
|
@@ -2833,7 +2922,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2833
2922
|
|
|
2834
2923
|
.arrow-container svg {
|
|
2835
2924
|
display: block;
|
|
2836
|
-
fill: var(--vscode-icon-foreground);
|
|
2925
|
+
fill: var(--vscode-icon-foreground, #cccccc);
|
|
2837
2926
|
}
|
|
2838
2927
|
|
|
2839
2928
|
.arrow-container.icon-rotated svg {
|
|
@@ -2847,7 +2936,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2847
2936
|
.icon-container {
|
|
2848
2937
|
align-items: center;
|
|
2849
2938
|
display: flex;
|
|
2850
|
-
|
|
2939
|
+
margin-bottom: 3px;
|
|
2940
|
+
margin-top: 3px;
|
|
2941
|
+
overflow: hidden;
|
|
2851
2942
|
}
|
|
2852
2943
|
|
|
2853
2944
|
.icon-container slot {
|
|
@@ -2855,7 +2946,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2855
2946
|
}
|
|
2856
2947
|
|
|
2857
2948
|
.icon-container.has-icon {
|
|
2949
|
+
height: 16px;
|
|
2858
2950
|
margin-right: 6px;
|
|
2951
|
+
width: 16px;
|
|
2859
2952
|
}
|
|
2860
2953
|
|
|
2861
2954
|
.children {
|
|
@@ -2863,7 +2956,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2863
2956
|
}
|
|
2864
2957
|
|
|
2865
2958
|
.children.guide:before {
|
|
2866
|
-
background-color: var(
|
|
2959
|
+
background-color: var(
|
|
2960
|
+
--vscode-tree-inactiveIndentGuidesStroke,
|
|
2961
|
+
rgba(88, 88, 88, 0.4)
|
|
2962
|
+
);
|
|
2867
2963
|
content: '';
|
|
2868
2964
|
display: none;
|
|
2869
2965
|
height: 100%;
|
|
@@ -2880,7 +2976,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2880
2976
|
|
|
2881
2977
|
.children.guide.highlighted-guide:before {
|
|
2882
2978
|
display: var(--internal-highlightedIndentGuideDisplay);
|
|
2883
|
-
background-color: var(--vscode-tree-indentGuidesStroke);
|
|
2979
|
+
background-color: var(--vscode-tree-indentGuidesStroke, #585858);
|
|
2884
2980
|
}
|
|
2885
2981
|
|
|
2886
2982
|
.content {
|
|
@@ -2897,7 +2993,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2897
2993
|
:host([branch][open]) ::slotted(vscode-tree-item) {
|
|
2898
2994
|
display: block;
|
|
2899
2995
|
}
|
|
2900
|
-
`];var
|
|
2996
|
+
`];var Is=function(t,e,i,s){for(var o,r=arguments.length,n=r<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,i):s,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,i,n):o(e,i))||n);return r>3&&n&&Object.defineProperty(e,i,n),n};const js=U`<svg
|
|
2901
2997
|
width="16"
|
|
2902
2998
|
height="16"
|
|
2903
2999
|
viewBox="0 0 16 16"
|
|
@@ -2908,19 +3004,19 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2908
3004
|
clip-rule="evenodd"
|
|
2909
3005
|
d="M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z"
|
|
2910
3006
|
/>
|
|
2911
|
-
</svg>`;function
|
|
3007
|
+
</svg>`;function Ms(t){return t.parentElement&&t.parentElement instanceof Ps?t.parentElement:null}let Ps=class extends wt{set selected(t){this._selected=t,this._treeContextState.selectedItems.add(this),this.ariaSelected=t?"true":"false"}get selected(){return this._selected}set path(t){this._path=t}get path(){return this._path}constructor(){super(),this.active=!1,this.branch=!1,this.hasActiveItem=!1,this.hasSelectedItem=!1,this.highlightedGuides=!1,this.open=!1,this.level=0,this._selected=!1,this._path=[],this._hasBranchIcon=!1,this._hasBranchOpenedIcon=!1,this._hasLeafIcon=!1,this._treeContextState={isShiftPressed:!1,selectedItems:new Set,allItems:null,itemListUpToDate:!1,focusedItem:null,prevFocusedItem:null,hasBranchItem:!1,rootElement:null,activeItem:null},this._handleMainSlotChange=()=>{this._mainSlotChange(),this._treeContextState.itemListUpToDate=!1},this._handleComponentFocus=()=>{this._treeContextState.focusedItem&&this._treeContextState.focusedItem!==this&&(this._treeContextState.isShiftPressed||(this._treeContextState.prevFocusedItem=this._treeContextState.focusedItem),this._treeContextState.focusedItem=null),this._treeContextState.focusedItem=this},this._internals=this.attachInternals(),this.addEventListener("focus",this._handleComponentFocus)}connectedCallback(){super.connectedCallback(),this._mainSlotChange(),this.role="treeitem",this.ariaDisabled="false"}willUpdate(t){t.has("active")&&this._toggleActiveState(),(t.has("open")||t.has("branch"))&&this._setAriaExpanded()}_setAriaExpanded(){this.branch?this.ariaExpanded=this.open?"true":"false":this.ariaExpanded=null}_setHasActiveItemFlagOnParent(t,e){const i=Ms(t);i&&(i.hasActiveItem=e)}_toggleActiveState(){this.active?(this._treeContextState.activeItem&&(this._treeContextState.activeItem.active=!1,this._setHasActiveItemFlagOnParent(this._treeContextState.activeItem,!1)),this._treeContextState.activeItem=this,this._setHasActiveItemFlagOnParent(this,!0),this.tabIndex=0,this._internals.states.add("active")):(this._treeContextState.activeItem===this&&(this._treeContextState.activeItem=null,this._setHasActiveItemFlagOnParent(this,!1)),this.tabIndex=-1,this._internals.states.delete("active"))}_selectItem(t){const{selectedItems:e}=this._treeContextState,{multiSelect:i}=this._configContext;i&&t?this.selected?(this.selected=!1,e.delete(this)):(this.selected=!0,e.add(this)):(e.forEach((t=>t.selected=!1)),e.clear(),this.selected=!0,e.add(this))}_selectRange(){const t=this._treeContextState.prevFocusedItem;if(!t||t===this)return;this._treeContextState.itemListUpToDate||(this._treeContextState.allItems=this._treeContextState.rootElement.querySelectorAll("vscode-tree-item"),this._treeContextState.allItems&&this._treeContextState.allItems.forEach(((t,e)=>{t.dataset.score=e.toString()})),this._treeContextState.itemListUpToDate=!0);let e=+(t.dataset.score??-1),i=+(this.dataset.score??-1);e>i&&([e,i]=[i,e]),this._treeContextState.selectedItems.forEach((t=>t.selected=!1)),this._treeContextState.selectedItems.clear(),this._selectItemsAndAllVisibleDescendants(e,i)}_selectItemsAndAllVisibleDescendants(t,e){let i=t;for(;i<=e;)if(this._treeContextState.allItems){const t=this._treeContextState.allItems[i];if(t.branch&&!t.open){t.selected=!0;i+=t.querySelectorAll("vscode-tree-item").length}else t.branch&&t.open?(t.selected=!0,i+=this._selectItemsAndAllVisibleDescendants(i+1,e)):(t.selected=!0,i+=1)}return i}_mainSlotChange(){this._initiallyAssignedTreeItems.forEach((t=>{t.setAttribute("slot","children")}))}_handleChildrenSlotChange(){ys(this,this._childrenTreeItems),this._treeContextState.rootElement&&this._treeContextState.rootElement.updateHasBranchItemFlag()}_handleContentClick(t){t.stopPropagation();const e=t.ctrlKey,i=t.shiftKey;i&&this._configContext.multiSelect?(this._selectRange(),this._treeContextState.emitSelectEvent?.(),this.updateComplete.then((()=>{this._treeContextState.highlightIndentGuides?.()}))):(this._selectItem(e),this._treeContextState.emitSelectEvent?.(),this.updateComplete.then((()=>{this._treeContextState.highlightIndentGuides?.()})),this._configContext.expandMode===Bs&&(!this.branch||this._configContext.multiSelect&&e||(this.open=!this.open))),this.active=!0,i||(this._treeContextState.prevFocusedItem=this)}_handleDoubleClick(t){this._configContext.expandMode===Cs&&(!this.branch||this._configContext.multiSelect&&t.ctrlKey||(this.open=!this.open))}_handleIconSlotChange(t){const e=t.target,i=e.assignedElements().length>0;switch(e.name){case"icon-branch":this._hasBranchIcon=i;break;case"icon-branch-opened":this._hasBranchOpenedIcon=i;break;case"icon-leaf":this._hasLeafIcon=i}}render(){const{hideArrows:t,indent:e,indentGuides:i}=this._configContext,{hasBranchItem:s}=this._treeContextState;let o=3+this.level*e;const r=t?3:13,n=3+this.level*e+r;this.branch||t||!s||(o+=30);const l=this._hasBranchIcon&&this.branch||this._hasBranchOpenedIcon&&this.branch&&this.open||this._hasLeafIcon&&!this.branch,h={wrapper:!0,active:this.active},a={children:!0,guide:i!==Os,"default-guide":i!==Os,"highlighted-guide":this.highlightedGuides},c={"icon-container":!0,"has-icon":l};return U` <div class="root">
|
|
2912
3008
|
<div
|
|
2913
|
-
class=${
|
|
3009
|
+
class=${jt(h)}
|
|
2914
3010
|
@click=${this._handleContentClick}
|
|
2915
3011
|
@dblclick=${this._handleDoubleClick}
|
|
2916
|
-
.style=${
|
|
3012
|
+
.style=${Pt({paddingLeft:`${o}px`})}
|
|
2917
3013
|
>
|
|
2918
3014
|
${this.branch&&!t?U`<div
|
|
2919
|
-
class=${
|
|
3015
|
+
class=${jt({"arrow-container":!0,"icon-rotated":this.open})}
|
|
2920
3016
|
>
|
|
2921
|
-
${
|
|
3017
|
+
${js}
|
|
2922
3018
|
</div>`:q}
|
|
2923
|
-
<div class=${
|
|
3019
|
+
<div class=${jt(c)}>
|
|
2924
3020
|
${this.branch&&!this.open?U`<slot
|
|
2925
3021
|
name="icon-branch"
|
|
2926
3022
|
@slotchange=${this._handleIconSlotChange}
|
|
@@ -2939,8 +3035,8 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2939
3035
|
</div>
|
|
2940
3036
|
</div>
|
|
2941
3037
|
<div
|
|
2942
|
-
class=${
|
|
2943
|
-
.style=${
|
|
3038
|
+
class=${jt(a)}
|
|
3039
|
+
.style=${Pt({"--indentation-guide-left":`${n}px`})}
|
|
2944
3040
|
role="group"
|
|
2945
3041
|
part="children"
|
|
2946
3042
|
>
|
|
@@ -2949,4 +3045,4 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2949
3045
|
@slotchange=${this._handleChildrenSlotChange}
|
|
2950
3046
|
></slot>
|
|
2951
3047
|
</div>
|
|
2952
|
-
</div>`}};
|
|
3048
|
+
</div>`}};Ps.styles=Es,Is([pt({type:Boolean})],Ps.prototype,"active",void 0),Is([pt({type:Boolean,reflect:!0})],Ps.prototype,"branch",void 0),Is([pt({type:Boolean})],Ps.prototype,"hasActiveItem",void 0),Is([pt({type:Boolean})],Ps.prototype,"hasSelectedItem",void 0),Is([pt({type:Boolean})],Ps.prototype,"highlightedGuides",void 0),Is([pt({type:Boolean,reflect:!0})],Ps.prototype,"open",void 0),Is([pt({type:Number,reflect:!0})],Ps.prototype,"level",void 0),Is([pt({type:Boolean,reflect:!0})],Ps.prototype,"selected",null),Is([vt()],Ps.prototype,"_hasBranchIcon",void 0),Is([vt()],Ps.prototype,"_hasBranchOpenedIcon",void 0),Is([vt()],Ps.prototype,"_hasLeafIcon",void 0),Is([bs({context:gs,subscribe:!0})],Ps.prototype,"_treeContextState",void 0),Is([bs({context:ms,subscribe:!0})],Ps.prototype,"_configContext",void 0),Is([mt({selector:"vscode-tree-item"})],Ps.prototype,"_initiallyAssignedTreeItems",void 0),Is([mt({selector:"vscode-tree-item",slot:"children"})],Ps.prototype,"_childrenTreeItems",void 0),Ps=Is([kt("vscode-tree-item")],Ps);export{Ct as VscodeBadge,Lt as VscodeButton,Ht as VscodeButtonGroup,Qt as VscodeCheckbox,ie as VscodeCheckboxGroup,re as VscodeCollapsible,de as VscodeContextMenu,he as VscodeContextMenuItem,ve as VscodeDivider,me as VscodeFormContainer,we as VscodeFormGroup,Se as VscodeFormHelper,Nt as VscodeIcon,Ae as VscodeLabel,si as VscodeMultiSelect,Le as VscodeOption,ni as VscodeProgressRing,ai as VscodeRadio,ui as VscodeRadioGroup,Xe as VscodeScrollable,vi as VscodeSingleSelect,wi as VscodeSplitLayout,_i as VscodeTabHeader,Ci as VscodeTabPanel,qi as VscodeTable,Ai as VscodeTableBody,ji as VscodeTableCell,Di as VscodeTableHeader,Ni as VscodeTableHeaderCell,Li as VscodeTableRow,Ji as VscodeTabs,Zi as VscodeTextarea,is as VscodeTextfield,rs as VscodeToolbarButton,hs as VscodeToolbarContainer,As as VscodeTree,Ps as VscodeTreeItem};
|