@vitrosoftware/common-ui-ts 1.1.89 → 1.1.90
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/css/std/controls/checkbox/checkbox.css +1 -1
- package/css/std/controls/criterion/criterion.css +6 -1
- package/css/std/controls/date-picker/date-picker.css +10 -5
- package/css/std/controls/image-button/image-button.css +13 -0
- package/css/std/controls/input/input.css +16 -11
- package/css/std/controls/link/link.css +12 -0
- package/css/std/controls/link-input/img/edit.svg +5 -0
- package/css/std/controls/link-input/link-input.css +37 -0
- package/css/std/controls/login/img/clock.svg +4 -0
- package/css/std/controls/login/img/windows-logo.svg +6 -0
- package/css/std/controls/login/login-content.css +12 -0
- package/css/std/controls/login/login-form.css +161 -0
- package/css/std/controls/login/login-go-back-link.css +7 -0
- package/css/std/controls/login/login-submit-button.css +10 -0
- package/css/std/controls/login/login-title.css +8 -0
- package/css/std/controls/login/login.css +12 -144
- package/css/std/controls/login/ntlm-authentication-form.css +31 -0
- package/css/std/controls/login/two-factor-authentication-form.css +144 -0
- package/css/std/controls/lookup-picker/lookup-picker.css +14 -9
- package/css/std/controls/time-picker/time-picker.css +18 -13
- package/dist/index.css +555 -221
- package/dist/index.js +739 -339
- package/dist/index.js.map +1 -1
- package/dist/src/constants/Control.d.ts +1 -0
- package/dist/src/constants/Target.d.ts +4 -0
- package/dist/src/controls/Button/Button.d.ts +1 -2
- package/dist/src/controls/ImageButton/ImageButton.d.ts +12 -0
- package/dist/src/controls/Input/Input.d.ts +1 -0
- package/dist/src/controls/Link/Link.d.ts +10 -0
- package/dist/src/controls/LinkInput/LinkInput.d.ts +26 -0
- package/dist/src/controls/LinkInput/LinkInputConstants.d.ts +4 -0
- package/dist/src/controls/LinkInput/LinkInputRef.d.ts +11 -0
- package/dist/src/controls/Login/Login.d.ts +3 -7
- package/dist/src/controls/Login/LoginConstants.d.ts +19 -4
- package/dist/src/controls/Login/LoginContent.d.ts +8 -0
- package/dist/src/controls/Login/LoginForm.d.ts +15 -0
- package/dist/src/controls/Login/LoginFormRef.d.ts +5 -0
- package/dist/src/controls/Login/LoginGoBackLink.d.ts +6 -0
- package/dist/src/controls/Login/LoginSubmitButton.d.ts +8 -0
- package/dist/src/controls/Login/LoginTitle.d.ts +7 -0
- package/dist/src/controls/Login/NTLMAuthenticationForm.d.ts +6 -0
- package/dist/src/controls/Login/TwoFactorAuthenticationForm.d.ts +15 -0
- package/dist/src/controls/Login/TwoFactorAuthenticationFormRef.d.ts +4 -0
- package/dist/src/index.d.ts +14 -3
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
interface ButtonProps {
|
|
2
|
+
export interface ButtonProps {
|
|
3
3
|
text: string;
|
|
4
4
|
isDisabled?: boolean;
|
|
5
5
|
isCreateRipple?: boolean;
|
|
@@ -11,4 +11,3 @@ interface ButtonProps {
|
|
|
11
11
|
imageClassName?: string;
|
|
12
12
|
}
|
|
13
13
|
export declare const Button: (props: ButtonProps) => JSX.Element;
|
|
14
|
-
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import * as TOOLTIP from '../Tooltip/TooltipConstants';
|
|
3
|
+
interface ImageButtonProps {
|
|
4
|
+
onClick: () => void;
|
|
5
|
+
tooltipText?: string;
|
|
6
|
+
tooltipPlacement?: TOOLTIP.PLACEMENT;
|
|
7
|
+
className?: string;
|
|
8
|
+
imageUrl?: string;
|
|
9
|
+
imageHoverUrl?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ImageButton: (props: ImageButtonProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import React, { FocusEvent } from 'react';
|
|
2
|
+
import type { LinkInputRef } from './LinkInputRef';
|
|
3
|
+
interface LinkInputProps {
|
|
4
|
+
value?: {
|
|
5
|
+
url: string;
|
|
6
|
+
name?: string;
|
|
7
|
+
};
|
|
8
|
+
label?: string;
|
|
9
|
+
name?: string;
|
|
10
|
+
onChange?: (value: {
|
|
11
|
+
url: string;
|
|
12
|
+
name?: string;
|
|
13
|
+
}, name?: string) => void;
|
|
14
|
+
onBlur?: (value: {
|
|
15
|
+
url: string;
|
|
16
|
+
name?: string;
|
|
17
|
+
}, name?: string) => void;
|
|
18
|
+
onFocus?: (e: FocusEvent<HTMLInputElement>) => void;
|
|
19
|
+
isReadOnly?: boolean;
|
|
20
|
+
isRequired?: boolean;
|
|
21
|
+
isError?: boolean;
|
|
22
|
+
errorMessage?: string;
|
|
23
|
+
className?: string;
|
|
24
|
+
}
|
|
25
|
+
export declare const LinkInput: React.ForwardRefExoticComponent<LinkInputProps & React.RefAttributes<LinkInputRef>>;
|
|
26
|
+
export {};
|
|
@@ -1,17 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
interface LoginProps {
|
|
3
|
-
|
|
3
|
+
onWindowsLogin?: () => void;
|
|
4
4
|
logo: string;
|
|
5
|
-
onResetPassword?: () => any;
|
|
6
|
-
onSaveData?: (value: any[] | any, name?: string) => any;
|
|
7
|
-
onRegister?: () => any;
|
|
8
|
-
errorMessage?: string;
|
|
9
|
-
emptyErrorText?: string;
|
|
10
5
|
copyright?: string;
|
|
11
6
|
linkItemList?: {
|
|
12
7
|
text: string;
|
|
13
8
|
url: string;
|
|
14
9
|
}[];
|
|
10
|
+
children: React.ReactNode;
|
|
15
11
|
}
|
|
16
|
-
export declare const Login:
|
|
12
|
+
export declare const Login: (props: LoginProps) => JSX.Element;
|
|
17
13
|
export {};
|
|
@@ -1,9 +1,24 @@
|
|
|
1
1
|
export declare enum LOCALE {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
LOGIN_FORM_ERROR_EMPTY = "app.common.login.loginForm.error.empty",
|
|
3
|
+
LOGIN_FORM_FIELD_NAME = "app.common.login.loginForm.field.userName",
|
|
4
|
+
LOGIN_FORM_FIELD_PASSWORD = "app.common.login.loginForm.field.password",
|
|
5
|
+
LOGIN_FORM_ACTION_SAVE_DATA = "app.common.login.loginForm.action.saveData",
|
|
6
|
+
LOGIN_FORM_ACTION_RESET_PASSWORD = "app.common.login.loginForm.action.resetPassword",
|
|
7
|
+
LOGIN_FORM_ACTION_REGISTER = "app.common.login.loginForm.action.register",
|
|
8
|
+
LOGIN_FORM_SEPARATOR_TEXT = "app.common.login.loginForm.separatorText",
|
|
9
|
+
LOGIN_FORM_TITLE = "app.common.login.loginForm.title",
|
|
10
|
+
TWO_FACTOR_AUTHENTICATION_FORM_TITLE = "app.common.login.twoFactorAuthenticationForm.title",
|
|
11
|
+
TWO_FACTOR_AUTHENTICATION_FORM_SUBTITLE_USER_NAME = "app.common.login.twoFactorAuthenticationForm.subtitle.userName",
|
|
12
|
+
TWO_FACTOR_AUTHENTICATION_FORM_SUBTITLE_EMAIL = "app.common.login.twoFactorAuthenticationForm.subtitle.email",
|
|
13
|
+
TWO_FACTOR_AUTHENTICATION_FORM_FIELD_CODE = "app.common.login.twoFactorAuthenticationForm.field.code",
|
|
14
|
+
TWO_FACTOR_AUTHENTICATION_FORM_ACTION_RESEND_CODE = "app.common.login.twoFactorAuthenticationForm.action.resendCode",
|
|
15
|
+
TWO_FACTOR_AUTHENTICATION_FORM_ACTION_CODE_SEND_ERROR = "app.common.login.twoFactorAuthenticationForm.action.codeSendError",
|
|
16
|
+
TWO_FACTOR_AUTHENTICATION_FORM_DESCRIPTION_VALIDITY = "app.common.login.twoFactorAuthenticationForm.description.codeValidityDuration",
|
|
17
|
+
TWO_FACTOR_AUTHENTICATION_FORM_DESCRIPTION_RESEND = "app.common.login.twoFactorAuthenticationForm.description.resendCodeDuration",
|
|
18
|
+
TWO_FACTOR_AUTHENTICATION_FORM_ERROR_EMPTY = "app.common.login.twoFactorAuthenticationForm.error.empty",
|
|
19
|
+
NTLM_AUTHENTICATION_FORM_DESCRIPTION = "app.common.login.ntlmAuthenticationForm.description",
|
|
6
20
|
ACTION_LOGIN = "app.common.login.action.login",
|
|
21
|
+
ACTION_GO_BACK = "app.common.login.action.goBack",
|
|
7
22
|
ACTION_RESET_PASSWORD = "app.common.login.action.resetPassword",
|
|
8
23
|
ACTION_REGISTER = "app.common.login.action.register",
|
|
9
24
|
SEPARATOR_TEXT = "app.common.login.separatorText",
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { ButtonProps } from '../Button/Button';
|
|
3
|
+
import { LoginFormRef } from './LoginFormRef';
|
|
4
|
+
interface LoginFormProps {
|
|
5
|
+
onSubmit: (userName: string, password: string) => void;
|
|
6
|
+
onWindowsLogin: () => void;
|
|
7
|
+
onResetPassword?: () => void;
|
|
8
|
+
onSaveData?: (value: boolean, name?: string) => void;
|
|
9
|
+
onRegister?: () => void;
|
|
10
|
+
buttonList?: ButtonProps[];
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
emptyErrorText?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const LoginForm: React.ForwardRefExoticComponent<LoginFormProps & React.RefAttributes<LoginFormRef>>;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TwoFactorAuthenticationFormRef } from './TwoFactorAuthenticationFormRef';
|
|
3
|
+
interface TwoFactorAuthenticationFormProps {
|
|
4
|
+
onSubmit: (code: string) => void;
|
|
5
|
+
onGoBack: () => void;
|
|
6
|
+
userName: string;
|
|
7
|
+
email: string;
|
|
8
|
+
onResendCode?: () => void;
|
|
9
|
+
resendCodeDurationMs?: number;
|
|
10
|
+
codeValidityDurationMin?: number;
|
|
11
|
+
errorMessage?: string;
|
|
12
|
+
emptyErrorText?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const TwoFactorAuthenticationForm: React.ForwardRefExoticComponent<TwoFactorAuthenticationFormProps & React.RefAttributes<TwoFactorAuthenticationFormRef>>;
|
|
15
|
+
export {};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -31,13 +31,18 @@ import { ControlGroup } from './controls/ControlGroup/ControlGroup';
|
|
|
31
31
|
import { PdfViewer } from './controls/PdfViewer/PdfViewer';
|
|
32
32
|
import { PdfViewerContext } from './controls/PdfViewer/PdfViewerContext';
|
|
33
33
|
import { Login } from './controls/Login/Login';
|
|
34
|
+
import { LoginForm } from './controls/Login/LoginForm';
|
|
35
|
+
import { LoginFormRef } from './controls/Login/LoginFormRef';
|
|
36
|
+
import { TwoFactorAuthenticationForm } from './controls/Login/TwoFactorAuthenticationForm';
|
|
37
|
+
import { TwoFactorAuthenticationFormRef } from './controls/Login/TwoFactorAuthenticationFormRef';
|
|
38
|
+
import { NTLMAuthenticationForm } from './controls/Login/NTLMAuthenticationForm';
|
|
34
39
|
import { Input, InputProps } from './controls/Input/Input';
|
|
35
40
|
import { NumberInput } from './controls/NumberInput/NumberInput';
|
|
36
41
|
import * as NUMBER_INPUT from './controls/NumberInput/NumberInputConstants';
|
|
37
42
|
import { PasswordInput } from './controls/PasswordInput/PasswordInput';
|
|
38
43
|
import { DatePicker, DatePickerProps } from './controls/DatePicker/DatePicker';
|
|
39
44
|
import { TimePicker } from './controls/TimePicker/TimePicker';
|
|
40
|
-
import { Button } from './controls/Button/Button';
|
|
45
|
+
import { Button, ButtonProps } from './controls/Button/Button';
|
|
41
46
|
import { Label } from './controls/Label/Label';
|
|
42
47
|
import { LookupPicker, LookupPickerProps } from './controls/LookupPicker/LookupPicker';
|
|
43
48
|
import { CommandMenu } from './controls/CommandMenu/CommandMenu';
|
|
@@ -103,6 +108,9 @@ import { TableViewDetail } from './controls/TableViewDetail/TableViewDetail';
|
|
|
103
108
|
import { ExpandControlGroup } from './controls/ExpandControlGroup/ExpandControlGroup';
|
|
104
109
|
import { ButtonGroup } from './controls/ButtonGroup/ButtonGroup';
|
|
105
110
|
import { Radio } from './controls/Radio/Radio';
|
|
111
|
+
import { ImageButton } from './controls/ImageButton/ImageButton';
|
|
112
|
+
import { LinkInput } from './controls/LinkInput/LinkInput';
|
|
113
|
+
import { Link } from './controls/Link/Link';
|
|
106
114
|
export { Breadcrumbs };
|
|
107
115
|
export { TopLevelMenu };
|
|
108
116
|
export { TreeView, TreeViewContext, TREE_VIEW, TreeViewProps, JsTreeViewNode };
|
|
@@ -115,12 +123,12 @@ export { View };
|
|
|
115
123
|
export { TabGroup };
|
|
116
124
|
export { ControlGroup, TabItem };
|
|
117
125
|
export { PdfViewer, PdfViewerContext };
|
|
118
|
-
export { Login };
|
|
126
|
+
export { Login, LoginForm, TwoFactorAuthenticationForm, LoginFormRef, TwoFactorAuthenticationFormRef, NTLMAuthenticationForm };
|
|
119
127
|
export { Input, InputProps };
|
|
120
128
|
export { NumberInput, NUMBER_INPUT };
|
|
121
129
|
export { DatePicker, DatePickerProps };
|
|
122
130
|
export { TimePicker };
|
|
123
|
-
export { Button };
|
|
131
|
+
export { Button, ButtonProps };
|
|
124
132
|
export { Label };
|
|
125
133
|
export { LookupPicker, LookupPickerProps };
|
|
126
134
|
export { CommandMenu, CommandMenuButton, CommandMenuLookupPicker, CommandMenuDropdownButton, CommandMenuSubItem };
|
|
@@ -166,3 +174,6 @@ export { TableViewDetail };
|
|
|
166
174
|
export { ExpandControlGroup };
|
|
167
175
|
export { ButtonGroup };
|
|
168
176
|
export { Radio };
|
|
177
|
+
export { ImageButton };
|
|
178
|
+
export { LinkInput };
|
|
179
|
+
export { Link };
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.
|
|
1
|
+
import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.90';
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
Viewer, XKTLoaderPlugin, NavCubePlugin, SectionPlanesPlugin, math, BCFViewpointsPlugin, AnnotationsPlugin,
|
|
5
5
|
ContextMenu, TreeViewPlugin, StoreyViewsPlugin, AngleMeasurementsPlugin, CameraMemento, DistanceMeasurementsPlugin,
|
|
6
6
|
GLTFLoaderPlugin, utils, FastNavPlugin, MetaObject
|
|
7
7
|
}
|
|
8
|
-
from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.
|
|
8
|
+
from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.90';
|
|
9
9
|
|
|
10
10
|
|
|
11
11
|
const processByChildIdList = (treeViewNode, event) => {
|
|
@@ -3213,7 +3213,7 @@ const defaultOptions = {
|
|
|
3213
3213
|
kind: OptionKind.WORKER
|
|
3214
3214
|
},
|
|
3215
3215
|
workerSrc: {
|
|
3216
|
-
value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.
|
|
3216
|
+
value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.90",
|
|
3217
3217
|
kind: OptionKind.WORKER
|
|
3218
3218
|
}
|
|
3219
3219
|
};
|