@dashadmin/dash-admin 1.3.51 → 1.3.52
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/dist/components/avatar/Avatar.js +10 -1
- package/dist/components/currency/Format.js +3 -1
- package/dist/components/i18n/BridgedLocalesMenuButton.js +4 -2
- package/dist/components/misc/NoResults.js +3 -1
- package/dist/components/permission/PermissionsSelector.js +34 -14
- package/dist/components/permission/PermissionsSelectorList.js +11 -1
- package/dist/components/selects/RASearchableSelect.js +8 -6
- package/dist/components/selects/RASearchableSelectChips.js +8 -6
- package/dist/components/selects/SearchableSelect.js +8 -6
- package/dist/components/subscription/PlanAddonsSettings.js +88 -17
- package/dist/components/subscription/PlanAuditLog.js +41 -21
- package/dist/components/subscription/PlanFeaturesSettings.js +35 -6
- package/dist/components/subscription/PlanMetadataSettings.js +78 -42
- package/dist/components/subscription/PlanPricesSettings.js +20 -8
- package/dist/components/tenant/TenantSelector.js +8 -6
- package/dist/components/user/UserPreferences.js +77 -22
- package/dist/pages/DASHLightWeightLogin.js +7 -5
- package/dist/pages/Profile.js +5 -3
- package/dist/pages/RecoverPassword.js +28 -14
- package/dist/schemas/subscription/components/SubscriptionPaymentHistory.js +14 -2
- package/dist/schemas/subscription/components/SubscriptionPlanFeatures.js +37 -25
- package/dist/schemas/subscription/components/SubscriptionPlanPreview.js +47 -28
- package/dist/schemas/subscription/components/SubscriptionPlanStats.js +127 -37
- package/package.json +3 -3
- package/src/components/avatar/Avatar.tsx +8 -4
- package/src/components/currency/Format.tsx +8 -6
- package/src/components/i18n/BridgedLocalesMenuButton.tsx +4 -2
- package/src/components/misc/DASHGlobalErrorHandler.tsx +1 -1
- package/src/components/misc/NoResults.tsx +7 -4
- package/src/components/permission/AvailablePermissionsContext.tsx +1 -1
- package/src/components/permission/PermissionsSelector.tsx +48 -33
- package/src/components/permission/PermissionsSelectorList.tsx +7 -2
- package/src/components/selects/RASearchableSelect.tsx +22 -19
- package/src/components/selects/RASearchableSelectChips.tsx +23 -19
- package/src/components/selects/SearchableSelect.tsx +22 -18
- package/src/components/subscription/PlanAddonsSettings.tsx +61 -20
- package/src/components/subscription/PlanAuditLog.tsx +22 -8
- package/src/components/subscription/PlanFeaturesSettings.tsx +28 -8
- package/src/components/subscription/PlanMetadataSettings.tsx +29 -7
- package/src/components/subscription/PlanPricesSettings.tsx +30 -18
- package/src/components/tenant/TenantAttributesContext.tsx +1 -1
- package/src/components/tenant/TenantSelector.tsx +20 -17
- package/src/components/tenant/TenantSettingsContext.tsx +1 -1
- package/src/components/user/UserPreferences.tsx +56 -21
- package/src/contexts/SystemRequestsCache.tsx +1 -1
- package/src/default-theme/menu/AppMenuComponents/expanded/CollapsableSidebarMenu.tsx +3 -3
- package/src/default-theme/menu/SidebarActions.tsx +6 -6
- package/src/pages/DASHLightWeightLogin.tsx +8 -7
- package/src/pages/Profile.tsx +10 -9
- package/src/pages/RecoverPassword.tsx +15 -6
- package/src/schemas/subscription/components/SubscriptionPaymentHistory.tsx +9 -2
- package/src/schemas/subscription/components/SubscriptionPlanFeatures.tsx +10 -3
- package/src/schemas/subscription/components/SubscriptionPlanPreview.tsx +25 -12
- package/src/schemas/subscription/components/SubscriptionPlanStats.tsx +64 -14
- package/src/theme/AppSidebarLogo.tsx +7 -7
|
@@ -67,7 +67,12 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
67
67
|
|
|
68
68
|
if (loading) {
|
|
69
69
|
return (
|
|
70
|
-
<Box
|
|
70
|
+
<Box
|
|
71
|
+
sx={{
|
|
72
|
+
display: "flex",
|
|
73
|
+
justifyContent: "center",
|
|
74
|
+
p: 4
|
|
75
|
+
}}>
|
|
71
76
|
<CircularProgress />
|
|
72
77
|
</Box>
|
|
73
78
|
);
|
|
@@ -86,13 +91,18 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
86
91
|
<Typography variant="h6" gutterBottom>
|
|
87
92
|
Estadísticas del Plan
|
|
88
93
|
</Typography>
|
|
89
|
-
|
|
94
|
+
|
|
90
95
|
<Grid container spacing={2}>
|
|
91
96
|
{/* @ts-ignore - Grid API compatibility issue */}
|
|
92
97
|
<Grid component="div" item size={{ xs: 12, sm: 6, md: 3 }}>
|
|
93
98
|
<Card>
|
|
94
99
|
<CardContent>
|
|
95
|
-
<Box
|
|
100
|
+
<Box
|
|
101
|
+
sx={{
|
|
102
|
+
display: "flex",
|
|
103
|
+
alignItems: "center",
|
|
104
|
+
mb: 1
|
|
105
|
+
}}>
|
|
96
106
|
<PeopleIcon color="primary" sx={{ mr: 1 }} />
|
|
97
107
|
<Typography variant="h6" color="primary">
|
|
98
108
|
{stats.total_subscriptions}
|
|
@@ -109,9 +119,16 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
109
119
|
<Grid component="div" item size={{ xs: 12, sm: 6, md: 3 }}>
|
|
110
120
|
<Card>
|
|
111
121
|
<CardContent>
|
|
112
|
-
<Box
|
|
122
|
+
<Box
|
|
123
|
+
sx={{
|
|
124
|
+
display: "flex",
|
|
125
|
+
alignItems: "center",
|
|
126
|
+
mb: 1
|
|
127
|
+
}}>
|
|
113
128
|
<TrendingUpIcon color="success" sx={{ mr: 1 }} />
|
|
114
|
-
<Typography variant="h6"
|
|
129
|
+
<Typography variant="h6" sx={{
|
|
130
|
+
color: "success.main"
|
|
131
|
+
}}>
|
|
115
132
|
{stats.active_subscriptions}
|
|
116
133
|
</Typography>
|
|
117
134
|
</Box>
|
|
@@ -126,9 +143,16 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
126
143
|
<Grid component="div" item size={{ xs: 12, sm: 6, md: 3 }}>
|
|
127
144
|
<Card>
|
|
128
145
|
<CardContent>
|
|
129
|
-
<Box
|
|
146
|
+
<Box
|
|
147
|
+
sx={{
|
|
148
|
+
display: "flex",
|
|
149
|
+
alignItems: "center",
|
|
150
|
+
mb: 1
|
|
151
|
+
}}>
|
|
130
152
|
<TimelineIcon color="info" sx={{ mr: 1 }} />
|
|
131
|
-
<Typography variant="h6"
|
|
153
|
+
<Typography variant="h6" sx={{
|
|
154
|
+
color: "info.main"
|
|
155
|
+
}}>
|
|
132
156
|
{stats.trial_subscriptions}
|
|
133
157
|
</Typography>
|
|
134
158
|
</Box>
|
|
@@ -143,8 +167,15 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
143
167
|
<Grid component="div" item size={{ xs: 12, sm: 6, md: 3 }}>
|
|
144
168
|
<Card>
|
|
145
169
|
<CardContent>
|
|
146
|
-
<Box
|
|
147
|
-
|
|
170
|
+
<Box
|
|
171
|
+
sx={{
|
|
172
|
+
display: "flex",
|
|
173
|
+
alignItems: "center",
|
|
174
|
+
mb: 1
|
|
175
|
+
}}>
|
|
176
|
+
<Typography variant="h6" sx={{
|
|
177
|
+
color: "error.main"
|
|
178
|
+
}}>
|
|
148
179
|
{stats.cancelled_subscriptions}
|
|
149
180
|
</Typography>
|
|
150
181
|
</Box>
|
|
@@ -159,9 +190,16 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
159
190
|
<Grid component="div" item size={{ xs: 12, sm: 6 }}>
|
|
160
191
|
<Card>
|
|
161
192
|
<CardContent>
|
|
162
|
-
<Box
|
|
193
|
+
<Box
|
|
194
|
+
sx={{
|
|
195
|
+
display: "flex",
|
|
196
|
+
alignItems: "center",
|
|
197
|
+
mb: 1
|
|
198
|
+
}}>
|
|
163
199
|
<MoneyIcon color="success" sx={{ mr: 1 }} />
|
|
164
|
-
<Typography variant="h6"
|
|
200
|
+
<Typography variant="h6" sx={{
|
|
201
|
+
color: "success.main"
|
|
202
|
+
}}>
|
|
165
203
|
{formatCurrency(stats.total_revenue)}
|
|
166
204
|
</Typography>
|
|
167
205
|
</Box>
|
|
@@ -176,7 +214,12 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
176
214
|
<Grid component="div" item size={{ xs: 12, sm: 6 }}>
|
|
177
215
|
<Card>
|
|
178
216
|
<CardContent>
|
|
179
|
-
<Box
|
|
217
|
+
<Box
|
|
218
|
+
sx={{
|
|
219
|
+
display: "flex",
|
|
220
|
+
alignItems: "center",
|
|
221
|
+
mb: 1
|
|
222
|
+
}}>
|
|
180
223
|
<MoneyIcon color="primary" sx={{ mr: 1 }} />
|
|
181
224
|
<Typography variant="h6" color="primary">
|
|
182
225
|
{formatCurrency(stats.monthly_revenue)}
|
|
@@ -193,7 +236,12 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
193
236
|
<Grid component="div" item size={12}>
|
|
194
237
|
<Card>
|
|
195
238
|
<CardContent>
|
|
196
|
-
<Box
|
|
239
|
+
<Box
|
|
240
|
+
sx={{
|
|
241
|
+
display: "flex",
|
|
242
|
+
alignItems: "center",
|
|
243
|
+
justifyContent: "space-between"
|
|
244
|
+
}}>
|
|
197
245
|
<Box>
|
|
198
246
|
<Typography variant="h6">
|
|
199
247
|
Tasa de Conversión
|
|
@@ -213,7 +261,9 @@ const StatsView: React.FC<IDashAutoAdminCustomFieldComponent> = ({ method, attri
|
|
|
213
261
|
</Grid>
|
|
214
262
|
</Grid>
|
|
215
263
|
|
|
216
|
-
<Box
|
|
264
|
+
<Box sx={{
|
|
265
|
+
mt: 3
|
|
266
|
+
}}>
|
|
217
267
|
<Typography variant="h6" gutterBottom>
|
|
218
268
|
Información Adicional
|
|
219
269
|
</Typography>
|
|
@@ -25,24 +25,24 @@ const AppSidebarLogo: React.FC<IAppSidebarLogo> = ({
|
|
|
25
25
|
}*/
|
|
26
26
|
|
|
27
27
|
return (
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
<div className='dash-layout-sider-header'>
|
|
29
|
+
{!sidebarExpanded ? (
|
|
30
30
|
// @ts-ignore - AppLogo props compatibility issue
|
|
31
|
-
<AppLogo type='logo' logoBig={logo} squaredLogo={squaredLogo} />
|
|
31
|
+
(<AppLogo type='logo' logoBig={logo} squaredLogo={squaredLogo} />)
|
|
32
32
|
) : (
|
|
33
33
|
// @ts-ignore - AppLogo props compatibility issue
|
|
34
|
-
<AppLogo type='iso' logoBig={logo} squaredLogo={squaredLogo} />
|
|
34
|
+
(<AppLogo type='iso' logoBig={logo} squaredLogo={squaredLogo} />)
|
|
35
35
|
)}
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
{/*<Link to="/" className="dash-site-logo">
|
|
38
38
|
{navStyle === NAV_STYLE_NO_HEADER_MINI_SIDEBAR && width >= TAB_SIZE ?
|
|
39
39
|
<img alt="lo" src={("/assets/images/w-logo.png")}/> :
|
|
40
40
|
themeType === THEME_TYPE_LIGHT ?
|
|
41
41
|
<img alt="logo1" src={("/assets/images/logo-white.png")}/> :
|
|
42
42
|
<img alt="logo2" src={("/assets/images/logo.png")}/>}
|
|
43
43
|
</Link>*/}
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
</div>
|
|
45
|
+
);
|
|
46
46
|
};
|
|
47
47
|
|
|
48
48
|
export default AppSidebarLogo;
|