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.cjs
CHANGED
|
@@ -9220,7 +9220,7 @@
|
|
|
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([(0,Ie.property)({attribute:!1})],Xt.prototype,"items",2),a([(0,Ie.property)()],Xt.prototype,"separator",2),a([(0,Ie.property)({reflect:!0})],Xt.prototype,"size",2),a([(0,Ie.property)({attribute:"current-key"})],Xt.prototype,"currentKey",2),a([(0,Ie.property)({type:Number,attribute:"max-items"})],Xt.prototype,"maxItems",2),a([(0,Ie.property)({reflect:!0})],Xt.prototype,"collapse",2),a([(0,Ie.property)({attribute:"collapsed-label"})],Xt.prototype,"collapsedLabel",2),a([(0,Ie.property)({attribute:"overflow-icon"})],Xt.prototype,"overflowIcon",2),a([(0,Ie.property)({attribute:"overflow-label"})],Xt.prototype,"overflowLabel",2),a([(0,Ie.property)({type:Boolean,reflect:!0})],Xt.prototype,"disabled",2),a([(0,Ie.property)({attribute:"aria-label"})],Xt.prototype,"ariaLabel",2),a([(0,Ie.queryAssignedElements)({flatten:!0})],Xt.prototype,"_assignedElements",2),a([(0,Ie.query)("ol")],Xt.prototype,"_listEl",2),a([(0,Ie.state)()],Xt.prototype,"_overflowIndexes",2),Xt=a([(0,Ie.customElement)("lui-breadcrumb")],Xt);var Gi=require("lit"),Mr=require("lit/decorators.js");var md=[["xl",1200],["lg",992],["md",768],["sm",576],["xs",0]],kg={top:"flex-start",middle:"center",bottom:"flex-end",stretch:"stretch"},yg={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between","space-evenly":"space-evenly"};function xg(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 wg(i,o,e){i.getPropertyValue(o)!==e&&i.setProperty(o,e)}function go(i,o,e){let t=i;t[o]!==e&&(t[o]=e)}var ti=class extends Gi.LitElement{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([(0,Ie.property)({attribute:!1})],Xt.prototype,"items",2),a([(0,Ie.property)()],Xt.prototype,"separator",2),a([(0,Ie.property)({reflect:!0})],Xt.prototype,"size",2),a([(0,Ie.property)({attribute:"current-key"})],Xt.prototype,"currentKey",2),a([(0,Ie.property)({type:Number,attribute:"max-items"})],Xt.prototype,"maxItems",2),a([(0,Ie.property)({reflect:!0})],Xt.prototype,"collapse",2),a([(0,Ie.property)({attribute:"collapsed-label"})],Xt.prototype,"collapsedLabel",2),a([(0,Ie.property)({attribute:"overflow-icon"})],Xt.prototype,"overflowIcon",2),a([(0,Ie.property)({attribute:"overflow-label"})],Xt.prototype,"overflowLabel",2),a([(0,Ie.property)({type:Boolean,reflect:!0})],Xt.prototype,"disabled",2),a([(0,Ie.property)({attribute:"aria-label"})],Xt.prototype,"ariaLabel",2),a([(0,Ie.queryAssignedElements)({flatten:!0})],Xt.prototype,"_assignedElements",2),a([(0,Ie.query)("ol")],Xt.prototype,"_listEl",2),a([(0,Ie.state)()],Xt.prototype,"_overflowIndexes",2),Xt=a([(0,Ie.customElement)("lui-breadcrumb")],Xt);var Gi=require("lit"),Mr=require("lit/decorators.js");var md=[["xl",1200],["lg",992],["md",768],["sm",576],["xs",0]],kg={top:"flex-start",middle:"center",bottom:"flex-end",stretch:"stretch"},yg={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between","space-evenly":"space-evenly"};function xg(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 wg(i,o,e){i.getPropertyValue(o)!==e&&i.setProperty(o,e)}function go(i,o,e){let t=i;t[o]!==e&&(t[o]=e)}var ti=class extends Gi.LitElement{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;go(r,"flexWrap",this.nowrap?"nowrap":"wrap"),go(r,"alignItems",kg[this.align]??"flex-start"),go(r,"justifyContent",yg[this.justify]??"flex-start"),go(r,"marginLeft",e?`-${e/2}px`:""),go(r,"marginRight",e?`-${e/2}px`:""),wg(r,"--_gutter-h",e?`${e/2}px`:"0px"),go(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 Gi.html`<slot @slotchange=${this._scheduleLayout}></slot>`}};ti.styles=[A,Gi.css`
|
|
9224
9224
|
:host {
|
|
9225
9225
|
display: flex;
|
|
9226
9226
|
flex-wrap: wrap;
|
|
@@ -9230,7 +9230,7 @@
|
|
|
9230
9230
|
slot {
|
|
9231
9231
|
display: contents;
|
|
9232
9232
|
}
|
|
9233
|
-
`],a([(0,Mr.property)({converter:xg})],ti.prototype,"gutter",2),a([(0,Mr.property)()],ti.prototype,"align",2),a([(0,Mr.property)()],ti.prototype,"justify",2),a([(0,Mr.property)({type:Boolean})],ti.prototype,"nowrap",2),a([(0,Mr.queryAssignedElements)({flatten:!0})],ti.prototype,"_assignedElements",2),ti=a([(0,Mr.customElement)("lui-row")],ti);var mo=class extends Gi.LitElement{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([(0,Mr.property)({converter:xg})],ti.prototype,"gutter",2),a([(0,Mr.property)()],ti.prototype,"align",2),a([(0,Mr.property)()],ti.prototype,"justify",2),a([(0,Mr.property)({type:Boolean})],ti.prototype,"nowrap",2),a([(0,Mr.queryAssignedElements)({flatten:!0})],ti.prototype,"_assignedElements",2),ti=a([(0,Mr.customElement)("lui-row")],ti);var mo=class extends Gi.LitElement{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 md.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){go(s,"display","none"),go(s,"flex",""),go(s,"maxWidth",""),go(s,"marginLeft","");return}let d=`${Math.min(24,Math.max(0,n))/24*100}%`;go(s,"display","block"),go(s,"flex",`0 0 ${d}`),go(s,"maxWidth",d),go(s,"marginLeft",this.offset!=null?`${this.offset/24*100}%`:""),go(s,"order",this.colOrder!=null?String(this.colOrder):"")}render(){return Gi.html`<slot></slot>`}};mo.styles=[A,Gi.css`
|
|
9234
9234
|
:host {
|
|
9235
9235
|
display: block;
|
|
9236
9236
|
box-sizing: border-box;
|