@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.
Files changed (75) hide show
  1. package/dist/constants/constants.d.ts +4 -0
  2. package/dist/hooks/usePersistColumns/usePersistColumns.d.ts +1 -1
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.js +82 -81
  5. package/dist/index101.cjs +80 -1
  6. package/dist/index101.js +94 -35
  7. package/dist/index102.cjs +7 -1
  8. package/dist/index102.js +10 -42
  9. package/dist/index103.cjs +1 -7
  10. package/dist/index103.js +42 -10
  11. package/dist/index21.cjs +1 -1
  12. package/dist/index21.js +18 -16
  13. package/dist/index22.cjs +1 -1
  14. package/dist/index22.js +20 -18
  15. package/dist/index23.cjs +1 -1
  16. package/dist/index23.js +32 -30
  17. package/dist/index24.cjs +1 -1
  18. package/dist/index24.js +34 -32
  19. package/dist/index28.cjs +1 -1
  20. package/dist/index28.js +1 -1
  21. package/dist/index31.cjs +1 -1
  22. package/dist/index31.js +1 -1
  23. package/dist/index36.cjs +1 -1
  24. package/dist/index36.js +1 -1
  25. package/dist/index37.cjs +1 -1
  26. package/dist/index37.js +1 -1
  27. package/dist/index38.cjs +1 -1
  28. package/dist/index38.js +1 -1
  29. package/dist/index39.cjs +1 -1
  30. package/dist/index39.js +1 -1
  31. package/dist/index41.cjs +1 -1
  32. package/dist/index41.js +1 -1
  33. package/dist/index45.cjs +1 -1
  34. package/dist/index45.js +7 -2
  35. package/dist/index58.cjs +1 -1
  36. package/dist/index58.js +19 -17
  37. package/dist/index60.cjs +1 -1
  38. package/dist/index60.js +8 -7
  39. package/dist/index77.cjs +1 -1
  40. package/dist/index77.js +72 -92
  41. package/dist/index79.cjs +1 -80
  42. package/dist/index79.js +13 -95
  43. package/dist/index80.cjs +104 -1
  44. package/dist/index80.js +120 -13
  45. package/dist/index81.cjs +1 -104
  46. package/dist/index81.js +65 -117
  47. package/dist/index82.cjs +1 -1
  48. package/dist/index82.js +24 -53
  49. package/dist/index83.cjs +1 -1
  50. package/dist/index83.js +2 -29
  51. package/dist/index84.cjs +1 -1
  52. package/dist/index84.js +40 -2
  53. package/dist/index85.cjs +1 -1
  54. package/dist/index85.js +7 -33
  55. package/dist/index86.cjs +1 -1
  56. package/dist/index86.js +23 -7
  57. package/dist/index88.cjs +19 -1
  58. package/dist/index88.js +24 -22
  59. package/dist/index89.cjs +1 -19
  60. package/dist/index89.js +14 -23
  61. package/dist/index90.cjs +78 -10
  62. package/dist/index90.js +92 -13
  63. package/dist/index91.cjs +12 -1
  64. package/dist/index91.js +16 -15
  65. package/dist/index92.cjs +1 -1
  66. package/dist/index92.js +22 -24
  67. package/dist/index94.cjs +1 -1
  68. package/dist/index94.js +2 -2
  69. package/dist/index95.cjs +1 -1
  70. package/dist/index95.js +1 -1
  71. package/dist/index98.cjs +1 -1
  72. package/dist/index98.js +1 -1
  73. package/dist/index99.cjs +1 -80
  74. package/dist/index99.js +35 -94
  75. package/package.json +1 -1
package/dist/index60.js CHANGED
@@ -1,8 +1,9 @@
1
- import h from "swr";
2
- import { fetcherV1 as B } from "./index51.js";
3
- const d = ({ type: e }) => {
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: w, error: p, mutate: l } = h("/current_user", B), 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
+ 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: w,
14
- error: p,
14
+ isValidating: p,
15
+ error: w,
15
16
  mutate: l
16
17
  };
17
18
  };
18
19
  export {
19
- d as useCustomViews
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"),t=require("@veeqo/ui"),a=require("react"),k=require("@veeqo/components"),S=require("./index80.cjs"),u=require("./index81.cjs"),T=require("./index82.cjs"),V=require("./index83.cjs"),s=require("./index84.cjs"),D=require("./index78.cjs"),H=require("./index85.cjs"),y=require("./index86.cjs"),O=require("./index57.cjs"),B=require("./index58.cjs"),{Glyph:X}=k.VeeqoCommon,Y=({onClose:r,columnDefintions:j,hiddenColumns:m,visibleColumns:h})=>{const[c,g]=a.useState(""),i=a.useMemo(()=>new Map(j.map(n=>[n.id,n])),[]),[l,p]=a.useState(()=>({[s.ColumnGroupIds.Hidden]:m,[s.ColumnGroupIds.Visible]:h})),v=a.useMemo(()=>{const n=l[s.ColumnGroupIds.Visible].map(o=>i.get(`${o}`));return y.filterColumnsBySearch(n,c)},[l,i,c]),f=a.useMemo(()=>{const n=l[s.ColumnGroupIds.Hidden].map(o=>i.get(`${o}`));return y.filterColumnsBySearch(n,c)},[l,i,c]),{Notifications:{notify:C}}=O.useStores(),{saveColumns:G}=H.usePersistColumns(),{mutate:q}=B.useViews(),[d,x]=a.useState(!1),w=()=>{g(""),p({[s.ColumnGroupIds.Hidden]:m,[s.ColumnGroupIds.Visible]:h})},M=async()=>{try{x(!0);const n=l[s.ColumnGroupIds.Visible];if(n.length<1){C({type:"error",text:"You must have at least one visible column."});return}await G({visibleColumns:n}),await q(),r==null||r()}catch{C({type:"error",text:"Failed to save columns"})}finally{x(!1)}},b=a.useCallback(n=>{g(n)},[]),I=a.useCallback(n=>{const o=i.get(`${n}`);return o?e.jsx(V.ColumnItem,{column:o,isDragOverlay:!0}):null},[i]);return e.jsx(t.Modal,{variant:"lg",style:{overflowY:"hidden"},shouldShow:!0,onClose:()=>r==null?void 0:r(),headerSlot:e.jsxs(u.HeaderContainer,{children:[e.jsxs(t.Stack,{direction:"horizontal",alignX:"between",alignY:"center",children:[e.jsxs(t.Stack,{direction:"horizontal",alignX:"start",alignY:"center",spacing:"sm",children:[e.jsx(D.TableManagementGlyph,{height:32,width:32}),e.jsx(t.Text,{variant:"headingLarge",as:"h1",children:"Table management"})]}),e.jsx(t.Button,{"aria-label":"Close modal",onClick:r,variant:"flat",iconSlot:e.jsx(X,{name:"close"})})]}),e.jsxs(t.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(t.Anchor,{href:"#",target:"_blank",children:"help guide (TODO)"}),"."]}),e.jsx(t.Text,{variant:"headingSmall",children:"Column management"}),e.jsx(u.ColumnSearch,{name:"column-search-query",placeholder:"Search",value:c,onChange:b,onClearClick:()=>b(""),fill:"100%"})]}),leftActions:[{label:"Reset",onClick:w,variant:"default",disabled:d}],rightActions:[{label:"Cancel",onClick:r,variant:"default",disabled:d},{label:"Save",onClick:M,variant:"primary",disabled:d,loading:d}],children:e.jsx(t.Stack,{spacing:"md",alignX:"stretch",children:e.jsx(t.Stack,{spacing:4,alignX:"stretch",children:e.jsx(T.DndContainer,{items:l,setItems:p,renderDragOverlay:I,children:e.jsx(u.Container,{children:e.jsxs(u.ColumnGroupsGrid,{columns:2,spacing:"xl",children:[e.jsx(S.ColumnGroup,{id:s.ColumnGroupIds.Visible,title:"Shown columns:",columns:v}),e.jsx(u.VerticalSeparator,{children:e.jsx(u.VerticalText,{children:"Drag & Drop columns"})}),e.jsx(S.ColumnGroup,{id:s.ColumnGroupIds.Hidden,title:"Hidden columns:",columns:f})]})})})})})})};exports.TableManagementModal=Y;
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 s } from "react/jsx-runtime";
2
- import { Modal as O, Stack as m, Text as d, Button as X, Anchor as Y } from "@veeqo/ui";
3
- import { useState as h, useMemo as u, useCallback as C } from "react";
4
- import { VeeqoCommon as A } from "@veeqo/components";
5
- import { ColumnGroup as w } from "./index80.js";
6
- import { Container as $, ColumnGroupsGrid as j, VerticalSeparator as q, VerticalText as z, HeaderContainer as B, ColumnSearch as L } from "./index81.js";
7
- import { DndContainer as Q } from "./index82.js";
8
- import { ColumnItem as R } from "./index83.js";
9
- import { ColumnGroupIds as n } from "./index84.js";
10
- import { TableManagementGlyph as F } from "./index78.js";
11
- import { usePersistColumns as N } from "./index85.js";
12
- import { filterColumnsBySearch as V } from "./index86.js";
13
- import { useStores as P } from "./index57.js";
14
- import { useViews as _ } from "./index58.js";
15
- const { Glyph: E } = A, ce = ({
16
- onClose: a,
17
- columnDefintions: k,
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 [o, f] = h(""), i = u(
22
- () => new Map(k.map((t) => [t.id, t])),
19
+ const [l, p] = b(""), a = u(
20
+ () => new Map(w.map((n) => [n.id, n])),
23
21
  []
24
- ), [r, b] = h(() => ({
25
- [n.Hidden]: p,
26
- [n.Visible]: g
27
- })), x = u(() => {
28
- const t = r[n.Visible].map((l) => i.get(`${l}`));
29
- return V(t, o);
30
- }, [r, i, o]), D = u(() => {
31
- const t = r[n.Hidden].map((l) => i.get(`${l}`));
32
- return V(t, o);
33
- }, [r, i, o]), {
34
- Notifications: { notify: v }
35
- } = P(), { saveColumns: M } = N(), { mutate: G } = _(), [c, y] = h(!1), H = () => {
36
- f(""), b({
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
- }, T = async () => {
41
- try {
42
- y(!0);
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
- ), I = C(
62
- (t) => {
63
- const l = i.get(`${t}`);
64
- return l ? /* @__PURE__ */ e(R, { column: l, isDragOverlay: !0 }) : null;
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
- [i]
46
+ [a]
67
47
  );
68
48
  return /* @__PURE__ */ e(
69
- O,
49
+ G,
70
50
  {
71
51
  variant: "lg",
72
52
  style: { overflowY: "hidden" },
73
53
  shouldShow: !0,
74
- onClose: () => a == null ? void 0 : a(),
75
- headerSlot: /* @__PURE__ */ s(B, { children: [
76
- /* @__PURE__ */ s(m, { direction: "horizontal", alignX: "between", alignY: "center", children: [
77
- /* @__PURE__ */ s(m, { direction: "horizontal", alignX: "start", alignY: "center", spacing: "sm", children: [
78
- /* @__PURE__ */ e(F, { height: 32, width: 32 }),
79
- /* @__PURE__ */ e(d, { variant: "headingLarge", as: "h1", children: "Table management" })
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
- X,
62
+ H,
83
63
  {
84
64
  "aria-label": "Close modal",
85
- onClick: a,
65
+ onClick: i,
86
66
  variant: "flat",
87
- iconSlot: /* @__PURE__ */ e(E, { name: "close" })
67
+ iconSlot: /* @__PURE__ */ e(Q, { name: "close" })
88
68
  }
89
69
  )
90
70
  ] }),
91
- /* @__PURE__ */ s(d, { variant: "subheadingMedium", children: [
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(Y, { href: "#", target: "_blank", children: "help guide (TODO)" }),
74
+ /* @__PURE__ */ e(T, { href: "#", target: "_blank", children: "help guide (TODO)" }),
95
75
  "."
96
76
  ] }),
97
- /* @__PURE__ */ e(d, { variant: "headingSmall", children: "Column management" }),
77
+ /* @__PURE__ */ e(h, { variant: "headingSmall", children: "Column management" }),
98
78
  /* @__PURE__ */ e(
99
- L,
79
+ j,
100
80
  {
101
81
  name: "column-search-query",
102
82
  placeholder: "Search",
103
- value: o,
104
- onChange: S,
105
- onClearClick: () => S(""),
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: H,
93
+ onClick: V,
114
94
  variant: "default",
115
- disabled: c
95
+ disabled: s
116
96
  }
117
97
  ],
118
98
  rightActions: [
119
99
  {
120
100
  label: "Cancel",
121
- onClick: a,
101
+ onClick: i,
122
102
  variant: "default",
123
- disabled: c
103
+ disabled: s
124
104
  },
125
105
  {
126
106
  label: "Save",
127
- onClick: T,
107
+ onClick: () => M({ visibleColumns: d }),
128
108
  variant: "primary",
129
- disabled: c,
130
- loading: c
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(Q, { items: r, setItems: b, renderDragOverlay: I, children: /* @__PURE__ */ e($, { children: /* @__PURE__ */ s(j, { columns: 2, spacing: "xl", children: [
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
- w,
115
+ v,
136
116
  {
137
- id: n.Visible,
117
+ id: r.Visible,
138
118
  title: "Shown columns:",
139
- columns: x
119
+ columns: k
140
120
  }
141
121
  ),
142
- /* @__PURE__ */ e(q, { children: /* @__PURE__ */ e(z, { children: "Drag & Drop columns" }) }),
122
+ /* @__PURE__ */ e(I, { children: /* @__PURE__ */ e(Y, { children: "Drag & Drop columns" }) }),
143
123
  /* @__PURE__ */ e(
144
- w,
124
+ v,
145
125
  {
146
- id: n.Hidden,
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
- ce as TableManagementModal
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 i=require("styled-components"),e=require("@veeqo/ui"),a=require("@veeqo/components"),r=t=>t&&t.__esModule?t:{default:t},o=r(i),{Glyph:l}=a.VeeqoCommon,s=o.default(e.BaseContainer)`
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 o from "styled-components";
2
- import { BaseContainer as n, theme as e, Text as i, Button as a, Banner as l } from "@veeqo/ui";
3
- import { VeeqoCommon as s } from "@veeqo/components";
4
- const { Glyph: c } = s, f = o(n)`
5
- display: flex;
6
- position: fixed;
7
- width: 100vw;
8
- left: 0;
9
- bottom: 24px;
10
- z-index: 18;
11
-
12
- &.notification-enter {
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
- h as Bold,
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 e=require("react/jsx-runtime"),o=require("@veeqo/ui"),s=require("@dnd-kit/sortable"),a=require("./index94.cjs"),l=require("./index95.cjs"),c=require("./index83.cjs"),u=require("./index84.cjs"),d=require("./index81.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;
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;