@zeedhi/common 1.78.2 → 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 +25 -0
- package/dist/zd-common.umd.js +25 -0
- package/package.json +2 -2
- 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
|
@@ -8313,8 +8313,32 @@ class MasterDetail extends ComponentRender {
|
|
|
8313
8313
|
* Defines whether the relationship will be created on mounted
|
|
8314
8314
|
*/
|
|
8315
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;
|
|
8316
8335
|
this.config = this.getInitValue('config', props.config, this.config);
|
|
8317
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();
|
|
8318
8342
|
}
|
|
8319
8343
|
createRelationship(master, details = []) {
|
|
8320
8344
|
if (master.datasource && details.length) {
|
|
@@ -10254,6 +10278,7 @@ class SelectTree extends TextInput {
|
|
|
10254
10278
|
this.disabledItems = this.getInitValue('disabledItems', props.disabledItems, this.disabledItems);
|
|
10255
10279
|
this.preventLoadOnFocus = this.getInitValue('preventLoadOnFocus', props.preventLoadOnFocus, this.preventLoadOnFocus);
|
|
10256
10280
|
this.fetchOnDemand = this.getInitValue('fetchOnDemand', props.fetchOnDemand, this.fetchOnDemand);
|
|
10281
|
+
this.menuMaxWidth = this.getInitValue('menuMaxWidth', props.menuMaxWidth, this.menuMaxWidth);
|
|
10257
10282
|
if (props.datasource && Object.keys(props.datasource).length) {
|
|
10258
10283
|
this.lazyLoad = props.datasource.lazyLoad !== false;
|
|
10259
10284
|
const searchFields = Array.isArray(this.dataText) ? this.dataText : [this.dataText];
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -8320,8 +8320,32 @@
|
|
|
8320
8320
|
* Defines whether the relationship will be created on mounted
|
|
8321
8321
|
*/
|
|
8322
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;
|
|
8323
8342
|
this.config = this.getInitValue('config', props.config, this.config);
|
|
8324
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();
|
|
8325
8349
|
}
|
|
8326
8350
|
createRelationship(master, details = []) {
|
|
8327
8351
|
if (master.datasource && details.length) {
|
|
@@ -10261,6 +10285,7 @@
|
|
|
10261
10285
|
this.disabledItems = this.getInitValue('disabledItems', props.disabledItems, this.disabledItems);
|
|
10262
10286
|
this.preventLoadOnFocus = this.getInitValue('preventLoadOnFocus', props.preventLoadOnFocus, this.preventLoadOnFocus);
|
|
10263
10287
|
this.fetchOnDemand = this.getInitValue('fetchOnDemand', props.fetchOnDemand, this.fetchOnDemand);
|
|
10288
|
+
this.menuMaxWidth = this.getInitValue('menuMaxWidth', props.menuMaxWidth, this.menuMaxWidth);
|
|
10264
10289
|
if (props.datasource && Object.keys(props.datasource).length) {
|
|
10265
10290
|
this.lazyLoad = props.datasource.lazyLoad !== false;
|
|
10266
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
|
}
|
|
@@ -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>[];
|