@veeqo/transfigure 0.0.10 → 0.0.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index102.cjs CHANGED
@@ -1 +1,7 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const n=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[n.Translate.toString(t),n.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:i}=t;return e+" "+r+"ms "+i}}});exports.CSS=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),e=require("@veeqo/ui"),a=t=>t&&t.__esModule?t:{default:t},i=a(o),s=i.default(e.BaseContainer)`
2
+ padding: ${e.theme.sizes.sm};
3
+ // This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
4
+ // with an additional sizes.base offset at the bottom.
5
+ max-height: calc(100vh ${({offset:t})=>t&&`- ${t}px`} - ${e.theme.sizes.base});
6
+ overflow-y: auto;
7
+ `;exports.AdaptiveStyledContainer=s;
package/dist/index102.js CHANGED
@@ -1,44 +1,12 @@
1
- import "react";
2
- const n = /* @__PURE__ */ Object.freeze({
3
- Translate: {
4
- toString(t) {
5
- if (!t)
6
- return;
7
- const {
8
- x: r,
9
- y: e
10
- } = t;
11
- return "translate3d(" + (r ? Math.round(r) : 0) + "px, " + (e ? Math.round(e) : 0) + "px, 0)";
12
- }
13
- },
14
- Scale: {
15
- toString(t) {
16
- if (!t)
17
- return;
18
- const {
19
- scaleX: r,
20
- scaleY: e
21
- } = t;
22
- return "scaleX(" + r + ") scaleY(" + e + ")";
23
- }
24
- },
25
- Transform: {
26
- toString(t) {
27
- if (t)
28
- return [n.Translate.toString(t), n.Scale.toString(t)].join(" ");
29
- }
30
- },
31
- Transition: {
32
- toString(t) {
33
- let {
34
- property: r,
35
- duration: e,
36
- easing: i
37
- } = t;
38
- return r + " " + e + "ms " + i;
39
- }
40
- }
41
- });
1
+ import o from "styled-components";
2
+ import { theme as e, BaseContainer as i } from "@veeqo/ui";
3
+ const h = o(i)`
4
+ padding: ${e.sizes.sm};
5
+ // This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
6
+ // with an additional sizes.base offset at the bottom.
7
+ max-height: calc(100vh ${({ offset: t }) => t && `- ${t}px`} - ${e.sizes.base});
8
+ overflow-y: auto;
9
+ `;
42
10
  export {
43
- n as CSS
11
+ h as AdaptiveStyledContainer
44
12
  };
package/dist/index103.cjs CHANGED
@@ -1,7 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("styled-components"),e=require("@veeqo/ui"),a=t=>t&&t.__esModule?t:{default:t},i=a(o),s=i.default(e.BaseContainer)`
2
- padding: ${e.theme.sizes.sm};
3
- // This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
4
- // with an additional sizes.base offset at the bottom.
5
- max-height: calc(100vh ${({offset:t})=>t&&`- ${t}px`} - ${e.theme.sizes.base});
6
- overflow-y: auto;
7
- `;exports.AdaptiveStyledContainer=s;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("react");const n=Object.freeze({Translate:{toString(t){if(!t)return;const{x:e,y:r}=t;return"translate3d("+(e?Math.round(e):0)+"px, "+(r?Math.round(r):0)+"px, 0)"}},Scale:{toString(t){if(!t)return;const{scaleX:e,scaleY:r}=t;return"scaleX("+e+") scaleY("+r+")"}},Transform:{toString(t){if(t)return[n.Translate.toString(t),n.Scale.toString(t)].join(" ")}},Transition:{toString(t){let{property:e,duration:r,easing:i}=t;return e+" "+r+"ms "+i}}});exports.CSS=n;
package/dist/index103.js CHANGED
@@ -1,12 +1,44 @@
1
- import o from "styled-components";
2
- import { theme as e, BaseContainer as i } from "@veeqo/ui";
3
- const h = o(i)`
4
- padding: ${e.sizes.sm};
5
- // This calculation limits the height to a max of 100% of the viewport and uses offset as the position of the CTA button
6
- // with an additional sizes.base offset at the bottom.
7
- max-height: calc(100vh ${({ offset: t }) => t && `- ${t}px`} - ${e.sizes.base});
8
- overflow-y: auto;
9
- `;
1
+ import "react";
2
+ const n = /* @__PURE__ */ Object.freeze({
3
+ Translate: {
4
+ toString(t) {
5
+ if (!t)
6
+ return;
7
+ const {
8
+ x: r,
9
+ y: e
10
+ } = t;
11
+ return "translate3d(" + (r ? Math.round(r) : 0) + "px, " + (e ? Math.round(e) : 0) + "px, 0)";
12
+ }
13
+ },
14
+ Scale: {
15
+ toString(t) {
16
+ if (!t)
17
+ return;
18
+ const {
19
+ scaleX: r,
20
+ scaleY: e
21
+ } = t;
22
+ return "scaleX(" + r + ") scaleY(" + e + ")";
23
+ }
24
+ },
25
+ Transform: {
26
+ toString(t) {
27
+ if (t)
28
+ return [n.Translate.toString(t), n.Scale.toString(t)].join(" ");
29
+ }
30
+ },
31
+ Transition: {
32
+ toString(t) {
33
+ let {
34
+ property: r,
35
+ duration: e,
36
+ easing: i
37
+ } = t;
38
+ return r + " " + e + "ms " + i;
39
+ }
40
+ }
41
+ });
10
42
  export {
11
- h as AdaptiveStyledContainer
43
+ n as CSS
12
44
  };
package/dist/index20.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),b=require("mobx-react"),r=require("@veeqo/ui"),F=require("./index63.cjs"),R=require("./index98.cjs"),h=require("./index57.cjs"),x=b.observer(({filterData:i})=>{const{Filters:{numberRangeFilters:o,clearNumberRangeFilter:u,setNumberRangeFilter:d}}=h.useStores(),e=o.get(i.id),[s,a]=l.useState(e),c=l.useCallback(()=>{const n=new F.NumberRangeFilter({filterId:i.id});return e&&(e.gte&&n.setGte(e.gte),e.lte&&n.setLte(e.lte)),n},[i.id,e]);l.useEffect(()=>{const n=c();a(n)},[c,e]);const g=()=>{u(i.id)},m=()=>{!e||!s||d({numberRange:e,lte:s.lte,gte:s.gte})};return t.jsx(r.FilterTag,{shouldCloseOnClickAway:!0,header:t.jsx("div",{children:"Edit filter (style and semant me pls)"}),label:i.label,text:(e==null?void 0:e.filterLabel)||"Loading...",content:t.jsx(r.BaseContainer,{style:{padding:r.theme.sizes.md},children:t.jsx(R.FilterNumberRangeFilter,{data:i,editedValue:s,setEditedValue:a})}),footer:t.jsx(r.BaseContainer,{style:{padding:r.theme.sizes.sm,width:"200px"},children:t.jsxs(r.Stack,{direction:"horizontal",alignX:"end",children:[t.jsx(r.Button,{variant:"default",size:"sm",onClick:g,children:"Clear"}),t.jsx(r.Button,{variant:"primary",size:"sm",onClick:m,children:"Apply"})]})})})});exports.ActiveFilterNumberRangeTag=x;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("react/jsx-runtime"),l=require("react"),b=require("mobx-react"),r=require("@veeqo/ui"),F=require("./index63.cjs"),R=require("./index94.cjs"),h=require("./index57.cjs"),x=b.observer(({filterData:i})=>{const{Filters:{numberRangeFilters:o,clearNumberRangeFilter:u,setNumberRangeFilter:d}}=h.useStores(),e=o.get(i.id),[s,a]=l.useState(e),c=l.useCallback(()=>{const n=new F.NumberRangeFilter({filterId:i.id});return e&&(e.gte&&n.setGte(e.gte),e.lte&&n.setLte(e.lte)),n},[i.id,e]);l.useEffect(()=>{const n=c();a(n)},[c,e]);const g=()=>{u(i.id)},m=()=>{!e||!s||d({numberRange:e,lte:s.lte,gte:s.gte})};return t.jsx(r.FilterTag,{shouldCloseOnClickAway:!0,header:t.jsx("div",{children:"Edit filter (style and semant me pls)"}),label:i.label,text:(e==null?void 0:e.filterLabel)||"Loading...",content:t.jsx(r.BaseContainer,{style:{padding:r.theme.sizes.md},children:t.jsx(R.FilterNumberRangeFilter,{data:i,editedValue:s,setEditedValue:a})}),footer:t.jsx(r.BaseContainer,{style:{padding:r.theme.sizes.sm,width:"200px"},children:t.jsxs(r.Stack,{direction:"horizontal",alignX:"end",children:[t.jsx(r.Button,{variant:"default",size:"sm",onClick:g,children:"Clear"}),t.jsx(r.Button,{variant:"primary",size:"sm",onClick:m,children:"Apply"})]})})})});exports.ActiveFilterNumberRangeTag=x;
package/dist/index20.js CHANGED
@@ -3,7 +3,7 @@ import { useState as b, useCallback as f, useEffect as h } from "react";
3
3
  import { observer as R } from "mobx-react";
4
4
  import { FilterTag as v, BaseContainer as o, theme as a, Stack as y, Button as d } from "@veeqo/ui";
5
5
  import { NumberRangeFilter as C } from "./index63.js";
6
- import { FilterNumberRangeFilter as N } from "./index98.js";
6
+ import { FilterNumberRangeFilter as N } from "./index94.js";
7
7
  import { useStores as w } from "./index57.js";
8
8
  const j = R(
9
9
  ({ filterData: r }) => {
package/dist/index31.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("mobx-react"),n=require("@veeqo/ui"),o=require("./index7.cjs"),u=require("./index86.cjs"),c=require("./index32.cjs"),a=s.observer(()=>{const{GROUP_MAP:t}=o.useBusinessLogic();return e.jsx(u.AdaptiveHeightContainer,{style:{minWidth:"360px"},children:e.jsx(n.Stack,{alignX:"stretch",children:Array.from(t).map(([r,i])=>e.jsx(c.FilterGroup,{data:i},r))})})});exports.FiltersList=a;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),s=require("mobx-react"),n=require("@veeqo/ui"),o=require("./index7.cjs"),u=require("./index87.cjs"),c=require("./index32.cjs"),a=s.observer(()=>{const{GROUP_MAP:t}=o.useBusinessLogic();return e.jsx(u.AdaptiveHeightContainer,{style:{minWidth:"360px"},children:e.jsx(n.Stack,{alignX:"stretch",children:Array.from(t).map(([r,i])=>e.jsx(c.FilterGroup,{data:i},r))})})});exports.FiltersList=a;
package/dist/index31.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as r } from "react/jsx-runtime";
2
2
  import { observer as e } from "mobx-react";
3
3
  import { Stack as m } from "@veeqo/ui";
4
4
  import { useBusinessLogic as s } from "./index7.js";
5
- import { AdaptiveHeightContainer as p } from "./index86.js";
5
+ import { AdaptiveHeightContainer as p } from "./index87.js";
6
6
  import { FilterGroup as n } from "./index32.js";
7
7
  const u = e(() => {
8
8
  const { GROUP_MAP: t } = s();
package/dist/index33.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("react"),u=require("@veeqo/ui"),Y=require("mobx-react"),z=require("./index60.cjs"),G=require("./index58.cjs"),J=require("./index37.cjs"),K=require("./index40.cjs"),Q=require("./index52.cjs"),X=require("./index7.cjs"),Z=require("./index57.cjs"),$=require("./index87.cjs"),b=Y.observer(({view:e,viewTabSlotValueMap:l,isLoadingTableData:L})=>{const{VIEW_TYPE:F,SEARCH_FILTER_ID:d}=X.useBusinessLogic(),{Filters:{activeViewId:f,initFiltersFromView:w,discardChanges:m,initFromUrl:h,filters:S,setFilter:j},Views:{draftViewsMap:N},Notifications:{notify:E}}=Z.useStores(),{viewsMap:g,defaultCustomViewId:R,isLoading:T}=G.useViews(),{isLoading:P,isValidating:k}=z.useCustomViews({type:F}),[s,A]=c.useState(null),B=o=>{const y=S.get(d);if(g.has(o)){const r=g.get(o);r&&(w(r),m(!0),h())}else{const r=N.get(o);r?(w(r),m(!0),h()):E({type:"error",text:"Failed to load view"})}y&&j(d,y)},n=(e==null?void 0:e.id)===f,t=e.originalView!==void 0,V=e.originalView===void 0,I=(l==null?void 0:l.get(e==null?void 0:e.id))||void 0,a=(e==null?void 0:e.label)||"",D=T||k||P||L,p=c.useRef(!1);!D&&!p.current&&n&&e.id===R&&s&&(p.current=!0,s&&f===e.id&&window.requestAnimationFrame(()=>{var o;(o=s.parentElement)==null||o.scrollBy({behavior:"smooth",left:s.offsetLeft})}));const C=c.useMemo(()=>t?"draft":e.editable?"saved":"fixed",[t,e.editable]),{actions:{create:{handleSaveDraft:M},menu:{toggleDropdown:q},delete:{closeDeleteConfirmation:_,handleDelete:O,handleDeleteDraftView:v}},state:{shouldShowDeleteConfirmation:H},actions:U,state:x}=Q.useDropdownManager(e),W=c.useMemo(()=>{if(V)return q;if(t)return v},[v,t,V,q]);return i.jsxs(i.Fragment,{children:[i.jsx(u.ViewTab,{colourPalette:u.theme.colors.secondary.blue,className:"act-react-listing-custom-view",active:n,id:e==null?void 0:e.id,name:a,type:C,count:D?i.jsx(u.Loader,{type:"ThreeDots",width:12,height:12,color:n?"#fff":u.theme.colors.neutral.ink.dark}):I,onClick:B,subAction:W,ariaContext:"orders",ref:A,"aria-controls":"options-dropdown","aria-expanded":x.shouldShowDropdown,"aria-haspopup":"dialog"},e==null?void 0:e.id),i.jsx($.Confirmation,{shouldShow:H,viewName:a,onCancel:_,onDelete:O}),i.jsx(J.PillNotifications,{tabType:C,isActive:n,initialViewName:a,shouldShowCreateViewNotification:t,handleSaveDraft:M}),i.jsx(K.ViewDropdowns,{referenceElement:s,tab:e,...U,...x})]})});exports.ViewTab=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("react/jsx-runtime"),c=require("react"),u=require("@veeqo/ui"),Y=require("mobx-react"),$=require("./index60.cjs"),z=require("./index58.cjs"),G=require("./index37.cjs"),J=require("./index40.cjs"),K=require("./index52.cjs"),Q=require("./index7.cjs"),X=require("./index57.cjs"),Z=require("./index86.cjs"),b=Y.observer(({view:e,viewTabSlotValueMap:l,isLoadingTableData:y})=>{const{VIEW_TYPE:L,SEARCH_FILTER_ID:d}=Q.useBusinessLogic(),{Filters:{activeViewId:f,initFiltersFromView:w,discardChanges:m,initFromUrl:h,filters:F,setFilter:S},Views:{draftViewsMap:j},Notifications:{notify:N}}=X.useStores(),{viewsMap:g,defaultCustomViewId:E,isLoading:R}=z.useViews(),{isLoading:T,isValidating:P}=$.useCustomViews({type:L}),[s,k]=c.useState(null),A=o=>{const x=F.get(d);if(g.has(o)){const r=g.get(o);r&&(w(r),m(!0),h())}else{const r=j.get(o);r?(w(r),m(!0),h()):N({type:"error",text:"Failed to load view"})}x&&S(d,x)},n=(e==null?void 0:e.id)===f,t=e.originalView!==void 0,V=e.originalView===void 0,B=(l==null?void 0:l.get(`${e==null?void 0:e.id}`))||void 0,a=(e==null?void 0:e.label)||"",I=R||P||T,D=c.useRef(!1);!I&&!D.current&&n&&e.id===E&&s&&(D.current=!0,s&&f===e.id&&window.requestAnimationFrame(()=>{var o;(o=s.parentElement)==null||o.scrollBy({behavior:"smooth",left:s.offsetLeft})}));const p=c.useMemo(()=>t?"draft":e.editable?"saved":"fixed",[t,e.editable]),{actions:{create:{handleSaveDraft:M},menu:{toggleDropdown:C},delete:{closeDeleteConfirmation:_,handleDelete:O,handleDeleteDraftView:q}},state:{shouldShowDeleteConfirmation:H},actions:U,state:v}=K.useDropdownManager(e),W=c.useMemo(()=>{if(V)return C;if(t)return q},[q,t,V,C]);return i.jsxs(i.Fragment,{children:[i.jsx(u.ViewTab,{colourPalette:u.theme.colors.secondary.blue,className:"act-react-listing-custom-view",active:n,id:e==null?void 0:e.id,name:a,type:p,count:y?i.jsx(u.Loader,{type:"ThreeDots",width:12,height:12,color:n?"#fff":u.theme.colors.neutral.ink.dark}):B,onClick:A,subAction:W,ariaContext:"orders",ref:k,"aria-controls":"options-dropdown","aria-expanded":v.shouldShowDropdown,"aria-haspopup":"dialog"},e==null?void 0:e.id),i.jsx(Z.Confirmation,{shouldShow:H,viewName:a,onCancel:_,onDelete:O}),i.jsx(G.PillNotifications,{tabType:p,isActive:n,initialViewName:a,shouldShowCreateViewNotification:t,handleSaveDraft:M}),i.jsx(J.ViewDropdowns,{referenceElement:s,tab:e,...U,...v})]})});exports.ViewTab=b;
package/dist/index33.js CHANGED
@@ -1,6 +1,6 @@
1
- import { jsxs as $, Fragment as z, jsx as s } from "react/jsx-runtime";
2
- import { useState as G, useRef as J, useMemo as L } from "react";
3
- import { ViewTab as K, theme as y, Loader as M } from "@veeqo/ui";
1
+ import { jsxs as Y, Fragment as z, jsx as s } from "react/jsx-runtime";
2
+ import { useState as G, useRef as J, useMemo as F } from "react";
3
+ import { ViewTab as K, theme as L, Loader as M } from "@veeqo/ui";
4
4
  import { observer as Q } from "mobx-react";
5
5
  import { useCustomViews as X } from "./index60.js";
6
6
  import { useViews as Z } from "./index58.js";
@@ -9,71 +9,71 @@ import { ViewDropdowns as ee } from "./index40.js";
9
9
  import { useDropdownManager as ie } from "./index52.js";
10
10
  import { useBusinessLogic as oe } from "./index7.js";
11
11
  import { useStores as re } from "./index57.js";
12
- import { Confirmation as te } from "./index87.js";
13
- const ge = Q(({ view: e, viewTabSlotValueMap: l, isLoadingTableData: x }) => {
14
- const { VIEW_TYPE: E, SEARCH_FILTER_ID: d } = oe(), {
15
- Filters: { activeViewId: a, initFiltersFromView: f, discardChanges: m, initFromUrl: u, filters: N, setFilter: S },
16
- Views: { draftViewsMap: T },
17
- Notifications: { notify: k }
18
- } = re(), { viewsMap: w, defaultCustomViewId: A, isLoading: R } = Z(), { isLoading: I, isValidating: P } = X({ type: E }), [o, _] = G(null), j = (i) => {
19
- const F = N.get(d);
12
+ import { Confirmation as te } from "./index86.js";
13
+ const ge = Q(({ view: e, viewTabSlotValueMap: l, isLoadingTableData: y }) => {
14
+ const { VIEW_TYPE: x, SEARCH_FILTER_ID: d } = oe(), {
15
+ Filters: { activeViewId: a, initFiltersFromView: f, discardChanges: m, initFromUrl: u, filters: E, setFilter: N },
16
+ Views: { draftViewsMap: S },
17
+ Notifications: { notify: T }
18
+ } = re(), { viewsMap: w, defaultCustomViewId: k, isLoading: A } = Z(), { isLoading: R, isValidating: I } = X({ type: x }), [o, P] = G(null), _ = (i) => {
19
+ const v = E.get(d);
20
20
  if (w.has(i)) {
21
21
  const t = w.get(i);
22
22
  t && (f(t), m(!0), u());
23
23
  } else {
24
- const t = T.get(i);
25
- t ? (f(t), m(!0), u()) : k({
24
+ const t = S.get(i);
25
+ t ? (f(t), m(!0), u()) : T({
26
26
  type: "error",
27
27
  text: "Failed to load view"
28
28
  });
29
29
  }
30
- F && S(d, F);
31
- }, n = (e == null ? void 0 : e.id) === a, r = e.originalView !== void 0, p = e.originalView === void 0, B = (l == null ? void 0 : l.get(e == null ? void 0 : e.id)) || void 0, c = (e == null ? void 0 : e.label) || "", h = R || P || I || x, g = J(!1);
32
- !h && !g.current && n && e.id === A && o && (g.current = !0, o && a === e.id && window.requestAnimationFrame(() => {
30
+ v && N(d, v);
31
+ }, n = (e == null ? void 0 : e.id) === a, r = e.originalView !== void 0, p = e.originalView === void 0, j = (l == null ? void 0 : l.get(`${e == null ? void 0 : e.id}`)) || void 0, c = (e == null ? void 0 : e.label) || "", B = A || I || R, h = J(!1);
32
+ !B && !h.current && n && e.id === k && o && (h.current = !0, o && a === e.id && window.requestAnimationFrame(() => {
33
33
  var i;
34
34
  (i = o.parentElement) == null || i.scrollBy({
35
35
  behavior: "smooth",
36
36
  left: o.offsetLeft
37
37
  });
38
38
  }));
39
- const V = L(() => r ? "draft" : e.editable ? "saved" : "fixed", [r, e.editable]), {
39
+ const g = F(() => r ? "draft" : e.editable ? "saved" : "fixed", [r, e.editable]), {
40
40
  actions: {
41
- create: { handleSaveDraft: q },
42
- menu: { toggleDropdown: D },
43
- delete: { closeDeleteConfirmation: H, handleDelete: O, handleDeleteDraftView: C }
41
+ create: { handleSaveDraft: $ },
42
+ menu: { toggleDropdown: V },
43
+ delete: { closeDeleteConfirmation: q, handleDelete: H, handleDeleteDraftView: D }
44
44
  },
45
- state: { shouldShowDeleteConfirmation: U },
46
- actions: W,
47
- state: v
48
- } = ie(e), Y = L(() => {
49
- if (p) return D;
50
- if (r) return C;
51
- }, [C, r, p, D]);
52
- return /* @__PURE__ */ $(z, { children: [
45
+ state: { shouldShowDeleteConfirmation: O },
46
+ actions: U,
47
+ state: C
48
+ } = ie(e), W = F(() => {
49
+ if (p) return V;
50
+ if (r) return D;
51
+ }, [D, r, p, V]);
52
+ return /* @__PURE__ */ Y(z, { children: [
53
53
  /* @__PURE__ */ s(
54
54
  K,
55
55
  {
56
- colourPalette: y.colors.secondary.blue,
56
+ colourPalette: L.colors.secondary.blue,
57
57
  className: "act-react-listing-custom-view",
58
58
  active: n,
59
59
  id: e == null ? void 0 : e.id,
60
60
  name: c,
61
- type: V,
62
- count: h ? /* @__PURE__ */ s(
61
+ type: g,
62
+ count: y ? /* @__PURE__ */ s(
63
63
  M,
64
64
  {
65
65
  type: "ThreeDots",
66
66
  width: 12,
67
67
  height: 12,
68
- color: n ? "#fff" : y.colors.neutral.ink.dark
68
+ color: n ? "#fff" : L.colors.neutral.ink.dark
69
69
  }
70
- ) : B,
71
- onClick: j,
72
- subAction: Y,
70
+ ) : j,
71
+ onClick: _,
72
+ subAction: W,
73
73
  ariaContext: "orders",
74
- ref: _,
74
+ ref: P,
75
75
  "aria-controls": "options-dropdown",
76
- "aria-expanded": v.shouldShowDropdown,
76
+ "aria-expanded": C.shouldShowDropdown,
77
77
  "aria-haspopup": "dialog"
78
78
  },
79
79
  e == null ? void 0 : e.id
@@ -81,23 +81,23 @@ const ge = Q(({ view: e, viewTabSlotValueMap: l, isLoadingTableData: x }) => {
81
81
  /* @__PURE__ */ s(
82
82
  te,
83
83
  {
84
- shouldShow: U,
84
+ shouldShow: O,
85
85
  viewName: c,
86
- onCancel: H,
87
- onDelete: O
86
+ onCancel: q,
87
+ onDelete: H
88
88
  }
89
89
  ),
90
90
  /* @__PURE__ */ s(
91
91
  b,
92
92
  {
93
- tabType: V,
93
+ tabType: g,
94
94
  isActive: n,
95
95
  initialViewName: c,
96
96
  shouldShowCreateViewNotification: r,
97
- handleSaveDraft: q
97
+ handleSaveDraft: $
98
98
  }
99
99
  ),
100
- /* @__PURE__ */ s(ee, { referenceElement: o, tab: e, ...W, ...v })
100
+ /* @__PURE__ */ s(ee, { referenceElement: o, tab: e, ...U, ...C })
101
101
  ] });
102
102
  });
103
103
  export {
package/dist/index39.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),s=require("@veeqo/ui"),h=require("mobx-react"),n=require("./index92.cjs"),u=require("./index56.cjs"),g=s.theme.colors.secondary.blue.base,v=h.observer(({onDiscard:i,viewName:t,onSaveDraft:c})=>{const{saveChanges:o,isSubmitting:r}=u.usePersistUnsavedChanges(),[d,a]=l.useState(!1);return e.jsx(n.Notification,{children:e.jsx(n.Container,{className:"act-react-listing-custom-notification-unsaved-changes",children:e.jsxs(s.Stack,{direction:"horizontal",alignY:"center",children:[e.jsx(n.Glyph,{name:"attention",color:g}),e.jsxs(n.Wrap,{children:[e.jsx(n.Text,{variant:"body",margin:"0 4px 0 0",children:"You have unsaved changes to"}),e.jsx(n.Bold,{variant:"bodyBoldDark",children:`'${t}'`})]}),e.jsx(n.Button,{className:"act-react-listing-custom-notification-unsaved-changes-discard",onClick:i,size:"sm",children:"Discard changes"}),e.jsxs(s.AnimatedDropdown,{reversed:!0,shouldShowDropdown:d,onClickAway:()=>a(!1),cta:e.jsx(n.Button,{className:"act-react-listing-custom-notification-unsaved-changes-toggle-dropdown",variant:"primary",onClick:()=>a(!0),size:"sm",dropdown:!0,children:"Save changes"}),children:[e.jsx(n.Item,{onClick:c,className:"act-react-listing-custom-notification-unsaved-changes-create-new-view",children:e.jsx(n.Text,{variant:"body",children:"Create new view"})}),e.jsxs(n.Item,{onClick:o,disabled:r,className:"act-react-listing-custom-notification-unsaved-changes-save-to-existing-view",children:[e.jsx(n.Text,{variant:"body",margin:"0 4px 0 0",children:"Save changes to"}),e.jsx(n.Text,{variant:"bodyBoldDark",children:t})]})]})]})})})});exports.UnsavedChangesPill=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),l=require("react"),s=require("@veeqo/ui"),h=require("mobx-react"),n=require("./index91.cjs"),u=require("./index56.cjs"),g=s.theme.colors.secondary.blue.base,v=h.observer(({onDiscard:i,viewName:t,onSaveDraft:c})=>{const{saveChanges:o,isSubmitting:r}=u.usePersistUnsavedChanges(),[d,a]=l.useState(!1);return e.jsx(n.Notification,{children:e.jsx(n.Container,{className:"act-react-listing-custom-notification-unsaved-changes",children:e.jsxs(s.Stack,{direction:"horizontal",alignY:"center",children:[e.jsx(n.Glyph,{name:"attention",color:g}),e.jsxs(n.Wrap,{children:[e.jsx(n.Text,{variant:"body",margin:"0 4px 0 0",children:"You have unsaved changes to"}),e.jsx(n.Bold,{variant:"bodyBoldDark",children:`'${t}'`})]}),e.jsx(n.Button,{className:"act-react-listing-custom-notification-unsaved-changes-discard",onClick:i,size:"sm",children:"Discard changes"}),e.jsxs(s.AnimatedDropdown,{reversed:!0,shouldShowDropdown:d,onClickAway:()=>a(!1),cta:e.jsx(n.Button,{className:"act-react-listing-custom-notification-unsaved-changes-toggle-dropdown",variant:"primary",onClick:()=>a(!0),size:"sm",dropdown:!0,children:"Save changes"}),children:[e.jsx(n.Item,{onClick:c,className:"act-react-listing-custom-notification-unsaved-changes-create-new-view",children:e.jsx(n.Text,{variant:"body",children:"Create new view"})}),e.jsxs(n.Item,{onClick:o,disabled:r,className:"act-react-listing-custom-notification-unsaved-changes-save-to-existing-view",children:[e.jsx(n.Text,{variant:"body",margin:"0 4px 0 0",children:"Save changes to"}),e.jsx(n.Text,{variant:"bodyBoldDark",children:t})]})]})]})})})});exports.UnsavedChangesPill=v;
package/dist/index39.js CHANGED
@@ -2,7 +2,7 @@ import { jsx as e, jsxs as n } from "react/jsx-runtime";
2
2
  import { useState as m } from "react";
3
3
  import { Stack as g, theme as u, AnimatedDropdown as v } from "@veeqo/ui";
4
4
  import { observer as p } from "mobx-react";
5
- import { Notification as f, Container as w, Glyph as C, Wrap as b, Text as a, Bold as y, Button as o, Item as r } from "./index92.js";
5
+ import { Notification as f, Container as w, Glyph as C, Wrap as b, Text as a, Bold as y, Button as o, Item as r } from "./index91.js";
6
6
  import { usePersistUnsavedChanges as k } from "./index56.js";
7
7
  const S = u.colors.secondary.blue.base, A = p(
8
8
  ({
package/dist/index41.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),m=require("mobx-react"),s=require("@veeqo/ui"),c=require("./index91.cjs"),q=require("./index38.cjs"),S=require("./index58.cjs"),f=require("./index59.cjs"),p=require("./index34.cjs"),l=require("./index33.cjs"),C=require("./index57.cjs"),a=require("./index10.cjs"),b=m.observer(({viewTabSlotValueMap:n,isLoadingTableData:o})=>{const{Views:{draftViewsList:d}}=C.useStores(),{viewsArray:w,fixedViews:x}=S.useViews(),[t,i]=u.useState(!1),[h,V]=u.useState(null),j=()=>i(!1);return f.useViewUrlChange(),e.jsxs(e.Fragment,{children:[e.jsxs(s.ViewsContainer,{onClickMenu:()=>i(!0),ariaMenuControls:"views-menu",ariaMenuExpanded:t,ref:V,children:[w.map(r=>e.jsx(a.ErrorBoundary,{children:e.jsx(l.ViewTab,{view:r,viewTabSlotValueMap:n,isLoadingTableData:o})},r.id)),d.map(r=>e.jsx(a.ErrorBoundary,{children:e.jsx(l.ViewTab,{view:r,viewTabSlotValueMap:n,isLoadingTableData:o})},r.id))]}),t&&e.jsx(s.Popover,{id:"views-menu",anchorElement:h,placement:"bottom",onShouldClose:()=>i(!1),children:e.jsxs(s.Card.Surface,{children:[e.jsx(c.FixedViews,{children:x.map(r=>e.jsx(s.Text,{variant:"placeholder",children:r.label},r.id||r.label))}),e.jsx(q.SortableViews,{}),e.jsx(c.Divider,{}),e.jsx(p.CreateView,{hideActionsPopover:j})]})})]})});exports.ViewList=b;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),u=require("react"),m=require("mobx-react"),s=require("@veeqo/ui"),c=require("./index92.cjs"),q=require("./index38.cjs"),S=require("./index58.cjs"),f=require("./index59.cjs"),p=require("./index34.cjs"),l=require("./index33.cjs"),C=require("./index57.cjs"),a=require("./index10.cjs"),b=m.observer(({viewTabSlotValueMap:n,isLoadingTableData:o})=>{const{Views:{draftViewsList:d}}=C.useStores(),{viewsArray:w,fixedViews:x}=S.useViews(),[t,i]=u.useState(!1),[h,V]=u.useState(null),j=()=>i(!1);return f.useViewUrlChange(),e.jsxs(e.Fragment,{children:[e.jsxs(s.ViewsContainer,{onClickMenu:()=>i(!0),ariaMenuControls:"views-menu",ariaMenuExpanded:t,ref:V,children:[w.map(r=>e.jsx(a.ErrorBoundary,{children:e.jsx(l.ViewTab,{view:r,viewTabSlotValueMap:n,isLoadingTableData:o})},r.id)),d.map(r=>e.jsx(a.ErrorBoundary,{children:e.jsx(l.ViewTab,{view:r,viewTabSlotValueMap:n,isLoadingTableData:o})},r.id))]}),t&&e.jsx(s.Popover,{id:"views-menu",anchorElement:h,placement:"bottom",onShouldClose:()=>i(!1),children:e.jsxs(s.Card.Surface,{children:[e.jsx(c.FixedViews,{children:x.map(r=>e.jsx(s.Text,{variant:"placeholder",children:r.label},r.id||r.label))}),e.jsx(q.SortableViews,{}),e.jsx(c.Divider,{}),e.jsx(p.CreateView,{hideActionsPopover:j})]})})]})});exports.ViewList=b;
package/dist/index41.js CHANGED
@@ -2,7 +2,7 @@ import { jsxs as i, Fragment as w, jsx as e } from "react/jsx-runtime";
2
2
  import { useState as m } from "react";
3
3
  import { observer as V } from "mobx-react";
4
4
  import { ViewsContainer as v, Popover as x, Card as C, Text as S } from "@veeqo/ui";
5
- import { FixedViews as A, Divider as E } from "./index91.js";
5
+ import { FixedViews as A, Divider as E } from "./index92.js";
6
6
  import { SortableViews as L } from "./index38.js";
7
7
  import { useViews as M } from "./index58.js";
8
8
  import { useViewUrlChange as b } from "./index59.js";
package/dist/index43.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),C=require("./index77.cjs"),d=require("@veeqo/ui"),D=require("./index78.cjs"),L=require("mobx-react"),N=require("./index7.cjs"),_=require("./index48.cjs"),j=require("./index57.cjs"),p=require("./index58.cjs"),M=require("./index47.cjs"),v=L.observer(({columnDefinitions:b,pinnedRightColumnIds:n=[],pinnedLeftColumnIds:t=[]})=>{var m;const{DEFAULT_HIDDEN_COLUMNS:T,DEFAULT_VISIBLE_COLUMNS:g}=N.useBusinessLogic(),l=[...t,...n],i=T.filter(o=>!l.includes(o)),a=g.filter(o=>!l.includes(o)),E=[...i,...a],{closeModal:S,isModalOpen:q,openModal:A}=_.useModal(),{Filters:{activeViewId:c}}=j.useStores(),{viewsMap:h}=p.useViews();if(!c)return null;const e=h.get(c),u=Array.isArray((m=e==null?void 0:e.columns)==null?void 0:m.columnIds),r=u?e.columns.columnIds:a,x=u?E.filter(o=>!r.includes(o)):i;return s.jsxs(s.Fragment,{children:[s.jsx(d.Tooltip,{text:e!=null&&e.editable?"Table management":"Go to a custom view to use Table management",children:s.jsx(d.Button,{"aria-label":"Open table management",onClick:()=>A(M.ModalId.ORDERS_TABLE_MANAGEMENT),size:"sm",iconSlot:s.jsx(D.TableManagementGlyph,{}),disabled:!(e!=null&&e.editable)})}),q(M.ModalId.ORDERS_TABLE_MANAGEMENT)&&s.jsx(C.TableManagementModal,{pinnedRightColumnIds:n,pinnedLeftColumnIds:t,visibleColumns:r,hiddenColumns:x,columnDefintions:b,onClose:S})]})});exports.TableManagement=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("react/jsx-runtime"),C=require("./index77.cjs"),m=require("@veeqo/ui"),D=require("./index78.cjs"),N=require("mobx-react"),_=require("./index7.cjs"),j=require("./index48.cjs"),p=require("./index57.cjs"),v=require("./index58.cjs"),M=require("./index47.cjs"),y=N.observer(({columnDefinitions:b,pinnedRightColumnIds:n=[],pinnedLeftColumnIds:t=[]})=>{var d;const{DEFAULT_HIDDEN_COLUMNS:T,DEFAULT_VISIBLE_COLUMNS:g}=_.useBusinessLogic(),l=[...t,...n],i=T.filter(o=>!l.includes(o)),a=g.filter(o=>!l.includes(o)),E=[...i,...a],{closeModal:S,isModalOpen:q,openModal:A}=j.useModal(),{Filters:{activeViewId:c}}=p.useStores(),{viewsMap:L,isLoading:h}=v.useViews();if(!c||h)return null;const e=L.get(c),u=Array.isArray((d=e==null?void 0:e.columns)==null?void 0:d.columnIds),r=u?e.columns.columnIds:a,x=u?E.filter(o=>!r.includes(o)):i;return s.jsxs(s.Fragment,{children:[s.jsx(m.Tooltip,{text:e!=null&&e.editable?"Table management":"Go to a custom view to use Table management",children:s.jsx(m.Button,{"aria-label":"Open table management",onClick:()=>A(M.ModalId.ORDERS_TABLE_MANAGEMENT),size:"sm",iconSlot:s.jsx(D.TableManagementGlyph,{}),disabled:!(e!=null&&e.editable)})}),q(M.ModalId.ORDERS_TABLE_MANAGEMENT)&&s.jsx(C.TableManagementModal,{pinnedRightColumnIds:n,pinnedLeftColumnIds:t,visibleColumns:r,hiddenColumns:x,columnDefintions:b,onClose:S})]})});exports.TableManagement=y;
package/dist/index43.js CHANGED
@@ -1,32 +1,32 @@
1
- import { jsxs as D, Fragment as N, jsx as s } from "react/jsx-runtime";
1
+ import { jsxs as L, Fragment as N, jsx as s } from "react/jsx-runtime";
2
2
  import { TableManagementModal as S } from "./index77.js";
3
- import { Tooltip as _, Button as L } from "@veeqo/ui";
4
- import { TableManagementGlyph as h } from "./index78.js";
5
- import { observer as v } from "mobx-react";
6
- import { useBusinessLogic as O } from "./index7.js";
7
- import { useModal as B } from "./index48.js";
8
- import { useStores as I } from "./index57.js";
9
- import { useViews as x } from "./index58.js";
3
+ import { Tooltip as _, Button as h } from "@veeqo/ui";
4
+ import { TableManagementGlyph as v } from "./index78.js";
5
+ import { observer as O } from "mobx-react";
6
+ import { useBusinessLogic as B } from "./index7.js";
7
+ import { useModal as I } from "./index48.js";
8
+ import { useStores as x } from "./index57.js";
9
+ import { useViews as y } from "./index58.js";
10
10
  import { ModalId as u } from "./index47.js";
11
- const H = v(({ columnDefinitions: p, pinnedRightColumnIds: n = [], pinnedLeftColumnIds: t = [] }) => {
11
+ const q = O(({ columnDefinitions: p, pinnedRightColumnIds: n = [], pinnedLeftColumnIds: t = [] }) => {
12
12
  var d;
13
- const { DEFAULT_HIDDEN_COLUMNS: M, DEFAULT_VISIBLE_COLUMNS: b } = O(), l = [...t, ...n], i = M.filter((e) => !l.includes(e)), m = b.filter((e) => !l.includes(e)), f = [...i, ...m], { closeModal: T, isModalOpen: E, openModal: A } = B(), { Filters: { activeViewId: a } } = I(), { viewsMap: g } = x();
14
- if (!a) return null;
15
- const o = g.get(a), r = Array.isArray((d = o == null ? void 0 : o.columns) == null ? void 0 : d.columnIds), c = r ? o.columns.columnIds : m, C = r ? f.filter(
13
+ const { DEFAULT_HIDDEN_COLUMNS: M, DEFAULT_VISIBLE_COLUMNS: b } = B(), i = [...t, ...n], l = M.filter((e) => !i.includes(e)), m = b.filter((e) => !i.includes(e)), f = [...l, ...m], { closeModal: T, isModalOpen: E, openModal: A } = I(), { Filters: { activeViewId: a } } = x(), { viewsMap: g, isLoading: C } = y();
14
+ if (!a || C) return null;
15
+ const o = g.get(a), r = Array.isArray((d = o == null ? void 0 : o.columns) == null ? void 0 : d.columnIds), c = r ? o.columns.columnIds : m, D = r ? f.filter(
16
16
  (e) => !c.includes(e)
17
- ) : i;
18
- return /* @__PURE__ */ D(N, { children: [
17
+ ) : l;
18
+ return /* @__PURE__ */ L(N, { children: [
19
19
  /* @__PURE__ */ s(
20
20
  _,
21
21
  {
22
22
  text: o != null && o.editable ? "Table management" : "Go to a custom view to use Table management",
23
23
  children: /* @__PURE__ */ s(
24
- L,
24
+ h,
25
25
  {
26
26
  "aria-label": "Open table management",
27
27
  onClick: () => A(u.ORDERS_TABLE_MANAGEMENT),
28
28
  size: "sm",
29
- iconSlot: /* @__PURE__ */ s(h, {}),
29
+ iconSlot: /* @__PURE__ */ s(v, {}),
30
30
  disabled: !(o != null && o.editable)
31
31
  }
32
32
  )
@@ -38,7 +38,7 @@ const H = v(({ columnDefinitions: p, pinnedRightColumnIds: n = [], pinnedLeftCol
38
38
  pinnedRightColumnIds: n,
39
39
  pinnedLeftColumnIds: t,
40
40
  visibleColumns: c,
41
- hiddenColumns: C,
41
+ hiddenColumns: D,
42
42
  columnDefintions: p,
43
43
  onClose: T
44
44
  }
@@ -46,5 +46,5 @@ const H = v(({ columnDefinitions: p, pinnedRightColumnIds: n = [], pinnedLeftCol
46
46
  ] });
47
47
  });
48
48
  export {
49
- H as TableManagement
49
+ q as TableManagement
50
50
  };
package/dist/index45.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var a=(e=>(e.TEXT="text",e.NUMBER="number",e.CHECKBOX="checkbox",e.RADIO="radio",e.DATE_RANGE="date_range",e.NUMBER_RANGE="number_range",e))(a||{});const n={revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateOnMount:!1,revalidateIfStale:!1};exports.FilterChoiceValue=a;exports.SWR_HOOK_OPTIONS=n;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var n=(e=>(e.TEXT="text",e.NUMBER="number",e.CHECKBOX="checkbox",e.RADIO="radio",e.DATE_RANGE="date_range",e.NUMBER_RANGE="number_range",e))(n||{});const O={revalidateOnFocus:!1,revalidateOnReconnect:!1,revalidateOnMount:!1};exports.FilterChoiceValue=n;exports.SWR_HOOK_OPTIONS=O;
package/dist/index45.js CHANGED
@@ -1,11 +1,10 @@
1
- var n = /* @__PURE__ */ ((a) => (a.TEXT = "text", a.NUMBER = "number", a.CHECKBOX = "checkbox", a.RADIO = "radio", a.DATE_RANGE = "date_range", a.NUMBER_RANGE = "number_range", a))(n || {});
2
- const e = {
1
+ var a = /* @__PURE__ */ ((n) => (n.TEXT = "text", n.NUMBER = "number", n.CHECKBOX = "checkbox", n.RADIO = "radio", n.DATE_RANGE = "date_range", n.NUMBER_RANGE = "number_range", n))(a || {});
2
+ const O = {
3
3
  revalidateOnFocus: !1,
4
4
  revalidateOnReconnect: !1,
5
- revalidateOnMount: !1,
6
- revalidateIfStale: !1
5
+ revalidateOnMount: !1
7
6
  };
8
7
  export {
9
- n as FilterChoiceValue,
10
- e as SWR_HOOK_OPTIONS
8
+ a as FilterChoiceValue,
9
+ O as SWR_HOOK_OPTIONS
11
10
  };
package/dist/index79.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("./index94.cjs"),l=require("./index95.cjs"),c=require("./index82.cjs"),u=require("./index83.cjs"),d=require("./index80.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 e=require("react/jsx-runtime"),o=require("@veeqo/ui"),s=require("@dnd-kit/sortable"),a=require("./index95.cjs"),l=require("./index96.cjs"),c=require("./index82.cjs"),u=require("./index83.cjs"),d=require("./index80.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;
package/dist/index79.js CHANGED
@@ -1,8 +1,8 @@
1
1
  import { jsxs as m, jsx as r } from "react/jsx-runtime";
2
2
  import { Stack as n } from "@veeqo/ui";
3
3
  import { SortableContext as p, verticalListSortingStrategy as a } from "@dnd-kit/sortable";
4
- import { SortableItem as s } from "./index94.js";
5
- import { DroppableArea as d } from "./index95.js";
4
+ import { SortableItem as s } from "./index95.js";
5
+ import { DroppableArea as d } from "./index96.js";
6
6
  import { ColumnItem as l } from "./index82.js";
7
7
  import { ColumnGroupIds as c } from "./index83.js";
8
8
  import { StickyText as f } from "./index80.js";
package/dist/index81.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("@dnd-kit/core"),S=require("@dnd-kit/sortable"),h=require("./index80.cjs"),q=require("@veeqo/ui"),C=require("./index48.cjs"),E=require("./index96.cjs"),p=require("./index97.cjs"),A=require("./index10.cjs"),b=require("./index47.cjs"),x={droppable:{strategy:e.MeasuringStrategy.Always}},M={sideEffects:e.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.5"}}})},j=({items:o,setItems:s,children:a,renderDragOverlay:n})=>{const{closeModal:i,openModal:l}=C.useModal(),c=e.useSensors(e.useSensor(e.PointerSensor),e.useSensor(e.KeyboardSensor,{coordinateGetter:S.sortableKeyboardCoordinates})),{activeId:t,handleDragCancel:d,handleDragEnd:u,handleDragOver:g,handleDragStart:D}=E.useDragHandlers({items:o,setItems:s}),{collisionDetectionStrategy:y}=p.useCollisionDetectionStrategy({items:o});return r.jsx(A.ErrorBoundary,{errorComponent:r.jsx(q.Alert,{variant:"error",title:"An error occurred",rightActions:[{label:"Reload",onClick:()=>{i(),l(b.ModalId.ORDERS_TABLE_MANAGEMENT)}}]}),children:r.jsxs(e.DndContext,{sensors:c,measuring:x,collisionDetection:y,onDragStart:D,onDragOver:g,onDragEnd:u,onDragCancel:d,children:[a,r.jsx(h.DndDragOverlayDialog,{open:!0,children:r.jsx(e.DragOverlay,{dropAnimation:M,zIndex:2001,children:t&&n?n(t):null})})]})})};exports.DndContainer=j;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),e=require("@dnd-kit/core"),S=require("@dnd-kit/sortable"),h=require("./index80.cjs"),q=require("@veeqo/ui"),C=require("./index48.cjs"),E=require("./index97.cjs"),p=require("./index98.cjs"),A=require("./index10.cjs"),b=require("./index47.cjs"),x={droppable:{strategy:e.MeasuringStrategy.Always}},M={sideEffects:e.defaultDropAnimationSideEffects({styles:{active:{opacity:"0.5"}}})},j=({items:o,setItems:s,children:a,renderDragOverlay:n})=>{const{closeModal:i,openModal:l}=C.useModal(),c=e.useSensors(e.useSensor(e.PointerSensor),e.useSensor(e.KeyboardSensor,{coordinateGetter:S.sortableKeyboardCoordinates})),{activeId:t,handleDragCancel:d,handleDragEnd:u,handleDragOver:g,handleDragStart:D}=E.useDragHandlers({items:o,setItems:s}),{collisionDetectionStrategy:y}=p.useCollisionDetectionStrategy({items:o});return r.jsx(A.ErrorBoundary,{errorComponent:r.jsx(q.Alert,{variant:"error",title:"An error occurred",rightActions:[{label:"Reload",onClick:()=>{i(),l(b.ModalId.ORDERS_TABLE_MANAGEMENT)}}]}),children:r.jsxs(e.DndContext,{sensors:c,measuring:x,collisionDetection:y,onDragStart:D,onDragOver:g,onDragEnd:u,onDragCancel:d,children:[a,r.jsx(h.DndDragOverlayDialog,{open:!0,children:r.jsx(e.DragOverlay,{dropAnimation:M,zIndex:2001,children:t&&n?n(t):null})})]})})};exports.DndContainer=j;
package/dist/index81.js CHANGED
@@ -4,8 +4,8 @@ import { sortableKeyboardCoordinates as M } from "@dnd-kit/sortable";
4
4
  import { DndDragOverlayDialog as v } from "./index80.js";
5
5
  import { Alert as b } from "@veeqo/ui";
6
6
  import { useModal as x } from "./index48.js";
7
- import { useDragHandlers as O } from "./index96.js";
8
- import { useCollisionDetectionStrategy as I } from "./index97.js";
7
+ import { useDragHandlers as O } from "./index97.js";
8
+ import { useCollisionDetectionStrategy as I } from "./index98.js";
9
9
  import { ErrorBoundary as R } from "./index10.js";
10
10
  import { ModalId as j } from "./index47.js";
11
11
  const B = {
package/dist/index86.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),l=require("./index103.cjs"),v=({children:i,style:o,className:c})=>{const r=n.useRef(null),[u,f]=n.useState(0);return n.useEffect(()=>{const e=r.current,s=()=>{if(e){const{top:a}=e.getBoundingClientRect();f(a)}};s();const t=new ResizeObserver(s);return e&&t.observe(e),()=>{e&&t.unobserve(e),t.disconnect()}},[]),d.jsx(l.AdaptiveStyledContainer,{style:o,className:c,offset:u,ref:r,children:i})};exports.AdaptiveHeightContainer=v;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),r=({shouldShow:a,viewName:n,onCancel:t,onDelete:o})=>e.jsx(i.Modal,{headerTitle:`Delete '${n}' view?`,"data-testid":"act-react-listing-custom-confirmation-popup",variant:"sm",shouldShow:a,onClose:t,rightActions:[{className:"act-react-listing-custom-confirmation-popup-cancel",label:"Cancel",onClick:t,variant:"default"},{className:"act-react-listing-custom-confirmation-popup-delete",label:"Delete",onClick:o,variant:"primaryDestructive"}],showHeaderCloseButton:!0,children:e.jsx(i.Text,{variant:"body",children:"This cannot be undone."})});exports.Confirmation=r;
package/dist/index86.js CHANGED
@@ -1,26 +1,31 @@
1
- import { jsx as p } from "react/jsx-runtime";
2
- import { useRef as a, useState as d, useEffect as m } from "react";
3
- import { AdaptiveStyledContainer as v } from "./index103.js";
4
- const R = ({
5
- children: o,
6
- style: s,
7
- className: f
8
- }) => {
9
- const r = a(null), [i, c] = d(0);
10
- return m(() => {
11
- const e = r.current, n = () => {
12
- if (e) {
13
- const { top: u } = e.getBoundingClientRect();
14
- c(u);
1
+ import { jsx as e } from "react/jsx-runtime";
2
+ import { Modal as n, Text as r } from "@veeqo/ui";
3
+ const s = ({ shouldShow: a, viewName: i, onCancel: t, onDelete: o }) => /* @__PURE__ */ e(
4
+ n,
5
+ {
6
+ headerTitle: `Delete '${i}' view?`,
7
+ "data-testid": "act-react-listing-custom-confirmation-popup",
8
+ variant: "sm",
9
+ shouldShow: a,
10
+ onClose: t,
11
+ rightActions: [
12
+ {
13
+ className: "act-react-listing-custom-confirmation-popup-cancel",
14
+ label: "Cancel",
15
+ onClick: t,
16
+ variant: "default"
17
+ },
18
+ {
19
+ className: "act-react-listing-custom-confirmation-popup-delete",
20
+ label: "Delete",
21
+ onClick: o,
22
+ variant: "primaryDestructive"
15
23
  }
16
- };
17
- n();
18
- const t = new ResizeObserver(n);
19
- return e && t.observe(e), () => {
20
- e && t.unobserve(e), t.disconnect();
21
- };
22
- }, []), /* @__PURE__ */ p(v, { style: s, className: f, offset: i, ref: r, children: o });
23
- };
24
+ ],
25
+ showHeaderCloseButton: !0,
26
+ children: /* @__PURE__ */ e(r, { variant: "body", children: "This cannot be undone." })
27
+ }
28
+ );
24
29
  export {
25
- R as AdaptiveHeightContainer
30
+ s as Confirmation
26
31
  };
package/dist/index87.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),i=require("@veeqo/ui"),r=({shouldShow:a,viewName:n,onCancel:t,onDelete:o})=>e.jsx(i.Modal,{headerTitle:`Delete '${n}' view?`,"data-testid":"act-react-listing-custom-confirmation-popup",variant:"sm",shouldShow:a,onClose:t,rightActions:[{className:"act-react-listing-custom-confirmation-popup-cancel",label:"Cancel",onClick:t,variant:"default"},{className:"act-react-listing-custom-confirmation-popup-delete",label:"Delete",onClick:o,variant:"primaryDestructive"}],showHeaderCloseButton:!0,children:e.jsx(i.Text,{variant:"body",children:"This cannot be undone."})});exports.Confirmation=r;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("react/jsx-runtime"),n=require("react"),l=require("./index102.cjs"),v=({children:i,style:o,className:c})=>{const r=n.useRef(null),[u,f]=n.useState(0);return n.useEffect(()=>{const e=r.current,s=()=>{if(e){const{top:a}=e.getBoundingClientRect();f(a)}};s();const t=new ResizeObserver(s);return e&&t.observe(e),()=>{e&&t.unobserve(e),t.disconnect()}},[]),d.jsx(l.AdaptiveStyledContainer,{style:o,className:c,offset:u,ref:r,children:i})};exports.AdaptiveHeightContainer=v;