@cxfreeze/ionic-calendar 2.4.1 → 2.4.3

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/src/dayview.html DELETED
@@ -1,160 +0,0 @@
1
- <div class="swiper dayview-swiper" #dayViewSwiper>
2
- <div class="swiper-wrapper slides-container" [dir]="dir">
3
- <div *ngFor="let sliderIndex of sliderIndexList" class="swiper-slide slide-container dayview-slide-container">
4
- <ng-container *ngIf="!dayviewShowCategoryView">
5
- <div class="dayview-allday-table">
6
- <div class="dayview-allday-label">{{allDayLabel}}</div>
7
- <div class="dayview-allday-content-wrapper scroll-content">
8
- <table class="table table-bordered dayview-allday-content-table">
9
- <tbody>
10
- <tr>
11
- <td *ngIf="sliderIndex===currentViewIndex" class="calendar-cell"
12
- [ngClass]="{'calendar-event-wrap':views[sliderIndex].allDayEvents.length>0}"
13
- [ngStyle]="{height: 25*views[sliderIndex].allDayEvents.length+'px'}">
14
- <ng-template [ngTemplateOutlet]="dayviewAllDayEventSectionTemplate"
15
- [ngTemplateOutletContext]="{allDayEvents:views[sliderIndex].allDayEvents,eventTemplate:dayviewAllDayEventTemplate}">
16
- </ng-template>
17
- </td>
18
- <td *ngIf="sliderIndex!==currentViewIndex" class="calendar-cell"
19
- [ngClass]="{'calendar-event-wrap':views[sliderIndex].allDayEvents.length>0}"
20
- [ngStyle]="{height: 25*views[sliderIndex].allDayEvents.length+'px'}">
21
- <ng-template [ngTemplateOutlet]="dayviewInactiveAllDayEventSectionTemplate"
22
- [ngTemplateOutletContext]="{allDayEvents:views[sliderIndex].allDayEvents,eventTemplate:dayviewAllDayEventTemplate}">
23
- </ng-template>
24
- </td>
25
- </tr>
26
- </tbody>
27
- </table>
28
- </div>
29
- </div>
30
- <init-position-scroll *ngIf="sliderIndex===currentViewIndex" class="dayview-normal-event-container"
31
- [initPosition]="initScrollPosition" [emitEvent]="preserveScrollPosition"
32
- (onScroll)="setScrollPosition($event)">
33
- <table class="table table-bordered table-fixed dayview-normal-event-table">
34
- <tbody>
35
- <tr *ngFor="let tm of views[sliderIndex].rows; let i = index">
36
- <td class="calendar-hour-column text-center">
37
- {{hourColumnLabels[i]}}
38
- </td>
39
- <td class="calendar-cell" tappable (click)="select(tm)">
40
- <ng-template [ngTemplateOutlet]="dayviewNormalEventSectionTemplate"
41
- [ngTemplateOutletContext]="{tm:tm, hourParts: hourParts, eventTemplate:dayviewNormalEventTemplate}">
42
- </ng-template>
43
- </td>
44
- </tr>
45
- </tbody>
46
- </table>
47
- </init-position-scroll>
48
- <init-position-scroll *ngIf="sliderIndex!==currentViewIndex" class="dayview-normal-event-container"
49
- [initPosition]="initScrollPosition">
50
- <table class="table table-bordered table-fixed dayview-normal-event-table">
51
- <tbody>
52
- <tr *ngFor="let tm of views[sliderIndex].rows; let i = index">
53
- <td class="calendar-hour-column text-center">
54
- {{hourColumnLabels[i]}}
55
- </td>
56
- <td class="calendar-cell">
57
- <ng-template [ngTemplateOutlet]="dayviewInactiveNormalEventSectionTemplate"
58
- [ngTemplateOutletContext]="{tm:tm, hourParts: hourParts, eventTemplate:dayviewNormalEventTemplate}">
59
- </ng-template>
60
- </td>
61
- </tr>
62
- </tbody>
63
- </table>
64
- </init-position-scroll>
65
- </ng-container>
66
-
67
- <ng-container *ngIf="dayviewShowCategoryView">
68
- <div class="dayview-category-header">
69
- <table class="table table-fixed table-bordered dayview-category-header-table">
70
- <thead>
71
- <tr>
72
- <th class="dayview-category-header-item calendar-hour-column"></th>
73
- <th *ngFor="let category of dayviewCategorySource" class="dayview-category-header-item">
74
- <ng-template [ngTemplateOutlet]="dayviewCategoryItemTemplate" [ngTemplateOutletContext]="{category}">
75
- </ng-template>
76
- </th>
77
- </tr>
78
- </thead>
79
- </table>
80
- </div>
81
-
82
- <div class="dayview-allday-table">
83
- <div class="dayview-allday-label">{{ allDayLabel }}</div>
84
- <div class="dayview-allday-content-wrapper dayview-allday-category-wrapper scroll-content">
85
- <table class="table table-fixed table-bordered dayview-allday-content-table">
86
- <tbody>
87
- <tr>
88
- <td class="calendar-cell" *ngFor="let category of dayviewCategorySource">
89
- <div class="calendar-event-wrap">
90
- <ng-template *ngIf="sliderIndex === currentViewIndex"
91
- [ngTemplateOutlet]="dayviewAllDayEventSectionTemplate"
92
- [ngTemplateOutletContext]="{allDayEvents: views[currentViewIndex].categorizedAllDayEventsMap.get(category)!, eventTemplate: dayviewAllDayEventTemplate}">
93
- </ng-template>
94
- <ng-template *ngIf="sliderIndex !== currentViewIndex "
95
- [ngTemplateOutlet]="dayviewInactiveAllDayEventSectionTemplate"
96
- [ngTemplateOutletContext]="{allDayEvents: views[currentViewIndex].categorizedAllDayEventsMap.get(category)!, eventTemplate: dayviewAllDayEventTemplate}">
97
- </ng-template>
98
- </div>
99
- </td>
100
- </tr>
101
- </tbody>
102
- </table>
103
- </div>
104
- </div>
105
- <init-position-scroll *ngIf="sliderIndex === currentViewIndex"
106
- class="dayview-normal-event-container dayview-categorized-normal-event-container"
107
- [initPosition]="initScrollPosition" [emitEvent]="preserveScrollPosition"
108
- (onScroll)="setScrollPosition($event)">
109
- <table class="table table-bordered table-fixed dayview-normal-event-table">
110
- <tbody>
111
- <tr *ngFor="let row of views[sliderIndex].rows; let i = index">
112
- <td class="calendar-hour-column text-center">
113
- {{ hourColumnLabels[i] }}
114
- </td>
115
- <td *ngIf="dayviewCategorySource?.size === 0" class="calendar-cell" (click)="select(row)" tappable>
116
- <ng-template [ngTemplateOutlet]="dayviewNormalEventSectionTemplate"
117
- [ngTemplateOutletContext]="{tm: { events: [], time: row.time }, hourParts, eventTemplate: dayviewNormalEventTemplate}">
118
- </ng-template>
119
- </td>
120
- <td *ngFor="let category of dayviewCategorySource" class="calendar-cell" (click)="select(row, category)"
121
- tappable>
122
- <ng-template
123
- [ngTemplateOutlet]="dayviewNormalEventSectionTemplate"
124
- [ngTemplateOutletContext]="{tm: { events: row.eventsGroupByCategory?.get(category)!, time: row.time }, hourParts, category, eventTemplate: dayviewNormalEventTemplate}">
125
- </ng-template>
126
- </td>
127
- </tr>
128
- </tbody>
129
- </table>
130
- </init-position-scroll>
131
-
132
- <init-position-scroll *ngIf="sliderIndex !== currentViewIndex"
133
- class="dayview-normal-event-container dayview-categorized-normal-event-container"
134
- [initPosition]="initScrollPosition">
135
- <table class="table table-bordered table-fixed dayview-normal-event-table">
136
- <tbody>
137
- <tr *ngFor="let row of views[sliderIndex].rows; let i = index">
138
- <td class="calendar-hour-column text-center">
139
- {{ hourColumnLabels[i] }}
140
- </td>
141
- <td *ngIf="dayviewCategorySource?.size === 0" class="calendar-cell" (click)="select(row)" tappable>
142
- <ng-template [ngTemplateOutlet]="dayviewInactiveNormalEventSectionTemplate"
143
- [ngTemplateOutletContext]="{tm: { events: [], time: row.time }, hourParts, eventTemplate: dayviewNormalEventTemplate}">
144
- </ng-template>
145
- </td>
146
- <td *ngFor="let category of dayviewCategorySource" class="calendar-cell" (click)="select(row, category)"
147
- tappable>
148
- <ng-template
149
- [ngTemplateOutlet]="dayviewInactiveNormalEventSectionTemplate"
150
- [ngTemplateOutletContext]="{tm: { events: row.eventsGroupByCategory?.get(category)!, time: row.time }, hourParts, category, eventTemplate: dayviewNormalEventTemplate}">
151
- </ng-template>
152
- </td>
153
- </tr>
154
- </tbody>
155
- </table>
156
- </init-position-scroll>
157
- </ng-container>
158
- </div>
159
- </div>
160
- </div>
package/src/monthview.css DELETED
@@ -1,98 +0,0 @@
1
- .text-muted {
2
- color: #999;
3
- }
4
-
5
- .table-fixed {
6
- table-layout: fixed;
7
- }
8
-
9
- .table {
10
- width: 100%;
11
- max-width: 100%;
12
- background-color: transparent;
13
- }
14
-
15
- .table > thead > tr > th,
16
- .table > tbody > tr > th,
17
- .table > tfoot > tr > th,
18
- .table > thead > tr > td,
19
- .table > tbody > tr > td,
20
- .table > tfoot > tr > td {
21
- padding: 8px;
22
- line-height: 20px;
23
- vertical-align: top;
24
- }
25
-
26
- .table > thead > tr > th {
27
- vertical-align: bottom;
28
- border-bottom: 2px solid #ddd;
29
- }
30
-
31
- .table > thead:first-child > tr:first-child > th,
32
- .table > thead:first-child > tr:first-child > td {
33
- border-top: 0;
34
- }
35
-
36
- .table > tbody + tbody {
37
- border-top: 2px solid #ddd;
38
- }
39
-
40
- .table-bordered {
41
- border: 1px solid #ddd;
42
- }
43
-
44
- .table-bordered > thead > tr > th,
45
- .table-bordered > tbody > tr > th,
46
- .table-bordered > tfoot > tr > th,
47
- .table-bordered > thead > tr > td,
48
- .table-bordered > tbody > tr > td,
49
- .table-bordered > tfoot > tr > td {
50
- border: 1px solid #ddd;
51
- }
52
-
53
- .table-bordered > thead > tr > th,
54
- .table-bordered > thead > tr > td {
55
- border-bottom-width: 2px;
56
- }
57
-
58
- .table-striped > tbody > tr:nth-child(odd) > td,
59
- .table-striped > tbody > tr:nth-child(odd) > th {
60
- background-color: #f9f9f9;
61
- }
62
-
63
- .monthview-primary-with-event {
64
- background-color: #3a87ad;
65
- color: white;
66
- }
67
-
68
- .monthview-current {
69
- background-color: #f0f0f0;
70
- }
71
-
72
- .monthview-selected {
73
- background-color: #009900;
74
- color: white;
75
- }
76
-
77
- .monthview-datetable td.monthview-disabled {
78
- color: lightgrey;
79
- cursor: default;
80
- }
81
-
82
- .monthview-datetable th {
83
- text-align: center;
84
- }
85
-
86
- .monthview-datetable td {
87
- cursor: pointer;
88
- text-align: center;
89
- }
90
-
91
- .monthview-secondary-with-event {
92
- background-color: #d9edf7;
93
- }
94
-
95
- ::-webkit-scrollbar,
96
- *::-webkit-scrollbar {
97
- display: none;
98
- }
@@ -1,124 +0,0 @@
1
- <div class="swiper monthview-swiper" #monthViewSwiper>
2
- <div class="swiper-wrapper">
3
- <div class="swiper-slide">
4
- <table *ngIf="0===currentViewIndex" class="table table-bordered table-fixed monthview-datetable">
5
- <thead>
6
- <tr>
7
- <th *ngFor="let dayHeader of views[0].dayHeaders">
8
- <small>{{dayHeader}}</small>
9
- </th>
10
- </tr>
11
- </thead>
12
- <tbody>
13
- <tr *ngFor="let row of [0,1,2,3,4,5]">
14
- <td *ngFor="let col of [0,1,2,3,4,5,6]" tappable (click)="select(views[0].dates[row*7+col])"
15
- [ngClass]="getHighlightClass(views[0].dates[row*7+col])">
16
- <ng-template [ngTemplateOutlet]="monthviewDisplayEventTemplate"
17
- [ngTemplateOutletContext]="{view: views[0], row: row, col: col}">
18
- </ng-template>
19
- </td>
20
- </tr>
21
- </tbody>
22
- </table>
23
- <table *ngIf="0!==currentViewIndex" class="table table-bordered table-fixed monthview-datetable">
24
- <thead>
25
- <tr class="text-center">
26
- <th *ngFor="let dayHeader of views[0].dayHeaders">
27
- <small>{{dayHeader}}</small>
28
- </th>
29
- </tr>
30
- </thead>
31
- <tbody>
32
- <tr *ngFor="let row of [0,1,2,3,4,5]">
33
- <td *ngFor="let col of [0,1,2,3,4,5,6]">
34
- <ng-template [ngTemplateOutlet]="monthviewInactiveDisplayEventTemplate"
35
- [ngTemplateOutletContext]="{view: views[0], row: row, col: col}">
36
- </ng-template>
37
- </td>
38
- <tr>
39
- </tbody>
40
- </table>
41
- </div>
42
- <div class="swiper-slide">
43
- <table *ngIf="1===currentViewIndex" class="table table-bordered table-fixed monthview-datetable">
44
- <thead>
45
- <tr>
46
- <th *ngFor="let dayHeader of views[1].dayHeaders">
47
- <small>{{dayHeader}}</small>
48
- </th>
49
- </tr>
50
- </thead>
51
- <tbody>
52
- <tr *ngFor="let row of [0,1,2,3,4,5]">
53
- <td *ngFor="let col of [0,1,2,3,4,5,6]" tappable (click)="select(views[1].dates[row*7+col])"
54
- [ngClass]="getHighlightClass(views[1].dates[row*7+col])">
55
- <ng-template [ngTemplateOutlet]="monthviewDisplayEventTemplate"
56
- [ngTemplateOutletContext]="{view: views[1], row: row, col: col}">
57
- </ng-template>
58
- </td>
59
- </tr>
60
- </tbody>
61
- </table>
62
- <table *ngIf="1!==currentViewIndex" class="table table-bordered table-fixed monthview-datetable">
63
- <thead>
64
- <tr class="text-center">
65
- <th *ngFor="let dayHeader of views[1].dayHeaders">
66
- <small>{{dayHeader}}</small>
67
- </th>
68
- </tr>
69
- </thead>
70
- <tbody>
71
- <tr *ngFor="let row of [0,1,2,3,4,5]">
72
- <td *ngFor="let col of [0,1,2,3,4,5,6]">
73
- <ng-template [ngTemplateOutlet]="monthviewInactiveDisplayEventTemplate"
74
- [ngTemplateOutletContext]="{view: views[1], row: row, col: col}">
75
- </ng-template>
76
- </td>
77
- <tr>
78
- </tbody>
79
- </table>
80
- </div>
81
- <div class="swiper-slide">
82
- <table *ngIf="2===currentViewIndex" class="table table-bordered table-fixed monthview-datetable">
83
- <thead>
84
- <tr>
85
- <th *ngFor="let dayHeader of views[2].dayHeaders">
86
- <small>{{dayHeader}}</small>
87
- </th>
88
- </tr>
89
- </thead>
90
- <tbody>
91
- <tr *ngFor="let row of [0,1,2,3,4,5]">
92
- <td *ngFor="let col of [0,1,2,3,4,5,6]" tappable (click)="select(views[2].dates[row*7+col])"
93
- [ngClass]="getHighlightClass(views[2].dates[row*7+col])">
94
- <ng-template [ngTemplateOutlet]="monthviewDisplayEventTemplate"
95
- [ngTemplateOutletContext]="{view: views[2], row: row, col: col}">
96
- </ng-template>
97
- </td>
98
- </tr>
99
- </tbody>
100
- </table>
101
- <table *ngIf="2!==currentViewIndex" class="table table-bordered table-fixed monthview-datetable">
102
- <thead>
103
- <tr class="text-center">
104
- <th *ngFor="let dayHeader of views[2].dayHeaders">
105
- <small>{{dayHeader}}</small>
106
- </th>
107
- </tr>
108
- </thead>
109
- <tbody>
110
- <tr *ngFor="let row of [0,1,2,3,4,5]">
111
- <td *ngFor="let col of [0,1,2,3,4,5,6]">
112
- <ng-template [ngTemplateOutlet]="monthviewInactiveDisplayEventTemplate"
113
- [ngTemplateOutletContext]="{view: views[2], row: row, col: col}">
114
- </ng-template>
115
- </td>
116
- <tr>
117
- </tbody>
118
- </table>
119
- </div>
120
- </div>
121
- <ng-template [ngTemplateOutlet]="monthviewEventDetailTemplate"
122
- [ngTemplateOutletContext]="{showEventDetail:showEventDetail, selectedDate: selectedDate, noEventsLabel: noEventsLabel}">
123
- </ng-template>
124
- </div>
package/src/weekview.css DELETED
@@ -1,200 +0,0 @@
1
- .weekview-slide-container .table-fixed {
2
- table-layout: fixed;
3
- }
4
-
5
- .weekview-slide-container .table {
6
- width: 100%;
7
- max-width: 100%;
8
- background-color: transparent;
9
- }
10
-
11
- .weekview-slide-container .table > thead > tr > th,
12
- .weekview-slide-container .table > tbody > tr > th,
13
- .weekview-slide-container .table > tfoot > tr > th,
14
- .weekview-slide-container .table > thead > tr > td,
15
- .weekview-slide-container .table > tbody > tr > td,
16
- .weekview-slide-container .table > tfoot > tr > td {
17
- padding: 8px;
18
- line-height: 20px;
19
- vertical-align: top;
20
- }
21
-
22
- .weekview-slide-container .table > thead > tr > th {
23
- vertical-align: bottom;
24
- border-bottom: 2px solid #ddd;
25
- }
26
-
27
- .weekview-slide-container .table > thead:first-child > tr:first-child > th,
28
- .weekview-slide-container .table > thead:first-child > tr:first-child > td {
29
- border-top: 0;
30
- }
31
-
32
- .weekview-slide-container .table > tbody + tbody {
33
- border-top: 2px solid #ddd;
34
- }
35
-
36
- .weekview-slide-container .table-bordered {
37
- border: 1px solid #ddd;
38
- }
39
-
40
- .weekview-slide-container .table-bordered > thead > tr > th,
41
- .weekview-slide-container .table-bordered > tbody > tr > th,
42
- .weekview-slide-container .table-bordered > tfoot > tr > th,
43
- .weekview-slide-container .table-bordered > thead > tr > td,
44
- .weekview-slide-container .table-bordered > tbody > tr > td,
45
- .weekview-slide-container .table-bordered > tfoot > tr > td {
46
- border: 1px solid #ddd;
47
- }
48
-
49
- .weekview-slide-container .table-bordered > thead > tr > th,
50
- .weekview-slide-container .table-bordered > thead > tr > td {
51
- border-bottom-width: 2px;
52
- }
53
-
54
- .weekview-slide-container .table-striped > tbody > tr:nth-child(odd) > td,
55
- .weekview-slide-container .table-striped > tbody > tr:nth-child(odd) > th {
56
- background-color: #f9f9f9;
57
- }
58
-
59
- .calendar-hour-column {
60
- width: 50px;
61
- white-space: nowrap;
62
- }
63
-
64
- .calendar-event-wrap {
65
- position: relative;
66
- width: 100%;
67
- height: 100%;
68
- }
69
-
70
- .calendar-event {
71
- position: absolute;
72
- padding: 2px;
73
- cursor: pointer;
74
- z-index: 10000;
75
- }
76
-
77
- .calendar-cell {
78
- padding: 0 !important;
79
- height: 37px;
80
- }
81
-
82
- .weekview-swiper {
83
- height: 100%;
84
- }
85
-
86
- .weekview-slide-container {
87
- display: block !important;
88
- }
89
-
90
- .weekview-allday-label {
91
- float: left;
92
- height: 100%;
93
- line-height: 50px;
94
- text-align: center;
95
- width: 50px;
96
- border-left: 1px solid #ddd;
97
- }
98
-
99
- [dir="rtl"] .weekview-allday-label {
100
- float: right;
101
- border-right: 1px solid #ddd;
102
- }
103
-
104
- .weekview-allday-content-wrapper {
105
- margin-left: 50px;
106
- overflow: hidden;
107
- height: 51px;
108
- }
109
-
110
- [dir="rtl"] .weekview-allday-content-wrapper {
111
- margin-left: 0;
112
- margin-right: 50px;
113
- }
114
-
115
- .weekview-allday-content-table {
116
- min-height: 50px;
117
- }
118
-
119
- .weekview-allday-content-table td {
120
- border-left: 1px solid #ddd;
121
- border-right: 1px solid #ddd;
122
- }
123
-
124
- .weekview-header th {
125
- overflow: hidden;
126
- white-space: nowrap;
127
- font-size: 14px;
128
- }
129
-
130
- .weekview-allday-table {
131
- height: 50px;
132
- position: relative;
133
- border-bottom: 1px solid #ddd;
134
- font-size: 14px;
135
- }
136
-
137
- .weekview-normal-event-container {
138
- margin-top: 87px;
139
- overflow: hidden;
140
- left: 0;
141
- right: 0;
142
- top: 0;
143
- bottom: 0;
144
- position: absolute;
145
- font-size: 14px;
146
- }
147
-
148
- .scroll-content {
149
- overflow-y: auto;
150
- overflow-x: hidden;
151
- }
152
-
153
- ::-webkit-scrollbar,
154
- *::-webkit-scrollbar {
155
- display: none;
156
- }
157
-
158
- .weekview-slide-container .table > tbody > tr > td.calendar-hour-column {
159
- padding-left: 0;
160
- padding-right: 0;
161
- vertical-align: middle;
162
- }
163
-
164
- @media (max-width: 750px) {
165
- .weekview-allday-label,
166
- .calendar-hour-column {
167
- width: 31px;
168
- font-size: 12px;
169
- }
170
-
171
- .weekview-allday-label {
172
- padding-top: 4px;
173
- }
174
-
175
- .weekview-slide-container .table > tbody > tr > td.calendar-hour-column {
176
- padding-left: 0;
177
- padding-right: 0;
178
- vertical-align: middle;
179
- line-height: 12px;
180
- }
181
-
182
- .weekview-slide-container .table > thead > tr > th.weekview-header {
183
- padding-left: 0;
184
- padding-right: 0;
185
- font-size: 12px;
186
- }
187
-
188
- .weekview-allday-label {
189
- line-height: 20px;
190
- }
191
-
192
- .weekview-allday-content-wrapper {
193
- margin-left: 31px;
194
- }
195
-
196
- [dir="rtl"] .weekview-allday-content-wrapper {
197
- margin-left: 0;
198
- margin-right: 31px;
199
- }
200
- }
package/src/weekview.html DELETED
@@ -1,93 +0,0 @@
1
- <div class="swiper weekview-swiper" #weekViewSwiper>
2
- <div class="swiper-wrapper slides-container" [dir]="dir">
3
- <div *ngFor="let sliderIndex of sliderIndexList" class="swiper-slide slide-container weekview-slide-container">
4
- <table class="table table-bordered table-fixed weekview-header">
5
- <thead>
6
- <tr>
7
- <th class="calendar-hour-column"></th>
8
- <th class="weekview-header text-center" *ngFor="let date of views[sliderIndex].dates"
9
- [ngClass]="getHighlightClass(date)" (click)="daySelected(date)">
10
- <ng-template [ngTemplateOutlet]="weekviewHeaderTemplate"
11
- [ngTemplateOutletContext]="{viewDate:date}">
12
- </ng-template>
13
- </th>
14
- </tr>
15
- </thead>
16
- </table>
17
- <div *ngIf="sliderIndex===currentViewIndex">
18
- <div class="weekview-allday-table">
19
- <div class="weekview-allday-label">{{allDayLabel}}</div>
20
- <div class="weekview-allday-content-wrapper scroll-content">
21
- <table class="table table-fixed weekview-allday-content-table">
22
- <tbody>
23
- <tr>
24
- <td *ngFor="let day of views[sliderIndex].dates" class="calendar-cell">
25
- <ng-template [ngTemplateOutlet]="weekviewAllDayEventSectionTemplate"
26
- [ngTemplateOutletContext]="{day:day, eventTemplate:weekviewAllDayEventTemplate}">
27
- </ng-template>
28
- </td>
29
- </tr>
30
- </tbody>
31
- </table>
32
- </div>
33
- </div>
34
- <init-position-scroll class="weekview-normal-event-container" [initPosition]="initScrollPosition"
35
- [emitEvent]="preserveScrollPosition" (onScroll)="setScrollPosition($event)">
36
- <table class="table table-bordered table-fixed weekview-normal-event-table">
37
- <tbody>
38
- <tr *ngFor="let row of views[sliderIndex].rows; let i = index">
39
- <td class="calendar-hour-column text-center">
40
- {{hourColumnLabels[i]}}
41
- </td>
42
- <td *ngFor="let tm of row" class="calendar-cell" tappable
43
- (click)="select(tm.time, tm.events)">
44
- <div [ngClass]="{'calendar-event-wrap': tm.events}" *ngIf="tm.events">
45
- <ng-template [ngTemplateOutlet]="weekviewNormalEventSectionTemplate"
46
- [ngTemplateOutletContext]="{tm:tm, hourParts: hourParts, eventTemplate:weekviewNormalEventTemplate}">
47
- </ng-template>
48
- </div>
49
- </td>
50
- </tr>
51
- </tbody>
52
- </table>
53
- </init-position-scroll>
54
- </div>
55
- <div *ngIf="sliderIndex!==currentViewIndex">
56
- <div class="weekview-allday-table">
57
- <div class="weekview-allday-label">{{allDayLabel}}</div>
58
- <div class="weekview-allday-content-wrapper scroll-content">
59
- <table class="table table-fixed weekview-allday-content-table">
60
- <tbody>
61
- <tr>
62
- <td *ngFor="let day of views[sliderIndex].dates" class="calendar-cell">
63
- <ng-template [ngTemplateOutlet]="weekviewInactiveAllDayEventSectionTemplate"
64
- [ngTemplateOutletContext]="{day:day}">
65
- </ng-template>
66
- </td>
67
- </tr>
68
- </tbody>
69
- </table>
70
- </div>
71
- </div>
72
- <init-position-scroll class="weekview-normal-event-container" [initPosition]="initScrollPosition">
73
- <table class="table table-bordered table-fixed weekview-normal-event-table">
74
- <tbody>
75
- <tr *ngFor="let row of views[sliderIndex].rows; let i = index">
76
- <td class="calendar-hour-column text-center">
77
- {{hourColumnLabels[i]}}
78
- </td>
79
- <td *ngFor="let tm of row" class="calendar-cell">
80
- <div [ngClass]="{'calendar-event-wrap': tm.events}" *ngIf="tm.events">
81
- <ng-template [ngTemplateOutlet]="weekviewInactiveNormalEventSectionTemplate"
82
- [ngTemplateOutletContext]="{tm:tm, hourParts: hourParts}">
83
- </ng-template>
84
- </div>
85
- </td>
86
- </tr>
87
- </tbody>
88
- </table>
89
- </init-position-scroll>
90
- </div>
91
- </div>
92
- </div>
93
- </div>