@veeqo/transfigure 2.1.3 → 2.2.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/OptionsDropdown/styled.d.ts +2 -2
- package/dist/components/Views/PillNotifications/variants/styled.d.ts +2 -2
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +48 -9
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +28 -23
- package/dist/index102.cjs +1 -19
- package/dist/index102.js +21 -24
- package/dist/index103.cjs +19 -1
- package/dist/index103.js +24 -50
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +17 -28
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +7 -15
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +24 -21
- package/dist/index108.cjs +1 -1
- package/dist/index108.js +1 -1
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +19 -2
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +7 -18
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +60 -7
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +26 -57
- package/dist/index113.cjs +13 -1
- package/dist/index113.js +17 -30
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +2 -36
- package/dist/index115.cjs +1 -13
- package/dist/index115.js +24 -15
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +32 -22
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +1 -1
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +1 -1
- package/dist/index31.cjs +1 -1
- package/dist/index31.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/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/index46.cjs +1 -1
- package/dist/index46.js +1 -1
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -2
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +1 -1
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +1 -1
- package/dist/index85.cjs +1 -1
- package/dist/index85.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 +116 -4
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +39 -115
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +9 -2
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +2 -41
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +4 -8
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +13 -18
- package/dist/index93.cjs +104 -1
- package/dist/index93.js +119 -7
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +68 -13
- package/dist/index95.cjs +1 -104
- package/dist/index95.js +27 -118
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +2 -68
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +39 -26
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +11 -2
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +14 -40
- package/package.json +5 -5
package/dist/index97.js
CHANGED
|
@@ -1,30 +1,43 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
children: [
|
|
15
|
-
/* @__PURE__ */ e(s, {}),
|
|
16
|
-
t.detailed ? /* @__PURE__ */ i(l, { spacing: "xs", children: [
|
|
17
|
-
/* @__PURE__ */ i(o, { variant: "body", children: [
|
|
18
|
-
a,
|
|
19
|
-
" (detailed)"
|
|
20
|
-
] }),
|
|
21
|
-
/* @__PURE__ */ e(h, { variant: "hintText", children: t.detailed })
|
|
22
|
-
] }) : /* @__PURE__ */ e(o, { variant: "body", children: a }),
|
|
23
|
-
!n && r && /* @__PURE__ */ e(m, { width: d.sizes.base, height: d.sizes.base })
|
|
24
|
-
]
|
|
1
|
+
import { useState as d } from "react";
|
|
2
|
+
import { useViews as v } from "./index63.js";
|
|
3
|
+
import { useStores as y } from "./index62.js";
|
|
4
|
+
import { useModal as C } from "./index53.js";
|
|
5
|
+
import { usePersistUnsavedChanges as g } from "./index61.js";
|
|
6
|
+
import { patchCustomView as h } from "./index5.js";
|
|
7
|
+
const b = ({ pinnedLeftColumnIds: a, pinnedRightColumnIds: i }) => {
|
|
8
|
+
const {
|
|
9
|
+
Filters: {
|
|
10
|
+
activeViewId: e
|
|
11
|
+
},
|
|
12
|
+
Notifications: {
|
|
13
|
+
notify: t
|
|
25
14
|
}
|
|
26
|
-
);
|
|
15
|
+
} = y(), { closeModal: u } = C(), { mutate: m } = v(), { getActiveViewInAPIFormat: c } = g(), [l, o] = d(!1);
|
|
16
|
+
return {
|
|
17
|
+
saveColumns: async ({ visibleColumns: n }) => {
|
|
18
|
+
if (e)
|
|
19
|
+
try {
|
|
20
|
+
if (o(!0), n.length < 1) {
|
|
21
|
+
t({ type: "error", text: "You must have at least one visible column." });
|
|
22
|
+
return;
|
|
23
|
+
}
|
|
24
|
+
const r = [...a, ...n, ...i], { arg: f, currentView: s } = c(), p = {
|
|
25
|
+
...f,
|
|
26
|
+
columns: {
|
|
27
|
+
...s == null ? void 0 : s.columns,
|
|
28
|
+
columnIds: r
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
await h(e, { attributes: p }), await m(), u(), t({ type: "success", text: "Columns updated successfully" });
|
|
32
|
+
} catch {
|
|
33
|
+
t({ type: "error", text: "Failed to save columns" });
|
|
34
|
+
} finally {
|
|
35
|
+
o(!1);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
isSavingColumns: l
|
|
39
|
+
};
|
|
27
40
|
};
|
|
28
41
|
export {
|
|
29
|
-
|
|
42
|
+
b as usePersistColumns
|
|
30
43
|
};
|
package/dist/index98.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 d=(t,r)=>{if(!r)return t;const i=r.toLowerCase();return t.filter(e=>{var s,a;return((s=e==null?void 0:e.title)==null?void 0:s.toLowerCase().includes(i))||((a=e==null?void 0:e.id)==null?void 0:a.toLowerCase().includes(i))})};exports.filterColumnsBySearch=d;
|
package/dist/index98.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
const a = (t, r) => {
|
|
2
|
+
if (!r) return t;
|
|
3
|
+
const i = r.toLowerCase();
|
|
4
|
+
return t.filter(
|
|
5
|
+
(e) => {
|
|
6
|
+
var s, C;
|
|
7
|
+
return ((s = e == null ? void 0 : e.title) == null ? void 0 : s.toLowerCase().includes(i)) || ((C = e == null ? void 0 : e.id) == null ? void 0 : C.toLowerCase().includes(i));
|
|
8
|
+
}
|
|
9
|
+
);
|
|
10
|
+
};
|
|
2
11
|
export {
|
|
3
|
-
|
|
12
|
+
a as filterColumnsBySearch
|
|
4
13
|
};
|
package/dist/index99.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("react/jsx-runtime"),l=require("./index113.cjs"),o=e=>i.jsx(l.StyledSortableViews,{...e,onChange:t=>{t.filter(r=>{var n;return(n=r.children)==null?void 0:n.length}).length||e.onChange(t)}});exports.LegacySortableViews=o;
|
package/dist/index99.js
CHANGED
|
@@ -1,43 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
Notifications: {
|
|
13
|
-
notify: t
|
|
1
|
+
import { jsx as o } from "react/jsx-runtime";
|
|
2
|
+
import { StyledSortableViews as i } from "./index113.js";
|
|
3
|
+
const h = (e) => /* @__PURE__ */ o(
|
|
4
|
+
i,
|
|
5
|
+
{
|
|
6
|
+
...e,
|
|
7
|
+
onChange: (t) => {
|
|
8
|
+
t.filter((n) => {
|
|
9
|
+
var r;
|
|
10
|
+
return (r = n.children) == null ? void 0 : r.length;
|
|
11
|
+
}).length || e.onChange(t);
|
|
14
12
|
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
saveColumns: async ({ visibleColumns: n }) => {
|
|
18
|
-
if (e)
|
|
19
|
-
try {
|
|
20
|
-
if (o(!0), n.length < 1) {
|
|
21
|
-
t({ type: "error", text: "You must have at least one visible column." });
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
const r = [...a, ...n, ...i], { arg: f, currentView: s } = c(), p = {
|
|
25
|
-
...f,
|
|
26
|
-
columns: {
|
|
27
|
-
...s == null ? void 0 : s.columns,
|
|
28
|
-
columnIds: r
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
await h(e, { attributes: p }), await m(), u(), t({ type: "success", text: "Columns updated successfully" });
|
|
32
|
-
} catch {
|
|
33
|
-
t({ type: "error", text: "Failed to save columns" });
|
|
34
|
-
} finally {
|
|
35
|
-
o(!1);
|
|
36
|
-
}
|
|
37
|
-
},
|
|
38
|
-
isSavingColumns: l
|
|
39
|
-
};
|
|
40
|
-
};
|
|
13
|
+
}
|
|
14
|
+
);
|
|
41
15
|
export {
|
|
42
|
-
|
|
16
|
+
h as LegacySortableViews
|
|
43
17
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veeqo/transfigure",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"@material-ui/core": "^4.11.0",
|
|
39
39
|
"@tanstack/react-table": "^8.21.2",
|
|
40
40
|
"@veeqo/components": "6.1.1",
|
|
41
|
-
"@veeqo/ui": "
|
|
41
|
+
"@veeqo/ui": "14.0.3",
|
|
42
42
|
"ajv-keywords": "^5.1.0",
|
|
43
|
-
"axios": "^1.
|
|
43
|
+
"axios": "^1.15.0",
|
|
44
44
|
"framer-motion": "^6.5.1",
|
|
45
45
|
"kitsu-core": "^8.3.1",
|
|
46
46
|
"lodash": "^4.17.19",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"@typescript-eslint/eslint-plugin": "^8.37.0",
|
|
94
94
|
"@typescript-eslint/parser": "^8.37.0",
|
|
95
95
|
"@veeqo/components": "6.1.1",
|
|
96
|
-
"@veeqo/ui": "
|
|
96
|
+
"@veeqo/ui": "14.0.3",
|
|
97
97
|
"qs": "^6.10.3",
|
|
98
98
|
"@vitejs/plugin-react": "^4.3.4",
|
|
99
99
|
"@vitest/browser": "^3.1.2",
|
|
@@ -101,7 +101,7 @@
|
|
|
101
101
|
"@vitest/ui": "^3.1.2",
|
|
102
102
|
"ajv": "^8.17.1",
|
|
103
103
|
"ajv-keywords": "^5.1.0",
|
|
104
|
-
"axios": "^1.
|
|
104
|
+
"axios": "^1.15.0",
|
|
105
105
|
"babel-plugin-styled-components": "^2.1.4",
|
|
106
106
|
"eslint": "^9.21.0",
|
|
107
107
|
"eslint-plugin-import": "^2.32.0",
|