@beppla/tapas-ui 1.0.72 → 1.0.73
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 +31 -78
- package/commonjs/Alert/Alert.js.map +1 -0
- package/commonjs/AnimatedNavItem/AnimatedNavItem.js +1 -0
- package/commonjs/AnimatedNavItem/AnimatedNavItem.js.map +1 -0
- package/commonjs/AnimatedNavItem/index.js +1 -0
- package/commonjs/AnimatedNavItem/index.js.map +1 -0
- package/commonjs/BarChart/BarChart.js +91 -112
- package/commonjs/BarChart/BarChart.js.map +1 -0
- package/commonjs/BarChart/index.js +1 -0
- package/commonjs/BarChart/index.js.map +1 -0
- package/commonjs/Button/Button.js +1 -48
- package/commonjs/Button/Button.js.map +1 -0
- package/commonjs/Button/ButtonGroup.js +112 -182
- package/commonjs/Button/ButtonGroup.js.map +1 -0
- package/commonjs/Button/react-native-hoverable.d.js +1 -0
- package/commonjs/Button/react-native-hoverable.d.js.map +1 -0
- package/commonjs/Calendar/Calendar.base.js +1 -90
- package/commonjs/Calendar/Calendar.base.js.map +1 -0
- package/commonjs/Calendar/Calendar.js +52 -122
- package/commonjs/Calendar/Calendar.js.map +1 -0
- package/commonjs/Calendar/ConcreteTimeSelector.js +1 -126
- package/commonjs/Calendar/ConcreteTimeSelector.js.map +1 -0
- package/commonjs/Calendar/CustomRange.js +204 -277
- package/commonjs/Calendar/CustomRange.js.map +1 -0
- package/commonjs/Calendar/DaySelector.js +56 -116
- package/commonjs/Calendar/DaySelector.js.map +1 -0
- package/commonjs/Calendar/MonthSelector.js +1 -64
- package/commonjs/Calendar/MonthSelector.js.map +1 -0
- package/commonjs/Calendar/TimeSelector.js +152 -224
- package/commonjs/Calendar/TimeSelector.js.map +1 -0
- package/commonjs/Calendar/WeekDaySelector.js +57 -118
- package/commonjs/Calendar/WeekDaySelector.js.map +1 -0
- package/commonjs/Calendar/helper.js +56 -86
- package/commonjs/Calendar/helper.js.map +1 -0
- package/commonjs/Calendar/local.js +1 -0
- package/commonjs/Calendar/local.js.map +1 -0
- package/commonjs/Calendar/types.js +1 -0
- package/commonjs/Calendar/types.js.map +1 -0
- package/commonjs/Card/Card.js +1 -0
- package/commonjs/Card/Card.js.map +1 -0
- package/commonjs/CheckBox/CheckBox.js +42 -101
- package/commonjs/CheckBox/CheckBox.js.map +1 -0
- package/commonjs/CheckBox/CheckBoxItem.js +1 -0
- package/commonjs/CheckBox/CheckBoxItem.js.map +1 -0
- package/commonjs/CheckBox/GroupCheckBox.js +1 -45
- package/commonjs/CheckBox/GroupCheckBox.js.map +1 -0
- package/commonjs/CircularProgress/CircularProgress.js +24 -25
- package/commonjs/CircularProgress/CircularProgress.js.map +1 -0
- package/commonjs/Collapsible/Collapsible.js +1 -32
- package/commonjs/Collapsible/Collapsible.js.map +1 -0
- package/commonjs/DashboardCard/DashboardCard.js +58 -111
- package/commonjs/DashboardCard/DashboardCard.js.map +1 -0
- package/commonjs/DataCell/DataCell.js +206 -259
- package/commonjs/DataCell/DataCell.js.map +1 -0
- package/commonjs/DataCell/index.js +10 -14
- package/commonjs/DataCell/index.js.map +1 -0
- package/commonjs/DataTable/DataTable.js +71 -144
- package/commonjs/DataTable/DataTable.js.map +1 -0
- package/commonjs/DataTable/index.js +3 -3
- package/commonjs/DataTable/index.js.map +1 -0
- package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js +1 -54
- package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js.map +1 -0
- package/commonjs/DraggableFlatList/DraggableFlatList.js +1 -0
- package/commonjs/DraggableFlatList/DraggableFlatList.js.map +1 -0
- package/commonjs/Drawer/Drawer.js +137 -153
- package/commonjs/Drawer/Drawer.js.map +1 -0
- package/commonjs/Dropdown/CustomDropdown.js +165 -207
- package/commonjs/Dropdown/CustomDropdown.js.map +1 -0
- package/commonjs/Dropdown/Dropdown.js +423 -500
- package/commonjs/Dropdown/Dropdown.js.map +1 -0
- package/commonjs/Dropdown/InputDropdown.js +1 -51
- package/commonjs/Dropdown/InputDropdown.js.map +1 -0
- package/commonjs/ExternalLink/ExternalLink.js +46 -193
- package/commonjs/ExternalLink/ExternalLink.js.map +1 -0
- package/commonjs/Gantt/Accessories.js +157 -171
- package/commonjs/Gantt/Accessories.js.map +1 -0
- package/commonjs/Gantt/Gantt.js +1 -71
- package/commonjs/Gantt/Gantt.js.map +1 -0
- package/commonjs/Gantt/GanttInnerElementType.js +1 -53
- package/commonjs/Gantt/GanttInnerElementType.js.map +1 -0
- package/commonjs/Gantt/helper.js +137 -130
- package/commonjs/Gantt/helper.js.map +1 -0
- package/commonjs/Gantt/types.js +1 -0
- package/commonjs/Gantt/types.js.map +1 -0
- package/commonjs/Grid/FixedSizeGrid.js +74 -82
- package/commonjs/Grid/FixedSizeGrid.js.map +1 -0
- package/commonjs/Grid/Grid.base.js +1 -81
- package/commonjs/Grid/Grid.base.js.map +1 -0
- package/commonjs/Grid/StaticFixedSizeGrid.js +217 -277
- package/commonjs/Grid/StaticFixedSizeGrid.js.map +1 -0
- package/commonjs/Grid/VariableSizeGrid.js +105 -119
- package/commonjs/Grid/VariableSizeGrid.js.map +1 -0
- package/commonjs/Grid/helper.js +1 -3
- package/commonjs/Grid/helper.js.map +1 -0
- package/commonjs/Grid/timer.js +5 -8
- package/commonjs/Grid/timer.js.map +1 -0
- package/commonjs/Header/Header.js +131 -195
- package/commonjs/Header/Header.js.map +1 -0
- package/commonjs/HelloWave/HelloWave.js +1 -30
- package/commonjs/HelloWave/HelloWave.js.map +1 -0
- package/commonjs/Hoverable/Hoverable.js +1 -58
- package/commonjs/Hoverable/Hoverable.js.map +1 -0
- package/commonjs/IconText/IconText.js +1 -46
- package/commonjs/IconText/IconText.js.map +1 -0
- package/commonjs/Icons/TapasIcon.js +1 -55
- package/commonjs/Icons/TapasIcon.js.map +1 -0
- package/commonjs/Icons/TapasIconExpo.js +1 -51
- package/commonjs/Icons/TapasIconExpo.js.map +1 -0
- package/commonjs/Icons/expoFontLoader.js +1 -148
- package/commonjs/Icons/expoFontLoader.js.map +1 -0
- package/commonjs/Icons/fontLoader.js +148 -318
- package/commonjs/Icons/fontLoader.js.map +1 -0
- package/commonjs/Icons/index.js +1 -11
- package/commonjs/Icons/index.js.map +1 -0
- package/commonjs/Icons/smartFontLoader.js +189 -376
- package/commonjs/Icons/smartFontLoader.js.map +1 -0
- package/commonjs/Image/Image.js +78 -138
- package/commonjs/Image/Image.js.map +1 -0
- package/commonjs/Image/PreviewImg.js +46 -98
- package/commonjs/Image/PreviewImg.js.map +1 -0
- package/commonjs/Input/Input.js +1 -37
- package/commonjs/Input/Input.js.map +1 -0
- package/commonjs/Layout/DrawerContext.js +1 -34
- package/commonjs/Layout/DrawerContext.js.map +1 -0
- package/commonjs/Layout/Layout.js +1 -27
- package/commonjs/Layout/Layout.js.map +1 -0
- package/commonjs/Layout/ToastContext.js +19 -67
- package/commonjs/Layout/ToastContext.js.map +1 -0
- package/commonjs/Layout/index.js +35 -37
- package/commonjs/Layout/index.js.map +1 -0
- package/commonjs/LineChart/LineChart.js +108 -132
- package/commonjs/LineChart/LineChart.js.map +1 -0
- package/commonjs/LineChart/index.js +1 -0
- package/commonjs/LineChart/index.js.map +1 -0
- package/commonjs/ListItem/ListItem.js +66 -132
- package/commonjs/ListItem/ListItem.js.map +1 -0
- package/commonjs/Loading/Loading.js +42 -83
- package/commonjs/Loading/Loading.js.map +1 -0
- package/commonjs/MessageBox/MessageBox.js +1 -50
- package/commonjs/MessageBox/MessageBox.js.map +1 -0
- package/commonjs/MultiSelector/MultiSelector.js +136 -226
- package/commonjs/MultiSelector/MultiSelector.js.map +1 -0
- package/commonjs/MultiSelector/index.js +1 -2
- package/commonjs/MultiSelector/index.js.map +1 -0
- package/commonjs/Navigation/Navigation.js +90 -157
- package/commonjs/Navigation/Navigation.js.map +1 -0
- package/commonjs/Notification/Notification.js +1 -0
- package/commonjs/Notification/Notification.js.map +1 -0
- package/commonjs/Notification/index.js +1 -2
- package/commonjs/Notification/index.js.map +1 -0
- package/commonjs/NumericInput/NumericInput.js +56 -92
- package/commonjs/NumericInput/NumericInput.js.map +1 -0
- package/commonjs/Overlay/Overlay.js +25 -45
- package/commonjs/Overlay/Overlay.js.map +1 -0
- package/commonjs/Pagination/Pagination.js +1 -0
- package/commonjs/Pagination/Pagination.js.map +1 -0
- package/commonjs/PieChart/PieChart.js +1 -40
- package/commonjs/PieChart/PieChart.js.map +1 -0
- package/commonjs/PieChart/index.js +1 -0
- package/commonjs/PieChart/index.js.map +1 -0
- package/commonjs/Popover/Popover.js +1 -45
- package/commonjs/Popover/Popover.js.map +1 -0
- package/commonjs/Progress/Progress.js +1 -0
- package/commonjs/Progress/Progress.js.map +1 -0
- package/commonjs/Quantity/Quantity.js +1 -69
- package/commonjs/Quantity/Quantity.js.map +1 -0
- package/commonjs/Quantity/index.js +4 -8
- package/commonjs/Quantity/index.js.map +1 -0
- package/commonjs/RadioButton/RadioButton.js +47 -94
- package/commonjs/RadioButton/RadioButton.js.map +1 -0
- package/commonjs/ReasonModal/ReasonModal.js +1 -69
- package/commonjs/ReasonModal/ReasonModal.js.map +1 -0
- package/commonjs/ReasonModal/index.js +10 -14
- package/commonjs/ReasonModal/index.js.map +1 -0
- package/commonjs/ScanButton/ScanButton.js +1 -27
- package/commonjs/ScanButton/ScanButton.js.map +1 -0
- package/commonjs/SearchInput/SearchInput.js +1 -60
- package/commonjs/SearchInput/SearchInput.js.map +1 -0
- package/commonjs/SearchInput/index.js +4 -8
- package/commonjs/SearchInput/index.js.map +1 -0
- package/commonjs/SheetTitle/SheetTitle.js +32 -34
- package/commonjs/SheetTitle/SheetTitle.js.map +1 -0
- package/commonjs/Shell/Shell.js +67 -120
- package/commonjs/Shell/Shell.js.map +1 -0
- package/commonjs/Shell/styles.js +3 -2
- package/commonjs/Shell/styles.js.map +1 -0
- package/commonjs/Shell/types.js +2 -1
- package/commonjs/Shell/types.js.map +1 -0
- package/commonjs/StatisticCard/StatisticCard.js +1 -12
- package/commonjs/StatisticCard/StatisticCard.js.map +1 -0
- package/commonjs/StatisticCard/index.js +1 -0
- package/commonjs/StatisticCard/index.js.map +1 -0
- package/commonjs/Status/Status.js +1 -16
- package/commonjs/Status/Status.js.map +1 -0
- package/commonjs/Steps/Steps.js +40 -43
- package/commonjs/Steps/Steps.js.map +1 -0
- package/commonjs/TabTitle/TabTitle.js +1 -33
- package/commonjs/TabTitle/TabTitle.js.map +1 -0
- package/commonjs/TabTitle/index.js +10 -14
- package/commonjs/TabTitle/index.js.map +1 -0
- package/commonjs/TableColumnHeader/TableColumnHeader.js +90 -154
- package/commonjs/TableColumnHeader/TableColumnHeader.js.map +1 -0
- package/commonjs/TableColumnHeader/index.js +10 -14
- package/commonjs/TableColumnHeader/index.js.map +1 -0
- package/commonjs/Tag/Tag.js +35 -88
- package/commonjs/Tag/Tag.js.map +1 -0
- package/commonjs/Task/Task.js +118 -124
- package/commonjs/Task/Task.js.map +1 -0
- package/commonjs/Task/type.js +1 -0
- package/commonjs/Task/type.js.map +1 -0
- package/commonjs/Text/Text.js +38 -103
- package/commonjs/Text/Text.js.map +1 -0
- package/commonjs/TextArea/TextArea.js +1 -81
- package/commonjs/TextArea/TextArea.js.map +1 -0
- package/commonjs/Theme/ThemeProvider.js +1 -0
- package/commonjs/Theme/ThemeProvider.js.map +1 -0
- package/commonjs/Theme/defaultTheme.js +1 -12
- package/commonjs/Theme/defaultTheme.js.map +1 -0
- package/commonjs/Theme/themed.d.js +1 -0
- package/commonjs/Theme/themed.d.js.map +1 -0
- package/commonjs/Timeline/Timeline.js +1 -0
- package/commonjs/Timeline/Timeline.js.map +1 -0
- package/commonjs/Toast/Toast.js +42 -94
- package/commonjs/Toast/Toast.js.map +1 -0
- package/commonjs/UserSwitcher/UserSwitcher.js +1 -76
- package/commonjs/UserSwitcher/UserSwitcher.js.map +1 -0
- package/commonjs/UserSwitcher/index.js +1 -0
- package/commonjs/UserSwitcher/index.js.map +1 -0
- package/commonjs/common.js +1 -0
- package/commonjs/common.js.map +1 -0
- package/commonjs/index.js +427 -335
- package/commonjs/index.js.map +1 -0
- package/module/Alert/Alert.js +1 -76
- package/module/Alert/Alert.js.map +1 -0
- package/module/AnimatedNavItem/AnimatedNavItem.js +78 -149
- package/module/AnimatedNavItem/AnimatedNavItem.js.map +1 -0
- package/module/AnimatedNavItem/index.js +1 -24
- package/module/AnimatedNavItem/index.js.map +1 -0
- package/module/BarChart/BarChart.js +1 -59
- package/module/BarChart/BarChart.js.map +1 -0
- package/module/BarChart/index.js +2 -13
- package/module/BarChart/index.js.map +1 -0
- package/module/Button/Button.js +1 -67
- package/module/Button/Button.js.map +1 -0
- package/module/Button/ButtonGroup.js +1 -88
- package/module/Button/ButtonGroup.js.map +1 -0
- package/module/Button/react-native-hoverable.d.js +1 -0
- package/module/Button/react-native-hoverable.d.js.map +1 -0
- package/module/Calendar/Calendar.base.js +1 -147
- package/module/Calendar/Calendar.base.js.map +1 -0
- package/module/Calendar/Calendar.js +47 -126
- package/module/Calendar/Calendar.js.map +1 -0
- package/module/Calendar/ConcreteTimeSelector.js +1 -172
- package/module/Calendar/ConcreteTimeSelector.js.map +1 -0
- package/module/Calendar/CustomRange.js +199 -281
- package/module/Calendar/CustomRange.js.map +1 -0
- package/module/Calendar/DaySelector.js +52 -121
- package/module/Calendar/DaySelector.js.map +1 -0
- package/module/Calendar/MonthSelector.js +1 -94
- package/module/Calendar/MonthSelector.js.map +1 -0
- package/module/Calendar/TimeSelector.js +1 -173
- package/module/Calendar/TimeSelector.js.map +1 -0
- package/module/Calendar/WeekDaySelector.js +53 -123
- package/module/Calendar/WeekDaySelector.js.map +1 -0
- package/module/Calendar/helper.js +1 -44
- package/module/Calendar/helper.js.map +1 -0
- package/module/Calendar/local.js +2 -7
- package/module/Calendar/local.js.map +1 -0
- package/module/Calendar/types.js +10 -15
- package/module/Calendar/types.js.map +1 -0
- package/module/Card/Card.js +155 -236
- package/module/Card/Card.js.map +1 -0
- package/module/CheckBox/CheckBox.js +38 -106
- package/module/CheckBox/CheckBox.js.map +1 -0
- package/module/CheckBox/CheckBoxItem.js +33 -91
- package/module/CheckBox/CheckBoxItem.js.map +1 -0
- package/module/CheckBox/GroupCheckBox.js +40 -107
- package/module/CheckBox/GroupCheckBox.js.map +1 -0
- package/module/CircularProgress/CircularProgress.js +1 -21
- package/module/CircularProgress/CircularProgress.js.map +1 -0
- package/module/Collapsible/Collapsible.js +52 -107
- package/module/Collapsible/Collapsible.js.map +1 -0
- package/module/DashboardCard/DashboardCard.js +54 -116
- package/module/DashboardCard/DashboardCard.js.map +1 -0
- package/module/DataCell/DataCell.js +1 -148
- package/module/DataCell/DataCell.js.map +1 -0
- package/module/DataCell/index.js +3 -31
- package/module/DataCell/index.js.map +1 -0
- package/module/DataTable/DataTable.js +1 -99
- package/module/DataTable/DataTable.js.map +1 -0
- package/module/DataTable/index.js +1 -9
- package/module/DataTable/index.js.map +1 -0
- package/module/DeviceSelectionModal/DeviceSelectionModal.js +241 -301
- package/module/DeviceSelectionModal/DeviceSelectionModal.js.map +1 -0
- package/module/DraggableFlatList/DraggableFlatList.js +1 -0
- package/module/DraggableFlatList/DraggableFlatList.js.map +1 -0
- package/module/Drawer/Drawer.js +1 -51
- package/module/Drawer/Drawer.js.map +1 -0
- package/module/Dropdown/CustomDropdown.js +1 -55
- package/module/Dropdown/CustomDropdown.js.map +1 -0
- package/module/Dropdown/Dropdown.js +408 -504
- package/module/Dropdown/Dropdown.js.map +1 -0
- package/module/Dropdown/InputDropdown.js +66 -146
- package/module/Dropdown/InputDropdown.js.map +1 -0
- package/module/ExternalLink/ExternalLink.js +1 -149
- package/module/ExternalLink/ExternalLink.js.map +1 -0
- package/module/Gantt/Accessories.js +1 -85
- package/module/Gantt/Accessories.js.map +1 -0
- package/module/Gantt/Gantt.js +119 -198
- package/module/Gantt/Gantt.js.map +1 -0
- package/module/Gantt/GanttInnerElementType.js +62 -133
- package/module/Gantt/GanttInnerElementType.js.map +1 -0
- package/module/Gantt/helper.js +1 -45
- package/module/Gantt/helper.js.map +1 -0
- package/module/Gantt/types.js +1 -1
- package/module/Gantt/types.js.map +1 -0
- package/module/Grid/FixedSizeGrid.js +1 -21
- package/module/Grid/FixedSizeGrid.js.map +1 -0
- package/module/Grid/Grid.base.js +1 -84
- package/module/Grid/Grid.base.js.map +1 -0
- package/module/Grid/StaticFixedSizeGrid.js +213 -282
- package/module/Grid/StaticFixedSizeGrid.js.map +1 -0
- package/module/Grid/VariableSizeGrid.js +1 -24
- package/module/Grid/VariableSizeGrid.js.map +1 -0
- package/module/Grid/helper.js +14 -19
- package/module/Grid/helper.js.map +1 -0
- package/module/Grid/timer.js +1 -8
- package/module/Grid/timer.js.map +1 -0
- package/module/Header/Header.js +127 -199
- package/module/Header/Header.js.map +1 -0
- package/module/HelloWave/HelloWave.js +1 -40
- package/module/HelloWave/HelloWave.js.map +1 -0
- package/module/Hoverable/Hoverable.js +27 -105
- package/module/Hoverable/Hoverable.js.map +1 -0
- package/module/IconText/IconText.js +43 -73
- package/module/IconText/IconText.js.map +1 -0
- package/module/Icons/TapasIcon.js +1 -85
- package/module/Icons/TapasIcon.js.map +1 -0
- package/module/Icons/TapasIconExpo.js +45 -112
- package/module/Icons/TapasIconExpo.js.map +1 -0
- package/module/Icons/expoFontLoader.js +1 -154
- package/module/Icons/expoFontLoader.js.map +1 -0
- package/module/Icons/fontLoader.js +1 -208
- package/module/Icons/fontLoader.js.map +1 -0
- package/module/Icons/index.js +1 -55
- package/module/Icons/index.js.map +1 -0
- package/module/Icons/smartFontLoader.js +189 -383
- package/module/Icons/smartFontLoader.js.map +1 -0
- package/module/Image/Image.js +1 -92
- package/module/Image/Image.js.map +1 -0
- package/module/Image/PreviewImg.js +42 -103
- package/module/Image/PreviewImg.js.map +1 -0
- package/module/Input/Input.js +1 -73
- package/module/Input/Input.js.map +1 -0
- package/module/Layout/DrawerContext.js +1 -68
- package/module/Layout/DrawerContext.js.map +1 -0
- package/module/Layout/Layout.js +80 -145
- package/module/Layout/Layout.js.map +1 -0
- package/module/Layout/ToastContext.js +1 -69
- package/module/Layout/ToastContext.js.map +1 -0
- package/module/Layout/index.js +15 -47
- package/module/Layout/index.js.map +1 -0
- package/module/LineChart/LineChart.js +107 -138
- package/module/LineChart/LineChart.js.map +1 -0
- package/module/LineChart/index.js +1 -9
- package/module/LineChart/index.js.map +1 -0
- package/module/ListItem/ListItem.js +1 -68
- package/module/ListItem/ListItem.js.map +1 -0
- package/module/Loading/Loading.js +1 -47
- package/module/Loading/Loading.js.map +1 -0
- package/module/MessageBox/MessageBox.js +1 -97
- package/module/MessageBox/MessageBox.js.map +1 -0
- package/module/MultiSelector/MultiSelector.js +131 -230
- package/module/MultiSelector/MultiSelector.js.map +1 -0
- package/module/MultiSelector/index.js +1 -15
- package/module/MultiSelector/index.js.map +1 -0
- package/module/Navigation/Navigation.js +1 -91
- package/module/Navigation/Navigation.js.map +1 -0
- package/module/Notification/Notification.js +64 -140
- package/module/Notification/Notification.js.map +1 -0
- package/module/Notification/index.js +1 -15
- package/module/Notification/index.js.map +1 -0
- package/module/NumericInput/NumericInput.js +1 -0
- package/module/NumericInput/NumericInput.js.map +1 -0
- package/module/Overlay/Overlay.js +1 -28
- package/module/Overlay/Overlay.js.map +1 -0
- package/module/Pagination/Pagination.js +1 -71
- package/module/Pagination/Pagination.js.map +1 -0
- package/module/PieChart/PieChart.js +58 -83
- package/module/PieChart/PieChart.js.map +1 -0
- package/module/PieChart/index.js +1 -9
- package/module/PieChart/index.js.map +1 -0
- package/module/Popover/Popover.js +1 -0
- package/module/Popover/Popover.js.map +1 -0
- package/module/Progress/Progress.js +48 -57
- package/module/Progress/Progress.js.map +1 -0
- package/module/Quantity/Quantity.js +49 -132
- package/module/Quantity/Quantity.js.map +1 -0
- package/module/Quantity/index.js +2 -18
- package/module/Quantity/index.js.map +1 -0
- package/module/RadioButton/RadioButton.js +1 -81
- package/module/RadioButton/RadioButton.js.map +1 -0
- package/module/ReasonModal/ReasonModal.js +117 -190
- package/module/ReasonModal/ReasonModal.js.map +1 -0
- package/module/ReasonModal/index.js +3 -31
- package/module/ReasonModal/index.js.map +1 -0
- package/module/ScanButton/ScanButton.js +1 -44
- package/module/ScanButton/ScanButton.js.map +1 -0
- package/module/SearchInput/SearchInput.js +75 -158
- package/module/SearchInput/SearchInput.js.map +1 -0
- package/module/SearchInput/index.js +2 -18
- package/module/SearchInput/index.js.map +1 -0
- package/module/SheetTitle/SheetTitle.js +1 -0
- package/module/SheetTitle/SheetTitle.js.map +1 -0
- package/module/Shell/Shell.js +1 -76
- package/module/Shell/Shell.js.map +1 -0
- package/module/Shell/styles.js +1 -5
- package/module/Shell/styles.js.map +1 -0
- package/module/Shell/types.js +2 -7
- package/module/Shell/types.js.map +1 -0
- package/module/StatisticCard/StatisticCard.js +34 -48
- package/module/StatisticCard/StatisticCard.js.map +1 -0
- package/module/StatisticCard/index.js +1 -7
- package/module/StatisticCard/index.js.map +1 -0
- package/module/Status/Status.js +1 -30
- package/module/Status/Status.js.map +1 -0
- package/module/Steps/Steps.js +38 -48
- package/module/Steps/Steps.js.map +1 -0
- package/module/TabTitle/TabTitle.js +1 -41
- package/module/TabTitle/TabTitle.js.map +1 -0
- package/module/TabTitle/index.js +1 -27
- package/module/TabTitle/index.js.map +1 -0
- package/module/TableColumnHeader/TableColumnHeader.js +88 -159
- package/module/TableColumnHeader/TableColumnHeader.js.map +1 -0
- package/module/TableColumnHeader/index.js +3 -31
- package/module/TableColumnHeader/index.js.map +1 -0
- package/module/Tag/Tag.js +31 -93
- package/module/Tag/Tag.js.map +1 -0
- package/module/Task/Task.js +1 -107
- package/module/Task/Task.js.map +1 -0
- package/module/Task/type.js +4 -9
- package/module/Task/type.js.map +1 -0
- package/module/Text/Text.js +1 -64
- package/module/Text/Text.js.map +1 -0
- package/module/TextArea/TextArea.js +1 -118
- package/module/TextArea/TextArea.js.map +1 -0
- package/module/Theme/ThemeProvider.js +1 -11
- package/module/Theme/ThemeProvider.js.map +1 -0
- package/module/Theme/defaultTheme.js +1 -19
- package/module/Theme/defaultTheme.js.map +1 -0
- package/module/Theme/themed.d.js +1 -0
- package/module/Theme/themed.d.js.map +1 -0
- package/module/Timeline/Timeline.js +1 -53
- package/module/Timeline/Timeline.js.map +1 -0
- package/module/Toast/Toast.js +38 -100
- package/module/Toast/Toast.js.map +1 -0
- package/module/UserSwitcher/UserSwitcher.js +119 -199
- package/module/UserSwitcher/UserSwitcher.js.map +1 -0
- package/module/UserSwitcher/index.js +1 -26
- package/module/UserSwitcher/index.js.map +1 -0
- package/module/common.js +4 -10
- package/module/common.js.map +1 -0
- package/module/index.js +1 -602
- package/module/index.js.map +1 -0
- package/package.json +1 -1
- package/typescript/Alert/Alert.d.ts.map +1 -0
- package/typescript/AnimatedNavItem/AnimatedNavItem.d.ts.map +1 -0
- package/typescript/AnimatedNavItem/index.d.ts.map +1 -0
- package/typescript/BarChart/BarChart.d.ts.map +1 -0
- package/typescript/BarChart/index.d.ts.map +1 -0
- package/typescript/Button/Button.d.ts.map +1 -0
- package/typescript/Button/ButtonGroup.d.ts.map +1 -0
- package/typescript/Calendar/Calendar.base.d.ts.map +1 -0
- package/typescript/Calendar/Calendar.d.ts.map +1 -0
- package/typescript/Calendar/ConcreteTimeSelector.d.ts.map +1 -0
- package/typescript/Calendar/CustomRange.d.ts.map +1 -0
- package/typescript/Calendar/DaySelector.d.ts.map +1 -0
- package/typescript/Calendar/MonthSelector.d.ts.map +1 -0
- package/typescript/Calendar/TimeSelector.d.ts.map +1 -0
- package/typescript/Calendar/WeekDaySelector.d.ts.map +1 -0
- package/typescript/Calendar/helper.d.ts.map +1 -0
- package/typescript/Calendar/local.d.ts.map +1 -0
- package/typescript/Calendar/types.d.ts.map +1 -0
- package/typescript/Card/Card.d.ts.map +1 -0
- package/typescript/CheckBox/CheckBox.d.ts.map +1 -0
- package/typescript/CheckBox/CheckBoxItem.d.ts.map +1 -0
- package/typescript/CheckBox/GroupCheckBox.d.ts.map +1 -0
- package/typescript/CircularProgress/CircularProgress.d.ts.map +1 -0
- package/typescript/Collapsible/Collapsible.d.ts.map +1 -0
- package/typescript/DashboardCard/DashboardCard.d.ts.map +1 -0
- package/typescript/DataCell/DataCell.d.ts.map +1 -0
- package/typescript/DataCell/index.d.ts.map +1 -0
- package/typescript/DataTable/DataTable.d.ts.map +1 -0
- package/typescript/DataTable/index.d.ts.map +1 -0
- package/typescript/DeviceSelectionModal/DeviceSelectionModal.d.ts.map +1 -0
- package/typescript/DraggableFlatList/DraggableFlatList.d.ts.map +1 -0
- package/typescript/Drawer/Drawer.d.ts.map +1 -0
- package/typescript/Dropdown/CustomDropdown.d.ts.map +1 -0
- package/typescript/Dropdown/Dropdown.d.ts.map +1 -0
- package/typescript/Dropdown/InputDropdown.d.ts.map +1 -0
- package/typescript/ExternalLink/ExternalLink.d.ts.map +1 -0
- package/typescript/Gantt/Accessories.d.ts.map +1 -0
- package/typescript/Gantt/Gantt.d.ts.map +1 -0
- package/typescript/Gantt/GanttInnerElementType.d.ts.map +1 -0
- package/typescript/Gantt/helper.d.ts.map +1 -0
- package/typescript/Gantt/types.d.ts.map +1 -0
- package/typescript/Grid/FixedSizeGrid.d.ts.map +1 -0
- package/typescript/Grid/Grid.base.d.ts.map +1 -0
- package/typescript/Grid/StaticFixedSizeGrid.d.ts.map +1 -0
- package/typescript/Grid/VariableSizeGrid.d.ts.map +1 -0
- package/typescript/Grid/helper.d.ts.map +1 -0
- package/typescript/Grid/timer.d.ts.map +1 -0
- package/typescript/Header/Header.d.ts.map +1 -0
- package/typescript/HelloWave/HelloWave.d.ts.map +1 -0
- package/typescript/Hoverable/Hoverable.d.ts.map +1 -0
- package/typescript/IconText/IconText.d.ts.map +1 -0
- package/typescript/Icons/TapasIcon.d.ts.map +1 -0
- package/typescript/Icons/TapasIconExpo.d.ts.map +1 -0
- package/typescript/Icons/expoFontLoader.d.ts.map +1 -0
- package/typescript/Icons/fontLoader.d.ts.map +1 -0
- package/typescript/Icons/index.d.ts.map +1 -0
- package/typescript/Icons/smartFontLoader.d.ts.map +1 -0
- package/typescript/Image/Image.d.ts.map +1 -0
- package/typescript/Image/PreviewImg.d.ts.map +1 -0
- package/typescript/Input/Input.d.ts.map +1 -0
- package/typescript/Layout/DrawerContext.d.ts.map +1 -0
- package/typescript/Layout/Layout.d.ts.map +1 -0
- package/typescript/Layout/ToastContext.d.ts.map +1 -0
- package/typescript/Layout/index.d.ts.map +1 -0
- package/typescript/LineChart/LineChart.d.ts.map +1 -0
- package/typescript/LineChart/index.d.ts.map +1 -0
- package/typescript/ListItem/ListItem.d.ts.map +1 -0
- package/typescript/Loading/Loading.d.ts.map +1 -0
- package/typescript/MessageBox/MessageBox.d.ts.map +1 -0
- package/typescript/MultiSelector/MultiSelector.d.ts.map +1 -0
- package/typescript/MultiSelector/index.d.ts.map +1 -0
- package/typescript/Navigation/Navigation.d.ts.map +1 -0
- package/typescript/Notification/Notification.d.ts.map +1 -0
- package/typescript/Notification/index.d.ts.map +1 -0
- package/typescript/NumericInput/NumericInput.d.ts.map +1 -0
- package/typescript/Overlay/Overlay.d.ts.map +1 -0
- package/typescript/Pagination/Pagination.d.ts.map +1 -0
- package/typescript/PieChart/PieChart.d.ts.map +1 -0
- package/typescript/PieChart/index.d.ts.map +1 -0
- package/typescript/Popover/Popover.d.ts.map +1 -0
- package/typescript/Progress/Progress.d.ts.map +1 -0
- package/typescript/Quantity/Quantity.d.ts.map +1 -0
- package/typescript/Quantity/index.d.ts.map +1 -0
- package/typescript/RadioButton/RadioButton.d.ts.map +1 -0
- package/typescript/ReasonModal/ReasonModal.d.ts.map +1 -0
- package/typescript/ReasonModal/index.d.ts.map +1 -0
- package/typescript/ScanButton/ScanButton.d.ts.map +1 -0
- package/typescript/SearchInput/SearchInput.d.ts.map +1 -0
- package/typescript/SearchInput/index.d.ts.map +1 -0
- package/typescript/SheetTitle/SheetTitle.d.ts.map +1 -0
- package/typescript/Shell/Shell.d.ts.map +1 -0
- package/typescript/Shell/styles.d.ts.map +1 -0
- package/typescript/Shell/types.d.ts.map +1 -0
- package/typescript/StatisticCard/StatisticCard.d.ts.map +1 -0
- package/typescript/StatisticCard/index.d.ts.map +1 -0
- package/typescript/Status/Status.d.ts.map +1 -0
- package/typescript/Steps/Steps.d.ts.map +1 -0
- package/typescript/TabTitle/TabTitle.d.ts.map +1 -0
- package/typescript/TabTitle/index.d.ts.map +1 -0
- package/typescript/TableColumnHeader/TableColumnHeader.d.ts.map +1 -0
- package/typescript/TableColumnHeader/index.d.ts.map +1 -0
- package/typescript/Tag/Tag.d.ts.map +1 -0
- package/typescript/Task/Task.d.ts.map +1 -0
- package/typescript/Task/type.d.ts.map +1 -0
- package/typescript/Text/Text.d.ts.map +1 -0
- package/typescript/TextArea/TextArea.d.ts.map +1 -0
- package/typescript/Theme/ThemeProvider.d.ts.map +1 -0
- package/typescript/Theme/defaultTheme.d.ts.map +1 -0
- package/typescript/Timeline/Timeline.d.ts.map +1 -0
- package/typescript/Toast/Toast.d.ts.map +1 -0
- package/typescript/UserSwitcher/UserSwitcher.d.ts.map +1 -0
- package/typescript/UserSwitcher/index.d.ts.map +1 -0
- package/typescript/common.d.ts.map +1 -0
- package/typescript/index.d.ts.map +1 -0
|
@@ -1,162 +1,76 @@
|
|
|
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 __spreadArray = void 0 && (void 0).__spreadArray || function (to, from, pack) {
|
|
55
|
-
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
56
|
-
if (ar || !(i in from)) {
|
|
57
|
-
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
58
|
-
ar[i] = from[i];
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
62
|
-
};
|
|
63
|
-
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
64
|
-
return mod && mod.__esModule ? mod : {
|
|
65
|
-
"default": mod
|
|
66
|
-
};
|
|
67
|
-
};
|
|
68
3
|
Object.defineProperty(exports, "__esModule", {
|
|
69
4
|
value: true
|
|
70
5
|
});
|
|
71
|
-
|
|
72
|
-
var
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
var
|
|
76
|
-
var
|
|
77
|
-
var
|
|
78
|
-
var
|
|
79
|
-
var
|
|
80
|
-
var
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
days
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
rowCount = _o[0],
|
|
115
|
-
setRowCount = _o[1];
|
|
116
|
-
var _p = (0, react_1.useState)(0),
|
|
117
|
-
selectedYear = _p[0],
|
|
118
|
-
setSelectedYear = _p[1];
|
|
119
|
-
var _q = (0, react_1.useState)(0),
|
|
120
|
-
selectedMonth = _q[0],
|
|
121
|
-
setSelectedMonth = _q[1];
|
|
122
|
-
var _r = (0, react_1.useState)(0),
|
|
123
|
-
selectedDay = _r[0],
|
|
124
|
-
setSelectedDay = _r[1];
|
|
125
|
-
var _s = (0, react_1.useState)(0),
|
|
126
|
-
innerConWidth = _s[0],
|
|
127
|
-
setInnerConWidth = _s[1];
|
|
128
|
-
var _t = (0, react_1.useState)(0),
|
|
129
|
-
innerConHeight = _t[0],
|
|
130
|
-
setInnerConHeight = _t[1];
|
|
131
|
-
var yearGrid = (0, react_1.useRef)(null);
|
|
132
|
-
var monthGrid = (0, react_1.useRef)(null);
|
|
133
|
-
var dayGrid = (0, react_1.useRef)(null);
|
|
134
|
-
(0, react_1.useEffect)(function () {
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
var _themed = require("@rneui/themed");
|
|
8
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var _reactNative = require("react-native");
|
|
10
|
+
var _Button = _interopRequireDefault(require("../Button/Button"));
|
|
11
|
+
var _types = require("./types");
|
|
12
|
+
var _TapasIcon = _interopRequireDefault(require("../Icons/TapasIcon"));
|
|
13
|
+
var _local = require("./local");
|
|
14
|
+
var _FixedSizeGrid = _interopRequireDefault(require("../Grid/FixedSizeGrid"));
|
|
15
|
+
var _helper = require("./helper");
|
|
16
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
17
|
+
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
+
const curDate = new Date();
|
|
20
|
+
const CustomRange = ({
|
|
21
|
+
backFn,
|
|
22
|
+
theme,
|
|
23
|
+
attachComplete,
|
|
24
|
+
rangeVal,
|
|
25
|
+
languageCode = _types.SupportLanguage.en
|
|
26
|
+
}) => {
|
|
27
|
+
const [curEditDate, setCurEditDate] = (0, _react.useState)("start");
|
|
28
|
+
const [range, setRnage] = (0, _react.useState)(rangeVal ?? []);
|
|
29
|
+
const [rangeDetail, setRangeDetail] = (0, _react.useState)([]);
|
|
30
|
+
const [rowHeight, setRowHeight] = (0, _react.useState)(52);
|
|
31
|
+
const years = (0, _helper.getYears)(curDate, languageCode);
|
|
32
|
+
const [days, setDays] = (0, _react.useState)([_local.locales[languageCode].any]);
|
|
33
|
+
const monthes = [_local.locales[languageCode].any, ..._local.locales[languageCode]?.monthNamesShort];
|
|
34
|
+
const [mid, setMid] = (0, _react.useState)(2);
|
|
35
|
+
const [rowCount, setRowCount] = (0, _react.useState)({
|
|
36
|
+
left: years.length + mid * 2,
|
|
37
|
+
center: monthes.length + mid * 2,
|
|
38
|
+
right: days.length + mid * 2
|
|
39
|
+
});
|
|
40
|
+
const [selectedYear, setSelectedYear] = (0, _react.useState)(0);
|
|
41
|
+
const [selectedMonth, setSelectedMonth] = (0, _react.useState)(0);
|
|
42
|
+
const [selectedDay, setSelectedDay] = (0, _react.useState)(0);
|
|
43
|
+
const [innerConWidth, setInnerConWidth] = (0, _react.useState)(0);
|
|
44
|
+
const [innerConHeight, setInnerConHeight] = (0, _react.useState)(0);
|
|
45
|
+
const yearGrid = (0, _react.useRef)(null);
|
|
46
|
+
const monthGrid = (0, _react.useRef)(null);
|
|
47
|
+
const dayGrid = (0, _react.useRef)(null);
|
|
48
|
+
(0, _react.useEffect)(() => {
|
|
135
49
|
if (selectedYear > 0 && selectedMonth > mid) {
|
|
136
|
-
setDays((0,
|
|
137
|
-
setRowCount(
|
|
50
|
+
setDays((0, _helper.getDays)(new Date(`${selectedYear - mid === years.length - 1 ? curDate.getFullYear() : years[selectedYear - mid]}-${selectedMonth - mid < 0 ? 1 : selectedMonth - mid}-01`), languageCode));
|
|
51
|
+
setRowCount({
|
|
52
|
+
...rowCount,
|
|
138
53
|
right: days.length + mid * 2
|
|
139
|
-
})
|
|
54
|
+
});
|
|
140
55
|
}
|
|
141
56
|
}, [selectedMonth, selectedYear]);
|
|
142
|
-
(0,
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
var obj = null;
|
|
57
|
+
(0, _react.useEffect)(() => {
|
|
58
|
+
let val = "";
|
|
59
|
+
let obj = null;
|
|
146
60
|
if (selectedMonth > mid) {
|
|
147
|
-
|
|
61
|
+
const month = selectedMonth - mid < 0 ? 1 : selectedMonth - mid;
|
|
148
62
|
if (month) {
|
|
149
63
|
obj = {
|
|
150
|
-
month
|
|
64
|
+
month
|
|
151
65
|
};
|
|
152
|
-
val +=
|
|
66
|
+
val += _local.locales[languageCode].monthNamesShort[month - 1];
|
|
153
67
|
if (selectedDay > mid) {
|
|
154
|
-
|
|
68
|
+
const day = selectedDay - mid < 0 ? 1 : selectedDay - mid;
|
|
155
69
|
if (day) {
|
|
156
70
|
if (obj) {
|
|
157
71
|
obj.day = day;
|
|
158
72
|
}
|
|
159
|
-
val +=
|
|
73
|
+
val += ` ${day.toString().padStart(2, "0")}`;
|
|
160
74
|
}
|
|
161
75
|
}
|
|
162
76
|
}
|
|
@@ -165,66 +79,75 @@ var CustomRange = function (_a) {
|
|
|
165
79
|
if (val) {
|
|
166
80
|
val += ", ";
|
|
167
81
|
}
|
|
168
|
-
|
|
82
|
+
const year = years[selectedYear - mid];
|
|
169
83
|
if (year) {
|
|
170
84
|
val += year;
|
|
171
|
-
obj =
|
|
85
|
+
obj = {
|
|
86
|
+
...(obj ?? {}),
|
|
172
87
|
year: parseInt(year)
|
|
173
|
-
}
|
|
88
|
+
};
|
|
174
89
|
}
|
|
175
90
|
}
|
|
176
91
|
if (curEditDate === "start") {
|
|
177
|
-
setRangeDetail([obj,
|
|
178
|
-
setRnage([val,
|
|
92
|
+
setRangeDetail([obj, rangeDetail[1] ?? null]);
|
|
93
|
+
setRnage([val, range[1] ?? ""]);
|
|
179
94
|
} else {
|
|
180
|
-
setRnage([
|
|
181
|
-
setRangeDetail([
|
|
95
|
+
setRnage([range[0] ?? "", val]);
|
|
96
|
+
setRangeDetail([rangeDetail[0] ?? null, obj]);
|
|
182
97
|
}
|
|
183
98
|
}, [selectedMonth, selectedYear, selectedDay]);
|
|
184
|
-
(0,
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
99
|
+
(0, _react.useEffect)(() => {
|
|
100
|
+
const {
|
|
101
|
+
year,
|
|
102
|
+
month,
|
|
103
|
+
day
|
|
104
|
+
} = rangeDetail[curEditDate === "start" ? 0 : 1] ?? {};
|
|
105
|
+
const newYearIndex = year ? years.indexOf(`${year}`) : years.length + mid * 2 - 1;
|
|
191
106
|
yearGrid.current.scrollToItem({
|
|
192
107
|
columnIndex: 0,
|
|
193
108
|
rowIndex: newYearIndex,
|
|
194
109
|
align: "auto"
|
|
195
110
|
});
|
|
196
|
-
|
|
111
|
+
const newMonthIndex = month ? month + mid * 2 : 0;
|
|
197
112
|
monthGrid.current.scrollToItem({
|
|
198
113
|
columnIndex: 0,
|
|
199
114
|
rowIndex: newMonthIndex,
|
|
200
115
|
align: "auto"
|
|
201
116
|
});
|
|
202
|
-
|
|
117
|
+
const newDayIndex = day ? day + mid * 2 : 0;
|
|
203
118
|
dayGrid.current.scrollToItem({
|
|
204
119
|
columnIndex: 0,
|
|
205
120
|
rowIndex: newDayIndex,
|
|
206
121
|
align: "auto"
|
|
207
122
|
});
|
|
208
123
|
}, [curEditDate, mid]);
|
|
124
|
+
|
|
209
125
|
// Inner Container Layout Event to set grid width and height
|
|
210
|
-
|
|
211
|
-
|
|
126
|
+
const handleInnerConWidthLayout = event => {
|
|
127
|
+
const {
|
|
128
|
+
width
|
|
129
|
+
} = event.nativeEvent.layout;
|
|
212
130
|
if (innerConWidth === 0) {
|
|
213
131
|
setInnerConWidth(width);
|
|
214
132
|
}
|
|
215
133
|
};
|
|
134
|
+
|
|
216
135
|
// Inner Container Layout Event to set grid width and height
|
|
217
|
-
|
|
218
|
-
|
|
136
|
+
const handleInnerConHeightLayout = event => {
|
|
137
|
+
const {
|
|
138
|
+
height
|
|
139
|
+
} = event.nativeEvent.layout;
|
|
219
140
|
if (innerConHeight === 0) {
|
|
220
141
|
setInnerConHeight(height);
|
|
142
|
+
|
|
221
143
|
// 矫正行高,和总行数,确保显示行为奇数, 中间行为选中行
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
144
|
+
const maxRowCount = Math.floor((height - 64) / rowHeight);
|
|
145
|
+
const adjustedRowCount = maxRowCount % 2 === 0 ? maxRowCount - 1 : maxRowCount;
|
|
146
|
+
const newRowHeight = (height - 64) / adjustedRowCount;
|
|
225
147
|
setRowHeight(newRowHeight);
|
|
148
|
+
|
|
226
149
|
// 设置中间行索引以及各列的选中行索引
|
|
227
|
-
|
|
150
|
+
const val = Math.floor((height - 64) / 2 / newRowHeight);
|
|
228
151
|
setMid(val);
|
|
229
152
|
setRowCount({
|
|
230
153
|
left: years.length + val * 2,
|
|
@@ -236,79 +159,74 @@ var CustomRange = function (_a) {
|
|
|
236
159
|
setSelectedYear(years.length + val * 2 - 1);
|
|
237
160
|
}
|
|
238
161
|
};
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
color: rowIndex === selectedDay ? theme.colors.primary : theme.colors.secondary
|
|
303
|
-
})
|
|
304
|
-
}, days[rowIndex - mid]));
|
|
305
|
-
};
|
|
306
|
-
return react_1.default.createElement(react_native_1.View, {
|
|
162
|
+
const renderRangeText = key => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
163
|
+
key: key,
|
|
164
|
+
style: key === "start" ? styles.range1 : styles.range2
|
|
165
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
166
|
+
type: "clear",
|
|
167
|
+
titleStyle: {
|
|
168
|
+
...styles.rangeText,
|
|
169
|
+
maxWidth: (innerConWidth - 102) / 2 - 8,
|
|
170
|
+
whiteSpace: "nowrap",
|
|
171
|
+
textOverflow: "ellipsis",
|
|
172
|
+
color: curEditDate === key ? theme.colors.primary : theme.colors.secondary
|
|
173
|
+
},
|
|
174
|
+
buttonStyle: styles.padding4,
|
|
175
|
+
onPress: () => setCurEditDate(key)
|
|
176
|
+
}, key === "start" ? range[0] || _local.locales[languageCode]?.anyStartDate : range[1] || _local.locales[languageCode]?.anyEndDate));
|
|
177
|
+
const renderListHeader = title => /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
178
|
+
key: title,
|
|
179
|
+
style: {
|
|
180
|
+
...styles.listHeadertext,
|
|
181
|
+
color: theme.colors.primary,
|
|
182
|
+
width: (innerConWidth - 20) / 3
|
|
183
|
+
}
|
|
184
|
+
}, title);
|
|
185
|
+
const YearCell = ({
|
|
186
|
+
rowIndex,
|
|
187
|
+
style
|
|
188
|
+
}) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
189
|
+
style: style
|
|
190
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
191
|
+
style: {
|
|
192
|
+
...styles.cell,
|
|
193
|
+
fontSize: rowIndex === selectedYear ? 16 : 14,
|
|
194
|
+
fontWeight: rowIndex === selectedYear ? "700" : "400",
|
|
195
|
+
color: rowIndex === selectedYear ? theme.colors.primary : theme.colors.secondary
|
|
196
|
+
}
|
|
197
|
+
}, years[rowIndex - mid]));
|
|
198
|
+
const MonthCell = ({
|
|
199
|
+
rowIndex,
|
|
200
|
+
style
|
|
201
|
+
}) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
202
|
+
style: style
|
|
203
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
204
|
+
style: {
|
|
205
|
+
...styles.cell,
|
|
206
|
+
fontSize: rowIndex === selectedMonth ? 16 : 14,
|
|
207
|
+
fontWeight: rowIndex === selectedMonth ? "700" : "400",
|
|
208
|
+
color: rowIndex === selectedMonth ? theme.colors.primary : theme.colors.secondary
|
|
209
|
+
}
|
|
210
|
+
}, monthes[rowIndex - mid]));
|
|
211
|
+
const DayCell = ({
|
|
212
|
+
rowIndex,
|
|
213
|
+
style
|
|
214
|
+
}) => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
215
|
+
style: style
|
|
216
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
217
|
+
style: {
|
|
218
|
+
...styles.cell,
|
|
219
|
+
fontSize: rowIndex === selectedDay ? 16 : 14,
|
|
220
|
+
fontWeight: rowIndex === selectedDay ? "700" : "400",
|
|
221
|
+
color: rowIndex === selectedDay ? theme.colors.primary : theme.colors.secondary
|
|
222
|
+
}
|
|
223
|
+
}, days[rowIndex - mid]));
|
|
224
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
307
225
|
style: styles.container
|
|
308
|
-
},
|
|
226
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
309
227
|
style: styles.header,
|
|
310
228
|
onLayout: handleInnerConWidthLayout
|
|
311
|
-
},
|
|
229
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
312
230
|
containerStyle: styles.backBtn,
|
|
313
231
|
buttonStyle: {
|
|
314
232
|
paddingTop: 4.5,
|
|
@@ -316,37 +234,41 @@ var CustomRange = function (_a) {
|
|
|
316
234
|
},
|
|
317
235
|
onPress: backFn,
|
|
318
236
|
type: "clear",
|
|
319
|
-
icon:
|
|
237
|
+
icon: /*#__PURE__*/_react.default.createElement(_TapasIcon.default, {
|
|
320
238
|
size: 24,
|
|
321
239
|
color: theme.colors.primary,
|
|
322
240
|
name: "back"
|
|
323
241
|
})
|
|
324
|
-
}),
|
|
242
|
+
}), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
325
243
|
style: styles.rangeTextCon
|
|
326
|
-
}, renderRangeText("start"),
|
|
327
|
-
style:
|
|
244
|
+
}, renderRangeText("start"), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
245
|
+
style: {
|
|
246
|
+
...styles.rangeText,
|
|
328
247
|
color: theme.colors.secondary
|
|
329
|
-
}
|
|
330
|
-
}, "-"), renderRangeText("end")),
|
|
248
|
+
}
|
|
249
|
+
}, "-"), renderRangeText("end")), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
331
250
|
style: styles.backBtn
|
|
332
|
-
})),
|
|
251
|
+
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
333
252
|
style: styles.main,
|
|
334
253
|
onLayout: handleInnerConHeightLayout
|
|
335
|
-
},
|
|
254
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
336
255
|
style: styles.listHeader
|
|
337
|
-
}, renderListHeader(
|
|
256
|
+
}, renderListHeader(_local.locales[languageCode].year), renderListHeader(_local.locales[languageCode].month), renderListHeader(_local.locales[languageCode].day)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
338
257
|
style: styles.flatlistCon
|
|
339
|
-
},
|
|
258
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
340
259
|
key: "year-grid",
|
|
341
|
-
style:
|
|
260
|
+
style: {
|
|
261
|
+
...styles.scrollCon,
|
|
342
262
|
backgroundColor: theme.colors.grey5,
|
|
343
263
|
borderTopLeftRadius: 8,
|
|
344
264
|
borderBottomLeftRadius: 8
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
onScroll:
|
|
348
|
-
|
|
349
|
-
|
|
265
|
+
}
|
|
266
|
+
}, /*#__PURE__*/_react.default.createElement(_FixedSizeGrid.default, {
|
|
267
|
+
onScroll: event => {
|
|
268
|
+
const {
|
|
269
|
+
scrollTop
|
|
270
|
+
} = event;
|
|
271
|
+
const index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
|
|
350
272
|
setSelectedYear(index);
|
|
351
273
|
},
|
|
352
274
|
style: {
|
|
@@ -360,15 +282,18 @@ var CustomRange = function (_a) {
|
|
|
360
282
|
rowCount: rowCount.left,
|
|
361
283
|
rowHeight: rowHeight,
|
|
362
284
|
ref: yearGrid
|
|
363
|
-
}, YearCell)),
|
|
285
|
+
}, YearCell)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
364
286
|
key: "month-grid",
|
|
365
|
-
style:
|
|
287
|
+
style: {
|
|
288
|
+
...styles.scrollCon,
|
|
366
289
|
backgroundColor: theme.colors.grey5
|
|
367
|
-
}
|
|
368
|
-
},
|
|
369
|
-
onScroll:
|
|
370
|
-
|
|
371
|
-
|
|
290
|
+
}
|
|
291
|
+
}, /*#__PURE__*/_react.default.createElement(_FixedSizeGrid.default, {
|
|
292
|
+
onScroll: event => {
|
|
293
|
+
const {
|
|
294
|
+
scrollTop
|
|
295
|
+
} = event;
|
|
296
|
+
const index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
|
|
372
297
|
setSelectedMonth(index);
|
|
373
298
|
},
|
|
374
299
|
style: {
|
|
@@ -382,17 +307,20 @@ var CustomRange = function (_a) {
|
|
|
382
307
|
rowCount: rowCount.center,
|
|
383
308
|
rowHeight: rowHeight,
|
|
384
309
|
ref: monthGrid
|
|
385
|
-
}, MonthCell)),
|
|
310
|
+
}, MonthCell)), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
386
311
|
key: "day-grid",
|
|
387
|
-
style:
|
|
312
|
+
style: {
|
|
313
|
+
...styles.scrollCon,
|
|
388
314
|
backgroundColor: theme.colors.grey5,
|
|
389
315
|
borderTopRightRadius: 8,
|
|
390
316
|
borderBottomRightRadius: 8
|
|
391
|
-
}
|
|
392
|
-
},
|
|
393
|
-
onScroll:
|
|
394
|
-
|
|
395
|
-
|
|
317
|
+
}
|
|
318
|
+
}, /*#__PURE__*/_react.default.createElement(_FixedSizeGrid.default, {
|
|
319
|
+
onScroll: event => {
|
|
320
|
+
const {
|
|
321
|
+
scrollTop
|
|
322
|
+
} = event;
|
|
323
|
+
const index = Math.floor((scrollTop + (innerConHeight - 64) / 2) / rowHeight);
|
|
396
324
|
setSelectedDay(index);
|
|
397
325
|
},
|
|
398
326
|
style: {
|
|
@@ -406,26 +334,24 @@ var CustomRange = function (_a) {
|
|
|
406
334
|
rowCount: rowCount.right,
|
|
407
335
|
rowHeight: rowHeight,
|
|
408
336
|
ref: dayGrid
|
|
409
|
-
}, DayCell)))),
|
|
337
|
+
}, DayCell)))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
410
338
|
style: styles.footer
|
|
411
|
-
},
|
|
339
|
+
}, /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
412
340
|
type: "clear",
|
|
413
|
-
onPress:
|
|
341
|
+
onPress: () => {
|
|
414
342
|
setRangeDetail([]);
|
|
415
343
|
setRnage([]);
|
|
416
344
|
// TODO reset sroll
|
|
417
345
|
}
|
|
418
|
-
},
|
|
419
|
-
onPress:
|
|
346
|
+
}, _local.locales[languageCode]?.reset), curEditDate === "end" ? /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
347
|
+
onPress: () => {
|
|
420
348
|
attachComplete && attachComplete(rangeDetail);
|
|
421
349
|
}
|
|
422
|
-
},
|
|
423
|
-
onPress:
|
|
424
|
-
|
|
425
|
-
}
|
|
426
|
-
}, (_e = local_1.locales[languageCode]) === null || _e === void 0 ? void 0 : _e.next)));
|
|
350
|
+
}, _local.locales[languageCode]?.done) : /*#__PURE__*/_react.default.createElement(_Button.default, {
|
|
351
|
+
onPress: () => setCurEditDate("end")
|
|
352
|
+
}, _local.locales[languageCode]?.next)));
|
|
427
353
|
};
|
|
428
|
-
|
|
354
|
+
const styles = _reactNative.StyleSheet.create({
|
|
429
355
|
container: {
|
|
430
356
|
display: "flex",
|
|
431
357
|
flexDirection: "column",
|
|
@@ -545,4 +471,5 @@ var styles = react_native_1.StyleSheet.create({
|
|
|
545
471
|
textAlign: "center"
|
|
546
472
|
}
|
|
547
473
|
});
|
|
548
|
-
exports.default = (0,
|
|
474
|
+
var _default = exports.default = (0, _themed.withTheme)(CustomRange);
|
|
475
|
+
//# sourceMappingURL=CustomRange.js.map
|