@veeqo/transfigure 1.2.13 → 2.0.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/Filters/ActiveFilters/Variants/common/ActiveFilterHeader/ActiveFilterHeader.d.ts +2 -2
- package/dist/components/Filters/Fields/NumberRangeFilter/MuiSlider.d.ts +1 -1
- package/dist/components/TableManagement/components/styled.d.ts +1 -3
- package/dist/components/Views/OptionsDropdown/styled.d.ts +1 -1
- package/dist/components/Views/PillNotifications/variants/UnsavedChangesPill/UnsavedChangesPill.d.ts +1 -1
- package/dist/components/Views/PillNotifications/variants/styled.d.ts +1 -5
- package/dist/index10.cjs +1 -1
- package/dist/index10.js +73 -74
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +15 -7
- package/dist/index101.cjs +12 -1
- package/dist/index101.js +16 -18
- package/dist/index102.cjs +19 -1
- package/dist/index102.js +24 -21
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +49 -14
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +29 -50
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +7 -29
- package/dist/index106.cjs +1 -19
- package/dist/index106.js +24 -24
- package/dist/index107.cjs +78 -10
- package/dist/index107.js +95 -13
- package/dist/index108.cjs +1 -80
- package/dist/index108.js +2 -101
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +1 -1
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +1 -1
- package/dist/index113.cjs +13 -1
- package/dist/index113.js +17 -2
- package/dist/index114.cjs +1 -13
- package/dist/index114.js +24 -15
- package/dist/index115.cjs +1 -1
- package/dist/index115.js +32 -22
- package/dist/index116.cjs +1 -1
- package/dist/index116.js +5 -36
- package/dist/index117.cjs +1 -1
- package/dist/index117.js +63 -5
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +42 -58
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +18 -18
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +20 -20
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +21 -21
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +15 -15
- package/dist/index25.cjs +1 -1
- package/dist/index25.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/index33.cjs +1 -1
- package/dist/index33.js +8 -9
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +5 -5
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +2 -2
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +11 -12
- 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/index42.cjs +1 -1
- package/dist/index42.js +11 -22
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +1 -1
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +24 -25
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -2
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +1 -1
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +1 -1
- package/dist/index84.cjs +1 -1
- package/dist/index84.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 +5 -41
- package/dist/index87.cjs +1 -1
- package/dist/index87.js +2 -9
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +115 -4
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +39 -116
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +9 -19
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +13 -2
- package/dist/index92.cjs +104 -1
- package/dist/index92.js +119 -13
- package/dist/index93.cjs +1 -104
- package/dist/index93.js +65 -117
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +23 -63
- package/dist/index95.cjs +1 -1
- package/dist/index95.js +2 -29
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +41 -2
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +9 -39
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +17 -10
- package/dist/index99.cjs +1 -1
- package/dist/index99.js +21 -24
- package/dist/types.d.ts +2 -2
- package/package.json +1 -1
- package/dist/components/TableManagement/TableManagementGlyph.d.ts +0 -4
- package/dist/index120.cjs +0 -1
- package/dist/index120.js +0 -49
package/dist/index109.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs as f, jsx as g } from "react/jsx-runtime";
|
|
2
2
|
import { useSortable as l } from "@dnd-kit/sortable";
|
|
3
3
|
import { CSS as p } from "@dnd-kit/utilities";
|
|
4
|
-
import { DraggingOverlay as c } from "./
|
|
4
|
+
import { DraggingOverlay as c } from "./index92.js";
|
|
5
5
|
const d = ({ id: r, children: t }) => {
|
|
6
6
|
const { attributes: o, listeners: s, setNodeRef: e, transform: i, transition: n, isDragging: m } = l({
|
|
7
7
|
id: r
|
package/dist/index11.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),p=require("react"),t=require("@veeqo/ui"),h=require("pluralize"),m=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),p=require("react"),t=require("@veeqo/ui"),h=require("pluralize"),m=require("./index86.cjs"),f=e=>e&&e.__esModule?e:{default:e},w=f(h),S=({children:e,totalCount:i,selectedCount:o,itemLabel:r="item"})=>{const[l,c]=p.useState(!1),n=o>0,a=n?o:i,d=w.default(r,a),u=`Actions will apply to ${n?`${o} selected`:`${i} filtered`} ${d}`;return s.jsxs(t.Dropdown,{id:"actions-dropdown",ctaProps:{children:"Actions",variant:"primary",size:"sm"},shouldShow:l,setShouldShow:c,style:{padding:t.theme.sizes.none,minWidth:"300px"},children:[s.jsx("div",{className:m.default.actionsHeaderContainer,children:s.jsx(t.MiniAlert,{title:u,variant:"default",customIconColour:t.theme.colors.secondary.blue.base})}),e]})};exports.ActionsDropdown=S;
|
package/dist/index11.js
CHANGED
|
@@ -2,7 +2,7 @@ import { jsxs as m, jsx as r } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState as p } from "react";
|
|
3
3
|
import { Dropdown as h, theme as e, MiniAlert as u } from "@veeqo/ui";
|
|
4
4
|
import f from "pluralize";
|
|
5
|
-
import w from "./
|
|
5
|
+
import w from "./index86.js";
|
|
6
6
|
const b = ({ children: s, totalCount: t, selectedCount: o, itemLabel: n = "item" }) => {
|
|
7
7
|
const [l, a] = p(!1), i = o > 0, c = f(n, i ? o : t), d = `Actions will apply to ${i ? `${o} selected` : `${t} filtered`} ${c}`;
|
|
8
8
|
return /* @__PURE__ */ m(
|
package/dist/index110.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("@dnd-kit/core"),s=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("react"),c=require("@dnd-kit/core"),s=require("./index92.cjs"),l=({id:e,children:r,...t})=>{const{setNodeRef:o}=c.useDroppable({id:e});return a.createElement(s.DroppableAreaStack,{...t,key:e,ref:o},r)};exports.DroppableArea=l;
|
package/dist/index110.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createElement as p } from "react";
|
|
2
2
|
import { useDroppable as a } from "@dnd-kit/core";
|
|
3
|
-
import { DroppableAreaStack as m } from "./
|
|
3
|
+
import { DroppableAreaStack as m } from "./index92.js";
|
|
4
4
|
const n = ({ id: e, children: r, ...o }) => {
|
|
5
5
|
const { setNodeRef: t } = a({ id: e });
|
|
6
6
|
return /* @__PURE__ */ p(m, { ...o, key: e, ref: t }, r);
|
package/dist/index113.cjs
CHANGED
|
@@ -1 +1,13 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@veeqo/components"),o=require("@veeqo/ui"),s=require("styled-components"),l=e=>e&&e.__esModule?e:{default:e},r=l(s),{SortableViews:i}=t.VeeqoUI,n=r.default(i)`
|
|
2
|
+
.rst__rowTitle {
|
|
3
|
+
span {
|
|
4
|
+
white-space: nowrap;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
text-overflow: ellipsis;
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.rst__rowTitle > div:first-child {
|
|
11
|
+
gap: ${o.theme.sizes.sm};
|
|
12
|
+
}
|
|
13
|
+
`;exports.StyledSortableViews=n;
|
package/dist/index113.js
CHANGED
|
@@ -1,4 +1,19 @@
|
|
|
1
|
-
|
|
1
|
+
import { VeeqoUI as e } from "@veeqo/components";
|
|
2
|
+
import { theme as o } from "@veeqo/ui";
|
|
3
|
+
import t from "styled-components";
|
|
4
|
+
const { SortableViews: r } = e, p = t(r)`
|
|
5
|
+
.rst__rowTitle {
|
|
6
|
+
span {
|
|
7
|
+
white-space: nowrap;
|
|
8
|
+
overflow: hidden;
|
|
9
|
+
text-overflow: ellipsis;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.rst__rowTitle > div:first-child {
|
|
14
|
+
gap: ${o.sizes.sm};
|
|
15
|
+
}
|
|
16
|
+
`;
|
|
2
17
|
export {
|
|
3
|
-
|
|
18
|
+
p as StyledSortableViews
|
|
4
19
|
};
|
package/dist/index114.cjs
CHANGED
|
@@ -1,13 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=
|
|
2
|
-
.rst__rowTitle {
|
|
3
|
-
span {
|
|
4
|
-
white-space: nowrap;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
text-overflow: ellipsis;
|
|
7
|
-
}
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
.rst__rowTitle > div:first-child {
|
|
11
|
-
gap: ${o.theme.sizes.sm};
|
|
12
|
-
}
|
|
13
|
-
`;exports.StyledSortableViews=n;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={initial:{opacity:0,y:50,scale:.95},animate:{opacity:1,y:0,scale:1,transition:{duration:.2,ease:"easeOut"}},exit:{opacity:0,y:20,scale:.95,transition:{duration:.2,ease:"easeIn"}}};exports.notificationVariants=t;
|
package/dist/index114.js
CHANGED
|
@@ -1,19 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
1
|
+
const a = {
|
|
2
|
+
initial: {
|
|
3
|
+
opacity: 0,
|
|
4
|
+
y: 50,
|
|
5
|
+
scale: 0.95
|
|
6
|
+
},
|
|
7
|
+
animate: {
|
|
8
|
+
opacity: 1,
|
|
9
|
+
y: 0,
|
|
10
|
+
scale: 1,
|
|
11
|
+
transition: {
|
|
12
|
+
duration: 0.2,
|
|
13
|
+
ease: "easeOut"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
exit: {
|
|
17
|
+
opacity: 0,
|
|
18
|
+
y: 20,
|
|
19
|
+
scale: 0.95,
|
|
20
|
+
transition: {
|
|
21
|
+
duration: 0.2,
|
|
22
|
+
ease: "easeIn"
|
|
10
23
|
}
|
|
11
24
|
}
|
|
12
|
-
|
|
13
|
-
.rst__rowTitle > div:first-child {
|
|
14
|
-
gap: ${o.sizes.sm};
|
|
15
|
-
}
|
|
16
|
-
`;
|
|
25
|
+
};
|
|
17
26
|
export {
|
|
18
|
-
|
|
27
|
+
a as notificationVariants
|
|
19
28
|
};
|
package/dist/index115.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("@veeqo/ui"),o=require("@material-ui/core/styles"),t=require("@material-ui/core/Slider"),l=e=>e&&e.__esModule?e:{default:e},i=l(t),a=o.withStyles({root:{color:r.theme.colors.secondary.blue.base,height:4},thumb:{height:20,width:20,backgroundColor:"#fff",border:"3px solid currentColor",marginTop:-8,marginLeft:-10,"&:focus, &:hover, &$active":{boxShadow:"inherit"}},valueLabel:{left:"calc(-50% - 1px)"},track:{height:4,borderRadius:4,backgroundColor:r.theme.colors.secondary.blue.light,opacity:1},rail:{height:4,borderRadius:4,backgroundColor:r.theme.colors.neutral.grey.dark,opacity:1}})(i.default);exports.MUISlider=a;
|
package/dist/index115.js
CHANGED
|
@@ -1,28 +1,38 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import { theme as o } from "@veeqo/ui";
|
|
2
|
+
import { withStyles as r } from "@material-ui/core/styles";
|
|
3
|
+
import e from "@material-ui/core/Slider";
|
|
4
|
+
const l = r({
|
|
5
|
+
root: {
|
|
6
|
+
color: o.colors.secondary.blue.base,
|
|
7
|
+
height: 4
|
|
6
8
|
},
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
9
|
+
thumb: {
|
|
10
|
+
height: 20,
|
|
11
|
+
width: 20,
|
|
12
|
+
backgroundColor: "#fff",
|
|
13
|
+
border: "3px solid currentColor",
|
|
14
|
+
marginTop: -8,
|
|
15
|
+
marginLeft: -10,
|
|
16
|
+
"&:focus, &:hover, &$active": {
|
|
17
|
+
boxShadow: "inherit"
|
|
14
18
|
}
|
|
15
19
|
},
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
20
|
+
valueLabel: {
|
|
21
|
+
left: "calc(-50% - 1px)"
|
|
22
|
+
},
|
|
23
|
+
track: {
|
|
24
|
+
height: 4,
|
|
25
|
+
borderRadius: 4,
|
|
26
|
+
backgroundColor: o.colors.secondary.blue.light,
|
|
27
|
+
opacity: 1
|
|
28
|
+
},
|
|
29
|
+
rail: {
|
|
30
|
+
height: 4,
|
|
31
|
+
borderRadius: 4,
|
|
32
|
+
backgroundColor: o.colors.neutral.grey.dark,
|
|
33
|
+
opacity: 1
|
|
24
34
|
}
|
|
25
|
-
};
|
|
35
|
+
})(e);
|
|
26
36
|
export {
|
|
27
|
-
|
|
37
|
+
l as MUISlider
|
|
28
38
|
};
|
package/dist/index116.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_fieldContainer_43n4j_1",t={fieldContainer:e};exports.default=t;exports.fieldContainer=e;
|
package/dist/index116.js
CHANGED
|
@@ -1,38 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const l = r({
|
|
5
|
-
root: {
|
|
6
|
-
color: o.colors.secondary.blue.base,
|
|
7
|
-
height: 4
|
|
8
|
-
},
|
|
9
|
-
thumb: {
|
|
10
|
-
height: 20,
|
|
11
|
-
width: 20,
|
|
12
|
-
backgroundColor: "#fff",
|
|
13
|
-
border: "3px solid currentColor",
|
|
14
|
-
marginTop: -8,
|
|
15
|
-
marginLeft: -10,
|
|
16
|
-
"&:focus, &:hover, &$active": {
|
|
17
|
-
boxShadow: "inherit"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
valueLabel: {
|
|
21
|
-
left: "calc(-50% - 1px)"
|
|
22
|
-
},
|
|
23
|
-
track: {
|
|
24
|
-
height: 4,
|
|
25
|
-
borderRadius: 4,
|
|
26
|
-
backgroundColor: o.colors.secondary.blue.light,
|
|
27
|
-
opacity: 1
|
|
28
|
-
},
|
|
29
|
-
rail: {
|
|
30
|
-
height: 4,
|
|
31
|
-
borderRadius: 4,
|
|
32
|
-
backgroundColor: o.colors.neutral.grey.dark,
|
|
33
|
-
opacity: 1
|
|
34
|
-
}
|
|
35
|
-
})(e);
|
|
1
|
+
const e = "_fieldContainer_43n4j_1", n = {
|
|
2
|
+
fieldContainer: e
|
|
3
|
+
};
|
|
36
4
|
export {
|
|
37
|
-
|
|
5
|
+
n as default,
|
|
6
|
+
e as fieldContainer
|
|
38
7
|
};
|
package/dist/index117.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),p=require("mobx-react"),l=require("@veeqo/ui"),v=require("./index115.cjs"),y=p.observer(({data:m,editedValue:t,setEditedValue:c})=>{var b;if(!((b=m.options)!=null&&b.length))return null;const[u,x]=m.options,i=Number(u.value),a=Number(x.value),h=(s,n)=>{if(!Array.isArray(n)||n.length!==2||!t)return;const[e,j]=n,g=t==null?void 0:t.clone();g.setGte(e),g.setLte(j),c(g)},o={gte:(t==null?void 0:t.gte)||0,lte:(t==null?void 0:t.lte)||100},M=s=>{if(!t)return;const n=t.clone(),e=Number(s);e>n.lteMax||(e>=n.gteMin&&e<=n.lteMax&&n.setGte(e),(!n.lte||e>=n.lte)&&n.setLte(n.lteMax),c(n))},f=s=>{if(!t)return;const n=t.clone(),e=Number(s);e<n.gteMin||(e>=n.gteMin&&e<=n.lteMax&&n.setLte(e),(!n.gte||e<=n.gte)&&n.setGte(n.gteMin),c(n))},S=[o.gte,o.lte];return r.jsxs(l.Stack,{spacing:"xs",alignX:"stretch",children:[r.jsxs(l.Stack,{direction:"horizontal",children:[r.jsx(l.TextField,{label:u.label,type:"number",min:i,max:a,value:o.gte.toString(),onChange:M}),r.jsx(l.TextField,{label:x.label,type:"number",min:i,max:a,value:o.lte.toString(),onChange:f})]}),r.jsx(v.MUISlider,{value:S,onChange:h,min:i,max:a,valueLabelDisplay:"auto"})]})});exports.FilterNumberRangeFilter=y;
|
package/dist/index117.js
CHANGED
|
@@ -1,7 +1,65 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
};
|
|
1
|
+
import { jsxs as b, jsx as a } from "react/jsx-runtime";
|
|
2
|
+
import { observer as N } from "mobx-react";
|
|
3
|
+
import { Stack as h, TextField as u } from "@veeqo/ui";
|
|
4
|
+
import { MUISlider as L } from "./index115.js";
|
|
5
|
+
const j = N(
|
|
6
|
+
({ data: g, editedValue: t, setEditedValue: l }) => {
|
|
7
|
+
var f;
|
|
8
|
+
if (!((f = g.options) != null && f.length)) return null;
|
|
9
|
+
const [i, x] = g.options, s = Number(i.value), c = Number(x.value), p = (e, n) => {
|
|
10
|
+
if (!Array.isArray(n) || n.length !== 2 || !t) return;
|
|
11
|
+
const [r, y] = n, m = t == null ? void 0 : t.clone();
|
|
12
|
+
m.setGte(r), m.setLte(y), l(m);
|
|
13
|
+
}, o = {
|
|
14
|
+
gte: (t == null ? void 0 : t.gte) || 0,
|
|
15
|
+
lte: (t == null ? void 0 : t.lte) || 100
|
|
16
|
+
}, M = (e) => {
|
|
17
|
+
if (!t) return;
|
|
18
|
+
const n = t.clone(), r = Number(e);
|
|
19
|
+
r > n.lteMax || (r >= n.gteMin && r <= n.lteMax && n.setGte(r), (!n.lte || r >= n.lte) && n.setLte(n.lteMax), l(n));
|
|
20
|
+
}, v = (e) => {
|
|
21
|
+
if (!t) return;
|
|
22
|
+
const n = t.clone(), r = Number(e);
|
|
23
|
+
r < n.gteMin || (r >= n.gteMin && r <= n.lteMax && n.setLte(r), (!n.gte || r <= n.gte) && n.setGte(n.gteMin), l(n));
|
|
24
|
+
}, C = [o.gte, o.lte];
|
|
25
|
+
return /* @__PURE__ */ b(h, { spacing: "xs", alignX: "stretch", children: [
|
|
26
|
+
/* @__PURE__ */ b(h, { direction: "horizontal", children: [
|
|
27
|
+
/* @__PURE__ */ a(
|
|
28
|
+
u,
|
|
29
|
+
{
|
|
30
|
+
label: i.label,
|
|
31
|
+
type: "number",
|
|
32
|
+
min: s,
|
|
33
|
+
max: c,
|
|
34
|
+
value: o.gte.toString(),
|
|
35
|
+
onChange: M
|
|
36
|
+
}
|
|
37
|
+
),
|
|
38
|
+
/* @__PURE__ */ a(
|
|
39
|
+
u,
|
|
40
|
+
{
|
|
41
|
+
label: x.label,
|
|
42
|
+
type: "number",
|
|
43
|
+
min: s,
|
|
44
|
+
max: c,
|
|
45
|
+
value: o.lte.toString(),
|
|
46
|
+
onChange: v
|
|
47
|
+
}
|
|
48
|
+
)
|
|
49
|
+
] }),
|
|
50
|
+
/* @__PURE__ */ a(
|
|
51
|
+
L,
|
|
52
|
+
{
|
|
53
|
+
value: C,
|
|
54
|
+
onChange: p,
|
|
55
|
+
min: s,
|
|
56
|
+
max: c,
|
|
57
|
+
valueLabelDisplay: "auto"
|
|
58
|
+
}
|
|
59
|
+
)
|
|
60
|
+
] });
|
|
61
|
+
}
|
|
62
|
+
);
|
|
4
63
|
export {
|
|
5
|
-
|
|
6
|
-
e as fieldContainer
|
|
64
|
+
j as FilterNumberRangeFilter
|
|
7
65
|
};
|
package/dist/index118.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 s=require("react/jsx-runtime"),p=require("react"),d=require("mobx-react"),t=require("@veeqo/ui"),m=require("swr/immutable"),x=require("./index75.cjs"),y=require("./index76.cjs"),F=require("./index49.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/index118.js
CHANGED
|
@@ -1,65 +1,49 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
r < n.gteMin || (r >= n.gteMin && r <= n.lteMax && n.setLte(r), (!n.gte || r <= n.gte) && n.setGte(n.gteMin), l(n));
|
|
24
|
-
}, C = [o.gte, o.lte];
|
|
25
|
-
return /* @__PURE__ */ b(h, { spacing: "xs", alignX: "stretch", children: [
|
|
26
|
-
/* @__PURE__ */ b(h, { direction: "horizontal", children: [
|
|
27
|
-
/* @__PURE__ */ a(
|
|
28
|
-
u,
|
|
29
|
-
{
|
|
30
|
-
label: i.label,
|
|
31
|
-
type: "number",
|
|
32
|
-
min: s,
|
|
33
|
-
max: c,
|
|
34
|
-
value: o.gte.toString(),
|
|
35
|
-
onChange: M
|
|
36
|
-
}
|
|
37
|
-
),
|
|
38
|
-
/* @__PURE__ */ a(
|
|
39
|
-
u,
|
|
40
|
-
{
|
|
41
|
-
label: x.label,
|
|
42
|
-
type: "number",
|
|
43
|
-
min: s,
|
|
44
|
-
max: c,
|
|
45
|
-
value: o.lte.toString(),
|
|
46
|
-
onChange: v
|
|
47
|
-
}
|
|
48
|
-
)
|
|
49
|
-
] }),
|
|
50
|
-
/* @__PURE__ */ a(
|
|
51
|
-
L,
|
|
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 "./index75.js";
|
|
7
|
+
import { getFetcherFunction as L } from "./index76.js";
|
|
8
|
+
import { SWR_HOOK_OPTIONS as k } from "./index49.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,
|
|
52
23
|
{
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
24
|
+
allowMultiple: !0,
|
|
25
|
+
title: t.label,
|
|
26
|
+
options: g,
|
|
27
|
+
selected: c,
|
|
28
|
+
onChange: (e) => a(e)
|
|
58
29
|
}
|
|
59
|
-
)
|
|
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
|
+
] })
|
|
60
44
|
] });
|
|
61
45
|
}
|
|
62
46
|
);
|
|
63
47
|
export {
|
|
64
|
-
|
|
48
|
+
T as ActiveAsyncCheckboxFilter
|
|
65
49
|
};
|
package/dist/index13.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),_=require("mobx-react"),f=require("@veeqo/ui"),b=require("lodash/debounce"),o=require("react"),q=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),_=require("mobx-react"),f=require("@veeqo/ui"),b=require("lodash/debounce"),o=require("react"),q=require("./index87.cjs"),x=require("./index8.cjs"),g=require("./index61.cjs"),h=e=>e&&e.__esModule?e:{default:e},E=h(b),F=_.observer(({onChange:e,capture:R,...c})=>{const{SEARCH_FILTER_ID:s,FILTERS_DEBOUNCE_INTERVAL_MS:i}=x.useBusinessLogic(),{Filters:{setFilter:r,filters:n}}=g.useStores(),[a,l]=o.useState(n.get(s)||""),d=o.useCallback(E.default(t=>{r(s,t)},i),[r,s]),S=t=>{l(t),q.isTextFilterValid(t)&&d(t),e&&e(t)};return u.jsx("div",{style:{flexGrow:1},children:u.jsx(f.Search,{value:a,onChange:S,...c})})});exports.SearchBar=F;
|
package/dist/index13.js
CHANGED
|
@@ -3,7 +3,7 @@ import { observer as f } from "mobx-react";
|
|
|
3
3
|
import { Search as u } from "@veeqo/ui";
|
|
4
4
|
import p from "lodash/debounce";
|
|
5
5
|
import { useState as S, useCallback as d } from "react";
|
|
6
|
-
import { isTextFilterValid as h } from "./
|
|
6
|
+
import { isTextFilterValid as h } from "./index87.js";
|
|
7
7
|
import { useBusinessLogic as E } from "./index8.js";
|
|
8
8
|
import { useStores as C } from "./index61.js";
|
|
9
9
|
const v = f(({ onChange: o, capture: F, ...s }) => {
|
package/dist/index17.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("./index49.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("./index49.cjs"),u=require("./index118.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/index17.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 "./index49.js";
|
|
5
|
-
import { ActiveAsyncCheckboxFilter as c } from "./
|
|
5
|
+
import { ActiveAsyncCheckboxFilter as c } from "./index118.js";
|
|
6
6
|
const F = n(
|
|
7
7
|
({ data: r, editedValue: e, setEditedValue: o }) => {
|
|
8
8
|
var i;
|
package/dist/index19.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),s=require("react"),v=require("mobx-react"),x=require("@veeqo/ui"),T=require("./index87.cjs"),l=require("./index49.cjs"),V=require("./index116.cjs"),g=require("./index61.cjs"),j=require("./index59.cjs"),R=require("./index24.cjs"),y=require("./index18.cjs"),C=require("./index25.cjs"),f=v.observer(({filterData:e})=>{const{Filters:{filters:o,clearFilter:F,setFilter:a}}=g.useStores(),r=o.get(e.id),{filterLabel:q}=j.useFilterLabel({filterData:e}),[i,c]=s.useState(r||""),[n,b]=s.useState("");s.useEffect(()=>{i!==r&&c(r||"")},[e.id,r,o]);const A=()=>{F(e.id)},E=()=>{n||a(e.id,i)},S=u=>{let d="";(e.filterType===l.FilterChoiceValue.TEXT||e.filterType===l.FilterChoiceValue.NUMBER)&&(d=T.isTextFilterValid(String(u))?"":l.MIN_SEARCH_ERROR_MESSAGE),c(u),b(d)};return t.jsx(x.FilterTag,{shouldCloseOnClickAway:!0,header:t.jsx(C.ActiveFilterHeader,{filterLabel:e.label,icon:e.icon}),label:e.label,text:q||"Loading...",content:t.jsx("div",{className:V.default.fieldContainer,children:t.jsx(y.FilterField,{data:e,editedValue:i,setEditedValue:S,error:n})}),footer:t.jsx(R.ActiveFilterFooter,{clearActiveFilter:A,applyActiveFilter:E})})});exports.ActiveFilterTag=f;
|
package/dist/index19.js
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { jsx as r } from "react/jsx-runtime";
|
|
2
|
-
import { useState as
|
|
3
|
-
import { observer as
|
|
4
|
-
import { FilterTag as
|
|
5
|
-
import { isTextFilterValid as
|
|
6
|
-
import { FilterChoiceValue as
|
|
7
|
-
import
|
|
8
|
-
import { useStores as
|
|
9
|
-
import { useFilterLabel as
|
|
10
|
-
import { ActiveFilterFooter as
|
|
11
|
-
import { FilterField as
|
|
2
|
+
import { useState as n, useEffect as b } from "react";
|
|
3
|
+
import { observer as S } from "mobx-react";
|
|
4
|
+
import { FilterTag as T } from "@veeqo/ui";
|
|
5
|
+
import { isTextFilterValid as V } from "./index87.js";
|
|
6
|
+
import { FilterChoiceValue as d, MIN_SEARCH_ERROR_MESSAGE as v } from "./index49.js";
|
|
7
|
+
import g from "./index116.js";
|
|
8
|
+
import { useStores as y } from "./index61.js";
|
|
9
|
+
import { useFilterLabel as C } from "./index59.js";
|
|
10
|
+
import { ActiveFilterFooter as R } from "./index24.js";
|
|
11
|
+
import { FilterField as h } from "./index18.js";
|
|
12
12
|
import { ActiveFilterHeader as x } from "./index25.js";
|
|
13
|
-
const U =
|
|
13
|
+
const U = S(({ filterData: e }) => {
|
|
14
14
|
const {
|
|
15
15
|
Filters: { filters: i, clearFilter: p, setFilter: f }
|
|
16
|
-
} =
|
|
16
|
+
} = y(), t = i.get(e.id), { filterLabel: u } = C({ filterData: e }), [o, l] = n(t || ""), [s, F] = n("");
|
|
17
17
|
b(() => {
|
|
18
18
|
o !== t && l(t || "");
|
|
19
19
|
}, [e.id, t, i]);
|
|
@@ -23,17 +23,17 @@ const U = g(({ filterData: e }) => {
|
|
|
23
23
|
s || f(e.id, o);
|
|
24
24
|
}, a = (m) => {
|
|
25
25
|
let c = "";
|
|
26
|
-
(e.filterType ===
|
|
26
|
+
(e.filterType === d.TEXT || e.filterType === d.NUMBER) && (c = V(String(m)) ? "" : v), l(m), F(c);
|
|
27
27
|
};
|
|
28
28
|
return /* @__PURE__ */ r(
|
|
29
|
-
|
|
29
|
+
T,
|
|
30
30
|
{
|
|
31
31
|
shouldCloseOnClickAway: !0,
|
|
32
|
-
header: /* @__PURE__ */ r(x, { filterLabel: e.label,
|
|
32
|
+
header: /* @__PURE__ */ r(x, { filterLabel: e.label, icon: e.icon }),
|
|
33
33
|
label: e.label,
|
|
34
34
|
text: u || "Loading...",
|
|
35
|
-
content: /* @__PURE__ */ r("div", { className:
|
|
36
|
-
|
|
35
|
+
content: /* @__PURE__ */ r("div", { className: g.fieldContainer, children: /* @__PURE__ */ r(
|
|
36
|
+
h,
|
|
37
37
|
{
|
|
38
38
|
data: e,
|
|
39
39
|
editedValue: o,
|
|
@@ -41,7 +41,7 @@ const U = g(({ filterData: e }) => {
|
|
|
41
41
|
error: s
|
|
42
42
|
}
|
|
43
43
|
) }),
|
|
44
|
-
footer: /* @__PURE__ */ r(
|
|
44
|
+
footer: /* @__PURE__ */ r(R, { clearActiveFilter: E, applyActiveFilter: A })
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
47
|
});
|
package/dist/index20.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),c=require("react"),A=require("mobx-react"),y=require("@veeqo/ui"),b=require("./index58.cjs"),v=require("./index17.cjs"),q=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),c=require("react"),A=require("mobx-react"),y=require("@veeqo/ui"),b=require("./index58.cjs"),v=require("./index17.cjs"),q=require("./index116.cjs"),x=require("./index61.cjs"),j=require("./index24.cjs"),g=require("./index25.cjs"),V=A.observer(({filterData:e})=>{const{Filters:{arrayFilters:s,clearArrayFilter:o,setArrayFilter:u}}=x.useStores(),t=s.get(e.id),[i,l]=c.useState(t||[]);c.useEffect(()=>{i!==t&&l(t||[])},[e.id,t,s]);const n=()=>{o(e.id)},a=()=>{u(e.id,i)},{filterLabel:d}=b.useFilterArrayLabel({filterData:e});return r.jsx(y.FilterTag,{shouldCloseOnClickAway:!0,header:r.jsx(g.ActiveFilterHeader,{filterLabel:e.label,icon:e.icon}),label:e.label,text:d||"",content:r.jsx("div",{className:q.default.fieldContainer,children:r.jsx(v.FilterArrayField,{data:e,editedValue:i||[],setEditedValue:F=>l(F)})}),footer:r.jsx(j.ActiveFilterFooter,{clearActiveFilter:n,applyActiveFilter:a})})});exports.ActiveFilterArrayTag=V;
|