@topconsultnpm/sdkui-react-beta 6.9.115 → 6.9.117
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.
|
@@ -10,6 +10,11 @@ interface ITMUserChooserProps extends ITMChooserProps {
|
|
|
10
10
|
declare const TMUserChooser: React.FunctionComponent<ITMUserChooserProps>;
|
|
11
11
|
export default TMUserChooser;
|
|
12
12
|
export declare const TMUserChooserForm: React.FunctionComponent<ITMChooserFormProps<UserDescriptor>>;
|
|
13
|
+
export declare const TMUserIdViewer: ({ userId, showIcon, noneSelectionText }: {
|
|
14
|
+
userId?: number;
|
|
15
|
+
showIcon?: boolean;
|
|
16
|
+
noneSelectionText?: string;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
13
18
|
export declare const TMUserIcon: ({ ud }: {
|
|
14
19
|
ud?: UserDescriptor;
|
|
15
20
|
}) => import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -46,7 +46,7 @@ export const TMUserChooserForm = (props) => {
|
|
|
46
46
|
const cellRenderIcon = (data) => _jsx(TMUserIcon, { ud: data.data });
|
|
47
47
|
return (_jsx(TMChooserForm, { title: getTitle(), allowMultipleSelection: props.allowMultipleSelection, hasShowOnlySelectedItems: true, width: props.width, height: props.height, manageUseLocalizedName: false, columns: renderDataGridColumns, selectedIDs: props.selectedIDs, cellRenderIcon: cellRenderIcon, dataSource: props.dataSource, getItems: getItems, onClose: props.onClose, onChoose: (IDs) => props.onChoose?.(IDs) }));
|
|
48
48
|
};
|
|
49
|
-
const TMUserIdViewer = ({ userId, showIcon = false, noneSelectionText = `<${SDKUI_Localizator.NoneSelection}>` }) => {
|
|
49
|
+
export const TMUserIdViewer = ({ userId, showIcon = false, noneSelectionText = `<${SDKUI_Localizator.NoneSelection}>` }) => {
|
|
50
50
|
const [ud, setUd] = useState();
|
|
51
51
|
useEffect(() => {
|
|
52
52
|
if (!userId || userId <= 0) {
|
package/lib/hooks/useForm.js
CHANGED
|
@@ -24,7 +24,10 @@ export function useSaveForm(formMode, id, sfo, validator, onSaved, onStatusChang
|
|
|
24
24
|
case ObjectClasses.Disk: return new DiskDescriptor();
|
|
25
25
|
case ObjectClasses.DataList: return new DataListDescriptor();
|
|
26
26
|
case ObjectClasses.Numerator: return new NumeratorDescriptor();
|
|
27
|
-
case ObjectClasses.SignCert:
|
|
27
|
+
case ObjectClasses.SignCert:
|
|
28
|
+
let newSc = new SignCertDescriptor();
|
|
29
|
+
newSc.isAuto = 1;
|
|
30
|
+
return newSc;
|
|
28
31
|
case ObjectClasses.Tree: return new TreeDescriptor();
|
|
29
32
|
case ObjectClasses.TSA: return new TSADescriptor();
|
|
30
33
|
case ObjectClasses.User: return new UserDescriptor();
|