@veeqo/transfigure 1.1.1 → 1.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.
Files changed (232) hide show
  1. package/dist/BusinessLogic/mocks.d.ts +1 -1
  2. package/dist/BusinessLogic/types.d.ts +2 -1
  3. package/dist/hooks/useUrlParams/useUrlParams.test.d.ts +1 -0
  4. package/dist/index.cjs +1 -1
  5. package/dist/index.js +160 -158
  6. package/dist/index10.cjs +1 -1
  7. package/dist/index10.js +184 -18
  8. package/dist/index100.cjs +18 -11
  9. package/dist/index100.js +20 -12
  10. package/dist/index101.cjs +1 -1
  11. package/dist/index101.js +32 -23
  12. package/dist/index102.cjs +1 -80
  13. package/dist/index102.js +28 -100
  14. package/dist/index103.cjs +80 -1
  15. package/dist/index103.js +101 -19
  16. package/dist/index104.cjs +1 -1
  17. package/dist/index104.js +2 -8
  18. package/dist/index105.cjs +1 -1
  19. package/dist/index105.js +17 -62
  20. package/dist/index106.cjs +1 -1
  21. package/dist/index106.js +7 -29
  22. package/dist/index107.cjs +1 -1
  23. package/dist/index107.js +64 -2
  24. package/dist/index108.cjs +1 -13
  25. package/dist/index108.js +30 -17
  26. package/dist/index109.cjs +13 -1
  27. package/dist/index109.js +15 -24
  28. package/dist/index11.cjs +1 -1
  29. package/dist/index11.js +18 -21
  30. package/dist/index110.cjs +1 -1
  31. package/dist/index110.js +22 -32
  32. package/dist/index111.cjs +1 -1
  33. package/dist/index111.js +35 -62
  34. package/dist/index113.cjs +1 -1
  35. package/dist/index113.js +3 -3
  36. package/dist/index114.cjs +1 -0
  37. package/dist/index114.js +65 -0
  38. package/dist/index12.cjs +1 -1
  39. package/dist/index12.js +19 -41
  40. package/dist/index13.cjs +1 -1
  41. package/dist/index13.js +41 -23
  42. package/dist/index14.cjs +1 -1
  43. package/dist/index14.js +24 -36
  44. package/dist/index15.cjs +1 -1
  45. package/dist/index15.js +37 -33
  46. package/dist/index16.cjs +1 -1
  47. package/dist/index16.js +32 -49
  48. package/dist/index17.cjs +1 -1
  49. package/dist/index17.js +47 -38
  50. package/dist/index18.cjs +1 -1
  51. package/dist/index18.js +29 -29
  52. package/dist/index19.cjs +1 -1
  53. package/dist/index19.js +41 -58
  54. package/dist/index2.cjs +1 -1
  55. package/dist/index2.js +2 -5
  56. package/dist/index20.cjs +1 -1
  57. package/dist/index20.js +48 -42
  58. package/dist/index21.cjs +1 -1
  59. package/dist/index21.js +50 -44
  60. package/dist/index22.cjs +1 -1
  61. package/dist/index22.js +46 -7
  62. package/dist/index23.cjs +1 -1
  63. package/dist/index23.js +7 -11
  64. package/dist/index24.cjs +1 -1
  65. package/dist/index24.js +11 -64
  66. package/dist/index25.cjs +1 -1
  67. package/dist/index25.js +40 -39
  68. package/dist/index26.cjs +1 -1
  69. package/dist/index26.js +60 -37
  70. package/dist/index27.cjs +1 -1
  71. package/dist/index27.js +36 -53
  72. package/dist/index28.cjs +1 -1
  73. package/dist/index28.js +54 -51
  74. package/dist/index29.cjs +1 -1
  75. package/dist/index29.js +50 -81
  76. package/dist/index3.cjs +1 -1
  77. package/dist/index3.js +5 -5
  78. package/dist/index30.cjs +1 -1
  79. package/dist/index30.js +81 -35
  80. package/dist/index31.cjs +1 -1
  81. package/dist/index31.js +38 -33
  82. package/dist/index32.cjs +1 -1
  83. package/dist/index32.js +33 -10
  84. package/dist/index33.cjs +1 -1
  85. package/dist/index33.js +10 -39
  86. package/dist/index34.cjs +1 -1
  87. package/dist/index34.js +38 -102
  88. package/dist/index35.cjs +1 -1
  89. package/dist/index35.js +103 -19
  90. package/dist/index36.cjs +1 -1
  91. package/dist/index36.js +17 -134
  92. package/dist/index37.cjs +1 -1
  93. package/dist/index37.js +135 -49
  94. package/dist/index38.cjs +1 -1
  95. package/dist/index38.js +51 -32
  96. package/dist/index39.cjs +1 -1
  97. package/dist/index39.js +31 -53
  98. package/dist/index4.cjs +1 -1
  99. package/dist/index4.js +5 -5
  100. package/dist/index40.cjs +1 -1
  101. package/dist/index40.js +54 -48
  102. package/dist/index41.cjs +1 -1
  103. package/dist/index41.js +41 -81
  104. package/dist/index42.cjs +1 -1
  105. package/dist/index42.js +81 -41
  106. package/dist/index43.cjs +1 -1
  107. package/dist/index43.js +48 -5
  108. package/dist/index44.cjs +1 -1
  109. package/dist/index44.js +5 -45
  110. package/dist/index45.cjs +1 -1
  111. package/dist/index45.js +44 -38
  112. package/dist/index46.cjs +1 -1
  113. package/dist/index46.js +39 -19
  114. package/dist/index47.cjs +1 -1
  115. package/dist/index47.js +19 -8
  116. package/dist/index48.cjs +1 -1
  117. package/dist/index48.js +7 -22
  118. package/dist/index49.cjs +1 -1
  119. package/dist/index49.js +23 -2
  120. package/dist/index5.cjs +1 -1
  121. package/dist/index5.js +5 -9
  122. package/dist/index50.cjs +1 -1
  123. package/dist/index50.js +2 -4
  124. package/dist/index51.cjs +1 -1
  125. package/dist/index51.js +4 -11
  126. package/dist/index52.cjs +1 -1
  127. package/dist/index52.js +10 -12
  128. package/dist/index53.cjs +1 -1
  129. package/dist/index53.js +12 -11
  130. package/dist/index54.cjs +1 -1
  131. package/dist/index54.js +11 -184
  132. package/dist/index55.cjs +1 -1
  133. package/dist/index55.js +183 -25
  134. package/dist/index56.cjs +1 -1
  135. package/dist/index56.js +26 -24
  136. package/dist/index57.cjs +1 -1
  137. package/dist/index57.js +19 -22
  138. package/dist/index58.cjs +1 -1
  139. package/dist/index58.js +25 -97
  140. package/dist/index59.cjs +1 -1
  141. package/dist/index59.js +99 -8
  142. package/dist/index6.cjs +1 -1
  143. package/dist/index6.js +8 -75
  144. package/dist/index60.cjs +1 -1
  145. package/dist/index60.js +8 -51
  146. package/dist/index61.cjs +1 -1
  147. package/dist/index61.js +50 -60
  148. package/dist/index62.cjs +1 -1
  149. package/dist/index62.js +57 -18
  150. package/dist/index63.cjs +1 -1
  151. package/dist/index63.js +22 -18
  152. package/dist/index64.cjs +1 -1
  153. package/dist/index64.js +16 -26
  154. package/dist/index65.cjs +1 -1
  155. package/dist/index65.js +26 -10
  156. package/dist/index66.cjs +1 -1
  157. package/dist/index66.js +21 -325
  158. package/dist/index67.cjs +1 -1
  159. package/dist/index67.js +337 -55
  160. package/dist/index68.cjs +1 -1
  161. package/dist/index68.js +50 -47
  162. package/dist/index69.cjs +1 -1
  163. package/dist/index69.js +51 -32
  164. package/dist/index7.cjs +1 -1
  165. package/dist/index7.js +76 -4
  166. package/dist/index70.cjs +1 -1
  167. package/dist/index70.js +30 -24
  168. package/dist/index71.cjs +1 -1
  169. package/dist/index71.js +26 -32
  170. package/dist/index72.cjs +1 -1
  171. package/dist/index72.js +37 -12
  172. package/dist/index73.cjs +1 -1
  173. package/dist/index73.js +13 -9
  174. package/dist/index74.cjs +1 -1
  175. package/dist/index74.js +9 -17
  176. package/dist/index75.cjs +1 -1
  177. package/dist/index75.js +14 -16
  178. package/dist/index76.cjs +1 -1
  179. package/dist/index76.js +18 -49
  180. package/dist/index77.cjs +1 -1
  181. package/dist/index77.js +50 -21
  182. package/dist/index78.cjs +1 -1
  183. package/dist/index78.js +21 -7
  184. package/dist/index79.cjs +1 -1
  185. package/dist/index79.js +7 -2
  186. package/dist/index8.cjs +1 -1
  187. package/dist/index8.js +4 -14
  188. package/dist/index80.cjs +1 -1
  189. package/dist/index80.js +2 -9
  190. package/dist/index81.cjs +1 -3
  191. package/dist/index81.js +8 -13
  192. package/dist/index82.cjs +3 -1
  193. package/dist/index82.js +13 -8
  194. package/dist/index83.cjs +1 -1
  195. package/dist/index83.js +7 -116
  196. package/dist/index84.cjs +1 -1
  197. package/dist/index84.js +117 -18
  198. package/dist/index85.cjs +1 -11
  199. package/dist/index85.js +19 -16
  200. package/dist/index86.cjs +11 -1
  201. package/dist/index86.js +16 -41
  202. package/dist/index87.cjs +1 -1
  203. package/dist/index87.js +40 -8
  204. package/dist/index88.cjs +1 -1
  205. package/dist/index88.js +9 -13
  206. package/dist/index89.cjs +1 -104
  207. package/dist/index89.js +13 -120
  208. package/dist/index9.cjs +1 -1
  209. package/dist/index9.js +13 -181
  210. package/dist/index90.cjs +104 -1
  211. package/dist/index90.js +117 -65
  212. package/dist/index91.cjs +1 -1
  213. package/dist/index91.js +63 -24
  214. package/dist/index92.cjs +1 -1
  215. package/dist/index92.js +29 -2
  216. package/dist/index93.cjs +1 -1
  217. package/dist/index93.js +2 -41
  218. package/dist/index94.cjs +1 -1
  219. package/dist/index94.js +39 -9
  220. package/dist/index95.cjs +1 -19
  221. package/dist/index95.js +11 -24
  222. package/dist/index96.cjs +12 -1
  223. package/dist/index96.js +16 -33
  224. package/dist/index97.cjs +1 -1
  225. package/dist/index97.js +21 -29
  226. package/dist/index98.cjs +1 -1
  227. package/dist/index98.js +24 -15
  228. package/dist/index99.cjs +1 -1
  229. package/dist/index99.js +14 -20
  230. package/dist/mobx/Filters/Filters.d.ts +1 -1
  231. package/dist/types.d.ts +4 -0
  232. package/package.json +1 -1
package/dist/index7.js CHANGED
@@ -1,6 +1,78 @@
1
- import { useMemo as s } from "react";
2
- import { BusinessLogicManager as e } from "./index8.js";
3
- const r = () => s(() => e.getBusinessLogic(), []);
1
+ import a from "axios";
2
+ import { AxiosErrorType as e } from "./index80.js";
3
+ import { filterOptionalArgsGetDelete as y, filterOptionalArgs as p } from "./index81.js";
4
+ import { filterErrorStack as i } from "./index82.js";
5
+ import { injectIntoError as E } from "./index83.js";
6
+ const m = async (n, s) => {
7
+ const o = new Error(), r = y(n, s);
8
+ try {
9
+ return await a.get(...r);
10
+ } catch (t) {
11
+ throw i(o), E({ customError: o, originalError: t, type: e.GET }), t;
12
+ }
13
+ }, w = async (n, s) => {
14
+ const o = new Error(), r = y(n, s);
15
+ try {
16
+ return await a.delete(...r);
17
+ } catch (t) {
18
+ throw i(o), E({ customError: o, originalError: t, type: e.DELETE }), t;
19
+ }
20
+ }, g = async (n, s, o) => {
21
+ const r = new Error(), t = p(n, s, o);
22
+ try {
23
+ return await a.post(...t);
24
+ } catch (c) {
25
+ throw i(r), E({ customError: r, originalError: c, type: e.POST }), c;
26
+ }
27
+ }, l = async (n, s, o) => {
28
+ const r = new Error(), t = p(n, s, o);
29
+ try {
30
+ return await a.patch(...t);
31
+ } catch (c) {
32
+ throw i(r), E({ customError: r, originalError: c, type: e.PATCH }), c;
33
+ }
34
+ }, h = async (n, s, o) => {
35
+ const r = new Error(), t = p(n, s, o);
36
+ try {
37
+ return await a.put(...t);
38
+ } catch (c) {
39
+ throw i(r), E({ customError: r, originalError: c, type: e.PUT }), c;
40
+ }
41
+ }, u = async (n, s, o) => {
42
+ const r = new Error(), t = p(n, s, o);
43
+ try {
44
+ return await a.postForm(...t);
45
+ } catch (c) {
46
+ throw i(r), E({ customError: r, originalError: c, type: e.POST_FORM }), c;
47
+ }
48
+ }, T = async (n, s, o) => {
49
+ const r = new Error(), t = p(n, s, o);
50
+ try {
51
+ return await a.putForm(...t);
52
+ } catch (c) {
53
+ throw i(r), E({ customError: r, originalError: c, type: e.PUT_FORM }), c;
54
+ }
55
+ }, F = async (n, s, o) => {
56
+ const r = new Error(), t = p(n, s, o);
57
+ try {
58
+ return await a.patchForm(...t);
59
+ } catch (c) {
60
+ throw i(r), E({ customError: r, originalError: c, type: e.PATCH_FORM }), c;
61
+ }
62
+ }, P = {
63
+ get: m,
64
+ delete: w,
65
+ post: g,
66
+ patch: l,
67
+ put: h,
68
+ postForm: u,
69
+ putForm: T,
70
+ patchForm: F,
71
+ CancelToken: a.CancelToken,
72
+ isCancel: a.isCancel,
73
+ getUri: a.getUri,
74
+ isAxiosError: a.isAxiosError
75
+ };
4
76
  export {
5
- r as useBusinessLogic
77
+ P as axios
6
78
  };
package/dist/index70.cjs CHANGED
@@ -1 +1 @@
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;
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/index70.js CHANGED
@@ -1,34 +1,40 @@
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 {
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
- e(this, "toasts");
9
- e(this, "timeouts");
10
- e(this, "notify", (t) => {
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
- key: c()
12
+ id: s,
13
+ label: o,
14
+ editable: !0,
15
+ originalView: e
14
16
  };
15
- this.toasts = [...this.toasts, s];
17
+ return this.draftViewsMap.set(s, n), this.incrementDraftViewCount(), n;
16
18
  });
17
- e(this, "setToasts", (t) => {
18
- this.toasts = t;
19
+ r(this, "removeDraftViewById", (t) => {
20
+ this.draftViewsMap.has(t) && this.draftViewsMap.delete(t);
19
21
  });
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);
22
+ r(this, "incrementDraftViewCount", () => {
23
+ this.draftCount += 1;
23
24
  });
24
- h(this, {
25
- toasts: n,
26
- notify: i,
27
- setToasts: i,
28
- removeByKey: i
29
- }), this.toasts = [], this.timeouts = /* @__PURE__ */ new Map();
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
- y as Notifications
39
+ h as Views
34
40
  };
package/dist/index71.cjs CHANGED
@@ -1 +1 @@
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;
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/index71.js CHANGED
@@ -1,40 +1,34 @@
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 {
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, "expandedRows");
8
- e(this, "sortState");
9
- e(this, "selectedColumnIds");
10
- e(this, "setSelectedColumnIds", (t) => {
11
- this.selectedColumnIds = t;
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, "setSortState", (t) => {
14
- this.sortState = t;
17
+ e(this, "setToasts", (t) => {
18
+ this.toasts = t;
15
19
  });
16
- e(this, "setExpandedRows", (t) => {
17
- this.expandedRows = t;
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
- 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;
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
- u as Table
33
+ y as Notifications
40
34
  };
package/dist/index72.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("mobx-react"),u=({children:e,Filters:r,Views:o,Notifications:t,Table:i})=>n.jsx(s.Provider,{Filters:r,Views:o,Notifications:t,Table:i,children:e});exports.MobXProvider=u;
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/index72.js CHANGED
@@ -1,15 +1,40 @@
1
- import { jsx as m } from "react/jsx-runtime";
2
- import { Provider as p } from "mobx-react";
3
- const n = ({ children: r, Filters: o, Views: t, Notifications: e, Table: i }) => /* @__PURE__ */ m(
4
- p,
5
- {
6
- Filters: o,
7
- Views: t,
8
- Notifications: e,
9
- Table: i,
10
- children: r
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 = [];
11
31
  }
12
- );
32
+ get sortParam() {
33
+ const t = this.sortState.columnId;
34
+ if (t)
35
+ return this.sortState.direction === "desc" ? `-${t}` : t;
36
+ }
37
+ }
13
38
  export {
14
- n as MobXProvider
39
+ u as Table
15
40
  };
package/dist/index73.cjs CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),s=require("mobx-react"),u=({children:e,Filters:r,Views:o,Notifications:t,Table:i})=>n.jsx(s.Provider,{Filters:r,Views:o,Notifications:t,Table:i,children:e});exports.MobXProvider=u;
package/dist/index73.js CHANGED
@@ -1,11 +1,15 @@
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
- });
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { Provider as p } from "mobx-react";
3
+ const n = ({ children: r, Filters: o, Views: t, Notifications: e, Table: i }) => /* @__PURE__ */ m(
4
+ p,
5
+ {
6
+ Filters: o,
7
+ Views: t,
8
+ Notifications: e,
9
+ Table: i,
10
+ children: r
11
+ }
12
+ );
9
13
  export {
10
- u as getAsyncOptions
14
+ n as MobXProvider
11
15
  };
package/dist/index74.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index53.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;
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/index74.js CHANGED
@@ -1,19 +1,11 @@
1
- import { fetcherV1 as t, fetcherV2 as c } from "./index53.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;
16
- };
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
+ });
17
9
  export {
18
- h as getFetcherFunction
10
+ u as getAsyncOptions
19
11
  };
package/dist/index75.cjs CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./index54.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/index75.js CHANGED
@@ -1,21 +1,19 @@
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;
1
+ import { fetcherV1 as t, fetcherV2 as c } from "./index54.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
- return !1;
12
+ e = t;
13
+ break;
17
14
  }
15
+ return e;
18
16
  };
19
17
  export {
20
- s as isValidDateRange
18
+ h as getFetcherFunction
21
19
  };
package/dist/index76.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@internationalized/date"),f=require("./index68.cjs"),d=require("./index67.cjs"),u=require("./index8.cjs"),p=({view:r,canUpdateCustomViews:o})=>{var a;const{DATE_RANGE_FILTERS:i,NUMBER_RANGE_FILTERS:n}=u.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 f.RangeFilter(t);else{s=new f.RangeFilter("CUSTOM");const c=l.parseDate(t.gte),g=l.parseDate(t.lte);s.setDates(c,g)}return[e,s]})),numberRangeFilters:new Map(Object.entries(r.filters.filter||{}).filter(([e])=>n.includes(e)).map(([e,t])=>{const s=new d.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&&o,isShared:r.shared,columns:r.columns,sort:(a=r.filters)==null?void 0:a.sort}};exports.viewsAdapter=p;
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/index76.js CHANGED
@@ -1,52 +1,21 @@
1
- import { parseDate as a } from "@internationalized/date";
2
- import { RangeFilter as f } from "./index68.js";
3
- import { NumberRangeFilter as c } from "./index67.js";
4
- import { BusinessLogicManager as d } from "./index8.js";
5
- const R = ({
6
- view: r,
7
- canUpdateCustomViews: o
8
- }) => {
9
- var l;
10
- const { DATE_RANGE_FILTERS: i, NUMBER_RANGE_FILTERS: n } = d.getBusinessLogic();
11
- return {
12
- id: r.id,
13
- label: r.title,
14
- filterMaps: {
15
- filters: new Map(
16
- Object.entries(r.filters.filter || {}).filter(
17
- ([e, t]) => !Array.isArray(t) && !i.includes(e) && !n.includes(e)
18
- ).map(([e, t]) => [e, t])
19
- ),
20
- arrayFilters: new Map(
21
- Object.entries(r.filters.filter || {}).filter(([, e]) => Array.isArray(e)).map(([e, t]) => [e, t])
22
- ),
23
- rangeFilters: new Map(
24
- Object.entries(r.filters.filter || {}).filter(([e]) => i.includes(e)).map(([e, t]) => {
25
- let s;
26
- if (typeof t == "string")
27
- s = new f(t);
28
- else {
29
- s = new f("CUSTOM");
30
- const m = a(t.gte), p = a(t.lte);
31
- s.setDates(m, p);
32
- }
33
- return [e, s];
34
- })
35
- ),
36
- numberRangeFilters: new Map(
37
- Object.entries(r.filters.filter || {}).filter(([e]) => n.includes(e)).map(([e, t]) => {
38
- const s = new c({ filterId: e });
39
- return t.lte !== void 0 && s.setLte(Number(t.lte)), t.gte !== void 0 && s.setGte(Number(t.gte)), [e, s];
40
- })
41
- )
42
- },
43
- page: r.filters.page,
44
- editable: r.editable && o,
45
- isShared: r.shared,
46
- columns: r.columns,
47
- sort: (l = r.filters) == null ? void 0 : l.sort
48
- };
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
+ }
49
18
  };
50
19
  export {
51
- R as viewsAdapter
20
+ s as isValidDateRange
52
21
  };
package/dist/index77.cjs CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@internationalized/date"),f=require("./index69.cjs"),d=require("./index68.cjs"),u=require("./index9.cjs"),p=({view:r,canUpdateCustomViews:o})=>{var a;const{DATE_RANGE_FILTERS:i,NUMBER_RANGE_FILTERS:n}=u.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 f.RangeFilter(t);else{s=new f.RangeFilter("CUSTOM");const c=l.parseDate(t.gte),g=l.parseDate(t.lte);s.setDates(c,g)}return[e,s]})),numberRangeFilters:new Map(Object.entries(r.filters.filter||{}).filter(([e])=>n.includes(e)).map(([e,t])=>{const s=new d.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&&o,isShared:r.shared,columns:r.columns,sort:(a=r.filters)==null?void 0:a.sort}};exports.viewsAdapter=p;
package/dist/index77.js CHANGED
@@ -1,23 +1,52 @@
1
- const e = "all", l = () => ({
2
- id: "all",
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
- });
1
+ import { parseDate as a } from "@internationalized/date";
2
+ import { RangeFilter as f } from "./index69.js";
3
+ import { NumberRangeFilter as c } from "./index68.js";
4
+ import { BusinessLogicManager as d } from "./index9.js";
5
+ const R = ({
6
+ view: r,
7
+ canUpdateCustomViews: o
8
+ }) => {
9
+ var l;
10
+ const { DATE_RANGE_FILTERS: i, NUMBER_RANGE_FILTERS: n } = d.getBusinessLogic();
11
+ return {
12
+ id: r.id,
13
+ label: r.title,
14
+ filterMaps: {
15
+ filters: new Map(
16
+ Object.entries(r.filters.filter || {}).filter(
17
+ ([e, t]) => !Array.isArray(t) && !i.includes(e) && !n.includes(e)
18
+ ).map(([e, t]) => [e, t])
19
+ ),
20
+ arrayFilters: new Map(
21
+ Object.entries(r.filters.filter || {}).filter(([, e]) => Array.isArray(e)).map(([e, t]) => [e, t])
22
+ ),
23
+ rangeFilters: new Map(
24
+ Object.entries(r.filters.filter || {}).filter(([e]) => i.includes(e)).map(([e, t]) => {
25
+ let s;
26
+ if (typeof t == "string")
27
+ s = new f(t);
28
+ else {
29
+ s = new f("CUSTOM");
30
+ const m = a(t.gte), p = a(t.lte);
31
+ s.setDates(m, p);
32
+ }
33
+ return [e, s];
34
+ })
35
+ ),
36
+ numberRangeFilters: new Map(
37
+ Object.entries(r.filters.filter || {}).filter(([e]) => n.includes(e)).map(([e, t]) => {
38
+ const s = new c({ filterId: e });
39
+ return t.lte !== void 0 && s.setLte(Number(t.lte)), t.gte !== void 0 && s.setGte(Number(t.gte)), [e, s];
40
+ })
41
+ )
42
+ },
43
+ page: r.filters.page,
44
+ editable: r.editable && o,
45
+ isShared: r.shared,
46
+ columns: r.columns,
47
+ sort: (l = r.filters) == null ? void 0 : l.sort
48
+ };
49
+ };
20
50
  export {
21
- e as ALL_VIEW_ID,
22
- l as createAllView
51
+ R as viewsAdapter
23
52
  };
package/dist/index78.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index59.cjs"),t=e=>{o.useStores.mockImplementation(()=>({...e}))};exports.mockUseStores=t;
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/index78.js CHANGED
@@ -1,9 +1,23 @@
1
- import { useStores as e } from "./index59.js";
2
- const m = (o) => {
3
- e.mockImplementation(() => ({
4
- ...o
5
- }));
6
- };
1
+ const e = "all", l = () => ({
2
+ id: "all",
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
+ });
7
20
  export {
8
- m as mockUseStores
21
+ e as ALL_VIEW_ID,
22
+ l as createAllView
9
23
  };
package/dist/index79.cjs CHANGED
@@ -1 +1 @@
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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index60.cjs"),t=e=>{o.useStores.mockImplementation(()=>({...e}))};exports.mockUseStores=t;
package/dist/index79.js CHANGED
@@ -1,4 +1,9 @@
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 || {});
1
+ import { useStores as e } from "./index60.js";
2
+ const m = (o) => {
3
+ e.mockImplementation(() => ({
4
+ ...o
5
+ }));
6
+ };
2
7
  export {
3
- t as AxiosErrorType
8
+ m as mockUseStores
4
9
  };
package/dist/index8.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";var o=Object.defineProperty;var r=(e,t,s)=>t in e?o(e,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):e[t]=s;var p=(e,t,s)=>r(e,typeof t!="symbol"?t+"":t,s);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=class a{};p(a,"appData"),p(a,"setBusinessLogic",t=>{a.appData=t}),p(a,"getBusinessLogic",()=>{if(a.appData===void 0)throw new Error("Business logic has not been set");return a.appData});let i=a;exports.BusinessLogicManager=i;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),s=require("./index9.cjs"),i=()=>e.useMemo(()=>s.BusinessLogicManager.getBusinessLogic(),[]);exports.useBusinessLogic=i;