@zeedhi/zd-calendar-vue 1.4.2 → 1.5.0

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.
@@ -1,6 +1,6 @@
1
1
  import { VersionService } from '@zeedhi/core';
2
2
  import { Prop, Component } from 'vue-property-decorator';
3
- import { PropWatch, ZdComponentRender } from '@zeedhi/vuetify';
3
+ import { PropWatch, ZdComponentRender, setFillHeight } from '@zeedhi/vuetify';
4
4
  import { Calendar } from '@zeedhi/zd-calendar-common';
5
5
 
6
6
  /*! *****************************************************************************
@@ -53,6 +53,9 @@ let ZdCalendar = class ZdCalendar extends ZdComponentRender {
53
53
  return '';
54
54
  }
55
55
  mounted() {
56
+ if (this.instance.fillHeight) {
57
+ setFillHeight(this.$el);
58
+ }
56
59
  this.$refs.calendar.checkChange();
57
60
  const { value } = this.instance;
58
61
  this.instance.value = '';
@@ -234,6 +237,10 @@ __decorate([
234
237
  Prop({ type: Array, default: () => [] }),
235
238
  __metadata("design:type", Array)
236
239
  ], ZdCalendar.prototype, "calendarEvents", void 0);
240
+ __decorate([
241
+ Prop({ type: [Boolean, String], default: false }),
242
+ __metadata("design:type", Boolean)
243
+ ], ZdCalendar.prototype, "fillHeight", void 0);
237
244
  __decorate([
238
245
  Prop({ type: [String, Number], default: 0 }),
239
246
  __metadata("design:type", Object)
@@ -54,6 +54,9 @@
54
54
  return '';
55
55
  }
56
56
  mounted() {
57
+ if (this.instance.fillHeight) {
58
+ vuetify.setFillHeight(this.$el);
59
+ }
57
60
  this.$refs.calendar.checkChange();
58
61
  const { value } = this.instance;
59
62
  this.instance.value = '';
@@ -235,6 +238,10 @@
235
238
  vuePropertyDecorator.Prop({ type: Array, default: () => [] }),
236
239
  __metadata("design:type", Array)
237
240
  ], ZdCalendar.prototype, "calendarEvents", void 0);
241
+ __decorate([
242
+ vuePropertyDecorator.Prop({ type: [Boolean, String], default: false }),
243
+ __metadata("design:type", Boolean)
244
+ ], ZdCalendar.prototype, "fillHeight", void 0);
238
245
  __decorate([
239
246
  vuePropertyDecorator.Prop({ type: [String, Number], default: 0 }),
240
247
  __metadata("design:type", Object)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zeedhi/zd-calendar-vue",
3
- "version": "1.4.2",
3
+ "version": "1.5.0",
4
4
  "description": "Powered by Zeedhi",
5
5
  "main": "dist/calendar-vue.umd.js",
6
6
  "module": "dist/calendar-vue.esm.js",
@@ -16,9 +16,9 @@
16
16
  "peerDependencies": {
17
17
  "@zeedhi/vuetify": "*",
18
18
  "@zeedhi/zd-calendar-common": "file:packages/common",
19
- "vue": "^2.6.12",
20
- "vue-class-component": "^7.2.6",
21
- "vue-property-decorator": "^9.1.2"
19
+ "vue": "2.7.*",
20
+ "vue-class-component": "7.2.*",
21
+ "vue-property-decorator": "9.1.*"
22
22
  },
23
- "gitHead": "d40c6d309d81e1dd00b49a332e5b12477e1e300e"
23
+ "gitHead": "92f197660fcb6df88d83cc1a7eca282809a808b1"
24
24
  }
@@ -27,6 +27,7 @@ export default class ZdCalendar extends ZdComponentRender {
27
27
  eventTextColor: string | Function;
28
28
  eventTimed: string | Function;
29
29
  calendarEvents: [];
30
+ fillHeight: boolean;
30
31
  firstInterval: number | string;
31
32
  firstTime: number | string | object;
32
33
  height: number | string;