@itfin/components 1.0.109 → 1.0.110
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
|
@@ -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: null }) 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: null }) 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) {
|