@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.
Files changed (217) hide show
  1. package/dist/constants/helpGuideUrls.d.ts +3 -0
  2. package/dist/constants/index.d.ts +1 -0
  3. package/dist/index.cjs +1 -1
  4. package/dist/index.js +81 -79
  5. package/dist/index100.cjs +1 -1
  6. package/dist/index100.js +10 -14
  7. package/dist/index101.cjs +1 -1
  8. package/dist/index101.js +24 -21
  9. package/dist/index102.cjs +18 -11
  10. package/dist/index102.js +20 -12
  11. package/dist/index103.cjs +1 -1
  12. package/dist/index103.js +49 -6
  13. package/dist/index104.cjs +1 -1
  14. package/dist/index104.js +29 -50
  15. package/dist/index105.cjs +1 -1
  16. package/dist/index105.js +12 -26
  17. package/dist/index106.cjs +10 -78
  18. package/dist/index106.js +13 -95
  19. package/dist/index107.cjs +1 -1
  20. package/dist/index107.js +21 -24
  21. package/dist/index108.cjs +80 -1
  22. package/dist/index108.js +98 -2
  23. package/dist/index109.cjs +1 -1
  24. package/dist/index109.js +2 -19
  25. package/dist/index110.cjs +1 -1
  26. package/dist/index110.js +18 -7
  27. package/dist/index111.cjs +1 -1
  28. package/dist/index111.js +7 -63
  29. package/dist/index112.cjs +1 -1
  30. package/dist/index112.js +57 -26
  31. package/dist/index113.cjs +1 -13
  32. package/dist/index113.js +30 -17
  33. package/dist/index114.cjs +1 -1
  34. package/dist/index114.js +32 -22
  35. package/dist/index115.cjs +13 -1
  36. package/dist/index115.js +14 -33
  37. package/dist/index116.cjs +1 -7
  38. package/dist/index116.js +26 -10
  39. package/dist/index118.cjs +1 -1
  40. package/dist/index118.js +1 -1
  41. package/dist/index119.cjs +7 -1
  42. package/dist/index119.js +10 -47
  43. package/dist/index120.cjs +1 -0
  44. package/dist/index120.js +49 -0
  45. package/dist/index13.cjs +1 -1
  46. package/dist/index13.js +2 -2
  47. package/dist/index14.cjs +1 -1
  48. package/dist/index14.js +1 -1
  49. package/dist/index15.cjs +1 -1
  50. package/dist/index15.js +1 -1
  51. package/dist/index16.cjs +1 -1
  52. package/dist/index16.js +2 -2
  53. package/dist/index17.cjs +1 -1
  54. package/dist/index17.js +2 -2
  55. package/dist/index18.cjs +1 -1
  56. package/dist/index18.js +1 -1
  57. package/dist/index19.cjs +1 -1
  58. package/dist/index19.js +4 -4
  59. package/dist/index20.cjs +1 -1
  60. package/dist/index20.js +2 -2
  61. package/dist/index21.cjs +1 -1
  62. package/dist/index21.js +2 -2
  63. package/dist/index22.cjs +1 -1
  64. package/dist/index22.js +2 -2
  65. package/dist/index23.cjs +1 -1
  66. package/dist/index23.js +3 -3
  67. package/dist/index26.cjs +1 -1
  68. package/dist/index26.js +4 -4
  69. package/dist/index27.cjs +1 -1
  70. package/dist/index27.js +4 -4
  71. package/dist/index28.cjs +1 -1
  72. package/dist/index28.js +1 -1
  73. package/dist/index29.cjs +1 -1
  74. package/dist/index29.js +2 -2
  75. package/dist/index3.cjs +1 -1
  76. package/dist/index3.js +2 -2
  77. package/dist/index30.cjs +1 -1
  78. package/dist/index30.js +3 -3
  79. package/dist/index31.cjs +1 -1
  80. package/dist/index31.js +3 -3
  81. package/dist/index32.cjs +1 -1
  82. package/dist/index32.js +1 -1
  83. package/dist/index33.cjs +1 -1
  84. package/dist/index33.js +1 -1
  85. package/dist/index34.cjs +1 -1
  86. package/dist/index34.js +1 -1
  87. package/dist/index35.cjs +1 -1
  88. package/dist/index35.js +1 -1
  89. package/dist/index36.cjs +1 -1
  90. package/dist/index36.js +6 -6
  91. package/dist/index37.cjs +1 -1
  92. package/dist/index37.js +1 -1
  93. package/dist/index38.cjs +1 -1
  94. package/dist/index38.js +1 -1
  95. package/dist/index39.cjs +1 -1
  96. package/dist/index39.js +3 -3
  97. package/dist/index4.cjs +1 -1
  98. package/dist/index4.js +2 -2
  99. package/dist/index40.cjs +1 -1
  100. package/dist/index40.js +3 -3
  101. package/dist/index41.cjs +1 -1
  102. package/dist/index41.js +4 -4
  103. package/dist/index42.cjs +1 -1
  104. package/dist/index42.js +2 -2
  105. package/dist/index44.cjs +1 -1
  106. package/dist/index44.js +4 -4
  107. package/dist/index46.cjs +1 -1
  108. package/dist/index46.js +4 -4
  109. package/dist/index47.cjs +1 -1
  110. package/dist/index47.js +3 -3
  111. package/dist/index49.cjs +1 -1
  112. package/dist/index49.js +4 -9
  113. package/dist/index5.cjs +1 -1
  114. package/dist/index5.js +2 -2
  115. package/dist/index50.cjs +1 -1
  116. package/dist/index50.js +9 -23
  117. package/dist/index51.cjs +1 -1
  118. package/dist/index51.js +23 -2
  119. package/dist/index52.cjs +1 -1
  120. package/dist/index52.js +2 -4
  121. package/dist/index53.cjs +1 -1
  122. package/dist/index53.js +4 -11
  123. package/dist/index54.cjs +1 -1
  124. package/dist/index54.js +10 -12
  125. package/dist/index55.cjs +1 -1
  126. package/dist/index55.js +12 -11
  127. package/dist/index56.cjs +1 -1
  128. package/dist/index56.js +11 -184
  129. package/dist/index57.cjs +1 -1
  130. package/dist/index57.js +183 -25
  131. package/dist/index58.cjs +1 -1
  132. package/dist/index58.js +26 -24
  133. package/dist/index59.cjs +1 -1
  134. package/dist/index59.js +19 -22
  135. package/dist/index6.cjs +1 -1
  136. package/dist/index6.js +2 -2
  137. package/dist/index60.cjs +1 -1
  138. package/dist/index60.js +25 -97
  139. package/dist/index61.cjs +1 -1
  140. package/dist/index61.js +99 -8
  141. package/dist/index62.cjs +1 -1
  142. package/dist/index62.js +8 -33
  143. package/dist/index63.cjs +1 -1
  144. package/dist/index63.js +33 -63
  145. package/dist/index64.cjs +1 -1
  146. package/dist/index64.js +59 -19
  147. package/dist/index65.cjs +1 -1
  148. package/dist/index65.js +23 -18
  149. package/dist/index66.cjs +1 -1
  150. package/dist/index66.js +16 -29
  151. package/dist/index67.cjs +1 -1
  152. package/dist/index67.js +30 -59
  153. package/dist/index68.cjs +1 -1
  154. package/dist/index68.js +60 -349
  155. package/dist/index69.cjs +1 -1
  156. package/dist/index69.js +345 -53
  157. package/dist/index7.cjs +1 -1
  158. package/dist/index7.js +4 -4
  159. package/dist/index70.cjs +1 -1
  160. package/dist/index70.js +48 -47
  161. package/dist/index71.cjs +1 -1
  162. package/dist/index71.js +51 -32
  163. package/dist/index72.cjs +1 -1
  164. package/dist/index72.js +30 -24
  165. package/dist/index73.cjs +1 -1
  166. package/dist/index73.js +26 -32
  167. package/dist/index74.cjs +1 -1
  168. package/dist/index74.js +38 -4
  169. package/dist/index75.cjs +1 -1
  170. package/dist/index75.js +4 -13
  171. package/dist/index76.cjs +1 -1
  172. package/dist/index76.js +12 -16
  173. package/dist/index77.cjs +1 -1
  174. package/dist/index77.js +14 -16
  175. package/dist/index78.cjs +1 -1
  176. package/dist/index78.js +18 -65
  177. package/dist/index79.cjs +1 -1
  178. package/dist/index79.js +66 -24
  179. package/dist/index80.cjs +1 -1
  180. package/dist/index80.js +24 -21
  181. package/dist/index81.cjs +1 -1
  182. package/dist/index81.js +20 -6
  183. package/dist/index82.cjs +1 -1
  184. package/dist/index82.js +7 -2
  185. package/dist/index83.cjs +1 -1
  186. package/dist/index83.js +2 -9
  187. package/dist/index84.cjs +1 -3
  188. package/dist/index84.js +8 -13
  189. package/dist/index85.cjs +3 -1
  190. package/dist/index85.js +13 -8
  191. package/dist/index86.cjs +1 -1
  192. package/dist/index86.js +9 -2
  193. package/dist/index88.cjs +1 -1
  194. package/dist/index88.js +40 -39
  195. package/dist/index89.cjs +1 -1
  196. package/dist/index89.js +2 -41
  197. package/dist/index90.cjs +1 -1
  198. package/dist/index90.js +41 -9
  199. package/dist/index91.cjs +1 -1
  200. package/dist/index91.js +8 -17
  201. package/dist/index92.cjs +1 -1
  202. package/dist/index92.js +18 -13
  203. package/dist/index93.cjs +1 -104
  204. package/dist/index93.js +7 -119
  205. package/dist/index94.cjs +1 -1
  206. package/dist/index94.js +13 -68
  207. package/dist/index95.cjs +104 -1
  208. package/dist/index95.js +118 -27
  209. package/dist/index96.cjs +1 -1
  210. package/dist/index96.js +68 -2
  211. package/dist/index97.cjs +1 -1
  212. package/dist/index97.js +26 -39
  213. package/dist/index98.cjs +1 -1
  214. package/dist/index98.js +2 -11
  215. package/dist/index99.cjs +1 -19
  216. package/dist/index99.js +41 -24
  217. package/package.json +1 -1
package/dist/index80.js CHANGED
@@ -1,23 +1,26 @@
1
- import { INITIAL_VIEWS_STATE as r } from "./index103.js";
2
- import { ALL_VIEW_ID as p } from "./index79.js";
3
- import { viewsAdapter as u } from "./index78.js";
4
- const m = ({ data: o, canUpdateCustomViews: w }) => {
5
- const f = {
6
- fixedViews: [...r.fixedViews],
7
- customViews: [...r.customViews],
8
- viewsMap: new Map(r.viewsMap)
9
- };
10
- if (!o) return f;
11
- let l = !1;
12
- const s = o.reduce(
13
- (e, i) => {
14
- const t = u({ view: i, canUpdateCustomViews: w });
15
- return e.viewsMap.set(i.id, t), i.editable ? e.customViews.push(t) : e.fixedViews.push(t), i.title === "All" && (l = !0), e;
16
- },
17
- f
18
- );
19
- return l && (s.viewsMap.delete(p), s.fixedViews.shift()), s;
20
- };
1
+ import { theme as e } from "@veeqo/ui";
2
+ const l = "all", a = () => ({
3
+ id: l,
4
+ label: "All",
5
+ viewFilters: {},
6
+ filterMaps: {
7
+ filters: /* @__PURE__ */ new Map(),
8
+ arrayFilters: /* @__PURE__ */ new Map(),
9
+ rangeFilters: /* @__PURE__ */ new Map(),
10
+ numberRangeFilters: /* @__PURE__ */ new Map()
11
+ },
12
+ page: {
13
+ size: 10
14
+ },
15
+ editable: !1,
16
+ isShared: !1,
17
+ columns: {
18
+ columnIds: [],
19
+ columnWidths: {}
20
+ },
21
+ colourPalette: e.colors.secondary.blue
22
+ });
21
23
  export {
22
- m as organiseViews
24
+ l as ALL_VIEW_ID,
25
+ a as createAllView
23
26
  };
package/dist/index81.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index61.cjs"),t=e=>{o.useStores.mockImplementation(()=>({...e}))};exports.mockUseStores=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./index93.cjs"),w=require("./index80.cjs"),V=require("./index79.cjs"),d=({data:n,canUpdateCustomViews:u})=>{const l={fixedViews:[...r.INITIAL_VIEWS_STATE.fixedViews],customViews:[...r.INITIAL_VIEWS_STATE.customViews],viewsMap:new Map(r.INITIAL_VIEWS_STATE.viewsMap)};if(!n)return l;let o=!1;const i=n.reduce((e,s)=>{const t=V.viewsAdapter({view:s,canUpdateCustomViews:u});return e.viewsMap.set(s.id,t),s.editable?e.customViews.push(t):e.fixedViews.push(t),s.title==="All"&&(o=!0),e},l);return o&&(i.viewsMap.delete(w.ALL_VIEW_ID),i.fixedViews.shift()),i};exports.organiseViews=d;
package/dist/index81.js CHANGED
@@ -1,9 +1,23 @@
1
- import { useStores as e } from "./index61.js";
2
- const m = (o) => {
3
- e.mockImplementation(() => ({
4
- ...o
5
- }));
1
+ import { INITIAL_VIEWS_STATE as r } from "./index93.js";
2
+ import { ALL_VIEW_ID as p } from "./index80.js";
3
+ import { viewsAdapter as u } from "./index79.js";
4
+ const m = ({ data: o, canUpdateCustomViews: w }) => {
5
+ const f = {
6
+ fixedViews: [...r.fixedViews],
7
+ customViews: [...r.customViews],
8
+ viewsMap: new Map(r.viewsMap)
9
+ };
10
+ if (!o) return f;
11
+ let l = !1;
12
+ const s = o.reduce(
13
+ (e, i) => {
14
+ const t = u({ view: i, canUpdateCustomViews: w });
15
+ return e.viewsMap.set(i.id, t), i.editable ? e.customViews.push(t) : e.fixedViews.push(t), i.title === "All" && (l = !0), e;
16
+ },
17
+ f
18
+ );
19
+ return l && (s.viewsMap.delete(p), s.fixedViews.shift()), s;
6
20
  };
7
21
  export {
8
- m as mockUseStores
22
+ m as organiseViews
9
23
  };
package/dist/index82.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("./index62.cjs"),t=e=>{o.useStores.mockImplementation(()=>({...e}))};exports.mockUseStores=t;
package/dist/index82.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 "./index62.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/index83.cjs CHANGED
@@ -1 +1 @@
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;
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/index83.js CHANGED
@@ -1,11 +1,4 @@
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;
7
- };
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 || {});
8
2
  export {
9
- o as filterOptionalArgs,
10
- i as filterOptionalArgsGetDelete
3
+ t as AxiosErrorType
11
4
  };
package/dist/index84.cjs CHANGED
@@ -1,3 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index108.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;
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/index84.js CHANGED
@@ -1,16 +1,11 @@
1
- import { isError as l } from "./index108.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;
11
- }
12
- return e;
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;
13
7
  };
14
8
  export {
15
- s as filterErrorStack
9
+ o as filterOptionalArgs,
10
+ i as filterOptionalArgsGetDelete
16
11
  };
package/dist/index85.cjs CHANGED
@@ -1 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index108.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index109.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/index85.js CHANGED
@@ -1,11 +1,16 @@
1
- import { isError as c } from "./index108.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})`));
1
+ import { isError as l } from "./index109.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;
11
+ }
12
+ return e;
8
13
  };
9
14
  export {
10
- s as injectIntoError
15
+ s as filterErrorStack
11
16
  };
package/dist/index86.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=t=>t.trim().length>=3||t.trim().length===0;exports.isTextFilterValid=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index109.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/index86.js CHANGED
@@ -1,4 +1,11 @@
1
- const i = (t) => t.trim().length >= 3 || t.trim().length === 0;
1
+ import { isError as c } from "./index109.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
+ };
2
9
  export {
3
- i as isTextFilterValid
10
+ s as injectIntoError
4
11
  };
package/dist/index88.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("@veeqo/ui"),t=require("react"),j=require("./index92.cjs"),i=require("./index93.cjs"),q=require("./index94.cjs"),D=require("./index95.cjs"),s=require("./index96.cjs"),T=require("./index97.cjs"),b=require("./index98.cjs"),V=({onClose:u,columnDefinitions:G,hiddenColumns:d,visibleColumns:m,pinnedLeftColumnIds:I,pinnedRightColumnIds:f})=>{const[c,p]=t.useState(""),a=t.useMemo(()=>new Map(G.map(r=>[r.id,r])),[]),[o,g]=t.useState(()=>({[s.ColumnGroupIds.Hidden]:d,[s.ColumnGroupIds.Visible]:m})),y=t.useMemo(()=>{const r=o[s.ColumnGroupIds.Visible].map(l=>a.get(`${l}`));return b.filterColumnsBySearch(r,c)},[o,a,c]),v=t.useMemo(()=>{const r=o[s.ColumnGroupIds.Hidden].map(l=>a.get(`${l}`));return b.filterColumnsBySearch(r,c)},[o,a,c]),{isSavingColumns:h,saveColumns:k}=T.usePersistColumns({pinnedLeftColumnIds:I,pinnedRightColumnIds:f}),M=()=>{p(""),g({[s.ColumnGroupIds.Hidden]:d,[s.ColumnGroupIds.Visible]:m})},x=t.useCallback(r=>{if(p(r),!r){const l=new Set([...d,...m]);g(S=>({[s.ColumnGroupIds.Hidden]:S[s.ColumnGroupIds.Hidden].filter(C=>l.has(`${C}`)),[s.ColumnGroupIds.Visible]:S[s.ColumnGroupIds.Visible].filter(C=>l.has(`${C}`))}))}},[d,m]),w=t.useCallback(r=>{const l=a.get(`${r}`);return l?e.jsx(D.ColumnItem,{column:l,isDragOverlay:!0}):null},[a]);return e.jsx(n.Modal,{variant:"lg",style:{overflowY:"hidden"},shouldShow:!0,onClose:()=>u==null?void 0:u(),headerSlot:e.jsxs(i.HeaderContainer,{children:[e.jsxs(n.Stack,{direction:"horizontal",alignX:"between",alignY:"center",children:[e.jsxs(n.Stack,{direction:"horizontal",alignX:"start",alignY:"center",spacing:"sm",children:[e.jsx(n.ListBoardIcon,{height:n.theme.sizes.lg,width:n.theme.sizes.lg}),e.jsx(n.Text,{variant:"headingLarge",as:"h1",children:"Table management"})]}),e.jsx(n.Button,{"aria-label":"Close modal",onClick:u,variant:"flat",iconSlot:e.jsx(n.CloseIcon,{})})]}),e.jsxs(n.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(n.Anchor,{href:"#",target:"_blank",children:"help guide (TODO)"}),"."]}),e.jsx(n.Text,{variant:"headingSmall",children:"Column management"}),e.jsx(i.ColumnSearch,{name:"column-search-query",placeholder:"Search",value:c,onChange:x,onClearClick:()=>x(""),fill:"100%"})]}),leftActions:[{label:"Reset",onClick:M,variant:"default",disabled:h}],rightActions:[{label:"Cancel",onClick:u,variant:"default",disabled:h},{label:"Save",onClick:()=>k({visibleColumns:o[s.ColumnGroupIds.Visible]}),variant:"primary",disabled:h,loading:h}],children:e.jsx(n.Stack,{spacing:"md",alignX:"stretch",children:e.jsx(n.Stack,{spacing:4,alignX:"stretch",children:e.jsx(q.DndContainer,{items:o,setItems:g,renderDragOverlay:w,children:e.jsx(i.Container,{children:e.jsxs(i.ColumnGroupsGrid,{columns:2,spacing:"xl",children:[e.jsx(j.ColumnGroup,{id:s.ColumnGroupIds.Visible,title:"Shown columns:",columns:y}),e.jsx(i.VerticalSeparator,{children:e.jsx(i.VerticalText,{children:"Drag & Drop columns"})}),e.jsx(j.ColumnGroup,{id:s.ColumnGroupIds.Hidden,title:"Hidden columns:",columns:v})]})})})})})})};exports.TableManagementModal=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),n=require("@veeqo/ui"),t=require("react"),j=require("./index94.cjs"),o=require("./index95.cjs"),w=require("./index96.cjs"),T=require("./index97.cjs"),r=require("./index98.cjs"),D=require("./index99.cjs"),V=require("./index49.cjs"),b=require("./index100.cjs"),H=({onClose:u,columnDefinitions:I,hiddenColumns:d,visibleColumns:m,pinnedLeftColumnIds:G,pinnedRightColumnIds:f})=>{const[c,p]=t.useState(""),a=t.useMemo(()=>new Map(I.map(s=>[s.id,s])),[]),[i,C]=t.useState(()=>({[r.ColumnGroupIds.Hidden]:d,[r.ColumnGroupIds.Visible]:m})),y=t.useMemo(()=>{const s=i[r.ColumnGroupIds.Visible].map(l=>a.get(`${l}`));return b.filterColumnsBySearch(s,c)},[i,a,c]),v=t.useMemo(()=>{const s=i[r.ColumnGroupIds.Hidden].map(l=>a.get(`${l}`));return b.filterColumnsBySearch(s,c)},[i,a,c]),{isSavingColumns:h,saveColumns:M}=D.usePersistColumns({pinnedLeftColumnIds:G,pinnedRightColumnIds:f}),k=()=>{p(""),C({[r.ColumnGroupIds.Hidden]:d,[r.ColumnGroupIds.Visible]:m})},x=t.useCallback(s=>{if(p(s),!s){const l=new Set([...d,...m]);C(S=>({[r.ColumnGroupIds.Hidden]:S[r.ColumnGroupIds.Hidden].filter(g=>l.has(`${g}`)),[r.ColumnGroupIds.Visible]:S[r.ColumnGroupIds.Visible].filter(g=>l.has(`${g}`))}))}},[d,m]),q=t.useCallback(s=>{const l=a.get(`${s}`);return l?e.jsx(T.ColumnItem,{column:l,isDragOverlay:!0}):null},[a]);return e.jsx(n.Modal,{variant:"lg",style:{overflowY:"hidden"},shouldShow:!0,onClose:()=>u==null?void 0:u(),headerSlot:e.jsxs(o.HeaderContainer,{children:[e.jsxs(n.Stack,{direction:"horizontal",alignX:"between",alignY:"center",children:[e.jsxs(n.Stack,{direction:"horizontal",alignX:"start",alignY:"center",spacing:"sm",children:[e.jsx(n.ListBoardIcon,{height:n.theme.sizes.lg,width:n.theme.sizes.lg}),e.jsx(n.Text,{variant:"headingLarge",as:"h1",children:"Table management"})]}),e.jsx(n.Button,{"aria-label":"Close modal",onClick:u,variant:"flat",iconSlot:e.jsx(n.CloseIcon,{})})]}),e.jsxs(n.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(n.Anchor,{href:V.helpGuideUrls.ORDER_VIEWS_AND_TABLE_CUSTOMIZATION,target:"_blank",children:"help guide"}),"."]}),e.jsx(n.Text,{variant:"headingSmall",children:"Column management"}),e.jsx(o.ColumnSearch,{name:"column-search-query",placeholder:"Search",value:c,onChange:x,onClearClick:()=>x(""),fill:"100%"})]}),leftActions:[{label:"Reset",onClick:k,variant:"default",disabled:h}],rightActions:[{label:"Cancel",onClick:u,variant:"default",disabled:h},{label:"Save",onClick:()=>M({visibleColumns:i[r.ColumnGroupIds.Visible]}),variant:"primary",disabled:h,loading:h}],children:e.jsx(n.Stack,{spacing:"md",alignX:"stretch",children:e.jsx(n.Stack,{spacing:4,alignX:"stretch",children:e.jsx(w.DndContainer,{items:i,setItems:C,renderDragOverlay:q,children:e.jsx(o.Container,{children:e.jsxs(o.ColumnGroupsGrid,{columns:2,spacing:"xl",children:[e.jsx(j.ColumnGroup,{id:r.ColumnGroupIds.Visible,title:"Shown columns:",columns:y}),e.jsx(o.VerticalSeparator,{children:e.jsx(o.VerticalText,{children:"Drag & Drop columns"})}),e.jsx(j.ColumnGroup,{id:r.ColumnGroupIds.Hidden,title:"Hidden columns:",columns:v})]})})})})})})};exports.TableManagementModal=H;
package/dist/index88.js CHANGED
@@ -1,31 +1,32 @@
1
1
  import { jsx as e, jsxs as s } from "react/jsx-runtime";
2
- import { Modal as G, Stack as h, ListBoardIcon as O, theme as v, Text as p, Button as X, CloseIcon as A, Anchor as B } from "@veeqo/ui";
2
+ import { Modal as O, Stack as h, ListBoardIcon as _, theme as v, Text as p, Button as $, CloseIcon as z, Anchor as B } from "@veeqo/ui";
3
3
  import { useState as w, useMemo as f, useCallback as y } from "react";
4
- import { ColumnGroup as V } from "./index92.js";
5
- import { Container as L, ColumnGroupsGrid as Y, VerticalSeparator as j, VerticalText as Q, HeaderContainer as R, ColumnSearch as P } from "./index93.js";
6
- import { DndContainer as _ } from "./index94.js";
7
- import { ColumnItem as q } from "./index95.js";
8
- import { ColumnGroupIds as n } from "./index96.js";
9
- import { usePersistColumns as E } from "./index97.js";
10
- import { filterColumnsBySearch as k } from "./index98.js";
11
- const ae = ({
4
+ import { ColumnGroup as V } from "./index94.js";
5
+ import { Container as L, ColumnGroupsGrid as R, VerticalSeparator as X, VerticalText as E, HeaderContainer as Y, ColumnSearch as j } from "./index95.js";
6
+ import { DndContainer as N } from "./index96.js";
7
+ import { ColumnItem as Q } from "./index97.js";
8
+ import { ColumnGroupIds as n } from "./index98.js";
9
+ import { usePersistColumns as U } from "./index99.js";
10
+ import { helpGuideUrls as P } from "./index49.js";
11
+ import { filterColumnsBySearch as D } from "./index100.js";
12
+ const te = ({
12
13
  onClose: l,
13
- columnDefinitions: D,
14
+ columnDefinitions: k,
14
15
  hiddenColumns: c,
15
16
  visibleColumns: d,
16
17
  pinnedLeftColumnIds: H,
17
- pinnedRightColumnIds: M
18
+ pinnedRightColumnIds: I
18
19
  }) => {
19
- const [o, b] = w(""), r = f(() => new Map(D.map((i) => [i.id, i])), []), [t, u] = w(() => ({
20
+ const [o, b] = w(""), a = f(() => new Map(k.map((i) => [i.id, i])), []), [t, u] = w(() => ({
20
21
  [n.Hidden]: c,
21
22
  [n.Visible]: d
22
- })), x = f(() => {
23
- const i = t[n.Visible].map((a) => r.get(`${a}`));
24
- return k(i, o);
25
- }, [t, r, o]), I = f(() => {
26
- const i = t[n.Hidden].map((a) => r.get(`${a}`));
27
- return k(i, o);
28
- }, [t, r, o]), { isSavingColumns: m, saveColumns: T } = E({ pinnedLeftColumnIds: H, pinnedRightColumnIds: M }), $ = () => {
23
+ })), M = f(() => {
24
+ const i = t[n.Visible].map((r) => a.get(`${r}`));
25
+ return D(i, o);
26
+ }, [t, a, o]), T = f(() => {
27
+ const i = t[n.Hidden].map((r) => a.get(`${r}`));
28
+ return D(i, o);
29
+ }, [t, a, o]), { isSavingColumns: m, saveColumns: x } = U({ pinnedLeftColumnIds: H, pinnedRightColumnIds: I }), A = () => {
29
30
  b(""), u({
30
31
  [n.Hidden]: c,
31
32
  [n.Visible]: d
@@ -33,45 +34,45 @@ const ae = ({
33
34
  }, C = y(
34
35
  (i) => {
35
36
  if (b(i), !i) {
36
- const a = /* @__PURE__ */ new Set([...c, ...d]);
37
+ const r = /* @__PURE__ */ new Set([...c, ...d]);
37
38
  u((S) => ({
38
- [n.Hidden]: S[n.Hidden].filter((g) => a.has(`${g}`)),
39
- [n.Visible]: S[n.Visible].filter((g) => a.has(`${g}`))
39
+ [n.Hidden]: S[n.Hidden].filter((g) => r.has(`${g}`)),
40
+ [n.Visible]: S[n.Visible].filter((g) => r.has(`${g}`))
40
41
  }));
41
42
  }
42
43
  },
43
44
  [c, d]
44
- ), z = y(
45
+ ), G = y(
45
46
  (i) => {
46
- const a = r.get(`${i}`);
47
- return a ? /* @__PURE__ */ e(q, { column: a, isDragOverlay: !0 }) : null;
47
+ const r = a.get(`${i}`);
48
+ return r ? /* @__PURE__ */ e(Q, { column: r, isDragOverlay: !0 }) : null;
48
49
  },
49
- [r]
50
+ [a]
50
51
  );
51
52
  return /* @__PURE__ */ e(
52
- G,
53
+ O,
53
54
  {
54
55
  variant: "lg",
55
56
  style: { overflowY: "hidden" },
56
57
  shouldShow: !0,
57
58
  onClose: () => l == null ? void 0 : l(),
58
- headerSlot: /* @__PURE__ */ s(R, { children: [
59
+ headerSlot: /* @__PURE__ */ s(Y, { children: [
59
60
  /* @__PURE__ */ s(h, { direction: "horizontal", alignX: "between", alignY: "center", children: [
60
61
  /* @__PURE__ */ s(h, { direction: "horizontal", alignX: "start", alignY: "center", spacing: "sm", children: [
61
- /* @__PURE__ */ e(O, { height: v.sizes.lg, width: v.sizes.lg }),
62
+ /* @__PURE__ */ e(_, { height: v.sizes.lg, width: v.sizes.lg }),
62
63
  /* @__PURE__ */ e(p, { variant: "headingLarge", as: "h1", children: "Table management" })
63
64
  ] }),
64
- /* @__PURE__ */ e(X, { "aria-label": "Close modal", onClick: l, variant: "flat", iconSlot: /* @__PURE__ */ e(A, {}) })
65
+ /* @__PURE__ */ e($, { "aria-label": "Close modal", onClick: l, variant: "flat", iconSlot: /* @__PURE__ */ e(z, {}) })
65
66
  ] }),
66
67
  /* @__PURE__ */ s(p, { variant: "subheadingMedium", children: [
67
68
  "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",
68
69
  " ",
69
- /* @__PURE__ */ e(B, { href: "#", target: "_blank", children: "help guide (TODO)" }),
70
+ /* @__PURE__ */ e(B, { href: P.ORDER_VIEWS_AND_TABLE_CUSTOMIZATION, target: "_blank", children: "help guide" }),
70
71
  "."
71
72
  ] }),
72
73
  /* @__PURE__ */ e(p, { variant: "headingSmall", children: "Column management" }),
73
74
  /* @__PURE__ */ e(
74
- P,
75
+ j,
75
76
  {
76
77
  name: "column-search-query",
77
78
  placeholder: "Search",
@@ -85,7 +86,7 @@ const ae = ({
85
86
  leftActions: [
86
87
  {
87
88
  label: "Reset",
88
- onClick: $,
89
+ onClick: A,
89
90
  variant: "default",
90
91
  disabled: m
91
92
  }
@@ -99,20 +100,20 @@ const ae = ({
99
100
  },
100
101
  {
101
102
  label: "Save",
102
- onClick: () => T({ visibleColumns: t[n.Visible] }),
103
+ onClick: () => x({ visibleColumns: t[n.Visible] }),
103
104
  variant: "primary",
104
105
  disabled: m,
105
106
  loading: m
106
107
  }
107
108
  ],
108
- children: /* @__PURE__ */ e(h, { spacing: "md", alignX: "stretch", children: /* @__PURE__ */ e(h, { spacing: 4, alignX: "stretch", children: /* @__PURE__ */ e(_, { items: t, setItems: u, renderDragOverlay: z, children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(Y, { columns: 2, spacing: "xl", children: [
109
- /* @__PURE__ */ e(V, { id: n.Visible, title: "Shown columns:", columns: x }),
110
- /* @__PURE__ */ e(j, { children: /* @__PURE__ */ e(Q, { children: "Drag & Drop columns" }) }),
111
- /* @__PURE__ */ e(V, { id: n.Hidden, title: "Hidden columns:", columns: I })
109
+ children: /* @__PURE__ */ e(h, { spacing: "md", alignX: "stretch", children: /* @__PURE__ */ e(h, { spacing: 4, alignX: "stretch", children: /* @__PURE__ */ e(N, { items: t, setItems: u, renderDragOverlay: G, children: /* @__PURE__ */ e(L, { children: /* @__PURE__ */ s(R, { columns: 2, spacing: "xl", children: [
110
+ /* @__PURE__ */ e(V, { id: n.Visible, title: "Shown columns:", columns: M }),
111
+ /* @__PURE__ */ e(X, { children: /* @__PURE__ */ e(E, { children: "Drag & Drop columns" }) }),
112
+ /* @__PURE__ */ e(V, { id: n.Hidden, title: "Hidden columns:", columns: T })
112
113
  ] }) }) }) }) })
113
114
  }
114
115
  );
115
116
  };
116
117
  export {
117
- ae as TableManagementModal
118
+ te as TableManagementModal
118
119
  };
package/dist/index89.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),w=require("react-use"),L=require("./index8.cjs"),m=require("./index61.cjs"),v=require("./index67.cjs"),q=require("./index55.cjs");function V(){const{TABLE_DATA_URL:h}=L.useBusinessLogic(),{Filters:{pageSize:s,activeViewId:n}}=m.useStores(),{queryParams:S}=v.useUrlParams();async function c(){const e=`${h}?${S}`,g=await q.fetcherV2(e);return JSON.stringify(g)}const[u,a]=t.useState(null),[o,l]=t.useState(!1),[f,C]=t.useState(n),[y,P]=t.useState(s),i=3e5,[D,r]=t.useState(i);return t.useEffect(()=>{const e=()=>{document.hidden?r(null):r(i)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),w.useInterval(async()=>{const e=await c();if(u===null||f!==n||y!==s){a(e),C(n),P(s);return}const d=e!==u;d&&(a(e),l(d))},o?null:D),{hasChanges:o,acknowledgeButtonClick:async()=>{l(!1),r(i),a(await c())}}}exports.usePollData=V;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=t=>t.trim().length>=3||t.trim().length===0;exports.isTextFilterValid=e;
package/dist/index89.js CHANGED
@@ -1,43 +1,4 @@
1
- import { useState as t, useEffect as p } from "react";
2
- import { useInterval as P } from "react-use";
3
- import { useBusinessLogic as S } from "./index8.js";
4
- import { useStores as L } from "./index61.js";
5
- import { useUrlParams as v } from "./index67.js";
6
- import { fetcherV2 as V } from "./index55.js";
7
- function T() {
8
- const { TABLE_DATA_URL: h } = S(), {
9
- Filters: {
10
- pageSize: n,
11
- activeViewId: s
12
- }
13
- } = L(), { queryParams: m } = v();
14
- async function r() {
15
- const e = `${h}?${m}`, g = await V(e);
16
- return JSON.stringify(g);
17
- }
18
- const [c, a] = t(null), [l, u] = t(!1), [f, C] = t(s), [w, y] = t(n), i = 3e5, [D, o] = t(i);
19
- return p(() => {
20
- const e = () => {
21
- document.hidden ? o(null) : o(i);
22
- };
23
- return document.addEventListener("visibilitychange", e), () => {
24
- document.removeEventListener("visibilitychange", e);
25
- };
26
- }, []), P(
27
- async () => {
28
- const e = await r();
29
- if (c === null || f !== s || w !== n) {
30
- a(e), C(s), y(n);
31
- return;
32
- }
33
- const d = e !== c;
34
- d && (a(e), u(d));
35
- },
36
- l ? null : D
37
- ), { hasChanges: l, acknowledgeButtonClick: async () => {
38
- u(!1), o(i), a(await r());
39
- } };
40
- }
1
+ const i = (t) => t.trim().length >= 3 || t.trim().length === 0;
41
2
  export {
42
- T as usePollData
3
+ i as isTextFilterValid
43
4
  };
package/dist/index90.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_refreshTooltip_v0eu8_1",r="_refreshButton_v0eu8_5",t="_refreshIndicator_v0eu8_9",o={refreshTooltip:e,refreshButton:r,refreshIndicator:t};exports.default=o;exports.refreshButton=r;exports.refreshIndicator=t;exports.refreshTooltip=e;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),w=require("react-use"),L=require("./index8.cjs"),m=require("./index62.cjs"),v=require("./index68.cjs"),q=require("./index56.cjs");function V(){const{TABLE_DATA_URL:h}=L.useBusinessLogic(),{Filters:{pageSize:s,activeViewId:n}}=m.useStores(),{queryParams:S}=v.useUrlParams();async function c(){const e=`${h}?${S}`,g=await q.fetcherV2(e);return JSON.stringify(g)}const[u,a]=t.useState(null),[o,l]=t.useState(!1),[f,C]=t.useState(n),[y,P]=t.useState(s),i=3e5,[D,r]=t.useState(i);return t.useEffect(()=>{const e=()=>{document.hidden?r(null):r(i)};return document.addEventListener("visibilitychange",e),()=>{document.removeEventListener("visibilitychange",e)}},[]),w.useInterval(async()=>{const e=await c();if(u===null||f!==n||y!==s){a(e),C(n),P(s);return}const d=e!==u;d&&(a(e),l(d))},o?null:D),{hasChanges:o,acknowledgeButtonClick:async()=>{l(!1),r(i),a(await c())}}}exports.usePollData=V;
package/dist/index90.js CHANGED
@@ -1,11 +1,43 @@
1
- const e = "_refreshTooltip_v0eu8_1", r = "_refreshButton_v0eu8_5", t = "_refreshIndicator_v0eu8_9", o = {
2
- refreshTooltip: e,
3
- refreshButton: r,
4
- refreshIndicator: t
5
- };
1
+ import { useState as t, useEffect as p } from "react";
2
+ import { useInterval as P } from "react-use";
3
+ import { useBusinessLogic as S } from "./index8.js";
4
+ import { useStores as L } from "./index62.js";
5
+ import { useUrlParams as v } from "./index68.js";
6
+ import { fetcherV2 as V } from "./index56.js";
7
+ function T() {
8
+ const { TABLE_DATA_URL: h } = S(), {
9
+ Filters: {
10
+ pageSize: n,
11
+ activeViewId: s
12
+ }
13
+ } = L(), { queryParams: m } = v();
14
+ async function r() {
15
+ const e = `${h}?${m}`, g = await V(e);
16
+ return JSON.stringify(g);
17
+ }
18
+ const [c, a] = t(null), [l, u] = t(!1), [f, C] = t(s), [w, y] = t(n), i = 3e5, [D, o] = t(i);
19
+ return p(() => {
20
+ const e = () => {
21
+ document.hidden ? o(null) : o(i);
22
+ };
23
+ return document.addEventListener("visibilitychange", e), () => {
24
+ document.removeEventListener("visibilitychange", e);
25
+ };
26
+ }, []), P(
27
+ async () => {
28
+ const e = await r();
29
+ if (c === null || f !== s || w !== n) {
30
+ a(e), C(s), y(n);
31
+ return;
32
+ }
33
+ const d = e !== c;
34
+ d && (a(e), u(d));
35
+ },
36
+ l ? null : D
37
+ ), { hasChanges: l, acknowledgeButtonClick: async () => {
38
+ u(!1), o(i), a(await r());
39
+ } };
40
+ }
6
41
  export {
7
- o as default,
8
- r as refreshButton,
9
- t as refreshIndicator,
10
- e as refreshTooltip
42
+ T as usePollData
11
43
  };
package/dist/index91.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@veeqo/ui"),r=require("./index2.cjs"),s=o=>{let e={colourPalette:t.theme.colors.secondary.blue,customTextColour:void 0};switch(o){case r.ViewStatusTypes.ERROR:e={colourPalette:t.theme.colors.secondary.red,customTextColour:void 0};break}return e};exports.getViewTheme=s;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_refreshTooltip_v0eu8_1",r="_refreshButton_v0eu8_5",t="_refreshIndicator_v0eu8_9",o={refreshTooltip:e,refreshButton:r,refreshIndicator:t};exports.default=o;exports.refreshButton=r;exports.refreshIndicator=t;exports.refreshTooltip=e;
package/dist/index91.js CHANGED
@@ -1,20 +1,11 @@
1
- import { theme as o } from "@veeqo/ui";
2
- import { ViewStatusTypes as r } from "./index2.js";
3
- const l = (t) => {
4
- let e = {
5
- colourPalette: o.colors.secondary.blue,
6
- customTextColour: void 0
7
- };
8
- switch (t) {
9
- case r.ERROR:
10
- e = {
11
- colourPalette: o.colors.secondary.red,
12
- customTextColour: void 0
13
- };
14
- break;
15
- }
16
- return e;
1
+ const e = "_refreshTooltip_v0eu8_1", r = "_refreshButton_v0eu8_5", t = "_refreshIndicator_v0eu8_9", o = {
2
+ refreshTooltip: e,
3
+ refreshButton: r,
4
+ refreshIndicator: t
17
5
  };
18
6
  export {
19
- l as getViewTheme
7
+ o as default,
8
+ r as refreshButton,
9
+ t as refreshIndicator,
10
+ e as refreshTooltip
20
11
  };
package/dist/index92.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),o=require("@veeqo/ui"),s=require("@dnd-kit/sortable"),a=require("./index109.cjs"),l=require("./index110.cjs"),c=require("./index95.cjs"),u=require("./index96.cjs"),d=require("./index93.cjs"),m=({id:r,title:n,columns:i})=>e.jsxs(o.Stack,{spacing:"sm",alignX:"stretch",children:[e.jsx(d.StickyText,{variant:"bodyBold",children:n}),e.jsx(s.SortableContext,{id:r,items:i,strategy:s.verticalListSortingStrategy,children:e.jsx(l.DroppableArea,{id:r,spacing:"sm",alignX:"stretch",children:i.map(t=>e.jsx(a.SortableItem,{id:t.id,children:e.jsx(c.ColumnItem,{column:t,isHidden:r===u.ColumnGroupIds.Hidden})},t.id))})})]});exports.ColumnGroup=m;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("@veeqo/ui"),r=require("./index2.cjs"),s=o=>{let e={colourPalette:t.theme.colors.secondary.blue,customTextColour:void 0};switch(o){case r.ViewStatusTypes.ERROR:e={colourPalette:t.theme.colors.secondary.red,customTextColour:void 0};break}return e};exports.getViewTheme=s;
package/dist/index92.js CHANGED
@@ -1,15 +1,20 @@
1
- import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
- import { Stack as n } from "@veeqo/ui";
3
- import { SortableContext as p, verticalListSortingStrategy as a } from "@dnd-kit/sortable";
4
- import { SortableItem as s } from "./index109.js";
5
- import { DroppableArea as d } from "./index110.js";
6
- import { ColumnItem as l } from "./index95.js";
7
- import { ColumnGroupIds as c } from "./index96.js";
8
- import { StickyText as f } from "./index93.js";
9
- const I = ({ id: t, title: e, columns: o }) => /* @__PURE__ */ m(n, { spacing: "sm", alignX: "stretch", children: [
10
- /* @__PURE__ */ r(f, { variant: "bodyBold", children: e }),
11
- /* @__PURE__ */ r(p, { id: t, items: o, strategy: a, children: /* @__PURE__ */ r(d, { id: t, spacing: "sm", alignX: "stretch", children: o.map((i) => /* @__PURE__ */ r(s, { id: i.id, children: /* @__PURE__ */ r(l, { column: i, isHidden: t === c.Hidden }) }, i.id)) }) })
12
- ] });
1
+ import { theme as o } from "@veeqo/ui";
2
+ import { ViewStatusTypes as r } from "./index2.js";
3
+ const l = (t) => {
4
+ let e = {
5
+ colourPalette: o.colors.secondary.blue,
6
+ customTextColour: void 0
7
+ };
8
+ switch (t) {
9
+ case r.ERROR:
10
+ e = {
11
+ colourPalette: o.colors.secondary.red,
12
+ customTextColour: void 0
13
+ };
14
+ break;
15
+ }
16
+ return e;
17
+ };
13
18
  export {
14
- I as ColumnGroup
19
+ l as getViewTheme
15
20
  };