@vitrosoftware/common-ui-ts 1.1.89 → 1.1.91

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.
Files changed (51) hide show
  1. package/css/std/controls/checkbox/checkbox.css +3 -1
  2. package/css/std/controls/criterion/criterion.css +6 -1
  3. package/css/std/controls/date-picker/date-picker.css +10 -5
  4. package/css/std/controls/dialog/dialog.css +0 -2
  5. package/css/std/controls/image-button/image-button.css +13 -0
  6. package/css/std/controls/input/input.css +16 -11
  7. package/css/std/controls/link/link.css +12 -0
  8. package/css/std/controls/link-input/img/edit.svg +5 -0
  9. package/css/std/controls/link-input/link-input.css +37 -0
  10. package/css/std/controls/login/img/clock.svg +4 -0
  11. package/css/std/controls/login/img/windows-logo.svg +6 -0
  12. package/css/std/controls/login/login-content.css +12 -0
  13. package/css/std/controls/login/login-form.css +161 -0
  14. package/css/std/controls/login/login-go-back-link.css +7 -0
  15. package/css/std/controls/login/login-submit-button.css +10 -0
  16. package/css/std/controls/login/login-title.css +8 -0
  17. package/css/std/controls/login/login.css +12 -144
  18. package/css/std/controls/login/ntlm-authentication-form.css +31 -0
  19. package/css/std/controls/login/two-factor-authentication-form.css +144 -0
  20. package/css/std/controls/lookup-picker/lookup-picker.css +14 -9
  21. package/css/std/controls/sidebar/sidebar-item.css +3 -2
  22. package/css/std/controls/time-picker/time-picker.css +18 -13
  23. package/dist/index.css +561 -225
  24. package/dist/index.js +757 -342
  25. package/dist/index.js.map +1 -1
  26. package/dist/src/constants/Control.d.ts +1 -0
  27. package/dist/src/constants/Target.d.ts +4 -0
  28. package/dist/src/controls/Button/Button.d.ts +1 -2
  29. package/dist/src/controls/ImageButton/ImageButton.d.ts +12 -0
  30. package/dist/src/controls/Input/Input.d.ts +1 -0
  31. package/dist/src/controls/Link/Link.d.ts +10 -0
  32. package/dist/src/controls/LinkInput/LinkInput.d.ts +26 -0
  33. package/dist/src/controls/LinkInput/LinkInputConstants.d.ts +4 -0
  34. package/dist/src/controls/LinkInput/LinkInputRef.d.ts +11 -0
  35. package/dist/src/controls/Login/Login.d.ts +3 -7
  36. package/dist/src/controls/Login/LoginConstants.d.ts +19 -4
  37. package/dist/src/controls/Login/LoginContent.d.ts +8 -0
  38. package/dist/src/controls/Login/LoginForm.d.ts +15 -0
  39. package/dist/src/controls/Login/LoginFormRef.d.ts +5 -0
  40. package/dist/src/controls/Login/LoginGoBackLink.d.ts +6 -0
  41. package/dist/src/controls/Login/LoginSubmitButton.d.ts +8 -0
  42. package/dist/src/controls/Login/LoginTitle.d.ts +7 -0
  43. package/dist/src/controls/Login/NTLMAuthenticationForm.d.ts +6 -0
  44. package/dist/src/controls/Login/TwoFactorAuthenticationForm.d.ts +15 -0
  45. package/dist/src/controls/Login/TwoFactorAuthenticationFormRef.d.ts +4 -0
  46. package/dist/src/controls/Sidebar/Item.d.ts +1 -0
  47. package/dist/src/controls/Sidebar/LinkItem.d.ts +1 -0
  48. package/dist/src/index.d.ts +14 -3
  49. package/package.json +1 -1
  50. package/src/controls/BimViewer/js/bim-viewer.js +2 -2
  51. package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
@@ -8,4 +8,5 @@ export declare class CONTROL {
8
8
  static readonly NUMBER_INPUT = "NumberInput";
9
9
  static readonly PASSWORD = "Password";
10
10
  static readonly TIME_PICKER = "TimePicker";
11
+ static readonly LINK_INPUT = "LinkInput";
11
12
  }
@@ -0,0 +1,4 @@
1
+ export declare class TARGET {
2
+ static readonly BLANK = "_blank";
3
+ static readonly SELF = "_self";
4
+ }
@@ -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 {};
@@ -19,6 +19,7 @@ export interface InputProps {
19
19
  isAutoComplete?: boolean;
20
20
  isError?: boolean;
21
21
  isIcon?: boolean;
22
+ isShowCopyButton?: boolean;
22
23
  onChange?: (value: string, name?: string) => void;
23
24
  onBlur?: (e: any) => void;
24
25
  onFocus?: (e: any) => void;
@@ -0,0 +1,10 @@
1
+ /// <reference types="react" />
2
+ interface LinkProps {
3
+ text: string;
4
+ href?: string;
5
+ onClick?: () => void;
6
+ target?: string;
7
+ className?: string;
8
+ }
9
+ export declare const Link: (props: LinkProps) => JSX.Element;
10
+ 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 {};
@@ -0,0 +1,4 @@
1
+ export declare enum LOCALE {
2
+ TOOLTIP_EDIT = "app.common.linkInput.tooltip.edit",
3
+ TOOLTIP_OPEN = "app.common.linkInput.tooltip.open"
4
+ }
@@ -0,0 +1,11 @@
1
+ export interface LinkInputRef {
2
+ focus(): void;
3
+ setValue(value: {
4
+ url: string;
5
+ name?: string;
6
+ }): void;
7
+ getValue(): {
8
+ url: string;
9
+ name?: string;
10
+ };
11
+ }
@@ -1,17 +1,13 @@
1
1
  import React from 'react';
2
2
  interface LoginProps {
3
- onSubmit: (userName: string, password: string) => any;
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: React.ForwardRefExoticComponent<LoginProps & React.RefAttributes<unknown>>;
12
+ export declare const Login: (props: LoginProps) => JSX.Element;
17
13
  export {};
@@ -1,9 +1,24 @@
1
1
  export declare enum LOCALE {
2
- ERROR_EMPTY = "app.common.login.error.empty",
3
- FIELD_NAME = "app.common.login.field.userName",
4
- FIELD_PASSWORD = "app.common.login.field.password",
5
- ACTION_SAVE_DATA = "app.common.login.action.saveData",
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,8 @@
1
+ import React from 'react';
2
+ interface LoginContentProps {
3
+ children: React.ReactNode;
4
+ onGoBack?: () => void;
5
+ className?: string;
6
+ }
7
+ export declare const LoginContent: (props: LoginContentProps) => JSX.Element;
8
+ export {};
@@ -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,5 @@
1
+ export interface LoginFormRef {
2
+ setErrorMessage: (message: string) => void;
3
+ getUserName: () => string;
4
+ getPassword: () => string;
5
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface LoginGoBackLinkProps {
3
+ onClick: () => void;
4
+ }
5
+ export declare const LoginGoBackLink: (props: LoginGoBackLinkProps) => JSX.Element;
6
+ export {};
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ interface LoginSubmitButtonProps {
3
+ onClick: () => void;
4
+ isDisabled?: boolean;
5
+ className?: string;
6
+ }
7
+ export declare const LoginSubmitButton: (props: LoginSubmitButtonProps) => JSX.Element;
8
+ export {};
@@ -0,0 +1,7 @@
1
+ /// <reference types="react" />
2
+ interface LoginTitleProps {
3
+ text?: string;
4
+ className?: string;
5
+ }
6
+ export declare const LoginTitle: (props: LoginTitleProps) => JSX.Element;
7
+ export {};
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ interface NTLMAuthenticationFormProps {
3
+ onGoBack: () => void;
4
+ }
5
+ export declare const NTLMAuthenticationForm: (props: NTLMAuthenticationFormProps) => JSX.Element;
6
+ 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 {};
@@ -0,0 +1,4 @@
1
+ export interface TwoFactorAuthenticationFormRef {
2
+ setErrorMessage: (message: string) => void;
3
+ getCode: () => string;
4
+ }
@@ -5,6 +5,7 @@ interface ItemProps {
5
5
  imageHoverUrl?: string;
6
6
  isHover?: boolean;
7
7
  isSidebarExpanded: boolean;
8
+ isHidden?: boolean;
8
9
  isMobileView: boolean;
9
10
  width?: number;
10
11
  className?: string;
@@ -14,6 +14,7 @@ interface LinkItem {
14
14
  onClick?: React.MouseEventHandler<HTMLAnchorElement>;
15
15
  isSidebarExpanded: boolean;
16
16
  isMobileView: boolean;
17
+ isHidden?: boolean;
17
18
  }
18
19
  export declare const LinkItem: (props: LinkItem) => JSX.Element;
19
20
  export {};
@@ -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,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitrosoftware/common-ui-ts",
3
- "version": "1.1.89",
3
+ "version": "1.1.91",
4
4
  "description": "vitro software common ui ts",
5
5
  "author": "",
6
6
  "license": "MIT",
@@ -1,11 +1,11 @@
1
- import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.89';
1
+ import { BIMModel, BIMCommon, BIMAnnotation } from '/resource/bimViewer/js/bim-viewer-models.js?version=1.1.91';
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.89';
8
+ from '/resource/bimViewer/js/xeokit/xeokit-sdk.es.js?version=1.1.91';
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.89",
3216
+ value: "resource/pdfViewer/js/pdf.worker.js?version=1.1.91",
3217
3217
  kind: OptionKind.WORKER
3218
3218
  }
3219
3219
  };