@luftborn/custom-elements 2.12.5 → 2.12.6

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/demo/index.min.js CHANGED
@@ -4958,7 +4958,9 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
4958
4958
  this.date.setAttribute('min', this.min);
4959
4959
  }
4960
4960
  this.language = ((_a = this.attributes.getNamedItem('language')) === null || _a === void 0 ? void 0 : _a.value) || 'en';
4961
- this.initCustomPicker();
4961
+ if (this.justPreview) {
4962
+ this.initCustomPicker();
4963
+ }
4962
4964
  };
4963
4965
  // events
4964
4966
  CustomFormatDateFieldElement.prototype.change = function ($event) {
@@ -4978,6 +4980,9 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
4978
4980
  this.language = newValue;
4979
4981
  this.initCustomPicker();
4980
4982
  break;
4983
+ case 'just-preview':
4984
+ this.justPreview = newValue !== null;
4985
+ break;
4981
4986
  }
4982
4987
  };
4983
4988
  CustomFormatDateFieldElement.prototype.initCustomPicker = function () {