@fluxhub/fluxhub-lib 19.0.180 → 19.0.182
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.
|
@@ -27832,15 +27832,37 @@ class FHWorkflowView {
|
|
|
27832
27832
|
// Alert.show("Confermi di voler recuperare il documento "+ wing.tbl_wkf.sRow.codice+" - "+ wing.tbl_wkf.sRow.oggetto+"?", "Conferma operazione", 3, this, okelimc1);
|
|
27833
27833
|
}
|
|
27834
27834
|
riassegna_richiesta_step2() {
|
|
27835
|
-
|
|
27835
|
+
// I lettori correnti vanno RILETTI dal DB e NON presi da sRow.lettori: se la
|
|
27836
|
+
// grid non espone 'lettori' nei _FIELDS, sRow.lettori e' undefined e in JS
|
|
27837
|
+
// (undefined != null) e' false => il seed resta '' e la riassegna riscrive i
|
|
27838
|
+
// lettori col solo nuovo assegnatario, perdendo creatore e lettori precedenti.
|
|
27839
|
+
// SELECT_DOCUMENTS_BY_UIID e' una query standard (ritorna anche 'lettori').
|
|
27840
|
+
let pl = new QParam();
|
|
27841
|
+
pl.sql = 'SELECT_DOCUMENTS_BY_UIID';
|
|
27842
|
+
pl.types = ['string', 'string'];
|
|
27843
|
+
pl.values = [this.get_grid().sRow.id_applicativo, this.get_grid().sRow.uiid];
|
|
27844
|
+
this.m_dataService.doQuery(pl).subscribe((dl) => {
|
|
27845
|
+
let lettori_correnti = '';
|
|
27846
|
+
if (dl != null && dl.result_msg == 'OK' &&
|
|
27847
|
+
dl.result_data != null && dl.result_data.length > 0 &&
|
|
27848
|
+
dl.result_data[0].lettori != null) {
|
|
27849
|
+
lettori_correnti = dl.result_data[0].lettori;
|
|
27850
|
+
}
|
|
27851
|
+
else if (this.get_grid().sRow.lettori != null) {
|
|
27852
|
+
// Fallback al comportamento storico se la query non e' disponibile.
|
|
27853
|
+
lettori_correnti = this.get_grid().sRow.lettori;
|
|
27854
|
+
}
|
|
27855
|
+
this.riassegna_richiesta_step2_exec(lettori_correnti);
|
|
27856
|
+
});
|
|
27857
|
+
}
|
|
27858
|
+
riassegna_richiesta_step2_exec(lettori_correnti) {
|
|
27859
|
+
let a_let = lettori_correnti || '';
|
|
27836
27860
|
let op = [];
|
|
27837
27861
|
let app_op = new QParam();
|
|
27838
27862
|
app_op.sql = 'DELETE_TODO_ALL_BYID';
|
|
27839
27863
|
app_op.types = ['string', 'string'];
|
|
27840
27864
|
app_op.values = [this.id_applicativo, this.get_grid().sRow.uiid];
|
|
27841
27865
|
op.push(this.m_dataService.doQuery(app_op));
|
|
27842
|
-
if (this.get_grid().sRow.lettori != null)
|
|
27843
|
-
a_let = this.get_grid().sRow.lettori;
|
|
27844
27866
|
let a_aut = '';
|
|
27845
27867
|
let a_pers_inti = '';
|
|
27846
27868
|
let a_utif = '';
|
|
@@ -29260,6 +29282,7 @@ class win_conferma_v2 {
|
|
|
29260
29282
|
icon = '';
|
|
29261
29283
|
color_font = '';
|
|
29262
29284
|
color = '';
|
|
29285
|
+
background_color = '';
|
|
29263
29286
|
nota_commento = '';
|
|
29264
29287
|
title = 'COMMENTI';
|
|
29265
29288
|
comm_notrequired = 0;
|
|
@@ -29288,6 +29311,8 @@ class win_conferma_v2 {
|
|
|
29288
29311
|
this.color_font = data.color_font;
|
|
29289
29312
|
if (data.color != null)
|
|
29290
29313
|
this.color = data.color;
|
|
29314
|
+
if (data.background_color != null)
|
|
29315
|
+
this.background_color = data.background_color;
|
|
29291
29316
|
}
|
|
29292
29317
|
if (this.comm_notrequired == 2)
|
|
29293
29318
|
this.nota_commento = '(COMMENTO NON OBBLIGATORIO)';
|
|
@@ -29350,7 +29375,7 @@ class win_conferma_v2 {
|
|
|
29350
29375
|
<div
|
|
29351
29376
|
class="custom-title-box"
|
|
29352
29377
|
[style.border-color]="color"
|
|
29353
|
-
[style.color]="
|
|
29378
|
+
[style.color]="background_color || '#1e2755'"
|
|
29354
29379
|
>
|
|
29355
29380
|
<i
|
|
29356
29381
|
*ngIf="icon != null && icon != ''"
|
|
@@ -29412,7 +29437,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
29412
29437
|
<div
|
|
29413
29438
|
class="custom-title-box"
|
|
29414
29439
|
[style.border-color]="color"
|
|
29415
|
-
[style.color]="
|
|
29440
|
+
[style.color]="background_color || '#1e2755'"
|
|
29416
29441
|
>
|
|
29417
29442
|
<i
|
|
29418
29443
|
*ngIf="icon != null && icon != ''"
|
|
@@ -31044,7 +31069,7 @@ class win_select_level_v2 {
|
|
|
31044
31069
|
this.data = data;
|
|
31045
31070
|
this.trans = data.map((v) => {
|
|
31046
31071
|
if (!v.color)
|
|
31047
|
-
v.color = '#
|
|
31072
|
+
v.color = '#1e2755';
|
|
31048
31073
|
if (!v.color_font)
|
|
31049
31074
|
v.color_font = '#1e2755';
|
|
31050
31075
|
return v;
|
|
@@ -31094,7 +31119,7 @@ class win_select_level_v2 {
|
|
|
31094
31119
|
[style.border-color]="app.background_color || '#ddd'"
|
|
31095
31120
|
[style.border-left-color]="app.color"
|
|
31096
31121
|
[style.background-color]="'#fafafa'"
|
|
31097
|
-
[style.color]="app.
|
|
31122
|
+
[style.color]="app.color"
|
|
31098
31123
|
(click)="sel(app)">
|
|
31099
31124
|
<i *ngIf="app.icon && app.icon!=''" [ngClass]="'fa ' + app.icon" aria-hidden="true"></i>
|
|
31100
31125
|
<span>{{ app.description | translate }}</span>
|
|
@@ -31126,7 +31151,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
31126
31151
|
[style.border-color]="app.background_color || '#ddd'"
|
|
31127
31152
|
[style.border-left-color]="app.color"
|
|
31128
31153
|
[style.background-color]="'#fafafa'"
|
|
31129
|
-
[style.color]="app.
|
|
31154
|
+
[style.color]="app.color"
|
|
31130
31155
|
(click)="sel(app)">
|
|
31131
31156
|
<i *ngIf="app.icon && app.icon!=''" [ngClass]="'fa ' + app.icon" aria-hidden="true"></i>
|
|
31132
31157
|
<span>{{ app.description | translate }}</span>
|
|
@@ -31783,12 +31808,15 @@ class FHWorkflowForm {
|
|
|
31783
31808
|
}
|
|
31784
31809
|
let dialogRef = this.m_dialog.open(win_conferma_v2, {
|
|
31785
31810
|
disableClose: true,
|
|
31811
|
+
width: '500px',
|
|
31812
|
+
maxWidth: '95vw',
|
|
31786
31813
|
data: {
|
|
31787
31814
|
title: 'Conferma Avanzamento',
|
|
31788
31815
|
lbl: o.description,
|
|
31789
31816
|
icon: o.icon,
|
|
31790
31817
|
color_font: o.color_font,
|
|
31791
31818
|
color: o.color,
|
|
31819
|
+
background_color: o.background_color,
|
|
31792
31820
|
commento_default: '',
|
|
31793
31821
|
comm_notrequired: o.comments_opt,
|
|
31794
31822
|
utenti: sp,
|
|
@@ -31824,6 +31852,8 @@ class FHWorkflowForm {
|
|
|
31824
31852
|
|
|
31825
31853
|
let dialogRef = this.m_dialog.open(win_conferma_v2, {
|
|
31826
31854
|
disableClose: true,
|
|
31855
|
+
width: '500px',
|
|
31856
|
+
maxWidth: '95vw',
|
|
31827
31857
|
data: {
|
|
31828
31858
|
commento_default: this.app_s.temp_var4,
|
|
31829
31859
|
comm_notrequired: this.transizione_info.comments_opt,
|
|
@@ -34567,54 +34597,54 @@ class FHHomeLauncherComponent {
|
|
|
34567
34597
|
this.appOpen.emit(app);
|
|
34568
34598
|
}
|
|
34569
34599
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeLauncherComponent, deps: [{ token: AppService }, { token: AuthenticationService }, { token: QueryService }, { token: UtilityService }, { token: i3$2.Router }], target: i0.ɵɵFactoryTarget.Component });
|
|
34570
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHHomeLauncherComponent, isStandalone: true, selector: "FHHomeLauncher", inputs: { accent: "accent", accentDark: "accentDark", ink: "ink", showIndex: "showIndex", columnWidth: "columnWidth", columnGap: "columnGap", sqlUserAccess: "sqlUserAccess", sqlAllApps: "sqlAllApps", sqlApps: "sqlApps", sqlAccessLog: "sqlAccessLog", appVersion: "appVersion" }, outputs: { appOpen: "appOpen" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad", "style.--fh-home-ink": "this._ink" } }, ngImport: i0, template: `
|
|
34571
|
-
<div class="launcher" *ngIf="is_loaded">
|
|
34572
|
-
<div class="launcher-cols" [style.column-width.px]="columnWidth" [style.column-gap.px]="columnGap">
|
|
34573
|
-
<section class="cat" *ngFor="let cat of categories; let i = index">
|
|
34574
|
-
<header class="cat-head">
|
|
34575
|
-
<span class="cat-index" *ngIf="showIndex">{{ (i + 1).toString().padStart(2, "0") }}</span>
|
|
34576
|
-
<h2 class="cat-title">{{ cat.title }}</h2>
|
|
34577
|
-
</header>
|
|
34578
|
-
<div class="cat-apps">
|
|
34579
|
-
<button
|
|
34580
|
-
*ngFor="let app of cat.apps"
|
|
34581
|
-
type="button"
|
|
34582
|
-
class="cat-app"
|
|
34583
|
-
(click)="open_app(app)"
|
|
34584
|
-
>
|
|
34585
|
-
<span class="cat-app-label">{{ app.title }}</span>
|
|
34586
|
-
<i class="material-symbols-outlined cat-app-arrow">arrow_forward</i>
|
|
34587
|
-
</button>
|
|
34588
|
-
</div>
|
|
34589
|
-
</section>
|
|
34590
|
-
</div>
|
|
34591
|
-
</div>
|
|
34600
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHHomeLauncherComponent, isStandalone: true, selector: "FHHomeLauncher", inputs: { accent: "accent", accentDark: "accentDark", ink: "ink", showIndex: "showIndex", columnWidth: "columnWidth", columnGap: "columnGap", sqlUserAccess: "sqlUserAccess", sqlAllApps: "sqlAllApps", sqlApps: "sqlApps", sqlAccessLog: "sqlAccessLog", appVersion: "appVersion" }, outputs: { appOpen: "appOpen" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad", "style.--fh-home-ink": "this._ink" } }, ngImport: i0, template: `
|
|
34601
|
+
<div class="launcher" *ngIf="is_loaded">
|
|
34602
|
+
<div class="launcher-cols" [style.column-width.px]="columnWidth" [style.column-gap.px]="columnGap">
|
|
34603
|
+
<section class="cat" *ngFor="let cat of categories; let i = index">
|
|
34604
|
+
<header class="cat-head">
|
|
34605
|
+
<span class="cat-index" *ngIf="showIndex">{{ (i + 1).toString().padStart(2, "0") }}</span>
|
|
34606
|
+
<h2 class="cat-title">{{ cat.title }}</h2>
|
|
34607
|
+
</header>
|
|
34608
|
+
<div class="cat-apps">
|
|
34609
|
+
<button
|
|
34610
|
+
*ngFor="let app of cat.apps"
|
|
34611
|
+
type="button"
|
|
34612
|
+
class="cat-app"
|
|
34613
|
+
(click)="open_app(app)"
|
|
34614
|
+
>
|
|
34615
|
+
<span class="cat-app-label">{{ app.title }}</span>
|
|
34616
|
+
<i class="material-symbols-outlined cat-app-arrow">arrow_forward</i>
|
|
34617
|
+
</button>
|
|
34618
|
+
</div>
|
|
34619
|
+
</section>
|
|
34620
|
+
</div>
|
|
34621
|
+
</div>
|
|
34592
34622
|
`, isInline: true, styles: [":host{display:block;flex:0 0 auto}.launcher{width:100%;box-sizing:border-box;padding:12px 48px 18px}.launcher-cols{column-width:270px;column-gap:48px}.cat{position:relative;break-inside:avoid;margin-bottom:22px;border-top:2px solid var(--fh-home-ink, #161212);padding-top:10px}.cat:after{content:\"\";position:absolute;top:-2px;left:0;width:30px;height:2px;background-color:var(--fh-home-accent, #63b345)}.cat-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.cat-index{font-family:Plus Jakarta Sans,sans-serif;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--fh-home-accent-dark, #549a3b)}.cat-title{flex:1 1 auto;margin:0;font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--fh-home-ink, #161212)}.cat-apps{display:flex;flex-direction:column}.cat-app{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 2px 7px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:14px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.cat-app:last-child{border-bottom:none}.cat-app-arrow{font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.cat-app:hover{color:var(--fh-home-accent-dark, #549a3b);padding-left:6px}.cat-app:hover .cat-app-arrow{color:var(--fh-home-accent-dark, #549a3b);transform:translate(2px)}@media (max-width: 768px){.launcher{padding:10px 20px 24px}.launcher-cols{column-width:auto!important;columns:1}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
34593
34623
|
}
|
|
34594
34624
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeLauncherComponent, decorators: [{
|
|
34595
34625
|
type: Component,
|
|
34596
|
-
args: [{ selector: "FHHomeLauncher", standalone: true, imports: [CommonModule], template: `
|
|
34597
|
-
<div class="launcher" *ngIf="is_loaded">
|
|
34598
|
-
<div class="launcher-cols" [style.column-width.px]="columnWidth" [style.column-gap.px]="columnGap">
|
|
34599
|
-
<section class="cat" *ngFor="let cat of categories; let i = index">
|
|
34600
|
-
<header class="cat-head">
|
|
34601
|
-
<span class="cat-index" *ngIf="showIndex">{{ (i + 1).toString().padStart(2, "0") }}</span>
|
|
34602
|
-
<h2 class="cat-title">{{ cat.title }}</h2>
|
|
34603
|
-
</header>
|
|
34604
|
-
<div class="cat-apps">
|
|
34605
|
-
<button
|
|
34606
|
-
*ngFor="let app of cat.apps"
|
|
34607
|
-
type="button"
|
|
34608
|
-
class="cat-app"
|
|
34609
|
-
(click)="open_app(app)"
|
|
34610
|
-
>
|
|
34611
|
-
<span class="cat-app-label">{{ app.title }}</span>
|
|
34612
|
-
<i class="material-symbols-outlined cat-app-arrow">arrow_forward</i>
|
|
34613
|
-
</button>
|
|
34614
|
-
</div>
|
|
34615
|
-
</section>
|
|
34616
|
-
</div>
|
|
34617
|
-
</div>
|
|
34626
|
+
args: [{ selector: "FHHomeLauncher", standalone: true, imports: [CommonModule], template: `
|
|
34627
|
+
<div class="launcher" *ngIf="is_loaded">
|
|
34628
|
+
<div class="launcher-cols" [style.column-width.px]="columnWidth" [style.column-gap.px]="columnGap">
|
|
34629
|
+
<section class="cat" *ngFor="let cat of categories; let i = index">
|
|
34630
|
+
<header class="cat-head">
|
|
34631
|
+
<span class="cat-index" *ngIf="showIndex">{{ (i + 1).toString().padStart(2, "0") }}</span>
|
|
34632
|
+
<h2 class="cat-title">{{ cat.title }}</h2>
|
|
34633
|
+
</header>
|
|
34634
|
+
<div class="cat-apps">
|
|
34635
|
+
<button
|
|
34636
|
+
*ngFor="let app of cat.apps"
|
|
34637
|
+
type="button"
|
|
34638
|
+
class="cat-app"
|
|
34639
|
+
(click)="open_app(app)"
|
|
34640
|
+
>
|
|
34641
|
+
<span class="cat-app-label">{{ app.title }}</span>
|
|
34642
|
+
<i class="material-symbols-outlined cat-app-arrow">arrow_forward</i>
|
|
34643
|
+
</button>
|
|
34644
|
+
</div>
|
|
34645
|
+
</section>
|
|
34646
|
+
</div>
|
|
34647
|
+
</div>
|
|
34618
34648
|
`, styles: [":host{display:block;flex:0 0 auto}.launcher{width:100%;box-sizing:border-box;padding:12px 48px 18px}.launcher-cols{column-width:270px;column-gap:48px}.cat{position:relative;break-inside:avoid;margin-bottom:22px;border-top:2px solid var(--fh-home-ink, #161212);padding-top:10px}.cat:after{content:\"\";position:absolute;top:-2px;left:0;width:30px;height:2px;background-color:var(--fh-home-accent, #63b345)}.cat-head{display:flex;align-items:baseline;gap:10px;margin-bottom:10px}.cat-index{font-family:Plus Jakarta Sans,sans-serif;font-size:11px;font-weight:700;letter-spacing:.06em;color:var(--fh-home-accent-dark, #549a3b)}.cat-title{flex:1 1 auto;margin:0;font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.12em;text-transform:uppercase;color:var(--fh-home-ink, #161212)}.cat-apps{display:flex;flex-direction:column}.cat-app{width:100%;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:7px 2px 7px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:14px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.cat-app:last-child{border-bottom:none}.cat-app-arrow{font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.cat-app:hover{color:var(--fh-home-accent-dark, #549a3b);padding-left:6px}.cat-app:hover .cat-app-arrow{color:var(--fh-home-accent-dark, #549a3b);transform:translate(2px)}@media (max-width: 768px){.launcher{padding:10px 20px 24px}.launcher-cols{column-width:auto!important;columns:1}}\n"] }]
|
|
34619
34649
|
}], ctorParameters: () => [{ type: AppService }, { type: AuthenticationService }, { type: QueryService }, { type: UtilityService }, { type: i3$2.Router }], propDecorators: { accent: [{
|
|
34620
34650
|
type: Input
|
|
@@ -34752,104 +34782,104 @@ class FHHomeTodoComponent {
|
|
|
34752
34782
|
this.todoOpen.emit(o);
|
|
34753
34783
|
}
|
|
34754
34784
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeTodoComponent, deps: [{ token: QueryService }, { token: AppService }], target: i0.ɵɵFactoryTarget.Component });
|
|
34755
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHHomeTodoComponent, isStandalone: true, selector: "FHHomeTodo", inputs: { accent: "accent", accentDark: "accentDark", title: "title", subtitle: "subtitle", tagLabel: "tagLabel", icon: "icon", allLabel: "allLabel", emptyTitle: "emptyTitle", emptySub: "emptySub", dateFormat: "dateFormat", showCategoryFilter: "showCategoryFilter", sqlCategories: "sqlCategories", sqlByUser: "sqlByUser", sqlByUserCat: "sqlByUserCat", fieldLabel: "fieldLabel", fieldMeta: "fieldMeta", fieldDate: "fieldDate", fieldLink: "fieldLink", fieldCategory: "fieldCategory" }, outputs: { todoOpen: "todoOpen" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
|
|
34756
|
-
<div class="tool-panel">
|
|
34757
|
-
<div class="panel-head">
|
|
34758
|
-
<div>
|
|
34759
|
-
<div class="panel-title">
|
|
34760
|
-
<i class="material-symbols-outlined">{{ icon }}</i>
|
|
34761
|
-
{{ title }}
|
|
34762
|
-
</div>
|
|
34763
|
-
<div class="panel-sub" *ngIf="subtitle">{{ subtitle }}</div>
|
|
34764
|
-
</div>
|
|
34765
|
-
<span class="tag tag-accent" *ngIf="tagLabel">{{ tagLabel }}</span>
|
|
34766
|
-
</div>
|
|
34767
|
-
<div class="panel-body">
|
|
34768
|
-
|
|
34769
|
-
<div class="cat-tabs" *ngIf="showCategoryFilter && categories.length">
|
|
34770
|
-
<button class="cat-tab" [class.cat-tab-active]="selectedCat === ''" (click)="select_cat('')">{{ allLabel }}</button>
|
|
34771
|
-
<button
|
|
34772
|
-
class="cat-tab"
|
|
34773
|
-
*ngFor="let cat of categories"
|
|
34774
|
-
[class.cat-tab-active]="selectedCat === cat"
|
|
34775
|
-
(click)="select_cat(cat)"
|
|
34776
|
-
>{{ cat }}</button>
|
|
34777
|
-
</div>
|
|
34778
|
-
|
|
34779
|
-
<div class="tool-list">
|
|
34780
|
-
<button
|
|
34781
|
-
type="button"
|
|
34782
|
-
class="tool-row"
|
|
34783
|
-
*ngFor="let todo of todos"
|
|
34784
|
-
(click)="open(todo[fieldLink])"
|
|
34785
|
-
>
|
|
34786
|
-
<span class="tool-row-label">{{ todo[fieldLabel] }}</span>
|
|
34787
|
-
<span class="tool-row-meta">{{ todo[fieldMeta] }}</span>
|
|
34788
|
-
<span class="tool-row-date">{{ todo[fieldDate] | date:dateFormat }}</span>
|
|
34789
|
-
<i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
|
|
34790
|
-
</button>
|
|
34791
|
-
|
|
34792
|
-
<div class="empty" *ngIf="todos && todos.length === 0">
|
|
34793
|
-
<i class="material-symbols-outlined empty-icon">{{ icon }}</i>
|
|
34794
|
-
<div class="empty-title">{{ emptyTitle }}</div>
|
|
34795
|
-
<div class="empty-sub">{{ emptySub }}</div>
|
|
34796
|
-
</div>
|
|
34797
|
-
</div>
|
|
34798
|
-
</div>
|
|
34799
|
-
</div>
|
|
34800
|
-
|
|
34801
|
-
<p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
|
|
34785
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHHomeTodoComponent, isStandalone: true, selector: "FHHomeTodo", inputs: { accent: "accent", accentDark: "accentDark", title: "title", subtitle: "subtitle", tagLabel: "tagLabel", icon: "icon", allLabel: "allLabel", emptyTitle: "emptyTitle", emptySub: "emptySub", dateFormat: "dateFormat", showCategoryFilter: "showCategoryFilter", sqlCategories: "sqlCategories", sqlByUser: "sqlByUser", sqlByUserCat: "sqlByUserCat", fieldLabel: "fieldLabel", fieldMeta: "fieldMeta", fieldDate: "fieldDate", fieldLink: "fieldLink", fieldCategory: "fieldCategory" }, outputs: { todoOpen: "todoOpen" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
|
|
34786
|
+
<div class="tool-panel">
|
|
34787
|
+
<div class="panel-head">
|
|
34788
|
+
<div>
|
|
34789
|
+
<div class="panel-title">
|
|
34790
|
+
<i class="material-symbols-outlined">{{ icon }}</i>
|
|
34791
|
+
{{ title }}
|
|
34792
|
+
</div>
|
|
34793
|
+
<div class="panel-sub" *ngIf="subtitle">{{ subtitle }}</div>
|
|
34794
|
+
</div>
|
|
34795
|
+
<span class="tag tag-accent" *ngIf="tagLabel">{{ tagLabel }}</span>
|
|
34796
|
+
</div>
|
|
34797
|
+
<div class="panel-body">
|
|
34798
|
+
|
|
34799
|
+
<div class="cat-tabs" *ngIf="showCategoryFilter && categories.length">
|
|
34800
|
+
<button class="cat-tab" [class.cat-tab-active]="selectedCat === ''" (click)="select_cat('')">{{ allLabel }}</button>
|
|
34801
|
+
<button
|
|
34802
|
+
class="cat-tab"
|
|
34803
|
+
*ngFor="let cat of categories"
|
|
34804
|
+
[class.cat-tab-active]="selectedCat === cat"
|
|
34805
|
+
(click)="select_cat(cat)"
|
|
34806
|
+
>{{ cat }}</button>
|
|
34807
|
+
</div>
|
|
34808
|
+
|
|
34809
|
+
<div class="tool-list">
|
|
34810
|
+
<button
|
|
34811
|
+
type="button"
|
|
34812
|
+
class="tool-row"
|
|
34813
|
+
*ngFor="let todo of todos"
|
|
34814
|
+
(click)="open(todo[fieldLink])"
|
|
34815
|
+
>
|
|
34816
|
+
<span class="tool-row-label">{{ todo[fieldLabel] }}</span>
|
|
34817
|
+
<span class="tool-row-meta">{{ todo[fieldMeta] }}</span>
|
|
34818
|
+
<span class="tool-row-date">{{ todo[fieldDate] | date:dateFormat }}</span>
|
|
34819
|
+
<i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
|
|
34820
|
+
</button>
|
|
34821
|
+
|
|
34822
|
+
<div class="empty" *ngIf="todos && todos.length === 0">
|
|
34823
|
+
<i class="material-symbols-outlined empty-icon">{{ icon }}</i>
|
|
34824
|
+
<div class="empty-title">{{ emptyTitle }}</div>
|
|
34825
|
+
<div class="empty-sub">{{ emptySub }}</div>
|
|
34826
|
+
</div>
|
|
34827
|
+
</div>
|
|
34828
|
+
</div>
|
|
34829
|
+
</div>
|
|
34830
|
+
|
|
34831
|
+
<p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
|
|
34802
34832
|
`, isInline: true, styles: [":host{display:block;height:100%}.tool-panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-accent{background:var(--fh-home-accent-soft, rgba(99, 179, 69, .12));color:var(--fh-home-accent-dark, #3f7029)}.panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.cat-tabs{flex:0 0 auto;display:flex;gap:0;overflow-x:auto;border-bottom:2px solid rgba(22,18,18,.08);margin-bottom:8px;scrollbar-width:none}.cat-tabs::-webkit-scrollbar{display:none}.cat-tab{flex:0 0 auto;padding:5px 14px 7px;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;background:transparent;font-family:Inter,sans-serif;font-size:12px;font-weight:500;color:#8c8585;cursor:pointer;white-space:nowrap;transition:color .15s ease,border-color .15s ease}.cat-tab:hover{color:#443d3d}.cat-tab-active{color:var(--fh-home-accent-dark, #3f7029);font-weight:700;border-bottom-color:var(--fh-home-accent, #63b345)}.tool-list{flex:1 1 auto;min-height:0;height:175px;overflow-y:auto;overflow-x:hidden}.tool-row{width:100%;display:flex;align-items:center;gap:10px;padding:7px 2px 7px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.tool-row:last-child{border-bottom:none}.tool-row-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-row-meta{flex:0 0 auto;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#a39b9b}.tool-row-date{flex:0 0 auto;font-size:11px;font-weight:400;color:#a39b9b;white-space:nowrap}.tool-row-arrow{flex:0 0 auto;font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.tool-row:hover{color:var(--fh-home-accent-dark, #3f7029);padding-left:6px}.tool-row:hover .tool-row-arrow{color:var(--fh-home-accent-dark, #3f7029);transform:translate(2px)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:150px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.tool-error{color:#c00;font-size:9px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i5.DatePipe, name: "date" }] });
|
|
34803
34833
|
}
|
|
34804
34834
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeTodoComponent, decorators: [{
|
|
34805
34835
|
type: Component,
|
|
34806
|
-
args: [{ selector: "FHHomeTodo", standalone: true, imports: [CommonModule], template: `
|
|
34807
|
-
<div class="tool-panel">
|
|
34808
|
-
<div class="panel-head">
|
|
34809
|
-
<div>
|
|
34810
|
-
<div class="panel-title">
|
|
34811
|
-
<i class="material-symbols-outlined">{{ icon }}</i>
|
|
34812
|
-
{{ title }}
|
|
34813
|
-
</div>
|
|
34814
|
-
<div class="panel-sub" *ngIf="subtitle">{{ subtitle }}</div>
|
|
34815
|
-
</div>
|
|
34816
|
-
<span class="tag tag-accent" *ngIf="tagLabel">{{ tagLabel }}</span>
|
|
34817
|
-
</div>
|
|
34818
|
-
<div class="panel-body">
|
|
34819
|
-
|
|
34820
|
-
<div class="cat-tabs" *ngIf="showCategoryFilter && categories.length">
|
|
34821
|
-
<button class="cat-tab" [class.cat-tab-active]="selectedCat === ''" (click)="select_cat('')">{{ allLabel }}</button>
|
|
34822
|
-
<button
|
|
34823
|
-
class="cat-tab"
|
|
34824
|
-
*ngFor="let cat of categories"
|
|
34825
|
-
[class.cat-tab-active]="selectedCat === cat"
|
|
34826
|
-
(click)="select_cat(cat)"
|
|
34827
|
-
>{{ cat }}</button>
|
|
34828
|
-
</div>
|
|
34829
|
-
|
|
34830
|
-
<div class="tool-list">
|
|
34831
|
-
<button
|
|
34832
|
-
type="button"
|
|
34833
|
-
class="tool-row"
|
|
34834
|
-
*ngFor="let todo of todos"
|
|
34835
|
-
(click)="open(todo[fieldLink])"
|
|
34836
|
-
>
|
|
34837
|
-
<span class="tool-row-label">{{ todo[fieldLabel] }}</span>
|
|
34838
|
-
<span class="tool-row-meta">{{ todo[fieldMeta] }}</span>
|
|
34839
|
-
<span class="tool-row-date">{{ todo[fieldDate] | date:dateFormat }}</span>
|
|
34840
|
-
<i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
|
|
34841
|
-
</button>
|
|
34842
|
-
|
|
34843
|
-
<div class="empty" *ngIf="todos && todos.length === 0">
|
|
34844
|
-
<i class="material-symbols-outlined empty-icon">{{ icon }}</i>
|
|
34845
|
-
<div class="empty-title">{{ emptyTitle }}</div>
|
|
34846
|
-
<div class="empty-sub">{{ emptySub }}</div>
|
|
34847
|
-
</div>
|
|
34848
|
-
</div>
|
|
34849
|
-
</div>
|
|
34850
|
-
</div>
|
|
34851
|
-
|
|
34852
|
-
<p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
|
|
34836
|
+
args: [{ selector: "FHHomeTodo", standalone: true, imports: [CommonModule], template: `
|
|
34837
|
+
<div class="tool-panel">
|
|
34838
|
+
<div class="panel-head">
|
|
34839
|
+
<div>
|
|
34840
|
+
<div class="panel-title">
|
|
34841
|
+
<i class="material-symbols-outlined">{{ icon }}</i>
|
|
34842
|
+
{{ title }}
|
|
34843
|
+
</div>
|
|
34844
|
+
<div class="panel-sub" *ngIf="subtitle">{{ subtitle }}</div>
|
|
34845
|
+
</div>
|
|
34846
|
+
<span class="tag tag-accent" *ngIf="tagLabel">{{ tagLabel }}</span>
|
|
34847
|
+
</div>
|
|
34848
|
+
<div class="panel-body">
|
|
34849
|
+
|
|
34850
|
+
<div class="cat-tabs" *ngIf="showCategoryFilter && categories.length">
|
|
34851
|
+
<button class="cat-tab" [class.cat-tab-active]="selectedCat === ''" (click)="select_cat('')">{{ allLabel }}</button>
|
|
34852
|
+
<button
|
|
34853
|
+
class="cat-tab"
|
|
34854
|
+
*ngFor="let cat of categories"
|
|
34855
|
+
[class.cat-tab-active]="selectedCat === cat"
|
|
34856
|
+
(click)="select_cat(cat)"
|
|
34857
|
+
>{{ cat }}</button>
|
|
34858
|
+
</div>
|
|
34859
|
+
|
|
34860
|
+
<div class="tool-list">
|
|
34861
|
+
<button
|
|
34862
|
+
type="button"
|
|
34863
|
+
class="tool-row"
|
|
34864
|
+
*ngFor="let todo of todos"
|
|
34865
|
+
(click)="open(todo[fieldLink])"
|
|
34866
|
+
>
|
|
34867
|
+
<span class="tool-row-label">{{ todo[fieldLabel] }}</span>
|
|
34868
|
+
<span class="tool-row-meta">{{ todo[fieldMeta] }}</span>
|
|
34869
|
+
<span class="tool-row-date">{{ todo[fieldDate] | date:dateFormat }}</span>
|
|
34870
|
+
<i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
|
|
34871
|
+
</button>
|
|
34872
|
+
|
|
34873
|
+
<div class="empty" *ngIf="todos && todos.length === 0">
|
|
34874
|
+
<i class="material-symbols-outlined empty-icon">{{ icon }}</i>
|
|
34875
|
+
<div class="empty-title">{{ emptyTitle }}</div>
|
|
34876
|
+
<div class="empty-sub">{{ emptySub }}</div>
|
|
34877
|
+
</div>
|
|
34878
|
+
</div>
|
|
34879
|
+
</div>
|
|
34880
|
+
</div>
|
|
34881
|
+
|
|
34882
|
+
<p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
|
|
34853
34883
|
`, styles: [":host{display:block;height:100%}.tool-panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-accent{background:var(--fh-home-accent-soft, rgba(99, 179, 69, .12));color:var(--fh-home-accent-dark, #3f7029)}.panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.cat-tabs{flex:0 0 auto;display:flex;gap:0;overflow-x:auto;border-bottom:2px solid rgba(22,18,18,.08);margin-bottom:8px;scrollbar-width:none}.cat-tabs::-webkit-scrollbar{display:none}.cat-tab{flex:0 0 auto;padding:5px 14px 7px;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;background:transparent;font-family:Inter,sans-serif;font-size:12px;font-weight:500;color:#8c8585;cursor:pointer;white-space:nowrap;transition:color .15s ease,border-color .15s ease}.cat-tab:hover{color:#443d3d}.cat-tab-active{color:var(--fh-home-accent-dark, #3f7029);font-weight:700;border-bottom-color:var(--fh-home-accent, #63b345)}.tool-list{flex:1 1 auto;min-height:0;height:175px;overflow-y:auto;overflow-x:hidden}.tool-row{width:100%;display:flex;align-items:center;gap:10px;padding:7px 2px 7px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.tool-row:last-child{border-bottom:none}.tool-row-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-row-meta{flex:0 0 auto;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#a39b9b}.tool-row-date{flex:0 0 auto;font-size:11px;font-weight:400;color:#a39b9b;white-space:nowrap}.tool-row-arrow{flex:0 0 auto;font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.tool-row:hover{color:var(--fh-home-accent-dark, #3f7029);padding-left:6px}.tool-row:hover .tool-row-arrow{color:var(--fh-home-accent-dark, #3f7029);transform:translate(2px)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:150px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.tool-error{color:#c00;font-size:9px}\n"] }]
|
|
34854
34884
|
}], ctorParameters: () => [{ type: QueryService }, { type: AppService }], propDecorators: { accent: [{
|
|
34855
34885
|
type: Input
|
|
@@ -35080,114 +35110,114 @@ class FHHomeStatsComponent {
|
|
|
35080
35110
|
this.lineDatasets = [{ data: values, label: this.stepSeriesLabel }];
|
|
35081
35111
|
}
|
|
35082
35112
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeStatsComponent, deps: [{ token: AppService }, { token: QueryService }], target: i0.ɵɵFactoryTarget.Component });
|
|
35083
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHHomeStatsComponent, isStandalone: true, selector: "FHHomeStats", inputs: { accent: "accent", accentDark: "accentDark", pieColors: "pieColors", appsTitle: "appsTitle", stepsTitle: "stepsTitle", appsTag: "appsTag", stepsTag: "stepsTag", appsEmptyTitle: "appsEmptyTitle", appsEmptySub: "appsEmptySub", stepsEmptyTitle: "stepsEmptyTitle", stepsEmptySub: "stepsEmptySub", days: "days", sqlApps: "sqlApps", sqlSteps: "sqlSteps", appLabelField: "appLabelField", appValueField: "appValueField", stepDayField: "stepDayField", stepValueField: "stepValueField", stepSeriesLabel: "stepSeriesLabel" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
|
|
35084
|
-
<div class="home-stats" *ngIf="!error">
|
|
35085
|
-
|
|
35086
|
-
<div class="stats-panel">
|
|
35087
|
-
<div class="panel-head">
|
|
35088
|
-
<div>
|
|
35089
|
-
<div class="panel-title">
|
|
35090
|
-
<i class="material-symbols-outlined">apps</i>
|
|
35091
|
-
{{ appsTitle }}
|
|
35092
|
-
</div>
|
|
35093
|
-
<div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
|
|
35094
|
-
</div>
|
|
35095
|
-
<span class="tag tag-accent" *ngIf="appsTag">{{ appsTag }}</span>
|
|
35096
|
-
</div>
|
|
35097
|
-
<div class="panel-body">
|
|
35098
|
-
<div class="chart-wrap" *ngIf="!loading && hasApps">
|
|
35099
|
-
<canvas baseChart type="doughnut" [labels]="pieLabels" [datasets]="pieDatasets" [options]="pieOptions"></canvas>
|
|
35100
|
-
</div>
|
|
35101
|
-
<div class="empty" *ngIf="!loading && !hasApps">
|
|
35102
|
-
<i class="material-symbols-outlined empty-icon">apps</i>
|
|
35103
|
-
<div class="empty-title">{{ appsEmptyTitle }}</div>
|
|
35104
|
-
<div class="empty-sub">{{ appsEmptySub }}</div>
|
|
35105
|
-
</div>
|
|
35106
|
-
<div class="sk-chart" *ngIf="loading"></div>
|
|
35107
|
-
</div>
|
|
35108
|
-
</div>
|
|
35109
|
-
|
|
35110
|
-
<div class="stats-panel">
|
|
35111
|
-
<div class="panel-head">
|
|
35112
|
-
<div>
|
|
35113
|
-
<div class="panel-title">
|
|
35114
|
-
<i class="material-symbols-outlined">timeline</i>
|
|
35115
|
-
{{ stepsTitle }}
|
|
35116
|
-
</div>
|
|
35117
|
-
<div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
|
|
35118
|
-
</div>
|
|
35119
|
-
<span class="tag tag-neutral" *ngIf="stepsTag">{{ stepsTag }}</span>
|
|
35120
|
-
</div>
|
|
35121
|
-
<div class="panel-body">
|
|
35122
|
-
<div class="chart-wrap" *ngIf="!loading && hasSteps">
|
|
35123
|
-
<canvas baseChart type="line" [labels]="lineLabels" [datasets]="lineDatasets" [options]="lineOptions"></canvas>
|
|
35124
|
-
</div>
|
|
35125
|
-
<div class="empty" *ngIf="!loading && !hasSteps">
|
|
35126
|
-
<i class="material-symbols-outlined empty-icon">route</i>
|
|
35127
|
-
<div class="empty-title">{{ stepsEmptyTitle }}</div>
|
|
35128
|
-
<div class="empty-sub">{{ stepsEmptySub }}</div>
|
|
35129
|
-
</div>
|
|
35130
|
-
<div class="sk-chart" *ngIf="loading"></div>
|
|
35131
|
-
</div>
|
|
35132
|
-
</div>
|
|
35133
|
-
|
|
35134
|
-
</div>
|
|
35113
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHHomeStatsComponent, isStandalone: true, selector: "FHHomeStats", inputs: { accent: "accent", accentDark: "accentDark", pieColors: "pieColors", appsTitle: "appsTitle", stepsTitle: "stepsTitle", appsTag: "appsTag", stepsTag: "stepsTag", appsEmptyTitle: "appsEmptyTitle", appsEmptySub: "appsEmptySub", stepsEmptyTitle: "stepsEmptyTitle", stepsEmptySub: "stepsEmptySub", days: "days", sqlApps: "sqlApps", sqlSteps: "sqlSteps", appLabelField: "appLabelField", appValueField: "appValueField", stepDayField: "stepDayField", stepValueField: "stepValueField", stepSeriesLabel: "stepSeriesLabel" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
|
|
35114
|
+
<div class="home-stats" *ngIf="!error">
|
|
35115
|
+
|
|
35116
|
+
<div class="stats-panel">
|
|
35117
|
+
<div class="panel-head">
|
|
35118
|
+
<div>
|
|
35119
|
+
<div class="panel-title">
|
|
35120
|
+
<i class="material-symbols-outlined">apps</i>
|
|
35121
|
+
{{ appsTitle }}
|
|
35122
|
+
</div>
|
|
35123
|
+
<div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
|
|
35124
|
+
</div>
|
|
35125
|
+
<span class="tag tag-accent" *ngIf="appsTag">{{ appsTag }}</span>
|
|
35126
|
+
</div>
|
|
35127
|
+
<div class="panel-body">
|
|
35128
|
+
<div class="chart-wrap" *ngIf="!loading && hasApps">
|
|
35129
|
+
<canvas baseChart type="doughnut" [labels]="pieLabels" [datasets]="pieDatasets" [options]="pieOptions"></canvas>
|
|
35130
|
+
</div>
|
|
35131
|
+
<div class="empty" *ngIf="!loading && !hasApps">
|
|
35132
|
+
<i class="material-symbols-outlined empty-icon">apps</i>
|
|
35133
|
+
<div class="empty-title">{{ appsEmptyTitle }}</div>
|
|
35134
|
+
<div class="empty-sub">{{ appsEmptySub }}</div>
|
|
35135
|
+
</div>
|
|
35136
|
+
<div class="sk-chart" *ngIf="loading"></div>
|
|
35137
|
+
</div>
|
|
35138
|
+
</div>
|
|
35139
|
+
|
|
35140
|
+
<div class="stats-panel">
|
|
35141
|
+
<div class="panel-head">
|
|
35142
|
+
<div>
|
|
35143
|
+
<div class="panel-title">
|
|
35144
|
+
<i class="material-symbols-outlined">timeline</i>
|
|
35145
|
+
{{ stepsTitle }}
|
|
35146
|
+
</div>
|
|
35147
|
+
<div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
|
|
35148
|
+
</div>
|
|
35149
|
+
<span class="tag tag-neutral" *ngIf="stepsTag">{{ stepsTag }}</span>
|
|
35150
|
+
</div>
|
|
35151
|
+
<div class="panel-body">
|
|
35152
|
+
<div class="chart-wrap" *ngIf="!loading && hasSteps">
|
|
35153
|
+
<canvas baseChart type="line" [labels]="lineLabels" [datasets]="lineDatasets" [options]="lineOptions"></canvas>
|
|
35154
|
+
</div>
|
|
35155
|
+
<div class="empty" *ngIf="!loading && !hasSteps">
|
|
35156
|
+
<i class="material-symbols-outlined empty-icon">route</i>
|
|
35157
|
+
<div class="empty-title">{{ stepsEmptyTitle }}</div>
|
|
35158
|
+
<div class="empty-sub">{{ stepsEmptySub }}</div>
|
|
35159
|
+
</div>
|
|
35160
|
+
<div class="sk-chart" *ngIf="loading"></div>
|
|
35161
|
+
</div>
|
|
35162
|
+
</div>
|
|
35163
|
+
|
|
35164
|
+
</div>
|
|
35135
35165
|
`, isInline: true, styles: [".home-stats{margin-bottom:4px;display:flex;flex-direction:row;gap:14px}.stats-panel{flex:1 1 50%;min-width:0;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-accent{background:var(--fh-home-accent-soft, rgba(99, 179, 69, .12));color:var(--fh-home-accent-dark, #3f7029)}.tag-neutral{background:#1612120f;color:#443d3d}.panel-body{padding-top:4px}.chart-wrap{position:relative;height:175px;width:100%}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:175px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.sk-chart{height:175px;background:linear-gradient(90deg,#f6f3f3,#ebe6e6,#f6f3f3);background-size:200% 100%;border-radius:6px;animation:sk-shimmer 1.4s ease-in-out infinite}@keyframes sk-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width: 768px){.home-stats{flex-direction:column}}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: BaseChartDirective, selector: "canvas[baseChart]", inputs: ["type", "legend", "data", "options", "plugins", "labels", "datasets"], outputs: ["chartClick", "chartHover"], exportAs: ["base-chart"] }] });
|
|
35136
35166
|
}
|
|
35137
35167
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeStatsComponent, decorators: [{
|
|
35138
35168
|
type: Component,
|
|
35139
|
-
args: [{ selector: "FHHomeStats", standalone: true, imports: [CommonModule, BaseChartDirective], template: `
|
|
35140
|
-
<div class="home-stats" *ngIf="!error">
|
|
35141
|
-
|
|
35142
|
-
<div class="stats-panel">
|
|
35143
|
-
<div class="panel-head">
|
|
35144
|
-
<div>
|
|
35145
|
-
<div class="panel-title">
|
|
35146
|
-
<i class="material-symbols-outlined">apps</i>
|
|
35147
|
-
{{ appsTitle }}
|
|
35148
|
-
</div>
|
|
35149
|
-
<div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
|
|
35150
|
-
</div>
|
|
35151
|
-
<span class="tag tag-accent" *ngIf="appsTag">{{ appsTag }}</span>
|
|
35152
|
-
</div>
|
|
35153
|
-
<div class="panel-body">
|
|
35154
|
-
<div class="chart-wrap" *ngIf="!loading && hasApps">
|
|
35155
|
-
<canvas baseChart type="doughnut" [labels]="pieLabels" [datasets]="pieDatasets" [options]="pieOptions"></canvas>
|
|
35156
|
-
</div>
|
|
35157
|
-
<div class="empty" *ngIf="!loading && !hasApps">
|
|
35158
|
-
<i class="material-symbols-outlined empty-icon">apps</i>
|
|
35159
|
-
<div class="empty-title">{{ appsEmptyTitle }}</div>
|
|
35160
|
-
<div class="empty-sub">{{ appsEmptySub }}</div>
|
|
35161
|
-
</div>
|
|
35162
|
-
<div class="sk-chart" *ngIf="loading"></div>
|
|
35163
|
-
</div>
|
|
35164
|
-
</div>
|
|
35165
|
-
|
|
35166
|
-
<div class="stats-panel">
|
|
35167
|
-
<div class="panel-head">
|
|
35168
|
-
<div>
|
|
35169
|
-
<div class="panel-title">
|
|
35170
|
-
<i class="material-symbols-outlined">timeline</i>
|
|
35171
|
-
{{ stepsTitle }}
|
|
35172
|
-
</div>
|
|
35173
|
-
<div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
|
|
35174
|
-
</div>
|
|
35175
|
-
<span class="tag tag-neutral" *ngIf="stepsTag">{{ stepsTag }}</span>
|
|
35176
|
-
</div>
|
|
35177
|
-
<div class="panel-body">
|
|
35178
|
-
<div class="chart-wrap" *ngIf="!loading && hasSteps">
|
|
35179
|
-
<canvas baseChart type="line" [labels]="lineLabels" [datasets]="lineDatasets" [options]="lineOptions"></canvas>
|
|
35180
|
-
</div>
|
|
35181
|
-
<div class="empty" *ngIf="!loading && !hasSteps">
|
|
35182
|
-
<i class="material-symbols-outlined empty-icon">route</i>
|
|
35183
|
-
<div class="empty-title">{{ stepsEmptyTitle }}</div>
|
|
35184
|
-
<div class="empty-sub">{{ stepsEmptySub }}</div>
|
|
35185
|
-
</div>
|
|
35186
|
-
<div class="sk-chart" *ngIf="loading"></div>
|
|
35187
|
-
</div>
|
|
35188
|
-
</div>
|
|
35189
|
-
|
|
35190
|
-
</div>
|
|
35169
|
+
args: [{ selector: "FHHomeStats", standalone: true, imports: [CommonModule, BaseChartDirective], template: `
|
|
35170
|
+
<div class="home-stats" *ngIf="!error">
|
|
35171
|
+
|
|
35172
|
+
<div class="stats-panel">
|
|
35173
|
+
<div class="panel-head">
|
|
35174
|
+
<div>
|
|
35175
|
+
<div class="panel-title">
|
|
35176
|
+
<i class="material-symbols-outlined">apps</i>
|
|
35177
|
+
{{ appsTitle }}
|
|
35178
|
+
</div>
|
|
35179
|
+
<div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
|
|
35180
|
+
</div>
|
|
35181
|
+
<span class="tag tag-accent" *ngIf="appsTag">{{ appsTag }}</span>
|
|
35182
|
+
</div>
|
|
35183
|
+
<div class="panel-body">
|
|
35184
|
+
<div class="chart-wrap" *ngIf="!loading && hasApps">
|
|
35185
|
+
<canvas baseChart type="doughnut" [labels]="pieLabels" [datasets]="pieDatasets" [options]="pieOptions"></canvas>
|
|
35186
|
+
</div>
|
|
35187
|
+
<div class="empty" *ngIf="!loading && !hasApps">
|
|
35188
|
+
<i class="material-symbols-outlined empty-icon">apps</i>
|
|
35189
|
+
<div class="empty-title">{{ appsEmptyTitle }}</div>
|
|
35190
|
+
<div class="empty-sub">{{ appsEmptySub }}</div>
|
|
35191
|
+
</div>
|
|
35192
|
+
<div class="sk-chart" *ngIf="loading"></div>
|
|
35193
|
+
</div>
|
|
35194
|
+
</div>
|
|
35195
|
+
|
|
35196
|
+
<div class="stats-panel">
|
|
35197
|
+
<div class="panel-head">
|
|
35198
|
+
<div>
|
|
35199
|
+
<div class="panel-title">
|
|
35200
|
+
<i class="material-symbols-outlined">timeline</i>
|
|
35201
|
+
{{ stepsTitle }}
|
|
35202
|
+
</div>
|
|
35203
|
+
<div class="panel-sub">{{ subtitlePrefix }} · {{ periodoLabel }}</div>
|
|
35204
|
+
</div>
|
|
35205
|
+
<span class="tag tag-neutral" *ngIf="stepsTag">{{ stepsTag }}</span>
|
|
35206
|
+
</div>
|
|
35207
|
+
<div class="panel-body">
|
|
35208
|
+
<div class="chart-wrap" *ngIf="!loading && hasSteps">
|
|
35209
|
+
<canvas baseChart type="line" [labels]="lineLabels" [datasets]="lineDatasets" [options]="lineOptions"></canvas>
|
|
35210
|
+
</div>
|
|
35211
|
+
<div class="empty" *ngIf="!loading && !hasSteps">
|
|
35212
|
+
<i class="material-symbols-outlined empty-icon">route</i>
|
|
35213
|
+
<div class="empty-title">{{ stepsEmptyTitle }}</div>
|
|
35214
|
+
<div class="empty-sub">{{ stepsEmptySub }}</div>
|
|
35215
|
+
</div>
|
|
35216
|
+
<div class="sk-chart" *ngIf="loading"></div>
|
|
35217
|
+
</div>
|
|
35218
|
+
</div>
|
|
35219
|
+
|
|
35220
|
+
</div>
|
|
35191
35221
|
`, styles: [".home-stats{margin-bottom:4px;display:flex;flex-direction:row;gap:14px}.stats-panel{flex:1 1 50%;min-width:0;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-accent{background:var(--fh-home-accent-soft, rgba(99, 179, 69, .12));color:var(--fh-home-accent-dark, #3f7029)}.tag-neutral{background:#1612120f;color:#443d3d}.panel-body{padding-top:4px}.chart-wrap{position:relative;height:175px;width:100%}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:175px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.sk-chart{height:175px;background:linear-gradient(90deg,#f6f3f3,#ebe6e6,#f6f3f3);background-size:200% 100%;border-radius:6px;animation:sk-shimmer 1.4s ease-in-out infinite}@keyframes sk-shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}@media (max-width: 768px){.home-stats{flex-direction:column}}\n"] }]
|
|
35192
35222
|
}], ctorParameters: () => [{ type: AppService }, { type: QueryService }], propDecorators: { accent: [{
|
|
35193
35223
|
type: Input
|
|
@@ -35340,84 +35370,84 @@ class FHHomeDocsComponent {
|
|
|
35340
35370
|
});
|
|
35341
35371
|
}
|
|
35342
35372
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeDocsComponent, deps: [{ token: FileService }, { token: AppService }], target: i0.ɵɵFactoryTarget.Component });
|
|
35343
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHHomeDocsComponent, isStandalone: true, selector: "FHHomeDocs", inputs: { accent: "accent", accentDark: "accentDark", title: "title", tagLabel: "tagLabel", emptyTitle: "emptyTitle", emptySub: "emptySub", apiEndpoint: "apiEndpoint", command: "command", rootPath: "rootPath", downloadSegment: "downloadSegment", iconBasePath: "iconBasePath" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
|
|
35344
|
-
<div class="tool-panel">
|
|
35345
|
-
<div class="panel-head">
|
|
35346
|
-
<div>
|
|
35347
|
-
<div class="panel-title">
|
|
35348
|
-
<i class="material-symbols-outlined">folder_open</i>
|
|
35349
|
-
{{ title }}
|
|
35350
|
-
</div>
|
|
35351
|
-
<div class="panel-sub">{{ curr_path }}</div>
|
|
35352
|
-
</div>
|
|
35353
|
-
<span class="tag tag-neutral" *ngIf="tagLabel">{{ tagLabel }}</span>
|
|
35354
|
-
</div>
|
|
35355
|
-
<div class="panel-body">
|
|
35356
|
-
<div class="tool-list">
|
|
35357
|
-
<button type="button" class="tool-row" *ngFor="let item of dirs" (click)="open_dir(item)">
|
|
35358
|
-
<img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
|
|
35359
|
-
<span class="tool-row-label">{{ item.fn }}</span>
|
|
35360
|
-
<i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
|
|
35361
|
-
</button>
|
|
35362
|
-
|
|
35363
|
-
<button type="button" class="tool-row" *ngFor="let item of files" (click)="download_file(item)">
|
|
35364
|
-
<img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
|
|
35365
|
-
<span class="tool-row-label">{{ item.fn }}</span>
|
|
35366
|
-
<span class="tool-row-meta">{{ item.size }}</span>
|
|
35367
|
-
<i class="material-symbols-outlined tool-row-arrow">download</i>
|
|
35368
|
-
</button>
|
|
35369
|
-
|
|
35370
|
-
<div class="empty" *ngIf="!b_loading && dirs.length === 0 && files.length === 0">
|
|
35371
|
-
<i class="material-symbols-outlined empty-icon">folder_open</i>
|
|
35372
|
-
<div class="empty-title">{{ emptyTitle }}</div>
|
|
35373
|
-
<div class="empty-sub">{{ emptySub }}</div>
|
|
35374
|
-
</div>
|
|
35375
|
-
</div>
|
|
35376
|
-
</div>
|
|
35377
|
-
</div>
|
|
35378
|
-
|
|
35379
|
-
<p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
|
|
35373
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHHomeDocsComponent, isStandalone: true, selector: "FHHomeDocs", inputs: { accent: "accent", accentDark: "accentDark", title: "title", tagLabel: "tagLabel", emptyTitle: "emptyTitle", emptySub: "emptySub", apiEndpoint: "apiEndpoint", command: "command", rootPath: "rootPath", downloadSegment: "downloadSegment", iconBasePath: "iconBasePath" }, host: { properties: { "style.--fh-home-accent": "this._a", "style.--fh-home-accent-dark": "this._ad" } }, ngImport: i0, template: `
|
|
35374
|
+
<div class="tool-panel">
|
|
35375
|
+
<div class="panel-head">
|
|
35376
|
+
<div>
|
|
35377
|
+
<div class="panel-title">
|
|
35378
|
+
<i class="material-symbols-outlined">folder_open</i>
|
|
35379
|
+
{{ title }}
|
|
35380
|
+
</div>
|
|
35381
|
+
<div class="panel-sub">{{ curr_path }}</div>
|
|
35382
|
+
</div>
|
|
35383
|
+
<span class="tag tag-neutral" *ngIf="tagLabel">{{ tagLabel }}</span>
|
|
35384
|
+
</div>
|
|
35385
|
+
<div class="panel-body">
|
|
35386
|
+
<div class="tool-list">
|
|
35387
|
+
<button type="button" class="tool-row" *ngFor="let item of dirs" (click)="open_dir(item)">
|
|
35388
|
+
<img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
|
|
35389
|
+
<span class="tool-row-label">{{ item.fn }}</span>
|
|
35390
|
+
<i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
|
|
35391
|
+
</button>
|
|
35392
|
+
|
|
35393
|
+
<button type="button" class="tool-row" *ngFor="let item of files" (click)="download_file(item)">
|
|
35394
|
+
<img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
|
|
35395
|
+
<span class="tool-row-label">{{ item.fn }}</span>
|
|
35396
|
+
<span class="tool-row-meta">{{ item.size }}</span>
|
|
35397
|
+
<i class="material-symbols-outlined tool-row-arrow">download</i>
|
|
35398
|
+
</button>
|
|
35399
|
+
|
|
35400
|
+
<div class="empty" *ngIf="!b_loading && dirs.length === 0 && files.length === 0">
|
|
35401
|
+
<i class="material-symbols-outlined empty-icon">folder_open</i>
|
|
35402
|
+
<div class="empty-title">{{ emptyTitle }}</div>
|
|
35403
|
+
<div class="empty-sub">{{ emptySub }}</div>
|
|
35404
|
+
</div>
|
|
35405
|
+
</div>
|
|
35406
|
+
</div>
|
|
35407
|
+
</div>
|
|
35408
|
+
|
|
35409
|
+
<p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
|
|
35380
35410
|
`, isInline: true, styles: [":host{display:block;height:100%}.tool-panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-neutral{background:#1612120f;color:#443d3d}.panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.tool-list{flex:1 1 auto;min-height:0;height:175px;overflow-y:auto;overflow-x:hidden}.tool-row{width:100%;display:flex;align-items:center;gap:10px;padding:6px 2px 6px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.tool-row:last-child{border-bottom:none}.tool-row-icon{flex:0 0 auto;width:22px;height:22px;object-fit:contain}.tool-row-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-row-meta{flex:0 0 auto;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#a39b9b}.tool-row-arrow{flex:0 0 auto;font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.tool-row:hover{color:var(--fh-home-accent-dark, #3f7029);padding-left:6px}.tool-row:hover .tool-row-arrow{color:var(--fh-home-accent-dark, #3f7029);transform:translate(2px)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:150px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.tool-error{color:#c00;font-size:9px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
35381
35411
|
}
|
|
35382
35412
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeDocsComponent, decorators: [{
|
|
35383
35413
|
type: Component,
|
|
35384
|
-
args: [{ selector: "FHHomeDocs", standalone: true, imports: [CommonModule], template: `
|
|
35385
|
-
<div class="tool-panel">
|
|
35386
|
-
<div class="panel-head">
|
|
35387
|
-
<div>
|
|
35388
|
-
<div class="panel-title">
|
|
35389
|
-
<i class="material-symbols-outlined">folder_open</i>
|
|
35390
|
-
{{ title }}
|
|
35391
|
-
</div>
|
|
35392
|
-
<div class="panel-sub">{{ curr_path }}</div>
|
|
35393
|
-
</div>
|
|
35394
|
-
<span class="tag tag-neutral" *ngIf="tagLabel">{{ tagLabel }}</span>
|
|
35395
|
-
</div>
|
|
35396
|
-
<div class="panel-body">
|
|
35397
|
-
<div class="tool-list">
|
|
35398
|
-
<button type="button" class="tool-row" *ngFor="let item of dirs" (click)="open_dir(item)">
|
|
35399
|
-
<img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
|
|
35400
|
-
<span class="tool-row-label">{{ item.fn }}</span>
|
|
35401
|
-
<i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
|
|
35402
|
-
</button>
|
|
35403
|
-
|
|
35404
|
-
<button type="button" class="tool-row" *ngFor="let item of files" (click)="download_file(item)">
|
|
35405
|
-
<img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
|
|
35406
|
-
<span class="tool-row-label">{{ item.fn }}</span>
|
|
35407
|
-
<span class="tool-row-meta">{{ item.size }}</span>
|
|
35408
|
-
<i class="material-symbols-outlined tool-row-arrow">download</i>
|
|
35409
|
-
</button>
|
|
35410
|
-
|
|
35411
|
-
<div class="empty" *ngIf="!b_loading && dirs.length === 0 && files.length === 0">
|
|
35412
|
-
<i class="material-symbols-outlined empty-icon">folder_open</i>
|
|
35413
|
-
<div class="empty-title">{{ emptyTitle }}</div>
|
|
35414
|
-
<div class="empty-sub">{{ emptySub }}</div>
|
|
35415
|
-
</div>
|
|
35416
|
-
</div>
|
|
35417
|
-
</div>
|
|
35418
|
-
</div>
|
|
35419
|
-
|
|
35420
|
-
<p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
|
|
35414
|
+
args: [{ selector: "FHHomeDocs", standalone: true, imports: [CommonModule], template: `
|
|
35415
|
+
<div class="tool-panel">
|
|
35416
|
+
<div class="panel-head">
|
|
35417
|
+
<div>
|
|
35418
|
+
<div class="panel-title">
|
|
35419
|
+
<i class="material-symbols-outlined">folder_open</i>
|
|
35420
|
+
{{ title }}
|
|
35421
|
+
</div>
|
|
35422
|
+
<div class="panel-sub">{{ curr_path }}</div>
|
|
35423
|
+
</div>
|
|
35424
|
+
<span class="tag tag-neutral" *ngIf="tagLabel">{{ tagLabel }}</span>
|
|
35425
|
+
</div>
|
|
35426
|
+
<div class="panel-body">
|
|
35427
|
+
<div class="tool-list">
|
|
35428
|
+
<button type="button" class="tool-row" *ngFor="let item of dirs" (click)="open_dir(item)">
|
|
35429
|
+
<img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
|
|
35430
|
+
<span class="tool-row-label">{{ item.fn }}</span>
|
|
35431
|
+
<i class="material-symbols-outlined tool-row-arrow">arrow_forward</i>
|
|
35432
|
+
</button>
|
|
35433
|
+
|
|
35434
|
+
<button type="button" class="tool-row" *ngFor="let item of files" (click)="download_file(item)">
|
|
35435
|
+
<img class="tool-row-icon" [src]="iconBasePath + item.icon" alt="" />
|
|
35436
|
+
<span class="tool-row-label">{{ item.fn }}</span>
|
|
35437
|
+
<span class="tool-row-meta">{{ item.size }}</span>
|
|
35438
|
+
<i class="material-symbols-outlined tool-row-arrow">download</i>
|
|
35439
|
+
</button>
|
|
35440
|
+
|
|
35441
|
+
<div class="empty" *ngIf="!b_loading && dirs.length === 0 && files.length === 0">
|
|
35442
|
+
<i class="material-symbols-outlined empty-icon">folder_open</i>
|
|
35443
|
+
<div class="empty-title">{{ emptyTitle }}</div>
|
|
35444
|
+
<div class="empty-sub">{{ emptySub }}</div>
|
|
35445
|
+
</div>
|
|
35446
|
+
</div>
|
|
35447
|
+
</div>
|
|
35448
|
+
</div>
|
|
35449
|
+
|
|
35450
|
+
<p class="tool-error" *ngIf="errorMsg != ''">{{ errorMsg }}</p>
|
|
35421
35451
|
`, styles: [":host{display:block;height:100%}.tool-panel{height:100%;box-sizing:border-box;display:flex;flex-direction:column;background:#fff;border:1px solid rgba(22,18,18,.1);border-radius:10px;padding:16px 18px}.panel-head{display:flex;align-items:center;justify-content:space-between;padding-bottom:10px;border-bottom:1px solid rgba(22,18,18,.06);margin-bottom:10px}.panel-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#161212;display:flex;align-items:center;gap:8px}.panel-title i{font-size:18px;color:var(--fh-home-accent, #63b345)}.panel-sub{font-family:Inter,sans-serif;font-size:11px;color:#8c8585;margin-top:3px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:320px}.tag{display:inline-block;padding:3px 10px;border-radius:999px;font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:.03em;white-space:nowrap}.tag-neutral{background:#1612120f;color:#443d3d}.panel-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column}.tool-list{flex:1 1 auto;min-height:0;height:175px;overflow-y:auto;overflow-x:hidden}.tool-row{width:100%;display:flex;align-items:center;gap:10px;padding:6px 2px 6px 0;border:none;border-bottom:1px solid rgba(22,18,18,.07);background:transparent;cursor:pointer;text-align:left;font-family:Inter,sans-serif;font-size:13px;font-weight:500;color:#443d3d;transition:color .15s ease,padding-left .15s ease}.tool-row:last-child{border-bottom:none}.tool-row-icon{flex:0 0 auto;width:22px;height:22px;object-fit:contain}.tool-row-label{flex:1 1 auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.tool-row-meta{flex:0 0 auto;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:#a39b9b}.tool-row-arrow{flex:0 0 auto;font-size:16px;color:transparent;transition:color .15s ease,transform .15s ease}.tool-row:hover{color:var(--fh-home-accent-dark, #3f7029);padding-left:6px}.tool-row:hover .tool-row-arrow{color:var(--fh-home-accent-dark, #3f7029);transform:translate(2px)}.empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;height:150px;text-align:center;color:#a39b9b}.empty-icon{font-size:30px;color:var(--fh-home-accent-faint, rgba(99, 179, 69, .45));margin-bottom:4px}.empty-title{font-family:Plus Jakarta Sans,sans-serif;font-size:13px;font-weight:700;color:#5c5454}.empty-sub{font-family:Inter,sans-serif;font-size:12px;color:#877d7d}.tool-error{color:#c00;font-size:9px}\n"] }]
|
|
35422
35452
|
}], ctorParameters: () => [{ type: FileService }, { type: AppService }], propDecorators: { accent: [{
|
|
35423
35453
|
type: Input
|