@sis-cc/dotstatsuite-visions 12.55.0 → 13.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -34
- package/dist/Alert/Alert.js +185 -0
- package/dist/Alert/Alert.js.map +1 -0
- package/dist/ApiQueries/ApiQueries.js +163 -0
- package/dist/ApiQueries/ApiQueries.js.map +1 -0
- package/dist/AuthDialog/AuthDialog.js +114 -0
- package/dist/AuthDialog/AuthDialog.js.map +1 -0
- package/dist/Breadcrumbs/Breadcrumbs.js +51 -0
- package/dist/Breadcrumbs/Breadcrumbs.js.map +1 -0
- package/dist/Button/Button.js +50 -0
- package/dist/Button/Button.js.map +1 -0
- package/dist/ChartsConfig/ChartsConfig.js +507 -0
- package/dist/ChartsConfig/ChartsConfig.js.map +1 -0
- package/dist/CollapseButtons/CollapseButtons.js +320 -0
- package/dist/CollapseButtons/CollapseButtons.js.map +1 -0
- package/dist/CollapsibleTree/CollapsibleTree.js +199 -0
- package/dist/CollapsibleTree/CollapsibleTree.js.map +1 -0
- package/dist/Contact/Contact.js +439 -0
- package/dist/Contact/Contact.js.map +1 -0
- package/dist/DataFooter/DataFooter.js +106 -0
- package/dist/DataFooter/DataFooter.js.map +1 -0
- package/dist/DataHeader/DataHeader.js +341 -0
- package/dist/DataHeader/DataHeader.js.map +1 -0
- package/dist/Dataflow/Dataflow.js +325 -0
- package/dist/Dataflow/Dataflow.js.map +1 -0
- package/dist/DeleteAllChip/DeleteAllChip.js +24 -0
- package/dist/DeleteAllChip/DeleteAllChip.js.map +1 -0
- package/dist/DynamicDrawer/DynamicDrawer.js +875 -0
- package/dist/DynamicDrawer/DynamicDrawer.js.map +1 -0
- package/dist/ExpansionPanel/ExpansionPanel.js +199 -0
- package/dist/ExpansionPanel/ExpansionPanel.js.map +1 -0
- package/dist/GroupedChips/GroupedChips.js +78 -0
- package/dist/GroupedChips/GroupedChips.js.map +1 -0
- package/dist/HierarchicalFilter/HierarchicalFilter.js +144 -0
- package/dist/HierarchicalFilter/HierarchicalFilter.js.map +1 -0
- package/dist/Icons/AccessibilityFilled.js +8 -0
- package/dist/Icons/AccessibilityFilled.js.map +1 -0
- package/dist/Icons/AccessibilityOutlined.js +8 -0
- package/dist/Icons/AccessibilityOutlined.js.map +1 -0
- package/dist/Icons/AccountFilled.js +8 -0
- package/dist/Icons/AccountFilled.js.map +1 -0
- package/dist/Icons/AccountOutlined.js +8 -0
- package/dist/Icons/AccountOutlined.js.map +1 -0
- package/dist/Icons/Api.js +8 -0
- package/dist/Icons/Api.js.map +1 -0
- package/dist/Icons/Asterisk.js +8 -0
- package/dist/Icons/Asterisk.js.map +1 -0
- package/dist/Icons/Bar.js +8 -0
- package/dist/Icons/Bar.js.map +1 -0
- package/dist/Icons/CopyContent.js +8 -0
- package/dist/Icons/CopyContent.js.map +1 -0
- package/dist/Icons/Cross.js +8 -0
- package/dist/Icons/Cross.js.map +1 -0
- package/dist/Icons/HSymbol.js +8 -0
- package/dist/Icons/HSymbol.js.map +1 -0
- package/dist/Icons/Row.js +8 -0
- package/dist/Icons/Row.js.map +1 -0
- package/dist/Icons/Scatter.js +8 -0
- package/dist/Icons/Scatter.js.map +1 -0
- package/dist/Icons/StackedBar.js +8 -0
- package/dist/Icons/StackedBar.js.map +1 -0
- package/dist/Icons/StackedRow.js +8 -0
- package/dist/Icons/StackedRow.js.map +1 -0
- package/dist/Icons/Timeline.js +8 -0
- package/dist/Icons/Timeline.js.map +1 -0
- package/dist/Icons/VSymbol.js +8 -0
- package/dist/Icons/VSymbol.js.map +1 -0
- package/dist/Icons/Warning.js +18 -0
- package/dist/Icons/Warning.js.map +1 -0
- package/dist/Input/Input.js +72 -0
- package/dist/Input/Input.js.map +1 -0
- package/dist/InputNumber/InputNumber.js +86 -0
- package/dist/InputNumber/InputNumber.js.map +1 -0
- package/dist/LabelDivider/LabelDivider.js +35 -0
- package/dist/LabelDivider/LabelDivider.js.map +1 -0
- package/dist/Loading/Loading.js +72 -0
- package/dist/Loading/Loading.js.map +1 -0
- package/dist/Logo/Logo.js +38 -0
- package/dist/Logo/Logo.js.map +1 -0
- package/dist/Mode/Mode.js +90 -0
- package/dist/Mode/Mode.js.map +1 -0
- package/dist/NoData/NoData.js +27 -0
- package/dist/NoData/NoData.js.map +1 -0
- package/dist/Pagination/Pagination.js +142 -0
- package/dist/Pagination/Pagination.js.map +1 -0
- package/dist/PeriodPicker/PeriodPicker.js +550 -0
- package/dist/PeriodPicker/PeriodPicker.js.map +1 -0
- package/dist/Select/Select.js +125 -0
- package/dist/Select/Select.js.map +1 -0
- package/dist/Share/Share.js +292 -0
- package/dist/Share/Share.js.map +1 -0
- package/dist/ShortUrls/ShortUrls.js +106 -0
- package/dist/ShortUrls/ShortUrls.js.map +1 -0
- package/dist/SisccFooter/SisccFooter.js +65 -0
- package/dist/SisccFooter/SisccFooter.js.map +1 -0
- package/dist/Spotlight/Spotlight.js +349 -0
- package/dist/Spotlight/Spotlight.js.map +1 -0
- package/dist/TableFooter/TableFooter.js +42 -0
- package/dist/TableFooter/TableFooter.js.map +1 -0
- package/dist/TableHeader/TableHeader.js +35 -0
- package/dist/TableHeader/TableHeader.js.map +1 -0
- package/dist/TableHtml5/TableHtml5.js +1045 -0
- package/dist/TableHtml5/TableHtml5.js.map +1 -0
- package/dist/TableLayout/TableLayout.js +529 -0
- package/dist/TableLayout/TableLayout.js.map +1 -0
- package/dist/TablePreview/TablePreview.js +209 -0
- package/dist/TablePreview/TablePreview.js.map +1 -0
- package/dist/Tag/Tag.js +23 -0
- package/dist/Tag/Tag.js.map +1 -0
- package/dist/Tooltip/Tooltip.js +54 -0
- package/dist/Tooltip/Tooltip.js.map +1 -0
- package/dist/UserRightForm/UserRightForm.js +545 -0
- package/dist/UserRightForm/UserRightForm.js.map +1 -0
- package/dist/VerticalButton/VerticalButton.js +43 -0
- package/dist/VerticalButton/VerticalButton.js.map +1 -0
- package/dist/chunks/CustomChip-CMYCIorJ.js +181 -0
- package/dist/chunks/CustomChip-CMYCIorJ.js.map +1 -0
- package/dist/chunks/useKeybordEscapeHandler-DRsOrnwc.js +22 -0
- package/dist/chunks/useKeybordEscapeHandler-DRsOrnwc.js.map +1 -0
- package/dist/chunks/utils-BQc_rN44.js +15 -0
- package/dist/chunks/utils-BQc_rN44.js.map +1 -0
- package/dist/chunks/utils-kslX1mzh.js +20 -0
- package/dist/chunks/utils-kslX1mzh.js.map +1 -0
- package/dist/chunks/with-input-DRWNlMdA.js +35 -0
- package/dist/chunks/with-input-DRWNlMdA.js.map +1 -0
- package/dist/chunks/withSpotlight-CYQVWD78.js +903 -0
- package/dist/chunks/withSpotlight-CYQVWD78.js.map +1 -0
- package/{es → dist/theme}/theme.js +147 -149
- package/dist/theme/theme.js.map +1 -0
- package/package.json +55 -199
- package/es/AdvancedFilterDialog/AdvancedFilterDialog.js +0 -583
- package/es/AdvancedFilterDialog/SelectionModeMenu.js +0 -85
- package/es/AdvancedFilterDialog/images/all-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/branch-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/children-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/level-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/single-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-all-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-branch-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-children-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-level-selection.png +0 -0
- package/es/AdvancedFilterDialog/images/small-single-selection.png +0 -0
- package/es/AdvancedFilterDialog/index.js +0 -26
- package/es/Alert/Alert.js +0 -284
- package/es/Alert/index.js +0 -13
- package/es/ApiQueries/ApiQueries.js +0 -107
- package/es/ApiQueries/Query.js +0 -175
- package/es/ApiQueries/index.js +0 -45
- package/es/AuthDialog/index.js +0 -211
- package/es/Breadcrumbs/Breadcrumbs.js +0 -72
- package/es/Breadcrumbs/index.js +0 -30
- package/es/Button/Button.js +0 -63
- package/es/Button/index.js +0 -52
- package/es/ChartsConfig/ChartsConfig.js +0 -470
- package/es/ChartsConfig/Input.js +0 -152
- package/es/ChartsConfig/InputProxy.js +0 -57
- package/es/ChartsConfig/Proxy.js +0 -20
- package/es/ChartsConfig/Title.js +0 -37
- package/es/ChartsConfig/index.js +0 -213
- package/es/ChartsConfig/useAxisOptions.js +0 -9
- package/es/ChartsConfig/useDimensionOptions.js +0 -12
- package/es/ChartsConfig/useFocusOptions.js +0 -22
- package/es/ChartsConfig/utils.js +0 -6
- package/es/Chips/CustomChip.js +0 -139
- package/es/Chips/DeleteChip.js +0 -32
- package/es/Chips/GroupedChips.js +0 -106
- package/es/Chips/index.js +0 -69
- package/es/Chips/styles.js +0 -67
- package/es/Chips/utils.js +0 -21
- package/es/CollapseButtons/CollapseButtons.js +0 -159
- package/es/CollapseButtons/Item.js +0 -146
- package/es/CollapseButtons/Paper.js +0 -58
- package/es/CollapseButtons/index.js +0 -90
- package/es/CollapsibleTree/Collapse.js +0 -98
- package/es/CollapsibleTree/CollapsibleTree.js +0 -229
- package/es/CollapsibleTree/index.js +0 -49
- package/es/Contact/Contact.js +0 -360
- package/es/Contact/Input.js +0 -129
- package/es/Contact/Mode.js +0 -134
- package/es/Contact/index.js +0 -36
- package/es/DataEdit/DataEdit.js +0 -154
- package/es/DataEdit/Input.js +0 -151
- package/es/DataEdit/index.js +0 -70
- package/es/DataFooter/DataFooter.js +0 -178
- package/es/DataFooter/index.js +0 -33
- package/es/DataHeader/DataHeader.js +0 -314
- package/es/DataHeader/Flags.js +0 -42
- package/es/DataHeader/Title.js +0 -27
- package/es/DataHeader/TooltipHeader.js +0 -78
- package/es/DataHeader/index.js +0 -82
- package/es/DataHeader/utils.js +0 -19
- package/es/Dataflow/Dataflow.js +0 -441
- package/es/Dataflow/index.js +0 -62
- package/es/DynamicDrawer/AdvancedSelection.js +0 -503
- package/es/DynamicDrawer/DynamicDrawer.js +0 -418
- package/es/DynamicDrawer/SelectionModesMobile.js +0 -88
- package/es/DynamicDrawer/index.js +0 -44
- package/es/ExpansionPanel/ExpansionPanel.js +0 -151
- package/es/ExpansionPanel/index.js +0 -58
- package/es/ExpansionPanel/styles.js +0 -89
- package/es/HierarchicalFilter/HierarchicalFilter.js +0 -178
- package/es/HierarchicalFilter/index.js +0 -26
- package/es/Icons/AccessibilityFilled.js +0 -12
- package/es/Icons/AccessibilityOutlined.js +0 -12
- package/es/Icons/AccountFilled.js +0 -12
- package/es/Icons/AccountOutlined.js +0 -12
- package/es/Icons/Api.js +0 -12
- package/es/Icons/Asterisk.js +0 -12
- package/es/Icons/Bar.js +0 -12
- package/es/Icons/CopyContent.js +0 -12
- package/es/Icons/Cross.js +0 -12
- package/es/Icons/HSymbol.js +0 -12
- package/es/Icons/Row.js +0 -12
- package/es/Icons/Scatter.js +0 -12
- package/es/Icons/StackedBar.js +0 -12
- package/es/Icons/StackedRow.js +0 -12
- package/es/Icons/Timeline.js +0 -12
- package/es/Icons/VSymbol.js +0 -12
- package/es/Icons/Warning.js +0 -25
- package/es/Icons/index.js +0 -28
- package/es/Input/Input.js +0 -128
- package/es/Input/index.js +0 -26
- package/es/Input/with-input.js +0 -55
- package/es/InputNumber/InputNumber.js +0 -116
- package/es/InputNumber/index.js +0 -23
- package/es/LabelDivider/LabelDivider.js +0 -52
- package/es/LabelDivider/index.js +0 -32
- package/es/Loading/Loading.js +0 -84
- package/es/Loading/index.js +0 -24
- package/es/Logo/Logo.js +0 -55
- package/es/Logo/index.js +0 -18
- package/es/Mode/Mode.js +0 -135
- package/es/Mode/index.js +0 -24
- package/es/NoData/NoData.js +0 -48
- package/es/NoData/index.js +0 -15
- package/es/Pagination/Pagination.js +0 -207
- package/es/Pagination/index.js +0 -31
- package/es/PeriodPicker/PeriodPicker.js +0 -236
- package/es/PeriodPicker/constants.js +0 -39
- package/es/PeriodPicker/index.js +0 -26
- package/es/PeriodPicker/lib.js +0 -206
- package/es/PeriodPicker/styles.js +0 -23
- package/es/ScopeList/Header.js +0 -80
- package/es/ScopeList/Item.js +0 -245
- package/es/ScopeList/ScopeList.js +0 -323
- package/es/ScopeList/Selection.js +0 -129
- package/es/ScopeList/index.deprecated.js +0 -94
- package/es/ScopeList/index.js +0 -94
- package/es/ScopeList/styles.js +0 -143
- package/es/ScopeList/with-scope-list.js +0 -492
- package/es/Select/Select.js +0 -169
- package/es/Select/index.js +0 -33
- package/es/Share/Form.js +0 -164
- package/es/Share/Mode.js +0 -136
- package/es/Share/Share.js +0 -115
- package/es/Share/index.js +0 -64
- package/es/ShortUrls/ShortUrls.js +0 -136
- package/es/ShortUrls/index.js +0 -22
- package/es/SisccFooter/SisccFooter.js +0 -99
- package/es/SisccFooter/index.js +0 -27
- package/es/Spotlight/Fields.js +0 -100
- package/es/Spotlight/Spotlight.js +0 -157
- package/es/Spotlight/index.js +0 -75
- package/es/Spotlight/useSpotlight.js +0 -75
- package/es/Spotlight/useStyles.js +0 -77
- package/es/TableFooter/TableFooter.js +0 -100
- package/es/TableFooter/index.js +0 -33
- package/es/TableHeader/TableHeader.js +0 -63
- package/es/TableHeader/index.js +0 -17
- package/es/TableHtml5/TableHtml5.js +0 -213
- package/es/TableHtml5/cell.js +0 -130
- package/es/TableHtml5/flags.js +0 -138
- package/es/TableHtml5/header.js +0 -177
- package/es/TableHtml5/index.js +0 -62
- package/es/TableHtml5/section.js +0 -243
- package/es/TableHtml5/sectionHeader.js +0 -171
- package/es/TableHtml5/subHeader.js +0 -154
- package/es/TableHtml5/utils.js +0 -23
- package/es/TableLayout/Box.js +0 -123
- package/es/TableLayout/DnDItem.js +0 -142
- package/es/TableLayout/TableLayout.js +0 -427
- package/es/TableLayout/constants.js +0 -11
- package/es/TableLayout/index.js +0 -75
- package/es/TableLayout/lib.js +0 -31
- package/es/TablePreview/TablePreview.js +0 -244
- package/es/TablePreview/index.js +0 -44
- package/es/TablePreview/lib.js +0 -34
- package/es/TablePreview/styles.js +0 -71
- package/es/Tag/Tag.js +0 -44
- package/es/Tag/index.js +0 -30
- package/es/ToggleButton/ToggleButton.js +0 -79
- package/es/ToggleButton/index.js +0 -50
- package/es/Tooltip/Tooltip.js +0 -69
- package/es/Tooltip/index.js +0 -36
- package/es/UserRightForm/Input.js +0 -129
- package/es/UserRightForm/Permissions.js +0 -124
- package/es/UserRightForm/PermsissionsTabs.js +0 -107
- package/es/UserRightForm/UserRightForm.js +0 -445
- package/es/UserRightForm/index.js +0 -60
- package/es/VerticalButton/VerticalButton.js +0 -67
- package/es/VerticalButton/index.js +0 -27
- package/es/VirtualizedTree/Item.js +0 -200
- package/es/VirtualizedTree/VirtualizedTree.js +0 -366
- package/es/VirtualizedTree/index.js +0 -38
- package/es/VirtualizedTree/utils.js +0 -170
- package/es/VirtualizedTree/withExpansionTree.js +0 -65
- package/es/VirtualizedTree/withSpotlight.js +0 -113
- package/es/hooks/useKeybordEscapeHandler.js +0 -22
- package/es/index.js +0 -52
- package/es/utils.js +0 -78
- package/lib/AdvancedFilterDialog/AdvancedFilterDialog.js +0 -658
- package/lib/AdvancedFilterDialog/SelectionModeMenu.js +0 -118
- package/lib/AdvancedFilterDialog/images/all-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/branch-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/children-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/level-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/single-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-all-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-branch-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-children-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-level-selection.png +0 -0
- package/lib/AdvancedFilterDialog/images/small-single-selection.png +0 -0
- package/lib/AdvancedFilterDialog/index.js +0 -16
- package/lib/Alert/Alert.js +0 -325
- package/lib/Alert/index.js +0 -16
- package/lib/ApiQueries/ApiQueries.js +0 -139
- package/lib/ApiQueries/Query.js +0 -205
- package/lib/ApiQueries/index.js +0 -16
- package/lib/AuthDialog/index.js +0 -251
- package/lib/Breadcrumbs/Breadcrumbs.js +0 -107
- package/lib/Breadcrumbs/index.js +0 -16
- package/lib/Button/Button.js +0 -89
- package/lib/Button/index.js +0 -16
- package/lib/ChartsConfig/ChartsConfig.js +0 -533
- package/lib/ChartsConfig/Input.js +0 -187
- package/lib/ChartsConfig/InputProxy.js +0 -80
- package/lib/ChartsConfig/Proxy.js +0 -34
- package/lib/ChartsConfig/Title.js +0 -63
- package/lib/ChartsConfig/index.js +0 -16
- package/lib/ChartsConfig/useAxisOptions.js +0 -18
- package/lib/ChartsConfig/useDimensionOptions.js +0 -22
- package/lib/ChartsConfig/useFocusOptions.js +0 -32
- package/lib/ChartsConfig/utils.js +0 -15
- package/lib/Chips/CustomChip.js +0 -183
- package/lib/Chips/DeleteChip.js +0 -56
- package/lib/Chips/GroupedChips.js +0 -138
- package/lib/Chips/index.js +0 -23
- package/lib/Chips/styles.js +0 -77
- package/lib/Chips/utils.js +0 -30
- package/lib/CollapseButtons/CollapseButtons.js +0 -198
- package/lib/CollapseButtons/Item.js +0 -179
- package/lib/CollapseButtons/Paper.js +0 -82
- package/lib/CollapseButtons/index.js +0 -16
- package/lib/CollapsibleTree/Collapse.js +0 -130
- package/lib/CollapsibleTree/CollapsibleTree.js +0 -288
- package/lib/CollapsibleTree/index.js +0 -16
- package/lib/Contact/Contact.js +0 -409
- package/lib/Contact/Input.js +0 -165
- package/lib/Contact/Mode.js +0 -174
- package/lib/Contact/index.js +0 -16
- package/lib/DataEdit/DataEdit.js +0 -190
- package/lib/DataEdit/Input.js +0 -186
- package/lib/DataEdit/index.js +0 -16
- package/lib/DataFooter/DataFooter.js +0 -219
- package/lib/DataFooter/index.js +0 -16
- package/lib/DataHeader/DataHeader.js +0 -358
- package/lib/DataHeader/Flags.js +0 -61
- package/lib/DataHeader/Title.js +0 -40
- package/lib/DataHeader/TooltipHeader.js +0 -99
- package/lib/DataHeader/index.js +0 -16
- package/lib/DataHeader/utils.js +0 -29
- package/lib/Dataflow/Dataflow.js +0 -505
- package/lib/Dataflow/index.js +0 -16
- package/lib/DynamicDrawer/AdvancedSelection.js +0 -563
- package/lib/DynamicDrawer/DynamicDrawer.js +0 -466
- package/lib/DynamicDrawer/SelectionModesMobile.js +0 -119
- package/lib/DynamicDrawer/index.js +0 -16
- package/lib/ExpansionPanel/ExpansionPanel.js +0 -198
- package/lib/ExpansionPanel/index.js +0 -16
- package/lib/ExpansionPanel/styles.js +0 -103
- package/lib/HierarchicalFilter/HierarchicalFilter.js +0 -208
- package/lib/HierarchicalFilter/index.js +0 -16
- package/lib/Icons/AccessibilityFilled.js +0 -25
- package/lib/Icons/AccessibilityOutlined.js +0 -25
- package/lib/Icons/AccountFilled.js +0 -25
- package/lib/Icons/AccountOutlined.js +0 -25
- package/lib/Icons/Api.js +0 -25
- package/lib/Icons/Asterisk.js +0 -25
- package/lib/Icons/Bar.js +0 -25
- package/lib/Icons/CopyContent.js +0 -25
- package/lib/Icons/Cross.js +0 -25
- package/lib/Icons/HSymbol.js +0 -25
- package/lib/Icons/Row.js +0 -25
- package/lib/Icons/Scatter.js +0 -25
- package/lib/Icons/StackedBar.js +0 -25
- package/lib/Icons/StackedRow.js +0 -25
- package/lib/Icons/Timeline.js +0 -25
- package/lib/Icons/VSymbol.js +0 -25
- package/lib/Icons/Warning.js +0 -45
- package/lib/Icons/index.js +0 -155
- package/lib/Input/Input.js +0 -164
- package/lib/Input/index.js +0 -16
- package/lib/Input/with-input.js +0 -69
- package/lib/InputNumber/InputNumber.js +0 -152
- package/lib/InputNumber/index.js +0 -16
- package/lib/LabelDivider/LabelDivider.js +0 -78
- package/lib/LabelDivider/index.js +0 -16
- package/lib/Loading/Loading.js +0 -110
- package/lib/Loading/index.js +0 -16
- package/lib/Logo/Logo.js +0 -73
- package/lib/Logo/index.js +0 -16
- package/lib/Mode/Mode.js +0 -168
- package/lib/Mode/index.js +0 -16
- package/lib/NoData/NoData.js +0 -69
- package/lib/NoData/index.js +0 -16
- package/lib/Pagination/Pagination.js +0 -250
- package/lib/Pagination/index.js +0 -16
- package/lib/PeriodPicker/PeriodPicker.js +0 -266
- package/lib/PeriodPicker/constants.js +0 -43
- package/lib/PeriodPicker/index.js +0 -16
- package/lib/PeriodPicker/lib.js +0 -222
- package/lib/PeriodPicker/styles.js +0 -32
- package/lib/ScopeList/Header.js +0 -110
- package/lib/ScopeList/Item.js +0 -284
- package/lib/ScopeList/ScopeList.js +0 -377
- package/lib/ScopeList/Selection.js +0 -170
- package/lib/ScopeList/index.deprecated.js +0 -16
- package/lib/ScopeList/index.js +0 -16
- package/lib/ScopeList/styles.js +0 -153
- package/lib/ScopeList/with-scope-list.js +0 -507
- package/lib/Select/Select.js +0 -201
- package/lib/Select/index.js +0 -16
- package/lib/Share/Form.js +0 -201
- package/lib/Share/Mode.js +0 -176
- package/lib/Share/Share.js +0 -148
- package/lib/Share/index.js +0 -16
- package/lib/ShortUrls/ShortUrls.js +0 -181
- package/lib/ShortUrls/index.js +0 -16
- package/lib/SisccFooter/SisccFooter.js +0 -131
- package/lib/SisccFooter/index.js +0 -16
- package/lib/Spotlight/Fields.js +0 -132
- package/lib/Spotlight/Spotlight.js +0 -202
- package/lib/Spotlight/index.js +0 -16
- package/lib/Spotlight/useSpotlight.js +0 -85
- package/lib/Spotlight/useStyles.js +0 -91
- package/lib/TableFooter/TableFooter.js +0 -129
- package/lib/TableFooter/index.js +0 -16
- package/lib/TableHeader/TableHeader.js +0 -89
- package/lib/TableHeader/index.js +0 -16
- package/lib/TableHtml5/TableHtml5.js +0 -249
- package/lib/TableHtml5/cell.js +0 -164
- package/lib/TableHtml5/flags.js +0 -174
- package/lib/TableHtml5/header.js +0 -215
- package/lib/TableHtml5/index.js +0 -23
- package/lib/TableHtml5/section.js +0 -289
- package/lib/TableHtml5/sectionHeader.js +0 -212
- package/lib/TableHtml5/subHeader.js +0 -191
- package/lib/TableHtml5/utils.js +0 -32
- package/lib/TableLayout/Box.js +0 -159
- package/lib/TableLayout/DnDItem.js +0 -177
- package/lib/TableLayout/TableLayout.js +0 -487
- package/lib/TableLayout/constants.js +0 -14
- package/lib/TableLayout/index.js +0 -16
- package/lib/TableLayout/lib.js +0 -40
- package/lib/TablePreview/TablePreview.js +0 -279
- package/lib/TablePreview/index.js +0 -16
- package/lib/TablePreview/lib.js +0 -48
- package/lib/TablePreview/styles.js +0 -81
- package/lib/Tag/Tag.js +0 -67
- package/lib/Tag/index.js +0 -16
- package/lib/ToggleButton/ToggleButton.js +0 -111
- package/lib/ToggleButton/index.js +0 -16
- package/lib/Tooltip/Tooltip.js +0 -95
- package/lib/Tooltip/index.js +0 -16
- package/lib/UserRightForm/Input.js +0 -165
- package/lib/UserRightForm/Permissions.js +0 -159
- package/lib/UserRightForm/PermsissionsTabs.js +0 -145
- package/lib/UserRightForm/UserRightForm.js +0 -484
- package/lib/UserRightForm/index.js +0 -16
- package/lib/VerticalButton/VerticalButton.js +0 -88
- package/lib/VerticalButton/index.js +0 -16
- package/lib/VirtualizedTree/Item.js +0 -244
- package/lib/VirtualizedTree/VirtualizedTree.js +0 -402
- package/lib/VirtualizedTree/index.js +0 -16
- package/lib/VirtualizedTree/utils.js +0 -179
- package/lib/VirtualizedTree/withExpansionTree.js +0 -80
- package/lib/VirtualizedTree/withSpotlight.js +0 -129
- package/lib/hooks/useKeybordEscapeHandler.js +0 -28
- package/lib/index.js +0 -460
- package/lib/theme.js +0 -437
- package/lib/utils.js +0 -96
- package/umd/@sis-cc/dotstatsuite-visions.js +0 -82495
- package/umd/@sis-cc/dotstatsuite-visions.min.js +0 -222
- package/umd/@sis-cc/dotstatsuite-visions.min.js.map +0 -1
- package/umd/branch-selection.54dd3bc1.png +0 -0
- package/umd/children-selection.20d94242.png +0 -0
- package/umd/level-selection.df116629.png +0 -0
- package/umd/single-selection.a729a6c8.png +0 -0
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
var _defaultOutputValues;
|
|
2
|
-
|
|
3
|
-
export var YEARS = 'years';
|
|
4
|
-
export var SEMESTERS = 'semesters';
|
|
5
|
-
export var QUARTERS = 'quarters';
|
|
6
|
-
export var MONTHS = 'months';
|
|
7
|
-
export var WEEKS = 'weeks';
|
|
8
|
-
export var DAYS = 'days';
|
|
9
|
-
export var FULL_HOURS = 'full_hours';
|
|
10
|
-
export var HOURS = 'hours';
|
|
11
|
-
export var MINUTES = 'minutes';
|
|
12
|
-
export var frequencies = [YEARS, MONTHS, DAYS, HOURS, MINUTES, FULL_HOURS, QUARTERS, WEEKS, SEMESTERS];
|
|
13
|
-
|
|
14
|
-
export var YEAR = 'year';
|
|
15
|
-
export var SEMESTER = 'semester';
|
|
16
|
-
export var QUARTER = 'quarter';
|
|
17
|
-
export var MONTH = 'month';
|
|
18
|
-
export var WEEK = 'week';
|
|
19
|
-
export var DAY = 'day';
|
|
20
|
-
export var FULL_HOUR = 'full_hour';
|
|
21
|
-
export var HOUR = 'hour';
|
|
22
|
-
export var MINUTE = 'minute';
|
|
23
|
-
|
|
24
|
-
export var layoutFrequencies = {
|
|
25
|
-
S: [[{ values: YEARS, id: YEAR }, { values: SEMESTERS, id: SEMESTER }]],
|
|
26
|
-
A: [[{ values: YEARS, id: YEAR }]],
|
|
27
|
-
Q: [[{ values: YEARS, id: YEAR }, { values: QUARTERS, id: QUARTER }]],
|
|
28
|
-
M: [[{ values: YEARS, id: YEAR }, { values: MONTHS, id: MONTH }]],
|
|
29
|
-
W: [[{ values: YEARS, id: YEAR }, { values: WEEKS, id: WEEK }]],
|
|
30
|
-
B: [[{ values: YEARS, id: YEAR }, { values: WEEKS, id: WEEK }]],
|
|
31
|
-
D: [[{ values: YEARS, id: YEAR }, { values: MONTHS, id: MONTH }, { values: DAYS, id: DAY }]],
|
|
32
|
-
H: [[{ values: YEARS, id: YEAR }, { values: MONTHS, id: MONTH }, { values: DAYS, id: DAY }], [{ values: FULL_HOURS, id: FULL_HOUR }]],
|
|
33
|
-
N: [[{ values: YEARS, id: YEAR }, { values: MONTHS, id: MONTH }, { values: DAYS, id: DAY }], [{ values: HOURS, id: HOUR }, { values: MINUTES, id: MINUTE }]]
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export var defaultOutputValues = (_defaultOutputValues = {}, _defaultOutputValues[YEARS] = '----', _defaultOutputValues[SEMESTERS] = '-', _defaultOutputValues[QUARTERS] = '-', _defaultOutputValues[MONTHS] = '--', _defaultOutputValues[WEEKS] = '--', _defaultOutputValues[DAYS] = '--', _defaultOutputValues[FULL_HOURS] = '--:00', _defaultOutputValues[HOURS] = '--', _defaultOutputValues[MINUTES] = '--', _defaultOutputValues);
|
|
37
|
-
|
|
38
|
-
export var formatOrder = [YEAR, MONTH, DAY, HOUR, MINUTE, FULL_HOUR, QUARTER, WEEK, SEMESTER];
|
|
39
|
-
export var defaultfreq = 'A';
|
package/es/PeriodPicker/index.js
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* PeriodPicker allow to choice a period regarding a frequency
|
|
3
|
-
*
|
|
4
|
-
* @memberOf VISIONS
|
|
5
|
-
* @name PeriodPicker
|
|
6
|
-
* @tag component
|
|
7
|
-
* @api public
|
|
8
|
-
* @props
|
|
9
|
-
* Period.propTypes = {
|
|
10
|
-
* defaultFrequency: PropTypes.string,
|
|
11
|
-
* availableFrequencies: PropTypes.array,
|
|
12
|
-
* boundaries: PropTypes.array,
|
|
13
|
-
* changePeriod: PropTypes.func,
|
|
14
|
-
* changeFrequency: PropTypes.func,
|
|
15
|
-
* period: PropTypes.array,
|
|
16
|
-
* labels: PropTypes.object,
|
|
17
|
-
* periodDisabled: PropTypes.bool,
|
|
18
|
-
* frequencyDisabled: PropTypes.bool,
|
|
19
|
-
* };
|
|
20
|
-
* @theme
|
|
21
|
-
* // Select (drop down list, See Select Component)
|
|
22
|
-
* // no custom theme there
|
|
23
|
-
* @demoReady
|
|
24
|
-
*/
|
|
25
|
-
|
|
26
|
-
export { default } from './PeriodPicker';
|
package/es/PeriodPicker/lib.js
DELETED
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
var _numeralFormat;
|
|
2
|
-
|
|
3
|
-
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; };
|
|
4
|
-
|
|
5
|
-
import * as R from 'ramda';
|
|
6
|
-
import { addDays, addMonths, addQuarters, addWeeks, closestTo, endOfISOWeek, endOfISOWeekYear, format, getDaysInMonth, getISOWeeksInYear, getMonth, getYear, isWithinInterval, parseISO, startOfISOWeek, startOfISOWeekYear, startOfYear } from 'date-fns';
|
|
7
|
-
import numeral from 'numeral';
|
|
8
|
-
import { YEAR, SEMESTER, QUARTER, MONTH, WEEK, DAY, HOUR, FULL_HOUR, MINUTE, YEARS, SEMESTERS, QUARTERS, MONTHS, WEEKS, DAYS, FULL_HOURS, HOURS, MINUTES, layoutFrequencies, frequencies, defaultOutputValues, formatOrder, defaultfreq } from './constants';
|
|
9
|
-
|
|
10
|
-
var isWeekInPreviousYear = function isWeekInPreviousYear(date) {
|
|
11
|
-
var startIsoWeek = startOfISOWeek(date);
|
|
12
|
-
return R.pipe(R.times(function (n) {
|
|
13
|
-
return getYear(addDays(startIsoWeek, n));
|
|
14
|
-
}), R.uniq, R.length, R.equals(1))(4);
|
|
15
|
-
};
|
|
16
|
-
var supportedFrequenciesKey = R.keys(layoutFrequencies);
|
|
17
|
-
var dec = R.ifElse(R.gte(0), R.identity, R.dec);
|
|
18
|
-
var addSemesters = function addSemesters() {
|
|
19
|
-
var semester = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 0;
|
|
20
|
-
return function (date) {
|
|
21
|
-
return addMonths(date, R.multiply(6)(dec(Number(semester))));
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
var getSemesterValue = R.ifElse(R.pipe(Number, R.inc, R.gte(6)), R.always(1), R.always(2));
|
|
25
|
-
var getFormat = function getFormat(value) {
|
|
26
|
-
return numeral(value).format('[0]0');
|
|
27
|
-
};
|
|
28
|
-
var getHour = R.pipe(R.pick([HOUR, FULL_HOUR]), R.values, R.head);
|
|
29
|
-
var getRanges = function getRanges() {
|
|
30
|
-
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [0];
|
|
31
|
-
return R.range(R.head(value), R.inc(R.last(value)));
|
|
32
|
-
};
|
|
33
|
-
var setRange = function setRange(range) {
|
|
34
|
-
return function (prop) {
|
|
35
|
-
return R.pipe(getRanges, R.prepend(R.prop(prop)(defaultOutputValues)))(R.prop(prop)(range));
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
// export const getDestructuringDate = date =>
|
|
39
|
-
// R.pipe(
|
|
40
|
-
// date => format(date, 'yyyy M d H m HH Q I [S]'),
|
|
41
|
-
// R.replace(/S/, R.pipe(date => getMonth(date), getSemesterValue)(date)),
|
|
42
|
-
// R.split(' '),
|
|
43
|
-
// R.ifElse(v => R.equals(R.length(formatOrder), R.length(v)), R.map(Number), R.empty),
|
|
44
|
-
// )(date);
|
|
45
|
-
export var getDestructuringDate = function getDestructuringDate(date) {
|
|
46
|
-
if (!date || isNaN(new Date(date))) return [];
|
|
47
|
-
var validDate = typeof date === 'string' ? parseISO(date) : date;
|
|
48
|
-
return R.pipe(function (d) {
|
|
49
|
-
var semester = getSemesterValue(getMonth(d));
|
|
50
|
-
var formatted = format(d, 'yyyy M d H m HH Q I');
|
|
51
|
-
return formatted + ' ' + semester;
|
|
52
|
-
}, R.split(' '), R.ifElse(function (v) {
|
|
53
|
-
return R.equals(R.length(formatOrder), R.length(v));
|
|
54
|
-
}, R.map(Number), R.empty))(validDate);
|
|
55
|
-
};
|
|
56
|
-
|
|
57
|
-
var updateLimit = function updateLimit(value, isSamePeriod, defaultValue) {
|
|
58
|
-
if (isSamePeriod) return value;
|
|
59
|
-
return defaultValue;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
export var getRange = R.curry(function (boundaries, date) {
|
|
63
|
-
var _ref4;
|
|
64
|
-
|
|
65
|
-
if (R.isNil(R.head(boundaries)) || R.isNil(R.last(boundaries))) {
|
|
66
|
-
var _ref;
|
|
67
|
-
|
|
68
|
-
return _ref = {}, _ref[YEARS] = [NaN], _ref[HOURS] = [NaN], _ref[FULL_HOURS] = [NaN], _ref[MONTHS] = [NaN], _ref[WEEKS] = [NaN], _ref[SEMESTERS] = [NaN], _ref[QUARTERS] = [NaN], _ref[DAYS] = [NaN], _ref[MINUTES] = [NaN], _ref;
|
|
69
|
-
}
|
|
70
|
-
var destructuredDate = getDestructuringDate(date);
|
|
71
|
-
var destructuredBoundaries = R.map(getDestructuringDate, boundaries);
|
|
72
|
-
|
|
73
|
-
var _R$transpose = R.transpose(destructuredBoundaries),
|
|
74
|
-
years = _R$transpose[0],
|
|
75
|
-
months = _R$transpose[1],
|
|
76
|
-
days = _R$transpose[2],
|
|
77
|
-
hours = _R$transpose[3],
|
|
78
|
-
minutes = _R$transpose[4],
|
|
79
|
-
quarters = _R$transpose[6],
|
|
80
|
-
weeks = _R$transpose[7],
|
|
81
|
-
semesters = _R$transpose[8];
|
|
82
|
-
|
|
83
|
-
if (R.isNil(date)) {
|
|
84
|
-
var _ref2;
|
|
85
|
-
|
|
86
|
-
return _ref2 = {}, _ref2[YEARS] = years, _ref2[HOURS] = [NaN], _ref2[FULL_HOURS] = [NaN], _ref2[MONTHS] = [NaN], _ref2[WEEKS] = [NaN], _ref2[SEMESTERS] = [NaN], _ref2[QUARTERS] = [NaN], _ref2[DAYS] = [NaN], _ref2[MINUTES] = [NaN], _ref2;
|
|
87
|
-
}
|
|
88
|
-
var listEqualsValueFromDate = R.pipe(R.transpose, R.reduce(function (acc, _ref3) {
|
|
89
|
-
var _extends2;
|
|
90
|
-
|
|
91
|
-
var type = _ref3[0],
|
|
92
|
-
date = _ref3[1],
|
|
93
|
-
start = _ref3[2],
|
|
94
|
-
end = _ref3[3];
|
|
95
|
-
|
|
96
|
-
return _extends({}, acc, (_extends2 = {}, _extends2[type] = [R.equals(date, start), R.equals(date, end)], _extends2));
|
|
97
|
-
}, {}))([frequencies, destructuredDate].concat(destructuredBoundaries));
|
|
98
|
-
|
|
99
|
-
var equalsYears = R.prop('years')(listEqualsValueFromDate);
|
|
100
|
-
var equalsMonths = R.prop('months')(listEqualsValueFromDate);
|
|
101
|
-
var equalsDays = R.prop('days')(listEqualsValueFromDate);
|
|
102
|
-
|
|
103
|
-
var hoursRange = R.addIndex(R.map)(function (value, index) {
|
|
104
|
-
var isSamePeriod = R.all(R.identity)([R.nth(index, equalsDays), R.nth(index, equalsMonths), R.nth(index, equalsYears)]);
|
|
105
|
-
return updateLimit(R.nth(index, hours), isSamePeriod, value);
|
|
106
|
-
})([0, 23]);
|
|
107
|
-
|
|
108
|
-
return _ref4 = {}, _ref4[YEARS] = years, _ref4[HOURS] = hoursRange, _ref4[FULL_HOURS] = hoursRange, _ref4[MONTHS] = R.addIndex(R.map)(function (value, index) {
|
|
109
|
-
return updateLimit(R.nth(index)(months), R.nth(index, equalsYears), value);
|
|
110
|
-
})([1, 12]), _ref4[WEEKS] = R.addIndex(R.map)(function (value, index) {
|
|
111
|
-
return updateLimit(R.nth(index)(weeks), R.nth(index, equalsYears), value);
|
|
112
|
-
})([1, getISOWeeksInYear(date)]), _ref4[SEMESTERS] = R.addIndex(R.map)(function (value, index) {
|
|
113
|
-
return updateLimit(R.nth(index)(semesters), R.nth(index, equalsYears), value);
|
|
114
|
-
})([1, 2]), _ref4[QUARTERS] = R.addIndex(R.map)(function (value, index) {
|
|
115
|
-
return updateLimit(R.nth(index)(quarters), R.nth(index, equalsYears), value);
|
|
116
|
-
})([1, 4]), _ref4[DAYS] = R.addIndex(R.map)(function (value, index) {
|
|
117
|
-
var isSamePeriod = R.and(R.nth(index, equalsMonths), R.nth(index, equalsYears));
|
|
118
|
-
return updateLimit(R.nth(index)(days), isSamePeriod, value);
|
|
119
|
-
})([1, getDaysInMonth(date)]), _ref4[MINUTES] = R.addIndex(R.map)(function (value, index) {
|
|
120
|
-
var isSamePeriod = R.all(R.identity)([R.nth(index, R.prop('hours')(listEqualsValueFromDate)), R.nth(index, equalsDays), R.nth(index, equalsMonths), R.nth(index, equalsYears)]);
|
|
121
|
-
return updateLimit(R.nth(index)(minutes), isSamePeriod, value);
|
|
122
|
-
})([0, 59]), _ref4;
|
|
123
|
-
});
|
|
124
|
-
|
|
125
|
-
export var getAjustedDate = function getAjustedDate(frequency) {
|
|
126
|
-
return R.when(R.always(R.or(R.equals('W', frequency), R.equals('B', frequency))), R.ifElse(isWeekInPreviousYear, startOfISOWeek, endOfISOWeek));
|
|
127
|
-
};
|
|
128
|
-
|
|
129
|
-
export var isValidNumber = R.both(R.is(Number), R.complement(R.equals(NaN)));
|
|
130
|
-
export var getDefaultFrequency = function getDefaultFrequency(_ref5) {
|
|
131
|
-
var defaultFrequency = _ref5.defaultFrequency,
|
|
132
|
-
frequencies = _ref5.frequencies;
|
|
133
|
-
|
|
134
|
-
var isNotIncludes = R.complement(R.and)(R.includes(defaultFrequency)(frequencies), R.includes(defaultFrequency)(supportedFrequenciesKey));
|
|
135
|
-
return R.or(R.either(R.isEmpty, R.isNil)(defaultFrequency), isNotIncludes) ? R.head(frequencies) : defaultFrequency;
|
|
136
|
-
};
|
|
137
|
-
|
|
138
|
-
export var getFrequencyOptions = function getFrequencyOptions(frequencyoptions, frequencyLabels) {
|
|
139
|
-
var availableFrequencies = R.or(R.isEmpty(frequencyoptions), R.isNil(frequencyoptions)) ? [defaultfreq] : R.filter(function (freq) {
|
|
140
|
-
return R.includes(freq, supportedFrequenciesKey);
|
|
141
|
-
})(frequencyoptions);
|
|
142
|
-
var options = R.map(function (option) {
|
|
143
|
-
return { value: option, label: R.prop(option, frequencyLabels) };
|
|
144
|
-
})(availableFrequencies);
|
|
145
|
-
if (R.isEmpty(options)) return [{ value: 'A', label: R.propOr('Annual', 'A', frequencyLabels) }];
|
|
146
|
-
return options;
|
|
147
|
-
};
|
|
148
|
-
|
|
149
|
-
export var getLayout = function getLayout(type, range) {
|
|
150
|
-
var layoutPeriods = R.propOr([], type)(layoutFrequencies);
|
|
151
|
-
var hasYear = R.complement(R.isEmpty)(getRanges(range.years));
|
|
152
|
-
return R.map(R.reduce(function (acc, period) {
|
|
153
|
-
if (hasYear) return R.append(R.evolve({ values: setRange(range) }, period), acc);
|
|
154
|
-
return R.append(R.evolve({ values: R.pipe(R.flip(R.prop)(defaultOutputValues), R.flip(R.append)([])) }, period), acc);
|
|
155
|
-
}, []))(layoutPeriods);
|
|
156
|
-
};
|
|
157
|
-
|
|
158
|
-
export var getPeriodValue = R.pipe(R.zip(formatOrder), R.fromPairs);
|
|
159
|
-
|
|
160
|
-
export var getDate = function getDate(type, dateValue, value, isEnd) {
|
|
161
|
-
if (R.isNil(value)) return undefined;
|
|
162
|
-
var dateValueUpdated = R.pipe(R.ifElse(R.pipe(getHour, R.isNil), R.identity, R.set(R.lensProp('hour'), getHour(value))), R.mergeRight(dateValue), R.over(R.lensProp('month'), R.defaultTo(isEnd ? 12 : 1)), R.over(R.lensProp('day'), R.defaultTo(isEnd ? 31 : 1)), R.over(R.lensProp('hour'), R.defaultTo(isEnd ? 23 : 0)), R.over(R.lensProp('minute'), R.defaultTo(isEnd ? 59 : 0)))(value);
|
|
163
|
-
var year = dateValueUpdated.year,
|
|
164
|
-
month = dateValueUpdated.month,
|
|
165
|
-
day = dateValueUpdated.day,
|
|
166
|
-
hour = dateValueUpdated.hour,
|
|
167
|
-
minute = dateValueUpdated.minute;
|
|
168
|
-
|
|
169
|
-
var date = new Date(year, R.dec(month), day, hour, minute);
|
|
170
|
-
if (R.equals(type, 'Q')) {
|
|
171
|
-
if (R.isEmpty(dateValue) && isEnd) {
|
|
172
|
-
return R.pipe(startOfYear, R.flip(addQuarters)(3))(date);
|
|
173
|
-
}
|
|
174
|
-
return R.pipe(startOfYear, function (date) {
|
|
175
|
-
return addQuarters(date, dec(R.propOr(0, QUARTER)(dateValueUpdated)));
|
|
176
|
-
})(date);
|
|
177
|
-
}
|
|
178
|
-
if (R.equals(type, 'S')) {
|
|
179
|
-
if (R.isEmpty(dateValue) && isEnd) return R.pipe(startOfYear, addSemesters(2))(date);
|
|
180
|
-
return R.pipe(startOfYear, addSemesters(R.prop(SEMESTER)(dateValueUpdated)))(date);
|
|
181
|
-
}
|
|
182
|
-
if (R.or(R.equals(type, 'W'), R.equals(type, 'B'))) {
|
|
183
|
-
var weekDate = new Date(year, 6, 1, 0, 0, 0, 0);
|
|
184
|
-
if (R.isEmpty(dateValue)) {
|
|
185
|
-
return R.pipe(R.ifElse(R.always(isEnd), endOfISOWeekYear, startOfISOWeekYear), getAjustedDate(type))(weekDate);
|
|
186
|
-
}
|
|
187
|
-
var weeksInYear = R.dec(getISOWeeksInYear(weekDate));
|
|
188
|
-
var nbWeeks = R.pipe(R.propOr(0, WEEK), R.dec, R.ifElse(R.lt(weeksInYear), R.always(weeksInYear), R.identity))(dateValueUpdated);
|
|
189
|
-
return R.pipe(startOfISOWeekYear, function (date) {
|
|
190
|
-
return addWeeks(date, nbWeeks);
|
|
191
|
-
}, R.of, R.map(getAjustedDate(type)), R.head)(weekDate);
|
|
192
|
-
}
|
|
193
|
-
return date;
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
export var getDateInTheRange = function getDateInTheRange(boundaries) {
|
|
197
|
-
return function (date) {
|
|
198
|
-
if (R.isNil(date)) return date;
|
|
199
|
-
var start = boundaries[0],
|
|
200
|
-
end = boundaries[1];
|
|
201
|
-
|
|
202
|
-
return isWithinInterval(date, { start: start, end: end }) ? date : closestTo(date, boundaries);
|
|
203
|
-
};
|
|
204
|
-
};
|
|
205
|
-
|
|
206
|
-
export var numeralFormat = (_numeralFormat = {}, _numeralFormat[YEAR] = R.identity, _numeralFormat[SEMESTER] = R.identity, _numeralFormat[QUARTER] = R.identity, _numeralFormat[MONTH] = getFormat, _numeralFormat[WEEK] = getFormat, _numeralFormat[DAY] = getFormat, _numeralFormat[FULL_HOUR] = R.converge(R.concat, [getFormat, R.always(':00')]), _numeralFormat[HOUR] = getFormat, _numeralFormat[MINUTE] = getFormat, _numeralFormat);
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import makeStyles from '@mui/styles/makeStyles';
|
|
2
|
-
|
|
3
|
-
export default makeStyles(function (theme) {
|
|
4
|
-
return {
|
|
5
|
-
headerContainer: {
|
|
6
|
-
marginBottom: theme.spacing(0.5)
|
|
7
|
-
},
|
|
8
|
-
sideLabel: {
|
|
9
|
-
display: 'flex',
|
|
10
|
-
alignItems: 'center',
|
|
11
|
-
justifyContent: 'flex-start',
|
|
12
|
-
paddingRight: theme.spacing(0.5),
|
|
13
|
-
paddingBottom: theme.spacing(0.5)
|
|
14
|
-
},
|
|
15
|
-
headerLabel: {
|
|
16
|
-
display: 'flex',
|
|
17
|
-
justifyContent: 'center'
|
|
18
|
-
},
|
|
19
|
-
selectContainer: {
|
|
20
|
-
marginTop: theme.spacing(1)
|
|
21
|
-
}
|
|
22
|
-
};
|
|
23
|
-
});
|
package/es/ScopeList/Header.js
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import React, { Fragment } from 'react';
|
|
2
|
-
import * as R from 'ramda';
|
|
3
|
-
import PropTypes from 'prop-types';
|
|
4
|
-
import Typography from '@mui/material/Typography';
|
|
5
|
-
import NavigateBefore from '@mui/icons-material/NavigateBefore';
|
|
6
|
-
import NavigateNext from '@mui/icons-material/NavigateNext';
|
|
7
|
-
import cx from 'classnames';
|
|
8
|
-
import { Tooltip } from '../';
|
|
9
|
-
|
|
10
|
-
var Header = function Header(_ref) {
|
|
11
|
-
var classes = _ref.classes,
|
|
12
|
-
changeList = _ref.changeList,
|
|
13
|
-
testId = _ref.testId,
|
|
14
|
-
isRtl = _ref.isRtl,
|
|
15
|
-
items = _ref.items,
|
|
16
|
-
labels = _ref.labels,
|
|
17
|
-
labelRenderer = _ref.labelRenderer;
|
|
18
|
-
return React.createElement(
|
|
19
|
-
Typography,
|
|
20
|
-
{ className: classes.spaceHeader },
|
|
21
|
-
R.addIndex(R.map)(function (headerProps, index) {
|
|
22
|
-
var _cx;
|
|
23
|
-
|
|
24
|
-
var id = headerProps.id,
|
|
25
|
-
parentId = headerProps.parentId,
|
|
26
|
-
isSelected = headerProps.isSelected,
|
|
27
|
-
_isIcon = headerProps._isIcon;
|
|
28
|
-
|
|
29
|
-
if (_isIcon)
|
|
30
|
-
// icon between labels
|
|
31
|
-
return React.createElement(
|
|
32
|
-
Fragment,
|
|
33
|
-
{ key: 'scopeList-' + index },
|
|
34
|
-
isRtl ? React.createElement(NavigateBefore, { className: cx(classes.svg, classes.arrowHeader) }) : React.createElement(NavigateNext, { className: cx(classes.svg, classes.arrowHeader) })
|
|
35
|
-
);
|
|
36
|
-
return React.createElement(
|
|
37
|
-
Tooltip,
|
|
38
|
-
{
|
|
39
|
-
key: id,
|
|
40
|
-
placement: 'top',
|
|
41
|
-
variant: 'light',
|
|
42
|
-
title: R.propOr('', 'backHelper')(labels)
|
|
43
|
-
},
|
|
44
|
-
React.createElement(
|
|
45
|
-
Typography,
|
|
46
|
-
{
|
|
47
|
-
'aria-label': R.propOr('', 'backHelper')(labels) + ': ' + labelRenderer(headerProps),
|
|
48
|
-
tabIndex: 0,
|
|
49
|
-
component: 'span',
|
|
50
|
-
'data-testid': testId + '_nav_' + id,
|
|
51
|
-
color: 'primary',
|
|
52
|
-
variant: 'body2',
|
|
53
|
-
className: cx(classes.headerItem, classes.containerItem, (_cx = {}, _cx[classes.listItemSelected] = isSelected, _cx)),
|
|
54
|
-
onClick: function onClick() {
|
|
55
|
-
return changeList(parentId);
|
|
56
|
-
},
|
|
57
|
-
onKeyPress: function onKeyPress(e) {
|
|
58
|
-
if (e.key === 'Enter') {
|
|
59
|
-
changeList(parentId);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
},
|
|
63
|
-
labelRenderer(headerProps)
|
|
64
|
-
)
|
|
65
|
-
);
|
|
66
|
-
})(R.pipe(R.intersperse({ _isIcon: true }), R.when(R.always(isRtl), R.reverse))(items))
|
|
67
|
-
);
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
Header.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
71
|
-
classes: PropTypes.object,
|
|
72
|
-
changeList: PropTypes.func,
|
|
73
|
-
isRtl: PropTypes.bool,
|
|
74
|
-
testId: PropTypes.string,
|
|
75
|
-
items: PropTypes.array,
|
|
76
|
-
labels: PropTypes.object,
|
|
77
|
-
labelRenderer: PropTypes.func
|
|
78
|
-
} : {};
|
|
79
|
-
|
|
80
|
-
export default Header;
|
package/es/ScopeList/Item.js
DELETED
|
@@ -1,245 +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 * as R from 'ramda';
|
|
5
|
-
import PropTypes from 'prop-types';
|
|
6
|
-
import ListItem from '@mui/material/ListItem';
|
|
7
|
-
import Typography from '@mui/material/Typography';
|
|
8
|
-
import ListItemSecondaryAction from '@mui/material/ListItemSecondaryAction';
|
|
9
|
-
import ListItemText from '@mui/material/ListItemText';
|
|
10
|
-
import IconButton from '@mui/material/IconButton';
|
|
11
|
-
import SvgIcon from '@mui/material/SvgIcon';
|
|
12
|
-
import cx from 'classnames';
|
|
13
|
-
import { Tooltip } from '../';
|
|
14
|
-
|
|
15
|
-
var checkBoxPath = 'M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z';
|
|
16
|
-
var checkPath = 'M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z';
|
|
17
|
-
|
|
18
|
-
// ugly hack virtualize requires
|
|
19
|
-
var containerStyles = {
|
|
20
|
-
top: R.add(16),
|
|
21
|
-
left: R.dissoc('left'),
|
|
22
|
-
width: R.always(36)
|
|
23
|
-
// height: R.always(height), manage the size of the arrow box
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
var getPathLabel = function getPathLabel(labelRenderer) {
|
|
27
|
-
return R.pipe(R.map(labelRenderer), R.ifElse(R.pipe(R.length, R.flip(R.gte)(2)), R.pipe(R.last, R.concat('... > ')), R.last));
|
|
28
|
-
};
|
|
29
|
-
|
|
30
|
-
var Item = function Item(_ref) {
|
|
31
|
-
var _cx, _cx2, _cx3, _cx4, _cx5, _cx6;
|
|
32
|
-
|
|
33
|
-
var classes = _ref.classes,
|
|
34
|
-
id = _ref.id,
|
|
35
|
-
label = _ref.label,
|
|
36
|
-
_ref$description = _ref.description,
|
|
37
|
-
description = _ref$description === undefined ? '' : _ref$description,
|
|
38
|
-
_ref$nodePath = _ref.nodePath,
|
|
39
|
-
nodePath = _ref$nodePath === undefined ? [] : _ref$nodePath,
|
|
40
|
-
isSelected = _ref.isSelected,
|
|
41
|
-
isDisabled = _ref.isDisabled,
|
|
42
|
-
changeList = _ref.changeList,
|
|
43
|
-
changeListDescription = _ref.changeListDescription,
|
|
44
|
-
ariaLabel = _ref.ariaLabel,
|
|
45
|
-
NavigateIcon = _ref.NavigateIcon,
|
|
46
|
-
changeSelection = _ref.changeSelection,
|
|
47
|
-
changeMouseSelection = _ref.changeMouseSelection,
|
|
48
|
-
hasChild = _ref.hasChild,
|
|
49
|
-
count = _ref.count,
|
|
50
|
-
svgPath = _ref.svgPath,
|
|
51
|
-
testId = _ref.testId,
|
|
52
|
-
style = _ref.style,
|
|
53
|
-
isRtl = _ref.isRtl,
|
|
54
|
-
accessibility = _ref.accessibility,
|
|
55
|
-
index = _ref.index,
|
|
56
|
-
labelRenderer = _ref.labelRenderer,
|
|
57
|
-
HTMLRenderer = _ref.HTMLRenderer,
|
|
58
|
-
hierarchicalId = _ref.hierarchicalId,
|
|
59
|
-
labels = _ref.labels,
|
|
60
|
-
_ref$depth = _ref.depth,
|
|
61
|
-
depth = _ref$depth === undefined ? 0 : _ref$depth;
|
|
62
|
-
|
|
63
|
-
var _React$useState = React.useState(false),
|
|
64
|
-
isTooltipShown = _React$useState[0],
|
|
65
|
-
setIsTooltipShown = _React$useState[1];
|
|
66
|
-
|
|
67
|
-
return React.createElement(
|
|
68
|
-
ListItem,
|
|
69
|
-
{
|
|
70
|
-
disableGutters: true,
|
|
71
|
-
classes: { disabled: classes.disabled },
|
|
72
|
-
className: cx(classes.listItemContainer, (_cx = {}, _cx[classes.disableSecondaryAction] = R.not(hasChild), _cx)),
|
|
73
|
-
disabled: isDisabled,
|
|
74
|
-
onClick: isDisabled ? null : changeSelection(id, index),
|
|
75
|
-
onMouseDown: R.is(Function, changeMouseSelection) && R.not(isDisabled) && !isTooltipShown ? changeMouseSelection(index, { isDown: true }) : null,
|
|
76
|
-
onMouseUp: R.is(Function, changeMouseSelection) && R.not(isDisabled) && !isTooltipShown ? changeMouseSelection(null, { isUp: true }) : null,
|
|
77
|
-
onMouseOver: R.is(Function, changeMouseSelection) && R.not(isDisabled) && !isTooltipShown ? changeMouseSelection(index, { isOver: true }) : null,
|
|
78
|
-
onKeyPress: function onKeyPress(e) {
|
|
79
|
-
if (e.key === 'Enter' && R.not(isDisabled)) {
|
|
80
|
-
changeSelection(id, index)(e);
|
|
81
|
-
}
|
|
82
|
-
},
|
|
83
|
-
tabIndex: -1,
|
|
84
|
-
style: style // virtual
|
|
85
|
-
},
|
|
86
|
-
React.createElement(ListItemText, {
|
|
87
|
-
tabIndex: 0,
|
|
88
|
-
'aria-label': isDisabled ? R.propOr('', 'disableItemLabel')(labels) + ' ' + label : label,
|
|
89
|
-
'aria-pressed': isSelected,
|
|
90
|
-
'aria-disabled': isDisabled,
|
|
91
|
-
primaryTypographyProps: { noWrap: true, color: 'inherit' },
|
|
92
|
-
secondaryTypographyProps: { color: 'inherit' },
|
|
93
|
-
classes: { root: classes.listItem },
|
|
94
|
-
className: cx((_cx2 = {}, _cx2[classes.accessibilityItemHover] = accessibility, _cx2[classes.listItemSelected] = R.and(isSelected, R.not(isDisabled)), _cx2[classes.listItemHover] = R.not(isDisabled), _cx2)),
|
|
95
|
-
style: { marginLeft: depth * 20 + 'px' },
|
|
96
|
-
title: isDisabled ? R.propOr('', 'disableItemLabel')(labels) + ' ' + label : label,
|
|
97
|
-
primary: React.createElement(
|
|
98
|
-
'div',
|
|
99
|
-
{
|
|
100
|
-
className: cx(classes.labelContainer, (_cx3 = {}, _cx3[classes.rtlLabelContainer] = isRtl, _cx3))
|
|
101
|
-
},
|
|
102
|
-
React.createElement(
|
|
103
|
-
SvgIcon,
|
|
104
|
-
{
|
|
105
|
-
color: 'primary',
|
|
106
|
-
className: cx(classes.labelIcon, (_cx4 = {}, _cx4[classes.disabledLabel] = isDisabled, _cx4))
|
|
107
|
-
},
|
|
108
|
-
React.createElement('path', { d: R.and(isSelected, R.not(isDisabled)) ? checkPath : checkBoxPath })
|
|
109
|
-
),
|
|
110
|
-
svgPath && React.createElement(
|
|
111
|
-
SvgIcon,
|
|
112
|
-
{
|
|
113
|
-
color: 'primary',
|
|
114
|
-
className: cx(classes.labelIcon, (_cx5 = {}, _cx5[classes.disabledLabel] = isDisabled, _cx5))
|
|
115
|
-
},
|
|
116
|
-
React.createElement('path', { d: svgPath })
|
|
117
|
-
),
|
|
118
|
-
React.createElement(
|
|
119
|
-
Tooltip,
|
|
120
|
-
{
|
|
121
|
-
title: R.or(R.isNil(HTMLRenderer), R.isEmpty(description)) ? description : React.createElement(HTMLRenderer, { html: description, onClick: function onClick(e) {
|
|
122
|
-
return e.stopPropagation();
|
|
123
|
-
} }),
|
|
124
|
-
enterDelay: 400,
|
|
125
|
-
tabIndex: 0,
|
|
126
|
-
'aria-label': description,
|
|
127
|
-
'aria-hidden': false,
|
|
128
|
-
placement: 'top',
|
|
129
|
-
interactive: Boolean(HTMLRenderer),
|
|
130
|
-
onOpen: function onOpen() {
|
|
131
|
-
return setIsTooltipShown(true);
|
|
132
|
-
},
|
|
133
|
-
onClose: function onClose() {
|
|
134
|
-
return setIsTooltipShown(false);
|
|
135
|
-
}
|
|
136
|
-
},
|
|
137
|
-
React.createElement(
|
|
138
|
-
Typography,
|
|
139
|
-
{
|
|
140
|
-
'data-testid': testId + '_value_' + id,
|
|
141
|
-
color: 'inherit',
|
|
142
|
-
variant: 'body2',
|
|
143
|
-
className: cx(classes.label, (_cx6 = {}, _cx6[classes.disabledLabel] = isDisabled, _cx6[classes.tooltipNotice] = !R.isEmpty(description), _cx6))
|
|
144
|
-
},
|
|
145
|
-
label
|
|
146
|
-
)
|
|
147
|
-
),
|
|
148
|
-
R.not(R.isNil(count)) && React.createElement(
|
|
149
|
-
Typography,
|
|
150
|
-
{ variant: 'body2', className: classes.count },
|
|
151
|
-
'(',
|
|
152
|
-
count,
|
|
153
|
-
')'
|
|
154
|
-
)
|
|
155
|
-
),
|
|
156
|
-
secondary: React.createElement(
|
|
157
|
-
Typography,
|
|
158
|
-
{
|
|
159
|
-
title: R.join(isRtl ? ' < ' : ' > ')(R.map(labelRenderer)(nodePath)),
|
|
160
|
-
variant: 'body2',
|
|
161
|
-
className: cx(classes.ellipsis, classes.path)
|
|
162
|
-
},
|
|
163
|
-
getPathLabel(labelRenderer)(nodePath)
|
|
164
|
-
)
|
|
165
|
-
}),
|
|
166
|
-
R.and(NavigateIcon, hasChild) && React.createElement(
|
|
167
|
-
ListItemSecondaryAction,
|
|
168
|
-
{
|
|
169
|
-
onMouseEnter: R.is(Function, changeMouseSelection) ? changeMouseSelection(null, { isUp: true }) : null,
|
|
170
|
-
style: _extends({}, R.evolve(containerStyles, style), {
|
|
171
|
-
left: isRtl && 0,
|
|
172
|
-
right: R.not(isRtl) && 0,
|
|
173
|
-
outline: accessibility ? undefined : 'none'
|
|
174
|
-
}),
|
|
175
|
-
className: classes.containerArrow,
|
|
176
|
-
tabIndex: 0,
|
|
177
|
-
onClick: function onClick() {
|
|
178
|
-
return changeList(hierarchicalId || id);
|
|
179
|
-
},
|
|
180
|
-
onKeyPress: function onKeyPress(e) {
|
|
181
|
-
if (e.key === 'Enter') {
|
|
182
|
-
changeList(id);
|
|
183
|
-
}
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
React.createElement(
|
|
187
|
-
Tooltip,
|
|
188
|
-
{
|
|
189
|
-
title: changeListDescription || '',
|
|
190
|
-
tabIndex: 0,
|
|
191
|
-
'aria-label': changeListDescription,
|
|
192
|
-
'aria-hidden': false,
|
|
193
|
-
placement: 'top',
|
|
194
|
-
variant: 'light'
|
|
195
|
-
},
|
|
196
|
-
React.createElement(
|
|
197
|
-
IconButton,
|
|
198
|
-
{
|
|
199
|
-
disableRipple: true,
|
|
200
|
-
disableFocusRipple: true,
|
|
201
|
-
className: classes.arrow,
|
|
202
|
-
'aria-label': ariaLabel,
|
|
203
|
-
tabIndex: -1,
|
|
204
|
-
size: 'small',
|
|
205
|
-
color: 'inherit'
|
|
206
|
-
},
|
|
207
|
-
React.createElement(NavigateIcon, null)
|
|
208
|
-
)
|
|
209
|
-
)
|
|
210
|
-
)
|
|
211
|
-
);
|
|
212
|
-
};
|
|
213
|
-
|
|
214
|
-
Item.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
215
|
-
classes: PropTypes.object,
|
|
216
|
-
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
217
|
-
label: PropTypes.string,
|
|
218
|
-
description: PropTypes.string,
|
|
219
|
-
parentId: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
220
|
-
nodePath: PropTypes.array,
|
|
221
|
-
ariaLabel: PropTypes.string,
|
|
222
|
-
NavigateIcon: PropTypes.object,
|
|
223
|
-
isSelected: PropTypes.bool,
|
|
224
|
-
isDisabled: PropTypes.bool,
|
|
225
|
-
hasChild: PropTypes.bool,
|
|
226
|
-
isSection: PropTypes.bool,
|
|
227
|
-
changeList: PropTypes.func,
|
|
228
|
-
changeListDescription: PropTypes.string,
|
|
229
|
-
changeSelection: PropTypes.func,
|
|
230
|
-
changeMouseSelection: PropTypes.func,
|
|
231
|
-
count: PropTypes.number,
|
|
232
|
-
svgPath: PropTypes.string,
|
|
233
|
-
style: PropTypes.object,
|
|
234
|
-
isRtl: PropTypes.bool,
|
|
235
|
-
testId: PropTypes.string,
|
|
236
|
-
accessibility: PropTypes.bool,
|
|
237
|
-
index: PropTypes.number,
|
|
238
|
-
labelRenderer: PropTypes.func,
|
|
239
|
-
HTMLRenderer: PropTypes.func,
|
|
240
|
-
hierarchicalId: PropTypes.string,
|
|
241
|
-
labels: PropTypes.object,
|
|
242
|
-
depth: PropTypes.number
|
|
243
|
-
} : {};
|
|
244
|
-
|
|
245
|
-
export default Item;
|