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 CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$comment": "Generated by scripts/generate-llm-docs.mjs from source. Do not edit by hand; run pnpm docs:llm.",
3
3
  "package": "lituix",
4
- "version": "0.1.18",
4
+ "version": "0.1.19",
5
5
  "generatedFrom": {
6
6
  "components": "src/components",
7
7
  "stories": "stories"
@@ -1 +1 @@
1
- {"version":3,"file":"lui-row.d.ts","sourceRoot":"","sources":["../../src/components/lui-row.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,UAAU,EAAW,MAAM,KAAK,CAAC;AAIrD,MAAM,MAAM,QAAQ,GAAG,KAAK,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,CAAC;AAC/D,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,KAAK,GAAG,QAAQ,GAAG,cAAc,GAAG,eAAe,GAAG,cAAc,CAAC;AACxG,MAAM,MAAM,MAAM,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AAC/C,MAAM,MAAM,aAAa,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7D,eAAO,MAAM,EAAE,EAAE,KAAK,CAAC,CAAC,aAAa,EAAE,MAAM,CAAC,CAM7C,CAAC;AAwCF,qBACa,MAAO,SAAQ,UAAU;IACpC,MAAM,CAAC,MAAM,4BAaX;IAGF,MAAM,EAAE,MAAM,CAAK;IAEP,KAAK,EAAE,QAAQ,CAAS;IACxB,OAAO,EAAE,UAAU,CAAW;IACb,MAAM,UAAS;IAG5C,OAAO,CAAC,iBAAiB,CAAiB;IAE1C,OAAO,CAAC,GAAG,CAA+B;IAC1C,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,UAAU,CAAM;IAExB,OAAO,KAAK,EAAE,GAAwE;IAC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AAE,CAAC,EAAE,MAAM,CAAC;IACZ,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IACI,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElE,OAAO,CAAC,SAAS,CAA+B;IAChD,OAAO,CAAC,YAAY,CAAK;IACzB,OAAO,CAAC,mBAAmB,CAAM;IAEjC,iBAAiB,IAAI,IAAI;IAUzB,oBAAoB,IAAI,IAAI;IAO5B,SAAS,CAAC,OAAO,IAAI,IAAI;IAIzB,YAAY,CAAC,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI;IAO3C,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,YAAY;IAKpB,OAAO,CAAC,UAAU;IAyBlB,MAAM;CAGP;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KACnB;CACF"}
@@ -9222,7 +9222,7 @@
9222
9222
  --lui-breadcrumb-font-size: var(--lui-breadcrumb-font-size);
9223
9223
  --lui-breadcrumb-link-height: var(--lui-breadcrumb-link-height);
9224
9224
  }
9225
- `],s([h({attribute:!1})],Rt.prototype,"items",2),s([h()],Rt.prototype,"separator",2),s([h({reflect:!0})],Rt.prototype,"size",2),s([h({attribute:"current-key"})],Rt.prototype,"currentKey",2),s([h({type:Number,attribute:"max-items"})],Rt.prototype,"maxItems",2),s([h({reflect:!0})],Rt.prototype,"collapse",2),s([h({attribute:"collapsed-label"})],Rt.prototype,"collapsedLabel",2),s([h({attribute:"overflow-icon"})],Rt.prototype,"overflowIcon",2),s([h({attribute:"overflow-label"})],Rt.prototype,"overflowLabel",2),s([h({type:Boolean,reflect:!0})],Rt.prototype,"disabled",2),s([h({attribute:"aria-label"})],Rt.prototype,"ariaLabel",2),s([Or({flatten:!0})],Rt.prototype,"_assignedElements",2),s([G("ol")],Rt.prototype,"_listEl",2),s([Y()],Rt.prototype,"_overflowIndexes",2),Rt=s([N("lui-breadcrumb")],Rt);var gu=[["xl",1200],["lg",992],["md",768],["sm",576],["xs",0]],pb={top:"flex-start",middle:"center",bottom:"flex-end",stretch:"stretch"},mb={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between","space-evenly":"space-evenly"};function fb(o){if(!o)return 0;try{let r=JSON.parse(o);return Array.isArray(r)?[Number(r[0])||0,Number(r[1])||0]:Number(r)||0}catch{return Number(o)||0}}function gb(o,r,e){o.getPropertyValue(r)!==e&&o.setProperty(r,e)}function $r(o,r,e){let t=o;t[r]!==e&&(t[r]=e)}var so=class extends L{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._scheduleLayout()),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,i=this.style;$r(i,"flexWrap",this.nowrap?"nowrap":"wrap"),$r(i,"alignItems",pb[this.align]??"flex-start"),$r(i,"justifyContent",mb[this.justify]??"flex-start"),$r(i,"marginLeft",e?`-${e/2}px`:""),$r(i,"marginRight",e?`-${e/2}px`:""),gb(i,"--_gutter-h",e?`${e/2}px`:"0px"),$r(i,"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 v`<slot @slotchange=${this._scheduleLayout}></slot>`}};so.styles=[B,F`
9225
+ `],s([h({attribute:!1})],Rt.prototype,"items",2),s([h()],Rt.prototype,"separator",2),s([h({reflect:!0})],Rt.prototype,"size",2),s([h({attribute:"current-key"})],Rt.prototype,"currentKey",2),s([h({type:Number,attribute:"max-items"})],Rt.prototype,"maxItems",2),s([h({reflect:!0})],Rt.prototype,"collapse",2),s([h({attribute:"collapsed-label"})],Rt.prototype,"collapsedLabel",2),s([h({attribute:"overflow-icon"})],Rt.prototype,"overflowIcon",2),s([h({attribute:"overflow-label"})],Rt.prototype,"overflowLabel",2),s([h({type:Boolean,reflect:!0})],Rt.prototype,"disabled",2),s([h({attribute:"aria-label"})],Rt.prototype,"ariaLabel",2),s([Or({flatten:!0})],Rt.prototype,"_assignedElements",2),s([G("ol")],Rt.prototype,"_listEl",2),s([Y()],Rt.prototype,"_overflowIndexes",2),Rt=s([N("lui-breadcrumb")],Rt);var gu=[["xl",1200],["lg",992],["md",768],["sm",576],["xs",0]],pb={top:"flex-start",middle:"center",bottom:"flex-end",stretch:"stretch"},mb={start:"flex-start",end:"flex-end",center:"center","space-around":"space-around","space-between":"space-between","space-evenly":"space-evenly"};function fb(o){if(!o)return 0;try{let r=JSON.parse(o);return Array.isArray(r)?[Number(r[0])||0,Number(r[1])||0]:Number(r)||0}catch{return Number(o)||0}}function gb(o,r,e){o.getPropertyValue(r)!==e&&o.setProperty(r,e)}function $r(o,r,e){let t=o;t[r]!==e&&(t[r]=e)}var so=class extends L{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,i=this.style;$r(i,"flexWrap",this.nowrap?"nowrap":"wrap"),$r(i,"alignItems",pb[this.align]??"flex-start"),$r(i,"justifyContent",mb[this.justify]??"flex-start"),$r(i,"marginLeft",e?`-${e/2}px`:""),$r(i,"marginRight",e?`-${e/2}px`:""),gb(i,"--_gutter-h",e?`${e/2}px`:"0px"),$r(i,"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 v`<slot @slotchange=${this._scheduleLayout}></slot>`}};so.styles=[B,F`
9226
9226
  :host {
9227
9227
  display: flex;
9228
9228
  flex-wrap: wrap;
@@ -9232,7 +9232,7 @@
9232
9232
  slot {
9233
9233
  display: contents;
9234
9234
  }
9235
- `],s([h({converter:fb})],so.prototype,"gutter",2),s([h()],so.prototype,"align",2),s([h()],so.prototype,"justify",2),s([h({type:Boolean})],so.prototype,"nowrap",2),s([Or({flatten:!0})],so.prototype,"_assignedElements",2),so=s([N("lui-row")],so);var Tr=class extends L{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._scheduleApply()),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._scheduleApply()}_scheduleApply(){this._layoutFrame&&cancelAnimationFrame(this._layoutFrame),this._layoutFrame=requestAnimationFrame(()=>{this._layoutFrame=0,this._applySpan()})}_activeBreakpoint(e){return gu.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),i=this._activeBreakpoint(t),n=this._resolveSpan(i),a=this.style;if(!Number.isFinite(n)||n<=0){$r(a,"display","none"),$r(a,"flex",""),$r(a,"maxWidth",""),$r(a,"marginLeft","");return}let l=`${Math.min(24,Math.max(0,n))/24*100}%`;$r(a,"display","block"),$r(a,"flex",`0 0 ${l}`),$r(a,"maxWidth",l),$r(a,"marginLeft",this.offset!=null?`${this.offset/24*100}%`:""),$r(a,"order",this.colOrder!=null?String(this.colOrder):"")}render(){return v`<slot></slot>`}};Tr.styles=[B,F`
9235
+ `],s([h({converter:fb})],so.prototype,"gutter",2),s([h()],so.prototype,"align",2),s([h()],so.prototype,"justify",2),s([h({type:Boolean})],so.prototype,"nowrap",2),s([Or({flatten:!0})],so.prototype,"_assignedElements",2),so=s([N("lui-row")],so);var Tr=class extends L{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 gu.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),i=this._activeBreakpoint(t),n=this._resolveSpan(i),a=this.style;if(!Number.isFinite(n)||n<=0){$r(a,"display","none"),$r(a,"flex",""),$r(a,"maxWidth",""),$r(a,"marginLeft","");return}let l=`${Math.min(24,Math.max(0,n))/24*100}%`;$r(a,"display","block"),$r(a,"flex",`0 0 ${l}`),$r(a,"maxWidth",l),$r(a,"marginLeft",this.offset!=null?`${this.offset/24*100}%`:""),$r(a,"order",this.colOrder!=null?String(this.colOrder):"")}render(){return v`<slot></slot>`}};Tr.styles=[B,F`
9236
9236
  :host {
9237
9237
  display: block;
9238
9238
  box-sizing: border-box;