@luftborn/custom-elements 2.5.2 → 2.5.4

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
@@ -3034,10 +3034,10 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
3034
3034
  _this.change(null);
3035
3035
  });
3036
3036
  this.datepicker.addEventListener('click', function () {
3037
- _this.date.showPicker();
3037
+ _this.showDatePicker();
3038
3038
  });
3039
3039
  this.display.addEventListener('click', function () {
3040
- _this.date.showPicker();
3040
+ _this.showDatePicker();
3041
3041
  });
3042
3042
  if (this.required) {
3043
3043
  this.date.setAttribute('required', '');
@@ -3086,10 +3086,14 @@ var CustomFormatDateFieldElement = /** @class */ (function (_super) {
3086
3086
  };
3087
3087
  return (_a = dateFormats[this.dateFormat]) !== null && _a !== void 0 ? _a : null;
3088
3088
  };
3089
- CustomFormatDateFieldElement.prototype.attributeChangedCallback = function (name, oldValue, newValue) {
3090
- if (name === 'date-format') {
3091
- this.display.setAttribute('placeholder', newValue);
3092
- this.dateFormat = newValue;
3089
+ CustomFormatDateFieldElement.prototype.showDatePicker = function () {
3090
+ if ((!!window.ApplePaySetupFeature || !!window.safari)) {
3091
+ this.date.click();
3092
+ }
3093
+ else {
3094
+ if (this.date.showPicker) {
3095
+ this.date.showPicker();
3096
+ }
3093
3097
  }
3094
3098
  };
3095
3099
  CustomFormatDateFieldElement = __decorate([