@ekzo-dev/bootstrap-addons 5.3.18 → 5.3.19
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.19",
|
|
5
5
|
"homepage": "https://github.com/ekzo-dev/aurelia-components/tree/main/packages/bootstrap-addons",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -101,15 +101,12 @@ export class BsDurationInput extends BaseField implements EventListenerObject {
|
|
|
101
101
|
private _parseDuration(value: string) {
|
|
102
102
|
try {
|
|
103
103
|
const duration = Temporal.Duration.from(value);
|
|
104
|
+
const result = {};
|
|
104
105
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
hours: duration.hours,
|
|
110
|
-
minutes: duration.minutes,
|
|
111
|
-
seconds: duration.seconds,
|
|
112
|
-
};
|
|
106
|
+
durationKeys.forEach((key) => {
|
|
107
|
+
result[key] = duration[key] ? duration[key].toString() : '';
|
|
108
|
+
});
|
|
109
|
+
this.duration = result;
|
|
113
110
|
} catch (error) {
|
|
114
111
|
if (error instanceof RangeError) {
|
|
115
112
|
console.warn(`[bs-duration-input] ${error.message}`);
|