@vscode-elements/elements 2.0.0-pre.1 → 2.0.0-pre.3
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/README.md +5 -1
- package/custom-elements.json +3512 -1943
- package/dist/bundled.js +1179 -947
- package/dist/includes/VscElement.d.ts +9 -1
- package/dist/includes/VscElement.d.ts.map +1 -1
- package/dist/includes/VscElement.js +38 -5
- package/dist/includes/VscElement.js.map +1 -1
- package/dist/includes/form-button-widget/LabelledCheckboxOrRadio.d.ts.map +1 -1
- package/dist/includes/form-button-widget/base.styles.js +8 -8
- package/dist/includes/form-button-widget/base.styles.js.map +1 -1
- package/dist/includes/uniqueId.d.ts.map +1 -1
- package/dist/includes/vscode-select/OptionListController.d.ts +61 -0
- package/dist/includes/vscode-select/OptionListController.d.ts.map +1 -0
- package/dist/includes/vscode-select/OptionListController.js +373 -0
- package/dist/includes/vscode-select/OptionListController.js.map +1 -0
- package/dist/includes/vscode-select/helpers.d.ts +4 -2
- package/dist/includes/vscode-select/helpers.d.ts.map +1 -1
- package/dist/includes/vscode-select/helpers.js +26 -0
- package/dist/includes/vscode-select/helpers.js.map +1 -1
- package/dist/includes/vscode-select/styles.d.ts.map +1 -1
- package/dist/includes/vscode-select/styles.js +137 -86
- package/dist/includes/vscode-select/styles.js.map +1 -1
- package/dist/includes/vscode-select/template-elements.d.ts +1 -0
- package/dist/includes/vscode-select/template-elements.d.ts.map +1 -1
- package/dist/includes/vscode-select/template-elements.js +14 -1
- package/dist/includes/vscode-select/template-elements.js.map +1 -1
- package/dist/includes/vscode-select/types.d.ts +11 -7
- package/dist/includes/vscode-select/types.d.ts.map +1 -1
- package/dist/includes/vscode-select/types.js.map +1 -1
- package/dist/includes/vscode-select/vscode-select-base.d.ts +42 -31
- package/dist/includes/vscode-select/vscode-select-base.d.ts.map +1 -1
- package/dist/includes/vscode-select/vscode-select-base.js +379 -245
- package/dist/includes/vscode-select/vscode-select-base.js.map +1 -1
- package/dist/main.d.ts +4 -0
- package/dist/main.d.ts.map +1 -1
- package/dist/main.js +4 -0
- package/dist/main.js.map +1 -1
- package/dist/vscode-badge/vscode-badge.d.ts.map +1 -1
- package/dist/vscode-badge/vscode-badge.js +2 -2
- package/dist/vscode-badge/vscode-badge.js.map +1 -1
- package/dist/vscode-button/vscode-button.d.ts +1 -0
- package/dist/vscode-button/vscode-button.d.ts.map +1 -1
- package/dist/vscode-button/vscode-button.js +8 -2
- 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 +60 -11
- package/dist/vscode-button/vscode-button.styles.js.map +1 -1
- package/dist/vscode-button-group/index.d.ts +2 -0
- package/dist/vscode-button-group/index.d.ts.map +1 -0
- package/dist/vscode-button-group/index.js +2 -0
- package/dist/vscode-button-group/index.js.map +1 -0
- package/dist/vscode-button-group/vscode-button-group.d.ts +29 -0
- package/dist/vscode-button-group/vscode-button-group.d.ts.map +1 -0
- package/dist/vscode-button-group/vscode-button-group.js +38 -0
- package/dist/vscode-button-group/vscode-button-group.js.map +1 -0
- package/dist/vscode-button-group/vscode-button-group.styles.d.ts +4 -0
- package/dist/vscode-button-group/vscode-button-group.styles.d.ts.map +1 -0
- package/dist/vscode-button-group/vscode-button-group.styles.js +35 -0
- package/dist/vscode-button-group/vscode-button-group.styles.js.map +1 -0
- package/dist/vscode-checkbox/vscode-checkbox.d.ts +10 -10
- package/dist/vscode-checkbox/vscode-checkbox.d.ts.map +1 -1
- package/dist/vscode-checkbox/vscode-checkbox.js +12 -14
- package/dist/vscode-checkbox/vscode-checkbox.js.map +1 -1
- package/dist/vscode-checkbox/vscode-checkbox.styles.js +2 -2
- package/dist/vscode-checkbox/vscode-checkbox.styles.js.map +1 -1
- package/dist/vscode-checkbox-group/vscode-checkbox-group.d.ts.map +1 -1
- package/dist/vscode-checkbox-group/vscode-checkbox-group.js +2 -2
- package/dist/vscode-checkbox-group/vscode-checkbox-group.js.map +1 -1
- package/dist/vscode-collapsible/vscode-collapsible.d.ts +6 -6
- package/dist/vscode-collapsible/vscode-collapsible.d.ts.map +1 -1
- package/dist/vscode-collapsible/vscode-collapsible.js +8 -8
- package/dist/vscode-collapsible/vscode-collapsible.js.map +1 -1
- package/dist/vscode-collapsible/vscode-collapsible.styles.js +6 -6
- package/dist/vscode-collapsible/vscode-collapsible.styles.js.map +1 -1
- package/dist/vscode-context-menu/vscode-context-menu.d.ts +8 -8
- package/dist/vscode-context-menu/vscode-context-menu.d.ts.map +1 -1
- package/dist/vscode-context-menu/vscode-context-menu.js +9 -9
- package/dist/vscode-context-menu/vscode-context-menu.js.map +1 -1
- package/dist/vscode-context-menu/vscode-context-menu.styles.js +7 -7
- package/dist/vscode-context-menu/vscode-context-menu.styles.js.map +1 -1
- package/dist/vscode-context-menu-item/vscode-context-menu-item.d.ts +9 -9
- package/dist/vscode-context-menu-item/vscode-context-menu-item.d.ts.map +1 -1
- package/dist/vscode-context-menu-item/vscode-context-menu-item.js +11 -11
- package/dist/vscode-context-menu-item/vscode-context-menu-item.js.map +1 -1
- package/dist/vscode-context-menu-item/vscode-context-menu-item.styles.d.ts.map +1 -1
- package/dist/vscode-context-menu-item/vscode-context-menu-item.styles.js +10 -13
- package/dist/vscode-context-menu-item/vscode-context-menu-item.styles.js.map +1 -1
- package/dist/vscode-divider/vscode-divider.d.ts +2 -0
- package/dist/vscode-divider/vscode-divider.d.ts.map +1 -1
- package/dist/vscode-divider/vscode-divider.js +4 -2
- package/dist/vscode-divider/vscode-divider.js.map +1 -1
- package/dist/vscode-divider/vscode-divider.styles.js +1 -1
- package/dist/vscode-divider/vscode-divider.styles.js.map +1 -1
- package/dist/vscode-form-container/vscode-form-container.d.ts.map +1 -1
- package/dist/vscode-form-container/vscode-form-container.js +2 -2
- package/dist/vscode-form-container/vscode-form-container.js.map +1 -1
- package/dist/vscode-form-group/vscode-form-group.d.ts.map +1 -1
- package/dist/vscode-form-group/vscode-form-group.js +2 -2
- package/dist/vscode-form-group/vscode-form-group.js.map +1 -1
- package/dist/vscode-form-helper/vscode-form-helper.d.ts.map +1 -1
- package/dist/vscode-form-helper/vscode-form-helper.js +1 -2
- package/dist/vscode-form-helper/vscode-form-helper.js.map +1 -1
- package/dist/vscode-icon/vscode-icon.d.ts +4 -4
- package/dist/vscode-icon/vscode-icon.d.ts.map +1 -1
- package/dist/vscode-icon/vscode-icon.js +7 -6
- package/dist/vscode-icon/vscode-icon.js.map +1 -1
- package/dist/vscode-icon/vscode-icon.styles.d.ts.map +1 -1
- package/dist/vscode-icon/vscode-icon.styles.js +10 -4
- package/dist/vscode-icon/vscode-icon.styles.js.map +1 -1
- package/dist/vscode-label/vscode-label.d.ts +3 -3
- package/dist/vscode-label/vscode-label.d.ts.map +1 -1
- package/dist/vscode-label/vscode-label.js +14 -12
- package/dist/vscode-label/vscode-label.js.map +1 -1
- package/dist/vscode-label/vscode-label.styles.js +4 -4
- package/dist/vscode-label/vscode-label.styles.js.map +1 -1
- package/dist/vscode-multi-select/vscode-multi-select.d.ts +39 -26
- package/dist/vscode-multi-select/vscode-multi-select.d.ts.map +1 -1
- package/dist/vscode-multi-select/vscode-multi-select.js +184 -161
- package/dist/vscode-multi-select/vscode-multi-select.js.map +1 -1
- package/dist/vscode-option/vscode-option.d.ts.map +1 -1
- package/dist/vscode-option/vscode-option.js +2 -2
- package/dist/vscode-option/vscode-option.js.map +1 -1
- package/dist/vscode-progress-ring/vscode-progress-ring.d.ts +2 -0
- package/dist/vscode-progress-ring/vscode-progress-ring.d.ts.map +1 -1
- package/dist/vscode-progress-ring/vscode-progress-ring.js +4 -2
- package/dist/vscode-progress-ring/vscode-progress-ring.js.map +1 -1
- package/dist/vscode-progress-ring/vscode-progress-ring.styles.js +1 -1
- package/dist/vscode-progress-ring/vscode-progress-ring.styles.js.map +1 -1
- package/dist/vscode-radio/vscode-radio.d.ts +9 -8
- package/dist/vscode-radio/vscode-radio.d.ts.map +1 -1
- package/dist/vscode-radio/vscode-radio.js +11 -9
- package/dist/vscode-radio/vscode-radio.js.map +1 -1
- package/dist/vscode-radio/vscode-radio.styles.js +2 -2
- package/dist/vscode-radio/vscode-radio.styles.js.map +1 -1
- package/dist/vscode-radio-group/vscode-radio-group.d.ts.map +1 -1
- package/dist/vscode-radio-group/vscode-radio-group.js +2 -2
- package/dist/vscode-radio-group/vscode-radio-group.js.map +1 -1
- package/dist/vscode-scrollable/vscode-scrollable.d.ts +61 -17
- package/dist/vscode-scrollable/vscode-scrollable.d.ts.map +1 -1
- package/dist/vscode-scrollable/vscode-scrollable.js +193 -88
- package/dist/vscode-scrollable/vscode-scrollable.js.map +1 -1
- package/dist/vscode-scrollable/vscode-scrollable.styles.d.ts.map +1 -1
- package/dist/vscode-scrollable/vscode-scrollable.styles.js +17 -5
- package/dist/vscode-scrollable/vscode-scrollable.styles.js.map +1 -1
- package/dist/vscode-single-select/vscode-single-select.d.ts +39 -28
- package/dist/vscode-single-select/vscode-single-select.d.ts.map +1 -1
- package/dist/vscode-single-select/vscode-single-select.js +180 -125
- package/dist/vscode-single-select/vscode-single-select.js.map +1 -1
- package/dist/vscode-split-layout/vscode-split-layout.d.ts +3 -1
- package/dist/vscode-split-layout/vscode-split-layout.d.ts.map +1 -1
- package/dist/vscode-split-layout/vscode-split-layout.js +8 -3
- package/dist/vscode-split-layout/vscode-split-layout.js.map +1 -1
- package/dist/vscode-split-layout/vscode-split-layout.styles.js +3 -3
- package/dist/vscode-split-layout/vscode-split-layout.styles.js.map +1 -1
- package/dist/vscode-tab-header/vscode-tab-header.d.ts.map +1 -1
- package/dist/vscode-tab-header/vscode-tab-header.js +2 -2
- package/dist/vscode-tab-header/vscode-tab-header.js.map +1 -1
- package/dist/vscode-tab-panel/vscode-tab-panel.d.ts.map +1 -1
- 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-table/helpers.d.ts.map +1 -1
- package/dist/vscode-table/vscode-table.d.ts +1 -0
- package/dist/vscode-table/vscode-table.d.ts.map +1 -1
- package/dist/vscode-table/vscode-table.js +20 -16
- package/dist/vscode-table/vscode-table.js.map +1 -1
- package/dist/vscode-table-body/vscode-table-body.d.ts.map +1 -1
- package/dist/vscode-table-body/vscode-table-body.js +2 -2
- package/dist/vscode-table-body/vscode-table-body.js.map +1 -1
- package/dist/vscode-table-cell/vscode-table-cell.d.ts.map +1 -1
- package/dist/vscode-table-cell/vscode-table-cell.js +2 -2
- package/dist/vscode-table-cell/vscode-table-cell.js.map +1 -1
- package/dist/vscode-table-header/vscode-table-header.d.ts.map +1 -1
- package/dist/vscode-table-header/vscode-table-header.js +2 -2
- package/dist/vscode-table-header/vscode-table-header.js.map +1 -1
- package/dist/vscode-table-header-cell/vscode-table-header-cell.d.ts.map +1 -1
- package/dist/vscode-table-header-cell/vscode-table-header-cell.js +2 -2
- package/dist/vscode-table-header-cell/vscode-table-header-cell.js.map +1 -1
- package/dist/vscode-table-row/vscode-table-row.d.ts.map +1 -1
- package/dist/vscode-table-row/vscode-table-row.js +2 -2
- package/dist/vscode-table-row/vscode-table-row.js.map +1 -1
- package/dist/vscode-tabs/vscode-tabs.d.ts.map +1 -1
- package/dist/vscode-tabs/vscode-tabs.js +2 -2
- package/dist/vscode-tabs/vscode-tabs.js.map +1 -1
- package/dist/vscode-textarea/vscode-textarea.d.ts +18 -18
- package/dist/vscode-textarea/vscode-textarea.d.ts.map +1 -1
- package/dist/vscode-textarea/vscode-textarea.js +20 -20
- package/dist/vscode-textarea/vscode-textarea.js.map +1 -1
- package/dist/vscode-textarea/vscode-textarea.styles.d.ts.map +1 -1
- package/dist/vscode-textarea/vscode-textarea.styles.js +31 -22
- 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 +2 -2
- package/dist/vscode-textfield/vscode-textfield.js.map +1 -1
- package/dist/vscode-toolbar-button/index.d.ts +2 -0
- package/dist/vscode-toolbar-button/index.d.ts.map +1 -0
- package/dist/vscode-toolbar-button/index.js +2 -0
- package/dist/vscode-toolbar-button/index.js.map +1 -0
- package/dist/vscode-toolbar-button/vscode-toolbar-button.d.ts +26 -0
- package/dist/vscode-toolbar-button/vscode-toolbar-button.d.ts.map +1 -0
- package/dist/vscode-toolbar-button/vscode-toolbar-button.js +83 -0
- package/dist/vscode-toolbar-button/vscode-toolbar-button.js.map +1 -0
- package/dist/vscode-toolbar-button/vscode-toolbar-button.styles.d.ts +4 -0
- package/dist/vscode-toolbar-button/vscode-toolbar-button.styles.d.ts.map +1 -0
- package/dist/vscode-toolbar-button/vscode-toolbar-button.styles.js +77 -0
- package/dist/vscode-toolbar-button/vscode-toolbar-button.styles.js.map +1 -0
- package/dist/vscode-toolbar-container/index.d.ts +2 -0
- package/dist/vscode-toolbar-container/index.d.ts.map +1 -0
- package/dist/vscode-toolbar-container/index.js +2 -0
- package/dist/vscode-toolbar-container/index.js.map +1 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.d.ts +17 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.d.ts.map +1 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.js +25 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.js.map +1 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.styles.d.ts +4 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.styles.d.ts.map +1 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.styles.js +14 -0
- package/dist/vscode-toolbar-container/vscode-toolbar-container.styles.js.map +1 -0
- package/dist/vscode-tree/helpers.d.ts +9 -0
- package/dist/vscode-tree/helpers.d.ts.map +1 -0
- package/dist/vscode-tree/helpers.js +116 -0
- package/dist/vscode-tree/helpers.js.map +1 -0
- package/dist/vscode-tree/tree-context.d.ts +33 -0
- package/dist/vscode-tree/tree-context.d.ts.map +1 -0
- package/dist/vscode-tree/tree-context.js +4 -0
- package/dist/vscode-tree/tree-context.js.map +1 -0
- package/dist/vscode-tree/vscode-tree.d.ts +96 -144
- package/dist/vscode-tree/vscode-tree.d.ts.map +1 -1
- package/dist/vscode-tree/vscode-tree.js +324 -622
- 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 +31 -231
- package/dist/vscode-tree/vscode-tree.styles.js.map +1 -1
- package/dist/vscode-tree-item/index.d.ts +2 -0
- package/dist/vscode-tree-item/index.d.ts.map +1 -0
- package/dist/vscode-tree-item/index.js +2 -0
- package/dist/vscode-tree-item/index.js.map +1 -0
- package/dist/vscode-tree-item/vscode-tree-item.d.ts +50 -0
- package/dist/vscode-tree-item/vscode-tree-item.d.ts.map +1 -0
- package/dist/vscode-tree-item/vscode-tree-item.js +418 -0
- package/dist/vscode-tree-item/vscode-tree-item.js.map +1 -0
- package/dist/vscode-tree-item/vscode-tree-item.styles.d.ts +4 -0
- package/dist/vscode-tree-item/vscode-tree-item.styles.d.ts.map +1 -0
- package/dist/vscode-tree-item/vscode-tree-item.styles.js +140 -0
- package/dist/vscode-tree-item/vscode-tree-item.styles.js.map +1 -0
- package/package.json +40 -40
- package/vscode.css-custom-data.json +44 -55
- package/vscode.html-custom-data.json +154 -45
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,s=Symbol(),i=new WeakMap;let o=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==s)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const s=this.t;if(e&&void 0===t){const e=void 0!==s&&1===s.length;e&&(t=i.get(s)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),e&&i.set(s,t))}return t}toString(){return this.cssText}};const r=t=>new o("string"==typeof t?t:t+"",void 0,s),n=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,s,i)=>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.")})(s)+t[i+1]),t[0]);return new o(i,t,s)},l=e?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return r(e)})(t):t,{is:a,defineProperty:c,getOwnPropertyDescriptor:h,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 s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},y=(t,e)=>!a(t,e),w={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y};Symbol.metadata??=Symbol("metadata"),p.litPropertyMetadata??=new WeakMap;class k 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.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),i=this.getPropertyDescriptor(t,s,e);void 0!==i&&c(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){const{get:i,set:o}=h(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return i?.call(this)},set(e){const r=i?.call(this);o.call(this,e),this.requestUpdate(t,r,s)},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 s of e)this.createProperty(s,t[s])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,s]of e)this.elementProperties.set(t,s)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const s=this._$Eu(t,e);void 0!==s&&this._$Eh.set(s,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(l(t))}else void 0!==t&&e.push(l(t));return e}static _$Eu(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"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 s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const s=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((s,i)=>{if(e)s.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const e of i){const i=document.createElement("style"),o=t.litNonce;void 0!==o&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i)}})(s,this.constructor.elementStyles),s}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,s){this._$AK(t,s)}_$EC(t,e){const s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(void 0!==i&&!0===s.reflect){const o=(void 0!==s.converter?.toAttribute?s.converter:x).toAttribute(e,s.type);this._$Em=t,null==o?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){const s=this.constructor,i=s._$Eh.get(t);if(void 0!==i&&this._$Em!==i){const t=s.getPropertyOptions(i),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:x;this._$Em=i,this[i]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,s){if(void 0!==t){if(s??=this.constructor.getPropertyOptions(t),!(s.hasChanged??y)(this[t],e))return;this.P(t,e,s)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){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,s]of t)!0!==s.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],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._$EU()}catch(e){throw t=!1,this._$EU(),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)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}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.0.4");const $=globalThis,_=$.trustedTypes,C=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,B="$lit$",S=`lit$${Math.random().toFixed(9).slice(2)}$`,z="?"+S,A=`<${z}>`,O=document,E=()=>O.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,I=Array.isArray,M=t=>I(t)||"function"==typeof t?.[Symbol.iterator],F="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,N=/>/g,V=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),R=/'/g,T=/"/g,L=/^(?:script|style|textarea|title)$/i,U=(t=>(e,...s)=>({_$litType$:t,strings:e,values:s}))(1),q=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,W=O.createTreeWalker(O,129);function G(t,e){if(!I(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==C?C.createHTML(e):e}const J=(t,e)=>{const s=t.length-1,i=[];let o,r=2===e?"<svg>":3===e?"<math>":"",n=P;for(let e=0;e<s;e++){const s=t[e];let l,a,c=-1,h=0;for(;h<s.length&&(n.lastIndex=h,a=n.exec(s),null!==a);)h=n.lastIndex,n===P?"!--"===a[1]?n=D:void 0!==a[1]?n=N:void 0!==a[2]?(L.test(a[2])&&(o=RegExp("</"+a[2],"g")),n=V):void 0!==a[3]&&(n=V):n===V?">"===a[0]?(n=o??P,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?V:'"'===a[3]?T:R):n===T||n===R?n=V:n===D||n===N?n=P:(n=V,o=void 0);const d=n===V&&t[e+1].startsWith("/>")?" ":"";r+=n===P?s+A:c>=0?(i.push(l),s.slice(0,c)+B+s.slice(c)+S+d):s+S+(-2===c?e:d)}return[G(t,r+(t[s]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),i]};class Y{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const n=t.length-1,l=this.parts,[a,c]=J(t,e);if(this.el=Y.createElement(a,s),W.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=W.nextNode())&&l.length<n;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(B)){const e=c[r++],s=i.getAttribute(t).split(S),n=/([.?@])?(.*)/.exec(e);l.push({type:1,index:o,name:n[2],strings:s,ctor:"."===n[1]?et:"?"===n[1]?st:"@"===n[1]?it:tt}),i.removeAttribute(t)}else t.startsWith(S)&&(l.push({type:6,index:o}),i.removeAttribute(t));if(L.test(i.tagName)){const t=i.textContent.split(S),e=t.length-1;if(e>0){i.textContent=_?_.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],E()),W.nextNode(),l.push({type:2,index:++o});i.append(t[e],E())}}}else if(8===i.nodeType)if(i.data===z)l.push({type:2,index:o});else{let t=-1;for(;-1!==(t=i.data.indexOf(S,t+1));)l.push({type:7,index:o}),t+=S.length-1}o++}}static createElement(t,e){const s=O.createElement("template");return s.innerHTML=t,s}}function X(t,e,s=t,i){if(e===q)return e;let o=void 0!==i?s.o?.[i]:s.l;const r=j(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,s,i)),void 0!==i?(s.o??=[])[i]=o:s.l=o),void 0!==o&&(e=X(t,o._$AS(t,e.values),o,i)),e}class Z{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:s}=this._$AD,i=(t?.creationScope??O).importNode(e,!0);W.currentNode=i;let o=W.nextNode(),r=0,n=0,l=s[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=s[++n]}r!==l?.index&&(o=W.nextNode(),r++)}return W.currentNode=O,i}p(t){let e=0;for(const s of this._$AV)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}let Q=class t{get _$AU(){return this._$AM?._$AU??this.v}constructor(t,e,s,i){this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this.v=i?.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=X(this,t,e),j(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==q&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):M(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!==H&&j(this._$AH)?this._$AA.nextSibling.data=t:this.T(O.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Y.createElement(G(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new Z(i,this),s=t.u(this.options);t.p(e),this.T(s),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new Y(t)),e}k(e){I(this._$AH)||(this._$AH=[],this._$AR());const s=this._$AH;let i,o=0;for(const r of e)o===s.length?s.push(i=new t(this.O(E()),this.O(E()),this,this.options)):i=s[o],i._$AI(r),o++;o<s.length&&(this._$AR(i&&i._$AB.nextSibling,o),s.length=o)}_$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.v=t,this._$AP?.(t))}};class tt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=H}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(void 0===o)t=X(this,t,e,0),r=!j(t)||t!==this._$AH&&t!==q,r&&(this._$AH=t);else{const i=t;let n,l;for(t=o[0],n=0;n<o.length-1;n++)l=X(this,i[s+n],e,n),l===q&&(l=this._$AH[n]),r||=!j(l)||l!==this._$AH[n],l===H?t=H:t!==H&&(t+=(l??"")+o[n+1]),this._$AH[n]=l}r&&!i&&this.j(t)}j(t){t===H?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===H?void 0:t}}class st extends tt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==H)}}class it extends tt{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=X(this,t,e,0)??H)===q)return;const s=this._$AH,i=t===H&&s!==H||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==H&&(s===H||i);i&&this.element.removeEventListener(this.name,this,s),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,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){X(this,t)}}const rt={M:B,P:S,A:z,C:1,L:J,R:Z,D:M,V:X,I:Q,H:tt,N:st,U:it,B:et,F:ot},nt=$.litHtmlPolyfillSupport;nt?.(Y,Q),($.litHtmlVersions??=[]).push("3.2.0");class lt extends k{constructor(){super(...arguments),this.renderOptions={host:this},this.o=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.o=((t,e,s)=>{const i=s?.renderBefore??e;let o=i._$litPart$;if(void 0===o){const t=s?.renderBefore??null;i._$litPart$=o=new Q(e.insertBefore(E(),t),t,void 0,s??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this.o?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this.o?.setConnected(!1)}render(){return q}}lt._$litElement$=!0,lt.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:lt});const at=globalThis.litElementPolyfillSupport;at?.({LitElement:lt}),(globalThis.litElementVersions??=[]).push("4.1.0");const ct=t=>(e,s)=>{void 0!==s?s.addInitializer((()=>{customElements.define(t,e)})):customElements.define(t,e)},ht={attribute:!0,type:String,converter:x,reflect:!1,hasChanged:y},dt=(t=ht,e,s)=>{const{kind:i,metadata:o}=s;let r=globalThis.litPropertyMetadata.get(o);if(void 0===r&&globalThis.litPropertyMetadata.set(o,r=new Map),r.set(s.name,t),"accessor"===i){const{name:i}=s;return{set(s){const o=e.get.call(this);e.set.call(this,s),this.requestUpdate(i,o,t)},init(e){return void 0!==e&&this.P(i,void 0,t),e}}}if("setter"===i){const{name:i}=s;return function(s){const o=this[i];e.call(this,s),this.requestUpdate(i,o,t)}}throw Error("Unsupported decorator location: "+i)};function ut(t){return(e,s)=>"object"==typeof s?dt(t,e,s):((t,e,s)=>{const i=e.hasOwnProperty(s);return e.constructor.createProperty(s,i?{...t,wrapped:!0}:t),i?Object.getOwnPropertyDescriptor(e,s):void 0})(t,e,s)}function vt(t){return ut({...t,state:!0,attribute:!1})}const pt=(t,e,s)=>(s.configurable=!0,s.enumerable=!0,s);function bt(t,e){return(s,i,o)=>{const r=e=>e.renderRoot?.querySelector(t)??null;if(e){const{get:t,set:e}="object"==typeof i?s:o??(()=>{const t=Symbol();return{get(){return this[t]},set(e){this[t]=e}}})();return pt(0,0,{get(){let s=t.call(this);return void 0===s&&(s=r(this),(null!==s||this.hasUpdated)&&e.call(this,s)),s}})}return pt(0,0,{get(){return r(this)}})}}let ft;function gt(t){return(e,s)=>{const{slot:i,selector:o}=t??{},r="slot"+(i?`[name=${i}]`:":not([name])");return pt(0,0,{get(){const e=this.renderRoot?.querySelector(r),s=e?.assignedElements(t)??[];return void 0===o?s:s.filter((t=>t.matches(o)))}})}}class mt extends lt{constructor(){super(...arguments),this._version="2.0.0-pre.1"}get version(){return this._version}}var xt=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: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`
|
|
2
2
|
:host([hidden]) {
|
|
3
3
|
display: none;
|
|
4
4
|
}
|
|
@@ -9,7 +9,7 @@ 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 St(){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 Ct=[_t,n`
|
|
13
13
|
:host {
|
|
14
14
|
background-color: var(--vscode-badge-background, #616161);
|
|
15
15
|
border: 1px solid var(--vscode-contrastBorder, transparent);
|
|
@@ -17,7 +17,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
17
17
|
box-sizing: border-box;
|
|
18
18
|
color: var(--vscode-badge-foreground, #f8f8f8);
|
|
19
19
|
display: inline-block;
|
|
20
|
-
font-family: var(--vscode-font-family, ${r(
|
|
20
|
+
font-family: var(--vscode-font-family, ${r(St())});
|
|
21
21
|
font-size: 11px;
|
|
22
22
|
font-weight: 400;
|
|
23
23
|
line-height: 14px;
|
|
@@ -54,9 +54,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
54
54
|
min-width: 16px;
|
|
55
55
|
padding: 3px 5px;
|
|
56
56
|
}
|
|
57
|
-
`];var
|
|
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 Ot=class extends kt{constructor(){super(...arguments),this.variant="default"}render(){return U` <slot></slot> `}};Ot.styles=Ct,Bt([pt({reflect:!0})],Ot.prototype,"variant",void 0),Ot=Bt([$t("vscode-badge")],Ot);const zt=1,At=2,Et=3,It=t=>(...e)=>({_$litDirective$:t,values:e});let jt=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 Mt=It(class extends jt{constructor(t){if(super(t),t.type!==zt||"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}}),Pt=t=>t??q;const Dt=It(class extends jt{constructor(t){if(super(t),this._prevProperties={},t.type!==Et||"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}}),Ft=[_t,n`
|
|
58
58
|
:host {
|
|
59
|
-
color: var(--vscode-icon-foreground);
|
|
59
|
+
color: var(--vscode-icon-foreground, #cccccc);
|
|
60
60
|
display: inline-block;
|
|
61
61
|
}
|
|
62
62
|
|
|
@@ -82,11 +82,17 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
.button:hover {
|
|
85
|
-
background-color: var(
|
|
85
|
+
background-color: var(
|
|
86
|
+
--vscode-toolbar-hoverBackground,
|
|
87
|
+
rgba(90, 93, 94, 0.31)
|
|
88
|
+
);
|
|
86
89
|
}
|
|
87
90
|
|
|
88
91
|
.button:active {
|
|
89
|
-
background-color: var(
|
|
92
|
+
background-color: var(
|
|
93
|
+
--vscode-toolbar-activeBackground,
|
|
94
|
+
rgba(99, 102, 103, 0.31)
|
|
95
|
+
);
|
|
90
96
|
}
|
|
91
97
|
|
|
92
98
|
.button:focus {
|
|
@@ -94,7 +100,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
94
100
|
}
|
|
95
101
|
|
|
96
102
|
.button:focus-visible {
|
|
97
|
-
border-color: var(--vscode-focusBorder);
|
|
103
|
+
border-color: var(--vscode-focusBorder, #0078d4);
|
|
98
104
|
}
|
|
99
105
|
|
|
100
106
|
@keyframes icon-spin {
|
|
@@ -108,43 +114,40 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
108
114
|
animation-timing-function: linear;
|
|
109
115
|
animation-iteration-count: infinite;
|
|
110
116
|
}
|
|
111
|
-
`];var
|
|
112
|
-
class=${
|
|
113
|
-
.style=${
|
|
114
|
-
></span>`,
|
|
117
|
+
`];var Vt,Nt=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 Rt=Vt=class extends kt{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();Vt.stylesheetHref=t,Vt.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}=Vt,i=U`<span
|
|
118
|
+
class=${Mt({codicon:!0,["codicon-"+this.name]:!0,spin:this.spin})}
|
|
119
|
+
.style=${Dt({animationDuration:String(this.spinDuration)+"s",fontSize:this.size+"px",height:this.size+"px",width:this.size+"px"})}
|
|
120
|
+
></span>`,s=this.actionIcon?U` <button
|
|
115
121
|
class="button"
|
|
116
122
|
@click=${this._onButtonClick}
|
|
117
123
|
aria-label=${this.label}
|
|
118
124
|
>
|
|
119
|
-
${
|
|
125
|
+
${i}
|
|
120
126
|
</button>`:U` <span class="icon" aria-hidden="true" role="presentation"
|
|
121
|
-
>${
|
|
127
|
+
>${i}</span
|
|
122
128
|
>`;return U`
|
|
123
129
|
<link
|
|
124
130
|
rel="stylesheet"
|
|
125
|
-
href=${
|
|
126
|
-
nonce=${
|
|
131
|
+
href=${Pt(t)}
|
|
132
|
+
nonce=${Pt(e)}
|
|
127
133
|
>
|
|
128
|
-
${
|
|
129
|
-
`}};
|
|
134
|
+
${s}
|
|
135
|
+
`}};Rt.styles=Ft,Rt.stylesheetHref="",Rt.nonce="",Nt([pt()],Rt.prototype,"label",void 0),Nt([pt({type:String})],Rt.prototype,"name",void 0),Nt([pt({type:Number})],Rt.prototype,"size",void 0),Nt([pt({type:Boolean,reflect:!0})],Rt.prototype,"spin",void 0),Nt([pt({type:Number,attribute:"spin-duration"})],Rt.prototype,"spinDuration",void 0),Nt([pt({type:Boolean,reflect:!0,attribute:"action-icon"})],Rt.prototype,"actionIcon",void 0),Rt=Vt=Nt([$t("vscode-icon")],Rt);const Tt=[_t,n`
|
|
130
136
|
:host {
|
|
131
137
|
background-color: var(--vscode-button-background, #0078d4);
|
|
132
|
-
border-color: var(
|
|
133
|
-
--vscode-button-border,
|
|
134
|
-
var(--vscode-button-background, rgba(255, 255, 255, 0.07))
|
|
135
|
-
);
|
|
138
|
+
border-color: var(--vscode-button-border, transparent);
|
|
136
139
|
border-style: solid;
|
|
137
140
|
border-radius: 2px;
|
|
138
141
|
border-width: 1px;
|
|
139
142
|
color: var(--vscode-button-foreground, #ffffff);
|
|
140
143
|
cursor: pointer;
|
|
141
|
-
display: inline-
|
|
142
|
-
font-family: var(--vscode-font-family, ${r(
|
|
144
|
+
display: inline-flex;
|
|
145
|
+
font-family: var(--vscode-font-family, ${r(St())});
|
|
143
146
|
font-size: var(--vscode-font-size, 13px);
|
|
144
147
|
font-weight: var(--vscode-font-weight, normal);
|
|
145
148
|
line-height: 22px;
|
|
146
149
|
overflow: hidden;
|
|
147
|
-
padding:
|
|
150
|
+
padding: 0;
|
|
148
151
|
user-select: none;
|
|
149
152
|
white-space: nowrap;
|
|
150
153
|
}
|
|
@@ -214,6 +217,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
214
217
|
margin-left: 0;
|
|
215
218
|
}
|
|
216
219
|
|
|
220
|
+
::slotted(*:last-child) {
|
|
221
|
+
margin-right: 0;
|
|
222
|
+
}
|
|
223
|
+
|
|
217
224
|
::slotted(vscode-icon) {
|
|
218
225
|
color: inherit;
|
|
219
226
|
}
|
|
@@ -224,7 +231,16 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
224
231
|
display: flex;
|
|
225
232
|
justify-content: center;
|
|
226
233
|
position: relative;
|
|
227
|
-
width: 100
|
|
234
|
+
width: var(--wrapper-width, 100%);
|
|
235
|
+
height: 100%;
|
|
236
|
+
padding: 1px 13px;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
:host(:empty) .wrapper,
|
|
240
|
+
:host([icon-only]) .wrapper {
|
|
241
|
+
min-height: 24px;
|
|
242
|
+
min-width: 16px;
|
|
243
|
+
padding: 1px 5px;
|
|
228
244
|
}
|
|
229
245
|
|
|
230
246
|
slot {
|
|
@@ -233,40 +249,107 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
233
249
|
height: 100%;
|
|
234
250
|
}
|
|
235
251
|
|
|
236
|
-
.icon
|
|
252
|
+
.icon,
|
|
253
|
+
.icon-after {
|
|
237
254
|
color: inherit;
|
|
238
255
|
display: block;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
:host(:not(:empty)) .icon {
|
|
239
259
|
margin-right: 3px;
|
|
240
260
|
}
|
|
241
261
|
|
|
242
|
-
.icon-after
|
|
243
|
-
|
|
244
|
-
display: block;
|
|
262
|
+
:host(:not(:empty)) .icon-after,
|
|
263
|
+
:host([icon]) .icon-after {
|
|
245
264
|
margin-left: 3px;
|
|
246
265
|
}
|
|
247
|
-
|
|
266
|
+
|
|
267
|
+
.divider {
|
|
268
|
+
display: var(--divider-display, none);
|
|
269
|
+
background-color: transparent;
|
|
270
|
+
padding: 4px 0;
|
|
271
|
+
box-sizing: border-box;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
:host(:hover) .divider,
|
|
275
|
+
:host(:focus) .divider {
|
|
276
|
+
background-color: var(--vscode-button-hoverBackground, #026ec1);
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
:host([secondary]) .divider {
|
|
280
|
+
background-color: var(--vscode-button-secondaryBackground, #313131);
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
:host([secondary]:hover) .divider,
|
|
284
|
+
:host([secondary]:focus) .divider {
|
|
285
|
+
background-color: var(--vscode-button-secondaryHoverBackground, #3c3c3c);
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.divider > div {
|
|
289
|
+
background-color: var(
|
|
290
|
+
--vscode-button-separator,
|
|
291
|
+
rgba(255, 255, 255, 0.4)
|
|
292
|
+
);
|
|
293
|
+
height: 100%;
|
|
294
|
+
width: 1px;
|
|
295
|
+
margin: 0;
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
:host([secondary]) .divider > div {
|
|
299
|
+
background-color: var(--vscode-button-secondaryForeground, #cccccc);
|
|
300
|
+
opacity: 0.4;
|
|
301
|
+
}
|
|
302
|
+
`];var Lt=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 Ut=class extends kt{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")){this.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:new MouseEvent("click")}}));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.dispatchEvent(new CustomEvent("vsc-click",{detail:{originalEvent:t}})),this._executeAction())}render(){const t=""!==this.icon,e=""!==this.iconAfter,i={wrapper:!0,"has-icon-before":t,"has-icon-after":e,"icon-only":this.iconOnly},s=t?U`<vscode-icon
|
|
248
303
|
name=${this.icon}
|
|
249
304
|
?spin=${this.iconSpin}
|
|
250
|
-
spin-duration=${
|
|
305
|
+
spin-duration=${Pt(this.iconSpinDuration)}
|
|
251
306
|
class="icon"
|
|
252
|
-
></vscode-icon>`:
|
|
307
|
+
></vscode-icon>`:q,o=e?U`<vscode-icon
|
|
253
308
|
name=${this.iconAfter}
|
|
254
309
|
?spin=${this.iconAfterSpin}
|
|
255
|
-
spin-duration=${
|
|
310
|
+
spin-duration=${Pt(this.iconAfterSpinDuration)}
|
|
256
311
|
class="icon-after"
|
|
257
|
-
></vscode-icon>`:
|
|
258
|
-
<span class=${
|
|
259
|
-
${
|
|
312
|
+
></vscode-icon>`:q;return U`
|
|
313
|
+
<span class=${Mt(i)}>
|
|
314
|
+
${s}
|
|
260
315
|
<slot></slot>
|
|
261
316
|
${o}
|
|
262
317
|
</span>
|
|
263
|
-
|
|
318
|
+
<div class="divider"><div></div></div>
|
|
319
|
+
`}};Ut.styles=Tt,Ut.formAssociated=!0,Lt([pt({type:Boolean,reflect:!0})],Ut.prototype,"autofocus",void 0),Lt([pt({type:Number,reflect:!0})],Ut.prototype,"tabIndex",void 0),Lt([pt({type:Boolean,reflect:!0})],Ut.prototype,"secondary",void 0),Lt([pt({reflect:!0})],Ut.prototype,"role",void 0),Lt([pt({type:Boolean,reflect:!0})],Ut.prototype,"disabled",void 0),Lt([pt()],Ut.prototype,"icon",void 0),Lt([pt({type:Boolean,reflect:!0,attribute:"icon-spin"})],Ut.prototype,"iconSpin",void 0),Lt([pt({type:Number,reflect:!0,attribute:"icon-spin-duration"})],Ut.prototype,"iconSpinDuration",void 0),Lt([pt({attribute:"icon-after"})],Ut.prototype,"iconAfter",void 0),Lt([pt({type:Boolean,reflect:!0,attribute:"icon-after-spin"})],Ut.prototype,"iconAfterSpin",void 0),Lt([pt({type:Number,reflect:!0,attribute:"icon-after-spin-duration"})],Ut.prototype,"iconAfterSpinDuration",void 0),Lt([pt({type:Boolean,reflect:!0})],Ut.prototype,"focused",void 0),Lt([pt({type:String,reflect:!0})],Ut.prototype,"name",void 0),Lt([pt({type:Boolean,reflect:!0,attribute:"icon-only"})],Ut.prototype,"iconOnly",void 0),Lt([pt({reflect:!0})],Ut.prototype,"type",void 0),Lt([pt()],Ut.prototype,"value",void 0),Ut=Lt([$t("vscode-button")],Ut);const Gt=[_t,n`
|
|
320
|
+
:host {
|
|
321
|
+
display: inline-flex;
|
|
322
|
+
align-items: stretch;
|
|
323
|
+
padding: 0;
|
|
324
|
+
border: none;
|
|
325
|
+
overflow: hidden;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
::slotted(vscode-button:not(:first-child)) {
|
|
329
|
+
border-top-left-radius: 0;
|
|
330
|
+
border-bottom-left-radius: 0;
|
|
331
|
+
border-left-width: 0;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
::slotted(vscode-button:not(:last-child)) {
|
|
335
|
+
--divider-display: block;
|
|
336
|
+
--wrapper-width: calc(100% - 1px);
|
|
337
|
+
|
|
338
|
+
border-top-right-radius: 0;
|
|
339
|
+
border-bottom-right-radius: 0;
|
|
340
|
+
border-right-width: 0;
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
::slotted(vscode-button:focus) {
|
|
344
|
+
z-index: 1;
|
|
345
|
+
}
|
|
346
|
+
`];var Ht=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 kt{render(){return U` <slot></slot> `}};qt.styles=Gt,qt=Ht([dt("vscode-button-group")],qt);var Wt=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 Kt extends kt{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)}}Wt([pt({type:Boolean,reflect:!0})],Kt.prototype,"focused",void 0);var Jt=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 Yt=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 Jt([pt()],e.prototype,"label",null),e};var Xt=[n`
|
|
264
347
|
:host {
|
|
265
|
-
color: var(--
|
|
348
|
+
color: var(--vscode-foreground, #cccccc);
|
|
266
349
|
display: inline-block;
|
|
267
|
-
font-family: var(--vscode-font-family);
|
|
268
|
-
font-size: var(--vscode-font-size);
|
|
269
|
-
font-weight: var(--vscode-font-weight);
|
|
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);
|
|
270
353
|
line-height: 18px;
|
|
271
354
|
}
|
|
272
355
|
|
|
@@ -281,7 +364,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
281
364
|
.wrapper {
|
|
282
365
|
cursor: pointer;
|
|
283
366
|
display: block;
|
|
284
|
-
font-size: var(--vscode-font-size);
|
|
367
|
+
font-size: var(--vscode-font-size, 13px);
|
|
285
368
|
margin-bottom: 4px;
|
|
286
369
|
margin-top: 4px;
|
|
287
370
|
min-height: 18px;
|
|
@@ -307,11 +390,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
307
390
|
|
|
308
391
|
.icon {
|
|
309
392
|
align-items: center;
|
|
310
|
-
background-color: var(--vscode-settings-checkboxBackground);
|
|
393
|
+
background-color: var(--vscode-settings-checkboxBackground, #313131);
|
|
311
394
|
background-size: 16px;
|
|
312
|
-
border: 1px solid var(--vscode-settings-checkboxBorder);
|
|
395
|
+
border: 1px solid var(--vscode-settings-checkboxBorder, #3c3c3c);
|
|
313
396
|
box-sizing: border-box;
|
|
314
|
-
color: var(--vscode-settings-checkboxForeground);
|
|
397
|
+
color: var(--vscode-settings-checkboxForeground, #cccccc);
|
|
315
398
|
display: flex;
|
|
316
399
|
height: 18px;
|
|
317
400
|
justify-content: center;
|
|
@@ -349,10 +432,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
349
432
|
:host([disabled]) .label {
|
|
350
433
|
cursor: default;
|
|
351
434
|
}
|
|
352
|
-
`];const
|
|
435
|
+
`];const Zt=[_t,Xt,n`
|
|
353
436
|
:host(:invalid) .icon,
|
|
354
437
|
:host([invalid]) .icon {
|
|
355
|
-
background-color: var(--vscode-inputValidation-errorBackground);
|
|
438
|
+
background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
356
439
|
border-color: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
357
440
|
}
|
|
358
441
|
|
|
@@ -368,10 +451,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
368
451
|
}
|
|
369
452
|
|
|
370
453
|
:host(:focus):host(:not([disabled])) .icon {
|
|
371
|
-
outline: 1px solid var(--vscode-focusBorder);
|
|
454
|
+
outline: 1px solid var(--vscode-focusBorder, #0078d4);
|
|
372
455
|
outline-offset: -1px;
|
|
373
456
|
}
|
|
374
|
-
`];var
|
|
457
|
+
`];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};let te=class extends(Yt(Kt)){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})),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{checked:this.checked,label:this.label,value:this.value},bubbles:!0,composed:!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=Mt({icon:!0,checked:this.checked,indeterminate:this.indeterminate}),e=Mt({"label-inner":!0}),i=U`<svg
|
|
375
458
|
width="16"
|
|
376
459
|
height="16"
|
|
377
460
|
viewBox="0 0 16 16"
|
|
@@ -384,7 +467,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
384
467
|
clip-rule="evenodd"
|
|
385
468
|
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"
|
|
386
469
|
/>
|
|
387
|
-
</svg>`,
|
|
470
|
+
</svg>`,s=this.checked&&!this.indeterminate?i:q,o=this.indeterminate?U`<span class="indeterminate-icon"></span>`:q;return U`
|
|
388
471
|
<div class="wrapper">
|
|
389
472
|
<input
|
|
390
473
|
?autofocus=${this.autofocus}
|
|
@@ -394,7 +477,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
394
477
|
?checked=${this.checked}
|
|
395
478
|
value=${this.value}
|
|
396
479
|
>
|
|
397
|
-
<div class=${t}>${o}${
|
|
480
|
+
<div class=${t}>${o}${s}</div>
|
|
398
481
|
<label for="input" class="label" @click=${this._handleClick}>
|
|
399
482
|
<span class=${e}>
|
|
400
483
|
${this._renderLabelAttribute()}
|
|
@@ -402,7 +485,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
402
485
|
</span>
|
|
403
486
|
</label>
|
|
404
487
|
</div>
|
|
405
|
-
`}};
|
|
488
|
+
`}};te.styles=Zt,te.formAssociated=!0,te.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},Qt([pt({type:Boolean,reflect:!0})],te.prototype,"autofocus",void 0),Qt([pt({type:Boolean,reflect:!0})],te.prototype,"checked",null),Qt([pt({type:Boolean,reflect:!0,attribute:"default-checked"})],te.prototype,"defaultChecked",void 0),Qt([pt({type:Boolean,reflect:!0})],te.prototype,"invalid",void 0),Qt([pt({reflect:!0})],te.prototype,"name",void 0),Qt([pt()],te.prototype,"value",void 0),Qt([pt({type:Boolean,reflect:!0})],te.prototype,"disabled",void 0),Qt([pt({type:Boolean,reflect:!0})],te.prototype,"indeterminate",void 0),Qt([pt({type:Boolean,reflect:!0})],te.prototype,"required",null),Qt([pt()],te.prototype,"type",void 0),Qt([gt("#input")],te.prototype,"_inputEl",void 0),te=Qt([$t("vscode-checkbox")],te);const ee=[_t,n`
|
|
406
489
|
:host {
|
|
407
490
|
display: block;
|
|
408
491
|
}
|
|
@@ -432,18 +515,18 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
432
515
|
:host([variant='vertical']) ::slotted(vscode-checkbox:last-child) {
|
|
433
516
|
margin-bottom: 0;
|
|
434
517
|
}
|
|
435
|
-
`];var
|
|
518
|
+
`];var ie=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 se=class extends kt{constructor(){super(...arguments),this.role="group",this.variant="horizontal"}render(){return U`
|
|
436
519
|
<div class="wrapper">
|
|
437
520
|
<slot></slot>
|
|
438
521
|
</div>
|
|
439
|
-
`}};
|
|
522
|
+
`}};se.styles=ee,ie([pt({reflect:!0})],se.prototype,"role",void 0),ie([pt({reflect:!0})],se.prototype,"variant",void 0),se=ie([$t("vscode-checkbox-group")],se);const oe=[_t,n`
|
|
440
523
|
.collapsible {
|
|
441
|
-
background-color: var(--vscode-sideBar-background);
|
|
524
|
+
background-color: var(--vscode-sideBar-background, #181818);
|
|
442
525
|
}
|
|
443
526
|
|
|
444
527
|
.collapsible-header {
|
|
445
528
|
align-items: center;
|
|
446
|
-
background-color: var(--vscode-sideBarSectionHeader-background);
|
|
529
|
+
background-color: var(--vscode-sideBarSectionHeader-background, #181818);
|
|
447
530
|
cursor: pointer;
|
|
448
531
|
display: flex;
|
|
449
532
|
height: 22px;
|
|
@@ -456,13 +539,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
456
539
|
outline-offset: -1px;
|
|
457
540
|
outline-style: solid;
|
|
458
541
|
outline-width: 1px;
|
|
459
|
-
outline-color: var(--vscode-focusBorder);
|
|
542
|
+
outline-color: var(--vscode-focusBorder, #0078d4);
|
|
460
543
|
}
|
|
461
544
|
|
|
462
545
|
.title {
|
|
463
|
-
color: var(--vscode-sideBarTitle-foreground);
|
|
546
|
+
color: var(--vscode-sideBarTitle-foreground, #cccccc);
|
|
464
547
|
display: block;
|
|
465
|
-
font-family: var(--vscode-font-family);
|
|
548
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
466
549
|
font-size: 11px;
|
|
467
550
|
font-weight: 700;
|
|
468
551
|
margin: 0;
|
|
@@ -480,7 +563,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
480
563
|
}
|
|
481
564
|
|
|
482
565
|
.header-icon {
|
|
483
|
-
color: var(--vscode-icon-foreground);
|
|
566
|
+
color: var(--vscode-icon-foreground, #cccccc);
|
|
484
567
|
display: block;
|
|
485
568
|
flex-shrink: 0;
|
|
486
569
|
margin: 0 3px;
|
|
@@ -525,7 +608,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
525
608
|
.collapsible.open .collapsible-body {
|
|
526
609
|
display: block;
|
|
527
610
|
}
|
|
528
|
-
`];var
|
|
611
|
+
`];var re=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 ne=class extends kt{constructor(){super(...arguments),this.title="",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=Mt({collapsible:!0,open:this.open}),e=U`<svg
|
|
529
612
|
width="16"
|
|
530
613
|
height="16"
|
|
531
614
|
viewBox="0 0 16 16"
|
|
@@ -538,7 +621,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
538
621
|
clip-rule="evenodd"
|
|
539
622
|
d="M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z"
|
|
540
623
|
/>
|
|
541
|
-
</svg>`,
|
|
624
|
+
</svg>`,i=this.description?U`<span class="description">${this.description}</span>`:q;return U`
|
|
542
625
|
<div class=${t}>
|
|
543
626
|
<div
|
|
544
627
|
class="collapsible-header"
|
|
@@ -548,7 +631,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
548
631
|
@keydown=${this._onHeaderKeyDown}
|
|
549
632
|
>
|
|
550
633
|
${e}
|
|
551
|
-
<h3 class="title">${this.title}${
|
|
634
|
+
<h3 class="title">${this.title}${i}</h3>
|
|
552
635
|
<div class="header-slots">
|
|
553
636
|
<div class="actions"><slot name="actions"></slot></div>
|
|
554
637
|
<div class="decorations"><slot name="decorations"></slot></div>
|
|
@@ -558,27 +641,27 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
558
641
|
<slot></slot>
|
|
559
642
|
</div>
|
|
560
643
|
</div>
|
|
561
|
-
`}};
|
|
644
|
+
`}};ne.styles=oe,re([pt({type:String})],ne.prototype,"title",void 0),re([pt()],ne.prototype,"description",void 0),re([pt({type:Boolean,reflect:!0})],ne.prototype,"open",void 0),ne=re([$t("vscode-collapsible")],ne);const le=[_t,n`
|
|
562
645
|
:host {
|
|
563
646
|
display: block;
|
|
564
|
-
font-family: var(--vscode-font-family);
|
|
565
|
-
font-size: var(--vscode-font-size);
|
|
566
|
-
font-weight: var(--vscode-font-weight);
|
|
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);
|
|
567
650
|
line-height: 1.4em;
|
|
568
651
|
outline: none;
|
|
569
652
|
position: relative;
|
|
570
653
|
}
|
|
571
654
|
|
|
572
655
|
.context-menu-item {
|
|
573
|
-
background-color: var(--vscode-menu-background);
|
|
574
|
-
color: var(--vscode-menu-foreground);
|
|
656
|
+
background-color: var(--vscode-menu-background, #1f1f1f);
|
|
657
|
+
color: var(--vscode-menu-foreground, #cccccc);
|
|
575
658
|
display: flex;
|
|
576
659
|
user-select: none;
|
|
577
660
|
white-space: nowrap;
|
|
578
661
|
}
|
|
579
662
|
|
|
580
663
|
.ruler {
|
|
581
|
-
border-bottom: 1px solid var(--vscode-menu-separatorBackground);
|
|
664
|
+
border-bottom: 1px solid var(--vscode-menu-separatorBackground, #454545);
|
|
582
665
|
display: block;
|
|
583
666
|
margin: 0 0 4px;
|
|
584
667
|
padding-top: 4px;
|
|
@@ -592,7 +675,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
592
675
|
border-style: solid;
|
|
593
676
|
border-width: 1px;
|
|
594
677
|
box-sizing: border-box;
|
|
595
|
-
color: var(--vscode-menu-foreground);
|
|
678
|
+
color: var(--vscode-menu-foreground, #cccccc);
|
|
596
679
|
cursor: pointer;
|
|
597
680
|
display: flex;
|
|
598
681
|
flex: 1 1 auto;
|
|
@@ -605,12 +688,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
605
688
|
}
|
|
606
689
|
|
|
607
690
|
:host([selected]) .context-menu-item a {
|
|
608
|
-
background-color: var(--vscode-menu-selectionBackground);
|
|
609
|
-
border-color: var(
|
|
610
|
-
|
|
611
|
-
var(--vscode-menu-selectionBackground)
|
|
612
|
-
);
|
|
613
|
-
color: var(--vscode-menu-selectionForeground);
|
|
691
|
+
background-color: var(--vscode-menu-selectionBackground, #0078d4);
|
|
692
|
+
border-color: var(--vscode-menu-selectionBorder, transparent);
|
|
693
|
+
color: var(--vscode-menu-selectionForeground, #ffffff);
|
|
614
694
|
}
|
|
615
695
|
|
|
616
696
|
.label {
|
|
@@ -630,7 +710,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
630
710
|
padding: 0 22px;
|
|
631
711
|
text-align: right;
|
|
632
712
|
}
|
|
633
|
-
`];var
|
|
713
|
+
`];var he=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 kt{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`
|
|
634
714
|
${this.separator?U`
|
|
635
715
|
<div class="context-menu-item separator">
|
|
636
716
|
<span class="ruler"></span>
|
|
@@ -638,29 +718,29 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
638
718
|
`:U`
|
|
639
719
|
<div class="context-menu-item">
|
|
640
720
|
<a @click=${this.onItemClick}>
|
|
641
|
-
${this.label?U`<span class="label">${this.label}</span>`:
|
|
642
|
-
${this.keybinding?U`<span class="keybinding">${this.keybinding}</span>`:
|
|
721
|
+
${this.label?U`<span class="label">${this.label}</span>`:q}
|
|
722
|
+
${this.keybinding?U`<span class="keybinding">${this.keybinding}</span>`:q}
|
|
643
723
|
</a>
|
|
644
724
|
</div>
|
|
645
725
|
`}
|
|
646
|
-
`}};
|
|
726
|
+
`}};ae.styles=le,he([pt({type:String})],ae.prototype,"label",void 0),he([pt({type:String})],ae.prototype,"keybinding",void 0),he([pt({type:String})],ae.prototype,"value",void 0),he([pt({type:Boolean,reflect:!0})],ae.prototype,"separator",void 0),he([pt({type:Number})],ae.prototype,"tabindex",void 0),ae=he([$t("vscode-context-menu-item")],ae);const ce=[_t,n`
|
|
647
727
|
:host {
|
|
648
728
|
display: block;
|
|
649
|
-
font-family: var(--vscode-font-family);
|
|
650
|
-
font-size: var(--vscode-font-size);
|
|
651
|
-
font-weight: var(--vscode-font-weight);
|
|
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);
|
|
652
732
|
line-height: 1.4em;
|
|
653
733
|
position: relative;
|
|
654
734
|
}
|
|
655
735
|
|
|
656
736
|
.context-menu {
|
|
657
|
-
background-color: var(--vscode-menu-background);
|
|
658
|
-
border-color: var(--vscode-menu-border,
|
|
737
|
+
background-color: var(--vscode-menu-background, #1f1f1f);
|
|
738
|
+
border-color: var(--vscode-menu-border, #454545);
|
|
659
739
|
border-radius: 5px;
|
|
660
740
|
border-style: solid;
|
|
661
741
|
border-width: 1px;
|
|
662
|
-
box-shadow: 0 2px 8px var(--vscode-widget-shadow);
|
|
663
|
-
color: var(--vscode-menu-foreground);
|
|
742
|
+
box-shadow: 0 2px 8px var(--vscode-widget-shadow, rgba(0, 0, 0, 0.36));
|
|
743
|
+
color: var(--vscode-menu-foreground, #cccccc);
|
|
664
744
|
padding: 4px 0;
|
|
665
745
|
white-space: nowrap;
|
|
666
746
|
}
|
|
@@ -668,13 +748,13 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
668
748
|
.context-menu:focus {
|
|
669
749
|
outline: 0;
|
|
670
750
|
}
|
|
671
|
-
`];var
|
|
751
|
+
`];var de=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 ue=class extends kt{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}}))}_dispatchLegacySelectEvent(t){const{keybinding:e,label:i,value:s,separator:o,tabindex:r}=t,n={keybinding:e,label:i,value:s,separator:o,tabindex:r};this.dispatchEvent(new CustomEvent("vsc-select",{detail:n,bubbles:!0,composed:!0}))}_handleEnter(){if(-1===this._selectedClickableItemIndex)return;const t=this._clickableItemIndexes[this._selectedClickableItemIndex],e=this._wrapperEl.querySelectorAll("vscode-context-menu-item")[t];this._dispatchLegacySelectEvent(e),this._dispatchSelectEvent(e),this.preventClose||(this.show=!1,document.removeEventListener("click",this._onClickOutsideBound))}_onItemClick(t){const e=t.currentTarget;this._dispatchLegacySelectEvent(e),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`
|
|
672
752
|
<div class="context-menu" tabindex="0">
|
|
673
|
-
${this.data?this.data.map((({label:e="",keybinding:
|
|
753
|
+
${this.data?this.data.map((({label:e="",keybinding:i="",value:s="",separator:o=!1,tabindex:r=0},n)=>U`
|
|
674
754
|
<vscode-context-menu-item
|
|
675
755
|
label=${e}
|
|
676
|
-
keybinding=${
|
|
677
|
-
value=${
|
|
756
|
+
keybinding=${i}
|
|
757
|
+
value=${s}
|
|
678
758
|
?separator=${o}
|
|
679
759
|
?selected=${n===t}
|
|
680
760
|
tabindex=${r}
|
|
@@ -685,25 +765,25 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
685
765
|
></vscode-context-menu-item>
|
|
686
766
|
`)):U`<slot></slot>`}
|
|
687
767
|
</div>
|
|
688
|
-
`}};
|
|
768
|
+
`}};ue.styles=ce,de([pt({type:Array,attribute:!1})],ue.prototype,"data",null),de([pt({type:Boolean,reflect:!0,attribute:"prevent-close"})],ue.prototype,"preventClose",void 0),de([pt({type:Boolean,reflect:!0})],ue.prototype,"show",null),de([pt({type:Number,reflect:!0})],ue.prototype,"tabIndex",void 0),de([bt()],ue.prototype,"_selectedClickableItemIndex",void 0),de([bt()],ue.prototype,"_show",void 0),de([gt(".context-menu")],ue.prototype,"_wrapperEl",void 0),ue=de([$t("vscode-context-menu")],ue);const ve=[_t,n`
|
|
689
769
|
:host {
|
|
690
|
-
background-color: var(--vscode-foreground);
|
|
770
|
+
background-color: var(--vscode-foreground, #cccccc);
|
|
691
771
|
display: block;
|
|
692
772
|
height: 1px;
|
|
693
773
|
margin-bottom: 10px;
|
|
694
774
|
margin-top: 10px;
|
|
695
775
|
opacity: 0.4;
|
|
696
776
|
}
|
|
697
|
-
`];var
|
|
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 be=class extends kt{constructor(){super(...arguments),this.role="separator"}render(){return U``}};be.styles=ve,pe([pt({reflect:!0})],be.prototype,"role",void 0),be=pe([$t("vscode-divider")],be);const fe=[_t,n`
|
|
698
778
|
:host {
|
|
699
779
|
display: block;
|
|
700
780
|
max-width: 727px;
|
|
701
781
|
}
|
|
702
|
-
`];var
|
|
782
|
+
`];var ge,me=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"}(ge||(ge={}));const xe=t=>"vscode-checkbox"===t.tagName.toLocaleLowerCase(),ye=t=>"vscode-radio"===t.tagName.toLocaleLowerCase();let we=class extends kt{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}get data(){return this._collectFormData()}_collectFormData(){const t=["vscode-textfield","vscode-textarea","vscode-single-select","vscode-multi-select","vscode-checkbox","vscode-radio"].join(","),e=this.querySelectorAll(t),i={};return e.forEach((t=>{if(!t.hasAttribute("name"))return;const e=t.getAttribute("name");e&&(xe(t)&&t.checked?i[e]=Array.isArray(i[e])?[...i[e],t.value]:[t.value]:"vscode-multi-select"===t.tagName.toLocaleLowerCase()?i[e]=t.value:xe(t)&&!t.checked?i[e]=Array.isArray(i[e])?i[e]:[]:ye(t)&&t.checked||(t=>["vscode-textfield","vscode-textarea"].includes(t.tagName.toLocaleLowerCase()))(t)||(t=>"vscode-single-select"===t.tagName.toLocaleLowerCase())(t)?i[e]=t.value:ye(t)&&!t.checked&&(i[e]=i[e]?i[e]:""))})),i}_toggleCompactLayout(t){this._assignedFormGroups.forEach((e=>{e.dataset.originalVariant||(e.dataset.originalVariant=e.variant);const i=e.dataset.originalVariant;t===ge.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===ge.HORIZONTAL&&i===ge.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?ge.VERTICAL:ge.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`
|
|
703
783
|
<div class="wrapper">
|
|
704
784
|
<slot></slot>
|
|
705
785
|
</div>
|
|
706
|
-
`}};
|
|
786
|
+
`}};we.styles=fe,me([pt({type:Boolean,reflect:!0})],we.prototype,"responsive",null),me([pt({type:Number})],we.prototype,"breakpoint",void 0),me([pt({type:Object})],we.prototype,"data",null),me([gt(".wrapper")],we.prototype,"_wrapperElement",void 0),me([xt({selector:"vscode-form-group"})],we.prototype,"_assignedFormGroups",void 0),we=me([$t("vscode-form-container")],we);const ke=[_t,n`
|
|
707
787
|
:host {
|
|
708
788
|
--label-right-margin: 14px;
|
|
709
789
|
--label-width: 150px;
|
|
@@ -788,11 +868,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
788
868
|
::slotted(vscode-button) {
|
|
789
869
|
margin-right: 4px;
|
|
790
870
|
}
|
|
791
|
-
`];var
|
|
871
|
+
`];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};let _e=class extends kt{constructor(){super(...arguments),this.variant="horizontal"}render(){return U`
|
|
792
872
|
<div class="wrapper">
|
|
793
873
|
<slot></slot>
|
|
794
874
|
</div>
|
|
795
|
-
`}};
|
|
875
|
+
`}};_e.styles=ke,$e([pt({reflect:!0})],_e.prototype,"variant",void 0),_e=$e([$t("vscode-form-group")],_e);const Se=[_t,n`
|
|
796
876
|
:host {
|
|
797
877
|
display: block;
|
|
798
878
|
line-height: 1.4em;
|
|
@@ -805,66 +885,97 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
805
885
|
:host([vertical]) {
|
|
806
886
|
margin-left: 0;
|
|
807
887
|
}
|
|
808
|
-
`];var
|
|
888
|
+
`];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};const Be=new CSSStyleSheet;Be.replaceSync("\n vscode-form-helper * {\n margin: 0;\n }\n\n vscode-form-helper *:not(:last-child) {\n margin-bottom: 8px;\n }\n");let Oe=class extends kt{constructor(){super(),this._injectLightDOMStyles()}_injectLightDOMStyles(){const t=document.adoptedStyleSheets.find((t=>t===Be));t||document.adoptedStyleSheets.push(Be)}render(){return U`<slot></slot>`}};Oe.styles=Se,Oe=Ce([$t("vscode-form-helper")],Oe);let ze=0;const Ae=(t="")=>(ze++,`${t}${ze}`),Ee=[_t,n`
|
|
809
889
|
:host {
|
|
890
|
+
color: var(--vscode-foreground, #cccccc);
|
|
891
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
892
|
+
font-size: var(--vscode-font-size, 13px);
|
|
893
|
+
font-weight: 600;
|
|
894
|
+
line-height: ${1.2307692307692308};
|
|
895
|
+
cursor: default;
|
|
810
896
|
display: block;
|
|
897
|
+
padding: 5px 0;
|
|
811
898
|
}
|
|
812
899
|
|
|
813
900
|
.wrapper {
|
|
814
|
-
display: flex;
|
|
815
|
-
flex-wrap: wrap;
|
|
816
|
-
}
|
|
817
|
-
|
|
818
|
-
:host([variant='vertical']) .wrapper {
|
|
819
901
|
display: block;
|
|
820
902
|
}
|
|
821
903
|
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
::slotted(vscode-radio:last-child) {
|
|
827
|
-
margin-right: 0;
|
|
904
|
+
.wrapper.required:after {
|
|
905
|
+
content: ' *';
|
|
828
906
|
}
|
|
829
907
|
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
margin-bottom: 15px;
|
|
908
|
+
::slotted(.normal) {
|
|
909
|
+
font-weight: normal;
|
|
833
910
|
}
|
|
834
911
|
|
|
835
|
-
|
|
836
|
-
|
|
912
|
+
::slotted(.lightened) {
|
|
913
|
+
color: var(--vscode-foreground, #cccccc);
|
|
914
|
+
opacity: 0.9;
|
|
837
915
|
}
|
|
838
|
-
`];var
|
|
839
|
-
<
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
916
|
+
`];var Ie=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 je=class extends kt{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=Ae("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
|
+
<label
|
|
918
|
+
class=${Mt({wrapper:!0,required:this.required})}
|
|
919
|
+
@click=${this._handleClick}
|
|
920
|
+
><slot></slot
|
|
921
|
+
></label>
|
|
922
|
+
`}};je.styles=Ee,Ie([pt({reflect:!0,attribute:"for"})],je.prototype,"htmlFor",null),Ie([pt()],je.prototype,"id",null),Ie([pt({type:Boolean,reflect:!0})],je.prototype,"required",void 0),je=Ie([$t("vscode-label")],je);const Me=U`
|
|
923
|
+
<span class="icon">
|
|
924
|
+
<svg
|
|
925
|
+
width="16"
|
|
926
|
+
height="16"
|
|
927
|
+
viewBox="0 0 16 16"
|
|
928
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
929
|
+
fill="currentColor"
|
|
930
|
+
>
|
|
931
|
+
<path
|
|
932
|
+
fill-rule="evenodd"
|
|
933
|
+
clip-rule="evenodd"
|
|
934
|
+
d="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"
|
|
935
|
+
/>
|
|
936
|
+
</svg>
|
|
937
|
+
</span>
|
|
938
|
+
`,Pe=G`<svg
|
|
939
|
+
width="16"
|
|
940
|
+
height="16"
|
|
941
|
+
viewBox="0 0 16 16"
|
|
942
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
943
|
+
fill="currentColor"
|
|
944
|
+
>
|
|
945
|
+
<path
|
|
946
|
+
fill-rule="evenodd"
|
|
947
|
+
clip-rule="evenodd"
|
|
948
|
+
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
|
+
/>
|
|
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`
|
|
846
951
|
:host {
|
|
847
|
-
display:
|
|
848
|
-
height: 40px;
|
|
952
|
+
display: block;
|
|
849
953
|
position: relative;
|
|
850
|
-
width: 320px;
|
|
851
954
|
}
|
|
852
955
|
|
|
853
|
-
|
|
854
|
-
|
|
956
|
+
.scrollable-container {
|
|
957
|
+
height: 100%;
|
|
958
|
+
overflow: auto;
|
|
855
959
|
}
|
|
856
960
|
|
|
857
|
-
|
|
858
|
-
|
|
961
|
+
.scrollable-container::-webkit-scrollbar {
|
|
962
|
+
cursor: default;
|
|
963
|
+
width: 0;
|
|
964
|
+
}
|
|
965
|
+
|
|
966
|
+
.scrollable-container {
|
|
967
|
+
scrollbar-width: none;
|
|
859
968
|
}
|
|
860
969
|
|
|
861
970
|
.shadow {
|
|
862
|
-
box-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;
|
|
971
|
+
box-shadow: var(--vscode-scrollbar-shadow, #000000) 0 6px 6px -6px inset;
|
|
863
972
|
display: none;
|
|
864
|
-
|
|
865
|
-
|
|
973
|
+
height: 3px;
|
|
974
|
+
left: 0;
|
|
866
975
|
pointer-events: none;
|
|
867
976
|
position: absolute;
|
|
977
|
+
top: 0;
|
|
978
|
+
z-index: 1;
|
|
868
979
|
width: 100%;
|
|
869
980
|
}
|
|
870
981
|
|
|
@@ -872,313 +983,150 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
872
983
|
display: block;
|
|
873
984
|
}
|
|
874
985
|
|
|
875
|
-
|
|
876
|
-
background-color: var(--vscode-settings-textInputBackground);
|
|
877
|
-
border-color: var(
|
|
878
|
-
--vscode-settings-textInputBorder,
|
|
879
|
-
var(--vscode-settings-textInputBackground)
|
|
880
|
-
);
|
|
881
|
-
border-radius: 2px;
|
|
882
|
-
border-style: solid;
|
|
883
|
-
border-width: 1px;
|
|
884
|
-
box-sizing: border-box;
|
|
885
|
-
color: var(--vscode-settings-textInputForeground);
|
|
886
|
-
display: block;
|
|
887
|
-
font-family: var(--vscode-font-family);
|
|
888
|
-
font-size: var(--vscode-font-size);
|
|
889
|
-
font-weight: var(--vscode-font-weight);
|
|
986
|
+
.scrollbar-track {
|
|
890
987
|
height: 100%;
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
}
|
|
897
|
-
|
|
898
|
-
:host([rows]) textarea {
|
|
899
|
-
height: auto;
|
|
900
|
-
}
|
|
901
|
-
|
|
902
|
-
:host([invalid]) textarea,
|
|
903
|
-
:host(:invalid) textarea {
|
|
904
|
-
background-color: var(--vscode-inputValidation-errorBackground);
|
|
905
|
-
border-color: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
906
|
-
}
|
|
907
|
-
|
|
908
|
-
textarea.monospace {
|
|
909
|
-
background-color: var(--vscode-editor-background);
|
|
910
|
-
color: var(--vscode-editor-foreground);
|
|
911
|
-
font-family: var(--vscode-editor-font-family);
|
|
912
|
-
font-size: var(--vscode-editor-font-size);
|
|
913
|
-
font-weight: var(--vscode-editor-font-weight);
|
|
914
|
-
}
|
|
915
|
-
|
|
916
|
-
.textarea.monospace::placeholder {
|
|
917
|
-
color: var(--vscode-editor-inlineValuesForeground);
|
|
918
|
-
}
|
|
919
|
-
|
|
920
|
-
textarea.cursor-pointer {
|
|
921
|
-
cursor: pointer;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
textarea:focus {
|
|
925
|
-
border-color: var(--vscode-focusBorder);
|
|
926
|
-
outline: none;
|
|
988
|
+
position: absolute;
|
|
989
|
+
right: 0;
|
|
990
|
+
top: 0;
|
|
991
|
+
width: 10px;
|
|
992
|
+
z-index: 100;
|
|
927
993
|
}
|
|
928
994
|
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
opacity: 1;
|
|
995
|
+
.scrollbar-track.hidden {
|
|
996
|
+
display: none;
|
|
932
997
|
}
|
|
933
998
|
|
|
934
|
-
|
|
999
|
+
.scrollbar-thumb {
|
|
935
1000
|
background-color: transparent;
|
|
1001
|
+
min-height: var(--min-thumb-height, 20px);
|
|
1002
|
+
opacity: 0;
|
|
1003
|
+
position: absolute;
|
|
1004
|
+
right: 0;
|
|
1005
|
+
width: 10px;
|
|
936
1006
|
}
|
|
937
1007
|
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
1008
|
+
.scrollbar-thumb.visible {
|
|
1009
|
+
background-color: var(
|
|
1010
|
+
--vscode-scrollbarSlider-background,
|
|
1011
|
+
rgba(121, 121, 121, 0.4)
|
|
1012
|
+
);
|
|
1013
|
+
opacity: 1;
|
|
1014
|
+
transition: opacity 100ms;
|
|
944
1015
|
}
|
|
945
1016
|
|
|
946
|
-
|
|
947
|
-
background-color: var(
|
|
1017
|
+
.scrollbar-thumb.fade {
|
|
1018
|
+
background-color: var(
|
|
1019
|
+
--vscode-scrollbarSlider-background,
|
|
1020
|
+
rgba(121, 121, 121, 0.4)
|
|
1021
|
+
);
|
|
1022
|
+
opacity: 0;
|
|
1023
|
+
transition: opacity 800ms;
|
|
948
1024
|
}
|
|
949
1025
|
|
|
950
|
-
|
|
951
|
-
background-color: var(
|
|
1026
|
+
.scrollbar-thumb.visible:hover {
|
|
1027
|
+
background-color: var(
|
|
1028
|
+
--vscode-scrollbarSlider-hoverBackground,
|
|
1029
|
+
rgba(100, 100, 100, 0.7)
|
|
1030
|
+
);
|
|
952
1031
|
}
|
|
953
1032
|
|
|
954
|
-
|
|
955
|
-
|
|
1033
|
+
.scrollbar-thumb.visible.active,
|
|
1034
|
+
.scrollbar-thumb.visible.active:hover {
|
|
1035
|
+
background-color: var(
|
|
1036
|
+
--vscode-scrollbarSlider-activeBackground,
|
|
1037
|
+
rgba(191, 191, 191, 0.4)
|
|
1038
|
+
);
|
|
956
1039
|
}
|
|
957
1040
|
|
|
958
|
-
|
|
959
|
-
|
|
1041
|
+
.prevent-interaction {
|
|
1042
|
+
bottom: 0;
|
|
1043
|
+
left: 0;
|
|
1044
|
+
right: 0;
|
|
1045
|
+
top: 0;
|
|
1046
|
+
position: absolute;
|
|
1047
|
+
z-index: 99;
|
|
960
1048
|
}
|
|
961
1049
|
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
background-repeat: no-repeat;
|
|
965
|
-
background-position: right bottom;
|
|
1050
|
+
.content {
|
|
1051
|
+
overflow: hidden;
|
|
966
1052
|
}
|
|
967
|
-
`];var
|
|
1053
|
+
`];var Qe=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 ti=class extends kt{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: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;const t=this._scrollPos;this.scrolled=t>0;const e=this.offsetHeight,i=this._thumbHeight,s=t/(this._contentElement.offsetHeight-e),o=e-i;this._thumbY=Math.min(s*(e-i),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`
|
|
968
1054
|
<div
|
|
969
|
-
class
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
?autofocus=${this.autofocus}
|
|
974
|
-
?disabled=${this.disabled}
|
|
975
|
-
aria-label=${this.label}
|
|
976
|
-
id="textarea"
|
|
977
|
-
class=${At({monospace:this.monospace,"cursor-pointer":this._textareaPointerCursor})}
|
|
978
|
-
maxlength=${Ot(this.maxLength)}
|
|
979
|
-
minlength=${Ot(this.minLength)}
|
|
980
|
-
rows=${Ot(this.rows)}
|
|
981
|
-
cols=${Ot(this.cols)}
|
|
982
|
-
name=${Ot(this.name)}
|
|
983
|
-
placeholder=${Ot(this.placeholder)}
|
|
984
|
-
?readonly=${this.readonly}
|
|
985
|
-
.style=${Et({resize:this.resize})}
|
|
986
|
-
?required=${this.required}
|
|
987
|
-
spellcheck=${this.spellcheck}
|
|
988
|
-
@change=${this._handleChange}
|
|
989
|
-
@input=${this._handleInput}
|
|
990
|
-
@mousemove=${this._handleMouseMove}
|
|
991
|
-
@scroll=${this._handleScroll}
|
|
992
|
-
.value=${this._value}
|
|
993
|
-
></textarea>
|
|
994
|
-
`}};ze.styles=Be,ze.formAssociated=!0,ze.shadowRootOptions={...lt.shadowRootOptions,delegatesFocus:!0},Se([ut()],ze.prototype,"autocomplete",void 0),Se([ut({type:Boolean,reflect:!0})],ze.prototype,"autofocus",void 0),Se([ut({attribute:"default-value"})],ze.prototype,"defaultValue",void 0),Se([ut({type:Boolean,reflect:!0})],ze.prototype,"disabled",void 0),Se([ut({type:Boolean,reflect:!0})],ze.prototype,"invalid",void 0),Se([ut({attribute:!1})],ze.prototype,"label",void 0),Se([ut({type:Number})],ze.prototype,"maxLength",void 0),Se([ut({type:Number})],ze.prototype,"minLength",void 0),Se([ut({type:Number})],ze.prototype,"rows",void 0),Se([ut({type:Number})],ze.prototype,"cols",void 0),Se([ut()],ze.prototype,"name",void 0),Se([ut()],ze.prototype,"placeholder",void 0),Se([ut({type:Boolean,reflect:!0})],ze.prototype,"readonly",void 0),Se([ut()],ze.prototype,"resize",void 0),Se([ut({type:Boolean,reflect:!0})],ze.prototype,"required",void 0),Se([ut({type:Boolean})],ze.prototype,"spellcheck",void 0),Se([ut({type:Boolean,reflect:!0})],ze.prototype,"monospace",void 0),Se([ut()],ze.prototype,"value",null),Se([bt("#textarea")],ze.prototype,"_textareaEl",void 0),Se([vt()],ze.prototype,"_value",void 0),Se([vt()],ze.prototype,"_textareaPointerCursor",void 0),Se([vt()],ze.prototype,"_shadow",void 0),ze=Se([ct("vscode-textarea")],ze);const Ae=r(yt()),Oe=[xt,n`
|
|
995
|
-
:host {
|
|
996
|
-
align-items: center;
|
|
997
|
-
background-color: var(--vscode-settings-textInputBackground, #313131);
|
|
998
|
-
border-color: var(
|
|
999
|
-
--vscode-settings-textInputBorder,
|
|
1000
|
-
var(--vscode-settings-textInputBackground, #3c3c3c)
|
|
1001
|
-
);
|
|
1002
|
-
border-radius: 2px;
|
|
1003
|
-
border-style: solid;
|
|
1004
|
-
border-width: 1px;
|
|
1005
|
-
box-sizing: border-box;
|
|
1006
|
-
color: var(--vscode-settings-textInputForeground, #cccccc);
|
|
1007
|
-
display: inline-flex;
|
|
1008
|
-
max-width: 100%;
|
|
1009
|
-
position: relative;
|
|
1010
|
-
width: 320px;
|
|
1011
|
-
}
|
|
1012
|
-
|
|
1013
|
-
:host([focused]) {
|
|
1014
|
-
border-color: var(--vscode-focusBorder, #0078d4);
|
|
1015
|
-
}
|
|
1016
|
-
|
|
1017
|
-
:host([invalid]),
|
|
1018
|
-
:host(:invalid) {
|
|
1019
|
-
border-color: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
1020
|
-
}
|
|
1021
|
-
|
|
1022
|
-
:host([invalid]) input,
|
|
1023
|
-
:host(:invalid) input {
|
|
1024
|
-
background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
1025
|
-
}
|
|
1026
|
-
|
|
1027
|
-
::slotted([slot='content-before']) {
|
|
1028
|
-
display: block;
|
|
1029
|
-
margin-left: 2px;
|
|
1030
|
-
}
|
|
1031
|
-
|
|
1032
|
-
::slotted([slot='content-after']) {
|
|
1033
|
-
display: block;
|
|
1034
|
-
margin-right: 2px;
|
|
1035
|
-
}
|
|
1036
|
-
|
|
1037
|
-
slot[name='content-before'],
|
|
1038
|
-
slot[name='content-after'] {
|
|
1039
|
-
align-items: center;
|
|
1040
|
-
display: flex;
|
|
1041
|
-
}
|
|
1042
|
-
|
|
1043
|
-
input {
|
|
1044
|
-
background-color: var(--vscode-settings-textInputBackground, #313131);
|
|
1045
|
-
border: 0;
|
|
1046
|
-
box-sizing: border-box;
|
|
1047
|
-
color: var(--vscode-settings-textInputForeground, #cccccc);
|
|
1048
|
-
display: block;
|
|
1049
|
-
font-family: var(--vscode-font-family, ${Ae});
|
|
1050
|
-
font-size: var(--vscode-font-size, 13px);
|
|
1051
|
-
font-weight: var(--vscode-font-weight, 'normal');
|
|
1052
|
-
line-height: 18px;
|
|
1053
|
-
outline: none;
|
|
1054
|
-
padding-bottom: 3px;
|
|
1055
|
-
padding-left: 4px;
|
|
1056
|
-
padding-right: 4px;
|
|
1057
|
-
padding-top: 3px;
|
|
1058
|
-
width: 100%;
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
input:read-only:not([type='file']) {
|
|
1062
|
-
cursor: not-allowed;
|
|
1063
|
-
}
|
|
1064
|
-
|
|
1065
|
-
input::placeholder {
|
|
1066
|
-
color: var(--vscode-input-placeholderForeground, #989898);
|
|
1067
|
-
opacity: 1;
|
|
1068
|
-
}
|
|
1069
|
-
|
|
1070
|
-
input[type='file'] {
|
|
1071
|
-
line-height: 24px;
|
|
1072
|
-
padding-bottom: 0;
|
|
1073
|
-
padding-left: 2px;
|
|
1074
|
-
padding-top: 0;
|
|
1075
|
-
}
|
|
1076
|
-
|
|
1077
|
-
input[type='file']::file-selector-button {
|
|
1078
|
-
background-color: var(--vscode-button-background, #0078d4);
|
|
1079
|
-
border: 0;
|
|
1080
|
-
border-radius: 2px;
|
|
1081
|
-
color: var(--vscode-button-foreground, #ffffff);
|
|
1082
|
-
cursor: pointer;
|
|
1083
|
-
font-family: var(--vscode-font-family, ${Ae});
|
|
1084
|
-
font-size: var(--vscode-font-size, 13px);
|
|
1085
|
-
font-weight: var(--vscode-font-weight, 'normal');
|
|
1086
|
-
line-height: 20px;
|
|
1087
|
-
padding: 0 14px;
|
|
1088
|
-
}
|
|
1089
|
-
|
|
1090
|
-
input[type='file']::file-selector-button:hover {
|
|
1091
|
-
background-color: var(--vscode-button-hoverBackground, #026ec1);
|
|
1092
|
-
}
|
|
1093
|
-
`];var Ee=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let je=class extends mt{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,s){super.attributeChangedCallback(t,e,s);["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(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_onChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_onFocus(){this.focused=!0}_onBlur(){this.focused=!1}_onKeyDown(t){"Enter"===t.key&&this._internals.form&&this._internals.form?.requestSubmit()}render(){return U`
|
|
1094
|
-
<slot name="content-before"></slot>
|
|
1095
|
-
<input
|
|
1096
|
-
id="input"
|
|
1097
|
-
type=${this.type}
|
|
1098
|
-
?autofocus=${this.autofocus}
|
|
1099
|
-
autocomplete=${Ot(this.autocomplete)}
|
|
1100
|
-
aria-label=${this.label}
|
|
1101
|
-
?disabled=${this.disabled}
|
|
1102
|
-
max=${Ot(this.max)}
|
|
1103
|
-
maxlength=${Ot(this.maxLength)}
|
|
1104
|
-
min=${Ot(this.min)}
|
|
1105
|
-
minlength=${Ot(this.minLength)}
|
|
1106
|
-
?multiple=${this.multiple}
|
|
1107
|
-
name=${Ot(this.name)}
|
|
1108
|
-
pattern=${Ot(this.pattern)}
|
|
1109
|
-
placeholder=${Ot(this.placeholder)}
|
|
1110
|
-
?readonly=${this.readonly}
|
|
1111
|
-
?required=${this.required}
|
|
1112
|
-
step=${Ot(this.step)}
|
|
1113
|
-
.value=${this._value}
|
|
1114
|
-
@blur=${this._onBlur}
|
|
1115
|
-
@change=${this._onChange}
|
|
1116
|
-
@focus=${this._onFocus}
|
|
1117
|
-
@input=${this._onInput}
|
|
1118
|
-
@keydown=${this._onKeyDown}
|
|
1055
|
+
class="scrollable-container"
|
|
1056
|
+
.style=${Dt({userSelect:this._isDragging?"none":"auto"})}
|
|
1057
|
+
.scrollTop=${this._scrollPos}
|
|
1058
|
+
@scroll=${this._handleScrollableContainerScroll}
|
|
1119
1059
|
>
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
content: ' *';
|
|
1139
|
-
}
|
|
1140
|
-
|
|
1141
|
-
::slotted(.normal) {
|
|
1142
|
-
font-weight: normal;
|
|
1143
|
-
}
|
|
1144
|
-
|
|
1145
|
-
::slotted(.lightened) {
|
|
1146
|
-
color: var(--vscode-foreground);
|
|
1147
|
-
opacity: 0.9;
|
|
1148
|
-
}
|
|
1149
|
-
`];var Me=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Fe=class extends mt{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,s){super.attributeChangedCallback(t,e,s)}connectedCallback(){super.connectedCallback(),this._connected=!0,""===this._id&&(this._id=ke("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();(t instanceof Ce||t instanceof Jt)&&t.setAttribute("aria-labelledby",this._id);let e="";this.textContent&&(e=this.textContent.trim()),(t instanceof je||t instanceof ze)&&(t.label=e)}_handleClick(){const t=this._getTarget();t&&"focus"in t&&t.focus()}render(){return U`
|
|
1150
|
-
<label
|
|
1151
|
-
class=${At({wrapper:!0,required:this.required})}
|
|
1152
|
-
@click=${this._handleClick}
|
|
1153
|
-
><slot></slot
|
|
1154
|
-
></label>
|
|
1155
|
-
`}};Fe.styles=Ie,Me([ut({reflect:!0,attribute:"for"})],Fe.prototype,"htmlFor",null),Me([ut()],Fe.prototype,"id",null),Me([ut({type:Boolean,reflect:!0})],Fe.prototype,"required",void 0),Fe=Me([ct("vscode-label")],Fe);const{I:Pe}=rt,De=()=>document.createComment(""),Ne=(t,e,s)=>{const i=t._$AA.parentNode,o=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=i.insertBefore(De(),o),r=i.insertBefore(De(),o);s=new Pe(e,r,t,t.options)}else{const e=s._$AB.nextSibling,r=s._$AM,n=r!==t;if(n){let e;s._$AQ?.(t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==r._$AU&&s._$AP(e)}if(e!==o||n){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;i.insertBefore(t,o),t=e}}}return s},Ve=(t,e,s=t)=>(t._$AI(e,s),t),Re={},Te=t=>{t._$AP?.(!1,!0);let e=t._$AA;const s=t._$AB.nextSibling;for(;e!==s;){const t=e.nextSibling;e.remove(),e=t}},Le=(t,e,s)=>{const i=new Map;for(let o=e;o<=s;o++)i.set(t[o],o);return i},Ue=St(class extends zt{constructor(t){if(super(t),t.type!==Ct)throw Error("repeat() can only be used in text expressions")}dt(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const o=[],r=[];let n=0;for(const e of t)o[n]=i?i(e,n):n,r[n]=s(e,n),n++;return{values:r,keys:o}}render(t,e,s){return this.dt(t,e,s).values}update(t,[e,s,i]){const o=(t=>t._$AH)(t),{values:r,keys:n}=this.dt(e,s,i);if(!Array.isArray(o))return this.ut=n,r;const l=this.ut??=[],a=[];let c,h,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])a[v]=Ve(o[d],r[v]),d++,v++;else if(l[u]===n[p])a[p]=Ve(o[u],r[p]),u--,p--;else if(l[d]===n[p])a[p]=Ve(o[d],r[p]),Ne(t,a[p+1],o[d]),d++,p--;else if(l[u]===n[v])a[v]=Ve(o[u],r[v]),Ne(t,o[d],o[u]),u--,v++;else if(void 0===c&&(c=Le(n,v,p),h=Le(l,d,u)),c.has(l[d]))if(c.has(l[u])){const e=h.get(n[v]),s=void 0!==e?o[e]:null;if(null===s){const e=Ne(t,o[d]);Ve(e,r[v]),a[v]=e}else a[v]=Ve(s,r[v]),Ne(t,o[d],s),o[e]=null;v++}else Te(o[u]),u--;else Te(o[d]),d++;for(;v<=p;){const e=Ne(t,a[p+1]);Ve(e,r[v]),a[v++]=e}for(;d<=u;){const t=o[d++];null!==t&&Te(t)}return this.ut=n,((t,e=Re)=>{t._$AH=e})(t,a),q}}),qe=U`
|
|
1156
|
-
<span class="icon">
|
|
1157
|
-
<svg
|
|
1158
|
-
width="16"
|
|
1159
|
-
height="16"
|
|
1160
|
-
viewBox="0 0 16 16"
|
|
1161
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
1162
|
-
fill="currentColor"
|
|
1163
|
-
>
|
|
1164
|
-
<path
|
|
1165
|
-
fill-rule="evenodd"
|
|
1166
|
-
clip-rule="evenodd"
|
|
1167
|
-
d="M7.976 10.072l4.357-4.357.62.618L8.284 11h-.618L3 6.333l.619-.618 4.357 4.357z"
|
|
1168
|
-
/>
|
|
1169
|
-
</svg>
|
|
1170
|
-
</span>
|
|
1171
|
-
`;var He=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let Ke=class extends mt{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>`}};Ke.styles=xt,He([ut({type:String})],Ke.prototype,"value",void 0),He([ut({type:String})],Ke.prototype,"description",void 0),He([ut({type:Boolean,reflect:!0})],Ke.prototype,"selected",void 0),He([ut({type:Boolean,reflect:!0})],Ke.prototype,"disabled",void 0),Ke=He([ct("vscode-option")],Ke);const We=(t,e,s)=>{const i=[];return t.forEach((t=>{let o;switch(s){case"startsWithPerTerm":o=((t,e)=>{const s={match:!1,ranges:[]},i=t.toLowerCase(),o=e.toLowerCase(),r=i.split(" ");let n=0;return r.forEach(((e,i)=>{if(i>0&&(n+=r[i-1].length+1),s.match)return;const l=e.indexOf(o),a=o.length;0===l&&(s.match=!0,s.ranges.push([n+l,Math.min(n+l+a,t.length)]))})),s})(t.label,e);break;case"startsWith":o=((t,e)=>{const s={match:!1,ranges:[]};return 0===t.toLowerCase().indexOf(e.toLowerCase())&&(s.match=!0,s.ranges=[[0,e.length]]),s})(t.label,e);break;case"contains":o=((t,e)=>{const s={match:!1,ranges:[]},i=t.toLowerCase().indexOf(e.toLowerCase());return i>-1&&(s.match=!0,s.ranges=[[i,i+e.length]]),s})(t.label,e);break;default:o=((t,e)=>{const s={match:!1,ranges:[]};let i=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],i),-1===o)return{match:!1,ranges:[]};s.match=!0,s.ranges.push([o,o+1]),i=o+1}return s})(t.label,e)}o.match&&i.push({...t,ranges:o.ranges})})),i},Ge=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)},Je=(t,e)=>{const s=[],i=e.length;return i<1?U`${t}`:(e.forEach(((o,r)=>{const n=t.substring(o[0],o[1]);0===r&&0!==o[0]&&s.push(...Ge(t.substring(0,e[0][0]))),r>0&&r<i&&o[0]-e[r-1][1]!=0&&s.push(...Ge(t.substring(e[r-1][1],o[0]))),s.push(U`<b>${Ge(n)}</b>`),r===i-1&&o[1]<t.length&&s.push(...Ge(t.substring(o[1],t.length)))})),s)};var Ye=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};const Xe=22;class Ze extends mt{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){["contains","fuzzy","startsWith","startsWithPerTerm"].includes(t)?this._filter=t:(this._filter="fuzzy",console.warn(`[VSCode Webview Elements] Invalid filter: "${t}", fallback to default. Valid values are: "contains", "fuzzy", "startsWith", "startsWithPerm".`,this))}get filter(){return this._filter}set options(t){this._options=t.map(((t,e)=>({...t,index:e})))}get options(){return this._options.map((({label:t,value:e,description:s,selected:i,disabled:o})=>({label:t,value:e,description:s,selected:i,disabled:o})))}constructor(){super(),this.ariaExpanded="false",this.combobox=!1,this.invalid=!1,this.focused=!1,this.open=!1,this.position="below",this.tabIndex=0,this._activeIndex=-1,this._currentDescription="",this._filter="fuzzy",this._filterPattern="",this._selectedIndex=-1,this._selectedIndexes=[],this._options=[],this._value="",this._values=[],this._listScrollTop=0,this._multiple=!1,this._valueOptionIndexMap={},this._isHoverForbidden=!1,this._disabled=!1,this._originalTabIndex=void 0,this._onClickOutside=t=>{const e=t.composedPath().findIndex((t=>t===this));-1===e&&(this._toggleDropdown(!1),window.removeEventListener("click",this._onClickOutside))},this._onMouseMove=()=>{this._isHoverForbidden=!1,window.removeEventListener("mousemove",this._onMouseMove)},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)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("keydown",this._onComponentKeyDown),this.removeEventListener("focus",this._onComponentFocus),this.removeEventListener("blur",this._onComponentBlur)}get _filteredOptions(){return this.combobox&&""!==this._filterPattern?We(this._options,this._filterPattern,this._filter):this._options}get _currentOptions(){return this.combobox?this._filteredOptions:this._options}_setStateFromSlottedElements(){const t=[];let e=0;const s=this._assignedOptions??[],i=[],o=[];this._valueOptionIndexMap={},s.forEach(((s,r)=>{const{innerText:n,description:l,disabled:a}=s,c="string"==typeof s.value?s.value:n.trim(),h=s.selected??!1,d={label:n.trim(),value:c,description:l,selected:h,index:e,disabled:a};e=t.push(d),h&&!this._multiple&&(this._activeIndex=r),h&&(i.push(t.length-1),o.push(c)),this._valueOptionIndexMap[d.value]=d.index})),this._options=t,i.length>0&&(this._selectedIndex=i[0],this._selectedIndexes=i,this._value=o[0],this._values=o),this._multiple||this.combobox||0!==i.length||(this._selectedIndex=this._options.length>0?0:-1)}async _toggleDropdown(t){this.open=t,this.ariaExpanded=String(t),!t||this._multiple||this.combobox||(this._activeIndex=this._selectedIndex,this._activeIndex>9&&(await this.updateComplete,this._listElement.scrollTop=Math.floor(this._activeIndex*Xe))),t?window.addEventListener("click",this._onClickOutside):window.removeEventListener("click",this._onClickOutside)}_dispatchChangeEvent(){this._multiple?this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndexes:this._selectedIndexes,value:this._values}})):this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndex:this._selectedIndex,value:this._value}})),this.dispatchEvent(new Event("change")),this.dispatchEvent(new Event("input"))}_onFaceClick(){this._toggleDropdown(!this.open),this._multiple&&(this._activeIndex=0)}_toggleComboboxDropdown(){this._filterPattern="",this._toggleDropdown(!this.open),this._multiple&&(this._activeIndex=-1)}_onComboboxButtonClick(){this._toggleComboboxDropdown()}_onComboboxButtonKeyDown(t){"Enter"===t.key&&this._toggleComboboxDropdown()}_onOptionMouseOver(t){if(this._isHoverForbidden)return;const e=t.target;e.matches(".option")&&(this._activeIndex=Number(this.combobox?e.dataset.filteredIndex:e.dataset.index))}_onEnterKeyDown(){const t=this.combobox?this._filteredOptions:this._options,e=!this.open;this._toggleDropdown(e),this._multiple||e||this._selectedIndex===this._activeIndex||(this._selectedIndex=this._activeIndex>-1?t[this._activeIndex].index:-1,this._value=this._selectedIndex>-1?this._options[this._selectedIndex].value:"",this._dispatchChangeEvent()),this.combobox&&(this._multiple||e||(this._selectedIndex=this._activeIndex>-1?this._filteredOptions[this._activeIndex].index:-1),!this._multiple&&e&&this.updateComplete.then((()=>{this._scrollActiveElementToTop()}))),this._multiple&&e&&(this._activeIndex=0)}_onSpaceKeyDown(){if(this.open){if(this.open&&this._multiple&&this._activeIndex>-1){const t=this.combobox?this._filteredOptions:this._options,{selected:e}=t[this._activeIndex];t[this._activeIndex].selected=!e,this._selectedIndexes=[],t.forEach((({index:t,selected:e})=>{e&&this._selectedIndexes.push(t)}))}}else this._toggleDropdown(!0)}_scrollActiveElementToTop(){this._listElement.scrollTop=Math.floor(this._activeIndex*Xe)}async _adjustOptionListScrollPos(t){if((this.combobox?this._filteredOptions.length:this._options.length)<=10)return;this._isHoverForbidden=!0,window.addEventListener("mousemove",this._onMouseMove),this._listElement||await this.updateComplete;const e=this._listElement.scrollTop,s=this._activeIndex*Xe;"down"===t&&s+Xe>=34+e&&(this._listElement.scrollTop=(this._activeIndex-9)*Xe),"up"===t&&s<=e-Xe&&this._scrollActiveElementToTop()}_onArrowUpKeyDown(){if(this.open){if(this._activeIndex<=0)return;this._activeIndex-=1,this._adjustOptionListScrollPos("up")}}_onArrowDownKeyDown(){if(this.open){if(this._activeIndex>=this._currentOptions.length-1)return;this._activeIndex+=1,this._adjustOptionListScrollPos("down")}}_onComponentKeyDown(t){[" ","ArrowUp","ArrowDown","Escape"].includes(t.key)&&(t.stopPropagation(),t.preventDefault()),"Enter"===t.key&&this._onEnterKeyDown()," "===t.key&&this._onSpaceKeyDown(),"Escape"===t.key&&this._toggleDropdown(!1),"ArrowUp"===t.key&&this._onArrowUpKeyDown(),"ArrowDown"===t.key&&this._onArrowDownKeyDown()}_onComponentFocus(){this.focused=!0}_onComponentBlur(){this.focused=!1}_onSlotChange(){this._setStateFromSlottedElements(),this.requestUpdate()}_onComboboxInputFocus(t){t.target.select()}_onComboboxInputInput(t){this._filterPattern=t.target.value,this._activeIndex=-1,this._toggleDropdown(!0)}_onComboboxInputClick(){this._toggleDropdown(!0)}_renderOptions(){return[]}_renderDescription(){if(!this._options[this._activeIndex])return H;const{description:t}=this._options[this._activeIndex];return t?U`<div class="description">${t}</div>`:H}_renderSelectFace(){return U`${H}`}_renderComboboxFace(){return U`${H}`}_renderDropdownControls(){return U`${H}`}_renderDropdown(){const t=At({dropdown:!0,multiple:this._multiple});return U`
|
|
1172
|
-
<div class=${t}>
|
|
1173
|
-
${"above"===this.position?this._renderDescription():H}
|
|
1174
|
-
${this._renderOptions()} ${this._renderDropdownControls()}
|
|
1175
|
-
${"below"===this.position?this._renderDescription():H}
|
|
1060
|
+
<div
|
|
1061
|
+
class=${Mt({shadow:!0,visible:this.scrolled})}
|
|
1062
|
+
.style=${Dt({zIndex:String(this._scrollbarTrackZ)})}
|
|
1063
|
+
></div>
|
|
1064
|
+
${this._isDragging?U`<div class="prevent-interaction"></div>`:q}
|
|
1065
|
+
<div
|
|
1066
|
+
class=${Mt({"scrollbar-track":!0,hidden:!this._scrollbarVisible})}
|
|
1067
|
+
@mousedown=${this._handleScrollbarTrackPress}
|
|
1068
|
+
>
|
|
1069
|
+
<div
|
|
1070
|
+
class=${Mt({"scrollbar-thumb":!0,visible:!!this.alwaysVisible||this._thumbVisible,fade:!this.alwaysVisible&&this._thumbFade,active:this._thumbActive})}
|
|
1071
|
+
.style=${Dt({height:`${this._thumbHeight}px`,top:`${this._thumbY}px`})}
|
|
1072
|
+
@mousedown=${this._handleScrollThumbMouseDown}
|
|
1073
|
+
></div>
|
|
1074
|
+
</div>
|
|
1075
|
+
<div class="content">
|
|
1076
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
1077
|
+
</div>
|
|
1176
1078
|
</div>
|
|
1177
|
-
`}
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1079
|
+
`}};ti.styles=Ze,Qe([pt({type:Boolean,reflect:!0,attribute:"always-visible"})],ti.prototype,"alwaysVisible",void 0),Qe([pt({type:Number,attribute:"fast-scroll-sensitivity"})],ti.prototype,"fastScrollSensitivity",void 0),Qe([pt({type:Number,attribute:"min-thumb-size"})],ti.prototype,"minThumbSize",void 0),Qe([pt({type:Number,attribute:"mouse-wheel-scroll-sensitivity"})],ti.prototype,"mouseWheelScrollSensitivity",void 0),Qe([pt({type:Boolean,reflect:!0})],ti.prototype,"shadow",void 0),Qe([pt({type:Boolean,reflect:!0})],ti.prototype,"scrolled",void 0),Qe([pt({type:Number,attribute:"scroll-pos"})],ti.prototype,"scrollPos",null),Qe([pt({type:Number,attribute:"scroll-max"})],ti.prototype,"scrollMax",null),Qe([bt()],ti.prototype,"_isDragging",void 0),Qe([bt()],ti.prototype,"_thumbHeight",void 0),Qe([bt()],ti.prototype,"_thumbY",void 0),Qe([bt()],ti.prototype,"_thumbVisible",void 0),Qe([bt()],ti.prototype,"_thumbFade",void 0),Qe([bt()],ti.prototype,"_thumbActive",void 0),Qe([gt(".content")],ti.prototype,"_contentElement",void 0),Qe([gt(".scrollbar-thumb",!0)],ti.prototype,"_scrollThumbElement",void 0),Qe([gt(".scrollable-container")],ti.prototype,"_scrollableContainer",void 0),Qe([xt()],ti.prototype,"_assignedElements",void 0),ti=Qe([$t("vscode-scrollable")],ti);var ei=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 ii=22;class si extends kt{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 Xe(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=qe(t.label,e);break;case"startsWith":o=We(t.label,e);break;case"contains":o=Ke(t.label,e);break;default:o=Je(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*ii)}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*ii,r=o>=s&&o<=s+220-ii;"down"===t&&(r||(this._optionListScrollPos=e*ii-198)),"up"===t&&(r||(this._optionListScrollPos=Math.floor(this._opts.relativeActiveIndex*ii)))}_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=${Mt({"checkbox-icon":!0,checked:t})}>${Pe}</span
|
|
1080
|
+
><span class="option-label">${e}</span>`}_renderOptions(){const t=this._opts.options;return U`
|
|
1081
|
+
<ul
|
|
1082
|
+
aria-label=${Pt(this.label??void 0)}
|
|
1083
|
+
aria-multiselectable=${Pt(this._opts.multiSelect?"true":void 0)}
|
|
1084
|
+
class="options"
|
|
1085
|
+
id="select-listbox"
|
|
1086
|
+
role="listbox"
|
|
1087
|
+
tabindex="-1"
|
|
1088
|
+
@click=${this._onOptionClick}
|
|
1089
|
+
@mouseover=${this._onOptionMouseOver}
|
|
1090
|
+
>
|
|
1091
|
+
${Ue(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(...Ye(t.substring(0,e[0][0]))),r>0&&r<s&&o[0]-e[r-1][1]!=0&&i.push(...Ye(t.substring(e[r-1][1],o[0]))),i.push(U`<b>${Ye(n)}</b>`),r===s-1&&o[1]<t.length&&i.push(...Ye(t.substring(o[1],t.length)))})),i)})(t.label,t.ranges??[]):t.label;return U`
|
|
1092
|
+
<li
|
|
1093
|
+
aria-selected=${s?"true":"false"}
|
|
1094
|
+
class=${Mt(o)}
|
|
1095
|
+
data-index=${t.index}
|
|
1096
|
+
data-filtered-index=${e}
|
|
1097
|
+
id=${`op-${t.index}`}
|
|
1098
|
+
role="option"
|
|
1099
|
+
tabindex="-1"
|
|
1100
|
+
>
|
|
1101
|
+
${function(t,e,i){return t?e(t):i?.(t)}(this._opts.multiSelect,(()=>this._renderCheckbox(s,r)),(()=>r))}
|
|
1102
|
+
</li>
|
|
1103
|
+
`}))}
|
|
1104
|
+
${this._renderPlaceholderOption(this._opts.numOfVisibleOptions<1)}
|
|
1105
|
+
</ul>
|
|
1106
|
+
`}_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=${Mt({option:!0,placeholder:!0,active:this._isPlaceholderOptionActive})}
|
|
1108
|
+
@mouseout=${this._onPlaceholderOptionMouseOut}
|
|
1109
|
+
>
|
|
1110
|
+
Add "${this._opts.filterPattern}"
|
|
1111
|
+
</li>`:t?U`<li class="no-options" @click=${this._onNoOptionsClick}>
|
|
1112
|
+
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*ii,220);return U`
|
|
1114
|
+
<div class=${Mt(t)}>
|
|
1115
|
+
${"above"===this.position?this._renderDescription():q}
|
|
1116
|
+
<vscode-scrollable
|
|
1117
|
+
always-visible
|
|
1118
|
+
class="scrollable"
|
|
1119
|
+
min-thumb-size="40"
|
|
1120
|
+
tabindex="-1"
|
|
1121
|
+
@vsc-scrollable-scroll=${this._onOptionListScroll}
|
|
1122
|
+
.scrollPos=${this._optionListScrollPos}
|
|
1123
|
+
.style=${Dt({height:`${i}px`})}
|
|
1124
|
+
>
|
|
1125
|
+
${this._renderOptions()} ${this._renderDropdownControls()}
|
|
1126
|
+
</vscode-scrollable>
|
|
1127
|
+
${"below"===this.position?this._renderDescription():q}
|
|
1128
|
+
</div>
|
|
1129
|
+
`}}ei([pt({type:Boolean,reflect:!0})],si.prototype,"creatable",void 0),ei([pt({type:Boolean,reflect:!0})],si.prototype,"combobox",null),ei([pt({reflect:!0})],si.prototype,"label",void 0),ei([pt({type:Boolean,reflect:!0})],si.prototype,"disabled",null),ei([pt({type:Boolean,reflect:!0})],si.prototype,"invalid",void 0),ei([pt()],si.prototype,"filter",null),ei([pt({type:Boolean,reflect:!0})],si.prototype,"focused",void 0),ei([pt({type:Boolean,reflect:!0})],si.prototype,"open",void 0),ei([pt({type:Array})],si.prototype,"options",null),ei([pt({reflect:!0})],si.prototype,"position",void 0),ei([xt({flatten:!0,selector:"vscode-option"})],si.prototype,"_assignedOptions",void 0),ei([bt()],si.prototype,"_currentDescription",void 0),ei([bt()],si.prototype,"_filter",void 0),ei([bt()],si.prototype,"_filteredOptions",null),ei([bt()],si.prototype,"_selectedIndexes",void 0),ei([bt()],si.prototype,"_options",void 0),ei([bt()],si.prototype,"_value",void 0),ei([bt()],si.prototype,"_values",void 0),ei([bt()],si.prototype,"_isPlaceholderOptionActive",void 0),ei([bt()],si.prototype,"_isBeingFiltered",void 0),ei([bt()],si.prototype,"_optionListScrollPos",void 0);var oi=[_t,n`
|
|
1182
1130
|
:host {
|
|
1183
1131
|
display: inline-block;
|
|
1184
1132
|
max-width: 100%;
|
|
@@ -1193,16 +1141,16 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1193
1141
|
|
|
1194
1142
|
.select-face,
|
|
1195
1143
|
.combobox-face {
|
|
1196
|
-
background-color: var(--vscode-settings-dropdownBackground);
|
|
1197
|
-
border-color: var(--vscode-settings-dropdownBorder);
|
|
1144
|
+
background-color: var(--vscode-settings-dropdownBackground, #313131);
|
|
1145
|
+
border-color: var(--vscode-settings-dropdownBorder, #3c3c3c);
|
|
1198
1146
|
border-radius: 2px;
|
|
1199
1147
|
border-style: solid;
|
|
1200
1148
|
border-width: 1px;
|
|
1201
1149
|
box-sizing: border-box;
|
|
1202
|
-
color: var(--vscode-settings-dropdownForeground);
|
|
1203
|
-
font-family: var(--vscode-font-family);
|
|
1204
|
-
font-size: var(--vscode-font-size);
|
|
1205
|
-
font-weight: var(--vscode-font-weight);
|
|
1150
|
+
color: var(--vscode-settings-dropdownForeground, #cccccc);
|
|
1151
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
1152
|
+
font-size: var(--vscode-font-size, 13px);
|
|
1153
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
1206
1154
|
line-height: 18px;
|
|
1207
1155
|
position: relative;
|
|
1208
1156
|
user-select: none;
|
|
@@ -1213,7 +1161,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1213
1161
|
:host(:invalid) .select-face,
|
|
1214
1162
|
:host([invalid]) .combobox-face,
|
|
1215
1163
|
:host(:invalid) .combobox-face {
|
|
1216
|
-
background-color: var(--vscode-inputValidation-errorBackground);
|
|
1164
|
+
background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
1217
1165
|
border-color: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
1218
1166
|
}
|
|
1219
1167
|
|
|
@@ -1234,16 +1182,15 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1234
1182
|
}
|
|
1235
1183
|
|
|
1236
1184
|
.select-face-badge {
|
|
1237
|
-
background-color: var(--vscode-badge-background);
|
|
1185
|
+
background-color: var(--vscode-badge-background, #616161);
|
|
1238
1186
|
border-radius: 2px;
|
|
1239
|
-
color: var(--vscode-badge-foreground);
|
|
1187
|
+
color: var(--vscode-badge-foreground, #f8f8f8);
|
|
1240
1188
|
display: inline-block;
|
|
1241
1189
|
flex-shrink: 0;
|
|
1242
1190
|
font-size: 11px;
|
|
1243
1191
|
line-height: 16px;
|
|
1244
1192
|
margin: 2px;
|
|
1245
1193
|
padding: 2px 3px;
|
|
1246
|
-
text-transform: uppercase;
|
|
1247
1194
|
white-space: nowrap;
|
|
1248
1195
|
}
|
|
1249
1196
|
|
|
@@ -1260,7 +1207,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1260
1207
|
:host(:focus) .combobox-face,
|
|
1261
1208
|
:host([focused]) .select-face,
|
|
1262
1209
|
:host([focused]) .combobox-face {
|
|
1263
|
-
border-color: var(--vscode-focusBorder);
|
|
1210
|
+
border-color: var(--vscode-focusBorder, #0078d4);
|
|
1264
1211
|
outline: none;
|
|
1265
1212
|
}
|
|
1266
1213
|
|
|
@@ -1268,10 +1215,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1268
1215
|
background-color: transparent;
|
|
1269
1216
|
box-sizing: border-box;
|
|
1270
1217
|
border: 0;
|
|
1271
|
-
color: var(--vscode-foreground);
|
|
1218
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1272
1219
|
display: block;
|
|
1273
|
-
font-family: var(--vscode-font-family);
|
|
1274
|
-
font-size: var(--vscode-font-size);
|
|
1220
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
1221
|
+
font-size: var(--vscode-font-size, 13px);
|
|
1275
1222
|
line-height: 16px;
|
|
1276
1223
|
padding: 4px;
|
|
1277
1224
|
width: 100%;
|
|
@@ -1282,50 +1229,64 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1282
1229
|
}
|
|
1283
1230
|
|
|
1284
1231
|
.combobox-button {
|
|
1232
|
+
align-items: center;
|
|
1285
1233
|
background-color: transparent;
|
|
1286
1234
|
border: 0;
|
|
1287
|
-
|
|
1235
|
+
border-radius: 2px;
|
|
1236
|
+
box-sizing: content-box;
|
|
1237
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1288
1238
|
cursor: pointer;
|
|
1239
|
+
display: flex;
|
|
1289
1240
|
flex-shrink: 0;
|
|
1290
|
-
height:
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1241
|
+
height: 16px;
|
|
1242
|
+
justify-content: center;
|
|
1243
|
+
margin: 1px 1px 0 0;
|
|
1244
|
+
padding: 3px;
|
|
1245
|
+
width: 22px;
|
|
1294
1246
|
}
|
|
1295
1247
|
|
|
1296
|
-
.combobox-button:
|
|
1297
|
-
.combobox-button:
|
|
1298
|
-
background-color: var(
|
|
1248
|
+
.combobox-button:hover,
|
|
1249
|
+
.combobox-button:focus-visible {
|
|
1250
|
+
background-color: var(
|
|
1251
|
+
--vscode-toolbar-hoverBackground,
|
|
1252
|
+
rgba(90, 93, 94, 0.31)
|
|
1253
|
+
);
|
|
1254
|
+
outline-style: dashed;
|
|
1255
|
+
outline-color: var(--vscode-toolbar-hoverOutline, transparent);
|
|
1299
1256
|
}
|
|
1300
1257
|
|
|
1301
|
-
.combobox-button:focus {
|
|
1302
|
-
outline:
|
|
1258
|
+
.combobox-button:focus-visible {
|
|
1259
|
+
outline: none;
|
|
1303
1260
|
}
|
|
1304
1261
|
|
|
1305
1262
|
.icon {
|
|
1306
|
-
color: var(--vscode-foreground);
|
|
1263
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1307
1264
|
display: block;
|
|
1308
1265
|
height: 14px;
|
|
1309
1266
|
pointer-events: none;
|
|
1267
|
+
width: 14px;
|
|
1268
|
+
}
|
|
1269
|
+
|
|
1270
|
+
.select-face .icon {
|
|
1310
1271
|
position: absolute;
|
|
1311
|
-
right:
|
|
1272
|
+
right: 6px;
|
|
1312
1273
|
top: 5px;
|
|
1313
|
-
width: 14px;
|
|
1314
1274
|
}
|
|
1315
1275
|
|
|
1316
1276
|
.icon svg {
|
|
1317
|
-
color: var(--vscode-foreground);
|
|
1277
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1318
1278
|
height: 100%;
|
|
1319
1279
|
width: 100%;
|
|
1320
1280
|
}
|
|
1321
1281
|
|
|
1322
1282
|
.dropdown {
|
|
1323
|
-
background-color: var(--vscode-settings-dropdownBackground);
|
|
1324
|
-
border-color: var(--vscode-settings-dropdownListBorder);
|
|
1283
|
+
background-color: var(--vscode-settings-dropdownBackground, #313131);
|
|
1284
|
+
border-color: var(--vscode-settings-dropdownListBorder, #454545);
|
|
1325
1285
|
border-radius: 0 0 3px 3px;
|
|
1326
1286
|
border-style: solid;
|
|
1327
1287
|
border-width: 1px;
|
|
1328
1288
|
box-sizing: border-box;
|
|
1289
|
+
display: none;
|
|
1329
1290
|
left: 0;
|
|
1330
1291
|
padding-bottom: 2px;
|
|
1331
1292
|
position: absolute;
|
|
@@ -1334,6 +1295,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1334
1295
|
z-index: var(--dropdown-z-index, 2);
|
|
1335
1296
|
}
|
|
1336
1297
|
|
|
1298
|
+
.dropdown.open {
|
|
1299
|
+
display: block;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1337
1302
|
:host([position='above']) .dropdown {
|
|
1338
1303
|
border-radius: 3px 3px 0 0;
|
|
1339
1304
|
bottom: 26px;
|
|
@@ -1344,7 +1309,15 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1344
1309
|
|
|
1345
1310
|
:host(:focus) .dropdown,
|
|
1346
1311
|
:host([focused]) .dropdown {
|
|
1347
|
-
border-color: var(--vscode-focusBorder);
|
|
1312
|
+
border-color: var(--vscode-focusBorder, #0078d4);
|
|
1313
|
+
}
|
|
1314
|
+
|
|
1315
|
+
.scrollable {
|
|
1316
|
+
display: block;
|
|
1317
|
+
max-height: 222px;
|
|
1318
|
+
margin: 1px;
|
|
1319
|
+
outline: none;
|
|
1320
|
+
overflow: hidden;
|
|
1348
1321
|
}
|
|
1349
1322
|
|
|
1350
1323
|
.options {
|
|
@@ -1352,47 +1325,49 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1352
1325
|
cursor: pointer;
|
|
1353
1326
|
list-style: none;
|
|
1354
1327
|
margin: 0;
|
|
1355
|
-
|
|
1356
|
-
overflow: auto;
|
|
1357
|
-
padding: 1px;
|
|
1328
|
+
padding: 0;
|
|
1358
1329
|
}
|
|
1359
1330
|
|
|
1360
1331
|
.option {
|
|
1361
1332
|
align-items: center;
|
|
1362
|
-
|
|
1333
|
+
box-sizing: border-box;
|
|
1334
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1363
1335
|
cursor: pointer;
|
|
1364
1336
|
display: flex;
|
|
1365
|
-
font-family: var(--vscode-font-family);
|
|
1366
|
-
font-size: var(--vscode-font-size);
|
|
1367
|
-
font-weight: var(--vscode-font-weight);
|
|
1368
|
-
|
|
1337
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
1338
|
+
font-size: var(--vscode-font-size, 13px);
|
|
1339
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
1340
|
+
height: 22px;
|
|
1341
|
+
line-height: 18px;
|
|
1369
1342
|
min-height: calc(var(--vscode-font-size) * 1.3);
|
|
1370
1343
|
padding: 1px 3px;
|
|
1371
1344
|
user-select: none;
|
|
1372
|
-
|
|
1373
|
-
|
|
1374
|
-
|
|
1345
|
+
outline-color: transparent;
|
|
1346
|
+
outline-offset: -1px;
|
|
1347
|
+
outline-style: solid;
|
|
1348
|
+
outline-width: 1px;
|
|
1375
1349
|
}
|
|
1376
1350
|
|
|
1377
1351
|
.option b {
|
|
1378
|
-
color: var(--vscode-list-highlightForeground);
|
|
1352
|
+
color: var(--vscode-list-highlightForeground, #2aaaff);
|
|
1379
1353
|
}
|
|
1380
1354
|
|
|
1381
1355
|
.option.active b {
|
|
1382
|
-
color: var(--vscode-list-focusHighlightForeground);
|
|
1356
|
+
color: var(--vscode-list-focusHighlightForeground, #2aaaff);
|
|
1383
1357
|
}
|
|
1384
1358
|
|
|
1385
1359
|
.option:not(.disabled):hover {
|
|
1386
|
-
background-color: var(--vscode-list-hoverBackground);
|
|
1387
|
-
color: var(--vscode-list-hoverForeground);
|
|
1360
|
+
background-color: var(--vscode-list-hoverBackground, #2a2d2e);
|
|
1361
|
+
color: var(--vscode-list-hoverForeground, #ffffff);
|
|
1388
1362
|
}
|
|
1389
1363
|
|
|
1390
1364
|
:host-context(body[data-vscode-theme-kind='vscode-high-contrast'])
|
|
1391
1365
|
.option:hover,
|
|
1392
1366
|
:host-context(body[data-vscode-theme-kind='vscode-high-contrast-light'])
|
|
1393
1367
|
.option:hover {
|
|
1394
|
-
|
|
1395
|
-
|
|
1368
|
+
outline-style: dotted;
|
|
1369
|
+
outline-color: var(--vscode-list-focusOutline, #0078d4);
|
|
1370
|
+
outline-width: 1px;
|
|
1396
1371
|
}
|
|
1397
1372
|
|
|
1398
1373
|
.option.disabled {
|
|
@@ -1402,19 +1377,51 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1402
1377
|
|
|
1403
1378
|
.option.active,
|
|
1404
1379
|
.option.active:hover {
|
|
1405
|
-
background-color: var(--vscode-list-activeSelectionBackground);
|
|
1406
|
-
color: var(--vscode-list-activeSelectionForeground);
|
|
1407
|
-
|
|
1380
|
+
background-color: var(--vscode-list-activeSelectionBackground, #04395e);
|
|
1381
|
+
color: var(--vscode-list-activeSelectionForeground, #ffffff);
|
|
1382
|
+
outline-color: var(--vscode-list-activeSelectionBackground, #04395e);
|
|
1383
|
+
outline-style: solid;
|
|
1384
|
+
outline-width: 1px;
|
|
1385
|
+
}
|
|
1386
|
+
|
|
1387
|
+
.no-options {
|
|
1388
|
+
align-items: center;
|
|
1389
|
+
border-color: transparent;
|
|
1408
1390
|
border-style: solid;
|
|
1409
1391
|
border-width: 1px;
|
|
1392
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1393
|
+
cursor: default;
|
|
1394
|
+
display: flex;
|
|
1395
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
1396
|
+
font-size: var(--vscode-font-size, 13px);
|
|
1397
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
1398
|
+
line-height: 18px;
|
|
1399
|
+
min-height: calc(var(--vscode-font-size) * 1.3);
|
|
1400
|
+
opacity: 0.85;
|
|
1401
|
+
padding: 1px 3px;
|
|
1402
|
+
user-select: none;
|
|
1403
|
+
}
|
|
1404
|
+
|
|
1405
|
+
.placeholder {
|
|
1406
|
+
overflow: hidden;
|
|
1407
|
+
text-overflow: ellipsis;
|
|
1408
|
+
white-space: nowrap;
|
|
1409
|
+
}
|
|
1410
|
+
|
|
1411
|
+
.placeholder span {
|
|
1412
|
+
font-weight: bold;
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
.placeholder:not(.disabled):hover {
|
|
1416
|
+
color: var(--vscode-list-activeSelectionForeground, #ffffff);
|
|
1410
1417
|
}
|
|
1411
1418
|
|
|
1412
1419
|
:host-context(body[data-vscode-theme-kind='vscode-high-contrast'])
|
|
1413
1420
|
.option.active,
|
|
1414
1421
|
:host-context(body[data-vscode-theme-kind='vscode-high-contrast-light'])
|
|
1415
1422
|
.option.active:hover {
|
|
1416
|
-
|
|
1417
|
-
|
|
1423
|
+
outline-color: var(--vscode-list-focusOutline, #0078d4);
|
|
1424
|
+
outline-style: dashed;
|
|
1418
1425
|
}
|
|
1419
1426
|
|
|
1420
1427
|
.option-label {
|
|
@@ -1424,48 +1431,40 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1424
1431
|
}
|
|
1425
1432
|
|
|
1426
1433
|
.dropdown.multiple .option.selected {
|
|
1427
|
-
background-color: var(--vscode-list-hoverBackground);
|
|
1428
|
-
|
|
1434
|
+
background-color: var(--vscode-list-hoverBackground, #2a2d2e);
|
|
1435
|
+
outline-color: var(--vscode-list-hoverBackground, #2a2d2e);
|
|
1429
1436
|
}
|
|
1430
1437
|
|
|
1431
1438
|
.dropdown.multiple .option.selected.active {
|
|
1432
|
-
background-color: var(--vscode-list-activeSelectionBackground);
|
|
1433
|
-
color: var(--vscode-list-activeSelectionForeground);
|
|
1434
|
-
|
|
1439
|
+
background-color: var(--vscode-list-activeSelectionBackground, #04395e);
|
|
1440
|
+
color: var(--vscode-list-activeSelectionForeground, #ffffff);
|
|
1441
|
+
outline-color: var(--vscode-list-activeSelectionBackground, #04395e);
|
|
1435
1442
|
}
|
|
1436
1443
|
|
|
1437
1444
|
.checkbox-icon {
|
|
1438
|
-
|
|
1439
|
-
|
|
1445
|
+
align-items: center;
|
|
1446
|
+
background-color: var(--vscode-checkbox-background, #313131);
|
|
1447
|
+
border: 1px solid var(--vscode-checkbox-border);
|
|
1440
1448
|
border-radius: 2px;
|
|
1441
1449
|
box-sizing: border-box;
|
|
1442
|
-
|
|
1450
|
+
color: var(--vscode-checkbox-foreground);
|
|
1451
|
+
display: inline-flex;
|
|
1452
|
+
height: 15px;
|
|
1453
|
+
justify-content: center;
|
|
1443
1454
|
margin-right: 5px;
|
|
1444
1455
|
overflow: hidden;
|
|
1445
1456
|
position: relative;
|
|
1446
|
-
width:
|
|
1447
|
-
}
|
|
1448
|
-
|
|
1449
|
-
.checkbox-icon.checked:before,
|
|
1450
|
-
.checkbox-icon.checked:after {
|
|
1451
|
-
content: '';
|
|
1452
|
-
display: block;
|
|
1453
|
-
height: 5px;
|
|
1454
|
-
position: absolute;
|
|
1455
|
-
transform: rotate(-45deg);
|
|
1456
|
-
width: 10px;
|
|
1457
|
+
width: 15px;
|
|
1457
1458
|
}
|
|
1458
1459
|
|
|
1459
|
-
.checkbox-icon
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1460
|
+
.checkbox-icon svg {
|
|
1461
|
+
display: none;
|
|
1462
|
+
height: 13px;
|
|
1463
|
+
width: 13px;
|
|
1463
1464
|
}
|
|
1464
1465
|
|
|
1465
|
-
.checkbox-icon.checked
|
|
1466
|
-
|
|
1467
|
-
left: 1px;
|
|
1468
|
-
top: -0.5px;
|
|
1466
|
+
.checkbox-icon.checked svg {
|
|
1467
|
+
display: block;
|
|
1469
1468
|
}
|
|
1470
1469
|
|
|
1471
1470
|
.dropdown-controls {
|
|
@@ -1482,7 +1481,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1482
1481
|
align-items: center;
|
|
1483
1482
|
background-color: transparent;
|
|
1484
1483
|
border: 0;
|
|
1485
|
-
color: var(--vscode-foreground);
|
|
1484
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1486
1485
|
cursor: pointer;
|
|
1487
1486
|
display: flex;
|
|
1488
1487
|
height: 24px;
|
|
@@ -1496,18 +1495,18 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1496
1495
|
}
|
|
1497
1496
|
|
|
1498
1497
|
.action-icon:focus-visible {
|
|
1499
|
-
outline: 1px solid var(--vscode-focusBorder);
|
|
1498
|
+
outline: 1px solid var(--vscode-focusBorder, #0078d4);
|
|
1500
1499
|
outline-offset: -1px;
|
|
1501
1500
|
}
|
|
1502
1501
|
|
|
1503
1502
|
.description {
|
|
1504
|
-
border-color: var(--vscode-settings-dropdownBorder);
|
|
1503
|
+
border-color: var(--vscode-settings-dropdownBorder, #3c3c3c);
|
|
1505
1504
|
border-style: solid;
|
|
1506
1505
|
border-width: 1px 0 0;
|
|
1507
|
-
color: var(--vscode-foreground);
|
|
1508
|
-
font-family: var(--vscode-font-family);
|
|
1509
|
-
font-size: var(--vscode-font-size);
|
|
1510
|
-
font-weight: var(--vscode-font-weight);
|
|
1506
|
+
color: var(--vscode-foreground, #cccccc);
|
|
1507
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
1508
|
+
font-size: var(--vscode-font-size, 13px);
|
|
1509
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
1511
1510
|
line-height: 1.3;
|
|
1512
1511
|
padding: 6px 4px;
|
|
1513
1512
|
word-wrap: break-word;
|
|
@@ -1516,84 +1515,87 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1516
1515
|
:host([position='above']) .description {
|
|
1517
1516
|
border-width: 0 0 1px;
|
|
1518
1517
|
}
|
|
1519
|
-
`],
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
>${this._selectedIndexes.length} items selected</span
|
|
1523
|
-
>`}}_renderSelectFace(){return U`
|
|
1524
|
-
<div
|
|
1525
|
-
class="select-face face multiselect"
|
|
1526
|
-
@click=${this._onFaceClick}
|
|
1527
|
-
tabindex=${this.tabIndex>-1?0:-1}
|
|
1528
|
-
>
|
|
1529
|
-
${this._renderLabel()} ${qe}
|
|
1530
|
-
</div>
|
|
1531
|
-
`}_renderComboboxFace(){const t=this._selectedIndex>-1?this._options[this._selectedIndex].label:"";return U`
|
|
1518
|
+
`],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 si{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(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndexes:this._opts.selectedIndexes,value:this._opts.multiSelectValue}})),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
|
+
>${this._opts.selectedIndexes.length} Selected</span
|
|
1520
|
+
>`}_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`
|
|
1532
1521
|
<div class="combobox-face face">
|
|
1533
|
-
${this._renderLabel()}
|
|
1522
|
+
${this._opts.multiSelect?this._renderLabel():q}
|
|
1534
1523
|
<input
|
|
1524
|
+
aria-activedescendant=${e}
|
|
1525
|
+
aria-autocomplete="list"
|
|
1526
|
+
aria-controls="select-listbox"
|
|
1527
|
+
aria-expanded=${i}
|
|
1528
|
+
aria-haspopup="listbox"
|
|
1529
|
+
aria-label=${Pt(this.label)}
|
|
1535
1530
|
class="combobox-input"
|
|
1531
|
+
role="combobox"
|
|
1536
1532
|
spellcheck="false"
|
|
1537
1533
|
type="text"
|
|
1538
1534
|
autocomplete="off"
|
|
1539
1535
|
.value=${t}
|
|
1540
1536
|
@focus=${this._onComboboxInputFocus}
|
|
1537
|
+
@blur=${this._onComboboxInputBlur}
|
|
1541
1538
|
@input=${this._onComboboxInputInput}
|
|
1542
1539
|
@click=${this._onComboboxInputClick}
|
|
1540
|
+
@keydown=${this._onComboboxInputSpaceKeyDown}
|
|
1543
1541
|
>
|
|
1544
1542
|
<button
|
|
1543
|
+
aria-label="Open the list of options"
|
|
1545
1544
|
class="combobox-button"
|
|
1546
1545
|
type="button"
|
|
1547
1546
|
@click=${this._onComboboxButtonClick}
|
|
1548
1547
|
@keydown=${this._onComboboxButtonKeyDown}
|
|
1548
|
+
tabindex="-1"
|
|
1549
1549
|
>
|
|
1550
|
-
${
|
|
1550
|
+
${Me}
|
|
1551
1551
|
</button>
|
|
1552
1552
|
</div>
|
|
1553
|
-
`}
|
|
1554
|
-
<
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1553
|
+
`}_renderSelectFace(){const t=this._opts.activeIndex>-1?`op-${this._opts.activeIndex}`:"",e=this.open?"true":"false";return U`
|
|
1554
|
+
<div
|
|
1555
|
+
aria-activedescendant=${Pt(this._opts.multiSelect?void 0:t)}
|
|
1556
|
+
aria-controls="select-listbox"
|
|
1557
|
+
aria-expanded=${Pt(this._opts.multiSelect?void 0:e)}
|
|
1558
|
+
aria-haspopup="listbox"
|
|
1559
|
+
aria-label=${Pt(this.label??void 0)}
|
|
1560
|
+
class="select-face face multiselect"
|
|
1561
|
+
@click=${this._onFaceClick}
|
|
1562
|
+
.tabIndex=${this.disabled?-1:0}
|
|
1558
1563
|
>
|
|
1559
|
-
${
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
>
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
<vscode-button class="button-accept" @click=${this._onMultiAcceptClick}
|
|
1593
|
-
>OK</vscode-button
|
|
1594
|
-
>
|
|
1564
|
+
${this._renderLabel()} ${Me}
|
|
1565
|
+
</div>
|
|
1566
|
+
`}_renderDropdownControls(){return this._filteredOptions.length>0?U`
|
|
1567
|
+
<div class="dropdown-controls">
|
|
1568
|
+
<button
|
|
1569
|
+
type="button"
|
|
1570
|
+
@click=${this._onMultiSelectAllClick}
|
|
1571
|
+
title="Select all"
|
|
1572
|
+
class="action-icon"
|
|
1573
|
+
id="select-all"
|
|
1574
|
+
>
|
|
1575
|
+
<vscode-icon name="checklist"></vscode-icon>
|
|
1576
|
+
</button>
|
|
1577
|
+
<button
|
|
1578
|
+
type="button"
|
|
1579
|
+
@click=${this._onMultiDeselectAllClick}
|
|
1580
|
+
title="Deselect all"
|
|
1581
|
+
class="action-icon"
|
|
1582
|
+
id="select-none"
|
|
1583
|
+
>
|
|
1584
|
+
<vscode-icon name="clear-all"></vscode-icon>
|
|
1585
|
+
</button>
|
|
1586
|
+
<vscode-button
|
|
1587
|
+
class="button-accept"
|
|
1588
|
+
@click=${this._onMultiAcceptClick}
|
|
1589
|
+
>OK</vscode-button
|
|
1590
|
+
>
|
|
1591
|
+
</div>
|
|
1592
|
+
`:U`${q}`}render(){return U`
|
|
1593
|
+
<div class="multi-select">
|
|
1594
|
+
<slot class="main-slot" @slotchange=${this._onSlotChange}></slot>
|
|
1595
|
+
${this.combobox?this._renderComboboxFace():this._renderSelectFace()}
|
|
1596
|
+
${this._renderDropdown()}
|
|
1595
1597
|
</div>
|
|
1596
|
-
`}};
|
|
1598
|
+
`}};ni.styles=oi,ni.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},ni.formAssociated=!0,ri([pt({type:Array,attribute:"default-value"})],ni.prototype,"defaultValue",void 0),ri([pt({type:Boolean,reflect:!0})],ni.prototype,"required",void 0),ri([pt({reflect:!0})],ni.prototype,"name",void 0),ri([pt({type:Array,attribute:!1})],ni.prototype,"selectedIndexes",null),ri([pt({type:Array})],ni.prototype,"value",null),ri([gt(".face")],ni.prototype,"_faceElement",void 0),ni=ri([$t("vscode-multi-select")],ni);const li=[_t,n`
|
|
1597
1599
|
:host {
|
|
1598
1600
|
align-items: center;
|
|
1599
1601
|
display: block;
|
|
@@ -1616,7 +1618,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1616
1618
|
|
|
1617
1619
|
.indeterminate-indicator-1 {
|
|
1618
1620
|
fill: none;
|
|
1619
|
-
stroke: var(--vscode-progressBar-background);
|
|
1621
|
+
stroke: var(--vscode-progressBar-background, #0078d4);
|
|
1620
1622
|
stroke-width: 2px;
|
|
1621
1623
|
stroke-linecap: square;
|
|
1622
1624
|
transform-origin: 50% 50%;
|
|
@@ -1639,7 +1641,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1639
1641
|
transform: rotate(1080deg);
|
|
1640
1642
|
}
|
|
1641
1643
|
}
|
|
1642
|
-
`];var
|
|
1644
|
+
`];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 kt{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">
|
|
1643
1645
|
<circle
|
|
1644
1646
|
class="background"
|
|
1645
1647
|
part="background"
|
|
@@ -1654,10 +1656,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1654
1656
|
cy="8px"
|
|
1655
1657
|
r="7px"
|
|
1656
1658
|
></circle>
|
|
1657
|
-
</svg>`}};
|
|
1659
|
+
</svg>`}};ai.styles=li,hi([pt({reflect:!0,attribute:"aria-label"})],ai.prototype,"ariaLabel",void 0),hi([pt({reflect:!0,attribute:"aria-live"})],ai.prototype,"ariaLive",void 0),hi([pt({reflect:!0})],ai.prototype,"role",void 0),ai=hi([$t("vscode-progress-ring")],ai);const ci=[_t,Xt,n`
|
|
1658
1660
|
:host(:invalid) .icon,
|
|
1659
1661
|
:host([invalid]) .icon {
|
|
1660
|
-
background-color: var(--vscode-inputValidation-errorBackground);
|
|
1662
|
+
background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
1661
1663
|
border-color: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
1662
1664
|
}
|
|
1663
1665
|
|
|
@@ -1678,10 +1680,10 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1678
1680
|
}
|
|
1679
1681
|
|
|
1680
1682
|
:host(:focus):host(:not([disabled])) .icon {
|
|
1681
|
-
outline: 1px solid var(--vscode-focusBorder);
|
|
1683
|
+
outline: 1px solid var(--vscode-focusBorder, #0078d4);
|
|
1682
1684
|
outline-offset: -1px;
|
|
1683
1685
|
}
|
|
1684
|
-
`];var
|
|
1686
|
+
`];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(Yt(Kt)){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._dispatchCustomEvent(),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._dispatchCustomEvent(),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)}_dispatchCustomEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{checked:this.checked,label:this.label,value:this.value},bubbles:!0,composed:!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=Mt({icon:!0,checked:this.checked}),e=Mt({"label-inner":!0,"is-slot-empty":""===this._slottedText});return U`
|
|
1685
1687
|
<div class="wrapper">
|
|
1686
1688
|
<input
|
|
1687
1689
|
?autofocus=${this.autofocus}
|
|
@@ -1700,170 +1702,100 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1700
1702
|
</span>
|
|
1701
1703
|
</label>
|
|
1702
1704
|
</div>
|
|
1703
|
-
`}};
|
|
1705
|
+
`}};ui.styles=ci,ui.formAssociated=!0,ui.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},di([pt({type:Boolean,reflect:!0})],ui.prototype,"autofocus",void 0),di([pt({type:Boolean,reflect:!0})],ui.prototype,"checked",void 0),di([pt({type:Boolean,reflect:!0,attribute:"default-checked"})],ui.prototype,"defaultChecked",void 0),di([pt({type:Boolean,reflect:!0})],ui.prototype,"invalid",void 0),di([pt({reflect:!0})],ui.prototype,"name",void 0),di([pt()],ui.prototype,"value",void 0),di([pt({type:Boolean,reflect:!0})],ui.prototype,"disabled",void 0),di([pt({type:Boolean,reflect:!0})],ui.prototype,"required",void 0),di([pt({reflect:!0})],ui.prototype,"role",void 0),di([pt({type:Number,reflect:!0})],ui.prototype,"tabIndex",void 0),di([bt()],ui.prototype,"_slottedText",void 0),di([gt("#input")],ui.prototype,"_inputEl",void 0),di([pt()],ui.prototype,"type",void 0),ui=di([$t("vscode-radio")],ui);const vi=[_t,n`
|
|
1706
|
+
:host {
|
|
1707
|
+
display: block;
|
|
1708
|
+
}
|
|
1709
|
+
|
|
1710
|
+
.wrapper {
|
|
1711
|
+
display: flex;
|
|
1712
|
+
flex-wrap: wrap;
|
|
1713
|
+
}
|
|
1714
|
+
|
|
1715
|
+
:host([variant='vertical']) .wrapper {
|
|
1716
|
+
display: block;
|
|
1717
|
+
}
|
|
1718
|
+
|
|
1719
|
+
::slotted(vscode-radio) {
|
|
1720
|
+
margin-right: 20px;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
::slotted(vscode-radio:last-child) {
|
|
1724
|
+
margin-right: 0;
|
|
1725
|
+
}
|
|
1726
|
+
|
|
1727
|
+
:host([variant='vertical']) ::slotted(vscode-radio) {
|
|
1728
|
+
display: block;
|
|
1729
|
+
margin-bottom: 15px;
|
|
1730
|
+
}
|
|
1731
|
+
|
|
1732
|
+
:host([variant='vertical']) ::slotted(vscode-radio:last-child) {
|
|
1733
|
+
margin-bottom: 0;
|
|
1734
|
+
}
|
|
1735
|
+
`];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 bi=class extends kt{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
|
+
<div class="wrapper">
|
|
1737
|
+
<slot
|
|
1738
|
+
@slotchange=${this._onSlotChange}
|
|
1739
|
+
@vsc-change=${this._onChange}
|
|
1740
|
+
></slot>
|
|
1741
|
+
</div>
|
|
1742
|
+
`}};bi.styles=vi,pi([pt({reflect:!0})],bi.prototype,"variant",void 0),pi([pt({reflect:!0})],bi.prototype,"role",void 0),pi([xt({selector:"vscode-radio"})],bi.prototype,"_radios",void 0),pi([bt()],bi.prototype,"_focusedRadio",void 0),pi([bt()],bi.prototype,"_checkedRadio",void 0),bi=pi([$t("vscode-radio-group")],bi);var fi=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 gi=class extends si{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}_dispatchChangeEvent(){this.dispatchEvent(new CustomEvent("vsc-change",{detail:{selectedIndex:this._opts.selectedIndex,value:this._value}})),super._dispatchChangeEvent()}_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`
|
|
1704
1743
|
<div
|
|
1744
|
+
aria-activedescendant=${i}
|
|
1745
|
+
aria-controls="select-listbox"
|
|
1746
|
+
aria-expanded=${this.open?"true":"false"}
|
|
1747
|
+
aria-haspopup="listbox"
|
|
1748
|
+
aria-label=${Pt(this.label)}
|
|
1705
1749
|
class="select-face face"
|
|
1706
1750
|
@click=${this._onFaceClick}
|
|
1707
|
-
|
|
1751
|
+
role="combobox"
|
|
1752
|
+
tabindex="0"
|
|
1708
1753
|
>
|
|
1709
|
-
<span class="text">${
|
|
1754
|
+
<span class="text">${e}</span> ${Me}
|
|
1710
1755
|
</div>
|
|
1711
|
-
`}_renderComboboxFace(){const t=this.
|
|
1756
|
+
`}_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`
|
|
1712
1757
|
<div class="combobox-face face">
|
|
1713
1758
|
<input
|
|
1759
|
+
aria-activedescendant=${e}
|
|
1760
|
+
aria-autocomplete="list"
|
|
1761
|
+
aria-controls="select-listbox"
|
|
1762
|
+
aria-expanded=${i}
|
|
1763
|
+
aria-haspopup="listbox"
|
|
1764
|
+
aria-label=${Pt(this.label)}
|
|
1714
1765
|
class="combobox-input"
|
|
1766
|
+
role="combobox"
|
|
1715
1767
|
spellcheck="false"
|
|
1716
1768
|
type="text"
|
|
1717
1769
|
autocomplete="off"
|
|
1718
1770
|
.value=${t}
|
|
1719
1771
|
@focus=${this._onComboboxInputFocus}
|
|
1772
|
+
@blur=${this._onComboboxInputBlur}
|
|
1720
1773
|
@input=${this._onComboboxInputInput}
|
|
1721
1774
|
@click=${this._onComboboxInputClick}
|
|
1775
|
+
@keydown=${this._onComboboxInputSpaceKeyDown}
|
|
1722
1776
|
>
|
|
1723
1777
|
<button
|
|
1778
|
+
aria-label="Open the list of options"
|
|
1724
1779
|
class="combobox-button"
|
|
1725
1780
|
type="button"
|
|
1726
1781
|
@click=${this._onComboboxButtonClick}
|
|
1727
1782
|
@keydown=${this._onComboboxButtonKeyDown}
|
|
1783
|
+
tabindex="-1"
|
|
1728
1784
|
>
|
|
1729
|
-
${
|
|
1785
|
+
${Me}
|
|
1730
1786
|
</button>
|
|
1731
1787
|
</div>
|
|
1732
|
-
`}
|
|
1733
|
-
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
>
|
|
1738
|
-
${t.ranges?.length?Je(t.label,t.ranges??[]):t.label}
|
|
1739
|
-
</li>
|
|
1740
|
-
`}));return U`
|
|
1741
|
-
<ul
|
|
1742
|
-
class="options"
|
|
1743
|
-
@mouseover=${this._onOptionMouseOver}
|
|
1744
|
-
@click=${this._onOptionClick}
|
|
1745
|
-
>
|
|
1746
|
-
${t}
|
|
1747
|
-
</ul>
|
|
1748
|
-
`}};cs.styles=Qe,cs.shadowRootOptions={...lt.shadowRootOptions,delegatesFocus:!0},cs.formAssociated=!0,as([ut({attribute:"default-value"})],cs.prototype,"defaultValue",void 0),as([ut({type:String,attribute:!0,reflect:!0})],cs.prototype,"role",void 0),as([ut({reflect:!0})],cs.prototype,"name",void 0),as([ut({type:Number,attribute:"selected-index"})],cs.prototype,"selectedIndex",null),as([ut({type:String})],cs.prototype,"value",null),as([ut({type:Boolean,reflect:!0})],cs.prototype,"required",void 0),as([bt(".face")],cs.prototype,"_face",void 0),cs=as([ct("vscode-single-select")],cs);const hs=[xt,n`
|
|
1749
|
-
:host {
|
|
1750
|
-
display: block;
|
|
1751
|
-
position: relative;
|
|
1752
|
-
}
|
|
1753
|
-
|
|
1754
|
-
.scrollable-container {
|
|
1755
|
-
height: 100%;
|
|
1756
|
-
overflow: auto;
|
|
1757
|
-
}
|
|
1758
|
-
|
|
1759
|
-
.scrollable-container::-webkit-scrollbar {
|
|
1760
|
-
cursor: default;
|
|
1761
|
-
width: 0;
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
.scrollable-container {
|
|
1765
|
-
scrollbar-width: none;
|
|
1766
|
-
}
|
|
1767
|
-
|
|
1768
|
-
.shadow {
|
|
1769
|
-
box-shadow: var(--vscode-scrollbar-shadow) 0 6px 6px -6px inset;
|
|
1770
|
-
display: none;
|
|
1771
|
-
height: 3px;
|
|
1772
|
-
left: 0;
|
|
1773
|
-
pointer-events: none;
|
|
1774
|
-
position: absolute;
|
|
1775
|
-
top: 0;
|
|
1776
|
-
z-index: 1;
|
|
1777
|
-
width: 100%;
|
|
1778
|
-
}
|
|
1779
|
-
|
|
1780
|
-
.shadow.visible {
|
|
1781
|
-
display: block;
|
|
1782
|
-
}
|
|
1783
|
-
|
|
1784
|
-
.scrollbar-track {
|
|
1785
|
-
height: 100%;
|
|
1786
|
-
position: absolute;
|
|
1787
|
-
right: 0;
|
|
1788
|
-
top: 0;
|
|
1789
|
-
width: 10px;
|
|
1790
|
-
z-index: 100;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
.scrollbar-track.hidden {
|
|
1794
|
-
display: none;
|
|
1795
|
-
}
|
|
1796
|
-
|
|
1797
|
-
.scrollbar-thumb {
|
|
1798
|
-
background-color: transparent;
|
|
1799
|
-
min-height: var(--min-thumb-height, 20px);
|
|
1800
|
-
opacity: 0;
|
|
1801
|
-
position: absolute;
|
|
1802
|
-
right: 0;
|
|
1803
|
-
width: 10px;
|
|
1804
|
-
}
|
|
1805
|
-
|
|
1806
|
-
.scrollbar-thumb.visible {
|
|
1807
|
-
background-color: var(--vscode-scrollbarSlider-background);
|
|
1808
|
-
opacity: 1;
|
|
1809
|
-
transition: opacity 100ms;
|
|
1810
|
-
}
|
|
1811
|
-
|
|
1812
|
-
.scrollbar-thumb.fade {
|
|
1813
|
-
background-color: var(--vscode-scrollbarSlider-background);
|
|
1814
|
-
opacity: 0;
|
|
1815
|
-
transition: opacity 800ms;
|
|
1816
|
-
}
|
|
1817
|
-
|
|
1818
|
-
.scrollbar-thumb.visible:hover {
|
|
1819
|
-
background-color: var(--vscode-scrollbarSlider-hoverBackground);
|
|
1820
|
-
}
|
|
1821
|
-
|
|
1822
|
-
.scrollbar-thumb.visible.active,
|
|
1823
|
-
.scrollbar-thumb.visible.active:hover {
|
|
1824
|
-
background-color: var(--vscode-scrollbarSlider-activeBackground);
|
|
1825
|
-
}
|
|
1826
|
-
|
|
1827
|
-
.prevent-interaction {
|
|
1828
|
-
bottom: 0;
|
|
1829
|
-
left: 0;
|
|
1830
|
-
right: 0;
|
|
1831
|
-
top: 0;
|
|
1832
|
-
position: absolute;
|
|
1833
|
-
z-index: 99;
|
|
1834
|
-
}
|
|
1835
|
-
|
|
1836
|
-
.content {
|
|
1837
|
-
overflow: hidden;
|
|
1838
|
-
}
|
|
1839
|
-
`];var ds=function(t,e,s,i){for(var o,r=arguments.length,n=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i,l=t.length-1;l>=0;l--)(o=t[l])&&(n=(r<3?o(n):r>3?o(e,s,n):o(e,s))||n);return r>3&&n&&Object.defineProperty(e,s,n),n};let us=class extends mt{constructor(){super(...arguments),this.shadow=!0,this.scrolled=!1,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._onSlotChange=()=>{this._zIndexFix()},this._onScrollThumbMouseMoveBound=this._onScrollThumbMouseMove.bind(this),this._onScrollThumbMouseUpBound=this._onScrollThumbMouseUp.bind(this),this._onComponentMouseOverBound=this._onComponentMouseOver.bind(this),this._onComponentMouseOutBound=this._onComponentMouseOut.bind(this)}set scrollPos(t){this._scrollableContainer.scrollTop=t}get scrollPos(){return this._scrollableContainer?this._scrollableContainer.scrollTop:0}get scrollMax(){return this._scrollableContainer?this._scrollableContainer.scrollHeight:0}connectedCallback(){super.connectedCallback(),this._hostResizeObserver=new ResizeObserver(this._resizeObserverCallback),this._contentResizeObserver=new ResizeObserver(this._resizeObserverCallback),this.requestUpdate(),this.updateComplete.then((()=>{this._scrollableContainer.addEventListener("scroll",this._onScrollableContainerScroll.bind(this)),this._hostResizeObserver.observe(this),this._contentResizeObserver.observe(this._contentElement)})),this.addEventListener("mouseover",this._onComponentMouseOverBound),this.addEventListener("mouseout",this._onComponentMouseOutBound)}disconnectedCallback(){super.disconnectedCallback(),this._hostResizeObserver.unobserve(this),this._hostResizeObserver.disconnect(),this._contentResizeObserver.unobserve(this._contentElement),this._contentResizeObserver.disconnect(),this.removeEventListener("mouseover",this._onComponentMouseOverBound),this.removeEventListener("mouseout",this._onComponentMouseOutBound)}_updateScrollbar(){const t=this.getBoundingClientRect(),e=this._contentElement.getBoundingClientRect();t.height>=e.height?this._scrollbarVisible=!1:(this._scrollbarVisible=!0,this._thumbHeight=t.height*(t.height/e.height)),this.requestUpdate()}_zIndexFix(){let t=0;this._assignedElements.forEach((e=>{if("style"in e){const s=window.getComputedStyle(e).zIndex;/([0-9-])+/g.test(s)&&(t=Number(s)>t?Number(s):t)}})),this._scrollbarTrackZ=t+1,this.requestUpdate()}_onScrollThumbMouseDown(t){const e=this.getBoundingClientRect(),s=this._scrollThumbElement.getBoundingClientRect();this._mouseStartY=t.screenY,this._scrollThumbStartY=s.top-e.top,this._isDragging=!0,this._thumbActive=!0,document.addEventListener("mousemove",this._onScrollThumbMouseMoveBound),document.addEventListener("mouseup",this._onScrollThumbMouseUpBound)}_onScrollThumbMouseMove(t){const e=this._scrollThumbStartY+(t.screenY-this._mouseStartY);let s=0;const i=this.getBoundingClientRect().height,o=this._scrollThumbElement.getBoundingClientRect().height,r=this._contentElement.getBoundingClientRect().height;s=e<0?0:e>i-o?i-o:e,this._thumbY=s,this._scrollableContainer.scrollTop=s/(i-o)*(r-i)}_onScrollThumbMouseUp(t){this._isDragging=!1,this._thumbActive=!1;const e=this.getBoundingClientRect(),{x:s,y:i,width:o,height:r}=e,{pageX:n,pageY:l}=t;(n>s+o||n<s||l>i+r||l<i)&&(this._thumbFade=!0,this._thumbVisible=!1),document.removeEventListener("mousemove",this._onScrollThumbMouseMoveBound),document.removeEventListener("mouseup",this._onScrollThumbMouseUpBound)}_onScrollableContainerScroll(){const t=this._scrollableContainer.scrollTop;this.scrolled=t>0;const e=this.getBoundingClientRect().height,s=this._scrollThumbElement.getBoundingClientRect().height,i=t/(this._contentElement.getBoundingClientRect().height-e);this._thumbY=i*(e-s)}_onComponentMouseOver(){this._thumbVisible=!0,this._thumbFade=!1}_onComponentMouseOut(){this._thumbActive||(this._thumbVisible=!1,this._thumbFade=!0)}render(){return U`
|
|
1840
|
-
<div
|
|
1841
|
-
class="scrollable-container"
|
|
1842
|
-
.style=${Et({userSelect:this._isDragging?"none":"auto"})}
|
|
1843
|
-
>
|
|
1844
|
-
<div
|
|
1845
|
-
class=${At({shadow:!0,visible:this.scrolled})}
|
|
1846
|
-
.style=${Et({zIndex:String(this._scrollbarTrackZ)})}
|
|
1847
|
-
></div>
|
|
1848
|
-
${this._isDragging?U`<div class="prevent-interaction"></div>`:H}
|
|
1849
|
-
<div
|
|
1850
|
-
class=${At({"scrollbar-track":!0,hidden:!this._scrollbarVisible})}
|
|
1851
|
-
>
|
|
1852
|
-
<div
|
|
1853
|
-
class=${At({"scrollbar-thumb":!0,visible:this._thumbVisible,fade:this._thumbFade,active:this._thumbActive})}
|
|
1854
|
-
.style=${Et({height:`${this._thumbHeight}px`,top:`${this._thumbY}px`})}
|
|
1855
|
-
@mousedown=${this._onScrollThumbMouseDown}
|
|
1856
|
-
></div>
|
|
1857
|
-
</div>
|
|
1858
|
-
<div class="content">
|
|
1859
|
-
<slot @slotchange=${this._onSlotChange}></slot>
|
|
1860
|
-
</div>
|
|
1788
|
+
`}render(){return U`
|
|
1789
|
+
<div class="single-select">
|
|
1790
|
+
<slot class="main-slot" @slotchange=${this._onSlotChange}></slot>
|
|
1791
|
+
${this.combobox?this._renderComboboxFace():this._renderSelectFace()}
|
|
1792
|
+
${this._renderDropdown()}
|
|
1861
1793
|
</div>
|
|
1862
|
-
`}};
|
|
1794
|
+
`}};gi.styles=oi,gi.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},gi.formAssociated=!0,fi([pt({attribute:"default-value"})],gi.prototype,"defaultValue",void 0),fi([pt({reflect:!0})],gi.prototype,"name",void 0),fi([pt({type:Number,attribute:"selected-index"})],gi.prototype,"selectedIndex",null),fi([pt({type:String})],gi.prototype,"value",null),fi([pt({type:Boolean,reflect:!0})],gi.prototype,"required",void 0),fi([gt(".face")],gi.prototype,"_face",void 0),gi=fi([$t("vscode-single-select")],gi);const mi=[_t,n`
|
|
1863
1795
|
:host {
|
|
1864
|
-
--separator-border: var(--vscode-editorWidget-border,
|
|
1796
|
+
--separator-border: var(--vscode-editorWidget-border, #454545);
|
|
1865
1797
|
|
|
1866
|
-
border: 1px solid var(--vscode-editorWidget-border);
|
|
1798
|
+
border: 1px solid var(--vscode-editorWidget-border, #454545);
|
|
1867
1799
|
display: block;
|
|
1868
1800
|
overflow: hidden;
|
|
1869
1801
|
position: relative;
|
|
@@ -1949,7 +1881,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1949
1881
|
|
|
1950
1882
|
.handle.hover {
|
|
1951
1883
|
transition: background-color 0.1s ease-out 0.3s;
|
|
1952
|
-
background-color: var(--vscode-sash-hoverBorder);
|
|
1884
|
+
background-color: var(--vscode-sash-hoverBorder, #0078d4);
|
|
1953
1885
|
}
|
|
1954
1886
|
|
|
1955
1887
|
.handle.hide {
|
|
@@ -1966,25 +1898,25 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
1966
1898
|
cursor: ns-resize;
|
|
1967
1899
|
width: 100%;
|
|
1968
1900
|
}
|
|
1969
|
-
`];var
|
|
1970
|
-
<div class=${
|
|
1971
|
-
<div class="start" .style=${
|
|
1901
|
+
`];var xi,yi=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 wi=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}},ki=(t,e)=>0===e?0:Math.min(100,t/e*100),$i=(t,e)=>e*(t/100);let _i=xi=class extends kt{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=ki(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}=wi(this.initialHandlePosition??"50%");this._handlePosition="percent"===o?$i(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?wi(this.handlePosition):wi(this.initialHandlePosition);this._setPosition(e,i),this._initFixedPane()}_handlePositionPropChanged(){if(this.handlePosition&&this._wrapperEl){this._boundRect=this._wrapperEl.getBoundingClientRect();const{value:t,unit:e}=wi(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?$i(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 xi&&t.resetHandlePosition()}))}render(){const{width:t,height:e}=this._boundRect,i="vertical"===this.split?t:e,s="none"!==this.fixedPane?`${this._handlePosition}px`:`${ki(this._handlePosition,i)}%`;let o="";o="start"===this.fixedPane?`0 0 ${this._fixedPaneSize}px`:`1 1 ${ki(this._handlePosition,i)}%`;let r="";r="end"===this.fixedPane?`0 0 ${this._fixedPaneSize}px`:`1 1 ${ki(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=Mt({"handle-overlay":!0,active:this._isDragActive,"split-vertical":"vertical"===this.split,"split-horizontal":"horizontal"===this.split}),a=Mt({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`
|
|
1902
|
+
<div class=${Mt(c)}>
|
|
1903
|
+
<div class="start" .style=${Dt({flex:o})}>
|
|
1972
1904
|
<slot name="start" @slotchange=${this._handleSlotChange}></slot>
|
|
1973
1905
|
</div>
|
|
1974
|
-
<div class="end" .style=${
|
|
1906
|
+
<div class="end" .style=${Dt({flex:r})}>
|
|
1975
1907
|
<slot name="end" @slotchange=${this._handleSlotChange}></slot>
|
|
1976
1908
|
</div>
|
|
1977
|
-
<div class=${
|
|
1909
|
+
<div class=${h}></div>
|
|
1978
1910
|
<div
|
|
1979
|
-
class=${
|
|
1980
|
-
.style=${
|
|
1911
|
+
class=${a}
|
|
1912
|
+
.style=${Dt(n)}
|
|
1981
1913
|
@mouseover=${this._handleMouseOver}
|
|
1982
1914
|
@mouseout=${this._handleMouseOut}
|
|
1983
1915
|
@mousedown=${this._handleMouseDown}
|
|
1984
1916
|
@dblclick=${this._handleDblClick}
|
|
1985
1917
|
></div>
|
|
1986
1918
|
</div>
|
|
1987
|
-
`}};
|
|
1919
|
+
`}};_i.styles=mi,yi([pt({reflect:!0})],_i.prototype,"split",null),yi([pt({type:Boolean,reflect:!0,attribute:"reset-on-dbl-click"})],_i.prototype,"resetOnDblClick",void 0),yi([pt({type:Number,reflect:!0,attribute:"handle-size"})],_i.prototype,"handleSize",void 0),yi([pt({reflect:!0,attribute:"initial-handle-position"})],_i.prototype,"initialHandlePosition",void 0),yi([pt({attribute:"handle-position"})],_i.prototype,"handlePosition",null),yi([pt({attribute:"fixed-pane"})],_i.prototype,"fixedPane",null),yi([bt()],_i.prototype,"_handlePosition",void 0),yi([bt()],_i.prototype,"_isDragActive",void 0),yi([bt()],_i.prototype,"_hover",void 0),yi([bt()],_i.prototype,"_hide",void 0),yi([gt(".wrapper")],_i.prototype,"_wrapperEl",void 0),yi([gt(".handle")],_i.prototype,"_handleEl",void 0),yi([xt({slot:"start",selector:"vscode-split-layout"})],_i.prototype,"_nestedLayoutsAtStart",void 0),yi([xt({slot:"end",selector:"vscode-split-layout"})],_i.prototype,"_nestedLayoutsAtEnd",void 0),_i=xi=yi([$t("vscode-split-layout")],_i);const Si=[_t,n`
|
|
1988
1920
|
:host {
|
|
1989
1921
|
border-bottom: 1px solid transparent;
|
|
1990
1922
|
cursor: pointer;
|
|
@@ -2076,18 +2008,18 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2076
2008
|
slot[name='content-after']::slotted(vscode-badge) {
|
|
2077
2009
|
margin-left: 8px;
|
|
2078
2010
|
}
|
|
2079
|
-
`];var
|
|
2011
|
+
`];var Ci=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 Bi=class extends kt{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`
|
|
2080
2012
|
<div
|
|
2081
|
-
class=${
|
|
2013
|
+
class=${Mt({wrapper:!0,active:this.active,panel:this.panel})}
|
|
2082
2014
|
>
|
|
2083
2015
|
<div class="before"><slot name="content-before"></slot></div>
|
|
2084
2016
|
<div class="main"><slot></slot></div>
|
|
2085
2017
|
<div class="after"><slot name="content-after"></slot></div>
|
|
2086
2018
|
<span
|
|
2087
|
-
class=${
|
|
2019
|
+
class=${Mt({"active-indicator":!0,active:this.active,panel:this.panel})}
|
|
2088
2020
|
></span>
|
|
2089
2021
|
</div>
|
|
2090
|
-
`}};
|
|
2022
|
+
`}};Bi.styles=Si,Ci([pt({type:Boolean,reflect:!0})],Bi.prototype,"active",void 0),Ci([pt({reflect:!0,attribute:"aria-controls"})],Bi.prototype,"ariaControls",void 0),Ci([pt({type:Boolean,reflect:!0})],Bi.prototype,"panel",void 0),Ci([pt({reflect:!0})],Bi.prototype,"role",void 0),Ci([pt({type:Number,reflect:!0,attribute:"tab-id"})],Bi.prototype,"tabId",void 0),Bi=Ci([$t("vscode-tab-header")],Bi);const Oi=[_t,n`
|
|
2091
2023
|
:host {
|
|
2092
2024
|
display: block;
|
|
2093
2025
|
overflow: hidden;
|
|
@@ -2103,7 +2035,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2103
2035
|
:host([panel]) {
|
|
2104
2036
|
background-color: var(--vscode-panel-background);
|
|
2105
2037
|
}
|
|
2106
|
-
`];var
|
|
2038
|
+
`];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 kt{constructor(){super(...arguments),this.hidden=!1,this.ariaLabelledby="",this.panel=!1,this.role="tabpanel",this.tabIndex=0}render(){return U` <slot></slot> `}};Ai.styles=Oi,zi([pt({type:Boolean,reflect:!0})],Ai.prototype,"hidden",void 0),zi([pt({reflect:!0,attribute:"aria-labelledby"})],Ai.prototype,"ariaLabelledby",void 0),zi([pt({type:Boolean,reflect:!0})],Ai.prototype,"panel",void 0),zi([pt({reflect:!0})],Ai.prototype,"role",void 0),zi([pt({type:Number,reflect:!0})],Ai.prototype,"tabIndex",void 0),Ai=zi([$t("vscode-tab-panel")],Ai);const Ei=[_t,n`
|
|
2107
2039
|
:host {
|
|
2108
2040
|
display: table;
|
|
2109
2041
|
table-layout: fixed;
|
|
@@ -2117,7 +2049,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2117
2049
|
::slotted(vscode-table-row:nth-child(odd)) {
|
|
2118
2050
|
background-color: var(--vsc-row-odd-background);
|
|
2119
2051
|
}
|
|
2120
|
-
`];var
|
|
2052
|
+
`];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 kt{constructor(){super(...arguments),this.role="rowgroup"}render(){return U` <slot></slot> `}};ji.styles=Ei,Ii([pt({reflect:!0})],ji.prototype,"role",void 0),ji=Ii([$t("vscode-table-body")],ji);const Mi=[_t,n`
|
|
2121
2053
|
:host {
|
|
2122
2054
|
border-bottom-color: var(--vscode-editorGroup-border);
|
|
2123
2055
|
border-bottom-style: solid;
|
|
@@ -2160,21 +2092,21 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2160
2092
|
.column-label {
|
|
2161
2093
|
font-weight: bold;
|
|
2162
2094
|
}
|
|
2163
|
-
`];var
|
|
2095
|
+
`];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 kt{constructor(){super(...arguments),this.role="cell",this.columnLabel="",this.compact=!1}render(){const t=this.columnLabel?U`<div class="column-label" role="presentation">
|
|
2164
2096
|
${this.columnLabel}
|
|
2165
|
-
</div>`:
|
|
2097
|
+
</div>`:q;return U`
|
|
2166
2098
|
<div class="wrapper">
|
|
2167
2099
|
${t}
|
|
2168
2100
|
<slot></slot>
|
|
2169
2101
|
</div>
|
|
2170
|
-
`}};
|
|
2102
|
+
`}};Di.styles=Mi,Pi([pt({reflect:!0})],Di.prototype,"role",void 0),Pi([pt({attribute:"column-label"})],Di.prototype,"columnLabel",void 0),Pi([pt({type:Boolean,reflect:!0})],Di.prototype,"compact",void 0),Di=Pi([$t("vscode-table-cell")],Di);const Fi=[_t,n`
|
|
2171
2103
|
:host {
|
|
2172
2104
|
background-color: var(--vscode-keybindingTable-headerBackground);
|
|
2173
2105
|
display: table;
|
|
2174
2106
|
table-layout: fixed;
|
|
2175
2107
|
width: 100%;
|
|
2176
2108
|
}
|
|
2177
|
-
`];var
|
|
2109
|
+
`];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 kt{constructor(){super(...arguments),this.role="rowgroup"}render(){return U` <slot></slot> `}};Ni.styles=Fi,Vi([pt({reflect:!0})],Ni.prototype,"role",void 0),Ni=Vi([$t("vscode-table-header")],Ni);const Ri=[_t,n`
|
|
2178
2110
|
:host {
|
|
2179
2111
|
box-sizing: border-box;
|
|
2180
2112
|
color: var(--vscode-foreground);
|
|
@@ -2199,11 +2131,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2199
2131
|
white-space: inherit;
|
|
2200
2132
|
width: 100%;
|
|
2201
2133
|
}
|
|
2202
|
-
`];var
|
|
2134
|
+
`];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 kt{constructor(){super(...arguments),this.role="columnheader"}render(){return U`
|
|
2203
2135
|
<div class="wrapper">
|
|
2204
2136
|
<slot></slot>
|
|
2205
2137
|
</div>
|
|
2206
|
-
`}};
|
|
2138
|
+
`}};Li.styles=Ri,Ti([pt({reflect:!0})],Li.prototype,"role",void 0),Li=Ti([$t("vscode-table-header-cell")],Li);const Ui=[_t,n`
|
|
2207
2139
|
:host {
|
|
2208
2140
|
border-top-color: var(--vscode-editorGroup-border);
|
|
2209
2141
|
border-top-style: solid;
|
|
@@ -2211,7 +2143,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2211
2143
|
display: var(--vsc-row-display);
|
|
2212
2144
|
width: 100%;
|
|
2213
2145
|
}
|
|
2214
|
-
`];var
|
|
2146
|
+
`];var 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};let Hi=class extends kt{constructor(){super(...arguments),this.role="row"}render(){return U` <slot></slot> `}};Hi.styles=Ui,Gi([pt({reflect:!0})],Hi.prototype,"role",void 0),Hi=Gi([$t("vscode-table-row")],Hi);const qi=(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},Wi=[_t,n`
|
|
2215
2147
|
:host {
|
|
2216
2148
|
display: block;
|
|
2217
2149
|
--vsc-row-even-background: transparent;
|
|
@@ -2334,11 +2266,11 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2334
2266
|
position: absolute;
|
|
2335
2267
|
width: 5px;
|
|
2336
2268
|
}
|
|
2337
|
-
`];var
|
|
2269
|
+
`];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 kt{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=qi(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=qi(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=Mt({sash:!0,hover:this._sashHovers[e],resizable:this.resizable}),s=`${t}%`;return this.resizable?U`
|
|
2338
2270
|
<div
|
|
2339
|
-
class=${
|
|
2271
|
+
class=${i}
|
|
2340
2272
|
data-index=${e}
|
|
2341
|
-
.style=${
|
|
2273
|
+
.style=${Dt({left:s})}
|
|
2342
2274
|
@mousedown=${this._onSashMouseDown}
|
|
2343
2275
|
@mouseover=${this._onSashMouseOver}
|
|
2344
2276
|
@mouseout=${this._onSashMouseOut}
|
|
@@ -2347,12 +2279,12 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2347
2279
|
<div class="sash-clickable"></div>
|
|
2348
2280
|
</div>
|
|
2349
2281
|
`:U`<div
|
|
2350
|
-
class=${
|
|
2282
|
+
class=${i}
|
|
2351
2283
|
data-index=${e}
|
|
2352
|
-
.style=${
|
|
2284
|
+
.style=${Dt({left:s})}
|
|
2353
2285
|
>
|
|
2354
2286
|
<div class="sash-visible"></div>
|
|
2355
|
-
</div>`})),e=
|
|
2287
|
+
</div>`})),e=Mt({wrapper:!0,"select-disabled":this._isDragging,"resize-cursor":this._isDragging,"compact-view":this.compact});return U`
|
|
2356
2288
|
<div class=${e}>
|
|
2357
2289
|
<div class="header">
|
|
2358
2290
|
<slot name="caption"></slot>
|
|
@@ -2368,7 +2300,7 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2368
2300
|
${t}
|
|
2369
2301
|
<slot @slotchange=${this._onDefaultSlotChange}></slot>
|
|
2370
2302
|
</div>
|
|
2371
|
-
`}};
|
|
2303
|
+
`}};Ji.styles=Wi,Ki([pt({reflect:!0})],Ji.prototype,"role",void 0),Ki([pt({type:Boolean,reflect:!0})],Ji.prototype,"resizable",void 0),Ki([pt({type:Boolean,reflect:!0})],Ji.prototype,"responsive",void 0),Ki([pt({type:Boolean,reflect:!0})],Ji.prototype,"bordered",void 0),Ki([pt({type:Boolean,reflect:!0,attribute:"bordered-columns"})],Ji.prototype,"borderedColumns",void 0),Ki([pt({type:Boolean,reflect:!0,attribute:"bordered-rows"})],Ji.prototype,"borderedRows",void 0),Ki([pt({type:Number})],Ji.prototype,"breakpoint",void 0),Ki([pt({type:Array})],Ji.prototype,"columns",null),Ki([pt({attribute:"min-column-width"})],Ji.prototype,"minColumnWidth",void 0),Ki([pt({type:Boolean,reflect:!0,attribute:"delayed-resizing"})],Ji.prototype,"delayedResizing",void 0),Ki([pt({type:Boolean,reflect:!0})],Ji.prototype,"compact",void 0),Ki([pt({type:Boolean,reflect:!0})],Ji.prototype,"zebra",void 0),Ki([pt({type:Boolean,reflect:!0,attribute:"zebra-odd"})],Ji.prototype,"zebraOdd",void 0),Ki([gt('slot[name="body"]')],Ji.prototype,"_bodySlot",void 0),Ki([gt(".header")],Ji.prototype,"_headerElement",void 0),Ki([gt(".scrollable")],Ji.prototype,"_scrollableElement",void 0),Ki([function(t){return(e,i)=>ft(0,0,{get(){return(this.renderRoot??(mt??=document.createDocumentFragment())).querySelectorAll(t)}})}(".sash-visible")],Ji.prototype,"_sashVisibleElements",void 0),Ki([xt({flatten:!0,selector:"vscode-table-header, vscode-table-body"})],Ji.prototype,"_assignedElements",void 0),Ki([xt({slot:"header",flatten:!0,selector:"vscode-table-header"})],Ji.prototype,"_assignedHeaderElements",void 0),Ki([xt({slot:"body",flatten:!0,selector:"vscode-table-body"})],Ji.prototype,"_assignedBodyElements",void 0),Ki([bt()],Ji.prototype,"_sashPositions",void 0),Ki([bt()],Ji.prototype,"_isDragging",void 0),Ji=Ki([$t("vscode-table")],Ji);const Yi=[_t,n`
|
|
2372
2304
|
:host {
|
|
2373
2305
|
display: block;
|
|
2374
2306
|
}
|
|
@@ -2400,9 +2332,9 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2400
2332
|
display: block;
|
|
2401
2333
|
margin-left: auto;
|
|
2402
2334
|
}
|
|
2403
|
-
`];var
|
|
2335
|
+
`];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 kt{constructor(){super(),this.panel=!1,this.role="tablist",this.selectedIndex=0,this._tabHeaders=[],this._tabPanels=[],this._componentId="",this._tabFocus=0,this._componentId=Ae()}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-select",{detail:{selectedIndex:this.selectedIndex},composed:!0})),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 Bi));t.length>0&&t.forEach((t=>t.setAttribute("slot","header")))}_onMainSlotChange(){this._moveHeadersToHeaderSlot(),this._tabPanels=this._mainSlotElements.filter((t=>t instanceof Ai)),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 Bi)),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 Bi));e&&(this.selectedIndex=e.tabId,this._setActiveTab(),this._dispatchSelectEvent())}render(){return U`
|
|
2404
2336
|
<div
|
|
2405
|
-
class=${
|
|
2337
|
+
class=${Mt({header:!0,panel:this.panel})}
|
|
2406
2338
|
@click=${this._onHeaderClick}
|
|
2407
2339
|
@keydown=${this._onHeaderKeyDown}
|
|
2408
2340
|
>
|
|
@@ -2410,311 +2342,611 @@ const t=globalThis,e=t.ShadowRoot&&(void 0===t.ShadyCSS||t.ShadyCSS.nativeShadow
|
|
|
2410
2342
|
<slot name="addons"></slot>
|
|
2411
2343
|
</div>
|
|
2412
2344
|
<slot @slotchange=${this._onMainSlotChange}></slot>
|
|
2413
|
-
`}};
|
|
2345
|
+
`}};Zi.styles=Yi,Xi([pt({type:Boolean,reflect:!0})],Zi.prototype,"panel",void 0),Xi([pt({reflect:!0})],Zi.prototype,"role",void 0),Xi([pt({type:Number,reflect:!0,attribute:"selected-index"})],Zi.prototype,"selectedIndex",void 0),Xi([xt({slot:"header"})],Zi.prototype,"_headerSlotElements",void 0),Xi([xt()],Zi.prototype,"_mainSlotElements",void 0),Zi=Xi([$t("vscode-tabs")],Zi);const Qi=[_t,n`
|
|
2414
2346
|
:host {
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
--selected-outline-width: 0;
|
|
2347
|
+
display: inline-block;
|
|
2348
|
+
height: 40px;
|
|
2349
|
+
position: relative;
|
|
2350
|
+
width: 320px;
|
|
2351
|
+
}
|
|
2421
2352
|
|
|
2422
|
-
|
|
2423
|
-
|
|
2424
|
-
user-select: none;
|
|
2353
|
+
:host([cols]) {
|
|
2354
|
+
width: auto;
|
|
2425
2355
|
}
|
|
2426
2356
|
|
|
2427
|
-
|
|
2428
|
-
height:
|
|
2357
|
+
:host([rows]) {
|
|
2358
|
+
height: auto;
|
|
2429
2359
|
}
|
|
2430
2360
|
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2361
|
+
.shadow {
|
|
2362
|
+
box-shadow: var(--vscode-scrollbar-shadow, #000000) 0 6px 6px -6px inset;
|
|
2363
|
+
display: none;
|
|
2364
|
+
inset: 0 0 auto 0;
|
|
2365
|
+
height: 6px;
|
|
2366
|
+
pointer-events: none;
|
|
2367
|
+
position: absolute;
|
|
2368
|
+
width: 100%;
|
|
2439
2369
|
}
|
|
2440
2370
|
|
|
2441
|
-
|
|
2442
|
-
|
|
2371
|
+
.shadow.visible {
|
|
2372
|
+
display: block;
|
|
2443
2373
|
}
|
|
2444
2374
|
|
|
2445
|
-
|
|
2446
|
-
|
|
2375
|
+
textarea {
|
|
2376
|
+
background-color: var(--vscode-settings-textInputBackground, #313131);
|
|
2377
|
+
border-color: var(--vscode-settings-textInputBorder, transparent);
|
|
2378
|
+
border-radius: 2px;
|
|
2379
|
+
border-style: solid;
|
|
2380
|
+
border-width: 1px;
|
|
2381
|
+
box-sizing: border-box;
|
|
2382
|
+
color: var(--vscode-settings-textInputForeground, #cccccc);
|
|
2447
2383
|
display: block;
|
|
2384
|
+
font-family: var(--vscode-font-family, sans-serif);
|
|
2385
|
+
font-size: var(--vscode-font-size, 13px);
|
|
2386
|
+
font-weight: var(--vscode-font-weight, normal);
|
|
2448
2387
|
height: 100%;
|
|
2449
|
-
|
|
2450
|
-
bottom: 0;
|
|
2451
|
-
left: var(--indent-guide-pos);
|
|
2452
|
-
top: 0;
|
|
2453
|
-
pointer-events: none;
|
|
2454
|
-
width: 1px;
|
|
2455
|
-
z-index: 1;
|
|
2388
|
+
width: 100%;
|
|
2456
2389
|
}
|
|
2457
2390
|
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
display: flex;
|
|
2461
|
-
font-family: var(--vscode-font-family);
|
|
2462
|
-
font-size: var(--vscode-font-size);
|
|
2463
|
-
font-weight: var(--vscode-font-weight);
|
|
2464
|
-
outline-offset: -1px;
|
|
2465
|
-
padding-right: 12px;
|
|
2391
|
+
:host([cols]) textarea {
|
|
2392
|
+
width: auto;
|
|
2466
2393
|
}
|
|
2467
2394
|
|
|
2468
|
-
|
|
2469
|
-
|
|
2395
|
+
:host([rows]) textarea {
|
|
2396
|
+
height: auto;
|
|
2397
|
+
}
|
|
2398
|
+
|
|
2399
|
+
:host([invalid]) textarea,
|
|
2400
|
+
:host(:invalid) textarea {
|
|
2401
|
+
background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
2402
|
+
border-color: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
2403
|
+
}
|
|
2404
|
+
|
|
2405
|
+
textarea.monospace {
|
|
2406
|
+
background-color: var(--vscode-editor-background, #1f1f1f);
|
|
2407
|
+
color: var(--vscode-editor-foreground, #cccccc);
|
|
2408
|
+
font-family: var(--vscode-editor-font-family, monospace);
|
|
2409
|
+
font-size: var(--vscode-editor-font-size, 14px);
|
|
2410
|
+
font-weight: var(--vscode-editor-font-weight, normal);
|
|
2470
2411
|
}
|
|
2471
2412
|
|
|
2472
|
-
.
|
|
2413
|
+
.textarea.monospace::placeholder {
|
|
2414
|
+
color: var(
|
|
2415
|
+
--vscode-editor-inlineValuesForeground,
|
|
2416
|
+
rgba(255, 255, 255, 0.5)
|
|
2417
|
+
);
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
textarea.cursor-pointer {
|
|
2473
2421
|
cursor: pointer;
|
|
2474
2422
|
}
|
|
2475
2423
|
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
height: 22px;
|
|
2480
|
-
justify-content: center;
|
|
2481
|
-
padding-left: 8px;
|
|
2482
|
-
padding-right: 6px;
|
|
2483
|
-
width: 16px;
|
|
2424
|
+
textarea:focus {
|
|
2425
|
+
border-color: var(--vscode-focusBorder, #0078d4);
|
|
2426
|
+
outline: none;
|
|
2484
2427
|
}
|
|
2485
2428
|
|
|
2486
|
-
|
|
2487
|
-
color:
|
|
2488
|
-
|
|
2429
|
+
textarea::placeholder {
|
|
2430
|
+
color: var(--vscode-input-placeholderForeground, #989898);
|
|
2431
|
+
opacity: 1;
|
|
2489
2432
|
}
|
|
2490
2433
|
|
|
2491
|
-
|
|
2492
|
-
|
|
2493
|
-
|
|
2494
|
-
|
|
2434
|
+
textarea::-webkit-scrollbar-track {
|
|
2435
|
+
background-color: transparent;
|
|
2436
|
+
}
|
|
2437
|
+
|
|
2438
|
+
textarea::-webkit-scrollbar {
|
|
2439
|
+
width: 14px;
|
|
2495
2440
|
}
|
|
2496
2441
|
|
|
2497
|
-
|
|
2442
|
+
textarea::-webkit-scrollbar-thumb {
|
|
2443
|
+
background-color: transparent;
|
|
2444
|
+
}
|
|
2445
|
+
|
|
2446
|
+
textarea:hover::-webkit-scrollbar-thumb {
|
|
2447
|
+
background-color: var(
|
|
2448
|
+
--vscode-scrollbarSlider-background,
|
|
2449
|
+
rgba(121, 121, 121, 0.4)
|
|
2450
|
+
);
|
|
2451
|
+
}
|
|
2452
|
+
|
|
2453
|
+
textarea::-webkit-scrollbar-thumb:hover {
|
|
2454
|
+
background-color: var(
|
|
2455
|
+
--vscode-scrollbarSlider-hoverBackground,
|
|
2456
|
+
rgba(100, 100, 100, 0.7)
|
|
2457
|
+
);
|
|
2458
|
+
}
|
|
2459
|
+
|
|
2460
|
+
textarea::-webkit-scrollbar-thumb:active {
|
|
2461
|
+
background-color: var(
|
|
2462
|
+
--vscode-scrollbarSlider-activeBackground,
|
|
2463
|
+
rgba(191, 191, 191, 0.4)
|
|
2464
|
+
);
|
|
2465
|
+
}
|
|
2466
|
+
|
|
2467
|
+
textarea::-webkit-scrollbar-corner {
|
|
2468
|
+
background-color: transparent;
|
|
2469
|
+
}
|
|
2470
|
+
|
|
2471
|
+
textarea::-webkit-resizer {
|
|
2472
|
+
background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAcAAAAHCAYAAADEUlfTAAAAAXNSR0IB2cksfwAAAAlwSFlzAAALEwAACxMBAJqcGAAAACJJREFUeJxjYMAOZuIQZ5j5//9/rJJESczEKYGsG6cEXgAAsEEefMxkua4AAAAASUVORK5CYII=');
|
|
2498
2473
|
background-repeat: no-repeat;
|
|
2499
|
-
background-position:
|
|
2500
|
-
|
|
2474
|
+
background-position: right bottom;
|
|
2475
|
+
}
|
|
2476
|
+
`];var ts=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 es=class extends kt{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(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_handleInput(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_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
|
+
<div
|
|
2478
|
+
class=${Mt({shadow:!0,visible:this._shadow})}
|
|
2479
|
+
></div>
|
|
2480
|
+
<textarea
|
|
2481
|
+
autocomplete=${Pt(this.autocomplete)}
|
|
2482
|
+
?autofocus=${this.autofocus}
|
|
2483
|
+
?disabled=${this.disabled}
|
|
2484
|
+
aria-label=${this.label}
|
|
2485
|
+
id="textarea"
|
|
2486
|
+
class=${Mt({monospace:this.monospace,"cursor-pointer":this._textareaPointerCursor})}
|
|
2487
|
+
maxlength=${Pt(this.maxLength)}
|
|
2488
|
+
minlength=${Pt(this.minLength)}
|
|
2489
|
+
rows=${Pt(this.rows)}
|
|
2490
|
+
cols=${Pt(this.cols)}
|
|
2491
|
+
name=${Pt(this.name)}
|
|
2492
|
+
placeholder=${Pt(this.placeholder)}
|
|
2493
|
+
?readonly=${this.readonly}
|
|
2494
|
+
.style=${Dt({resize:this.resize})}
|
|
2495
|
+
?required=${this.required}
|
|
2496
|
+
spellcheck=${this.spellcheck}
|
|
2497
|
+
@change=${this._handleChange}
|
|
2498
|
+
@input=${this._handleInput}
|
|
2499
|
+
@mousemove=${this._handleMouseMove}
|
|
2500
|
+
@scroll=${this._handleScroll}
|
|
2501
|
+
.value=${this._value}
|
|
2502
|
+
></textarea>
|
|
2503
|
+
`}};es.styles=Qi,es.formAssociated=!0,es.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},ts([pt()],es.prototype,"autocomplete",void 0),ts([pt({type:Boolean,reflect:!0})],es.prototype,"autofocus",void 0),ts([pt({attribute:"default-value"})],es.prototype,"defaultValue",void 0),ts([pt({type:Boolean,reflect:!0})],es.prototype,"disabled",void 0),ts([pt({type:Boolean,reflect:!0})],es.prototype,"invalid",void 0),ts([pt({attribute:!1})],es.prototype,"label",void 0),ts([pt({type:Number})],es.prototype,"maxLength",void 0),ts([pt({type:Number})],es.prototype,"minLength",void 0),ts([pt({type:Number})],es.prototype,"rows",void 0),ts([pt({type:Number})],es.prototype,"cols",void 0),ts([pt()],es.prototype,"name",void 0),ts([pt()],es.prototype,"placeholder",void 0),ts([pt({type:Boolean,reflect:!0})],es.prototype,"readonly",void 0),ts([pt()],es.prototype,"resize",void 0),ts([pt({type:Boolean,reflect:!0})],es.prototype,"required",void 0),ts([pt({type:Boolean})],es.prototype,"spellcheck",void 0),ts([pt({type:Boolean,reflect:!0})],es.prototype,"monospace",void 0),ts([pt()],es.prototype,"value",null),ts([gt("#textarea")],es.prototype,"_textareaEl",void 0),ts([bt()],es.prototype,"_value",void 0),ts([bt()],es.prototype,"_textareaPointerCursor",void 0),ts([bt()],es.prototype,"_shadow",void 0),es=ts([$t("vscode-textarea")],es);const is=r(St()),ss=[_t,n`
|
|
2504
|
+
:host {
|
|
2505
|
+
align-items: center;
|
|
2506
|
+
background-color: var(--vscode-settings-textInputBackground, #313131);
|
|
2507
|
+
border-color: var(
|
|
2508
|
+
--vscode-settings-textInputBorder,
|
|
2509
|
+
var(--vscode-settings-textInputBackground, #3c3c3c)
|
|
2510
|
+
);
|
|
2511
|
+
border-radius: 2px;
|
|
2512
|
+
border-style: solid;
|
|
2513
|
+
border-width: 1px;
|
|
2514
|
+
box-sizing: border-box;
|
|
2515
|
+
color: var(--vscode-settings-textInputForeground, #cccccc);
|
|
2516
|
+
display: inline-flex;
|
|
2517
|
+
max-width: 100%;
|
|
2518
|
+
position: relative;
|
|
2519
|
+
width: 320px;
|
|
2520
|
+
}
|
|
2521
|
+
|
|
2522
|
+
:host([focused]) {
|
|
2523
|
+
border-color: var(--vscode-focusBorder, #0078d4);
|
|
2524
|
+
}
|
|
2525
|
+
|
|
2526
|
+
:host([invalid]),
|
|
2527
|
+
:host(:invalid) {
|
|
2528
|
+
border-color: var(--vscode-inputValidation-errorBorder, #be1100);
|
|
2529
|
+
}
|
|
2530
|
+
|
|
2531
|
+
:host([invalid]) input,
|
|
2532
|
+
:host(:invalid) input {
|
|
2533
|
+
background-color: var(--vscode-inputValidation-errorBackground, #5a1d1d);
|
|
2534
|
+
}
|
|
2535
|
+
|
|
2536
|
+
::slotted([slot='content-before']) {
|
|
2501
2537
|
display: block;
|
|
2502
|
-
|
|
2503
|
-
margin-right: 6px;
|
|
2504
|
-
height: 22px;
|
|
2505
|
-
width: 16px;
|
|
2538
|
+
margin-left: 2px;
|
|
2506
2539
|
}
|
|
2507
2540
|
|
|
2508
|
-
|
|
2509
|
-
|
|
2541
|
+
::slotted([slot='content-after']) {
|
|
2542
|
+
display: block;
|
|
2543
|
+
margin-right: 2px;
|
|
2510
2544
|
}
|
|
2511
2545
|
|
|
2512
|
-
|
|
2546
|
+
slot[name='content-before'],
|
|
2547
|
+
slot[name='content-after'] {
|
|
2548
|
+
align-items: center;
|
|
2513
2549
|
display: flex;
|
|
2514
|
-
line-height: 22px;
|
|
2515
2550
|
}
|
|
2516
2551
|
|
|
2517
|
-
|
|
2552
|
+
input {
|
|
2553
|
+
background-color: var(--vscode-settings-textInputBackground, #313131);
|
|
2554
|
+
border: 0;
|
|
2555
|
+
box-sizing: border-box;
|
|
2556
|
+
color: var(--vscode-settings-textInputForeground, #cccccc);
|
|
2518
2557
|
display: block;
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2558
|
+
font-family: var(--vscode-font-family, ${is});
|
|
2559
|
+
font-size: var(--vscode-font-size, 13px);
|
|
2560
|
+
font-weight: var(--vscode-font-weight, 'normal');
|
|
2561
|
+
line-height: 18px;
|
|
2562
|
+
outline: none;
|
|
2563
|
+
padding-bottom: 3px;
|
|
2564
|
+
padding-left: 4px;
|
|
2565
|
+
padding-right: 4px;
|
|
2566
|
+
padding-top: 3px;
|
|
2522
2567
|
width: 100%;
|
|
2523
2568
|
}
|
|
2524
2569
|
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
line-height: 22px;
|
|
2528
|
-
margin-left: 0.5em;
|
|
2529
|
-
opacity: 0.95;
|
|
2530
|
-
white-space: pre;
|
|
2570
|
+
input:read-only:not([type='file']) {
|
|
2571
|
+
cursor: not-allowed;
|
|
2531
2572
|
}
|
|
2532
2573
|
|
|
2533
|
-
|
|
2534
|
-
|
|
2574
|
+
input::placeholder {
|
|
2575
|
+
color: var(--vscode-input-placeholderForeground, #989898);
|
|
2576
|
+
opacity: 1;
|
|
2577
|
+
}
|
|
2578
|
+
|
|
2579
|
+
input[type='file'] {
|
|
2580
|
+
line-height: 24px;
|
|
2581
|
+
padding-bottom: 0;
|
|
2582
|
+
padding-left: 2px;
|
|
2583
|
+
padding-top: 0;
|
|
2535
2584
|
}
|
|
2536
2585
|
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2586
|
+
input[type='file']::file-selector-button {
|
|
2587
|
+
background-color: var(--vscode-button-background, #0078d4);
|
|
2588
|
+
border: 0;
|
|
2589
|
+
border-radius: 2px;
|
|
2590
|
+
color: var(--vscode-button-foreground, #ffffff);
|
|
2591
|
+
cursor: pointer;
|
|
2592
|
+
font-family: var(--vscode-font-family, ${is});
|
|
2593
|
+
font-size: var(--vscode-font-size, 13px);
|
|
2594
|
+
font-weight: var(--vscode-font-weight, 'normal');
|
|
2595
|
+
line-height: 20px;
|
|
2596
|
+
padding: 0 14px;
|
|
2597
|
+
}
|
|
2598
|
+
|
|
2599
|
+
input[type='file']::file-selector-button:hover {
|
|
2600
|
+
background-color: var(--vscode-button-hoverBackground, #026ec1);
|
|
2601
|
+
}
|
|
2602
|
+
`];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 kt{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(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new CustomEvent("vsc-input",{detail:{data:t.data,originalEvent:t}}))}_onChange(t){this._dataChanged(),this._setValidityFromInput(),this.dispatchEvent(new Event("change")),this.dispatchEvent(new CustomEvent("vsc-change",{detail:{data:this.value,originalEvent:t}}))}_onFocus(){this.focused=!0}_onBlur(){this.focused=!1}_onKeyDown(t){"Enter"===t.key&&this._internals.form&&this._internals.form?.requestSubmit()}render(){return U`
|
|
2603
|
+
<slot name="content-before"></slot>
|
|
2604
|
+
<input
|
|
2605
|
+
id="input"
|
|
2606
|
+
type=${this.type}
|
|
2607
|
+
?autofocus=${this.autofocus}
|
|
2608
|
+
autocomplete=${Pt(this.autocomplete)}
|
|
2609
|
+
aria-label=${this.label}
|
|
2610
|
+
?disabled=${this.disabled}
|
|
2611
|
+
max=${Pt(this.max)}
|
|
2612
|
+
maxlength=${Pt(this.maxLength)}
|
|
2613
|
+
min=${Pt(this.min)}
|
|
2614
|
+
minlength=${Pt(this.minLength)}
|
|
2615
|
+
?multiple=${this.multiple}
|
|
2616
|
+
name=${Pt(this.name)}
|
|
2617
|
+
pattern=${Pt(this.pattern)}
|
|
2618
|
+
placeholder=${Pt(this.placeholder)}
|
|
2619
|
+
?readonly=${this.readonly}
|
|
2620
|
+
?required=${this.required}
|
|
2621
|
+
step=${Pt(this.step)}
|
|
2622
|
+
.value=${this._value}
|
|
2623
|
+
@blur=${this._onBlur}
|
|
2624
|
+
@change=${this._onChange}
|
|
2625
|
+
@focus=${this._onFocus}
|
|
2626
|
+
@input=${this._onInput}
|
|
2627
|
+
@keydown=${this._onKeyDown}
|
|
2628
|
+
>
|
|
2629
|
+
<slot name="content-after"></slot>
|
|
2630
|
+
`}};rs.styles=ss,rs.formAssociated=!0,rs.shadowRootOptions={...at.shadowRootOptions,delegatesFocus:!0},os([pt()],rs.prototype,"autocomplete",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"autofocus",void 0),os([pt({attribute:"default-value"})],rs.prototype,"defaultValue",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"disabled",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"focused",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"invalid",void 0),os([pt({attribute:!1})],rs.prototype,"label",void 0),os([pt({type:Number})],rs.prototype,"max",void 0),os([pt({type:Number})],rs.prototype,"maxLength",void 0),os([pt({type:Number})],rs.prototype,"min",void 0),os([pt({type:Number})],rs.prototype,"minLength",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"multiple",void 0),os([pt({reflect:!0})],rs.prototype,"name",void 0),os([pt()],rs.prototype,"pattern",void 0),os([pt()],rs.prototype,"placeholder",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"readonly",void 0),os([pt({type:Boolean,reflect:!0})],rs.prototype,"required",void 0),os([pt({type:Number})],rs.prototype,"step",void 0),os([pt({reflect:!0})],rs.prototype,"type",null),os([pt()],rs.prototype,"value",null),os([gt("#input")],rs.prototype,"_inputEl",void 0),os([bt()],rs.prototype,"_value",void 0),os([bt()],rs.prototype,"_type",void 0),rs=os([$t("vscode-textfield")],rs);const ns=[_t,n`
|
|
2631
|
+
:host {
|
|
2632
|
+
display: inline-flex;
|
|
2633
|
+
}
|
|
2634
|
+
|
|
2635
|
+
button {
|
|
2636
|
+
align-items: center;
|
|
2637
|
+
background-color: transparent;
|
|
2638
|
+
border: 0;
|
|
2639
|
+
border-radius: 5px;
|
|
2640
|
+
color: var(--vscode-foreground, #cccccc);
|
|
2641
|
+
cursor: pointer;
|
|
2540
2642
|
display: flex;
|
|
2643
|
+
outline-offset: -1px;
|
|
2644
|
+
outline-width: 1px;
|
|
2645
|
+
padding: 0;
|
|
2646
|
+
user-select: none;
|
|
2647
|
+
}
|
|
2648
|
+
|
|
2649
|
+
button:focus-visible {
|
|
2650
|
+
outline-color: var(--vscode-focusBorder, #0078d4);
|
|
2651
|
+
outline-style: solid;
|
|
2652
|
+
}
|
|
2653
|
+
|
|
2654
|
+
button:hover {
|
|
2655
|
+
background-color: var(
|
|
2656
|
+
--vscode-toolbar-hoverBackground,
|
|
2657
|
+
rgba(90, 93, 94, 0.31)
|
|
2658
|
+
);
|
|
2659
|
+
outline-style: dashed;
|
|
2660
|
+
outline-color: var(--vscode-toolbar-hoverOutline, transparent);
|
|
2661
|
+
}
|
|
2662
|
+
|
|
2663
|
+
button:active {
|
|
2664
|
+
background-color: var(
|
|
2665
|
+
--vscode-toolbar-activeBackground,
|
|
2666
|
+
rgba(99, 102, 103, 0.31)
|
|
2667
|
+
);
|
|
2668
|
+
}
|
|
2669
|
+
|
|
2670
|
+
button.checked {
|
|
2671
|
+
background-color: var(
|
|
2672
|
+
--vscode-inputOption-activeBackground,
|
|
2673
|
+
rgba(36, 137, 219, 0.51)
|
|
2674
|
+
);
|
|
2675
|
+
outline-color: var(--vscode-inputOption-activeBorder, #2488db);
|
|
2676
|
+
outline-style: solid;
|
|
2677
|
+
color: var(--vscode-inputOption-activeForeground, #ffffff);
|
|
2678
|
+
}
|
|
2679
|
+
|
|
2680
|
+
button.checked vscode-icon {
|
|
2681
|
+
color: var(--vscode-inputOption-activeForeground, #ffffff);
|
|
2682
|
+
}
|
|
2683
|
+
|
|
2684
|
+
vscode-icon {
|
|
2685
|
+
display: block;
|
|
2686
|
+
padding: 3px;
|
|
2541
2687
|
}
|
|
2542
2688
|
|
|
2543
|
-
.
|
|
2689
|
+
slot:not(.empty) {
|
|
2544
2690
|
align-items: center;
|
|
2545
2691
|
display: flex;
|
|
2546
2692
|
height: 22px;
|
|
2547
|
-
|
|
2693
|
+
padding: 0 5px 0 2px;
|
|
2548
2694
|
}
|
|
2549
2695
|
|
|
2550
|
-
.
|
|
2551
|
-
|
|
2552
|
-
opacity: 0.4;
|
|
2696
|
+
slot.textOnly:not(.empty) {
|
|
2697
|
+
padding: 0 5px;
|
|
2553
2698
|
}
|
|
2699
|
+
`];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 kt{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
|
+
<button
|
|
2701
|
+
type="button"
|
|
2702
|
+
aria-label=${Pt(this.label)}
|
|
2703
|
+
role=${Pt(this.toggleable?"switch":void 0)}
|
|
2704
|
+
aria-checked=${Pt(this.toggleable?t:void 0)}
|
|
2705
|
+
class=${Mt({checked:this.toggleable&&this.checked})}
|
|
2706
|
+
@click=${this._handleButtonClick}
|
|
2707
|
+
>
|
|
2708
|
+
${this.icon?U`<vscode-icon name=${this.icon}></vscode-icon>`:q}
|
|
2709
|
+
<slot
|
|
2710
|
+
@slotchange=${this._handleSlotChange}
|
|
2711
|
+
class=${Mt({empty:this._isSlotEmpty,textOnly:!this.icon})}
|
|
2712
|
+
></slot>
|
|
2713
|
+
</button>
|
|
2714
|
+
`}};hs.styles=ns,ls([pt({reflect:!0})],hs.prototype,"icon",void 0),ls([pt()],hs.prototype,"label",void 0),ls([pt({type:Boolean,reflect:!0})],hs.prototype,"toggleable",void 0),ls([pt({type:Boolean,reflect:!0})],hs.prototype,"checked",void 0),ls([bt()],hs.prototype,"_isSlotEmpty",void 0),ls([function(t){return(e,i)=>{const{slot:s}={},o="slot"+(s?`[name=${s}]`:":not([name])");return ft(0,0,{get(){const e=this.renderRoot?.querySelector(o);return e?.assignedNodes(t)??[]}})}}()],hs.prototype,"_assignedNodes",void 0),hs=ls([$t("vscode-toolbar-button")],hs);const as=[_t,n`
|
|
2715
|
+
:host {
|
|
2716
|
+
gap: 4px;
|
|
2717
|
+
display: flex;
|
|
2718
|
+
align-items: center;
|
|
2719
|
+
}
|
|
2720
|
+
`];var cs=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 ds=class extends kt{render(){return U` <slot></slot> `}};ds.styles=as,ds=cs([$t("vscode-toolbar-container")],ds);let us=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 vs=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 us(this.context,this.t,this.subscribe))}};class ps{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 bs=class extends Event{constructor(t){super("context-provider",{bubbles:!0,composed:!0}),this.context=t}};class fs extends ps{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 us(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 bs(this.context))}}function gs({context:t}){return(e,i)=>{const s=new WeakMap;if("object"==typeof i)return i.addInitializer((function(){s.set(this,new fs(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 fs(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 ms({context:t,subscribe:e}){return(i,s)=>{"object"==typeof s?s.addInitializer((function(){new vs(this,{context:t,callback:t=>{i.set.call(this,t)},subscribe:e})})):i.constructor.addInitializer((i=>{new vs(i,{context:t,callback:t=>{i[s]=t},subscribe:e})}))}}const xs=[_t,n`
|
|
2721
|
+
:host {
|
|
2722
|
+
--vsc-tree-item-arrow-display: flex;
|
|
2723
|
+
--internal-selectionBackground: var(
|
|
2724
|
+
--vscode-list-inactiveSelectionBackground
|
|
2725
|
+
);
|
|
2726
|
+
--internal-selectionForeground: var(--vscode-foreground);
|
|
2727
|
+
--internal-selectionIconForeground: var(--vscode-icon-foreground);
|
|
2728
|
+
--internal-defaultIndentGuideDisplay: none;
|
|
2729
|
+
--internal-highlightedIndentGuideDisplay: block;
|
|
2554
2730
|
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2731
|
+
display: block;
|
|
2732
|
+
}
|
|
2733
|
+
|
|
2734
|
+
:host(:hover) {
|
|
2735
|
+
--internal-defaultIndentGuideDisplay: block;
|
|
2736
|
+
--internal-highlightedIndentGuideDisplay: block;
|
|
2560
2737
|
}
|
|
2561
2738
|
|
|
2562
|
-
|
|
2563
|
-
|
|
2564
|
-
|
|
2739
|
+
:host(:focus-within) {
|
|
2740
|
+
--internal-selectionBackground: var(
|
|
2741
|
+
--vscode-list-activeSelectionBackground
|
|
2742
|
+
);
|
|
2743
|
+
--internal-selectionForeground: var(
|
|
2744
|
+
--vscode-list-activeSelectionForeground
|
|
2745
|
+
);
|
|
2746
|
+
--internal-selectionIconForeground: var(
|
|
2747
|
+
--vscode-list-activeSelectionIconForeground
|
|
2748
|
+
);
|
|
2565
2749
|
}
|
|
2566
2750
|
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
color: var(--hover-color, var(--color));
|
|
2751
|
+
:host([hide-arrows]) {
|
|
2752
|
+
--vsc-tree-item-arrow-display: none;
|
|
2570
2753
|
}
|
|
2571
2754
|
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2755
|
+
:host([indent-guides='none']),
|
|
2756
|
+
:host([indent-guides='none']:hover) {
|
|
2757
|
+
--internal-defaultIndentGuideDisplay: none;
|
|
2758
|
+
--internal-highlightedIndentGuideDisplay: none;
|
|
2575
2759
|
}
|
|
2576
2760
|
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2761
|
+
:host([indent-guides='always']),
|
|
2762
|
+
:host([indent-guides='always']:hover) {
|
|
2763
|
+
--internal-defaultIndentGuideDisplay: block;
|
|
2764
|
+
--internal-highlightedIndentGuideDisplay: block;
|
|
2580
2765
|
}
|
|
2766
|
+
`],ys="vscode-list",ws=Symbol("configContext"),ks=t=>t instanceof Element&&t.matches("vscode-tree-item"),$s=(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(".")}))},_s=t=>{const e=t.lastElementChild;return e&&ks(e)?e.branch&&e.open?_s(e):e:t},Ss=t=>{if(!t.parentElement)return null;if(!ks(t.parentElement))return null;const e=Cs(t.parentElement);return e||Ss(t.parentElement)},Cs=t=>{let e=t.nextElementSibling;for(;e&&!ks(e);)e=e.nextElementSibling;return e};function Bs(t){return t.parentElement&&ks(t.parentElement)?t.parentElement:null}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};const zs="singleClick",As="doubleClick",Es="none",Is=[" ","ArrowDown","ArrowUp","ArrowLeft","ArrowRight","Enter","Escape","Shift"],js=zs,Ms="onHover";let Ps=class extends kt{constructor(){super(),this.hideArrows=false,this.expandMode=js,this.indent=8,this.indentGuides=Ms,this.multiSelect=false,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:false,expandMode:js,indent:8,indentGuides:Ms,multiSelect:false},this._handleComponentKeyDown=t=>{const e=t.key;switch(Is.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,$s(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=Bs(t);e&&(e.highlightedGuides=!0,this._treeContextState.highlightedItems?.add(e))}}_highlightIndentGuides(){this.indentGuides!==Es&&(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||!ks(t))return null;let i=t.previousElementSibling;for(;i&&!ks(i);)i=i.previousElementSibling;if(!i&&ks(e))return e;if(i&&i.branch&&i.open)return _s(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||!ks(t))return null;let i;if(t.branch&&t.open){const e=t.querySelector("vscode-tree-item");e?i=e:(i=Cs(t),i||(i=Ss(t)))}else i=Cs(t),i||(i=Ss(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=Bs(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
|
+
<slot @slotchange=${this._handleSlotChange}></slot>
|
|
2768
|
+
</div>`}};Ps.styles=xs,Os([pt({type:Boolean,reflect:!0,attribute:"hide-arrows"})],Ps.prototype,"hideArrows",void 0),Os([pt({type:String,attribute:"expand-mode"})],Ps.prototype,"expandMode",void 0),Os([pt({type:Number,reflect:!0})],Ps.prototype,"indent",void 0),Os([pt({type:String,attribute:"indent-guides",useDefault:!0,reflect:!0})],Ps.prototype,"indentGuides",void 0),Os([pt({type:Boolean,reflect:!0,attribute:"multi-select"})],Ps.prototype,"multiSelect",void 0),Os([gs({context:ys})],Ps.prototype,"_treeContextState",void 0),Os([gs({context:ws})],Ps.prototype,"_configContext",void 0),Os([xt({selector:"vscode-tree-item"})],Ps.prototype,"_assignedTreeItems",void 0),Ps=Os([dt("vscode-tree")],Ps);const Ds=[_t,n`
|
|
2769
|
+
:host {
|
|
2770
|
+
--hover-outline-color: transparent;
|
|
2771
|
+
--hover-outline-style: solid;
|
|
2772
|
+
--hover-outline-width: 0;
|
|
2773
|
+
|
|
2774
|
+
--selected-outline-color: transparent;
|
|
2775
|
+
--selected-outline-style: solid;
|
|
2776
|
+
--selected-outline-width: 0;
|
|
2581
2777
|
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2778
|
+
cursor: pointer;
|
|
2779
|
+
display: block;
|
|
2780
|
+
user-select: none;
|
|
2585
2781
|
}
|
|
2586
2782
|
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
color: var(--vscode-list-activeSelectionForeground);
|
|
2590
|
-
background-color: var(--vscode-list-activeSelectionBackground);
|
|
2783
|
+
.root {
|
|
2784
|
+
display: block;
|
|
2591
2785
|
}
|
|
2592
2786
|
|
|
2593
|
-
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2787
|
+
.wrapper {
|
|
2788
|
+
align-items: flex-start;
|
|
2789
|
+
display: flex;
|
|
2790
|
+
font-family: var(--vscode-font-family);
|
|
2791
|
+
font-size: var(--vscode-font-size);
|
|
2792
|
+
font-weight: var(--vscode-font-weight);
|
|
2793
|
+
outline-offset: -1px;
|
|
2794
|
+
padding-right: 12px;
|
|
2795
|
+
}
|
|
2796
|
+
|
|
2797
|
+
.wrapper:hover {
|
|
2798
|
+
background-color: var(--vscode-list-hoverBackground);
|
|
2799
|
+
color: var(--vscode-list-hoverForeground);
|
|
2800
|
+
}
|
|
2801
|
+
|
|
2802
|
+
:host([selected]) .wrapper {
|
|
2803
|
+
color: var(--internal-selectionForeground);
|
|
2804
|
+
background-color: var(--internal-selectionBackground);
|
|
2805
|
+
}
|
|
2806
|
+
|
|
2807
|
+
:host([selected]) ::slotted(vscode-icon) {
|
|
2808
|
+
color: var(--internal-selectionForeground);
|
|
2600
2809
|
}
|
|
2601
2810
|
|
|
2602
|
-
:host(:focus)
|
|
2603
|
-
|
|
2604
|
-
background-color: var(--vscode-list-focusBackground);
|
|
2811
|
+
:host(:focus) {
|
|
2812
|
+
outline: none;
|
|
2605
2813
|
}
|
|
2606
2814
|
|
|
2607
|
-
:host(:focus) .
|
|
2815
|
+
:host(:focus) .wrapper.active {
|
|
2608
2816
|
outline-color: var(
|
|
2609
2817
|
--vscode-list-focusAndSelectionOutline,
|
|
2610
2818
|
var(--vscode-list-focusOutline)
|
|
2611
2819
|
);
|
|
2820
|
+
outline-style: solid;
|
|
2821
|
+
outline-width: 1px;
|
|
2612
2822
|
}
|
|
2613
2823
|
|
|
2614
|
-
.
|
|
2615
|
-
|
|
2616
|
-
|
|
2824
|
+
.arrow-container {
|
|
2825
|
+
align-items: center;
|
|
2826
|
+
display: var(--vsc-tree-item-arrow-display);
|
|
2827
|
+
height: 22px;
|
|
2828
|
+
justify-content: center;
|
|
2829
|
+
padding-left: 8px;
|
|
2830
|
+
padding-right: 6px;
|
|
2831
|
+
width: 16px;
|
|
2617
2832
|
}
|
|
2618
2833
|
|
|
2619
|
-
.
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
outline-style: var(--hover-outline-style);
|
|
2623
|
-
outline-width: var(--hover-outline-width);
|
|
2834
|
+
.arrow-container svg {
|
|
2835
|
+
display: block;
|
|
2836
|
+
fill: var(--vscode-icon-foreground);
|
|
2624
2837
|
}
|
|
2625
2838
|
|
|
2626
|
-
.
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2839
|
+
.arrow-container.icon-rotated svg {
|
|
2840
|
+
transform: rotate(90deg);
|
|
2841
|
+
}
|
|
2842
|
+
|
|
2843
|
+
:host([selected]) .arrow-container svg {
|
|
2844
|
+
fill: var(--internal-selectionIconForeground);
|
|
2630
2845
|
}
|
|
2631
2846
|
|
|
2632
|
-
.
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
outline-width: var(--selected-outline-width);
|
|
2847
|
+
.icon-container {
|
|
2848
|
+
align-items: center;
|
|
2849
|
+
display: flex;
|
|
2850
|
+
height: 22px;
|
|
2637
2851
|
}
|
|
2638
2852
|
|
|
2639
|
-
.
|
|
2640
|
-
|
|
2853
|
+
.icon-container slot {
|
|
2854
|
+
display: block;
|
|
2641
2855
|
}
|
|
2642
2856
|
|
|
2643
|
-
.
|
|
2644
|
-
|
|
2645
|
-
outline: 1px dotted var(--vscode-list-inactiveFocusOutline);
|
|
2857
|
+
.icon-container.has-icon {
|
|
2858
|
+
margin-right: 6px;
|
|
2646
2859
|
}
|
|
2647
2860
|
|
|
2648
|
-
|
|
2649
|
-
|
|
2861
|
+
.children {
|
|
2862
|
+
position: relative;
|
|
2650
2863
|
}
|
|
2651
2864
|
|
|
2652
|
-
:
|
|
2865
|
+
.children.guide:before {
|
|
2653
2866
|
background-color: var(--vscode-tree-inactiveIndentGuidesStroke);
|
|
2867
|
+
content: '';
|
|
2868
|
+
display: none;
|
|
2869
|
+
height: 100%;
|
|
2870
|
+
left: var(--indentation-guide-left);
|
|
2871
|
+
pointer-events: none;
|
|
2872
|
+
position: absolute;
|
|
2873
|
+
width: 1px;
|
|
2874
|
+
z-index: 1;
|
|
2875
|
+
}
|
|
2876
|
+
|
|
2877
|
+
.children.guide.default-guide:before {
|
|
2878
|
+
display: var(--internal-defaultIndentGuideDisplay);
|
|
2654
2879
|
}
|
|
2655
2880
|
|
|
2656
|
-
|
|
2881
|
+
.children.guide.highlighted-guide:before {
|
|
2882
|
+
display: var(--internal-highlightedIndentGuideDisplay);
|
|
2657
2883
|
background-color: var(--vscode-tree-indentGuidesStroke);
|
|
2658
2884
|
}
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
|
|
2684
|
-
|
|
2685
|
-
|
|
2686
|
-
|
|
2687
|
-
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2691
|
-
|
|
2692
|
-
${
|
|
2693
|
-
|
|
2694
|
-
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
|
|
2700
|
-
|
|
2701
|
-
|
|
2702
|
-
.
|
|
2703
|
-
|
|
2704
|
-
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2885
|
+
|
|
2886
|
+
.content {
|
|
2887
|
+
line-height: 22px;
|
|
2888
|
+
overflow: hidden;
|
|
2889
|
+
text-overflow: ellipsis;
|
|
2890
|
+
white-space: nowrap;
|
|
2891
|
+
}
|
|
2892
|
+
|
|
2893
|
+
:host([branch]) ::slotted(vscode-tree-item) {
|
|
2894
|
+
display: none;
|
|
2895
|
+
}
|
|
2896
|
+
|
|
2897
|
+
:host([branch][open]) ::slotted(vscode-tree-item) {
|
|
2898
|
+
display: block;
|
|
2899
|
+
}
|
|
2900
|
+
`];var Fs=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 Vs=U`<svg
|
|
2901
|
+
width="16"
|
|
2902
|
+
height="16"
|
|
2903
|
+
viewBox="0 0 16 16"
|
|
2904
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
2905
|
+
>
|
|
2906
|
+
<path
|
|
2907
|
+
fill-rule="evenodd"
|
|
2908
|
+
clip-rule="evenodd"
|
|
2909
|
+
d="M10.072 8.024L5.715 3.667l.618-.62L11 7.716v.618L6.333 13l-.618-.619 4.357-4.357z"
|
|
2910
|
+
/>
|
|
2911
|
+
</svg>`;function Ns(t){return t.parentElement&&t.parentElement instanceof Rs?t.parentElement:null}let Rs=class extends kt{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=Ns(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(){$s(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===zs&&(!this.branch||this._configContext.multiSelect&&e||(this.open=!this.open))),this.active=!0,i||(this._treeContextState.prevFocusedItem=this)}_handleDoubleClick(t){this._configContext.expandMode===As&&(!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!==Es,"default-guide":i!==Es,"highlighted-guide":this.highlightedGuides},c={"icon-container":!0,"has-icon":l};return U` <div class="root">
|
|
2912
|
+
<div
|
|
2913
|
+
class=${Mt(h)}
|
|
2914
|
+
@click=${this._handleContentClick}
|
|
2915
|
+
@dblclick=${this._handleDoubleClick}
|
|
2916
|
+
.style=${Dt({paddingLeft:`${o}px`})}
|
|
2917
|
+
>
|
|
2918
|
+
${this.branch&&!t?U`<div
|
|
2919
|
+
class=${Mt({"arrow-container":!0,"icon-rotated":this.open})}
|
|
2920
|
+
>
|
|
2921
|
+
${Vs}
|
|
2922
|
+
</div>`:q}
|
|
2923
|
+
<div class=${Mt(c)}>
|
|
2924
|
+
${this.branch&&!this.open?U`<slot
|
|
2925
|
+
name="icon-branch"
|
|
2926
|
+
@slotchange=${this._handleIconSlotChange}
|
|
2927
|
+
></slot>`:q}
|
|
2928
|
+
${this.branch&&this.open?U`<slot
|
|
2929
|
+
name="icon-branch-opened"
|
|
2930
|
+
@slotchange=${this._handleIconSlotChange}
|
|
2931
|
+
></slot>`:q}
|
|
2932
|
+
${this.branch?q:U`<slot
|
|
2933
|
+
name="icon-leaf"
|
|
2934
|
+
@slotchange=${this._handleIconSlotChange}
|
|
2935
|
+
></slot>`}
|
|
2936
|
+
</div>
|
|
2937
|
+
<div class="content" part="content">
|
|
2938
|
+
<slot @slotchange=${this._handleMainSlotChange}></slot>
|
|
2711
2939
|
</div>
|
|
2712
|
-
${y}
|
|
2713
|
-
</li>
|
|
2714
|
-
`}_renderTree(t,e=[]){const s=[];return t?(t.forEach(((t,i)=>{const o=[...e,i],r=Xs(t)?"branch":"leaf",{selected:n=!1,focused:l=!1,hasFocusedItem:a=!1,hasSelectedItem:c=!1}=t;n&&(this._selectedItem=t),l&&(this._focusedItem=t),s.push(this._renderTreeItem(t,{path:o,itemType:r,hasFocusedItem:a,hasSelectedItem:c}))})),s):H}_selectItem(t){this._selectedItem&&(this._selectedItem.selected=!1),this._focusedItem&&(this._focusedItem.focused=!1),this._selectedItem=t,t.selected=!0,this._focusedItem=t,t.focused=!0,this._selectedBranch&&(this._selectedBranch.hasSelectedItem=!1);let e=null;if(t.path?.length&&t.path.length>1&&(e=this._getItemByPath(t.path.slice(0,-1))),Xs(t))this._selectedBranch=t,t.hasSelectedItem=!0,t.open=!t.open,t.open?(this._selectedBranch=t,t.hasSelectedItem=!0):e&&(this._selectedBranch=e,e.hasSelectedItem=!0);else if(t.path?.length&&t.path.length>1){const e=this._getItemByPath(t.path.slice(0,-1));e&&(this._selectedBranch=e,e.hasSelectedItem=!0)}else this._selectedBranch=t,t.hasSelectedItem=!0;this._emitSelectEvent(this._selectedItem,this._selectedItem.path.join("/")),this.requestUpdate()}_focusItem(t){this._focusedItem&&(this._focusedItem.focused=!1),this._focusedItem=t,t.focused=!0;const e=!!t?.subItems?.length;this._focusedBranch&&(this._focusedBranch.hasFocusedItem=!1);let s=null;t.path?.length&&t.path.length>1&&(s=this._getItemByPath(t.path.slice(0,-1))),e?t.open?(this._focusedBranch=t,t.hasFocusedItem=!0):!t.open&&s&&(this._focusedBranch=s,s.hasFocusedItem=!0):s&&(this._focusedBranch=s,s.hasFocusedItem=!0)}_closeSubTreeRecursively(t){t.forEach((t=>{t.open=!1,t.subItems&&t.subItems.length>0&&this._closeSubTreeRecursively(t.subItems)}))}_deselectItemsRecursively(t){t.forEach((t=>{t.selected&&(t.selected=!1),t.subItems&&t.subItems.length>0&&this._deselectItemsRecursively(t.subItems)}))}_emitSelectEvent(t,e){const{icons:s,label:i,open:o,value:r}=t,n={icons:s,itemType:Xs(t)?"branch":"leaf",label:i,open:o||!1,value:r||i,path:e};this.dispatchEvent(new CustomEvent("vsc-select",{bubbles:!0,composed:!0,detail:n})),this.dispatchEvent(new CustomEvent("vsc-tree-select",{detail:n}))}_focusPrevItem(){if(!this._focusedItem)return void this._focusItem(this._data[0]);const{path:t}=this._focusedItem;if(t&&t?.length>0){const e=t[t.length-1],s=t.length>1;if(e>0){const s=[...t];s[s.length-1]=e-1;const i=this._getItemByPath(s);let o=i;if(i?.open&&i.subItems?.length){const{subItems:t}=i;o=t[t.length-1]}this._focusItem(o)}else if(s){const e=[...t];e.pop(),this._focusItem(this._getItemByPath(e))}}else this._focusItem(this._data[0])}_focusNextItem(){if(!this._focusedItem)return void this._focusItem(this._data[0]);const{path:t,open:e}=this._focusedItem;if(e&&Array.isArray(this._focusedItem.subItems)&&this._focusedItem.subItems.length>0)return void this._focusItem(this._focusedItem.subItems[0]);const s=[...t];s[s.length-1]+=1;let i=this._getItemByPath(s);i?this._focusItem(i):(s.pop(),s.length>0&&(s[s.length-1]+=1,i=this._getItemByPath(s),i&&this._focusItem(i)))}_handleClick(t){const e=t.composedPath().find((t=>t.tagName&&"LI"===t.tagName.toUpperCase()));if(e){const t=(e.dataset.path||"").split("/").map((t=>Number(t))),s=this._getItemByPath(t);this._selectItem(s)}else this._focusedItem&&(this._focusedItem.focused=!1),this._focusedItem=null}_handleComponentKeyDown(t){const e=t.key;[" ","ArrowDown","ArrowUp","Enter","Escape"].includes(t.key)&&(t.stopPropagation(),t.preventDefault()),"Escape"===e&&(this._focusedItem=null),"ArrowUp"===e&&this._focusPrevItem(),"ArrowDown"===e&&this._focusNextItem(),"Enter"!==e&&" "!==e||this._focusedItem&&this._selectItem(this._focusedItem)}render(){const t=At({multi:this.multiline,single:!this.multiline,wrapper:!0,"has-not-focused-item":!this._focusedItem,"selection-none":!this._selectedItem,"selection-single":null!==this._selectedItem});return U`
|
|
2715
|
-
<div @click=${this._handleClick} class=${t}>
|
|
2716
|
-
<ul>
|
|
2717
|
-
${this._renderTree(this._data)}
|
|
2718
|
-
</ul>
|
|
2719
2940
|
</div>
|
|
2720
|
-
|
|
2941
|
+
<div
|
|
2942
|
+
class=${Mt(a)}
|
|
2943
|
+
.style=${Dt({"--indentation-guide-left":`${n}px`})}
|
|
2944
|
+
role="group"
|
|
2945
|
+
part="children"
|
|
2946
|
+
>
|
|
2947
|
+
<slot
|
|
2948
|
+
name="children"
|
|
2949
|
+
@slotchange=${this._handleChildrenSlotChange}
|
|
2950
|
+
></slot>
|
|
2951
|
+
</div>
|
|
2952
|
+
</div>`}};Rs.styles=Ds,Fs([pt({type:Boolean})],Rs.prototype,"active",void 0),Fs([pt({type:Boolean,reflect:!0})],Rs.prototype,"branch",void 0),Fs([pt({type:Boolean})],Rs.prototype,"hasActiveItem",void 0),Fs([pt({type:Boolean})],Rs.prototype,"hasSelectedItem",void 0),Fs([pt({type:Boolean})],Rs.prototype,"highlightedGuides",void 0),Fs([pt({type:Boolean,reflect:!0})],Rs.prototype,"open",void 0),Fs([pt({type:Number,reflect:!0})],Rs.prototype,"level",void 0),Fs([pt({type:Boolean,reflect:!0})],Rs.prototype,"selected",null),Fs([bt()],Rs.prototype,"_hasBranchIcon",void 0),Fs([bt()],Rs.prototype,"_hasBranchOpenedIcon",void 0),Fs([bt()],Rs.prototype,"_hasLeafIcon",void 0),Fs([ms({context:ys,subscribe:!0})],Rs.prototype,"_treeContextState",void 0),Fs([ms({context:ws,subscribe:!0})],Rs.prototype,"_configContext",void 0),Fs([xt({selector:"vscode-tree-item"})],Rs.prototype,"_initiallyAssignedTreeItems",void 0),Fs([xt({selector:"vscode-tree-item",slot:"children"})],Rs.prototype,"_childrenTreeItems",void 0),Rs=Fs([dt("vscode-tree-item")],Rs);export{Ot as VscodeBadge,Ut as VscodeButton,qt as VscodeButtonGroup,te as VscodeCheckbox,se as VscodeCheckboxGroup,ne as VscodeCollapsible,ue as VscodeContextMenu,ae as VscodeContextMenuItem,be as VscodeDivider,we as VscodeFormContainer,_e as VscodeFormGroup,Oe as VscodeFormHelper,Rt as VscodeIcon,je as VscodeLabel,ni as VscodeMultiSelect,He as VscodeOption,ai as VscodeProgressRing,ui as VscodeRadio,bi as VscodeRadioGroup,ti as VscodeScrollable,gi as VscodeSingleSelect,_i as VscodeSplitLayout,Bi as VscodeTabHeader,Ai as VscodeTabPanel,Ji as VscodeTable,ji as VscodeTableBody,Di as VscodeTableCell,Ni as VscodeTableHeader,Li as VscodeTableHeaderCell,Hi as VscodeTableRow,Zi as VscodeTabs,es as VscodeTextarea,rs as VscodeTextfield,hs as VscodeToolbarButton,ds as VscodeToolbarContainer,Ps as VscodeTree,Rs as VscodeTreeItem};
|