@alepha/ui 0.15.2 → 0.15.3
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/admin/AdminAudits-BU-p1g7A.js +3 -0
- package/dist/admin/{AdminAudits-C0DPYw0W.js → AdminAudits-Oh7iAfQa.js} +2 -2
- package/dist/admin/AdminAudits-Oh7iAfQa.js.map +1 -0
- package/dist/admin/{AdminUserCreate-DiXi1EWB.js → AdminUserCreate-BVIm4JdN.js} +2 -2
- package/dist/admin/AdminUserCreate-BVIm4JdN.js.map +1 -0
- package/dist/admin/{AdminUserCreate-Chr-7hLk.js → AdminUserCreate-C1aInRDk.js} +1 -1
- package/dist/admin/{AdminUserLayout-D9bqGt6T.js → AdminUserLayout-BnfBC1gD.js} +2 -2
- package/dist/admin/{AdminUserLayout-D9bqGt6T.js.map → AdminUserLayout-BnfBC1gD.js.map} +1 -1
- package/dist/admin/{AdminUserLayout-CfeQHH6e.js → AdminUserLayout-gb-nbggz.js} +1 -1
- package/dist/admin/{AdminUserSettings-BnzRAcqV.js → AdminUserSettings-DZ9iWhJW.js} +2 -2
- package/dist/admin/AdminUserSettings-DZ9iWhJW.js.map +1 -0
- package/dist/admin/AdminUserSettings-Dg-wTRzN.js +3 -0
- package/dist/admin/{AdminUsers-CYkcUWCg.js → AdminUsers-D6Y5K8Am.js} +2 -2
- package/dist/admin/AdminUsers-D6Y5K8Am.js.map +1 -0
- package/dist/admin/AdminUsers-RCaxccEW.js +3 -0
- package/dist/admin/index.d.ts +37 -33
- package/dist/admin/index.d.ts.map +1 -1
- package/dist/admin/index.js +20 -13
- package/dist/admin/index.js.map +1 -1
- package/dist/auth/{Login-BAFVcX_J.js → Login-BBqTosqZ.js} +2 -2
- package/dist/auth/Login-BBqTosqZ.js.map +1 -0
- package/dist/auth/Login-CoU63mMR.js +4 -0
- package/dist/auth/Profile-Bxj8Nwom.js +150 -0
- package/dist/auth/Profile-Bxj8Nwom.js.map +1 -0
- package/dist/auth/Register-BV_oa_AK.js +4 -0
- package/dist/auth/{Register-CZRXEcWy.js → Register-Ce675Crg.js} +4 -4
- package/dist/auth/Register-Ce675Crg.js.map +1 -0
- package/dist/auth/ResetPassword-D5wC8GAA.js +3 -0
- package/dist/auth/{ResetPassword-DTYNsBIj.js → ResetPassword-DWdt7c40.js} +2 -2
- package/dist/auth/{ResetPassword-DTYNsBIj.js.map → ResetPassword-DWdt7c40.js.map} +1 -1
- package/dist/auth/{VerifyEmail-DolENWGn.js → VerifyEmail-CI4JwByV.js} +2 -2
- package/dist/auth/{VerifyEmail-DolENWGn.js.map → VerifyEmail-CI4JwByV.js.map} +1 -1
- package/dist/auth/VerifyEmail-DAfqVm5s.js +3 -0
- package/dist/auth/index.d.ts +6 -1
- package/dist/auth/index.d.ts.map +1 -1
- package/dist/auth/index.js +47 -13
- package/dist/auth/index.js.map +1 -1
- package/dist/core/index.d.ts +111 -29
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +324 -251
- package/dist/core/index.js.map +1 -1
- package/dist/demo/{DemoLogin-mtkN6340.js → DemoLogin-S-b15cmE.js} +2 -2
- package/dist/demo/DemoLogin-S-b15cmE.js.map +1 -0
- package/dist/demo/{DemoRegister-C0MW7anp.js → DemoRegister-B29MdAaZ.js} +3 -3
- package/dist/demo/DemoRegister-B29MdAaZ.js.map +1 -0
- package/dist/demo/index.js +2 -2
- package/package.json +3 -2
- package/src/admin/AdminRouter.ts +2 -2
- package/src/admin/components/audits/AdminAudits.tsx +1 -1
- package/src/admin/components/users/AdminUserCreate.tsx +1 -1
- package/src/admin/components/users/AdminUserLayout.tsx +1 -1
- package/src/admin/components/users/AdminUserSettings.tsx +1 -1
- package/src/admin/components/users/AdminUsers.tsx +1 -1
- package/src/admin/index.ts +11 -1
- package/src/auth/AuthRouter.ts +12 -0
- package/src/auth/components/Login.tsx +1 -1
- package/src/auth/components/Profile.tsx +157 -0
- package/src/auth/components/Register.tsx +2 -2
- package/src/auth/components/buttons/UserButton.tsx +34 -2
- package/src/auth/index.ts +11 -1
- package/src/core/UiRouter.ts +15 -0
- package/src/core/atoms/alephaThemeListAtom.ts +3 -1
- package/src/core/components/buttons/ActionButton.tsx +2 -2
- package/src/core/components/layout/AdminShell.tsx +46 -18
- package/src/core/components/layout/AppBar.tsx +235 -18
- package/src/core/components/layout/Omnibar.tsx +2 -2
- package/src/core/components/layout/Sidebar.tsx +1 -5
- package/src/core/index.ts +13 -27
- package/dist/admin/AdminAudits-BlGGKLof.js +0 -3
- package/dist/admin/AdminAudits-C0DPYw0W.js.map +0 -1
- package/dist/admin/AdminUserCreate-DiXi1EWB.js.map +0 -1
- package/dist/admin/AdminUserSettings-BnzRAcqV.js.map +0 -1
- package/dist/admin/AdminUserSettings-CXs-jtRv.js +0 -3
- package/dist/admin/AdminUsers-CYkcUWCg.js.map +0 -1
- package/dist/admin/AdminUsers-DdFXzrEn.js +0 -3
- package/dist/auth/Login-BAFVcX_J.js.map +0 -1
- package/dist/auth/Login-C5PUsp8I.js +0 -4
- package/dist/auth/Register-CZRXEcWy.js.map +0 -1
- package/dist/auth/Register-DMTs5ep_.js +0 -4
- package/dist/auth/ResetPassword-D-mhMtmx.js +0 -3
- package/dist/auth/VerifyEmail-BsrCmncc.js +0 -3
- package/dist/demo/DemoLogin-mtkN6340.js.map +0 -1
- package/dist/demo/DemoRegister-C0MW7anp.js.map +0 -1
- package/src/core/RootRouter.ts +0 -9
package/dist/auth/index.d.ts
CHANGED
|
@@ -136,6 +136,7 @@ declare class AuthRouter {
|
|
|
136
136
|
}>;
|
|
137
137
|
}, any, alepha_react_router0.TPropsParentDefault>;
|
|
138
138
|
logout: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, {}, alepha_react_router0.TPropsParentDefault>;
|
|
139
|
+
profile: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
139
140
|
protected loadRealmConfig(realmName?: string): Promise<{
|
|
140
141
|
realmName: string;
|
|
141
142
|
settings: {
|
|
@@ -235,6 +236,10 @@ declare const VerifyEmail: (_props: VerifyEmailProps) => react_jsx_runtime0.JSX.
|
|
|
235
236
|
* @module alepha.ui.auth
|
|
236
237
|
*/
|
|
237
238
|
declare const AlephaUIAuth: alepha1.Service<alepha1.Module>;
|
|
239
|
+
/**
|
|
240
|
+
* Register Auth UI components and get the AuthRouter instance.
|
|
241
|
+
*/
|
|
242
|
+
declare const $uiAuth: () => AuthRouter;
|
|
238
243
|
//#endregion
|
|
239
|
-
export { AlephaUIAuth, AuthRouter, Login, Register, ResetPassword, UserButton, type UserButtonProps, VerifyEmail };
|
|
244
|
+
export { $uiAuth, AlephaUIAuth, AuthRouter, Login, Register, ResetPassword, UserButton, type UserButtonProps, VerifyEmail };
|
|
240
245
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/auth/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/auth/AuthRouter.ts","../../src/auth/components/buttons/UserButton.tsx","../../src/auth/components/Login.tsx","../../src/auth/components/Register.tsx","../../src/auth/components/ResetPassword.tsx","../../src/auth/components/VerifyEmail.tsx","../../src/auth/index.ts"],"mappings":";;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/auth/AuthRouter.ts","../../src/auth/components/buttons/UserButton.tsx","../../src/auth/components/Login.tsx","../../src/auth/components/Register.tsx","../../src/auth/components/ResetPassword.tsx","../../src/auth/components/VerifyEmail.tsx","../../src/auth/index.ts"],"mappings":";;;;;;;;;;cAwBa,UAAA;EAAA,mBACQ,WAAA,EAAW,oBAAA,CAAA,iBAAA,CAAA,eAAA;EAAA,mBACX,IAAA,EAAI,SAAA;EAEvB,MAAA,EAAM,oBAAA,CAAA,aAAA,CAFiB,oBAAA,CAEjB,gBAAA,OAAA,oBAAA,CAAA,mBAAA;EAaN,KAAA,uBAAK,aAAA;;2BAbC,OAAA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A,OAAA;;;KCnCpC,gBAAA;AAAA,cAIN,WAAA,GAAe,MAAA,EAAQ,gBAAA,KAAgB,kBAAA,CAAA,GAAA,CAAA,OAAA;;;;;ALS7C;;;;;;;;;;;;;;cMWa,YAAA,EAAY,OAAA,CAAA,OAAA,CAGvB,OAAA,CAHuB,MAAA;;;;cAUZ,OAAA,QAAO,UAAA"}
|
package/dist/auth/index.js
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import "./IconGoogle-DpSlPZ1u.js";
|
|
2
|
-
import { t as Login_default } from "./Login-
|
|
3
|
-
import { t as Register_default } from "./Register-
|
|
4
|
-
import { t as ResetPassword_default } from "./ResetPassword-
|
|
5
|
-
import { t as VerifyEmail_default } from "./VerifyEmail-
|
|
2
|
+
import { t as Login_default } from "./Login-BBqTosqZ.js";
|
|
3
|
+
import { t as Register_default } from "./Register-Ce675Crg.js";
|
|
4
|
+
import { t as ResetPassword_default } from "./ResetPassword-DWdt7c40.js";
|
|
5
|
+
import { t as VerifyEmail_default } from "./VerifyEmail-CI4JwByV.js";
|
|
6
6
|
import { ActionButton, AlephaUI, ui } from "@alepha/ui";
|
|
7
|
-
import { $inject, $module, AlephaError, t } from "alepha";
|
|
7
|
+
import { $context, $inject, $module, AlephaError, t } from "alepha";
|
|
8
8
|
import { AlephaReactAuth, ReactAuth, useAuth } from "alepha/react/auth";
|
|
9
9
|
import { $dictionary, AlephaReactI18n } from "alepha/react/i18n";
|
|
10
|
-
import { IconLogin2, IconLogout, IconLogout2, IconMailCheck, IconPasswordUser, IconUser, IconUserPlus } from "@tabler/icons-react";
|
|
11
|
-
import { $page, useRouter } from "alepha/react/router";
|
|
10
|
+
import { IconLogin2, IconLogout, IconLogout2, IconMailCheck, IconPasswordUser, IconSettings, IconUser, IconUserPlus } from "@tabler/icons-react";
|
|
11
|
+
import { $page, ReactPageProvider, useRouter } from "alepha/react/router";
|
|
12
12
|
import { $client } from "alepha/server/links";
|
|
13
13
|
import { Avatar } from "@mantine/core";
|
|
14
|
+
import { useClient, useInject } from "alepha/react";
|
|
14
15
|
import { jsx } from "react/jsx-runtime";
|
|
15
16
|
|
|
16
17
|
//#region ../../src/auth/AuthI18n.ts
|
|
@@ -150,7 +151,8 @@ var AuthRouter = class {
|
|
|
150
151
|
this.login,
|
|
151
152
|
this.register,
|
|
152
153
|
this.resetPassword,
|
|
153
|
-
this.verifyEmail
|
|
154
|
+
this.verifyEmail,
|
|
155
|
+
this.profile
|
|
154
156
|
]
|
|
155
157
|
});
|
|
156
158
|
login = $page({
|
|
@@ -160,7 +162,7 @@ var AuthRouter = class {
|
|
|
160
162
|
path: "/login",
|
|
161
163
|
schema: { query: realmQuerySchema },
|
|
162
164
|
can: () => !this.auth.user,
|
|
163
|
-
lazy: () => import("./Login-
|
|
165
|
+
lazy: () => import("./Login-CoU63mMR.js"),
|
|
164
166
|
loader: async ({ query }) => {
|
|
165
167
|
return { realmConfig: await this.loadRealmConfig(query.realm) };
|
|
166
168
|
}
|
|
@@ -172,7 +174,7 @@ var AuthRouter = class {
|
|
|
172
174
|
path: "/register",
|
|
173
175
|
schema: { query: realmQuerySchema },
|
|
174
176
|
can: () => !this.auth.user,
|
|
175
|
-
lazy: () => import("./Register-
|
|
177
|
+
lazy: () => import("./Register-BV_oa_AK.js"),
|
|
176
178
|
loader: async ({ query }) => {
|
|
177
179
|
return { realmConfig: await this.loadRealmConfig(query.realm) };
|
|
178
180
|
}
|
|
@@ -184,7 +186,7 @@ var AuthRouter = class {
|
|
|
184
186
|
path: "/reset-password",
|
|
185
187
|
schema: { query: realmQuerySchema },
|
|
186
188
|
can: () => !this.auth.user,
|
|
187
|
-
lazy: () => import("./ResetPassword-
|
|
189
|
+
lazy: () => import("./ResetPassword-D5wC8GAA.js"),
|
|
188
190
|
loader: async ({ query }) => {
|
|
189
191
|
return { realmConfig: await this.loadRealmConfig(query.realm) };
|
|
190
192
|
}
|
|
@@ -198,7 +200,7 @@ var AuthRouter = class {
|
|
|
198
200
|
email: t.optional(t.string()),
|
|
199
201
|
token: t.optional(t.string())
|
|
200
202
|
}) },
|
|
201
|
-
lazy: () => import("./VerifyEmail-
|
|
203
|
+
lazy: () => import("./VerifyEmail-DAfqVm5s.js")
|
|
202
204
|
});
|
|
203
205
|
logout = $page({
|
|
204
206
|
icon: IconLogout2,
|
|
@@ -212,6 +214,15 @@ var AuthRouter = class {
|
|
|
212
214
|
return {};
|
|
213
215
|
}
|
|
214
216
|
});
|
|
217
|
+
profile = $page({
|
|
218
|
+
name: "userProfile",
|
|
219
|
+
icon: IconUser,
|
|
220
|
+
label: "Profile",
|
|
221
|
+
description: "View your profile",
|
|
222
|
+
path: "/profile",
|
|
223
|
+
can: () => !!this.auth.user,
|
|
224
|
+
lazy: () => import("./Profile-Bxj8Nwom.js")
|
|
225
|
+
});
|
|
215
226
|
async loadRealmConfig(realmName) {
|
|
216
227
|
try {
|
|
217
228
|
return await this.realmClient.getRealmConfig({ query: { realmName } });
|
|
@@ -227,7 +238,13 @@ var AuthRouter = class {
|
|
|
227
238
|
const UserButton = (props) => {
|
|
228
239
|
const { menuItems = [], logoutLabel = "Sign out", menuConfig, showLogoutDivider = menuItems.length > 0, icon, children, ...buttonProps } = props;
|
|
229
240
|
buttonProps.variant ??= "subtle";
|
|
241
|
+
const adminUserCtrl = useClient();
|
|
242
|
+
const pages = useInject(ReactPageProvider);
|
|
230
243
|
const auth = useAuth();
|
|
244
|
+
const isConnected = !!auth.user;
|
|
245
|
+
const isAdmin = isConnected && adminUserCtrl.findUsers.can();
|
|
246
|
+
const userPage = pages.getPages().find((it) => it.name === "userProfile");
|
|
247
|
+
const adminPage = pages.getPages().find((it) => it.name === "adminLayout");
|
|
231
248
|
const authRouter = useRouter();
|
|
232
249
|
if (!auth.user) return /* @__PURE__ */ jsx(ActionButton, {
|
|
233
250
|
...buttonProps,
|
|
@@ -240,6 +257,16 @@ const UserButton = (props) => {
|
|
|
240
257
|
type: "label",
|
|
241
258
|
label: auth.user.email
|
|
242
259
|
});
|
|
260
|
+
if (userPage && isConnected) items.push({
|
|
261
|
+
label: "Profile",
|
|
262
|
+
icon: /* @__PURE__ */ jsx(IconUser, { size: ui.sizes.icon.md }),
|
|
263
|
+
href: authRouter.path("userProfile")
|
|
264
|
+
});
|
|
265
|
+
if (adminPage && isAdmin) items.push({
|
|
266
|
+
label: "Admin",
|
|
267
|
+
icon: /* @__PURE__ */ jsx(IconSettings, { size: ui.sizes.icon.md }),
|
|
268
|
+
href: authRouter.path("adminLayout")
|
|
269
|
+
});
|
|
243
270
|
items.push(...menuItems);
|
|
244
271
|
if (showLogoutDivider && items.length > 0) items.push({ type: "divider" });
|
|
245
272
|
items.push({
|
|
@@ -296,7 +323,14 @@ const AlephaUIAuth = $module({
|
|
|
296
323
|
AuthI18n
|
|
297
324
|
]
|
|
298
325
|
});
|
|
326
|
+
/**
|
|
327
|
+
* Register Auth UI components and get the AuthRouter instance.
|
|
328
|
+
*/
|
|
329
|
+
const $uiAuth = () => {
|
|
330
|
+
const { alepha } = $context();
|
|
331
|
+
return alepha.inject(AuthRouter);
|
|
332
|
+
};
|
|
299
333
|
|
|
300
334
|
//#endregion
|
|
301
|
-
export { AlephaUIAuth, AuthRouter, Login_default as Login, Register_default as Register, ResetPassword_default as ResetPassword, UserButton_default as UserButton, VerifyEmail_default as VerifyEmail };
|
|
335
|
+
export { $uiAuth, AlephaUIAuth, AuthRouter, Login_default as Login, Register_default as Register, ResetPassword_default as ResetPassword, UserButton_default as UserButton, VerifyEmail_default as VerifyEmail };
|
|
302
336
|
//# sourceMappingURL=index.js.map
|
package/dist/auth/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../src/auth/AuthI18n.ts","../../src/auth/AuthRouter.ts","../../src/auth/components/buttons/UserButton.tsx","../../src/auth/index.ts"],"sourcesContent":["import { $dictionary } from \"alepha/react/i18n\";\n\nexport class AuthI18n {\n en = $dictionary({\n name: \"alepha.ui.auth.en\",\n lazy: () => ({\n default: {\n loginSignIn: \"Sign in\",\n loginContinueWith: \"Continue with $1\",\n loginOr: \"OR\",\n loginCancel: \"Cancel\",\n loginForgotPassword: \"Forgot password?\",\n loginNoAccount: \"Don't have an account?\",\n loginSignUp: \"Sign up\",\n loginUsername: \"Username\",\n loginEmail: \"Email\",\n loginPhone: \"Phone number\",\n loginPassword: \"Password\",\n registerCreateAccount: \"Create account\",\n registerContinueWith: \"Continue with $1\",\n registerOr: \"OR\",\n registerCancel: \"Cancel\",\n registerHaveAccount: \"Already have an account?\",\n registerSignIn: \"Sign in\",\n registerUsername: \"Username\",\n registerEmail: \"Email\",\n registerPhone: \"Phone number\",\n registerPassword: \"Password\",\n registerConfirmPassword: \"Confirm password\",\n registerDisabled:\n \"Registration is not available. Please contact your administrator.\",\n registerBackToSignIn: \"Back to sign in\",\n registerVerifyTitle: \"Verify your account\",\n registerVerifyDescription:\n \"Please enter the verification code(s) sent to you.\",\n registerEmailCode: \"Email verification code\",\n registerPhoneCode: \"Phone verification code\",\n registerVerifySubmit: \"Complete Registration\",\n registerVerifyBack: \"Back to registration\",\n resetPasswordTitle: \"Reset password\",\n resetPasswordEmail: \"Email\",\n resetPasswordEnterEmail:\n \"Enter your email address to reset your password\",\n resetPasswordSendCode: \"Send verification code\",\n resetPasswordCodeSent: \"We've sent a verification code to your email.\",\n resetPasswordEnterCode: \"Enter the 6-digit code\",\n resetPasswordResendCode: \"Resend code\",\n resetPasswordEnterNewPassword: \"Create your new password\",\n resetPasswordNewPassword: \"New password\",\n resetPasswordConfirmPassword: \"Confirm password\",\n resetPasswordSetNewPassword: \"Set new password\",\n resetPasswordSuccess: \"Your password has been reset successfully.\",\n resetPasswordBackToSignIn: \"Back to sign in\",\n resetPasswordCancel: \"Cancel\",\n resetPasswordDisabled:\n \"Password reset is not available. Please contact your administrator.\",\n verifyEmailTitle: \"Email Verification\",\n verifyEmailVerifying: \"Verifying your email...\",\n verifyEmailPleaseWait:\n \"Please wait while we verify your email address.\",\n verifyEmailSuccess: \"Your email has been verified successfully.\",\n verifyEmailFailed:\n \"Failed to verify your email. The link may have expired or is invalid.\",\n verifyEmailMissingParams:\n \"Invalid verification link. Email and token are required.\",\n verifyEmailSignIn: \"Sign in to your account\",\n verifyEmailBackToSignIn: \"Back to sign in\",\n },\n }),\n });\n\n fr = $dictionary({\n lazy: () => ({\n default: {\n loginSignIn: \"Se connecter\",\n loginContinueWith: \"Continuer avec $1\",\n loginOr: \"OU\",\n loginCancel: \"Annuler\",\n loginForgotPassword: \"Mot de passe oublié ?\",\n loginNoAccount: \"Vous n'avez pas de compte ?\",\n loginSignUp: \"S'inscrire\",\n loginUsername: \"Nom d'utilisateur\",\n loginEmail: \"E-mail\",\n loginPhone: \"Numéro de téléphone\",\n loginPassword: \"Mot de passe\",\n registerCreateAccount: \"Créer un compte\",\n registerContinueWith: \"Continuer avec $1\",\n registerOr: \"OU\",\n registerCancel: \"Annuler\",\n registerHaveAccount: \"Vous avez déjà un compte ?\",\n registerSignIn: \"Se connecter\",\n registerUsername: \"Nom d'utilisateur\",\n registerEmail: \"E-mail\",\n registerPhone: \"Numéro de téléphone\",\n registerPassword: \"Mot de passe\",\n registerConfirmPassword: \"Confirmer le mot de passe\",\n registerDisabled:\n \"L'inscription n'est pas disponible. Veuillez contacter votre administrateur.\",\n registerBackToSignIn: \"Retour à la connexion\",\n registerVerifyTitle: \"Vérifiez votre compte\",\n registerVerifyDescription:\n \"Veuillez entrer le(s) code(s) de vérification qui vous ont été envoyés.\",\n registerEmailCode: \"Code de vérification par e-mail\",\n registerPhoneCode: \"Code de vérification par téléphone\",\n registerVerifySubmit: \"Terminer l'inscription\",\n registerVerifyBack: \"Retour à l'inscription\",\n resetPasswordTitle: \"Réinitialiser le mot de passe\",\n resetPasswordEmail: \"E-mail\",\n resetPasswordEnterEmail:\n \"Entrez votre adresse e-mail pour réinitialiser votre mot de passe\",\n resetPasswordSendCode: \"Envoyer le code de vérification\",\n resetPasswordCodeSent:\n \"Nous avons envoyé un code de vérification à votre e-mail.\",\n resetPasswordEnterCode: \"Entrez le code à 6 chiffres\",\n resetPasswordResendCode: \"Renvoyer le code\",\n resetPasswordEnterNewPassword: \"Créez votre nouveau mot de passe\",\n resetPasswordNewPassword: \"Nouveau mot de passe\",\n resetPasswordConfirmPassword: \"Confirmer le mot de passe\",\n resetPasswordSetNewPassword: \"Définir le nouveau mot de passe\",\n resetPasswordSuccess:\n \"Votre mot de passe a été réinitialisé avec succès.\",\n resetPasswordBackToSignIn: \"Retour à la connexion\",\n resetPasswordCancel: \"Annuler\",\n resetPasswordDisabled:\n \"La réinitialisation du mot de passe n'est pas disponible. Veuillez contacter votre administrateur.\",\n verifyEmailTitle: \"Vérification de l'e-mail\",\n verifyEmailVerifying: \"Vérification de votre e-mail...\",\n verifyEmailPleaseWait:\n \"Veuillez patienter pendant que nous vérifions votre adresse e-mail.\",\n verifyEmailSuccess: \"Votre e-mail a été vérifié avec succès.\",\n verifyEmailFailed:\n \"Échec de la vérification de votre e-mail. Le lien a peut-être expiré ou est invalide.\",\n verifyEmailMissingParams:\n \"Lien de vérification invalide. L'e-mail et le jeton sont requis.\",\n verifyEmailSignIn: \"Se connecter à votre compte\",\n verifyEmailBackToSignIn: \"Retour à la connexion\",\n },\n }),\n });\n}\n","import {\n IconLogin2,\n IconLogout2,\n IconMailCheck,\n IconPasswordUser,\n IconUserPlus,\n} from \"@tabler/icons-react\";\nimport { $inject, AlephaError, t } from \"alepha\";\nimport type { RealmController } from \"alepha/api/users\";\nimport { ReactAuth } from \"alepha/react/auth\";\nimport { $page } from \"alepha/react/router\";\nimport { $client } from \"alepha/server/links\";\n\n/**\n * Schema for realm query parameter used across auth pages.\n */\nconst realmQuerySchema = t.object({\n r: t.optional(t.string({ description: \"Redirect URL after authentication\" })),\n realm: t.optional(\n t.string({ description: \"User realm name for multi-tenant auth\" }),\n ),\n});\n\nexport class AuthRouter {\n protected readonly realmClient = $client<RealmController>();\n protected readonly auth = $inject(ReactAuth);\n\n layout = $page({\n name: \"AuthLayout\",\n path: \"/auth\",\n lazy: () => import(\"./components/AuthLayout.tsx\"),\n children: () => [\n this.login,\n this.register,\n this.resetPassword,\n this.verifyEmail,\n ],\n });\n\n login = $page({\n icon: IconLogin2,\n label: \"Sign In\",\n description: \"Sign in to your account\",\n path: \"/login\",\n schema: {\n query: realmQuerySchema,\n },\n can: () => !this.auth.user,\n lazy: () => import(\"./components/Login.tsx\"),\n loader: async ({ query }) => {\n return {\n realmConfig: await this.loadRealmConfig(query.realm),\n };\n },\n });\n\n register = $page({\n icon: IconUserPlus,\n label: \"Register\",\n description: \"Create a new account\",\n path: \"/register\",\n schema: {\n query: realmQuerySchema,\n },\n can: () => !this.auth.user,\n lazy: () => import(\"./components/Register.tsx\"),\n loader: async ({ query }) => {\n return {\n realmConfig: await this.loadRealmConfig(query.realm),\n };\n },\n });\n\n resetPassword = $page({\n icon: IconPasswordUser,\n label: \"Reset Password\",\n description: \"Reset your account password\",\n path: \"/reset-password\",\n schema: {\n query: realmQuerySchema,\n },\n can: () => !this.auth.user,\n lazy: () => import(\"./components/ResetPassword.tsx\"),\n loader: async ({ query }) => {\n return {\n realmConfig: await this.loadRealmConfig(query.realm),\n };\n },\n });\n\n verifyEmail = $page({\n icon: IconMailCheck,\n label: \"Verify Email\",\n description: \"Verify your email address\",\n path: \"/verify-email\",\n schema: {\n query: t.object({\n email: t.optional(t.string()),\n token: t.optional(t.string()),\n }),\n },\n lazy: () => import(\"./components/VerifyEmail.tsx\"),\n });\n\n logout = $page({\n icon: IconLogout2,\n label: \"Sign Out\",\n description: \"Sign out of your account\",\n can: () => !!this.auth.user,\n path: \"/logout\",\n component: () => null,\n loader: () => {\n this.auth.logout();\n return {};\n },\n });\n\n protected async loadRealmConfig(realmName?: string) {\n try {\n return await this.realmClient.getRealmConfig({\n query: { realmName },\n });\n } catch (e) {\n if (e instanceof AlephaError) {\n throw new AlephaError(\n \"Missing Realm Configuration - Did you forget to add '$realm()' to your application?\",\n e,\n );\n }\n throw e;\n }\n }\n}\n","import {\n ActionButton,\n type ActionMenuConfig,\n type ActionMenuItem,\n type ActionProps,\n ui,\n} from \"@alepha/ui\";\nimport { Avatar } from \"@mantine/core\";\nimport { IconLogin2, IconLogout, IconUser } from \"@tabler/icons-react\";\nimport { useAuth } from \"alepha/react/auth\";\nimport { useRouter } from \"alepha/react/router\";\nimport type { ReactNode } from \"react\";\nimport type { AuthRouter } from \"../../AuthRouter.ts\";\n\nexport interface UserButtonProps\n extends Omit<ActionProps, \"menu\" | \"icon\" | \"onClick\"> {\n /**\n * Additional menu items to display before the logout option\n */\n menuItems?: ActionMenuItem[];\n\n /**\n * Custom logout label (default: \"Sign out\")\n */\n logoutLabel?: string;\n\n /**\n * Menu configuration overrides\n */\n menuConfig?: Partial<Omit<ActionMenuConfig, \"items\">>;\n\n /**\n * Whether to show a divider before logout (default: true when menuItems provided)\n */\n showLogoutDivider?: boolean;\n\n /**\n * Custom icon to use instead of user avatar (default: IconUser)\n */\n icon?: ReactNode;\n}\n\nconst UserButton = (props: UserButtonProps) => {\n const {\n menuItems = [],\n logoutLabel = \"Sign out\",\n menuConfig,\n showLogoutDivider = menuItems.length > 0,\n icon,\n children,\n ...buttonProps\n } = props;\n\n buttonProps.variant ??= \"subtle\";\n\n const auth = useAuth<{\n username?: string;\n email?: string;\n picture?: string;\n }>();\n\n const authRouter = useRouter<AuthRouter>();\n\n if (!auth.user) {\n return (\n <ActionButton\n {...buttonProps}\n icon={IconLogin2}\n href={authRouter.path(\"login\")}\n />\n );\n }\n\n const userLabel = auth.user.username || auth.user.email;\n\n const items: ActionMenuItem[] = [];\n\n // Add user info label if available\n if (auth.user.email && auth.user.username) {\n items.push({\n type: \"label\",\n label: auth.user.email,\n });\n }\n\n // Add custom menu items\n items.push(...menuItems);\n\n // Add divider before logout if needed\n if (showLogoutDivider && items.length > 0) {\n items.push({ type: \"divider\" });\n }\n\n // Add logout item\n items.push({\n label: logoutLabel,\n icon: <IconLogout size={ui.sizes.icon.md} />,\n color: \"red\",\n onClick: () => auth.logout(),\n });\n\n // Use leftSection for Avatar (JSX element), icon prop for component types\n const hasAvatar = !icon && auth.user.picture;\n\n return (\n <ActionButton\n {...buttonProps}\n icon={hasAvatar ? undefined : (icon ?? IconUser)}\n leftSection={\n hasAvatar ? (\n <Avatar\n src={`/api/files/${auth.user.picture}`}\n size={24}\n radius=\"xl\"\n />\n ) : undefined\n }\n menu={{\n position: \"bottom-end\",\n width: 200,\n ...menuConfig,\n items,\n }}\n >\n {children ?? userLabel}\n </ActionButton>\n );\n};\n\nexport default UserButton;\n","import { AlephaUI } from \"@alepha/ui\";\nimport { $module } from \"alepha\";\nimport { AlephaReactAuth } from \"alepha/react/auth\";\nimport { AlephaReactI18n } from \"alepha/react/i18n\";\nimport { AuthI18n } from \"./AuthI18n.ts\";\nimport { AuthRouter } from \"./AuthRouter.ts\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\nexport * from \"./AuthRouter.ts\";\nexport type { UserButtonProps } from \"./components/buttons/UserButton.tsx\";\nexport { default as UserButton } from \"./components/buttons/UserButton.tsx\";\nexport { default as Login } from \"./components/Login.tsx\";\nexport { default as Register } from \"./components/Register.tsx\";\nexport { default as ResetPassword } from \"./components/ResetPassword.tsx\";\nexport { default as VerifyEmail } from \"./components/VerifyEmail.tsx\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\n/**\n * | type | quality | stability |\n * |------|---------|-----------|\n * | frontend | rare | experimental |\n *\n * Authentication UI components.\n *\n * **Features:**\n * - Login page component\n * - Register page component\n * - Reset password page component\n * - Email verification page component\n * - UserButton for user menu\n *\n * @module alepha.ui.auth\n */\nexport const AlephaUIAuth = $module({\n name: \"alepha.ui.auth\",\n services: [AlephaUI, AlephaReactAuth, AlephaReactI18n, AuthRouter, AuthI18n],\n});\n"],"mappings":";;;;;;;;;;;;;;;;AAEA,IAAa,WAAb,MAAsB;CACpB,KAAK,YAAY;EACf,MAAM;EACN,aAAa,EACX,SAAS;GACP,aAAa;GACb,mBA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AK;EAClB,CAAC;AAIJ,OAAM,KAAK,GAAG,UAAU;AAGxB,KAAI,qBAAqB,MAAM,SAAS,EACtC,OAAM,KAAK,EAAE,MAAM,WAAW,CAAC;AAIjC,OAAM,KAAK;EACT,OAAO;EACP,MAAM,oBAAC,cAAW,MAAM,GAAG,MAAM,KAAK,KAAM;EAC5C,OAAO;EACP,eAAe,KAAK,QAAQ;EAC7B,CAAC;CAGF,MAAM,YAAY,CAAC,QAAQ,KAAK,KAAK;AAErC,QACE,oBAAC;EACC,GAAI;EACJ,MAAM,YAAY,SAAa,QAAQ;EACvC,aACE,YACE,oBAAC;GACC,KAAK,cAAc,KAAK,KAAK;GAC7B,MAAM;GACN,QAAO;IACP,GACA;EAEN,MAAM;GACJ,UAAU;GACV,OAAO;GACP,GAAG;GACH;GACD;YAEA,YAAY;GACA;;AAInB,yBAAe;;;;;;;;;;;;;;;;;;;;AC9Ff,MAAa,eAAe,QAAQ;CAClC,MAAM;CACN,UAAU;EAAC;EAAU;EAAiB;EAAiB;EAAY;EAAS;CAC7E,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../src/auth/AuthI18n.ts","../../src/auth/AuthRouter.ts","../../src/auth/components/buttons/UserButton.tsx","../../src/auth/index.ts"],"sourcesContent":["import { $dictionary } from \"alepha/react/i18n\";\n\nexport class AuthI18n {\n en = $dictionary({\n name: \"alepha.ui.auth.en\",\n lazy: () => ({\n default: {\n loginSignIn: \"Sign in\",\n loginContinueWith: \"Continue with $1\",\n loginOr: \"OR\",\n loginCancel: \"Cancel\",\n loginForgotPassword: \"Forgot password?\",\n loginNoAccount: \"Don't have an account?\",\n loginSignUp: \"Sign up\",\n loginUsername: \"Username\",\n loginEmail: \"Email\",\n loginPhone: \"Phone number\",\n loginPassword: \"Password\",\n registerCreateAccount: \"Create account\",\n registerContinueWith: \"Continue with $1\",\n registerOr: \"OR\",\n registerCancel: \"Cancel\",\n registerHaveAccount: \"Already have an account?\",\n registerSignIn: \"Sign in\",\n registerUsername: \"Username\",\n registerEmail: \"Email\",\n registerPhone: \"Phone number\",\n registerPassword: \"Password\",\n registerConfirmPassword: \"Confirm password\",\n registerDisabled:\n \"Registration is not available. Please contact your administrator.\",\n registerBackToSignIn: \"Back to sign in\",\n registerVerifyTitle: \"Verify your account\",\n registerVerifyDescription:\n \"Please enter the verification code(s) sent to you.\",\n registerEmailCode: \"Email verification code\",\n registerPhoneCode: \"Phone verification code\",\n registerVerifySubmit: \"Complete Registration\",\n registerVerifyBack: \"Back to registration\",\n resetPasswordTitle: \"Reset password\",\n resetPasswordEmail: \"Email\",\n resetPasswordEnterEmail:\n \"Enter your email address to reset your password\",\n resetPasswordSendCode: \"Send verification code\",\n resetPasswordCodeSent: \"We've sent a verification code to your email.\",\n resetPasswordEnterCode: \"Enter the 6-digit code\",\n resetPasswordResendCode: \"Resend code\",\n resetPasswordEnterNewPassword: \"Create your new password\",\n resetPasswordNewPassword: \"New password\",\n resetPasswordConfirmPassword: \"Confirm password\",\n resetPasswordSetNewPassword: \"Set new password\",\n resetPasswordSuccess: \"Your password has been reset successfully.\",\n resetPasswordBackToSignIn: \"Back to sign in\",\n resetPasswordCancel: \"Cancel\",\n resetPasswordDisabled:\n \"Password reset is not available. Please contact your administrator.\",\n verifyEmailTitle: \"Email Verification\",\n verifyEmailVerifying: \"Verifying your email...\",\n verifyEmailPleaseWait:\n \"Please wait while we verify your email address.\",\n verifyEmailSuccess: \"Your email has been verified successfully.\",\n verifyEmailFailed:\n \"Failed to verify your email. The link may have expired or is invalid.\",\n verifyEmailMissingParams:\n \"Invalid verification link. Email and token are required.\",\n verifyEmailSignIn: \"Sign in to your account\",\n verifyEmailBackToSignIn: \"Back to sign in\",\n },\n }),\n });\n\n fr = $dictionary({\n lazy: () => ({\n default: {\n loginSignIn: \"Se connecter\",\n loginContinueWith: \"Continuer avec $1\",\n loginOr: \"OU\",\n loginCancel: \"Annuler\",\n loginForgotPassword: \"Mot de passe oublié ?\",\n loginNoAccount: \"Vous n'avez pas de compte ?\",\n loginSignUp: \"S'inscrire\",\n loginUsername: \"Nom d'utilisateur\",\n loginEmail: \"E-mail\",\n loginPhone: \"Numéro de téléphone\",\n loginPassword: \"Mot de passe\",\n registerCreateAccount: \"Créer un compte\",\n registerContinueWith: \"Continuer avec $1\",\n registerOr: \"OU\",\n registerCancel: \"Annuler\",\n registerHaveAccount: \"Vous avez déjà un compte ?\",\n registerSignIn: \"Se connecter\",\n registerUsername: \"Nom d'utilisateur\",\n registerEmail: \"E-mail\",\n registerPhone: \"Numéro de téléphone\",\n registerPassword: \"Mot de passe\",\n registerConfirmPassword: \"Confirmer le mot de passe\",\n registerDisabled:\n \"L'inscription n'est pas disponible. Veuillez contacter votre administrateur.\",\n registerBackToSignIn: \"Retour à la connexion\",\n registerVerifyTitle: \"Vérifiez votre compte\",\n registerVerifyDescription:\n \"Veuillez entrer le(s) code(s) de vérification qui vous ont été envoyés.\",\n registerEmailCode: \"Code de vérification par e-mail\",\n registerPhoneCode: \"Code de vérification par téléphone\",\n registerVerifySubmit: \"Terminer l'inscription\",\n registerVerifyBack: \"Retour à l'inscription\",\n resetPasswordTitle: \"Réinitialiser le mot de passe\",\n resetPasswordEmail: \"E-mail\",\n resetPasswordEnterEmail:\n \"Entrez votre adresse e-mail pour réinitialiser votre mot de passe\",\n resetPasswordSendCode: \"Envoyer le code de vérification\",\n resetPasswordCodeSent:\n \"Nous avons envoyé un code de vérification à votre e-mail.\",\n resetPasswordEnterCode: \"Entrez le code à 6 chiffres\",\n resetPasswordResendCode: \"Renvoyer le code\",\n resetPasswordEnterNewPassword: \"Créez votre nouveau mot de passe\",\n resetPasswordNewPassword: \"Nouveau mot de passe\",\n resetPasswordConfirmPassword: \"Confirmer le mot de passe\",\n resetPasswordSetNewPassword: \"Définir le nouveau mot de passe\",\n resetPasswordSuccess:\n \"Votre mot de passe a été réinitialisé avec succès.\",\n resetPasswordBackToSignIn: \"Retour à la connexion\",\n resetPasswordCancel: \"Annuler\",\n resetPasswordDisabled:\n \"La réinitialisation du mot de passe n'est pas disponible. Veuillez contacter votre administrateur.\",\n verifyEmailTitle: \"Vérification de l'e-mail\",\n verifyEmailVerifying: \"Vérification de votre e-mail...\",\n verifyEmailPleaseWait:\n \"Veuillez patienter pendant que nous vérifions votre adresse e-mail.\",\n verifyEmailSuccess: \"Votre e-mail a été vérifié avec succès.\",\n verifyEmailFailed:\n \"Échec de la vérification de votre e-mail. Le lien a peut-être expiré ou est invalide.\",\n verifyEmailMissingParams:\n \"Lien de vérification invalide. L'e-mail et le jeton sont requis.\",\n verifyEmailSignIn: \"Se connecter à votre compte\",\n verifyEmailBackToSignIn: \"Retour à la connexion\",\n },\n }),\n });\n}\n","import {\n IconLogin2,\n IconLogout2,\n IconMailCheck,\n IconPasswordUser,\n IconUser,\n IconUserPlus,\n} from \"@tabler/icons-react\";\nimport { $inject, AlephaError, t } from \"alepha\";\nimport type { RealmController } from \"alepha/api/users\";\nimport { ReactAuth } from \"alepha/react/auth\";\nimport { $page } from \"alepha/react/router\";\nimport { $client } from \"alepha/server/links\";\n\n/**\n * Schema for realm query parameter used across auth pages.\n */\nconst realmQuerySchema = t.object({\n r: t.optional(t.string({ description: \"Redirect URL after authentication\" })),\n realm: t.optional(\n t.string({ description: \"User realm name for multi-tenant auth\" }),\n ),\n});\n\nexport class AuthRouter {\n protected readonly realmClient = $client<RealmController>();\n protected readonly auth = $inject(ReactAuth);\n\n layout = $page({\n name: \"AuthLayout\",\n path: \"/auth\",\n lazy: () => import(\"./components/AuthLayout.tsx\"),\n children: () => [\n this.login,\n this.register,\n this.resetPassword,\n this.verifyEmail,\n this.profile,\n ],\n });\n\n login = $page({\n icon: IconLogin2,\n label: \"Sign In\",\n description: \"Sign in to your account\",\n path: \"/login\",\n schema: {\n query: realmQuerySchema,\n },\n can: () => !this.auth.user,\n lazy: () => import(\"./components/Login.tsx\"),\n loader: async ({ query }) => {\n return {\n realmConfig: await this.loadRealmConfig(query.realm),\n };\n },\n });\n\n register = $page({\n icon: IconUserPlus,\n label: \"Register\",\n description: \"Create a new account\",\n path: \"/register\",\n schema: {\n query: realmQuerySchema,\n },\n can: () => !this.auth.user,\n lazy: () => import(\"./components/Register.tsx\"),\n loader: async ({ query }) => {\n return {\n realmConfig: await this.loadRealmConfig(query.realm),\n };\n },\n });\n\n resetPassword = $page({\n icon: IconPasswordUser,\n label: \"Reset Password\",\n description: \"Reset your account password\",\n path: \"/reset-password\",\n schema: {\n query: realmQuerySchema,\n },\n can: () => !this.auth.user,\n lazy: () => import(\"./components/ResetPassword.tsx\"),\n loader: async ({ query }) => {\n return {\n realmConfig: await this.loadRealmConfig(query.realm),\n };\n },\n });\n\n verifyEmail = $page({\n icon: IconMailCheck,\n label: \"Verify Email\",\n description: \"Verify your email address\",\n path: \"/verify-email\",\n schema: {\n query: t.object({\n email: t.optional(t.string()),\n token: t.optional(t.string()),\n }),\n },\n lazy: () => import(\"./components/VerifyEmail.tsx\"),\n });\n\n logout = $page({\n icon: IconLogout2,\n label: \"Sign Out\",\n description: \"Sign out of your account\",\n can: () => !!this.auth.user,\n path: \"/logout\",\n component: () => null,\n loader: () => {\n this.auth.logout();\n return {};\n },\n });\n\n profile = $page({\n name: \"userProfile\",\n icon: IconUser,\n label: \"Profile\",\n description: \"View your profile\",\n path: \"/profile\",\n can: () => !!this.auth.user,\n lazy: () => import(\"./components/Profile.tsx\"),\n });\n\n protected async loadRealmConfig(realmName?: string) {\n try {\n return await this.realmClient.getRealmConfig({\n query: { realmName },\n });\n } catch (e) {\n if (e instanceof AlephaError) {\n throw new AlephaError(\n \"Missing Realm Configuration - Did you forget to add '$realm()' to your application?\",\n e,\n );\n }\n throw e;\n }\n }\n}\n","import {\n ActionButton,\n type ActionMenuConfig,\n type ActionMenuItem,\n type ActionProps,\n ui,\n} from \"@alepha/ui\";\nimport { Avatar } from \"@mantine/core\";\nimport {\n IconLogin2,\n IconLogout,\n IconSettings,\n IconUser,\n} from \"@tabler/icons-react\";\nimport type { AdminUserController } from \"alepha/api/users\";\nimport { useClient, useInject } from \"alepha/react\";\nimport { useAuth } from \"alepha/react/auth\";\nimport { ReactPageProvider, useRouter } from \"alepha/react/router\";\nimport type { ReactNode } from \"react\";\nimport type { AuthRouter } from \"../../AuthRouter.ts\";\n\nexport interface UserButtonProps\n extends Omit<ActionProps, \"menu\" | \"icon\" | \"onClick\"> {\n /**\n * Additional menu items to display before the logout option\n */\n menuItems?: ActionMenuItem[];\n\n /**\n * Custom logout label (default: \"Sign out\")\n */\n logoutLabel?: string;\n\n /**\n * Menu configuration overrides\n */\n menuConfig?: Partial<Omit<ActionMenuConfig, \"items\">>;\n\n /**\n * Whether to show a divider before logout (default: true when menuItems provided)\n */\n showLogoutDivider?: boolean;\n\n /**\n * Custom icon to use instead of user avatar (default: IconUser)\n */\n icon?: ReactNode;\n}\n\nconst UserButton = (props: UserButtonProps) => {\n const {\n menuItems = [],\n logoutLabel = \"Sign out\",\n menuConfig,\n showLogoutDivider = menuItems.length > 0,\n icon,\n children,\n ...buttonProps\n } = props;\n\n buttonProps.variant ??= \"subtle\";\n\n const adminUserCtrl = useClient<AdminUserController>();\n const pages = useInject(ReactPageProvider);\n\n const auth = useAuth<{\n username?: string;\n email?: string;\n picture?: string;\n }>();\n\n const isConnected = !!auth.user;\n const isAdmin = isConnected && adminUserCtrl.findUsers.can();\n const userPage = pages.getPages().find((it) => it.name === \"userProfile\");\n const adminPage = pages.getPages().find((it) => it.name === \"adminLayout\");\n const authRouter = useRouter<AuthRouter>();\n\n if (!auth.user) {\n return (\n <ActionButton\n {...buttonProps}\n icon={IconLogin2}\n href={authRouter.path(\"login\")}\n />\n );\n }\n\n const userLabel = auth.user.username || auth.user.email;\n\n const items: ActionMenuItem[] = [];\n\n // Add user info label if available\n if (auth.user.email && auth.user.username) {\n items.push({\n type: \"label\",\n label: auth.user.email,\n });\n }\n\n // Add profile page link if available\n if (userPage && isConnected) {\n items.push({\n label: \"Profile\",\n icon: <IconUser size={ui.sizes.icon.md} />,\n href: authRouter.path(\"userProfile\"),\n });\n }\n\n // Add admin page link if available and user is admin\n if (adminPage && isAdmin) {\n items.push({\n label: \"Admin\",\n icon: <IconSettings size={ui.sizes.icon.md} />,\n href: authRouter.path(\"adminLayout\"),\n });\n }\n\n // Add custom menu items\n items.push(...menuItems);\n\n // Add divider before logout if needed\n if (showLogoutDivider && items.length > 0) {\n items.push({ type: \"divider\" });\n }\n\n // Add logout item\n items.push({\n label: logoutLabel,\n icon: <IconLogout size={ui.sizes.icon.md} />,\n color: \"red\",\n onClick: () => auth.logout(),\n });\n\n // Use leftSection for Avatar (JSX element), icon prop for component types\n const hasAvatar = !icon && auth.user.picture;\n\n return (\n <ActionButton\n {...buttonProps}\n icon={hasAvatar ? undefined : (icon ?? IconUser)}\n leftSection={\n hasAvatar ? (\n <Avatar\n src={`/api/files/${auth.user.picture}`}\n size={24}\n radius=\"xl\"\n />\n ) : undefined\n }\n menu={{\n position: \"bottom-end\",\n width: 200,\n ...menuConfig,\n items,\n }}\n >\n {children ?? userLabel}\n </ActionButton>\n );\n};\n\nexport default UserButton;\n","import { AlephaUI } from \"@alepha/ui\";\nimport { $context, $module } from \"alepha\";\nimport { AlephaReactAuth } from \"alepha/react/auth\";\nimport { AlephaReactI18n } from \"alepha/react/i18n\";\nimport { AuthI18n } from \"./AuthI18n.ts\";\nimport { AuthRouter } from \"./AuthRouter.ts\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\nexport * from \"./AuthRouter.ts\";\nexport type { UserButtonProps } from \"./components/buttons/UserButton.tsx\";\nexport { default as UserButton } from \"./components/buttons/UserButton.tsx\";\nexport { default as Login } from \"./components/Login.tsx\";\nexport { default as Register } from \"./components/Register.tsx\";\nexport { default as ResetPassword } from \"./components/ResetPassword.tsx\";\nexport { default as VerifyEmail } from \"./components/VerifyEmail.tsx\";\n\n// ---------------------------------------------------------------------------------------------------------------------\n\n/**\n * | type | quality | stability |\n * |------|---------|-----------|\n * | frontend | rare | experimental |\n *\n * Authentication UI components.\n *\n * **Features:**\n * - Login page component\n * - Register page component\n * - Reset password page component\n * - Email verification page component\n * - UserButton for user menu\n *\n * @module alepha.ui.auth\n */\nexport const AlephaUIAuth = $module({\n name: \"alepha.ui.auth\",\n services: [AlephaUI, AlephaReactAuth, AlephaReactI18n, AuthRouter, AuthI18n],\n});\n\n// ---------------------------------------------------------------------------------------------------------------------\n\n/**\n * Register Auth UI components and get the AuthRouter instance.\n */\nexport const $uiAuth = () => {\n const { alepha } = $context();\n return alepha.inject(AuthRouter);\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAEA,IAAa,WAAb,MAAsB;CACpB,KAAK,YAAY;EACf,MAAM;EACN,aAAa,EACX,SAAS;GACP,aAAa;GACb,mBAAmB;GACnB,SAAS;GACT,aAAa;GACb,qBAAqB;GACrB,gBAAgB;GAChB,aAAa;GACb,eAAe;GACf,YAAY;GACZ,YAAY;GACZ,eAAe;GACf,uBAAuB;GACvB,sBAAsB;GACtB,YAAY;GACZ,gBAAgB;GAChB,qBAAqB;GACrB,gBAAgB;GAChB,kBAAkB;GAClB,eAAe;GACf,eAAe;GACf,kBAAkB;GAClB,yBAAyB;GACzB,kBACE;GACF,sBAAsB;GACtB,qBAAqB;GACrB,2BACE;GACF,mBAAmB;GACnB,mBAAmB;GACnB,sBAAsB;GACtB,oBAAoB;GACpB,oBAAoB;GACpB,oBAAoB;GACpB,yBACE;GACF,uBAAuB;GACvB,uBAAuB;GACvB,wBAAwB;GACxB,yBAAyB;GACzB,+BAA+B;GAC/B,0BAA0B;GAC1B,8BAA8B;GAC9B,6BAA6B;GAC7B,sBAAsB;GACtB,2BAA2B;GAC3B,qBAAqB;GACrB,uBACE;GACF,kBAAkB;GAClB,sBAAsB;GACtB,uBACE;GACF,oBAAoB;GACpB,mBACE;GACF,0BACE;GACF,mBAAmB;GACnB,yBAAyB;GAC1B,EACF;EACF,CAAC;CAEF,KAAK,YAAY,EACf,aAAa,EACX,SAAS;EACP,aAAa;EACb,mBAAmB;EACnB,SAAS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M,SAAS,EACtC,OAAM,KAAK,EAAE,MAAM,WAAW,CAAC;AAIjC,OAAM,KAAK;EACT,OAAO;EACP,MAAM,oBAAC,cAAW,MAAM,GAAG,MAAM,KAAK,KAAM;EAC5C,OAAO;EACP,eAAe,KAAK,QAAQ;EAC7B,CAAC;CAGF,MAAM,YAAY,CAAC,QAAQ,KAAK,KAAK;AAErC,QACE,oBAAC;EACC,GAAI;EACJ,MAAM,YAAY,SAAa,QAAQ;EACvC,aACE,YACE,oBAAC;GACC,KAAK,cAAc,KAAK,KAAK;GAC7B,MAAM;GACN,QAAO;IACP,GACA;EAEN,MAAM;GACJ,UAAU;GACV,OAAO;GACP,GAAG;GACH;GACD;YAEA,YAAY;GACA;;AAInB,yBAAe;;;;;;;;;;;;;;;;;;;;AC9Hf,MAAa,eAAe,QAAQ;CAClC,MAAM;CACN,UAAU;EAAC;EAAU;EAAiB;EAAiB;EAAY;EAAS;CAC7E,CAAC;;;;AAOF,MAAa,gBAAgB;CAC3B,MAAM,EAAE,WAAW,UAAU;AAC7B,QAAO,OAAO,OAAO,WAAW"}
|
package/dist/core/index.d.ts
CHANGED
|
@@ -3,16 +3,16 @@ import { Alepha, Async, Page, PageMetadata, Static, TObject, TProperties } from
|
|
|
3
3
|
import { BaseInputField, FormModel } from "alepha/react/form";
|
|
4
4
|
import * as alepha_react_head0 from "alepha/react/head";
|
|
5
5
|
import * as alepha_server_cookies0 from "alepha/server/cookies";
|
|
6
|
-
import
|
|
7
|
-
import { RouterGoOptions, UseActiveOptions } from "alepha/react/router";
|
|
8
|
-
import { AnchorProps, AppShellFooterProps, AppShellHeaderProps, AppShellMainProps, AppShellNavbarProps, AppShellProps, AutocompleteProps, BurgerProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, FileInputProps, Flex, FlexProps, MantineBreakpoint, MantineProviderProps, MantineThemeOverride, MenuProps, MenuTargetProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SliderProps, SwitchProps, TableProps, TableTrProps, TagsInputProps, Text, TextInputProps, TextareaProps, ThemeIconProps, TooltipProps } from "@mantine/core";
|
|
6
|
+
import { AnchorProps, AppShellFooterProps, AppShellHeaderProps, AppShellMainProps, AppShellNavbarProps, AppShellProps, AutocompleteProps, BurgerProps, ButtonProps, ColorInputProps, ColorSchemeScriptProps, ContainerProps, FileInputProps, Flex, FlexProps, MantineBreakpoint, MantineProviderProps, MantineThemeOverride, MenuProps, MenuTargetProps, ModalProps, MultiSelectProps, NumberInputProps, PasswordInputProps, SegmentedControlProps, SelectProps, SliderProps, SwitchProps, TableProps, TableTrProps, TagsInputProps, Text, TextInputProps, TextareaProps, ThemeIconProps, TooltipProps } from "@mantine/core";
|
|
9
7
|
import { ModalsProviderProps } from "@mantine/modals";
|
|
8
|
+
import { ComponentType, ReactElement, ReactNode } from "react";
|
|
9
|
+
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
10
10
|
import * as _mantine_notifications0 from "@mantine/notifications";
|
|
11
11
|
import { NotificationData, NotificationsProps } from "@mantine/notifications";
|
|
12
|
+
import * as alepha_react_router0 from "alepha/react/router";
|
|
13
|
+
import { RouterPushOptions, UseActiveOptions } from "alepha/react/router";
|
|
12
14
|
import { NavigationProgressProps } from "@mantine/nprogress";
|
|
13
15
|
import { UseActionReturn } from "alepha/react";
|
|
14
|
-
import * as react_jsx_runtime11 from "react/jsx-runtime";
|
|
15
|
-
import { ComponentType, ReactElement, ReactNode } from "react";
|
|
16
16
|
import { DateInputProps, DateTimePickerProps, TimeInputProps } from "@mantine/dates";
|
|
17
17
|
import { DurationLike } from "alepha/datetime";
|
|
18
18
|
|
|
@@ -65,6 +65,10 @@ declare const alephaThemeAtom: alepha1.Atom<alepha1.TObject<{
|
|
|
65
65
|
}>, "alepha.ui.theme">;
|
|
66
66
|
type CurrentAlephaTheme = Static<typeof alephaThemeAtom.schema>;
|
|
67
67
|
//#endregion
|
|
68
|
+
//#region ../../src/core/atoms/alephaThemeListAtom.d.ts
|
|
69
|
+
declare const alephaThemeListAtom: alepha1.Atom<alepha1.TArray<alepha1.TRecord<string, alepha1.TAny>>, "alepha.ui.themeList">;
|
|
70
|
+
type AlephaThemeListAtom = Static<typeof alephaThemeListAtom.schema>;
|
|
71
|
+
//#endregion
|
|
68
72
|
//#region ../../src/core/utils/parseInput.d.ts
|
|
69
73
|
interface GenericControlProps {
|
|
70
74
|
input: BaseInputField;
|
|
@@ -294,14 +298,17 @@ type CustomControlProps = {
|
|
|
294
298
|
onChange: (value: any) => void;
|
|
295
299
|
};
|
|
296
300
|
//#endregion
|
|
297
|
-
//#region ../../src/core/
|
|
298
|
-
|
|
301
|
+
//#region ../../src/core/UiRouter.d.ts
|
|
302
|
+
/**
|
|
303
|
+
* UI Router defining the root page with AlephaMantineProvider.
|
|
304
|
+
*
|
|
305
|
+
* - Use UiRouter when you need Alepha's Mantine-based UI components and theming.
|
|
306
|
+
* - Prefer to use $ui() for convenience. (Custom Factory of UiRouter)
|
|
307
|
+
*/
|
|
308
|
+
declare class UiRouter {
|
|
299
309
|
readonly root: alepha_react_router0.PagePrimitive<alepha_react_router0.PageConfigSchema, any, alepha_react_router0.TPropsParentDefault>;
|
|
300
310
|
}
|
|
301
311
|
//#endregion
|
|
302
|
-
//#region ../../src/core/atoms/alephaThemeListAtom.d.ts
|
|
303
|
-
declare const alephaThemeListAtom: alepha1.Atom<alepha1.TArray<alepha1.TRecord<string, alepha1.TAny>>, "alepha.ui.themeList">;
|
|
304
|
-
//#endregion
|
|
305
312
|
//#region ../../src/core/interfaces/AlephaTheme.d.ts
|
|
306
313
|
type AlephaTheme = MantineThemeOverride & {
|
|
307
314
|
name: string;
|
|
@@ -422,7 +429,7 @@ interface ActionClickButtonProps extends ButtonProps {
|
|
|
422
429
|
interface ActionNavigationButtonProps extends ButtonProps {
|
|
423
430
|
href: string;
|
|
424
431
|
active?: Partial<UseActiveOptions> | false;
|
|
425
|
-
routerGoOptions?:
|
|
432
|
+
routerGoOptions?: RouterPushOptions;
|
|
426
433
|
classNameActive?: string;
|
|
427
434
|
variantActive?: ButtonProps["variant"];
|
|
428
435
|
target?: string;
|
|
@@ -698,41 +705,109 @@ interface TypeFormProps<T extends TObject> {
|
|
|
698
705
|
declare const TypeForm: <T extends TObject>(props: TypeFormProps<T>) => react_jsx_runtime11.JSX.Element | null;
|
|
699
706
|
//#endregion
|
|
700
707
|
//#region ../../src/core/components/layout/AppBar.d.ts
|
|
701
|
-
type AppBarItem = AppBarElement | AppBarBurger | AppBarDark | AppBarSearch | AppBarLang | AppBarSpacer | AppBarDivider;
|
|
702
|
-
interface
|
|
708
|
+
type AppBarItem = AppBarElement | AppBarBurger | AppBarDark | AppBarSearch | AppBarLang | AppBarSpacer | AppBarDivider | AppBarLogo | AppBarBack;
|
|
709
|
+
interface AppBarAbstractItem {
|
|
703
710
|
position: "left" | "center" | "right";
|
|
711
|
+
/**
|
|
712
|
+
* Visibility control: return true to show, false to hide.
|
|
713
|
+
*/
|
|
714
|
+
can?: () => boolean;
|
|
715
|
+
}
|
|
716
|
+
interface AppBarElement extends AppBarAbstractItem {
|
|
704
717
|
element: ReactNode;
|
|
705
718
|
}
|
|
706
|
-
interface AppBarBurger {
|
|
707
|
-
position: "left" | "center" | "right";
|
|
719
|
+
interface AppBarBurger extends AppBarAbstractItem {
|
|
708
720
|
type: "burger";
|
|
709
721
|
}
|
|
710
|
-
interface AppBarDark {
|
|
711
|
-
position: "left" | "center" | "right";
|
|
722
|
+
interface AppBarDark extends AppBarAbstractItem {
|
|
712
723
|
type: "dark";
|
|
713
724
|
props?: DarkModeButtonProps;
|
|
714
725
|
}
|
|
715
|
-
interface AppBarSearch {
|
|
716
|
-
position: "left" | "center" | "right";
|
|
726
|
+
interface AppBarSearch extends AppBarAbstractItem {
|
|
717
727
|
type: "search";
|
|
718
728
|
props?: OmnibarButtonProps;
|
|
719
729
|
}
|
|
720
|
-
interface AppBarLang {
|
|
721
|
-
position: "left" | "center" | "right";
|
|
730
|
+
interface AppBarLang extends AppBarAbstractItem {
|
|
722
731
|
type: "lang";
|
|
723
732
|
props?: LanguageButtonProps;
|
|
724
733
|
}
|
|
725
|
-
interface AppBarSpacer {
|
|
726
|
-
position: "left" | "center" | "right";
|
|
734
|
+
interface AppBarSpacer extends AppBarAbstractItem {
|
|
727
735
|
type: "spacer";
|
|
728
736
|
}
|
|
729
|
-
interface AppBarDivider {
|
|
730
|
-
position: "left" | "center" | "right";
|
|
737
|
+
interface AppBarDivider extends AppBarAbstractItem {
|
|
731
738
|
type: "divider";
|
|
732
739
|
}
|
|
740
|
+
interface AppBarLogo extends AppBarAbstractItem {
|
|
741
|
+
type: "logo";
|
|
742
|
+
props?: {
|
|
743
|
+
/**
|
|
744
|
+
* Logo image source URL.
|
|
745
|
+
*/
|
|
746
|
+
src?: string;
|
|
747
|
+
/**
|
|
748
|
+
* Logo text (used if no src provided).
|
|
749
|
+
*/
|
|
750
|
+
text?: string;
|
|
751
|
+
/**
|
|
752
|
+
* Icon component (used if no src or text provided).
|
|
753
|
+
*/
|
|
754
|
+
icon?: ReactNode | ComponentType;
|
|
755
|
+
/**
|
|
756
|
+
* Link href when logo is clicked.
|
|
757
|
+
*/
|
|
758
|
+
href?: string;
|
|
759
|
+
/**
|
|
760
|
+
* Logo image height in pixels.
|
|
761
|
+
* @default 32
|
|
762
|
+
*/
|
|
763
|
+
height?: number;
|
|
764
|
+
/**
|
|
765
|
+
* Logo image width in pixels.
|
|
766
|
+
*/
|
|
767
|
+
width?: number;
|
|
768
|
+
/**
|
|
769
|
+
* Font weight for text logo.
|
|
770
|
+
* @default 700
|
|
771
|
+
*/
|
|
772
|
+
fontWeight?: number;
|
|
773
|
+
/**
|
|
774
|
+
* Font size for text logo.
|
|
775
|
+
* @default "lg"
|
|
776
|
+
*/
|
|
777
|
+
fontSize?: string;
|
|
778
|
+
};
|
|
779
|
+
}
|
|
780
|
+
interface AppBarBack extends AppBarAbstractItem {
|
|
781
|
+
type: "back";
|
|
782
|
+
props?: {
|
|
783
|
+
/**
|
|
784
|
+
* Custom label for back button.
|
|
785
|
+
* @default "Back"
|
|
786
|
+
*/
|
|
787
|
+
label?: string;
|
|
788
|
+
/**
|
|
789
|
+
* Show only icon without label.
|
|
790
|
+
* @default true
|
|
791
|
+
*/
|
|
792
|
+
iconOnly?: boolean;
|
|
793
|
+
/**
|
|
794
|
+
* Custom href to navigate to instead of history back.
|
|
795
|
+
*/
|
|
796
|
+
href?: string;
|
|
797
|
+
/**
|
|
798
|
+
* Custom icon component.
|
|
799
|
+
*/
|
|
800
|
+
icon?: ReactNode | ComponentType;
|
|
801
|
+
};
|
|
802
|
+
}
|
|
733
803
|
interface AppBarProps {
|
|
734
804
|
flexProps?: FlexProps;
|
|
735
805
|
items?: AppBarItem[];
|
|
806
|
+
/**
|
|
807
|
+
* Wrap the AppBar content in a Mantine Container.
|
|
808
|
+
* Pass `true` for default Container, or ContainerProps to customize.
|
|
809
|
+
*/
|
|
810
|
+
container?: boolean | ContainerProps;
|
|
736
811
|
}
|
|
737
812
|
declare const AppBar: (props: AppBarProps) => react_jsx_runtime11.JSX.Element;
|
|
738
813
|
//#endregion
|
|
@@ -831,13 +906,18 @@ interface AdminShellProps {
|
|
|
831
906
|
* Enable drag-to-resize for the sidebar.
|
|
832
907
|
* Width and constraints are configured in alephaSidebarAtom.
|
|
833
908
|
*/
|
|
834
|
-
|
|
909
|
+
sidebarResizable?: boolean;
|
|
835
910
|
noSidebarWhen?: {
|
|
836
911
|
/**
|
|
837
912
|
* Paths where the sidebar should be hidden.
|
|
838
913
|
*/
|
|
839
914
|
paths?: string[];
|
|
840
915
|
};
|
|
916
|
+
/**
|
|
917
|
+
* Wrap AppBar and main content in a Mantine Container.
|
|
918
|
+
* Pass `true` for default Container, or ContainerProps to customize.
|
|
919
|
+
*/
|
|
920
|
+
container?: boolean | ContainerProps;
|
|
841
921
|
}
|
|
842
922
|
declare const AdminShell: (props: AdminShellProps) => react_jsx_runtime11.JSX.Element;
|
|
843
923
|
//#endregion
|
|
@@ -1181,9 +1261,11 @@ declare module "alepha/react/router" {
|
|
|
1181
1261
|
*/
|
|
1182
1262
|
declare const AlephaUI: alepha1.Service<alepha1.Module>;
|
|
1183
1263
|
/**
|
|
1184
|
-
*
|
|
1264
|
+
* Convenience function to configure and inject the UiRouter.
|
|
1185
1265
|
*/
|
|
1186
|
-
declare const $ui: (
|
|
1266
|
+
declare const $ui: (options?: {
|
|
1267
|
+
themes?: AlephaThemeListAtom;
|
|
1268
|
+
}) => UiRouter;
|
|
1187
1269
|
//#endregion
|
|
1188
|
-
export { $ui, ActionButton, type ActionClickButtonProps, type ActionCommonProps, type ActionMenuConfig, type ActionMenuItem, type ActionNavigationButtonProps, type ActionProps, type ActionSubmitButtonProps, AdminShell, type AdminShellProps, AlephaMantineProvider, AlephaSidebarState, AlephaUI, AlertDialog, type AlertDialogOptions, type AlertDialogProps, AppBar, type AppBarBurger, type AppBarDark, type AppBarDivider, type AppBarElement, type AppBarItem, type AppBarLang, type AppBarProps, type AppBarSearch, type AppBarSpacer, type BaseDialogOptions, BurgerButton, type CheckboxAction, type CheckboxActionContext, ClipboardButton, type ClipboardButtonProps, type ColumnVisibility, ConfirmDialog, type ConfirmDialogOptions, type ConfirmDialogProps, Control, ControlArray, ControlDate, ControlNumber, ControlObject, ControlQueryBuilder, ControlSelect, CurrentAlephaTheme, DarkModeButton, DataTable, type DataTableColumn, type DataTableColumnContext, type DataTableProps, type DataTableSubmitContext, DialogService, type FilterVisibility, Flex, IconSize, LanguageButton, type MaybePage, OPERATOR_INFO, Omnibar, OmnibarButton, PromptDialog, type PromptDialogOptions, type PromptDialogProps,
|
|
1270
|
+
export { $ui, ActionButton, type ActionClickButtonProps, type ActionCommonProps, type ActionMenuConfig, type ActionMenuItem, type ActionNavigationButtonProps, type ActionProps, type ActionSubmitButtonProps, AdminShell, type AdminShellProps, AlephaMantineProvider, AlephaSidebarState, AlephaThemeListAtom, AlephaUI, AlertDialog, type AlertDialogOptions, type AlertDialogProps, AppBar, type AppBarBurger, type AppBarDark, type AppBarDivider, type AppBarElement, type AppBarItem, type AppBarLang, type AppBarProps, type AppBarSearch, type AppBarSpacer, type BaseDialogOptions, BurgerButton, type CheckboxAction, type CheckboxActionContext, ClipboardButton, type ClipboardButtonProps, type ColumnVisibility, ConfirmDialog, type ConfirmDialogOptions, type ConfirmDialogProps, Control, ControlArray, ControlDate, ControlNumber, ControlObject, ControlQueryBuilder, ControlSelect, CurrentAlephaTheme, DarkModeButton, DataTable, type DataTableColumn, type DataTableColumnContext, type DataTableProps, type DataTableSubmitContext, DialogService, type FilterVisibility, Flex, IconSize, LanguageButton, type MaybePage, OPERATOR_INFO, Omnibar, OmnibarButton, PromptDialog, type PromptDialogOptions, type PromptDialogProps, SchemaField, Sidebar, type SidebarAbstractItem, type SidebarButtonTheme, type SidebarDivider, type SidebarElement, type SidebarItemProps, type SidebarMenuItem, type SidebarNode, type SidebarProps, type SidebarSearch, type SidebarSection, type SidebarSpacer, type SidebarTheme, Text, ThemeButton, type ThemeButtonProps, ThemeProvider, ToastService, ToggleSidebarButton, TypeForm, UiRouter, alephaSidebarAtom, alephaThemeAtom, alephaThemeListAtom, capitalize, defaultTheme, extractSchemaFields, getDefaultIcon, getOperatorsForField, midnightTheme, prettyName, ui, useDialog, useToast };
|
|
1189
1271
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/core/atoms/alephaSidebarAtom.ts","../../src/core/atoms/alephaThemeAtom.ts","../../src/core/utils/parseInput.ts","../../src/core/components/form/ControlArray.tsx","../../src/core/components/form/ControlNumber.tsx","../../src/core/components/form/ControlObject.tsx","../../src/core/components/form/ControlSelect.tsx","../../src/core/components/form/Control.tsx","../../src/core/RootRouter.ts","../../src/core/atoms/alephaThemeListAtom.ts","../../src/core/interfaces/AlephaTheme.ts","../../src/core/atoms/themes/default.ts","../../src/core/atoms/themes/midnight.ts","../../src/core/components/buttons/ActionButton.tsx","../../src/core/components/buttons/BurgerButton.tsx","../../src/core/components/buttons/ClipboardButton.tsx","../../src/core/components/buttons/DarkModeButton.tsx","../../src/core/components/buttons/LanguageButton.tsx","../../src/core/components/buttons/OmnibarButton.tsx","../../src/core/components/buttons/ThemeButton.tsx","../../src/core/components/buttons/ToggleSidebarButton.tsx","../../src/core/services/DialogService.tsx","../../src/core/components/dialogs/AlertDialog.tsx","../../src/core/components/dialogs/ConfirmDialog.tsx","../../src/core/components/dialogs/PromptDialog.tsx","../../src/core/components/form/ControlDate.tsx","../../src/core/components/form/ControlQueryBuilder.tsx","../../src/core/components/form/TypeForm.tsx","../../src/core/components/layout/AppBar.tsx","../../src/core/components/layout/Sidebar.tsx","../../src/core/components/layout/AdminShell.tsx","../../src/core/components/layout/Omnibar.tsx","../../src/core/components/layout/AlephaMantineProvider.tsx","../../src/core/components/table/types.ts","../../src/core/components/table/DataTable.tsx","../../src/core/constants/ui.ts","../../src/core/hooks/useDialog.ts","../../src/core/services/ToastService.tsx","../../src/core/hooks/useToast.ts","../../src/core/providers/ThemeProvider.ts","../../src/core/utils/extractSchemaFields.ts","../../src/core/utils/icons.tsx","../../src/core/utils/string.ts","../../src/core/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAEa,iBAAA,EAAiB,OAAA,CAAA,IAAA,SAAA,OAAA;;;;UAoD5B,OAAA,CAAA,QAAA;;;;;;;;;;;;;;;EAAA;;;;;;;;;;;;;;;EApD4B;;;;;;KAsDlB,kBAAA,GAAqB,MAAA,QAAc,iBAAA,CAAkB,MAAA;;;cCtDpD,eAAA,EAAe,OAAA,CAAA,IAAA,SAAA,OAAA;SAQ1B,OAAA,CAAA,QAAA;AAAA;AAAA,KAEU,kBAAA,GAAqB,MAAA,QAAc,eAAA,CAAgB,MAAA;;;UC8F9C,mBAAA;EACf,KAAA,EAAO,cAAA;EACP,KAAA;EACA,WAAA;EACA,IAAA,GAAO,YAAA,KAAiB,KAAA;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AM,IAAA;;;;cAKhC,cAAA,GAAkB,MAAA;EAC7B,IAAA;EACA,MAAA;EACA,IAAA;EACA,MAAA;EACA,OAAA;EACA,IAAA,GAAO,QAAA;AAAA,MACL,YAAA;;;;;;;;;cC1BS,UAAA,GAAc,GAAA;;;;;;;;;cAYd,UAAA,GAAc,IAAA;;;;YCqGf,cAAA;IACR,QAAA,GAAW,IAAA,CAAK,YAAA;EAAA;AAAA;AAAA;EAAA,UAKR,KAAA;IAAA,CACP,iBAAA,CAAkB,GAAA,IAAO,MAAA,QAAc,iBAAA,CAAkB,MAAA;IAAA,CACzD,eAAA,CAAgB,GAAA,IAAO,MAAA,QAAc,eAAA,CAAgB,MAAA;EAAA;AAAA;AAAA;EAAA,UAK9C,oBAAA;I1C1HV;;;;;;;;I0CmIE,KAAA;;;;IAKA,WAAA;I1CtIQ;;;I0C2IR,IAAA,GAAO,SAAA,GAAY,aAAA;EAAA;AAAA;;;;;;;AzC7CvB;;;;;;;;;;;;;;;;;cyC0Ea,QAAA,EAAQ,OAAA,CAAA,OAAA,CAWnB,OAAA,CAXmB,MAAA;;;;cAgBR,GAAA,GACX,IAAA,UAIM,UAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/core/atoms/alephaSidebarAtom.ts","../../src/core/atoms/alephaThemeAtom.ts","../../src/core/atoms/alephaThemeListAtom.ts","../../src/core/utils/parseInput.ts","../../src/core/components/form/ControlArray.tsx","../../src/core/components/form/ControlNumber.tsx","../../src/core/components/form/ControlObject.tsx","../../src/core/components/form/ControlSelect.tsx","../../src/core/components/form/Control.tsx","../../src/core/UiRouter.ts","../../src/core/interfaces/AlephaTheme.ts","../../src/core/atoms/themes/default.ts","../../src/core/atoms/themes/midnight.ts","../../src/core/components/buttons/ActionButton.tsx","../../src/core/components/buttons/BurgerButton.tsx","../../src/core/components/buttons/ClipboardButton.tsx","../../src/core/components/buttons/DarkModeButton.tsx","../../src/core/components/buttons/LanguageButton.tsx","../../src/core/components/buttons/OmnibarButton.tsx","../../src/core/components/buttons/ThemeButton.tsx","../../src/core/components/buttons/ToggleSidebarButton.tsx","../../src/core/services/DialogService.tsx","../../src/core/components/dialogs/AlertDialog.tsx","../../src/core/components/dialogs/ConfirmDialog.tsx","../../src/core/components/dialogs/PromptDialog.tsx","../../src/core/components/form/ControlDate.tsx","../../src/core/components/form/ControlQueryBuilder.tsx","../../src/core/components/form/TypeForm.tsx","../../src/core/components/layout/AppBar.tsx","../../src/core/components/layout/Sidebar.tsx","../../src/core/components/layout/AdminShell.tsx","../../src/core/components/layout/Omnibar.tsx","../../src/core/components/layout/AlephaMantineProvider.tsx","../../src/core/components/table/types.ts","../../src/core/components/table/DataTable.tsx","../../src/core/constants/ui.ts","../../src/core/hooks/useDialog.ts","../../src/core/services/ToastService.tsx","../../src/core/hooks/useToast.ts","../../src/core/providers/ThemeProvider.ts","../../src/core/utils/extractSchemaFields.ts","../../src/core/utils/icons.tsx","../../src/core/utils/string.ts","../../src/core/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;cAEa,iBAAA,EAAiB,OAAA,CAAA,IAAA,SAAA,OAAA;;;;UAoD5B,OAAA,CAAA,QAAA;;;;;;;;;;;;;;;EAAA;;;;;;;;;;;;;;;EApD4B;;;;;;KAsDlB,kBAAA,GAAqB,MAAA,QAAc,iBAAA,CAAkB,MAAA;;;cCtDpD,eAAA,EAAe,OAAA,CAAA,IAAA,SAAA,OAAA;SAQ1B,OAAA,CAAA,QAAA;AAAA;AAAA,KAEU,kBAAA,GAAqB,MAAA,QAAc,eAAA,CAAgB,MAAA;;;cCPlD,mBAAA,EAAmB,OAAA,CAAA,IAAA,CAAA,OAAA,CAAA,MAAA,CAAA,OAAA,CAAA,OAAA,SAI9B,OAAA,CAJ8B,IAAA;AAAA,KAMpB,mBAAA,GAAsB,MAAA,QAAc,mBAAA,CAAoB,MAAA;;;UC+FnD,mBAAA;EACf,KAAA,EAAO,cAAA;EACP,KAAA;EACA,WAAA;EACA,IAAA,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