@zeedhi/common 1.78.1 → 1.79.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/zd-common.esm.js +48 -0
- package/dist/zd-common.umd.js +48 -0
- package/package.json +2 -2
- package/types/components/zd-col/col.d.ts +19 -0
- package/types/components/zd-col/interfaces.d.ts +4 -0
- package/types/components/zd-master-detail/interfaces.d.ts +4 -0
- package/types/components/zd-master-detail/master-detail.d.ts +19 -0
- package/types/components/zd-select-tree/interfaces.d.ts +1 -0
- package/types/components/zd-select-tree/select-tree.d.ts +1 -0
package/dist/zd-common.esm.js
CHANGED
|
@@ -2438,12 +2438,35 @@ class Col extends ComponentRender {
|
|
|
2438
2438
|
constructor(props) {
|
|
2439
2439
|
super(props);
|
|
2440
2440
|
this.cols = '12';
|
|
2441
|
+
/**
|
|
2442
|
+
* Defines the component height. Possible values for this property can be
|
|
2443
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2444
|
+
*/
|
|
2445
|
+
this.height = 'auto';
|
|
2446
|
+
/**
|
|
2447
|
+
* Defines the component min height. Possible values for this property can be
|
|
2448
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2449
|
+
*/
|
|
2450
|
+
this.minHeight = 'auto';
|
|
2451
|
+
/**
|
|
2452
|
+
* Defines the component max height. Possible values for this property can be
|
|
2453
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2454
|
+
*/
|
|
2455
|
+
this.maxHeight = 'none';
|
|
2456
|
+
/**
|
|
2457
|
+
* Set component height to fill all space available
|
|
2458
|
+
*/
|
|
2459
|
+
this.fillHeight = false;
|
|
2441
2460
|
this.cols = this.getInitValue('cols', props.cols, this.cols);
|
|
2442
2461
|
this.sm = this.getInitValue('sm', props.sm, this.sm);
|
|
2443
2462
|
this.md = this.getInitValue('md', props.md, this.md);
|
|
2444
2463
|
this.lg = this.getInitValue('lg', props.lg, this.lg);
|
|
2445
2464
|
this.xl = this.getInitValue('xl', props.xl, this.xl);
|
|
2446
2465
|
this.offset = this.getInitValue('offset', props.offset, this.offset);
|
|
2466
|
+
this.height = this.getInitValue('height', props.height, this.height);
|
|
2467
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
2468
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
2469
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
2447
2470
|
this.createAccessors();
|
|
2448
2471
|
}
|
|
2449
2472
|
}
|
|
@@ -8290,8 +8313,32 @@ class MasterDetail extends ComponentRender {
|
|
|
8290
8313
|
* Defines whether the relationship will be created on mounted
|
|
8291
8314
|
*/
|
|
8292
8315
|
this.lazyRelate = false;
|
|
8316
|
+
/**
|
|
8317
|
+
* Defines the component height. Possible values for this property can be
|
|
8318
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
8319
|
+
*/
|
|
8320
|
+
this.height = 'auto';
|
|
8321
|
+
/**
|
|
8322
|
+
* Defines the component min height. Possible values for this property can be
|
|
8323
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
8324
|
+
*/
|
|
8325
|
+
this.minHeight = 'auto';
|
|
8326
|
+
/**
|
|
8327
|
+
* Defines the component max height. Possible values for this property can be
|
|
8328
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
8329
|
+
*/
|
|
8330
|
+
this.maxHeight = 'none';
|
|
8331
|
+
/**
|
|
8332
|
+
* Set component height to fill all space available
|
|
8333
|
+
*/
|
|
8334
|
+
this.fillHeight = false;
|
|
8293
8335
|
this.config = this.getInitValue('config', props.config, this.config);
|
|
8294
8336
|
this.lazyRelate = this.getInitValue('lazyRelate', props.lazyRelate, this.lazyRelate);
|
|
8337
|
+
this.height = this.getInitValue('height', props.height, this.height);
|
|
8338
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
8339
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
8340
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
8341
|
+
this.createAccessors();
|
|
8295
8342
|
}
|
|
8296
8343
|
createRelationship(master, details = []) {
|
|
8297
8344
|
if (master.datasource && details.length) {
|
|
@@ -10231,6 +10278,7 @@ class SelectTree extends TextInput {
|
|
|
10231
10278
|
this.disabledItems = this.getInitValue('disabledItems', props.disabledItems, this.disabledItems);
|
|
10232
10279
|
this.preventLoadOnFocus = this.getInitValue('preventLoadOnFocus', props.preventLoadOnFocus, this.preventLoadOnFocus);
|
|
10233
10280
|
this.fetchOnDemand = this.getInitValue('fetchOnDemand', props.fetchOnDemand, this.fetchOnDemand);
|
|
10281
|
+
this.menuMaxWidth = this.getInitValue('menuMaxWidth', props.menuMaxWidth, this.menuMaxWidth);
|
|
10234
10282
|
if (props.datasource && Object.keys(props.datasource).length) {
|
|
10235
10283
|
this.lazyLoad = props.datasource.lazyLoad !== false;
|
|
10236
10284
|
const searchFields = Array.isArray(this.dataText) ? this.dataText : [this.dataText];
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -2445,12 +2445,35 @@
|
|
|
2445
2445
|
constructor(props) {
|
|
2446
2446
|
super(props);
|
|
2447
2447
|
this.cols = '12';
|
|
2448
|
+
/**
|
|
2449
|
+
* Defines the component height. Possible values for this property can be
|
|
2450
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2451
|
+
*/
|
|
2452
|
+
this.height = 'auto';
|
|
2453
|
+
/**
|
|
2454
|
+
* Defines the component min height. Possible values for this property can be
|
|
2455
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2456
|
+
*/
|
|
2457
|
+
this.minHeight = 'auto';
|
|
2458
|
+
/**
|
|
2459
|
+
* Defines the component max height. Possible values for this property can be
|
|
2460
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
2461
|
+
*/
|
|
2462
|
+
this.maxHeight = 'none';
|
|
2463
|
+
/**
|
|
2464
|
+
* Set component height to fill all space available
|
|
2465
|
+
*/
|
|
2466
|
+
this.fillHeight = false;
|
|
2448
2467
|
this.cols = this.getInitValue('cols', props.cols, this.cols);
|
|
2449
2468
|
this.sm = this.getInitValue('sm', props.sm, this.sm);
|
|
2450
2469
|
this.md = this.getInitValue('md', props.md, this.md);
|
|
2451
2470
|
this.lg = this.getInitValue('lg', props.lg, this.lg);
|
|
2452
2471
|
this.xl = this.getInitValue('xl', props.xl, this.xl);
|
|
2453
2472
|
this.offset = this.getInitValue('offset', props.offset, this.offset);
|
|
2473
|
+
this.height = this.getInitValue('height', props.height, this.height);
|
|
2474
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
2475
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
2476
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
2454
2477
|
this.createAccessors();
|
|
2455
2478
|
}
|
|
2456
2479
|
}
|
|
@@ -8297,8 +8320,32 @@
|
|
|
8297
8320
|
* Defines whether the relationship will be created on mounted
|
|
8298
8321
|
*/
|
|
8299
8322
|
this.lazyRelate = false;
|
|
8323
|
+
/**
|
|
8324
|
+
* Defines the component height. Possible values for this property can be
|
|
8325
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
8326
|
+
*/
|
|
8327
|
+
this.height = 'auto';
|
|
8328
|
+
/**
|
|
8329
|
+
* Defines the component min height. Possible values for this property can be
|
|
8330
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
8331
|
+
*/
|
|
8332
|
+
this.minHeight = 'auto';
|
|
8333
|
+
/**
|
|
8334
|
+
* Defines the component max height. Possible values for this property can be
|
|
8335
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
8336
|
+
*/
|
|
8337
|
+
this.maxHeight = 'none';
|
|
8338
|
+
/**
|
|
8339
|
+
* Set component height to fill all space available
|
|
8340
|
+
*/
|
|
8341
|
+
this.fillHeight = false;
|
|
8300
8342
|
this.config = this.getInitValue('config', props.config, this.config);
|
|
8301
8343
|
this.lazyRelate = this.getInitValue('lazyRelate', props.lazyRelate, this.lazyRelate);
|
|
8344
|
+
this.height = this.getInitValue('height', props.height, this.height);
|
|
8345
|
+
this.minHeight = this.getInitValue('minHeight', props.minHeight, this.minHeight);
|
|
8346
|
+
this.maxHeight = this.getInitValue('maxHeight', props.maxHeight, this.maxHeight);
|
|
8347
|
+
this.fillHeight = this.getInitValue('fillHeight', props.fillHeight, this.fillHeight);
|
|
8348
|
+
this.createAccessors();
|
|
8302
8349
|
}
|
|
8303
8350
|
createRelationship(master, details = []) {
|
|
8304
8351
|
if (master.datasource && details.length) {
|
|
@@ -10238,6 +10285,7 @@
|
|
|
10238
10285
|
this.disabledItems = this.getInitValue('disabledItems', props.disabledItems, this.disabledItems);
|
|
10239
10286
|
this.preventLoadOnFocus = this.getInitValue('preventLoadOnFocus', props.preventLoadOnFocus, this.preventLoadOnFocus);
|
|
10240
10287
|
this.fetchOnDemand = this.getInitValue('fetchOnDemand', props.fetchOnDemand, this.fetchOnDemand);
|
|
10288
|
+
this.menuMaxWidth = this.getInitValue('menuMaxWidth', props.menuMaxWidth, this.menuMaxWidth);
|
|
10241
10289
|
if (props.datasource && Object.keys(props.datasource).length) {
|
|
10242
10290
|
this.lazyLoad = props.datasource.lazyLoad !== false;
|
|
10243
10291
|
const searchFields = Array.isArray(this.dataText) ? this.dataText : [this.dataText];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.79.0",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -39,5 +39,5 @@
|
|
|
39
39
|
"lodash.times": "4.3.*",
|
|
40
40
|
"mockdate": "3.0.*"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "c98be433e557f6f044b0a1f644c9b8558c389180"
|
|
43
43
|
}
|
|
@@ -10,6 +10,25 @@ export declare class Col extends ComponentRender implements ICol {
|
|
|
10
10
|
lg?: string | number;
|
|
11
11
|
xl?: string | number;
|
|
12
12
|
offset?: string | number;
|
|
13
|
+
/**
|
|
14
|
+
* Defines the component height. Possible values for this property can be
|
|
15
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
16
|
+
*/
|
|
17
|
+
height: string | number;
|
|
18
|
+
/**
|
|
19
|
+
* Defines the component min height. Possible values for this property can be
|
|
20
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
21
|
+
*/
|
|
22
|
+
minHeight: string | number;
|
|
23
|
+
/**
|
|
24
|
+
* Defines the component max height. Possible values for this property can be
|
|
25
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
26
|
+
*/
|
|
27
|
+
maxHeight: string | number;
|
|
28
|
+
/**
|
|
29
|
+
* Set component height to fill all space available
|
|
30
|
+
*/
|
|
31
|
+
fillHeight: boolean;
|
|
13
32
|
/**
|
|
14
33
|
* Creates a new Col.
|
|
15
34
|
* @param props Col properties
|
|
@@ -9,4 +9,8 @@ export interface ICol extends IComponentRender {
|
|
|
9
9
|
lg?: boolean | string | number;
|
|
10
10
|
xl?: boolean | string | number;
|
|
11
11
|
offset?: string | number;
|
|
12
|
+
height?: number | string;
|
|
13
|
+
maxHeight?: number | string;
|
|
14
|
+
minHeight?: number | string;
|
|
15
|
+
fillHeight?: boolean;
|
|
12
16
|
}
|
|
@@ -3,4 +3,8 @@ import { IComponentRender } from '../zd-component/interfaces';
|
|
|
3
3
|
export interface IMasterDetail extends IComponentRender {
|
|
4
4
|
config?: IDictionary<any>;
|
|
5
5
|
lazyRelate?: boolean;
|
|
6
|
+
height?: number | string;
|
|
7
|
+
maxHeight?: number | string;
|
|
8
|
+
minHeight?: number | string;
|
|
9
|
+
fillHeight?: boolean;
|
|
6
10
|
}
|
|
@@ -13,6 +13,25 @@ export declare class MasterDetail extends ComponentRender implements IMasterDeta
|
|
|
13
13
|
* Defines whether the relationship will be created on mounted
|
|
14
14
|
*/
|
|
15
15
|
lazyRelate: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Defines the component height. Possible values for this property can be
|
|
18
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
19
|
+
*/
|
|
20
|
+
height: string | number;
|
|
21
|
+
/**
|
|
22
|
+
* Defines the component min height. Possible values for this property can be
|
|
23
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
24
|
+
*/
|
|
25
|
+
minHeight: string | number;
|
|
26
|
+
/**
|
|
27
|
+
* Defines the component max height. Possible values for this property can be
|
|
28
|
+
* <samp>'auto', '100%', '400px' or 400</samp>
|
|
29
|
+
*/
|
|
30
|
+
maxHeight: string | number;
|
|
31
|
+
/**
|
|
32
|
+
* Set component height to fill all space available
|
|
33
|
+
*/
|
|
34
|
+
fillHeight: boolean;
|
|
16
35
|
/**
|
|
17
36
|
* Creates a new Master Detail.
|
|
18
37
|
* @param props Master detail properties
|
|
@@ -30,6 +30,7 @@ export interface ISelectTree extends IComponentRender {
|
|
|
30
30
|
dataDisabled?: string;
|
|
31
31
|
disabledItems?: any[];
|
|
32
32
|
fetchOnDemand?: boolean;
|
|
33
|
+
menuMaxWidth?: number;
|
|
33
34
|
}
|
|
34
35
|
export interface ISelectTreeCloseEvent extends IEventParam<SelectTree> {
|
|
35
36
|
selectedNodes: ISelectTreeNode<IDictionary>[];
|