wcz-test 4.2.2 → 4.2.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/dist/index.d.ts CHANGED
@@ -12,9 +12,9 @@ import { ErrorComponentProps, LinkComponent, LinkOptions } from "@tanstack/react
12
12
  import * as axios0 from "axios";
13
13
  import { GridActionsCellItemProps, GridColumnHeaderParams, GridRenderCellParams, GridValidRowModel } from "@mui/x-data-grid-premium";
14
14
  import { TFunction, t } from "i18next";
15
- import useLocalStorageState from "use-local-storage-state";
16
15
  import * as _tanstack_react_form0 from "@tanstack/react-form";
17
16
  import { DatePickerProps, DateTimePickerProps } from "@mui/x-date-pickers-pro";
17
+ import useLocalStorageState from "use-local-storage-state";
18
18
  import * as _tanstack_start_client_core0 from "@tanstack/start-client-core";
19
19
  import * as _tanstack_form_core0 from "@tanstack/form-core";
20
20
  import { InputAttributes, NumericFormatProps } from "react-number-format/types/types";
package/dist/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import { Autocomplete, Box, Button, CardHeader, Checkbox, Chip, CssBaseline, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Fab, FormControl, FormControlLabel, FormHelperText, FormLabel, IconButton, ImageListItem, ImageListItemBar, InitColorSchemeScript, LinearProgress, Link, List, ListItemButton, ListItemIcon, ListItemText, Menu, Paper, Radio, RadioGroup, Slider, Stack, Switch, Tab, TextField, Tooltip, Typography, createTheme, darken, lighten, useEventCallback, useTheme } from "@mui/material";
1
+ import { Autocomplete, Box, Button, CardHeader, Checkbox, Chip, Dialog, DialogActions, DialogContent, DialogTitle, Divider, Fab, FormControl, FormControlLabel, FormHelperText, FormLabel, IconButton, ImageListItem, ImageListItemBar, Link, List, ListItemButton, ListItemIcon, ListItemText, Menu, Paper, Radio, RadioGroup, Slider, Stack, Switch, Tab, TextField, Tooltip, Typography, useEventCallback, useTheme } from "@mui/material";
2
2
  import { jsx, jsxs } from "react/jsx-runtime";
3
3
  import * as React$1 from "react";
4
4
  import React, { Fragment, createContext, useCallback, useContext, useEffect, useId, useMemo, useRef, useState } from "react";
@@ -9,7 +9,7 @@ import MoreVert from "@mui/icons-material/MoreVert";
9
9
  import { grey } from "@mui/material/colors";
10
10
  import Delete from "@mui/icons-material/Delete";
11
11
  import FileDownload from "@mui/icons-material/FileDownload";
12
- import { useIsFetching, useIsMutating, useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
12
+ import { useMutation, useQuery, useQueryClient } from "@tanstack/react-query";
13
13
  import saveAs from "file-saver";
14
14
  import { Upload } from "tus-js-client";
15
15
  import { uuidv7, uuidv7 as uuidv7$1 } from "uuidv7";
@@ -21,7 +21,7 @@ import SmartDisplay from "@mui/icons-material/SmartDisplay";
21
21
  import Close from "@mui/icons-material/Close";
22
22
  import Edit from "@mui/icons-material/Edit";
23
23
  import { GridActionsCellItem } from "@mui/x-data-grid-premium";
24
- import { ThemeProvider, styled, useThemeProps } from "@mui/material/styles";
24
+ import { useThemeProps } from "@mui/material/styles";
25
25
  import dayjs from "dayjs";
26
26
  import weekOfYearPlugin from "dayjs/plugin/weekOfYear.js";
27
27
  import customParseFormatPlugin from "dayjs/plugin/customParseFormat.js";
@@ -35,11 +35,10 @@ import { getCookie } from "@tanstack/react-start/server";
35
35
  import i18n, { t, default as i18next_default } from "i18next";
36
36
  import LanguageDetector from "i18next-browser-languagedetector";
37
37
  import HttpBackend from "i18next-http-backend";
38
- import useLocalStorageState, { default as useLocalStorageState$1 } from "use-local-storage-state";
39
- import { csCZ, enUS } from "@mui/material/locale";
40
38
  import { createFormHook, createFormHookContexts } from "@tanstack/react-form";
41
39
  import { DatePicker, DateTimePicker } from "@mui/x-date-pickers-pro";
42
40
  import { NumericFormat } from "react-number-format";
41
+ import useLocalStorageState from "use-local-storage-state";
43
42
 
44
43
  //#region rolldown:runtime
45
44
  var __create = Object.create;
@@ -1919,71 +1918,6 @@ var require_prop_types = /* @__PURE__ */ __commonJS({ "node_modules/prop-types/i
1919
1918
  } else module.exports = require_factoryWithThrowingShims()();
1920
1919
  }) });
1921
1920
 
1922
- //#endregion
1923
- //#region node_modules/@mui/x-date-pickers/esm/locales/utils/getPickersLocalization.js
1924
- const getPickersLocalization = (pickersTranslations) => {
1925
- return { components: { MuiLocalizationProvider: { defaultProps: { localeText: _extends({}, pickersTranslations) } } } };
1926
- };
1927
-
1928
- //#endregion
1929
- //#region node_modules/@mui/x-date-pickers/esm/locales/enUS.js
1930
- const enUSPickers = {
1931
- previousMonth: "Previous month",
1932
- nextMonth: "Next month",
1933
- openPreviousView: "Open previous view",
1934
- openNextView: "Open next view",
1935
- calendarViewSwitchingButtonAriaLabel: (view) => view === "year" ? "year view is open, switch to calendar view" : "calendar view is open, switch to year view",
1936
- start: "Start",
1937
- end: "End",
1938
- startDate: "Start date",
1939
- startTime: "Start time",
1940
- endDate: "End date",
1941
- endTime: "End time",
1942
- cancelButtonLabel: "Cancel",
1943
- clearButtonLabel: "Clear",
1944
- okButtonLabel: "OK",
1945
- todayButtonLabel: "Today",
1946
- nextStepButtonLabel: "Next",
1947
- datePickerToolbarTitle: "Select date",
1948
- dateTimePickerToolbarTitle: "Select date & time",
1949
- timePickerToolbarTitle: "Select time",
1950
- dateRangePickerToolbarTitle: "Select date range",
1951
- timeRangePickerToolbarTitle: "Select time range",
1952
- clockLabelText: (view, formattedTime) => `Select ${view}. ${!formattedTime ? "No time selected" : `Selected time is ${formattedTime}`}`,
1953
- hoursClockNumberText: (hours) => `${hours} hours`,
1954
- minutesClockNumberText: (minutes) => `${minutes} minutes`,
1955
- secondsClockNumberText: (seconds) => `${seconds} seconds`,
1956
- selectViewText: (view) => `Select ${view}`,
1957
- calendarWeekNumberHeaderLabel: "Week number",
1958
- calendarWeekNumberHeaderText: "#",
1959
- calendarWeekNumberAriaLabelText: (weekNumber) => `Week ${weekNumber}`,
1960
- calendarWeekNumberText: (weekNumber) => `${weekNumber}`,
1961
- openDatePickerDialogue: (formattedDate) => formattedDate ? `Choose date, selected date is ${formattedDate}` : "Choose date",
1962
- openTimePickerDialogue: (formattedTime) => formattedTime ? `Choose time, selected time is ${formattedTime}` : "Choose time",
1963
- openRangePickerDialogue: (formattedRange) => formattedRange ? `Choose range, selected range is ${formattedRange}` : "Choose range",
1964
- fieldClearLabel: "Clear",
1965
- timeTableLabel: "pick time",
1966
- dateTableLabel: "pick date",
1967
- fieldYearPlaceholder: (params) => "Y".repeat(params.digitAmount),
1968
- fieldMonthPlaceholder: (params) => params.contentType === "letter" ? "MMMM" : "MM",
1969
- fieldDayPlaceholder: () => "DD",
1970
- fieldWeekDayPlaceholder: (params) => params.contentType === "letter" ? "EEEE" : "EE",
1971
- fieldHoursPlaceholder: () => "hh",
1972
- fieldMinutesPlaceholder: () => "mm",
1973
- fieldSecondsPlaceholder: () => "ss",
1974
- fieldMeridiemPlaceholder: () => "aa",
1975
- year: "Year",
1976
- month: "Month",
1977
- day: "Day",
1978
- weekDay: "Week day",
1979
- hours: "Hours",
1980
- minutes: "Minutes",
1981
- seconds: "Seconds",
1982
- meridiem: "Meridiem",
1983
- empty: "Empty"
1984
- };
1985
- const enUS$2 = getPickersLocalization(enUSPickers);
1986
-
1987
1921
  //#endregion
1988
1922
  //#region node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js
1989
1923
  var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types(), 1);
@@ -2701,538 +2635,10 @@ const setSSRLanguage = createIsomorphicFn().server(async () => {
2701
2635
  //#region src/contexts/LayoutContext.ts
2702
2636
  const LayoutContext = createContext(null);
2703
2637
 
2704
- //#endregion
2705
- //#region node_modules/@mui/x-data-grid/esm/utils/getGridLocalization.js
2706
- const getGridLocalization = (gridTranslations) => ({ components: { MuiDataGrid: { defaultProps: { localeText: gridTranslations } } } });
2707
-
2708
- //#endregion
2709
- //#region node_modules/@mui/x-data-grid/esm/locales/csCZ.js
2710
- const csCZGrid = {
2711
- noRowsLabel: "Žádné záznamy",
2712
- noResultsOverlayLabel: "Nenašly se žadné výsledky.",
2713
- noColumnsOverlayLabel: "Žádné sloupce",
2714
- noColumnsOverlayManageColumns: "Spravovat sloupce",
2715
- toolbarDensity: "Zobrazení",
2716
- toolbarDensityLabel: "Zobrazení",
2717
- toolbarDensityCompact: "Kompaktní",
2718
- toolbarDensityStandard: "Standartní",
2719
- toolbarDensityComfortable: "Komfortní",
2720
- toolbarColumns: "Sloupce",
2721
- toolbarColumnsLabel: "Vybrat sloupec",
2722
- toolbarFilters: "Filtry",
2723
- toolbarFiltersLabel: "Zobrazit filtry",
2724
- toolbarFiltersTooltipHide: "Skrýt filtry",
2725
- toolbarFiltersTooltipShow: "Zobrazit filtry",
2726
- toolbarFiltersTooltipActive: (count) => {
2727
- let pluralForm = "aktivních filtrů";
2728
- if (count > 1 && count < 5) pluralForm = "aktivní filtry";
2729
- else if (count === 1) pluralForm = "aktivní filtr";
2730
- return `${count} ${pluralForm}`;
2731
- },
2732
- toolbarQuickFilterPlaceholder: "Hledat…",
2733
- toolbarQuickFilterLabel: "Hledat",
2734
- toolbarQuickFilterDeleteIconLabel: "Vymazat",
2735
- toolbarExport: "Export",
2736
- toolbarExportLabel: "Export",
2737
- toolbarExportCSV: "Stáhnout jako CSV",
2738
- toolbarExportPrint: "Vytisknout",
2739
- toolbarExportExcel: "Stáhnout jako Excel",
2740
- columnsManagementSearchTitle: "Hledat sloupce",
2741
- columnsManagementNoColumns: "Žádné sloupce",
2742
- columnsManagementShowHideAllText: "Zobrazit/skrýt vše",
2743
- columnsManagementReset: "Resetovat",
2744
- columnsManagementDeleteIconLabel: "Vyčistit",
2745
- filterPanelAddFilter: "Přidat filtr",
2746
- filterPanelRemoveAll: "Odstranit vše",
2747
- filterPanelDeleteIconLabel: "Odstranit",
2748
- filterPanelLogicOperator: "Logický operátor",
2749
- filterPanelOperator: "Operátory",
2750
- filterPanelOperatorAnd: "A",
2751
- filterPanelOperatorOr: "Nebo",
2752
- filterPanelColumns: "Sloupce",
2753
- filterPanelInputLabel: "Hodnota",
2754
- filterPanelInputPlaceholder: "Hodnota filtru",
2755
- filterOperatorContains: "obsahuje",
2756
- filterOperatorDoesNotContain: "neobsahuje",
2757
- filterOperatorEquals: "rovná se",
2758
- filterOperatorDoesNotEqual: "nerovná se",
2759
- filterOperatorStartsWith: "začíná na",
2760
- filterOperatorEndsWith: "končí na",
2761
- filterOperatorIs: "je",
2762
- filterOperatorNot: "není",
2763
- filterOperatorAfter: "je po",
2764
- filterOperatorOnOrAfter: "je po včetně",
2765
- filterOperatorBefore: "je před",
2766
- filterOperatorOnOrBefore: "je před včetně",
2767
- filterOperatorIsEmpty: "je prázdný",
2768
- filterOperatorIsNotEmpty: "není prázdný",
2769
- filterOperatorIsAnyOf: "je jeden z",
2770
- "filterOperator=": "=",
2771
- "filterOperator!=": "!=",
2772
- "filterOperator>": ">",
2773
- "filterOperator>=": ">=",
2774
- "filterOperator<": "<",
2775
- "filterOperator<=": "<=",
2776
- headerFilterOperatorContains: "Obsahuje",
2777
- headerFilterOperatorDoesNotContain: "Neobsahuje",
2778
- headerFilterOperatorEquals: "Rovná se",
2779
- headerFilterOperatorDoesNotEqual: "Nerovná se",
2780
- headerFilterOperatorStartsWith: "Začíná na",
2781
- headerFilterOperatorEndsWith: "Končí na",
2782
- headerFilterOperatorIs: "Je",
2783
- headerFilterOperatorNot: "Není",
2784
- headerFilterOperatorAfter: "Je po",
2785
- headerFilterOperatorOnOrAfter: "Je po včetně",
2786
- headerFilterOperatorBefore: "Je před",
2787
- headerFilterOperatorOnOrBefore: "Je před včetně",
2788
- headerFilterOperatorIsEmpty: "Je prázdný",
2789
- headerFilterOperatorIsNotEmpty: "Není prázdný",
2790
- headerFilterOperatorIsAnyOf: "Je jeden z",
2791
- "headerFilterOperator=": "Rovná se",
2792
- "headerFilterOperator!=": "Nerovná se",
2793
- "headerFilterOperator>": "Větší než",
2794
- "headerFilterOperator>=": "Větší než nebo rovno",
2795
- "headerFilterOperator<": "Menší než",
2796
- "headerFilterOperator<=": "Menší než nebo rovno",
2797
- headerFilterClear: "Zrušit filtr",
2798
- filterValueAny: "jakýkoliv",
2799
- filterValueTrue: "ano",
2800
- filterValueFalse: "ne",
2801
- columnMenuLabel: "Menu",
2802
- columnMenuAriaLabel: (columnName) => `Možnosti sloupce ${columnName}`,
2803
- columnMenuShowColumns: "Zobrazit sloupce",
2804
- columnMenuManageColumns: "Spravovat sloupce",
2805
- columnMenuFilter: "Filtr",
2806
- columnMenuHideColumn: "Skrýt",
2807
- columnMenuUnsort: "Zrušit filtry",
2808
- columnMenuSortAsc: "Seřadit vzestupně",
2809
- columnMenuSortDesc: "Seřadit sestupně",
2810
- columnHeaderFiltersTooltipActive: (count) => {
2811
- let pluralForm = "aktivních filtrů";
2812
- if (count > 1 && count < 5) pluralForm = "aktivní filtry";
2813
- else if (count === 1) pluralForm = "aktivní filtr";
2814
- return `${count} ${pluralForm}`;
2815
- },
2816
- columnHeaderFiltersLabel: "Zobrazit filtry",
2817
- columnHeaderSortIconLabel: "Filtrovat",
2818
- footerRowSelected: (count) => {
2819
- let pluralForm = "vybraných záznamů";
2820
- if (count > 1 && count < 5) pluralForm = "vybrané záznamy";
2821
- else if (count === 1) pluralForm = "vybraný záznam";
2822
- return `${count} ${pluralForm}`;
2823
- },
2824
- footerTotalRows: "Celkem řádků:",
2825
- footerTotalVisibleRows: (visibleCount, totalCount) => {
2826
- const str = totalCount.toString();
2827
- const firstDigit = str[0];
2828
- const op = [
2829
- "4",
2830
- "6",
2831
- "7"
2832
- ].includes(firstDigit) || firstDigit === "1" && str.length % 3 === 0 ? "ze" : "z";
2833
- return `${visibleCount.toLocaleString()} ${op} ${totalCount.toLocaleString()}`;
2834
- },
2835
- checkboxSelectionHeaderName: "Výběr řádku",
2836
- checkboxSelectionSelectAllRows: "Označit všechny řádky",
2837
- checkboxSelectionUnselectAllRows: "Odznačit všechny řádky",
2838
- checkboxSelectionSelectRow: "Označit řádek",
2839
- checkboxSelectionUnselectRow: "Odznačit řádek",
2840
- booleanCellTrueLabel: "ano",
2841
- booleanCellFalseLabel: "ne",
2842
- actionsCellMore: "více",
2843
- pinToLeft: "Připnout vlevo",
2844
- pinToRight: "Připnout vpravo",
2845
- unpin: "Odepnout",
2846
- treeDataGroupingHeaderName: "Skupina",
2847
- treeDataExpand: "zobrazit potomky",
2848
- treeDataCollapse: "skrýt potomky",
2849
- groupingColumnHeaderName: "Skupina",
2850
- groupColumn: (name) => `Seskupit podle ${name}`,
2851
- unGroupColumn: (name) => `Přestat seskupovat podle ${name}`,
2852
- detailPanelToggle: "Přepnout detail panelu",
2853
- expandDetailPanel: "Rozbalit",
2854
- collapseDetailPanel: "Sbalit",
2855
- paginationRowsPerPage: "Řádků na stránce:",
2856
- paginationDisplayedRows: ({ from, to, count, estimated }) => {
2857
- if (!estimated) return `${from}–${to} z ${count !== -1 ? count : `více než ${to}`}`;
2858
- const estimatedLabel = estimated && estimated > to ? `přibližně ${estimated}` : `více než ${to}`;
2859
- return `${from}–${to} z ${count !== -1 ? count : estimatedLabel}`;
2860
- },
2861
- paginationItemAriaLabel: (type) => {
2862
- if (type === "first") return "Jít na první stránku";
2863
- if (type === "last") return "Jít na poslední stránku";
2864
- if (type === "next") return "Jít na další stránku";
2865
- return "Jít na předchozí stránku";
2866
- },
2867
- rowReorderingHeaderName: "Přeuspořádávání řádků",
2868
- aggregationMenuItemHeader: "Seskupování",
2869
- aggregationFunctionLabelSum: "součet",
2870
- aggregationFunctionLabelAvg: "průměr",
2871
- aggregationFunctionLabelMin: "min",
2872
- aggregationFunctionLabelMax: "max",
2873
- aggregationFunctionLabelSize: "počet",
2874
- promptFieldLabel: "Vstup požadavku",
2875
- promptFieldPlaceholder: "Napište požadavek…",
2876
- promptFieldPlaceholderWithRecording: "Napište nebo nahrajte požadavek…",
2877
- promptFieldPlaceholderListening: "Naslouchám požadavku…",
2878
- promptFieldSend: "Odeslat",
2879
- promptFieldRecord: "Nahrát",
2880
- promptFieldStopRecording: "Zastavit nahrávání"
2881
- };
2882
- const csCZ$1 = getGridLocalization(csCZGrid);
2883
-
2884
- //#endregion
2885
- //#region node_modules/@mui/x-data-grid/esm/constants/localeTextConstants.js
2886
- const GRID_DEFAULT_LOCALE_TEXT = {
2887
- noRowsLabel: "No rows",
2888
- noResultsOverlayLabel: "No results found.",
2889
- noColumnsOverlayLabel: "No columns",
2890
- noColumnsOverlayManageColumns: "Manage columns",
2891
- emptyPivotOverlayLabel: "Add fields to rows, columns, and values to create a pivot table",
2892
- toolbarDensity: "Density",
2893
- toolbarDensityLabel: "Density",
2894
- toolbarDensityCompact: "Compact",
2895
- toolbarDensityStandard: "Standard",
2896
- toolbarDensityComfortable: "Comfortable",
2897
- toolbarColumns: "Columns",
2898
- toolbarColumnsLabel: "Select columns",
2899
- toolbarFilters: "Filters",
2900
- toolbarFiltersLabel: "Show filters",
2901
- toolbarFiltersTooltipHide: "Hide filters",
2902
- toolbarFiltersTooltipShow: "Show filters",
2903
- toolbarFiltersTooltipActive: (count) => count !== 1 ? `${count} active filters` : `${count} active filter`,
2904
- toolbarQuickFilterPlaceholder: "Search…",
2905
- toolbarQuickFilterLabel: "Search",
2906
- toolbarQuickFilterDeleteIconLabel: "Clear",
2907
- toolbarExport: "Export",
2908
- toolbarExportLabel: "Export",
2909
- toolbarExportCSV: "Download as CSV",
2910
- toolbarExportPrint: "Print",
2911
- toolbarExportExcel: "Download as Excel",
2912
- toolbarPivot: "Pivot",
2913
- toolbarAssistant: "AI Assistant",
2914
- columnsManagementSearchTitle: "Search",
2915
- columnsManagementNoColumns: "No columns",
2916
- columnsManagementShowHideAllText: "Show/Hide All",
2917
- columnsManagementReset: "Reset",
2918
- columnsManagementDeleteIconLabel: "Clear",
2919
- filterPanelAddFilter: "Add filter",
2920
- filterPanelRemoveAll: "Remove all",
2921
- filterPanelDeleteIconLabel: "Delete",
2922
- filterPanelLogicOperator: "Logic operator",
2923
- filterPanelOperator: "Operator",
2924
- filterPanelOperatorAnd: "And",
2925
- filterPanelOperatorOr: "Or",
2926
- filterPanelColumns: "Columns",
2927
- filterPanelInputLabel: "Value",
2928
- filterPanelInputPlaceholder: "Filter value",
2929
- filterOperatorContains: "contains",
2930
- filterOperatorDoesNotContain: "does not contain",
2931
- filterOperatorEquals: "equals",
2932
- filterOperatorDoesNotEqual: "does not equal",
2933
- filterOperatorStartsWith: "starts with",
2934
- filterOperatorEndsWith: "ends with",
2935
- filterOperatorIs: "is",
2936
- filterOperatorNot: "is not",
2937
- filterOperatorAfter: "is after",
2938
- filterOperatorOnOrAfter: "is on or after",
2939
- filterOperatorBefore: "is before",
2940
- filterOperatorOnOrBefore: "is on or before",
2941
- filterOperatorIsEmpty: "is empty",
2942
- filterOperatorIsNotEmpty: "is not empty",
2943
- filterOperatorIsAnyOf: "is any of",
2944
- "filterOperator=": "=",
2945
- "filterOperator!=": "!=",
2946
- "filterOperator>": ">",
2947
- "filterOperator>=": ">=",
2948
- "filterOperator<": "<",
2949
- "filterOperator<=": "<=",
2950
- headerFilterOperatorContains: "Contains",
2951
- headerFilterOperatorDoesNotContain: "Does not contain",
2952
- headerFilterOperatorEquals: "Equals",
2953
- headerFilterOperatorDoesNotEqual: "Does not equal",
2954
- headerFilterOperatorStartsWith: "Starts with",
2955
- headerFilterOperatorEndsWith: "Ends with",
2956
- headerFilterOperatorIs: "Is",
2957
- headerFilterOperatorNot: "Is not",
2958
- headerFilterOperatorAfter: "Is after",
2959
- headerFilterOperatorOnOrAfter: "Is on or after",
2960
- headerFilterOperatorBefore: "Is before",
2961
- headerFilterOperatorOnOrBefore: "Is on or before",
2962
- headerFilterOperatorIsEmpty: "Is empty",
2963
- headerFilterOperatorIsNotEmpty: "Is not empty",
2964
- headerFilterOperatorIsAnyOf: "Is any of",
2965
- "headerFilterOperator=": "Equals",
2966
- "headerFilterOperator!=": "Not equals",
2967
- "headerFilterOperator>": "Greater than",
2968
- "headerFilterOperator>=": "Greater than or equal to",
2969
- "headerFilterOperator<": "Less than",
2970
- "headerFilterOperator<=": "Less than or equal to",
2971
- headerFilterClear: "Clear filter",
2972
- filterValueAny: "any",
2973
- filterValueTrue: "true",
2974
- filterValueFalse: "false",
2975
- columnMenuLabel: "Menu",
2976
- columnMenuAriaLabel: (columnName) => `${columnName} column menu`,
2977
- columnMenuShowColumns: "Show columns",
2978
- columnMenuManageColumns: "Manage columns",
2979
- columnMenuFilter: "Filter",
2980
- columnMenuHideColumn: "Hide column",
2981
- columnMenuUnsort: "Unsort",
2982
- columnMenuSortAsc: "Sort by ASC",
2983
- columnMenuSortDesc: "Sort by DESC",
2984
- columnMenuManagePivot: "Manage pivot",
2985
- columnHeaderFiltersTooltipActive: (count) => count !== 1 ? `${count} active filters` : `${count} active filter`,
2986
- columnHeaderFiltersLabel: "Show filters",
2987
- columnHeaderSortIconLabel: "Sort",
2988
- footerRowSelected: (count) => count !== 1 ? `${count.toLocaleString()} rows selected` : `${count.toLocaleString()} row selected`,
2989
- footerTotalRows: "Total Rows:",
2990
- footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,
2991
- checkboxSelectionHeaderName: "Checkbox selection",
2992
- checkboxSelectionSelectAllRows: "Select all rows",
2993
- checkboxSelectionUnselectAllRows: "Unselect all rows",
2994
- checkboxSelectionSelectRow: "Select row",
2995
- checkboxSelectionUnselectRow: "Unselect row",
2996
- booleanCellTrueLabel: "yes",
2997
- booleanCellFalseLabel: "no",
2998
- actionsCellMore: "more",
2999
- pinToLeft: "Pin to left",
3000
- pinToRight: "Pin to right",
3001
- unpin: "Unpin",
3002
- treeDataGroupingHeaderName: "Group",
3003
- treeDataExpand: "see children",
3004
- treeDataCollapse: "hide children",
3005
- groupingColumnHeaderName: "Group",
3006
- groupColumn: (name) => `Group by ${name}`,
3007
- unGroupColumn: (name) => `Stop grouping by ${name}`,
3008
- detailPanelToggle: "Detail panel toggle",
3009
- expandDetailPanel: "Expand",
3010
- collapseDetailPanel: "Collapse",
3011
- paginationRowsPerPage: "Rows per page:",
3012
- paginationDisplayedRows: ({ from, to, count, estimated }) => {
3013
- if (!estimated) return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
3014
- const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
3015
- return `${from}–${to} of ${count !== -1 ? count : estimatedLabel}`;
3016
- },
3017
- paginationItemAriaLabel: (type) => {
3018
- if (type === "first") return "Go to first page";
3019
- if (type === "last") return "Go to last page";
3020
- if (type === "next") return "Go to next page";
3021
- return "Go to previous page";
3022
- },
3023
- rowReorderingHeaderName: "Row reordering",
3024
- aggregationMenuItemHeader: "Aggregation",
3025
- aggregationFunctionLabelSum: "sum",
3026
- aggregationFunctionLabelAvg: "avg",
3027
- aggregationFunctionLabelMin: "min",
3028
- aggregationFunctionLabelMax: "max",
3029
- aggregationFunctionLabelSize: "size",
3030
- pivotToggleLabel: "Pivot",
3031
- pivotRows: "Rows",
3032
- pivotColumns: "Columns",
3033
- pivotValues: "Values",
3034
- pivotCloseButton: "Close pivot settings",
3035
- pivotSearchButton: "Search fields",
3036
- pivotSearchControlPlaceholder: "Search fields",
3037
- pivotSearchControlLabel: "Search fields",
3038
- pivotSearchControlClear: "Clear search",
3039
- pivotNoFields: "No fields",
3040
- pivotMenuMoveUp: "Move up",
3041
- pivotMenuMoveDown: "Move down",
3042
- pivotMenuMoveToTop: "Move to top",
3043
- pivotMenuMoveToBottom: "Move to bottom",
3044
- pivotMenuRows: "Rows",
3045
- pivotMenuColumns: "Columns",
3046
- pivotMenuValues: "Values",
3047
- pivotMenuOptions: "Field options",
3048
- pivotMenuAddToRows: "Add to Rows",
3049
- pivotMenuAddToColumns: "Add to Columns",
3050
- pivotMenuAddToValues: "Add to Values",
3051
- pivotMenuRemove: "Remove",
3052
- pivotDragToRows: "Drag here to create rows",
3053
- pivotDragToColumns: "Drag here to create columns",
3054
- pivotDragToValues: "Drag here to create values",
3055
- pivotYearColumnHeaderName: "(Year)",
3056
- pivotQuarterColumnHeaderName: "(Quarter)",
3057
- aiAssistantPanelTitle: "AI Assistant",
3058
- aiAssistantPanelClose: "Close AI Assistant",
3059
- aiAssistantPanelNewConversation: "New conversation",
3060
- aiAssistantPanelConversationHistory: "Conversation history",
3061
- aiAssistantPanelEmptyConversation: "No prompt history",
3062
- aiAssistantSuggestions: "Suggestions",
3063
- promptFieldLabel: "Prompt",
3064
- promptFieldPlaceholder: "Type a prompt…",
3065
- promptFieldPlaceholderWithRecording: "Type or record a prompt…",
3066
- promptFieldPlaceholderListening: "Listening for prompt…",
3067
- promptFieldSpeechRecognitionNotSupported: "Speech recognition is not supported in this browser",
3068
- promptFieldSend: "Send",
3069
- promptFieldRecord: "Record",
3070
- promptFieldStopRecording: "Stop recording",
3071
- promptRerun: "Run again",
3072
- promptProcessing: "Processing…",
3073
- promptAppliedChanges: "Applied changes",
3074
- promptChangeGroupDescription: (column) => `Group by ${column}`,
3075
- promptChangeAggregationLabel: (column, aggregation) => `${column} (${aggregation})`,
3076
- promptChangeAggregationDescription: (column, aggregation) => `Aggregate ${column} (${aggregation})`,
3077
- promptChangeFilterLabel: (column, operator, value) => {
3078
- if (operator === "is any of") return `${column} is any of: ${value}`;
3079
- return `${column} ${operator} ${value}`;
3080
- },
3081
- promptChangeFilterDescription: (column, operator, value) => {
3082
- if (operator === "is any of") return `Filter where ${column} is any of: ${value}`;
3083
- return `Filter where ${column} ${operator} ${value}`;
3084
- },
3085
- promptChangeSortDescription: (column, direction) => `Sort by ${column} (${direction})`,
3086
- promptChangePivotEnableLabel: "Pivot",
3087
- promptChangePivotEnableDescription: "Enable pivot",
3088
- promptChangePivotColumnsLabel: (count) => `Columns (${count})`,
3089
- promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ""}`,
3090
- promptChangePivotRowsLabel: (count) => `Rows (${count})`,
3091
- promptChangePivotValuesLabel: (count) => `Values (${count})`,
3092
- promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
3093
- };
3094
-
3095
- //#endregion
3096
- //#region node_modules/@mui/x-data-grid/esm/locales/enUS.js
3097
- const enUS$1 = getGridLocalization(GRID_DEFAULT_LOCALE_TEXT);
3098
-
3099
- //#endregion
3100
- //#region node_modules/@mui/x-date-pickers/esm/locales/csCZ.js
3101
- const timeViews = {
3102
- hours: "Hodiny",
3103
- minutes: "Minuty",
3104
- seconds: "Sekundy",
3105
- meridiem: "Odpoledne"
3106
- };
3107
- const csCZPickers = {
3108
- previousMonth: "Předchozí měsíc",
3109
- nextMonth: "Další měsíc",
3110
- openPreviousView: "Otevřít předchozí zobrazení",
3111
- openNextView: "Otevřít další zobrazení",
3112
- calendarViewSwitchingButtonAriaLabel: (view) => view === "year" ? "roční zobrazení otevřeno, přepněte do zobrazení kalendáře" : "zobrazení kalendáře otevřeno, přepněte do zobrazení roku",
3113
- start: "Začátek",
3114
- end: "Konec",
3115
- startDate: "Datum začátku",
3116
- startTime: "Čas začátku",
3117
- endDate: "Datum konce",
3118
- endTime: "Čas konce",
3119
- cancelButtonLabel: "Zrušit",
3120
- clearButtonLabel: "Vymazat",
3121
- okButtonLabel: "Potvrdit",
3122
- todayButtonLabel: "Dnes",
3123
- nextStepButtonLabel: "Další",
3124
- datePickerToolbarTitle: "Vyberte datum",
3125
- dateTimePickerToolbarTitle: "Vyberte datum a čas",
3126
- timePickerToolbarTitle: "Vyberte čas",
3127
- dateRangePickerToolbarTitle: "Vyberte rozmezí dat",
3128
- clockLabelText: (view, formattedTime) => `${timeViews[view] ?? view} vybrány. ${!formattedTime ? "Není vybrán čas" : `Vybraný čas je ${formattedTime}`}`,
3129
- hoursClockNumberText: (hours) => `${hours} hodin`,
3130
- minutesClockNumberText: (minutes) => `${minutes} minut`,
3131
- secondsClockNumberText: (seconds) => `${seconds} sekund`,
3132
- selectViewText: (view) => `Vyberte ${timeViews[view]}`,
3133
- calendarWeekNumberHeaderLabel: "Týden v roce",
3134
- calendarWeekNumberHeaderText: "#",
3135
- calendarWeekNumberAriaLabelText: (weekNumber) => `${weekNumber} týden v roce`,
3136
- calendarWeekNumberText: (weekNumber) => `${weekNumber}`,
3137
- openDatePickerDialogue: (formattedDate) => formattedDate ? `Vyberte datum, vybrané datum je ${formattedDate}` : "Vyberte datum",
3138
- openTimePickerDialogue: (formattedTime) => formattedTime ? `Vyberte čas, vybraný čas je ${formattedTime}` : "Vyberte čas",
3139
- fieldClearLabel: "Vymazat",
3140
- timeTableLabel: "vyberte čas",
3141
- dateTableLabel: "vyberte datum",
3142
- fieldYearPlaceholder: (params) => "Y".repeat(params.digitAmount),
3143
- fieldMonthPlaceholder: (params) => params.contentType === "letter" ? "MMMM" : "MM",
3144
- fieldDayPlaceholder: () => "DD",
3145
- fieldWeekDayPlaceholder: (params) => params.contentType === "letter" ? "EEEE" : "EE",
3146
- fieldHoursPlaceholder: () => "hh",
3147
- fieldMinutesPlaceholder: () => "mm",
3148
- fieldSecondsPlaceholder: () => "ss",
3149
- fieldMeridiemPlaceholder: () => "aa",
3150
- year: "Rok",
3151
- month: "Měsíc",
3152
- day: "Den",
3153
- weekDay: "Pracovní den",
3154
- hours: "Hodiny",
3155
- minutes: "Minuty",
3156
- seconds: "Sekundy",
3157
- meridiem: "Odpoledne",
3158
- empty: "Prázdný"
3159
- };
3160
- const csCZ$2 = getPickersLocalization(csCZPickers);
3161
-
3162
- //#endregion
3163
- //#region src/hooks/ThemeHook.ts
3164
- const WISTRON_PRIMARY_COLOR = "#00506E";
3165
- const WISTRON_SECONDARY_COLOR = "#64DC00";
3166
- const useGetTheme = (theme) => {
3167
- const { i18n: i18n$1 } = useTranslation$1();
3168
- return createTheme({
3169
- cssVariables: { colorSchemeSelector: "data-mui-color-scheme" },
3170
- colorSchemes: {
3171
- light: { palette: {
3172
- primary: { main: WISTRON_PRIMARY_COLOR },
3173
- secondary: { main: WISTRON_SECONDARY_COLOR }
3174
- } },
3175
- dark: { palette: {
3176
- primary: { main: lighten(WISTRON_PRIMARY_COLOR, .5) },
3177
- secondary: { main: darken(WISTRON_SECONDARY_COLOR, .5) }
3178
- } },
3179
- ...theme?.colorSchemes
3180
- },
3181
- components: {
3182
- MuiCssBaseline: { styleOverrides: ({ palette }) => {
3183
- return { body: {
3184
- "&::-webkit-scrollbar, & *::-webkit-scrollbar": {
3185
- width: "0.7em",
3186
- height: "0.7em"
3187
- },
3188
- "&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {
3189
- backgroundColor: palette.mode === "dark" ? grey[900] : grey[200],
3190
- borderRadius: "5px"
3191
- },
3192
- "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
3193
- backgroundColor: palette.mode === "dark" ? grey[800] : grey[400],
3194
- borderRadius: "10px"
3195
- },
3196
- "&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": { backgroundColor: palette.mode === "dark" ? grey[700] : grey[500] },
3197
- "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": { backgroundColor: "transparent" }
3198
- } };
3199
- } },
3200
- ...theme?.components
3201
- }
3202
- }, i18n$1.resolvedLanguage === "cs" ? csCZ$1 : enUS$1, i18n$1.resolvedLanguage === "cs" ? csCZ$2 : enUS$2, i18n$1.resolvedLanguage === "cs" ? csCZ : enUS);
3203
- };
3204
-
3205
2638
  //#endregion
3206
2639
  //#region src/components/core/Layout.tsx
3207
- styled("div")(({ theme }) => ({
3208
- display: "flex",
3209
- alignItems: "center",
3210
- justifyContent: "flex-end",
3211
- padding: theme.spacing(0, 1),
3212
- ...theme.mixins.toolbar
3213
- }));
3214
2640
  const Layout = (props) => {
3215
- const theme = useGetTheme(props.theme);
3216
- const [navigationOpen, setNavigationOpen] = useLocalStorageState$1("navigationOpen", { defaultServerValue: false });
3217
- const isFetching = !!useIsFetching();
3218
- const isMutating = !!useIsMutating();
3219
- return /* @__PURE__ */ jsxs(ThemeProvider, {
3220
- theme,
3221
- children: [
3222
- /* @__PURE__ */ jsx(InitColorSchemeScript, {}),
3223
- /* @__PURE__ */ jsx(CssBaseline, {}),
3224
- props.children,
3225
- (isFetching || isMutating) && /* @__PURE__ */ jsx(LinearProgress, { sx: {
3226
- position: "fixed",
3227
- top: {
3228
- xs: 56,
3229
- sm: 64
3230
- },
3231
- left: 0,
3232
- right: 0
3233
- } })
3234
- ]
3235
- });
2641
+ return /* @__PURE__ */ jsx("div", { children: props.children });
3236
2642
  };
3237
2643
 
3238
2644
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "wcz-test",
3
3
  "displayName": "WCZ Layout",
4
- "version": "4.2.2",
4
+ "version": "4.2.4",
5
5
  "private": false,
6
6
  "sideEffects": false,
7
7
  "type": "module",