@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
|
@@ -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 Grid from '@mui/material/Grid';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import * as R from 'ramda';
|
|
7
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
8
|
-
import TextareaAutosize from '@mui/material/TextareaAutosize';
|
|
9
|
-
import Typography from '@mui/material/Typography';
|
|
10
|
-
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
11
|
-
import IconButton from '@mui/material/IconButton';
|
|
12
|
-
import Collapse from '@mui/material/Collapse';
|
|
13
|
-
import CloseIcon from '@mui/icons-material/Close';
|
|
14
|
-
import { Alert, Button } from '../';
|
|
15
|
-
import CircularProgress from '@mui/material/CircularProgress';
|
|
16
|
-
|
|
17
|
-
var useStyles = makeStyles(function (theme) {
|
|
18
|
-
return {
|
|
19
|
-
container: {
|
|
20
|
-
boxShadow: 'none',
|
|
21
|
-
width: '100%',
|
|
22
|
-
padding: 20
|
|
23
|
-
},
|
|
24
|
-
textarea: {
|
|
25
|
-
width: '100%',
|
|
26
|
-
margin: theme.spacing(0.5, 0, 0, 0)
|
|
27
|
-
},
|
|
28
|
-
title: _extends({
|
|
29
|
-
paddingBottom: 30
|
|
30
|
-
}, R.pathOr({}, ['mixins', 'share', 'title'], theme)),
|
|
31
|
-
textAreaWrapper: {
|
|
32
|
-
display: 'flex',
|
|
33
|
-
flexGrow: 1
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
});
|
|
37
|
-
|
|
38
|
-
var ShortUrls = function ShortUrls(_ref) {
|
|
39
|
-
var labels = _ref.labels,
|
|
40
|
-
onClick = _ref.onClick,
|
|
41
|
-
isLoading = _ref.isLoading,
|
|
42
|
-
contentValue = _ref.contentValue,
|
|
43
|
-
_ref$isNotifOpen = _ref.isNotifOpen,
|
|
44
|
-
isNotifOpen = _ref$isNotifOpen === undefined ? false : _ref$isNotifOpen,
|
|
45
|
-
setIsNotifOpen = _ref.setIsNotifOpen;
|
|
46
|
-
|
|
47
|
-
var isNarrow = useMediaQuery(function (theme) {
|
|
48
|
-
return theme.breakpoints.down('md');
|
|
49
|
-
});
|
|
50
|
-
var classes = useStyles();
|
|
51
|
-
|
|
52
|
-
return React.createElement(
|
|
53
|
-
Grid,
|
|
54
|
-
{ className: classes.container },
|
|
55
|
-
React.createElement(
|
|
56
|
-
Typography,
|
|
57
|
-
{ variant: 'h6', className: classes.title },
|
|
58
|
-
R.prop('title')(labels)
|
|
59
|
-
),
|
|
60
|
-
React.createElement(
|
|
61
|
-
Grid,
|
|
62
|
-
{
|
|
63
|
-
container: true,
|
|
64
|
-
justifyContent: isNarrow ? 'center' : 'flex-start',
|
|
65
|
-
alignItems: isNarrow ? 'left' : 'center',
|
|
66
|
-
direction: isNarrow ? 'column-reverse' : 'row'
|
|
67
|
-
},
|
|
68
|
-
React.createElement(
|
|
69
|
-
Grid,
|
|
70
|
-
{ item: true, style: { padding: isNarrow ? '20px 0 0 0' : '0 20px 0 0' } },
|
|
71
|
-
React.createElement(
|
|
72
|
-
Button,
|
|
73
|
-
{
|
|
74
|
-
'aria-label': R.propOr('', 'generateUrl')(labels),
|
|
75
|
-
type: 'submit',
|
|
76
|
-
variant: 'contained',
|
|
77
|
-
color: 'primary',
|
|
78
|
-
disabled: isLoading || R.isNil(onClick),
|
|
79
|
-
alternative: 'siscc',
|
|
80
|
-
onClick: onClick,
|
|
81
|
-
className: classes.submitButton
|
|
82
|
-
},
|
|
83
|
-
isLoading ? React.createElement(CircularProgress, { size: 24 }) : R.propOr('', 'generateUrl')(labels)
|
|
84
|
-
)
|
|
85
|
-
),
|
|
86
|
-
React.createElement(
|
|
87
|
-
Grid,
|
|
88
|
-
{ item: true, className: classes.textAreaWrapper },
|
|
89
|
-
React.createElement(TextareaAutosize, {
|
|
90
|
-
'aria-label': contentValue,
|
|
91
|
-
className: classes.textarea,
|
|
92
|
-
minRows: 2,
|
|
93
|
-
maxRows: 2,
|
|
94
|
-
readOnly: true,
|
|
95
|
-
value: contentValue
|
|
96
|
-
})
|
|
97
|
-
)
|
|
98
|
-
),
|
|
99
|
-
React.createElement(
|
|
100
|
-
Collapse,
|
|
101
|
-
{ 'in': isNotifOpen },
|
|
102
|
-
React.createElement(
|
|
103
|
-
Alert,
|
|
104
|
-
{
|
|
105
|
-
severity: 'error',
|
|
106
|
-
action: React.createElement(
|
|
107
|
-
IconButton,
|
|
108
|
-
{
|
|
109
|
-
'aria-label': 'close',
|
|
110
|
-
color: 'inherit',
|
|
111
|
-
size: 'small',
|
|
112
|
-
onClick: function onClick() {
|
|
113
|
-
setIsNotifOpen(false);
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
|
-
React.createElement(CloseIcon, { fontSize: 'inherit' })
|
|
117
|
-
)
|
|
118
|
-
},
|
|
119
|
-
R.prop('errorMessage', labels)
|
|
120
|
-
)
|
|
121
|
-
)
|
|
122
|
-
);
|
|
123
|
-
};
|
|
124
|
-
ShortUrls.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
125
|
-
onClick: PropTypes.func,
|
|
126
|
-
isLoading: PropTypes.bool,
|
|
127
|
-
contentValue: PropTypes.string,
|
|
128
|
-
isNotifOpen: PropTypes.bool,
|
|
129
|
-
setIsNotifOpen: PropTypes.func,
|
|
130
|
-
labels: PropTypes.shape({
|
|
131
|
-
generateUrl: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
132
|
-
title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
133
|
-
errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element])
|
|
134
|
-
})
|
|
135
|
-
} : {};
|
|
136
|
-
export default ShortUrls;
|
package/es/ShortUrls/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* ShortUrls, it's a component to shorten your large URL
|
|
3
|
-
*
|
|
4
|
-
* @memberOf VISIONS
|
|
5
|
-
* @name ShortUrls
|
|
6
|
-
* @tag component
|
|
7
|
-
* @api public
|
|
8
|
-
* @props
|
|
9
|
-
* ShortUrls.propTypes = {
|
|
10
|
-
* onClick: PropTypes.func,
|
|
11
|
-
* isLoading: PropTypes.bool,
|
|
12
|
-
* contentValue: PropTypes.string,
|
|
13
|
-
* labels: PropTypes.shape({
|
|
14
|
-
* generateUrl: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
15
|
-
* title: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
16
|
-
* errorMessage: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
17
|
-
* }),
|
|
18
|
-
* };
|
|
19
|
-
* @demoReady
|
|
20
|
-
*/
|
|
21
|
-
|
|
22
|
-
export { default } from './ShortUrls';
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import cx from 'classnames';
|
|
4
|
-
import { useTheme } from '@mui/material/styles';
|
|
5
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
6
|
-
import AppBar from '@mui/material/AppBar';
|
|
7
|
-
import Toolbar from '@mui/material/Toolbar';
|
|
8
|
-
import Grid from '@mui/material/Grid';
|
|
9
|
-
import Typography from '@mui/material/Typography';
|
|
10
|
-
import { getIsRtl } from '../utils';
|
|
11
|
-
|
|
12
|
-
var useStyles = makeStyles(function (theme) {
|
|
13
|
-
return {
|
|
14
|
-
appBar: {
|
|
15
|
-
background: theme.palette.grey[100],
|
|
16
|
-
minWidth: 300
|
|
17
|
-
},
|
|
18
|
-
root: {
|
|
19
|
-
alignItems: 'flex-start'
|
|
20
|
-
},
|
|
21
|
-
gutters: {
|
|
22
|
-
padding: '8px 5%'
|
|
23
|
-
},
|
|
24
|
-
leftLabel: {
|
|
25
|
-
fontWeight: theme.typography.fontWeightBold,
|
|
26
|
-
color: theme.palette.grey['A700'],
|
|
27
|
-
textAlign: 'left'
|
|
28
|
-
},
|
|
29
|
-
rightLabel: {
|
|
30
|
-
color: theme.palette.grey['A700'],
|
|
31
|
-
textAlign: 'left'
|
|
32
|
-
},
|
|
33
|
-
rtl: {
|
|
34
|
-
textAlign: 'right'
|
|
35
|
-
},
|
|
36
|
-
fixed: {
|
|
37
|
-
position: 'fixed',
|
|
38
|
-
bottom: 0,
|
|
39
|
-
left: 0,
|
|
40
|
-
width: '100%',
|
|
41
|
-
zIndex: 0
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
var SisccFooter = React.forwardRef(function (_ref, ref) {
|
|
47
|
-
var _cx, _cx2, _cx3;
|
|
48
|
-
|
|
49
|
-
var leftLabel = _ref.leftLabel,
|
|
50
|
-
_ref$rightLabel = _ref.rightLabel,
|
|
51
|
-
rightLabel = _ref$rightLabel === undefined ? [] : _ref$rightLabel,
|
|
52
|
-
isFixed = _ref.isFixed;
|
|
53
|
-
|
|
54
|
-
var classes = useStyles();
|
|
55
|
-
var theme = useTheme();
|
|
56
|
-
var isRtl = getIsRtl(theme);
|
|
57
|
-
|
|
58
|
-
return React.createElement(
|
|
59
|
-
AppBar,
|
|
60
|
-
{
|
|
61
|
-
ref: ref,
|
|
62
|
-
'data-testid': 'footer-bar-test-id',
|
|
63
|
-
position: 'static',
|
|
64
|
-
component: 'footer',
|
|
65
|
-
role: 'contentinfo',
|
|
66
|
-
className: cx(classes.appBar, (_cx = {}, _cx[classes.fixed] = isFixed, _cx))
|
|
67
|
-
},
|
|
68
|
-
React.createElement(
|
|
69
|
-
Toolbar,
|
|
70
|
-
{ classes: { root: classes.root, gutters: classes.gutters } },
|
|
71
|
-
React.createElement(
|
|
72
|
-
Grid,
|
|
73
|
-
{ xs: 4, item: true, container: true, justifyContent: 'flex-start', alignItems: 'flex-start' },
|
|
74
|
-
React.createElement(
|
|
75
|
-
Typography,
|
|
76
|
-
{ variant: 'body2', className: cx(classes.leftLabel, (_cx2 = {}, _cx2[classes.rtl] = isRtl, _cx2)) },
|
|
77
|
-
leftLabel
|
|
78
|
-
)
|
|
79
|
-
),
|
|
80
|
-
React.createElement(
|
|
81
|
-
Grid,
|
|
82
|
-
{ xs: 8, item: true, container: true, justifyContent: 'flex-end', alignItems: 'flex-start' },
|
|
83
|
-
React.createElement(
|
|
84
|
-
Typography,
|
|
85
|
-
{ variant: 'body2', className: cx(classes.rightLabel, (_cx3 = {}, _cx3[classes.rtl] = !isRtl, _cx3)) },
|
|
86
|
-
rightLabel
|
|
87
|
-
)
|
|
88
|
-
)
|
|
89
|
-
)
|
|
90
|
-
);
|
|
91
|
-
});
|
|
92
|
-
|
|
93
|
-
SisccFooter.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
94
|
-
leftLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
95
|
-
rightLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
96
|
-
isFixed: PropTypes.bool
|
|
97
|
-
} : {};
|
|
98
|
-
|
|
99
|
-
export default SisccFooter;
|
package/es/SisccFooter/index.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* SisccFooter render img and button for your website.
|
|
3
|
-
*
|
|
4
|
-
* @memberOf VISIONS
|
|
5
|
-
* @name SisccFooter
|
|
6
|
-
* @tag component
|
|
7
|
-
* @api public
|
|
8
|
-
* @props
|
|
9
|
-
* SisccFooter.propTypes = {
|
|
10
|
-
* leftLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
11
|
-
* rightLabel: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.string, PropTypes.element])),
|
|
12
|
-
* };
|
|
13
|
-
* @theme
|
|
14
|
-
* {
|
|
15
|
-
* palette: {
|
|
16
|
-
* grey: {
|
|
17
|
-
* 'A700': // labels color. globale override: outerPalette.textDark
|
|
18
|
-
* 100: // background color
|
|
19
|
-
* }
|
|
20
|
-
* },
|
|
21
|
-
* typography: {
|
|
22
|
-
* fontWeightBold: // left label
|
|
23
|
-
* },
|
|
24
|
-
* }
|
|
25
|
-
**/
|
|
26
|
-
|
|
27
|
-
export { default } from './SisccFooter';
|
package/es/Spotlight/Fields.js
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
import React, { Fragment } from 'react';
|
|
2
|
-
import * as R from 'ramda';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import cx from 'classnames';
|
|
5
|
-
import Popover from '@mui/material/Popover';
|
|
6
|
-
import Button from '@mui/material/Button';
|
|
7
|
-
import ArrowDropDownIcon from '@mui/icons-material/ArrowDropDown';
|
|
8
|
-
import Check from '@mui/icons-material/Check';
|
|
9
|
-
|
|
10
|
-
export var Field = function Field(_ref) {
|
|
11
|
-
var _ref$spotlight = _ref.spotlight,
|
|
12
|
-
spotlight = _ref$spotlight === undefined ? {} : _ref$spotlight,
|
|
13
|
-
onChangeField = _ref.onChangeField,
|
|
14
|
-
isRtl = _ref.isRtl,
|
|
15
|
-
classes = _ref.classes;
|
|
16
|
-
|
|
17
|
-
var _React$useState = React.useState(null),
|
|
18
|
-
anchorEl = _React$useState[0],
|
|
19
|
-
setAnchorEl = _React$useState[1];
|
|
20
|
-
|
|
21
|
-
var handleClick = function handleClick(event) {
|
|
22
|
-
setAnchorEl(event.currentTarget);
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
var handleClose = function handleClose() {
|
|
26
|
-
setAnchorEl(null);
|
|
27
|
-
};
|
|
28
|
-
|
|
29
|
-
var open = Boolean(anchorEl);
|
|
30
|
-
var id = open ? 'visions-spotlight-popover' : undefined;
|
|
31
|
-
|
|
32
|
-
return React.createElement(
|
|
33
|
-
Fragment,
|
|
34
|
-
null,
|
|
35
|
-
React.createElement(
|
|
36
|
-
Button,
|
|
37
|
-
{ 'aria-describedby': id, onClick: handleClick },
|
|
38
|
-
React.createElement(
|
|
39
|
-
'div',
|
|
40
|
-
{ className: classes.buttonContainer },
|
|
41
|
-
R.prop('searchLabel', spotlight),
|
|
42
|
-
React.createElement(ArrowDropDownIcon, { fontSize: 'small' })
|
|
43
|
-
)
|
|
44
|
-
),
|
|
45
|
-
React.createElement(
|
|
46
|
-
Popover,
|
|
47
|
-
{
|
|
48
|
-
id: id,
|
|
49
|
-
open: open,
|
|
50
|
-
anchorEl: anchorEl,
|
|
51
|
-
onClose: handleClose,
|
|
52
|
-
anchorOrigin: {
|
|
53
|
-
vertical: 'bottom',
|
|
54
|
-
horizontal: 'center'
|
|
55
|
-
},
|
|
56
|
-
transformOrigin: {
|
|
57
|
-
vertical: 'top',
|
|
58
|
-
horizontal: 'center'
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
React.createElement(
|
|
62
|
-
'div',
|
|
63
|
-
{ dir: isRtl ? 'rtl' : 'ltr', className: classes.popoverButton },
|
|
64
|
-
R.pipe(R.values, R.map(function (field) {
|
|
65
|
-
var _cx;
|
|
66
|
-
|
|
67
|
-
return React.createElement(
|
|
68
|
-
Button,
|
|
69
|
-
{
|
|
70
|
-
key: field.id,
|
|
71
|
-
className: classes.buttonContainer,
|
|
72
|
-
onClick: onChangeField(field),
|
|
73
|
-
disabled: field.disabled
|
|
74
|
-
},
|
|
75
|
-
React.createElement(Check, {
|
|
76
|
-
fontSize: 'small',
|
|
77
|
-
className: cx((_cx = {}, _cx[classes.selected] = !R.prop('isSelected')(field), _cx))
|
|
78
|
-
}),
|
|
79
|
-
React.createElement(spotlight.FieldLabelRenderer, { id: field.id })
|
|
80
|
-
);
|
|
81
|
-
}))(R.prop('fields', spotlight))
|
|
82
|
-
)
|
|
83
|
-
)
|
|
84
|
-
);
|
|
85
|
-
};
|
|
86
|
-
|
|
87
|
-
Field.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
88
|
-
classes: PropTypes.object,
|
|
89
|
-
spotlight: PropTypes.shape({
|
|
90
|
-
fields: PropTypes.shape({
|
|
91
|
-
id: PropTypes.string,
|
|
92
|
-
isSelected: PropTypes.bool,
|
|
93
|
-
disabled: PropTypes.bool
|
|
94
|
-
}),
|
|
95
|
-
searchLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
96
|
-
FieldLabelRenderer: PropTypes.func
|
|
97
|
-
}),
|
|
98
|
-
onChangeField: PropTypes.func.isRequired,
|
|
99
|
-
isRtl: PropTypes.bool
|
|
100
|
-
} : {};
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import React, { Fragment } from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import cx from 'classnames';
|
|
4
|
-
import * as R from 'ramda';
|
|
5
|
-
import ArrowForward from '@mui/icons-material/ArrowForward';
|
|
6
|
-
import { useTheme } from '@mui/material/styles';
|
|
7
|
-
import ArrowBack from '@mui/icons-material/ArrowBack';
|
|
8
|
-
import Search from '@mui/icons-material/Search';
|
|
9
|
-
import Paper from '@mui/material/Paper';
|
|
10
|
-
import IconButton from '@mui/material/IconButton';
|
|
11
|
-
import InputBase from '@mui/material/InputBase';
|
|
12
|
-
import { Field } from './Fields';
|
|
13
|
-
import { useStyles } from './useStyles';
|
|
14
|
-
import { useSpotlight } from './useSpotlight';
|
|
15
|
-
import Cross from '../Icons/Cross';
|
|
16
|
-
|
|
17
|
-
var size = R.pipe(R.values, R.length);
|
|
18
|
-
|
|
19
|
-
var Spotlight = function Spotlight(_ref) {
|
|
20
|
-
var _cx;
|
|
21
|
-
|
|
22
|
-
var placeholder = _ref.placeholder,
|
|
23
|
-
hasClearAll = _ref.hasClearAll,
|
|
24
|
-
hasCommit = _ref.hasCommit,
|
|
25
|
-
withBorder = _ref.withBorder,
|
|
26
|
-
defaultSpotlight = _ref.defaultSpotlight,
|
|
27
|
-
term = _ref.term,
|
|
28
|
-
action = _ref.action,
|
|
29
|
-
fullWidth = _ref.fullWidth,
|
|
30
|
-
className = _ref.className,
|
|
31
|
-
_ref$withAutoFocus = _ref.withAutoFocus,
|
|
32
|
-
withAutoFocus = _ref$withAutoFocus === undefined ? false : _ref$withAutoFocus,
|
|
33
|
-
labels = _ref.labels,
|
|
34
|
-
_ref$testId = _ref.testId,
|
|
35
|
-
testId = _ref$testId === undefined ? 'spotlight' : _ref$testId;
|
|
36
|
-
|
|
37
|
-
var _useSpotlight = useSpotlight(hasCommit, term, defaultSpotlight, action),
|
|
38
|
-
value = _useSpotlight.value,
|
|
39
|
-
spotlight = _useSpotlight.spotlight,
|
|
40
|
-
isFocus = _useSpotlight.isFocus,
|
|
41
|
-
onKeyPress = _useSpotlight.onKeyPress,
|
|
42
|
-
onClearTerm = _useSpotlight.onClearTerm,
|
|
43
|
-
onChangeTerm = _useSpotlight.onChangeTerm,
|
|
44
|
-
onChangeField = _useSpotlight.onChangeField,
|
|
45
|
-
onCommitTerm = _useSpotlight.onCommitTerm,
|
|
46
|
-
setFocus = _useSpotlight.setFocus;
|
|
47
|
-
|
|
48
|
-
var classes = useStyles();
|
|
49
|
-
var theme = useTheme();
|
|
50
|
-
var isRtl = R.equals('rtl', R.prop('direction', theme));
|
|
51
|
-
|
|
52
|
-
return React.createElement(
|
|
53
|
-
'div',
|
|
54
|
-
{
|
|
55
|
-
'data-testid': testId,
|
|
56
|
-
className: cx(R.prop('container', className), (_cx = {}, _cx[classes.container] = withBorder, _cx[classes.containerFocus] = isFocus, _cx[classes.fullWidth] = fullWidth, _cx[classes.defaultWidth] = !fullWidth, _cx))
|
|
57
|
-
},
|
|
58
|
-
React.createElement(
|
|
59
|
-
Paper,
|
|
60
|
-
{ className: classes.root, elevation: 0 },
|
|
61
|
-
React.createElement(
|
|
62
|
-
IconButton,
|
|
63
|
-
{
|
|
64
|
-
className: classes.leftIcon,
|
|
65
|
-
disabled: true,
|
|
66
|
-
'aria-label': R.propOr('search', 'searchSpotlight')(labels),
|
|
67
|
-
size: 'large'
|
|
68
|
-
},
|
|
69
|
-
React.createElement(Search, null)
|
|
70
|
-
),
|
|
71
|
-
React.createElement(InputBase, {
|
|
72
|
-
inputProps: {
|
|
73
|
-
'aria-label': placeholder,
|
|
74
|
-
'data-testid': testId + '_input'
|
|
75
|
-
},
|
|
76
|
-
className: classes.input,
|
|
77
|
-
sx: {
|
|
78
|
-
'& input::placeholder': {
|
|
79
|
-
color: theme.palette.grey[700],
|
|
80
|
-
opacity: 1
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
classes: { root: classes.inputBase, input: classes.inputBaseMargin },
|
|
84
|
-
placeholder: placeholder,
|
|
85
|
-
onKeyDown: onKeyPress,
|
|
86
|
-
value: value,
|
|
87
|
-
onChange: onChangeTerm,
|
|
88
|
-
onFocus: function onFocus() {
|
|
89
|
-
return setFocus(true);
|
|
90
|
-
},
|
|
91
|
-
onBlur: function onBlur() {
|
|
92
|
-
return setFocus(false);
|
|
93
|
-
}
|
|
94
|
-
// eslint-disable-next-line jsx-a11y/no-autofocus
|
|
95
|
-
, autoFocus: withAutoFocus
|
|
96
|
-
}),
|
|
97
|
-
hasClearAll && !R.isEmpty(value) ? React.createElement(
|
|
98
|
-
IconButton,
|
|
99
|
-
{
|
|
100
|
-
'aria-label': R.propOr('clear', 'clearSpotlight')(labels),
|
|
101
|
-
onClick: onClearTerm,
|
|
102
|
-
className: cx(classes.rightIcon, classes.clear),
|
|
103
|
-
size: 'large'
|
|
104
|
-
},
|
|
105
|
-
React.createElement(Cross, null)
|
|
106
|
-
) : null,
|
|
107
|
-
R.gt(size(R.prop('fields', spotlight)), 1) ? React.createElement(
|
|
108
|
-
Fragment,
|
|
109
|
-
null,
|
|
110
|
-
React.createElement(Field, {
|
|
111
|
-
spotlight: spotlight,
|
|
112
|
-
onChangeField: onChangeField,
|
|
113
|
-
isRtl: isRtl,
|
|
114
|
-
term: value,
|
|
115
|
-
classes: classes
|
|
116
|
-
})
|
|
117
|
-
) : null,
|
|
118
|
-
hasCommit ? React.createElement(
|
|
119
|
-
Fragment,
|
|
120
|
-
null,
|
|
121
|
-
React.createElement(
|
|
122
|
-
IconButton,
|
|
123
|
-
{
|
|
124
|
-
disabled: R.isEmpty(value),
|
|
125
|
-
color: 'primary',
|
|
126
|
-
className: classes.rightIcon,
|
|
127
|
-
'aria-label': R.propOr('commit', 'commitSpotlight')(labels),
|
|
128
|
-
onClick: onCommitTerm,
|
|
129
|
-
size: 'large'
|
|
130
|
-
},
|
|
131
|
-
isRtl ? React.createElement(ArrowBack, null) : React.createElement(ArrowForward, null)
|
|
132
|
-
)
|
|
133
|
-
) : null
|
|
134
|
-
)
|
|
135
|
-
);
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
Spotlight.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
139
|
-
term: PropTypes.string,
|
|
140
|
-
testId: PropTypes.string,
|
|
141
|
-
placeholder: PropTypes.string,
|
|
142
|
-
defaultSpotlight: PropTypes.shape({
|
|
143
|
-
fields: PropTypes.object,
|
|
144
|
-
searchLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
145
|
-
FieldLabelRenderer: PropTypes.func
|
|
146
|
-
}),
|
|
147
|
-
action: PropTypes.func,
|
|
148
|
-
hasClearAll: PropTypes.bool,
|
|
149
|
-
hasCommit: PropTypes.bool,
|
|
150
|
-
withBorder: PropTypes.bool,
|
|
151
|
-
fullWidth: PropTypes.bool,
|
|
152
|
-
classes: PropTypes.object,
|
|
153
|
-
className: PropTypes.object,
|
|
154
|
-
withAutoFocus: PropTypes.bool
|
|
155
|
-
} : {};
|
|
156
|
-
|
|
157
|
-
export default Spotlight;
|
package/es/Spotlight/index.js
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Spotlight is an input for search something
|
|
3
|
-
*
|
|
4
|
-
* We have many options for design the component as you wish
|
|
5
|
-
* hasClearAll: show cross button for delete your text
|
|
6
|
-
* hasCommit: show arrow button for commit your text (You could press "enter" for commit)
|
|
7
|
-
* withBorder: add padding around the spotlight
|
|
8
|
-
* fullWidth: input take 100% of the width
|
|
9
|
-
*
|
|
10
|
-
* spotlightOptions: show on right side a drop down list where you can add some options
|
|
11
|
-
*
|
|
12
|
-
* open devTool to see actions
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
* @memberOf VISIONS
|
|
16
|
-
* @name Spotlight
|
|
17
|
-
* @tag component
|
|
18
|
-
* @api public
|
|
19
|
-
* @props
|
|
20
|
-
* Spotlight.propTypes = {
|
|
21
|
-
* term: PropTypes.string,
|
|
22
|
-
* testId: PropTypes.string,
|
|
23
|
-
* placeholder: PropTypes.string,
|
|
24
|
-
* defaultSpotlight: PropTypes.shape({
|
|
25
|
-
* fields: PropTypes.object,
|
|
26
|
-
* searchLabel: PropTypes.oneOfType([PropTypes.string, PropTypes.element]),
|
|
27
|
-
* FieldLabelRenderer: PropTypes.func,
|
|
28
|
-
* }),
|
|
29
|
-
* action: PropTypes.func,
|
|
30
|
-
* hasClearAll: PropTypes.bool,
|
|
31
|
-
* hasCommit: PropTypes.bool,
|
|
32
|
-
* withBorder: PropTypes.bool,
|
|
33
|
-
* fullWidth: PropTypes.bool,
|
|
34
|
-
* classes: PropTypes.object,
|
|
35
|
-
* className: PropTypes.object,
|
|
36
|
-
* };
|
|
37
|
-
* @theme
|
|
38
|
-
* {
|
|
39
|
-
* palette: {
|
|
40
|
-
* button: {
|
|
41
|
-
* mainOpacity: // background color around the spotlight (withBorder)
|
|
42
|
-
* },
|
|
43
|
-
* highlight: {
|
|
44
|
-
* hl1: // background color around the spotlight on focus. globale override: outerPalette.highlight1
|
|
45
|
-
* },
|
|
46
|
-
* primary: {
|
|
47
|
-
* main: // color of icons on the right. global override: outerPalette.primaryMain
|
|
48
|
-
* light: // used if hl1 is null. globale override: outerPalette.primaryLight
|
|
49
|
-
* dark: // used if mainOpacity is null. globale override: outerPalette.primaryDark
|
|
50
|
-
* },
|
|
51
|
-
* grey: {
|
|
52
|
-
* 400: // input border
|
|
53
|
-
* }
|
|
54
|
-
* },
|
|
55
|
-
* typography: {
|
|
56
|
-
* body2: {
|
|
57
|
-
* // font, color, size of input label
|
|
58
|
-
* },
|
|
59
|
-
* },
|
|
60
|
-
* mixins: {
|
|
61
|
-
* spotlight: {
|
|
62
|
-
* focus: {
|
|
63
|
-
* outlineColor: outerPalette.highlight1
|
|
64
|
-
* outlineWidth: 1,
|
|
65
|
-
* outlineStyle: 'auto',
|
|
66
|
-
* }
|
|
67
|
-
* },
|
|
68
|
-
* }
|
|
69
|
-
* }
|
|
70
|
-
* @testId
|
|
71
|
-
* root: [testId]
|
|
72
|
-
* input: [testId]_input
|
|
73
|
-
*/
|
|
74
|
-
|
|
75
|
-
export { default } from './Spotlight';
|
|
@@ -1,75 +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 { useState, useEffect } from 'react';
|
|
4
|
-
import * as R from 'ramda';
|
|
5
|
-
|
|
6
|
-
export var useSpotlight = function useSpotlight(hasCommit) {
|
|
7
|
-
var defaultTerm = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '';
|
|
8
|
-
var defaultSpotlight = arguments[2];
|
|
9
|
-
var action = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : function () {};
|
|
10
|
-
|
|
11
|
-
var _useState = useState(defaultTerm),
|
|
12
|
-
term = _useState[0],
|
|
13
|
-
setTerm = _useState[1];
|
|
14
|
-
|
|
15
|
-
var _useState2 = useState(defaultSpotlight),
|
|
16
|
-
_useState2$ = _useState2[0],
|
|
17
|
-
spotlight = _useState2$ === undefined ? {} : _useState2$,
|
|
18
|
-
setSpotlight = _useState2[1];
|
|
19
|
-
|
|
20
|
-
var _useState3 = useState(false),
|
|
21
|
-
isFocus = _useState3[0],
|
|
22
|
-
setFocus = _useState3[1];
|
|
23
|
-
|
|
24
|
-
useEffect(function () {
|
|
25
|
-
setTerm(defaultTerm);
|
|
26
|
-
setSpotlight(defaultSpotlight);
|
|
27
|
-
}, [defaultTerm, defaultSpotlight]);
|
|
28
|
-
|
|
29
|
-
var onKeyPress = function onKeyPress(event) {
|
|
30
|
-
if (event.key === 'Enter') return action({ term: term, spotlight: spotlight });
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
var onClearTerm = function onClearTerm(event) {
|
|
34
|
-
event.preventDefault();
|
|
35
|
-
setTerm('');
|
|
36
|
-
return action({ term: '' });
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
var onChangeTerm = function onChangeTerm(event) {
|
|
40
|
-
event.preventDefault();
|
|
41
|
-
var newTerm = R.propOr('', 'value')(event.target);
|
|
42
|
-
setTerm(newTerm);
|
|
43
|
-
return hasCommit ? null : action({ term: newTerm, spotlight: spotlight });
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
var onCommitTerm = function onCommitTerm(event) {
|
|
47
|
-
event.preventDefault();
|
|
48
|
-
return action({ term: term, spotlight: spotlight });
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
var onChangeField = function onChangeField(field) {
|
|
52
|
-
return function (event) {
|
|
53
|
-
var _extends2;
|
|
54
|
-
|
|
55
|
-
event.preventDefault();
|
|
56
|
-
var newSpotlight = _extends({}, spotlight, {
|
|
57
|
-
fields: _extends({}, spotlight.fields, (_extends2 = {}, _extends2[field.id] = _extends({}, field, { isSelected: !field.isSelected }), _extends2))
|
|
58
|
-
});
|
|
59
|
-
setSpotlight(newSpotlight);
|
|
60
|
-
return action({ term: term, spotlight: newSpotlight });
|
|
61
|
-
};
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
return {
|
|
65
|
-
value: term,
|
|
66
|
-
spotlight: spotlight,
|
|
67
|
-
isFocus: isFocus,
|
|
68
|
-
setFocus: setFocus,
|
|
69
|
-
onKeyPress: onKeyPress,
|
|
70
|
-
onClearTerm: onClearTerm,
|
|
71
|
-
onChangeTerm: onChangeTerm,
|
|
72
|
-
onChangeField: onChangeField,
|
|
73
|
-
onCommitTerm: onCommitTerm
|
|
74
|
-
};
|
|
75
|
-
};
|