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