mirror of
https://code.equilibrium.co.ao/ITO/doneit-web.git
synced 2026-04-18 12:37:53 +00:00
Refified processService methods;
Add approve page and criate its layout; Finish functionality for list approve page
This commit is contained in:
@@ -91,7 +91,16 @@ const routes: Routes = [
|
||||
loadChildren: ()=> import('../pages/events/event-detail/event-detail.module').then(m => m.EventDetailPageModule),
|
||||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
path:'event-list',
|
||||
children: [
|
||||
{
|
||||
path:'',
|
||||
loadChildren: ()=> import('../pages/gabinete-digital/event-list/event-list.module').then(m => m.EventListPageModule)
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
|
||||
@@ -2,7 +2,6 @@ import { EventBody } from './eventbody.model';
|
||||
import { EventPerson } from './eventperson.model';
|
||||
|
||||
export class Event{
|
||||
|
||||
EventId: string;
|
||||
Subject: string;
|
||||
Body: EventBody;
|
||||
|
||||
@@ -1,17 +1,21 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { AgendaPage } from './agenda.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: AgendaPage
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { AgendaPage } from './agenda.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: AgendaPage
|
||||
},
|
||||
{
|
||||
path: 'approve-event-modal',
|
||||
loadChildren: () => import('./approve-event-modal/approve-event-modal.module').then( m => m.ApproveEventModalPageModule)
|
||||
];
|
||||
}
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class AgendaPageRoutingModule {}
|
||||
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { ApproveEventModalPage } from './approve-event-modal.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: ApproveEventModalPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class ApproveEventModalPageRoutingModule {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { ApproveEventModalPageRoutingModule } from './approve-event-modal-routing.module';
|
||||
|
||||
import { ApproveEventModalPage } from './approve-event-modal.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
ApproveEventModalPageRoutingModule
|
||||
],
|
||||
declarations: [ApproveEventModalPage]
|
||||
})
|
||||
export class ApproveEventModalPageModule {}
|
||||
@@ -0,0 +1,52 @@
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start">
|
||||
<ion-back-button defaultHref="" (click)="close()"></ion-back-button>
|
||||
</ion-buttons>
|
||||
<ion-title>{{loadedEvent.workflowInstanceDataFields.Subject}}</ion-title>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<ion-item lines="none">
|
||||
<p class="location-detail">{{loadedEvent.workflowInstanceDataFields.Location}}</p>
|
||||
<ion-button class="button-calendar-type" class="button-calendar-type" slot="end">{{loadedEvent.workflowInstanceDataFields.Agenda}}</ion-button>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label>
|
||||
<p>{{loadedEvent.workflowInstanceDataFields.StartDate | date: 'fullDate'}}</p>
|
||||
<p>das {{loadedEvent.workflowInstanceDataFields.StartDate | date: 'hh:mm'}} às {{loadedEvent.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}</p>
|
||||
<p>(Não se repete)</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label>
|
||||
<h3>Intervenientes</h3>
|
||||
<p>{{loadedEvent.workflowInstanceDataFields.Participants}}</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
<ion-item>
|
||||
<ion-label>
|
||||
<h3>Detalhes</h3>
|
||||
<p>MINEC, MINFIN</p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
<ion-item lines="none">
|
||||
<ion-label>
|
||||
<h3>Documentos</h3>
|
||||
<ion-item>
|
||||
<ion-label>
|
||||
<h4>Lei do Orçamento Geral do Estado</h4>
|
||||
<p><span>MINEC, MINFIN</span><span>13/04/2020</span></p>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-label>
|
||||
</ion-item>
|
||||
</ion-content>
|
||||
<ion-footer>
|
||||
<ion-toolbar>
|
||||
<ion-button class="button-edit-event" shape="round" (click)="editEvent()">Emendar</ion-button>
|
||||
<ion-button class="button-options" shape="round" (click)="openOptions()"><ion-icon name="ellipsis-vertical-outline"></ion-icon></ion-button>
|
||||
<ion-button shape="round" (click)="approveEvent()">Aprovar</ion-button>
|
||||
</ion-toolbar>
|
||||
</ion-footer>
|
||||
@@ -0,0 +1,26 @@
|
||||
.location-detail{
|
||||
font-size: 18px;
|
||||
}
|
||||
.button-calendar-type{
|
||||
width: 91px;
|
||||
height: 25px;
|
||||
--border-radius: 12.5px;
|
||||
--background-color: #ffb703;
|
||||
}
|
||||
.button-edit-event {
|
||||
width: 170px;
|
||||
height: 44px;
|
||||
border-radius: 22.5px;
|
||||
background-color: #e0e9ee;
|
||||
}
|
||||
.button-options {
|
||||
width: 36px;
|
||||
height: 35px;
|
||||
object-fit: contain;
|
||||
}
|
||||
.button-approve {
|
||||
width: 170px;
|
||||
height: 44px;
|
||||
border-radius: 22.5px;
|
||||
background-color: #42b9fe;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { ApproveEventModalPage } from './approve-event-modal.page';
|
||||
|
||||
describe('ApproveEventModalPage', () => {
|
||||
let component: ApproveEventModalPage;
|
||||
let fixture: ComponentFixture<ApproveEventModalPage>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ApproveEventModalPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(ApproveEventModalPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,75 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { ModalController, NavParams } from '@ionic/angular';
|
||||
import { Event } from 'src/app/models/event.model';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-approve-event-modal',
|
||||
templateUrl: './approve-event-modal.page.html',
|
||||
styleUrls: ['./approve-event-modal.page.scss'],
|
||||
})
|
||||
export class ApproveEventModalPage implements OnInit {
|
||||
event: Event;
|
||||
loadedEvent:any;
|
||||
serialNumber:string;
|
||||
|
||||
constructor(
|
||||
private router:Router,
|
||||
private modalController: ModalController,
|
||||
private navParams: NavParams,
|
||||
private processes:ProcessesService,
|
||||
)
|
||||
{
|
||||
this.serialNumber = this.navParams.get('serialNumber');
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
|
||||
console.log(this.serialNumber);
|
||||
this.getTask();
|
||||
|
||||
this.event = {
|
||||
EventId: '1',
|
||||
Subject: 'Reunião do Conselho de Ministros',
|
||||
Body: null,
|
||||
Location: 'Palácio Presidencial, Luanda',
|
||||
CalendarId: 'string',
|
||||
CalendarName: 'Oficial',
|
||||
StartDate: new Date,
|
||||
EndDate: new Date,
|
||||
EventType: 'Reunião',
|
||||
Attendees: null,
|
||||
IsMeeting: true,
|
||||
IsRecurring: false,
|
||||
AppointmentState: 2,
|
||||
TimeZone: '',
|
||||
Organizer: '',
|
||||
Categories: null,
|
||||
HasAttachments: false,
|
||||
}
|
||||
|
||||
}
|
||||
close(){
|
||||
this.router.navigate(['/home/gabinete-digital']);
|
||||
this.modalController.dismiss(null);
|
||||
}
|
||||
getTask(){
|
||||
this.processes.GetTask(this.serialNumber).subscribe(res => {
|
||||
console.log(res);
|
||||
this.loadedEvent = res;
|
||||
})
|
||||
|
||||
}
|
||||
editEvent(){
|
||||
|
||||
}
|
||||
openOptions(){
|
||||
|
||||
}
|
||||
approveEvent(){
|
||||
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
@@ -38,14 +38,12 @@ export class ChatPage implements OnInit {
|
||||
this.result = this.chatService.getAllPrivateGroups().subscribe((res:any)=>{
|
||||
this.groupList = res.groups;
|
||||
/* console.log(this.groupList); */
|
||||
|
||||
});
|
||||
}
|
||||
getConnectedUsers(){
|
||||
this.result = this.chatService.getAllConnectedUsers().subscribe((res:any)=>{
|
||||
this.userConnectedList = res.users;
|
||||
console.log(this.userConnectedList);
|
||||
|
||||
});
|
||||
}
|
||||
async starConversation(selectedUser) {
|
||||
|
||||
@@ -73,6 +73,7 @@ export class EventDetailPage implements OnInit {
|
||||
{
|
||||
this.pageId = paramMap.get('eventId');
|
||||
eventid = paramMap.get('eventId');
|
||||
|
||||
}
|
||||
|
||||
if (paramMap.has("caller"))
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { Routes, RouterModule } from '@angular/router';
|
||||
|
||||
import { EventListPage } from './event-list.page';
|
||||
|
||||
const routes: Routes = [
|
||||
{
|
||||
path: '',
|
||||
component: EventListPage
|
||||
}
|
||||
];
|
||||
|
||||
@NgModule({
|
||||
imports: [RouterModule.forChild(routes)],
|
||||
exports: [RouterModule],
|
||||
})
|
||||
export class EventListPageRoutingModule {}
|
||||
@@ -0,0 +1,20 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { EventListPageRoutingModule } from './event-list-routing.module';
|
||||
|
||||
import { EventListPage } from './event-list.page';
|
||||
|
||||
@NgModule({
|
||||
imports: [
|
||||
CommonModule,
|
||||
FormsModule,
|
||||
IonicModule,
|
||||
EventListPageRoutingModule
|
||||
],
|
||||
declarations: [EventListPage]
|
||||
})
|
||||
export class EventListPageModule {}
|
||||
@@ -0,0 +1,63 @@
|
||||
<ion-header>
|
||||
<ion-toolbar>
|
||||
<ion-buttons slot="start">
|
||||
<ion-back-button defaultHref="/gabinete-digital"></ion-back-button>
|
||||
</ion-buttons>
|
||||
<ion-title>Eventos para Aprovação</ion-title>
|
||||
</ion-toolbar>
|
||||
<ion-toolbar>
|
||||
<ion-segment [(ngModel)]="segment">
|
||||
<ion-segment-button value="MDGPR">
|
||||
Seu calendário
|
||||
</ion-segment-button>
|
||||
<ion-segment-button value="PR">
|
||||
Presidente da República
|
||||
</ion-segment-button>
|
||||
</ion-segment>
|
||||
</ion-toolbar>
|
||||
</ion-header>
|
||||
|
||||
<ion-content>
|
||||
<div [ngSwitch]="segment">
|
||||
<ion-list *ngSwitchCase="'MDGPR'">
|
||||
<div *ngIf="eventsMDGPRList">
|
||||
<ion-list>
|
||||
<ion-item-sliding>
|
||||
<ion-item class="Rectangle" lines="none"
|
||||
*ngFor="let event of eventsMDGPRList" (click)="openApproveModal(event.serialNumber)">
|
||||
<div class="content-{{event.workflowInstanceDataFields.Agenda}}">
|
||||
<div class="approve-event-time">
|
||||
<p>{{event.workflowInstanceDataFields.StartDate | date: 'hh:mm'}}</p>
|
||||
<p>{{event.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}</p>
|
||||
</div>
|
||||
<div class="approve-event-detail">
|
||||
<p>{{event.workflowInstanceDataFields.Location}}</p>
|
||||
<h3>{{event.workflowInstanceDataFields.Subject}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</ion-item>
|
||||
</ion-item-sliding>
|
||||
</ion-list>
|
||||
</div>
|
||||
|
||||
</ion-list>
|
||||
<ion-list *ngSwitchCase="'PR'">
|
||||
<ion-item-sliding *ngIf="eventsPRList">
|
||||
<ion-item class="Rectangle" lines="none"
|
||||
*ngFor="let event of eventsPRList" (click)="openApproveModal(event.serialNumber)">
|
||||
<div class="content-{{event.workflowInstanceDataFields.Agenda}}">
|
||||
<div class="approve-event-time">
|
||||
<p>{{event.workflowInstanceDataFields.StartDate | date: 'hh:mm'}}</p>
|
||||
<p>{{event.workflowInstanceDataFields.EndDate | date: 'hh:mm'}}</p>
|
||||
</div>
|
||||
<div class="approve-event-detail">
|
||||
<p>{{event.workflowInstanceDataFields.Location}}</p>
|
||||
<h3>{{event.workflowInstanceDataFields.Subject}}</h3>
|
||||
</div>
|
||||
</div>
|
||||
</ion-item>
|
||||
</ion-item-sliding>
|
||||
</ion-list>
|
||||
</div>
|
||||
|
||||
</ion-content>
|
||||
@@ -0,0 +1,73 @@
|
||||
ion-item-sliding{
|
||||
margin-top: 5px;
|
||||
}
|
||||
.Rectangle {
|
||||
width: 360px;
|
||||
border-radius: 15px;
|
||||
box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.07);
|
||||
border: solid 1px #e9e9e9;
|
||||
background-color: var(--white);
|
||||
margin: 0 auto;
|
||||
padding: 10px;
|
||||
margin-bottom: 10px;
|
||||
overflow: auto;
|
||||
}
|
||||
.content-Oficial{
|
||||
width: 340px;
|
||||
border-radius: 5px;
|
||||
border-right: 5px solid #99e47b;
|
||||
overflow: auto;
|
||||
}
|
||||
.content-Pessoal{
|
||||
width: 340px;
|
||||
border-radius: 5px;
|
||||
border-right: 5px solid #958bfc;
|
||||
overflow: auto;
|
||||
}
|
||||
|
||||
.approve-event-time{
|
||||
float: left;
|
||||
}
|
||||
.approve-event-time p{
|
||||
width: 33px;
|
||||
font-family: Roboto;
|
||||
font-size: 13px;
|
||||
font-weight: normal;
|
||||
font-stretch: normal;
|
||||
font-style: normal;
|
||||
line-height: normal;
|
||||
letter-spacing: normal;
|
||||
color: var(--Antartic-grey);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.approve-event-detail{
|
||||
float: left;
|
||||
margin-left: 10px;
|
||||
}
|
||||
.approve-event-detail p{
|
||||
width: 250px;
|
||||
font-family: Roboto;
|
||||
font-size: 13px;
|
||||
font-weight: normal;
|
||||
font-stretch: normal;
|
||||
font-style: normal;
|
||||
line-height: normal;
|
||||
letter-spacing: normal;
|
||||
color: var(--black);
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
.approve-event-detail h3{
|
||||
width: 250px;
|
||||
font-family: Roboto;
|
||||
font-size: 15px;
|
||||
font-weight: bold;
|
||||
font-stretch: normal;
|
||||
font-style: normal;
|
||||
line-height: normal;
|
||||
letter-spacing: normal;
|
||||
color: #0d89d1;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -0,0 +1,24 @@
|
||||
import { async, ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import { IonicModule } from '@ionic/angular';
|
||||
|
||||
import { EventListPage } from './event-list.page';
|
||||
|
||||
describe('EventListPage', () => {
|
||||
let component: EventListPage;
|
||||
let fixture: ComponentFixture<EventListPage>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ EventListPage ],
|
||||
imports: [IonicModule.forRoot()]
|
||||
}).compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(EventListPage);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
}));
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
@@ -0,0 +1,109 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { EventBody } from 'src/app/models/eventbody.model';
|
||||
import { EventPerson } from 'src/app/models/eventperson.model';
|
||||
import { Event } from 'src/app/models/event.model';
|
||||
import { ProcessesService } from 'src/app/services/processes.service';
|
||||
import { ModalController } from '@ionic/angular';
|
||||
import { ApproveEventModalPage } from '../../agenda/approve-event-modal/approve-event-modal.page';
|
||||
|
||||
@Component({
|
||||
selector: 'app-event-list',
|
||||
templateUrl: './event-list.page.html',
|
||||
styleUrls: ['./event-list.page.scss'],
|
||||
})
|
||||
export class EventListPage implements OnInit {
|
||||
segment:string;
|
||||
eventsPRList: any;
|
||||
eventsMDGPRList: any;
|
||||
eventPerson: EventPerson;
|
||||
eventBody: EventBody;
|
||||
categories: string[];
|
||||
serialnumber:string;
|
||||
|
||||
|
||||
constructor(
|
||||
private processes:ProcessesService,
|
||||
private modalController: ModalController,
|
||||
) { }
|
||||
|
||||
ngOnInit() {
|
||||
this.LoadToApproveEvents();
|
||||
|
||||
this.segment = "MDGPR";
|
||||
this.eventBody = {
|
||||
BodyType: 'string',
|
||||
Text: 'string',
|
||||
}
|
||||
this.eventPerson = {
|
||||
EmailAddress: 'tiago.kayaya@hotmail.com',
|
||||
Name: 'Tiago',
|
||||
IsRequired: false,
|
||||
}
|
||||
|
||||
this.eventsPRList = [
|
||||
{
|
||||
EventId: '1',
|
||||
Subject: 'Reunião do Conselho de Ministros',
|
||||
Body: this.eventBody,
|
||||
Location: 'Luanda',
|
||||
CalendarId: 'string',
|
||||
CalendarName: 'Oficial',
|
||||
StartDate: new Date,
|
||||
EndDate: new Date,
|
||||
EventType: 'Reunião',
|
||||
Attendees: null,
|
||||
IsMeeting: true,
|
||||
IsRecurring: false,
|
||||
AppointmentState: 2,
|
||||
TimeZone: '',
|
||||
Organizer: '',
|
||||
Categories: null,
|
||||
HasAttachments: false,
|
||||
},
|
||||
{
|
||||
EventId: '1',
|
||||
Subject: 'Viagem',
|
||||
Body: this.eventBody,
|
||||
Location: 'Luanda',
|
||||
CalendarId: 'string',
|
||||
CalendarName: 'Pessoal',
|
||||
StartDate: new Date,
|
||||
EndDate: new Date,
|
||||
EventType: 'Reunião',
|
||||
Attendees: null,
|
||||
IsMeeting: true,
|
||||
IsRecurring: false,
|
||||
AppointmentState: 2,
|
||||
TimeZone: '',
|
||||
Organizer: '',
|
||||
Categories: null,
|
||||
HasAttachments: false,
|
||||
},
|
||||
]
|
||||
|
||||
}
|
||||
|
||||
LoadToApproveEvents(){
|
||||
this.processes.GetToApprovedEvents('PR','false').subscribe(res=>{
|
||||
this.eventsPRList = res;
|
||||
});
|
||||
this.processes.GetToApprovedEvents('MDGPR','false').subscribe(res=>{
|
||||
this.eventsMDGPRList = res;
|
||||
});
|
||||
}
|
||||
async openApproveModal(eventSerialNumber){
|
||||
const modal = await this.modalController.create({
|
||||
component: ApproveEventModalPage,
|
||||
componentProps:{
|
||||
serialNumber: eventSerialNumber,
|
||||
},
|
||||
cssClass: 'cal-modal',
|
||||
backdropDismiss: false
|
||||
});
|
||||
|
||||
await modal.present();
|
||||
|
||||
modal.onDidDismiss();
|
||||
}
|
||||
|
||||
}
|
||||
@@ -11,7 +11,11 @@ const routes: Routes = [
|
||||
{
|
||||
path: 'expediente',
|
||||
loadChildren: () => import('./expediente/expediente.module').then( m => m.ExpedientePageModule)
|
||||
}
|
||||
},
|
||||
{
|
||||
path: 'event-list',
|
||||
loadChildren: () => import('./event-list/event-list.module').then( m => m.EventListPageModule)
|
||||
},
|
||||
|
||||
];
|
||||
|
||||
|
||||
@@ -11,6 +11,21 @@
|
||||
</ion-refresher-content>
|
||||
</ion-refresher>
|
||||
<ion-card color="#d4d5ca">
|
||||
<ion-card-header>
|
||||
<ion-card-title>Eventos para Aprovação</ion-card-title>
|
||||
<ion-card-content>
|
||||
<ion-item [routerLink]="['/home/gabinete-digital/event-list']">
|
||||
<ion-label>Minha agenda</ion-label>
|
||||
<ion-button slot="end">{{count_ev_md}}</ion-button>
|
||||
</ion-item>
|
||||
<ion-item [routerLink]="['/home/gabinete-digital/event-list']" class="ion-item-change-color">
|
||||
<ion-label>Agenda do Presidente</ion-label>
|
||||
<ion-button slot="end">{{count_ev_pr}}</ion-button>
|
||||
</ion-item>
|
||||
</ion-card-content>
|
||||
</ion-card-header>
|
||||
</ion-card>
|
||||
<ion-card color="#d4d5ca">
|
||||
<ion-card-header>
|
||||
<ion-card-title>Expediente</ion-card-title>
|
||||
<ion-card-content>
|
||||
|
||||
@@ -20,6 +20,8 @@ export class GabineteDigitalPage implements OnInit {
|
||||
count_dip_apr : string;
|
||||
count_dip_pv : string;
|
||||
count_de_pr : string;
|
||||
count_ev_pr : string;
|
||||
count_ev_md : string;
|
||||
|
||||
ngOnInit() {
|
||||
this.LoadCounts();
|
||||
@@ -31,12 +33,22 @@ export class GabineteDigitalPage implements OnInit {
|
||||
this.showLoader = false;
|
||||
this.count_exp_dailywork = result;
|
||||
});
|
||||
this.processesbackend.GetToApprovedEvents('PR','true').subscribe(res=>{
|
||||
this.count_ev_pr = res;
|
||||
});
|
||||
this.processesbackend.GetToApprovedEvents('MDGPR','true').subscribe(res=>{
|
||||
this.count_ev_md = res;
|
||||
});
|
||||
|
||||
this.count_exp_pp = "-";
|
||||
this.count_exp_pd = "-";
|
||||
this.count_dip_apr = "-";
|
||||
this.count_dip_pv = "-";
|
||||
this.count_de_pr = "-";
|
||||
this.count_ev_md='-';
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
doRefresh(event) {
|
||||
|
||||
@@ -35,11 +35,13 @@ export class AttachmentsService {
|
||||
}
|
||||
|
||||
getAttachments(source: number, sourceid: string): Observable<Attachment[]>{
|
||||
let geturl = environment.apiURL + 'attachments/GetAttachments';
|
||||
let geturl = environment.apiURL + 'attachments/GetSourceName';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("Source", source.toString());
|
||||
params = params.set("SourceId", sourceid);
|
||||
/* params = params.set("SourceId", sourceid); */
|
||||
|
||||
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
|
||||
@@ -55,7 +55,7 @@ export class EventsService {
|
||||
}
|
||||
|
||||
getEvent(eventid: string): Observable<Event>{
|
||||
let geturl = environment.apiURL + 'calendar/GetEvent';
|
||||
let geturl = environment.apiURL + 'Calendar/GetEvent';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("EventId", eventid);
|
||||
|
||||
@@ -23,7 +23,7 @@ export class ProcessesService {
|
||||
|
||||
GetTasksList(processname:string, onlycount:boolean): Observable<any>
|
||||
{
|
||||
const geturl = environment.apiURL + 'processes/GetTasksList';
|
||||
const geturl = environment.apiURL + 'tasks/List';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("ProcessName", processname);
|
||||
@@ -39,17 +39,52 @@ export class ProcessesService {
|
||||
|
||||
GetTask(serialnumber:string): Observable<any>
|
||||
{
|
||||
const geturl = environment.apiURL + 'processes/GetTask';
|
||||
const geturl = environment.apiURL + 'Tasks/FindTask';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("TaskSerialNumber", serialnumber);
|
||||
params = params.set("serialNumber", serialnumber);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
GetMDOficialTasks(): Observable<any>
|
||||
{
|
||||
const geturl = environment.apiURL + 'tasks/GetMDOficialTasks';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
GetMDPersonalTasks(): Observable<any>
|
||||
{
|
||||
const geturl = environment.apiURL + 'tasks/GetMDPersonalTasks';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
GetToApprovedEvents(categoryname:string, count:string): Observable<any>
|
||||
{
|
||||
const geturl = environment.apiURL + 'Tasks/ListByCategory';
|
||||
let params = new HttpParams();
|
||||
|
||||
params = params.set("categoryname", categoryname);
|
||||
params = params.set("onlyCount", count);
|
||||
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get<any>(`${geturl}`, options);
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -0,0 +1,961 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([[2],{
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/ion-app_8.entry.js":
|
||||
/*!**************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/ion-app_8.entry.js ***!
|
||||
\**************************************************************/
|
||||
/*! exports provided: ion_app, ion_buttons, ion_content, ion_footer, ion_header, ion_router_outlet, ion_title, ion_toolbar */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ion_app", function() { return App; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ion_buttons", function() { return Buttons; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ion_content", function() { return Content; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ion_footer", function() { return Footer; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ion_header", function() { return Header; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ion_router_outlet", function() { return RouterOutlet; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ion_title", function() { return ToolbarTitle; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ion_toolbar", function() { return Toolbar; });
|
||||
/* harmony import */ var _index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index-44bf8136.js */ "./node_modules/@ionic/core/dist/esm/index-44bf8136.js");
|
||||
/* harmony import */ var _ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./ionic-global-837be8f3.js */ "./node_modules/@ionic/core/dist/esm/ionic-global-837be8f3.js");
|
||||
/* harmony import */ var _helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./helpers-5c745fbd.js */ "./node_modules/@ionic/core/dist/esm/helpers-5c745fbd.js");
|
||||
/* harmony import */ var _index_37b50f53_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index-37b50f53.js */ "./node_modules/@ionic/core/dist/esm/index-37b50f53.js");
|
||||
/* harmony import */ var _cubic_bezier_685f606a_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./cubic-bezier-685f606a.js */ "./node_modules/@ionic/core/dist/esm/cubic-bezier-685f606a.js");
|
||||
/* harmony import */ var _theme_3f0b0c04_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./theme-3f0b0c04.js */ "./node_modules/@ionic/core/dist/esm/theme-3f0b0c04.js");
|
||||
/* harmony import */ var _framework_delegate_d1eb6504_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./framework-delegate-d1eb6504.js */ "./node_modules/@ionic/core/dist/esm/framework-delegate-d1eb6504.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const appCss = "html.plt-mobile ion-app{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}ion-app.force-statusbar-padding{--ion-safe-area-top:20px}";
|
||||
|
||||
const App = class {
|
||||
constructor(hostRef) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
|
||||
}
|
||||
componentDidLoad() {
|
||||
{
|
||||
rIC(() => {
|
||||
const isHybrid = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["i"])(window, 'hybrid');
|
||||
if (!_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"].getBoolean('_testing')) {
|
||||
__webpack_require__.e(/*! import() | tap-click-252af35a-js */ "tap-click-252af35a-js").then(__webpack_require__.bind(null, /*! ./tap-click-252af35a.js */ "./node_modules/@ionic/core/dist/esm/tap-click-252af35a.js")).then(module => module.startTapClick(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"]));
|
||||
}
|
||||
if (_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"].getBoolean('statusTap', isHybrid)) {
|
||||
__webpack_require__.e(/*! import() | status-tap-a9bf301d-js */ "status-tap-a9bf301d-js").then(__webpack_require__.bind(null, /*! ./status-tap-a9bf301d.js */ "./node_modules/@ionic/core/dist/esm/status-tap-a9bf301d.js")).then(module => module.startStatusTap());
|
||||
}
|
||||
if (_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"].getBoolean('inputShims', needInputShims())) {
|
||||
__webpack_require__.e(/*! import() | input-shims-b956f530-js */ "input-shims-b956f530-js").then(__webpack_require__.bind(null, /*! ./input-shims-b956f530.js */ "./node_modules/@ionic/core/dist/esm/input-shims-b956f530.js")).then(module => module.startInputShims(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"]));
|
||||
}
|
||||
if (_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"].getBoolean('hardwareBackButton', isHybrid)) {
|
||||
Promise.resolve(/*! import() */).then(__webpack_require__.bind(null, /*! ./hardware-back-button-7b6ede21.js */ "./node_modules/@ionic/core/dist/esm/hardware-back-button-7b6ede21.js")).then(module => module.startHardwareBackButton());
|
||||
}
|
||||
if (typeof window !== 'undefined') {
|
||||
__webpack_require__.e(/*! import() | keyboard-dd970efc-js */ "keyboard-dd970efc-js").then(__webpack_require__.bind(null, /*! ./keyboard-dd970efc.js */ "./node_modules/@ionic/core/dist/esm/keyboard-dd970efc.js")).then(module => module.startKeyboardAssist(window));
|
||||
}
|
||||
__webpack_require__.e(/*! import() | focus-visible-15ada7f7-js */ "focus-visible-15ada7f7-js").then(__webpack_require__.bind(null, /*! ./focus-visible-15ada7f7.js */ "./node_modules/@ionic/core/dist/esm/focus-visible-15ada7f7.js")).then(module => module.startFocusVisible());
|
||||
});
|
||||
}
|
||||
}
|
||||
render() {
|
||||
const mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
return (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], { class: {
|
||||
[mode]: true,
|
||||
'ion-page': true,
|
||||
'force-statusbar-padding': _ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"].getBoolean('_forceStatusbarPadding'),
|
||||
} }));
|
||||
}
|
||||
get el() { return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this); }
|
||||
};
|
||||
const needInputShims = () => {
|
||||
return Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["i"])(window, 'ios') && Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["i"])(window, 'mobile');
|
||||
};
|
||||
const rIC = (callback) => {
|
||||
if ('requestIdleCallback' in window) {
|
||||
window.requestIdleCallback(callback);
|
||||
}
|
||||
else {
|
||||
setTimeout(callback, 32);
|
||||
}
|
||||
};
|
||||
App.style = appCss;
|
||||
|
||||
const buttonsIosCss = ".sc-ion-buttons-ios-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-ios-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-ios-s ion-button{--padding-start:5px;--padding-end:5px;margin-left:2px;margin-right:2px;height:32px;font-size:17px;font-weight:400}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-button{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}.sc-ion-buttons-ios-s ion-button:not(.button-round){--border-radius:4px}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button{--color:initial;--border-color:initial;--background-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-solid,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-solid{--background:var(--ion-color-contrast);--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12;--background-hover:var(--ion-color-base);--background-hover-opacity:0.45;--color:var(--ion-color-base);--color-focused:var(--ion-color-base)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-clear,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-clear{--color-activated:var(--ion-color-contrast);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-h.ion-color.sc-ion-buttons-ios-s .button-outline,.ion-color .sc-ion-buttons-ios-h.sc-ion-buttons-ios-s .button-outline{--color-activated:var(--ion-color-base);--color-focused:var(--ion-color-contrast)}.sc-ion-buttons-ios-s .button-clear,.sc-ion-buttons-ios-s .button-outline{--background-activated:transparent;--background-focused:currentColor;--background-hover:transparent}.sc-ion-buttons-ios-s .button-solid:not(.ion-color){--background-focused:#000;--background-focused-opacity:.12;--background-activated:#000;--background-activated-opacity:.12}.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-right:0.3em;font-size:24px;line-height:0.67}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-icon[slot=start]{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-left:0.4em;font-size:24px;line-height:0.67}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-ios-s ion-icon[slot=end]{margin-left:unset;-webkit-margin-start:0.4em;margin-inline-start:0.4em}}.sc-ion-buttons-ios-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:28px;line-height:0.67}";
|
||||
|
||||
const buttonsMdCss = ".sc-ion-buttons-md-h{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);z-index:99}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.sc-ion-buttons-md-s ion-button{--padding-top:0;--padding-bottom:0;--padding-start:8px;--padding-end:8px;--box-shadow:none;margin-left:2px;margin-right:2px;height:32px;font-size:14px;font-weight:500}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-button{margin-left:unset;margin-right:unset;-webkit-margin-start:2px;margin-inline-start:2px;-webkit-margin-end:2px;margin-inline-end:2px}}.sc-ion-buttons-md-s ion-button:not(.button-round){--border-radius:2px}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button{--color:initial;--color-focused:var(--ion-color-contrast);--color-hover:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-contrast);--background-hover:var(--ion-color-contrast)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-solid,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-solid{--background:var(--ion-color-contrast);--background-activated:transparent;--background-focused:var(--ion-color-shade);--background-hover:var(--ion-color-base);--color:var(--ion-color-base);--color-focused:var(--ion-color-base);--color-hover:var(--ion-color-base)}.sc-ion-buttons-md-h.ion-color.sc-ion-buttons-md-s .button-outline,.ion-color .sc-ion-buttons-md-h.sc-ion-buttons-md-s .button-outline{--border-color:var(--ion-color-contrast)}.sc-ion-buttons-md-s .button-has-icon-only.button-clear{--padding-top:12px;--padding-end:12px;--padding-bottom:12px;--padding-start:12px;--border-radius:50%;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;width:48px;height:48px}.sc-ion-buttons-md-s .button{--background-hover:currentColor}.sc-ion-buttons-md-s .button-solid{--color:var(--ion-toolbar-background, var(--ion-background-color, #fff));--background:var(--ion-toolbar-color, var(--ion-text-color, #424242));--background-activated:transparent;--background-focused:currentColor}.sc-ion-buttons-md-s .button-outline{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor;--border-color:currentColor}.sc-ion-buttons-md-s .button-clear{--color:initial;--background:transparent;--background-activated:transparent;--background-focused:currentColor;--background-hover:currentColor}.sc-ion-buttons-md-s ion-icon[slot=start]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-right:0.3em;font-size:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-icon[slot=start]{margin-right:unset;-webkit-margin-end:0.3em;margin-inline-end:0.3em}}.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;margin-left:0.4em;font-size:1.4em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.sc-ion-buttons-md-s ion-icon[slot=end]{margin-left:unset;-webkit-margin-start:0.4em;margin-inline-start:0.4em}}.sc-ion-buttons-md-s ion-icon[slot=icon-only]{padding-left:0;padding-right:0;padding-top:0;padding-bottom:0;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0;font-size:1.8em}";
|
||||
|
||||
const Buttons = class {
|
||||
constructor(hostRef) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
|
||||
/**
|
||||
* If true, buttons will disappear when its
|
||||
* parent toolbar has fully collapsed if the toolbar
|
||||
* is not the first toolbar. If the toolbar is the
|
||||
* first toolbar, the buttons will be hidden and will
|
||||
* only be shown once all toolbars have fully collapsed.
|
||||
*
|
||||
* Only applies in `ios` mode with `collapse` set to
|
||||
* `true` on `ion-header`.
|
||||
*
|
||||
* Typically used for [Collapsible Large Titles](https://ionicframework.com/docs/api/title#collapsible-large-titles)
|
||||
*/
|
||||
this.collapse = false;
|
||||
}
|
||||
render() {
|
||||
const mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
return (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], { class: {
|
||||
[mode]: true,
|
||||
['buttons-collapse']: this.collapse
|
||||
} }));
|
||||
}
|
||||
};
|
||||
Buttons.style = {
|
||||
ios: buttonsIosCss,
|
||||
md: buttonsMdCss
|
||||
};
|
||||
|
||||
const contentCss = ":host{--background:var(--ion-background-color, #fff);--color:var(--ion-text-color, #000);--padding-top:0px;--padding-bottom:0px;--padding-start:0px;--padding-end:0px;--keyboard-offset:0px;--offset-top:0px;--offset-bottom:0px;--overflow:auto;display:block;position:relative;-ms-flex:1;flex:1;width:100%;height:100%;margin:0 !important;padding:0 !important;font-family:var(--ion-font-family, inherit);contain:size style}:host(.ion-color) .inner-scroll{background:var(--ion-color-base);color:var(--ion-color-contrast)}:host(.outer-content){--background:var(--ion-color-step-50, #f2f2f2)}#background-content{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);position:absolute;background:var(--background)}.inner-scroll{left:0px;right:0px;top:calc(var(--offset-top) * -1);bottom:calc(var(--offset-bottom) * -1);padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:calc(var(--padding-top) + var(--offset-top));padding-bottom:calc(var(--padding-bottom) + var(--keyboard-offset) + var(--offset-bottom));position:absolute;color:var(--color);-webkit-box-sizing:border-box;box-sizing:border-box;overflow:hidden}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.inner-scroll{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.scroll-y,.scroll-x{-webkit-overflow-scrolling:touch;will-change:scroll-position}.scroll-y{-ms-touch-action:pan-y;touch-action:pan-y;overflow-y:var(--overflow);overscroll-behavior-y:contain}.scroll-x{-ms-touch-action:pan-x;touch-action:pan-x;overflow-x:var(--overflow);overscroll-behavior-x:contain}.scroll-x.scroll-y{-ms-touch-action:auto;touch-action:auto}.overscroll::before,.overscroll::after{position:absolute;width:1px;height:1px;content:\"\"}.overscroll::before{bottom:-1px}.overscroll::after{top:-1px}:host(.content-sizing){contain:none}:host(.content-sizing) .inner-scroll{position:relative}.transition-effect{display:none;position:absolute;left:-100%;width:100%;height:100vh;opacity:0;pointer-events:none}.transition-cover{position:absolute;right:0;width:100%;height:100%;background:black;opacity:0.1}.transition-shadow{display:block;position:absolute;right:0;width:10px;height:100%;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAgCAYAAAAIXrg4AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyhpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNi1jMTQ1IDc5LjE2MzQ5OSwgMjAxOC8wOC8xMy0xNjo0MDoyMiAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIDIwMTkgKE1hY2ludG9zaCkiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6MTE3MDgzRkQ5QTkyMTFFOUEwNzQ5MkJFREE1NUY2MjQiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6MTE3MDgzRkU5QTkyMTFFOUEwNzQ5MkJFREE1NUY2MjQiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDoxMTcwODNGQjlBOTIxMUU5QTA3NDkyQkVEQTU1RjYyNCIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDoxMTcwODNGQzlBOTIxMUU5QTA3NDkyQkVEQTU1RjYyNCIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PmePEuQAAABNSURBVHjaYvz//z8DIxAwMDAwATGMhmFmPDQuOSZks0AMmoJBaQHjkPfB0Lfg/2gQjVow+HPy/yHvg9GiYjQfjMbBqAWjFgy/4hogwADYqwdzxy5BuwAAAABJRU5ErkJggg==);background-repeat:repeat-y;background-size:10px 16px}::slotted([slot=fixed]){position:absolute}";
|
||||
|
||||
const Content = class {
|
||||
constructor(hostRef) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
|
||||
this.ionScrollStart = Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionScrollStart", 7);
|
||||
this.ionScroll = Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionScroll", 7);
|
||||
this.ionScrollEnd = Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionScrollEnd", 7);
|
||||
this.isScrolling = false;
|
||||
this.lastScroll = 0;
|
||||
this.queued = false;
|
||||
this.cTop = -1;
|
||||
this.cBottom = -1;
|
||||
// Detail is used in a hot loop in the scroll event, by allocating it here
|
||||
// V8 will be able to inline any read/write to it since it's a monomorphic class.
|
||||
// https://mrale.ph/blog/2015/01/11/whats-up-with-monomorphism.html
|
||||
this.detail = {
|
||||
scrollTop: 0,
|
||||
scrollLeft: 0,
|
||||
type: 'scroll',
|
||||
event: undefined,
|
||||
startX: 0,
|
||||
startY: 0,
|
||||
startTime: 0,
|
||||
currentX: 0,
|
||||
currentY: 0,
|
||||
velocityX: 0,
|
||||
velocityY: 0,
|
||||
deltaX: 0,
|
||||
deltaY: 0,
|
||||
currentTime: 0,
|
||||
data: undefined,
|
||||
isScrolling: true,
|
||||
};
|
||||
/**
|
||||
* If `true`, the content will scroll behind the headers
|
||||
* and footers. This effect can easily be seen by setting the toolbar
|
||||
* to transparent.
|
||||
*/
|
||||
this.fullscreen = false;
|
||||
/**
|
||||
* If you want to enable the content scrolling in the X axis, set this property to `true`.
|
||||
*/
|
||||
this.scrollX = false;
|
||||
/**
|
||||
* If you want to disable the content scrolling in the Y axis, set this property to `false`.
|
||||
*/
|
||||
this.scrollY = true;
|
||||
/**
|
||||
* Because of performance reasons, ionScroll events are disabled by default, in order to enable them
|
||||
* and start listening from (ionScroll), set this property to `true`.
|
||||
*/
|
||||
this.scrollEvents = false;
|
||||
}
|
||||
disconnectedCallback() {
|
||||
this.onScrollEnd();
|
||||
}
|
||||
onAppLoad() {
|
||||
this.resize();
|
||||
}
|
||||
onClick(ev) {
|
||||
if (this.isScrolling) {
|
||||
ev.preventDefault();
|
||||
ev.stopPropagation();
|
||||
}
|
||||
}
|
||||
shouldForceOverscroll() {
|
||||
const { forceOverscroll } = this;
|
||||
const mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
return forceOverscroll === undefined
|
||||
? mode === 'ios' && Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["i"])('ios')
|
||||
: forceOverscroll;
|
||||
}
|
||||
resize() {
|
||||
if (this.fullscreen) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["f"])(() => this.readDimensions());
|
||||
}
|
||||
else if (this.cTop !== 0 || this.cBottom !== 0) {
|
||||
this.cTop = this.cBottom = 0;
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["j"])(this);
|
||||
}
|
||||
}
|
||||
readDimensions() {
|
||||
const page = getPageElement(this.el);
|
||||
const top = Math.max(this.el.offsetTop, 0);
|
||||
const bottom = Math.max(page.offsetHeight - top - this.el.offsetHeight, 0);
|
||||
const dirty = top !== this.cTop || bottom !== this.cBottom;
|
||||
if (dirty) {
|
||||
this.cTop = top;
|
||||
this.cBottom = bottom;
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["j"])(this);
|
||||
}
|
||||
}
|
||||
onScroll(ev) {
|
||||
const timeStamp = Date.now();
|
||||
const shouldStart = !this.isScrolling;
|
||||
this.lastScroll = timeStamp;
|
||||
if (shouldStart) {
|
||||
this.onScrollStart();
|
||||
}
|
||||
if (!this.queued && this.scrollEvents) {
|
||||
this.queued = true;
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["f"])(ts => {
|
||||
this.queued = false;
|
||||
this.detail.event = ev;
|
||||
updateScrollDetail(this.detail, this.scrollEl, ts, shouldStart);
|
||||
this.ionScroll.emit(this.detail);
|
||||
});
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Get the element where the actual scrolling takes place.
|
||||
* This element can be used to subscribe to `scroll` events or manually modify
|
||||
* `scrollTop`. However, it's recommended to use the API provided by `ion-content`:
|
||||
*
|
||||
* i.e. Using `ionScroll`, `ionScrollStart`, `ionScrollEnd` for scrolling events
|
||||
* and `scrollToPoint()` to scroll the content into a certain point.
|
||||
*/
|
||||
getScrollElement() {
|
||||
return Promise.resolve(this.scrollEl);
|
||||
}
|
||||
/**
|
||||
* Scroll to the top of the component.
|
||||
*
|
||||
* @param duration The amount of time to take scrolling to the top. Defaults to `0`.
|
||||
*/
|
||||
scrollToTop(duration = 0) {
|
||||
return this.scrollToPoint(undefined, 0, duration);
|
||||
}
|
||||
/**
|
||||
* Scroll to the bottom of the component.
|
||||
*
|
||||
* @param duration The amount of time to take scrolling to the bottom. Defaults to `0`.
|
||||
*/
|
||||
scrollToBottom(duration = 0) {
|
||||
const y = this.scrollEl.scrollHeight - this.scrollEl.clientHeight;
|
||||
return this.scrollToPoint(undefined, y, duration);
|
||||
}
|
||||
/**
|
||||
* Scroll by a specified X/Y distance in the component.
|
||||
*
|
||||
* @param x The amount to scroll by on the horizontal axis.
|
||||
* @param y The amount to scroll by on the vertical axis.
|
||||
* @param duration The amount of time to take scrolling by that amount.
|
||||
*/
|
||||
scrollByPoint(x, y, duration) {
|
||||
return this.scrollToPoint(x + this.scrollEl.scrollLeft, y + this.scrollEl.scrollTop, duration);
|
||||
}
|
||||
/**
|
||||
* Scroll to a specified X/Y location in the component.
|
||||
*
|
||||
* @param x The point to scroll to on the horizontal axis.
|
||||
* @param y The point to scroll to on the vertical axis.
|
||||
* @param duration The amount of time to take scrolling to that point. Defaults to `0`.
|
||||
*/
|
||||
async scrollToPoint(x, y, duration = 0) {
|
||||
const el = this.scrollEl;
|
||||
if (duration < 32) {
|
||||
if (y != null) {
|
||||
el.scrollTop = y;
|
||||
}
|
||||
if (x != null) {
|
||||
el.scrollLeft = x;
|
||||
}
|
||||
return;
|
||||
}
|
||||
let resolve;
|
||||
let startTime = 0;
|
||||
const promise = new Promise(r => resolve = r);
|
||||
const fromY = el.scrollTop;
|
||||
const fromX = el.scrollLeft;
|
||||
const deltaY = y != null ? y - fromY : 0;
|
||||
const deltaX = x != null ? x - fromX : 0;
|
||||
// scroll loop
|
||||
const step = (timeStamp) => {
|
||||
const linearTime = Math.min(1, ((timeStamp - startTime) / duration)) - 1;
|
||||
const easedT = Math.pow(linearTime, 3) + 1;
|
||||
if (deltaY !== 0) {
|
||||
el.scrollTop = Math.floor((easedT * deltaY) + fromY);
|
||||
}
|
||||
if (deltaX !== 0) {
|
||||
el.scrollLeft = Math.floor((easedT * deltaX) + fromX);
|
||||
}
|
||||
if (easedT < 1) {
|
||||
// do not use DomController here
|
||||
// must use nativeRaf in order to fire in the next frame
|
||||
// TODO: remove as any
|
||||
requestAnimationFrame(step);
|
||||
}
|
||||
else {
|
||||
resolve();
|
||||
}
|
||||
};
|
||||
// chill out for a frame first
|
||||
requestAnimationFrame(ts => {
|
||||
startTime = ts;
|
||||
step(ts);
|
||||
});
|
||||
return promise;
|
||||
}
|
||||
onScrollStart() {
|
||||
this.isScrolling = true;
|
||||
this.ionScrollStart.emit({
|
||||
isScrolling: true
|
||||
});
|
||||
if (this.watchDog) {
|
||||
clearInterval(this.watchDog);
|
||||
}
|
||||
// watchdog
|
||||
this.watchDog = setInterval(() => {
|
||||
if (this.lastScroll < Date.now() - 120) {
|
||||
this.onScrollEnd();
|
||||
}
|
||||
}, 100);
|
||||
}
|
||||
onScrollEnd() {
|
||||
clearInterval(this.watchDog);
|
||||
this.watchDog = null;
|
||||
if (this.isScrolling) {
|
||||
this.isScrolling = false;
|
||||
this.ionScrollEnd.emit({
|
||||
isScrolling: false
|
||||
});
|
||||
}
|
||||
}
|
||||
render() {
|
||||
const { scrollX, scrollY } = this;
|
||||
const mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
const forceOverscroll = this.shouldForceOverscroll();
|
||||
const transitionShadow = (mode === 'ios' && _ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"].getBoolean('experimentalTransitionShadow', true));
|
||||
this.resize();
|
||||
return (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], { class: Object.assign(Object.assign({}, Object(_theme_3f0b0c04_js__WEBPACK_IMPORTED_MODULE_5__["c"])(this.color)), { [mode]: true, 'content-sizing': Object(_theme_3f0b0c04_js__WEBPACK_IMPORTED_MODULE_5__["h"])('ion-popover', this.el), 'overscroll': forceOverscroll }), style: {
|
||||
'--offset-top': `${this.cTop}px`,
|
||||
'--offset-bottom': `${this.cBottom}px`,
|
||||
} }, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { id: "background-content", part: "background" }), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("main", { class: {
|
||||
'inner-scroll': true,
|
||||
'scroll-x': scrollX,
|
||||
'scroll-y': scrollY,
|
||||
'overscroll': (scrollX || scrollY) && forceOverscroll
|
||||
}, ref: el => this.scrollEl = el, onScroll: (this.scrollEvents) ? ev => this.onScroll(ev) : undefined, part: "scroll" }, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null)), transitionShadow ? (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "transition-effect" }, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "transition-cover" }), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "transition-shadow" }))) : null, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", { name: "fixed" })));
|
||||
}
|
||||
get el() { return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this); }
|
||||
};
|
||||
const getParentElement = (el) => {
|
||||
if (el.parentElement) {
|
||||
// normal element with a parent element
|
||||
return el.parentElement;
|
||||
}
|
||||
if (el.parentNode && el.parentNode.host) {
|
||||
// shadow dom's document fragment
|
||||
return el.parentNode.host;
|
||||
}
|
||||
return null;
|
||||
};
|
||||
const getPageElement = (el) => {
|
||||
const tabs = el.closest('ion-tabs');
|
||||
if (tabs) {
|
||||
return tabs;
|
||||
}
|
||||
const page = el.closest('ion-app,ion-page,.ion-page,page-inner');
|
||||
if (page) {
|
||||
return page;
|
||||
}
|
||||
return getParentElement(el);
|
||||
};
|
||||
// ******** DOM READ ****************
|
||||
const updateScrollDetail = (detail, el, timestamp, shouldStart) => {
|
||||
const prevX = detail.currentX;
|
||||
const prevY = detail.currentY;
|
||||
const prevT = detail.currentTime;
|
||||
const currentX = el.scrollLeft;
|
||||
const currentY = el.scrollTop;
|
||||
const timeDelta = timestamp - prevT;
|
||||
if (shouldStart) {
|
||||
// remember the start positions
|
||||
detail.startTime = timestamp;
|
||||
detail.startX = currentX;
|
||||
detail.startY = currentY;
|
||||
detail.velocityX = detail.velocityY = 0;
|
||||
}
|
||||
detail.currentTime = timestamp;
|
||||
detail.currentX = detail.scrollLeft = currentX;
|
||||
detail.currentY = detail.scrollTop = currentY;
|
||||
detail.deltaX = currentX - detail.startX;
|
||||
detail.deltaY = currentY - detail.startY;
|
||||
if (timeDelta > 0 && timeDelta < 100) {
|
||||
const velocityX = (currentX - prevX) / timeDelta;
|
||||
const velocityY = (currentY - prevY) / timeDelta;
|
||||
detail.velocityX = velocityX * 0.7 + detail.velocityX * 0.3;
|
||||
detail.velocityY = velocityY * 0.7 + detail.velocityY * 0.3;
|
||||
}
|
||||
};
|
||||
Content.style = contentCss;
|
||||
|
||||
const footerIosCss = "ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-ios ion-toolbar:first-of-type{--border-width:0.55px 0 0}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.footer-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.footer-translucent-ios ion-toolbar{--opacity:.8}}.footer-ios.ion-no-border ion-toolbar:first-of-type{--border-width:0}";
|
||||
|
||||
const footerMdCss = "ion-footer{display:block;position:relative;-ms-flex-order:1;order:1;width:100%;z-index:10}ion-footer ion-toolbar:last-of-type{padding-bottom:var(--ion-safe-area-bottom, 0)}.footer-md::before{left:0;top:-2px;bottom:auto;background-position:left 0 top 0;position:absolute;width:100%;height:2px;background-image:url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAHBAMAAADzDtBxAAAAD1BMVEUAAAAAAAAAAAAAAAAAAABPDueNAAAABXRSTlMUCS0gBIh/TXEAAAAaSURBVAjXYxCEAgY4UIICBmMogMsgFLtAAQCNSwXZKOdPxgAAAABJRU5ErkJggg==\");background-repeat:repeat-x;content:\"\"}[dir=rtl] .footer-md::before,:host-context([dir=rtl]) .footer-md::before{left:unset;right:unset;right:0}[dir=rtl] .footer-md::before,:host-context([dir=rtl]) .footer-md::before{background-position:right 0 top 0}.footer-md.ion-no-border::before{display:none}";
|
||||
|
||||
const Footer = class {
|
||||
constructor(hostRef) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
|
||||
/**
|
||||
* If `true`, the footer will be translucent.
|
||||
* Only applies when the mode is `"ios"` and the device supports
|
||||
* [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
|
||||
*
|
||||
* Note: In order to scroll content behind the footer, the `fullscreen`
|
||||
* attribute needs to be set on the content.
|
||||
*/
|
||||
this.translucent = false;
|
||||
}
|
||||
render() {
|
||||
const mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
const translucent = this.translucent;
|
||||
return (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], { role: "contentinfo", class: {
|
||||
[mode]: true,
|
||||
// Used internally for styling
|
||||
[`footer-${mode}`]: true,
|
||||
[`footer-translucent`]: translucent,
|
||||
[`footer-translucent-${mode}`]: translucent,
|
||||
} }, mode === 'ios' && translucent &&
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "footer-background" }), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null)));
|
||||
}
|
||||
};
|
||||
Footer.style = {
|
||||
ios: footerIosCss,
|
||||
md: footerMdCss
|
||||
};
|
||||
|
||||
const TRANSITION = 'all 0.2s ease-in-out';
|
||||
const cloneElement = (tagName) => {
|
||||
const getCachedEl = document.querySelector(`${tagName}.ion-cloned-element`);
|
||||
if (getCachedEl !== null) {
|
||||
return getCachedEl;
|
||||
}
|
||||
const clonedEl = document.createElement(tagName);
|
||||
clonedEl.classList.add('ion-cloned-element');
|
||||
clonedEl.style.setProperty('display', 'none');
|
||||
document.body.appendChild(clonedEl);
|
||||
return clonedEl;
|
||||
};
|
||||
const createHeaderIndex = (headerEl) => {
|
||||
if (!headerEl) {
|
||||
return;
|
||||
}
|
||||
const toolbars = headerEl.querySelectorAll('ion-toolbar');
|
||||
return {
|
||||
el: headerEl,
|
||||
toolbars: Array.from(toolbars).map((toolbar) => {
|
||||
const ionTitleEl = toolbar.querySelector('ion-title');
|
||||
return {
|
||||
el: toolbar,
|
||||
background: toolbar.shadowRoot.querySelector('.toolbar-background'),
|
||||
ionTitleEl,
|
||||
innerTitleEl: (ionTitleEl) ? ionTitleEl.shadowRoot.querySelector('.toolbar-title') : null,
|
||||
ionButtonsEl: Array.from(toolbar.querySelectorAll('ion-buttons')) || []
|
||||
};
|
||||
}) || []
|
||||
};
|
||||
};
|
||||
const handleContentScroll = (scrollEl, scrollHeaderIndex, contentEl) => {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["f"])(() => {
|
||||
const scrollTop = scrollEl.scrollTop;
|
||||
const scale = Object(_helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_2__["c"])(1, 1 + (-scrollTop / 500), 1.1);
|
||||
// Native refresher should not cause titles to scale
|
||||
const nativeRefresher = contentEl.querySelector('ion-refresher.refresher-native');
|
||||
if (nativeRefresher === null) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["c"])(() => {
|
||||
scaleLargeTitles(scrollHeaderIndex.toolbars, scale);
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
const setToolbarBackgroundOpacity = (toolbar, opacity) => {
|
||||
if (opacity === undefined) {
|
||||
toolbar.background.style.removeProperty('--opacity');
|
||||
}
|
||||
else {
|
||||
toolbar.background.style.setProperty('--opacity', opacity.toString());
|
||||
}
|
||||
};
|
||||
const handleToolbarBorderIntersection = (ev, mainHeaderIndex) => {
|
||||
if (!ev[0].isIntersecting) {
|
||||
return;
|
||||
}
|
||||
/**
|
||||
* There is a bug in Safari where overflow scrolling on a non-body element
|
||||
* does not always reset the scrollTop position to 0 when letting go. It will
|
||||
* set to 1 once the rubber band effect has ended. This causes the background to
|
||||
* appear slightly on certain app setups.
|
||||
*/
|
||||
const scale = (ev[0].intersectionRatio > 0.9) ? 0 : ((1 - ev[0].intersectionRatio) * 100) / 75;
|
||||
mainHeaderIndex.toolbars.forEach(toolbar => {
|
||||
setToolbarBackgroundOpacity(toolbar, (scale === 1) ? undefined : scale);
|
||||
});
|
||||
};
|
||||
/**
|
||||
* If toolbars are intersecting, hide the scrollable toolbar content
|
||||
* and show the primary toolbar content. If the toolbars are not intersecting,
|
||||
* hide the primary toolbar content and show the scrollable toolbar content
|
||||
*/
|
||||
const handleToolbarIntersection = (ev, mainHeaderIndex, scrollHeaderIndex) => {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["c"])(() => {
|
||||
handleToolbarBorderIntersection(ev, mainHeaderIndex);
|
||||
const event = ev[0];
|
||||
const intersection = event.intersectionRect;
|
||||
const intersectionArea = intersection.width * intersection.height;
|
||||
const rootArea = event.rootBounds.width * event.rootBounds.height;
|
||||
const isPageHidden = intersectionArea === 0 && rootArea === 0;
|
||||
const leftDiff = Math.abs(intersection.left - event.boundingClientRect.left);
|
||||
const rightDiff = Math.abs(intersection.right - event.boundingClientRect.right);
|
||||
const isPageTransitioning = intersectionArea > 0 && (leftDiff >= 5 || rightDiff >= 5);
|
||||
if (isPageHidden || isPageTransitioning) {
|
||||
return;
|
||||
}
|
||||
if (event.isIntersecting) {
|
||||
setHeaderActive(mainHeaderIndex, false);
|
||||
setHeaderActive(scrollHeaderIndex);
|
||||
}
|
||||
else {
|
||||
/**
|
||||
* There is a bug with IntersectionObserver on Safari
|
||||
* where `event.isIntersecting === false` when cancelling
|
||||
* a swipe to go back gesture. Checking the intersection
|
||||
* x, y, width, and height provides a workaround. This bug
|
||||
* does not happen when using Safari + Web Animations,
|
||||
* only Safari + CSS Animations.
|
||||
*/
|
||||
const hasValidIntersection = (intersection.x === 0 && intersection.y === 0) || (intersection.width !== 0 && intersection.height !== 0);
|
||||
if (hasValidIntersection) {
|
||||
setHeaderActive(mainHeaderIndex);
|
||||
setHeaderActive(scrollHeaderIndex, false);
|
||||
setToolbarBackgroundOpacity(mainHeaderIndex.toolbars[0]);
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
const setHeaderActive = (headerIndex, active = true) => {
|
||||
if (active) {
|
||||
headerIndex.el.classList.remove('header-collapse-condense-inactive');
|
||||
}
|
||||
else {
|
||||
headerIndex.el.classList.add('header-collapse-condense-inactive');
|
||||
}
|
||||
};
|
||||
const scaleLargeTitles = (toolbars = [], scale = 1, transition = false) => {
|
||||
toolbars.forEach(toolbar => {
|
||||
const ionTitle = toolbar.ionTitleEl;
|
||||
const titleDiv = toolbar.innerTitleEl;
|
||||
if (!ionTitle || ionTitle.size !== 'large') {
|
||||
return;
|
||||
}
|
||||
titleDiv.style.transition = (transition) ? TRANSITION : '';
|
||||
titleDiv.style.transform = `scale3d(${scale}, ${scale}, 1)`;
|
||||
});
|
||||
};
|
||||
|
||||
const headerIosCss = "ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-ios ion-toolbar:last-of-type{--border-width:0 0 0.55px}@supports ((-webkit-backdrop-filter: blur(0)) or (backdrop-filter: blur(0))){.header-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.header-translucent-ios ion-toolbar{--opacity:.8}.header-collapse-condense-inactive .header-background{-webkit-backdrop-filter:blur(20px);backdrop-filter:blur(20px)}}.header-ios.ion-no-border ion-toolbar:last-of-type{--border-width:0}.header-collapse-condense{z-index:9}.header-collapse-condense ion-toolbar{position:-webkit-sticky;position:sticky;top:0}.header-collapse-condense ion-toolbar:first-of-type{padding-top:7px;z-index:1}.header-collapse-condense ion-toolbar{--background:var(--ion-background-color, #fff);z-index:0}.header-collapse-condense ion-toolbar ion-searchbar{height:48px;padding-top:0px;padding-bottom:13px}.header-collapse-main ion-toolbar.in-toolbar ion-title,.header-collapse-main ion-toolbar.in-toolbar ion-buttons{-webkit-transition:all 0.2s ease-in-out;transition:all 0.2s ease-in-out}.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive:not(.header-collapse-condense) ion-toolbar.in-toolbar ion-buttons.buttons-collapse{opacity:0;pointer-events:none}.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-title,.header-collapse-condense-inactive.header-collapse-condense ion-toolbar.in-toolbar ion-buttons.buttons-collapse{visibility:hidden}";
|
||||
|
||||
const headerMdCss = "ion-header{display:block;position:relative;-ms-flex-order:-1;order:-1;width:100%;z-index:10}ion-header ion-toolbar:first-of-type{padding-top:var(--ion-safe-area-top, 0)}.header-md::after{left:0;bottom:-5px;background-position:left 0 top -2px;position:absolute;width:100%;height:5px;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAHBAMAAADzDtBxAAAAD1BMVEUAAAAAAAAAAAAAAAAAAABPDueNAAAABXRSTlMUCS0gBIh/TXEAAAAaSURBVAjXYxCEAgY4UIICBmMogMsgFLtAAQCNSwXZKOdPxgAAAABJRU5ErkJggg==);background-repeat:repeat-x;content:\"\"}[dir=rtl] .header-md::after,:host-context([dir=rtl]) .header-md::after{left:unset;right:unset;right:0}[dir=rtl] .header-md::after,:host-context([dir=rtl]) .header-md::after{background-position:right 0 top -2px}.header-collapse-condense{display:none}.header-md.ion-no-border::after{display:none}";
|
||||
|
||||
const Header = class {
|
||||
constructor(hostRef) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
|
||||
this.collapsibleHeaderInitialized = false;
|
||||
/**
|
||||
* If `true`, the header will be translucent.
|
||||
* Only applies when the mode is `"ios"` and the device supports
|
||||
* [`backdrop-filter`](https://developer.mozilla.org/en-US/docs/Web/CSS/backdrop-filter#Browser_compatibility).
|
||||
*
|
||||
* Note: In order to scroll content behind the header, the `fullscreen`
|
||||
* attribute needs to be set on the content.
|
||||
*/
|
||||
this.translucent = false;
|
||||
}
|
||||
async componentDidLoad() {
|
||||
await this.checkCollapsibleHeader();
|
||||
}
|
||||
async componentDidUpdate() {
|
||||
await this.checkCollapsibleHeader();
|
||||
}
|
||||
componentDidUnload() {
|
||||
this.destroyCollapsibleHeader();
|
||||
}
|
||||
async checkCollapsibleHeader() {
|
||||
// Determine if the header can collapse
|
||||
const hasCollapse = this.collapse === 'condense';
|
||||
const canCollapse = (hasCollapse && Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this) === 'ios') ? hasCollapse : false;
|
||||
if (!canCollapse && this.collapsibleHeaderInitialized) {
|
||||
this.destroyCollapsibleHeader();
|
||||
}
|
||||
else if (canCollapse && !this.collapsibleHeaderInitialized) {
|
||||
const pageEl = this.el.closest('ion-app,ion-page,.ion-page,page-inner');
|
||||
const contentEl = (pageEl) ? pageEl.querySelector('ion-content') : null;
|
||||
// Cloned elements are always needed in iOS transition
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["c"])(() => {
|
||||
const title = cloneElement('ion-title');
|
||||
title.size = 'large';
|
||||
cloneElement('ion-back-button');
|
||||
});
|
||||
await this.setupCollapsibleHeader(contentEl, pageEl);
|
||||
}
|
||||
}
|
||||
destroyCollapsibleHeader() {
|
||||
if (this.intersectionObserver) {
|
||||
this.intersectionObserver.disconnect();
|
||||
this.intersectionObserver = undefined;
|
||||
}
|
||||
if (this.scrollEl && this.contentScrollCallback) {
|
||||
this.scrollEl.removeEventListener('scroll', this.contentScrollCallback);
|
||||
this.contentScrollCallback = undefined;
|
||||
}
|
||||
if (this.collapsibleMainHeader) {
|
||||
this.collapsibleMainHeader.classList.remove('header-collapse-main');
|
||||
this.collapsibleMainHeader = undefined;
|
||||
}
|
||||
}
|
||||
async setupCollapsibleHeader(contentEl, pageEl) {
|
||||
if (!contentEl || !pageEl) {
|
||||
console.error('ion-header requires a content to collapse, make sure there is an ion-content.');
|
||||
return;
|
||||
}
|
||||
if (typeof IntersectionObserver === 'undefined') {
|
||||
return;
|
||||
}
|
||||
this.scrollEl = await contentEl.getScrollElement();
|
||||
const headers = pageEl.querySelectorAll('ion-header');
|
||||
this.collapsibleMainHeader = Array.from(headers).find((header) => header.collapse !== 'condense');
|
||||
if (!this.collapsibleMainHeader) {
|
||||
return;
|
||||
}
|
||||
const mainHeaderIndex = createHeaderIndex(this.collapsibleMainHeader);
|
||||
const scrollHeaderIndex = createHeaderIndex(this.el);
|
||||
if (!mainHeaderIndex || !scrollHeaderIndex) {
|
||||
return;
|
||||
}
|
||||
setHeaderActive(mainHeaderIndex, false);
|
||||
mainHeaderIndex.toolbars.forEach(toolbar => {
|
||||
setToolbarBackgroundOpacity(toolbar, 0);
|
||||
});
|
||||
/**
|
||||
* Handle interaction between toolbar collapse and
|
||||
* showing/hiding content in the primary ion-header
|
||||
* as well as progressively showing/hiding the main header
|
||||
* border as the top-most toolbar collapses or expands.
|
||||
*/
|
||||
const toolbarIntersection = (ev) => { handleToolbarIntersection(ev, mainHeaderIndex, scrollHeaderIndex); };
|
||||
this.intersectionObserver = new IntersectionObserver(toolbarIntersection, { root: contentEl, threshold: [0.25, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1] });
|
||||
this.intersectionObserver.observe(scrollHeaderIndex.toolbars[scrollHeaderIndex.toolbars.length - 1].el);
|
||||
/**
|
||||
* Handle scaling of large iOS titles and
|
||||
* showing/hiding border on last toolbar
|
||||
* in primary header
|
||||
*/
|
||||
this.contentScrollCallback = () => { handleContentScroll(this.scrollEl, scrollHeaderIndex, contentEl); };
|
||||
this.scrollEl.addEventListener('scroll', this.contentScrollCallback);
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["c"])(() => {
|
||||
if (this.collapsibleMainHeader !== undefined) {
|
||||
this.collapsibleMainHeader.classList.add('header-collapse-main');
|
||||
}
|
||||
});
|
||||
this.collapsibleHeaderInitialized = true;
|
||||
}
|
||||
render() {
|
||||
const { translucent } = this;
|
||||
const mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
const collapse = this.collapse || 'none';
|
||||
return (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], { role: "banner", class: {
|
||||
[mode]: true,
|
||||
// Used internally for styling
|
||||
[`header-${mode}`]: true,
|
||||
[`header-translucent`]: this.translucent,
|
||||
[`header-collapse-${collapse}`]: true,
|
||||
[`header-translucent-${mode}`]: this.translucent,
|
||||
} }, mode === 'ios' && translucent &&
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "header-background" }), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null)));
|
||||
}
|
||||
get el() { return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this); }
|
||||
};
|
||||
Header.style = {
|
||||
ios: headerIosCss,
|
||||
md: headerMdCss
|
||||
};
|
||||
|
||||
const routeOutletCss = ":host{left:0;right:0;top:0;bottom:0;position:absolute;contain:layout size style;overflow:hidden;z-index:0}";
|
||||
|
||||
const RouterOutlet = class {
|
||||
constructor(hostRef) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
|
||||
this.ionNavWillLoad = Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionNavWillLoad", 7);
|
||||
this.ionNavWillChange = Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionNavWillChange", 3);
|
||||
this.ionNavDidChange = Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionNavDidChange", 3);
|
||||
this.animationEnabled = true;
|
||||
/**
|
||||
* The mode determines which platform styles to use.
|
||||
*/
|
||||
this.mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
/**
|
||||
* If `true`, the router-outlet should animate the transition of components.
|
||||
*/
|
||||
this.animated = true;
|
||||
}
|
||||
swipeHandlerChanged() {
|
||||
if (this.gesture) {
|
||||
this.gesture.enable(this.swipeHandler !== undefined);
|
||||
}
|
||||
}
|
||||
async connectedCallback() {
|
||||
this.gesture = (await __webpack_require__.e(/*! import() | swipe-back-0a6a44c8-js */ "swipe-back-0a6a44c8-js").then(__webpack_require__.bind(null, /*! ./swipe-back-0a6a44c8.js */ "./node_modules/@ionic/core/dist/esm/swipe-back-0a6a44c8.js"))).createSwipeBackGesture(this.el, () => !!this.swipeHandler && this.swipeHandler.canStart() && this.animationEnabled, () => this.swipeHandler && this.swipeHandler.onStart(), step => this.ani && this.ani.progressStep(step), (shouldComplete, step, dur) => {
|
||||
if (this.ani) {
|
||||
this.animationEnabled = false;
|
||||
this.ani.onFinish(() => {
|
||||
this.animationEnabled = true;
|
||||
if (this.swipeHandler) {
|
||||
this.swipeHandler.onEnd(shouldComplete);
|
||||
}
|
||||
}, { oneTimeCallback: true });
|
||||
// Account for rounding errors in JS
|
||||
let newStepValue = (shouldComplete) ? -0.001 : 0.001;
|
||||
/**
|
||||
* Animation will be reversed here, so need to
|
||||
* reverse the easing curve as well
|
||||
*
|
||||
* Additionally, we need to account for the time relative
|
||||
* to the new easing curve, as `stepValue` is going to be given
|
||||
* in terms of a linear curve.
|
||||
*/
|
||||
if (!shouldComplete) {
|
||||
this.ani.easing('cubic-bezier(1, 0, 0.68, 0.28)');
|
||||
newStepValue += Object(_cubic_bezier_685f606a_js__WEBPACK_IMPORTED_MODULE_4__["g"])([0, 0], [1, 0], [0.68, 0.28], [1, 1], step)[0];
|
||||
}
|
||||
else {
|
||||
newStepValue += Object(_cubic_bezier_685f606a_js__WEBPACK_IMPORTED_MODULE_4__["g"])([0, 0], [0.32, 0.72], [0, 1], [1, 1], step)[0];
|
||||
}
|
||||
this.ani.progressEnd(shouldComplete ? 1 : 0, newStepValue, dur);
|
||||
}
|
||||
});
|
||||
this.swipeHandlerChanged();
|
||||
}
|
||||
componentWillLoad() {
|
||||
this.ionNavWillLoad.emit();
|
||||
}
|
||||
disconnectedCallback() {
|
||||
if (this.gesture) {
|
||||
this.gesture.destroy();
|
||||
this.gesture = undefined;
|
||||
}
|
||||
}
|
||||
/** @internal */
|
||||
async commit(enteringEl, leavingEl, opts) {
|
||||
const unlock = await this.lock();
|
||||
let changed = false;
|
||||
try {
|
||||
changed = await this.transition(enteringEl, leavingEl, opts);
|
||||
}
|
||||
catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
unlock();
|
||||
return changed;
|
||||
}
|
||||
/** @internal */
|
||||
async setRouteId(id, params, direction, animation) {
|
||||
const changed = await this.setRoot(id, params, {
|
||||
duration: direction === 'root' ? 0 : undefined,
|
||||
direction: direction === 'back' ? 'back' : 'forward',
|
||||
animationBuilder: animation
|
||||
});
|
||||
return {
|
||||
changed,
|
||||
element: this.activeEl
|
||||
};
|
||||
}
|
||||
/** @internal */
|
||||
async getRouteId() {
|
||||
const active = this.activeEl;
|
||||
return active ? {
|
||||
id: active.tagName,
|
||||
element: active,
|
||||
} : undefined;
|
||||
}
|
||||
async setRoot(component, params, opts) {
|
||||
if (this.activeComponent === component) {
|
||||
return false;
|
||||
}
|
||||
// attach entering view to DOM
|
||||
const leavingEl = this.activeEl;
|
||||
const enteringEl = await Object(_framework_delegate_d1eb6504_js__WEBPACK_IMPORTED_MODULE_6__["a"])(this.delegate, this.el, component, ['ion-page', 'ion-page-invisible'], params);
|
||||
this.activeComponent = component;
|
||||
this.activeEl = enteringEl;
|
||||
// commit animation
|
||||
await this.commit(enteringEl, leavingEl, opts);
|
||||
await Object(_framework_delegate_d1eb6504_js__WEBPACK_IMPORTED_MODULE_6__["d"])(this.delegate, leavingEl);
|
||||
return true;
|
||||
}
|
||||
async transition(enteringEl, leavingEl, opts = {}) {
|
||||
if (leavingEl === enteringEl) {
|
||||
return false;
|
||||
}
|
||||
// emit nav will change event
|
||||
this.ionNavWillChange.emit();
|
||||
const { el, mode } = this;
|
||||
const animated = this.animated && _ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"].getBoolean('animated', true);
|
||||
const animationBuilder = this.animation || opts.animationBuilder || _ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["c"].get('navAnimation');
|
||||
await Object(_index_37b50f53_js__WEBPACK_IMPORTED_MODULE_3__["t"])(Object.assign(Object.assign({ mode,
|
||||
animated,
|
||||
enteringEl,
|
||||
leavingEl, baseEl: el, progressCallback: (opts.progressAnimation
|
||||
? ani => this.ani = ani
|
||||
: undefined) }, opts), { animationBuilder }));
|
||||
// emit nav changed event
|
||||
this.ionNavDidChange.emit();
|
||||
return true;
|
||||
}
|
||||
async lock() {
|
||||
const p = this.waitPromise;
|
||||
let resolve;
|
||||
this.waitPromise = new Promise(r => resolve = r);
|
||||
if (p !== undefined) {
|
||||
await p;
|
||||
}
|
||||
return resolve;
|
||||
}
|
||||
render() {
|
||||
return (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null));
|
||||
}
|
||||
get el() { return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this); }
|
||||
static get watchers() { return {
|
||||
"swipeHandler": ["swipeHandlerChanged"]
|
||||
}; }
|
||||
};
|
||||
RouterOutlet.style = routeOutletCss;
|
||||
|
||||
const titleIosCss = ":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{left:0;top:0;padding-left:90px;padding-right:90px;padding-top:0;padding-bottom:0;position:absolute;width:100%;height:100%;-webkit-transform:translateZ(0);transform:translateZ(0);font-size:17px;font-weight:600;text-align:center;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none}:host-context([dir=rtl]){left:unset;right:unset;right:0}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:90px;padding-inline-start:90px;-webkit-padding-end:90px;padding-inline-end:90px}}:host(.title-small){padding-left:9px;padding-right:9px;padding-top:6px;padding-bottom:16px;position:relative;font-size:13px;font-weight:normal}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.title-small){padding-left:unset;padding-right:unset;-webkit-padding-start:9px;padding-inline-start:9px;-webkit-padding-end:9px;padding-inline-end:9px}}:host(.title-large){padding-left:16px;padding-right:16px;padding-top:0;padding-bottom:0;-webkit-transform-origin:left center;transform-origin:left center;bottom:0;-ms-flex-align:end;align-items:flex-end;min-width:100%;padding-bottom:6px;font-size:34px;font-weight:700;text-align:start}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host(.title-large){padding-left:unset;padding-right:unset;-webkit-padding-start:16px;padding-inline-start:16px;-webkit-padding-end:16px;padding-inline-end:16px}}:host-context([dir=rtl]):host(.title-large),:host-context([dir=rtl]).title-large{-webkit-transform-origin:right center;transform-origin:right center}:host(.title-large.ion-cloned-element){--color:var(--ion-text-color, #000)}:host(.title-large) .toolbar-title{-webkit-transform-origin:inherit;transform-origin:inherit}:host-context([dir=rtl]):host(.title-large) .toolbar-title,:host-context([dir=rtl]).title-large .toolbar-title{-webkit-transform-origin:calc(100% - inherit);transform-origin:calc(100% - inherit)}";
|
||||
|
||||
const titleMdCss = ":host{--color:initial;display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;-webkit-transform:translateZ(0);transform:translateZ(0);color:var(--color)}:host(.ion-color){color:var(--ion-color-base)}.toolbar-title{display:block;width:100%;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;pointer-events:auto}:host(.title-small) .toolbar-title{white-space:normal}:host{padding-left:20px;padding-right:20px;padding-top:0;padding-bottom:0;font-size:20px;font-weight:500;letter-spacing:0.0125em}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:20px;padding-inline-start:20px;-webkit-padding-end:20px;padding-inline-end:20px}}:host(.title-small){width:100%;height:100%;font-size:15px;font-weight:normal}";
|
||||
|
||||
const ToolbarTitle = class {
|
||||
constructor(hostRef) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
|
||||
this.ionStyle = Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["e"])(this, "ionStyle", 7);
|
||||
}
|
||||
sizeChanged() {
|
||||
this.emitStyle();
|
||||
}
|
||||
connectedCallback() {
|
||||
this.emitStyle();
|
||||
}
|
||||
emitStyle() {
|
||||
const size = this.getSize();
|
||||
this.ionStyle.emit({
|
||||
[`title-${size}`]: true
|
||||
});
|
||||
}
|
||||
getSize() {
|
||||
return (this.size !== undefined) ? this.size : 'default';
|
||||
}
|
||||
render() {
|
||||
const mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
const size = this.getSize();
|
||||
return (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], { class: Object.assign({ [mode]: true, [`title-${size}`]: true }, Object(_theme_3f0b0c04_js__WEBPACK_IMPORTED_MODULE_5__["c"])(this.color)) }, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "toolbar-title" }, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null))));
|
||||
}
|
||||
get el() { return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this); }
|
||||
static get watchers() { return {
|
||||
"size": ["sizeChanged"]
|
||||
}; }
|
||||
};
|
||||
ToolbarTitle.style = {
|
||||
ios: titleIosCss,
|
||||
md: titleMdCss
|
||||
};
|
||||
|
||||
const toolbarIosCss = ":host{--border-width:0;--border-style:solid;--opacity:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toolbar-container{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:var(--opacity);z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-color-step-50, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #000));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, rgba(0, 0, 0, 0.2))));--padding-top:3px;--padding-bottom:3px;--padding-start:4px;--padding-end:4px;--min-height:44px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:4;order:4;min-width:0}:host(.toolbar-segment) .toolbar-content{display:-ms-inline-flexbox;display:inline-flex}:host(.toolbar-searchbar) .toolbar-container{padding-top:0;padding-bottom:0}:host(.toolbar-searchbar) ::slotted(*){-ms-flex-item-align:start;align-self:start}:host(.toolbar-searchbar) ::slotted(ion-chip){margin-top:3px}:host(.toolbar-searchbar) ::slotted(ion-back-button){height:38px}::slotted(ion-buttons){min-height:38px}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:3;order:3}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}:host(.toolbar-title-large) .toolbar-container{-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex-align:start;align-items:flex-start}:host(.toolbar-title-large) .toolbar-content ion-title{-ms-flex:1;flex:1;-ms-flex-order:8;order:8;min-width:100%}";
|
||||
|
||||
const toolbarMdCss = ":host{--border-width:0;--border-style:solid;--opacity:1;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;padding-left:var(--ion-safe-area-left);padding-right:var(--ion-safe-area-right);display:block;position:relative;width:100%;color:var(--color);font-family:var(--ion-font-family, inherit);contain:content;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){:host{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--ion-safe-area-left);padding-inline-start:var(--ion-safe-area-left);-webkit-padding-end:var(--ion-safe-area-right);padding-inline-end:var(--ion-safe-area-right)}}:host(.ion-color){color:var(--ion-color-contrast)}:host(.ion-color) .toolbar-background{background:var(--ion-color-base)}.toolbar-container{padding-left:var(--padding-start);padding-right:var(--padding-end);padding-top:var(--padding-top);padding-bottom:var(--padding-bottom);display:-ms-flexbox;display:flex;position:relative;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;-ms-flex-pack:justify;justify-content:space-between;width:100%;min-height:var(--min-height);contain:content;overflow:hidden;z-index:10;-webkit-box-sizing:border-box;box-sizing:border-box}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){.toolbar-container{padding-left:unset;padding-right:unset;-webkit-padding-start:var(--padding-start);padding-inline-start:var(--padding-start);-webkit-padding-end:var(--padding-end);padding-inline-end:var(--padding-end)}}.toolbar-background{left:0;right:0;top:0;bottom:0;position:absolute;-webkit-transform:translateZ(0);transform:translateZ(0);border-width:var(--border-width);border-style:var(--border-style);border-color:var(--border-color);background:var(--background);contain:strict;opacity:var(--opacity);z-index:-1;pointer-events:none}::slotted(ion-progress-bar){left:0;right:0;bottom:0;position:absolute}:host{--background:var(--ion-toolbar-background, var(--ion-background-color, #fff));--color:var(--ion-toolbar-color, var(--ion-text-color, #424242));--border-color:var(--ion-toolbar-border-color, var(--ion-border-color, var(--ion-color-step-150, #c1c4cd)));--padding-top:0;--padding-bottom:0;--padding-start:0;--padding-end:0;--min-height:56px}.toolbar-content{-ms-flex:1;flex:1;-ms-flex-order:3;order:3;min-width:0;max-width:100%}::slotted(ion-segment){min-height:var(--min-height)}::slotted(.buttons-first-slot){margin-left:4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(.buttons-first-slot){margin-left:unset;-webkit-margin-start:4px;margin-inline-start:4px}}::slotted(.buttons-last-slot){margin-right:4px}@supports ((-webkit-margin-start: 0) or (margin-inline-start: 0)) or (-webkit-margin-start: 0){::slotted(.buttons-last-slot){margin-right:unset;-webkit-margin-end:4px;margin-inline-end:4px}}::slotted([slot=start]){-ms-flex-order:2;order:2}::slotted([slot=secondary]){-ms-flex-order:4;order:4}::slotted([slot=primary]){-ms-flex-order:5;order:5;text-align:end}::slotted([slot=end]){-ms-flex-order:6;order:6;text-align:end}";
|
||||
|
||||
const Toolbar = class {
|
||||
constructor(hostRef) {
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["r"])(this, hostRef);
|
||||
this.childrenStyles = new Map();
|
||||
}
|
||||
componentWillLoad() {
|
||||
const buttons = Array.from(this.el.querySelectorAll('ion-buttons'));
|
||||
const firstButtons = buttons.find(button => {
|
||||
return button.slot === 'start';
|
||||
});
|
||||
if (firstButtons) {
|
||||
firstButtons.classList.add('buttons-first-slot');
|
||||
}
|
||||
const buttonsReversed = buttons.reverse();
|
||||
const lastButtons = buttonsReversed.find(button => button.slot === 'end') ||
|
||||
buttonsReversed.find(button => button.slot === 'primary') ||
|
||||
buttonsReversed.find(button => button.slot === 'secondary');
|
||||
if (lastButtons) {
|
||||
lastButtons.classList.add('buttons-last-slot');
|
||||
}
|
||||
}
|
||||
childrenStyle(ev) {
|
||||
ev.stopPropagation();
|
||||
const tagName = ev.target.tagName;
|
||||
const updatedStyles = ev.detail;
|
||||
const newStyles = {};
|
||||
const childStyles = this.childrenStyles.get(tagName) || {};
|
||||
let hasStyleChange = false;
|
||||
Object.keys(updatedStyles).forEach(key => {
|
||||
const childKey = `toolbar-${key}`;
|
||||
const newValue = updatedStyles[key];
|
||||
if (newValue !== childStyles[childKey]) {
|
||||
hasStyleChange = true;
|
||||
}
|
||||
if (newValue) {
|
||||
newStyles[childKey] = true;
|
||||
}
|
||||
});
|
||||
if (hasStyleChange) {
|
||||
this.childrenStyles.set(tagName, newStyles);
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["j"])(this);
|
||||
}
|
||||
}
|
||||
render() {
|
||||
const mode = Object(_ionic_global_837be8f3_js__WEBPACK_IMPORTED_MODULE_1__["b"])(this);
|
||||
const childStyles = {};
|
||||
this.childrenStyles.forEach(value => {
|
||||
Object.assign(childStyles, value);
|
||||
});
|
||||
return (Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["H"], { class: Object.assign(Object.assign({ 'in-toolbar': Object(_theme_3f0b0c04_js__WEBPACK_IMPORTED_MODULE_5__["h"])('ion-toolbar', this.el), [mode]: true }, childStyles), Object(_theme_3f0b0c04_js__WEBPACK_IMPORTED_MODULE_5__["c"])(this.color)) }, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "toolbar-background" }), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "toolbar-container" }, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", { name: "start" }), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", { name: "secondary" }), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("div", { class: "toolbar-content" }, Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", null)), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", { name: "primary" }), Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["h"])("slot", { name: "end" }))));
|
||||
}
|
||||
get el() { return Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["i"])(this); }
|
||||
};
|
||||
Toolbar.style = {
|
||||
ios: toolbarIosCss,
|
||||
md: toolbarMdCss
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=2.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -0,0 +1,543 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["common"],{
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/button-active-0d5784f9.js":
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/button-active-0d5784f9.js ***!
|
||||
\*********************************************************************/
|
||||
/*! exports provided: c */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createButtonActiveGesture; });
|
||||
/* harmony import */ var _index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./index-44bf8136.js */ "./node_modules/@ionic/core/dist/esm/index-44bf8136.js");
|
||||
/* harmony import */ var _index_eea61379_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./index-eea61379.js */ "./node_modules/@ionic/core/dist/esm/index-eea61379.js");
|
||||
/* harmony import */ var _haptic_7b8ba70a_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./haptic-7b8ba70a.js */ "./node_modules/@ionic/core/dist/esm/haptic-7b8ba70a.js");
|
||||
|
||||
|
||||
|
||||
|
||||
const createButtonActiveGesture = (el, isButton) => {
|
||||
let currentTouchedButton;
|
||||
let initialTouchedButton;
|
||||
const activateButtonAtPoint = (x, y, hapticFeedbackFn) => {
|
||||
if (typeof document === 'undefined') {
|
||||
return;
|
||||
}
|
||||
const target = document.elementFromPoint(x, y);
|
||||
if (!target || !isButton(target)) {
|
||||
clearActiveButton();
|
||||
return;
|
||||
}
|
||||
if (target !== currentTouchedButton) {
|
||||
clearActiveButton();
|
||||
setActiveButton(target, hapticFeedbackFn);
|
||||
}
|
||||
};
|
||||
const setActiveButton = (button, hapticFeedbackFn) => {
|
||||
currentTouchedButton = button;
|
||||
if (!initialTouchedButton) {
|
||||
initialTouchedButton = currentTouchedButton;
|
||||
}
|
||||
const buttonToModify = currentTouchedButton;
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["c"])(() => buttonToModify.classList.add('ion-activated'));
|
||||
hapticFeedbackFn();
|
||||
};
|
||||
const clearActiveButton = (dispatchClick = false) => {
|
||||
if (!currentTouchedButton) {
|
||||
return;
|
||||
}
|
||||
const buttonToModify = currentTouchedButton;
|
||||
Object(_index_44bf8136_js__WEBPACK_IMPORTED_MODULE_0__["c"])(() => buttonToModify.classList.remove('ion-activated'));
|
||||
/**
|
||||
* Clicking on one button, but releasing on another button
|
||||
* does not dispatch a click event in browsers, so we
|
||||
* need to do it manually here. Some browsers will
|
||||
* dispatch a click if clicking on one button, dragging over
|
||||
* another button, and releasing on the original button. In that
|
||||
* case, we need to make sure we do not cause a double click there.
|
||||
*/
|
||||
if (dispatchClick && initialTouchedButton !== currentTouchedButton) {
|
||||
currentTouchedButton.click();
|
||||
}
|
||||
currentTouchedButton = undefined;
|
||||
};
|
||||
return Object(_index_eea61379_js__WEBPACK_IMPORTED_MODULE_1__["createGesture"])({
|
||||
el,
|
||||
gestureName: 'buttonActiveDrag',
|
||||
threshold: 0,
|
||||
onStart: ev => activateButtonAtPoint(ev.currentX, ev.currentY, _haptic_7b8ba70a_js__WEBPACK_IMPORTED_MODULE_2__["a"]),
|
||||
onMove: ev => activateButtonAtPoint(ev.currentX, ev.currentY, _haptic_7b8ba70a_js__WEBPACK_IMPORTED_MODULE_2__["b"]),
|
||||
onEnd: () => {
|
||||
clearActiveButton(true);
|
||||
Object(_haptic_7b8ba70a_js__WEBPACK_IMPORTED_MODULE_2__["h"])();
|
||||
initialTouchedButton = undefined;
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/framework-delegate-d1eb6504.js":
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/framework-delegate-d1eb6504.js ***!
|
||||
\**************************************************************************/
|
||||
/*! exports provided: a, d */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return attachComponent; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return detachComponent; });
|
||||
const attachComponent = async (delegate, container, component, cssClasses, componentProps) => {
|
||||
if (delegate) {
|
||||
return delegate.attachViewToDom(container, component, componentProps, cssClasses);
|
||||
}
|
||||
if (typeof component !== 'string' && !(component instanceof HTMLElement)) {
|
||||
throw new Error('framework delegate is missing');
|
||||
}
|
||||
const el = (typeof component === 'string')
|
||||
? container.ownerDocument && container.ownerDocument.createElement(component)
|
||||
: component;
|
||||
if (cssClasses) {
|
||||
cssClasses.forEach(c => el.classList.add(c));
|
||||
}
|
||||
if (componentProps) {
|
||||
Object.assign(el, componentProps);
|
||||
}
|
||||
container.appendChild(el);
|
||||
if (el.componentOnReady) {
|
||||
await el.componentOnReady();
|
||||
}
|
||||
return el;
|
||||
};
|
||||
const detachComponent = (delegate, element) => {
|
||||
if (element) {
|
||||
if (delegate) {
|
||||
const container = element.parentElement;
|
||||
return delegate.removeViewFromDom(container, element);
|
||||
}
|
||||
element.remove();
|
||||
}
|
||||
return Promise.resolve();
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/haptic-7b8ba70a.js":
|
||||
/*!**************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/haptic-7b8ba70a.js ***!
|
||||
\**************************************************************/
|
||||
/*! exports provided: a, b, c, d, h */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return hapticSelectionStart; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return hapticSelectionChanged; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return hapticSelection; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return hapticImpact; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return hapticSelectionEnd; });
|
||||
const HapticEngine = {
|
||||
getEngine() {
|
||||
const win = window;
|
||||
return (win.TapticEngine) || (win.Capacitor && win.Capacitor.isPluginAvailable('Haptics') && win.Capacitor.Plugins.Haptics);
|
||||
},
|
||||
available() {
|
||||
return !!this.getEngine();
|
||||
},
|
||||
isCordova() {
|
||||
return !!window.TapticEngine;
|
||||
},
|
||||
isCapacitor() {
|
||||
const win = window;
|
||||
return !!win.Capacitor;
|
||||
},
|
||||
impact(options) {
|
||||
const engine = this.getEngine();
|
||||
if (!engine) {
|
||||
return;
|
||||
}
|
||||
const style = this.isCapacitor() ? options.style.toUpperCase() : options.style;
|
||||
engine.impact({ style });
|
||||
},
|
||||
notification(options) {
|
||||
const engine = this.getEngine();
|
||||
if (!engine) {
|
||||
return;
|
||||
}
|
||||
const style = this.isCapacitor() ? options.style.toUpperCase() : options.style;
|
||||
engine.notification({ style });
|
||||
},
|
||||
selection() {
|
||||
this.impact({ style: 'light' });
|
||||
},
|
||||
selectionStart() {
|
||||
const engine = this.getEngine();
|
||||
if (!engine) {
|
||||
return;
|
||||
}
|
||||
if (this.isCapacitor()) {
|
||||
engine.selectionStart();
|
||||
}
|
||||
else {
|
||||
engine.gestureSelectionStart();
|
||||
}
|
||||
},
|
||||
selectionChanged() {
|
||||
const engine = this.getEngine();
|
||||
if (!engine) {
|
||||
return;
|
||||
}
|
||||
if (this.isCapacitor()) {
|
||||
engine.selectionChanged();
|
||||
}
|
||||
else {
|
||||
engine.gestureSelectionChanged();
|
||||
}
|
||||
},
|
||||
selectionEnd() {
|
||||
const engine = this.getEngine();
|
||||
if (!engine) {
|
||||
return;
|
||||
}
|
||||
if (this.isCapacitor()) {
|
||||
engine.selectionEnd();
|
||||
}
|
||||
else {
|
||||
engine.gestureSelectionEnd();
|
||||
}
|
||||
}
|
||||
};
|
||||
/**
|
||||
* Trigger a selection changed haptic event. Good for one-time events
|
||||
* (not for gestures)
|
||||
*/
|
||||
const hapticSelection = () => {
|
||||
HapticEngine.selection();
|
||||
};
|
||||
/**
|
||||
* Tell the haptic engine that a gesture for a selection change is starting.
|
||||
*/
|
||||
const hapticSelectionStart = () => {
|
||||
HapticEngine.selectionStart();
|
||||
};
|
||||
/**
|
||||
* Tell the haptic engine that a selection changed during a gesture.
|
||||
*/
|
||||
const hapticSelectionChanged = () => {
|
||||
HapticEngine.selectionChanged();
|
||||
};
|
||||
/**
|
||||
* Tell the haptic engine we are done with a gesture. This needs to be
|
||||
* called lest resources are not properly recycled.
|
||||
*/
|
||||
const hapticSelectionEnd = () => {
|
||||
HapticEngine.selectionEnd();
|
||||
};
|
||||
/**
|
||||
* Use this to indicate success/failure/warning to the user.
|
||||
* options should be of the type `{ style: 'light' }` (or `medium`/`heavy`)
|
||||
*/
|
||||
const hapticImpact = (options) => {
|
||||
HapticEngine.impact(options);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/spinner-configs-c78e170e.js":
|
||||
/*!***********************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/spinner-configs-c78e170e.js ***!
|
||||
\***********************************************************************/
|
||||
/*! exports provided: S */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "S", function() { return SPINNERS; });
|
||||
const spinners = {
|
||||
'bubbles': {
|
||||
dur: 1000,
|
||||
circles: 9,
|
||||
fn: (dur, index, total) => {
|
||||
const animationDelay = `${(dur * index / total) - dur}ms`;
|
||||
const angle = 2 * Math.PI * index / total;
|
||||
return {
|
||||
r: 5,
|
||||
style: {
|
||||
'top': `${9 * Math.sin(angle)}px`,
|
||||
'left': `${9 * Math.cos(angle)}px`,
|
||||
'animation-delay': animationDelay,
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
'circles': {
|
||||
dur: 1000,
|
||||
circles: 8,
|
||||
fn: (dur, index, total) => {
|
||||
const step = index / total;
|
||||
const animationDelay = `${(dur * step) - dur}ms`;
|
||||
const angle = 2 * Math.PI * step;
|
||||
return {
|
||||
r: 5,
|
||||
style: {
|
||||
'top': `${9 * Math.sin(angle)}px`,
|
||||
'left': `${9 * Math.cos(angle)}px`,
|
||||
'animation-delay': animationDelay,
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
'circular': {
|
||||
dur: 1400,
|
||||
elmDuration: true,
|
||||
circles: 1,
|
||||
fn: () => {
|
||||
return {
|
||||
r: 20,
|
||||
cx: 48,
|
||||
cy: 48,
|
||||
fill: 'none',
|
||||
viewBox: '24 24 48 48',
|
||||
transform: 'translate(0,0)',
|
||||
style: {}
|
||||
};
|
||||
}
|
||||
},
|
||||
'crescent': {
|
||||
dur: 750,
|
||||
circles: 1,
|
||||
fn: () => {
|
||||
return {
|
||||
r: 26,
|
||||
style: {}
|
||||
};
|
||||
}
|
||||
},
|
||||
'dots': {
|
||||
dur: 750,
|
||||
circles: 3,
|
||||
fn: (_, index) => {
|
||||
const animationDelay = -(110 * index) + 'ms';
|
||||
return {
|
||||
r: 6,
|
||||
style: {
|
||||
'left': `${9 - (9 * index)}px`,
|
||||
'animation-delay': animationDelay,
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
'lines': {
|
||||
dur: 1000,
|
||||
lines: 12,
|
||||
fn: (dur, index, total) => {
|
||||
const transform = `rotate(${30 * index + (index < 6 ? 180 : -180)}deg)`;
|
||||
const animationDelay = `${(dur * index / total) - dur}ms`;
|
||||
return {
|
||||
y1: 17,
|
||||
y2: 29,
|
||||
style: {
|
||||
'transform': transform,
|
||||
'animation-delay': animationDelay,
|
||||
}
|
||||
};
|
||||
}
|
||||
},
|
||||
'lines-small': {
|
||||
dur: 1000,
|
||||
lines: 12,
|
||||
fn: (dur, index, total) => {
|
||||
const transform = `rotate(${30 * index + (index < 6 ? 180 : -180)}deg)`;
|
||||
const animationDelay = `${(dur * index / total) - dur}ms`;
|
||||
return {
|
||||
y1: 12,
|
||||
y2: 20,
|
||||
style: {
|
||||
'transform': transform,
|
||||
'animation-delay': animationDelay,
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
};
|
||||
const SPINNERS = spinners;
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/theme-3f0b0c04.js":
|
||||
/*!*************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/theme-3f0b0c04.js ***!
|
||||
\*************************************************************/
|
||||
/*! exports provided: c, g, h, o */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return createColorClasses; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return getClassMap; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return hostContext; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "o", function() { return openURL; });
|
||||
const hostContext = (selector, el) => {
|
||||
return el.closest(selector) !== null;
|
||||
};
|
||||
/**
|
||||
* Create the mode and color classes for the component based on the classes passed in
|
||||
*/
|
||||
const createColorClasses = (color) => {
|
||||
return (typeof color === 'string' && color.length > 0) ? {
|
||||
'ion-color': true,
|
||||
[`ion-color-${color}`]: true
|
||||
} : undefined;
|
||||
};
|
||||
const getClassList = (classes) => {
|
||||
if (classes !== undefined) {
|
||||
const array = Array.isArray(classes) ? classes : classes.split(' ');
|
||||
return array
|
||||
.filter(c => c != null)
|
||||
.map(c => c.trim())
|
||||
.filter(c => c !== '');
|
||||
}
|
||||
return [];
|
||||
};
|
||||
const getClassMap = (classes) => {
|
||||
const map = {};
|
||||
getClassList(classes).forEach(c => map[c] = true);
|
||||
return map;
|
||||
};
|
||||
const SCHEME = /^[a-z][a-z0-9+\-.]*:/;
|
||||
const openURL = async (url, ev, direction, animation) => {
|
||||
if (url != null && url[0] !== '#' && !SCHEME.test(url)) {
|
||||
const router = document.querySelector('ion-router');
|
||||
if (router) {
|
||||
if (ev != null) {
|
||||
ev.preventDefault();
|
||||
}
|
||||
return router.push(url, direction, animation);
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.html":
|
||||
/*!**********************************************************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.html ***!
|
||||
\**********************************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("<ion-header>\n <ion-toolbar>\n <ion-title>approve-event-modal</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n</ion-content>\n");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.scss":
|
||||
/*!********************************************************************************!*\
|
||||
!*** ./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.scss ***!
|
||||
\********************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2FnZW5kYS9hcHByb3ZlLWV2ZW50LW1vZGFsL2FwcHJvdmUtZXZlbnQtbW9kYWwucGFnZS5zY3NzIn0= */");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.ts":
|
||||
/*!******************************************************************************!*\
|
||||
!*** ./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.ts ***!
|
||||
\******************************************************************************/
|
||||
/*! exports provided: ApproveEventModalPage */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ApproveEventModalPage", function() { return ApproveEventModalPage; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
|
||||
|
||||
let ApproveEventModalPage = class ApproveEventModalPage {
|
||||
constructor() { }
|
||||
ngOnInit() {
|
||||
}
|
||||
};
|
||||
ApproveEventModalPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'app-approve-event-modal',
|
||||
template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./approve-event-modal.page.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.html")).default,
|
||||
styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./approve-event-modal.page.scss */ "./src/app/pages/agenda/approve-event-modal/approve-event-modal.page.scss")).default]
|
||||
})
|
||||
], ApproveEventModalPage);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/services/alert.service.ts":
|
||||
/*!*******************************************!*\
|
||||
!*** ./src/app/services/alert.service.ts ***!
|
||||
\*******************************************/
|
||||
/*! exports provided: AlertService */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AlertService", function() { return AlertService; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
|
||||
|
||||
|
||||
let AlertService = class AlertService {
|
||||
constructor(alertController) {
|
||||
this.alertController = alertController;
|
||||
}
|
||||
presentAlert(message) {
|
||||
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
|
||||
const alert = yield this.alertController.create({
|
||||
cssClass: 'my-custom-class',
|
||||
header: 'Mensagem do sistema',
|
||||
message: message,
|
||||
buttons: ['OK']
|
||||
});
|
||||
yield alert.present();
|
||||
});
|
||||
}
|
||||
};
|
||||
AlertService.ctorParameters = () => [
|
||||
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_2__["AlertController"] }
|
||||
];
|
||||
AlertService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
|
||||
providedIn: 'root'
|
||||
})
|
||||
], AlertService);
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=common.js.map
|
||||
@@ -0,0 +1,756 @@
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz0dL_nz.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzQdL_nz.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzwdL_nz.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzMdL_nz.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz8dL_nz.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEz4dL_nz.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin Italic'), local('Roboto-ThinItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOiCnqEu92Fr1Mu51QrEzAdLw.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc3CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc-CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc2CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc5CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc1CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc0CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light Italic'), local('Roboto-LightItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TjASc6CsQ.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xFIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xMIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xEIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xLIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xHIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xGIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto Italic'), local('Roboto-Italic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1Mu51xIIzI.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc3CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc-CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc2CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc5CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc1CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc0CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium Italic'), local('Roboto-MediumItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51S7ACc6CsQ.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic3CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic-CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic2CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic5CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic1CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic0CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold Italic'), local('Roboto-BoldItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TzBic6CsQ.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc3CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc-CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc2CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc5CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc1CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc0CsTKlA.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: italic;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black Italic'), local('Roboto-BlackItalic'), url(https://fonts.gstatic.com/s/roboto/v20/KFOjCnqEu92Fr1Mu51TLBCc6CsQ.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin'), local('Roboto-Thin'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxFIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin'), local('Roboto-Thin'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxMIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin'), local('Roboto-Thin'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxEIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin'), local('Roboto-Thin'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxLIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin'), local('Roboto-Thin'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxHIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin'), local('Roboto-Thin'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxGIzIFKw.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 100;
|
||||
font-display: swap;
|
||||
src: local('Roboto Thin'), local('Roboto-Thin'), url(https://fonts.gstatic.com/s/roboto/v20/KFOkCnqEu92Fr1MmgVxIIzI.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCRc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fABc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCBc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBxc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fCxc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fChc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
font-display: swap;
|
||||
src: local('Roboto Light'), local('Roboto-Light'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmSU5fBBc4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu72xKOzY.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu5mxKOzY.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7mxKOzY.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4WxKOzY.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7WxKOzY.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu7GxKOzY.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
font-display: swap;
|
||||
src: local('Roboto'), local('Roboto-Regular'), url(https://fonts.gstatic.com/s/roboto/v20/KFOmCnqEu92Fr1Mu4mxK.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCRc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fABc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCBc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBxc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fCxc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fChc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 500;
|
||||
font-display: swap;
|
||||
src: local('Roboto Medium'), local('Roboto-Medium'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmEU9fBBc4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCRc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfABc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCBc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBxc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfCxc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfChc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 700;
|
||||
font-display: swap;
|
||||
src: local('Roboto Bold'), local('Roboto-Bold'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmWUlfBBc4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
/* cyrillic-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black'), local('Roboto-Black'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCRc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0460-052F, U+1C80-1C88, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
|
||||
}
|
||||
/* cyrillic */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black'), local('Roboto-Black'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfABc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
|
||||
}
|
||||
/* greek-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black'), local('Roboto-Black'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCBc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+1F00-1FFF;
|
||||
}
|
||||
/* greek */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black'), local('Roboto-Black'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBxc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0370-03FF;
|
||||
}
|
||||
/* vietnamese */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black'), local('Roboto-Black'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfCxc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+1EA0-1EF9, U+20AB;
|
||||
}
|
||||
/* latin-ext */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black'), local('Roboto-Black'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfChc4EsA.woff2) format('woff2');
|
||||
unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
|
||||
}
|
||||
/* latin */
|
||||
@font-face {
|
||||
font-family: 'Roboto';
|
||||
font-style: normal;
|
||||
font-weight: 900;
|
||||
font-display: swap;
|
||||
src: local('Roboto Black'), local('Roboto-Black'), url(https://fonts.gstatic.com/s/roboto/v20/KFOlCnqEu92Fr1MmYUtfBBc4.woff2) format('woff2');
|
||||
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
|
||||
}
|
||||
+3215
File diff suppressed because it is too large
Load Diff
File diff suppressed because one or more lines are too long
@@ -0,0 +1,61 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["focus-visible-15ada7f7-js"],{
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/focus-visible-15ada7f7.js":
|
||||
/*!*********************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/focus-visible-15ada7f7.js ***!
|
||||
\*********************************************************************/
|
||||
/*! exports provided: startFocusVisible */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startFocusVisible", function() { return startFocusVisible; });
|
||||
const ION_FOCUSED = 'ion-focused';
|
||||
const ION_FOCUSABLE = 'ion-focusable';
|
||||
const FOCUS_KEYS = ['Tab', 'ArrowDown', 'Space', 'Escape', ' ', 'Shift', 'Enter', 'ArrowLeft', 'ArrowRight', 'ArrowUp'];
|
||||
const startFocusVisible = () => {
|
||||
let currentFocus = [];
|
||||
let keyboardMode = true;
|
||||
const doc = document;
|
||||
const setFocus = (elements) => {
|
||||
currentFocus.forEach(el => el.classList.remove(ION_FOCUSED));
|
||||
elements.forEach(el => el.classList.add(ION_FOCUSED));
|
||||
currentFocus = elements;
|
||||
};
|
||||
const pointerDown = () => {
|
||||
keyboardMode = false;
|
||||
setFocus([]);
|
||||
};
|
||||
doc.addEventListener('keydown', ev => {
|
||||
keyboardMode = FOCUS_KEYS.includes(ev.key);
|
||||
if (!keyboardMode) {
|
||||
setFocus([]);
|
||||
}
|
||||
});
|
||||
doc.addEventListener('focusin', ev => {
|
||||
if (keyboardMode && ev.composedPath) {
|
||||
const toFocus = ev.composedPath().filter((el) => {
|
||||
if (el.classList) {
|
||||
return el.classList.contains(ION_FOCUSABLE);
|
||||
}
|
||||
return false;
|
||||
});
|
||||
setFocus(toFocus);
|
||||
}
|
||||
});
|
||||
doc.addEventListener('focusout', () => {
|
||||
if (doc.activeElement === doc.body) {
|
||||
setFocus([]);
|
||||
}
|
||||
});
|
||||
doc.addEventListener('touchstart', pointerDown);
|
||||
doc.addEventListener('mousedown', pointerDown);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=focus-visible-15ada7f7-js.js.map
|
||||
@@ -0,0 +1,527 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["home-home-module"],{
|
||||
|
||||
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/home/home.page.html":
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/home/home.page.html ***!
|
||||
\***************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("<ion-tabs>\r\n <ion-tab-bar slot=\"bottom\">\r\n <ion-tab-button tab=\"events\">\r\n <ion-icon name=\"home\"></ion-icon>\r\n <ion-badge color=\"danger\">{{totalEvent}}</ion-badge>\r\n <ion-label>Home</ion-label>\r\n </ion-tab-button>\r\n \r\n <ion-tab-button tab=\"agenda\">\r\n <ion-icon name=\"calendar\"></ion-icon>\r\n <ion-label>Agenda</ion-label>\r\n </ion-tab-button>\r\n <ion-tab-button tab=\"gabinete-digital\">\r\n <ion-icon name=\"file-tray-stacked\"></ion-icon>\r\n <ion-badge color=\"danger\">{{totalExpediente}}</ion-badge>\r\n <ion-label>Gabinete Digital</ion-label>\r\n </ion-tab-button>\r\n <!-- <ion-tab-button tab=\"search\">\r\n <ion-icon name=\"search\"></ion-icon>\r\n <ion-label>Pesquisa</ion-label>\r\n </ion-tab-button> -->\r\n <ion-tab-button tab=\"chat\">\r\n <ion-icon name=\"chatbubbles\"></ion-icon>\r\n <ion-label>Chat</ion-label>\r\n </ion-tab-button>\r\n </ion-tab-bar>\r\n \r\n </ion-tabs>\r\n");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/home/home-routing.module.ts":
|
||||
/*!*********************************************!*\
|
||||
!*** ./src/app/home/home-routing.module.ts ***!
|
||||
\*********************************************/
|
||||
/*! exports provided: HomePageRoutingModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomePageRoutingModule", function() { return HomePageRoutingModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
|
||||
/* harmony import */ var _resolvers_userData_resolver__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../resolvers/userData.resolver */ "./src/app/resolvers/userData.resolver.ts");
|
||||
/* harmony import */ var _home_page__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./home.page */ "./src/app/home/home.page.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: 'home',
|
||||
component: _home_page__WEBPACK_IMPORTED_MODULE_4__["HomePage"],
|
||||
/* canActivate: [HomeGuard], */
|
||||
resolve: {
|
||||
userData: _resolvers_userData_resolver__WEBPACK_IMPORTED_MODULE_3__["UserDataResolver"]
|
||||
},
|
||||
children: [
|
||||
{
|
||||
path: 'events',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-events-events-module */[__webpack_require__.e("common"), __webpack_require__.e("pages-events-events-module")]).then(__webpack_require__.bind(null, /*! ../pages/events/events.module */ "./src/app/pages/events/events.module.ts")).then(m => m.EventsPageModule)
|
||||
},
|
||||
{
|
||||
path: ':eventId/:caller',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-events-event-detail-event-detail-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b"), __webpack_require__.e("default~event-detail-event-detail-module~pages-events-event-detail-event-detail-module"), __webpack_require__.e("common")]).then(__webpack_require__.bind(null, /*! ../pages/events/event-detail/event-detail.module */ "./src/app/pages/events/event-detail/event-detail.module.ts")).then(m => m.EventDetailPageModule),
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'attachments',
|
||||
children: [
|
||||
{
|
||||
path: ':eventId',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-events-attachments-attachments-module */[__webpack_require__.e("default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b"), __webpack_require__.e("attachments-attachments-module")]).then(__webpack_require__.bind(null, /*! ../pages/events/attachments/attachments.module */ "./src/app/pages/events/attachments/attachments.module.ts")).then(m => m.AttachmentsPageModule)
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'attendees',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-events-attendees-attendees-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("attendees-attendees-module")]).then(__webpack_require__.bind(null, /*! ../pages/events/attendees/attendees.module */ "./src/app/pages/events/attendees/attendees.module.ts")).then(m => m.AttendeesPageModule)
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'login',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-login-login-module */[__webpack_require__.e("default~home-home-module~pages-chat-chat-module~pages-login-login-module"), __webpack_require__.e("pages-login-login-module")]).then(__webpack_require__.bind(null, /*! ../pages/login/login.module */ "./src/app/pages/login/login.module.ts")).then(m => m.LoginPageModule)
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'agenda',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-agenda-agenda-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("default~expediente-expediente-module~pages-agenda-agenda-module"), __webpack_require__.e("common"), __webpack_require__.e("pages-agenda-agenda-module")]).then(__webpack_require__.bind(null, /*! ../pages/agenda/agenda.module */ "./src/app/pages/agenda/agenda.module.ts")).then(m => m.AgendaPageModule)
|
||||
},
|
||||
{
|
||||
path: ':eventId/:caller',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-events-event-detail-event-detail-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b"), __webpack_require__.e("default~event-detail-event-detail-module~pages-events-event-detail-event-detail-module"), __webpack_require__.e("common")]).then(__webpack_require__.bind(null, /*! ../pages/events/event-detail/event-detail.module */ "./src/app/pages/events/event-detail/event-detail.module.ts")).then(m => m.EventDetailPageModule),
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'gabinete-digital',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-gabinete-digital-gabinete-digital-module */[__webpack_require__.e("common"), __webpack_require__.e("pages-gabinete-digital-gabinete-digital-module")]).then(__webpack_require__.bind(null, /*! ../pages/gabinete-digital/gabinete-digital.module */ "./src/app/pages/gabinete-digital/gabinete-digital.module.ts")).then(m => m.GabineteDigitalPageModule)
|
||||
},
|
||||
{
|
||||
path: 'expediente',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-gabinete-digital-expediente-expediente-module */[__webpack_require__.e("default~expediente-expediente-module~pages-agenda-agenda-module"), __webpack_require__.e("expediente-expediente-module")]).then(__webpack_require__.bind(null, /*! ../pages/gabinete-digital/expediente/expediente.module */ "./src/app/pages/gabinete-digital/expediente/expediente.module.ts")).then(m => m.ExpedientePageModule)
|
||||
},
|
||||
{
|
||||
path: ':SerialNumber',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-gabinete-digital-expediente-expediente-detail-expediente-detail-module */[__webpack_require__.e("common"), __webpack_require__.e("expediente-detail-expediente-detail-module")]).then(__webpack_require__.bind(null, /*! ../pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module */ "./src/app/pages/gabinete-digital/expediente/expediente-detail/expediente-detail.module.ts")).then(m => m.ExpedienteDetailPageModule)
|
||||
},
|
||||
{
|
||||
path: 'events/:eventId/:caller',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-events-event-detail-event-detail-module */[__webpack_require__.e("default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5"), __webpack_require__.e("default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b"), __webpack_require__.e("default~event-detail-event-detail-module~pages-events-event-detail-event-detail-module"), __webpack_require__.e("common")]).then(__webpack_require__.bind(null, /*! ../pages/events/event-detail/event-detail.module */ "./src/app/pages/events/event-detail/event-detail.module.ts")).then(m => m.EventDetailPageModule),
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'event-list',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-gabinete-digital-event-list-event-list-module */[__webpack_require__.e("common"), __webpack_require__.e("event-list-event-list-module")]).then(__webpack_require__.bind(null, /*! ../pages/gabinete-digital/event-list/event-list.module */ "./src/app/pages/gabinete-digital/event-list/event-list.module.ts")).then(m => m.EventListPageModule)
|
||||
},
|
||||
]
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: 'search',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => __webpack_require__.e(/*! import() | pages-search-search-module */ "pages-search-search-module").then(__webpack_require__.bind(null, /*! ../pages/search/search.module */ "./src/app/pages/search/search.module.ts")).then(m => m.SearchPageModule)
|
||||
}
|
||||
]
|
||||
},
|
||||
/* {
|
||||
path: 'expediente',
|
||||
children: [
|
||||
{
|
||||
path:'',
|
||||
loadChildren: ()=> import('../pages/gabinete-digital/expediente/expediente.module').then(m => m.ExpedientePageModule)
|
||||
}
|
||||
]
|
||||
}, */
|
||||
{
|
||||
path: 'chat',
|
||||
children: [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-chat-chat-module */[__webpack_require__.e("default~home-home-module~pages-chat-chat-module~pages-login-login-module"), __webpack_require__.e("pages-chat-chat-module")]).then(__webpack_require__.bind(null, /*! ../pages/chat/chat.module */ "./src/app/pages/chat/chat.module.ts")).then(m => m.ChatPageModule)
|
||||
}
|
||||
]
|
||||
},
|
||||
]
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
redirectTo: 'home/events',
|
||||
pathMatch: 'full'
|
||||
}
|
||||
];
|
||||
let HomePageRoutingModule = class HomePageRoutingModule {
|
||||
};
|
||||
HomePageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
|
||||
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]],
|
||||
})
|
||||
], HomePageRoutingModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/home/home.module.ts":
|
||||
/*!*************************************!*\
|
||||
!*** ./src/app/home/home.module.ts ***!
|
||||
\*************************************/
|
||||
/*! exports provided: HomePageModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomePageModule", function() { return HomePageModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
|
||||
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
/* harmony import */ var _home_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./home-routing.module */ "./src/app/home/home-routing.module.ts");
|
||||
/* harmony import */ var _home_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./home.page */ "./src/app/home/home.page.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* import { IonicSelectableModule } from 'ionic-selectable'; */
|
||||
let HomePageModule = class HomePageModule {
|
||||
};
|
||||
HomePageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [
|
||||
_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
|
||||
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
|
||||
_ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"],
|
||||
_home_routing_module__WEBPACK_IMPORTED_MODULE_5__["HomePageRoutingModule"],
|
||||
],
|
||||
declarations: [_home_page__WEBPACK_IMPORTED_MODULE_6__["HomePage"]]
|
||||
})
|
||||
], HomePageModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/home/home.page.scss":
|
||||
/*!*************************************!*\
|
||||
!*** ./src/app/home/home.page.scss ***!
|
||||
\*************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("ion-tab-bar {\n --background: #e3dfdf;\n --color: #000;\n}\n\nion-badge {\n /* */\n /* display: inline-block;*/\n min-width: 18px;\n font-size: 15px;\n /* font-weight: $badge-font-weight;\n line-height: 1;\n\n white-space: nowrap;\n vertical-align: baseline; */\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvaG9tZS9DOlxcVXNlcnNcXHRpYWdvLmtheWF5YVxcZGV2ZWxvcG1lbnRcXGdhYmluZXRlLWRpZ2l0YWwvc3JjXFxhcHBcXGhvbWVcXGhvbWUucGFnZS5zY3NzIiwic3JjL2FwcC9ob21lL2hvbWUucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUNBO0VBQ0kscUJBQUE7RUFDQSxhQUFBO0FDQUo7O0FEYUE7RUFBVyxLQUFBO0VBRVQsMEJBQUE7RUFFQSxlQUFBO0VBQ0EsZUFYZTtFQVlmOzs7OzZCQUFBO0FDUEYiLCJmaWxlIjoic3JjL2FwcC9ob21lL2hvbWUucGFnZS5zY3NzIiwic291cmNlc0NvbnRlbnQiOlsiXHJcbmlvbi10YWItYmFye1xyXG4gICAgLS1iYWNrZ3JvdW5kOiAjZTNkZmRmO1xyXG4gICAgLS1jb2xvcjogIzAwMDtcclxufVxyXG5cclxuLy8gQmFkZ2VcclxuLy8gLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS1cclxuXHJcbi8vLyBAcHJvcCAtIEZvbnQgc2l6ZSBvZiB0aGUgYmFkZ2VcclxuJGJhZGdlLWZvbnQtc2l6ZToxNXB4ICFkZWZhdWx0O1xyXG5cclxuLy8vIEBwcm9wIC0gRm9udCB3ZWlnaHQgb2YgdGhlIGJhZGdlXHJcbiRiYWRnZS1mb250LXdlaWdodDpib2xkICFkZWZhdWx0O1xyXG5cclxuXHJcbmlvbi1iYWRnZSB7LyogICovXHJcblxyXG4gIC8qIGRpc3BsYXk6IGlubGluZS1ibG9jazsqL1xyXG5cclxuICBtaW4td2lkdGg6IDE4cHg7IFxyXG4gIGZvbnQtc2l6ZTogJGJhZGdlLWZvbnQtc2l6ZTtcclxuICAvKiBmb250LXdlaWdodDogJGJhZGdlLWZvbnQtd2VpZ2h0O1xyXG4gIGxpbmUtaGVpZ2h0OiAxO1xyXG5cclxuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xyXG4gIHZlcnRpY2FsLWFsaWduOiBiYXNlbGluZTsgKi9cclxufSIsImlvbi10YWItYmFyIHtcbiAgLS1iYWNrZ3JvdW5kOiAjZTNkZmRmO1xuICAtLWNvbG9yOiAjMDAwO1xufVxuXG5pb24tYmFkZ2Uge1xuICAvKiAgKi9cbiAgLyogZGlzcGxheTogaW5saW5lLWJsb2NrOyovXG4gIG1pbi13aWR0aDogMThweDtcbiAgZm9udC1zaXplOiAxNXB4O1xuICAvKiBmb250LXdlaWdodDogJGJhZGdlLWZvbnQtd2VpZ2h0O1xuICBsaW5lLWhlaWdodDogMTtcblxuICB3aGl0ZS1zcGFjZTogbm93cmFwO1xuICB2ZXJ0aWNhbC1hbGlnbjogYmFzZWxpbmU7ICovXG59Il19 */");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/home/home.page.ts":
|
||||
/*!***********************************!*\
|
||||
!*** ./src/app/home/home.page.ts ***!
|
||||
\***********************************/
|
||||
/*! exports provided: HomePage */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "HomePage", function() { return HomePage; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _services_events_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/events.service */ "./src/app/services/events.service.ts");
|
||||
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
|
||||
/* harmony import */ var _services_processes_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/processes.service */ "./src/app/services/processes.service.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let HomePage = class HomePage {
|
||||
constructor(eventService, processesbackend) {
|
||||
this.eventService = eventService;
|
||||
this.processesbackend = processesbackend;
|
||||
this.totalEvent = 0;
|
||||
this.totalExpediente = 0;
|
||||
}
|
||||
ngOnInit() {
|
||||
this.eventService.getAllEvents(Object(_angular_common__WEBPACK_IMPORTED_MODULE_3__["formatDate"])(new Date(), 'yyyy-MM-dd', 'pt') + ' 00:00:00', Object(_angular_common__WEBPACK_IMPORTED_MODULE_3__["formatDate"])(new Date(), 'yyyy-MM-dd', 'pt') + ' 23:59:59')
|
||||
.subscribe(response => {
|
||||
this.eventsList = response;
|
||||
this.totalEvent = this.eventsList.length;
|
||||
});
|
||||
this.processesbackend.GetTasksList("Expediente", true).subscribe(result => {
|
||||
this.totalExpediente = result;
|
||||
});
|
||||
}
|
||||
};
|
||||
HomePage.ctorParameters = () => [
|
||||
{ type: _services_events_service__WEBPACK_IMPORTED_MODULE_2__["EventsService"] },
|
||||
{ type: _services_processes_service__WEBPACK_IMPORTED_MODULE_4__["ProcessesService"] }
|
||||
];
|
||||
HomePage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'app-home',
|
||||
template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./home.page.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/home/home.page.html")).default,
|
||||
styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./home.page.scss */ "./src/app/home/home.page.scss")).default]
|
||||
})
|
||||
], HomePage);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/resolvers/userData.resolver.ts":
|
||||
/*!************************************************!*\
|
||||
!*** ./src/app/resolvers/userData.resolver.ts ***!
|
||||
\************************************************/
|
||||
/*! exports provided: UserDataResolver */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "UserDataResolver", function() { return UserDataResolver; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ../services/auth.service */ "./src/app/services/auth.service.ts");
|
||||
|
||||
|
||||
|
||||
let UserDataResolver = class UserDataResolver {
|
||||
constructor(authService) {
|
||||
this.authService = authService;
|
||||
}
|
||||
resolve() {
|
||||
return this.authService.getUserData();
|
||||
}
|
||||
};
|
||||
UserDataResolver.ctorParameters = () => [
|
||||
{ type: _services_auth_service__WEBPACK_IMPORTED_MODULE_2__["AuthService"] }
|
||||
];
|
||||
UserDataResolver = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
|
||||
providedIn: 'root'
|
||||
})
|
||||
], UserDataResolver);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/services/events.service.ts":
|
||||
/*!********************************************!*\
|
||||
!*** ./src/app/services/events.service.ts ***!
|
||||
\********************************************/
|
||||
/*! exports provided: EventsService */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "EventsService", function() { return EventsService; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
|
||||
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
|
||||
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ../services/auth.service */ "./src/app/services/auth.service.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let EventsService = class EventsService {
|
||||
//lastloadedevent: Event;
|
||||
constructor(http, user) {
|
||||
this.http = http;
|
||||
this.authheader = {};
|
||||
this.loggeduser = user.ValidatedUser;
|
||||
this.headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]();
|
||||
this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
|
||||
}
|
||||
getAllEvents(startdate, enddate) {
|
||||
const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/GetAllEvents';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("StartDate", startdate);
|
||||
params = params.set("EndDate", enddate);
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(`${geturl}`, options);
|
||||
}
|
||||
getEvents(calendarname, startdate, enddate) {
|
||||
const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/GetEvents';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("CalendarName", calendarname);
|
||||
params = params.set("StartDate", startdate);
|
||||
params = params.set("EndDate", enddate);
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(`${geturl}`, options);
|
||||
}
|
||||
getEvent(eventid) {
|
||||
let geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'Calendar/GetEvent';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("EventId", eventid);
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(`${geturl}`, options);
|
||||
}
|
||||
putEvent(event, conflictResolutionMode, sendInvitationsOrCancellationsMode) {
|
||||
const puturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/PutEvent';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("conflictResolutionMode", conflictResolutionMode.toString());
|
||||
params = params.set("sendInvitationsOrCancellationsMode", sendInvitationsOrCancellationsMode.toString());
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.put(`${puturl}`, event, options);
|
||||
}
|
||||
postEvent(event, calendarName) {
|
||||
const puturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/PostEvent';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("CalendarName", calendarName);
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.post(`${puturl}`, event, options);
|
||||
}
|
||||
deleteEvent(eventid, deletemode) {
|
||||
const puturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].apiURL + 'calendar/PostEvent';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("EventId", eventid);
|
||||
params = params.set("deleteMode", deletemode.toString());
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.delete(`${puturl}`, options);
|
||||
}
|
||||
};
|
||||
EventsService.ctorParameters = () => [
|
||||
{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] },
|
||||
{ type: _services_auth_service__WEBPACK_IMPORTED_MODULE_4__["AuthService"] }
|
||||
];
|
||||
EventsService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
|
||||
providedIn: 'root'
|
||||
})
|
||||
], EventsService);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/services/processes.service.ts":
|
||||
/*!***********************************************!*\
|
||||
!*** ./src/app/services/processes.service.ts ***!
|
||||
\***********************************************/
|
||||
/*! exports provided: ProcessesService */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ProcessesService", function() { return ProcessesService; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
|
||||
/* harmony import */ var _services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ../services/auth.service */ "./src/app/services/auth.service.ts");
|
||||
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let ProcessesService = class ProcessesService {
|
||||
constructor(http, user) {
|
||||
this.http = http;
|
||||
this.authheader = {};
|
||||
this.loggeduser = user.ValidatedUser;
|
||||
this.headers = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpHeaders"]();
|
||||
this.headers = this.headers.set('Authorization', this.loggeduser.BasicAuthKey);
|
||||
}
|
||||
GetTasksList(processname, onlycount) {
|
||||
const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'tasks/List';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("ProcessName", processname);
|
||||
params = params.set("OnlyCount", onlycount.toString());
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(`${geturl}`, options);
|
||||
}
|
||||
GetTask(serialnumber) {
|
||||
const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'tasks/Get';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("SerialNumber", serialnumber);
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(`${geturl}`, options);
|
||||
}
|
||||
GetMDOficialTasks() {
|
||||
const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'tasks/GetMDOficialTasks';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get(`${geturl}`, options);
|
||||
}
|
||||
GetMDPersonalTasks() {
|
||||
const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'tasks/GetMDPersonalTasks';
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
};
|
||||
return this.http.get(`${geturl}`, options);
|
||||
}
|
||||
GetToApprovedEvents(categoryname, count) {
|
||||
const geturl = src_environments_environment__WEBPACK_IMPORTED_MODULE_4__["environment"].apiURL + 'Tasks/ListByCategory';
|
||||
let params = new _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpParams"]();
|
||||
params = params.set("categoryname", categoryname);
|
||||
params = params.set("onlyCount", count);
|
||||
let options = {
|
||||
headers: this.headers,
|
||||
params: params
|
||||
};
|
||||
return this.http.get(`${geturl}`, options);
|
||||
}
|
||||
};
|
||||
ProcessesService.ctorParameters = () => [
|
||||
{ type: _angular_common_http__WEBPACK_IMPORTED_MODULE_2__["HttpClient"] },
|
||||
{ type: _services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] }
|
||||
];
|
||||
ProcessesService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
|
||||
providedIn: 'root'
|
||||
})
|
||||
], ProcessesService);
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=home-home-module.js.map
|
||||
@@ -0,0 +1,151 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["index-index-module"],{
|
||||
|
||||
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/index/index.page.html":
|
||||
/*!*****************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/index/index.page.html ***!
|
||||
\*****************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("<ion-content>\r\n <router-outlet></router-outlet>\r\n</ion-content>\r\n");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/index/index-routing.module.ts":
|
||||
/*!***********************************************!*\
|
||||
!*** ./src/app/index/index-routing.module.ts ***!
|
||||
\***********************************************/
|
||||
/*! exports provided: IndexPageRoutingModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndexPageRoutingModule", function() { return IndexPageRoutingModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
|
||||
/* harmony import */ var _index_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./index.page */ "./src/app/index/index.page.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '',
|
||||
component: _index_page__WEBPACK_IMPORTED_MODULE_3__["IndexPage"],
|
||||
/* canActivate: [IndexGuard], */
|
||||
children: [
|
||||
/*{
|
||||
path: '',
|
||||
loadChildren: ()=> import('../pages/welcome/welcome.module').then(m => m.WelcomePageModule)
|
||||
}, */
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-login-login-module */[__webpack_require__.e("default~home-home-module~pages-chat-chat-module~pages-login-login-module"), __webpack_require__.e("pages-login-login-module")]).then(__webpack_require__.bind(null, /*! ../pages/login/login.module */ "./src/app/pages/login/login.module.ts")).then(m => m.LoginPageModule)
|
||||
},
|
||||
]
|
||||
}
|
||||
];
|
||||
let IndexPageRoutingModule = class IndexPageRoutingModule {
|
||||
};
|
||||
IndexPageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
|
||||
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]],
|
||||
})
|
||||
], IndexPageRoutingModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/index/index.module.ts":
|
||||
/*!***************************************!*\
|
||||
!*** ./src/app/index/index.module.ts ***!
|
||||
\***************************************/
|
||||
/*! exports provided: IndexPageModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndexPageModule", function() { return IndexPageModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
|
||||
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
/* harmony import */ var _index_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./index-routing.module */ "./src/app/index/index-routing.module.ts");
|
||||
/* harmony import */ var _index_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./index.page */ "./src/app/index/index.page.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let IndexPageModule = class IndexPageModule {
|
||||
};
|
||||
IndexPageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [
|
||||
_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
|
||||
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
|
||||
_ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"],
|
||||
_index_routing_module__WEBPACK_IMPORTED_MODULE_5__["IndexPageRoutingModule"]
|
||||
],
|
||||
declarations: [_index_page__WEBPACK_IMPORTED_MODULE_6__["IndexPage"]]
|
||||
})
|
||||
], IndexPageModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/index/index.page.scss":
|
||||
/*!***************************************!*\
|
||||
!*** ./src/app/index/index.page.scss ***!
|
||||
\***************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2luZGV4L2luZGV4LnBhZ2Uuc2NzcyJ9 */");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/index/index.page.ts":
|
||||
/*!*************************************!*\
|
||||
!*** ./src/app/index/index.page.ts ***!
|
||||
\*************************************/
|
||||
/*! exports provided: IndexPage */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "IndexPage", function() { return IndexPage; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
|
||||
|
||||
let IndexPage = class IndexPage {
|
||||
constructor() { }
|
||||
ngOnInit() {
|
||||
}
|
||||
};
|
||||
IndexPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'app-index',
|
||||
template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./index.page.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/index/index.page.html")).default,
|
||||
styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./index.page.scss */ "./src/app/index/index.page.scss")).default]
|
||||
})
|
||||
], IndexPage);
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=index-index-module.js.map
|
||||
@@ -0,0 +1,153 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["keyboard-dd970efc-js"],{
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/keyboard-dd970efc.js":
|
||||
/*!****************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/keyboard-dd970efc.js ***!
|
||||
\****************************************************************/
|
||||
/*! exports provided: KEYBOARD_DID_CLOSE, KEYBOARD_DID_OPEN, copyVisualViewport, keyboardDidClose, keyboardDidOpen, keyboardDidResize, resetKeyboardAssist, setKeyboardClose, setKeyboardOpen, startKeyboardAssist, trackViewportChanges */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEYBOARD_DID_CLOSE", function() { return KEYBOARD_DID_CLOSE; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "KEYBOARD_DID_OPEN", function() { return KEYBOARD_DID_OPEN; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "copyVisualViewport", function() { return copyVisualViewport; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyboardDidClose", function() { return keyboardDidClose; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyboardDidOpen", function() { return keyboardDidOpen; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "keyboardDidResize", function() { return keyboardDidResize; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "resetKeyboardAssist", function() { return resetKeyboardAssist; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setKeyboardClose", function() { return setKeyboardClose; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "setKeyboardOpen", function() { return setKeyboardOpen; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startKeyboardAssist", function() { return startKeyboardAssist; });
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "trackViewportChanges", function() { return trackViewportChanges; });
|
||||
const KEYBOARD_DID_OPEN = 'ionKeyboardDidShow';
|
||||
const KEYBOARD_DID_CLOSE = 'ionKeyboardDidHide';
|
||||
const KEYBOARD_THRESHOLD = 150;
|
||||
let previousVisualViewport = {};
|
||||
let currentVisualViewport = {};
|
||||
let keyboardOpen = false;
|
||||
/**
|
||||
* This is only used for tests
|
||||
*/
|
||||
const resetKeyboardAssist = () => {
|
||||
previousVisualViewport = {};
|
||||
currentVisualViewport = {};
|
||||
keyboardOpen = false;
|
||||
};
|
||||
const startKeyboardAssist = (win) => {
|
||||
startNativeListeners(win);
|
||||
if (!win.visualViewport) {
|
||||
return;
|
||||
}
|
||||
currentVisualViewport = copyVisualViewport(win.visualViewport);
|
||||
win.visualViewport.onresize = () => {
|
||||
trackViewportChanges(win);
|
||||
if (keyboardDidOpen() || keyboardDidResize(win)) {
|
||||
setKeyboardOpen(win);
|
||||
}
|
||||
else if (keyboardDidClose(win)) {
|
||||
setKeyboardClose(win);
|
||||
}
|
||||
};
|
||||
};
|
||||
/**
|
||||
* Listen for events fired by native keyboard plugin
|
||||
* in Capacitor/Cordova so devs only need to listen
|
||||
* in one place.
|
||||
*/
|
||||
const startNativeListeners = (win) => {
|
||||
win.addEventListener('keyboardDidShow', ev => setKeyboardOpen(win, ev));
|
||||
win.addEventListener('keyboardDidHide', () => setKeyboardClose(win));
|
||||
};
|
||||
const setKeyboardOpen = (win, ev) => {
|
||||
fireKeyboardOpenEvent(win, ev);
|
||||
keyboardOpen = true;
|
||||
};
|
||||
const setKeyboardClose = (win) => {
|
||||
fireKeyboardCloseEvent(win);
|
||||
keyboardOpen = false;
|
||||
};
|
||||
/**
|
||||
* Returns `true` if the `keyboardOpen` flag is not
|
||||
* set, the previous visual viewport width equal the current
|
||||
* visual viewport width, and if the scaled difference
|
||||
* of the previous visual viewport height minus the current
|
||||
* visual viewport height is greater than KEYBOARD_THRESHOLD
|
||||
*
|
||||
* We need to be able to accommodate users who have zooming
|
||||
* enabled in their browser (or have zoomed in manually) which
|
||||
* is why we take into account the current visual viewport's
|
||||
* scale value.
|
||||
*/
|
||||
const keyboardDidOpen = () => {
|
||||
const scaledHeightDifference = (previousVisualViewport.height - currentVisualViewport.height) * currentVisualViewport.scale;
|
||||
return (!keyboardOpen &&
|
||||
previousVisualViewport.width === currentVisualViewport.width &&
|
||||
scaledHeightDifference > KEYBOARD_THRESHOLD);
|
||||
};
|
||||
/**
|
||||
* Returns `true` if the keyboard is open,
|
||||
* but the keyboard did not close
|
||||
*/
|
||||
const keyboardDidResize = (win) => {
|
||||
return keyboardOpen && !keyboardDidClose(win);
|
||||
};
|
||||
/**
|
||||
* Determine if the keyboard was closed
|
||||
* Returns `true` if the `keyboardOpen` flag is set and
|
||||
* the current visual viewport height equals the
|
||||
* layout viewport height.
|
||||
*/
|
||||
const keyboardDidClose = (win) => {
|
||||
return keyboardOpen && currentVisualViewport.height === win.innerHeight;
|
||||
};
|
||||
/**
|
||||
* Dispatch a keyboard open event
|
||||
*/
|
||||
const fireKeyboardOpenEvent = (win, nativeEv) => {
|
||||
const keyboardHeight = nativeEv ? nativeEv.keyboardHeight : win.innerHeight - currentVisualViewport.height;
|
||||
const ev = new CustomEvent(KEYBOARD_DID_OPEN, {
|
||||
detail: { keyboardHeight }
|
||||
});
|
||||
win.dispatchEvent(ev);
|
||||
};
|
||||
/**
|
||||
* Dispatch a keyboard close event
|
||||
*/
|
||||
const fireKeyboardCloseEvent = (win) => {
|
||||
const ev = new CustomEvent(KEYBOARD_DID_CLOSE);
|
||||
win.dispatchEvent(ev);
|
||||
};
|
||||
/**
|
||||
* Given a window object, create a copy of
|
||||
* the current visual and layout viewport states
|
||||
* while also preserving the previous visual and
|
||||
* layout viewport states
|
||||
*/
|
||||
const trackViewportChanges = (win) => {
|
||||
previousVisualViewport = Object.assign({}, currentVisualViewport);
|
||||
currentVisualViewport = copyVisualViewport(win.visualViewport);
|
||||
};
|
||||
/**
|
||||
* Creates a deep copy of the visual viewport
|
||||
* at a given state
|
||||
*/
|
||||
const copyVisualViewport = (visualViewport) => {
|
||||
return {
|
||||
width: Math.round(visualViewport.width),
|
||||
height: Math.round(visualViewport.height),
|
||||
offsetTop: visualViewport.offsetTop,
|
||||
offsetLeft: visualViewport.offsetLeft,
|
||||
pageTop: visualViewport.pageTop,
|
||||
pageLeft: visualViewport.pageLeft,
|
||||
scale: visualViewport.scale
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=keyboard-dd970efc-js.js.map
|
||||
@@ -0,0 +1,561 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["main"],{
|
||||
|
||||
/***/ "./$$_lazy_route_resource lazy recursive":
|
||||
/*!******************************************************!*\
|
||||
!*** ./$$_lazy_route_resource lazy namespace object ***!
|
||||
\******************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
function webpackEmptyAsyncContext(req) {
|
||||
// Here Promise.resolve().then() is used instead of new Promise() to prevent
|
||||
// uncaught exception popping up in devtools
|
||||
return Promise.resolve().then(function() {
|
||||
var e = new Error("Cannot find module '" + req + "'");
|
||||
e.code = 'MODULE_NOT_FOUND';
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
webpackEmptyAsyncContext.keys = function() { return []; };
|
||||
webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
|
||||
module.exports = webpackEmptyAsyncContext;
|
||||
webpackEmptyAsyncContext.id = "./$$_lazy_route_resource lazy recursive";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm lazy recursive ^\\.\\/.*\\.entry\\.js$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$":
|
||||
/*!*****************************************************************************************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm lazy ^\.\/.*\.entry\.js$ include: \.entry\.js$ exclude: \.system\.entry\.js$ namespace object ***!
|
||||
\*****************************************************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var map = {
|
||||
"./ion-action-sheet.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-action-sheet.entry.js",
|
||||
"common",
|
||||
0
|
||||
],
|
||||
"./ion-alert.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-alert.entry.js",
|
||||
"common",
|
||||
1
|
||||
],
|
||||
"./ion-app_8.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-app_8.entry.js",
|
||||
"common",
|
||||
2
|
||||
],
|
||||
"./ion-avatar_3.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-avatar_3.entry.js",
|
||||
"common",
|
||||
3
|
||||
],
|
||||
"./ion-back-button.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-back-button.entry.js",
|
||||
"common",
|
||||
4
|
||||
],
|
||||
"./ion-backdrop.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-backdrop.entry.js",
|
||||
5
|
||||
],
|
||||
"./ion-button_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-button_2.entry.js",
|
||||
"common",
|
||||
6
|
||||
],
|
||||
"./ion-card_5.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-card_5.entry.js",
|
||||
"common",
|
||||
7
|
||||
],
|
||||
"./ion-checkbox.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-checkbox.entry.js",
|
||||
"common",
|
||||
8
|
||||
],
|
||||
"./ion-chip.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-chip.entry.js",
|
||||
"common",
|
||||
9
|
||||
],
|
||||
"./ion-col_3.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-col_3.entry.js",
|
||||
10
|
||||
],
|
||||
"./ion-datetime_3.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-datetime_3.entry.js",
|
||||
"common",
|
||||
11
|
||||
],
|
||||
"./ion-fab_3.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-fab_3.entry.js",
|
||||
"common",
|
||||
12
|
||||
],
|
||||
"./ion-img.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-img.entry.js",
|
||||
13
|
||||
],
|
||||
"./ion-infinite-scroll_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-infinite-scroll_2.entry.js",
|
||||
14
|
||||
],
|
||||
"./ion-input.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-input.entry.js",
|
||||
"common",
|
||||
15
|
||||
],
|
||||
"./ion-item-option_3.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-item-option_3.entry.js",
|
||||
"common",
|
||||
16
|
||||
],
|
||||
"./ion-item_8.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-item_8.entry.js",
|
||||
"common",
|
||||
17
|
||||
],
|
||||
"./ion-loading.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-loading.entry.js",
|
||||
"common",
|
||||
18
|
||||
],
|
||||
"./ion-menu_3.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-menu_3.entry.js",
|
||||
"common",
|
||||
19
|
||||
],
|
||||
"./ion-modal.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-modal.entry.js",
|
||||
"common",
|
||||
20
|
||||
],
|
||||
"./ion-nav_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-nav_2.entry.js",
|
||||
"common",
|
||||
21
|
||||
],
|
||||
"./ion-popover.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-popover.entry.js",
|
||||
"common",
|
||||
22
|
||||
],
|
||||
"./ion-progress-bar.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-progress-bar.entry.js",
|
||||
"common",
|
||||
23
|
||||
],
|
||||
"./ion-radio_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-radio_2.entry.js",
|
||||
"common",
|
||||
24
|
||||
],
|
||||
"./ion-range.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-range.entry.js",
|
||||
"common",
|
||||
25
|
||||
],
|
||||
"./ion-refresher_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-refresher_2.entry.js",
|
||||
"common",
|
||||
26
|
||||
],
|
||||
"./ion-reorder_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-reorder_2.entry.js",
|
||||
"common",
|
||||
27
|
||||
],
|
||||
"./ion-ripple-effect.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-ripple-effect.entry.js",
|
||||
28
|
||||
],
|
||||
"./ion-route_4.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-route_4.entry.js",
|
||||
"common",
|
||||
29
|
||||
],
|
||||
"./ion-searchbar.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-searchbar.entry.js",
|
||||
"common",
|
||||
30
|
||||
],
|
||||
"./ion-segment_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-segment_2.entry.js",
|
||||
"common",
|
||||
31
|
||||
],
|
||||
"./ion-select_3.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-select_3.entry.js",
|
||||
"common",
|
||||
32
|
||||
],
|
||||
"./ion-slide_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-slide_2.entry.js",
|
||||
33
|
||||
],
|
||||
"./ion-spinner.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-spinner.entry.js",
|
||||
"common",
|
||||
34
|
||||
],
|
||||
"./ion-split-pane.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-split-pane.entry.js",
|
||||
35
|
||||
],
|
||||
"./ion-tab-bar_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-tab-bar_2.entry.js",
|
||||
"common",
|
||||
36
|
||||
],
|
||||
"./ion-tab_2.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-tab_2.entry.js",
|
||||
"common",
|
||||
37
|
||||
],
|
||||
"./ion-text.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-text.entry.js",
|
||||
"common",
|
||||
38
|
||||
],
|
||||
"./ion-textarea.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-textarea.entry.js",
|
||||
"common",
|
||||
39
|
||||
],
|
||||
"./ion-toast.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-toast.entry.js",
|
||||
"common",
|
||||
40
|
||||
],
|
||||
"./ion-toggle.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-toggle.entry.js",
|
||||
"common",
|
||||
41
|
||||
],
|
||||
"./ion-virtual-scroll.entry.js": [
|
||||
"./node_modules/@ionic/core/dist/esm/ion-virtual-scroll.entry.js",
|
||||
42
|
||||
]
|
||||
};
|
||||
function webpackAsyncContext(req) {
|
||||
if(!__webpack_require__.o(map, req)) {
|
||||
return Promise.resolve().then(function() {
|
||||
var e = new Error("Cannot find module '" + req + "'");
|
||||
e.code = 'MODULE_NOT_FOUND';
|
||||
throw e;
|
||||
});
|
||||
}
|
||||
|
||||
var ids = map[req], id = ids[0];
|
||||
return Promise.all(ids.slice(1).map(__webpack_require__.e)).then(function() {
|
||||
return __webpack_require__(id);
|
||||
});
|
||||
}
|
||||
webpackAsyncContext.keys = function webpackAsyncContextKeys() {
|
||||
return Object.keys(map);
|
||||
};
|
||||
webpackAsyncContext.id = "./node_modules/@ionic/core/dist/esm lazy recursive ^\\.\\/.*\\.entry\\.js$ include: \\.entry\\.js$ exclude: \\.system\\.entry\\.js$";
|
||||
module.exports = webpackAsyncContext;
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html":
|
||||
/*!**************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html ***!
|
||||
\**************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("<ion-app>\r\n <ion-router-outlet></ion-router-outlet>\r\n</ion-app>\r\n");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./node_modules/webpack/hot sync ^\\.\\/log$":
|
||||
/*!*************************************************!*\
|
||||
!*** (webpack)/hot sync nonrecursive ^\.\/log$ ***!
|
||||
\*************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
var map = {
|
||||
"./log": "./node_modules/webpack/hot/log.js"
|
||||
};
|
||||
|
||||
|
||||
function webpackContext(req) {
|
||||
var id = webpackContextResolve(req);
|
||||
return __webpack_require__(id);
|
||||
}
|
||||
function webpackContextResolve(req) {
|
||||
if(!__webpack_require__.o(map, req)) {
|
||||
var e = new Error("Cannot find module '" + req + "'");
|
||||
e.code = 'MODULE_NOT_FOUND';
|
||||
throw e;
|
||||
}
|
||||
return map[req];
|
||||
}
|
||||
webpackContext.keys = function webpackContextKeys() {
|
||||
return Object.keys(map);
|
||||
};
|
||||
webpackContext.resolve = webpackContextResolve;
|
||||
module.exports = webpackContext;
|
||||
webpackContext.id = "./node_modules/webpack/hot sync ^\\.\\/log$";
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app-routing.module.ts":
|
||||
/*!***************************************!*\
|
||||
!*** ./src/app/app-routing.module.ts ***!
|
||||
\***************************************/
|
||||
/*! exports provided: AppRoutingModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppRoutingModule", function() { return AppRoutingModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
|
||||
|
||||
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => __webpack_require__.e(/*! import() | index-index-module */ "index-index-module").then(__webpack_require__.bind(null, /*! ./index/index.module */ "./src/app/index/index.module.ts")).then(m => m.IndexPageModule)
|
||||
},
|
||||
{
|
||||
path: '',
|
||||
loadChildren: () => Promise.all(/*! import() | home-home-module */[__webpack_require__.e("default~home-home-module~pages-chat-chat-module~pages-login-login-module"), __webpack_require__.e("home-home-module")]).then(__webpack_require__.bind(null, /*! ./home/home.module */ "./src/app/home/home.module.ts")).then(m => m.HomePageModule)
|
||||
},
|
||||
{
|
||||
path: 'chat',
|
||||
loadChildren: () => Promise.all(/*! import() | pages-chat-chat-module */[__webpack_require__.e("default~home-home-module~pages-chat-chat-module~pages-login-login-module"), __webpack_require__.e("pages-chat-chat-module")]).then(__webpack_require__.bind(null, /*! ./pages/chat/chat.module */ "./src/app/pages/chat/chat.module.ts")).then(m => m.ChatPageModule)
|
||||
},
|
||||
];
|
||||
let AppRoutingModule = class AppRoutingModule {
|
||||
};
|
||||
AppRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [
|
||||
_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forRoot(routes, { preloadingStrategy: _angular_router__WEBPACK_IMPORTED_MODULE_2__["PreloadAllModules"] })
|
||||
],
|
||||
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]]
|
||||
})
|
||||
], AppRoutingModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.component.scss":
|
||||
/*!************************************!*\
|
||||
!*** ./src/app/app.component.scss ***!
|
||||
\************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsImZpbGUiOiJzcmMvYXBwL2FwcC5jb21wb25lbnQuc2NzcyJ9 */");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.component.ts":
|
||||
/*!**********************************!*\
|
||||
!*** ./src/app/app.component.ts ***!
|
||||
\**********************************/
|
||||
/*! exports provided: AppComponent */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppComponent", function() { return AppComponent; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
/* harmony import */ var _ionic_native_splash_screen_ngx__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @ionic-native/splash-screen/ngx */ "./node_modules/@ionic-native/splash-screen/__ivy_ngcc__/ngx/index.js");
|
||||
/* harmony import */ var _ionic_native_status_bar_ngx__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic-native/status-bar/ngx */ "./node_modules/@ionic-native/status-bar/__ivy_ngcc__/ngx/index.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let AppComponent = class AppComponent {
|
||||
constructor(platform, splashScreen, statusBar) {
|
||||
this.platform = platform;
|
||||
this.splashScreen = splashScreen;
|
||||
this.statusBar = statusBar;
|
||||
this.initializeApp();
|
||||
}
|
||||
initializeApp() {
|
||||
this.platform.ready().then(() => {
|
||||
this.statusBar.styleDefault();
|
||||
this.splashScreen.hide();
|
||||
});
|
||||
}
|
||||
};
|
||||
AppComponent.ctorParameters = () => [
|
||||
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_2__["Platform"] },
|
||||
{ type: _ionic_native_splash_screen_ngx__WEBPACK_IMPORTED_MODULE_3__["SplashScreen"] },
|
||||
{ type: _ionic_native_status_bar_ngx__WEBPACK_IMPORTED_MODULE_4__["StatusBar"] }
|
||||
];
|
||||
AppComponent = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'app-root',
|
||||
template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./app.component.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/app.component.html")).default,
|
||||
styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./app.component.scss */ "./src/app/app.component.scss")).default]
|
||||
})
|
||||
], AppComponent);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/app.module.ts":
|
||||
/*!*******************************!*\
|
||||
!*** ./src/app/app.module.ts ***!
|
||||
\*******************************/
|
||||
/*! exports provided: AppModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "AppModule", function() { return AppModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_platform_browser__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/platform-browser */ "./node_modules/@angular/platform-browser/__ivy_ngcc__/fesm2015/platform-browser.js");
|
||||
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
/* harmony import */ var _ionic_native_splash_screen_ngx__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! @ionic-native/splash-screen/ngx */ "./node_modules/@ionic-native/splash-screen/__ivy_ngcc__/ngx/index.js");
|
||||
/* harmony import */ var _ionic_native_status_bar_ngx__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic-native/status-bar/ngx */ "./node_modules/@ionic-native/status-bar/__ivy_ngcc__/ngx/index.js");
|
||||
/* harmony import */ var _app_routing_module__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! ./app-routing.module */ "./src/app/app-routing.module.ts");
|
||||
/* harmony import */ var _app_component__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! ./app.component */ "./src/app/app.component.ts");
|
||||
/* harmony import */ var _angular_common_http__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(/*! @angular/common/http */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/http.js");
|
||||
/* harmony import */ var _ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(/*! @ionic-native/in-app-browser/ngx */ "./node_modules/@ionic-native/in-app-browser/__ivy_ngcc__/ngx/index.js");
|
||||
/* harmony import */ var ngx_socket_io__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(/*! ngx-socket-io */ "./node_modules/ngx-socket-io/__ivy_ngcc__/fesm2015/ngx-socket-io.js");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const config = { url: 'http://localhost:3001', options: {} };
|
||||
let AppModule = class AppModule {
|
||||
};
|
||||
AppModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
declarations: [_app_component__WEBPACK_IMPORTED_MODULE_8__["AppComponent"]],
|
||||
entryComponents: [],
|
||||
imports: [_angular_platform_browser__WEBPACK_IMPORTED_MODULE_2__["BrowserModule"], _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"].forRoot(), _app_routing_module__WEBPACK_IMPORTED_MODULE_7__["AppRoutingModule"], _angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClientModule"], ngx_socket_io__WEBPACK_IMPORTED_MODULE_11__["SocketIoModule"].forRoot(config)],
|
||||
providers: [
|
||||
_ionic_native_status_bar_ngx__WEBPACK_IMPORTED_MODULE_6__["StatusBar"],
|
||||
_ionic_native_splash_screen_ngx__WEBPACK_IMPORTED_MODULE_5__["SplashScreen"],
|
||||
_angular_common_http__WEBPACK_IMPORTED_MODULE_9__["HttpClientModule"],
|
||||
{ provide: _angular_router__WEBPACK_IMPORTED_MODULE_3__["RouteReuseStrategy"], useClass: _ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicRouteStrategy"] },
|
||||
_ionic_native_in_app_browser_ngx__WEBPACK_IMPORTED_MODULE_10__["InAppBrowser"],
|
||||
],
|
||||
bootstrap: [_app_component__WEBPACK_IMPORTED_MODULE_8__["AppComponent"]],
|
||||
schemas: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["CUSTOM_ELEMENTS_SCHEMA"]]
|
||||
})
|
||||
], AppModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/environments/environment.ts":
|
||||
/*!*****************************************!*\
|
||||
!*** ./src/environments/environment.ts ***!
|
||||
\*****************************************/
|
||||
/*! exports provided: environment */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "environment", function() { return environment; });
|
||||
// This file can be replaced during build by using the `fileReplacements` array.
|
||||
// `ng build --prod` replaces `environment.ts` with `environment.prod.ts`.
|
||||
// The list of file replacements can be found in `angular.json`.
|
||||
const environment = {
|
||||
production: false,
|
||||
apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V3/api/',
|
||||
apiChatUrl: 'http://192.168.100.111:3000/api/v1/',
|
||||
domain: 'gabinetedigital.local',
|
||||
defaultuser: 'paulo.pinto',
|
||||
defaultuserpwd: 'tabteste@006'
|
||||
};
|
||||
/*
|
||||
* For easier debugging in development mode, you can import the following file
|
||||
* to ignore zone related error stack frames such as `zone.run`, `zoneDelegate.invokeTask`.
|
||||
*
|
||||
* This import should be commented out in production mode because it will have a negative impact
|
||||
* on performance if an error is thrown.
|
||||
*/
|
||||
// import 'zone.js/dist/zone-error'; // Included with Angular CLI.
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/main.ts":
|
||||
/*!*********************!*\
|
||||
!*** ./src/main.ts ***!
|
||||
\*********************/
|
||||
/*! no exports provided */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/platform-browser-dynamic */ "./node_modules/@angular/platform-browser-dynamic/__ivy_ngcc__/fesm2015/platform-browser-dynamic.js");
|
||||
/* harmony import */ var _app_app_module__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./app/app.module */ "./src/app/app.module.ts");
|
||||
/* harmony import */ var _environments_environment__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./environments/environment */ "./src/environments/environment.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
if (_environments_environment__WEBPACK_IMPORTED_MODULE_3__["environment"].production) {
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_0__["enableProdMode"])();
|
||||
}
|
||||
Object(_angular_platform_browser_dynamic__WEBPACK_IMPORTED_MODULE_1__["platformBrowserDynamic"])().bootstrapModule(_app_app_module__WEBPACK_IMPORTED_MODULE_2__["AppModule"])
|
||||
.catch(err => console.log(err));
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 0:
|
||||
/*!**********************************************************************************************************!*\
|
||||
!*** multi (webpack)-dev-server/client?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-node ./src/main.ts ***!
|
||||
\**********************************************************************************************************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports, __webpack_require__) {
|
||||
|
||||
__webpack_require__(/*! C:\Users\tiago.kayaya\development\gabinete-digital\node_modules\webpack-dev-server\client\index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-node */"./node_modules/webpack-dev-server/client/index.js?http://0.0.0.0:0/sockjs-node&sockPath=/sockjs-node");
|
||||
module.exports = __webpack_require__(/*! C:\Users\tiago.kayaya\development\gabinete-digital\src\main.ts */"./src/main.ts");
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 1:
|
||||
/*!********************!*\
|
||||
!*** ws (ignored) ***!
|
||||
\********************/
|
||||
/*! no static exports found */
|
||||
/***/ (function(module, exports) {
|
||||
|
||||
/* (ignored) */
|
||||
|
||||
/***/ })
|
||||
|
||||
},[[0,"runtime","vendor"]]]);
|
||||
//# sourceMappingURL=main.js.map
|
||||
+196
@@ -0,0 +1,196 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["pages-gabinete-digital-gabinete-digital-module"],{
|
||||
|
||||
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/gabinete-digital.page.html":
|
||||
/*!*********************************************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/gabinete-digital.page.html ***!
|
||||
\*********************************************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("<ion-header>\r\n <ion-toolbar>\r\n <ion-title>Gabinete Digital</ion-title>\r\n </ion-toolbar>\r\n</ion-header>\r\n\r\n<ion-content>\r\n <ion-refresher name=\"refresher\" slot=\"fixed\" (ionRefresh)=\"doRefresh($event)\">\r\n <ion-progress-bar type=\"indeterminate\" *ngIf=\"showLoader\"></ion-progress-bar>\r\n <ion-refresher-content>\r\n </ion-refresher-content>\r\n </ion-refresher>\r\n <ion-card color=\"#d4d5ca\">\r\n <ion-card-header>\r\n <ion-card-title>Eventos para Aprovação</ion-card-title>\r\n <ion-card-content>\r\n <ion-item [routerLink]=\"['/home/gabinete-digital/event-list']\">\r\n <ion-label>Minha agenda</ion-label>\r\n <ion-button slot=\"end\">{{count_ev_md}}</ion-button>\r\n </ion-item>\r\n <ion-item [routerLink]=\"['/home/gabinete-digital/event-list']\" class=\"ion-item-change-color\">\r\n <ion-label>Agenda do Presidente</ion-label>\r\n <ion-button slot=\"end\">{{count_ev_pr}}</ion-button>\r\n </ion-item>\r\n </ion-card-content>\r\n </ion-card-header>\r\n </ion-card>\r\n <ion-card color=\"#d4d5ca\">\r\n <ion-card-header>\r\n <ion-card-title>Expediente</ion-card-title>\r\n <ion-card-content>\r\n <ion-item [routerLink]=\"['/home/gabinete-digital/expediente']\">\r\n <ion-label>Correspondência</ion-label>\r\n <ion-button slot=\"end\">{{ count_exp_dailywork }}</ion-button>\r\n </ion-item>\r\n <ion-item (click)=\"notImplemented()\" class=\"ion-activated\">\r\n <ion-label>Pedidos de parecer</ion-label>\r\n <ion-button slot=\"end\">{{count_exp_pp}}</ion-button>\r\n </ion-item>\r\n <ion-item (click)=\"notImplemented()\">\r\n <ion-label>Pedidos de deferimento</ion-label>\r\n <ion-button slot=\"end\">{{count_exp_pd}}</ion-button>\r\n </ion-item>\r\n </ion-card-content>\r\n </ion-card-header>\r\n</ion-card>\r\n<ion-card color=\"#d4d5ca\">\r\n <ion-card-header>\r\n <ion-card-title>Expediente para o PR</ion-card-title>\r\n <ion-card-content>\r\n <ion-item (click)=\"notImplemented()\" class=\"ion-item-change-color\">\r\n <ion-label>Correspondência</ion-label>\r\n <ion-button slot=\"end\">{{count_de_pr}}</ion-button>\r\n </ion-item>\r\n </ion-card-content>\r\n </ion-card-header>\r\n</ion-card>\r\n<ion-card color=\"#d4d5ca\">\r\n <ion-card-header>\r\n <ion-card-title>Despachos Efectuados</ion-card-title>\r\n <ion-card-content>\r\n <ion-item (click)=\"notImplemented()\" class=\"ion-item-change-color\">\r\n <ion-label>Presidente da República</ion-label>\r\n <ion-button slot=\"end\">{{count_de_pr}}</ion-button>\r\n </ion-item>\r\n </ion-card-content>\r\n </ion-card-header>\r\n</ion-card>\r\n<ion-card color=\"#d4d5ca\">\r\n <ion-card-header>\r\n <ion-card-title>Diplomas</ion-card-title>\r\n <ion-card-content>\r\n <ion-item primary (click)=\"notImplemented()\" class=\"ion-activated\">\r\n <ion-label>Por validar (MDGPR)</ion-label>\r\n <ion-button slot=\"end\">{{count_dip_pv}}</ion-button>\r\n </ion-item>\r\n <ion-item (click)=\"notImplemented()\" class=\"ion-item-change-color\">\r\n <ion-label>Assinados pelo PR</ion-label>\r\n <ion-button slot=\"end\">{{count_dip_apr}}</ion-button>\r\n </ion-item>\r\n </ion-card-content>\r\n </ion-card-header>\r\n</ion-card>\r\n\r\n</ion-content>\r\n");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/gabinete-digital/gabinete-digital-routing.module.ts":
|
||||
/*!***************************************************************************!*\
|
||||
!*** ./src/app/pages/gabinete-digital/gabinete-digital-routing.module.ts ***!
|
||||
\***************************************************************************/
|
||||
/*! exports provided: GabineteDigitalPageRoutingModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GabineteDigitalPageRoutingModule", function() { return GabineteDigitalPageRoutingModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
|
||||
/* harmony import */ var _gabinete_digital_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./gabinete-digital.page */ "./src/app/pages/gabinete-digital/gabinete-digital.page.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '',
|
||||
component: _gabinete_digital_page__WEBPACK_IMPORTED_MODULE_3__["GabineteDigitalPage"]
|
||||
},
|
||||
{
|
||||
path: 'expediente',
|
||||
loadChildren: () => Promise.all(/*! import() | expediente-expediente-module */[__webpack_require__.e("default~expediente-expediente-module~pages-agenda-agenda-module"), __webpack_require__.e("expediente-expediente-module")]).then(__webpack_require__.bind(null, /*! ./expediente/expediente.module */ "./src/app/pages/gabinete-digital/expediente/expediente.module.ts")).then(m => m.ExpedientePageModule)
|
||||
},
|
||||
{
|
||||
path: 'event-list',
|
||||
loadChildren: () => Promise.all(/*! import() | event-list-event-list-module */[__webpack_require__.e("common"), __webpack_require__.e("event-list-event-list-module")]).then(__webpack_require__.bind(null, /*! ./event-list/event-list.module */ "./src/app/pages/gabinete-digital/event-list/event-list.module.ts")).then(m => m.EventListPageModule)
|
||||
},
|
||||
{
|
||||
path: 'event-list-pr',
|
||||
loadChildren: () => __webpack_require__.e(/*! import() | event-list-pr-event-list-pr-module */ "event-list-pr-event-list-pr-module").then(__webpack_require__.bind(null, /*! ./event-list-pr/event-list-pr.module */ "./src/app/pages/gabinete-digital/event-list-pr/event-list-pr.module.ts")).then(m => m.EventListPrPageModule)
|
||||
}
|
||||
];
|
||||
let GabineteDigitalPageRoutingModule = class GabineteDigitalPageRoutingModule {
|
||||
};
|
||||
GabineteDigitalPageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
|
||||
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]],
|
||||
})
|
||||
], GabineteDigitalPageRoutingModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/gabinete-digital/gabinete-digital.module.ts":
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./src/app/pages/gabinete-digital/gabinete-digital.module.ts ***!
|
||||
\*******************************************************************/
|
||||
/*! exports provided: GabineteDigitalPageModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GabineteDigitalPageModule", function() { return GabineteDigitalPageModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
|
||||
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
/* harmony import */ var _gabinete_digital_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./gabinete-digital-routing.module */ "./src/app/pages/gabinete-digital/gabinete-digital-routing.module.ts");
|
||||
/* harmony import */ var _gabinete_digital_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./gabinete-digital.page */ "./src/app/pages/gabinete-digital/gabinete-digital.page.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/* import { ComponentsModule } from 'src/app/components/components.module'; */
|
||||
let GabineteDigitalPageModule = class GabineteDigitalPageModule {
|
||||
};
|
||||
GabineteDigitalPageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [
|
||||
_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
|
||||
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
|
||||
_ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"],
|
||||
/* ComponentsModule, */
|
||||
_gabinete_digital_routing_module__WEBPACK_IMPORTED_MODULE_5__["GabineteDigitalPageRoutingModule"]
|
||||
],
|
||||
declarations: [_gabinete_digital_page__WEBPACK_IMPORTED_MODULE_6__["GabineteDigitalPage"]],
|
||||
schemas: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["CUSTOM_ELEMENTS_SCHEMA"]]
|
||||
})
|
||||
], GabineteDigitalPageModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/gabinete-digital/gabinete-digital.page.scss":
|
||||
/*!*******************************************************************!*\
|
||||
!*** ./src/app/pages/gabinete-digital/gabinete-digital.page.scss ***!
|
||||
\*******************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = (":host ion-card-title {\n text-align: center;\n}\n:host ion-card {\n background-color: #d4d5ca;\n border-radius: 20px;\n}\n:host ion-item {\n --ion-background-color:#dae3f3;\n margin-bottom: 10px;\n border-radius: 5px;\n}\n:host ion-button {\n color: #000;\n --background:none;\n --border-color: none;\n --box-shadow:none;\n}\n:host ion-label {\n padding: 10px;\n}\n.ion-item-change-color {\n --ion-background-color:#fff2cc !important;\n margin-bottom: 10px;\n border-radius: 5px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvZ2FiaW5ldGUtZGlnaXRhbC9DOlxcVXNlcnNcXHRpYWdvLmtheWF5YVxcZGV2ZWxvcG1lbnRcXGdhYmluZXRlLWRpZ2l0YWwvc3JjXFxhcHBcXHBhZ2VzXFxnYWJpbmV0ZS1kaWdpdGFsXFxnYWJpbmV0ZS1kaWdpdGFsLnBhZ2Uuc2NzcyIsInNyYy9hcHAvcGFnZXMvZ2FiaW5ldGUtZGlnaXRhbC9nYWJpbmV0ZS1kaWdpdGFsLnBhZ2Uuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDRTtFQUNJLGtCQUFBO0FDQU47QURHQTtFQUNFLHlCQUFBO0VBQ0EsbUJBQUE7QUNERjtBREdBO0VBQ0UsOEJBQUE7RUFDQSxtQkFBQTtFQUNBLGtCQUFBO0FDREY7QURHQTtFQUNHLFdBQUE7RUFDRCxpQkFBQTtFQUNBLG9CQUFBO0VBQ0EsaUJBQUE7QUNERjtBREdBO0VBQ0csYUFBQTtBQ0RIO0FESUE7RUFDRSx5Q0FBQTtFQUNBLG1CQUFBO0VBQ0Esa0JBQUE7QUNERiIsImZpbGUiOiJzcmMvYXBwL3BhZ2VzL2dhYmluZXRlLWRpZ2l0YWwvZ2FiaW5ldGUtZGlnaXRhbC5wYWdlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyI6aG9zdHtcclxuICBpb24tY2FyZC10aXRsZXtcclxuICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xyXG4gIH1cclxuXHJcbmlvbi1jYXJke1xyXG4gIGJhY2tncm91bmQtY29sb3I6ICNkNGQ1Y2E7XHJcbiAgYm9yZGVyLXJhZGl1czogMjBweDtcclxufVxyXG5pb24taXRlbXtcclxuICAtLWlvbi1iYWNrZ3JvdW5kLWNvbG9yOiNkYWUzZjM7XHJcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcclxuICBib3JkZXItcmFkaXVzOiA1cHg7XHJcbn1cclxuaW9uLWJ1dHRvbntcclxuICAgY29sb3I6ICMwMDA7XHJcbiAgLS1iYWNrZ3JvdW5kOm5vbmU7XHJcbiAgLS1ib3JkZXItY29sb3I6IG5vbmU7XHJcbiAgLS1ib3gtc2hhZG93Om5vbmU7XHJcbn1cclxuaW9uLWxhYmVse1xyXG4gICBwYWRkaW5nOiAxMHB4O1xyXG59XHJcbn1cclxuLmlvbi1pdGVtLWNoYW5nZS1jb2xvcntcclxuICAtLWlvbi1iYWNrZ3JvdW5kLWNvbG9yOiNmZmYyY2MgIWltcG9ydGFudDtcclxuICBtYXJnaW4tYm90dG9tOiAxMHB4O1xyXG4gIGJvcmRlci1yYWRpdXM6IDVweDtcclxufSIsIjpob3N0IGlvbi1jYXJkLXRpdGxlIHtcbiAgdGV4dC1hbGlnbjogY2VudGVyO1xufVxuOmhvc3QgaW9uLWNhcmQge1xuICBiYWNrZ3JvdW5kLWNvbG9yOiAjZDRkNWNhO1xuICBib3JkZXItcmFkaXVzOiAyMHB4O1xufVxuOmhvc3QgaW9uLWl0ZW0ge1xuICAtLWlvbi1iYWNrZ3JvdW5kLWNvbG9yOiNkYWUzZjM7XG4gIG1hcmdpbi1ib3R0b206IDEwcHg7XG4gIGJvcmRlci1yYWRpdXM6IDVweDtcbn1cbjpob3N0IGlvbi1idXR0b24ge1xuICBjb2xvcjogIzAwMDtcbiAgLS1iYWNrZ3JvdW5kOm5vbmU7XG4gIC0tYm9yZGVyLWNvbG9yOiBub25lO1xuICAtLWJveC1zaGFkb3c6bm9uZTtcbn1cbjpob3N0IGlvbi1sYWJlbCB7XG4gIHBhZGRpbmc6IDEwcHg7XG59XG5cbi5pb24taXRlbS1jaGFuZ2UtY29sb3Ige1xuICAtLWlvbi1iYWNrZ3JvdW5kLWNvbG9yOiNmZmYyY2MgIWltcG9ydGFudDtcbiAgbWFyZ2luLWJvdHRvbTogMTBweDtcbiAgYm9yZGVyLXJhZGl1czogNXB4O1xufSJdfQ== */");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/gabinete-digital/gabinete-digital.page.ts":
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./src/app/pages/gabinete-digital/gabinete-digital.page.ts ***!
|
||||
\*****************************************************************/
|
||||
/*! exports provided: GabineteDigitalPage */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "GabineteDigitalPage", function() { return GabineteDigitalPage; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var src_app_services_processes_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! src/app/services/processes.service */ "./src/app/services/processes.service.ts");
|
||||
/* harmony import */ var src_app_services_alert_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/alert.service */ "./src/app/services/alert.service.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
let GabineteDigitalPage = class GabineteDigitalPage {
|
||||
constructor(processesbackend, alertService) {
|
||||
this.processesbackend = processesbackend;
|
||||
this.alertService = alertService;
|
||||
}
|
||||
ngOnInit() {
|
||||
this.LoadCounts();
|
||||
console.log('cheguei');
|
||||
}
|
||||
LoadCounts() {
|
||||
this.showLoader = true;
|
||||
this.processesbackend.GetTasksList("Expediente", true).subscribe(result => {
|
||||
this.showLoader = false;
|
||||
this.count_exp_dailywork = result;
|
||||
});
|
||||
this.processesbackend.GetToApprovedEvents('PR', 'true').subscribe(res => {
|
||||
this.count_ev_pr = res;
|
||||
});
|
||||
this.processesbackend.GetToApprovedEvents('MDGPR', 'true').subscribe(res => {
|
||||
this.count_ev_md = res;
|
||||
});
|
||||
this.count_exp_pp = "-";
|
||||
this.count_exp_pd = "-";
|
||||
this.count_dip_apr = "-";
|
||||
this.count_dip_pv = "-";
|
||||
this.count_de_pr = "-";
|
||||
this.count_ev_md = '-';
|
||||
}
|
||||
doRefresh(event) {
|
||||
this.LoadCounts();
|
||||
setTimeout(() => {
|
||||
event.target.complete();
|
||||
}, 2000);
|
||||
}
|
||||
notImplemented() {
|
||||
this.alertService.presentAlert('Funcionalidade em desenvolvimento');
|
||||
}
|
||||
};
|
||||
GabineteDigitalPage.ctorParameters = () => [
|
||||
{ type: src_app_services_processes_service__WEBPACK_IMPORTED_MODULE_2__["ProcessesService"] },
|
||||
{ type: src_app_services_alert_service__WEBPACK_IMPORTED_MODULE_3__["AlertService"] }
|
||||
];
|
||||
GabineteDigitalPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'app-gabinete-digital',
|
||||
template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./gabinete-digital.page.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/gabinete-digital/gabinete-digital.page.html")).default,
|
||||
styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./gabinete-digital.page.scss */ "./src/app/pages/gabinete-digital/gabinete-digital.page.scss")).default]
|
||||
})
|
||||
], GabineteDigitalPage);
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=pages-gabinete-digital-gabinete-digital-module.js.map
|
||||
@@ -0,0 +1,281 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["pages-login-login-module"],{
|
||||
|
||||
/***/ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/login/login.page.html":
|
||||
/*!***********************************************************************************!*\
|
||||
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/pages/login/login.page.html ***!
|
||||
\***********************************************************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = ("<ion-content>\r\n <div class=\"wrapper\">\r\n <div class=\"div-logo\">\r\n <img src='assets/images/fullLogo.png' alt='logo'>\r\n </div>\r\n <h2 class=\"center\">Inicie a sessão</h2>\r\n <form>\r\n <ion-list>\r\n <ion-item>\r\n <ion-label position=\"floating\">Nome de utilizador</ion-label>\r\n <ion-input type=\"text\" [(ngModel)]=\"username\" name=\"input-username\"></ion-input>\r\n </ion-item>\r\n <ion-item>\r\n <ion-label position=\"floating\">Palavra-passe</ion-label>\r\n <ion-input type=\"password\" [(ngModel)]=\"password\" name=\"input-password\" ></ion-input>\r\n </ion-item> \r\n <ion-button expand=\"block\" shape=\"round\" color=\"primary\" (click)=\"Login()\">Iniciar</ion-button>\r\n </ion-list>\r\n </form>\r\n</div>\r\n</ion-content>\r\n");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/login/login-routing.module.ts":
|
||||
/*!*****************************************************!*\
|
||||
!*** ./src/app/pages/login/login-routing.module.ts ***!
|
||||
\*****************************************************/
|
||||
/*! exports provided: LoginPageRoutingModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginPageRoutingModule", function() { return LoginPageRoutingModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
|
||||
/* harmony import */ var _login_page__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./login.page */ "./src/app/pages/login/login.page.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
const routes = [
|
||||
{
|
||||
path: '',
|
||||
component: _login_page__WEBPACK_IMPORTED_MODULE_3__["LoginPage"]
|
||||
}
|
||||
];
|
||||
let LoginPageRoutingModule = class LoginPageRoutingModule {
|
||||
};
|
||||
LoginPageRoutingModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"].forChild(routes)],
|
||||
exports: [_angular_router__WEBPACK_IMPORTED_MODULE_2__["RouterModule"]],
|
||||
})
|
||||
], LoginPageRoutingModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/login/login.module.ts":
|
||||
/*!*********************************************!*\
|
||||
!*** ./src/app/pages/login/login.module.ts ***!
|
||||
\*********************************************/
|
||||
/*! exports provided: LoginPageModule */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginPageModule", function() { return LoginPageModule; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_common__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/common */ "./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js");
|
||||
/* harmony import */ var _angular_forms__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @angular/forms */ "./node_modules/@angular/forms/__ivy_ngcc__/fesm2015/forms.js");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
/* harmony import */ var _login_routing_module__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! ./login-routing.module */ "./src/app/pages/login/login-routing.module.ts");
|
||||
/* harmony import */ var _login_page__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! ./login.page */ "./src/app/pages/login/login.page.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let LoginPageModule = class LoginPageModule {
|
||||
};
|
||||
LoginPageModule = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["NgModule"])({
|
||||
imports: [
|
||||
_angular_common__WEBPACK_IMPORTED_MODULE_2__["CommonModule"],
|
||||
_angular_forms__WEBPACK_IMPORTED_MODULE_3__["FormsModule"],
|
||||
_ionic_angular__WEBPACK_IMPORTED_MODULE_4__["IonicModule"],
|
||||
_login_routing_module__WEBPACK_IMPORTED_MODULE_5__["LoginPageRoutingModule"]
|
||||
],
|
||||
declarations: [_login_page__WEBPACK_IMPORTED_MODULE_6__["LoginPage"]],
|
||||
schemas: [_angular_core__WEBPACK_IMPORTED_MODULE_1__["CUSTOM_ELEMENTS_SCHEMA"]]
|
||||
})
|
||||
], LoginPageModule);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/login/login.page.scss":
|
||||
/*!*********************************************!*\
|
||||
!*** ./src/app/pages/login/login.page.scss ***!
|
||||
\*********************************************/
|
||||
/*! exports provided: default */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony default export */ __webpack_exports__["default"] = (".wrapper {\n margin: 0 auto;\n}\n\n.div-logo {\n width: 270px;\n margin: 0 auto;\n padding-bottom: 15px;\n}\n\n.div-logo img {\n width: 100%;\n}\n\nform {\n /* border: 1px solid red; */\n padding: 10px;\n}\n\n.wrapper ion-label {\n font-size: 20px;\n}\n\n.wrapper ion-input {\n font-size: 22px;\n}\n\n.wrapper ion-button {\n font-size: medium;\n margin-top: 25px;\n}\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNyYy9hcHAvcGFnZXMvbG9naW4vQzpcXFVzZXJzXFx0aWFnby5rYXlheWFcXGRldmVsb3BtZW50XFxnYWJpbmV0ZS1kaWdpdGFsL3NyY1xcYXBwXFxwYWdlc1xcbG9naW5cXGxvZ2luLnBhZ2Uuc2NzcyIsInNyYy9hcHAvcGFnZXMvbG9naW4vbG9naW4ucGFnZS5zY3NzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBO0VBQ0ksY0FBQTtBQ0NKOztBRENBO0VBQ0ksWUFBQTtFQUNBLGNBQUE7RUFDQSxvQkFBQTtBQ0VKOztBREFBO0VBQ0ksV0FBQTtBQ0dKOztBRERBO0VBQ0ksMkJBQUE7RUFDQSxhQUFBO0FDSUo7O0FERkE7RUFDSSxlQUFBO0FDS0o7O0FESEE7RUFDSSxlQUFBO0FDTUo7O0FESkE7RUFDSSxpQkFBQTtFQUNBLGdCQUFBO0FDT0oiLCJmaWxlIjoic3JjL2FwcC9wYWdlcy9sb2dpbi9sb2dpbi5wYWdlLnNjc3MiLCJzb3VyY2VzQ29udGVudCI6WyIud3JhcHBlcntcclxuICAgIG1hcmdpbjogMCBhdXRvO1xyXG59XHJcbi5kaXYtbG9nb3tcclxuICAgIHdpZHRoOiAyNzBweDtcclxuICAgIG1hcmdpbjogIDAgYXV0bztcclxuICAgIHBhZGRpbmctYm90dG9tOiAxNXB4O1xyXG59XHJcbi5kaXYtbG9nbyBpbWd7XHJcbiAgICB3aWR0aDogMTAwJTtcclxufVxyXG5mb3Jte1xyXG4gICAgLyogYm9yZGVyOiAxcHggc29saWQgcmVkOyAqL1xyXG4gICAgcGFkZGluZzogMTBweDtcclxufVxyXG4ud3JhcHBlciBpb24tbGFiZWx7XHJcbiAgICBmb250LXNpemU6IDIwcHg7IFxyXG59XHJcbi53cmFwcGVyIGlvbi1pbnB1dHtcclxuICAgIGZvbnQtc2l6ZTogMjJweDtcclxufVxyXG4ud3JhcHBlciBpb24tYnV0dG9ue1xyXG4gICAgZm9udC1zaXplOiBtZWRpdW07XHJcbiAgICBtYXJnaW4tdG9wOiAyNXB4O1xyXG59XHJcbiIsIi53cmFwcGVyIHtcbiAgbWFyZ2luOiAwIGF1dG87XG59XG5cbi5kaXYtbG9nbyB7XG4gIHdpZHRoOiAyNzBweDtcbiAgbWFyZ2luOiAwIGF1dG87XG4gIHBhZGRpbmctYm90dG9tOiAxNXB4O1xufVxuXG4uZGl2LWxvZ28gaW1nIHtcbiAgd2lkdGg6IDEwMCU7XG59XG5cbmZvcm0ge1xuICAvKiBib3JkZXI6IDFweCBzb2xpZCByZWQ7ICovXG4gIHBhZGRpbmc6IDEwcHg7XG59XG5cbi53cmFwcGVyIGlvbi1sYWJlbCB7XG4gIGZvbnQtc2l6ZTogMjBweDtcbn1cblxuLndyYXBwZXIgaW9uLWlucHV0IHtcbiAgZm9udC1zaXplOiAyMnB4O1xufVxuXG4ud3JhcHBlciBpb24tYnV0dG9uIHtcbiAgZm9udC1zaXplOiBtZWRpdW07XG4gIG1hcmdpbi10b3A6IDI1cHg7XG59Il19 */");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/pages/login/login.page.ts":
|
||||
/*!*******************************************!*\
|
||||
!*** ./src/app/pages/login/login.page.ts ***!
|
||||
\*******************************************/
|
||||
/*! exports provided: LoginPage */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "LoginPage", function() { return LoginPage; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @angular/router */ "./node_modules/@angular/router/__ivy_ngcc__/fesm2015/router.js");
|
||||
/* harmony import */ var src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! src/app/services/auth.service */ "./src/app/services/auth.service.ts");
|
||||
/* harmony import */ var src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! src/app/services/toast.service */ "./src/app/services/toast.service.ts");
|
||||
/* harmony import */ var src_environments_environment__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(/*! src/environments/environment */ "./src/environments/environment.ts");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
/* harmony import */ var src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(/*! src/app/services/storage.service */ "./src/app/services/storage.service.ts");
|
||||
/* harmony import */ var src_app_config_auth_constants__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(/*! src/app/config/auth-constants */ "./src/app/config/auth-constants.ts");
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
let LoginPage = class LoginPage {
|
||||
constructor(router, authService, storageService, toastService, alertController) {
|
||||
this.router = router;
|
||||
this.authService = authService;
|
||||
this.storageService = storageService;
|
||||
this.toastService = toastService;
|
||||
this.alertController = alertController;
|
||||
this.username = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].defaultuser;
|
||||
this.password = src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].defaultuserpwd;
|
||||
this.body = { "user": this.username, "password": this.password };
|
||||
this.postData = { "user": "admin", "password": this.password };
|
||||
}
|
||||
ngOnInit() {
|
||||
}
|
||||
/* Function to validade the login inputs */
|
||||
validateInput() {
|
||||
return (this.username.trim().length > 0
|
||||
&& this.password.trim().length > 0);
|
||||
}
|
||||
presentAlert(message) {
|
||||
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
|
||||
const alert = yield this.alertController.create({
|
||||
cssClass: 'my-custom-class',
|
||||
header: 'Mensagem do sistema',
|
||||
message: message,
|
||||
buttons: ['OK']
|
||||
});
|
||||
yield alert.present();
|
||||
});
|
||||
}
|
||||
loginAction() {
|
||||
if (this.validateInput()) {
|
||||
this.authService.loginChat2(this.postData).subscribe((res) => {
|
||||
if (res.data) {
|
||||
this.storageService.store(src_app_config_auth_constants__WEBPACK_IMPORTED_MODULE_8__["AuthConnstants"].AUTH, res.data);
|
||||
console.log('Log RockectChat OK');
|
||||
console.log(res.data);
|
||||
}
|
||||
else {
|
||||
console.log("Invalid username or password!");
|
||||
}
|
||||
}, (error) => {
|
||||
console.log('Network error');
|
||||
});
|
||||
}
|
||||
else {
|
||||
this.presentAlert('Por favor, insira o seu nome de utilizador e palavra-passe.');
|
||||
}
|
||||
}
|
||||
Login() {
|
||||
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
|
||||
try {
|
||||
//Go to our home in home/feed.
|
||||
if (this.validateInput()) {
|
||||
this.userattempt = {
|
||||
username: this.username,
|
||||
password: this.password,
|
||||
domainName: src_environments_environment__WEBPACK_IMPORTED_MODULE_5__["environment"].domain,
|
||||
BasicAuthKey: ""
|
||||
};
|
||||
if (yield this.authService.login(this.userattempt)) {
|
||||
this.loginAction();
|
||||
console.log('Log Gabinete Digital OK');
|
||||
this.router.navigate(['/home/events']);
|
||||
}
|
||||
else {
|
||||
/* this.toastService.presentToast('Não foi possível fazer login"'); */
|
||||
this.presentAlert('O nome de utilizador e palavra-passe estão incorretas ou verifique a sua conexão com a internet e volte a tentar.');
|
||||
}
|
||||
}
|
||||
else {
|
||||
/* this.toastService.presentToast('Preencha todos campos'); */
|
||||
this.presentAlert('Por favor, insira o seu nome de utilizador e palavra-passe.');
|
||||
}
|
||||
}
|
||||
catch (error) {
|
||||
this.presentAlert('Ocorreu um erro ao fazer login. Contacte o administrador de sistema.');
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
LoginPage.ctorParameters = () => [
|
||||
{ type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"] },
|
||||
{ type: src_app_services_auth_service__WEBPACK_IMPORTED_MODULE_3__["AuthService"] },
|
||||
{ type: src_app_services_storage_service__WEBPACK_IMPORTED_MODULE_7__["StorageService"] },
|
||||
{ type: src_app_services_toast_service__WEBPACK_IMPORTED_MODULE_4__["ToastService"] },
|
||||
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_6__["AlertController"] }
|
||||
];
|
||||
LoginPage = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
|
||||
selector: 'app-login',
|
||||
template: Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! raw-loader!./login.page.html */ "./node_modules/raw-loader/dist/cjs.js!./src/app/pages/login/login.page.html")).default,
|
||||
styles: [Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"])(__webpack_require__(/*! ./login.page.scss */ "./src/app/pages/login/login.page.scss")).default]
|
||||
})
|
||||
], LoginPage);
|
||||
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ "./src/app/services/toast.service.ts":
|
||||
/*!*******************************************!*\
|
||||
!*** ./src/app/services/toast.service.ts ***!
|
||||
\*******************************************/
|
||||
/*! exports provided: ToastService */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "ToastService", function() { return ToastService; });
|
||||
/* harmony import */ var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! tslib */ "./node_modules/tslib/tslib.es6.js");
|
||||
/* harmony import */ var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @angular/core */ "./node_modules/@angular/core/__ivy_ngcc__/fesm2015/core.js");
|
||||
/* harmony import */ var _ionic_angular__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @ionic/angular */ "./node_modules/@ionic/angular/__ivy_ngcc__/fesm2015/ionic-angular.js");
|
||||
|
||||
|
||||
|
||||
let ToastService = class ToastService {
|
||||
constructor(toastController) {
|
||||
this.toastController = toastController;
|
||||
}
|
||||
presentToast(infoMessage) {
|
||||
return Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"])(this, void 0, void 0, function* () {
|
||||
const toast = yield this.toastController.create({
|
||||
message: infoMessage,
|
||||
duration: 2000
|
||||
});
|
||||
toast.present();
|
||||
});
|
||||
}
|
||||
};
|
||||
ToastService.ctorParameters = () => [
|
||||
{ type: _ionic_angular__WEBPACK_IMPORTED_MODULE_2__["ToastController"] }
|
||||
];
|
||||
ToastService = Object(tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"])([
|
||||
Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Injectable"])({
|
||||
providedIn: 'root'
|
||||
})
|
||||
], ToastService);
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=pages-login-login-module.js.map
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,224 @@
|
||||
/******/ (function(modules) { // webpackBootstrap
|
||||
/******/ // install a JSONP callback for chunk loading
|
||||
/******/ function webpackJsonpCallback(data) {
|
||||
/******/ var chunkIds = data[0];
|
||||
/******/ var moreModules = data[1];
|
||||
/******/ var executeModules = data[2];
|
||||
/******/
|
||||
/******/ // add "moreModules" to the modules object,
|
||||
/******/ // then flag all "chunkIds" as loaded and fire callback
|
||||
/******/ var moduleId, chunkId, i = 0, resolves = [];
|
||||
/******/ for(;i < chunkIds.length; i++) {
|
||||
/******/ chunkId = chunkIds[i];
|
||||
/******/ if(Object.prototype.hasOwnProperty.call(installedChunks, chunkId) && installedChunks[chunkId]) {
|
||||
/******/ resolves.push(installedChunks[chunkId][0]);
|
||||
/******/ }
|
||||
/******/ installedChunks[chunkId] = 0;
|
||||
/******/ }
|
||||
/******/ for(moduleId in moreModules) {
|
||||
/******/ if(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {
|
||||
/******/ modules[moduleId] = moreModules[moduleId];
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ if(parentJsonpFunction) parentJsonpFunction(data);
|
||||
/******/
|
||||
/******/ while(resolves.length) {
|
||||
/******/ resolves.shift()();
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // add entry modules from loaded chunk to deferred list
|
||||
/******/ deferredModules.push.apply(deferredModules, executeModules || []);
|
||||
/******/
|
||||
/******/ // run deferred modules when all chunks ready
|
||||
/******/ return checkDeferredModules();
|
||||
/******/ };
|
||||
/******/ function checkDeferredModules() {
|
||||
/******/ var result;
|
||||
/******/ for(var i = 0; i < deferredModules.length; i++) {
|
||||
/******/ var deferredModule = deferredModules[i];
|
||||
/******/ var fulfilled = true;
|
||||
/******/ for(var j = 1; j < deferredModule.length; j++) {
|
||||
/******/ var depId = deferredModule[j];
|
||||
/******/ if(installedChunks[depId] !== 0) fulfilled = false;
|
||||
/******/ }
|
||||
/******/ if(fulfilled) {
|
||||
/******/ deferredModules.splice(i--, 1);
|
||||
/******/ result = __webpack_require__(__webpack_require__.s = deferredModule[0]);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ return result;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // The module cache
|
||||
/******/ var installedModules = {};
|
||||
/******/
|
||||
/******/ // object to store loaded and loading chunks
|
||||
/******/ // undefined = chunk not loaded, null = chunk preloaded/prefetched
|
||||
/******/ // Promise = chunk loading, 0 = chunk loaded
|
||||
/******/ var installedChunks = {
|
||||
/******/ "runtime": 0
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ var deferredModules = [];
|
||||
/******/
|
||||
/******/ // script path function
|
||||
/******/ function jsonpScriptSrc(chunkId) {
|
||||
/******/ return __webpack_require__.p + "" + ({"common":"common","default~home-home-module~pages-chat-chat-module~pages-login-login-module":"default~home-home-module~pages-chat-chat-module~pages-login-login-module","home-home-module":"home-home-module","pages-chat-chat-module":"pages-chat-chat-module","index-index-module":"index-index-module","polyfills-core-js":"polyfills-core-js","polyfills-css-shim":"polyfills-css-shim","polyfills-dom":"polyfills-dom","shadow-css-fc98efba-js":"shadow-css-fc98efba-js","swiper-bundle-95afeea2-js":"swiper-bundle-95afeea2-js","focus-visible-15ada7f7-js":"focus-visible-15ada7f7-js","input-shims-b956f530-js":"input-shims-b956f530-js","keyboard-dd970efc-js":"keyboard-dd970efc-js","status-tap-a9bf301d-js":"status-tap-a9bf301d-js","swipe-back-0a6a44c8-js":"swipe-back-0a6a44c8-js","tap-click-252af35a-js":"tap-click-252af35a-js","event-list-event-list-module":"event-list-event-list-module","expediente-detail-expediente-detail-module":"expediente-detail-expediente-detail-module","pages-events-events-module":"pages-events-events-module","pages-gabinete-digital-gabinete-digital-module":"pages-gabinete-digital-gabinete-digital-module","default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b":"default~attachments-attachments-module~event-detail-event-detail-module~pages-events-event-detail-ev~f3bcdd0b","attachments-attachments-module":"attachments-attachments-module","default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5":"default~attendees-attendees-module~event-detail-event-detail-module~pages-agenda-agenda-module~pages~2e9e46f5","attendees-attendees-module":"attendees-attendees-module","default~event-detail-event-detail-module~pages-events-event-detail-event-detail-module":"default~event-detail-event-detail-module~pages-events-event-detail-event-detail-module","default~expediente-expediente-module~pages-agenda-agenda-module":"default~expediente-expediente-module~pages-agenda-agenda-module","pages-agenda-agenda-module":"pages-agenda-agenda-module","expediente-expediente-module":"expediente-expediente-module","pages-login-login-module":"pages-login-login-module","pages-search-search-module":"pages-search-search-module","conversation-conversation-module":"conversation-conversation-module","newchat-newchat-module":"newchat-newchat-module","attendee-modal-attendee-modal-module":"attendee-modal-attendee-modal-module","event-list-pr-event-list-pr-module":"event-list-pr-event-list-pr-module","approve-event-modal-approve-event-modal-module":"approve-event-modal-approve-event-modal-module"}[chunkId]||chunkId) + ".js"
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // The require function
|
||||
/******/ function __webpack_require__(moduleId) {
|
||||
/******/
|
||||
/******/ // Check if module is in cache
|
||||
/******/ if(installedModules[moduleId]) {
|
||||
/******/ return installedModules[moduleId].exports;
|
||||
/******/ }
|
||||
/******/ // Create a new module (and put it into the cache)
|
||||
/******/ var module = installedModules[moduleId] = {
|
||||
/******/ i: moduleId,
|
||||
/******/ l: false,
|
||||
/******/ exports: {}
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Execute the module function
|
||||
/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
|
||||
/******/
|
||||
/******/ // Flag the module as loaded
|
||||
/******/ module.l = true;
|
||||
/******/
|
||||
/******/ // Return the exports of the module
|
||||
/******/ return module.exports;
|
||||
/******/ }
|
||||
/******/
|
||||
/******/ // This file contains only the entry chunk.
|
||||
/******/ // The chunk loading function for additional chunks
|
||||
/******/ __webpack_require__.e = function requireEnsure(chunkId) {
|
||||
/******/ var promises = [];
|
||||
/******/
|
||||
/******/
|
||||
/******/ // JSONP chunk loading for javascript
|
||||
/******/
|
||||
/******/ var installedChunkData = installedChunks[chunkId];
|
||||
/******/ if(installedChunkData !== 0) { // 0 means "already installed".
|
||||
/******/
|
||||
/******/ // a Promise means "currently loading".
|
||||
/******/ if(installedChunkData) {
|
||||
/******/ promises.push(installedChunkData[2]);
|
||||
/******/ } else {
|
||||
/******/ // setup Promise in chunk cache
|
||||
/******/ var promise = new Promise(function(resolve, reject) {
|
||||
/******/ installedChunkData = installedChunks[chunkId] = [resolve, reject];
|
||||
/******/ });
|
||||
/******/ promises.push(installedChunkData[2] = promise);
|
||||
/******/
|
||||
/******/ // start chunk loading
|
||||
/******/ var script = document.createElement('script');
|
||||
/******/ var onScriptComplete;
|
||||
/******/
|
||||
/******/ script.charset = 'utf-8';
|
||||
/******/ script.timeout = 120;
|
||||
/******/ if (__webpack_require__.nc) {
|
||||
/******/ script.setAttribute("nonce", __webpack_require__.nc);
|
||||
/******/ }
|
||||
/******/ script.src = jsonpScriptSrc(chunkId);
|
||||
/******/
|
||||
/******/ // create error before stack unwound to get useful stacktrace later
|
||||
/******/ var error = new Error();
|
||||
/******/ onScriptComplete = function (event) {
|
||||
/******/ // avoid mem leaks in IE.
|
||||
/******/ script.onerror = script.onload = null;
|
||||
/******/ clearTimeout(timeout);
|
||||
/******/ var chunk = installedChunks[chunkId];
|
||||
/******/ if(chunk !== 0) {
|
||||
/******/ if(chunk) {
|
||||
/******/ var errorType = event && (event.type === 'load' ? 'missing' : event.type);
|
||||
/******/ var realSrc = event && event.target && event.target.src;
|
||||
/******/ error.message = 'Loading chunk ' + chunkId + ' failed.\n(' + errorType + ': ' + realSrc + ')';
|
||||
/******/ error.name = 'ChunkLoadError';
|
||||
/******/ error.type = errorType;
|
||||
/******/ error.request = realSrc;
|
||||
/******/ chunk[1](error);
|
||||
/******/ }
|
||||
/******/ installedChunks[chunkId] = undefined;
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/ var timeout = setTimeout(function(){
|
||||
/******/ onScriptComplete({ type: 'timeout', target: script });
|
||||
/******/ }, 120000);
|
||||
/******/ script.onerror = script.onload = onScriptComplete;
|
||||
/******/ document.head.appendChild(script);
|
||||
/******/ }
|
||||
/******/ }
|
||||
/******/ return Promise.all(promises);
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // expose the modules object (__webpack_modules__)
|
||||
/******/ __webpack_require__.m = modules;
|
||||
/******/
|
||||
/******/ // expose the module cache
|
||||
/******/ __webpack_require__.c = installedModules;
|
||||
/******/
|
||||
/******/ // define getter function for harmony exports
|
||||
/******/ __webpack_require__.d = function(exports, name, getter) {
|
||||
/******/ if(!__webpack_require__.o(exports, name)) {
|
||||
/******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
|
||||
/******/ }
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // define __esModule on exports
|
||||
/******/ __webpack_require__.r = function(exports) {
|
||||
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
||||
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
||||
/******/ }
|
||||
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // create a fake namespace object
|
||||
/******/ // mode & 1: value is a module id, require it
|
||||
/******/ // mode & 2: merge all properties of value into the ns
|
||||
/******/ // mode & 4: return value when already ns object
|
||||
/******/ // mode & 8|1: behave like require
|
||||
/******/ __webpack_require__.t = function(value, mode) {
|
||||
/******/ if(mode & 1) value = __webpack_require__(value);
|
||||
/******/ if(mode & 8) return value;
|
||||
/******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
|
||||
/******/ var ns = Object.create(null);
|
||||
/******/ __webpack_require__.r(ns);
|
||||
/******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
|
||||
/******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
|
||||
/******/ return ns;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // getDefaultExport function for compatibility with non-harmony modules
|
||||
/******/ __webpack_require__.n = function(module) {
|
||||
/******/ var getter = module && module.__esModule ?
|
||||
/******/ function getDefault() { return module['default']; } :
|
||||
/******/ function getModuleExports() { return module; };
|
||||
/******/ __webpack_require__.d(getter, 'a', getter);
|
||||
/******/ return getter;
|
||||
/******/ };
|
||||
/******/
|
||||
/******/ // Object.prototype.hasOwnProperty.call
|
||||
/******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
|
||||
/******/
|
||||
/******/ // __webpack_public_path__
|
||||
/******/ __webpack_require__.p = "";
|
||||
/******/
|
||||
/******/ // on error function for async loading
|
||||
/******/ __webpack_require__.oe = function(err) { console.error(err); throw err; };
|
||||
/******/
|
||||
/******/ var jsonpArray = window["webpackJsonp"] = window["webpackJsonp"] || [];
|
||||
/******/ var oldJsonpFunction = jsonpArray.push.bind(jsonpArray);
|
||||
/******/ jsonpArray.push = webpackJsonpCallback;
|
||||
/******/ jsonpArray = jsonpArray.slice();
|
||||
/******/ for(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);
|
||||
/******/ var parentJsonpFunction = oldJsonpFunction;
|
||||
/******/
|
||||
/******/
|
||||
/******/ // run deferred modules from other chunks
|
||||
/******/ checkDeferredModules();
|
||||
/******/ })
|
||||
/************************************************************************/
|
||||
/******/ ([]);
|
||||
//# sourceMappingURL=runtime.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -0,0 +1,71 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["swipe-back-0a6a44c8-js"],{
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/swipe-back-0a6a44c8.js":
|
||||
/*!******************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/swipe-back-0a6a44c8.js ***!
|
||||
\******************************************************************/
|
||||
/*! exports provided: createSwipeBackGesture */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "createSwipeBackGesture", function() { return createSwipeBackGesture; });
|
||||
/* harmony import */ var _helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers-5c745fbd.js */ "./node_modules/@ionic/core/dist/esm/helpers-5c745fbd.js");
|
||||
/* harmony import */ var _gesture_controller_89173521_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./gesture-controller-89173521.js */ "./node_modules/@ionic/core/dist/esm/gesture-controller-89173521.js");
|
||||
/* harmony import */ var _index_eea61379_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./index-eea61379.js */ "./node_modules/@ionic/core/dist/esm/index-eea61379.js");
|
||||
|
||||
|
||||
|
||||
|
||||
const createSwipeBackGesture = (el, canStartHandler, onStartHandler, onMoveHandler, onEndHandler) => {
|
||||
const win = el.ownerDocument.defaultView;
|
||||
const canStart = (detail) => {
|
||||
return detail.startX <= 50 && canStartHandler();
|
||||
};
|
||||
const onMove = (detail) => {
|
||||
// set the transition animation's progress
|
||||
const delta = detail.deltaX;
|
||||
const stepValue = delta / win.innerWidth;
|
||||
onMoveHandler(stepValue);
|
||||
};
|
||||
const onEnd = (detail) => {
|
||||
// the swipe back gesture has ended
|
||||
const delta = detail.deltaX;
|
||||
const width = win.innerWidth;
|
||||
const stepValue = delta / width;
|
||||
const velocity = detail.velocityX;
|
||||
const z = width / 2.0;
|
||||
const shouldComplete = velocity >= 0 && (velocity > 0.2 || detail.deltaX > z);
|
||||
const missing = shouldComplete ? 1 - stepValue : stepValue;
|
||||
const missingDistance = missing * width;
|
||||
let realDur = 0;
|
||||
if (missingDistance > 5) {
|
||||
const dur = missingDistance / Math.abs(velocity);
|
||||
realDur = Math.min(dur, 540);
|
||||
}
|
||||
/**
|
||||
* TODO: stepValue can sometimes return negative values
|
||||
* or values greater than 1 which should not be possible.
|
||||
* Need to investigate more to find where the issue is.
|
||||
*/
|
||||
onEndHandler(shouldComplete, (stepValue <= 0) ? 0.01 : Object(_helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_0__["c"])(0, stepValue, 0.9999), realDur);
|
||||
};
|
||||
return Object(_index_eea61379_js__WEBPACK_IMPORTED_MODULE_2__["createGesture"])({
|
||||
el,
|
||||
gestureName: 'goback-swipe',
|
||||
gesturePriority: 40,
|
||||
threshold: 10,
|
||||
canStart,
|
||||
onStart: onStartHandler,
|
||||
onMove,
|
||||
onEnd
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=swipe-back-0a6a44c8-js.js.map
|
||||
@@ -0,0 +1,186 @@
|
||||
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["tap-click-252af35a-js"],{
|
||||
|
||||
/***/ "./node_modules/@ionic/core/dist/esm/tap-click-252af35a.js":
|
||||
/*!*****************************************************************!*\
|
||||
!*** ./node_modules/@ionic/core/dist/esm/tap-click-252af35a.js ***!
|
||||
\*****************************************************************/
|
||||
/*! exports provided: startTapClick */
|
||||
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
||||
|
||||
"use strict";
|
||||
__webpack_require__.r(__webpack_exports__);
|
||||
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "startTapClick", function() { return startTapClick; });
|
||||
/* harmony import */ var _helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./helpers-5c745fbd.js */ "./node_modules/@ionic/core/dist/esm/helpers-5c745fbd.js");
|
||||
|
||||
|
||||
const startTapClick = (config) => {
|
||||
let lastTouch = -MOUSE_WAIT * 10;
|
||||
let lastActivated = 0;
|
||||
let scrollingEl;
|
||||
let activatableEle;
|
||||
let activeRipple;
|
||||
let activeDefer;
|
||||
const useRippleEffect = config.getBoolean('animated', true) && config.getBoolean('rippleEffect', true);
|
||||
const clearDefers = new WeakMap();
|
||||
const isScrolling = () => {
|
||||
return scrollingEl !== undefined && scrollingEl.parentElement !== null;
|
||||
};
|
||||
// Touch Events
|
||||
const onTouchStart = (ev) => {
|
||||
lastTouch = Object(_helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_0__["n"])(ev);
|
||||
pointerDown(ev);
|
||||
};
|
||||
const onTouchEnd = (ev) => {
|
||||
lastTouch = Object(_helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_0__["n"])(ev);
|
||||
pointerUp(ev);
|
||||
};
|
||||
const onMouseDown = (ev) => {
|
||||
const t = Object(_helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_0__["n"])(ev) - MOUSE_WAIT;
|
||||
if (lastTouch < t) {
|
||||
pointerDown(ev);
|
||||
}
|
||||
};
|
||||
const onMouseUp = (ev) => {
|
||||
const t = Object(_helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_0__["n"])(ev) - MOUSE_WAIT;
|
||||
if (lastTouch < t) {
|
||||
pointerUp(ev);
|
||||
}
|
||||
};
|
||||
const cancelActive = () => {
|
||||
clearTimeout(activeDefer);
|
||||
activeDefer = undefined;
|
||||
if (activatableEle) {
|
||||
removeActivated(false);
|
||||
activatableEle = undefined;
|
||||
}
|
||||
};
|
||||
const pointerDown = (ev) => {
|
||||
if (activatableEle || isScrolling()) {
|
||||
return;
|
||||
}
|
||||
scrollingEl = undefined;
|
||||
setActivatedElement(getActivatableTarget(ev), ev);
|
||||
};
|
||||
const pointerUp = (ev) => {
|
||||
setActivatedElement(undefined, ev);
|
||||
};
|
||||
const setActivatedElement = (el, ev) => {
|
||||
// do nothing
|
||||
if (el && el === activatableEle) {
|
||||
return;
|
||||
}
|
||||
clearTimeout(activeDefer);
|
||||
activeDefer = undefined;
|
||||
const { x, y } = Object(_helpers_5c745fbd_js__WEBPACK_IMPORTED_MODULE_0__["p"])(ev);
|
||||
// deactivate selected
|
||||
if (activatableEle) {
|
||||
if (clearDefers.has(activatableEle)) {
|
||||
throw new Error('internal error');
|
||||
}
|
||||
if (!activatableEle.classList.contains(ACTIVATED)) {
|
||||
addActivated(activatableEle, x, y);
|
||||
}
|
||||
removeActivated(true);
|
||||
}
|
||||
// activate
|
||||
if (el) {
|
||||
const deferId = clearDefers.get(el);
|
||||
if (deferId) {
|
||||
clearTimeout(deferId);
|
||||
clearDefers.delete(el);
|
||||
}
|
||||
const delay = isInstant(el) ? 0 : ADD_ACTIVATED_DEFERS;
|
||||
el.classList.remove(ACTIVATED);
|
||||
activeDefer = setTimeout(() => {
|
||||
addActivated(el, x, y);
|
||||
activeDefer = undefined;
|
||||
}, delay);
|
||||
}
|
||||
activatableEle = el;
|
||||
};
|
||||
const addActivated = (el, x, y) => {
|
||||
lastActivated = Date.now();
|
||||
el.classList.add(ACTIVATED);
|
||||
const rippleEffect = useRippleEffect && getRippleEffect(el);
|
||||
if (rippleEffect && rippleEffect.addRipple) {
|
||||
removeRipple();
|
||||
activeRipple = rippleEffect.addRipple(x, y);
|
||||
}
|
||||
};
|
||||
const removeRipple = () => {
|
||||
if (activeRipple !== undefined) {
|
||||
activeRipple.then(remove => remove());
|
||||
activeRipple = undefined;
|
||||
}
|
||||
};
|
||||
const removeActivated = (smooth) => {
|
||||
removeRipple();
|
||||
const active = activatableEle;
|
||||
if (!active) {
|
||||
return;
|
||||
}
|
||||
const time = CLEAR_STATE_DEFERS - Date.now() + lastActivated;
|
||||
if (smooth && time > 0 && !isInstant(active)) {
|
||||
const deferId = setTimeout(() => {
|
||||
active.classList.remove(ACTIVATED);
|
||||
clearDefers.delete(active);
|
||||
}, CLEAR_STATE_DEFERS);
|
||||
clearDefers.set(active, deferId);
|
||||
}
|
||||
else {
|
||||
active.classList.remove(ACTIVATED);
|
||||
}
|
||||
};
|
||||
const doc = document;
|
||||
doc.addEventListener('ionScrollStart', ev => {
|
||||
scrollingEl = ev.target;
|
||||
cancelActive();
|
||||
});
|
||||
doc.addEventListener('ionScrollEnd', () => {
|
||||
scrollingEl = undefined;
|
||||
});
|
||||
doc.addEventListener('ionGestureCaptured', cancelActive);
|
||||
doc.addEventListener('touchstart', onTouchStart, true);
|
||||
doc.addEventListener('touchcancel', onTouchEnd, true);
|
||||
doc.addEventListener('touchend', onTouchEnd, true);
|
||||
doc.addEventListener('mousedown', onMouseDown, true);
|
||||
doc.addEventListener('mouseup', onMouseUp, true);
|
||||
};
|
||||
const getActivatableTarget = (ev) => {
|
||||
if (ev.composedPath) {
|
||||
const path = ev.composedPath();
|
||||
for (let i = 0; i < path.length - 2; i++) {
|
||||
const el = path[i];
|
||||
if (el.classList && el.classList.contains('ion-activatable')) {
|
||||
return el;
|
||||
}
|
||||
}
|
||||
}
|
||||
else {
|
||||
return ev.target.closest('.ion-activatable');
|
||||
}
|
||||
};
|
||||
const isInstant = (el) => {
|
||||
return el.classList.contains('ion-activatable-instant');
|
||||
};
|
||||
const getRippleEffect = (el) => {
|
||||
if (el.shadowRoot) {
|
||||
const ripple = el.shadowRoot.querySelector('ion-ripple-effect');
|
||||
if (ripple) {
|
||||
return ripple;
|
||||
}
|
||||
}
|
||||
return el.querySelector('ion-ripple-effect');
|
||||
};
|
||||
const ACTIVATED = 'ion-activated';
|
||||
const ADD_ACTIVATED_DEFERS = 200;
|
||||
const CLEAR_STATE_DEFERS = 200;
|
||||
const MOUSE_WAIT = 2500;
|
||||
|
||||
|
||||
|
||||
|
||||
/***/ })
|
||||
|
||||
}]);
|
||||
//# sourceMappingURL=tap-click-252af35a-js.js.map
|
||||
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
|
||||
export const environment = {
|
||||
production: false,
|
||||
apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/v2/api/',
|
||||
apiURL: 'http://gpr-dev-01.gabinetedigital.local/GabineteDigital.Services/V3/api/',
|
||||
apiChatUrl: 'http://192.168.100.111:3000/api/v1/',
|
||||
domain: 'gabinetedigital.local',
|
||||
defaultuser: 'paulo.pinto',
|
||||
|
||||
Reference in New Issue
Block a user