@zeedhi/common 1.57.1 → 1.58.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/LICENSE +23 -23
- package/README.md +9 -9
- package/dist/zd-common.esm.js +8386 -8354
- package/dist/zd-common.umd.js +8385 -8353
- package/package.json +2 -2
- package/rollup.scss.config.js +14 -14
- package/tsconfig.eslint.json +8 -8
- package/types/components/zd-form/form.d.ts +0 -7
- package/types/components/zd-grid/grid-column.d.ts +2 -6
- package/types/components/zd-grid/grid-editable.d.ts +10 -4
- package/types/components/zd-select-multiple/select-multiple.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.58.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": "8d8d49f8a582b003f4c86d0c7849e839f88f1c13"
|
|
41
41
|
}
|
package/rollup.scss.config.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import scss from 'rollup-plugin-scss';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
input: './src/styles/index.scss',
|
|
5
|
-
output: {
|
|
6
|
-
format: 'esm',
|
|
7
|
-
},
|
|
8
|
-
plugins: [
|
|
9
|
-
scss({
|
|
10
|
-
output: 'dist/style.css',
|
|
11
|
-
outputStyle: 'compressed',
|
|
12
|
-
}),
|
|
13
|
-
],
|
|
14
|
-
};
|
|
1
|
+
import scss from 'rollup-plugin-scss';
|
|
2
|
+
|
|
3
|
+
export default {
|
|
4
|
+
input: './src/styles/index.scss',
|
|
5
|
+
output: {
|
|
6
|
+
format: 'esm',
|
|
7
|
+
},
|
|
8
|
+
plugins: [
|
|
9
|
+
scss({
|
|
10
|
+
output: 'dist/style.css',
|
|
11
|
+
outputStyle: 'compressed',
|
|
12
|
+
}),
|
|
13
|
+
],
|
|
14
|
+
};
|
package/tsconfig.eslint.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
{
|
|
2
|
-
// extend your base config so you don't have to redefine your compilerOptions
|
|
3
|
-
"extends": "./tsconfig.json",
|
|
4
|
-
"include": [
|
|
5
|
-
"./src/**/*.ts",
|
|
6
|
-
"./tests/**/*.ts",
|
|
7
|
-
],
|
|
8
|
-
"exclude": ["node_modules"]
|
|
1
|
+
{
|
|
2
|
+
// extend your base config so you don't have to redefine your compilerOptions
|
|
3
|
+
"extends": "./tsconfig.json",
|
|
4
|
+
"include": [
|
|
5
|
+
"./src/**/*.ts",
|
|
6
|
+
"./tests/**/*.ts",
|
|
7
|
+
],
|
|
8
|
+
"exclude": ["node_modules"]
|
|
9
9
|
}
|
|
@@ -70,17 +70,10 @@ export declare class Form extends ComponentRender implements IForm {
|
|
|
70
70
|
componentId?: number | undefined;
|
|
71
71
|
cssClass?: string | undefined;
|
|
72
72
|
cssStyle?: string | object | undefined;
|
|
73
|
-
/**
|
|
74
|
-
* Children component structure if the component has children.
|
|
75
|
-
*/
|
|
76
73
|
events?: import("..").IComponentEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
77
74
|
directives?: import("..").IComponentDirectives | undefined;
|
|
78
75
|
isVisible?: string | boolean | undefined;
|
|
79
76
|
dark?: boolean | undefined;
|
|
80
|
-
/**
|
|
81
|
-
* Applies the align-items css property.
|
|
82
|
-
* Available options are start, center, end, space-between, space-around and stretch.
|
|
83
|
-
*/
|
|
84
77
|
light?: boolean | undefined;
|
|
85
78
|
keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
86
79
|
name: string;
|
|
@@ -18,9 +18,6 @@ export declare class GridColumn extends Column implements IGridColumn {
|
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
children?: import("..").IComponentRender[] | undefined;
|
|
20
20
|
component: string;
|
|
21
|
-
/**
|
|
22
|
-
* Base class for Grid column
|
|
23
|
-
*/
|
|
24
21
|
componentId?: number | undefined;
|
|
25
22
|
cssClass?: string | undefined;
|
|
26
23
|
cssStyle?: string | object | undefined;
|
|
@@ -29,12 +26,11 @@ export declare class GridColumn extends Column implements IGridColumn {
|
|
|
29
26
|
isVisible?: string | boolean | undefined;
|
|
30
27
|
dark?: boolean | undefined;
|
|
31
28
|
light?: boolean | undefined;
|
|
32
|
-
|
|
29
|
+
keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
30
|
+
name: string; /**
|
|
33
31
|
* Creates a new Grid Column.
|
|
34
32
|
* @param props Grid column properties
|
|
35
33
|
*/
|
|
36
|
-
keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
|
|
37
|
-
name: string;
|
|
38
34
|
parent?: import("..").Component | undefined;
|
|
39
35
|
}[];
|
|
40
36
|
/**
|
|
@@ -122,7 +122,7 @@ export declare class GridEditable extends Grid implements IGridEditable {
|
|
|
122
122
|
* @param column Column
|
|
123
123
|
* @param row Row
|
|
124
124
|
*/
|
|
125
|
-
isValid(column: IGridColumnEditable, row: IDictionary): boolean;
|
|
125
|
+
isValid(column: IGridColumnEditable, row: IDictionary, revalidate?: boolean): boolean;
|
|
126
126
|
private newRowIdentifier;
|
|
127
127
|
/**
|
|
128
128
|
* Cancels all edited rows and enable grid components
|
|
@@ -132,15 +132,21 @@ export declare class GridEditable extends Grid implements IGridEditable {
|
|
|
132
132
|
private addDataRow;
|
|
133
133
|
/**
|
|
134
134
|
* Saves all edited rows if they are valid
|
|
135
|
+
* @param revalidate Defines if the fields should be revalidated
|
|
135
136
|
* @throws Will throw when it finds an invalid row
|
|
136
137
|
*/
|
|
137
|
-
saveEditedRows(): Promise<void[]>;
|
|
138
|
+
saveEditedRows(revalidate?: boolean): Promise<void[]>;
|
|
138
139
|
/**
|
|
139
140
|
* Retrieves all edited rows if they are valid
|
|
141
|
+
* @param revalidate Defines if the fields should be revalidated
|
|
140
142
|
* @throws Will throw when it finds an invalid row
|
|
141
143
|
*/
|
|
142
|
-
getEditedRows(): IDictionary<any>[];
|
|
143
|
-
|
|
144
|
+
getEditedRows(revalidate?: boolean): IDictionary<any>[];
|
|
145
|
+
/**
|
|
146
|
+
* Checks whether the grid is valid or not
|
|
147
|
+
* @param revalidate Defines if the fields should be revalidated
|
|
148
|
+
*/
|
|
149
|
+
isGridValid(revalidate?: boolean): boolean;
|
|
144
150
|
/**
|
|
145
151
|
* Adds new row to the datasource data and pushes it to the editedRows
|
|
146
152
|
* @param row Row
|