@veeqo/transfigure 2.1.1 → 2.1.3
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/constants/helpGuideUrls.d.ts +3 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +81 -79
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +10 -23
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +24 -15
- package/dist/index102.cjs +19 -1
- package/dist/index102.js +24 -21
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +3 -3
- package/dist/index105.cjs +1 -12
- package/dist/index105.js +15 -16
- package/dist/index106.cjs +11 -18
- package/dist/index106.js +12 -20
- package/dist/index107.cjs +1 -80
- package/dist/index107.js +21 -98
- package/dist/index108.cjs +80 -1
- package/dist/index108.js +98 -2
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +2 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +18 -7
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +7 -63
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +57 -26
- package/dist/index113.cjs +1 -13
- package/dist/index113.js +30 -17
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +32 -22
- package/dist/index115.cjs +13 -1
- package/dist/index115.js +14 -33
- package/dist/index116.cjs +1 -7
- package/dist/index116.js +26 -10
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +58 -42
- package/dist/index119.cjs +7 -1
- package/dist/index119.js +10 -63
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +49 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +2 -2
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +2 -2
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +4 -4
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +3 -3
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +3 -3
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +4 -4
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +4 -4
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +3 -3
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +3 -3
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +4 -4
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +1 -1
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +1 -1
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +3 -3
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +3 -3
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +4 -4
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +2 -2
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +4 -4
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +5 -5
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +3 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +4 -9
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +9 -23
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +23 -2
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +2 -4
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +4 -11
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +10 -12
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +12 -11
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +11 -184
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +183 -25
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +26 -24
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +19 -22
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +2 -2
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +25 -97
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +99 -8
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +8 -33
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +33 -63
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +59 -19
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +23 -18
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +16 -29
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +30 -59
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +60 -349
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +345 -55
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +4 -4
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +48 -47
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +51 -32
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +30 -24
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +26 -32
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +38 -4
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +4 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +12 -16
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +14 -16
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +18 -65
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +66 -24
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +24 -21
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +20 -6
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +7 -2
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +2 -9
- package/dist/index84.cjs +1 -3
- package/dist/index84.js +8 -13
- package/dist/index85.cjs +3 -1
- package/dist/index85.js +13 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +9 -2
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +115 -39
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +2 -9
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +39 -114
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +8 -6
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +7 -13
- package/dist/index94.cjs +1 -104
- package/dist/index94.js +13 -119
- package/dist/index95.cjs +104 -1
- package/dist/index95.js +116 -65
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +63 -23
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +28 -2
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +2 -41
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +39 -9
- package/package.json +1 -1
package/dist/index80.js
CHANGED
|
@@ -1,23 +1,26 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
1
|
+
import { theme as e } from "@veeqo/ui";
|
|
2
|
+
const l = "all", a = () => ({
|
|
3
|
+
id: l,
|
|
4
|
+
label: "All",
|
|
5
|
+
viewFilters: {},
|
|
6
|
+
filterMaps: {
|
|
7
|
+
filters: /* @__PURE__ */ new Map(),
|
|
8
|
+
arrayFilters: /* @__PURE__ */ new Map(),
|
|
9
|
+
rangeFilters: /* @__PURE__ */ new Map(),
|
|
10
|
+
numberRangeFilters: /* @__PURE__ */ new Map()
|
|
11
|
+
},
|
|
12
|
+
page: {
|
|
13
|
+
size: 10
|
|
14
|
+
},
|
|
15
|
+
editable: !1,
|
|
16
|
+
isShared: !1,
|
|
17
|
+
columns: {
|
|
18
|
+
columnIds: [],
|
|
19
|
+
columnWidths: {}
|
|
20
|
+
},
|
|
21
|
+
colourPalette: e.colors.secondary.blue
|
|
22
|
+
});
|
|
21
23
|
export {
|
|
22
|
-
|
|
24
|
+
l as ALL_VIEW_ID,
|
|
25
|
+
a as createAllView
|
|
23
26
|
};
|
package/dist/index81.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index93.cjs"),w=require("./index80.cjs"),V=require("./index79.cjs"),d=({data:n,canUpdateCustomViews:u})=>{const l={fixedViews:[...r.INITIAL_VIEWS_STATE.fixedViews],customViews:[...r.INITIAL_VIEWS_STATE.customViews],viewsMap:new Map(r.INITIAL_VIEWS_STATE.viewsMap)};if(!n)return l;let o=!1;const i=n.reduce((e,s)=>{const t=V.viewsAdapter({view:s,canUpdateCustomViews:u});return e.viewsMap.set(s.id,t),s.editable?e.customViews.push(t):e.fixedViews.push(t),s.title==="All"&&(o=!0),e},l);return o&&(i.viewsMap.delete(w.ALL_VIEW_ID),i.fixedViews.shift()),i};exports.organiseViews=d;
|
package/dist/index81.js
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { INITIAL_VIEWS_STATE as r } from "./index93.js";
|
|
2
|
+
import { ALL_VIEW_ID as p } from "./index80.js";
|
|
3
|
+
import { viewsAdapter as u } from "./index79.js";
|
|
4
|
+
const m = ({ data: o, canUpdateCustomViews: w }) => {
|
|
5
|
+
const f = {
|
|
6
|
+
fixedViews: [...r.fixedViews],
|
|
7
|
+
customViews: [...r.customViews],
|
|
8
|
+
viewsMap: new Map(r.viewsMap)
|
|
9
|
+
};
|
|
10
|
+
if (!o) return f;
|
|
11
|
+
let l = !1;
|
|
12
|
+
const s = o.reduce(
|
|
13
|
+
(e, i) => {
|
|
14
|
+
const t = u({ view: i, canUpdateCustomViews: w });
|
|
15
|
+
return e.viewsMap.set(i.id, t), i.editable ? e.customViews.push(t) : e.fixedViews.push(t), i.title === "All" && (l = !0), e;
|
|
16
|
+
},
|
|
17
|
+
f
|
|
18
|
+
);
|
|
19
|
+
return l && (s.viewsMap.delete(p), s.fixedViews.shift()), s;
|
|
6
20
|
};
|
|
7
21
|
export {
|
|
8
|
-
m as
|
|
22
|
+
m as organiseViews
|
|
9
23
|
};
|
package/dist/index82.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index62.cjs"),t=e=>{o.useStores.mockImplementation(()=>({...e}))};exports.mockUseStores=t;
|
package/dist/index82.js
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import { useStores as e } from "./index62.js";
|
|
2
|
+
const m = (o) => {
|
|
3
|
+
e.mockImplementation(() => ({
|
|
4
|
+
...o
|
|
5
|
+
}));
|
|
6
|
+
};
|
|
2
7
|
export {
|
|
3
|
-
|
|
8
|
+
m as mockUseStores
|
|
4
9
|
};
|
package/dist/index83.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var P=(t=>(t.GET="AxiosGet",t.DELETE="AxiosDelete",t.POST="AxiosPost",t.PATCH="AxiosPatch",t.PUT="AxiosPut",t.POST_FORM="AxioPostForm",t.PUT_FORM="AxiosPutForm",t.PATCH_FORM="AxiosPatchForm",t))(P||{});exports.AxiosErrorType=P;
|
package/dist/index83.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const r = [s];
|
|
3
|
-
return t !== void 0 && r.push(t), r;
|
|
4
|
-
}, o = (s, t, r) => {
|
|
5
|
-
const e = [s];
|
|
6
|
-
return t !== void 0 && e.push(t), r !== void 0 && e.push(r), e;
|
|
7
|
-
};
|
|
1
|
+
var t = /* @__PURE__ */ ((P) => (P.GET = "AxiosGet", P.DELETE = "AxiosDelete", P.POST = "AxiosPost", P.PATCH = "AxiosPatch", P.PUT = "AxiosPut", P.POST_FORM = "AxioPostForm", P.PUT_FORM = "AxiosPutForm", P.PATCH_FORM = "AxiosPatchForm", P))(t || {});
|
|
8
2
|
export {
|
|
9
|
-
|
|
10
|
-
i as filterOptionalArgsGetDelete
|
|
3
|
+
t as AxiosErrorType
|
|
11
4
|
};
|
package/dist/index84.cjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
`);if(t.length<=10)return e;const n=t==null?void 0:t[0],i=t==null?void 0:t.splice(9),r=[n,...i].join(`
|
|
3
|
-
`);e.stack=r}return e};exports.filterErrorStack=s;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(r,t)=>{const e=[r];return t!==void 0&&e.push(t),e},l=(r,t,e)=>{const i=[r];return t!==void 0&&i.push(t),e!==void 0&&i.push(e),i};exports.filterOptionalArgs=l;exports.filterOptionalArgsGetDelete=s;
|
package/dist/index84.js
CHANGED
|
@@ -1,16 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (n.length <= 10) return e;
|
|
8
|
-
const i = n == null ? void 0 : n[0], t = n == null ? void 0 : n.splice(9), f = [i, ...t].join(`
|
|
9
|
-
`);
|
|
10
|
-
e.stack = f;
|
|
11
|
-
}
|
|
12
|
-
return e;
|
|
1
|
+
const i = (s, t) => {
|
|
2
|
+
const r = [s];
|
|
3
|
+
return t !== void 0 && r.push(t), r;
|
|
4
|
+
}, o = (s, t, r) => {
|
|
5
|
+
const e = [s];
|
|
6
|
+
return t !== void 0 && e.push(t), r !== void 0 && e.push(r), e;
|
|
13
7
|
};
|
|
14
8
|
export {
|
|
15
|
-
|
|
9
|
+
o as filterOptionalArgs,
|
|
10
|
+
i as filterOptionalArgsGetDelete
|
|
16
11
|
};
|
package/dist/index85.cjs
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index109.cjs"),s=e=>{if(!l.isError(e))return e;if(e.stack){const t=e.stack.split(`
|
|
2
|
+
`);if(t.length<=10)return e;const n=t==null?void 0:t[0],i=t==null?void 0:t.splice(9),r=[n,...i].join(`
|
|
3
|
+
`);e.stack=r}return e};exports.filterErrorStack=s;
|
package/dist/index85.js
CHANGED
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { isError as
|
|
2
|
-
const s = ({
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import { isError as l } from "./index109.js";
|
|
2
|
+
const s = (e) => {
|
|
3
|
+
if (!l(e)) return e;
|
|
4
|
+
if (e.stack) {
|
|
5
|
+
const n = e.stack.split(`
|
|
6
|
+
`);
|
|
7
|
+
if (n.length <= 10) return e;
|
|
8
|
+
const i = n == null ? void 0 : n[0], t = n == null ? void 0 : n.splice(9), f = [i, ...t].join(`
|
|
9
|
+
`);
|
|
10
|
+
e.stack = f;
|
|
11
|
+
}
|
|
12
|
+
return e;
|
|
8
13
|
};
|
|
9
14
|
export {
|
|
10
|
-
s as
|
|
15
|
+
s as filterErrorStack
|
|
11
16
|
};
|
package/dist/index86.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index109.cjs"),n=({customError:t,originalError:e,type:c})=>{!s.isError(e)||!s.isError(t)||(e.stack&&(e.stack=t.stack),e.name&&(e.name=`${c} (${e.name})`))};exports.injectIntoError=n;
|
package/dist/index86.js
CHANGED
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
1
|
+
import { isError as c } from "./index109.js";
|
|
2
|
+
const s = ({
|
|
3
|
+
customError: e,
|
|
4
|
+
originalError: t,
|
|
5
|
+
type: f
|
|
6
|
+
}) => {
|
|
7
|
+
!c(t) || !c(e) || (t.stack && (t.stack = e.stack), t.name && (t.name = `${f} (${t.name})`));
|
|
8
|
+
};
|
|
2
9
|
export {
|
|
3
|
-
|
|
10
|
+
s as injectIntoError
|
|
4
11
|
};
|
package/dist/index88.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("@veeqo/ui"),t=require("react"),j=require("./index94.cjs"),o=require("./index95.cjs"),w=require("./index96.cjs"),T=require("./index97.cjs"),r=require("./index98.cjs"),D=require("./index99.cjs"),V=require("./index49.cjs"),b=require("./index100.cjs"),H=({onClose:u,columnDefinitions:I,hiddenColumns:d,visibleColumns:m,pinnedLeftColumnIds:G,pinnedRightColumnIds:f})=>{const[c,p]=t.useState(""),a=t.useMemo(()=>new Map(I.map(s=>[s.id,s])),[]),[i,C]=t.useState(()=>({[r.ColumnGroupIds.Hidden]:d,[r.ColumnGroupIds.Visible]:m})),y=t.useMemo(()=>{const s=i[r.ColumnGroupIds.Visible].map(l=>a.get(`${l}`));return b.filterColumnsBySearch(s,c)},[i,a,c]),v=t.useMemo(()=>{const s=i[r.ColumnGroupIds.Hidden].map(l=>a.get(`${l}`));return b.filterColumnsBySearch(s,c)},[i,a,c]),{isSavingColumns:h,saveColumns:M}=D.usePersistColumns({pinnedLeftColumnIds:G,pinnedRightColumnIds:f}),k=()=>{p(""),C({[r.ColumnGroupIds.Hidden]:d,[r.ColumnGroupIds.Visible]:m})},x=t.useCallback(s=>{if(p(s),!s){const l=new Set([...d,...m]);C(S=>({[r.ColumnGroupIds.Hidden]:S[r.ColumnGroupIds.Hidden].filter(g=>l.has(`${g}`)),[r.ColumnGroupIds.Visible]:S[r.ColumnGroupIds.Visible].filter(g=>l.has(`${g}`))}))}},[d,m]),q=t.useCallback(s=>{const l=a.get(`${s}`);return l?e.jsx(T.ColumnItem,{column:l,isDragOverlay:!0}):null},[a]);return e.jsx(n.Modal,{variant:"lg",style:{overflowY:"hidden"},shouldShow:!0,onClose:()=>u==null?void 0:u(),headerSlot:e.jsxs(o.HeaderContainer,{children:[e.jsxs(n.Stack,{direction:"horizontal",alignX:"between",alignY:"center",children:[e.jsxs(n.Stack,{direction:"horizontal",alignX:"start",alignY:"center",spacing:"sm",children:[e.jsx(n.ListBoardIcon,{height:n.theme.sizes.lg,width:n.theme.sizes.lg}),e.jsx(n.Text,{variant:"headingLarge",as:"h1",children:"Table management"})]}),e.jsx(n.Button,{"aria-label":"Close modal",onClick:u,variant:"flat",iconSlot:e.jsx(n.CloseIcon,{})})]}),e.jsxs(n.Text,{variant:"subheadingMedium",children:["Show, hide, or change the order of the columns in the view, so you always see the data that's most important to you. Learn more with our"," ",e.jsx(n.Anchor,{href:V.helpGuideUrls.ORDER_VIEWS_AND_TABLE_CUSTOMIZATION,target:"_blank",children:"help guide"}),"."]}),e.jsx(n.Text,{variant:"headingSmall",children:"Column management"}),e.jsx(o.ColumnSearch,{name:"column-search-query",placeholder:"Search",value:c,onChange:x,onClearClick:()=>x(""),fill:"100%"})]}),leftActions:[{label:"Reset",onClick:k,variant:"default",disabled:h}],rightActions:[{label:"Cancel",onClick:u,variant:"default",disabled:h},{label:"Save",onClick:()=>M({visibleColumns:i[r.ColumnGroupIds.Visible]}),variant:"primary",disabled:h,loading:h}],children:e.jsx(n.Stack,{spacing:"md",alignX:"stretch",children:e.jsx(n.Stack,{spacing:4,alignX:"stretch",children:e.jsx(w.DndContainer,{items:i,setItems:C,renderDragOverlay:q,children:e.jsx(o.Container,{children:e.jsxs(o.ColumnGroupsGrid,{columns:2,spacing:"xl",children:[e.jsx(j.ColumnGroup,{id:r.ColumnGroupIds.Visible,title:"Shown columns:",columns:y}),e.jsx(o.VerticalSeparator,{children:e.jsx(o.VerticalText,{children:"Drag & Drop columns"})}),e.jsx(j.ColumnGroup,{id:r.ColumnGroupIds.Hidden,title:"Hidden columns:",columns:v})]})})})})})})};exports.TableManagementModal=H;
|
package/dist/index88.js
CHANGED
|
@@ -1,43 +1,119 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
}, []),
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as O, Stack as h, ListBoardIcon as _, theme as v, Text as p, Button as $, CloseIcon as z, Anchor as B } from "@veeqo/ui";
|
|
3
|
+
import { useState as w, useMemo as f, useCallback as y } from "react";
|
|
4
|
+
import { ColumnGroup as V } from "./index94.js";
|
|
5
|
+
import { Container as L, ColumnGroupsGrid as R, VerticalSeparator as X, VerticalText as E, HeaderContainer as Y, ColumnSearch as j } from "./index95.js";
|
|
6
|
+
import { DndContainer as N } from "./index96.js";
|
|
7
|
+
import { ColumnItem as Q } from "./index97.js";
|
|
8
|
+
import { ColumnGroupIds as n } from "./index98.js";
|
|
9
|
+
import { usePersistColumns as U } from "./index99.js";
|
|
10
|
+
import { helpGuideUrls as P } from "./index49.js";
|
|
11
|
+
import { filterColumnsBySearch as D } from "./index100.js";
|
|
12
|
+
const te = ({
|
|
13
|
+
onClose: l,
|
|
14
|
+
columnDefinitions: k,
|
|
15
|
+
hiddenColumns: c,
|
|
16
|
+
visibleColumns: d,
|
|
17
|
+
pinnedLeftColumnIds: H,
|
|
18
|
+
pinnedRightColumnIds: I
|
|
19
|
+
}) => {
|
|
20
|
+
const [o, b] = w(""), a = f(() => new Map(k.map((i) => [i.id, i])), []), [t, u] = w(() => ({
|
|
21
|
+
[n.Hidden]: c,
|
|
22
|
+
[n.Visible]: d
|
|
23
|
+
})), M = f(() => {
|
|
24
|
+
const i = t[n.Visible].map((r) => a.get(`${r}`));
|
|
25
|
+
return D(i, o);
|
|
26
|
+
}, [t, a, o]), T = f(() => {
|
|
27
|
+
const i = t[n.Hidden].map((r) => a.get(`${r}`));
|
|
28
|
+
return D(i, o);
|
|
29
|
+
}, [t, a, o]), { isSavingColumns: m, saveColumns: x } = U({ pinnedLeftColumnIds: H, pinnedRightColumnIds: I }), A = () => {
|
|
30
|
+
b(""), u({
|
|
31
|
+
[n.Hidden]: c,
|
|
32
|
+
[n.Visible]: d
|
|
33
|
+
});
|
|
34
|
+
}, C = y(
|
|
35
|
+
(i) => {
|
|
36
|
+
if (b(i), !i) {
|
|
37
|
+
const r = /* @__PURE__ */ new Set([...c, ...d]);
|
|
38
|
+
u((S) => ({
|
|
39
|
+
[n.Hidden]: S[n.Hidden].filter((g) => r.has(`${g}`)),
|
|
40
|
+
[n.Visible]: S[n.Visible].filter((g) => r.has(`${g}`))
|
|
41
|
+
}));
|
|
32
42
|
}
|
|
33
|
-
const d = e !== c;
|
|
34
|
-
d && (a(e), u(d));
|
|
35
43
|
},
|
|
36
|
-
|
|
37
|
-
),
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
}
|
|
44
|
+
[c, d]
|
|
45
|
+
), G = y(
|
|
46
|
+
(i) => {
|
|
47
|
+
const r = a.get(`${i}`);
|
|
48
|
+
return r ? /* @__PURE__ */ e(Q, { column: r, isDragOverlay: !0 }) : null;
|
|
49
|
+
},
|
|
50
|
+
[a]
|
|
51
|
+
);
|
|
52
|
+
return /* @__PURE__ */ e(
|
|
53
|
+
O,
|
|
54
|
+
{
|
|
55
|
+
variant: "lg",
|
|
56
|
+
style: { overflowY: "hidden" },
|
|
57
|
+
shouldShow: !0,
|
|
58
|
+
onClose: () => l == null ? void 0 : l(),
|
|
59
|
+
headerSlot: /* @__PURE__ */ s(Y, { children: [
|
|
60
|
+
/* @__PURE__ */ s(h, { direction: "horizontal", alignX: "between", alignY: "center", children: [
|
|
61
|
+
/* @__PURE__ */ s(h, { direction: "horizontal", alignX: "start", alignY: "center", spacing: "sm", children: [
|
|
62
|
+
/* @__PURE__ */ e(_, { height: v.sizes.lg, width: v.sizes.lg }),
|
|
63
|
+
/* @__PURE__ */ e(p, { variant: "headingLarge", as: "h1", children: "Table management" })
|
|
64
|
+
] }),
|
|
65
|
+
/* @__PURE__ */ e($, { "aria-label": "Close modal", onClick: l, variant: "flat", iconSlot: /* @__PURE__ */ e(z, {}) })
|
|
66
|
+
] }),
|
|
67
|
+
/* @__PURE__ */ s(p, { variant: "subheadingMedium", children: [
|
|
68
|
+
"Show, hide, or change the order of the columns in the view, so you always see the data that's most important to you. Learn more with our",
|
|
69
|
+
" ",
|
|
70
|
+
/* @__PURE__ */ e(B, { href: P.ORDER_VIEWS_AND_TABLE_CUSTOMIZATION, target: "_blank", children: "help guide" }),
|
|
71
|
+
"."
|
|
72
|
+
] }),
|
|
73
|
+
/* @__PURE__ */ e(p, { variant: "headingSmall", children: "Column management" }),
|
|
74
|
+
/* @__PURE__ */ e(
|
|
75
|
+
j,
|
|
76
|
+
{
|
|
77
|
+
name: "column-search-query",
|
|
78
|
+
placeholder: "Search",
|
|
79
|
+
value: o,
|
|
80
|
+
onChange: C,
|
|
81
|
+
onClearClick: () => C(""),
|
|
82
|
+
fill: "100%"
|
|
83
|
+
}
|
|
84
|
+
)
|
|
85
|
+
] }),
|
|
86
|
+
leftActions: [
|
|
87
|
+
{
|
|
88
|
+
label: "Reset",
|
|
89
|
+
onClick: A,
|
|
90
|
+
variant: "default",
|
|
91
|
+
disabled: m
|
|
92
|
+
}
|
|
93
|
+
],
|
|
94
|
+
rightActions: [
|
|
95
|
+
{
|
|
96
|
+
label: "Cancel",
|
|
97
|
+
onClick: l,
|
|
98
|
+
variant: "default",
|
|
99
|
+
disabled: m
|
|
100
|
+
},
|
|
101
|
+
{
|
|
102
|
+
label: "Save",
|
|
103
|
+
onClick: () => x({ visibleColumns: t[n.Visible] }),
|
|
104
|
+
variant: "primary",
|
|
105
|
+
disabled: m,
|
|
106
|
+
loading: m
|
|
107
|
+
}
|
|
108
|
+
],
|
|
109
|
+
children: /* @__PURE__ */ e(h, { spacing: "md", alignX: "stretch", children: /* @__PURE__ */ e(h, { spacing: 4, alignX: "stretch", children: /* @__PURE__ */ e(N, { items: t, setItems: u, renderDragOverlay: G, children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(R, { columns: 2, spacing: "xl", children: [
|
|
110
|
+
/* @__PURE__ */ e(V, { id: n.Visible, title: "Shown columns:", columns: M }),
|
|
111
|
+
/* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(E, { children: "Drag & Drop columns" }) }),
|
|
112
|
+
/* @__PURE__ */ e(V, { id: n.Hidden, title: "Hidden columns:", columns: T })
|
|
113
|
+
] }) }) }) }) })
|
|
114
|
+
}
|
|
115
|
+
);
|
|
116
|
+
};
|
|
41
117
|
export {
|
|
42
|
-
|
|
118
|
+
te as TableManagementModal
|
|
43
119
|
};
|
package/dist/index89.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=t=>t.trim().length>=3||t.trim().length===0;exports.isTextFilterValid=e;
|
package/dist/index89.js
CHANGED
|
@@ -1,11 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
refreshTooltip: e,
|
|
3
|
-
refreshButton: r,
|
|
4
|
-
refreshIndicator: t
|
|
5
|
-
};
|
|
1
|
+
const i = (t) => t.trim().length >= 3 || t.trim().length === 0;
|
|
6
2
|
export {
|
|
7
|
-
|
|
8
|
-
r as refreshButton,
|
|
9
|
-
t as refreshIndicator,
|
|
10
|
-
e as refreshTooltip
|
|
3
|
+
i as isTextFilterValid
|
|
11
4
|
};
|
package/dist/index90.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),w=require("react-use"),L=require("./index8.cjs"),m=require("./index62.cjs"),v=require("./index68.cjs"),q=require("./index56.cjs");function V(){const{TABLE_DATA_URL:h}=L.useBusinessLogic(),{Filters:{pageSize:s,activeViewId:n}}=m.useStores(),{queryParams:S}=v.useUrlParams();async function c(){const e=`${h}?${S}`,g=await q.fetcherV2(e);return JSON.stringify(g)}const[u,a]=t.useState(null),[o,l]=t.useState(!1),[f,C]=t.useState(n),[y,P]=t.useState(s),i=3e5,[D,r]=t.useState(i);return t.useEffect(()=>{const e=()=>{document.hidden?r(null):r(i)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),w.useInterval(async()=>{const e=await c();if(u===null||f!==n||y!==s){a(e),C(n),P(s);return}const d=e!==u;d&&(a(e),l(d))},o?null:D),{hasChanges:o,acknowledgeButtonClick:async()=>{l(!1),r(i),a(await c())}}}exports.usePollData=V;
|
package/dist/index90.js
CHANGED
|
@@ -1,118 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
});
|
|
33
|
-
}, C = y(
|
|
34
|
-
(i) => {
|
|
35
|
-
if (b(i), !i) {
|
|
36
|
-
const a = /* @__PURE__ */ new Set([...c, ...d]);
|
|
37
|
-
u((S) => ({
|
|
38
|
-
[n.Hidden]: S[n.Hidden].filter((g) => a.has(`${g}`)),
|
|
39
|
-
[n.Visible]: S[n.Visible].filter((g) => a.has(`${g}`))
|
|
40
|
-
}));
|
|
1
|
+
import { useState as t, useEffect as p } from "react";
|
|
2
|
+
import { useInterval as P } from "react-use";
|
|
3
|
+
import { useBusinessLogic as S } from "./index8.js";
|
|
4
|
+
import { useStores as L } from "./index62.js";
|
|
5
|
+
import { useUrlParams as v } from "./index68.js";
|
|
6
|
+
import { fetcherV2 as V } from "./index56.js";
|
|
7
|
+
function T() {
|
|
8
|
+
const { TABLE_DATA_URL: h } = S(), {
|
|
9
|
+
Filters: {
|
|
10
|
+
pageSize: n,
|
|
11
|
+
activeViewId: s
|
|
12
|
+
}
|
|
13
|
+
} = L(), { queryParams: m } = v();
|
|
14
|
+
async function r() {
|
|
15
|
+
const e = `${h}?${m}`, g = await V(e);
|
|
16
|
+
return JSON.stringify(g);
|
|
17
|
+
}
|
|
18
|
+
const [c, a] = t(null), [l, u] = t(!1), [f, C] = t(s), [w, y] = t(n), i = 3e5, [D, o] = t(i);
|
|
19
|
+
return p(() => {
|
|
20
|
+
const e = () => {
|
|
21
|
+
document.hidden ? o(null) : o(i);
|
|
22
|
+
};
|
|
23
|
+
return document.addEventListener("visibilitychange", e), () => {
|
|
24
|
+
document.removeEventListener("visibilitychange", e);
|
|
25
|
+
};
|
|
26
|
+
}, []), P(
|
|
27
|
+
async () => {
|
|
28
|
+
const e = await r();
|
|
29
|
+
if (c === null || f !== s || w !== n) {
|
|
30
|
+
a(e), C(s), y(n);
|
|
31
|
+
return;
|
|
41
32
|
}
|
|
33
|
+
const d = e !== c;
|
|
34
|
+
d && (a(e), u(d));
|
|
42
35
|
},
|
|
43
|
-
|
|
44
|
-
),
|
|
45
|
-
(i)
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
},
|
|
49
|
-
[r]
|
|
50
|
-
);
|
|
51
|
-
return /* @__PURE__ */ e(
|
|
52
|
-
G,
|
|
53
|
-
{
|
|
54
|
-
variant: "lg",
|
|
55
|
-
style: { overflowY: "hidden" },
|
|
56
|
-
shouldShow: !0,
|
|
57
|
-
onClose: () => l == null ? void 0 : l(),
|
|
58
|
-
headerSlot: /* @__PURE__ */ s(R, { children: [
|
|
59
|
-
/* @__PURE__ */ s(h, { direction: "horizontal", alignX: "between", alignY: "center", children: [
|
|
60
|
-
/* @__PURE__ */ s(h, { direction: "horizontal", alignX: "start", alignY: "center", spacing: "sm", children: [
|
|
61
|
-
/* @__PURE__ */ e(O, { height: v.sizes.lg, width: v.sizes.lg }),
|
|
62
|
-
/* @__PURE__ */ e(p, { variant: "headingLarge", as: "h1", children: "Table management" })
|
|
63
|
-
] }),
|
|
64
|
-
/* @__PURE__ */ e(X, { "aria-label": "Close modal", onClick: l, variant: "flat", iconSlot: /* @__PURE__ */ e(A, {}) })
|
|
65
|
-
] }),
|
|
66
|
-
/* @__PURE__ */ s(p, { variant: "subheadingMedium", children: [
|
|
67
|
-
"Show, hide, or change the order of the columns in the view, so you always see the data that's most important to you. Learn more with our",
|
|
68
|
-
" ",
|
|
69
|
-
/* @__PURE__ */ e(B, { href: "#", target: "_blank", children: "help guide (TODO)" }),
|
|
70
|
-
"."
|
|
71
|
-
] }),
|
|
72
|
-
/* @__PURE__ */ e(p, { variant: "headingSmall", children: "Column management" }),
|
|
73
|
-
/* @__PURE__ */ e(
|
|
74
|
-
P,
|
|
75
|
-
{
|
|
76
|
-
name: "column-search-query",
|
|
77
|
-
placeholder: "Search",
|
|
78
|
-
value: o,
|
|
79
|
-
onChange: C,
|
|
80
|
-
onClearClick: () => C(""),
|
|
81
|
-
fill: "100%"
|
|
82
|
-
}
|
|
83
|
-
)
|
|
84
|
-
] }),
|
|
85
|
-
leftActions: [
|
|
86
|
-
{
|
|
87
|
-
label: "Reset",
|
|
88
|
-
onClick: $,
|
|
89
|
-
variant: "default",
|
|
90
|
-
disabled: m
|
|
91
|
-
}
|
|
92
|
-
],
|
|
93
|
-
rightActions: [
|
|
94
|
-
{
|
|
95
|
-
label: "Cancel",
|
|
96
|
-
onClick: l,
|
|
97
|
-
variant: "default",
|
|
98
|
-
disabled: m
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
label: "Save",
|
|
102
|
-
onClick: () => T({ visibleColumns: t[n.Visible] }),
|
|
103
|
-
variant: "primary",
|
|
104
|
-
disabled: m,
|
|
105
|
-
loading: m
|
|
106
|
-
}
|
|
107
|
-
],
|
|
108
|
-
children: /* @__PURE__ */ e(h, { spacing: "md", alignX: "stretch", children: /* @__PURE__ */ e(h, { spacing: 4, alignX: "stretch", children: /* @__PURE__ */ e(_, { items: t, setItems: u, renderDragOverlay: z, children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(Y, { columns: 2, spacing: "xl", children: [
|
|
109
|
-
/* @__PURE__ */ e(V, { id: n.Visible, title: "Shown columns:", columns: x }),
|
|
110
|
-
/* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(Q, { children: "Drag & Drop columns" }) }),
|
|
111
|
-
/* @__PURE__ */ e(V, { id: n.Hidden, title: "Hidden columns:", columns: I })
|
|
112
|
-
] }) }) }) }) })
|
|
113
|
-
}
|
|
114
|
-
);
|
|
115
|
-
};
|
|
36
|
+
l ? null : D
|
|
37
|
+
), { hasChanges: l, acknowledgeButtonClick: async () => {
|
|
38
|
+
u(!1), o(i), a(await r());
|
|
39
|
+
} };
|
|
40
|
+
}
|
|
116
41
|
export {
|
|
117
|
-
|
|
42
|
+
T as usePollData
|
|
118
43
|
};
|
package/dist/index91.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_refreshTooltip_v0eu8_1",r="_refreshButton_v0eu8_5",t="_refreshIndicator_v0eu8_9",o={refreshTooltip:e,refreshButton:r,refreshIndicator:t};exports.default=o;exports.refreshButton=r;exports.refreshIndicator=t;exports.refreshTooltip=e;
|
package/dist/index91.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
viewsMap: /* @__PURE__ */ new Map([[e.id, e]])
|
|
1
|
+
const e = "_refreshTooltip_v0eu8_1", r = "_refreshButton_v0eu8_5", t = "_refreshIndicator_v0eu8_9", o = {
|
|
2
|
+
refreshTooltip: e,
|
|
3
|
+
refreshButton: r,
|
|
4
|
+
refreshIndicator: t
|
|
6
5
|
};
|
|
7
6
|
export {
|
|
8
|
-
|
|
7
|
+
o as default,
|
|
8
|
+
r as refreshButton,
|
|
9
|
+
t as refreshIndicator,
|
|
10
|
+
e as refreshTooltip
|
|
9
11
|
};
|
package/dist/index93.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index80.cjs"),e=i.createAllView(),t={fixedViews:[e],customViews:[],viewsMap:new Map([[e.id,e]])};exports.INITIAL_VIEWS_STATE=t;
|