@veeqo/transfigure 2.1.2 → 2.1.3
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/constants/helpGuideUrls.d.ts +3 -0
- package/dist/constants/index.d.ts +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +81 -79
- package/dist/index100.cjs +1 -1
- package/dist/index100.js +10 -14
- package/dist/index101.cjs +1 -1
- package/dist/index101.js +24 -21
- package/dist/index102.cjs +18 -11
- package/dist/index102.js +20 -12
- package/dist/index103.cjs +1 -1
- package/dist/index103.js +49 -6
- package/dist/index104.cjs +1 -1
- package/dist/index104.js +29 -50
- package/dist/index105.cjs +1 -1
- package/dist/index105.js +12 -26
- package/dist/index106.cjs +10 -78
- package/dist/index106.js +13 -95
- package/dist/index107.cjs +1 -1
- package/dist/index107.js +21 -24
- package/dist/index108.cjs +80 -1
- package/dist/index108.js +98 -2
- package/dist/index109.cjs +1 -1
- package/dist/index109.js +2 -19
- package/dist/index110.cjs +1 -1
- package/dist/index110.js +18 -7
- package/dist/index111.cjs +1 -1
- package/dist/index111.js +7 -63
- package/dist/index112.cjs +1 -1
- package/dist/index112.js +57 -26
- package/dist/index113.cjs +1 -13
- package/dist/index113.js +30 -17
- package/dist/index114.cjs +1 -1
- package/dist/index114.js +32 -22
- package/dist/index115.cjs +13 -1
- package/dist/index115.js +14 -33
- package/dist/index116.cjs +1 -7
- package/dist/index116.js +26 -10
- package/dist/index118.cjs +1 -1
- package/dist/index118.js +1 -1
- package/dist/index119.cjs +7 -1
- package/dist/index119.js +10 -47
- package/dist/index120.cjs +1 -0
- package/dist/index120.js +49 -0
- package/dist/index13.cjs +1 -1
- package/dist/index13.js +2 -2
- package/dist/index14.cjs +1 -1
- package/dist/index14.js +1 -1
- package/dist/index15.cjs +1 -1
- package/dist/index15.js +1 -1
- package/dist/index16.cjs +1 -1
- package/dist/index16.js +2 -2
- package/dist/index17.cjs +1 -1
- package/dist/index17.js +2 -2
- package/dist/index18.cjs +1 -1
- package/dist/index18.js +1 -1
- package/dist/index19.cjs +1 -1
- package/dist/index19.js +4 -4
- package/dist/index20.cjs +1 -1
- package/dist/index20.js +2 -2
- 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/index26.cjs +1 -1
- package/dist/index26.js +4 -4
- package/dist/index27.cjs +1 -1
- package/dist/index27.js +4 -4
- package/dist/index28.cjs +1 -1
- package/dist/index28.js +1 -1
- package/dist/index29.cjs +1 -1
- package/dist/index29.js +2 -2
- package/dist/index3.cjs +1 -1
- package/dist/index3.js +2 -2
- package/dist/index30.cjs +1 -1
- package/dist/index30.js +3 -3
- package/dist/index31.cjs +1 -1
- package/dist/index31.js +3 -3
- package/dist/index32.cjs +1 -1
- package/dist/index32.js +1 -1
- package/dist/index33.cjs +1 -1
- package/dist/index33.js +1 -1
- 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 +6 -6
- 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 +3 -3
- package/dist/index4.cjs +1 -1
- package/dist/index4.js +2 -2
- package/dist/index40.cjs +1 -1
- package/dist/index40.js +3 -3
- package/dist/index41.cjs +1 -1
- package/dist/index41.js +4 -4
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +2 -2
- package/dist/index44.cjs +1 -1
- package/dist/index44.js +4 -4
- package/dist/index46.cjs +1 -1
- package/dist/index46.js +4 -4
- package/dist/index47.cjs +1 -1
- package/dist/index47.js +3 -3
- package/dist/index49.cjs +1 -1
- package/dist/index49.js +4 -9
- package/dist/index5.cjs +1 -1
- package/dist/index5.js +2 -2
- package/dist/index50.cjs +1 -1
- package/dist/index50.js +9 -23
- package/dist/index51.cjs +1 -1
- package/dist/index51.js +23 -2
- package/dist/index52.cjs +1 -1
- package/dist/index52.js +2 -4
- package/dist/index53.cjs +1 -1
- package/dist/index53.js +4 -11
- package/dist/index54.cjs +1 -1
- package/dist/index54.js +10 -12
- package/dist/index55.cjs +1 -1
- package/dist/index55.js +12 -11
- package/dist/index56.cjs +1 -1
- package/dist/index56.js +11 -184
- package/dist/index57.cjs +1 -1
- package/dist/index57.js +183 -25
- package/dist/index58.cjs +1 -1
- package/dist/index58.js +26 -24
- package/dist/index59.cjs +1 -1
- package/dist/index59.js +19 -22
- package/dist/index6.cjs +1 -1
- package/dist/index6.js +2 -2
- package/dist/index60.cjs +1 -1
- package/dist/index60.js +25 -97
- package/dist/index61.cjs +1 -1
- package/dist/index61.js +99 -8
- package/dist/index62.cjs +1 -1
- package/dist/index62.js +8 -33
- package/dist/index63.cjs +1 -1
- package/dist/index63.js +33 -63
- package/dist/index64.cjs +1 -1
- package/dist/index64.js +59 -19
- package/dist/index65.cjs +1 -1
- package/dist/index65.js +23 -18
- package/dist/index66.cjs +1 -1
- package/dist/index66.js +16 -29
- package/dist/index67.cjs +1 -1
- package/dist/index67.js +30 -59
- package/dist/index68.cjs +1 -1
- package/dist/index68.js +60 -349
- package/dist/index69.cjs +1 -1
- package/dist/index69.js +345 -53
- package/dist/index7.cjs +1 -1
- package/dist/index7.js +4 -4
- package/dist/index70.cjs +1 -1
- package/dist/index70.js +48 -47
- package/dist/index71.cjs +1 -1
- package/dist/index71.js +51 -32
- package/dist/index72.cjs +1 -1
- package/dist/index72.js +30 -24
- package/dist/index73.cjs +1 -1
- package/dist/index73.js +26 -32
- package/dist/index74.cjs +1 -1
- package/dist/index74.js +38 -4
- package/dist/index75.cjs +1 -1
- package/dist/index75.js +4 -13
- package/dist/index76.cjs +1 -1
- package/dist/index76.js +12 -16
- package/dist/index77.cjs +1 -1
- package/dist/index77.js +14 -16
- package/dist/index78.cjs +1 -1
- package/dist/index78.js +18 -65
- package/dist/index79.cjs +1 -1
- package/dist/index79.js +66 -24
- package/dist/index80.cjs +1 -1
- package/dist/index80.js +24 -21
- package/dist/index81.cjs +1 -1
- package/dist/index81.js +20 -6
- package/dist/index82.cjs +1 -1
- package/dist/index82.js +7 -2
- package/dist/index83.cjs +1 -1
- package/dist/index83.js +2 -9
- package/dist/index84.cjs +1 -3
- package/dist/index84.js +8 -13
- package/dist/index85.cjs +3 -1
- package/dist/index85.js +13 -8
- package/dist/index86.cjs +1 -1
- package/dist/index86.js +9 -2
- package/dist/index88.cjs +1 -1
- package/dist/index88.js +40 -39
- package/dist/index89.cjs +1 -1
- package/dist/index89.js +2 -41
- package/dist/index90.cjs +1 -1
- package/dist/index90.js +41 -9
- package/dist/index91.cjs +1 -1
- package/dist/index91.js +8 -17
- package/dist/index92.cjs +1 -1
- package/dist/index92.js +18 -13
- package/dist/index93.cjs +1 -104
- package/dist/index93.js +7 -119
- package/dist/index94.cjs +1 -1
- package/dist/index94.js +13 -68
- package/dist/index95.cjs +104 -1
- package/dist/index95.js +118 -27
- package/dist/index96.cjs +1 -1
- package/dist/index96.js +68 -2
- package/dist/index97.cjs +1 -1
- package/dist/index97.js +26 -39
- package/dist/index98.cjs +1 -1
- package/dist/index98.js +2 -11
- package/dist/index99.cjs +1 -19
- package/dist/index99.js +41 -24
- package/package.json +1 -1
package/dist/index71.js
CHANGED
|
@@ -1,40 +1,59 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { makeObservable as
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var h = (i, t, e) => t in i ? g(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var s = (i, t, e) => h(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { makeObservable as p, action as l, computed as n, observable as o } from "mobx";
|
|
5
|
+
import { getDateRange as a } from "@veeqo/ui";
|
|
6
|
+
import { DateValue as T, DateOptionMap as f } from "./index48.js";
|
|
7
|
+
import { BusinessLogicManager as c } from "./index9.js";
|
|
8
|
+
class L {
|
|
9
|
+
constructor(t) {
|
|
10
|
+
s(this, "filterType");
|
|
11
|
+
s(this, "gte");
|
|
12
|
+
s(this, "lte");
|
|
13
|
+
s(this, "setFilterType", (t) => {
|
|
14
|
+
if (t === this.filterType) return;
|
|
15
|
+
const e = t || T.TODAY;
|
|
16
|
+
if (this.filterType = e, e !== "CUSTOM") {
|
|
17
|
+
const r = a(e);
|
|
18
|
+
r && (this.gte = r.start, this.lte = r.end);
|
|
19
|
+
}
|
|
18
20
|
});
|
|
19
|
-
|
|
20
|
-
this.
|
|
21
|
+
s(this, "setDates", (t, e) => {
|
|
22
|
+
this.gte = t, this.lte = e;
|
|
21
23
|
});
|
|
22
|
-
|
|
23
|
-
this.
|
|
24
|
+
s(this, "clear", () => {
|
|
25
|
+
this.filterType = void 0;
|
|
26
|
+
const { DEFAULT_DATE_RANGE: t } = c.getBusinessLogic();
|
|
27
|
+
t && this.setDates(t.start, t.end);
|
|
24
28
|
});
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
29
|
+
p(this, {
|
|
30
|
+
filterType: o,
|
|
31
|
+
gte: o,
|
|
32
|
+
lte: o,
|
|
33
|
+
filterSelection: n,
|
|
34
|
+
filterLabel: n,
|
|
35
|
+
selectedRange: n,
|
|
36
|
+
setFilterType: l,
|
|
37
|
+
setDates: l,
|
|
38
|
+
clear: l
|
|
39
|
+
});
|
|
40
|
+
const e = t && t !== "CUSTOM" ? a(t) : null, { DEFAULT_DATE_RANGE: r } = c.getBusinessLogic();
|
|
41
|
+
this.filterType = t, this.gte = (e == null ? void 0 : e.start) ?? r.start, this.lte = (e == null ? void 0 : e.end) ?? r.end;
|
|
42
|
+
}
|
|
43
|
+
get filterSelection() {
|
|
44
|
+
const { DEFAULT_DATE_PRESET: t } = c.getBusinessLogic();
|
|
45
|
+
return this.filterType ? f.get(this.filterType) ?? t : t;
|
|
46
|
+
}
|
|
47
|
+
get filterLabel() {
|
|
48
|
+
return this.filterSelection.label;
|
|
33
49
|
}
|
|
34
|
-
get
|
|
35
|
-
return
|
|
50
|
+
get selectedRange() {
|
|
51
|
+
return {
|
|
52
|
+
start: this.gte,
|
|
53
|
+
end: this.lte
|
|
54
|
+
};
|
|
36
55
|
}
|
|
37
56
|
}
|
|
38
57
|
export {
|
|
39
|
-
|
|
58
|
+
L as RangeFilter
|
|
40
59
|
};
|
package/dist/index72.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var d=Object.defineProperty;var f=(r,t,e)=>t in r?d(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var i=(r,t,e)=>f(r,typeof t!="symbol"?t+"":t,e);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("mobx");class w{constructor(){i(this,"draftCount");i(this,"draftViewsMap");i(this,"addDraftView",t=>{const e=t.originalView||t,s=`${e.id}-draft${this.draftCount}`,o=`${e.label} (Copy ${this.draftCount+1})`,n={...t,id:s,label:o,editable:!0,originalView:e};return this.draftViewsMap.set(s,n),this.incrementDraftViewCount(),n});i(this,"removeDraftViewById",t=>{this.draftViewsMap.has(t)&&this.draftViewsMap.delete(t)});i(this,"incrementDraftViewCount",()=>{this.draftCount+=1});a.makeObservable(this,{draftViewsList:a.computed,draftViewsMap:a.observable,draftCount:a.observable,addDraftView:a.action,removeDraftViewById:a.action,incrementDraftViewCount:a.action}),this.draftCount=0,this.draftViewsMap=new Map}get draftViewsList(){return Array.from(this.draftViewsMap.entries()).map(([,t])=>t)}}exports.Views=w;
|
package/dist/index72.js
CHANGED
|
@@ -1,34 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { makeObservable as
|
|
5
|
-
|
|
6
|
-
class y {
|
|
1
|
+
var f = Object.defineProperty;
|
|
2
|
+
var w = (a, t, e) => t in a ? f(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
|
|
3
|
+
var r = (a, t, e) => w(a, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
+
import { makeObservable as V, action as i, observable as d, computed as u } from "mobx";
|
|
5
|
+
class h {
|
|
7
6
|
constructor() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
const s = {
|
|
7
|
+
r(this, "draftCount");
|
|
8
|
+
r(this, "draftViewsMap");
|
|
9
|
+
r(this, "addDraftView", (t) => {
|
|
10
|
+
const e = t.originalView || t, s = `${e.id}-draft${this.draftCount}`, o = `${e.label} (Copy ${this.draftCount + 1})`, n = {
|
|
12
11
|
...t,
|
|
13
|
-
|
|
12
|
+
id: s,
|
|
13
|
+
label: o,
|
|
14
|
+
editable: !0,
|
|
15
|
+
originalView: e
|
|
14
16
|
};
|
|
15
|
-
this.
|
|
17
|
+
return this.draftViewsMap.set(s, n), this.incrementDraftViewCount(), n;
|
|
16
18
|
});
|
|
17
|
-
|
|
18
|
-
this.
|
|
19
|
+
r(this, "removeDraftViewById", (t) => {
|
|
20
|
+
this.draftViewsMap.has(t) && this.draftViewsMap.delete(t);
|
|
19
21
|
});
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
s && (clearTimeout(s), this.timeouts.delete(t)), this.toasts = this.toasts.filter((a) => a.key !== t);
|
|
22
|
+
r(this, "incrementDraftViewCount", () => {
|
|
23
|
+
this.draftCount += 1;
|
|
23
24
|
});
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
V(this, {
|
|
26
|
+
draftViewsList: u,
|
|
27
|
+
draftViewsMap: d,
|
|
28
|
+
draftCount: d,
|
|
29
|
+
addDraftView: i,
|
|
30
|
+
removeDraftViewById: i,
|
|
31
|
+
incrementDraftViewCount: i
|
|
32
|
+
}), this.draftCount = 0, this.draftViewsMap = /* @__PURE__ */ new Map();
|
|
33
|
+
}
|
|
34
|
+
get draftViewsList() {
|
|
35
|
+
return Array.from(this.draftViewsMap.entries()).map(([, t]) => t);
|
|
30
36
|
}
|
|
31
37
|
}
|
|
32
38
|
export {
|
|
33
|
-
|
|
39
|
+
h as Views
|
|
34
40
|
};
|
package/dist/index73.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var r=Object.defineProperty;var
|
|
1
|
+
"use strict";var r=Object.defineProperty;var c=(e,t,s)=>t in e?r(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var o=(e,t,s)=>c(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("mobx"),n=require("uid/secure");class u{constructor(){o(this,"toasts");o(this,"timeouts");o(this,"notify",t=>{const s={...t,key:n.uid()};this.toasts=[...this.toasts,s]});o(this,"setToasts",t=>{this.toasts=t});o(this,"removeByKey",t=>{const s=this.timeouts.get(t);s&&(clearTimeout(s),this.timeouts.delete(t)),this.toasts=this.toasts.filter(a=>a.key!==t)});i.makeObservable(this,{toasts:i.observable,notify:i.action,setToasts:i.action,removeByKey:i.action}),this.toasts=[],this.timeouts=new Map}}exports.Notifications=u;
|
package/dist/index73.js
CHANGED
|
@@ -1,40 +1,34 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var e = (
|
|
4
|
-
import { makeObservable as
|
|
5
|
-
|
|
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 {
|
|
6
7
|
constructor() {
|
|
7
|
-
e(this, "
|
|
8
|
-
e(this, "
|
|
9
|
-
e(this, "
|
|
10
|
-
|
|
11
|
-
|
|
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];
|
|
12
16
|
});
|
|
13
|
-
e(this, "
|
|
14
|
-
this.
|
|
17
|
+
e(this, "setToasts", (t) => {
|
|
18
|
+
this.toasts = t;
|
|
15
19
|
});
|
|
16
|
-
e(this, "
|
|
17
|
-
|
|
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);
|
|
18
23
|
});
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
setExpandedRows: d,
|
|
26
|
-
sortParam: i
|
|
27
|
-
}), this.sortState = {
|
|
28
|
-
columnId: "",
|
|
29
|
-
direction: "asc"
|
|
30
|
-
}, this.expandedRows = {}, this.selectedColumnIds = [];
|
|
31
|
-
}
|
|
32
|
-
get sortParam() {
|
|
33
|
-
const t = this.sortState.columnId;
|
|
34
|
-
if (t)
|
|
35
|
-
return this.sortState.direction === "desc" ? `-${t}` : t;
|
|
24
|
+
h(this, {
|
|
25
|
+
toasts: n,
|
|
26
|
+
notify: i,
|
|
27
|
+
setToasts: i,
|
|
28
|
+
removeByKey: i
|
|
29
|
+
}), this.toasts = [], this.timeouts = /* @__PURE__ */ new Map();
|
|
36
30
|
}
|
|
37
31
|
}
|
|
38
32
|
export {
|
|
39
|
-
|
|
33
|
+
y as Notifications
|
|
40
34
|
};
|
package/dist/index74.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";var r=Object.defineProperty;var a=(o,e,d)=>e in o?r(o,e,{enumerable:!0,configurable:!0,writable:!0,value:d}):o[e]=d;var s=(o,e,d)=>a(o,typeof e!="symbol"?e+"":e,d);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("mobx");class n{constructor(){s(this,"expandedRows");s(this,"sortState");s(this,"selectedColumnIds");s(this,"setSelectedColumnIds",e=>{this.selectedColumnIds=e});s(this,"setSortState",e=>{this.sortState=e});s(this,"setExpandedRows",e=>{this.expandedRows=e});t.makeObservable(this,{sortState:t.observable,selectedColumnIds:t.observable,expandedRows:t.observable,setSortState:t.action,setSelectedColumnIds:t.action,setExpandedRows:t.action,sortParam:t.computed}),this.sortState={columnId:"",direction:"asc"},this.expandedRows={},this.selectedColumnIds=[]}get sortParam(){const e=this.sortState.columnId;if(e)return this.sortState.direction==="desc"?`-${e}`:e}}exports.Table=n;
|
package/dist/index74.js
CHANGED
|
@@ -1,6 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var n = (s, t, o) => t in s ? a(s, t, { enumerable: !0, configurable: !0, writable: !0, value: o }) : s[t] = o;
|
|
3
|
+
var e = (s, t, o) => n(s, typeof t != "symbol" ? t + "" : t, o);
|
|
4
|
+
import { makeObservable as c, computed as i, action as d, observable as r } from "mobx";
|
|
5
|
+
class u {
|
|
6
|
+
constructor() {
|
|
7
|
+
e(this, "expandedRows");
|
|
8
|
+
e(this, "sortState");
|
|
9
|
+
e(this, "selectedColumnIds");
|
|
10
|
+
e(this, "setSelectedColumnIds", (t) => {
|
|
11
|
+
this.selectedColumnIds = t;
|
|
12
|
+
});
|
|
13
|
+
e(this, "setSortState", (t) => {
|
|
14
|
+
this.sortState = t;
|
|
15
|
+
});
|
|
16
|
+
e(this, "setExpandedRows", (t) => {
|
|
17
|
+
this.expandedRows = t;
|
|
18
|
+
});
|
|
19
|
+
c(this, {
|
|
20
|
+
sortState: r,
|
|
21
|
+
selectedColumnIds: r,
|
|
22
|
+
expandedRows: r,
|
|
23
|
+
setSortState: d,
|
|
24
|
+
setSelectedColumnIds: d,
|
|
25
|
+
setExpandedRows: d,
|
|
26
|
+
sortParam: i
|
|
27
|
+
}), this.sortState = {
|
|
28
|
+
columnId: "",
|
|
29
|
+
direction: "asc"
|
|
30
|
+
}, this.expandedRows = {}, this.selectedColumnIds = [];
|
|
31
|
+
}
|
|
32
|
+
get sortParam() {
|
|
33
|
+
const t = this.sortState.columnId;
|
|
34
|
+
if (t)
|
|
35
|
+
return this.sortState.direction === "desc" ? `-${t}` : t;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
4
38
|
export {
|
|
5
|
-
|
|
39
|
+
u as Table
|
|
6
40
|
};
|
package/dist/index75.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("react/jsx-runtime"),t=require("mobx-react"),i=({children:e,...r})=>o.jsx(t.Provider,{...r,children:e});exports.MobXProvider=i;
|
package/dist/index75.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
let e = t;
|
|
5
|
-
return r != null && r.baseProperty && (e = p(t, r.baseProperty)), !e || !Array.isArray(e) ? [] : e == null ? void 0 : e.map((s) => {
|
|
6
|
-
const l = p(s, r.labelProperty), u = p(s, r.valueProperty);
|
|
7
|
-
return {
|
|
8
|
-
label: l,
|
|
9
|
-
value: u.toString()
|
|
10
|
-
};
|
|
11
|
-
});
|
|
12
|
-
};
|
|
1
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
2
|
+
import { Provider as e } from "mobx-react";
|
|
3
|
+
const p = ({ children: r, ...o }) => /* @__PURE__ */ t(e, { ...o, children: r });
|
|
13
4
|
export {
|
|
14
|
-
|
|
5
|
+
p as MobXProvider
|
|
15
6
|
};
|
package/dist/index76.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"),n=e=>e&&e.__esModule?e:{default:e},u=n(o),y=({data:e,config:t})=>{if(!t||!e)return[];let r=e;return t!=null&&t.baseProperty&&(r=u.default(e,t.baseProperty)),!r||!Array.isArray(r)?[]:r==null?void 0:r.map(l=>{const s=u.default(l,t.labelProperty),a=u.default(l,t.valueProperty);return{label:s,value:a.toString()}})};exports.getAsyncOptions=y;
|
package/dist/index76.js
CHANGED
|
@@ -1,19 +1,15 @@
|
|
|
1
|
-
import
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
e = t;
|
|
13
|
-
break;
|
|
14
|
-
}
|
|
15
|
-
return e;
|
|
1
|
+
import p from "lodash/get";
|
|
2
|
+
const o = ({ data: t, config: r }) => {
|
|
3
|
+
if (!r || !t) return [];
|
|
4
|
+
let e = t;
|
|
5
|
+
return r != null && r.baseProperty && (e = p(t, r.baseProperty)), !e || !Array.isArray(e) ? [] : e == null ? void 0 : e.map((s) => {
|
|
6
|
+
const l = p(s, r.labelProperty), u = p(s, r.valueProperty);
|
|
7
|
+
return {
|
|
8
|
+
label: l,
|
|
9
|
+
value: u.toString()
|
|
10
|
+
};
|
|
11
|
+
});
|
|
16
12
|
};
|
|
17
13
|
export {
|
|
18
|
-
|
|
14
|
+
o as getAsyncOptions
|
|
19
15
|
};
|
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 t=require("./index56.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/index77.js
CHANGED
|
@@ -1,21 +1,19 @@
|
|
|
1
|
-
import {
|
|
2
|
-
const
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
case
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
case
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
case e.WEEK_TO_DATE:
|
|
12
|
-
case e.MONTH_TO_DATE:
|
|
13
|
-
case e.YEAR_TO_DATE:
|
|
14
|
-
return !0;
|
|
1
|
+
import { fetcherV1 as t, fetcherV2 as c } from "./index56.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;
|
|
15
11
|
default:
|
|
16
|
-
|
|
12
|
+
e = t;
|
|
13
|
+
break;
|
|
17
14
|
}
|
|
15
|
+
return e;
|
|
18
16
|
};
|
|
19
17
|
export {
|
|
20
|
-
|
|
18
|
+
h as getFetcherFunction
|
|
21
19
|
};
|
package/dist/index78.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("@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/index78.js
CHANGED
|
@@ -1,68 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
filters: new Map(
|
|
19
|
-
s.filter(
|
|
20
|
-
(e) => !o.includes(e.id) && !a.includes(e.id) && e.filterType !== "checkbox"
|
|
21
|
-
).map((e) => {
|
|
22
|
-
const t = n(l, e.id);
|
|
23
|
-
return [e.id, t !== void 0 && !Array.isArray(t) && typeof t != "object" ? String(t) : ""];
|
|
24
|
-
}).filter(([, e]) => e !== "")
|
|
25
|
-
),
|
|
26
|
-
arrayFilters: new Map(
|
|
27
|
-
s.filter((e) => e.filterType === "checkbox").map((e) => {
|
|
28
|
-
const t = n(l, e.id);
|
|
29
|
-
return [e.id, Array.isArray(t) ? t : []];
|
|
30
|
-
}).filter(([, e]) => e.length > 0)
|
|
31
|
-
),
|
|
32
|
-
rangeFilters: new Map(
|
|
33
|
-
s.filter((e) => o.includes(e.id)).map((e) => {
|
|
34
|
-
const t = n(l, e.id);
|
|
35
|
-
if (!t) return null;
|
|
36
|
-
let i;
|
|
37
|
-
if (typeof t == "string")
|
|
38
|
-
i = new p(t);
|
|
39
|
-
else if (typeof t == "object" && t.gte && t.lte) {
|
|
40
|
-
i = new p("CUSTOM");
|
|
41
|
-
const y = c(t.gte), A = c(t.lte);
|
|
42
|
-
i.setDates(y, A);
|
|
43
|
-
} else
|
|
44
|
-
return null;
|
|
45
|
-
return [e.id, i];
|
|
46
|
-
}).filter((e) => e !== null)
|
|
47
|
-
),
|
|
48
|
-
numberRangeFilters: new Map(
|
|
49
|
-
s.filter((e) => a.includes(e.id)).map((e) => {
|
|
50
|
-
const t = n(l, e.id);
|
|
51
|
-
if (!t || typeof t != "object") return null;
|
|
52
|
-
const i = new M({ filterId: e.id });
|
|
53
|
-
return t.lte !== void 0 && i.setLte(Number(t.lte)), t.gte !== void 0 && i.setGte(Number(t.gte)), [e.id, i];
|
|
54
|
-
}).filter((e) => e !== null)
|
|
55
|
-
)
|
|
56
|
-
},
|
|
57
|
-
page: r.filters.page,
|
|
58
|
-
editable: r.editable && m,
|
|
59
|
-
isShared: r.shared,
|
|
60
|
-
columns: r.columns,
|
|
61
|
-
sort: (f = r.filters) == null ? void 0 : f.sort,
|
|
62
|
-
colourPalette: g,
|
|
63
|
-
customTextColour: b
|
|
64
|
-
};
|
|
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
|
+
}
|
|
65
18
|
};
|
|
66
19
|
export {
|
|
67
|
-
|
|
20
|
+
s as isValidDateRange
|
|
68
21
|
};
|
package/dist/index79.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 d=require("@internationalized/date"),f=require("./index71.cjs"),F=require("./index70.cjs"),R=require("lodash/get"),A=require("./index92.cjs"),_=require("./index9.cjs"),T=r=>r&&r.__esModule?r:{default:r},n=T(R),h=({view:r,canUpdateCustomViews:g})=>{var u,c;const{DATE_RANGE_FILTERS:a,NUMBER_RANGE_FILTERS:o,GROUP_MAP:p}=_.BusinessLogicManager.getBusinessLogic(),s=Array.from(p.values()).flatMap(e=>e.fields),l=r.filters.filter||{},{colourPalette:m,customTextColour:b}=A.getViewTheme((u=r.view_attributes)==null?void 0:u.type);return{id:r.id,label:r.title,viewFilters:l,filterMaps:{filters:new Map(s.filter(e=>!a.includes(e.id)&&!o.includes(e.id)&&e.filterType!=="checkbox").map(e=>{const t=n.default(l,e.id);return[e.id,t!==void 0&&!Array.isArray(t)&&typeof t!="object"?String(t):""]}).filter(([,e])=>e!=="")),arrayFilters:new Map(s.filter(e=>e.filterType==="checkbox").map(e=>{const t=n.default(l,e.id);return[e.id,Array.isArray(t)?t:[]]}).filter(([,e])=>e.length>0)),rangeFilters:new Map(s.filter(e=>a.includes(e.id)).map(e=>{const t=n.default(l,e.id);if(!t)return null;let i;if(typeof t=="string")i=new f.RangeFilter(t);else if(typeof t=="object"&&t.gte&&t.lte){i=new f.RangeFilter("CUSTOM");const y=d.parseDate(t.gte),M=d.parseDate(t.lte);i.setDates(y,M)}else return null;return[e.id,i]}).filter(e=>e!==null)),numberRangeFilters:new Map(s.filter(e=>o.includes(e.id)).map(e=>{const t=n.default(l,e.id);if(!t||typeof t!="object")return null;const i=new F.NumberRangeFilter({filterId:e.id});return t.lte!==void 0&&i.setLte(Number(t.lte)),t.gte!==void 0&&i.setGte(Number(t.gte)),[e.id,i]}).filter(e=>e!==null))},page:r.filters.page,editable:r.editable&&g,isShared:r.shared,columns:r.columns,sort:(c=r.filters)==null?void 0:c.sort,colourPalette:m,customTextColour:b}};exports.viewsAdapter=h;
|
package/dist/index79.js
CHANGED
|
@@ -1,26 +1,68 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { parseDate as c } from "@internationalized/date";
|
|
2
|
+
import { RangeFilter as p } from "./index71.js";
|
|
3
|
+
import { NumberRangeFilter as M } from "./index70.js";
|
|
4
|
+
import n from "lodash/get";
|
|
5
|
+
import { getViewTheme as F } from "./index92.js";
|
|
6
|
+
import { BusinessLogicManager as R } from "./index9.js";
|
|
7
|
+
const S = ({
|
|
8
|
+
view: r,
|
|
9
|
+
canUpdateCustomViews: m
|
|
10
|
+
}) => {
|
|
11
|
+
var u, f;
|
|
12
|
+
const { DATE_RANGE_FILTERS: o, NUMBER_RANGE_FILTERS: a, GROUP_MAP: d } = R.getBusinessLogic(), s = Array.from(d.values()).flatMap((e) => e.fields), l = r.filters.filter || {}, { colourPalette: g, customTextColour: b } = F((u = r.view_attributes) == null ? void 0 : u.type);
|
|
13
|
+
return {
|
|
14
|
+
id: r.id,
|
|
15
|
+
label: r.title,
|
|
16
|
+
viewFilters: l,
|
|
17
|
+
filterMaps: {
|
|
18
|
+
filters: new Map(
|
|
19
|
+
s.filter(
|
|
20
|
+
(e) => !o.includes(e.id) && !a.includes(e.id) && e.filterType !== "checkbox"
|
|
21
|
+
).map((e) => {
|
|
22
|
+
const t = n(l, e.id);
|
|
23
|
+
return [e.id, t !== void 0 && !Array.isArray(t) && typeof t != "object" ? String(t) : ""];
|
|
24
|
+
}).filter(([, e]) => e !== "")
|
|
25
|
+
),
|
|
26
|
+
arrayFilters: new Map(
|
|
27
|
+
s.filter((e) => e.filterType === "checkbox").map((e) => {
|
|
28
|
+
const t = n(l, e.id);
|
|
29
|
+
return [e.id, Array.isArray(t) ? t : []];
|
|
30
|
+
}).filter(([, e]) => e.length > 0)
|
|
31
|
+
),
|
|
32
|
+
rangeFilters: new Map(
|
|
33
|
+
s.filter((e) => o.includes(e.id)).map((e) => {
|
|
34
|
+
const t = n(l, e.id);
|
|
35
|
+
if (!t) return null;
|
|
36
|
+
let i;
|
|
37
|
+
if (typeof t == "string")
|
|
38
|
+
i = new p(t);
|
|
39
|
+
else if (typeof t == "object" && t.gte && t.lte) {
|
|
40
|
+
i = new p("CUSTOM");
|
|
41
|
+
const y = c(t.gte), A = c(t.lte);
|
|
42
|
+
i.setDates(y, A);
|
|
43
|
+
} else
|
|
44
|
+
return null;
|
|
45
|
+
return [e.id, i];
|
|
46
|
+
}).filter((e) => e !== null)
|
|
47
|
+
),
|
|
48
|
+
numberRangeFilters: new Map(
|
|
49
|
+
s.filter((e) => a.includes(e.id)).map((e) => {
|
|
50
|
+
const t = n(l, e.id);
|
|
51
|
+
if (!t || typeof t != "object") return null;
|
|
52
|
+
const i = new M({ filterId: e.id });
|
|
53
|
+
return t.lte !== void 0 && i.setLte(Number(t.lte)), t.gte !== void 0 && i.setGte(Number(t.gte)), [e.id, i];
|
|
54
|
+
}).filter((e) => e !== null)
|
|
55
|
+
)
|
|
56
|
+
},
|
|
57
|
+
page: r.filters.page,
|
|
58
|
+
editable: r.editable && m,
|
|
59
|
+
isShared: r.shared,
|
|
60
|
+
columns: r.columns,
|
|
61
|
+
sort: (f = r.filters) == null ? void 0 : f.sort,
|
|
62
|
+
colourPalette: g,
|
|
63
|
+
customTextColour: b
|
|
64
|
+
};
|
|
65
|
+
};
|
|
23
66
|
export {
|
|
24
|
-
|
|
25
|
-
a as createAllView
|
|
67
|
+
S as viewsAdapter
|
|
26
68
|
};
|
package/dist/index80.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 l=require("@veeqo/ui"),e="all",r=()=>({id:e,label:"All",viewFilters:{},filterMaps:{filters:new Map,arrayFilters:new Map,rangeFilters:new Map,numberRangeFilters:new Map},page:{size:10},editable:!1,isShared:!1,columns:{columnIds:[],columnWidths:{}},colourPalette:l.theme.colors.secondary.blue});exports.ALL_VIEW_ID=e;exports.createAllView=r;
|