@itfin/components 1.0.108 → 1.0.111

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itfin/components",
3
- "version": "1.0.108",
3
+ "version": "1.0.111",
4
4
  "main": "dist/itfin-components.umd.js",
5
5
  "unpkg": "dist/itfin-components.common.js",
6
6
  "author": "Vitalii Savchuk <esvit666@gmail.com>",
@@ -42,6 +42,7 @@
42
42
  :only-calendar="onlyCalendar"
43
43
  :display-format="displayFormat"
44
44
  :value-format="valueFormat"
45
+ :min-date="minDate"
45
46
  @input="selectInlineDate"
46
47
  ></itf-date-picker-inline>
47
48
  </div>
@@ -115,6 +116,7 @@ class itfDatePicker extends Vue {
115
116
  @Prop({ type: String, default: '' }) placeholder;
116
117
  @Prop({ type: String, default: '' }) prependIcon;
117
118
  @Prop({ type: String, default: 'bottom-start' }) placement;
119
+ @Prop({ type: [String, Date], default: '' }) minDate;
118
120
  @Prop(Boolean) clearable;
119
121
 
120
122
  focused = false;
@@ -78,6 +78,7 @@ class itfDatePickerInline extends Vue {
78
78
  @Prop({ type: Boolean, default: false }) onlyCalendar;
79
79
  @Prop({ type: Boolean, default: false }) range;
80
80
  @Prop({ type: Object, default: () => ({}) }) customDays;
81
+ @Prop({ type: [String, Date], default: '' }) minDate;
81
82
  @Prop({
82
83
  type: Array,
83
84
  default: () => ([
@@ -111,6 +112,7 @@ class itfDatePickerInline extends Vue {
111
112
  range: this.range,
112
113
  view: (this.valueAsLuxon && !this.minView) ? 'days' : this.startView,
113
114
  minView: this.minView,
115
+ minDate: this.minDate,
114
116
  selectedDates: this.valueAsLuxon ? [this.valueAsLuxon.toJSDate()] : [],
115
117
  onSelect: ({ date }) => {
116
118
  if (this.range && !this.calendar.rangeDateTo) {
@@ -91,7 +91,7 @@ class ValidatableMixin extends Vue {
91
91
  }
92
92
 
93
93
  get hasError () {
94
- return this.internalErrorMessages.length > 0 || this.errorBucket.length > 0 || this.error;
94
+ return this.internalErrorMessages.length > 0 || (this.errorBucket && this.errorBucket.length) > 0 || this.error;
95
95
  }
96
96
 
97
97
  get hasSuccess () {