@sis-cc/dotstatsuite-visions 12.55.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -34
- package/dist/Alert/Alert.js +185 -0
- package/dist/Alert/Alert.js.map +1 -0
- package/dist/ApiQueries/ApiQueries.js +163 -0
- package/dist/ApiQueries/ApiQueries.js.map +1 -0
- package/dist/AuthDialog/AuthDialog.js +114 -0
- package/dist/AuthDialog/AuthDialog.js.map +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.js +51 -0
- package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/Button/Button.js +50 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/ChartsConfig/ChartsConfig.js +507 -0
- package/dist/ChartsConfig/ChartsConfig.js.map +1 -0
- package/dist/CollapseButtons/CollapseButtons.js +320 -0
- package/dist/CollapseButtons/CollapseButtons.js.map +1 -0
- package/dist/CollapsibleTree/CollapsibleTree.js +199 -0
- package/dist/CollapsibleTree/CollapsibleTree.js.map +1 -0
- package/dist/Contact/Contact.js +439 -0
- package/dist/Contact/Contact.js.map +1 -0
- package/dist/DataFooter/DataFooter.js +106 -0
- package/dist/DataFooter/DataFooter.js.map +1 -0
- package/dist/DataHeader/DataHeader.js +341 -0
- package/dist/DataHeader/DataHeader.js.map +1 -0
- package/dist/Dataflow/Dataflow.js +325 -0
- package/dist/Dataflow/Dataflow.js.map +1 -0
- package/dist/DeleteAllChip/DeleteAllChip.js +24 -0
- package/dist/DeleteAllChip/DeleteAllChip.js.map +1 -0
- package/dist/DynamicDrawer/DynamicDrawer.js +875 -0
- package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -0
- package/dist/ExpansionPanel/ExpansionPanel.js +199 -0
- package/dist/ExpansionPanel/ExpansionPanel.js.map +1 -0
- package/dist/GroupedChips/GroupedChips.js +78 -0
- package/dist/GroupedChips/GroupedChips.js.map +1 -0
- package/dist/HierarchicalFilter/HierarchicalFilter.js +144 -0
- package/dist/HierarchicalFilter/HierarchicalFilter.js.map +1 -0
- package/dist/Icons/AccessibilityFilled.js +8 -0
- package/dist/Icons/AccessibilityFilled.js.map +1 -0
- package/dist/Icons/AccessibilityOutlined.js +8 -0
- package/dist/Icons/AccessibilityOutlined.js.map +1 -0
- package/dist/Icons/AccountFilled.js +8 -0
- package/dist/Icons/AccountFilled.js.map +1 -0
- package/dist/Icons/AccountOutlined.js +8 -0
- package/dist/Icons/AccountOutlined.js.map +1 -0
- package/dist/Icons/Api.js +8 -0
- package/dist/Icons/Api.js.map +1 -0
- package/dist/Icons/Asterisk.js +8 -0
- package/dist/Icons/Asterisk.js.map +1 -0
- package/dist/Icons/Bar.js +8 -0
- package/dist/Icons/Bar.js.map +1 -0
- package/dist/Icons/CopyContent.js +8 -0
- package/dist/Icons/CopyContent.js.map +1 -0
- package/dist/Icons/Cross.js +8 -0
- package/dist/Icons/Cross.js.map +1 -0
- package/dist/Icons/HSymbol.js +8 -0
- package/dist/Icons/HSymbol.js.map +1 -0
- package/dist/Icons/Row.js +8 -0
- package/dist/Icons/Row.js.map +1 -0
- package/dist/Icons/Scatter.js +8 -0
- package/dist/Icons/Scatter.js.map +1 -0
- package/dist/Icons/StackedBar.js +8 -0
- package/dist/Icons/StackedBar.js.map +1 -0
- package/dist/Icons/StackedRow.js +8 -0
- package/dist/Icons/StackedRow.js.map +1 -0
- package/dist/Icons/Timeline.js +8 -0
- package/dist/Icons/Timeline.js.map +1 -0
- package/dist/Icons/VSymbol.js +8 -0
- package/dist/Icons/VSymbol.js.map +1 -0
- package/dist/Icons/Warning.js +18 -0
- package/dist/Icons/Warning.js.map +1 -0
- package/dist/Input/Input.js +72 -0
- package/dist/Input/Input.js.map +1 -0
- package/dist/InputNumber/InputNumber.js +86 -0
- package/dist/InputNumber/InputNumber.js.map +1 -0
- package/dist/LabelDivider/LabelDivider.js +35 -0
- package/dist/LabelDivider/LabelDivider.js.map +1 -0
- package/dist/Loading/Loading.js +72 -0
- package/dist/Loading/Loading.js.map +1 -0
- package/dist/Logo/Logo.js +38 -0
- package/dist/Logo/Logo.js.map +1 -0
- package/dist/Mode/Mode.js +90 -0
- package/dist/Mode/Mode.js.map +1 -0
- package/dist/NoData/NoData.js +27 -0
- package/dist/NoData/NoData.js.map +1 -0
- package/dist/Pagination/Pagination.js +142 -0
- package/dist/Pagination/Pagination.js.map +1 -0
- package/dist/PeriodPicker/PeriodPicker.js +550 -0
- package/dist/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/Select/Select.js +125 -0
- package/dist/Select/Select.js.map +1 -0
- package/dist/Share/Share.js +292 -0
- package/dist/Share/Share.js.map +1 -0
- package/dist/ShortUrls/ShortUrls.js +106 -0
- package/dist/ShortUrls/ShortUrls.js.map +1 -0
- package/dist/SisccFooter/SisccFooter.js +65 -0
- package/dist/SisccFooter/SisccFooter.js.map +1 -0
- package/dist/Spotlight/Spotlight.js +349 -0
- package/dist/Spotlight/Spotlight.js.map +1 -0
- package/dist/TableFooter/TableFooter.js +42 -0
- package/dist/TableFooter/TableFooter.js.map +1 -0
- package/dist/TableHeader/TableHeader.js +35 -0
- package/dist/TableHeader/TableHeader.js.map +1 -0
- package/dist/TableHtml5/TableHtml5.js +1045 -0
- package/dist/TableHtml5/TableHtml5.js.map +1 -0
- package/dist/TableLayout/TableLayout.js +529 -0
- package/dist/TableLayout/TableLayout.js.map +1 -0
- package/dist/TablePreview/TablePreview.js +209 -0
- package/dist/TablePreview/TablePreview.js.map +1 -0
- package/dist/Tag/Tag.js +23 -0
- package/dist/Tag/Tag.js.map +1 -0
- package/dist/Tooltip/Tooltip.js +54 -0
- package/dist/Tooltip/Tooltip.js.map +1 -0
- package/dist/UserRightForm/UserRightForm.js +545 -0
- package/dist/UserRightForm/UserRightForm.js.map +1 -0
- package/dist/VerticalButton/VerticalButton.js +43 -0
- package/dist/VerticalButton/VerticalButton.js.map +1 -0
- package/dist/chunks/CustomChip-CMYCIorJ.js +181 -0
- package/dist/chunks/CustomChip-CMYCIorJ.js.map +1 -0
- package/dist/chunks/useKeybordEscapeHandler-DRsOrnwc.js +22 -0
- package/dist/chunks/useKeybordEscapeHandler-DRsOrnwc.js.map +1 -0
- package/dist/chunks/utils-BQc_rN44.js +15 -0
- package/dist/chunks/utils-BQc_rN44.js.map +1 -0
- package/dist/chunks/utils-kslX1mzh.js +20 -0
- package/dist/chunks/utils-kslX1mzh.js.map +1 -0
- package/dist/chunks/with-input-DRWNlMdA.js +35 -0
- package/dist/chunks/with-input-DRWNlMdA.js.map +1 -0
- package/dist/chunks/withSpotlight-CYQVWD78.js +903 -0
- package/dist/chunks/withSpotlight-CYQVWD78.js.map +1 -0
- package/{es → dist/theme}/theme.js +147 -149
- package/dist/theme/theme.js.map +1 -0
- package/package.json +55 -199
- package/es/AdvancedFilterDialog/AdvancedFilterDialog.js +0 -583
- package/es/AdvancedFilterDialog/SelectionModeMenu.js +0 -85
- package/es/AdvancedFilterDialog/images/all-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/branch-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/children-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/level-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/single-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-all-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-branch-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-children-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-level-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-single-selection.png +0 -0
- package/es/AdvancedFilterDialog/index.js +0 -26
- package/es/Alert/Alert.js +0 -284
- package/es/Alert/index.js +0 -13
- package/es/ApiQueries/ApiQueries.js +0 -107
- package/es/ApiQueries/Query.js +0 -175
- package/es/ApiQueries/index.js +0 -45
- package/es/AuthDialog/index.js +0 -211
- package/es/Breadcrumbs/Breadcrumbs.js +0 -72
- package/es/Breadcrumbs/index.js +0 -30
- package/es/Button/Button.js +0 -63
- package/es/Button/index.js +0 -52
- package/es/ChartsConfig/ChartsConfig.js +0 -470
- package/es/ChartsConfig/Input.js +0 -152
- package/es/ChartsConfig/InputProxy.js +0 -57
- package/es/ChartsConfig/Proxy.js +0 -20
- package/es/ChartsConfig/Title.js +0 -37
- package/es/ChartsConfig/index.js +0 -213
- package/es/ChartsConfig/useAxisOptions.js +0 -9
- package/es/ChartsConfig/useDimensionOptions.js +0 -12
- package/es/ChartsConfig/useFocusOptions.js +0 -22
- package/es/ChartsConfig/utils.js +0 -6
- package/es/Chips/CustomChip.js +0 -139
- package/es/Chips/DeleteChip.js +0 -32
- package/es/Chips/GroupedChips.js +0 -106
- package/es/Chips/index.js +0 -69
- package/es/Chips/styles.js +0 -67
- package/es/Chips/utils.js +0 -21
- package/es/CollapseButtons/CollapseButtons.js +0 -159
- package/es/CollapseButtons/Item.js +0 -146
- package/es/CollapseButtons/Paper.js +0 -58
- package/es/CollapseButtons/index.js +0 -90
- package/es/CollapsibleTree/Collapse.js +0 -98
- package/es/CollapsibleTree/CollapsibleTree.js +0 -229
- package/es/CollapsibleTree/index.js +0 -49
- package/es/Contact/Contact.js +0 -360
- package/es/Contact/Input.js +0 -129
- package/es/Contact/Mode.js +0 -134
- package/es/Contact/index.js +0 -36
- package/es/DataEdit/DataEdit.js +0 -154
- package/es/DataEdit/Input.js +0 -151
- package/es/DataEdit/index.js +0 -70
- package/es/DataFooter/DataFooter.js +0 -178
- package/es/DataFooter/index.js +0 -33
- package/es/DataHeader/DataHeader.js +0 -314
- package/es/DataHeader/Flags.js +0 -42
- package/es/DataHeader/Title.js +0 -27
- package/es/DataHeader/TooltipHeader.js +0 -78
- package/es/DataHeader/index.js +0 -82
- package/es/DataHeader/utils.js +0 -19
- package/es/Dataflow/Dataflow.js +0 -441
- package/es/Dataflow/index.js +0 -62
- package/es/DynamicDrawer/AdvancedSelection.js +0 -503
- package/es/DynamicDrawer/DynamicDrawer.js +0 -418
- package/es/DynamicDrawer/SelectionModesMobile.js +0 -88
- package/es/DynamicDrawer/index.js +0 -44
- package/es/ExpansionPanel/ExpansionPanel.js +0 -151
- package/es/ExpansionPanel/index.js +0 -58
- package/es/ExpansionPanel/styles.js +0 -89
- package/es/HierarchicalFilter/HierarchicalFilter.js +0 -178
- package/es/HierarchicalFilter/index.js +0 -26
- package/es/Icons/AccessibilityFilled.js +0 -12
- package/es/Icons/AccessibilityOutlined.js +0 -12
- package/es/Icons/AccountFilled.js +0 -12
- package/es/Icons/AccountOutlined.js +0 -12
- package/es/Icons/Api.js +0 -12
- package/es/Icons/Asterisk.js +0 -12
- package/es/Icons/Bar.js +0 -12
- package/es/Icons/CopyContent.js +0 -12
- package/es/Icons/Cross.js +0 -12
- package/es/Icons/HSymbol.js +0 -12
- package/es/Icons/Row.js +0 -12
- package/es/Icons/Scatter.js +0 -12
- package/es/Icons/StackedBar.js +0 -12
- package/es/Icons/StackedRow.js +0 -12
- package/es/Icons/Timeline.js +0 -12
- package/es/Icons/VSymbol.js +0 -12
- package/es/Icons/Warning.js +0 -25
- package/es/Icons/index.js +0 -28
- package/es/Input/Input.js +0 -128
- package/es/Input/index.js +0 -26
- package/es/Input/with-input.js +0 -55
- package/es/InputNumber/InputNumber.js +0 -116
- package/es/InputNumber/index.js +0 -23
- package/es/LabelDivider/LabelDivider.js +0 -52
- package/es/LabelDivider/index.js +0 -32
- package/es/Loading/Loading.js +0 -84
- package/es/Loading/index.js +0 -24
- package/es/Logo/Logo.js +0 -55
- package/es/Logo/index.js +0 -18
- package/es/Mode/Mode.js +0 -135
- package/es/Mode/index.js +0 -24
- package/es/NoData/NoData.js +0 -48
- package/es/NoData/index.js +0 -15
- package/es/Pagination/Pagination.js +0 -207
- package/es/Pagination/index.js +0 -31
- package/es/PeriodPicker/PeriodPicker.js +0 -236
- package/es/PeriodPicker/constants.js +0 -39
- package/es/PeriodPicker/index.js +0 -26
- package/es/PeriodPicker/lib.js +0 -206
- package/es/PeriodPicker/styles.js +0 -23
- package/es/ScopeList/Header.js +0 -80
- package/es/ScopeList/Item.js +0 -245
- package/es/ScopeList/ScopeList.js +0 -323
- package/es/ScopeList/Selection.js +0 -129
- package/es/ScopeList/index.deprecated.js +0 -94
- package/es/ScopeList/index.js +0 -94
- package/es/ScopeList/styles.js +0 -143
- package/es/ScopeList/with-scope-list.js +0 -492
- package/es/Select/Select.js +0 -169
- package/es/Select/index.js +0 -33
- package/es/Share/Form.js +0 -164
- package/es/Share/Mode.js +0 -136
- package/es/Share/Share.js +0 -115
- package/es/Share/index.js +0 -64
- package/es/ShortUrls/ShortUrls.js +0 -136
- package/es/ShortUrls/index.js +0 -22
- package/es/SisccFooter/SisccFooter.js +0 -99
- package/es/SisccFooter/index.js +0 -27
- package/es/Spotlight/Fields.js +0 -100
- package/es/Spotlight/Spotlight.js +0 -157
- package/es/Spotlight/index.js +0 -75
- package/es/Spotlight/useSpotlight.js +0 -75
- package/es/Spotlight/useStyles.js +0 -77
- package/es/TableFooter/TableFooter.js +0 -100
- package/es/TableFooter/index.js +0 -33
- package/es/TableHeader/TableHeader.js +0 -63
- package/es/TableHeader/index.js +0 -17
- package/es/TableHtml5/TableHtml5.js +0 -213
- package/es/TableHtml5/cell.js +0 -130
- package/es/TableHtml5/flags.js +0 -138
- package/es/TableHtml5/header.js +0 -177
- package/es/TableHtml5/index.js +0 -62
- package/es/TableHtml5/section.js +0 -243
- package/es/TableHtml5/sectionHeader.js +0 -171
- package/es/TableHtml5/subHeader.js +0 -154
- package/es/TableHtml5/utils.js +0 -23
- package/es/TableLayout/Box.js +0 -123
- package/es/TableLayout/DnDItem.js +0 -142
- package/es/TableLayout/TableLayout.js +0 -427
- package/es/TableLayout/constants.js +0 -11
- package/es/TableLayout/index.js +0 -75
- package/es/TableLayout/lib.js +0 -31
- package/es/TablePreview/TablePreview.js +0 -244
- package/es/TablePreview/index.js +0 -44
- package/es/TablePreview/lib.js +0 -34
- package/es/TablePreview/styles.js +0 -71
- package/es/Tag/Tag.js +0 -44
- package/es/Tag/index.js +0 -30
- package/es/ToggleButton/ToggleButton.js +0 -79
- package/es/ToggleButton/index.js +0 -50
- package/es/Tooltip/Tooltip.js +0 -69
- package/es/Tooltip/index.js +0 -36
- package/es/UserRightForm/Input.js +0 -129
- package/es/UserRightForm/Permissions.js +0 -124
- package/es/UserRightForm/PermsissionsTabs.js +0 -107
- package/es/UserRightForm/UserRightForm.js +0 -445
- package/es/UserRightForm/index.js +0 -60
- package/es/VerticalButton/VerticalButton.js +0 -67
- package/es/VerticalButton/index.js +0 -27
- package/es/VirtualizedTree/Item.js +0 -200
- package/es/VirtualizedTree/VirtualizedTree.js +0 -366
- package/es/VirtualizedTree/index.js +0 -38
- package/es/VirtualizedTree/utils.js +0 -170
- package/es/VirtualizedTree/withExpansionTree.js +0 -65
- package/es/VirtualizedTree/withSpotlight.js +0 -113
- package/es/hooks/useKeybordEscapeHandler.js +0 -22
- package/es/index.js +0 -52
- package/es/utils.js +0 -78
- package/lib/AdvancedFilterDialog/AdvancedFilterDialog.js +0 -658
- package/lib/AdvancedFilterDialog/SelectionModeMenu.js +0 -118
- package/lib/AdvancedFilterDialog/images/all-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/branch-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/children-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/level-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/single-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-all-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-branch-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-children-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-level-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-single-selection.png +0 -0
- package/lib/AdvancedFilterDialog/index.js +0 -16
- package/lib/Alert/Alert.js +0 -325
- package/lib/Alert/index.js +0 -16
- package/lib/ApiQueries/ApiQueries.js +0 -139
- package/lib/ApiQueries/Query.js +0 -205
- package/lib/ApiQueries/index.js +0 -16
- package/lib/AuthDialog/index.js +0 -251
- package/lib/Breadcrumbs/Breadcrumbs.js +0 -107
- package/lib/Breadcrumbs/index.js +0 -16
- package/lib/Button/Button.js +0 -89
- package/lib/Button/index.js +0 -16
- package/lib/ChartsConfig/ChartsConfig.js +0 -533
- package/lib/ChartsConfig/Input.js +0 -187
- package/lib/ChartsConfig/InputProxy.js +0 -80
- package/lib/ChartsConfig/Proxy.js +0 -34
- package/lib/ChartsConfig/Title.js +0 -63
- package/lib/ChartsConfig/index.js +0 -16
- package/lib/ChartsConfig/useAxisOptions.js +0 -18
- package/lib/ChartsConfig/useDimensionOptions.js +0 -22
- package/lib/ChartsConfig/useFocusOptions.js +0 -32
- package/lib/ChartsConfig/utils.js +0 -15
- package/lib/Chips/CustomChip.js +0 -183
- package/lib/Chips/DeleteChip.js +0 -56
- package/lib/Chips/GroupedChips.js +0 -138
- package/lib/Chips/index.js +0 -23
- package/lib/Chips/styles.js +0 -77
- package/lib/Chips/utils.js +0 -30
- package/lib/CollapseButtons/CollapseButtons.js +0 -198
- package/lib/CollapseButtons/Item.js +0 -179
- package/lib/CollapseButtons/Paper.js +0 -82
- package/lib/CollapseButtons/index.js +0 -16
- package/lib/CollapsibleTree/Collapse.js +0 -130
- package/lib/CollapsibleTree/CollapsibleTree.js +0 -288
- package/lib/CollapsibleTree/index.js +0 -16
- package/lib/Contact/Contact.js +0 -409
- package/lib/Contact/Input.js +0 -165
- package/lib/Contact/Mode.js +0 -174
- package/lib/Contact/index.js +0 -16
- package/lib/DataEdit/DataEdit.js +0 -190
- package/lib/DataEdit/Input.js +0 -186
- package/lib/DataEdit/index.js +0 -16
- package/lib/DataFooter/DataFooter.js +0 -219
- package/lib/DataFooter/index.js +0 -16
- package/lib/DataHeader/DataHeader.js +0 -358
- package/lib/DataHeader/Flags.js +0 -61
- package/lib/DataHeader/Title.js +0 -40
- package/lib/DataHeader/TooltipHeader.js +0 -99
- package/lib/DataHeader/index.js +0 -16
- package/lib/DataHeader/utils.js +0 -29
- package/lib/Dataflow/Dataflow.js +0 -505
- package/lib/Dataflow/index.js +0 -16
- package/lib/DynamicDrawer/AdvancedSelection.js +0 -563
- package/lib/DynamicDrawer/DynamicDrawer.js +0 -466
- package/lib/DynamicDrawer/SelectionModesMobile.js +0 -119
- package/lib/DynamicDrawer/index.js +0 -16
- package/lib/ExpansionPanel/ExpansionPanel.js +0 -198
- package/lib/ExpansionPanel/index.js +0 -16
- package/lib/ExpansionPanel/styles.js +0 -103
- package/lib/HierarchicalFilter/HierarchicalFilter.js +0 -208
- package/lib/HierarchicalFilter/index.js +0 -16
- package/lib/Icons/AccessibilityFilled.js +0 -25
- package/lib/Icons/AccessibilityOutlined.js +0 -25
- package/lib/Icons/AccountFilled.js +0 -25
- package/lib/Icons/AccountOutlined.js +0 -25
- package/lib/Icons/Api.js +0 -25
- package/lib/Icons/Asterisk.js +0 -25
- package/lib/Icons/Bar.js +0 -25
- package/lib/Icons/CopyContent.js +0 -25
- package/lib/Icons/Cross.js +0 -25
- package/lib/Icons/HSymbol.js +0 -25
- package/lib/Icons/Row.js +0 -25
- package/lib/Icons/Scatter.js +0 -25
- package/lib/Icons/StackedBar.js +0 -25
- package/lib/Icons/StackedRow.js +0 -25
- package/lib/Icons/Timeline.js +0 -25
- package/lib/Icons/VSymbol.js +0 -25
- package/lib/Icons/Warning.js +0 -45
- package/lib/Icons/index.js +0 -155
- package/lib/Input/Input.js +0 -164
- package/lib/Input/index.js +0 -16
- package/lib/Input/with-input.js +0 -69
- package/lib/InputNumber/InputNumber.js +0 -152
- package/lib/InputNumber/index.js +0 -16
- package/lib/LabelDivider/LabelDivider.js +0 -78
- package/lib/LabelDivider/index.js +0 -16
- package/lib/Loading/Loading.js +0 -110
- package/lib/Loading/index.js +0 -16
- package/lib/Logo/Logo.js +0 -73
- package/lib/Logo/index.js +0 -16
- package/lib/Mode/Mode.js +0 -168
- package/lib/Mode/index.js +0 -16
- package/lib/NoData/NoData.js +0 -69
- package/lib/NoData/index.js +0 -16
- package/lib/Pagination/Pagination.js +0 -250
- package/lib/Pagination/index.js +0 -16
- package/lib/PeriodPicker/PeriodPicker.js +0 -266
- package/lib/PeriodPicker/constants.js +0 -43
- package/lib/PeriodPicker/index.js +0 -16
- package/lib/PeriodPicker/lib.js +0 -222
- package/lib/PeriodPicker/styles.js +0 -32
- package/lib/ScopeList/Header.js +0 -110
- package/lib/ScopeList/Item.js +0 -284
- package/lib/ScopeList/ScopeList.js +0 -377
- package/lib/ScopeList/Selection.js +0 -170
- package/lib/ScopeList/index.deprecated.js +0 -16
- package/lib/ScopeList/index.js +0 -16
- package/lib/ScopeList/styles.js +0 -153
- package/lib/ScopeList/with-scope-list.js +0 -507
- package/lib/Select/Select.js +0 -201
- package/lib/Select/index.js +0 -16
- package/lib/Share/Form.js +0 -201
- package/lib/Share/Mode.js +0 -176
- package/lib/Share/Share.js +0 -148
- package/lib/Share/index.js +0 -16
- package/lib/ShortUrls/ShortUrls.js +0 -181
- package/lib/ShortUrls/index.js +0 -16
- package/lib/SisccFooter/SisccFooter.js +0 -131
- package/lib/SisccFooter/index.js +0 -16
- package/lib/Spotlight/Fields.js +0 -132
- package/lib/Spotlight/Spotlight.js +0 -202
- package/lib/Spotlight/index.js +0 -16
- package/lib/Spotlight/useSpotlight.js +0 -85
- package/lib/Spotlight/useStyles.js +0 -91
- package/lib/TableFooter/TableFooter.js +0 -129
- package/lib/TableFooter/index.js +0 -16
- package/lib/TableHeader/TableHeader.js +0 -89
- package/lib/TableHeader/index.js +0 -16
- package/lib/TableHtml5/TableHtml5.js +0 -249
- package/lib/TableHtml5/cell.js +0 -164
- package/lib/TableHtml5/flags.js +0 -174
- package/lib/TableHtml5/header.js +0 -215
- package/lib/TableHtml5/index.js +0 -23
- package/lib/TableHtml5/section.js +0 -289
- package/lib/TableHtml5/sectionHeader.js +0 -212
- package/lib/TableHtml5/subHeader.js +0 -191
- package/lib/TableHtml5/utils.js +0 -32
- package/lib/TableLayout/Box.js +0 -159
- package/lib/TableLayout/DnDItem.js +0 -177
- package/lib/TableLayout/TableLayout.js +0 -487
- package/lib/TableLayout/constants.js +0 -14
- package/lib/TableLayout/index.js +0 -16
- package/lib/TableLayout/lib.js +0 -40
- package/lib/TablePreview/TablePreview.js +0 -279
- package/lib/TablePreview/index.js +0 -16
- package/lib/TablePreview/lib.js +0 -48
- package/lib/TablePreview/styles.js +0 -81
- package/lib/Tag/Tag.js +0 -67
- package/lib/Tag/index.js +0 -16
- package/lib/ToggleButton/ToggleButton.js +0 -111
- package/lib/ToggleButton/index.js +0 -16
- package/lib/Tooltip/Tooltip.js +0 -95
- package/lib/Tooltip/index.js +0 -16
- package/lib/UserRightForm/Input.js +0 -165
- package/lib/UserRightForm/Permissions.js +0 -159
- package/lib/UserRightForm/PermsissionsTabs.js +0 -145
- package/lib/UserRightForm/UserRightForm.js +0 -484
- package/lib/UserRightForm/index.js +0 -16
- package/lib/VerticalButton/VerticalButton.js +0 -88
- package/lib/VerticalButton/index.js +0 -16
- package/lib/VirtualizedTree/Item.js +0 -244
- package/lib/VirtualizedTree/VirtualizedTree.js +0 -402
- package/lib/VirtualizedTree/index.js +0 -16
- package/lib/VirtualizedTree/utils.js +0 -179
- package/lib/VirtualizedTree/withExpansionTree.js +0 -80
- package/lib/VirtualizedTree/withSpotlight.js +0 -129
- package/lib/hooks/useKeybordEscapeHandler.js +0 -28
- package/lib/index.js +0 -460
- package/lib/theme.js +0 -437
- package/lib/utils.js +0 -96
- package/umd/@sis-cc/dotstatsuite-visions.js +0 -82495
- package/umd/@sis-cc/dotstatsuite-visions.min.js +0 -222
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +0 -1
- package/umd/branch-selection.54dd3bc1.png +0 -0
- package/umd/children-selection.20d94242.png +0 -0
- package/umd/level-selection.df116629.png +0 -0
- package/umd/single-selection.a729a6c8.png +0 -0
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { jsx } from 'react/jsx-runtime';
|
|
2
|
+
import React from 'react';
|
|
3
|
+
import * as R from 'ramda';
|
|
4
|
+
import cx from 'classnames';
|
|
5
|
+
import Button$1 from '@mui/material/Button';
|
|
6
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
7
|
+
|
|
8
|
+
const useStyles = makeStyles((theme) => {
|
|
9
|
+
const color1 = R.path(["palette", "highlight", "hl1"], theme) || theme.palette.primary.dark;
|
|
10
|
+
return {
|
|
11
|
+
defaultSelected: {
|
|
12
|
+
backgroundColor: theme.palette.action.hover,
|
|
13
|
+
"&:hover": {
|
|
14
|
+
backgroundColor: `${theme.palette.action.selected} !important`
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
sisccRoot: {
|
|
18
|
+
"&:hover": {
|
|
19
|
+
color: theme.palette.getContrastText(color1),
|
|
20
|
+
backgroundColor: R.path(["palette", "highlight", "hl1"], theme) || theme.palette.primary.dark,
|
|
21
|
+
...R.path(["mixins", "toggleButton", "hover"])(theme)
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
sisccSelected: {
|
|
25
|
+
color: theme.palette.getContrastText(color1),
|
|
26
|
+
backgroundColor: color1,
|
|
27
|
+
...R.path(["mixins", "toggleButton", "selected"])(theme)
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
});
|
|
31
|
+
const Button = React.forwardRef(
|
|
32
|
+
function Button2({ className, selected, alternative = "default", ...props }, ref) {
|
|
33
|
+
const classes = useStyles();
|
|
34
|
+
return /* @__PURE__ */ jsx(
|
|
35
|
+
Button$1,
|
|
36
|
+
{
|
|
37
|
+
className: cx(className, R.prop(`${alternative}Root`)(classes), {
|
|
38
|
+
[R.prop(`${alternative}Selected`)(classes)]: selected
|
|
39
|
+
}),
|
|
40
|
+
"aria-pressed": selected,
|
|
41
|
+
ref,
|
|
42
|
+
...R.omit(["indicator", "textColor", "selectionFollowsFocus"], props),
|
|
43
|
+
children: props.children
|
|
44
|
+
}
|
|
45
|
+
);
|
|
46
|
+
}
|
|
47
|
+
);
|
|
48
|
+
|
|
49
|
+
export { Button };
|
|
50
|
+
//# sourceMappingURL=Button.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Button.js","sources":["../../src/Button/Button.jsx"],"sourcesContent":["import React from 'react';\nimport * as R from 'ramda';\nimport cx from 'classnames';\nimport MuiButton from '@mui/material/Button';\nimport makeStyles from '@mui/styles/makeStyles';\n\nconst useStyles = makeStyles(theme => {\n const color1 = R.path(['palette', 'highlight', 'hl1'], theme) || theme.palette.primary.dark;\n\n return {\n defaultSelected: {\n backgroundColor: theme.palette.action.hover,\n '&:hover': {\n backgroundColor: `${theme.palette.action.selected} !important`,\n },\n },\n sisccRoot: {\n '&:hover': {\n color: theme.palette.getContrastText(color1),\n backgroundColor:\n R.path(['palette', 'highlight', 'hl1'], theme) || theme.palette.primary.dark,\n ...R.path(['mixins', 'toggleButton', 'hover'])(theme),\n },\n },\n sisccSelected: {\n color: theme.palette.getContrastText(color1),\n backgroundColor: color1,\n ...R.path(['mixins', 'toggleButton', 'selected'])(theme),\n },\n };\n});\n\nexport const Button = React.forwardRef(\n function Button({ className, selected, alternative = 'default', ...props }, ref) {\n const classes = useStyles();\n return (\n <MuiButton\n className={cx(className, R.prop(`${alternative}Root`)(classes), {\n [R.prop(`${alternative}Selected`)(classes)]: selected,\n })}\n aria-pressed={selected}\n ref={ref}\n {...R.omit(['indicator', 'textColor', 'selectionFollowsFocus'], props)}\n >\n {props.children}\n </MuiButton>\n );\n },\n);\n"],"names":["Button","MuiButton"],"mappings":";;;;;;;AAMA,MAAM,SAAA,GAAY,WAAW,CAAA,KAAA,KAAS;AACpC,EAAA,MAAM,MAAA,GAAS,CAAA,CAAE,IAAA,CAAK,CAAC,SAAA,EAAW,WAAA,EAAa,KAAK,CAAA,EAAG,KAAK,CAAA,IAAK,KAAA,CAAM,OAAA,CAAQ,OAAA,CAAQ,IAAA;AAEvF,EAAA,OAAO;AAAA,IACL,eAAA,EAAiB;AAAA,MACf,eAAA,EAAiB,KAAA,CAAM,OAAA,CAAQ,MAAA,CAAO,KAAA;AAAA,MACtC,SAAA,EAAW;AAAA,QACT,eAAA,EAAiB,CAAA,EAAG,KAAA,CAAM,OAAA,CAAQ,OAAO,QAAQ,CAAA,WAAA;AAAA;AACnD,KACF;AAAA,IACA,SAAA,EAAW;AAAA,MACT,SAAA,EAAW;AAAA,QACT,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,eAAA,CAAgB,MAAM,CAAA;AAAA,QAC3C,eAAA,EACE,CAAA,CAAE,IAAA,CAAK,CAAC,SAAA,EAAW,WAAA,EAAa,KAAK,CAAA,EAAG,KAAK,CAAA,IAAK,KAAA,CAAM,OAAA,CAAQ,OAAA,CAAQ,IAAA;AAAA,QAC1E,GAAG,EAAE,IAAA,CAAK,CAAC,UAAU,cAAA,EAAgB,OAAO,CAAC,CAAA,CAAE,KAAK;AAAA;AACtD,KACF;AAAA,IACA,aAAA,EAAe;AAAA,MACb,KAAA,EAAO,KAAA,CAAM,OAAA,CAAQ,eAAA,CAAgB,MAAM,CAAA;AAAA,MAC3C,eAAA,EAAiB,MAAA;AAAA,MACjB,GAAG,EAAE,IAAA,CAAK,CAAC,UAAU,cAAA,EAAgB,UAAU,CAAC,CAAA,CAAE,KAAK;AAAA;AACzD,GACF;AACF,CAAC,CAAA;AAEM,MAAM,SAAS,KAAA,CAAM,UAAA;AAAA,EAC1B,SAASA,OAAAA,CAAO,EAAE,SAAA,EAAW,QAAA,EAAU,cAAc,SAAA,EAAW,GAAG,KAAA,EAAM,EAAG,GAAA,EAAK;AAC/E,IAAA,MAAM,UAAU,SAAA,EAAU;AAC1B,IAAA,uBACE,GAAA;AAAA,MAACC,QAAA;AAAA,MAAA;AAAA,QACC,SAAA,EAAW,EAAA,CAAG,SAAA,EAAW,CAAA,CAAE,IAAA,CAAK,GAAG,WAAW,CAAA,IAAA,CAAM,CAAA,CAAE,OAAO,CAAA,EAAG;AAAA,UAC9D,CAAC,EAAE,IAAA,CAAK,CAAA,EAAG,WAAW,CAAA,QAAA,CAAU,CAAA,CAAE,OAAO,CAAC,GAAG;AAAA,SAC9C,CAAA;AAAA,QACD,cAAA,EAAc,QAAA;AAAA,QACd,GAAA;AAAA,QACC,GAAG,EAAE,IAAA,CAAK,CAAC,aAAa,WAAA,EAAa,uBAAuB,GAAG,KAAK,CAAA;AAAA,QAEpE,QAAA,EAAA,KAAA,CAAM;AAAA;AAAA,KACT;AAAA,EAEJ;AACF;;;;"}
|
|
@@ -0,0 +1,507 @@
|
|
|
1
|
+
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import { useMemo, useState, useEffect } from 'react';
|
|
3
|
+
import * as R from 'ramda';
|
|
4
|
+
import Grid from '@mui/material/Grid';
|
|
5
|
+
import { RotateLeft, ArrowForward, ArrowUpward } from '@mui/icons-material';
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
|
+
import makeStyles from '@mui/styles/makeStyles';
|
|
8
|
+
import Typography from '@mui/material/Typography';
|
|
9
|
+
import Button from '@mui/material/Button';
|
|
10
|
+
import InputAdornment from '@mui/material/InputAdornment';
|
|
11
|
+
import { Select } from '../Select/Select.js';
|
|
12
|
+
import TextField from '@mui/material/TextField';
|
|
13
|
+
import IconButton from '@mui/material/IconButton';
|
|
14
|
+
import Checkbox from '@mui/material/Checkbox';
|
|
15
|
+
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
16
|
+
import { w as withBlank } from '../chunks/utils-kslX1mzh.js';
|
|
17
|
+
|
|
18
|
+
const useStyles$4 = makeStyles((theme) => ({
|
|
19
|
+
title: R.pathOr({}, ["mixins", "chartsConfig", "title"], theme)
|
|
20
|
+
}));
|
|
21
|
+
const Title = ({ icon, label }) => {
|
|
22
|
+
const classes = useStyles$4();
|
|
23
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
24
|
+
!R.isNil(icon) && icon,
|
|
25
|
+
/* @__PURE__ */ jsx(Typography, { className: classes.title, inline: "true", children: label })
|
|
26
|
+
] });
|
|
27
|
+
};
|
|
28
|
+
Title.propTypes = {
|
|
29
|
+
label: PropTypes.string,
|
|
30
|
+
icon: PropTypes.node
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
const hasUniqUnlabelledOption = R.allPass([
|
|
34
|
+
R.pipe(R.length, R.equals(1)),
|
|
35
|
+
R.pipe(R.head, R.prop('label'), R.anyPass([R.isNil, R.isEmpty])),
|
|
36
|
+
]);
|
|
37
|
+
|
|
38
|
+
const useFocusOptions = (focus = {}, labels = {}) => {
|
|
39
|
+
const options = useMemo(() => {
|
|
40
|
+
return R.when(
|
|
41
|
+
hasUniqUnlabelledOption,
|
|
42
|
+
R.set(R.lensPath([0, 'label']), R.prop('uniqFocusOption', labels)),
|
|
43
|
+
)(focus.options);
|
|
44
|
+
}, [labels, focus.options]);
|
|
45
|
+
|
|
46
|
+
const indexedOptions = useMemo(() => {
|
|
47
|
+
if (!options) return {};
|
|
48
|
+
return R.indexBy(R.prop('value'), options);
|
|
49
|
+
}, [options]);
|
|
50
|
+
|
|
51
|
+
return [options, indexedOptions];
|
|
52
|
+
};
|
|
53
|
+
|
|
54
|
+
// adapters for new Select which has not the same API as react-select
|
|
55
|
+
const extractMultipleValue = R.pipe(R.propOr([], 'value'), R.pluck('value'));
|
|
56
|
+
|
|
57
|
+
const getValue = R.ifElse(R.is(String), R.identity, R.prop('value'));
|
|
58
|
+
|
|
59
|
+
const useDimensionOptions = properties => {
|
|
60
|
+
const dimensions = useMemo(() => {
|
|
61
|
+
return R.pipe(
|
|
62
|
+
R.pick(['scatterDimension', 'scatterX', 'scatterY', 'symbolDimension', 'stackedDimension']),
|
|
63
|
+
R.toPairs,
|
|
64
|
+
)(properties);
|
|
65
|
+
}, [properties]);
|
|
66
|
+
|
|
67
|
+
return [dimensions];
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
const useStyles$3 = makeStyles(() => ({
|
|
71
|
+
visibility: {
|
|
72
|
+
visibility: "hidden"
|
|
73
|
+
},
|
|
74
|
+
input: {
|
|
75
|
+
"&[type=number]::-webkit-inner-spin-button, &[type=number]::-webkit-outer-spin-button": {
|
|
76
|
+
"-webkit-appearance": "none",
|
|
77
|
+
margin: 0
|
|
78
|
+
},
|
|
79
|
+
"&[type=number]": {
|
|
80
|
+
"-moz-appearance": "textfield"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}));
|
|
84
|
+
const Input$1 = ({ id, value, onSubmit, onReset, resetLabel, placeholder, ...props }) => {
|
|
85
|
+
const classes = useStyles$3();
|
|
86
|
+
const [inputValue, setInputValue] = useState(value || "");
|
|
87
|
+
useEffect(() => {
|
|
88
|
+
setInputValue(value);
|
|
89
|
+
}, [value]);
|
|
90
|
+
const resetId = `reset-${id}`;
|
|
91
|
+
const handleBlur = (event) => {
|
|
92
|
+
if (R.is(Function, onSubmit) && inputValue !== value) {
|
|
93
|
+
onSubmit(event.target.value);
|
|
94
|
+
}
|
|
95
|
+
};
|
|
96
|
+
const handleReset = () => {
|
|
97
|
+
if (R.is(Function, onReset)) {
|
|
98
|
+
onReset();
|
|
99
|
+
} else {
|
|
100
|
+
setInputValue(value);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
const onEnterLabel = (event) => {
|
|
104
|
+
if (event.key === "Enter") {
|
|
105
|
+
if (R.is(Function, onSubmit)) {
|
|
106
|
+
onSubmit(event.target.value);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
const handleChange = (event) => {
|
|
111
|
+
setInputValue(event.target.value);
|
|
112
|
+
};
|
|
113
|
+
const endAdornment = R.is(Function, onReset) || inputValue !== value ? /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
114
|
+
IconButton,
|
|
115
|
+
{
|
|
116
|
+
id: resetId,
|
|
117
|
+
"aria-label": resetLabel,
|
|
118
|
+
onKeyPress: onEnterLabel,
|
|
119
|
+
onClick: handleReset,
|
|
120
|
+
size: "large",
|
|
121
|
+
children: /* @__PURE__ */ jsx(RotateLeft, { fontSize: "small" })
|
|
122
|
+
}
|
|
123
|
+
) }) : null;
|
|
124
|
+
return /* @__PURE__ */ jsx(
|
|
125
|
+
TextField,
|
|
126
|
+
{
|
|
127
|
+
inputProps: {
|
|
128
|
+
className: classes.input
|
|
129
|
+
},
|
|
130
|
+
onBlur: handleBlur,
|
|
131
|
+
margin: "dense",
|
|
132
|
+
size: "small",
|
|
133
|
+
variant: "outlined",
|
|
134
|
+
onKeyPress: onEnterLabel,
|
|
135
|
+
onChange: handleChange,
|
|
136
|
+
id,
|
|
137
|
+
value: inputValue,
|
|
138
|
+
InputProps: {
|
|
139
|
+
endAdornment
|
|
140
|
+
},
|
|
141
|
+
placeholder: R.is(Number)(placeholder) ? R.toString(placeholder) : placeholder,
|
|
142
|
+
...R.omit(["isActive"])(props)
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const InputProxy = ({
|
|
148
|
+
minWidth = 220,
|
|
149
|
+
properties = {},
|
|
150
|
+
labels = {},
|
|
151
|
+
pkey,
|
|
152
|
+
mkey,
|
|
153
|
+
xs = 12,
|
|
154
|
+
sm = 12,
|
|
155
|
+
lg = 12,
|
|
156
|
+
InputProps = {}
|
|
157
|
+
}) => {
|
|
158
|
+
if (R.isNil(pkey)) return null;
|
|
159
|
+
if (!R.has(pkey, properties)) return null;
|
|
160
|
+
const prop = R.propOr({}, pkey, properties);
|
|
161
|
+
return /* @__PURE__ */ jsx(Grid, { item: true, xs, sm, lg, style: { minWidth }, children: /* @__PURE__ */ jsx(
|
|
162
|
+
Input$1,
|
|
163
|
+
{
|
|
164
|
+
...prop,
|
|
165
|
+
value: R.when(R.isNil, R.always(""))(prop.value),
|
|
166
|
+
type: "number",
|
|
167
|
+
label: R.prop(mkey || pkey, labels),
|
|
168
|
+
fullWidth: true,
|
|
169
|
+
InputProps: R.mergeRight({ endAdornment: null }, InputProps)
|
|
170
|
+
}
|
|
171
|
+
) });
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
const Proxy = ({ keys, properties, children }) => {
|
|
175
|
+
if (!R.any(R.flip(R.has)(properties), keys)) return null;
|
|
176
|
+
|
|
177
|
+
return children;
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
Proxy.propTypes = {
|
|
181
|
+
children: PropTypes.node,
|
|
182
|
+
keys: PropTypes.array,
|
|
183
|
+
properties: PropTypes.object,
|
|
184
|
+
};
|
|
185
|
+
|
|
186
|
+
const useAxisOptions = (properties, suffix) => {
|
|
187
|
+
const keys = [`min${suffix}`, `max${suffix}`, `pivot${suffix}`, `step${suffix}`];
|
|
188
|
+
|
|
189
|
+
return R.pipe(R.pick(keys), R.keys)(properties);
|
|
190
|
+
};
|
|
191
|
+
|
|
192
|
+
const useStyles$2 = makeStyles(() => ({
|
|
193
|
+
visibility: {
|
|
194
|
+
visibility: "hidden"
|
|
195
|
+
},
|
|
196
|
+
input: {
|
|
197
|
+
"&[type=number]::-webkit-inner-spin-button, &[type=number]::-webkit-outer-spin-button": {
|
|
198
|
+
"-webkit-appearance": "none",
|
|
199
|
+
margin: 0
|
|
200
|
+
},
|
|
201
|
+
"&[type=number]": {
|
|
202
|
+
"-moz-appearance": "textfield"
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
}));
|
|
206
|
+
const Input = ({ id, value, onSubmit, onReset, resetLabel, placeholder, ...props }) => {
|
|
207
|
+
const classes = useStyles$2();
|
|
208
|
+
const [inputValue, setInputValue] = useState(value || "");
|
|
209
|
+
useEffect(() => {
|
|
210
|
+
setInputValue(value);
|
|
211
|
+
}, [value]);
|
|
212
|
+
const resetId = `reset-${id}`;
|
|
213
|
+
const handleBlur = (event) => {
|
|
214
|
+
if (R.is(Function, onSubmit) && inputValue !== value) {
|
|
215
|
+
onSubmit(event.target.value);
|
|
216
|
+
}
|
|
217
|
+
};
|
|
218
|
+
const handleReset = () => {
|
|
219
|
+
if (R.is(Function, onReset)) {
|
|
220
|
+
onReset();
|
|
221
|
+
} else {
|
|
222
|
+
setInputValue(value);
|
|
223
|
+
}
|
|
224
|
+
};
|
|
225
|
+
const onEnterLabel = (event) => {
|
|
226
|
+
if (event.key === "Enter") {
|
|
227
|
+
if (R.is(Function, onSubmit)) {
|
|
228
|
+
onSubmit(event.target.value);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
};
|
|
232
|
+
const handleChange = (event) => {
|
|
233
|
+
setInputValue(event.target.value);
|
|
234
|
+
};
|
|
235
|
+
const endAdornment = R.is(Function, onReset) || inputValue !== value ? /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: /* @__PURE__ */ jsx(
|
|
236
|
+
IconButton,
|
|
237
|
+
{
|
|
238
|
+
id: resetId,
|
|
239
|
+
"aria-label": resetLabel,
|
|
240
|
+
onKeyPress: onEnterLabel,
|
|
241
|
+
onClick: handleReset,
|
|
242
|
+
size: "large",
|
|
243
|
+
children: /* @__PURE__ */ jsx(RotateLeft, { fontSize: "small" })
|
|
244
|
+
}
|
|
245
|
+
) }) : null;
|
|
246
|
+
return /* @__PURE__ */ jsx(
|
|
247
|
+
TextField,
|
|
248
|
+
{
|
|
249
|
+
inputProps: {
|
|
250
|
+
className: classes.input
|
|
251
|
+
},
|
|
252
|
+
onBlur: handleBlur,
|
|
253
|
+
margin: "dense",
|
|
254
|
+
variant: "outlined",
|
|
255
|
+
onKeyPress: onEnterLabel,
|
|
256
|
+
onChange: handleChange,
|
|
257
|
+
id,
|
|
258
|
+
value: inputValue,
|
|
259
|
+
InputProps: {
|
|
260
|
+
endAdornment
|
|
261
|
+
},
|
|
262
|
+
placeholder: R.is(Number)(placeholder) ? R.toString(placeholder) : placeholder,
|
|
263
|
+
...R.omit(["isActive"])(props)
|
|
264
|
+
}
|
|
265
|
+
);
|
|
266
|
+
};
|
|
267
|
+
|
|
268
|
+
const useStyles$1 = makeStyles((theme) => ({
|
|
269
|
+
title: R.pathOr({}, ["mixins", "chartsConfig", "title"], theme)
|
|
270
|
+
}));
|
|
271
|
+
const CustomDataEdit = ({ labels, properties }) => {
|
|
272
|
+
const classes = useStyles$1();
|
|
273
|
+
const { title = {}, subtitle = {}, source = {}, logo = {}, copyright = {} } = properties;
|
|
274
|
+
const resetLabel = R.prop("reset", labels);
|
|
275
|
+
return /* @__PURE__ */ jsxs(Grid, { "data-testid": "data-edit-test-id", container: true, spacing: 1, children: [
|
|
276
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Typography, { className: classes.title, children: R.prop("information", labels) }) }),
|
|
277
|
+
R.prop("isActive", title) && /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, style: { minWidth: 220 }, children: /* @__PURE__ */ jsx(
|
|
278
|
+
Input,
|
|
279
|
+
{
|
|
280
|
+
fullWidth: true,
|
|
281
|
+
label: R.prop("title", labels),
|
|
282
|
+
resetLabel,
|
|
283
|
+
...R.dissoc("isDefault", title)
|
|
284
|
+
}
|
|
285
|
+
) }),
|
|
286
|
+
R.prop("isActive", subtitle) && /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, style: { minWidth: 220 }, children: /* @__PURE__ */ jsx(
|
|
287
|
+
Input,
|
|
288
|
+
{
|
|
289
|
+
fullWidth: true,
|
|
290
|
+
label: R.prop("subtitle", labels),
|
|
291
|
+
resetLabel,
|
|
292
|
+
...R.dissoc("isDefault", subtitle)
|
|
293
|
+
}
|
|
294
|
+
) }),
|
|
295
|
+
R.prop("isActive", source) && /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, style: { minWidth: 220 }, children: /* @__PURE__ */ jsx(
|
|
296
|
+
Input,
|
|
297
|
+
{
|
|
298
|
+
fullWidth: true,
|
|
299
|
+
label: R.prop("source", labels),
|
|
300
|
+
resetLabel,
|
|
301
|
+
...R.dissoc("isDefault", source)
|
|
302
|
+
}
|
|
303
|
+
) }),
|
|
304
|
+
/* @__PURE__ */ jsx(Grid, { item: true, container: true, xs: 12, justifyContent: "space-around", children: R.map((item) => {
|
|
305
|
+
if (R.pipe(R.prop("isActive"), R.not)(item)) return;
|
|
306
|
+
const id = R.prop("id")(item);
|
|
307
|
+
return /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
308
|
+
FormControlLabel,
|
|
309
|
+
{
|
|
310
|
+
control: /* @__PURE__ */ jsx(
|
|
311
|
+
Checkbox,
|
|
312
|
+
{
|
|
313
|
+
color: "primary",
|
|
314
|
+
inputProps: { "aria-label": R.prop(id)(labels) },
|
|
315
|
+
...R.omit(["isActive"])(item)
|
|
316
|
+
}
|
|
317
|
+
),
|
|
318
|
+
label: R.prop(id)(labels)
|
|
319
|
+
}
|
|
320
|
+
) }, id);
|
|
321
|
+
})([logo, copyright]) })
|
|
322
|
+
] });
|
|
323
|
+
};
|
|
324
|
+
const isAllInactive = R.pipe(R.pluck("isActive"), R.all(R.identity), R.not);
|
|
325
|
+
const DataEdit = withBlank(({ isBlank, properties = {} }) => ({
|
|
326
|
+
isBlank: R.any(R.identity)([isBlank, R.isEmpty(properties), isAllInactive(properties)])
|
|
327
|
+
}))(CustomDataEdit);
|
|
328
|
+
|
|
329
|
+
const useStyles = makeStyles((theme) => ({
|
|
330
|
+
greyVariant: {
|
|
331
|
+
backgroundColor: theme.palette.secondary.dark,
|
|
332
|
+
color: theme.palette.grey[600]
|
|
333
|
+
}
|
|
334
|
+
}));
|
|
335
|
+
const ChartsConfig = ({ labels = {}, properties = {} }) => {
|
|
336
|
+
const classes = useStyles();
|
|
337
|
+
const [dimensions] = useDimensionOptions(properties);
|
|
338
|
+
const xKeys = useAxisOptions(properties, "X");
|
|
339
|
+
const yKeys = useAxisOptions(properties, "Y");
|
|
340
|
+
const { highlight, baseline } = properties;
|
|
341
|
+
const [highlightOptions, xhighlightOptions] = useFocusOptions(highlight, labels);
|
|
342
|
+
const [baselineOptions, xbaselineOptions] = useFocusOptions(baseline, labels);
|
|
343
|
+
const { stackedMode = {} } = properties;
|
|
344
|
+
const { options: stackedModeOptions = [] } = stackedMode;
|
|
345
|
+
const { displayMode = {} } = properties;
|
|
346
|
+
const { options: displayModeOptions = [] } = displayMode;
|
|
347
|
+
const dKeys = ["dimensions", "stackedDimension", "scatterDimension", "symbolDimension"];
|
|
348
|
+
const eKeys = ["title", "subtitle", "source", "logo", "copyright"];
|
|
349
|
+
if (R.isEmpty(properties)) return null;
|
|
350
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 3, "data-testid": "charts-config-test-id", children: [
|
|
351
|
+
/* @__PURE__ */ jsx(Proxy, { keys: dKeys, properties, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, container: true, spacing: 2, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, container: true, children: [
|
|
352
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Title, { label: labels.series }) }),
|
|
353
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
|
|
354
|
+
/* @__PURE__ */ jsx(Proxy, { keys: ["stackedMode"], properties, children: /* @__PURE__ */ jsxs(Grid, { item: true, container: true, spacing: 1, alignItems: "center", style: { minWidth: 320 }, children: [
|
|
355
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(Typography, { variant: "body2", children: labels.stackedMode }) }),
|
|
356
|
+
R.map(
|
|
357
|
+
(option) => /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
358
|
+
Button,
|
|
359
|
+
{
|
|
360
|
+
variant: option.value === stackedMode.value ? "contained" : "outlined",
|
|
361
|
+
onClick: () => stackedMode.onChange(option.value),
|
|
362
|
+
color: "primary",
|
|
363
|
+
children: /* @__PURE__ */ jsx(Typography, { variant: "body2", children: R.path(["stackedModeOptions", option.value], labels) })
|
|
364
|
+
}
|
|
365
|
+
) }, option.value),
|
|
366
|
+
stackedModeOptions
|
|
367
|
+
)
|
|
368
|
+
] }) }),
|
|
369
|
+
R.map(
|
|
370
|
+
([key, dimension]) => /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, style: { minWidth: 320 }, children: /* @__PURE__ */ jsx(
|
|
371
|
+
Select,
|
|
372
|
+
{
|
|
373
|
+
...dimension,
|
|
374
|
+
onChange: dimension.onChange,
|
|
375
|
+
label: R.prop(key, labels),
|
|
376
|
+
value: getValue(dimension.value),
|
|
377
|
+
items: dimension.options
|
|
378
|
+
}
|
|
379
|
+
) }, key),
|
|
380
|
+
dimensions
|
|
381
|
+
)
|
|
382
|
+
] }) })
|
|
383
|
+
] }) }) }),
|
|
384
|
+
/* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, container: true, spacing: 2, children: [
|
|
385
|
+
/* @__PURE__ */ jsx(Proxy, { keys: ["highlight", "baseline"], properties, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, lg: 8, container: true, alignContent: "flex-start", children: [
|
|
386
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Title, { label: labels.focus }) }),
|
|
387
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
|
|
388
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, style: { minWidth: 320 }, children: /* @__PURE__ */ jsx(
|
|
389
|
+
Select,
|
|
390
|
+
{
|
|
391
|
+
...highlight,
|
|
392
|
+
onChange: (ids) => highlight.onChange(R.props(ids, xhighlightOptions)),
|
|
393
|
+
value: extractMultipleValue(highlight),
|
|
394
|
+
items: highlightOptions,
|
|
395
|
+
isMultiple: true,
|
|
396
|
+
isClearable: true,
|
|
397
|
+
label: R.prop("highlight", labels),
|
|
398
|
+
placeholder: R.prop("select", labels),
|
|
399
|
+
optionsKey: "highlight"
|
|
400
|
+
}
|
|
401
|
+
) }),
|
|
402
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, style: { minWidth: 320 }, children: /* @__PURE__ */ jsx(
|
|
403
|
+
Select,
|
|
404
|
+
{
|
|
405
|
+
...baseline,
|
|
406
|
+
onChange: (id) => baseline.onChange(
|
|
407
|
+
R.pipe(R.props([id]), R.without(baseline.value))(xbaselineOptions)
|
|
408
|
+
),
|
|
409
|
+
value: R.pipe(R.propOr([], "value"), R.head, R.prop("value"))(baseline),
|
|
410
|
+
items: baselineOptions,
|
|
411
|
+
isClearable: true,
|
|
412
|
+
label: R.prop("baseline", labels),
|
|
413
|
+
placeholder: R.prop("select", labels),
|
|
414
|
+
optionsKey: "baseline"
|
|
415
|
+
}
|
|
416
|
+
) })
|
|
417
|
+
] }) })
|
|
418
|
+
] }) }),
|
|
419
|
+
/* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, lg: 4, container: true, alignContent: "flex-start", children: [
|
|
420
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Title, { label: labels.size }) }),
|
|
421
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsxs(Grid, { container: true, spacing: 1, children: [
|
|
422
|
+
/* @__PURE__ */ jsx(
|
|
423
|
+
InputProxy,
|
|
424
|
+
{
|
|
425
|
+
pkey: "width",
|
|
426
|
+
labels,
|
|
427
|
+
properties,
|
|
428
|
+
InputProps: {
|
|
429
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: "px" })
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
),
|
|
433
|
+
/* @__PURE__ */ jsx(
|
|
434
|
+
InputProxy,
|
|
435
|
+
{
|
|
436
|
+
pkey: "height",
|
|
437
|
+
labels,
|
|
438
|
+
properties,
|
|
439
|
+
InputProps: {
|
|
440
|
+
endAdornment: /* @__PURE__ */ jsx(InputAdornment, { position: "end", children: "px" })
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
)
|
|
444
|
+
] }) })
|
|
445
|
+
] })
|
|
446
|
+
] }),
|
|
447
|
+
/* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, container: true, spacing: 2, children: [
|
|
448
|
+
/* @__PURE__ */ jsx(Proxy, { keys: xKeys, properties, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, container: true, className: classes.greyVariant, children: [
|
|
449
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Title, { label: labels.axisX, icon: /* @__PURE__ */ jsx(ArrowForward, {}) }) }),
|
|
450
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, children: R.map(
|
|
451
|
+
(key) => /* @__PURE__ */ jsx(
|
|
452
|
+
InputProxy,
|
|
453
|
+
{
|
|
454
|
+
pkey: key,
|
|
455
|
+
mkey: R.init(key),
|
|
456
|
+
lg: 12 / R.length(xKeys),
|
|
457
|
+
labels,
|
|
458
|
+
properties
|
|
459
|
+
},
|
|
460
|
+
key
|
|
461
|
+
),
|
|
462
|
+
xKeys
|
|
463
|
+
) }) })
|
|
464
|
+
] }) }),
|
|
465
|
+
/* @__PURE__ */ jsx(Proxy, { keys: ["freqStep"], properties, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, container: true, className: classes.greyVariant, children: [
|
|
466
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Title, { label: labels.axisX, icon: /* @__PURE__ */ jsx(ArrowForward, {}) }) }),
|
|
467
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, children: /* @__PURE__ */ jsx(InputProxy, { pkey: "freqStep", labels, properties }) }) })
|
|
468
|
+
] }) }),
|
|
469
|
+
/* @__PURE__ */ jsx(Proxy, { keys: yKeys, properties, children: /* @__PURE__ */ jsxs(Grid, { item: true, xs: 12, container: true, className: classes.greyVariant, children: [
|
|
470
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Title, { label: labels.axisY, icon: /* @__PURE__ */ jsx(ArrowUpward, {}) }) }),
|
|
471
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 12, children: /* @__PURE__ */ jsx(Grid, { container: true, spacing: 1, children: R.map(
|
|
472
|
+
(key) => /* @__PURE__ */ jsx(
|
|
473
|
+
InputProxy,
|
|
474
|
+
{
|
|
475
|
+
pkey: key,
|
|
476
|
+
mkey: R.init(key),
|
|
477
|
+
lg: 12 / R.length(yKeys),
|
|
478
|
+
labels,
|
|
479
|
+
properties
|
|
480
|
+
},
|
|
481
|
+
key
|
|
482
|
+
),
|
|
483
|
+
yKeys
|
|
484
|
+
) }) })
|
|
485
|
+
] }) })
|
|
486
|
+
] }),
|
|
487
|
+
/* @__PURE__ */ jsx(Proxy, { keys: eKeys, properties, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, container: true, children: /* @__PURE__ */ jsx(DataEdit, { labels, properties }) }) }) }),
|
|
488
|
+
/* @__PURE__ */ jsx(Proxy, { keys: ["displayMode"], properties, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, container: true, spacing: 2, children: /* @__PURE__ */ jsx(Grid, { item: true, xs: 12, container: true, children: /* @__PURE__ */ jsxs(Grid, { item: true, container: true, spacing: 1, alignItems: "center", style: { minWidth: 320 }, children: [
|
|
489
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: true, children: /* @__PURE__ */ jsx(Typography, { variant: "body2", children: labels.display }) }),
|
|
490
|
+
R.map(
|
|
491
|
+
(option) => /* @__PURE__ */ jsx(Grid, { item: true, children: /* @__PURE__ */ jsx(
|
|
492
|
+
Button,
|
|
493
|
+
{
|
|
494
|
+
variant: option.value === displayMode.value ? "contained" : "outlined",
|
|
495
|
+
onClick: () => displayMode.onChange(option.value),
|
|
496
|
+
color: "primary",
|
|
497
|
+
children: /* @__PURE__ */ jsx(Typography, { variant: "body2", children: R.path(["displayOptions", option.value], labels) })
|
|
498
|
+
}
|
|
499
|
+
) }, option.value),
|
|
500
|
+
displayModeOptions
|
|
501
|
+
)
|
|
502
|
+
] }) }) }) })
|
|
503
|
+
] });
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
export { ChartsConfig, useStyles };
|
|
507
|
+
//# sourceMappingURL=ChartsConfig.js.map
|