@vitrosoftware/common-ui-ts 1.1.97 → 1.1.98
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/action-handler/action-result-list.css +86 -0
- package/css/std/controls/action-handler/confirm-dialog.css +25 -0
- package/css/std/controls/action-handler/img/question.svg +39 -8
- package/css/std/controls/action-handler/img/save-blue.svg +5 -0
- package/css/std/controls/action-handler/result-dialog.css +124 -0
- package/css/std/controls/button-cancel/button-cancel.css +12 -0
- package/css/std/controls/button-group/button-group.css +1 -0
- package/css/std/controls/checkbox/checkbox.css +4 -4
- package/css/std/controls/checkbox/img/checkbox-active.svg +4 -0
- package/css/std/controls/checkbox/img/checkbox-empty.svg +3 -0
- package/css/std/controls/criterion/criterion.css +1 -1
- package/css/std/controls/date-picker/date-picker.css +1 -4
- package/css/std/controls/dialog/dialog-content.css +12 -0
- package/css/std/controls/dialog/dialog-footer.css +52 -4
- package/css/std/controls/dialog/dialog-header.css +14 -17
- package/css/std/controls/dialog/dialog.css +45 -9
- package/css/std/controls/dialog/img/cancel-white.svg +9 -2
- package/css/std/controls/dialog/img/collapse-bottom-grey.svg +3 -0
- package/css/std/controls/dialog/img/collapse-up-grey.svg +3 -0
- package/css/std/controls/expand-collapse-button/expand-collapse-button.css +33 -0
- package/css/std/controls/expand-control-group/expand-control-group.css +1 -10
- package/css/std/controls/field-iterator/field-iterator.css +4 -0
- package/css/std/controls/file-version-select/file-version-select.css +8 -4
- package/css/std/controls/heading/heading.css +49 -0
- package/css/std/controls/input/input.css +2 -7
- package/css/std/controls/lookup-picker/lookup-picker.css +1 -4
- package/css/std/controls/pdf-viewer/custom.css +25 -2
- package/css/std/controls/pdf-viewer/img/cancel-black.svg +3 -0
- package/css/std/controls/pdf-viewer/img/create-issue-black.svg +5 -0
- package/css/std/controls/pdf-viewer/img/delete-black.svg +11 -0
- package/css/std/controls/pdf-viewer/img/hide-measures.svg +16 -0
- package/css/std/controls/pdf-viewer/img/measures-area.svg +17 -0
- package/css/std/controls/pdf-viewer/img/measures-area_active.svg +17 -0
- package/css/std/controls/pdf-viewer/img/measures-line.svg +8 -0
- package/css/std/controls/pdf-viewer/img/measures-line_active.svg +8 -0
- package/css/std/controls/pdf-viewer/img/measures-settings.svg +4 -0
- package/css/std/controls/pdf-viewer/img/measures-settings_active.svg +4 -0
- package/css/std/controls/pdf-viewer/img/measures-toolbar.svg +15 -0
- package/css/std/controls/pdf-viewer/img/show-measures.svg +16 -0
- package/css/std/controls/pdf-viewer/measure.css +137 -0
- package/css/std/controls/pdf-viewer/pdf-viewer-index.css +2570 -236
- package/css/std/controls/pdf-viewer/pdf-viewer.css +124 -87
- package/css/std/controls/pdf-viewer/viewer.css +158 -147
- package/css/std/controls/progress-bar/progress-bar.css +25 -0
- package/css/std/controls/scrollbar/scrollbar.css +2 -2
- package/css/std/controls/system-exception-dialog/img/error.svg +40 -0
- package/css/std/controls/system-exception-dialog/system-exception-dialog.css +119 -0
- package/css/std/controls/time-picker/time-picker.css +1 -4
- package/css/std/controls/tree-view/tree-view.css +4 -0
- package/css/std/controls/uploader/uploader.css +1 -12
- package/css/std/controls/view/view.css +8 -1
- package/css/std/controls/view-part/view-part.css +0 -5
- package/css/third-party/jquery-contextMenu/jquery.contextMenu.min.css +1 -1
- package/dist/index.css +745 -601
- package/dist/index.js +1180 -1093
- package/dist/index.js.map +1 -1
- package/dist/src/constants/KeyCode.d.ts +1 -0
- package/dist/src/controls/ActionHandler/ActionHandler.d.ts +15 -11
- package/dist/src/controls/ActionHandler/ActionHandlerConstants.d.ts +7 -28
- package/dist/src/controls/ActionHandler/ActionHandlerItem.d.ts +6 -0
- package/dist/src/controls/ActionHandler/ActionHandlerResult.d.ts +3 -0
- package/dist/src/controls/ActionHandler/ActionResultItem.d.ts +11 -0
- package/dist/src/controls/ActionHandler/ActionResultList.d.ts +9 -0
- package/dist/src/controls/ActionHandler/ConfirmDialog.d.ts +11 -0
- package/dist/src/controls/ActionHandler/ResultDialog.d.ts +17 -0
- package/dist/src/controls/ButtonCancel/ButtonCancel.d.ts +3 -0
- package/dist/src/controls/ButtonGroup/ButtonGroup.d.ts +1 -0
- package/dist/src/controls/Checkbox/Checkbox.d.ts +4 -3
- package/dist/src/controls/Checkbox/CheckboxRef.d.ts +4 -0
- package/dist/src/controls/Dialog/Dialog.d.ts +7 -3
- package/dist/src/controls/Dialog/DialogComponent.d.ts +1 -0
- package/dist/src/controls/Dialog/DialogConstants.d.ts +3 -1
- package/dist/src/controls/Dialog/DialogDetailExpandButton.d.ts +6 -0
- package/dist/src/controls/Dialog/DialogFooter.d.ts +5 -3
- package/dist/src/controls/Dialog/DialogHeader.d.ts +4 -2
- package/dist/src/controls/ExpandCollapseButton/ExpandCollapseButton.d.ts +12 -0
- package/dist/src/controls/Heading/Heading.d.ts +11 -0
- package/dist/src/controls/Heading/HeadingConstants.d.ts +7 -0
- package/dist/src/controls/Input/Input.d.ts +2 -1
- package/dist/src/controls/Input/InputRef.d.ts +5 -0
- package/dist/src/controls/ProgressBar/ProgressBar.d.ts +7 -0
- package/dist/src/controls/ScrollBar/ScrollBar.d.ts +1 -0
- package/dist/src/controls/SystemExceptionDialog/SystemExceptionDialog.d.ts +11 -0
- package/dist/src/controls/SystemExceptionDialog/SystemExceptionDialogConstants.d.ts +11 -0
- package/dist/src/controls/SystemExceptionDialog/SystemExceptionDialogData.d.ts +7 -0
- package/dist/src/controls/TelerikUploader/TelerikUploaderContextImpl.d.ts +2 -1
- package/dist/src/controls/TelerikUploader/TelerikUploaderSettings.d.ts +4 -1
- package/dist/src/controls/UpdatingPopover/UpdatingPopover.d.ts +2 -0
- package/dist/src/index.d.ts +16 -2
- package/lib/screen.dpi.detector/screen.dpi.detector.js +92 -0
- package/lib/third-party.js +92 -0
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/PdfViewer/js/pdf-viewer.js +1104 -58
- package/css/std/controls/action-handler/action-handler-info.css +0 -99
- package/css/std/controls/action-handler/action-handler.css +0 -265
- package/css/std/controls/action-handler/img/cancel-red-big.svg +0 -5
- package/css/std/controls/action-handler/img/progress.svg +0 -1
- package/css/std/controls/action-handler/img/warning.svg +0 -10
- package/css/std/controls/checkbox/img/checkbox-big-active.svg +0 -4
- package/css/std/controls/checkbox/img/checkbox-big-empty.svg +0 -5
- package/css/std/controls/dialog/dialog-button-close.css +0 -34
- package/css/std/controls/dialog/dialog-button.css +0 -7
- package/css/std/controls/expand-control-group/img/collapse-bottom.svg +0 -5
- package/css/std/controls/expand-control-group/img/collapse-up.svg +0 -3
- package/css/std/controls/pdf-viewer/img/delete-active.svg +0 -11
- package/css/std/controls/pdf-viewer/img/delete.svg +0 -11
- /package/css/std/controls/{action-handler → expand-collapse-button}/img/collapse-bottom.svg +0 -0
- /package/css/std/controls/{action-handler → expand-collapse-button}/img/collapse-up.svg +0 -0
|
@@ -1,27 +1,31 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { ActionHandlerItem } from './ActionHandlerItem';
|
|
3
|
+
import { ActionHandlerResult } from './ActionHandlerResult';
|
|
2
4
|
interface ActionHandlerProps {
|
|
3
5
|
actionCode: string;
|
|
4
|
-
|
|
5
|
-
processItem: (item:
|
|
6
|
-
item?:
|
|
7
|
-
itemList?:
|
|
6
|
+
actionName?: string;
|
|
7
|
+
processItem: (item: ActionHandlerItem | {}) => any;
|
|
8
|
+
item?: ActionHandlerItem;
|
|
9
|
+
itemList?: ActionHandlerItem[];
|
|
8
10
|
isShowAfterAction?: boolean;
|
|
9
11
|
isShowProgress?: boolean;
|
|
10
12
|
isHideProgressBar?: boolean;
|
|
11
13
|
isShow?: boolean;
|
|
12
|
-
isBlockInterface?: boolean;
|
|
13
14
|
isAutoClose?: boolean;
|
|
14
|
-
processError?: (failResult:
|
|
15
|
-
onAfterAction?: (error:
|
|
15
|
+
processError?: (failResult: ActionHandlerResult) => any;
|
|
16
|
+
onAfterAction?: (error: Error | null, successResult: ActionHandlerResult, failResult: ActionHandlerResult) => void;
|
|
16
17
|
onBeforeAction?: () => void;
|
|
17
|
-
onAfterActionClose?: (error:
|
|
18
|
+
onAfterActionClose?: (error: Error | null, successResult: ActionHandlerResult, failResult: ActionHandlerResult) => void;
|
|
19
|
+
onSaveReport?: (successResult: ActionHandlerResult, failResult: ActionHandlerResult) => void;
|
|
20
|
+
onError?: (excepton: any) => {
|
|
21
|
+
abort: boolean;
|
|
22
|
+
exception: any;
|
|
23
|
+
};
|
|
18
24
|
successText?: (itemCount?: number) => string;
|
|
19
25
|
confirmText?: (itemCount?: number) => string;
|
|
20
|
-
errorText?: (error:
|
|
26
|
+
errorText?: (error: Error, itemCount: number) => string;
|
|
21
27
|
progressText?: (itemCount?: number) => string;
|
|
22
28
|
isConfirm?: boolean;
|
|
23
|
-
target?: any;
|
|
24
|
-
placement?: any;
|
|
25
29
|
labelYes?: string;
|
|
26
30
|
labelNo?: string;
|
|
27
31
|
children?: React.ReactNode;
|
|
@@ -1,32 +1,11 @@
|
|
|
1
1
|
export declare enum LOCALE {
|
|
2
|
-
CONF_SINGLE = "app.common.msg.action.conf.single",
|
|
3
|
-
CONF_MULTI = "app.common.msg.action.conf.multi",
|
|
4
|
-
CONF_STD = "app.common.msg.action.conf.std",
|
|
5
|
-
ITEM_COUNT = "app.common.actionHandler.itemCount",
|
|
6
|
-
ITEM_NAME = "app.common.actionHandler.itemName",
|
|
7
|
-
SUCCESS_SINGLE = "app.common.msg.action.success.single",
|
|
8
|
-
SUCCESS_MULTI = "app.common.msg.action.success.multi",
|
|
9
|
-
SUCCESS_STD = "app.common.msg.action.success.std",
|
|
10
|
-
ERROR_SINGLE = "app.common.msg.action.error.single",
|
|
11
|
-
ERROR_MULTI = "app.common.msg.action.error.multi",
|
|
12
|
-
ERROR_STD = "app.common.msg.action.error.std",
|
|
13
|
-
PROGRESS_SINGLE = "app.common.msg.action.progress.single",
|
|
14
|
-
PROGRESS_MULTI = "app.common.msg.action.progress.multi",
|
|
15
|
-
PROGRESS_STD = "app.common.msg.action.progress.std",
|
|
16
2
|
ACTION = "app.common.action",
|
|
17
|
-
ERROR_MSG = "app.common.msg.error",
|
|
18
|
-
SUCCESS = "success",
|
|
19
|
-
PROGRESS = "progress",
|
|
20
|
-
ERROR = "error",
|
|
21
3
|
CANCEL = "app.common.action.cancel",
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
export declare enum TRIGGER {
|
|
31
|
-
CLICK = "click"
|
|
4
|
+
CONFIRM_DIALOG_TITLE = "app.common.actionHandler.confirmDialog.title",
|
|
5
|
+
RESULT_DIALOG_PROGRESS_TITLE = "app.common.actionHandler.resultDialog.progress.title",
|
|
6
|
+
RESULT_DIALOG_PROGRESS_COUNT = "app.common.actionHandler.resultDialog.progress.count",
|
|
7
|
+
RESULT_DIALOG_SUCCESS_TITLE = "app.common.actionHandler.resultDialog.success.title",
|
|
8
|
+
RESULT_DIALOG_SUCCESS_MESSAGE = "app.common.actionHandler.resultDialog.success.message",
|
|
9
|
+
RESULT_DIALOG_ERROR_TITLE = "app.common.actionHandler.resultDialog.error.title",
|
|
10
|
+
RESULT_DIALOG_ACTION_SAVE_REPORT = "app.common.actionHandler.resultDialog.action.saveReport"
|
|
32
11
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ActionResultItemProps {
|
|
3
|
+
id?: string;
|
|
4
|
+
name?: string;
|
|
5
|
+
size?: string;
|
|
6
|
+
imageUrl?: string;
|
|
7
|
+
message?: string;
|
|
8
|
+
isSuccess?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare const ActionResultItem: (props: ActionResultItemProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ActionHandlerResult } from './ActionHandlerResult';
|
|
3
|
+
interface ActionResultListProps {
|
|
4
|
+
successResult: ActionHandlerResult;
|
|
5
|
+
failResult: ActionHandlerResult;
|
|
6
|
+
isVisible: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare const ActionResultList: (props: ActionResultListProps) => JSX.Element;
|
|
9
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface ConfirmDialogProps {
|
|
3
|
+
actionName?: string;
|
|
4
|
+
itemCount: number;
|
|
5
|
+
labelNo?: string;
|
|
6
|
+
labelYes?: string;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
onConfirm: () => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const ConfirmDialog: (props: ConfirmDialogProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { ActionHandlerItem } from './ActionHandlerItem';
|
|
3
|
+
import { ActionHandlerResult } from './ActionHandlerResult';
|
|
4
|
+
interface ResultDialogProps {
|
|
5
|
+
actionName: string;
|
|
6
|
+
successResult: ActionHandlerResult;
|
|
7
|
+
failResult: ActionHandlerResult;
|
|
8
|
+
itemList: ActionHandlerItem[];
|
|
9
|
+
processedItemCount: number;
|
|
10
|
+
isSuccess: boolean;
|
|
11
|
+
isProgress: boolean;
|
|
12
|
+
onSaveReport?: (successResult: ActionHandlerResult, failResult: ActionHandlerResult) => void;
|
|
13
|
+
onClose: () => void;
|
|
14
|
+
onCancel: () => void;
|
|
15
|
+
}
|
|
16
|
+
export declare const ResultDialog: (props: ResultDialogProps) => JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { CheckboxRef } from './CheckboxRef';
|
|
2
3
|
export interface CheckboxProps {
|
|
3
|
-
value?:
|
|
4
|
-
onChange?: (value:
|
|
4
|
+
value?: boolean;
|
|
5
|
+
onChange?: (value: boolean, name: string) => void;
|
|
5
6
|
labelPosition?: string;
|
|
6
7
|
label: string;
|
|
7
8
|
isDisabled?: boolean;
|
|
8
9
|
name: string;
|
|
9
10
|
className?: string;
|
|
10
11
|
}
|
|
11
|
-
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<
|
|
12
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<CheckboxRef>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonProps } from '../Button/Button';
|
|
3
3
|
export interface DialogProps {
|
|
4
4
|
title: string;
|
|
5
|
-
|
|
5
|
+
subtitle?: string;
|
|
6
|
+
image?: React.ReactNode;
|
|
6
7
|
imageUrl?: string;
|
|
7
|
-
buttonList?:
|
|
8
|
+
buttonList?: ButtonProps[];
|
|
8
9
|
labelClose?: string;
|
|
9
10
|
isDismissible?: boolean;
|
|
10
11
|
onClose?: (dialog: any) => any;
|
|
@@ -18,6 +19,9 @@ export interface DialogProps {
|
|
|
18
19
|
};
|
|
19
20
|
isHideFooter?: boolean;
|
|
20
21
|
dialog?: any;
|
|
22
|
+
className?: string;
|
|
23
|
+
headerClassName?: string;
|
|
24
|
+
hiddenContent?: React.ReactNode;
|
|
21
25
|
children?: React.ReactNode;
|
|
22
26
|
}
|
|
23
27
|
export declare const Dialog: (props: DialogProps) => JSX.Element;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare enum LOCALE {
|
|
2
2
|
ACTION_CANCEL = "app.common.action.cancel",
|
|
3
3
|
ACTION_CLOSE = "app.common.action.close",
|
|
4
|
-
ACTION_SAVE = "app.common.action.save"
|
|
4
|
+
ACTION_SAVE = "app.common.action.save",
|
|
5
|
+
ACTION_SHOW_DETAIL = "app.common.dialog.action.showDetail",
|
|
6
|
+
ACTION_HIDE = "app.common.dialog.action.hide"
|
|
5
7
|
}
|
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import {
|
|
2
|
+
import { ButtonProps } from '../Button/Button';
|
|
3
3
|
interface DialogFooterProps {
|
|
4
|
-
buttonList?:
|
|
4
|
+
buttonList?: ButtonProps[];
|
|
5
5
|
labelClose?: string;
|
|
6
|
-
onClose
|
|
6
|
+
onClose: () => any;
|
|
7
|
+
onClickDetailButton: (isExpanded: boolean) => void;
|
|
7
8
|
isDismissible?: boolean;
|
|
9
|
+
isShowDetailButton?: boolean;
|
|
8
10
|
dialog?: any;
|
|
9
11
|
}
|
|
10
12
|
export declare const DialogFooter: (props: DialogFooterProps) => JSX.Element;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
interface DialogHeaderProps {
|
|
3
3
|
title: string;
|
|
4
|
-
|
|
4
|
+
subtitle?: string;
|
|
5
5
|
imageUrl?: string;
|
|
6
|
+
image?: React.ReactNode;
|
|
7
|
+
className?: string;
|
|
6
8
|
}
|
|
7
9
|
export declare const DialogHeader: (props: DialogHeaderProps) => JSX.Element;
|
|
8
10
|
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ExpandCollapseButtonProps {
|
|
3
|
+
onClick: (isExpanded: boolean) => void;
|
|
4
|
+
expandImage?: React.ReactNode;
|
|
5
|
+
collapseImage?: React.ReactNode;
|
|
6
|
+
expandText?: string;
|
|
7
|
+
collapseText?: string;
|
|
8
|
+
isExpanded?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ExpandCollapseButton: (props: ExpandCollapseButtonProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { TAG } from './HeadingConstants';
|
|
3
|
+
interface HeadingProps {
|
|
4
|
+
text: string;
|
|
5
|
+
tag: TAG;
|
|
6
|
+
className?: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const Heading: (props: HeadingProps) => React.DetailedReactHTMLElement<{
|
|
9
|
+
className: string;
|
|
10
|
+
}, HTMLElement>;
|
|
11
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { InputRef } from './InputRef';
|
|
2
3
|
export interface InputProps {
|
|
3
4
|
name?: string;
|
|
4
5
|
type?: string;
|
|
@@ -29,4 +30,4 @@ export interface InputProps {
|
|
|
29
30
|
children?: React.ReactNode;
|
|
30
31
|
className?: string;
|
|
31
32
|
}
|
|
32
|
-
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<
|
|
33
|
+
export declare const Input: React.ForwardRefExoticComponent<InputProps & React.RefAttributes<InputRef>>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SystemExceptionDialogData } from './SystemExceptionDialogData';
|
|
3
|
+
interface SystemExceptionDialogProps {
|
|
4
|
+
stackTrace: string;
|
|
5
|
+
onConfirm: (data: SystemExceptionDialogData) => void;
|
|
6
|
+
onCancel: () => void;
|
|
7
|
+
labelConfirm?: string;
|
|
8
|
+
labelClose?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const SystemExceptionDialog: (props: SystemExceptionDialogProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare enum LOCALE {
|
|
2
|
+
TITLE = "app.common.systemExceptionDialog.title",
|
|
3
|
+
SUBTITLE = "app.common.systemExceptionDialog.subtitle",
|
|
4
|
+
ACTION_SEND = "app.common.systemExceptionDialog.action.send",
|
|
5
|
+
ACTION_INCLUDE = "app.common.systemExceptionDialog.action.includeInReport",
|
|
6
|
+
SETTING = "app.common.systemExceptionDialog.setting",
|
|
7
|
+
SETTING_SCREENSHOT = "screenshot",
|
|
8
|
+
SETTING_EXCEPTION_TEXT = "detailedExceptionText",
|
|
9
|
+
SETTING_USER_NAME = "userName",
|
|
10
|
+
SETTING_SYSTEM_INFO = "systemInformation"
|
|
11
|
+
}
|
|
@@ -17,7 +17,7 @@ export declare class TelerikUploaderContextImpl implements TelerikUploaderContex
|
|
|
17
17
|
private progressBar;
|
|
18
18
|
private title;
|
|
19
19
|
private subtitle;
|
|
20
|
-
constructor(uploader: HTMLInputElement, container: HTMLDivElement, dropZone: HTMLDivElement, settings: TelerikUploaderSettings, localeService: LocaleService, toggleButtons: (show: boolean) =>
|
|
20
|
+
constructor(uploader: HTMLInputElement, container: HTMLDivElement, dropZone: HTMLDivElement, progressBar: HTMLDivElement | null, settings: TelerikUploaderSettings, localeService: LocaleService, toggleButtons: (show: boolean) => void);
|
|
21
21
|
clearAllFiles(): void;
|
|
22
22
|
private resetUploader;
|
|
23
23
|
private initAuthorization;
|
|
@@ -33,6 +33,7 @@ export declare class TelerikUploaderContextImpl implements TelerikUploaderContex
|
|
|
33
33
|
addFile(): void;
|
|
34
34
|
setAthorizationToken(token: string): void;
|
|
35
35
|
private setErrorMessage;
|
|
36
|
+
private cancelUpload;
|
|
36
37
|
private setFileImage;
|
|
37
38
|
private setProgressBar;
|
|
38
39
|
private setFileProgress;
|
|
@@ -11,5 +11,8 @@ export interface TelerikUploaderSettings {
|
|
|
11
11
|
isAutoReset?: boolean;
|
|
12
12
|
resetDurationMs?: number;
|
|
13
13
|
getFileImage?: (name: string) => string;
|
|
14
|
-
|
|
14
|
+
onError?: (response: any) => {
|
|
15
|
+
abort: boolean;
|
|
16
|
+
exception: any;
|
|
17
|
+
};
|
|
15
18
|
}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -23,6 +23,8 @@ import { ComponentLoader } from './controls/ComponentLoader/ComponentLoader';
|
|
|
23
23
|
import { ComponentLoaderContextImpl } from './controls/ComponentLoader/ComponentLoaderContextImpl';
|
|
24
24
|
import { ComponentLoaderContext } from './controls/ComponentLoader/ComponentLoaderContext';
|
|
25
25
|
import { ActionHandler } from './controls/ActionHandler/ActionHandler';
|
|
26
|
+
import { ActionHandlerResult } from './controls/ActionHandler/ActionHandlerResult';
|
|
27
|
+
import { ActionHandlerItem } from './controls/ActionHandler/ActionHandlerItem';
|
|
26
28
|
import * as ACTION_HANDLER from './controls/ActionHandler/ActionHandlerConstants';
|
|
27
29
|
import { View } from './controls/View/View';
|
|
28
30
|
import { TabGroup } from './controls/TabGroup/TabGroup';
|
|
@@ -37,6 +39,7 @@ import { TwoFactorAuthenticationForm } from './controls/Login/TwoFactorAuthentic
|
|
|
37
39
|
import { TwoFactorAuthenticationFormRef } from './controls/Login/TwoFactorAuthenticationFormRef';
|
|
38
40
|
import { NTLMAuthenticationForm } from './controls/Login/NTLMAuthenticationForm';
|
|
39
41
|
import { Input, InputProps } from './controls/Input/Input';
|
|
42
|
+
import { InputRef } from './controls/Input/InputRef';
|
|
40
43
|
import { NumberInput } from './controls/NumberInput/NumberInput';
|
|
41
44
|
import * as NUMBER_INPUT from './controls/NumberInput/NumberInputConstants';
|
|
42
45
|
import { PasswordInput } from './controls/PasswordInput/PasswordInput';
|
|
@@ -114,6 +117,12 @@ import { Link } from './controls/Link/Link';
|
|
|
114
117
|
import { Overlay } from './controls/Overlay/Overlay';
|
|
115
118
|
import { OverlayRef } from './controls/Overlay/OverlayRef';
|
|
116
119
|
import { PLACEMENT } from './constants/Placement';
|
|
120
|
+
import { ProgressBar } from './controls/ProgressBar/ProgressBar';
|
|
121
|
+
import { ExpandCollapseButton } from './controls/ExpandCollapseButton/ExpandCollapseButton';
|
|
122
|
+
import { ButtonCancel } from './controls/ButtonCancel/ButtonCancel';
|
|
123
|
+
import { SystemExceptionDialog } from './controls/SystemExceptionDialog/SystemExceptionDialog';
|
|
124
|
+
import { Heading } from './controls/Heading/Heading';
|
|
125
|
+
import * as HEADING from './controls/Heading/HeadingConstants';
|
|
117
126
|
export { Breadcrumbs };
|
|
118
127
|
export { TopLevelMenu };
|
|
119
128
|
export { TreeView, TreeViewContext, TREE_VIEW, TreeViewProps, JsTreeViewNode };
|
|
@@ -121,13 +130,13 @@ export { TableView, TableViewContext, TableViewRow, TableViewCol, TableViewMenuI
|
|
|
121
130
|
export { MicroFrontend };
|
|
122
131
|
export { TelerikUploader, TelerikUploaderContext, TelerikUploaderContextImpl, TelerikUploaderSettings };
|
|
123
132
|
export { ComponentLoader, ComponentLoaderContextImpl, ComponentLoaderContext };
|
|
124
|
-
export { ActionHandler, ACTION_HANDLER };
|
|
133
|
+
export { ActionHandler, ActionHandlerResult, ActionHandlerItem, ACTION_HANDLER };
|
|
125
134
|
export { View };
|
|
126
135
|
export { TabGroup };
|
|
127
136
|
export { ControlGroup, TabItem };
|
|
128
137
|
export { PdfViewer, PdfViewerContext };
|
|
129
138
|
export { Login, LoginForm, TwoFactorAuthenticationForm, LoginFormRef, TwoFactorAuthenticationFormRef, NTLMAuthenticationForm };
|
|
130
|
-
export { Input, InputProps };
|
|
139
|
+
export { Input, InputProps, InputRef };
|
|
131
140
|
export { NumberInput, NUMBER_INPUT };
|
|
132
141
|
export { DatePicker, DatePickerProps };
|
|
133
142
|
export { TimePicker };
|
|
@@ -182,3 +191,8 @@ export { LinkInput };
|
|
|
182
191
|
export { Link };
|
|
183
192
|
export { Overlay, OverlayRef };
|
|
184
193
|
export { PLACEMENT };
|
|
194
|
+
export { ProgressBar };
|
|
195
|
+
export { ExpandCollapseButton };
|
|
196
|
+
export { ButtonCancel };
|
|
197
|
+
export { SystemExceptionDialog };
|
|
198
|
+
export { Heading, HEADING };
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* dpi screen detector javascript 1.0.0 (High Dots Per Inch)
|
|
3
|
+
* Screen resolution pixel density (dpi) detector.
|
|
4
|
+
*
|
|
5
|
+
* Detect:
|
|
6
|
+
* - ldpi (low) ~120dpi
|
|
7
|
+
* - mdpi (medium) ~160dpi
|
|
8
|
+
* - hdpi (high) ~240dpi
|
|
9
|
+
* - xhdpi (extra-high) ~320dpi
|
|
10
|
+
* - xxhdpi (extra-extra-high) ~480dpi
|
|
11
|
+
* - xxxhdpi (extra-extra-extra-high) ~640dpi
|
|
12
|
+
*
|
|
13
|
+
* Github repository:
|
|
14
|
+
* https://github.com/jorgegilramos/screen-dpi-detector
|
|
15
|
+
*
|
|
16
|
+
* Live demo:
|
|
17
|
+
* http://jorgegilramos.es/test/demo.html
|
|
18
|
+
*
|
|
19
|
+
* Author: Ricardo Jorge Gil Ramos
|
|
20
|
+
* http://jorgegilramos.es
|
|
21
|
+
*
|
|
22
|
+
* RJGR © Creative Commons Attribution-NonCommercial 3.0
|
|
23
|
+
* License: http://creativecommons.org/licenses/by-nc/3.0/
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
window.Detector = (function(window, document, undefined){
|
|
27
|
+
var version = "1.0.0";
|
|
28
|
+
var maxRatio = 8.0;
|
|
29
|
+
Detector = {};
|
|
30
|
+
|
|
31
|
+
Detector._version = version;
|
|
32
|
+
Detector.screens = {};
|
|
33
|
+
|
|
34
|
+
// support for device-pixel-ratio: prefix for vendor, "" for native or undefined
|
|
35
|
+
Detector.prefix = function() {
|
|
36
|
+
if (window.matchMedia) {
|
|
37
|
+
var prefixes = "-webkit-min- min--moz- -o-min- -ms-min- -khtml-min- ".split(" ");
|
|
38
|
+
var mediaQuery = "device-pixel-ratio:1.0";
|
|
39
|
+
for (var i=0; i<prefixes.length; i++) {
|
|
40
|
+
if (window.matchMedia("(" + prefixes[i] + mediaQuery + ")").matches) {
|
|
41
|
+
return prefixes[i];
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return undefined;
|
|
46
|
+
}();
|
|
47
|
+
|
|
48
|
+
// device-pixel-ratio: Number of device pixels per CSS Pixel
|
|
49
|
+
Detector.devicePixelRatio = function() {
|
|
50
|
+
if (Detector.prefix) {
|
|
51
|
+
var maxdpr = 1.0;
|
|
52
|
+
var i=1.0;
|
|
53
|
+
for (; i<=maxRatio; i=parseFloat((i+0.1).toFixed(1))) {
|
|
54
|
+
if (window.matchMedia("(" + Detector.prefix + "device-pixel-ratio:" + i.toFixed(1) + ")").matches===false) {
|
|
55
|
+
break;
|
|
56
|
+
} else {
|
|
57
|
+
maxdpr = i;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
return maxdpr;
|
|
61
|
+
}
|
|
62
|
+
return undefined;
|
|
63
|
+
}();
|
|
64
|
+
|
|
65
|
+
// dppx: Number of dots per px unit. 1dppx = 96dpi
|
|
66
|
+
Detector.dppx = function() {
|
|
67
|
+
if (window.matchMedia) {
|
|
68
|
+
var maxdppx = 1.0;
|
|
69
|
+
var i=1.0;
|
|
70
|
+
for (; i<=maxRatio; i=parseFloat((i+0.1).toFixed(1))) {
|
|
71
|
+
if (window.matchMedia("(min-resolution:" + i.toFixed(1) + "dppx)").matches===false) {
|
|
72
|
+
break;
|
|
73
|
+
} else {
|
|
74
|
+
maxdppx = i;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
return maxdppx;
|
|
78
|
+
}
|
|
79
|
+
return undefined;
|
|
80
|
+
}();
|
|
81
|
+
|
|
82
|
+
// dpi: Dots per inch
|
|
83
|
+
Detector.dpi = Detector.dppx*96;
|
|
84
|
+
|
|
85
|
+
var test = {"ldpi": 120, "mdpi": 160, "hdpi": 240, "xhdpi": 320, "xxhdpi": 480, "xxxhdpi": 640};
|
|
86
|
+
for (var key in test) {
|
|
87
|
+
if (test.hasOwnProperty(key)) {
|
|
88
|
+
Detector.screens[key] = Detector.dpi >= test[key];
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
return Detector;
|
|
92
|
+
})(this, this.document);
|