ngx-mat-tui-calendar 12.0.9 → 12.1.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.
- package/README.md +7 -6
- package/bundles/ngx-mat-tui-calendar.umd.js +148 -105
- package/bundles/ngx-mat-tui-calendar.umd.js.map +1 -1
- package/esm2015/lib/calendar-options.js +1 -1
- package/esm2015/lib/local-date.js +3 -2
- package/esm2015/lib/ngx-mat-tui-calendar.component.js +63 -36
- package/esm2015/lib/ngx-mat-tui-calendar.module.js +89 -61
- package/fesm2015/ngx-mat-tui-calendar.js +151 -96
- package/fesm2015/ngx-mat-tui-calendar.js.map +1 -1
- package/lib/calendar-options.d.ts +10 -0
- package/lib/ngx-mat-tui-calendar.component.d.ts +4 -4
- package/lib/ngx-mat-tui-calendar.module.d.ts +1 -1
- package/package.json +2 -4
@@ -4,7 +4,7 @@ import { BrowserModule } from '@angular/platform-browser';
|
|
4
4
|
import { FlexModule, FlexLayoutModule } from '@angular/flex-layout';
|
5
5
|
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
6
6
|
import { HttpClientModule } from '@angular/common/http';
|
7
|
-
import { NgModule } from '@angular/core';
|
7
|
+
import { CUSTOM_ELEMENTS_SCHEMA, NgModule } from '@angular/core';
|
8
8
|
import { OverlayModule } from '@angular/cdk/overlay';
|
9
9
|
// Angular Material Design modules
|
10
10
|
import { MatButtonModule } from '@angular/material/button';
|
@@ -29,6 +29,38 @@ import { NgxMatTuiCalendarComponent } from './ngx-mat-tui-calendar.component';
|
|
29
29
|
import { NgxMatTuiCalendarWrapperComponent } from './ngx-mat-tui-calendar-wrapper/ngx-mat-tui-calendar-wrapper.component';
|
30
30
|
import { NgxMatTuiCalendarEditorDialogComponent } from './ngx-mat-tui-calendar-editor-dialog/ngx-mat-tui-calendar-editor-dialog.component';
|
31
31
|
import * as i0 from "@angular/core";
|
32
|
+
// collect all of the above modules into an array
|
33
|
+
const importedModules = [
|
34
|
+
BrowserAnimationsModule,
|
35
|
+
BrowserModule,
|
36
|
+
FlexLayoutModule,
|
37
|
+
FlexModule,
|
38
|
+
FormsModule,
|
39
|
+
HttpClientModule,
|
40
|
+
OverlayModule,
|
41
|
+
ReactiveFormsModule,
|
42
|
+
MatButtonModule,
|
43
|
+
MatButtonToggleModule,
|
44
|
+
MatCardModule,
|
45
|
+
MatDatepickerModule,
|
46
|
+
MatDialogModule,
|
47
|
+
MatDividerModule,
|
48
|
+
MatFormFieldModule,
|
49
|
+
MatIconModule,
|
50
|
+
MatInputModule,
|
51
|
+
MatNativeDateModule,
|
52
|
+
MatRadioModule,
|
53
|
+
MatRippleModule,
|
54
|
+
MatSlideToggleModule,
|
55
|
+
MatToolbarModule,
|
56
|
+
FontAwesomeModule,
|
57
|
+
MatTimepickerModule,
|
58
|
+
];
|
59
|
+
const projectModules = [
|
60
|
+
NgxMatTuiCalendarComponent,
|
61
|
+
NgxMatTuiCalendarWrapperComponent,
|
62
|
+
NgxMatTuiCalendarEditorDialogComponent,
|
63
|
+
];
|
32
64
|
export class NgxMatTuiCalendarModule {
|
33
65
|
}
|
34
66
|
NgxMatTuiCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -57,79 +89,75 @@ NgxMatTuiCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
57
89
|
MatSlideToggleModule,
|
58
90
|
MatToolbarModule,
|
59
91
|
FontAwesomeModule,
|
60
|
-
MatTimepickerModule], exports: [
|
92
|
+
MatTimepickerModule], exports: [BrowserAnimationsModule,
|
93
|
+
BrowserModule,
|
94
|
+
FlexLayoutModule,
|
95
|
+
FlexModule,
|
96
|
+
FormsModule,
|
97
|
+
HttpClientModule,
|
98
|
+
OverlayModule,
|
99
|
+
ReactiveFormsModule,
|
100
|
+
MatButtonModule,
|
101
|
+
MatButtonToggleModule,
|
102
|
+
MatCardModule,
|
103
|
+
MatDatepickerModule,
|
104
|
+
MatDialogModule,
|
105
|
+
MatDividerModule,
|
106
|
+
MatFormFieldModule,
|
107
|
+
MatIconModule,
|
108
|
+
MatInputModule,
|
109
|
+
MatNativeDateModule,
|
110
|
+
MatRadioModule,
|
111
|
+
MatRippleModule,
|
112
|
+
MatSlideToggleModule,
|
113
|
+
MatToolbarModule,
|
114
|
+
FontAwesomeModule,
|
115
|
+
MatTimepickerModule, NgxMatTuiCalendarComponent,
|
61
116
|
NgxMatTuiCalendarWrapperComponent,
|
62
117
|
NgxMatTuiCalendarEditorDialogComponent] });
|
63
118
|
NgxMatTuiCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, imports: [[
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
]
|
119
|
+
...importedModules,
|
120
|
+
], BrowserAnimationsModule,
|
121
|
+
BrowserModule,
|
122
|
+
FlexLayoutModule,
|
123
|
+
FlexModule,
|
124
|
+
FormsModule,
|
125
|
+
HttpClientModule,
|
126
|
+
OverlayModule,
|
127
|
+
ReactiveFormsModule,
|
128
|
+
MatButtonModule,
|
129
|
+
MatButtonToggleModule,
|
130
|
+
MatCardModule,
|
131
|
+
MatDatepickerModule,
|
132
|
+
MatDialogModule,
|
133
|
+
MatDividerModule,
|
134
|
+
MatFormFieldModule,
|
135
|
+
MatIconModule,
|
136
|
+
MatInputModule,
|
137
|
+
MatNativeDateModule,
|
138
|
+
MatRadioModule,
|
139
|
+
MatRippleModule,
|
140
|
+
MatSlideToggleModule,
|
141
|
+
MatToolbarModule,
|
142
|
+
FontAwesomeModule,
|
143
|
+
MatTimepickerModule] });
|
89
144
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, decorators: [{
|
90
145
|
type: NgModule,
|
91
146
|
args: [{
|
92
147
|
declarations: [
|
93
|
-
|
94
|
-
NgxMatTuiCalendarWrapperComponent,
|
95
|
-
NgxMatTuiCalendarEditorDialogComponent,
|
148
|
+
...projectModules,
|
96
149
|
],
|
97
150
|
imports: [
|
98
|
-
|
99
|
-
BrowserModule,
|
100
|
-
FlexLayoutModule,
|
101
|
-
FlexModule,
|
102
|
-
FormsModule,
|
103
|
-
HttpClientModule,
|
104
|
-
OverlayModule,
|
105
|
-
ReactiveFormsModule,
|
106
|
-
MatButtonModule,
|
107
|
-
MatButtonToggleModule,
|
108
|
-
MatCardModule,
|
109
|
-
MatDatepickerModule,
|
110
|
-
MatDialogModule,
|
111
|
-
MatDividerModule,
|
112
|
-
MatFormFieldModule,
|
113
|
-
MatIconModule,
|
114
|
-
MatInputModule,
|
115
|
-
MatNativeDateModule,
|
116
|
-
MatRadioModule,
|
117
|
-
MatRippleModule,
|
118
|
-
MatSlideToggleModule,
|
119
|
-
MatToolbarModule,
|
120
|
-
FontAwesomeModule,
|
121
|
-
MatTimepickerModule,
|
151
|
+
...importedModules,
|
122
152
|
],
|
123
153
|
exports: [
|
124
|
-
|
125
|
-
|
126
|
-
NgxMatTuiCalendarEditorDialogComponent,
|
154
|
+
...importedModules,
|
155
|
+
...projectModules,
|
127
156
|
],
|
128
157
|
entryComponents: [
|
129
|
-
|
130
|
-
NgxMatTuiCalendarWrapperComponent,
|
131
|
-
NgxMatTuiCalendarEditorDialogComponent,
|
158
|
+
...projectModules,
|
132
159
|
],
|
160
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
133
161
|
}]
|
134
162
|
}] });
|
135
|
-
//# sourceMappingURL=data:application/json;base64,
|
163
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zIE5neE1hdFR1aUNhbGVuZGFyTW9kdWxlIHsgfVxyXG4iXX0=
|
@@ -5,7 +5,7 @@ import * as i7 from '@angular/forms';
|
|
5
5
|
import { FormGroup, FormControl, Validators, FormsModule, ReactiveFormsModule } from '@angular/forms';
|
6
6
|
import { HttpClientModule } from '@angular/common/http';
|
7
7
|
import * as i0 from '@angular/core';
|
8
|
-
import { Component, Inject, ViewEncapsulation, EventEmitter, Output, Input, NgModule, Injectable } from '@angular/core';
|
8
|
+
import { Component, Inject, ViewEncapsulation, EventEmitter, Output, Input, NgModule, CUSTOM_ELEMENTS_SCHEMA, Injectable } from '@angular/core';
|
9
9
|
import { OverlayModule } from '@angular/cdk/overlay';
|
10
10
|
import * as i6 from '@angular/material/button';
|
11
11
|
import { MatButtonModule } from '@angular/material/button';
|
@@ -84,8 +84,9 @@ class LocalDate {
|
|
84
84
|
}
|
85
85
|
static convertNumbersToDate({ year, month, day, hours, minutes, seconds, milliseconds }) {
|
86
86
|
// month = 1 to 12
|
87
|
-
// start with today's *local* date. this
|
87
|
+
// start with today's *local* date. this is really important
|
88
88
|
let date = new Date();
|
89
|
+
date.setDate(1); // very important
|
89
90
|
date.setFullYear(year);
|
90
91
|
date.setMonth((month == null) ? 0 : month - 1);
|
91
92
|
date.setDate((day == null) ? 1 : day);
|
@@ -309,23 +310,22 @@ class NgxMatTuiCalendarComponent {
|
|
309
310
|
// we slice off the first color since it is gray
|
310
311
|
this.colors = distinctColors({ lightMin: 70, count: 15 }).slice(1);
|
311
312
|
this.colorIndex = 0;
|
312
|
-
this.
|
313
|
-
this.appliedOptions = this.getDefaultOptions();
|
313
|
+
this.calendarIdDefault = "main";
|
314
314
|
}
|
315
315
|
ngOnInit() {
|
316
316
|
// console.warn(`calendar.component.ts: ngOnit`)
|
317
|
-
this.
|
317
|
+
this.setOptions(this.options);
|
318
|
+
this.createTUICalendar(this.appliedOptions.ioptions);
|
318
319
|
this.bindCallbacks();
|
320
|
+
this.calendar.toggleScheduleView(true);
|
321
|
+
this.calendar.render(true);
|
322
|
+
this.calendar.toggleScheduleView(true);
|
319
323
|
}
|
320
324
|
ngOnChanges(changes) {
|
321
|
-
// console.warn(changes);
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
let options = changes.options.currentValue;
|
326
|
-
this.setOptions(options);
|
327
|
-
}
|
328
|
-
}
|
325
|
+
// console.warn(`ngOnChanges: `, changes);
|
326
|
+
// console.warn(`change.option:`, changes.options);
|
327
|
+
let options = changes.options.currentValue;
|
328
|
+
this.setOptions(options);
|
329
329
|
}
|
330
330
|
ngOnDestroy() {
|
331
331
|
this.calendar.destroy();
|
@@ -350,15 +350,19 @@ class NgxMatTuiCalendarComponent {
|
|
350
350
|
date.setMonth(date.getMonth() + months); // date class does the modular arithmetic
|
351
351
|
date.setDate(date.getDate() + days); // date class does the modular arithmetic
|
352
352
|
this.calendar.setDate(date);
|
353
|
+
this.calendar.toggleScheduleView(true);
|
353
354
|
}
|
354
355
|
onCalendarPrev() {
|
355
356
|
this.calendar.prev();
|
357
|
+
this.calendar.toggleScheduleView(true);
|
356
358
|
}
|
357
359
|
onCalendarToday() {
|
358
360
|
this.calendar.today();
|
361
|
+
this.calendar.toggleScheduleView(true);
|
359
362
|
}
|
360
363
|
onCalendarNext() {
|
361
364
|
this.calendar.next();
|
365
|
+
this.calendar.toggleScheduleView(true);
|
362
366
|
}
|
363
367
|
onCalendarLongNext() {
|
364
368
|
let date = this.calendar.getDate().toDate();
|
@@ -380,15 +384,20 @@ class NgxMatTuiCalendarComponent {
|
|
380
384
|
date.setMonth(date.getMonth() + months); // date class does the modular arithmetic
|
381
385
|
date.setDate(date.getDate() + days); // date class does the modular arithmetic
|
382
386
|
this.calendar.setDate(date);
|
387
|
+
this.calendar.toggleScheduleView(true);
|
383
388
|
}
|
384
389
|
onMonthView() {
|
385
390
|
this.calendar.changeView('month');
|
391
|
+
this.calendar.render(true); // <-- so that selection is cleared
|
386
392
|
}
|
387
393
|
onWeekView() {
|
394
|
+
// console.log(`onWeekView`)
|
388
395
|
this.calendar.changeView('week');
|
396
|
+
this.calendar.render(true); // <-- so that selection is cleared
|
389
397
|
}
|
390
398
|
onDayView() {
|
391
399
|
this.calendar.changeView('day');
|
400
|
+
this.calendar.render(true); // <-- so that selection is cleared
|
392
401
|
}
|
393
402
|
getDate() {
|
394
403
|
let date = this.calendar.getDate();
|
@@ -398,11 +407,12 @@ class NgxMatTuiCalendarComponent {
|
|
398
407
|
});
|
399
408
|
return str;
|
400
409
|
}
|
401
|
-
createTUICalendar() {
|
402
|
-
let ioptions = this.preprocessIOptions(
|
410
|
+
createTUICalendar(iopts) {
|
411
|
+
let ioptions = this.preprocessIOptions(iopts);
|
403
412
|
// console.warn(`calendar.component.ts: createTUICalendar: ioptions:`, ioptions);
|
404
413
|
this.calendar = new Calendar('#calendar', ioptions);
|
405
414
|
// console.warn(`calendar.component.ts: createTUICalendar: this.calendar:`, this.calendar);
|
415
|
+
this.calendar.toggleScheduleView(true);
|
406
416
|
}
|
407
417
|
bindCallbacks() {
|
408
418
|
this.bindAfterRenderSchedule();
|
@@ -512,7 +522,7 @@ class NgxMatTuiCalendarComponent {
|
|
512
522
|
let end = LocalDate.convertToJsDate(args.end);
|
513
523
|
let schedule = {
|
514
524
|
id,
|
515
|
-
calendarId: (args.calendarId == null) ? this.
|
525
|
+
calendarId: (args.calendarId == null) ? this.calendarIdDefault : args.calendarId,
|
516
526
|
title: args.title,
|
517
527
|
start: start,
|
518
528
|
end: end,
|
@@ -532,23 +542,23 @@ class NgxMatTuiCalendarComponent {
|
|
532
542
|
}
|
533
543
|
updateSchedule(schedule) {
|
534
544
|
// console.log(`event-calendar.component.ts: updateSchedule:`, schedule);
|
535
|
-
let calendarId = (schedule.calendarId == null) ? this.
|
545
|
+
let calendarId = (schedule.calendarId == null) ? this.calendarIdDefault : schedule.calendarId;
|
536
546
|
this.calendar.updateSchedule(schedule.id, calendarId, schedule, false);
|
537
547
|
return this.calendar.getSchedule(schedule.id, calendarId);
|
538
548
|
}
|
539
549
|
getSchedule(args) {
|
540
550
|
// console.log(`event-calendar.component.ts: getSchedule:`, schedule);
|
541
|
-
let calendarId = (args.calendarId == null) ? this.
|
551
|
+
let calendarId = (args.calendarId == null) ? this.calendarIdDefault : args.calendarId;
|
542
552
|
return this.calendar.getSchedule(args.id, calendarId);
|
543
553
|
}
|
544
554
|
deleteScheduleAndNotifyParent(args) {
|
545
555
|
this.deleteSchedule(args);
|
546
|
-
let calendarId = (args.calendarId == null) ? this.
|
556
|
+
let calendarId = (args.calendarId == null) ? this.calendarIdDefault : args.calendarId;
|
547
557
|
this.userDeletedSchedule.emit({ id: args.id, calendarId });
|
548
558
|
}
|
549
559
|
deleteSchedule(args) {
|
550
560
|
// console.log(`event-calendar.component.ts: deleteSchedule:`, schedule);
|
551
|
-
let calendarId = (args.calendarId == null) ? this.
|
561
|
+
let calendarId = (args.calendarId == null) ? this.calendarIdDefault : args.calendarId;
|
552
562
|
this.calendar.deleteSchedule(args.id, calendarId, false);
|
553
563
|
}
|
554
564
|
deleteAllSchedules() {
|
@@ -588,18 +598,42 @@ class NgxMatTuiCalendarComponent {
|
|
588
598
|
}
|
589
599
|
});
|
590
600
|
}
|
591
|
-
|
592
|
-
|
593
|
-
|
594
|
-
|
595
|
-
|
596
|
-
|
601
|
+
setDefaultOptions() {
|
602
|
+
this.setOptions();
|
603
|
+
}
|
604
|
+
setOptions(o) {
|
605
|
+
const get = (object, path, defaultValue) => {
|
606
|
+
let value = path
|
607
|
+
.split('.')
|
608
|
+
.reduce((o, p) => o[p], object);
|
609
|
+
return (value !== undefined) ? value : defaultValue;
|
610
|
+
};
|
611
|
+
let options = {
|
612
|
+
darkMode: get(o, "darkMode", false),
|
613
|
+
themeClass: get(o, "themeClass", null),
|
614
|
+
ioptions: (o && o.ioptions) ? this.setIOptions(o.ioptions) : this.getDefaultIOptions(),
|
615
|
+
buttons: {
|
616
|
+
previous: get(o, "buttons.previous", true),
|
617
|
+
next: get(o, "buttons.next", true),
|
618
|
+
today: get(o, "buttons.today", true),
|
619
|
+
longPrevious: get(o, "buttons.longPrevious", true),
|
620
|
+
longNext: get(o, "buttons.longNext", true),
|
621
|
+
month: get(o, "buttons.month", true),
|
622
|
+
week: get(o, "buttons.week", true),
|
623
|
+
day: get(o, "buttons.day", true),
|
624
|
+
}
|
625
|
+
};
|
626
|
+
this.appliedOptions = options;
|
627
|
+
// console.warn(`setOptions: `, this.appliedOptions);
|
597
628
|
}
|
598
629
|
setIOptions(ioptionsIn) {
|
599
630
|
let ioptions = this.preprocessIOptions(ioptionsIn);
|
600
|
-
this.calendar
|
601
|
-
|
602
|
-
|
631
|
+
if (this.calendar) {
|
632
|
+
this.calendar.setOptions(ioptions);
|
633
|
+
this.calendar.setTheme(ioptions.theme);
|
634
|
+
this.calendar.render(true);
|
635
|
+
this.calendar.toggleScheduleView(true);
|
636
|
+
}
|
603
637
|
return ioptions;
|
604
638
|
}
|
605
639
|
preprocessIOptions(ioptions) {
|
@@ -617,13 +651,6 @@ class NgxMatTuiCalendarComponent {
|
|
617
651
|
}
|
618
652
|
return ioptions;
|
619
653
|
}
|
620
|
-
getDefaultOptions() {
|
621
|
-
return {
|
622
|
-
darkMode: false,
|
623
|
-
themeClass: null,
|
624
|
-
ioptions: this.getDefaultIOptions(),
|
625
|
-
};
|
626
|
-
}
|
627
654
|
getDefaultIOptions() {
|
628
655
|
return {
|
629
656
|
defaultView: 'month',
|
@@ -782,7 +809,7 @@ class NgxMatTuiCalendarComponent {
|
|
782
809
|
}
|
783
810
|
}
|
784
811
|
NgxMatTuiCalendarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarComponent, deps: [{ token: i1.MatDialog }], target: i0.ɵɵFactoryTarget.Component });
|
785
|
-
NgxMatTuiCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: NgxMatTuiCalendarComponent, selector: "ngx-mat-tui-calendar", inputs: { options: "options" }, outputs: { userCreatedSchedule: "userCreatedSchedule", userUpdatedSchedule: "userUpdatedSchedule", userDeletedSchedule: "userDeletedSchedule" }, usesOnChanges: true, ngImport: i0, template: "<section class=\"content-container\">\r\n <!-- These divs are here so that we can read the theme colors for the tui theme -->\r\n <!-- The outer div gives the default color for when user does not provide an Angular theme -->\r\n <div style=\"color: blue;\"> <div id=\"theme-primary\"></div></div>\r\n <div style=\"color: blue;\"> <div id=\"theme-highlight\"></div></div>\r\n <div style=\"color: blue;\"> <div id=\"theme-accent\"></div></div>\r\n <div style=\"color: red;\"> <div id=\"theme-warn\"></div></div>\r\n <div style=\"color: rgba(0, 0, 255, 0.2);\"> <div id=\"theme-primary-shaded\"></div></div>\r\n <div style=\"color: #3e3e3e;\"> <div id=\"theme-foreground\"></div></div>\r\n <div style=\"color: #e0e0e0;\"> <div id=\"theme-divider\"></div></div>\r\n <div style=\"color: white;\"> <div id=\"theme-background\"></div></div>\r\n \r\n <div class=\"calendar-container\">\r\n <!-- calendar titlebar -->\r\n <mat-toolbar class=\"menu-bar\" color=\"primary\">\r\n <!-- <div style=\"align-self: center;display: flex;\r\n align-items: center;\r\n justify-content: flex-start;\"> -->\r\n <div style=\"display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n width: 100%; \">\r\n <div class=\"left-div\">\r\n <!-- LEFT -->\r\n <button mat-button \r\n class=\"navigation-button\"\r\n style=\"margin-left: 0px; margin-right: 0px; font-size: 1.5rem !important;\" \r\n (click)=\"onCalendarLongPrev()\">\r\n <fa-icon [icon]=\"iconLongPrev\"></fa-icon>\r\n </button>\r\n <button mat-button
|
812
|
+
NgxMatTuiCalendarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: NgxMatTuiCalendarComponent, selector: "ngx-mat-tui-calendar", inputs: { options: "options" }, outputs: { userCreatedSchedule: "userCreatedSchedule", userUpdatedSchedule: "userUpdatedSchedule", userDeletedSchedule: "userDeletedSchedule" }, usesOnChanges: true, ngImport: i0, template: "<section class=\"content-container\">\r\n <!-- These divs are here so that we can read the theme colors for the tui theme -->\r\n <!-- The outer div gives the default color for when user does not provide an Angular theme -->\r\n <div style=\"color: blue;\"> <div id=\"theme-primary\"></div></div>\r\n <div style=\"color: blue;\"> <div id=\"theme-highlight\"></div></div>\r\n <div style=\"color: blue;\"> <div id=\"theme-accent\"></div></div>\r\n <div style=\"color: red;\"> <div id=\"theme-warn\"></div></div>\r\n <div style=\"color: rgba(0, 0, 255, 0.2);\"> <div id=\"theme-primary-shaded\"></div></div>\r\n <div style=\"color: #3e3e3e;\"> <div id=\"theme-foreground\"></div></div>\r\n <div style=\"color: #e0e0e0;\"> <div id=\"theme-divider\"></div></div>\r\n <div style=\"color: white;\"> <div id=\"theme-background\"></div></div>\r\n \r\n <div class=\"calendar-container\">\r\n <!-- calendar titlebar -->\r\n <mat-toolbar class=\"menu-bar\" color=\"primary\">\r\n <!-- <div style=\"align-self: center;display: flex;\r\n align-items: center;\r\n justify-content: flex-start;\"> -->\r\n <div style=\"display: flex;\r\n flex-direction: row;\r\n justify-content: space-between;\r\n width: 100%; \">\r\n <div class=\"left-div\">\r\n <!-- LEFT -->\r\n <button mat-button *ngIf=\"appliedOptions.buttons.longPrevious\"\r\n class=\"navigation-button\"\r\n style=\"margin-left: 0px; margin-right: 0px; font-size: 1.5rem !important;\" \r\n (click)=\"onCalendarLongPrev()\">\r\n <fa-icon [icon]=\"iconLongPrev\"></fa-icon>\r\n </button>\r\n <button mat-button *ngIf=\"appliedOptions.buttons.previous\"\r\n class=\"navigation-button\" \r\n style=\"margin-left: 0px; margin-right: 0px; font-size: 2rem !important;\" \r\n (click)=\"onCalendarPrev()\">\r\n <fa-icon [icon]=\"iconPrev\"></fa-icon>\r\n </button>\r\n <button mat-button *ngIf=\"appliedOptions.buttons.today\"\r\n class=\"navigation-button\"\r\n style=\"margin-left: 0px; margin-right: 0px; font-size: 1.7rem !important;\" \r\n (click)=\"onCalendarToday()\">\r\n <fa-icon [icon]=\"iconToday\"></fa-icon>\r\n </button>\r\n <button mat-button *ngIf=\"appliedOptions.buttons.next\"\r\n class=\"navigation-button\" \r\n style=\"margin-left: 0px; margin-right: 0px; font-size: 2rem !important;\" \r\n (click)=\"onCalendarNext()\">\r\n <fa-icon [icon]=\"iconNext\"></fa-icon>\r\n </button>\r\n <button mat-button *ngIf=\"appliedOptions.buttons.longNext\"\r\n class=\"navigation-button\"\r\n style=\"margin-left: 0px; margin-right: 0px; font-size: 1.5rem !important;\" \r\n (click)=\"onCalendarLongNext()\">\r\n <fa-icon [icon]=\"iconLongNext\"></fa-icon>\r\n </button>\r\n </div>\r\n <div class=\"center-div\">\r\n <!-- CENTER -->\r\n <span class=\"event-calendar-title\">{{ getDate() }}</span>\r\n </div>\r\n <div class=\"right-div\">\r\n \r\n <!-- RIGHT -->\r\n <mat-button-toggle-group [hidden]=\"!appliedOptions.buttons.month && !appliedOptions.buttons.week && !appliedOptions.buttons.day\"\r\n class=\"view-button\" value=\"month\" id=\"@+id/toggleButton\" layout_width=\"wrap_content\"\r\n layout_height=\"wrap_content\">\r\n <mat-button-toggle *ngIf=\"appliedOptions.buttons.month\" mat-button value=\"month\" class=\"view-button\" (click)=\"onMonthView()\">\r\n <fa-icon [icon]=\"iconByMonth\"></fa-icon>\r\n </mat-button-toggle>\r\n <mat-button-toggle *ngIf=\"appliedOptions.buttons.week\" mat-button value=\"week\" class=\"view-button\" (click)=\"onWeekView()\">\r\n <fa-icon [icon]=\"iconByWeek\"></fa-icon>\r\n </mat-button-toggle>\r\n <mat-button-toggle *ngIf=\"appliedOptions.buttons.day\" mat-button value=\"day\" class=\"view-button\" (click)=\"onDayView()\">\r\n <fa-icon [icon]=\"iconByDay\"></fa-icon>\r\n </mat-button-toggle>\r\n </mat-button-toggle-group>\r\n </div>\r\n </div>\r\n </mat-toolbar>\r\n <ngx-mat-tui-calendar-wrapper></ngx-mat-tui-calendar-wrapper>\r\n </div>\r\n \r\n </section>\r\n", styles: [".calendar-container{transform-origin:top left}.menu-bar{display:flex;flex-direction:column;align-items:center;justify-content:center;font-size:2rem!important}.mat-button{font-size:1.1rem!important}.mat-button.navigation-button{padding:0;min-width:32px}.left-div{width:33%;float:left;display:flex;white-space:nowrap;vertical-align:middle}.center-div{width:33%;float:right;text-align:center;white-space:nowrap;vertical-align:middle}.event-calendar-title{font-size:2rem;vertical-align:middle}.right-div{width:33%;display:flex;white-space:nowrap;vertical-align:middle;flex-flow:row-reverse}@media screen and (max-width: 599px){.left-div{transform:scale(.75);transform-origin:center left}.center-div{transform:scale(.5)}.right-div{transform:scale(1);transform-origin:center right}.right-div .mat-button-toggle-group.view-button{font-size:1.1rem!important}.right-div ::ng-deep .mat-button-toggle-label-content{padding:0 8px!important}}.mat-button-toggle-group.view-button{height:36px;font-size:1.25rem!important}.view-button{align-items:center}::ng-deep .mat-button-toggle-label-content{padding:0 10px!important}\n"], components: [{ type: i2$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i6.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i4$1.FaIconComponent, selector: "fa-icon", inputs: ["classes", "icon", "title", "spin", "pulse", "mask", "styles", "flip", "size", "pull", "border", "inverse", "symbol", "rotate", "fixedWidth", "transform", "a11yRole"] }, { type: i5$1.MatButtonToggle, selector: "mat-button-toggle", inputs: ["disableRipple", "aria-labelledby", "tabIndex", "appearance", "checked", "disabled", "id", "name", "aria-label", "value"], outputs: ["change"], exportAs: ["matButtonToggle"] }, { type: NgxMatTuiCalendarWrapperComponent, selector: "ngx-mat-tui-calendar-wrapper" }], directives: [{ type: i9.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5$1.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }] });
|
786
813
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarComponent, decorators: [{
|
787
814
|
type: Component,
|
788
815
|
args: [{
|
@@ -803,6 +830,38 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImpo
|
|
803
830
|
}] } });
|
804
831
|
|
805
832
|
// Angular modules
|
833
|
+
// collect all of the above modules into an array
|
834
|
+
const importedModules = [
|
835
|
+
BrowserAnimationsModule,
|
836
|
+
BrowserModule,
|
837
|
+
FlexLayoutModule,
|
838
|
+
FlexModule,
|
839
|
+
FormsModule,
|
840
|
+
HttpClientModule,
|
841
|
+
OverlayModule,
|
842
|
+
ReactiveFormsModule,
|
843
|
+
MatButtonModule,
|
844
|
+
MatButtonToggleModule,
|
845
|
+
MatCardModule,
|
846
|
+
MatDatepickerModule,
|
847
|
+
MatDialogModule,
|
848
|
+
MatDividerModule,
|
849
|
+
MatFormFieldModule,
|
850
|
+
MatIconModule,
|
851
|
+
MatInputModule,
|
852
|
+
MatNativeDateModule,
|
853
|
+
MatRadioModule,
|
854
|
+
MatRippleModule,
|
855
|
+
MatSlideToggleModule,
|
856
|
+
MatToolbarModule,
|
857
|
+
FontAwesomeModule,
|
858
|
+
MatTimepickerModule,
|
859
|
+
];
|
860
|
+
const projectModules = [
|
861
|
+
NgxMatTuiCalendarComponent,
|
862
|
+
NgxMatTuiCalendarWrapperComponent,
|
863
|
+
NgxMatTuiCalendarEditorDialogComponent,
|
864
|
+
];
|
806
865
|
class NgxMatTuiCalendarModule {
|
807
866
|
}
|
808
867
|
NgxMatTuiCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
@@ -831,79 +890,75 @@ NgxMatTuiCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0",
|
|
831
890
|
MatSlideToggleModule,
|
832
891
|
MatToolbarModule,
|
833
892
|
FontAwesomeModule,
|
834
|
-
MatTimepickerModule], exports: [
|
893
|
+
MatTimepickerModule], exports: [BrowserAnimationsModule,
|
894
|
+
BrowserModule,
|
895
|
+
FlexLayoutModule,
|
896
|
+
FlexModule,
|
897
|
+
FormsModule,
|
898
|
+
HttpClientModule,
|
899
|
+
OverlayModule,
|
900
|
+
ReactiveFormsModule,
|
901
|
+
MatButtonModule,
|
902
|
+
MatButtonToggleModule,
|
903
|
+
MatCardModule,
|
904
|
+
MatDatepickerModule,
|
905
|
+
MatDialogModule,
|
906
|
+
MatDividerModule,
|
907
|
+
MatFormFieldModule,
|
908
|
+
MatIconModule,
|
909
|
+
MatInputModule,
|
910
|
+
MatNativeDateModule,
|
911
|
+
MatRadioModule,
|
912
|
+
MatRippleModule,
|
913
|
+
MatSlideToggleModule,
|
914
|
+
MatToolbarModule,
|
915
|
+
FontAwesomeModule,
|
916
|
+
MatTimepickerModule, NgxMatTuiCalendarComponent,
|
835
917
|
NgxMatTuiCalendarWrapperComponent,
|
836
918
|
NgxMatTuiCalendarEditorDialogComponent] });
|
837
919
|
NgxMatTuiCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, imports: [[
|
838
|
-
|
839
|
-
|
840
|
-
|
841
|
-
|
842
|
-
|
843
|
-
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
|
850
|
-
|
851
|
-
|
852
|
-
|
853
|
-
|
854
|
-
|
855
|
-
|
856
|
-
|
857
|
-
|
858
|
-
|
859
|
-
|
860
|
-
|
861
|
-
|
862
|
-
]
|
920
|
+
...importedModules,
|
921
|
+
], BrowserAnimationsModule,
|
922
|
+
BrowserModule,
|
923
|
+
FlexLayoutModule,
|
924
|
+
FlexModule,
|
925
|
+
FormsModule,
|
926
|
+
HttpClientModule,
|
927
|
+
OverlayModule,
|
928
|
+
ReactiveFormsModule,
|
929
|
+
MatButtonModule,
|
930
|
+
MatButtonToggleModule,
|
931
|
+
MatCardModule,
|
932
|
+
MatDatepickerModule,
|
933
|
+
MatDialogModule,
|
934
|
+
MatDividerModule,
|
935
|
+
MatFormFieldModule,
|
936
|
+
MatIconModule,
|
937
|
+
MatInputModule,
|
938
|
+
MatNativeDateModule,
|
939
|
+
MatRadioModule,
|
940
|
+
MatRippleModule,
|
941
|
+
MatSlideToggleModule,
|
942
|
+
MatToolbarModule,
|
943
|
+
FontAwesomeModule,
|
944
|
+
MatTimepickerModule] });
|
863
945
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0, type: NgxMatTuiCalendarModule, decorators: [{
|
864
946
|
type: NgModule,
|
865
947
|
args: [{
|
866
948
|
declarations: [
|
867
|
-
|
868
|
-
NgxMatTuiCalendarWrapperComponent,
|
869
|
-
NgxMatTuiCalendarEditorDialogComponent,
|
949
|
+
...projectModules,
|
870
950
|
],
|
871
951
|
imports: [
|
872
|
-
|
873
|
-
BrowserModule,
|
874
|
-
FlexLayoutModule,
|
875
|
-
FlexModule,
|
876
|
-
FormsModule,
|
877
|
-
HttpClientModule,
|
878
|
-
OverlayModule,
|
879
|
-
ReactiveFormsModule,
|
880
|
-
MatButtonModule,
|
881
|
-
MatButtonToggleModule,
|
882
|
-
MatCardModule,
|
883
|
-
MatDatepickerModule,
|
884
|
-
MatDialogModule,
|
885
|
-
MatDividerModule,
|
886
|
-
MatFormFieldModule,
|
887
|
-
MatIconModule,
|
888
|
-
MatInputModule,
|
889
|
-
MatNativeDateModule,
|
890
|
-
MatRadioModule,
|
891
|
-
MatRippleModule,
|
892
|
-
MatSlideToggleModule,
|
893
|
-
MatToolbarModule,
|
894
|
-
FontAwesomeModule,
|
895
|
-
MatTimepickerModule,
|
952
|
+
...importedModules,
|
896
953
|
],
|
897
954
|
exports: [
|
898
|
-
|
899
|
-
|
900
|
-
NgxMatTuiCalendarEditorDialogComponent,
|
955
|
+
...importedModules,
|
956
|
+
...projectModules,
|
901
957
|
],
|
902
958
|
entryComponents: [
|
903
|
-
|
904
|
-
NgxMatTuiCalendarWrapperComponent,
|
905
|
-
NgxMatTuiCalendarEditorDialogComponent,
|
959
|
+
...projectModules,
|
906
960
|
],
|
961
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA],
|
907
962
|
}]
|
908
963
|
}] });
|
909
964
|
|