@factor_ec/ui 1.0.5 → 1.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/display/avatar/avatar.component.mjs +74 -0
- package/esm2020/lib/display/content/content.component.mjs +19 -0
- package/esm2020/lib/display/display.module.mjs +66 -0
- package/esm2020/lib/display/icon/icon.component.mjs +97 -0
- package/esm2020/lib/{image → display/image}/image.component.mjs +1 -1
- package/esm2020/lib/{message → display/message}/message.component.mjs +1 -1
- package/esm2020/lib/display/message.service.mjs +58 -0
- package/esm2020/lib/display/observe-intersecting.directive.mjs +43 -0
- package/esm2020/lib/display/progress/progress.component.mjs +42 -0
- package/esm2020/lib/display/progress.service.mjs +50 -0
- package/esm2020/lib/inputs/inputs.module.mjs +24 -0
- package/esm2020/lib/{rating → inputs/rating}/rating.component.mjs +1 -1
- package/esm2020/lib/models/action.mjs +1 -1
- package/esm2020/lib/models/module-configuration.mjs +2 -0
- package/esm2020/lib/navigation/list/list.component.mjs +56 -0
- package/esm2020/lib/navigation/navbar/navbar.component.mjs +72 -0
- package/esm2020/lib/navigation/navigation.module.mjs +55 -0
- package/esm2020/lib/navigation/searchbox/searchbox.component.mjs +106 -0
- package/esm2020/lib/navigation/toolbar/toolbar.component.mjs +51 -0
- package/esm2020/lib/ui.module.mjs +15 -52
- package/esm2020/public-api.mjs +18 -8
- package/fesm2015/factor_ec-ui.mjs +559 -145
- package/fesm2015/factor_ec-ui.mjs.map +1 -1
- package/fesm2020/factor_ec-ui.mjs +553 -143
- package/fesm2020/factor_ec-ui.mjs.map +1 -1
- package/lib/{avatar → display/avatar}/avatar.component.d.ts +1 -1
- package/lib/{content → display/content}/content.component.d.ts +3 -4
- package/lib/display/display.module.d.ts +17 -0
- package/lib/{icon → display/icon}/icon.component.d.ts +1 -1
- package/lib/{image → display/image}/image.component.d.ts +0 -0
- package/lib/{message → display/message}/message.component.d.ts +0 -0
- package/lib/{message.service.d.ts → display/message.service.d.ts} +2 -2
- package/lib/{observe-intersecting.directive.d.ts → display/observe-intersecting.directive.d.ts} +2 -1
- package/lib/{progress → display/progress}/progress.component.d.ts +0 -0
- package/lib/display/progress.service.d.ts +15 -0
- package/lib/inputs/inputs.module.d.ts +8 -0
- package/lib/{rating → inputs/rating}/rating.component.d.ts +0 -0
- package/lib/models/action.d.ts +11 -3
- package/lib/models/module-configuration.d.ts +6 -0
- package/lib/navigation/list/list.component.d.ts +19 -0
- package/lib/navigation/navbar/navbar.component.d.ts +23 -0
- package/lib/navigation/navigation.module.d.ts +15 -0
- package/lib/navigation/searchbox/searchbox.component.d.ts +34 -0
- package/lib/navigation/toolbar/toolbar.component.d.ts +18 -0
- package/lib/ui.module.d.ts +7 -14
- package/package.json +1 -1
- package/public-api.d.ts +17 -7
- package/esm2020/lib/avatar/avatar.component.mjs +0 -74
- package/esm2020/lib/content/content.component.mjs +0 -14
- package/esm2020/lib/icon/icon.component.mjs +0 -97
- package/esm2020/lib/message.service.mjs +0 -58
- package/esm2020/lib/observe-intersecting.directive.mjs +0 -36
- package/esm2020/lib/progress/progress.component.mjs +0 -42
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, HostBinding, Inject,
|
|
2
|
+
import { Component, Input, HostBinding, Inject, EventEmitter, Output, Injectable, ApplicationRef, PLATFORM_ID, Directive, NgModule, forwardRef, ViewChild } from '@angular/core';
|
|
3
3
|
import * as i1 from '@factor_ec/utils';
|
|
4
4
|
import * as i1$1 from '@angular/common';
|
|
5
|
-
import { CommonModule } from '@angular/common';
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
5
|
+
import { isPlatformBrowser, CommonModule } from '@angular/common';
|
|
6
|
+
import * as i1$2 from '@angular/material/snack-bar';
|
|
7
|
+
import { MAT_SNACK_BAR_DATA, MatSnackBarModule } from '@angular/material/snack-bar';
|
|
8
8
|
import * as i3 from '@angular/material/dialog';
|
|
9
9
|
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
10
10
|
import * as i2 from '@angular/material/button';
|
|
11
11
|
import { MatButtonModule } from '@angular/material/button';
|
|
12
|
-
import
|
|
13
|
-
import {
|
|
12
|
+
import { ReplaySubject } from 'rxjs';
|
|
13
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
14
|
+
import * as i1$3 from '@angular/router';
|
|
15
|
+
import { RouterModule } from '@angular/router';
|
|
16
|
+
import * as i4 from '@angular/material/menu';
|
|
17
|
+
import { MatMenuModule } from '@angular/material/menu';
|
|
14
18
|
|
|
15
19
|
class AvatarComponent {
|
|
16
20
|
constructor(colorService) {
|
|
@@ -254,6 +258,99 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
254
258
|
args: ['class']
|
|
255
259
|
}] } });
|
|
256
260
|
|
|
261
|
+
class ContentComponent {
|
|
262
|
+
constructor(data) {
|
|
263
|
+
this.data = data;
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
ContentComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ContentComponent, deps: [{ token: MAT_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
267
|
+
ContentComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ContentComponent, selector: "lib-content", ngImport: i0, template: "<ng-container [ngSwitch]=\"data.message?.type\">\n <div *ngSwitchCase=\"'html'\" [innerHTML]=\"data.message?.content\"></div>\n <ng-container *ngSwitchDefault>{{ data.message?.content }}</ng-container>\n</ng-container>", styles: [""], dependencies: [{ kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }] });
|
|
268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ContentComponent, decorators: [{
|
|
269
|
+
type: Component,
|
|
270
|
+
args: [{ selector: 'lib-content', template: "<ng-container [ngSwitch]=\"data.message?.type\">\n <div *ngSwitchCase=\"'html'\" [innerHTML]=\"data.message?.content\"></div>\n <ng-container *ngSwitchDefault>{{ data.message?.content }}</ng-container>\n</ng-container>" }]
|
|
271
|
+
}], ctorParameters: function () {
|
|
272
|
+
return [{ type: undefined, decorators: [{
|
|
273
|
+
type: Inject,
|
|
274
|
+
args: [MAT_SNACK_BAR_DATA]
|
|
275
|
+
}] }];
|
|
276
|
+
} });
|
|
277
|
+
|
|
278
|
+
class MessageComponent {
|
|
279
|
+
constructor(data) {
|
|
280
|
+
this.data = data;
|
|
281
|
+
this.beforeSelect = new EventEmitter();
|
|
282
|
+
}
|
|
283
|
+
ngOnInit() {
|
|
284
|
+
}
|
|
285
|
+
select(value) {
|
|
286
|
+
this.beforeSelect.emit(value);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
MessageComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MessageComponent, deps: [{ token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
290
|
+
MessageComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: MessageComponent, selector: "ft-message", outputs: { beforeSelect: "beforeSelect" }, ngImport: i0, template: "<h1 mat-dialog-title class=\"ft-message__title\" *ngIf=\"data.options?.title\">\n <ft-icon *ngIf=\"data.options?.titleIcon\" [name]=\"data.options?.titleIcon?.name\"\n [collection]=\"data.options?.titleIcon?.collection\" [ngClass]=\"data.options?.titleIcon?.class\"\n [size]=\"data.options?.titleIcon?.size || 2\"></ft-icon>\n <div>{{ data.options?.title }}</div>\n </h1>\n <div mat-dialog-content class=\"ft-message__content\" [ngClass]=\"data.options?.class\">\n <ft-icon *ngIf=\"data.options?.icon\" [name]=\"data.options?.icon?.name\" [collection]=\"data.options?.icon?.collection\"\n [ngClass]=\"data.options?.icon?.class\" [size]=\"data.options?.icon?.size || 2\"></ft-icon>\n <ng-container [ngSwitch]=\"data.message?.type\">\n <div *ngSwitchCase=\"'html'\" [innerHTML]=\"data.message?.content\"></div>\n <ng-container *ngSwitchDefault>{{ data.message?.content }}</ng-container>\n </ng-container>\n </div>\n <div mat-dialog-actions class=\"ft-message__actions\" *ngIf=\"data.options.actionsVisible\">\n <ng-container *ngIf=\"data.options?.actions?.length > 0; else acceptTemplate\">\n <ng-container *ngFor=\"let action of data.options?.actions; let i = index\">\n <ng-container [ngSwitch]=\"action.type\">\n <button type=\"button\" *ngSwitchCase=\"'raised'\" mat-raised-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchCase=\"'flat'\" mat-flat-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchCase=\"'stroked'\" mat-stroked-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchDefault mat-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\">{{ action.label }}</button>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n <ng-template #acceptTemplate>\n <button type=\"button\" mat-stroked-button color=\"primary\" autofocus (click)=\"select('-1')\" i18n>Accept</button>\n </ng-template>", styles: [".mat-dialog-title{display:flex;align-items:center}.mat-dialog-title ft-icon{margin-right:.5rem}.mat-dialog-content{display:flex;align-items:center;margin-bottom:.5rem}.mat-dialog-content ft-icon{margin-right:.5rem}.mat-dialog-actions{display:flex;align-items:center;justify-content:flex-end;padding-bottom:1.5rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i3.MatDialogTitle, selector: "[mat-dialog-title], [matDialogTitle]", inputs: ["id"], exportAs: ["matDialogTitle"] }, { kind: "directive", type: i3.MatDialogContent, selector: "[mat-dialog-content], mat-dialog-content, [matDialogContent]" }, { kind: "directive", type: i3.MatDialogActions, selector: "[mat-dialog-actions], mat-dialog-actions, [matDialogActions]", inputs: ["align"] }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["class", "collection", "mode", "name", "path", "size", "src"] }] });
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MessageComponent, decorators: [{
|
|
292
|
+
type: Component,
|
|
293
|
+
args: [{ selector: 'ft-message', template: "<h1 mat-dialog-title class=\"ft-message__title\" *ngIf=\"data.options?.title\">\n <ft-icon *ngIf=\"data.options?.titleIcon\" [name]=\"data.options?.titleIcon?.name\"\n [collection]=\"data.options?.titleIcon?.collection\" [ngClass]=\"data.options?.titleIcon?.class\"\n [size]=\"data.options?.titleIcon?.size || 2\"></ft-icon>\n <div>{{ data.options?.title }}</div>\n </h1>\n <div mat-dialog-content class=\"ft-message__content\" [ngClass]=\"data.options?.class\">\n <ft-icon *ngIf=\"data.options?.icon\" [name]=\"data.options?.icon?.name\" [collection]=\"data.options?.icon?.collection\"\n [ngClass]=\"data.options?.icon?.class\" [size]=\"data.options?.icon?.size || 2\"></ft-icon>\n <ng-container [ngSwitch]=\"data.message?.type\">\n <div *ngSwitchCase=\"'html'\" [innerHTML]=\"data.message?.content\"></div>\n <ng-container *ngSwitchDefault>{{ data.message?.content }}</ng-container>\n </ng-container>\n </div>\n <div mat-dialog-actions class=\"ft-message__actions\" *ngIf=\"data.options.actionsVisible\">\n <ng-container *ngIf=\"data.options?.actions?.length > 0; else acceptTemplate\">\n <ng-container *ngFor=\"let action of data.options?.actions; let i = index\">\n <ng-container [ngSwitch]=\"action.type\">\n <button type=\"button\" *ngSwitchCase=\"'raised'\" mat-raised-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchCase=\"'flat'\" mat-flat-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchCase=\"'stroked'\" mat-stroked-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\" autofocus>{{ action.label }}</button>\n <button type=\"button\" *ngSwitchDefault mat-button [color]=\"action.metadata?.color\"\n (click)=\"select(action.value)\">{{ action.label }}</button>\n </ng-container>\n </ng-container>\n </ng-container>\n </div>\n <ng-template #acceptTemplate>\n <button type=\"button\" mat-stroked-button color=\"primary\" autofocus (click)=\"select('-1')\" i18n>Accept</button>\n </ng-template>", styles: [".mat-dialog-title{display:flex;align-items:center}.mat-dialog-title ft-icon{margin-right:.5rem}.mat-dialog-content{display:flex;align-items:center;margin-bottom:.5rem}.mat-dialog-content ft-icon{margin-right:.5rem}.mat-dialog-actions{display:flex;align-items:center;justify-content:flex-end;padding-bottom:1.5rem}\n"] }]
|
|
294
|
+
}], ctorParameters: function () {
|
|
295
|
+
return [{ type: undefined, decorators: [{
|
|
296
|
+
type: Inject,
|
|
297
|
+
args: [MAT_DIALOG_DATA]
|
|
298
|
+
}] }];
|
|
299
|
+
}, propDecorators: { beforeSelect: [{
|
|
300
|
+
type: Output
|
|
301
|
+
}] } });
|
|
302
|
+
|
|
303
|
+
class MessageService {
|
|
304
|
+
constructor(snackBar, dialog) {
|
|
305
|
+
this.snackBar = snackBar;
|
|
306
|
+
this.dialog = dialog;
|
|
307
|
+
}
|
|
308
|
+
show(message, options) {
|
|
309
|
+
let selectionSource = new ReplaySubject(undefined);
|
|
310
|
+
let selection = selectionSource.asObservable();
|
|
311
|
+
const defaults = {
|
|
312
|
+
type: 'notification',
|
|
313
|
+
duration: 2000,
|
|
314
|
+
actionsVisible: true
|
|
315
|
+
};
|
|
316
|
+
options = Object.assign(defaults, options);
|
|
317
|
+
const data = { message: typeof message === 'string' ? { content: message, type: 'text' } : message, options };
|
|
318
|
+
switch (options.type) {
|
|
319
|
+
default:
|
|
320
|
+
case 'notification':
|
|
321
|
+
this.snackBar.openFromComponent(ContentComponent, {
|
|
322
|
+
data,
|
|
323
|
+
panelClass: ['ft-message', 'ft-message--notification'],
|
|
324
|
+
duration: options.duration || 2000,
|
|
325
|
+
});
|
|
326
|
+
break;
|
|
327
|
+
case 'modal':
|
|
328
|
+
const dialogRef = this.dialog.open(MessageComponent, {
|
|
329
|
+
width: options.width || '350px',
|
|
330
|
+
data,
|
|
331
|
+
panelClass: ['ft-message', 'ft-message--modal'],
|
|
332
|
+
autoFocus: false,
|
|
333
|
+
disableClose: true
|
|
334
|
+
});
|
|
335
|
+
dialogRef.componentInstance.beforeSelect.subscribe(response => {
|
|
336
|
+
selectionSource.next(response);
|
|
337
|
+
dialogRef.close();
|
|
338
|
+
});
|
|
339
|
+
this.snackBar.dismiss();
|
|
340
|
+
break;
|
|
341
|
+
}
|
|
342
|
+
return selection;
|
|
343
|
+
}
|
|
344
|
+
}
|
|
345
|
+
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MessageService, deps: [{ token: i1$2.MatSnackBar }, { token: i3.MatDialog }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
346
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MessageService, providedIn: 'root' });
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: MessageService, decorators: [{
|
|
348
|
+
type: Injectable,
|
|
349
|
+
args: [{
|
|
350
|
+
providedIn: 'root'
|
|
351
|
+
}]
|
|
352
|
+
}], ctorParameters: function () { return [{ type: i1$2.MatSnackBar }, { type: i3.MatDialog }]; } });
|
|
353
|
+
|
|
257
354
|
class ProgressComponent {
|
|
258
355
|
constructor() {
|
|
259
356
|
this.class = '';
|
|
@@ -272,10 +369,10 @@ class ProgressComponent {
|
|
|
272
369
|
}
|
|
273
370
|
}
|
|
274
371
|
ProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
275
|
-
ProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ProgressComponent, selector: "ft-progress", inputs: { class: "class", color: "color", mode: "mode", overlay: "overlay", size: "size", value: "value" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<svg [ngStyle]=\"{'--bar-color': color}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\">\n <circle class=\"track\" cx=\"50\" cy=\"50\" r=\"40\" />\n <circle class=\"bar\" [ngClass]=\"mode\" cx=\"50\" cy=\"50\" r=\"40\"\n [ngStyle]=\"{'stroke-dashoffset': mode=='determinate'? 'calc((3.14159265 * 40 * 2 * (100 - '+value+')) / 100)' : null}\">\n </circle>\n</svg>", styles: [":host{--track-color: rgba(0, 0, 0, .08);--bar-color: var(--primary);line-height:0;display:inline-block}:host
|
|
372
|
+
ProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ProgressComponent, selector: "ft-progress", inputs: { class: "class", color: "color", mode: "mode", overlay: "overlay", size: "size", value: "value" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<svg [ngStyle]=\"{'--bar-color': color}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\">\n <circle class=\"track\" cx=\"50\" cy=\"50\" r=\"40\" />\n <circle class=\"bar\" [ngClass]=\"mode\" cx=\"50\" cy=\"50\" r=\"40\"\n [ngStyle]=\"{'stroke-dashoffset': mode=='determinate'? 'calc((3.14159265 * 40 * 2 * (100 - '+value+')) / 100)' : null}\">\n </circle>\n</svg>", styles: [":host{--track-color: rgba(0, 0, 0, .08);--bar-color: var(--primary);line-height:0;display:inline-block}:host.ft-progress--1{font-size:1rem}:host.ft-progress--2{font-size:1.5rem}:host.ft-progress--3{font-size:2rem}:host.ft-progress--4{font-size:3rem}:host.ft-progress--5{font-size:4.5rem}:host.ft-progress--6{font-size:8rem}:host.ft-progress--7{font-size:16rem}:host.ft-progress--8{font-size:32rem}:host.ft-progress--overlay{position:fixed;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:var(--z-index-modal, 1000);top:0;left:0;right:0;bottom:0;font-size:42px}:host.ft-progress--overlay svg{background:rgba(255,255,255,.6);-webkit-backdrop-filter:saturate(50%) blur(3px);backdrop-filter:saturate(50%) blur(3px);box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f;border-radius:100vh;padding:.3125rem;animation:progress-reveal .2s;animation-fill-mode:forwards}:host.ft-progress--overlay svg .track{display:none}svg{width:1em;height:1em;vertical-align:middle}svg .track{fill:none;stroke-width:10;stroke:var(--track-color)}svg .bar{fill:none;stroke-opacity:.9;stroke-width:6;stroke:var(--bar-color)}svg .bar.indeterminate{animation:progress-rotation 2s infinite linear}svg .bar.determinate{stroke-dasharray:251.327412288}@keyframes progress-reveal{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes progress-rotation{0%{stroke-dashoffset:0;stroke-dasharray:150.6 100.4}50%{stroke-dasharray:1 250}to{stroke-dashoffset:502;stroke-dasharray:150.6 100.4}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
276
373
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ProgressComponent, decorators: [{
|
|
277
374
|
type: Component,
|
|
278
|
-
args: [{ selector: 'ft-progress', template: "<svg [ngStyle]=\"{'--bar-color': color}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\">\n <circle class=\"track\" cx=\"50\" cy=\"50\" r=\"40\" />\n <circle class=\"bar\" [ngClass]=\"mode\" cx=\"50\" cy=\"50\" r=\"40\"\n [ngStyle]=\"{'stroke-dashoffset': mode=='determinate'? 'calc((3.14159265 * 40 * 2 * (100 - '+value+')) / 100)' : null}\">\n </circle>\n</svg>", styles: [":host{--track-color: rgba(0, 0, 0, .08);--bar-color: var(--primary);line-height:0;display:inline-block}:host
|
|
375
|
+
args: [{ selector: 'ft-progress', template: "<svg [ngStyle]=\"{'--bar-color': color}\" xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 100 100\" preserveAspectRatio=\"xMidYMid\">\n <circle class=\"track\" cx=\"50\" cy=\"50\" r=\"40\" />\n <circle class=\"bar\" [ngClass]=\"mode\" cx=\"50\" cy=\"50\" r=\"40\"\n [ngStyle]=\"{'stroke-dashoffset': mode=='determinate'? 'calc((3.14159265 * 40 * 2 * (100 - '+value+')) / 100)' : null}\">\n </circle>\n</svg>", styles: [":host{--track-color: rgba(0, 0, 0, .08);--bar-color: var(--primary);line-height:0;display:inline-block}:host.ft-progress--1{font-size:1rem}:host.ft-progress--2{font-size:1.5rem}:host.ft-progress--3{font-size:2rem}:host.ft-progress--4{font-size:3rem}:host.ft-progress--5{font-size:4.5rem}:host.ft-progress--6{font-size:8rem}:host.ft-progress--7{font-size:16rem}:host.ft-progress--8{font-size:32rem}:host.ft-progress--overlay{position:fixed;display:flex;align-items:center;justify-content:center;pointer-events:none;z-index:var(--z-index-modal, 1000);top:0;left:0;right:0;bottom:0;font-size:42px}:host.ft-progress--overlay svg{background:rgba(255,255,255,.6);-webkit-backdrop-filter:saturate(50%) blur(3px);backdrop-filter:saturate(50%) blur(3px);box-shadow:0 3px 3px -2px #0003,0 3px 4px #00000024,0 1px 8px #0000001f;border-radius:100vh;padding:.3125rem;animation:progress-reveal .2s;animation-fill-mode:forwards}:host.ft-progress--overlay svg .track{display:none}svg{width:1em;height:1em;vertical-align:middle}svg .track{fill:none;stroke-width:10;stroke:var(--track-color)}svg .bar{fill:none;stroke-opacity:.9;stroke-width:6;stroke:var(--bar-color)}svg .bar.indeterminate{animation:progress-rotation 2s infinite linear}svg .bar.determinate{stroke-dasharray:251.327412288}@keyframes progress-reveal{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}@keyframes progress-rotation{0%{stroke-dashoffset:0;stroke-dasharray:150.6 100.4}50%{stroke-dasharray:1 250}to{stroke-dashoffset:502;stroke-dasharray:150.6 100.4}}\n"] }]
|
|
279
376
|
}], ctorParameters: function () { return []; }, propDecorators: { class: [{
|
|
280
377
|
type: Input
|
|
281
378
|
}], color: [{
|
|
@@ -293,6 +390,148 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
293
390
|
args: ['class']
|
|
294
391
|
}] } });
|
|
295
392
|
|
|
393
|
+
class ProgressService {
|
|
394
|
+
constructor(componentFactoryResolver, injector) {
|
|
395
|
+
this.componentFactoryResolver = componentFactoryResolver;
|
|
396
|
+
this.injector = injector;
|
|
397
|
+
}
|
|
398
|
+
show() {
|
|
399
|
+
if (!this.componentRef) {
|
|
400
|
+
this.appRef = this.injector.get(ApplicationRef);
|
|
401
|
+
// 1. Create a component reference from the component
|
|
402
|
+
this.componentRef = this.componentFactoryResolver
|
|
403
|
+
.resolveComponentFactory(ProgressComponent)
|
|
404
|
+
.create(this.injector);
|
|
405
|
+
// 2. Attach component to the appRef so that it's inside the ng component tree
|
|
406
|
+
this.appRef.attachView(this.componentRef.hostView);
|
|
407
|
+
this.componentRef.instance.overlay = true;
|
|
408
|
+
// 3. Get DOM element from component
|
|
409
|
+
const domElem = this.componentRef.hostView
|
|
410
|
+
.rootNodes[0];
|
|
411
|
+
// 4. Append DOM element to the body
|
|
412
|
+
document.body.appendChild(domElem);
|
|
413
|
+
return true;
|
|
414
|
+
}
|
|
415
|
+
else {
|
|
416
|
+
return false;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
419
|
+
hide() {
|
|
420
|
+
if (this.componentRef) {
|
|
421
|
+
this.appRef.detachView(this.componentRef.hostView);
|
|
422
|
+
this.componentRef.destroy();
|
|
423
|
+
this.componentRef = null;
|
|
424
|
+
return true;
|
|
425
|
+
}
|
|
426
|
+
else {
|
|
427
|
+
return false;
|
|
428
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
ProgressService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ProgressService, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
432
|
+
ProgressService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ProgressService, providedIn: 'root' });
|
|
433
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ProgressService, decorators: [{
|
|
434
|
+
type: Injectable,
|
|
435
|
+
args: [{
|
|
436
|
+
providedIn: 'root'
|
|
437
|
+
}]
|
|
438
|
+
}], ctorParameters: function () { return [{ type: i0.ComponentFactoryResolver }, { type: i0.Injector }]; } });
|
|
439
|
+
|
|
440
|
+
class ObserveIntersectingDirective {
|
|
441
|
+
constructor(element, platformId) {
|
|
442
|
+
this.element = element;
|
|
443
|
+
this.platformId = platformId;
|
|
444
|
+
this.event = new EventEmitter();
|
|
445
|
+
}
|
|
446
|
+
ngOnInit() {
|
|
447
|
+
if (isPlatformBrowser(this.platformId)) {
|
|
448
|
+
if ("IntersectionObserver" in window) {
|
|
449
|
+
const elementObserver = new IntersectionObserver((entries, observer) => {
|
|
450
|
+
entries.forEach((entry) => {
|
|
451
|
+
this.event.emit(entry.isIntersecting);
|
|
452
|
+
});
|
|
453
|
+
}, this.options);
|
|
454
|
+
elementObserver.observe(this.element.nativeElement);
|
|
455
|
+
}
|
|
456
|
+
else {
|
|
457
|
+
console.error('ftObserveIntersecting not available in this browser.');
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
}
|
|
462
|
+
ObserveIntersectingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ObserveIntersectingDirective, deps: [{ token: i0.ElementRef }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Directive });
|
|
463
|
+
ObserveIntersectingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.0", type: ObserveIntersectingDirective, selector: "[ftObserveIntersecting]", inputs: { options: ["ftObserveIntersectingOptions", "options"] }, outputs: { event: "ftObserveIntersecting" }, ngImport: i0 });
|
|
464
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ObserveIntersectingDirective, decorators: [{
|
|
465
|
+
type: Directive,
|
|
466
|
+
args: [{
|
|
467
|
+
selector: '[ftObserveIntersecting]'
|
|
468
|
+
}]
|
|
469
|
+
}], ctorParameters: function () {
|
|
470
|
+
return [{ type: i0.ElementRef }, { type: Object, decorators: [{
|
|
471
|
+
type: Inject,
|
|
472
|
+
args: [PLATFORM_ID]
|
|
473
|
+
}] }];
|
|
474
|
+
}, propDecorators: { options: [{
|
|
475
|
+
type: Input,
|
|
476
|
+
args: ['ftObserveIntersectingOptions']
|
|
477
|
+
}], event: [{
|
|
478
|
+
type: Output,
|
|
479
|
+
args: ['ftObserveIntersecting']
|
|
480
|
+
}] } });
|
|
481
|
+
|
|
482
|
+
class DisplayModule {
|
|
483
|
+
}
|
|
484
|
+
DisplayModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DisplayModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
485
|
+
DisplayModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: DisplayModule, declarations: [AvatarComponent,
|
|
486
|
+
IconComponent,
|
|
487
|
+
ImageComponent,
|
|
488
|
+
ProgressComponent,
|
|
489
|
+
ObserveIntersectingDirective,
|
|
490
|
+
MessageComponent,
|
|
491
|
+
ContentComponent], imports: [CommonModule,
|
|
492
|
+
MatButtonModule,
|
|
493
|
+
MatDialogModule,
|
|
494
|
+
MatSnackBarModule], exports: [AvatarComponent,
|
|
495
|
+
IconComponent,
|
|
496
|
+
ImageComponent,
|
|
497
|
+
ProgressComponent,
|
|
498
|
+
ObserveIntersectingDirective,
|
|
499
|
+
MessageComponent,
|
|
500
|
+
ContentComponent] });
|
|
501
|
+
DisplayModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DisplayModule, imports: [CommonModule,
|
|
502
|
+
MatButtonModule,
|
|
503
|
+
MatDialogModule,
|
|
504
|
+
MatSnackBarModule] });
|
|
505
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: DisplayModule, decorators: [{
|
|
506
|
+
type: NgModule,
|
|
507
|
+
args: [{
|
|
508
|
+
declarations: [
|
|
509
|
+
AvatarComponent,
|
|
510
|
+
IconComponent,
|
|
511
|
+
ImageComponent,
|
|
512
|
+
ProgressComponent,
|
|
513
|
+
ObserveIntersectingDirective,
|
|
514
|
+
MessageComponent,
|
|
515
|
+
ContentComponent
|
|
516
|
+
],
|
|
517
|
+
exports: [
|
|
518
|
+
AvatarComponent,
|
|
519
|
+
IconComponent,
|
|
520
|
+
ImageComponent,
|
|
521
|
+
ProgressComponent,
|
|
522
|
+
ObserveIntersectingDirective,
|
|
523
|
+
MessageComponent,
|
|
524
|
+
ContentComponent
|
|
525
|
+
],
|
|
526
|
+
imports: [
|
|
527
|
+
CommonModule,
|
|
528
|
+
MatButtonModule,
|
|
529
|
+
MatDialogModule,
|
|
530
|
+
MatSnackBarModule
|
|
531
|
+
]
|
|
532
|
+
}]
|
|
533
|
+
}] });
|
|
534
|
+
|
|
296
535
|
class RatingComponent {
|
|
297
536
|
constructor() {
|
|
298
537
|
this.disabled = false;
|
|
@@ -362,127 +601,331 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
362
601
|
type: Input
|
|
363
602
|
}] } });
|
|
364
603
|
|
|
365
|
-
class
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
604
|
+
class InputsModule {
|
|
605
|
+
}
|
|
606
|
+
InputsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: InputsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
607
|
+
InputsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: InputsModule, declarations: [RatingComponent], imports: [CommonModule], exports: [RatingComponent] });
|
|
608
|
+
InputsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: InputsModule, imports: [CommonModule] });
|
|
609
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: InputsModule, decorators: [{
|
|
610
|
+
type: NgModule,
|
|
611
|
+
args: [{
|
|
612
|
+
declarations: [
|
|
613
|
+
RatingComponent
|
|
614
|
+
],
|
|
615
|
+
exports: [
|
|
616
|
+
RatingComponent
|
|
617
|
+
],
|
|
618
|
+
imports: [
|
|
619
|
+
CommonModule
|
|
620
|
+
]
|
|
621
|
+
}]
|
|
622
|
+
}] });
|
|
623
|
+
|
|
624
|
+
class ListComponent {
|
|
625
|
+
constructor(router) {
|
|
626
|
+
this.router = router;
|
|
627
|
+
this.change = new EventEmitter();
|
|
628
|
+
this.iconNameField = 'iconName';
|
|
629
|
+
this.labelField = 'label';
|
|
630
|
+
}
|
|
631
|
+
getComponentType(item) {
|
|
632
|
+
let type = 'text';
|
|
633
|
+
if (!item.url || item.url.match(/^(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/)) {
|
|
634
|
+
type = 'button';
|
|
378
635
|
}
|
|
379
636
|
else {
|
|
380
|
-
|
|
637
|
+
type = 'link';
|
|
381
638
|
}
|
|
639
|
+
return type;
|
|
640
|
+
}
|
|
641
|
+
setItem(item) {
|
|
642
|
+
if (item.url) {
|
|
643
|
+
if (item.url.match(/^(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/)) {
|
|
644
|
+
window.location.href = item.url;
|
|
645
|
+
}
|
|
646
|
+
}
|
|
647
|
+
else if (item.click) {
|
|
648
|
+
item.click();
|
|
649
|
+
}
|
|
650
|
+
}
|
|
651
|
+
toggleCollapsible(action) {
|
|
652
|
+
action.metadata.show = !action.metadata.show;
|
|
653
|
+
this.change.emit(action);
|
|
382
654
|
}
|
|
383
655
|
}
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type:
|
|
387
|
-
type:
|
|
388
|
-
args: [{
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
type: Input
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
656
|
+
ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListComponent, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
657
|
+
ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ListComponent, selector: "ft-list", inputs: { iconCollection: "iconCollection", iconNameField: "iconNameField", iconPath: "iconPath", labelField: "labelField", items: "items" }, outputs: { change: "change" }, ngImport: i0, template: "<ng-container *ngTemplateOutlet=\"switch; context: { children: items }\"></ng-container>\n<ng-template #switch let-children=\"children\" let-level=\"level\">\n <ng-container *ngFor=\"let item of children\" [ngSwitch]=\"item.type\">\n <ng-container *ngSwitchCase=\"'collapsible'\">\n <ng-container *ngTemplateOutlet=\"collapsible; context: { item: item }\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'header'\">\n <ng-container *ngTemplateOutlet=\"header; context: { item: item }\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"action; context: { item: item }\"></ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n<ng-template #action let-item=\"item\">\n <ng-container [ngSwitch]=\"getComponentType(item)\">\n <button *ngSwitchCase=\"'button'\" type=\"button\" matRipple class=\"list__item\" [ngClass]=\"item.class\" (click)=\"setItem(item)\">\n <ng-container *ngTemplateOutlet=\"text; context: { item: item }\"></ng-container>\n </button>\n <a *ngSwitchCase=\"'link'\" [routerLink]=\"item.url\" routerLinkActive=\"active\" matRipple class=\"list__item\" [ngClass]=\"item.class\" (click)=\"setItem(item)\">\n <ng-container *ngTemplateOutlet=\"text; context: { item: item }\"></ng-container>\n </a>\n </ng-container>\n</ng-template>\n<ng-template #collapsible let-item=\"item\">\n <button type=\"button\" matRipple class=\"collapsible-header list__item\" [ngClass]=\"{ show: item.metadata.show }\" (click)=\"toggleCollapsible(item)\">\n <div class=\"d-flex align-items-center flex-grow-1\">\n <ft-icon class=\"item__icon\" *ngIf=\"item[iconNameField]\" [name]=\"item[iconNameField]\" [collection]=\"iconCollection\" [path]=\"iconPath\"></ft-icon>\n <div class=\"item__label flex-grow-1\">{{ item[labelField] }}</div>\n <ft-icon class=\"item__toggle\" name=\"angle-right\" size=\"1\"></ft-icon>\n </div>\n </button>\n <div class=\"collapsible\" [ngClass]=\"{show:item.metadata.show}\" *ngIf=\"item.children\">\n <ng-container *ngTemplateOutlet=\"switch; context: { children: item.children }\"></ng-container>\n </div>\n</ng-template>\n<ng-template #header let-item=\"item\">\n <div class=\"header\" [ngClass]=\"item.class\">\n {{ item[labelField] }}\n </div>\n</ng-template>\n<ng-template #text let-item=\"item\">\n <div class=\"d-flex align-items-center\">\n <ft-icon class=\"item__icon\" *ngIf=\"item[iconNameField]\" [name]=\"item[iconNameField]\" [collection]=\"iconCollection\" [path]=\"iconPath\"></ft-icon>\n <div class=\"item__label\">{{ item[labelField] }}</div>\n </div>\n</ng-template>\n", styles: [":host{--background-color: var(--background-color, #F8F9FA);--background-color-hover: rgba(0, 0, 0, .03);--background-color-active: rgba(var(--primary-rgb), .1);--text-color: #333;--text-color-hover: var(--primary);--text-color-active: var(--primary);display:block;overflow:auto}.list__item{border:0;box-sizing:border-box;color:var(--text-color);background-color:var(--background-color);cursor:pointer;display:flex;outline:none;transition:background-color .3s,color .3s;text-align:left;padding:.75rem 1.5rem;width:100%}@media (min-width: var(--breakpoint-md)){.list__item{width:100%}}.list__item:hover{text-decoration:none}.list__item:hover:not(.active){--background-color: var(--background-color-hover);--text-color: var(--text-color-hover)}.list__item.active,.list__item:active{--background-color: var(--background-color-active);--text-color: var(--text-color-active)}.list__item>div{max-width:100%}.list__item .item__icon{font-size:1.5rem}.list__item .item__icon+.item__label{display:block;margin-left:.5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list__item .item__icon,.list__item .item__label{transition:margin-left .3s}.list__item .item__toggle{transition:transform .2s}.collapsible{overflow:hidden;transition:max-height .2s;max-height:100vh;background-color:#00000003;box-shadow:inset 0 4px 9px -7px #0006}.collapsible-header{font-weight:500}.collapsible-header.show .item__toggle{transform:rotate(90deg)}.collapsible:not(.show){max-height:0;background-color:transparent}.header{text-transform:uppercase;font-weight:700;padding:.75rem 1.5rem .25rem;font-size:.75rem;opacity:.3}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1$1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["class", "collection", "mode", "name", "path", "size", "src"] }, { kind: "directive", type: i1$3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: i1$3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
|
|
658
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ListComponent, decorators: [{
|
|
659
|
+
type: Component,
|
|
660
|
+
args: [{ selector: 'ft-list', template: "<ng-container *ngTemplateOutlet=\"switch; context: { children: items }\"></ng-container>\n<ng-template #switch let-children=\"children\" let-level=\"level\">\n <ng-container *ngFor=\"let item of children\" [ngSwitch]=\"item.type\">\n <ng-container *ngSwitchCase=\"'collapsible'\">\n <ng-container *ngTemplateOutlet=\"collapsible; context: { item: item }\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'header'\">\n <ng-container *ngTemplateOutlet=\"header; context: { item: item }\"></ng-container>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-container *ngTemplateOutlet=\"action; context: { item: item }\"></ng-container>\n </ng-container>\n </ng-container>\n</ng-template>\n<ng-template #action let-item=\"item\">\n <ng-container [ngSwitch]=\"getComponentType(item)\">\n <button *ngSwitchCase=\"'button'\" type=\"button\" matRipple class=\"list__item\" [ngClass]=\"item.class\" (click)=\"setItem(item)\">\n <ng-container *ngTemplateOutlet=\"text; context: { item: item }\"></ng-container>\n </button>\n <a *ngSwitchCase=\"'link'\" [routerLink]=\"item.url\" routerLinkActive=\"active\" matRipple class=\"list__item\" [ngClass]=\"item.class\" (click)=\"setItem(item)\">\n <ng-container *ngTemplateOutlet=\"text; context: { item: item }\"></ng-container>\n </a>\n </ng-container>\n</ng-template>\n<ng-template #collapsible let-item=\"item\">\n <button type=\"button\" matRipple class=\"collapsible-header list__item\" [ngClass]=\"{ show: item.metadata.show }\" (click)=\"toggleCollapsible(item)\">\n <div class=\"d-flex align-items-center flex-grow-1\">\n <ft-icon class=\"item__icon\" *ngIf=\"item[iconNameField]\" [name]=\"item[iconNameField]\" [collection]=\"iconCollection\" [path]=\"iconPath\"></ft-icon>\n <div class=\"item__label flex-grow-1\">{{ item[labelField] }}</div>\n <ft-icon class=\"item__toggle\" name=\"angle-right\" size=\"1\"></ft-icon>\n </div>\n </button>\n <div class=\"collapsible\" [ngClass]=\"{show:item.metadata.show}\" *ngIf=\"item.children\">\n <ng-container *ngTemplateOutlet=\"switch; context: { children: item.children }\"></ng-container>\n </div>\n</ng-template>\n<ng-template #header let-item=\"item\">\n <div class=\"header\" [ngClass]=\"item.class\">\n {{ item[labelField] }}\n </div>\n</ng-template>\n<ng-template #text let-item=\"item\">\n <div class=\"d-flex align-items-center\">\n <ft-icon class=\"item__icon\" *ngIf=\"item[iconNameField]\" [name]=\"item[iconNameField]\" [collection]=\"iconCollection\" [path]=\"iconPath\"></ft-icon>\n <div class=\"item__label\">{{ item[labelField] }}</div>\n </div>\n</ng-template>\n", styles: [":host{--background-color: var(--background-color, #F8F9FA);--background-color-hover: rgba(0, 0, 0, .03);--background-color-active: rgba(var(--primary-rgb), .1);--text-color: #333;--text-color-hover: var(--primary);--text-color-active: var(--primary);display:block;overflow:auto}.list__item{border:0;box-sizing:border-box;color:var(--text-color);background-color:var(--background-color);cursor:pointer;display:flex;outline:none;transition:background-color .3s,color .3s;text-align:left;padding:.75rem 1.5rem;width:100%}@media (min-width: var(--breakpoint-md)){.list__item{width:100%}}.list__item:hover{text-decoration:none}.list__item:hover:not(.active){--background-color: var(--background-color-hover);--text-color: var(--text-color-hover)}.list__item.active,.list__item:active{--background-color: var(--background-color-active);--text-color: var(--text-color-active)}.list__item>div{max-width:100%}.list__item .item__icon{font-size:1.5rem}.list__item .item__icon+.item__label{display:block;margin-left:.5rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.list__item .item__icon,.list__item .item__label{transition:margin-left .3s}.list__item .item__toggle{transition:transform .2s}.collapsible{overflow:hidden;transition:max-height .2s;max-height:100vh;background-color:#00000003;box-shadow:inset 0 4px 9px -7px #0006}.collapsible-header{font-weight:500}.collapsible-header.show .item__toggle{transform:rotate(90deg)}.collapsible:not(.show){max-height:0;background-color:transparent}.header{text-transform:uppercase;font-weight:700;padding:.75rem 1.5rem .25rem;font-size:.75rem;opacity:.3}\n"] }]
|
|
661
|
+
}], ctorParameters: function () { return [{ type: i1$3.Router }]; }, propDecorators: { change: [{
|
|
662
|
+
type: Output
|
|
663
|
+
}], iconCollection: [{
|
|
664
|
+
type: Input
|
|
665
|
+
}], iconNameField: [{
|
|
666
|
+
type: Input
|
|
667
|
+
}], iconPath: [{
|
|
668
|
+
type: Input
|
|
669
|
+
}], labelField: [{
|
|
670
|
+
type: Input
|
|
671
|
+
}], items: [{
|
|
672
|
+
type: Input
|
|
397
673
|
}] } });
|
|
398
674
|
|
|
399
|
-
class
|
|
400
|
-
constructor(
|
|
401
|
-
this.
|
|
402
|
-
this.
|
|
675
|
+
class NavbarComponent {
|
|
676
|
+
constructor(router) {
|
|
677
|
+
this.router = router;
|
|
678
|
+
this.class = '';
|
|
679
|
+
this.iconNameField = 'iconName';
|
|
680
|
+
this.labelField = 'label';
|
|
681
|
+
this.labelPlacement = 'auto';
|
|
682
|
+
this.position = 'auto';
|
|
403
683
|
}
|
|
404
|
-
ngOnInit() {
|
|
684
|
+
ngOnInit() { }
|
|
685
|
+
get hostClasses() {
|
|
686
|
+
return [
|
|
687
|
+
this.class,
|
|
688
|
+
this.position
|
|
689
|
+
].join(' ');
|
|
405
690
|
}
|
|
406
|
-
|
|
407
|
-
|
|
691
|
+
getComponentType(item) {
|
|
692
|
+
let type = 'text';
|
|
693
|
+
if (!item.url || item.url.match(/^(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/)) {
|
|
694
|
+
type = 'button';
|
|
695
|
+
}
|
|
696
|
+
else {
|
|
697
|
+
type = 'link';
|
|
698
|
+
}
|
|
699
|
+
return type;
|
|
700
|
+
}
|
|
701
|
+
setItem(item) {
|
|
702
|
+
if (item.url) {
|
|
703
|
+
if (item.url.match(/^(http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?/)) {
|
|
704
|
+
window.location.href = item.url;
|
|
705
|
+
}
|
|
706
|
+
}
|
|
707
|
+
else if (item.click) {
|
|
708
|
+
item.click();
|
|
709
|
+
}
|
|
710
|
+
}
|
|
711
|
+
toggleCollapsible(action) {
|
|
712
|
+
action.metadata.show = !action.metadata.show;
|
|
713
|
+
}
|
|
714
|
+
trackByItem(index, item) {
|
|
715
|
+
return `${item.label} ${item.url}`;
|
|
408
716
|
}
|
|
409
717
|
}
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type:
|
|
718
|
+
NavbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NavbarComponent, deps: [{ token: i1$3.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
719
|
+
NavbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: NavbarComponent, selector: "ft-navbar", inputs: { class: "class", iconCollection: "iconCollection", iconNameField: "iconNameField", labelField: "labelField", labelPlacement: "labelPlacement", items: "items", position: "position" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<ng-content select=\"[ftStart]\"></ng-content>\n<div class=\"list\" *ngIf=\"items\">\n <ng-container *ngFor=\"let item of items; trackBy: trackByItem\">\n <ng-container *ngTemplateOutlet=\"action; context: { item: item }\"></ng-container>\n </ng-container>\n</div>\n<ng-content select=\"[ftEnd]\"></ng-content>\n<ng-template #action let-item=\"item\">\n <ng-container [ngSwitch]=\"getComponentType(item)\">\n <button *ngSwitchCase=\"'button'\" type=\"button\" matRipple class=\"list__item\" [ngClass]=\"[labelPlacement, item.class || '' ]\" (click)=\"setItem(item)\">\n <ng-container *ngTemplateOutlet=\"text; context: { item: item }\"></ng-container>\n </button>\n <a *ngSwitchCase=\"'link'\" [routerLink]=\"item.url\" routerLinkActive=\"active\" matRipple class=\"list__item\" [ngClass]=\"[labelPlacement, item.class || '' ]\" (click)=\"setItem(item)\">\n <ng-container *ngTemplateOutlet=\"text; context: { item: item }\"></ng-container>\n </a>\n </ng-container>\n</ng-template>\n<ng-template #text let-item=\"item\">\n <div class=\"item\">\n <ft-icon class=\"item__icon\" *ngIf=\"item[iconNameField]\" [name]=\"item[iconNameField]\" [collection]=\"iconCollection\" [title]=\"labelPlacement === 'none' ? item[labelField] : '' \"></ft-icon>\n <div class=\"item__label\" *ngIf=\"labelPlacement !== 'none'\">{{ item[labelField] }}</div>\n </div>\n</ng-template>\n", styles: [":host{--min-width: 4rem;--min-height: 3.5rem;--background-color: #FFF;--background-color-hover: rgba(0, 0, 0, .1);--background-color-active: rgba(0, 0, 0, .1);--text-color: #333;--text-color-hover: #333;--text-color-active: #FFF;background-color:var(--background-color);position:fixed;transition:transform .3s ease-in-out,width .3s,color .3s,background-color .3s;z-index:var(--z-index, 990);font-size:.875rem;display:flex}@media (min-width: 576px){:host{--min-width: 13.75rem}}:host.left,:host.right{top:0;bottom:0;box-shadow:0 1px 1px #00000024,0 1px 3px #0000001f;min-width:var(--min-width)}:host.left{left:0}:host.right{right:0}:host.bottom,:host.top{left:0;right:0;min-height:var(--min-height)}:host.bottom .list,:host.top .list{display:flex}:host.bottom .list__item,:host.top .list__item{flex-grow:1;justify-content:center}:host.bottom{bottom:0;box-shadow:0 0 1px #00000024,0 -1px 3px #0000001f}:host.top{top:0;box-shadow:0 0 1px #00000024,0 1px 3px #0000001f}@media (min-width: 768px){:host.auto{left:0;top:0;bottom:0;box-shadow:0 1px 1px #00000024,0 1px 3px #0000001f;min-width:var(--min-width);flex-direction:column}}@media (max-width: 767.98px){:host.auto{bottom:0;left:0;right:0;box-shadow:0 0 1px #00000024,0 -1px 3px #0000001f;min-height:var(--min-height)}:host.auto .list{display:flex}}.list{display:block;flex-grow:1;overflow:auto}.list__item{border:0;box-sizing:border-box;color:var(--text-color);cursor:pointer;outline:none;transition:background-color .3s,color .3s;display:flex;align-items:center;padding:.75rem 1rem;width:100%}.list__item:hover{text-decoration:none}.list__item:hover:not(.active){background:var(--hover-background-color);color:var(--hover-text-color)}.list__item.active{background:var(--active-background-color);color:var(--active-text-color)}.list__item.left{justify-content:flex-start}.list__item.left .item__icon{margin-right:.5rem}.list__item.right{justify-content:flex-end}.list__item.right .item{flex-direction:row-reverse}.list__item.right .item__icon{margin-left:.5rem}.list__item.top{justify-content:center;flex-grow:1;padding:.5rem}.list__item.top .item{flex-direction:column-reverse}.list__item.bottom{justify-content:center;flex-grow:1;padding:.5rem}.list__item.bottom .item{flex-direction:column}@media (min-width: 768px){.list__item.auto .item{flex-direction:row}.list__item.auto .item__icon{margin-right:.5rem}}@media (max-width: 767.98px){.list__item.auto{justify-content:center;flex-grow:1;padding:.5rem}.list__item.auto .item{flex-direction:column;font-size:.6875rem}}.list__item .item{display:flex;align-items:center}.list__item .item__icon{font-size:1.5rem}.list__item .item__label{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1$1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1$1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["class", "collection", "mode", "name", "path", "size", "src"] }, { kind: "directive", type: i1$3.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo", "routerLink"] }, { kind: "directive", type: i1$3.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "ariaCurrentWhenActive", "routerLinkActive"], outputs: ["isActiveChange"], exportAs: ["routerLinkActive"] }] });
|
|
720
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NavbarComponent, decorators: [{
|
|
413
721
|
type: Component,
|
|
414
|
-
args: [{ selector: 'ft-
|
|
415
|
-
}], ctorParameters: function () {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
722
|
+
args: [{ selector: 'ft-navbar', template: "<ng-content select=\"[ftStart]\"></ng-content>\n<div class=\"list\" *ngIf=\"items\">\n <ng-container *ngFor=\"let item of items; trackBy: trackByItem\">\n <ng-container *ngTemplateOutlet=\"action; context: { item: item }\"></ng-container>\n </ng-container>\n</div>\n<ng-content select=\"[ftEnd]\"></ng-content>\n<ng-template #action let-item=\"item\">\n <ng-container [ngSwitch]=\"getComponentType(item)\">\n <button *ngSwitchCase=\"'button'\" type=\"button\" matRipple class=\"list__item\" [ngClass]=\"[labelPlacement, item.class || '' ]\" (click)=\"setItem(item)\">\n <ng-container *ngTemplateOutlet=\"text; context: { item: item }\"></ng-container>\n </button>\n <a *ngSwitchCase=\"'link'\" [routerLink]=\"item.url\" routerLinkActive=\"active\" matRipple class=\"list__item\" [ngClass]=\"[labelPlacement, item.class || '' ]\" (click)=\"setItem(item)\">\n <ng-container *ngTemplateOutlet=\"text; context: { item: item }\"></ng-container>\n </a>\n </ng-container>\n</ng-template>\n<ng-template #text let-item=\"item\">\n <div class=\"item\">\n <ft-icon class=\"item__icon\" *ngIf=\"item[iconNameField]\" [name]=\"item[iconNameField]\" [collection]=\"iconCollection\" [title]=\"labelPlacement === 'none' ? item[labelField] : '' \"></ft-icon>\n <div class=\"item__label\" *ngIf=\"labelPlacement !== 'none'\">{{ item[labelField] }}</div>\n </div>\n</ng-template>\n", styles: [":host{--min-width: 4rem;--min-height: 3.5rem;--background-color: #FFF;--background-color-hover: rgba(0, 0, 0, .1);--background-color-active: rgba(0, 0, 0, .1);--text-color: #333;--text-color-hover: #333;--text-color-active: #FFF;background-color:var(--background-color);position:fixed;transition:transform .3s ease-in-out,width .3s,color .3s,background-color .3s;z-index:var(--z-index, 990);font-size:.875rem;display:flex}@media (min-width: 576px){:host{--min-width: 13.75rem}}:host.left,:host.right{top:0;bottom:0;box-shadow:0 1px 1px #00000024,0 1px 3px #0000001f;min-width:var(--min-width)}:host.left{left:0}:host.right{right:0}:host.bottom,:host.top{left:0;right:0;min-height:var(--min-height)}:host.bottom .list,:host.top .list{display:flex}:host.bottom .list__item,:host.top .list__item{flex-grow:1;justify-content:center}:host.bottom{bottom:0;box-shadow:0 0 1px #00000024,0 -1px 3px #0000001f}:host.top{top:0;box-shadow:0 0 1px #00000024,0 1px 3px #0000001f}@media (min-width: 768px){:host.auto{left:0;top:0;bottom:0;box-shadow:0 1px 1px #00000024,0 1px 3px #0000001f;min-width:var(--min-width);flex-direction:column}}@media (max-width: 767.98px){:host.auto{bottom:0;left:0;right:0;box-shadow:0 0 1px #00000024,0 -1px 3px #0000001f;min-height:var(--min-height)}:host.auto .list{display:flex}}.list{display:block;flex-grow:1;overflow:auto}.list__item{border:0;box-sizing:border-box;color:var(--text-color);cursor:pointer;outline:none;transition:background-color .3s,color .3s;display:flex;align-items:center;padding:.75rem 1rem;width:100%}.list__item:hover{text-decoration:none}.list__item:hover:not(.active){background:var(--hover-background-color);color:var(--hover-text-color)}.list__item.active{background:var(--active-background-color);color:var(--active-text-color)}.list__item.left{justify-content:flex-start}.list__item.left .item__icon{margin-right:.5rem}.list__item.right{justify-content:flex-end}.list__item.right .item{flex-direction:row-reverse}.list__item.right .item__icon{margin-left:.5rem}.list__item.top{justify-content:center;flex-grow:1;padding:.5rem}.list__item.top .item{flex-direction:column-reverse}.list__item.bottom{justify-content:center;flex-grow:1;padding:.5rem}.list__item.bottom .item{flex-direction:column}@media (min-width: 768px){.list__item.auto .item{flex-direction:row}.list__item.auto .item__icon{margin-right:.5rem}}@media (max-width: 767.98px){.list__item.auto{justify-content:center;flex-grow:1;padding:.5rem}.list__item.auto .item{flex-direction:column;font-size:.6875rem}}.list__item .item{display:flex;align-items:center}.list__item .item__icon{font-size:1.5rem}.list__item .item__label{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}\n"] }]
|
|
723
|
+
}], ctorParameters: function () { return [{ type: i1$3.Router }]; }, propDecorators: { class: [{
|
|
724
|
+
type: Input
|
|
725
|
+
}], iconCollection: [{
|
|
726
|
+
type: Input
|
|
727
|
+
}], iconNameField: [{
|
|
728
|
+
type: Input
|
|
729
|
+
}], labelField: [{
|
|
730
|
+
type: Input
|
|
731
|
+
}], labelPlacement: [{
|
|
732
|
+
type: Input
|
|
733
|
+
}], items: [{
|
|
734
|
+
type: Input
|
|
735
|
+
}], position: [{
|
|
736
|
+
type: Input
|
|
737
|
+
}], hostClasses: [{
|
|
738
|
+
type: HostBinding,
|
|
739
|
+
args: ['class']
|
|
422
740
|
}] } });
|
|
423
741
|
|
|
424
|
-
class
|
|
425
|
-
constructor() {
|
|
742
|
+
class SearchboxComponent {
|
|
743
|
+
constructor() {
|
|
744
|
+
this.execute = new EventEmitter();
|
|
745
|
+
this.showChange = new EventEmitter();
|
|
746
|
+
this.onChange = (_) => { };
|
|
747
|
+
this.onTouched = (_) => { };
|
|
748
|
+
}
|
|
749
|
+
get hostClasses() {
|
|
750
|
+
return [
|
|
751
|
+
this.class,
|
|
752
|
+
this.shown ? 'show' : ''
|
|
753
|
+
].join(' ');
|
|
754
|
+
}
|
|
755
|
+
set show(value) {
|
|
756
|
+
this.shown = value;
|
|
757
|
+
if (value) {
|
|
758
|
+
setTimeout(() => {
|
|
759
|
+
this.getNativeElement().focus();
|
|
760
|
+
}, 300);
|
|
761
|
+
}
|
|
762
|
+
}
|
|
763
|
+
set value(value) {
|
|
764
|
+
this._value = value || '';
|
|
765
|
+
this.getNativeElement().value = this._value;
|
|
766
|
+
this.onChange(this._value);
|
|
767
|
+
this.onTouched(this._value);
|
|
768
|
+
}
|
|
769
|
+
get value() {
|
|
770
|
+
return this._value;
|
|
771
|
+
}
|
|
426
772
|
ngOnInit() {
|
|
427
773
|
}
|
|
774
|
+
closeSearch() {
|
|
775
|
+
this.showChange.emit(false);
|
|
776
|
+
}
|
|
777
|
+
getNativeElement() {
|
|
778
|
+
const input = this.placeholder ? this.inputPlaceholder : this.input;
|
|
779
|
+
return input.nativeElement;
|
|
780
|
+
}
|
|
781
|
+
registerOnChange(fn) {
|
|
782
|
+
this.onChange = fn;
|
|
783
|
+
}
|
|
784
|
+
registerOnTouched(fn) {
|
|
785
|
+
this.onTouched = fn;
|
|
786
|
+
}
|
|
787
|
+
setDisabledState(isDisabled) {
|
|
788
|
+
this.disabled = isDisabled;
|
|
789
|
+
}
|
|
790
|
+
onSearch(event) {
|
|
791
|
+
event.preventDefault();
|
|
792
|
+
this.getNativeElement().value = '';
|
|
793
|
+
this.execute.emit(this._value);
|
|
794
|
+
}
|
|
795
|
+
updateValue(event) {
|
|
796
|
+
this.value = event.target.value;
|
|
797
|
+
}
|
|
798
|
+
writeValue(value) {
|
|
799
|
+
this.value = value;
|
|
800
|
+
}
|
|
428
801
|
}
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
802
|
+
SearchboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SearchboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
803
|
+
SearchboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: SearchboxComponent, selector: "ft-searchbox", inputs: { class: "class", placeholder: "placeholder", show: "show", value: "value" }, outputs: { execute: "execute", showChange: "showChange" }, host: { properties: { "class": "this.hostClasses" } }, providers: [
|
|
804
|
+
{
|
|
805
|
+
provide: NG_VALUE_ACCESSOR,
|
|
806
|
+
useExisting: forwardRef(() => SearchboxComponent),
|
|
807
|
+
multi: true
|
|
808
|
+
}
|
|
809
|
+
], viewQueries: [{ propertyName: "input", first: true, predicate: ["input"], descendants: true }, { propertyName: "inputPlaceholder", first: true, predicate: ["inputPlaceholder"], descendants: true }], ngImport: i0, template: "<form (submit)=\"onSearch($event)\" class=\"container p-2 p-sm-3 pb-md-3 pt-md-5 px-md-3 px-lg-5\">\n <div class=\"d-flex align-items-center\">\n <button type=\"button\" mat-icon-button class=\"p-2 mr-2\" (click)=\"closeSearch()\">\n <ft-icon name=\"arrow-left\" size=\"2\"></ft-icon>\n </button>\n <input\n #input\n type=\"search\"\n matInput\n class=\"flex-grow-1\"\n i18n-placeholder\n placeholder=\"Search criteria\"\n [disabled]=\"disabled\"\n (change)=\"updateValue($event)\"\n (keyup)=\"updateValue($event)\"\n *ngIf=\"!placeholder\"\n />\n <input\n #inputPlaceholder\n type=\"search\"\n matInput\n class=\"flex-grow-1\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n (change)=\"updateValue($event)\"\n (keyup)=\"updateValue($event)\"\n *ngIf=\"placeholder\"\n />\n <button type=\"submit\" mat-icon-button class=\"p-2 ml-2\">\n <ft-icon name=\"search\" size=\"2\"></ft-icon>\n </button>\n </div>\n </form>\n ", styles: [":host{z-index:var(--z-index, 980);background-color:var(--background-color, #FFF);display:block;transition:background-color .2s,box-shadow .2s;position:sticky;top:-1px;margin-top:-3.5rem;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}:host.show{opacity:1;visibility:visible}@media (min-width: 576px){:host{margin-top:-4.5rem}}@media (min-width: 768px){:host{top:-2rem;margin-top:-6.5rem}}:host button{min-width:0;line-height:inherit}:host input{border:0;background-color:transparent}:host input:focus{outline:none}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["class", "collection", "mode", "name", "path", "size", "src"] }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
|
|
810
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: SearchboxComponent, decorators: [{
|
|
432
811
|
type: Component,
|
|
433
|
-
args: [{ selector: '
|
|
434
|
-
|
|
812
|
+
args: [{ selector: 'ft-searchbox', providers: [
|
|
813
|
+
{
|
|
814
|
+
provide: NG_VALUE_ACCESSOR,
|
|
815
|
+
useExisting: forwardRef(() => SearchboxComponent),
|
|
816
|
+
multi: true
|
|
817
|
+
}
|
|
818
|
+
], template: "<form (submit)=\"onSearch($event)\" class=\"container p-2 p-sm-3 pb-md-3 pt-md-5 px-md-3 px-lg-5\">\n <div class=\"d-flex align-items-center\">\n <button type=\"button\" mat-icon-button class=\"p-2 mr-2\" (click)=\"closeSearch()\">\n <ft-icon name=\"arrow-left\" size=\"2\"></ft-icon>\n </button>\n <input\n #input\n type=\"search\"\n matInput\n class=\"flex-grow-1\"\n i18n-placeholder\n placeholder=\"Search criteria\"\n [disabled]=\"disabled\"\n (change)=\"updateValue($event)\"\n (keyup)=\"updateValue($event)\"\n *ngIf=\"!placeholder\"\n />\n <input\n #inputPlaceholder\n type=\"search\"\n matInput\n class=\"flex-grow-1\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n (change)=\"updateValue($event)\"\n (keyup)=\"updateValue($event)\"\n *ngIf=\"placeholder\"\n />\n <button type=\"submit\" mat-icon-button class=\"p-2 ml-2\">\n <ft-icon name=\"search\" size=\"2\"></ft-icon>\n </button>\n </div>\n </form>\n ", styles: [":host{z-index:var(--z-index, 980);background-color:var(--background-color, #FFF);display:block;transition:background-color .2s,box-shadow .2s;position:sticky;top:-1px;margin-top:-3.5rem;opacity:0;visibility:hidden;transition:opacity .3s,visibility .3s}:host.show{opacity:1;visibility:visible}@media (min-width: 576px){:host{margin-top:-4.5rem}}@media (min-width: 768px){:host{top:-2rem;margin-top:-6.5rem}}:host button{min-width:0;line-height:inherit}:host input{border:0;background-color:transparent}:host input:focus{outline:none}\n"] }]
|
|
819
|
+
}], ctorParameters: function () { return []; }, propDecorators: { class: [{
|
|
820
|
+
type: Input
|
|
821
|
+
}], input: [{
|
|
822
|
+
type: ViewChild,
|
|
823
|
+
args: ['input', { static: false }]
|
|
824
|
+
}], inputPlaceholder: [{
|
|
825
|
+
type: ViewChild,
|
|
826
|
+
args: ['inputPlaceholder', { static: false }]
|
|
827
|
+
}], placeholder: [{
|
|
828
|
+
type: Input
|
|
829
|
+
}], execute: [{
|
|
830
|
+
type: Output
|
|
831
|
+
}], showChange: [{
|
|
832
|
+
type: Output
|
|
833
|
+
}], hostClasses: [{
|
|
834
|
+
type: HostBinding,
|
|
835
|
+
args: ['class']
|
|
836
|
+
}], show: [{
|
|
837
|
+
type: Input
|
|
838
|
+
}], value: [{
|
|
839
|
+
type: Input
|
|
840
|
+
}] } });
|
|
435
841
|
|
|
436
|
-
class
|
|
437
|
-
constructor(
|
|
438
|
-
this.
|
|
439
|
-
this.
|
|
842
|
+
class ToolbarComponent {
|
|
843
|
+
constructor() {
|
|
844
|
+
this.rootMargin = { rootMargin: '0px 0px 0px 0px' };
|
|
845
|
+
this.class = '';
|
|
846
|
+
const breakpointSm = parseInt(getComputedStyle(document.documentElement).getPropertyValue('--breakpoint-sm'));
|
|
847
|
+
if (window.innerWidth < breakpointSm) {
|
|
848
|
+
this.rootMargin = { rootMargin: '0px 0px 0px 0px' };
|
|
849
|
+
}
|
|
440
850
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
const defaults = {
|
|
445
|
-
type: 'notification',
|
|
446
|
-
duration: 2000,
|
|
447
|
-
actionsVisible: true
|
|
448
|
-
};
|
|
449
|
-
options = Object.assign(defaults, options);
|
|
450
|
-
const data = { message: typeof message === 'string' ? { content: message, type: 'text' } : message, options };
|
|
451
|
-
switch (options.type) {
|
|
452
|
-
default:
|
|
453
|
-
case 'notification':
|
|
454
|
-
this.snackBar.openFromComponent(ContentComponent, {
|
|
455
|
-
data,
|
|
456
|
-
panelClass: ['ft-message', 'ft-message--notification'],
|
|
457
|
-
duration: options.duration || 2000,
|
|
458
|
-
});
|
|
459
|
-
break;
|
|
460
|
-
case 'modal':
|
|
461
|
-
const dialogRef = this.dialog.open(MessageComponent, {
|
|
462
|
-
width: options.width || '350px',
|
|
463
|
-
data,
|
|
464
|
-
panelClass: ['ft-message', 'ft-message--modal'],
|
|
465
|
-
autoFocus: false,
|
|
466
|
-
disableClose: true
|
|
467
|
-
});
|
|
468
|
-
dialogRef.componentInstance.beforeSelect.subscribe(response => {
|
|
469
|
-
selectionSource.next(response);
|
|
470
|
-
dialogRef.close();
|
|
471
|
-
});
|
|
472
|
-
this.snackBar.dismiss();
|
|
473
|
-
break;
|
|
851
|
+
ngOnInit() {
|
|
852
|
+
if (this.titleOptions && !this.currentTitleOption) {
|
|
853
|
+
this.currentTitleOption = this.titleOptions[0];
|
|
474
854
|
}
|
|
475
|
-
|
|
855
|
+
}
|
|
856
|
+
get hostClasses() {
|
|
857
|
+
return [
|
|
858
|
+
this.class,
|
|
859
|
+
this.overlapped ? 'overlapped' : ''
|
|
860
|
+
].join(' ');
|
|
861
|
+
}
|
|
862
|
+
setOverlapped(overlapped) {
|
|
863
|
+
this.overlapped = !overlapped;
|
|
476
864
|
}
|
|
477
865
|
}
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type:
|
|
481
|
-
type:
|
|
866
|
+
ToolbarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToolbarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
867
|
+
ToolbarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.0", type: ToolbarComponent, selector: "ft-toolbar", inputs: { actionOptions: "actionOptions", currentTitleOption: "currentTitleOption", title: "title", titleOptions: "titleOptions", class: "class" }, host: { properties: { "class": "this.hostClasses" } }, ngImport: i0, template: "<div (ftObserveIntersecting)=\"setOverlapped($event)\" [ftObserveIntersectingOptions]=\"rootMargin\"></div>\n<div class=\"content\">\n <div class=\"container p-2 p-sm-3 pb-md-3 pt-md-5 px-md-3 px-lg-5\">\n <div class=\"d-flex align-items-center\">\n <h5 class=\"title ml-2 ml-md-0 mb-0 mr-auto\" *ngIf=\"!titleOptions; else titleForm\">{{ title }}</h5>\n <ng-container *ngFor=\"let option of actionOptions\">\n <button type=\"button\" class=\"p-2\" mat-button [ngClass]=\"option.class || ''\" *ngIf=\"!option.children\" (click)=\"option.click ? option.click($event) : null\" title=\"{{ option.label }}\">\n <div class=\"d-flex align-items-center\">\n <ft-icon *ngIf=\"option.iconName\" [name]=\"option.iconName\" size=\"2\"></ft-icon>\n <div *ngIf=\"option.label\" class=\"label d-none d-sm-inline-block ml-1\">{{ option.label }}</div>\n </div>\n </button>\n <ng-container *ngIf=\"option.children\">\n <button type=\"button\" class=\"p-2\" mat-button [matMenuTriggerFor]=\"menu\" [ngClass]=\"option.class || ''\" title=\"{{ option.label }}\">\n <div class=\"d-flex align-items-center\">\n <ft-icon *ngIf=\"option.iconName\" [name]=\"option.iconName\" size=\"2\"></ft-icon>\n <div *ngIf=\"option.label\" class=\"label d-none d-sm-inline-block ml-1\">{{ option.label }}</div>\n </div>\n </button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let childOption of option.children\" (click)=\"childOption.click ? childOption.click($event): null\">{{ childOption.label }}</button>\n </mat-menu>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n<ng-template #titleForm>\n <button type=\"button\" class=\"title p-2 pl-3 mr-auto\" mat-button [matMenuTriggerFor]=\"titleMenu\">\n <div class=\"d-flex align-items-center\">\n <div class=\"label mr-1\">{{ currentTitleOption.label }}</div>\n <ft-icon name=\"angle-down\" size=\"1\"></ft-icon>\n </div>\n </button>\n <mat-menu #titleMenu=\"matMenu\">\n <button class=\"mr-4\" mat-menu-item [disabled]=\"option == currentTitleOption\" *ngFor=\"let option of titleOptions\" (click)=\"currentTitleOption = option; option.click ? option.click($event) : null\">\n <div class=\"d-flex align-items-center\">\n <ft-icon [name]=\"option == currentTitleOption? 'check' : ''\" class=\"mr-1\"></ft-icon>\n <div>{{ option.label }}</div>\n </div>\n </button>\n </mat-menu>\n</ng-template>\n", styles: [":host{z-index:var(--z-index, 980);background-color:var(--background-color, #FFF);transition:background-color .2s,box-shadow .2s;display:block;position:sticky;top:-1px}:host.overlapped{box-shadow:0 0 1px #00000024,0 0 6px #0000001f}@media (min-width: 768px){:host{top:-2rem}}.content button{min-width:0}.content button .label{line-height:initial}.content .title{font-size:1.21rem;font-weight:500}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "ft-icon", inputs: ["class", "collection", "mode", "name", "path", "size", "src"] }, { kind: "directive", type: ObserveIntersectingDirective, selector: "[ftObserveIntersecting]", inputs: ["ftObserveIntersectingOptions"], outputs: ["ftObserveIntersecting"] }, { kind: "component", type: i4.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "component", type: i4.MatMenuItem, selector: "[mat-menu-item]", inputs: ["disabled", "disableRipple", "role"], exportAs: ["matMenuItem"] }, { kind: "directive", type: i4.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "component", type: i2.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
|
|
868
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: ToolbarComponent, decorators: [{
|
|
869
|
+
type: Component,
|
|
870
|
+
args: [{ selector: 'ft-toolbar', template: "<div (ftObserveIntersecting)=\"setOverlapped($event)\" [ftObserveIntersectingOptions]=\"rootMargin\"></div>\n<div class=\"content\">\n <div class=\"container p-2 p-sm-3 pb-md-3 pt-md-5 px-md-3 px-lg-5\">\n <div class=\"d-flex align-items-center\">\n <h5 class=\"title ml-2 ml-md-0 mb-0 mr-auto\" *ngIf=\"!titleOptions; else titleForm\">{{ title }}</h5>\n <ng-container *ngFor=\"let option of actionOptions\">\n <button type=\"button\" class=\"p-2\" mat-button [ngClass]=\"option.class || ''\" *ngIf=\"!option.children\" (click)=\"option.click ? option.click($event) : null\" title=\"{{ option.label }}\">\n <div class=\"d-flex align-items-center\">\n <ft-icon *ngIf=\"option.iconName\" [name]=\"option.iconName\" size=\"2\"></ft-icon>\n <div *ngIf=\"option.label\" class=\"label d-none d-sm-inline-block ml-1\">{{ option.label }}</div>\n </div>\n </button>\n <ng-container *ngIf=\"option.children\">\n <button type=\"button\" class=\"p-2\" mat-button [matMenuTriggerFor]=\"menu\" [ngClass]=\"option.class || ''\" title=\"{{ option.label }}\">\n <div class=\"d-flex align-items-center\">\n <ft-icon *ngIf=\"option.iconName\" [name]=\"option.iconName\" size=\"2\"></ft-icon>\n <div *ngIf=\"option.label\" class=\"label d-none d-sm-inline-block ml-1\">{{ option.label }}</div>\n </div>\n </button>\n <mat-menu #menu=\"matMenu\">\n <button mat-menu-item *ngFor=\"let childOption of option.children\" (click)=\"childOption.click ? childOption.click($event): null\">{{ childOption.label }}</button>\n </mat-menu>\n </ng-container>\n </ng-container>\n </div>\n </div>\n</div>\n<ng-template #titleForm>\n <button type=\"button\" class=\"title p-2 pl-3 mr-auto\" mat-button [matMenuTriggerFor]=\"titleMenu\">\n <div class=\"d-flex align-items-center\">\n <div class=\"label mr-1\">{{ currentTitleOption.label }}</div>\n <ft-icon name=\"angle-down\" size=\"1\"></ft-icon>\n </div>\n </button>\n <mat-menu #titleMenu=\"matMenu\">\n <button class=\"mr-4\" mat-menu-item [disabled]=\"option == currentTitleOption\" *ngFor=\"let option of titleOptions\" (click)=\"currentTitleOption = option; option.click ? option.click($event) : null\">\n <div class=\"d-flex align-items-center\">\n <ft-icon [name]=\"option == currentTitleOption? 'check' : ''\" class=\"mr-1\"></ft-icon>\n <div>{{ option.label }}</div>\n </div>\n </button>\n </mat-menu>\n</ng-template>\n", styles: [":host{z-index:var(--z-index, 980);background-color:var(--background-color, #FFF);transition:background-color .2s,box-shadow .2s;display:block;position:sticky;top:-1px}:host.overlapped{box-shadow:0 0 1px #00000024,0 0 6px #0000001f}@media (min-width: 768px){:host{top:-2rem}}.content button{min-width:0}.content button .label{line-height:initial}.content .title{font-size:1.21rem;font-weight:500}\n"] }]
|
|
871
|
+
}], ctorParameters: function () { return []; }, propDecorators: { actionOptions: [{
|
|
872
|
+
type: Input
|
|
873
|
+
}], currentTitleOption: [{
|
|
874
|
+
type: Input
|
|
875
|
+
}], title: [{
|
|
876
|
+
type: Input
|
|
877
|
+
}], titleOptions: [{
|
|
878
|
+
type: Input
|
|
879
|
+
}], class: [{
|
|
880
|
+
type: Input
|
|
881
|
+
}], hostClasses: [{
|
|
882
|
+
type: HostBinding,
|
|
883
|
+
args: ['class']
|
|
884
|
+
}] } });
|
|
885
|
+
|
|
886
|
+
class NavigationModule {
|
|
887
|
+
}
|
|
888
|
+
NavigationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NavigationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
889
|
+
NavigationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: NavigationModule, declarations: [ListComponent,
|
|
890
|
+
NavbarComponent,
|
|
891
|
+
ToolbarComponent,
|
|
892
|
+
SearchboxComponent], imports: [CommonModule,
|
|
893
|
+
DisplayModule,
|
|
894
|
+
RouterModule,
|
|
895
|
+
MatMenuModule,
|
|
896
|
+
MatButtonModule], exports: [ListComponent,
|
|
897
|
+
NavbarComponent,
|
|
898
|
+
ToolbarComponent,
|
|
899
|
+
SearchboxComponent] });
|
|
900
|
+
NavigationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NavigationModule, imports: [CommonModule,
|
|
901
|
+
DisplayModule,
|
|
902
|
+
RouterModule,
|
|
903
|
+
MatMenuModule,
|
|
904
|
+
MatButtonModule] });
|
|
905
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: NavigationModule, decorators: [{
|
|
906
|
+
type: NgModule,
|
|
482
907
|
args: [{
|
|
483
|
-
|
|
908
|
+
declarations: [
|
|
909
|
+
ListComponent,
|
|
910
|
+
NavbarComponent,
|
|
911
|
+
ToolbarComponent,
|
|
912
|
+
SearchboxComponent
|
|
913
|
+
],
|
|
914
|
+
exports: [
|
|
915
|
+
ListComponent,
|
|
916
|
+
NavbarComponent,
|
|
917
|
+
ToolbarComponent,
|
|
918
|
+
SearchboxComponent
|
|
919
|
+
],
|
|
920
|
+
imports: [
|
|
921
|
+
CommonModule,
|
|
922
|
+
DisplayModule,
|
|
923
|
+
RouterModule,
|
|
924
|
+
MatMenuModule,
|
|
925
|
+
MatButtonModule
|
|
926
|
+
]
|
|
484
927
|
}]
|
|
485
|
-
}]
|
|
928
|
+
}] });
|
|
486
929
|
|
|
487
930
|
class UiModule {
|
|
488
931
|
static forRoot(configuration) {
|
|
@@ -495,52 +938,23 @@ class UiModule {
|
|
|
495
938
|
}
|
|
496
939
|
}
|
|
497
940
|
UiModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UiModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
498
|
-
UiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: UiModule,
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
ObserveIntersectingDirective,
|
|
503
|
-
MessageComponent,
|
|
504
|
-
ContentComponent,
|
|
505
|
-
RatingComponent], imports: [CommonModule,
|
|
506
|
-
MatButtonModule,
|
|
507
|
-
MatDialogModule,
|
|
508
|
-
MatSnackBarModule], exports: [AvatarComponent,
|
|
509
|
-
IconComponent,
|
|
510
|
-
ImageComponent,
|
|
511
|
-
ProgressComponent,
|
|
512
|
-
ObserveIntersectingDirective,
|
|
513
|
-
RatingComponent] });
|
|
941
|
+
UiModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.0", ngImport: i0, type: UiModule, imports: [CommonModule,
|
|
942
|
+
DisplayModule,
|
|
943
|
+
InputsModule,
|
|
944
|
+
NavigationModule] });
|
|
514
945
|
UiModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UiModule, imports: [CommonModule,
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
946
|
+
DisplayModule,
|
|
947
|
+
InputsModule,
|
|
948
|
+
NavigationModule] });
|
|
518
949
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImport: i0, type: UiModule, decorators: [{
|
|
519
950
|
type: NgModule,
|
|
520
951
|
args: [{
|
|
521
|
-
declarations: [
|
|
522
|
-
AvatarComponent,
|
|
523
|
-
IconComponent,
|
|
524
|
-
ImageComponent,
|
|
525
|
-
ProgressComponent,
|
|
526
|
-
ObserveIntersectingDirective,
|
|
527
|
-
MessageComponent,
|
|
528
|
-
ContentComponent,
|
|
529
|
-
RatingComponent
|
|
530
|
-
],
|
|
952
|
+
declarations: [],
|
|
531
953
|
imports: [
|
|
532
954
|
CommonModule,
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
],
|
|
537
|
-
exports: [
|
|
538
|
-
AvatarComponent,
|
|
539
|
-
IconComponent,
|
|
540
|
-
ImageComponent,
|
|
541
|
-
ProgressComponent,
|
|
542
|
-
ObserveIntersectingDirective,
|
|
543
|
-
RatingComponent
|
|
955
|
+
DisplayModule,
|
|
956
|
+
InputsModule,
|
|
957
|
+
NavigationModule
|
|
544
958
|
]
|
|
545
959
|
}]
|
|
546
960
|
}] });
|
|
@@ -553,5 +967,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.0", ngImpor
|
|
|
553
967
|
* Generated bundle index. Do not edit.
|
|
554
968
|
*/
|
|
555
969
|
|
|
556
|
-
export { AvatarComponent, IconComponent, ImageComponent, MessageService, ObserveIntersectingDirective, ProgressComponent, RatingComponent, UiModule };
|
|
970
|
+
export { AvatarComponent, ContentComponent, DisplayModule, IconComponent, ImageComponent, InputsModule, ListComponent, MessageComponent, MessageService, NavbarComponent, NavigationModule, ObserveIntersectingDirective, ProgressComponent, ProgressService, RatingComponent, SearchboxComponent, ToolbarComponent, UiModule };
|
|
557
971
|
//# sourceMappingURL=factor_ec-ui.mjs.map
|