@veeqo/transfigure 2.3.1 → 2.4.1

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 (96) hide show
  1. package/dist/index100.cjs +1 -1
  2. package/dist/index100.js +15 -10
  3. package/dist/index101.cjs +1 -1
  4. package/dist/index101.js +11 -8
  5. package/dist/index102.cjs +1 -1
  6. package/dist/index102.js +8 -49
  7. package/dist/index103.cjs +1 -1
  8. package/dist/index103.js +50 -29
  9. package/dist/index104.cjs +1 -19
  10. package/dist/index104.js +28 -23
  11. package/dist/index105.cjs +1 -1
  12. package/dist/index105.js +20 -14
  13. package/dist/index106.cjs +1 -1
  14. package/dist/index106.js +14 -17
  15. package/dist/index107.cjs +18 -11
  16. package/dist/index107.js +20 -12
  17. package/dist/index108.cjs +12 -1
  18. package/dist/index108.js +16 -21
  19. package/dist/index11.cjs +1 -1
  20. package/dist/index11.js +1 -1
  21. package/dist/index110.cjs +1 -1
  22. package/dist/index110.js +1 -1
  23. package/dist/index111.cjs +1 -1
  24. package/dist/index111.js +1 -1
  25. package/dist/index112.cjs +1 -1
  26. package/dist/index112.js +1 -1
  27. package/dist/index117.cjs +1 -1
  28. package/dist/index117.js +22 -32
  29. package/dist/index118.cjs +1 -1
  30. package/dist/index118.js +32 -22
  31. package/dist/index121.cjs +1 -1
  32. package/dist/index121.js +1 -1
  33. package/dist/index13.cjs +1 -1
  34. package/dist/index13.js +1 -1
  35. package/dist/index19.cjs +1 -1
  36. package/dist/index19.js +1 -1
  37. package/dist/index30.cjs +1 -1
  38. package/dist/index30.js +1 -1
  39. package/dist/index31.cjs +1 -1
  40. package/dist/index31.js +1 -1
  41. package/dist/index36.cjs +1 -1
  42. package/dist/index36.js +2 -2
  43. package/dist/index39.cjs +1 -1
  44. package/dist/index39.js +1 -1
  45. package/dist/index40.cjs +1 -1
  46. package/dist/index40.js +1 -1
  47. package/dist/index41.cjs +1 -1
  48. package/dist/index41.js +1 -1
  49. package/dist/index44.cjs +1 -1
  50. package/dist/index44.js +1 -1
  51. package/dist/index46.cjs +1 -1
  52. package/dist/index46.js +1 -1
  53. package/dist/index47.cjs +1 -1
  54. package/dist/index47.js +2 -2
  55. package/dist/index57.cjs +1 -1
  56. package/dist/index57.js +1 -1
  57. package/dist/index65.cjs +1 -1
  58. package/dist/index65.js +1 -1
  59. package/dist/index69.cjs +1 -1
  60. package/dist/index69.js +1 -1
  61. package/dist/index70.cjs +1 -1
  62. package/dist/index70.js +2 -2
  63. package/dist/index73.cjs +1 -1
  64. package/dist/index73.js +7 -7
  65. package/dist/index80.cjs +1 -1
  66. package/dist/index80.js +8 -7
  67. package/dist/index82.cjs +1 -1
  68. package/dist/index82.js +1 -1
  69. package/dist/index88.cjs +1 -1
  70. package/dist/index88.js +5 -41
  71. package/dist/index89.cjs +1 -1
  72. package/dist/index89.js +2 -9
  73. package/dist/index90.cjs +1 -1
  74. package/dist/index90.js +39 -115
  75. package/dist/index91.cjs +1 -1
  76. package/dist/index91.js +9 -2
  77. package/dist/index92.cjs +1 -1
  78. package/dist/index92.js +116 -4
  79. package/dist/index93.cjs +1 -1
  80. package/dist/index93.js +13 -12
  81. package/dist/index94.cjs +104 -1
  82. package/dist/index94.js +119 -13
  83. package/dist/index95.cjs +1 -104
  84. package/dist/index95.js +65 -116
  85. package/dist/index96.cjs +1 -1
  86. package/dist/index96.js +23 -63
  87. package/dist/index97.cjs +1 -1
  88. package/dist/index97.js +2 -28
  89. package/dist/index98.cjs +1 -1
  90. package/dist/index98.js +41 -2
  91. package/dist/index99.cjs +1 -1
  92. package/dist/index99.js +9 -39
  93. package/dist/types.d.ts +4 -7
  94. package/dist/utils/getViewTheme/getViewTheme.d.ts +10 -13
  95. package/dist/utils/viewsAdapter/viewsAdapter.d.ts +1 -1
  96. package/package.json +1 -1
package/dist/index80.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@internationalized/date"),f=require("./index72.cjs"),F=require("./index71.cjs"),R=require("lodash/get"),A=require("./index106.cjs"),_=require("./index9.cjs"),T=r=>r&&r.__esModule?r:{default:r},n=T(R),h=({view:r,canUpdateCustomViews:g})=>{var u,c;const{DATE_RANGE_FILTERS:a,NUMBER_RANGE_FILTERS:o,GROUP_MAP:p}=_.BusinessLogicManager.getBusinessLogic(),s=Array.from(p.values()).flatMap(e=>e.fields),l=r.filters.filter||{},{colourPalette:m,customTextColour:b}=A.getViewTheme((u=r.view_attributes)==null?void 0:u.type);return{id:r.id,label:r.title,viewFilters:l,filterMaps:{filters:new Map(s.filter(e=>!a.includes(e.id)&&!o.includes(e.id)&&e.filterType!=="checkbox").map(e=>{const t=n.default(l,e.id);return[e.id,t!==void 0&&!Array.isArray(t)&&typeof t!="object"?String(t):""]}).filter(([,e])=>e!=="")),arrayFilters:new Map(s.filter(e=>e.filterType==="checkbox").map(e=>{const t=n.default(l,e.id);return[e.id,Array.isArray(t)?t:[]]}).filter(([,e])=>e.length>0)),rangeFilters:new Map(s.filter(e=>a.includes(e.id)).map(e=>{const t=n.default(l,e.id);if(!t)return null;let i;if(typeof t=="string")i=new f.RangeFilter(t);else if(typeof t=="object"&&t.gte&&t.lte){i=new f.RangeFilter("CUSTOM");const y=d.parseDate(t.gte),M=d.parseDate(t.lte);i.setDates(y,M)}else return null;return[e.id,i]}).filter(e=>e!==null)),numberRangeFilters:new Map(s.filter(e=>o.includes(e.id)).map(e=>{const t=n.default(l,e.id);if(!t||typeof t!="object")return null;const i=new F.NumberRangeFilter({filterId:e.id});return t.lte!==void 0&&i.setLte(Number(t.lte)),t.gte!==void 0&&i.setGte(Number(t.gte)),[e.id,i]}).filter(e=>e!==null))},page:r.filters.page,editable:r.editable&&g,isShared:r.shared,columns:r.columns,sort:(c=r.filters)==null?void 0:c.sort,colourPalette:m,customTextColour:b}};exports.viewsAdapter=h;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("@internationalized/date"),f=require("./index72.cjs"),_=require("./index71.cjs"),F=require("lodash/get"),R=require("./index100.cjs"),A=require("./index9.cjs"),T=r=>r&&r.__esModule?r:{default:r},n=T(F),w=({view:r,canUpdateCustomViews:g})=>{var o,c;const{DATE_RANGE_FILTERS:a,NUMBER_RANGE_FILTERS:u,GROUP_MAP:p}=A.BusinessLogicManager.getBusinessLogic(),l=Array.from(p.values()).flatMap(e=>e.fields),s=r.filters.filter||{},{colourPalette:b,customTextColour:m}=R.getViewTheme((o=r.view_attributes)==null?void 0:o.type);return{id:r.id,label:r.title,viewFilters:s,filterMaps:{filters:new Map(l.filter(e=>!a.includes(e.id)&&!u.includes(e.id)&&e.filterType!=="checkbox").map(e=>{const t=n.default(s,e.id);return[e.id,t!==void 0&&!Array.isArray(t)&&typeof t!="object"?String(t):""]}).filter(([,e])=>e!=="")),arrayFilters:new Map(l.filter(e=>e.filterType==="checkbox").map(e=>{const t=n.default(s,e.id);return[e.id,Array.isArray(t)?t:[]]}).filter(([,e])=>e.length>0)),rangeFilters:new Map(l.filter(e=>a.includes(e.id)).map(e=>{const t=n.default(s,e.id);if(!t)return null;let i;if(typeof t=="string")i=new f.RangeFilter(t);else if(typeof t=="object"&&t.gte&&t.lte){i=new f.RangeFilter("CUSTOM");const y=d.parseDate(t.gte),M=d.parseDate(t.lte);i.setDates(y,M)}else return null;return[e.id,i]}).filter(e=>e!==null)),numberRangeFilters:new Map(l.filter(e=>u.includes(e.id)).map(e=>{const t=n.default(s,e.id);if(!t||typeof t!="object")return null;const i=new _.NumberRangeFilter({filterId:e.id});return t.lte!==void 0&&i.setLte(Number(t.lte)),t.gte!==void 0&&i.setGte(Number(t.gte)),[e.id,i]}).filter(e=>e!==null))},page:r.filters.page,editable:r.editable&&g,isShared:r.shared,columns:r.columns,sort:(c=r.filters)==null?void 0:c.sort,colourPalette:b,customTextColour:m,view_attributes:r.view_attributes}};exports.viewsAdapter=w;
package/dist/index80.js CHANGED
@@ -2,12 +2,9 @@ import { parseDate as c } from "@internationalized/date";
2
2
  import { RangeFilter as p } from "./index72.js";
3
3
  import { NumberRangeFilter as M } from "./index71.js";
4
4
  import n from "lodash/get";
5
- import { getViewTheme as F } from "./index106.js";
5
+ import { getViewTheme as F } from "./index100.js";
6
6
  import { BusinessLogicManager as R } from "./index9.js";
7
- const S = ({
8
- view: r,
9
- canUpdateCustomViews: m
10
- }) => {
7
+ const S = ({ view: r, canUpdateCustomViews: m }) => {
11
8
  var u, f;
12
9
  const { DATE_RANGE_FILTERS: o, NUMBER_RANGE_FILTERS: a, GROUP_MAP: d } = R.getBusinessLogic(), s = Array.from(d.values()).flatMap((e) => e.fields), l = r.filters.filter || {}, { colourPalette: g, customTextColour: b } = F((u = r.view_attributes) == null ? void 0 : u.type);
13
10
  return {
@@ -20,7 +17,10 @@ const S = ({
20
17
  (e) => !o.includes(e.id) && !a.includes(e.id) && e.filterType !== "checkbox"
21
18
  ).map((e) => {
22
19
  const t = n(l, e.id);
23
- return [e.id, t !== void 0 && !Array.isArray(t) && typeof t != "object" ? String(t) : ""];
20
+ return [
21
+ e.id,
22
+ t !== void 0 && !Array.isArray(t) && typeof t != "object" ? String(t) : ""
23
+ ];
24
24
  }).filter(([, e]) => e !== "")
25
25
  ),
26
26
  arrayFilters: new Map(
@@ -60,7 +60,8 @@ const S = ({
60
60
  columns: r.columns,
61
61
  sort: (f = r.filters) == null ? void 0 : f.sort,
62
62
  colourPalette: g,
63
- customTextColour: b
63
+ customTextColour: b,
64
+ view_attributes: r.view_attributes
64
65
  };
65
66
  };
66
67
  export {
package/dist/index82.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index93.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;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./index101.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,4 +1,4 @@
1
- import { INITIAL_VIEWS_STATE as r, ALL_VIEW_ID as u } from "./index93.js";
1
+ import { INITIAL_VIEWS_STATE as r, ALL_VIEW_ID as u } from "./index101.js";
2
2
  import { viewsAdapter as V } from "./index80.js";
3
3
  const p = ({ data: o, canUpdateCustomViews: w }) => {
4
4
  const f = {
package/dist/index88.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("./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;
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/index88.js CHANGED
@@ -1,43 +1,7 @@
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;
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 = "_actionsHeaderContainer_fgqms_1", a = {
2
+ actionsHeaderContainer: e
3
+ };
41
4
  export {
42
- T as usePollData
5
+ e as actionsHeaderContainer,
6
+ a as default
43
7
  };
package/dist/index89.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=t=>t.trim().length>=3||t.trim().length===0;exports.isTextFilterValid=e;
package/dist/index89.js CHANGED
@@ -1,11 +1,4 @@
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
+ const i = (t) => t.trim().length >= 3 || t.trim().length === 0;
6
2
  export {
7
- o as default,
8
- r as refreshButton,
9
- t as refreshIndicator,
10
- e as refreshTooltip
3
+ i as isTextFilterValid
11
4
  };
package/dist/index90.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("./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;
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/index90.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 "./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 = ({
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/index91.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.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,4 +1,11 @@
1
- const i = (t) => t.trim().length >= 3 || t.trim().length === 0;
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
+ };
2
6
  export {
3
- i as isTextFilterValid
7
+ o as default,
8
+ r as refreshButton,
9
+ t as refreshIndicator,
10
+ e as refreshTooltip
4
11
  };
package/dist/index92.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 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/index92.js CHANGED
@@ -1,7 +1,119 @@
1
- const e = "_actionsHeaderContainer_fgqms_1", a = {
2
- actionsHeaderContainer: e
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
+ );
3
116
  };
4
117
  export {
5
- e as actionsHeaderContainer,
6
- a as default
118
+ te as TableManagementModal
7
119
  };
package/dist/index93.cjs CHANGED
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const L=require("./index81.cjs"),t="all",I="All",e=L.createEmptyTransformedView({id:t,label:I}),i={fixedViews:[e],customViews:[],viewsMap:new Map([[e.id,e]])};exports.ALL_VIEW_ID=t;exports.ALL_VIEW_LABEL=I;exports.INITIAL_VIEWS_STATE=i;
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("./index111.cjs"),l=require("./index112.cjs"),c=require("./index96.cjs"),u=require("./index97.cjs"),d=require("./index94.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/index93.js CHANGED
@@ -1,14 +1,15 @@
1
- import { createEmptyTransformedView as i } from "./index81.js";
2
- const o = "all", s = "All", e = i({
3
- id: o,
4
- label: s
5
- }), l = {
6
- fixedViews: [e],
7
- customViews: [],
8
- viewsMap: /* @__PURE__ */ new Map([[e.id, e]])
9
- };
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 "./index111.js";
5
+ import { DroppableArea as d } from "./index112.js";
6
+ import { ColumnItem as l } from "./index96.js";
7
+ import { ColumnGroupIds as c } from "./index97.js";
8
+ import { StickyText as f } from "./index94.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
+ ] });
10
13
  export {
11
- o as ALL_VIEW_ID,
12
- s as ALL_VIEW_LABEL,
13
- l as INITIAL_VIEWS_STATE
14
+ I as ColumnGroup
14
15
  };
package/dist/index94.cjs CHANGED
@@ -1 +1,104 @@
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("./index111.cjs"),l=require("./index112.cjs"),c=require("./index97.cjs"),u=require("./index98.cjs"),d=require("./index95.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 l=require("styled-components"),e=require("@veeqo/ui"),a=o=>o&&o.__esModule?o:{default:o},t=a(l),i=t.default.div`
2
+ width: 1px;
3
+ position: absolute;
4
+ left: 50%;
5
+ transform: translateX(-50%);
6
+ border-left: 1px solid ${e.theme.colors.neutral.grey.dark};
7
+ height: 100%;
8
+ margin-top: 40px;
9
+ `,n=t.default(e.Text)`
10
+ writing-mode: vertical-rl;
11
+ position: absolute;
12
+ top: 50%;
13
+ left: 50%;
14
+ transform: translate(-50%, -50%);
15
+ background: white;
16
+ padding: 30px 0;
17
+ text-align: center;
18
+ font-size: 10px;
19
+ color: ${e.theme.colors.neutral.ink.lightest};
20
+ height: max-content;
21
+ `,s=t.default(e.Text)`
22
+ position: sticky;
23
+ top: 0;
24
+ background: #ffffff;
25
+ padding-bottom: ${e.theme.sizes[2]};
26
+ z-index: 1;
27
+ `,d=t.default(e.Text)`
28
+ color: ${e.theme.colors.neutral.ink.light};
29
+ `,c=t.default(e.Grid)`
30
+ // overflow-y: auto;
31
+ position: unset;
32
+ `,r=t.default(e.VisibilityOffIcon)`
33
+ margin-left: auto;
34
+ `,u=t.default(e.Stack)`
35
+ border-radius: 4px;
36
+ padding: 8px 12px;
37
+ background: #ffffff;
38
+ border: 1px solid ${e.theme.colors.neutral.ink.lightest};
39
+ transition: all ease 200ms;
40
+
41
+ ${({isHidden:o})=>o&&`
42
+ ${e.Text} {
43
+ color: ${e.theme.colors.neutral.ink.light};
44
+ }
45
+ `}
46
+
47
+ &:hover {
48
+ color: ${e.theme.colors.secondary.blue.base};
49
+ background: ${e.theme.colors.neutral.grey.lightest};
50
+ border: 1px solid ${e.theme.colors.neutral.grey.light};
51
+
52
+ ${e.Text} {
53
+ color: ${e.theme.colors.secondary.blue.base};
54
+ }
55
+
56
+ ${r} {
57
+ color: ${e.theme.colors.neutral.ink.light};
58
+ }
59
+ }
60
+
61
+ ${({isDragOverlay:o})=>o&&`
62
+ color: ${e.theme.colors.secondary.blue.base};
63
+ background: ${e.theme.colors.neutral.grey.lightest};
64
+ border: 1px solid ${e.theme.colors.neutral.grey.light};
65
+ cursor: grabbing;
66
+
67
+ ${e.Text} {
68
+ color: ${e.theme.colors.secondary.blue.base};
69
+ }
70
+ `}
71
+ `,g=t.default.div`
72
+ position: absolute;
73
+ top: 0;
74
+ left: 0;
75
+ right: 0;
76
+ bottom: 0;
77
+ height: 100%;
78
+ width: calc(100% - 2px);
79
+ border-radius: 4px;
80
+ border: 1px dashed ${e.theme.colors.neutral.grey.dark};
81
+ background: ${e.theme.colors.neutral.grey.lightest};
82
+ `,p=t.default(e.Stack)`
83
+ flex: 1;
84
+ padding: 0;
85
+ `,h=t.default(e.Search)`
86
+ input {
87
+ height: 40px;
88
+ box-sizing: border-box;
89
+ }
90
+
91
+ svg {
92
+ width: 16px;
93
+ }
94
+ `,f=t.default.div`
95
+ position: relative;
96
+ min-height: 500px;
97
+ `,m=t.default(e.BaseContainer)`
98
+ display: flex;
99
+ flex-direction: column;
100
+ gap: ${e.theme.sizes.base};
101
+ padding: ${e.theme.sizes.md};
102
+ `,b=t.default.dialog`
103
+ display: contents;
104
+ `;exports.ColumnGroupsGrid=c;exports.ColumnItemWrapper=u;exports.ColumnSearch=h;exports.Container=f;exports.DetailedText=d;exports.DndDragOverlayDialog=b;exports.DraggingOverlay=g;exports.DroppableAreaStack=p;exports.HeaderContainer=m;exports.StickyText=s;exports.VerticalSeparator=i;exports.VerticalText=n;exports.VisibilityOffIcon=r;