@zeedhi/common 1.38.0 → 1.40.0
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/dist/style.css +1 -1
- package/dist/zd-common.esm.js +590 -169
- package/dist/zd-common.umd.js +591 -168
- package/package.json +2 -2
- package/types/components/zd-alert/alert.d.ts +2 -0
- package/types/components/zd-breadcrumbs/breadcrumbs.d.ts +0 -8
- package/types/components/zd-button/button.d.ts +0 -8
- package/types/components/zd-button/interfaces.d.ts +0 -2
- package/types/components/zd-button-group/button-group.d.ts +0 -8
- package/types/components/zd-button-group/interfaces.d.ts +0 -2
- package/types/components/zd-card/card.d.ts +0 -8
- package/types/components/zd-card/interfaces.d.ts +0 -2
- package/types/components/zd-carousel/carousel.d.ts +0 -8
- package/types/components/zd-carousel/interfaces.d.ts +0 -2
- package/types/components/zd-component/component.d.ts +8 -0
- package/types/components/zd-component/interfaces.d.ts +2 -0
- package/types/components/zd-divider/divider.d.ts +0 -8
- package/types/components/zd-divider/interfaces.d.ts +0 -2
- package/types/components/zd-footer/footer.d.ts +0 -8
- package/types/components/zd-footer/interfaces.d.ts +0 -2
- package/types/components/zd-form/form.d.ts +10 -1
- package/types/components/zd-grid/grid-column.d.ts +2 -0
- package/types/components/zd-grid/grid-editable.d.ts +1 -1
- package/types/components/zd-grid/grid.d.ts +4 -0
- package/types/components/zd-grid/interfaces.d.ts +1 -0
- package/types/components/zd-header/header.d.ts +0 -8
- package/types/components/zd-icon/icon.d.ts +0 -8
- package/types/components/zd-icon/interfaces.d.ts +0 -2
- package/types/components/zd-input/input.d.ts +0 -8
- package/types/components/zd-iterable/column.d.ts +4 -2
- package/types/components/zd-list/interfaces.d.ts +0 -2
- package/types/components/zd-list/list.d.ts +0 -8
- package/types/components/zd-login/interfaces.d.ts +0 -1
- package/types/components/zd-login/login.d.ts +0 -4
- package/types/components/zd-menu/interfaces.d.ts +0 -1
- package/types/components/zd-menu/menu.d.ts +0 -4
- package/types/components/zd-progress/progress.d.ts +0 -8
- package/types/components/zd-select/select.d.ts +1 -0
- package/types/components/zd-select-multiple/select-multiple.d.ts +4 -0
- package/types/components/zd-select-tree/interfaces.d.ts +1 -0
- package/types/components/zd-select-tree/select-tree.d.ts +13 -1
- package/types/components/zd-select-tree-multiple/select-tree-multiple.d.ts +4 -0
- package/types/components/zd-steppers/interfaces.d.ts +0 -2
- package/types/components/zd-steppers/steppers.d.ts +0 -8
- package/types/components/zd-tree-grid/interfaces.d.ts +3 -1
- package/types/components/zd-tree-grid/tree-grid-editable.d.ts +4 -3
- package/types/utils/report/index.d.ts +2 -0
- package/types/utils/report/report-type/base-report.d.ts +3 -1
- package/types/utils/report/report-type/interfaces.d.ts +8 -2
- package/types/utils/report/report-type/xls-report.d.ts +1 -0
- package/types/utils/report/report-type/xls2-report.d.ts +16 -0
- package/types/utils/report/report-type/xls3-report.d.ts +16 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.40.0",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -37,5 +37,5 @@
|
|
|
37
37
|
"lodash.times": "^4.3.2",
|
|
38
38
|
"mockdate": "^3.0.2"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "3dd3bf4a5646a8b7f6b7813b16ca0fbed39c98a8"
|
|
41
41
|
}
|
|
@@ -4,10 +4,6 @@ import { ComponentRender } from '../zd-component/component-render';
|
|
|
4
4
|
* Base class for Breadcrumbs component.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Breadcrumbs extends ComponentRender implements IBreadcrumbs {
|
|
7
|
-
/**
|
|
8
|
-
* Applies the dark theme variant to the component.
|
|
9
|
-
*/
|
|
10
|
-
dark: boolean;
|
|
11
7
|
/**
|
|
12
8
|
* Specifies the dividing string between items.
|
|
13
9
|
*/
|
|
@@ -24,10 +20,6 @@ export declare class Breadcrumbs extends ComponentRender implements IBreadcrumbs
|
|
|
24
20
|
* Increase the font-size of the breadcrumb item text to 16px.
|
|
25
21
|
*/
|
|
26
22
|
large: boolean;
|
|
27
|
-
/**
|
|
28
|
-
* Applies the light theme variant to the component.
|
|
29
|
-
*/
|
|
30
|
-
light: boolean;
|
|
31
23
|
/**
|
|
32
24
|
* Decrease the font-size of the breadcrumb item text to 12px.
|
|
33
25
|
*/
|
|
@@ -22,10 +22,6 @@ export declare class Button extends ComponentRender implements IButton {
|
|
|
22
22
|
* It can be the name of material or css color in hexa
|
|
23
23
|
*/
|
|
24
24
|
color: string;
|
|
25
|
-
/**
|
|
26
|
-
* Applies the dark theme variant to the button
|
|
27
|
-
*/
|
|
28
|
-
dark: boolean;
|
|
29
25
|
/**
|
|
30
26
|
* Removes the ability to click or target the button
|
|
31
27
|
*/
|
|
@@ -71,10 +67,6 @@ export declare class Button extends ComponentRender implements IButton {
|
|
|
71
67
|
* This should be used with the absolute or fixed props
|
|
72
68
|
*/
|
|
73
69
|
left: boolean;
|
|
74
|
-
/**
|
|
75
|
-
* Applies the light theme variant to the button
|
|
76
|
-
*/
|
|
77
|
-
light: boolean;
|
|
78
70
|
/**
|
|
79
71
|
* Makes the background transparent and applies a thin border
|
|
80
72
|
*/
|
|
@@ -8,7 +8,6 @@ export interface IButton extends IComponentRender {
|
|
|
8
8
|
block?: boolean;
|
|
9
9
|
bottom?: boolean;
|
|
10
10
|
color?: string;
|
|
11
|
-
dark?: boolean;
|
|
12
11
|
disabled?: boolean;
|
|
13
12
|
events?: IButtonEvents;
|
|
14
13
|
fab?: boolean;
|
|
@@ -20,7 +19,6 @@ export interface IButton extends IComponentRender {
|
|
|
20
19
|
label?: string;
|
|
21
20
|
large?: boolean;
|
|
22
21
|
left?: boolean;
|
|
23
|
-
light?: boolean;
|
|
24
22
|
outline?: boolean;
|
|
25
23
|
reverse?: boolean;
|
|
26
24
|
right?: boolean;
|
|
@@ -22,10 +22,6 @@ export declare class ButtonGroup extends ComponentRender implements IButtonGroup
|
|
|
22
22
|
* It can be the name of material or css color in hexa
|
|
23
23
|
*/
|
|
24
24
|
color: string;
|
|
25
|
-
/**
|
|
26
|
-
* Applies the dark theme variant to the component.
|
|
27
|
-
*/
|
|
28
|
-
dark: boolean;
|
|
29
25
|
/**
|
|
30
26
|
* Reduces the button size and padding.
|
|
31
27
|
*/
|
|
@@ -35,10 +31,6 @@ export declare class ButtonGroup extends ComponentRender implements IButtonGroup
|
|
|
35
31
|
* space between the buttons
|
|
36
32
|
*/
|
|
37
33
|
group: boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Applies the light theme variant to the component.
|
|
40
|
-
*/
|
|
41
|
-
light: boolean;
|
|
42
34
|
/**
|
|
43
35
|
* Applies mandatory selected button
|
|
44
36
|
*/
|
|
@@ -11,11 +11,9 @@ export interface IButtonGroup extends IComponentRender {
|
|
|
11
11
|
backgroundColor?: string;
|
|
12
12
|
borderless?: boolean;
|
|
13
13
|
color?: string;
|
|
14
|
-
dark?: boolean;
|
|
15
14
|
dense?: boolean;
|
|
16
15
|
events?: IButtonGroupEvents;
|
|
17
16
|
group?: boolean;
|
|
18
|
-
light?: boolean;
|
|
19
17
|
mandatory?: boolean;
|
|
20
18
|
multiple?: boolean;
|
|
21
19
|
rounded?: boolean;
|
|
@@ -16,10 +16,6 @@ export declare class Card extends ComponentRender implements ICard {
|
|
|
16
16
|
* Applies specified color to the control. It can be the name of material color
|
|
17
17
|
*/
|
|
18
18
|
color: string;
|
|
19
|
-
/**
|
|
20
|
-
* Applies the dark theme variant to the component
|
|
21
|
-
*/
|
|
22
|
-
dark: boolean;
|
|
23
19
|
/**
|
|
24
20
|
* Removes the ability to click or target the component
|
|
25
21
|
*/
|
|
@@ -53,10 +49,6 @@ export declare class Card extends ComponentRender implements ICard {
|
|
|
53
49
|
* Specifies an image background for the card
|
|
54
50
|
*/
|
|
55
51
|
img: string;
|
|
56
|
-
/**
|
|
57
|
-
* Applies the light theme variant to the component
|
|
58
|
-
*/
|
|
59
|
-
light: boolean;
|
|
60
52
|
/**
|
|
61
53
|
* Designates that the card is a link
|
|
62
54
|
*/
|
|
@@ -9,14 +9,12 @@ export interface ICard extends IComponentRender {
|
|
|
9
9
|
color?: string;
|
|
10
10
|
elevation?: number | string;
|
|
11
11
|
events?: ICardEvents;
|
|
12
|
-
dark?: boolean;
|
|
13
12
|
disabled?: boolean;
|
|
14
13
|
flat?: boolean;
|
|
15
14
|
height?: number | string;
|
|
16
15
|
hover?: boolean;
|
|
17
16
|
href?: string;
|
|
18
17
|
img?: string;
|
|
19
|
-
light?: boolean;
|
|
20
18
|
link?: boolean;
|
|
21
19
|
maxHeight?: number | string;
|
|
22
20
|
maxWidth?: number | string;
|
|
@@ -26,10 +26,6 @@ export declare class Carousel extends ComponentRender implements ICarousel {
|
|
|
26
26
|
* Current slide being displayed
|
|
27
27
|
*/
|
|
28
28
|
currentSlide: number;
|
|
29
|
-
/**
|
|
30
|
-
* Applies the dark theme variant to the carousel pagination
|
|
31
|
-
*/
|
|
32
|
-
dark: boolean;
|
|
33
29
|
/**
|
|
34
30
|
* Events registered to the carousel
|
|
35
31
|
*/
|
|
@@ -60,10 +56,6 @@ export declare class Carousel extends ComponentRender implements ICarousel {
|
|
|
60
56
|
* Allows controlling the carousel using the keyboard arrow keys
|
|
61
57
|
*/
|
|
62
58
|
keysControl: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Applies the light theme variant to the carousel
|
|
65
|
-
*/
|
|
66
|
-
light: boolean;
|
|
67
59
|
/**
|
|
68
60
|
* Allows controlling the carousel using mouse drag
|
|
69
61
|
*/
|
|
@@ -18,13 +18,11 @@ export interface ICarousel extends IComponentRender {
|
|
|
18
18
|
buttonsOutside?: boolean;
|
|
19
19
|
center?: boolean;
|
|
20
20
|
currentSlide?: number;
|
|
21
|
-
dark?: boolean;
|
|
22
21
|
height?: number | string;
|
|
23
22
|
infiniteScroll?: boolean;
|
|
24
23
|
initialSlide?: number;
|
|
25
24
|
interval?: number;
|
|
26
25
|
keysControl?: boolean;
|
|
27
|
-
light?: boolean;
|
|
28
26
|
mouseControl?: boolean;
|
|
29
27
|
nextButton?: IButton;
|
|
30
28
|
fractionPagination?: boolean;
|
|
@@ -34,6 +34,14 @@ export declare class Component implements IComponent {
|
|
|
34
34
|
* Defines component name.
|
|
35
35
|
*/
|
|
36
36
|
name: string;
|
|
37
|
+
/**
|
|
38
|
+
* Applies the dark theme variant to the component.
|
|
39
|
+
*/
|
|
40
|
+
dark: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Applies the light theme variant to the component.
|
|
43
|
+
*/
|
|
44
|
+
light: boolean;
|
|
37
45
|
/**
|
|
38
46
|
* Parent component instance. This property should be used when is
|
|
39
47
|
* necessary create dynamic components.
|
|
@@ -4,18 +4,10 @@ import { ComponentRender } from '../zd-component/component-render';
|
|
|
4
4
|
* Base class for Divider component.
|
|
5
5
|
*/
|
|
6
6
|
export declare class Divider extends ComponentRender implements IDivider {
|
|
7
|
-
/**
|
|
8
|
-
* Applies the dark theme variant to the component.
|
|
9
|
-
*/
|
|
10
|
-
dark: boolean;
|
|
11
7
|
/**
|
|
12
8
|
* Adds indentation (72px) for normal dividers, reduces max height for vertical.
|
|
13
9
|
*/
|
|
14
10
|
inset: boolean;
|
|
15
|
-
/**
|
|
16
|
-
* Applies the light theme variant to the component.
|
|
17
|
-
*/
|
|
18
|
-
light: boolean;
|
|
19
11
|
/**
|
|
20
12
|
* Displays dividers vertically.
|
|
21
13
|
*/
|
|
@@ -3,8 +3,6 @@ import { Divider } from './divider';
|
|
|
3
3
|
import { IComponentRender } from '../zd-component/interfaces';
|
|
4
4
|
export declare type IDividerEvent = IEventParam<Divider>;
|
|
5
5
|
export interface IDivider extends IComponentRender {
|
|
6
|
-
dark?: boolean;
|
|
7
6
|
inset?: boolean;
|
|
8
|
-
light?: boolean;
|
|
9
7
|
vertical?: boolean;
|
|
10
8
|
}
|
|
@@ -21,10 +21,6 @@ export declare class Footer extends ComponentRender implements IFooter {
|
|
|
21
21
|
* Applies specified color to the control. It can be the name of material or css color in hexa.
|
|
22
22
|
*/
|
|
23
23
|
color: string;
|
|
24
|
-
/**
|
|
25
|
-
* Applies the dark theme variant to footer.
|
|
26
|
-
*/
|
|
27
|
-
dark: boolean;
|
|
28
24
|
/**
|
|
29
25
|
* Events registered to the footer.
|
|
30
26
|
*/
|
|
@@ -45,10 +41,6 @@ export declare class Footer extends ComponentRender implements IFooter {
|
|
|
45
41
|
* Render components on the left of footer.
|
|
46
42
|
*/
|
|
47
43
|
leftSlot: IComponentRender[];
|
|
48
|
-
/**
|
|
49
|
-
* Applies the light theme variant to the footer.
|
|
50
|
-
*/
|
|
51
|
-
light: boolean;
|
|
52
44
|
/**
|
|
53
45
|
* Sets the maximum height for the footer.
|
|
54
46
|
*/
|
|
@@ -12,12 +12,10 @@ export interface IFooter extends IComponentRender {
|
|
|
12
12
|
app?: boolean;
|
|
13
13
|
centerSlot?: IComponentRender[];
|
|
14
14
|
color?: string;
|
|
15
|
-
dark?: boolean;
|
|
16
15
|
fixed?: boolean;
|
|
17
16
|
height?: number | string;
|
|
18
17
|
inset?: boolean;
|
|
19
18
|
leftSlot?: IComponentRender[];
|
|
20
|
-
light?: boolean;
|
|
21
19
|
maxHeight?: number | string;
|
|
22
20
|
maxWidth?: number | string;
|
|
23
21
|
minHeight?: number | string;
|
|
@@ -62,13 +62,22 @@ export declare class Form extends ComponentRender implements IForm {
|
|
|
62
62
|
get childrenProps(): {
|
|
63
63
|
[key: string]: any;
|
|
64
64
|
children?: import("..").IComponentRender[] | undefined;
|
|
65
|
-
component: string;
|
|
65
|
+
component: string; /**
|
|
66
|
+
* Applies the justify-content css property.
|
|
67
|
+
* Available options are start, center, end, space-between and space-around.
|
|
68
|
+
*/
|
|
66
69
|
componentId?: number | undefined;
|
|
67
70
|
cssClass?: string | undefined;
|
|
68
71
|
cssStyle?: string | object | undefined;
|
|
69
72
|
events?: import("..").IComponentEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
70
73
|
isVisible?: string | boolean | undefined;
|
|
74
|
+
dark?: boolean | undefined;
|
|
75
|
+
light?: boolean | undefined;
|
|
71
76
|
keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
77
|
+
/**
|
|
78
|
+
* Applies the align-items css property.
|
|
79
|
+
* Available options are start, center, end, space-between, space-around and stretch.
|
|
80
|
+
*/
|
|
72
81
|
name: string;
|
|
73
82
|
parent?: import("..").Component | undefined;
|
|
74
83
|
}[];
|
|
@@ -23,6 +23,8 @@ export declare class GridColumn extends Column implements IGridColumn {
|
|
|
23
23
|
cssStyle?: string | object | undefined;
|
|
24
24
|
events?: import("..").IComponentEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
25
25
|
isVisible?: string | boolean | undefined;
|
|
26
|
+
dark?: boolean | undefined;
|
|
27
|
+
light?: boolean | undefined;
|
|
26
28
|
keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
27
29
|
name: string;
|
|
28
30
|
parent?: import("..").Component | undefined;
|
|
@@ -78,7 +78,7 @@ export declare class GridEditable extends Grid implements IGridEditable {
|
|
|
78
78
|
* @param cellProps Column conditional props
|
|
79
79
|
* @param events Component events
|
|
80
80
|
*/
|
|
81
|
-
getEditableComponent(column: IGridColumnEditable, row: IDictionary<any>, cellProps: IDictionary<any
|
|
81
|
+
getEditableComponent(column: IGridColumnEditable, row: IDictionary<any>, cellProps: IDictionary<any> | null, events: any): {
|
|
82
82
|
name: string;
|
|
83
83
|
parent: GridEditable;
|
|
84
84
|
align: "left" | "center" | "right" | undefined;
|
|
@@ -75,6 +75,10 @@ export declare class Grid extends Iterable implements IGrid {
|
|
|
75
75
|
* Color of the header background
|
|
76
76
|
*/
|
|
77
77
|
headerBackground: string;
|
|
78
|
+
/**
|
|
79
|
+
* Color of the header cell text color
|
|
80
|
+
*/
|
|
81
|
+
headerCellTextColor: string;
|
|
78
82
|
/**
|
|
79
83
|
* Available order types
|
|
80
84
|
* @public
|
|
@@ -21,10 +21,6 @@ export declare class Header extends ComponentRender implements IHeader {
|
|
|
21
21
|
* Applies specified color to the control. It can be the name of material or css color in hexa.
|
|
22
22
|
*/
|
|
23
23
|
color: string;
|
|
24
|
-
/**
|
|
25
|
-
* Applies the dark theme variant to header.
|
|
26
|
-
*/
|
|
27
|
-
dark: boolean;
|
|
28
24
|
/**
|
|
29
25
|
* Designates that the application menu positioned on the left is below the header.
|
|
30
26
|
*/
|
|
@@ -57,10 +53,6 @@ export declare class Header extends ComponentRender implements IHeader {
|
|
|
57
53
|
* Render components on the left of header.
|
|
58
54
|
*/
|
|
59
55
|
leftSlot: IComponentRender[];
|
|
60
|
-
/**
|
|
61
|
-
* Applies the light theme variant to the header.
|
|
62
|
-
*/
|
|
63
|
-
light: boolean;
|
|
64
56
|
/**
|
|
65
57
|
* Sets the maximum height for the header.
|
|
66
58
|
*/
|
|
@@ -9,10 +9,6 @@ export declare class Icon extends ComponentRender implements IIcon {
|
|
|
9
9
|
* (for example success or purple) or css color (#033 or rgba(255, 0, 0, 0.5)).
|
|
10
10
|
*/
|
|
11
11
|
color: string;
|
|
12
|
-
/**
|
|
13
|
-
* Applies the dark theme variant to the component.
|
|
14
|
-
*/
|
|
15
|
-
dark: boolean;
|
|
16
12
|
/**
|
|
17
13
|
* Makes icon smaller (20px)
|
|
18
14
|
*/
|
|
@@ -34,10 +30,6 @@ export declare class Icon extends ComponentRender implements IIcon {
|
|
|
34
30
|
* of a button when placed to the left of another element or text
|
|
35
31
|
*/
|
|
36
32
|
left: boolean;
|
|
37
|
-
/**
|
|
38
|
-
* Applies the light theme variant to the component.
|
|
39
|
-
*/
|
|
40
|
-
light: boolean;
|
|
41
33
|
/**
|
|
42
34
|
* Applies appropriate margins to the icon inside of
|
|
43
35
|
* a button when placed to the right of another element or text
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { IComponentRender } from '../zd-component/interfaces';
|
|
2
2
|
export interface IIcon extends IComponentRender {
|
|
3
3
|
color?: string;
|
|
4
|
-
dark?: boolean;
|
|
5
4
|
dense?: boolean;
|
|
6
5
|
disabled?: boolean;
|
|
7
6
|
large?: boolean;
|
|
8
7
|
left?: boolean;
|
|
9
|
-
light?: boolean;
|
|
10
8
|
right?: boolean;
|
|
11
9
|
size?: number | string;
|
|
12
10
|
small?: boolean;
|
|
@@ -30,10 +30,6 @@ export declare class Input extends ComponentRender implements IInput {
|
|
|
30
30
|
* It can be the name of material or css color in hexa.
|
|
31
31
|
*/
|
|
32
32
|
color: string;
|
|
33
|
-
/**
|
|
34
|
-
* Applies the dark theme variant to the input.
|
|
35
|
-
*/
|
|
36
|
-
dark: boolean;
|
|
37
33
|
/**
|
|
38
34
|
* Defines smaller input.
|
|
39
35
|
*/
|
|
@@ -54,10 +50,6 @@ export declare class Input extends ComponentRender implements IInput {
|
|
|
54
50
|
* Defines the input label.
|
|
55
51
|
*/
|
|
56
52
|
label: string;
|
|
57
|
-
/**
|
|
58
|
-
* Applies the light theme variant to the input.
|
|
59
|
-
*/
|
|
60
|
-
light: boolean;
|
|
61
53
|
/**
|
|
62
54
|
* Applies a custom character mask to the input.
|
|
63
55
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IDictionary, Datasource } from '@zeedhi/core';
|
|
1
|
+
import { IDictionary, Datasource, IEvents } from '@zeedhi/core';
|
|
2
2
|
import { IColumn, ColumnAlign, ColumnType } from './interfaces';
|
|
3
3
|
import { Component } from '../zd-component/component';
|
|
4
4
|
/**
|
|
@@ -69,7 +69,9 @@ export declare class Column extends Component implements IColumn {
|
|
|
69
69
|
* Apply conditions
|
|
70
70
|
* @param row Datasource row
|
|
71
71
|
*/
|
|
72
|
-
applyCondition(row: IDictionary<any
|
|
72
|
+
applyCondition(row: IDictionary<any>, factoredConditions?: IEvents<{
|
|
73
|
+
row: IDictionary<any>;
|
|
74
|
+
}>): IDictionary<any>;
|
|
73
75
|
/**
|
|
74
76
|
* Apply conditions on action columns
|
|
75
77
|
* @param row Datasource row
|
|
@@ -3,12 +3,10 @@ import { IComponentRender, IComponent } from '../zd-component/interfaces';
|
|
|
3
3
|
* Interface for list component
|
|
4
4
|
*/
|
|
5
5
|
export interface IList extends IComponentRender {
|
|
6
|
-
dark?: boolean;
|
|
7
6
|
dense?: boolean;
|
|
8
7
|
disabled?: boolean;
|
|
9
8
|
divided?: boolean;
|
|
10
9
|
items?: IListItem[];
|
|
11
|
-
light?: boolean;
|
|
12
10
|
threeLine?: boolean;
|
|
13
11
|
twoLine?: boolean;
|
|
14
12
|
color?: string;
|
|
@@ -9,10 +9,6 @@ export declare class List extends ComponentRender implements IList {
|
|
|
9
9
|
* It can be the name of material or css color in hexa or rgba.
|
|
10
10
|
*/
|
|
11
11
|
color?: string;
|
|
12
|
-
/**
|
|
13
|
-
* Applies the dark theme variant to the List.
|
|
14
|
-
*/
|
|
15
|
-
dark: boolean;
|
|
16
12
|
/**
|
|
17
13
|
* Create the list with smaller items.
|
|
18
14
|
*/
|
|
@@ -29,10 +25,6 @@ export declare class List extends ComponentRender implements IList {
|
|
|
29
25
|
* List items structure.
|
|
30
26
|
*/
|
|
31
27
|
items: IListItem[];
|
|
32
|
-
/**
|
|
33
|
-
* Applies the light theme variant to the List.
|
|
34
|
-
*/
|
|
35
|
-
light: boolean;
|
|
36
28
|
/**
|
|
37
29
|
* Increases the height of all the list items to better support three lines of text.
|
|
38
30
|
*/
|
|
@@ -22,10 +22,6 @@ export declare class Login extends ComponentRender implements ILogin {
|
|
|
22
22
|
* It can be the name of material or css color in hexa.
|
|
23
23
|
*/
|
|
24
24
|
color: string;
|
|
25
|
-
/**
|
|
26
|
-
* Applies the dark theme.
|
|
27
|
-
*/
|
|
28
|
-
dark: boolean;
|
|
29
25
|
/**
|
|
30
26
|
* Card position orientation.
|
|
31
27
|
*/
|
|
@@ -10,7 +10,6 @@ export declare type IMenuLinkEvents = IComponentEvents<IMenuLinkEvent>;
|
|
|
10
10
|
export interface IMenu extends IComponentRender {
|
|
11
11
|
app?: boolean | string;
|
|
12
12
|
clipped?: boolean | string;
|
|
13
|
-
dark?: boolean | string;
|
|
14
13
|
dense?: boolean | string;
|
|
15
14
|
fixed?: boolean | string;
|
|
16
15
|
floating?: boolean | string;
|
|
@@ -21,10 +21,6 @@ export declare class Menu extends ComponentRender implements IMenu {
|
|
|
21
21
|
* Defines if the menu should have a visible container
|
|
22
22
|
*/
|
|
23
23
|
floating: boolean | string;
|
|
24
|
-
/**
|
|
25
|
-
* Applies the dark theme variant to the menu.
|
|
26
|
-
*/
|
|
27
|
-
dark: boolean | string;
|
|
28
24
|
/**
|
|
29
25
|
* Create the menu with smaller items.
|
|
30
26
|
*/
|
|
@@ -17,10 +17,6 @@ export declare class Progress extends ComponentRender implements IProgress {
|
|
|
17
17
|
* Defines the value color
|
|
18
18
|
*/
|
|
19
19
|
color: string;
|
|
20
|
-
/**
|
|
21
|
-
* Applies the dark theme variant to the component
|
|
22
|
-
*/
|
|
23
|
-
dark: boolean;
|
|
24
20
|
/**
|
|
25
21
|
* Sets the height for the component
|
|
26
22
|
*/
|
|
@@ -29,10 +25,6 @@ export declare class Progress extends ComponentRender implements IProgress {
|
|
|
29
25
|
* Animates the component constantly
|
|
30
26
|
*/
|
|
31
27
|
indeterminate: boolean;
|
|
32
|
-
/**
|
|
33
|
-
* Applies the light theme variant to the component
|
|
34
|
-
*/
|
|
35
|
-
light: boolean;
|
|
36
28
|
/**
|
|
37
29
|
* Render components on the progress component
|
|
38
30
|
*/
|
|
@@ -28,6 +28,10 @@ export declare class SelectMultiple extends Select implements ISelectMultiple {
|
|
|
28
28
|
*/
|
|
29
29
|
get selectValue(): IDictionary<any>[];
|
|
30
30
|
set selectValue(rows: IDictionary<any>[]);
|
|
31
|
+
/**
|
|
32
|
+
* Removes item from array a and add it to array b if condition is satisfied
|
|
33
|
+
*/
|
|
34
|
+
private cutFromAToB;
|
|
31
35
|
protected setFieldValue(value: any[]): Promise<boolean>;
|
|
32
36
|
/**
|
|
33
37
|
* Set value accessors
|
|
@@ -68,6 +68,10 @@ export declare class SelectTree extends TextInput implements ISelectTree {
|
|
|
68
68
|
* Defines if field value should be an object
|
|
69
69
|
*/
|
|
70
70
|
returnObject: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* Prevents load select data when the input is focused
|
|
73
|
+
*/
|
|
74
|
+
preventLoadOnFocus: boolean;
|
|
71
75
|
/**
|
|
72
76
|
* Field used to make the item disabled
|
|
73
77
|
*/
|
|
@@ -84,11 +88,14 @@ export declare class SelectTree extends TextInput implements ISelectTree {
|
|
|
84
88
|
* Defines if should wait and not execute GET method when Datasource is created
|
|
85
89
|
*/
|
|
86
90
|
private lazyLoad;
|
|
91
|
+
selectValue: any;
|
|
87
92
|
/**
|
|
88
93
|
* Creates a new instance of SelectTree
|
|
89
94
|
* @param props
|
|
90
95
|
*/
|
|
91
96
|
constructor(props: ISelectTree);
|
|
97
|
+
focus(event: Event, element: HTMLElement): Promise<void>;
|
|
98
|
+
protected afterFocus(): Promise<void>;
|
|
92
99
|
private createDataStructure;
|
|
93
100
|
/** create nodes from datasource object */
|
|
94
101
|
createNodesFromDatasource(buildTree?: boolean): void;
|
|
@@ -122,5 +129,10 @@ export declare class SelectTree extends TextInput implements ISelectTree {
|
|
|
122
129
|
*/
|
|
123
130
|
searchInput(value: string, element?: HTMLElement): void;
|
|
124
131
|
get searchValue(): any;
|
|
125
|
-
|
|
132
|
+
protected clearRow(row: IDictionary<any>): {
|
|
133
|
+
[x: string]: any;
|
|
134
|
+
};
|
|
135
|
+
get value(): any;
|
|
136
|
+
set value(value: any);
|
|
137
|
+
setValue(value: any): void;
|
|
126
138
|
}
|
|
@@ -21,6 +21,7 @@ export declare class SelectTreeMultiple extends SelectTree implements ISelectTre
|
|
|
21
21
|
* Selected Nodes
|
|
22
22
|
*/
|
|
23
23
|
selectedNodes: ISelectTreeMultipleNode<IDictionary>[];
|
|
24
|
+
selectValue: any[];
|
|
24
25
|
/**
|
|
25
26
|
* Creates a new instance of Select Tree Multiple
|
|
26
27
|
* @param props
|
|
@@ -34,4 +35,7 @@ export declare class SelectTreeMultiple extends SelectTree implements ISelectTre
|
|
|
34
35
|
* Triggered deselecting an node
|
|
35
36
|
*/
|
|
36
37
|
deselect(node: ISelectTreeMultipleNode<IDictionary>, element?: HTMLElement): void;
|
|
38
|
+
get value(): any;
|
|
39
|
+
set value(value: any);
|
|
40
|
+
setValue(value: any): void;
|
|
37
41
|
}
|