@veeqo/transfigure 0.0.30 → 0.0.32
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/PillNotifications/variants/styled.d.ts +0 -1
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +1 -1
- package/dist/index101.cjs +4 -4
- package/dist/index101.js +21 -23
- package/dist/index112.cjs +7 -1
- package/dist/index112.js +10 -47
- package/dist/index113.cjs +1 -7
- package/dist/index113.js +47 -10
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +2 -2
- 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/index40.cjs +1 -1
- package/dist/index40.js +34 -53
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +2 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +3 -3
- package/dist/index81.cjs +8 -1
- package/dist/index81.js +12 -143
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +40 -18
- package/dist/index83.cjs +1 -8
- package/dist/index83.js +9 -12
- package/dist/index84.cjs +1 -1
- package/dist/index84.js +141 -39
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +17 -7
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +17 -20
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +14 -32
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +21 -29
- package/dist/index89.cjs +1 -19
- package/dist/index89.js +33 -24
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +26 -12
- package/dist/index91.cjs +19 -1
- package/dist/index91.js +24 -18
- package/package.json +1 -1
|
@@ -320,5 +320,4 @@ export declare const Glyph: import('styled-components').StyledComponent<({ name,
|
|
|
320
320
|
margin?: string;
|
|
321
321
|
}, never>;
|
|
322
322
|
export declare const Wrap: import('styled-components').StyledComponent<"div", any, {}, never>;
|
|
323
|
-
export declare const Dropdown: import('styled-components').StyledComponent<({ cta, shouldShowDropdown, children, className, reversed, onClickAway, timeout, transitionClassnames, onClick, onMouseEnter, onMouseLeave, }: import('../../../../../node_modules/@veeqo/ui/dist/components/AnimatedDropdown/types').AnimatedDropdownProps) => React.JSX.Element, any, {}, never>;
|
|
324
323
|
export declare const Item: import('styled-components').StyledComponent<string, any, ButtonHTMLAttributes<HTMLButtonElement>, never>;
|
package/dist/index100.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),l=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),l=require("./index112.cjs"),v=({children:i,style:o,className:c})=>{const r=n.useRef(null),[u,f]=n.useState(0);return n.useEffect(()=>{const e=r.current,s=()=>{if(e){const{top:a}=e.getBoundingClientRect();f(a)}};s();const t=new ResizeObserver(s);return e&&t.observe(e),()=>{e&&t.unobserve(e),t.disconnect()}},[]),d.jsx(l.AdaptiveStyledContainer,{style:o,className:c,offset:u,ref:r,children:i})};exports.AdaptiveHeightContainer=v;
|
package/dist/index100.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as p } from "react/jsx-runtime";
|
|
2
2
|
import { useRef as a, useState as d, useEffect as m } from "react";
|
|
3
|
-
import { AdaptiveStyledContainer as v } from "./
|
|
3
|
+
import { AdaptiveStyledContainer as v } from "./index112.js";
|
|
4
4
|
const R = ({
|
|
5
5
|
children: o,
|
|
6
6
|
style: s,
|
package/dist/index101.cjs
CHANGED
|
@@ -41,9 +41,9 @@
|
|
|
41
41
|
background-color: #fff;
|
|
42
42
|
box-shadow: ${t.theme.shadows.lg};
|
|
43
43
|
pointer-events: all;
|
|
44
|
-
`,
|
|
44
|
+
`,x=o.default(t.Button)`
|
|
45
45
|
margin-right: 16px;
|
|
46
|
-
`,
|
|
46
|
+
`,u=o.default(t.Text)`
|
|
47
47
|
line-height: 20px;
|
|
48
48
|
`,n=o.default(t.Text)`
|
|
49
49
|
margin: ${e=>e.margin?e.margin:""};
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
flex-grow: 2;
|
|
59
59
|
margin-left: 24px;
|
|
60
60
|
margin-right: 24px;
|
|
61
|
-
`;o.default
|
|
61
|
+
`;o.default.button`
|
|
62
62
|
display: flex;
|
|
63
63
|
flex-direction: row;
|
|
64
64
|
width: 100%;
|
|
@@ -77,4 +77,4 @@
|
|
|
77
77
|
&:hover > ${n} {
|
|
78
78
|
color: ${t.theme.colors.secondary.blue.base};
|
|
79
79
|
}
|
|
80
|
-
`;exports.Bold=m;exports.Button=
|
|
80
|
+
`;exports.Bold=m;exports.Button=x;exports.Container=f;exports.Glyph=g;exports.Hint=u;exports.Notification=d;exports.Pill=p;exports.Text=n;exports.UIGlyph=i;exports.Wrap=h;
|
package/dist/index101.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import t from "styled-components";
|
|
2
|
-
import { BaseContainer as n, theme as i, Text as e, Banner as a, Button as
|
|
3
|
-
import { VeeqoCommon as
|
|
4
|
-
import { motion as
|
|
5
|
-
import { notificationVariants as
|
|
6
|
-
const { Glyph:
|
|
7
|
-
variants:
|
|
2
|
+
import { BaseContainer as n, theme as i, Text as e, Banner as a, Button as l } from "@veeqo/ui";
|
|
3
|
+
import { VeeqoCommon as s } from "@veeqo/components";
|
|
4
|
+
import { motion as c } from "framer-motion";
|
|
5
|
+
import { notificationVariants as p } from "./index109.js";
|
|
6
|
+
const { Glyph: x } = s, u = t(c(n)).attrs(() => ({
|
|
7
|
+
variants: p,
|
|
8
8
|
initial: "initial",
|
|
9
9
|
animate: "animate",
|
|
10
10
|
exit: "exit"
|
|
@@ -33,7 +33,7 @@ const { Glyph: m } = c, u = t(p(n)).attrs(() => ({
|
|
|
33
33
|
transition: 350ms ease;
|
|
34
34
|
}
|
|
35
35
|
pointer-events: none;
|
|
36
|
-
`,
|
|
36
|
+
`, w = t(n)`
|
|
37
37
|
display: inline-flex;
|
|
38
38
|
flex-direction: row;
|
|
39
39
|
align-items: center;
|
|
@@ -43,7 +43,7 @@ const { Glyph: m } = c, u = t(p(n)).attrs(() => ({
|
|
|
43
43
|
background-color: #fff;
|
|
44
44
|
box-shadow: ${i.shadows.lg};
|
|
45
45
|
pointer-events: all;
|
|
46
|
-
`,
|
|
46
|
+
`, y = t(a)`
|
|
47
47
|
display: inline-flex;
|
|
48
48
|
flex-direction: row;
|
|
49
49
|
align-items: center;
|
|
@@ -51,17 +51,17 @@ const { Glyph: m } = c, u = t(p(n)).attrs(() => ({
|
|
|
51
51
|
background-color: #fff;
|
|
52
52
|
box-shadow: ${i.shadows.lg};
|
|
53
53
|
pointer-events: all;
|
|
54
|
-
`,
|
|
54
|
+
`, $ = t(l)`
|
|
55
55
|
margin-right: 16px;
|
|
56
|
-
`,
|
|
56
|
+
`, b = t(e)`
|
|
57
57
|
line-height: 20px;
|
|
58
58
|
`, r = t(e)`
|
|
59
59
|
margin: ${(o) => o.margin ? o.margin : ""};
|
|
60
60
|
color: ${(o) => o.color};
|
|
61
|
-
`,
|
|
61
|
+
`, v = t(e)`
|
|
62
62
|
margin-right: 8px;
|
|
63
63
|
color: ${(o) => o.color};
|
|
64
|
-
`,
|
|
64
|
+
`, B = t(x)``, k = t(n)`
|
|
65
65
|
display: flex;
|
|
66
66
|
flex-direction: row;
|
|
67
67
|
align-items: flex-end;
|
|
@@ -69,8 +69,7 @@ const { Glyph: m } = c, u = t(p(n)).attrs(() => ({
|
|
|
69
69
|
margin-left: 24px;
|
|
70
70
|
margin-right: 24px;
|
|
71
71
|
`;
|
|
72
|
-
t
|
|
73
|
-
const G = t.button`
|
|
72
|
+
t.button`
|
|
74
73
|
display: flex;
|
|
75
74
|
flex-direction: row;
|
|
76
75
|
width: 100%;
|
|
@@ -91,15 +90,14 @@ const G = t.button`
|
|
|
91
90
|
}
|
|
92
91
|
`;
|
|
93
92
|
export {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
G as Item,
|
|
93
|
+
v as Bold,
|
|
94
|
+
$ as Button,
|
|
95
|
+
w as Container,
|
|
96
|
+
B as Glyph,
|
|
97
|
+
b as Hint,
|
|
100
98
|
u as Notification,
|
|
101
|
-
|
|
99
|
+
y as Pill,
|
|
102
100
|
r as Text,
|
|
103
|
-
|
|
104
|
-
|
|
101
|
+
x as UIGlyph,
|
|
102
|
+
k as Wrap
|
|
105
103
|
};
|
package/dist/index112.cjs
CHANGED
|
@@ -1 +1,7 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),e=require("@veeqo/ui"),a=t=>t&&t.__esModule?t:{default:t},i=a(o),s=i.default(e.BaseContainer)`
|
|
2
|
+
padding: ${e.theme.sizes.sm};
|
|
3
|
+
// This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
|
|
4
|
+
// with an additional sizes.base offset at the bottom.
|
|
5
|
+
max-height: calc(100vh ${({offset:t})=>t&&`- ${t}px`} - ${e.theme.sizes.base});
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
`;exports.AdaptiveStyledContainer=s;
|
package/dist/index112.js
CHANGED
|
@@ -1,49 +1,12 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
({ field: t, editedValue: c, setEditedValue: a }) => {
|
|
11
|
-
var o, i;
|
|
12
|
-
const l = u(() => {
|
|
13
|
-
var e;
|
|
14
|
-
return L({ fetcherName: (e = t.fetchAsyncFilterOptions) == null ? void 0 : e.fetcher });
|
|
15
|
-
}, [(o = t.fetchAsyncFilterOptions) == null ? void 0 : o.fetcher]), { isLoading: m, isValidating: h, data: p, error: f } = S(
|
|
16
|
-
(i = t.fetchAsyncFilterOptions) == null ? void 0 : i.URL,
|
|
17
|
-
l,
|
|
18
|
-
k
|
|
19
|
-
), r = m || h, g = d({ data: p, config: t.fetchAsyncFilterOptions });
|
|
20
|
-
return /* @__PURE__ */ s(b, { spacing: "xs", alignX: "stretch", children: [
|
|
21
|
-
/* @__PURE__ */ n(
|
|
22
|
-
F,
|
|
23
|
-
{
|
|
24
|
-
allowMultiple: !0,
|
|
25
|
-
title: t.label,
|
|
26
|
-
options: g,
|
|
27
|
-
selected: c,
|
|
28
|
-
onChange: (e) => a(e)
|
|
29
|
-
}
|
|
30
|
-
),
|
|
31
|
-
r && /* @__PURE__ */ n(
|
|
32
|
-
x,
|
|
33
|
-
{
|
|
34
|
-
width: "200px",
|
|
35
|
-
height: y.sizes[5],
|
|
36
|
-
"aria-busy": !0,
|
|
37
|
-
"aria-label": `Loading ${t.label} filters`
|
|
38
|
-
}
|
|
39
|
-
),
|
|
40
|
-
!r && f && /* @__PURE__ */ s(A, { variant: "errorSmall", children: [
|
|
41
|
-
"Error: failed to load filter for ",
|
|
42
|
-
t.label
|
|
43
|
-
] })
|
|
44
|
-
] });
|
|
45
|
-
}
|
|
46
|
-
);
|
|
1
|
+
import o from "styled-components";
|
|
2
|
+
import { theme as e, BaseContainer as i } from "@veeqo/ui";
|
|
3
|
+
const h = o(i)`
|
|
4
|
+
padding: ${e.sizes.sm};
|
|
5
|
+
// This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
|
|
6
|
+
// with an additional sizes.base offset at the bottom.
|
|
7
|
+
max-height: calc(100vh ${({ offset: t }) => t && `- ${t}px`} - ${e.sizes.base});
|
|
8
|
+
overflow-y: auto;
|
|
9
|
+
`;
|
|
47
10
|
export {
|
|
48
|
-
|
|
11
|
+
h as AdaptiveStyledContainer
|
|
49
12
|
};
|
package/dist/index113.cjs
CHANGED
|
@@ -1,7 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
2
|
-
padding: ${e.theme.sizes.sm};
|
|
3
|
-
// This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
|
|
4
|
-
// with an additional sizes.base offset at the bottom.
|
|
5
|
-
max-height: calc(100vh ${({offset:t})=>t&&`- ${t}px`} - ${e.theme.sizes.base});
|
|
6
|
-
overflow-y: auto;
|
|
7
|
-
`;exports.AdaptiveStyledContainer=s;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),p=require("react"),d=require("mobx-react"),t=require("@veeqo/ui"),m=require("swr/immutable"),x=require("./index72.cjs"),y=require("./index73.cjs"),F=require("./index47.cjs"),O=e=>e&&e.__esModule?e:{default:e},A=O(m),S=d.observer(({field:e,editedValue:o,setEditedValue:a})=>{var c,i;const l=p.useMemo(()=>{var r;return y.getFetcherFunction({fetcherName:(r=e.fetchAsyncFilterOptions)==null?void 0:r.fetcher})},[(c=e.fetchAsyncFilterOptions)==null?void 0:c.fetcher]),{isLoading:u,isValidating:h,data:g,error:b}=A.default((i=e.fetchAsyncFilterOptions)==null?void 0:i.URL,l,F.SWR_HOOK_OPTIONS),n=u||h,f=x.getAsyncOptions({data:g,config:e.fetchAsyncFilterOptions});return s.jsxs(t.Stack,{spacing:"xs",alignX:"stretch",children:[s.jsx(t.ChoiceList,{allowMultiple:!0,title:e.label,options:f,selected:o,onChange:r=>a(r)}),n&&s.jsx(t.Skeleton,{width:"200px",height:t.theme.sizes[5],"aria-busy":!0,"aria-label":`Loading ${e.label} filters`}),!n&&b&&s.jsxs(t.Text,{variant:"errorSmall",children:["Error: failed to load filter for ",e.label]})]})});exports.ActiveAsyncCheckboxFilter=S;
|
package/dist/index113.js
CHANGED
|
@@ -1,12 +1,49 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
import { jsxs as s, jsx as n } from "react/jsx-runtime";
|
|
2
|
+
import { useMemo as u } from "react";
|
|
3
|
+
import { observer as O } from "mobx-react";
|
|
4
|
+
import { Stack as b, ChoiceList as F, Skeleton as x, theme as y, Text as A } from "@veeqo/ui";
|
|
5
|
+
import S from "swr/immutable";
|
|
6
|
+
import { getAsyncOptions as d } from "./index72.js";
|
|
7
|
+
import { getFetcherFunction as L } from "./index73.js";
|
|
8
|
+
import { SWR_HOOK_OPTIONS as k } from "./index47.js";
|
|
9
|
+
const T = O(
|
|
10
|
+
({ field: t, editedValue: c, setEditedValue: a }) => {
|
|
11
|
+
var o, i;
|
|
12
|
+
const l = u(() => {
|
|
13
|
+
var e;
|
|
14
|
+
return L({ fetcherName: (e = t.fetchAsyncFilterOptions) == null ? void 0 : e.fetcher });
|
|
15
|
+
}, [(o = t.fetchAsyncFilterOptions) == null ? void 0 : o.fetcher]), { isLoading: m, isValidating: h, data: p, error: f } = S(
|
|
16
|
+
(i = t.fetchAsyncFilterOptions) == null ? void 0 : i.URL,
|
|
17
|
+
l,
|
|
18
|
+
k
|
|
19
|
+
), r = m || h, g = d({ data: p, config: t.fetchAsyncFilterOptions });
|
|
20
|
+
return /* @__PURE__ */ s(b, { spacing: "xs", alignX: "stretch", children: [
|
|
21
|
+
/* @__PURE__ */ n(
|
|
22
|
+
F,
|
|
23
|
+
{
|
|
24
|
+
allowMultiple: !0,
|
|
25
|
+
title: t.label,
|
|
26
|
+
options: g,
|
|
27
|
+
selected: c,
|
|
28
|
+
onChange: (e) => a(e)
|
|
29
|
+
}
|
|
30
|
+
),
|
|
31
|
+
r && /* @__PURE__ */ n(
|
|
32
|
+
x,
|
|
33
|
+
{
|
|
34
|
+
width: "200px",
|
|
35
|
+
height: y.sizes[5],
|
|
36
|
+
"aria-busy": !0,
|
|
37
|
+
"aria-label": `Loading ${t.label} filters`
|
|
38
|
+
}
|
|
39
|
+
),
|
|
40
|
+
!r && f && /* @__PURE__ */ s(A, { variant: "errorSmall", children: [
|
|
41
|
+
"Error: failed to load filter for ",
|
|
42
|
+
t.label
|
|
43
|
+
] })
|
|
44
|
+
] });
|
|
45
|
+
}
|
|
46
|
+
);
|
|
10
47
|
export {
|
|
11
|
-
|
|
48
|
+
T as ActiveAsyncCheckboxFilter
|
|
12
49
|
};
|
package/dist/index15.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),l=require("mobx-react"),s=require("@veeqo/ui"),c=require("./index47.cjs"),u=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),l=require("mobx-react"),s=require("@veeqo/ui"),c=require("./index47.cjs"),u=require("./index113.cjs"),h=l.observer(({data:e,editedValue:r,setEditedValue:t})=>{var i;switch(e.filterType){case c.FilterChoiceValue.CHECKBOX:return e.fetchAsyncFilterOptions?o.jsx(u.ActiveAsyncCheckboxFilter,{field:e,setEditedValue:t,editedValue:r}):o.jsx(s.ChoiceList,{allowMultiple:!0,title:e.label,options:(i=e.options)!=null&&i.length?e.options:[],selected:r,onChange:n=>t(n)});default:return null}});exports.FilterArrayField=h;
|
package/dist/index15.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsx as t } from "react/jsx-runtime";
|
|
|
2
2
|
import { observer as n } from "mobx-react";
|
|
3
3
|
import { ChoiceList as p } from "@veeqo/ui";
|
|
4
4
|
import { FilterChoiceValue as s } from "./index47.js";
|
|
5
|
-
import { ActiveAsyncCheckboxFilter as c } from "./
|
|
5
|
+
import { ActiveAsyncCheckboxFilter as c } from "./index113.js";
|
|
6
6
|
const F = n(
|
|
7
7
|
({ data: r, editedValue: e, setEditedValue: o }) => {
|
|
8
8
|
var i;
|
package/dist/index34.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("react"),a=require("@veeqo/ui"),W=require("mobx-react"),Y=require("./index62.cjs"),z=require("./index60.cjs"),G=require("./index38.cjs"),J=require("./index41.cjs"),K=require("./index54.cjs"),Q=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("react"),a=require("@veeqo/ui"),W=require("mobx-react"),Y=require("./index62.cjs"),z=require("./index60.cjs"),G=require("./index38.cjs"),J=require("./index41.cjs"),K=require("./index54.cjs"),Q=require("./index89.cjs"),X=require("./index7.cjs"),Z=require("./index59.cjs"),$=require("./index90.cjs"),b=W.observer(({view:e})=>{const{VIEW_TYPE:S,SEARCH_FILTER_ID:l}=X.useBusinessLogic(),{Filters:{activeViewId:d,initFiltersFromView:w,discardChanges:f,initFromUrl:m,filters:x,setFilter:L},Views:{draftViewsMap:y},Notifications:{notify:T}}=Z.useStores(),{viewsMap:V,defaultCustomViewId:F,isLoading:j}=z.useViews(),{isLoading:N}=Y.useCustomViews({type:S}),{viewCounts:E,isLoadingViewCounts:M}=Q.useViewCounts(e.id),[s,R]=c.useState(null),k=o=>{const q=x.get(l);if(V.has(o)){const n=V.get(o);n&&(w(n),f(!0),m())}else{const n=y.get(o);n?(w(n),f(!0),m()):T({type:"error",text:"Failed to load view"})}q&&L(l,q)},r=(e==null?void 0:e.id)===d,t=e.originalView!==void 0,h=e.originalView===void 0,P=E,u=(e==null?void 0:e.label)||"",A=j||N,g=c.useRef(!1);!A&&!g.current&&r&&e.id===F&&s&&(g.current=!0,s&&d===e.id&&window.requestAnimationFrame(()=>{var o;(o=s.parentElement)==null||o.scrollBy({behavior:"smooth",left:s.offsetLeft})}));const p=c.useMemo(()=>t?"draft":e.editable?"saved":"fixed",[t,e.editable]),{actions:{create:{handleSaveDraft:B},menu:{toggleDropdown:C},delete:{closeDeleteConfirmation:I,handleDelete:_,handleDeleteDraftView:D}},state:{shouldShowDeleteConfirmation:H},actions:O,state:v}=K.useDropdownManager(e),U=c.useMemo(()=>{if(h)return C;if(t)return D},[D,t,h,C]);return i.jsxs(i.Fragment,{children:[i.jsx(a.ViewTab,{colourPalette:a.theme.colors.secondary.blue,className:"act-react-listing-custom-view",active:r,id:e==null?void 0:e.id,name:u,type:p,count:M?i.jsx(a.Loader,{type:"ThreeDots",width:12,height:12,color:r?"#fff":a.theme.colors.neutral.ink.dark}):P,onClick:k,subAction:U,ariaContext:"orders",ref:R,"aria-controls":"options-dropdown","aria-expanded":v.shouldShowDropdown,"aria-haspopup":"dialog"},e==null?void 0:e.id),i.jsx($.Confirmation,{shouldShow:H,viewName:u,onCancel:I,onDelete:_}),i.jsx(G.PillNotifications,{tabType:p,isActive:r,initialViewName:u,shouldShowCreateViewNotification:t,handleSaveDraft:B}),i.jsx(J.ViewDropdowns,{referenceElement:s,tab:e,...O,...v})]})});exports.ViewTab=b;
|
package/dist/index34.js
CHANGED
|
@@ -7,10 +7,10 @@ import { useViews as X } from "./index60.js";
|
|
|
7
7
|
import { PillNotifications as Z } from "./index38.js";
|
|
8
8
|
import { ViewDropdowns as b } from "./index41.js";
|
|
9
9
|
import { useDropdownManager as ee } from "./index54.js";
|
|
10
|
-
import { useViewCounts as oe } from "./
|
|
10
|
+
import { useViewCounts as oe } from "./index89.js";
|
|
11
11
|
import { useBusinessLogic as ie } from "./index7.js";
|
|
12
12
|
import { useStores as te } from "./index59.js";
|
|
13
|
-
import { Confirmation as re } from "./
|
|
13
|
+
import { Confirmation as re } from "./index90.js";
|
|
14
14
|
const ge = K(({ view: e }) => {
|
|
15
15
|
const { VIEW_TYPE: S, SEARCH_FILTER_ID: l } = ie(), {
|
|
16
16
|
Filters: { activeViewId: c, initFiltersFromView: d, discardChanges: f, initFromUrl: m, filters: F, setFilter: T },
|
package/dist/index37.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("./index91.cjs"),g=require("./index50.cjs"),j=require("./index49.cjs"),M=({tab:i,onMakeDefault:l,onEdit:n,onDuplicate:s,onDelete:o,shouldShowDropdown:a,handleCloseDropdown:c})=>{const{openModal:r}=g.useModal(),d=()=>{r(j.ModalId.ORDERS_TABLE_MANAGEMENT),c()},m=i.label!=="Picking In Progress"&&i.editable,u=i.default!==!1&&i.editable,p=i.editable,b=i.editable;return a?e.jsxs(t.MenuItems,{children:[u&&e.jsx(t.Item,{onClick:l,className:"act-react-listing-custom-view-make-default-menu-item",children:"Make default view"}),b&&e.jsx(t.Item,{onClick:n,className:"act-react-listing-custom-view-edit-menu-item",role:"option",children:"Edit"}),e.jsx(t.Item,{onClick:s,className:"act-react-listing-custom-view-duplicate-menu-item",role:"option",children:"Duplicate"}),m&&e.jsx(t.Item,{onClick:o,className:"act-react-listing-custom-view-delete-menu-item",role:"option",children:"Delete"}),p&&e.jsxs(e.Fragment,{children:[e.jsx(t.Divider,{}),e.jsx(t.Item,{onClick:d,role:"option",children:"Table management"})]})]}):null};exports.OptionsDropdown=M;
|
package/dist/index37.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsxs as t, jsx as i, Fragment as f } from "react/jsx-runtime";
|
|
2
|
-
import { MenuItems as M, Item as l, Divider as h } from "./
|
|
2
|
+
import { MenuItems as M, Item as l, Divider as h } from "./index91.js";
|
|
3
3
|
import { useModal as k } from "./index50.js";
|
|
4
4
|
import { ModalId as T } from "./index49.js";
|
|
5
5
|
const N = ({
|
package/dist/index38.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),P=require("mobx-react"),g=require("./index60.cjs"),o=require("framer-motion"),m=require("./index59.cjs"),v=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),P=require("mobx-react"),g=require("./index60.cjs"),o=require("framer-motion"),m=require("./index59.cjs"),v=require("./index88.cjs"),f=require("./index40.cjs"),h=P.observer(({tabType:s,isActive:r,shouldShowCreateViewNotification:a,handleSaveDraft:i})=>{var t;const{Filters:{hasUnsavedChanges:c,discardChanges:l,activeViewId:n}}=m.useStores(),{viewsMap:u}=g.useViews(),d=n&&((t=u.get(n))==null?void 0:t.label);return e.jsxs(e.Fragment,{children:[e.jsx(o.AnimatePresence,{children:s==="draft"&&r&&a&&e.jsx(v.DraftPill,{onClick:i})}),e.jsx(o.AnimatePresence,{children:c&&r&&s==="saved"&&e.jsx(f.UnsavedChangesPill,{viewName:d,onDiscard:()=>l(),onSaveDraft:i})})]})});exports.PillNotifications=h;
|
package/dist/index38.js
CHANGED
|
@@ -3,7 +3,7 @@ import { observer as h } from "mobx-react";
|
|
|
3
3
|
import { useViews as v } from "./index60.js";
|
|
4
4
|
import { AnimatePresence as n } from "framer-motion";
|
|
5
5
|
import { useStores as g } from "./index59.js";
|
|
6
|
-
import { DraftPill as w } from "./
|
|
6
|
+
import { DraftPill as w } from "./index88.js";
|
|
7
7
|
import { UnsavedChangesPill as C } from "./index40.js";
|
|
8
8
|
const U = h(
|
|
9
9
|
({
|
package/dist/index39.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("react"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),n=require("react"),m=require("./index87.cjs"),g=require("./index62.cjs"),S=require("./index60.cjs"),b=require("./index3.cjs"),y=require("./index7.cjs"),V=require("./index59.cjs"),p=require("./index10.cjs"),q=()=>{const{VIEW_TYPE:u}=y.useBusinessLogic(),{sortedCustomViews:s,isLoading:a}=S.useViews(),{mutate:c}=g.useCustomViews({type:u}),[l,t]=n.useState(s);n.useEffect(()=>{t(s)},[s]);const{Notifications:{notify:w}}=V.useStores(),d=async o=>{t(o);const r=o.map(e=>e.id);try{await b.patchCurrentUser({user_setting_attributes:{custom_view_positions:{order:r}}}),await c(e=>({...e,settings:{...e.settings,custom_view_positions:{...e.settings.custom_view_positions,order:r}}}),{revalidate:!1})}catch{t(s),w({type:"error",text:"Failed to update order of views"})}};return a||!s.length?null:i.jsx(p.ErrorBoundary,{children:i.jsx(m.LegacySortableViews,{views:l,onChange:d,className:"act-sortable-views"})})};exports.SortableViews=q;
|
package/dist/index39.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
2
|
import { useState as f, useEffect as l } from "react";
|
|
3
|
-
import { LegacySortableViews as w } from "./
|
|
3
|
+
import { LegacySortableViews as w } from "./index87.js";
|
|
4
4
|
import { useCustomViews as d } from "./index62.js";
|
|
5
5
|
import { useViews as g } from "./index60.js";
|
|
6
6
|
import { patchCurrentUser as _ } from "./index3.js";
|
package/dist/index40.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"),i=require("@veeqo/ui"),c=require("mobx-react"),l=require("./index58.cjs"),n=require("./index101.cjs"),d=i.theme.colors.secondary.blue.base,h=c.observer(({onDiscard:r,viewName:s,onSaveDraft:a})=>{const{saveChanges:o,isSubmitting:t}=l.usePersistUnsavedChanges();return e.jsx(n.Notification,{children:e.jsx(n.Container,{children:e.jsxs(i.Stack,{direction:"horizontal",alignY:"center",children:[e.jsx(n.Glyph,{ariaLabel:"attention",name:"attention",color:d}),e.jsxs(n.Wrap,{children:[e.jsx(n.Text,{variant:"body",margin:"0 4px 0 0",children:"You have unsaved changes to"}),s&&e.jsxs(n.Bold,{variant:"bodyBoldDark",children:["'",s,"'"]})]}),e.jsx(i.Button,{onClick:r,size:"sm",children:"Discard changes"}),e.jsxs(i.ActionMenu,{ctaProps:{children:"Save changes",variant:"primary"},children:[e.jsx(i.ActionMenu.Item,{onAction:a,isDisabled:t,children:e.jsx(n.Text,{variant:"body",children:"Create new view"})}),e.jsx(i.ActionMenu.Item,{onAction:o,isDisabled:t,children:e.jsxs(i.Stack,{direction:"horizontal",spacing:1,alignY:"center",children:[e.jsx(n.Text,{variant:"body",children:"Save changes to"}),e.jsx(n.Text,{variant:"bodyBold",children:s})]})})]})]})})})});exports.UnsavedChangesPill=h;
|
package/dist/index40.js
CHANGED
|
@@ -1,69 +1,50 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
onSaveDraft: c
|
|
1
|
+
import { jsx as n, jsxs as e } from "react/jsx-runtime";
|
|
2
|
+
import { Stack as t, theme as d, Button as h, ActionMenu as o } from "@veeqo/ui";
|
|
3
|
+
import { observer as m } from "mobx-react";
|
|
4
|
+
import { usePersistUnsavedChanges as v } from "./index58.js";
|
|
5
|
+
import { Notification as b, Container as g, Glyph as p, Wrap as u, Text as i, Bold as y } from "./index101.js";
|
|
6
|
+
const C = d.colors.secondary.blue.base, k = m(({
|
|
7
|
+
onDiscard: c,
|
|
8
|
+
viewName: r,
|
|
9
|
+
onSaveDraft: s
|
|
11
10
|
}) => {
|
|
12
|
-
const { saveChanges:
|
|
13
|
-
return /* @__PURE__ */
|
|
14
|
-
/* @__PURE__ */
|
|
15
|
-
/* @__PURE__ */
|
|
16
|
-
/* @__PURE__ */
|
|
17
|
-
|
|
11
|
+
const { saveChanges: l, isSubmitting: a } = v();
|
|
12
|
+
return /* @__PURE__ */ n(b, { children: /* @__PURE__ */ n(g, { children: /* @__PURE__ */ e(t, { direction: "horizontal", alignY: "center", children: [
|
|
13
|
+
/* @__PURE__ */ n(p, { ariaLabel: "attention", name: "attention", color: C }),
|
|
14
|
+
/* @__PURE__ */ e(u, { children: [
|
|
15
|
+
/* @__PURE__ */ n(i, { variant: "body", margin: "0 4px 0 0", children: "You have unsaved changes to" }),
|
|
16
|
+
r && /* @__PURE__ */ e(y, { variant: "bodyBoldDark", children: [
|
|
17
|
+
"'",
|
|
18
|
+
r,
|
|
19
|
+
"'"
|
|
20
|
+
] })
|
|
18
21
|
] }),
|
|
19
|
-
/* @__PURE__ */
|
|
20
|
-
|
|
22
|
+
/* @__PURE__ */ n(
|
|
23
|
+
h,
|
|
21
24
|
{
|
|
22
|
-
onClick:
|
|
25
|
+
onClick: c,
|
|
23
26
|
size: "sm",
|
|
24
27
|
children: "Discard changes"
|
|
25
28
|
}
|
|
26
29
|
),
|
|
27
|
-
/* @__PURE__ */
|
|
28
|
-
|
|
30
|
+
/* @__PURE__ */ e(
|
|
31
|
+
o,
|
|
29
32
|
{
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
a,
|
|
35
|
-
{
|
|
36
|
-
variant: "primary",
|
|
37
|
-
onClick: () => i(!0),
|
|
38
|
-
size: "sm",
|
|
39
|
-
dropdown: !0,
|
|
40
|
-
children: "Save changes"
|
|
41
|
-
}
|
|
42
|
-
),
|
|
33
|
+
ctaProps: {
|
|
34
|
+
children: "Save changes",
|
|
35
|
+
variant: "primary"
|
|
36
|
+
},
|
|
43
37
|
children: [
|
|
44
|
-
/* @__PURE__ */
|
|
45
|
-
|
|
46
|
-
{
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
),
|
|
51
|
-
/* @__PURE__ */ r(
|
|
52
|
-
t,
|
|
53
|
-
{
|
|
54
|
-
onClick: s,
|
|
55
|
-
disabled: l,
|
|
56
|
-
children: [
|
|
57
|
-
/* @__PURE__ */ e(n, { variant: "body", margin: "0 4px 0 0", children: "Save changes to" }),
|
|
58
|
-
/* @__PURE__ */ e(n, { variant: "bodyBoldDark", children: o })
|
|
59
|
-
]
|
|
60
|
-
}
|
|
61
|
-
)
|
|
38
|
+
/* @__PURE__ */ n(o.Item, { onAction: s, isDisabled: a, children: /* @__PURE__ */ n(i, { variant: "body", children: "Create new view" }) }),
|
|
39
|
+
/* @__PURE__ */ n(o.Item, { onAction: l, isDisabled: a, children: /* @__PURE__ */ e(t, { direction: "horizontal", spacing: 1, alignY: "center", children: [
|
|
40
|
+
/* @__PURE__ */ n(i, { variant: "body", children: "Save changes to" }),
|
|
41
|
+
/* @__PURE__ */ n(i, { variant: "bodyBold", children: r })
|
|
42
|
+
] }) })
|
|
62
43
|
]
|
|
63
44
|
}
|
|
64
45
|
)
|
|
65
46
|
] }) }) });
|
|
66
47
|
});
|
|
67
48
|
export {
|
|
68
|
-
|
|
49
|
+
k as UnsavedChangesPill
|
|
69
50
|
};
|
package/dist/index44.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),N=require("./index84.cjs"),b=require("@veeqo/ui"),_=require("./index85.cjs"),j=require("mobx-react"),y=require("./index7.cjs"),B=require("./index50.cjs"),I=require("./index59.cjs"),O=require("./index60.cjs"),g=require("./index49.cjs"),w=j.observer(({columnDefinitions:T,pinnedRightColumnIds:i=[],pinnedLeftColumnIds:a=[]})=>{var M;const{DEFAULT_HIDDEN_COLUMNS:E,DEFAULT_VISIBLE_COLUMNS:p}=y.useBusinessLogic(),n=[...a,...i],l=E.filter(s=>!n.includes(s)),c=p.filter(s=>!n.includes(s)),S=[...l,...c],{closeModal:f,isModalOpen:h,openModal:q}=B.useModal(),{Filters:{activeViewId:t},Views:{draftViewsMap:A}}=I.useStores(),{viewsMap:D,isLoading:x}=O.useViews();if(!t||x)return null;const e=D.get(t),r=Array.isArray((M=e==null?void 0:e.columns)==null?void 0:M.columnIds),u=r?e.columns.columnIds.filter(s=>!n.includes(s)):c,L=r?S.filter(s=>!u.includes(s)):l,d=A.has(t),m=!(e!=null&&e.editable),v=m||d,C=d?"Please create a view to use table management":m?"Please choose a custom view to use table management":"Table management";return o.jsxs(o.Fragment,{children:[o.jsx(b.Tooltip,{text:C,children:o.jsx(b.Button,{"aria-label":"Open table management",onClick:()=>q(g.ModalId.ORDERS_TABLE_MANAGEMENT),size:"sm",iconSlot:o.jsx(_.TableManagementGlyph,{}),disabled:v})}),h(g.ModalId.ORDERS_TABLE_MANAGEMENT)&&o.jsx(N.TableManagementModal,{pinnedRightColumnIds:i,pinnedLeftColumnIds:a,visibleColumns:u,hiddenColumns:L,columnDefintions:T,onClose:f})]})});exports.TableManagement=w;
|
package/dist/index44.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as v, Fragment as B, jsx as s } from "react/jsx-runtime";
|
|
2
|
-
import { TableManagementModal as O } from "./
|
|
2
|
+
import { TableManagementModal as O } from "./index84.js";
|
|
3
3
|
import { Tooltip as w, Button as x } from "@veeqo/ui";
|
|
4
|
-
import { TableManagementGlyph as F } from "./
|
|
4
|
+
import { TableManagementGlyph as F } from "./index85.js";
|
|
5
5
|
import { observer as I } from "mobx-react";
|
|
6
6
|
import { useBusinessLogic as y } from "./index7.js";
|
|
7
7
|
import { useModal as P } from "./index50.js";
|
package/dist/index45.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@veeqo/ui"),r=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),c=require("@veeqo/ui"),r=require("./index81.cjs"),d=require("./index82.cjs"),h=require("./index83.cjs"),f=require("./index59.cjs"),y=({isLoading:s,refetch:n,trackMetricClick:t,tooltipText:a="Refresh data"})=>{const{hasChanges:o,acknowledgeButtonClick:l}=d.usePollData(),{Notifications:{notify:i}}=f.useStores(),u=async()=>{try{n(),l(),t==null||t()}catch{i({type:"error",text:"Failed to refresh data"})}};return e.jsx(c.Tooltip,{text:a,children:e.jsx(r.StyledButton,{onClick:u,variant:"default",size:"sm",loading:s,disabled:s,iconSlot:e.jsx(h.RefreshIcon,{}),"aria-label":o?"refresh table with changes":"refresh table","aria-live":"polite",children:e.jsx(r.StyledIndicator,{color:"red",size:"xs",style:{opacity:o?1:0}})})})};exports.RefreshButton=y;
|
package/dist/index45.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import { Tooltip as l } from "@veeqo/ui";
|
|
3
|
-
import { StyledButton as f, StyledIndicator as h } from "./
|
|
4
|
-
import { usePollData as d } from "./
|
|
5
|
-
import { RefreshIcon as m } from "./
|
|
3
|
+
import { StyledButton as f, StyledIndicator as h } from "./index81.js";
|
|
4
|
+
import { usePollData as d } from "./index82.js";
|
|
5
|
+
import { RefreshIcon as m } from "./index83.js";
|
|
6
6
|
import { useStores as p } from "./index59.js";
|
|
7
7
|
const B = ({ isLoading: t, refetch: s, trackMetricClick: o, tooltipText: a = "Refresh data" }) => {
|
|
8
8
|
const { hasChanges: r, acknowledgeButtonClick: n } = d(), { Notifications: { notify: i } } = p();
|
package/dist/index81.cjs
CHANGED
|
@@ -1 +1,8 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("styled-components"),t=require("@veeqo/ui"),d=e=>e&&e.__esModule?e:{default:e},s=d(i),o=s.default(t.Button)`
|
|
2
|
+
padding-right: ${t.theme.sizes.sm};
|
|
3
|
+
`,n=s.default(t.Indicator)`
|
|
4
|
+
height: ${t.theme.sizes[3]};
|
|
5
|
+
min-width: ${t.theme.sizes[3]};
|
|
6
|
+
top: -${t.theme.sizes.xs};
|
|
7
|
+
right: -${t.theme.sizes.xs};
|
|
8
|
+
`;exports.StyledButton=o;exports.StyledIndicator=n;
|