@beppla/tapas-ui 1.0.67 → 1.0.69
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/commonjs/Alert/Alert.js +1 -2
- package/commonjs/AnimatedNavItem/AnimatedNavItem.js +1 -2
- package/commonjs/AnimatedNavItem/index.js +15 -10
- package/commonjs/BarChart/BarChart.js +90 -113
- package/commonjs/BarChart/index.js +0 -1
- package/commonjs/Button/Button.js +78 -97
- package/commonjs/Button/ButtonGroup.js +1 -2
- package/commonjs/Button/react-native-hoverable.d.js +0 -1
- package/commonjs/Calendar/Calendar.base.js +190 -163
- package/commonjs/Calendar/Calendar.js +102 -87
- package/commonjs/Calendar/ConcreteTimeSelector.js +271 -221
- package/commonjs/Calendar/CustomRange.js +324 -272
- package/commonjs/Calendar/DaySelector.js +0 -1
- package/commonjs/Calendar/MonthSelector.js +0 -1
- package/commonjs/Calendar/TimeSelector.js +274 -224
- package/commonjs/Calendar/WeekDaySelector.js +0 -1
- package/commonjs/Calendar/helper.js +68 -69
- package/commonjs/Calendar/local.js +1 -2
- package/commonjs/Calendar/types.js +10 -11
- package/commonjs/Card/Card.js +150 -160
- package/commonjs/CheckBox/CheckBox.js +1 -2
- package/commonjs/CheckBox/CheckBoxItem.js +1 -2
- package/commonjs/CheckBox/GroupCheckBox.js +80 -68
- package/commonjs/CircularProgress/CircularProgress.js +0 -12
- package/commonjs/Collapsible/Collapsible.js +102 -56
- package/commonjs/DashboardCard/DashboardCard.js +94 -75
- package/commonjs/DataCell/DataCell.js +205 -260
- package/commonjs/DataCell/index.js +0 -1
- package/commonjs/DataTable/DataTable.js +136 -142
- package/commonjs/DataTable/index.js +0 -1
- package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js +244 -243
- package/commonjs/DraggableFlatList/DraggableFlatList.js +9 -12
- package/commonjs/Drawer/Drawer.js +140 -160
- package/commonjs/Dropdown/CustomDropdown.js +0 -1
- package/commonjs/Dropdown/Dropdown.js +1 -2
- package/commonjs/Dropdown/InputDropdown.js +123 -115
- package/commonjs/ExternalLink/ExternalLink.js +50 -59
- package/commonjs/Gantt/Accessories.js +168 -136
- package/commonjs/Gantt/Gantt.js +0 -1
- package/commonjs/Gantt/GanttInnerElementType.js +102 -94
- package/commonjs/Gantt/helper.js +1 -2
- package/commonjs/Gantt/types.js +0 -1
- package/commonjs/Grid/FixedSizeGrid.js +76 -83
- package/commonjs/Grid/Grid.base.js +374 -358
- package/commonjs/Grid/StaticFixedSizeGrid.js +0 -1
- package/commonjs/Grid/VariableSizeGrid.js +113 -121
- package/commonjs/Grid/helper.js +0 -1
- package/commonjs/Grid/timer.js +4 -9
- package/commonjs/Header/Header.js +1 -2
- package/commonjs/HelloWave/HelloWave.js +1 -2
- package/commonjs/Hoverable/Hoverable.js +1 -2
- package/commonjs/IconText/IconText.js +0 -1
- package/commonjs/Icons/.!11492!expoFontLoader.js +205 -0
- package/commonjs/Icons/TapasIcon.js +1 -2
- package/commonjs/Icons/TapasIconExpo.js +94 -102
- package/commonjs/Icons/expoFontLoader.js +1 -2
- package/commonjs/Icons/fontLoader.js +0 -1
- package/commonjs/Icons/index.js +1 -2
- package/commonjs/Icons/smartFontLoader.js +222 -267
- package/commonjs/Image/Image.js +96 -107
- package/commonjs/Image/PreviewImg.js +63 -86
- package/commonjs/Input/Input.js +1 -2
- package/commonjs/Layout/DrawerContext.js +35 -1
- package/commonjs/Layout/Layout.js +1 -2
- package/commonjs/Layout/ToastContext.js +0 -1
- package/commonjs/Layout/index.js +34 -39
- package/commonjs/LineChart/LineChart.js +144 -127
- package/commonjs/LineChart/index.js +0 -1
- package/commonjs/ListItem/ListItem.js +0 -1
- package/commonjs/Loading/Loading.js +1 -2
- package/commonjs/MessageBox/MessageBox.js +126 -128
- package/commonjs/MultiSelector/MultiSelector.js +0 -1
- package/commonjs/MultiSelector/index.js +8 -4
- package/commonjs/Navigation/Navigation.js +0 -1
- package/commonjs/Notification/Notification.js +1 -2
- package/commonjs/Notification/index.js +8 -7
- package/commonjs/NumericInput/NumericInput.js +0 -24
- package/commonjs/Overlay/Overlay.js +30 -30
- package/commonjs/Pagination/Pagination.js +139 -121
- package/commonjs/PieChart/PieChart.js +97 -75
- package/commonjs/PieChart/index.js +3 -3
- package/commonjs/Popover/Popover.js +137 -113
- package/commonjs/Progress/Progress.js +0 -1
- package/commonjs/Quantity/Quantity.js +122 -118
- package/commonjs/Quantity/index.js +3 -1
- package/commonjs/RadioButton/RadioButton.js +46 -95
- package/commonjs/ReasonModal/ReasonModal.js +122 -126
- package/commonjs/ReasonModal/index.js +15 -10
- package/commonjs/ScanButton/ScanButton.js +64 -51
- package/commonjs/SearchInput/SearchInput.js +0 -1
- package/commonjs/SearchInput/index.js +8 -7
- package/commonjs/SheetTitle/SheetTitle.js +1 -2
- package/commonjs/Shell/Shell.js +92 -85
- package/commonjs/Shell/styles.js +0 -1
- package/commonjs/Shell/types.js +0 -1
- package/commonjs/StatisticCard/StatisticCard.js +47 -42
- package/commonjs/StatisticCard/index.js +1 -2
- package/commonjs/Status/Status.js +0 -1
- package/commonjs/Steps/Steps.js +43 -40
- package/commonjs/TabTitle/TabTitle.js +0 -1
- package/commonjs/TabTitle/index.js +1 -2
- package/commonjs/TableColumnHeader/TableColumnHeader.js +140 -135
- package/commonjs/TableColumnHeader/index.js +15 -10
- package/commonjs/Tag/Tag.js +1 -2
- package/commonjs/Task/Task.js +0 -1
- package/commonjs/Task/type.js +0 -1
- package/commonjs/Text/Text.js +1 -2
- package/commonjs/TextArea/TextArea.js +82 -1
- package/commonjs/Theme/ThemeProvider.js +1 -2
- package/commonjs/Theme/defaultTheme.js +18 -11
- package/commonjs/Theme/themed.d.js +0 -1
- package/commonjs/Timeline/Timeline.js +1 -2
- package/commonjs/Toast/Toast.js +41 -95
- package/commonjs/UserSwitcher/UserSwitcher.js +0 -1
- package/commonjs/UserSwitcher/index.js +14 -9
- package/commonjs/common.js +4 -6
- package/commonjs/index.js +426 -337
- package/module/Alert/Alert.js +51 -72
- package/module/AnimatedNavItem/AnimatedNavItem.js +1 -2
- package/module/AnimatedNavItem/index.js +2 -7
- package/module/BarChart/BarChart.js +0 -1
- package/module/BarChart/index.js +1 -2
- package/module/Button/Button.js +80 -72
- package/module/Button/ButtonGroup.js +129 -121
- package/module/Button/react-native-hoverable.d.js +0 -1
- package/module/Calendar/Calendar.base.js +0 -1
- package/module/Calendar/Calendar.js +80 -77
- package/module/Calendar/ConcreteTimeSelector.js +0 -1
- package/module/Calendar/CustomRange.js +258 -358
- package/module/Calendar/DaySelector.js +95 -119
- package/module/Calendar/MonthSelector.js +1 -2
- package/module/Calendar/TimeSelector.js +215 -308
- package/module/Calendar/WeekDaySelector.js +98 -123
- package/module/Calendar/helper.js +74 -75
- package/module/Calendar/local.js +0 -1
- package/module/Calendar/types.js +1 -2
- package/module/Card/Card.js +0 -134
- package/module/CheckBox/CheckBox.js +93 -90
- package/module/CheckBox/CheckBoxItem.js +69 -85
- package/module/CheckBox/GroupCheckBox.js +0 -1
- package/module/CircularProgress/CircularProgress.js +1 -2
- package/module/Collapsible/Collapsible.js +66 -1
- package/module/DashboardCard/DashboardCard.js +80 -89
- package/module/DataCell/DataCell.js +311 -225
- package/module/DataCell/index.js +1 -2
- package/module/DataTable/DataTable.js +0 -101
- package/module/DataTable/index.js +4 -3
- package/module/DeviceSelectionModal/DeviceSelectionModal.js +0 -125
- package/module/DraggableFlatList/DraggableFlatList.js +0 -1
- package/module/Drawer/Drawer.js +0 -1
- package/module/Dropdown/CustomDropdown.js +212 -161
- package/module/Dropdown/Dropdown.js +484 -409
- package/module/Dropdown/InputDropdown.js +116 -135
- package/module/ExternalLink/ExternalLink.js +1 -2
- package/module/Gantt/Accessories.js +176 -150
- package/module/Gantt/Gantt.js +0 -1
- package/module/Gantt/GanttInnerElementType.js +0 -1
- package/module/Gantt/helper.js +0 -1
- package/module/Gantt/types.js +1 -2
- package/module/Grid/FixedSizeGrid.js +80 -87
- package/module/Grid/Grid.base.js +339 -402
- package/module/Grid/StaticFixedSizeGrid.js +1 -2
- package/module/Grid/VariableSizeGrid.js +121 -119
- package/module/Grid/helper.js +0 -1
- package/module/Grid/timer.js +1 -2
- package/module/Header/Header.js +1 -2
- package/module/HelloWave/HelloWave.js +43 -54
- package/module/Hoverable/Hoverable.js +1 -2
- package/module/IconText/IconText.js +1 -2
- package/module/Icons/TapasIcon.js +120 -97
- package/module/Icons/TapasIconExpo.js +0 -1
- package/module/Icons/expoFontLoader.js +1 -2
- package/module/Icons/fontLoader.js +0 -1
- package/module/Icons/index.js +9 -11
- package/module/Icons/smartFontLoader.js +0 -1
- package/module/Image/Image.js +1 -2
- package/module/Image/PreviewImg.js +76 -80
- package/module/Input/Input.js +34 -113
- package/module/Layout/DrawerContext.js +18 -30
- package/module/Layout/Layout.js +0 -1
- package/module/Layout/ToastContext.js +0 -1
- package/module/Layout/index.js +14 -16
- package/module/LineChart/LineChart.js +0 -1
- package/module/LineChart/index.js +1 -2
- package/module/ListItem/ListItem.js +98 -106
- package/module/Loading/Loading.js +67 -66
- package/module/MessageBox/MessageBox.js +137 -99
- package/module/MultiSelector/MultiSelector.js +229 -321
- package/module/MultiSelector/index.js +3 -3
- package/module/Navigation/Navigation.js +1 -2
- package/module/Notification/Notification.js +0 -1
- package/module/Notification/index.js +0 -17
- package/module/NumericInput/NumericInput.js +1 -2
- package/module/Overlay/Overlay.js +0 -30
- package/module/Pagination/Pagination.js +139 -135
- package/module/PieChart/PieChart.js +0 -1
- package/module/PieChart/index.js +1 -2
- package/module/Popover/Popover.js +117 -148
- package/module/Progress/Progress.js +1 -2
- package/module/Quantity/Quantity.js +112 -130
- package/module/Quantity/index.js +16 -1
- package/module/RadioButton/RadioButton.js +1 -2
- package/module/ReasonModal/ReasonModal.js +1 -2
- package/module/ReasonModal/index.js +0 -28
- package/module/ScanButton/ScanButton.js +0 -46
- package/module/SearchInput/SearchInput.js +1 -2
- package/module/SearchInput/index.js +3 -3
- package/module/SheetTitle/SheetTitle.js +35 -41
- package/module/Shell/Shell.js +79 -93
- package/module/Shell/styles.js +8 -9
- package/module/Shell/types.js +0 -1
- package/module/StatisticCard/StatisticCard.js +79 -49
- package/module/StatisticCard/index.js +1 -2
- package/module/Status/Status.js +1 -2
- package/module/Steps/Steps.js +1 -2
- package/module/TabTitle/TabTitle.js +0 -1
- package/module/TabTitle/index.js +1 -2
- package/module/TableColumnHeader/TableColumnHeader.js +0 -1
- package/module/TableColumnHeader/index.js +2 -8
- package/module/Tag/Tag.js +87 -73
- package/module/Task/Task.js +108 -1
- package/module/Task/type.js +0 -1
- package/module/Text/Text.js +70 -81
- package/module/TextArea/TextArea.js +0 -120
- package/module/Theme/ThemeProvider.js +1 -2
- package/module/Theme/defaultTheme.js +0 -21
- package/module/Theme/themed.d.js +0 -1
- package/module/Timeline/Timeline.js +0 -55
- package/module/Toast/Toast.js +1 -2
- package/module/UserSwitcher/UserSwitcher.js +171 -131
- package/module/UserSwitcher/index.js +2 -5
- package/module/common.js +8 -8
- package/module/index.js +131 -121
- package/package.json +2 -2
- package/commonjs/Alert/Alert.js.map +0 -2
- package/commonjs/AnimatedNavItem/AnimatedNavItem.js.map +0 -2
- package/commonjs/AnimatedNavItem/index.js.map +0 -1
- package/commonjs/BarChart/BarChart.js.map +0 -1
- package/commonjs/BarChart/index.js.map +0 -2
- package/commonjs/Button/Button.js.map +0 -2
- package/commonjs/Button/ButtonGroup.js.map +0 -2
- package/commonjs/Button/react-native-hoverable.d.js.map +0 -1
- package/commonjs/Calendar/Calendar.base.js.map +0 -1
- package/commonjs/Calendar/Calendar.js.map +0 -2
- package/commonjs/Calendar/ConcreteTimeSelector.js.map +0 -2
- package/commonjs/Calendar/CustomRange.js.map +0 -1
- package/commonjs/Calendar/DaySelector.js.map +0 -1
- package/commonjs/Calendar/MonthSelector.js.map +0 -1
- package/commonjs/Calendar/TimeSelector.js.map +0 -1
- package/commonjs/Calendar/WeekDaySelector.js.map +0 -1
- package/commonjs/Calendar/helper.js.map +0 -2
- package/commonjs/Calendar/local.js.map +0 -2
- package/commonjs/Calendar/types.js.map +0 -1
- package/commonjs/Card/Card.js.map +0 -2
- package/commonjs/CheckBox/CheckBox.js.map +0 -2
- package/commonjs/CheckBox/CheckBoxItem.js.map +0 -2
- package/commonjs/CheckBox/GroupCheckBox.js.map +0 -2
- package/commonjs/CircularProgress/CircularProgress.js.map +0 -2
- package/commonjs/Collapsible/Collapsible.js.map +0 -2
- package/commonjs/DashboardCard/DashboardCard.js.map +0 -2
- package/commonjs/DataCell/DataCell.js.map +0 -1
- package/commonjs/DataCell/index.js.map +0 -2
- package/commonjs/DataTable/DataTable.js.map +0 -1
- package/commonjs/DataTable/index.js.map +0 -1
- package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js.map +0 -1
- package/commonjs/DraggableFlatList/DraggableFlatList.js.map +0 -1
- package/commonjs/Drawer/Drawer.js.map +0 -2
- package/commonjs/Dropdown/CustomDropdown.js.map +0 -1
- package/commonjs/Dropdown/Dropdown.js.map +0 -2
- package/commonjs/Dropdown/InputDropdown.js.map +0 -2
- package/commonjs/ExternalLink/ExternalLink.js.map +0 -1
- package/commonjs/Gantt/Accessories.js.map +0 -1
- package/commonjs/Gantt/Gantt.js.map +0 -1
- package/commonjs/Gantt/GanttInnerElementType.js.map +0 -2
- package/commonjs/Gantt/helper.js.map +0 -2
- package/commonjs/Gantt/types.js.map +0 -1
- package/commonjs/Grid/FixedSizeGrid.js.map +0 -1
- package/commonjs/Grid/Grid.base.js.map +0 -1
- package/commonjs/Grid/StaticFixedSizeGrid.js.map +0 -2
- package/commonjs/Grid/VariableSizeGrid.js.map +0 -2
- package/commonjs/Grid/helper.js.map +0 -2
- package/commonjs/Grid/timer.js.map +0 -1
- package/commonjs/Header/Header.js.map +0 -2
- package/commonjs/HelloWave/HelloWave.js.map +0 -2
- package/commonjs/Hoverable/Hoverable.js.map +0 -2
- package/commonjs/IconText/IconText.js.map +0 -1
- package/commonjs/Icons/TapasIcon.js.map +0 -2
- package/commonjs/Icons/TapasIconExpo.js.map +0 -1
- package/commonjs/Icons/expoFontLoader.js.map +0 -2
- package/commonjs/Icons/fontLoader.js.map +0 -2
- package/commonjs/Icons/index.js.map +0 -2
- package/commonjs/Icons/smartFontLoader.js.map +0 -2
- package/commonjs/Image/Image.js.map +0 -1
- package/commonjs/Image/PreviewImg.js.map +0 -2
- package/commonjs/Input/Input.js.map +0 -2
- package/commonjs/Layout/DrawerContext.js.map +0 -1
- package/commonjs/Layout/Layout.js.map +0 -2
- package/commonjs/Layout/ToastContext.js.map +0 -2
- package/commonjs/Layout/index.js.map +0 -1
- package/commonjs/LineChart/LineChart.js.map +0 -2
- package/commonjs/LineChart/index.js.map +0 -2
- package/commonjs/ListItem/ListItem.js.map +0 -1
- package/commonjs/Loading/Loading.js.map +0 -2
- package/commonjs/MessageBox/MessageBox.js.map +0 -2
- package/commonjs/MultiSelector/MultiSelector.js.map +0 -1
- package/commonjs/MultiSelector/index.js.map +0 -1
- package/commonjs/Navigation/Navigation.js.map +0 -2
- package/commonjs/Notification/Notification.js.map +0 -2
- package/commonjs/Notification/index.js.map +0 -2
- package/commonjs/NumericInput/NumericInput.js.map +0 -2
- package/commonjs/Overlay/Overlay.js.map +0 -2
- package/commonjs/Pagination/Pagination.js.map +0 -2
- package/commonjs/PieChart/PieChart.js.map +0 -2
- package/commonjs/PieChart/index.js.map +0 -2
- package/commonjs/Popover/Popover.js.map +0 -1
- package/commonjs/Progress/Progress.js.map +0 -1
- package/commonjs/Quantity/Quantity.js.map +0 -2
- package/commonjs/Quantity/index.js.map +0 -1
- package/commonjs/RadioButton/RadioButton.js.map +0 -1
- package/commonjs/ReasonModal/ReasonModal.js.map +0 -2
- package/commonjs/ReasonModal/index.js.map +0 -1
- package/commonjs/ScanButton/ScanButton.js.map +0 -1
- package/commonjs/SearchInput/SearchInput.js.map +0 -2
- package/commonjs/SearchInput/index.js.map +0 -2
- package/commonjs/SheetTitle/SheetTitle.js.map +0 -2
- package/commonjs/Shell/Shell.js.map +0 -2
- package/commonjs/Shell/styles.js.map +0 -2
- package/commonjs/Shell/types.js.map +0 -2
- package/commonjs/StatisticCard/StatisticCard.js.map +0 -1
- package/commonjs/StatisticCard/index.js.map +0 -2
- package/commonjs/Status/Status.js.map +0 -1
- package/commonjs/Steps/Steps.js.map +0 -1
- package/commonjs/TabTitle/TabTitle.js.map +0 -1
- package/commonjs/TabTitle/index.js.map +0 -2
- package/commonjs/TableColumnHeader/TableColumnHeader.js.map +0 -2
- package/commonjs/TableColumnHeader/index.js.map +0 -1
- package/commonjs/Tag/Tag.js.map +0 -2
- package/commonjs/Task/Task.js.map +0 -1
- package/commonjs/Task/type.js.map +0 -2
- package/commonjs/Text/Text.js.map +0 -2
- package/commonjs/TextArea/TextArea.js.map +0 -1
- package/commonjs/Theme/ThemeProvider.js.map +0 -1
- package/commonjs/Theme/defaultTheme.js.map +0 -1
- package/commonjs/Theme/themed.d.js.map +0 -1
- package/commonjs/Timeline/Timeline.js.map +0 -2
- package/commonjs/Toast/Toast.js.map +0 -1
- package/commonjs/UserSwitcher/UserSwitcher.js.map +0 -1
- package/commonjs/UserSwitcher/index.js.map +0 -1
- package/commonjs/common.js.map +0 -2
- package/commonjs/index.js.map +0 -1
- package/module/Alert/Alert.js.map +0 -2
- package/module/AnimatedNavItem/AnimatedNavItem.js.map +0 -2
- package/module/AnimatedNavItem/index.js.map +0 -1
- package/module/BarChart/BarChart.js.map +0 -1
- package/module/BarChart/index.js.map +0 -1
- package/module/Button/Button.js.map +0 -2
- package/module/Button/ButtonGroup.js.map +0 -1
- package/module/Button/react-native-hoverable.d.js.map +0 -1
- package/module/Calendar/Calendar.base.js.map +0 -1
- package/module/Calendar/Calendar.js.map +0 -2
- package/module/Calendar/ConcreteTimeSelector.js.map +0 -2
- package/module/Calendar/CustomRange.js.map +0 -1
- package/module/Calendar/DaySelector.js.map +0 -2
- package/module/Calendar/MonthSelector.js.map +0 -2
- package/module/Calendar/TimeSelector.js.map +0 -2
- package/module/Calendar/WeekDaySelector.js.map +0 -2
- package/module/Calendar/helper.js.map +0 -2
- package/module/Calendar/local.js.map +0 -1
- package/module/Calendar/types.js.map +0 -1
- package/module/Card/Card.js.map +0 -2
- package/module/CheckBox/CheckBox.js.map +0 -2
- package/module/CheckBox/CheckBoxItem.js.map +0 -2
- package/module/CheckBox/GroupCheckBox.js.map +0 -1
- package/module/CircularProgress/CircularProgress.js.map +0 -2
- package/module/Collapsible/Collapsible.js.map +0 -1
- package/module/DashboardCard/DashboardCard.js.map +0 -1
- package/module/DataCell/DataCell.js.map +0 -2
- package/module/DataCell/index.js.map +0 -2
- package/module/DataTable/DataTable.js.map +0 -2
- package/module/DataTable/index.js.map +0 -2
- package/module/DeviceSelectionModal/DeviceSelectionModal.js.map +0 -2
- package/module/DraggableFlatList/DraggableFlatList.js.map +0 -1
- package/module/Drawer/Drawer.js.map +0 -1
- package/module/Dropdown/CustomDropdown.js.map +0 -1
- package/module/Dropdown/Dropdown.js.map +0 -1
- package/module/Dropdown/InputDropdown.js.map +0 -2
- package/module/ExternalLink/ExternalLink.js.map +0 -2
- package/module/Gantt/Accessories.js.map +0 -1
- package/module/Gantt/Gantt.js.map +0 -2
- package/module/Gantt/GanttInnerElementType.js.map +0 -2
- package/module/Gantt/helper.js.map +0 -1
- package/module/Gantt/types.js.map +0 -1
- package/module/Grid/FixedSizeGrid.js.map +0 -2
- package/module/Grid/Grid.base.js.map +0 -2
- package/module/Grid/StaticFixedSizeGrid.js.map +0 -2
- package/module/Grid/VariableSizeGrid.js.map +0 -1
- package/module/Grid/helper.js.map +0 -2
- package/module/Grid/timer.js.map +0 -1
- package/module/Header/Header.js.map +0 -2
- package/module/HelloWave/HelloWave.js.map +0 -2
- package/module/Hoverable/Hoverable.js.map +0 -2
- package/module/IconText/IconText.js.map +0 -2
- package/module/Icons/TapasIcon.js.map +0 -2
- package/module/Icons/TapasIconExpo.js.map +0 -2
- package/module/Icons/expoFontLoader.js.map +0 -2
- package/module/Icons/fontLoader.js.map +0 -1
- package/module/Icons/index.js.map +0 -1
- package/module/Icons/smartFontLoader.js.map +0 -2
- package/module/Image/Image.js.map +0 -2
- package/module/Image/PreviewImg.js.map +0 -1
- package/module/Input/Input.js.map +0 -1
- package/module/Layout/DrawerContext.js.map +0 -2
- package/module/Layout/Layout.js.map +0 -2
- package/module/Layout/ToastContext.js.map +0 -2
- package/module/Layout/index.js.map +0 -2
- package/module/LineChart/LineChart.js.map +0 -2
- package/module/LineChart/index.js.map +0 -2
- package/module/ListItem/ListItem.js.map +0 -1
- package/module/Loading/Loading.js.map +0 -1
- package/module/MessageBox/MessageBox.js.map +0 -1
- package/module/MultiSelector/MultiSelector.js.map +0 -2
- package/module/MultiSelector/index.js.map +0 -2
- package/module/Navigation/Navigation.js.map +0 -1
- package/module/Notification/Notification.js.map +0 -1
- package/module/Notification/index.js.map +0 -2
- package/module/NumericInput/NumericInput.js.map +0 -2
- package/module/Overlay/Overlay.js.map +0 -1
- package/module/Pagination/Pagination.js.map +0 -1
- package/module/PieChart/PieChart.js.map +0 -1
- package/module/PieChart/index.js.map +0 -2
- package/module/Popover/Popover.js.map +0 -2
- package/module/Progress/Progress.js.map +0 -2
- package/module/Quantity/Quantity.js.map +0 -2
- package/module/Quantity/index.js.map +0 -1
- package/module/RadioButton/RadioButton.js.map +0 -2
- package/module/ReasonModal/ReasonModal.js.map +0 -2
- package/module/ReasonModal/index.js.map +0 -2
- package/module/ScanButton/ScanButton.js.map +0 -1
- package/module/SearchInput/SearchInput.js.map +0 -2
- package/module/SearchInput/index.js.map +0 -2
- package/module/SheetTitle/SheetTitle.js.map +0 -2
- package/module/Shell/Shell.js.map +0 -2
- package/module/Shell/styles.js.map +0 -2
- package/module/Shell/types.js.map +0 -2
- package/module/StatisticCard/StatisticCard.js.map +0 -1
- package/module/StatisticCard/index.js.map +0 -2
- package/module/Status/Status.js.map +0 -2
- package/module/Steps/Steps.js.map +0 -2
- package/module/TabTitle/TabTitle.js.map +0 -2
- package/module/TabTitle/index.js.map +0 -2
- package/module/TableColumnHeader/TableColumnHeader.js.map +0 -1
- package/module/TableColumnHeader/index.js.map +0 -2
- package/module/Tag/Tag.js.map +0 -1
- package/module/Task/Task.js.map +0 -2
- package/module/Task/type.js.map +0 -1
- package/module/Text/Text.js.map +0 -1
- package/module/TextArea/TextArea.js.map +0 -2
- package/module/Theme/ThemeProvider.js.map +0 -1
- package/module/Theme/defaultTheme.js.map +0 -2
- package/module/Theme/themed.d.js.map +0 -1
- package/module/Timeline/Timeline.js.map +0 -2
- package/module/Toast/Toast.js.map +0 -2
- package/module/UserSwitcher/UserSwitcher.js.map +0 -1
- package/module/UserSwitcher/index.js.map +0 -1
- package/module/common.js.map +0 -2
- package/module/index.js.map +0 -2
|
@@ -1,45 +1,104 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __assign = void 0 && (void 0).__assign || function () {
|
|
4
|
+
__assign = Object.assign || function (t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
return t;
|
|
10
|
+
};
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
12
|
+
};
|
|
13
|
+
var __createBinding = void 0 && (void 0).__createBinding || (Object.create ? function (o, m, k, k2) {
|
|
14
|
+
if (k2 === undefined) k2 = k;
|
|
15
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
16
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
17
|
+
desc = {
|
|
18
|
+
enumerable: true,
|
|
19
|
+
get: function () {
|
|
20
|
+
return m[k];
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
}
|
|
24
|
+
Object.defineProperty(o, k2, desc);
|
|
25
|
+
} : function (o, m, k, k2) {
|
|
26
|
+
if (k2 === undefined) k2 = k;
|
|
27
|
+
o[k2] = m[k];
|
|
28
|
+
});
|
|
29
|
+
var __setModuleDefault = void 0 && (void 0).__setModuleDefault || (Object.create ? function (o, v) {
|
|
30
|
+
Object.defineProperty(o, "default", {
|
|
31
|
+
enumerable: true,
|
|
32
|
+
value: v
|
|
33
|
+
});
|
|
34
|
+
} : function (o, v) {
|
|
35
|
+
o["default"] = v;
|
|
36
|
+
});
|
|
37
|
+
var __importStar = void 0 && (void 0).__importStar || function () {
|
|
38
|
+
var ownKeys = function (o) {
|
|
39
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
40
|
+
var ar = [];
|
|
41
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
42
|
+
return ar;
|
|
43
|
+
};
|
|
44
|
+
return ownKeys(o);
|
|
45
|
+
};
|
|
46
|
+
return function (mod) {
|
|
47
|
+
if (mod && mod.__esModule) return mod;
|
|
48
|
+
var result = {};
|
|
49
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
50
|
+
__setModuleDefault(result, mod);
|
|
51
|
+
return result;
|
|
52
|
+
};
|
|
53
|
+
}();
|
|
54
|
+
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
55
|
+
var t = {};
|
|
56
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
57
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
58
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
59
|
+
}
|
|
60
|
+
return t;
|
|
61
|
+
};
|
|
62
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
63
|
+
return mod && mod.__esModule ? mod : {
|
|
64
|
+
"default": mod
|
|
65
|
+
};
|
|
66
|
+
};
|
|
3
67
|
Object.defineProperty(exports, "__esModule", {
|
|
4
68
|
value: true
|
|
5
69
|
});
|
|
6
|
-
|
|
7
|
-
var
|
|
8
|
-
var
|
|
9
|
-
var
|
|
10
|
-
var
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
const {
|
|
39
|
-
currentTimeOffset,
|
|
40
|
-
curTimeText
|
|
41
|
-
} = (0, _helper.calculateCurrentTimeOffset)(unit, columnWidth, rangeVal, currentTime);
|
|
42
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, rangeVal && rangeVal[0] && rangeVal[1] && now >= rangeVal?.[0] && now <= rangeVal?.[1] && /*#__PURE__*/_react.default.createElement(_Accessories.Timeline, {
|
|
70
|
+
var react_1 = __importStar(require("react"));
|
|
71
|
+
var types_1 = require("./types");
|
|
72
|
+
var helper_1 = require("./helper");
|
|
73
|
+
var Accessories_1 = require("./Accessories");
|
|
74
|
+
var VariableSizeGrid_1 = __importDefault(require("../Grid/VariableSizeGrid"));
|
|
75
|
+
var InnerElementType = (0, react_1.forwardRef)(function (_a, ref) {
|
|
76
|
+
var _b, _c, _d, _e, _f;
|
|
77
|
+
var children = _a.children,
|
|
78
|
+
style = _a.style,
|
|
79
|
+
rest = __rest(_a, ["children", "style"]);
|
|
80
|
+
var _g = (0, Accessories_1.useGanttContext)(),
|
|
81
|
+
columnCount = _g.columnCount,
|
|
82
|
+
columnWidth = _g.columnWidth,
|
|
83
|
+
columnHeaderBackgroundColor = _g.columnHeaderBackgroundColor,
|
|
84
|
+
_h = _g.columnHeaderHeight,
|
|
85
|
+
columnHeaderHeight = _h === void 0 ? helper_1.defaultColumnHeaderHeight : _h,
|
|
86
|
+
columnHeaderBorder = _g.columnHeaderBorder,
|
|
87
|
+
width = _g.width,
|
|
88
|
+
theme = _g.theme,
|
|
89
|
+
rowCount = _g.rowCount,
|
|
90
|
+
rowHeight = _g.rowHeight,
|
|
91
|
+
rangeVal = _g.rangeVal,
|
|
92
|
+
now = _g.now,
|
|
93
|
+
_j = _g.unit,
|
|
94
|
+
unit = _j === void 0 ? types_1.DateUnit.HELF : _j,
|
|
95
|
+
headerRef = _g.headerRef;
|
|
96
|
+
var curColumnIndex = (0, helper_1.calculateCurrentColumnIndex)(unit, rangeVal);
|
|
97
|
+
var currentTime = new Date();
|
|
98
|
+
var _k = (0, helper_1.calculateCurrentTimeOffset)(unit, columnWidth, rangeVal, currentTime),
|
|
99
|
+
currentTimeOffset = _k.currentTimeOffset,
|
|
100
|
+
curTimeText = _k.curTimeText;
|
|
101
|
+
return react_1.default.createElement(react_1.default.Fragment, null, rangeVal && rangeVal[0] && rangeVal[1] && now >= (rangeVal === null || rangeVal === void 0 ? void 0 : rangeVal[0]) && now <= (rangeVal === null || rangeVal === void 0 ? void 0 : rangeVal[1]) && react_1.default.createElement(Accessories_1.Timeline, {
|
|
43
102
|
theme: theme,
|
|
44
103
|
text: curTimeText,
|
|
45
104
|
style: {
|
|
@@ -47,69 +106,19 @@ const InnerElementType = /*#__PURE__*/(0, _react.forwardRef)(({
|
|
|
47
106
|
left: currentTimeOffset,
|
|
48
107
|
width: 1,
|
|
49
108
|
height: rowCount * rowHeight,
|
|
50
|
-
top:
|
|
51
|
-
backgroundColor: theme.colorTextAccent
|
|
109
|
+
top: helper_1.defaultColumnHeaderHeight,
|
|
110
|
+
backgroundColor: (_b = theme.colorTextAccent) !== null && _b !== void 0 ? _b : "#F55523"
|
|
52
111
|
}
|
|
53
|
-
}),
|
|
112
|
+
}), react_1.default.createElement("div", {
|
|
54
113
|
style: {
|
|
55
114
|
position: "sticky",
|
|
56
115
|
left: 0,
|
|
57
116
|
top: 0,
|
|
58
|
-
marginBottom: -1 * (columnHeaderHeight
|
|
59
|
-
height: columnHeaderHeight
|
|
117
|
+
marginBottom: -1 * (columnHeaderHeight !== null && columnHeaderHeight !== void 0 ? columnHeaderHeight : helper_1.defaultColumnHeaderHeight),
|
|
118
|
+
height: columnHeaderHeight !== null && columnHeaderHeight !== void 0 ? columnHeaderHeight : helper_1.defaultColumnHeaderHeight,
|
|
60
119
|
width: width || 0,
|
|
61
120
|
zIndex: 4,
|
|
62
|
-
backgroundColor: columnHeaderBackgroundColor
|
|
63
|
-
borderTopLeftRadius: theme?.radius?.mini ?? 4,
|
|
64
|
-
borderTopRightRadius: theme?.radius?.mini ?? 4,
|
|
65
|
-
borderTop: columnHeaderBorder?.top ? "1px solid rgba(0, 0, 0, 0.12)" : "none",
|
|
66
|
-
borderLeft: columnHeaderBorder?.left ? "1px solid rgba(0, 0, 0, 0.12)" : "none",
|
|
67
|
-
borderRight: columnHeaderBorder?.right ? "1px solid rgba(0, 0, 0, 0.12)" : "none",
|
|
68
|
-
borderBottom: columnHeaderBorder?.bottom ? "1px solid rgba(0, 0, 0, 0.12)" : "none"
|
|
69
|
-
}
|
|
70
|
-
}), /*#__PURE__*/_react.default.createElement(_Accessories.ColumnHeaderCon, {
|
|
71
|
-
style: {
|
|
72
|
-
backgroundColor: "#F9F2E8",
|
|
73
|
-
zIndex: 3,
|
|
74
|
-
top: 0,
|
|
75
|
-
left: 0,
|
|
76
|
-
width: width || 0,
|
|
77
|
-
height: columnHeaderHeight ?? _helper.defaultColumnHeaderHeight,
|
|
78
|
-
position: "sticky",
|
|
79
|
-
display: "flex",
|
|
80
|
-
flexDirection: "row"
|
|
81
|
-
}
|
|
82
|
-
}, /*#__PURE__*/_react.default.createElement(_VariableSizeGrid.default, {
|
|
83
|
-
ref: headerRef,
|
|
84
|
-
columnCount: columnCount,
|
|
85
|
-
columnWidth: () => columnWidth,
|
|
86
|
-
height: columnHeaderHeight ?? _helper.defaultColumnHeaderHeight,
|
|
87
|
-
rowCount: 1,
|
|
88
|
-
rowHeight: () => columnHeaderHeight ?? _helper.defaultColumnHeaderHeight,
|
|
89
|
-
width: width,
|
|
90
|
-
itemData: {
|
|
91
|
-
ItemRenderer: _Accessories.ColumnHeaderCellRnder,
|
|
92
|
-
columnHeaderHeight,
|
|
93
|
-
theme,
|
|
94
|
-
startDate: rangeVal[0],
|
|
95
|
-
columnCount,
|
|
96
|
-
columnWidth,
|
|
97
|
-
curColumnIndex,
|
|
98
|
-
currentTime,
|
|
99
|
-
unit,
|
|
100
|
-
curColumnText: curTimeText
|
|
101
|
-
},
|
|
102
|
-
style: {
|
|
103
|
-
overflow: "hidden"
|
|
104
|
-
}
|
|
105
|
-
}, _Accessories.GanttItemWrapper)), /*#__PURE__*/_react.default.createElement("div", _extends({
|
|
106
|
-
ref: ref
|
|
107
|
-
}, rest, {
|
|
108
|
-
style: style
|
|
109
|
-
}), children));
|
|
110
|
-
});
|
|
111
|
-
var _default = exports.default = InnerElementType;
|
|
112
|
-
//# sourceMappingURL=GanttInnerElementType.js.mapolumnHeaderBackgroundColor : "none",
|
|
121
|
+
backgroundColor: columnHeaderBackgroundColor !== null && columnHeaderBackgroundColor !== void 0 ? columnHeaderBackgroundColor : "none",
|
|
113
122
|
borderTopLeftRadius: (_d = (_c = theme === null || theme === void 0 ? void 0 : theme.radius) === null || _c === void 0 ? void 0 : _c.mini) !== null && _d !== void 0 ? _d : 4,
|
|
114
123
|
borderTopRightRadius: (_f = (_e = theme === null || theme === void 0 ? void 0 : theme.radius) === null || _e === void 0 ? void 0 : _e.mini) !== null && _f !== void 0 ? _f : 4,
|
|
115
124
|
borderTop: (columnHeaderBorder === null || columnHeaderBorder === void 0 ? void 0 : columnHeaderBorder.top) ? "1px solid rgba(0, 0, 0, 0.12)" : "none",
|
|
@@ -163,4 +172,3 @@ var _default = exports.default = InnerElementType;
|
|
|
163
172
|
}), children));
|
|
164
173
|
});
|
|
165
174
|
exports.default = InnerElementType;
|
|
166
|
-
//# sourceMappingURL=GanttInnerElementType.js.map
|
package/commonjs/Gantt/helper.js
CHANGED
|
@@ -380,7 +380,7 @@ function generateColumnTitle(unit, columnIndex, startTime) {
|
|
|
380
380
|
}
|
|
381
381
|
return columnTitle;
|
|
382
382
|
}
|
|
383
|
-
|
|
383
|
+
|
|
384
384
|
var dayTime = new Date(startTime.getTime() + columnIndex * 24 * 60 * 60 * 1000);
|
|
385
385
|
columnTitle = "".concat(dayTime.getDate());
|
|
386
386
|
break;
|
|
@@ -400,4 +400,3 @@ function generateColumnTitle(unit, columnIndex, startTime) {
|
|
|
400
400
|
}
|
|
401
401
|
return columnTitle;
|
|
402
402
|
}
|
|
403
|
-
//# sourceMappingURL=helper.js.map
|
package/commonjs/Gantt/types.js
CHANGED
|
@@ -1,42 +1,51 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
4
|
+
return mod && mod.__esModule ? mod : {
|
|
5
|
+
"default": mod
|
|
6
|
+
};
|
|
7
|
+
};
|
|
3
8
|
Object.defineProperty(exports, "__esModule", {
|
|
4
9
|
value: true
|
|
5
10
|
});
|
|
6
|
-
|
|
7
|
-
var _Grid = _interopRequireDefault(require("./Grid.base"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
11
|
+
var Grid_base_1 = __importDefault(require("./Grid.base"));
|
|
9
12
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
columnWidth
|
|
14
|
-
},
|
|
15
|
-
getColumnWidth: ({
|
|
16
|
-
columnWidth
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
columnCount,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
},
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
13
|
+
var FixedSizeGrid = (0, Grid_base_1.default)({
|
|
14
|
+
getColumnOffset: function (_a, index) {
|
|
15
|
+
var columnWidth = _a.columnWidth;
|
|
16
|
+
return index * columnWidth;
|
|
17
|
+
},
|
|
18
|
+
getColumnWidth: function (_a) {
|
|
19
|
+
var columnWidth = _a.columnWidth;
|
|
20
|
+
return columnWidth;
|
|
21
|
+
},
|
|
22
|
+
getRowOffset: function (_a, index) {
|
|
23
|
+
var rowHeight = _a.rowHeight;
|
|
24
|
+
return index * rowHeight;
|
|
25
|
+
},
|
|
26
|
+
getRowHeight: function (_a) {
|
|
27
|
+
var rowHeight = _a.rowHeight;
|
|
28
|
+
return rowHeight;
|
|
29
|
+
},
|
|
30
|
+
getEstimatedTotalHeight: function (_a) {
|
|
31
|
+
var rowCount = _a.rowCount,
|
|
32
|
+
rowHeight = _a.rowHeight;
|
|
33
|
+
return rowHeight * rowCount;
|
|
34
|
+
},
|
|
35
|
+
getEstimatedTotalWidth: function (_a) {
|
|
36
|
+
var columnCount = _a.columnCount,
|
|
37
|
+
columnWidth = _a.columnWidth;
|
|
38
|
+
return columnWidth * columnCount;
|
|
39
|
+
},
|
|
40
|
+
getOffsetForColumnAndAlignment: function (_a, columnIndex, align, scrollLeft,
|
|
41
|
+
//@ts-ignore
|
|
42
|
+
instanceProps, scrollbarSize) {
|
|
43
|
+
var columnCount = _a.columnCount,
|
|
44
|
+
columnWidth = _a.columnWidth,
|
|
45
|
+
width = _a.width;
|
|
46
|
+
var lastColumnOffset = Math.max(0, columnCount * columnWidth - width);
|
|
47
|
+
var maxOffset = Math.min(lastColumnOffset, columnIndex * columnWidth);
|
|
48
|
+
var minOffset = Math.max(0, columnIndex * columnWidth - width + scrollbarSize + columnWidth);
|
|
40
49
|
if (align === 'smart') {
|
|
41
50
|
if (scrollLeft >= minOffset - width && scrollLeft <= maxOffset + width) {
|
|
42
51
|
align = 'auto';
|
|
@@ -53,7 +62,7 @@ const FixedSizeGrid = (0, _Grid.default)({
|
|
|
53
62
|
{
|
|
54
63
|
// "Centered" offset is usually the average of the min and max.
|
|
55
64
|
// But near the edges of the list, this doesn't hold true.
|
|
56
|
-
|
|
65
|
+
var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
|
|
57
66
|
if (middleOffset < Math.ceil(width / 2)) {
|
|
58
67
|
return 0; // near the beginning
|
|
59
68
|
} else if (middleOffset > lastColumnOffset + Math.floor(width / 2)) {
|
|
@@ -77,14 +86,15 @@ const FixedSizeGrid = (0, _Grid.default)({
|
|
|
77
86
|
}
|
|
78
87
|
}
|
|
79
88
|
},
|
|
80
|
-
getOffsetForRowAndAlignment: (
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
89
|
+
getOffsetForRowAndAlignment: function (_a, rowIndex, align, scrollTop,
|
|
90
|
+
//@ts-ignore
|
|
91
|
+
instanceProps, scrollbarSize) {
|
|
92
|
+
var rowHeight = _a.rowHeight,
|
|
93
|
+
height = _a.height,
|
|
94
|
+
rowCount = _a.rowCount;
|
|
95
|
+
var lastRowOffset = Math.max(0, rowCount * rowHeight - height);
|
|
96
|
+
var maxOffset = Math.min(lastRowOffset, rowIndex * rowHeight);
|
|
97
|
+
var minOffset = Math.max(0, rowIndex * rowHeight - height + scrollbarSize + rowHeight);
|
|
88
98
|
if (align === 'smart') {
|
|
89
99
|
if (scrollTop >= minOffset - height && scrollTop <= maxOffset + height) {
|
|
90
100
|
align = 'auto';
|
|
@@ -101,7 +111,7 @@ const FixedSizeGrid = (0, _Grid.default)({
|
|
|
101
111
|
{
|
|
102
112
|
// "Centered" offset is usually the average of the min and max.
|
|
103
113
|
// But near the edges of the list, this doesn't hold true.
|
|
104
|
-
|
|
114
|
+
var middleOffset = Math.round(minOffset + (maxOffset - minOffset) / 2);
|
|
105
115
|
if (middleOffset < Math.ceil(height / 2)) {
|
|
106
116
|
return 0; // near the beginning
|
|
107
117
|
} else if (middleOffset > lastRowOffset + Math.floor(height / 2)) {
|
|
@@ -125,55 +135,39 @@ const FixedSizeGrid = (0, _Grid.default)({
|
|
|
125
135
|
}
|
|
126
136
|
}
|
|
127
137
|
},
|
|
128
|
-
getColumnStartIndexForOffset: ({
|
|
129
|
-
columnWidth,
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
getColumnStartIndexForOffset: function (_a, scrollLeft) {
|
|
139
|
+
var columnWidth = _a.columnWidth,
|
|
140
|
+
columnCount = _a.columnCount;
|
|
141
|
+
return Math.max(0, Math.min(columnCount - 1, Math.floor(scrollLeft / columnWidth)));
|
|
142
|
+
},
|
|
143
|
+
getColumnStopIndexForStartIndex: function (_a, startIndex, scrollLeft) {
|
|
144
|
+
var columnWidth = _a.columnWidth,
|
|
145
|
+
columnCount = _a.columnCount,
|
|
146
|
+
width = _a.width;
|
|
147
|
+
var left = startIndex * columnWidth;
|
|
148
|
+
var numVisibleColumns = Math.ceil((width + scrollLeft - left) / columnWidth);
|
|
139
149
|
return Math.max(0, Math.min(columnCount - 1, startIndex + numVisibleColumns - 1 // -1 is because stop index is inclusive
|
|
140
150
|
));
|
|
141
151
|
},
|
|
142
|
-
getRowStartIndexForOffset: ({
|
|
143
|
-
rowHeight,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
152
|
+
getRowStartIndexForOffset: function (_a, scrollTop) {
|
|
153
|
+
var rowHeight = _a.rowHeight,
|
|
154
|
+
rowCount = _a.rowCount;
|
|
155
|
+
return Math.max(0, Math.min(rowCount - 1, Math.floor(scrollTop / rowHeight)));
|
|
156
|
+
},
|
|
157
|
+
getRowStopIndexForStartIndex: function (_a, startIndex, scrollTop) {
|
|
158
|
+
var rowHeight = _a.rowHeight,
|
|
159
|
+
rowCount = _a.rowCount,
|
|
160
|
+
height = _a.height;
|
|
161
|
+
var top = startIndex * rowHeight;
|
|
162
|
+
var numVisibleRows = Math.ceil((height + scrollTop - top) / rowHeight);
|
|
153
163
|
return Math.max(0, Math.min(rowCount - 1, startIndex + numVisibleRows - 1 // -1 is because stop index is inclusive
|
|
154
164
|
));
|
|
155
165
|
},
|
|
156
166
|
//@ts-ignore
|
|
157
|
-
initInstanceProps(_props) {
|
|
167
|
+
initInstanceProps: function (_props) {
|
|
158
168
|
// Noop
|
|
159
169
|
},
|
|
160
170
|
shouldResetStyleCacheOnItemSizeChange: true,
|
|
161
|
-
validateProps: ({
|
|
162
|
-
columnWidth,
|
|
163
|
-
rowHeight
|
|
164
|
-
}) => {
|
|
165
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
166
|
-
if (typeof columnWidth !== 'number') {
|
|
167
|
-
throw Error('An invalid "columnWidth" prop has been specified. ' + 'Value should be a number. ' + `"${columnWidth === null ? 'null' : typeof columnWidth}" was specified.`);
|
|
168
|
-
}
|
|
169
|
-
if (typeof rowHeight !== 'number') {
|
|
170
|
-
throw Error('An invalid "rowHeight" prop has been specified. ' + 'Value should be a number. ' + `"${rowHeight === null ? 'null' : typeof rowHeight}" was specified.`);
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
var _default = exports.default = FixedSizeGrid;
|
|
176
|
-
//# sourceMappingURL=FixedSizeGrid.js.mape: true,
|
|
177
171
|
validateProps: function (_a) {
|
|
178
172
|
var columnWidth = _a.columnWidth,
|
|
179
173
|
rowHeight = _a.rowHeight;
|
|
@@ -188,4 +182,3 @@ var _default = exports.default = FixedSizeGrid;
|
|
|
188
182
|
}
|
|
189
183
|
});
|
|
190
184
|
exports.default = FixedSizeGrid;
|
|
191
|
-
//# sourceMappingURL=FixedSizeGrid.js.map
|