@archbase/security-ui 4.1.0 → 4.1.1
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/ApiTokenModal.d.ts +17 -0
- package/dist/ArchbaseApiTokenView.d.ts +6 -0
- package/dist/ArchbaseDualListSelector.d.ts +15 -0
- package/dist/ArchbaseSecurityView.d.ts +4 -0
- package/dist/GroupModal.d.ts +17 -0
- package/dist/PermissionsSelectorModal.d.ts +7 -0
- package/dist/ProfileModal.d.ts +17 -0
- package/dist/RenderProfileUserItem.d.ts +9 -0
- package/dist/UserModal.d.ts +57 -0
- package/dist/archbase-security-ui-4.1.1.tgz +0 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +1091 -1128
- package/dist/securityDiagnostics/ArchbaseSecurityDiagnosticsView.d.ts +2 -0
- package/dist/securityDiagnostics/DiagnosticPrimitives.d.ts +34 -0
- package/dist/securityDiagnostics/EffectiveAccessPanel.d.ts +6 -0
- package/dist/securityDiagnostics/OverviewPanel.d.ts +6 -0
- package/dist/securityDiagnostics/SimulationPanel.d.ts +6 -0
- package/dist/securityDiagnostics/index.d.ts +6 -0
- package/dist/securityDiagnostics/types.d.ts +102 -0
- package/dist/securityView/SecurityGridPanel.d.ts +22 -0
- package/dist/securityView/SecurityRowActions.d.ts +15 -0
- package/dist/securityView/SecurityToolbarActions.d.ts +7 -0
- package/dist/securityView/UserItem.d.ts +7 -0
- package/dist/securityView/columns.d.ts +8 -0
- package/dist/securityView/index.d.ts +8 -0
- package/dist/securityView/noUserAvatar.d.ts +7 -0
- package/dist/securityView/types.d.ts +35 -0
- package/dist/securityView/useSecurityEntityActions.d.ts +32 -0
- package/package.json +6 -6
- package/dist/archbase-security-ui-4.1.0.tgz +0 -0
- package/dist/index.cjs +0 -10
- package/dist/index.cjs.map +0 -1
- package/dist/index.js.map +0 -1
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ArchbaseDataSource } from '@archbase/data';
|
|
2
|
+
import { ApiTokenDto } from '@archbase/security';
|
|
3
|
+
export declare const UserSelectItem: ({ image, label, description, ...others }: {
|
|
4
|
+
[x: string]: any;
|
|
5
|
+
image: any;
|
|
6
|
+
label: any;
|
|
7
|
+
description: any;
|
|
8
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
9
|
+
export interface ApiTokenModalProps {
|
|
10
|
+
dataSource: ArchbaseDataSource<ApiTokenDto, string>;
|
|
11
|
+
opened: boolean;
|
|
12
|
+
onClickOk: (record?: ApiTokenDto, result?: any) => void;
|
|
13
|
+
onClickCancel: (record?: ApiTokenDto) => void;
|
|
14
|
+
onCustomSave?: (record?: ApiTokenDto, callback?: Function) => void;
|
|
15
|
+
onAfterSave?: (record?: ApiTokenDto) => void;
|
|
16
|
+
}
|
|
17
|
+
export declare const ApiTokenModal: (props: ApiTokenModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ArchbaseDataSource } from '@archbase/data';
|
|
2
|
+
export interface ArchbaseDualListSelectorProps<T, U> {
|
|
3
|
+
availableItemsDS: ArchbaseDataSource<T, any>;
|
|
4
|
+
assignedItemsDS: ArchbaseDataSource<U, any>;
|
|
5
|
+
idFieldAvailable: string | ((item: T) => string);
|
|
6
|
+
labelFieldAvailable: string | ((item: T) => string);
|
|
7
|
+
idFieldAssigned: string | ((item: U) => string);
|
|
8
|
+
labelFieldAssigned: string | ((item: U) => string);
|
|
9
|
+
handleCreateAssociationObject: (item: T) => U;
|
|
10
|
+
width?: string;
|
|
11
|
+
height?: string;
|
|
12
|
+
titleAvailable?: string;
|
|
13
|
+
titleAssigned?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function ArchbaseDualListSelector<T, U>({ availableItemsDS, assignedItemsDS, idFieldAvailable, labelFieldAvailable, idFieldAssigned, labelFieldAssigned, handleCreateAssociationObject, width, height, titleAvailable, titleAssigned }: ArchbaseDualListSelectorProps<T, U>): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { NO_USER, renderGroups, renderProfile, UserItem, ArchbaseSecurityManagerProps, ArchbaseSecurityProps, UserItemProps } from './securityView';
|
|
2
|
+
export { NO_USER, UserItem, renderGroups, renderProfile };
|
|
3
|
+
export type { ArchbaseSecurityProps, ArchbaseSecurityManagerProps, UserItemProps };
|
|
4
|
+
export declare function ArchbaseSecurityView({ height, width, createEntitiesWithId, userModalOptions, profileModalOptions, groupModalOptions, options, }: ArchbaseSecurityManagerProps): import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { GroupDto } from '@archbase/security';
|
|
3
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
4
|
+
export interface GroupModalOptions {
|
|
5
|
+
customContentBefore?: (group: GroupDto) => React.ReactNode;
|
|
6
|
+
customContentAfter?: (group: GroupDto) => React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface GroupModalProps {
|
|
9
|
+
dataSource: IArchbaseDataSourceBase<GroupDto>;
|
|
10
|
+
opened: boolean;
|
|
11
|
+
onClickOk: (record?: GroupDto, result?: any) => void;
|
|
12
|
+
onClickCancel: (record?: GroupDto) => void;
|
|
13
|
+
onCustomSave?: (record?: GroupDto, callback?: Function) => void;
|
|
14
|
+
onAfterSave?: (record?: GroupDto) => void;
|
|
15
|
+
options?: GroupModalOptions;
|
|
16
|
+
}
|
|
17
|
+
export declare const GroupModal: (props: GroupModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
2
|
+
export interface PermissionsSelectorProps {
|
|
3
|
+
dataSource: IArchbaseDataSourceBase<any> | null;
|
|
4
|
+
opened: boolean;
|
|
5
|
+
close: () => void;
|
|
6
|
+
}
|
|
7
|
+
export declare function PermissionsSelectorModal({ dataSource, opened, close }: PermissionsSelectorProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
+
import { ProfileDto } from '@archbase/security';
|
|
4
|
+
export interface ProfileModalOptions {
|
|
5
|
+
customContentBefore?: (profile: ProfileDto) => React.ReactNode;
|
|
6
|
+
customContentAfter?: (profile: ProfileDto) => React.ReactNode;
|
|
7
|
+
}
|
|
8
|
+
export interface ProfileModalProps {
|
|
9
|
+
dataSource: IArchbaseDataSourceBase<ProfileDto>;
|
|
10
|
+
opened: boolean;
|
|
11
|
+
onClickOk: (record?: ProfileDto, result?: any) => void;
|
|
12
|
+
onClickCancel: (record?: ProfileDto) => void;
|
|
13
|
+
onCustomSave?: (record?: ProfileDto, callback?: Function) => void;
|
|
14
|
+
onAfterSave?: (record?: ProfileDto) => void;
|
|
15
|
+
options?: ProfileModalOptions;
|
|
16
|
+
}
|
|
17
|
+
export declare const ProfileModal: (props: ProfileModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { ProfileDto } from '@archbase/security';
|
|
3
|
+
export interface RenderProfileUserItemProps extends React.ComponentPropsWithoutRef<'div'> {
|
|
4
|
+
image: string;
|
|
5
|
+
label: string;
|
|
6
|
+
description: string;
|
|
7
|
+
origin: ProfileDto;
|
|
8
|
+
}
|
|
9
|
+
export declare const RenderProfileUserItem: React.ForwardRefExoticComponent<RenderProfileUserItemProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { ArchbasePasswordPolicy } from '@archbase/core';
|
|
2
|
+
import { IArchbaseDataSourceBase } from '@archbase/data';
|
|
3
|
+
import { default as React } from 'react';
|
|
4
|
+
import { UserDto } from '@archbase/security';
|
|
5
|
+
export interface UserModalOptions {
|
|
6
|
+
showNickname?: boolean;
|
|
7
|
+
showProfile?: boolean;
|
|
8
|
+
showGroups?: boolean;
|
|
9
|
+
showChangePasswordOnNextLogin?: boolean;
|
|
10
|
+
showAllowPasswordChange?: boolean;
|
|
11
|
+
showPasswordNeverExpires?: boolean;
|
|
12
|
+
/** Exibe, somente leitura, a data da última troca de senha (passwordChangedAt) */
|
|
13
|
+
showPasswordChangedAt?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Critérios de senha forte exigidos no cadastro.
|
|
16
|
+
* `true` aplica a política padrão do Archbase; um objeto permite ajustar cada critério.
|
|
17
|
+
* Quando ausente a senha é apenas obrigatória na inclusão (comportamento original).
|
|
18
|
+
*/
|
|
19
|
+
passwordPolicy?: ArchbasePasswordPolicy | boolean;
|
|
20
|
+
/** Indicador se a lista de critérios deve ser exibida abaixo do campo senha. Padrão: true */
|
|
21
|
+
showPasswordRequirements?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* Inclui login, e-mail e nome do usuário na lista de termos proibidos dentro da senha.
|
|
24
|
+
* Só tem efeito quando `passwordPolicy` está ativa. Padrão: true
|
|
25
|
+
*/
|
|
26
|
+
forbidPersonalDataInPassword?: boolean;
|
|
27
|
+
showAccountConfigLabel?: boolean;
|
|
28
|
+
showAccountDeactivated?: boolean;
|
|
29
|
+
showAccountLocked?: boolean;
|
|
30
|
+
showIsAdministrator?: boolean;
|
|
31
|
+
requiredNickname?: boolean;
|
|
32
|
+
/** Tamanho máximo da imagem do avatar em kilobytes */
|
|
33
|
+
avatarMaxSizeKB?: number;
|
|
34
|
+
/** Qualidade da compressão da imagem do avatar (0 a 1), sendo 1 melhor qualidade */
|
|
35
|
+
avatarImageQuality?: number;
|
|
36
|
+
/** Maior dimensão (px) do avatar final — a imagem é redimensionada automaticamente. 0 mantém a resolução original */
|
|
37
|
+
avatarMaxOutputSizePx?: number;
|
|
38
|
+
/** Configuração de permissão de edição de campos */
|
|
39
|
+
allowEditEmail?: boolean;
|
|
40
|
+
customContentBefore?: (user: UserDto) => React.ReactNode;
|
|
41
|
+
customContentAfter?: (user: UserDto) => React.ReactNode;
|
|
42
|
+
/** Nome do perfil padrão que um novo usuário já virá pré-preenchido */
|
|
43
|
+
userDefaultProfile?: string;
|
|
44
|
+
/** Nome dos grupos padrões que um novo usuário já virá pré-preenchido */
|
|
45
|
+
userDefaultGroups?: string[];
|
|
46
|
+
}
|
|
47
|
+
export declare const defaultUserModalOptions: UserModalOptions;
|
|
48
|
+
export interface UserModalProps {
|
|
49
|
+
dataSource: IArchbaseDataSourceBase<UserDto>;
|
|
50
|
+
opened: boolean;
|
|
51
|
+
onClickOk: (record?: UserDto, result?: any) => void;
|
|
52
|
+
onClickCancel: (record?: UserDto) => void;
|
|
53
|
+
onCustomSave?: (record?: UserDto, callback?: Function) => void;
|
|
54
|
+
onAfterSave?: (record?: UserDto) => void;
|
|
55
|
+
options?: UserModalOptions;
|
|
56
|
+
}
|
|
57
|
+
export declare const UserModal: (props: UserModalProps) => import("react/jsx-runtime").JSX.Element;
|
|
Binary file
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @archbase/security-ui
|
|
3
|
+
*
|
|
4
|
+
* UI Components for Archbase Security - Modals, Forms, and Views
|
|
5
|
+
*
|
|
6
|
+
* This package contains all the user interface components related to security,
|
|
7
|
+
* separated from the core security logic to avoid circular dependencies.
|
|
8
|
+
*/
|
|
9
|
+
export { ProfileModal } from './ProfileModal';
|
|
10
|
+
export { UserModal } from './UserModal';
|
|
11
|
+
export { GroupModal } from './GroupModal';
|
|
12
|
+
export { ApiTokenModal } from './ApiTokenModal';
|
|
13
|
+
export { PermissionsSelectorModal } from './PermissionsSelectorModal';
|
|
14
|
+
export { ArchbaseApiTokenView } from './ArchbaseApiTokenView';
|
|
15
|
+
export { ArchbaseSecurityView } from './ArchbaseSecurityView';
|
|
16
|
+
export { ArchbaseDualListSelector } from './ArchbaseDualListSelector';
|
|
17
|
+
export { RenderProfileUserItem } from './RenderProfileUserItem';
|
|
18
|
+
export * from './securityDiagnostics';
|