mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 20:47:54 +00:00
agenda drop down calendar
This commit is contained in:
@@ -140,7 +140,7 @@
|
|||||||
</thead>
|
</thead>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<div class="calendar-conteiner-height overflow-hidden" [style.height]="height">
|
<div class="calendar-conteiner-height overflow-hidden" [style.height]="listBoxService.height">
|
||||||
<calendar
|
<calendar
|
||||||
class="calendar-component"
|
class="calendar-component"
|
||||||
[eventSource]="listToPresent"
|
[eventSource]="listToPresent"
|
||||||
@@ -186,7 +186,7 @@
|
|||||||
<div class="calendar-title-container px-20 d-flex">
|
<div class="calendar-title-container px-20 d-flex">
|
||||||
|
|
||||||
<ion-row class="timeline-date align-center pr-10">
|
<ion-row class="timeline-date align-center pr-10">
|
||||||
<button class="no-color" *ngIf="showCalendar" (click)="height='0px';showCalendar=false">
|
<button class="no-color" *ngIf="showCalendar" (click)="listBoxService.height='0px';showCalendar=false">
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="collaps font-25" src="assets/images/icons-collaps-up.svg" ></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'default' " class="collaps font-25" src="assets/images/icons-collaps-up.svg" ></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="collaps font-25" src="assets/images/theme/gov/icons-collaps-up.svg" ></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'gov' " class="collaps font-25" src="assets/images/theme/gov/icons-collaps-up.svg" ></ion-icon>
|
||||||
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="collaps font-25" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-collaps-up.svg"></ion-icon>
|
<ion-icon *ngIf="ThemeService.currentTheme == 'doneIt' " class="collaps font-25" src="assets/images/theme/{{ThemeService.currentTheme}}/icons-collaps-up.svg"></ion-icon>
|
||||||
|
|||||||
@@ -176,7 +176,7 @@ export class AgendaPage implements OnInit {
|
|||||||
public eventService: EventsService,
|
public eventService: EventsService,
|
||||||
private router: Router,
|
private router: Router,
|
||||||
private dateAdapter: DateAdapter<any>,
|
private dateAdapter: DateAdapter<any>,
|
||||||
private listBoxService: ListBoxService,
|
public listBoxService: ListBoxService,
|
||||||
private changeProfileService: ChangeProfileService,
|
private changeProfileService: ChangeProfileService,
|
||||||
private backgroundservice: BackgroundService,
|
private backgroundservice: BackgroundService,
|
||||||
public ThemeService: ThemeService,
|
public ThemeService: ThemeService,
|
||||||
@@ -274,6 +274,7 @@ export class AgendaPage implements OnInit {
|
|||||||
this.updateEventListBox()
|
this.updateEventListBox()
|
||||||
}
|
}
|
||||||
realoadCounter++;
|
realoadCounter++;
|
||||||
|
this.weekToShow()
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -290,14 +291,12 @@ export class AgendaPage implements OnInit {
|
|||||||
}, 1000)
|
}, 1000)
|
||||||
}
|
}
|
||||||
|
|
||||||
height = 'unset'
|
|
||||||
|
|
||||||
weekToShow() {
|
weekToShow() {
|
||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
try {
|
try {
|
||||||
let weekNum = 0;
|
let weekNum = 0;
|
||||||
|
|
||||||
function Week(a) {
|
function Week(a) {
|
||||||
for(let b of a.querySelectorAll('td')) {
|
for(let b of a.querySelectorAll('td')) {
|
||||||
if(!b.className.includes('text-muted')) {
|
if(!b.className.includes('text-muted')) {
|
||||||
@@ -315,7 +314,11 @@ export class AgendaPage implements OnInit {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.showCalendar = true
|
this.showCalendar = true
|
||||||
this.height = (weekNum * dayBoxHeight) +'px'
|
this.listBoxService.height = (weekNum * dayBoxHeight) +'px'
|
||||||
|
|
||||||
|
if(dayBoxHeight == 0) {
|
||||||
|
this.weekToShow()
|
||||||
|
}
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
setTimeout(()=> {
|
setTimeout(()=> {
|
||||||
this.weekToShow()
|
this.weekToShow()
|
||||||
|
|||||||
@@ -7,6 +7,8 @@ import { DateService } from '../date.service';
|
|||||||
})
|
})
|
||||||
export class ListBoxService {
|
export class ListBoxService {
|
||||||
|
|
||||||
|
height = "unset"
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private dateService: DateService
|
private dateService: DateService
|
||||||
){}
|
){}
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
@@ -2,6 +2,9 @@
|
|||||||
"folders": [
|
"folders": [
|
||||||
{
|
{
|
||||||
"path": "."
|
"path": "."
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "../srccccccccccccc/src"
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"settings": {
|
"settings": {
|
||||||
|
|||||||
Reference in New Issue
Block a user