@zeedhi/common 1.104.0 → 1.105.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.
@@ -4419,6 +4419,18 @@ class DateRange extends TextInput {
4419
4419
  this.internalValue = [];
4420
4420
  this.value = this.internalValue; // forces value accessor to be called if necessary
4421
4421
  }
4422
+ get value() {
4423
+ return this.internalValue;
4424
+ }
4425
+ set value(value) {
4426
+ if (this.internalValue !== value) {
4427
+ this.internalDisplayValue = this.formatter(value);
4428
+ this.internalValue = value;
4429
+ }
4430
+ if (value === null) {
4431
+ this.internalValue = [];
4432
+ }
4433
+ }
4422
4434
  /**
4423
4435
  * Assign the updated mask to mask property
4424
4436
  */
@@ -4426,6 +4426,18 @@
4426
4426
  this.internalValue = [];
4427
4427
  this.value = this.internalValue; // forces value accessor to be called if necessary
4428
4428
  }
4429
+ get value() {
4430
+ return this.internalValue;
4431
+ }
4432
+ set value(value) {
4433
+ if (this.internalValue !== value) {
4434
+ this.internalDisplayValue = this.formatter(value);
4435
+ this.internalValue = value;
4436
+ }
4437
+ if (value === null) {
4438
+ this.internalValue = [];
4439
+ }
4440
+ }
4429
4441
  /**
4430
4442
  * Assign the updated mask to mask property
4431
4443
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/common",
3
- "version": "1.104.0",
3
+ "version": "1.105.0",
4
4
  "description": "Zeedhi Common",
5
5
  "author": "Zeedhi <zeedhi@teknisa.com>",
6
6
  "license": "ISC",
@@ -43,5 +43,5 @@
43
43
  "lodash.times": "4.3.*",
44
44
  "mockdate": "3.0.*"
45
45
  },
46
- "gitHead": "7d5f6ddbcabc8c6b93629ab72b178d48a400f906"
46
+ "gitHead": "bac0dd5514d2a2e47f68c9e3b950e3041cf4aad4"
47
47
  }
@@ -88,6 +88,8 @@ export declare class DateRange extends TextInput implements IDateRange {
88
88
  parser(value: string): any;
89
89
  get displayValue(): string;
90
90
  set displayValue(newValue: string);
91
+ get value(): any;
92
+ set value(value: any);
91
93
  /**
92
94
  * Assign the updated mask to mask property
93
95
  */