@connectif/ui-components 2.0.11 → 2.0.14
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/components/icon/icons.d.ts +1 -0
- package/dist/components/markdown/KatexRenderer.d.ts +6 -0
- package/dist/components/markdown/MarkdownRenderer.d.ts +1 -0
- package/dist/components/window/MinimizableWindow.d.ts +17 -0
- package/dist/index.js +188 -134
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +4 -5
package/dist/index.js
CHANGED
|
@@ -1997,6 +1997,7 @@ import {
|
|
|
1997
1997
|
mdiHumanMale,
|
|
1998
1998
|
mdiHumanMaleFemale,
|
|
1999
1999
|
mdiHumanPregnant,
|
|
2000
|
+
mdiIdentifier,
|
|
2000
2001
|
mdiImage,
|
|
2001
2002
|
mdiImageAlbum,
|
|
2002
2003
|
mdiImageArea,
|
|
@@ -3837,6 +3838,7 @@ var icons = {
|
|
|
3837
3838
|
"human-male-female": mdiHumanMaleFemale,
|
|
3838
3839
|
"human-pregnant": mdiHumanPregnant,
|
|
3839
3840
|
image: mdiImage,
|
|
3841
|
+
identifier: mdiIdentifier,
|
|
3840
3842
|
"image-album": mdiImageAlbum,
|
|
3841
3843
|
"image-area": mdiImageArea,
|
|
3842
3844
|
"image-area-close": mdiImageAreaClose,
|
|
@@ -24230,12 +24232,28 @@ var Loader = ({
|
|
|
24230
24232
|
var Loader_default = Loader;
|
|
24231
24233
|
|
|
24232
24234
|
// src/components/markdown/MarkdownRenderer.tsx
|
|
24233
|
-
import
|
|
24234
|
-
import remarkGfm from "remark-gfm";
|
|
24235
|
+
import Markdown from "markdown-to-jsx";
|
|
24235
24236
|
import { styled as styled8 } from "@mui/material/styles";
|
|
24236
|
-
import
|
|
24237
|
-
|
|
24237
|
+
import "katex/dist/katex.min.css";
|
|
24238
|
+
|
|
24239
|
+
// src/components/markdown/KatexRenderer.tsx
|
|
24240
|
+
import katex from "katex";
|
|
24238
24241
|
import { jsx as jsx136 } from "react/jsx-runtime";
|
|
24242
|
+
var KatexRenderer = ({ children, block }) => {
|
|
24243
|
+
try {
|
|
24244
|
+
const html2 = katex.renderToString(children, {
|
|
24245
|
+
throwOnError: false,
|
|
24246
|
+
displayMode: block
|
|
24247
|
+
});
|
|
24248
|
+
return /* @__PURE__ */ jsx136("span", { dangerouslySetInnerHTML: { __html: html2 } });
|
|
24249
|
+
} catch (err) {
|
|
24250
|
+
return `<pre style="color:red">KaTeX error: ${err.message}</pre>`;
|
|
24251
|
+
}
|
|
24252
|
+
};
|
|
24253
|
+
var KatexRenderer_default = KatexRenderer;
|
|
24254
|
+
|
|
24255
|
+
// src/components/markdown/MarkdownRenderer.tsx
|
|
24256
|
+
import { jsx as jsx137 } from "react/jsx-runtime";
|
|
24239
24257
|
var MarkdownContainer = styled8("div")(
|
|
24240
24258
|
({ color: color2, backgroundColor: backgroundColor2 = "transparent", variant }) => ({
|
|
24241
24259
|
color: color2,
|
|
@@ -24293,21 +24311,55 @@ var MarkdownContainer = styled8("div")(
|
|
|
24293
24311
|
},
|
|
24294
24312
|
"& a:hover": {
|
|
24295
24313
|
textDecoration: "underline"
|
|
24296
|
-
},
|
|
24297
|
-
"& .katex .katex-html": {
|
|
24298
|
-
display: "none"
|
|
24299
24314
|
}
|
|
24300
24315
|
})
|
|
24301
24316
|
);
|
|
24317
|
+
var renderWithMath = (text) => {
|
|
24318
|
+
const parts = [];
|
|
24319
|
+
const regex = /\$\$([\s\S]+?)\$\$|\$([\s\S]+?)\$/g;
|
|
24320
|
+
let lastIndex = 0;
|
|
24321
|
+
let match;
|
|
24322
|
+
while ((match = regex.exec(text)) !== null) {
|
|
24323
|
+
const [full, blockExpr, inlineExpr] = match;
|
|
24324
|
+
const start = match.index;
|
|
24325
|
+
if (start > lastIndex) {
|
|
24326
|
+
parts.push(text.slice(lastIndex, start));
|
|
24327
|
+
}
|
|
24328
|
+
if (blockExpr) {
|
|
24329
|
+
parts.push(
|
|
24330
|
+
/* @__PURE__ */ jsx137(KatexRenderer_default, { block: true, children: blockExpr.trim() }, start)
|
|
24331
|
+
);
|
|
24332
|
+
} else if (inlineExpr) {
|
|
24333
|
+
parts.push(
|
|
24334
|
+
/* @__PURE__ */ jsx137(KatexRenderer_default, { children: inlineExpr.trim() }, start)
|
|
24335
|
+
);
|
|
24336
|
+
}
|
|
24337
|
+
lastIndex = regex.lastIndex;
|
|
24338
|
+
}
|
|
24339
|
+
if (lastIndex < text.length) {
|
|
24340
|
+
parts.push(text.slice(lastIndex));
|
|
24341
|
+
}
|
|
24342
|
+
return parts;
|
|
24343
|
+
};
|
|
24302
24344
|
var MarkdownRenderer = ({
|
|
24303
24345
|
text,
|
|
24304
24346
|
...rest
|
|
24305
|
-
}) => /* @__PURE__ */
|
|
24306
|
-
|
|
24307
|
-
{
|
|
24308
|
-
|
|
24309
|
-
|
|
24310
|
-
|
|
24347
|
+
}) => /* @__PURE__ */ jsx137(MarkdownContainer, { ...rest, children: /* @__PURE__ */ jsx137(
|
|
24348
|
+
Markdown,
|
|
24349
|
+
{
|
|
24350
|
+
options: {
|
|
24351
|
+
forceBlock: true,
|
|
24352
|
+
overrides: {
|
|
24353
|
+
p: {
|
|
24354
|
+
component: ({ children, ...props }) => {
|
|
24355
|
+
const rawText = Array.isArray(children) ? children.map(
|
|
24356
|
+
(child) => typeof child === "string" ? child : ""
|
|
24357
|
+
).join("") : typeof children === "string" ? children : "";
|
|
24358
|
+
return /* @__PURE__ */ jsx137("p", { ...props, children: renderWithMath(rawText) });
|
|
24359
|
+
}
|
|
24360
|
+
}
|
|
24361
|
+
}
|
|
24362
|
+
},
|
|
24311
24363
|
children: text
|
|
24312
24364
|
}
|
|
24313
24365
|
) });
|
|
@@ -24315,7 +24367,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
24315
24367
|
|
|
24316
24368
|
// src/components/navbar/Navbar.tsx
|
|
24317
24369
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
24318
|
-
import { Fragment as Fragment32, jsx as
|
|
24370
|
+
import { Fragment as Fragment32, jsx as jsx138, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
24319
24371
|
var Navbar = ({
|
|
24320
24372
|
topContent,
|
|
24321
24373
|
bottomContent,
|
|
@@ -24339,8 +24391,8 @@ var Navbar = ({
|
|
|
24339
24391
|
},
|
|
24340
24392
|
className: "Slim-Vertical-Scroll",
|
|
24341
24393
|
children: [
|
|
24342
|
-
/* @__PURE__ */
|
|
24343
|
-
/* @__PURE__ */
|
|
24394
|
+
/* @__PURE__ */ jsx138(Box_default, { children: topContent }),
|
|
24395
|
+
/* @__PURE__ */ jsx138(Box_default, { children: bottomContent })
|
|
24344
24396
|
]
|
|
24345
24397
|
}
|
|
24346
24398
|
),
|
|
@@ -24367,8 +24419,8 @@ var Navbar = ({
|
|
|
24367
24419
|
},
|
|
24368
24420
|
onClose,
|
|
24369
24421
|
children: [
|
|
24370
|
-
/* @__PURE__ */
|
|
24371
|
-
/* @__PURE__ */
|
|
24422
|
+
/* @__PURE__ */ jsx138("div", { children: drawerTopContent }),
|
|
24423
|
+
/* @__PURE__ */ jsx138("div", { children: drawerBottomContent })
|
|
24372
24424
|
]
|
|
24373
24425
|
}
|
|
24374
24426
|
)
|
|
@@ -24378,7 +24430,7 @@ var Navbar_default = Navbar;
|
|
|
24378
24430
|
// src/components/navbar/NavbarButton.tsx
|
|
24379
24431
|
import * as React76 from "react";
|
|
24380
24432
|
import { Box as Box6, ButtonBase as ButtonBase2 } from "@mui/material";
|
|
24381
|
-
import { jsx as
|
|
24433
|
+
import { jsx as jsx139, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
24382
24434
|
var NavbarButton = React76.forwardRef(
|
|
24383
24435
|
function NavbarButton2({
|
|
24384
24436
|
iconId,
|
|
@@ -24403,7 +24455,7 @@ var NavbarButton = React76.forwardRef(
|
|
|
24403
24455
|
position: "relative"
|
|
24404
24456
|
},
|
|
24405
24457
|
children: [
|
|
24406
|
-
/* @__PURE__ */
|
|
24458
|
+
/* @__PURE__ */ jsx139(
|
|
24407
24459
|
Box6,
|
|
24408
24460
|
{
|
|
24409
24461
|
sx: {
|
|
@@ -24419,7 +24471,7 @@ var NavbarButton = React76.forwardRef(
|
|
|
24419
24471
|
}
|
|
24420
24472
|
}
|
|
24421
24473
|
),
|
|
24422
|
-
/* @__PURE__ */
|
|
24474
|
+
/* @__PURE__ */ jsx139(
|
|
24423
24475
|
Box6,
|
|
24424
24476
|
{
|
|
24425
24477
|
sx: {
|
|
@@ -24452,7 +24504,7 @@ var NavbarButton = React76.forwardRef(
|
|
|
24452
24504
|
},
|
|
24453
24505
|
children: [
|
|
24454
24506
|
srcUrl ? getButtonContent(
|
|
24455
|
-
/* @__PURE__ */
|
|
24507
|
+
/* @__PURE__ */ jsx139(
|
|
24456
24508
|
Avatar_default,
|
|
24457
24509
|
{
|
|
24458
24510
|
className: "NavbarButton-icon",
|
|
@@ -24462,7 +24514,7 @@ var NavbarButton = React76.forwardRef(
|
|
|
24462
24514
|
}
|
|
24463
24515
|
)
|
|
24464
24516
|
) : getButtonContent(
|
|
24465
|
-
/* @__PURE__ */
|
|
24517
|
+
/* @__PURE__ */ jsx139(
|
|
24466
24518
|
Icon_default,
|
|
24467
24519
|
{
|
|
24468
24520
|
id: iconId,
|
|
@@ -24478,7 +24530,7 @@ var NavbarButton = React76.forwardRef(
|
|
|
24478
24530
|
}
|
|
24479
24531
|
)
|
|
24480
24532
|
),
|
|
24481
|
-
badgeIconProps && /* @__PURE__ */
|
|
24533
|
+
badgeIconProps && /* @__PURE__ */ jsx139(
|
|
24482
24534
|
Icon_default,
|
|
24483
24535
|
{
|
|
24484
24536
|
...badgeIconProps,
|
|
@@ -24500,8 +24552,8 @@ var NavbarButton = React76.forwardRef(
|
|
|
24500
24552
|
var NavbarButton_default = NavbarButton;
|
|
24501
24553
|
|
|
24502
24554
|
// src/components/navbar/NavbarHeader.tsx
|
|
24503
|
-
import { jsx as
|
|
24504
|
-
var NavbarHeader = ({ text }) => /* @__PURE__ */
|
|
24555
|
+
import { jsx as jsx140 } from "react/jsx-runtime";
|
|
24556
|
+
var NavbarHeader = ({ text }) => /* @__PURE__ */ jsx140(
|
|
24505
24557
|
Typography_default,
|
|
24506
24558
|
{
|
|
24507
24559
|
sx: {
|
|
@@ -24523,10 +24575,10 @@ var NavbarHeader_default = NavbarHeader;
|
|
|
24523
24575
|
// src/components/navbar/NavbarLogo.tsx
|
|
24524
24576
|
import * as React77 from "react";
|
|
24525
24577
|
import { ButtonBase as ButtonBase3 } from "@mui/material";
|
|
24526
|
-
import { jsx as
|
|
24578
|
+
import { jsx as jsx141 } from "react/jsx-runtime";
|
|
24527
24579
|
var NavbarLogo = React77.forwardRef(
|
|
24528
24580
|
function NavbarButton3({ src, ...rest }, ref) {
|
|
24529
|
-
return /* @__PURE__ */
|
|
24581
|
+
return /* @__PURE__ */ jsx141(
|
|
24530
24582
|
ButtonBase3,
|
|
24531
24583
|
{
|
|
24532
24584
|
ref,
|
|
@@ -24537,7 +24589,7 @@ var NavbarLogo = React77.forwardRef(
|
|
|
24537
24589
|
borderBottom: `1px solid ${grey200}`,
|
|
24538
24590
|
boxSizing: "border-box"
|
|
24539
24591
|
},
|
|
24540
|
-
children: /* @__PURE__ */
|
|
24592
|
+
children: /* @__PURE__ */ jsx141("img", { src, width: "32px", height: "32px" })
|
|
24541
24593
|
}
|
|
24542
24594
|
);
|
|
24543
24595
|
}
|
|
@@ -24546,7 +24598,7 @@ var NavbarLogo_default = NavbarLogo;
|
|
|
24546
24598
|
|
|
24547
24599
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
24548
24600
|
import * as React78 from "react";
|
|
24549
|
-
import { Fragment as Fragment33, jsx as
|
|
24601
|
+
import { Fragment as Fragment33, jsx as jsx142, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
24550
24602
|
var DonutFocusOverlay = ({
|
|
24551
24603
|
isVisible,
|
|
24552
24604
|
elementRef,
|
|
@@ -24588,7 +24640,7 @@ var DonutFocusOverlay = ({
|
|
|
24588
24640
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
24589
24641
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
24590
24642
|
return /* @__PURE__ */ jsxs71(Fragment33, { children: [
|
|
24591
|
-
/* @__PURE__ */
|
|
24643
|
+
/* @__PURE__ */ jsx142(
|
|
24592
24644
|
Box_default,
|
|
24593
24645
|
{
|
|
24594
24646
|
sx: {
|
|
@@ -24605,7 +24657,7 @@ var DonutFocusOverlay = ({
|
|
|
24605
24657
|
}
|
|
24606
24658
|
}
|
|
24607
24659
|
),
|
|
24608
|
-
chipLabel && /* @__PURE__ */
|
|
24660
|
+
chipLabel && /* @__PURE__ */ jsx142(
|
|
24609
24661
|
Chip_default,
|
|
24610
24662
|
{
|
|
24611
24663
|
label: chipLabel,
|
|
@@ -24632,7 +24684,7 @@ var DonutFocusOverlay = ({
|
|
|
24632
24684
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
24633
24685
|
|
|
24634
24686
|
// src/components/pager/Pager.tsx
|
|
24635
|
-
import { Fragment as Fragment34, jsx as
|
|
24687
|
+
import { Fragment as Fragment34, jsx as jsx143, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
24636
24688
|
var Pager = ({
|
|
24637
24689
|
page,
|
|
24638
24690
|
pageSize,
|
|
@@ -24646,10 +24698,10 @@ var Pager = ({
|
|
|
24646
24698
|
const to = Math.min(current + pageSize, total);
|
|
24647
24699
|
const pages = Math.max(Math.ceil(total / pageSize), 1);
|
|
24648
24700
|
const options = [...Array(pages).keys()].map((i) => ({ value: i + 1 }));
|
|
24649
|
-
const Label = ({ children }) => /* @__PURE__ */
|
|
24701
|
+
const Label = ({ children }) => /* @__PURE__ */ jsx143(Typography_default, { color: Colors_exports.grey400, sx: { padding: "0 8px" }, children });
|
|
24650
24702
|
return /* @__PURE__ */ jsxs72(Stack_default, { direction: "row", sx: { alignItems: "center" }, children: [
|
|
24651
|
-
/* @__PURE__ */
|
|
24652
|
-
/* @__PURE__ */
|
|
24703
|
+
/* @__PURE__ */ jsx143(Label, { children: t("PAGER.PAGE") }),
|
|
24704
|
+
/* @__PURE__ */ jsx143(
|
|
24653
24705
|
Select_default,
|
|
24654
24706
|
{
|
|
24655
24707
|
value: page,
|
|
@@ -24659,8 +24711,8 @@ var Pager = ({
|
|
|
24659
24711
|
}
|
|
24660
24712
|
),
|
|
24661
24713
|
allowedPageSizes && /* @__PURE__ */ jsxs72(Fragment34, { children: [
|
|
24662
|
-
/* @__PURE__ */
|
|
24663
|
-
/* @__PURE__ */
|
|
24714
|
+
/* @__PURE__ */ jsx143(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
24715
|
+
/* @__PURE__ */ jsx143(
|
|
24664
24716
|
Select_default,
|
|
24665
24717
|
{
|
|
24666
24718
|
value: pageSize,
|
|
@@ -24683,7 +24735,7 @@ var Pager = ({
|
|
|
24683
24735
|
" ",
|
|
24684
24736
|
total
|
|
24685
24737
|
] }),
|
|
24686
|
-
/* @__PURE__ */
|
|
24738
|
+
/* @__PURE__ */ jsx143(
|
|
24687
24739
|
IconButton_default,
|
|
24688
24740
|
{
|
|
24689
24741
|
disabled: page <= 1,
|
|
@@ -24691,7 +24743,7 @@ var Pager = ({
|
|
|
24691
24743
|
onClick: () => onPageChange(page - 1, pageSize)
|
|
24692
24744
|
}
|
|
24693
24745
|
),
|
|
24694
|
-
/* @__PURE__ */
|
|
24746
|
+
/* @__PURE__ */ jsx143(
|
|
24695
24747
|
IconButton_default,
|
|
24696
24748
|
{
|
|
24697
24749
|
disabled: page > total / pageSize,
|
|
@@ -24706,7 +24758,7 @@ var Pager_default = Pager;
|
|
|
24706
24758
|
// src/components/scrollable/HorizontalScrollable.tsx
|
|
24707
24759
|
import { ButtonBase as ButtonBase4 } from "@mui/material";
|
|
24708
24760
|
import * as React79 from "react";
|
|
24709
|
-
import { jsx as
|
|
24761
|
+
import { jsx as jsx144, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
24710
24762
|
var HorizontalScrollable = ({
|
|
24711
24763
|
style: style3,
|
|
24712
24764
|
children,
|
|
@@ -24756,7 +24808,7 @@ var HorizontalScrollable = ({
|
|
|
24756
24808
|
current.scrollBy(stepDistance, 0);
|
|
24757
24809
|
};
|
|
24758
24810
|
return /* @__PURE__ */ jsxs73(Box_default, { sx: { position: "relative", ...style3 }, children: [
|
|
24759
|
-
/* @__PURE__ */
|
|
24811
|
+
/* @__PURE__ */ jsx144(
|
|
24760
24812
|
ButtonBase4,
|
|
24761
24813
|
{
|
|
24762
24814
|
sx: {
|
|
@@ -24773,10 +24825,10 @@ var HorizontalScrollable = ({
|
|
|
24773
24825
|
...isLeftArrowHidden && { display: "none" }
|
|
24774
24826
|
},
|
|
24775
24827
|
onClick: () => leftScroll(),
|
|
24776
|
-
children: /* @__PURE__ */
|
|
24828
|
+
children: /* @__PURE__ */ jsx144(Icon_default, { id: "chevron-left" })
|
|
24777
24829
|
}
|
|
24778
24830
|
),
|
|
24779
|
-
/* @__PURE__ */
|
|
24831
|
+
/* @__PURE__ */ jsx144(
|
|
24780
24832
|
Box_default,
|
|
24781
24833
|
{
|
|
24782
24834
|
ref: horizontalContainerRef,
|
|
@@ -24795,7 +24847,7 @@ var HorizontalScrollable = ({
|
|
|
24795
24847
|
children
|
|
24796
24848
|
}
|
|
24797
24849
|
),
|
|
24798
|
-
/* @__PURE__ */
|
|
24850
|
+
/* @__PURE__ */ jsx144(
|
|
24799
24851
|
ButtonBase4,
|
|
24800
24852
|
{
|
|
24801
24853
|
sx: {
|
|
@@ -24812,7 +24864,7 @@ var HorizontalScrollable = ({
|
|
|
24812
24864
|
...isRightArrowHidden && { display: "none" }
|
|
24813
24865
|
},
|
|
24814
24866
|
onClick: () => rightScroll(),
|
|
24815
|
-
children: /* @__PURE__ */
|
|
24867
|
+
children: /* @__PURE__ */ jsx144(Icon_default, { id: "chevron-right" })
|
|
24816
24868
|
}
|
|
24817
24869
|
)
|
|
24818
24870
|
] });
|
|
@@ -24823,12 +24875,12 @@ var HorizontalScrollable_default = HorizontalScrollable;
|
|
|
24823
24875
|
import {
|
|
24824
24876
|
SnackbarProvider as NotistackSnackbarProvider
|
|
24825
24877
|
} from "notistack";
|
|
24826
|
-
import { jsx as
|
|
24878
|
+
import { jsx as jsx145 } from "react/jsx-runtime";
|
|
24827
24879
|
var SnackbarProvider = ({
|
|
24828
24880
|
children,
|
|
24829
24881
|
maxSnack = 3,
|
|
24830
24882
|
domRoot
|
|
24831
|
-
}) => /* @__PURE__ */
|
|
24883
|
+
}) => /* @__PURE__ */ jsx145(
|
|
24832
24884
|
NotistackSnackbarProvider,
|
|
24833
24885
|
{
|
|
24834
24886
|
maxSnack,
|
|
@@ -24849,7 +24901,7 @@ import {
|
|
|
24849
24901
|
import * as React80 from "react";
|
|
24850
24902
|
import { SnackbarContent } from "notistack";
|
|
24851
24903
|
import { Typography as Typography4 } from "@mui/material";
|
|
24852
|
-
import { jsx as
|
|
24904
|
+
import { jsx as jsx146, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
24853
24905
|
var sizeStyles5 = {
|
|
24854
24906
|
M: {
|
|
24855
24907
|
width: "344px",
|
|
@@ -24892,7 +24944,7 @@ var Snackbar = React80.forwardRef(
|
|
|
24892
24944
|
const closeClickHandler = React80.useCallback(() => {
|
|
24893
24945
|
onCloseClick && onCloseClick(key);
|
|
24894
24946
|
}, [onCloseClick, key]);
|
|
24895
|
-
return /* @__PURE__ */
|
|
24947
|
+
return /* @__PURE__ */ jsx146(
|
|
24896
24948
|
SnackbarContent,
|
|
24897
24949
|
{
|
|
24898
24950
|
ref,
|
|
@@ -24917,7 +24969,7 @@ var Snackbar = React80.forwardRef(
|
|
|
24917
24969
|
spacing: 2,
|
|
24918
24970
|
sx: { width: "100%", alignItems: "center" },
|
|
24919
24971
|
children: [
|
|
24920
|
-
withIcon && /* @__PURE__ */
|
|
24972
|
+
withIcon && /* @__PURE__ */ jsx146(
|
|
24921
24973
|
Box_default,
|
|
24922
24974
|
{
|
|
24923
24975
|
sx: {
|
|
@@ -24925,10 +24977,10 @@ var Snackbar = React80.forwardRef(
|
|
|
24925
24977
|
flexShrink: 0,
|
|
24926
24978
|
color: iconColors[severity]
|
|
24927
24979
|
},
|
|
24928
|
-
children: /* @__PURE__ */
|
|
24980
|
+
children: /* @__PURE__ */ jsx146(Icon_default, { id: severityIcons[severity] })
|
|
24929
24981
|
}
|
|
24930
24982
|
),
|
|
24931
|
-
/* @__PURE__ */
|
|
24983
|
+
/* @__PURE__ */ jsx146(
|
|
24932
24984
|
Typography4,
|
|
24933
24985
|
{
|
|
24934
24986
|
variant: "body2",
|
|
@@ -24936,7 +24988,7 @@ var Snackbar = React80.forwardRef(
|
|
|
24936
24988
|
children: message
|
|
24937
24989
|
}
|
|
24938
24990
|
),
|
|
24939
|
-
actionText && /* @__PURE__ */
|
|
24991
|
+
actionText && /* @__PURE__ */ jsx146(Box_default, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx146(
|
|
24940
24992
|
Button_default,
|
|
24941
24993
|
{
|
|
24942
24994
|
sx: {
|
|
@@ -24951,7 +25003,7 @@ var Snackbar = React80.forwardRef(
|
|
|
24951
25003
|
onClick: actionClickHandler
|
|
24952
25004
|
}
|
|
24953
25005
|
) }),
|
|
24954
|
-
/* @__PURE__ */
|
|
25006
|
+
/* @__PURE__ */ jsx146(Box_default, { sx: { flexGrow: 0, flexShrink: 0 }, children: /* @__PURE__ */ jsx146(
|
|
24955
25007
|
IconButton_default,
|
|
24956
25008
|
{
|
|
24957
25009
|
iconId: "close",
|
|
@@ -24976,7 +25028,7 @@ var Snackbar_default = Snackbar;
|
|
|
24976
25028
|
|
|
24977
25029
|
// src/components/snackbar/enqueueSnackbar.tsx
|
|
24978
25030
|
import { closeSnackbar as closeSnackbar2 } from "notistack";
|
|
24979
|
-
import { jsx as
|
|
25031
|
+
import { jsx as jsx147 } from "react/jsx-runtime";
|
|
24980
25032
|
var enqueueSnackbar = (message, options = {}) => {
|
|
24981
25033
|
const {
|
|
24982
25034
|
persist,
|
|
@@ -24992,7 +25044,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
24992
25044
|
autoHideDuration: autoHideDurationMs ?? 1e4,
|
|
24993
25045
|
persist: persist ?? false,
|
|
24994
25046
|
content(key, message2) {
|
|
24995
|
-
return /* @__PURE__ */
|
|
25047
|
+
return /* @__PURE__ */ jsx147(
|
|
24996
25048
|
Snackbar_default,
|
|
24997
25049
|
{
|
|
24998
25050
|
identifierKey: key,
|
|
@@ -25009,7 +25061,7 @@ var enqueueSnackbar = (message, options = {}) => {
|
|
|
25009
25061
|
|
|
25010
25062
|
// src/components/tab/TabButton.tsx
|
|
25011
25063
|
import MuiTab from "@mui/material/Tab";
|
|
25012
|
-
import { jsx as
|
|
25064
|
+
import { jsx as jsx148 } from "react/jsx-runtime";
|
|
25013
25065
|
var TabButton = ({
|
|
25014
25066
|
children,
|
|
25015
25067
|
disabled = false,
|
|
@@ -25018,10 +25070,10 @@ var TabButton = ({
|
|
|
25018
25070
|
dataTestId,
|
|
25019
25071
|
disableUppercase = false,
|
|
25020
25072
|
...rest
|
|
25021
|
-
}) => /* @__PURE__ */
|
|
25073
|
+
}) => /* @__PURE__ */ jsx148(
|
|
25022
25074
|
MuiTab,
|
|
25023
25075
|
{
|
|
25024
|
-
label: /* @__PURE__ */
|
|
25076
|
+
label: /* @__PURE__ */ jsx148(
|
|
25025
25077
|
"div",
|
|
25026
25078
|
{
|
|
25027
25079
|
style: {
|
|
@@ -25059,7 +25111,7 @@ import MuiTabs from "@mui/material/Tabs";
|
|
|
25059
25111
|
// src/components/layout/SwipeableViews.tsx
|
|
25060
25112
|
import * as React81 from "react";
|
|
25061
25113
|
import { useEffect as useEffect21, useRef as useRef22, useState as useState31 } from "react";
|
|
25062
|
-
import { jsx as
|
|
25114
|
+
import { jsx as jsx149 } from "react/jsx-runtime";
|
|
25063
25115
|
var styles = {
|
|
25064
25116
|
container: {
|
|
25065
25117
|
maxHeight: "100%",
|
|
@@ -25130,7 +25182,7 @@ function SwipeableViews({
|
|
|
25130
25182
|
return () => cancelAnimationFrame(animationFrame);
|
|
25131
25183
|
}
|
|
25132
25184
|
}, [index]);
|
|
25133
|
-
return /* @__PURE__ */
|
|
25185
|
+
return /* @__PURE__ */ jsx149(
|
|
25134
25186
|
"div",
|
|
25135
25187
|
{
|
|
25136
25188
|
...rootProps,
|
|
@@ -25153,7 +25205,7 @@ function SwipeableViews({
|
|
|
25153
25205
|
);
|
|
25154
25206
|
}, 100);
|
|
25155
25207
|
},
|
|
25156
|
-
children: React81.Children.map(children, (child, childIndex) => /* @__PURE__ */
|
|
25208
|
+
children: React81.Children.map(children, (child, childIndex) => /* @__PURE__ */ jsx149(
|
|
25157
25209
|
"div",
|
|
25158
25210
|
{
|
|
25159
25211
|
className: "Slim-Vertical-Scroll",
|
|
@@ -25166,7 +25218,7 @@ function SwipeableViews({
|
|
|
25166
25218
|
}
|
|
25167
25219
|
|
|
25168
25220
|
// src/components/tab/Tabs.tsx
|
|
25169
|
-
import { jsx as
|
|
25221
|
+
import { jsx as jsx150, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
25170
25222
|
var Tabs = ({
|
|
25171
25223
|
tabButtons,
|
|
25172
25224
|
children,
|
|
@@ -25202,7 +25254,7 @@ var Tabs = ({
|
|
|
25202
25254
|
}
|
|
25203
25255
|
},
|
|
25204
25256
|
children: [
|
|
25205
|
-
/* @__PURE__ */
|
|
25257
|
+
/* @__PURE__ */ jsx150(
|
|
25206
25258
|
MuiTabs,
|
|
25207
25259
|
{
|
|
25208
25260
|
value: currentTabIndex ?? value,
|
|
@@ -25228,7 +25280,7 @@ var Tabs = ({
|
|
|
25228
25280
|
children: tabButtons
|
|
25229
25281
|
}
|
|
25230
25282
|
),
|
|
25231
|
-
/* @__PURE__ */
|
|
25283
|
+
/* @__PURE__ */ jsx150(
|
|
25232
25284
|
Box_default,
|
|
25233
25285
|
{
|
|
25234
25286
|
sx: {
|
|
@@ -25237,7 +25289,7 @@ var Tabs = ({
|
|
|
25237
25289
|
height: "100%"
|
|
25238
25290
|
}
|
|
25239
25291
|
},
|
|
25240
|
-
children: /* @__PURE__ */
|
|
25292
|
+
children: /* @__PURE__ */ jsx150(
|
|
25241
25293
|
SwipeableViews,
|
|
25242
25294
|
{
|
|
25243
25295
|
index: currentTabIndex ?? value,
|
|
@@ -25265,8 +25317,8 @@ var Tabs = ({
|
|
|
25265
25317
|
var Tabs_default = Tabs;
|
|
25266
25318
|
|
|
25267
25319
|
// src/components/tab/TabContent.tsx
|
|
25268
|
-
import { jsx as
|
|
25269
|
-
var TabContent = ({ children }) => /* @__PURE__ */
|
|
25320
|
+
import { jsx as jsx151 } from "react/jsx-runtime";
|
|
25321
|
+
var TabContent = ({ children }) => /* @__PURE__ */ jsx151(
|
|
25270
25322
|
Box_default,
|
|
25271
25323
|
{
|
|
25272
25324
|
sx: {
|
|
@@ -25283,8 +25335,8 @@ import {
|
|
|
25283
25335
|
TableRow as MuiTableRow,
|
|
25284
25336
|
TableCell as MuiTableCell
|
|
25285
25337
|
} from "@mui/material";
|
|
25286
|
-
import { jsx as
|
|
25287
|
-
var TableDivider = () => /* @__PURE__ */
|
|
25338
|
+
import { jsx as jsx152 } from "react/jsx-runtime";
|
|
25339
|
+
var TableDivider = () => /* @__PURE__ */ jsx152(MuiTableRow, { children: /* @__PURE__ */ jsx152(
|
|
25288
25340
|
MuiTableCell,
|
|
25289
25341
|
{
|
|
25290
25342
|
colSpan: 1e3,
|
|
@@ -25297,8 +25349,8 @@ var TableDivider_default = TableDivider;
|
|
|
25297
25349
|
import {
|
|
25298
25350
|
TableSortLabel as MuiTableSortLabel
|
|
25299
25351
|
} from "@mui/material";
|
|
25300
|
-
import { jsx as
|
|
25301
|
-
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */
|
|
25352
|
+
import { jsx as jsx153 } from "react/jsx-runtime";
|
|
25353
|
+
var TableSortLabel = ({ children, ...rest }) => /* @__PURE__ */ jsx153(MuiTableSortLabel, { ...rest, children });
|
|
25302
25354
|
var TableSortLabel_default = TableSortLabel;
|
|
25303
25355
|
|
|
25304
25356
|
// src/components/table/Table.tsx
|
|
@@ -25306,21 +25358,21 @@ import {
|
|
|
25306
25358
|
TableContainer,
|
|
25307
25359
|
Table as MuiTable
|
|
25308
25360
|
} from "@mui/material";
|
|
25309
|
-
import { jsx as
|
|
25310
|
-
var Table = ({ children, sx, className }) => /* @__PURE__ */
|
|
25361
|
+
import { jsx as jsx154 } from "react/jsx-runtime";
|
|
25362
|
+
var Table = ({ children, sx, className }) => /* @__PURE__ */ jsx154(TableContainer, { className: "Slim-Horizontal-Scroll", children: /* @__PURE__ */ jsx154(MuiTable, { sx: { backgroundColor: white, ...sx }, className, children }) });
|
|
25311
25363
|
var Table_default = Table;
|
|
25312
25364
|
|
|
25313
25365
|
// src/components/table/TableBody.tsx
|
|
25314
25366
|
import { TableBody as MuiTableBody } from "@mui/material";
|
|
25315
|
-
import { jsx as
|
|
25316
|
-
var TableBody = ({ children }) => /* @__PURE__ */
|
|
25367
|
+
import { jsx as jsx155 } from "react/jsx-runtime";
|
|
25368
|
+
var TableBody = ({ children }) => /* @__PURE__ */ jsx155(MuiTableBody, { children });
|
|
25317
25369
|
var TableBody_default = TableBody;
|
|
25318
25370
|
|
|
25319
25371
|
// src/components/table/TableCell.tsx
|
|
25320
25372
|
import {
|
|
25321
25373
|
TableCell as MuiTableCell2
|
|
25322
25374
|
} from "@mui/material";
|
|
25323
|
-
import { jsx as
|
|
25375
|
+
import { jsx as jsx156 } from "react/jsx-runtime";
|
|
25324
25376
|
var TableCell = ({
|
|
25325
25377
|
children,
|
|
25326
25378
|
size = "M",
|
|
@@ -25331,7 +25383,7 @@ var TableCell = ({
|
|
|
25331
25383
|
onClick,
|
|
25332
25384
|
noBorder = false,
|
|
25333
25385
|
...rest
|
|
25334
|
-
}) => /* @__PURE__ */
|
|
25386
|
+
}) => /* @__PURE__ */ jsx156(
|
|
25335
25387
|
MuiTableCell2,
|
|
25336
25388
|
{
|
|
25337
25389
|
...rest,
|
|
@@ -25356,7 +25408,7 @@ var TableCell_default = TableCell;
|
|
|
25356
25408
|
|
|
25357
25409
|
// src/components/table/TableCellCopy.tsx
|
|
25358
25410
|
import * as React83 from "react";
|
|
25359
|
-
import { jsx as
|
|
25411
|
+
import { jsx as jsx157 } from "react/jsx-runtime";
|
|
25360
25412
|
var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
25361
25413
|
const { t } = useTranslation();
|
|
25362
25414
|
const [isCopied, setIsCopied] = React83.useState(false);
|
|
@@ -25374,7 +25426,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
25374
25426
|
const getIconId = () => !isCopied ? "content-copy" : "check";
|
|
25375
25427
|
const iconHiddenClass = "icon-hidden";
|
|
25376
25428
|
const iconCopiedClass = "icon-copied";
|
|
25377
|
-
return /* @__PURE__ */
|
|
25429
|
+
return /* @__PURE__ */ jsx157(TableCell_default, { ...rest, sx: { padding: 0 }, children: /* @__PURE__ */ jsx157(
|
|
25378
25430
|
Stack_default,
|
|
25379
25431
|
{
|
|
25380
25432
|
direction: "row",
|
|
@@ -25383,7 +25435,7 @@ var TableCellCopy = ({ text, textToCopy, ...rest }) => {
|
|
|
25383
25435
|
onMouseEnter: () => setShowIcon(true),
|
|
25384
25436
|
onMouseLeave: () => setShowIcon(false),
|
|
25385
25437
|
onClick: manageButtonClicked,
|
|
25386
|
-
children: /* @__PURE__ */
|
|
25438
|
+
children: /* @__PURE__ */ jsx157(Tooltip_default, { title: t(!isCopied ? "COPY" : "COPIED"), children: /* @__PURE__ */ jsx157(
|
|
25387
25439
|
Button_default,
|
|
25388
25440
|
{
|
|
25389
25441
|
className: isCopied ? iconCopiedClass : !showIcon ? iconHiddenClass : "",
|
|
@@ -25413,21 +25465,21 @@ var TableCellCopy_default = TableCellCopy;
|
|
|
25413
25465
|
|
|
25414
25466
|
// src/components/table/TableHead.tsx
|
|
25415
25467
|
import { TableHead as MuiTableHead } from "@mui/material";
|
|
25416
|
-
import { jsx as
|
|
25417
|
-
var TableHead = ({ children }) => /* @__PURE__ */
|
|
25468
|
+
import { jsx as jsx158 } from "react/jsx-runtime";
|
|
25469
|
+
var TableHead = ({ children }) => /* @__PURE__ */ jsx158(MuiTableHead, { children });
|
|
25418
25470
|
var TableHead_default = TableHead;
|
|
25419
25471
|
|
|
25420
25472
|
// src/components/table/TableRow.tsx
|
|
25421
25473
|
import {
|
|
25422
25474
|
TableRow as MuiTableRow2
|
|
25423
25475
|
} from "@mui/material";
|
|
25424
|
-
import { jsx as
|
|
25476
|
+
import { jsx as jsx159 } from "react/jsx-runtime";
|
|
25425
25477
|
var TableRow = ({
|
|
25426
25478
|
children,
|
|
25427
25479
|
isFollowedByNestedTable = false,
|
|
25428
25480
|
fadeInLeftAnimation = false,
|
|
25429
25481
|
sx
|
|
25430
|
-
}) => /* @__PURE__ */
|
|
25482
|
+
}) => /* @__PURE__ */ jsx159(
|
|
25431
25483
|
MuiTableRow2,
|
|
25432
25484
|
{
|
|
25433
25485
|
className: `${isFollowedByNestedTable ? "Followed-By-Nested-Table" : ""} ${fadeInLeftAnimation ? "animated fadeInLeft" : ""}`,
|
|
@@ -25439,14 +25491,14 @@ var TableRow_default = TableRow;
|
|
|
25439
25491
|
|
|
25440
25492
|
// src/components/table/NestedTable.tsx
|
|
25441
25493
|
import { Collapse as Collapse7 } from "@mui/material";
|
|
25442
|
-
import { jsx as
|
|
25494
|
+
import { jsx as jsx160 } from "react/jsx-runtime";
|
|
25443
25495
|
var NestedTable = ({
|
|
25444
25496
|
colSpan,
|
|
25445
25497
|
children,
|
|
25446
25498
|
className = "",
|
|
25447
25499
|
sx,
|
|
25448
25500
|
isVisible = true
|
|
25449
|
-
}) => /* @__PURE__ */
|
|
25501
|
+
}) => /* @__PURE__ */ jsx160(TableRow_default, { children: /* @__PURE__ */ jsx160(
|
|
25450
25502
|
TableCell_default,
|
|
25451
25503
|
{
|
|
25452
25504
|
colSpan,
|
|
@@ -25455,14 +25507,14 @@ var NestedTable = ({
|
|
|
25455
25507
|
height: "auto",
|
|
25456
25508
|
...!isVisible && { borderBottom: "none" }
|
|
25457
25509
|
},
|
|
25458
|
-
children: /* @__PURE__ */
|
|
25510
|
+
children: /* @__PURE__ */ jsx160(Collapse7, { in: isVisible, children: /* @__PURE__ */ jsx160(Box_default, { sx: { padding: "16px", backgroundColor: grey100 }, children: /* @__PURE__ */ jsx160(Paper_default, { children: /* @__PURE__ */ jsx160(Table_default, { sx, className: `Nested-Table ${className}`, children }) }) }) })
|
|
25459
25511
|
}
|
|
25460
25512
|
) });
|
|
25461
25513
|
var NestedTable_default = NestedTable;
|
|
25462
25514
|
|
|
25463
25515
|
// src/components/toolbar/ToolbarBreadcrumb.tsx
|
|
25464
|
-
import { jsx as
|
|
25465
|
-
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */
|
|
25516
|
+
import { jsx as jsx161 } from "react/jsx-runtime";
|
|
25517
|
+
var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx161(
|
|
25466
25518
|
Stack_default,
|
|
25467
25519
|
{
|
|
25468
25520
|
direction: "row",
|
|
@@ -25472,7 +25524,7 @@ var ToolbarBreadcrumb = ({ parts = [] }) => /* @__PURE__ */ jsx160(
|
|
|
25472
25524
|
(previous, current, index) => [
|
|
25473
25525
|
...previous,
|
|
25474
25526
|
...index > 0 ? [
|
|
25475
|
-
/* @__PURE__ */
|
|
25527
|
+
/* @__PURE__ */ jsx161(
|
|
25476
25528
|
Typography_default,
|
|
25477
25529
|
{
|
|
25478
25530
|
color: grey500,
|
|
@@ -25496,9 +25548,9 @@ var ToolbarBreadcrumb_default = ToolbarBreadcrumb;
|
|
|
25496
25548
|
// src/components/toolbar/ToolbarBreadcrumbButton.tsx
|
|
25497
25549
|
import { ButtonBase as ButtonBase5 } from "@mui/material";
|
|
25498
25550
|
import * as React84 from "react";
|
|
25499
|
-
import { jsx as
|
|
25551
|
+
import { jsx as jsx162 } from "react/jsx-runtime";
|
|
25500
25552
|
var ToolbarBreadcrumbButton = React84.forwardRef(function ToolbarBreadcrumbButton2({ text, className, ...rest }, ref) {
|
|
25501
|
-
return /* @__PURE__ */
|
|
25553
|
+
return /* @__PURE__ */ jsx162(
|
|
25502
25554
|
ButtonBase5,
|
|
25503
25555
|
{
|
|
25504
25556
|
className: `Cn-ToolbarBreadcrumbButton ${className}`,
|
|
@@ -25517,14 +25569,14 @@ var ToolbarBreadcrumbButton = React84.forwardRef(function ToolbarBreadcrumbButto
|
|
|
25517
25569
|
}
|
|
25518
25570
|
},
|
|
25519
25571
|
...rest,
|
|
25520
|
-
children: /* @__PURE__ */
|
|
25572
|
+
children: /* @__PURE__ */ jsx162(Typography_default, { color: "inherit", component: "div", variant: "h6", noWrap: true, children: text })
|
|
25521
25573
|
}
|
|
25522
25574
|
);
|
|
25523
25575
|
});
|
|
25524
25576
|
var ToolbarBreadcrumbButton_default = ToolbarBreadcrumbButton;
|
|
25525
25577
|
|
|
25526
25578
|
// src/components/toolbar/Toolbar.tsx
|
|
25527
|
-
import { jsx as
|
|
25579
|
+
import { jsx as jsx163, jsxs as jsxs76 } from "react/jsx-runtime";
|
|
25528
25580
|
var Toolbar = ({
|
|
25529
25581
|
children,
|
|
25530
25582
|
rightActions,
|
|
@@ -25565,7 +25617,7 @@ var Toolbar = ({
|
|
|
25565
25617
|
width: "100%"
|
|
25566
25618
|
},
|
|
25567
25619
|
children: [
|
|
25568
|
-
leftActions && /* @__PURE__ */
|
|
25620
|
+
leftActions && /* @__PURE__ */ jsx163(
|
|
25569
25621
|
Box_default,
|
|
25570
25622
|
{
|
|
25571
25623
|
className: `Cn-Toolbar-left`,
|
|
@@ -25575,7 +25627,7 @@ var Toolbar = ({
|
|
|
25575
25627
|
children: leftActions
|
|
25576
25628
|
}
|
|
25577
25629
|
),
|
|
25578
|
-
/* @__PURE__ */
|
|
25630
|
+
/* @__PURE__ */ jsx163(
|
|
25579
25631
|
Box_default,
|
|
25580
25632
|
{
|
|
25581
25633
|
className: `Cn-Toolbar-children`,
|
|
@@ -25590,7 +25642,7 @@ var Toolbar = ({
|
|
|
25590
25642
|
]
|
|
25591
25643
|
}
|
|
25592
25644
|
),
|
|
25593
|
-
rightActions && /* @__PURE__ */
|
|
25645
|
+
rightActions && /* @__PURE__ */ jsx163(
|
|
25594
25646
|
Box_default,
|
|
25595
25647
|
{
|
|
25596
25648
|
className: `Cn-Toolbar-right`,
|
|
@@ -25611,7 +25663,7 @@ var Toolbar_default = Toolbar;
|
|
|
25611
25663
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
25612
25664
|
import * as React85 from "react";
|
|
25613
25665
|
import { useState as useState34 } from "react";
|
|
25614
|
-
import { jsx as
|
|
25666
|
+
import { jsx as jsx164, jsxs as jsxs77 } from "react/jsx-runtime";
|
|
25615
25667
|
var ToolbarTitle = React85.forwardRef(function ToolbarTitle2({
|
|
25616
25668
|
title,
|
|
25617
25669
|
align = "left",
|
|
@@ -25621,7 +25673,7 @@ var ToolbarTitle = React85.forwardRef(function ToolbarTitle2({
|
|
|
25621
25673
|
}, ref) {
|
|
25622
25674
|
const textElementRef = React85.useRef(null);
|
|
25623
25675
|
const [showHoverActions, setShowHoverActions] = useState34(false);
|
|
25624
|
-
return /* @__PURE__ */
|
|
25676
|
+
return /* @__PURE__ */ jsx164(Box_default, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx164(
|
|
25625
25677
|
TextEllipsisTooltip_default,
|
|
25626
25678
|
{
|
|
25627
25679
|
title: title ?? "\xA0",
|
|
@@ -25644,7 +25696,7 @@ var ToolbarTitle = React85.forwardRef(function ToolbarTitle2({
|
|
|
25644
25696
|
},
|
|
25645
25697
|
children: [
|
|
25646
25698
|
title || "\xA0",
|
|
25647
|
-
hoverActions && showHoverActions && /* @__PURE__ */
|
|
25699
|
+
hoverActions && showHoverActions && /* @__PURE__ */ jsx164(
|
|
25648
25700
|
Box_default,
|
|
25649
25701
|
{
|
|
25650
25702
|
sx: {
|
|
@@ -25673,13 +25725,13 @@ var Slide_default = Slide;
|
|
|
25673
25725
|
|
|
25674
25726
|
// src/components/widget/WidgetLegendItem.tsx
|
|
25675
25727
|
import { ButtonBase as ButtonBase6 } from "@mui/material";
|
|
25676
|
-
import { jsx as
|
|
25728
|
+
import { jsx as jsx165, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
25677
25729
|
var WidgetLegendItem = ({
|
|
25678
25730
|
groupLabel,
|
|
25679
25731
|
legendDirection = "column",
|
|
25680
25732
|
items = [],
|
|
25681
25733
|
onClick
|
|
25682
|
-
}) => /* @__PURE__ */
|
|
25734
|
+
}) => /* @__PURE__ */ jsx165(
|
|
25683
25735
|
ButtonBase6,
|
|
25684
25736
|
{
|
|
25685
25737
|
tabIndex: onClick ? 0 : -1,
|
|
@@ -25705,7 +25757,7 @@ var WidgetLegendItem = ({
|
|
|
25705
25757
|
color: grey800
|
|
25706
25758
|
},
|
|
25707
25759
|
children: [
|
|
25708
|
-
groupLabel && /* @__PURE__ */
|
|
25760
|
+
groupLabel && /* @__PURE__ */ jsx165(
|
|
25709
25761
|
Typography_default,
|
|
25710
25762
|
{
|
|
25711
25763
|
variant: "overline",
|
|
@@ -25737,7 +25789,7 @@ var WidgetLegendItem = ({
|
|
|
25737
25789
|
paddingRight: legendDirection === "row" ? "12px" : "inherit"
|
|
25738
25790
|
},
|
|
25739
25791
|
children: [
|
|
25740
|
-
iconColor && /* @__PURE__ */
|
|
25792
|
+
iconColor && /* @__PURE__ */ jsx165(
|
|
25741
25793
|
Icon_default,
|
|
25742
25794
|
{
|
|
25743
25795
|
id: iconId,
|
|
@@ -25748,7 +25800,7 @@ var WidgetLegendItem = ({
|
|
|
25748
25800
|
size: iconSize
|
|
25749
25801
|
}
|
|
25750
25802
|
),
|
|
25751
|
-
label && /* @__PURE__ */
|
|
25803
|
+
label && /* @__PURE__ */ jsx165(
|
|
25752
25804
|
Typography_default,
|
|
25753
25805
|
{
|
|
25754
25806
|
variant: "caption",
|
|
@@ -25757,7 +25809,7 @@ var WidgetLegendItem = ({
|
|
|
25757
25809
|
children: label
|
|
25758
25810
|
}
|
|
25759
25811
|
),
|
|
25760
|
-
value && /* @__PURE__ */
|
|
25812
|
+
value && /* @__PURE__ */ jsx165(
|
|
25761
25813
|
Typography_default,
|
|
25762
25814
|
{
|
|
25763
25815
|
sx: style3,
|
|
@@ -25766,7 +25818,7 @@ var WidgetLegendItem = ({
|
|
|
25766
25818
|
children: value
|
|
25767
25819
|
}
|
|
25768
25820
|
),
|
|
25769
|
-
incrementLabelValue && /* @__PURE__ */
|
|
25821
|
+
incrementLabelValue && /* @__PURE__ */ jsx165(
|
|
25770
25822
|
IncrementLabel_default,
|
|
25771
25823
|
{
|
|
25772
25824
|
label: incrementLabelValue,
|
|
@@ -25792,8 +25844,8 @@ var WidgetLegendItem_default = WidgetLegendItem;
|
|
|
25792
25844
|
|
|
25793
25845
|
// src/components/widget/Widget.tsx
|
|
25794
25846
|
import MuiCard2 from "@mui/material/Card";
|
|
25795
|
-
import { jsx as
|
|
25796
|
-
var Widget = ({ children }) => /* @__PURE__ */
|
|
25847
|
+
import { jsx as jsx166 } from "react/jsx-runtime";
|
|
25848
|
+
var Widget = ({ children }) => /* @__PURE__ */ jsx166(
|
|
25797
25849
|
MuiCard2,
|
|
25798
25850
|
{
|
|
25799
25851
|
variant: "elevation",
|
|
@@ -25817,8 +25869,8 @@ var Widget = ({ children }) => /* @__PURE__ */ jsx165(
|
|
|
25817
25869
|
var Widget_default = Widget;
|
|
25818
25870
|
|
|
25819
25871
|
// src/components/widget/WidgetActions.tsx
|
|
25820
|
-
import { jsx as
|
|
25821
|
-
var WidgetActions = ({ children }) => /* @__PURE__ */
|
|
25872
|
+
import { jsx as jsx167 } from "react/jsx-runtime";
|
|
25873
|
+
var WidgetActions = ({ children }) => /* @__PURE__ */ jsx167(
|
|
25822
25874
|
Box_default,
|
|
25823
25875
|
{
|
|
25824
25876
|
sx: {
|
|
@@ -25832,8 +25884,8 @@ var WidgetActions = ({ children }) => /* @__PURE__ */ jsx166(
|
|
|
25832
25884
|
var WidgetActions_default = WidgetActions;
|
|
25833
25885
|
|
|
25834
25886
|
// src/components/widget/WidgetTitle.tsx
|
|
25835
|
-
import { jsx as
|
|
25836
|
-
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */
|
|
25887
|
+
import { jsx as jsx168 } from "react/jsx-runtime";
|
|
25888
|
+
var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE__ */ jsx168(
|
|
25837
25889
|
Box_default,
|
|
25838
25890
|
{
|
|
25839
25891
|
sx: {
|
|
@@ -25843,7 +25895,7 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
25843
25895
|
maxWidth: "100%",
|
|
25844
25896
|
...sx
|
|
25845
25897
|
},
|
|
25846
|
-
children: /* @__PURE__ */
|
|
25898
|
+
children: /* @__PURE__ */ jsx168(
|
|
25847
25899
|
Typography_default,
|
|
25848
25900
|
{
|
|
25849
25901
|
variant: "subtitle2",
|
|
@@ -25857,12 +25909,12 @@ var WidgetTitle = ({ children, sx, multiline = false }) => children ? /* @__PURE
|
|
|
25857
25909
|
}
|
|
25858
25910
|
)
|
|
25859
25911
|
}
|
|
25860
|
-
) : /* @__PURE__ */
|
|
25912
|
+
) : /* @__PURE__ */ jsx168("span", {});
|
|
25861
25913
|
var WidgetTitle_default = WidgetTitle;
|
|
25862
25914
|
|
|
25863
25915
|
// src/components/window/MinimizableWindow.tsx
|
|
25864
25916
|
import * as React86 from "react";
|
|
25865
|
-
import { Fragment as Fragment35, jsx as
|
|
25917
|
+
import { Fragment as Fragment35, jsx as jsx169, jsxs as jsxs79 } from "react/jsx-runtime";
|
|
25866
25918
|
var sizes6 = {
|
|
25867
25919
|
M: 400,
|
|
25868
25920
|
L: 500,
|
|
@@ -25894,9 +25946,11 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
|
|
|
25894
25946
|
open,
|
|
25895
25947
|
closeable = true,
|
|
25896
25948
|
showBackButton = false,
|
|
25949
|
+
backButton,
|
|
25897
25950
|
sx,
|
|
25898
25951
|
targetElement,
|
|
25899
25952
|
contentHeight,
|
|
25953
|
+
iconSizes: iconSizes4 = "S",
|
|
25900
25954
|
onMinimize,
|
|
25901
25955
|
onClose,
|
|
25902
25956
|
onBack
|
|
@@ -25975,7 +26029,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
|
|
|
25975
26029
|
}, 750);
|
|
25976
26030
|
};
|
|
25977
26031
|
return /* @__PURE__ */ jsxs79(Fragment35, { children: [
|
|
25978
|
-
isDraggingState && /* @__PURE__ */
|
|
26032
|
+
isDraggingState && /* @__PURE__ */ jsx169(
|
|
25979
26033
|
Box_default,
|
|
25980
26034
|
{
|
|
25981
26035
|
sx: {
|
|
@@ -25991,7 +26045,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
|
|
|
25991
26045
|
onMouseMove: (ev) => handleMouseMove(ev)
|
|
25992
26046
|
}
|
|
25993
26047
|
),
|
|
25994
|
-
/* @__PURE__ */
|
|
26048
|
+
/* @__PURE__ */ jsx169(
|
|
25995
26049
|
Box_default,
|
|
25996
26050
|
{
|
|
25997
26051
|
ref: overlayRef,
|
|
@@ -26033,32 +26087,32 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
|
|
|
26033
26087
|
onMouseDown: handleMouseDown,
|
|
26034
26088
|
minHeight: "44px",
|
|
26035
26089
|
children: [
|
|
26036
|
-
/* @__PURE__ */
|
|
26090
|
+
/* @__PURE__ */ jsx169(
|
|
26037
26091
|
Stack_default,
|
|
26038
26092
|
{
|
|
26039
26093
|
direction: "row",
|
|
26040
26094
|
alignItems: "center",
|
|
26041
26095
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
26042
|
-
children: showBackButton && /* @__PURE__ */
|
|
26096
|
+
children: showBackButton && (!backButton ? /* @__PURE__ */ jsx169(
|
|
26043
26097
|
Tooltip_default,
|
|
26044
26098
|
{
|
|
26045
26099
|
title: t("MINIMIZABLE_WINDOW.GO_BACK"),
|
|
26046
26100
|
zIndex: 999999,
|
|
26047
26101
|
placement: "top",
|
|
26048
|
-
children: /* @__PURE__ */
|
|
26102
|
+
children: /* @__PURE__ */ jsx169(
|
|
26049
26103
|
IconButton_default,
|
|
26050
26104
|
{
|
|
26051
|
-
size:
|
|
26105
|
+
size: iconSizes4,
|
|
26052
26106
|
iconId: "arrow-left",
|
|
26053
26107
|
onClick: onBack,
|
|
26054
26108
|
sx: iconButtonsStyles
|
|
26055
26109
|
}
|
|
26056
26110
|
)
|
|
26057
26111
|
}
|
|
26058
|
-
)
|
|
26112
|
+
) : backButton)
|
|
26059
26113
|
}
|
|
26060
26114
|
),
|
|
26061
|
-
/* @__PURE__ */
|
|
26115
|
+
/* @__PURE__ */ jsx169(
|
|
26062
26116
|
Box_default,
|
|
26063
26117
|
{
|
|
26064
26118
|
sx: {
|
|
@@ -26066,7 +26120,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
|
|
|
26066
26120
|
left: "50%",
|
|
26067
26121
|
transform: "translateX(-50%)"
|
|
26068
26122
|
},
|
|
26069
|
-
children: typeof title === "string" ? /* @__PURE__ */
|
|
26123
|
+
children: typeof title === "string" ? /* @__PURE__ */ jsx169(Typography_default, { children: title }) : title
|
|
26070
26124
|
}
|
|
26071
26125
|
),
|
|
26072
26126
|
/* @__PURE__ */ jsxs79(
|
|
@@ -26076,16 +26130,16 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
|
|
|
26076
26130
|
alignItems: "center",
|
|
26077
26131
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
26078
26132
|
children: [
|
|
26079
|
-
/* @__PURE__ */
|
|
26133
|
+
/* @__PURE__ */ jsx169(Box_default, { children: /* @__PURE__ */ jsx169(
|
|
26080
26134
|
Tooltip_default,
|
|
26081
26135
|
{
|
|
26082
26136
|
title: t("MINIMIZABLE_WINDOW.MINIMIZE"),
|
|
26083
26137
|
zIndex: 999999,
|
|
26084
26138
|
placement: "top",
|
|
26085
|
-
children: /* @__PURE__ */
|
|
26139
|
+
children: /* @__PURE__ */ jsx169(
|
|
26086
26140
|
IconButton_default,
|
|
26087
26141
|
{
|
|
26088
|
-
size:
|
|
26142
|
+
size: iconSizes4,
|
|
26089
26143
|
iconId: "minus",
|
|
26090
26144
|
onClick: () => {
|
|
26091
26145
|
applyMinimizeTransition();
|
|
@@ -26098,16 +26152,16 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
|
|
|
26098
26152
|
)
|
|
26099
26153
|
}
|
|
26100
26154
|
) }),
|
|
26101
|
-
closeable && /* @__PURE__ */
|
|
26155
|
+
closeable && /* @__PURE__ */ jsx169(Box_default, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx169(
|
|
26102
26156
|
Tooltip_default,
|
|
26103
26157
|
{
|
|
26104
26158
|
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
26105
26159
|
zIndex: 999999,
|
|
26106
26160
|
placement: "top",
|
|
26107
|
-
children: /* @__PURE__ */
|
|
26161
|
+
children: /* @__PURE__ */ jsx169(
|
|
26108
26162
|
IconButton_default,
|
|
26109
26163
|
{
|
|
26110
|
-
size:
|
|
26164
|
+
size: iconSizes4,
|
|
26111
26165
|
iconId: "close",
|
|
26112
26166
|
onClick: onCloseModal,
|
|
26113
26167
|
sx: iconButtonsStyles
|
|
@@ -26121,7 +26175,7 @@ var MinimizableWindow = React86.forwardRef(function MinimizableWindow2({
|
|
|
26121
26175
|
]
|
|
26122
26176
|
}
|
|
26123
26177
|
),
|
|
26124
|
-
/* @__PURE__ */
|
|
26178
|
+
/* @__PURE__ */ jsx169(
|
|
26125
26179
|
Stack_default,
|
|
26126
26180
|
{
|
|
26127
26181
|
sx: {
|