@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
package/es/Chips/styles.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
|
|
3
|
-
export default (function (theme) {
|
|
4
|
-
return {
|
|
5
|
-
root: {
|
|
6
|
-
display: 'flex',
|
|
7
|
-
flexWrap: 'wrap'
|
|
8
|
-
},
|
|
9
|
-
chip: {
|
|
10
|
-
height: 'unset',
|
|
11
|
-
borderRadius: 3,
|
|
12
|
-
minHeight: 25,
|
|
13
|
-
fontSize: 12,
|
|
14
|
-
margin: theme.spacing(0.25)
|
|
15
|
-
},
|
|
16
|
-
mainChip: {
|
|
17
|
-
background: 'none',
|
|
18
|
-
color: theme.palette.text.primary,
|
|
19
|
-
'&:hover, &:focus': {
|
|
20
|
-
backgroundColor: theme.palette.grey[300]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
secondaryChip: {
|
|
24
|
-
backgroundColor: R.path(['palette', 'tertiary', 'light'])(theme) || theme.palette.grey[100],
|
|
25
|
-
'&:hover, &:focus': {
|
|
26
|
-
backgroundColor: R.path(['palette', 'tertiary', 'dark'])(theme) || theme.palette.grey[300]
|
|
27
|
-
},
|
|
28
|
-
color: theme.palette.primary.main
|
|
29
|
-
},
|
|
30
|
-
icon: {
|
|
31
|
-
color: theme.palette.primary.main + ' !important',
|
|
32
|
-
cursor: 'pointer',
|
|
33
|
-
margin: '0 !important',
|
|
34
|
-
'&:hover': {
|
|
35
|
-
color: 'inherit'
|
|
36
|
-
},
|
|
37
|
-
'& svg': {
|
|
38
|
-
fontSize: 15
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
divider: {
|
|
42
|
-
margin: theme.spacing(0.5),
|
|
43
|
-
backgroundColor: theme.palette.grey[700]
|
|
44
|
-
},
|
|
45
|
-
dividerHz: {
|
|
46
|
-
width: '100%',
|
|
47
|
-
margin: theme.spacing(0.5),
|
|
48
|
-
backgroundColor: theme.palette.grey[700]
|
|
49
|
-
},
|
|
50
|
-
spaceLabel: {
|
|
51
|
-
paddingLeft: 4,
|
|
52
|
-
paddingRight: 4
|
|
53
|
-
},
|
|
54
|
-
formatLabel: {
|
|
55
|
-
whiteSpace: 'pre-wrap',
|
|
56
|
-
overflowWrap: 'anywhere'
|
|
57
|
-
},
|
|
58
|
-
tooltip: theme.typography.body2,
|
|
59
|
-
childrenIndicator: {
|
|
60
|
-
margin: '0 2px',
|
|
61
|
-
fontSize: 10
|
|
62
|
-
},
|
|
63
|
-
tooltipIndicator: {
|
|
64
|
-
borderBottom: '1px dotted ' + theme.palette.primary.main
|
|
65
|
-
}
|
|
66
|
-
};
|
|
67
|
-
});
|
package/es/Chips/utils.js
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import * as R from 'ramda';
|
|
2
|
-
|
|
3
|
-
export var myTooltipRenderer = function myTooltipRenderer(_ref) {
|
|
4
|
-
var isRtl = _ref.isRtl,
|
|
5
|
-
labelRenderer = _ref.labelRenderer;
|
|
6
|
-
return R.pipe(R.map(labelRenderer), R.when(R.always(isRtl), R.reverse), R.join(isRtl ? ' < ' : ' > '));
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export var myTooltipRendererSrOnly = function myTooltipRendererSrOnly(_ref2) {
|
|
10
|
-
var isRtl = _ref2.isRtl,
|
|
11
|
-
labelRenderer = _ref2.labelRenderer,
|
|
12
|
-
ariaLabelTooltip = _ref2.ariaLabelTooltip;
|
|
13
|
-
return R.pipe(R.map(labelRenderer), R.when(R.always(isRtl), R.reverse), R.join(ariaLabelTooltip));
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export var isLast = function isLast(index, list) {
|
|
17
|
-
return index + 1 === R.length(list);
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
export var shownTooltip = R.pipe(R.dropLast(1), R.either(R.isEmpty, R.isNil), R.not);
|
|
21
|
-
export var showMultiLinedTooltip = R.pipe(R.head, R.propOr([], 'parents'), R.isEmpty, R.not);
|
|
@@ -1,159 +0,0 @@
|
|
|
1
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2
|
-
|
|
3
|
-
import React, { useState } from 'react';
|
|
4
|
-
import cx from 'classnames';
|
|
5
|
-
import * as R from 'ramda';
|
|
6
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
7
|
-
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
8
|
-
import Grid from '@mui/material/Grid';
|
|
9
|
-
import Collapse from '@mui/material/Collapse';
|
|
10
|
-
import Typography from '@mui/material/Typography';
|
|
11
|
-
import { ToggleButton } from '../';
|
|
12
|
-
import Item from './Item';
|
|
13
|
-
import Paper from './Paper';
|
|
14
|
-
|
|
15
|
-
export var MAX_COLUMNS = 12;
|
|
16
|
-
export var COLUMNS = [12, 12, 6, 4, 3, 3, 2, 2, 2, 2, 2, 2, 1];
|
|
17
|
-
|
|
18
|
-
var useStyles = makeStyles(function (theme) {
|
|
19
|
-
return {
|
|
20
|
-
collapseContainer: {
|
|
21
|
-
width: '100%'
|
|
22
|
-
},
|
|
23
|
-
container: {
|
|
24
|
-
'&:focus': {
|
|
25
|
-
outlineColor: theme.palette.highlight.hl1,
|
|
26
|
-
outlineWidth: 2,
|
|
27
|
-
outlineStyle: 'auto',
|
|
28
|
-
paddingBottom: 16
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
var CollapseButtons = function CollapseButtons(props) {
|
|
35
|
-
var _cx;
|
|
36
|
-
|
|
37
|
-
var _props$items = props.items,
|
|
38
|
-
items = _props$items === undefined ? [] : _props$items,
|
|
39
|
-
_props$action = props.action,
|
|
40
|
-
action = _props$action === undefined ? function () {} : _props$action,
|
|
41
|
-
_props$nbColumns = props.nbColumns,
|
|
42
|
-
nbColumns = _props$nbColumns === undefined ? 3 : _props$nbColumns,
|
|
43
|
-
_props$testId = props.testId,
|
|
44
|
-
testId = _props$testId === undefined ? 'collapseButton' : _props$testId,
|
|
45
|
-
isSecondLevelClikable = props.isSecondLevelClikable,
|
|
46
|
-
_props$gridButtonsPro = props.gridButtonsProps,
|
|
47
|
-
gridButtonsProps = _props$gridButtonsPro === undefined ? {} : _props$gridButtonsPro,
|
|
48
|
-
_props$breakpoint = props.breakpoint,
|
|
49
|
-
breakpoint = _props$breakpoint === undefined ? function (theme) {
|
|
50
|
-
return theme.breakpoints.down('md');
|
|
51
|
-
} : _props$breakpoint,
|
|
52
|
-
justify = props.justify,
|
|
53
|
-
_props$textTransform = props.textTransform,
|
|
54
|
-
textTransform = _props$textTransform === undefined ? 'none' : _props$textTransform,
|
|
55
|
-
_props$labelAccessor = props.labelAccessor,
|
|
56
|
-
labelAccessor = _props$labelAccessor === undefined ? R.prop('label') : _props$labelAccessor,
|
|
57
|
-
accessibility = props.accessibility;
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
var classes = useStyles();
|
|
61
|
-
var isMobileView = useMediaQuery(breakpoint);
|
|
62
|
-
|
|
63
|
-
var _useState = useState(props.selectedItemId),
|
|
64
|
-
toggleId = _useState[0],
|
|
65
|
-
setIsOpen = _useState[1];
|
|
66
|
-
|
|
67
|
-
var mapIndexed = R.addIndex(R.map);
|
|
68
|
-
var collapseFactory = function collapseFactory(_ref) {
|
|
69
|
-
var action = _ref.action,
|
|
70
|
-
isSecondLevelClikable = _ref.isSecondLevelClikable,
|
|
71
|
-
labelAccessor = _ref.labelAccessor,
|
|
72
|
-
testId = _ref.testId;
|
|
73
|
-
return function (_ref2) {
|
|
74
|
-
var toggleId = _ref2.toggleId,
|
|
75
|
-
id = _ref2.id,
|
|
76
|
-
values = _ref2.values,
|
|
77
|
-
isMobileView = _ref2.isMobileView;
|
|
78
|
-
return React.createElement(
|
|
79
|
-
Collapse,
|
|
80
|
-
{
|
|
81
|
-
key: id,
|
|
82
|
-
'in': toggleId === id,
|
|
83
|
-
timeout: 'auto',
|
|
84
|
-
unmountOnExit: true,
|
|
85
|
-
className: classes.collapseContainer
|
|
86
|
-
},
|
|
87
|
-
React.createElement(
|
|
88
|
-
Paper,
|
|
89
|
-
{ elevation: 10, isMobileView: isMobileView },
|
|
90
|
-
mapIndexed(function (item, index) {
|
|
91
|
-
return React.createElement(Item, {
|
|
92
|
-
key: index + '-' + R.prop('id')(item),
|
|
93
|
-
testId: testId + '_' + id + '_value_' + R.prop('id')(item),
|
|
94
|
-
parentId: id,
|
|
95
|
-
item: item,
|
|
96
|
-
action: action,
|
|
97
|
-
isSecondLevelClikable: isSecondLevelClikable,
|
|
98
|
-
labelAccessor: labelAccessor
|
|
99
|
-
});
|
|
100
|
-
}, values)
|
|
101
|
-
)
|
|
102
|
-
);
|
|
103
|
-
};
|
|
104
|
-
};
|
|
105
|
-
var collapse = collapseFactory({ action: action, isSecondLevelClikable: isSecondLevelClikable, labelAccessor: labelAccessor, testId: testId });
|
|
106
|
-
|
|
107
|
-
return React.createElement(
|
|
108
|
-
Grid,
|
|
109
|
-
{
|
|
110
|
-
container: true,
|
|
111
|
-
spacing: 2,
|
|
112
|
-
'data-testid': testId,
|
|
113
|
-
justifyContent: justify,
|
|
114
|
-
className: cx((_cx = {}, _cx[classes.container] = accessibility, _cx)),
|
|
115
|
-
tabIndex: 0
|
|
116
|
-
},
|
|
117
|
-
mapIndexed(function (_ref3, index) {
|
|
118
|
-
var id = _ref3.id,
|
|
119
|
-
label = _ref3.label,
|
|
120
|
-
_ref3$values = _ref3.values,
|
|
121
|
-
values = _ref3$values === undefined ? [] : _ref3$values;
|
|
122
|
-
return React.createElement(
|
|
123
|
-
Grid,
|
|
124
|
-
_extends({
|
|
125
|
-
item: true,
|
|
126
|
-
xs: 12,
|
|
127
|
-
sm: 12,
|
|
128
|
-
md: R.nth(nbColumns)(COLUMNS)
|
|
129
|
-
}, gridButtonsProps, {
|
|
130
|
-
key: index + '::' + id
|
|
131
|
-
}),
|
|
132
|
-
React.createElement(
|
|
133
|
-
Typography,
|
|
134
|
-
{ variant: 'h3' },
|
|
135
|
-
React.createElement(ToggleButton, {
|
|
136
|
-
textTransform: textTransform,
|
|
137
|
-
label: label,
|
|
138
|
-
tabIndex: toggleId ? 1 : 0,
|
|
139
|
-
isOpen: toggleId === id,
|
|
140
|
-
toggle: function toggle() {
|
|
141
|
-
return setIsOpen(id === toggleId ? null : id);
|
|
142
|
-
},
|
|
143
|
-
testId: testId + '_' + id,
|
|
144
|
-
id: id
|
|
145
|
-
}),
|
|
146
|
-
isMobileView && collapse({ toggleId: toggleId, id: id, values: values, isMobileView: isMobileView })
|
|
147
|
-
)
|
|
148
|
-
);
|
|
149
|
-
})(items),
|
|
150
|
-
!isMobileView && R.map(function (_ref4) {
|
|
151
|
-
var id = _ref4.id,
|
|
152
|
-
_ref4$values = _ref4.values,
|
|
153
|
-
values = _ref4$values === undefined ? [] : _ref4$values;
|
|
154
|
-
return collapse({ toggleId: toggleId, id: id, values: values, isMobileView: isMobileView });
|
|
155
|
-
}, items)
|
|
156
|
-
);
|
|
157
|
-
};
|
|
158
|
-
|
|
159
|
-
export default CollapseButtons;
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2
|
-
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import * as R from 'ramda';
|
|
6
|
-
import Grid from '@mui/material/Grid';
|
|
7
|
-
import Button from '@mui/material/Button';
|
|
8
|
-
import Link from '@mui/material/Link';
|
|
9
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
10
|
-
import SvgIcon from '@mui/material/SvgIcon';
|
|
11
|
-
import { Typography } from '@mui/material';
|
|
12
|
-
|
|
13
|
-
var useStyles = makeStyles(function (theme) {
|
|
14
|
-
return {
|
|
15
|
-
paperItem: {
|
|
16
|
-
alignItems: 'baseline'
|
|
17
|
-
},
|
|
18
|
-
itemTitle: _extends({}, theme.typography.body2, {
|
|
19
|
-
color: theme.palette.primary.main
|
|
20
|
-
}),
|
|
21
|
-
button: {
|
|
22
|
-
'&:hover': {
|
|
23
|
-
backgroundColor: R.path(['palette', 'tertiary', 'light'])(theme) || theme.palette.secondary.light
|
|
24
|
-
},
|
|
25
|
-
padding: theme.spacing(1.25),
|
|
26
|
-
textAlign: 'left',
|
|
27
|
-
textTransform: 'none',
|
|
28
|
-
justifyContent: 'flex-start',
|
|
29
|
-
display: 'flex'
|
|
30
|
-
},
|
|
31
|
-
itemSubtitle: _extends({}, theme.typography.body1, {
|
|
32
|
-
display: 'flex',
|
|
33
|
-
flexDirection: 'column',
|
|
34
|
-
color: theme.palette.grey[800]
|
|
35
|
-
}),
|
|
36
|
-
itemSubtitleLink: _extends({}, theme.typography.body1, {
|
|
37
|
-
color: theme.palette.grey[800],
|
|
38
|
-
'&:hover': {
|
|
39
|
-
color: theme.palette.primary.main
|
|
40
|
-
}
|
|
41
|
-
}),
|
|
42
|
-
svg: {
|
|
43
|
-
color: theme.palette.grey[600],
|
|
44
|
-
fontSize: '1rem',
|
|
45
|
-
marginRight: theme.spacing(0.5),
|
|
46
|
-
marginTop: theme.spacing(0.25),
|
|
47
|
-
marginBottom: 'auto'
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
|
-
|
|
52
|
-
var Item = function Item(_ref) {
|
|
53
|
-
var parentId = _ref.parentId,
|
|
54
|
-
item = _ref.item,
|
|
55
|
-
action = _ref.action,
|
|
56
|
-
testId = _ref.testId,
|
|
57
|
-
isSecondLevelClikable = _ref.isSecondLevelClikable,
|
|
58
|
-
labelAccessor = _ref.labelAccessor;
|
|
59
|
-
|
|
60
|
-
var classes = useStyles();
|
|
61
|
-
var mapIndexed = R.addIndex(R.map);
|
|
62
|
-
return React.createElement(
|
|
63
|
-
Grid,
|
|
64
|
-
{ className: classes.paperItem },
|
|
65
|
-
React.createElement(
|
|
66
|
-
Typography,
|
|
67
|
-
{ variant: 'h4' },
|
|
68
|
-
React.createElement(
|
|
69
|
-
Button,
|
|
70
|
-
{
|
|
71
|
-
'aria-label': R.prop('label')(item),
|
|
72
|
-
className: classes.button,
|
|
73
|
-
fullWidth: true,
|
|
74
|
-
'data-testid': testId,
|
|
75
|
-
role: 'link',
|
|
76
|
-
onClick: function onClick() {
|
|
77
|
-
if (R.not(R.is(Function)(action))) return;
|
|
78
|
-
action(parentId, R.prop('id')(item));
|
|
79
|
-
},
|
|
80
|
-
tabIndex: 0
|
|
81
|
-
},
|
|
82
|
-
React.createElement(
|
|
83
|
-
SvgIcon,
|
|
84
|
-
{ className: classes.svg },
|
|
85
|
-
React.createElement('path', { d: R.prop('svgPath')(item) })
|
|
86
|
-
),
|
|
87
|
-
React.createElement(
|
|
88
|
-
Grid,
|
|
89
|
-
{ container: true, item: true, xs: 12, direction: 'column' },
|
|
90
|
-
React.createElement(
|
|
91
|
-
'span',
|
|
92
|
-
{ className: classes.itemTitle },
|
|
93
|
-
labelAccessor(item, parentId)
|
|
94
|
-
),
|
|
95
|
-
React.createElement(
|
|
96
|
-
'span',
|
|
97
|
-
{ className: classes.itemSubtitle },
|
|
98
|
-
mapIndexed(function (subtopic, index) {
|
|
99
|
-
if (R.not(R.is(Object)(subtopic))) return subtopic;
|
|
100
|
-
if (R.not(isSecondLevelClikable)) return labelAccessor(subtopic, parentId);
|
|
101
|
-
var id = R.prop('id')(subtopic);
|
|
102
|
-
return React.createElement(
|
|
103
|
-
Typography,
|
|
104
|
-
{ variant: 'h5', key: id + '::' + index },
|
|
105
|
-
React.createElement(
|
|
106
|
-
Link,
|
|
107
|
-
{
|
|
108
|
-
className: classes.itemSubtitleLink,
|
|
109
|
-
role: 'link',
|
|
110
|
-
onClick: function onClick(e) {
|
|
111
|
-
if (R.not(R.is(Function)(action))) return;
|
|
112
|
-
action(parentId, id);
|
|
113
|
-
e.stopPropagation();
|
|
114
|
-
},
|
|
115
|
-
onKeyDown: function onKeyDown(e) {
|
|
116
|
-
if (e.key === 'Enter' || e.key === ' ') {
|
|
117
|
-
if (R.not(R.is(Function)(action))) return;
|
|
118
|
-
action(parentId, id);
|
|
119
|
-
e.stopPropagation();
|
|
120
|
-
}
|
|
121
|
-
},
|
|
122
|
-
tabIndex: 0,
|
|
123
|
-
underline: 'none',
|
|
124
|
-
style: { display: 'list-item' }
|
|
125
|
-
},
|
|
126
|
-
labelAccessor(subtopic, parentId)
|
|
127
|
-
)
|
|
128
|
-
);
|
|
129
|
-
})(R.pipe(R.propOr([], 'subtopics'), R.ifElse(R.always(isSecondLevelClikable), R.identity, R.intersperse(' • ')))(item))
|
|
130
|
-
)
|
|
131
|
-
)
|
|
132
|
-
)
|
|
133
|
-
)
|
|
134
|
-
);
|
|
135
|
-
};
|
|
136
|
-
|
|
137
|
-
Item.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
138
|
-
parentId: PropTypes.string,
|
|
139
|
-
testId: PropTypes.string,
|
|
140
|
-
item: PropTypes.object,
|
|
141
|
-
action: PropTypes.func,
|
|
142
|
-
isSecondLevelClikable: PropTypes.bool,
|
|
143
|
-
labelAccessor: PropTypes.func
|
|
144
|
-
} : {};
|
|
145
|
-
|
|
146
|
-
export default Item;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
4
|
-
import Paper from '@mui/material/Paper';
|
|
5
|
-
import Grid from '@mui/material/Grid';
|
|
6
|
-
import cx from 'classnames';
|
|
7
|
-
|
|
8
|
-
var useStyles = makeStyles(function (theme) {
|
|
9
|
-
return {
|
|
10
|
-
paper: {
|
|
11
|
-
padding: theme.spacing(2.5),
|
|
12
|
-
margin: theme.spacing(1.25),
|
|
13
|
-
borderRadius: 'unset'
|
|
14
|
-
},
|
|
15
|
-
mobileView: {
|
|
16
|
-
display: 'flex',
|
|
17
|
-
flexDirection: 'column',
|
|
18
|
-
columnCount: 'unset'
|
|
19
|
-
},
|
|
20
|
-
view: {
|
|
21
|
-
columnCount: 3,
|
|
22
|
-
columnFill: 'balance'
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var CustomPaper = function CustomPaper(_ref) {
|
|
28
|
-
var _cx, _cx2;
|
|
29
|
-
|
|
30
|
-
var isMobileView = _ref.isMobileView,
|
|
31
|
-
children = _ref.children,
|
|
32
|
-
onClose = _ref.onClose;
|
|
33
|
-
|
|
34
|
-
var classes = useStyles();
|
|
35
|
-
return React.createElement(
|
|
36
|
-
Paper,
|
|
37
|
-
{
|
|
38
|
-
onKeyDown: function onKeyDown(e) {
|
|
39
|
-
if (e.key === 'Escape') onClose();
|
|
40
|
-
},
|
|
41
|
-
classes: {
|
|
42
|
-
root: cx(classes.paper, (_cx = {}, _cx[classes.mobileView] = isMobileView, _cx))
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
React.createElement(
|
|
46
|
-
Grid,
|
|
47
|
-
{ className: cx(classes.view, (_cx2 = {}, _cx2[classes.mobileView] = isMobileView, _cx2)) },
|
|
48
|
-
children
|
|
49
|
-
)
|
|
50
|
-
);
|
|
51
|
-
};
|
|
52
|
-
|
|
53
|
-
CustomPaper.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
54
|
-
isMobileView: PropTypes.bool,
|
|
55
|
-
children: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.node), PropTypes.node])
|
|
56
|
-
} : {};
|
|
57
|
-
|
|
58
|
-
export default CustomPaper;
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Collapse Buttons show one or many buttons with Children and Sub-Children
|
|
3
|
-
* Buttons are drawn in row of three
|
|
4
|
-
* Children are drawn also in row of three and the sub-children are drawn in line separated by comma
|
|
5
|
-
* justify properties can take all variant define in "justifyContent" https://material-ui.com/api/grid/
|
|
6
|
-
* | 'flex-start'
|
|
7
|
-
* | 'center'
|
|
8
|
-
* | 'flex-end'
|
|
9
|
-
* | 'space-between'
|
|
10
|
-
* | 'space-around'
|
|
11
|
-
* | 'space-evenly'
|
|
12
|
-
*
|
|
13
|
-
* textTransform: 'none' | 'capitalize' | 'uppercase' | 'lowercase'
|
|
14
|
-
*
|
|
15
|
-
* to manage layout you have three properties
|
|
16
|
-
* nbColumns: numbers of column you want to have
|
|
17
|
-
* gridButtonsProps: mainly to manage breakpoints in the differents layout of buttons but you can change all the grid properties. (nbColumns is use with the "sm" breakpoint)
|
|
18
|
-
* breakpoint: is a function with theme arg. Allow you to change the mobile view, (default theme => theme.breakpoints.down('sm'))
|
|
19
|
-
*
|
|
20
|
-
* @memberOf VISIONS
|
|
21
|
-
* @name CollapseButtons
|
|
22
|
-
* @tag component
|
|
23
|
-
* @api public
|
|
24
|
-
* @props
|
|
25
|
-
* CollapseButtons.propTypes = {
|
|
26
|
-
* testId: PropTypes.string,
|
|
27
|
-
* selectedItemId: PropTypes.string,
|
|
28
|
-
* items: PropTypes.arrayOf(
|
|
29
|
-
* PropTypes.shape({
|
|
30
|
-
* id: PropTypes.string.isRequired,
|
|
31
|
-
* label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
32
|
-
* svgPath: PropTypes.string,
|
|
33
|
-
* values: PropTypes.arrayOf(
|
|
34
|
-
* PropTypes.shape({
|
|
35
|
-
* id: PropTypes.string.isRequired,
|
|
36
|
-
* label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
37
|
-
* subtopics: PropTypes.arrayOf(
|
|
38
|
-
* PropTypes.oneOfType([
|
|
39
|
-
* PropTypes.shape({
|
|
40
|
-
* id: PropTypes.string.isRequired,
|
|
41
|
-
* label: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
42
|
-
* }),
|
|
43
|
-
* PropTypes.string,
|
|
44
|
-
* ]),
|
|
45
|
-
* ),
|
|
46
|
-
* }),
|
|
47
|
-
* ),
|
|
48
|
-
* }),
|
|
49
|
-
* ),
|
|
50
|
-
* action: PropTypes.func,
|
|
51
|
-
* nbColumns: PropTypes.number,
|
|
52
|
-
* isSecondLevelClikable: PropTypes.bool,
|
|
53
|
-
* breakpoint: PropTypes.func,
|
|
54
|
-
* gridButtonsProps: PropTypes.object,
|
|
55
|
-
* justify: PropTypes.string,
|
|
56
|
-
* textTransform: PropTypes.string,
|
|
57
|
-
* };
|
|
58
|
-
* @theme
|
|
59
|
-
* // button (See ToggleButton Component)
|
|
60
|
-
*
|
|
61
|
-
* // item (an item is the list of labels that is shown after clicking on "Topic")
|
|
62
|
-
* {
|
|
63
|
-
* palette: {
|
|
64
|
-
* primary: {
|
|
65
|
-
* main: // item main label and sub label's hover. global override: outerPalette.primaryMain
|
|
66
|
-
* }
|
|
67
|
-
* tertiary: {
|
|
68
|
-
* light: // hover background color items (e.g. Economie)
|
|
69
|
-
* },
|
|
70
|
-
* secondary: {
|
|
71
|
-
* light: // use secondary light if tertiary is null
|
|
72
|
-
* }
|
|
73
|
-
* grey: {
|
|
74
|
-
* 600: // svg icon color
|
|
75
|
-
* 800: // sub label color. globale override: outerPalette.textLight
|
|
76
|
-
* }
|
|
77
|
-
* },
|
|
78
|
-
* typography: {
|
|
79
|
-
* body2: // font main label
|
|
80
|
-
* body1: // font sub label
|
|
81
|
-
* }
|
|
82
|
-
* }
|
|
83
|
-
* @testId
|
|
84
|
-
* root: [testId]_[props.items.id]
|
|
85
|
-
* input: [testId]_[props.items.id]_value_[props.items.values.id]
|
|
86
|
-
*
|
|
87
|
-
* @demoReady
|
|
88
|
-
*/
|
|
89
|
-
|
|
90
|
-
export { default } from './CollapseButtons';
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };
|
|
2
|
-
|
|
3
|
-
import React, { useEffect } from 'react';
|
|
4
|
-
import PropTypes from 'prop-types';
|
|
5
|
-
import cx from 'classnames';
|
|
6
|
-
import { pathOr } from 'ramda';
|
|
7
|
-
import { useTheme } from '@mui/material/styles';
|
|
8
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
9
|
-
import Collapse from '@mui/material/Collapse';
|
|
10
|
-
import Button from '@mui/material/Button';
|
|
11
|
-
import KeyboardArrowDownIcon from '@mui/icons-material/KeyboardArrowDown';
|
|
12
|
-
import KeyboardArrowUpIcon from '@mui/icons-material/KeyboardArrowUp';
|
|
13
|
-
|
|
14
|
-
var VARIANT_ICON = 'icon';
|
|
15
|
-
export var VARIANT_BOLD = 'bold';
|
|
16
|
-
|
|
17
|
-
var useStyles = makeStyles(function (theme) {
|
|
18
|
-
var _ref;
|
|
19
|
-
|
|
20
|
-
return _ref = {
|
|
21
|
-
buttonExpand: {
|
|
22
|
-
display: 'flex',
|
|
23
|
-
justifyContent: 'space-between'
|
|
24
|
-
}
|
|
25
|
-
}, _ref['button' + VARIANT_ICON] = {
|
|
26
|
-
color: theme.palette.primary.main,
|
|
27
|
-
backgroundColor: 'rgba(24, 32, 38, 0.04)',
|
|
28
|
-
margin: theme.spacing(1, 0)
|
|
29
|
-
}, _ref['button' + VARIANT_BOLD] = _extends({
|
|
30
|
-
marginBottom: theme.spacing(1),
|
|
31
|
-
padding: theme.spacing(0.5, 0, 1, 0),
|
|
32
|
-
'&:hover': {
|
|
33
|
-
backgroundColor: 'unset'
|
|
34
|
-
}
|
|
35
|
-
}, pathOr({}, ['mixins', 'collapsibleTree', 'buttonSublevel'], theme)), _ref['collapsibleContainer' + VARIANT_BOLD] = {
|
|
36
|
-
borderTop: '2px solid black',
|
|
37
|
-
marginTop: theme.spacing(2),
|
|
38
|
-
marginBottom: theme.spacing(2)
|
|
39
|
-
}, _ref;
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
var CollapseComponent = function CollapseComponent(_ref2) {
|
|
43
|
-
var label = _ref2.label,
|
|
44
|
-
isOpen = _ref2.isOpen,
|
|
45
|
-
children = _ref2.children,
|
|
46
|
-
_ref2$variant = _ref2.variant,
|
|
47
|
-
variant = _ref2$variant === undefined ? VARIANT_ICON : _ref2$variant,
|
|
48
|
-
level = _ref2.level;
|
|
49
|
-
|
|
50
|
-
var classes = useStyles();
|
|
51
|
-
var theme = useTheme();
|
|
52
|
-
|
|
53
|
-
var _React$useState = React.useState(isOpen),
|
|
54
|
-
open = _React$useState[0],
|
|
55
|
-
setOpen = _React$useState[1];
|
|
56
|
-
|
|
57
|
-
useEffect(function () {
|
|
58
|
-
return setOpen(isOpen);
|
|
59
|
-
}, [isOpen]);
|
|
60
|
-
|
|
61
|
-
return React.createElement(
|
|
62
|
-
'div',
|
|
63
|
-
{
|
|
64
|
-
className: cx(classes['collapsibleContainer' + variant]),
|
|
65
|
-
style: {
|
|
66
|
-
marginRight: theme.spacing(level * 2),
|
|
67
|
-
marginLeft: theme.spacing(level * 2)
|
|
68
|
-
}
|
|
69
|
-
},
|
|
70
|
-
React.createElement(
|
|
71
|
-
Button,
|
|
72
|
-
{
|
|
73
|
-
className: cx(classes.buttonExpand, classes['button' + variant]),
|
|
74
|
-
onClick: function onClick() {
|
|
75
|
-
return setOpen(!open);
|
|
76
|
-
},
|
|
77
|
-
fullWidth: true
|
|
78
|
-
},
|
|
79
|
-
label,
|
|
80
|
-
open ? React.createElement(KeyboardArrowUpIcon, { color: 'primary' }) : React.createElement(KeyboardArrowDownIcon, { color: 'primary' })
|
|
81
|
-
),
|
|
82
|
-
React.createElement(
|
|
83
|
-
Collapse,
|
|
84
|
-
{ 'in': open, timeout: 'auto' },
|
|
85
|
-
children
|
|
86
|
-
)
|
|
87
|
-
);
|
|
88
|
-
};
|
|
89
|
-
|
|
90
|
-
CollapseComponent.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
91
|
-
label: PropTypes.string,
|
|
92
|
-
isOpen: PropTypes.bool,
|
|
93
|
-
children: PropTypes.node,
|
|
94
|
-
variant: PropTypes.oneOf([VARIANT_ICON, VARIANT_BOLD]),
|
|
95
|
-
level: PropTypes.number
|
|
96
|
-
} : {};
|
|
97
|
-
|
|
98
|
-
export default CollapseComponent;
|