@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.
@@ -4196,12 +4196,15 @@ const CatDatepickerFlat = class {
4196
4196
  }
4197
4197
  }
4198
4198
  onDisabledChanged() {
4199
- // Dynamically changing 'disabled' value is not working due to a bug in the
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(() => (this.pickr = this.initDatepicker(this.input)));
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 (this.disabled || this.readonly || !input) {
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
  }; }