r3ui-lib 1.2.24 → 1.2.25

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.
@@ -2,18 +2,16 @@
2
2
  * Права раздела «Авторизация» в auth-front.
3
3
  * Синхронизировать с auth/database/seeders/PermissionSeeder.php.
4
4
  */
5
- export declare const AUTH_SIDEBAR_NAV_ITEMS: readonly [{
6
- readonly permission: "view-users";
7
- readonly href: "/users";
8
- }, {
9
- readonly permission: "view-organizations";
10
- readonly href: "/organizations";
11
- }, {
12
- readonly permission: "view-own-object-access-requests";
13
- readonly href: "/access-requests";
14
- }];
5
+ export type AuthSidebarNavItem = {
6
+ href: string;
7
+ permission?: string;
8
+ permissions?: readonly string[];
9
+ };
10
+ export declare const ACCESS_REQUEST_ACTION_PERMISSIONS: readonly ["create-object-access-request", "cancel-own-object-access-request", "decide-object-access-request"];
11
+ export declare const AUTH_SIDEBAR_NAV_ITEMS: readonly AuthSidebarNavItem[];
15
12
  /** Права для внешней ссылки на auth-front (registration-front, handbook-front). */
16
- export declare const AUTH_SIDEBAR_EXTERNAL_LINK_PERMISSIONS: readonly ["sidebar-view-auth", ...("view-users" | "view-organizations" | "view-own-object-access-requests")[], "view-incoming-object-access-requests"];
13
+ export declare const AUTH_SIDEBAR_EXTERNAL_LINK_PERMISSIONS: readonly ["sidebar-view-auth", ...string[]];
14
+ export declare function canViewAuthSidebarNavItem(checkPermission: (permission: string) => boolean, item: AuthSidebarNavItem): boolean;
17
15
  export declare function canViewAuthSidebarExternalLink(checkPermission: (permission: string) => boolean): boolean;
18
16
  export declare function canViewAuthSidebarSection(checkPermission: (permission: string) => boolean): boolean;
19
17
  //# sourceMappingURL=authSidebar.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"authSidebar.d.ts","sourceRoot":"","sources":["../../../src/constants/authSidebar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,eAAO,MAAM,sBAAsB;;;;;;;;;EAOzB,CAAC;AAEX,mFAAmF;AACnF,eAAO,MAAM,sCAAsC,wJAIzC,CAAC;AAEX,wBAAgB,8BAA8B,CAC5C,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,GAC/C,OAAO,CAET;AAED,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,GAC/C,OAAO,CAET"}
1
+ {"version":3,"file":"authSidebar.d.ts","sourceRoot":"","sources":["../../../src/constants/authSidebar.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC,CAAC;AAEF,eAAO,MAAM,iCAAiC,+GAIpC,CAAC;AAEX,eAAO,MAAM,sBAAsB,EAAE,SAAS,kBAAkB,EAOtD,CAAC;AAEX,mFAAmF;AACnF,eAAO,MAAM,sCAAsC,6CAKzC,CAAC;AAEX,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,EAChD,IAAI,EAAE,kBAAkB,GACvB,OAAO,CAUT;AAED,wBAAgB,8BAA8B,CAC5C,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,GAC/C,OAAO,CAET;AAED,wBAAgB,yBAAyB,CACvC,eAAe,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,OAAO,GAC/C,OAAO,CAIT"}
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "r3ui-lib",
3
3
  "private": false,
4
- "version": "1.2.24",
4
+ "version": "1.2.25",
5
5
  "description": "Modern Vue 3 UI component library with TypeScript support",
6
6
  "keywords": [
7
7
  "vue",