@ekzo-dev/bootstrap-addons 5.3.9 → 5.3.10
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ekzo-dev/bootstrap-addons",
|
|
3
3
|
"description": "Aurelia Bootstrap additional component",
|
|
4
|
-
"version": "5.3.
|
|
4
|
+
"version": "5.3.10",
|
|
5
5
|
"homepage": "https://github.com/ekzo-dev/aurelia-components/tree/main/packages/bootstrap-addons",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -36,7 +36,7 @@ export class BsDurationInput extends BaseField implements EventListenerObject {
|
|
|
36
36
|
}).toString();
|
|
37
37
|
}
|
|
38
38
|
set value(value: unknown) {
|
|
39
|
-
this._parseDuration(value
|
|
39
|
+
this._parseDuration(value);
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
@bindable()
|
|
@@ -97,9 +97,15 @@ export class BsDurationInput extends BaseField implements EventListenerObject {
|
|
|
97
97
|
this.controls.item(0).focus();
|
|
98
98
|
}
|
|
99
99
|
|
|
100
|
-
private _parseDuration(value:
|
|
100
|
+
private _parseDuration(value: unknown) {
|
|
101
|
+
if (value == null || value === '') {
|
|
102
|
+
this.duration = {};
|
|
103
|
+
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
|
|
101
107
|
try {
|
|
102
|
-
const duration = Temporal.Duration.from(value);
|
|
108
|
+
const duration = Temporal.Duration.from(value.toString());
|
|
103
109
|
|
|
104
110
|
this.duration = {
|
|
105
111
|
years: duration.years,
|