lituix 0.1.18 → 0.1.19
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/components.json +1 -1
- package/dist/components/lui-row.d.ts.map +1 -1
- package/dist/index.browser.js +2 -2
- package/dist/index.browser.js.map +2 -2
- package/dist/index.cjs +2 -2
- package/dist/index.cjs.map +2 -2
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +2 -2
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -9220,7 +9220,7 @@ var B2=Object.create;var ms=Object.defineProperty;var ah=Object.getOwnPropertyDe
|
|
|
9220
9220
|
--lui-breadcrumb-font-size: var(--lui-breadcrumb-font-size);
|
|
9221
9221
|
--lui-breadcrumb-link-height: var(--lui-breadcrumb-link-height);
|
|
9222
9222
|
}
|
|
9223
|
-
`],a([ut({attribute:!1})],Mt.prototype,"items",2),a([ut()],Mt.prototype,"separator",2),a([ut({reflect:!0})],Mt.prototype,"size",2),a([ut({attribute:"current-key"})],Mt.prototype,"currentKey",2),a([ut({type:Number,attribute:"max-items"})],Mt.prototype,"maxItems",2),a([ut({reflect:!0})],Mt.prototype,"collapse",2),a([ut({attribute:"collapsed-label"})],Mt.prototype,"collapsedLabel",2),a([ut({attribute:"overflow-icon"})],Mt.prototype,"overflowIcon",2),a([ut({attribute:"overflow-label"})],Mt.prototype,"overflowLabel",2),a([ut({type:Boolean,reflect:!0})],Mt.prototype,"disabled",2),a([ut({attribute:"aria-label"})],Mt.prototype,"ariaLabel",2),a([hk({flatten:!0})],Mt.prototype,"_assignedElements",2),a([uk("ol")],Mt.prototype,"_listEl",2),a([pk()],Mt.prototype,"_overflowIndexes",2),Mt=a([I1("lui-breadcrumb")],Mt);import{css as V1,html as D1,LitElement as F1}from"lit";import{customElement as N1,property as ro,queryAssignedElements as gk}from"lit/decorators.js";var L1=[["xl",1200],["lg",992],["md",768],["sm",576],["xs",0]],fk={top:"flex-start",middle:"center",bottom:"flex-end",stretch:"stretch"},vk={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between","space-evenly":"space-evenly"};function bk(i){if(!i)return 0;try{let o=JSON.parse(i);return Array.isArray(o)?[Number(o[0])||0,Number(o[1])||0]:Number(o)||0}catch{return Number(i)||0}}function kk(i,o,e){i.getPropertyValue(o)!==e&&i.setProperty(o,e)}function wr(i,o,e){let t=i;t[o]!==e&&(t[o]=e)}var Mo=class extends F1{constructor(){super(...arguments);this.gutter=0;this.align="top";this.justify="start";this.nowrap=!1;this._ro=null;this._layoutFrame=0;this._lastWidth=-1}get _h(){return Array.isArray(this.gutter)?this.gutter[0]:this.gutter}get _v(){return Array.isArray(this.gutter)?this.gutter[1]:0}connectedCallback(){super.connectedCallback(),this._ro=new ResizeObserver(()=>this.
|
|
9223
|
+
`],a([ut({attribute:!1})],Mt.prototype,"items",2),a([ut()],Mt.prototype,"separator",2),a([ut({reflect:!0})],Mt.prototype,"size",2),a([ut({attribute:"current-key"})],Mt.prototype,"currentKey",2),a([ut({type:Number,attribute:"max-items"})],Mt.prototype,"maxItems",2),a([ut({reflect:!0})],Mt.prototype,"collapse",2),a([ut({attribute:"collapsed-label"})],Mt.prototype,"collapsedLabel",2),a([ut({attribute:"overflow-icon"})],Mt.prototype,"overflowIcon",2),a([ut({attribute:"overflow-label"})],Mt.prototype,"overflowLabel",2),a([ut({type:Boolean,reflect:!0})],Mt.prototype,"disabled",2),a([ut({attribute:"aria-label"})],Mt.prototype,"ariaLabel",2),a([hk({flatten:!0})],Mt.prototype,"_assignedElements",2),a([uk("ol")],Mt.prototype,"_listEl",2),a([pk()],Mt.prototype,"_overflowIndexes",2),Mt=a([I1("lui-breadcrumb")],Mt);import{css as V1,html as D1,LitElement as F1}from"lit";import{customElement as N1,property as ro,queryAssignedElements as gk}from"lit/decorators.js";var L1=[["xl",1200],["lg",992],["md",768],["sm",576],["xs",0]],fk={top:"flex-start",middle:"center",bottom:"flex-end",stretch:"stretch"},vk={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between","space-evenly":"space-evenly"};function bk(i){if(!i)return 0;try{let o=JSON.parse(i);return Array.isArray(o)?[Number(o[0])||0,Number(o[1])||0]:Number(o)||0}catch{return Number(i)||0}}function kk(i,o,e){i.getPropertyValue(o)!==e&&i.setProperty(o,e)}function wr(i,o,e){let t=i;t[o]!==e&&(t[o]=e)}var Mo=class extends F1{constructor(){super(...arguments);this.gutter=0;this.align="top";this.justify="start";this.nowrap=!1;this._ro=null;this._layoutFrame=0;this._lastWidth=-1}get _h(){return Array.isArray(this.gutter)?this.gutter[0]:this.gutter}get _v(){return Array.isArray(this.gutter)?this.gutter[1]:0}connectedCallback(){super.connectedCallback(),this._ro=new ResizeObserver(()=>this._layout()),this._ro.observe(this)}disconnectedCallback(){this._ro?.disconnect(),this._ro=null,this._layoutFrame&&cancelAnimationFrame(this._layoutFrame),super.disconnectedCallback()}firstUpdated(){this._scheduleLayout()}updated(){this._scheduleLayout()}_scheduleLayout(){this._layoutFrame&&cancelAnimationFrame(this._layoutFrame),this._layoutFrame=requestAnimationFrame(()=>{this._layoutFrame=0,this._layout()})}_syncCols(e){for(let t of this._assignedElements??[])t.tagName.toLowerCase()==="lui-col"&&t.updateLayout(e)}_layout(){let e=Number(this._h)||0,t=Number(this._v)||0,r=this.style;wr(r,"flexWrap",this.nowrap?"nowrap":"wrap"),wr(r,"alignItems",fk[this.align]??"flex-start"),wr(r,"justifyContent",vk[this.justify]??"flex-start"),wr(r,"marginLeft",e?`-${e/2}px`:""),wr(r,"marginRight",e?`-${e/2}px`:""),kk(r,"--_gutter-h",e?`${e/2}px`:"0px"),wr(r,"rowGap",t?`${t}px`:"");let n=Math.floor(this.getBoundingClientRect().width||this.offsetWidth||0);n!==this._lastWidth?(this._lastWidth=n,this._syncCols(n)):this._syncCols(n)}render(){return D1`<slot @slotchange=${this._scheduleLayout}></slot>`}};Mo.styles=[A,V1`
|
|
9224
9224
|
:host {
|
|
9225
9225
|
display: flex;
|
|
9226
9226
|
flex-wrap: wrap;
|
|
@@ -9230,7 +9230,7 @@ var B2=Object.create;var ms=Object.defineProperty;var ah=Object.getOwnPropertyDe
|
|
|
9230
9230
|
slot {
|
|
9231
9231
|
display: contents;
|
|
9232
9232
|
}
|
|
9233
|
-
`],a([ro({converter:bk})],Mo.prototype,"gutter",2),a([ro()],Mo.prototype,"align",2),a([ro()],Mo.prototype,"justify",2),a([ro({type:Boolean})],Mo.prototype,"nowrap",2),a([gk({flatten:!0})],Mo.prototype,"_assignedElements",2),Mo=a([N1("lui-row")],Mo);var Ir=class extends F1{constructor(){super(...arguments);this._parentRo=null;this._layoutFrame=0;this._lastContainerWidth=-1}connectedCallback(){super.connectedCallback();let e=this.closest("lui-row");e&&(this._parentRo=new ResizeObserver(()=>this.
|
|
9233
|
+
`],a([ro({converter:bk})],Mo.prototype,"gutter",2),a([ro()],Mo.prototype,"align",2),a([ro()],Mo.prototype,"justify",2),a([ro({type:Boolean})],Mo.prototype,"nowrap",2),a([gk({flatten:!0})],Mo.prototype,"_assignedElements",2),Mo=a([N1("lui-row")],Mo);var Ir=class extends F1{constructor(){super(...arguments);this._parentRo=null;this._layoutFrame=0;this._lastContainerWidth=-1}connectedCallback(){super.connectedCallback();let e=this.closest("lui-row");e&&(this._parentRo=new ResizeObserver(()=>this._applySpan()),this._parentRo.observe(e)),this._scheduleApply()}disconnectedCallback(){this._parentRo?.disconnect(),this._parentRo=null,this._layoutFrame&&cancelAnimationFrame(this._layoutFrame),super.disconnectedCallback()}updated(){this._scheduleApply()}updateLayout(e){e!=null&&(this._lastContainerWidth=Math.max(0,Math.floor(e))),this._applySpan()}_scheduleApply(){this._layoutFrame&&cancelAnimationFrame(this._layoutFrame),this._layoutFrame=requestAnimationFrame(()=>{this._layoutFrame=0,this._applySpan()})}_activeBreakpoint(e){return L1.find(([,t])=>e>=t)?.[0]??"xs"}_resolveSpan(e){return this[e]??this.span??24}_applySpan(){let e=this.closest("lui-row"),t=this._lastContainerWidth>=0?this._lastContainerWidth:Math.floor(e?.getBoundingClientRect().width||e?.offsetWidth||0),r=this._activeBreakpoint(t),n=this._resolveSpan(r),s=this.style;if(!Number.isFinite(n)||n<=0){wr(s,"display","none"),wr(s,"flex",""),wr(s,"maxWidth",""),wr(s,"marginLeft","");return}let d=`${Math.min(24,Math.max(0,n))/24*100}%`;wr(s,"display","block"),wr(s,"flex",`0 0 ${d}`),wr(s,"maxWidth",d),wr(s,"marginLeft",this.offset!=null?`${this.offset/24*100}%`:""),wr(s,"order",this.colOrder!=null?String(this.colOrder):"")}render(){return D1`<slot></slot>`}};Ir.styles=[A,V1`
|
|
9234
9234
|
:host {
|
|
9235
9235
|
display: block;
|
|
9236
9236
|
box-sizing: border-box;
|