@veeqo/transfigure 2.3.0 → 2.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (210) hide show
  1. package/dist/constants/viewConstants.d.ts +2 -0
  2. package/dist/hooks/index.d.ts +1 -0
  3. package/dist/hooks/useCreateEmptyDraftView/index.d.ts +1 -0
  4. package/dist/hooks/useCreateEmptyDraftView/useCreateEmptyDraftView.d.ts +3 -0
  5. package/dist/index.cjs +1 -1
  6. package/dist/index.js +72 -70
  7. package/dist/index100.cjs +1 -1
  8. package/dist/index100.js +48 -19
  9. package/dist/index101.cjs +1 -1
  10. package/dist/index101.js +28 -17
  11. package/dist/index102.cjs +1 -1
  12. package/dist/index102.js +15 -24
  13. package/dist/index103.cjs +11 -18
  14. package/dist/index103.js +12 -20
  15. package/dist/index104.cjs +1 -1
  16. package/dist/index104.js +15 -14
  17. package/dist/index105.cjs +19 -1
  18. package/dist/index105.js +24 -7
  19. package/dist/index106.cjs +1 -12
  20. package/dist/index106.js +21 -16
  21. package/dist/index107.cjs +1 -1
  22. package/dist/index107.js +23 -49
  23. package/dist/index108.cjs +1 -1
  24. package/dist/index108.js +12 -29
  25. package/dist/index109.cjs +1 -1
  26. package/dist/index109.js +1 -1
  27. package/dist/index11.cjs +1 -1
  28. package/dist/index11.js +1 -1
  29. package/dist/index110.cjs +1 -1
  30. package/dist/index110.js +8 -18
  31. package/dist/index111.cjs +1 -1
  32. package/dist/index111.js +2 -8
  33. package/dist/index112.cjs +1 -1
  34. package/dist/index112.js +17 -59
  35. package/dist/index113.cjs +1 -1
  36. package/dist/index113.js +7 -29
  37. package/dist/index114.cjs +1 -1
  38. package/dist/index114.js +61 -2
  39. package/dist/index115.cjs +1 -13
  40. package/dist/index115.js +30 -17
  41. package/dist/index116.cjs +13 -1
  42. package/dist/index116.js +15 -24
  43. package/dist/index117.cjs +1 -1
  44. package/dist/index117.js +22 -32
  45. package/dist/index118.cjs +1 -1
  46. package/dist/index118.js +36 -5
  47. package/dist/index119.cjs +1 -1
  48. package/dist/index119.js +5 -63
  49. package/dist/index120.cjs +1 -7
  50. package/dist/index120.js +63 -10
  51. package/dist/index121.cjs +7 -1
  52. package/dist/index121.js +10 -47
  53. package/dist/index122.cjs +1 -0
  54. package/dist/index122.js +49 -0
  55. package/dist/index13.cjs +1 -1
  56. package/dist/index13.js +1 -1
  57. package/dist/index14.cjs +1 -1
  58. package/dist/index14.js +1 -1
  59. package/dist/index15.cjs +1 -1
  60. package/dist/index15.js +1 -1
  61. package/dist/index16.cjs +1 -1
  62. package/dist/index16.js +1 -1
  63. package/dist/index17.cjs +1 -1
  64. package/dist/index17.js +1 -1
  65. package/dist/index19.cjs +1 -1
  66. package/dist/index19.js +3 -3
  67. package/dist/index20.cjs +1 -1
  68. package/dist/index20.js +3 -3
  69. package/dist/index21.cjs +1 -1
  70. package/dist/index21.js +2 -2
  71. package/dist/index22.cjs +1 -1
  72. package/dist/index22.js +3 -3
  73. package/dist/index23.cjs +1 -1
  74. package/dist/index23.js +2 -2
  75. package/dist/index26.cjs +1 -1
  76. package/dist/index26.js +3 -3
  77. package/dist/index27.cjs +1 -1
  78. package/dist/index27.js +3 -3
  79. package/dist/index28.cjs +1 -1
  80. package/dist/index28.js +1 -1
  81. package/dist/index29.cjs +1 -1
  82. package/dist/index29.js +2 -2
  83. package/dist/index30.cjs +1 -1
  84. package/dist/index30.js +1 -1
  85. package/dist/index31.cjs +1 -1
  86. package/dist/index31.js +3 -3
  87. package/dist/index32.cjs +1 -1
  88. package/dist/index32.js +1 -1
  89. package/dist/index33.cjs +1 -1
  90. package/dist/index33.js +1 -1
  91. package/dist/index34.cjs +1 -1
  92. package/dist/index34.js +1 -1
  93. package/dist/index36.cjs +1 -1
  94. package/dist/index36.js +35 -35
  95. package/dist/index37.cjs +1 -1
  96. package/dist/index37.js +10 -10
  97. package/dist/index38.cjs +1 -1
  98. package/dist/index38.js +40 -37
  99. package/dist/index39.cjs +1 -1
  100. package/dist/index39.js +1 -1
  101. package/dist/index40.cjs +1 -1
  102. package/dist/index40.js +3 -3
  103. package/dist/index41.cjs +1 -1
  104. package/dist/index41.js +4 -4
  105. package/dist/index42.cjs +1 -1
  106. package/dist/index42.js +1 -1
  107. package/dist/index44.cjs +1 -1
  108. package/dist/index44.js +4 -4
  109. package/dist/index46.cjs +1 -1
  110. package/dist/index46.js +3 -3
  111. package/dist/index47.cjs +1 -1
  112. package/dist/index47.js +3 -3
  113. package/dist/index57.cjs +1 -1
  114. package/dist/index57.js +33 -33
  115. package/dist/index58.cjs +1 -1
  116. package/dist/index58.js +2 -2
  117. package/dist/index59.cjs +1 -1
  118. package/dist/index59.js +10 -23
  119. package/dist/index60.cjs +1 -1
  120. package/dist/index60.js +19 -22
  121. package/dist/index61.cjs +1 -1
  122. package/dist/index61.js +26 -96
  123. package/dist/index62.cjs +1 -1
  124. package/dist/index62.js +97 -8
  125. package/dist/index63.cjs +1 -1
  126. package/dist/index63.js +8 -33
  127. package/dist/index64.cjs +1 -1
  128. package/dist/index64.js +33 -63
  129. package/dist/index65.cjs +1 -1
  130. package/dist/index65.js +59 -19
  131. package/dist/index66.cjs +1 -1
  132. package/dist/index66.js +23 -18
  133. package/dist/index67.cjs +1 -1
  134. package/dist/index67.js +16 -29
  135. package/dist/index68.cjs +1 -1
  136. package/dist/index68.js +30 -60
  137. package/dist/index69.cjs +1 -1
  138. package/dist/index69.js +61 -376
  139. package/dist/index7.cjs +1 -1
  140. package/dist/index7.js +4 -4
  141. package/dist/index70.cjs +1 -1
  142. package/dist/index70.js +372 -53
  143. package/dist/index71.cjs +1 -1
  144. package/dist/index71.js +48 -47
  145. package/dist/index72.cjs +1 -1
  146. package/dist/index72.js +51 -32
  147. package/dist/index73.cjs +1 -1
  148. package/dist/index73.js +40 -24
  149. package/dist/index74.cjs +1 -1
  150. package/dist/index74.js +26 -32
  151. package/dist/index75.cjs +1 -1
  152. package/dist/index75.js +38 -4
  153. package/dist/index76.cjs +1 -1
  154. package/dist/index76.js +4 -13
  155. package/dist/index77.cjs +1 -1
  156. package/dist/index77.js +12 -16
  157. package/dist/index78.cjs +1 -1
  158. package/dist/index78.js +14 -16
  159. package/dist/index79.cjs +1 -1
  160. package/dist/index79.js +18 -65
  161. package/dist/index80.cjs +1 -1
  162. package/dist/index80.js +67 -24
  163. package/dist/index81.cjs +1 -1
  164. package/dist/index81.js +24 -21
  165. package/dist/index82.cjs +1 -1
  166. package/dist/index82.js +19 -6
  167. package/dist/index83.cjs +1 -1
  168. package/dist/index83.js +7 -2
  169. package/dist/index84.cjs +1 -1
  170. package/dist/index84.js +2 -9
  171. package/dist/index85.cjs +1 -3
  172. package/dist/index85.js +8 -13
  173. package/dist/index86.cjs +3 -1
  174. package/dist/index86.js +13 -8
  175. package/dist/index87.cjs +1 -1
  176. package/dist/index87.js +8 -4
  177. package/dist/index88.cjs +1 -1
  178. package/dist/index88.js +39 -115
  179. package/dist/index89.cjs +1 -1
  180. package/dist/index89.js +9 -41
  181. package/dist/index90.cjs +1 -1
  182. package/dist/index90.js +116 -8
  183. package/dist/index92.cjs +1 -1
  184. package/dist/index92.js +5 -13
  185. package/dist/index93.cjs +1 -104
  186. package/dist/index93.js +13 -119
  187. package/dist/index94.cjs +104 -1
  188. package/dist/index94.js +116 -65
  189. package/dist/index95.cjs +1 -1
  190. package/dist/index95.js +63 -23
  191. package/dist/index96.cjs +1 -1
  192. package/dist/index96.js +28 -2
  193. package/dist/index97.cjs +1 -1
  194. package/dist/index97.js +2 -41
  195. package/dist/index98.cjs +1 -1
  196. package/dist/index98.js +39 -9
  197. package/dist/index99.cjs +1 -1
  198. package/dist/index99.js +10 -8
  199. package/dist/mobx/Views/Views.d.ts +1 -0
  200. package/dist/types.d.ts +4 -7
  201. package/dist/utils/createEmptyTransformedView/createEmptyTransformedView.d.ts +6 -0
  202. package/dist/utils/createEmptyTransformedView/createEmptyTransformedView.test.d.ts +1 -0
  203. package/dist/utils/createEmptyTransformedView/index.d.ts +1 -0
  204. package/dist/utils/getViewTheme/getViewTheme.d.ts +10 -13
  205. package/dist/utils/index.d.ts +1 -1
  206. package/dist/utils/viewsAdapter/viewsAdapter.d.ts +1 -1
  207. package/package.json +1 -1
  208. package/dist/utils/createAllView/createAllView.d.ts +0 -3
  209. package/dist/utils/createAllView/index.d.ts +0 -1
  210. /package/dist/{utils/createAllView/createAllView.test.d.ts → hooks/useCreateEmptyDraftView/useCreateEmptyDraftView.test.d.ts} +0 -0
package/dist/index81.js CHANGED
@@ -1,23 +1,26 @@
1
- import { INITIAL_VIEWS_STATE as r } from "./index105.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;
20
- };
1
+ import { theme as r } from "@veeqo/ui";
2
+ const l = (e = {}) => ({
3
+ id: "",
4
+ label: "",
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: r.colors.secondary.blue,
22
+ ...e
23
+ });
21
24
  export {
22
- m as organiseViews
25
+ l as createEmptyTransformedView
23
26
  };
package/dist/index82.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./index62.cjs"),t=e=>{o.useStores.mockImplementation(()=>({...e}))};exports.mockUseStores=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index108.cjs"),w=require("./index80.cjs"),V=({data:n,canUpdateCustomViews:l})=>{const o={fixedViews:[...i.INITIAL_VIEWS_STATE.fixedViews],customViews:[...i.INITIAL_VIEWS_STATE.customViews],viewsMap:new Map(i.INITIAL_VIEWS_STATE.viewsMap)};if(!n)return o;let u=!1;const t=n.reduce((e,s)=>{const r=w.viewsAdapter({view:s,canUpdateCustomViews:l});return e.viewsMap.set(s.id,r),s.editable?e.customViews.push(r):e.fixedViews.push(r),s.title==="All"&&(u=!0),e},o);return u&&(t.viewsMap.delete(i.ALL_VIEW_ID),t.fixedViews.shift()),t};exports.organiseViews=V;
package/dist/index82.js CHANGED
@@ -1,9 +1,22 @@
1
- import { useStores as e } from "./index62.js";
2
- const m = (o) => {
3
- e.mockImplementation(() => ({
4
- ...o
5
- }));
1
+ import { INITIAL_VIEWS_STATE as r, ALL_VIEW_ID as u } from "./index108.js";
2
+ import { viewsAdapter as V } from "./index80.js";
3
+ const p = ({ data: o, canUpdateCustomViews: w }) => {
4
+ const f = {
5
+ fixedViews: [...r.fixedViews],
6
+ customViews: [...r.customViews],
7
+ viewsMap: new Map(r.viewsMap)
8
+ };
9
+ if (!o) return f;
10
+ let l = !1;
11
+ const i = o.reduce(
12
+ (e, s) => {
13
+ const t = V({ view: s, canUpdateCustomViews: w });
14
+ return e.viewsMap.set(s.id, t), s.editable ? e.customViews.push(t) : e.fixedViews.push(t), s.title === "All" && (l = !0), e;
15
+ },
16
+ f
17
+ );
18
+ return l && (i.viewsMap.delete(u), i.fixedViews.shift()), i;
6
19
  };
7
20
  export {
8
- m as mockUseStores
21
+ p as organiseViews
9
22
  };
package/dist/index83.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("./index63.cjs"),t=e=>{o.useStores.mockImplementation(()=>({...e}))};exports.mockUseStores=t;
package/dist/index83.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 "./index63.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/index84.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/index84.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/index85.cjs CHANGED
@@ -1,3 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("./index114.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/index85.js CHANGED
@@ -1,16 +1,11 @@
1
- import { isError as l } from "./index114.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/index86.cjs CHANGED
@@ -1 +1,3 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index114.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("./index111.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/index86.js CHANGED
@@ -1,11 +1,16 @@
1
- import { isError as c } from "./index114.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 "./index111.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/index87.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_actionsHeaderContainer_fgqms_1",t={actionsHeaderContainer:e};exports.actionsHeaderContainer=e;exports.default=t;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("./index111.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/index87.js CHANGED
@@ -1,7 +1,11 @@
1
- const e = "_actionsHeaderContainer_fgqms_1", a = {
2
- actionsHeaderContainer: e
1
+ import { isError as c } from "./index111.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})`));
3
8
  };
4
9
  export {
5
- e as actionsHeaderContainer,
6
- a as default
10
+ s as injectIntoError
7
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"),o=require("./index93.cjs"),w=require("./index94.cjs"),T=require("./index95.cjs"),r=require("./index96.cjs"),D=require("./index97.cjs"),V=require("./index49.cjs"),b=require("./index98.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react"),w=require("react-use"),L=require("./index8.cjs"),m=require("./index63.cjs"),v=require("./index69.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/index88.js CHANGED
@@ -1,119 +1,43 @@
1
- import { jsx as e, jsxs as s } from "react/jsx-runtime";
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
- 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 R, VerticalSeparator as X, VerticalText as E, HeaderContainer as Y, ColumnSearch as j } from "./index93.js";
6
- import { DndContainer as N } from "./index94.js";
7
- import { ColumnItem as Q } from "./index95.js";
8
- import { ColumnGroupIds as n } from "./index96.js";
9
- import { usePersistColumns as U } from "./index97.js";
10
- import { helpGuideUrls as P } from "./index49.js";
11
- import { filterColumnsBySearch as D } from "./index98.js";
12
- const te = ({
13
- onClose: l,
14
- columnDefinitions: k,
15
- hiddenColumns: c,
16
- visibleColumns: d,
17
- pinnedLeftColumnIds: H,
18
- pinnedRightColumnIds: I
19
- }) => {
20
- const [o, b] = w(""), a = f(() => new Map(k.map((i) => [i.id, i])), []), [t, u] = w(() => ({
21
- [n.Hidden]: c,
22
- [n.Visible]: d
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 = () => {
30
- b(""), u({
31
- [n.Hidden]: c,
32
- [n.Visible]: d
33
- });
34
- }, C = y(
35
- (i) => {
36
- if (b(i), !i) {
37
- const r = /* @__PURE__ */ new Set([...c, ...d]);
38
- u((S) => ({
39
- [n.Hidden]: S[n.Hidden].filter((g) => r.has(`${g}`)),
40
- [n.Visible]: S[n.Visible].filter((g) => r.has(`${g}`))
41
- }));
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 "./index63.js";
5
+ import { useUrlParams as v } from "./index69.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;
42
32
  }
33
+ const d = e !== c;
34
+ d && (a(e), u(d));
43
35
  },
44
- [c, d]
45
- ), G = y(
46
- (i) => {
47
- const r = a.get(`${i}`);
48
- return r ? /* @__PURE__ */ e(Q, { column: r, isDragOverlay: !0 }) : null;
49
- },
50
- [a]
51
- );
52
- return /* @__PURE__ */ e(
53
- O,
54
- {
55
- variant: "lg",
56
- style: { overflowY: "hidden" },
57
- shouldShow: !0,
58
- onClose: () => l == null ? void 0 : l(),
59
- headerSlot: /* @__PURE__ */ s(Y, { children: [
60
- /* @__PURE__ */ s(h, { direction: "horizontal", alignX: "between", alignY: "center", children: [
61
- /* @__PURE__ */ s(h, { direction: "horizontal", alignX: "start", alignY: "center", spacing: "sm", children: [
62
- /* @__PURE__ */ e(_, { height: v.sizes.lg, width: v.sizes.lg }),
63
- /* @__PURE__ */ e(p, { variant: "headingLarge", as: "h1", children: "Table management" })
64
- ] }),
65
- /* @__PURE__ */ e($, { "aria-label": "Close modal", onClick: l, variant: "flat", iconSlot: /* @__PURE__ */ e(z, {}) })
66
- ] }),
67
- /* @__PURE__ */ s(p, { variant: "subheadingMedium", children: [
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",
69
- " ",
70
- /* @__PURE__ */ e(B, { href: P.ORDER_VIEWS_AND_TABLE_CUSTOMIZATION, target: "_blank", children: "help guide" }),
71
- "."
72
- ] }),
73
- /* @__PURE__ */ e(p, { variant: "headingSmall", children: "Column management" }),
74
- /* @__PURE__ */ e(
75
- j,
76
- {
77
- name: "column-search-query",
78
- placeholder: "Search",
79
- value: o,
80
- onChange: C,
81
- onClearClick: () => C(""),
82
- fill: "100%"
83
- }
84
- )
85
- ] }),
86
- leftActions: [
87
- {
88
- label: "Reset",
89
- onClick: A,
90
- variant: "default",
91
- disabled: m
92
- }
93
- ],
94
- rightActions: [
95
- {
96
- label: "Cancel",
97
- onClick: l,
98
- variant: "default",
99
- disabled: m
100
- },
101
- {
102
- label: "Save",
103
- onClick: () => x({ visibleColumns: t[n.Visible] }),
104
- variant: "primary",
105
- disabled: m,
106
- loading: m
107
- }
108
- ],
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 })
113
- ] }) }) }) }) })
114
- }
115
- );
116
- };
36
+ l ? null : D
37
+ ), { hasChanges: l, acknowledgeButtonClick: async () => {
38
+ u(!1), o(i), a(await r());
39
+ } };
40
+ }
117
41
  export {
118
- te as TableManagementModal
42
+ T as usePollData
119
43
  };
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("./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;
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/index89.js CHANGED
@@ -1,43 +1,11 @@
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
- }
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
+ };
41
6
  export {
42
- T as usePollData
7
+ o as default,
8
+ r as refreshButton,
9
+ t as refreshIndicator,
10
+ e as refreshTooltip
43
11
  };
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 e=require("react/jsx-runtime"),n=require("@veeqo/ui"),t=require("react"),j=require("./index93.cjs"),o=require("./index94.cjs"),w=require("./index95.cjs"),T=require("./index96.cjs"),r=require("./index97.cjs"),D=require("./index98.cjs"),V=require("./index49.cjs"),b=require("./index99.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/index90.js CHANGED
@@ -1,11 +1,119 @@
1
- const e = "_refreshTooltip_v0eu8_1", r = "_refreshButton_v0eu8_5", t = "_refreshIndicator_v0eu8_9", o = {
2
- refreshTooltip: e,
3
- refreshButton: r,
4
- refreshIndicator: t
1
+ import { jsx as e, jsxs as s } from "react/jsx-runtime";
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
+ import { useState as w, useMemo as f, useCallback as y } from "react";
4
+ import { ColumnGroup as V } from "./index93.js";
5
+ import { Container as L, ColumnGroupsGrid as R, VerticalSeparator as X, VerticalText as E, HeaderContainer as Y, ColumnSearch as j } from "./index94.js";
6
+ import { DndContainer as N } from "./index95.js";
7
+ import { ColumnItem as Q } from "./index96.js";
8
+ import { ColumnGroupIds as n } from "./index97.js";
9
+ import { usePersistColumns as U } from "./index98.js";
10
+ import { helpGuideUrls as P } from "./index49.js";
11
+ import { filterColumnsBySearch as D } from "./index99.js";
12
+ const te = ({
13
+ onClose: l,
14
+ columnDefinitions: k,
15
+ hiddenColumns: c,
16
+ visibleColumns: d,
17
+ pinnedLeftColumnIds: H,
18
+ pinnedRightColumnIds: I
19
+ }) => {
20
+ const [o, b] = w(""), a = f(() => new Map(k.map((i) => [i.id, i])), []), [t, u] = w(() => ({
21
+ [n.Hidden]: c,
22
+ [n.Visible]: d
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 = () => {
30
+ b(""), u({
31
+ [n.Hidden]: c,
32
+ [n.Visible]: d
33
+ });
34
+ }, C = y(
35
+ (i) => {
36
+ if (b(i), !i) {
37
+ const r = /* @__PURE__ */ new Set([...c, ...d]);
38
+ u((S) => ({
39
+ [n.Hidden]: S[n.Hidden].filter((g) => r.has(`${g}`)),
40
+ [n.Visible]: S[n.Visible].filter((g) => r.has(`${g}`))
41
+ }));
42
+ }
43
+ },
44
+ [c, d]
45
+ ), G = y(
46
+ (i) => {
47
+ const r = a.get(`${i}`);
48
+ return r ? /* @__PURE__ */ e(Q, { column: r, isDragOverlay: !0 }) : null;
49
+ },
50
+ [a]
51
+ );
52
+ return /* @__PURE__ */ e(
53
+ O,
54
+ {
55
+ variant: "lg",
56
+ style: { overflowY: "hidden" },
57
+ shouldShow: !0,
58
+ onClose: () => l == null ? void 0 : l(),
59
+ headerSlot: /* @__PURE__ */ s(Y, { children: [
60
+ /* @__PURE__ */ s(h, { direction: "horizontal", alignX: "between", alignY: "center", children: [
61
+ /* @__PURE__ */ s(h, { direction: "horizontal", alignX: "start", alignY: "center", spacing: "sm", children: [
62
+ /* @__PURE__ */ e(_, { height: v.sizes.lg, width: v.sizes.lg }),
63
+ /* @__PURE__ */ e(p, { variant: "headingLarge", as: "h1", children: "Table management" })
64
+ ] }),
65
+ /* @__PURE__ */ e($, { "aria-label": "Close modal", onClick: l, variant: "flat", iconSlot: /* @__PURE__ */ e(z, {}) })
66
+ ] }),
67
+ /* @__PURE__ */ s(p, { variant: "subheadingMedium", children: [
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",
69
+ " ",
70
+ /* @__PURE__ */ e(B, { href: P.ORDER_VIEWS_AND_TABLE_CUSTOMIZATION, target: "_blank", children: "help guide" }),
71
+ "."
72
+ ] }),
73
+ /* @__PURE__ */ e(p, { variant: "headingSmall", children: "Column management" }),
74
+ /* @__PURE__ */ e(
75
+ j,
76
+ {
77
+ name: "column-search-query",
78
+ placeholder: "Search",
79
+ value: o,
80
+ onChange: C,
81
+ onClearClick: () => C(""),
82
+ fill: "100%"
83
+ }
84
+ )
85
+ ] }),
86
+ leftActions: [
87
+ {
88
+ label: "Reset",
89
+ onClick: A,
90
+ variant: "default",
91
+ disabled: m
92
+ }
93
+ ],
94
+ rightActions: [
95
+ {
96
+ label: "Cancel",
97
+ onClick: l,
98
+ variant: "default",
99
+ disabled: m
100
+ },
101
+ {
102
+ label: "Save",
103
+ onClick: () => x({ visibleColumns: t[n.Visible] }),
104
+ variant: "primary",
105
+ disabled: m,
106
+ loading: m
107
+ }
108
+ ],
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 })
113
+ ] }) }) }) }) })
114
+ }
115
+ );
5
116
  };
6
117
  export {
7
- o as default,
8
- r as refreshButton,
9
- t as refreshIndicator,
10
- e as refreshTooltip
118
+ te as TableManagementModal
11
119
  };
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("./index110.cjs"),l=require("./index111.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.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e="_actionsHeaderContainer_fgqms_1",t={actionsHeaderContainer:e};exports.actionsHeaderContainer=e;exports.default=t;
package/dist/index92.js CHANGED
@@ -1,15 +1,7 @@
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 "./index110.js";
5
- import { DroppableArea as d } from "./index111.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
+ const e = "_actionsHeaderContainer_fgqms_1", a = {
2
+ actionsHeaderContainer: e
3
+ };
13
4
  export {
14
- I as ColumnGroup
5
+ e as actionsHeaderContainer,
6
+ a as default
15
7
  };