info-library 2.15.1-beta → 3.0.0-beta
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/controls/alert/alert.component.d.ts +7 -7
- package/controls/autocomplete/autocomplete.component.d.ts +52 -51
- package/controls/big-checkbox/big-checkbox.component.d.ts +41 -41
- package/controls/card/card.component.d.ts +16 -16
- package/controls/card-menu/card-menu.component.d.ts +23 -23
- package/controls/checkbox/checkbox.component.d.ts +27 -27
- package/controls/chips/chips.component.d.ts +23 -23
- package/controls/date/date.component.d.ts +38 -37
- package/controls/date-month/date-month.component.d.ts +40 -39
- package/controls/editor/editor.component.d.ts +40 -40
- package/controls/grid/grid.component.d.ts +172 -172
- package/controls/input/input.component.d.ts +47 -37
- package/controls/input-list/input-list.component.d.ts +29 -29
- package/controls/list-checkbox/list-checkbox.component.d.ts +26 -26
- package/controls/message/message.component.d.ts +10 -10
- package/controls/multi-select/multi-select.component.d.ts +39 -37
- package/controls/paginator/paginator.component.d.ts +25 -25
- package/controls/select/select.component.d.ts +42 -41
- package/controls/timeline/timeline.component.d.ts +17 -17
- package/directives/mask.directive.d.ts +24 -24
- package/directives/unmask.directive.d.ts +12 -11
- package/enum/dialog-buttons.enum.d.ts +7 -7
- package/enum/index.d.ts +3 -3
- package/enum/modal-action.enum.d.ts +10 -10
- package/enum/page-action.enum.d.ts +8 -8
- package/esm2022/controls/alert/alert.component.mjs +72 -0
- package/esm2022/controls/autocomplete/autocomplete.component.mjs +265 -0
- package/esm2022/controls/big-checkbox/big-checkbox.component.mjs +300 -0
- package/esm2022/controls/card/card.component.mjs +83 -0
- package/esm2022/controls/card-menu/card-menu.component.mjs +143 -0
- package/esm2022/controls/checkbox/checkbox.component.mjs +93 -0
- package/esm2022/controls/chips/chips.component.mjs +114 -0
- package/esm2022/controls/date/date.component.mjs +173 -0
- package/esm2022/controls/date-month/date-month.component.mjs +181 -0
- package/esm2022/controls/editor/editor.component.mjs +139 -0
- package/esm2022/controls/grid/grid.component.mjs +1818 -0
- package/esm2022/controls/input/input.component.mjs +389 -0
- package/esm2022/controls/input-list/input-list.component.mjs +259 -0
- package/{esm2020 → esm2022}/controls/list-checkbox/list-checkbox.component.mjs +242 -238
- package/esm2022/controls/message/message.component.mjs +48 -0
- package/esm2022/controls/multi-select/multi-select.component.mjs +174 -0
- package/esm2022/controls/paginator/paginator.component.mjs +177 -0
- package/esm2022/controls/select/select.component.mjs +189 -0
- package/esm2022/controls/timeline/timeline.component.mjs +116 -0
- package/esm2022/directives/mask.directive.mjs +134 -0
- package/esm2022/directives/unmask.directive.mjs +35 -0
- package/{esm2020 → esm2022}/enum/dialog-buttons.enum.mjs +8 -8
- package/{esm2020 → esm2022}/enum/index.mjs +3 -3
- package/{esm2020 → esm2022}/enum/modal-action.enum.mjs +11 -11
- package/{esm2020 → esm2022}/enum/page-action.enum.mjs +9 -9
- package/{esm2020 → esm2022}/global-config.mjs +3 -3
- package/{esm2020 → esm2022}/info-library.mjs +4 -4
- package/esm2022/info-library.module.mjs +283 -0
- package/esm2022/layouts/dialog/dialog.component.mjs +192 -0
- package/esm2022/layouts/filter/filter.component.mjs +179 -0
- package/esm2022/layouts/loading/loading.component.mjs +40 -0
- package/esm2022/layouts/main/main.component.mjs +305 -0
- package/esm2022/layouts/modal/modal.component.mjs +273 -0
- package/esm2022/layouts/pagebar/pagebar.component.mjs +432 -0
- package/esm2022/layouts/sidebar/sidebar.component.mjs +447 -0
- package/esm2022/layouts/topbar/topbar.component.mjs +1032 -0
- package/esm2022/layouts/topmenu/topmenu.component.mjs +173 -0
- package/esm2022/model/app-config.model.mjs +14 -0
- package/esm2022/model/data-access.model.mjs +37 -0
- package/esm2022/model/dialog-result.model.mjs +9 -0
- package/esm2022/model/dialog.model.mjs +15 -0
- package/esm2022/model/form-prop.model.mjs +37 -0
- package/esm2022/model/grid-button.model.mjs +26 -0
- package/{esm2020 → esm2022}/model/index.mjs +14 -14
- package/esm2022/model/last-search.model.mjs +7 -0
- package/esm2022/model/login.model.mjs +11 -0
- package/esm2022/model/method-grid-button.model.mjs +11 -0
- package/esm2022/model/notification.model.mjs +13 -0
- package/{esm2020 → esm2022}/model/pagebar-buttons.model.mjs +15 -15
- package/esm2022/model/permission.model.mjs +6 -0
- package/esm2022/model/platform.model.mjs +20 -0
- package/esm2022/model/session.model.mjs +27 -0
- package/{esm2020 → esm2022}/pipe/index.mjs +2 -2
- package/esm2022/pipe/mask.pipe.mjs +38 -0
- package/esm2022/pipe/translate.pipe.mjs +27 -0
- package/{esm2020 → esm2022}/public_api.mjs +37 -36
- package/esm2022/service/authentication.service.mjs +411 -0
- package/esm2022/service/configuration.service.mjs +90 -0
- package/esm2022/service/data.service.mjs +129 -0
- package/{esm2020 → esm2022}/service/index.mjs +5 -5
- package/esm2022/service/theme.service.mjs +89 -0
- package/esm2022/service/translate.service.mjs +57 -0
- package/esm2022/utils/utilities.mjs +189 -0
- package/fesm2022/info-library.mjs +9364 -0
- package/fesm2022/info-library.mjs.map +1 -0
- package/global-config.d.ts +3 -3
- package/index.d.ts +5 -5
- package/info-library-3.0.0-beta.tgz +0 -0
- package/info-library.module.d.ts +61 -60
- package/layouts/dialog/dialog.component.d.ts +29 -29
- package/layouts/filter/filter.component.d.ts +24 -0
- package/layouts/loading/loading.component.d.ts +8 -8
- package/layouts/main/main.component.d.ts +60 -56
- package/layouts/modal/modal.component.d.ts +40 -39
- package/layouts/pagebar/pagebar.component.d.ts +45 -45
- package/layouts/sidebar/sidebar.component.d.ts +40 -40
- package/layouts/topbar/topbar.component.d.ts +69 -66
- package/layouts/topmenu/topmenu.component.d.ts +34 -34
- package/model/app-config.model.d.ts +13 -11
- package/model/data-access.model.d.ts +12 -12
- package/model/dialog-result.model.d.ts +6 -6
- package/model/dialog.model.d.ts +14 -14
- package/model/form-prop.model.d.ts +12 -12
- package/model/grid-button.model.d.ts +18 -18
- package/model/index.d.ts +14 -14
- package/model/last-search.model.d.ts +6 -6
- package/model/login.model.d.ts +6 -6
- package/model/method-grid-button.model.d.ts +6 -6
- package/model/notification.model.d.ts +12 -12
- package/model/pagebar-buttons.model.d.ts +10 -10
- package/model/permission.model.d.ts +5 -5
- package/model/platform.model.d.ts +16 -16
- package/model/session.model.d.ts +27 -22
- package/package.json +5 -11
- package/pipe/index.d.ts +2 -2
- package/pipe/mask.pipe.d.ts +8 -8
- package/pipe/translate.pipe.d.ts +10 -10
- package/public_api.d.ts +34 -33
- package/service/authentication.service.d.ts +63 -61
- package/service/configuration.service.d.ts +17 -14
- package/service/data.service.d.ts +41 -39
- package/service/index.d.ts +5 -5
- package/service/theme.service.d.ts +16 -16
- package/service/translate.service.d.ts +16 -16
- package/utils/utilities.d.ts +38 -27
- package/esm2020/controls/alert/alert.component.mjs +0 -74
- package/esm2020/controls/autocomplete/autocomplete.component.mjs +0 -258
- package/esm2020/controls/big-checkbox/big-checkbox.component.mjs +0 -298
- package/esm2020/controls/card/card.component.mjs +0 -77
- package/esm2020/controls/card-menu/card-menu.component.mjs +0 -145
- package/esm2020/controls/checkbox/checkbox.component.mjs +0 -93
- package/esm2020/controls/chips/chips.component.mjs +0 -113
- package/esm2020/controls/date/date.component.mjs +0 -141
- package/esm2020/controls/date-month/date-month.component.mjs +0 -148
- package/esm2020/controls/editor/editor.component.mjs +0 -135
- package/esm2020/controls/grid/grid.component.mjs +0 -1800
- package/esm2020/controls/input/input.component.mjs +0 -314
- package/esm2020/controls/input-list/input-list.component.mjs +0 -258
- package/esm2020/controls/message/message.component.mjs +0 -50
- package/esm2020/controls/multi-select/multi-select.component.mjs +0 -161
- package/esm2020/controls/paginator/paginator.component.mjs +0 -178
- package/esm2020/controls/select/select.component.mjs +0 -180
- package/esm2020/controls/timeline/timeline.component.mjs +0 -117
- package/esm2020/directives/mask.directive.mjs +0 -125
- package/esm2020/directives/unmask.directive.mjs +0 -28
- package/esm2020/info-library.module.mjs +0 -278
- package/esm2020/layouts/dialog/dialog.component.mjs +0 -188
- package/esm2020/layouts/loading/loading.component.mjs +0 -42
- package/esm2020/layouts/main/main.component.mjs +0 -258
- package/esm2020/layouts/modal/modal.component.mjs +0 -258
- package/esm2020/layouts/pagebar/pagebar.component.mjs +0 -404
- package/esm2020/layouts/sidebar/sidebar.component.mjs +0 -395
- package/esm2020/layouts/topbar/topbar.component.mjs +0 -868
- package/esm2020/layouts/topmenu/topmenu.component.mjs +0 -165
- package/esm2020/model/app-config.model.mjs +0 -14
- package/esm2020/model/data-access.model.mjs +0 -35
- package/esm2020/model/dialog-result.model.mjs +0 -8
- package/esm2020/model/dialog.model.mjs +0 -16
- package/esm2020/model/form-prop.model.mjs +0 -35
- package/esm2020/model/grid-button.model.mjs +0 -21
- package/esm2020/model/last-search.model.mjs +0 -9
- package/esm2020/model/login.model.mjs +0 -9
- package/esm2020/model/method-grid-button.model.mjs +0 -9
- package/esm2020/model/notification.model.mjs +0 -9
- package/esm2020/model/permission.model.mjs +0 -3
- package/esm2020/model/platform.model.mjs +0 -21
- package/esm2020/model/session.model.mjs +0 -8
- package/esm2020/pipe/mask.pipe.mjs +0 -34
- package/esm2020/pipe/translate.pipe.mjs +0 -26
- package/esm2020/service/authentication.service.mjs +0 -358
- package/esm2020/service/configuration.service.mjs +0 -59
- package/esm2020/service/data.service.mjs +0 -112
- package/esm2020/service/theme.service.mjs +0 -79
- package/esm2020/service/translate.service.mjs +0 -53
- package/esm2020/utils/utilities.mjs +0 -142
- package/fesm2015/info-library.mjs +0 -9312
- package/fesm2015/info-library.mjs.map +0 -1
- package/fesm2020/info-library.mjs +0 -8462
- package/fesm2020/info-library.mjs.map +0 -1
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { Component, Input, Output, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@angular/material/icon";
|
|
5
|
-
import * as i3 from "@angular/material/button";
|
|
6
|
-
import * as i4 from "@angular/material/tooltip";
|
|
7
|
-
import * as i5 from "../../pipe/translate.pipe";
|
|
8
|
-
function InfoPaginatorComponent_div_0_label_3_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
i0.ɵɵelementStart(0, "label", 9);
|
|
10
|
-
i0.ɵɵtext(1);
|
|
11
|
-
i0.ɵɵelementEnd();
|
|
12
|
-
} if (rf & 2) {
|
|
13
|
-
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
14
|
-
i0.ɵɵadvance(1);
|
|
15
|
-
i0.ɵɵtextInterpolate(ctx_r1.totalDescription);
|
|
16
|
-
} }
|
|
17
|
-
const _c0 = function (a0) { return { "active": a0 }; };
|
|
18
|
-
function InfoPaginatorComponent_div_0_li_16_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
20
|
-
i0.ɵɵelementStart(0, "li")(1, "button", 10);
|
|
21
|
-
i0.ɵɵlistener("click", function InfoPaginatorComponent_div_0_li_16_Template_button_click_1_listener() { const restoredCtx = i0.ɵɵrestoreView(_r5); const page_r3 = restoredCtx.$implicit; const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.goto(page_r3)); });
|
|
22
|
-
i0.ɵɵtext(2);
|
|
23
|
-
i0.ɵɵelementEnd()();
|
|
24
|
-
} if (rf & 2) {
|
|
25
|
-
const page_r3 = ctx.$implicit;
|
|
26
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
27
|
-
i0.ɵɵadvance(1);
|
|
28
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c0, page_r3 === ctx_r2.indexActive));
|
|
29
|
-
i0.ɵɵadvance(1);
|
|
30
|
-
i0.ɵɵtextInterpolate(page_r3 + 1);
|
|
31
|
-
} }
|
|
32
|
-
const _c1 = function (a0, a1) { return { "descriptions-min": a0, "descriptions": a1 }; };
|
|
33
|
-
const _c2 = function (a0, a1) { return { "pages-min": a0, "pages": a1 }; };
|
|
34
|
-
function InfoPaginatorComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
const _r7 = i0.ɵɵgetCurrentView();
|
|
36
|
-
i0.ɵɵelementStart(0, "div", 1)(1, "div", 2)(2, "div", 3);
|
|
37
|
-
i0.ɵɵtemplate(3, InfoPaginatorComponent_div_0_label_3_Template, 2, 1, "label", 4);
|
|
38
|
-
i0.ɵɵelementEnd();
|
|
39
|
-
i0.ɵɵelementStart(4, "div", 5)(5, "ul")(6, "li", 6)(7, "button", 7);
|
|
40
|
-
i0.ɵɵlistener("click", function InfoPaginatorComponent_div_0_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.goto(0)); });
|
|
41
|
-
i0.ɵɵpipe(8, "translate");
|
|
42
|
-
i0.ɵɵelementStart(9, "mat-icon");
|
|
43
|
-
i0.ɵɵtext(10, "first_page");
|
|
44
|
-
i0.ɵɵelementEnd()()();
|
|
45
|
-
i0.ɵɵelementStart(11, "li", 6)(12, "button", 7);
|
|
46
|
-
i0.ɵɵlistener("click", function InfoPaginatorComponent_div_0_Template_button_click_12_listener() { i0.ɵɵrestoreView(_r7); const ctx_r8 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r8.previous()); });
|
|
47
|
-
i0.ɵɵpipe(13, "translate");
|
|
48
|
-
i0.ɵɵelementStart(14, "mat-icon");
|
|
49
|
-
i0.ɵɵtext(15, "chevron_left");
|
|
50
|
-
i0.ɵɵelementEnd()()();
|
|
51
|
-
i0.ɵɵtemplate(16, InfoPaginatorComponent_div_0_li_16_Template, 3, 4, "li", 8);
|
|
52
|
-
i0.ɵɵelementStart(17, "li", 6)(18, "button", 7);
|
|
53
|
-
i0.ɵɵlistener("click", function InfoPaginatorComponent_div_0_Template_button_click_18_listener() { i0.ɵɵrestoreView(_r7); const ctx_r9 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r9.next()); });
|
|
54
|
-
i0.ɵɵpipe(19, "translate");
|
|
55
|
-
i0.ɵɵelementStart(20, "mat-icon");
|
|
56
|
-
i0.ɵɵtext(21, "chevron_right");
|
|
57
|
-
i0.ɵɵelementEnd()()();
|
|
58
|
-
i0.ɵɵelementStart(22, "li", 6)(23, "button", 7);
|
|
59
|
-
i0.ɵɵlistener("click", function InfoPaginatorComponent_div_0_Template_button_click_23_listener() { i0.ɵɵrestoreView(_r7); const ctx_r10 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r10.goto(ctx_r10.numberPages - 1)); });
|
|
60
|
-
i0.ɵɵpipe(24, "translate");
|
|
61
|
-
i0.ɵɵelementStart(25, "mat-icon");
|
|
62
|
-
i0.ɵɵtext(26, "last_page");
|
|
63
|
-
i0.ɵɵelementEnd()()()()()()();
|
|
64
|
-
} if (rf & 2) {
|
|
65
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
66
|
-
i0.ɵɵadvance(2);
|
|
67
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(20, _c1, ctx_r0.min == true, ctx_r0.min != true));
|
|
68
|
-
i0.ɵɵadvance(1);
|
|
69
|
-
i0.ɵɵproperty("ngIf", ctx_r0.totalDescription != null);
|
|
70
|
-
i0.ɵɵadvance(1);
|
|
71
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(23, _c2, ctx_r0.min == true, ctx_r0.min != true));
|
|
72
|
-
i0.ɵɵadvance(3);
|
|
73
|
-
i0.ɵɵproperty("disabled", ctx_r0.index == 0)("matTooltip", i0.ɵɵpipeBind1(8, 12, "Primeira"));
|
|
74
|
-
i0.ɵɵadvance(5);
|
|
75
|
-
i0.ɵɵproperty("disabled", ctx_r0.index == 0)("matTooltip", i0.ɵɵpipeBind1(13, 14, "Anterior"));
|
|
76
|
-
i0.ɵɵadvance(4);
|
|
77
|
-
i0.ɵɵproperty("ngForOf", ctx_r0.pages);
|
|
78
|
-
i0.ɵɵadvance(2);
|
|
79
|
-
i0.ɵɵproperty("disabled", ctx_r0.index >= ctx_r0.numberPages - 1)("matTooltip", i0.ɵɵpipeBind1(19, 16, "Proxima"));
|
|
80
|
-
i0.ɵɵadvance(5);
|
|
81
|
-
i0.ɵɵproperty("disabled", ctx_r0.index >= ctx_r0.numberPages - 1)("matTooltip", i0.ɵɵpipeBind1(24, 18, "Ultima"));
|
|
82
|
-
} }
|
|
83
|
-
export class InfoPaginatorComponent {
|
|
84
|
-
constructor() {
|
|
85
|
-
this.size = 5;
|
|
86
|
-
this.min = false;
|
|
87
|
-
this.show = false;
|
|
88
|
-
this.index = 0;
|
|
89
|
-
this.change = new EventEmitter();
|
|
90
|
-
this._total = 0;
|
|
91
|
-
this.indexActive = 0;
|
|
92
|
-
this.numberPages = 1;
|
|
93
|
-
this.pages = [];
|
|
94
|
-
this.totalDescription = '';
|
|
95
|
-
}
|
|
96
|
-
get total() {
|
|
97
|
-
return this._total;
|
|
98
|
-
}
|
|
99
|
-
set total(value) {
|
|
100
|
-
this._total = value;
|
|
101
|
-
this.initialize();
|
|
102
|
-
}
|
|
103
|
-
refresh(total) {
|
|
104
|
-
this.total = total;
|
|
105
|
-
}
|
|
106
|
-
initialize() {
|
|
107
|
-
this.pages = [];
|
|
108
|
-
this.indexActive = this.index;
|
|
109
|
-
this.numberPages = Math.ceil(this.total / this.size);
|
|
110
|
-
if (this.total > this.size) {
|
|
111
|
-
let i = (this.index > 2) ? (this.index - 2) : 0;
|
|
112
|
-
let x = this.numberPages;
|
|
113
|
-
if ((this.index + 2) < this.numberPages) {
|
|
114
|
-
let aux = 3;
|
|
115
|
-
if (this.index < 2)
|
|
116
|
-
aux = (5 - this.index);
|
|
117
|
-
x = (this.index + aux);
|
|
118
|
-
}
|
|
119
|
-
else if ((this.index - 2) > 0)
|
|
120
|
-
i = this.index - (5 - (this.numberPages - this.index));
|
|
121
|
-
if (i < 0)
|
|
122
|
-
i = 0;
|
|
123
|
-
if (x > this.numberPages)
|
|
124
|
-
x = this.numberPages;
|
|
125
|
-
for (i; i < x; i++)
|
|
126
|
-
this.pages.push(i);
|
|
127
|
-
}
|
|
128
|
-
else {
|
|
129
|
-
this.pages.push(0);
|
|
130
|
-
}
|
|
131
|
-
this.setDescription();
|
|
132
|
-
this.show = true;
|
|
133
|
-
}
|
|
134
|
-
goto(index) {
|
|
135
|
-
if (this.index == index)
|
|
136
|
-
return;
|
|
137
|
-
this.index = index;
|
|
138
|
-
this.change.emit(this.index);
|
|
139
|
-
}
|
|
140
|
-
next() {
|
|
141
|
-
this.goto(this.index + 1);
|
|
142
|
-
}
|
|
143
|
-
previous() {
|
|
144
|
-
this.goto(this.index - 1);
|
|
145
|
-
}
|
|
146
|
-
setDescription() {
|
|
147
|
-
let currentInit = (this.size * this.index) + 1;
|
|
148
|
-
let currentEnd = this.size * (this.index + 1);
|
|
149
|
-
if (currentEnd > this.total)
|
|
150
|
-
currentEnd = this.total;
|
|
151
|
-
if (currentInit == null || currentEnd == null)
|
|
152
|
-
return;
|
|
153
|
-
this.totalDescription = currentInit.toLocaleString('pt-BR') + ' - ' + currentEnd.toLocaleString('pt-BR') + ' de ' + this.total.toLocaleString('pt-BR');
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
/** @nocollapse */ InfoPaginatorComponent.ɵfac = function InfoPaginatorComponent_Factory(t) { return new (t || InfoPaginatorComponent)(); };
|
|
157
|
-
/** @nocollapse */ InfoPaginatorComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: InfoPaginatorComponent, selectors: [["info-paginator"]], inputs: { size: "size", min: "min", show: "show", total: "total" }, outputs: { index: "index", change: "change" }, decls: 1, vars: 1, consts: [["class", "info-paginator", 4, "ngIf"], [1, "info-paginator"], [1, "row"], [1, "col-md-2", 3, "ngClass"], ["class", "total", 4, "ngIf"], [1, "col-md", "align-right", 3, "ngClass"], [1, "icon"], ["mat-button", "", 3, "disabled", "matTooltip", "click"], [4, "ngFor", "ngForOf"], [1, "total"], ["mat-button", "", 3, "ngClass", "click"]], template: function InfoPaginatorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
158
|
-
i0.ɵɵtemplate(0, InfoPaginatorComponent_div_0_Template, 27, 26, "div", 0);
|
|
159
|
-
} if (rf & 2) {
|
|
160
|
-
i0.ɵɵproperty("ngIf", ctx.show);
|
|
161
|
-
} }, dependencies: [i1.NgClass, i1.NgForOf, i1.NgIf, i2.MatIcon, i3.MatButton, i4.MatTooltip, i5.InfoTranslatePipe], styles: ["[_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] .descriptions[_ngcontent-%COMP%], [_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] .pages[_ngcontent-%COMP%]{padding-right:10px!important;padding-left:10px!important}[_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] .descriptions-min[_ngcontent-%COMP%], [_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] .pages-min[_ngcontent-%COMP%]{padding-right:0!important;padding-left:0!important}[_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0}[_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline-block;font-size:14px}[_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{min-width:34px;line-height:25px;padding:0;margin:0 2px}[_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-button.active[_ngcontent-%COMP%]{font-weight:700}[_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:20px}[_nghost-%COMP%] > .info-paginator[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] li.icon[_ngcontent-%COMP%] .mat-button[_ngcontent-%COMP%]{padding:0 2px}"] });
|
|
162
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoPaginatorComponent, [{
|
|
163
|
-
type: Component,
|
|
164
|
-
args: [{ selector: 'info-paginator', template: "<div class=\"info-paginator\" *ngIf=\"show\" >\r\n <div class=\"row\">\r\n <div class=\"col-md-2\" [ngClass]=\"{ 'descriptions-min': min == true, 'descriptions': min != true }\">\r\n <label class=\"total\" *ngIf=\"totalDescription != null\">{{totalDescription}}</label>\r\n </div>\r\n <div class=\"col-md align-right\" [ngClass]=\"{ 'pages-min': min == true, 'pages': min != true }\">\r\n <ul>\r\n <li class=\"icon\">\r\n <button mat-button (click)=\"goto(0)\" [disabled]=\"index == 0\" [matTooltip]=\"'Primeira' | translate\" >\r\n <mat-icon>first_page</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li class=\"icon\">\r\n <button mat-button (click)=\"previous()\" [disabled]=\"index == 0\" [matTooltip]=\"'Anterior' | translate\" >\r\n <mat-icon>chevron_left</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li *ngFor=\"let page of pages\" >\r\n <button mat-button (click)=\"goto(page)\" [ngClass]=\"{\r\n 'active': page === indexActive\r\n }\" >{{page + 1}}</button>\r\n </li>\r\n\r\n <li class=\"icon\">\r\n <button mat-button (click)=\"next()\" [disabled]=\"index >= (numberPages - 1)\" [matTooltip]=\"'Proxima' | translate\" >\r\n <mat-icon>chevron_right</mat-icon>\r\n </button>\r\n </li>\r\n\r\n <li class=\"icon\">\r\n <button mat-button (click)=\"goto(numberPages - 1)\" [disabled]=\"index >= (numberPages - 1)\" [matTooltip]=\"'Ultima' | translate\" >\r\n <mat-icon>last_page</mat-icon>\r\n </button>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</div>", styles: [":host>.info-paginator .descriptions,:host>.info-paginator .pages{padding-right:10px!important;padding-left:10px!important}:host>.info-paginator .descriptions-min,:host>.info-paginator .pages-min{padding-right:0!important;padding-left:0!important}:host>.info-paginator ul{list-style:none;margin:0;padding:0}:host>.info-paginator ul li{display:inline-block;font-size:14px}:host>.info-paginator ul li .mat-button{min-width:34px;line-height:25px;padding:0;margin:0 2px}:host>.info-paginator ul li .mat-button.active{font-weight:700}:host>.info-paginator ul li .mat-button .mat-icon{font-size:20px}:host>.info-paginator ul li.icon .mat-button{padding:0 2px}\n"] }]
|
|
165
|
-
}], null, { size: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}], min: [{
|
|
168
|
-
type: Input
|
|
169
|
-
}], show: [{
|
|
170
|
-
type: Input
|
|
171
|
-
}], index: [{
|
|
172
|
-
type: Output
|
|
173
|
-
}], change: [{
|
|
174
|
-
type: Output
|
|
175
|
-
}], total: [{
|
|
176
|
-
type: Input
|
|
177
|
-
}] }); })();
|
|
178
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGFnaW5hdG9yLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2luZm8tbGlicmFyeS9zcmMvY29udHJvbHMvcGFnaW5hdG9yL3BhZ2luYXRvci5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pbmZvLWxpYnJhcnkvc3JjL2NvbnRyb2xzL3BhZ2luYXRvci9wYWdpbmF0b3IuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBRSxLQUFLLEVBQUUsTUFBTSxFQUFFLFlBQVksRUFBRSxNQUFNLGVBQWUsQ0FBQzs7Ozs7Ozs7SUNHM0QsZ0NBQXNEO0lBQUEsWUFBb0I7SUFBQSxpQkFBUTs7O0lBQTVCLGVBQW9CO0lBQXBCLDZDQUFvQjs7Ozs7SUFnQnRFLDBCQUFnQyxpQkFBQTtJQUNULHFPQUFTLGVBQUEsb0JBQVUsQ0FBQSxJQUFD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B0aGlzLm51bWJlclBhZ2VzKXtcclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICAgICAgbGV0IGF1eCA9IDM7XHJcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5pbmRleCA8IDIpXHJcbiAgICAgICAgICAgICAgICAgICAgYXV4ID0gKDUgLSB0aGlzLmluZGV4KTtcclxuXHJcbiAgICAgICAgICAgICAgICB4ID0gKHRoaXMuaW5kZXggKyBhdXgpO1xyXG4gICAgICAgICAgICB9XHJcbiAgICAgICAgICAgIGVsc2UgaWYgKCh0aGlzLmluZGV4IC0gMikgPiAwKVxyXG4gICAgICAgICAgICAgICAgaSA9IHRoaXMuaW5kZXggLSAoNSAtICh0aGlzLm51bWJlclBhZ2VzIC0gdGhpcy5pbmRleCkpO1xyXG4gICAgICAgICAgICBcclxuICAgICAgICAgICAgaWYgKGkgPCAwKVxyXG4gICAgICAgICAgICAgICAgaSA9IDA7XHJcblxyXG4gICAgICAgICAgICBpZiAoeCA+IHRoaXMubnVtYmVyUGFnZXMpXHJcbiAgICAgICAgICAgICAgICB4ID0gdGhpcy5udW1iZXJQYWdlcztcclxuICAgICAgICAgICAgICAgIFxyXG4gICAgICAgICAgICBmb3IgKGk7IGkgPCB4OyBpKyspXHJcbiAgICAgICAgICAgICAgICB0aGlzLnBhZ2VzLnB1c2goaSk7XHJcblxyXG4gICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgIHRoaXMucGFnZXMucHVzaCgwKTtcclxuICAgICAgICB9XHJcbiAgICAgICAgXHJcbiAgICAgICAgdGhpcy5zZXREZXNjcmlwdGlvbigpO1xyXG4gICAgICAgIHRoaXMuc2hvdyA9IHRydWU7XHJcbiAgICB9XHJcblxyXG4gICAgZ290byhpbmRleDogbnVtYmVyKSB7XHJcbiAgICAgICAgXHJcbiAgICAgICAgaWYgKHRoaXMuaW5kZXggPT0gaW5kZXgpXHJcbiAgICAgICAgICAgIHJldHVybjtcclxuXHJcbiAgICAgICAgdGhpcy5pbmRleCA9IGluZGV4O1xyXG4gICAgICAgIHRoaXMuY2hhbmdlLmVtaXQodGhpcy5pbmRleCk7XHJcbiAgICB9XHJcblxyXG4gICAgbmV4dCgpIHtcclxuICAgICAgICB0aGlzLmdvdG8odGhpcy5pbmRleCArIDEpO1xyXG4gICAgfVxyXG5cclxuICAgIHByZXZpb3VzKCkge1xyXG4gICAgICAgIHRoaXMuZ290byh0aGlzLmluZGV4IC0gMSk7XHJcbiAgICB9XHJcblxyXG4gICAgc2V0RGVzY3JpcHRpb24oKXtcclxuICAgICAgICBsZXQgY3VycmVudEluaXQgPSAodGhpcy5zaXplICogdGhpcy5pbmRleCkgKyAxO1xyXG4gICAgICAgIGxldCBjdXJyZW50RW5kID0gdGhpcy5zaXplICogKHRoaXMuaW5kZXggKyAxKTtcclxuXHJcbiAgICAgICAgaWYgKGN1cnJlbnRFbmQgPiB0aGlzLnRvdGFsKVxyXG4gICAgICAgICAgICBjdXJyZW50RW5kID0gdGhpcy50b3RhbDtcclxuXHJcbiAgICAgICAgaWYgKGN1cnJlbnRJbml0ID09IG51bGwgfHwgY3VycmVudEVuZCA9PSBudWxsKSByZXR1cm47XHJcblxyXG4gICAgICAgIHRoaXMudG90YWxEZXNjcmlwdGlvbiA9IGN1cnJlbnRJbml0LnRvTG9jYWxlU3RyaW5nKCdwdC1CUicpICsgJyAtICcgKyBjdXJyZW50RW5kLnRvTG9jYWxlU3RyaW5nKCdwdC1CUicpICsgJyBkZSAnICsgdGhpcy50b3RhbC50b0xvY2FsZVN0cmluZygncHQtQlInKTtcclxuICAgIH1cclxufSIsIjxkaXYgY2xhc3M9XCJpbmZvLXBhZ2luYXRvclwiICpuZ0lmPVwic2hvd1wiID5cclxuICAgIDxkaXYgY2xhc3M9XCJyb3dcIj5cclxuICAgICAgICA8ZGl2IGNsYXNzPVwiY29sLW1kLTJcIiBbbmdDbGFzc109XCJ7ICdkZXNjcmlwdGlvbnMtbWluJzogbWluID09IHRydWUsICdkZXNjcmlwdGlvbnMnOiBtaW4gIT0gdHJ1ZSB9XCI+XHJcbiAgICAgICAgICAgIDxsYWJlbCBjbGFzcz1cInRvdGFsXCIgKm5nSWY9XCJ0b3RhbERlc2NyaXB0aW9uICE9IG51bGxcIj57e3RvdGFsRGVzY3JpcHRpb259fTwvbGFiZWw+XHJcbiAgICAgICAgPC9kaXY+XHJcbiAgICAgICAgPGRpdiBjbGFzcz1cImNvbC1tZCBhbGlnbi1yaWdodFwiIFtuZ0NsYXNzXT1cInsgJ3BhZ2VzLW1pbic6IG1pbiA9PSB0cnVlLCAncGFnZXMnOiBtaW4gIT0gdHJ1ZSB9XCI+XHJcbiAgICAgICAgICAgIDx1bD5cclxuICAgICAgICAgICAgICAgIDxsaSBjbGFzcz1cImljb25cIj5cclxuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIG1hdC1idXR0b24gKGNsaWNrKT1cImdvdG8oMClcIiBbZGlzYWJsZWRdPVwiaW5kZXggPT0gMFwiIFttYXRUb29sdGlwXT1cIidQcmltZWlyYScgfCB0cmFuc2xhdGVcIiA+XHJcbiAgICAgICAgICAgICAgICAgICAgICAgIDxtYXQtaWNvbj5maXJzdF9wYWdlPC9tYXQtaWNvbj5cclxuICAgICAgICAgICAgICAgICAgICA8L2J1dHRvbj5cclxuICAgICAgICAgICAgICAgIDwvbGk+XHJcblxyXG4gICAgICAgICAgICAgICAgPGxpIGNsYXNzPVwiaWNvblwiPlxyXG4gICAgICAgICAgICAgICAgICAgIDxidXR0b24gbWF0LWJ1dHRvbiAoY2xpY2spPVwicHJldmlvdXMoKVwiIFtkaXNhYmxlZF09XCJpbmRleCA9PSAwXCIgW21hdFRvb2x0aXBdPVwiJ0FudGVyaW9yJyB8IHRyYW5zbGF0ZVwiID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1pY29uPmNoZXZyb25fbGVmdDwvbWF0LWljb24+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgICA8L2xpPlxyXG5cclxuICAgICAgICAgICAgICAgIDxsaSAqbmdGb3I9XCJsZXQgcGFnZSBvZiBwYWdlc1wiID5cclxuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIG1hdC1idXR0b24gKGNsaWNrKT1cImdvdG8ocGFnZSlcIiBbbmdDbGFzc109XCJ7XHJcbiAgICAgICAgICAgICAgICAgICAgICAgICdhY3RpdmUnOiBwYWdlID09PSBpbmRleEFjdGl2ZVxyXG4gICAgICAgICAgICAgICAgICAgIH1cIiA+e3twYWdlICsgMX19PC9idXR0b24+XHJcbiAgICAgICAgICAgICAgICA8L2xpPlxyXG5cclxuICAgICAgICAgICAgICAgIDxsaSBjbGFzcz1cImljb25cIj5cclxuICAgICAgICAgICAgICAgICAgICA8YnV0dG9uIG1hdC1idXR0b24gKGNsaWNrKT1cIm5leHQoKVwiIFtkaXNhYmxlZF09XCJpbmRleCA+PSAobnVtYmVyUGFnZXMgLSAxKVwiIFttYXRUb29sdGlwXT1cIidQcm94aW1hJyB8IHRyYW5zbGF0ZVwiID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1pY29uPmNoZXZyb25fcmlnaHQ8L21hdC1pY29uPlxyXG4gICAgICAgICAgICAgICAgICAgIDwvYnV0dG9uPlxyXG4gICAgICAgICAgICAgICAgPC9saT5cclxuXHJcbiAgICAgICAgICAgICAgICA8bGkgY2xhc3M9XCJpY29uXCI+XHJcbiAgICAgICAgICAgICAgICAgICAgPGJ1dHRvbiBtYXQtYnV0dG9uIChjbGljayk9XCJnb3RvKG51bWJlclBhZ2VzIC0gMSlcIiBbZGlzYWJsZWRdPVwiaW5kZXggPj0gKG51bWJlclBhZ2VzIC0gMSlcIiBbbWF0VG9vbHRpcF09XCInVWx0aW1hJyB8IHRyYW5zbGF0ZVwiID5cclxuICAgICAgICAgICAgICAgICAgICAgICAgPG1hdC1pY29uPmxhc3RfcGFnZTwvbWF0LWljb24+XHJcbiAgICAgICAgICAgICAgICAgICAgPC9idXR0b24+XHJcbiAgICAgICAgICAgICAgICA8L2xpPlxyXG4gICAgICAgICAgICA8L3VsPlxyXG4gICAgICAgIDwvZGl2PlxyXG4gICAgPC9kaXY+XHJcbjwvZGl2PiJdfQ==
|
|
@@ -1,180 +0,0 @@
|
|
|
1
|
-
import { Component, Input, forwardRef, Output, EventEmitter } from "@angular/core";
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
3
|
-
import { InfoDataService } from "../../service/data.service";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../service/data.service";
|
|
6
|
-
import * as i2 from "@angular/common";
|
|
7
|
-
import * as i3 from "@angular/forms";
|
|
8
|
-
import * as i4 from "@angular/material/form-field";
|
|
9
|
-
import * as i5 from "@angular/material/select";
|
|
10
|
-
import * as i6 from "@angular/material/core";
|
|
11
|
-
import * as i7 from "@angular/material/progress-bar";
|
|
12
|
-
import * as i8 from "../../pipe/translate.pipe";
|
|
13
|
-
function InfoSelectComponent_mat_option_3_Template(rf, ctx) { if (rf & 1) {
|
|
14
|
-
i0.ɵɵelementStart(0, "mat-option", 5);
|
|
15
|
-
i0.ɵɵtext(1);
|
|
16
|
-
i0.ɵɵpipe(2, "translate");
|
|
17
|
-
i0.ɵɵelementEnd();
|
|
18
|
-
} if (rf & 2) {
|
|
19
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
20
|
-
i0.ɵɵproperty("value", ctx_r0.blankItem.Id);
|
|
21
|
-
i0.ɵɵadvance(1);
|
|
22
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(2, 2, ctx_r0.blankItem.Nome));
|
|
23
|
-
} }
|
|
24
|
-
function InfoSelectComponent_mat_option_4_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
-
i0.ɵɵelement(0, "mat-option", 6);
|
|
26
|
-
i0.ɵɵpipe(1, "translate");
|
|
27
|
-
} if (rf & 2) {
|
|
28
|
-
const i_r3 = ctx.$implicit;
|
|
29
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
30
|
-
i0.ɵɵproperty("value", i_r3.Id)("innerHTML", i0.ɵɵpipeBind2(1, 2, i_r3.Nome, ctx_r1.notranslate === null), i0.ɵɵsanitizeHtml);
|
|
31
|
-
} }
|
|
32
|
-
function InfoSelectComponent_mat_progress_bar_6_Template(rf, ctx) { if (rf & 1) {
|
|
33
|
-
i0.ɵɵelement(0, "mat-progress-bar", 7);
|
|
34
|
-
} }
|
|
35
|
-
export class InfoSelectComponent {
|
|
36
|
-
constructor(_dataAcessService) {
|
|
37
|
-
this._dataAcessService = _dataAcessService;
|
|
38
|
-
this.placeholder = '';
|
|
39
|
-
this.name = '';
|
|
40
|
-
this.required = false;
|
|
41
|
-
this.selectfirst = false;
|
|
42
|
-
this.disablednoregisters = false;
|
|
43
|
-
this.api = null;
|
|
44
|
-
this.method = 'getchavevalor';
|
|
45
|
-
this.blank = false;
|
|
46
|
-
this.blankItem = null;
|
|
47
|
-
this.loading = false;
|
|
48
|
-
this.disabled = false;
|
|
49
|
-
this.notranslate = null;
|
|
50
|
-
this.onselecteditem = new EventEmitter();
|
|
51
|
-
this.selectedValue = null;
|
|
52
|
-
this.translatValue = true;
|
|
53
|
-
this.initialized = false;
|
|
54
|
-
this._params = null;
|
|
55
|
-
this._data = [];
|
|
56
|
-
}
|
|
57
|
-
get params() {
|
|
58
|
-
return this._params;
|
|
59
|
-
}
|
|
60
|
-
set params(value) {
|
|
61
|
-
this._params = value;
|
|
62
|
-
if (this.initialized)
|
|
63
|
-
this.getData();
|
|
64
|
-
}
|
|
65
|
-
get data() {
|
|
66
|
-
return this._data;
|
|
67
|
-
}
|
|
68
|
-
set data(value) {
|
|
69
|
-
this._data = value;
|
|
70
|
-
if (this.selectfirst && this.data != null && this.data.length > 0 && !this.data.some(d => d.Id == this.selectedValue))
|
|
71
|
-
this.writeValue(this.data[0].Id);
|
|
72
|
-
if (this.disablednoregisters)
|
|
73
|
-
this.setDisabledState((this.data == null || this.data.length == 0));
|
|
74
|
-
}
|
|
75
|
-
ngOnInit() {
|
|
76
|
-
this.name += this.placeholder.replace(/ /g, '');
|
|
77
|
-
this.blank = (this.required !== '' && this.required !== 'true' && this.required !== true);
|
|
78
|
-
if (this.blankItem == null)
|
|
79
|
-
this.blankItem = { Id: null, Nome: '' };
|
|
80
|
-
this.getData();
|
|
81
|
-
}
|
|
82
|
-
writeValue(value) {
|
|
83
|
-
this.selectedValue = value;
|
|
84
|
-
this.onChangeValue();
|
|
85
|
-
}
|
|
86
|
-
getData() {
|
|
87
|
-
this.initialized = true;
|
|
88
|
-
if (this.api == null || (this.params != null && this.params.toLowerCase().indexOf('undefined') > -1))
|
|
89
|
-
return;
|
|
90
|
-
this.loading = true;
|
|
91
|
-
this.data = [];
|
|
92
|
-
this._dataAcessService.get(this.api, this.method, this.params).subscribe(r => {
|
|
93
|
-
if (r.success) {
|
|
94
|
-
this.data = r.data;
|
|
95
|
-
if (this.selectedValue)
|
|
96
|
-
this.onChangeValue();
|
|
97
|
-
}
|
|
98
|
-
this.loading = false;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
onChangeValue() {
|
|
102
|
-
if (this.onChange != null)
|
|
103
|
-
this.onChange(this.selectedValue);
|
|
104
|
-
if (this.onselecteditem != null)
|
|
105
|
-
this.onselecteditem.emit(this.data == null ? null : this.data.find(r => r.Id == this.selectedValue));
|
|
106
|
-
}
|
|
107
|
-
registerOnChange(fn) {
|
|
108
|
-
this.onChange = fn;
|
|
109
|
-
}
|
|
110
|
-
registerOnTouched(fn) {
|
|
111
|
-
this.onTouched = fn;
|
|
112
|
-
}
|
|
113
|
-
setDisabledState(isDisabled) {
|
|
114
|
-
this.disabled = this.disablednoregisters && (this.data == null || this.data.length == 0) ? true : isDisabled;
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
/** @nocollapse */ InfoSelectComponent.ɵfac = function InfoSelectComponent_Factory(t) { return new (t || InfoSelectComponent)(i0.ɵɵdirectiveInject(i1.InfoDataService)); };
|
|
118
|
-
/** @nocollapse */ InfoSelectComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: InfoSelectComponent, selectors: [["info-select"]], inputs: { placeholder: "placeholder", name: "name", required: "required", selectfirst: "selectfirst", disablednoregisters: "disablednoregisters", api: "api", method: "method", blank: "blank", blankItem: "blankItem", loading: "loading", disabled: "disabled", notranslate: "notranslate", params: "params", data: "data" }, outputs: { onselecteditem: "onselecteditem" }, features: [i0.ɵɵProvidersFeature([{
|
|
119
|
-
provide: NG_VALUE_ACCESSOR,
|
|
120
|
-
useExisting: forwardRef((() => InfoSelectComponent)),
|
|
121
|
-
multi: true
|
|
122
|
-
}])], decls: 7, vars: 9, consts: [[3, "placeholder", "ngModel", "disabled", "required", "ngModelChange", "selectionChange"], [3, "value", 4, "ngIf"], [3, "value", "innerHTML", 4, "ngFor", "ngForOf"], [1, "select-loading"], ["color", "primary", "mode", "indeterminate", 4, "ngIf"], [3, "value"], [3, "value", "innerHTML"], ["color", "primary", "mode", "indeterminate"]], template: function InfoSelectComponent_Template(rf, ctx) { if (rf & 1) {
|
|
123
|
-
i0.ɵɵelementStart(0, "mat-form-field")(1, "mat-select", 0);
|
|
124
|
-
i0.ɵɵlistener("ngModelChange", function InfoSelectComponent_Template_mat_select_ngModelChange_1_listener($event) { return ctx.selectedValue = $event; })("selectionChange", function InfoSelectComponent_Template_mat_select_selectionChange_1_listener() { return ctx.onChangeValue(); });
|
|
125
|
-
i0.ɵɵpipe(2, "translate");
|
|
126
|
-
i0.ɵɵtemplate(3, InfoSelectComponent_mat_option_3_Template, 3, 4, "mat-option", 1);
|
|
127
|
-
i0.ɵɵtemplate(4, InfoSelectComponent_mat_option_4_Template, 2, 5, "mat-option", 2);
|
|
128
|
-
i0.ɵɵelementEnd()();
|
|
129
|
-
i0.ɵɵelementStart(5, "section", 3);
|
|
130
|
-
i0.ɵɵtemplate(6, InfoSelectComponent_mat_progress_bar_6_Template, 1, 0, "mat-progress-bar", 4);
|
|
131
|
-
i0.ɵɵelementEnd();
|
|
132
|
-
} if (rf & 2) {
|
|
133
|
-
i0.ɵɵadvance(1);
|
|
134
|
-
i0.ɵɵproperty("placeholder", i0.ɵɵpipeBind1(2, 7, ctx.placeholder))("ngModel", ctx.selectedValue)("disabled", ctx.disabled || ctx.loading)("required", ctx.required);
|
|
135
|
-
i0.ɵɵadvance(2);
|
|
136
|
-
i0.ɵɵproperty("ngIf", ctx.blank);
|
|
137
|
-
i0.ɵɵadvance(1);
|
|
138
|
-
i0.ɵɵproperty("ngForOf", ctx.data);
|
|
139
|
-
i0.ɵɵadvance(2);
|
|
140
|
-
i0.ɵɵproperty("ngIf", ctx.loading);
|
|
141
|
-
} }, dependencies: [i2.NgForOf, i2.NgIf, i3.NgControlStatus, i3.RequiredValidator, i3.NgModel, i4.MatFormField, i5.MatSelect, i6.MatOption, i7.MatProgressBar, i8.InfoTranslatePipe], styles: ["[_nghost-%COMP%] .mat-select-trigger[_ngcontent-%COMP%]{height:19px}[_nghost-%COMP%] .mat-form-field-type-mat-select[_ngcontent-%COMP%] .mat-form-field-label[_ngcontent-%COMP%]{height:20px}[_nghost-%COMP%] .mat-option[_ngcontent-%COMP%]{height:unset;white-space:normal}[_nghost-%COMP%] .select-loading[_ngcontent-%COMP%]{position:relative;bottom:15px;opacity:.3;height:1px}[_nghost-%COMP%] .select-loading[_ngcontent-%COMP%] .mat-progress-bar[_ngcontent-%COMP%]{height:1px;margin:0}.min[_nghost-%COMP%] .mat-form-field[_ngcontent-%COMP%]{margin:0!important}"] });
|
|
142
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoSelectComponent, [{
|
|
143
|
-
type: Component,
|
|
144
|
-
args: [{ selector: 'info-select', providers: [{
|
|
145
|
-
provide: NG_VALUE_ACCESSOR,
|
|
146
|
-
useExisting: forwardRef((() => InfoSelectComponent)),
|
|
147
|
-
multi: true
|
|
148
|
-
}], template: "<mat-form-field>\r\n <mat-select [placeholder]=\"placeholder | translate\" [(ngModel)]=\"selectedValue\" (selectionChange)=\"onChangeValue()\" [disabled]=\"disabled || loading\" [required]=\"required\">\r\n <mat-option *ngIf=\"blank\" [value]=\"blankItem.Id\">{{ blankItem.Nome | translate }}</mat-option>\r\n <mat-option *ngFor=\"let i of data\" [value]=\"i.Id\" [innerHTML]=\"i.Nome | translate:(notranslate===null)\"></mat-option>\r\n </mat-select>\r\n</mat-form-field>\r\n\r\n<section class=\"select-loading\">\r\n <mat-progress-bar color=\"primary\" mode=\"indeterminate\" *ngIf=\"loading\" >\r\n </mat-progress-bar>\r\n</section>", styles: [":host .mat-select-trigger{height:19px}:host .mat-form-field-type-mat-select .mat-form-field-label{height:20px}:host .mat-option{height:unset;white-space:normal}:host .select-loading{position:relative;bottom:15px;opacity:.3;height:1px}:host .select-loading .mat-progress-bar{height:1px;margin:0}:host.min .mat-form-field{margin:0!important}\n"] }]
|
|
149
|
-
}], function () { return [{ type: i1.InfoDataService }]; }, { placeholder: [{
|
|
150
|
-
type: Input
|
|
151
|
-
}], name: [{
|
|
152
|
-
type: Input
|
|
153
|
-
}], required: [{
|
|
154
|
-
type: Input
|
|
155
|
-
}], selectfirst: [{
|
|
156
|
-
type: Input
|
|
157
|
-
}], disablednoregisters: [{
|
|
158
|
-
type: Input
|
|
159
|
-
}], api: [{
|
|
160
|
-
type: Input
|
|
161
|
-
}], method: [{
|
|
162
|
-
type: Input
|
|
163
|
-
}], blank: [{
|
|
164
|
-
type: Input
|
|
165
|
-
}], blankItem: [{
|
|
166
|
-
type: Input
|
|
167
|
-
}], loading: [{
|
|
168
|
-
type: Input
|
|
169
|
-
}], disabled: [{
|
|
170
|
-
type: Input
|
|
171
|
-
}], notranslate: [{
|
|
172
|
-
type: Input
|
|
173
|
-
}], onselecteditem: [{
|
|
174
|
-
type: Output
|
|
175
|
-
}], params: [{
|
|
176
|
-
type: Input
|
|
177
|
-
}], data: [{
|
|
178
|
-
type: Input
|
|
179
|
-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3QtbG9hZGluZ1wiPlxyXG4gICAgPG1hdC1wcm9ncmVzcy1iYXIgY29sb3I9XCJwcmltYXJ5XCIgbW9kZT1cImluZGV0ZXJtaW5hdGVcIiAqbmdJZj1cImxvYWRpbmdcIiA+XHJcbiAgICA8L21hdC1wcm9ncmVzcy1iYXI+XHJcbjwvc2VjdGlvbj4iXX0=
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { Component, Input, HostBinding } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "../../pipe/translate.pipe";
|
|
5
|
-
function InfoTimelineComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
-
i0.ɵɵelementStart(0, "div", 5)(1, "div", 6);
|
|
7
|
-
i0.ɵɵtext(2);
|
|
8
|
-
i0.ɵɵelementEnd()();
|
|
9
|
-
} if (rf & 2) {
|
|
10
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
11
|
-
i0.ɵɵadvance(2);
|
|
12
|
-
i0.ɵɵtextInterpolate(ctx_r0.label);
|
|
13
|
-
} }
|
|
14
|
-
function InfoTimelineComponent_div_4_h2_3_Template(rf, ctx) { if (rf & 1) {
|
|
15
|
-
i0.ɵɵelementStart(0, "h2");
|
|
16
|
-
i0.ɵɵtext(1);
|
|
17
|
-
i0.ɵɵelementEnd();
|
|
18
|
-
} if (rf & 2) {
|
|
19
|
-
const item_r2 = i0.ɵɵnextContext().$implicit;
|
|
20
|
-
i0.ɵɵadvance(1);
|
|
21
|
-
i0.ɵɵtextInterpolate(item_r2.Title);
|
|
22
|
-
} }
|
|
23
|
-
function InfoTimelineComponent_div_4_h3_6_Template(rf, ctx) { if (rf & 1) {
|
|
24
|
-
i0.ɵɵelementStart(0, "h3");
|
|
25
|
-
i0.ɵɵtext(1);
|
|
26
|
-
i0.ɵɵelementEnd();
|
|
27
|
-
} if (rf & 2) {
|
|
28
|
-
const item_r2 = i0.ɵɵnextContext().$implicit;
|
|
29
|
-
i0.ɵɵadvance(1);
|
|
30
|
-
i0.ɵɵtextInterpolate2("", item_r2.Date, " \u00E0s ", item_r2.Hour, "");
|
|
31
|
-
} }
|
|
32
|
-
const _c0 = function (a0) { return { "border-color": a0 }; };
|
|
33
|
-
function InfoTimelineComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
34
|
-
i0.ɵɵelementStart(0, "div", 7);
|
|
35
|
-
i0.ɵɵelement(1, "div", 8);
|
|
36
|
-
i0.ɵɵelementStart(2, "div", 9);
|
|
37
|
-
i0.ɵɵtemplate(3, InfoTimelineComponent_div_4_h2_3_Template, 2, 1, "h2", 10);
|
|
38
|
-
i0.ɵɵelement(4, "p", 11);
|
|
39
|
-
i0.ɵɵpipe(5, "translate");
|
|
40
|
-
i0.ɵɵtemplate(6, InfoTimelineComponent_div_4_h3_6_Template, 2, 2, "h3", 10);
|
|
41
|
-
i0.ɵɵelementEnd()();
|
|
42
|
-
} if (rf & 2) {
|
|
43
|
-
const item_r2 = ctx.$implicit;
|
|
44
|
-
i0.ɵɵadvance(1);
|
|
45
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(6, _c0, item_r2.PointColor));
|
|
46
|
-
i0.ɵɵadvance(2);
|
|
47
|
-
i0.ɵɵproperty("ngIf", item_r2.Title);
|
|
48
|
-
i0.ɵɵadvance(1);
|
|
49
|
-
i0.ɵɵproperty("innerHTML", i0.ɵɵpipeBind1(5, 4, item_r2.Content), i0.ɵɵsanitizeHtml);
|
|
50
|
-
i0.ɵɵadvance(2);
|
|
51
|
-
i0.ɵɵproperty("ngIf", item_r2.Date);
|
|
52
|
-
} }
|
|
53
|
-
export class InfoTimelineComponent {
|
|
54
|
-
constructor() {
|
|
55
|
-
this.showdate = true;
|
|
56
|
-
this.align = 'between';
|
|
57
|
-
this.style = '';
|
|
58
|
-
this.label = '';
|
|
59
|
-
this.data = [];
|
|
60
|
-
this.alignLeft = false;
|
|
61
|
-
this.alignCenter = false;
|
|
62
|
-
this.alignRight = false;
|
|
63
|
-
this.alignBetween = false;
|
|
64
|
-
}
|
|
65
|
-
ngOnInit() {
|
|
66
|
-
this.alignLeft = (this.align === 'left');
|
|
67
|
-
this.alignCenter = (this.align === 'center');
|
|
68
|
-
this.alignRight = (this.align === 'right');
|
|
69
|
-
this.alignBetween = (this.align === 'between');
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
/** @nocollapse */ InfoTimelineComponent.ɵfac = function InfoTimelineComponent_Factory(t) { return new (t || InfoTimelineComponent)(); };
|
|
73
|
-
/** @nocollapse */ InfoTimelineComponent.ɵcmp = /** @pureOrBreakMyCode */ i0.ɵɵdefineComponent({ type: InfoTimelineComponent, selectors: [["info-timeline"]], hostVars: 12, hostBindings: function InfoTimelineComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
74
|
-
i0.ɵɵclassProp("timeline", true)("show-date", true)("align-left", ctx.alignLeft)("align-center", ctx.alignCenter)("align-right", ctx.alignRight)("align-between", ctx.alignBetween);
|
|
75
|
-
} }, inputs: { showdate: "showdate", align: "align", style: "style", label: "label", data: "data" }, decls: 5, vars: 2, consts: [[1, "line"], [1, "timeline-box"], ["class", "box-label", 4, "ngIf"], [1, "box-items"], ["class", "item", 4, "ngFor", "ngForOf"], [1, "box-label"], [1, "label-text"], [1, "item"], [1, "item-point", 3, "ngStyle"], [1, "item-content"], [4, "ngIf"], [3, "innerHTML"]], template: function InfoTimelineComponent_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
-
i0.ɵɵelement(0, "span", 0);
|
|
77
|
-
i0.ɵɵelementStart(1, "div", 1);
|
|
78
|
-
i0.ɵɵtemplate(2, InfoTimelineComponent_div_2_Template, 3, 1, "div", 2);
|
|
79
|
-
i0.ɵɵelementStart(3, "div", 3);
|
|
80
|
-
i0.ɵɵtemplate(4, InfoTimelineComponent_div_4_Template, 7, 8, "div", 4);
|
|
81
|
-
i0.ɵɵelementEnd()();
|
|
82
|
-
} if (rf & 2) {
|
|
83
|
-
i0.ɵɵadvance(2);
|
|
84
|
-
i0.ɵɵproperty("ngIf", ctx.label != "");
|
|
85
|
-
i0.ɵɵadvance(2);
|
|
86
|
-
i0.ɵɵproperty("ngForOf", ctx.data);
|
|
87
|
-
} }, dependencies: [i1.NgForOf, i1.NgIf, i1.NgStyle, i2.InfoTranslatePipe], styles: ["[_nghost-%COMP%]{display:block;position:relative;margin:20px 0 10px;font-size:.9em}[_nghost-%COMP%] .line[_ngcontent-%COMP%]{border-left:2px solid #eee;height:100%;left:6px;margin-left:-1px;position:absolute;top:0}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-label[_ngcontent-%COMP%]{display:flex;padding:.7857143rem 0}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-label[_ngcontent-%COMP%] .label-text[_ngcontent-%COMP%]{border-radius:0;color:#fff;display:inline-block;min-width:6.2857144rem;padding:.39285715rem .7857143rem;position:relative;text-align:center}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%]{display:flex;flex-direction:column}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{margin:0;padding-left:50px;position:relative}@media only screen and (max-width: 543px){[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding-left:32px}}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-point[_ngcontent-%COMP%]{background:#fff;border-radius:50%;display:block;height:12px;left:0;position:absolute;top:calc(1.17857145rem + 1px);width:12px}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-date[_ngcontent-%COMP%]{font-size:.875rem;margin-bottom:.7857143rem}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]{margin-bottom:5px;background:#eee;border-radius:0;display:inline-block;padding:12px;position:relative;width:auto;min-width:180px;box-shadow:0 0 5px #f5f5f5}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]:after, [_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]:before{border:10px solid transparent;content:\"\";display:block;height:0;position:absolute;top:14px;width:0}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]:before{border-right-color:#eee;right:100%}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]:after{display:none;left:100%;border-left-color:#eee}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] .item-title[_ngcontent-%COMP%]{margin-top:0}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-weight:700;font-size:.9em;margin:0;display:block}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:5px 0!important}[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{font-size:.7em;text-align:right;color:#666;display:block;margin:0}.show-date[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-point[_ngcontent-%COMP%]{top:calc(1.17857145rem + 1px)}.align-right[_nghost-%COMP%] .line[_ngcontent-%COMP%]{left:auto;margin:0 -1px 0 auto;right:6px}.align-right[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-label[_ngcontent-%COMP%]{justify-content:flex-end}.align-right[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%]{align-items:flex-end}.align-right[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:0 50px 0 0}@media only screen and (max-width: 543px){.align-right[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:0 32px 0 0}}.align-right[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-point[_ngcontent-%COMP%]{left:auto;right:0}.align-right[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-date[_ngcontent-%COMP%]{text-align:right}.align-right[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]:before{display:none}.align-right[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]:after{display:block}.align-center[_nghost-%COMP%] .line[_ngcontent-%COMP%]{left:50%}.align-center[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-label[_ngcontent-%COMP%]{justify-content:center}.align-center[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%]{align-items:center}.align-center[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:0;text-align:center}@media only screen and (max-width: 543px){.align-center[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{padding:0}}.align-center[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-point[_ngcontent-%COMP%]{left:50%;margin:-26px 0 0 -6px;top:0}.align-center[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-date[_ngcontent-%COMP%]{margin-bottom:33px;text-align:center}.align-center[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-date[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{background:#eee;border:1px solid #eee;border-radius:0;display:inline-block;padding:.39285715rem .7857143rem}.align-center[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-content[_ngcontent-%COMP%]:before{border-color:transparent transparent #ddd transparent;left:50%;margin:-20px 0 0 -10px;top:0}.align-center.show-date[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%] .item-point[_ngcontent-%COMP%]{margin-top:40px}@media only screen and (min-width: 768px){.align-between[_nghost-%COMP%] .line[_ngcontent-%COMP%]{left:50%}.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-label[_ngcontent-%COMP%]{justify-content:center}.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]{width:50%}.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(even){align-self:flex-end}.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(even) .item-point[_ngcontent-%COMP%]{left:0;margin-left:-6px}.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(odd){padding:0 50px 0 0;text-align:right}}@media only screen and (min-width: 768px) and (max-width: 543px){.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(odd){padding:0 32px 0 0}}@media only screen and (min-width: 768px){.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(odd) .item-point[_ngcontent-%COMP%]{left:100%;margin-left:-6px}}@media only screen and (min-width: 768px){.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(odd) .item-content[_ngcontent-%COMP%]{text-align:left}.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(odd) .item-content[_ngcontent-%COMP%]:before{display:none}.align-between[_nghost-%COMP%] .timeline-box[_ngcontent-%COMP%] .box-items[_ngcontent-%COMP%] .item[_ngcontent-%COMP%]:nth-child(odd) .item-content[_ngcontent-%COMP%]:after{display:block}}"] });
|
|
88
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(InfoTimelineComponent, [{
|
|
89
|
-
type: Component,
|
|
90
|
-
args: [{ selector: 'info-timeline', host: {
|
|
91
|
-
'[class.timeline]': 'true',
|
|
92
|
-
'[class.show-date]': 'true'
|
|
93
|
-
}, template: "<span class=\"line\"></span>\r\n\r\n<div class=\"timeline-box\">\r\n <div class=\"box-label\" *ngIf=\"label != ''\">\r\n <div class=\"label-text\">{{label}}</div>\r\n </div>\r\n\r\n <div class=\"box-items\">\r\n <div class=\"item\" *ngFor=\"let item of data\">\r\n <div class=\"item-point\" [ngStyle]=\"{ 'border-color': item.PointColor }\"></div>\r\n <div class=\"item-content\">\r\n <h2 *ngIf=\"item.Title\">{{item.Title}}</h2>\r\n <p [innerHTML]=\"item.Content | translate\"></p>\r\n <h3 *ngIf=\"item.Date\">{{ item.Date }} \u00E0s {{ item.Hour }}</h3>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [":host{display:block;position:relative;margin:20px 0 10px;font-size:.9em}:host .line{border-left:2px solid #eee;height:100%;left:6px;margin-left:-1px;position:absolute;top:0}:host .timeline-box .box-label{display:flex;padding:.7857143rem 0}:host .timeline-box .box-label .label-text{border-radius:0;color:#fff;display:inline-block;min-width:6.2857144rem;padding:.39285715rem .7857143rem;position:relative;text-align:center}:host .timeline-box .box-items{display:flex;flex-direction:column}:host .timeline-box .box-items .item{margin:0;padding-left:50px;position:relative}@media only screen and (max-width: 543px){:host .timeline-box .box-items .item{padding-left:32px}}:host .timeline-box .box-items .item .item-point{background:#fff;border-radius:50%;display:block;height:12px;left:0;position:absolute;top:calc(1.17857145rem + 1px);width:12px}:host .timeline-box .box-items .item .item-date{font-size:.875rem;margin-bottom:.7857143rem}:host .timeline-box .box-items .item .item-content{margin-bottom:5px;background:#eee;border-radius:0;display:inline-block;padding:12px;position:relative;width:auto;min-width:180px;box-shadow:0 0 5px #f5f5f5}:host .timeline-box .box-items .item .item-content:after,:host .timeline-box .box-items .item .item-content:before{border:10px solid transparent;content:\"\";display:block;height:0;position:absolute;top:14px;width:0}:host .timeline-box .box-items .item .item-content:before{border-right-color:#eee;right:100%}:host .timeline-box .box-items .item .item-content:after{display:none;left:100%;border-left-color:#eee}:host .timeline-box .box-items .item .item-content .item-title{margin-top:0}:host .timeline-box .box-items .item .item-content h2{font-weight:700;font-size:.9em;margin:0;display:block}:host .timeline-box .box-items .item .item-content p{margin:5px 0!important}:host .timeline-box .box-items .item .item-content h3{font-size:.7em;text-align:right;color:#666;display:block;margin:0}:host.show-date .timeline-box .box-items .item .item-point{top:calc(1.17857145rem + 1px)}:host.align-right .line{left:auto;margin:0 -1px 0 auto;right:6px}:host.align-right .timeline-box .box-label{justify-content:flex-end}:host.align-right .timeline-box .box-items{align-items:flex-end}:host.align-right .timeline-box .box-items .item{padding:0 50px 0 0}@media only screen and (max-width: 543px){:host.align-right .timeline-box .box-items .item{padding:0 32px 0 0}}:host.align-right .timeline-box .box-items .item .item-point{left:auto;right:0}:host.align-right .timeline-box .box-items .item .item-date{text-align:right}:host.align-right .timeline-box .box-items .item .item-content:before{display:none}:host.align-right .timeline-box .box-items .item .item-content:after{display:block}:host.align-center .line{left:50%}:host.align-center .timeline-box .box-label{justify-content:center}:host.align-center .timeline-box .box-items{align-items:center}:host.align-center .timeline-box .box-items .item{padding:0;text-align:center}@media only screen and (max-width: 543px){:host.align-center .timeline-box .box-items .item{padding:0}}:host.align-center .timeline-box .box-items .item .item-point{left:50%;margin:-26px 0 0 -6px;top:0}:host.align-center .timeline-box .box-items .item .item-date{margin-bottom:33px;text-align:center}:host.align-center .timeline-box .box-items .item .item-date span{background:#eee;border:1px solid #eee;border-radius:0;display:inline-block;padding:.39285715rem .7857143rem}:host.align-center .timeline-box .box-items .item .item-content:before{border-color:transparent transparent #ddd transparent;left:50%;margin:-20px 0 0 -10px;top:0}:host.align-center.show-date .timeline-box .box-items .item .item-point{margin-top:40px}@media only screen and (min-width: 768px){:host.align-between .line{left:50%}:host.align-between .timeline-box .box-label{justify-content:center}:host.align-between .timeline-box .box-items .item{width:50%}:host.align-between .timeline-box .box-items .item:nth-child(even){align-self:flex-end}:host.align-between .timeline-box .box-items .item:nth-child(even) .item-point{left:0;margin-left:-6px}:host.align-between .timeline-box .box-items .item:nth-child(odd){padding:0 50px 0 0;text-align:right}}@media only screen and (min-width: 768px) and (max-width: 543px){:host.align-between .timeline-box .box-items .item:nth-child(odd){padding:0 32px 0 0}}@media only screen and (min-width: 768px){:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-point{left:100%;margin-left:-6px}}@media only screen and (min-width: 768px){:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content{text-align:left}:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content:before{display:none}:host.align-between .timeline-box .box-items .item:nth-child(odd) .item-content:after{display:block}}\n"] }]
|
|
94
|
-
}], function () { return []; }, { showdate: [{
|
|
95
|
-
type: Input
|
|
96
|
-
}], align: [{
|
|
97
|
-
type: Input
|
|
98
|
-
}], style: [{
|
|
99
|
-
type: Input
|
|
100
|
-
}], label: [{
|
|
101
|
-
type: Input
|
|
102
|
-
}], data: [{
|
|
103
|
-
type: Input
|
|
104
|
-
}], alignLeft: [{
|
|
105
|
-
type: HostBinding,
|
|
106
|
-
args: ['class.align-left']
|
|
107
|
-
}], alignCenter: [{
|
|
108
|
-
type: HostBinding,
|
|
109
|
-
args: ['class.align-center']
|
|
110
|
-
}], alignRight: [{
|
|
111
|
-
type: HostBinding,
|
|
112
|
-
args: ['class.align-right']
|
|
113
|
-
}], alignBetween: [{
|
|
114
|
-
type: HostBinding,
|
|
115
|
-
args: ['class.align-between']
|
|
116
|
-
}] }); })();
|
|
117
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGltZWxpbmUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvaW5mby1saWJyYXJ5L3NyYy9jb250cm9scy90aW1lbGluZS90aW1lbGluZS5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9pbmZvLWxpYnJhcnkvc3JjL2NvbnRyb2xzL3RpbWVsaW5lL3RpbWVsaW5lLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQ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