@veeqo/transfigure 0.0.4 → 0.0.6
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/types.d.ts +2 -0
- package/dist/components/TableManagement/DndContainer.d.ts +11 -0
- package/dist/components/TableManagement/TableManagement.d.ts +6 -0
- package/dist/components/TableManagement/TableManagementGlyph.d.ts +4 -0
- package/dist/components/TableManagement/TableManagementModal.d.ts +2 -0
- package/dist/components/TableManagement/components/ColumnGroup.d.ts +2 -0
- package/dist/components/TableManagement/components/ColumnItem.d.ts +2 -0
- package/dist/components/TableManagement/components/DroppableArea.d.ts +8 -0
- package/dist/components/TableManagement/components/SortableItem.d.ts +7 -0
- package/dist/components/TableManagement/components/styled.d.ts +28 -0
- package/dist/components/TableManagement/components/types.d.ts +11 -0
- package/dist/components/TableManagement/hooks/useCollisionDetectionStrategy/index.d.ts +1 -0
- package/dist/components/TableManagement/hooks/useCollisionDetectionStrategy/types.d.ts +4 -0
- package/dist/components/TableManagement/hooks/useCollisionDetectionStrategy/useCollisionDetectionStrategy.d.ts +5 -0
- package/dist/components/TableManagement/hooks/useDragHandlers/index.d.ts +1 -0
- package/dist/components/TableManagement/hooks/useDragHandlers/types.d.ts +6 -0
- package/dist/components/TableManagement/hooks/useDragHandlers/useDragHandlers.d.ts +9 -0
- package/dist/components/TableManagement/index.d.ts +1 -0
- package/dist/components/TableManagement/types.d.ts +17 -0
- package/dist/components/TableManagement/utils/filterColumnsBySearch/filterColumnsBySearch.d.ts +2 -0
- package/dist/components/TableManagement/utils/filterColumnsBySearch/index.d.ts +1 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useHiddenColumns/index.d.ts +1 -0
- package/dist/hooks/useHiddenColumns/useHiddenColumns.d.ts +7 -0
- package/dist/hooks/usePersistColumns/index.d.ts +1 -0
- package/dist/hooks/usePersistColumns/usePersistColumns.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +79 -75
- package/dist/index100.cjs +13 -0
- package/dist/index100.js +19 -0
- package/dist/index101.cjs +1 -0
- package/dist/index101.js +38 -0
- package/dist/index102.cjs +1 -0
- package/dist/index102.js +44 -0
- package/dist/index103.cjs +7 -0
- package/dist/index103.js +12 -0
- package/dist/index11.cjs +1 -1
- package/dist/index11.js +1 -1
- package/dist/index12.cjs +1 -1
- package/dist/index12.js +1 -1
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +1 -1
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +2 -2
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +2 -2
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +1 -1
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +1 -1
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +2 -2
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +2 -2
- package/dist/index2.cjs +1 -1
- package/dist/index2.js +2 -2
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +3 -3
- package/dist/index21.cjs +1 -1
- package/dist/index21.js +2 -2
- package/dist/index22.cjs +1 -1
- package/dist/index22.js +2 -2
- package/dist/index23.cjs +1 -1
- package/dist/index23.js +3 -3
- package/dist/index24.cjs +1 -1
- package/dist/index24.js +3 -3
- package/dist/index25.cjs +1 -1
- package/dist/index25.js +1 -1
- package/dist/index26.cjs +1 -1
- package/dist/index26.js +2 -2
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +2 -2
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +3 -3
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +1 -1
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +2 -2
- 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/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +5 -5
- package/dist/index34.cjs +1 -1
- package/dist/index34.js +1 -1
- package/dist/index35.cjs +1 -1
- package/dist/index35.js +1 -1
- package/dist/index36.cjs +1 -1
- package/dist/index36.js +3 -3
- package/dist/index37.cjs +1 -1
- package/dist/index37.js +3 -3
- package/dist/index38.cjs +1 -1
- package/dist/index38.js +4 -4
- package/dist/index39.cjs +1 -1
- package/dist/index39.js +1 -1
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +2 -2
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +4 -4
- package/dist/index43.cjs +1 -1
- package/dist/index43.js +46 -19
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +19 -2
- package/dist/index45.cjs +1 -1
- package/dist/index45.js +2 -23
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +23 -2
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +2 -4
- package/dist/index48.cjs +1 -1
- package/dist/index48.js +4 -11
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +10 -12
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +12 -11
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +11 -184
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +183 -25
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +26 -24
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +19 -22
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +25 -90
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +92 -8
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +8 -50
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +49 -60
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +61 -17
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +4 -4
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +18 -316
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +25 -59
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +309 -50
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +54 -31
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +52 -27
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +37 -4
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +32 -9
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +4 -17
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +9 -19
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +16 -46
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +19 -17
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +48 -2
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +21 -9
- package/dist/index73.cjs +1 -3
- package/dist/index73.js +2 -14
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +8 -8
- package/dist/index75.cjs +3 -1
- package/dist/index75.js +13 -28
- package/dist/index76.cjs +1 -19
- package/dist/index76.js +9 -24
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +154 -14
- package/dist/index78.cjs +1 -12
- package/dist/index78.js +19 -16
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +13 -22
- package/dist/index81.cjs +104 -1
- package/dist/index81.js +119 -23
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +58 -2
- package/dist/index83.cjs +1 -13
- package/dist/index83.js +28 -16
- package/dist/index84.cjs +1 -80
- package/dist/index84.js +2 -95
- package/dist/index85.cjs +1 -1
- package/dist/index85.js +33 -35
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +8 -63
- package/dist/index87.cjs +1 -7
- package/dist/index87.js +29 -10
- package/dist/index88.cjs +1 -0
- package/dist/index88.js +24 -0
- package/dist/index89.cjs +19 -0
- package/dist/index89.js +26 -0
- package/dist/index9.cjs +1 -1
- package/dist/index9.js +17 -15
- package/dist/index90.cjs +12 -0
- package/dist/index90.js +18 -0
- package/dist/index91.cjs +1 -0
- package/dist/index91.js +17 -0
- package/dist/index92.cjs +1 -0
- package/dist/index92.js +26 -0
- package/dist/index93.cjs +1 -0
- package/dist/index93.js +4 -0
- package/dist/index94.cjs +1 -0
- package/dist/index94.js +21 -0
- package/dist/index95.cjs +1 -0
- package/dist/index95.js +10 -0
- package/dist/index96.cjs +1 -0
- package/dist/index96.js +66 -0
- package/dist/index97.cjs +1 -0
- package/dist/index97.js +32 -0
- package/dist/index98.cjs +1 -0
- package/dist/index98.js +65 -0
- package/dist/index99.cjs +80 -0
- package/dist/index99.js +97 -0
- package/dist/types.d.ts +8 -0
- package/package.json +11 -2
package/dist/index66.js
CHANGED
|
@@ -1,11 +1,34 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var r = (o, t, s) => t in o ? m(o, t, { enumerable: !0, configurable: !0, writable: !0, value: s }) : o[t] = s;
|
|
3
|
+
var e = (o, t, s) => r(o, typeof t != "symbol" ? t + "" : t, s);
|
|
4
|
+
import { makeObservable as h, action as i, observable as n } from "mobx";
|
|
5
|
+
import { uid as c } from "uid/secure";
|
|
6
|
+
class y {
|
|
7
|
+
constructor() {
|
|
8
|
+
e(this, "toasts");
|
|
9
|
+
e(this, "timeouts");
|
|
10
|
+
e(this, "notify", (t) => {
|
|
11
|
+
const s = {
|
|
12
|
+
...t,
|
|
13
|
+
key: c()
|
|
14
|
+
};
|
|
15
|
+
this.toasts = [...this.toasts, s];
|
|
16
|
+
});
|
|
17
|
+
e(this, "setToasts", (t) => {
|
|
18
|
+
this.toasts = t;
|
|
19
|
+
});
|
|
20
|
+
e(this, "removeByKey", (t) => {
|
|
21
|
+
const s = this.timeouts.get(t);
|
|
22
|
+
s && (clearTimeout(s), this.timeouts.delete(t)), this.toasts = this.toasts.filter((a) => a.key !== t);
|
|
23
|
+
});
|
|
24
|
+
h(this, {
|
|
25
|
+
toasts: n,
|
|
26
|
+
notify: i,
|
|
27
|
+
setToasts: i,
|
|
28
|
+
removeByKey: i
|
|
29
|
+
}), this.toasts = [], this.timeouts = /* @__PURE__ */ new Map();
|
|
30
|
+
}
|
|
31
|
+
}
|
|
9
32
|
export {
|
|
10
|
-
|
|
33
|
+
y as Notifications
|
|
11
34
|
};
|
package/dist/index67.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 o=require("react/jsx-runtime"),s=require("mobx-react"),n=({children:e,Filters:i,Views:r,Notifications:t})=>o.jsx(s.Provider,{Filters:i,Views:r,Notifications:t,children:e});exports.MobXProvider=n;
|
package/dist/index67.js
CHANGED
|
@@ -1,19 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
switch (r) {
|
|
5
|
-
case "fetcherV1":
|
|
6
|
-
e = t;
|
|
7
|
-
break;
|
|
8
|
-
case "fetcherV2":
|
|
9
|
-
e = c;
|
|
10
|
-
break;
|
|
11
|
-
default:
|
|
12
|
-
e = t;
|
|
13
|
-
break;
|
|
14
|
-
}
|
|
15
|
-
return e;
|
|
16
|
-
};
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { Provider as s } from "mobx-react";
|
|
3
|
+
const n = ({ children: i, Filters: o, Views: r, Notifications: t }) => /* @__PURE__ */ e(s, { Filters: o, Views: r, Notifications: t, children: i });
|
|
17
4
|
export {
|
|
18
|
-
|
|
5
|
+
n as MobXProvider
|
|
19
6
|
};
|
package/dist/index68.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 o=require("lodash/get"),s=t=>t&&t.__esModule?t:{default:t},l=s(o),a=({data:t,config:e})=>!e||!t?[]:t.map(r=>{const u=l.default(r,e.labelProperty),n=l.default(r,e.valueProperty);return{label:u,value:n.toString()}});exports.getAsyncOptions=a;
|
package/dist/index68.js
CHANGED
|
@@ -1,21 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
case e.LAST_MONTH:
|
|
10
|
-
case e.LAST_12_MONTHS:
|
|
11
|
-
case e.WEEK_TO_DATE:
|
|
12
|
-
case e.MONTH_TO_DATE:
|
|
13
|
-
case e.YEAR_TO_DATE:
|
|
14
|
-
return !0;
|
|
15
|
-
default:
|
|
16
|
-
return !1;
|
|
17
|
-
}
|
|
18
|
-
};
|
|
1
|
+
import o from "lodash/get";
|
|
2
|
+
const u = ({ data: t, config: r }) => !r || !t ? [] : t.map((e) => {
|
|
3
|
+
const l = o(e, r.labelProperty), n = o(e, r.valueProperty);
|
|
4
|
+
return {
|
|
5
|
+
label: l,
|
|
6
|
+
value: n.toString()
|
|
7
|
+
};
|
|
8
|
+
});
|
|
19
9
|
export {
|
|
20
|
-
|
|
10
|
+
u as getAsyncOptions
|
|
21
11
|
};
|
package/dist/index69.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 t=require("./index51.cjs"),c=({fetcherName:r})=>{let e;switch(r){case"fetcherV1":e=t.fetcherV1;break;case"fetcherV2":e=t.fetcherV2;break;default:e=t.fetcherV1;break}return e};exports.getFetcherFunction=c;
|
package/dist/index69.js
CHANGED
|
@@ -1,49 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
([e, t]) => !Array.isArray(t) && !s.includes(e) && !n.includes(e)
|
|
17
|
-
).map(([e, t]) => [e, t])
|
|
18
|
-
),
|
|
19
|
-
arrayFilters: new Map(
|
|
20
|
-
Object.entries(r.filters.filter || {}).filter(([, e]) => Array.isArray(e)).map(([e, t]) => [e, t])
|
|
21
|
-
),
|
|
22
|
-
rangeFilters: new Map(
|
|
23
|
-
Object.entries(r.filters.filter || {}).filter(([e]) => s.includes(e)).map(([e, t]) => {
|
|
24
|
-
let i;
|
|
25
|
-
if (typeof t == "string")
|
|
26
|
-
i = new a(t);
|
|
27
|
-
else {
|
|
28
|
-
i = new a("CUSTOM");
|
|
29
|
-
const o = l(t.gte), p = l(t.lte);
|
|
30
|
-
i.setDates(o, p);
|
|
31
|
-
}
|
|
32
|
-
return [e, i];
|
|
33
|
-
})
|
|
34
|
-
),
|
|
35
|
-
numberRangeFilters: new Map(
|
|
36
|
-
Object.entries(r.filters.filter || {}).filter(([e]) => n.includes(e)).map(([e, t]) => {
|
|
37
|
-
const i = new m({ filterId: e });
|
|
38
|
-
return t.lte !== void 0 && i.setLte(Number(t.lte)), t.gte !== void 0 && i.setGte(Number(t.gte)), [e, i];
|
|
39
|
-
})
|
|
40
|
-
)
|
|
41
|
-
},
|
|
42
|
-
page: r.filters.page,
|
|
43
|
-
editable: r.editable && f,
|
|
44
|
-
isShared: r.shared
|
|
45
|
-
};
|
|
1
|
+
import { fetcherV1 as t, fetcherV2 as c } from "./index51.js";
|
|
2
|
+
const h = ({ fetcherName: r }) => {
|
|
3
|
+
let e;
|
|
4
|
+
switch (r) {
|
|
5
|
+
case "fetcherV1":
|
|
6
|
+
e = t;
|
|
7
|
+
break;
|
|
8
|
+
case "fetcherV2":
|
|
9
|
+
e = c;
|
|
10
|
+
break;
|
|
11
|
+
default:
|
|
12
|
+
e = t;
|
|
13
|
+
break;
|
|
14
|
+
}
|
|
15
|
+
return e;
|
|
46
16
|
};
|
|
47
17
|
export {
|
|
48
|
-
|
|
18
|
+
h as getFetcherFunction
|
|
49
19
|
};
|
package/dist/index70.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e="
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@veeqo/ui"),s=a=>{switch(a){case e.DateRanges.TODAY:case e.DateRanges.YESTERDAY:case e.DateRanges.LAST_7_DAYS:case e.DateRanges.LAST_30_DAYS:case e.DateRanges.LAST_90_DAYS:case e.DateRanges.LAST_MONTH:case e.DateRanges.LAST_12_MONTHS:case e.DateRanges.WEEK_TO_DATE:case e.DateRanges.MONTH_TO_DATE:case e.DateRanges.YEAR_TO_DATE:return!0;default:return!1}};exports.isValidDateRange=s;
|
package/dist/index70.js
CHANGED
|
@@ -1,19 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
1
|
+
import { DateRanges as e } from "@veeqo/ui";
|
|
2
|
+
const s = (a) => {
|
|
3
|
+
switch (a) {
|
|
4
|
+
case e.TODAY:
|
|
5
|
+
case e.YESTERDAY:
|
|
6
|
+
case e.LAST_7_DAYS:
|
|
7
|
+
case e.LAST_30_DAYS:
|
|
8
|
+
case e.LAST_90_DAYS:
|
|
9
|
+
case e.LAST_MONTH:
|
|
10
|
+
case e.LAST_12_MONTHS:
|
|
11
|
+
case e.WEEK_TO_DATE:
|
|
12
|
+
case e.MONTH_TO_DATE:
|
|
13
|
+
case e.YEAR_TO_DATE:
|
|
14
|
+
return !0;
|
|
15
|
+
default:
|
|
16
|
+
return !1;
|
|
17
|
+
}
|
|
18
|
+
};
|
|
16
19
|
export {
|
|
17
|
-
|
|
18
|
-
a as createAllView
|
|
20
|
+
s as isValidDateRange
|
|
19
21
|
};
|
package/dist/index71.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 a=require("@internationalized/date"),l=require("./index64.cjs"),g=require("./index63.cjs"),d=require("./index8.cjs"),u=({view:r,canUpdateCustomViews:c})=>{const{DATE_RANGE_FILTERS:i,NUMBER_RANGE_FILTERS:n}=d.BusinessLogicManager.getBusinessLogic();return{id:r.id,label:r.title,filterMaps:{filters:new Map(Object.entries(r.filters.filter||{}).filter(([e,t])=>!Array.isArray(t)&&!i.includes(e)&&!n.includes(e)).map(([e,t])=>[e,t])),arrayFilters:new Map(Object.entries(r.filters.filter||{}).filter(([,e])=>Array.isArray(e)).map(([e,t])=>[e,t])),rangeFilters:new Map(Object.entries(r.filters.filter||{}).filter(([e])=>i.includes(e)).map(([e,t])=>{let s;if(typeof t=="string")s=new l.RangeFilter(t);else{s=new l.RangeFilter("CUSTOM");const f=a.parseDate(t.gte),o=a.parseDate(t.lte);s.setDates(f,o)}return[e,s]})),numberRangeFilters:new Map(Object.entries(r.filters.filter||{}).filter(([e])=>n.includes(e)).map(([e,t])=>{const s=new g.NumberRangeFilter({filterId:e});return t.lte!==void 0&&s.setLte(Number(t.lte)),t.gte!==void 0&&s.setGte(Number(t.gte)),[e,s]}))},page:r.filters.page,editable:r.editable&&c,isShared:r.shared,columns:r.columns}};exports.viewsAdapter=u;
|
package/dist/index71.js
CHANGED
|
@@ -1,4 +1,50 @@
|
|
|
1
|
-
|
|
1
|
+
import { parseDate as l } from "@internationalized/date";
|
|
2
|
+
import { RangeFilter as a } from "./index64.js";
|
|
3
|
+
import { NumberRangeFilter as p } from "./index63.js";
|
|
4
|
+
import { BusinessLogicManager as c } from "./index8.js";
|
|
5
|
+
const M = ({
|
|
6
|
+
view: r,
|
|
7
|
+
canUpdateCustomViews: f
|
|
8
|
+
}) => {
|
|
9
|
+
const { DATE_RANGE_FILTERS: i, NUMBER_RANGE_FILTERS: n } = c.getBusinessLogic();
|
|
10
|
+
return {
|
|
11
|
+
id: r.id,
|
|
12
|
+
label: r.title,
|
|
13
|
+
filterMaps: {
|
|
14
|
+
filters: new Map(
|
|
15
|
+
Object.entries(r.filters.filter || {}).filter(
|
|
16
|
+
([e, t]) => !Array.isArray(t) && !i.includes(e) && !n.includes(e)
|
|
17
|
+
).map(([e, t]) => [e, t])
|
|
18
|
+
),
|
|
19
|
+
arrayFilters: new Map(
|
|
20
|
+
Object.entries(r.filters.filter || {}).filter(([, e]) => Array.isArray(e)).map(([e, t]) => [e, t])
|
|
21
|
+
),
|
|
22
|
+
rangeFilters: new Map(
|
|
23
|
+
Object.entries(r.filters.filter || {}).filter(([e]) => i.includes(e)).map(([e, t]) => {
|
|
24
|
+
let s;
|
|
25
|
+
if (typeof t == "string")
|
|
26
|
+
s = new a(t);
|
|
27
|
+
else {
|
|
28
|
+
s = new a("CUSTOM");
|
|
29
|
+
const o = l(t.gte), m = l(t.lte);
|
|
30
|
+
s.setDates(o, m);
|
|
31
|
+
}
|
|
32
|
+
return [e, s];
|
|
33
|
+
})
|
|
34
|
+
),
|
|
35
|
+
numberRangeFilters: new Map(
|
|
36
|
+
Object.entries(r.filters.filter || {}).filter(([e]) => n.includes(e)).map(([e, t]) => {
|
|
37
|
+
const s = new p({ filterId: e });
|
|
38
|
+
return t.lte !== void 0 && s.setLte(Number(t.lte)), t.gte !== void 0 && s.setGte(Number(t.gte)), [e, s];
|
|
39
|
+
})
|
|
40
|
+
)
|
|
41
|
+
},
|
|
42
|
+
page: r.filters.page,
|
|
43
|
+
editable: r.editable && f,
|
|
44
|
+
isShared: r.shared,
|
|
45
|
+
columns: r.columns
|
|
46
|
+
};
|
|
47
|
+
};
|
|
2
48
|
export {
|
|
3
|
-
|
|
49
|
+
M as viewsAdapter
|
|
4
50
|
};
|
package/dist/index72.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 e="all",l=()=>({id:e,label:"All",filterMaps:{filters:new Map,arrayFilters:new Map,rangeFilters:new Map,numberRangeFilters:new Map},page:{size:10},editable:!1,isShared:!1,columns:{columnIds:[],columnWidths:{}}});exports.ALL_VIEW_ID=e;exports.createAllView=l;
|
package/dist/index72.js
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
const e = "all", l = () => ({
|
|
2
|
+
id: e,
|
|
3
|
+
label: "All",
|
|
4
|
+
filterMaps: {
|
|
5
|
+
filters: /* @__PURE__ */ new Map(),
|
|
6
|
+
arrayFilters: /* @__PURE__ */ new Map(),
|
|
7
|
+
rangeFilters: /* @__PURE__ */ new Map(),
|
|
8
|
+
numberRangeFilters: /* @__PURE__ */ new Map()
|
|
9
|
+
},
|
|
10
|
+
page: {
|
|
11
|
+
size: 10
|
|
12
|
+
},
|
|
13
|
+
editable: !1,
|
|
14
|
+
isShared: !1,
|
|
15
|
+
columns: {
|
|
16
|
+
columnIds: [],
|
|
17
|
+
columnWidths: {}
|
|
18
|
+
}
|
|
19
|
+
});
|
|
8
20
|
export {
|
|
9
|
-
|
|
10
|
-
|
|
21
|
+
e as ALL_VIEW_ID,
|
|
22
|
+
l as createAllView
|
|
11
23
|
};
|
package/dist/index73.cjs
CHANGED
|
@@ -1,3 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
2
|
-
`);if(t.length<=10)return e;const n=t==null?void 0:t[0],i=t==null?void 0:t.splice(9),r=[n,...i].join(`
|
|
3
|
-
`);e.stack=r}return e};exports.filterErrorStack=s;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var P=(t=>(t.GET="AxiosGet",t.DELETE="AxiosDelete",t.POST="AxiosPost",t.PATCH="AxiosPatch",t.PUT="AxiosPut",t.POST_FORM="AxioPostForm",t.PUT_FORM="AxiosPutForm",t.PATCH_FORM="AxiosPatchForm",t))(P||{});exports.AxiosErrorType=P;
|
package/dist/index73.js
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
const s = (e) => {
|
|
3
|
-
if (!l(e)) return e;
|
|
4
|
-
if (e.stack) {
|
|
5
|
-
const n = e.stack.split(`
|
|
6
|
-
`);
|
|
7
|
-
if (n.length <= 10) return e;
|
|
8
|
-
const i = n == null ? void 0 : n[0], t = n == null ? void 0 : n.splice(9), f = [i, ...t].join(`
|
|
9
|
-
`);
|
|
10
|
-
e.stack = f;
|
|
11
|
-
}
|
|
12
|
-
return e;
|
|
13
|
-
};
|
|
1
|
+
var t = /* @__PURE__ */ ((P) => (P.GET = "AxiosGet", P.DELETE = "AxiosDelete", P.POST = "AxiosPost", P.PATCH = "AxiosPatch", P.PUT = "AxiosPut", P.POST_FORM = "AxioPostForm", P.PUT_FORM = "AxiosPutForm", P.PATCH_FORM = "AxiosPatchForm", P))(t || {});
|
|
14
2
|
export {
|
|
15
|
-
|
|
3
|
+
t as AxiosErrorType
|
|
16
4
|
};
|
package/dist/index74.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=(r,t)=>{const e=[r];return t!==void 0&&e.push(t),e},l=(r,t,e)=>{const i=[r];return t!==void 0&&i.push(t),e!==void 0&&i.push(e),i};exports.filterOptionalArgs=l;exports.filterOptionalArgsGetDelete=s;
|
package/dist/index74.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
!c(t) || !c(e) || (t.stack && (t.stack = e.stack), t.name && (t.name = `${f} (${t.name})`));
|
|
1
|
+
const i = (s, t) => {
|
|
2
|
+
const r = [s];
|
|
3
|
+
return t !== void 0 && r.push(t), r;
|
|
4
|
+
}, o = (s, t, r) => {
|
|
5
|
+
const e = [s];
|
|
6
|
+
return t !== void 0 && e.push(t), r !== void 0 && e.push(r), e;
|
|
8
7
|
};
|
|
9
8
|
export {
|
|
10
|
-
|
|
9
|
+
o as filterOptionalArgs,
|
|
10
|
+
i as filterOptionalArgsGetDelete
|
|
11
11
|
};
|
package/dist/index75.cjs
CHANGED
|
@@ -1 +1,3 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index93.cjs"),s=e=>{if(!l.isError(e))return e;if(e.stack){const t=e.stack.split(`
|
|
2
|
+
`);if(t.length<=10)return e;const n=t==null?void 0:t[0],i=t==null?void 0:t.splice(9),r=[n,...i].join(`
|
|
3
|
+
`);e.stack=r}return e};exports.filterErrorStack=s;
|
package/dist/index75.js
CHANGED
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
rightActions: [
|
|
12
|
-
{
|
|
13
|
-
className: "act-react-listing-custom-confirmation-popup-cancel",
|
|
14
|
-
label: "Cancel",
|
|
15
|
-
onClick: t,
|
|
16
|
-
variant: "default"
|
|
17
|
-
},
|
|
18
|
-
{
|
|
19
|
-
className: "act-react-listing-custom-confirmation-popup-delete",
|
|
20
|
-
label: "Delete",
|
|
21
|
-
onClick: o,
|
|
22
|
-
variant: "primaryDestructive"
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
showHeaderCloseButton: !0,
|
|
26
|
-
children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." })
|
|
1
|
+
import { isError as l } from "./index93.js";
|
|
2
|
+
const s = (e) => {
|
|
3
|
+
if (!l(e)) return e;
|
|
4
|
+
if (e.stack) {
|
|
5
|
+
const n = e.stack.split(`
|
|
6
|
+
`);
|
|
7
|
+
if (n.length <= 10) return e;
|
|
8
|
+
const i = n == null ? void 0 : n[0], t = n == null ? void 0 : n.splice(9), f = [i, ...t].join(`
|
|
9
|
+
`);
|
|
10
|
+
e.stack = f;
|
|
27
11
|
}
|
|
28
|
-
|
|
12
|
+
return e;
|
|
13
|
+
};
|
|
29
14
|
export {
|
|
30
|
-
s as
|
|
15
|
+
s as filterErrorStack
|
|
31
16
|
};
|
package/dist/index76.cjs
CHANGED
|
@@ -1,19 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
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;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index93.cjs"),n=({customError:t,originalError:e,type:c})=>{!s.isError(e)||!s.isError(t)||(e.stack&&(e.stack=t.stack),e.name&&(e.name=`${c} (${e.name})`))};exports.injectIntoError=n;
|
package/dist/index76.js
CHANGED
|
@@ -1,26 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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
|
-
`;
|
|
1
|
+
import { isError as c } from "./index93.js";
|
|
2
|
+
const s = ({
|
|
3
|
+
customError: e,
|
|
4
|
+
originalError: t,
|
|
5
|
+
type: f
|
|
6
|
+
}) => {
|
|
7
|
+
!c(t) || !c(e) || (t.stack && (t.stack = e.stack), t.name && (t.name = `${f} (${t.name})`));
|
|
8
|
+
};
|
|
22
9
|
export {
|
|
23
|
-
|
|
24
|
-
n as Item,
|
|
25
|
-
a as MenuItems
|
|
10
|
+
s as injectIntoError
|
|
26
11
|
};
|
package/dist/index77.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 e=require("react/jsx-runtime"),t=require("@veeqo/ui"),a=require("react"),k=require("@veeqo/components"),S=require("./index80.cjs"),u=require("./index81.cjs"),T=require("./index82.cjs"),V=require("./index83.cjs"),s=require("./index84.cjs"),D=require("./index78.cjs"),H=require("./index85.cjs"),y=require("./index86.cjs"),O=require("./index57.cjs"),B=require("./index58.cjs"),{Glyph:X}=k.VeeqoCommon,Y=({onClose:r,columnDefintions:j,hiddenColumns:m,visibleColumns:h})=>{const[c,g]=a.useState(""),i=a.useMemo(()=>new Map(j.map(n=>[n.id,n])),[]),[l,p]=a.useState(()=>({[s.ColumnGroupIds.Hidden]:m,[s.ColumnGroupIds.Visible]:h})),v=a.useMemo(()=>{const n=l[s.ColumnGroupIds.Visible].map(o=>i.get(`${o}`));return y.filterColumnsBySearch(n,c)},[l,i,c]),f=a.useMemo(()=>{const n=l[s.ColumnGroupIds.Hidden].map(o=>i.get(`${o}`));return y.filterColumnsBySearch(n,c)},[l,i,c]),{Notifications:{notify:C}}=O.useStores(),{saveColumns:G}=H.usePersistColumns(),{mutate:q}=B.useViews(),[d,x]=a.useState(!1),w=()=>{g(""),p({[s.ColumnGroupIds.Hidden]:m,[s.ColumnGroupIds.Visible]:h})},M=async()=>{try{x(!0);const n=l[s.ColumnGroupIds.Visible];if(n.length<1){C({type:"error",text:"You must have at least one visible column."});return}await G({visibleColumns:n}),await q(),r==null||r()}catch{C({type:"error",text:"Failed to save columns"})}finally{x(!1)}},b=a.useCallback(n=>{g(n)},[]),I=a.useCallback(n=>{const o=i.get(`${n}`);return o?e.jsx(V.ColumnItem,{column:o,isDragOverlay:!0}):null},[i]);return e.jsx(t.Modal,{variant:"lg",style:{overflowY:"hidden"},shouldShow:!0,onClose:()=>r==null?void 0:r(),headerSlot:e.jsxs(u.HeaderContainer,{children:[e.jsxs(t.Stack,{direction:"horizontal",alignX:"between",alignY:"center",children:[e.jsxs(t.Stack,{direction:"horizontal",alignX:"start",alignY:"center",spacing:"sm",children:[e.jsx(D.TableManagementGlyph,{height:32,width:32}),e.jsx(t.Text,{variant:"headingLarge",as:"h1",children:"Table management"})]}),e.jsx(t.Button,{"aria-label":"Close modal",onClick:r,variant:"flat",iconSlot:e.jsx(X,{name:"close"})})]}),e.jsxs(t.Text,{variant:"subheadingMedium",children:["Show, hide, or change the order of the columns in the view, so you always see the data that's most important to you. Learn more with our"," ",e.jsx(t.Anchor,{href:"#",target:"_blank",children:"help guide (TODO)"}),"."]}),e.jsx(t.Text,{variant:"headingSmall",children:"Column management"}),e.jsx(u.ColumnSearch,{name:"column-search-query",placeholder:"Search",value:c,onChange:b,onClearClick:()=>b(""),fill:"100%"})]}),leftActions:[{label:"Reset",onClick:w,variant:"default",disabled:d}],rightActions:[{label:"Cancel",onClick:r,variant:"default",disabled:d},{label:"Save",onClick:M,variant:"primary",disabled:d,loading:d}],children:e.jsx(t.Stack,{spacing:"md",alignX:"stretch",children:e.jsx(t.Stack,{spacing:4,alignX:"stretch",children:e.jsx(T.DndContainer,{items:l,setItems:p,renderDragOverlay:I,children:e.jsx(u.Container,{children:e.jsxs(u.ColumnGroupsGrid,{columns:2,spacing:"xl",children:[e.jsx(S.ColumnGroup,{id:s.ColumnGroupIds.Visible,title:"Shown columns:",columns:v}),e.jsx(u.VerticalSeparator,{children:e.jsx(u.VerticalText,{children:"Drag & Drop columns"})}),e.jsx(S.ColumnGroup,{id:s.ColumnGroupIds.Hidden,title:"Hidden columns:",columns:f})]})})})})})})};exports.TableManagementModal=Y;
|