caplink-saas-ui-shared-component-library 1.101.0 → 1.102.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -31208,6 +31208,7 @@ const PB = S.forwardRef(({ className: t, ...e }, n) => /* @__PURE__ */ p.jsx(
|
|
|
31208
31208
|
MB,
|
|
31209
31209
|
{
|
|
31210
31210
|
ref: n,
|
|
31211
|
+
"data-cypress": `tabs-trigger-${e.value}`,
|
|
31211
31212
|
className: U(
|
|
31212
31213
|
"sl-relative sl-z-0 sl-inline-flex sl-shrink-0 sl-gap-1 sl-h-9 sl-items-center sl-justify-center sl-p-2 sl-whitespace-nowrap sl-rounded-t-md sl-transition-all sl-ease-linear",
|
|
31213
31214
|
"sl-text-foreground-v2-700 sl-text-lg sl-font-bold sl-border-b-2 sl-border-b-transparent",
|
|
@@ -44565,79 +44566,81 @@ function GNe(t) {
|
|
|
44565
44566
|
onImportData: i,
|
|
44566
44567
|
onOpenFullScreen: a,
|
|
44567
44568
|
fullScreen: l,
|
|
44568
|
-
hideTabs: c
|
|
44569
|
+
hideTabs: c,
|
|
44570
|
+
dataCypress: u
|
|
44569
44571
|
} = t;
|
|
44570
44572
|
if (e.length === 0)
|
|
44571
44573
|
return null;
|
|
44572
|
-
const
|
|
44573
|
-
const
|
|
44574
|
-
(
|
|
44575
|
-
...
|
|
44574
|
+
const d = n.toString(), f = (m, g) => {
|
|
44575
|
+
const v = e.map(
|
|
44576
|
+
(y, x) => x === m ? {
|
|
44577
|
+
...y,
|
|
44576
44578
|
spreadsheet: {
|
|
44577
|
-
...
|
|
44578
|
-
matrix:
|
|
44579
|
+
...y.spreadsheet,
|
|
44580
|
+
matrix: g,
|
|
44579
44581
|
matrixObject: void 0
|
|
44580
44582
|
}
|
|
44581
|
-
} :
|
|
44583
|
+
} : y
|
|
44582
44584
|
);
|
|
44583
|
-
s(
|
|
44584
|
-
},
|
|
44585
|
-
const
|
|
44586
|
-
(
|
|
44587
|
-
...
|
|
44585
|
+
s(v);
|
|
44586
|
+
}, h = (m, g) => {
|
|
44587
|
+
const v = e.map(
|
|
44588
|
+
(y, x) => x === m ? {
|
|
44589
|
+
...y,
|
|
44588
44590
|
spreadsheet: {
|
|
44589
|
-
...
|
|
44590
|
-
matrixObject:
|
|
44591
|
+
...y.spreadsheet,
|
|
44592
|
+
matrixObject: g.map((b) => [...b]),
|
|
44591
44593
|
matrix: void 0
|
|
44592
44594
|
}
|
|
44593
|
-
} :
|
|
44595
|
+
} : y
|
|
44594
44596
|
);
|
|
44595
|
-
s(
|
|
44597
|
+
s(v);
|
|
44596
44598
|
};
|
|
44597
44599
|
return /* @__PURE__ */ p.jsxs(
|
|
44598
44600
|
Gd.Root,
|
|
44599
44601
|
{
|
|
44600
|
-
value:
|
|
44601
|
-
onValueChange: (
|
|
44602
|
+
value: d,
|
|
44603
|
+
onValueChange: (m) => r(Number(m)),
|
|
44602
44604
|
className: U(l && "sl-h-full"),
|
|
44603
44605
|
children: [
|
|
44604
|
-
!c && /* @__PURE__ */ p.jsx(Gd.List, { className: "before:sl-content-none", children: e.map((
|
|
44606
|
+
!c && /* @__PURE__ */ p.jsx(Gd.List, { className: "before:sl-content-none", children: e.map((m, g) => /* @__PURE__ */ p.jsx(
|
|
44605
44607
|
Gd.Trigger,
|
|
44606
44608
|
{
|
|
44607
|
-
value:
|
|
44608
|
-
className: U(
|
|
44609
|
-
|
|
44609
|
+
value: g.toString(),
|
|
44610
|
+
className: U(g !== n && "before:sl-content-none"),
|
|
44611
|
+
"data-cypress": u ? `${u}-tab-${m.id}` : void 0,
|
|
44612
|
+
children: m.name
|
|
44610
44613
|
},
|
|
44611
|
-
|
|
44614
|
+
m.id
|
|
44612
44615
|
)) }),
|
|
44613
|
-
e.map((
|
|
44614
|
-
const
|
|
44615
|
-
|
|
44616
|
+
e.map((m, g) => {
|
|
44617
|
+
const v = m.spreadsheet.matrixObject !== void 0, y = (w) => f(g, w), x = v ? (w) => h(g, w) : void 0, b = (w) => {
|
|
44618
|
+
v ? h(g, w) : f(g, z$(w));
|
|
44616
44619
|
};
|
|
44617
|
-
return /* @__PURE__ */ p.jsx(B$, { onMatrixChange:
|
|
44620
|
+
return /* @__PURE__ */ p.jsx(B$, { onMatrixChange: b, children: /* @__PURE__ */ p.jsx(
|
|
44618
44621
|
Gd.Content,
|
|
44619
44622
|
{
|
|
44620
|
-
value:
|
|
44623
|
+
value: g.toString(),
|
|
44621
44624
|
className: U(l && "sl-h-full", "sl-mt-0"),
|
|
44622
44625
|
children: /* @__PURE__ */ p.jsx(
|
|
44623
44626
|
f7,
|
|
44624
44627
|
{
|
|
44625
|
-
...
|
|
44626
|
-
onMatrixChange:
|
|
44627
|
-
onMatrixObjectChange:
|
|
44628
|
+
...m.spreadsheet,
|
|
44629
|
+
onMatrixChange: v ? void 0 : y,
|
|
44630
|
+
onMatrixObjectChange: x,
|
|
44628
44631
|
onExportData: o,
|
|
44629
44632
|
onImportData: i,
|
|
44630
44633
|
onOpenFullScreen: a,
|
|
44631
44634
|
fullScreen: l,
|
|
44632
|
-
className: U("sl-rounded-tl-none",
|
|
44635
|
+
className: U("sl-rounded-tl-none", m.spreadsheet.className),
|
|
44633
44636
|
toolbarClassName: U(
|
|
44634
44637
|
!c && "sl-rounded-tl-none",
|
|
44635
|
-
|
|
44638
|
+
m.spreadsheet.toolbarClassName
|
|
44636
44639
|
)
|
|
44637
44640
|
}
|
|
44638
44641
|
)
|
|
44639
44642
|
}
|
|
44640
|
-
) },
|
|
44643
|
+
) }, m.id);
|
|
44641
44644
|
})
|
|
44642
44645
|
]
|
|
44643
44646
|
}
|
|
@@ -44666,6 +44669,7 @@ function YNe(t) {
|
|
|
44666
44669
|
"button",
|
|
44667
44670
|
{
|
|
44668
44671
|
type: "button",
|
|
44672
|
+
"data-cypress": `workbook-tab-${u.id}`,
|
|
44669
44673
|
onClick: () => r(d),
|
|
44670
44674
|
className: U(
|
|
44671
44675
|
"sl-px-3.5 sl-py-2 sl-text-lg sl-font-medium sl-transition-all sl-ease-linear sl-relative",
|