wcz-test 4.6.2 → 4.6.3
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.js +71 -7
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2813,7 +2813,7 @@ var MiniPopover = ({ open, anchorEl, children }) => /* @__PURE__ */ jsx23(
|
|
|
2813
2813
|
)
|
|
2814
2814
|
}
|
|
2815
2815
|
);
|
|
2816
|
-
var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, onClick, renderNested }) => {
|
|
2816
|
+
var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, onClick, renderNested, onClose }) => {
|
|
2817
2817
|
const [hoveredPopoverItem, setHoveredPopoverItem] = useState7(null);
|
|
2818
2818
|
const [anchorElement, setAnchorElement] = useState7(null);
|
|
2819
2819
|
const chevronSx = useMemo4(() => {
|
|
@@ -2874,6 +2874,7 @@ var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSideb
|
|
|
2874
2874
|
href: item.href,
|
|
2875
2875
|
params: item.params,
|
|
2876
2876
|
search: item.search,
|
|
2877
|
+
onClick: onClose,
|
|
2877
2878
|
children: buttonContent
|
|
2878
2879
|
}
|
|
2879
2880
|
),
|
|
@@ -2892,7 +2893,7 @@ import { jsx as jsx24 } from "react/jsx-runtime";
|
|
|
2892
2893
|
var isPageItem = (item) => !("kind" in item);
|
|
2893
2894
|
var isDivider = (item) => "kind" in item && item.kind === "divider";
|
|
2894
2895
|
var isHeader = (item) => "kind" in item && item.kind === "header";
|
|
2895
|
-
var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, expandedWidth, renderItem, activePath, onNavigate }) => {
|
|
2896
|
+
var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, expandedWidth, renderItem, activePath, onNavigate, onClose }) => {
|
|
2896
2897
|
const [openKeys, setOpenKeys] = useState8([]);
|
|
2897
2898
|
useEffect5(() => {
|
|
2898
2899
|
if (collapsed) setOpenKeys([]);
|
|
@@ -2906,7 +2907,8 @@ var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSideba
|
|
|
2906
2907
|
isPopover: collapsed,
|
|
2907
2908
|
expandedWidth,
|
|
2908
2909
|
activePath,
|
|
2909
|
-
onNavigate
|
|
2910
|
+
onNavigate,
|
|
2911
|
+
onClose
|
|
2910
2912
|
}
|
|
2911
2913
|
);
|
|
2912
2914
|
const filteredNavigation = subNavigation.filter((nav) => !nav.hidden);
|
|
@@ -2962,7 +2964,8 @@ var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSideba
|
|
|
2962
2964
|
isSidebarFullyExpanded,
|
|
2963
2965
|
isSidebarFullyCollapsed,
|
|
2964
2966
|
onClick: navItem.children && !collapsed ? () => toggleKey(uniqueItemKey) : void 0,
|
|
2965
|
-
renderNested
|
|
2967
|
+
renderNested,
|
|
2968
|
+
onClose
|
|
2966
2969
|
},
|
|
2967
2970
|
key
|
|
2968
2971
|
);
|
|
@@ -2975,7 +2978,7 @@ var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSideba
|
|
|
2975
2978
|
import { jsx as jsx25 } from "react/jsx-runtime";
|
|
2976
2979
|
var MINI_WIDTH = 84;
|
|
2977
2980
|
var EXPANDED_WIDTH = 320;
|
|
2978
|
-
var TOOLBAR_HEIGHT =
|
|
2981
|
+
var TOOLBAR_HEIGHT = 64;
|
|
2979
2982
|
var NavigationRail = ({ navigation, expanded, setExpanded }) => {
|
|
2980
2983
|
const navigate = useNavigate();
|
|
2981
2984
|
const routerState = useRouterState2();
|
|
@@ -3004,7 +3007,8 @@ var NavigationRail = ({ navigation, expanded, setExpanded }) => {
|
|
|
3004
3007
|
isSidebarFullyCollapsed: !expanded,
|
|
3005
3008
|
expandedWidth: EXPANDED_WIDTH,
|
|
3006
3009
|
activePath: routerState.location.pathname,
|
|
3007
|
-
onNavigate: navigate
|
|
3010
|
+
onNavigate: navigate,
|
|
3011
|
+
onClose: !showPermanent ? () => setExpanded(false) : void 0
|
|
3008
3012
|
}
|
|
3009
3013
|
)
|
|
3010
3014
|
}
|
|
@@ -3020,7 +3024,9 @@ var NavigationRail = ({ navigation, expanded, setExpanded }) => {
|
|
|
3020
3024
|
position: "absolute",
|
|
3021
3025
|
top: `${TOOLBAR_HEIGHT}px`,
|
|
3022
3026
|
height: `calc(100% - ${TOOLBAR_HEIGHT}px)`,
|
|
3023
|
-
width: expanded ? EXPANDED_WIDTH : MINI_WIDTH
|
|
3027
|
+
width: expanded ? EXPANDED_WIDTH : MINI_WIDTH,
|
|
3028
|
+
borderTop: "1px solid",
|
|
3029
|
+
borderColor: theme.vars?.palette.divider
|
|
3024
3030
|
}
|
|
3025
3031
|
},
|
|
3026
3032
|
children: drawerContent(!expanded)
|
|
@@ -3258,6 +3264,8 @@ var csCZGrid = {
|
|
|
3258
3264
|
toolbarExportExcel: "St\xE1hnout jako Excel",
|
|
3259
3265
|
// Toolbar pivot button
|
|
3260
3266
|
// toolbarPivot: 'Pivot',
|
|
3267
|
+
// Toolbar charts button
|
|
3268
|
+
// toolbarCharts: 'Charts',
|
|
3261
3269
|
// Toolbar AI Assistant button
|
|
3262
3270
|
// toolbarAssistant: 'AI Assistant',
|
|
3263
3271
|
// Columns management text
|
|
@@ -3337,6 +3345,7 @@ var csCZGrid = {
|
|
|
3337
3345
|
columnMenuSortAsc: "Se\u0159adit vzestupn\u011B",
|
|
3338
3346
|
columnMenuSortDesc: "Se\u0159adit sestupn\u011B",
|
|
3339
3347
|
// columnMenuManagePivot: 'Manage pivot',
|
|
3348
|
+
// columnMenuManageCharts: 'Manage charts',
|
|
3340
3349
|
// Column header text
|
|
3341
3350
|
columnHeaderFiltersTooltipActive: (count) => {
|
|
3342
3351
|
let pluralForm = "aktivn\xEDch filtr\u016F";
|
|
@@ -3425,6 +3434,7 @@ var csCZGrid = {
|
|
|
3425
3434
|
rowReorderingHeaderName: "P\u0159euspo\u0159\xE1d\xE1v\xE1n\xED \u0159\xE1dk\u016F",
|
|
3426
3435
|
// Aggregation
|
|
3427
3436
|
aggregationMenuItemHeader: "Seskupov\xE1n\xED",
|
|
3437
|
+
// aggregationFunctionLabelNone: 'none',
|
|
3428
3438
|
aggregationFunctionLabelSum: "sou\u010Det",
|
|
3429
3439
|
aggregationFunctionLabelAvg: "pr\u016Fm\u011Br",
|
|
3430
3440
|
aggregationFunctionLabelMin: "min",
|
|
@@ -3458,6 +3468,31 @@ var csCZGrid = {
|
|
|
3458
3468
|
// pivotDragToValues: 'Drag here to create values',
|
|
3459
3469
|
// pivotYearColumnHeaderName: '(Year)',
|
|
3460
3470
|
// pivotQuarterColumnHeaderName: '(Quarter)',
|
|
3471
|
+
// Charts configuration panel
|
|
3472
|
+
// chartsNoCharts: 'There are no charts available',
|
|
3473
|
+
// chartsChartNotSelected: 'Select a chart type to configure its options',
|
|
3474
|
+
// chartsTabChart: 'Chart',
|
|
3475
|
+
// chartsTabFields: 'Fields',
|
|
3476
|
+
// chartsTabCustomize: 'Customize',
|
|
3477
|
+
// chartsCloseButton: 'Close charts configuration',
|
|
3478
|
+
// chartsSyncButtonLabel: 'Sync chart',
|
|
3479
|
+
// chartsSearchPlaceholder: 'Search fields',
|
|
3480
|
+
// chartsSearchLabel: 'Search fields',
|
|
3481
|
+
// chartsSearchClear: 'Clear search',
|
|
3482
|
+
// chartsNoFields: 'No fields',
|
|
3483
|
+
// chartsFieldBlocked: 'This field cannot be added to any section',
|
|
3484
|
+
// chartsCategories: 'Categories',
|
|
3485
|
+
// chartsSeries: 'Series',
|
|
3486
|
+
// chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
|
|
3487
|
+
// chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
|
|
3488
|
+
// chartsMenuMoveUp: 'Move up',
|
|
3489
|
+
// chartsMenuMoveDown: 'Move down',
|
|
3490
|
+
// chartsMenuMoveToTop: 'Move to top',
|
|
3491
|
+
// chartsMenuMoveToBottom: 'Move to bottom',
|
|
3492
|
+
// chartsMenuOptions: 'Field options',
|
|
3493
|
+
// chartsMenuRemove: 'Remove',
|
|
3494
|
+
// chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
|
|
3495
|
+
// chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
|
|
3461
3496
|
// AI Assistant panel
|
|
3462
3497
|
// aiAssistantPanelTitle: 'AI Assistant',
|
|
3463
3498
|
// aiAssistantPanelClose: 'Close AI Assistant',
|
|
@@ -3540,6 +3575,8 @@ var GRID_DEFAULT_LOCALE_TEXT = {
|
|
|
3540
3575
|
toolbarExportExcel: "Download as Excel",
|
|
3541
3576
|
// Toolbar pivot button
|
|
3542
3577
|
toolbarPivot: "Pivot",
|
|
3578
|
+
// Toolbar charts button
|
|
3579
|
+
toolbarCharts: "Charts",
|
|
3543
3580
|
// Toolbar AI Assistant button
|
|
3544
3581
|
toolbarAssistant: "AI Assistant",
|
|
3545
3582
|
// Columns management text
|
|
@@ -3619,6 +3656,7 @@ var GRID_DEFAULT_LOCALE_TEXT = {
|
|
|
3619
3656
|
columnMenuSortAsc: "Sort by ASC",
|
|
3620
3657
|
columnMenuSortDesc: "Sort by DESC",
|
|
3621
3658
|
columnMenuManagePivot: "Manage pivot",
|
|
3659
|
+
columnMenuManageCharts: "Manage charts",
|
|
3622
3660
|
// Column header text
|
|
3623
3661
|
columnHeaderFiltersTooltipActive: (count) => count !== 1 ? `${count} active filters` : `${count} active filter`,
|
|
3624
3662
|
columnHeaderFiltersLabel: "Show filters",
|
|
@@ -3686,6 +3724,7 @@ var GRID_DEFAULT_LOCALE_TEXT = {
|
|
|
3686
3724
|
rowReorderingHeaderName: "Row reordering",
|
|
3687
3725
|
// Aggregation
|
|
3688
3726
|
aggregationMenuItemHeader: "Aggregation",
|
|
3727
|
+
aggregationFunctionLabelNone: "none",
|
|
3689
3728
|
aggregationFunctionLabelSum: "sum",
|
|
3690
3729
|
aggregationFunctionLabelAvg: "avg",
|
|
3691
3730
|
aggregationFunctionLabelMin: "min",
|
|
@@ -3719,6 +3758,31 @@ var GRID_DEFAULT_LOCALE_TEXT = {
|
|
|
3719
3758
|
pivotDragToValues: "Drag here to create values",
|
|
3720
3759
|
pivotYearColumnHeaderName: "(Year)",
|
|
3721
3760
|
pivotQuarterColumnHeaderName: "(Quarter)",
|
|
3761
|
+
// Charts configuration panel
|
|
3762
|
+
chartsNoCharts: "There are no charts available",
|
|
3763
|
+
chartsChartNotSelected: "Select a chart type to configure its options",
|
|
3764
|
+
chartsTabChart: "Chart",
|
|
3765
|
+
chartsTabFields: "Fields",
|
|
3766
|
+
chartsTabCustomize: "Customize",
|
|
3767
|
+
chartsCloseButton: "Close charts configuration",
|
|
3768
|
+
chartsSyncButtonLabel: "Sync chart",
|
|
3769
|
+
chartsSearchPlaceholder: "Search fields",
|
|
3770
|
+
chartsSearchLabel: "Search fields",
|
|
3771
|
+
chartsSearchClear: "Clear search",
|
|
3772
|
+
chartsNoFields: "No fields",
|
|
3773
|
+
chartsFieldBlocked: "This field cannot be added to any section",
|
|
3774
|
+
chartsCategories: "Categories",
|
|
3775
|
+
chartsSeries: "Series",
|
|
3776
|
+
chartsMenuAddToDimensions: (dimensionLabel) => `Add to ${dimensionLabel}`,
|
|
3777
|
+
chartsMenuAddToValues: (valuesLabel) => `Add to ${valuesLabel}`,
|
|
3778
|
+
chartsMenuMoveUp: "Move up",
|
|
3779
|
+
chartsMenuMoveDown: "Move down",
|
|
3780
|
+
chartsMenuMoveToTop: "Move to top",
|
|
3781
|
+
chartsMenuMoveToBottom: "Move to bottom",
|
|
3782
|
+
chartsMenuOptions: "Field options",
|
|
3783
|
+
chartsMenuRemove: "Remove",
|
|
3784
|
+
chartsDragToDimensions: (dimensionLabel) => `Drag here to use column as ${dimensionLabel}`,
|
|
3785
|
+
chartsDragToValues: (valuesLabel) => `Drag here to use column as ${valuesLabel}`,
|
|
3722
3786
|
// AI Assistant panel
|
|
3723
3787
|
aiAssistantPanelTitle: "AI Assistant",
|
|
3724
3788
|
aiAssistantPanelClose: "Close AI Assistant",
|