@connectif/ui-components 6.0.4 → 6.0.6
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/CHANGELOG.md +23 -0
- package/dist/components/icon/icons.d.ts +2 -0
- package/dist/components/input/ItemSelector.d.ts +3 -2
- package/dist/components/input/SelectPopover.d.ts +5 -1
- package/dist/components/markdown/MarkdownRenderer.d.ts +3 -2
- package/dist/components/tooltip/TextEllipsis.d.ts +2 -1
- package/dist/index.js +337 -299
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -97,7 +97,7 @@ var require_react_is_development = __commonJS({
|
|
|
97
97
|
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
98
98
|
var Element2 = REACT_ELEMENT_TYPE;
|
|
99
99
|
var ForwardRef2 = REACT_FORWARD_REF_TYPE;
|
|
100
|
-
var
|
|
100
|
+
var Fragment45 = REACT_FRAGMENT_TYPE;
|
|
101
101
|
var Lazy = REACT_LAZY_TYPE;
|
|
102
102
|
var Memo2 = REACT_MEMO_TYPE;
|
|
103
103
|
var Portal = REACT_PORTAL_TYPE;
|
|
@@ -156,7 +156,7 @@ var require_react_is_development = __commonJS({
|
|
|
156
156
|
exports.ContextProvider = ContextProvider;
|
|
157
157
|
exports.Element = Element2;
|
|
158
158
|
exports.ForwardRef = ForwardRef2;
|
|
159
|
-
exports.Fragment =
|
|
159
|
+
exports.Fragment = Fragment45;
|
|
160
160
|
exports.Lazy = Lazy;
|
|
161
161
|
exports.Memo = Memo2;
|
|
162
162
|
exports.Portal = Portal;
|
|
@@ -1508,8 +1508,10 @@ import {
|
|
|
1508
1508
|
mdiEmailOpen,
|
|
1509
1509
|
mdiEmailOpenOutline,
|
|
1510
1510
|
mdiEmailOutline,
|
|
1511
|
+
mdiEmailPlus,
|
|
1511
1512
|
mdiEmailPlusOutline,
|
|
1512
1513
|
mdiEmailLock,
|
|
1514
|
+
mdiEmailRemove,
|
|
1513
1515
|
mdiEmailVariant,
|
|
1514
1516
|
mdiEmoticon,
|
|
1515
1517
|
mdiEmoticonCool,
|
|
@@ -3311,7 +3313,9 @@ var icons = {
|
|
|
3311
3313
|
"email-open": mdiEmailOpen,
|
|
3312
3314
|
"email-open-outline": mdiEmailOpenOutline,
|
|
3313
3315
|
"email-outline": mdiEmailOutline,
|
|
3316
|
+
"email-plus": mdiEmailPlus,
|
|
3314
3317
|
"email-plus-outline": mdiEmailPlusOutline,
|
|
3318
|
+
"email-remove": mdiEmailRemove,
|
|
3315
3319
|
"email-secure": mdiEmailLock,
|
|
3316
3320
|
"email-variant": mdiEmailVariant,
|
|
3317
3321
|
emby: "M11,2L6,7L7,8L2,13L7,18L8,17L13,22L18,17L17,16L22,11L17,6L16,7L11,2M10,8.5L16,12L10,15.5V8.5Z",
|
|
@@ -9471,7 +9475,7 @@ var TooltipMenu_default = TooltipMenu;
|
|
|
9471
9475
|
|
|
9472
9476
|
// src/components/tooltip/TextEllipsis.tsx
|
|
9473
9477
|
import * as React17 from "react";
|
|
9474
|
-
import { jsx as jsx32 } from "react/jsx-runtime";
|
|
9478
|
+
import { Fragment as Fragment4, jsx as jsx32 } from "react/jsx-runtime";
|
|
9475
9479
|
var TextEllipsis = ({
|
|
9476
9480
|
text,
|
|
9477
9481
|
typographyVariant,
|
|
@@ -9481,47 +9485,49 @@ var TextEllipsis = ({
|
|
|
9481
9485
|
maxWidth: maxWidth2,
|
|
9482
9486
|
"data-test": dataTest,
|
|
9483
9487
|
sx,
|
|
9484
|
-
zIndex
|
|
9488
|
+
zIndex,
|
|
9489
|
+
disableTooltip = false
|
|
9485
9490
|
}) => {
|
|
9486
9491
|
const textElementRef = React17.useRef(
|
|
9487
9492
|
null
|
|
9488
9493
|
);
|
|
9489
|
-
|
|
9494
|
+
const getTypography = () => /* @__PURE__ */ jsx32(
|
|
9495
|
+
Typography_default,
|
|
9496
|
+
{
|
|
9497
|
+
color: color2,
|
|
9498
|
+
ref: textElementRef,
|
|
9499
|
+
component: "div",
|
|
9500
|
+
variant: typographyVariant,
|
|
9501
|
+
noWrap: lines <= 1,
|
|
9502
|
+
sx: {
|
|
9503
|
+
width: width2 || void 0,
|
|
9504
|
+
cursor: "inherit",
|
|
9505
|
+
maxWidth: maxWidth2 || void 0,
|
|
9506
|
+
...lines > 1 && {
|
|
9507
|
+
WebkitLineClamp: lines,
|
|
9508
|
+
textOverflow: "ellipsis",
|
|
9509
|
+
overflow: "hidden",
|
|
9510
|
+
WebkitBoxOrient: "vertical",
|
|
9511
|
+
wordWrap: "break-word",
|
|
9512
|
+
display: "-webkit-box",
|
|
9513
|
+
whiteSpace: "unset"
|
|
9514
|
+
},
|
|
9515
|
+
...sx
|
|
9516
|
+
},
|
|
9517
|
+
"data-test": dataTest,
|
|
9518
|
+
children: text || "\xA0"
|
|
9519
|
+
}
|
|
9520
|
+
);
|
|
9521
|
+
return /* @__PURE__ */ jsx32(Fragment4, { children: !disableTooltip ? /* @__PURE__ */ jsx32(
|
|
9490
9522
|
TextEllipsisTooltip_default,
|
|
9491
9523
|
{
|
|
9492
9524
|
title: text ?? "\xA0",
|
|
9493
9525
|
textEllipsableElement: textElementRef,
|
|
9494
9526
|
lines,
|
|
9495
9527
|
zIndex,
|
|
9496
|
-
children:
|
|
9497
|
-
Typography_default,
|
|
9498
|
-
{
|
|
9499
|
-
color: color2,
|
|
9500
|
-
ref: textElementRef,
|
|
9501
|
-
component: "div",
|
|
9502
|
-
variant: typographyVariant,
|
|
9503
|
-
noWrap: lines <= 1,
|
|
9504
|
-
sx: {
|
|
9505
|
-
width: width2 || void 0,
|
|
9506
|
-
cursor: "inherit",
|
|
9507
|
-
maxWidth: maxWidth2 || void 0,
|
|
9508
|
-
...lines > 1 && {
|
|
9509
|
-
WebkitLineClamp: lines,
|
|
9510
|
-
textOverflow: "ellipsis",
|
|
9511
|
-
overflow: "hidden",
|
|
9512
|
-
WebkitBoxOrient: "vertical",
|
|
9513
|
-
wordWrap: "break-word",
|
|
9514
|
-
display: "-webkit-box",
|
|
9515
|
-
whiteSpace: "unset"
|
|
9516
|
-
},
|
|
9517
|
-
...sx
|
|
9518
|
-
},
|
|
9519
|
-
"data-test": dataTest,
|
|
9520
|
-
children: text || "\xA0"
|
|
9521
|
-
}
|
|
9522
|
-
)
|
|
9528
|
+
children: getTypography()
|
|
9523
9529
|
}
|
|
9524
|
-
);
|
|
9530
|
+
) : getTypography() });
|
|
9525
9531
|
};
|
|
9526
9532
|
var TextEllipsis_default = TextEllipsis;
|
|
9527
9533
|
|
|
@@ -9594,7 +9600,7 @@ var AvatarCard_default = AvatarCard;
|
|
|
9594
9600
|
// src/components/button/MenuIconButton.tsx
|
|
9595
9601
|
import * as React19 from "react";
|
|
9596
9602
|
import MuiMenu from "@mui/material/Menu";
|
|
9597
|
-
import { Fragment as
|
|
9603
|
+
import { Fragment as Fragment5, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
9598
9604
|
var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
9599
9605
|
children,
|
|
9600
9606
|
isOpen: managedIsOpen,
|
|
@@ -9639,7 +9645,7 @@ var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
|
9639
9645
|
setAnchorEl(element);
|
|
9640
9646
|
};
|
|
9641
9647
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
9642
|
-
return /* @__PURE__ */ jsxs13(
|
|
9648
|
+
return /* @__PURE__ */ jsxs13(Fragment5, { children: [
|
|
9643
9649
|
/* @__PURE__ */ jsx34(
|
|
9644
9650
|
IconButton_default,
|
|
9645
9651
|
{
|
|
@@ -10374,7 +10380,7 @@ var ButtonWithActions_default = ButtonWithActions;
|
|
|
10374
10380
|
// src/components/button/MenuButton.tsx
|
|
10375
10381
|
import * as React24 from "react";
|
|
10376
10382
|
import MuiMenu3 from "@mui/material/Menu";
|
|
10377
|
-
import { Fragment as
|
|
10383
|
+
import { Fragment as Fragment6, jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
10378
10384
|
var MenuButton = React24.forwardRef(function MenuButton2({
|
|
10379
10385
|
children,
|
|
10380
10386
|
isOpen: managedIsOpen,
|
|
@@ -10419,7 +10425,7 @@ var MenuButton = React24.forwardRef(function MenuButton2({
|
|
|
10419
10425
|
setAnchorEl(element);
|
|
10420
10426
|
};
|
|
10421
10427
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
10422
|
-
return /* @__PURE__ */ jsxs18(
|
|
10428
|
+
return /* @__PURE__ */ jsxs18(Fragment6, { children: [
|
|
10423
10429
|
/* @__PURE__ */ jsx43(
|
|
10424
10430
|
Button_default,
|
|
10425
10431
|
{
|
|
@@ -11371,7 +11377,7 @@ import * as React32 from "react";
|
|
|
11371
11377
|
// src/components/chip/MenuChip.tsx
|
|
11372
11378
|
import * as React29 from "react";
|
|
11373
11379
|
import MuiMenu4 from "@mui/material/Menu";
|
|
11374
|
-
import { Fragment as
|
|
11380
|
+
import { Fragment as Fragment7, jsx as jsx61, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11375
11381
|
var MenuChip = React29.forwardRef(function MenuChip2({
|
|
11376
11382
|
children,
|
|
11377
11383
|
isOpen: managedIsOpen,
|
|
@@ -11413,7 +11419,7 @@ var MenuChip = React29.forwardRef(function MenuChip2({
|
|
|
11413
11419
|
setAnchorEl(element);
|
|
11414
11420
|
};
|
|
11415
11421
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
11416
|
-
return /* @__PURE__ */ jsxs23(
|
|
11422
|
+
return /* @__PURE__ */ jsxs23(Fragment7, { children: [
|
|
11417
11423
|
/* @__PURE__ */ jsx61(
|
|
11418
11424
|
Chip_default,
|
|
11419
11425
|
{
|
|
@@ -11470,8 +11476,11 @@ var globalStyles = {
|
|
|
11470
11476
|
".Slim-Vertical-Scroll": {
|
|
11471
11477
|
"@-moz-document url-prefix()": {
|
|
11472
11478
|
"&": {
|
|
11473
|
-
scrollbarColor: "
|
|
11479
|
+
scrollbarColor: "transparent transparent",
|
|
11474
11480
|
scrollbarWidth: "auto"
|
|
11481
|
+
},
|
|
11482
|
+
"&:hover": {
|
|
11483
|
+
scrollbarColor: "silver transparent"
|
|
11475
11484
|
}
|
|
11476
11485
|
},
|
|
11477
11486
|
overflow: "auto",
|
|
@@ -11487,15 +11496,23 @@ var globalStyles = {
|
|
|
11487
11496
|
borderRadius: "4px"
|
|
11488
11497
|
},
|
|
11489
11498
|
"&::-webkit-scrollbar-thumb": {
|
|
11490
|
-
background: "
|
|
11499
|
+
background: "transparent",
|
|
11491
11500
|
borderRadius: "4px"
|
|
11501
|
+
},
|
|
11502
|
+
"&:hover": {
|
|
11503
|
+
"&::-webkit-scrollbar-thumb": {
|
|
11504
|
+
background: "silver"
|
|
11505
|
+
}
|
|
11492
11506
|
}
|
|
11493
11507
|
},
|
|
11494
11508
|
".Slim-Horizontal-Scroll": {
|
|
11495
11509
|
"@-moz-document url-prefix()": {
|
|
11496
11510
|
"&": {
|
|
11497
|
-
scrollbarColor: "
|
|
11511
|
+
scrollbarColor: "transparent transparent",
|
|
11498
11512
|
scrollbarWidth: "auto"
|
|
11513
|
+
},
|
|
11514
|
+
"&:hover": {
|
|
11515
|
+
scrollbarColor: "silver transparent"
|
|
11499
11516
|
}
|
|
11500
11517
|
},
|
|
11501
11518
|
overflow: "auto",
|
|
@@ -11510,14 +11527,22 @@ var globalStyles = {
|
|
|
11510
11527
|
background: "transparent"
|
|
11511
11528
|
},
|
|
11512
11529
|
"&::-webkit-scrollbar-thumb": {
|
|
11513
|
-
background: "
|
|
11530
|
+
background: "transparent"
|
|
11531
|
+
},
|
|
11532
|
+
"&:hover": {
|
|
11533
|
+
"&::-webkit-scrollbar-thumb": {
|
|
11534
|
+
background: "silver"
|
|
11535
|
+
}
|
|
11514
11536
|
}
|
|
11515
11537
|
},
|
|
11516
11538
|
".Slim-Vertical-Horizontal-Scroll": {
|
|
11517
11539
|
"@-moz-document url-prefix()": {
|
|
11518
11540
|
"&": {
|
|
11519
|
-
scrollbarColor: "
|
|
11541
|
+
scrollbarColor: "transparent transparent",
|
|
11520
11542
|
scrollbarWidth: "auto"
|
|
11543
|
+
},
|
|
11544
|
+
"&:hover": {
|
|
11545
|
+
scrollbarColor: "silver transparent"
|
|
11521
11546
|
}
|
|
11522
11547
|
},
|
|
11523
11548
|
overflow: "auto",
|
|
@@ -11533,7 +11558,12 @@ var globalStyles = {
|
|
|
11533
11558
|
background: "transparent"
|
|
11534
11559
|
},
|
|
11535
11560
|
"&::-webkit-scrollbar-thumb": {
|
|
11536
|
-
background: "
|
|
11561
|
+
background: "transparent"
|
|
11562
|
+
},
|
|
11563
|
+
"&:hover": {
|
|
11564
|
+
"&::-webkit-scrollbar-thumb": {
|
|
11565
|
+
background: "silver"
|
|
11566
|
+
}
|
|
11537
11567
|
}
|
|
11538
11568
|
},
|
|
11539
11569
|
".Fade-In-Out": {
|
|
@@ -11550,7 +11580,7 @@ var GlobalStyles_default = globalStyles;
|
|
|
11550
11580
|
// src/components/chip/ChipHiddenCounter.tsx
|
|
11551
11581
|
import * as React30 from "react";
|
|
11552
11582
|
import { Popper } from "@mui/material";
|
|
11553
|
-
import { Fragment as
|
|
11583
|
+
import { Fragment as Fragment8, jsx as jsx62, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
11554
11584
|
var TOOLTIP_DATA_TEST_ID = "chip-container-tooltip";
|
|
11555
11585
|
var COUNTER_LABEL_DATA_TEST_ID = "chip-counter-label";
|
|
11556
11586
|
var MAX_TOOLTIP_WIDTH = 362;
|
|
@@ -11584,7 +11614,7 @@ var ChipHiddenCounter = ({
|
|
|
11584
11614
|
const alertButtonWidth = !warningTooltip ? 0 : WIDTH_ALERT_BUTTON;
|
|
11585
11615
|
return !isDeletable ? `${MAX_TOOLTIP_WIDTH - alertButtonWidth}px` : `${MAX_TOOLTIP_WIDTH - WIDTH_DELETABLE_BUTTON - alertButtonWidth}px`;
|
|
11586
11616
|
};
|
|
11587
|
-
return /* @__PURE__ */ jsx62(
|
|
11617
|
+
return /* @__PURE__ */ jsx62(Fragment8, { children: hiddenChips.length > 0 && /* @__PURE__ */ jsxs24(Fragment8, { children: [
|
|
11588
11618
|
/* @__PURE__ */ jsx62(
|
|
11589
11619
|
Box_default2,
|
|
11590
11620
|
{
|
|
@@ -12050,7 +12080,7 @@ var ChipViewer = ({
|
|
|
12050
12080
|
var ChipViewer_default = ChipViewer;
|
|
12051
12081
|
|
|
12052
12082
|
// src/components/card/EnhancedCard.tsx
|
|
12053
|
-
import { Fragment as
|
|
12083
|
+
import { Fragment as Fragment9, jsx as jsx65, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
12054
12084
|
var cardWidthBySize = {
|
|
12055
12085
|
S: 110,
|
|
12056
12086
|
M: 110,
|
|
@@ -12411,7 +12441,7 @@ var EnhancedCard = React32.forwardRef(
|
|
|
12411
12441
|
)
|
|
12412
12442
|
}
|
|
12413
12443
|
),
|
|
12414
|
-
isHovered && hoverComponent && /* @__PURE__ */ jsxs26(
|
|
12444
|
+
isHovered && hoverComponent && /* @__PURE__ */ jsxs26(Fragment9, { children: [
|
|
12415
12445
|
/* @__PURE__ */ jsx65(
|
|
12416
12446
|
Box_default2,
|
|
12417
12447
|
{
|
|
@@ -12609,7 +12639,7 @@ var incrementLabelStyles = {
|
|
|
12609
12639
|
};
|
|
12610
12640
|
|
|
12611
12641
|
// src/utils/ChartUtils.tsx
|
|
12612
|
-
import { Fragment as
|
|
12642
|
+
import { Fragment as Fragment11, jsx as jsx68, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12613
12643
|
function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
12614
12644
|
seriesName,
|
|
12615
12645
|
value
|
|
@@ -12627,7 +12657,7 @@ function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
|
12627
12657
|
return tooltipOrder;
|
|
12628
12658
|
};
|
|
12629
12659
|
params.sort((a, b) => getOrder(a) - getOrder(b));
|
|
12630
|
-
const tooltip = /* @__PURE__ */ jsxs28(
|
|
12660
|
+
const tooltip = /* @__PURE__ */ jsxs28(Fragment11, { children: [
|
|
12631
12661
|
!getTooltip && /* @__PURE__ */ jsx68(Typography_default, { variant: "tooltip", children: params[0].name }),
|
|
12632
12662
|
params.map((p) => {
|
|
12633
12663
|
const entry = chartTooltipEntryFormatter({
|
|
@@ -13648,7 +13678,7 @@ var DonutChartLegendItem_default = DonutChartLegendItem;
|
|
|
13648
13678
|
|
|
13649
13679
|
// src/components/chart/DonutChart.tsx
|
|
13650
13680
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
13651
|
-
import { Fragment as
|
|
13681
|
+
import { Fragment as Fragment14, jsx as jsx75, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
13652
13682
|
var DonutChart = ({
|
|
13653
13683
|
style: style3,
|
|
13654
13684
|
isLoading,
|
|
@@ -13814,7 +13844,7 @@ var DonutChart = ({
|
|
|
13814
13844
|
flexDirection: "column",
|
|
13815
13845
|
...style3
|
|
13816
13846
|
},
|
|
13817
|
-
children: isLoading ? /* @__PURE__ */ jsx75(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs33(
|
|
13847
|
+
children: isLoading ? /* @__PURE__ */ jsx75(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs33(Fragment14, { children: [
|
|
13818
13848
|
/* @__PURE__ */ jsxs33(Box_default2, { sx: { flexGrow: 1, position: "relative" }, children: [
|
|
13819
13849
|
showIcon && /* @__PURE__ */ jsx75(
|
|
13820
13850
|
Icon_default,
|
|
@@ -16269,7 +16299,7 @@ var useTranslation = () => {
|
|
|
16269
16299
|
import {
|
|
16270
16300
|
Dialog as MuiDialog
|
|
16271
16301
|
} from "@mui/material";
|
|
16272
|
-
import { Fragment as
|
|
16302
|
+
import { Fragment as Fragment16, jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
16273
16303
|
var sizes5 = {
|
|
16274
16304
|
S: "480px",
|
|
16275
16305
|
M: "640px",
|
|
@@ -16292,7 +16322,7 @@ var Dialog = ({
|
|
|
16292
16322
|
...rest
|
|
16293
16323
|
}) => {
|
|
16294
16324
|
const { palette: palette2 } = useCustomTheme();
|
|
16295
|
-
const getDialogContent = () => /* @__PURE__ */ jsxs39(
|
|
16325
|
+
const getDialogContent = () => /* @__PURE__ */ jsxs39(Fragment16, { children: [
|
|
16296
16326
|
/* @__PURE__ */ jsxs39(
|
|
16297
16327
|
Stack_default,
|
|
16298
16328
|
{
|
|
@@ -18399,23 +18429,23 @@ function formatPhone(phone, format2) {
|
|
|
18399
18429
|
}
|
|
18400
18430
|
|
|
18401
18431
|
// src/components/formatter/CompactNumberFormatter.tsx
|
|
18402
|
-
import { Fragment as
|
|
18432
|
+
import { Fragment as Fragment17, jsx as jsx87 } from "react/jsx-runtime";
|
|
18403
18433
|
var CompactNumberFormatter = ({ value }) => {
|
|
18404
18434
|
const { locale } = React40.useContext(IntlContext);
|
|
18405
|
-
return /* @__PURE__ */ jsx87(
|
|
18435
|
+
return /* @__PURE__ */ jsx87(Fragment17, { children: formatCompactNumber(value, locale) });
|
|
18406
18436
|
};
|
|
18407
18437
|
var CompactNumberFormatter_default = CompactNumberFormatter;
|
|
18408
18438
|
|
|
18409
18439
|
// src/components/formatter/CurrencyFormatter.tsx
|
|
18410
18440
|
import * as React41 from "react";
|
|
18411
|
-
import { Fragment as
|
|
18441
|
+
import { Fragment as Fragment18, jsx as jsx88 } from "react/jsx-runtime";
|
|
18412
18442
|
var CurrencyFormatter = ({
|
|
18413
18443
|
value,
|
|
18414
18444
|
notation,
|
|
18415
18445
|
currency
|
|
18416
18446
|
}) => {
|
|
18417
18447
|
const { locale, currency: contextCurrency } = React41.useContext(IntlContext);
|
|
18418
|
-
return /* @__PURE__ */ jsx88(
|
|
18448
|
+
return /* @__PURE__ */ jsx88(Fragment18, { children: formatCurrency(
|
|
18419
18449
|
value,
|
|
18420
18450
|
locale,
|
|
18421
18451
|
currency ?? contextCurrency,
|
|
@@ -18426,37 +18456,37 @@ var CurrencyFormatter_default = CurrencyFormatter;
|
|
|
18426
18456
|
|
|
18427
18457
|
// src/components/formatter/NumberFormatter.tsx
|
|
18428
18458
|
import * as React42 from "react";
|
|
18429
|
-
import { Fragment as
|
|
18459
|
+
import { Fragment as Fragment19, jsx as jsx89 } from "react/jsx-runtime";
|
|
18430
18460
|
var NumberFormatter = ({ value, fractionSize }) => {
|
|
18431
18461
|
const { locale } = React42.useContext(IntlContext);
|
|
18432
|
-
return /* @__PURE__ */ jsx89(
|
|
18462
|
+
return /* @__PURE__ */ jsx89(Fragment19, { children: formatNumber(value, locale, fractionSize) });
|
|
18433
18463
|
};
|
|
18434
18464
|
var NumberFormatter_default = NumberFormatter;
|
|
18435
18465
|
|
|
18436
18466
|
// src/components/formatter/PercentageFormatter.tsx
|
|
18437
18467
|
import * as React43 from "react";
|
|
18438
|
-
import { Fragment as
|
|
18468
|
+
import { Fragment as Fragment20, jsx as jsx90 } from "react/jsx-runtime";
|
|
18439
18469
|
var PercentageFormatter = ({
|
|
18440
18470
|
value,
|
|
18441
18471
|
fractionSize
|
|
18442
18472
|
}) => {
|
|
18443
18473
|
const { locale } = React43.useContext(IntlContext);
|
|
18444
|
-
return /* @__PURE__ */ jsx90(
|
|
18474
|
+
return /* @__PURE__ */ jsx90(Fragment20, { children: formatPercentage(value, locale, fractionSize) });
|
|
18445
18475
|
};
|
|
18446
18476
|
var PercentageFormatter_default = PercentageFormatter;
|
|
18447
18477
|
|
|
18448
18478
|
// src/components/formatter/DateFormatter.tsx
|
|
18449
18479
|
import * as React44 from "react";
|
|
18450
|
-
import { Fragment as
|
|
18480
|
+
import { Fragment as Fragment21, jsx as jsx91 } from "react/jsx-runtime";
|
|
18451
18481
|
var DateFormatter = ({ date, format: format2 }) => {
|
|
18452
18482
|
const { locale, timezone } = React44.useContext(IntlContext);
|
|
18453
|
-
return /* @__PURE__ */ jsx91(
|
|
18483
|
+
return /* @__PURE__ */ jsx91(Fragment21, { children: formatDate(date, locale, timezone, format2) });
|
|
18454
18484
|
};
|
|
18455
18485
|
var DateFormatter_default = DateFormatter;
|
|
18456
18486
|
|
|
18457
18487
|
// src/components/formatter/PhoneFormatter.tsx
|
|
18458
|
-
import { Fragment as
|
|
18459
|
-
var PhoneFormatter = ({ phone, format: format2 }) => /* @__PURE__ */ jsx92(
|
|
18488
|
+
import { Fragment as Fragment22, jsx as jsx92 } from "react/jsx-runtime";
|
|
18489
|
+
var PhoneFormatter = ({ phone, format: format2 }) => /* @__PURE__ */ jsx92(Fragment22, { children: formatPhone(phone, format2) });
|
|
18460
18490
|
var PhoneFormatter_default = PhoneFormatter;
|
|
18461
18491
|
|
|
18462
18492
|
// src/components/header/HeaderTitle.tsx
|
|
@@ -19288,7 +19318,7 @@ var InputHelperText = React51.forwardRef(
|
|
|
19288
19318
|
var InputHelperText_default = InputHelperText;
|
|
19289
19319
|
|
|
19290
19320
|
// src/components/input/TextField.tsx
|
|
19291
|
-
import { Fragment as
|
|
19321
|
+
import { Fragment as Fragment23, jsx as jsx101, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
19292
19322
|
var commonInputStylesOptions = {
|
|
19293
19323
|
shouldForwardProp: (prop) => prop !== "variant" && prop !== "typographyVariant"
|
|
19294
19324
|
};
|
|
@@ -19550,7 +19580,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19550
19580
|
]
|
|
19551
19581
|
}
|
|
19552
19582
|
);
|
|
19553
|
-
return /* @__PURE__ */ jsxs45(
|
|
19583
|
+
return /* @__PURE__ */ jsxs45(Fragment23, { children: [
|
|
19554
19584
|
label && /* @__PURE__ */ jsx101(
|
|
19555
19585
|
InputLabel_default,
|
|
19556
19586
|
{
|
|
@@ -20445,7 +20475,7 @@ var DateIntervalPickerInputs = ({
|
|
|
20445
20475
|
var DateIntervalPickerInputs_default = DateIntervalPickerInputs;
|
|
20446
20476
|
|
|
20447
20477
|
// src/components/input/date-interval-picker/DateIntervalRangeSelector.tsx
|
|
20448
|
-
import { Fragment as
|
|
20478
|
+
import { Fragment as Fragment24, jsx as jsx112, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
20449
20479
|
var DateIntervalRangeSelector = ({
|
|
20450
20480
|
state,
|
|
20451
20481
|
color: color2,
|
|
@@ -20761,7 +20791,7 @@ var DateIntervalRangeSelector = ({
|
|
|
20761
20791
|
}
|
|
20762
20792
|
return newState;
|
|
20763
20793
|
};
|
|
20764
|
-
return /* @__PURE__ */ jsxs51(
|
|
20794
|
+
return /* @__PURE__ */ jsxs51(Fragment24, { children: [
|
|
20765
20795
|
/* @__PURE__ */ jsx112(
|
|
20766
20796
|
Box_default2,
|
|
20767
20797
|
{
|
|
@@ -21353,7 +21383,9 @@ var DateIntervalPickerInputButton = ({
|
|
|
21353
21383
|
}
|
|
21354
21384
|
),
|
|
21355
21385
|
value: dateText,
|
|
21356
|
-
disabled
|
|
21386
|
+
disabled,
|
|
21387
|
+
onChange: () => {
|
|
21388
|
+
}
|
|
21357
21389
|
}
|
|
21358
21390
|
)
|
|
21359
21391
|
}
|
|
@@ -21463,7 +21495,7 @@ var DateIntervalPicker_default = DateIntervalPicker;
|
|
|
21463
21495
|
// src/components/input/SelectPopoverItem.tsx
|
|
21464
21496
|
import { Grid as Grid2, Stack as Stack9 } from "@mui/material";
|
|
21465
21497
|
import { lighten as lighten3 } from "@mui/material";
|
|
21466
|
-
import { Fragment as
|
|
21498
|
+
import { Fragment as Fragment25, jsx as jsx117, jsxs as jsxs55 } from "react/jsx-runtime";
|
|
21467
21499
|
var bgColorLightCoefficient2 = 0.9;
|
|
21468
21500
|
var SelectPopoverItem = ({
|
|
21469
21501
|
onClick,
|
|
@@ -21509,7 +21541,7 @@ var SelectPopoverItem = ({
|
|
|
21509
21541
|
},
|
|
21510
21542
|
onClick: () => !disabled && typeof onClick === "function" && onClick(),
|
|
21511
21543
|
children: [
|
|
21512
|
-
!selectableItemComponent && /* @__PURE__ */ jsxs55(
|
|
21544
|
+
!selectableItemComponent && /* @__PURE__ */ jsxs55(Fragment25, { children: [
|
|
21513
21545
|
/* @__PURE__ */ jsxs55(
|
|
21514
21546
|
Box_default2,
|
|
21515
21547
|
{
|
|
@@ -21529,7 +21561,7 @@ var SelectPopoverItem = ({
|
|
|
21529
21561
|
cursor: disabled ? "default" : "pointer"
|
|
21530
21562
|
},
|
|
21531
21563
|
typographyVariant: "body1",
|
|
21532
|
-
text: /* @__PURE__ */ jsxs55(
|
|
21564
|
+
text: /* @__PURE__ */ jsxs55(Fragment25, { children: [
|
|
21533
21565
|
iconId && /* @__PURE__ */ jsx117(
|
|
21534
21566
|
Icon_default,
|
|
21535
21567
|
{
|
|
@@ -21806,6 +21838,12 @@ var Select = function Select2({
|
|
|
21806
21838
|
{
|
|
21807
21839
|
className: `Cn-Select ${className}`,
|
|
21808
21840
|
sx: {
|
|
21841
|
+
...variant !== "transparent" && {
|
|
21842
|
+
"&.Mui-focused": {
|
|
21843
|
+
backgroundColor: "white",
|
|
21844
|
+
borderColor: palette2.primary.main
|
|
21845
|
+
}
|
|
21846
|
+
},
|
|
21809
21847
|
...variant === "transparent" && {
|
|
21810
21848
|
backgroundColor: "transparent",
|
|
21811
21849
|
borderColor: "transparent",
|
|
@@ -21909,7 +21947,8 @@ var Select = function Select2({
|
|
|
21909
21947
|
sx: {
|
|
21910
21948
|
...variant !== "transparent" && {
|
|
21911
21949
|
"&.Mui-focused": {
|
|
21912
|
-
backgroundColor: "white"
|
|
21950
|
+
backgroundColor: "white",
|
|
21951
|
+
borderColor: palette2.primary.main
|
|
21913
21952
|
}
|
|
21914
21953
|
},
|
|
21915
21954
|
...variant === "transparent" && {
|
|
@@ -22116,7 +22155,7 @@ var DaysOfWeekPicker_default = DaysOfWeekPicker;
|
|
|
22116
22155
|
// src/components/input/ColorPicker.tsx
|
|
22117
22156
|
import * as React65 from "react";
|
|
22118
22157
|
import GradientColorPicker from "react-best-gradient-color-picker";
|
|
22119
|
-
import { Fragment as
|
|
22158
|
+
import { Fragment as Fragment26, jsx as jsx121, jsxs as jsxs56 } from "react/jsx-runtime";
|
|
22120
22159
|
var colorRegex = /^#([A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})$|^rgba?\((\d{1,3}), {0,1}(\d{1,3}), {0,1}(\d{1,3})(, {0,1}([01]|0?\.\d+))?\)$/;
|
|
22121
22160
|
var isValidColor = (color2) => colorRegex.test(color2);
|
|
22122
22161
|
var colorPickerDefaultColors = [
|
|
@@ -22255,7 +22294,7 @@ var ColorPicker = React65.forwardRef(function ColorPickerWrapper({
|
|
|
22255
22294
|
};
|
|
22256
22295
|
}
|
|
22257
22296
|
}, [anchorEl]);
|
|
22258
|
-
return /* @__PURE__ */ jsxs56(
|
|
22297
|
+
return /* @__PURE__ */ jsxs56(Fragment26, { children: [
|
|
22259
22298
|
/* @__PURE__ */ jsx121(
|
|
22260
22299
|
TextField_default,
|
|
22261
22300
|
{
|
|
@@ -22644,7 +22683,7 @@ var CategorizedPickerGroupItem = function CategorizedPickerGroupItem2({
|
|
|
22644
22683
|
var CategorizedPickerGroupItem_default = CategorizedPickerGroupItem;
|
|
22645
22684
|
|
|
22646
22685
|
// src/components/input/categorized-picker/CategorizedPickerItem.tsx
|
|
22647
|
-
import { Fragment as
|
|
22686
|
+
import { Fragment as Fragment27, jsx as jsx126, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
22648
22687
|
var CategorizedPickerItem = function CategorizedPickerItem2({
|
|
22649
22688
|
option,
|
|
22650
22689
|
selectedId,
|
|
@@ -22662,7 +22701,7 @@ var CategorizedPickerItem = function CategorizedPickerItem2({
|
|
|
22662
22701
|
behavior: "smooth"
|
|
22663
22702
|
});
|
|
22664
22703
|
};
|
|
22665
|
-
return /* @__PURE__ */ jsxs58(
|
|
22704
|
+
return /* @__PURE__ */ jsxs58(Fragment27, { children: [
|
|
22666
22705
|
option.categorizedPickerItemType === "option" && /* @__PURE__ */ jsx126(
|
|
22667
22706
|
CategorizedPickerOptionItem_default,
|
|
22668
22707
|
{
|
|
@@ -22702,18 +22741,18 @@ var CategorizedPickerItem_default = CategorizedPickerItem;
|
|
|
22702
22741
|
|
|
22703
22742
|
// src/components/input/categorized-picker/CategorizedPickerEmptyCategoryPanel.tsx
|
|
22704
22743
|
import { Stack as Stack10 } from "@mui/material";
|
|
22705
|
-
import { Fragment as
|
|
22744
|
+
import { Fragment as Fragment28, jsx as jsx127 } from "react/jsx-runtime";
|
|
22706
22745
|
var CategorizedPickerEmptyCategoryPanel = function CategorizedPickerEmptyCategoryPanel2({
|
|
22707
22746
|
selectedCategory,
|
|
22708
22747
|
isEmptyCategories
|
|
22709
22748
|
}) {
|
|
22710
22749
|
const { t } = useTranslation();
|
|
22711
|
-
return /* @__PURE__ */ jsx127(
|
|
22750
|
+
return /* @__PURE__ */ jsx127(Fragment28, { children: !selectedCategory?.emptyData ? /* @__PURE__ */ jsx127(Stack10, { padding: "12px", alignItems: "center", children: /* @__PURE__ */ jsx127(Typography_default, { variant: "body2", color: grey600, children: isEmptyCategories ? t("CATEGORIZED_PICKER.NO_RESULTS") : t("CATEGORIZED_PICKER.NO_OPTIONS") }) }) : selectedCategory.emptyData });
|
|
22712
22751
|
};
|
|
22713
22752
|
var CategorizedPickerEmptyCategoryPanel_default = CategorizedPickerEmptyCategoryPanel;
|
|
22714
22753
|
|
|
22715
22754
|
// src/components/input/categorized-picker/CategorizedPickerCategoryPanel.tsx
|
|
22716
|
-
import { Fragment as
|
|
22755
|
+
import { Fragment as Fragment29, jsx as jsx128 } from "react/jsx-runtime";
|
|
22717
22756
|
var CategorizedPickerCategoryPanel = function CategorizedPickerCategoryPanel2({
|
|
22718
22757
|
value,
|
|
22719
22758
|
selectedCategory,
|
|
@@ -22800,7 +22839,7 @@ var CategorizedPickerCategoryPanel = function CategorizedPickerCategoryPanel2({
|
|
|
22800
22839
|
result.push(...getGroups(withGroup));
|
|
22801
22840
|
return result;
|
|
22802
22841
|
};
|
|
22803
|
-
return /* @__PURE__ */ jsx128(
|
|
22842
|
+
return /* @__PURE__ */ jsx128(Fragment29, { children: !selectedCategory || !categoryOptions?.length ? /* @__PURE__ */ jsx128(
|
|
22804
22843
|
CategorizedPickerEmptyCategoryPanel_default,
|
|
22805
22844
|
{
|
|
22806
22845
|
selectedCategory,
|
|
@@ -22832,7 +22871,7 @@ function orderOptions(a, b) {
|
|
|
22832
22871
|
var CategorizedPickerCategoryPanel_default = CategorizedPickerCategoryPanel;
|
|
22833
22872
|
|
|
22834
22873
|
// src/components/input/categorized-picker/CategorizedPicker.tsx
|
|
22835
|
-
import { Fragment as
|
|
22874
|
+
import { Fragment as Fragment30, jsx as jsx129, jsxs as jsxs59 } from "react/jsx-runtime";
|
|
22836
22875
|
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */ jsx129(
|
|
22837
22876
|
Icon_default,
|
|
22838
22877
|
{
|
|
@@ -22936,7 +22975,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
22936
22975
|
setSelectedCategory(filteredSelectedCategory);
|
|
22937
22976
|
}
|
|
22938
22977
|
}, [filteredCategories, selectedCategory]);
|
|
22939
|
-
return /* @__PURE__ */ jsxs59(
|
|
22978
|
+
return /* @__PURE__ */ jsxs59(Fragment30, { children: [
|
|
22940
22979
|
/* @__PURE__ */ jsx129(
|
|
22941
22980
|
Select3,
|
|
22942
22981
|
{
|
|
@@ -23148,6 +23187,7 @@ var SelectPopover = function SelectPopover2({
|
|
|
23148
23187
|
onCancel,
|
|
23149
23188
|
onLoadMore,
|
|
23150
23189
|
onSearch,
|
|
23190
|
+
onPendingSelectionChange,
|
|
23151
23191
|
debounce = 500,
|
|
23152
23192
|
multiple = false,
|
|
23153
23193
|
hasMore = false,
|
|
@@ -23258,25 +23298,31 @@ var SelectPopover = function SelectPopover2({
|
|
|
23258
23298
|
updatedCurrentItems[previousSelectedIndex].color = originalColor2;
|
|
23259
23299
|
}
|
|
23260
23300
|
setCurrentItems(updatedCurrentItems);
|
|
23301
|
+
let newCurrentSelectedItems;
|
|
23261
23302
|
if (updatedItem.selected) {
|
|
23262
23303
|
if (multiple) {
|
|
23263
|
-
|
|
23264
|
-
|
|
23304
|
+
newCurrentSelectedItems = currentSelectedItems.concat(
|
|
23305
|
+
updatedItem.id
|
|
23265
23306
|
);
|
|
23266
23307
|
} else {
|
|
23267
|
-
|
|
23308
|
+
newCurrentSelectedItems = [updatedItem.id];
|
|
23268
23309
|
}
|
|
23269
23310
|
} else {
|
|
23270
23311
|
if (multiple) {
|
|
23271
|
-
|
|
23272
|
-
|
|
23273
|
-
(selectedItemId) => selectedItemId !== item.id
|
|
23274
|
-
)
|
|
23312
|
+
newCurrentSelectedItems = currentSelectedItems.filter(
|
|
23313
|
+
(selectedItemId) => selectedItemId !== item.id
|
|
23275
23314
|
);
|
|
23276
23315
|
} else {
|
|
23277
|
-
|
|
23316
|
+
newCurrentSelectedItems = [];
|
|
23278
23317
|
}
|
|
23279
23318
|
}
|
|
23319
|
+
setCurrentSelectedItems(newCurrentSelectedItems);
|
|
23320
|
+
if (onPendingSelectionChange) {
|
|
23321
|
+
onPendingSelectionChange(
|
|
23322
|
+
newCurrentSelectedItems,
|
|
23323
|
+
updatedCurrentItems.map((item2) => item2.id)
|
|
23324
|
+
);
|
|
23325
|
+
}
|
|
23280
23326
|
};
|
|
23281
23327
|
return /* @__PURE__ */ jsxs60(
|
|
23282
23328
|
Popover_default,
|
|
@@ -23470,7 +23516,7 @@ var arraysEqual = (a, b) => {
|
|
|
23470
23516
|
var SelectPopover_default = SelectPopover;
|
|
23471
23517
|
|
|
23472
23518
|
// src/components/input/ItemSelector.tsx
|
|
23473
|
-
import { Fragment as
|
|
23519
|
+
import { Fragment as Fragment31, jsx as jsx131, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
23474
23520
|
var ItemSelector = function ItemSelector2({
|
|
23475
23521
|
items,
|
|
23476
23522
|
selectedItems,
|
|
@@ -23503,7 +23549,9 @@ var ItemSelector = function ItemSelector2({
|
|
|
23503
23549
|
onLoadMore,
|
|
23504
23550
|
onSearch,
|
|
23505
23551
|
onClose,
|
|
23506
|
-
|
|
23552
|
+
onOpen,
|
|
23553
|
+
getWarningTooltip,
|
|
23554
|
+
onPendingSelectionChange
|
|
23507
23555
|
}) {
|
|
23508
23556
|
const [anchorEl, setAnchorEl] = React71.useState();
|
|
23509
23557
|
const [searchText, setSearchText] = React71.useState("");
|
|
@@ -23533,155 +23581,157 @@ var ItemSelector = function ItemSelector2({
|
|
|
23533
23581
|
const selectedItem = selectedItems[0]?.id;
|
|
23534
23582
|
return selectedItem ? [selectedItem] : "";
|
|
23535
23583
|
};
|
|
23536
|
-
|
|
23537
|
-
|
|
23538
|
-
|
|
23584
|
+
const onOpenSelector = () => {
|
|
23585
|
+
if (selectRef.current) {
|
|
23586
|
+
onOpen && onOpen();
|
|
23587
|
+
setAnchorEl(selectRef.current);
|
|
23588
|
+
}
|
|
23589
|
+
};
|
|
23590
|
+
return /* @__PURE__ */ jsxs61(Fragment31, { children: [
|
|
23591
|
+
/* @__PURE__ */ jsx131(Stack_default, { onClick: onOpenSelector, children: /* @__PURE__ */ jsx131(
|
|
23592
|
+
Select_default,
|
|
23539
23593
|
{
|
|
23540
|
-
|
|
23541
|
-
|
|
23542
|
-
|
|
23543
|
-
|
|
23544
|
-
|
|
23545
|
-
|
|
23546
|
-
|
|
23547
|
-
|
|
23548
|
-
|
|
23549
|
-
|
|
23550
|
-
|
|
23551
|
-
|
|
23552
|
-
|
|
23553
|
-
|
|
23554
|
-
|
|
23555
|
-
|
|
23556
|
-
|
|
23557
|
-
|
|
23558
|
-
|
|
23594
|
+
ref: selectRef,
|
|
23595
|
+
open: false,
|
|
23596
|
+
multiple: isMultiple(),
|
|
23597
|
+
variant,
|
|
23598
|
+
disabled,
|
|
23599
|
+
options: selectedItems.map((item) => ({
|
|
23600
|
+
value: item.id,
|
|
23601
|
+
label: renderChipLabel(item)
|
|
23602
|
+
})),
|
|
23603
|
+
value: getSelectedValue(),
|
|
23604
|
+
renderValue: (value) => {
|
|
23605
|
+
let component;
|
|
23606
|
+
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
23607
|
+
component = /* @__PURE__ */ jsx131(Fragment31, { children: /* @__PURE__ */ jsx131(
|
|
23608
|
+
Stack_default,
|
|
23609
|
+
{
|
|
23610
|
+
direction: "row",
|
|
23611
|
+
flexWrap: "wrap",
|
|
23612
|
+
padding: "6px 0",
|
|
23613
|
+
children: /* @__PURE__ */ jsx131(
|
|
23614
|
+
Typography_default,
|
|
23559
23615
|
{
|
|
23560
|
-
|
|
23561
|
-
|
|
23562
|
-
|
|
23563
|
-
children: /* @__PURE__ */ jsx131(
|
|
23564
|
-
Typography_default,
|
|
23565
|
-
{
|
|
23566
|
-
variant: "body2",
|
|
23567
|
-
color: grey600,
|
|
23568
|
-
children: placeholder
|
|
23569
|
-
}
|
|
23570
|
-
)
|
|
23616
|
+
variant: "body2",
|
|
23617
|
+
color: grey600,
|
|
23618
|
+
children: placeholder
|
|
23571
23619
|
}
|
|
23572
|
-
)
|
|
23573
|
-
}
|
|
23574
|
-
|
|
23575
|
-
|
|
23576
|
-
|
|
23577
|
-
|
|
23578
|
-
|
|
23579
|
-
|
|
23580
|
-
|
|
23581
|
-
|
|
23582
|
-
|
|
23583
|
-
|
|
23584
|
-
|
|
23585
|
-
|
|
23586
|
-
|
|
23587
|
-
|
|
23588
|
-
|
|
23589
|
-
|
|
23590
|
-
|
|
23591
|
-
|
|
23592
|
-
|
|
23593
|
-
|
|
23594
|
-
|
|
23595
|
-
|
|
23596
|
-
|
|
23597
|
-
)
|
|
23598
|
-
|
|
23599
|
-
|
|
23600
|
-
|
|
23601
|
-
|
|
23602
|
-
|
|
23603
|
-
|
|
23604
|
-
|
|
23620
|
+
)
|
|
23621
|
+
}
|
|
23622
|
+
) });
|
|
23623
|
+
} else {
|
|
23624
|
+
component = /* @__PURE__ */ jsxs61(
|
|
23625
|
+
Stack_default,
|
|
23626
|
+
{
|
|
23627
|
+
direction: "row",
|
|
23628
|
+
alignItems: "center",
|
|
23629
|
+
gap: "8px",
|
|
23630
|
+
width: "100%",
|
|
23631
|
+
justifyContent: "space-between",
|
|
23632
|
+
children: [
|
|
23633
|
+
/* @__PURE__ */ jsx131(Stack_default, { flex: 1, minWidth: 0, children: /* @__PURE__ */ jsx131(
|
|
23634
|
+
ChipViewer_default,
|
|
23635
|
+
{
|
|
23636
|
+
chipSx: {
|
|
23637
|
+
alignSelf: "center"
|
|
23638
|
+
},
|
|
23639
|
+
chipVariant: "dark",
|
|
23640
|
+
values: value,
|
|
23641
|
+
...!disabled && {
|
|
23642
|
+
onRemoveChip: (event, id) => {
|
|
23643
|
+
onChange(
|
|
23644
|
+
selectedItems.filter(
|
|
23645
|
+
(i) => i.id !== id
|
|
23646
|
+
)
|
|
23647
|
+
);
|
|
23648
|
+
event.stopPropagation();
|
|
23649
|
+
}
|
|
23650
|
+
},
|
|
23651
|
+
numberLines: 1,
|
|
23652
|
+
renderChipLabel: (id) => {
|
|
23653
|
+
const item = selectedItems.find(
|
|
23654
|
+
(i) => i.id === id
|
|
23655
|
+
);
|
|
23656
|
+
return item ? renderChipLabel(item) : "";
|
|
23657
|
+
},
|
|
23658
|
+
getWarningTooltip: (chipId) => {
|
|
23659
|
+
if (getWarningTooltip) {
|
|
23660
|
+
const selectedItem = selectedItems.find(
|
|
23661
|
+
(selectedItem2) => selectedItem2.id === chipId
|
|
23662
|
+
);
|
|
23663
|
+
if (selectedItem) {
|
|
23664
|
+
return getWarningTooltip(
|
|
23665
|
+
selectedItem
|
|
23605
23666
|
);
|
|
23606
|
-
|
|
23607
|
-
},
|
|
23608
|
-
getWarningTooltip: (chipId) => {
|
|
23609
|
-
if (getWarningTooltip) {
|
|
23610
|
-
const selectedItem = selectedItems.find(
|
|
23611
|
-
(selectedItem2) => selectedItem2.id === chipId
|
|
23612
|
-
);
|
|
23613
|
-
if (selectedItem) {
|
|
23614
|
-
return getWarningTooltip(
|
|
23615
|
-
selectedItem
|
|
23616
|
-
);
|
|
23617
|
-
}
|
|
23618
|
-
}
|
|
23619
|
-
return "";
|
|
23620
|
-
},
|
|
23621
|
-
forceRecalculate: disabled
|
|
23667
|
+
}
|
|
23622
23668
|
}
|
|
23623
|
-
|
|
23624
|
-
|
|
23625
|
-
|
|
23669
|
+
return "";
|
|
23670
|
+
},
|
|
23671
|
+
forceRecalculate: disabled
|
|
23672
|
+
}
|
|
23673
|
+
) }),
|
|
23674
|
+
!disabled && isMultiple() && /* @__PURE__ */ jsx131(Stack_default, { minWidth: "32px", children: value.length > 1 && /* @__PURE__ */ jsx131(
|
|
23675
|
+
Tooltip_default,
|
|
23676
|
+
{
|
|
23677
|
+
title: t(
|
|
23678
|
+
"AUTOCOMPLETE.CLEAR"
|
|
23679
|
+
),
|
|
23680
|
+
children: /* @__PURE__ */ jsx131(
|
|
23681
|
+
IconButton_default,
|
|
23626
23682
|
{
|
|
23627
|
-
|
|
23628
|
-
|
|
23629
|
-
|
|
23630
|
-
|
|
23631
|
-
|
|
23632
|
-
|
|
23633
|
-
|
|
23634
|
-
|
|
23635
|
-
|
|
23636
|
-
|
|
23637
|
-
|
|
23638
|
-
event.stopPropagation();
|
|
23639
|
-
event.preventDefault();
|
|
23640
|
-
},
|
|
23641
|
-
"data-test": "clear-autocomplete"
|
|
23642
|
-
}
|
|
23643
|
-
)
|
|
23683
|
+
iconId: "close",
|
|
23684
|
+
size: "M",
|
|
23685
|
+
sx: {
|
|
23686
|
+
padding: 0
|
|
23687
|
+
},
|
|
23688
|
+
onClick: (event) => {
|
|
23689
|
+
onChange([]);
|
|
23690
|
+
event.stopPropagation();
|
|
23691
|
+
event.preventDefault();
|
|
23692
|
+
},
|
|
23693
|
+
"data-test": "clear-autocomplete"
|
|
23644
23694
|
}
|
|
23645
23695
|
)
|
|
23646
|
-
|
|
23647
|
-
}
|
|
23648
|
-
|
|
23696
|
+
}
|
|
23697
|
+
) })
|
|
23698
|
+
]
|
|
23649
23699
|
}
|
|
23650
|
-
|
|
23651
|
-
Stack_default,
|
|
23652
|
-
{
|
|
23653
|
-
direction: "row",
|
|
23654
|
-
justifyContent: "space-between",
|
|
23655
|
-
alignItems: "center",
|
|
23656
|
-
height: "100%",
|
|
23657
|
-
children: [
|
|
23658
|
-
component,
|
|
23659
|
-
/* @__PURE__ */ jsx131(
|
|
23660
|
-
Divider_default,
|
|
23661
|
-
{
|
|
23662
|
-
variant: "middle",
|
|
23663
|
-
orientation: "vertical",
|
|
23664
|
-
flexItem: true
|
|
23665
|
-
}
|
|
23666
|
-
)
|
|
23667
|
-
]
|
|
23668
|
-
}
|
|
23669
|
-
);
|
|
23670
|
-
},
|
|
23671
|
-
sx: {
|
|
23672
|
-
"& .MuiInputBase-input.MuiSelect-select": {
|
|
23673
|
-
height: "34px",
|
|
23674
|
-
lineHeight: "24px"
|
|
23675
|
-
},
|
|
23676
|
-
width: "100%",
|
|
23677
|
-
...isError ? {
|
|
23678
|
-
borderColor: errorMain
|
|
23679
|
-
} : {}
|
|
23680
|
-
}
|
|
23700
|
+
);
|
|
23681
23701
|
}
|
|
23682
|
-
|
|
23702
|
+
return /* @__PURE__ */ jsxs61(
|
|
23703
|
+
Stack_default,
|
|
23704
|
+
{
|
|
23705
|
+
direction: "row",
|
|
23706
|
+
justifyContent: "space-between",
|
|
23707
|
+
alignItems: "center",
|
|
23708
|
+
height: "100%",
|
|
23709
|
+
children: [
|
|
23710
|
+
component,
|
|
23711
|
+
/* @__PURE__ */ jsx131(
|
|
23712
|
+
Divider_default,
|
|
23713
|
+
{
|
|
23714
|
+
variant: "middle",
|
|
23715
|
+
orientation: "vertical",
|
|
23716
|
+
flexItem: true
|
|
23717
|
+
}
|
|
23718
|
+
)
|
|
23719
|
+
]
|
|
23720
|
+
}
|
|
23721
|
+
);
|
|
23722
|
+
},
|
|
23723
|
+
sx: {
|
|
23724
|
+
"& .MuiInputBase-input.MuiSelect-select": {
|
|
23725
|
+
height: "34px",
|
|
23726
|
+
lineHeight: "24px"
|
|
23727
|
+
},
|
|
23728
|
+
width: "100%",
|
|
23729
|
+
...isError ? {
|
|
23730
|
+
borderColor: errorMain
|
|
23731
|
+
} : {}
|
|
23732
|
+
}
|
|
23683
23733
|
}
|
|
23684
|
-
),
|
|
23734
|
+
) }),
|
|
23685
23735
|
helperText && /* @__PURE__ */ jsx131(InputHelperText_default, { severity: isError ? "error" : "info", children: helperText }),
|
|
23686
23736
|
/* @__PURE__ */ jsx131(
|
|
23687
23737
|
SelectPopover_default,
|
|
@@ -23735,7 +23785,8 @@ var ItemSelector = function ItemSelector2({
|
|
|
23735
23785
|
itemsPerRow,
|
|
23736
23786
|
itemsTitle,
|
|
23737
23787
|
selectableItemComponent,
|
|
23738
|
-
paddingContent
|
|
23788
|
+
paddingContent,
|
|
23789
|
+
onPendingSelectionChange
|
|
23739
23790
|
}
|
|
23740
23791
|
)
|
|
23741
23792
|
] });
|
|
@@ -23809,37 +23860,25 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
23809
23860
|
}
|
|
23810
23861
|
}
|
|
23811
23862
|
),
|
|
23812
|
-
/* @__PURE__ */
|
|
23813
|
-
|
|
23814
|
-
|
|
23815
|
-
|
|
23816
|
-
|
|
23817
|
-
|
|
23818
|
-
|
|
23819
|
-
|
|
23820
|
-
|
|
23821
|
-
|
|
23822
|
-
|
|
23823
|
-
|
|
23824
|
-
|
|
23825
|
-
|
|
23826
|
-
|
|
23827
|
-
|
|
23828
|
-
|
|
23829
|
-
|
|
23830
|
-
|
|
23831
|
-
Array.isArray(value) ? value.filter(
|
|
23832
|
-
(v) => v !== id
|
|
23833
|
-
) : ""
|
|
23834
|
-
);
|
|
23835
|
-
}
|
|
23836
|
-
},
|
|
23837
|
-
numberLines: 1,
|
|
23838
|
-
renderChipLabel: (id) => renderLabel(id),
|
|
23839
|
-
forceRecalculate: disabled
|
|
23840
|
-
}
|
|
23841
|
-
)
|
|
23842
|
-
] })
|
|
23863
|
+
/* @__PURE__ */ jsx132(Stack_default, { whiteSpace: "nowrap", flex: "1 1 auto", minWidth: 0, children: Array.isArray(value) && /* @__PURE__ */ jsx132(
|
|
23864
|
+
ChipViewer_default,
|
|
23865
|
+
{
|
|
23866
|
+
values: value,
|
|
23867
|
+
...!disabled && {
|
|
23868
|
+
onRemoveChip: (event, id) => {
|
|
23869
|
+
onRemoveValue(
|
|
23870
|
+
event,
|
|
23871
|
+
Array.isArray(value) ? value.filter(
|
|
23872
|
+
(v) => v !== id
|
|
23873
|
+
) : ""
|
|
23874
|
+
);
|
|
23875
|
+
}
|
|
23876
|
+
},
|
|
23877
|
+
numberLines: 1,
|
|
23878
|
+
renderChipLabel: (id) => renderLabel(id),
|
|
23879
|
+
forceRecalculate: disabled
|
|
23880
|
+
}
|
|
23881
|
+
) })
|
|
23843
23882
|
]
|
|
23844
23883
|
}
|
|
23845
23884
|
);
|
|
@@ -23847,7 +23886,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
23847
23886
|
var AutocompleteInputSelection_default = AutocompleteInputSelection;
|
|
23848
23887
|
|
|
23849
23888
|
// src/components/input/autocomplete/AutocompleteInput.tsx
|
|
23850
|
-
import { Fragment as
|
|
23889
|
+
import { Fragment as Fragment32, jsx as jsx133, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
23851
23890
|
var CLEAR_BUTTON_WIDTH = 36;
|
|
23852
23891
|
var sizes6 = {
|
|
23853
23892
|
XS: {
|
|
@@ -23890,7 +23929,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23890
23929
|
const [isHover, setIsHover] = React73.useState(false);
|
|
23891
23930
|
const dirty = !!inputValue || Array.isArray(value) && value.length > 0 || !Array.isArray(value) && !!value;
|
|
23892
23931
|
const showClearButton = !disabled && dirty && !disableClear && (isOpenPopover || isHover);
|
|
23893
|
-
return /* @__PURE__ */ jsx133(
|
|
23932
|
+
return /* @__PURE__ */ jsx133(Fragment32, { children: /* @__PURE__ */ jsx133(
|
|
23894
23933
|
DebouncedTextField_default,
|
|
23895
23934
|
{
|
|
23896
23935
|
ref: inputRef,
|
|
@@ -23929,7 +23968,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23929
23968
|
},
|
|
23930
23969
|
maxLength: maxValueLength,
|
|
23931
23970
|
placeholder: !canAddValues ? maxValuesText || t("AUTOCOMPLETE.MAX_VALUES") : Array.isArray(value) && value.length > 0 || !Array.isArray(value) && !!value ? "" : placeholder,
|
|
23932
|
-
value: inputValue,
|
|
23971
|
+
value: inputValue || (!Array.isArray(value) ? renderLabel(value) : ""),
|
|
23933
23972
|
multiline: false,
|
|
23934
23973
|
disabled: disabled || !canAddValues,
|
|
23935
23974
|
onChange: (event) => {
|
|
@@ -23946,8 +23985,6 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23946
23985
|
value.length - 1
|
|
23947
23986
|
)
|
|
23948
23987
|
);
|
|
23949
|
-
} else if (!inputValue && !Array.isArray(value) && value) {
|
|
23950
|
-
onRemoveValue(event, "");
|
|
23951
23988
|
}
|
|
23952
23989
|
break;
|
|
23953
23990
|
case "Enter":
|
|
@@ -23969,7 +24006,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23969
24006
|
}
|
|
23970
24007
|
},
|
|
23971
24008
|
containerRef,
|
|
23972
|
-
startAdornment: /* @__PURE__ */ jsx133(
|
|
24009
|
+
startAdornment: multiple ? /* @__PURE__ */ jsx133(
|
|
23973
24010
|
AutocompleteInputSelection_default,
|
|
23974
24011
|
{
|
|
23975
24012
|
value,
|
|
@@ -23980,7 +24017,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
23980
24017
|
onRemoveValue,
|
|
23981
24018
|
disabled
|
|
23982
24019
|
}
|
|
23983
|
-
),
|
|
24020
|
+
) : void 0,
|
|
23984
24021
|
endAdornment: /* @__PURE__ */ jsxs63(
|
|
23985
24022
|
Stack_default,
|
|
23986
24023
|
{
|
|
@@ -24086,7 +24123,7 @@ function getInitialListScroll({
|
|
|
24086
24123
|
}
|
|
24087
24124
|
|
|
24088
24125
|
// src/components/input/autocomplete/AutocompleteList.tsx
|
|
24089
|
-
import { Fragment as
|
|
24126
|
+
import { Fragment as Fragment33, jsx as jsx134, jsxs as jsxs64 } from "react/jsx-runtime";
|
|
24090
24127
|
var AUTOCOMPLETE_ITEM_HEIGHT = 44;
|
|
24091
24128
|
var AutocompleteList = function AutocompleteList2({
|
|
24092
24129
|
options,
|
|
@@ -24149,7 +24186,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
24149
24186
|
option.id
|
|
24150
24187
|
);
|
|
24151
24188
|
};
|
|
24152
|
-
return /* @__PURE__ */ jsx134(
|
|
24189
|
+
return /* @__PURE__ */ jsx134(Fragment33, { children: /* @__PURE__ */ jsx134(
|
|
24153
24190
|
ClickAwayListener,
|
|
24154
24191
|
{
|
|
24155
24192
|
onClickAway: (event) => onClickAwayPopover(
|
|
@@ -24222,7 +24259,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
24222
24259
|
var AutocompleteList_default = AutocompleteList;
|
|
24223
24260
|
|
|
24224
24261
|
// src/components/input/autocomplete/Autocomplete.tsx
|
|
24225
|
-
import { Fragment as
|
|
24262
|
+
import { Fragment as Fragment34, jsx as jsx135, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
24226
24263
|
var MIN_AUTOCOMPLETE_WIDTH = "328px";
|
|
24227
24264
|
var Autocomplete = function Autocomplete2({
|
|
24228
24265
|
variant = "default",
|
|
@@ -24433,12 +24470,13 @@ var Autocomplete = function Autocomplete2({
|
|
|
24433
24470
|
const onSearchValueChange = (event, inputValue2) => {
|
|
24434
24471
|
setInputValue(inputValue2);
|
|
24435
24472
|
setDirty(true);
|
|
24473
|
+
if (!inputValue2 && !multiple && value) {
|
|
24474
|
+
onChange && onChange(event, "");
|
|
24475
|
+
}
|
|
24436
24476
|
if (onSearch) {
|
|
24437
24477
|
onSearch(inputValue2);
|
|
24438
24478
|
if (inputValue2 && !isOpenPopover) {
|
|
24439
24479
|
openPopover();
|
|
24440
|
-
} else if (!inputValue2 && !multiple && value) {
|
|
24441
|
-
onChange && onChange(event, "");
|
|
24442
24480
|
}
|
|
24443
24481
|
return;
|
|
24444
24482
|
}
|
|
@@ -24539,7 +24577,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
24539
24577
|
setNextIndexByValue(value2);
|
|
24540
24578
|
onChange && onChange(event, value2);
|
|
24541
24579
|
};
|
|
24542
|
-
return /* @__PURE__ */ jsxs65(
|
|
24580
|
+
return /* @__PURE__ */ jsxs65(Fragment34, { children: [
|
|
24543
24581
|
/* @__PURE__ */ jsx135(
|
|
24544
24582
|
AutocompleteInput_default,
|
|
24545
24583
|
{
|
|
@@ -24681,7 +24719,7 @@ var CodeEditor_default = React76.forwardRef(CodeEditor);
|
|
|
24681
24719
|
|
|
24682
24720
|
// src/components/input/CodeEditorPopup.tsx
|
|
24683
24721
|
import format from "html-format";
|
|
24684
|
-
import { Fragment as
|
|
24722
|
+
import { Fragment as Fragment35, jsx as jsx137, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
24685
24723
|
var FORMAT_CHARACTERS_LINE = 120;
|
|
24686
24724
|
var FORMAT_NUMBER_SPACES_INDENTATION = 2;
|
|
24687
24725
|
var CodeEditorPopup = ({
|
|
@@ -24724,7 +24762,7 @@ var CodeEditorPopup = ({
|
|
|
24724
24762
|
" ".repeat(FORMAT_NUMBER_SPACES_INDENTATION),
|
|
24725
24763
|
FORMAT_CHARACTERS_LINE
|
|
24726
24764
|
);
|
|
24727
|
-
return /* @__PURE__ */ jsxs66(
|
|
24765
|
+
return /* @__PURE__ */ jsxs66(Fragment35, { children: [
|
|
24728
24766
|
readonly && /* @__PURE__ */ jsx137(
|
|
24729
24767
|
Dialog_default,
|
|
24730
24768
|
{
|
|
@@ -24890,7 +24928,7 @@ var CodeEditorPopup = ({
|
|
|
24890
24928
|
var CodeEditorPopup_default = CodeEditorPopup;
|
|
24891
24929
|
|
|
24892
24930
|
// src/components/input/TextEditor.tsx
|
|
24893
|
-
import { Fragment as
|
|
24931
|
+
import { Fragment as Fragment36, jsx as jsx138, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
24894
24932
|
var DEFAULT_TOOLBAR_INSERT_MENU_ITEMS = [
|
|
24895
24933
|
"link",
|
|
24896
24934
|
"image",
|
|
@@ -25176,7 +25214,7 @@ var TextEditor = function TextEditor2({
|
|
|
25176
25214
|
};
|
|
25177
25215
|
}
|
|
25178
25216
|
};
|
|
25179
|
-
return /* @__PURE__ */ jsxs67(
|
|
25217
|
+
return /* @__PURE__ */ jsxs67(Fragment36, { children: [
|
|
25180
25218
|
/* @__PURE__ */ jsx138(
|
|
25181
25219
|
Editor,
|
|
25182
25220
|
{
|
|
@@ -25233,7 +25271,7 @@ var TextEditor_default = TextEditor;
|
|
|
25233
25271
|
|
|
25234
25272
|
// src/components/input/PhoneField.tsx
|
|
25235
25273
|
import * as React79 from "react";
|
|
25236
|
-
import { Fragment as
|
|
25274
|
+
import { Fragment as Fragment37, jsx as jsx139, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
25237
25275
|
var maxPhoneLengthWithPrefix = 16;
|
|
25238
25276
|
var PhoneField = React79.forwardRef(function PhoneField2({
|
|
25239
25277
|
value,
|
|
@@ -25319,7 +25357,7 @@ var PhoneField = React79.forwardRef(function PhoneField2({
|
|
|
25319
25357
|
groupElements: true,
|
|
25320
25358
|
...rest,
|
|
25321
25359
|
className: `Cn-PhoneField ${className}`,
|
|
25322
|
-
startAdornment: /* @__PURE__ */ jsxs68(
|
|
25360
|
+
startAdornment: /* @__PURE__ */ jsxs68(Fragment37, { children: [
|
|
25323
25361
|
rest.startAdornment,
|
|
25324
25362
|
select
|
|
25325
25363
|
] }),
|
|
@@ -25754,7 +25792,7 @@ var DatePickerPopover = ({
|
|
|
25754
25792
|
var DatePickerPopover_default = DatePickerPopover;
|
|
25755
25793
|
|
|
25756
25794
|
// src/components/input/DatePicker.tsx
|
|
25757
|
-
import { Fragment as
|
|
25795
|
+
import { Fragment as Fragment38, jsx as jsx143, jsxs as jsxs71 } from "react/jsx-runtime";
|
|
25758
25796
|
var DatePicker = React82.forwardRef(
|
|
25759
25797
|
function DatePicker2({ value, onChange, onBlur, onKeyDown, minDate, maxDate, ...rest }, ref) {
|
|
25760
25798
|
const { locale, timezone } = React82.useContext(IntlContext);
|
|
@@ -25830,7 +25868,7 @@ var DatePicker = React82.forwardRef(
|
|
|
25830
25868
|
const text = value && !isNaN(value.getTime()) ? tz10(value, timezone).format(dateInputFormat) : "";
|
|
25831
25869
|
setTextValue(text);
|
|
25832
25870
|
}, [dateInputFormat, timezone, value]);
|
|
25833
|
-
return /* @__PURE__ */ jsxs71(
|
|
25871
|
+
return /* @__PURE__ */ jsxs71(Fragment38, { children: [
|
|
25834
25872
|
/* @__PURE__ */ jsx143(
|
|
25835
25873
|
TextField_default,
|
|
25836
25874
|
{
|
|
@@ -25873,7 +25911,7 @@ var DatePicker_default = DatePicker;
|
|
|
25873
25911
|
// src/components/input/Checkbox.tsx
|
|
25874
25912
|
import MuiCheckbox from "@mui/material/Checkbox";
|
|
25875
25913
|
import { FormControlLabel, FormGroup } from "@mui/material";
|
|
25876
|
-
import { Fragment as
|
|
25914
|
+
import { Fragment as Fragment39, jsx as jsx144, jsxs as jsxs72 } from "react/jsx-runtime";
|
|
25877
25915
|
var MaterialCheckbox = ({
|
|
25878
25916
|
checked,
|
|
25879
25917
|
disabled,
|
|
@@ -25906,7 +25944,7 @@ var Checkbox = ({
|
|
|
25906
25944
|
inputClass,
|
|
25907
25945
|
onChange,
|
|
25908
25946
|
tabIndex
|
|
25909
|
-
}) => /* @__PURE__ */ jsxs72(
|
|
25947
|
+
}) => /* @__PURE__ */ jsxs72(Fragment39, { children: [
|
|
25910
25948
|
!label && /* @__PURE__ */ jsx144(
|
|
25911
25949
|
MaterialCheckbox,
|
|
25912
25950
|
{
|
|
@@ -25948,7 +25986,7 @@ var Checkbox_default = Checkbox;
|
|
|
25948
25986
|
import * as React83 from "react";
|
|
25949
25987
|
import MuiRadio from "@mui/material/Radio";
|
|
25950
25988
|
import { FormControlLabel as FormControlLabel2 } from "@mui/material";
|
|
25951
|
-
import { Fragment as
|
|
25989
|
+
import { Fragment as Fragment40, jsx as jsx145, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
25952
25990
|
var Radio = React83.forwardRef(function Radio2({
|
|
25953
25991
|
label,
|
|
25954
25992
|
labelPlacement = "end",
|
|
@@ -25985,7 +26023,7 @@ var Radio = React83.forwardRef(function Radio2({
|
|
|
25985
26023
|
size: size === "S" ? "small" : "medium"
|
|
25986
26024
|
}
|
|
25987
26025
|
);
|
|
25988
|
-
return /* @__PURE__ */ jsxs73(
|
|
26026
|
+
return /* @__PURE__ */ jsxs73(Fragment40, { children: [
|
|
25989
26027
|
!label && radio,
|
|
25990
26028
|
label && /* @__PURE__ */ jsx145(
|
|
25991
26029
|
FormControlLabel2,
|
|
@@ -26638,7 +26676,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
26638
26676
|
|
|
26639
26677
|
// src/components/navbar/Navbar.tsx
|
|
26640
26678
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
26641
|
-
import { Fragment as
|
|
26679
|
+
import { Fragment as Fragment41, jsx as jsx153, jsxs as jsxs78 } from "react/jsx-runtime";
|
|
26642
26680
|
var Navbar = ({
|
|
26643
26681
|
topContent,
|
|
26644
26682
|
bottomContent,
|
|
@@ -26646,7 +26684,7 @@ var Navbar = ({
|
|
|
26646
26684
|
drawerBottomContent,
|
|
26647
26685
|
onClose,
|
|
26648
26686
|
isDrawerOpen = false
|
|
26649
|
-
}) => /* @__PURE__ */ jsxs78(
|
|
26687
|
+
}) => /* @__PURE__ */ jsxs78(Fragment41, { children: [
|
|
26650
26688
|
/* @__PURE__ */ jsxs78(
|
|
26651
26689
|
Box_default2,
|
|
26652
26690
|
{
|
|
@@ -26870,7 +26908,7 @@ var NavbarLogo_default = NavbarLogo;
|
|
|
26870
26908
|
|
|
26871
26909
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
26872
26910
|
import * as React89 from "react";
|
|
26873
|
-
import { Fragment as
|
|
26911
|
+
import { Fragment as Fragment42, jsx as jsx157, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
26874
26912
|
var DonutFocusOverlay = ({
|
|
26875
26913
|
isVisible,
|
|
26876
26914
|
elementRef,
|
|
@@ -26911,7 +26949,7 @@ var DonutFocusOverlay = ({
|
|
|
26911
26949
|
const internalTopHalfCircle = `${internalCircleRadius} ${internalCircleRadius} 0 0 1 ${startPointX + donutWidth + internalCircleRadius * 2} ${startPointY}`;
|
|
26912
26950
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
26913
26951
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
26914
|
-
return /* @__PURE__ */ jsxs80(
|
|
26952
|
+
return /* @__PURE__ */ jsxs80(Fragment42, { children: [
|
|
26915
26953
|
/* @__PURE__ */ jsx157(
|
|
26916
26954
|
Box_default2,
|
|
26917
26955
|
{
|
|
@@ -26956,7 +26994,7 @@ var DonutFocusOverlay = ({
|
|
|
26956
26994
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
26957
26995
|
|
|
26958
26996
|
// src/components/pager/Pager.tsx
|
|
26959
|
-
import { Fragment as
|
|
26997
|
+
import { Fragment as Fragment43, jsx as jsx158, jsxs as jsxs81 } from "react/jsx-runtime";
|
|
26960
26998
|
var Pager = ({
|
|
26961
26999
|
page,
|
|
26962
27000
|
pageSize,
|
|
@@ -26982,7 +27020,7 @@ var Pager = ({
|
|
|
26982
27020
|
sx: { minWidth: 78 }
|
|
26983
27021
|
}
|
|
26984
27022
|
),
|
|
26985
|
-
allowedPageSizes && /* @__PURE__ */ jsxs81(
|
|
27023
|
+
allowedPageSizes && /* @__PURE__ */ jsxs81(Fragment43, { children: [
|
|
26986
27024
|
/* @__PURE__ */ jsx158(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
26987
27025
|
/* @__PURE__ */ jsx158(
|
|
26988
27026
|
Select_default,
|
|
@@ -28626,7 +28664,7 @@ var WidgetTitle_default = WidgetTitle;
|
|
|
28626
28664
|
|
|
28627
28665
|
// src/components/window/MinimizableWindow.tsx
|
|
28628
28666
|
import * as React98 from "react";
|
|
28629
|
-
import { Fragment as
|
|
28667
|
+
import { Fragment as Fragment44, jsx as jsx185, jsxs as jsxs89 } from "react/jsx-runtime";
|
|
28630
28668
|
var sizes7 = {
|
|
28631
28669
|
M: 400,
|
|
28632
28670
|
L: 500,
|
|
@@ -28744,7 +28782,7 @@ var MinimizableWindow = React98.forwardRef(function MinimizableWindow2({
|
|
|
28744
28782
|
}
|
|
28745
28783
|
}, 750);
|
|
28746
28784
|
};
|
|
28747
|
-
return /* @__PURE__ */ jsxs89(
|
|
28785
|
+
return /* @__PURE__ */ jsxs89(Fragment44, { children: [
|
|
28748
28786
|
isDraggingState && /* @__PURE__ */ jsx185(
|
|
28749
28787
|
Box_default2,
|
|
28750
28788
|
{
|