@rio-cloud/rio-uikit 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/actionBarItem/ActionBarItem.d.ts +2 -2
- package/components/actionBarItem/ActionBarItem.js.map +1 -1
- package/components/applicationHeader/ApplicationHeader.d.ts +6 -7
- package/components/applicationHeader/ApplicationHeader.js.map +1 -1
- package/components/applicationLayout/SubNavigation.d.ts +7 -0
- package/components/applicationLayout/SubNavigation.js.map +1 -1
- package/components/assetTree/AssetTree.d.ts +7 -0
- package/components/assetTree/AssetTree.js.map +1 -1
- package/components/assetTree/Tree.d.ts +15 -0
- package/components/assetTree/Tree.js.map +1 -1
- package/components/assetTree/TreeIcon.d.ts +30 -0
- package/components/assetTree/TreeIcon.js +16 -0
- package/components/assetTree/TreeIcon.js.map +1 -0
- package/components/assetTree/TreeLeaf.js +22 -22
- package/components/assetTree/TreeLeaf.js.map +1 -1
- package/components/assetTree/TreeNode.js +25 -25
- package/components/assetTree/TreeNode.js.map +1 -1
- package/components/assetTree/TreeSearch.d.ts +2 -0
- package/components/assetTree/TreeSearch.js.map +1 -1
- package/components/barList/BarList.d.ts +26 -0
- package/components/barList/BarList.js.map +1 -1
- package/components/bottomSheet/BottomSheet.d.ts +17 -3
- package/components/bottomSheet/BottomSheet.js.map +1 -1
- package/components/bottomSheet/TimedBottomSheet.d.ts +10 -0
- package/components/bottomSheet/TimedBottomSheet.js.map +1 -1
- package/components/calendarStripe/CalendarStripe.d.ts +1 -1
- package/components/calendarStripe/CalendarStripe.js +34 -36
- package/components/calendarStripe/CalendarStripe.js.map +1 -1
- package/components/charts/Area.d.ts +2 -2
- package/components/charts/Area.js.map +1 -1
- package/components/charts/Line.d.ts +2 -2
- package/components/charts/Line.js.map +1 -1
- package/components/checkbox/Checkbox.d.ts +0 -3
- package/components/checkbox/Checkbox.js.map +1 -1
- package/components/clearableInput/ClearableInput.d.ts +21 -20
- package/components/clearableInput/ClearableInput.js.map +1 -1
- package/components/collapse/Collapse.d.ts +3 -0
- package/components/collapse/Collapse.js +12 -12
- package/components/collapse/Collapse.js.map +1 -1
- package/components/contentLoader/ContentLoader.d.ts +10 -2
- package/components/contentLoader/ContentLoader.js.map +1 -1
- package/components/dataTabs/DataTabs.d.ts +6 -0
- package/components/dataTabs/DataTabs.js.map +1 -1
- package/components/datepicker/DatePicker.d.ts +2 -2
- package/components/datepicker/DatePicker.js +31 -31
- package/components/datepicker/DatePicker.js.map +1 -1
- package/components/dialog/ConfirmationDialog.d.ts +22 -0
- package/components/dialog/ConfirmationDialog.js.map +1 -1
- package/components/dialog/Dialog.d.ts +13 -1
- package/components/dialog/Dialog.js.map +1 -1
- package/components/dialog/ReleaseNotesDialog.d.ts +3 -3
- package/components/dialog/ReleaseNotesDialog.js.map +1 -1
- package/components/dropdown/ButtonDropdown.d.ts +4 -0
- package/components/dropdown/ButtonDropdown.js +51 -51
- package/components/dropdown/ButtonDropdown.js.map +1 -1
- package/components/dropdown/DropdownSubmenu.d.ts +4 -0
- package/components/dropdown/DropdownSubmenu.js.map +1 -1
- package/components/editableContent/EditableContent.d.ts +6 -0
- package/components/editableContent/EditableContent.js.map +1 -1
- package/components/expander/ExpanderList.d.ts +3 -0
- package/components/expander/ExpanderList.js.map +1 -1
- package/components/expander/ExpanderPanel.d.ts +14 -4
- package/components/expander/ExpanderPanel.js.map +1 -1
- package/components/fade/Fade.d.ts +1 -1
- package/components/fade/Fade.js.map +1 -1
- package/components/filepicker/FilePicker.d.ts +0 -2
- package/components/filepicker/FilePicker.js.map +1 -1
- package/components/groupedItemList/GroupedItemList.d.ts +10 -7
- package/components/groupedItemList/GroupedItemList.js.map +1 -1
- package/components/listMenu/ListMenu.js.map +1 -1
- package/components/listMenu/ListMenuGroup.d.ts +2 -1
- package/components/listMenu/ListMenuGroup.js.map +1 -1
- package/components/map/components/Map.js.map +1 -1
- package/components/map/components/constants.js.map +1 -1
- package/components/map/components/features/ContextMenuItem.d.ts +1 -1
- package/components/map/components/features/ContextMenuItem.js +2 -17
- package/components/map/components/features/ContextMenuItem.js.map +1 -1
- package/components/map/components/features/basics/Polyline.d.ts +4 -1
- package/components/map/components/features/basics/Polyline.js +1 -1
- package/components/map/components/features/basics/Polyline.js.map +1 -1
- package/components/map/components/features/layers/MarkerLayer.d.ts +3 -1
- package/components/map/components/features/layers/MarkerLayer.js.map +1 -1
- package/components/map/components/features/layers/clustering/ClusterLayer.js +1 -1
- package/components/map/components/features/layers/clustering/ClusterLayer.js.map +1 -1
- package/components/map/components/features/layers/clustering/SimpleClusterLayer.d.ts +3 -2
- package/components/map/components/features/layers/clustering/SimpleClusterLayer.js.map +1 -1
- package/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js +7 -7
- package/components/map/components/features/layers/overlayLayers/RoadRestrictionLayer.js.map +1 -1
- package/components/map/components/features/layers/overlayLayers/TrafficLayer.js +4 -4
- package/components/map/components/features/layers/overlayLayers/TrafficLayer.js.map +1 -1
- package/components/map/utils/clustering.d.ts +6 -1
- package/components/map/utils/clustering.js +25 -19
- package/components/map/utils/clustering.js.map +1 -1
- package/components/map/utils/rendering.d.ts +1 -1
- package/components/map/utils/rendering.js +23 -23
- package/components/map/utils/rendering.js.map +1 -1
- package/components/menuItems/MenuItem.d.ts +23 -0
- package/components/menuItems/MenuItem.js.map +1 -1
- package/components/notification/Notification.js +4 -4
- package/components/notification/Notification.js.map +1 -1
- package/components/onboarding/OnboardingTip.d.ts +18 -12
- package/components/onboarding/OnboardingTip.js.map +1 -1
- package/components/overlay/OverlayTrigger.d.ts +43 -1
- package/components/overlay/OverlayTrigger.js.map +1 -1
- package/components/pager/Pager.d.ts +3 -0
- package/components/pager/Pager.js.map +1 -1
- package/components/popover/Popover.d.ts +1 -0
- package/components/popover/Popover.js.map +1 -1
- package/components/preloader/ImagePreloader.d.ts +1 -1
- package/components/preloader/ImagePreloader.js.map +1 -1
- package/components/radiobutton/RadioButton.d.ts +9 -5
- package/components/radiobutton/RadioButton.js.map +1 -1
- package/components/releaseNotes/ReleaseNotes.d.ts +0 -3
- package/components/releaseNotes/ReleaseNotes.js.map +1 -1
- package/components/resizer/Resizer.d.ts +17 -3
- package/components/resizer/Resizer.js.map +1 -1
- package/components/rioglyph/Rioglyph.d.ts +20 -8
- package/components/rioglyph/Rioglyph.js.map +1 -1
- package/components/rules/RulesWrapper.js +1 -1
- package/components/rules/RulesWrapper.js.map +1 -1
- package/components/saveableInput/SaveableDateInput.d.ts +20 -2
- package/components/saveableInput/SaveableDateInput.js.map +1 -1
- package/components/saveableInput/SaveableInput.d.ts +10 -2
- package/components/saveableInput/SaveableInput.js.map +1 -1
- package/components/selects/BaseSelectDropdown.js +90 -79
- package/components/selects/BaseSelectDropdown.js.map +1 -1
- package/components/selects/Select.d.ts +5 -0
- package/components/selects/Select.js +94 -94
- package/components/selects/Select.js.map +1 -1
- package/components/sidebars/Sidebar.d.ts +19 -3
- package/components/sidebars/Sidebar.js.map +1 -1
- package/components/slider/RangeSlider.d.ts +15 -0
- package/components/slider/RangeSlider.js.map +1 -1
- package/components/slider/Slider.d.ts +9 -0
- package/components/slider/Slider.js.map +1 -1
- package/components/smoothScrollbars/SmoothScrollbars.d.ts +44 -0
- package/components/smoothScrollbars/SmoothScrollbars.js.map +1 -1
- package/components/spinner/Spinner.d.ts +3 -3
- package/components/spinner/Spinner.js.map +1 -1
- package/components/states/BaseStateProps.d.ts +6 -2
- package/components/states/StateIcon.d.ts +14 -1
- package/components/states/StateIcon.js.map +1 -1
- package/components/statsWidget/StatsWidget.d.ts +2 -0
- package/components/statsWidget/StatsWidget.js.map +1 -1
- package/components/statsWidget/StatsWidgetBody.d.ts +1 -0
- package/components/statsWidget/StatsWidgetBody.js.map +1 -1
- package/components/statsWidget/StatsWidgetNumber.d.ts +2 -0
- package/components/statsWidget/StatsWidgetNumber.js.map +1 -1
- package/components/statusBar/StatusBar.d.ts +2 -31
- package/components/statusBar/StatusBar.js.map +1 -1
- package/components/statusBar/StatusBarIcon.d.ts +2 -2
- package/components/statusBar/StatusBarIcon.js.map +1 -1
- package/components/statusBar/StatusBarLabel.d.ts +2 -2
- package/components/statusBar/StatusBarLabel.js.map +1 -1
- package/components/statusBar/StatusBarProgressBar.d.ts +1 -1
- package/components/statusBar/StatusBarProgressBar.js.map +1 -1
- package/components/statusBar/{StatusBar.types.d.ts → StatusBarProps.d.ts} +44 -2
- package/components/steppedProgressBar/SteppedProgressBar.d.ts +1 -1
- package/components/steppedProgressBar/SteppedProgressBar.js.map +1 -1
- package/components/switch/Switch.d.ts +13 -1
- package/components/switch/Switch.js.map +1 -1
- package/components/table/SortArrowDown.d.ts +1 -1
- package/components/table/SortArrowDown.js.map +1 -1
- package/components/table/SortArrowUp.d.ts +1 -1
- package/components/table/SortArrowUp.js.map +1 -1
- package/components/table/TableSettingsDialog.d.ts +5 -0
- package/components/table/TableSettingsDialog.js +119 -109
- package/components/table/TableSettingsDialog.js.map +1 -1
- package/components/table/TableSettingsDialogFooter.js +9 -9
- package/components/table/TableSettingsDialogFooter.js.map +1 -1
- package/components/table/TableViewToggles.d.ts +21 -1
- package/components/table/TableViewToggles.js.map +1 -1
- package/components/tag/Tag.d.ts +7 -2
- package/components/tag/Tag.js.map +1 -1
- package/components/tagManager/TagManager.d.ts +15 -0
- package/components/tagManager/TagManager.js.map +1 -1
- package/components/tagManager/TagManagerTag.d.ts +9 -0
- package/components/teaser/Teaser.d.ts +57 -55
- package/components/teaser/Teaser.js.map +1 -1
- package/components/teaser/TeaserContainer.d.ts +1 -1
- package/components/teaser/TeaserContainer.js.map +1 -1
- package/components/tooltip/SimpleTooltip.d.ts +22 -4
- package/components/tooltip/SimpleTooltip.js.map +1 -1
- package/components/tooltip/Tooltip.d.ts +22 -2
- package/components/tooltip/Tooltip.js.map +1 -1
- package/components/video/ResponsiveVideo.d.ts +8 -3
- package/components/video/ResponsiveVideo.js.map +1 -1
- package/hooks/useKey.d.ts +1 -1
- package/hooks/useKey.js.map +1 -1
- package/hooks/useOnboarding.d.ts +86 -80
- package/hooks/useOnboarding.js.map +1 -1
- package/hooks/useTableExport.js.map +1 -1
- package/hooks/useUncontrollable.d.ts +1 -1
- package/hooks/useUncontrollable.js.map +1 -1
- package/package.json +12 -14
- package/utils/colorScheme.js +14 -13
- package/utils/colorScheme.js.map +1 -1
- package/utils/cssuseragent.js.map +1 -1
- package/utils/scrollItemIntoView.js +12 -11
- package/utils/scrollItemIntoView.js.map +1 -1
- package/utils/urlFeatureToggles.js +19 -20
- package/utils/urlFeatureToggles.js.map +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ReactNode } from 'react';
|
|
2
|
-
export type
|
|
2
|
+
export type StatusBarIcon = {
|
|
3
3
|
/**
|
|
4
4
|
* The class name of the icon i.e. "rioglyph-cruise-control".
|
|
5
5
|
*/
|
|
@@ -21,7 +21,7 @@ export type StatusBarIconSpec = {
|
|
|
21
21
|
*/
|
|
22
22
|
className?: string;
|
|
23
23
|
};
|
|
24
|
-
export type
|
|
24
|
+
export type StatusBarLabel = {
|
|
25
25
|
/**
|
|
26
26
|
* The label content.
|
|
27
27
|
*/
|
|
@@ -83,3 +83,45 @@ export type StatusBarProgress = {
|
|
|
83
83
|
*/
|
|
84
84
|
className?: string;
|
|
85
85
|
};
|
|
86
|
+
export type StatusBarProps = {
|
|
87
|
+
/**
|
|
88
|
+
* The icon to be shown next to the progress bar.
|
|
89
|
+
*/
|
|
90
|
+
icon?: StatusBarIcon;
|
|
91
|
+
/**
|
|
92
|
+
* The label to be shown for the progress bar.
|
|
93
|
+
*/
|
|
94
|
+
label?: StatusBarLabel;
|
|
95
|
+
/**
|
|
96
|
+
* List of progress bars which will be stacked in given order if there are multiple.
|
|
97
|
+
*/
|
|
98
|
+
progress?: StatusBarProgress[];
|
|
99
|
+
/**
|
|
100
|
+
* The size of the icon and progress bar.
|
|
101
|
+
*
|
|
102
|
+
* Possible values are:
|
|
103
|
+
*
|
|
104
|
+
* - `'small'`
|
|
105
|
+
* - `'large'`
|
|
106
|
+
*
|
|
107
|
+
* @default 'small'
|
|
108
|
+
*/
|
|
109
|
+
size?: 'small' | 'large';
|
|
110
|
+
/**
|
|
111
|
+
* Uses a divider for multiple progress bars when defined.
|
|
112
|
+
*
|
|
113
|
+
* @default true
|
|
114
|
+
*/
|
|
115
|
+
useProgressDivider?: boolean;
|
|
116
|
+
/**
|
|
117
|
+
* Optional class names for the wrapper element.
|
|
118
|
+
*/
|
|
119
|
+
className?: string;
|
|
120
|
+
};
|
|
121
|
+
export type IconWithDefaults = StatusBarIcon & {
|
|
122
|
+
alignment: 'left' | 'right';
|
|
123
|
+
};
|
|
124
|
+
export type LabelWithDefaults = StatusBarLabel & {
|
|
125
|
+
alignment: 'left' | 'top' | 'right';
|
|
126
|
+
weight: 'light' | 'bold';
|
|
127
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SteppedProgressBar.js","sources":["../../../src/components/steppedProgressBar/SteppedProgressBar.tsx"],"sourcesContent":["import { type ReactNode, useEffect, useState } from 'react';\nimport { Nav } from 'react-bootstrap';\nimport classNames from 'classnames';\n\nexport type SteppedProgressBarLabel = {\n /**\n * The element shown in the step element.\n *\n * This can be a single step number or an icon element.\n */\n icon?: string | ReactNode;\n\n /**\n * The label shown below the step element.\n */\n label?: string | ReactNode;\n\n /**\n * Additional classes to be set on the label element.\n */\n labelClassName?: string;\n\n /**\n * Additional classes to be set on the label wrapping element.\n */\n labelWrapperClassName?: string;\n};\n\nexport type SteppedProgressBarProps = {\n /**\n * Objects to defining the icon and the label of the navigation items.\n *\n * The icon can be a string or an icon.\n */\n labels: SteppedProgressBarLabel[];\n\n /**\n * Index of the selected navigation item.\n */\n selectedStepNumber: number;\n\n /**\n * Called with the new selected index after the user clicked a nav item.\n */\n onSelectedChanged: (selectedKey: number) => void;\n\n /**\n * The SteppedProgressBar Variant.\n *\n * One of
|
|
1
|
+
{"version":3,"file":"SteppedProgressBar.js","sources":["../../../src/components/steppedProgressBar/SteppedProgressBar.tsx"],"sourcesContent":["import { type ReactNode, useEffect, useState } from 'react';\nimport { Nav } from 'react-bootstrap';\nimport classNames from 'classnames';\n\nexport type SteppedProgressBarLabel = {\n /**\n * The element shown in the step element.\n *\n * This can be a single step number or an icon element.\n */\n icon?: string | ReactNode;\n\n /**\n * The label shown below the step element.\n */\n label?: string | ReactNode;\n\n /**\n * Additional classes to be set on the label element.\n */\n labelClassName?: string;\n\n /**\n * Additional classes to be set on the label wrapping element.\n */\n labelWrapperClassName?: string;\n};\n\nexport type SteppedProgressBarProps = {\n /**\n * Objects to defining the icon and the label of the navigation items.\n *\n * The icon can be a string or an icon.\n */\n labels: SteppedProgressBarLabel[];\n\n /**\n * Index of the selected navigation item.\n */\n selectedStepNumber: number;\n\n /**\n * Called with the new selected index after the user clicked a nav item.\n */\n onSelectedChanged: (selectedKey: number) => void;\n\n /**\n * The SteppedProgressBar Variant.\n *\n * One of `circle`, `rectangle` or `roadsign`.\n *\n * @default 'circle'\n */\n variant?: 'circle' | 'rectangle' | 'roadsign';\n\n /**\n * All navigation items with a higher index than this will be disabled.\n */\n disableFollowingPages?: number;\n\n /**\n * Deactivating the wrapping of bubbles on mobile.\n *\n * @default true\n */\n mobileBreakpoint?: boolean;\n\n /**\n * Additional classes to be set on the wrapper element.\n */\n className?: string;\n};\n\nconst SteppedProgressBar = (props: SteppedProgressBarProps) => {\n const {\n labels,\n selectedStepNumber,\n onSelectedChanged,\n variant = 'circle',\n disableFollowingPages: disableFollowingPageIndex,\n mobileBreakpoint = true,\n className = '',\n } = props;\n\n const [disableFollowingPages, setDisableFollowingPages] = useState(\n disableFollowingPageIndex ? disableFollowingPageIndex : selectedStepNumber\n );\n\n useEffect(() => {\n if (disableFollowingPageIndex !== undefined) {\n if (disableFollowingPageIndex < selectedStepNumber) {\n console.warn(\n 'Invalid component state detected in SteppedProgressBar: can not disable following ' +\n `pages ${disableFollowingPageIndex} when selectedStep is ${selectedStepNumber}!`\n );\n return;\n }\n\n setDisableFollowingPages(disableFollowingPageIndex);\n } else if (selectedStepNumber > disableFollowingPages) {\n setDisableFollowingPages(selectedStepNumber);\n }\n }, [disableFollowingPageIndex, selectedStepNumber]);\n\n const wrapperClasses = classNames(\n 'stepped-progress-bar',\n variant && `variant-${variant}`,\n mobileBreakpoint && 'mobile-breakpoint',\n className && className\n );\n\n const handleSelect = (selectedKey: string | null) => onSelectedChanged(Number(selectedKey));\n\n return (\n <Nav className={wrapperClasses} activeKey={selectedStepNumber} onSelect={handleSelect}>\n {labels.map((labelObject, index) => (\n <Nav.Link\n key={index}\n eventKey={index}\n disabled={index > disableFollowingPages}\n as='a'\n className={classNames('step-tab', labelObject.labelWrapperClassName)}\n >\n <div className='step-tab-content'>\n <div className='item-icon'>{labelObject.icon}</div>\n <div className={classNames('item-label', labelObject.labelClassName)}>{labelObject.label}</div>\n </div>\n </Nav.Link>\n ))}\n </Nav>\n );\n};\n\nSteppedProgressBar.VARIANT_CIRCLE = 'circle' as const;\nSteppedProgressBar.VARIANT_RECTANGLE = 'rectangle' as const;\nSteppedProgressBar.VARIANT_ROADSIGN = 'roadsign' as const;\n\nexport default SteppedProgressBar;\n"],"names":["SteppedProgressBar","props","labels","selectedStepNumber","onSelectedChanged","variant","disableFollowingPageIndex","mobileBreakpoint","className","disableFollowingPages","setDisableFollowingPages","useState","useEffect","wrapperClasses","classNames","jsx","Nav","selectedKey","labelObject","index","jsxs"],"mappings":";;;;AAyEA,MAAMA,IAAqB,CAACC,MAAmC;AAC3D,QAAM;AAAA,IACF,QAAAC;AAAA,IACA,oBAAAC;AAAA,IACA,mBAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,uBAAuBC;AAAA,IACvB,kBAAAC,IAAmB;AAAA,IACnB,WAAAC,IAAY;AAAA,EAAA,IACZP,GAEE,CAACQ,GAAuBC,CAAwB,IAAIC;AAAA,IACtDL,KAAwDH;AAAA,EAAA;AAG5D,EAAAS,EAAU,MAAM;AACZ,QAAIN,MAA8B,QAAW;AACzC,UAAIA,IAA4BH,GAAoB;AAChD,gBAAQ;AAAA,UACJ,2FACaG,CAAyB,yBAAyBH,CAAkB;AAAA,QAAA;AAErF;AAAA,MACJ;AAEA,MAAAO,EAAyBJ,CAAyB;AAAA,IACtD,MAAA,CAAWH,IAAqBM,KAC5BC,EAAyBP,CAAkB;AAAA,EAEnD,GAAG,CAACG,GAA2BH,CAAkB,CAAC;AAElD,QAAMU,IAAiBC;AAAA,IACnB;AAAA,IACAT,KAAW,WAAWA,CAAO;AAAA,IAC7BE,KAAoB;AAAA,IACpBC,KAAaA;AAAA,EAAA;AAKjB,SACI,gBAAAO,EAACC,GAAA,EAAI,WAAWH,GAAgB,WAAWV,GAAoB,UAH9C,CAACc,MAA+Bb,EAAkB,OAAOa,CAAW,CAAC,GAIjF,UAAAf,EAAO,IAAI,CAACgB,GAAaC,MACtB,gBAAAJ;AAAA,IAACC,EAAI;AAAA,IAAJ;AAAA,MAEG,UAAUG;AAAA,MACV,UAAUA,IAAQV;AAAA,MAClB,IAAG;AAAA,MACH,WAAWK,EAAW,YAAYI,EAAY,qBAAqB;AAAA,MAEnE,UAAA,gBAAAE,EAAC,OAAA,EAAI,WAAU,oBACX,UAAA;AAAA,QAAA,gBAAAL,EAAC,OAAA,EAAI,WAAU,aAAa,UAAAG,EAAY,MAAK;AAAA,QAC7C,gBAAAH,EAAC,SAAI,WAAWD,EAAW,cAAcI,EAAY,cAAc,GAAI,UAAAA,EAAY,MAAA,CAAM;AAAA,MAAA,EAAA,CAC7F;AAAA,IAAA;AAAA,IATKC;AAAA,EAAA,CAWZ,GACL;AAER;AAEAnB,EAAmB,iBAAiB;AACpCA,EAAmB,oBAAoB;AACvCA,EAAmB,mBAAmB;"}
|
|
@@ -18,11 +18,22 @@ export type SwitchProps = {
|
|
|
18
18
|
/**
|
|
19
19
|
* Defines the color of the switch.
|
|
20
20
|
*
|
|
21
|
+
* Possible values are:
|
|
22
|
+
*
|
|
23
|
+
* - `'primary'`
|
|
24
|
+
* - `'secondary'`
|
|
25
|
+
* - `'info'`
|
|
26
|
+
* - `'success'`
|
|
27
|
+
* - `'warning'`
|
|
28
|
+
* - `'danger'`
|
|
29
|
+
*
|
|
21
30
|
* @default 'primary'
|
|
22
31
|
*/
|
|
23
32
|
color?: CurrentColor;
|
|
24
33
|
/**
|
|
25
34
|
* The min-width of the switch.
|
|
35
|
+
*
|
|
36
|
+
* @default 40
|
|
26
37
|
*/
|
|
27
38
|
minWidth?: number;
|
|
28
39
|
/**
|
|
@@ -41,8 +52,9 @@ export type SwitchProps = {
|
|
|
41
52
|
disabledText?: string;
|
|
42
53
|
/**
|
|
43
54
|
* Defines the position of the switch label.
|
|
55
|
+
* Defaults to `'right'` when children are present.
|
|
44
56
|
*
|
|
45
|
-
* Possible values are `left` and `right`.
|
|
57
|
+
* Possible values are `'left'` and `'right'`.
|
|
46
58
|
*/
|
|
47
59
|
labelPosition?: 'left' | 'right';
|
|
48
60
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Switch.js","sources":["../../../src/components/switch/Switch.tsx"],"sourcesContent":["import React, { forwardRef, type ChangeEvent, type PropsWithChildren } from 'react';\nimport classNames from 'classnames';\nimport { noop } from 'es-toolkit/function';\n\nimport { getCurrentBackgroundColor, type CurrentColor } from '../../utils/currentColors';\n\nexport type SwitchProps = {\n /**\n * Optional key that is used as key and as the id on the internal input.\n */\n keyName?: string;\n\n /**\n * Callback function triggered when clicking the button.\n */\n onChange?: (toggleState: boolean) => void;\n\n /**\n * Set active / inactive state.\n *\n * @default false\n */\n checked?: boolean;\n\n /**\n * Defines the color of the switch.\n *\n * @default 'primary'\n */\n color?: CurrentColor;\n\n /**\n * The min-width of the switch.\n */\n minWidth?: number;\n\n /**\n * Disables the component.\n *\n * @default false\n */\n disabled?: boolean;\n\n /**\n * The text used for the ON state.\n */\n enabledText?: string;\n\n /**\n * The text used for the OFF state.\n */\n disabledText?: string;\n\n /**\n * Defines the position of the switch label.\n *\n * Possible values are `left` and `right`.\n */\n labelPosition?: 'left' | 'right';\n\n /**\n * Additional class names added to the SVG element.\n */\n className?: string;\n};\n\nconst Switch = forwardRef((props: PropsWithChildren<SwitchProps>, ref: React.Ref<HTMLDivElement>) => {\n const {\n keyName,\n checked = false,\n enabledText,\n minWidth = 40,\n disabled = false,\n color = 'primary',\n disabledText,\n children,\n className = '',\n labelPosition = children ? 'right' : undefined,\n onChange = noop,\n ...remainingProps\n } = props;\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n onChange(event.target.checked);\n };\n\n const hasMultipleText = enabledText && disabledText;\n const hasSingleText = enabledText && !disabledText;\n\n const switchClasses = classNames('uikit-switch', className);\n\n const switchLabelClasses = classNames(\n 'switch-label',\n disabled && 'cursor-not-allowed',\n labelPosition && `label-position-${labelPosition}`\n );\n\n const switchContentClasses = classNames('switch-content');\n\n const switchBackgroundColor = getCurrentBackgroundColor(color);\n\n return (\n <div ref={ref} {...remainingProps} className={switchClasses}>\n <label className={switchLabelClasses}>\n <input\n onChange={handleChange}\n checked={checked}\n type='checkbox'\n id={keyName}\n key={keyName}\n className='switch-input'\n disabled={disabled}\n />\n <div className={switchContentClasses} style={{ color: switchBackgroundColor, minWidth }}>\n {hasMultipleText ? (\n <div className='switch-text' data-on={enabledText} data-off={disabledText} />\n ) : (\n hasSingleText && <div className='switch-text' data-on={enabledText} data-off={enabledText} />\n )}\n <div className='switch-handle' />\n </div>\n\n {children && children}\n </label>\n </div>\n );\n}) as React.ForwardRefExoticComponent<PropsWithChildren<SwitchProps> & React.RefAttributes<HTMLDivElement>> & {\n LABEL_POSITION_LEFT: 'left';\n LABEL_POSITION_RIGHT: 'right';\n};\n\nSwitch.LABEL_POSITION_LEFT = 'left' as const;\nSwitch.LABEL_POSITION_RIGHT = 'right' as const;\n\nexport default Switch;\n"],"names":["Switch","forwardRef","props","ref","keyName","checked","enabledText","minWidth","disabled","color","disabledText","children","className","labelPosition","onChange","noop","remainingProps","handleChange","event","hasMultipleText","hasSingleText","switchClasses","classNames","switchLabelClasses","switchContentClasses","switchBackgroundColor","getCurrentBackgroundColor","jsx","jsxs"],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"Switch.js","sources":["../../../src/components/switch/Switch.tsx"],"sourcesContent":["import React, { forwardRef, type ChangeEvent, type PropsWithChildren } from 'react';\nimport classNames from 'classnames';\nimport { noop } from 'es-toolkit/function';\n\nimport { getCurrentBackgroundColor, type CurrentColor } from '../../utils/currentColors';\n\nexport type SwitchProps = {\n /**\n * Optional key that is used as key and as the id on the internal input.\n */\n keyName?: string;\n\n /**\n * Callback function triggered when clicking the button.\n */\n onChange?: (toggleState: boolean) => void;\n\n /**\n * Set active / inactive state.\n *\n * @default false\n */\n checked?: boolean;\n\n /**\n * Defines the color of the switch.\n *\n * Possible values are:\n *\n * - `'primary'`\n * - `'secondary'`\n * - `'info'`\n * - `'success'`\n * - `'warning'`\n * - `'danger'`\n *\n * @default 'primary'\n */\n color?: CurrentColor;\n\n /**\n * The min-width of the switch.\n *\n * @default 40\n */\n minWidth?: number;\n\n /**\n * Disables the component.\n *\n * @default false\n */\n disabled?: boolean;\n\n /**\n * The text used for the ON state.\n */\n enabledText?: string;\n\n /**\n * The text used for the OFF state.\n */\n disabledText?: string;\n\n /**\n * Defines the position of the switch label.\n * Defaults to `'right'` when children are present.\n *\n * Possible values are `'left'` and `'right'`.\n */\n labelPosition?: 'left' | 'right';\n\n /**\n * Additional class names added to the SVG element.\n */\n className?: string;\n};\n\nconst Switch = forwardRef((props: PropsWithChildren<SwitchProps>, ref: React.Ref<HTMLDivElement>) => {\n const {\n keyName,\n checked = false,\n enabledText,\n minWidth = 40,\n disabled = false,\n color = 'primary',\n disabledText,\n children,\n className = '',\n labelPosition = children ? 'right' : undefined,\n onChange = noop,\n ...remainingProps\n } = props;\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>) => {\n onChange(event.target.checked);\n };\n\n const hasMultipleText = enabledText && disabledText;\n const hasSingleText = enabledText && !disabledText;\n\n const switchClasses = classNames('uikit-switch', className);\n\n const switchLabelClasses = classNames(\n 'switch-label',\n disabled && 'cursor-not-allowed',\n labelPosition && `label-position-${labelPosition}`\n );\n\n const switchContentClasses = classNames('switch-content');\n\n const switchBackgroundColor = getCurrentBackgroundColor(color);\n\n return (\n <div ref={ref} {...remainingProps} className={switchClasses}>\n <label className={switchLabelClasses}>\n <input\n onChange={handleChange}\n checked={checked}\n type='checkbox'\n id={keyName}\n key={keyName}\n className='switch-input'\n disabled={disabled}\n />\n <div className={switchContentClasses} style={{ color: switchBackgroundColor, minWidth }}>\n {hasMultipleText ? (\n <div className='switch-text' data-on={enabledText} data-off={disabledText} />\n ) : (\n hasSingleText && <div className='switch-text' data-on={enabledText} data-off={enabledText} />\n )}\n <div className='switch-handle' />\n </div>\n\n {children && children}\n </label>\n </div>\n );\n}) as React.ForwardRefExoticComponent<PropsWithChildren<SwitchProps> & React.RefAttributes<HTMLDivElement>> & {\n LABEL_POSITION_LEFT: 'left';\n LABEL_POSITION_RIGHT: 'right';\n};\n\nSwitch.LABEL_POSITION_LEFT = 'left' as const;\nSwitch.LABEL_POSITION_RIGHT = 'right' as const;\n\nexport default Switch;\n"],"names":["Switch","forwardRef","props","ref","keyName","checked","enabledText","minWidth","disabled","color","disabledText","children","className","labelPosition","onChange","noop","remainingProps","handleChange","event","hasMultipleText","hasSingleText","switchClasses","classNames","switchLabelClasses","switchContentClasses","switchBackgroundColor","getCurrentBackgroundColor","jsx","jsxs"],"mappings":";;;;;AA8EA,MAAMA,IAASC,EAAW,CAACC,GAAuCC,MAAmC;AACjG,QAAM;AAAA,IACF,SAAAC;AAAA,IACA,SAAAC,IAAU;AAAA,IACV,aAAAC;AAAA,IACA,UAAAC,IAAW;AAAA,IACX,UAAAC,IAAW;AAAA,IACX,OAAAC,IAAQ;AAAA,IACR,cAAAC;AAAA,IACA,UAAAC;AAAA,IACA,WAAAC,IAAY;AAAA,IACZ,eAAAC,IAAgBF,IAAW,UAAU;AAAA,IACrC,UAAAG,IAAWC;AAAA,IACX,GAAGC;AAAA,EAAA,IACHd,GAEEe,IAAe,CAACC,MAAyC;AAC3D,IAAAJ,EAASI,EAAM,OAAO,OAAO;AAAA,EACjC,GAEMC,IAAkBb,KAAeI,GACjCU,IAAgBd,KAAe,CAACI,GAEhCW,IAAgBC,EAAW,gBAAgBV,CAAS,GAEpDW,IAAqBD;AAAA,IACvB;AAAA,IACAd,KAAY;AAAA,IACZK,KAAiB,kBAAkBA,CAAa;AAAA,EAAA,GAG9CW,IAAuBF,EAAW,gBAAgB,GAElDG,IAAwBC,EAA0BjB,CAAK;AAE7D,SACI,gBAAAkB,EAAC,OAAA,EAAI,KAAAxB,GAAW,GAAGa,GAAgB,WAAWK,GAC1C,UAAA,gBAAAO,EAAC,SAAA,EAAM,WAAWL,GACd,UAAA;AAAA,IAAA,gBAAAI;AAAA,MAAC;AAAA,MAAA;AAAA,QACG,UAAUV;AAAA,QACV,SAAAZ;AAAA,QACA,MAAK;AAAA,QACL,IAAID;AAAA,QAEJ,WAAU;AAAA,QACV,UAAAI;AAAA,MAAA;AAAA,MAFKJ;AAAA,IAAA;AAAA,IAIT,gBAAAwB,EAAC,SAAI,WAAWJ,GAAsB,OAAO,EAAE,OAAOC,GAAuB,UAAAlB,EAAA,GACxE,UAAA;AAAA,MAAAY,sBACI,OAAA,EAAI,WAAU,eAAc,WAASb,GAAa,YAAUI,EAAA,CAAc,IAE3EU,uBAAkB,OAAA,EAAI,WAAU,eAAc,WAASd,GAAa,YAAUA,GAAa;AAAA,MAE/F,gBAAAqB,EAAC,OAAA,EAAI,WAAU,gBAAA,CAAgB;AAAA,IAAA,GACnC;AAAA,IAEChB,KAAYA;AAAA,EAAA,EAAA,CACjB,EAAA,CACJ;AAER,CAAC;AAKDX,EAAO,sBAAsB;AAC7BA,EAAO,uBAAuB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortArrowDown.js","sources":["../../../src/components/table/SortArrowDown.tsx"],"sourcesContent":["export type SortArrowDownProps =
|
|
1
|
+
{"version":3,"file":"SortArrowDown.js","sources":["../../../src/components/table/SortArrowDown.tsx"],"sourcesContent":["export type SortArrowDownProps = Record<string, never>;\n\nconst SortArrowDown = () => <span className='sort-icon sort-desc' />;\n\nexport default SortArrowDown;\n"],"names":["SortArrowDown","jsx"],"mappings":";AAEA,MAAMA,IAAgB,MAAM,gBAAAC,EAAC,QAAA,EAAK,WAAU,sBAAA,CAAsB;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortArrowUp.js","sources":["../../../src/components/table/SortArrowUp.tsx"],"sourcesContent":["export type SortArrowUpProps =
|
|
1
|
+
{"version":3,"file":"SortArrowUp.js","sources":["../../../src/components/table/SortArrowUp.tsx"],"sourcesContent":["export type SortArrowUpProps = Record<string, never>;\n\nconst SortArrowUp = () => <span className='sort-icon sort-asc' />;\n\nexport default SortArrowUp;\n"],"names":["SortArrowUp","jsx"],"mappings":";AAEA,MAAMA,IAAc,MAAM,gBAAAC,EAAC,QAAA,EAAK,WAAU,qBAAA,CAAqB;"}
|
|
@@ -64,6 +64,11 @@ type TableSettingsDialogProps = {
|
|
|
64
64
|
* The keys of this object are the column names / keys you use to identify a column.
|
|
65
65
|
*/
|
|
66
66
|
columnsDetails?: TableColumnDetailsMap;
|
|
67
|
+
/**
|
|
68
|
+
* The label shown when the column width is unset, which means "auto".
|
|
69
|
+
*
|
|
70
|
+
* @default ''
|
|
71
|
+
*/
|
|
67
72
|
autoLabel?: string | React.ReactNode;
|
|
68
73
|
/**
|
|
69
74
|
* Text for the "apply" button. This button will not be shown when
|
|
@@ -1,175 +1,185 @@
|
|
|
1
|
-
import { jsx as a, jsxs as
|
|
1
|
+
import { jsx as a, jsxs as V } from "react/jsx-runtime";
|
|
2
2
|
import { useState as l, useRef as Re, useEffect as Ie } from "react";
|
|
3
3
|
import Me from "classnames";
|
|
4
|
-
import { isEqual as
|
|
5
|
-
import { isEmpty as
|
|
6
|
-
import { noop as
|
|
4
|
+
import { isEqual as y } from "es-toolkit/predicate";
|
|
5
|
+
import { isEmpty as j, some as Ae, mapValues as Ne } from "es-toolkit/compat";
|
|
6
|
+
import { noop as g } from "es-toolkit/function";
|
|
7
7
|
import { arrayMove as Ee } from "@dnd-kit/sortable";
|
|
8
8
|
import Fe from "../dialog/Dialog.js";
|
|
9
9
|
import Be from "../clearableInput/ClearableInput.js";
|
|
10
10
|
import { TableSettingsDialogFooter as Ve } from "./TableSettingsDialogFooter.js";
|
|
11
11
|
import { TableSettingsListContainer as je } from "./TableSettingsListContainer.js";
|
|
12
12
|
import { filterColumns as Pe } from "./TableSettingsListItem.js";
|
|
13
|
-
const
|
|
13
|
+
const P = 0, Ue = 1e3, tt = (U) => {
|
|
14
14
|
const {
|
|
15
|
-
show:
|
|
16
|
-
title:
|
|
17
|
-
subtitle:
|
|
18
|
-
className:
|
|
19
|
-
defaultColumnOrder:
|
|
20
|
-
defaultHiddenColumns:
|
|
21
|
-
columnOrder:
|
|
22
|
-
hiddenColumns:
|
|
23
|
-
columnLabels:
|
|
24
|
-
disabledColumns:
|
|
25
|
-
columnsDetails:
|
|
26
|
-
autoLabel:
|
|
27
|
-
applyButtonText:
|
|
28
|
-
cancelButtonText:
|
|
29
|
-
closeButtonText:
|
|
30
|
-
resetButtonText:
|
|
31
|
-
onColumnChange:
|
|
32
|
-
onColumnDetailsChange:
|
|
33
|
-
onDiscard:
|
|
15
|
+
show: p = !1,
|
|
16
|
+
title: _,
|
|
17
|
+
subtitle: q,
|
|
18
|
+
className: K,
|
|
19
|
+
defaultColumnOrder: h = [],
|
|
20
|
+
defaultHiddenColumns: m = [],
|
|
21
|
+
columnOrder: D = [],
|
|
22
|
+
hiddenColumns: b = [],
|
|
23
|
+
columnLabels: X = {},
|
|
24
|
+
disabledColumns: k = [],
|
|
25
|
+
columnsDetails: d = {},
|
|
26
|
+
autoLabel: z = "",
|
|
27
|
+
applyButtonText: G,
|
|
28
|
+
cancelButtonText: J,
|
|
29
|
+
closeButtonText: Q,
|
|
30
|
+
resetButtonText: Y,
|
|
31
|
+
onColumnChange: f = g,
|
|
32
|
+
onColumnDetailsChange: M = g,
|
|
33
|
+
onDiscard: Z = g,
|
|
34
34
|
// onCancel = noop,
|
|
35
|
-
onApply:
|
|
36
|
-
onHide:
|
|
37
|
-
columnSearchValue:
|
|
38
|
-
onSearchChange:
|
|
39
|
-
searchPlaceholder:
|
|
40
|
-
notFoundMessage:
|
|
41
|
-
immediateChange:
|
|
42
|
-
} =
|
|
35
|
+
onApply: $ = g,
|
|
36
|
+
onHide: S,
|
|
37
|
+
columnSearchValue: T = "",
|
|
38
|
+
onSearchChange: x = g,
|
|
39
|
+
searchPlaceholder: ee,
|
|
40
|
+
notFoundMessage: te = "",
|
|
41
|
+
immediateChange: u = !1
|
|
42
|
+
} = U, [L, O] = l(T), [i, w] = l(D), [r, H] = l(b || m), [o, v] = l(d), [A, ne] = l({}), [N, se] = l({}), [oe, le] = l(!0), [ae, C] = l(!1), [ie, W] = l(!1), [_e, R] = l(!1), I = Re(null);
|
|
43
43
|
Ie(() => {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
44
|
+
O(T), w(D), H(b), p && ue();
|
|
45
|
+
const e = D ?? h, t = b ?? m, n = d ?? {}, s = !y(e, h) || !y(t, m) || E(n);
|
|
46
|
+
C(s);
|
|
47
|
+
}, [
|
|
48
|
+
T,
|
|
49
|
+
D,
|
|
50
|
+
b,
|
|
51
|
+
d,
|
|
52
|
+
h,
|
|
53
|
+
m,
|
|
54
|
+
p
|
|
55
|
+
]);
|
|
56
|
+
const E = (e) => j(e) ? !1 : Ae(e, (n) => {
|
|
57
|
+
const s = Number.isFinite(n.defaultWidth) ? n.defaultWidth : P;
|
|
58
|
+
return n.width !== s;
|
|
59
|
+
}), [re, de] = l(d);
|
|
60
|
+
if (!y(o, re)) {
|
|
61
|
+
const e = E(d);
|
|
62
|
+
v(e ? d : o), de(d);
|
|
53
63
|
}
|
|
54
64
|
const ue = () => {
|
|
55
|
-
if (!
|
|
65
|
+
if (!I.current)
|
|
56
66
|
return;
|
|
57
|
-
const e =
|
|
58
|
-
[...e].forEach((
|
|
59
|
-
const
|
|
60
|
-
if (
|
|
61
|
-
const
|
|
62
|
-
|
|
67
|
+
const e = I.current.getElementsByClassName("table-settings-item-label"), t = {};
|
|
68
|
+
[...e].forEach((n) => {
|
|
69
|
+
const s = n.getAttribute("data-key");
|
|
70
|
+
if (s) {
|
|
71
|
+
const c = n.textContent?.replace(/\r?\n|\r/g, "").toLowerCase();
|
|
72
|
+
c && (t[s] = c);
|
|
63
73
|
}
|
|
64
|
-
}),
|
|
74
|
+
}), se(t), le(!1);
|
|
65
75
|
}, ce = () => {
|
|
66
|
-
|
|
67
|
-
}, me = (e, t,
|
|
68
|
-
const
|
|
69
|
-
|
|
70
|
-
}, Ce = () =>
|
|
76
|
+
R(!1);
|
|
77
|
+
}, me = (e, t, n) => {
|
|
78
|
+
const s = i.filter((c) => c !== e);
|
|
79
|
+
s.splice(t, 0, e), w(s), R(n ? !!e : !1), C(!0), u && f(s, r), window.setTimeout(ce, 500);
|
|
80
|
+
}, Ce = () => W(!0), he = () => W(!1), fe = (e) => Ne(e, (t) => ({
|
|
71
81
|
...t,
|
|
72
|
-
width: t.defaultWidth ||
|
|
82
|
+
width: t.defaultWidth || P
|
|
73
83
|
})), ge = () => {
|
|
74
|
-
const e = fe(
|
|
75
|
-
|
|
84
|
+
const e = fe(o);
|
|
85
|
+
w(h), H(m), O(""), C(!1), W(!1), j(o) || v(e), u && (x(""), f(h, m, e));
|
|
76
86
|
}, pe = () => {
|
|
77
|
-
|
|
78
|
-
},
|
|
79
|
-
|
|
80
|
-
},
|
|
81
|
-
const
|
|
82
|
-
|
|
87
|
+
x(""), Z(), S();
|
|
88
|
+
}, De = () => {
|
|
89
|
+
O(""), x(""), f(i, r, o), $(i, r, o), S();
|
|
90
|
+
}, be = (e) => {
|
|
91
|
+
const n = r.includes(e) ? r.filter((s) => s !== e) : [...r, e];
|
|
92
|
+
H(n), C(!0), u && f(i, n);
|
|
83
93
|
}, Se = (e) => {
|
|
84
94
|
const t = e.toLowerCase();
|
|
85
|
-
|
|
95
|
+
O(() => (x(t), t));
|
|
86
96
|
}, xe = (e, t) => {
|
|
87
|
-
|
|
97
|
+
o[e] ? o[e].width = t : o[e] = {
|
|
88
98
|
width: t,
|
|
89
99
|
defaultWidth: 0,
|
|
90
100
|
maxWidth: Ue
|
|
91
|
-
},
|
|
92
|
-
}, we = (e) => {
|
|
93
|
-
const t = n[e];
|
|
94
|
-
t.width = t.defaultWidth, S(n), d && I(e, n[e]);
|
|
101
|
+
}, v(o), C(!0), u && M(e, o[e]);
|
|
95
102
|
}, Oe = (e) => {
|
|
96
|
-
const t =
|
|
97
|
-
t
|
|
103
|
+
const t = o[e];
|
|
104
|
+
t.width = t.defaultWidth, v(o), u && M(e, o[e]);
|
|
105
|
+
}, we = (e) => {
|
|
106
|
+
const t = { ...A };
|
|
107
|
+
t[e] ? delete t[e] : t[e] = e, ne(t);
|
|
98
108
|
}, ve = (e, t) => {
|
|
99
|
-
const { active:
|
|
100
|
-
if (
|
|
109
|
+
const { active: n, over: s } = e, c = n.id, F = s?.id;
|
|
110
|
+
if (c === F)
|
|
101
111
|
return;
|
|
102
|
-
const
|
|
103
|
-
|
|
112
|
+
const He = t.indexOf(String(c)), We = t.indexOf(String(F)), B = Ee(t, He, We);
|
|
113
|
+
w(B), R(!0), C(!0), u && f(B, r);
|
|
104
114
|
}, ye = () => {
|
|
105
115
|
const e = {
|
|
106
|
-
columnLabels:
|
|
107
|
-
autoLabel:
|
|
108
|
-
disabledColumns:
|
|
116
|
+
columnLabels: X,
|
|
117
|
+
autoLabel: z,
|
|
118
|
+
disabledColumns: k,
|
|
109
119
|
columnOrder: i,
|
|
110
120
|
hiddenColumns: r,
|
|
111
|
-
columnSearchValue:
|
|
112
|
-
columnsDetails:
|
|
113
|
-
columnLabelStrings:
|
|
114
|
-
openColumnsDetails:
|
|
115
|
-
updateColumnLabelStrings:
|
|
121
|
+
columnSearchValue: L,
|
|
122
|
+
columnsDetails: o,
|
|
123
|
+
columnLabelStrings: N,
|
|
124
|
+
openColumnsDetails: A,
|
|
125
|
+
updateColumnLabelStrings: oe,
|
|
116
126
|
onMoveColumn: me,
|
|
117
|
-
onOpenDetails:
|
|
127
|
+
onOpenDetails: we,
|
|
118
128
|
onColumnWidthChange: xe,
|
|
119
|
-
onResetColumnWidth:
|
|
120
|
-
onToggleHideColumn:
|
|
129
|
+
onResetColumnWidth: Oe,
|
|
130
|
+
onToggleHideColumn: be
|
|
121
131
|
}, t = i.filter(
|
|
122
|
-
(
|
|
123
|
-
),
|
|
124
|
-
return /* @__PURE__ */
|
|
125
|
-
/* @__PURE__ */ a("div", { className: "table-settings-search", children: /* @__PURE__ */
|
|
132
|
+
(s) => Pe(L, s, N)
|
|
133
|
+
), n = !y(t, i);
|
|
134
|
+
return /* @__PURE__ */ V("div", { ref: I, children: [
|
|
135
|
+
/* @__PURE__ */ a("div", { className: "table-settings-search", children: /* @__PURE__ */ V("div", { className: "input-group width-100pct", children: [
|
|
126
136
|
/* @__PURE__ */ a("span", { className: "input-group-addon", children: /* @__PURE__ */ a("span", { className: "rioglyph rioglyph-search" }) }),
|
|
127
137
|
/* @__PURE__ */ a(
|
|
128
138
|
Be,
|
|
129
139
|
{
|
|
130
|
-
value:
|
|
140
|
+
value: L,
|
|
131
141
|
onChange: Se,
|
|
132
|
-
placeholder:
|
|
142
|
+
placeholder: ee
|
|
133
143
|
}
|
|
134
144
|
)
|
|
135
145
|
] }) }),
|
|
136
|
-
/* @__PURE__ */ a("div", { className: "table-settings-body", children:
|
|
146
|
+
/* @__PURE__ */ a("div", { className: "table-settings-body", children: n ? /* @__PURE__ */ a(
|
|
137
147
|
je,
|
|
138
148
|
{
|
|
139
149
|
items: i,
|
|
140
150
|
onSortEnd: ve,
|
|
141
151
|
itemProps: { ...e }
|
|
142
152
|
}
|
|
143
|
-
) : /* @__PURE__ */ a("div", { className: "text-center text-color-gray", children:
|
|
153
|
+
) : /* @__PURE__ */ a("div", { className: "text-center text-color-gray", children: te }) })
|
|
144
154
|
] });
|
|
145
155
|
}, Te = () => /* @__PURE__ */ a(
|
|
146
156
|
Ve,
|
|
147
157
|
{
|
|
148
|
-
hasChanged:
|
|
149
|
-
isResetAll:
|
|
150
|
-
immediateChange:
|
|
151
|
-
resetButtonText:
|
|
152
|
-
closeButtonText:
|
|
153
|
-
cancelButtonText:
|
|
154
|
-
applyButtonText:
|
|
155
|
-
onHide:
|
|
158
|
+
hasChanged: ae,
|
|
159
|
+
isResetAll: ie,
|
|
160
|
+
immediateChange: u,
|
|
161
|
+
resetButtonText: Y,
|
|
162
|
+
closeButtonText: Q,
|
|
163
|
+
cancelButtonText: J,
|
|
164
|
+
applyButtonText: G,
|
|
165
|
+
onHide: S,
|
|
156
166
|
onResetColumnChanges: Ce,
|
|
157
167
|
onDiscardChanges: pe,
|
|
158
|
-
onApplyChanges:
|
|
168
|
+
onApplyChanges: De,
|
|
159
169
|
onConfirmResetColumnChanges: ge,
|
|
160
170
|
onCancelResetColumnChanges: he
|
|
161
171
|
}
|
|
162
172
|
);
|
|
163
|
-
if (!
|
|
173
|
+
if (!p)
|
|
164
174
|
return null;
|
|
165
|
-
const Le = Me("TableSettingsDialog",
|
|
175
|
+
const Le = Me("TableSettingsDialog", K);
|
|
166
176
|
return /* @__PURE__ */ a(
|
|
167
177
|
Fe,
|
|
168
178
|
{
|
|
169
|
-
show:
|
|
170
|
-
title:
|
|
171
|
-
subtitle:
|
|
172
|
-
onClose:
|
|
179
|
+
show: p,
|
|
180
|
+
title: _,
|
|
181
|
+
subtitle: q,
|
|
182
|
+
onClose: S,
|
|
173
183
|
body: ye(),
|
|
174
184
|
footer: Te(),
|
|
175
185
|
className: Le
|