1import{dxDropDownTagName as t}from"./dropdown-f1ccc23d.js";import{a as o,b as e,n as s}from"./popup-826a996d.js";import{_ as r}from"./tslib.es6-d65164b3.js";import{s as i,i as l,x as a}from"./lit-element-462e7ad3.js";import{n as p}from"./property-4ec0b52d.js";import{e as n}from"./custom-element-267f9a21.js";import{dxBranchTagName as d}from"./branch-8aad40ac.js";import{D as m}from"./popupportal-e116a31b.js";import{d as h}from"./events-interseptor-a522582a.js";const b="dxbl-dropdown-root";let c=class extends i{constructor(){super(...arguments),this.topLeftClass=null,this.topRightClass=null,this.bottomLeftClass=null,this.bottomRightClass=null,this.dropOpposite=!1,this.dropDirection=o.Near,this.dropAlignment=e.bottom,this.resizing=!1}static get styles(){return l` 2 :host { 3 display: flex; 4 position: relative; 5 flex: 1 1 auto; 6 flex-direction: column; 7 box-sizing: border-box; 8 min-height: 0; 9 } 10 .hidden { 11 display: none; 12 } 13 ::slotted([slot="top-right"]) { 14 position: absolute; 15 z-index: 1001; 16 top: 0px; 17 right: 0px; 18 transform: rotate(270deg); 19 cursor: ne-resize; 20 } 21 ::slotted([slot="top-left"]) { 22 position: absolute; 23 z-index: 1001; 24 top: 0px; 25 left: 0px; 26 transform: rotate(180deg); 27 cursor: nw-resize; 28 } 29 ::slotted([slot="bottom-left"]) { 30 position: absolute; 31 z-index: 1001; 32 bottom: 0px; 33 left: 0px; 34 transform: rotate(90deg); 35 cursor: sw-resize; 36 } 37 ::slotted([slot="bottom-right"]) { 38 position: absolute; 39 z-index: 1001; 40 bottom: 0px; 41 right: 0px; 42 cursor: se-resize; 43 transform: rotate(0deg); 44 } 45 }`}connectedCallback(){super.connectedCallback(),this.calculateStyles(this.resizing,this.dropAlignment,this.dropDirection)}willUpdate(t){(t.has("dropAlignment")||t.has("dropDirection")||t.has("resizing"))&&this.calculateStyles(this.resizing,this.dropAlignment,this.dropDirection)}calculateStyles(t,s,r){this.topLeftClass=t&&s===e.top&&r===o.Far?null:"hidden",this.topRightClass=t&&s===e.top&&r===o.Near?null:"hidden",this.bottomLeftClass=t&&s===e.bottom&&r===o.Far?null:"hidden",this.bottomRightClass=t&&s===e.bottom&&r===o.Near?null:"hidden"}render(){return a` 46 <slot></slot> 47 <dxbl-thumb data-qa-thumb-location="top-left" data-dropdown-thumb class="${this.topLeftClass}"> 48 <slot name="top-left"></slot> 49 </dxbl-thumb> 50 <dxbl-thumb data-qa-thumb-location="top-right" data-dropdown-thumb class="${this.topRightClass}"> 51 <slot name="top-right"></slot> 52 </dxbl-thumb> 53 <dxbl-thumb data-qa-thumb-location="bottom-left" data-dropdown-thumb class="${this.bottomLeftClass}"> 54 <slot name="bottom-left"></slot> 55 </dxbl-thumb> 56 <dxbl-thumb data-qa-thumb-location="bottom-right" data-dropdown-thumb class="${this.bottomRightClass}"> 57 <slot name="bottom-right"></slot> 58 </dxbl-thumb>`}};r([p({type:String,reflect:!1})],c.prototype,"topLeftClass",void 0),r([p({type:String,reflect:!1})],c.prototype,"topRightClass",void 0),r([p({type:String,reflect:!1})],c.prototype,"bottomLeftClass",void 0),r([p({type:String,reflect:!1})],c.prototype,"bottomRightClass",void 0),r([p({type:Object,attribute:"drop-opposite"})],c.prototype,"dropOpposite",void 0),r([p({type:String,attribute:"drop-direction"})],c.prototype,"dropDirection",void 0),r([p({type:String,attribute:"drop-alignment"})],c.prototype,"dropAlignment",void 0),r([p({type:Boolean,attribute:"resizing"})],c.prototype,"resizing",void 0),c=r([n(b)],c);const u=[t,s,b,d,m,h];function f(t){if(!t)throw new Error("failed");return t}const g=Object.freeze({__proto__:null,registeredComponents:u,getReference:f,default:{getReference:f,registeredComponents:u}});export{c as D,g as d,u as r};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.