@koalarx/ui 13.2.8 → 14.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/alert/esm2020/lib/dialog-alert.component.mjs +8 -8
- package/alert/esm2020/lib/koala.alert.module.mjs +10 -12
- package/alert/esm2020/lib/koala.alert.service.mjs +4 -4
- package/alert/fesm2015/koalarx-ui-alert.mjs +22 -24
- package/alert/fesm2015/koalarx-ui-alert.mjs.map +1 -1
- package/alert/fesm2020/koalarx-ui-alert.mjs +22 -24
- package/alert/fesm2020/koalarx-ui-alert.mjs.map +1 -1
- package/alert/lib/dialog-alert.component.d.ts +1 -1
- package/alert/package.json +2 -2
- package/button/esm2020/lib/button.component.mjs +9 -9
- package/button/esm2020/lib/koala.button.module.mjs +9 -11
- package/button/fesm2015/koalarx-ui-button.mjs +18 -20
- package/button/fesm2015/koalarx-ui-button.mjs.map +1 -1
- package/button/fesm2020/koalarx-ui-button.mjs +18 -20
- package/button/fesm2020/koalarx-ui-button.mjs.map +1 -1
- package/button/lib/button.component.d.ts +1 -1
- package/button/package.json +2 -2
- package/common/esm2020/lib/services/csv/koala.csv.service.mjs +4 -4
- package/common/esm2020/lib/services/xlsx/koala.xlsx.service.mjs +4 -4
- package/common/fesm2015/koalarx-ui-common.mjs +6 -6
- package/common/fesm2015/koalarx-ui-common.mjs.map +1 -1
- package/common/fesm2020/koalarx-ui-common.mjs +6 -6
- package/common/fesm2020/koalarx-ui-common.mjs.map +1 -1
- package/common/package.json +2 -2
- package/core/esm2020/lib/loader/loader-bar-page.component.mjs +6 -6
- package/core/esm2020/lib/ngx-koala.module.mjs +8 -10
- package/core/esm2020/lib/page/koala.page.module.mjs +16 -18
- package/core/esm2020/lib/page/notifications/notification.component.mjs +11 -11
- package/core/esm2020/lib/page/page.component.mjs +11 -11
- package/core/esm2020/lib/router/koala.parameter-hash-location-stategy.mjs +4 -4
- package/core/esm2020/lib/services/api-requester/koala.api-requester.base.mjs +15 -7
- package/core/esm2020/lib/services/api-requester/koala.api-requester.service.mjs +4 -4
- package/core/esm2020/lib/services/loader/koala.loader.service.mjs +4 -4
- package/core/esm2020/lib/services/openid/koala.oauth2.service.mjs +4 -4
- package/core/esm2020/lib/services/request/koala.request.service.mjs +4 -4
- package/core/esm2020/lib/services/token/koala.token.service.mjs +4 -4
- package/core/fesm2015/koalarx-ui-core.mjs +89 -85
- package/core/fesm2015/koalarx-ui-core.mjs.map +1 -1
- package/core/fesm2020/koalarx-ui-core.mjs +89 -85
- package/core/fesm2020/koalarx-ui-core.mjs.map +1 -1
- package/core/lib/loader/loader-bar-page.component.d.ts +1 -1
- package/core/lib/page/notifications/notification.component.d.ts +1 -1
- package/core/lib/page/page.component.d.ts +1 -1
- package/core/lib/services/api-requester/koala.api-requester.base.d.ts +4 -2
- package/core/package.json +2 -2
- package/dialog/esm2020/lib/dialog.component.mjs +7 -7
- package/dialog/esm2020/lib/koala.dialog.module.mjs +8 -10
- package/dialog/esm2020/lib/koala.dialog.service.mjs +4 -4
- package/dialog/fesm2015/koalarx-ui-dialog.mjs +17 -19
- package/dialog/fesm2015/koalarx-ui-dialog.mjs.map +1 -1
- package/dialog/fesm2020/koalarx-ui-dialog.mjs +17 -19
- package/dialog/fesm2020/koalarx-ui-dialog.mjs.map +1 -1
- package/dialog/lib/dialog.component.d.ts +1 -1
- package/dialog/package.json +2 -2
- package/dynamic-component/esm2020/lib/koala-dynamic-component.directive.mjs +4 -4
- package/dynamic-component/esm2020/lib/koala-dynamic-component.factory.mjs +5 -5
- package/dynamic-component/esm2020/lib/koala-dynamic-component.module.mjs +5 -5
- package/dynamic-component/fesm2015/koalarx-ui-dynamic-component.mjs +11 -11
- package/dynamic-component/fesm2015/koalarx-ui-dynamic-component.mjs.map +1 -1
- package/dynamic-component/fesm2020/koalarx-ui-dynamic-component.mjs +11 -11
- package/dynamic-component/fesm2020/koalarx-ui-dynamic-component.mjs.map +1 -1
- package/dynamic-component/lib/koala-dynamic-component.directive.d.ts +1 -1
- package/dynamic-component/lib/koala-dynamic-component.factory.d.ts +1 -1
- package/dynamic-component/package.json +2 -2
- package/file-button/esm2020/lib/file-button.component.mjs +8 -8
- package/file-button/esm2020/lib/koala.btn-file.service.mjs +4 -4
- package/file-button/esm2020/lib/koala.file-button.module.mjs +8 -10
- package/file-button/fesm2015/koalarx-ui-file-button.mjs +19 -21
- package/file-button/fesm2015/koalarx-ui-file-button.mjs.map +1 -1
- package/file-button/fesm2020/koalarx-ui-file-button.mjs +19 -21
- package/file-button/fesm2020/koalarx-ui-file-button.mjs.map +1 -1
- package/file-button/lib/file-button.component.d.ts +1 -1
- package/file-button/package.json +2 -2
- package/folder-page/esm2020/lib/folder.component.mjs +8 -8
- package/folder-page/esm2020/lib/koala.folder-page.module.mjs +9 -11
- package/folder-page/fesm2015/koalarx-ui-folder-page.mjs +17 -19
- package/folder-page/fesm2015/koalarx-ui-folder-page.mjs.map +1 -1
- package/folder-page/fesm2020/koalarx-ui-folder-page.mjs +17 -19
- package/folder-page/fesm2020/koalarx-ui-folder-page.mjs.map +1 -1
- package/folder-page/lib/folder.component.d.ts +1 -1
- package/folder-page/package.json +2 -2
- package/form/esm2020/lib/btn-submit/btn-submit.component.mjs +7 -7
- package/form/esm2020/lib/directives/koala-autofocus.directive.mjs +4 -4
- package/form/esm2020/lib/dynamic-form/builder/dynamic-form.builder.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/builder/fields/autocomplete.builder.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/builder/fields/field.base.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/builder/fields/field.builder.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/builder/fields/more-items.builder.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/dynamic-form.component.mjs +24 -24
- package/form/esm2020/lib/dynamic-form/interfaces/koala.dynamic-form-config.interface.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/interfaces/koala.dynamic-form-field.interface.mjs +1 -1
- package/form/esm2020/lib/dynamic-form/koala.dynamic-form.service.mjs +5 -5
- package/form/esm2020/lib/form.abstract.mjs +1 -1
- package/form/esm2020/lib/koala.form.module.mjs +21 -23
- package/form/esm2020/lib/show-invalid-fields/show-invalid-fields.mjs +1 -1
- package/form/fesm2015/koalarx-ui-form.mjs +63 -65
- package/form/fesm2015/koalarx-ui-form.mjs.map +1 -1
- package/form/fesm2020/koalarx-ui-form.mjs +63 -65
- package/form/fesm2020/koalarx-ui-form.mjs.map +1 -1
- package/form/lib/btn-submit/btn-submit.component.d.ts +3 -3
- package/form/lib/directives/koala-autofocus.directive.d.ts +1 -1
- package/form/lib/dynamic-form/builder/dynamic-form.builder.d.ts +2 -2
- package/form/lib/dynamic-form/builder/fields/autocomplete.builder.d.ts +2 -2
- package/form/lib/dynamic-form/builder/fields/field.base.d.ts +3 -3
- package/form/lib/dynamic-form/builder/fields/field.builder.d.ts +2 -2
- package/form/lib/dynamic-form/builder/fields/more-items.builder.d.ts +2 -2
- package/form/lib/dynamic-form/dynamic-form.component.d.ts +5 -5
- package/form/lib/dynamic-form/interfaces/koala.dynamic-form-config.interface.d.ts +2 -2
- package/form/lib/dynamic-form/interfaces/koala.dynamic-form-field.interface.d.ts +2 -2
- package/form/lib/dynamic-form/koala.dynamic-form.service.d.ts +7 -7
- package/form/lib/form.abstract.d.ts +2 -2
- package/form/lib/show-invalid-fields/show-invalid-fields.d.ts +2 -2
- package/form/package.json +2 -2
- package/icon/esm2020/lib/icon.component.mjs +4 -4
- package/icon/esm2020/lib/koala.icon.module.mjs +5 -7
- package/icon/fesm2015/koalarx-ui-icon.mjs +7 -9
- package/icon/fesm2015/koalarx-ui-icon.mjs.map +1 -1
- package/icon/fesm2020/koalarx-ui-icon.mjs +7 -9
- package/icon/fesm2020/koalarx-ui-icon.mjs.map +1 -1
- package/icon/lib/icon.component.d.ts +1 -1
- package/icon/package.json +2 -2
- package/icons-animated/esm2020/lib/icons/downloading/downloading-icon-animated.component.mjs +4 -4
- package/icons-animated/esm2020/lib/icons/loading/loading-icon-animated.component.mjs +4 -4
- package/icons-animated/esm2020/lib/icons-animated.component.mjs +7 -7
- package/icons-animated/esm2020/lib/icons-animated.service.mjs +4 -4
- package/icons-animated/esm2020/lib/koala-icons-animated.module.mjs +5 -7
- package/icons-animated/fesm2015/koalarx-ui-icons-animated.mjs +17 -19
- package/icons-animated/fesm2015/koalarx-ui-icons-animated.mjs.map +1 -1
- package/icons-animated/fesm2020/koalarx-ui-icons-animated.mjs +17 -19
- package/icons-animated/fesm2020/koalarx-ui-icons-animated.mjs.map +1 -1
- package/icons-animated/lib/icons/downloading/downloading-icon-animated.component.d.ts +1 -1
- package/icons-animated/lib/icons/loading/loading-icon-animated.component.d.ts +1 -1
- package/icons-animated/lib/icons-animated.component.d.ts +1 -1
- package/icons-animated/package.json +2 -2
- package/list/esm2020/lib/koala.list.module.mjs +15 -17
- package/list/esm2020/lib/koala.list.service.mjs +4 -4
- package/list/esm2020/lib/list.abstract.mjs +1 -1
- package/list/esm2020/lib/list.component.mjs +20 -20
- package/list/esm2020/lib/providers/pagination/pagination.provider.mjs +4 -4
- package/list/fesm2015/koalarx-ui-list.mjs +40 -42
- package/list/fesm2015/koalarx-ui-list.mjs.map +1 -1
- package/list/fesm2020/koalarx-ui-list.mjs +40 -42
- package/list/fesm2020/koalarx-ui-list.mjs.map +1 -1
- package/list/lib/list.abstract.d.ts +2 -2
- package/list/lib/list.component.d.ts +4 -4
- package/list/package.json +2 -2
- package/menu/esm2020/lib/koala.menu.module.mjs +8 -10
- package/menu/esm2020/lib/koala.menu.service.mjs +4 -4
- package/menu/esm2020/lib/menu.component.mjs +7 -7
- package/menu/fesm2015/koalarx-ui-menu.mjs +17 -19
- package/menu/fesm2015/koalarx-ui-menu.mjs.map +1 -1
- package/menu/fesm2020/koalarx-ui-menu.mjs +17 -19
- package/menu/fesm2020/koalarx-ui-menu.mjs.map +1 -1
- package/menu/lib/menu.component.d.ts +1 -1
- package/menu/package.json +2 -2
- package/package.json +6 -6
- package/question/esm2020/lib/dialog-question.component.mjs +9 -9
- package/question/esm2020/lib/koala.question.module.mjs +9 -11
- package/question/esm2020/lib/koala.question.service.mjs +4 -4
- package/question/fesm2015/koalarx-ui-question.mjs +21 -23
- package/question/fesm2015/koalarx-ui-question.mjs.map +1 -1
- package/question/fesm2020/koalarx-ui-question.mjs +21 -23
- package/question/fesm2020/koalarx-ui-question.mjs.map +1 -1
- package/question/lib/dialog-question.component.d.ts +1 -1
- package/question/package.json +2 -2
- package/snackbar/esm2020/lib/koala.snackbar.component.mjs +4 -4
- package/snackbar/esm2020/lib/koala.snackbar.module.mjs +7 -9
- package/snackbar/esm2020/lib/koala.snackbar.service.mjs +4 -4
- package/snackbar/fesm2015/koalarx-ui-snackbar.mjs +12 -14
- package/snackbar/fesm2015/koalarx-ui-snackbar.mjs.map +1 -1
- package/snackbar/fesm2020/koalarx-ui-snackbar.mjs +12 -14
- package/snackbar/fesm2020/koalarx-ui-snackbar.mjs.map +1 -1
- package/snackbar/lib/koala.snackbar.component.d.ts +1 -1
- package/snackbar/package.json +2 -2
- package/alert/koalarx-ui-alert.d.ts +0 -5
- package/button/koalarx-ui-button.d.ts +0 -5
- package/common/koalarx-ui-common.d.ts +0 -5
- package/core/koalarx-ui-core.d.ts +0 -5
- package/dialog/koalarx-ui-dialog.d.ts +0 -5
- package/dynamic-component/koalarx-ui-dynamic-component.d.ts +0 -5
- package/file-button/koalarx-ui-file-button.d.ts +0 -5
- package/folder-page/koalarx-ui-folder-page.d.ts +0 -5
- package/form/koalarx-ui-form.d.ts +0 -5
- package/icon/koalarx-ui-icon.d.ts +0 -5
- package/icons-animated/koalarx-ui-icons-animated.d.ts +0 -5
- package/list/koalarx-ui-list.d.ts +0 -5
- package/menu/koalarx-ui-menu.d.ts +0 -5
- package/question/koalarx-ui-question.d.ts +0 -5
- package/snackbar/koalarx-ui-snackbar.d.ts +0 -5
|
@@ -1,42 +1,42 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Component, ChangeDetectionStrategy, Input, EventEmitter, Output, Injectable, ViewChild, NgModule } from '@angular/core';
|
|
3
|
-
import * as i1 from '@angular/
|
|
4
|
-
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
5
|
-
import * as i15 from '@angular/common';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
6
4
|
import { CommonModule, HashLocationStrategy } from '@angular/common';
|
|
7
|
-
import * as
|
|
8
|
-
import {
|
|
9
|
-
import * as i2 from '@angular/material/button';
|
|
10
|
-
import { MatButtonModule } from '@angular/material/button';
|
|
11
|
-
import * as i3 from '@angular/material/list';
|
|
12
|
-
import { MatListModule } from '@angular/material/list';
|
|
13
|
-
import * as i5 from '@angular/material/tooltip';
|
|
14
|
-
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
5
|
+
import * as i2 from '@angular/material/progress-bar';
|
|
6
|
+
import { MatProgressBarModule } from '@angular/material/progress-bar';
|
|
15
7
|
import * as i2$1 from '@angular/router';
|
|
16
8
|
import { NavigationError, NavigationEnd, NavigationCancel, NavigationStart, RouterModule } from '@angular/router';
|
|
9
|
+
import * as i3 from '@angular/material/tooltip';
|
|
10
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
11
|
+
import * as i4 from '@angular/material/button';
|
|
12
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
13
|
+
import * as i5 from '@angular/material/icon';
|
|
14
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
15
|
+
import * as i6 from '@angular/material/list';
|
|
16
|
+
import { MatListModule } from '@angular/material/list';
|
|
17
17
|
import * as i7 from '@angular/material/core';
|
|
18
18
|
import { BehaviorSubject, interval, Observable, skipWhile } from 'rxjs';
|
|
19
19
|
import jwt from 'jwt-decode';
|
|
20
|
-
import * as i4 from '@koalarx/ui/menu';
|
|
20
|
+
import * as i4$1 from '@koalarx/ui/menu';
|
|
21
21
|
import { menuStateSubject } from '@koalarx/ui/menu';
|
|
22
22
|
import jwtEncode from 'jwt-encode';
|
|
23
23
|
import { koala } from '@koalarx/utils';
|
|
24
24
|
import { delay } from '@koalarx/utils/operators/delay';
|
|
25
25
|
import { randomString } from '@koalarx/utils/operators/string';
|
|
26
|
-
import * as i1$
|
|
26
|
+
import * as i1$1 from '@angular/common/http';
|
|
27
27
|
import { HttpErrorResponse, HttpParams, HttpClientModule } from '@angular/common/http';
|
|
28
|
-
import * as i6 from 'ngx-device-detector';
|
|
29
|
-
import * as
|
|
28
|
+
import * as i6$1 from 'ngx-device-detector';
|
|
29
|
+
import * as i8 from '@angular/material/badge';
|
|
30
|
+
import { MatBadgeModule } from '@angular/material/badge';
|
|
31
|
+
import * as i9 from '@angular/material/progress-spinner';
|
|
30
32
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
|
31
|
-
import * as i9 from '@angular/material/sidenav';
|
|
32
|
-
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
33
33
|
import * as i10 from '@angular/material/toolbar';
|
|
34
34
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
|
35
|
-
import * as i13 from '@angular/material/
|
|
35
|
+
import * as i13 from '@angular/material/sidenav';
|
|
36
|
+
import { MatSidenavModule } from '@angular/material/sidenav';
|
|
37
|
+
import * as i14 from '@angular/material/menu';
|
|
36
38
|
import { MatMenuModule } from '@angular/material/menu';
|
|
37
|
-
import * as
|
|
38
|
-
import { MatBadgeModule } from '@angular/material/badge';
|
|
39
|
-
import * as i1$3 from '@koalarx/ui/alert';
|
|
39
|
+
import * as i1$2 from '@koalarx/ui/alert';
|
|
40
40
|
import { KoalaAlertEnum, KoalaRequestCodeToAlertEnumTranslate } from '@koalarx/ui/alert';
|
|
41
41
|
import { map, first } from 'rxjs/operators';
|
|
42
42
|
import { EventSourcePolyfill } from 'event-source-polyfill';
|
|
@@ -48,9 +48,9 @@ class LoaderBarPageComponent {
|
|
|
48
48
|
this.typeLoader = 'indeterminate';
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
LoaderBarPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
LoaderBarPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
51
|
+
LoaderBarPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LoaderBarPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
52
|
+
LoaderBarPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: LoaderBarPageComponent, selector: "app-loader-page", inputs: { show: "show", progress: "progress", typeLoader: "typeLoader" }, ngImport: i0, template: "<div [ngClass]=\"{'bouncedInDown d-block': show}\" class=\"animated loader-bar-page\">\n <mat-progress-bar\n [bufferValue]=\"progress\"\n [mode]=\"typeLoader\"\n [value]=\"progress\"\n color=\"primary\">\n </mat-progress-bar>\n</div>\n", styles: [".loader-bar-page{position:absolute;display:none;top:0;left:0;width:100vw;height:100vh;z-index:100000}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "component", type: i2.MatProgressBar, selector: "mat-progress-bar", inputs: ["color", "value", "bufferValue", "mode"], outputs: ["animationEnd"], exportAs: ["matProgressBar"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
53
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: LoaderBarPageComponent, decorators: [{
|
|
54
54
|
type: Component,
|
|
55
55
|
args: [{ selector: 'app-loader-page', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [ngClass]=\"{'bouncedInDown d-block': show}\" class=\"animated loader-bar-page\">\n <mat-progress-bar\n [bufferValue]=\"progress\"\n [mode]=\"typeLoader\"\n [value]=\"progress\"\n color=\"primary\">\n </mat-progress-bar>\n</div>\n", styles: [".loader-bar-page{position:absolute;display:none;top:0;left:0;width:100vw;height:100vh;z-index:100000}\n"] }]
|
|
56
56
|
}], propDecorators: { show: [{
|
|
@@ -82,11 +82,11 @@ class NotificationComponent {
|
|
|
82
82
|
this.delete.emit(notification);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
|
-
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
86
|
-
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
87
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
85
|
+
NotificationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NotificationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
86
|
+
NotificationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: NotificationComponent, selector: "koala-notification-list", inputs: { notifications: "notifications" }, outputs: { deleteAll: "deleteAll", delete: "delete" }, usesOnChanges: true, ngImport: i0, template: "<div (click)=\"$event.stopPropagation()\" class=\"notifications-content\">\n <div class=\"title\">\n <mat-icon>info</mat-icon>\n <h2>Notifica\u00E7\u00F5es</h2>\n <span class=\"spacer\"></span>\n <button (click)=\"deleteAllNotifications()\" *ngIf=\"notifications.length > 0\" class=\"btn-delete-all\"\n mat-icon-button\n matTooltip=\"Excluir Todas\" matTooltipPosition=\"above\">\n <mat-icon>delete_sweep</mat-icon>\n </button>\n </div>\n <mat-action-list *ngIf=\"notifications.length > 0 else noNotifications\">\n <mat-list-item *ngFor=\"let notification of notifications\" [routerLink]=\"notification.redirectTo\" class=\"itemList\">\n <button (click)=\"deleteNotification(notification)\" class=\"delete-notification\" color=\"warn\" mat-icon-button\n matTooltip=\"Excluir\" matTooltipPosition=\"above\"\n mat-list-icon>\n <mat-icon>delete</mat-icon>\n </button>\n <mat-icon class=\"iconList\" mat-list-icon>announcement</mat-icon>\n <h4 class=\"titleList\" mat-line>{{notification.title}}</h4>\n <p [innerHTML]=\"notification.text\" class=\"textList\" mat-line></p>\n </mat-list-item>\n </mat-action-list>\n <ng-template #noNotifications>\n <div class=\"empty\">\n <mat-icon>mood</mat-icon>\n <p>Tudo certo por aqui!</p>\n </div>\n </ng-template>\n</div>\n", styles: [".title{color:#616161;padding:5px 20px 15px}.title h2{vertical-align:middle;display:inline-flex;padding:0 10px;margin:0;font-family:OpenSans,sans-serif;font-size:.8em}.title mat-icon{vertical-align:middle;display:inline-flex;width:22px;height:22px;font-size:22px;line-height:22px}.title .btn-delete-all{position:absolute;right:20px;top:5px}.iconList{color:#1976d2}.titleList{font-family:OpenSansLight,sans-serif;font-size:.7em!important;color:#616161}.textList{font-family:OpenSans,sans-serif;font-size:.9em!important;color:#212121;white-space:inherit!important}.itemList{height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important;padding:8px 0!important}.delete-notification{background:#b71c1c;border-radius:0!important;height:100%!important;margin-left:-75px;margin-right:10px;position:absolute;transition:.3s;width:50px!important}.delete-notification mat-icon{color:#fff;vertical-align:middle}mat-action-list{max-height:70vh;overflow-y:auto}mat-list-item:hover .delete-notification{margin-left:-15px}.empty{padding:50px;text-align:center;color:#616161}.empty mat-icon{width:40px;height:40px;font-size:40px;line-height:40px}.empty p{text-align:center;font-family:OpenSansLight,sans-serif;font-size:1em}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2$1.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: i3.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i6.MatList, selector: "mat-list, mat-action-list", inputs: ["disableRipple", "disabled"], exportAs: ["matList"] }, { kind: "component", type: i6.MatListItem, selector: "mat-list-item, a[mat-list-item], button[mat-list-item]", inputs: ["disableRipple", "disabled"], exportAs: ["matListItem"] }, { kind: "directive", type: i7.MatLine, selector: "[mat-line], [matLine]" }, { kind: "directive", type: i6.MatListIconCssMatStyler, selector: "[mat-list-icon], [matListIcon]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
87
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NotificationComponent, decorators: [{
|
|
88
88
|
type: Component,
|
|
89
|
-
args: [{ selector: 'koala-notification-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div (click)=\"$event.stopPropagation()\" class=\"notifications-content\">\n <div class=\"title\">\n <mat-icon>info</mat-icon>\n <h2>Notifica\u00E7\u00F5es</h2>\n <span class=\"spacer\"></span>\n <button (click)=\"deleteAllNotifications()\" *ngIf=\"notifications.length > 0\" class=\"btn-delete-all\"\n mat-icon-button\n matTooltip=\"Excluir Todas\" matTooltipPosition=\"above\">\n <mat-icon>delete_sweep</mat-icon>\n </button>\n </div>\n <mat-action-list *ngIf=\"notifications.length > 0 else noNotifications\">\n <mat-list-item *ngFor=\"let notification of notifications\" [routerLink]=\"notification.redirectTo\" class=\"itemList\">\n <button (click)=\"deleteNotification(notification)\" class=\"delete-notification\" color=\"warn\" mat-icon-button\n matTooltip=\"Excluir\" matTooltipPosition=\"above\"\n mat-list-icon>\n <mat-icon>delete</mat-icon>\n </button>\n <mat-icon class=\"iconList\" mat-list-icon>announcement</mat-icon>\n <h4 class=\"titleList\" mat-line>{{notification.title}}</h4>\n <p [innerHTML]=\"notification.text\" class=\"textList\" mat-line></p>\n </mat-list-item>\n </mat-action-list>\n <ng-template #noNotifications>\n <div class=\"empty\">\n <mat-icon>mood</mat-icon>\n <p>Tudo certo por aqui!</p>\n </div>\n </ng-template>\n</div>\n", styles: [".title{color:#616161;padding:5px 20px 15px}.title h2{vertical-align:middle;display:inline-flex;padding:0 10px;margin:0;font-family:OpenSans,sans-serif;font-size:.8em}.title mat-icon{vertical-align:middle;display:inline-flex;width:22px;height:22px;font-size:22px;line-height:22px}.title .btn-delete-all{position:absolute;right:20px;top:5px}.iconList{color:#1976d2}.titleList{font-family:OpenSansLight,sans-serif;font-size:.7em!important;color:#616161}.textList{font-family:OpenSans,sans-serif;font-size:.9em!important;color:#212121;white-space:
|
|
89
|
+
args: [{ selector: 'koala-notification-list', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div (click)=\"$event.stopPropagation()\" class=\"notifications-content\">\n <div class=\"title\">\n <mat-icon>info</mat-icon>\n <h2>Notifica\u00E7\u00F5es</h2>\n <span class=\"spacer\"></span>\n <button (click)=\"deleteAllNotifications()\" *ngIf=\"notifications.length > 0\" class=\"btn-delete-all\"\n mat-icon-button\n matTooltip=\"Excluir Todas\" matTooltipPosition=\"above\">\n <mat-icon>delete_sweep</mat-icon>\n </button>\n </div>\n <mat-action-list *ngIf=\"notifications.length > 0 else noNotifications\">\n <mat-list-item *ngFor=\"let notification of notifications\" [routerLink]=\"notification.redirectTo\" class=\"itemList\">\n <button (click)=\"deleteNotification(notification)\" class=\"delete-notification\" color=\"warn\" mat-icon-button\n matTooltip=\"Excluir\" matTooltipPosition=\"above\"\n mat-list-icon>\n <mat-icon>delete</mat-icon>\n </button>\n <mat-icon class=\"iconList\" mat-list-icon>announcement</mat-icon>\n <h4 class=\"titleList\" mat-line>{{notification.title}}</h4>\n <p [innerHTML]=\"notification.text\" class=\"textList\" mat-line></p>\n </mat-list-item>\n </mat-action-list>\n <ng-template #noNotifications>\n <div class=\"empty\">\n <mat-icon>mood</mat-icon>\n <p>Tudo certo por aqui!</p>\n </div>\n </ng-template>\n</div>\n", styles: [".title{color:#616161;padding:5px 20px 15px}.title h2{vertical-align:middle;display:inline-flex;padding:0 10px;margin:0;font-family:OpenSans,sans-serif;font-size:.8em}.title mat-icon{vertical-align:middle;display:inline-flex;width:22px;height:22px;font-size:22px;line-height:22px}.title .btn-delete-all{position:absolute;right:20px;top:5px}.iconList{color:#1976d2}.titleList{font-family:OpenSansLight,sans-serif;font-size:.7em!important;color:#616161}.textList{font-family:OpenSans,sans-serif;font-size:.9em!important;color:#212121;white-space:inherit!important}.itemList{height:-webkit-fit-content!important;height:-moz-fit-content!important;height:fit-content!important;padding:8px 0!important}.delete-notification{background:#b71c1c;border-radius:0!important;height:100%!important;margin-left:-75px;margin-right:10px;position:absolute;transition:.3s;width:50px!important}.delete-notification mat-icon{color:#fff;vertical-align:middle}mat-action-list{max-height:70vh;overflow-y:auto}mat-list-item:hover .delete-notification{margin-left:-15px}.empty{padding:50px;text-align:center;color:#616161}.empty mat-icon{width:40px;height:40px;font-size:40px;line-height:40px}.empty p{text-align:center;font-family:OpenSansLight,sans-serif;font-size:1em}\n"] }]
|
|
90
90
|
}], ctorParameters: function () { return []; }, propDecorators: { notifications: [{
|
|
91
91
|
type: Input
|
|
92
92
|
}], deleteAll: [{
|
|
@@ -298,9 +298,9 @@ class KoalaTokenService {
|
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
KoalaTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
302
|
-
KoalaTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
303
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
301
|
+
KoalaTokenService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaTokenService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
302
|
+
KoalaTokenService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaTokenService, providedIn: "any" });
|
|
303
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaTokenService, decorators: [{
|
|
304
304
|
type: Injectable,
|
|
305
305
|
args: [{ providedIn: "any" }]
|
|
306
306
|
}], ctorParameters: function () { return []; } });
|
|
@@ -357,9 +357,9 @@ class KoalaLoaderService {
|
|
|
357
357
|
});
|
|
358
358
|
}
|
|
359
359
|
}
|
|
360
|
-
KoalaLoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
361
|
-
KoalaLoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
360
|
+
KoalaLoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaLoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
361
|
+
KoalaLoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaLoaderService, providedIn: "any" });
|
|
362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaLoaderService, decorators: [{
|
|
363
363
|
type: Injectable,
|
|
364
364
|
args: [{ providedIn: "any" }]
|
|
365
365
|
}] });
|
|
@@ -536,11 +536,11 @@ class KoalaOAuth2Service {
|
|
|
536
536
|
});
|
|
537
537
|
}
|
|
538
538
|
}
|
|
539
|
-
KoalaOAuth2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
540
|
-
KoalaOAuth2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
541
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
539
|
+
KoalaOAuth2Service.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaOAuth2Service, deps: [{ token: i1$1.HttpClient }, { token: i2$1.Router }, { token: KoalaTokenService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
540
|
+
KoalaOAuth2Service.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaOAuth2Service });
|
|
541
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaOAuth2Service, decorators: [{
|
|
542
542
|
type: Injectable
|
|
543
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
543
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: i2$1.Router }, { type: KoalaTokenService }]; } });
|
|
544
544
|
|
|
545
545
|
class PageComponent {
|
|
546
546
|
constructor(tokenService, router, loaderService, menuService, oauth2Service, deviceService) {
|
|
@@ -877,12 +877,12 @@ koala-menu ul li li.active a koala-icon * {fill: ${this.palletColors.menuOptions
|
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
|
-
PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
881
|
-
PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
880
|
+
PageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageComponent, deps: [{ token: KoalaTokenService }, { token: i2$1.Router }, { token: KoalaLoaderService }, { token: i4$1.KoalaMenuService }, { token: KoalaOAuth2Service }, { token: i6$1.DeviceDetectorService }], target: i0.ɵɵFactoryTarget.Component });
|
|
881
|
+
PageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.1.3", type: PageComponent, selector: "koala-page", inputs: { showMenu: "showMenu", color: "color", logo: "logo", startMenuOpened: "startMenuOpened", showLoaderPage: "showLoaderPage", messageLoaderPage: "messageLoaderPage", defaultPage: "defaultPage", openPages: "openPages", notifications: "notifications", userMenuOptions: "userMenuOptions", palletColors: "palletColors", language: "language" }, outputs: { validatingScope: "validatingScope", logoutEmitter: "logoutEmitter", deleteAllNotifications: "deleteAllNotifications", deleteNotification: "deleteNotification" }, providers: [KoalaTokenService], viewQueries: [{ propertyName: "menu", first: true, predicate: ["drawer"], descendants: true, static: true }], ngImport: i0, template: "<div *ngIf=\"showLoaderPage | async\" class=\"koala-loader-pg\">\n <div class=\"loader-content\">\n <figure>\n <img [src]=\"logo\" alt=\"Logotipo\"/>\n <figcaption *ngIf=\"(messageLoaderPage | async) as messageLoader\" [innerHTML]=\"messageLoader\"></figcaption>\n </figure>\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<app-loader-page *ngIf=\"(loaderSubject | async) as loader\" [progress]=\"loader.progress\" [show]=\"loader.show\"\n [typeLoader]=\"loader.typeLoader\"></app-loader-page>\n<mat-drawer-container autosize class=\"menu-container\">\n <mat-drawer #drawer class=\"menu-options\" [mode]=\"isMobile ? 'push' : 'side'\">\n <img [src]=\"logo\" alt=\"Logotipo\" id=\"logotipo\"/>\n <ng-content *ngIf=\"showMenu\" select=\"[menu-options]\"></ng-content>\n </mat-drawer>\n\n <mat-toolbar *ngIf=\"!!(logged$ | async) && (username$ | async)\" class=\"toolbar\">\n <img *ngIf=\"!showMenu\" [src]=\"logo\" alt=\"Logotipo Toolbar\" id=\"logotipo-toolbar\"/>\n <button (click)=\"toogleMenu()\" *ngIf=\"showMenu\" [color]=\"color\" class=\"btn-collapse-menu\" mat-icon-button>\n <mat-icon>menu</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n\t <div class=\"menu-toolbar\">\n\t\t <ng-content select=\"[menu-toolbar]\"></ng-content>\n\t </div>\n <div *ngIf=\"(notifications | async) as notificationList\">\n <button *ngIf=\"notifications\" [color]=\"color\" [matMenuTriggerFor]=\"notificationsMenu\" class=\"btn-toolbar\"\n mat-icon-button>\n <mat-icon\n\t [matBadgeHidden]=\"notificationList.length === 0\"\n\t [matBadge]=\"notificationList.length.toString()\"\n\t matBadgeColor=\"warn\">notifications\n </mat-icon>\n </button>\n <mat-menu #notificationsMenu=\"matMenu\" class=\"menu-list\" yPosition=\"below\">\n <koala-notification-list\n (delete)=\"deleteNotification.emit($event)\"\n (deleteAll)=\"deleteAllNotifications.emit($event)\"\n [notifications]=\"notificationList\">\n </koala-notification-list>\n </mat-menu>\n </div>\n <button [color]=\"color\" [matMenuTriggerFor]=\"userOptions\" class=\"btn-toolbar\" mat-button>\n <span>{{username$ | async}}</span>\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span>\n </button>\n <mat-menu #userOptions=\"matMenu\" class=\"user-menu menu-list\" yPosition=\"below\">\n <div class=\"user-presentation\">\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span><br/>\n <span class=\"username\">{{username$ | async}}</span>\n </div>\n <button (click)=\"btn.action()\" *ngFor=\"let btn of userMenuOptions\" mat-menu-item>\n <mat-icon>{{btn.icon}}</mat-icon>\n <span>{{btn.name}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>exit_to_app</mat-icon>\n <span>{{language === 'ptBr' ? 'Sair' : 'Logout'}}</span>\n </button>\n </mat-menu>\n </mat-toolbar>\n\n <ng-content class=\"page-content\" select=\"[page-content]\"></ng-content>\n\n</mat-drawer-container>\n\n<ng-content class=\"loading-info-content\" select=\"[loading-info-content]\"></ng-content>\n", styles: [".menu-container{height:100vh;width:100vw}.menu-options{border:none;padding:20px 0 0;width:250px}.page-content{align-items:center;display:flex;height:100%;justify-content:center}img#logotipo,img#logotipo-toolbar{display:block;height:auto;margin:0 auto 25px;position:relative;width:120px}.toolbar{box-shadow:none;padding:0 7px 0 13px}.toolbar img#logotipo-toolbar{margin:0;padding:0 10px}.menu-toolbar{margin:0 10px}.spacer{flex:1 1 auto}.btn-toolbar{display:inline-block;margin-right:10px;position:relative}.btn-toolbar span{padding:0 10px 0 0}.btn-toolbar span.icon-user,.user-presentation span.icon-user{border-radius:50%;display:inline-block;height:10px;line-height:10px;padding:5px;width:10px}.user-presentation{min-width:260px;padding:50px 10px;text-align:center}.user-presentation span.icon-user{font-size:30px;height:30px;line-height:30px;margin-bottom:10px;width:30px}.user-presentation span.username{font-family:OpenSansLight,sans-serif;word-break:break-all}@media (max-width: 900px){.btn-toolbar span:first-child{display:none}.btn-toolbar span.icon-user,.user-presentation span.icon-user{height:20px;line-height:20px;width:20px}}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i8.MatBadge, selector: "[matBadge]", inputs: ["matBadgeDisabled", "matBadgeColor", "matBadgeOverlap", "matBadgePosition", "matBadge", "matBadgeDescription", "matBadgeSize", "matBadgeHidden"] }, { kind: "component", type: i9.MatProgressSpinner, selector: "mat-progress-spinner, mat-spinner", inputs: ["color", "diameter", "strokeWidth", "mode", "value"], exportAs: ["matProgressSpinner"] }, { kind: "component", type: i10.MatToolbar, selector: "mat-toolbar", inputs: ["color"], exportAs: ["matToolbar"] }, { kind: "component", type: i4.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i13.MatDrawer, selector: "mat-drawer", inputs: ["position", "mode", "disableClose", "autoFocus", "opened"], outputs: ["openedChange", "opened", "openedStart", "closed", "closedStart", "positionChanged"], exportAs: ["matDrawer"] }, { kind: "component", type: i13.MatDrawerContainer, selector: "mat-drawer-container", inputs: ["autosize", "hasBackdrop"], outputs: ["backdropClick"], exportAs: ["matDrawerContainer"] }, { kind: "component", type: i14.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i14.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i14.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: NotificationComponent, selector: "koala-notification-list", inputs: ["notifications"], outputs: ["deleteAll", "delete"] }, { kind: "component", type: LoaderBarPageComponent, selector: "app-loader-page", inputs: ["show", "progress", "typeLoader"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: PageComponent, decorators: [{
|
|
883
883
|
type: Component,
|
|
884
884
|
args: [{ selector: 'koala-page', providers: [KoalaTokenService], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div *ngIf=\"showLoaderPage | async\" class=\"koala-loader-pg\">\n <div class=\"loader-content\">\n <figure>\n <img [src]=\"logo\" alt=\"Logotipo\"/>\n <figcaption *ngIf=\"(messageLoaderPage | async) as messageLoader\" [innerHTML]=\"messageLoader\"></figcaption>\n </figure>\n <mat-spinner></mat-spinner>\n </div>\n</div>\n<app-loader-page *ngIf=\"(loaderSubject | async) as loader\" [progress]=\"loader.progress\" [show]=\"loader.show\"\n [typeLoader]=\"loader.typeLoader\"></app-loader-page>\n<mat-drawer-container autosize class=\"menu-container\">\n <mat-drawer #drawer class=\"menu-options\" [mode]=\"isMobile ? 'push' : 'side'\">\n <img [src]=\"logo\" alt=\"Logotipo\" id=\"logotipo\"/>\n <ng-content *ngIf=\"showMenu\" select=\"[menu-options]\"></ng-content>\n </mat-drawer>\n\n <mat-toolbar *ngIf=\"!!(logged$ | async) && (username$ | async)\" class=\"toolbar\">\n <img *ngIf=\"!showMenu\" [src]=\"logo\" alt=\"Logotipo Toolbar\" id=\"logotipo-toolbar\"/>\n <button (click)=\"toogleMenu()\" *ngIf=\"showMenu\" [color]=\"color\" class=\"btn-collapse-menu\" mat-icon-button>\n <mat-icon>menu</mat-icon>\n </button>\n <span class=\"spacer\"></span>\n\t <div class=\"menu-toolbar\">\n\t\t <ng-content select=\"[menu-toolbar]\"></ng-content>\n\t </div>\n <div *ngIf=\"(notifications | async) as notificationList\">\n <button *ngIf=\"notifications\" [color]=\"color\" [matMenuTriggerFor]=\"notificationsMenu\" class=\"btn-toolbar\"\n mat-icon-button>\n <mat-icon\n\t [matBadgeHidden]=\"notificationList.length === 0\"\n\t [matBadge]=\"notificationList.length.toString()\"\n\t matBadgeColor=\"warn\">notifications\n </mat-icon>\n </button>\n <mat-menu #notificationsMenu=\"matMenu\" class=\"menu-list\" yPosition=\"below\">\n <koala-notification-list\n (delete)=\"deleteNotification.emit($event)\"\n (deleteAll)=\"deleteAllNotifications.emit($event)\"\n [notifications]=\"notificationList\">\n </koala-notification-list>\n </mat-menu>\n </div>\n <button [color]=\"color\" [matMenuTriggerFor]=\"userOptions\" class=\"btn-toolbar\" mat-button>\n <span>{{username$ | async}}</span>\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span>\n </button>\n <mat-menu #userOptions=\"matMenu\" class=\"user-menu menu-list\" yPosition=\"below\">\n <div class=\"user-presentation\">\n <span class=\"icon-user\">{{firstUserLetter$ | async}}</span><br/>\n <span class=\"username\">{{username$ | async}}</span>\n </div>\n <button (click)=\"btn.action()\" *ngFor=\"let btn of userMenuOptions\" mat-menu-item>\n <mat-icon>{{btn.icon}}</mat-icon>\n <span>{{btn.name}}</span>\n </button>\n <button (click)=\"logout()\" mat-menu-item>\n <mat-icon>exit_to_app</mat-icon>\n <span>{{language === 'ptBr' ? 'Sair' : 'Logout'}}</span>\n </button>\n </mat-menu>\n </mat-toolbar>\n\n <ng-content class=\"page-content\" select=\"[page-content]\"></ng-content>\n\n</mat-drawer-container>\n\n<ng-content class=\"loading-info-content\" select=\"[loading-info-content]\"></ng-content>\n", styles: [".menu-container{height:100vh;width:100vw}.menu-options{border:none;padding:20px 0 0;width:250px}.page-content{align-items:center;display:flex;height:100%;justify-content:center}img#logotipo,img#logotipo-toolbar{display:block;height:auto;margin:0 auto 25px;position:relative;width:120px}.toolbar{box-shadow:none;padding:0 7px 0 13px}.toolbar img#logotipo-toolbar{margin:0;padding:0 10px}.menu-toolbar{margin:0 10px}.spacer{flex:1 1 auto}.btn-toolbar{display:inline-block;margin-right:10px;position:relative}.btn-toolbar span{padding:0 10px 0 0}.btn-toolbar span.icon-user,.user-presentation span.icon-user{border-radius:50%;display:inline-block;height:10px;line-height:10px;padding:5px;width:10px}.user-presentation{min-width:260px;padding:50px 10px;text-align:center}.user-presentation span.icon-user{font-size:30px;height:30px;line-height:30px;margin-bottom:10px;width:30px}.user-presentation span.username{font-family:OpenSansLight,sans-serif;word-break:break-all}@media (max-width: 900px){.btn-toolbar span:first-child{display:none}.btn-toolbar span.icon-user,.user-presentation span.icon-user{height:20px;line-height:20px;width:20px}}\n"] }]
|
|
885
|
-
}], ctorParameters: function () { return [{ type: KoalaTokenService }, { type: i2$1.Router }, { type: KoalaLoaderService }, { type: i4.KoalaMenuService }, { type: KoalaOAuth2Service }, { type: i6.DeviceDetectorService }]; }, propDecorators: { showMenu: [{
|
|
885
|
+
}], ctorParameters: function () { return [{ type: KoalaTokenService }, { type: i2$1.Router }, { type: KoalaLoaderService }, { type: i4$1.KoalaMenuService }, { type: KoalaOAuth2Service }, { type: i6$1.DeviceDetectorService }]; }, propDecorators: { showMenu: [{
|
|
886
886
|
type: Input
|
|
887
887
|
}], color: [{
|
|
888
888
|
type: Input
|
|
@@ -921,8 +921,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
921
921
|
|
|
922
922
|
class KoalaPageModule {
|
|
923
923
|
}
|
|
924
|
-
KoalaPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
925
|
-
KoalaPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
924
|
+
KoalaPageModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaPageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
925
|
+
KoalaPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: KoalaPageModule, declarations: [PageComponent,
|
|
926
926
|
NotificationComponent,
|
|
927
927
|
LoaderBarPageComponent], imports: [CommonModule,
|
|
928
928
|
RouterModule,
|
|
@@ -937,21 +937,19 @@ KoalaPageModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version
|
|
|
937
937
|
MatListModule,
|
|
938
938
|
MatMenuModule], exports: [PageComponent,
|
|
939
939
|
RouterModule] });
|
|
940
|
-
KoalaPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
], RouterModule] });
|
|
954
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: KoalaPageModule, decorators: [{
|
|
940
|
+
KoalaPageModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaPageModule, imports: [CommonModule,
|
|
941
|
+
RouterModule,
|
|
942
|
+
MatBadgeModule,
|
|
943
|
+
MatProgressSpinnerModule,
|
|
944
|
+
MatProgressBarModule,
|
|
945
|
+
MatToolbarModule,
|
|
946
|
+
MatTooltipModule,
|
|
947
|
+
MatButtonModule,
|
|
948
|
+
MatIconModule,
|
|
949
|
+
MatSidenavModule,
|
|
950
|
+
MatListModule,
|
|
951
|
+
MatMenuModule, RouterModule] });
|
|
952
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaPageModule, decorators: [{
|
|
955
953
|
type: NgModule,
|
|
956
954
|
args: [{
|
|
957
955
|
declarations: [
|
|
@@ -988,9 +986,9 @@ class KoalaParameterHashLocationStrategy extends HashLocationStrategy {
|
|
|
988
986
|
super.prepareExternalUrl(internal);
|
|
989
987
|
}
|
|
990
988
|
}
|
|
991
|
-
KoalaParameterHashLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
992
|
-
KoalaParameterHashLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
993
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
989
|
+
KoalaParameterHashLocationStrategy.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaParameterHashLocationStrategy, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
990
|
+
KoalaParameterHashLocationStrategy.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaParameterHashLocationStrategy });
|
|
991
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaParameterHashLocationStrategy, decorators: [{
|
|
994
992
|
type: Injectable
|
|
995
993
|
}] });
|
|
996
994
|
|
|
@@ -1236,12 +1234,12 @@ class KoalaApiRequesterService {
|
|
|
1236
1234
|
}
|
|
1237
1235
|
}
|
|
1238
1236
|
}
|
|
1239
|
-
KoalaApiRequesterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1240
|
-
KoalaApiRequesterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1241
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1237
|
+
KoalaApiRequesterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaApiRequesterService, deps: [{ token: i1$1.HttpClient }, { token: KoalaOAuth2Service }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1238
|
+
KoalaApiRequesterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaApiRequesterService, providedIn: "root" });
|
|
1239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaApiRequesterService, decorators: [{
|
|
1242
1240
|
type: Injectable,
|
|
1243
1241
|
args: [{ providedIn: "root" }]
|
|
1244
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1242
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: KoalaOAuth2Service }]; } });
|
|
1245
1243
|
|
|
1246
1244
|
class KoalaApiRequesterCache {
|
|
1247
1245
|
static createCache(name) {
|
|
@@ -1281,10 +1279,10 @@ class KoalaApiRequesterCache {
|
|
|
1281
1279
|
KoalaApiRequesterCache.cache = [];
|
|
1282
1280
|
|
|
1283
1281
|
class KoalaApiRequesterBase {
|
|
1284
|
-
constructor(koalaService, endpoint,
|
|
1282
|
+
constructor(koalaService, endpoint, statusCache = false, environmentNameToEndpointApi = 'endpointApi', isMockup = false) {
|
|
1285
1283
|
this.koalaService = koalaService;
|
|
1286
1284
|
this.endpoint = endpoint;
|
|
1287
|
-
this.
|
|
1285
|
+
this.statusCache = statusCache;
|
|
1288
1286
|
koalaService.apiUrl = KoalaEnvironment.environment?.[environmentNameToEndpointApi];
|
|
1289
1287
|
koalaService.isMockup = isMockup;
|
|
1290
1288
|
}
|
|
@@ -1340,18 +1338,26 @@ class KoalaApiRequesterBase {
|
|
|
1340
1338
|
return filter ?? null;
|
|
1341
1339
|
}
|
|
1342
1340
|
request(method, url, data = {}) {
|
|
1343
|
-
if (this.
|
|
1344
|
-
|
|
1341
|
+
if (this.statusCache) {
|
|
1342
|
+
if (KoalaApiRequesterCache.hasCache(url)) {
|
|
1343
|
+
return KoalaApiRequesterCache.getCacheAsObservable(url);
|
|
1344
|
+
}
|
|
1345
|
+
KoalaApiRequesterCache.createCache(url);
|
|
1345
1346
|
}
|
|
1346
|
-
KoalaApiRequesterCache.createCache(url);
|
|
1347
1347
|
return this.koalaService
|
|
1348
1348
|
.request(method, url, data)
|
|
1349
1349
|
.pipe(map(response => {
|
|
1350
|
-
if (this.
|
|
1350
|
+
if (this.statusCache)
|
|
1351
1351
|
KoalaApiRequesterCache.setDataInCache(url, response);
|
|
1352
1352
|
return response;
|
|
1353
1353
|
}));
|
|
1354
1354
|
}
|
|
1355
|
+
enableCache() {
|
|
1356
|
+
this.statusCache = true;
|
|
1357
|
+
}
|
|
1358
|
+
disableCache() {
|
|
1359
|
+
this.statusCache = false;
|
|
1360
|
+
}
|
|
1355
1361
|
}
|
|
1356
1362
|
|
|
1357
1363
|
class KoalaRequestService {
|
|
@@ -1394,12 +1400,12 @@ class KoalaRequestService {
|
|
|
1394
1400
|
});
|
|
1395
1401
|
}
|
|
1396
1402
|
}
|
|
1397
|
-
KoalaRequestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1398
|
-
KoalaRequestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1399
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1403
|
+
KoalaRequestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaRequestService, deps: [{ token: i1$2.KoalaAlertService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1404
|
+
KoalaRequestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaRequestService, providedIn: "any" });
|
|
1405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: KoalaRequestService, decorators: [{
|
|
1400
1406
|
type: Injectable,
|
|
1401
1407
|
args: [{ providedIn: "any" }]
|
|
1402
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1408
|
+
}], ctorParameters: function () { return [{ type: i1$2.KoalaAlertService }]; } });
|
|
1403
1409
|
|
|
1404
1410
|
class NgxKoalaModule {
|
|
1405
1411
|
static forRoot(environment) {
|
|
@@ -1412,20 +1418,18 @@ class NgxKoalaModule {
|
|
|
1412
1418
|
};
|
|
1413
1419
|
}
|
|
1414
1420
|
}
|
|
1415
|
-
NgxKoalaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1416
|
-
NgxKoalaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
1421
|
+
NgxKoalaModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NgxKoalaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1422
|
+
NgxKoalaModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.1.3", ngImport: i0, type: NgxKoalaModule, imports: [CommonModule,
|
|
1417
1423
|
HttpClientModule,
|
|
1418
1424
|
KoalaPageModule], exports: [HttpClientModule,
|
|
1419
1425
|
KoalaPageModule] });
|
|
1420
|
-
NgxKoalaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1426
|
+
NgxKoalaModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NgxKoalaModule, providers: [
|
|
1421
1427
|
KoalaOAuth2Service
|
|
1422
|
-
], imports: [
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
KoalaPageModule
|
|
1426
|
-
], HttpClientModule,
|
|
1428
|
+
], imports: [CommonModule,
|
|
1429
|
+
HttpClientModule,
|
|
1430
|
+
KoalaPageModule, HttpClientModule,
|
|
1427
1431
|
KoalaPageModule] });
|
|
1428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1432
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.1.3", ngImport: i0, type: NgxKoalaModule, decorators: [{
|
|
1429
1433
|
type: NgModule,
|
|
1430
1434
|
args: [{
|
|
1431
1435
|
imports: [
|