@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.57.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": "c77cf358d4514a7230f8c85515eba42ef015cf55"
40
+ "gitHead": "8d8d49f8a582b003f4c86d0c7849e839f88f1c13"
41
41
  }
@@ -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
+ };
@@ -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
- isGridValid(): boolean;
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
@@ -6,7 +6,7 @@ export declare class SelectMultiple extends Select implements ISelectMultiple {
6
6
  /**
7
7
  * Selected items that were added to datasource
8
8
  */
9
- private insertedValues;
9
+ insertedValues: IDictionary<any>[];
10
10
  /**
11
11
  * Inserted values that were unselected
12
12
  */