@zeedhi/zd-calendar-vue 1.0.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.
@@ -0,0 +1,820 @@
1
+ (function (global, factory) {
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue-property-decorator'), require('@zeedhi/vuetify'), require('@zeedhi/zd-calendar-common')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', 'vue-property-decorator', '@zeedhi/vuetify', '@zeedhi/zd-calendar-common'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["@zeedhi/zd-calendar-vue"] = {}, global["vue-property-decorator"], global["@zeedhi/vuetify"], global["@zeedhi/zd-calendar-common"]));
5
+ })(this, (function (exports, vuePropertyDecorator, vuetify, zdCalendarCommon) { 'use strict';
6
+
7
+ /*! *****************************************************************************
8
+ Copyright (c) Microsoft Corporation.
9
+
10
+ Permission to use, copy, modify, and/or distribute this software for any
11
+ purpose with or without fee is hereby granted.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
14
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
15
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
16
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
17
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
18
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
19
+ PERFORMANCE OF THIS SOFTWARE.
20
+ ***************************************************************************** */
21
+
22
+ function __decorate(decorators, target, key, desc) {
23
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
24
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
25
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
26
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
27
+ }
28
+
29
+ function __metadata(metadataKey, metadataValue) {
30
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
31
+ }
32
+
33
+ let ZdCalendar = class ZdCalendar extends vuetify.ZdComponentRender {
34
+ constructor() {
35
+ super(...arguments);
36
+ this.instanceType = zdCalendarCommon.Calendar;
37
+ this.selectedOpen = false;
38
+ this.selectedElement = null;
39
+ this.selectedEvent = {};
40
+ }
41
+ mounted() {
42
+ this.$refs.calendar.checkChange();
43
+ }
44
+ prev() {
45
+ this.$refs.calendar.prev();
46
+ }
47
+ next() {
48
+ this.$refs.calendar.next();
49
+ }
50
+ setToday() {
51
+ this.instance.value = '';
52
+ }
53
+ setType(select) {
54
+ const { value } = select.instance.value;
55
+ this.instance.type = value;
56
+ }
57
+ viewDay({ date }) {
58
+ this.instance.value = date;
59
+ this.instance.type = 'day';
60
+ }
61
+ showEvent({ nativeEvent, event }) {
62
+ const open = () => {
63
+ this.selectedEvent = event;
64
+ this.selectedElement = nativeEvent.target;
65
+ requestAnimationFrame(() => { requestAnimationFrame(() => { this.selectedOpen = true; }); });
66
+ };
67
+ if (this.selectedOpen) {
68
+ this.selectedOpen = false;
69
+ requestAnimationFrame(() => requestAnimationFrame(() => open()));
70
+ }
71
+ else {
72
+ open();
73
+ }
74
+ nativeEvent.stopPropagation();
75
+ }
76
+ };
77
+ __decorate([
78
+ vuePropertyDecorator.Prop({ type: [String, Array], default: undefined }),
79
+ __metadata("design:type", Object)
80
+ ], ZdCalendar.prototype, "categories", void 0);
81
+ __decorate([
82
+ vuetify.PropWatch({ type: [String, Number], default: 1 }),
83
+ __metadata("design:type", Object)
84
+ ], ZdCalendar.prototype, "categoryDays", void 0);
85
+ __decorate([
86
+ vuetify.PropWatch({ type: String, default: undefined }),
87
+ __metadata("design:type", String)
88
+ ], ZdCalendar.prototype, "title", void 0);
89
+ __decorate([
90
+ vuetify.PropWatch({ type: [String, Boolean], default: undefined }),
91
+ __metadata("design:type", Object)
92
+ ], ZdCalendar.prototype, "showHeader", void 0);
93
+ __decorate([
94
+ vuetify.PropWatch({ type: String, default: undefined }),
95
+ __metadata("design:type", String)
96
+ ], ZdCalendar.prototype, "categoryForInvalid", void 0);
97
+ __decorate([
98
+ vuetify.PropWatch({ type: Boolean, default: false }),
99
+ __metadata("design:type", Object)
100
+ ], ZdCalendar.prototype, "categoryHideDynamic", void 0);
101
+ __decorate([
102
+ vuetify.PropWatch({ type: Boolean, default: false }),
103
+ __metadata("design:type", Object)
104
+ ], ZdCalendar.prototype, "categoryShowAll", void 0);
105
+ __decorate([
106
+ vuePropertyDecorator.Prop({ type: [String, Function], default: undefined }),
107
+ __metadata("design:type", Object)
108
+ ], ZdCalendar.prototype, "categoryText", void 0);
109
+ __decorate([
110
+ vuetify.PropWatch({ type: String, default: 'primary' }),
111
+ __metadata("design:type", String)
112
+ ], ZdCalendar.prototype, "color", void 0);
113
+ __decorate([
114
+ vuePropertyDecorator.Prop({ type: Function, default: null }),
115
+ __metadata("design:type", Object)
116
+ ], ZdCalendar.prototype, "dayFormat", void 0);
117
+ __decorate([
118
+ vuetify.PropWatch({ type: [String, Number, Date], default: undefined }),
119
+ __metadata("design:type", Object)
120
+ ], ZdCalendar.prototype, "end", void 0);
121
+ __decorate([
122
+ vuetify.PropWatch({ type: [String, Function], default: 'category' }),
123
+ __metadata("design:type", Object)
124
+ ], ZdCalendar.prototype, "eventCategory", void 0);
125
+ __decorate([
126
+ vuetify.PropWatch({ type: [String, Function], default: 'primary' }),
127
+ __metadata("design:type", Object)
128
+ ], ZdCalendar.prototype, "eventColor", void 0);
129
+ __decorate([
130
+ vuetify.PropWatch({ type: String, default: 'end' }),
131
+ __metadata("design:type", String)
132
+ ], ZdCalendar.prototype, "eventEnd", void 0);
133
+ __decorate([
134
+ vuetify.PropWatch({ type: Number, default: 20 }),
135
+ __metadata("design:type", Number)
136
+ ], ZdCalendar.prototype, "eventHeight", void 0);
137
+ __decorate([
138
+ vuetify.PropWatch({ type: Number, default: 1 }),
139
+ __metadata("design:type", Number)
140
+ ], ZdCalendar.prototype, "eventMarginBottom", void 0);
141
+ __decorate([
142
+ vuetify.PropWatch({ type: Boolean, default: true }),
143
+ __metadata("design:type", Boolean)
144
+ ], ZdCalendar.prototype, "eventMore", void 0);
145
+ __decorate([
146
+ vuetify.PropWatch({ type: String, default: 'CALENDAR_MORE' }),
147
+ __metadata("design:type", String)
148
+ ], ZdCalendar.prototype, "eventMoreText", void 0);
149
+ __decorate([
150
+ vuetify.PropWatch({ type: [String, Function], default: 'name' }),
151
+ __metadata("design:type", Object)
152
+ ], ZdCalendar.prototype, "eventName", void 0);
153
+ __decorate([
154
+ vuetify.PropWatch({ type: [String, Function], default: 'stack' }),
155
+ __metadata("design:type", Object)
156
+ ], ZdCalendar.prototype, "eventOverlapMode", void 0);
157
+ __decorate([
158
+ vuetify.PropWatch({ type: [String, Number], default: 60 }),
159
+ __metadata("design:type", Object)
160
+ ], ZdCalendar.prototype, "eventOverlapThreshold", void 0);
161
+ __decorate([
162
+ vuePropertyDecorator.Prop({ type: [String, Object], default: undefined }),
163
+ __metadata("design:type", Object)
164
+ ], ZdCalendar.prototype, "eventRipple", void 0);
165
+ __decorate([
166
+ vuetify.PropWatch({ type: String, default: 'start' }),
167
+ __metadata("design:type", String)
168
+ ], ZdCalendar.prototype, "eventStart", void 0);
169
+ __decorate([
170
+ vuePropertyDecorator.Prop({ type: [String, Function], default: 'white' }),
171
+ __metadata("design:type", Object)
172
+ ], ZdCalendar.prototype, "eventTextColor", void 0);
173
+ __decorate([
174
+ vuePropertyDecorator.Prop({ type: [String, Function], default: 'timed' }),
175
+ __metadata("design:type", Object)
176
+ ], ZdCalendar.prototype, "eventTimed", void 0);
177
+ __decorate([
178
+ vuePropertyDecorator.Prop({ type: Array, default: () => [] }),
179
+ __metadata("design:type", Array)
180
+ ], ZdCalendar.prototype, "calendarEvents", void 0);
181
+ __decorate([
182
+ vuePropertyDecorator.Prop({ type: [String, Number], default: 0 }),
183
+ __metadata("design:type", Object)
184
+ ], ZdCalendar.prototype, "firstInterval", void 0);
185
+ __decorate([
186
+ vuetify.PropWatch({ type: [String, Number, Object], default: 0 }),
187
+ __metadata("design:type", Object)
188
+ ], ZdCalendar.prototype, "firstTime", void 0);
189
+ __decorate([
190
+ vuetify.PropWatch({ type: Boolean, default: false }),
191
+ __metadata("design:type", Boolean)
192
+ ], ZdCalendar.prototype, "hideHeader", void 0);
193
+ __decorate([
194
+ vuePropertyDecorator.Prop({ type: [String, Number], default: 24 }),
195
+ __metadata("design:type", Object)
196
+ ], ZdCalendar.prototype, "intervalCount", void 0);
197
+ __decorate([
198
+ vuePropertyDecorator.Prop({ type: Function, default: null }),
199
+ __metadata("design:type", Object)
200
+ ], ZdCalendar.prototype, "intervalFormat", void 0);
201
+ __decorate([
202
+ vuetify.PropWatch({ type: [String, Number], default: 48 }),
203
+ __metadata("design:type", Object)
204
+ ], ZdCalendar.prototype, "intervalHeight", void 0);
205
+ __decorate([
206
+ vuetify.PropWatch({ type: [String, Number], default: 60 }),
207
+ __metadata("design:type", Object)
208
+ ], ZdCalendar.prototype, "intervalMinutes", void 0);
209
+ __decorate([
210
+ vuePropertyDecorator.Prop({ type: Function, default: null }),
211
+ __metadata("design:type", Object)
212
+ ], ZdCalendar.prototype, "intervalStyle", void 0);
213
+ __decorate([
214
+ vuetify.PropWatch({ type: [String, Number], default: 60 }),
215
+ __metadata("design:type", Object)
216
+ ], ZdCalendar.prototype, "intervalWidth", void 0);
217
+ __decorate([
218
+ vuetify.PropWatch({ type: String, default: 'pt-BR' }),
219
+ __metadata("design:type", String)
220
+ ], ZdCalendar.prototype, "locale", void 0);
221
+ __decorate([
222
+ vuetify.PropWatch({ type: [String, Number], default: 0 }),
223
+ __metadata("design:type", Object)
224
+ ], ZdCalendar.prototype, "localeFirstDayOfYear", void 0);
225
+ __decorate([
226
+ vuetify.PropWatch({ type: Number, default: 7 }),
227
+ __metadata("design:type", Number)
228
+ ], ZdCalendar.prototype, "maxDays", void 0);
229
+ __decorate([
230
+ vuetify.PropWatch({ type: [Number, String], default: 1 }),
231
+ __metadata("design:type", Object)
232
+ ], ZdCalendar.prototype, "minWeeks", void 0);
233
+ __decorate([
234
+ vuePropertyDecorator.Prop({ type: Function, default: null }),
235
+ __metadata("design:type", Object)
236
+ ], ZdCalendar.prototype, "monthFormat", void 0);
237
+ __decorate([
238
+ vuetify.PropWatch({ type: String, default: undefined }),
239
+ __metadata("design:type", String)
240
+ ], ZdCalendar.prototype, "now", void 0);
241
+ __decorate([
242
+ vuetify.PropWatch({ type: Boolean, default: true }),
243
+ __metadata("design:type", Boolean)
244
+ ], ZdCalendar.prototype, "shortIntervals", void 0);
245
+ __decorate([
246
+ vuetify.PropWatch({ type: Boolean, default: true }),
247
+ __metadata("design:type", Boolean)
248
+ ], ZdCalendar.prototype, "shortMonths", void 0);
249
+ __decorate([
250
+ vuetify.PropWatch({ type: Boolean, default: true }),
251
+ __metadata("design:type", Boolean)
252
+ ], ZdCalendar.prototype, "shortWeekDays", void 0);
253
+ __decorate([
254
+ vuePropertyDecorator.Prop({ type: Function, default: null }),
255
+ __metadata("design:type", Object)
256
+ ], ZdCalendar.prototype, "showIntervalLabel", void 0);
257
+ __decorate([
258
+ vuetify.PropWatch({ type: Boolean, default: true }),
259
+ __metadata("design:type", Boolean)
260
+ ], ZdCalendar.prototype, "showMonthOnFirst", void 0);
261
+ __decorate([
262
+ vuetify.PropWatch({ type: Boolean, default: false }),
263
+ __metadata("design:type", Boolean)
264
+ ], ZdCalendar.prototype, "showWeek", void 0);
265
+ __decorate([
266
+ vuetify.PropWatch({ type: [String, Number, Date], default: () => (new Date()) }),
267
+ __metadata("design:type", Object)
268
+ ], ZdCalendar.prototype, "start", void 0);
269
+ __decorate([
270
+ vuetify.PropWatch({ type: String, default: 'month' }),
271
+ __metadata("design:type", String)
272
+ ], ZdCalendar.prototype, "type", void 0);
273
+ __decorate([
274
+ vuetify.PropWatch({ type: [String, Number, Date], default: undefined }),
275
+ __metadata("design:type", Object)
276
+ ], ZdCalendar.prototype, "value", void 0);
277
+ __decorate([
278
+ vuePropertyDecorator.Prop({ type: Function, default: null }),
279
+ __metadata("design:type", Object)
280
+ ], ZdCalendar.prototype, "weekdayFormat", void 0);
281
+ __decorate([
282
+ vuePropertyDecorator.Prop({ type: [String, Array], default: () => [0, 1, 2, 3, 4, 5, 6, 7] }),
283
+ __metadata("design:type", Object)
284
+ ], ZdCalendar.prototype, "weekDay", void 0);
285
+ __decorate([
286
+ vuetify.PropWatch({ type: Object, default: undefined }),
287
+ __metadata("design:type", Object)
288
+ ], ZdCalendar.prototype, "selectTypeData", void 0);
289
+ ZdCalendar = __decorate([
290
+ vuePropertyDecorator.Component
291
+ ], ZdCalendar);
292
+ var script = ZdCalendar;
293
+
294
+ function normalizeComponent(template, style, script, scopeId, isFunctionalTemplate, moduleIdentifier /* server only */, shadowMode, createInjector, createInjectorSSR, createInjectorShadow) {
295
+ if (typeof shadowMode !== 'boolean') {
296
+ createInjectorSSR = createInjector;
297
+ createInjector = shadowMode;
298
+ shadowMode = false;
299
+ }
300
+ // Vue.extend constructor export interop.
301
+ const options = typeof script === 'function' ? script.options : script;
302
+ // render functions
303
+ if (template && template.render) {
304
+ options.render = template.render;
305
+ options.staticRenderFns = template.staticRenderFns;
306
+ options._compiled = true;
307
+ // functional template
308
+ if (isFunctionalTemplate) {
309
+ options.functional = true;
310
+ }
311
+ }
312
+ // scopedId
313
+ if (scopeId) {
314
+ options._scopeId = scopeId;
315
+ }
316
+ let hook;
317
+ if (moduleIdentifier) {
318
+ // server build
319
+ hook = function (context) {
320
+ // 2.3 injection
321
+ context =
322
+ context || // cached call
323
+ (this.$vnode && this.$vnode.ssrContext) || // stateful
324
+ (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext); // functional
325
+ // 2.2 with runInNewContext: true
326
+ if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') {
327
+ context = __VUE_SSR_CONTEXT__;
328
+ }
329
+ // inject component styles
330
+ if (style) {
331
+ style.call(this, createInjectorSSR(context));
332
+ }
333
+ // register component module identifier for async chunk inference
334
+ if (context && context._registeredComponents) {
335
+ context._registeredComponents.add(moduleIdentifier);
336
+ }
337
+ };
338
+ // used by ssr in case component is cached and beforeCreate
339
+ // never gets called
340
+ options._ssrRegister = hook;
341
+ }
342
+ else if (style) {
343
+ hook = shadowMode
344
+ ? function (context) {
345
+ style.call(this, createInjectorShadow(context, this.$root.$options.shadowRoot));
346
+ }
347
+ : function (context) {
348
+ style.call(this, createInjector(context));
349
+ };
350
+ }
351
+ if (hook) {
352
+ if (options.functional) {
353
+ // register for functional component in vue file
354
+ const originalRender = options.render;
355
+ options.render = function renderWithStyleInjection(h, context) {
356
+ hook.call(context);
357
+ return originalRender(h, context);
358
+ };
359
+ }
360
+ else {
361
+ // inject component registration as beforeCreate hook
362
+ const existing = options.beforeCreate;
363
+ options.beforeCreate = existing ? [].concat(existing, hook) : [hook];
364
+ }
365
+ }
366
+ return script;
367
+ }
368
+
369
+ const isOldIE = typeof navigator !== 'undefined' &&
370
+ /msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());
371
+ function createInjector(context) {
372
+ return (id, style) => addStyle(id, style);
373
+ }
374
+ let HEAD;
375
+ const styles = {};
376
+ function addStyle(id, css) {
377
+ const group = isOldIE ? css.media || 'default' : id;
378
+ const style = styles[group] || (styles[group] = { ids: new Set(), styles: [] });
379
+ if (!style.ids.has(id)) {
380
+ style.ids.add(id);
381
+ let code = css.source;
382
+ if (css.map) {
383
+ // https://developer.chrome.com/devtools/docs/javascript-debugging
384
+ // this makes source maps inside style tags work properly in Chrome
385
+ code += '\n/*# sourceURL=' + css.map.sources[0] + ' */';
386
+ // http://stackoverflow.com/a/26603875
387
+ code +=
388
+ '\n/*# sourceMappingURL=data:application/json;base64,' +
389
+ btoa(unescape(encodeURIComponent(JSON.stringify(css.map)))) +
390
+ ' */';
391
+ }
392
+ if (!style.element) {
393
+ style.element = document.createElement('style');
394
+ style.element.type = 'text/css';
395
+ if (css.media)
396
+ style.element.setAttribute('media', css.media);
397
+ if (HEAD === undefined) {
398
+ HEAD = document.head || document.getElementsByTagName('head')[0];
399
+ }
400
+ HEAD.appendChild(style.element);
401
+ }
402
+ if ('styleSheet' in style.element) {
403
+ style.styles.push(code);
404
+ style.element.styleSheet.cssText = style.styles
405
+ .filter(Boolean)
406
+ .join('\n');
407
+ }
408
+ else {
409
+ const index = style.ids.size - 1;
410
+ const textNode = document.createTextNode(code);
411
+ const nodes = style.element.childNodes;
412
+ if (nodes[index])
413
+ style.element.removeChild(nodes[index]);
414
+ if (nodes.length)
415
+ style.element.insertBefore(textNode, nodes[index]);
416
+ else
417
+ style.element.appendChild(textNode);
418
+ }
419
+ }
420
+ }
421
+
422
+ /* script */
423
+ const __vue_script__ = script;
424
+
425
+ /* template */
426
+ var __vue_render__ = function () {
427
+ var _vm = this;
428
+ var _h = _vm.$createElement;
429
+ var _c = _vm._self._c || _h;
430
+ return _c(
431
+ "v-row",
432
+ { staticClass: "fill-height zd-calendar-content" },
433
+ [
434
+ _c(
435
+ "v-col",
436
+ [
437
+ _c(
438
+ "div",
439
+ {
440
+ directives: [
441
+ {
442
+ name: "show",
443
+ rawName: "v-show",
444
+ value: _vm.instance.showHeader,
445
+ expression: "instance.showHeader",
446
+ },
447
+ ],
448
+ class: [
449
+ "zd-toolbar-calendar",
450
+ { "theme--dark": _vm.instance.dark || _vm.$vuetify.theme.dark },
451
+ {
452
+ "theme--light":
453
+ _vm.instance.light || !_vm.$vuetify.theme.dark,
454
+ },
455
+ ],
456
+ attrs: {
457
+ name: "toolbar_" + _vm.instance.name,
458
+ height: "64",
459
+ dark: _vm.instance.dark,
460
+ light: _vm.instance.light,
461
+ },
462
+ },
463
+ [
464
+ _c(
465
+ "div",
466
+ [
467
+ _c("zd-button", {
468
+ staticClass: "mr-4",
469
+ attrs: {
470
+ name: "setTodayButton_" + _vm.instance.name,
471
+ label: "$t(CALENDAR_TODAY)",
472
+ },
473
+ on: {
474
+ click: function ($event) {
475
+ return _vm.setToday()
476
+ },
477
+ },
478
+ }),
479
+ _vm._v(" "),
480
+ _c(
481
+ "zd-button",
482
+ _vm._b(
483
+ {
484
+ attrs: {
485
+ name: "prevButtonCalendar_" + _vm.instance.name,
486
+ },
487
+ on: {
488
+ click: function ($event) {
489
+ return _vm.prev()
490
+ },
491
+ },
492
+ },
493
+ "zd-button",
494
+ {
495
+ icon: true,
496
+ fab: true,
497
+ small: true,
498
+ iconName: "prev",
499
+ },
500
+ false
501
+ )
502
+ ),
503
+ _vm._v(" "),
504
+ _c(
505
+ "zd-button",
506
+ _vm._b(
507
+ {
508
+ attrs: {
509
+ name: "nextButtonCalendar_" + _vm.instance.name,
510
+ },
511
+ on: {
512
+ click: function ($event) {
513
+ return _vm.next()
514
+ },
515
+ },
516
+ },
517
+ "zd-button",
518
+ {
519
+ icon: true,
520
+ fab: true,
521
+ small: true,
522
+ iconName: "next",
523
+ },
524
+ false
525
+ )
526
+ ),
527
+ ],
528
+ 1
529
+ ),
530
+ _vm._v(" "),
531
+ _vm.instance.title
532
+ ? _c("div", [
533
+ _c("h3", [
534
+ _vm._v(
535
+ "\n\t\t\t\t\t\t" +
536
+ _vm._s(_vm.instance.title) +
537
+ "\n\t\t\t\t\t"
538
+ ),
539
+ ]),
540
+ ])
541
+ : _vm._e(),
542
+ _vm._v(" "),
543
+ _c(
544
+ "div",
545
+ [
546
+ _c(
547
+ "zd-select",
548
+ _vm._b(
549
+ {
550
+ ref: "selectCalendarType",
551
+ staticClass: "zd-select-calendar-type",
552
+ attrs: {
553
+ name: "selectCalendarType_" + _vm.instance.name,
554
+ },
555
+ on: {
556
+ change: function ($event) {
557
+ return _vm.setType(_vm.$refs.selectCalendarType)
558
+ },
559
+ },
560
+ },
561
+ "zd-select",
562
+ {
563
+ value: _vm.instance.type,
564
+ dataText: "name",
565
+ dataValue: "value",
566
+ clearable: false,
567
+ autocomplete: false,
568
+ showLabel: false,
569
+ showHelper: false,
570
+ dense: true,
571
+ returnObject: true,
572
+ dark: _vm.instance.dark,
573
+ light: _vm.instance.light,
574
+ datasource: _vm.instance.selectTypeData || {
575
+ data: [
576
+ { name: _vm.$t("CALENDAR_MONTH"), value: "month" },
577
+ { name: _vm.$t("CALENDAR_WEEK"), value: "week" },
578
+ { name: _vm.$t("CALENDAR_DAY"), value: "day" },
579
+ {
580
+ name: _vm.$t("CALENDAR_CATEGORY"),
581
+ value: "category",
582
+ },
583
+ { name: _vm.$t("CALENDAR_4DAYS"), value: "4day" },
584
+ ],
585
+ },
586
+ },
587
+ false
588
+ )
589
+ ),
590
+ ],
591
+ 1
592
+ ),
593
+ ]
594
+ ),
595
+ _vm._v(" "),
596
+ _c(
597
+ "v-sheet",
598
+ { attrs: { height: _vm.instance.height || 600 } },
599
+ [
600
+ _c("v-calendar", {
601
+ ref: "calendar",
602
+ attrs: {
603
+ categories: _vm.instance.categories,
604
+ "category-days": _vm.instance.categoryDays,
605
+ "category-for-invalid": _vm.instance.categoryForInvalid,
606
+ "category-hide-dynamic": _vm.instance.categoryHideDynamic,
607
+ "category-show-all": _vm.instance.categoryShowAll,
608
+ "category-text": _vm.instance.categoryText,
609
+ color: _vm.instance.color,
610
+ dark: _vm.instance.dark,
611
+ "day-format": _vm.instance.dayFormat,
612
+ end: _vm.instance.end,
613
+ "event-category": _vm.instance.eventCategory,
614
+ "event-color": _vm.instance.eventColor,
615
+ "event-end": _vm.instance.eventEnd,
616
+ "event-height": _vm.instance.eventHeight,
617
+ "event-margin-bottom": _vm.instance.eventMarginBottom,
618
+ "event-more": _vm.instance.eventMore,
619
+ "event-more-text": _vm.$t(_vm.instance.eventMoreText),
620
+ "event-name": _vm.instance.eventName,
621
+ "event-overlap-mode": _vm.instance.eventOverlapMode,
622
+ "event-overlap-threshold": _vm.instance.eventOverlapThreshold,
623
+ "event-start": _vm.instance.eventStart,
624
+ "event-text-color": _vm.instance.eventTextColor,
625
+ "event-timed": _vm.instance.eventTimed,
626
+ "hide-header": _vm.instance.hideHeader,
627
+ "interval-count": _vm.instance.intervalCount,
628
+ "interval-format": _vm.instance.intervalFormat,
629
+ "interval-height": _vm.instance.intervalHeight,
630
+ "interval-minutes": _vm.instance.intervalMinutes,
631
+ "interval-width": _vm.instance.intervalWidth,
632
+ events: _vm.instance.calendarEvents,
633
+ "first-interval": _vm.instance.firstInterval,
634
+ "first-style": _vm.instance.intervalStyle,
635
+ "first-time": _vm.instance.firstTime,
636
+ light: _vm.instance.light,
637
+ id: _vm.instance.name,
638
+ name: _vm.instance.name,
639
+ start: _vm.instance.start,
640
+ type: _vm.instance.type,
641
+ value: _vm.instance.value,
642
+ now: _vm.instance.now,
643
+ "show-week": _vm.instance.showWeek,
644
+ "show-month-on-first-day": _vm.instance.showMonthOnFirstDay,
645
+ "short-intervals": _vm.instance.shortIntervals,
646
+ "short-weekday": _vm.instance.shortWeekday,
647
+ "short-months": _vm.instance.shortMonths,
648
+ "short-week-days": _vm.instance.shortWeekDays,
649
+ locale: _vm.instance.locale,
650
+ "locale-first-day-of-year": _vm.instance.localeFirstDayOfYear,
651
+ "max-days": _vm.instance.maxDays,
652
+ "min-week": _vm.instance.minWeek,
653
+ "month-format": _vm.instance.monthFormat,
654
+ weekdays: _vm.instance.weekdays,
655
+ },
656
+ on: {
657
+ "click:more": _vm.viewDay,
658
+ "click:date": _vm.viewDay,
659
+ "click:event": _vm.showEvent,
660
+ },
661
+ model: {
662
+ value: _vm.instance.value,
663
+ callback: function ($$v) {
664
+ _vm.$set(_vm.instance, "value", $$v);
665
+ },
666
+ expression: "instance.value",
667
+ },
668
+ }),
669
+ _vm._v(" "),
670
+ _c(
671
+ "v-menu",
672
+ {
673
+ attrs: {
674
+ "close-on-content-click": false,
675
+ activator: _vm.selectedElement,
676
+ "offset-x": "",
677
+ },
678
+ model: {
679
+ value: _vm.selectedOpen,
680
+ callback: function ($$v) {
681
+ _vm.selectedOpen = $$v;
682
+ },
683
+ expression: "selectedOpen",
684
+ },
685
+ },
686
+ [
687
+ _c(
688
+ "zd-card",
689
+ {
690
+ attrs: {
691
+ name: "card_" + _vm.instance.name,
692
+ cssClass: "zd-pa-0",
693
+ dark: _vm.instance.dark,
694
+ light: _vm.instance.light,
695
+ },
696
+ },
697
+ [
698
+ _c(
699
+ "v-toolbar",
700
+ {
701
+ attrs: {
702
+ color: _vm.selectedEvent.color,
703
+ elevation: "0",
704
+ dark: "",
705
+ },
706
+ },
707
+ [
708
+ _c(
709
+ "zd-text",
710
+ _vm._b(
711
+ { attrs: { name: "title_" + _vm.instance.name } },
712
+ "zd-text",
713
+ {
714
+ text: _vm.selectedEvent.name,
715
+ tag: "h5",
716
+ },
717
+ false
718
+ )
719
+ ),
720
+ ],
721
+ 1
722
+ ),
723
+ _vm._v(" "),
724
+ _c(
725
+ "v-card-text",
726
+ [
727
+ _c(
728
+ "zd-text",
729
+ _vm._b(
730
+ {
731
+ attrs: {
732
+ name: "description_" + _vm.instance.name,
733
+ },
734
+ },
735
+ "zd-text",
736
+ {
737
+ text: _vm.selectedEvent.description,
738
+ tag: "p",
739
+ },
740
+ false
741
+ )
742
+ ),
743
+ ],
744
+ 1
745
+ ),
746
+ _vm._v(" "),
747
+ _c(
748
+ "v-card-actions",
749
+ [
750
+ _c("zd-button", {
751
+ attrs: {
752
+ name: "buttonClose_" + _vm.instance.name,
753
+ flat: "",
754
+ color: "secondary",
755
+ label: "$t(CALENDAR_CLOSE)",
756
+ },
757
+ on: {
758
+ click: function ($event) {
759
+ _vm.selectedOpen = !_vm.selectedOpen;
760
+ },
761
+ },
762
+ }),
763
+ ],
764
+ 1
765
+ ),
766
+ ],
767
+ 1
768
+ ),
769
+ ],
770
+ 1
771
+ ),
772
+ ],
773
+ 1
774
+ ),
775
+ ],
776
+ 1
777
+ ),
778
+ ],
779
+ 1
780
+ )
781
+ };
782
+ var __vue_staticRenderFns__ = [];
783
+ __vue_render__._withStripped = true;
784
+
785
+ /* style */
786
+ const __vue_inject_styles__ = function (inject) {
787
+ if (!inject) return
788
+ inject("data-v-64d4d2dc_0", { source: ".zd-calendar-content .zd-toolbar-calendar {\n display: flex;\n justify-items: center;\n justify-content: space-between;\n background-color: #fff;\n padding: 0.75rem 0.5rem;\n}\n.zd-calendar-content .zd-toolbar-calendar.theme--dark {\n background-color: #1e1e1e;\n}\n.zd-calendar-content .zd-toolbar-calendar div {\n align-items: center;\n display: flex;\n}", map: undefined, media: undefined });
789
+
790
+ };
791
+ /* scoped */
792
+ const __vue_scope_id__ = undefined;
793
+ /* module identifier */
794
+ const __vue_module_identifier__ = undefined;
795
+ /* functional template */
796
+ const __vue_is_functional_template__ = false;
797
+ /* style inject SSR */
798
+
799
+ /* style inject shadow dom */
800
+
801
+
802
+
803
+ const __vue_component__ = /*#__PURE__*/normalizeComponent(
804
+ { render: __vue_render__, staticRenderFns: __vue_staticRenderFns__ },
805
+ __vue_inject_styles__,
806
+ __vue_script__,
807
+ __vue_scope_id__,
808
+ __vue_is_functional_template__,
809
+ __vue_module_identifier__,
810
+ false,
811
+ createInjector,
812
+ undefined,
813
+ undefined
814
+ );
815
+
816
+ exports.ZdCalendar = __vue_component__;
817
+
818
+ Object.defineProperty(exports, '__esModule', { value: true });
819
+
820
+ }));