ngx-mat-tui-calendar 12.0.9 → 12.0.10

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
  ```
@@ -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,12 +711,15 @@
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');
713
718
  };
714
719
  NgxMatTuiCalendarComponent.prototype.onWeekView = function () {
720
+ console.log("onWeekView");
715
721
  this.calendar.changeView('week');
722
+ this.calendar.render(true); // <-- so that selection is cleared
716
723
  };
717
724
  NgxMatTuiCalendarComponent.prototype.onDayView = function () {
718
725
  this.calendar.changeView('day');
@@ -1142,7 +1149,38 @@
1142
1149
  type: i0.Input
1143
1150
  }] } });
1144
1151
 
1145
- // Angular modules
1152
+ // collect all of the above modules into an array
1153
+ var importedModules = [
1154
+ animations.BrowserAnimationsModule,
1155
+ platformBrowser.BrowserModule,
1156
+ flexLayout.FlexLayoutModule,
1157
+ flexLayout.FlexModule,
1158
+ i7.FormsModule,
1159
+ http.HttpClientModule,
1160
+ overlay.OverlayModule,
1161
+ i7.ReactiveFormsModule,
1162
+ i6.MatButtonModule,
1163
+ i5$1.MatButtonToggleModule,
1164
+ card.MatCardModule,
1165
+ i4.MatDatepickerModule,
1166
+ i1.MatDialogModule,
1167
+ i5.MatDividerModule,
1168
+ i2.MatFormFieldModule,
1169
+ icon.MatIconModule,
1170
+ i8.MatInputModule,
1171
+ core.MatNativeDateModule,
1172
+ i3.MatRadioModule,
1173
+ core.MatRippleModule,
1174
+ slideToggle.MatSlideToggleModule,
1175
+ i2$1.MatToolbarModule,
1176
+ i4$1.FontAwesomeModule,
1177
+ i10.MatTimepickerModule,
1178
+ ];
1179
+ var projectModules = [
1180
+ NgxMatTuiCalendarComponent,
1181
+ NgxMatTuiCalendarWrapperComponent,
1182
+ NgxMatTuiCalendarEditorDialogComponent,
1183
+ ];
1146
1184
  var NgxMatTuiCalendarModule = /** @class */ (function () {
1147
1185
  function NgxMatTuiCalendarModule() {
1148
1186
  }
@@ -1174,79 +1212,64 @@
1174
1212
  slideToggle.MatSlideToggleModule,
1175
1213
  i2$1.MatToolbarModule,
1176
1214
  i4$1.FontAwesomeModule,
1177
- i10.MatTimepickerModule], exports: [NgxMatTuiCalendarComponent,
1215
+ i10.MatTimepickerModule], exports: [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, NgxMatTuiCalendarComponent,
1178
1239
  NgxMatTuiCalendarWrapperComponent,
1179
1240
  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
- ]] });
1241
+ NgxMatTuiCalendarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, imports: [__spreadArray([], __read(importedModules)), animations.BrowserAnimationsModule,
1242
+ platformBrowser.BrowserModule,
1243
+ flexLayout.FlexLayoutModule,
1244
+ flexLayout.FlexModule,
1245
+ i7.FormsModule,
1246
+ http.HttpClientModule,
1247
+ overlay.OverlayModule,
1248
+ i7.ReactiveFormsModule,
1249
+ i6.MatButtonModule,
1250
+ i5$1.MatButtonToggleModule,
1251
+ card.MatCardModule,
1252
+ i4.MatDatepickerModule,
1253
+ i1.MatDialogModule,
1254
+ i5.MatDividerModule,
1255
+ i2.MatFormFieldModule,
1256
+ icon.MatIconModule,
1257
+ i8.MatInputModule,
1258
+ core.MatNativeDateModule,
1259
+ i3.MatRadioModule,
1260
+ core.MatRippleModule,
1261
+ slideToggle.MatSlideToggleModule,
1262
+ i2$1.MatToolbarModule,
1263
+ i4$1.FontAwesomeModule,
1264
+ i10.MatTimepickerModule] });
1206
1265
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: NgxMatTuiCalendarModule, decorators: [{
1207
1266
  type: i0.NgModule,
1208
1267
  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
- ],
1268
+ declarations: __spreadArray([], __read(projectModules)),
1269
+ imports: __spreadArray([], __read(importedModules)),
1270
+ exports: __spreadArray(__spreadArray([], __read(importedModules)), __read(projectModules)),
1271
+ entryComponents: __spreadArray([], __read(projectModules)),
1272
+ schemas: [i0.CUSTOM_ELEMENTS_SCHEMA],
1250
1273
  }]
1251
1274
  }] });
1252
1275