@sis-cc/dotstatsuite-visions 12.56.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/Select/Select.js
DELETED
|
@@ -1,169 +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 * as R from 'ramda';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
7
|
-
import TextField from '@mui/material/TextField';
|
|
8
|
-
import MenuItem from '@mui/material/MenuItem';
|
|
9
|
-
import Typography from '@mui/material/Typography';
|
|
10
|
-
import cx from 'classnames';
|
|
11
|
-
|
|
12
|
-
var useStyles = makeStyles(function (theme) {
|
|
13
|
-
return {
|
|
14
|
-
root: _extends({}, theme.typography.body2),
|
|
15
|
-
paper: {
|
|
16
|
-
maxHeight: 320
|
|
17
|
-
},
|
|
18
|
-
typo: {
|
|
19
|
-
whiteSpace: 'break-spaces'
|
|
20
|
-
},
|
|
21
|
-
disabledLabel: {
|
|
22
|
-
color: theme.palette.grey[700]
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
|
|
27
|
-
var Select = function Select(_ref) {
|
|
28
|
-
var id = _ref.id,
|
|
29
|
-
optionsKey = _ref.optionsKey,
|
|
30
|
-
_ref$value = _ref.value,
|
|
31
|
-
value = _ref$value === undefined ? '' : _ref$value,
|
|
32
|
-
label = _ref.label,
|
|
33
|
-
_ref$items = _ref.items,
|
|
34
|
-
items = _ref$items === undefined ? [] : _ref$items,
|
|
35
|
-
isMultiple = _ref.isMultiple,
|
|
36
|
-
onChange = _ref.onChange,
|
|
37
|
-
_ref$textFieldProps = _ref.textFieldProps,
|
|
38
|
-
textFieldProps = _ref$textFieldProps === undefined ? {} : _ref$textFieldProps,
|
|
39
|
-
valueAccessor = _ref.valueAccessor,
|
|
40
|
-
labelAccessor = _ref.labelAccessor,
|
|
41
|
-
disabled = _ref.disabled,
|
|
42
|
-
_ref$dataTestId = _ref.dataTestId,
|
|
43
|
-
dataTestId = _ref$dataTestId === undefined ? 'select-testid' : _ref$dataTestId;
|
|
44
|
-
|
|
45
|
-
var classes = useStyles();
|
|
46
|
-
var ref = React.useRef(null);
|
|
47
|
-
|
|
48
|
-
var _React$useState = React.useState(false),
|
|
49
|
-
open = _React$useState[0],
|
|
50
|
-
setOpen = _React$useState[1];
|
|
51
|
-
|
|
52
|
-
var _React$useState2 = React.useState(0),
|
|
53
|
-
width = _React$useState2[0],
|
|
54
|
-
setWidth = _React$useState2[1];
|
|
55
|
-
|
|
56
|
-
var handleChange = function handleChange(event) {
|
|
57
|
-
if (R.is(Function)(onChange)) {
|
|
58
|
-
onChange(event.target.value);
|
|
59
|
-
}
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
useEffect(function () {
|
|
63
|
-
if (ref.current && open) setWidth(ref.current.clientWidth);
|
|
64
|
-
}, [open]);
|
|
65
|
-
|
|
66
|
-
var getter = function getter(key) {
|
|
67
|
-
return function (accessor) {
|
|
68
|
-
return R.ifElse(R.is(Object), function (item) {
|
|
69
|
-
return R.is(Function, accessor) ? accessor(item) : R.prop(key)(item);
|
|
70
|
-
}, R.identity);
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
var joinByValue = R.innerJoin(function (obj, value) {
|
|
75
|
-
return obj.value === value;
|
|
76
|
-
});
|
|
77
|
-
var labels = R.pluck('label', joinByValue(items, R.is(Array, value) ? value : [value]));
|
|
78
|
-
return React.createElement(
|
|
79
|
-
TextField,
|
|
80
|
-
_extends({
|
|
81
|
-
select: true,
|
|
82
|
-
id: id,
|
|
83
|
-
'data-testid': dataTestId,
|
|
84
|
-
disabled: R.isEmpty(items),
|
|
85
|
-
label: label,
|
|
86
|
-
value: value,
|
|
87
|
-
title: R.join(', ', labels),
|
|
88
|
-
onChange: handleChange,
|
|
89
|
-
variant: 'outlined',
|
|
90
|
-
margin: 'dense',
|
|
91
|
-
size: 'small',
|
|
92
|
-
fullWidth: true,
|
|
93
|
-
SelectProps: {
|
|
94
|
-
ref: ref,
|
|
95
|
-
open: open,
|
|
96
|
-
autoWidth: true,
|
|
97
|
-
multiple: isMultiple,
|
|
98
|
-
disabled: disabled,
|
|
99
|
-
onOpen: function onOpen() {
|
|
100
|
-
return setOpen(true);
|
|
101
|
-
},
|
|
102
|
-
onClose: function onClose() {
|
|
103
|
-
return setOpen(false);
|
|
104
|
-
},
|
|
105
|
-
classes: { root: classes.root },
|
|
106
|
-
renderValue: function renderValue() {
|
|
107
|
-
return React.createElement(
|
|
108
|
-
Typography,
|
|
109
|
-
{ variant: 'inherit', className: classes.typo },
|
|
110
|
-
R.join(', ', labels)
|
|
111
|
-
);
|
|
112
|
-
},
|
|
113
|
-
MenuProps: {
|
|
114
|
-
getContentAnchorEl: null,
|
|
115
|
-
anchorOrigin: { vertical: 'bottom', horizontal: 'center' },
|
|
116
|
-
transformOrigin: { vertical: 'top', horizontal: 'center' },
|
|
117
|
-
classes: { paper: classes.paper },
|
|
118
|
-
PaperProps: {
|
|
119
|
-
style: { width: width }
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
},
|
|
123
|
-
className: classes.root
|
|
124
|
-
}, textFieldProps),
|
|
125
|
-
R.map(function (item) {
|
|
126
|
-
var _cx;
|
|
127
|
-
|
|
128
|
-
var value = getter('value')(valueAccessor)(item);
|
|
129
|
-
var label = getter('label')(labelAccessor)(item);
|
|
130
|
-
return React.createElement(
|
|
131
|
-
MenuItem,
|
|
132
|
-
{
|
|
133
|
-
key: optionsKey + '-' + value,
|
|
134
|
-
id: label,
|
|
135
|
-
value: value,
|
|
136
|
-
dense: true,
|
|
137
|
-
'aria-label': label,
|
|
138
|
-
title: label,
|
|
139
|
-
disabled: R.propOr(false, 'disabled')(item)
|
|
140
|
-
},
|
|
141
|
-
React.createElement(
|
|
142
|
-
Typography,
|
|
143
|
-
{
|
|
144
|
-
variant: 'inherit',
|
|
145
|
-
className: cx(classes.typo, (_cx = {}, _cx[classes.disabledLabel] = R.propOr(false, 'disabled')(item), _cx))
|
|
146
|
-
},
|
|
147
|
-
label
|
|
148
|
-
)
|
|
149
|
-
);
|
|
150
|
-
})(items)
|
|
151
|
-
);
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
Select.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
155
|
-
id: PropTypes.string,
|
|
156
|
-
optionsKey: PropTypes.string,
|
|
157
|
-
dataTestId: PropTypes.string,
|
|
158
|
-
value: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.array]),
|
|
159
|
-
label: PropTypes.oneOfType([PropTypes.string, PropTypes.number, PropTypes.element]),
|
|
160
|
-
items: PropTypes.array,
|
|
161
|
-
onChange: PropTypes.func,
|
|
162
|
-
textFieldProps: PropTypes.object,
|
|
163
|
-
valueAccessor: PropTypes.func,
|
|
164
|
-
labelAccessor: PropTypes.func,
|
|
165
|
-
isMultiple: PropTypes.bool,
|
|
166
|
-
disabled: PropTypes.bool
|
|
167
|
-
} : {};
|
|
168
|
-
|
|
169
|
-
export default Select;
|
package/es/Select/index.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Select boilerplate based on MUI components
|
|
3
|
-
*
|
|
4
|
-
* @memberOf VISIONS
|
|
5
|
-
* @name Select
|
|
6
|
-
* @tag component
|
|
7
|
-
* @api public
|
|
8
|
-
* @props
|
|
9
|
-
* Select.propTypes = {
|
|
10
|
-
* id: PropTypes.string,
|
|
11
|
-
* value: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
12
|
-
* label: PropTypes.oneOfType([
|
|
13
|
-
* PropTypes.string,
|
|
14
|
-
* PropTypes.number,
|
|
15
|
-
* PropTypes.element,
|
|
16
|
-
* ]),
|
|
17
|
-
* items: PropTypes.array,
|
|
18
|
-
* onChange: PropTypes.func,
|
|
19
|
-
* textFieldProps: PropTypes.object,
|
|
20
|
-
* valueAccessor: PropTypes.func,
|
|
21
|
-
* labelAccessor: PropTypes.func,
|
|
22
|
-
* isMultiple: PropTypes.bool,
|
|
23
|
-
* };
|
|
24
|
-
* @theme
|
|
25
|
-
* {
|
|
26
|
-
* typography: {
|
|
27
|
-
* body2: // font, color
|
|
28
|
-
* }
|
|
29
|
-
* }
|
|
30
|
-
* @demoReady
|
|
31
|
-
**/
|
|
32
|
-
|
|
33
|
-
export { default } from './Select';
|
package/es/Share/Form.js
DELETED
|
@@ -1,164 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import * as R from 'ramda';
|
|
4
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
5
|
-
import Typography from '@mui/material/Typography';
|
|
6
|
-
import Grid from '@mui/material/Grid';
|
|
7
|
-
import CircularProgress from '@mui/material/CircularProgress';
|
|
8
|
-
import { validate as getIsValidEmail } from 'isemail';
|
|
9
|
-
import Input from '../Input';
|
|
10
|
-
import Alert from '../Alert';
|
|
11
|
-
import { Button } from '../';
|
|
12
|
-
|
|
13
|
-
var useStyles = makeStyles(function (theme) {
|
|
14
|
-
return {
|
|
15
|
-
container: {
|
|
16
|
-
padding: theme.spacing(0, 1),
|
|
17
|
-
display: 'flex',
|
|
18
|
-
alignItems: 'flex-start'
|
|
19
|
-
},
|
|
20
|
-
containerSubmitButton: {
|
|
21
|
-
margin: theme.spacing(1, 0),
|
|
22
|
-
display: 'flex',
|
|
23
|
-
justifyContent: 'flex-end'
|
|
24
|
-
},
|
|
25
|
-
alertMessage: {
|
|
26
|
-
display: 'flex',
|
|
27
|
-
flexDirection: 'column'
|
|
28
|
-
},
|
|
29
|
-
input: {
|
|
30
|
-
margin: 0
|
|
31
|
-
},
|
|
32
|
-
close: {
|
|
33
|
-
alignItems: 'flex-start'
|
|
34
|
-
},
|
|
35
|
-
alert: {
|
|
36
|
-
margin: theme.spacing(0, 1)
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
});
|
|
40
|
-
|
|
41
|
-
var Form = function Form(_ref) {
|
|
42
|
-
var hasError = _ref.hasError,
|
|
43
|
-
isMessageOpen = _ref.isMessageOpen,
|
|
44
|
-
isSharing = _ref.isSharing,
|
|
45
|
-
_ref$mail = _ref.mail,
|
|
46
|
-
mail = _ref$mail === undefined ? '' : _ref$mail,
|
|
47
|
-
share = _ref.share,
|
|
48
|
-
changeMail = _ref.changeMail,
|
|
49
|
-
changeIsMessageOpen = _ref.changeIsMessageOpen,
|
|
50
|
-
labels = _ref.labels;
|
|
51
|
-
|
|
52
|
-
var _React$useState = React.useState(false),
|
|
53
|
-
emailHasError = _React$useState[0],
|
|
54
|
-
setEmailError = _React$useState[1];
|
|
55
|
-
|
|
56
|
-
var classes = useStyles();
|
|
57
|
-
|
|
58
|
-
var onChange = function onChange(value) {
|
|
59
|
-
if (getIsValidEmail(mail)) {
|
|
60
|
-
setEmailError(false);
|
|
61
|
-
}
|
|
62
|
-
if (R.is(Function)(changeMail)) return changeMail(value);
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
var onSubmit = function onSubmit() {
|
|
66
|
-
if (!getIsValidEmail(mail)) {
|
|
67
|
-
setEmailError(true);
|
|
68
|
-
return;
|
|
69
|
-
}
|
|
70
|
-
if (R.is(Function)(share)) return share();
|
|
71
|
-
};
|
|
72
|
-
|
|
73
|
-
if (isMessageOpen) {
|
|
74
|
-
return React.createElement(
|
|
75
|
-
Alert,
|
|
76
|
-
{
|
|
77
|
-
className: classes.alert,
|
|
78
|
-
classes: { action: classes.close },
|
|
79
|
-
variant: 'filled',
|
|
80
|
-
severity: hasError ? 'error' : 'success',
|
|
81
|
-
onClose: function onClose() {
|
|
82
|
-
return changeIsMessageOpen(false);
|
|
83
|
-
}
|
|
84
|
-
},
|
|
85
|
-
React.createElement(
|
|
86
|
-
'div',
|
|
87
|
-
{ className: classes.alertMessage },
|
|
88
|
-
React.createElement(
|
|
89
|
-
Typography,
|
|
90
|
-
{ variant: 'body2' },
|
|
91
|
-
hasError ? R.prop('errorTitle')(labels) : R.prop('successTitle')(labels)
|
|
92
|
-
),
|
|
93
|
-
React.createElement(
|
|
94
|
-
Typography,
|
|
95
|
-
{ variant: 'body2' },
|
|
96
|
-
hasError ? R.prop('errorMessage')(labels) : R.prop('successMessage')(labels)
|
|
97
|
-
)
|
|
98
|
-
)
|
|
99
|
-
);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
return React.createElement(
|
|
103
|
-
Grid,
|
|
104
|
-
{ container: true, className: classes.container },
|
|
105
|
-
React.createElement(
|
|
106
|
-
Grid,
|
|
107
|
-
{ item: true, xs: 12 },
|
|
108
|
-
React.createElement(Input, {
|
|
109
|
-
inputProps: {
|
|
110
|
-
'aria-label': R.prop('email')(labels),
|
|
111
|
-
autoComplete: 'email'
|
|
112
|
-
},
|
|
113
|
-
className: classes.input,
|
|
114
|
-
label: R.prop('email')(labels),
|
|
115
|
-
type: 'email',
|
|
116
|
-
value: mail,
|
|
117
|
-
onChange: onChange,
|
|
118
|
-
variant: 'outlined',
|
|
119
|
-
fullWidth: true,
|
|
120
|
-
isControlled: true,
|
|
121
|
-
textFieldProps: { error: emailHasError },
|
|
122
|
-
onSubmit: onSubmit
|
|
123
|
-
})
|
|
124
|
-
),
|
|
125
|
-
React.createElement(
|
|
126
|
-
Grid,
|
|
127
|
-
{ item: true, xs: 12, className: classes.containerSubmitButton },
|
|
128
|
-
React.createElement(
|
|
129
|
-
Button,
|
|
130
|
-
{
|
|
131
|
-
'aria-label': R.propOr('', 'submit')(labels),
|
|
132
|
-
type: 'submit',
|
|
133
|
-
disabled: isSharing || R.isNil(share),
|
|
134
|
-
variant: 'contained',
|
|
135
|
-
color: 'primary',
|
|
136
|
-
alternative: 'siscc',
|
|
137
|
-
onClick: onSubmit,
|
|
138
|
-
className: classes.submitButton
|
|
139
|
-
},
|
|
140
|
-
isSharing ? React.createElement(CircularProgress, { size: 24 }) : R.propOr('', 'submit')(labels)
|
|
141
|
-
)
|
|
142
|
-
)
|
|
143
|
-
);
|
|
144
|
-
};
|
|
145
|
-
|
|
146
|
-
Form.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
147
|
-
hasError: PropTypes.bool,
|
|
148
|
-
isMessageOpen: PropTypes.bool,
|
|
149
|
-
isSharing: PropTypes.bool,
|
|
150
|
-
mail: PropTypes.string,
|
|
151
|
-
share: PropTypes.func,
|
|
152
|
-
changeMail: PropTypes.func,
|
|
153
|
-
changeIsMessageOpen: PropTypes.func,
|
|
154
|
-
labels: PropTypes.shape({
|
|
155
|
-
submit: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
156
|
-
email: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
157
|
-
successTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
158
|
-
successMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
159
|
-
errorTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
160
|
-
errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
161
|
-
})
|
|
162
|
-
} : {};
|
|
163
|
-
|
|
164
|
-
export default Form;
|
package/es/Share/Mode.js
DELETED
|
@@ -1,136 +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 Card from '@mui/material/Card';
|
|
7
|
-
import { useTheme } from '@mui/material/styles';
|
|
8
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
9
|
-
import CardContent from '@mui/material/CardContent';
|
|
10
|
-
import Typography from '@mui/material/Typography';
|
|
11
|
-
import RadioGroup from '@mui/material/RadioGroup';
|
|
12
|
-
import FormControlLabel from '@mui/material/FormControlLabel';
|
|
13
|
-
import Radio from '@mui/material/Radio';
|
|
14
|
-
import { Tooltip, Warning as WarningIcon } from '../';
|
|
15
|
-
|
|
16
|
-
var useStyles = makeStyles(function (theme) {
|
|
17
|
-
return {
|
|
18
|
-
container: {
|
|
19
|
-
backgroundColor: theme.palette.secondary.dark,
|
|
20
|
-
boxShadow: 'none',
|
|
21
|
-
padding: theme.spacing(2),
|
|
22
|
-
width: '100%'
|
|
23
|
-
},
|
|
24
|
-
title: _extends({
|
|
25
|
-
padding: 0
|
|
26
|
-
}, R.pathOr({}, ['mixins', 'share', 'title'], theme)),
|
|
27
|
-
content: {
|
|
28
|
-
padding: theme.spacing(1, 0),
|
|
29
|
-
'&:last-child': {
|
|
30
|
-
padding: theme.spacing(1, 0)
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
label: theme.typography.body2,
|
|
34
|
-
warning: _extends({
|
|
35
|
-
marginLeft: theme.spacing(0.5),
|
|
36
|
-
width: 'unset',
|
|
37
|
-
fontSize: 'inherit',
|
|
38
|
-
height: '1.3em'
|
|
39
|
-
}, R.pathOr({}, ['mixins', 'share', 'warning'], theme))
|
|
40
|
-
};
|
|
41
|
-
});
|
|
42
|
-
|
|
43
|
-
var Warning = function Warning(_ref) {
|
|
44
|
-
var title = _ref.title;
|
|
45
|
-
|
|
46
|
-
var classes = useStyles();
|
|
47
|
-
var theme = useTheme();
|
|
48
|
-
var warningColor = R.path(['palette', 'highlight', 'hl1'], theme) || theme.palette.primary.dark;
|
|
49
|
-
var warningTextColor = theme.palette.getContrastText(warningColor);
|
|
50
|
-
return React.createElement(
|
|
51
|
-
Tooltip,
|
|
52
|
-
{
|
|
53
|
-
className: classes.warning,
|
|
54
|
-
title: title,
|
|
55
|
-
tabIndex: 0,
|
|
56
|
-
variant: 'warning',
|
|
57
|
-
'aria-hidden': false,
|
|
58
|
-
placement: 'bottom',
|
|
59
|
-
PopperProps: {
|
|
60
|
-
modifiers: {
|
|
61
|
-
flip: {
|
|
62
|
-
behavior: ['bottom', 'top', 'left', 'right']
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
},
|
|
67
|
-
React.createElement(WarningIcon, { pathBackgroundColor: warningColor, pathColor: warningTextColor })
|
|
68
|
-
);
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
Warning.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
72
|
-
title: PropTypes.string
|
|
73
|
-
} : {};
|
|
74
|
-
|
|
75
|
-
var Mode = function Mode(_ref2) {
|
|
76
|
-
var changeMode = _ref2.changeMode,
|
|
77
|
-
mode = _ref2.mode,
|
|
78
|
-
_ref2$modes = _ref2.modes,
|
|
79
|
-
modes = _ref2$modes === undefined ? [] : _ref2$modes,
|
|
80
|
-
title = _ref2.title;
|
|
81
|
-
|
|
82
|
-
var classes = useStyles();
|
|
83
|
-
return React.createElement(
|
|
84
|
-
Card,
|
|
85
|
-
{ className: classes.container },
|
|
86
|
-
React.createElement(
|
|
87
|
-
CardContent,
|
|
88
|
-
{ className: classes.content },
|
|
89
|
-
React.createElement(
|
|
90
|
-
Typography,
|
|
91
|
-
{ className: classes.title },
|
|
92
|
-
title
|
|
93
|
-
),
|
|
94
|
-
React.createElement(
|
|
95
|
-
RadioGroup,
|
|
96
|
-
{ onChange: function onChange(e) {
|
|
97
|
-
return changeMode(e.target.value);
|
|
98
|
-
}, value: mode },
|
|
99
|
-
R.map(function (_ref3) {
|
|
100
|
-
var label = _ref3.label,
|
|
101
|
-
value = _ref3.value,
|
|
102
|
-
_ref3$disabled = _ref3.disabled,
|
|
103
|
-
disabled = _ref3$disabled === undefined ? false : _ref3$disabled,
|
|
104
|
-
warningMessage = _ref3.warningMessage;
|
|
105
|
-
return React.createElement(FormControlLabel, {
|
|
106
|
-
classes: { label: classes.label },
|
|
107
|
-
key: value,
|
|
108
|
-
disabled: disabled,
|
|
109
|
-
control: React.createElement(Radio, { variant: 'outlined', color: 'primary' }),
|
|
110
|
-
label: React.createElement(
|
|
111
|
-
'span',
|
|
112
|
-
null,
|
|
113
|
-
label,
|
|
114
|
-
warningMessage && React.createElement(Warning, { title: warningMessage })
|
|
115
|
-
),
|
|
116
|
-
value: value
|
|
117
|
-
});
|
|
118
|
-
})(modes)
|
|
119
|
-
)
|
|
120
|
-
)
|
|
121
|
-
);
|
|
122
|
-
};
|
|
123
|
-
|
|
124
|
-
Mode.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
125
|
-
changeMode: PropTypes.func,
|
|
126
|
-
mode: PropTypes.string,
|
|
127
|
-
modes: PropTypes.arrayOf(PropTypes.shape({
|
|
128
|
-
label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
129
|
-
value: PropTypes.string,
|
|
130
|
-
warningMessage: PropTypes.string,
|
|
131
|
-
disabled: PropTypes.bool
|
|
132
|
-
})),
|
|
133
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
134
|
-
} : {};
|
|
135
|
-
|
|
136
|
-
export default Mode;
|
package/es/Share/Share.js
DELETED
|
@@ -1,115 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import * as R from 'ramda';
|
|
4
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
5
|
-
import Paper from '@mui/material/Paper';
|
|
6
|
-
import Grid from '@mui/material/Grid';
|
|
7
|
-
import Form from './Form';
|
|
8
|
-
import Mode from './Mode';
|
|
9
|
-
import { withBlank } from '../utils';
|
|
10
|
-
|
|
11
|
-
var useStyles = makeStyles(function (theme) {
|
|
12
|
-
return {
|
|
13
|
-
container: {
|
|
14
|
-
width: '100%',
|
|
15
|
-
margin: theme.spacing(1, 0),
|
|
16
|
-
padding: 20
|
|
17
|
-
},
|
|
18
|
-
subContainer: {
|
|
19
|
-
width: '100%',
|
|
20
|
-
margin: theme.spacing(2, 0)
|
|
21
|
-
},
|
|
22
|
-
divider: {
|
|
23
|
-
borderRight: '1px solid ' + theme.palette.divider
|
|
24
|
-
},
|
|
25
|
-
disclaimerContainer: {
|
|
26
|
-
padding: theme.spacing(0, 1)
|
|
27
|
-
},
|
|
28
|
-
disclaimer: {
|
|
29
|
-
backgroundColor: R.path(['palette', 'tertiary', 'dark'])(theme) || theme.palette.grey[100],
|
|
30
|
-
padding: theme.spacing(1, 2),
|
|
31
|
-
width: '100%',
|
|
32
|
-
height: '100%'
|
|
33
|
-
}
|
|
34
|
-
};
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
var Share = function Share(_ref) {
|
|
38
|
-
var changeIsMessageOpen = _ref.changeIsMessageOpen,
|
|
39
|
-
changeMode = _ref.changeMode,
|
|
40
|
-
changeMail = _ref.changeMail,
|
|
41
|
-
hasError = _ref.hasError,
|
|
42
|
-
isMessageOpen = _ref.isMessageOpen,
|
|
43
|
-
isSharing = _ref.isSharing,
|
|
44
|
-
mail = _ref.mail,
|
|
45
|
-
mode = _ref.mode,
|
|
46
|
-
modes = _ref.modes,
|
|
47
|
-
share = _ref.share,
|
|
48
|
-
labels = _ref.labels;
|
|
49
|
-
|
|
50
|
-
var classes = useStyles();
|
|
51
|
-
return React.createElement(
|
|
52
|
-
Grid,
|
|
53
|
-
{ 'data-testid': 'share-test-id', container: true, className: classes.container },
|
|
54
|
-
React.createElement(
|
|
55
|
-
Grid,
|
|
56
|
-
{ item: true, xs: 12 },
|
|
57
|
-
React.createElement(Mode, { changeMode: changeMode, modes: modes, mode: mode, title: R.prop('title')(labels) })
|
|
58
|
-
),
|
|
59
|
-
React.createElement(
|
|
60
|
-
Grid,
|
|
61
|
-
{ container: true, className: classes.subContainer },
|
|
62
|
-
React.createElement(
|
|
63
|
-
Grid,
|
|
64
|
-
{ item: true, xs: 12, md: 6, className: classes.divider },
|
|
65
|
-
React.createElement(Form, {
|
|
66
|
-
changeMail: changeMail,
|
|
67
|
-
changeIsMessageOpen: changeIsMessageOpen,
|
|
68
|
-
hasError: hasError,
|
|
69
|
-
isMessageOpen: isMessageOpen,
|
|
70
|
-
isSharing: isSharing,
|
|
71
|
-
mail: mail,
|
|
72
|
-
share: share,
|
|
73
|
-
labels: labels
|
|
74
|
-
})
|
|
75
|
-
),
|
|
76
|
-
React.createElement(
|
|
77
|
-
Grid,
|
|
78
|
-
{ item: true, xs: 12, md: 6, className: classes.disclaimerContainer },
|
|
79
|
-
React.createElement(
|
|
80
|
-
Paper,
|
|
81
|
-
{ className: classes.disclaimer },
|
|
82
|
-
R.prop('disclaimer')(labels)
|
|
83
|
-
)
|
|
84
|
-
)
|
|
85
|
-
)
|
|
86
|
-
);
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
Share.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
90
|
-
changeIsMessageOpen: PropTypes.func,
|
|
91
|
-
changeMode: PropTypes.func,
|
|
92
|
-
changeMail: PropTypes.func,
|
|
93
|
-
hasError: PropTypes.bool,
|
|
94
|
-
isMessageOpen: PropTypes.bool,
|
|
95
|
-
isSharing: PropTypes.bool,
|
|
96
|
-
mail: PropTypes.string,
|
|
97
|
-
mode: PropTypes.string,
|
|
98
|
-
modes: PropTypes.array,
|
|
99
|
-
share: PropTypes.func,
|
|
100
|
-
labels: PropTypes.shape({
|
|
101
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
102
|
-
disclaimer: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
103
|
-
submit: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
104
|
-
email: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
105
|
-
successTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
106
|
-
successMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
107
|
-
errorTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
108
|
-
errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
109
|
-
})
|
|
110
|
-
} : {};
|
|
111
|
-
|
|
112
|
-
export default withBlank(function (_ref2) {
|
|
113
|
-
var isBlank = _ref2.isBlank;
|
|
114
|
-
return { isBlank: isBlank };
|
|
115
|
-
})(Share);
|
package/es/Share/index.js
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Share, it's a component to prepare your type of share
|
|
3
|
-
*
|
|
4
|
-
* @memberOf VISIONS
|
|
5
|
-
* @name Share
|
|
6
|
-
* @tag component
|
|
7
|
-
* @api public
|
|
8
|
-
* @props
|
|
9
|
-
* Share.propTypes = {
|
|
10
|
-
* changeIsMessageOpen: PropTypes.func,
|
|
11
|
-
* changeMode: PropTypes.func,
|
|
12
|
-
* changeMail: PropTypes.func,
|
|
13
|
-
* share: PropTypes.func,
|
|
14
|
-
* hasError: PropTypes.bool,
|
|
15
|
-
* isMessageOpen: PropTypes.bool,
|
|
16
|
-
* isSharing: PropTypes.bool,
|
|
17
|
-
* mail: PropTypes.string,
|
|
18
|
-
* mode: PropTypes.string,
|
|
19
|
-
* modes: PropTypes.arrayOf(
|
|
20
|
-
* PropTypes.shape({
|
|
21
|
-
* label: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
22
|
-
* value: PropTypes.string,
|
|
23
|
-
* warningMessage: PropTypes.string,
|
|
24
|
-
* }),
|
|
25
|
-
* ),
|
|
26
|
-
* labels: PropTypes.shape({
|
|
27
|
-
* title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
28
|
-
* disclaimer: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
29
|
-
* submit: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
30
|
-
* email: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
31
|
-
* successTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
32
|
-
* successMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
33
|
-
* errorTitle: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
34
|
-
* errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
35
|
-
* }),
|
|
36
|
-
* };
|
|
37
|
-
* @theme
|
|
38
|
-
* {
|
|
39
|
-
* palette: {
|
|
40
|
-
* secondary: {
|
|
41
|
-
* dark: // background color of share mode
|
|
42
|
-
* },
|
|
43
|
-
* tertiary: {
|
|
44
|
-
* dark: // background color of disclaimer
|
|
45
|
-
* },
|
|
46
|
-
* grey: {
|
|
47
|
-
* 100: // used if tertiary is null
|
|
48
|
-
* }
|
|
49
|
-
* divider: // divider color
|
|
50
|
-
* },
|
|
51
|
-
* typography: {
|
|
52
|
-
* body2: // font, color of mode's label
|
|
53
|
-
* },
|
|
54
|
-
* mixins: {
|
|
55
|
-
* share: {
|
|
56
|
-
* tile: // font, color...
|
|
57
|
-
* warning: // font, color, height...
|
|
58
|
-
* }
|
|
59
|
-
* }
|
|
60
|
-
* }
|
|
61
|
-
* @demoReady
|
|
62
|
-
*/
|
|
63
|
-
|
|
64
|
-
export { default } from './Share';
|