@zeedhi/common 1.96.2 → 1.97.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
CHANGED
|
@@ -2004,7 +2004,8 @@ class Input extends ComponentRender {
|
|
|
2004
2004
|
updateRules() {
|
|
2005
2005
|
this.rules = Object.values(this.parsedValidations)
|
|
2006
2006
|
.map((validation) => (value) => {
|
|
2007
|
-
const
|
|
2007
|
+
const isValueDefined = value !== undefined && value !== '';
|
|
2008
|
+
const testValue = isValueDefined ? value : this.value;
|
|
2008
2009
|
return validation(testValue);
|
|
2009
2010
|
});
|
|
2010
2011
|
}
|
|
@@ -6610,6 +6611,8 @@ class GridEditable extends Grid {
|
|
|
6610
6611
|
* @param element DOM Element
|
|
6611
6612
|
*/
|
|
6612
6613
|
inlineEdit(row, column, event, element) {
|
|
6614
|
+
if (this.editing)
|
|
6615
|
+
return;
|
|
6613
6616
|
this.editing = true;
|
|
6614
6617
|
this.callEvent('inlineEdit', {
|
|
6615
6618
|
event, element, row, column, component: this,
|
|
@@ -9764,6 +9767,18 @@ class Progress extends ComponentRender {
|
|
|
9764
9767
|
* The percentage value for current progress
|
|
9765
9768
|
*/
|
|
9766
9769
|
this.value = 0;
|
|
9770
|
+
/**
|
|
9771
|
+
* Sets the min width for the component
|
|
9772
|
+
*/
|
|
9773
|
+
this.minWidth = 'auto';
|
|
9774
|
+
/**
|
|
9775
|
+
* Sets the max width for the component
|
|
9776
|
+
*/
|
|
9777
|
+
this.maxWidth = 'auto';
|
|
9778
|
+
/**
|
|
9779
|
+
* Sets the width for the component
|
|
9780
|
+
*/
|
|
9781
|
+
this.width = '100%';
|
|
9767
9782
|
this.backgroundColor = this.getInitValue('backgroundColor', props.backgroundColor, this.backgroundColor);
|
|
9768
9783
|
this.backgroundOpacity = this.getInitValue('backgroundOpacity', props.backgroundOpacity, this.backgroundOpacity);
|
|
9769
9784
|
this.color = this.getInitValue('color', props.color, this.color);
|
|
@@ -9771,6 +9786,9 @@ class Progress extends ComponentRender {
|
|
|
9771
9786
|
this.indeterminate = this.getInitValue('indeterminate', props.indeterminate, this.indeterminate);
|
|
9772
9787
|
this.centerSlot = this.getInitValue('centerSlot', props.centerSlot, this.centerSlot);
|
|
9773
9788
|
this.value = this.getInitValue('value', props.value, this.value);
|
|
9789
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
9790
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
9791
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
9774
9792
|
this.createAccessors();
|
|
9775
9793
|
}
|
|
9776
9794
|
}
|
|
@@ -13244,6 +13262,8 @@ class TreeGridEditable extends TreeGrid {
|
|
|
13244
13262
|
* @param element DOM Element
|
|
13245
13263
|
*/
|
|
13246
13264
|
inlineEdit(row, column, event, element) {
|
|
13265
|
+
if (this.editing)
|
|
13266
|
+
return;
|
|
13247
13267
|
this.editing = true;
|
|
13248
13268
|
this.callEvent('inlineEdit', {
|
|
13249
13269
|
event, element, row, column, component: this,
|
package/dist/zd-common.umd.js
CHANGED
|
@@ -2011,7 +2011,8 @@
|
|
|
2011
2011
|
updateRules() {
|
|
2012
2012
|
this.rules = Object.values(this.parsedValidations)
|
|
2013
2013
|
.map((validation) => (value) => {
|
|
2014
|
-
const
|
|
2014
|
+
const isValueDefined = value !== undefined && value !== '';
|
|
2015
|
+
const testValue = isValueDefined ? value : this.value;
|
|
2015
2016
|
return validation(testValue);
|
|
2016
2017
|
});
|
|
2017
2018
|
}
|
|
@@ -6617,6 +6618,8 @@
|
|
|
6617
6618
|
* @param element DOM Element
|
|
6618
6619
|
*/
|
|
6619
6620
|
inlineEdit(row, column, event, element) {
|
|
6621
|
+
if (this.editing)
|
|
6622
|
+
return;
|
|
6620
6623
|
this.editing = true;
|
|
6621
6624
|
this.callEvent('inlineEdit', {
|
|
6622
6625
|
event, element, row, column, component: this,
|
|
@@ -9771,6 +9774,18 @@
|
|
|
9771
9774
|
* The percentage value for current progress
|
|
9772
9775
|
*/
|
|
9773
9776
|
this.value = 0;
|
|
9777
|
+
/**
|
|
9778
|
+
* Sets the min width for the component
|
|
9779
|
+
*/
|
|
9780
|
+
this.minWidth = 'auto';
|
|
9781
|
+
/**
|
|
9782
|
+
* Sets the max width for the component
|
|
9783
|
+
*/
|
|
9784
|
+
this.maxWidth = 'auto';
|
|
9785
|
+
/**
|
|
9786
|
+
* Sets the width for the component
|
|
9787
|
+
*/
|
|
9788
|
+
this.width = '100%';
|
|
9774
9789
|
this.backgroundColor = this.getInitValue('backgroundColor', props.backgroundColor, this.backgroundColor);
|
|
9775
9790
|
this.backgroundOpacity = this.getInitValue('backgroundOpacity', props.backgroundOpacity, this.backgroundOpacity);
|
|
9776
9791
|
this.color = this.getInitValue('color', props.color, this.color);
|
|
@@ -9778,6 +9793,9 @@
|
|
|
9778
9793
|
this.indeterminate = this.getInitValue('indeterminate', props.indeterminate, this.indeterminate);
|
|
9779
9794
|
this.centerSlot = this.getInitValue('centerSlot', props.centerSlot, this.centerSlot);
|
|
9780
9795
|
this.value = this.getInitValue('value', props.value, this.value);
|
|
9796
|
+
this.minWidth = this.getInitValue('minWidth', props.minWidth, this.minWidth);
|
|
9797
|
+
this.maxWidth = this.getInitValue('maxWidth', props.maxWidth, this.maxWidth);
|
|
9798
|
+
this.width = this.getInitValue('width', props.width, this.width);
|
|
9781
9799
|
this.createAccessors();
|
|
9782
9800
|
}
|
|
9783
9801
|
}
|
|
@@ -13251,6 +13269,8 @@
|
|
|
13251
13269
|
* @param element DOM Element
|
|
13252
13270
|
*/
|
|
13253
13271
|
inlineEdit(row, column, event, element) {
|
|
13272
|
+
if (this.editing)
|
|
13273
|
+
return;
|
|
13254
13274
|
this.editing = true;
|
|
13255
13275
|
this.callEvent('inlineEdit', {
|
|
13256
13276
|
event, element, row, column, component: this,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zeedhi/common",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.97.0",
|
|
4
4
|
"description": "Zeedhi Common",
|
|
5
5
|
"author": "Zeedhi <zeedhi@teknisa.com>",
|
|
6
6
|
"license": "ISC",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@types/lodash.clonedeep": "^4.5.7",
|
|
23
|
-
"@zeedhi/autonumeric": "
|
|
23
|
+
"@zeedhi/autonumeric": "^4.6.3",
|
|
24
24
|
"lodash.clonedeep": "^4.5.0",
|
|
25
25
|
"lodash.debounce": "4.0.*",
|
|
26
26
|
"lodash.get": "4.4.*",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"lodash.set": "4.3.*"
|
|
31
31
|
},
|
|
32
32
|
"peerDependencies": {
|
|
33
|
-
"@zeedhi/core": "
|
|
33
|
+
"@zeedhi/core": "~1.97.0"
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@types/lodash.debounce": "4.0.*",
|
|
@@ -43,5 +43,5 @@
|
|
|
43
43
|
"lodash.times": "4.3.*",
|
|
44
44
|
"mockdate": "3.0.*"
|
|
45
45
|
},
|
|
46
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "4cbf0b1966af294da09421e7bfc7e28f7e42d14c"
|
|
47
47
|
}
|
|
@@ -33,6 +33,18 @@ export declare class Progress extends ComponentRender implements IProgress {
|
|
|
33
33
|
* The percentage value for current progress
|
|
34
34
|
*/
|
|
35
35
|
value: number | string;
|
|
36
|
+
/**
|
|
37
|
+
* Sets the min width for the component
|
|
38
|
+
*/
|
|
39
|
+
minWidth: number | string;
|
|
40
|
+
/**
|
|
41
|
+
* Sets the max width for the component
|
|
42
|
+
*/
|
|
43
|
+
maxWidth: number | string;
|
|
44
|
+
/**
|
|
45
|
+
* Sets the width for the component
|
|
46
|
+
*/
|
|
47
|
+
width: number | string;
|
|
36
48
|
/**
|
|
37
49
|
* Create a new Progress
|
|
38
50
|
* @param props Progress definition
|