@zeedhi/common 1.55.0 → 1.57.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.55.0",
3
+ "version": "1.57.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": "832a10a71ea046b631344b008e676c1706617cec"
40
+ "gitHead": "099b5a1c0726bb00c757de8985868b197d7a57ad"
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,10 +70,17 @@ 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
+ */
73
76
  events?: import("..").IComponentEvents<import("@zeedhi/core").IEventParam<any>> | undefined;
74
77
  directives?: import("..").IComponentDirectives | undefined;
75
78
  isVisible?: string | boolean | undefined;
76
79
  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
+ */
77
84
  light?: boolean | undefined;
78
85
  keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
79
86
  name: string;
@@ -18,6 +18,9 @@ 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
+ */
21
24
  componentId?: number | undefined;
22
25
  cssClass?: string | undefined;
23
26
  cssStyle?: string | object | undefined;
@@ -26,11 +29,12 @@ export declare class GridColumn extends Column implements IGridColumn {
26
29
  isVisible?: string | boolean | undefined;
27
30
  dark?: boolean | undefined;
28
31
  light?: boolean | undefined;
29
- keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
30
- name: string; /**
32
+ /**
31
33
  * Creates a new Grid Column.
32
34
  * @param props Grid column properties
33
35
  */
36
+ keyMap?: import("@zeedhi/core").IKeyMap<import("@zeedhi/core").IEventParam<any>> | undefined;
37
+ name: string;
34
38
  parent?: import("..").Component | undefined;
35
39
  }[];
36
40
  /**
@@ -7,8 +7,9 @@ import { Component } from '../zd-component/component';
7
7
  export declare class Column extends Component implements IColumn {
8
8
  align: ColumnAlign;
9
9
  label: string;
10
- maxWidth: string;
11
- minWidth: string;
10
+ width?: string;
11
+ maxWidth?: string;
12
+ minWidth?: string;
12
13
  mask: string;
13
14
  type?: ColumnType;
14
15
  sortable: boolean;
@@ -11,6 +11,7 @@ export declare type ColumnType = 'action';
11
11
  export interface IColumn extends IComponent {
12
12
  align?: ColumnAlign;
13
13
  label?: string;
14
+ width?: string;
14
15
  maxWidth?: string;
15
16
  minWidth?: string;
16
17
  overflow?: string | number;
@@ -12,4 +12,5 @@ export interface ISelectMultiple extends ISelect {
12
12
  showSelectAll?: boolean;
13
13
  events?: ISelectMultipleEvents;
14
14
  maxRows?: string | number;
15
+ limit?: number | null;
15
16
  }
@@ -19,6 +19,10 @@ export declare class SelectMultiple extends Select implements ISelectMultiple {
19
19
  * Max number of rows the component can have
20
20
  */
21
21
  maxRows?: string | number;
22
+ /**
23
+ * Limit the display of selected options. The rest will be hidden within the 'limitText' string
24
+ */
25
+ limit: number | null;
22
26
  protected afterFocus(): Promise<void>;
23
27
  private setCache;
24
28
  showSelectAll: boolean;
@@ -43,6 +43,17 @@ export declare class TreeGrid extends Grid implements ITreeGrid {
43
43
  * Build tree data
44
44
  */
45
45
  buildTree(doGet?: boolean): void;
46
+ /**
47
+ * This function takes an array of objects and updates the data in the tree.
48
+ * @param {IDictionary<any>[]} data - The data to be displayed in the tree.
49
+ */
50
+ updateData(data: IDictionary<any>[]): void;
51
+ /**
52
+ * The function deletes the selected rows from the database and then rebuilds the
53
+ * tree.
54
+ * @returns The response is an array of promises.
55
+ */
56
+ deleteRows(): Promise<any[]>;
46
57
  /**
47
58
  * Expands or collapses a row
48
59
  * @param row Row object