@natec/mef-dev-ui-kit 0.0.1 → 0.0.2

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.
@@ -0,0 +1,3199 @@
1
+ import * as i0 from '@angular/core';
2
+ import { Component, ViewEncapsulation, Input, Host, ContentChild, HostBinding, NgModule, Injectable, EventEmitter, Output, ViewChild, Pipe, forwardRef, HostListener, Directive, Optional, ContentChildren, TemplateRef } from '@angular/core';
3
+ import { trigger, state, style, transition, animate } from '@angular/animations';
4
+ import * as i1 from '@angular/common';
5
+ import { CommonModule } from '@angular/common';
6
+ import { Subject, of, fromEvent, merge } from 'rxjs';
7
+ import * as i2 from 'ngx-ui-loader';
8
+ import { NgxUiLoaderModule } from 'ngx-ui-loader';
9
+ import * as i2$1 from '@ngx-translate/core';
10
+ import { TranslateModule } from '@ngx-translate/core';
11
+ import * as i1$1 from '@angular/router';
12
+ import * as i1$2 from '@angular/cdk/overlay';
13
+ import { CdkConnectedOverlay, OverlayModule } from '@angular/cdk/overlay';
14
+ import * as i3 from '@angular/forms';
15
+ import { NG_VALUE_ACCESSOR, FormsModule } from '@angular/forms';
16
+ import { TAB, DOWN_ARROW, ENTER } from '@angular/cdk/keycodes';
17
+ import * as i1$3 from 'ngx-bootstrap/modal';
18
+ import { ModalModule } from 'ngx-bootstrap/modal';
19
+ import * as i2$2 from '@angular/cdk/observers';
20
+ import { ObserversModule } from '@angular/cdk/observers';
21
+ import { auditTime, startWith, map } from 'rxjs/operators';
22
+ import * as i1$4 from '@angular/cdk/bidi';
23
+
24
+ class CollapseSetComponent {
25
+ constructor() {
26
+ this._accordion = false;
27
+ this._horizontal = true;
28
+ this._expandAny = true;
29
+ this.panels = [];
30
+ }
31
+ set expandAny(value) {
32
+ this._accordion = value;
33
+ }
34
+ get expandAny() {
35
+ return this._accordion;
36
+ }
37
+ set Accordion(value) {
38
+ this._accordion = value;
39
+ }
40
+ get Accordion() {
41
+ return this._accordion;
42
+ }
43
+ set Horizontal(value) {
44
+ this._horizontal = value;
45
+ }
46
+ get Horizontal() {
47
+ return this._horizontal;
48
+ }
49
+ pgClick(collapse) {
50
+ if (this.Accordion && !this.expandAny) {
51
+ this.panels.map((item, index) => {
52
+ const curIndex = this.panels.indexOf(collapse);
53
+ if (index !== curIndex) {
54
+ item.Active = false;
55
+ }
56
+ });
57
+ }
58
+ }
59
+ addTab(collapse) {
60
+ this.panels.push(collapse);
61
+ }
62
+ }
63
+ CollapseSetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CollapseSetComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
64
+ CollapseSetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CollapseSetComponent, selector: "mefdev-collapse-set", inputs: { expandAny: "expandAny", Accordion: "Accordion", Horizontal: "Horizontal" }, ngImport: i0, template: "<div class=\"card-group\" [class.horizontal]=\"Horizontal\">\r\n <ng-content></ng-content>\r\n</div>", styles: [""], encapsulation: i0.ViewEncapsulation.None });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CollapseSetComponent, decorators: [{
66
+ type: Component,
67
+ args: [{ selector: 'mefdev-collapse-set', encapsulation: ViewEncapsulation.None, template: "<div class=\"card-group\" [class.horizontal]=\"Horizontal\">\r\n <ng-content></ng-content>\r\n</div>", styles: [""] }]
68
+ }], propDecorators: { expandAny: [{
69
+ type: Input
70
+ }], Accordion: [{
71
+ type: Input
72
+ }], Horizontal: [{
73
+ type: Input
74
+ }] } });
75
+
76
+ class CollapseComponent {
77
+ constructor(_collapseSet, _elementRef) {
78
+ this._collapseSet = _collapseSet;
79
+ this._elementRef = _elementRef;
80
+ this._disabled = false;
81
+ this._active = false;
82
+ this._el = this._elementRef.nativeElement;
83
+ this._collapseSet.addTab(this);
84
+ }
85
+ set Disabled(value) {
86
+ this._disabled = value;
87
+ }
88
+ get Disabled() {
89
+ return this._disabled;
90
+ }
91
+ set Active(value) {
92
+ const active = value;
93
+ if (this._active === active) {
94
+ return;
95
+ }
96
+ if (!this.Disabled) {
97
+ this._active = active;
98
+ }
99
+ }
100
+ get Active() {
101
+ return this._active;
102
+ }
103
+ clickHeader($event) {
104
+ this.Active = !this.Active;
105
+ /** trigger host collapseSet click event */
106
+ this._collapseSet.pgClick(this);
107
+ }
108
+ }
109
+ CollapseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CollapseComponent, deps: [{ token: CollapseSetComponent, host: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
110
+ CollapseComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CollapseComponent, selector: "mefdev-collapse", inputs: { Disabled: "Disabled", Active: "Active" }, host: { properties: { "class.card": "true", "class.card-default": "true", "class.m-b-0": "true", "class.disabled": "this.Disabled" } }, queries: [{ propertyName: "CardTitle", first: true, predicate: ["CardTitle"], descendants: true }], ngImport: i0, template: "<div class=\"row mt-2 card-title\" [attr.aria-expanded]=\"_active\" (click)=\"clickHeader($event)\" role=\"tab\"\r\nhref=\"javascript:;\" [ngClass]=\"{'collapsed':!_active}\">\r\n <div class=\"col-11\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"col-1 align-self-center\">\r\n <i class=\"fa fa-angle-down float-end \" aria-hidden=\"true\" *ngIf=\"!_active\"></i>\r\n <i class=\"fa fa-angle-up float-end \" aria-hidden=\"true\" *ngIf=\"_active\"></i>\r\n </div>\r\n</div>\r\n\r\n<div class=\"collapse\" [ngClass]=\"{'show':true,'active':_active,'inactive':!_active}\" [@collapseState]=\"_active?'active':'inactive'\">\r\n <div class=\"card-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,.card-title,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-title{background-color:#f3f3f3;padding:17px;margin:0;color:#000}.collapse{background-color:#f3f3f3}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], animations: [
111
+ trigger('collapseState', [
112
+ state('inactive', style({
113
+ opacity: '0',
114
+ height: 0
115
+ })),
116
+ state('active', style({
117
+ opacity: '1',
118
+ height: '*'
119
+ })),
120
+ transition('inactive => active', animate('125ms ease-in')),
121
+ transition('active => inactive', animate('125ms ease-out'))
122
+ ])
123
+ ] });
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CollapseComponent, decorators: [{
125
+ type: Component,
126
+ args: [{ selector: 'mefdev-collapse', animations: [
127
+ trigger('collapseState', [
128
+ state('inactive', style({
129
+ opacity: '0',
130
+ height: 0
131
+ })),
132
+ state('active', style({
133
+ opacity: '1',
134
+ height: '*'
135
+ })),
136
+ transition('inactive => active', animate('125ms ease-in')),
137
+ transition('active => inactive', animate('125ms ease-out'))
138
+ ])
139
+ ], host: {
140
+ '[class.card]': 'true',
141
+ '[class.card-default]': 'true',
142
+ '[class.m-b-0]': 'true'
143
+ }, template: "<div class=\"row mt-2 card-title\" [attr.aria-expanded]=\"_active\" (click)=\"clickHeader($event)\" role=\"tab\"\r\nhref=\"javascript:;\" [ngClass]=\"{'collapsed':!_active}\">\r\n <div class=\"col-11\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"col-1 align-self-center\">\r\n <i class=\"fa fa-angle-down float-end \" aria-hidden=\"true\" *ngIf=\"!_active\"></i>\r\n <i class=\"fa fa-angle-up float-end \" aria-hidden=\"true\" *ngIf=\"_active\"></i>\r\n </div>\r\n</div>\r\n\r\n<div class=\"collapse\" [ngClass]=\"{'show':true,'active':_active,'inactive':!_active}\" [@collapseState]=\"_active?'active':'inactive'\">\r\n <div class=\"card-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,.card-title,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-title{background-color:#f3f3f3;padding:17px;margin:0;color:#000}.collapse{background-color:#f3f3f3}\n"] }]
144
+ }], ctorParameters: function () {
145
+ return [{ type: CollapseSetComponent, decorators: [{
146
+ type: Host
147
+ }] }, { type: i0.ElementRef }];
148
+ }, propDecorators: { CardTitle: [{
149
+ type: ContentChild,
150
+ args: ["CardTitle"]
151
+ }], Disabled: [{
152
+ type: Input
153
+ }, {
154
+ type: HostBinding,
155
+ args: ['class.disabled']
156
+ }], Active: [{
157
+ type: Input
158
+ }] } });
159
+
160
+ const mefDevCollapseModuleComponents = [CollapseSetComponent, CollapseComponent];
161
+ class MefDevCollapseModule {
162
+ static forRoot() {
163
+ return {
164
+ ngModule: MefDevCollapseModule
165
+ };
166
+ }
167
+ }
168
+ MefDevCollapseModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevCollapseModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
169
+ MefDevCollapseModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevCollapseModule, declarations: [CollapseSetComponent, CollapseComponent], imports: [CommonModule], exports: [CollapseSetComponent, CollapseComponent] });
170
+ MefDevCollapseModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevCollapseModule, imports: [[CommonModule]] });
171
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevCollapseModule, decorators: [{
172
+ type: NgModule,
173
+ args: [{
174
+ declarations: mefDevCollapseModuleComponents,
175
+ exports: mefDevCollapseModuleComponents,
176
+ imports: [CommonModule]
177
+ }]
178
+ }] });
179
+
180
+ var RequestEvent;
181
+ (function (RequestEvent) {
182
+ RequestEvent[RequestEvent["TX"] = 0] = "TX";
183
+ RequestEvent[RequestEvent["RX_OK"] = 1] = "RX_OK";
184
+ RequestEvent[RequestEvent["RX_ERR"] = 2] = "RX_ERR";
185
+ })(RequestEvent || (RequestEvent = {}));
186
+
187
+ class LoaderService {
188
+ constructor() {
189
+ this.stream = new Subject();
190
+ this.loaderIsShow = new Subject();
191
+ this._lastVal = false;
192
+ this.requestCnt = 0;
193
+ this.stream.subscribe(e => {
194
+ switch (e) {
195
+ case RequestEvent.TX:
196
+ this.requestCnt++;
197
+ break;
198
+ case RequestEvent.RX_OK:
199
+ case RequestEvent.RX_ERR:
200
+ this.requestCnt -= 0.5;
201
+ // console.log('LoaderService request', this.requestCnt)
202
+ break;
203
+ }
204
+ if (this.requestCnt < 0) {
205
+ this.requestCnt = 0;
206
+ }
207
+ let isZero = this.requestCnt == 0;
208
+ if (this._lastVal != isZero) {
209
+ this._lastVal = isZero;
210
+ this.loaderIsShow.next(!isZero);
211
+ }
212
+ });
213
+ }
214
+ newEvent(e) {
215
+ this.stream.next(e);
216
+ }
217
+ getLoaderIsShow() {
218
+ return this.loaderIsShow;
219
+ }
220
+ update() {
221
+ this.requestCnt = 0;
222
+ }
223
+ }
224
+ LoaderService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
225
+ LoaderService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, providedIn: 'root' });
226
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderService, decorators: [{
227
+ type: Injectable,
228
+ args: [{
229
+ providedIn: 'root'
230
+ }]
231
+ }], ctorParameters: function () { return []; } });
232
+
233
+ class LoaderComponent {
234
+ constructor(loaderService, ngxLoader) {
235
+ this.loaderService = loaderService;
236
+ this.ngxLoader = ngxLoader;
237
+ }
238
+ ngOnInit() {
239
+ this.loaderService.getLoaderIsShow().subscribe((isEnable) => {
240
+ if (isEnable) {
241
+ this.ngxLoader.startBackground();
242
+ }
243
+ else {
244
+ this.ngxLoader.stopBackground();
245
+ }
246
+ });
247
+ }
248
+ }
249
+ LoaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderComponent, deps: [{ token: LoaderService }, { token: i2.NgxUiLoaderService }], target: i0.ɵɵFactoryTarget.Component });
250
+ LoaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: LoaderComponent, selector: "mefdev-loader", ngImport: i0, template: "<ngx-ui-loader></ngx-ui-loader>", styles: [""], components: [{ type: i2.NgxUiLoaderComponent, selector: "ngx-ui-loader", inputs: ["bgsColor", "bgsOpacity", "bgsPosition", "bgsSize", "bgsTemplate", "bgsType", "fgsColor", "fgsPosition", "fgsSize", "fgsTemplate", "fgsType", "gap", "loaderId", "logoPosition", "logoSize", "logoUrl", "overlayBorderRadius", "overlayColor", "pbColor", "pbDirection", "pbThickness", "hasProgressBar", "text", "textColor", "textPosition"] }] });
251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: LoaderComponent, decorators: [{
252
+ type: Component,
253
+ args: [{ selector: 'mefdev-loader', template: "<ngx-ui-loader></ngx-ui-loader>", styles: [""] }]
254
+ }], ctorParameters: function () { return [{ type: LoaderService }, { type: i2.NgxUiLoaderService }]; } });
255
+
256
+ const ngxUiLoaderConfig = {
257
+ "bgsColor": "#CF0106",
258
+ "fgsColor": "#CF0106",
259
+ "bgsOpacity": 0.5,
260
+ "bgsPosition": "center-center",
261
+ "bgsSize": 50,
262
+ "bgsType": "ball-spin-clockwise",
263
+ "blur": 5,
264
+ "delay": 0,
265
+ "fastFadeOut": true,
266
+ "fgsPosition": "center-center",
267
+ "fgsSize": 60,
268
+ "fgsType": "ball-spin-clockwise",
269
+ "gap": 57,
270
+ "logoPosition": "center-center",
271
+ "logoSize": 120,
272
+ "logoUrl": "",
273
+ "masterLoaderId": "master",
274
+ "overlayBorderRadius": "0",
275
+ "overlayColor": "rgba(40, 40, 40, 0.8)",
276
+ "pbColor": "red",
277
+ "pbDirection": "ltr",
278
+ "pbThickness": 3,
279
+ "hasProgressBar": false,
280
+ "text": "",
281
+ "textColor": "#FFFFFF",
282
+ "textPosition": "center-center",
283
+ "maxTime": -1,
284
+ "minTime": 300
285
+ };
286
+ class MefDevLoaderModule {
287
+ }
288
+ MefDevLoaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevLoaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
289
+ MefDevLoaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevLoaderModule, declarations: [LoaderComponent], imports: [CommonModule, i2.NgxUiLoaderModule], exports: [LoaderComponent] });
290
+ MefDevLoaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevLoaderModule, providers: [LoaderService], imports: [[
291
+ CommonModule,
292
+ NgxUiLoaderModule.forRoot(ngxUiLoaderConfig),
293
+ ]] });
294
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevLoaderModule, decorators: [{
295
+ type: NgModule,
296
+ args: [{
297
+ declarations: [LoaderComponent],
298
+ exports: [LoaderComponent],
299
+ imports: [
300
+ CommonModule,
301
+ NgxUiLoaderModule.forRoot(ngxUiLoaderConfig),
302
+ ],
303
+ providers: [LoaderService]
304
+ }]
305
+ }] });
306
+
307
+ class FilteredFieldService {
308
+ constructor() {
309
+ this.newFilterItem = new Subject();
310
+ this.openFilter = new Subject();
311
+ }
312
+ getOpenFilter() {
313
+ return this.openFilter;
314
+ }
315
+ sendOpenFilter(item) {
316
+ this.openFilter.next(item);
317
+ }
318
+ getNewFilterItem() {
319
+ return this.newFilterItem;
320
+ }
321
+ sendNewFilterItem(item) {
322
+ this.newFilterItem.next(item);
323
+ }
324
+ }
325
+ FilteredFieldService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FilteredFieldService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
326
+ FilteredFieldService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FilteredFieldService, providedIn: 'root' });
327
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FilteredFieldService, decorators: [{
328
+ type: Injectable,
329
+ args: [{
330
+ providedIn: 'root'
331
+ }]
332
+ }], ctorParameters: function () { return []; } });
333
+
334
+ class FilteredFieldItemComponent {
335
+ constructor() {
336
+ this.discard = new EventEmitter();
337
+ this.openFilter = new EventEmitter();
338
+ }
339
+ ngOnInit() {
340
+ }
341
+ onOpenFilter() {
342
+ this.openFilter.next({});
343
+ }
344
+ onDiscard() {
345
+ this.discard.next(this.item);
346
+ }
347
+ }
348
+ FilteredFieldItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FilteredFieldItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
349
+ FilteredFieldItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: FilteredFieldItemComponent, selector: "mefdev-filtered-field-item", inputs: { item: "item" }, outputs: { discard: "discard", openFilter: "openFilter" }, ngImport: i0, template: "<div class=\"item\">\n <i class=\"fa fa-times\" (click)=\"onDiscard()\" style=\"margin-right: 3px; cursor: pointer;\"></i> \n <span (click)=\"onOpenFilter()\">{{item.newValue}}</span>\n</div>\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.item{background-color:#4d4d4d;color:#fff;border-radius:5px;margin-right:7px;padding:3px 7px}\n"] });
350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FilteredFieldItemComponent, decorators: [{
351
+ type: Component,
352
+ args: [{ selector: 'mefdev-filtered-field-item', template: "<div class=\"item\">\n <i class=\"fa fa-times\" (click)=\"onDiscard()\" style=\"margin-right: 3px; cursor: pointer;\"></i> \n <span (click)=\"onOpenFilter()\">{{item.newValue}}</span>\n</div>\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.item{background-color:#4d4d4d;color:#fff;border-radius:5px;margin-right:7px;padding:3px 7px}\n"] }]
353
+ }], ctorParameters: function () { return []; }, propDecorators: { item: [{
354
+ type: Input
355
+ }], discard: [{
356
+ type: Output
357
+ }], openFilter: [{
358
+ type: Output
359
+ }] } });
360
+
361
+ class FilteredFieldContainerComponent {
362
+ constructor(service) {
363
+ this.service = service;
364
+ this.items = [];
365
+ }
366
+ onOpenFilter(item) {
367
+ this.service.sendOpenFilter(item);
368
+ }
369
+ onDiscard(item) {
370
+ item.discard(item.standartValue);
371
+ this.items.splice(this.items.findIndex(x => x.id == item.id), 1);
372
+ }
373
+ ngOnInit() {
374
+ this.service.getNewFilterItem().subscribe(item => {
375
+ let i = this.items.findIndex(x => x.id == item.id);
376
+ if (item.newValue == item.standartValue) {
377
+ this.items[i] = item;
378
+ this.items.splice(i, 1);
379
+ return;
380
+ }
381
+ if (i != -1) {
382
+ this.items[i] = item;
383
+ return;
384
+ }
385
+ this.items.push(item);
386
+ });
387
+ }
388
+ }
389
+ FilteredFieldContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FilteredFieldContainerComponent, deps: [{ token: FilteredFieldService }], target: i0.ɵɵFactoryTarget.Component });
390
+ FilteredFieldContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: FilteredFieldContainerComponent, selector: "mefdev-filtered-field-container", ngImport: i0, template: "<div class=\"item-container\">\n <mefdev-filtered-field-item *ngFor=\"let item of items\" [item]=\"item\" (discard)=\"onDiscard(item)\" (openFilter)=\"onOpenFilter(item)\"></mefdev-filtered-field-item>\n</div>\n", styles: [".item-container{display:flex;cursor:context-menu}\n"], components: [{ type: FilteredFieldItemComponent, selector: "mefdev-filtered-field-item", inputs: ["item"], outputs: ["discard", "openFilter"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
391
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FilteredFieldContainerComponent, decorators: [{
392
+ type: Component,
393
+ args: [{ selector: 'mefdev-filtered-field-container', template: "<div class=\"item-container\">\n <mefdev-filtered-field-item *ngFor=\"let item of items\" [item]=\"item\" (discard)=\"onDiscard(item)\" (openFilter)=\"onOpenFilter(item)\"></mefdev-filtered-field-item>\n</div>\n", styles: [".item-container{display:flex;cursor:context-menu}\n"] }]
394
+ }], ctorParameters: function () { return [{ type: FilteredFieldService }]; } });
395
+
396
+ class MefDevFilteredFieldModule {
397
+ }
398
+ MefDevFilteredFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevFilteredFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
399
+ MefDevFilteredFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevFilteredFieldModule, declarations: [FilteredFieldContainerComponent,
400
+ FilteredFieldItemComponent], imports: [CommonModule], exports: [FilteredFieldItemComponent,
401
+ FilteredFieldContainerComponent] });
402
+ MefDevFilteredFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevFilteredFieldModule, imports: [[
403
+ CommonModule
404
+ ]] });
405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevFilteredFieldModule, decorators: [{
406
+ type: NgModule,
407
+ args: [{
408
+ declarations: [
409
+ FilteredFieldContainerComponent,
410
+ FilteredFieldItemComponent,
411
+ ],
412
+ exports: [
413
+ FilteredFieldItemComponent,
414
+ FilteredFieldContainerComponent
415
+ ],
416
+ imports: [
417
+ CommonModule
418
+ ]
419
+ }]
420
+ }] });
421
+
422
+ class FiltredItemModel {
423
+ constructor(id, newValue, standartValue, discard) {
424
+ this.id = id;
425
+ this.newValue = newValue;
426
+ this.standartValue = standartValue;
427
+ this.discard = discard;
428
+ }
429
+ }
430
+
431
+ class HelpBlockComponent {
432
+ constructor() {
433
+ this.isVisible = true;
434
+ this.expanded = false;
435
+ }
436
+ ngOnInit() {
437
+ }
438
+ }
439
+ HelpBlockComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HelpBlockComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
440
+ HelpBlockComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: HelpBlockComponent, selector: "mefdev-help-block", ngImport: i0, template: "<div class=\"card-simple\" *ngIf=\"isVisible\">\n <div class=\"row m-1 body-1\" (click)=\"expanded = !expanded\" style=\"cursor: pointer;\">\n <div class=\"col-10\" style=\"color: white;\">\n {{'Help' | translate}}\n </div>\n <div class=\"col-2\">\n <i class=\"fa fa-window-close\" aria-hidden=\"true\" style=\"float: right; margin-left: 20px;\" (click)=\"isVisible = !isVisible;\"></i>\n \n <i class=\"fa fa-angle-down \" *ngIf=\"!expanded\" aria-hidden=\"true\" style=\"float: right;\"></i>\n <i class=\"fa fa-angle-up\" *ngIf=\"expanded\" aria-hidden=\"true\" style=\"float: right;\"></i> \n </div>\n </div>\n\n <div class=\"card-body row\" [@smothExpand]=\"expanded ? 'open' : 'close'\">\n <div class=\"col-12\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-simple{opacity:.7;background-color:#28b446;padding:2px;border-radius:5px;margin-top:.3em;margin-bottom:.5em}.card-body{opacity:1;margin-left:2px;margin-right:2px;margin-bottom:2px;border-radius:5px;padding-top:15px;padding-bottom:15px;background-color:#f3f3f3;color:#000}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2$1.TranslatePipe }, animations: [
441
+ trigger('smothExpand', [
442
+ state('close', style({
443
+ height: '0',
444
+ margin: '0',
445
+ padding: '0',
446
+ opacity: '0',
447
+ visibility: 'hidden',
448
+ })),
449
+ state('open', style({})),
450
+ transition('close<=>open', animate(200))
451
+ ])
452
+ ] });
453
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: HelpBlockComponent, decorators: [{
454
+ type: Component,
455
+ args: [{ selector: 'mefdev-help-block', animations: [
456
+ trigger('smothExpand', [
457
+ state('close', style({
458
+ height: '0',
459
+ margin: '0',
460
+ padding: '0',
461
+ opacity: '0',
462
+ visibility: 'hidden',
463
+ })),
464
+ state('open', style({})),
465
+ transition('close<=>open', animate(200))
466
+ ])
467
+ ], template: "<div class=\"card-simple\" *ngIf=\"isVisible\">\n <div class=\"row m-1 body-1\" (click)=\"expanded = !expanded\" style=\"cursor: pointer;\">\n <div class=\"col-10\" style=\"color: white;\">\n {{'Help' | translate}}\n </div>\n <div class=\"col-2\">\n <i class=\"fa fa-window-close\" aria-hidden=\"true\" style=\"float: right; margin-left: 20px;\" (click)=\"isVisible = !isVisible;\"></i>\n \n <i class=\"fa fa-angle-down \" *ngIf=\"!expanded\" aria-hidden=\"true\" style=\"float: right;\"></i>\n <i class=\"fa fa-angle-up\" *ngIf=\"expanded\" aria-hidden=\"true\" style=\"float: right;\"></i> \n </div>\n </div>\n\n <div class=\"card-body row\" [@smothExpand]=\"expanded ? 'open' : 'close'\">\n <div class=\"col-12\">\n <ng-content></ng-content>\n </div>\n </div>\n</div>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-simple{opacity:.7;background-color:#28b446;padding:2px;border-radius:5px;margin-top:.3em;margin-bottom:.5em}.card-body{opacity:1;margin-left:2px;margin-right:2px;margin-bottom:2px;border-radius:5px;padding-top:15px;padding-bottom:15px;background-color:#f3f3f3;color:#000}\n"] }]
468
+ }], ctorParameters: function () { return []; } });
469
+
470
+ class MefDevHelpBlockModule {
471
+ }
472
+ MefDevHelpBlockModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevHelpBlockModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
473
+ MefDevHelpBlockModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevHelpBlockModule, declarations: [HelpBlockComponent], imports: [CommonModule,
474
+ MefDevCollapseModule,
475
+ TranslateModule], exports: [HelpBlockComponent] });
476
+ MefDevHelpBlockModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevHelpBlockModule, imports: [[
477
+ CommonModule,
478
+ MefDevCollapseModule,
479
+ TranslateModule
480
+ ]] });
481
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevHelpBlockModule, decorators: [{
482
+ type: NgModule,
483
+ args: [{
484
+ declarations: [HelpBlockComponent],
485
+ exports: [HelpBlockComponent],
486
+ imports: [
487
+ CommonModule,
488
+ MefDevCollapseModule,
489
+ TranslateModule
490
+ ]
491
+ }]
492
+ }] });
493
+
494
+ class ProgressComponent {
495
+ constructor() { }
496
+ set value(value) {
497
+ if (this.type == "circle") {
498
+ this._value = (value / 100) * 360;
499
+ if (this.value >= 50) {
500
+ this._value2 = true;
501
+ }
502
+ }
503
+ else
504
+ this._value = value;
505
+ }
506
+ get value() {
507
+ return this._value;
508
+ }
509
+ get value2() {
510
+ return this._value2;
511
+ }
512
+ }
513
+ ProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
514
+ ProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ProgressComponent, selector: "pg-progress", inputs: { type: "type", color: "color", thick: "thick", indeterminate: "indeterminate", value: "value" }, ngImport: i0, template: "<div *ngIf=\"type === 'bar'; else circleBlock\">\r\n <div *ngIf=\"indeterminate; else determineBarBlock\">\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar-{{ color }}\" [class.progress-bar-indeterminate]=\"indeterminate\"></div>\r\n </div>\r\n </div>\r\n <ng-template #determineBarBlock>\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar progress-bar-{{ color }}\" [ngStyle]=\"{ width: value + '%' }\"></div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n<ng-template #circleBlock>\r\n <div class=\"progress-circle-{{ color }}\" [class.progress-circle-indeterminate]=\"indeterminate\"\r\n [class.progress-circle]=\"!indeterminate\" [class.progress-circle-thick]=\"thick\">\r\n <div *ngIf=\"indeterminate; else determineBlock\"></div>\r\n <ng-template #determineBlock>\r\n <div class=\"pie\" [ngStyle]=\"_value2 && { clip: 'rect(auto, auto, auto, auto)' }\">\r\n <div class=\"left-side half-circle\" [ngStyle]=\"_value2 && { transform: 'rotate(' + value + 'deg)' }\"></div>\r\n <div class=\"right-side half-circle\" [ngStyle]=\"{\r\n transform:\r\n _value2 === true ? 'rotate(180deg)' : 'rotate(' + value + 'deg)'\r\n }\"></div>\r\n </div>\r\n <div class=\"shadow\"></div>\r\n </ng-template>\r\n </div>\r\n</ng-template>", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
515
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressComponent, decorators: [{
516
+ type: Component,
517
+ args: [{ selector: "pg-progress", template: "<div *ngIf=\"type === 'bar'; else circleBlock\">\r\n <div *ngIf=\"indeterminate; else determineBarBlock\">\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar-{{ color }}\" [class.progress-bar-indeterminate]=\"indeterminate\"></div>\r\n </div>\r\n </div>\r\n <ng-template #determineBarBlock>\r\n <div class=\"progress\" [class.progress-small]=\"!thick\">\r\n <div class=\"progress-bar progress-bar-{{ color }}\" [ngStyle]=\"{ width: value + '%' }\"></div>\r\n </div>\r\n </ng-template>\r\n</div>\r\n<ng-template #circleBlock>\r\n <div class=\"progress-circle-{{ color }}\" [class.progress-circle-indeterminate]=\"indeterminate\"\r\n [class.progress-circle]=\"!indeterminate\" [class.progress-circle-thick]=\"thick\">\r\n <div *ngIf=\"indeterminate; else determineBlock\"></div>\r\n <ng-template #determineBlock>\r\n <div class=\"pie\" [ngStyle]=\"_value2 && { clip: 'rect(auto, auto, auto, auto)' }\">\r\n <div class=\"left-side half-circle\" [ngStyle]=\"_value2 && { transform: 'rotate(' + value + 'deg)' }\"></div>\r\n <div class=\"right-side half-circle\" [ngStyle]=\"{\r\n transform:\r\n _value2 === true ? 'rotate(180deg)' : 'rotate(' + value + 'deg)'\r\n }\"></div>\r\n </div>\r\n <div class=\"shadow\"></div>\r\n </ng-template>\r\n </div>\r\n</ng-template>" }]
518
+ }], ctorParameters: function () { return []; }, propDecorators: { type: [{
519
+ type: Input
520
+ }], color: [{
521
+ type: Input
522
+ }], thick: [{
523
+ type: Input
524
+ }], indeterminate: [{
525
+ type: Input
526
+ }], value: [{
527
+ type: Input
528
+ }] } });
529
+
530
+ class pgCard {
531
+ constructor() {
532
+ this._isCollapsed = false;
533
+ this._isMaximixed = false;
534
+ this._isLoading = false;
535
+ this._minimalHeader = false;
536
+ this._message = "";
537
+ this._messageType = "danger";
538
+ this._messageVisible = false;
539
+ this._progressType = "circle";
540
+ this._progressColor = "";
541
+ this._showTools = true;
542
+ this._close_card = false;
543
+ this._refresh = false;
544
+ this._refreshColor = "light";
545
+ this._close = true;
546
+ this._toggle = true;
547
+ this._maximize = true;
548
+ this._timeout = 0;
549
+ this._titleText = "";
550
+ this._card_border_style = "";
551
+ this._type = "default";
552
+ this._extraHeaderClass = "";
553
+ this._extraBodyClass = "";
554
+ this._additionalClasses = "";
555
+ this.onRefresh = new EventEmitter();
556
+ }
557
+ set Title(value) {
558
+ this._titleText = value;
559
+ }
560
+ get Title() {
561
+ return this._titleText;
562
+ }
563
+ set Type(value) {
564
+ this._type = value;
565
+ }
566
+ set MinimalHeader(value) {
567
+ this._minimalHeader = value;
568
+ }
569
+ set ProgressType(value) {
570
+ this._progressType = value;
571
+ }
572
+ set ProgressColor(value) {
573
+ this._progressColor = value;
574
+ }
575
+ set Refresh(value) {
576
+ this._refresh = value;
577
+ }
578
+ set RefreshColor(value) {
579
+ this._refreshColor = value;
580
+ }
581
+ set Maximize(value) {
582
+ this._maximize = value;
583
+ }
584
+ set Close(value) {
585
+ this._close = value;
586
+ }
587
+ set Toggle(value) {
588
+ this._toggle = value;
589
+ }
590
+ set HeaderClass(value) {
591
+ this._extraHeaderClass = value;
592
+ }
593
+ set BodyClass(value) {
594
+ this._extraBodyClass = value;
595
+ }
596
+ set AdditionalClasses(value) {
597
+ this._additionalClasses = value;
598
+ }
599
+ set Controls(value) {
600
+ this._showTools = value;
601
+ }
602
+ set ShowMessage(value) {
603
+ this._messageVisible = value;
604
+ }
605
+ set Message(value) {
606
+ this._message = value;
607
+ }
608
+ set Loading(value) {
609
+ this._isLoading = value;
610
+ }
611
+ set TimeOut(value) {
612
+ this._timeout = value;
613
+ }
614
+ set CardBorderStyle(value) {
615
+ this._card_border_style = value;
616
+ }
617
+ toggle() {
618
+ this._isCollapsed = this._isCollapsed === true ? false : true;
619
+ }
620
+ maximize() {
621
+ var _a;
622
+ let nativeElement = this._hostContent.nativeElement;
623
+ if (this._isMaximixed) {
624
+ this._isMaximixed = false;
625
+ nativeElement.style.left = null;
626
+ nativeElement.style.top = null;
627
+ }
628
+ else {
629
+ this._isMaximixed = true;
630
+ let pagecontainer = (_a = document.querySelector(".content")) !== null && _a !== void 0 ? _a : new Element();
631
+ console.log(pagecontainer);
632
+ let rect = pagecontainer.getBoundingClientRect();
633
+ let elementRect = nativeElement.getBoundingClientRect();
634
+ let style = window.getComputedStyle(pagecontainer);
635
+ nativeElement.style.left =
636
+ parseFloat(style["marginLeft"]) +
637
+ parseFloat(style["paddingLeft"]) +
638
+ rect.left +
639
+ "px";
640
+ nativeElement.style.top =
641
+ parseFloat(style["padding-top"]) + rect.top + "px";
642
+ }
643
+ }
644
+ alertDismiss() {
645
+ this._messageVisible = false;
646
+ }
647
+ refresh() {
648
+ if (!this._isLoading) {
649
+ this._isLoading = true;
650
+ this.onRefresh.emit();
651
+ }
652
+ if (this._timeout > 0) {
653
+ setTimeout(() => {
654
+ this._isLoading = false;
655
+ }, this._timeout);
656
+ }
657
+ }
658
+ close() {
659
+ this._close_card = true;
660
+ }
661
+ }
662
+ pgCard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgCard, deps: [], target: i0.ɵɵFactoryTarget.Component });
663
+ pgCard.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: pgCard, selector: "pgcard", inputs: { Title: "Title", Type: "Type", MinimalHeader: "MinimalHeader", ProgressType: "ProgressType", ProgressColor: "ProgressColor", Refresh: "Refresh", RefreshColor: "RefreshColor", Maximize: "Maximize", Close: "Close", Toggle: "Toggle", HeaderClass: "HeaderClass", BodyClass: "BodyClass", AdditionalClasses: "AdditionalClasses", Controls: "Controls", ShowMessage: "ShowMessage", Message: "Message", Loading: "Loading", TimeOut: "TimeOut", CardBorderStyle: "CardBorderStyle" }, outputs: { onRefresh: "onRefresh" }, queries: [{ propertyName: "CardTitle", first: true, predicate: ["CardTitle"], descendants: true }, { propertyName: "CardExtraControls", first: true, predicate: ["CardExtraControls"], descendants: true }], viewQueries: [{ propertyName: "_hostContent", first: true, predicate: ["hostContent"], descendants: true }, { propertyName: "minimalCircleLoading", first: true, predicate: ["minimalCircleLoading"], descendants: true }, { propertyName: "minimalCircleLoadingTrigger", first: true, predicate: ["minimalCircleLoadingTrigger"], descendants: true }], ngImport: i0, template: "<div class=\"card card-{{ _type }} {{ _additionalClasses }}\" *ngIf=\"!_close_card\" [class.card-collapsed]=\"_isCollapsed\"\r\n [class.card-maximized]=\"_isMaximixed\" #hostContent class=\"col-sm-12 col-md-6 col-lg-4\"\r\n [ngStyle]=\"{'border': _card_border_style}\">\r\n <div class=\"card-header {{ _extraHeaderClass }}\">\r\n <div class=\"card-title\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"card-controls\" *ngIf=\"_showTools == true\">\r\n <ng-template [ngTemplateOutlet]=\"CardExtraControls\"></ng-template>\r\n <ul *ngIf=\"_minimalHeader == false; else minimalBlock\">\r\n <li *ngIf=\"_toggle == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-collapse\" (click)=\"toggle()\"><i\r\n class=\"pg pg-arrow_maximize\" [class.pg-arrow_minimize]=\"_isCollapsed\"></i></a>\r\n </li>\r\n <li *ngIf=\"_refresh == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-refresh\" (click)=\"refresh()\"><i\r\n class=\"card-icon card-icon-refresh\"></i></a>\r\n </li>\r\n <li *ngIf=\"_maximize == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-maximize\" (click)=\"maximize()\"><i\r\n class=\"card-icon card-icon-maximize\"></i></a>\r\n </li>\r\n <li *ngIf=\"_close == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-close\" (click)=\"close()\"><i\r\n class=\"card-icon card-icon-close\"></i></a>\r\n </li>\r\n </ul>\r\n <!-- <ng-template #minimalBlock>\r\n <ul>\r\n <li>\r\n <a href=\"javascript:void(0);\" (click)=\"refresh()\" class=\"card-refresh minimal\"\r\n [class.refreshing]=\"_isLoading\">\r\n <i #minimalCircleLoadingTrigger class=\"card-icon card-icon-refresh-lg-{{\r\n _refreshColor == 'light' ? 'white' : 'master'\r\n }}\" [class.fade]=\"_isLoading\"></i>\r\n <i #minimalCircleLoading class=\"card-icon-refresh-lg-white-animated\"\r\n style=\"position: absolute;top:0;left:0\" [class.active]=\"_isLoading\"\r\n [class.hide]=\"_isLoading != true\"></i>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-template> -->\r\n </div>\r\n </div>\r\n <div class=\"card-body {{ _extraBodyClass }}\" [@collapseState]=\"_isCollapsed == true ? 'inactive' : 'active'\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div *ngIf=\"_messageVisible == true\" class=\"pgn-wrapper\" data-position=\"top\">\r\n <div class=\"pgn pgn-bar push-on-sidebar-open\">\r\n <div class=\"alert alert-danger\">\r\n <span>{{ _message }}</span><button class=\"close\" (click)=\"alertDismiss()\" type=\"button\">\r\n <span aria-hidden=\"true\">\u00D7</span><span class=\"sr-only\">{{'Close' | translate}}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"_messageVisible == true\" class=\"card-progress\" [style.backgroundColor]=\"\r\n _minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'\r\n \" style=\" display: block;\"></div>\r\n <div [@fadeAnimation]=\"_isLoading\" class=\"card-progress\" [style.backgroundColor]=\"\r\n _minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'\r\n \" style=\"display: block;pointer-events: none\">\r\n <pg-progress *ngIf=\"_minimalHeader == false\" type=\"{{ _progressType }}\" color=\"{{ _progressColor }}\"\r\n indeterminate=\"true\" class=\"\"></pg-progress>\r\n </div>\r\n</div>", components: [{ type: ProgressComponent, selector: "pg-progress", inputs: ["type", "color", "thick", "indeterminate", "value"] }], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "translate": i2$1.TranslatePipe }, animations: [
664
+ trigger("collapseState", [
665
+ state("inactive", style({
666
+ opacity: "0",
667
+ height: 0,
668
+ paddingBottom: "0"
669
+ })),
670
+ state("active", style({
671
+ opacity: "1",
672
+ height: "*",
673
+ paddingBottom: "*"
674
+ })),
675
+ transition("inactive => active", animate("125ms ease-in")),
676
+ transition("active => inactive", animate("125ms ease-out"))
677
+ ]),
678
+ trigger("fadeAnimation", [
679
+ state("false", style({
680
+ opacity: "0",
681
+ visibility: "hidden"
682
+ })),
683
+ state("true", style({
684
+ opacity: "1",
685
+ visibility: "visible"
686
+ })),
687
+ transition("false => true", animate("500ms ease-in")),
688
+ transition("true => false", animate("500ms ease-out"))
689
+ ])
690
+ ], encapsulation: i0.ViewEncapsulation.None });
691
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgCard, decorators: [{
692
+ type: Component,
693
+ args: [{ selector: "pgcard", encapsulation: ViewEncapsulation.None, animations: [
694
+ trigger("collapseState", [
695
+ state("inactive", style({
696
+ opacity: "0",
697
+ height: 0,
698
+ paddingBottom: "0"
699
+ })),
700
+ state("active", style({
701
+ opacity: "1",
702
+ height: "*",
703
+ paddingBottom: "*"
704
+ })),
705
+ transition("inactive => active", animate("125ms ease-in")),
706
+ transition("active => inactive", animate("125ms ease-out"))
707
+ ]),
708
+ trigger("fadeAnimation", [
709
+ state("false", style({
710
+ opacity: "0",
711
+ visibility: "hidden"
712
+ })),
713
+ state("true", style({
714
+ opacity: "1",
715
+ visibility: "visible"
716
+ })),
717
+ transition("false => true", animate("500ms ease-in")),
718
+ transition("true => false", animate("500ms ease-out"))
719
+ ])
720
+ ], template: "<div class=\"card card-{{ _type }} {{ _additionalClasses }}\" *ngIf=\"!_close_card\" [class.card-collapsed]=\"_isCollapsed\"\r\n [class.card-maximized]=\"_isMaximixed\" #hostContent class=\"col-sm-12 col-md-6 col-lg-4\"\r\n [ngStyle]=\"{'border': _card_border_style}\">\r\n <div class=\"card-header {{ _extraHeaderClass }}\">\r\n <div class=\"card-title\">\r\n <ng-template [ngTemplateOutlet]=\"CardTitle\"></ng-template>\r\n </div>\r\n <div class=\"card-controls\" *ngIf=\"_showTools == true\">\r\n <ng-template [ngTemplateOutlet]=\"CardExtraControls\"></ng-template>\r\n <ul *ngIf=\"_minimalHeader == false; else minimalBlock\">\r\n <li *ngIf=\"_toggle == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-collapse\" (click)=\"toggle()\"><i\r\n class=\"pg pg-arrow_maximize\" [class.pg-arrow_minimize]=\"_isCollapsed\"></i></a>\r\n </li>\r\n <li *ngIf=\"_refresh == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-refresh\" (click)=\"refresh()\"><i\r\n class=\"card-icon card-icon-refresh\"></i></a>\r\n </li>\r\n <li *ngIf=\"_maximize == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-maximize\" (click)=\"maximize()\"><i\r\n class=\"card-icon card-icon-maximize\"></i></a>\r\n </li>\r\n <li *ngIf=\"_close == true\">\r\n <a href=\"javascript:void(0);\" data-toggle class=\"card-close\" (click)=\"close()\"><i\r\n class=\"card-icon card-icon-close\"></i></a>\r\n </li>\r\n </ul>\r\n <!-- <ng-template #minimalBlock>\r\n <ul>\r\n <li>\r\n <a href=\"javascript:void(0);\" (click)=\"refresh()\" class=\"card-refresh minimal\"\r\n [class.refreshing]=\"_isLoading\">\r\n <i #minimalCircleLoadingTrigger class=\"card-icon card-icon-refresh-lg-{{\r\n _refreshColor == 'light' ? 'white' : 'master'\r\n }}\" [class.fade]=\"_isLoading\"></i>\r\n <i #minimalCircleLoading class=\"card-icon-refresh-lg-white-animated\"\r\n style=\"position: absolute;top:0;left:0\" [class.active]=\"_isLoading\"\r\n [class.hide]=\"_isLoading != true\"></i>\r\n </a>\r\n </li>\r\n </ul>\r\n </ng-template> -->\r\n </div>\r\n </div>\r\n <div class=\"card-body {{ _extraBodyClass }}\" [@collapseState]=\"_isCollapsed == true ? 'inactive' : 'active'\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div *ngIf=\"_messageVisible == true\" class=\"pgn-wrapper\" data-position=\"top\">\r\n <div class=\"pgn pgn-bar push-on-sidebar-open\">\r\n <div class=\"alert alert-danger\">\r\n <span>{{ _message }}</span><button class=\"close\" (click)=\"alertDismiss()\" type=\"button\">\r\n <span aria-hidden=\"true\">\u00D7</span><span class=\"sr-only\">{{'Close' | translate}}</span>\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n <div *ngIf=\"_messageVisible == true\" class=\"card-progress\" [style.backgroundColor]=\"\r\n _minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'\r\n \" style=\" display: block;\"></div>\r\n <div [@fadeAnimation]=\"_isLoading\" class=\"card-progress\" [style.backgroundColor]=\"\r\n _minimalHeader ? 'rgba(0,0,0, 0.6)' : 'rgba(255, 255, 255, 0.8)'\r\n \" style=\"display: block;pointer-events: none\">\r\n <pg-progress *ngIf=\"_minimalHeader == false\" type=\"{{ _progressType }}\" color=\"{{ _progressColor }}\"\r\n indeterminate=\"true\" class=\"\"></pg-progress>\r\n </div>\r\n</div>" }]
721
+ }], propDecorators: { _hostContent: [{
722
+ type: ViewChild,
723
+ args: ["hostContent"]
724
+ }], minimalCircleLoading: [{
725
+ type: ViewChild,
726
+ args: ["minimalCircleLoading"]
727
+ }], minimalCircleLoadingTrigger: [{
728
+ type: ViewChild,
729
+ args: ["minimalCircleLoadingTrigger"]
730
+ }], CardTitle: [{
731
+ type: ContentChild,
732
+ args: ["CardTitle"]
733
+ }], CardExtraControls: [{
734
+ type: ContentChild,
735
+ args: ["CardExtraControls"]
736
+ }], Title: [{
737
+ type: Input
738
+ }], Type: [{
739
+ type: Input
740
+ }], MinimalHeader: [{
741
+ type: Input
742
+ }], ProgressType: [{
743
+ type: Input
744
+ }], ProgressColor: [{
745
+ type: Input
746
+ }], Refresh: [{
747
+ type: Input
748
+ }], RefreshColor: [{
749
+ type: Input
750
+ }], Maximize: [{
751
+ type: Input
752
+ }], Close: [{
753
+ type: Input
754
+ }], Toggle: [{
755
+ type: Input
756
+ }], HeaderClass: [{
757
+ type: Input
758
+ }], BodyClass: [{
759
+ type: Input
760
+ }], AdditionalClasses: [{
761
+ type: Input
762
+ }], Controls: [{
763
+ type: Input
764
+ }], ShowMessage: [{
765
+ type: Input
766
+ }], Message: [{
767
+ type: Input
768
+ }], Loading: [{
769
+ type: Input
770
+ }], TimeOut: [{
771
+ type: Input
772
+ }], CardBorderStyle: [{
773
+ type: Input
774
+ }], onRefresh: [{
775
+ type: Output
776
+ }] } });
777
+
778
+ class CardComponent {
779
+ constructor(router) {
780
+ this.router = router;
781
+ }
782
+ ngOnInit() {
783
+ }
784
+ imgClick() {
785
+ this.router.navigate(['/', this.imgUrl.toString()]);
786
+ }
787
+ }
788
+ CardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CardComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
789
+ CardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CardComponent, selector: "mefdev-card", inputs: { card_type: "card_type", img: "img", imgUrl: "imgUrl", description: "description" }, queries: [{ propertyName: "card_title", first: true, predicate: ["card_title"], descendants: true }, { propertyName: "card_footer", first: true, predicate: ["card_footer"], descendants: true }], ngImport: i0, template: "\r\n <pgcard \r\n MinimalHeader=\"true\" \r\n TimeOut=\"2500\" \r\n [Refresh]=\"false\" \r\n [Close]=\"false\">\r\n \r\n <ng-template #CardTitle>\r\n <ng-template class=\"card-title\" [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </ng-template>\r\n\r\n <div class=\"plugin-type\"> \r\n {{ card_type | translate }}\r\n </div>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"m-l-2 card-description\">\r\n <div *ngIf=\"!description || description == ''\" class=\"card-no-description\"> {{'No plugin description' | translate }}</div>\r\n <p>\r\n {{description}}\r\n </p> \r\n </div>\r\n </div>\r\n <div class=\"col-12 mt-3 text-center card-img\">\r\n \r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\"\r\n style=\"max-width: 110px; max-height: 110px;\"/>\r\n </div>\r\n <div *ngIf=\"img\" >\r\n <img src=\"{{img}}\" alt=\"\" class=\"image-responsive-height img-middle\"\r\n height=\"110px\" \r\n style=\"max-width: 110px; max-height: 110px;\"\r\n onclick=\"imgClick()\"\r\n />\r\n </div>\r\n\r\n </div>\r\n </div>\r\n <div class=\"row mb-3 mt-3\">\r\n <div class=\"col-12\">\r\n <ng-template [ngTemplateOutlet]=\"card_footer\"></ng-template> \r\n </div> \r\n </div>\r\n </pgcard>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,:host::ng-deep .plugin-type,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,:host::ng-deep .card-title span,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,:host::ng-deep .card-description,:host::ng-deep .card-no-description,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .card-default{background-color:#eaeaea;border-radius:5px}:host::ng-deep .card-header{height:72px}:host::ng-deep .card-title{width:70%}:host::ng-deep .plugin-type{right:20px;top:25px;position:absolute;background-color:#cf0106;border-radius:5px 0 0 5px;margin-right:-20px;height:28px;padding:5px 15px;color:#fff}:host::ng-deep .card-description{height:40px;overflow-y:clip;color:#4d4d4d}:host::ng-deep .card-no-description{overflow-y:clip;height:60px;color:#929292}:host::ng-deep .card-img{padding:0;height:130px;background-color:#fff;display:flex;align-items:center;justify-content:center;width:-webkit-fill-available;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}\n"], components: [{ type: pgCard, selector: "pgcard", inputs: ["Title", "Type", "MinimalHeader", "ProgressType", "ProgressColor", "Refresh", "RefreshColor", "Maximize", "Close", "Toggle", "HeaderClass", "BodyClass", "AdditionalClasses", "Controls", "ShowMessage", "Message", "Loading", "TimeOut", "CardBorderStyle"], outputs: ["onRefresh"] }], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "translate": i2$1.TranslatePipe } });
790
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CardComponent, decorators: [{
791
+ type: Component,
792
+ args: [{ selector: 'mefdev-card', template: "\r\n <pgcard \r\n MinimalHeader=\"true\" \r\n TimeOut=\"2500\" \r\n [Refresh]=\"false\" \r\n [Close]=\"false\">\r\n \r\n <ng-template #CardTitle>\r\n <ng-template class=\"card-title\" [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </ng-template>\r\n\r\n <div class=\"plugin-type\"> \r\n {{ card_type | translate }}\r\n </div>\r\n \r\n <div class=\"row\">\r\n <div class=\"col-12\">\r\n <div class=\"m-l-2 card-description\">\r\n <div *ngIf=\"!description || description == ''\" class=\"card-no-description\"> {{'No plugin description' | translate }}</div>\r\n <p>\r\n {{description}}\r\n </p> \r\n </div>\r\n </div>\r\n <div class=\"col-12 mt-3 text-center card-img\">\r\n \r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\"\r\n style=\"max-width: 110px; max-height: 110px;\"/>\r\n </div>\r\n <div *ngIf=\"img\" >\r\n <img src=\"{{img}}\" alt=\"\" class=\"image-responsive-height img-middle\"\r\n height=\"110px\" \r\n style=\"max-width: 110px; max-height: 110px;\"\r\n onclick=\"imgClick()\"\r\n />\r\n </div>\r\n\r\n </div>\r\n </div>\r\n <div class=\"row mb-3 mt-3\">\r\n <div class=\"col-12\">\r\n <ng-template [ngTemplateOutlet]=\"card_footer\"></ng-template> \r\n </div> \r\n </div>\r\n </pgcard>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,:host::ng-deep .plugin-type,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,:host::ng-deep .card-title span,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,:host::ng-deep .card-description,:host::ng-deep .card-no-description,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .card-default{background-color:#eaeaea;border-radius:5px}:host::ng-deep .card-header{height:72px}:host::ng-deep .card-title{width:70%}:host::ng-deep .plugin-type{right:20px;top:25px;position:absolute;background-color:#cf0106;border-radius:5px 0 0 5px;margin-right:-20px;height:28px;padding:5px 15px;color:#fff}:host::ng-deep .card-description{height:40px;overflow-y:clip;color:#4d4d4d}:host::ng-deep .card-no-description{overflow-y:clip;height:60px;color:#929292}:host::ng-deep .card-img{padding:0;height:130px;background-color:#fff;display:flex;align-items:center;justify-content:center;width:-webkit-fill-available;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}\n"] }]
793
+ }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { card_title: [{
794
+ type: ContentChild,
795
+ args: ["card_title"]
796
+ }], card_footer: [{
797
+ type: ContentChild,
798
+ args: ["card_footer"]
799
+ }], card_type: [{
800
+ type: Input
801
+ }], img: [{
802
+ type: Input
803
+ }], imgUrl: [{
804
+ type: Input
805
+ }], description: [{
806
+ type: Input
807
+ }] } });
808
+
809
+ var CartTypeColors;
810
+ (function (CartTypeColors) {
811
+ CartTypeColors["UNSET"] = "UNSET";
812
+ CartTypeColors["RED"] = "RED";
813
+ CartTypeColors["GREEN"] = "GREEN";
814
+ })(CartTypeColors || (CartTypeColors = {}));
815
+
816
+ class CardLongComponent {
817
+ constructor(router) {
818
+ this.router = router;
819
+ this.type_color = CartTypeColors.UNSET;
820
+ }
821
+ ngOnInit() {
822
+ }
823
+ imgClick() {
824
+ this.router.navigate(['/', this.imgUrl.toString()]);
825
+ }
826
+ }
827
+ CardLongComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CardLongComponent, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Component });
828
+ CardLongComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CardLongComponent, selector: "medev-card-long", inputs: { type_text: "type_text", type_color: "type_color", img: "img", imgUrl: "imgUrl", description: "description" }, queries: [{ propertyName: "title", first: true, predicate: ["title"], descendants: true }, { propertyName: "params", first: true, predicate: ["params"], descendants: true }, { propertyName: "second_col", first: true, predicate: ["second_col"], descendants: true }, { propertyName: "third_col", first: true, predicate: ["third_col"], descendants: true }], ngImport: i0, template: "\r\n <pgcard \r\n MinimalHeader=\"true\" \r\n TimeOut=\"2500\" \r\n [Refresh]=\"false\" \r\n [Close]=\"false\"\r\n >\r\n \r\n <ng-template #CardTitle>\r\n <ng-template class=\"card-title\" [ngTemplateOutlet]=\"title\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template #CardExtraControls>\r\n <div class=\"plugin-type\" \r\n [ngClass] = \"{\r\n 'b-color-Light-Gray-1': type_color === 'UNSET',\r\n 'b-color-Red': type_color === 'RED',\r\n 'b-color-Green': type_color === 'GREEN'}\">\r\n {{type_text}}\r\n </div>\r\n </ng-template>\r\n\r\n <div class=\"row h-100 m-b-10\">\r\n <div class=\"col-lg-3 col-12 card-col\">\r\n <div class=\"row\">\r\n <div class=\"col-12 card-img m-b-10\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\"\r\n style=\"max-width: 110px; max-height: 110px;\"/>\r\n </div>\r\n <div *ngIf=\"img\">\r\n <img src=\"{{img}}\" alt=\"\" class=\"image-responsive-height img-middle\"\r\n height=\"110px\" \r\n style=\"max-width: 110px; max-height: 110px;\"\r\n onclick=\"imgClick()\"\r\n />\r\n </div> \r\n </div>\r\n <div class=\"col-12 m-t-2 body-6 text-dark params-block\">\r\n <ng-template [ngTemplateOutlet]=\"params\"></ng-template> \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-lg-5 col-12 card-col\">\r\n <ng-template [ngTemplateOutlet]=\"second_col\"></ng-template> \r\n </div>\r\n \r\n <div class=\"col-lg-4 col-12 card-col mt-lg-0 mt-5\">\r\n <ng-template [ngTemplateOutlet]=\"third_col\"></ng-template> \r\n </div> \r\n\r\n </div>\r\n </pgcard>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,:host::ng-deep .card-title span,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,:host::ng-deep .plugin-type,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,:host::ng-deep .card-description,:host::ng-deep .card-no-description,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .params-block .row{margin-top:.75em}:host::ng-deep .params-block .row:last-child{margin-bottom:.75em}:host::ng-deep .card-col{min-height:220px}:host::ng-deep .header-link{opacity:1}:host::ng-deep .card-default{background-color:#f3f3f3;border-radius:5px}:host::ng-deep .card-title{width:80%;color:#000}:host::ng-deep .plugin-type{border-radius:5px 0 0 5px;margin-right:-20px;height:28px;padding:5px 15px;color:#fff}:host::ng-deep .card-description{height:40px;overflow-y:clip;color:#4d4d4d}:host::ng-deep .card-no-description{overflow-y:clip;height:60px;color:#929292}:host::ng-deep .card-img{padding:0;height:130px;background-color:#fff;display:flex;align-items:center;justify-content:center;width:-webkit-fill-available;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}\n"], components: [{ type: pgCard, selector: "pgcard", inputs: ["Title", "Type", "MinimalHeader", "ProgressType", "ProgressColor", "Refresh", "RefreshColor", "Maximize", "Close", "Toggle", "HeaderClass", "BodyClass", "AdditionalClasses", "Controls", "ShowMessage", "Message", "Loading", "TimeOut", "CardBorderStyle"], outputs: ["onRefresh"] }], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
829
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CardLongComponent, decorators: [{
830
+ type: Component,
831
+ args: [{ selector: 'medev-card-long', template: "\r\n <pgcard \r\n MinimalHeader=\"true\" \r\n TimeOut=\"2500\" \r\n [Refresh]=\"false\" \r\n [Close]=\"false\"\r\n >\r\n \r\n <ng-template #CardTitle>\r\n <ng-template class=\"card-title\" [ngTemplateOutlet]=\"title\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template #CardExtraControls>\r\n <div class=\"plugin-type\" \r\n [ngClass] = \"{\r\n 'b-color-Light-Gray-1': type_color === 'UNSET',\r\n 'b-color-Red': type_color === 'RED',\r\n 'b-color-Green': type_color === 'GREEN'}\">\r\n {{type_text}}\r\n </div>\r\n </ng-template>\r\n\r\n <div class=\"row h-100 m-b-10\">\r\n <div class=\"col-lg-3 col-12 card-col\">\r\n <div class=\"row\">\r\n <div class=\"col-12 card-img m-b-10\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\"\r\n style=\"max-width: 110px; max-height: 110px;\"/>\r\n </div>\r\n <div *ngIf=\"img\">\r\n <img src=\"{{img}}\" alt=\"\" class=\"image-responsive-height img-middle\"\r\n height=\"110px\" \r\n style=\"max-width: 110px; max-height: 110px;\"\r\n onclick=\"imgClick()\"\r\n />\r\n </div> \r\n </div>\r\n <div class=\"col-12 m-t-2 body-6 text-dark params-block\">\r\n <ng-template [ngTemplateOutlet]=\"params\"></ng-template> \r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-lg-5 col-12 card-col\">\r\n <ng-template [ngTemplateOutlet]=\"second_col\"></ng-template> \r\n </div>\r\n \r\n <div class=\"col-lg-4 col-12 card-col mt-lg-0 mt-5\">\r\n <ng-template [ngTemplateOutlet]=\"third_col\"></ng-template> \r\n </div> \r\n\r\n </div>\r\n </pgcard>", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,:host::ng-deep .card-title span,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,:host::ng-deep .plugin-type,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,:host::ng-deep .card-description,:host::ng-deep .card-no-description,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .params-block .row{margin-top:.75em}:host::ng-deep .params-block .row:last-child{margin-bottom:.75em}:host::ng-deep .card-col{min-height:220px}:host::ng-deep .header-link{opacity:1}:host::ng-deep .card-default{background-color:#f3f3f3;border-radius:5px}:host::ng-deep .card-title{width:80%;color:#000}:host::ng-deep .plugin-type{border-radius:5px 0 0 5px;margin-right:-20px;height:28px;padding:5px 15px;color:#fff}:host::ng-deep .card-description{height:40px;overflow-y:clip;color:#4d4d4d}:host::ng-deep .card-no-description{overflow-y:clip;height:60px;color:#929292}:host::ng-deep .card-img{padding:0;height:130px;background-color:#fff;display:flex;align-items:center;justify-content:center;width:-webkit-fill-available;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}\n"] }]
832
+ }], ctorParameters: function () { return [{ type: i1$1.Router }]; }, propDecorators: { title: [{
833
+ type: ContentChild,
834
+ args: ["title"]
835
+ }], params: [{
836
+ type: ContentChild,
837
+ args: ["params"]
838
+ }], second_col: [{
839
+ type: ContentChild,
840
+ args: ["second_col"]
841
+ }], third_col: [{
842
+ type: ContentChild,
843
+ args: ["third_col"]
844
+ }], type_text: [{
845
+ type: Input
846
+ }], type_color: [{
847
+ type: Input
848
+ }], img: [{
849
+ type: Input
850
+ }], imgUrl: [{
851
+ type: Input
852
+ }], description: [{
853
+ type: Input
854
+ }] } });
855
+
856
+ class CardSimpleComponent {
857
+ constructor() {
858
+ this.isDisabled = false;
859
+ }
860
+ ngOnInit() {
861
+ }
862
+ }
863
+ CardSimpleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CardSimpleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
864
+ CardSimpleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CardSimpleComponent, selector: "medev-card-simple", inputs: { isDisabled: ["disabled", "isDisabled"] }, queries: [{ propertyName: "card_title", first: true, predicate: ["card_title"], descendants: true }], ngImport: i0, template: "<div class=\"card-simple\" [ngClass]=\"{ 'unused-block':isDisabled }\">\r\n <div class=\"row m-2 body-1\" *ngIf=\"card_title\">\r\n <div class=\"col-12\">\r\n <ng-template [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"row m-2\">\r\n <div class=\"col-12\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-simple{background-color:#f3f3f3;padding:.5em;border-radius:5px}.unused-block{opacity:.6;pointer-events:none}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
865
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CardSimpleComponent, decorators: [{
866
+ type: Component,
867
+ args: [{ selector: 'medev-card-simple', template: "<div class=\"card-simple\" [ngClass]=\"{ 'unused-block':isDisabled }\">\r\n <div class=\"row m-2 body-1\" *ngIf=\"card_title\">\r\n <div class=\"col-12\">\r\n <ng-template [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"row m-2\">\r\n <div class=\"col-12\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-simple{background-color:#f3f3f3;padding:.5em;border-radius:5px}.unused-block{opacity:.6;pointer-events:none}\n"] }]
868
+ }], ctorParameters: function () { return []; }, propDecorators: { isDisabled: [{
869
+ type: Input,
870
+ args: ["disabled"]
871
+ }], card_title: [{
872
+ type: ContentChild,
873
+ args: ["card_title"]
874
+ }] } });
875
+
876
+ function toBoolean(value) {
877
+ return value === '' || (value && value !== 'false');
878
+ }
879
+
880
+ /* tslint:disable:no-any */
881
+ class OptionPipe {
882
+ // TODO: enable type checking for this method
883
+ transform(options, value) {
884
+ if (value.searchText) {
885
+ let _options = options.filter(option => option.Label &&
886
+ option.Label.toLowerCase().indexOf(value.searchText.toLowerCase()) !==
887
+ -1);
888
+ if (value.tags) {
889
+ _options = options.filter(option => option.Label &&
890
+ option.Label.toLowerCase() === value.searchText.toLowerCase());
891
+ }
892
+ if (_options.length) {
893
+ return _options;
894
+ }
895
+ else {
896
+ return [
897
+ {
898
+ Value: value.value,
899
+ _value: value.value,
900
+ Disabled: value.disabled,
901
+ _disabled: value.disabled,
902
+ Label: value.notFoundContent,
903
+ _label: value.notFoundContent
904
+ }
905
+ ];
906
+ }
907
+ }
908
+ else {
909
+ return options;
910
+ }
911
+ }
912
+ }
913
+ OptionPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: OptionPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
914
+ OptionPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: OptionPipe, name: "OptionPipe" });
915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: OptionPipe, decorators: [{
916
+ type: Pipe,
917
+ args: [{ name: "OptionPipe" }]
918
+ }] });
919
+
920
+ /**
921
+ * complex but work well
922
+ * TODO: rebuild latter
923
+ */
924
+ class pgSelectComponent {
925
+ constructor(_elementRef, _renderer, cDRef) {
926
+ this._elementRef = _elementRef;
927
+ this._renderer = _renderer;
928
+ this.cDRef = cDRef;
929
+ this._allowClear = false;
930
+ this._disabled = false;
931
+ this._isTags = false;
932
+ this._isMultiple = false;
933
+ this._keepUnListOptions = false;
934
+ this._showSearch = false;
935
+ this._isOpen = false;
936
+ this._prefixCls = "pg-select";
937
+ this._classList = [];
938
+ this._dropDownPrefixCls = `${this._prefixCls}-dropdown`;
939
+ this._selectionPrefixCls = `${this._prefixCls}-selection`;
940
+ this._placeholder = "placeholder";
941
+ this._notFoundContent = "No Content";
942
+ this._searchText = "";
943
+ this._triggerWidth = 0;
944
+ this._selectedOptions = new Set();
945
+ this._options = [];
946
+ this._cacheOptions = [];
947
+ this._filterOptions = [];
948
+ this._tagsOptions = [];
949
+ this._isMultiInit = false;
950
+ this._dropDownPosition = "bottom";
951
+ this._composing = false;
952
+ // ngModel Access
953
+ this.onChange = () => null;
954
+ this.onTouched = () => null;
955
+ this.SearchChange = new EventEmitter();
956
+ this.change = new EventEmitter();
957
+ this.OpenChange = new EventEmitter();
958
+ this.ScrollToBottom = new EventEmitter();
959
+ this.Filter = true;
960
+ this.MaxMultiple = Infinity;
961
+ this.FirstDefault = false;
962
+ /** new -option insert or new tags insert */
963
+ // @ts-ignore
964
+ this.addOption = option => {
965
+ this._options.push(option);
966
+ if (!this._isTags) {
967
+ if (option.Value) {
968
+ this.updateSelectedOption(this._value);
969
+ }
970
+ else {
971
+ this.forceUpdateSelectedOption(this._value);
972
+ }
973
+ }
974
+ };
975
+ /** cancel select multiple option */ // @ts-ignore
976
+ this.unSelectMultipleOption = (option, $event, emitChange = true) => {
977
+ this._operatingMultipleOption = option;
978
+ this._selectedOptions.delete(option);
979
+ if (emitChange) {
980
+ this.emitMultipleOptions();
981
+ }
982
+ // 对Tag进行特殊处理
983
+ if (this._isTags &&
984
+ this._options.indexOf(option) !== -1 &&
985
+ this._tagsOptions.indexOf(option) !== -1) {
986
+ this.removeOption(option);
987
+ this._tagsOptions.splice(this._tagsOptions.indexOf(option), 1);
988
+ }
989
+ if ($event) {
990
+ $event.preventDefault();
991
+ $event.stopPropagation();
992
+ }
993
+ };
994
+ this._el = this._elementRef.nativeElement;
995
+ }
996
+ set AllowClear(value) {
997
+ this._allowClear = toBoolean(value);
998
+ }
999
+ get AllowClear() {
1000
+ return this._allowClear;
1001
+ }
1002
+ set KeepUnListOptions(value) {
1003
+ this._keepUnListOptions = toBoolean(value);
1004
+ }
1005
+ get KeepUnListOptions() {
1006
+ return this._keepUnListOptions;
1007
+ }
1008
+ set Mode(value) {
1009
+ this._mode = value;
1010
+ if (this._mode === "multiple") {
1011
+ this.Multiple = true;
1012
+ }
1013
+ else if (this._mode === "tags") {
1014
+ this.Tags = true;
1015
+ }
1016
+ else if (this._mode === "combobox") {
1017
+ this.ShowSearch = true;
1018
+ }
1019
+ }
1020
+ set Multiple(value) {
1021
+ this._isMultiple = toBoolean(value);
1022
+ if (this._isMultiple) {
1023
+ this.ShowSearch = true;
1024
+ }
1025
+ }
1026
+ get Multiple() {
1027
+ return this._isMultiple;
1028
+ }
1029
+ set PlaceHolder(value) {
1030
+ this._placeholder = value;
1031
+ }
1032
+ get PlaceHolder() {
1033
+ return this._placeholder;
1034
+ }
1035
+ set NotFoundContent(value) {
1036
+ this._notFoundContent = value;
1037
+ }
1038
+ get NotFoundContent() {
1039
+ return this._notFoundContent;
1040
+ }
1041
+ set Size(value) {
1042
+ // @ts-ignore
1043
+ this._size = { large: "lg", small: "sm" }[value];
1044
+ this.setClassMap();
1045
+ }
1046
+ get Size() {
1047
+ return this._size;
1048
+ }
1049
+ set ShowSearch(value) {
1050
+ this._showSearch = toBoolean(value);
1051
+ }
1052
+ get ShowSearch() {
1053
+ return this._showSearch;
1054
+ }
1055
+ set Tags(value) {
1056
+ const isTags = toBoolean(value);
1057
+ this._isTags = isTags;
1058
+ this.Multiple = isTags;
1059
+ }
1060
+ get Tags() {
1061
+ return this._isTags;
1062
+ }
1063
+ set Disabled(value) {
1064
+ this._disabled = toBoolean(value);
1065
+ this.closeDropDown();
1066
+ this.setClassMap();
1067
+ }
1068
+ get Disabled() {
1069
+ return this._disabled;
1070
+ }
1071
+ set Open(value) {
1072
+ const isOpen = toBoolean(value);
1073
+ if (this._isOpen === isOpen) {
1074
+ return;
1075
+ }
1076
+ if (isOpen) {
1077
+ this.scrollToActive();
1078
+ this._setTriggerWidth();
1079
+ }
1080
+ this._isOpen = isOpen;
1081
+ this.OpenChange.emit(this._isOpen);
1082
+ this.setClassMap();
1083
+ if (this._isOpen) {
1084
+ setTimeout(() => {
1085
+ this.checkDropDownScroll();
1086
+ });
1087
+ }
1088
+ }
1089
+ get Open() {
1090
+ return this._isOpen;
1091
+ }
1092
+ /** -option remove or tags remove */
1093
+ removeOption(option) {
1094
+ this._options.splice(this._options.indexOf(option), 1);
1095
+ if (!this._isTags) {
1096
+ this.forceUpdateSelectedOption(this._value);
1097
+ }
1098
+ }
1099
+ /** dropdown position changed */
1100
+ onPositionChange(position) {
1101
+ this._dropDownPosition = position.connectionPair.originY;
1102
+ }
1103
+ compositionStart() {
1104
+ this._composing = true;
1105
+ }
1106
+ compositionEnd() {
1107
+ this._composing = false;
1108
+ }
1109
+ /** clear single selected option */
1110
+ clearSelect($event) {
1111
+ if ($event) {
1112
+ $event.preventDefault();
1113
+ $event.stopPropagation();
1114
+ } // @ts-ignore
1115
+ this._selectedOption = null; // @ts-ignore
1116
+ this.Value = null; // @ts-ignore
1117
+ this.onChange(null);
1118
+ }
1119
+ /** click dropdown option by user */
1120
+ clickOption(option, $event) {
1121
+ if (!option) {
1122
+ return;
1123
+ }
1124
+ this.chooseOption(option, true, $event);
1125
+ this.clearSearchText();
1126
+ if (!this._isMultiple) {
1127
+ this.Open = false;
1128
+ }
1129
+ }
1130
+ /** choose option */
1131
+ chooseOption(option, isUserClick = false, $event) {
1132
+ if ($event) {
1133
+ $event.preventDefault();
1134
+ $event.stopPropagation();
1135
+ }
1136
+ this._activeFilterOption = option;
1137
+ if (option && !option.Disabled) {
1138
+ if (!this.Multiple) {
1139
+ this._selectedOption = option;
1140
+ this._value = option.Value;
1141
+ if (isUserClick) {
1142
+ this.change.next(this._value);
1143
+ this.onChange(option.Value);
1144
+ }
1145
+ }
1146
+ else {
1147
+ if (isUserClick) {
1148
+ this.isInSet(this._selectedOptions, option)
1149
+ ? this.unSelectMultipleOption(option)
1150
+ : this.selectMultipleOption(option);
1151
+ }
1152
+ }
1153
+ }
1154
+ }
1155
+ updateWidth(element, text) {
1156
+ if (text) {
1157
+ /** wait for scroll width change */ // @ts-ignore
1158
+ setTimeout(_ => {
1159
+ this._renderer.setStyle(element, "width", `${element.scrollWidth}px`);
1160
+ });
1161
+ }
1162
+ else {
1163
+ this._renderer.removeStyle(element, "width");
1164
+ }
1165
+ }
1166
+ /** determine if option in set */
1167
+ isInSet(set, option) {
1168
+ return Array.from(set).find((data) => data.Value === option.Value);
1169
+ }
1170
+ /** select multiple option */
1171
+ selectMultipleOption(option, $event) {
1172
+ /** if tags do push to tag option */
1173
+ if (this._isTags &&
1174
+ this._options.indexOf(option) === -1 &&
1175
+ this._tagsOptions.indexOf(option) === -1) {
1176
+ this.addOption(option);
1177
+ this._tagsOptions.push(option);
1178
+ }
1179
+ this._operatingMultipleOption = option;
1180
+ if (this._selectedOptions.size < this.MaxMultiple) {
1181
+ this._selectedOptions.add(option);
1182
+ }
1183
+ this.emitMultipleOptions();
1184
+ if ($event) {
1185
+ $event.preventDefault();
1186
+ $event.stopPropagation();
1187
+ }
1188
+ }
1189
+ /** emit multiple options */
1190
+ emitMultipleOptions() {
1191
+ if (this._isMultiInit) {
1192
+ return;
1193
+ }
1194
+ const arrayOptions = Array.from(this._selectedOptions);
1195
+ this._value = arrayOptions.map(item => item.Value);
1196
+ this.onChange(this._value);
1197
+ }
1198
+ /** update selected option when add remove option etc */
1199
+ updateSelectedOption(currentModelValue, triggerByNgModel = false) {
1200
+ if (currentModelValue == null) {
1201
+ return;
1202
+ }
1203
+ if (this.Multiple) {
1204
+ const selectedOptions = this._options.filter(item => {
1205
+ return item != null && currentModelValue.indexOf(item.Value) !== -1;
1206
+ });
1207
+ if ((this.KeepUnListOptions || this.Tags) && !triggerByNgModel) {
1208
+ const _selectedOptions = Array.from(this._selectedOptions);
1209
+ selectedOptions.forEach(option => {
1210
+ const _exist = _selectedOptions.some(item => item._value === option._value);
1211
+ if (!_exist) {
1212
+ this._selectedOptions.add(option);
1213
+ }
1214
+ });
1215
+ }
1216
+ else {
1217
+ this._selectedOptions = new Set();
1218
+ selectedOptions.forEach(option => {
1219
+ this._selectedOptions.add(option);
1220
+ });
1221
+ }
1222
+ }
1223
+ else {
1224
+ const selectedOption = this._options.filter(item => {
1225
+ return item != null && item.Value === currentModelValue;
1226
+ });
1227
+ this.chooseOption(selectedOption[0]);
1228
+ }
1229
+ }
1230
+ forceUpdateSelectedOption(value) {
1231
+ /** trigger dirty check */ // @ts-ignore
1232
+ setTimeout(_ => {
1233
+ this.updateSelectedOption(value);
1234
+ });
1235
+ }
1236
+ get Value() {
1237
+ return this._value;
1238
+ }
1239
+ set Value(value) {
1240
+ this._updateValue(value);
1241
+ }
1242
+ clearAllSelectedOption(emitChange = true) {
1243
+ this._selectedOptions.forEach(item => {
1244
+ this.unSelectMultipleOption(item, null, emitChange);
1245
+ });
1246
+ }
1247
+ handleKeyEnterEvent(event) {
1248
+ /** when composing end */
1249
+ if (!this._composing && this._isOpen) {
1250
+ event.preventDefault();
1251
+ event.stopPropagation();
1252
+ this.updateFilterOption(false);
1253
+ this.clickOption(this._activeFilterOption);
1254
+ }
1255
+ }
1256
+ handleKeyBackspaceEvent(event) {
1257
+ if (!this._searchText && !this._composing && this._isMultiple) {
1258
+ event.preventDefault();
1259
+ const lastOption = Array.from(this._selectedOptions).pop();
1260
+ this.unSelectMultipleOption(lastOption);
1261
+ }
1262
+ }
1263
+ handleKeyDownEvent($event) {
1264
+ if (this._isOpen) {
1265
+ $event.preventDefault();
1266
+ $event.stopPropagation();
1267
+ this._activeFilterOption = this.nextOption(this._activeFilterOption, this._filterOptions.filter(w => !w.Disabled));
1268
+ this.scrollToActive();
1269
+ }
1270
+ }
1271
+ handleKeyUpEvent($event) {
1272
+ if (this._isOpen) {
1273
+ $event.preventDefault();
1274
+ $event.stopPropagation();
1275
+ this._activeFilterOption = this.preOption(this._activeFilterOption, this._filterOptions.filter(w => !w.Disabled));
1276
+ this.scrollToActive();
1277
+ }
1278
+ }
1279
+ preOption(option, options) {
1280
+ return options[options.indexOf(option) - 1] || options[options.length - 1];
1281
+ }
1282
+ nextOption(option, options) {
1283
+ return options[options.indexOf(option) + 1] || options[0];
1284
+ }
1285
+ clearSearchText() {
1286
+ this._searchText = "";
1287
+ this.updateFilterOption();
1288
+ }
1289
+ updateFilterOption(updateActiveFilter = true) {
1290
+ if (this.Filter) {
1291
+ this._filterOptions = new OptionPipe().transform(this._options, {
1292
+ searchText: this._searchText,
1293
+ tags: this._isTags,
1294
+ notFoundContent: this._isTags
1295
+ ? this._searchText
1296
+ : this._notFoundContent,
1297
+ disabled: !this._isTags,
1298
+ value: this._isTags ? this._searchText : "disabled"
1299
+ });
1300
+ }
1301
+ else {
1302
+ this._filterOptions = this._options;
1303
+ }
1304
+ /** TODO: cause pre & next key selection not work */
1305
+ if (updateActiveFilter && !this._selectedOption) {
1306
+ this._activeFilterOption = this._filterOptions[0];
1307
+ }
1308
+ }
1309
+ onSearchChange(searchValue) {
1310
+ this.SearchChange.emit(searchValue);
1311
+ }
1312
+ onClick(e) {
1313
+ e.preventDefault();
1314
+ if (!this._disabled) {
1315
+ this.Open = !this.Open;
1316
+ if (this.ShowSearch) {
1317
+ /** wait for search display */ // @ts-ignore
1318
+ setTimeout(_ => {
1319
+ this.searchInputElementRef.nativeElement.focus();
1320
+ });
1321
+ }
1322
+ }
1323
+ }
1324
+ onKeyDown(e) {
1325
+ const keyCode = e.keyCode;
1326
+ if (keyCode === TAB && this.Open) {
1327
+ this.Open = false;
1328
+ return;
1329
+ }
1330
+ if ((keyCode !== DOWN_ARROW && keyCode !== ENTER) || this.Open) {
1331
+ return;
1332
+ }
1333
+ e.preventDefault();
1334
+ if (!this._disabled) {
1335
+ this.Open = true;
1336
+ if (this.ShowSearch) {
1337
+ /** wait for search display */ // @ts-ignore
1338
+ setTimeout(_ => {
1339
+ this.searchInputElementRef.nativeElement.focus();
1340
+ });
1341
+ }
1342
+ }
1343
+ }
1344
+ closeDropDown() {
1345
+ if (!this.Open) {
1346
+ return;
1347
+ }
1348
+ this.onTouched();
1349
+ if (this.Multiple) {
1350
+ this._renderer.removeStyle(this.searchInputElementRef.nativeElement, "width");
1351
+ }
1352
+ this.clearSearchText();
1353
+ this.Open = false;
1354
+ }
1355
+ setClassMap() {
1356
+ this._classList.forEach(_className => {
1357
+ this._renderer.removeClass(this._el, _className);
1358
+ }); // @ts-ignore
1359
+ this._classList = [
1360
+ this._prefixCls,
1361
+ this._mode === "combobox" && `${this._prefixCls}-combobox`,
1362
+ !this._disabled && `${this._prefixCls}-enabled`,
1363
+ this._disabled && `${this._prefixCls}-disabled`,
1364
+ this._isOpen && `${this._prefixCls}-open`,
1365
+ this._showSearch && `${this._prefixCls}-show-search`,
1366
+ this._size && `${this._prefixCls}-${this._size}`
1367
+ ].filter(item => {
1368
+ return !!item;
1369
+ });
1370
+ this._classList.forEach(_className => {
1371
+ this._renderer.addClass(this._el, _className);
1372
+ });
1373
+ this._selectionClassMap = {
1374
+ [this._selectionPrefixCls]: true,
1375
+ [`${this._selectionPrefixCls}--single`]: !this.Multiple,
1376
+ [`${this._selectionPrefixCls}--multiple`]: this.Multiple
1377
+ };
1378
+ }
1379
+ setDropDownClassMap() {
1380
+ this._dropDownClassMap = {
1381
+ [this._dropDownPrefixCls]: true,
1382
+ ["component-select"]: this._mode === "combobox",
1383
+ [`${this._dropDownPrefixCls}--single`]: !this.Multiple,
1384
+ [`${this._dropDownPrefixCls}--multiple`]: this.Multiple,
1385
+ [`${this._dropDownPrefixCls}-placement-bottomLeft`]: this._dropDownPosition === "bottom",
1386
+ [`${this._dropDownPrefixCls}-placement-topLeft`]: this._dropDownPosition === "top"
1387
+ };
1388
+ }
1389
+ scrollToActive() {
1390
+ /** wait for dropdown display */ // @ts-ignore
1391
+ setTimeout(_ => {
1392
+ if (this._activeFilterOption && this._activeFilterOption.Value) {
1393
+ const index = this._filterOptions.findIndex(option => option.Value === this._activeFilterOption.Value);
1394
+ try {
1395
+ const scrollPane = this.dropdownUl.nativeElement.children[index];
1396
+ // TODO: scrollIntoViewIfNeeded is not a standard API, why doing so?
1397
+ /* tslint:disable-next-line:no-any */
1398
+ scrollPane.scrollIntoViewIfNeeded(false);
1399
+ }
1400
+ catch (e) { }
1401
+ }
1402
+ });
1403
+ }
1404
+ flushComponentState() {
1405
+ this.updateFilterOption();
1406
+ if (!this.Multiple) {
1407
+ this.updateSelectedOption(this._value);
1408
+ }
1409
+ else {
1410
+ if (this._value) {
1411
+ this.updateSelectedOption(this._value);
1412
+ }
1413
+ }
1414
+ }
1415
+ _setTriggerWidth() {
1416
+ this._triggerWidth = this._getTriggerRect().width;
1417
+ /** should remove after after https://github.com/angular/material2/pull/8765 merged **/
1418
+ if (this._cdkOverlay && this._cdkOverlay.overlayRef) {
1419
+ this._cdkOverlay.overlayRef.updateSize({
1420
+ width: this._triggerWidth
1421
+ });
1422
+ }
1423
+ }
1424
+ _getTriggerRect() {
1425
+ return this.trigger.nativeElement.getBoundingClientRect();
1426
+ }
1427
+ writeValue(value) {
1428
+ this._updateValue(value, false);
1429
+ }
1430
+ registerOnChange(fn) {
1431
+ this.onChange = fn;
1432
+ }
1433
+ registerOnTouched(fn) {
1434
+ this.onTouched = fn;
1435
+ }
1436
+ setDisabledState(isDisabled) {
1437
+ this.Disabled = isDisabled;
1438
+ }
1439
+ dropDownScroll(ul) {
1440
+ if (ul && ul.scrollHeight - ul.scrollTop === ul.clientHeight) {
1441
+ this.ScrollToBottom.emit(true);
1442
+ }
1443
+ }
1444
+ checkDropDownScroll() {
1445
+ if (this.dropdownUl &&
1446
+ this.dropdownUl.nativeElement.scrollHeight ===
1447
+ this.dropdownUl.nativeElement.clientHeight) {
1448
+ this.ScrollToBottom.emit(true);
1449
+ }
1450
+ }
1451
+ ngAfterContentInit() {
1452
+ if (this._value != null) {
1453
+ this.flushComponentState();
1454
+ }
1455
+ }
1456
+ ngOnInit() {
1457
+ this.updateFilterOption();
1458
+ this.setClassMap();
1459
+ this.setDropDownClassMap();
1460
+ }
1461
+ ngAfterContentChecked() {
1462
+ if (this._cacheOptions !== this._options) {
1463
+ /** update filter option after every content check cycle */
1464
+ this.updateFilterOption();
1465
+ this._cacheOptions = this._options;
1466
+ }
1467
+ else {
1468
+ this.updateFilterOption(false);
1469
+ }
1470
+ if (this.FirstDefault) {
1471
+ if (!this._value && this._options) {
1472
+ if (this._options[0] !== undefined && this._options[0].Value) {
1473
+ this.chooseOption(this._options[0], false);
1474
+ setTimeout(() => {
1475
+ this.onChange(this._options[0].Value);
1476
+ });
1477
+ }
1478
+ }
1479
+ }
1480
+ }
1481
+ _updateValue(value, emitChange = true) {
1482
+ if (this._value === value) {
1483
+ return;
1484
+ }
1485
+ if (value == null && this.Multiple) {
1486
+ this._value = [];
1487
+ }
1488
+ else {
1489
+ this._value = value;
1490
+ }
1491
+ if (!this.Multiple) {
1492
+ if (value == null) { // @ts-ignore
1493
+ this._selectedOption = null;
1494
+ }
1495
+ else {
1496
+ this.updateSelectedOption(value);
1497
+ }
1498
+ }
1499
+ else {
1500
+ if (value) {
1501
+ if (value.length === 0) {
1502
+ this.clearAllSelectedOption(emitChange);
1503
+ }
1504
+ else {
1505
+ this.updateSelectedOption(value, true);
1506
+ }
1507
+ }
1508
+ else if (value == null) {
1509
+ this.clearAllSelectedOption(emitChange);
1510
+ }
1511
+ }
1512
+ }
1513
+ }
1514
+ pgSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgSelectComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1515
+ pgSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: pgSelectComponent, selector: "pg-select", inputs: { Filter: "Filter", MaxMultiple: "MaxMultiple", FirstDefault: "FirstDefault", AllowClear: "AllowClear", KeepUnListOptions: "KeepUnListOptions", Mode: "Mode", Multiple: "Multiple", PlaceHolder: "PlaceHolder", NotFoundContent: "NotFoundContent", Size: "Size", ShowSearch: "ShowSearch", Tags: "Tags", Disabled: "Disabled", Open: "Open" }, outputs: { SearchChange: "SearchChange", change: "change", OpenChange: "OpenChange", ScrollToBottom: "ScrollToBottom" }, host: { listeners: { "click": "onClick($event)", "keydown": "onKeyDown($event)" } }, providers: [
1516
+ {
1517
+ provide: NG_VALUE_ACCESSOR,
1518
+ useExisting: forwardRef(() => pgSelectComponent),
1519
+ multi: true
1520
+ }
1521
+ ], viewQueries: [{ propertyName: "searchInputElementRef", first: true, predicate: ["searchInput"], descendants: true }, { propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true }, { propertyName: "dropdownUl", first: true, predicate: ["dropdownUl"], descendants: true }, { propertyName: "_cdkOverlay", first: true, predicate: CdkConnectedOverlay, descendants: true }], ngImport: i0, template: "<div tabindex=\"0\" #trigger cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" [ngClass]=\"_selectionClassMap\"\r\n (keydown.Enter)=\"handleKeyEnterEvent($event)\" (keydown.Backspace)=\"handleKeyBackspaceEvent($event)\"\r\n (keydown.ArrowUp)=\"handleKeyUpEvent($event)\" (keydown.ArrowDown)=\"handleKeyDownEvent($event)\">\r\n <div class=\"pg-select-selection__rendered\" *ngIf=\"!ShowSearch\">\r\n <div class=\"pg-select-selection__placeholder\">\r\n <ng-template [ngIf]=\"!_selectedOption\">\r\n {{ PlaceHolder }}\r\n </ng-template>\r\n </div>\r\n <div class=\"pg-select-selection-selected-value\">\r\n {{ _selectedOption?.Label }}\r\n </div>\r\n </div>\r\n <div class=\"pg-select-selection__rendered\" *ngIf=\"ShowSearch\">\r\n <div [hidden]=\"_searchText||(!Open&&_selectedOption)||_selectedOptions.size\"\r\n class=\"pg-select-selection__placeholder\">\r\n <ng-template [ngIf]=\"(!_composing)&&_selectedOption\">\r\n {{ _selectedOption.Label }}\r\n </ng-template>\r\n <ng-template [ngIf]=\"(!_composing)&&(!_selectedOption)\">\r\n {{ PlaceHolder }}\r\n </ng-template>\r\n </div>\r\n <ul *ngIf=\"Multiple\">\r\n <li *ngFor=\"let option of _selectedOptions\" [@tagAnimation] [attr.title]=\"option?.Label || option?.Value\"\r\n class=\"pg-select-selection__choice\" style=\"-webkit-user-select: none;\">\r\n <span class=\"pg-select-selection__choice__remove\" (click)=\"unSelectMultipleOption(option,$event)\"></span>\r\n <div class=\"pg-select-selection__choice__content\">{{ option?.Label }}</div>\r\n </li>\r\n <li class=\"pg-select-search pg-select-search--inline\">\r\n <div class=\"pg-select-search__field__wrap\">\r\n <input class=\"pg-select-search__field\" (compositionstart)=\"compositionStart()\"\r\n (compositionend)=\"compositionEnd();updateWidth(searchInput,_searchText);\" [(ngModel)]=\"_searchText\"\r\n (ngModelChange)=\"updateFilterOption();onSearchChange($event);\"\r\n (keydown)=\"updateWidth(searchInput,_searchText)\" (input)=\"updateWidth(searchInput,_searchText)\"\r\n (blur)=\"onTouched()\" #searchInput>\r\n <span class=\"pg-select-search__field__mirror\"></span></div>\r\n </li>\r\n </ul>\r\n <div *ngIf=\"!Multiple\" class=\"pg-select-selection-selected-value\" [hidden]=\"!(_selectedOption?.Label)||Open\">\r\n {{ _selectedOption?.Label }}\r\n </div>\r\n <div *ngIf=\"!Multiple\" [hidden]=\"!Open\" class=\"pg-select-search pg-select-search--inline\">\r\n <div class=\"pg-select-search__field__wrap\">\r\n <input class=\"pg-select-search__field\" (blur)=\"onTouched()\" (compositionstart)=\"compositionStart()\"\r\n (compositionend)=\"compositionEnd()\" [(ngModel)]=\"_searchText\"\r\n (ngModelChange)=\"updateFilterOption();onSearchChange($event);\" #searchInput>\r\n <span class=\"pg-select-search__field__mirror\"></span>\r\n </div>\r\n </div>\r\n </div>\r\n <span (click)=\"onTouched();clearSelect($event)\" class=\"pg-select-selection__clear\" style=\"-webkit-user-select: none;\"\r\n *ngIf=\"_selectedOption?.Label&&AllowClear&&!Multiple\">\r\n </span>\r\n <span class=\"pg-select-arrow\"><b></b></span>\r\n</div>\r\n<ng-template cdkConnectedOverlay cdkConnectedOverlayHasBackdrop [cdkConnectedOverlayOrigin]=\"origin\"\r\n (backdropClick)=\"closeDropDown()\" (detach)=\"closeDropDown();\" (positionChange)=\"onPositionChange($event)\"\r\n [cdkConnectedOverlayWidth]=\"_triggerWidth\" [cdkConnectedOverlayOpen]=\"_isOpen\">\r\n <div [ngClass]=\"_dropDownClassMap\" [@dropDownAnimation]=\"_dropDownPosition\">\r\n <div style=\"overflow: auto;\">\r\n <ul class=\"pg-select-dropdown-menu pg-select-dropdown-menu-vertical pg-select-dropdown-menu-root\" #dropdownUl\r\n (scroll)=\"dropDownScroll(dropdownUl)\">\r\n <li *ngFor=\"let option of _filterOptions\" [class.pg-select-dropdown-menu-item-disabled]=\"option.Disabled\"\r\n [class.pg-select-dropdown-menu-item-active]=\"option.Value == _activeFilterOption?.Value\"\r\n [class.pg-select-dropdown-menu-item-selected]=\"(option.Value==(_selectedOption?.Value))||(isInSet(_selectedOptions,option))\"\r\n class=\"pg-select-dropdown-menu-item\" (click)=\"clickOption(option,$event)\">\r\n <ng-template *ngIf=\"option.OptionTemplate\" [ngTemplateOutlet]=\"option.OptionTemplate\">\r\n </ng-template>\r\n <ng-template [ngIf]=\"!option.OptionTemplate\">\r\n {{ option.Label }}\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</ng-template>", directives: [{ type: i1$2.CdkOverlayOrigin, selector: "[cdk-overlay-origin], [overlay-origin], [cdkOverlayOrigin]", exportAs: ["cdkOverlayOrigin"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i3.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i1$2.CdkConnectedOverlay, selector: "[cdk-connected-overlay], [connected-overlay], [cdkConnectedOverlay]", inputs: ["cdkConnectedOverlayOrigin", "cdkConnectedOverlayPositions", "cdkConnectedOverlayPositionStrategy", "cdkConnectedOverlayOffsetX", "cdkConnectedOverlayOffsetY", "cdkConnectedOverlayWidth", "cdkConnectedOverlayHeight", "cdkConnectedOverlayMinWidth", "cdkConnectedOverlayMinHeight", "cdkConnectedOverlayBackdropClass", "cdkConnectedOverlayPanelClass", "cdkConnectedOverlayViewportMargin", "cdkConnectedOverlayScrollStrategy", "cdkConnectedOverlayOpen", "cdkConnectedOverlayDisableClose", "cdkConnectedOverlayTransformOriginOn", "cdkConnectedOverlayHasBackdrop", "cdkConnectedOverlayLockPosition", "cdkConnectedOverlayFlexibleDimensions", "cdkConnectedOverlayGrowAfterOpen", "cdkConnectedOverlayPush"], outputs: ["backdropClick", "positionChange", "attach", "detach", "overlayKeydown", "overlayOutsideClick"], exportAs: ["cdkConnectedOverlay"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], animations: [trigger('dropDownAnimation', [
1522
+ state('bottom', style({
1523
+ opacity: 1,
1524
+ transform: 'scaleY(1)',
1525
+ transformOrigin: '0% 0%'
1526
+ })),
1527
+ transition('void => bottom', [
1528
+ style({
1529
+ opacity: 0,
1530
+ transform: 'scaleY(0)',
1531
+ transformOrigin: '0% 0%'
1532
+ }),
1533
+ animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1534
+ ]),
1535
+ state('top', style({
1536
+ opacity: 1,
1537
+ transform: 'scaleY(1)',
1538
+ transformOrigin: '0% 100%'
1539
+ })),
1540
+ transition('void => top', [
1541
+ style({
1542
+ opacity: 0,
1543
+ transform: 'scaleY(0)',
1544
+ transformOrigin: '0% 100%'
1545
+ }),
1546
+ animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1547
+ ]),
1548
+ transition('* => void', [
1549
+ animate('250ms 100ms linear', style({ opacity: 0 }))
1550
+ ])
1551
+ ]),
1552
+ trigger('tagAnimation', [
1553
+ state('*', style({ opacity: 1, transform: 'scale(1)' })),
1554
+ transition('void => *', [
1555
+ style({ opacity: 0, transform: 'scale(0)' }),
1556
+ animate('150ms linear')
1557
+ ]),
1558
+ state('void', style({ opacity: 0, transform: 'scale(0)' })),
1559
+ transition('* => void', [
1560
+ style({ opacity: 1, transform: 'scale(1)' }),
1561
+ animate('150ms linear')
1562
+ ])
1563
+ ])], encapsulation: i0.ViewEncapsulation.None });
1564
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgSelectComponent, decorators: [{
1565
+ type: Component,
1566
+ args: [{ selector: "pg-select", encapsulation: ViewEncapsulation.None, providers: [
1567
+ {
1568
+ provide: NG_VALUE_ACCESSOR,
1569
+ useExisting: forwardRef(() => pgSelectComponent),
1570
+ multi: true
1571
+ }
1572
+ ], animations: [trigger('dropDownAnimation', [
1573
+ state('bottom', style({
1574
+ opacity: 1,
1575
+ transform: 'scaleY(1)',
1576
+ transformOrigin: '0% 0%'
1577
+ })),
1578
+ transition('void => bottom', [
1579
+ style({
1580
+ opacity: 0,
1581
+ transform: 'scaleY(0)',
1582
+ transformOrigin: '0% 0%'
1583
+ }),
1584
+ animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1585
+ ]),
1586
+ state('top', style({
1587
+ opacity: 1,
1588
+ transform: 'scaleY(1)',
1589
+ transformOrigin: '0% 100%'
1590
+ })),
1591
+ transition('void => top', [
1592
+ style({
1593
+ opacity: 0,
1594
+ transform: 'scaleY(0)',
1595
+ transformOrigin: '0% 100%'
1596
+ }),
1597
+ animate('150ms cubic-bezier(0.25, 0.8, 0.25, 1)')
1598
+ ]),
1599
+ transition('* => void', [
1600
+ animate('250ms 100ms linear', style({ opacity: 0 }))
1601
+ ])
1602
+ ]),
1603
+ trigger('tagAnimation', [
1604
+ state('*', style({ opacity: 1, transform: 'scale(1)' })),
1605
+ transition('void => *', [
1606
+ style({ opacity: 0, transform: 'scale(0)' }),
1607
+ animate('150ms linear')
1608
+ ]),
1609
+ state('void', style({ opacity: 0, transform: 'scale(0)' })),
1610
+ transition('* => void', [
1611
+ style({ opacity: 1, transform: 'scale(1)' }),
1612
+ animate('150ms linear')
1613
+ ])
1614
+ ])], template: "<div tabindex=\"0\" #trigger cdkOverlayOrigin #origin=\"cdkOverlayOrigin\" [ngClass]=\"_selectionClassMap\"\r\n (keydown.Enter)=\"handleKeyEnterEvent($event)\" (keydown.Backspace)=\"handleKeyBackspaceEvent($event)\"\r\n (keydown.ArrowUp)=\"handleKeyUpEvent($event)\" (keydown.ArrowDown)=\"handleKeyDownEvent($event)\">\r\n <div class=\"pg-select-selection__rendered\" *ngIf=\"!ShowSearch\">\r\n <div class=\"pg-select-selection__placeholder\">\r\n <ng-template [ngIf]=\"!_selectedOption\">\r\n {{ PlaceHolder }}\r\n </ng-template>\r\n </div>\r\n <div class=\"pg-select-selection-selected-value\">\r\n {{ _selectedOption?.Label }}\r\n </div>\r\n </div>\r\n <div class=\"pg-select-selection__rendered\" *ngIf=\"ShowSearch\">\r\n <div [hidden]=\"_searchText||(!Open&&_selectedOption)||_selectedOptions.size\"\r\n class=\"pg-select-selection__placeholder\">\r\n <ng-template [ngIf]=\"(!_composing)&&_selectedOption\">\r\n {{ _selectedOption.Label }}\r\n </ng-template>\r\n <ng-template [ngIf]=\"(!_composing)&&(!_selectedOption)\">\r\n {{ PlaceHolder }}\r\n </ng-template>\r\n </div>\r\n <ul *ngIf=\"Multiple\">\r\n <li *ngFor=\"let option of _selectedOptions\" [@tagAnimation] [attr.title]=\"option?.Label || option?.Value\"\r\n class=\"pg-select-selection__choice\" style=\"-webkit-user-select: none;\">\r\n <span class=\"pg-select-selection__choice__remove\" (click)=\"unSelectMultipleOption(option,$event)\"></span>\r\n <div class=\"pg-select-selection__choice__content\">{{ option?.Label }}</div>\r\n </li>\r\n <li class=\"pg-select-search pg-select-search--inline\">\r\n <div class=\"pg-select-search__field__wrap\">\r\n <input class=\"pg-select-search__field\" (compositionstart)=\"compositionStart()\"\r\n (compositionend)=\"compositionEnd();updateWidth(searchInput,_searchText);\" [(ngModel)]=\"_searchText\"\r\n (ngModelChange)=\"updateFilterOption();onSearchChange($event);\"\r\n (keydown)=\"updateWidth(searchInput,_searchText)\" (input)=\"updateWidth(searchInput,_searchText)\"\r\n (blur)=\"onTouched()\" #searchInput>\r\n <span class=\"pg-select-search__field__mirror\"></span></div>\r\n </li>\r\n </ul>\r\n <div *ngIf=\"!Multiple\" class=\"pg-select-selection-selected-value\" [hidden]=\"!(_selectedOption?.Label)||Open\">\r\n {{ _selectedOption?.Label }}\r\n </div>\r\n <div *ngIf=\"!Multiple\" [hidden]=\"!Open\" class=\"pg-select-search pg-select-search--inline\">\r\n <div class=\"pg-select-search__field__wrap\">\r\n <input class=\"pg-select-search__field\" (blur)=\"onTouched()\" (compositionstart)=\"compositionStart()\"\r\n (compositionend)=\"compositionEnd()\" [(ngModel)]=\"_searchText\"\r\n (ngModelChange)=\"updateFilterOption();onSearchChange($event);\" #searchInput>\r\n <span class=\"pg-select-search__field__mirror\"></span>\r\n </div>\r\n </div>\r\n </div>\r\n <span (click)=\"onTouched();clearSelect($event)\" class=\"pg-select-selection__clear\" style=\"-webkit-user-select: none;\"\r\n *ngIf=\"_selectedOption?.Label&&AllowClear&&!Multiple\">\r\n </span>\r\n <span class=\"pg-select-arrow\"><b></b></span>\r\n</div>\r\n<ng-template cdkConnectedOverlay cdkConnectedOverlayHasBackdrop [cdkConnectedOverlayOrigin]=\"origin\"\r\n (backdropClick)=\"closeDropDown()\" (detach)=\"closeDropDown();\" (positionChange)=\"onPositionChange($event)\"\r\n [cdkConnectedOverlayWidth]=\"_triggerWidth\" [cdkConnectedOverlayOpen]=\"_isOpen\">\r\n <div [ngClass]=\"_dropDownClassMap\" [@dropDownAnimation]=\"_dropDownPosition\">\r\n <div style=\"overflow: auto;\">\r\n <ul class=\"pg-select-dropdown-menu pg-select-dropdown-menu-vertical pg-select-dropdown-menu-root\" #dropdownUl\r\n (scroll)=\"dropDownScroll(dropdownUl)\">\r\n <li *ngFor=\"let option of _filterOptions\" [class.pg-select-dropdown-menu-item-disabled]=\"option.Disabled\"\r\n [class.pg-select-dropdown-menu-item-active]=\"option.Value == _activeFilterOption?.Value\"\r\n [class.pg-select-dropdown-menu-item-selected]=\"(option.Value==(_selectedOption?.Value))||(isInSet(_selectedOptions,option))\"\r\n class=\"pg-select-dropdown-menu-item\" (click)=\"clickOption(option,$event)\">\r\n <ng-template *ngIf=\"option.OptionTemplate\" [ngTemplateOutlet]=\"option.OptionTemplate\">\r\n </ng-template>\r\n <ng-template [ngIf]=\"!option.OptionTemplate\">\r\n {{ option.Label }}\r\n </ng-template>\r\n </li>\r\n </ul>\r\n </div>\r\n </div>\r\n</ng-template>" }]
1615
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { searchInputElementRef: [{
1616
+ type: ViewChild,
1617
+ args: ["searchInput"]
1618
+ }], trigger: [{
1619
+ type: ViewChild,
1620
+ args: ["trigger"]
1621
+ }], dropdownUl: [{
1622
+ type: ViewChild,
1623
+ args: ["dropdownUl"]
1624
+ }], SearchChange: [{
1625
+ type: Output
1626
+ }], change: [{
1627
+ type: Output
1628
+ }], OpenChange: [{
1629
+ type: Output
1630
+ }], ScrollToBottom: [{
1631
+ type: Output
1632
+ }], Filter: [{
1633
+ type: Input
1634
+ }], MaxMultiple: [{
1635
+ type: Input
1636
+ }], FirstDefault: [{
1637
+ type: Input
1638
+ }], _cdkOverlay: [{
1639
+ type: ViewChild,
1640
+ args: [CdkConnectedOverlay]
1641
+ }], AllowClear: [{
1642
+ type: Input
1643
+ }], KeepUnListOptions: [{
1644
+ type: Input
1645
+ }], Mode: [{
1646
+ type: Input
1647
+ }], Multiple: [{
1648
+ type: Input
1649
+ }], PlaceHolder: [{
1650
+ type: Input
1651
+ }], NotFoundContent: [{
1652
+ type: Input
1653
+ }], Size: [{
1654
+ type: Input
1655
+ }], ShowSearch: [{
1656
+ type: Input
1657
+ }], Tags: [{
1658
+ type: Input
1659
+ }], Disabled: [{
1660
+ type: Input
1661
+ }], Open: [{
1662
+ type: Input
1663
+ }], onClick: [{
1664
+ type: HostListener,
1665
+ args: ["click", ["$event"]]
1666
+ }], onKeyDown: [{
1667
+ type: HostListener,
1668
+ args: ["keydown", ["$event"]]
1669
+ }] } });
1670
+
1671
+ class pgOptionComponent {
1672
+ constructor(_Select) {
1673
+ this._Select = _Select;
1674
+ this._disabled = false;
1675
+ }
1676
+ set Value(value) {
1677
+ if (this._value === value) {
1678
+ return;
1679
+ }
1680
+ this._value = value;
1681
+ }
1682
+ get Value() {
1683
+ return this._value;
1684
+ }
1685
+ set Label(value) {
1686
+ if (this._label === value) {
1687
+ return;
1688
+ }
1689
+ this._label = value;
1690
+ }
1691
+ get Label() {
1692
+ return this._label;
1693
+ }
1694
+ set Disabled(value) {
1695
+ this._disabled = toBoolean(value);
1696
+ }
1697
+ get Disabled() {
1698
+ return this._disabled;
1699
+ }
1700
+ ngOnInit() {
1701
+ this._Select.addOption(this);
1702
+ }
1703
+ ngOnDestroy() {
1704
+ this._Select.removeOption(this);
1705
+ }
1706
+ }
1707
+ pgOptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgOptionComponent, deps: [{ token: pgSelectComponent }], target: i0.ɵɵFactoryTarget.Component });
1708
+ pgOptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: pgOptionComponent, selector: "pg-option", inputs: { Value: "Value", Label: "Label", Disabled: "Disabled" }, queries: [{ propertyName: "OptionTemplate", first: true, predicate: ["OptionTemplate"], descendants: true }], ngImport: i0, template: `
1709
+ <ng-content></ng-content>
1710
+ `, isInline: true, encapsulation: i0.ViewEncapsulation.None });
1711
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgOptionComponent, decorators: [{
1712
+ type: Component,
1713
+ args: [{ selector: "pg-option", encapsulation: ViewEncapsulation.None, template: `
1714
+ <ng-content></ng-content>
1715
+ `, styles: [] }]
1716
+ }], ctorParameters: function () { return [{ type: pgSelectComponent }]; }, propDecorators: { OptionTemplate: [{
1717
+ type: ContentChild,
1718
+ args: ["OptionTemplate"]
1719
+ }], Value: [{
1720
+ type: Input
1721
+ }], Label: [{
1722
+ type: Input
1723
+ }], Disabled: [{
1724
+ type: Input
1725
+ }] } });
1726
+
1727
+ class PgSelectModule {
1728
+ }
1729
+ PgSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PgSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1730
+ PgSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PgSelectModule, declarations: [OptionPipe, pgOptionComponent, pgSelectComponent], imports: [CommonModule, FormsModule, OverlayModule], exports: [OptionPipe, pgOptionComponent, pgSelectComponent] });
1731
+ PgSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PgSelectModule, imports: [[CommonModule, FormsModule, OverlayModule]] });
1732
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: PgSelectModule, decorators: [{
1733
+ type: NgModule,
1734
+ args: [{
1735
+ imports: [CommonModule, FormsModule, OverlayModule],
1736
+ declarations: [OptionPipe, pgOptionComponent, pgSelectComponent],
1737
+ exports: [OptionPipe, pgOptionComponent, pgSelectComponent]
1738
+ }]
1739
+ }] });
1740
+
1741
+ class ProgressConfig {
1742
+ constructor() {
1743
+ this.color = "primary";
1744
+ this.thickness = 1;
1745
+ }
1746
+ }
1747
+ ProgressConfig.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressConfig, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1748
+ ProgressConfig.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressConfig });
1749
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressConfig, decorators: [{
1750
+ type: Injectable
1751
+ }] });
1752
+
1753
+ class ProgressModule {
1754
+ static forRoot() {
1755
+ return { ngModule: ProgressModule, providers: [ProgressConfig] };
1756
+ }
1757
+ }
1758
+ ProgressModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1759
+ ProgressModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressModule, declarations: [ProgressComponent], imports: [CommonModule], exports: [ProgressComponent] });
1760
+ ProgressModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressModule, imports: [[CommonModule]] });
1761
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProgressModule, decorators: [{
1762
+ type: NgModule,
1763
+ args: [{
1764
+ imports: [CommonModule],
1765
+ declarations: [ProgressComponent],
1766
+ exports: [ProgressComponent]
1767
+ }]
1768
+ }] });
1769
+
1770
+ class pgCardModule {
1771
+ static forRoot() {
1772
+ return {
1773
+ ngModule: pgCardModule
1774
+ };
1775
+ }
1776
+ }
1777
+ pgCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1778
+ pgCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgCardModule, declarations: [pgCard], imports: [CommonModule, ProgressModule, TranslateModule], exports: [pgCard] });
1779
+ pgCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgCardModule, imports: [[CommonModule, ProgressModule, TranslateModule]] });
1780
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgCardModule, decorators: [{
1781
+ type: NgModule,
1782
+ args: [{
1783
+ declarations: [pgCard],
1784
+ exports: [pgCard],
1785
+ imports: [CommonModule, ProgressModule, TranslateModule]
1786
+ }]
1787
+ }] });
1788
+
1789
+ const mefDevCardComponents = [CardComponent, CardLongComponent, CardSimpleComponent];
1790
+ class MefDevCardModule {
1791
+ }
1792
+ MefDevCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1793
+ MefDevCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevCardModule, declarations: [CardComponent, CardLongComponent, CardSimpleComponent], imports: [CommonModule,
1794
+ MefDevCollapseModule,
1795
+ // PerfectScrollbarModule,
1796
+ PgSelectModule,
1797
+ pgCardModule,
1798
+ TranslateModule], exports: [CardComponent, CardLongComponent, CardSimpleComponent] });
1799
+ MefDevCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevCardModule, imports: [[
1800
+ CommonModule,
1801
+ MefDevCollapseModule,
1802
+ // PerfectScrollbarModule,
1803
+ PgSelectModule,
1804
+ pgCardModule,
1805
+ TranslateModule,
1806
+ ]] });
1807
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevCardModule, decorators: [{
1808
+ type: NgModule,
1809
+ args: [{
1810
+ declarations: mefDevCardComponents,
1811
+ exports: mefDevCardComponents,
1812
+ imports: [
1813
+ CommonModule,
1814
+ MefDevCollapseModule,
1815
+ // PerfectScrollbarModule,
1816
+ PgSelectModule,
1817
+ pgCardModule,
1818
+ TranslateModule,
1819
+ ]
1820
+ }]
1821
+ }] });
1822
+
1823
+ class FillComponent {
1824
+ constructor() {
1825
+ this.isClouse = new EventEmitter();
1826
+ }
1827
+ set show(val) {
1828
+ if (!this.fadInModal) {
1829
+ return;
1830
+ }
1831
+ if (val) {
1832
+ this.showModal();
1833
+ }
1834
+ else {
1835
+ this.hideModal();
1836
+ }
1837
+ }
1838
+ ;
1839
+ ngOnInit() {
1840
+ }
1841
+ modalIsCloused() {
1842
+ this.isClouse.emit(true);
1843
+ }
1844
+ showModal() {
1845
+ var _a;
1846
+ (_a = this.fadInModal) === null || _a === void 0 ? void 0 : _a.show();
1847
+ }
1848
+ hideModal() {
1849
+ var _a;
1850
+ (_a = this.fadInModal) === null || _a === void 0 ? void 0 : _a.hide();
1851
+ }
1852
+ }
1853
+ FillComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FillComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1854
+ FillComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: FillComponent, selector: "mefdev-fill-modal", inputs: { show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "fadInModal", first: true, predicate: ["fadInModal"], descendants: true }], ngImport: i0, template: " <div bsModal #fadInModal=\"bs-modal\" class=\"modal fade fill-in\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <button type=\"button\" class=\"close\" (click)=\"fadInModal.hide()\" aria-hidden=\"true\">\r\n <i class=\"pg pg-close\"></i>\r\n </button>\r\n <div class=\"modal-dialog \">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div> \r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div> \r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n </div>", styles: [""], directives: [{ type: i1$3.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1855
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: FillComponent, decorators: [{
1856
+ type: Component,
1857
+ args: [{ selector: 'mefdev-fill-modal', template: " <div bsModal #fadInModal=\"bs-modal\" class=\"modal fade fill-in\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <button type=\"button\" class=\"close\" (click)=\"fadInModal.hide()\" aria-hidden=\"true\">\r\n <i class=\"pg pg-close\"></i>\r\n </button>\r\n <div class=\"modal-dialog \">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div> \r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div> \r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n </div>", styles: [""] }]
1858
+ }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
1859
+ type: ContentChild,
1860
+ args: ["modal_header"]
1861
+ }], modal_footer: [{
1862
+ type: ContentChild,
1863
+ args: ["modal_footer"]
1864
+ }], fadInModal: [{
1865
+ type: ViewChild,
1866
+ args: ['fadInModal', { static: false }]
1867
+ }], show: [{
1868
+ type: Input
1869
+ }], isClouse: [{
1870
+ type: Output
1871
+ }] } });
1872
+
1873
+ class SlideUpComponent {
1874
+ constructor() {
1875
+ this.size = "md" /* md */;
1876
+ this.isClouse = new EventEmitter();
1877
+ }
1878
+ set show(val) {
1879
+ if (!this.mdSlideUp) {
1880
+ return;
1881
+ }
1882
+ if (val) {
1883
+ this.showModal();
1884
+ }
1885
+ else {
1886
+ this.hideModal();
1887
+ }
1888
+ }
1889
+ ;
1890
+ ngOnInit() {
1891
+ }
1892
+ modalIsCloused() {
1893
+ this.isClouse.emit(true);
1894
+ }
1895
+ showModal() {
1896
+ this.mdSlideUp.show();
1897
+ }
1898
+ hideModal() {
1899
+ this.mdSlideUp.hide();
1900
+ }
1901
+ }
1902
+ SlideUpComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SlideUpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1903
+ SlideUpComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SlideUpComponent, selector: "mefdev-slide-up-modal", inputs: { size: "size", show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "mdSlideUp", first: true, predicate: ["mdSlideUp"], descendants: true }], ngImport: i0, template: "<div bsModal #mdSlideUp=\"bs-modal\" class=\"modal fade slide-up disable-scroll\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"false\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [""], directives: [{ type: i1$3.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1904
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SlideUpComponent, decorators: [{
1905
+ type: Component,
1906
+ args: [{ selector: 'mefdev-slide-up-modal', template: "<div bsModal #mdSlideUp=\"bs-modal\" class=\"modal fade slide-up disable-scroll\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"false\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [""] }]
1907
+ }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
1908
+ type: ContentChild,
1909
+ args: ["modal_header"]
1910
+ }], modal_footer: [{
1911
+ type: ContentChild,
1912
+ args: ["modal_footer"]
1913
+ }], mdSlideUp: [{
1914
+ type: ViewChild,
1915
+ args: ['mdSlideUp', { static: false }]
1916
+ }], size: [{
1917
+ type: Input
1918
+ }], show: [{
1919
+ type: Input
1920
+ }], isClouse: [{
1921
+ type: Output
1922
+ }] } });
1923
+
1924
+ class SlideRightComponent {
1925
+ constructor() {
1926
+ this.size = "md" /* md */;
1927
+ this.isClouse = new EventEmitter();
1928
+ }
1929
+ set show(val) {
1930
+ if (!this.slideRight) {
1931
+ return;
1932
+ }
1933
+ if (val) {
1934
+ this.showModal();
1935
+ }
1936
+ else {
1937
+ this.hideModal();
1938
+ }
1939
+ }
1940
+ ;
1941
+ ngOnInit() {
1942
+ }
1943
+ modalIsCloused() {
1944
+ this.isClouse.emit(true);
1945
+ }
1946
+ showModal() {
1947
+ this.slideRight.show();
1948
+ }
1949
+ hideModal() {
1950
+ this.slideRight.hide();
1951
+ }
1952
+ }
1953
+ SlideRightComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SlideRightComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1954
+ SlideRightComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: { size: "size", show: "show" }, outputs: { isClouse: "isClouse" }, queries: [{ propertyName: "modal_header", first: true, predicate: ["modal_header"], descendants: true }, { propertyName: "modal_footer", first: true, predicate: ["modal_footer"], descendants: true }], viewQueries: [{ propertyName: "slideRight", first: true, predicate: ["slideRight"], descendants: true }], ngImport: i0, template: "<div bsModal #slideRight=\"bs-modal\" class=\"modal fade slide-right\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [""], directives: [{ type: i1$3.ModalDirective, selector: "[bsModal]", inputs: ["config", "closeInterceptor"], outputs: ["onShow", "onShown", "onHide", "onHidden"], exportAs: ["bs-modal"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
1955
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SlideRightComponent, decorators: [{
1956
+ type: Component,
1957
+ args: [{ selector: 'mefdev-slide-right-modal', template: "<div bsModal #slideRight=\"bs-modal\" class=\"modal fade slide-right\" tabindex=\"-1\" role=\"dialog\" aria-hidden=\"true\" (onHide)=\"modalIsCloused()\">\r\n <div class=\"modal-dialog modal-{{size}}\">\r\n <div class=\"modal-content-wrapper\">\r\n <div class=\"modal-content\">\r\n <div class=\"modal-header clearfix text-left\">\r\n <ng-template [ngTemplateOutlet]=\"modal_header\"></ng-template>\r\n </div>\r\n <div class=\"modal-body\">\r\n <ng-content></ng-content>\r\n </div>\r\n <div class=\"modal-footer\">\r\n <ng-template [ngTemplateOutlet]=\"modal_footer\"></ng-template>\r\n </div>\r\n </div>\r\n </div>\r\n</div>", styles: [""] }]
1958
+ }], ctorParameters: function () { return []; }, propDecorators: { modal_header: [{
1959
+ type: ContentChild,
1960
+ args: ["modal_header"]
1961
+ }], modal_footer: [{
1962
+ type: ContentChild,
1963
+ args: ["modal_footer"]
1964
+ }], slideRight: [{
1965
+ type: ViewChild,
1966
+ args: ['slideRight', { static: false }]
1967
+ }], size: [{
1968
+ type: Input
1969
+ }], show: [{
1970
+ type: Input
1971
+ }], isClouse: [{
1972
+ type: Output
1973
+ }] } });
1974
+
1975
+ class RightFilterComponent {
1976
+ constructor(filteredFieldService) {
1977
+ this.filteredFieldService = filteredFieldService;
1978
+ this.isOpen = false;
1979
+ }
1980
+ ngOnInit() {
1981
+ this.filteredFieldService.getOpenFilter().subscribe(() => {
1982
+ this.isOpen = true;
1983
+ });
1984
+ }
1985
+ openModal() {
1986
+ this.isOpen = !this.isOpen;
1987
+ }
1988
+ modalIsCloused() {
1989
+ this.isOpen = false;
1990
+ }
1991
+ }
1992
+ RightFilterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RightFilterComponent, deps: [{ token: FilteredFieldService }], target: i0.ɵɵFactoryTarget.Component });
1993
+ RightFilterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: RightFilterComponent, selector: "mefdev-right-filter", ngImport: i0, template: "<div class=\"filter-btn\">\r\n <button class=\"btn btn-secondary text-danger\" (click)=\"openModal()\"><i class=\"fa fa-filter\" aria-hidden=\"true\"></i></button>\r\n</div>\r\n\r\n<mefdev-slide-right-modal [show]=\"isOpen\" (isClouse)=\"modalIsCloused()\">\r\n <ng-content></ng-content>\r\n</mefdev-slide-right-modal>", styles: [".filter-btn{position:fixed;top:60px;z-index:450;right:25px}\n"], components: [{ type: SlideRightComponent, selector: "mefdev-slide-right-modal", inputs: ["size", "show"], outputs: ["isClouse"] }] });
1994
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: RightFilterComponent, decorators: [{
1995
+ type: Component,
1996
+ args: [{ selector: 'mefdev-right-filter', template: "<div class=\"filter-btn\">\r\n <button class=\"btn btn-secondary text-danger\" (click)=\"openModal()\"><i class=\"fa fa-filter\" aria-hidden=\"true\"></i></button>\r\n</div>\r\n\r\n<mefdev-slide-right-modal [show]=\"isOpen\" (isClouse)=\"modalIsCloused()\">\r\n <ng-content></ng-content>\r\n</mefdev-slide-right-modal>", styles: [".filter-btn{position:fixed;top:60px;z-index:450;right:25px}\n"] }]
1997
+ }], ctorParameters: function () { return [{ type: FilteredFieldService }]; } });
1998
+
1999
+ let mefDevModalModuleComponents = [
2000
+ FillComponent,
2001
+ SlideUpComponent,
2002
+ SlideRightComponent,
2003
+ RightFilterComponent
2004
+ ];
2005
+ class MefDevModalModule {
2006
+ }
2007
+ MefDevModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2008
+ MefDevModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevModalModule, declarations: [FillComponent,
2009
+ SlideUpComponent,
2010
+ SlideRightComponent,
2011
+ RightFilterComponent], imports: [ModalModule,
2012
+ TranslateModule,
2013
+ CommonModule,
2014
+ PgSelectModule], exports: [FillComponent,
2015
+ SlideUpComponent,
2016
+ SlideRightComponent,
2017
+ RightFilterComponent] });
2018
+ MefDevModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevModalModule, imports: [[
2019
+ ModalModule,
2020
+ TranslateModule,
2021
+ CommonModule,
2022
+ PgSelectModule
2023
+ ]] });
2024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevModalModule, decorators: [{
2025
+ type: NgModule,
2026
+ args: [{
2027
+ imports: [
2028
+ ModalModule,
2029
+ TranslateModule,
2030
+ CommonModule,
2031
+ PgSelectModule
2032
+ ],
2033
+ exports: mefDevModalModuleComponents,
2034
+ declarations: mefDevModalModuleComponents
2035
+ }]
2036
+ }] });
2037
+
2038
+ class ProfileComponent {
2039
+ constructor() {
2040
+ this.img = '';
2041
+ this.circleImg = false;
2042
+ }
2043
+ ngOnInit() {
2044
+ }
2045
+ get sizeStyle() {
2046
+ // return { 'width.px': this.width, 'height.px': this.height };
2047
+ if (!this.circleImg) {
2048
+ return {};
2049
+ }
2050
+ return {
2051
+ 'border-top-left-radius': `50%`,
2052
+ 'border-top-right-radius': `50%`,
2053
+ 'border-bottom-right-radius': `50%`,
2054
+ 'border-bottom-left-radius': `50%`,
2055
+ };
2056
+ }
2057
+ }
2058
+ ProfileComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProfileComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2059
+ ProfileComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ProfileComponent, selector: "mefdev-profile", inputs: { name: "name", img: "img", shortDescription: "shortDescription", header: "header", circleImg: "circleImg" }, queries: [{ propertyName: "first_colum", first: true, predicate: ["first_colum"], descendants: true }, { propertyName: "second_colum", first: true, predicate: ["second_colum"], descendants: true }, { propertyName: "footer", first: true, predicate: ["footer"], descendants: true }], ngImport: i0, template: "<div class=\"row profile-page\">\r\n <div class=\"col-12 h3 mt-3\">\r\n {{header}}\r\n </div>\r\n <div class=\"col-xl-3 col-lg-3 col-md-4 col-sm-12\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\" height=\"124\" width=\"220\" />\r\n </div>\r\n <div *ngIf=\"img\" >\r\n <img src=\"{{img}}\" alt=\"\" class=\"custom-img\" [ngStyle]=\"sizeStyle\"\r\n />\r\n </div>\r\n </div>\r\n \r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 mt-4 mt-md-0\" >\r\n <div class=\"row profile-name\">\r\n <div class=\"col\">\r\n {{name}}\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col profile-description\">\r\n {{shortDescription}}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0\">\r\n <ng-template [ngTemplateOutlet]=\"first_colum\"></ng-template> \r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0\" >\r\n <ng-template [ngTemplateOutlet]=\"second_colum\"></ng-template> \r\n </div>\r\n\r\n</div>\r\n<div style=\"position: relative;\">\r\n <div class=\"row profile-page-tabs\">\r\n <ng-template [ngTemplateOutlet]=\"footer\">\r\n </ng-template> \r\n </div> \r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,:host::ng-deep .profile-name,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,:host::ng-deep .profile-description,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .profile-page{background-color:#f3f3f3;padding-left:10px;color:#000}:host::ng-deep .profile-description{height:7em;word-break:break-all;overflow-y:clip;margin-right:40px}:host::ng-deep .profile-name{height:2em;overflow-y:clip}:host::ng-deep .tab-content-wrapper{background-color:#fff}:host::ng-deep .profile-data-item{display:flex;margin:10px}:host::ng-deep .profile-data-item-value{font-weight:700;margin-left:.25em}:host::ng-deep .profile-page-tabs{background-image:linear-gradient(top,#F3F3F3 53px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(top,#F3F3F3 53px,transparent 0%,transparent 100%);padding-top:25px}@media (max-width: 720px){:host::ng-deep .profile-page-tabs{background-image:linear-gradient(top,#F3F3F3 63px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(top,#F3F3F3 63px,transparent 0%,transparent 100%);padding-top:35px}}:host::ng-deep .custom-img{max-width:224px;max-height:128px;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}:host::ng-deep .card-img{padding:0;display:flex;align-items:center;justify-content:center;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5);width:224px;height:128px}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
2060
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ProfileComponent, decorators: [{
2061
+ type: Component,
2062
+ args: [{ selector: 'mefdev-profile', template: "<div class=\"row profile-page\">\r\n <div class=\"col-12 h3 mt-3\">\r\n {{header}}\r\n </div>\r\n <div class=\"col-xl-3 col-lg-3 col-md-4 col-sm-12\">\r\n <div *ngIf=\"!img || img == ''\" >\r\n <img src=\"assets/images/md_icon.png\" height=\"124\" width=\"220\" />\r\n </div>\r\n <div *ngIf=\"img\" >\r\n <img src=\"{{img}}\" alt=\"\" class=\"custom-img\" [ngStyle]=\"sizeStyle\"\r\n />\r\n </div>\r\n </div>\r\n \r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 mt-4 mt-md-0\" >\r\n <div class=\"row profile-name\">\r\n <div class=\"col\">\r\n {{name}}\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col profile-description\">\r\n {{shortDescription}}\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0\">\r\n <ng-template [ngTemplateOutlet]=\"first_colum\"></ng-template> \r\n </div>\r\n\r\n <div class=\"col-xl-3 col-lg-4 col-md-5 col-sm-12 body-6 mt-4 mt-md-0\" >\r\n <ng-template [ngTemplateOutlet]=\"second_colum\"></ng-template> \r\n </div>\r\n\r\n</div>\r\n<div style=\"position: relative;\">\r\n <div class=\"row profile-page-tabs\">\r\n <ng-template [ngTemplateOutlet]=\"footer\">\r\n </ng-template> \r\n </div> \r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,:host::ng-deep .profile-name,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,:host::ng-deep .profile-description,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}:host::ng-deep .profile-page{background-color:#f3f3f3;padding-left:10px;color:#000}:host::ng-deep .profile-description{height:7em;word-break:break-all;overflow-y:clip;margin-right:40px}:host::ng-deep .profile-name{height:2em;overflow-y:clip}:host::ng-deep .tab-content-wrapper{background-color:#fff}:host::ng-deep .profile-data-item{display:flex;margin:10px}:host::ng-deep .profile-data-item-value{font-weight:700;margin-left:.25em}:host::ng-deep .profile-page-tabs{background-image:linear-gradient(top,#F3F3F3 53px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(top,#F3F3F3 53px,transparent 0%,transparent 100%);padding-top:25px}@media (max-width: 720px){:host::ng-deep .profile-page-tabs{background-image:linear-gradient(top,#F3F3F3 63px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(top,#F3F3F3 63px,transparent 0%,transparent 100%);padding-top:35px}}:host::ng-deep .custom-img{max-width:224px;max-height:128px;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5)}:host::ng-deep .card-img{padding:0;display:flex;align-items:center;justify-content:center;margin-right:calc(var(--bs-gutter-x) * .5);margin-left:calc(var(--bs-gutter-x) * .5);width:224px;height:128px}\n"] }]
2063
+ }], ctorParameters: function () { return []; }, propDecorators: { first_colum: [{
2064
+ type: ContentChild,
2065
+ args: ["first_colum"]
2066
+ }], second_colum: [{
2067
+ type: ContentChild,
2068
+ args: ["second_colum"]
2069
+ }], footer: [{
2070
+ type: ContentChild,
2071
+ args: ["footer"]
2072
+ }], name: [{
2073
+ type: Input
2074
+ }], img: [{
2075
+ type: Input
2076
+ }], shortDescription: [{
2077
+ type: Input
2078
+ }], header: [{
2079
+ type: Input
2080
+ }], circleImg: [{
2081
+ type: Input
2082
+ }] } });
2083
+
2084
+ class CentralPageComponent {
2085
+ constructor() {
2086
+ this.width = '100%';
2087
+ }
2088
+ ngOnDestroy() {
2089
+ document.getElementById('dataMainContent').style.height = '';
2090
+ }
2091
+ ngOnInit() {
2092
+ }
2093
+ ngAfterViewChecked() {
2094
+ document.getElementById('dataMainContent').style.height = '100%';
2095
+ }
2096
+ }
2097
+ CentralPageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CentralPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2098
+ CentralPageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CentralPageComponent, selector: "mefdev-central-page", inputs: { width: "width" }, ngImport: i0, template: "<div class=\"row align-items-center\" style=\"height: 100%;\" [ngStyle]=\"{'width': width}\">\r\n <div class=\"col\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n ", styles: [""], directives: [{ type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
2099
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CentralPageComponent, decorators: [{
2100
+ type: Component,
2101
+ args: [{ selector: 'mefdev-central-page', template: "<div class=\"row align-items-center\" style=\"height: 100%;\" [ngStyle]=\"{'width': width}\">\r\n <div class=\"col\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n ", styles: [""] }]
2102
+ }], ctorParameters: function () { return []; }, propDecorators: { width: [{
2103
+ type: Input
2104
+ }] } });
2105
+
2106
+ class CentralPageRowComponent {
2107
+ constructor() { }
2108
+ ngOnInit() {
2109
+ }
2110
+ }
2111
+ CentralPageRowComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CentralPageRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2112
+ CentralPageRowComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: CentralPageRowComponent, selector: "mefdev-central-page-row", ngImport: i0, template: "<div class=\"row justify-content-center\">\r\n <ng-content></ng-content>\r\n</div>", styles: [""] });
2113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: CentralPageRowComponent, decorators: [{
2114
+ type: Component,
2115
+ args: [{ selector: 'mefdev-central-page-row', template: "<div class=\"row justify-content-center\">\r\n <ng-content></ng-content>\r\n</div>", styles: [""] }]
2116
+ }], ctorParameters: function () { return []; } });
2117
+
2118
+ class TablePageComponent {
2119
+ constructor() { }
2120
+ ngOnInit() {
2121
+ }
2122
+ }
2123
+ TablePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TablePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2124
+ TablePageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: TablePageComponent, selector: "mefdev-table-page", queries: [{ propertyName: "filter_colum", first: true, predicate: ["filter_colum"], descendants: true }], ngImport: i0, template: "<div class=\"row\">\r\n <div class=\"col-12 filter-colum\">\r\n <ng-template [ngTemplateOutlet]=\"filter_colum\"></ng-template> \r\n </div>\r\n</div>\r\n\r\n<div class=\"table-responsive\" >\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [""], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
2125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: TablePageComponent, decorators: [{
2126
+ type: Component,
2127
+ args: [{ selector: 'mefdev-table-page', template: "<div class=\"row\">\r\n <div class=\"col-12 filter-colum\">\r\n <ng-template [ngTemplateOutlet]=\"filter_colum\"></ng-template> \r\n </div>\r\n</div>\r\n\r\n<div class=\"table-responsive\" >\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [""] }]
2128
+ }], ctorParameters: function () { return []; }, propDecorators: { filter_colum: [{
2129
+ type: ContentChild,
2130
+ args: ["filter_colum"]
2131
+ }] } });
2132
+
2133
+ class ManagePageComponent {
2134
+ constructor() {
2135
+ this.startTabInd = 0;
2136
+ }
2137
+ ngOnInit() {
2138
+ }
2139
+ }
2140
+ ManagePageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ManagePageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2141
+ ManagePageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: ManagePageComponent, selector: "mefdev-manage-page", inputs: { startTabInd: "startTabInd" }, queries: [{ propertyName: "card_title", first: true, predicate: ["card_title"], descendants: true }, { propertyName: "tabs_block", first: true, predicate: ["tabs_block"], descendants: true }], ngImport: i0, template: "<div class=\"card-tabs\">\r\n <div class=\"row body-1 card-header\" *ngIf=\"card_title\">\r\n <div class=\"m-2\">\r\n <ng-template [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"row profile-page-tabs\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-tabs .card-header{background-color:#f3f3f3;padding:.5em;border:0}.profile-page-tabs{background-image:linear-gradient(top,#F3F3F3 28px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(top,#F3F3F3 28px,transparent 0%,transparent 100%)}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
2142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: ManagePageComponent, decorators: [{
2143
+ type: Component,
2144
+ args: [{ selector: 'mefdev-manage-page', template: "<div class=\"card-tabs\">\r\n <div class=\"row body-1 card-header\" *ngIf=\"card_title\">\r\n <div class=\"m-2\">\r\n <ng-template [ngTemplateOutlet]=\"card_title\"></ng-template>\r\n </div>\r\n </div>\r\n <div class=\"row profile-page-tabs\">\r\n <ng-content></ng-content>\r\n </div>\r\n</div>\r\n", styles: [".color-Dark-Gray-1{color:#373737!important}.color-Dark-Gray-2{color:#4d4d4d!important}.color-Red{color:#cf0106!important}.color-Green{color:#28b446!important}.color-Light-Gray-1{color:#929292!important}.color-Light-Gray-2{color:#eaeaea!important}.color-Light-Gray-3{color:#f3f3f3!important}.color-White{color:#fff!important}.color-Link{color:#0185cf!important}.b-color-Dark-Gray-1{background-color:#373737!important}.b-color-Dark-Gray-2{background-color:#4d4d4d!important}.b-color-Red{background-color:#cf0106!important}.b-color-Green{background-color:#28b446!important}.b-color-Light-Gray-1{background-color:#929292!important}.b-color-Light-Gray-2{background-color:#eaeaea!important}.b-color-Light-Gray-3{background-color:#f3f3f3!important}.b-color-White{background-color:#fff!important}.b-color-Link{background-color:#0185cf!important}.h1,h1{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;text-transform:uppercase;color:#000}.h2,h2{font-family:montserrat-bold;font-size:24px;line-height:29px;font-weight:700;color:#000}.h3,h3{font-family:montserrat-regular;font-size:14px;line-height:20px;font-weight:400;text-transform:uppercase;color:#000}.h4,h4{font-family:montserrat-light;font-weight:300;font-size:13px;line-height:20px;text-transform:uppercase;color:#000}.h5,h5{font-family:montserrat-semibold;font-weight:600;font-size:13px;line-height:20px;color:#000}.h6,h6{font-family:montserrat-medium;font-weight:500;font-size:12px;line-height:20px;text-transform:capitalize;color:#000}.body-1,body-1{font-family:Lato-Bold;font-size:18px;line-height:20px;font-weight:700;color:#000}.body-2,body-2{font-family:Lato-Regular;font-size:16px;line-height:28px;font-weight:400;color:#000}.body-3,body-3{font-family:Lato-Bold;font-size:14px;line-height:22px;font-weight:700;color:#000}.body-4,body-4{font-family:Lato-Regular;font-size:14px;line-height:22px;font-weight:400;color:#000}.body-5,body-5{font-family:Lato-Bold;font-weight:600;font-size:13px;line-height:18px;color:#000}.body-6,body-6{font-family:Lato-Regular;font-size:13px;line-height:16px;font-weight:400;color:#000}.card-tabs .card-header{background-color:#f3f3f3;padding:.5em;border:0}.profile-page-tabs{background-image:linear-gradient(top,#F3F3F3 28px,transparent 0%,transparent 100%);background-image:-webkit-linear-gradient(top,#F3F3F3 28px,transparent 0%,transparent 100%)}\n"] }]
2145
+ }], ctorParameters: function () { return []; }, propDecorators: { card_title: [{
2146
+ type: ContentChild,
2147
+ args: ["card_title"]
2148
+ }], tabs_block: [{
2149
+ type: ContentChild,
2150
+ args: ["tabs_block"]
2151
+ }], startTabInd: [{
2152
+ type: Input
2153
+ }] } });
2154
+
2155
+ class pgTabBodyComponent {
2156
+ }
2157
+ pgTabBodyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2158
+ pgTabBodyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: pgTabBodyComponent, selector: "pg-tab-body", inputs: { content: "content" }, ngImport: i0, template: `
2159
+ <ng-template [ngTemplateOutlet]="content"></ng-template>
2160
+ `, isInline: true, directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], encapsulation: i0.ViewEncapsulation.None });
2161
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabBodyComponent, decorators: [{
2162
+ type: Component,
2163
+ args: [{
2164
+ selector: 'pg-tab-body',
2165
+ encapsulation: ViewEncapsulation.None,
2166
+ template: `
2167
+ <ng-template [ngTemplateOutlet]="content"></ng-template>
2168
+ `
2169
+ }]
2170
+ }], propDecorators: { content: [{
2171
+ type: Input
2172
+ }] } });
2173
+
2174
+ class pgTabLabelDirective {
2175
+ constructor(elementRef) {
2176
+ this.elementRef = elementRef;
2177
+ this._disabled = false;
2178
+ }
2179
+ set disabled(value) {
2180
+ this._disabled = toBoolean(value);
2181
+ }
2182
+ get disabled() {
2183
+ return this._disabled;
2184
+ }
2185
+ getOffsetLeft() {
2186
+ return this.elementRef.nativeElement.offsetLeft;
2187
+ }
2188
+ getOffsetWidth() {
2189
+ return this.elementRef.nativeElement.offsetWidth;
2190
+ }
2191
+ getOffsetTop() {
2192
+ return this.elementRef.nativeElement.offsetTop;
2193
+ }
2194
+ getOffsetHeight() {
2195
+ return this.elementRef.nativeElement.offsetHeight;
2196
+ }
2197
+ }
2198
+ pgTabLabelDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabLabelDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2199
+ pgTabLabelDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: pgTabLabelDirective, selector: "[pg-tab-label]", inputs: { disabled: "disabled" }, host: { properties: { "class.nav-item": "true", "class.nav-item-disabled": "this.disabled" } }, ngImport: i0 });
2200
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabLabelDirective, decorators: [{
2201
+ type: Directive,
2202
+ args: [{
2203
+ selector: '[pg-tab-label]',
2204
+ host: {
2205
+ '[class.nav-item]': 'true'
2206
+ }
2207
+ }]
2208
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disabled: [{
2209
+ type: Input
2210
+ }, {
2211
+ type: HostBinding,
2212
+ args: ['class.nav-item-disabled']
2213
+ }] } });
2214
+
2215
+ const availablePrefixs = ['moz', 'ms', 'webkit'];
2216
+ function requestAnimationFramePolyfill() {
2217
+ let lastTime = 0;
2218
+ return function (callback) {
2219
+ const currTime = new Date().getTime();
2220
+ const timeToCall = Math.max(0, 16 - (currTime - lastTime));
2221
+ const id = window.setTimeout(() => { callback(currTime + timeToCall); }, timeToCall);
2222
+ lastTime = currTime + timeToCall;
2223
+ return id;
2224
+ };
2225
+ }
2226
+ function getRequestAnimationFrame() {
2227
+ if (typeof window === 'undefined') {
2228
+ //@ts-ignore
2229
+ return () => null;
2230
+ }
2231
+ if (window.requestAnimationFrame) {
2232
+ return window.requestAnimationFrame.bind(window);
2233
+ }
2234
+ const prefix = availablePrefixs.filter(key => `${key}RequestAnimationFrame` in window)[0];
2235
+ return prefix
2236
+ ? window[`${prefix}RequestAnimationFrame`]
2237
+ : requestAnimationFramePolyfill();
2238
+ }
2239
+ const reqAnimFrame = getRequestAnimationFrame();
2240
+
2241
+ class pgTabsInkBarDirective {
2242
+ constructor(_renderer, _elementRef, _ngZone) {
2243
+ this._renderer = _renderer;
2244
+ this._elementRef = _elementRef;
2245
+ this._ngZone = _ngZone;
2246
+ this._animated = false;
2247
+ this.PositionMode = 'horizontal';
2248
+ }
2249
+ set Animated(value) {
2250
+ this._animated = toBoolean(value);
2251
+ }
2252
+ get Animated() {
2253
+ return this._animated;
2254
+ }
2255
+ alignToElement(element) {
2256
+ this.show();
2257
+ this._ngZone.runOutsideAngular(() => {
2258
+ reqAnimFrame(() => {
2259
+ /** when horizontal remove height style and add transfrom left **/
2260
+ if (this.PositionMode === 'horizontal') {
2261
+ this._renderer.removeStyle(this._elementRef.nativeElement, 'height');
2262
+ this._renderer.setStyle(this._elementRef.nativeElement, 'transform', `translate3d(${this._getLeftPosition(element)}, 0px, 0px)`);
2263
+ this._renderer.setStyle(this._elementRef.nativeElement, 'width', this._getElementWidth(element));
2264
+ }
2265
+ else {
2266
+ /** when vertical remove width style and add transfrom top **/
2267
+ this._renderer.removeStyle(this._elementRef.nativeElement, 'width');
2268
+ this._renderer.setStyle(this._elementRef.nativeElement, 'transform', `translate3d(0px, ${this._getTopPosition(element)}, 0px)`);
2269
+ this._renderer.setStyle(this._elementRef.nativeElement, 'height', this._getElementHeight(element));
2270
+ }
2271
+ });
2272
+ });
2273
+ }
2274
+ show() {
2275
+ this._renderer.setStyle(this._elementRef.nativeElement, 'visibility', 'visible');
2276
+ }
2277
+ setDisplay(value) {
2278
+ this._renderer.setStyle(this._elementRef.nativeElement, 'display', value);
2279
+ }
2280
+ hide() {
2281
+ this._renderer.setStyle(this._elementRef.nativeElement, 'visibility', 'hidden');
2282
+ }
2283
+ _getLeftPosition(element) {
2284
+ return element ? element.offsetLeft + 'px' : '0';
2285
+ }
2286
+ _getElementWidth(element) {
2287
+ return element ? element.offsetWidth + 'px' : '0';
2288
+ }
2289
+ _getTopPosition(element) {
2290
+ return element ? element.offsetTop + 'px' : '0';
2291
+ }
2292
+ _getElementHeight(element) {
2293
+ return element ? element.offsetHeight + 'px' : '0';
2294
+ }
2295
+ }
2296
+ pgTabsInkBarDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabsInkBarDirective, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Directive });
2297
+ pgTabsInkBarDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.7", type: pgTabsInkBarDirective, selector: "[pg-tabs-ink-bar]", inputs: { Animated: "Animated", PositionMode: "PositionMode" }, host: { properties: { "class.nav-item": "true", "class.nav-item-animated": "this.Animated" } }, ngImport: i0 });
2298
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabsInkBarDirective, decorators: [{
2299
+ type: Directive,
2300
+ args: [{
2301
+ selector: '[pg-tabs-ink-bar]',
2302
+ host: {
2303
+ '[class.nav-item]': 'true'
2304
+ }
2305
+ }]
2306
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { Animated: [{
2307
+ type: Input
2308
+ }, {
2309
+ type: HostBinding,
2310
+ args: ['class.nav-item-animated']
2311
+ }], PositionMode: [{
2312
+ type: Input
2313
+ }] } });
2314
+
2315
+ const EXAGGERATED_OVERSCROLL = 64;
2316
+ class pgTabsNavComponent {
2317
+ constructor(_elementRef, _ngZone, _renderer, _dir) {
2318
+ this._elementRef = _elementRef;
2319
+ this._ngZone = _ngZone;
2320
+ this._renderer = _renderer;
2321
+ this._dir = _dir;
2322
+ this._animated = true;
2323
+ this._hideBar = false;
2324
+ this._showPagination = true;
2325
+ this._showPaginationControls = false;
2326
+ this._disableScrollAfter = true;
2327
+ this._disableScrollBefore = true;
2328
+ this._scrollDistance = 0;
2329
+ this._selectedIndexChanged = false;
2330
+ this._realignInkBar = null;
2331
+ this._selectedIndex = 0;
2332
+ this._tabPositionMode = 'horizontal';
2333
+ this._tabPosition = 'top';
2334
+ this.Size = 'default';
2335
+ this._type = 'line';
2336
+ }
2337
+ set Animated(value) {
2338
+ this._animated = toBoolean(value);
2339
+ }
2340
+ get Animated() {
2341
+ return this._animated;
2342
+ }
2343
+ set Position(value) {
2344
+ this._tabPosition = value;
2345
+ }
2346
+ get Position() {
2347
+ return this._tabPosition;
2348
+ }
2349
+ set HideBar(value) {
2350
+ this._hideBar = toBoolean(value);
2351
+ }
2352
+ get HideBar() {
2353
+ return this._hideBar;
2354
+ }
2355
+ set Type(value) {
2356
+ this._type = value;
2357
+ }
2358
+ get Type() {
2359
+ return this._type;
2360
+ }
2361
+ set ShowPagination(value) {
2362
+ this._showPagination = toBoolean(value);
2363
+ }
2364
+ get ShowPagination() {
2365
+ return this._showPagination;
2366
+ }
2367
+ set PositionMode(value) {
2368
+ this._tabPositionMode = value;
2369
+ this._alignInkBarToSelectedTab();
2370
+ if (this.ShowPagination) {
2371
+ this._updatePagination();
2372
+ }
2373
+ }
2374
+ get PositionMode() {
2375
+ return this._tabPositionMode;
2376
+ }
2377
+ set selectedIndex(value) {
2378
+ this._selectedIndexChanged = this._selectedIndex !== value;
2379
+ this._selectedIndex = value;
2380
+ }
2381
+ get selectedIndex() {
2382
+ return this._selectedIndex;
2383
+ }
2384
+ _onContentChanges() {
2385
+ if (this.ShowPagination) {
2386
+ this._updatePagination();
2387
+ }
2388
+ this._alignInkBarToSelectedTab();
2389
+ }
2390
+ _scrollHeader(scrollDir) {
2391
+ // Move the scroll distance one-third the length of the tab list's viewport.
2392
+ this.scrollDistance += ((scrollDir === 'before' ? -1 : 1) * this.viewWidthHeightPix) / 3;
2393
+ }
2394
+ ngAfterContentChecked() {
2395
+ if (this._tabLabelCount !== this._labelWrappers.length) {
2396
+ if (this.ShowPagination) {
2397
+ this._updatePagination();
2398
+ }
2399
+ this._tabLabelCount = this._labelWrappers.length;
2400
+ }
2401
+ if (this._selectedIndexChanged) {
2402
+ this._scrollToLabel(this._selectedIndex);
2403
+ if (this.ShowPagination) {
2404
+ this._checkScrollingControls();
2405
+ }
2406
+ this._alignInkBarToSelectedTab();
2407
+ this._selectedIndexChanged = false;
2408
+ }
2409
+ if (this._scrollDistanceChanged) {
2410
+ if (this.ShowPagination) {
2411
+ this._updateTabScrollPosition();
2412
+ }
2413
+ this._scrollDistanceChanged = false;
2414
+ }
2415
+ }
2416
+ ngAfterContentInit() {
2417
+ this._realignInkBar = this._ngZone.runOutsideAngular(() => {
2418
+ const dirChange = this._dir ? this._dir.change : of(null);
2419
+ const resize = typeof window !== 'undefined' ? fromEvent(window, 'resize').pipe(auditTime(10)) : of(null);
2420
+ //@ts-ignore
2421
+ return merge(dirChange, resize)
2422
+ .pipe(startWith(null))
2423
+ .subscribe(() => {
2424
+ if (this.ShowPagination) {
2425
+ this._updatePagination();
2426
+ }
2427
+ this._alignInkBarToSelectedTab();
2428
+ });
2429
+ });
2430
+ }
2431
+ _updateTabScrollPosition() {
2432
+ const scrollDistance = this.scrollDistance;
2433
+ if (this.PositionMode === 'horizontal') {
2434
+ const translateX = this._getLayoutDirection() === 'ltr' ? -scrollDistance : scrollDistance;
2435
+ this._renderer.setStyle(this._tabList.nativeElement, 'transform', `translate3d(${translateX}px, 0, 0)`);
2436
+ }
2437
+ else {
2438
+ this._renderer.setStyle(this._tabList.nativeElement, 'transform', `translate3d(0,${-scrollDistance}px, 0)`);
2439
+ }
2440
+ }
2441
+ _updatePagination() {
2442
+ this._checkPaginationEnabled();
2443
+ this._checkScrollingControls();
2444
+ this._updateTabScrollPosition();
2445
+ }
2446
+ _checkPaginationEnabled() {
2447
+ this._showPaginationControls = this.tabListScrollWidthHeightPix > this.elementRefOffSetWidthHeight;
2448
+ if (!this._showPaginationControls) {
2449
+ this.scrollDistance = 0;
2450
+ }
2451
+ }
2452
+ _scrollToLabel(labelIndex) {
2453
+ const selectedLabel = this._labelWrappers ? this._labelWrappers.toArray()[labelIndex] : null;
2454
+ if (!selectedLabel) {
2455
+ return;
2456
+ }
2457
+ // The view length is the visible width of the tab labels.
2458
+ let labelBeforePos;
2459
+ let labelAfterPos;
2460
+ if (this.PositionMode === 'horizontal') {
2461
+ if (this._getLayoutDirection() === 'ltr') {
2462
+ labelBeforePos = selectedLabel.getOffsetLeft();
2463
+ labelAfterPos = labelBeforePos + selectedLabel.getOffsetWidth();
2464
+ }
2465
+ else {
2466
+ labelAfterPos = this._tabList.nativeElement.offsetWidth - selectedLabel.getOffsetLeft();
2467
+ labelBeforePos = labelAfterPos - selectedLabel.getOffsetWidth();
2468
+ }
2469
+ }
2470
+ else {
2471
+ labelBeforePos = selectedLabel.getOffsetTop();
2472
+ labelAfterPos = labelBeforePos + selectedLabel.getOffsetHeight();
2473
+ }
2474
+ const beforeVisiblePos = this.scrollDistance;
2475
+ const afterVisiblePos = this.scrollDistance + this.viewWidthHeightPix;
2476
+ if (labelBeforePos < beforeVisiblePos) {
2477
+ // Scroll header to move label to the before direction
2478
+ this.scrollDistance -= beforeVisiblePos - labelBeforePos + EXAGGERATED_OVERSCROLL;
2479
+ }
2480
+ else if (labelAfterPos > afterVisiblePos) {
2481
+ // Scroll header to move label to the after direction
2482
+ this.scrollDistance += labelAfterPos - afterVisiblePos + EXAGGERATED_OVERSCROLL;
2483
+ }
2484
+ }
2485
+ _checkScrollingControls() {
2486
+ // Check if the pagination arrows should be activated.
2487
+ this._disableScrollBefore = this.scrollDistance === 0;
2488
+ this._disableScrollAfter = this.scrollDistance === this._getMaxScrollDistance();
2489
+ }
2490
+ /**
2491
+ * Determines what is the maximum length in pixels that can be set for the scroll distance. This
2492
+ * is equal to the difference in width between the tab list container and tab header container.
2493
+ *
2494
+ * This is an expensive call that forces a layout reflow to compute box and scroll metrics and
2495
+ * should be called sparingly.
2496
+ */
2497
+ _getMaxScrollDistance() {
2498
+ return this.tabListScrollWidthHeightPix - this.viewWidthHeightPix || 0;
2499
+ }
2500
+ /** Sets the distance in pixels that the tab header should be transformed in the X-axis. */
2501
+ set scrollDistance(v) {
2502
+ this._scrollDistance = Math.max(0, Math.min(this._getMaxScrollDistance(), v));
2503
+ // Mark that the scroll distance has changed so that after the view is checked, the CSS
2504
+ // transformation can move the header.
2505
+ this._scrollDistanceChanged = true;
2506
+ this._checkScrollingControls();
2507
+ }
2508
+ get scrollDistance() {
2509
+ return this._scrollDistance;
2510
+ }
2511
+ get viewWidthHeightPix() {
2512
+ let PAGINATION_PIX = 0;
2513
+ if (this._showPaginationControls) {
2514
+ PAGINATION_PIX = 64;
2515
+ }
2516
+ if (this.PositionMode === 'horizontal') {
2517
+ return this._tabListContainer.nativeElement.offsetWidth - PAGINATION_PIX;
2518
+ }
2519
+ else {
2520
+ return this._tabListContainer.nativeElement.offsetHeight - PAGINATION_PIX;
2521
+ }
2522
+ }
2523
+ get tabListScrollWidthHeightPix() {
2524
+ if (this.PositionMode === 'horizontal') {
2525
+ return this._tabList.nativeElement.scrollWidth;
2526
+ }
2527
+ else {
2528
+ return this._tabList.nativeElement.scrollHeight;
2529
+ }
2530
+ }
2531
+ get elementRefOffSetWidthHeight() {
2532
+ if (this.PositionMode === 'horizontal') {
2533
+ return this._elementRef.nativeElement.offsetWidth;
2534
+ }
2535
+ else {
2536
+ return this._elementRef.nativeElement.offsetHeight;
2537
+ }
2538
+ }
2539
+ _getLayoutDirection() {
2540
+ return this._dir && this._dir.value === 'rtl' ? 'rtl' : 'ltr';
2541
+ }
2542
+ _alignInkBarToSelectedTab() {
2543
+ if (this.Type !== 'fillup') {
2544
+ const selectedLabelWrapper = this._labelWrappers && this._labelWrappers.length
2545
+ ? this._labelWrappers.toArray()[this.selectedIndex].elementRef.nativeElement
2546
+ : null;
2547
+ if (this._inkBar) {
2548
+ this._inkBar.alignToElement(selectedLabelWrapper);
2549
+ }
2550
+ }
2551
+ }
2552
+ }
2553
+ pgTabsNavComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabsNavComponent, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.Renderer2 }, { token: i1$4.Directionality, optional: true }], target: i0.ɵɵFactoryTarget.Component });
2554
+ pgTabsNavComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: pgTabsNavComponent, selector: "pg-tabs-nav", inputs: { Size: "Size", Animated: "Animated", Position: "Position", HideBar: "HideBar", Type: "Type", ShowPagination: "ShowPagination", PositionMode: "PositionMode", selectedIndex: "selectedIndex" }, queries: [{ propertyName: "_tabBarExtraContent", first: true, predicate: ["tabBarExtraContent"], descendants: true, static: true }, { propertyName: "_labelWrappers", predicate: pgTabLabelDirective }], viewQueries: [{ propertyName: "_inkBar", first: true, predicate: pgTabsInkBarDirective, descendants: true, static: true }, { propertyName: "_tabListContainer", first: true, predicate: ["tabListContainer"], descendants: true, static: true }, { propertyName: "_tabList", first: true, predicate: ["tabList"], descendants: true, static: true }], ngImport: i0, template: `
2555
+ <div class="nav-tabs-wrapper" [class.scrolling]="_showPaginationControls" #tabListContainer>
2556
+ <div class="nav-wrap">
2557
+ <ul
2558
+ class="nav nav-tabs nav-tabs-{{ _type }} nav-tabs-{{ _tabPosition }}"
2559
+ [class.tabs-nav-animated]="Animated"
2560
+ #tabList
2561
+ (cdkObserveContent)="_onContentChanges()"
2562
+ >
2563
+ <div
2564
+ class="active-bar"
2565
+ pg-tabs-ink-bar
2566
+ [hidden]="HideBar"
2567
+ [Animated]="Animated"
2568
+ [PositionMode]="PositionMode"
2569
+ style="display: block;"
2570
+ ></div>
2571
+ <ng-content></ng-content>
2572
+ </ul>
2573
+ </div>
2574
+ </div>
2575
+ `, isInline: true, directives: [{ type: i2$2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }, { type: pgTabsInkBarDirective, selector: "[pg-tabs-ink-bar]", inputs: ["Animated", "PositionMode"] }], encapsulation: i0.ViewEncapsulation.None });
2576
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabsNavComponent, decorators: [{
2577
+ type: Component,
2578
+ args: [{
2579
+ selector: 'pg-tabs-nav',
2580
+ encapsulation: ViewEncapsulation.None,
2581
+ template: `
2582
+ <div class="nav-tabs-wrapper" [class.scrolling]="_showPaginationControls" #tabListContainer>
2583
+ <div class="nav-wrap">
2584
+ <ul
2585
+ class="nav nav-tabs nav-tabs-{{ _type }} nav-tabs-{{ _tabPosition }}"
2586
+ [class.tabs-nav-animated]="Animated"
2587
+ #tabList
2588
+ (cdkObserveContent)="_onContentChanges()"
2589
+ >
2590
+ <div
2591
+ class="active-bar"
2592
+ pg-tabs-ink-bar
2593
+ [hidden]="HideBar"
2594
+ [Animated]="Animated"
2595
+ [PositionMode]="PositionMode"
2596
+ style="display: block;"
2597
+ ></div>
2598
+ <ng-content></ng-content>
2599
+ </ul>
2600
+ </div>
2601
+ </div>
2602
+ `,
2603
+ host: {}
2604
+ }]
2605
+ }], ctorParameters: function () {
2606
+ return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.Renderer2 }, { type: i1$4.Directionality, decorators: [{
2607
+ type: Optional
2608
+ }] }];
2609
+ }, propDecorators: { Size: [{
2610
+ type: Input
2611
+ }], Animated: [{
2612
+ type: Input
2613
+ }], Position: [{
2614
+ type: Input
2615
+ }], HideBar: [{
2616
+ type: Input
2617
+ }], Type: [{
2618
+ type: Input
2619
+ }], _tabBarExtraContent: [{
2620
+ type: ContentChild,
2621
+ args: ['tabBarExtraContent', { static: true }]
2622
+ }], _labelWrappers: [{
2623
+ type: ContentChildren,
2624
+ args: [pgTabLabelDirective]
2625
+ }], _inkBar: [{
2626
+ type: ViewChild,
2627
+ args: [pgTabsInkBarDirective, { static: true }]
2628
+ }], _tabListContainer: [{
2629
+ type: ViewChild,
2630
+ args: ['tabListContainer', { static: true }]
2631
+ }], _tabList: [{
2632
+ type: ViewChild,
2633
+ args: ['tabList', { static: true }]
2634
+ }], ShowPagination: [{
2635
+ type: Input
2636
+ }], PositionMode: [{
2637
+ type: Input
2638
+ }], selectedIndex: [{
2639
+ type: Input
2640
+ }] } });
2641
+
2642
+ /** code from https://github.com/angular/material2 */
2643
+ class TabChangeEvent {
2644
+ }
2645
+ class pgTabSetComponent {
2646
+ constructor(_renderer) {
2647
+ this._renderer = _renderer;
2648
+ this._prefixCls = 'nav-tabs';
2649
+ this._tabPosition = 'top';
2650
+ this._tabPositionMode = 'horizontal';
2651
+ this._indexToSelect = 0;
2652
+ this._selectedIndex = null;
2653
+ this._isViewInit = false;
2654
+ this._tabs = [];
2655
+ this._tabAnimation = '';
2656
+ this._extra_tab_class = '';
2657
+ this._extra_tabcontent_class = '';
2658
+ this.Animated = true;
2659
+ this.ShowPagination = true;
2660
+ this.Hide = false;
2661
+ this.SelectChange = new EventEmitter(true);
2662
+ this.Size = 'default';
2663
+ this._type = 'line';
2664
+ this.tabs = [];
2665
+ }
2666
+ set SelectedIndex(value) {
2667
+ this._indexToSelect = value;
2668
+ }
2669
+ get SelectedIndex() {
2670
+ return this._selectedIndex;
2671
+ }
2672
+ get SelectedIndexChange() {
2673
+ return this.SelectChange.pipe(map(event => event.index));
2674
+ }
2675
+ set TabPosition(value) {
2676
+ this._tabPosition = value;
2677
+ if (this._tabPosition === 'top' || this._tabPosition === 'bottom') {
2678
+ this._tabPositionMode = 'horizontal';
2679
+ }
2680
+ else {
2681
+ this._tabPositionMode = 'vertical';
2682
+ }
2683
+ }
2684
+ get TabPosition() {
2685
+ return this._tabPosition;
2686
+ }
2687
+ set extraTabClass(value) {
2688
+ this._extra_tab_class = value;
2689
+ }
2690
+ set extraTabContentClass(value) {
2691
+ this._extra_tabcontent_class = value;
2692
+ }
2693
+ set Type(value) {
2694
+ if (this._type === value) {
2695
+ return;
2696
+ }
2697
+ this._type = value;
2698
+ this._setClassMap();
2699
+ }
2700
+ set tabAnimation(value) {
2701
+ this._tabAnimation = value;
2702
+ }
2703
+ get Type() {
2704
+ return this._type;
2705
+ }
2706
+ _setPosition(value) { }
2707
+ _setClassMap() { }
2708
+ clickLabel(index) {
2709
+ if (this._tabs[index].Disabled) {
2710
+ }
2711
+ else {
2712
+ this.SelectedIndex = index;
2713
+ this._tabs[index].pgClick.emit();
2714
+ }
2715
+ }
2716
+ ngOnInit() {
2717
+ this._setClassMap();
2718
+ }
2719
+ ngAfterContentChecked() {
2720
+ // Clamp the next selected index to the bounds of 0 and the tabs length. Note the `|| 0`, which
2721
+ // ensures that values like NaN can't get through and which would otherwise throw the
2722
+ // component into an infinite loop (since Math.max(NaN, 0) === NaN).
2723
+ const indexToSelect = (this._indexToSelect = Math.min(this._tabs.length - 1, Math.max(this._indexToSelect || 0, 0)));
2724
+ // If there is a change in selected index, emit a change event. Should not trigger if
2725
+ // the selected index has not yet been initialized.
2726
+ if (this._selectedIndex !== indexToSelect && this._selectedIndex != null) {
2727
+ this.SelectChange.emit(this._createChangeEvent(indexToSelect));
2728
+ }
2729
+ // Setup the position for each tab and optionally setup an origin on the next selected tab.
2730
+ this._tabs.forEach((tab, index) => {
2731
+ tab.position = index - indexToSelect;
2732
+ // If there is already a selected tab, then set up an origin for the next selected tab
2733
+ // if it doesn't have one already.
2734
+ if (this._selectedIndex != null && tab.position === 0 && !tab.origin) {
2735
+ tab.origin = indexToSelect - this._selectedIndex;
2736
+ }
2737
+ });
2738
+ this._selectedIndex = indexToSelect;
2739
+ }
2740
+ ngAfterViewInit() {
2741
+ this._isViewInit = true;
2742
+ }
2743
+ _createChangeEvent(index) {
2744
+ const event = new TabChangeEvent();
2745
+ event.index = index;
2746
+ if (this._tabs && this._tabs.length) {
2747
+ event.tab = this._tabs[index];
2748
+ this._tabs.forEach((item, i) => {
2749
+ if (i !== index) {
2750
+ item.pgDeselect.emit();
2751
+ }
2752
+ });
2753
+ event.tab.pgSelect.emit();
2754
+ }
2755
+ return event;
2756
+ }
2757
+ get inkBarAnimated() {
2758
+ return this.Animated === true || this.Animated.inkBar === true;
2759
+ }
2760
+ get tabPaneAnimated() {
2761
+ return this.Animated === true || this.Animated.tabPane === true;
2762
+ }
2763
+ }
2764
+ pgTabSetComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabSetComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
2765
+ pgTabSetComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: pgTabSetComponent, selector: "pg-tabset", inputs: { TabBarExtraTemplate: "TabBarExtraTemplate", Animated: "Animated", ShowPagination: "ShowPagination", Hide: "Hide", SelectedIndex: "SelectedIndex", Size: "Size", TabPosition: "TabPosition", extraTabClass: "extraTabClass", extraTabContentClass: "extraTabContentClass", Type: "Type", tabAnimation: "tabAnimation" }, outputs: { SelectedIndexChange: "SelectedIndexChange", SelectChange: "SelectChange" }, queries: [{ propertyName: "TabBarExtraContent", first: true, predicate: ["TabBarExtraContent"], descendants: true, static: true }], viewQueries: [{ propertyName: "_tabNav", first: true, predicate: ["tabNav"], descendants: true, static: true }, { propertyName: "_tabContent", first: true, predicate: ["tabContent"], descendants: true, static: true }, { propertyName: "_hostContent", first: true, predicate: ["hostContent"], descendants: true, static: true }], ngImport: i0, template: `
2766
+ <div class="tab-wrapper tab-{{ _tabPositionMode }} {{ _tabPosition }} {{ _type }} {{ _extra_tab_class }}" #hostContent>
2767
+ <pg-tabs-nav
2768
+ #tabNav
2769
+ [Size]="Size"
2770
+ [Type]="Type"
2771
+ [ShowPagination]="ShowPagination"
2772
+ [PositionMode]="_tabPositionMode"
2773
+ [Position]="_tabPosition"
2774
+ [Animated]="inkBarAnimated"
2775
+ [HideBar]="Hide"
2776
+ [selectedIndex]="SelectedIndex"
2777
+ >
2778
+ <ng-template #tabBarExtraContent>
2779
+ <ng-template [ngTemplateOutlet]="TabBarExtraTemplate || TabBarExtraContent"></ng-template>
2780
+ </ng-template>
2781
+ <li pg-tab-label [disabled]="tab.disabled" (click)="clickLabel(i)" *ngFor="let tab of _tabs; let i = index">
2782
+ <a href="javascript:void(0);" class="" [class.active]="SelectedIndex == i && !Hide">
2783
+ <ng-template [ngTemplateOutlet]="tab._tabHeading"></ng-template>
2784
+ </a>
2785
+ </li>
2786
+ </pg-tabs-nav>
2787
+ <div class="tab-content-wrapper {{ _extra_tabcontent_class }}">
2788
+ <div
2789
+ class="tab-content {{ _tabAnimation }}"
2790
+ #tabContent
2791
+ [class.animated]="tabPaneAnimated"
2792
+ [class.not-animated]="!tabPaneAnimated"
2793
+ [style.margin-left.%]="tabPaneAnimated && -(SelectedIndex ?? -1) * 100"
2794
+ >
2795
+ <pg-tab-body
2796
+ class="tab-pane"
2797
+ [class.active]="SelectedIndex == i && !Hide"
2798
+ [class.inactive]="SelectedIndex != i || Hide"
2799
+ [content]="tab.content"
2800
+ *ngFor="let tab of _tabs; let i = index"
2801
+ >
2802
+ </pg-tab-body>
2803
+ </div>
2804
+ </div>
2805
+ </div>
2806
+ `, isInline: true, components: [{ type: pgTabsNavComponent, selector: "pg-tabs-nav", inputs: ["Size", "Animated", "Position", "HideBar", "Type", "ShowPagination", "PositionMode", "selectedIndex"] }, { type: pgTabBodyComponent, selector: "pg-tab-body", inputs: ["content"] }], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: pgTabLabelDirective, selector: "[pg-tab-label]", inputs: ["disabled"] }], encapsulation: i0.ViewEncapsulation.None });
2807
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabSetComponent, decorators: [{
2808
+ type: Component,
2809
+ args: [{
2810
+ selector: 'pg-tabset',
2811
+ encapsulation: ViewEncapsulation.None,
2812
+ template: `
2813
+ <div class="tab-wrapper tab-{{ _tabPositionMode }} {{ _tabPosition }} {{ _type }} {{ _extra_tab_class }}" #hostContent>
2814
+ <pg-tabs-nav
2815
+ #tabNav
2816
+ [Size]="Size"
2817
+ [Type]="Type"
2818
+ [ShowPagination]="ShowPagination"
2819
+ [PositionMode]="_tabPositionMode"
2820
+ [Position]="_tabPosition"
2821
+ [Animated]="inkBarAnimated"
2822
+ [HideBar]="Hide"
2823
+ [selectedIndex]="SelectedIndex"
2824
+ >
2825
+ <ng-template #tabBarExtraContent>
2826
+ <ng-template [ngTemplateOutlet]="TabBarExtraTemplate || TabBarExtraContent"></ng-template>
2827
+ </ng-template>
2828
+ <li pg-tab-label [disabled]="tab.disabled" (click)="clickLabel(i)" *ngFor="let tab of _tabs; let i = index">
2829
+ <a href="javascript:void(0);" class="" [class.active]="SelectedIndex == i && !Hide">
2830
+ <ng-template [ngTemplateOutlet]="tab._tabHeading"></ng-template>
2831
+ </a>
2832
+ </li>
2833
+ </pg-tabs-nav>
2834
+ <div class="tab-content-wrapper {{ _extra_tabcontent_class }}">
2835
+ <div
2836
+ class="tab-content {{ _tabAnimation }}"
2837
+ #tabContent
2838
+ [class.animated]="tabPaneAnimated"
2839
+ [class.not-animated]="!tabPaneAnimated"
2840
+ [style.margin-left.%]="tabPaneAnimated && -(SelectedIndex ?? -1) * 100"
2841
+ >
2842
+ <pg-tab-body
2843
+ class="tab-pane"
2844
+ [class.active]="SelectedIndex == i && !Hide"
2845
+ [class.inactive]="SelectedIndex != i || Hide"
2846
+ [content]="tab.content"
2847
+ *ngFor="let tab of _tabs; let i = index"
2848
+ >
2849
+ </pg-tab-body>
2850
+ </div>
2851
+ </div>
2852
+ </div>
2853
+ `
2854
+ }]
2855
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { TabBarExtraTemplate: [{
2856
+ type: Input
2857
+ }], TabBarExtraContent: [{
2858
+ type: ContentChild,
2859
+ args: ['TabBarExtraContent', { static: true }]
2860
+ }], _tabNav: [{
2861
+ type: ViewChild,
2862
+ args: ['tabNav', { static: true }]
2863
+ }], _tabContent: [{
2864
+ type: ViewChild,
2865
+ args: ['tabContent', { static: true }]
2866
+ }], _hostContent: [{
2867
+ type: ViewChild,
2868
+ args: ['hostContent', { static: true }]
2869
+ }], Animated: [{
2870
+ type: Input
2871
+ }], ShowPagination: [{
2872
+ type: Input
2873
+ }], Hide: [{
2874
+ type: Input
2875
+ }], SelectedIndex: [{
2876
+ type: Input
2877
+ }], SelectedIndexChange: [{
2878
+ type: Output
2879
+ }], SelectChange: [{
2880
+ type: Output
2881
+ }], Size: [{
2882
+ type: Input
2883
+ }], TabPosition: [{
2884
+ type: Input
2885
+ }], extraTabClass: [{
2886
+ type: Input
2887
+ }], extraTabContentClass: [{
2888
+ type: Input
2889
+ }], Type: [{
2890
+ type: Input
2891
+ }], tabAnimation: [{
2892
+ type: Input
2893
+ }] } });
2894
+
2895
+ class pgTabComponent {
2896
+ constructor(pgTabSetComponent) {
2897
+ this.pgTabSetComponent = pgTabSetComponent;
2898
+ this.disabled = false;
2899
+ this.position = null;
2900
+ this.origin = null;
2901
+ this.pgSelect = new EventEmitter();
2902
+ this.pgClick = new EventEmitter();
2903
+ this.pgDeselect = new EventEmitter();
2904
+ }
2905
+ set Disabled(value) {
2906
+ this.disabled = toBoolean(value);
2907
+ }
2908
+ get Disabled() {
2909
+ return this.disabled;
2910
+ }
2911
+ get content() {
2912
+ return this._content;
2913
+ }
2914
+ ngOnInit() {
2915
+ this.pgTabSetComponent._tabs.push(this);
2916
+ }
2917
+ ngOnDestroy() {
2918
+ this.pgTabSetComponent._tabs.splice(this.pgTabSetComponent._tabs.indexOf(this), 1);
2919
+ }
2920
+ }
2921
+ pgTabComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabComponent, deps: [{ token: pgTabSetComponent }], target: i0.ɵɵFactoryTarget.Component });
2922
+ pgTabComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: pgTabComponent, selector: "pg-tab", inputs: { Disabled: "Disabled" }, outputs: { pgSelect: "pgSelect", pgClick: "pgClick", pgDeselect: "pgDeselect" }, host: { properties: { "class.ant-tabs-tabpane": "true" } }, queries: [{ propertyName: "_tabHeading", first: true, predicate: ["TabHeading"], descendants: true, static: true }], viewQueries: [{ propertyName: "_content", first: true, predicate: TemplateRef, descendants: true, static: true }], ngImport: i0, template: `
2923
+ <ng-template>
2924
+ <ng-content></ng-content>
2925
+ </ng-template>
2926
+ `, isInline: true });
2927
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabComponent, decorators: [{
2928
+ type: Component,
2929
+ args: [{
2930
+ selector: 'pg-tab',
2931
+ template: `
2932
+ <ng-template>
2933
+ <ng-content></ng-content>
2934
+ </ng-template>
2935
+ `,
2936
+ styles: [],
2937
+ host: {
2938
+ '[class.ant-tabs-tabpane]': 'true'
2939
+ }
2940
+ }]
2941
+ }], ctorParameters: function () { return [{ type: pgTabSetComponent }]; }, propDecorators: { Disabled: [{
2942
+ type: Input
2943
+ }], pgSelect: [{
2944
+ type: Output
2945
+ }], pgClick: [{
2946
+ type: Output
2947
+ }], pgDeselect: [{
2948
+ type: Output
2949
+ }], _tabHeading: [{
2950
+ type: ContentChild,
2951
+ args: ['TabHeading', { static: true }]
2952
+ }], _content: [{
2953
+ type: ViewChild,
2954
+ args: [TemplateRef, { static: true }]
2955
+ }] } });
2956
+
2957
+ class pgTabsModule {
2958
+ }
2959
+ pgTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2960
+ pgTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabsModule, declarations: [pgTabComponent, pgTabSetComponent, pgTabsNavComponent, pgTabLabelDirective, pgTabsInkBarDirective, pgTabBodyComponent], imports: [CommonModule, ObserversModule], exports: [pgTabComponent, pgTabSetComponent, pgTabsNavComponent, pgTabLabelDirective, pgTabsInkBarDirective, pgTabBodyComponent] });
2961
+ pgTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabsModule, imports: [[CommonModule, ObserversModule]] });
2962
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgTabsModule, decorators: [{
2963
+ type: NgModule,
2964
+ args: [{
2965
+ declarations: [pgTabComponent, pgTabSetComponent, pgTabsNavComponent, pgTabLabelDirective, pgTabsInkBarDirective, pgTabBodyComponent],
2966
+ exports: [pgTabComponent, pgTabSetComponent, pgTabsNavComponent, pgTabLabelDirective, pgTabsInkBarDirective, pgTabBodyComponent],
2967
+ imports: [CommonModule, ObserversModule]
2968
+ }]
2969
+ }] });
2970
+
2971
+ let mefDevPageLayoutsModuleComponents = [
2972
+ ProfileComponent,
2973
+ CentralPageComponent,
2974
+ CentralPageRowComponent,
2975
+ TablePageComponent,
2976
+ ManagePageComponent
2977
+ ];
2978
+ class MefDevPageLayoutsModule {
2979
+ }
2980
+ MefDevPageLayoutsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevPageLayoutsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2981
+ MefDevPageLayoutsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevPageLayoutsModule, declarations: [ProfileComponent,
2982
+ CentralPageComponent,
2983
+ CentralPageRowComponent,
2984
+ TablePageComponent,
2985
+ ManagePageComponent], imports: [CommonModule,
2986
+ TranslateModule,
2987
+ pgTabsModule], exports: [ProfileComponent,
2988
+ CentralPageComponent,
2989
+ CentralPageRowComponent,
2990
+ TablePageComponent,
2991
+ ManagePageComponent] });
2992
+ MefDevPageLayoutsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevPageLayoutsModule, imports: [[
2993
+ CommonModule,
2994
+ TranslateModule,
2995
+ pgTabsModule,
2996
+ ]] });
2997
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: MefDevPageLayoutsModule, decorators: [{
2998
+ type: NgModule,
2999
+ args: [{
3000
+ declarations: mefDevPageLayoutsModuleComponents,
3001
+ exports: mefDevPageLayoutsModuleComponents,
3002
+ imports: [
3003
+ CommonModule,
3004
+ TranslateModule,
3005
+ pgTabsModule,
3006
+ ],
3007
+ }]
3008
+ }] });
3009
+
3010
+ class SpecFlowTestComponent {
3011
+ constructor() { }
3012
+ ngOnInit() {
3013
+ }
3014
+ setError(error) {
3015
+ this.ResponseTimestamp = Date.now();
3016
+ this.ResponseError = 1;
3017
+ this.ReportError = error;
3018
+ }
3019
+ setSuccess() {
3020
+ this.ResponseTimestamp = Date.now();
3021
+ this.ResponseError = 0;
3022
+ this.ReportError = undefined;
3023
+ }
3024
+ }
3025
+ SpecFlowTestComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SpecFlowTestComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3026
+ SpecFlowTestComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: SpecFlowTestComponent, selector: "app-spec-flow-test", ngImport: i0, template: "<!-- Block for test -->\r\n<div style=\"display: none;\">\r\n <input id=\"ResponseTimestamp\" type=\"hidden\" value=\"{{ResponseTimestamp}}\" />\r\n <input id=\"ResponseError\" type=\"hidden\" value=\"{{ResponseError}}\" />\r\n <input id=\"ReportError\" type=\"hidden\" value=\"{{ReportError}}\" />\r\n</div>", styles: [""] });
3027
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SpecFlowTestComponent, decorators: [{
3028
+ type: Component,
3029
+ args: [{ selector: 'app-spec-flow-test', template: "<!-- Block for test -->\r\n<div style=\"display: none;\">\r\n <input id=\"ResponseTimestamp\" type=\"hidden\" value=\"{{ResponseTimestamp}}\" />\r\n <input id=\"ResponseError\" type=\"hidden\" value=\"{{ResponseError}}\" />\r\n <input id=\"ReportError\" type=\"hidden\" value=\"{{ReportError}}\" />\r\n</div>", styles: [""] }]
3030
+ }], ctorParameters: function () { return []; } });
3031
+
3032
+ class SpecFlowTestModule {
3033
+ static forRoot() {
3034
+ return {
3035
+ ngModule: SpecFlowTestModule
3036
+ };
3037
+ }
3038
+ }
3039
+ SpecFlowTestModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SpecFlowTestModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3040
+ SpecFlowTestModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SpecFlowTestModule, declarations: [SpecFlowTestComponent], imports: [CommonModule], exports: [SpecFlowTestComponent] });
3041
+ SpecFlowTestModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SpecFlowTestModule, imports: [[
3042
+ CommonModule
3043
+ ]] });
3044
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: SpecFlowTestModule, decorators: [{
3045
+ type: NgModule,
3046
+ args: [{
3047
+ declarations: [SpecFlowTestComponent],
3048
+ exports: [SpecFlowTestComponent],
3049
+ imports: [
3050
+ CommonModule
3051
+ ]
3052
+ }]
3053
+ }] });
3054
+
3055
+ class pgSwitchComponent {
3056
+ constructor() {
3057
+ this._disabled = false;
3058
+ this._prefixCls = "toggle-switch";
3059
+ this._color = "primary";
3060
+ this._innerPrefixCls = `${this._prefixCls}-inner `;
3061
+ this._checked = false;
3062
+ // ngModel Access
3063
+ this.onChange = () => null;
3064
+ this.onTouched = () => null;
3065
+ }
3066
+ set Size(value) {
3067
+ this._size = value;
3068
+ this.setClassMap();
3069
+ }
3070
+ set Color(value) {
3071
+ this._color = value;
3072
+ this.setClassMap();
3073
+ }
3074
+ get Size() {
3075
+ return this._size;
3076
+ }
3077
+ set Disabled(value) {
3078
+ this._disabled = toBoolean(value);
3079
+ this.setClassMap();
3080
+ }
3081
+ get Disabled() {
3082
+ return this._disabled;
3083
+ }
3084
+ onClick(e) {
3085
+ e.preventDefault();
3086
+ if (!this._disabled) {
3087
+ this.updateValue(!this._checked);
3088
+ this.onChange(this._checked);
3089
+ }
3090
+ }
3091
+ updateValue(value) {
3092
+ if (this._checked === value) {
3093
+ return;
3094
+ }
3095
+ this._checked = value;
3096
+ this.setClassMap();
3097
+ }
3098
+ setClassMap() {
3099
+ this._classMap = {
3100
+ [this._prefixCls]: true,
3101
+ [`${this._prefixCls}-checked`]: this._checked,
3102
+ [`${this._prefixCls}-disabled`]: this._disabled,
3103
+ [`${this._prefixCls}-small`]: this._size === "small",
3104
+ [this._color]: this._color
3105
+ };
3106
+ }
3107
+ writeValue(value) {
3108
+ this.updateValue(value);
3109
+ }
3110
+ registerOnChange(fn) {
3111
+ this.onChange = fn;
3112
+ }
3113
+ registerOnTouched(fn) {
3114
+ this.onTouched = fn;
3115
+ }
3116
+ setDisabledState(isDisabled) {
3117
+ this.Disabled = isDisabled;
3118
+ }
3119
+ ngOnInit() {
3120
+ this.setClassMap();
3121
+ }
3122
+ }
3123
+ pgSwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgSwitchComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
3124
+ pgSwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.7", type: pgSwitchComponent, selector: "pg-switch", inputs: { Size: "Size", Color: "Color", Disabled: "Disabled" }, outputs: { onChange: "onChange" }, host: { listeners: { "click": "onClick($event)" } }, providers: [
3125
+ {
3126
+ provide: NG_VALUE_ACCESSOR,
3127
+ useExisting: forwardRef(() => pgSwitchComponent),
3128
+ multi: true
3129
+ }
3130
+ ], ngImport: i0, template: `
3131
+ <span [ngClass]="_classMap" tabindex="0">
3132
+ <span [ngClass]="_innerPrefixCls">
3133
+ <ng-template [ngIf]="_checked">
3134
+ <ng-content select="[checked]"></ng-content>
3135
+ </ng-template>
3136
+ <ng-template [ngIf]="!_checked">
3137
+ <ng-content select="[unchecked]"></ng-content>
3138
+ </ng-template>
3139
+ </span>
3140
+ </span>
3141
+ `, isInline: true, directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
3142
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgSwitchComponent, decorators: [{
3143
+ type: Component,
3144
+ args: [{
3145
+ selector: "pg-switch",
3146
+ encapsulation: ViewEncapsulation.None,
3147
+ template: `
3148
+ <span [ngClass]="_classMap" tabindex="0">
3149
+ <span [ngClass]="_innerPrefixCls">
3150
+ <ng-template [ngIf]="_checked">
3151
+ <ng-content select="[checked]"></ng-content>
3152
+ </ng-template>
3153
+ <ng-template [ngIf]="!_checked">
3154
+ <ng-content select="[unchecked]"></ng-content>
3155
+ </ng-template>
3156
+ </span>
3157
+ </span>
3158
+ `,
3159
+ providers: [
3160
+ {
3161
+ provide: NG_VALUE_ACCESSOR,
3162
+ useExisting: forwardRef(() => pgSwitchComponent),
3163
+ multi: true
3164
+ }
3165
+ ]
3166
+ }]
3167
+ }], propDecorators: { onChange: [{
3168
+ type: Output
3169
+ }], Size: [{
3170
+ type: Input
3171
+ }], Color: [{
3172
+ type: Input
3173
+ }], Disabled: [{
3174
+ type: Input
3175
+ }], onClick: [{
3176
+ type: HostListener,
3177
+ args: ["click", ["$event"]]
3178
+ }] } });
3179
+
3180
+ class pgSwitchModule {
3181
+ }
3182
+ pgSwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
3183
+ pgSwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgSwitchModule, declarations: [pgSwitchComponent], imports: [CommonModule], exports: [pgSwitchComponent] });
3184
+ pgSwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgSwitchModule, imports: [[CommonModule]] });
3185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.7", ngImport: i0, type: pgSwitchModule, decorators: [{
3186
+ type: NgModule,
3187
+ args: [{
3188
+ exports: [pgSwitchComponent],
3189
+ declarations: [pgSwitchComponent],
3190
+ imports: [CommonModule]
3191
+ }]
3192
+ }] });
3193
+
3194
+ /**
3195
+ * Generated bundle index. Do not edit.
3196
+ */
3197
+
3198
+ export { CardComponent, CardLongComponent, CardSimpleComponent, CentralPageComponent, CentralPageRowComponent, CollapseComponent, CollapseSetComponent, FillComponent, FilteredFieldContainerComponent, FilteredFieldItemComponent, FilteredFieldService, FiltredItemModel, HelpBlockComponent, LoaderComponent, LoaderService, ManagePageComponent, MefDevCardModule, MefDevCollapseModule, MefDevFilteredFieldModule, MefDevHelpBlockModule, MefDevLoaderModule, MefDevModalModule, MefDevPageLayoutsModule, OptionPipe, PgSelectModule, ProfileComponent, ProgressComponent, ProgressConfig, ProgressModule, RequestEvent, RightFilterComponent, SlideRightComponent, SlideUpComponent, SpecFlowTestComponent, SpecFlowTestModule, TablePageComponent, mefDevCardComponents, mefDevCollapseModuleComponents, pgCard, pgCardModule, pgOptionComponent, pgSelectComponent, pgSwitchComponent, pgSwitchModule, pgTabBodyComponent, pgTabComponent, pgTabLabelDirective, pgTabSetComponent, pgTabsInkBarDirective, pgTabsModule, pgTabsNavComponent };
3199
+ //# sourceMappingURL=natec-mef-dev-ui-kit.mjs.map