@veeqo/transfigure 2.4.1 → 2.5.0
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/components/Views/IncludedFilters/IncludedFilters.d.ts +1 -0
- package/dist/components/Views/IncludedFilters/index.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +23 -11
- package/dist/index102.cjs +1 -1
- package/dist/index102.js +49 -8
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +29 -50
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +57 -28
- package/dist/index105.cjs +19 -1
- package/dist/index105.js +24 -21
- package/dist/index106.cjs +1 -1
- package/dist/index106.js +20 -14
- package/dist/index107.cjs +1 -19
- package/dist/index107.js +14 -23
- package/dist/index108.cjs +1 -12
- package/dist/index108.js +12 -16
- package/dist/index109.cjs +12 -1
- package/dist/index109.js +16 -24
- package/dist/index110.cjs +1 -80
- package/dist/index110.js +8 -97
- package/dist/index111.cjs +80 -1
- package/dist/index111.js +98 -19
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +18 -7
- package/dist/index113.cjs +1 -1
- package/dist/index113.js +7 -60
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +57 -26
- package/dist/index115.cjs +1 -13
- package/dist/index115.js +30 -17
- package/dist/index116.cjs +13 -1
- package/dist/index116.js +17 -2
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +2 -26
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +25 -4
- package/dist/index121.cjs +1 -1
- package/dist/index121.js +5 -63
- package/dist/index122.cjs +1 -1
- package/dist/index122.js +5 -47
- package/dist/index123.cjs +1 -0
- package/dist/index123.js +65 -0
- package/dist/index124.cjs +1 -0
- package/dist/index124.js +49 -0
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +1 -1
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +2 -2
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +21 -19
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +1 -1
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -2
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +1 -1
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +1 -1
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +1 -1
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +2 -2
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +1 -1
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +1 -1
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +1 -1
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +115 -39
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +41 -9
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +8 -116
- package/dist/index93.cjs +1 -1
- package/dist/index93.js +2 -2
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +2 -2
- package/dist/storybookHelpers/apiMocks/views/custom_views.d.ts +28 -0
- package/package.json +1 -1
package/dist/index90.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 "./index93.js";
|
|
5
|
+
import { Container as L, ColumnGroupsGrid as R, VerticalSeparator as X, VerticalText as E, HeaderContainer as Y, ColumnSearch as j } from "./index94.js";
|
|
6
|
+
import { DndContainer as N } from "./index95.js";
|
|
7
|
+
import { ColumnItem as Q } from "./index96.js";
|
|
8
|
+
import { ColumnGroupIds as n } from "./index97.js";
|
|
9
|
+
import { usePersistColumns as U } from "./index98.js";
|
|
10
|
+
import { helpGuideUrls as P } from "./index49.js";
|
|
11
|
+
import { filterColumnsBySearch as D } from "./index99.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/index91.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),w=require("react-use"),L=require("./index8.cjs"),m=require("./index63.cjs"),v=require("./index69.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/index91.js
CHANGED
|
@@ -1,11 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
};
|
|
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 "./index63.js";
|
|
5
|
+
import { useUrlParams as v } from "./index69.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;
|
|
32
|
+
}
|
|
33
|
+
const d = e !== c;
|
|
34
|
+
d && (a(e), u(d));
|
|
35
|
+
},
|
|
36
|
+
l ? null : D
|
|
37
|
+
), { hasChanges: l, acknowledgeButtonClick: async () => {
|
|
38
|
+
u(!1), o(i), a(await r());
|
|
39
|
+
} };
|
|
40
|
+
}
|
|
6
41
|
export {
|
|
7
|
-
|
|
8
|
-
r as refreshButton,
|
|
9
|
-
t as refreshIndicator,
|
|
10
|
-
e as refreshTooltip
|
|
42
|
+
T as usePollData
|
|
11
43
|
};
|
package/dist/index92.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/index92.js
CHANGED
|
@@ -1,119 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import { Container as L, ColumnGroupsGrid as R, VerticalSeparator as X, VerticalText as E, HeaderContainer as Y, ColumnSearch as j } from "./index94.js";
|
|
6
|
-
import { DndContainer as N } from "./index95.js";
|
|
7
|
-
import { ColumnItem as Q } from "./index96.js";
|
|
8
|
-
import { ColumnGroupIds as n } from "./index97.js";
|
|
9
|
-
import { usePersistColumns as U } from "./index98.js";
|
|
10
|
-
import { helpGuideUrls as P } from "./index49.js";
|
|
11
|
-
import { filterColumnsBySearch as D } from "./index99.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
|
-
}));
|
|
42
|
-
}
|
|
43
|
-
},
|
|
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
|
-
);
|
|
1
|
+
const e = "_refreshTooltip_v0eu8_1", r = "_refreshButton_v0eu8_5", t = "_refreshIndicator_v0eu8_9", o = {
|
|
2
|
+
refreshTooltip: e,
|
|
3
|
+
refreshButton: r,
|
|
4
|
+
refreshIndicator: t
|
|
116
5
|
};
|
|
117
6
|
export {
|
|
118
|
-
|
|
7
|
+
o as default,
|
|
8
|
+
r as refreshButton,
|
|
9
|
+
t as refreshIndicator,
|
|
10
|
+
e as refreshTooltip
|
|
119
11
|
};
|
package/dist/index93.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@veeqo/ui"),s=require("@dnd-kit/sortable"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@veeqo/ui"),s=require("@dnd-kit/sortable"),a=require("./index112.cjs"),l=require("./index113.cjs"),c=require("./index96.cjs"),u=require("./index97.cjs"),d=require("./index94.cjs"),m=({id:r,title:n,columns:i})=>e.jsxs(o.Stack,{spacing:"sm",alignX:"stretch",children:[e.jsx(d.StickyText,{variant:"bodyBold",children:n}),e.jsx(s.SortableContext,{id:r,items:i,strategy:s.verticalListSortingStrategy,children:e.jsx(l.DroppableArea,{id:r,spacing:"sm",alignX:"stretch",children:i.map(t=>e.jsx(a.SortableItem,{id:t.id,children:e.jsx(c.ColumnItem,{column:t,isHidden:r===u.ColumnGroupIds.Hidden})},t.id))})})]});exports.ColumnGroup=m;
|
package/dist/index93.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { Stack as n } from "@veeqo/ui";
|
|
3
3
|
import { SortableContext as p, verticalListSortingStrategy as a } from "@dnd-kit/sortable";
|
|
4
|
-
import { SortableItem as s } from "./
|
|
5
|
-
import { DroppableArea as d } from "./
|
|
4
|
+
import { SortableItem as s } from "./index112.js";
|
|
5
|
+
import { DroppableArea as d } from "./index113.js";
|
|
6
6
|
import { ColumnItem as l } from "./index96.js";
|
|
7
7
|
import { ColumnGroupIds as c } from "./index97.js";
|
|
8
8
|
import { StickyText as f } from "./index94.js";
|
package/dist/index95.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("@dnd-kit/core"),S=require("@dnd-kit/sortable"),h=require("./index94.cjs"),q=require("@veeqo/ui"),C=require("./index53.cjs"),E=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("@dnd-kit/core"),S=require("@dnd-kit/sortable"),h=require("./index94.cjs"),q=require("@veeqo/ui"),C=require("./index53.cjs"),E=require("./index114.cjs"),p=require("./index115.cjs"),A=require("./index12.cjs"),b=require("./index52.cjs"),x={droppable:{strategy:e.MeasuringStrategy.Always}},M={sideEffects:e.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.5"}}})},j=({items:o,setItems:s,children:a,renderDragOverlay:n})=>{const{closeModal:i,openModal:l}=C.useModal(),c=e.useSensors(e.useSensor(e.PointerSensor),e.useSensor(e.KeyboardSensor,{coordinateGetter:S.sortableKeyboardCoordinates})),{activeId:t,handleDragCancel:d,handleDragEnd:u,handleDragOver:g,handleDragStart:D}=E.useDragHandlers({items:o,setItems:s}),{collisionDetectionStrategy:y}=p.useCollisionDetectionStrategy({items:o});return r.jsx(A.ErrorBoundary,{errorComponent:r.jsx(q.Alert,{variant:"error",title:"An error occurred",rightActions:[{label:"Reload",onClick:()=>{i(),l(b.ModalId.ORDERS_TABLE_MANAGEMENT)}}]}),children:r.jsxs(e.DndContext,{sensors:c,measuring:x,collisionDetection:y,onDragStart:D,onDragOver:g,onDragEnd:u,onDragCancel:d,children:[a,r.jsx(h.DndDragOverlayDialog,{open:!0,children:r.jsx(e.DragOverlay,{dropAnimation:M,zIndex:2001,children:t&&n?n(t):null})})]})})};exports.DndContainer=j;
|
package/dist/index95.js
CHANGED
|
@@ -4,8 +4,8 @@ import { sortableKeyboardCoordinates as M } from "@dnd-kit/sortable";
|
|
|
4
4
|
import { DndDragOverlayDialog as v } from "./index94.js";
|
|
5
5
|
import { Alert as b } from "@veeqo/ui";
|
|
6
6
|
import { useModal as x } from "./index53.js";
|
|
7
|
-
import { useDragHandlers as O } from "./
|
|
8
|
-
import { useCollisionDetectionStrategy as I } from "./
|
|
7
|
+
import { useDragHandlers as O } from "./index114.js";
|
|
8
|
+
import { useCollisionDetectionStrategy as I } from "./index115.js";
|
|
9
9
|
import { ErrorBoundary as R } from "./index12.js";
|
|
10
10
|
import { ModalId as j } from "./index52.js";
|
|
11
11
|
const B = {
|
|
@@ -159,5 +159,33 @@ export declare const custom_views: {
|
|
|
159
159
|
columnIds?: undefined;
|
|
160
160
|
};
|
|
161
161
|
view_attributes?: undefined;
|
|
162
|
+
} | {
|
|
163
|
+
id: string;
|
|
164
|
+
title: string;
|
|
165
|
+
user_id: number;
|
|
166
|
+
shared: boolean;
|
|
167
|
+
filters: {
|
|
168
|
+
filter: {
|
|
169
|
+
status?: undefined;
|
|
170
|
+
created?: undefined;
|
|
171
|
+
mergeable?: undefined;
|
|
172
|
+
pick_status?: undefined;
|
|
173
|
+
due_date?: undefined;
|
|
174
|
+
shoe_size?: undefined;
|
|
175
|
+
max_products?: undefined;
|
|
176
|
+
search?: undefined;
|
|
177
|
+
product_count?: undefined;
|
|
178
|
+
brand_ids?: undefined;
|
|
179
|
+
};
|
|
180
|
+
page?: undefined;
|
|
181
|
+
};
|
|
182
|
+
created_at: string;
|
|
183
|
+
updated_at: string;
|
|
184
|
+
editable: boolean;
|
|
185
|
+
company_id: number;
|
|
186
|
+
columns: {
|
|
187
|
+
columnIds?: undefined;
|
|
188
|
+
};
|
|
189
|
+
view_attributes?: undefined;
|
|
162
190
|
})[];
|
|
163
191
|
};
|