@connectif/ui-components 9.0.2 → 9.0.4
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 +17 -0
- package/dist/components/input/PageSelector.d.ts +6 -0
- package/dist/i18n/en.d.ts +1 -0
- package/dist/i18n/es.d.ts +1 -0
- package/dist/i18n/fr.d.ts +1 -0
- package/dist/i18n/it.d.ts +1 -0
- package/dist/i18n/pt.d.ts +1 -0
- package/dist/index.js +109 -91
- 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 Fragment46 = 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 = Fragment46;
|
|
160
160
|
exports.Lazy = Lazy;
|
|
161
161
|
exports.Memo = Memo2;
|
|
162
162
|
exports.Portal = Portal;
|
|
@@ -7742,9 +7742,9 @@ var useCustomTheme = () => useTheme3();
|
|
|
7742
7742
|
import { jsx as jsx2, jsxs } from "react/jsx-runtime";
|
|
7743
7743
|
var icons2 = {
|
|
7744
7744
|
info: "information-outline",
|
|
7745
|
-
success: "check-circle",
|
|
7745
|
+
success: "check-circle-outline",
|
|
7746
7746
|
error: "alert-circle-outline",
|
|
7747
|
-
warning: "alert"
|
|
7747
|
+
warning: "alert-outline"
|
|
7748
7748
|
};
|
|
7749
7749
|
var getColor = (theme2, severity) => {
|
|
7750
7750
|
switch (severity) {
|
|
@@ -9174,7 +9174,7 @@ function escapeRegExp(source) {
|
|
|
9174
9174
|
var TextMarker_default = TextMarker;
|
|
9175
9175
|
|
|
9176
9176
|
// src/components/layout/Stepper.tsx
|
|
9177
|
-
import { jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
9177
|
+
import { Fragment as Fragment4, jsx as jsx27, jsxs as jsxs11 } from "react/jsx-runtime";
|
|
9178
9178
|
var Stepper = React14.forwardRef(function Stepper2({ activeStep, orientation = "vertical", steps }, ref) {
|
|
9179
9179
|
const containerRef = React14.useRef(null);
|
|
9180
9180
|
React14.useEffect(() => {
|
|
@@ -9230,7 +9230,7 @@ var Stepper = React14.forwardRef(function Stepper2({ activeStep, orientation = "
|
|
|
9230
9230
|
}
|
|
9231
9231
|
);
|
|
9232
9232
|
};
|
|
9233
|
-
const getDescription = (step, index) => /* @__PURE__ */ jsxs11(
|
|
9233
|
+
const getDescription = (step, index) => !step.placeholder && !step.description && !step.descriptionNode ? /* @__PURE__ */ jsx27(Fragment4, {}) : /* @__PURE__ */ jsxs11(
|
|
9234
9234
|
Box_default2,
|
|
9235
9235
|
{
|
|
9236
9236
|
style: {
|
|
@@ -9502,7 +9502,7 @@ var TooltipMenu_default = TooltipMenu;
|
|
|
9502
9502
|
|
|
9503
9503
|
// src/components/tooltip/TextEllipsis.tsx
|
|
9504
9504
|
import * as React17 from "react";
|
|
9505
|
-
import { Fragment as
|
|
9505
|
+
import { Fragment as Fragment5, jsx as jsx32 } from "react/jsx-runtime";
|
|
9506
9506
|
var TextEllipsis = ({
|
|
9507
9507
|
text,
|
|
9508
9508
|
typographyVariant,
|
|
@@ -9545,7 +9545,7 @@ var TextEllipsis = ({
|
|
|
9545
9545
|
children: text || "\xA0"
|
|
9546
9546
|
}
|
|
9547
9547
|
);
|
|
9548
|
-
return /* @__PURE__ */ jsx32(
|
|
9548
|
+
return /* @__PURE__ */ jsx32(Fragment5, { children: !disableTooltip ? /* @__PURE__ */ jsx32(
|
|
9549
9549
|
TextEllipsisTooltip_default,
|
|
9550
9550
|
{
|
|
9551
9551
|
title: text ?? "\xA0",
|
|
@@ -9627,7 +9627,7 @@ var AvatarCard_default = AvatarCard;
|
|
|
9627
9627
|
// src/components/button/MenuIconButton.tsx
|
|
9628
9628
|
import * as React19 from "react";
|
|
9629
9629
|
import MuiMenu from "@mui/material/Menu";
|
|
9630
|
-
import { Fragment as
|
|
9630
|
+
import { Fragment as Fragment6, jsx as jsx34, jsxs as jsxs13 } from "react/jsx-runtime";
|
|
9631
9631
|
var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
9632
9632
|
children,
|
|
9633
9633
|
isOpen: managedIsOpen,
|
|
@@ -9672,7 +9672,7 @@ var MenuIconButton = React19.forwardRef(function MenuIconButton2({
|
|
|
9672
9672
|
setAnchorEl(element);
|
|
9673
9673
|
};
|
|
9674
9674
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
9675
|
-
return /* @__PURE__ */ jsxs13(
|
|
9675
|
+
return /* @__PURE__ */ jsxs13(Fragment6, { children: [
|
|
9676
9676
|
/* @__PURE__ */ jsx34(
|
|
9677
9677
|
IconButton_default,
|
|
9678
9678
|
{
|
|
@@ -10410,7 +10410,7 @@ var ButtonWithActions_default = ButtonWithActions;
|
|
|
10410
10410
|
// src/components/button/MenuButton.tsx
|
|
10411
10411
|
import * as React24 from "react";
|
|
10412
10412
|
import MuiMenu3 from "@mui/material/Menu";
|
|
10413
|
-
import { Fragment as
|
|
10413
|
+
import { Fragment as Fragment7, jsx as jsx43, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
10414
10414
|
var MenuButton = React24.forwardRef(function MenuButton2({
|
|
10415
10415
|
children,
|
|
10416
10416
|
isOpen: managedIsOpen,
|
|
@@ -10455,7 +10455,7 @@ var MenuButton = React24.forwardRef(function MenuButton2({
|
|
|
10455
10455
|
setAnchorEl(element);
|
|
10456
10456
|
};
|
|
10457
10457
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
10458
|
-
return /* @__PURE__ */ jsxs18(
|
|
10458
|
+
return /* @__PURE__ */ jsxs18(Fragment7, { children: [
|
|
10459
10459
|
/* @__PURE__ */ jsx43(
|
|
10460
10460
|
Button_default,
|
|
10461
10461
|
{
|
|
@@ -11298,7 +11298,7 @@ var ChipList_default = ChipList;
|
|
|
11298
11298
|
// src/components/chip/MenuChip.tsx
|
|
11299
11299
|
import * as React29 from "react";
|
|
11300
11300
|
import MuiMenu4 from "@mui/material/Menu";
|
|
11301
|
-
import { Fragment as
|
|
11301
|
+
import { Fragment as Fragment8, jsx as jsx57, jsxs as jsxs22 } from "react/jsx-runtime";
|
|
11302
11302
|
var MenuChip = React29.forwardRef(function MenuChip2({
|
|
11303
11303
|
children,
|
|
11304
11304
|
isOpen: managedIsOpen,
|
|
@@ -11340,7 +11340,7 @@ var MenuChip = React29.forwardRef(function MenuChip2({
|
|
|
11340
11340
|
setAnchorEl(element);
|
|
11341
11341
|
};
|
|
11342
11342
|
const isOpen = typeof managedIsOpen === "boolean" ? managedIsOpen : internalIsOpen;
|
|
11343
|
-
return /* @__PURE__ */ jsxs22(
|
|
11343
|
+
return /* @__PURE__ */ jsxs22(Fragment8, { children: [
|
|
11344
11344
|
/* @__PURE__ */ jsx57(
|
|
11345
11345
|
Chip_default,
|
|
11346
11346
|
{
|
|
@@ -11536,7 +11536,7 @@ var GlobalStyles_default = globalStyles;
|
|
|
11536
11536
|
// src/components/chip/ChipHiddenCounter.tsx
|
|
11537
11537
|
import * as React30 from "react";
|
|
11538
11538
|
import { Popper } from "@mui/material";
|
|
11539
|
-
import { Fragment as
|
|
11539
|
+
import { Fragment as Fragment9, jsx as jsx58, jsxs as jsxs23 } from "react/jsx-runtime";
|
|
11540
11540
|
var TOOLTIP_DATA_TEST_ID = "chip-container-tooltip";
|
|
11541
11541
|
var COUNTER_LABEL_DATA_TEST_ID = "chip-counter-label";
|
|
11542
11542
|
var MAX_TOOLTIP_WIDTH = 362;
|
|
@@ -11570,7 +11570,7 @@ var ChipHiddenCounter = ({
|
|
|
11570
11570
|
const alertButtonWidth = !warningTooltip ? 0 : WIDTH_ALERT_BUTTON;
|
|
11571
11571
|
return !isDeletable ? `${MAX_TOOLTIP_WIDTH - alertButtonWidth}px` : `${MAX_TOOLTIP_WIDTH - WIDTH_DELETABLE_BUTTON - alertButtonWidth}px`;
|
|
11572
11572
|
};
|
|
11573
|
-
return /* @__PURE__ */ jsx58(
|
|
11573
|
+
return /* @__PURE__ */ jsx58(Fragment9, { children: hiddenChips.length > 0 && /* @__PURE__ */ jsxs23(Fragment9, { children: [
|
|
11574
11574
|
/* @__PURE__ */ jsx58(
|
|
11575
11575
|
Box_default2,
|
|
11576
11576
|
{
|
|
@@ -12139,7 +12139,7 @@ var CardTable_default = CardTable;
|
|
|
12139
12139
|
// src/components/card/EnhancedCard.tsx
|
|
12140
12140
|
import { Stack as Stack5 } from "@mui/material";
|
|
12141
12141
|
import * as React32 from "react";
|
|
12142
|
-
import { Fragment as
|
|
12142
|
+
import { Fragment as Fragment10, jsx as jsx65, jsxs as jsxs26 } from "react/jsx-runtime";
|
|
12143
12143
|
var cardWidthBySize = {
|
|
12144
12144
|
S: 110,
|
|
12145
12145
|
M: 110,
|
|
@@ -12500,7 +12500,7 @@ var EnhancedCard = React32.forwardRef(
|
|
|
12500
12500
|
)
|
|
12501
12501
|
}
|
|
12502
12502
|
),
|
|
12503
|
-
isHovered && hoverComponent && /* @__PURE__ */ jsxs26(
|
|
12503
|
+
isHovered && hoverComponent && /* @__PURE__ */ jsxs26(Fragment10, { children: [
|
|
12504
12504
|
/* @__PURE__ */ jsx65(
|
|
12505
12505
|
Box_default2,
|
|
12506
12506
|
{
|
|
@@ -12698,7 +12698,7 @@ var incrementLabelStyles = {
|
|
|
12698
12698
|
};
|
|
12699
12699
|
|
|
12700
12700
|
// src/utils/ChartUtils.tsx
|
|
12701
|
-
import { Fragment as
|
|
12701
|
+
import { Fragment as Fragment12, jsx as jsx68, jsxs as jsxs28 } from "react/jsx-runtime";
|
|
12702
12702
|
function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
12703
12703
|
seriesName,
|
|
12704
12704
|
value
|
|
@@ -12716,7 +12716,7 @@ function useTooltipFormatter(chartTooltipEntryFormatter = ({
|
|
|
12716
12716
|
return tooltipOrder;
|
|
12717
12717
|
};
|
|
12718
12718
|
params.sort((a, b) => getOrder(a) - getOrder(b));
|
|
12719
|
-
const tooltip = /* @__PURE__ */ jsxs28(
|
|
12719
|
+
const tooltip = /* @__PURE__ */ jsxs28(Fragment12, { children: [
|
|
12720
12720
|
!getTooltip && /* @__PURE__ */ jsx68(Typography_default, { variant: "tooltip", children: params[0].name }),
|
|
12721
12721
|
params.map((p) => {
|
|
12722
12722
|
const entry = chartTooltipEntryFormatter({
|
|
@@ -13317,7 +13317,7 @@ var LineChart2 = ({
|
|
|
13317
13317
|
},
|
|
13318
13318
|
{
|
|
13319
13319
|
type: "value",
|
|
13320
|
-
position: "
|
|
13320
|
+
position: "left",
|
|
13321
13321
|
splitLine: {
|
|
13322
13322
|
show: false
|
|
13323
13323
|
},
|
|
@@ -13737,7 +13737,7 @@ var DonutChartLegendItem_default = DonutChartLegendItem;
|
|
|
13737
13737
|
|
|
13738
13738
|
// src/components/chart/DonutChart.tsx
|
|
13739
13739
|
import { alpha as alpha4 } from "@mui/material/styles";
|
|
13740
|
-
import { Fragment as
|
|
13740
|
+
import { Fragment as Fragment15, jsx as jsx75, jsxs as jsxs33 } from "react/jsx-runtime";
|
|
13741
13741
|
var DonutChart = ({
|
|
13742
13742
|
style: style3,
|
|
13743
13743
|
isLoading,
|
|
@@ -13903,7 +13903,7 @@ var DonutChart = ({
|
|
|
13903
13903
|
flexDirection: "column",
|
|
13904
13904
|
...style3
|
|
13905
13905
|
},
|
|
13906
|
-
children: isLoading ? /* @__PURE__ */ jsx75(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs33(
|
|
13906
|
+
children: isLoading ? /* @__PURE__ */ jsx75(Skeleton_default, { variant: "rectangular", height: "100%", width: "100%" }) : /* @__PURE__ */ jsxs33(Fragment15, { children: [
|
|
13907
13907
|
/* @__PURE__ */ jsxs33(Box_default2, { sx: { flexGrow: 1, position: "relative" }, children: [
|
|
13908
13908
|
showIcon && /* @__PURE__ */ jsx75(
|
|
13909
13909
|
Icon_default,
|
|
@@ -14958,6 +14958,7 @@ var DATE_INTERVAL_PICKER = {
|
|
|
14958
14958
|
START_HOUR: "Start hour"
|
|
14959
14959
|
};
|
|
14960
14960
|
var PAGE_SELECTOR = {
|
|
14961
|
+
LAST_PAGE_REACHED: "You have reached the last page",
|
|
14961
14962
|
SHOWING_ITEMS: "Showing <b>{from}-{to}</b> of {total}"
|
|
14962
14963
|
};
|
|
14963
14964
|
var SELECT_POPOVER = {
|
|
@@ -15249,6 +15250,7 @@ var DATE_INTERVAL_PICKER2 = {
|
|
|
15249
15250
|
START_HOUR: "Hora de inicio"
|
|
15250
15251
|
};
|
|
15251
15252
|
var PAGE_SELECTOR2 = {
|
|
15253
|
+
LAST_PAGE_REACHED: "Has llegado a la \xFAltima p\xE1gina",
|
|
15252
15254
|
SHOWING_ITEMS: "Mostrando <b>{from}-{to}</b> de {total}"
|
|
15253
15255
|
};
|
|
15254
15256
|
var SELECT_POPOVER2 = {
|
|
@@ -15555,6 +15557,7 @@ var DATE_INTERVAL_PICKER3 = {
|
|
|
15555
15557
|
START_HOUR: "Heure de d\xE9but"
|
|
15556
15558
|
};
|
|
15557
15559
|
var PAGE_SELECTOR3 = {
|
|
15560
|
+
LAST_PAGE_REACHED: "Vous avez atteint la derni\xE8re page",
|
|
15558
15561
|
SHOWING_ITEMS: "Montrer <b>{from}-{to}</b> de {total}"
|
|
15559
15562
|
};
|
|
15560
15563
|
var SELECT_POPOVER3 = {
|
|
@@ -15846,6 +15849,7 @@ var DATE_INTERVAL_PICKER4 = {
|
|
|
15846
15849
|
START_HOUR: "Ora di inizio"
|
|
15847
15850
|
};
|
|
15848
15851
|
var PAGE_SELECTOR4 = {
|
|
15852
|
+
LAST_PAGE_REACHED: "Hai raggiunto l'ultima pagina",
|
|
15849
15853
|
SHOWING_ITEMS: "Mostra <b>{from}-{to}</b> di {total}"
|
|
15850
15854
|
};
|
|
15851
15855
|
var SELECT_POPOVER4 = {
|
|
@@ -16122,6 +16126,7 @@ var DATE_INTERVAL_PICKER5 = {
|
|
|
16122
16126
|
START_HOUR: "Hora de in\xEDcio"
|
|
16123
16127
|
};
|
|
16124
16128
|
var PAGE_SELECTOR5 = {
|
|
16129
|
+
LAST_PAGE_REACHED: "Voc\xEA chegou \xE0 \xFAltima p\xE1gina",
|
|
16125
16130
|
SHOWING_ITEMS: "Exibindo <b>{from}-{to}</b> de {total}"
|
|
16126
16131
|
};
|
|
16127
16132
|
var SELECT_POPOVER5 = {
|
|
@@ -16378,7 +16383,7 @@ var useTranslation = () => {
|
|
|
16378
16383
|
import {
|
|
16379
16384
|
Dialog as MuiDialog
|
|
16380
16385
|
} from "@mui/material";
|
|
16381
|
-
import { Fragment as
|
|
16386
|
+
import { Fragment as Fragment17, jsx as jsx83, jsxs as jsxs39 } from "react/jsx-runtime";
|
|
16382
16387
|
var sizes5 = {
|
|
16383
16388
|
S: "480px",
|
|
16384
16389
|
M: "640px",
|
|
@@ -16401,7 +16406,7 @@ var Dialog = ({
|
|
|
16401
16406
|
...rest
|
|
16402
16407
|
}) => {
|
|
16403
16408
|
const { palette: palette2 } = useCustomTheme();
|
|
16404
|
-
const getDialogContent = () => /* @__PURE__ */ jsxs39(
|
|
16409
|
+
const getDialogContent = () => /* @__PURE__ */ jsxs39(Fragment17, { children: [
|
|
16405
16410
|
/* @__PURE__ */ jsxs39(
|
|
16406
16411
|
Stack_default,
|
|
16407
16412
|
{
|
|
@@ -18522,23 +18527,23 @@ function formatPhone(phone, format2) {
|
|
|
18522
18527
|
}
|
|
18523
18528
|
|
|
18524
18529
|
// src/components/formatter/CompactNumberFormatter.tsx
|
|
18525
|
-
import { Fragment as
|
|
18530
|
+
import { Fragment as Fragment18, jsx as jsx87 } from "react/jsx-runtime";
|
|
18526
18531
|
var CompactNumberFormatter = ({ value }) => {
|
|
18527
18532
|
const { locale } = React40.useContext(IntlContext);
|
|
18528
|
-
return /* @__PURE__ */ jsx87(
|
|
18533
|
+
return /* @__PURE__ */ jsx87(Fragment18, { children: formatCompactNumber(value, locale) });
|
|
18529
18534
|
};
|
|
18530
18535
|
var CompactNumberFormatter_default = CompactNumberFormatter;
|
|
18531
18536
|
|
|
18532
18537
|
// src/components/formatter/CurrencyFormatter.tsx
|
|
18533
18538
|
import * as React41 from "react";
|
|
18534
|
-
import { Fragment as
|
|
18539
|
+
import { Fragment as Fragment19, jsx as jsx88 } from "react/jsx-runtime";
|
|
18535
18540
|
var CurrencyFormatter = ({
|
|
18536
18541
|
value,
|
|
18537
18542
|
notation,
|
|
18538
18543
|
currency
|
|
18539
18544
|
}) => {
|
|
18540
18545
|
const { locale, currency: contextCurrency } = React41.useContext(IntlContext);
|
|
18541
|
-
return /* @__PURE__ */ jsx88(
|
|
18546
|
+
return /* @__PURE__ */ jsx88(Fragment19, { children: formatCurrency(
|
|
18542
18547
|
value,
|
|
18543
18548
|
locale,
|
|
18544
18549
|
currency ?? contextCurrency,
|
|
@@ -18549,37 +18554,37 @@ var CurrencyFormatter_default = CurrencyFormatter;
|
|
|
18549
18554
|
|
|
18550
18555
|
// src/components/formatter/NumberFormatter.tsx
|
|
18551
18556
|
import * as React42 from "react";
|
|
18552
|
-
import { Fragment as
|
|
18557
|
+
import { Fragment as Fragment20, jsx as jsx89 } from "react/jsx-runtime";
|
|
18553
18558
|
var NumberFormatter = ({ value, fractionSize }) => {
|
|
18554
18559
|
const { locale } = React42.useContext(IntlContext);
|
|
18555
|
-
return /* @__PURE__ */ jsx89(
|
|
18560
|
+
return /* @__PURE__ */ jsx89(Fragment20, { children: formatNumber(value, locale, fractionSize) });
|
|
18556
18561
|
};
|
|
18557
18562
|
var NumberFormatter_default = NumberFormatter;
|
|
18558
18563
|
|
|
18559
18564
|
// src/components/formatter/PercentageFormatter.tsx
|
|
18560
18565
|
import * as React43 from "react";
|
|
18561
|
-
import { Fragment as
|
|
18566
|
+
import { Fragment as Fragment21, jsx as jsx90 } from "react/jsx-runtime";
|
|
18562
18567
|
var PercentageFormatter = ({
|
|
18563
18568
|
value,
|
|
18564
18569
|
fractionSize
|
|
18565
18570
|
}) => {
|
|
18566
18571
|
const { locale } = React43.useContext(IntlContext);
|
|
18567
|
-
return /* @__PURE__ */ jsx90(
|
|
18572
|
+
return /* @__PURE__ */ jsx90(Fragment21, { children: formatPercentage(value, locale, fractionSize) });
|
|
18568
18573
|
};
|
|
18569
18574
|
var PercentageFormatter_default = PercentageFormatter;
|
|
18570
18575
|
|
|
18571
18576
|
// src/components/formatter/DateFormatter.tsx
|
|
18572
18577
|
import * as React44 from "react";
|
|
18573
|
-
import { Fragment as
|
|
18578
|
+
import { Fragment as Fragment22, jsx as jsx91 } from "react/jsx-runtime";
|
|
18574
18579
|
var DateFormatter = ({ date, format: format2 }) => {
|
|
18575
18580
|
const { locale, timezone } = React44.useContext(IntlContext);
|
|
18576
|
-
return /* @__PURE__ */ jsx91(
|
|
18581
|
+
return /* @__PURE__ */ jsx91(Fragment22, { children: formatDate(date, locale, timezone, format2) });
|
|
18577
18582
|
};
|
|
18578
18583
|
var DateFormatter_default = DateFormatter;
|
|
18579
18584
|
|
|
18580
18585
|
// src/components/formatter/PhoneFormatter.tsx
|
|
18581
|
-
import { Fragment as
|
|
18582
|
-
var PhoneFormatter = ({ phone, format: format2 }) => /* @__PURE__ */ jsx92(
|
|
18586
|
+
import { Fragment as Fragment23, jsx as jsx92 } from "react/jsx-runtime";
|
|
18587
|
+
var PhoneFormatter = ({ phone, format: format2 }) => /* @__PURE__ */ jsx92(Fragment23, { children: formatPhone(phone, format2) });
|
|
18583
18588
|
var PhoneFormatter_default = PhoneFormatter;
|
|
18584
18589
|
|
|
18585
18590
|
// src/components/header/HeaderTitle.tsx
|
|
@@ -19411,7 +19416,7 @@ var InputHelperText = React51.forwardRef(
|
|
|
19411
19416
|
var InputHelperText_default = InputHelperText;
|
|
19412
19417
|
|
|
19413
19418
|
// src/components/input/TextField.tsx
|
|
19414
|
-
import { Fragment as
|
|
19419
|
+
import { Fragment as Fragment24, jsx as jsx101, jsxs as jsxs45 } from "react/jsx-runtime";
|
|
19415
19420
|
var commonInputStylesOptions = {
|
|
19416
19421
|
shouldForwardProp: (prop) => prop !== "variant" && prop !== "typographyVariant"
|
|
19417
19422
|
};
|
|
@@ -19673,7 +19678,7 @@ var TextField = React52.forwardRef(function TextField2({
|
|
|
19673
19678
|
]
|
|
19674
19679
|
}
|
|
19675
19680
|
);
|
|
19676
|
-
return /* @__PURE__ */ jsxs45(
|
|
19681
|
+
return /* @__PURE__ */ jsxs45(Fragment24, { children: [
|
|
19677
19682
|
label && /* @__PURE__ */ jsx101(
|
|
19678
19683
|
InputLabel_default,
|
|
19679
19684
|
{
|
|
@@ -20568,7 +20573,7 @@ var DateIntervalPickerInputs = ({
|
|
|
20568
20573
|
var DateIntervalPickerInputs_default = DateIntervalPickerInputs;
|
|
20569
20574
|
|
|
20570
20575
|
// src/components/input/date-interval-picker/DateIntervalRangeSelector.tsx
|
|
20571
|
-
import { Fragment as
|
|
20576
|
+
import { Fragment as Fragment25, jsx as jsx112, jsxs as jsxs51 } from "react/jsx-runtime";
|
|
20572
20577
|
var DateIntervalRangeSelector = ({
|
|
20573
20578
|
state,
|
|
20574
20579
|
color: color2,
|
|
@@ -20910,7 +20915,7 @@ var DateIntervalRangeSelector = ({
|
|
|
20910
20915
|
}
|
|
20911
20916
|
return newState;
|
|
20912
20917
|
};
|
|
20913
|
-
return /* @__PURE__ */ jsxs51(
|
|
20918
|
+
return /* @__PURE__ */ jsxs51(Fragment25, { children: [
|
|
20914
20919
|
/* @__PURE__ */ jsx112(
|
|
20915
20920
|
Box_default2,
|
|
20916
20921
|
{
|
|
@@ -21786,7 +21791,7 @@ var DateRangePicker_default = DateRangePicker;
|
|
|
21786
21791
|
// src/components/input/SelectPopoverItem.tsx
|
|
21787
21792
|
import { Grid as Grid2, Stack as Stack9 } from "@mui/material";
|
|
21788
21793
|
import { lighten as lighten3 } from "@mui/material";
|
|
21789
|
-
import { Fragment as
|
|
21794
|
+
import { Fragment as Fragment26, jsx as jsx119, jsxs as jsxs57 } from "react/jsx-runtime";
|
|
21790
21795
|
var bgColorLightCoefficient2 = 0.9;
|
|
21791
21796
|
var SelectPopoverItem = ({
|
|
21792
21797
|
onClick,
|
|
@@ -21832,7 +21837,7 @@ var SelectPopoverItem = ({
|
|
|
21832
21837
|
},
|
|
21833
21838
|
onClick: () => !disabled && typeof onClick === "function" && onClick(),
|
|
21834
21839
|
children: [
|
|
21835
|
-
!selectableItemComponent && /* @__PURE__ */ jsxs57(
|
|
21840
|
+
!selectableItemComponent && /* @__PURE__ */ jsxs57(Fragment26, { children: [
|
|
21836
21841
|
/* @__PURE__ */ jsxs57(
|
|
21837
21842
|
Box_default2,
|
|
21838
21843
|
{
|
|
@@ -21852,7 +21857,7 @@ var SelectPopoverItem = ({
|
|
|
21852
21857
|
cursor: disabled ? "default" : "pointer"
|
|
21853
21858
|
},
|
|
21854
21859
|
typographyVariant: "body1",
|
|
21855
|
-
text: /* @__PURE__ */ jsxs57(
|
|
21860
|
+
text: /* @__PURE__ */ jsxs57(Fragment26, { children: [
|
|
21856
21861
|
iconId && /* @__PURE__ */ jsx119(
|
|
21857
21862
|
Icon_default,
|
|
21858
21863
|
{
|
|
@@ -22513,7 +22518,7 @@ var DaysOfWeekPicker_default = DaysOfWeekPicker;
|
|
|
22513
22518
|
// src/components/input/ColorPicker.tsx
|
|
22514
22519
|
import * as React67 from "react";
|
|
22515
22520
|
import GradientColorPicker from "react-best-gradient-color-picker";
|
|
22516
|
-
import { Fragment as
|
|
22521
|
+
import { Fragment as Fragment27, jsx as jsx123, jsxs as jsxs58 } from "react/jsx-runtime";
|
|
22517
22522
|
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+))?\)$/;
|
|
22518
22523
|
var isValidColor = (color2) => colorRegex.test(color2);
|
|
22519
22524
|
var colorPickerDefaultColors = [
|
|
@@ -22652,7 +22657,7 @@ var ColorPicker = React67.forwardRef(function ColorPickerWrapper({
|
|
|
22652
22657
|
};
|
|
22653
22658
|
}
|
|
22654
22659
|
}, [anchorEl]);
|
|
22655
|
-
return /* @__PURE__ */ jsxs58(
|
|
22660
|
+
return /* @__PURE__ */ jsxs58(Fragment27, { children: [
|
|
22656
22661
|
/* @__PURE__ */ jsx123(
|
|
22657
22662
|
TextField_default,
|
|
22658
22663
|
{
|
|
@@ -23041,7 +23046,7 @@ var CategorizedPickerGroupItem = function CategorizedPickerGroupItem2({
|
|
|
23041
23046
|
var CategorizedPickerGroupItem_default = CategorizedPickerGroupItem;
|
|
23042
23047
|
|
|
23043
23048
|
// src/components/input/categorized-picker/CategorizedPickerItem.tsx
|
|
23044
|
-
import { Fragment as
|
|
23049
|
+
import { Fragment as Fragment28, jsx as jsx128, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
23045
23050
|
var CategorizedPickerItem = function CategorizedPickerItem2({
|
|
23046
23051
|
option,
|
|
23047
23052
|
selectedId,
|
|
@@ -23059,7 +23064,7 @@ var CategorizedPickerItem = function CategorizedPickerItem2({
|
|
|
23059
23064
|
behavior: "smooth"
|
|
23060
23065
|
});
|
|
23061
23066
|
};
|
|
23062
|
-
return /* @__PURE__ */ jsxs60(
|
|
23067
|
+
return /* @__PURE__ */ jsxs60(Fragment28, { children: [
|
|
23063
23068
|
option.categorizedPickerItemType === "option" && /* @__PURE__ */ jsx128(
|
|
23064
23069
|
CategorizedPickerOptionItem_default,
|
|
23065
23070
|
{
|
|
@@ -23099,18 +23104,18 @@ var CategorizedPickerItem_default = CategorizedPickerItem;
|
|
|
23099
23104
|
|
|
23100
23105
|
// src/components/input/categorized-picker/CategorizedPickerEmptyCategoryPanel.tsx
|
|
23101
23106
|
import { Stack as Stack10 } from "@mui/material";
|
|
23102
|
-
import { Fragment as
|
|
23107
|
+
import { Fragment as Fragment29, jsx as jsx129 } from "react/jsx-runtime";
|
|
23103
23108
|
var CategorizedPickerEmptyCategoryPanel = function CategorizedPickerEmptyCategoryPanel2({
|
|
23104
23109
|
selectedCategory,
|
|
23105
23110
|
isEmptyCategories
|
|
23106
23111
|
}) {
|
|
23107
23112
|
const { t } = useTranslation();
|
|
23108
|
-
return /* @__PURE__ */ jsx129(
|
|
23113
|
+
return /* @__PURE__ */ jsx129(Fragment29, { children: !selectedCategory?.emptyData ? /* @__PURE__ */ jsx129(Stack10, { padding: "12px", alignItems: "center", children: /* @__PURE__ */ jsx129(Typography_default, { variant: "body2", color: grey600, children: isEmptyCategories ? t("CATEGORIZED_PICKER.NO_RESULTS") : t("CATEGORIZED_PICKER.NO_OPTIONS") }) }) : selectedCategory.emptyData });
|
|
23109
23114
|
};
|
|
23110
23115
|
var CategorizedPickerEmptyCategoryPanel_default = CategorizedPickerEmptyCategoryPanel;
|
|
23111
23116
|
|
|
23112
23117
|
// src/components/input/categorized-picker/CategorizedPickerCategoryPanel.tsx
|
|
23113
|
-
import { Fragment as
|
|
23118
|
+
import { Fragment as Fragment30, jsx as jsx130 } from "react/jsx-runtime";
|
|
23114
23119
|
var CategorizedPickerCategoryPanel = function CategorizedPickerCategoryPanel2({
|
|
23115
23120
|
value,
|
|
23116
23121
|
selectedCategory,
|
|
@@ -23197,7 +23202,7 @@ var CategorizedPickerCategoryPanel = function CategorizedPickerCategoryPanel2({
|
|
|
23197
23202
|
result.push(...getGroups(withGroup));
|
|
23198
23203
|
return result;
|
|
23199
23204
|
};
|
|
23200
|
-
return /* @__PURE__ */ jsx130(
|
|
23205
|
+
return /* @__PURE__ */ jsx130(Fragment30, { children: !selectedCategory || !categoryOptions?.length ? /* @__PURE__ */ jsx130(
|
|
23201
23206
|
CategorizedPickerEmptyCategoryPanel_default,
|
|
23202
23207
|
{
|
|
23203
23208
|
selectedCategory,
|
|
@@ -23229,7 +23234,7 @@ function orderOptions(a, b) {
|
|
|
23229
23234
|
var CategorizedPickerCategoryPanel_default = CategorizedPickerCategoryPanel;
|
|
23230
23235
|
|
|
23231
23236
|
// src/components/input/categorized-picker/CategorizedPicker.tsx
|
|
23232
|
-
import { Fragment as
|
|
23237
|
+
import { Fragment as Fragment31, jsx as jsx131, jsxs as jsxs61 } from "react/jsx-runtime";
|
|
23233
23238
|
var ChevronIcon2 = ({ disabled }) => /* @__PURE__ */ jsx131(
|
|
23234
23239
|
Icon_default,
|
|
23235
23240
|
{
|
|
@@ -23333,7 +23338,7 @@ var CategorizedPicker = function CategorizedPicker2({
|
|
|
23333
23338
|
setSelectedCategory(filteredSelectedCategory);
|
|
23334
23339
|
}
|
|
23335
23340
|
}, [filteredCategories, selectedCategory]);
|
|
23336
|
-
return /* @__PURE__ */ jsxs61(
|
|
23341
|
+
return /* @__PURE__ */ jsxs61(Fragment31, { children: [
|
|
23337
23342
|
/* @__PURE__ */ jsx131(
|
|
23338
23343
|
Select3,
|
|
23339
23344
|
{
|
|
@@ -23874,7 +23879,7 @@ var arraysEqual = (a, b) => {
|
|
|
23874
23879
|
var SelectPopover_default = SelectPopover;
|
|
23875
23880
|
|
|
23876
23881
|
// src/components/input/ItemSelector.tsx
|
|
23877
|
-
import { Fragment as
|
|
23882
|
+
import { Fragment as Fragment32, jsx as jsx133, jsxs as jsxs63 } from "react/jsx-runtime";
|
|
23878
23883
|
var ItemSelector = function ItemSelector2({
|
|
23879
23884
|
items,
|
|
23880
23885
|
selectedItems,
|
|
@@ -23945,7 +23950,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
23945
23950
|
setAnchorEl(selectRef.current);
|
|
23946
23951
|
}
|
|
23947
23952
|
};
|
|
23948
|
-
return /* @__PURE__ */ jsxs63(
|
|
23953
|
+
return /* @__PURE__ */ jsxs63(Fragment32, { children: [
|
|
23949
23954
|
/* @__PURE__ */ jsx133(Stack_default, { onClick: onOpenSelector, children: /* @__PURE__ */ jsx133(
|
|
23950
23955
|
Select_default,
|
|
23951
23956
|
{
|
|
@@ -23962,7 +23967,7 @@ var ItemSelector = function ItemSelector2({
|
|
|
23962
23967
|
renderValue: (value) => {
|
|
23963
23968
|
let component;
|
|
23964
23969
|
if (!value || !Array.isArray(value) || value.length === 0) {
|
|
23965
|
-
component = /* @__PURE__ */ jsx133(
|
|
23970
|
+
component = /* @__PURE__ */ jsx133(Fragment32, { children: /* @__PURE__ */ jsx133(
|
|
23966
23971
|
Stack_default,
|
|
23967
23972
|
{
|
|
23968
23973
|
direction: "row",
|
|
@@ -24247,7 +24252,7 @@ var AutocompleteInputSelection = function AutocompleteInputSelection2({
|
|
|
24247
24252
|
var AutocompleteInputSelection_default = AutocompleteInputSelection;
|
|
24248
24253
|
|
|
24249
24254
|
// src/components/input/autocomplete/AutocompleteInput.tsx
|
|
24250
|
-
import { Fragment as
|
|
24255
|
+
import { Fragment as Fragment33, jsx as jsx135, jsxs as jsxs65 } from "react/jsx-runtime";
|
|
24251
24256
|
var CLEAR_BUTTON_WIDTH = 36;
|
|
24252
24257
|
var sizes6 = {
|
|
24253
24258
|
XS: {
|
|
@@ -24290,7 +24295,7 @@ var AutocompleteInput = function AutocompleteInput2({
|
|
|
24290
24295
|
const [isHover, setIsHover] = React75.useState(false);
|
|
24291
24296
|
const dirty = !!inputValue || Array.isArray(value) && value.length > 0 || !Array.isArray(value) && !!value;
|
|
24292
24297
|
const showClearButton = !disabled && dirty && !disableClear && (isOpenPopover || isHover);
|
|
24293
|
-
return /* @__PURE__ */ jsx135(
|
|
24298
|
+
return /* @__PURE__ */ jsx135(Fragment33, { children: /* @__PURE__ */ jsx135(
|
|
24294
24299
|
DebouncedTextField_default,
|
|
24295
24300
|
{
|
|
24296
24301
|
ref: inputRef,
|
|
@@ -24484,7 +24489,7 @@ function getInitialListScroll({
|
|
|
24484
24489
|
}
|
|
24485
24490
|
|
|
24486
24491
|
// src/components/input/autocomplete/AutocompleteList.tsx
|
|
24487
|
-
import { Fragment as
|
|
24492
|
+
import { Fragment as Fragment34, jsx as jsx136, jsxs as jsxs66 } from "react/jsx-runtime";
|
|
24488
24493
|
var AUTOCOMPLETE_ITEM_HEIGHT = 44;
|
|
24489
24494
|
var AutocompleteList = function AutocompleteList2({
|
|
24490
24495
|
options,
|
|
@@ -24547,7 +24552,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
24547
24552
|
option.id
|
|
24548
24553
|
);
|
|
24549
24554
|
};
|
|
24550
|
-
return /* @__PURE__ */ jsx136(
|
|
24555
|
+
return /* @__PURE__ */ jsx136(Fragment34, { children: /* @__PURE__ */ jsx136(
|
|
24551
24556
|
ClickAwayListener,
|
|
24552
24557
|
{
|
|
24553
24558
|
onClickAway: (event) => onClickAwayPopover(
|
|
@@ -24620,7 +24625,7 @@ var AutocompleteList = function AutocompleteList2({
|
|
|
24620
24625
|
var AutocompleteList_default = AutocompleteList;
|
|
24621
24626
|
|
|
24622
24627
|
// src/components/input/autocomplete/Autocomplete.tsx
|
|
24623
|
-
import { Fragment as
|
|
24628
|
+
import { Fragment as Fragment35, jsx as jsx137, jsxs as jsxs67 } from "react/jsx-runtime";
|
|
24624
24629
|
var MIN_AUTOCOMPLETE_WIDTH = "328px";
|
|
24625
24630
|
var Autocomplete = function Autocomplete2({
|
|
24626
24631
|
variant = "default",
|
|
@@ -24942,7 +24947,7 @@ var Autocomplete = function Autocomplete2({
|
|
|
24942
24947
|
setNextIndexByValue(value2);
|
|
24943
24948
|
onChange && onChange(event, value2);
|
|
24944
24949
|
};
|
|
24945
|
-
return /* @__PURE__ */ jsxs67(
|
|
24950
|
+
return /* @__PURE__ */ jsxs67(Fragment35, { children: [
|
|
24946
24951
|
/* @__PURE__ */ jsx137(
|
|
24947
24952
|
AutocompleteInput_default,
|
|
24948
24953
|
{
|
|
@@ -25084,7 +25089,7 @@ var CodeEditor_default = React78.forwardRef(CodeEditor);
|
|
|
25084
25089
|
|
|
25085
25090
|
// src/components/input/CodeEditorPopup.tsx
|
|
25086
25091
|
import format from "html-format";
|
|
25087
|
-
import { Fragment as
|
|
25092
|
+
import { Fragment as Fragment36, jsx as jsx139, jsxs as jsxs68 } from "react/jsx-runtime";
|
|
25088
25093
|
var FORMAT_CHARACTERS_LINE = 120;
|
|
25089
25094
|
var FORMAT_NUMBER_SPACES_INDENTATION = 2;
|
|
25090
25095
|
var CodeEditorPopup = ({
|
|
@@ -25127,7 +25132,7 @@ var CodeEditorPopup = ({
|
|
|
25127
25132
|
" ".repeat(FORMAT_NUMBER_SPACES_INDENTATION),
|
|
25128
25133
|
FORMAT_CHARACTERS_LINE
|
|
25129
25134
|
);
|
|
25130
|
-
return /* @__PURE__ */ jsxs68(
|
|
25135
|
+
return /* @__PURE__ */ jsxs68(Fragment36, { children: [
|
|
25131
25136
|
readonly && /* @__PURE__ */ jsx139(
|
|
25132
25137
|
Dialog_default,
|
|
25133
25138
|
{
|
|
@@ -25293,7 +25298,7 @@ var CodeEditorPopup = ({
|
|
|
25293
25298
|
var CodeEditorPopup_default = CodeEditorPopup;
|
|
25294
25299
|
|
|
25295
25300
|
// src/components/input/TextEditor.tsx
|
|
25296
|
-
import { Fragment as
|
|
25301
|
+
import { Fragment as Fragment37, jsx as jsx140, jsxs as jsxs69 } from "react/jsx-runtime";
|
|
25297
25302
|
var DEFAULT_TOOLBAR_INSERT_MENU_ITEMS = [
|
|
25298
25303
|
"link",
|
|
25299
25304
|
"image",
|
|
@@ -25579,7 +25584,7 @@ var TextEditor = function TextEditor2({
|
|
|
25579
25584
|
};
|
|
25580
25585
|
}
|
|
25581
25586
|
};
|
|
25582
|
-
return /* @__PURE__ */ jsxs69(
|
|
25587
|
+
return /* @__PURE__ */ jsxs69(Fragment37, { children: [
|
|
25583
25588
|
/* @__PURE__ */ jsx140(
|
|
25584
25589
|
Editor,
|
|
25585
25590
|
{
|
|
@@ -25636,7 +25641,7 @@ var TextEditor_default = TextEditor;
|
|
|
25636
25641
|
|
|
25637
25642
|
// src/components/input/PhoneField.tsx
|
|
25638
25643
|
import * as React81 from "react";
|
|
25639
|
-
import { Fragment as
|
|
25644
|
+
import { Fragment as Fragment38, jsx as jsx141, jsxs as jsxs70 } from "react/jsx-runtime";
|
|
25640
25645
|
var maxPhoneLengthWithPrefix = 16;
|
|
25641
25646
|
var PhoneField = React81.forwardRef(function PhoneField2({
|
|
25642
25647
|
value,
|
|
@@ -25722,7 +25727,7 @@ var PhoneField = React81.forwardRef(function PhoneField2({
|
|
|
25722
25727
|
groupElements: true,
|
|
25723
25728
|
...rest,
|
|
25724
25729
|
className: `Cn-PhoneField ${className}`,
|
|
25725
|
-
startAdornment: /* @__PURE__ */ jsxs70(
|
|
25730
|
+
startAdornment: /* @__PURE__ */ jsxs70(Fragment38, { children: [
|
|
25726
25731
|
rest.startAdornment,
|
|
25727
25732
|
select
|
|
25728
25733
|
] }),
|
|
@@ -26157,7 +26162,7 @@ var DatePickerPopover = ({
|
|
|
26157
26162
|
var DatePickerPopover_default = DatePickerPopover;
|
|
26158
26163
|
|
|
26159
26164
|
// src/components/input/DatePicker.tsx
|
|
26160
|
-
import { Fragment as
|
|
26165
|
+
import { Fragment as Fragment39, jsx as jsx145, jsxs as jsxs73 } from "react/jsx-runtime";
|
|
26161
26166
|
var DatePicker = React84.forwardRef(
|
|
26162
26167
|
function DatePicker2({ value, onChange, onBlur, onKeyDown, minDate, maxDate, ...rest }, ref) {
|
|
26163
26168
|
const { locale, timezone } = React84.useContext(IntlContext);
|
|
@@ -26233,7 +26238,7 @@ var DatePicker = React84.forwardRef(
|
|
|
26233
26238
|
const text = value && !isNaN(value.getTime()) ? tz12(value, timezone).format(dateInputFormat) : "";
|
|
26234
26239
|
setTextValue(text);
|
|
26235
26240
|
}, [dateInputFormat, timezone, value]);
|
|
26236
|
-
return /* @__PURE__ */ jsxs73(
|
|
26241
|
+
return /* @__PURE__ */ jsxs73(Fragment39, { children: [
|
|
26237
26242
|
/* @__PURE__ */ jsx145(
|
|
26238
26243
|
TextField_default,
|
|
26239
26244
|
{
|
|
@@ -26276,7 +26281,7 @@ var DatePicker_default = DatePicker;
|
|
|
26276
26281
|
// src/components/input/Checkbox.tsx
|
|
26277
26282
|
import MuiCheckbox from "@mui/material/Checkbox";
|
|
26278
26283
|
import { FormControlLabel, FormGroup } from "@mui/material";
|
|
26279
|
-
import { Fragment as
|
|
26284
|
+
import { Fragment as Fragment40, jsx as jsx146, jsxs as jsxs74 } from "react/jsx-runtime";
|
|
26280
26285
|
var MaterialCheckbox = ({
|
|
26281
26286
|
checked,
|
|
26282
26287
|
disabled,
|
|
@@ -26309,7 +26314,7 @@ var Checkbox = ({
|
|
|
26309
26314
|
inputClass,
|
|
26310
26315
|
onChange,
|
|
26311
26316
|
tabIndex
|
|
26312
|
-
}) => /* @__PURE__ */ jsxs74(
|
|
26317
|
+
}) => /* @__PURE__ */ jsxs74(Fragment40, { children: [
|
|
26313
26318
|
!label && /* @__PURE__ */ jsx146(
|
|
26314
26319
|
MaterialCheckbox,
|
|
26315
26320
|
{
|
|
@@ -26351,7 +26356,7 @@ var Checkbox_default = Checkbox;
|
|
|
26351
26356
|
import * as React85 from "react";
|
|
26352
26357
|
import MuiRadio from "@mui/material/Radio";
|
|
26353
26358
|
import { FormControlLabel as FormControlLabel2 } from "@mui/material";
|
|
26354
|
-
import { Fragment as
|
|
26359
|
+
import { Fragment as Fragment41, jsx as jsx147, jsxs as jsxs75 } from "react/jsx-runtime";
|
|
26355
26360
|
var Radio = React85.forwardRef(function Radio2({
|
|
26356
26361
|
label,
|
|
26357
26362
|
labelPlacement = "end",
|
|
@@ -26388,7 +26393,7 @@ var Radio = React85.forwardRef(function Radio2({
|
|
|
26388
26393
|
size: size === "S" ? "small" : "medium"
|
|
26389
26394
|
}
|
|
26390
26395
|
);
|
|
26391
|
-
return /* @__PURE__ */ jsxs75(
|
|
26396
|
+
return /* @__PURE__ */ jsxs75(Fragment41, { children: [
|
|
26392
26397
|
!label && radio,
|
|
26393
26398
|
label && /* @__PURE__ */ jsx147(
|
|
26394
26399
|
FormControlLabel2,
|
|
@@ -26415,18 +26420,24 @@ var PageSelector = ({
|
|
|
26415
26420
|
totalItems,
|
|
26416
26421
|
text,
|
|
26417
26422
|
hideText = false,
|
|
26423
|
+
maxNavigablePage,
|
|
26418
26424
|
onPageChange
|
|
26419
26425
|
}) => {
|
|
26420
26426
|
const { t } = useTranslation();
|
|
26421
26427
|
const totalPages = Math.ceil(totalItems / pageSize);
|
|
26428
|
+
const effectiveMaxPage = Math.min(
|
|
26429
|
+
maxNavigablePage ?? totalPages,
|
|
26430
|
+
totalPages
|
|
26431
|
+
);
|
|
26422
26432
|
const handlePrevious = React86.useCallback(() => {
|
|
26423
26433
|
if (currentPage > 1) {
|
|
26424
26434
|
onPageChange(Math.max(1, currentPage - 1));
|
|
26425
26435
|
}
|
|
26426
26436
|
}, [currentPage, onPageChange]);
|
|
26437
|
+
const isNextDisabled = currentPage >= effectiveMaxPage;
|
|
26427
26438
|
const handleNext = React86.useCallback(() => {
|
|
26428
|
-
onPageChange(Math.min(
|
|
26429
|
-
}, [currentPage,
|
|
26439
|
+
onPageChange(Math.min(effectiveMaxPage, currentPage + 1));
|
|
26440
|
+
}, [currentPage, effectiveMaxPage, onPageChange]);
|
|
26430
26441
|
const displayText = hideText ? "" : text || t(
|
|
26431
26442
|
"PAGE_SELECTOR.SHOWING_ITEMS",
|
|
26432
26443
|
totalItems === 0 ? { from: 0, to: 0, total: 0 } : {
|
|
@@ -26470,7 +26481,7 @@ var PageSelector = ({
|
|
|
26470
26481
|
onPageChange(value || 1);
|
|
26471
26482
|
},
|
|
26472
26483
|
minValue: 1,
|
|
26473
|
-
maxValue:
|
|
26484
|
+
maxValue: effectiveMaxPage,
|
|
26474
26485
|
"data-testid": "page-selector-input",
|
|
26475
26486
|
sx: {
|
|
26476
26487
|
width: "32px",
|
|
@@ -26484,12 +26495,19 @@ var PageSelector = ({
|
|
|
26484
26495
|
}
|
|
26485
26496
|
),
|
|
26486
26497
|
/* @__PURE__ */ jsx148(
|
|
26487
|
-
|
|
26498
|
+
Tooltip_default,
|
|
26488
26499
|
{
|
|
26489
|
-
|
|
26490
|
-
|
|
26491
|
-
|
|
26492
|
-
|
|
26500
|
+
title: isNextDisabled ? t("PAGE_SELECTOR.LAST_PAGE_REACHED") : "",
|
|
26501
|
+
allowDisabled: true,
|
|
26502
|
+
children: /* @__PURE__ */ jsx148(
|
|
26503
|
+
IconButton_default,
|
|
26504
|
+
{
|
|
26505
|
+
iconId: "chevron-right",
|
|
26506
|
+
onClick: handleNext,
|
|
26507
|
+
disabled: isNextDisabled,
|
|
26508
|
+
"data-test": "page-selector-next"
|
|
26509
|
+
}
|
|
26510
|
+
)
|
|
26493
26511
|
}
|
|
26494
26512
|
)
|
|
26495
26513
|
] })
|
|
@@ -27054,7 +27072,7 @@ var MarkdownRenderer_default = MarkdownRenderer;
|
|
|
27054
27072
|
|
|
27055
27073
|
// src/components/navbar/Navbar.tsx
|
|
27056
27074
|
import { Drawer as Drawer2 } from "@mui/material";
|
|
27057
|
-
import { Fragment as
|
|
27075
|
+
import { Fragment as Fragment42, jsx as jsx155, jsxs as jsxs80 } from "react/jsx-runtime";
|
|
27058
27076
|
var Navbar = ({
|
|
27059
27077
|
topContent,
|
|
27060
27078
|
bottomContent,
|
|
@@ -27062,7 +27080,7 @@ var Navbar = ({
|
|
|
27062
27080
|
drawerBottomContent,
|
|
27063
27081
|
onClose,
|
|
27064
27082
|
isDrawerOpen = false
|
|
27065
|
-
}) => /* @__PURE__ */ jsxs80(
|
|
27083
|
+
}) => /* @__PURE__ */ jsxs80(Fragment42, { children: [
|
|
27066
27084
|
/* @__PURE__ */ jsxs80(
|
|
27067
27085
|
Box_default2,
|
|
27068
27086
|
{
|
|
@@ -27286,7 +27304,7 @@ var NavbarLogo_default = NavbarLogo;
|
|
|
27286
27304
|
|
|
27287
27305
|
// src/components/overlay/DonutFocusOverlay.tsx
|
|
27288
27306
|
import * as React91 from "react";
|
|
27289
|
-
import { Fragment as
|
|
27307
|
+
import { Fragment as Fragment43, jsx as jsx159, jsxs as jsxs82 } from "react/jsx-runtime";
|
|
27290
27308
|
var DonutFocusOverlay = ({
|
|
27291
27309
|
isVisible,
|
|
27292
27310
|
elementRef,
|
|
@@ -27327,7 +27345,7 @@ var DonutFocusOverlay = ({
|
|
|
27327
27345
|
const internalTopHalfCircle = `${internalCircleRadius} ${internalCircleRadius} 0 0 1 ${startPointX + donutWidth + internalCircleRadius * 2} ${startPointY}`;
|
|
27328
27346
|
const externalTopHalfCircle = `${externalCircleRadius} ${externalCircleRadius} 0 0 0 ${startPointX} ${startPointY}`;
|
|
27329
27347
|
const path = `path("M ${startPointX} ${startPointY} A ${externalBottomHalfCircle} m ${-donutWidth} 0 A ${internalBottomHalfCircle} A ${internalTopHalfCircle} m ${donutWidth} 0 A ${externalTopHalfCircle} Z")`;
|
|
27330
|
-
return /* @__PURE__ */ jsxs82(
|
|
27348
|
+
return /* @__PURE__ */ jsxs82(Fragment43, { children: [
|
|
27331
27349
|
/* @__PURE__ */ jsx159(
|
|
27332
27350
|
Box_default2,
|
|
27333
27351
|
{
|
|
@@ -27372,7 +27390,7 @@ var DonutFocusOverlay = ({
|
|
|
27372
27390
|
var DonutFocusOverlay_default = DonutFocusOverlay;
|
|
27373
27391
|
|
|
27374
27392
|
// src/components/pager/Pager.tsx
|
|
27375
|
-
import { Fragment as
|
|
27393
|
+
import { Fragment as Fragment44, jsx as jsx160, jsxs as jsxs83 } from "react/jsx-runtime";
|
|
27376
27394
|
var Pager = ({
|
|
27377
27395
|
page,
|
|
27378
27396
|
pageSize,
|
|
@@ -27398,7 +27416,7 @@ var Pager = ({
|
|
|
27398
27416
|
sx: { minWidth: 78 }
|
|
27399
27417
|
}
|
|
27400
27418
|
),
|
|
27401
|
-
allowedPageSizes && /* @__PURE__ */ jsxs83(
|
|
27419
|
+
allowedPageSizes && /* @__PURE__ */ jsxs83(Fragment44, { children: [
|
|
27402
27420
|
/* @__PURE__ */ jsx160(Label, { children: t("PAGER.ROWS_PER_PAGE") }),
|
|
27403
27421
|
/* @__PURE__ */ jsx160(
|
|
27404
27422
|
Select_default,
|
|
@@ -29042,7 +29060,7 @@ var WidgetTitle_default = WidgetTitle;
|
|
|
29042
29060
|
|
|
29043
29061
|
// src/components/window/MinimizableWindow.tsx
|
|
29044
29062
|
import * as React100 from "react";
|
|
29045
|
-
import { Fragment as
|
|
29063
|
+
import { Fragment as Fragment45, jsx as jsx187, jsxs as jsxs91 } from "react/jsx-runtime";
|
|
29046
29064
|
var sizes7 = {
|
|
29047
29065
|
M: 400,
|
|
29048
29066
|
L: 500,
|
|
@@ -29141,7 +29159,7 @@ var MinimizableWindow = React100.forwardRef(function MinimizableWindow2({
|
|
|
29141
29159
|
overlayRef.current.style.opacity = "0";
|
|
29142
29160
|
}
|
|
29143
29161
|
};
|
|
29144
|
-
return /* @__PURE__ */ jsxs91(
|
|
29162
|
+
return /* @__PURE__ */ jsxs91(Fragment45, { children: [
|
|
29145
29163
|
isDraggingState && /* @__PURE__ */ jsx187(
|
|
29146
29164
|
Box_default2,
|
|
29147
29165
|
{
|