@vitrosoftware/common-ui-ts 1.1.97 → 1.1.99
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/bottom-align-control-group/bottom-align-control-group.css +4 -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/flex-box/flex-box.css +4 -0
- package/css/std/controls/header/header-nav-bar.css +8 -1
- 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/main/main.css +2 -2
- 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/product-title/product-title.css +1 -0
- package/css/std/controls/progress-bar/progress-bar.css +25 -0
- package/css/std/controls/scrollbar/scrollbar.css +2 -2
- package/css/std/controls/search/checkbox-list.css +3 -9
- package/css/std/controls/search/search.css +22 -0
- package/css/std/controls/{search/input.css → search-input/search-input.css} +25 -40
- package/css/std/controls/search-value-list/search-value-list.css +13 -0
- package/css/std/controls/sidebar/sidebar-item.css +9 -28
- package/css/std/controls/site-select/img/collapse-bottom-triangle.svg +3 -0
- package/css/std/controls/site-select/img/collapse-up-triangle.svg +3 -0
- package/css/std/controls/site-select/img/default-site-image.svg +7 -0
- package/css/std/controls/site-select/img/dropdown-menu-arrow.svg +1 -0
- package/css/std/controls/site-select/img/search-grey.svg +3 -0
- package/css/std/controls/site-select/img/search.svg +5 -0
- package/css/std/controls/site-select/site-item.css +52 -0
- package/css/std/controls/site-select/site-select.css +163 -0
- package/css/std/controls/slide-up-panel/slide-up-panel.css +39 -0
- package/css/std/controls/star-button/img/star-active.svg +3 -0
- package/css/std/controls/star-button/img/star.svg +3 -0
- package/css/std/controls/star-button/star-button.css +22 -0
- 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 +1117 -680
- package/dist/index.js +1579 -1237
- 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/BottomAlignControlGroup/BottomAlignControlGroup.d.ts +6 -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/FlexBox/FlexBox.d.ts +7 -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/Search/CheckboxList.d.ts +1 -1
- package/dist/src/controls/SearchInput/SearchInput.d.ts +19 -0
- package/dist/src/controls/SearchInput/SearchInputConstants.d.ts +4 -0
- package/dist/src/controls/SearchValueList/SearchValueList.d.ts +13 -0
- package/dist/src/controls/SearchValueList/SearchValueListConstants.d.ts +3 -0
- package/dist/src/controls/SiteSelect/SiteItem.d.ts +13 -0
- package/dist/src/controls/SiteSelect/SiteSelect.d.ts +12 -0
- package/dist/src/controls/SlideUpPanel/SlideUpPanel.d.ts +10 -0
- package/dist/src/controls/StarButton/StarButton.d.ts +8 -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 +29 -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
- /package/css/std/controls/{search → search-input}/img/cancel-black.svg +0 -0
- /package/css/std/controls/{search → search-input}/img/cancel-dark-grey.svg +0 -0
- /package/css/std/controls/{search → search-input}/img/search.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>>;
|
|
@@ -5,7 +5,7 @@ interface CheckboxListProps {
|
|
|
5
5
|
name: string;
|
|
6
6
|
value?: boolean;
|
|
7
7
|
}[];
|
|
8
|
-
onChange?: (selectedItemList: string[]) =>
|
|
8
|
+
onChange?: (selectedItemList: string[]) => void;
|
|
9
9
|
isAllSelected?: boolean;
|
|
10
10
|
}
|
|
11
11
|
export declare const CheckboxList: (props: CheckboxListProps) => JSX.Element;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SearchCriterion } from '../Search/SearchCriterion';
|
|
3
|
+
interface SearchInputProps {
|
|
4
|
+
searchCriterionList?: SearchCriterion[];
|
|
5
|
+
value?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
onCancel: () => void;
|
|
8
|
+
onSubmit?: (value?: string) => void;
|
|
9
|
+
onChange?: (value: any) => void;
|
|
10
|
+
onBlur?: () => void;
|
|
11
|
+
onFocus?: () => void;
|
|
12
|
+
onRemoveValue?: (newItemList: SearchCriterion[]) => void;
|
|
13
|
+
isMobileView?: boolean;
|
|
14
|
+
isActive?: boolean;
|
|
15
|
+
className?: string;
|
|
16
|
+
children?: React.ReactNode;
|
|
17
|
+
}
|
|
18
|
+
export declare const SearchInput: (props: SearchInputProps) => JSX.Element;
|
|
19
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SearchValueListProps {
|
|
3
|
+
itemList: any[];
|
|
4
|
+
filterValueTemplate: (item: any) => string;
|
|
5
|
+
valueTemplate: (item: any) => React.ReactNode;
|
|
6
|
+
emptyPlaceHolder?: string;
|
|
7
|
+
isMobileView?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
inputClassName?: string;
|
|
10
|
+
children?: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const SearchValueList: (props: SearchValueListProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface SiteItemProps {
|
|
3
|
+
id: string;
|
|
4
|
+
name: string;
|
|
5
|
+
imageUrl?: string;
|
|
6
|
+
isStarActive?: boolean;
|
|
7
|
+
isActive: boolean;
|
|
8
|
+
isMobileView?: boolean;
|
|
9
|
+
onClick: () => void;
|
|
10
|
+
onStar?: (isStarActive: boolean) => void;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare const SiteItem: (props: SiteItemProps) => JSX.Element;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { SiteItemProps } from './SiteItem';
|
|
3
|
+
interface SiteSelectProps {
|
|
4
|
+
itemList: SiteItemProps[];
|
|
5
|
+
rootItem: SiteItemProps;
|
|
6
|
+
title: string;
|
|
7
|
+
activeItem: SiteItemProps;
|
|
8
|
+
onChange?: (item: SiteItemProps) => void;
|
|
9
|
+
onStarChange?: (item: SiteItemProps) => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const SiteSelect: (props: SiteSelectProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface SlideUpPanelProps {
|
|
3
|
+
container?: any;
|
|
4
|
+
isShow: boolean;
|
|
5
|
+
children: React.ReactNode;
|
|
6
|
+
onClose?: () => void;
|
|
7
|
+
className?: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const SlideUpPanel: (props: SlideUpPanelProps) => JSX.Element;
|
|
10
|
+
export {};
|
|
@@ -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,19 @@ 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 { MOBILE_VIEW } from './constants/MobileView';
|
|
121
|
+
import { ProgressBar } from './controls/ProgressBar/ProgressBar';
|
|
122
|
+
import { ExpandCollapseButton } from './controls/ExpandCollapseButton/ExpandCollapseButton';
|
|
123
|
+
import { ButtonCancel } from './controls/ButtonCancel/ButtonCancel';
|
|
124
|
+
import { SystemExceptionDialog } from './controls/SystemExceptionDialog/SystemExceptionDialog';
|
|
125
|
+
import { Heading } from './controls/Heading/Heading';
|
|
126
|
+
import * as HEADING from './controls/Heading/HeadingConstants';
|
|
127
|
+
import { SiteSelect } from './controls/SiteSelect/SiteSelect';
|
|
128
|
+
import { SiteItemProps } from './controls/SiteSelect/SiteItem';
|
|
129
|
+
import { StarButton } from './controls/StarButton/StarButton';
|
|
130
|
+
import { FlexBox } from './controls/FlexBox/FlexBox';
|
|
131
|
+
import { SlideUpPanel } from './controls/SlideUpPanel/SlideUpPanel';
|
|
132
|
+
import { BottomAlignControlGroup } from './controls/BottomAlignControlGroup/BottomAlignControlGroup';
|
|
117
133
|
export { Breadcrumbs };
|
|
118
134
|
export { TopLevelMenu };
|
|
119
135
|
export { TreeView, TreeViewContext, TREE_VIEW, TreeViewProps, JsTreeViewNode };
|
|
@@ -121,13 +137,13 @@ export { TableView, TableViewContext, TableViewRow, TableViewCol, TableViewMenuI
|
|
|
121
137
|
export { MicroFrontend };
|
|
122
138
|
export { TelerikUploader, TelerikUploaderContext, TelerikUploaderContextImpl, TelerikUploaderSettings };
|
|
123
139
|
export { ComponentLoader, ComponentLoaderContextImpl, ComponentLoaderContext };
|
|
124
|
-
export { ActionHandler, ACTION_HANDLER };
|
|
140
|
+
export { ActionHandler, ActionHandlerResult, ActionHandlerItem, ACTION_HANDLER };
|
|
125
141
|
export { View };
|
|
126
142
|
export { TabGroup };
|
|
127
143
|
export { ControlGroup, TabItem };
|
|
128
144
|
export { PdfViewer, PdfViewerContext };
|
|
129
145
|
export { Login, LoginForm, TwoFactorAuthenticationForm, LoginFormRef, TwoFactorAuthenticationFormRef, NTLMAuthenticationForm };
|
|
130
|
-
export { Input, InputProps };
|
|
146
|
+
export { Input, InputProps, InputRef };
|
|
131
147
|
export { NumberInput, NUMBER_INPUT };
|
|
132
148
|
export { DatePicker, DatePickerProps };
|
|
133
149
|
export { TimePicker };
|
|
@@ -182,3 +198,14 @@ export { LinkInput };
|
|
|
182
198
|
export { Link };
|
|
183
199
|
export { Overlay, OverlayRef };
|
|
184
200
|
export { PLACEMENT };
|
|
201
|
+
export { ProgressBar };
|
|
202
|
+
export { ExpandCollapseButton };
|
|
203
|
+
export { ButtonCancel };
|
|
204
|
+
export { SystemExceptionDialog };
|
|
205
|
+
export { Heading, HEADING };
|
|
206
|
+
export { MOBILE_VIEW };
|
|
207
|
+
export { SiteSelect, SiteItemProps };
|
|
208
|
+
export { StarButton };
|
|
209
|
+
export { FlexBox };
|
|
210
|
+
export { SlideUpPanel };
|
|
211
|
+
export { BottomAlignControlGroup };
|