@synnaxlabs/pluto 0.27.0 → 0.28.1
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-CqT7-gZp.js → Animated-C6We8oGt.js} +2 -2
- package/dist/{Animated-CZ63NC05.cjs → Animated-CPJOHwpl.cjs} +1 -1
- package/dist/{Keyboard-BIXxwSvF.cjs → Keyboard-Dw9MQvaJ.cjs} +1 -1
- package/dist/{Keyboard-fZbH7UAB.js → Keyboard-fQ7JpUW9.js} +2 -2
- package/dist/{LinePlot-Cc3CIgai.js → LinePlot-CS2iDNHW.js} +1839 -1840
- package/dist/{LinePlot-C6UR06-e.cjs → LinePlot-DNgFi7SV.cjs} +9 -9
- package/dist/{Link-BDA_zOS7.js → Link-2gkxmnh_.js} +1 -1
- package/dist/{Link-CYHWDE13.cjs → Link-hLjXIZ1T.cjs} +1 -1
- package/dist/List-B60FZ4Be.js +22 -0
- package/dist/List-Ce67Og-K.cjs +1 -0
- package/dist/Pack-BNnq0Pnk.cjs +1 -0
- package/dist/Pack-CcDPYCmE.js +132 -0
- package/dist/{Toggle-DBbZoe_A.cjs → Toggle-GfklnU2t.cjs} +39 -39
- package/dist/{Toggle-0_fgC0fe.js → Toggle-Q3wJPeGh.js} +6752 -6724
- package/dist/{Video-Breqk8IV.js → Video-CA6Au-LV.js} +1 -1
- package/dist/{Video-yUL4iEVD.cjs → Video-Ch_mMn__.cjs} +1 -1
- package/dist/aggregator-C5NNOlCt.cjs +57 -0
- package/dist/{aggregator-BQAqJzjZ.js → aggregator-J7DZKy5x.js} +2445 -2233
- package/dist/align.cjs +1 -1
- package/dist/align.js +1 -1
- 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/{css-Dic6npsA.js → css-BHfxGWOW.js} +1 -1
- package/dist/{css-B7TifAVb.cjs → css-C4GOlJsi.cjs} +1 -1
- package/dist/css.cjs +1 -1
- package/dist/css.js +2 -2
- package/dist/dropdown.cjs +1 -1
- package/dist/dropdown.js +1 -1
- package/dist/ether.cjs +1 -1
- package/dist/ether.js +5 -5
- package/dist/{external-BWE1zUh9.js → external-2nFcIpzY.js} +11 -11
- package/dist/external-5YOxaVIG.js +259 -0
- package/dist/{external-DrJrhKqG.cjs → external-BCVvWczs.cjs} +1 -1
- package/dist/{external-o0TYQr9r.cjs → external-BRvjJOyT.cjs} +1 -1
- package/dist/{external-DR0u7Ium.cjs → external-BU8-3fqq.cjs} +1 -1
- package/dist/external-C1Pb6QsR.cjs +1 -0
- package/dist/{external-CVzm1emB.js → external-C6Z7BnOm.js} +4 -4
- package/dist/{external-69Ao7j7k.js → external-C6mP_Zl1.js} +10 -10
- package/dist/{external-DddErJ4X.cjs → external-CRCXQIg6.cjs} +1 -1
- package/dist/{external-BjLjce7d.js → external-CVJXZvQB.js} +2 -2
- package/dist/{external-By-puR46.js → external-C_sBb_mC.js} +3 -3
- package/dist/{external-C3c1BoRE.cjs → external-Cly1pTAH.cjs} +1 -1
- package/dist/{external-BUFyYRiR.js → external-Cna0OURr.js} +4 -4
- package/dist/{external-B4OSNdH_.cjs → external-CqxHdgvr.cjs} +1 -1
- package/dist/{external-DH3sAQ0c.js → external-Cv1PHg1z.js} +1 -1
- package/dist/{external-DA_ZnqPs.js → external-CvQxCzBO.js} +110 -107
- package/dist/{external-CNTzwgmW.js → external-CvWOg3Wh.js} +6 -6
- package/dist/{external-mBw4Opva.cjs → external-DLWdjzgl.cjs} +1 -1
- package/dist/{external-BnJhvG1t.cjs → external-DSJ7SuxL.cjs} +1 -1
- package/dist/{external-CpUUO6Ja.cjs → external-DfXrhUoK.cjs} +1 -1
- package/dist/{external-CPUf0VYV.js → external-QN9xgtCT.js} +2 -2
- package/dist/{external-DeMvP0U_.js → external-UQ_KRv4U.js} +5 -5
- package/dist/external-Xze9tWIL.cjs +1 -0
- package/dist/{external-CHYxZzhb.cjs → external-bcUzt2-X.cjs} +1 -1
- package/dist/header.cjs +1 -1
- package/dist/header.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +3541 -3440
- 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/aether/main.d.ts.map +1 -1
- package/dist/src/alamos/aether/alamos.d.ts +4 -4
- package/dist/src/align/Pack.d.ts +2 -0
- package/dist/src/align/Pack.d.ts.map +1 -1
- package/dist/src/align/Space.d.ts +2 -0
- package/dist/src/align/Space.d.ts.map +1 -1
- package/dist/src/breadcrumb/Breadcrumb.d.ts +31 -0
- package/dist/src/breadcrumb/Breadcrumb.d.ts.map +1 -0
- package/dist/src/breadcrumb/index.d.ts +2 -0
- package/dist/src/breadcrumb/index.d.ts.map +1 -0
- package/dist/src/button/Button.d.ts +1 -1
- package/dist/src/button/Button.d.ts.map +1 -1
- package/dist/src/css/css.d.ts +1 -0
- package/dist/src/css/css.d.ts.map +1 -1
- package/dist/src/dropdown/Dropdown.d.ts.map +1 -1
- package/dist/src/form/Field.d.ts +5 -1
- package/dist/src/form/Field.d.ts.map +1 -1
- package/dist/src/form/Form.d.ts +17 -6
- package/dist/src/form/Form.d.ts.map +1 -1
- package/dist/src/header/Header.d.ts +0 -4
- package/dist/src/header/Header.d.ts.map +1 -1
- package/dist/src/icon/Icon.d.ts +3 -0
- package/dist/src/icon/Icon.d.ts.map +1 -1
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/input/Numeric.d.ts.map +1 -1
- package/dist/src/input/Text.d.ts.map +1 -1
- package/dist/src/input/types.d.ts +1 -1
- package/dist/src/input/types.d.ts.map +1 -1
- package/dist/src/list/Core.d.ts +1 -1
- package/dist/src/list/Core.d.ts.map +1 -1
- package/dist/src/list/Search.d.ts.map +1 -1
- package/dist/src/mosaic/tree.d.ts.map +1 -1
- package/dist/src/observe/use.d.ts.map +1 -1
- package/dist/src/ranger/TimeRangeChip.d.ts +2 -1
- package/dist/src/ranger/TimeRangeChip.d.ts.map +1 -1
- package/dist/src/select/Button.d.ts +3 -2
- package/dist/src/select/Button.d.ts.map +1 -1
- package/dist/src/select/List.d.ts.map +1 -1
- package/dist/src/synnax/Provider.d.ts +1 -0
- package/dist/src/synnax/Provider.d.ts.map +1 -1
- package/dist/src/synnax/aether/provider.d.ts +45 -0
- package/dist/src/synnax/aether/provider.d.ts.map +1 -1
- package/dist/src/tag/Tag.d.ts +1 -1
- package/dist/src/tag/Tag.d.ts.map +1 -1
- package/dist/src/telem/control/aether/controller.d.ts +2 -1
- package/dist/src/telem/control/aether/controller.d.ts.map +1 -1
- package/dist/src/text/core/types.d.ts +2 -1
- package/dist/src/text/core/types.d.ts.map +1 -1
- package/dist/src/theming/core/theme.d.ts +148 -147
- package/dist/src/theming/core/theme.d.ts.map +1 -1
- package/dist/src/tree/Tree.d.ts.map +1 -1
- package/dist/src/vis/diagram/aether/Diagram.d.ts +12 -12
- package/dist/src/vis/lineplot/Axis.d.ts.map +1 -1
- package/dist/src/vis/lineplot/aether/LinePlot.d.ts +8 -8
- package/dist/src/vis/lineplot/range/aether/provider.d.ts +4 -4
- 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/dist/{units-Bq69s424.cjs → units-CKv8dczK.cjs} +1 -1
- package/dist/{units-BynnjwvA.js → units-t-SdMRna.js} +1 -1
- package/dist/video.cjs +1 -1
- package/dist/video.js +1 -1
- package/package.json +5 -5
- package/dist/List-DS2DLWjR.js +0 -22
- package/dist/List-qhbpsD-f.cjs +0 -1
- package/dist/Pack--3w90epp.cjs +0 -1
- package/dist/Pack-B7_4Xpi5.js +0 -125
- package/dist/aggregator-Bs9fTewE.cjs +0 -51
- package/dist/external-3Q2dzLIL.cjs +0 -1
- package/dist/external-CAS1RuN6.cjs +0 -1
- package/dist/external-vJteyGA3.js +0 -241
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { Y as p,
|
|
1
|
+
import { Y as p, f as y, U as d, e as g, Z as b, _ as h, $ as C, a0 as j, a1 as T, a2 as K, a3 as R, a4 as _, a5 as k, a6 as L, a7 as v, a8 as A, a9 as O, aa as Z, ab as U, ac as Y, ad as w, ae as H, af as P, ag as N, ah as z, ai as F, aj as I, z as $ } from "./Toggle-Q3wJPeGh.js";
|
|
2
2
|
import { j as r } from "./jsx-runtime-B6kdoens.js";
|
|
3
3
|
import { useState as q, useEffect as X, useRef as x, useCallback as M } from "react";
|
|
4
|
-
import "./aggregator-
|
|
5
|
-
import { q as l, T as f } from "./css-
|
|
6
|
-
import "./Pack-
|
|
7
|
-
import { K as B } from "./Keyboard-
|
|
4
|
+
import "./aggregator-J7DZKy5x.js";
|
|
5
|
+
import { q as l, T as f } from "./css-BHfxGWOW.js";
|
|
6
|
+
import "./Pack-CcDPYCmE.js";
|
|
7
|
+
import { K as B } from "./Keyboard-fQ7JpUW9.js";
|
|
8
8
|
const G = (e) => {
|
|
9
9
|
const { listen: t } = p(), [n, c] = q([]);
|
|
10
10
|
return X(
|
|
@@ -50,19 +50,19 @@ const G = (e) => {
|
|
|
50
50
|
});
|
|
51
51
|
},
|
|
52
52
|
[e]
|
|
53
|
-
),
|
|
53
|
+
), S = M(
|
|
54
54
|
(o) => {
|
|
55
55
|
const { stage: u, cursor: i } = o;
|
|
56
56
|
u === "start" ? (e({ box: f.construct(i), ...o }), window.addEventListener("mousemove", m), s.current = o, a.current = i) : u === "end" && s.current != null && (e({ box: f.construct(a.current, i), ...o }), window.removeEventListener("mousemove", m), s.current = null, a.current = l.ZERO);
|
|
57
57
|
},
|
|
58
58
|
[e]
|
|
59
59
|
);
|
|
60
|
-
b({ triggers: t, callback:
|
|
60
|
+
b({ triggers: t, callback: S, region: n, loose: c });
|
|
61
61
|
}, ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
62
62
|
__proto__: null,
|
|
63
|
-
ALPHANUMERIC_KEYS:
|
|
64
|
-
ALPHANUMERIC_KEYS_SET:
|
|
65
|
-
KEYS:
|
|
63
|
+
ALPHANUMERIC_KEYS: h,
|
|
64
|
+
ALPHANUMERIC_KEYS_SET: C,
|
|
65
|
+
KEYS: j,
|
|
66
66
|
MOUSE_KEYS: T,
|
|
67
67
|
Provider: K,
|
|
68
68
|
Status: G,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const m=require("./Toggle-DBbZoe_A.cjs"),ke=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),he=require("./aggregator-Bs9fTewE.cjs");require("./css-B7TifAVb.cjs");require("./Pack--3w90epp.cjs");const ve=require("./List-qhbpsD-f.cjs"),W=Symbol(),ue=Symbol(),X=Symbol();let je=(t,e)=>new Proxy(t,e);const z=Object.getPrototypeOf,se=new WeakMap,J=t=>t&&(se.has(t)?se.get(t):z(t)===Object.prototype||z(t)===Array.prototype),re=t=>typeof t=="object"&&t!==null,ne=new WeakMap,fe=t=>t[X]||t,de=(t,e,s)=>{if(!J(t))return t;const r=fe(t),n=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let i=s&&s.get(r);return i&&i[1].f===n||(i=((c,o)=>{const a={f:o};let h=!1;const l=(d,g)=>{if(!h){let p=a.a.get(c);p||(p=new Set,a.a.set(c,p)),g&&p.has(W)||p.add(d)}},u={get:(d,g)=>g===X?c:(l(g),de(d[g],a.a,a.c)),has:(d,g)=>g===ue?(h=!0,a.a.delete(c),!0):(l(g),g in d),getOwnPropertyDescriptor:(d,g)=>(l(g,!0),Object.getOwnPropertyDescriptor(d,g)),ownKeys:d=>(l(W),Reflect.ownKeys(d))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,n),i[1].p=je(n?(c=>{let o=ne.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(z(c),a)}ne.set(c,o)}return o})(r):r,i[0]),s&&s.set(r,i)),i[1].a=e,i[1].c=s,i[1].p},Te=(t,e)=>{const s=Reflect.ownKeys(t),r=Reflect.ownKeys(e);return s.length!==r.length||s.some((n,i)=>n!==r[i])},ge=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!re(t)||!re(e))return!0;const n=s.get(fe(t));if(!n)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 i=null;for(const c of n){const o=c===W?Te(t,e):ge(t[c],e[c],s,r);if(o!==!0&&o!==!1||(i=o),i)break}return i===null&&(i=!0),r&&r.set(t,{n:e,g:i}),i},Fe=t=>!!J(t)&&ue in t,Z=t=>J(t)&&t[X]||null,H=t=>typeof t=="object"&&t!==null,pe=(t,e)=>{if(!H(t))return t;const s=Z(t);return s!==null?(Fe(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const i=pe(n,e);Object.is(i,n)||(t[r]=i)})),t)},F=(t,e,s)=>{if(!H(t)||!H(e))return;const r=s.get(Z(e)||e);r&&r.forEach(n=>{F(t[n],e[n],s)})},Ne=(t,e)=>{var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,i=[],c=new WeakMap,o=new WeakMap;return a=>{const h=Z(a)||a,l=c.get(h);if(l)return F(a,l.o,l.a),l.r;for(let M=0;M<n;M+=1){const y=i[(r+M)%n];if(!y)break;if(!ge(y.o,a,y.a,new WeakMap))return c.set(h,y),F(a,y.o,y.a),y.r}const u=new WeakMap,d=de(a,u,o),g=pe(t(d),new Set);F(a,a,u);const p={o:a,r:g,a:u};return r=(r-1+n)%n,i[r]=p,c.set(h,p),g}},me=(t,e)=>he.w$1.RUNTIME==="browser"?Ne(t,e):t;function I(t){return Array.isArray?Array.isArray(t):xe(t)==="[object Array]"}const De=1/0;function Pe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-De?"-0":e}function Ke(t){return t==null?"":Pe(t)}function _(t){return typeof t=="string"}function Me(t){return typeof t=="number"}function We(t){return t===!0||t===!1||ze(t)&&xe(t)=="[object Boolean]"}function ye(t){return typeof t=="object"}function ze(t){return ye(t)&&t!==null}function x(t){return t!=null}function K(t){return!t.trim().length}function xe(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const He="Incorrect 'index' type",Ue=t=>`Invalid value for key ${t}`,Ve=t=>`Pattern length exceeds max of ${t}.`,Be=t=>`Missing ${t} property in key`,Ge=t=>`Property 'weight' in key '${t}' must be a positive integer`,ie=Object.prototype.hasOwnProperty;class Ye{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=Se(r);this._keys.push(n),this._keyMap[n.id]=n,s+=n.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 Se(t){let e=null,s=null,r=null,n=1,i=null;if(_(t)||I(t))r=t,e=ce(t),s=U(t);else{if(!ie.call(t,"name"))throw new Error(Be("name"));const c=t.name;if(r=c,ie.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Ge(c));e=ce(c),s=U(c),i=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:i}}function ce(t){return I(t)?t:t.split(".")}function U(t){return I(t)?t.join("."):t}function Qe(t,e){let s=[],r=!1;const n=(i,c,o)=>{if(x(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!x(h))return;if(o===c.length-1&&(_(h)||Me(h)||We(h)))s.push(Ke(h));else if(I(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)n(h[l],c,o+1)}else c.length&&n(h,c,o+1)}};return n(t,_(e)?e.split("."):e,0),r?s:s[0]}const Xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Je={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},Ze={location:0,threshold:.6,distance:100},qe={useExtendedSearch:!1,getFn:Qe,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...Je,...Xe,...Ze,...qe};const et=/[^ ]+/g;function tt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const i=n.match(et).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(i,o),o},clear(){s.clear()}}}class q{constructor({getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){this.norm=tt(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,_(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();_(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(!x(e)||K(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((n,i)=>{let c=n.getFn?n.getFn(e):this.getFn(e,n.path);if(x(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(x(l))if(_(l)&&!K(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else I(l)&&l.forEach((u,d)=>{a.push({nestedArrIndex:d,value:u})})}r.$[i]=o}else if(_(c)&&!K(c)){let o={v:c,n:this.norm.get(c)};r.$[i]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(t,e,{getFn:s=f.getFn,fieldNormWeight:r=f.fieldNormWeight}={}){const n=new q({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(Se)),n.setSources(e),n.create(),n}function st(t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const{keys:r,records:n}=t,i=new q({getFn:e,fieldNormWeight:s});return i.setKeys(r),i.setIndexRecords(n),i}function T(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const c=e/t.length;if(i)return c;const o=Math.abs(r-s);return n?c+o/n:o?1:c}function rt(t=[],e=f.minMatchCharLength){let s=[],r=-1,n=-1,i=0;for(let c=t.length;i<c;i+=1){let o=t[i];o&&r===-1?r=i:!o&&r!==-1&&(n=i-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[i-1]&&i-r>=e&&s.push([r,i-1]),s}const L=32;function nt(t,e,s,{location:r=f.location,distance:n=f.distance,threshold:i=f.threshold,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:h=f.ignoreLocation}={}){if(e.length>L)throw new Error(Ve(L));const l=e.length,u=t.length,d=Math.max(0,Math.min(r,u));let g=i,p=d;const M=o>1||a,y=M?Array(u):[];let b;for(;(b=t.indexOf(e,p))>-1;){let S=T(e,{currentLocation:b,expectedLocation:d,distance:n,ignoreLocation:h});if(g=Math.min(S,g),p=b+l,M){let w=0;for(;w<l;)y[b+w]=1,w+=1}}p=-1;let R=[],C=1,v=l+u;const Re=1<<l-1;for(let S=0;S<l;S+=1){let w=0,A=v;for(;w<A;)T(e,{errors:S,currentLocation:d+A,expectedLocation:d,distance:n,ignoreLocation:h})<=g?w=A:v=A,A=Math.floor((v-w)/2+w);v=A;let ee=Math.max(1,d-A+1),P=c?u:Math.min(d+A,u)+l,k=Array(P+2);k[P+1]=(1<<S)-1;for(let E=P;E>=ee;E-=1){let j=E-1,te=s[t.charAt(j)];if(M&&(y[j]=+!!te),k[E]=(k[E+1]<<1|1)&te,S&&(k[E]|=(R[E+1]|R[E])<<1|1|R[E+1]),k[E]&Re&&(C=T(e,{errors:S,currentLocation:j,expectedLocation:d,distance:n,ignoreLocation:h}),C<=g)){if(g=C,p=j,p<=d)break;ee=Math.max(1,2*d-p)}}if(T(e,{errors:S+1,currentLocation:d,expectedLocation:d,distance:n,ignoreLocation:h})>g)break;R=k}const D={isMatch:p>=0,score:Math.max(.001,C)};if(M){const S=rt(y,o);S.length?a&&(D.indices=S):D.isMatch=!1}return D}function it(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<r-s-1}return e}class _e{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:it(d),startIndex:g})},u=this.pattern.length;if(u>L){let d=0;const g=u%L,p=u-g;for(;d<p;)l(this.pattern.substr(d,L),d),d+=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:n,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:y})=>{const{isMatch:b,score:R,indices:C}=nt(e,p,M,{location:n+y,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});b&&(d=!0),u+=R,b&&C&&(l=[...l,...C])});let g={isMatch:d,score:d?u/this.chunks.length:1};return d&&r&&(g.indices=l),g}}class O{constructor(e){this.pattern=e}static isMultiMatch(e){return oe(e,this.multiRegex)}static isSingleMatch(e){return oe(e,this.singleRegex)}search(){}}function oe(t,e){const s=t.match(e);return s?s[1]:null}class ct extends O{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 ot extends O{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 at extends O{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 lt extends O{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 ht extends O{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 ut extends O{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 be extends O{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){super(e),this._bitapSearch=new _e(e,{location:s,threshold:r,distance:n,includeMatches:i,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 Ie extends O{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const n=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+i,n.push([r,s-1]);const c=!!n.length;return{isMatch:c,score:c?0:1,indices:n}}}const V=[ct,Ie,at,lt,ut,ht,ot,be],ae=V.length,ft=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dt="|";function gt(t,e={}){return t.split(dt).map(s=>{let r=s.trim().split(ft).filter(i=>i&&!!i.trim()),n=[];for(let i=0,c=r.length;i<c;i+=1){const o=r[i];let a=!1,h=-1;for(;!a&&++h<ae;){const l=V[h];let u=l.isMultiMatch(o);u&&(n.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ae;){const l=V[h];let u=l.isSingleMatch(o);if(u){n.push(new l(u,e));break}}}return n})}const pt=new Set([be.type,Ie.type]);class mt{constructor(e,{isCaseSensitive:s=f.isCaseSensitive,includeMatches:r=f.includeMatches,minMatchCharLength:n=f.minMatchCharLength,ignoreLocation:i=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:o=f.location,threshold:a=f.threshold,distance:h=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:n,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=gt(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:n}=this.options;e=n?e:e.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let u=0,d=l.length;u<d;u+=1){const g=l[u],{isMatch:p,indices:M,score:y}=g.search(e);if(p){if(i+=1,o+=y,r){const b=g.constructor.type;pt.has(b)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let u={isMatch:!0,score:o/i};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const B=[];function Mt(...t){B.push(...t)}function G(t,e){for(let s=0,r=B.length;s<r;s+=1){let n=B[s];if(n.condition(t,e))return new n(t,e)}return new _e(t,e)}const N={AND:"$and",OR:"$or"},Y={PATH:"$path",PATTERN:"$val"},Q=t=>!!(t[N.AND]||t[N.OR]),yt=t=>!!t[Y.PATH],xt=t=>!I(t)&&ye(t)&&!Q(t),le=t=>({[N.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function we(t,e,{auto:s=!0}={}){const r=n=>{let i=Object.keys(n);const c=yt(n);if(!c&&i.length>1&&!Q(n))return r(le(n));if(xt(n)){const a=c?n[Y.PATH]:i[0],h=c?n[Y.PATTERN]:n[a];if(!_(h))throw new Error(Ue(a));const l={keyId:U(a),pattern:h};return s&&(l.searcher=G(h,e)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=n[a];I(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return Q(t)||(t=le(t)),r(t)}function St(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:i,score:c})=>{const o=n?n.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:i))}),s.score=r})}function Et(t,e){const s=t.matches;e.matches=[],x(s)&&s.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let c={indices:n,value:i};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function _t(t,e){e.score=t.score}function bt(t,e,{includeMatches:s=f.includeMatches,includeScore:r=f.includeScore}={}){const n=[];return s&&n.push(Et),r&&n.push(_t),t.map(i=>{const{idx:c}=i,o={item:e[c],refIndex:c};return n.length&&n.forEach(a=>{a(i,o)}),o})}class ${constructor(e,s={},r){this.options={...f,...s},this.options.useExtendedSearch,this._keyStore=new Ye(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof q))throw new Error(He);this._myIndex=s||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,s.push(i))}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:n,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=_(e)?_(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return St(a,{ignoreFieldNorm:o}),i&&a.sort(c),Me(s)&&s>-1&&(a=a.slice(0,s)),bt(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=G(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&n.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),n}_searchLogical(e){const s=we(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,d=o.children.length;u<d;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===N.AND)return[]}return l},n=this._myIndex.records,i={},c=[];return n.forEach(({$:o,i:a})=>{if(x(o)){let h=r(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=G(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:c,i:o})=>{if(!x(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:e,value:s,searcher:r}){if(!x(s))return[];let n=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=r.searchIn(i);a&&n.push({score:h,key:e,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(i);o&&n.push({score:a,key:e,value:i,norm:c,indices:h})}return n}}$.version="7.0.0";$.createIndex=Ee;$.parseIndex=st;$.config=f;$.parseQuery=we;Mt(mt);const It={threshold:.3},Ae=t=>e=>{const s=new $(e,{keys:Object.keys(e[0]),...It,...t});return{type:"fuse",page:(r,n)=>e.slice(r*n,(r+1)*n),search:r=>s.search(r).map(({item:n})=>n),retrieve:r=>e.filter(n=>r.includes(n.key))}},wt=Ae(),Oe=({term:t,searcher:e=wt})=>me(({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}),Ce=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,i]=he.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=m.useDataUtilContext(),a=m.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{i(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Oe({term:l})))},[i,r]);return{value:n,onChange:h}},Le=({children:t=s=>ke.jsxRuntimeExports.jsx(m.Text$1,{placeholder:"Filter",...s}),...e})=>t(Ce(e)),At=Object.freeze(Object.defineProperty({__proto__:null,Column:m.Column,ColumnContext:m.ColumnContext,Core:m.Core,DataProvider:m.DataProvider,Filter:Le,Hover:m.Hover,ItemFrame:m.ItemFrame,List:ve.List,Search:m.Search,Selector:m.Selector,selectValueIsZero:m.selectValueIsZero,useDataContext:m.useDataContext,useDataUtilContext:m.useDataUtilContext,useFilter:Ce,useGetTransformedData:m.useGetTransformedData,useHoverContext:m.useHoverContext,useSearch:m.useSearch,useSelect:m.useSelect,useSelection:m.useSelection,useSelectionContext:m.useSelectionContext,useSelectionUtils:m.useSelectionUtils,useSetSourceData:m.useSetSourceData,useSourceData:m.useSourceData,useTransformedData:m.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Le;exports.createFilterTransform=Oe;exports.external=At;exports.fuseFilter=Ae;exports.proxyMemo=me;
|
|
1
|
+
"use strict";const m=require("./Toggle-GfklnU2t.cjs"),ke=require("./jsx-runtime-Cek9Ww4S.cjs"),$e=require("react"),he=require("./aggregator-C5NNOlCt.cjs");require("./css-C4GOlJsi.cjs");require("./Pack-BNnq0Pnk.cjs");const ve=require("./List-Ce67Og-K.cjs"),W=Symbol(),ue=Symbol(),X=Symbol();let je=(t,e)=>new Proxy(t,e);const z=Object.getPrototypeOf,se=new WeakMap,J=t=>t&&(se.has(t)?se.get(t):z(t)===Object.prototype||z(t)===Array.prototype),re=t=>typeof t=="object"&&t!==null,ne=new WeakMap,fe=t=>t[X]||t,de=(t,e,s)=>{if(!J(t))return t;const r=fe(t),n=(c=>Object.isFrozen(c)||Object.values(Object.getOwnPropertyDescriptors(c)).some(o=>!o.writable))(r);let i=s&&s.get(r);return i&&i[1].f===n||(i=((c,o)=>{const a={f:o};let h=!1;const l=(d,g)=>{if(!h){let p=a.a.get(c);p||(p=new Set,a.a.set(c,p)),g&&p.has(W)||p.add(d)}},u={get:(d,g)=>g===X?c:(l(g),de(d[g],a.a,a.c)),has:(d,g)=>g===ue?(h=!0,a.a.delete(c),!0):(l(g),g in d),getOwnPropertyDescriptor:(d,g)=>(l(g,!0),Object.getOwnPropertyDescriptor(d,g)),ownKeys:d=>(l(W),Reflect.ownKeys(d))};return o&&(u.set=u.deleteProperty=()=>!1),[u,a]})(r,n),i[1].p=je(n?(c=>{let o=ne.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(z(c),a)}ne.set(c,o)}return o})(r):r,i[0]),s&&s.set(r,i)),i[1].a=e,i[1].c=s,i[1].p},Te=(t,e)=>{const s=Reflect.ownKeys(t),r=Reflect.ownKeys(e);return s.length!==r.length||s.some((n,i)=>n!==r[i])},ge=(t,e,s,r)=>{if(Object.is(t,e))return!1;if(!re(t)||!re(e))return!0;const n=s.get(fe(t));if(!n)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 i=null;for(const c of n){const o=c===W?Te(t,e):ge(t[c],e[c],s,r);if(o!==!0&&o!==!1||(i=o),i)break}return i===null&&(i=!0),r&&r.set(t,{n:e,g:i}),i},Fe=t=>!!J(t)&&ue in t,Z=t=>J(t)&&t[X]||null,H=t=>typeof t=="object"&&t!==null,pe=(t,e)=>{if(!H(t))return t;const s=Z(t);return s!==null?(Fe(t),s):(e.has(t)||(e.add(t),Object.entries(t).forEach(([r,n])=>{const i=pe(n,e);Object.is(i,n)||(t[r]=i)})),t)},F=(t,e,s)=>{if(!H(t)||!H(e))return;const r=s.get(Z(e)||e);r&&r.forEach(n=>{F(t[n],e[n],s)})},Ne=(t,e)=>{var s;let r=0;const n=(s=e==null?void 0:e.size)!=null?s:1,i=[],c=new WeakMap,o=new WeakMap;return a=>{const h=Z(a)||a,l=c.get(h);if(l)return F(a,l.o,l.a),l.r;for(let M=0;M<n;M+=1){const y=i[(r+M)%n];if(!y)break;if(!ge(y.o,a,y.a,new WeakMap))return c.set(h,y),F(a,y.o,y.a),y.r}const u=new WeakMap,d=de(a,u,o),g=pe(t(d),new Set);F(a,a,u);const p={o:a,r:g,a:u};return r=(r-1+n)%n,i[r]=p,c.set(h,p),g}},me=(t,e)=>he.w$1.RUNTIME==="browser"?Ne(t,e):t;function I(t){return Array.isArray?Array.isArray(t):xe(t)==="[object Array]"}const De=1/0;function Pe(t){if(typeof t=="string")return t;let e=t+"";return e=="0"&&1/t==-De?"-0":e}function Ke(t){return t==null?"":Pe(t)}function _(t){return typeof t=="string"}function Me(t){return typeof t=="number"}function We(t){return t===!0||t===!1||ze(t)&&xe(t)=="[object Boolean]"}function ye(t){return typeof t=="object"}function ze(t){return ye(t)&&t!==null}function x(t){return t!=null}function K(t){return!t.trim().length}function xe(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(t)}const He="Incorrect 'index' type",Ue=t=>`Invalid value for key ${t}`,Ve=t=>`Pattern length exceeds max of ${t}.`,Be=t=>`Missing ${t} property in key`,Ge=t=>`Property 'weight' in key '${t}' must be a positive integer`,ie=Object.prototype.hasOwnProperty;class Ye{constructor(e){this._keys=[],this._keyMap={};let s=0;e.forEach(r=>{let n=Se(r);this._keys.push(n),this._keyMap[n.id]=n,s+=n.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 Se(t){let e=null,s=null,r=null,n=1,i=null;if(_(t)||I(t))r=t,e=ce(t),s=U(t);else{if(!ie.call(t,"name"))throw new Error(Be("name"));const c=t.name;if(r=c,ie.call(t,"weight")&&(n=t.weight,n<=0))throw new Error(Ge(c));e=ce(c),s=U(c),i=t.getFn}return{path:e,id:s,weight:n,src:r,getFn:i}}function ce(t){return I(t)?t:t.split(".")}function U(t){return I(t)?t.join("."):t}function Qe(t,e){let s=[],r=!1;const n=(i,c,o)=>{if(x(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!x(h))return;if(o===c.length-1&&(_(h)||Me(h)||We(h)))s.push(Ke(h));else if(I(h)){r=!0;for(let l=0,u=h.length;l<u;l+=1)n(h[l],c,o+1)}else c.length&&n(h,c,o+1)}};return n(t,_(e)?e.split("."):e,0),r?s:s[0]}const Xe={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},Je={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},Ze={location:0,threshold:.6,distance:100},qe={useExtendedSearch:!1,getFn:Qe,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var f={...Je,...Xe,...Ze,...qe};const et=/[^ ]+/g;function tt(t=1,e=3){const s=new Map,r=Math.pow(10,e);return{get(n){const i=n.match(et).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*t),o=parseFloat(Math.round(c*r)/r);return s.set(i,o),o},clear(){s.clear()}}}class q{constructor({getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){this.norm=tt(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,_(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();_(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(!x(e)||K(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((n,i)=>{let c=n.getFn?n.getFn(e):this.getFn(e,n.path);if(x(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(x(l))if(_(l)&&!K(l)){let u={v:l,i:h,n:this.norm.get(l)};o.push(u)}else I(l)&&l.forEach((u,d)=>{a.push({nestedArrIndex:d,value:u})})}r.$[i]=o}else if(_(c)&&!K(c)){let o={v:c,n:this.norm.get(c)};r.$[i]=o}}}),this.records.push(r)}toJSON(){return{keys:this.keys,records:this.records}}}function Ee(t,e,{getFn:s=f.getFn,fieldNormWeight:r=f.fieldNormWeight}={}){const n=new q({getFn:s,fieldNormWeight:r});return n.setKeys(t.map(Se)),n.setSources(e),n.create(),n}function st(t,{getFn:e=f.getFn,fieldNormWeight:s=f.fieldNormWeight}={}){const{keys:r,records:n}=t,i=new q({getFn:e,fieldNormWeight:s});return i.setKeys(r),i.setIndexRecords(n),i}function T(t,{errors:e=0,currentLocation:s=0,expectedLocation:r=0,distance:n=f.distance,ignoreLocation:i=f.ignoreLocation}={}){const c=e/t.length;if(i)return c;const o=Math.abs(r-s);return n?c+o/n:o?1:c}function rt(t=[],e=f.minMatchCharLength){let s=[],r=-1,n=-1,i=0;for(let c=t.length;i<c;i+=1){let o=t[i];o&&r===-1?r=i:!o&&r!==-1&&(n=i-1,n-r+1>=e&&s.push([r,n]),r=-1)}return t[i-1]&&i-r>=e&&s.push([r,i-1]),s}const L=32;function nt(t,e,s,{location:r=f.location,distance:n=f.distance,threshold:i=f.threshold,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,includeMatches:a=f.includeMatches,ignoreLocation:h=f.ignoreLocation}={}){if(e.length>L)throw new Error(Ve(L));const l=e.length,u=t.length,d=Math.max(0,Math.min(r,u));let g=i,p=d;const M=o>1||a,y=M?Array(u):[];let b;for(;(b=t.indexOf(e,p))>-1;){let S=T(e,{currentLocation:b,expectedLocation:d,distance:n,ignoreLocation:h});if(g=Math.min(S,g),p=b+l,M){let w=0;for(;w<l;)y[b+w]=1,w+=1}}p=-1;let R=[],C=1,v=l+u;const Re=1<<l-1;for(let S=0;S<l;S+=1){let w=0,A=v;for(;w<A;)T(e,{errors:S,currentLocation:d+A,expectedLocation:d,distance:n,ignoreLocation:h})<=g?w=A:v=A,A=Math.floor((v-w)/2+w);v=A;let ee=Math.max(1,d-A+1),P=c?u:Math.min(d+A,u)+l,k=Array(P+2);k[P+1]=(1<<S)-1;for(let E=P;E>=ee;E-=1){let j=E-1,te=s[t.charAt(j)];if(M&&(y[j]=+!!te),k[E]=(k[E+1]<<1|1)&te,S&&(k[E]|=(R[E+1]|R[E])<<1|1|R[E+1]),k[E]&Re&&(C=T(e,{errors:S,currentLocation:j,expectedLocation:d,distance:n,ignoreLocation:h}),C<=g)){if(g=C,p=j,p<=d)break;ee=Math.max(1,2*d-p)}}if(T(e,{errors:S+1,currentLocation:d,expectedLocation:d,distance:n,ignoreLocation:h})>g)break;R=k}const D={isMatch:p>=0,score:Math.max(.001,C)};if(M){const S=rt(y,o);S.length?a&&(D.indices=S):D.isMatch=!1}return D}function it(t){let e={};for(let s=0,r=t.length;s<r;s+=1){const n=t.charAt(s);e[n]=(e[n]||0)|1<<r-s-1}return e}class _e{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){if(this.options={location:s,threshold:r,distance:n,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?e:e.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:it(d),startIndex:g})},u=this.pattern.length;if(u>L){let d=0;const g=u%L,p=u-g;for(;d<p;)l(this.pattern.substr(d,L),d),d+=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:n,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],u=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:y})=>{const{isMatch:b,score:R,indices:C}=nt(e,p,M,{location:n+y,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:r,ignoreLocation:h});b&&(d=!0),u+=R,b&&C&&(l=[...l,...C])});let g={isMatch:d,score:d?u/this.chunks.length:1};return d&&r&&(g.indices=l),g}}class O{constructor(e){this.pattern=e}static isMultiMatch(e){return oe(e,this.multiRegex)}static isSingleMatch(e){return oe(e,this.singleRegex)}search(){}}function oe(t,e){const s=t.match(e);return s?s[1]:null}class ct extends O{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 ot extends O{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 at extends O{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 lt extends O{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 ht extends O{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 ut extends O{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 be extends O{constructor(e,{location:s=f.location,threshold:r=f.threshold,distance:n=f.distance,includeMatches:i=f.includeMatches,findAllMatches:c=f.findAllMatches,minMatchCharLength:o=f.minMatchCharLength,isCaseSensitive:a=f.isCaseSensitive,ignoreLocation:h=f.ignoreLocation}={}){super(e),this._bitapSearch=new _e(e,{location:s,threshold:r,distance:n,includeMatches:i,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 Ie extends O{constructor(e){super(e)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(e){let s=0,r;const n=[],i=this.pattern.length;for(;(r=e.indexOf(this.pattern,s))>-1;)s=r+i,n.push([r,s-1]);const c=!!n.length;return{isMatch:c,score:c?0:1,indices:n}}}const V=[ct,Ie,at,lt,ut,ht,ot,be],ae=V.length,ft=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,dt="|";function gt(t,e={}){return t.split(dt).map(s=>{let r=s.trim().split(ft).filter(i=>i&&!!i.trim()),n=[];for(let i=0,c=r.length;i<c;i+=1){const o=r[i];let a=!1,h=-1;for(;!a&&++h<ae;){const l=V[h];let u=l.isMultiMatch(o);u&&(n.push(new l(u,e)),a=!0)}if(!a)for(h=-1;++h<ae;){const l=V[h];let u=l.isSingleMatch(o);if(u){n.push(new l(u,e));break}}}return n})}const pt=new Set([be.type,Ie.type]);class mt{constructor(e,{isCaseSensitive:s=f.isCaseSensitive,includeMatches:r=f.includeMatches,minMatchCharLength:n=f.minMatchCharLength,ignoreLocation:i=f.ignoreLocation,findAllMatches:c=f.findAllMatches,location:o=f.location,threshold:a=f.threshold,distance:h=f.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:r,minMatchCharLength:n,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?e:e.toLowerCase(),this.query=gt(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:n}=this.options;e=n?e:e.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let u=0,d=l.length;u<d;u+=1){const g=l[u],{isMatch:p,indices:M,score:y}=g.search(e);if(p){if(i+=1,o+=y,r){const b=g.constructor.type;pt.has(b)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let u={isMatch:!0,score:o/i};return r&&(u.indices=c),u}}return{isMatch:!1,score:1}}}const B=[];function Mt(...t){B.push(...t)}function G(t,e){for(let s=0,r=B.length;s<r;s+=1){let n=B[s];if(n.condition(t,e))return new n(t,e)}return new _e(t,e)}const N={AND:"$and",OR:"$or"},Y={PATH:"$path",PATTERN:"$val"},Q=t=>!!(t[N.AND]||t[N.OR]),yt=t=>!!t[Y.PATH],xt=t=>!I(t)&&ye(t)&&!Q(t),le=t=>({[N.AND]:Object.keys(t).map(e=>({[e]:t[e]}))});function we(t,e,{auto:s=!0}={}){const r=n=>{let i=Object.keys(n);const c=yt(n);if(!c&&i.length>1&&!Q(n))return r(le(n));if(xt(n)){const a=c?n[Y.PATH]:i[0],h=c?n[Y.PATTERN]:n[a];if(!_(h))throw new Error(Ue(a));const l={keyId:U(a),pattern:h};return s&&(l.searcher=G(h,e)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=n[a];I(h)&&h.forEach(l=>{o.children.push(r(l))})}),o};return Q(t)||(t=le(t)),r(t)}function St(t,{ignoreFieldNorm:e=f.ignoreFieldNorm}){t.forEach(s=>{let r=1;s.matches.forEach(({key:n,norm:i,score:c})=>{const o=n?n.weight:null;r*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(e?1:i))}),s.score=r})}function Et(t,e){const s=t.matches;e.matches=[],x(s)&&s.forEach(r=>{if(!x(r.indices)||!r.indices.length)return;const{indices:n,value:i}=r;let c={indices:n,value:i};r.key&&(c.key=r.key.src),r.idx>-1&&(c.refIndex=r.idx),e.matches.push(c)})}function _t(t,e){e.score=t.score}function bt(t,e,{includeMatches:s=f.includeMatches,includeScore:r=f.includeScore}={}){const n=[];return s&&n.push(Et),r&&n.push(_t),t.map(i=>{const{idx:c}=i,o={item:e[c],refIndex:c};return n.length&&n.forEach(a=>{a(i,o)}),o})}class ${constructor(e,s={},r){this.options={...f,...s},this.options.useExtendedSearch,this._keyStore=new Ye(this.options.keys),this.setCollection(e,r)}setCollection(e,s){if(this._docs=e,s&&!(s instanceof q))throw new Error(He);this._myIndex=s||Ee(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(e){x(e)&&(this._docs.push(e),this._myIndex.add(e))}remove(e=()=>!1){const s=[];for(let r=0,n=this._docs.length;r<n;r+=1){const i=this._docs[r];e(i,r)&&(this.removeAt(r),r-=1,n-=1,s.push(i))}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:n,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=_(e)?_(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return St(a,{ignoreFieldNorm:o}),i&&a.sort(c),Me(s)&&s>-1&&(a=a.slice(0,s)),bt(a,this._docs,{includeMatches:r,includeScore:n})}_searchStringList(e){const s=G(e,this.options),{records:r}=this._myIndex,n=[];return r.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&n.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),n}_searchLogical(e){const s=we(e,this.options),r=(o,a,h)=>{if(!o.children){const{keyId:u,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(u),value:this._myIndex.getValueForItemAtKeyId(a,u),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let u=0,d=o.children.length;u<d;u+=1){const g=o.children[u],p=r(g,a,h);if(p.length)l.push(...p);else if(o.operator===N.AND)return[]}return l},n=this._myIndex.records,i={},c=[];return n.forEach(({$:o,i:a})=>{if(x(o)){let h=r(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(e){const s=G(e,this.options),{keys:r,records:n}=this._myIndex,i=[];return n.forEach(({$:c,i:o})=>{if(!x(c))return;let a=[];r.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:e,value:s,searcher:r}){if(!x(s))return[];let n=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!x(i))return;const{isMatch:a,score:h,indices:l}=r.searchIn(i);a&&n.push({score:h,key:e,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=r.searchIn(i);o&&n.push({score:a,key:e,value:i,norm:c,indices:h})}return n}}$.version="7.0.0";$.createIndex=Ee;$.parseIndex=st;$.config=f;$.parseQuery=we;Mt(mt);const It={threshold:.3},Ae=t=>e=>{const s=new $(e,{keys:Object.keys(e[0]),...It,...t});return{type:"fuse",page:(r,n)=>e.slice(r*n,(r+1)*n),search:r=>s.search(r).map(({item:n})=>n),retrieve:r=>e.filter(n=>r.includes(n.key))}},wt=Ae(),Oe=({term:t,searcher:e=wt})=>me(({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}),Ce=({debounce:t=250,value:e,onChange:s,transformBefore:r})=>{const[n,i]=he.usePurePassthrough({onChange:s,value:e,initial:""}),{setTransform:c,deleteTransform:o}=m.useDataUtilContext(),a=m.useDebouncedCallback(c,t,[]),h=$e.useCallback(l=>{i(l),l.length===0?o("filter"):(r!=null&&(l=r(l)),a("filter",Oe({term:l})))},[i,r]);return{value:n,onChange:h}},Le=({children:t=s=>ke.jsxRuntimeExports.jsx(m.Text$1,{placeholder:"Filter",...s}),...e})=>t(Ce(e)),At=Object.freeze(Object.defineProperty({__proto__:null,Column:m.Column,ColumnContext:m.ColumnContext,Core:m.Core,DataProvider:m.DataProvider,Filter:Le,Hover:m.Hover,ItemFrame:m.ItemFrame,List:ve.List,Search:m.Search,Selector:m.Selector,selectValueIsZero:m.selectValueIsZero,useDataContext:m.useDataContext,useDataUtilContext:m.useDataUtilContext,useFilter:Ce,useGetTransformedData:m.useGetTransformedData,useHoverContext:m.useHoverContext,useSearch:m.useSearch,useSelect:m.useSelect,useSelection:m.useSelection,useSelectionContext:m.useSelectionContext,useSelectionUtils:m.useSelectionUtils,useSetSourceData:m.useSetSourceData,useSourceData:m.useSourceData,useTransformedData:m.useTransformedData},Symbol.toStringTag,{value:"Module"}));exports.Filter=Le;exports.createFilterTransform=Oe;exports.external=At;exports.fuseFilter=Ae;exports.proxyMemo=me;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { B as o, I as e, T as t, d as r } from "./Toggle-
|
|
2
|
-
import { L as a } from "./Link-
|
|
1
|
+
import { B as o, I as e, T as t, d as r } from "./Toggle-Q3wJPeGh.js";
|
|
2
|
+
import { L as a } from "./Link-2gkxmnh_.js";
|
|
3
3
|
const s = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4
4
|
__proto__: null,
|
|
5
5
|
Button: o,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { p as M, B as _, I as k, C as L, q as O, r as S, s as b } from "./Toggle-
|
|
1
|
+
import { p as M, B as _, I as k, C as L, q as O, r as S, s as b } from "./Toggle-Q3wJPeGh.js";
|
|
2
2
|
import { j as u } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { L as N } from "./Link-
|
|
4
|
-
import { C as a } from "./css-
|
|
3
|
+
import { L as N } from "./Link-2gkxmnh_.js";
|
|
4
|
+
import { C as a } from "./css-BHfxGWOW.js";
|
|
5
5
|
import { createContext as z, useContext as B, useCallback as D, useMemo as y } from "react";
|
|
6
6
|
const m = z({
|
|
7
7
|
onClick: () => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-
|
|
1
|
+
"use strict";const i=require("./jsx-runtime-Cek9Ww4S.cjs"),d=require("./aggregator-C5NNOlCt.cjs"),c=require("react"),S=require("./Pack-BNnq0Pnk.cjs"),a=require("./Toggle-GfklnU2t.cjs"),o=require("./css-C4GOlJsi.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(h,{index:t,level:r,divided:e,children:n},t))})},h=({index:s,level:r,children:e,divided:n})=>{let t=e;if(!c.isValidElement(e)){const{onClick:x,...C}=e;t=i.jsxRuntimeExports.jsx(a.Icon,{onClick:u=>{u.stopPropagation(),u.preventDefault(),x==null||x(u)},size:d.LevelComponentSizes[r],...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})},E=({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})},R=Object.freeze(Object.defineProperty({__proto__:null,Actions:m,ButtonTitle:v,Header:j,Title:E,useContext:l},Symbol.toStringTag,{value:"Module"}));exports.Actions=m;exports.ButtonTitle=v;exports.Header=j;exports.external=R;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { ak as O,
|
|
1
|
+
import { ak as O, f as b, al as C, am as N, an as v, ao as w, ap as D, aq as z, ar as B, as as U, at as V } from "./Toggle-Q3wJPeGh.js";
|
|
2
2
|
import { j as a } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { m as u, w as _ } from "./aggregator-
|
|
3
|
+
import { m as u, w as _ } from "./aggregator-J7DZKy5x.js";
|
|
4
4
|
import { useState as I } from "react";
|
|
5
|
-
import { C as n, g as A } from "./css-
|
|
6
|
-
import { S as j } from "./Pack-
|
|
5
|
+
import { C as n, g as A } from "./css-BHfxGWOW.js";
|
|
6
|
+
import { S as j } from "./Pack-CcDPYCmE.js";
|
|
7
7
|
const q = ({
|
|
8
8
|
value: t,
|
|
9
9
|
onChange: s,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("./Toggle-
|
|
1
|
+
"use strict";const e=require("./Toggle-GfklnU2t.cjs"),o=require("./Link-hLjXIZ1T.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,4 +1,4 @@
|
|
|
1
|
-
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-
|
|
1
|
+
import { A as e, C as a, a as r, J as o, P as s, S as t, s as l } from "./Pack-CcDPYCmE.js";
|
|
2
2
|
const S = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
ALIGNMENTS: e,
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { y as re, A as H, e as se, n as ae } from "./aggregator-J7DZKy5x.js";
|
|
2
2
|
import { j as N } from "./jsx-runtime-B6kdoens.js";
|
|
3
|
-
import { v as
|
|
4
|
-
import { memo as
|
|
5
|
-
import { L as
|
|
6
|
-
import { A as
|
|
7
|
-
import { C as u } from "./css-
|
|
8
|
-
import "./Pack-
|
|
9
|
-
import { L as _e } from "./List-
|
|
10
|
-
const
|
|
11
|
-
t && e.sort((n, s) =>
|
|
3
|
+
import { v as le, w as oe, e as ie, n as ce, q as de, C as fe, M as ue, x as he, y as pe, z as me, B as ge, A as X, E as xe, F as ye, G as Ce, H as Ee } from "./Toggle-Q3wJPeGh.js";
|
|
4
|
+
import { memo as Ne, useState as be, useCallback as b, useMemo as ve } from "react";
|
|
5
|
+
import { L as Te } from "./Link-2gkxmnh_.js";
|
|
6
|
+
import { A as Se } from "./Animated-C6We8oGt.js";
|
|
7
|
+
import { C as u } from "./css-BHfxGWOW.js";
|
|
8
|
+
import "./Pack-CcDPYCmE.js";
|
|
9
|
+
import { L as _e } from "./List-B60FZ4Be.js";
|
|
10
|
+
const Y = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
11
|
+
t && e.sort((n, s) => re.stringsWithNumbers(n.name, s.name));
|
|
12
12
|
let r = !1;
|
|
13
13
|
for (let n = 0; n < e.length; n++) {
|
|
14
14
|
const s = e[n];
|
|
@@ -21,18 +21,18 @@ const X = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
|
21
21
|
depth: r = 0,
|
|
22
22
|
sort: n = !0
|
|
23
23
|
}) => {
|
|
24
|
-
r === 0 && n && (e = e.sort((a,
|
|
24
|
+
r === 0 && n && (e = e.sort((a, o) => a.name.localeCompare(o.name)));
|
|
25
25
|
const s = [];
|
|
26
|
-
return e.forEach((a,
|
|
27
|
-
const i =
|
|
28
|
-
s.push({ ...a, depth: r, expanded: i, index:
|
|
26
|
+
return e.forEach((a, o) => {
|
|
27
|
+
const i = Y(a, t);
|
|
28
|
+
s.push({ ...a, depth: r, expanded: i, index: o }), i && a.children != null && (a.children = k(a.children, n), s.push(
|
|
29
29
|
...G({ nodes: a.children, expanded: t, depth: r + 1, sort: n })
|
|
30
30
|
));
|
|
31
31
|
}), s;
|
|
32
|
-
},
|
|
32
|
+
}, we = ({ tree: e, destination: t, keys: r }) => (r = H(r), r.forEach((n) => {
|
|
33
33
|
const s = v({ tree: e, key: n });
|
|
34
|
-
s != null && (
|
|
35
|
-
}), e),
|
|
34
|
+
s != null && (q({ tree: e, keys: n }), V({ tree: e, destination: t, additions: s }));
|
|
35
|
+
}), e), q = ({ tree: e, keys: t }) => {
|
|
36
36
|
t = H(t);
|
|
37
37
|
const r = e.map((n) => n.key);
|
|
38
38
|
return t.forEach((n) => {
|
|
@@ -40,11 +40,11 @@ const X = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
|
40
40
|
const s = r.indexOf(n);
|
|
41
41
|
if (s !== -1) e.splice(s, 1);
|
|
42
42
|
else {
|
|
43
|
-
const
|
|
44
|
-
|
|
43
|
+
const o = $({ tree: e, key: n });
|
|
44
|
+
o != null && (o.children = (a = o.children) == null ? void 0 : a.filter((i) => i.key !== n));
|
|
45
45
|
}
|
|
46
46
|
}), e;
|
|
47
|
-
},
|
|
47
|
+
}, V = ({ tree: e, destination: t, additions: r }) => {
|
|
48
48
|
r = H(r);
|
|
49
49
|
const n = v({ tree: e, key: t });
|
|
50
50
|
if (n == null) throw new Error(`Could not find node with key ${t}`);
|
|
@@ -54,13 +54,13 @@ const X = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
|
54
54
|
...r,
|
|
55
55
|
...n.children.filter((a) => !s.includes(a.key))
|
|
56
56
|
], e;
|
|
57
|
-
},
|
|
57
|
+
}, Ie = ({
|
|
58
58
|
tree: e,
|
|
59
59
|
key: t,
|
|
60
60
|
updater: r,
|
|
61
61
|
throwOnMissing: n = !0
|
|
62
62
|
}) => {
|
|
63
|
-
var
|
|
63
|
+
var o, i;
|
|
64
64
|
const s = v({ tree: e, key: t });
|
|
65
65
|
if (s == null) {
|
|
66
66
|
if (n) throw new Error(`Could not find node with key ${t}`);
|
|
@@ -68,16 +68,16 @@ const X = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
|
68
68
|
}
|
|
69
69
|
const a = $({ tree: e, key: t });
|
|
70
70
|
if (a != null) {
|
|
71
|
-
const
|
|
72
|
-
|
|
71
|
+
const l = (o = a.children) == null ? void 0 : o.findIndex((x) => x.key === t);
|
|
72
|
+
l != null && l !== -1 && ((i = a.children) == null || i.splice(l, 1, r(s)));
|
|
73
73
|
} else
|
|
74
74
|
e.splice(
|
|
75
|
-
e.findIndex((
|
|
75
|
+
e.findIndex((l) => l.key === t),
|
|
76
76
|
1,
|
|
77
77
|
r(s)
|
|
78
78
|
);
|
|
79
79
|
return e;
|
|
80
|
-
},
|
|
80
|
+
}, Le = ({
|
|
81
81
|
tree: e,
|
|
82
82
|
parent: t,
|
|
83
83
|
updater: r,
|
|
@@ -106,7 +106,7 @@ const X = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
|
106
106
|
}
|
|
107
107
|
}
|
|
108
108
|
return null;
|
|
109
|
-
},
|
|
109
|
+
}, je = ({ tree: e, keys: t }) => {
|
|
110
110
|
const r = [];
|
|
111
111
|
for (const n of t) {
|
|
112
112
|
const s = v({ tree: e, key: n });
|
|
@@ -121,54 +121,54 @@ const X = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
|
121
121
|
if (n != null) return n;
|
|
122
122
|
}
|
|
123
123
|
return null;
|
|
124
|
-
},
|
|
124
|
+
}, J = (e) => e.map((t) => ({ ...t, children: J(t.children ?? []) })), Q = (...e) => {
|
|
125
125
|
const t = [];
|
|
126
126
|
return e.forEach((r) => {
|
|
127
|
-
t.push(r), r.children != null && t.push(...
|
|
127
|
+
t.push(r), r.children != null && t.push(...Q(...r.children));
|
|
128
128
|
}), t;
|
|
129
|
-
},
|
|
129
|
+
}, M = "tree-item", Pe = [["Shift"]], Re = (e) => {
|
|
130
130
|
const {
|
|
131
131
|
onExpand: t,
|
|
132
132
|
nodes: r,
|
|
133
133
|
initialExpanded: n = [],
|
|
134
134
|
sort: s = !0,
|
|
135
135
|
selected: a,
|
|
136
|
-
onSelectedChange:
|
|
137
|
-
} = e ?? {}, [i,
|
|
136
|
+
onSelectedChange: o
|
|
137
|
+
} = e ?? {}, [i, l, x] = he(n), [c, T] = se({
|
|
138
138
|
initial: [],
|
|
139
139
|
value: a,
|
|
140
|
-
onChange:
|
|
141
|
-
}),
|
|
140
|
+
onChange: o
|
|
141
|
+
}), S = ve(() => G({ nodes: r, expanded: i, sort: s }), [r, i, s]), _ = pe(S), L = me({ triggers: Pe }), R = b(
|
|
142
142
|
(f, { clicked: d }) => {
|
|
143
143
|
T(f);
|
|
144
|
-
const g =
|
|
145
|
-
if ((g == null ? void 0 : g.hasChildren) === !1 || d == null ||
|
|
144
|
+
const g = _.current.find((E) => E.key === d);
|
|
145
|
+
if ((g == null ? void 0 : g.hasChildren) === !1 || d == null || L.current.held) return;
|
|
146
146
|
const y = x.current, I = y.some((E) => E === d) ? "contract" : "expand";
|
|
147
147
|
let C = y;
|
|
148
|
-
I === "contract" ? C = y.filter((E) => E !== d) : C = [...y, d],
|
|
148
|
+
I === "contract" ? C = y.filter((E) => E !== d) : C = [...y, d], l(C), t == null || t({ current: C, action: I, clicked: d });
|
|
149
149
|
},
|
|
150
|
-
[t,
|
|
150
|
+
[t, _, l, T]
|
|
151
151
|
), h = b(
|
|
152
152
|
(f) => {
|
|
153
|
-
|
|
153
|
+
l((d) => ae([...d, f])), t == null || t({ current: i, action: "expand", clicked: f });
|
|
154
154
|
},
|
|
155
|
-
[
|
|
156
|
-
),
|
|
155
|
+
[l]
|
|
156
|
+
), j = b(
|
|
157
157
|
(f) => {
|
|
158
|
-
|
|
158
|
+
l((d) => d.filter((g) => g !== f)), t == null || t({ current: i, action: "contract", clicked: f });
|
|
159
159
|
},
|
|
160
|
-
[
|
|
161
|
-
), w = b(() =>
|
|
160
|
+
[l]
|
|
161
|
+
), w = b(() => l([]), [l]);
|
|
162
162
|
return {
|
|
163
163
|
onSelect: R,
|
|
164
164
|
selected: c,
|
|
165
165
|
expanded: i,
|
|
166
|
-
contract:
|
|
166
|
+
contract: j,
|
|
167
167
|
expand: h,
|
|
168
|
-
nodes:
|
|
168
|
+
nodes: S,
|
|
169
169
|
clearExpanded: w
|
|
170
170
|
};
|
|
171
|
-
}, K =
|
|
171
|
+
}, K = Ne(
|
|
172
172
|
({
|
|
173
173
|
entry: e,
|
|
174
174
|
selected: t,
|
|
@@ -176,79 +176,82 @@ const X = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
|
176
176
|
onDrop: n,
|
|
177
177
|
onRename: s,
|
|
178
178
|
onSuccessfulDrop: a,
|
|
179
|
-
onDoubleClick:
|
|
179
|
+
onDoubleClick: o,
|
|
180
180
|
loading: i = !1,
|
|
181
|
-
useMargin:
|
|
181
|
+
useMargin: l = !0,
|
|
182
182
|
translate: x
|
|
183
183
|
}) => {
|
|
184
184
|
const {
|
|
185
185
|
key: c,
|
|
186
186
|
hasChildren: T = !1,
|
|
187
|
-
allowRename:
|
|
188
|
-
children:
|
|
189
|
-
icon:
|
|
187
|
+
allowRename: S = !1,
|
|
188
|
+
children: _,
|
|
189
|
+
icon: L,
|
|
190
190
|
name: R,
|
|
191
191
|
depth: h,
|
|
192
|
-
expanded:
|
|
192
|
+
expanded: j,
|
|
193
193
|
href: w,
|
|
194
194
|
haulItems: f = []
|
|
195
|
-
} = e, { getSelected: d } =
|
|
195
|
+
} = e, { getSelected: d } = le(), { getSourceData: g } = oe(), y = T || _ != null && _.length > 0, I = [];
|
|
196
196
|
y && I.push(
|
|
197
|
-
/* @__PURE__ */ N.jsx(
|
|
198
|
-
),
|
|
197
|
+
/* @__PURE__ */ N.jsx(Se, { enabled: j, enabledLoc: "bottom", disabledLoc: "right" })
|
|
198
|
+
), L != null && I.push(L);
|
|
199
199
|
const C = [];
|
|
200
|
-
i && C.push(/* @__PURE__ */ N.jsx(
|
|
201
|
-
const [E, A] =
|
|
200
|
+
i && C.push(/* @__PURE__ */ N.jsx(ie.Loading, { className: u.B("loading-indicator") }));
|
|
201
|
+
const [E, A] = be(!1), { startDrag: U, ...Z } = ce({
|
|
202
202
|
type: "Tree.Item",
|
|
203
203
|
key: c,
|
|
204
|
-
canDrop: b(({ items: p, source:
|
|
204
|
+
canDrop: b(({ items: p, source: O }) => {
|
|
205
205
|
const m = p.map((P) => P.key);
|
|
206
|
-
return A(!1),
|
|
206
|
+
return A(!1), O.type === "Tree.Item" && !m.includes(c);
|
|
207
207
|
}, []),
|
|
208
208
|
onDrop: b((p) => (n == null ? void 0 : n(c, p)) ?? [], [c, n]),
|
|
209
209
|
onDragOver: b(() => A(!0), [])
|
|
210
|
-
}),
|
|
211
|
-
const p = d(),
|
|
210
|
+
}), D = () => {
|
|
211
|
+
const p = d(), O = g().filter(
|
|
212
212
|
(m) => p.includes(m.key)
|
|
213
213
|
);
|
|
214
214
|
if (p.includes(c)) {
|
|
215
|
-
const m =
|
|
216
|
-
{ type:
|
|
217
|
-
...(
|
|
218
|
-
...
|
|
219
|
-
data: { ...
|
|
215
|
+
const m = O.map(({ key: P, haulItems: B, depth: F }) => [
|
|
216
|
+
{ type: M, key: P, data: { depth: F } },
|
|
217
|
+
...(B == null ? void 0 : B.map((W) => ({
|
|
218
|
+
...W,
|
|
219
|
+
data: { ...W.data, depth: F }
|
|
220
220
|
}))) ?? []
|
|
221
221
|
]).flat();
|
|
222
222
|
return U(m, (P) => a == null ? void 0 : a(c, P));
|
|
223
223
|
}
|
|
224
224
|
U(
|
|
225
225
|
[
|
|
226
|
-
{ type:
|
|
226
|
+
{ type: M, key: c, data: { depth: h } },
|
|
227
227
|
...f.map((m) => ({ ...m, data: { ...m.data, depth: h } }))
|
|
228
228
|
],
|
|
229
229
|
(m) => a == null ? void 0 : a(c, m)
|
|
230
230
|
);
|
|
231
|
-
},
|
|
231
|
+
}, ee = l ? "marginLeft" : "paddingLeft";
|
|
232
|
+
let z = h * 2 + 1;
|
|
233
|
+
y && l && (z -= 1);
|
|
234
|
+
const te = {
|
|
232
235
|
id: c,
|
|
233
236
|
variant: "text",
|
|
234
237
|
draggable: f.length > 0,
|
|
235
238
|
className: u(
|
|
236
239
|
u.BE("list", "item"),
|
|
237
|
-
|
|
240
|
+
de,
|
|
238
241
|
E && u.M("dragging-over"),
|
|
239
|
-
t &&
|
|
242
|
+
t && fe,
|
|
240
243
|
u.selected(t),
|
|
241
244
|
y && u.M("has-children"),
|
|
242
245
|
u.BM("depth", h.toString())
|
|
243
246
|
),
|
|
244
247
|
onDragLeave: () => A(!1),
|
|
245
|
-
onDragStart:
|
|
248
|
+
onDragStart: D,
|
|
246
249
|
onClick: () => r == null ? void 0 : r(c),
|
|
247
250
|
style: {
|
|
248
251
|
border: "none",
|
|
249
252
|
position: x != null ? "absolute" : "relative",
|
|
250
253
|
transform: `translateY(${x}px)`,
|
|
251
|
-
[
|
|
254
|
+
[ee]: `${z}rem`,
|
|
252
255
|
// @ts-expect-error - CSS variable
|
|
253
256
|
"--pluto-tree-indicator-offset": `${h * 1.5 + (h === 0 ? 0 : 0.5)}rem`
|
|
254
257
|
},
|
|
@@ -256,48 +259,48 @@ const X = (e, t) => t.includes(e.key), k = (e, t) => {
|
|
|
256
259
|
iconSpacing: "small",
|
|
257
260
|
noWrap: !0,
|
|
258
261
|
endIcon: C,
|
|
259
|
-
onDoubleClick: (p) =>
|
|
262
|
+
onDoubleClick: (p) => o == null ? void 0 : o(c, p),
|
|
260
263
|
href: w,
|
|
261
|
-
...
|
|
262
|
-
},
|
|
263
|
-
return /* @__PURE__ */ N.jsx(
|
|
264
|
-
|
|
264
|
+
...Z
|
|
265
|
+
}, ne = w != null ? Te : ge;
|
|
266
|
+
return /* @__PURE__ */ N.jsx(ne, { className: u.BE("list", "item"), ...te, children: /* @__PURE__ */ N.jsx(
|
|
267
|
+
ue,
|
|
265
268
|
{
|
|
266
269
|
id: `text-${c}`,
|
|
267
270
|
level: "p",
|
|
268
271
|
allowDoubleClick: !1,
|
|
269
272
|
value: R,
|
|
270
|
-
disabled: !
|
|
273
|
+
disabled: !S,
|
|
271
274
|
onChange: (p) => s == null ? void 0 : s(c, p)
|
|
272
275
|
}
|
|
273
276
|
) });
|
|
274
277
|
}
|
|
275
278
|
);
|
|
276
279
|
K.displayName = "Tree.Item";
|
|
277
|
-
const
|
|
280
|
+
const $e = Ee(K), Ae = ({
|
|
278
281
|
nodes: e,
|
|
279
282
|
selected: t = [],
|
|
280
283
|
onSelect: r,
|
|
281
284
|
onDrop: n,
|
|
282
285
|
onRename: s,
|
|
283
286
|
onSuccessfulDrop: a,
|
|
284
|
-
onDoubleClick:
|
|
287
|
+
onDoubleClick: o,
|
|
285
288
|
className: i,
|
|
286
|
-
children:
|
|
289
|
+
children: l = $e,
|
|
287
290
|
itemHeight: x = 27,
|
|
288
291
|
useMargin: c = !1,
|
|
289
292
|
showRules: T = !1,
|
|
290
|
-
virtual:
|
|
291
|
-
clearExpanded:
|
|
292
|
-
expand:
|
|
293
|
+
virtual: S = !0,
|
|
294
|
+
clearExpanded: _,
|
|
295
|
+
expand: L,
|
|
293
296
|
contract: R,
|
|
294
297
|
emptyContent: h,
|
|
295
|
-
loading:
|
|
298
|
+
loading: j,
|
|
296
299
|
...w
|
|
297
300
|
}) => {
|
|
298
|
-
const f =
|
|
301
|
+
const f = S ? X.Virtual : X;
|
|
299
302
|
return /* @__PURE__ */ N.jsx(_e, { data: e, emptyContent: h, children: /* @__PURE__ */ N.jsx(
|
|
300
|
-
|
|
303
|
+
xe,
|
|
301
304
|
{
|
|
302
305
|
value: t,
|
|
303
306
|
onChange: r,
|
|
@@ -309,42 +312,42 @@ const Re = Ce(K), $e = ({
|
|
|
309
312
|
itemHeight: x,
|
|
310
313
|
className: u(i, u.B("tree"), T && u.M("rules")),
|
|
311
314
|
...w,
|
|
312
|
-
children: ({ key: d, ...g }) =>
|
|
315
|
+
children: ({ key: d, ...g }) => l({
|
|
313
316
|
...g,
|
|
314
317
|
key: d,
|
|
315
|
-
loading:
|
|
318
|
+
loading: j === d,
|
|
316
319
|
useMargin: c,
|
|
317
320
|
onDrop: n,
|
|
318
321
|
onRename: s,
|
|
319
322
|
onSuccessfulDrop: a,
|
|
320
|
-
onDoubleClick:
|
|
323
|
+
onDoubleClick: o
|
|
321
324
|
})
|
|
322
325
|
}
|
|
323
326
|
)
|
|
324
327
|
}
|
|
325
328
|
) });
|
|
326
|
-
},
|
|
329
|
+
}, Oe = (e, t) => ye(`text-${e}`, t), Be = (e) => Ce(`text-${e}`), Xe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
327
330
|
__proto__: null,
|
|
328
331
|
DefaultItem: K,
|
|
329
|
-
HAUL_TYPE:
|
|
330
|
-
Tree:
|
|
331
|
-
asyncRename:
|
|
332
|
-
deepCopy:
|
|
332
|
+
HAUL_TYPE: M,
|
|
333
|
+
Tree: Ae,
|
|
334
|
+
asyncRename: Be,
|
|
335
|
+
deepCopy: J,
|
|
333
336
|
findNode: v,
|
|
334
337
|
findNodeParent: $,
|
|
335
|
-
findNodes:
|
|
338
|
+
findNodes: je,
|
|
336
339
|
flatten: G,
|
|
337
|
-
getDescendants:
|
|
338
|
-
moveNode:
|
|
339
|
-
removeNode:
|
|
340
|
-
setNode:
|
|
341
|
-
shouldExpand:
|
|
340
|
+
getDescendants: Q,
|
|
341
|
+
moveNode: we,
|
|
342
|
+
removeNode: q,
|
|
343
|
+
setNode: V,
|
|
344
|
+
shouldExpand: Y,
|
|
342
345
|
sortAndSplice: k,
|
|
343
|
-
startRenaming:
|
|
344
|
-
updateNode:
|
|
345
|
-
updateNodeChildren:
|
|
346
|
-
use:
|
|
346
|
+
startRenaming: Oe,
|
|
347
|
+
updateNode: Ie,
|
|
348
|
+
updateNodeChildren: Le,
|
|
349
|
+
use: Re
|
|
347
350
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
348
351
|
export {
|
|
349
|
-
|
|
352
|
+
Xe as e
|
|
350
353
|
};
|