@haiilo/catalyst 10.0.5 → 10.0.7
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/catalyst/catalyst.esm.js +1 -1
- package/dist/catalyst/catalyst.esm.js.map +1 -1
- package/dist/catalyst/{p-6a42779c.entry.js → p-8cc94c1b.entry.js} +2 -2
- package/dist/catalyst/p-8cc94c1b.entry.js.map +1 -0
- package/dist/cjs/cat-alert_26.cjs.entry.js +7 -3
- package/dist/cjs/cat-alert_26.cjs.entry.js.map +1 -1
- package/dist/cjs/catalyst.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/cat-datepicker/cat-datepicker.js +9 -3
- package/dist/collection/components/cat-datepicker/cat-datepicker.js.map +1 -1
- package/dist/components/cat-datepicker.js +8 -3
- package/dist/components/cat-datepicker.js.map +1 -1
- package/dist/esm/cat-alert_26.entry.js +7 -3
- package/dist/esm/cat-alert_26.entry.js.map +1 -1
- package/dist/esm/catalyst.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/package.json +2 -2
- package/dist/catalyst/p-6a42779c.entry.js.map +0 -1
|
@@ -4196,12 +4196,15 @@ const CatDatepickerFlat = class {
|
|
|
4196
4196
|
}
|
|
4197
4197
|
}
|
|
4198
4198
|
onDisabledChanged() {
|
|
4199
|
-
// Dynamically changing
|
|
4199
|
+
// Dynamically changing config value is not working due to a bug in the
|
|
4200
4200
|
// library. We thus need to fully recreate the date picker after the value
|
|
4201
4201
|
// has been updated.
|
|
4202
4202
|
this.pickr?.destroy();
|
|
4203
4203
|
this.pickr = undefined;
|
|
4204
|
-
setTimeout(() =>
|
|
4204
|
+
setTimeout(() => {
|
|
4205
|
+
this.input ? (this.input.disabled = this.disabled) : null;
|
|
4206
|
+
this.pickr = this.initDatepicker(this.input);
|
|
4207
|
+
});
|
|
4205
4208
|
}
|
|
4206
4209
|
componentDidLoad() {
|
|
4207
4210
|
this.pickr = this.initDatepicker(this.input);
|
|
@@ -4249,7 +4252,7 @@ const CatDatepickerFlat = class {
|
|
|
4249
4252
|
} }, this.hasSlottedLabel && (index.h("span", { slot: "label" }, index.h("slot", { name: "label" }))), this.hasSlottedHint && (index.h("span", { slot: "hint" }, index.h("slot", { name: "hint" })))));
|
|
4250
4253
|
}
|
|
4251
4254
|
initDatepicker(input) {
|
|
4252
|
-
if (
|
|
4255
|
+
if (!input) {
|
|
4253
4256
|
return;
|
|
4254
4257
|
}
|
|
4255
4258
|
// avoid dropdown closing if datepicker is part of a dropdown
|
|
@@ -4273,6 +4276,7 @@ const CatDatepickerFlat = class {
|
|
|
4273
4276
|
"value": ["onValueChanged"],
|
|
4274
4277
|
"disabled": ["onDisabledChanged"],
|
|
4275
4278
|
"readonly": ["onDisabledChanged"],
|
|
4279
|
+
"mode": ["onDisabledChanged"],
|
|
4276
4280
|
"min": ["onMinChanged"],
|
|
4277
4281
|
"max": ["onMinChanged"]
|
|
4278
4282
|
}; }
|