@adam-milo/ui 1.0.149 → 1.0.150
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 +1 -1
- package/dist/index102.js +1 -1
- package/dist/index119.cjs +1 -1
- package/dist/index119.js +1 -1
- package/dist/index147.cjs +1 -1
- package/dist/index147.js +1 -1
- package/dist/index148.cjs +1 -1
- package/dist/index148.js +1 -1
- package/dist/index42.cjs +1 -1
- package/dist/index42.js +10 -9
- package/dist/src/components/data-display/datatable/DataTable.component.d.ts.map +1 -1
- package/dist/src/components/data-display/datatable/DataTable.types.d.ts +7 -0
- package/dist/src/components/data-display/datatable/DataTable.types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index102.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-tooltip"),n=require("./index72.cjs"),a=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),r=require("@radix-ui/react-tooltip"),n=require("./index72.cjs"),a=require("./index147.cjs"),i=require("./index104.cjs");function s(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const r in e)if("default"!==r){const n=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,n.get?n:{enumerable:!0,get:()=>e[r]})}return t.default=e,Object.freeze(t)}const o=s(r),c=({text:r,layoutKey:s,"data-cy":c,"data-testid":l})=>{const u=t.useRef(null),[d,f]=t.useState(!1);return t.useLayoutEffect(()=>{const e=u.current;if(!e)return;const t=()=>{f(a.isTextOverflowing(e,r))};t();const n=requestAnimationFrame(t),i=requestAnimationFrame(t),s="undefined"!=typeof ResizeObserver?new ResizeObserver(t):null;s?.observe(e);const o=e.closest("td");return o&&s?.observe(o),()=>{cancelAnimationFrame(n),cancelAnimationFrame(i),s?.disconnect()}},[r,s]),e.jsxs(o.Root,{open:!!d&&void 0,children:[e.jsx(o.Trigger,{asChild:!0,children:e.jsx("span",{ref:u,className:n.cn(i.cellTruncateStyles,d&&"cursor-default"),"data-cy":c,"data-testid":l,children:r})}),d?e.jsx(o.Portal,{children:e.jsx(o.Content,{side:"top",align:"start",sideOffset:6,className:i.cellTooltipContentStyles,"data-cy":c?`${c}-tooltip`:void 0,"data-testid":l?`${l}-tooltip`:void 0,children:r})}):null]})};c.displayName="DataTableTruncatedCell",exports.DataTableTruncatedCell=c;
|
package/dist/index102.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as r,useState as i,useLayoutEffect as o}from"react";import*as a from"@radix-ui/react-tooltip";import{cn as n}from"./index72.js";import{isTextOverflowing as s}from"./
|
|
1
|
+
import{jsxs as e,jsx as t}from"react/jsx-runtime";import{useRef as r,useState as i,useLayoutEffect as o}from"react";import*as a from"@radix-ui/react-tooltip";import{cn as n}from"./index72.js";import{isTextOverflowing as s}from"./index147.js";import{cellTruncateStyles as d,cellTooltipContentStyles as c}from"./index104.js";const l=({text:l,layoutKey:m,"data-cy":u,"data-testid":p})=>{const f=r(null),[v,x]=i(!1);return o(()=>{const e=f.current;if(!e)return;const t=()=>{x(s(e,l))};t();const r=requestAnimationFrame(t),i=requestAnimationFrame(t),o="undefined"!=typeof ResizeObserver?new ResizeObserver(t):null;o?.observe(e);const a=e.closest("td");return a&&o?.observe(a),()=>{cancelAnimationFrame(r),cancelAnimationFrame(i),o?.disconnect()}},[l,m]),/* @__PURE__ */e(a.Root,{open:!!v&&void 0,children:[
|
|
2
2
|
/* @__PURE__ */t(a.Trigger,{asChild:!0,children:/* @__PURE__ */t("span",{ref:f,className:n(d,v&&"cursor-default"),"data-cy":u,"data-testid":p,children:l})}),v?/* @__PURE__ */t(a.Portal,{children:/* @__PURE__ */t(a.Content,{side:"top",align:"start",sideOffset:6,className:c,"data-cy":u?`${u}-tooltip`:void 0,"data-testid":p?`${p}-tooltip`:void 0,children:l})}):null]})};l.displayName="DataTableTruncatedCell";export{l as DataTableTruncatedCell};
|
package/dist/index119.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react"),t=require("./index148.cjs");exports.useChipOverflow=(r,n,u,c,s)=>{const[o,l]=e.useState(r.length),i=e.useCallback(()=>{if(void 0!==s)return void l(Math.min(s,r.length));const e=n.current;if(!e)return;const o=e.clientWidth,i=parseFloat(getComputedStyle(document.documentElement).fontSize)||16,a=window.getComputedStyle(e),f=a.gap,h=parseFloat(a.fontSize)||16,d=t.parseGapValue(f,i,h),m=3.75*i;for(let t=0;t<r.length;t++){const e=r[t],n=u.current[t];n&&c.current.set(e.value,n.offsetWidth)}const g=t.calculateFittingChips(r,c.current,o,d,m);l(g)},[r,s,n,u,c]),a=((t,r)=>{const n=e.useRef(null);return e.useEffect(()=>()=>{n.current&&clearTimeout(n.current)},[]),e.useCallback((...e)=>{n.current&&clearTimeout(n.current),n.current=setTimeout(()=>t(...e),r)},[t,r])})(i,100);e.useEffect(()=>{u.current.length>r.length&&(u.current=u.current.slice(0,r.length));const e=new Set(r.map(e=>e.value));if(c.current.forEach((t,r)=>{e.has(r)||c.current.delete(r)}),void 0===s){r.some(e=>!c.current.has(e.value))?l(r.length):setTimeout(i,0)}},[r,s,i,u,c]),e.useEffect(()=>{const e=n.current;if(!e)return;const t=new ResizeObserver(()=>{a()});return t.observe(e),setTimeout(i,0),()=>{t.disconnect()}},[i,a,n]);const f=r.slice(0,o),h=r.slice(o);return{visibleCount:o,visibleItems:f,hiddenItems:h,hasOverflow:h.length>0}};
|
package/dist/index119.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{useState as e,useCallback as t,useEffect as r,useRef as n}from"react";import{parseGapValue as o,calculateFittingChips as c}from"./
|
|
1
|
+
import{useState as e,useCallback as t,useEffect as r,useRef as n}from"react";import{parseGapValue as o,calculateFittingChips as c}from"./index148.js";const u=(u,s,i,l,m)=>{const[a,h]=e(u.length),d=t(()=>{if(void 0!==m)return void h(Math.min(m,u.length));const e=s.current;if(!e)return;const t=e.clientWidth,r=parseFloat(getComputedStyle(document.documentElement).fontSize)||16,n=window.getComputedStyle(e),a=n.gap,d=parseFloat(n.fontSize)||16,f=o(a,r,d),g=3.75*r;for(let o=0;o<u.length;o++){const e=u[o],t=i.current[o];t&&l.current.set(e.value,t.offsetWidth)}const v=c(u,l.current,t,f,g);h(v)},[u,m,s,i,l]),f=((e,o)=>{const c=n(null);return r(()=>()=>{c.current&&clearTimeout(c.current)},[]),t((...t)=>{c.current&&clearTimeout(c.current),c.current=setTimeout(()=>e(...t),o)},[e,o])})(d,100);r(()=>{i.current.length>u.length&&(i.current=i.current.slice(0,u.length));const e=new Set(u.map(e=>e.value));if(l.current.forEach((t,r)=>{e.has(r)||l.current.delete(r)}),void 0===m){u.some(e=>!l.current.has(e.value))?h(u.length):setTimeout(d,0)}},[u,m,d,i,l]),r(()=>{const e=s.current;if(!e)return;const t=new ResizeObserver(()=>{f()});return t.observe(e),setTimeout(d,0),()=>{t.disconnect()}},[d,f,s]);const g=u.slice(0,a),v=u.slice(a);return{visibleCount:a,visibleItems:g,hiddenItems:v,hasOverflow:v.length>0}};export{u as useChipOverflow};
|
package/dist/index147.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=(t,e)=>{const n=document.createElement("span");n.dataset.datatableMeasure="true",n.style.cssText="position:absolute;top:-9999px;left:-9999px;white-space:nowrap;pointer-events:none;",n.style.font=getComputedStyle(t).font,n.textContent=e,t.ownerDocument.body.appendChild(n);const o=n.getBoundingClientRect().width;return n.remove(),o},e=(...t)=>{for(const e of t){const t=Number.parseFloat(e);if(Number.isFinite(t))return t}return 0};exports.isTextOverflowing=(n,o)=>{if(!o)return!1;const r=n.closest("td")??n,i=getComputedStyle(r),s=e(i.paddingInlineStart,i.paddingLeft)+e(i.paddingInlineEnd,i.paddingRight),d=r.getBoundingClientRect().width-s;return d>0&&t(n,o)>d+1},exports.measureTextWidth=t;
|
package/dist/index147.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t=(t,e)=>{const n=document.createElement("span");n.dataset.datatableMeasure="true",n.style.cssText="position:absolute;top:-9999px;left:-9999px;white-space:nowrap;pointer-events:none;",n.style.font=getComputedStyle(t).font,n.textContent=e,t.ownerDocument.body.appendChild(n);const o=n.getBoundingClientRect().width;return n.remove(),o},e=(...t)=>{for(const e of t){const t=Number.parseFloat(e);if(Number.isFinite(t))return t}return 0},n=(n,o)=>{if(!o)return!1;const i=n.closest("td")??n,r=getComputedStyle(i),d=e(r.paddingInlineStart,r.paddingLeft)+e(r.paddingInlineEnd,r.paddingRight),s=i.getBoundingClientRect().width-d;return s>0&&t(n,o)>s+1};export{n as isTextOverflowing,t as measureTextWidth};
|
package/dist/index148.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.calculateFittingChips=(e,t,r,a,s)=>{let n=0,l=0;for(let u=0;u<e.length;u++){const c=e[u],i=t.get(c.value)||0;if(0===i){l++;break}const o=n+(u>0?a:0)+i;if(u<e.length-1){if(o+a+s>r&&l>0)break}else if(o>r&&l>0)break;n=o,l++}return Math.max(1,l)},exports.parseGapValue=(e,t,r)=>{if(!e)return.5*t;const a=e.match(/^([\d.]+)(px|rem|em)?/);if(!a)return.5*t;const s=parseFloat(a[1]);switch(a[2]||"px"){case"px":return s;case"rem":return s*t;case"em":return s*r;default:return.5*t}};
|
package/dist/index148.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const e=(e,t,r)=>{if(!e)return.5*t;const n=e.match(/^([\d.]+)(px|rem|em)?/);if(!n)return.5*t;const a=parseFloat(n[1]);switch(n[2]||"px"){case"px":return a;case"rem":return a*t;case"em":return a*r;default:return.5*t}},t=(e,t,r,n,a)=>{let s=0,c=0;for(let u=0;u<e.length;u++){const f=e[u],l=t.get(f.value)||0;if(0===l){c++;break}const o=s+(u>0?n:0)+l;if(u<e.length-1){if(o+n+a>r&&c>0)break}else if(o>r&&c>0)break;s=o,c++}return Math.max(1,c)};export{t as calculateFittingChips,e as parseGapValue};
|
package/dist/index42.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@radix-ui/react-tooltip"),r=require("@adam-milo/icons"),s=require("./index72.cjs"),l=require("./index12.cjs"),n=require("./index50.cjs"),d=require("./index53.cjs"),c=require("./index102.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("react/jsx-runtime"),t=require("react"),a=require("@radix-ui/react-tooltip"),r=require("@adam-milo/icons"),s=require("./index72.cjs"),l=require("./index12.cjs"),n=require("./index50.cjs"),d=require("./index53.cjs"),c=require("./index102.cjs"),i=require("./index103.cjs"),o=require("./index104.cjs");function y(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e)for(const a in e)if("default"!==a){const r=Object.getOwnPropertyDescriptor(e,a);Object.defineProperty(t,a,r.get?r:{enumerable:!0,get:()=>e[a]})}return t.default=e,Object.freeze(t)}const u=y(a),h=["60%","75%","45%","55%","70%","50%"],m=t.forwardRef(({columns:a,data:y,striped:m=!1,hoverable:x=!1,headerLeft:S,headerRight:b,borderBreak:f=!1,onLoadMore:p,isLoadingMore:k=!1,hasMore:$=!1,loadingIndicator:j,skeletonRows:v=3,maxHeight:g,emptyStateText:w,selectable:B=!1,rowKey:N="id",rowCySuffixKey:C,selectedRows:E,onSelectionChange:L,onRowClick:T,footerBar:R,sortKey:q,sortDirection:D,onSortChange:F,filters:O,onFilterChange:M,truncateOverflow:I=!1,className:A,"data-cy":K,"data-testid":P,...H},W)=>{const _=K||"datatable",z=P||"datatable",J=S||b,X=t.useRef(null),G=t.useRef(null),Q=t.useRef(null),[U,V]=t.useState(!1),Y=t.useCallback(e=>{Q.current=e,"function"==typeof W?W(e):W&&(W.current=e)},[W]),Z=t.useMemo(()=>I||a.some(e=>e.truncate),[I,a]),ee=t.useMemo(()=>I||a.some(e=>e.truncate&&!e.render),[I,a]),te=i.useLockedColumnWidths(Z,a,Q,_,B),ae=Z,re=t.useCallback(e=>!e.render&&(e.truncate??I),[I]),se=t.useCallback(e=>{if(!Z)return e.width?{width:e.width}:void 0;if(e.width&&i.isExplicitColumnWidth(e.width))return{width:e.width};const t=te?.[e.key];return null!=t?{width:t}:e.width?{width:e.width}:void 0},[Z,te]),le=t.useMemo(()=>te?JSON.stringify(te):"initial",[te]),ne=t.useCallback((t,a,r)=>{if(t.render)return t.render(a[t.key],a,r);const s=String(a[t.key]??"");return re(t)?e.jsx(c.DataTableTruncatedCell,{text:s,layoutKey:le,"data-cy":`${_}-cell-content-${r}-${t.key}`,"data-testid":`${z}-cell-content-${r}-${t.key}`}):s},[_,z,re,le]);t.useEffect(()=>{const e=G.current;if(!e||!g)return;const t=()=>V(e.scrollTop>0);return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[g]);const de=Z?o.thBorderBreakTruncateStyles:o.thBorderBreakStyles,ce=Z?o.tdBorderBreakTruncateStyles:o.tdBorderBreakStyles,ie=s.cn(o.checkboxCellStyles,f&&o.thBorderBreakStyles),oe=s.cn(o.checkboxCellStyles,f&&o.tdBorderBreakStyles),ye=t.useMemo(()=>E??new Set,[E]),ue=y.map(e=>String(e[N]??"")),he=B&&y.length>0&&ue.every(e=>ye.has(e)),me=B&&y.length>0&&ue.some(e=>ye.has(e)),xe=t.useCallback(()=>{if(L)if(he){const e=new Set(ye);ue.forEach(t=>e.delete(t)),L(e)}else{const e=new Set(ye);ue.forEach(t=>e.add(t)),L(e)}},[he,ue,ye,L]),Se=t.useCallback(e=>{if(!L)return;const t=new Set(ye);t.has(e)?t.delete(e):t.add(e),L(t)},[ye,L]),be=B?a.length+1:a.length,fe=e=>{if(e.sortable)return q!==e.key?"none":"asc"===D?"ascending":"desc"===D?"descending":"none"},pe=t=>{const a="string"==typeof t.header?t.header:void 0;return e.jsxs("span",{className:o.headerCellContentStyles,children:[e.jsx("span",{className:o.headerLabelStyles,children:t.header}),t.sortable&&e.jsx(n.SortButton,{direction:q===t.key?D??"none":"none",onDirectionChange:e=>F?.(t.key,e),"aria-label":a?`Sort by ${a}`:"Sort column","data-cy":`${_}-sort-${t.key}`,"data-testid":`${z}-sort-${t.key}`}),t.filterable&&t.filterOptions&&e.jsx(d.CheckFilter,{mode:"multi",options:t.filterOptions,value:O?.[t.key],onApply:e=>M?.(t.key,e),title:t.filterTitle,searchable:t.filterSearchable,"aria-label":a?`Filter ${a}`:"Filter column","data-cy":`${_}-filter-${t.key}`,"data-testid":`${z}-filter-${t.key}`})]})},ke=t.useCallback(e=>{const[t]=e;t.isIntersecting&&$&&!k&&p&&p()},[$,k,p]);t.useEffect(()=>{const e=X.current;if(!e||!p)return;const t=new IntersectionObserver(ke,{root:g?G.current:null,rootMargin:"0px",threshold:.1});return t.observe(e),()=>t.disconnect()},[ke,p,g]);const $e=e.jsxs(e.Fragment,{children:[e.jsxs("table",{ref:Y,className:s.cn(o.tableBaseStyles,ae&&o.tableFixedLayoutStyles,A),"aria-busy":k||void 0,"data-cy":_,"data-testid":z,...H,children:[e.jsx("thead",{className:s.cn(o.theadStyles,f&&o.theadBorderBreakStyles,g&&o.stickyTheadStyles,g&&U&&o.stickyTheadScrolledStyles),"data-cy":`${_}-head`,"data-testid":`${z}-head`,children:e.jsxs("tr",{children:[B&&e.jsx("th",{scope:"col",className:ie,"data-cy":`${_}-header-checkbox`,"data-testid":`${z}-header-checkbox`,children:e.jsx("label",{className:o.checkboxLabelStyles,children:e.jsx(l.Checkbox,{checked:he,indeterminate:me&&!he,onChange:xe,"aria-label":"Select all rows","data-cy":`${_}-select-all`,"data-testid":`${z}-select-all`})})}),a.map(t=>e.jsx("th",{scope:"col","aria-sort":fe(t),className:s.cn(o.thStyles,f&&de),style:se(t),"data-cy":`${_}-header-${t.key}`,"data-testid":`${z}-header-${t.key}`,children:pe(t)},t.key))]})}),e.jsxs("tbody",{"data-cy":`${_}-body`,"data-testid":`${z}-body`,children:[0!==y.length||k?y.map((t,r)=>{const n=C?t[C]:void 0,d=null==n||""===String(n)?String(r):String(n);return e.jsxs("tr",{className:s.cn(o.trStripedStyles,f&&o.trBorderBreakStyles,x&&o.trHoverableStyles,m&&!f&&o.trStripedEvenStyles,T&&o.trClickableStyles,T&&f&&o.trClickableBorderBreakFocusStyles),tabIndex:T?0:void 0,style:T?{outline:"none",boxShadow:"none"}:void 0,onFocus:e=>e.currentTarget.setAttribute("data-focused","true"),onBlur:e=>e.currentTarget.removeAttribute("data-focused"),onClick:T?e=>{e.target.closest('button, a, input, label, [role="checkbox"]')||T(t,r)}:void 0,onKeyDown:T?e=>{if("Enter"===e.key||" "===e.key){if(e.target.closest('button, a, input, label, [role="checkbox"]'))return;e.preventDefault(),T(t,r)}}:void 0,"data-cy":`${_}-row-${d}`,"data-testid":`${z}-row-${d}`,children:[B&&e.jsx("td",{className:oe,"data-cy":`${_}-cell-${r}-checkbox`,"data-testid":`${z}-cell-${r}-checkbox`,children:e.jsx("label",{className:o.checkboxLabelStyles,children:e.jsx(l.Checkbox,{checked:ye.has(String(t[N]??"")),onChange:()=>Se(String(t[N]??"")),"aria-label":`Select row ${r+1}`,"data-cy":`${_}-select-${r}`,"data-testid":`${z}-select-${r}`})})}),a.map(a=>e.jsx("td",{className:s.cn(o.tdStyles,f&&ce,re(a)&&o.tdTruncateStyles),style:se(a),"data-cy":`${_}-cell-${r}-${a.key}`,"data-testid":`${z}-cell-${r}-${a.key}`,children:ne(a,t,r)},a.key))]},r)}):e.jsx("tr",{children:e.jsx("td",{colSpan:be,className:"p-0","data-cy":`${_}-empty`,"data-testid":`${z}-empty`,children:e.jsxs("div",{className:o.emptyStateWrapperStyles,children:[e.jsx("div",{className:o.emptyStateIconStyles,"aria-hidden":"true","data-cy":`${_}-empty-icon`,"data-testid":`${z}-empty-icon`,children:e.jsx(r.CustomEmptyBoxIcon,{width:"100%",height:"100%"})}),w&&e.jsx("p",{className:o.emptyStateTextStyles,"data-cy":`${_}-empty-text`,"data-testid":`${z}-empty-text`,children:w})]})})}),k&&(j?e.jsx("tr",{children:e.jsx("td",{colSpan:be,className:o.loadingRowStyles,"data-cy":`${_}-loading`,"data-testid":`${z}-loading`,children:j})}):Array.from({length:v}).map((t,r)=>e.jsxs("tr",{className:s.cn(o.trStripedStyles,f&&o.trBorderBreakStyles),"data-cy":`${_}-skeleton-${r}`,"data-testid":`${z}-skeleton-${r}`,children:[B&&e.jsx("td",{className:oe,children:e.jsx("div",{className:o.checkboxLabelStyles,children:e.jsx("div",{className:"w-4 h-4 rounded-4 bg-[color-mix(in_srgb,var(--color-border)_40%,transparent)]"})})}),a.map((t,a)=>e.jsx("td",{className:s.cn(o.tdStyles,f&&ce),children:e.jsx("div",{className:o.skeletonCellStyles,style:{width:h[(r+a)%h.length]}})},t.key))]},`skeleton-${r}`)))]})]}),p&&e.jsx("div",{ref:X,className:"h-4","data-cy":`${_}-sentinel`,"data-testid":`${z}-sentinel`,"aria-hidden":"true"})]}),je=ee?e.jsx(u.Provider,{delayDuration:0,skipDelayDuration:0,children:$e}):$e,ve=e.jsxs("div",{className:s.cn(o.wrapperStyles,!Z&&o.wrapperScrollXStyles,f&&($?"overflow-hidden rounded-t-2xl":"overflow-hidden rounded-2xl")),tabIndex:-1,style:{outline:"none"},"data-cy":`${_}-wrapper`,"data-testid":`${z}-wrapper`,children:[J&&e.jsxs("div",{className:o.headerBarStyles,"data-cy":`${_}-header-bar`,"data-testid":`${z}-header-bar`,children:[e.jsx("div",{"data-cy":`${_}-header-left`,"data-testid":`${z}-header-left`,children:S}),e.jsx("div",{"data-cy":`${_}-header-right`,"data-testid":`${z}-header-right`,children:b})]}),g?e.jsx("div",{ref:G,className:o.scrollContainerStyles,tabIndex:-1,style:{maxHeight:g,outline:"none"},children:je}):je]}),ge=R?e.jsx("div",{className:o.footerBarStyles,"data-cy":`${_}-footer-bar`,"data-testid":`${z}-footer-bar`,children:R}):null;return f?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:s.cn(o.wrapperBorderBreakStyles,$?o.wrapperBorderBreakFlatBottomStyles:o.wrapperBorderBreakRoundedStyles),children:ve}),ge]}):e.jsxs(e.Fragment,{children:[ve,ge]})});m.displayName="DataTable";const x=t.forwardRef(({children:a,className:r,style:l,...n},d)=>{const c=t.useRef(null),[i,o]=t.useState(!1);return t.useEffect(()=>{const e=c.current;if(!e)return;const t=e.closest("tr");if(!t)return;const a=()=>o(!0),r=()=>o(!1);return t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",r),t.addEventListener("focusin",a),t.addEventListener("focusout",r),()=>{t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",r),t.removeEventListener("focusin",a),t.removeEventListener("focusout",r)}},[]),e.jsx("span",{ref:e=>{c.current=e,"function"==typeof d?d(e):d&&(d.current=e)},className:s.cn("transition-opacity duration-200",i?"opacity-100":"opacity-0",r),style:l,...n,children:a})});x.displayName="RowAction",exports.DataTable=m,exports.RowAction=x;
|
package/dist/index42.js
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import{forwardRef as r,useRef as n,useState as d,useCallback as i,useMemo as o,useEffect as l}from"react";import*as s from"@radix-ui/react-tooltip";import{CustomEmptyBoxIcon as c}from"@adam-milo/icons";import{cn as h}from"./index72.js";import{Checkbox as m}from"./index12.js";import{SortButton as y}from"./index50.js";import{CheckFilter as u}from"./index53.js";import{DataTableTruncatedCell as $}from"./index102.js";import{useLockedColumnWidths as f,isExplicitColumnWidth as p}from"./index103.js";import{checkboxLabelStyles as v,emptyStateWrapperStyles as b,emptyStateIconStyles as g,emptyStateTextStyles as k,tdTruncateStyles as w,tdStyles as N,loadingRowStyles as x,skeletonCellStyles as S,headerBarStyles as E,scrollContainerStyles as L,thBorderBreakStyles as
|
|
1
|
+
import{jsx as e,jsxs as t,Fragment as a}from"react/jsx-runtime";import{forwardRef as r,useRef as n,useState as d,useCallback as i,useMemo as o,useEffect as l}from"react";import*as s from"@radix-ui/react-tooltip";import{CustomEmptyBoxIcon as c}from"@adam-milo/icons";import{cn as h}from"./index72.js";import{Checkbox as m}from"./index12.js";import{SortButton as y}from"./index50.js";import{CheckFilter as u}from"./index53.js";import{DataTableTruncatedCell as $}from"./index102.js";import{useLockedColumnWidths as f,isExplicitColumnWidth as p}from"./index103.js";import{checkboxLabelStyles as v,emptyStateWrapperStyles as b,emptyStateIconStyles as g,emptyStateTextStyles as k,tdTruncateStyles as w,tdStyles as N,loadingRowStyles as x,skeletonCellStyles as S,headerBarStyles as E,scrollContainerStyles as L,thBorderBreakStyles as C,checkboxCellStyles as j,headerCellContentStyles as D,headerLabelStyles as I,tdBorderBreakStyles as T,tdBorderBreakTruncateStyles as A,thBorderBreakTruncateStyles as K,thStyles as O,stickyTheadScrolledStyles as R,stickyTheadStyles as F,theadBorderBreakStyles as M,theadStyles as B,trClickableBorderBreakFocusStyles as H,trClickableStyles as _,trStripedEvenStyles as J,trHoverableStyles as P,trBorderBreakStyles as q,trStripedStyles as z,tableFixedLayoutStyles as G,tableBaseStyles as Q,footerBarStyles as U,wrapperScrollXStyles as V,wrapperStyles as W,wrapperBorderBreakFlatBottomStyles as X,wrapperBorderBreakRoundedStyles as Y,wrapperBorderBreakStyles as Z}from"./index104.js";const ee=["60%","75%","45%","55%","70%","50%"],te=r(({columns:r,data:te,striped:ae=!1,hoverable:re=!1,headerLeft:ne,headerRight:de,borderBreak:ie=!1,onLoadMore:oe,isLoadingMore:le=!1,hasMore:se=!1,loadingIndicator:ce,skeletonRows:he=3,maxHeight:me,emptyStateText:ye,selectable:ue=!1,rowKey:$e="id",rowCySuffixKey:fe,selectedRows:pe,onSelectionChange:ve,onRowClick:be,footerBar:ge,sortKey:ke,sortDirection:we,onSortChange:Ne,filters:xe,onFilterChange:Se,truncateOverflow:Ee=!1,className:Le,"data-cy":Ce,"data-testid":je,...De},Ie)=>{const Te=Ce||"datatable",Ae=je||"datatable",Ke=ne||de,Oe=n(null),Re=n(null),Fe=n(null),[Me,Be]=d(!1),He=i(e=>{Fe.current=e,"function"==typeof Ie?Ie(e):Ie&&(Ie.current=e)},[Ie]),_e=o(()=>Ee||r.some(e=>e.truncate),[Ee,r]),Je=o(()=>Ee||r.some(e=>e.truncate&&!e.render),[Ee,r]),Pe=f(_e,r,Fe,Te,ue),qe=_e,ze=i(e=>!e.render&&(e.truncate??Ee),[Ee]),Ge=i(e=>{if(!_e)return e.width?{width:e.width}:void 0;if(e.width&&p(e.width))return{width:e.width};const t=Pe?.[e.key];return null!=t?{width:t}:e.width?{width:e.width}:void 0},[_e,Pe]),Qe=o(()=>Pe?JSON.stringify(Pe):"initial",[Pe]),Ue=i((t,a,r)=>{if(t.render)return t.render(a[t.key],a,r);const n=String(a[t.key]??"");return ze(t)?/* @__PURE__ */e($,{text:n,layoutKey:Qe,"data-cy":`${Te}-cell-content-${r}-${t.key}`,"data-testid":`${Ae}-cell-content-${r}-${t.key}`}):n},[Te,Ae,ze,Qe]);l(()=>{const e=Re.current;if(!e||!me)return;const t=()=>Be(e.scrollTop>0);return e.addEventListener("scroll",t,{passive:!0}),()=>e.removeEventListener("scroll",t)},[me]);const Ve=_e?K:C,We=_e?A:T,Xe=h(j,ie&&C),Ye=h(j,ie&&T),Ze=o(()=>pe??/* @__PURE__ */new Set,[pe]),et=te.map(e=>String(e[$e]??"")),tt=ue&&te.length>0&&et.every(e=>Ze.has(e)),at=ue&&te.length>0&&et.some(e=>Ze.has(e)),rt=i(()=>{if(ve)if(tt){const e=new Set(Ze);et.forEach(t=>e.delete(t)),ve(e)}else{const e=new Set(Ze);et.forEach(t=>e.add(t)),ve(e)}},[tt,et,Ze,ve]),nt=i(e=>{if(!ve)return;const t=new Set(Ze);t.has(e)?t.delete(e):t.add(e),ve(t)},[Ze,ve]),dt=ue?r.length+1:r.length,it=e=>{if(e.sortable)return ke!==e.key?"none":"asc"===we?"ascending":"desc"===we?"descending":"none"},ot=a=>{const r="string"==typeof a.header?a.header:void 0;/* @__PURE__ */
|
|
2
2
|
return t("span",{className:D,children:[
|
|
3
|
-
/* @__PURE__ */e("span",{className:I,children:a.header}),a.sortable&&/* @__PURE__ */e(y,{direction:
|
|
4
|
-
/* @__PURE__ */t("table",{ref:
|
|
5
|
-
/* @__PURE__ */e("thead",{className:h(B,ie&&M,me&&
|
|
6
|
-
/* @__PURE__ */t("tbody",{"data-cy":`${
|
|
7
|
-
|
|
8
|
-
/* @__PURE__ */e("div",{"data-cy":`${
|
|
9
|
-
/* @__PURE__ */e("div",{"data-cy":`${
|
|
3
|
+
/* @__PURE__ */e("span",{className:I,children:a.header}),a.sortable&&/* @__PURE__ */e(y,{direction:ke===a.key?we??"none":"none",onDirectionChange:e=>Ne?.(a.key,e),"aria-label":r?`Sort by ${r}`:"Sort column","data-cy":`${Te}-sort-${a.key}`,"data-testid":`${Ae}-sort-${a.key}`}),a.filterable&&a.filterOptions&&/* @__PURE__ */e(u,{mode:"multi",options:a.filterOptions,value:xe?.[a.key],onApply:e=>Se?.(a.key,e),title:a.filterTitle,searchable:a.filterSearchable,"aria-label":r?`Filter ${r}`:"Filter column","data-cy":`${Te}-filter-${a.key}`,"data-testid":`${Ae}-filter-${a.key}`})]})},lt=i(e=>{const[t]=e;t.isIntersecting&&se&&!le&&oe&&oe()},[se,le,oe]);l(()=>{const e=Oe.current;if(!e||!oe)return;const t=new IntersectionObserver(lt,{root:me?Re.current:null,rootMargin:"0px",threshold:.1});return t.observe(e),()=>t.disconnect()},[lt,oe,me]);const st=/* @__PURE__ */t(a,{children:[
|
|
4
|
+
/* @__PURE__ */t("table",{ref:He,className:h(Q,qe&&G,Le),"aria-busy":le||void 0,"data-cy":Te,"data-testid":Ae,...De,children:[
|
|
5
|
+
/* @__PURE__ */e("thead",{className:h(B,ie&&M,me&&F,me&&Me&&R),"data-cy":`${Te}-head`,"data-testid":`${Ae}-head`,children:/* @__PURE__ */t("tr",{children:[ue&&/* @__PURE__ */e("th",{scope:"col",className:Xe,"data-cy":`${Te}-header-checkbox`,"data-testid":`${Ae}-header-checkbox`,children:/* @__PURE__ */e("label",{className:v,children:/* @__PURE__ */e(m,{checked:tt,indeterminate:at&&!tt,onChange:rt,"aria-label":"Select all rows","data-cy":`${Te}-select-all`,"data-testid":`${Ae}-select-all`})})}),r.map(t=>/* @__PURE__ */e("th",{scope:"col","aria-sort":it(t),className:h(O,ie&&Ve),style:Ge(t),"data-cy":`${Te}-header-${t.key}`,"data-testid":`${Ae}-header-${t.key}`,children:ot(t)},t.key))]})}),
|
|
6
|
+
/* @__PURE__ */t("tbody",{"data-cy":`${Te}-body`,"data-testid":`${Ae}-body`,children:[0!==te.length||le?te.map((a,n)=>{const d=fe?a[fe]:void 0,i=null==d||""===String(d)?String(n):String(d);/* @__PURE__ */
|
|
7
|
+
return t("tr",{className:h(z,ie&&q,re&&P,ae&&!ie&&J,be&&_,be&&ie&&H),tabIndex:be?0:void 0,style:be?{outline:"none",boxShadow:"none"}:void 0,onFocus:e=>e.currentTarget.setAttribute("data-focused","true"),onBlur:e=>e.currentTarget.removeAttribute("data-focused"),onClick:be?e=>{e.target.closest('button, a, input, label, [role="checkbox"]')||be(a,n)}:void 0,onKeyDown:be?e=>{if("Enter"===e.key||" "===e.key){if(e.target.closest('button, a, input, label, [role="checkbox"]'))return;e.preventDefault(),be(a,n)}}:void 0,"data-cy":`${Te}-row-${i}`,"data-testid":`${Ae}-row-${i}`,children:[ue&&/* @__PURE__ */e("td",{className:Ye,"data-cy":`${Te}-cell-${n}-checkbox`,"data-testid":`${Ae}-cell-${n}-checkbox`,children:/* @__PURE__ */e("label",{className:v,children:/* @__PURE__ */e(m,{checked:Ze.has(String(a[$e]??"")),onChange:()=>nt(String(a[$e]??"")),"aria-label":`Select row ${n+1}`,"data-cy":`${Te}-select-${n}`,"data-testid":`${Ae}-select-${n}`})})}),r.map(t=>/* @__PURE__ */e("td",{className:h(N,ie&&We,ze(t)&&w),style:Ge(t),"data-cy":`${Te}-cell-${n}-${t.key}`,"data-testid":`${Ae}-cell-${n}-${t.key}`,children:Ue(t,a,n)},t.key))]},n)}):/* @__PURE__ */e("tr",{children:/* @__PURE__ */e("td",{colSpan:dt,className:"p-0","data-cy":`${Te}-empty`,"data-testid":`${Ae}-empty`,children:/* @__PURE__ */t("div",{className:b,children:[
|
|
8
|
+
/* @__PURE__ */e("div",{className:g,"aria-hidden":"true","data-cy":`${Te}-empty-icon`,"data-testid":`${Ae}-empty-icon`,children:/* @__PURE__ */e(c,{width:"100%",height:"100%"})}),ye&&/* @__PURE__ */e("p",{className:k,"data-cy":`${Te}-empty-text`,"data-testid":`${Ae}-empty-text`,children:ye})]})})}),le&&(ce?/* @__PURE__ */e("tr",{children:/* @__PURE__ */e("td",{colSpan:dt,className:x,"data-cy":`${Te}-loading`,"data-testid":`${Ae}-loading`,children:ce})}):Array.from({length:he}).map((a,n)=>/* @__PURE__ */t("tr",{className:h(z,ie&&q),"data-cy":`${Te}-skeleton-${n}`,"data-testid":`${Ae}-skeleton-${n}`,children:[ue&&/* @__PURE__ */e("td",{className:Ye,children:/* @__PURE__ */e("div",{className:v,children:/* @__PURE__ */e("div",{className:"w-4 h-4 rounded-4 bg-[color-mix(in_srgb,var(--color-border)_40%,transparent)]"})})}),r.map((t,a)=>/* @__PURE__ */e("td",{className:h(N,ie&&We),children:/* @__PURE__ */e("div",{className:S,style:{width:ee[(n+a)%ee.length]}})},t.key))]},`skeleton-${n}`)))]})]}),oe&&/* @__PURE__ */e("div",{ref:Oe,className:"h-4","data-cy":`${Te}-sentinel`,"data-testid":`${Ae}-sentinel`,"aria-hidden":"true"})]}),ct=Je?/* @__PURE__ */e(s.Provider,{delayDuration:0,skipDelayDuration:0,children:st}):st,ht=/* @__PURE__ */t("div",{className:h(W,!_e&&V,ie&&(se?"overflow-hidden rounded-t-2xl":"overflow-hidden rounded-2xl")),tabIndex:-1,style:{outline:"none"},"data-cy":`${Te}-wrapper`,"data-testid":`${Ae}-wrapper`,children:[Ke&&/* @__PURE__ */t("div",{className:E,"data-cy":`${Te}-header-bar`,"data-testid":`${Ae}-header-bar`,children:[
|
|
9
|
+
/* @__PURE__ */e("div",{"data-cy":`${Te}-header-left`,"data-testid":`${Ae}-header-left`,children:ne}),
|
|
10
|
+
/* @__PURE__ */e("div",{"data-cy":`${Te}-header-right`,"data-testid":`${Ae}-header-right`,children:de})]}),me?/* @__PURE__ */e("div",{ref:Re,className:L,tabIndex:-1,style:{maxHeight:me,outline:"none"},children:ct}):ct]}),mt=ge?/* @__PURE__ */e("div",{className:U,"data-cy":`${Te}-footer-bar`,"data-testid":`${Ae}-footer-bar`,children:ge}):null;/* @__PURE__ */
|
|
10
11
|
return t(a,ie?{children:[
|
|
11
|
-
/* @__PURE__ */e("div",{className:h(Z,se?X:Y),children:
|
|
12
|
+
/* @__PURE__ */e("div",{className:h(Z,se?X:Y),children:ht}),mt]}:{children:[ht,mt]})});te.displayName="DataTable";const ae=r(({children:t,className:a,style:r,...i},o)=>{const s=n(null),[c,m]=d(!1);return l(()=>{const e=s.current;if(!e)return;const t=e.closest("tr");if(!t)return;const a=()=>m(!0),r=()=>m(!1);return t.addEventListener("mouseenter",a),t.addEventListener("mouseleave",r),t.addEventListener("focusin",a),t.addEventListener("focusout",r),()=>{t.removeEventListener("mouseenter",a),t.removeEventListener("mouseleave",r),t.removeEventListener("focusin",a),t.removeEventListener("focusout",r)}},[]),/* @__PURE__ */e("span",{ref:e=>{s.current=e,"function"==typeof o?o(e):o&&(o.current=e)},className:h("transition-opacity duration-200",c?"opacity-100":"opacity-0",a),style:r,...i,children:t})});ae.displayName="RowAction";export{te as DataTable,ae as RowAction};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA4CzE,eAAO,MAAM,SAAS,
|
|
1
|
+
{"version":3,"file":"DataTable.component.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.component.tsx"],"names":[],"mappings":"AAAA,OAAO,EAOL,KAAK,SAAS,EACd,KAAK,cAAc,EAEpB,MAAM,OAAO,CAAC;AAOf,OAAO,KAAK,EAAmB,cAAc,EAAE,MAAM,mBAAmB,CAAC;AA4CzE,eAAO,MAAM,SAAS,6GAujBrB,CAAC;AAIF;;;;GAIG;AACH,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,eAAe,CAAC;IACrE,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,eAAO,MAAM,SAAS,4GAgDrB,CAAC;AAIF,YAAY,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC"}
|
|
@@ -72,6 +72,13 @@ export interface DataTableProps extends TableHTMLAttributes<HTMLTableElement> {
|
|
|
72
72
|
selectable?: boolean;
|
|
73
73
|
/** Unique key field in each data row used to track selection (e.g. 'id') */
|
|
74
74
|
rowKey?: string;
|
|
75
|
+
/**
|
|
76
|
+
* Names a field on each row whose string value replaces the row index in the
|
|
77
|
+
* row `data-cy` and `data-testid` only. It does not change selection, and it
|
|
78
|
+
* does not change cell attributes. When omitted, or when the field is missing,
|
|
79
|
+
* null, or empty, the suffix stays `String(rowIndex)`.
|
|
80
|
+
*/
|
|
81
|
+
rowCySuffixKey?: string;
|
|
75
82
|
/** Set of selected row keys — controlled from outside */
|
|
76
83
|
selectedRows?: Set<string | number>;
|
|
77
84
|
/** Called when selection changes — receives the updated Set of selected keys */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DataTable.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8FAA8F;IAC9F,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;IACvF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,kFAAkF;IAClF,aAAa,CAAC,EAAE,aAAa,CAAC,iBAAiB,CAAC,CAAC;IACjD,yDAAyD;IACzD,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,6DAA6D;IAC7D,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAA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IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,uEAAuE;IACvE,aAAa,CAAC,EAAE,aAAa,CAAC;IAC9B;;;;OAIG;IACH,YAAY,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,SAAS,EAAE,aAAa,KAAK,IAAI,CAAC;IAC/D;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACnC;;;;OAIG;IACH,cAAc,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,IAAI,CAAC;IACzD;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB"}
|
|
1
|
+
{"version":3,"file":"DataTable.types.d.ts","sourceRoot":"","sources":["../../../../../src/components/data-display/datatable/DataTable.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AACvD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAE3E,YAAY,EAAE,aAAa,EAAE,CAAC;AAE9B,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ;;;;OAIG;IACH,MAAM,EAAE,SAAS,CAAC;IAClB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8FAA8F;IAC9F,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,QAAQ,EAAE,MAAM,KAAK,SAAS,CAAC;IACvF;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACn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