@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
|
@@ -361,7 +361,7 @@ const StickyFixedSizeGrid = ({
|
|
|
361
361
|
hasActions: hasActions
|
|
362
362
|
}), children);
|
|
363
363
|
export default withTheme(StickyFixedSizeGrid);
|
|
364
|
-
|
|
364
|
+
|
|
365
365
|
style: {
|
|
366
366
|
backgroundColor: (_m = theme === null || theme === void 0 ? void 0 : theme.background) !== null && _m !== void 0 ? _m : "#F9F2E8",
|
|
367
367
|
zIndex: 2,
|
|
@@ -494,4 +494,3 @@ var StickyFixedSizeGrid = function (_a) {
|
|
|
494
494
|
}), children);
|
|
495
495
|
};
|
|
496
496
|
exports.default = (0, themed_1.withTheme)(StickyFixedSizeGrid);
|
|
497
|
-
//# sourceMappingURL=StaticFixedSizeGrid.js.map
|
|
@@ -1,54 +1,48 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var Grid_base_1 = __importDefault(require("./Grid.base"));
|
|
12
|
-
var DEFAULT_ESTIMATED_ITEM_SIZE = 50;
|
|
13
|
-
var getEstimatedTotalHeight = function (_a, _b) {
|
|
14
|
-
var rowCount = _a.rowCount;
|
|
15
|
-
var rowMetadataMap = _b.rowMetadataMap,
|
|
16
|
-
estimatedRowHeight = _b.estimatedRowHeight,
|
|
17
|
-
lastMeasuredRowIndex = _b.lastMeasuredRowIndex;
|
|
18
|
-
var totalSizeOfMeasuredRows = 0;
|
|
1
|
+
import createGridComponent from './Grid.base';
|
|
2
|
+
const DEFAULT_ESTIMATED_ITEM_SIZE = 50;
|
|
3
|
+
const getEstimatedTotalHeight = ({
|
|
4
|
+
rowCount
|
|
5
|
+
}, {
|
|
6
|
+
rowMetadataMap,
|
|
7
|
+
estimatedRowHeight,
|
|
8
|
+
lastMeasuredRowIndex
|
|
9
|
+
}) => {
|
|
10
|
+
let totalSizeOfMeasuredRows = 0;
|
|
19
11
|
if (lastMeasuredRowIndex >= rowCount) {
|
|
20
12
|
lastMeasuredRowIndex = rowCount - 1;
|
|
21
13
|
}
|
|
22
14
|
if (lastMeasuredRowIndex >= 0) {
|
|
23
|
-
|
|
15
|
+
const itemMetadata = rowMetadataMap[lastMeasuredRowIndex];
|
|
24
16
|
// @ts-ignore
|
|
25
17
|
totalSizeOfMeasuredRows = itemMetadata.offset + itemMetadata.size;
|
|
26
18
|
}
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
const numUnmeasuredItems = rowCount - lastMeasuredRowIndex - 1;
|
|
20
|
+
const totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedRowHeight;
|
|
29
21
|
return totalSizeOfMeasuredRows + totalSizeOfUnmeasuredItems;
|
|
30
22
|
};
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
23
|
+
const getEstimatedTotalWidth = ({
|
|
24
|
+
columnCount
|
|
25
|
+
}, {
|
|
26
|
+
columnMetadataMap,
|
|
27
|
+
estimatedColumnWidth,
|
|
28
|
+
lastMeasuredColumnIndex
|
|
29
|
+
}) => {
|
|
30
|
+
let totalSizeOfMeasuredRows = 0;
|
|
37
31
|
if (lastMeasuredColumnIndex >= columnCount) {
|
|
38
32
|
lastMeasuredColumnIndex = columnCount - 1;
|
|
39
33
|
}
|
|
40
34
|
if (lastMeasuredColumnIndex >= 0) {
|
|
41
35
|
// @ts-ignore
|
|
42
|
-
|
|
36
|
+
const itemMetadata = columnMetadataMap[lastMeasuredColumnIndex];
|
|
43
37
|
// @ts-ignore
|
|
44
38
|
totalSizeOfMeasuredRows = itemMetadata.offset + itemMetadata.size;
|
|
45
39
|
}
|
|
46
|
-
|
|
47
|
-
|
|
40
|
+
const numUnmeasuredItems = columnCount - lastMeasuredColumnIndex - 1;
|
|
41
|
+
const totalSizeOfUnmeasuredItems = numUnmeasuredItems * estimatedColumnWidth;
|
|
48
42
|
return totalSizeOfMeasuredRows + totalSizeOfUnmeasuredItems;
|
|
49
43
|
};
|
|
50
|
-
|
|
51
|
-
|
|
44
|
+
const getItemMetadata = (itemType, props, index, instanceProps) => {
|
|
45
|
+
let itemMetadataMap, itemSize, lastMeasuredIndex;
|
|
52
46
|
if (itemType === 'column') {
|
|
53
47
|
itemMetadataMap = instanceProps.columnMetadataMap;
|
|
54
48
|
itemSize = props.columnWidth;
|
|
@@ -59,18 +53,18 @@ var getItemMetadata = function (itemType, props, index, instanceProps) {
|
|
|
59
53
|
lastMeasuredIndex = instanceProps.lastMeasuredRowIndex;
|
|
60
54
|
}
|
|
61
55
|
if (index > lastMeasuredIndex) {
|
|
62
|
-
|
|
56
|
+
let offset = 0;
|
|
63
57
|
// @ts-ignore
|
|
64
58
|
if (lastMeasuredIndex >= 0) {
|
|
65
|
-
|
|
59
|
+
const itemMetadata = itemMetadataMap[lastMeasuredIndex];
|
|
66
60
|
// @ts-ignore
|
|
67
61
|
offset = itemMetadata.offset + itemMetadata.size;
|
|
68
62
|
}
|
|
69
|
-
for (
|
|
70
|
-
|
|
63
|
+
for (let i = lastMeasuredIndex + 1; i <= index; i++) {
|
|
64
|
+
let size = itemSize(i);
|
|
71
65
|
itemMetadataMap[i] = {
|
|
72
|
-
offset
|
|
73
|
-
size
|
|
66
|
+
offset,
|
|
67
|
+
size
|
|
74
68
|
};
|
|
75
69
|
offset += size;
|
|
76
70
|
}
|
|
@@ -83,8 +77,8 @@ var getItemMetadata = function (itemType, props, index, instanceProps) {
|
|
|
83
77
|
// @ts-ignore
|
|
84
78
|
return itemMetadataMap[index];
|
|
85
79
|
};
|
|
86
|
-
|
|
87
|
-
|
|
80
|
+
const findNearestItem = (itemType, props, instanceProps, offset) => {
|
|
81
|
+
let itemMetadataMap, lastMeasuredIndex;
|
|
88
82
|
if (itemType === 'column') {
|
|
89
83
|
itemMetadataMap = instanceProps.columnMetadataMap;
|
|
90
84
|
lastMeasuredIndex = instanceProps.lastMeasuredColumnIndex;
|
|
@@ -92,7 +86,7 @@ var findNearestItem = function (itemType, props, instanceProps, offset) {
|
|
|
92
86
|
itemMetadataMap = instanceProps.rowMetadataMap;
|
|
93
87
|
lastMeasuredIndex = instanceProps.lastMeasuredRowIndex;
|
|
94
88
|
}
|
|
95
|
-
|
|
89
|
+
const lastMeasuredItemOffset = lastMeasuredIndex > 0 ?
|
|
96
90
|
// @ts-ignore
|
|
97
91
|
itemMetadataMap[lastMeasuredIndex].offset : 0;
|
|
98
92
|
if (lastMeasuredItemOffset >= offset) {
|
|
@@ -105,10 +99,10 @@ var findNearestItem = function (itemType, props, instanceProps, offset) {
|
|
|
105
99
|
return findNearestItemExponentialSearch(itemType, props, instanceProps, Math.max(0, lastMeasuredIndex), offset);
|
|
106
100
|
}
|
|
107
101
|
};
|
|
108
|
-
|
|
102
|
+
const findNearestItemBinarySearch = (itemType, props, instanceProps, high, low, offset) => {
|
|
109
103
|
while (low <= high) {
|
|
110
|
-
|
|
111
|
-
|
|
104
|
+
const middle = low + Math.floor((high - low) / 2);
|
|
105
|
+
const currentOffset = getItemMetadata(itemType, props, middle, instanceProps).offset;
|
|
112
106
|
if (currentOffset === offset) {
|
|
113
107
|
return middle;
|
|
114
108
|
} else if (currentOffset < offset) {
|
|
@@ -123,23 +117,24 @@ var findNearestItemBinarySearch = function (itemType, props, instanceProps, high
|
|
|
123
117
|
return 0;
|
|
124
118
|
}
|
|
125
119
|
};
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
120
|
+
const findNearestItemExponentialSearch = (itemType, props, instanceProps, index, offset) => {
|
|
121
|
+
const itemCount = itemType === 'column' ? props.columnCount : props.rowCount;
|
|
122
|
+
let interval = 1;
|
|
129
123
|
while (index < itemCount && getItemMetadata(itemType, props, index, instanceProps).offset < offset) {
|
|
130
124
|
index += interval;
|
|
131
125
|
interval *= 2;
|
|
132
126
|
}
|
|
133
127
|
return findNearestItemBinarySearch(itemType, props, instanceProps, Math.min(index, itemCount - 1), Math.floor(index / 2), offset);
|
|
134
128
|
};
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
129
|
+
const getOffsetForIndexAndAlignment = (itemType, props, index, align, scrollOffset, instanceProps, scrollbarSize) => {
|
|
130
|
+
const size = itemType === 'column' ? props.width : props.height;
|
|
131
|
+
const itemMetadata = getItemMetadata(itemType, props, index, instanceProps);
|
|
132
|
+
|
|
138
133
|
// Get estimated total size after ItemMetadata is computed,
|
|
139
134
|
// To ensure it reflects actual measurements instead of just estimates.
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
135
|
+
const estimatedTotalSize = itemType === 'column' ? getEstimatedTotalWidth(props, instanceProps) : getEstimatedTotalHeight(props, instanceProps);
|
|
136
|
+
const maxOffset = Math.max(0, Math.min(estimatedTotalSize - size, itemMetadata.offset));
|
|
137
|
+
const minOffset = Math.max(0, itemMetadata.offset - size + scrollbarSize + itemMetadata.size);
|
|
143
138
|
if (align === 'smart') {
|
|
144
139
|
if (scrollOffset >= minOffset - size && scrollOffset <= maxOffset + size) {
|
|
145
140
|
align = 'auto';
|
|
@@ -169,20 +164,18 @@ var getOffsetForIndexAndAlignment = function (itemType, props, index, align, scr
|
|
|
169
164
|
}
|
|
170
165
|
}
|
|
171
166
|
};
|
|
172
|
-
|
|
173
|
-
getColumnOffset:
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
var offset = itemMetadata.offset + itemMetadata.size;
|
|
185
|
-
var stopIndex = startIndex;
|
|
167
|
+
const VariableSizeGrid = createGridComponent({
|
|
168
|
+
getColumnOffset: (props, index, instanceProps) => getItemMetadata('column', props, index, instanceProps).offset,
|
|
169
|
+
getColumnStartIndexForOffset: (props, scrollLeft, instanceProps) => findNearestItem('column', props, instanceProps, scrollLeft),
|
|
170
|
+
getColumnStopIndexForStartIndex: (props, startIndex, scrollLeft, instanceProps) => {
|
|
171
|
+
const {
|
|
172
|
+
columnCount,
|
|
173
|
+
width
|
|
174
|
+
} = props;
|
|
175
|
+
const itemMetadata = getItemMetadata('column', props, startIndex, instanceProps);
|
|
176
|
+
const maxOffset = scrollLeft + width;
|
|
177
|
+
let offset = itemMetadata.offset + itemMetadata.size;
|
|
178
|
+
let stopIndex = startIndex;
|
|
186
179
|
while (stopIndex < columnCount - 1 && offset < maxOffset) {
|
|
187
180
|
stopIndex++;
|
|
188
181
|
offset += getItemMetadata('column', props, stopIndex, instanceProps).size;
|
|
@@ -190,52 +183,41 @@ var VariableSizeGrid = (0, Grid_base_1.default)({
|
|
|
190
183
|
// @ts-ignore
|
|
191
184
|
return stopIndex;
|
|
192
185
|
},
|
|
193
|
-
getColumnWidth:
|
|
194
|
-
// @ts-ignore
|
|
195
|
-
props, index, instanceProps) {
|
|
186
|
+
getColumnWidth: (props, index, instanceProps) => {
|
|
196
187
|
// @ts-ignore
|
|
197
188
|
return instanceProps.columnMetadataMap[index].size;
|
|
198
189
|
},
|
|
199
|
-
getEstimatedTotalHeight
|
|
200
|
-
getEstimatedTotalWidth
|
|
201
|
-
getOffsetForColumnAndAlignment:
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
return getOffsetForIndexAndAlignment('row', props, index, align, scrollOffset, instanceProps, scrollbarSize);
|
|
206
|
-
},
|
|
207
|
-
getRowOffset: function (
|
|
208
|
-
// @ts-ignore
|
|
209
|
-
props, index, instanceProps) {
|
|
210
|
-
return getItemMetadata('row', props, index, instanceProps).offset;
|
|
211
|
-
},
|
|
212
|
-
getRowHeight: function (
|
|
213
|
-
// @ts-ignore
|
|
214
|
-
props, index, instanceProps) {
|
|
190
|
+
getEstimatedTotalHeight,
|
|
191
|
+
getEstimatedTotalWidth,
|
|
192
|
+
getOffsetForColumnAndAlignment: (props, index, align, scrollOffset, instanceProps, scrollbarSize) => getOffsetForIndexAndAlignment('column', props, index, align, scrollOffset, instanceProps, scrollbarSize),
|
|
193
|
+
getOffsetForRowAndAlignment: (props, index, align, scrollOffset, instanceProps, scrollbarSize) => getOffsetForIndexAndAlignment('row', props, index, align, scrollOffset, instanceProps, scrollbarSize),
|
|
194
|
+
getRowOffset: (props, index, instanceProps) => getItemMetadata('row', props, index, instanceProps).offset,
|
|
195
|
+
getRowHeight: (props, index, instanceProps) => {
|
|
215
196
|
// @ts-ignore
|
|
216
197
|
return instanceProps.rowMetadataMap[index].size;
|
|
217
198
|
},
|
|
218
|
-
getRowStartIndexForOffset:
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
199
|
+
getRowStartIndexForOffset: (props, scrollTop, instanceProps) => findNearestItem('row', props, instanceProps, scrollTop),
|
|
200
|
+
getRowStopIndexForStartIndex: (props, startIndex, scrollTop, instanceProps) => {
|
|
201
|
+
const {
|
|
202
|
+
rowCount,
|
|
203
|
+
height
|
|
204
|
+
} = props;
|
|
205
|
+
const itemMetadata = getItemMetadata('row', props, startIndex, instanceProps);
|
|
206
|
+
const maxOffset = scrollTop + height;
|
|
207
|
+
let offset = itemMetadata.offset + itemMetadata.size;
|
|
208
|
+
let stopIndex = startIndex;
|
|
228
209
|
while (stopIndex < rowCount - 1 && offset < maxOffset) {
|
|
229
210
|
stopIndex++;
|
|
230
211
|
offset += getItemMetadata('row', props, stopIndex, instanceProps).size;
|
|
231
212
|
}
|
|
232
213
|
return stopIndex;
|
|
233
214
|
},
|
|
234
|
-
initInstanceProps
|
|
235
|
-
|
|
236
|
-
estimatedColumnWidth
|
|
237
|
-
estimatedRowHeight
|
|
238
|
-
|
|
215
|
+
initInstanceProps(props, instance) {
|
|
216
|
+
const {
|
|
217
|
+
estimatedColumnWidth,
|
|
218
|
+
estimatedRowHeight
|
|
219
|
+
} = props;
|
|
220
|
+
const instanceProps = {
|
|
239
221
|
columnMetadataMap: {},
|
|
240
222
|
estimatedColumnWidth: estimatedColumnWidth || DEFAULT_ESTIMATED_ITEM_SIZE,
|
|
241
223
|
estimatedRowHeight: estimatedRowHeight || DEFAULT_ESTIMATED_ITEM_SIZE,
|
|
@@ -243,35 +225,30 @@ var VariableSizeGrid = (0, Grid_base_1.default)({
|
|
|
243
225
|
lastMeasuredRowIndex: -1,
|
|
244
226
|
rowMetadataMap: {}
|
|
245
227
|
};
|
|
246
|
-
instance.resetAfterColumnIndex =
|
|
247
|
-
if (shouldForceUpdate === void 0) {
|
|
248
|
-
shouldForceUpdate = true;
|
|
249
|
-
}
|
|
228
|
+
instance.resetAfterColumnIndex = (columnIndex, shouldForceUpdate = true) => {
|
|
250
229
|
instance.resetAfterIndices({
|
|
251
|
-
columnIndex
|
|
252
|
-
shouldForceUpdate
|
|
230
|
+
columnIndex,
|
|
231
|
+
shouldForceUpdate
|
|
253
232
|
});
|
|
254
233
|
};
|
|
255
|
-
instance.resetAfterRowIndex =
|
|
256
|
-
if (shouldForceUpdate === void 0) {
|
|
257
|
-
shouldForceUpdate = true;
|
|
258
|
-
}
|
|
234
|
+
instance.resetAfterRowIndex = (rowIndex, shouldForceUpdate = true) => {
|
|
259
235
|
instance.resetAfterIndices({
|
|
260
|
-
rowIndex
|
|
261
|
-
shouldForceUpdate
|
|
236
|
+
rowIndex,
|
|
237
|
+
shouldForceUpdate
|
|
262
238
|
});
|
|
263
239
|
};
|
|
264
|
-
instance.resetAfterIndices =
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
240
|
+
instance.resetAfterIndices = ({
|
|
241
|
+
columnIndex,
|
|
242
|
+
rowIndex,
|
|
243
|
+
shouldForceUpdate = true
|
|
244
|
+
}) => {
|
|
269
245
|
if (typeof columnIndex === 'number') {
|
|
270
246
|
instanceProps.lastMeasuredColumnIndex = Math.min(instanceProps.lastMeasuredColumnIndex, columnIndex - 1);
|
|
271
247
|
}
|
|
272
248
|
if (typeof rowIndex === 'number') {
|
|
273
249
|
instanceProps.lastMeasuredRowIndex = Math.min(instanceProps.lastMeasuredRowIndex, rowIndex - 1);
|
|
274
250
|
}
|
|
251
|
+
|
|
275
252
|
// We could potentially optimize further by only evicting styles after this index,
|
|
276
253
|
// But since styles are only cached while scrolling is in progress-
|
|
277
254
|
// It seems an unnecessary optimization.
|
|
@@ -284,6 +261,32 @@ var VariableSizeGrid = (0, Grid_base_1.default)({
|
|
|
284
261
|
return instanceProps;
|
|
285
262
|
},
|
|
286
263
|
shouldResetStyleCacheOnItemSizeChange: false,
|
|
264
|
+
validateProps: ({
|
|
265
|
+
columnWidth,
|
|
266
|
+
rowHeight
|
|
267
|
+
}) => {
|
|
268
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
269
|
+
if (typeof columnWidth !== 'function') {
|
|
270
|
+
throw Error('An invalid "columnWidth" prop has been specified. ' + 'Value should be a function. ' + `"${columnWidth === null ? 'null' : typeof columnWidth}" was specified.`);
|
|
271
|
+
} else if (typeof rowHeight !== 'function') {
|
|
272
|
+
throw Error('An invalid "rowHeight" prop has been specified. ' + 'Value should be a function. ' + `"${rowHeight === null ? 'null' : typeof rowHeight}" was specified.`);
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
}
|
|
276
|
+
});
|
|
277
|
+
export default VariableSizeGrid;
|
|
278
|
+
|
|
279
|
+
// But since styles are only cached while scrolling is in progress-
|
|
280
|
+
// It seems an unnecessary optimization.
|
|
281
|
+
// It's unlikely that resetAfterIndex() will be called while a user is scrolling.
|
|
282
|
+
instance._getItemStyleCache(-1);
|
|
283
|
+
if (shouldForceUpdate) {
|
|
284
|
+
instance.forceUpdate();
|
|
285
|
+
}
|
|
286
|
+
};
|
|
287
|
+
return instanceProps;
|
|
288
|
+
},
|
|
289
|
+
shouldResetStyleCacheOnItemSizeChange: false,
|
|
287
290
|
validateProps: function (_a) {
|
|
288
291
|
var columnWidth = _a.columnWidth,
|
|
289
292
|
rowHeight = _a.rowHeight;
|
|
@@ -297,4 +300,3 @@ var VariableSizeGrid = (0, Grid_base_1.default)({
|
|
|
297
300
|
}
|
|
298
301
|
});
|
|
299
302
|
exports.default = VariableSizeGrid;
|
|
300
|
-
//# sourceMappingURL=VariableSizeGrid.js.map
|
package/module/Grid/helper.js
CHANGED
package/module/Grid/timer.js
CHANGED
|
@@ -17,7 +17,7 @@ export function requestTimeout(callback, delay) {
|
|
|
17
17
|
};
|
|
18
18
|
return timeoutID;
|
|
19
19
|
}
|
|
20
|
-
|
|
20
|
+
|
|
21
21
|
timeoutID.id = requestAnimationFrame(tick);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -26,4 +26,3 @@ export function requestTimeout(callback, delay) {
|
|
|
26
26
|
};
|
|
27
27
|
return timeoutID;
|
|
28
28
|
}
|
|
29
|
-
//# sourceMappingURL=timer.js.map
|
package/module/Header/Header.js
CHANGED
|
@@ -185,7 +185,7 @@ const HeaderComponent = ({
|
|
|
185
185
|
}));
|
|
186
186
|
};
|
|
187
187
|
export default withTheme(HeaderComponent);
|
|
188
|
-
|
|
188
|
+
|
|
189
189
|
var _k = (0, react_1.useState)(""),
|
|
190
190
|
searchText = _k[0],
|
|
191
191
|
setSearchText = _k[1];
|
|
@@ -274,4 +274,3 @@ export default withTheme(HeaderComponent);
|
|
|
274
274
|
}));
|
|
275
275
|
};
|
|
276
276
|
exports.default = (0, themed_1.withTheme)(HeaderComponent);
|
|
277
|
-
//# sourceMappingURL=Header.js.map
|
|
@@ -1,60 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
style,
|
|
11
|
-
textStyle,
|
|
12
|
-
testID,
|
|
13
|
-
...props
|
|
14
|
-
}) => {
|
|
15
|
-
const rotationAnimation = new Animated.Value(0);
|
|
16
|
-
React.useEffect(() => {
|
|
17
|
-
const createAnimation = () => {
|
|
18
|
-
return Animated.sequence([Animated.timing(rotationAnimation, {
|
|
19
|
-
toValue: 25,
|
|
20
|
-
duration,
|
|
21
|
-
useNativeDriver: true
|
|
22
|
-
}), Animated.timing(rotationAnimation, {
|
|
23
|
-
toValue: 0,
|
|
24
|
-
duration,
|
|
25
|
-
useNativeDriver: true
|
|
26
|
-
})]);
|
|
27
|
-
};
|
|
28
|
-
const animation = Animated.loop(createAnimation(), {
|
|
29
|
-
iterations: repeatCount
|
|
30
|
-
});
|
|
31
|
-
animation.start();
|
|
32
|
-
return () => animation.stop();
|
|
33
|
-
}, [duration, repeatCount]);
|
|
34
|
-
const animatedStyle = {
|
|
35
|
-
transform: [{
|
|
36
|
-
rotate: rotationAnimation.interpolate({
|
|
37
|
-
inputRange: [0, 25],
|
|
38
|
-
outputRange: ['0deg', '25deg']
|
|
39
|
-
})
|
|
40
|
-
}]
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var __assign = this && this.__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;
|
|
41
10
|
};
|
|
42
|
-
return
|
|
43
|
-
style: [animatedStyle, style],
|
|
44
|
-
testID: testID
|
|
45
|
-
}, props), /*#__PURE__*/React.createElement(TapasText, {
|
|
46
|
-
style: [styles.text, textStyle]
|
|
47
|
-
}, emoji));
|
|
11
|
+
return __assign.apply(this, arguments);
|
|
48
12
|
};
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
13
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
14
|
+
var t = {};
|
|
15
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
16
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
17
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
54
18
|
}
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
21
|
+
var __importDefault = this && this.__importDefault || function (mod) {
|
|
22
|
+
return mod && mod.__esModule ? mod : {
|
|
23
|
+
"default": mod
|
|
24
|
+
};
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", {
|
|
27
|
+
value: true
|
|
55
28
|
});
|
|
56
|
-
|
|
57
|
-
|
|
29
|
+
var react_1 = __importDefault(require("react"));
|
|
30
|
+
var react_native_1 = require("react-native");
|
|
31
|
+
var themed_1 = require("@rneui/themed");
|
|
32
|
+
var Text_1 = __importDefault(require("../Text/Text"));
|
|
33
|
+
var HelloWave = function (_a) {
|
|
34
|
+
var _b = _a.emoji,
|
|
35
|
+
emoji = _b === void 0 ? '👋' : _b,
|
|
36
|
+
_c = _a.duration,
|
|
37
|
+
duration = _c === void 0 ? 150 : _c,
|
|
38
|
+
_d = _a.repeatCount,
|
|
39
|
+
repeatCount = _d === void 0 ? 4 : _d,
|
|
40
|
+
style = _a.style,
|
|
41
|
+
textStyle = _a.textStyle,
|
|
42
|
+
testID = _a.testID,
|
|
43
|
+
props = __rest(_a, ["emoji", "duration", "repeatCount", "style", "textStyle", "testID"]);
|
|
44
|
+
var rotationAnimation = new react_native_1.Animated.Value(0);
|
|
45
|
+
react_1.default.useEffect(function () {
|
|
46
|
+
var createAnimation = function () {
|
|
47
|
+
return react_native_1.Animated.sequence([react_native_1.Animated.timing(rotationAnimation, {
|
|
58
48
|
toValue: 25,
|
|
59
49
|
duration: duration,
|
|
60
50
|
useNativeDriver: true
|
|
@@ -95,4 +85,3 @@ var styles = react_native_1.StyleSheet.create({
|
|
|
95
85
|
}
|
|
96
86
|
});
|
|
97
87
|
exports.default = (0, themed_1.withTheme)(HelloWave);
|
|
98
|
-
//# sourceMappingURL=HelloWave.js.map
|
|
@@ -82,7 +82,7 @@ const Hoverable = ({
|
|
|
82
82
|
}, renderChildren());
|
|
83
83
|
};
|
|
84
84
|
export default Hoverable;
|
|
85
|
-
|
|
85
|
+
|
|
86
86
|
if (isWeb) {
|
|
87
87
|
return react_1.default.createElement("div", {
|
|
88
88
|
style: style,
|
|
@@ -127,4 +127,3 @@ export default Hoverable;
|
|
|
127
127
|
}, renderChildren());
|
|
128
128
|
};
|
|
129
129
|
exports.default = Hoverable;
|
|
130
|
-
//# sourceMappingURL=Hoverable.js.map
|
|
@@ -102,7 +102,7 @@ const useStyles = makeStyles((theme, props) => {
|
|
|
102
102
|
};
|
|
103
103
|
});
|
|
104
104
|
export default withTheme(IconText);
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
size = _f === void 0 ? 'medium' : _f,
|
|
107
107
|
backgroundColor = _e.backgroundColor;
|
|
108
108
|
var fontSize = ((_a = theme.fonts) === null || _a === void 0 ? void 0 : _a.sizeM) || 16;
|
|
@@ -158,4 +158,3 @@ export default withTheme(IconText);
|
|
|
158
158
|
};
|
|
159
159
|
});
|
|
160
160
|
exports.default = (0, themed_1.withTheme)(IconText);
|
|
161
|
-
//# sourceMappingURL=IconText.js.map
|