wcz-test 4.1.0 → 4.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +4 -1
- package/dist/index.js +808 -94
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1025,12 +1025,10 @@ var stackSxProps = [
|
|
|
1025
1025
|
var TypographyWithIcon = ({ startIcon, endIcon, children, sx, gutterBottom, ...props }) => {
|
|
1026
1026
|
const sxCopy = { ...sx };
|
|
1027
1027
|
const stackStyles = {};
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
delete sxCopy[current];
|
|
1033
|
-
}
|
|
1028
|
+
for (const current of stackSxProps) {
|
|
1029
|
+
if (sxCopy[current]) {
|
|
1030
|
+
stackStyles[current] = sxCopy[current];
|
|
1031
|
+
delete sxCopy[current];
|
|
1034
1032
|
}
|
|
1035
1033
|
}
|
|
1036
1034
|
return /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", gap: 1, sx: stackStyles, mb: gutterBottom ? 0.7 : void 0, children: [
|
|
@@ -1157,7 +1155,7 @@ import { useState as useState5 } from "react";
|
|
|
1157
1155
|
import MoreVert from "@mui/icons-material/MoreVert";
|
|
1158
1156
|
import { Box as Box2, IconButton, ImageListItem, ImageListItemBar, Stack as Stack3, Tooltip } from "@mui/material";
|
|
1159
1157
|
import { grey } from "@mui/material/colors";
|
|
1160
|
-
import { Fragment, useEffect as
|
|
1158
|
+
import { Fragment, useEffect as useEffect2, useState as useState3 } from "react";
|
|
1161
1159
|
|
|
1162
1160
|
// src/components/file/fileViewer/common/ActionsMenu.tsx
|
|
1163
1161
|
import Delete from "@mui/icons-material/Delete";
|
|
@@ -1177,34 +1175,7 @@ var useFile = () => {
|
|
|
1177
1175
|
};
|
|
1178
1176
|
|
|
1179
1177
|
// src/hooks/DialogsHooks.tsx
|
|
1180
|
-
import Button from "@mui/material
|
|
1181
|
-
import Dialog from "@mui/material/Dialog";
|
|
1182
|
-
import DialogActions from "@mui/material/DialogActions";
|
|
1183
|
-
import DialogContent from "@mui/material/DialogContent";
|
|
1184
|
-
import DialogTitle from "@mui/material/DialogTitle";
|
|
1185
|
-
|
|
1186
|
-
// node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
|
|
1187
|
-
import * as React2 from "react";
|
|
1188
|
-
|
|
1189
|
-
// node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js
|
|
1190
|
-
import * as React from "react";
|
|
1191
|
-
var useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
|
|
1192
|
-
var useEnhancedEffect_default = useEnhancedEffect;
|
|
1193
|
-
|
|
1194
|
-
// node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
|
|
1195
|
-
function useEventCallback(fn) {
|
|
1196
|
-
const ref = React2.useRef(fn);
|
|
1197
|
-
useEnhancedEffect_default(() => {
|
|
1198
|
-
ref.current = fn;
|
|
1199
|
-
});
|
|
1200
|
-
return React2.useRef((...args) => (
|
|
1201
|
-
// @ts-expect-error hide `this`
|
|
1202
|
-
(0, ref.current)(...args)
|
|
1203
|
-
)).current;
|
|
1204
|
-
}
|
|
1205
|
-
var useEventCallback_default = useEventCallback;
|
|
1206
|
-
|
|
1207
|
-
// src/hooks/DialogsHooks.tsx
|
|
1178
|
+
import { Button, Dialog, DialogActions, DialogContent, DialogTitle, useEventCallback } from "@mui/material";
|
|
1208
1179
|
import { useContext as useContext2, useMemo } from "react";
|
|
1209
1180
|
import { useTranslation as useTranslation2 } from "react-i18next";
|
|
1210
1181
|
|
|
@@ -1235,10 +1206,10 @@ function ConfirmDialog({ open, payload, onClose }) {
|
|
|
1235
1206
|
}
|
|
1236
1207
|
function useDialogs() {
|
|
1237
1208
|
const { open, close } = useContext2(DialogsContext);
|
|
1238
|
-
const alert =
|
|
1209
|
+
const alert = useEventCallback(
|
|
1239
1210
|
(message, { ...options } = {}) => open(AlertDialog, { ...options, message })
|
|
1240
1211
|
);
|
|
1241
|
-
const confirm =
|
|
1212
|
+
const confirm = useEventCallback(
|
|
1242
1213
|
(message, { ...options } = {}) => open(ConfirmDialog, { ...options, message })
|
|
1243
1214
|
);
|
|
1244
1215
|
return useMemo(() => ({ alert, confirm, open, close }), [alert, close, confirm, open]);
|
|
@@ -1537,7 +1508,7 @@ var GridFileViewerItem = ({ meta, size, itemBar }) => {
|
|
|
1537
1508
|
const { setImageId, actions } = useFile();
|
|
1538
1509
|
const [showItemBar, setShowItemBar] = useState3(itemBar === "always");
|
|
1539
1510
|
const [menu, setMenu] = useState3(null);
|
|
1540
|
-
|
|
1511
|
+
useEffect2(() => {
|
|
1541
1512
|
setShowItemBar(itemBar === "always");
|
|
1542
1513
|
}, [itemBar]);
|
|
1543
1514
|
const { data: source } = useGetFileThumbnail(meta);
|
|
@@ -1582,11 +1553,11 @@ var GridFileViewerItem = ({ meta, size, itemBar }) => {
|
|
|
1582
1553
|
ImageListItemBar,
|
|
1583
1554
|
{
|
|
1584
1555
|
title: /* @__PURE__ */ jsx8(Tooltip, { title: meta.fileName, children: /* @__PURE__ */ jsx8(Box2, { children: meta.fileName }) }),
|
|
1585
|
-
actionIcon: (actions?.download !== false || actions
|
|
1556
|
+
actionIcon: (actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx8(IconButton, { sx: { color: grey[100] }, onClick: openMenu, children: /* @__PURE__ */ jsx8(MoreVert, {}) })
|
|
1586
1557
|
}
|
|
1587
1558
|
)
|
|
1588
1559
|
] }),
|
|
1589
|
-
(actions?.download !== false || actions
|
|
1560
|
+
(actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx8(ActionsMenu, { meta, menu, setMenu })
|
|
1590
1561
|
] });
|
|
1591
1562
|
};
|
|
1592
1563
|
|
|
@@ -1652,22 +1623,22 @@ var ListFileViewerItem = ({ meta }) => {
|
|
|
1652
1623
|
/* @__PURE__ */ jsxs7(ListItemButton2, { onClick, children: [
|
|
1653
1624
|
/* @__PURE__ */ jsx9(ListItemIcon2, { children: icon() }),
|
|
1654
1625
|
/* @__PURE__ */ jsx9(ListItemText2, { primary: `${meta.fileName}.${meta.fileExtension}` }),
|
|
1655
|
-
(actions?.download !== false || actions
|
|
1626
|
+
(actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx9(IconButton2, { edge: "end", onClick: openMenu, children: /* @__PURE__ */ jsx9(MoreVert2, {}) })
|
|
1656
1627
|
] }, meta.id),
|
|
1657
|
-
(actions?.download !== false || actions
|
|
1628
|
+
(actions?.download !== false || actions.delete !== false) && /* @__PURE__ */ jsx9(ActionsMenu, { meta, menu, setMenu })
|
|
1658
1629
|
] });
|
|
1659
1630
|
};
|
|
1660
1631
|
|
|
1661
1632
|
// src/components/file/fileViewer/ImageViewer.tsx
|
|
1662
1633
|
import Close from "@mui/icons-material/Close";
|
|
1663
1634
|
import { Box as Box3, Dialog as Dialog2, Fab } from "@mui/material";
|
|
1664
|
-
import { useEffect as
|
|
1635
|
+
import { useEffect as useEffect3 } from "react";
|
|
1665
1636
|
import { jsx as jsx10, jsxs as jsxs8 } from "react/jsx-runtime";
|
|
1666
1637
|
var ImageViewer = ({ metaId }) => {
|
|
1667
1638
|
const { fileMetas, setImageId } = useFile();
|
|
1668
1639
|
const meta = fileMetas.find((m) => m.id === metaId);
|
|
1669
1640
|
const { data: source } = useGetFile(meta);
|
|
1670
|
-
|
|
1641
|
+
useEffect3(() => {
|
|
1671
1642
|
if (metaId)
|
|
1672
1643
|
globalThis.addEventListener("keydown", handleOnKeydown);
|
|
1673
1644
|
return () => {
|
|
@@ -1751,9 +1722,9 @@ var EditableColumnHeader = ({ colDef }) => {
|
|
|
1751
1722
|
// src/components/router/RouterButton.tsx
|
|
1752
1723
|
import { Button as Button2 } from "@mui/material";
|
|
1753
1724
|
import { createLink } from "@tanstack/react-router";
|
|
1754
|
-
import
|
|
1725
|
+
import React3 from "react";
|
|
1755
1726
|
import { jsx as jsx14 } from "react/jsx-runtime";
|
|
1756
|
-
var Component =
|
|
1727
|
+
var Component = React3.forwardRef(function ButtonComponent(props, reference) {
|
|
1757
1728
|
return /* @__PURE__ */ jsx14(Button2, { ref: reference, component: "a", ...props });
|
|
1758
1729
|
});
|
|
1759
1730
|
var CreatedComponent = createLink(Component);
|
|
@@ -1764,9 +1735,9 @@ var RouterButton = (props) => {
|
|
|
1764
1735
|
// src/components/router/RouterGridActionsCellItem.tsx
|
|
1765
1736
|
import { GridActionsCellItem } from "@mui/x-data-grid-premium";
|
|
1766
1737
|
import { createLink as createLink2 } from "@tanstack/react-router";
|
|
1767
|
-
import
|
|
1738
|
+
import React4 from "react";
|
|
1768
1739
|
import { jsx as jsx15 } from "react/jsx-runtime";
|
|
1769
|
-
var Component2 =
|
|
1740
|
+
var Component2 = React4.forwardRef(
|
|
1770
1741
|
function GridActionsCellItemComponent(props, reference) {
|
|
1771
1742
|
return /* @__PURE__ */ jsx15(GridActionsCellItem, { ref: reference, component: "a", ...props });
|
|
1772
1743
|
}
|
|
@@ -1779,9 +1750,9 @@ var RouterGridActionsCellItem = (props) => {
|
|
|
1779
1750
|
// src/components/router/RouterIconButton.tsx
|
|
1780
1751
|
import { IconButton as IconButton3 } from "@mui/material";
|
|
1781
1752
|
import { createLink as createLink3 } from "@tanstack/react-router";
|
|
1782
|
-
import
|
|
1753
|
+
import React5 from "react";
|
|
1783
1754
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
1784
|
-
var Component3 =
|
|
1755
|
+
var Component3 = React5.forwardRef(function IconButtonComponent(props, reference) {
|
|
1785
1756
|
return /* @__PURE__ */ jsx16(IconButton3, { ref: reference, component: "a", ...props });
|
|
1786
1757
|
});
|
|
1787
1758
|
var CreatedComponent3 = createLink3(Component3);
|
|
@@ -1792,9 +1763,9 @@ var RouterIconButton = (props) => {
|
|
|
1792
1763
|
// src/components/router/RouterLink.tsx
|
|
1793
1764
|
import { Link } from "@mui/material";
|
|
1794
1765
|
import { createLink as createLink4 } from "@tanstack/react-router";
|
|
1795
|
-
import
|
|
1766
|
+
import React6 from "react";
|
|
1796
1767
|
import { jsx as jsx17 } from "react/jsx-runtime";
|
|
1797
|
-
var Component4 =
|
|
1768
|
+
var Component4 = React6.forwardRef(function LinkComponent(props, reference) {
|
|
1798
1769
|
return /* @__PURE__ */ jsx17(Link, { ref: reference, ...props });
|
|
1799
1770
|
});
|
|
1800
1771
|
var CreatedComponent4 = createLink4(Component4);
|
|
@@ -1805,9 +1776,9 @@ var RouterLink = (props) => {
|
|
|
1805
1776
|
// src/components/router/RouterTab.tsx
|
|
1806
1777
|
import { Tab } from "@mui/material";
|
|
1807
1778
|
import { createLink as createLink5 } from "@tanstack/react-router";
|
|
1808
|
-
import
|
|
1779
|
+
import React7 from "react";
|
|
1809
1780
|
import { jsx as jsx18 } from "react/jsx-runtime";
|
|
1810
|
-
var Component5 =
|
|
1781
|
+
var Component5 = React7.forwardRef(function TabComponent(props, reference) {
|
|
1811
1782
|
return /* @__PURE__ */ jsx18(Tab, { ref: reference, component: "a", ...props });
|
|
1812
1783
|
});
|
|
1813
1784
|
var CreatedComponent5 = createLink5(Component5);
|
|
@@ -1818,9 +1789,9 @@ var RouterTab = (props) => {
|
|
|
1818
1789
|
// src/components/router/RouterListItemButton.tsx
|
|
1819
1790
|
import { ListItemButton as ListItemButton3 } from "@mui/material";
|
|
1820
1791
|
import { createLink as createLink6 } from "@tanstack/react-router";
|
|
1821
|
-
import
|
|
1792
|
+
import React8 from "react";
|
|
1822
1793
|
import { jsx as jsx19 } from "react/jsx-runtime";
|
|
1823
|
-
var Component6 =
|
|
1794
|
+
var Component6 = React8.forwardRef(function ButtonComponent2(props, reference) {
|
|
1824
1795
|
return /* @__PURE__ */ jsx19(ListItemButton3, { ref: reference, component: "a", ...props });
|
|
1825
1796
|
});
|
|
1826
1797
|
var CreatedComponent6 = createLink6(Component6);
|
|
@@ -1874,13 +1845,97 @@ function _objectWithoutPropertiesLoose(r, e) {
|
|
|
1874
1845
|
return t2;
|
|
1875
1846
|
}
|
|
1876
1847
|
|
|
1848
|
+
// node_modules/@mui/x-date-pickers/esm/locales/utils/getPickersLocalization.js
|
|
1849
|
+
var getPickersLocalization = (pickersTranslations) => {
|
|
1850
|
+
return {
|
|
1851
|
+
components: {
|
|
1852
|
+
MuiLocalizationProvider: {
|
|
1853
|
+
defaultProps: {
|
|
1854
|
+
localeText: _extends({}, pickersTranslations)
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
}
|
|
1858
|
+
};
|
|
1859
|
+
};
|
|
1860
|
+
|
|
1861
|
+
// node_modules/@mui/x-date-pickers/esm/locales/enUS.js
|
|
1862
|
+
var enUSPickers = {
|
|
1863
|
+
// Calendar navigation
|
|
1864
|
+
previousMonth: "Previous month",
|
|
1865
|
+
nextMonth: "Next month",
|
|
1866
|
+
// View navigation
|
|
1867
|
+
openPreviousView: "Open previous view",
|
|
1868
|
+
openNextView: "Open next view",
|
|
1869
|
+
calendarViewSwitchingButtonAriaLabel: (view) => view === "year" ? "year view is open, switch to calendar view" : "calendar view is open, switch to year view",
|
|
1870
|
+
// DateRange labels
|
|
1871
|
+
start: "Start",
|
|
1872
|
+
end: "End",
|
|
1873
|
+
startDate: "Start date",
|
|
1874
|
+
startTime: "Start time",
|
|
1875
|
+
endDate: "End date",
|
|
1876
|
+
endTime: "End time",
|
|
1877
|
+
// Action bar
|
|
1878
|
+
cancelButtonLabel: "Cancel",
|
|
1879
|
+
clearButtonLabel: "Clear",
|
|
1880
|
+
okButtonLabel: "OK",
|
|
1881
|
+
todayButtonLabel: "Today",
|
|
1882
|
+
nextStepButtonLabel: "Next",
|
|
1883
|
+
// Toolbar titles
|
|
1884
|
+
datePickerToolbarTitle: "Select date",
|
|
1885
|
+
dateTimePickerToolbarTitle: "Select date & time",
|
|
1886
|
+
timePickerToolbarTitle: "Select time",
|
|
1887
|
+
dateRangePickerToolbarTitle: "Select date range",
|
|
1888
|
+
timeRangePickerToolbarTitle: "Select time range",
|
|
1889
|
+
// Clock labels
|
|
1890
|
+
clockLabelText: (view, formattedTime) => `Select ${view}. ${!formattedTime ? "No time selected" : `Selected time is ${formattedTime}`}`,
|
|
1891
|
+
hoursClockNumberText: (hours) => `${hours} hours`,
|
|
1892
|
+
minutesClockNumberText: (minutes) => `${minutes} minutes`,
|
|
1893
|
+
secondsClockNumberText: (seconds) => `${seconds} seconds`,
|
|
1894
|
+
// Digital clock labels
|
|
1895
|
+
selectViewText: (view) => `Select ${view}`,
|
|
1896
|
+
// Calendar labels
|
|
1897
|
+
calendarWeekNumberHeaderLabel: "Week number",
|
|
1898
|
+
calendarWeekNumberHeaderText: "#",
|
|
1899
|
+
calendarWeekNumberAriaLabelText: (weekNumber) => `Week ${weekNumber}`,
|
|
1900
|
+
calendarWeekNumberText: (weekNumber) => `${weekNumber}`,
|
|
1901
|
+
// Open Picker labels
|
|
1902
|
+
openDatePickerDialogue: (formattedDate) => formattedDate ? `Choose date, selected date is ${formattedDate}` : "Choose date",
|
|
1903
|
+
openTimePickerDialogue: (formattedTime) => formattedTime ? `Choose time, selected time is ${formattedTime}` : "Choose time",
|
|
1904
|
+
openRangePickerDialogue: (formattedRange) => formattedRange ? `Choose range, selected range is ${formattedRange}` : "Choose range",
|
|
1905
|
+
fieldClearLabel: "Clear",
|
|
1906
|
+
// Table labels
|
|
1907
|
+
timeTableLabel: "pick time",
|
|
1908
|
+
dateTableLabel: "pick date",
|
|
1909
|
+
// Field section placeholders
|
|
1910
|
+
fieldYearPlaceholder: (params) => "Y".repeat(params.digitAmount),
|
|
1911
|
+
fieldMonthPlaceholder: (params) => params.contentType === "letter" ? "MMMM" : "MM",
|
|
1912
|
+
fieldDayPlaceholder: () => "DD",
|
|
1913
|
+
fieldWeekDayPlaceholder: (params) => params.contentType === "letter" ? "EEEE" : "EE",
|
|
1914
|
+
fieldHoursPlaceholder: () => "hh",
|
|
1915
|
+
fieldMinutesPlaceholder: () => "mm",
|
|
1916
|
+
fieldSecondsPlaceholder: () => "ss",
|
|
1917
|
+
fieldMeridiemPlaceholder: () => "aa",
|
|
1918
|
+
// View names
|
|
1919
|
+
year: "Year",
|
|
1920
|
+
month: "Month",
|
|
1921
|
+
day: "Day",
|
|
1922
|
+
weekDay: "Week day",
|
|
1923
|
+
hours: "Hours",
|
|
1924
|
+
minutes: "Minutes",
|
|
1925
|
+
seconds: "Seconds",
|
|
1926
|
+
meridiem: "Meridiem",
|
|
1927
|
+
// Common
|
|
1928
|
+
empty: "Empty"
|
|
1929
|
+
};
|
|
1930
|
+
var enUS = getPickersLocalization(enUSPickers);
|
|
1931
|
+
|
|
1877
1932
|
// node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js
|
|
1878
1933
|
var import_prop_types = __toESM(require_prop_types(), 1);
|
|
1879
|
-
import * as
|
|
1934
|
+
import * as React9 from "react";
|
|
1880
1935
|
import { useThemeProps } from "@mui/material/styles";
|
|
1881
1936
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
1882
1937
|
var _excluded = ["localeText"];
|
|
1883
|
-
var PickerAdapterContext = /* @__PURE__ */
|
|
1938
|
+
var PickerAdapterContext = /* @__PURE__ */ React9.createContext(null);
|
|
1884
1939
|
if (process.env.NODE_ENV !== "production") PickerAdapterContext.displayName = "PickerAdapterContext";
|
|
1885
1940
|
var LocalizationProvider = function LocalizationProvider2(inProps) {
|
|
1886
1941
|
const {
|
|
@@ -1889,7 +1944,7 @@ var LocalizationProvider = function LocalizationProvider2(inProps) {
|
|
|
1889
1944
|
const {
|
|
1890
1945
|
adapter: parentAdapter,
|
|
1891
1946
|
localeText: parentLocaleText
|
|
1892
|
-
} =
|
|
1947
|
+
} = React9.useContext(PickerAdapterContext) ?? {
|
|
1893
1948
|
utils: void 0,
|
|
1894
1949
|
adapter: void 0,
|
|
1895
1950
|
localeText: void 0
|
|
@@ -1908,8 +1963,8 @@ var LocalizationProvider = function LocalizationProvider2(inProps) {
|
|
|
1908
1963
|
adapterLocale,
|
|
1909
1964
|
localeText: themeLocaleText
|
|
1910
1965
|
} = props;
|
|
1911
|
-
const localeText =
|
|
1912
|
-
const adapter =
|
|
1966
|
+
const localeText = React9.useMemo(() => _extends({}, themeLocaleText, parentLocaleText, inLocaleText), [themeLocaleText, parentLocaleText, inLocaleText]);
|
|
1967
|
+
const adapter = React9.useMemo(() => {
|
|
1913
1968
|
if (!DateAdapter) {
|
|
1914
1969
|
if (parentAdapter) {
|
|
1915
1970
|
return parentAdapter;
|
|
@@ -1927,7 +1982,7 @@ var LocalizationProvider = function LocalizationProvider2(inProps) {
|
|
|
1927
1982
|
}
|
|
1928
1983
|
return dateAdapter;
|
|
1929
1984
|
}, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentAdapter]);
|
|
1930
|
-
const defaultDates =
|
|
1985
|
+
const defaultDates = React9.useMemo(() => {
|
|
1931
1986
|
if (!adapter) {
|
|
1932
1987
|
return null;
|
|
1933
1988
|
}
|
|
@@ -1936,7 +1991,7 @@ var LocalizationProvider = function LocalizationProvider2(inProps) {
|
|
|
1936
1991
|
maxDate: adapter.date("2099-12-31T00:00:00.000")
|
|
1937
1992
|
};
|
|
1938
1993
|
}, [adapter]);
|
|
1939
|
-
const contextValue =
|
|
1994
|
+
const contextValue = React9.useMemo(() => {
|
|
1940
1995
|
return {
|
|
1941
1996
|
utils: adapter,
|
|
1942
1997
|
adapter,
|
|
@@ -2004,6 +2059,27 @@ process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
|
|
|
2004
2059
|
localeText: import_prop_types.default.object
|
|
2005
2060
|
} : void 0;
|
|
2006
2061
|
|
|
2062
|
+
// node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
|
|
2063
|
+
import * as React11 from "react";
|
|
2064
|
+
|
|
2065
|
+
// node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js
|
|
2066
|
+
import * as React10 from "react";
|
|
2067
|
+
var useEnhancedEffect = typeof window !== "undefined" ? React10.useLayoutEffect : React10.useEffect;
|
|
2068
|
+
var useEnhancedEffect_default = useEnhancedEffect;
|
|
2069
|
+
|
|
2070
|
+
// node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
|
|
2071
|
+
function useEventCallback2(fn) {
|
|
2072
|
+
const ref = React11.useRef(fn);
|
|
2073
|
+
useEnhancedEffect_default(() => {
|
|
2074
|
+
ref.current = fn;
|
|
2075
|
+
});
|
|
2076
|
+
return React11.useRef((...args) => (
|
|
2077
|
+
// @ts-expect-error hide `this`
|
|
2078
|
+
(0, ref.current)(...args)
|
|
2079
|
+
)).current;
|
|
2080
|
+
}
|
|
2081
|
+
var useEventCallback_default = useEventCallback2;
|
|
2082
|
+
|
|
2007
2083
|
// node_modules/@mui/x-internals/esm/warning/warning.js
|
|
2008
2084
|
var warnedOnceCache = /* @__PURE__ */ new Set();
|
|
2009
2085
|
function warnOnce(message, gravity = "warning") {
|
|
@@ -2512,7 +2588,7 @@ var AdapterDayjs = class {
|
|
|
2512
2588
|
|
|
2513
2589
|
// src/providers/LayoutProvider.tsx
|
|
2514
2590
|
import { useEffect as useEffect6, useState as useState10 } from "react";
|
|
2515
|
-
import {
|
|
2591
|
+
import { useTranslation as useTranslation7 } from "react-i18next";
|
|
2516
2592
|
import * as z from "zod";
|
|
2517
2593
|
import { cs, en } from "zod/locales";
|
|
2518
2594
|
|
|
@@ -2605,15 +2681,19 @@ i18n.use(HttpBackend).use(LanguageDetector).use(initReactI18next).init({
|
|
|
2605
2681
|
},
|
|
2606
2682
|
interpolation: { escapeValue: false }
|
|
2607
2683
|
});
|
|
2608
|
-
var
|
|
2684
|
+
var setSSRLanguage = createIsomorphicFn().server(async () => {
|
|
2609
2685
|
const language = getCookie(i18nCookieName);
|
|
2610
2686
|
await i18n.changeLanguage(language || "en");
|
|
2611
2687
|
});
|
|
2612
2688
|
|
|
2689
|
+
// src/contexts/LayoutContext.ts
|
|
2690
|
+
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
2691
|
+
var LayoutContext = createContext4(null);
|
|
2692
|
+
|
|
2613
2693
|
// src/components/core/Layout.tsx
|
|
2614
2694
|
import Menu3 from "@mui/icons-material/Menu";
|
|
2615
2695
|
import MenuOpen from "@mui/icons-material/MenuOpen";
|
|
2616
|
-
import { AppBar, Box as Box9, CssBaseline, IconButton as IconButton5,
|
|
2696
|
+
import { AppBar, Box as Box9, CssBaseline, IconButton as IconButton5, LinearProgress, Toolbar } from "@mui/material";
|
|
2617
2697
|
import { ThemeProvider, styled as styled2 } from "@mui/material/styles";
|
|
2618
2698
|
import { useIsFetching, useIsMutating } from "@tanstack/react-query";
|
|
2619
2699
|
import useLocalStorageState from "use-local-storage-state";
|
|
@@ -3098,9 +3178,650 @@ var ToolbarAccount = () => {
|
|
|
3098
3178
|
// src/hooks/ThemeHook.ts
|
|
3099
3179
|
import { createTheme, darken, lighten } from "@mui/material";
|
|
3100
3180
|
import { grey as grey2 } from "@mui/material/colors";
|
|
3101
|
-
import { csCZ, enUS } from "@mui/material/locale";
|
|
3102
|
-
|
|
3103
|
-
|
|
3181
|
+
import { csCZ as csCZ3, enUS as enUS3 } from "@mui/material/locale";
|
|
3182
|
+
|
|
3183
|
+
// node_modules/@mui/x-data-grid/esm/utils/getGridLocalization.js
|
|
3184
|
+
var getGridLocalization = (gridTranslations) => ({
|
|
3185
|
+
components: {
|
|
3186
|
+
MuiDataGrid: {
|
|
3187
|
+
defaultProps: {
|
|
3188
|
+
localeText: gridTranslations
|
|
3189
|
+
}
|
|
3190
|
+
}
|
|
3191
|
+
}
|
|
3192
|
+
});
|
|
3193
|
+
|
|
3194
|
+
// node_modules/@mui/x-data-grid/esm/locales/csCZ.js
|
|
3195
|
+
var csCZGrid = {
|
|
3196
|
+
// Root
|
|
3197
|
+
noRowsLabel: "\u017D\xE1dn\xE9 z\xE1znamy",
|
|
3198
|
+
noResultsOverlayLabel: "Nena\u0161ly se \u017Eadn\xE9 v\xFDsledky.",
|
|
3199
|
+
noColumnsOverlayLabel: "\u017D\xE1dn\xE9 sloupce",
|
|
3200
|
+
noColumnsOverlayManageColumns: "Spravovat sloupce",
|
|
3201
|
+
// emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
|
|
3202
|
+
// Density selector toolbar button text
|
|
3203
|
+
toolbarDensity: "Zobrazen\xED",
|
|
3204
|
+
toolbarDensityLabel: "Zobrazen\xED",
|
|
3205
|
+
toolbarDensityCompact: "Kompaktn\xED",
|
|
3206
|
+
toolbarDensityStandard: "Standartn\xED",
|
|
3207
|
+
toolbarDensityComfortable: "Komfortn\xED",
|
|
3208
|
+
// Columns selector toolbar button text
|
|
3209
|
+
toolbarColumns: "Sloupce",
|
|
3210
|
+
toolbarColumnsLabel: "Vybrat sloupec",
|
|
3211
|
+
// Filters toolbar button text
|
|
3212
|
+
toolbarFilters: "Filtry",
|
|
3213
|
+
toolbarFiltersLabel: "Zobrazit filtry",
|
|
3214
|
+
toolbarFiltersTooltipHide: "Skr\xFDt filtry",
|
|
3215
|
+
toolbarFiltersTooltipShow: "Zobrazit filtry",
|
|
3216
|
+
toolbarFiltersTooltipActive: (count) => {
|
|
3217
|
+
let pluralForm = "aktivn\xEDch filtr\u016F";
|
|
3218
|
+
if (count > 1 && count < 5) {
|
|
3219
|
+
pluralForm = "aktivn\xED filtry";
|
|
3220
|
+
} else if (count === 1) {
|
|
3221
|
+
pluralForm = "aktivn\xED filtr";
|
|
3222
|
+
}
|
|
3223
|
+
return `${count} ${pluralForm}`;
|
|
3224
|
+
},
|
|
3225
|
+
// Quick filter toolbar field
|
|
3226
|
+
toolbarQuickFilterPlaceholder: "Hledat\u2026",
|
|
3227
|
+
toolbarQuickFilterLabel: "Hledat",
|
|
3228
|
+
toolbarQuickFilterDeleteIconLabel: "Vymazat",
|
|
3229
|
+
// Export selector toolbar button text
|
|
3230
|
+
toolbarExport: "Export",
|
|
3231
|
+
toolbarExportLabel: "Export",
|
|
3232
|
+
toolbarExportCSV: "St\xE1hnout jako CSV",
|
|
3233
|
+
toolbarExportPrint: "Vytisknout",
|
|
3234
|
+
toolbarExportExcel: "St\xE1hnout jako Excel",
|
|
3235
|
+
// Toolbar pivot button
|
|
3236
|
+
// toolbarPivot: 'Pivot',
|
|
3237
|
+
// Toolbar AI Assistant button
|
|
3238
|
+
// toolbarAssistant: 'AI Assistant',
|
|
3239
|
+
// Columns management text
|
|
3240
|
+
columnsManagementSearchTitle: "Hledat sloupce",
|
|
3241
|
+
columnsManagementNoColumns: "\u017D\xE1dn\xE9 sloupce",
|
|
3242
|
+
columnsManagementShowHideAllText: "Zobrazit/skr\xFDt v\u0161e",
|
|
3243
|
+
columnsManagementReset: "Resetovat",
|
|
3244
|
+
columnsManagementDeleteIconLabel: "Vy\u010Distit",
|
|
3245
|
+
// Filter panel text
|
|
3246
|
+
filterPanelAddFilter: "P\u0159idat filtr",
|
|
3247
|
+
filterPanelRemoveAll: "Odstranit v\u0161e",
|
|
3248
|
+
filterPanelDeleteIconLabel: "Odstranit",
|
|
3249
|
+
filterPanelLogicOperator: "Logick\xFD oper\xE1tor",
|
|
3250
|
+
filterPanelOperator: "Oper\xE1tory",
|
|
3251
|
+
filterPanelOperatorAnd: "A",
|
|
3252
|
+
filterPanelOperatorOr: "Nebo",
|
|
3253
|
+
filterPanelColumns: "Sloupce",
|
|
3254
|
+
filterPanelInputLabel: "Hodnota",
|
|
3255
|
+
filterPanelInputPlaceholder: "Hodnota filtru",
|
|
3256
|
+
// Filter operators text
|
|
3257
|
+
filterOperatorContains: "obsahuje",
|
|
3258
|
+
filterOperatorDoesNotContain: "neobsahuje",
|
|
3259
|
+
filterOperatorEquals: "rovn\xE1 se",
|
|
3260
|
+
filterOperatorDoesNotEqual: "nerovn\xE1 se",
|
|
3261
|
+
filterOperatorStartsWith: "za\u010D\xEDn\xE1 na",
|
|
3262
|
+
filterOperatorEndsWith: "kon\u010D\xED na",
|
|
3263
|
+
filterOperatorIs: "je",
|
|
3264
|
+
filterOperatorNot: "nen\xED",
|
|
3265
|
+
filterOperatorAfter: "je po",
|
|
3266
|
+
filterOperatorOnOrAfter: "je po v\u010Detn\u011B",
|
|
3267
|
+
filterOperatorBefore: "je p\u0159ed",
|
|
3268
|
+
filterOperatorOnOrBefore: "je p\u0159ed v\u010Detn\u011B",
|
|
3269
|
+
filterOperatorIsEmpty: "je pr\xE1zdn\xFD",
|
|
3270
|
+
filterOperatorIsNotEmpty: "nen\xED pr\xE1zdn\xFD",
|
|
3271
|
+
filterOperatorIsAnyOf: "je jeden z",
|
|
3272
|
+
"filterOperator=": "=",
|
|
3273
|
+
"filterOperator!=": "!=",
|
|
3274
|
+
"filterOperator>": ">",
|
|
3275
|
+
"filterOperator>=": ">=",
|
|
3276
|
+
"filterOperator<": "<",
|
|
3277
|
+
"filterOperator<=": "<=",
|
|
3278
|
+
// Header filter operators text
|
|
3279
|
+
headerFilterOperatorContains: "Obsahuje",
|
|
3280
|
+
headerFilterOperatorDoesNotContain: "Neobsahuje",
|
|
3281
|
+
headerFilterOperatorEquals: "Rovn\xE1 se",
|
|
3282
|
+
headerFilterOperatorDoesNotEqual: "Nerovn\xE1 se",
|
|
3283
|
+
headerFilterOperatorStartsWith: "Za\u010D\xEDn\xE1 na",
|
|
3284
|
+
headerFilterOperatorEndsWith: "Kon\u010D\xED na",
|
|
3285
|
+
headerFilterOperatorIs: "Je",
|
|
3286
|
+
headerFilterOperatorNot: "Nen\xED",
|
|
3287
|
+
headerFilterOperatorAfter: "Je po",
|
|
3288
|
+
headerFilterOperatorOnOrAfter: "Je po v\u010Detn\u011B",
|
|
3289
|
+
headerFilterOperatorBefore: "Je p\u0159ed",
|
|
3290
|
+
headerFilterOperatorOnOrBefore: "Je p\u0159ed v\u010Detn\u011B",
|
|
3291
|
+
headerFilterOperatorIsEmpty: "Je pr\xE1zdn\xFD",
|
|
3292
|
+
headerFilterOperatorIsNotEmpty: "Nen\xED pr\xE1zdn\xFD",
|
|
3293
|
+
headerFilterOperatorIsAnyOf: "Je jeden z",
|
|
3294
|
+
"headerFilterOperator=": "Rovn\xE1 se",
|
|
3295
|
+
"headerFilterOperator!=": "Nerovn\xE1 se",
|
|
3296
|
+
"headerFilterOperator>": "V\u011Bt\u0161\xED ne\u017E",
|
|
3297
|
+
"headerFilterOperator>=": "V\u011Bt\u0161\xED ne\u017E nebo rovno",
|
|
3298
|
+
"headerFilterOperator<": "Men\u0161\xED ne\u017E",
|
|
3299
|
+
"headerFilterOperator<=": "Men\u0161\xED ne\u017E nebo rovno",
|
|
3300
|
+
headerFilterClear: "Zru\u0161it filtr",
|
|
3301
|
+
// Filter values text
|
|
3302
|
+
filterValueAny: "jak\xFDkoliv",
|
|
3303
|
+
filterValueTrue: "ano",
|
|
3304
|
+
filterValueFalse: "ne",
|
|
3305
|
+
// Column menu text
|
|
3306
|
+
columnMenuLabel: "Menu",
|
|
3307
|
+
columnMenuAriaLabel: (columnName) => `Mo\u017Enosti sloupce ${columnName}`,
|
|
3308
|
+
columnMenuShowColumns: "Zobrazit sloupce",
|
|
3309
|
+
columnMenuManageColumns: "Spravovat sloupce",
|
|
3310
|
+
columnMenuFilter: "Filtr",
|
|
3311
|
+
columnMenuHideColumn: "Skr\xFDt",
|
|
3312
|
+
columnMenuUnsort: "Zru\u0161it filtry",
|
|
3313
|
+
columnMenuSortAsc: "Se\u0159adit vzestupn\u011B",
|
|
3314
|
+
columnMenuSortDesc: "Se\u0159adit sestupn\u011B",
|
|
3315
|
+
// columnMenuManagePivot: 'Manage pivot',
|
|
3316
|
+
// Column header text
|
|
3317
|
+
columnHeaderFiltersTooltipActive: (count) => {
|
|
3318
|
+
let pluralForm = "aktivn\xEDch filtr\u016F";
|
|
3319
|
+
if (count > 1 && count < 5) {
|
|
3320
|
+
pluralForm = "aktivn\xED filtry";
|
|
3321
|
+
} else if (count === 1) {
|
|
3322
|
+
pluralForm = "aktivn\xED filtr";
|
|
3323
|
+
}
|
|
3324
|
+
return `${count} ${pluralForm}`;
|
|
3325
|
+
},
|
|
3326
|
+
columnHeaderFiltersLabel: "Zobrazit filtry",
|
|
3327
|
+
columnHeaderSortIconLabel: "Filtrovat",
|
|
3328
|
+
// Rows selected footer text
|
|
3329
|
+
footerRowSelected: (count) => {
|
|
3330
|
+
let pluralForm = "vybran\xFDch z\xE1znam\u016F";
|
|
3331
|
+
if (count > 1 && count < 5) {
|
|
3332
|
+
pluralForm = "vybran\xE9 z\xE1znamy";
|
|
3333
|
+
} else if (count === 1) {
|
|
3334
|
+
pluralForm = "vybran\xFD z\xE1znam";
|
|
3335
|
+
}
|
|
3336
|
+
return `${count} ${pluralForm}`;
|
|
3337
|
+
},
|
|
3338
|
+
// Total row amount footer text
|
|
3339
|
+
footerTotalRows: "Celkem \u0159\xE1dk\u016F:",
|
|
3340
|
+
// Total visible row amount footer text
|
|
3341
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => {
|
|
3342
|
+
const str = totalCount.toString();
|
|
3343
|
+
const firstDigit = str[0];
|
|
3344
|
+
const op = ["4", "6", "7"].includes(firstDigit) || firstDigit === "1" && str.length % 3 === 0 ? "ze" : "z";
|
|
3345
|
+
return `${visibleCount.toLocaleString()} ${op} ${totalCount.toLocaleString()}`;
|
|
3346
|
+
},
|
|
3347
|
+
// Checkbox selection text
|
|
3348
|
+
checkboxSelectionHeaderName: "V\xFDb\u011Br \u0159\xE1dku",
|
|
3349
|
+
checkboxSelectionSelectAllRows: "Ozna\u010Dit v\u0161echny \u0159\xE1dky",
|
|
3350
|
+
checkboxSelectionUnselectAllRows: "Odzna\u010Dit v\u0161echny \u0159\xE1dky",
|
|
3351
|
+
checkboxSelectionSelectRow: "Ozna\u010Dit \u0159\xE1dek",
|
|
3352
|
+
checkboxSelectionUnselectRow: "Odzna\u010Dit \u0159\xE1dek",
|
|
3353
|
+
// Boolean cell text
|
|
3354
|
+
booleanCellTrueLabel: "ano",
|
|
3355
|
+
booleanCellFalseLabel: "ne",
|
|
3356
|
+
// Actions cell more text
|
|
3357
|
+
actionsCellMore: "v\xEDce",
|
|
3358
|
+
// Column pinning text
|
|
3359
|
+
pinToLeft: "P\u0159ipnout vlevo",
|
|
3360
|
+
pinToRight: "P\u0159ipnout vpravo",
|
|
3361
|
+
unpin: "Odepnout",
|
|
3362
|
+
// Tree Data
|
|
3363
|
+
treeDataGroupingHeaderName: "Skupina",
|
|
3364
|
+
treeDataExpand: "zobrazit potomky",
|
|
3365
|
+
treeDataCollapse: "skr\xFDt potomky",
|
|
3366
|
+
// Grouping columns
|
|
3367
|
+
groupingColumnHeaderName: "Skupina",
|
|
3368
|
+
groupColumn: (name) => `Seskupit podle ${name}`,
|
|
3369
|
+
unGroupColumn: (name) => `P\u0159estat seskupovat podle ${name}`,
|
|
3370
|
+
// Master/detail
|
|
3371
|
+
detailPanelToggle: "P\u0159epnout detail panelu",
|
|
3372
|
+
expandDetailPanel: "Rozbalit",
|
|
3373
|
+
collapseDetailPanel: "Sbalit",
|
|
3374
|
+
// Pagination
|
|
3375
|
+
paginationRowsPerPage: "\u0158\xE1dk\u016F na str\xE1nce:",
|
|
3376
|
+
paginationDisplayedRows: ({
|
|
3377
|
+
from,
|
|
3378
|
+
to,
|
|
3379
|
+
count,
|
|
3380
|
+
estimated
|
|
3381
|
+
}) => {
|
|
3382
|
+
if (!estimated) {
|
|
3383
|
+
return `${from}\u2013${to} z ${count !== -1 ? count : `v\xEDce ne\u017E ${to}`}`;
|
|
3384
|
+
}
|
|
3385
|
+
const estimatedLabel = estimated && estimated > to ? `p\u0159ibli\u017En\u011B ${estimated}` : `v\xEDce ne\u017E ${to}`;
|
|
3386
|
+
return `${from}\u2013${to} z ${count !== -1 ? count : estimatedLabel}`;
|
|
3387
|
+
},
|
|
3388
|
+
paginationItemAriaLabel: (type) => {
|
|
3389
|
+
if (type === "first") {
|
|
3390
|
+
return "J\xEDt na prvn\xED str\xE1nku";
|
|
3391
|
+
}
|
|
3392
|
+
if (type === "last") {
|
|
3393
|
+
return "J\xEDt na posledn\xED str\xE1nku";
|
|
3394
|
+
}
|
|
3395
|
+
if (type === "next") {
|
|
3396
|
+
return "J\xEDt na dal\u0161\xED str\xE1nku";
|
|
3397
|
+
}
|
|
3398
|
+
return "J\xEDt na p\u0159edchoz\xED str\xE1nku";
|
|
3399
|
+
},
|
|
3400
|
+
// Row reordering text
|
|
3401
|
+
rowReorderingHeaderName: "P\u0159euspo\u0159\xE1d\xE1v\xE1n\xED \u0159\xE1dk\u016F",
|
|
3402
|
+
// Aggregation
|
|
3403
|
+
aggregationMenuItemHeader: "Seskupov\xE1n\xED",
|
|
3404
|
+
aggregationFunctionLabelSum: "sou\u010Det",
|
|
3405
|
+
aggregationFunctionLabelAvg: "pr\u016Fm\u011Br",
|
|
3406
|
+
aggregationFunctionLabelMin: "min",
|
|
3407
|
+
aggregationFunctionLabelMax: "max",
|
|
3408
|
+
aggregationFunctionLabelSize: "po\u010Det",
|
|
3409
|
+
// Pivot panel
|
|
3410
|
+
// pivotToggleLabel: 'Pivot',
|
|
3411
|
+
// pivotRows: 'Rows',
|
|
3412
|
+
// pivotColumns: 'Columns',
|
|
3413
|
+
// pivotValues: 'Values',
|
|
3414
|
+
// pivotCloseButton: 'Close pivot settings',
|
|
3415
|
+
// pivotSearchButton: 'Search fields',
|
|
3416
|
+
// pivotSearchControlPlaceholder: 'Search fields',
|
|
3417
|
+
// pivotSearchControlLabel: 'Search fields',
|
|
3418
|
+
// pivotSearchControlClear: 'Clear search',
|
|
3419
|
+
// pivotNoFields: 'No fields',
|
|
3420
|
+
// pivotMenuMoveUp: 'Move up',
|
|
3421
|
+
// pivotMenuMoveDown: 'Move down',
|
|
3422
|
+
// pivotMenuMoveToTop: 'Move to top',
|
|
3423
|
+
// pivotMenuMoveToBottom: 'Move to bottom',
|
|
3424
|
+
// pivotMenuRows: 'Rows',
|
|
3425
|
+
// pivotMenuColumns: 'Columns',
|
|
3426
|
+
// pivotMenuValues: 'Values',
|
|
3427
|
+
// pivotMenuOptions: 'Field options',
|
|
3428
|
+
// pivotMenuAddToRows: 'Add to Rows',
|
|
3429
|
+
// pivotMenuAddToColumns: 'Add to Columns',
|
|
3430
|
+
// pivotMenuAddToValues: 'Add to Values',
|
|
3431
|
+
// pivotMenuRemove: 'Remove',
|
|
3432
|
+
// pivotDragToRows: 'Drag here to create rows',
|
|
3433
|
+
// pivotDragToColumns: 'Drag here to create columns',
|
|
3434
|
+
// pivotDragToValues: 'Drag here to create values',
|
|
3435
|
+
// pivotYearColumnHeaderName: '(Year)',
|
|
3436
|
+
// pivotQuarterColumnHeaderName: '(Quarter)',
|
|
3437
|
+
// AI Assistant panel
|
|
3438
|
+
// aiAssistantPanelTitle: 'AI Assistant',
|
|
3439
|
+
// aiAssistantPanelClose: 'Close AI Assistant',
|
|
3440
|
+
// aiAssistantPanelNewConversation: 'New conversation',
|
|
3441
|
+
// aiAssistantPanelConversationHistory: 'Conversation history',
|
|
3442
|
+
// aiAssistantPanelEmptyConversation: 'No prompt history',
|
|
3443
|
+
// aiAssistantSuggestions: 'Suggestions',
|
|
3444
|
+
// Prompt field
|
|
3445
|
+
promptFieldLabel: "Vstup po\u017Eadavku",
|
|
3446
|
+
promptFieldPlaceholder: "Napi\u0161te po\u017Eadavek\u2026",
|
|
3447
|
+
promptFieldPlaceholderWithRecording: "Napi\u0161te nebo nahrajte po\u017Eadavek\u2026",
|
|
3448
|
+
promptFieldPlaceholderListening: "Naslouch\xE1m po\u017Eadavku\u2026",
|
|
3449
|
+
// promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
|
|
3450
|
+
promptFieldSend: "Odeslat",
|
|
3451
|
+
promptFieldRecord: "Nahr\xE1t",
|
|
3452
|
+
promptFieldStopRecording: "Zastavit nahr\xE1v\xE1n\xED"
|
|
3453
|
+
// Prompt
|
|
3454
|
+
// promptRerun: 'Run again',
|
|
3455
|
+
// promptProcessing: 'Processing…',
|
|
3456
|
+
// promptAppliedChanges: 'Applied changes',
|
|
3457
|
+
// Prompt changes
|
|
3458
|
+
// promptChangeGroupDescription: (column: string) => `Group by ${column}`,
|
|
3459
|
+
// promptChangeAggregationLabel: (column: string, aggregation: string) => `${column} (${aggregation})`,
|
|
3460
|
+
// promptChangeAggregationDescription: (column: string, aggregation: string) => `Aggregate ${column} (${aggregation})`,
|
|
3461
|
+
// promptChangeFilterLabel: (column: string, operator: string, value: string) => {
|
|
3462
|
+
// if (operator === 'is any of') {
|
|
3463
|
+
// return `${column} is any of: ${value}`;
|
|
3464
|
+
// }
|
|
3465
|
+
// return `${column} ${operator} ${value}`;
|
|
3466
|
+
// },
|
|
3467
|
+
// promptChangeFilterDescription: (column: string, operator: string, value: string) => {
|
|
3468
|
+
// if (operator === 'is any of') {
|
|
3469
|
+
// return `Filter where ${column} is any of: ${value}`;
|
|
3470
|
+
// }
|
|
3471
|
+
// return `Filter where ${column} ${operator} ${value}`;
|
|
3472
|
+
// },
|
|
3473
|
+
// promptChangeSortDescription: (column: string, direction: string) => `Sort by ${column} (${direction})`,
|
|
3474
|
+
// promptChangePivotEnableLabel: 'Pivot',
|
|
3475
|
+
// promptChangePivotEnableDescription: 'Enable pivot',
|
|
3476
|
+
// promptChangePivotColumnsLabel: (count: number) => `Columns (${count})`,
|
|
3477
|
+
// promptChangePivotColumnsDescription: (column: string, direction: string) => `${column}${direction ? ` (${direction})` : ''}`,
|
|
3478
|
+
// promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
|
|
3479
|
+
// promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
|
|
3480
|
+
// promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
|
|
3481
|
+
};
|
|
3482
|
+
var csCZ = getGridLocalization(csCZGrid);
|
|
3483
|
+
|
|
3484
|
+
// node_modules/@mui/x-data-grid/esm/constants/localeTextConstants.js
|
|
3485
|
+
var GRID_DEFAULT_LOCALE_TEXT = {
|
|
3486
|
+
// Root
|
|
3487
|
+
noRowsLabel: "No rows",
|
|
3488
|
+
noResultsOverlayLabel: "No results found.",
|
|
3489
|
+
noColumnsOverlayLabel: "No columns",
|
|
3490
|
+
noColumnsOverlayManageColumns: "Manage columns",
|
|
3491
|
+
emptyPivotOverlayLabel: "Add fields to rows, columns, and values to create a pivot table",
|
|
3492
|
+
// Density selector toolbar button text
|
|
3493
|
+
toolbarDensity: "Density",
|
|
3494
|
+
toolbarDensityLabel: "Density",
|
|
3495
|
+
toolbarDensityCompact: "Compact",
|
|
3496
|
+
toolbarDensityStandard: "Standard",
|
|
3497
|
+
toolbarDensityComfortable: "Comfortable",
|
|
3498
|
+
// Columns selector toolbar button text
|
|
3499
|
+
toolbarColumns: "Columns",
|
|
3500
|
+
toolbarColumnsLabel: "Select columns",
|
|
3501
|
+
// Filters toolbar button text
|
|
3502
|
+
toolbarFilters: "Filters",
|
|
3503
|
+
toolbarFiltersLabel: "Show filters",
|
|
3504
|
+
toolbarFiltersTooltipHide: "Hide filters",
|
|
3505
|
+
toolbarFiltersTooltipShow: "Show filters",
|
|
3506
|
+
toolbarFiltersTooltipActive: (count) => count !== 1 ? `${count} active filters` : `${count} active filter`,
|
|
3507
|
+
// Quick filter toolbar field
|
|
3508
|
+
toolbarQuickFilterPlaceholder: "Search\u2026",
|
|
3509
|
+
toolbarQuickFilterLabel: "Search",
|
|
3510
|
+
toolbarQuickFilterDeleteIconLabel: "Clear",
|
|
3511
|
+
// Export selector toolbar button text
|
|
3512
|
+
toolbarExport: "Export",
|
|
3513
|
+
toolbarExportLabel: "Export",
|
|
3514
|
+
toolbarExportCSV: "Download as CSV",
|
|
3515
|
+
toolbarExportPrint: "Print",
|
|
3516
|
+
toolbarExportExcel: "Download as Excel",
|
|
3517
|
+
// Toolbar pivot button
|
|
3518
|
+
toolbarPivot: "Pivot",
|
|
3519
|
+
// Toolbar AI Assistant button
|
|
3520
|
+
toolbarAssistant: "AI Assistant",
|
|
3521
|
+
// Columns management text
|
|
3522
|
+
columnsManagementSearchTitle: "Search",
|
|
3523
|
+
columnsManagementNoColumns: "No columns",
|
|
3524
|
+
columnsManagementShowHideAllText: "Show/Hide All",
|
|
3525
|
+
columnsManagementReset: "Reset",
|
|
3526
|
+
columnsManagementDeleteIconLabel: "Clear",
|
|
3527
|
+
// Filter panel text
|
|
3528
|
+
filterPanelAddFilter: "Add filter",
|
|
3529
|
+
filterPanelRemoveAll: "Remove all",
|
|
3530
|
+
filterPanelDeleteIconLabel: "Delete",
|
|
3531
|
+
filterPanelLogicOperator: "Logic operator",
|
|
3532
|
+
filterPanelOperator: "Operator",
|
|
3533
|
+
filterPanelOperatorAnd: "And",
|
|
3534
|
+
filterPanelOperatorOr: "Or",
|
|
3535
|
+
filterPanelColumns: "Columns",
|
|
3536
|
+
filterPanelInputLabel: "Value",
|
|
3537
|
+
filterPanelInputPlaceholder: "Filter value",
|
|
3538
|
+
// Filter operators text
|
|
3539
|
+
filterOperatorContains: "contains",
|
|
3540
|
+
filterOperatorDoesNotContain: "does not contain",
|
|
3541
|
+
filterOperatorEquals: "equals",
|
|
3542
|
+
filterOperatorDoesNotEqual: "does not equal",
|
|
3543
|
+
filterOperatorStartsWith: "starts with",
|
|
3544
|
+
filterOperatorEndsWith: "ends with",
|
|
3545
|
+
filterOperatorIs: "is",
|
|
3546
|
+
filterOperatorNot: "is not",
|
|
3547
|
+
filterOperatorAfter: "is after",
|
|
3548
|
+
filterOperatorOnOrAfter: "is on or after",
|
|
3549
|
+
filterOperatorBefore: "is before",
|
|
3550
|
+
filterOperatorOnOrBefore: "is on or before",
|
|
3551
|
+
filterOperatorIsEmpty: "is empty",
|
|
3552
|
+
filterOperatorIsNotEmpty: "is not empty",
|
|
3553
|
+
filterOperatorIsAnyOf: "is any of",
|
|
3554
|
+
"filterOperator=": "=",
|
|
3555
|
+
"filterOperator!=": "!=",
|
|
3556
|
+
"filterOperator>": ">",
|
|
3557
|
+
"filterOperator>=": ">=",
|
|
3558
|
+
"filterOperator<": "<",
|
|
3559
|
+
"filterOperator<=": "<=",
|
|
3560
|
+
// Header filter operators text
|
|
3561
|
+
headerFilterOperatorContains: "Contains",
|
|
3562
|
+
headerFilterOperatorDoesNotContain: "Does not contain",
|
|
3563
|
+
headerFilterOperatorEquals: "Equals",
|
|
3564
|
+
headerFilterOperatorDoesNotEqual: "Does not equal",
|
|
3565
|
+
headerFilterOperatorStartsWith: "Starts with",
|
|
3566
|
+
headerFilterOperatorEndsWith: "Ends with",
|
|
3567
|
+
headerFilterOperatorIs: "Is",
|
|
3568
|
+
headerFilterOperatorNot: "Is not",
|
|
3569
|
+
headerFilterOperatorAfter: "Is after",
|
|
3570
|
+
headerFilterOperatorOnOrAfter: "Is on or after",
|
|
3571
|
+
headerFilterOperatorBefore: "Is before",
|
|
3572
|
+
headerFilterOperatorOnOrBefore: "Is on or before",
|
|
3573
|
+
headerFilterOperatorIsEmpty: "Is empty",
|
|
3574
|
+
headerFilterOperatorIsNotEmpty: "Is not empty",
|
|
3575
|
+
headerFilterOperatorIsAnyOf: "Is any of",
|
|
3576
|
+
"headerFilterOperator=": "Equals",
|
|
3577
|
+
"headerFilterOperator!=": "Not equals",
|
|
3578
|
+
"headerFilterOperator>": "Greater than",
|
|
3579
|
+
"headerFilterOperator>=": "Greater than or equal to",
|
|
3580
|
+
"headerFilterOperator<": "Less than",
|
|
3581
|
+
"headerFilterOperator<=": "Less than or equal to",
|
|
3582
|
+
headerFilterClear: "Clear filter",
|
|
3583
|
+
// Filter values text
|
|
3584
|
+
filterValueAny: "any",
|
|
3585
|
+
filterValueTrue: "true",
|
|
3586
|
+
filterValueFalse: "false",
|
|
3587
|
+
// Column menu text
|
|
3588
|
+
columnMenuLabel: "Menu",
|
|
3589
|
+
columnMenuAriaLabel: (columnName) => `${columnName} column menu`,
|
|
3590
|
+
columnMenuShowColumns: "Show columns",
|
|
3591
|
+
columnMenuManageColumns: "Manage columns",
|
|
3592
|
+
columnMenuFilter: "Filter",
|
|
3593
|
+
columnMenuHideColumn: "Hide column",
|
|
3594
|
+
columnMenuUnsort: "Unsort",
|
|
3595
|
+
columnMenuSortAsc: "Sort by ASC",
|
|
3596
|
+
columnMenuSortDesc: "Sort by DESC",
|
|
3597
|
+
columnMenuManagePivot: "Manage pivot",
|
|
3598
|
+
// Column header text
|
|
3599
|
+
columnHeaderFiltersTooltipActive: (count) => count !== 1 ? `${count} active filters` : `${count} active filter`,
|
|
3600
|
+
columnHeaderFiltersLabel: "Show filters",
|
|
3601
|
+
columnHeaderSortIconLabel: "Sort",
|
|
3602
|
+
// Rows selected footer text
|
|
3603
|
+
footerRowSelected: (count) => count !== 1 ? `${count.toLocaleString()} rows selected` : `${count.toLocaleString()} row selected`,
|
|
3604
|
+
// Total row amount footer text
|
|
3605
|
+
footerTotalRows: "Total Rows:",
|
|
3606
|
+
// Total visible row amount footer text
|
|
3607
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,
|
|
3608
|
+
// Checkbox selection text
|
|
3609
|
+
checkboxSelectionHeaderName: "Checkbox selection",
|
|
3610
|
+
checkboxSelectionSelectAllRows: "Select all rows",
|
|
3611
|
+
checkboxSelectionUnselectAllRows: "Unselect all rows",
|
|
3612
|
+
checkboxSelectionSelectRow: "Select row",
|
|
3613
|
+
checkboxSelectionUnselectRow: "Unselect row",
|
|
3614
|
+
// Boolean cell text
|
|
3615
|
+
booleanCellTrueLabel: "yes",
|
|
3616
|
+
booleanCellFalseLabel: "no",
|
|
3617
|
+
// Actions cell more text
|
|
3618
|
+
actionsCellMore: "more",
|
|
3619
|
+
// Column pinning text
|
|
3620
|
+
pinToLeft: "Pin to left",
|
|
3621
|
+
pinToRight: "Pin to right",
|
|
3622
|
+
unpin: "Unpin",
|
|
3623
|
+
// Tree Data
|
|
3624
|
+
treeDataGroupingHeaderName: "Group",
|
|
3625
|
+
treeDataExpand: "see children",
|
|
3626
|
+
treeDataCollapse: "hide children",
|
|
3627
|
+
// Grouping columns
|
|
3628
|
+
groupingColumnHeaderName: "Group",
|
|
3629
|
+
groupColumn: (name) => `Group by ${name}`,
|
|
3630
|
+
unGroupColumn: (name) => `Stop grouping by ${name}`,
|
|
3631
|
+
// Master/detail
|
|
3632
|
+
detailPanelToggle: "Detail panel toggle",
|
|
3633
|
+
expandDetailPanel: "Expand",
|
|
3634
|
+
collapseDetailPanel: "Collapse",
|
|
3635
|
+
// Pagination
|
|
3636
|
+
paginationRowsPerPage: "Rows per page:",
|
|
3637
|
+
paginationDisplayedRows: ({
|
|
3638
|
+
from,
|
|
3639
|
+
to,
|
|
3640
|
+
count,
|
|
3641
|
+
estimated
|
|
3642
|
+
}) => {
|
|
3643
|
+
if (!estimated) {
|
|
3644
|
+
return `${from}\u2013${to} of ${count !== -1 ? count : `more than ${to}`}`;
|
|
3645
|
+
}
|
|
3646
|
+
const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
|
|
3647
|
+
return `${from}\u2013${to} of ${count !== -1 ? count : estimatedLabel}`;
|
|
3648
|
+
},
|
|
3649
|
+
paginationItemAriaLabel: (type) => {
|
|
3650
|
+
if (type === "first") {
|
|
3651
|
+
return "Go to first page";
|
|
3652
|
+
}
|
|
3653
|
+
if (type === "last") {
|
|
3654
|
+
return "Go to last page";
|
|
3655
|
+
}
|
|
3656
|
+
if (type === "next") {
|
|
3657
|
+
return "Go to next page";
|
|
3658
|
+
}
|
|
3659
|
+
return "Go to previous page";
|
|
3660
|
+
},
|
|
3661
|
+
// Row reordering text
|
|
3662
|
+
rowReorderingHeaderName: "Row reordering",
|
|
3663
|
+
// Aggregation
|
|
3664
|
+
aggregationMenuItemHeader: "Aggregation",
|
|
3665
|
+
aggregationFunctionLabelSum: "sum",
|
|
3666
|
+
aggregationFunctionLabelAvg: "avg",
|
|
3667
|
+
aggregationFunctionLabelMin: "min",
|
|
3668
|
+
aggregationFunctionLabelMax: "max",
|
|
3669
|
+
aggregationFunctionLabelSize: "size",
|
|
3670
|
+
// Pivot panel
|
|
3671
|
+
pivotToggleLabel: "Pivot",
|
|
3672
|
+
pivotRows: "Rows",
|
|
3673
|
+
pivotColumns: "Columns",
|
|
3674
|
+
pivotValues: "Values",
|
|
3675
|
+
pivotCloseButton: "Close pivot settings",
|
|
3676
|
+
pivotSearchButton: "Search fields",
|
|
3677
|
+
pivotSearchControlPlaceholder: "Search fields",
|
|
3678
|
+
pivotSearchControlLabel: "Search fields",
|
|
3679
|
+
pivotSearchControlClear: "Clear search",
|
|
3680
|
+
pivotNoFields: "No fields",
|
|
3681
|
+
pivotMenuMoveUp: "Move up",
|
|
3682
|
+
pivotMenuMoveDown: "Move down",
|
|
3683
|
+
pivotMenuMoveToTop: "Move to top",
|
|
3684
|
+
pivotMenuMoveToBottom: "Move to bottom",
|
|
3685
|
+
pivotMenuRows: "Rows",
|
|
3686
|
+
pivotMenuColumns: "Columns",
|
|
3687
|
+
pivotMenuValues: "Values",
|
|
3688
|
+
pivotMenuOptions: "Field options",
|
|
3689
|
+
pivotMenuAddToRows: "Add to Rows",
|
|
3690
|
+
pivotMenuAddToColumns: "Add to Columns",
|
|
3691
|
+
pivotMenuAddToValues: "Add to Values",
|
|
3692
|
+
pivotMenuRemove: "Remove",
|
|
3693
|
+
pivotDragToRows: "Drag here to create rows",
|
|
3694
|
+
pivotDragToColumns: "Drag here to create columns",
|
|
3695
|
+
pivotDragToValues: "Drag here to create values",
|
|
3696
|
+
pivotYearColumnHeaderName: "(Year)",
|
|
3697
|
+
pivotQuarterColumnHeaderName: "(Quarter)",
|
|
3698
|
+
// AI Assistant panel
|
|
3699
|
+
aiAssistantPanelTitle: "AI Assistant",
|
|
3700
|
+
aiAssistantPanelClose: "Close AI Assistant",
|
|
3701
|
+
aiAssistantPanelNewConversation: "New conversation",
|
|
3702
|
+
aiAssistantPanelConversationHistory: "Conversation history",
|
|
3703
|
+
aiAssistantPanelEmptyConversation: "No prompt history",
|
|
3704
|
+
aiAssistantSuggestions: "Suggestions",
|
|
3705
|
+
// Prompt field
|
|
3706
|
+
promptFieldLabel: "Prompt",
|
|
3707
|
+
promptFieldPlaceholder: "Type a prompt\u2026",
|
|
3708
|
+
promptFieldPlaceholderWithRecording: "Type or record a prompt\u2026",
|
|
3709
|
+
promptFieldPlaceholderListening: "Listening for prompt\u2026",
|
|
3710
|
+
promptFieldSpeechRecognitionNotSupported: "Speech recognition is not supported in this browser",
|
|
3711
|
+
promptFieldSend: "Send",
|
|
3712
|
+
promptFieldRecord: "Record",
|
|
3713
|
+
promptFieldStopRecording: "Stop recording",
|
|
3714
|
+
// Prompt
|
|
3715
|
+
promptRerun: "Run again",
|
|
3716
|
+
promptProcessing: "Processing\u2026",
|
|
3717
|
+
promptAppliedChanges: "Applied changes",
|
|
3718
|
+
// Prompt changes
|
|
3719
|
+
promptChangeGroupDescription: (column) => `Group by ${column}`,
|
|
3720
|
+
promptChangeAggregationLabel: (column, aggregation) => `${column} (${aggregation})`,
|
|
3721
|
+
promptChangeAggregationDescription: (column, aggregation) => `Aggregate ${column} (${aggregation})`,
|
|
3722
|
+
promptChangeFilterLabel: (column, operator, value) => {
|
|
3723
|
+
if (operator === "is any of") {
|
|
3724
|
+
return `${column} is any of: ${value}`;
|
|
3725
|
+
}
|
|
3726
|
+
return `${column} ${operator} ${value}`;
|
|
3727
|
+
},
|
|
3728
|
+
promptChangeFilterDescription: (column, operator, value) => {
|
|
3729
|
+
if (operator === "is any of") {
|
|
3730
|
+
return `Filter where ${column} is any of: ${value}`;
|
|
3731
|
+
}
|
|
3732
|
+
return `Filter where ${column} ${operator} ${value}`;
|
|
3733
|
+
},
|
|
3734
|
+
promptChangeSortDescription: (column, direction) => `Sort by ${column} (${direction})`,
|
|
3735
|
+
promptChangePivotEnableLabel: "Pivot",
|
|
3736
|
+
promptChangePivotEnableDescription: "Enable pivot",
|
|
3737
|
+
promptChangePivotColumnsLabel: (count) => `Columns (${count})`,
|
|
3738
|
+
promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ""}`,
|
|
3739
|
+
promptChangePivotRowsLabel: (count) => `Rows (${count})`,
|
|
3740
|
+
promptChangePivotValuesLabel: (count) => `Values (${count})`,
|
|
3741
|
+
promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
|
|
3742
|
+
};
|
|
3743
|
+
|
|
3744
|
+
// node_modules/@mui/x-data-grid/esm/locales/enUS.js
|
|
3745
|
+
var enUS2 = getGridLocalization(GRID_DEFAULT_LOCALE_TEXT);
|
|
3746
|
+
|
|
3747
|
+
// node_modules/@mui/x-date-pickers/esm/locales/csCZ.js
|
|
3748
|
+
var timeViews = {
|
|
3749
|
+
hours: "Hodiny",
|
|
3750
|
+
minutes: "Minuty",
|
|
3751
|
+
seconds: "Sekundy",
|
|
3752
|
+
meridiem: "Odpoledne"
|
|
3753
|
+
};
|
|
3754
|
+
var csCZPickers = {
|
|
3755
|
+
// Calendar navigation
|
|
3756
|
+
previousMonth: "P\u0159edchoz\xED m\u011Bs\xEDc",
|
|
3757
|
+
nextMonth: "Dal\u0161\xED m\u011Bs\xEDc",
|
|
3758
|
+
// View navigation
|
|
3759
|
+
openPreviousView: "Otev\u0159\xEDt p\u0159edchoz\xED zobrazen\xED",
|
|
3760
|
+
openNextView: "Otev\u0159\xEDt dal\u0161\xED zobrazen\xED",
|
|
3761
|
+
calendarViewSwitchingButtonAriaLabel: (view) => view === "year" ? "ro\u010Dn\xED zobrazen\xED otev\u0159eno, p\u0159epn\u011Bte do zobrazen\xED kalend\xE1\u0159e" : "zobrazen\xED kalend\xE1\u0159e otev\u0159eno, p\u0159epn\u011Bte do zobrazen\xED roku",
|
|
3762
|
+
// DateRange labels
|
|
3763
|
+
start: "Za\u010D\xE1tek",
|
|
3764
|
+
end: "Konec",
|
|
3765
|
+
startDate: "Datum za\u010D\xE1tku",
|
|
3766
|
+
startTime: "\u010Cas za\u010D\xE1tku",
|
|
3767
|
+
endDate: "Datum konce",
|
|
3768
|
+
endTime: "\u010Cas konce",
|
|
3769
|
+
// Action bar
|
|
3770
|
+
cancelButtonLabel: "Zru\u0161it",
|
|
3771
|
+
clearButtonLabel: "Vymazat",
|
|
3772
|
+
okButtonLabel: "Potvrdit",
|
|
3773
|
+
todayButtonLabel: "Dnes",
|
|
3774
|
+
nextStepButtonLabel: "Dal\u0161\xED",
|
|
3775
|
+
// Toolbar titles
|
|
3776
|
+
datePickerToolbarTitle: "Vyberte datum",
|
|
3777
|
+
dateTimePickerToolbarTitle: "Vyberte datum a \u010Das",
|
|
3778
|
+
timePickerToolbarTitle: "Vyberte \u010Das",
|
|
3779
|
+
dateRangePickerToolbarTitle: "Vyberte rozmez\xED dat",
|
|
3780
|
+
// timeRangePickerToolbarTitle: 'Select time range',
|
|
3781
|
+
// Clock labels
|
|
3782
|
+
clockLabelText: (view, formattedTime) => `${timeViews[view] ?? view} vybr\xE1ny. ${!formattedTime ? "Nen\xED vybr\xE1n \u010Das" : `Vybran\xFD \u010Das je ${formattedTime}`}`,
|
|
3783
|
+
hoursClockNumberText: (hours) => `${hours} hodin`,
|
|
3784
|
+
minutesClockNumberText: (minutes) => `${minutes} minut`,
|
|
3785
|
+
secondsClockNumberText: (seconds) => `${seconds} sekund`,
|
|
3786
|
+
// Digital clock labels
|
|
3787
|
+
selectViewText: (view) => `Vyberte ${timeViews[view]}`,
|
|
3788
|
+
// Calendar labels
|
|
3789
|
+
calendarWeekNumberHeaderLabel: "T\xFDden v roce",
|
|
3790
|
+
calendarWeekNumberHeaderText: "#",
|
|
3791
|
+
calendarWeekNumberAriaLabelText: (weekNumber) => `${weekNumber} t\xFDden v roce`,
|
|
3792
|
+
calendarWeekNumberText: (weekNumber) => `${weekNumber}`,
|
|
3793
|
+
// Open Picker labels
|
|
3794
|
+
openDatePickerDialogue: (formattedDate) => formattedDate ? `Vyberte datum, vybran\xE9 datum je ${formattedDate}` : "Vyberte datum",
|
|
3795
|
+
openTimePickerDialogue: (formattedTime) => formattedTime ? `Vyberte \u010Das, vybran\xFD \u010Das je ${formattedTime}` : "Vyberte \u010Das",
|
|
3796
|
+
// openRangePickerDialogue: formattedRange => formattedRange ? `Choose range, selected range is ${formattedRange}` : 'Choose range',
|
|
3797
|
+
fieldClearLabel: "Vymazat",
|
|
3798
|
+
// Table labels
|
|
3799
|
+
timeTableLabel: "vyberte \u010Das",
|
|
3800
|
+
dateTableLabel: "vyberte datum",
|
|
3801
|
+
// Field section placeholders
|
|
3802
|
+
fieldYearPlaceholder: (params) => "Y".repeat(params.digitAmount),
|
|
3803
|
+
fieldMonthPlaceholder: (params) => params.contentType === "letter" ? "MMMM" : "MM",
|
|
3804
|
+
fieldDayPlaceholder: () => "DD",
|
|
3805
|
+
fieldWeekDayPlaceholder: (params) => params.contentType === "letter" ? "EEEE" : "EE",
|
|
3806
|
+
fieldHoursPlaceholder: () => "hh",
|
|
3807
|
+
fieldMinutesPlaceholder: () => "mm",
|
|
3808
|
+
fieldSecondsPlaceholder: () => "ss",
|
|
3809
|
+
fieldMeridiemPlaceholder: () => "aa",
|
|
3810
|
+
// View names
|
|
3811
|
+
year: "Rok",
|
|
3812
|
+
month: "M\u011Bs\xEDc",
|
|
3813
|
+
day: "Den",
|
|
3814
|
+
weekDay: "Pracovn\xED den",
|
|
3815
|
+
hours: "Hodiny",
|
|
3816
|
+
minutes: "Minuty",
|
|
3817
|
+
seconds: "Sekundy",
|
|
3818
|
+
meridiem: "Odpoledne",
|
|
3819
|
+
// Common
|
|
3820
|
+
empty: "Pr\xE1zdn\xFD"
|
|
3821
|
+
};
|
|
3822
|
+
var csCZ2 = getPickersLocalization(csCZPickers);
|
|
3823
|
+
|
|
3824
|
+
// src/hooks/ThemeHook.ts
|
|
3104
3825
|
import { useTranslation as useTranslation6 } from "react-i18next";
|
|
3105
3826
|
var WISTRON_PRIMARY_COLOR = "#00506E";
|
|
3106
3827
|
var WISTRON_SECONDARY_COLOR = "#64DC00";
|
|
@@ -3128,7 +3849,7 @@ var useGetTheme = (theme) => {
|
|
|
3128
3849
|
},
|
|
3129
3850
|
components: {
|
|
3130
3851
|
MuiCssBaseline: {
|
|
3131
|
-
styleOverrides: (
|
|
3852
|
+
styleOverrides: ({ palette }) => {
|
|
3132
3853
|
return {
|
|
3133
3854
|
body: {
|
|
3134
3855
|
"&::-webkit-scrollbar, & *::-webkit-scrollbar": {
|
|
@@ -3136,15 +3857,15 @@ var useGetTheme = (theme) => {
|
|
|
3136
3857
|
height: "0.7em"
|
|
3137
3858
|
},
|
|
3138
3859
|
"&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {
|
|
3139
|
-
backgroundColor:
|
|
3860
|
+
backgroundColor: palette.mode === "dark" ? grey2[900] : grey2[200],
|
|
3140
3861
|
borderRadius: "5px"
|
|
3141
3862
|
},
|
|
3142
3863
|
"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
|
|
3143
|
-
backgroundColor:
|
|
3864
|
+
backgroundColor: palette.mode === "dark" ? grey2[800] : grey2[400],
|
|
3144
3865
|
borderRadius: "10px"
|
|
3145
3866
|
},
|
|
3146
3867
|
"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": {
|
|
3147
|
-
backgroundColor:
|
|
3868
|
+
backgroundColor: palette.mode === "dark" ? grey2[700] : grey2[500]
|
|
3148
3869
|
},
|
|
3149
3870
|
"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": {
|
|
3150
3871
|
backgroundColor: "transparent"
|
|
@@ -3156,9 +3877,9 @@ var useGetTheme = (theme) => {
|
|
|
3156
3877
|
...theme?.components
|
|
3157
3878
|
}
|
|
3158
3879
|
},
|
|
3159
|
-
i18n2.resolvedLanguage === "cs" ?
|
|
3160
|
-
i18n2.resolvedLanguage === "cs" ?
|
|
3161
|
-
i18n2.resolvedLanguage === "cs" ?
|
|
3880
|
+
i18n2.resolvedLanguage === "cs" ? csCZ : enUS2,
|
|
3881
|
+
i18n2.resolvedLanguage === "cs" ? csCZ2 : enUS,
|
|
3882
|
+
i18n2.resolvedLanguage === "cs" ? csCZ3 : enUS3
|
|
3162
3883
|
);
|
|
3163
3884
|
};
|
|
3164
3885
|
|
|
@@ -3177,7 +3898,6 @@ var Layout = (props) => {
|
|
|
3177
3898
|
const isFetching = !!useIsFetching();
|
|
3178
3899
|
const isMutating = !!useIsMutating();
|
|
3179
3900
|
return /* @__PURE__ */ jsxs15(ThemeProvider, { theme, children: [
|
|
3180
|
-
/* @__PURE__ */ jsx27(InitColorSchemeScript, {}),
|
|
3181
3901
|
/* @__PURE__ */ jsx27(CssBaseline, {}),
|
|
3182
3902
|
/* @__PURE__ */ jsxs15(Box9, { sx: { display: "flex", height: "100dvh", maxHeight: "100dvh", overflow: "hidden", width: "100%" }, children: [
|
|
3183
3903
|
/* @__PURE__ */ jsx27(
|
|
@@ -3214,12 +3934,8 @@ var Layout = (props) => {
|
|
|
3214
3934
|
] });
|
|
3215
3935
|
};
|
|
3216
3936
|
|
|
3217
|
-
// src/contexts/LayoutContext.ts
|
|
3218
|
-
import { createContext as createContext4, useContext as useContext4 } from "react";
|
|
3219
|
-
var LayoutContext = createContext4(null);
|
|
3220
|
-
|
|
3221
3937
|
// src/providers/LayoutProvider.tsx
|
|
3222
|
-
import { jsx as jsx28
|
|
3938
|
+
import { jsx as jsx28 } from "react/jsx-runtime";
|
|
3223
3939
|
var LayoutProvider = (props) => {
|
|
3224
3940
|
const [user, setUser] = useState10({ employeeId: "", name: "Unknown", department: "", company: "", category: "" });
|
|
3225
3941
|
const { t: t2 } = useTranslation7();
|
|
@@ -3227,10 +3943,7 @@ var LayoutProvider = (props) => {
|
|
|
3227
3943
|
useEffect6(() => {
|
|
3228
3944
|
z.config(default2.resolvedLanguage === "cs" ? cs() : en());
|
|
3229
3945
|
}, []);
|
|
3230
|
-
return /* @__PURE__ */ jsx28(
|
|
3231
|
-
"\xA8",
|
|
3232
|
-
/* @__PURE__ */ jsx28(DialogsProvider, { children: props.children })
|
|
3233
|
-
] }) }) }) });
|
|
3946
|
+
return /* @__PURE__ */ jsx28(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: default2.resolvedLanguage, children: /* @__PURE__ */ jsx28(LayoutContext.Provider, { value: { user: { get: user, set: setUser } }, children: /* @__PURE__ */ jsx28(Layout, { navigation, theme: props.theme, children: /* @__PURE__ */ jsx28(DialogsProvider, { children: props.children }) }) }) });
|
|
3234
3947
|
};
|
|
3235
3948
|
|
|
3236
3949
|
// src/index.ts
|
|
@@ -3281,11 +3994,11 @@ var FormAutocomplete = ({ textFieldProps, ...autocompleteProps }) => {
|
|
|
3281
3994
|
|
|
3282
3995
|
// src/components/form/FormCheckbox.tsx
|
|
3283
3996
|
import { Checkbox, FormControl, FormControlLabel, FormHelperText } from "@mui/material";
|
|
3284
|
-
import { jsx as jsx30, jsxs as
|
|
3997
|
+
import { jsx as jsx30, jsxs as jsxs16 } from "react/jsx-runtime";
|
|
3285
3998
|
var FormCheckbox = (props) => {
|
|
3286
3999
|
const field = useFieldContext();
|
|
3287
4000
|
const { isTouched, hasError, helperText } = getFieldStatus(field);
|
|
3288
|
-
return /* @__PURE__ */
|
|
4001
|
+
return /* @__PURE__ */ jsxs16(FormControl, { component: "fieldset", children: [
|
|
3289
4002
|
/* @__PURE__ */ jsx30(
|
|
3290
4003
|
FormControlLabel,
|
|
3291
4004
|
{
|
|
@@ -3389,11 +4102,11 @@ var FormNumberField = ({ options, ...props }) => {
|
|
|
3389
4102
|
|
|
3390
4103
|
// src/components/form/FormRadioGroup.tsx
|
|
3391
4104
|
import { FormControl as FormControl2, FormControlLabel as FormControlLabel2, FormHelperText as FormHelperText2, FormLabel, Radio, RadioGroup } from "@mui/material";
|
|
3392
|
-
import { jsx as jsx34, jsxs as
|
|
4105
|
+
import { jsx as jsx34, jsxs as jsxs17 } from "react/jsx-runtime";
|
|
3393
4106
|
var FormRadioGroup = ({ label, options, ...props }) => {
|
|
3394
4107
|
const field = useFieldContext();
|
|
3395
4108
|
const { isTouched, hasError, helperText } = getFieldStatus(field);
|
|
3396
|
-
return /* @__PURE__ */
|
|
4109
|
+
return /* @__PURE__ */ jsxs17(FormControl2, { component: "fieldset", children: [
|
|
3397
4110
|
label && /* @__PURE__ */ jsx34(FormLabel, { component: "legend", children: label }),
|
|
3398
4111
|
/* @__PURE__ */ jsx34(
|
|
3399
4112
|
RadioGroup,
|
|
@@ -3421,11 +4134,11 @@ var FormRadioGroup = ({ label, options, ...props }) => {
|
|
|
3421
4134
|
|
|
3422
4135
|
// src/components/form/FormSlider.tsx
|
|
3423
4136
|
import { FormControl as FormControl3, FormHelperText as FormHelperText3, FormLabel as FormLabel2, Slider } from "@mui/material";
|
|
3424
|
-
import { jsx as jsx35, jsxs as
|
|
4137
|
+
import { jsx as jsx35, jsxs as jsxs18 } from "react/jsx-runtime";
|
|
3425
4138
|
var FormSlider = ({ label, ...props }) => {
|
|
3426
4139
|
const field = useFieldContext();
|
|
3427
4140
|
const { isTouched, hasError, helperText } = getFieldStatus(field);
|
|
3428
|
-
return /* @__PURE__ */
|
|
4141
|
+
return /* @__PURE__ */ jsxs18(FormControl3, { component: "fieldset", children: [
|
|
3429
4142
|
label && /* @__PURE__ */ jsx35(FormLabel2, { children: label }),
|
|
3430
4143
|
/* @__PURE__ */ jsx35(
|
|
3431
4144
|
Slider,
|
|
@@ -3467,11 +4180,11 @@ var FormSubmitButton = (props) => {
|
|
|
3467
4180
|
|
|
3468
4181
|
// src/components/form/FormSwitch.tsx
|
|
3469
4182
|
import { FormControl as FormControl4, FormControlLabel as FormControlLabel3, FormHelperText as FormHelperText4, Switch } from "@mui/material";
|
|
3470
|
-
import { jsx as jsx37, jsxs as
|
|
4183
|
+
import { jsx as jsx37, jsxs as jsxs19 } from "react/jsx-runtime";
|
|
3471
4184
|
var FormSwitch = (props) => {
|
|
3472
4185
|
const field = useFieldContext();
|
|
3473
4186
|
const { isTouched, hasError, helperText } = getFieldStatus(field);
|
|
3474
|
-
return /* @__PURE__ */
|
|
4187
|
+
return /* @__PURE__ */ jsxs19(FormControl4, { component: "fieldset", children: [
|
|
3475
4188
|
/* @__PURE__ */ jsx37(
|
|
3476
4189
|
FormControlLabel3,
|
|
3477
4190
|
{
|
|
@@ -3558,6 +4271,7 @@ export {
|
|
|
3558
4271
|
TableContainer,
|
|
3559
4272
|
TypographyWithIcon,
|
|
3560
4273
|
rootRouteHead,
|
|
4274
|
+
setSSRLanguage,
|
|
3561
4275
|
t,
|
|
3562
4276
|
useDeleteFile,
|
|
3563
4277
|
useDeleteFiles,
|