@topconsultnpm/sdkui-react-beta 6.10.77 → 6.10.78
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.
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { UserDescriptor
|
|
2
|
+
import { UserDescriptor } from '@topconsultnpm/sdk-ts-beta';
|
|
3
3
|
import { ITMChooserFormProps, ITMChooserProps } from '../../ts';
|
|
4
4
|
interface ITMUserChooserProps extends ITMChooserProps {
|
|
5
5
|
/** Contiene i values selezionati */
|
|
@@ -33,7 +33,6 @@ export declare const TMUserIdViewer: ({ userId, showIcon, noneSelectionText }: {
|
|
|
33
33
|
showIcon?: boolean;
|
|
34
34
|
noneSelectionText?: string;
|
|
35
35
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
36
|
-
export declare function LocalizeDcmtDeleter_UserLevel(value: UserLevels | undefined): string | undefined;
|
|
37
36
|
export declare const TMUserIcon: ({ ud }: {
|
|
38
37
|
ud?: UserDescriptor;
|
|
39
38
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-run
|
|
|
2
2
|
import { useEffect, useState } from 'react';
|
|
3
3
|
import { OwnershipLevels, SDK_Localizator, UserLevels, UserListCacheService } from '@topconsultnpm/sdk-ts-beta';
|
|
4
4
|
import { Column } from 'devextreme-react/cjs/data-grid';
|
|
5
|
-
import { SDKUI_Localizator, IconSearch, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconWarning, LocalizeOwnershipLevels } from '../../helper';
|
|
5
|
+
import { SDKUI_Localizator, IconSearch, IconUserLevelMember, IconUserLevelAdministrator, IconUserLevelSystemAdministrator, IconUserLevelAutonomousAdministrator, IconWarning, LocalizeOwnershipLevels, LocalizeUserLevels } from '../../helper';
|
|
6
6
|
import { StyledDivHorizontal, StyledTooltipContainer, StyledTooltipSeparatorItem } from '../base/Styled';
|
|
7
7
|
import TMSpinner from '../base/TMSpinner';
|
|
8
8
|
import TMTooltip from '../base/TMTooltip';
|
|
@@ -79,14 +79,6 @@ export const TMUserIdViewer = ({ userId, showIcon = false, noneSelectionText = `
|
|
|
79
79
|
};
|
|
80
80
|
return (_jsxs(StyledDivHorizontal, { children: [getIcon(), _jsx("p", { style: { textAlign: 'left', marginLeft: showIcon ? '5px' : '', opacity: ud ? 1 : 0.5 }, children: getDescription() })] }));
|
|
81
81
|
};
|
|
82
|
-
export function LocalizeDcmtDeleter_UserLevel(value) {
|
|
83
|
-
switch (value) {
|
|
84
|
-
case UserLevels.AutonomousAdministrator: return SDKUI_Localizator.UserLevelAdminAutonom;
|
|
85
|
-
case UserLevels.Administrator: return SDKUI_Localizator.UserLevelAdmin;
|
|
86
|
-
case UserLevels.Member: return SDKUI_Localizator.UserLevelMember;
|
|
87
|
-
default: return value?.toString();
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
82
|
export const TMUserIcon = ({ ud }) => {
|
|
91
83
|
if (!ud)
|
|
92
84
|
return null;
|
|
@@ -98,7 +90,7 @@ export const TMUserTooltip = ({ ud, children }) => {
|
|
|
98
90
|
const renderTooltipContent = (ud) => {
|
|
99
91
|
let isExpired = User_IsExpired(ud);
|
|
100
92
|
return (!ud ? null
|
|
101
|
-
: _jsxs(StyledTooltipContainer, { children: [_jsx("div", { children: `ID: ${ud.id}` }), _jsx("div", { children: `${SDKUI_Localizator.Name}: ${getCompleteUserName(ud.domain, ud.name)}` }), ud.description && _jsx("div", { children: `${SDKUI_Localizator.Description}: ${ud.description}` }), ud.type && _jsxs("div", { children: [SDKUI_Localizator.Type, ": ", ud.type] }), ud.level && _jsxs("div", { children: [SDKUI_Localizator.UserLevel, ": ",
|
|
93
|
+
: _jsxs(StyledTooltipContainer, { children: [_jsx("div", { children: `ID: ${ud.id}` }), _jsx("div", { children: `${SDKUI_Localizator.Name}: ${getCompleteUserName(ud.domain, ud.name)}` }), ud.description && _jsx("div", { children: `${SDKUI_Localizator.Description}: ${ud.description}` }), ud.type && _jsxs("div", { children: [SDKUI_Localizator.Type, ": ", ud.type] }), ud.level && _jsxs("div", { children: [SDKUI_Localizator.UserLevel, ": ", LocalizeUserLevels(ud.level)] }), _jsxs("div", { children: [SDKUI_Localizator.Valid, ": ", isExpired ? SDKUI_Localizator.No : SDKUI_Localizator.Yes, " - ", SDKUI_Localizator.Disabled, ": ", ud.disabled ? SDKUI_Localizator.Yes : SDKUI_Localizator.No] }), _jsx(StyledTooltipSeparatorItem, {}), _jsxs("div", { children: [SDKUI_Localizator.OwnerName, ": ", ud.ownerName, " (", ud.ownerID, ")"] }), _jsxs("div", { children: [SDKUI_Localizator.OwnershipLevel, ": ", LocalizeOwnershipLevels(ud.ownershipLevel)] }), _jsxs("div", { children: [SDKUI_Localizator.CreationTime, ": ", ud.creationTime?.toDateString()] }), _jsxs("div", { children: [SDKUI_Localizator.LastUpdateTime, ": ", ud.lastUpdateTime?.toDateString()] })] }));
|
|
102
94
|
};
|
|
103
95
|
return (_jsx(TMTooltip, { content: renderTooltipContent(ud), children: children }));
|
|
104
96
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArchiveConstraints, JoinTypes, MetadataFormats, OwnershipLevels, ParametricFilterTypes, QueryFunctions, QueryOperators } from "@topconsultnpm/sdk-ts-beta";
|
|
1
|
+
import { ArchiveConstraints, JoinTypes, MetadataFormats, OwnershipLevels, ParametricFilterTypes, QueryFunctions, QueryOperators, UserLevels } from "@topconsultnpm/sdk-ts-beta";
|
|
2
2
|
import { FormModes } from "../ts";
|
|
3
3
|
export declare function LocalizeArchiveConstraints(value: ArchiveConstraints | undefined): "Archivierung nur mit Dateien erlauben" | "Allow file only archiving" | "Permitir solo almacenamientos con archivo" | "Autorise uniquement l'archivage de fichiers" | "Permitir somente depósitos com arquivos" | "Consenti solo archiviazioni con file" | "Alles zulassen" | "Allow everything" | "Permitir todo" | "Autorise tout" | "Permitir que todos" | "Consenti tutto" | "Nur Methadatenarchivierung erlauben" | "Allow metadata only archiving" | "Permitir solo almacenamiento de metadatos" | "Autorise uniquement l'archivage de métadonnées" | "Permitir somente os metadados de arquivamento" | "Consenti solo archiviazioni di metadati";
|
|
4
4
|
export declare function LocalizeFormModes(value: FormModes | undefined): "Erstellen" | "Create" | "Crear" | "Créer" | "Criar" | "Crea" | "Duplikat" | "Duplicate" | "Duplicar" | "Dupliquer" | "Duplicado" | "Duplica" | "Nur Lesen" | "Read only" | "Solo lectura" | "En lecture seule" | "Somente leitura" | "Solo lettura" | "Bearbeiten" | "Update" | "Modificar" | "Modifie" | "Modificação" | "Modifica" | "None" | "Niemand" | "Ninguno" | "Aucun" | "Nenhum" | "Nessuno";
|
|
@@ -8,3 +8,4 @@ export declare function LocalizeParametricFilterTypes(value: ParametricFilterTyp
|
|
|
8
8
|
export declare function LocalizeQueryFunctions(value: QueryFunctions | undefined): "Zählen" | "Count" | "Contar" | "Compte" | "Contagem" | "Conta" | "" | "None" | "Niemand" | "Ninguno" | "Aucun" | "Nenhum" | "Nessuno" | "Max" | "Höchstwert" | "Máximo" | "Massimo" | "Min" | "Mindestwert" | "Mínimo" | "Minimo" | "Sum" | "Summe" | "Suma" | "Somme" | "Soma" | "Somma";
|
|
9
9
|
export declare function LocalizeQueryJoinTypes(value: JoinTypes | undefined): string;
|
|
10
10
|
export declare function LocalizeQueryOperators(value: QueryOperators | undefined): string;
|
|
11
|
+
export declare function LocalizeUserLevels(value: UserLevels | undefined): string | undefined;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ArchiveConstraints, JoinTypes, MetadataFormats, OwnershipLevels, ParametricFilterTypes, QueryFunctions, QueryOperators, SDK_Localizator } from "@topconsultnpm/sdk-ts-beta";
|
|
1
|
+
import { ArchiveConstraints, JoinTypes, MetadataFormats, OwnershipLevels, ParametricFilterTypes, QueryFunctions, QueryOperators, SDK_Localizator, UserLevels } from "@topconsultnpm/sdk-ts-beta";
|
|
2
2
|
import { SDKUI_Localizator } from "./SDKUI_Localizator";
|
|
3
3
|
import { FormModes } from "../ts";
|
|
4
4
|
export function LocalizeArchiveConstraints(value) {
|
|
@@ -134,3 +134,11 @@ export function LocalizeQueryOperators(value) {
|
|
|
134
134
|
default: return '';
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
|
+
export function LocalizeUserLevels(value) {
|
|
138
|
+
switch (value) {
|
|
139
|
+
case UserLevels.Administrator: return SDKUI_Localizator.UserLevelAdmin;
|
|
140
|
+
case UserLevels.AutonomousAdministrator: return SDKUI_Localizator.UserLevelAdminAutonom;
|
|
141
|
+
case UserLevels.Member: return SDKUI_Localizator.UserLevelMember;
|
|
142
|
+
default: return value?.toString();
|
|
143
|
+
}
|
|
144
|
+
}
|