com-angel-authorization 1.0.17 → 1.0.18
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/README.md +57 -3
- package/dist/index.cjs +172 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +85 -2
- package/dist/index.d.ts +85 -2
- package/dist/index.js +166 -2
- package/dist/index.js.map +1 -1
- package/dist/react/index.cjs +936 -22
- package/dist/react/index.cjs.map +1 -1
- package/dist/react/index.d.cts +96 -4
- package/dist/react/index.d.ts +96 -4
- package/dist/react/index.js +930 -20
- package/dist/react/index.js.map +1 -1
- package/dist/vue/index.cjs +1090 -28
- package/dist/vue/index.cjs.map +1 -1
- package/dist/vue/index.d.cts +130 -3
- package/dist/vue/index.d.ts +130 -3
- package/dist/vue/index.js +1086 -25
- package/dist/vue/index.js.map +1 -1
- package/package.json +1 -1
package/dist/vue/index.d.cts
CHANGED
|
@@ -561,7 +561,126 @@ declare const RoleManager: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
561
561
|
pageSize: string;
|
|
562
562
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
563
563
|
|
|
564
|
-
type
|
|
564
|
+
type SystemGroupOption = {
|
|
565
|
+
groupId: string;
|
|
566
|
+
name: string;
|
|
567
|
+
};
|
|
568
|
+
type SystemRoleOption = {
|
|
569
|
+
roleId: string;
|
|
570
|
+
name: string;
|
|
571
|
+
};
|
|
572
|
+
type SystemUser = {
|
|
573
|
+
userId: string;
|
|
574
|
+
username: string;
|
|
575
|
+
name: string;
|
|
576
|
+
groupIds: string[];
|
|
577
|
+
roleIds: string[];
|
|
578
|
+
/** 列表展示用,接口若返回则优先使用 */
|
|
579
|
+
groupNames?: string[];
|
|
580
|
+
roleNames?: string[];
|
|
581
|
+
enabled: boolean;
|
|
582
|
+
};
|
|
583
|
+
type SystemUserFormValues = {
|
|
584
|
+
username: string;
|
|
585
|
+
name: string;
|
|
586
|
+
/** 新增必填;编辑时可留空表示不修改 */
|
|
587
|
+
password: string;
|
|
588
|
+
groupIds: string[];
|
|
589
|
+
roleIds: string[];
|
|
590
|
+
enabled: boolean;
|
|
591
|
+
};
|
|
592
|
+
type CreateSystemUserBody = {
|
|
593
|
+
username: string;
|
|
594
|
+
name: string;
|
|
595
|
+
password: string;
|
|
596
|
+
groupIds: string[];
|
|
597
|
+
roleIds: string[];
|
|
598
|
+
enabled: boolean;
|
|
599
|
+
};
|
|
600
|
+
type UpdateSystemUserBody = {
|
|
601
|
+
username: string;
|
|
602
|
+
name: string;
|
|
603
|
+
password?: string;
|
|
604
|
+
groupIds: string[];
|
|
605
|
+
roleIds: string[];
|
|
606
|
+
enabled: boolean;
|
|
607
|
+
};
|
|
608
|
+
type FetchSystemUsersParams = {
|
|
609
|
+
keyword?: string;
|
|
610
|
+
/** undefined 表示不过滤 */
|
|
611
|
+
enabled?: boolean;
|
|
612
|
+
pagination?: ListPaginationParams;
|
|
613
|
+
};
|
|
614
|
+
type SystemUserListResult = {
|
|
615
|
+
records: SystemUser[];
|
|
616
|
+
pageToken: string;
|
|
617
|
+
hasPreviousPage: boolean;
|
|
618
|
+
hasNextPage: boolean;
|
|
619
|
+
};
|
|
620
|
+
type FetchSystemGroupsParams = {
|
|
621
|
+
keyword?: string;
|
|
622
|
+
};
|
|
623
|
+
type FetchSystemRoleOptionsParams = {
|
|
624
|
+
keyword?: string;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
type SystemUserApi = {
|
|
628
|
+
list: (params?: FetchSystemUsersParams, signal?: AbortSignal) => Promise<SystemUserListResult>;
|
|
629
|
+
create: (values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
|
|
630
|
+
update: (userId: string, values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
|
|
631
|
+
remove: (userId: string, signal?: AbortSignal) => Promise<unknown>;
|
|
632
|
+
listGroups: (params?: FetchSystemGroupsParams, signal?: AbortSignal) => Promise<SystemGroupOption[]>;
|
|
633
|
+
listRoleOptions: (params?: FetchSystemRoleOptionsParams, signal?: AbortSignal) => Promise<SystemRoleOption[]>;
|
|
634
|
+
};
|
|
635
|
+
declare function mapSystemUser(item: unknown): SystemUser | null;
|
|
636
|
+
declare function mapSystemGroupOption(item: unknown): SystemGroupOption | null;
|
|
637
|
+
declare function mapSystemRoleOption(item: unknown): SystemRoleOption | null;
|
|
638
|
+
/**
|
|
639
|
+
* 账号校验:不少于 6 位,且同时包含字母与数字。
|
|
640
|
+
* 通过返回 null,失败返回错误文案。
|
|
641
|
+
*/
|
|
642
|
+
declare function validateUsername(username: string): string | null;
|
|
643
|
+
declare function buildCreateUserBody(values: SystemUserFormValues): CreateSystemUserBody;
|
|
644
|
+
declare function buildUpdateUserBody(values: SystemUserFormValues): UpdateSystemUserBody;
|
|
645
|
+
declare function createSystemUserApi(request: ResourceHttpRequest): SystemUserApi;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* 用户管理页面(Vue 3)
|
|
649
|
+
*/
|
|
650
|
+
declare const UserManager: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
651
|
+
api: {
|
|
652
|
+
type: PropType<SystemUserApi>;
|
|
653
|
+
required: true;
|
|
654
|
+
};
|
|
655
|
+
title: {
|
|
656
|
+
type: StringConstructor;
|
|
657
|
+
default: string;
|
|
658
|
+
};
|
|
659
|
+
pageSize: {
|
|
660
|
+
type: StringConstructor;
|
|
661
|
+
default: string;
|
|
662
|
+
};
|
|
663
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
664
|
+
[key: string]: any;
|
|
665
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
666
|
+
api: {
|
|
667
|
+
type: PropType<SystemUserApi>;
|
|
668
|
+
required: true;
|
|
669
|
+
};
|
|
670
|
+
title: {
|
|
671
|
+
type: StringConstructor;
|
|
672
|
+
default: string;
|
|
673
|
+
};
|
|
674
|
+
pageSize: {
|
|
675
|
+
type: StringConstructor;
|
|
676
|
+
default: string;
|
|
677
|
+
};
|
|
678
|
+
}>> & Readonly<{}>, {
|
|
679
|
+
title: string;
|
|
680
|
+
pageSize: string;
|
|
681
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
682
|
+
|
|
683
|
+
type SystemAdminMenuKey = 'menu' | 'resource' | 'role' | 'user';
|
|
565
684
|
type SystemAdminSubMenu = {
|
|
566
685
|
key: SystemAdminMenuKey;
|
|
567
686
|
label: string;
|
|
@@ -576,7 +695,7 @@ declare const SYSTEM_ADMIN_MENU: SystemAdminMenuGroup;
|
|
|
576
695
|
declare const SYSTEM_ADMIN_DEFAULT_KEY: SystemAdminMenuKey;
|
|
577
696
|
|
|
578
697
|
/**
|
|
579
|
-
* 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 /
|
|
698
|
+
* 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色 / 用户管理。
|
|
580
699
|
*/
|
|
581
700
|
declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
582
701
|
menuApi: {
|
|
@@ -591,6 +710,10 @@ declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
591
710
|
type: PropType<SystemRoleApi>;
|
|
592
711
|
required: true;
|
|
593
712
|
};
|
|
713
|
+
userApi: {
|
|
714
|
+
type: PropType<SystemUserApi>;
|
|
715
|
+
required: true;
|
|
716
|
+
};
|
|
594
717
|
defaultActiveKey: {
|
|
595
718
|
type: PropType<SystemAdminMenuKey>;
|
|
596
719
|
default: SystemAdminMenuKey;
|
|
@@ -621,6 +744,10 @@ declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
621
744
|
type: PropType<SystemRoleApi>;
|
|
622
745
|
required: true;
|
|
623
746
|
};
|
|
747
|
+
userApi: {
|
|
748
|
+
type: PropType<SystemUserApi>;
|
|
749
|
+
required: true;
|
|
750
|
+
};
|
|
624
751
|
defaultActiveKey: {
|
|
625
752
|
type: PropType<SystemAdminMenuKey>;
|
|
626
753
|
default: SystemAdminMenuKey;
|
|
@@ -672,4 +799,4 @@ declare const snowyflake: ConfigurableSnowflake;
|
|
|
672
799
|
declare function getAppClientId(): string;
|
|
673
800
|
declare function getDeviceWorkerId(): string;
|
|
674
801
|
|
|
675
|
-
export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, type CheckOptions, type CreateAuthorizationResourceBody, type CreateDefaultResourceRequestOptions, type CreateMenuResourceBody, type CreateSystemRoleBody, type FetchAuthorizationResourcesParams, type FetchMenuResourcesParams, type FetchSystemRolesParams, type HttpMethod, type ListPaginationParams, type ListPaginationResult, MENU_LEAF_NO, MENU_LEAF_YES, MENU_LIST_TYPE_PARAM, MENU_TYPE_BUTTON, MENU_TYPE_LABEL, MENU_TYPE_MENU, MENU_TYPE_OPTIONS, MENU_TYPE_PAGE, MENU_VISIBILITY_OPTIONS, type MatchMode, MenuManager, type MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, PERMISSION_STORE_KEY, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionDirectiveValue, type PermissionListener, type PermissionPluginOptions, type PermissionState, PermissionStore, type PermissionStoreAPI, RESOURCE_PRIVATE_OPTIONS, RESOURCE_STATUS_DISABLED, RESOURCE_STATUS_ENABLED, RESOURCE_STATUS_OPTIONS, RESOURCE_TYPE_API, ROOT_MENU_DEPTH, ROOT_PARENT_ID, type ResourceHttpRequest, ResourceManager, type ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminSubMenu, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UsePermissionResult, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionPlugin, createPermissionStore, createSystemRoleApi, createVPermission, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemRole, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission };
|
|
802
|
+
export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, type CheckOptions, type CreateAuthorizationResourceBody, type CreateDefaultResourceRequestOptions, type CreateMenuResourceBody, type CreateSystemRoleBody, type CreateSystemUserBody, type FetchAuthorizationResourcesParams, type FetchMenuResourcesParams, type FetchSystemGroupsParams, type FetchSystemRoleOptionsParams, type FetchSystemRolesParams, type FetchSystemUsersParams, type HttpMethod, type ListPaginationParams, type ListPaginationResult, MENU_LEAF_NO, MENU_LEAF_YES, MENU_LIST_TYPE_PARAM, MENU_TYPE_BUTTON, MENU_TYPE_LABEL, MENU_TYPE_MENU, MENU_TYPE_OPTIONS, MENU_TYPE_PAGE, MENU_VISIBILITY_OPTIONS, type MatchMode, MenuManager, type MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, PERMISSION_STORE_KEY, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionDirectiveValue, type PermissionListener, type PermissionPluginOptions, type PermissionState, PermissionStore, type PermissionStoreAPI, RESOURCE_PRIVATE_OPTIONS, RESOURCE_STATUS_DISABLED, RESOURCE_STATUS_ENABLED, RESOURCE_STATUS_OPTIONS, RESOURCE_TYPE_API, ROOT_MENU_DEPTH, ROOT_PARENT_ID, type ResourceHttpRequest, ResourceManager, type ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminSubMenu, type SystemGroupOption, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type SystemRoleOption, type SystemUser, type SystemUserApi, type SystemUserFormValues, type SystemUserListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UpdateSystemUserBody, type UsePermissionResult, UserManager, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildCreateUserBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, buildUpdateUserBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionPlugin, createPermissionStore, createSystemRoleApi, createSystemUserApi, createVPermission, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemGroupOption, mapSystemRole, mapSystemRoleOption, mapSystemUser, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission, validateUsername };
|
package/dist/vue/index.d.ts
CHANGED
|
@@ -561,7 +561,126 @@ declare const RoleManager: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
561
561
|
pageSize: string;
|
|
562
562
|
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
563
563
|
|
|
564
|
-
type
|
|
564
|
+
type SystemGroupOption = {
|
|
565
|
+
groupId: string;
|
|
566
|
+
name: string;
|
|
567
|
+
};
|
|
568
|
+
type SystemRoleOption = {
|
|
569
|
+
roleId: string;
|
|
570
|
+
name: string;
|
|
571
|
+
};
|
|
572
|
+
type SystemUser = {
|
|
573
|
+
userId: string;
|
|
574
|
+
username: string;
|
|
575
|
+
name: string;
|
|
576
|
+
groupIds: string[];
|
|
577
|
+
roleIds: string[];
|
|
578
|
+
/** 列表展示用,接口若返回则优先使用 */
|
|
579
|
+
groupNames?: string[];
|
|
580
|
+
roleNames?: string[];
|
|
581
|
+
enabled: boolean;
|
|
582
|
+
};
|
|
583
|
+
type SystemUserFormValues = {
|
|
584
|
+
username: string;
|
|
585
|
+
name: string;
|
|
586
|
+
/** 新增必填;编辑时可留空表示不修改 */
|
|
587
|
+
password: string;
|
|
588
|
+
groupIds: string[];
|
|
589
|
+
roleIds: string[];
|
|
590
|
+
enabled: boolean;
|
|
591
|
+
};
|
|
592
|
+
type CreateSystemUserBody = {
|
|
593
|
+
username: string;
|
|
594
|
+
name: string;
|
|
595
|
+
password: string;
|
|
596
|
+
groupIds: string[];
|
|
597
|
+
roleIds: string[];
|
|
598
|
+
enabled: boolean;
|
|
599
|
+
};
|
|
600
|
+
type UpdateSystemUserBody = {
|
|
601
|
+
username: string;
|
|
602
|
+
name: string;
|
|
603
|
+
password?: string;
|
|
604
|
+
groupIds: string[];
|
|
605
|
+
roleIds: string[];
|
|
606
|
+
enabled: boolean;
|
|
607
|
+
};
|
|
608
|
+
type FetchSystemUsersParams = {
|
|
609
|
+
keyword?: string;
|
|
610
|
+
/** undefined 表示不过滤 */
|
|
611
|
+
enabled?: boolean;
|
|
612
|
+
pagination?: ListPaginationParams;
|
|
613
|
+
};
|
|
614
|
+
type SystemUserListResult = {
|
|
615
|
+
records: SystemUser[];
|
|
616
|
+
pageToken: string;
|
|
617
|
+
hasPreviousPage: boolean;
|
|
618
|
+
hasNextPage: boolean;
|
|
619
|
+
};
|
|
620
|
+
type FetchSystemGroupsParams = {
|
|
621
|
+
keyword?: string;
|
|
622
|
+
};
|
|
623
|
+
type FetchSystemRoleOptionsParams = {
|
|
624
|
+
keyword?: string;
|
|
625
|
+
};
|
|
626
|
+
|
|
627
|
+
type SystemUserApi = {
|
|
628
|
+
list: (params?: FetchSystemUsersParams, signal?: AbortSignal) => Promise<SystemUserListResult>;
|
|
629
|
+
create: (values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
|
|
630
|
+
update: (userId: string, values: SystemUserFormValues, signal?: AbortSignal) => Promise<unknown>;
|
|
631
|
+
remove: (userId: string, signal?: AbortSignal) => Promise<unknown>;
|
|
632
|
+
listGroups: (params?: FetchSystemGroupsParams, signal?: AbortSignal) => Promise<SystemGroupOption[]>;
|
|
633
|
+
listRoleOptions: (params?: FetchSystemRoleOptionsParams, signal?: AbortSignal) => Promise<SystemRoleOption[]>;
|
|
634
|
+
};
|
|
635
|
+
declare function mapSystemUser(item: unknown): SystemUser | null;
|
|
636
|
+
declare function mapSystemGroupOption(item: unknown): SystemGroupOption | null;
|
|
637
|
+
declare function mapSystemRoleOption(item: unknown): SystemRoleOption | null;
|
|
638
|
+
/**
|
|
639
|
+
* 账号校验:不少于 6 位,且同时包含字母与数字。
|
|
640
|
+
* 通过返回 null,失败返回错误文案。
|
|
641
|
+
*/
|
|
642
|
+
declare function validateUsername(username: string): string | null;
|
|
643
|
+
declare function buildCreateUserBody(values: SystemUserFormValues): CreateSystemUserBody;
|
|
644
|
+
declare function buildUpdateUserBody(values: SystemUserFormValues): UpdateSystemUserBody;
|
|
645
|
+
declare function createSystemUserApi(request: ResourceHttpRequest): SystemUserApi;
|
|
646
|
+
|
|
647
|
+
/**
|
|
648
|
+
* 用户管理页面(Vue 3)
|
|
649
|
+
*/
|
|
650
|
+
declare const UserManager: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
651
|
+
api: {
|
|
652
|
+
type: PropType<SystemUserApi>;
|
|
653
|
+
required: true;
|
|
654
|
+
};
|
|
655
|
+
title: {
|
|
656
|
+
type: StringConstructor;
|
|
657
|
+
default: string;
|
|
658
|
+
};
|
|
659
|
+
pageSize: {
|
|
660
|
+
type: StringConstructor;
|
|
661
|
+
default: string;
|
|
662
|
+
};
|
|
663
|
+
}>, () => vue.VNode<vue.RendererNode, vue.RendererElement, {
|
|
664
|
+
[key: string]: any;
|
|
665
|
+
}>, {}, {}, {}, vue.ComponentOptionsMixin, vue.ComponentOptionsMixin, {}, string, vue.PublicProps, Readonly<vue.ExtractPropTypes<{
|
|
666
|
+
api: {
|
|
667
|
+
type: PropType<SystemUserApi>;
|
|
668
|
+
required: true;
|
|
669
|
+
};
|
|
670
|
+
title: {
|
|
671
|
+
type: StringConstructor;
|
|
672
|
+
default: string;
|
|
673
|
+
};
|
|
674
|
+
pageSize: {
|
|
675
|
+
type: StringConstructor;
|
|
676
|
+
default: string;
|
|
677
|
+
};
|
|
678
|
+
}>> & Readonly<{}>, {
|
|
679
|
+
title: string;
|
|
680
|
+
pageSize: string;
|
|
681
|
+
}, {}, {}, {}, string, vue.ComponentProvideOptions, true, {}, any>;
|
|
682
|
+
|
|
683
|
+
type SystemAdminMenuKey = 'menu' | 'resource' | 'role' | 'user';
|
|
565
684
|
type SystemAdminSubMenu = {
|
|
566
685
|
key: SystemAdminMenuKey;
|
|
567
686
|
label: string;
|
|
@@ -576,7 +695,7 @@ declare const SYSTEM_ADMIN_MENU: SystemAdminMenuGroup;
|
|
|
576
695
|
declare const SYSTEM_ADMIN_DEFAULT_KEY: SystemAdminMenuKey;
|
|
577
696
|
|
|
578
697
|
/**
|
|
579
|
-
* 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 /
|
|
698
|
+
* 系统管理:侧栏父菜单「系统管理」,子菜单为菜单 / 权限点 / 角色 / 用户管理。
|
|
580
699
|
*/
|
|
581
700
|
declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
582
701
|
menuApi: {
|
|
@@ -591,6 +710,10 @@ declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
591
710
|
type: PropType<SystemRoleApi>;
|
|
592
711
|
required: true;
|
|
593
712
|
};
|
|
713
|
+
userApi: {
|
|
714
|
+
type: PropType<SystemUserApi>;
|
|
715
|
+
required: true;
|
|
716
|
+
};
|
|
594
717
|
defaultActiveKey: {
|
|
595
718
|
type: PropType<SystemAdminMenuKey>;
|
|
596
719
|
default: SystemAdminMenuKey;
|
|
@@ -621,6 +744,10 @@ declare const SystemAdmin: vue.DefineComponent<vue.ExtractPropTypes<{
|
|
|
621
744
|
type: PropType<SystemRoleApi>;
|
|
622
745
|
required: true;
|
|
623
746
|
};
|
|
747
|
+
userApi: {
|
|
748
|
+
type: PropType<SystemUserApi>;
|
|
749
|
+
required: true;
|
|
750
|
+
};
|
|
624
751
|
defaultActiveKey: {
|
|
625
752
|
type: PropType<SystemAdminMenuKey>;
|
|
626
753
|
default: SystemAdminMenuKey;
|
|
@@ -672,4 +799,4 @@ declare const snowyflake: ConfigurableSnowflake;
|
|
|
672
799
|
declare function getAppClientId(): string;
|
|
673
800
|
declare function getDeviceWorkerId(): string;
|
|
674
801
|
|
|
675
|
-
export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, type CheckOptions, type CreateAuthorizationResourceBody, type CreateDefaultResourceRequestOptions, type CreateMenuResourceBody, type CreateSystemRoleBody, type FetchAuthorizationResourcesParams, type FetchMenuResourcesParams, type FetchSystemRolesParams, type HttpMethod, type ListPaginationParams, type ListPaginationResult, MENU_LEAF_NO, MENU_LEAF_YES, MENU_LIST_TYPE_PARAM, MENU_TYPE_BUTTON, MENU_TYPE_LABEL, MENU_TYPE_MENU, MENU_TYPE_OPTIONS, MENU_TYPE_PAGE, MENU_VISIBILITY_OPTIONS, type MatchMode, MenuManager, type MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, PERMISSION_STORE_KEY, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionDirectiveValue, type PermissionListener, type PermissionPluginOptions, type PermissionState, PermissionStore, type PermissionStoreAPI, RESOURCE_PRIVATE_OPTIONS, RESOURCE_STATUS_DISABLED, RESOURCE_STATUS_ENABLED, RESOURCE_STATUS_OPTIONS, RESOURCE_TYPE_API, ROOT_MENU_DEPTH, ROOT_PARENT_ID, type ResourceHttpRequest, ResourceManager, type ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminSubMenu, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UsePermissionResult, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionPlugin, createPermissionStore, createSystemRoleApi, createVPermission, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemRole, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission };
|
|
802
|
+
export { type ApiResourceType, type AuthorizationResource, type AuthorizationResourceApi, type AuthorizationResourceFormValues, type AuthorizationResourceListResult, Can, type CheckOptions, type CreateAuthorizationResourceBody, type CreateDefaultResourceRequestOptions, type CreateMenuResourceBody, type CreateSystemRoleBody, type CreateSystemUserBody, type FetchAuthorizationResourcesParams, type FetchMenuResourcesParams, type FetchSystemGroupsParams, type FetchSystemRoleOptionsParams, type FetchSystemRolesParams, type FetchSystemUsersParams, type HttpMethod, type ListPaginationParams, type ListPaginationResult, MENU_LEAF_NO, MENU_LEAF_YES, MENU_LIST_TYPE_PARAM, MENU_TYPE_BUTTON, MENU_TYPE_LABEL, MENU_TYPE_MENU, MENU_TYPE_OPTIONS, MENU_TYPE_PAGE, MENU_VISIBILITY_OPTIONS, type MatchMode, MenuManager, type MenuResource, type MenuResourceApi, type MenuResourceFormValues, type MenuResourceListResult, type MenuResourceType, PERMISSION_STORE_KEY, type PageDirection, type PermissionChecker, type PermissionCode, type PermissionDirectiveValue, type PermissionListener, type PermissionPluginOptions, type PermissionState, PermissionStore, type PermissionStoreAPI, RESOURCE_PRIVATE_OPTIONS, RESOURCE_STATUS_DISABLED, RESOURCE_STATUS_ENABLED, RESOURCE_STATUS_OPTIONS, RESOURCE_TYPE_API, ROOT_MENU_DEPTH, ROOT_PARENT_ID, type ResourceHttpRequest, ResourceManager, type ResourceRequestOptions, type ResourceStatus, type ResourceType, type RoleCode, RoleManager, type RolePermissionTreeNode, type RolePermissionsResult, SYSTEM_ADMIN_DEFAULT_KEY, SYSTEM_ADMIN_MENU, type SaveRolePermissionsBody, SystemAdmin, type SystemAdminMenuGroup, type SystemAdminMenuKey, type SystemAdminSubMenu, type SystemGroupOption, type SystemRole, type SystemRoleApi, type SystemRoleFormValues, type SystemRoleListResult, type SystemRoleOption, type SystemUser, type SystemUserApi, type SystemUserFormValues, type SystemUserListResult, type UpdateAuthorizationResourceBody, type UpdateMenuResourceBody, type UpdateSystemRoleBody, type UpdateSystemUserBody, type UsePermissionResult, UserManager, appendQueryParam, buildCreateBody, buildCreateMenuBody, buildCreateRoleBody, buildCreateUserBody, buildPermissionTreeIndex, buildSavePermissionsBody, buildUpdateBody, buildUpdateMenuBody, buildUpdateRoleBody, buildUpdateUserBody, collectTreeResourceIds, countCheckedDescendants, createAuthorizationResourceApi, createDefaultResourceRequest, createMenuResourceApi, createPermissionPlugin, createPermissionStore, createSystemRoleApi, createSystemUserApi, createVPermission, extractPagination, extractRecords, getAppClientId, getDeviceWorkerId, hasCheckedDescendant, isMenuLeaf, isPermissionNodeIndeterminate, mapAuthorizationResource, mapMenuResource, mapPermissionTreeNode, mapRolePermissions, mapSystemGroupOption, mapSystemRole, mapSystemRoleOption, mapSystemUser, resolveMenuDepth, snowyflake, togglePermissionCheck, useHasPermission, useHasRole, usePermission, validateUsername };
|