@luftborn/custom-elements 2.12.5 → 2.12.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/demo/index.min.js CHANGED
@@ -4958,7 +4958,10 @@ 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
+ this.justPreview = this.attributes.getNamedItem('just-preview') !== null;
4962
+ if (!this.justPreview) {
4963
+ this.initCustomPicker();
4964
+ }
4962
4965
  };
4963
4966
  // events
4964
4967
  CustomFormatDateFieldElement.prototype.change = function ($event) {
@@ -4978,6 +4981,9 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
4978
4981
  this.language = newValue;
4979
4982
  this.initCustomPicker();
4980
4983
  break;
4984
+ case 'just-preview':
4985
+ this.justPreview = newValue !== null;
4986
+ break;
4981
4987
  }
4982
4988
  };
4983
4989
  CustomFormatDateFieldElement.prototype.initCustomPicker = function () {