@veeqo/transfigure 0.0.6 → 0.0.7
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/constants.d.ts +4 -0
- package/dist/hooks/usePersistColumns/usePersistColumns.d.ts +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +82 -81
- package/dist/index101.cjs +80 -1
- package/dist/index101.js +94 -35
- package/dist/index102.cjs +7 -1
- package/dist/index102.js +10 -42
- package/dist/index103.cjs +1 -7
- package/dist/index103.js +42 -10
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +18 -16
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +20 -18
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +32 -30
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +34 -32
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +1 -1
- 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 +1 -1
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +1 -1
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +7 -2
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +19 -17
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +8 -7
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +72 -92
- package/dist/index79.cjs +1 -80
- package/dist/index79.js +13 -95
- package/dist/index80.cjs +104 -1
- package/dist/index80.js +120 -13
- package/dist/index81.cjs +1 -104
- package/dist/index81.js +65 -117
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +24 -53
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +2 -29
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +40 -2
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +7 -33
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +23 -7
- package/dist/index88.cjs +19 -1
- package/dist/index88.js +24 -22
- package/dist/index89.cjs +1 -19
- package/dist/index89.js +14 -23
- package/dist/index90.cjs +78 -10
- package/dist/index90.js +92 -13
- package/dist/index91.cjs +12 -1
- package/dist/index91.js +16 -15
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +22 -24
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +2 -2
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +1 -1
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +1 -1
- package/dist/index99.cjs +1 -80
- package/dist/index99.js +35 -94
- package/package.json +1 -1
package/dist/index60.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
|
|
1
|
+
import { SWR_HOOK_OPTIONS as O } from "./index45.js";
|
|
2
|
+
import S from "swr";
|
|
3
|
+
import { fetcherV1 as h } from "./index51.js";
|
|
4
|
+
const R = ({ type: e }) => {
|
|
4
5
|
var o, t, i, n, r, m, u, c;
|
|
5
|
-
const { data: s, isLoading: _, isValidating:
|
|
6
|
+
const { data: s, isLoading: _, isValidating: p, error: w, mutate: l } = S("/current_user", h, O), V = (t = (o = s == null ? void 0 : s.settings) == null ? void 0 : o.custom_view_positions) == null ? void 0 : t[e], f = (r = (n = (i = s == null ? void 0 : s.settings) == null ? void 0 : i.default_custom_views) == null ? void 0 : n[e]) == null ? void 0 : r.toString(), C = !!((m = s == null ? void 0 : s.permissions) != null && m.delete_company_custom_views), g = !!((u = s == null ? void 0 : s.permissions) != null && u.update_company_custom_views), v = !!((c = s == null ? void 0 : s.permissions) != null && c.share_custom_views);
|
|
6
7
|
return {
|
|
7
8
|
canDeleteCustomViews: C,
|
|
8
9
|
canUpdateCustomViews: g,
|
|
@@ -10,11 +11,11 @@ const d = ({ type: e }) => {
|
|
|
10
11
|
orderedListOfCustomViews: V,
|
|
11
12
|
defaultCustomViewId: f,
|
|
12
13
|
isLoading: _,
|
|
13
|
-
isValidating:
|
|
14
|
-
error:
|
|
14
|
+
isValidating: p,
|
|
15
|
+
error: w,
|
|
15
16
|
mutate: l
|
|
16
17
|
};
|
|
17
18
|
};
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
R as useCustomViews
|
|
20
21
|
};
|
package/dist/index77.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),r=require("@veeqo/ui"),a=require("react"),q=require("@veeqo/components"),x=require("./index79.cjs"),o=require("./index80.cjs"),M=require("./index81.cjs"),k=require("./index82.cjs"),t=require("./index83.cjs"),I=require("./index78.cjs"),T=require("./index84.cjs"),j=require("./index85.cjs"),{Glyph:w}=q.VeeqoCommon,D=({onClose:i,columnDefintions:S,hiddenColumns:h,visibleColumns:m})=>{const[c,g]=a.useState(""),s=a.useMemo(()=>new Map(S.map(n=>[n.id,n])),[]),[u,C]=a.useState(()=>({[t.ColumnGroupIds.Hidden]:h,[t.ColumnGroupIds.Visible]:m})),b=a.useMemo(()=>{const n=u[t.ColumnGroupIds.Visible].map(l=>s.get(`${l}`));return j.filterColumnsBySearch(n,c)},[u,s,c]),y=a.useMemo(()=>{const n=u[t.ColumnGroupIds.Hidden].map(l=>s.get(`${l}`));return j.filterColumnsBySearch(n,c)},[u,s,c]),{isSavingColumns:d,saveColumns:v}=T.usePersistColumns(),G=()=>{g(""),C({[t.ColumnGroupIds.Hidden]:h,[t.ColumnGroupIds.Visible]:m})},p=a.useCallback(n=>{g(n)},[]),f=a.useCallback(n=>{const l=s.get(`${n}`);return l?e.jsx(k.ColumnItem,{column:l,isDragOverlay:!0}):null},[s]);return e.jsx(r.Modal,{variant:"lg",style:{overflowY:"hidden"},shouldShow:!0,onClose:()=>i==null?void 0:i(),headerSlot:e.jsxs(o.HeaderContainer,{children:[e.jsxs(r.Stack,{direction:"horizontal",alignX:"between",alignY:"center",children:[e.jsxs(r.Stack,{direction:"horizontal",alignX:"start",alignY:"center",spacing:"sm",children:[e.jsx(I.TableManagementGlyph,{height:32,width:32}),e.jsx(r.Text,{variant:"headingLarge",as:"h1",children:"Table management"})]}),e.jsx(r.Button,{"aria-label":"Close modal",onClick:i,variant:"flat",iconSlot:e.jsx(w,{name:"close"})})]}),e.jsxs(r.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(r.Anchor,{href:"#",target:"_blank",children:"help guide (TODO)"}),"."]}),e.jsx(r.Text,{variant:"headingSmall",children:"Column management"}),e.jsx(o.ColumnSearch,{name:"column-search-query",placeholder:"Search",value:c,onChange:p,onClearClick:()=>p(""),fill:"100%"})]}),leftActions:[{label:"Reset",onClick:G,variant:"default",disabled:d}],rightActions:[{label:"Cancel",onClick:i,variant:"default",disabled:d},{label:"Save",onClick:()=>v({visibleColumns:m}),variant:"primary",disabled:d,loading:d}],children:e.jsx(r.Stack,{spacing:"md",alignX:"stretch",children:e.jsx(r.Stack,{spacing:4,alignX:"stretch",children:e.jsx(M.DndContainer,{items:u,setItems:C,renderDragOverlay:f,children:e.jsx(o.Container,{children:e.jsxs(o.ColumnGroupsGrid,{columns:2,spacing:"xl",children:[e.jsx(x.ColumnGroup,{id:t.ColumnGroupIds.Visible,title:"Shown columns:",columns:b}),e.jsx(o.VerticalSeparator,{children:e.jsx(o.VerticalText,{children:"Drag & Drop columns"})}),e.jsx(x.ColumnGroup,{id:t.ColumnGroupIds.Hidden,title:"Hidden columns:",columns:y})]})})})})})})};exports.TableManagementModal=D;
|
package/dist/index77.js
CHANGED
|
@@ -1,108 +1,88 @@
|
|
|
1
|
-
import { jsx as e, jsxs as
|
|
2
|
-
import { Modal as
|
|
3
|
-
import { useState as
|
|
4
|
-
import { VeeqoCommon as
|
|
5
|
-
import { ColumnGroup as
|
|
6
|
-
import { Container as
|
|
7
|
-
import { DndContainer as
|
|
8
|
-
import { ColumnItem as
|
|
9
|
-
import { ColumnGroupIds as
|
|
10
|
-
import { TableManagementGlyph as
|
|
11
|
-
import { usePersistColumns as
|
|
12
|
-
import { filterColumnsBySearch as
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
hiddenColumns: p,
|
|
19
|
-
visibleColumns: g
|
|
1
|
+
import { jsx as e, jsxs as c } from "react/jsx-runtime";
|
|
2
|
+
import { Modal as G, Stack as m, Text as h, Button as H, Anchor as T } from "@veeqo/ui";
|
|
3
|
+
import { useState as b, useMemo as u, useCallback as S } from "react";
|
|
4
|
+
import { VeeqoCommon as O } from "@veeqo/components";
|
|
5
|
+
import { ColumnGroup as v } from "./index79.js";
|
|
6
|
+
import { Container as X, ColumnGroupsGrid as A, VerticalSeparator as I, VerticalText as Y, HeaderContainer as $, ColumnSearch as j } from "./index80.js";
|
|
7
|
+
import { DndContainer as q } from "./index81.js";
|
|
8
|
+
import { ColumnItem as z } from "./index82.js";
|
|
9
|
+
import { ColumnGroupIds as r } from "./index83.js";
|
|
10
|
+
import { TableManagementGlyph as B } from "./index78.js";
|
|
11
|
+
import { usePersistColumns as L } from "./index84.js";
|
|
12
|
+
import { filterColumnsBySearch as y } from "./index85.js";
|
|
13
|
+
const { Glyph: Q } = O, ne = ({
|
|
14
|
+
onClose: i,
|
|
15
|
+
columnDefintions: w,
|
|
16
|
+
hiddenColumns: g,
|
|
17
|
+
visibleColumns: d
|
|
20
18
|
}) => {
|
|
21
|
-
const [
|
|
22
|
-
() => new Map(
|
|
19
|
+
const [l, p] = b(""), a = u(
|
|
20
|
+
() => new Map(w.map((n) => [n.id, n])),
|
|
23
21
|
[]
|
|
24
|
-
), [
|
|
25
|
-
[
|
|
26
|
-
[
|
|
27
|
-
})),
|
|
28
|
-
const
|
|
29
|
-
return
|
|
30
|
-
}, [
|
|
31
|
-
const
|
|
32
|
-
return
|
|
33
|
-
}, [
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
[n.Hidden]: p,
|
|
38
|
-
[n.Visible]: g
|
|
22
|
+
), [o, f] = b(() => ({
|
|
23
|
+
[r.Hidden]: g,
|
|
24
|
+
[r.Visible]: d
|
|
25
|
+
})), k = u(() => {
|
|
26
|
+
const n = o[r.Visible].map((t) => a.get(`${t}`));
|
|
27
|
+
return y(n, l);
|
|
28
|
+
}, [o, a, l]), D = u(() => {
|
|
29
|
+
const n = o[r.Hidden].map((t) => a.get(`${t}`));
|
|
30
|
+
return y(n, l);
|
|
31
|
+
}, [o, a, l]), { isSavingColumns: s, saveColumns: M } = L(), V = () => {
|
|
32
|
+
p(""), f({
|
|
33
|
+
[r.Hidden]: g,
|
|
34
|
+
[r.Visible]: d
|
|
39
35
|
});
|
|
40
|
-
},
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
const t = r[n.Visible];
|
|
44
|
-
if (t.length < 1) {
|
|
45
|
-
v({ type: "error", text: "You must have at least one visible column." });
|
|
46
|
-
return;
|
|
47
|
-
}
|
|
48
|
-
await M({
|
|
49
|
-
visibleColumns: t
|
|
50
|
-
}), await G(), a == null || a();
|
|
51
|
-
} catch {
|
|
52
|
-
v({ type: "error", text: "Failed to save columns" });
|
|
53
|
-
} finally {
|
|
54
|
-
y(!1);
|
|
55
|
-
}
|
|
56
|
-
}, S = C(
|
|
57
|
-
(t) => {
|
|
58
|
-
f(t);
|
|
36
|
+
}, C = S(
|
|
37
|
+
(n) => {
|
|
38
|
+
p(n);
|
|
59
39
|
},
|
|
60
40
|
[]
|
|
61
|
-
),
|
|
62
|
-
(
|
|
63
|
-
const
|
|
64
|
-
return
|
|
41
|
+
), x = S(
|
|
42
|
+
(n) => {
|
|
43
|
+
const t = a.get(`${n}`);
|
|
44
|
+
return t ? /* @__PURE__ */ e(z, { column: t, isDragOverlay: !0 }) : null;
|
|
65
45
|
},
|
|
66
|
-
[
|
|
46
|
+
[a]
|
|
67
47
|
);
|
|
68
48
|
return /* @__PURE__ */ e(
|
|
69
|
-
|
|
49
|
+
G,
|
|
70
50
|
{
|
|
71
51
|
variant: "lg",
|
|
72
52
|
style: { overflowY: "hidden" },
|
|
73
53
|
shouldShow: !0,
|
|
74
|
-
onClose: () =>
|
|
75
|
-
headerSlot: /* @__PURE__ */
|
|
76
|
-
/* @__PURE__ */
|
|
77
|
-
/* @__PURE__ */
|
|
78
|
-
/* @__PURE__ */ e(
|
|
79
|
-
/* @__PURE__ */ e(
|
|
54
|
+
onClose: () => i == null ? void 0 : i(),
|
|
55
|
+
headerSlot: /* @__PURE__ */ c($, { children: [
|
|
56
|
+
/* @__PURE__ */ c(m, { direction: "horizontal", alignX: "between", alignY: "center", children: [
|
|
57
|
+
/* @__PURE__ */ c(m, { direction: "horizontal", alignX: "start", alignY: "center", spacing: "sm", children: [
|
|
58
|
+
/* @__PURE__ */ e(B, { height: 32, width: 32 }),
|
|
59
|
+
/* @__PURE__ */ e(h, { variant: "headingLarge", as: "h1", children: "Table management" })
|
|
80
60
|
] }),
|
|
81
61
|
/* @__PURE__ */ e(
|
|
82
|
-
|
|
62
|
+
H,
|
|
83
63
|
{
|
|
84
64
|
"aria-label": "Close modal",
|
|
85
|
-
onClick:
|
|
65
|
+
onClick: i,
|
|
86
66
|
variant: "flat",
|
|
87
|
-
iconSlot: /* @__PURE__ */ e(
|
|
67
|
+
iconSlot: /* @__PURE__ */ e(Q, { name: "close" })
|
|
88
68
|
}
|
|
89
69
|
)
|
|
90
70
|
] }),
|
|
91
|
-
/* @__PURE__ */
|
|
71
|
+
/* @__PURE__ */ c(h, { variant: "subheadingMedium", children: [
|
|
92
72
|
"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",
|
|
93
73
|
" ",
|
|
94
|
-
/* @__PURE__ */ e(
|
|
74
|
+
/* @__PURE__ */ e(T, { href: "#", target: "_blank", children: "help guide (TODO)" }),
|
|
95
75
|
"."
|
|
96
76
|
] }),
|
|
97
|
-
/* @__PURE__ */ e(
|
|
77
|
+
/* @__PURE__ */ e(h, { variant: "headingSmall", children: "Column management" }),
|
|
98
78
|
/* @__PURE__ */ e(
|
|
99
|
-
|
|
79
|
+
j,
|
|
100
80
|
{
|
|
101
81
|
name: "column-search-query",
|
|
102
82
|
placeholder: "Search",
|
|
103
|
-
value:
|
|
104
|
-
onChange:
|
|
105
|
-
onClearClick: () =>
|
|
83
|
+
value: l,
|
|
84
|
+
onChange: C,
|
|
85
|
+
onClearClick: () => C(""),
|
|
106
86
|
fill: "100%"
|
|
107
87
|
}
|
|
108
88
|
)
|
|
@@ -110,40 +90,40 @@ const { Glyph: E } = A, ce = ({
|
|
|
110
90
|
leftActions: [
|
|
111
91
|
{
|
|
112
92
|
label: "Reset",
|
|
113
|
-
onClick:
|
|
93
|
+
onClick: V,
|
|
114
94
|
variant: "default",
|
|
115
|
-
disabled:
|
|
95
|
+
disabled: s
|
|
116
96
|
}
|
|
117
97
|
],
|
|
118
98
|
rightActions: [
|
|
119
99
|
{
|
|
120
100
|
label: "Cancel",
|
|
121
|
-
onClick:
|
|
101
|
+
onClick: i,
|
|
122
102
|
variant: "default",
|
|
123
|
-
disabled:
|
|
103
|
+
disabled: s
|
|
124
104
|
},
|
|
125
105
|
{
|
|
126
106
|
label: "Save",
|
|
127
|
-
onClick:
|
|
107
|
+
onClick: () => M({ visibleColumns: d }),
|
|
128
108
|
variant: "primary",
|
|
129
|
-
disabled:
|
|
130
|
-
loading:
|
|
109
|
+
disabled: s,
|
|
110
|
+
loading: s
|
|
131
111
|
}
|
|
132
112
|
],
|
|
133
|
-
children: /* @__PURE__ */ e(m, { spacing: "md", alignX: "stretch", children: /* @__PURE__ */ e(m, { spacing: 4, alignX: "stretch", children: /* @__PURE__ */ e(
|
|
113
|
+
children: /* @__PURE__ */ e(m, { spacing: "md", alignX: "stretch", children: /* @__PURE__ */ e(m, { spacing: 4, alignX: "stretch", children: /* @__PURE__ */ e(q, { items: o, setItems: f, renderDragOverlay: x, children: /* @__PURE__ */ e(X, { children: /* @__PURE__ */ c(A, { columns: 2, spacing: "xl", children: [
|
|
134
114
|
/* @__PURE__ */ e(
|
|
135
|
-
|
|
115
|
+
v,
|
|
136
116
|
{
|
|
137
|
-
id:
|
|
117
|
+
id: r.Visible,
|
|
138
118
|
title: "Shown columns:",
|
|
139
|
-
columns:
|
|
119
|
+
columns: k
|
|
140
120
|
}
|
|
141
121
|
),
|
|
142
|
-
/* @__PURE__ */ e(
|
|
122
|
+
/* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(Y, { children: "Drag & Drop columns" }) }),
|
|
143
123
|
/* @__PURE__ */ e(
|
|
144
|
-
|
|
124
|
+
v,
|
|
145
125
|
{
|
|
146
|
-
id:
|
|
126
|
+
id: r.Hidden,
|
|
147
127
|
title: "Hidden columns:",
|
|
148
128
|
columns: D
|
|
149
129
|
}
|
|
@@ -153,5 +133,5 @@ const { Glyph: E } = A, ce = ({
|
|
|
153
133
|
);
|
|
154
134
|
};
|
|
155
135
|
export {
|
|
156
|
-
|
|
136
|
+
ne as TableManagementModal
|
|
157
137
|
};
|
package/dist/index79.cjs
CHANGED
|
@@ -1,80 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
display: flex;
|
|
3
|
-
position: fixed;
|
|
4
|
-
width: 100vw;
|
|
5
|
-
left: 0;
|
|
6
|
-
bottom: 24px;
|
|
7
|
-
z-index: 18;
|
|
8
|
-
|
|
9
|
-
&.notification-enter {
|
|
10
|
-
opacity: 0;
|
|
11
|
-
transform: translateY(-16px);
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
&.notification-enter-active {
|
|
15
|
-
opacity: 1;
|
|
16
|
-
transform: translateY(0);
|
|
17
|
-
transition: 350ms ease;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
&.notification-exit {
|
|
21
|
-
opacity: 0;
|
|
22
|
-
transform: translateY(16px);
|
|
23
|
-
transition: 350ms ease;
|
|
24
|
-
}
|
|
25
|
-
pointer-events: none;
|
|
26
|
-
`,c=o.default(e.BaseContainer)`
|
|
27
|
-
display: inline-flex;
|
|
28
|
-
flex-direction: row;
|
|
29
|
-
align-items: center;
|
|
30
|
-
padding: 20px 24px 24px 24px;
|
|
31
|
-
border-radius: 4px;
|
|
32
|
-
margin: 0 auto;
|
|
33
|
-
background-color: #fff;
|
|
34
|
-
box-shadow: ${e.theme.shadows.lg};
|
|
35
|
-
pointer-events: all;
|
|
36
|
-
`;o.default(e.Banner)`
|
|
37
|
-
display: inline-flex;
|
|
38
|
-
flex-direction: row;
|
|
39
|
-
align-items: center;
|
|
40
|
-
margin: 0 auto;
|
|
41
|
-
background-color: #fff;
|
|
42
|
-
box-shadow: ${e.theme.shadows.lg};
|
|
43
|
-
pointer-events: all;
|
|
44
|
-
`;const d=o.default(e.Button)`
|
|
45
|
-
margin-right: 16px;
|
|
46
|
-
`;o.default(e.Text)`
|
|
47
|
-
line-height: 20px;
|
|
48
|
-
`;const n=o.default(e.Text)`
|
|
49
|
-
margin: ${t=>t.margin?t.margin:""};
|
|
50
|
-
color: ${t=>t.color};
|
|
51
|
-
`,f=o.default(e.Text)`
|
|
52
|
-
margin-right: 8px;
|
|
53
|
-
color: ${t=>t.color};
|
|
54
|
-
`,p=o.default(l)``,x=o.default(e.BaseContainer)`
|
|
55
|
-
display: flex;
|
|
56
|
-
flex-direction: row;
|
|
57
|
-
align-items: flex-end;
|
|
58
|
-
flex-grow: 2;
|
|
59
|
-
margin-left: 24px;
|
|
60
|
-
margin-right: 24px;
|
|
61
|
-
`,u=o.default.button`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
width: 100%;
|
|
65
|
-
padding: 12px 16px;
|
|
66
|
-
cursor: pointer;
|
|
67
|
-
|
|
68
|
-
& > ${n} {
|
|
69
|
-
white-space: nowrap;
|
|
70
|
-
user-select: none;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
&:hover {
|
|
74
|
-
background-color: ${e.theme.colors.neutral.grey.lightest};
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
&:hover > ${n} {
|
|
78
|
-
color: ${e.theme.colors.secondary.blue.base};
|
|
79
|
-
}
|
|
80
|
-
`;exports.Bold=f;exports.Button=d;exports.Container=c;exports.Glyph=p;exports.Item=u;exports.Notification=s;exports.Text=n;exports.Wrap=x;
|
|
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("./index94.cjs"),l=require("./index95.cjs"),c=require("./index82.cjs"),u=require("./index83.cjs"),d=require("./index80.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/index79.js
CHANGED
|
@@ -1,97 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
opacity: 0;
|
|
14
|
-
transform: translateY(-16px);
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
&.notification-enter-active {
|
|
18
|
-
opacity: 1;
|
|
19
|
-
transform: translateY(0);
|
|
20
|
-
transition: 350ms ease;
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
&.notification-exit {
|
|
24
|
-
opacity: 0;
|
|
25
|
-
transform: translateY(16px);
|
|
26
|
-
transition: 350ms ease;
|
|
27
|
-
}
|
|
28
|
-
pointer-events: none;
|
|
29
|
-
`, m = o(n)`
|
|
30
|
-
display: inline-flex;
|
|
31
|
-
flex-direction: row;
|
|
32
|
-
align-items: center;
|
|
33
|
-
padding: 20px 24px 24px 24px;
|
|
34
|
-
border-radius: 4px;
|
|
35
|
-
margin: 0 auto;
|
|
36
|
-
background-color: #fff;
|
|
37
|
-
box-shadow: ${e.shadows.lg};
|
|
38
|
-
pointer-events: all;
|
|
39
|
-
`;
|
|
40
|
-
o(l)`
|
|
41
|
-
display: inline-flex;
|
|
42
|
-
flex-direction: row;
|
|
43
|
-
align-items: center;
|
|
44
|
-
margin: 0 auto;
|
|
45
|
-
background-color: #fff;
|
|
46
|
-
box-shadow: ${e.shadows.lg};
|
|
47
|
-
pointer-events: all;
|
|
48
|
-
`;
|
|
49
|
-
const g = o(a)`
|
|
50
|
-
margin-right: 16px;
|
|
51
|
-
`;
|
|
52
|
-
o(i)`
|
|
53
|
-
line-height: 20px;
|
|
54
|
-
`;
|
|
55
|
-
const r = o(i)`
|
|
56
|
-
margin: ${(t) => t.margin ? t.margin : ""};
|
|
57
|
-
color: ${(t) => t.color};
|
|
58
|
-
`, h = o(i)`
|
|
59
|
-
margin-right: 8px;
|
|
60
|
-
color: ${(t) => t.color};
|
|
61
|
-
`, u = o(c)``, w = o(n)`
|
|
62
|
-
display: flex;
|
|
63
|
-
flex-direction: row;
|
|
64
|
-
align-items: flex-end;
|
|
65
|
-
flex-grow: 2;
|
|
66
|
-
margin-left: 24px;
|
|
67
|
-
margin-right: 24px;
|
|
68
|
-
`, y = o.button`
|
|
69
|
-
display: flex;
|
|
70
|
-
flex-direction: row;
|
|
71
|
-
width: 100%;
|
|
72
|
-
padding: 12px 16px;
|
|
73
|
-
cursor: pointer;
|
|
74
|
-
|
|
75
|
-
& > ${r} {
|
|
76
|
-
white-space: nowrap;
|
|
77
|
-
user-select: none;
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
&:hover {
|
|
81
|
-
background-color: ${e.colors.neutral.grey.lightest};
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
&:hover > ${r} {
|
|
85
|
-
color: ${e.colors.secondary.blue.base};
|
|
86
|
-
}
|
|
87
|
-
`;
|
|
1
|
+
import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as n } from "@veeqo/ui";
|
|
3
|
+
import { SortableContext as p, verticalListSortingStrategy as a } from "@dnd-kit/sortable";
|
|
4
|
+
import { SortableItem as s } from "./index94.js";
|
|
5
|
+
import { DroppableArea as d } from "./index95.js";
|
|
6
|
+
import { ColumnItem as l } from "./index82.js";
|
|
7
|
+
import { ColumnGroupIds as c } from "./index83.js";
|
|
8
|
+
import { StickyText as f } from "./index80.js";
|
|
9
|
+
const I = ({ id: t, title: e, columns: o }) => /* @__PURE__ */ m(n, { spacing: "sm", alignX: "stretch", children: [
|
|
10
|
+
/* @__PURE__ */ r(f, { variant: "bodyBold", children: e }),
|
|
11
|
+
/* @__PURE__ */ r(p, { id: t, items: o, strategy: a, children: /* @__PURE__ */ r(d, { id: t, spacing: "sm", alignX: "stretch", children: o.map((i) => /* @__PURE__ */ r(s, { id: i.id, children: /* @__PURE__ */ r(l, { column: i, isHidden: t === c.Hidden }) }, i.id)) }) })
|
|
12
|
+
] });
|
|
88
13
|
export {
|
|
89
|
-
|
|
90
|
-
g as Button,
|
|
91
|
-
m as Container,
|
|
92
|
-
u as Glyph,
|
|
93
|
-
y as Item,
|
|
94
|
-
f as Notification,
|
|
95
|
-
r as Text,
|
|
96
|
-
w as Wrap
|
|
14
|
+
I as ColumnGroup
|
|
97
15
|
};
|
package/dist/index80.cjs
CHANGED
|
@@ -1 +1,104 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("styled-components"),e=require("@veeqo/ui"),a=require("@veeqo/components"),i=o=>o&&o.__esModule?o:{default:o},t=i(l),{Glyph:n}=a.VeeqoCommon,s=t.default.div`
|
|
2
|
+
width: 1px;
|
|
3
|
+
position: absolute;
|
|
4
|
+
left: 50%;
|
|
5
|
+
transform: translateX(-50%);
|
|
6
|
+
border-left: 1px solid ${e.theme.colors.neutral.grey.dark};
|
|
7
|
+
height: 100%;
|
|
8
|
+
margin-top: 40px;
|
|
9
|
+
`,c=t.default(e.Text)`
|
|
10
|
+
writing-mode: vertical-rl;
|
|
11
|
+
position: absolute;
|
|
12
|
+
top: 50%;
|
|
13
|
+
left: 50%;
|
|
14
|
+
transform: translate(-50%, -50%);
|
|
15
|
+
background: white;
|
|
16
|
+
padding: 30px 0;
|
|
17
|
+
text-align: center;
|
|
18
|
+
font-size: 10px;
|
|
19
|
+
color: ${e.theme.colors.neutral.ink.lightest};
|
|
20
|
+
height: max-content;
|
|
21
|
+
`,d=t.default(e.Text)`
|
|
22
|
+
position: sticky;
|
|
23
|
+
top: 0;
|
|
24
|
+
background: #ffffff;
|
|
25
|
+
padding-bottom: ${e.theme.sizes[2]};
|
|
26
|
+
z-index: 1;
|
|
27
|
+
`,u=t.default(e.Text)`
|
|
28
|
+
color: ${e.theme.colors.neutral.ink.light};
|
|
29
|
+
`,g=t.default(e.Grid)`
|
|
30
|
+
// overflow-y: auto;
|
|
31
|
+
position: unset;
|
|
32
|
+
`,r=t.default(n).attrs(()=>({name:"visibility-off"}))`
|
|
33
|
+
margin-left: auto;
|
|
34
|
+
`,p=t.default(e.Stack)`
|
|
35
|
+
border-radius: 4px;
|
|
36
|
+
padding: 8px 12px;
|
|
37
|
+
background: #ffffff;
|
|
38
|
+
border: 1px solid ${e.theme.colors.neutral.ink.lightest};
|
|
39
|
+
transition: all ease 200ms;
|
|
40
|
+
|
|
41
|
+
${({isHidden:o})=>o&&`
|
|
42
|
+
${e.Text} {
|
|
43
|
+
color: ${e.theme.colors.neutral.ink.light};
|
|
44
|
+
}
|
|
45
|
+
`}
|
|
46
|
+
|
|
47
|
+
&:hover {
|
|
48
|
+
color: ${e.theme.colors.secondary.blue.base};
|
|
49
|
+
background: ${e.theme.colors.neutral.grey.lightest};
|
|
50
|
+
border: 1px solid ${e.theme.colors.neutral.grey.light};
|
|
51
|
+
|
|
52
|
+
${e.Text} {
|
|
53
|
+
color: ${e.theme.colors.secondary.blue.base};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${r} {
|
|
57
|
+
color: ${e.theme.colors.neutral.ink.light};
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
${({isDragOverlay:o})=>o&&`
|
|
62
|
+
color: ${e.theme.colors.secondary.blue.base};
|
|
63
|
+
background: ${e.theme.colors.neutral.grey.lightest};
|
|
64
|
+
border: 1px solid ${e.theme.colors.neutral.grey.light};
|
|
65
|
+
cursor: grabbing;
|
|
66
|
+
|
|
67
|
+
${e.Text} {
|
|
68
|
+
color: ${e.theme.colors.secondary.blue.base};
|
|
69
|
+
}
|
|
70
|
+
`}
|
|
71
|
+
`,h=t.default.div`
|
|
72
|
+
position: absolute;
|
|
73
|
+
top: 0;
|
|
74
|
+
left: 0;
|
|
75
|
+
right: 0;
|
|
76
|
+
bottom: 0;
|
|
77
|
+
height: 100%;
|
|
78
|
+
width: calc(100% - 2px);
|
|
79
|
+
border-radius: 4px;
|
|
80
|
+
border: 1px dashed ${e.theme.colors.neutral.grey.dark};
|
|
81
|
+
background: ${e.theme.colors.neutral.grey.lightest};
|
|
82
|
+
`,f=t.default(e.Stack)`
|
|
83
|
+
flex: 1;
|
|
84
|
+
padding: 0;
|
|
85
|
+
`,m=t.default(e.Search)`
|
|
86
|
+
input {
|
|
87
|
+
height: 40px;
|
|
88
|
+
box-sizing: border-box;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
svg {
|
|
92
|
+
width: 16px;
|
|
93
|
+
}
|
|
94
|
+
`,b=t.default.div`
|
|
95
|
+
position: relative;
|
|
96
|
+
min-height: 500px;
|
|
97
|
+
`,x=t.default(e.BaseContainer)`
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-direction: column;
|
|
100
|
+
gap: ${e.theme.sizes.base};
|
|
101
|
+
padding: ${e.theme.sizes.md};
|
|
102
|
+
`,y=t.default.dialog`
|
|
103
|
+
display: contents;
|
|
104
|
+
`;exports.ColumnGroupsGrid=g;exports.ColumnItemWrapper=p;exports.ColumnSearch=m;exports.Container=b;exports.DetailedText=u;exports.DndDragOverlayDialog=y;exports.DraggingOverlay=h;exports.DroppableAreaStack=f;exports.HeaderContainer=x;exports.StickyText=d;exports.VerticalSeparator=s;exports.VerticalText=c;exports.VisibilityOffIcon=r;
|