@veeqo/transfigure 1.2.3 → 1.2.5
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/BusinessLogic/mocks.d.ts +10 -0
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +88 -78
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +29 -33
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +21 -29
- package/dist/index103.cjs +1 -19
- package/dist/index103.js +14 -23
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +24 -21
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +7 -15
- package/dist/index11.cjs +1 -1
- package/dist/index11.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/index47.cjs +1 -1
- package/dist/index47.js +2 -2
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +36 -35
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +11 -10
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +46 -44
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +194 -193
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +41 -29
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +1 -1
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +41 -5
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +9 -41
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +4 -8
- package/dist/index98.cjs +19 -1
- package/dist/index98.js +24 -7
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +36 -22
- package/dist/mobx/Filters/Filters.d.ts +1 -1
- package/dist/storybookHelpers/apiMocks/views/custom_views.d.ts +45 -4
- package/package.json +5 -2
package/dist/index78.js
CHANGED
|
@@ -1,52 +1,64 @@
|
|
|
1
|
-
import { parseDate as
|
|
2
|
-
import { RangeFilter as
|
|
3
|
-
import { NumberRangeFilter as
|
|
4
|
-
import
|
|
5
|
-
|
|
1
|
+
import { parseDate as u } from "@internationalized/date";
|
|
2
|
+
import { RangeFilter as c } from "./index70.js";
|
|
3
|
+
import { NumberRangeFilter as b } from "./index69.js";
|
|
4
|
+
import n from "lodash/get";
|
|
5
|
+
import { BusinessLogicManager as y } from "./index9.js";
|
|
6
|
+
const T = ({
|
|
6
7
|
view: r,
|
|
7
|
-
canUpdateCustomViews:
|
|
8
|
+
canUpdateCustomViews: d
|
|
8
9
|
}) => {
|
|
9
|
-
var
|
|
10
|
-
const { DATE_RANGE_FILTERS:
|
|
10
|
+
var f;
|
|
11
|
+
const { DATE_RANGE_FILTERS: a, NUMBER_RANGE_FILTERS: o, GROUP_MAP: p } = y.getBusinessLogic(), l = Array.from(p.values()).flatMap((e) => e.fields), s = r.filters.filter || {};
|
|
11
12
|
return {
|
|
12
13
|
id: r.id,
|
|
13
14
|
label: r.title,
|
|
14
15
|
filterMaps: {
|
|
15
16
|
filters: new Map(
|
|
16
|
-
|
|
17
|
-
(
|
|
18
|
-
).map((
|
|
17
|
+
l.filter(
|
|
18
|
+
(e) => !a.includes(e.id) && !o.includes(e.id) && e.filterType !== "checkbox"
|
|
19
|
+
).map((e) => {
|
|
20
|
+
const t = n(s, e.id);
|
|
21
|
+
return [e.id, t !== void 0 && !Array.isArray(t) && typeof t != "object" ? String(t) : ""];
|
|
22
|
+
}).filter(([, e]) => e !== "")
|
|
19
23
|
),
|
|
20
24
|
arrayFilters: new Map(
|
|
21
|
-
|
|
25
|
+
l.filter((e) => e.filterType === "checkbox").map((e) => {
|
|
26
|
+
const t = n(s, e.id);
|
|
27
|
+
return [e.id, Array.isArray(t) ? t : []];
|
|
28
|
+
}).filter(([, e]) => e.length > 0)
|
|
22
29
|
),
|
|
23
30
|
rangeFilters: new Map(
|
|
24
|
-
|
|
25
|
-
|
|
31
|
+
l.filter((e) => a.includes(e.id)).map((e) => {
|
|
32
|
+
const t = n(s, e.id);
|
|
33
|
+
if (!t) return null;
|
|
34
|
+
let i;
|
|
26
35
|
if (typeof t == "string")
|
|
27
|
-
|
|
28
|
-
else {
|
|
29
|
-
|
|
30
|
-
const m =
|
|
31
|
-
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
36
|
+
i = new c(t);
|
|
37
|
+
else if (typeof t == "object" && t.gte && t.lte) {
|
|
38
|
+
i = new c("CUSTOM");
|
|
39
|
+
const m = u(t.gte), g = u(t.lte);
|
|
40
|
+
i.setDates(m, g);
|
|
41
|
+
} else
|
|
42
|
+
return null;
|
|
43
|
+
return [e.id, i];
|
|
44
|
+
}).filter((e) => e !== null)
|
|
35
45
|
),
|
|
36
46
|
numberRangeFilters: new Map(
|
|
37
|
-
|
|
38
|
-
const
|
|
39
|
-
|
|
40
|
-
|
|
47
|
+
l.filter((e) => o.includes(e.id)).map((e) => {
|
|
48
|
+
const t = n(s, e.id);
|
|
49
|
+
if (!t || typeof t != "object") return null;
|
|
50
|
+
const i = new b({ filterId: e.id });
|
|
51
|
+
return t.lte !== void 0 && i.setLte(Number(t.lte)), t.gte !== void 0 && i.setGte(Number(t.gte)), [e.id, i];
|
|
52
|
+
}).filter((e) => e !== null)
|
|
41
53
|
)
|
|
42
54
|
},
|
|
43
55
|
page: r.filters.page,
|
|
44
|
-
editable: r.editable &&
|
|
56
|
+
editable: r.editable && d,
|
|
45
57
|
isShared: r.shared,
|
|
46
58
|
columns: r.columns,
|
|
47
|
-
sort: (
|
|
59
|
+
sort: (f = r.filters) == null ? void 0 : f.sort
|
|
48
60
|
};
|
|
49
61
|
};
|
|
50
62
|
export {
|
|
51
|
-
|
|
63
|
+
T as viewsAdapter
|
|
52
64
|
};
|
package/dist/index80.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index105.cjs"),w=require("./index79.cjs"),V=require("./index78.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/index80.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { INITIAL_VIEWS_STATE as r } from "./
|
|
1
|
+
import { INITIAL_VIEWS_STATE as r } from "./index105.js";
|
|
2
2
|
import { ALL_VIEW_ID as p } from "./index79.js";
|
|
3
3
|
import { viewsAdapter as u } from "./index78.js";
|
|
4
4
|
const m = ({ data: o, canUpdateCustomViews: w }) => {
|
package/dist/index86.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("./index61.cjs"),v=require("./index67.cjs"),q=require("./index55.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/index86.js
CHANGED
|
@@ -1,7 +1,43 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
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 "./index61.js";
|
|
5
|
+
import { useUrlParams as v } from "./index67.js";
|
|
6
|
+
import { fetcherV2 as V } from "./index55.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
|
+
}
|
|
4
41
|
export {
|
|
5
|
-
|
|
6
|
-
a as default
|
|
42
|
+
T as usePollData
|
|
7
43
|
};
|
package/dist/index87.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/index87.js
CHANGED
|
@@ -1,43 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
import { fetcherV2 as V } from "./index55.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
|
-
}
|
|
1
|
+
const e = "_refreshTooltip_v0eu8_1", r = "_refreshButton_v0eu8_5", t = "_refreshIndicator_v0eu8_9", o = {
|
|
2
|
+
refreshTooltip: e,
|
|
3
|
+
refreshButton: r,
|
|
4
|
+
refreshIndicator: t
|
|
5
|
+
};
|
|
41
6
|
export {
|
|
42
|
-
|
|
7
|
+
o as default,
|
|
8
|
+
r as refreshButton,
|
|
9
|
+
t as refreshIndicator,
|
|
10
|
+
e as refreshTooltip
|
|
43
11
|
};
|
package/dist/index88.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_actionsHeaderContainer_fgqms_1",t={actionsHeaderContainer:e};exports.actionsHeaderContainer=e;exports.default=t;
|
package/dist/index88.js
CHANGED
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
const e = "
|
|
2
|
-
|
|
3
|
-
refreshButton: r,
|
|
4
|
-
refreshIndicator: t
|
|
1
|
+
const e = "_actionsHeaderContainer_fgqms_1", a = {
|
|
2
|
+
actionsHeaderContainer: e
|
|
5
3
|
};
|
|
6
4
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
t as refreshIndicator,
|
|
10
|
-
e as refreshTooltip
|
|
5
|
+
e as actionsHeaderContainer,
|
|
6
|
+
a as default
|
|
11
7
|
};
|
package/dist/index98.cjs
CHANGED
|
@@ -1 +1,19 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("styled-components"),e=require("@veeqo/ui"),s=t=>t&&t.__esModule?t:{default:t},o=s(r),i=o.default(e.Button).attrs(()=>({role:"option",variant:"flat"}))`
|
|
2
|
+
margin: ${e.theme.sizes.xs};
|
|
3
|
+
min-width: 180px;
|
|
4
|
+
justify-content: flex-start;
|
|
5
|
+
font-size: ${e.theme.text.body.fontSize};
|
|
6
|
+
|
|
7
|
+
&:hover {
|
|
8
|
+
background-color: ${e.theme.colors.neutral.grey.lightest};
|
|
9
|
+
color: ${e.theme.colors.secondary.blue.base};
|
|
10
|
+
cursor: pointer;
|
|
11
|
+
}
|
|
12
|
+
`,n=o.default(e.Card.Surface).attrs(()=>({role:"listbox",elevation:4}))`
|
|
13
|
+
margin-top: ${e.theme.sizes.xs};
|
|
14
|
+
background-color: white;
|
|
15
|
+
`,l=o.default.hr`
|
|
16
|
+
width: 100%;
|
|
17
|
+
border-top: 1px solid ${e.theme.colors.neutral.grey.dark};
|
|
18
|
+
margin: 0;
|
|
19
|
+
`;exports.Divider=l;exports.Item=i;exports.MenuItems=n;
|
package/dist/index98.js
CHANGED
|
@@ -1,9 +1,26 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import t from "styled-components";
|
|
2
|
+
import { theme as o, Card as r, Button as e } from "@veeqo/ui";
|
|
3
|
+
const n = t(e).attrs(() => ({ role: "option", variant: "flat" }))`
|
|
4
|
+
margin: ${o.sizes.xs};
|
|
5
|
+
min-width: 180px;
|
|
6
|
+
justify-content: flex-start;
|
|
7
|
+
font-size: ${o.text.body.fontSize};
|
|
8
|
+
|
|
9
|
+
&:hover {
|
|
10
|
+
background-color: ${o.colors.neutral.grey.lightest};
|
|
11
|
+
color: ${o.colors.secondary.blue.base};
|
|
12
|
+
cursor: pointer;
|
|
13
|
+
}
|
|
14
|
+
`, a = t(r.Surface).attrs(() => ({ role: "listbox", elevation: 4 }))`
|
|
15
|
+
margin-top: ${o.sizes.xs};
|
|
16
|
+
background-color: white;
|
|
17
|
+
`, l = t.hr`
|
|
18
|
+
width: 100%;
|
|
19
|
+
border-top: 1px solid ${o.colors.neutral.grey.dark};
|
|
20
|
+
margin: 0;
|
|
21
|
+
`;
|
|
7
22
|
export {
|
|
8
|
-
|
|
23
|
+
l as Divider,
|
|
24
|
+
n as Item,
|
|
25
|
+
a as MenuItems
|
|
9
26
|
};
|
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 w=require("react"),R=require("swr"),m=require("qs"),E=require("./index61.cjs"),F=require("./index8.cjs"),P=require("./index62.cjs"),S=require("./index55.cjs"),c=e=>e&&e.__esModule?e:{default:e},V=c(R),i=c(m),h=()=>{var n;const{Filters:{queryParams:e}}=E.useStores(),{TABLE_DATA_URL:l,PAGE_NUMBER_FILTER_ID:o,PAGE_SIZE_FILTER_ID:r}=F.useBusinessLogic(),{isLoading:d}=P.useViews(),_=w.useMemo(()=>{const u={...i.default.parse(e),[o]:"1",[r]:"1"};return i.default.stringify(u,{arrayFormat:"brackets"})},[e,o,r]),f=!d?`${l}?${_}`:null,{data:s,error:L,isLoading:g,mutate:q}=V.default([f,{includeMeta:!0}],([a,u])=>S.fetcherV2(a,u),{revalidateOnFocus:!1,revalidateOnReconnect:!1,keepPreviousData:!0}),t=s==null?void 0:s.meta;return{viewCounts:(n=t==null?void 0:t.page)==null?void 0:n.total_count,error:L,isLoadingViewCounts:g,mutate:q}};exports.useViewCounts=h;
|
package/dist/index99.js
CHANGED
|
@@ -1,26 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
}
|
|
1
|
+
import { useMemo as _ } from "react";
|
|
2
|
+
import g from "swr";
|
|
3
|
+
import u from "qs";
|
|
4
|
+
import { useStores as w } from "./index61.js";
|
|
5
|
+
import { useBusinessLogic as E } from "./index8.js";
|
|
6
|
+
import { useViews as F } from "./index62.js";
|
|
7
|
+
import { fetcherV2 as R } from "./index55.js";
|
|
8
|
+
const T = () => {
|
|
9
|
+
var n;
|
|
10
|
+
const { Filters: { queryParams: s } } = w(), { TABLE_DATA_URL: c, PAGE_NUMBER_FILTER_ID: r, PAGE_SIZE_FILTER_ID: i } = E(), { isLoading: m } = F(), d = _(() => {
|
|
11
|
+
const t = {
|
|
12
|
+
...u.parse(s),
|
|
13
|
+
[r]: "1",
|
|
14
|
+
[i]: "1"
|
|
16
15
|
};
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
16
|
+
return u.stringify(t, { arrayFormat: "brackets" });
|
|
17
|
+
}, [s, r, i]), p = !m ? `${c}?${d}` : null, {
|
|
18
|
+
data: e,
|
|
19
|
+
error: f,
|
|
20
|
+
isLoading: l,
|
|
21
|
+
mutate: L
|
|
22
|
+
} = g(
|
|
23
|
+
[p, { includeMeta: !0 }],
|
|
24
|
+
([a, t]) => R(a, t),
|
|
25
|
+
{
|
|
26
|
+
revalidateOnFocus: !1,
|
|
27
|
+
revalidateOnReconnect: !1,
|
|
28
|
+
keepPreviousData: !0
|
|
29
|
+
}
|
|
30
|
+
), o = e == null ? void 0 : e.meta;
|
|
31
|
+
return {
|
|
32
|
+
viewCounts: (n = o == null ? void 0 : o.page) == null ? void 0 : n.total_count,
|
|
33
|
+
error: f,
|
|
34
|
+
isLoadingViewCounts: l,
|
|
35
|
+
mutate: L
|
|
36
|
+
};
|
|
23
37
|
};
|
|
24
38
|
export {
|
|
25
|
-
|
|
39
|
+
T as useViewCounts
|
|
26
40
|
};
|
|
@@ -48,7 +48,7 @@ export declare class Filters {
|
|
|
48
48
|
getFiltersForGroup: (groupId: string) => Record<string, string | string[] | NumberRangeFilter | RangeFilter | undefined>;
|
|
49
49
|
get hasActiveFilters(): boolean;
|
|
50
50
|
get activeFilterKeysList(): string[];
|
|
51
|
-
get queryParamsObject():
|
|
51
|
+
get queryParamsObject(): Record<string, string | object>;
|
|
52
52
|
get queryParams(): string;
|
|
53
53
|
initFiltersFromView: (props: TransformedView) => void;
|
|
54
54
|
initFromUrl: (shouldUseViewIdFromURL?: boolean) => void;
|
|
@@ -13,8 +13,9 @@ export declare const custom_views: {
|
|
|
13
13
|
due_date?: undefined;
|
|
14
14
|
shoe_size?: undefined;
|
|
15
15
|
max_products?: undefined;
|
|
16
|
-
|
|
16
|
+
search?: undefined;
|
|
17
17
|
product_count?: undefined;
|
|
18
|
+
brand_ids?: undefined;
|
|
18
19
|
};
|
|
19
20
|
page?: undefined;
|
|
20
21
|
};
|
|
@@ -39,8 +40,9 @@ export declare const custom_views: {
|
|
|
39
40
|
due_date?: undefined;
|
|
40
41
|
shoe_size?: undefined;
|
|
41
42
|
max_products?: undefined;
|
|
42
|
-
|
|
43
|
+
search?: undefined;
|
|
43
44
|
product_count?: undefined;
|
|
45
|
+
brand_ids?: undefined;
|
|
44
46
|
};
|
|
45
47
|
page?: undefined;
|
|
46
48
|
};
|
|
@@ -64,7 +66,9 @@ export declare const custom_views: {
|
|
|
64
66
|
due_date: string;
|
|
65
67
|
shoe_size: string;
|
|
66
68
|
max_products: string;
|
|
67
|
-
|
|
69
|
+
search: {
|
|
70
|
+
order_number: string;
|
|
71
|
+
};
|
|
68
72
|
product_count: {
|
|
69
73
|
gte: string;
|
|
70
74
|
};
|
|
@@ -72,6 +76,7 @@ export declare const custom_views: {
|
|
|
72
76
|
created?: undefined;
|
|
73
77
|
mergeable?: undefined;
|
|
74
78
|
pick_status?: undefined;
|
|
79
|
+
brand_ids?: undefined;
|
|
75
80
|
};
|
|
76
81
|
};
|
|
77
82
|
created_at: string;
|
|
@@ -94,7 +99,42 @@ export declare const custom_views: {
|
|
|
94
99
|
due_date: string;
|
|
95
100
|
shoe_size: string;
|
|
96
101
|
max_products: string;
|
|
97
|
-
|
|
102
|
+
search: {
|
|
103
|
+
order_number: string;
|
|
104
|
+
};
|
|
105
|
+
product_count: {
|
|
106
|
+
gte: string;
|
|
107
|
+
};
|
|
108
|
+
brand_ids: string[];
|
|
109
|
+
status?: undefined;
|
|
110
|
+
created?: undefined;
|
|
111
|
+
mergeable?: undefined;
|
|
112
|
+
pick_status?: undefined;
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
created_at: string;
|
|
116
|
+
updated_at: string;
|
|
117
|
+
editable: boolean;
|
|
118
|
+
company_id: number;
|
|
119
|
+
columns: {
|
|
120
|
+
columnIds?: undefined;
|
|
121
|
+
};
|
|
122
|
+
} | {
|
|
123
|
+
id: string;
|
|
124
|
+
title: string;
|
|
125
|
+
user_id: number;
|
|
126
|
+
shared: boolean;
|
|
127
|
+
filters: {
|
|
128
|
+
page: {
|
|
129
|
+
size: number;
|
|
130
|
+
};
|
|
131
|
+
filter: {
|
|
132
|
+
due_date: string;
|
|
133
|
+
shoe_size: string;
|
|
134
|
+
max_products: string;
|
|
135
|
+
search: {
|
|
136
|
+
order_number: string;
|
|
137
|
+
};
|
|
98
138
|
product_count: {
|
|
99
139
|
gte: string;
|
|
100
140
|
};
|
|
@@ -102,6 +142,7 @@ export declare const custom_views: {
|
|
|
102
142
|
created?: undefined;
|
|
103
143
|
mergeable?: undefined;
|
|
104
144
|
pick_status?: undefined;
|
|
145
|
+
brand_ids?: undefined;
|
|
105
146
|
};
|
|
106
147
|
};
|
|
107
148
|
created_at: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@veeqo/transfigure",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"main": "dist/index.cjs",
|
|
@@ -55,7 +55,8 @@
|
|
|
55
55
|
"react-use": "^15.3.8",
|
|
56
56
|
"styled-components": "^5.1.1",
|
|
57
57
|
"swr": "^2.0.4",
|
|
58
|
-
"uid": "^2.0.2"
|
|
58
|
+
"uid": "^2.0.2",
|
|
59
|
+
"qs": "^6.10.3"
|
|
59
60
|
},
|
|
60
61
|
"optionalDependencies": {
|
|
61
62
|
"@rollup/rollup-linux-x64-gnu": "4.6.1"
|
|
@@ -93,6 +94,7 @@
|
|
|
93
94
|
"@typescript-eslint/parser": "^8.37.0",
|
|
94
95
|
"@veeqo/components": "6.1.1",
|
|
95
96
|
"@veeqo/ui": "13.10.0",
|
|
97
|
+
"qs": "^6.10.3",
|
|
96
98
|
"@vitejs/plugin-react": "^4.3.4",
|
|
97
99
|
"@vitest/browser": "^3.1.2",
|
|
98
100
|
"@vitest/coverage-v8": "^3.1.2",
|
|
@@ -141,6 +143,7 @@
|
|
|
141
143
|
"vite-css-modules": "^1.8.6",
|
|
142
144
|
"vite-plugin-dts": "^4.5.3",
|
|
143
145
|
"vite-plugin-eslint": "^1.8.1",
|
|
146
|
+
"@types/qs": "^6.9.7",
|
|
144
147
|
"vite-plugin-externalize-deps": "^0.9.0",
|
|
145
148
|
"vitest": "^3.1.2"
|
|
146
149
|
},
|