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 CHANGED
@@ -4,7 +4,6 @@
4
4
  [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
5
5
  [![Development Status](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active)
6
6
  [![GitHub stars](https://img.shields.io/github/stars/ron2015schmitt/ngx-mat-tui-calendar.svg)](https://github.com/ron2015schmitt/ngx-mat-tui-calendar/stargazers)
7
- ![GitHub downloads all releases](https://img.shields.io/github/downloads/ron2015schmitt/ngx-mat-tui-calendar/total)
8
7
  ![GitHub release (latest by date)](https://img.shields.io/github/v/release/ron2015schmitt/ngx-mat-tui-calendar)
9
8
 
10
9
  [![npm](https://img.shields.io/npm/v/ngx-mat-tui-calendar?label=npm%20package)](https://www.npmjs.com/package/ngx-mat-tui-calendar)
@@ -28,6 +27,9 @@ The top-level `angular.json` and `package.json` files are used for building both
28
27
 
29
28
  This repo was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.3. Angular ^12.2 requires node ^v14.15 (npm ^v6.14).
30
29
 
30
+ # Online Demo
31
+
32
+ https://ngx-mat-tui-calendar-demo.netlify.app/
31
33
 
32
34
  # UI
33
35
  ## Month View
@@ -48,7 +50,7 @@ This repo was generated with [Angular CLI](https://github.com/angular/angular-cl
48
50
 
49
51
  Install via npm:
50
52
  ```bash
51
- npm i --save ngx-mat-tui-calendar
53
+ npm i --save ngx-mat-tui-calendar --legacy-peer-deps
52
54
  ```
53
55
  which will add `ngx-mat-tui-calendar`, as well as all of its dependencies to your `package.json` file.
54
56
 
@@ -71,12 +73,11 @@ Set up an [Angular theme](https://material.angular.io/guide/theming). For examp
71
73
 
72
74
  A demonstration of the simple usage described above can be found at repo https://github.com/ron2015schmitt/ngx-mat-tui-calendar-quickstart
73
75
 
74
- ## Demo Repo
76
+ ### Demo Repo
75
77
 
76
78
  A more extensive demonstration of usage can be found at repo https://github.com/ron2015schmitt/ngx-mat-tui-calendar-demo
77
79
 
78
- ### Stackblitz
79
- *Coming soon*
80
+
80
81
 
81
82
  # Documentation
82
83
 
@@ -115,7 +116,7 @@ Selector: `ngx-mat-tui-calendar`
115
116
  ```bash
116
117
  git clone https://github.com/ron2015schmitt/ngx-mat-tui-calendar
117
118
  cd ngx-mat-tui-calendar
118
- npm install
119
+ npm install --legacy-peer-deps
119
120
  ng build
120
121
  ng serve
121
122
  ```
@@ -405,8 +405,9 @@
405
405
  LocalDate.convertNumbersToDate = function (_a) {
406
406
  var year = _a.year, month = _a.month, day = _a.day, hours = _a.hours, minutes = _a.minutes, seconds = _a.seconds, milliseconds = _a.milliseconds;
407
407
  // month = 1 to 12
408
- // start with today's *local* date. this si really important
408
+ // start with today's *local* date. this is really important
409
409
  var date = new Date();
410
+ date.setDate(1); // very important
410
411
  date.setFullYear(year);
411
412
  date.setMonth((month == null) ? 0 : month - 1);
412
413
  date.setDate((day == null) ? 1 : day);
@@ -636,23 +637,22 @@
636
637
  // we slice off the first color since it is gray
637
638
  this.colors = distinctColors__default["default"]({ lightMin: 70, count: 15 }).slice(1);
638
639
  this.colorIndex = 0;
639
- this.calendarId = uuid.v4();
640
- this.appliedOptions = this.getDefaultOptions();
640
+ this.calendarIdDefault = "main";
641
641
  }
642
642
  NgxMatTuiCalendarComponent.prototype.ngOnInit = function () {
643
643
  // console.warn(`calendar.component.ts: ngOnit`)
644
- this.createTUICalendar();
644
+ this.setOptions(this.options);
645
+ this.createTUICalendar(this.appliedOptions.ioptions);
645
646
  this.bindCallbacks();
647
+ this.calendar.toggleScheduleView(true);
648
+ this.calendar.render(true);
649
+ this.calendar.toggleScheduleView(true);
646
650
  };
647
651
  NgxMatTuiCalendarComponent.prototype.ngOnChanges = function (changes) {
648
- // console.warn(changes);
649
- if (this.calendar) {
650
- if (changes.options) {
651
- // console.warn(`change.option:`, changes.options);
652
- var options = changes.options.currentValue;
653
- this.setOptions(options);
654
- }
655
- }
652
+ // console.warn(`ngOnChanges: `, changes);
653
+ // console.warn(`change.option:`, changes.options);
654
+ var options = changes.options.currentValue;
655
+ this.setOptions(options);
656
656
  };
657
657
  NgxMatTuiCalendarComponent.prototype.ngOnDestroy = function () {
658
658
  this.calendar.destroy();
@@ -677,15 +677,19 @@
677
677
  date.setMonth(date.getMonth() + months); // date class does the modular arithmetic
678
678
  date.setDate(date.getDate() + days); // date class does the modular arithmetic
679
679
  this.calendar.setDate(date);
680
+ this.calendar.toggleScheduleView(true);
680
681
  };
681
682
  NgxMatTuiCalendarComponent.prototype.onCalendarPrev = function () {
682
683
  this.calendar.prev();
684
+ this.calendar.toggleScheduleView(true);
683
685
  };
684
686
  NgxMatTuiCalendarComponent.prototype.onCalendarToday = function () {
685
687
  this.calendar.today();
688
+ this.calendar.toggleScheduleView(true);
686
689
  };
687
690
  NgxMatTuiCalendarComponent.prototype.onCalendarNext = function () {
688
691
  this.calendar.next();
692
+ this.calendar.toggleScheduleView(true);
689
693
  };
690
694
  NgxMatTuiCalendarComponent.prototype.onCalendarLongNext = function () {
691
695
  var date = this.calendar.getDate().toDate();
@@ -707,15 +711,20 @@
707
711
  date.setMonth(date.getMonth() + months); // date class does the modular arithmetic
708
712
  date.setDate(date.getDate() + days); // date class does the modular arithmetic
709
713
  this.calendar.setDate(date);
714
+ this.calendar.toggleScheduleView(true);
710
715
  };
711
716
  NgxMatTuiCalendarComponent.prototype.onMonthView = function () {
712
717
  this.calendar.changeView('month');
718
+ this.calendar.render(true); // <-- so that selection is cleared
713
719
  };
714
720
  NgxMatTuiCalendarComponent.prototype.onWeekView = function () {
721
+ // console.log(`onWeekView`)
715
722
  this.calendar.changeView('week');
723
+ this.calendar.render(true); // <-- so that selection is cleared
716
724
  };
717
725
  NgxMatTuiCalendarComponent.prototype.onDayView = function () {
718
726
  this.calendar.changeView('day');
727
+ this.calendar.render(true); // <-- so that selection is cleared
719
728
  };
720
729
  NgxMatTuiCalendarComponent.prototype.getDate = function () {
721
730
  var date = this.calendar.getDate();
@@ -725,11 +734,12 @@
725
734
  });
726
735
  return str;
727
736
  };
728
- NgxMatTuiCalendarComponent.prototype.createTUICalendar = function () {
729
- var ioptions = this.preprocessIOptions(null);
737
+ NgxMatTuiCalendarComponent.prototype.createTUICalendar = function (iopts) {
738
+ var ioptions = this.preprocessIOptions(iopts);
730
739
  // console.warn(`calendar.component.ts: createTUICalendar: ioptions:`, ioptions);
731
740
  this.calendar = new Calendar__default["default"]('#calendar', ioptions);
732
741
  // console.warn(`calendar.component.ts: createTUICalendar: this.calendar:`, this.calendar);
742
+ this.calendar.toggleScheduleView(true);
733
743
  };
734
744
  NgxMatTuiCalendarComponent.prototype.bindCallbacks = function () {
735
745
  this.bindAfterRenderSchedule();
@@ -850,7 +860,7 @@
850
860
  var end = LocalDate.convertToJsDate(args.end);
851
861
  var schedule = {
852
862
  id: id,
853
- calendarId: (args.calendarId == null) ? this.calendarId : args.calendarId,
863
+ calendarId: (args.calendarId == null) ? this.calendarIdDefault : args.calendarId,
854
864
  title: args.title,
855
865
  start: start,
856
866
  end: end,
@@ -870,23 +880,23 @@
870
880
  };
871
881
  NgxMatTuiCalendarComponent.prototype.updateSchedule = function (schedule) {
872
882
  // console.log(`event-calendar.component.ts: updateSchedule:`, schedule);
873
- var calendarId = (schedule.calendarId == null) ? this.calendarId : schedule.calendarId;
883
+ var calendarId = (schedule.calendarId == null) ? this.calendarIdDefault : schedule.calendarId;
874
884
  this.calendar.updateSchedule(schedule.id, calendarId, schedule, false);
875
885
  return this.calendar.getSchedule(schedule.id, calendarId);
876
886
  };
877
887
  NgxMatTuiCalendarComponent.prototype.getSchedule = function (args) {
878
888
  // console.log(`event-calendar.component.ts: getSchedule:`, schedule);
879
- var calendarId = (args.calendarId == null) ? this.calendarId : args.calendarId;
889
+ var calendarId = (args.calendarId == null) ? this.calendarIdDefault : args.calendarId;
880
890
  return this.calendar.getSchedule(args.id, calendarId);
881
891
  };
882
892
  NgxMatTuiCalendarComponent.prototype.deleteScheduleAndNotifyParent = function (args) {
883
893
  this.deleteSchedule(args);
884
- var calendarId = (args.calendarId == null) ? this.calendarId : args.calendarId;
894
+ var calendarId = (args.calendarId == null) ? this.calendarIdDefault : args.calendarId;
885
895
  this.userDeletedSchedule.emit({ id: args.id, calendarId: calendarId });
886
896
  };
887
897
  NgxMatTuiCalendarComponent.prototype.deleteSchedule = function (args) {
888
898
  // console.log(`event-calendar.component.ts: deleteSchedule:`, schedule);
889
- var calendarId = (args.calendarId == null) ? this.calendarId : args.calendarId;
899
+ var calendarId = (args.calendarId == null) ? this.calendarIdDefault : args.calendarId;
890
900
  this.calendar.deleteSchedule(args.id, calendarId, false);
891
901
  };
892
902
  NgxMatTuiCalendarComponent.prototype.deleteAllSchedules = function () {
@@ -927,18 +937,42 @@
927
937
  }
928
938
  });
929
939
  };
930
- NgxMatTuiCalendarComponent.prototype.setOptions = function (options) {
931
- if (options == null) {
932
- options = this.getDefaultOptions();
933
- }
934
- options.ioptions = this.setIOptions(options.ioptions);
935
- this.appliedOptions = Object.assign({}, options);
940
+ NgxMatTuiCalendarComponent.prototype.setDefaultOptions = function () {
941
+ this.setOptions();
942
+ };
943
+ NgxMatTuiCalendarComponent.prototype.setOptions = function (o) {
944
+ var get = function (object, path, defaultValue) {
945
+ var value = path
946
+ .split('.')
947
+ .reduce(function (o, p) { return o[p]; }, object);
948
+ return (value !== undefined) ? value : defaultValue;
949
+ };
950
+ var options = {
951
+ darkMode: get(o, "darkMode", false),
952
+ themeClass: get(o, "themeClass", null),
953
+ ioptions: (o && o.ioptions) ? this.setIOptions(o.ioptions) : this.getDefaultIOptions(),
954
+ buttons: {
955
+ previous: get(o, "buttons.previous", true),
956
+ next: get(o, "buttons.next", true),
957
+ today: get(o, "buttons.today", true),
958
+ longPrevious: get(o, "buttons.longPrevious", true),
959
+ longNext: get(o, "buttons.longNext", true),
960
+ month: get(o, "buttons.month", true),
961
+ week: get(o, "buttons.week", true),
962
+ day: get(o, "buttons.day", true),
963
+ }
964
+ };
965
+ this.appliedOptions = options;
966
+ // console.warn(`setOptions: `, this.appliedOptions);
936
967
  };
937
968
  NgxMatTuiCalendarComponent.prototype.setIOptions = function (ioptionsIn) {
938
969
  var ioptions = this.preprocessIOptions(ioptionsIn);
939
- this.calendar.setOptions(ioptions);
940
- this.calendar.setTheme(ioptions.theme);
941
- this.calendar.render(true);
970
+ if (this.calendar) {
971
+ this.calendar.setOptions(ioptions);
972
+ this.calendar.setTheme(ioptions.theme);
973
+ this.calendar.render(true);
974
+ this.calendar.toggleScheduleView(true);
975
+ }
942
976
  return ioptions;
943
977
  };
944
978
  NgxMatTuiCalendarComponent.prototype.preprocessIOptions = function (ioptions) {
@@ -956,13 +990,6 @@
956
990
  }
957
991
  return ioptions;
958
992
  };
959
- NgxMatTuiCalendarComponent.prototype.getDefaultOptions = function () {
960
- return {
961
- darkMode: false,
962
- themeClass: null,
963
- ioptions: this.getDefaultIOptions(),
964
- };
965
- };
966
993
  NgxMatTuiCalendarComponent.prototype.getDefaultIOptions = function () {
967
994
  return {
968
995
  defaultView: 'month',
@@ -1122,7 +1149,7 @@
1122
1149
  return NgxMatTuiCalendarComponent;
1123
1150
  }());
1124
1151
  NgxMatTuiCalendarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarComponent, deps: [{ token: i1__namespace.MatDialog }], target: i0__namespace.ɵɵFactoryTarget.Component });
1125
- NgxMatTuiCalendarComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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 \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 \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 \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 \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 class=\"view-button\" value=\"month\" id=\"@+id/toggleButton\" layout_width=\"wrap_content\"\r\n layout_height=\"wrap_content\">\r\n <mat-button-toggle 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 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 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__namespace$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i6__namespace.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__namespace$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__namespace$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: i5__namespace$1.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }] });
1152
+ NgxMatTuiCalendarComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace$1.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { type: i6__namespace.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__namespace$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__namespace$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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace$1.MatButtonToggleGroup, selector: "mat-button-toggle-group", inputs: ["appearance", "name", "vertical", "value", "multiple", "disabled"], outputs: ["valueChange", "change"], exportAs: ["matButtonToggleGroup"] }] });
1126
1153
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarComponent, decorators: [{
1127
1154
  type: i0.Component,
1128
1155
  args: [{
@@ -1142,7 +1169,38 @@
1142
1169
  type: i0.Input
1143
1170
  }] } });
1144
1171
 
1145
- // Angular modules
1172
+ // collect all of the above modules into an array
1173
+ var importedModules = [
1174
+ animations.BrowserAnimationsModule,
1175
+ platformBrowser.BrowserModule,
1176
+ flexLayout.FlexLayoutModule,
1177
+ flexLayout.FlexModule,
1178
+ i7.FormsModule,
1179
+ http.HttpClientModule,
1180
+ overlay.OverlayModule,
1181
+ i7.ReactiveFormsModule,
1182
+ i6.MatButtonModule,
1183
+ i5$1.MatButtonToggleModule,
1184
+ card.MatCardModule,
1185
+ i4.MatDatepickerModule,
1186
+ i1.MatDialogModule,
1187
+ i5.MatDividerModule,
1188
+ i2.MatFormFieldModule,
1189
+ icon.MatIconModule,
1190
+ i8.MatInputModule,
1191
+ core.MatNativeDateModule,
1192
+ i3.MatRadioModule,
1193
+ core.MatRippleModule,
1194
+ slideToggle.MatSlideToggleModule,
1195
+ i2$1.MatToolbarModule,
1196
+ i4$1.FontAwesomeModule,
1197
+ i10.MatTimepickerModule,
1198
+ ];
1199
+ var projectModules = [
1200
+ NgxMatTuiCalendarComponent,
1201
+ NgxMatTuiCalendarWrapperComponent,
1202
+ NgxMatTuiCalendarEditorDialogComponent,
1203
+ ];
1146
1204
  var NgxMatTuiCalendarModule = /** @class */ (function () {
1147
1205
  function NgxMatTuiCalendarModule() {
1148
1206
  }
@@ -1174,79 +1232,64 @@
1174
1232
  slideToggle.MatSlideToggleModule,
1175
1233
  i2$1.MatToolbarModule,
1176
1234
  i4$1.FontAwesomeModule,
1177
- i10.MatTimepickerModule], exports: [NgxMatTuiCalendarComponent,
1235
+ i10.MatTimepickerModule], exports: [animations.BrowserAnimationsModule,
1236
+ platformBrowser.BrowserModule,
1237
+ flexLayout.FlexLayoutModule,
1238
+ flexLayout.FlexModule,
1239
+ i7.FormsModule,
1240
+ http.HttpClientModule,
1241
+ overlay.OverlayModule,
1242
+ i7.ReactiveFormsModule,
1243
+ i6.MatButtonModule,
1244
+ i5$1.MatButtonToggleModule,
1245
+ card.MatCardModule,
1246
+ i4.MatDatepickerModule,
1247
+ i1.MatDialogModule,
1248
+ i5.MatDividerModule,
1249
+ i2.MatFormFieldModule,
1250
+ icon.MatIconModule,
1251
+ i8.MatInputModule,
1252
+ core.MatNativeDateModule,
1253
+ i3.MatRadioModule,
1254
+ core.MatRippleModule,
1255
+ slideToggle.MatSlideToggleModule,
1256
+ i2$1.MatToolbarModule,
1257
+ i4$1.FontAwesomeModule,
1258
+ i10.MatTimepickerModule, NgxMatTuiCalendarComponent,
1178
1259
  NgxMatTuiCalendarWrapperComponent,
1179
1260
  NgxMatTuiCalendarEditorDialogComponent] });
1180
- NgxMatTuiCalendarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, imports: [[
1181
- animations.BrowserAnimationsModule,
1182
- platformBrowser.BrowserModule,
1183
- flexLayout.FlexLayoutModule,
1184
- flexLayout.FlexModule,
1185
- i7.FormsModule,
1186
- http.HttpClientModule,
1187
- overlay.OverlayModule,
1188
- i7.ReactiveFormsModule,
1189
- i6.MatButtonModule,
1190
- i5$1.MatButtonToggleModule,
1191
- card.MatCardModule,
1192
- i4.MatDatepickerModule,
1193
- i1.MatDialogModule,
1194
- i5.MatDividerModule,
1195
- i2.MatFormFieldModule,
1196
- icon.MatIconModule,
1197
- i8.MatInputModule,
1198
- core.MatNativeDateModule,
1199
- i3.MatRadioModule,
1200
- core.MatRippleModule,
1201
- slideToggle.MatSlideToggleModule,
1202
- i2$1.MatToolbarModule,
1203
- i4$1.FontAwesomeModule,
1204
- i10.MatTimepickerModule,
1205
- ]] });
1261
+ NgxMatTuiCalendarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, imports: [__spreadArray([], __read(importedModules)), animations.BrowserAnimationsModule,
1262
+ platformBrowser.BrowserModule,
1263
+ flexLayout.FlexLayoutModule,
1264
+ flexLayout.FlexModule,
1265
+ i7.FormsModule,
1266
+ http.HttpClientModule,
1267
+ overlay.OverlayModule,
1268
+ i7.ReactiveFormsModule,
1269
+ i6.MatButtonModule,
1270
+ i5$1.MatButtonToggleModule,
1271
+ card.MatCardModule,
1272
+ i4.MatDatepickerModule,
1273
+ i1.MatDialogModule,
1274
+ i5.MatDividerModule,
1275
+ i2.MatFormFieldModule,
1276
+ icon.MatIconModule,
1277
+ i8.MatInputModule,
1278
+ core.MatNativeDateModule,
1279
+ i3.MatRadioModule,
1280
+ core.MatRippleModule,
1281
+ slideToggle.MatSlideToggleModule,
1282
+ i2$1.MatToolbarModule,
1283
+ i4$1.FontAwesomeModule,
1284
+ i10.MatTimepickerModule] });
1206
1285
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, decorators: [{
1207
1286
  type: i0.NgModule,
1208
1287
  args: [{
1209
- declarations: [
1210
- NgxMatTuiCalendarComponent,
1211
- NgxMatTuiCalendarWrapperComponent,
1212
- NgxMatTuiCalendarEditorDialogComponent,
1213
- ],
1214
- imports: [
1215
- animations.BrowserAnimationsModule,
1216
- platformBrowser.BrowserModule,
1217
- flexLayout.FlexLayoutModule,
1218
- flexLayout.FlexModule,
1219
- i7.FormsModule,
1220
- http.HttpClientModule,
1221
- overlay.OverlayModule,
1222
- i7.ReactiveFormsModule,
1223
- i6.MatButtonModule,
1224
- i5$1.MatButtonToggleModule,
1225
- card.MatCardModule,
1226
- i4.MatDatepickerModule,
1227
- i1.MatDialogModule,
1228
- i5.MatDividerModule,
1229
- i2.MatFormFieldModule,
1230
- icon.MatIconModule,
1231
- i8.MatInputModule,
1232
- core.MatNativeDateModule,
1233
- i3.MatRadioModule,
1234
- core.MatRippleModule,
1235
- slideToggle.MatSlideToggleModule,
1236
- i2$1.MatToolbarModule,
1237
- i4$1.FontAwesomeModule,
1238
- i10.MatTimepickerModule,
1239
- ],
1240
- exports: [
1241
- NgxMatTuiCalendarComponent,
1242
- NgxMatTuiCalendarWrapperComponent,
1243
- NgxMatTuiCalendarEditorDialogComponent,
1244
- ],
1245
- entryComponents: [
1246
- NgxMatTuiCalendarComponent,
1247
- NgxMatTuiCalendarWrapperComponent,
1248
- NgxMatTuiCalendarEditorDialogComponent,
1249
- ],
1288
+ declarations: __spreadArray([], __read(projectModules)),
1289
+ imports: __spreadArray([], __read(importedModules)),
1290
+ exports: __spreadArray(__spreadArray([], __read(importedModules)), __read(projectModules)),
1291
+ entryComponents: __spreadArray([], __read(projectModules)),
1292
+ schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
1250
1293
  }]
1251
1294
  }] });
1252
1295