@connectif/ui-components 6.0.6 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +16 -0
- package/dist/components/input/date-interval-picker/DateIntervalPicker.d.ts +6 -2
- package/dist/components/input/date-interval-picker/DateIntervalRangeSelector.d.ts +3 -1
- package/dist/components/window/MinimizableWindow.d.ts +6 -22
- package/dist/i18n/en.d.ts +0 -1
- package/dist/i18n/es.d.ts +0 -1
- package/dist/i18n/fr.d.ts +0 -1
- package/dist/i18n/it.d.ts +0 -1
- package/dist/i18n/pt.d.ts +0 -1
- package/dist/index.js +66 -77
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [7.0.0] - 2026-04-10
|
|
4
|
+
|
|
5
|
+
### Deprecated
|
|
6
|
+
|
|
7
|
+
- Deprecated `minimizeIconId` and `onMinimize` props in the `MinimizableWindow` component.
|
|
8
|
+
|
|
9
|
+
## [6.0.7] - 2026-04-09
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fixed crash when rendering a chip with a tooltip.
|
|
14
|
+
|
|
15
|
+
### Changed
|
|
16
|
+
|
|
17
|
+
- `DateIntervalPicker` with input variant now supports selecting future dates.
|
|
18
|
+
|
|
3
19
|
## [6.0.6] - 2026-04-08
|
|
4
20
|
|
|
5
21
|
### Fixed
|
|
@@ -95,12 +95,16 @@ export type DateIntervalPickerProps = (DateIntervalPickerDefault | DateIntervalP
|
|
|
95
95
|
disabled?: boolean;
|
|
96
96
|
/**
|
|
97
97
|
* The minimum date allowed to be selected in the date interval.
|
|
98
|
-
* By default
|
|
98
|
+
* By default:
|
|
99
|
+
* Input variant: it will allow selecting dates from 1900-01-01 in input.
|
|
100
|
+
* Other variant: it will be the maxDate minus the maxSelectableDays
|
|
99
101
|
*/
|
|
100
102
|
minDate?: Date;
|
|
101
103
|
/**
|
|
102
104
|
* The maximum date allowed to be selected in the date interval.
|
|
103
|
-
* By default
|
|
105
|
+
* By default:
|
|
106
|
+
* Input variant: it will be the current date, or 2100-12-31 when maxDate is not provided.
|
|
107
|
+
* Other variant: it will be the current date
|
|
104
108
|
*/
|
|
105
109
|
maxDate?: Date;
|
|
106
110
|
};
|
|
@@ -4,10 +4,12 @@ export type DateIntervalRangeSelectorProps = {
|
|
|
4
4
|
color: string;
|
|
5
5
|
minDate: Date;
|
|
6
6
|
maxDate: Date;
|
|
7
|
+
maxSelectableDays: number;
|
|
8
|
+
handleSelectionLimits?: boolean;
|
|
7
9
|
comparisonColor: string;
|
|
8
10
|
intersectionColor: string;
|
|
9
11
|
showTime: boolean;
|
|
10
12
|
onChange: (state: DateIntervalPickerState) => void;
|
|
11
13
|
};
|
|
12
|
-
declare const DateIntervalRangeSelector: ({ state, color, minDate, maxDate, comparisonColor, intersectionColor, showTime, onChange }: DateIntervalRangeSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
declare const DateIntervalRangeSelector: ({ state, color, minDate, maxDate, maxSelectableDays, handleSelectionLimits, comparisonColor, intersectionColor, showTime, onChange }: DateIntervalRangeSelectorProps) => import("react/jsx-runtime").JSX.Element;
|
|
13
15
|
export default DateIntervalRangeSelector;
|
|
@@ -27,7 +27,7 @@ export type MinimizableWindowProps = React.PropsWithChildren<{
|
|
|
27
27
|
*/
|
|
28
28
|
backButton?: React.ReactNode;
|
|
29
29
|
/**
|
|
30
|
-
* Coords to the element to
|
|
30
|
+
* Coords to the element to close window
|
|
31
31
|
*/
|
|
32
32
|
targetElement: {
|
|
33
33
|
x: number;
|
|
@@ -41,10 +41,6 @@ export type MinimizableWindowProps = React.PropsWithChildren<{
|
|
|
41
41
|
* To change icon sizes. Default S
|
|
42
42
|
*/
|
|
43
43
|
iconSizes?: IconButtonProps['size'];
|
|
44
|
-
/**
|
|
45
|
-
* The icon ID for the minimize button.
|
|
46
|
-
*/
|
|
47
|
-
minimizeIconId?: IconButtonProps['iconId'];
|
|
48
44
|
/**
|
|
49
45
|
* The icon ID for the close button.
|
|
50
46
|
*/
|
|
@@ -54,13 +50,9 @@ export type MinimizableWindowProps = React.PropsWithChildren<{
|
|
|
54
50
|
*/
|
|
55
51
|
backIconId?: IconButtonProps['iconId'];
|
|
56
52
|
/**
|
|
57
|
-
* Custom actions to display on the right side of the header, next to the
|
|
53
|
+
* Custom actions to display on the right side of the header, next to the close button.
|
|
58
54
|
*/
|
|
59
55
|
rightActions?: React.ReactNode;
|
|
60
|
-
/**
|
|
61
|
-
* Callback fired when the component requests to be minimized.
|
|
62
|
-
*/
|
|
63
|
-
onMinimize: () => void;
|
|
64
56
|
/**
|
|
65
57
|
* Callback fired when the component requests to be closed.
|
|
66
58
|
*/
|
|
@@ -71,8 +63,8 @@ export type MinimizableWindowProps = React.PropsWithChildren<{
|
|
|
71
63
|
onBack?: () => void;
|
|
72
64
|
} & Pick<StackProps, 'sx'>>;
|
|
73
65
|
/**
|
|
74
|
-
* A component that displays a window with a title
|
|
75
|
-
* The window
|
|
66
|
+
* A component that displays a window with a title and a close button.
|
|
67
|
+
* The window closes by shrinking towards a target element.
|
|
76
68
|
* The window can have a back button.
|
|
77
69
|
* The ref object exposes the window and header elements.
|
|
78
70
|
*/
|
|
@@ -97,7 +89,7 @@ declare const MinimizableWindow: React.ForwardRefExoticComponent<{
|
|
|
97
89
|
*/
|
|
98
90
|
backButton?: React.ReactNode;
|
|
99
91
|
/**
|
|
100
|
-
* Coords to the element to
|
|
92
|
+
* Coords to the element to close window
|
|
101
93
|
*/
|
|
102
94
|
targetElement: {
|
|
103
95
|
x: number;
|
|
@@ -111,10 +103,6 @@ declare const MinimizableWindow: React.ForwardRefExoticComponent<{
|
|
|
111
103
|
* To change icon sizes. Default S
|
|
112
104
|
*/
|
|
113
105
|
iconSizes?: IconButtonProps["size"];
|
|
114
|
-
/**
|
|
115
|
-
* The icon ID for the minimize button.
|
|
116
|
-
*/
|
|
117
|
-
minimizeIconId?: IconButtonProps["iconId"];
|
|
118
106
|
/**
|
|
119
107
|
* The icon ID for the close button.
|
|
120
108
|
*/
|
|
@@ -124,13 +112,9 @@ declare const MinimizableWindow: React.ForwardRefExoticComponent<{
|
|
|
124
112
|
*/
|
|
125
113
|
backIconId?: IconButtonProps["iconId"];
|
|
126
114
|
/**
|
|
127
|
-
* Custom actions to display on the right side of the header, next to the
|
|
115
|
+
* Custom actions to display on the right side of the header, next to the close button.
|
|
128
116
|
*/
|
|
129
117
|
rightActions?: React.ReactNode;
|
|
130
|
-
/**
|
|
131
|
-
* Callback fired when the component requests to be minimized.
|
|
132
|
-
*/
|
|
133
|
-
onMinimize: () => void;
|
|
134
118
|
/**
|
|
135
119
|
* Callback fired when the component requests to be closed.
|
|
136
120
|
*/
|
package/dist/i18n/en.d.ts
CHANGED
package/dist/i18n/es.d.ts
CHANGED
package/dist/i18n/fr.d.ts
CHANGED
package/dist/i18n/it.d.ts
CHANGED
package/dist/i18n/pt.d.ts
CHANGED
package/dist/index.js
CHANGED
|
@@ -11126,17 +11126,20 @@ var Chip = React28.forwardRef(function Chip2({
|
|
|
11126
11126
|
};
|
|
11127
11127
|
const iconSizeCurrent = iconSize ?? iconSizes3[size];
|
|
11128
11128
|
const variantStyles3 = getVariantStyles(theme2, variant);
|
|
11129
|
-
const getIcon = (iconId2) =>
|
|
11130
|
-
|
|
11131
|
-
|
|
11132
|
-
|
|
11133
|
-
|
|
11134
|
-
|
|
11135
|
-
|
|
11136
|
-
|
|
11129
|
+
const getIcon = (iconId2) => {
|
|
11130
|
+
const icon = /* @__PURE__ */ jsx55(
|
|
11131
|
+
Icon_default,
|
|
11132
|
+
{
|
|
11133
|
+
id: iconId2,
|
|
11134
|
+
size: iconSizeCurrent,
|
|
11135
|
+
sx: {
|
|
11136
|
+
color: iconColor ?? variantStyles3.iconColor,
|
|
11137
|
+
cursor: !onClick ? "default" : void 0
|
|
11138
|
+
}
|
|
11137
11139
|
}
|
|
11138
|
-
|
|
11139
|
-
|
|
11140
|
+
);
|
|
11141
|
+
return iconTooltip ? /* @__PURE__ */ jsx55(Tooltip_default, { title: iconTooltip, children: icon }) : icon;
|
|
11142
|
+
};
|
|
11140
11143
|
const deleteIcon = /* @__PURE__ */ jsxs21(Stack_default, { direction: "row", alignItems: "center", children: [
|
|
11141
11144
|
iconId && iconRight && getIcon(iconId),
|
|
11142
11145
|
isDeleteable && onDelete && /* @__PURE__ */ jsx55(
|
|
@@ -15100,8 +15103,7 @@ __export(en_exports6, {
|
|
|
15100
15103
|
});
|
|
15101
15104
|
var MINIMIZABLE_WINDOW = {
|
|
15102
15105
|
CLOSE: "Close",
|
|
15103
|
-
GO_BACK: "Go back"
|
|
15104
|
-
MINIMIZE: "Minimize"
|
|
15106
|
+
GO_BACK: "Go back"
|
|
15105
15107
|
};
|
|
15106
15108
|
var en_default6 = {
|
|
15107
15109
|
MINIMIZABLE_WINDOW
|
|
@@ -15387,8 +15389,7 @@ __export(es_exports6, {
|
|
|
15387
15389
|
});
|
|
15388
15390
|
var MINIMIZABLE_WINDOW2 = {
|
|
15389
15391
|
CLOSE: "Cerrar",
|
|
15390
|
-
GO_BACK: "Ir atr\xE1s"
|
|
15391
|
-
MINIMIZE: "Minimizar"
|
|
15392
|
+
GO_BACK: "Ir atr\xE1s"
|
|
15392
15393
|
};
|
|
15393
15394
|
var es_default6 = {
|
|
15394
15395
|
MINIMIZABLE_WINDOW: MINIMIZABLE_WINDOW2
|
|
@@ -15674,8 +15675,7 @@ __export(fr_exports6, {
|
|
|
15674
15675
|
});
|
|
15675
15676
|
var MINIMIZABLE_WINDOW3 = {
|
|
15676
15677
|
CLOSE: "Fermer",
|
|
15677
|
-
GO_BACK: "Retourner en arri\xE8re"
|
|
15678
|
-
MINIMIZE: "R\xE9duire"
|
|
15678
|
+
GO_BACK: "Retourner en arri\xE8re"
|
|
15679
15679
|
};
|
|
15680
15680
|
var fr_default6 = {
|
|
15681
15681
|
MINIMIZABLE_WINDOW: MINIMIZABLE_WINDOW3
|
|
@@ -15961,8 +15961,7 @@ __export(it_exports6, {
|
|
|
15961
15961
|
});
|
|
15962
15962
|
var MINIMIZABLE_WINDOW4 = {
|
|
15963
15963
|
CLOSE: "Chiudere",
|
|
15964
|
-
GO_BACK: "Torna indietro"
|
|
15965
|
-
MINIMIZE: "Ridurre al minimo"
|
|
15964
|
+
GO_BACK: "Torna indietro"
|
|
15966
15965
|
};
|
|
15967
15966
|
var it_default6 = {
|
|
15968
15967
|
MINIMIZABLE_WINDOW: MINIMIZABLE_WINDOW4
|
|
@@ -16248,8 +16247,7 @@ __export(pt_exports6, {
|
|
|
16248
16247
|
});
|
|
16249
16248
|
var MINIMIZABLE_WINDOW5 = {
|
|
16250
16249
|
CLOSE: "Fechar",
|
|
16251
|
-
GO_BACK: "Voltar atr\xE1s"
|
|
16252
|
-
MINIMIZE: "Minimizar"
|
|
16250
|
+
GO_BACK: "Voltar atr\xE1s"
|
|
16253
16251
|
};
|
|
16254
16252
|
var pt_default6 = {
|
|
16255
16253
|
MINIMIZABLE_WINDOW: MINIMIZABLE_WINDOW5
|
|
@@ -20481,6 +20479,8 @@ var DateIntervalRangeSelector = ({
|
|
|
20481
20479
|
color: color2,
|
|
20482
20480
|
minDate,
|
|
20483
20481
|
maxDate,
|
|
20482
|
+
maxSelectableDays,
|
|
20483
|
+
handleSelectionLimits = false,
|
|
20484
20484
|
comparisonColor,
|
|
20485
20485
|
intersectionColor,
|
|
20486
20486
|
showTime,
|
|
@@ -20490,8 +20490,14 @@ var DateIntervalRangeSelector = ({
|
|
|
20490
20490
|
const dateInputFormat = getDateInputFormatForLocale(locale);
|
|
20491
20491
|
const { t } = useTranslation();
|
|
20492
20492
|
const dateInputFormatPlaceholder = dateInputFormat.replace(/Y/g, t("DATE_COMPONENTS.YEAR_LETTER")).replace(/M/g, t("DATE_COMPONENTS.MONTH_LETTER")).replace(/D/g, t("DATE_COMPONENTS.DAY_LETTER"));
|
|
20493
|
-
const minDateTz = tz4(minDate, timezone);
|
|
20494
|
-
const maxDateTz = tz4(maxDate, timezone);
|
|
20493
|
+
const [minDateTz, setMinDateTz] = React58.useState(tz4(minDate, timezone));
|
|
20494
|
+
const [maxDateTz, setMaxDateTz] = React58.useState(tz4(maxDate, timezone));
|
|
20495
|
+
React58.useEffect(() => {
|
|
20496
|
+
setMinDateTz(tz4(minDate, timezone));
|
|
20497
|
+
}, [minDate, timezone]);
|
|
20498
|
+
React58.useEffect(() => {
|
|
20499
|
+
setMaxDateTz(tz4(maxDate, timezone));
|
|
20500
|
+
}, [maxDate, timezone]);
|
|
20495
20501
|
const formatSimpleDate = (date) => tz4(
|
|
20496
20502
|
{ year: date.year, month: date.month, date: date.day },
|
|
20497
20503
|
timezone
|
|
@@ -20701,7 +20707,25 @@ var DateIntervalRangeSelector = ({
|
|
|
20701
20707
|
const date = getSimpleDateFromString(value);
|
|
20702
20708
|
onChange(setDateOnFocusableInput(date, focusableInput));
|
|
20703
20709
|
};
|
|
20710
|
+
const setLimitDates = (date) => {
|
|
20711
|
+
if (!date || !maxSelectableDays) {
|
|
20712
|
+
setMinDateTz(tz4(minDate, timezone));
|
|
20713
|
+
setMaxDateTz(tz4(maxDate, timezone));
|
|
20714
|
+
return;
|
|
20715
|
+
}
|
|
20716
|
+
const baseDate = tz4(
|
|
20717
|
+
{ year: date.year, month: date.month, date: date.day },
|
|
20718
|
+
timezone
|
|
20719
|
+
);
|
|
20720
|
+
setMinDateTz(baseDate);
|
|
20721
|
+
setMaxDateTz(tz4(baseDate, timezone).add(maxSelectableDays - 1, "days"));
|
|
20722
|
+
};
|
|
20704
20723
|
const handleSelectDate = (date) => {
|
|
20724
|
+
if (handleSelectionLimits) {
|
|
20725
|
+
setLimitDates(
|
|
20726
|
+
state.highlightedInput === "startDate" ? date : void 0
|
|
20727
|
+
);
|
|
20728
|
+
}
|
|
20705
20729
|
const newState = setDateOnFocusableInput(date, state.highlightedInput);
|
|
20706
20730
|
moveFocusToFollowingInput(newState);
|
|
20707
20731
|
};
|
|
@@ -20859,7 +20883,7 @@ var DateIntervalRangeSelector = ({
|
|
|
20859
20883
|
] : []
|
|
20860
20884
|
],
|
|
20861
20885
|
intersectionColor,
|
|
20862
|
-
focusedDate: state.focusedDateInCalendar,
|
|
20886
|
+
focusedDate: state.focusedDateInCalendar ?? dateToSimpleDate(tz4(timezone).toDate(), timezone),
|
|
20863
20887
|
onSelect: handleSelectDate
|
|
20864
20888
|
}
|
|
20865
20889
|
)
|
|
@@ -21160,6 +21184,8 @@ var DateIntervalPickerPopover = ({
|
|
|
21160
21184
|
intersectionColor,
|
|
21161
21185
|
maxDate,
|
|
21162
21186
|
minDate,
|
|
21187
|
+
maxSelectableDays,
|
|
21188
|
+
handleSelectionLimits: variant === "input",
|
|
21163
21189
|
showTime: !!showTime,
|
|
21164
21190
|
onChange: setState
|
|
21165
21191
|
}
|
|
@@ -21395,6 +21421,8 @@ var DateIntervalPickerInputButton_default = DateIntervalPickerInputButton;
|
|
|
21395
21421
|
|
|
21396
21422
|
// src/components/input/date-interval-picker/DateIntervalPicker.tsx
|
|
21397
21423
|
import { jsx as jsx116, jsxs as jsxs54 } from "react/jsx-runtime";
|
|
21424
|
+
var DEFAULT_MIN_DATE = { year: 1900, month: 0, date: 1 };
|
|
21425
|
+
var DEFAULT_MAX_DATE = { year: 2100, month: 11, date: 31 };
|
|
21398
21426
|
var DateIntervalPicker = ({
|
|
21399
21427
|
color: color2,
|
|
21400
21428
|
maxSelectableDays,
|
|
@@ -21425,8 +21453,8 @@ var DateIntervalPicker = ({
|
|
|
21425
21453
|
}
|
|
21426
21454
|
setAnchorEl(null);
|
|
21427
21455
|
};
|
|
21428
|
-
const internalMaxDate = maxDate ?? tz7(timezone).toDate();
|
|
21429
|
-
const internalMinDate = minDate ?? tz7(internalMaxDate, timezone).subtract(maxSelectableDays - 1, "days").toDate();
|
|
21456
|
+
const internalMaxDate = maxDate ?? (rest.variant !== "input" ? tz7(timezone).toDate() : tz7(DEFAULT_MAX_DATE, timezone).toDate());
|
|
21457
|
+
const internalMinDate = minDate ?? (rest.variant !== "input" ? tz7(internalMaxDate, timezone).subtract(maxSelectableDays - 1, "days").toDate() : tz7(DEFAULT_MIN_DATE, timezone).toDate());
|
|
21430
21458
|
const displayEndDate = rest.endDate !== void 0 ? rest.variant !== "input" ? getDisplayEndDate(rest.endDate, timezone, !!rest.showTime) : rest.endDate : void 0;
|
|
21431
21459
|
const isEndDateVisible = displayEndDate !== void 0 && !isSameDate(rest.startDate, displayEndDate);
|
|
21432
21460
|
return /* @__PURE__ */ jsxs54("div", { style: { display: "inline-flex" }, children: [
|
|
@@ -23175,7 +23203,7 @@ import * as React71 from "react";
|
|
|
23175
23203
|
// src/components/input/SelectPopover.tsx
|
|
23176
23204
|
import * as React70 from "react";
|
|
23177
23205
|
import { Grid as Grid4, Stack as Stack12 } from "@mui/material";
|
|
23178
|
-
import { useState as
|
|
23206
|
+
import { useState as useState28 } from "react";
|
|
23179
23207
|
import InfiniteScroll from "react-infinite-scroll-component";
|
|
23180
23208
|
import { jsx as jsx130, jsxs as jsxs60 } from "react/jsx-runtime";
|
|
23181
23209
|
var defaultItemsColorStyles = {
|
|
@@ -23213,9 +23241,9 @@ var SelectPopover = function SelectPopover2({
|
|
|
23213
23241
|
itemsTitle
|
|
23214
23242
|
}) {
|
|
23215
23243
|
const { t } = useTranslation();
|
|
23216
|
-
const [searchText, setSearchText] =
|
|
23217
|
-
const [isScrollBottom, setIsScrollBottom] =
|
|
23218
|
-
const [currentItems, setCurrentItems] =
|
|
23244
|
+
const [searchText, setSearchText] = useState28("");
|
|
23245
|
+
const [isScrollBottom, setIsScrollBottom] = useState28(false);
|
|
23246
|
+
const [currentItems, setCurrentItems] = useState28([]);
|
|
23219
23247
|
const [currentSelectedItems, setCurrentSelectedItems] = React70.useState([]);
|
|
23220
23248
|
const prevSelectedItemsIdsRef = React70.useRef([]);
|
|
23221
23249
|
const onSearchTextChanged = (text) => {
|
|
@@ -27746,7 +27774,7 @@ import MuiTabs from "@mui/material/Tabs";
|
|
|
27746
27774
|
|
|
27747
27775
|
// src/components/layout/SwipeableViews.tsx
|
|
27748
27776
|
import * as React93 from "react";
|
|
27749
|
-
import { useEffect as
|
|
27777
|
+
import { useEffect as useEffect27, useRef as useRef32, useState as useState39 } from "react";
|
|
27750
27778
|
import { jsx as jsx165 } from "react/jsx-runtime";
|
|
27751
27779
|
var styles = {
|
|
27752
27780
|
container: {
|
|
@@ -27783,9 +27811,9 @@ function SwipeableViews({
|
|
|
27783
27811
|
const containerRef = useRef32(null);
|
|
27784
27812
|
const scrollTimeout = useRef32(null);
|
|
27785
27813
|
const scrollingMethod = useRef32("none");
|
|
27786
|
-
const [previousIndex, setPreviousIndex] =
|
|
27814
|
+
const [previousIndex, setPreviousIndex] = useState39(index);
|
|
27787
27815
|
const hideScrollAnimation = useRef32(true);
|
|
27788
|
-
|
|
27816
|
+
useEffect27(() => {
|
|
27789
27817
|
if (containerRef.current) {
|
|
27790
27818
|
if (scrollingMethod.current === "manual") {
|
|
27791
27819
|
scrollingMethod.current = "none";
|
|
@@ -28410,7 +28438,7 @@ var Toolbar_default = Toolbar;
|
|
|
28410
28438
|
|
|
28411
28439
|
// src/components/toolbar/ToolbarTitle.tsx
|
|
28412
28440
|
import * as React97 from "react";
|
|
28413
|
-
import { useState as
|
|
28441
|
+
import { useState as useState42 } from "react";
|
|
28414
28442
|
import { jsx as jsx180, jsxs as jsxs87 } from "react/jsx-runtime";
|
|
28415
28443
|
var ToolbarTitle = React97.forwardRef(function ToolbarTitle2({
|
|
28416
28444
|
title,
|
|
@@ -28422,7 +28450,7 @@ var ToolbarTitle = React97.forwardRef(function ToolbarTitle2({
|
|
|
28422
28450
|
const textElementRef = React97.useRef(
|
|
28423
28451
|
null
|
|
28424
28452
|
);
|
|
28425
|
-
const [showHoverActions, setShowHoverActions] =
|
|
28453
|
+
const [showHoverActions, setShowHoverActions] = useState42(false);
|
|
28426
28454
|
return /* @__PURE__ */ jsx180(Box_default2, { sx: { maxWidth: "100%" }, children: /* @__PURE__ */ jsx180(
|
|
28427
28455
|
TextEllipsisTooltip_default,
|
|
28428
28456
|
{
|
|
@@ -28701,11 +28729,9 @@ var MinimizableWindow = React98.forwardRef(function MinimizableWindow2({
|
|
|
28701
28729
|
targetElement,
|
|
28702
28730
|
contentHeight,
|
|
28703
28731
|
iconSizes: iconSizes4 = "S",
|
|
28704
|
-
minimizeIconId = "minus",
|
|
28705
28732
|
closeIconId = "close",
|
|
28706
28733
|
backIconId = "arrow-left",
|
|
28707
28734
|
rightActions,
|
|
28708
|
-
onMinimize,
|
|
28709
28735
|
onClose,
|
|
28710
28736
|
onBack
|
|
28711
28737
|
}, ref) {
|
|
@@ -28762,26 +28788,6 @@ var MinimizableWindow = React98.forwardRef(function MinimizableWindow2({
|
|
|
28762
28788
|
overlayRef.current.style.opacity = "0";
|
|
28763
28789
|
}
|
|
28764
28790
|
};
|
|
28765
|
-
const onCloseModal = (ev) => {
|
|
28766
|
-
ev.preventDefault();
|
|
28767
|
-
ev.stopPropagation();
|
|
28768
|
-
setTimeout(() => {
|
|
28769
|
-
onClose && onClose();
|
|
28770
|
-
}, 200);
|
|
28771
|
-
setTimeout(() => {
|
|
28772
|
-
if (overlayRef.current) {
|
|
28773
|
-
overlayRef.current.style.display = "none";
|
|
28774
|
-
}
|
|
28775
|
-
}, 500);
|
|
28776
|
-
setTimeout(() => {
|
|
28777
|
-
if (overlayRef.current) {
|
|
28778
|
-
overlayRef.current.style.removeProperty("left");
|
|
28779
|
-
overlayRef.current.style.removeProperty("top");
|
|
28780
|
-
overlayRef.current.style.removeProperty("display");
|
|
28781
|
-
overlayRef.current.style.removeProperty("transition");
|
|
28782
|
-
}
|
|
28783
|
-
}, 750);
|
|
28784
|
-
};
|
|
28785
28791
|
return /* @__PURE__ */ jsxs89(Fragment44, { children: [
|
|
28786
28792
|
isDraggingState && /* @__PURE__ */ jsx185(
|
|
28787
28793
|
Box_default2,
|
|
@@ -28885,44 +28891,27 @@ var MinimizableWindow = React98.forwardRef(function MinimizableWindow2({
|
|
|
28885
28891
|
onMouseDown: (ev) => ev.stopPropagation(),
|
|
28886
28892
|
children: [
|
|
28887
28893
|
rightActions,
|
|
28888
|
-
/* @__PURE__ */ jsx185(Box_default2, { children: /* @__PURE__ */ jsx185(
|
|
28894
|
+
closeable && /* @__PURE__ */ jsx185(Box_default2, { children: /* @__PURE__ */ jsx185(
|
|
28889
28895
|
Tooltip_default,
|
|
28890
28896
|
{
|
|
28891
|
-
title: t("MINIMIZABLE_WINDOW.
|
|
28897
|
+
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
28892
28898
|
zIndex: 999999,
|
|
28893
28899
|
placement: "top",
|
|
28894
28900
|
children: /* @__PURE__ */ jsx185(
|
|
28895
28901
|
IconButton_default,
|
|
28896
28902
|
{
|
|
28897
28903
|
size: iconSizes4,
|
|
28898
|
-
iconId:
|
|
28904
|
+
iconId: closeIconId,
|
|
28899
28905
|
onClick: () => {
|
|
28900
28906
|
applyMinimizeTransition();
|
|
28901
28907
|
setTimeout(() => {
|
|
28902
|
-
|
|
28908
|
+
onClose && onClose();
|
|
28903
28909
|
}, 500);
|
|
28904
28910
|
},
|
|
28905
28911
|
sx: iconButtonsStyles
|
|
28906
28912
|
}
|
|
28907
28913
|
)
|
|
28908
28914
|
}
|
|
28909
|
-
) }),
|
|
28910
|
-
closeable && /* @__PURE__ */ jsx185(Box_default2, { sx: { padding: "0 8px" }, children: /* @__PURE__ */ jsx185(
|
|
28911
|
-
Tooltip_default,
|
|
28912
|
-
{
|
|
28913
|
-
title: t("MINIMIZABLE_WINDOW.CLOSE"),
|
|
28914
|
-
zIndex: 999999,
|
|
28915
|
-
placement: "top",
|
|
28916
|
-
children: /* @__PURE__ */ jsx185(
|
|
28917
|
-
IconButton_default,
|
|
28918
|
-
{
|
|
28919
|
-
size: iconSizes4,
|
|
28920
|
-
iconId: closeIconId,
|
|
28921
|
-
onClick: onCloseModal,
|
|
28922
|
-
sx: iconButtonsStyles
|
|
28923
|
-
}
|
|
28924
|
-
)
|
|
28925
|
-
}
|
|
28926
28915
|
) })
|
|
28927
28916
|
]
|
|
28928
28917
|
}
|