@synnaxlabs/pluto 0.35.1 → 0.35.2
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/dist/{Animated-D4IT49PS.cjs → Animated-B3meZ8Go.cjs} +1 -1
- package/dist/{Animated-C7JTBH0T.js → Animated-BMxljHxY.js} +1 -1
- package/dist/{Item-4yG7GmwK.js → Item-C3mh5Jo-.js} +3 -3
- package/dist/{Item-DuYEON-n.cjs → Item-DsAGorI8.cjs} +1 -1
- package/dist/{Keyboard-BPoxRive.cjs → Keyboard-D-76mv1a.cjs} +1 -1
- package/dist/{Keyboard-Csje8Cyn.js → Keyboard-DbyeBAzq.js} +1 -1
- package/dist/{Link-Crud0q_J.js → Link-By1w1FIv.js} +1 -1
- package/dist/{Link-BRv9hhIc.cjs → Link-C-KaB73i.cjs} +1 -1
- package/dist/{List-Pyj0u9YT.cjs → List-CZxRbYfm.cjs} +1 -1
- package/dist/{List-Cuz80sgI.js → List-S1wnpuEv.js} +1 -1
- package/dist/{Text-BJ2Pml4B.cjs → Text-Bq9B_1wQ.cjs} +1 -1
- package/dist/{Text-DMMYBs-R.js → Text-tqSP4klc.js} +2 -2
- package/dist/{Toggle-CLkPIiQK.js → Toggle-DcPmH9Uq.js} +4364 -4357
- package/dist/{Toggle-DnW_7Wr_.cjs → Toggle-DrfPMqBr.cjs} +30 -30
- package/dist/button.cjs +1 -1
- package/dist/button.js +1 -1
- package/dist/color.cjs +1 -1
- package/dist/color.js +1 -1
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/{external-BV_9eXZJ.cjs → external-1M4_dCzb.cjs} +1 -1
- package/dist/{external-CqLAQBcO.cjs → external-8wTAbTHd.cjs} +1 -1
- package/dist/{external-iiNZw96o.cjs → external-BEwtU2Lv.cjs} +1 -1
- package/dist/{external-Ctvxtwfh.cjs → external-BFHPc8Ng.cjs} +1 -1
- package/dist/{external-CgpiH-10.js → external-BRbXi-YB.js} +2 -2
- package/dist/{external-Cgq0p0a8.js → external-BeFZRZSq.js} +4 -4
- package/dist/{external-ZxIaRZdb.cjs → external-Brk-4hys.cjs} +1 -1
- package/dist/{external-D-PsJ1E5.cjs → external-Bwu7ljGW.cjs} +1 -1
- package/dist/{external-DAbicix6.js → external-BzRCbp_C.js} +1 -1
- package/dist/{external-Ci-UP3Vu.js → external-CDXLxcOI.js} +2 -2
- package/dist/{external-BZwFy-XX.js → external-CDYYyyoJ.js} +1 -1
- package/dist/{external-Cf5a9Ia8.js → external-CTvBPOgF.js} +2 -2
- package/dist/{external-De9tKPlO.js → external-CY1bjqlD.js} +2 -2
- package/dist/{external-t43feeRt.cjs → external-CxBbtPtX.cjs} +1 -1
- package/dist/{external-DVF3ZJ4z.js → external-D08DFJfB.js} +1 -1
- package/dist/{external-3DAfrFCZ.cjs → external-DOQ51UTh.cjs} +1 -1
- package/dist/{external-0a9KHHwz.js → external-DRBGP7qn.js} +2 -2
- package/dist/{external-xtDHiIUX.cjs → external-DaWss0D_.cjs} +1 -1
- package/dist/{external-CIH3tMhP.js → external-DcKg8NOr.js} +1 -1
- package/dist/{external-B7Vpq1ol.cjs → external-bMSKTtt-.cjs} +1 -1
- package/dist/{external-D7FmaiqY.js → external-fvuMSTBJ.js} +4 -4
- package/dist/{external-DtnrBHvV.cjs → external-k9_z2UE6.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +7 -7
- package/dist/index.js +2748 -2786
- package/dist/input.cjs +1 -1
- package/dist/input.js +1 -1
- package/dist/list.cjs +1 -1
- package/dist/list.js +1 -1
- package/dist/menu.cjs +1 -1
- package/dist/menu.js +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/src/text/Editable.d.ts +1 -1
- package/dist/src/text/Editable.d.ts.map +1 -1
- package/dist/src/util/reflow.d.ts +2 -0
- package/dist/src/util/reflow.d.ts.map +1 -0
- package/dist/src/vis/diagram/Diagram.d.ts.map +1 -1
- package/dist/src/vis/schematic/Grid.d.ts +1 -1
- package/dist/src/vis/schematic/Grid.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/tabs.cjs +1 -1
- package/dist/tabs.js +1 -1
- package/dist/text.cjs +1 -1
- package/dist/text.js +2 -2
- package/dist/theming.cjs +1 -1
- package/dist/theming.js +2 -2
- package/dist/tree.cjs +1 -1
- package/dist/tree.js +1 -1
- package/dist/triggers.cjs +1 -1
- package/dist/triggers.js +1 -1
- package/package.json +3 -3
package/dist/button.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-1M4_dCzb.cjs");exports.Button=e.external;
|
package/dist/button.js
CHANGED
package/dist/color.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-8wTAbTHd.cjs");exports.Color=e.external;
|
package/dist/color.js
CHANGED
package/dist/dropdown.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./Toggle-DrfPMqBr.cjs");exports.Dropdown=e.Dropdown;
|
package/dist/dropdown.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Toggle-
|
|
1
|
+
"use strict";const e=require("./Toggle-DrfPMqBr.cjs"),o=require("./Link-C-KaB73i.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,Button:e.Button,Icon:e.Icon,Link:o.Link,Toggle:e.Toggle,ToggleIcon:e.ToggleIcon},Symbol.toStringTag,{value:"Module"}));exports.external=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./css-BghghSL0.cjs"),e=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./css-BghghSL0.cjs"),e=require("./Toggle-DrfPMqBr.cjs"),r=Object.freeze(Object.defineProperty({__proto__:null,Color:t.Color,GradientPicker:e.GradientPicker,Picker:e.Picker,Provider:e.Provider$1,Swatch:e.Swatch,ZERO:t.ZERO,ZERO_CONTEXT_STATE:e.ZERO_CONTEXT_STATE,contextStateZ:e.contextStateZ,crudeZ:t.crudeZ,cssString:t.cssString,frequentZ:e.frequentZ,fromGradient:t.fromGradient,fromHSLA:t.fromHSLA,gradientZ:t.gradientZ,paletteZ:t.paletteZ,recalculate:e.recalculate,relevancyZ:e.relevancyZ,stopZ:t.stopZ,toHex:t.toHex,useContext:e.useContext$1,useFrequent:e.useFrequent,useFrequentUpdater:e.useFrequentUpdater,usePalette:e.usePalette,useRequiredPalette:e.useRequiredPalette},Symbol.toStringTag,{value:"Module"}));exports.external=r;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./Toggle-DrfPMqBr.cjs"),e=require("./Item-DsAGorI8.cjs"),n=Object.freeze(Object.defineProperty({__proto__:null,CONTEXT_SELECTED:t.CONTEXT_SELECTED,CONTEXT_TARGET:t.CONTEXT_TARGET,ContextMenu:t.ContextMenu,CoreItem:e.CoreItem,Divider:e.Divider,Item:e.Item,ItemIcon:e.ItemIcon,ItemLink:e.ItemLink,Menu:e.Menu,MenuContext:e.MenuContext,useContextMenu:t.useContextMenu,useMenuContext:e.useMenuContext},Symbol.toStringTag,{value:"Module"}));exports.external=n;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const y=require("./Toggle-DnW_7Wr_.cjs"),Fe=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),de=require("./aggregator-y-jNJhKX.cjs");require("./css-BghghSL0.cjs");require("./Pack-Dvf8sQVK.cjs");const Ne=require("./List-Pyj0u9YT.cjs"),ge=Symbol(),ee=Symbol(),T="a",N="w";let De=(t,e)=>new Proxy(t,e);const U=Object.getPrototypeOf,ie=new WeakMap,te=t=>t&&(ie.has(t)?ie.get(t):U(t)===Object.prototype||U(t)===Array.prototype),ce=t=>typeof t=="object"&&t!==null,oe=new WeakMap,pe=t=>t[ee]||t,me=(t,e,s)=>{if(!te(t))return t;const r=pe(t),i=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let n=s&&s.get(r);return n&&n[1].f===i||(n=((c,o)=>{const a={f:o};let h=!1;const l=(f,g)=>{if(!h){let p=a[T].get(c);if(p||(p={},a[T].set(c,p)),f===N)p[N]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(g)}}},u={get:(f,g)=>g===ee?c:(l("k",g),me(Reflect.get(f,g),a[T],a.c)),has:(f,g)=>g===ge?(h=!0,a[T].delete(c),!0):(l("h",g),Reflect.has(f,g)),getOwnPropertyDescriptor:(f,g)=>(l("o",g),Reflect.getOwnPropertyDescriptor(f,g)),ownKeys:f=>(l(N),Reflect.ownKeys(f))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,i),n[1].p=De(i?(c=>{let o=oe.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(U(c),a)}oe.set(c,o)}return o})(r):r,n[0]),s&&s.set(r,n)),n[1][T]=e,n[1].c=s,n[1].p},ye=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!ce(t)||!ce(e))return!0;const i=s.get(pe(t));if(!i)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let n=null;try{for(const c of i.h||[])if(n=Reflect.has(t,c)!==Reflect.has(e,c),n)return n;if(i[N]===!0){if(n=((c,o)=>{const a=Reflect.ownKeys(c),h=Reflect.ownKeys(o);return a.length!==h.length||a.some((l,u)=>l!==h[u])})(t,e),n)return n}else for(const c of i.o||[])if(n=!!Reflect.getOwnPropertyDescriptor(t,c)!=!!Reflect.getOwnPropertyDescriptor(e,c),n)return n;for(const c of i.k||[])if(n=ye(t[c],e[c],s,r),n)return n;return n===null&&(n=!0),n}finally{r&&r.set(t,{n:e,g:n})}},je=t=>!!te(t)&&ge in t,Me=t=>te(t)&&t[ee]||null,Ke="h",Ye="w",We="o",ze="k",V=t=>typeof t=="object"&&t!==null,Ee=(t,e)=>{if(!V(t))return t;const s=Me(t);return s!==null?(je(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,i])=>{const n=Ee(i,e);Object.is(n,i)||(t[r]=n)})),t)},B=(t,e,s)=>{var r,i,n;if(!V(t)||!V(e))return;const c=s.get(Me(e)||e);c&&((r=c[Ke])==null||r.forEach(o=>{Reflect.has(t,o)}),c[Ye]===!0&&Reflect.ownKeys(t),(i=c[We])==null||i.forEach(o=>{Reflect.getOwnPropertyDescriptor(t,o)}),(n=c[ze])==null||n.forEach(o=>{B(t[o],e[o],s)}))},Y="o",W="r",z="a";function He(t,e){var s;let r=0;const i=(s=e==null?void 0:e.size)!=null?s:1,n=[],c=e!=null&&e.noWeakMap?null:new WeakMap;return a=>{const h=c==null?void 0:c.get(a);if(h)return h[W];for(let p=0;p<i;p+=1){const m=n[(r+p)%i];if(!m)break;if(!ye(m[Y],a,m[z],new WeakMap))return B(a,m[Y],m[z]),c==null||c.set(a,m),m[W]}const l=new WeakMap,u=me(a,l),f=Ee(t(u),new Set);B(a,a,l);const g={[Y]:a,[W]:f,[z]:l};return r=(r-1+i)%i,n[r]=g,c==null||c.set(a,g),f}}const _e=(t,e)=>de.w.RUNTIME==="browser"?He(t,e):t;function R(t){return Array.isArray?Array.isArray(t):Re(t)==="[object Array]"}const Ue=1/0;function Ve(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Ue?"-0":e}function Be(t){return t==null?"":Ve(t)}function S(t){return typeof t=="string"}function Se(t){return typeof t=="number"}function Ge(t){return t===!0||t===!1||Je(t)&&Re(t)=="[object Boolean]"}function xe(t){return typeof t=="object"}function Je(t){return xe(t)&&t!==null}function M(t){return t!=null}function H(t){return!t.trim().length}function Re(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Qe="Incorrect 'index' type",Xe=t=>`Invalid value for key ${t}`,Ze=t=>`Pattern length exceeds max of ${t}.`,qe=t=>`Missing ${t} property in key`,et=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class tt{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let i=Oe(r);this._keys.push(i),this._keyMap[i.id]=i,s+=i.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Oe(t){let e=null,s=null,r=null,i=1,n=null;if(S(t)||R(t))r=t,e=le(t),s=G(t);else{if(!ae.call(t,"name"))throw new Error(qe("name"));const c=t.name;if(r=c,ae.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(et(c));e=le(c),s=G(c),n=t.getFn}return{path:e,id:s,weight:i,src:r,getFn:n}}function le(t){return R(t)?t:t.split(".")}function G(t){return R(t)?t.join("."):t}function st(t,e){let s=[],r=!1;const i=(n,c,o)=>{if(M(n))if(!c[o])s.push(n);else{let a=c[o];const h=n[a];if(!M(h))return;if(o===c.length-1&&(S(h)||Se(h)||Ge(h)))s.push(Be(h));else if(R(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)i(h[l],c,o+1)}else c.length&&i(h,c,o+1)}};return i(t,S(e)?e.split("."):e,0),r?s:s[0]}const rt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},it={location:0,threshold:.6,distance:100},ct={useExtendedSearch:!1,getFn:st,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...nt,...rt,...it,...ct};const ot=/[^ ]+/g;function at(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(i){const n=i.match(ot).length;if(s.has(n))return s.get(n);const c=1/Math.pow(n,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(n,o),o},clear(){s.clear()}}}class se{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=at(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,S(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();S(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!M(e)||H(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((i,n)=>{let c=i.getFn?i.getFn(e):this.getFn(e,i.path);if(M(c)){if(R(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(M(l))if(S(l)&&!H(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else R(l)&&l.forEach((u,f)=>{a.push({nestedArrIndex:f,value:u})})}r.$[n]=o}else if(S(c)&&!H(c)){let o={v:c,n:this.norm.get(c)};r.$[n]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function we(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const i=new se({getFn:s,fieldNormWeight:r});return i.setKeys(t.map(Oe)),i.setSources(e),i.create(),i}function lt(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:i}=t,n=new se({getFn:e,fieldNormWeight:s});return n.setKeys(r),n.setIndexRecords(i),n}function $(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:i=d.distance,ignoreLocation:n=d.ignoreLocation}={}){const c=e/t.length;if(n)return c;const o=Math.abs(r-s);return i?c+o/i:o?1:c}function ht(t=[],e=d.minMatchCharLength){let s=[],r=-1,i=-1,n=0;for(let c=t.length;n<c;n+=1){let o=t[n];o&&r===-1?r=n:!o&&r!==-1&&(i=n-1,i-r+1>=e&&s.push([r,i]),r=-1)}return t[n-1]&&n-r>=e&&s.push([r,n-1]),s}const L=32;function ut(t,e,s,{location:r=d.location,distance:i=d.distance,threshold:n=d.threshold,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,includeMatches:a=d.includeMatches,ignoreLocation:h=d.ignoreLocation}={}){if(e.length>L)throw new Error(Ze(L));const l=e.length,u=t.length,f=Math.max(0,Math.min(r,u));let g=n,p=f;const m=o>1||a,A=m?Array(u):[];let x;for(;(x=t.indexOf(e,p))>-1;){let E=$(e,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:h});if(g=Math.min(E,g),p=x+l,m){let O=0;for(;O<l;)A[x+O]=1,O+=1}}p=-1;let P=[],b=1,v=l+u;const ve=1<<l-1;for(let E=0;E<l;E+=1){let O=0,w=v;for(;O<w;)$(e,{errors:E,currentLocation:f+w,expectedLocation:f,distance:i,ignoreLocation:h})<=g?O=w:v=w,w=Math.floor((v-O)/2+O);v=w;let re=Math.max(1,f-w+1),K=c?u:Math.min(f+w,u)+l,C=Array(K+2);C[K+1]=(1<<E)-1;for(let _=K;_>=re;_-=1){let F=_-1,ne=s[t.charAt(F)];if(m&&(A[F]=+!!ne),C[_]=(C[_+1]<<1|1)&ne,E&&(C[_]|=(P[_+1]|P[_])<<1|1|P[_+1]),C[_]&ve&&(b=$(e,{errors:E,currentLocation:F,expectedLocation:f,distance:i,ignoreLocation:h}),b<=g)){if(g=b,p=F,p<=f)break;re=Math.max(1,2*f-p)}}if($(e,{errors:E+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:h})>g)break;P=C}const j={isMatch:p>=0,score:Math.max(.001,b)};if(m){const E=ht(A,o);E.length?a&&(j.indices=E):j.isMatch=!1}return j}function ft(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const i=t.charAt(s);e[i]=(e[i]||0)|1<<r-s-1}return e}class Ie{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(f,g)=>{this.chunks.push({pattern:f,alphabet:ft(f),startIndex:g})},u=this.pattern.length;if(u>L){let f=0;const g=u%L,p=u-g;for(;f<p;)l(this.pattern.substr(f,L),f),f+=L;if(g){const m=u-L;l(this.pattern.substr(m),m)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:i,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:m,startIndex:A})=>{const{isMatch:x,score:P,indices:b}=ut(e,p,m,{location:i+A,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});x&&(f=!0),u+=P,x&&b&&(l=[...l,...b])});let g={isMatch:f,score:f?u/this.chunks.length:1};return f&&r&&(g.indices=l),g}}class I{constructor(e){this.pattern=e}static isMultiMatch(e){return he(e,this.multiRegex)}static isSingleMatch(e){return he(e,this.singleRegex)}search(){}}function he(t,e){const s=t.match(e);return s?s[1]:null}class dt extends I{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class gt extends I{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class pt extends I{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class mt extends I{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class yt extends I{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Mt extends I{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Ae extends I{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){super(e),this._bitapSearch=new Ie(e,{location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class be extends I{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const i=[],n=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+n,i.push([r,s-1]);const c=!!i.length;return{isMatch:c,score:c?0:1,indices:i}}}const J=[dt,be,pt,mt,Mt,yt,gt,Ae],ue=J.length,Et=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,_t="|";function St(t,e={}){return t.split(_t).map(s=>{let r=s.trim().split(Et).filter(n=>n&&!!n.trim()),i=[];for(let n=0,c=r.length;n<c;n+=1){const o=r[n];let a=!1,h=-1;for(;!a&&++h<ue;){const l=J[h];let u=l.isMultiMatch(o);u&&(i.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ue;){const l=J[h];let u=l.isSingleMatch(o);if(u){i.push(new l(u,e));break}}}return i})}const xt=new Set([Ae.type,be.type]);class Rt{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,includeMatches:r=d.includeMatches,minMatchCharLength:i=d.minMatchCharLength,ignoreLocation:n=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:a=d.threshold,distance:h=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:i,findAllMatches:c,ignoreLocation:n,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=St(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let n=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,n=0;for(let u=0,f=l.length;u<f;u+=1){const g=l[u],{isMatch:p,indices:m,score:A}=g.search(e);if(p){if(n+=1,o+=A,r){const x=g.constructor.type;xt.has(x)?c=[...c,...m]:c.push(m)}}else{o=0,n=0,c.length=0;break}}if(n){let u={isMatch:!0,score:o/n};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const Q=[];function Ot(...t){Q.push(...t)}function X(t,e){for(let s=0,r=Q.length;s<r;s+=1){let i=Q[s];if(i.condition(t,e))return new i(t,e)}return new Ie(t,e)}const D={AND:"$and",OR:"$or"},Z={PATH:"$path",PATTERN:"$val"},q=t=>!!(t[D.AND]||t[D.OR]),wt=t=>!!t[Z.PATH],It=t=>!R(t)&&xe(t)&&!q(t),fe=t=>({[D.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Le(t,e,{auto:s=!0}={}){const r=i=>{let n=Object.keys(i);const c=wt(i);if(!c&&n.length>1&&!q(i))return r(fe(i));if(It(i)){const a=c?i[Z.PATH]:n[0],h=c?i[Z.PATTERN]:i[a];if(!S(h))throw new Error(Xe(a));const l={keyId:G(a),pattern:h};return s&&(l.searcher=X(h,e)),l}let o={children:[],operator:n[0]};return n.forEach(a=>{const h=i[a];R(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return q(t)||(t=fe(t)),r(t)}function At(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:i,norm:n,score:c})=>{const o=i?i.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:n))}),s.score=r})}function bt(t,e){const s=t.matches;e.matches=[],M(s)&&s.forEach(r=>{if(!M(r.indices)||!r.indices.length)return;const{indices:i,value:n}=r;let c={indices:i,value:n};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function Lt(t,e){e.score=t.score}function Pt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const i=[];return s&&i.push(bt),r&&i.push(Lt),t.map(n=>{const{idx:c}=n,o={item:e[c],refIndex:c};return i.length&&i.forEach(a=>{a(n,o)}),o})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new tt(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof se))throw new Error(Qe);this._myIndex=s||we(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){M(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,i=this._docs.length;r<i;r+=1){const n=this._docs[r];e(n,r)&&(this.removeAt(r),r-=1,i-=1,s.push(n))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:n,sortFn:c,ignoreFieldNorm:o}=this.options;let a=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return At(a,{ignoreFieldNorm:o}),n&&a.sort(c),Se(s)&&s>-1&&(a=a.slice(0,s)),Pt(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const s=X(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=s.searchIn(n);a&&i.push({item:n,idx:c,matches:[{score:h,value:n,norm:o,indices:l}]})}),i}_searchLogical(e){const s=Le(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:f}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:f});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,f=o.children.length;u<f;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===D.AND)return[]}return l},i=this._myIndex.records,n={},c=[];return i.forEach(({$:o,i:a})=>{if(M(o)){let h=r(s,o,a);h.length&&(n[a]||(n[a]={idx:a,item:o,matches:[]},c.push(n[a])),h.forEach(({matches:l})=>{n[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=X(e,this.options),{keys:r,records:i}=this._myIndex,n=[];return i.forEach(({$:c,i:o})=>{if(!M(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&n.push({idx:o,item:c,matches:a})}),n}_findMatches({key:e,value:s,searcher:r}){if(!M(s))return[];let i=[];if(R(s))s.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=r.searchIn(n);a&&i.push({score:h,key:e,value:n,idx:c,norm:o,indices:l})});else{const{v:n,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(n);o&&i.push({score:a,key:e,value:n,norm:c,indices:h})}return i}}k.version="7.0.0";k.createIndex=we;k.parseIndex=lt;k.config=d;k.parseQuery=Le;Ot(Rt);const Ct={threshold:.3},Pe=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...Ct,...t});return{type:"fuse",page:(r,i)=>e.slice(r*i,(r+1)*i),search:r=>s.search(r).map(({item:i})=>i),retrieve:r=>e.filter(i=>r.includes(i.key))}},kt=Pe(),Ce=({term:t,searcher:e=kt})=>_e(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[i,n]=de.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=y.useDataUtilContext(),a=y.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{n(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Ce({term:l})))},[n,r]);return{value:i,onChange:h}},Te=({children:t=s=>Fe.jsxRuntimeExports.jsx(y.Text$1,{placeholder:"Filter",...s}),...e})=>t(ke(e)),Tt=Object.freeze(Object.defineProperty({__proto__:null,Column:y.Column,ColumnContext:y.ColumnContext,Core:y.Core,DataProvider:y.DataProvider,Filter:Te,Hover:y.Hover,ItemFrame:y.ItemFrame,List:Ne.List,Search:y.Search,Selector:y.Selector,selectValueIsZero:y.selectValueIsZero,useDataContext:y.useDataContext,useDataUtilContext:y.useDataUtilContext,useFilter:ke,useGetTransformedData:y.useGetTransformedData,useHoverContext:y.useHoverContext,useSearch:y.useSearch,useSelect:y.useSelect,useSelection:y.useSelection,useSelectionContext:y.useSelectionContext,useSelectionUtils:y.useSelectionUtils,useSetSourceData:y.useSetSourceData,useSourceData:y.useSourceData,useTransformedData:y.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Te;exports.createFilterTransform=Ce;exports.external=Tt;exports.fuseFilter=Pe;exports.proxyMemo=_e;
|
|
1
|
+
"use strict";const y=require("./Toggle-DrfPMqBr.cjs"),Fe=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),de=require("./aggregator-y-jNJhKX.cjs");require("./css-BghghSL0.cjs");require("./Pack-Dvf8sQVK.cjs");const Ne=require("./List-CZxRbYfm.cjs"),ge=Symbol(),ee=Symbol(),T="a",N="w";let De=(t,e)=>new Proxy(t,e);const U=Object.getPrototypeOf,ie=new WeakMap,te=t=>t&&(ie.has(t)?ie.get(t):U(t)===Object.prototype||U(t)===Array.prototype),ce=t=>typeof t=="object"&&t!==null,oe=new WeakMap,pe=t=>t[ee]||t,me=(t,e,s)=>{if(!te(t))return t;const r=pe(t),i=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let n=s&&s.get(r);return n&&n[1].f===i||(n=((c,o)=>{const a={f:o};let h=!1;const l=(f,g)=>{if(!h){let p=a[T].get(c);if(p||(p={},a[T].set(c,p)),f===N)p[N]=!0;else{let m=p[f];m||(m=new Set,p[f]=m),m.add(g)}}},u={get:(f,g)=>g===ee?c:(l("k",g),me(Reflect.get(f,g),a[T],a.c)),has:(f,g)=>g===ge?(h=!0,a[T].delete(c),!0):(l("h",g),Reflect.has(f,g)),getOwnPropertyDescriptor:(f,g)=>(l("o",g),Reflect.getOwnPropertyDescriptor(f,g)),ownKeys:f=>(l(N),Reflect.ownKeys(f))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,i),n[1].p=De(i?(c=>{let o=oe.get(c);if(!o){if(Array.isArray(c))o=Array.from(c);else{const a=Object.getOwnPropertyDescriptors(c);Object.values(a).forEach(h=>{h.configurable=!0}),o=Object.create(U(c),a)}oe.set(c,o)}return o})(r):r,n[0]),s&&s.set(r,n)),n[1][T]=e,n[1].c=s,n[1].p},ye=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!ce(t)||!ce(e))return!0;const i=s.get(pe(t));if(!i)return!0;if(r){const c=r.get(t);if(c&&c.n===e)return c.g;r.set(t,{n:e,g:!1})}let n=null;try{for(const c of i.h||[])if(n=Reflect.has(t,c)!==Reflect.has(e,c),n)return n;if(i[N]===!0){if(n=((c,o)=>{const a=Reflect.ownKeys(c),h=Reflect.ownKeys(o);return a.length!==h.length||a.some((l,u)=>l!==h[u])})(t,e),n)return n}else for(const c of i.o||[])if(n=!!Reflect.getOwnPropertyDescriptor(t,c)!=!!Reflect.getOwnPropertyDescriptor(e,c),n)return n;for(const c of i.k||[])if(n=ye(t[c],e[c],s,r),n)return n;return n===null&&(n=!0),n}finally{r&&r.set(t,{n:e,g:n})}},je=t=>!!te(t)&&ge in t,Me=t=>te(t)&&t[ee]||null,Ke="h",Ye="w",We="o",ze="k",V=t=>typeof t=="object"&&t!==null,Ee=(t,e)=>{if(!V(t))return t;const s=Me(t);return s!==null?(je(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,i])=>{const n=Ee(i,e);Object.is(n,i)||(t[r]=n)})),t)},B=(t,e,s)=>{var r,i,n;if(!V(t)||!V(e))return;const c=s.get(Me(e)||e);c&&((r=c[Ke])==null||r.forEach(o=>{Reflect.has(t,o)}),c[Ye]===!0&&Reflect.ownKeys(t),(i=c[We])==null||i.forEach(o=>{Reflect.getOwnPropertyDescriptor(t,o)}),(n=c[ze])==null||n.forEach(o=>{B(t[o],e[o],s)}))},Y="o",W="r",z="a";function He(t,e){var s;let r=0;const i=(s=e==null?void 0:e.size)!=null?s:1,n=[],c=e!=null&&e.noWeakMap?null:new WeakMap;return a=>{const h=c==null?void 0:c.get(a);if(h)return h[W];for(let p=0;p<i;p+=1){const m=n[(r+p)%i];if(!m)break;if(!ye(m[Y],a,m[z],new WeakMap))return B(a,m[Y],m[z]),c==null||c.set(a,m),m[W]}const l=new WeakMap,u=me(a,l),f=Ee(t(u),new Set);B(a,a,l);const g={[Y]:a,[W]:f,[z]:l};return r=(r-1+i)%i,n[r]=g,c==null||c.set(a,g),f}}const _e=(t,e)=>de.w.RUNTIME==="browser"?He(t,e):t;function R(t){return Array.isArray?Array.isArray(t):Re(t)==="[object Array]"}const Ue=1/0;function Ve(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-Ue?"-0":e}function Be(t){return t==null?"":Ve(t)}function S(t){return typeof t=="string"}function Se(t){return typeof t=="number"}function Ge(t){return t===!0||t===!1||Je(t)&&Re(t)=="[object Boolean]"}function xe(t){return typeof t=="object"}function Je(t){return xe(t)&&t!==null}function M(t){return t!=null}function H(t){return!t.trim().length}function Re(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const Qe="Incorrect 'index' type",Xe=t=>`Invalid value for key ${t}`,Ze=t=>`Pattern length exceeds max of ${t}.`,qe=t=>`Missing ${t} property in key`,et=t=>`Property 'weight' in key '${t}' must be a positive integer`,ae=Object.prototype.hasOwnProperty;class tt{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let i=Oe(r);this._keys.push(i),this._keyMap[i.id]=i,s+=i.weight}),this._keys.forEach(r=>{r.weight/=s})}get(e){return this._keyMap[e]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function Oe(t){let e=null,s=null,r=null,i=1,n=null;if(S(t)||R(t))r=t,e=le(t),s=G(t);else{if(!ae.call(t,"name"))throw new Error(qe("name"));const c=t.name;if(r=c,ae.call(t,"weight")&&(i=t.weight,i<=0))throw new Error(et(c));e=le(c),s=G(c),n=t.getFn}return{path:e,id:s,weight:i,src:r,getFn:n}}function le(t){return R(t)?t:t.split(".")}function G(t){return R(t)?t.join("."):t}function st(t,e){let s=[],r=!1;const i=(n,c,o)=>{if(M(n))if(!c[o])s.push(n);else{let a=c[o];const h=n[a];if(!M(h))return;if(o===c.length-1&&(S(h)||Se(h)||Ge(h)))s.push(Be(h));else if(R(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)i(h[l],c,o+1)}else c.length&&i(h,c,o+1)}};return i(t,S(e)?e.split("."):e,0),r?s:s[0]}const rt={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},nt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(t,e)=>t.score===e.score?t.idx<e.idx?-1:1:t.score<e.score?-1:1},it={location:0,threshold:.6,distance:100},ct={useExtendedSearch:!1,getFn:st,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var d={...nt,...rt,...it,...ct};const ot=/[^ ]+/g;function at(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(i){const n=i.match(ot).length;if(s.has(n))return s.get(n);const c=1/Math.pow(n,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(n,o),o},clear(){s.clear()}}}class se{constructor({getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){this.norm=at(s,3),this.getFn=e,this.isCreated=!1,this.setIndexRecords()}setSources(e=[]){this.docs=e}setIndexRecords(e=[]){this.records=e}setKeys(e=[]){this.keys=e,this._keysMap={},e.forEach((s,r)=>{this._keysMap[s.id]=r})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,S(this.docs[0])?this.docs.forEach((e,s)=>{this._addString(e,s)}):this.docs.forEach((e,s)=>{this._addObject(e,s)}),this.norm.clear())}add(e){const s=this.size();S(e)?this._addString(e,s):this._addObject(e,s)}removeAt(e){this.records.splice(e,1);for(let s=e,r=this.size();s<r;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(e,s){return e[this._keysMap[s]]}size(){return this.records.length}_addString(e,s){if(!M(e)||H(e))return;let r={v:e,i:s,n:this.norm.get(e)};this.records.push(r)}_addObject(e,s){let r={i:s,$:{}};this.keys.forEach((i,n)=>{let c=i.getFn?i.getFn(e):this.getFn(e,i.path);if(M(c)){if(R(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(M(l))if(S(l)&&!H(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else R(l)&&l.forEach((u,f)=>{a.push({nestedArrIndex:f,value:u})})}r.$[n]=o}else if(S(c)&&!H(c)){let o={v:c,n:this.norm.get(c)};r.$[n]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function we(t,e,{getFn:s=d.getFn,fieldNormWeight:r=d.fieldNormWeight}={}){const i=new se({getFn:s,fieldNormWeight:r});return i.setKeys(t.map(Oe)),i.setSources(e),i.create(),i}function lt(t,{getFn:e=d.getFn,fieldNormWeight:s=d.fieldNormWeight}={}){const{keys:r,records:i}=t,n=new se({getFn:e,fieldNormWeight:s});return n.setKeys(r),n.setIndexRecords(i),n}function $(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:i=d.distance,ignoreLocation:n=d.ignoreLocation}={}){const c=e/t.length;if(n)return c;const o=Math.abs(r-s);return i?c+o/i:o?1:c}function ht(t=[],e=d.minMatchCharLength){let s=[],r=-1,i=-1,n=0;for(let c=t.length;n<c;n+=1){let o=t[n];o&&r===-1?r=n:!o&&r!==-1&&(i=n-1,i-r+1>=e&&s.push([r,i]),r=-1)}return t[n-1]&&n-r>=e&&s.push([r,n-1]),s}const L=32;function ut(t,e,s,{location:r=d.location,distance:i=d.distance,threshold:n=d.threshold,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,includeMatches:a=d.includeMatches,ignoreLocation:h=d.ignoreLocation}={}){if(e.length>L)throw new Error(Ze(L));const l=e.length,u=t.length,f=Math.max(0,Math.min(r,u));let g=n,p=f;const m=o>1||a,A=m?Array(u):[];let x;for(;(x=t.indexOf(e,p))>-1;){let E=$(e,{currentLocation:x,expectedLocation:f,distance:i,ignoreLocation:h});if(g=Math.min(E,g),p=x+l,m){let O=0;for(;O<l;)A[x+O]=1,O+=1}}p=-1;let P=[],b=1,v=l+u;const ve=1<<l-1;for(let E=0;E<l;E+=1){let O=0,w=v;for(;O<w;)$(e,{errors:E,currentLocation:f+w,expectedLocation:f,distance:i,ignoreLocation:h})<=g?O=w:v=w,w=Math.floor((v-O)/2+O);v=w;let re=Math.max(1,f-w+1),K=c?u:Math.min(f+w,u)+l,C=Array(K+2);C[K+1]=(1<<E)-1;for(let _=K;_>=re;_-=1){let F=_-1,ne=s[t.charAt(F)];if(m&&(A[F]=+!!ne),C[_]=(C[_+1]<<1|1)&ne,E&&(C[_]|=(P[_+1]|P[_])<<1|1|P[_+1]),C[_]&ve&&(b=$(e,{errors:E,currentLocation:F,expectedLocation:f,distance:i,ignoreLocation:h}),b<=g)){if(g=b,p=F,p<=f)break;re=Math.max(1,2*f-p)}}if($(e,{errors:E+1,currentLocation:f,expectedLocation:f,distance:i,ignoreLocation:h})>g)break;P=C}const j={isMatch:p>=0,score:Math.max(.001,b)};if(m){const E=ht(A,o);E.length?a&&(j.indices=E):j.isMatch=!1}return j}function ft(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const i=t.charAt(s);e[i]=(e[i]||0)|1<<r-s-1}return e}class Ie{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(f,g)=>{this.chunks.push({pattern:f,alphabet:ft(f),startIndex:g})},u=this.pattern.length;if(u>L){let f=0;const g=u%L,p=u-g;for(;f<p;)l(this.pattern.substr(f,L),f),f+=L;if(g){const m=u-L;l(this.pattern.substr(m),m)}}else l(this.pattern,0)}searchIn(e){const{isCaseSensitive:s,includeMatches:r}=this.options;if(s||(e=e.toLowerCase()),this.pattern===e){let p={isMatch:!0,score:0};return r&&(p.indices=[[0,e.length-1]]),p}const{location:i,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,f=!1;this.chunks.forEach(({pattern:p,alphabet:m,startIndex:A})=>{const{isMatch:x,score:P,indices:b}=ut(e,p,m,{location:i+A,distance:n,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});x&&(f=!0),u+=P,x&&b&&(l=[...l,...b])});let g={isMatch:f,score:f?u/this.chunks.length:1};return f&&r&&(g.indices=l),g}}class I{constructor(e){this.pattern=e}static isMultiMatch(e){return he(e,this.multiRegex)}static isSingleMatch(e){return he(e,this.singleRegex)}search(){}}function he(t,e){const s=t.match(e);return s?s[1]:null}class dt extends I{constructor(e){super(e)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(e){const s=e===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class gt extends I{constructor(e){super(e)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(e){const r=e.indexOf(this.pattern)===-1;return{isMatch:r,score:r?0:1,indices:[0,e.length-1]}}}class pt extends I{constructor(e){super(e)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(e){const s=e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class mt extends I{constructor(e){super(e)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(e){const s=!e.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class yt extends I{constructor(e){super(e)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(e){const s=e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[e.length-this.pattern.length,e.length-1]}}}class Mt extends I{constructor(e){super(e)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(e){const s=!e.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,e.length-1]}}}class Ae extends I{constructor(e,{location:s=d.location,threshold:r=d.threshold,distance:i=d.distance,includeMatches:n=d.includeMatches,findAllMatches:c=d.findAllMatches,minMatchCharLength:o=d.minMatchCharLength,isCaseSensitive:a=d.isCaseSensitive,ignoreLocation:h=d.ignoreLocation}={}){super(e),this._bitapSearch=new Ie(e,{location:s,threshold:r,distance:i,includeMatches:n,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(e){return this._bitapSearch.searchIn(e)}}class be extends I{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const i=[],n=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+n,i.push([r,s-1]);const c=!!i.length;return{isMatch:c,score:c?0:1,indices:i}}}const J=[dt,be,pt,mt,Mt,yt,gt,Ae],ue=J.length,Et=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,_t="|";function St(t,e={}){return t.split(_t).map(s=>{let r=s.trim().split(Et).filter(n=>n&&!!n.trim()),i=[];for(let n=0,c=r.length;n<c;n+=1){const o=r[n];let a=!1,h=-1;for(;!a&&++h<ue;){const l=J[h];let u=l.isMultiMatch(o);u&&(i.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ue;){const l=J[h];let u=l.isSingleMatch(o);if(u){i.push(new l(u,e));break}}}return i})}const xt=new Set([Ae.type,be.type]);class Rt{constructor(e,{isCaseSensitive:s=d.isCaseSensitive,includeMatches:r=d.includeMatches,minMatchCharLength:i=d.minMatchCharLength,ignoreLocation:n=d.ignoreLocation,findAllMatches:c=d.findAllMatches,location:o=d.location,threshold:a=d.threshold,distance:h=d.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:i,findAllMatches:c,ignoreLocation:n,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=St(this.pattern,this.options)}static condition(e,s){return s.useExtendedSearch}searchIn(e){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:r,isCaseSensitive:i}=this.options;e=i?e:e.toLowerCase();let n=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,n=0;for(let u=0,f=l.length;u<f;u+=1){const g=l[u],{isMatch:p,indices:m,score:A}=g.search(e);if(p){if(n+=1,o+=A,r){const x=g.constructor.type;xt.has(x)?c=[...c,...m]:c.push(m)}}else{o=0,n=0,c.length=0;break}}if(n){let u={isMatch:!0,score:o/n};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const Q=[];function Ot(...t){Q.push(...t)}function X(t,e){for(let s=0,r=Q.length;s<r;s+=1){let i=Q[s];if(i.condition(t,e))return new i(t,e)}return new Ie(t,e)}const D={AND:"$and",OR:"$or"},Z={PATH:"$path",PATTERN:"$val"},q=t=>!!(t[D.AND]||t[D.OR]),wt=t=>!!t[Z.PATH],It=t=>!R(t)&&xe(t)&&!q(t),fe=t=>({[D.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function Le(t,e,{auto:s=!0}={}){const r=i=>{let n=Object.keys(i);const c=wt(i);if(!c&&n.length>1&&!q(i))return r(fe(i));if(It(i)){const a=c?i[Z.PATH]:n[0],h=c?i[Z.PATTERN]:i[a];if(!S(h))throw new Error(Xe(a));const l={keyId:G(a),pattern:h};return s&&(l.searcher=X(h,e)),l}let o={children:[],operator:n[0]};return n.forEach(a=>{const h=i[a];R(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return q(t)||(t=fe(t)),r(t)}function At(t,{ignoreFieldNorm:e=d.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:i,norm:n,score:c})=>{const o=i?i.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:n))}),s.score=r})}function bt(t,e){const s=t.matches;e.matches=[],M(s)&&s.forEach(r=>{if(!M(r.indices)||!r.indices.length)return;const{indices:i,value:n}=r;let c={indices:i,value:n};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function Lt(t,e){e.score=t.score}function Pt(t,e,{includeMatches:s=d.includeMatches,includeScore:r=d.includeScore}={}){const i=[];return s&&i.push(bt),r&&i.push(Lt),t.map(n=>{const{idx:c}=n,o={item:e[c],refIndex:c};return i.length&&i.forEach(a=>{a(n,o)}),o})}class k{constructor(e,s={},r){this.options={...d,...s},this.options.useExtendedSearch,this._keyStore=new tt(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof se))throw new Error(Qe);this._myIndex=s||we(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){M(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,i=this._docs.length;r<i;r+=1){const n=this._docs[r];e(n,r)&&(this.removeAt(r),r-=1,i-=1,s.push(n))}return s}removeAt(e){this._docs.splice(e,1),this._myIndex.removeAt(e)}getIndex(){return this._myIndex}search(e,{limit:s=-1}={}){const{includeMatches:r,includeScore:i,shouldSort:n,sortFn:c,ignoreFieldNorm:o}=this.options;let a=S(e)?S(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return At(a,{ignoreFieldNorm:o}),n&&a.sort(c),Se(s)&&s>-1&&(a=a.slice(0,s)),Pt(a,this._docs,{includeMatches:r,includeScore:i})}_searchStringList(e){const s=X(e,this.options),{records:r}=this._myIndex,i=[];return r.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=s.searchIn(n);a&&i.push({item:n,idx:c,matches:[{score:h,value:n,norm:o,indices:l}]})}),i}_searchLogical(e){const s=Le(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:f}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:f});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,f=o.children.length;u<f;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===D.AND)return[]}return l},i=this._myIndex.records,n={},c=[];return i.forEach(({$:o,i:a})=>{if(M(o)){let h=r(s,o,a);h.length&&(n[a]||(n[a]={idx:a,item:o,matches:[]},c.push(n[a])),h.forEach(({matches:l})=>{n[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=X(e,this.options),{keys:r,records:i}=this._myIndex,n=[];return i.forEach(({$:c,i:o})=>{if(!M(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&n.push({idx:o,item:c,matches:a})}),n}_findMatches({key:e,value:s,searcher:r}){if(!M(s))return[];let i=[];if(R(s))s.forEach(({v:n,i:c,n:o})=>{if(!M(n))return;const{isMatch:a,score:h,indices:l}=r.searchIn(n);a&&i.push({score:h,key:e,value:n,idx:c,norm:o,indices:l})});else{const{v:n,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(n);o&&i.push({score:a,key:e,value:n,norm:c,indices:h})}return i}}k.version="7.0.0";k.createIndex=we;k.parseIndex=lt;k.config=d;k.parseQuery=Le;Ot(Rt);const Ct={threshold:.3},Pe=t=>e=>{const s=new k(e,{keys:Object.keys(e[0]),...Ct,...t});return{type:"fuse",page:(r,i)=>e.slice(r*i,(r+1)*i),search:r=>s.search(r).map(({item:i})=>i),retrieve:r=>e.filter(i=>r.includes(i.key))}},kt=Pe(),Ce=({term:t,searcher:e=kt})=>_e(({data:s})=>typeof e=="function"?t.length===0||(s==null?void 0:s.length)===0?{data:s,transformed:!1}:{data:e(s).search(t),transformed:!0}:{data:e.search(t),transformed:!0}),ke=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[i,n]=de.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=y.useDataUtilContext(),a=y.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{n(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Ce({term:l})))},[n,r]);return{value:i,onChange:h}},Te=({children:t=s=>Fe.jsxRuntimeExports.jsx(y.Text$1,{placeholder:"Filter",...s}),...e})=>t(ke(e)),Tt=Object.freeze(Object.defineProperty({__proto__:null,Column:y.Column,ColumnContext:y.ColumnContext,Core:y.Core,DataProvider:y.DataProvider,Filter:Te,Hover:y.Hover,ItemFrame:y.ItemFrame,List:Ne.List,Search:y.Search,Selector:y.Selector,selectValueIsZero:y.selectValueIsZero,useDataContext:y.useDataContext,useDataUtilContext:y.useDataUtilContext,useFilter:ke,useGetTransformedData:y.useGetTransformedData,useHoverContext:y.useHoverContext,useSearch:y.useSearch,useSelect:y.useSelect,useSelection:y.useSelection,useSelectionContext:y.useSelectionContext,useSelectionUtils:y.useSelectionUtils,useSetSourceData:y.useSetSourceData,useSourceData:y.useSourceData,useTransformedData:y.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Te;exports.createFilterTransform=Ce;exports.external=Tt;exports.fuseFilter=Pe;exports.proxyMemo=_e;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { a9 as fe, aF as Pe, av as ke, ak as ve, aG as Te, ae as Ce, m as Ne, aj as Fe, aH as $e, aI as je, af as De, aJ as Ke, aK as Ye, aL as We, aM as ze, aN as He, am as Ve, aO as Be, aP as Ue, a8 as Ge, aQ as Je, aR as Qe, aS as Xe } from "./Toggle-
|
|
1
|
+
import { a9 as fe, aF as Pe, av as ke, ak as ve, aG as Te, ae as Ce, m as Ne, aj as Fe, aH as $e, aI as je, af as De, aJ as Ke, aK as Ye, aL as We, aM as ze, aN as He, am as Ve, aO as Be, aP as Ue, a8 as Ge, aQ as Je, aR as Qe, aS as Xe } from "./Toggle-DcPmH9Uq.js";
|
|
2
2
|
import { j as Ze } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useCallback as qe } from "react";
|
|
4
4
|
import { q as et, p as tt } from "./aggregator-23mu0FOF.js";
|
|
5
5
|
import "./css-DJCM-h5_.js";
|
|
6
6
|
import "./Pack-BzCJQZ58.js";
|
|
7
|
-
import { L as st } from "./List-
|
|
7
|
+
import { L as st } from "./List-S1wnpuEv.js";
|
|
8
8
|
const de = Symbol(), q = Symbol(), v = "a", F = "w";
|
|
9
9
|
let rt = (t, e) => new Proxy(t, e);
|
|
10
10
|
const H = Object.getPrototypeOf, ne = /* @__PURE__ */ new WeakMap(), ee = (t) => t && (ne.has(t) ? ne.get(t) : H(t) === Object.prototype || H(t) === Array.prototype), ie = (t) => typeof t == "object" && t !== null, ce = /* @__PURE__ */ new WeakMap(), ge = (t) => t[q] || t, pe = (t, e, s) => {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { F as re, A as k, u as ae, n as se } from "./aggregator-23mu0FOF.js";
|
|
2
2
|
import { j as N } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { a8 as le, a9 as oe, h as ie, aa as ce, d as de, C as fe, ab as ue, ac as he, ad as pe, a7 as me, B as ge, ae as Y, af as xe, ag as ye, ah as Ce, ai as Ee } from "./Toggle-
|
|
3
|
+
import { a8 as le, a9 as oe, h as ie, aa as ce, d as de, C as fe, ab as ue, ac as he, ad as pe, a7 as me, B as ge, ae as Y, af as xe, ag as ye, ah as Ce, ai as Ee } from "./Toggle-DcPmH9Uq.js";
|
|
4
4
|
import { memo as Ne, useState as be, useCallback as b, useMemo as Te } from "react";
|
|
5
|
-
import { L as ve } from "./Link-
|
|
6
|
-
import { A as _e } from "./Animated-
|
|
5
|
+
import { L as ve } from "./Link-By1w1FIv.js";
|
|
6
|
+
import { A as _e } from "./Animated-BMxljHxY.js";
|
|
7
7
|
import { C as h } from "./css-DJCM-h5_.js";
|
|
8
8
|
import "./Pack-BzCJQZ58.js";
|
|
9
|
-
import { L as Ie } from "./List-
|
|
9
|
+
import { L as Ie } from "./List-S1wnpuEv.js";
|
|
10
10
|
const z = (e, t) => t.includes(e.key), H = (e, t) => {
|
|
11
11
|
t && e.sort((n, a) => re.stringsWithNumbers(n.name, a.name));
|
|
12
12
|
let r = !1;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const I=require("./aggregator-y-jNJhKX.cjs"),R=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./Toggle-
|
|
1
|
+
"use strict";const I=require("./aggregator-y-jNJhKX.cjs"),R=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./Toggle-DrfPMqBr.cjs"),C=require("react"),re=require("./Link-C-KaB73i.cjs"),se=require("./Animated-B3meZ8Go.cjs"),p=require("./css-BghghSL0.cjs");require("./Pack-Dvf8sQVK.cjs");const le=require("./List-CZxRbYfm.cjs"),Y=(e,t)=>t.includes(e.key),H=(e,t)=>{t&&e.sort((n,s)=>I.F.stringsWithNumbers(n.name,s.name));let r=!1;for(let n=0;n<e.length;n++){const s=e[n];s.forcePosition!=null&&n!==s.forcePosition&&(r=!0,e.splice(n,1),e.splice(s.forcePosition,0,s))}return r?H(e,!1):e},K=({nodes:e,expanded:t,depth:r=0,sort:n=!0,path:s=""})=>{r===0&&n&&(e=e.sort((a,c)=>a.name.localeCompare(c.name)));const l=[];return e.forEach((a,c)=>{const i=`${s}${a.key}/`,h=Y(a,t);l.push({...a,depth:r,expanded:h,index:c,path:i}),h&&a.children!=null&&(a.children=H(a.children,n),l.push(...K({nodes:a.children,expanded:t,depth:r+1,sort:n,path:i})))}),l},ae=({tree:e,destination:t,keys:r})=>(r=I.A(r),r.forEach(n=>{const s=j({tree:e,key:n});s!=null&&(z({tree:e,keys:n}),V({tree:e,destination:t,additions:s}))}),e),z=({tree:e,keys:t})=>{t=I.A(t);const r=e.map(n=>n.key);return t.forEach(n=>{var l;const s=r.indexOf(n);if(s!==-1)e.splice(s,1);else{const a=A({tree:e,key:n});a!=null&&(a.children=(l=a.children)==null?void 0:l.filter(c=>c.key!==n))}}),e},V=({tree:e,destination:t,additions:r})=>{r=I.A(r);const n=j({tree:e,key:t});if(n==null)throw new Error(`Could not find node with key ${t}`);n.children??(n.children=[]);const s=r.map(l=>l.key);return n.children=[...r,...n.children.filter(l=>!s.includes(l.key))],e},ie=({tree:e,key:t,updater:r,throwOnMissing:n=!0})=>{var a,c;const s=j({tree:e,key:t});if(s==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}const l=A({tree:e,key:t});if(l!=null){const i=(a=l.children)==null?void 0:a.findIndex(h=>h.key===t);i!=null&&i!==-1&&((c=l.children)==null||c.splice(i,1,r(s)))}else e.splice(e.findIndex(i=>i.key===t),1,r(s));return e},ce=({tree:e,parent:t,updater:r,throwOnMissing:n=!0})=>{const s=j({tree:e,key:t});if(s==null){if(n)throw new Error(`Could not find node with key ${t}`);return e}return s.children=r(s.children??[]),e},j=({tree:e,key:t,depth:r=0})=>{for(let n=0;n<e.length;n++){const s=e[n];if(s.key===t){const l=s;return l.depth=r,l.position=n,l}if(s.children!=null){const l=j({tree:s.children,key:t,depth:r+1});if(l!=null)return l}}return null},oe=({tree:e,keys:t})=>{const r=[];for(const n of t){const s=j({tree:e,key:n});s!=null&&r.push(s)}return r},A=({tree:e,key:t})=>{for(const r of e)if(r.children!=null){if(r.children.some(s=>s.key===t))return r;const n=A({tree:r.children,key:t});if(n!=null)return n}return null},J=e=>e.map(t=>({...t,children:J(t.children??[])})),Q=(...e)=>{const t=[];return e.forEach(r=>{t.push(r),r.children!=null&&t.push(...Q(...r.children))}),t},M="tree-item",de=[["Shift"]],ue=e=>{const{onExpand:t,nodes:r,initialExpanded:n=[],sort:s=!0,selected:l,onSelectedChange:a}=e??{},[c,i,h]=d.useCombinedStateAndRef(n),[o,N]=I.usePassthrough({initial:[],value:l,onChange:a}),T=C.useMemo(()=>K({nodes:r,expanded:c,sort:s}),[r,c,s]),v=d.useSyncedRef(T),w=d.useHeldRef({triggers:de}),$=C.useCallback((f,{clicked:u})=>{N(f);const S=v.current.find(b=>b.key===u);if((S==null?void 0:S.hasChildren)===!1||u==null||w.current.held)return;const E=h.current,k=E.some(b=>b===u)?"contract":"expand";let y;k==="contract"?y=E.filter(b=>b!==u):y=[...E,u],i(y),t==null||t({current:y,action:k,clicked:u})},[t,v,i,N]),m=C.useCallback(f=>{i(u=>I.n([...u,f])),t==null||t({current:c,action:"expand",clicked:f})},[i]),L=C.useCallback(f=>{i(u=>u.filter(S=>S!==f)),t==null||t({current:c,action:"contract",clicked:f})},[i]),_=C.useCallback(()=>i([]),[i]);return{onSelect:$,selected:o,expanded:c,contract:L,expand:m,nodes:T,clearExpanded:_}},G=C.memo(({entry:e,selected:t,onSelect:r,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a,loading:c=!1,useMargin:i=!0,translate:h})=>{const{key:o,hasChildren:N=!1,allowRename:T=!1,children:v,icon:w,name:$,depth:m,expanded:L,href:_,haulItems:f=[]}=e,{getSelected:u}=d.useSelectionUtils(),{getSourceData:S}=d.useDataUtilContext(),E=N||v!=null&&v.length>0,k=[];E&&k.push(R.jsxRuntimeExports.jsx(se.Animated,{enabled:L,enabledLoc:"bottom",disabledLoc:"right"})),w!=null&&k.push(w);const y=[];c&&y.push(R.jsxRuntimeExports.jsx(d.e4.Loading,{className:p.CSS.B("loading-indicator")}));const[b,q]=C.useState(!1),{startDrag:U,...Z}=d.useDragAndDrop({type:"Tree.Item",key:o,canDrop:C.useCallback(({items:g,source:O})=>{const x=g.map(P=>P.key);return q(!1),O.type==="Tree.Item"&&!x.includes(o)},[]),onDrop:C.useCallback(g=>(n==null?void 0:n(o,g))??[],[o,n]),onDragOver:C.useCallback(()=>q(!0),[])}),D=()=>{const g=u(),O=S().filter(x=>g.includes(x.key));if(g.includes(o)){const x=O.map(({key:P,haulItems:B,depth:W})=>[{type:M,key:P,data:{depth:W}},...(B==null?void 0:B.map(X=>({...X,data:{...X.data,depth:W}})))??[]]).flat();return U(x,P=>l==null?void 0:l(o,P))}U([{type:M,key:o,data:{depth:m}},...f.map(x=>({...x,data:{...x.data,depth:m}}))],x=>l==null?void 0:l(o,x))},ee=i?"marginLeft":"paddingLeft";let F=m*2+1;E&&i&&(F-=1);const te={id:o,variant:"text",draggable:f.length>0,className:p.CSS(p.CSS.BE("list","item"),d.CONTEXT_TARGET,b&&p.CSS.M("dragging-over"),t&&d.CONTEXT_SELECTED,p.CSS.selected(t),E&&p.CSS.M("has-children"),p.CSS.BM("depth",m.toString())),onDragLeave:()=>q(!1),onDragStart:D,onClick:()=>r==null?void 0:r(o),style:{border:"none",position:h!=null?"absolute":"relative",transform:`translateY(${h}px)`,[ee]:`${F}rem`,"--pluto-tree-indicator-offset":`${m*1.5+(m===0?0:.5)}rem`},startIcon:k,iconSpacing:"small",noWrap:!0,endIcon:y,onDoubleClick:g=>a==null?void 0:a(o,g),href:_,...Z},ne=_!=null?re.Link:d.Button;return R.jsxRuntimeExports.jsx(ne,{className:p.CSS.BE("list","item"),...te,children:R.jsxRuntimeExports.jsx(d.MaybeEditable,{id:`text-${o}`,level:"p",allowDoubleClick:!1,value:$,disabled:!T,onChange:g=>s==null?void 0:s(o,g)})})});G.displayName="Tree.Item";const fe=d.componentRenderProp(G),he=({nodes:e,selected:t=[],onSelect:r,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a,className:c,children:i=fe,itemHeight:h=27,useMargin:o=!1,showRules:N=!1,virtual:T=!0,clearExpanded:v,expand:w,contract:$,emptyContent:m,loading:L,..._})=>{const f=T?d.Core.Virtual:d.Core;return R.jsxRuntimeExports.jsx(le.List,{data:e,emptyContent:m,children:R.jsxRuntimeExports.jsx(d.Selector,{value:t,onChange:r,allowMultiple:!0,replaceOnSingle:!0,children:R.jsxRuntimeExports.jsx(f,{itemHeight:h,className:p.CSS(c,p.CSS.B("tree"),N&&p.CSS.M("rules")),..._,children:({key:u,...S})=>i({...S,key:u,loading:L===u,useMargin:o,onDrop:n,onRename:s,onSuccessfulDrop:l,onDoubleClick:a})})})})},pe=(e,t)=>d.edit(`text-${e}`,t),me=e=>d.asyncEdit(`text-${e}`),ge=Object.freeze(Object.defineProperty({__proto__:null,DefaultItem:G,HAUL_TYPE:M,Tree:he,asyncRename:me,deepCopy:J,findNode:j,findNodeParent:A,findNodes:oe,flatten:K,getDescendants:Q,moveNode:ae,removeNode:z,setNode:V,shouldExpand:Y,sortAndSplice:H,startRenaming:pe,updateNode:ie,updateNodeChildren:ce,use:ue},Symbol.toStringTag,{value:"Module"}));exports.external=ge;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const l=require("./jsx-runtime-Cek9Ww4S.cjs"),u=require("./Toggle-
|
|
1
|
+
"use strict";const l=require("./jsx-runtime-Cek9Ww4S.cjs"),u=require("./Toggle-DrfPMqBr.cjs"),S=require("react"),_=require("./Pack-Dvf8sQVK.cjs"),r=require("./css-BghghSL0.cjs"),z=require("./aggregator-y-jNJhKX.cjs");require("./Item-DsAGorI8.cjs");const j=require("zod"),N=(n,s)=>S.cloneElement(n,{className:r.CSS(n.props.className,r.CSS.B("sub"),r.CSS.M(s))}),k=({topRight:n,topLeft:s,bottomLeft:e,bottomRight:o,children:t,className:c,...i})=>l.jsxRuntimeExports.jsxs("div",{className:r.CSS(c,r.CSS.B("icon")),...i,children:[n&&N(n,"topRight"),s&&N(s,"topLeft"),e&&N(e,"bottomLeft"),o&&N(o,"bottomRight"),t]}),X=n=>l.jsxRuntimeExports.jsx(k,{topRight:l.jsxRuntimeExports.jsx(u.e4.Add,{}),...n}),$=n=>l.jsxRuntimeExports.jsx(k,{topRight:l.jsxRuntimeExports.jsx(u.e4.Import,{}),...n}),y=(n,s)=>{if(n!=null){if(typeof n=="string"){const e=z._.get(u.e4,n);return l.jsxRuntimeExports.jsx(e,{...s})}return S.cloneElement(n,s)}},G=Object.freeze(Object.defineProperty({__proto__:null,Create:X,Icon:k,Import:$,resolve:y},Symbol.toStringTag,{value:"Module"})),I=(n="",s=[])=>{var e;if(s.length!==0)return s.find(o=>o.tabKey===n)!=null?n:(e=s[s.length-1])==null?void 0:e.tabKey},M=(n,s,e)=>{if(s=s.trim(),s.length===0)return e;const o=e.find(t=>t.tabKey===n);return o==null||o.name===s?e:e.map(t=>t.tabKey===n?{...t,name:s}:t)},O=({tabs:n,content:s,selected:e,onSelect:o})=>{var x;const[t,c]=z.usePurePassthrough({initial:e??((x=n[0])==null?void 0:x.tabKey)??"",value:e,onChange:o}),i=u.useSyncedRef(e??t),a=S.useCallback(p=>{c(p),i.current==null&&(o==null||o(p))},[t,o]);return{tabs:n,selected:t,content:s,onSelect:a}},P=S.createContext({tabs:[]}),w=P.Provider,q=()=>S.useContext(P),L=({id:n,content:s,children:e,onSelect:o,selected:t,selectedAltColor:c,closable:i,tabs:a,onClose:x,onDragStart:p,onDragEnd:b,onCreate:C,onRename:g,emptyContent:v,className:B,onDragOver:f,onDrop:R,contextMenu:m,size:E="medium",direction:T="y",...h})=>l.jsxRuntimeExports.jsx(_.Space,{id:n,empty:!0,className:r.CSS(r.CSS.B("tabs"),B),onDragOver:f,onDrop:R,direction:T,...h,children:l.jsxRuntimeExports.jsxs(w,{value:{tabs:a,emptyContent:v,selected:t,closable:i,content:e??s,onSelect:o,onClose:x,onDragStart:p,onDragEnd:b,onRename:g,onCreate:C,onDrop:R},children:[l.jsxRuntimeExports.jsx(V,{size:E,direction:r.g.swap(T),altColor:c,contextMenu:m}),l.jsxRuntimeExports.jsx(A,{})]})}),A=()=>{const{tabs:n,selected:s,content:e,emptyContent:o,onSelect:t}=q();let c=null;const i=n.find(a=>a.tabKey===s);return s==null||i==null?o??null:(e!=null?typeof e=="function"?c=e(i):c=e:i.content!=null&&(c=i.content),l.jsxRuntimeExports.jsx("div",{className:r.CSS.B("tabs-content"),onClick:()=>t==null?void 0:t(s),children:c}))},d="tabs-selector",V=({className:n,altColor:s=!1,size:e="medium",direction:o="x",contextMenu:t,...c})=>{const{tabs:i,selected:a,onSelect:x,onClose:p,closable:b,onDragEnd:C,onDragStart:g,onDrop:v,onRename:B,onCreate:f}=q(),R=u.useContextMenu(),m=l.jsxRuntimeExports.jsxs(_.Space,{className:r.CSS(r.CSS.B(d),r.CSS.size(e),n),align:"center",justify:"spaceBetween",onDrop:v,empty:!0,direction:o,...c,children:[l.jsxRuntimeExports.jsx(_.Space,{direction:o,className:r.CSS.BE(d,"tabs"),empty:!0,children:i.map(E=>l.jsxRuntimeExports.jsx(F,{selected:a,altColor:s,onSelect:x,onClose:p,onDragStart:g,onDragEnd:C,onRename:B,closable:E.closable??b,size:e,...E},E.tabKey))}),f!=null&&l.jsxRuntimeExports.jsx(_.Space,{className:r.CSS.BE(d,"actions"),children:l.jsxRuntimeExports.jsx(u.Icon,{size:e,sharp:!0,onClick:f,children:l.jsxRuntimeExports.jsx(u.e4.Add,{})})})]});return t!=null?l.jsxRuntimeExports.jsx(u.ContextMenu,{style:{height:"fit-content"},...R,menu:t,children:m}):m},F=({selected:n,altColor:s=!1,onSelect:e,onClose:o,tabKey:t,name:c,onDragStart:i,onDragEnd:a,onRename:x,closable:p=!0,icon:b,size:C,editable:g=!0})=>{const v=S.useCallback(h=>i==null?void 0:i(h,{tabKey:t,name:c}),[i,t,c]),B=S.useCallback(h=>a==null?void 0:a(h,{tabKey:t,name:c}),[a,t,c]),f=S.useCallback(h=>{h.stopPropagation(),o==null||o(t)},[o,t]),R=S.useCallback(()=>e==null?void 0:e(t),[e,t]),m=n===t,E=b!=null,T=z.ComponentSizeLevels[C];return l.jsxRuntimeExports.jsxs(_.Pack,{size:C,id:t,className:r.CSS(r.CSS.BE(d,"btn"),u.CONTEXT_TARGET,x==null&&r.CSS.BEM(d,"btn","uneditable"),m&&u.CONTEXT_SELECTED,r.CSS.selected(m),r.CSS.altColor(s),p&&o!=null&&r.CSS.BEM(d,"btn","closable"),E&&r.CSS.BEM(d,"btn","has-icon")),draggable:!0,direction:"x",justify:"center",align:"center",onClick:R,onDragStart:v,onDragEnd:B,bordered:!1,rounded:!1,children:[y(b,{className:r.CSS.BE(d,"icon"),style:{color:r.CSS.shadeVar(7),height:r.CSS.levelSizeVar(T),width:r.CSS.levelSizeVar(T)}}),l.jsxRuntimeExports.jsx(H,{name:c,tabKey:t,onRename:x,editable:g,level:z.ComponentSizeLevels[C]}),p&&o!=null&&l.jsxRuntimeExports.jsx(u.Icon,{onClick:f,children:l.jsxRuntimeExports.jsx(u.e4.Close,{"aria-label":"pluto-tabs__close"})})]})},H=({onRename:n,name:s,tabKey:e,editable:o=!0,...t})=>n==null||!o?l.jsxRuntimeExports.jsx(u.Text,{noWrap:!0,...t,children:s}):l.jsxRuntimeExports.jsx(u.Editable,{id:r.CSS.B(`tab-${e}`),onChange:c=>n(e,c),value:s,noWrap:!0,...t}),Z=j.z.object({tabKey:j.z.string(),name:j.z.string(),closable:j.z.boolean().optional(),icon:j.z.unknown().optional(),editable:j.z.boolean().optional(),visible:j.z.boolean().optional()}),W=Z.extend({content:j.z.unknown().optional()}),J=Object.freeze(Object.defineProperty({__proto__:null,Content:A,Context:P,Provider:w,Selector:V,Tabs:L,rename:M,resetSelection:I,specZ:Z,tabZ:W,useContext:q,useStatic:O},Symbol.toStringTag,{value:"Module"}));exports.Icon=G;exports.Tabs=L;exports.external=J;exports.rename=M;exports.resetSelection=I;exports.resolve=y;exports.tabZ=W;exports.useStatic=O;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { S as e, a as t, b as a, t as r } from "./aggregator-23mu0FOF.js";
|
|
2
|
-
import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-
|
|
2
|
+
import { P as s, S as o, t as S, u, a as i, b as n, c as m } from "./Toggle-DcPmH9Uq.js";
|
|
3
3
|
const p = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Provider: s,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as e, d as t, e as o, f as a } from "./Toggle-
|
|
2
|
-
import { C as n, D as s, I as r, a as u, b as C, M as m, c as T, u as i } from "./Item-
|
|
1
|
+
import { C as e, d as t, e as o, f as a } from "./Toggle-DcPmH9Uq.js";
|
|
2
|
+
import { C as n, D as s, I as r, a as u, b as C, M as m, c as T, u as i } from "./Item-C3mh5Jo-.js";
|
|
3
3
|
const x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
CONTEXT_SELECTED: e,
|
|
@@ -2,7 +2,7 @@ import { j as n } from "./jsx-runtime-B6kdoens.js";
|
|
|
2
2
|
import { A as v, c as d } from "./aggregator-23mu0FOF.js";
|
|
3
3
|
import { createContext as j, useContext as f, isValidElement as h, Fragment as B } from "react";
|
|
4
4
|
import { S as m } from "./Pack-BzCJQZ58.js";
|
|
5
|
-
import { I as C, E as S, B as b, as as z } from "./Toggle-
|
|
5
|
+
import { I as C, E as S, B as b, as as z } from "./Toggle-DcPmH9Uq.js";
|
|
6
6
|
import { C as a } from "./css-DJCM-h5_.js";
|
|
7
7
|
const x = j({
|
|
8
8
|
divided: !1,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as o, I as e, T as t, g as r } from "./Toggle-
|
|
2
|
-
import { L as a } from "./Link-
|
|
1
|
+
import { B as o, I as e, T as t, g as r } from "./Toggle-DcPmH9Uq.js";
|
|
2
|
+
import { L as a } from "./Link-By1w1FIv.js";
|
|
3
3
|
const g = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Button: o,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { F as d, j as x, H as E, J as M, K as b, L as S, M as R, N as y, O as K, Q as _, R as C, U as T, V as j, W as L, X as v, Y as O, _ as h, $ as k, a0 as H, a1 as Y, a2 as Z, a3 as w, a4 as A, a5 as P, a6 as U, a7 as N } from "./Toggle-
|
|
1
|
+
import { F as d, j as x, H as E, J as M, K as b, L as S, M as R, N as y, O as K, Q as _, R as C, U as T, V as j, W as L, X as v, Y as O, _ as h, $ as k, a0 as H, a1 as Y, a2 as Z, a3 as w, a4 as A, a5 as P, a6 as U, a7 as N } from "./Toggle-DcPmH9Uq.js";
|
|
2
2
|
import { j as F } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useState as I, useEffect as $, useRef as g, useCallback as f } from "react";
|
|
4
4
|
import "./aggregator-23mu0FOF.js";
|
|
5
5
|
import { G as i, E as l } from "./css-DJCM-h5_.js";
|
|
6
6
|
import "./Pack-BzCJQZ58.js";
|
|
7
|
-
import { T as z, t as G } from "./Text-
|
|
7
|
+
import { T as z, t as G } from "./Text-tqSP4klc.js";
|
|
8
8
|
const J = (e) => {
|
|
9
9
|
const { listen: a } = d(), [c, n] = I([]);
|
|
10
10
|
return $(
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const t=require("./Toggle-
|
|
1
|
+
"use strict";const t=require("./Toggle-DrfPMqBr.cjs"),s=require("./jsx-runtime-Cek9Ww4S.cjs"),j=require("./aggregator-y-jNJhKX.cjs"),h=require("react"),l=require("./css-BghghSL0.cjs"),E=require("./Pack-Dvf8sQVK.cjs"),C=({value:r,onChange:n,onBlur:e,onlyChangeOnBlur:a,...d})=>{const[m,c]=h.useState(null),x=(i,p=!1)=>{let u=i.toString();c(u);let o=new j.m(i,"UTC");u.length<23&&(u+=".000"),o=o.add(BigInt(j.m.now().date().getTimezoneOffset()-o.date().getTimezoneOffset())*j.y.MINUTE.valueOf());let T=!1;try{T=o.fString("ISO","local").slice(0,-1)===u}catch(y){console.error(y)}T&&!a&&(n(Number(o.valueOf())),c(null)),p&&(T&&n(Number(o.valueOf())),c(null))},g=i=>{x(i.target.value,!0),c(null),e==null||e(i)},S=i=>{a&&i.key==="Enter"&&i.currentTarget.blur()},f=new j.m(r,"UTC").fString("ISO","local").slice(0,-1);return s.jsxRuntimeExports.jsx(t.Text$1,{type:"datetime-local",onBlur:g,required:!1,onKeyDown:S,value:m??f,onChange:x,...d})},R=({className:r,variant:n="error",...e})=>s.jsxRuntimeExports.jsx(t.Text,{className:l.CSS(l.CSS.B("input-help-text"),l.CSS.BM("input-help-text",n),r),level:"small",...e}),D=({className:r,required:n=!1,children:e,...a})=>s.jsxRuntimeExports.jsxs("label",{className:l.CSS(l.CSS.B("input-label"),r),...a,children:[e," ",n&&s.jsxRuntimeExports.jsx("span",{className:l.CSS.B("required-indicator"),children:"*"})]}),v=(r,n="x")=>r??(l.g.construct(n)==="y"?"stretch":"center"),b=({label:r,showLabel:n=!0,helpText:e,direction:a="y",className:d,children:m,required:c,align:x,size:g="small",padHelpText:S=!1,helpTextVariant:f,showHelpText:i=!0,...p})=>{let u;return i===!1&&n===!1?s.jsxRuntimeExports.jsx(s.jsxRuntimeExports.Fragment,{children:m}):(a==="x"?u=s.jsxRuntimeExports.jsxs(E.Space,{direction:"y",size:"small",children:[m,(S||e!=null&&e.length>0)&&s.jsxRuntimeExports.jsx(R,{variant:f,children:e})]}):u=s.jsxRuntimeExports.jsxs(E.Space,{direction:"y",size:1/3,children:[m,(S||e!=null&&e.length>0)&&s.jsxRuntimeExports.jsx(R,{variant:f,children:e})]}),s.jsxRuntimeExports.jsxs(E.Space,{className:l.CSS(l.CSS.B("input-item"),d),direction:a,size:g,align:v(x,a),...p,children:[n&&s.jsxRuntimeExports.jsx(D,{required:c,children:r}),u]}))},N=Object.freeze(Object.defineProperty({__proto__:null,Date:t.Date,DateTime:C,DragButton:t.DragButton,HelpText:R,Item:b,Label:D,Numeric:t.Numeric,Switch:t.Switch$1,Text:t.Text$1,TextArea:t.TextArea,Time:t.Time,combineDateAndTimeValue:t.combineDateAndTimeValue,useDate:t.useDate,useTime:t.useTime},Symbol.toStringTag,{value:"Module"}));exports.Item=b;exports.external=N;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, Z as a, c as s, b as t, f as r, d as o, g as n, p as u, s as c, t as l } from "./css-DJCM-h5_.js";
|
|
2
|
-
import { G as i, n as Z, o as d, p, Z as f, q as m, r as S, s as x, v as P, w as _, x as g, y as q, z as O, A as T } from "./Toggle-
|
|
2
|
+
import { G as i, n as Z, o as d, p, Z as f, q as m, r as S, s as x, v as P, w as _, x as g, y as q, z as O, A as T } from "./Toggle-DcPmH9Uq.js";
|
|
3
3
|
const y = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Color: e,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const c=require("./aggregator-y-jNJhKX.cjs"),e=require("./Toggle-
|
|
1
|
+
"use strict";const c=require("./aggregator-y-jNJhKX.cjs"),e=require("./Toggle-DrfPMqBr.cjs"),w=require("./Keyboard-D-76mv1a.cjs"),o=require("./jsx-runtime-Cek9Ww4S.cjs"),f=require("react"),g=require("./Pack-Dvf8sQVK.cjs"),M=require("./Animated-B3meZ8Go.cjs"),h=require("./css-BghghSL0.cjs"),P=require("./List-CZxRbYfm.cjs"),K=[],B=({data:t,emptyContent:n,value:r,onChange:i,allowMultiple:d,allowNone:a,hideColumnHeader:s=!1,columns:S=K,visible:p,itemHeight:m=e.Column.itemHeight,listItem:y=e.componentRenderProp(e.Column.Item),replaceOnSingle:j,omit:l,autoSelectOnNone:E,trigger:k,extraDialogContent:C,variant:x="connected",...L})=>{let b=o.jsxRuntimeExports.jsxs(e.Hover,{disabled:!p,children:[C,o.jsxRuntimeExports.jsx(e.Column.Header,{hide:s||y!=null,columns:S,children:o.jsxRuntimeExports.jsx(e.Core.Virtual,{itemHeight:m,children:y})})]});return x!=="connected"&&(b=o.jsxRuntimeExports.jsx(g.Pack,{direction:"y",borderShade:4,className:h.CSS.B("select-dialog-content"),children:b})),o.jsxRuntimeExports.jsx(P.List,{data:t,emptyContent:n,omit:l,children:o.jsxRuntimeExports.jsx(e.Selector,{value:r,onChange:i,allowMultiple:d,allowNone:a,replaceOnSingle:j,autoSelectOnNone:E,children:o.jsxRuntimeExports.jsxs(e.Dialog,{visible:p,className:h.CSS.B("select"),keepMounted:!1,variant:x,...L,children:[k,b]})})})},R=({children:t=N,value:n,onChange:r,entryRenderKey:i="key",allowNone:d=!1,allowMultiple:a=!1,data:s,replaceOnSingle:S,className:p,size:m="small",...y})=>{const{onSelect:j}=e.useSelect({allowMultiple:a,allowNone:d,replaceOnSingle:S,data:s,value:n,onChange:r});return o.jsxRuntimeExports.jsx(g.Pack,{borderShade:4,className:h.CSS(h.CSS.B("select-button"),p),size:m,...y,children:s==null?void 0:s.map(l=>t({key:l.key,onClick:()=>j(l.key),size:m,selected:l.key===n,entry:l,title:l[i]}))})},N=({key:t,onClick:n,selected:r,title:i})=>o.jsxRuntimeExports.jsx(e.Button,{onClick:n,variant:r?"filled":"outlined",size:"small",children:i},t),v=({selected:t,renderKey:n,toggle:r,visible:i,children:d,...a})=>o.jsxRuntimeExports.jsx(e.Button,{className:h.CSS.B("select-dropdown-button"),onClick:r,variant:"outlined",endIcon:o.jsxRuntimeExports.jsx(M.Animated,{enabledLoc:"bottom",disabledLoc:"left",enabled:i}),...a,children:d??(t==null?void 0:t[n])}),T=e.componentRenderProp(v),Z=({data:t,value:n,columns:r=[],children:i=T,entryRenderKey:d="key",allowNone:a=!1,onChange:s,disabled:S,hideColumnHeader:p=!0,variant:m,dropdownVariant:y,...j})=>{const{close:l,visible:E,toggle:k}=e.use$2(),[C,x]=f.useState((t==null?void 0:t.find(u=>u.key===n))??null);f.useEffect(()=>{x((t==null?void 0:t.find(u=>u.key===n))??null)},[t,n]);const L=f.useCallback((u,A)=>{if(!(Array.isArray(u)||u===null)){if(l(),u==null)return x(null),s(n);x(A.entries[0]),s(u)}},[s,n,l,x]),b={selected:C,renderKey:d,toggle:k,visible:E,disabled:S};return m!=null&&(b.variant=m),o.jsxRuntimeExports.jsx(B,{close:l,data:t,visible:E,value:n,onChange:L,allowMultiple:!1,allowNone:a,columns:r,hideColumnHeader:p,variant:y,trigger:o.jsxRuntimeExports.jsx(o.jsxRuntimeExports.Fragment,{children:i(b)}),...j})},_=[{key:"h2",label:"XL"},{key:"h3",label:"L"},{key:"h4",label:"M"},{key:"h5",label:"S"},{key:"small",label:"XS"}],D=({children:t,...n})=>o.jsxRuntimeExports.jsx(R,{...n,data:_,entryRenderKey:"label",children:t}),z=[{key:600,label:"Bold"},{key:500,label:"Medium"},{key:400,label:"Normal"},{key:250,label:"Light"}],q=({children:t,...n})=>o.jsxRuntimeExports.jsx(R,{...n,data:z,entryRenderKey:"label",children:t}),W=Object.freeze(Object.defineProperty({__proto__:null,ComponentSizeLevels:c.ComponentSizeLevels,CoreDateTime:e.CoreDateTime,DateTime:e.DateTime,Editable:e.Editable,Keyboard:w.Keyboard,LEVELS:c.LEVELS,LevelComponentSizes:c.LevelComponentSizes,Link:e.Link,MaybeEditable:e.MaybeEditable,SelectLevel:D,SelectWeight:q,Symbols:e.Symbols,Text:e.Text,WithIcon:e.WithIcon,asyncEdit:e.asyncEdit,dimensions:c.dimensions,downLevel:c.downLevel,edit:e.edit,evalColor:e.evalColor,formatChildren:e.formatChildren,levelZ:c.levelZ,specZ:c.specZ,upLevel:c.upLevel,weightZ:c.weightZ},Symbol.toStringTag,{value:"Module"}));exports.BaseButton=v;exports.Button=R;exports.Core=B;exports.DropdownButton=Z;exports.SelectLevel=D;exports.SelectWeight=q;exports.defaultButton=T;exports.external=W;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
2
|
-
import { h as T, ad as V, f as W, I as O, e as X, d as Z, C as q, j as G, aq as F } from "./Toggle-
|
|
2
|
+
import { h as T, ad as V, f as W, I as O, e as X, d as Z, C as q, j as G, aq as F } from "./Toggle-DcPmH9Uq.js";
|
|
3
3
|
import { cloneElement as w, createContext as H, useCallback as N, useContext as J } from "react";
|
|
4
4
|
import { S as P, P as Q } from "./Pack-BzCJQZ58.js";
|
|
5
5
|
import { C as o, e as U } from "./css-DJCM-h5_.js";
|
|
6
6
|
import { _ as Y, p as D, C as k } from "./aggregator-23mu0FOF.js";
|
|
7
|
-
import "./Item-
|
|
7
|
+
import "./Item-C3mh5Jo-.js";
|
|
8
8
|
import { z as p } from "zod";
|
|
9
9
|
const y = (n, s) => w(n, {
|
|
10
10
|
className: o(n.props.className, o.B("sub"), o.M(s))
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=require("./aggregator-y-jNJhKX.cjs"),e=require("./Toggle-
|
|
1
|
+
"use strict";const r=require("./aggregator-y-jNJhKX.cjs"),e=require("./Toggle-DrfPMqBr.cjs"),t=Object.freeze(Object.defineProperty({__proto__:null,Provider:e.Provider,SYNNAX_DARK:r.SYNNAX_DARK,SYNNAX_LIGHT:r.SYNNAX_LIGHT,SYNNAX_THEMES:r.SYNNAX_THEMES,Switch:e.Switch,get Theming(){return t},themeZ:r.themeZ,toCSSVars:e.toCSSVars,use:e.use,useContext:e.useContext,useProvider:e.useProvider,useTypography:e.useTypography},Symbol.toStringTag,{value:"Module"}));exports.external=t;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { av as v, j as D, aw as N, ax as O, ay as w, az as z, aA as I, aB as A, aC as B, aD as C, aE as E } from "./Toggle-
|
|
1
|
+
import { av as v, j as D, aw as N, ax as O, ay as w, az as z, aA as I, aB as A, aC as B, aD as C, aE as E } from "./Toggle-DcPmH9Uq.js";
|
|
2
2
|
import { j as t } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { o as S, y as _ } from "./aggregator-23mu0FOF.js";
|
|
4
4
|
import { useState as M } from "react";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Toggle-
|
|
1
|
+
"use strict";const e=require("./Toggle-DrfPMqBr.cjs"),M=require("./jsx-runtime-Cek9Ww4S.cjs"),u=require("react");require("./aggregator-y-jNJhKX.cjs");const o=require("./css-BghghSL0.cjs");require("./Pack-Dvf8sQVK.cjs");const f=require("./Text-Bq9B_1wQ.cjs"),S=t=>{const{listen:i}=e.useContext$2(),[a,l]=u.useState([]);return u.useEffect(()=>i(({next:[r]})=>l(r??[])),[i,l]),M.jsxRuntimeExports.jsx(e.Text,{...t,children:a.join(" ")})},E=({onDrag:t,triggers:i=[["MouseLeft"],["MouseRight"]],bound:a,loose:l=!1})=>{const r=u.useRef(null),g=u.useRef(o.G.ZERO),d=u.useCallback(s=>{const n=o.G.construct(s);if(r.current===null)return;const{triggers:c}=r.current;t({box:o.Eo.construct(g.current,n),cursor:n,triggers:c,stage:"during"})},[t]),m=u.useCallback(s=>{const{stage:n,cursor:c}=s;n==="start"?(t({box:o.Eo.construct(c),...s}),window.addEventListener("mousemove",d),r.current=s,g.current=c):n==="end"&&r.current!=null&&(t({box:o.Eo.construct(g.current,c),...s}),window.removeEventListener("mousemove",d),r.current=null,g.current=o.G.ZERO)},[t]);e.use$1({triggers:i,callback:m,region:a,loose:l})},x=Object.freeze(Object.defineProperty({__proto__:null,ALPHANUMERIC_KEYS:e.ALPHANUMERIC_KEYS,ALPHANUMERIC_KEYS_SET:e.ALPHANUMERIC_KEYS_SET,KEYS:e.KEYS,MOUSE_KEYS:e.MOUSE_KEYS,Provider:e.Provider$2,Status:S,Text:f.Text,compareModeConfigs:e.compareModeConfigs,determineMode:e.determineMode,diff:e.diff,eventKey:e.eventKey,filter:e.filter,flattenConfig:e.flattenConfig,keyZ:e.keyZ,keyboardKey:e.keyboardKey,match:e.match,matchCallback:e.matchCallback,mouseKey:e.mouseKey,mouseKeyZ:e.mouseKeyZ,purge:e.purge,purgeMouse:e.purgeMouse,toSymbols:f.toSymbols,triggerZ:e.triggerZ,use:e.use$1,useContext:e.useContext$2,useDrag:E,useFlattenedMemoConfig:e.useFlattenedMemoConfig,useHeld:e.useHeld,useHeldRef:e.useHeldRef},Symbol.toStringTag,{value:"Module"}));exports.external=x;exports.useDrag=E;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { C as D, L as T, c as M, d as w, e as N, l as _, s as v, f as K, w as P } from "./aggregator-23mu0FOF.js";
|
|
2
|
-
import { aj as H, ak as x, ae as O, af as R, al as z, ai as C, am as I, B as g, an as W, ao as Z, ap as F, aq as U, ar as V, ab as X, i as $, j as q, as as G, ah as J, ag as Q, at as Y, au as ee } from "./Toggle-
|
|
3
|
-
import { K as se } from "./Keyboard-
|
|
2
|
+
import { aj as H, ak as x, ae as O, af as R, al as z, ai as C, am as I, B as g, an as W, ao as Z, ap as F, aq as U, ar as V, ab as X, i as $, j as q, as as G, ah as J, ag as Q, at as Y, au as ee } from "./Toggle-DcPmH9Uq.js";
|
|
3
|
+
import { K as se } from "./Keyboard-DbyeBAzq.js";
|
|
4
4
|
import { j as l } from "./jsx-runtime-B6kdoens.js";
|
|
5
5
|
import { useState as le, useEffect as oe, useCallback as te } from "react";
|
|
6
6
|
import { P as B } from "./Pack-BzCJQZ58.js";
|
|
7
|
-
import { A as ne } from "./Animated-
|
|
7
|
+
import { A as ne } from "./Animated-BMxljHxY.js";
|
|
8
8
|
import { C as p } from "./css-DJCM-h5_.js";
|
|
9
|
-
import { L as ae } from "./List-
|
|
9
|
+
import { L as ae } from "./List-S1wnpuEv.js";
|
|
10
10
|
const re = [], ie = ({
|
|
11
11
|
data: e,
|
|
12
12
|
emptyContent: s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-y-jNJhKX.cjs"),c=require("react"),S=require("./Pack-Dvf8sQVK.cjs"),a=require("./Toggle-
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-y-jNJhKX.cjs"),c=require("react"),S=require("./Pack-Dvf8sQVK.cjs"),a=require("./Toggle-DrfPMqBr.cjs"),o=require("./css-BghghSL0.cjs"),p=c.createContext({divided:!1,level:"h1"}),l=()=>c.useContext(p),j=({children:s,className:r,level:e="h1",divided:n=!1,...t})=>i.jsxRuntimeExports.jsx(p.Provider,{value:{level:e,divided:n},children:i.jsxRuntimeExports.jsx(S.Space,{el:"header",direction:"x",justify:"spaceBetween",className:o.CSS(o.CSS.B("header"),o.CSS.bordered("bottom"),n&&o.CSS.BM("header","divided"),r),...t,children:s})}),m=({children:s=[]})=>{const{level:r,divided:e}=l();return i.jsxRuntimeExports.jsx(S.Space,{direction:"x",size:"small",align:"center",className:o.CSS.BE("header","actions"),children:d.A(s).map((n,t)=>i.jsxRuntimeExports.jsx(E,{index:t,level:r,divided:e,children:n},t))})},E=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,key:C,...h}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...h},C??s)}return i.jsxRuntimeExports.jsxs(c.Fragment,{children:[n&&i.jsxRuntimeExports.jsx(a.Divider,{}),t]},s)},v=({children:s="",className:r,onClick:e,...n})=>{const{level:t}=l();return i.jsxRuntimeExports.jsx(a.Button,{variant:"text",size:d.LevelComponentSizes[t],onClick:e,className:o.CSS(o.CSS.B("header-button-title"),r),sharp:!0,...n,children:s})},R=({className:s,level:r,...e})=>{const{level:n,divided:t}=l();return i.jsxRuntimeExports.jsx(a.WithIcon,{className:o.CSS(o.CSS.BE("header","text"),s),level:r??n,divided:t,size:1.5,...e})},g=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:R,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=g;
|
package/dist/header.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./external-k9_z2UE6.cjs");exports.Header=e.external;
|
package/dist/header.js
CHANGED