@vitrosoftware/common-ui-ts 1.1.152 → 1.1.153
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/common.css +1 -1
- package/css/std/controls/breadcrumbs/breadcrumbs.css +1 -6
- package/css/std/controls/checkbox/checkbox.css +0 -1
- package/css/std/controls/checkbox-reorderable-list/checkbox-reorderable-list.css +25 -0
- package/css/std/controls/control-group/control-group.css +1 -0
- package/css/std/controls/criterion/criterion.css +0 -1
- package/css/std/controls/criterion-field-iterator/criterion-field-iterator.css +38 -0
- package/css/std/controls/date-picker/date-picker.css +0 -1
- package/css/std/controls/dialog/dialog.css +2 -1
- package/css/std/controls/editable-field-iterator/editable-field-iterator.css +3 -0
- package/css/std/controls/editable-field-iterator/item.css +56 -0
- package/css/std/controls/editable-list/editable-list.css +44 -0
- package/css/std/controls/editable-list/img/add.svg +4 -0
- package/css/std/controls/field-iterator/field-iterator.css +1 -1
- package/css/std/controls/image-button/image-button.css +5 -0
- package/css/std/controls/input/input.css +0 -1
- package/css/std/controls/lookup-picker/lookup-picker.css +0 -1
- package/css/std/controls/main/main.css +1 -9
- package/css/std/controls/pin-button/img/pin-active.svg +4 -0
- package/css/std/controls/pin-button/pin-button.css +11 -0
- package/css/std/controls/reorderable-list/img/drag.svg +8 -0
- package/css/std/controls/reorderable-list/reorderable-list.css +37 -0
- package/css/std/controls/search/search.css +4 -1
- package/css/std/controls/sidebar/sidebar-item.css +5 -0
- package/css/std/controls/sidebar/sidebar.css +2 -3
- package/css/std/controls/splitter/splitter.css +3 -28
- package/css/std/controls/switch/switch.css +55 -0
- package/css/std/controls/tab-button-group/img/check.svg +10 -0
- package/css/std/controls/tab-button-group/tab-button-group.css +86 -0
- package/css/std/controls/table-view/table-view-gantt.css +15 -0
- package/css/std/controls/table-view/{table-view-additional-container.css → table-view-hidden-container.css} +1 -1
- package/css/std/controls/table-view/table-view.css +1 -1
- package/css/std/controls/table-view/treegrid-cell.css +4 -0
- package/css/std/controls/table-view/treegrid-header.css +5 -1
- package/css/std/controls/time-picker/time-picker.css +0 -1
- package/dist/index.css +492 -168
- package/dist/index.js +1649 -727
- package/dist/index.js.map +1 -1
- package/dist/src/constants/Event.d.ts +1 -0
- package/dist/src/controls/AddFieldButton/AddFieldButton.d.ts +13 -0
- package/dist/src/controls/AddFieldButton/CheckboxList.d.ts +12 -0
- package/dist/src/controls/Breadcrumbs/Breadcrumbs.d.ts +1 -0
- package/dist/src/controls/CheckboxReorderableList/CheckboxReorderableList.d.ts +13 -0
- package/dist/src/controls/Criterion/Criterion.d.ts +1 -1
- package/dist/src/controls/CriterionFieldIterator/CriterionFieldIterator.d.ts +23 -0
- package/dist/src/controls/DropdownButton/DropdownButton.d.ts +1 -0
- package/dist/src/controls/EditableFieldIterator/EditableFieldIterator.d.ts +18 -0
- package/dist/src/controls/EditableFieldIterator/Item.d.ts +16 -0
- package/dist/src/controls/EditableList/EditableItem.d.ts +16 -0
- package/dist/src/controls/EditableList/EditableList.d.ts +28 -0
- package/dist/src/controls/FlexBox/FlexBox.d.ts +1 -0
- package/dist/src/controls/ImageButton/ImageButton.d.ts +4 -4
- package/dist/src/controls/List/List.d.ts +4 -1
- package/dist/src/controls/LookupPicker/SelectedValueList.d.ts +0 -1
- package/dist/src/controls/LookupPicker/SelectedValueListItem.d.ts +0 -1
- package/dist/src/controls/MicroFrontend/MicroFrontend.d.ts +1 -0
- package/dist/src/controls/MicroFrontend/renderMicrofrontend.d.ts +1 -1
- package/dist/src/controls/PinButton/PinButton.d.ts +8 -0
- package/dist/src/controls/ReorderableList/ReorderableItem.d.ts +13 -0
- package/dist/src/controls/ReorderableList/ReorderableList.d.ts +15 -0
- package/dist/src/controls/ReorderableList/ReorderableListContent.d.ts +12 -0
- package/dist/src/controls/ReorderableList/ReorderableListItem.d.ts +12 -0
- package/dist/src/controls/Search/Search.d.ts +4 -0
- package/dist/src/controls/Sidebar/CustomItem.d.ts +17 -0
- package/dist/src/controls/Sidebar/LinkItem.d.ts +1 -1
- package/dist/src/controls/Sidebar/Section.d.ts +1 -1
- package/dist/src/controls/Sidebar/SidebarItem.d.ts +2 -0
- package/dist/src/controls/Splitter/Splitter.d.ts +3 -3
- package/dist/src/controls/Switch/Switch.d.ts +11 -0
- package/dist/src/controls/TabButtonGroup/TabButtonGroup.d.ts +10 -0
- package/dist/src/controls/TableView/TableView.d.ts +2 -0
- package/dist/src/controls/TableView/TableViewConstants.d.ts +4 -2
- package/dist/src/controls/TableView/TableViewContext.d.ts +6 -0
- package/dist/src/controls/TableView/TreeGridTableViewContextImpl.d.ts +6 -0
- package/dist/src/controls/TreeView/JsTreeViewContextImpl.d.ts +1 -0
- package/dist/src/controls/TreeView/TreeView.d.ts +3 -1
- package/dist/src/controls/TreeView/TreeViewConstants.d.ts +2 -1
- package/dist/src/index.d.ts +22 -1
- package/package.json +1 -1
- package/src/controls/BimViewer/js/bim-viewer.js +2 -2
- package/src/controls/DxfViewer/js/dxf-viewer.js +14 -14
- package/src/controls/PdfViewer/js/pdf-viewer.js +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { RefObject } from 'react';
|
|
2
|
+
interface AddFieldButtonProps {
|
|
3
|
+
labelAddField: string;
|
|
4
|
+
onAddField: () => void;
|
|
5
|
+
isShowAddFieldDialog: boolean;
|
|
6
|
+
isMobileView?: boolean;
|
|
7
|
+
checkboxFieldList: any[];
|
|
8
|
+
onFieldListChange: (selectedFieldIdList: string[]) => void;
|
|
9
|
+
isAllFieldsVisible?: boolean;
|
|
10
|
+
filterContainerRef: RefObject<any>;
|
|
11
|
+
}
|
|
12
|
+
export declare const AddFieldButton: React.ForwardRefExoticComponent<AddFieldButtonProps & React.RefAttributes<any>>;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CheckboxListProps {
|
|
3
|
+
itemList: {
|
|
4
|
+
id: string;
|
|
5
|
+
name: string;
|
|
6
|
+
value?: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
onChange?: (selectedItemList: string[]) => void;
|
|
9
|
+
isAllSelected?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare const CheckboxList: React.ForwardRefExoticComponent<CheckboxListProps & React.RefAttributes<HTMLDivElement>>;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface CheckboxReorderableListProps {
|
|
3
|
+
itemList: {
|
|
4
|
+
id: string;
|
|
5
|
+
text: string;
|
|
6
|
+
value?: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
onChange?: (selectedItemList: any[]) => void;
|
|
9
|
+
isAllSelected?: boolean;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare const CheckboxReorderableList: (props: CheckboxReorderableListProps) => JSX.Element;
|
|
13
|
+
export {};
|
|
@@ -4,7 +4,7 @@ import { Condition } from './Condition';
|
|
|
4
4
|
import { Operator } from './Operator';
|
|
5
5
|
interface CriterionProps {
|
|
6
6
|
label: string;
|
|
7
|
-
operatorList
|
|
7
|
+
operatorList?: Operator[];
|
|
8
8
|
conditionList: Condition[];
|
|
9
9
|
defaultOperator?: number;
|
|
10
10
|
defaultCondition?: number;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { Condition } from '../Criterion/Condition';
|
|
3
|
+
import { Operator } from '../Criterion/Operator';
|
|
4
|
+
interface CriterionFieldIteratorProps {
|
|
5
|
+
fieldList: any[];
|
|
6
|
+
valueList: any[];
|
|
7
|
+
componentMap: {
|
|
8
|
+
name: string;
|
|
9
|
+
value: React.FunctionComponent<any>;
|
|
10
|
+
}[];
|
|
11
|
+
fieldValueMap?: Map<string, any>;
|
|
12
|
+
onChange: (changedFieldValueMap: Map<string, any>, saveStatus?: {
|
|
13
|
+
isSaving: boolean;
|
|
14
|
+
}) => any;
|
|
15
|
+
operatorList?: Operator[];
|
|
16
|
+
getConditionList: (componentName: string) => Condition[];
|
|
17
|
+
getDefaultCondition?: (componentName: string) => number;
|
|
18
|
+
onDeleteField: (id: string) => any;
|
|
19
|
+
isMobileView?: boolean;
|
|
20
|
+
isNoScrollBar?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export declare const CriterionFieldIterator: (props: CriterionFieldIteratorProps) => JSX.Element;
|
|
23
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface EditableFieldIteratorProps {
|
|
3
|
+
fieldList: any[];
|
|
4
|
+
valueList: any[];
|
|
5
|
+
componentMap: {
|
|
6
|
+
name: string;
|
|
7
|
+
value: React.FunctionComponent<any>;
|
|
8
|
+
}[];
|
|
9
|
+
fieldValueMap?: Map<string, any>;
|
|
10
|
+
onChange: (changedFieldValueMap: Map<string, any>, saveStatus?: {
|
|
11
|
+
isSaving: boolean;
|
|
12
|
+
}) => any;
|
|
13
|
+
onDeleteField: (id: string) => any;
|
|
14
|
+
isMobileView?: boolean;
|
|
15
|
+
isNoScrollBar?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const EditableFieldIterator: (props: EditableFieldIteratorProps) => JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ItemProps {
|
|
3
|
+
label: string;
|
|
4
|
+
onChange: (value: any, name: string) => any;
|
|
5
|
+
onDelete: (name: string) => any;
|
|
6
|
+
className?: string;
|
|
7
|
+
isMobileView?: boolean;
|
|
8
|
+
content: {
|
|
9
|
+
component: React.FunctionComponent<any>;
|
|
10
|
+
props: {
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
export declare const Item: (props: ItemProps) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownItem } from '../DropdownButton/DropdownItem';
|
|
3
|
+
interface EditableItemProps {
|
|
4
|
+
id: string;
|
|
5
|
+
text: string;
|
|
6
|
+
dropdownItemList?: DropdownItem[];
|
|
7
|
+
isEditMode: boolean;
|
|
8
|
+
isActive: boolean;
|
|
9
|
+
isDropdownActive?: boolean;
|
|
10
|
+
onChange: (value: string) => void;
|
|
11
|
+
onBlur: (value: string) => void;
|
|
12
|
+
onToggleDropdown?: (state: boolean) => void;
|
|
13
|
+
button?: React.ReactNode;
|
|
14
|
+
}
|
|
15
|
+
export declare const EditableItem: (props: EditableItemProps) => JSX.Element;
|
|
16
|
+
export {};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { DropdownItem } from '../DropdownButton/DropdownItem';
|
|
3
|
+
interface EditableListProps {
|
|
4
|
+
itemList: {
|
|
5
|
+
id: string;
|
|
6
|
+
text: string;
|
|
7
|
+
dropdownItemList: DropdownItem[];
|
|
8
|
+
}[];
|
|
9
|
+
newItem?: {
|
|
10
|
+
id: string;
|
|
11
|
+
text: string;
|
|
12
|
+
dropdownItemList: DropdownItem[];
|
|
13
|
+
};
|
|
14
|
+
title?: string;
|
|
15
|
+
createButtonTooltip?: string;
|
|
16
|
+
editedItemId?: string;
|
|
17
|
+
activeItemId?: string;
|
|
18
|
+
onCreate?: () => void;
|
|
19
|
+
onClick?: (item: any) => void;
|
|
20
|
+
onChange?: (item: any, value: string) => void;
|
|
21
|
+
onStartEdit?: (item: any) => void;
|
|
22
|
+
onEndEdit?: (item: any, value: string) => void;
|
|
23
|
+
isShowCreateButton?: boolean;
|
|
24
|
+
className?: string;
|
|
25
|
+
getItemButton?: (item: any) => React.ReactNode;
|
|
26
|
+
}
|
|
27
|
+
export declare const EditableList: (props: EditableListProps) => JSX.Element;
|
|
28
|
+
export {};
|
|
@@ -3,6 +3,7 @@ export interface FlexBoxProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
|
3
3
|
children: React.ReactNode;
|
|
4
4
|
gap?: number;
|
|
5
5
|
isColumn?: boolean;
|
|
6
|
+
style?: any;
|
|
6
7
|
className?: string;
|
|
7
8
|
}
|
|
8
9
|
export declare const FlexBox: React.ForwardRefExoticComponent<FlexBoxProps & React.RefAttributes<HTMLDivElement>>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import * as TOOLTIP from '../Tooltip/TooltipConstants';
|
|
3
|
-
interface ImageButtonProps {
|
|
4
|
-
onClick: () => void;
|
|
3
|
+
interface ImageButtonProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
4
|
+
onClick: (e?: React.MouseEvent<HTMLElement>) => void;
|
|
5
5
|
tooltipText?: string;
|
|
6
6
|
tooltipPlacement?: TOOLTIP.PLACEMENT;
|
|
7
7
|
className?: string;
|
|
8
8
|
imageUrl?: string;
|
|
9
9
|
imageHoverUrl?: string;
|
|
10
10
|
}
|
|
11
|
-
export declare const ImageButton:
|
|
11
|
+
export declare const ImageButton: React.ForwardRefExoticComponent<ImageButtonProps & React.RefAttributes<HTMLButtonElement>>;
|
|
12
12
|
export {};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
interface ListProps {
|
|
2
|
+
interface ListProps extends React.HTMLAttributes<HTMLUListElement> {
|
|
3
3
|
itemList: any[];
|
|
4
4
|
itemTemplate: React.FunctionComponent;
|
|
5
5
|
onClick?: (item: any) => void;
|
|
6
6
|
onBlur?: (e: React.FocusEvent<HTMLUListElement>) => void;
|
|
7
|
+
onRenderFinish?: () => void;
|
|
8
|
+
isCustomContainer?: boolean;
|
|
7
9
|
className?: string;
|
|
10
|
+
itemClassName?: string;
|
|
8
11
|
}
|
|
9
12
|
export declare const List: React.ForwardRefExoticComponent<ListProps & React.RefAttributes<HTMLUListElement>>;
|
|
10
13
|
export {};
|
|
@@ -10,7 +10,6 @@ interface SelectedValueListProps {
|
|
|
10
10
|
getHtmlValue?: (item: {
|
|
11
11
|
id: string;
|
|
12
12
|
}) => FunctionComponentElement<any> | null;
|
|
13
|
-
setTooltipText: (string: string) => void;
|
|
14
13
|
}
|
|
15
14
|
export declare const SelectedValueList: (props: SelectedValueListProps) => JSX.Element;
|
|
16
15
|
export {};
|
|
@@ -10,7 +10,6 @@ interface SelectedValueListItemProps {
|
|
|
10
10
|
getHtmlValue?: (item: {
|
|
11
11
|
id: string;
|
|
12
12
|
}) => FunctionComponentElement<any> | null;
|
|
13
|
-
setTooltipText: (string: string) => void;
|
|
14
13
|
}
|
|
15
14
|
export declare const SelectedValueListItem: (props: SelectedValueListItemProps) => JSX.Element;
|
|
16
15
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { MicroFrontendState } from './MicroFrontendState';
|
|
2
|
-
export declare const renderMicrofrontend: (rendererName: string, microFrontendState: MicroFrontendState, rootElement: HTMLElement, data: any, tryCnt: number) => void;
|
|
2
|
+
export declare const renderMicrofrontend: (rendererName: string, microFrontendState: MicroFrontendState, rootElement: HTMLElement, data: any, isReloadOnChange: boolean | undefined, tryCnt: number) => void;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ReorderableItemProps {
|
|
3
|
+
index: number;
|
|
4
|
+
onMouseDown: (e: any, index: number, width: number) => void;
|
|
5
|
+
draggedItemWidth: number;
|
|
6
|
+
isDragged?: boolean;
|
|
7
|
+
isDropAllowed?: boolean;
|
|
8
|
+
isDropZoneActive?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
children: React.ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare const ReorderableItem: (props: ReorderableItemProps) => JSX.Element | null;
|
|
13
|
+
export {};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ReorderableListProps {
|
|
3
|
+
itemList: {
|
|
4
|
+
index: number;
|
|
5
|
+
}[];
|
|
6
|
+
itemTemplate: React.FunctionComponent;
|
|
7
|
+
onChange?: (itemList: {
|
|
8
|
+
index: number;
|
|
9
|
+
}[]) => void;
|
|
10
|
+
isCustomContainer?: boolean;
|
|
11
|
+
className?: string;
|
|
12
|
+
itemClassName?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ReorderableList: (props: ReorderableListProps) => JSX.Element;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ReorderableListContentProps {
|
|
3
|
+
itemList: any[];
|
|
4
|
+
draggedIndex: number | null;
|
|
5
|
+
activeDropZoneIndex: number | null;
|
|
6
|
+
position: [number, number];
|
|
7
|
+
getItem: (item: any, isDropAllowed?: boolean) => React.ReactNode;
|
|
8
|
+
draggedItemWidth: number;
|
|
9
|
+
itemClassName?: string;
|
|
10
|
+
}
|
|
11
|
+
export declare const ReorderableListContent: (props: ReorderableListContentProps) => JSX.Element;
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface ReorderableListItemProps {
|
|
3
|
+
index: number;
|
|
4
|
+
onMouseDown: (e: any, index: number) => void;
|
|
5
|
+
isDragged?: boolean;
|
|
6
|
+
isDropAllowed?: boolean;
|
|
7
|
+
isDropZoneActive?: boolean;
|
|
8
|
+
className?: string;
|
|
9
|
+
children: React.ReactNode;
|
|
10
|
+
}
|
|
11
|
+
export declare const ReorderableListItem: (props: ReorderableListItemProps) => JSX.Element | null;
|
|
12
|
+
export {};
|
|
@@ -2,6 +2,10 @@ import React from 'react';
|
|
|
2
2
|
import { SearchCriterion } from './SearchCriterion';
|
|
3
3
|
import { Condition } from '../Criterion/Condition';
|
|
4
4
|
import { Operator } from '../Criterion/Operator';
|
|
5
|
+
export interface AddFieldComponentRef {
|
|
6
|
+
addFieldListRef: HTMLDivElement | null;
|
|
7
|
+
addFieldButtonRef: HTMLButtonElement | null;
|
|
8
|
+
}
|
|
5
9
|
interface SearchProps {
|
|
6
10
|
fieldList: any[];
|
|
7
11
|
visibleFieldList?: any[];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
interface CustomItemProps {
|
|
3
|
+
id: string;
|
|
4
|
+
text?: string;
|
|
5
|
+
activeItem?: string;
|
|
6
|
+
getIsActive?: (id: string, currentUrl?: string, activeItem?: string) => boolean;
|
|
7
|
+
setActiveItem: (id: string) => void;
|
|
8
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
9
|
+
currentUrl: string;
|
|
10
|
+
linkItemWidth?: number;
|
|
11
|
+
container?: any;
|
|
12
|
+
isSidebarExpanded: boolean;
|
|
13
|
+
isMobileView: boolean;
|
|
14
|
+
isDisabled?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const CustomItem: (props: CustomItemProps) => JSX.Element;
|
|
17
|
+
export {};
|
|
@@ -11,7 +11,7 @@ interface LinkItem {
|
|
|
11
11
|
text: string;
|
|
12
12
|
linkItemWidth?: number;
|
|
13
13
|
altUrlList?: string[];
|
|
14
|
-
onClick?: React.
|
|
14
|
+
onClick?: (e: React.MouseEvent) => void;
|
|
15
15
|
isSidebarExpanded: boolean;
|
|
16
16
|
isMobileView: boolean;
|
|
17
17
|
isHidden?: boolean;
|
|
@@ -3,9 +3,9 @@ import * as SPLITTER from './SplitterConstants';
|
|
|
3
3
|
import '../../../css/std/controls/splitter/splitter.css';
|
|
4
4
|
interface SplitterProps {
|
|
5
5
|
position?: SPLITTER.POSITION;
|
|
6
|
-
width?: number;
|
|
7
|
-
minWidth?: number;
|
|
8
|
-
maxWidth?: number;
|
|
6
|
+
width?: number | string;
|
|
7
|
+
minWidth?: number | string;
|
|
8
|
+
maxWidth?: number | string;
|
|
9
9
|
isPostPoned?: boolean;
|
|
10
10
|
isDispatchResize?: boolean;
|
|
11
11
|
isMaximizedPrimaryPane?: boolean;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
interface SwitchProps {
|
|
3
|
+
value?: boolean;
|
|
4
|
+
label?: string;
|
|
5
|
+
onChange?: (value: boolean, name: string) => void;
|
|
6
|
+
isDisabled?: boolean;
|
|
7
|
+
name: string;
|
|
8
|
+
className?: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const Switch: (props: SwitchProps) => JSX.Element;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export interface TabButtonGroupProps {
|
|
3
|
+
itemList: {
|
|
4
|
+
id: string;
|
|
5
|
+
text: string;
|
|
6
|
+
}[];
|
|
7
|
+
activeItem?: string;
|
|
8
|
+
onChange: (item: any) => void;
|
|
9
|
+
}
|
|
10
|
+
export declare const TabButtonGroup: (props: TabButtonGroupProps) => JSX.Element;
|
|
@@ -55,7 +55,8 @@ export declare enum EVENT {
|
|
|
55
55
|
ON_GET_GANTT_SIDE_HTML = "OnGetGanttSideHtml",
|
|
56
56
|
ON_END_DRAG_GANTT = "OnEndDragGantt",
|
|
57
57
|
ON_ZOOM = "OnZoom",
|
|
58
|
-
ON_GET_DEPENDENCY = "OnGetDependency"
|
|
58
|
+
ON_GET_DEPENDENCY = "OnGetDependency",
|
|
59
|
+
ON_DATA_RECEIVE = "OnDataReceive"
|
|
59
60
|
}
|
|
60
61
|
export declare enum URL {
|
|
61
62
|
LAYOUT = "Layout",
|
|
@@ -93,7 +94,8 @@ export declare enum CELL_TYPE {
|
|
|
93
94
|
SELECT = "Select",
|
|
94
95
|
HTML = "Html",
|
|
95
96
|
ICON = "Icon",
|
|
96
|
-
LIST = "List"
|
|
97
|
+
LIST = "List",
|
|
98
|
+
BOOL = "Bool"
|
|
97
99
|
}
|
|
98
100
|
export declare enum ATTRIBUTE {
|
|
99
101
|
BUTTON = "Button",
|
|
@@ -11,11 +11,13 @@ export interface TableViewContext {
|
|
|
11
11
|
readonly gantt: string;
|
|
12
12
|
readonly rowCount: number;
|
|
13
13
|
readonly header: TableViewRow;
|
|
14
|
+
readonly groupRow: TableViewRow;
|
|
14
15
|
readonly readOnly: boolean;
|
|
15
16
|
dragging: boolean;
|
|
16
17
|
sort: any;
|
|
17
18
|
filterOneLevel: boolean;
|
|
18
19
|
scope: string;
|
|
20
|
+
idColumnName: string | undefined;
|
|
19
21
|
setSearchCriterionList(searchCriterionList: SearchCriterion[], searchId: string): void;
|
|
20
22
|
clearSearchCriterionList(searchId: string): void;
|
|
21
23
|
getSearchCriterionList(searchId?: string): SearchCriterion[];
|
|
@@ -94,6 +96,7 @@ export interface TableViewContext {
|
|
|
94
96
|
setString(row: TableViewRow, col: string, str: string, show: boolean): void;
|
|
95
97
|
getString(row: TableViewRow, col: string): string;
|
|
96
98
|
hideRow(row: TableViewRow, del?: boolean, noshow?: boolean): void;
|
|
99
|
+
showRow(row: TableViewRow, noshow?: boolean, expanded?: boolean): void;
|
|
97
100
|
refreshGanttSlack(show?: boolean, min?: number, err?: number): void;
|
|
98
101
|
setGanttFinish(date: Date | number | string, col?: string): void;
|
|
99
102
|
expandAll(parent?: TableViewRow, loaded?: number, levels?: number, max?: number, test?: boolean, render?: number): number;
|
|
@@ -108,4 +111,7 @@ export interface TableViewContext {
|
|
|
108
111
|
setScrollTop(val: number): boolean;
|
|
109
112
|
calculate(show?: boolean, calculated?: boolean): void;
|
|
110
113
|
ganttUnitsDuration(units: string): number;
|
|
114
|
+
changeColsVisibility(showList: string[], hideList: string[], prefer?: boolean): void;
|
|
115
|
+
setColWidth(col: string, change: number): void;
|
|
116
|
+
doGrouping(group: string): void;
|
|
111
117
|
}
|
|
@@ -31,6 +31,8 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
|
|
|
31
31
|
get mainTag(): HTMLElement;
|
|
32
32
|
get event(): any;
|
|
33
33
|
get idColumnName(): string | undefined;
|
|
34
|
+
set idColumnName(idColumnName: string | undefined);
|
|
35
|
+
get groupRow(): TableViewRow;
|
|
34
36
|
setSearchCriterionList(searchCriterionList: SearchCriterion[], searchId: string): void;
|
|
35
37
|
clearSearchCriterionList(searchId: string): void;
|
|
36
38
|
getSearchCriterionList(searchId?: string): SearchCriterion[];
|
|
@@ -109,6 +111,7 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
|
|
|
109
111
|
setString(row: TableViewRow, col: string, str: string, show: boolean): void;
|
|
110
112
|
getString(row: TableViewRow, col: string): string;
|
|
111
113
|
hideRow(row: TableViewRow, del?: boolean, noshow?: boolean): void;
|
|
114
|
+
showRow(row: TableViewRow, noshow?: boolean, expanded?: boolean): void;
|
|
112
115
|
refreshGanttSlack(show?: boolean, min?: number, err?: number): void;
|
|
113
116
|
setGanttFinish(date: Date | number | string, col?: string): void;
|
|
114
117
|
expandAll(parent?: TableViewRow, loaded?: number, levels?: number, max?: number, test?: boolean, render?: number): number;
|
|
@@ -123,4 +126,7 @@ export declare class TreeGridTableViewContextImpl implements TableViewContext {
|
|
|
123
126
|
setScrollTop(val: number): boolean;
|
|
124
127
|
ganttUnitsDuration(units: string): number;
|
|
125
128
|
calculate(show?: boolean, calculated?: boolean): void;
|
|
129
|
+
changeColsVisibility(showList: string[], hideList: string[], prefer?: boolean): void;
|
|
130
|
+
setColWidth(col: string, change: number): void;
|
|
131
|
+
doGrouping(group: string): void;
|
|
126
132
|
}
|
|
@@ -5,12 +5,14 @@ import { JsTreeViewNode } from './JsTreeViewNode';
|
|
|
5
5
|
export interface TreeViewProps {
|
|
6
6
|
id: string;
|
|
7
7
|
getData: (obj: any, cb: any) => any;
|
|
8
|
-
onInit: (jsTreeView: TreeViewContext) =>
|
|
8
|
+
onInit: (jsTreeView: TreeViewContext) => void;
|
|
9
|
+
onSelect?: (node: JsTreeViewNode) => void;
|
|
9
10
|
onDrop?: (treeView: TreeViewContext, targetNode: JsTreeViewNode, eventDetail: {
|
|
10
11
|
target: any;
|
|
11
12
|
}, e: DragEvent) => void;
|
|
12
13
|
isCheckboxSelect?: boolean;
|
|
13
14
|
isSaveCheckboxState?: boolean;
|
|
15
|
+
isSaveState?: boolean;
|
|
14
16
|
expandNodeIdList?: string[];
|
|
15
17
|
selectNodeId?: string;
|
|
16
18
|
}
|
|
@@ -29,7 +29,8 @@ export declare enum EVENT {
|
|
|
29
29
|
SELECT_NODE = "select_node.jstree",
|
|
30
30
|
LOADED = "loaded.jstree",
|
|
31
31
|
MODEL = "model.jstree",
|
|
32
|
-
DBLCLICK = "dblclick.jstree"
|
|
32
|
+
DBLCLICK = "dblclick.jstree",
|
|
33
|
+
DROP = "drop.vakata.jstree"
|
|
33
34
|
}
|
|
34
35
|
export declare enum NODE_TYPE {
|
|
35
36
|
FOLDER = "folder",
|
package/dist/src/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ import { ActionHandlerResult } from './controls/ActionHandler/ActionHandlerResul
|
|
|
27
27
|
import { ActionHandlerItem } from './controls/ActionHandler/ActionHandlerItem';
|
|
28
28
|
import * as ACTION_HANDLER from './controls/ActionHandler/ActionHandlerConstants';
|
|
29
29
|
import { View } from './controls/View/View';
|
|
30
|
+
import { TabButtonGroup } from './controls/TabButtonGroup/TabButtonGroup';
|
|
30
31
|
import { TabGroup } from './controls/TabGroup/TabGroup';
|
|
31
32
|
import { TabItem } from './controls/TabGroup/TabItem';
|
|
32
33
|
import { ControlGroup } from './controls/ControlGroup/ControlGroup';
|
|
@@ -57,6 +58,7 @@ import { CommandMenuSubItem } from './controls/CommandMenu/CommandMenuSubItem';
|
|
|
57
58
|
import { Sidebar } from './controls/Sidebar/Sidebar';
|
|
58
59
|
import { SidebarItem } from './controls/Sidebar/SidebarItem';
|
|
59
60
|
import { SidebarSection } from './controls/Sidebar/SidebarSection';
|
|
61
|
+
import * as SIDEBAR from './controls/Sidebar/SidebarConstants';
|
|
60
62
|
import { TaskTile } from './controls/TaskTile/TaskTile';
|
|
61
63
|
import { Alert } from './controls/Alert/Alert';
|
|
62
64
|
import * as ALERT from './controls/Alert/AlertConstants';
|
|
@@ -75,6 +77,7 @@ import { ActivityItem, ActivityItemProps } from './controls/ActivityItem/Activit
|
|
|
75
77
|
import { ActivityMessage } from './controls/ActivityItem/ActivityMessage';
|
|
76
78
|
import { Image } from './controls/Image/Image';
|
|
77
79
|
import { EVENT } from './constants/Event';
|
|
80
|
+
import { KEY_CODE } from './constants/KeyCode';
|
|
78
81
|
import { CONTROL } from './constants/Control';
|
|
79
82
|
import { UNIT } from './constants/Unit';
|
|
80
83
|
import { ScrollBar } from './controls/ScrollBar/ScrollBar';
|
|
@@ -82,6 +85,9 @@ import { MessageInput } from './controls/MessageInput/MessageInput';
|
|
|
82
85
|
import { MessageInputRef } from './controls/MessageInput/MessageInputRef';
|
|
83
86
|
import { ImagePicker } from './controls/ImagePicker/ImagePicker';
|
|
84
87
|
import { Criterion } from './controls/Criterion/Criterion';
|
|
88
|
+
import { EditableFieldIterator } from './controls/EditableFieldIterator/EditableFieldIterator';
|
|
89
|
+
import { CriterionFieldIterator } from './controls/CriterionFieldIterator/CriterionFieldIterator';
|
|
90
|
+
import { AddFieldButton } from './controls/AddFieldButton/AddFieldButton';
|
|
85
91
|
import { SearchCriterion } from './controls/Search/SearchCriterion';
|
|
86
92
|
import { Search } from './controls/Search/Search';
|
|
87
93
|
import { FieldIterator } from './controls/FieldIterator/FieldIterator';
|
|
@@ -145,6 +151,11 @@ import { DxfViewerContext } from './controls/DxfViewer/DxfViewerContext';
|
|
|
145
151
|
import { ErrorMessage } from './controls/ErrorMessage/ErrorMessage';
|
|
146
152
|
import { Select } from './controls/Select/Select';
|
|
147
153
|
import { CopyButton } from './controls/CopyButton/CopyButton';
|
|
154
|
+
import { Switch } from './controls/Switch/Switch';
|
|
155
|
+
import { EditableList } from './controls/EditableList/EditableList';
|
|
156
|
+
import { ReorderableList } from './controls/ReorderableList/ReorderableList';
|
|
157
|
+
import { CheckboxReorderableList } from './controls/CheckboxReorderableList/CheckboxReorderableList';
|
|
158
|
+
import { PinButton } from './controls/PinButton/PinButton';
|
|
148
159
|
export { Breadcrumbs };
|
|
149
160
|
export { TopLevelMenu };
|
|
150
161
|
export { TreeView, TreeViewContext, TREE_VIEW, TreeViewProps, JsTreeViewNode };
|
|
@@ -154,6 +165,7 @@ export { TelerikUploader, TelerikUploaderContext, TelerikUploaderContextImpl, Te
|
|
|
154
165
|
export { ComponentLoader, ComponentLoaderContextImpl, ComponentLoaderContext };
|
|
155
166
|
export { ActionHandler, ActionHandlerResult, ActionHandlerItem, ACTION_HANDLER };
|
|
156
167
|
export { View };
|
|
168
|
+
export { TabButtonGroup };
|
|
157
169
|
export { TabGroup };
|
|
158
170
|
export { ControlGroup, TabItem };
|
|
159
171
|
export { PdfViewer, PdfViewerContext };
|
|
@@ -166,7 +178,7 @@ export { Button, ButtonProps };
|
|
|
166
178
|
export { Label };
|
|
167
179
|
export { LookupPicker, LookupPickerProps };
|
|
168
180
|
export { CommandMenu, CommandMenuButton, CommandMenuLookupPicker, CommandMenuDropdownButton, CommandMenuSubItem };
|
|
169
|
-
export { Sidebar, SidebarItem, SidebarSection };
|
|
181
|
+
export { Sidebar, SidebarItem, SidebarSection, SIDEBAR };
|
|
170
182
|
export { TaskTile };
|
|
171
183
|
export { Alert, ALERT };
|
|
172
184
|
export { Dialog, DialogProps, DialogContent, DialogFooter };
|
|
@@ -180,10 +192,14 @@ export { Activity };
|
|
|
180
192
|
export { ActivityItem, ActivityItemProps, ActivityMessage };
|
|
181
193
|
export { Image };
|
|
182
194
|
export { EVENT };
|
|
195
|
+
export { KEY_CODE };
|
|
183
196
|
export { ScrollBar };
|
|
184
197
|
export { MessageInput, MessageInputRef };
|
|
185
198
|
export { ImagePicker };
|
|
186
199
|
export { Criterion };
|
|
200
|
+
export { EditableFieldIterator };
|
|
201
|
+
export { CriterionFieldIterator };
|
|
202
|
+
export { AddFieldButton };
|
|
187
203
|
export { Search, SearchCriterion };
|
|
188
204
|
export { FieldIterator, FieldIteratorRef };
|
|
189
205
|
export { Tooltip, TOOLTIP };
|
|
@@ -233,3 +249,8 @@ export { DxfViewer, DxfViewerContext };
|
|
|
233
249
|
export { ErrorMessage };
|
|
234
250
|
export { Select };
|
|
235
251
|
export { CopyButton };
|
|
252
|
+
export { Switch };
|
|
253
|
+
export { EditableList };
|
|
254
|
+
export { ReorderableList };
|
|
255
|
+
export { CheckboxReorderableList };
|
|
256
|
+
export { PinButton };
|