@beppla/tapas-ui 1.0.67 → 1.0.69
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/commonjs/Alert/Alert.js +1 -2
- package/commonjs/AnimatedNavItem/AnimatedNavItem.js +1 -2
- package/commonjs/AnimatedNavItem/index.js +15 -10
- package/commonjs/BarChart/BarChart.js +90 -113
- package/commonjs/BarChart/index.js +0 -1
- package/commonjs/Button/Button.js +78 -97
- package/commonjs/Button/ButtonGroup.js +1 -2
- package/commonjs/Button/react-native-hoverable.d.js +0 -1
- package/commonjs/Calendar/Calendar.base.js +190 -163
- package/commonjs/Calendar/Calendar.js +102 -87
- package/commonjs/Calendar/ConcreteTimeSelector.js +271 -221
- package/commonjs/Calendar/CustomRange.js +324 -272
- package/commonjs/Calendar/DaySelector.js +0 -1
- package/commonjs/Calendar/MonthSelector.js +0 -1
- package/commonjs/Calendar/TimeSelector.js +274 -224
- package/commonjs/Calendar/WeekDaySelector.js +0 -1
- package/commonjs/Calendar/helper.js +68 -69
- package/commonjs/Calendar/local.js +1 -2
- package/commonjs/Calendar/types.js +10 -11
- package/commonjs/Card/Card.js +150 -160
- package/commonjs/CheckBox/CheckBox.js +1 -2
- package/commonjs/CheckBox/CheckBoxItem.js +1 -2
- package/commonjs/CheckBox/GroupCheckBox.js +80 -68
- package/commonjs/CircularProgress/CircularProgress.js +0 -12
- package/commonjs/Collapsible/Collapsible.js +102 -56
- package/commonjs/DashboardCard/DashboardCard.js +94 -75
- package/commonjs/DataCell/DataCell.js +205 -260
- package/commonjs/DataCell/index.js +0 -1
- package/commonjs/DataTable/DataTable.js +136 -142
- package/commonjs/DataTable/index.js +0 -1
- package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js +244 -243
- package/commonjs/DraggableFlatList/DraggableFlatList.js +9 -12
- package/commonjs/Drawer/Drawer.js +140 -160
- package/commonjs/Dropdown/CustomDropdown.js +0 -1
- package/commonjs/Dropdown/Dropdown.js +1 -2
- package/commonjs/Dropdown/InputDropdown.js +123 -115
- package/commonjs/ExternalLink/ExternalLink.js +50 -59
- package/commonjs/Gantt/Accessories.js +168 -136
- package/commonjs/Gantt/Gantt.js +0 -1
- package/commonjs/Gantt/GanttInnerElementType.js +102 -94
- package/commonjs/Gantt/helper.js +1 -2
- package/commonjs/Gantt/types.js +0 -1
- package/commonjs/Grid/FixedSizeGrid.js +76 -83
- package/commonjs/Grid/Grid.base.js +374 -358
- package/commonjs/Grid/StaticFixedSizeGrid.js +0 -1
- package/commonjs/Grid/VariableSizeGrid.js +113 -121
- package/commonjs/Grid/helper.js +0 -1
- package/commonjs/Grid/timer.js +4 -9
- package/commonjs/Header/Header.js +1 -2
- package/commonjs/HelloWave/HelloWave.js +1 -2
- package/commonjs/Hoverable/Hoverable.js +1 -2
- package/commonjs/IconText/IconText.js +0 -1
- package/commonjs/Icons/.!11492!expoFontLoader.js +205 -0
- package/commonjs/Icons/TapasIcon.js +1 -2
- package/commonjs/Icons/TapasIconExpo.js +94 -102
- package/commonjs/Icons/expoFontLoader.js +1 -2
- package/commonjs/Icons/fontLoader.js +0 -1
- package/commonjs/Icons/index.js +1 -2
- package/commonjs/Icons/smartFontLoader.js +222 -267
- package/commonjs/Image/Image.js +96 -107
- package/commonjs/Image/PreviewImg.js +63 -86
- package/commonjs/Input/Input.js +1 -2
- package/commonjs/Layout/DrawerContext.js +35 -1
- package/commonjs/Layout/Layout.js +1 -2
- package/commonjs/Layout/ToastContext.js +0 -1
- package/commonjs/Layout/index.js +34 -39
- package/commonjs/LineChart/LineChart.js +144 -127
- package/commonjs/LineChart/index.js +0 -1
- package/commonjs/ListItem/ListItem.js +0 -1
- package/commonjs/Loading/Loading.js +1 -2
- package/commonjs/MessageBox/MessageBox.js +126 -128
- package/commonjs/MultiSelector/MultiSelector.js +0 -1
- package/commonjs/MultiSelector/index.js +8 -4
- package/commonjs/Navigation/Navigation.js +0 -1
- package/commonjs/Notification/Notification.js +1 -2
- package/commonjs/Notification/index.js +8 -7
- package/commonjs/NumericInput/NumericInput.js +0 -24
- package/commonjs/Overlay/Overlay.js +30 -30
- package/commonjs/Pagination/Pagination.js +139 -121
- package/commonjs/PieChart/PieChart.js +97 -75
- package/commonjs/PieChart/index.js +3 -3
- package/commonjs/Popover/Popover.js +137 -113
- package/commonjs/Progress/Progress.js +0 -1
- package/commonjs/Quantity/Quantity.js +122 -118
- package/commonjs/Quantity/index.js +3 -1
- package/commonjs/RadioButton/RadioButton.js +46 -95
- package/commonjs/ReasonModal/ReasonModal.js +122 -126
- package/commonjs/ReasonModal/index.js +15 -10
- package/commonjs/ScanButton/ScanButton.js +64 -51
- package/commonjs/SearchInput/SearchInput.js +0 -1
- package/commonjs/SearchInput/index.js +8 -7
- package/commonjs/SheetTitle/SheetTitle.js +1 -2
- package/commonjs/Shell/Shell.js +92 -85
- package/commonjs/Shell/styles.js +0 -1
- package/commonjs/Shell/types.js +0 -1
- package/commonjs/StatisticCard/StatisticCard.js +47 -42
- package/commonjs/StatisticCard/index.js +1 -2
- package/commonjs/Status/Status.js +0 -1
- package/commonjs/Steps/Steps.js +43 -40
- package/commonjs/TabTitle/TabTitle.js +0 -1
- package/commonjs/TabTitle/index.js +1 -2
- package/commonjs/TableColumnHeader/TableColumnHeader.js +140 -135
- package/commonjs/TableColumnHeader/index.js +15 -10
- package/commonjs/Tag/Tag.js +1 -2
- package/commonjs/Task/Task.js +0 -1
- package/commonjs/Task/type.js +0 -1
- package/commonjs/Text/Text.js +1 -2
- package/commonjs/TextArea/TextArea.js +82 -1
- package/commonjs/Theme/ThemeProvider.js +1 -2
- package/commonjs/Theme/defaultTheme.js +18 -11
- package/commonjs/Theme/themed.d.js +0 -1
- package/commonjs/Timeline/Timeline.js +1 -2
- package/commonjs/Toast/Toast.js +41 -95
- package/commonjs/UserSwitcher/UserSwitcher.js +0 -1
- package/commonjs/UserSwitcher/index.js +14 -9
- package/commonjs/common.js +4 -6
- package/commonjs/index.js +426 -337
- package/module/Alert/Alert.js +51 -72
- package/module/AnimatedNavItem/AnimatedNavItem.js +1 -2
- package/module/AnimatedNavItem/index.js +2 -7
- package/module/BarChart/BarChart.js +0 -1
- package/module/BarChart/index.js +1 -2
- package/module/Button/Button.js +80 -72
- package/module/Button/ButtonGroup.js +129 -121
- package/module/Button/react-native-hoverable.d.js +0 -1
- package/module/Calendar/Calendar.base.js +0 -1
- package/module/Calendar/Calendar.js +80 -77
- package/module/Calendar/ConcreteTimeSelector.js +0 -1
- package/module/Calendar/CustomRange.js +258 -358
- package/module/Calendar/DaySelector.js +95 -119
- package/module/Calendar/MonthSelector.js +1 -2
- package/module/Calendar/TimeSelector.js +215 -308
- package/module/Calendar/WeekDaySelector.js +98 -123
- package/module/Calendar/helper.js +74 -75
- package/module/Calendar/local.js +0 -1
- package/module/Calendar/types.js +1 -2
- package/module/Card/Card.js +0 -134
- package/module/CheckBox/CheckBox.js +93 -90
- package/module/CheckBox/CheckBoxItem.js +69 -85
- package/module/CheckBox/GroupCheckBox.js +0 -1
- package/module/CircularProgress/CircularProgress.js +1 -2
- package/module/Collapsible/Collapsible.js +66 -1
- package/module/DashboardCard/DashboardCard.js +80 -89
- package/module/DataCell/DataCell.js +311 -225
- package/module/DataCell/index.js +1 -2
- package/module/DataTable/DataTable.js +0 -101
- package/module/DataTable/index.js +4 -3
- package/module/DeviceSelectionModal/DeviceSelectionModal.js +0 -125
- package/module/DraggableFlatList/DraggableFlatList.js +0 -1
- package/module/Drawer/Drawer.js +0 -1
- package/module/Dropdown/CustomDropdown.js +212 -161
- package/module/Dropdown/Dropdown.js +484 -409
- package/module/Dropdown/InputDropdown.js +116 -135
- package/module/ExternalLink/ExternalLink.js +1 -2
- package/module/Gantt/Accessories.js +176 -150
- package/module/Gantt/Gantt.js +0 -1
- package/module/Gantt/GanttInnerElementType.js +0 -1
- package/module/Gantt/helper.js +0 -1
- package/module/Gantt/types.js +1 -2
- package/module/Grid/FixedSizeGrid.js +80 -87
- package/module/Grid/Grid.base.js +339 -402
- package/module/Grid/StaticFixedSizeGrid.js +1 -2
- package/module/Grid/VariableSizeGrid.js +121 -119
- package/module/Grid/helper.js +0 -1
- package/module/Grid/timer.js +1 -2
- package/module/Header/Header.js +1 -2
- package/module/HelloWave/HelloWave.js +43 -54
- package/module/Hoverable/Hoverable.js +1 -2
- package/module/IconText/IconText.js +1 -2
- package/module/Icons/TapasIcon.js +120 -97
- package/module/Icons/TapasIconExpo.js +0 -1
- package/module/Icons/expoFontLoader.js +1 -2
- package/module/Icons/fontLoader.js +0 -1
- package/module/Icons/index.js +9 -11
- package/module/Icons/smartFontLoader.js +0 -1
- package/module/Image/Image.js +1 -2
- package/module/Image/PreviewImg.js +76 -80
- package/module/Input/Input.js +34 -113
- package/module/Layout/DrawerContext.js +18 -30
- package/module/Layout/Layout.js +0 -1
- package/module/Layout/ToastContext.js +0 -1
- package/module/Layout/index.js +14 -16
- package/module/LineChart/LineChart.js +0 -1
- package/module/LineChart/index.js +1 -2
- package/module/ListItem/ListItem.js +98 -106
- package/module/Loading/Loading.js +67 -66
- package/module/MessageBox/MessageBox.js +137 -99
- package/module/MultiSelector/MultiSelector.js +229 -321
- package/module/MultiSelector/index.js +3 -3
- package/module/Navigation/Navigation.js +1 -2
- package/module/Notification/Notification.js +0 -1
- package/module/Notification/index.js +0 -17
- package/module/NumericInput/NumericInput.js +1 -2
- package/module/Overlay/Overlay.js +0 -30
- package/module/Pagination/Pagination.js +139 -135
- package/module/PieChart/PieChart.js +0 -1
- package/module/PieChart/index.js +1 -2
- package/module/Popover/Popover.js +117 -148
- package/module/Progress/Progress.js +1 -2
- package/module/Quantity/Quantity.js +112 -130
- package/module/Quantity/index.js +16 -1
- package/module/RadioButton/RadioButton.js +1 -2
- package/module/ReasonModal/ReasonModal.js +1 -2
- package/module/ReasonModal/index.js +0 -28
- package/module/ScanButton/ScanButton.js +0 -46
- package/module/SearchInput/SearchInput.js +1 -2
- package/module/SearchInput/index.js +3 -3
- package/module/SheetTitle/SheetTitle.js +35 -41
- package/module/Shell/Shell.js +79 -93
- package/module/Shell/styles.js +8 -9
- package/module/Shell/types.js +0 -1
- package/module/StatisticCard/StatisticCard.js +79 -49
- package/module/StatisticCard/index.js +1 -2
- package/module/Status/Status.js +1 -2
- package/module/Steps/Steps.js +1 -2
- package/module/TabTitle/TabTitle.js +0 -1
- package/module/TabTitle/index.js +1 -2
- package/module/TableColumnHeader/TableColumnHeader.js +0 -1
- package/module/TableColumnHeader/index.js +2 -8
- package/module/Tag/Tag.js +87 -73
- package/module/Task/Task.js +108 -1
- package/module/Task/type.js +0 -1
- package/module/Text/Text.js +70 -81
- package/module/TextArea/TextArea.js +0 -120
- package/module/Theme/ThemeProvider.js +1 -2
- package/module/Theme/defaultTheme.js +0 -21
- package/module/Theme/themed.d.js +0 -1
- package/module/Timeline/Timeline.js +0 -55
- package/module/Toast/Toast.js +1 -2
- package/module/UserSwitcher/UserSwitcher.js +171 -131
- package/module/UserSwitcher/index.js +2 -5
- package/module/common.js +8 -8
- package/module/index.js +131 -121
- package/package.json +2 -2
- package/commonjs/Alert/Alert.js.map +0 -2
- package/commonjs/AnimatedNavItem/AnimatedNavItem.js.map +0 -2
- package/commonjs/AnimatedNavItem/index.js.map +0 -1
- package/commonjs/BarChart/BarChart.js.map +0 -1
- package/commonjs/BarChart/index.js.map +0 -2
- package/commonjs/Button/Button.js.map +0 -2
- package/commonjs/Button/ButtonGroup.js.map +0 -2
- package/commonjs/Button/react-native-hoverable.d.js.map +0 -1
- package/commonjs/Calendar/Calendar.base.js.map +0 -1
- package/commonjs/Calendar/Calendar.js.map +0 -2
- package/commonjs/Calendar/ConcreteTimeSelector.js.map +0 -2
- package/commonjs/Calendar/CustomRange.js.map +0 -1
- package/commonjs/Calendar/DaySelector.js.map +0 -1
- package/commonjs/Calendar/MonthSelector.js.map +0 -1
- package/commonjs/Calendar/TimeSelector.js.map +0 -1
- package/commonjs/Calendar/WeekDaySelector.js.map +0 -1
- package/commonjs/Calendar/helper.js.map +0 -2
- package/commonjs/Calendar/local.js.map +0 -2
- package/commonjs/Calendar/types.js.map +0 -1
- package/commonjs/Card/Card.js.map +0 -2
- package/commonjs/CheckBox/CheckBox.js.map +0 -2
- package/commonjs/CheckBox/CheckBoxItem.js.map +0 -2
- package/commonjs/CheckBox/GroupCheckBox.js.map +0 -2
- package/commonjs/CircularProgress/CircularProgress.js.map +0 -2
- package/commonjs/Collapsible/Collapsible.js.map +0 -2
- package/commonjs/DashboardCard/DashboardCard.js.map +0 -2
- package/commonjs/DataCell/DataCell.js.map +0 -1
- package/commonjs/DataCell/index.js.map +0 -2
- package/commonjs/DataTable/DataTable.js.map +0 -1
- package/commonjs/DataTable/index.js.map +0 -1
- package/commonjs/DeviceSelectionModal/DeviceSelectionModal.js.map +0 -1
- package/commonjs/DraggableFlatList/DraggableFlatList.js.map +0 -1
- package/commonjs/Drawer/Drawer.js.map +0 -2
- package/commonjs/Dropdown/CustomDropdown.js.map +0 -1
- package/commonjs/Dropdown/Dropdown.js.map +0 -2
- package/commonjs/Dropdown/InputDropdown.js.map +0 -2
- package/commonjs/ExternalLink/ExternalLink.js.map +0 -1
- package/commonjs/Gantt/Accessories.js.map +0 -1
- package/commonjs/Gantt/Gantt.js.map +0 -1
- package/commonjs/Gantt/GanttInnerElementType.js.map +0 -2
- package/commonjs/Gantt/helper.js.map +0 -2
- package/commonjs/Gantt/types.js.map +0 -1
- package/commonjs/Grid/FixedSizeGrid.js.map +0 -1
- package/commonjs/Grid/Grid.base.js.map +0 -1
- package/commonjs/Grid/StaticFixedSizeGrid.js.map +0 -2
- package/commonjs/Grid/VariableSizeGrid.js.map +0 -2
- package/commonjs/Grid/helper.js.map +0 -2
- package/commonjs/Grid/timer.js.map +0 -1
- package/commonjs/Header/Header.js.map +0 -2
- package/commonjs/HelloWave/HelloWave.js.map +0 -2
- package/commonjs/Hoverable/Hoverable.js.map +0 -2
- package/commonjs/IconText/IconText.js.map +0 -1
- package/commonjs/Icons/TapasIcon.js.map +0 -2
- package/commonjs/Icons/TapasIconExpo.js.map +0 -1
- package/commonjs/Icons/expoFontLoader.js.map +0 -2
- package/commonjs/Icons/fontLoader.js.map +0 -2
- package/commonjs/Icons/index.js.map +0 -2
- package/commonjs/Icons/smartFontLoader.js.map +0 -2
- package/commonjs/Image/Image.js.map +0 -1
- package/commonjs/Image/PreviewImg.js.map +0 -2
- package/commonjs/Input/Input.js.map +0 -2
- package/commonjs/Layout/DrawerContext.js.map +0 -1
- package/commonjs/Layout/Layout.js.map +0 -2
- package/commonjs/Layout/ToastContext.js.map +0 -2
- package/commonjs/Layout/index.js.map +0 -1
- package/commonjs/LineChart/LineChart.js.map +0 -2
- package/commonjs/LineChart/index.js.map +0 -2
- package/commonjs/ListItem/ListItem.js.map +0 -1
- package/commonjs/Loading/Loading.js.map +0 -2
- package/commonjs/MessageBox/MessageBox.js.map +0 -2
- package/commonjs/MultiSelector/MultiSelector.js.map +0 -1
- package/commonjs/MultiSelector/index.js.map +0 -1
- package/commonjs/Navigation/Navigation.js.map +0 -2
- package/commonjs/Notification/Notification.js.map +0 -2
- package/commonjs/Notification/index.js.map +0 -2
- package/commonjs/NumericInput/NumericInput.js.map +0 -2
- package/commonjs/Overlay/Overlay.js.map +0 -2
- package/commonjs/Pagination/Pagination.js.map +0 -2
- package/commonjs/PieChart/PieChart.js.map +0 -2
- package/commonjs/PieChart/index.js.map +0 -2
- package/commonjs/Popover/Popover.js.map +0 -1
- package/commonjs/Progress/Progress.js.map +0 -1
- package/commonjs/Quantity/Quantity.js.map +0 -2
- package/commonjs/Quantity/index.js.map +0 -1
- package/commonjs/RadioButton/RadioButton.js.map +0 -1
- package/commonjs/ReasonModal/ReasonModal.js.map +0 -2
- package/commonjs/ReasonModal/index.js.map +0 -1
- package/commonjs/ScanButton/ScanButton.js.map +0 -1
- package/commonjs/SearchInput/SearchInput.js.map +0 -2
- package/commonjs/SearchInput/index.js.map +0 -2
- package/commonjs/SheetTitle/SheetTitle.js.map +0 -2
- package/commonjs/Shell/Shell.js.map +0 -2
- package/commonjs/Shell/styles.js.map +0 -2
- package/commonjs/Shell/types.js.map +0 -2
- package/commonjs/StatisticCard/StatisticCard.js.map +0 -1
- package/commonjs/StatisticCard/index.js.map +0 -2
- package/commonjs/Status/Status.js.map +0 -1
- package/commonjs/Steps/Steps.js.map +0 -1
- package/commonjs/TabTitle/TabTitle.js.map +0 -1
- package/commonjs/TabTitle/index.js.map +0 -2
- package/commonjs/TableColumnHeader/TableColumnHeader.js.map +0 -2
- package/commonjs/TableColumnHeader/index.js.map +0 -1
- package/commonjs/Tag/Tag.js.map +0 -2
- package/commonjs/Task/Task.js.map +0 -1
- package/commonjs/Task/type.js.map +0 -2
- package/commonjs/Text/Text.js.map +0 -2
- package/commonjs/TextArea/TextArea.js.map +0 -1
- package/commonjs/Theme/ThemeProvider.js.map +0 -1
- package/commonjs/Theme/defaultTheme.js.map +0 -1
- package/commonjs/Theme/themed.d.js.map +0 -1
- package/commonjs/Timeline/Timeline.js.map +0 -2
- package/commonjs/Toast/Toast.js.map +0 -1
- package/commonjs/UserSwitcher/UserSwitcher.js.map +0 -1
- package/commonjs/UserSwitcher/index.js.map +0 -1
- package/commonjs/common.js.map +0 -2
- package/commonjs/index.js.map +0 -1
- package/module/Alert/Alert.js.map +0 -2
- package/module/AnimatedNavItem/AnimatedNavItem.js.map +0 -2
- package/module/AnimatedNavItem/index.js.map +0 -1
- package/module/BarChart/BarChart.js.map +0 -1
- package/module/BarChart/index.js.map +0 -1
- package/module/Button/Button.js.map +0 -2
- package/module/Button/ButtonGroup.js.map +0 -1
- package/module/Button/react-native-hoverable.d.js.map +0 -1
- package/module/Calendar/Calendar.base.js.map +0 -1
- package/module/Calendar/Calendar.js.map +0 -2
- package/module/Calendar/ConcreteTimeSelector.js.map +0 -2
- package/module/Calendar/CustomRange.js.map +0 -1
- package/module/Calendar/DaySelector.js.map +0 -2
- package/module/Calendar/MonthSelector.js.map +0 -2
- package/module/Calendar/TimeSelector.js.map +0 -2
- package/module/Calendar/WeekDaySelector.js.map +0 -2
- package/module/Calendar/helper.js.map +0 -2
- package/module/Calendar/local.js.map +0 -1
- package/module/Calendar/types.js.map +0 -1
- package/module/Card/Card.js.map +0 -2
- package/module/CheckBox/CheckBox.js.map +0 -2
- package/module/CheckBox/CheckBoxItem.js.map +0 -2
- package/module/CheckBox/GroupCheckBox.js.map +0 -1
- package/module/CircularProgress/CircularProgress.js.map +0 -2
- package/module/Collapsible/Collapsible.js.map +0 -1
- package/module/DashboardCard/DashboardCard.js.map +0 -1
- package/module/DataCell/DataCell.js.map +0 -2
- package/module/DataCell/index.js.map +0 -2
- package/module/DataTable/DataTable.js.map +0 -2
- package/module/DataTable/index.js.map +0 -2
- package/module/DeviceSelectionModal/DeviceSelectionModal.js.map +0 -2
- package/module/DraggableFlatList/DraggableFlatList.js.map +0 -1
- package/module/Drawer/Drawer.js.map +0 -1
- package/module/Dropdown/CustomDropdown.js.map +0 -1
- package/module/Dropdown/Dropdown.js.map +0 -1
- package/module/Dropdown/InputDropdown.js.map +0 -2
- package/module/ExternalLink/ExternalLink.js.map +0 -2
- package/module/Gantt/Accessories.js.map +0 -1
- package/module/Gantt/Gantt.js.map +0 -2
- package/module/Gantt/GanttInnerElementType.js.map +0 -2
- package/module/Gantt/helper.js.map +0 -1
- package/module/Gantt/types.js.map +0 -1
- package/module/Grid/FixedSizeGrid.js.map +0 -2
- package/module/Grid/Grid.base.js.map +0 -2
- package/module/Grid/StaticFixedSizeGrid.js.map +0 -2
- package/module/Grid/VariableSizeGrid.js.map +0 -1
- package/module/Grid/helper.js.map +0 -2
- package/module/Grid/timer.js.map +0 -1
- package/module/Header/Header.js.map +0 -2
- package/module/HelloWave/HelloWave.js.map +0 -2
- package/module/Hoverable/Hoverable.js.map +0 -2
- package/module/IconText/IconText.js.map +0 -2
- package/module/Icons/TapasIcon.js.map +0 -2
- package/module/Icons/TapasIconExpo.js.map +0 -2
- package/module/Icons/expoFontLoader.js.map +0 -2
- package/module/Icons/fontLoader.js.map +0 -1
- package/module/Icons/index.js.map +0 -1
- package/module/Icons/smartFontLoader.js.map +0 -2
- package/module/Image/Image.js.map +0 -2
- package/module/Image/PreviewImg.js.map +0 -1
- package/module/Input/Input.js.map +0 -1
- package/module/Layout/DrawerContext.js.map +0 -2
- package/module/Layout/Layout.js.map +0 -2
- package/module/Layout/ToastContext.js.map +0 -2
- package/module/Layout/index.js.map +0 -2
- package/module/LineChart/LineChart.js.map +0 -2
- package/module/LineChart/index.js.map +0 -2
- package/module/ListItem/ListItem.js.map +0 -1
- package/module/Loading/Loading.js.map +0 -1
- package/module/MessageBox/MessageBox.js.map +0 -1
- package/module/MultiSelector/MultiSelector.js.map +0 -2
- package/module/MultiSelector/index.js.map +0 -2
- package/module/Navigation/Navigation.js.map +0 -1
- package/module/Notification/Notification.js.map +0 -1
- package/module/Notification/index.js.map +0 -2
- package/module/NumericInput/NumericInput.js.map +0 -2
- package/module/Overlay/Overlay.js.map +0 -1
- package/module/Pagination/Pagination.js.map +0 -1
- package/module/PieChart/PieChart.js.map +0 -1
- package/module/PieChart/index.js.map +0 -2
- package/module/Popover/Popover.js.map +0 -2
- package/module/Progress/Progress.js.map +0 -2
- package/module/Quantity/Quantity.js.map +0 -2
- package/module/Quantity/index.js.map +0 -1
- package/module/RadioButton/RadioButton.js.map +0 -2
- package/module/ReasonModal/ReasonModal.js.map +0 -2
- package/module/ReasonModal/index.js.map +0 -2
- package/module/ScanButton/ScanButton.js.map +0 -1
- package/module/SearchInput/SearchInput.js.map +0 -2
- package/module/SearchInput/index.js.map +0 -2
- package/module/SheetTitle/SheetTitle.js.map +0 -2
- package/module/Shell/Shell.js.map +0 -2
- package/module/Shell/styles.js.map +0 -2
- package/module/Shell/types.js.map +0 -2
- package/module/StatisticCard/StatisticCard.js.map +0 -1
- package/module/StatisticCard/index.js.map +0 -2
- package/module/Status/Status.js.map +0 -2
- package/module/Steps/Steps.js.map +0 -2
- package/module/TabTitle/TabTitle.js.map +0 -2
- package/module/TabTitle/index.js.map +0 -2
- package/module/TableColumnHeader/TableColumnHeader.js.map +0 -1
- package/module/TableColumnHeader/index.js.map +0 -2
- package/module/Tag/Tag.js.map +0 -1
- package/module/Task/Task.js.map +0 -2
- package/module/Task/type.js.map +0 -1
- package/module/Text/Text.js.map +0 -1
- package/module/TextArea/TextArea.js.map +0 -2
- package/module/Theme/ThemeProvider.js.map +0 -1
- package/module/Theme/defaultTheme.js.map +0 -2
- package/module/Theme/themed.d.js.map +0 -1
- package/module/Timeline/Timeline.js.map +0 -2
- package/module/Toast/Toast.js.map +0 -2
- package/module/UserSwitcher/UserSwitcher.js.map +0 -1
- package/module/UserSwitcher/index.js.map +0 -1
- package/module/common.js.map +0 -2
- package/module/index.js.map +0 -2
|
@@ -1,24 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
var __importDefault = void 0 && (void 0).__importDefault || function (mod) {
|
|
4
|
-
return mod && mod.__esModule ? mod : {
|
|
5
|
-
"default": mod
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
3
|
Object.defineProperty(exports, "__esModule", {
|
|
9
4
|
value: true
|
|
10
5
|
});
|
|
11
6
|
exports.LineChart = void 0;
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var
|
|
7
|
+
var _react = _interopRequireDefault(require("react"));
|
|
8
|
+
var _reactNative = require("react-native");
|
|
9
|
+
var _Text = _interopRequireDefault(require("../Text/Text"));
|
|
10
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
15
11
|
// 动态导入依赖
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
if (
|
|
12
|
+
let RNLineChart, Grid, RNXAxis, Circle;
|
|
13
|
+
let RechartsLine, Line, RechartsXAxis, RechartsYAxis, CartesianGrid, Tooltip, Legend, ResponsiveContainer;
|
|
14
|
+
if (_reactNative.Platform.OS === 'web') {
|
|
19
15
|
// Web 环境使用 recharts
|
|
20
16
|
try {
|
|
21
|
-
|
|
17
|
+
const recharts = require('recharts');
|
|
22
18
|
RechartsLine = recharts.LineChart;
|
|
23
19
|
Line = recharts.Line;
|
|
24
20
|
RechartsXAxis = recharts.XAxis;
|
|
@@ -33,8 +29,8 @@ if (react_native_1.Platform.OS === 'web') {
|
|
|
33
29
|
} else {
|
|
34
30
|
// 移动端使用 react-native-svg-charts
|
|
35
31
|
try {
|
|
36
|
-
|
|
37
|
-
|
|
32
|
+
const svgCharts = require('react-native-svg-charts');
|
|
33
|
+
const svg = require('react-native-svg');
|
|
38
34
|
RNLineChart = svgCharts.LineChart;
|
|
39
35
|
Grid = svgCharts.Grid;
|
|
40
36
|
RNXAxis = svgCharts.XAxis;
|
|
@@ -43,180 +39,160 @@ if (react_native_1.Platform.OS === 'web') {
|
|
|
43
39
|
console.warn('react-native-svg-charts not available');
|
|
44
40
|
}
|
|
45
41
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
bottom: 20,
|
|
67
|
-
left: 20,
|
|
68
|
-
right: 20
|
|
69
|
-
} : _l,
|
|
70
|
-
style = _a.style,
|
|
71
|
-
testID = _a.testID;
|
|
42
|
+
const LineChart = ({
|
|
43
|
+
data,
|
|
44
|
+
width,
|
|
45
|
+
height = 300,
|
|
46
|
+
color = '#0066CC',
|
|
47
|
+
colors,
|
|
48
|
+
showGrid = true,
|
|
49
|
+
showLabels = true,
|
|
50
|
+
showDots = true,
|
|
51
|
+
yAxisFormat,
|
|
52
|
+
xAxisFormat,
|
|
53
|
+
contentInset = {
|
|
54
|
+
top: 20,
|
|
55
|
+
bottom: 20,
|
|
56
|
+
left: 20,
|
|
57
|
+
right: 20
|
|
58
|
+
},
|
|
59
|
+
style,
|
|
60
|
+
testID
|
|
61
|
+
}) => {
|
|
72
62
|
// 检查是否为多系列数据
|
|
73
|
-
|
|
63
|
+
const isMultiSeries = Array.isArray(data) && data.length > 0 && data[0] && 'data' in data[0];
|
|
74
64
|
if (!isMultiSeries && (!Array.isArray(data) || data.length === 0)) {
|
|
75
|
-
return
|
|
65
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
76
66
|
style: [styles.container, {
|
|
77
|
-
height
|
|
67
|
+
height
|
|
78
68
|
}, style]
|
|
79
|
-
},
|
|
69
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
80
70
|
style: styles.emptyText
|
|
81
71
|
}, "No data available"));
|
|
82
72
|
}
|
|
73
|
+
|
|
83
74
|
// Web 环境使用 Recharts
|
|
84
|
-
if (
|
|
85
|
-
|
|
86
|
-
|
|
75
|
+
if (_reactNative.Platform.OS === 'web' && RechartsLine) {
|
|
76
|
+
let chartData = [];
|
|
77
|
+
let seriesKeys = [];
|
|
87
78
|
if (isMultiSeries) {
|
|
88
79
|
// 多系列数据
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
});
|
|
80
|
+
const series = data;
|
|
81
|
+
seriesKeys = series.map((s, i) => s.label || `Series ${i + 1}`);
|
|
82
|
+
|
|
93
83
|
// 转换为 recharts 格式
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
var _loop_1 = function (i) {
|
|
99
|
-
var point = {
|
|
100
|
-
name: ((_d = (_c = (_b = series[0]) === null || _b === void 0 ? void 0 : _b.data) === null || _c === void 0 ? void 0 : _c[i]) === null || _d === void 0 ? void 0 : _d.label) || "Point ".concat(i + 1)
|
|
84
|
+
const maxLength = Math.max(...series.map(s => s.data?.length || 0));
|
|
85
|
+
for (let i = 0; i < maxLength; i++) {
|
|
86
|
+
const point = {
|
|
87
|
+
name: series[0]?.data?.[i]?.label || `Point ${i + 1}`
|
|
101
88
|
};
|
|
102
|
-
series.forEach(
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
point[seriesKeys_1[sIndex]] = ((_b = (_a = s.data) === null || _a === void 0 ? void 0 : _a[i]) === null || _b === void 0 ? void 0 : _b.value) || 0;
|
|
89
|
+
series.forEach((s, sIndex) => {
|
|
90
|
+
if (seriesKeys[sIndex]) {
|
|
91
|
+
point[seriesKeys[sIndex]] = s.data?.[i]?.value || 0;
|
|
106
92
|
}
|
|
107
93
|
});
|
|
108
|
-
|
|
109
|
-
};
|
|
110
|
-
for (var i = 0; i < maxLength; i++) {
|
|
111
|
-
_loop_1(i);
|
|
94
|
+
chartData.push(point);
|
|
112
95
|
}
|
|
113
96
|
} else {
|
|
114
97
|
// 单系列数据
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
});
|
|
121
|
-
seriesKeys_1 = ['value'];
|
|
98
|
+
chartData = data.map((item, index) => ({
|
|
99
|
+
name: item.label || `Point ${index + 1}`,
|
|
100
|
+
value: item.value
|
|
101
|
+
}));
|
|
102
|
+
seriesKeys = ['value'];
|
|
122
103
|
}
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
data:
|
|
104
|
+
const lineColors = colors || (isMultiSeries ? ['#6C63FF', '#00BFA5', '#FF6B00', '#FFC107', '#E91E63', '#9C27B0', '#3F51B5', '#00BCD4', '#4CAF50', '#FF9800'] : [color]);
|
|
105
|
+
const ChartComponent = /*#__PURE__*/_react.default.createElement(RechartsLine, {
|
|
106
|
+
data: chartData,
|
|
126
107
|
margin: {
|
|
127
108
|
top: 20,
|
|
128
109
|
right: 30,
|
|
129
110
|
left: 20,
|
|
130
111
|
bottom: showLabels ? 20 : 10
|
|
131
112
|
}
|
|
132
|
-
}, showGrid &&
|
|
113
|
+
}, showGrid && /*#__PURE__*/_react.default.createElement(CartesianGrid, {
|
|
133
114
|
strokeDasharray: "3 3",
|
|
134
115
|
stroke: "#E0E0E0"
|
|
135
|
-
}), showLabels &&
|
|
116
|
+
}), showLabels && /*#__PURE__*/_react.default.createElement(RechartsXAxis, {
|
|
136
117
|
dataKey: "name",
|
|
137
118
|
style: {
|
|
138
119
|
fontSize: 10
|
|
139
120
|
}
|
|
140
|
-
}),
|
|
121
|
+
}), /*#__PURE__*/_react.default.createElement(RechartsYAxis, {
|
|
141
122
|
style: {
|
|
142
123
|
fontSize: 10
|
|
143
124
|
},
|
|
144
125
|
tickFormatter: yAxisFormat
|
|
145
|
-
}),
|
|
126
|
+
}), /*#__PURE__*/_react.default.createElement(Tooltip, {
|
|
146
127
|
contentStyle: {
|
|
147
128
|
backgroundColor: 'rgba(255, 255, 255, 0.95)',
|
|
148
129
|
border: '1px solid #E0E0E0',
|
|
149
130
|
borderRadius: 4
|
|
150
131
|
}
|
|
151
|
-
}), isMultiSeries &&
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
}));
|
|
167
|
-
return react_1.default.createElement(react_native_1.View, {
|
|
132
|
+
}), isMultiSeries && /*#__PURE__*/_react.default.createElement(Legend, null), seriesKeys.map((key, index) => /*#__PURE__*/_react.default.createElement(Line, {
|
|
133
|
+
key: key,
|
|
134
|
+
type: "monotone",
|
|
135
|
+
dataKey: key,
|
|
136
|
+
stroke: lineColors[index % lineColors.length],
|
|
137
|
+
strokeWidth: 2,
|
|
138
|
+
dot: showDots ? {
|
|
139
|
+
fill: lineColors[index % lineColors.length],
|
|
140
|
+
r: 4
|
|
141
|
+
} : false,
|
|
142
|
+
activeDot: showDots ? {
|
|
143
|
+
r: 6
|
|
144
|
+
} : false
|
|
145
|
+
})));
|
|
146
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
168
147
|
style: [styles.container, {
|
|
169
|
-
height
|
|
148
|
+
height,
|
|
170
149
|
width: width || '100%'
|
|
171
150
|
}, style],
|
|
172
151
|
testID: testID
|
|
173
|
-
}, ResponsiveContainer ?
|
|
152
|
+
}, ResponsiveContainer ? /*#__PURE__*/_react.default.createElement(ResponsiveContainer, {
|
|
174
153
|
width: "100%",
|
|
175
154
|
height: height - 20
|
|
176
155
|
}, ChartComponent) : ChartComponent);
|
|
177
156
|
}
|
|
157
|
+
|
|
178
158
|
// 移动端使用 react-native-svg-charts
|
|
179
159
|
if (!RNLineChart) {
|
|
180
|
-
return
|
|
160
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
181
161
|
style: [styles.container, {
|
|
182
|
-
height
|
|
162
|
+
height
|
|
183
163
|
}, style]
|
|
184
|
-
},
|
|
164
|
+
}, /*#__PURE__*/_react.default.createElement(_Text.default, {
|
|
185
165
|
style: styles.emptyText
|
|
186
166
|
}, "Chart library not available"));
|
|
187
167
|
}
|
|
168
|
+
|
|
188
169
|
// 单系列数据
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
var x = _a.x,
|
|
196
|
-
y = _a.y,
|
|
197
|
-
data = _a.data;
|
|
170
|
+
const chartData = isMultiSeries ? (data[0]?.data || []).map(d => d.value) : data.map(d => d.value);
|
|
171
|
+
const Decorator = ({
|
|
172
|
+
x,
|
|
173
|
+
y,
|
|
174
|
+
data
|
|
175
|
+
}) => {
|
|
198
176
|
if (!showDots || !Circle) return null;
|
|
199
|
-
return data.map(
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
});
|
|
209
|
-
});
|
|
177
|
+
return data.map((value, index) => /*#__PURE__*/_react.default.createElement(Circle, {
|
|
178
|
+
key: index,
|
|
179
|
+
cx: x(index),
|
|
180
|
+
cy: y(value),
|
|
181
|
+
r: 4,
|
|
182
|
+
stroke: color,
|
|
183
|
+
fill: "white",
|
|
184
|
+
strokeWidth: 2
|
|
185
|
+
}));
|
|
210
186
|
};
|
|
211
|
-
return
|
|
187
|
+
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
212
188
|
style: [styles.container, {
|
|
213
|
-
height
|
|
189
|
+
height,
|
|
214
190
|
width: width || '100%'
|
|
215
191
|
}, style],
|
|
216
192
|
testID: testID
|
|
217
|
-
},
|
|
193
|
+
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
218
194
|
style: styles.chartWrapper
|
|
219
|
-
},
|
|
195
|
+
}, /*#__PURE__*/_react.default.createElement(RNLineChart, {
|
|
220
196
|
style: {
|
|
221
197
|
flex: 1
|
|
222
198
|
},
|
|
@@ -226,6 +202,48 @@ var LineChart = function (_a) {
|
|
|
226
202
|
strokeWidth: 2
|
|
227
203
|
},
|
|
228
204
|
contentInset: contentInset,
|
|
205
|
+
gridMin: 0
|
|
206
|
+
}, showGrid && Grid && /*#__PURE__*/_react.default.createElement(Grid, null), /*#__PURE__*/_react.default.createElement(Decorator, null)), showLabels && RNXAxis && /*#__PURE__*/_react.default.createElement(RNXAxis, {
|
|
207
|
+
style: styles.xAxis,
|
|
208
|
+
data: chartData,
|
|
209
|
+
formatLabel: (value, index) => {
|
|
210
|
+
if (xAxisFormat) {
|
|
211
|
+
return xAxisFormat(value, index);
|
|
212
|
+
}
|
|
213
|
+
if (isMultiSeries) {
|
|
214
|
+
return (data[0]?.data || [])[index]?.label || index.toString();
|
|
215
|
+
}
|
|
216
|
+
return data[index]?.label || index.toString();
|
|
217
|
+
},
|
|
218
|
+
contentInset: {
|
|
219
|
+
left: 20,
|
|
220
|
+
right: 20
|
|
221
|
+
},
|
|
222
|
+
svg: {
|
|
223
|
+
fontSize: 10,
|
|
224
|
+
fill: 'black'
|
|
225
|
+
}
|
|
226
|
+
})));
|
|
227
|
+
};
|
|
228
|
+
exports.LineChart = LineChart;
|
|
229
|
+
const styles = _reactNative.StyleSheet.create({
|
|
230
|
+
container: {
|
|
231
|
+
backgroundColor: 'transparent'
|
|
232
|
+
},
|
|
233
|
+
chartWrapper: {
|
|
234
|
+
flex: 1
|
|
235
|
+
},
|
|
236
|
+
xAxis: {
|
|
237
|
+
marginHorizontal: -10,
|
|
238
|
+
height: 30
|
|
239
|
+
},
|
|
240
|
+
emptyText: {
|
|
241
|
+
textAlign: 'center',
|
|
242
|
+
marginTop: 100,
|
|
243
|
+
color: '#999'
|
|
244
|
+
}
|
|
245
|
+
});
|
|
246
|
+
|
|
229
247
|
gridMin: 0
|
|
230
248
|
}, showGrid && Grid && react_1.default.createElement(Grid, null), react_1.default.createElement(Decorator, null)), showLabels && RNXAxis && react_1.default.createElement(RNXAxis, {
|
|
231
249
|
style: styles.xAxis,
|
|
@@ -268,4 +286,3 @@ var styles = react_native_1.StyleSheet.create({
|
|
|
268
286
|
color: '#999'
|
|
269
287
|
}
|
|
270
288
|
});
|
|
271
|
-
//# sourceMappingURL=LineChart.js.map
|
|
@@ -93,7 +93,7 @@ const useStyles = (0, _themed.makeStyles)(theme => ({
|
|
|
93
93
|
}
|
|
94
94
|
}));
|
|
95
95
|
var _default = exports.default = (0, _themed.withTheme)(Loading);
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
style: [{
|
|
98
98
|
opacity: opacity,
|
|
99
99
|
width: size,
|
|
@@ -123,4 +123,3 @@ var useStyles = (0, themed_1.makeStyles)(function (theme) {
|
|
|
123
123
|
};
|
|
124
124
|
});
|
|
125
125
|
exports.default = (0, themed_1.withTheme)(Loading);
|
|
126
|
-
//# sourceMappingURL=Loading.js.map
|