@fluxhub/fluxhub-lib 19.0.193 → 19.0.195
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/fesm2022/fluxhub-fluxhub-lib.mjs +189 -13
- package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
- package/lib/controls/fh-color-picker.d.ts +3 -1
- package/lib/home-components/fh-home-launcher/fh-home-launcher.component.d.ts +32 -2
- package/lib/wkf_engine_v2/wkf-form-data.d.ts +19 -0
- package/package.json +1 -1
|
@@ -14873,6 +14873,8 @@ const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3 = {
|
|
|
14873
14873
|
class FHColorPickerComponent {
|
|
14874
14874
|
hidden = false;
|
|
14875
14875
|
enabled = true;
|
|
14876
|
+
/** Larghezza della dialog del color picker (ngx-color-picker cpWidth). */
|
|
14877
|
+
cpWidth = '260px';
|
|
14876
14878
|
change = new EventEmitter();
|
|
14877
14879
|
_color = '#2196F3';
|
|
14878
14880
|
// Colori predefiniti
|
|
@@ -14935,7 +14937,7 @@ class FHColorPickerComponent {
|
|
|
14935
14937
|
return this._color;
|
|
14936
14938
|
}
|
|
14937
14939
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHColorPickerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
14938
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHColorPickerComponent, isStandalone: true, selector: "FHColorPicker", inputs: { hidden: "hidden", enabled: "enabled", color: "color" }, outputs: { change: "change", colorChange: "colorChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], ngImport: i0, template: `
|
|
14940
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.17", type: FHColorPickerComponent, isStandalone: true, selector: "FHColorPicker", inputs: { hidden: "hidden", enabled: "enabled", cpWidth: "cpWidth", color: "color" }, outputs: { change: "change", colorChange: "colorChange" }, providers: [CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR$3], ngImport: i0, template: `
|
|
14939
14941
|
<div
|
|
14940
14942
|
*ngIf="!hidden"
|
|
14941
14943
|
class="color-picker-circle"
|
|
@@ -14944,6 +14946,7 @@ class FHColorPickerComponent {
|
|
|
14944
14946
|
[(colorPicker)]="_color"
|
|
14945
14947
|
[cpPosition]="'bottom'"
|
|
14946
14948
|
[cpPositionRelativeToArrow]="true"
|
|
14949
|
+
[cpWidth]="cpWidth"
|
|
14947
14950
|
[cpPresetColors]="presetColors"
|
|
14948
14951
|
[cpPresetLabel]="'Colori predefiniti'"
|
|
14949
14952
|
[cpOKButton]="true"
|
|
@@ -14957,7 +14960,7 @@ class FHColorPickerComponent {
|
|
|
14957
14960
|
(colorPickerChange)="onColorChange($event)"
|
|
14958
14961
|
(colorPickerSelect)="onColorSelect($event)">
|
|
14959
14962
|
</div>
|
|
14960
|
-
`, isInline: true, styles: [":host{display:inline-block}.color-picker-circle{width:35px;height:35px;border:1px solid #333;border-radius:50%;cursor:pointer;transition:all .2s ease}.color-picker-circle:hover:not(.disabled){transform:scale(1.1);box-shadow:0 2px 8px #0000004d}.color-picker-circle.disabled{cursor:not-allowed;opacity:.6}::ng-deep .color-picker .button-area{display:flex!important;flex-direction:row!important;justify-content:
|
|
14963
|
+
`, isInline: true, styles: [":host{display:inline-block}.color-picker-circle{width:35px;height:35px;border:1px solid #333;border-radius:50%;cursor:pointer;transition:all .2s ease}.color-picker-circle:hover:not(.disabled){transform:scale(1.1);box-shadow:0 2px 8px #0000004d}.color-picker-circle.disabled{cursor:not-allowed;opacity:.6}::ng-deep .color-picker .button-area{display:flex!important;flex-direction:row!important;justify-content:stretch!important;align-items:center!important;gap:10px!important;padding:14px 16px 16px!important;box-sizing:border-box!important}::ng-deep .custom-ok-button{background-color:#1976d2!important;color:#fff!important;border:none!important;padding:9px 12px!important;border-radius:6px!important;font-weight:600!important;font-size:13px!important;letter-spacing:.02em!important;line-height:1.2!important;white-space:nowrap!important;cursor:pointer!important;transition:background-color .2s ease!important;flex:1 1 0!important;min-width:0!important}::ng-deep .custom-ok-button:hover{background-color:#1565c0!important;box-shadow:0 2px 4px #0003!important}::ng-deep .custom-cancel-button{background-color:#f5f5f5!important;color:#424242!important;border:1px solid #ddd!important;padding:9px 12px!important;border-radius:6px!important;font-weight:600!important;font-size:13px!important;letter-spacing:.02em!important;line-height:1.2!important;white-space:nowrap!important;cursor:pointer!important;transition:all .2s ease!important;flex:1 1 0!important;min-width:0!important}::ng-deep .custom-cancel-button:hover{background-color:#eee!important;border-color:#ccc!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: ColorPickerDirective, selector: "[colorPicker]", inputs: ["colorPicker", "cpWidth", "cpHeight", "cpToggle", "cpDisabled", "cpIgnoredElements", "cpFallbackColor", "cpColorMode", "cpCmykEnabled", "cpOutputFormat", "cpAlphaChannel", "cpDisableInput", "cpDialogDisplay", "cpSaveClickOutside", "cpCloseClickOutside", "cpUseRootViewContainer", "cpPosition", "cpPositionOffset", "cpPositionRelativeToArrow", "cpOKButton", "cpOKButtonText", "cpOKButtonClass", "cpCancelButton", "cpCancelButtonText", "cpCancelButtonClass", "cpEyeDropper", "cpPresetLabel", "cpPresetColors", "cpPresetColorsClass", "cpMaxPresetColorsLength", "cpPresetEmptyMessage", "cpPresetEmptyMessageClass", "cpAddColorButton", "cpAddColorButtonText", "cpAddColorButtonClass", "cpRemoveColorButtonClass", "cpArrowPosition", "cpExtraTemplate"], outputs: ["cpInputChange", "cpToggleChange", "cpSliderChange", "cpSliderDragEnd", "cpSliderDragStart", "colorPickerOpen", "colorPickerClose", "colorPickerCancel", "colorPickerSelect", "colorPickerChange", "cpCmykColorChange", "cpPresetColorsChange"], exportAs: ["ngxColorPicker"] }, { kind: "ngmodule", type: TranslateModule }, { kind: "pipe", type: i3.TranslatePipe, name: "translate" }] });
|
|
14961
14964
|
}
|
|
14962
14965
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHColorPickerComponent, decorators: [{
|
|
14963
14966
|
type: Component,
|
|
@@ -14974,6 +14977,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
14974
14977
|
[(colorPicker)]="_color"
|
|
14975
14978
|
[cpPosition]="'bottom'"
|
|
14976
14979
|
[cpPositionRelativeToArrow]="true"
|
|
14980
|
+
[cpWidth]="cpWidth"
|
|
14977
14981
|
[cpPresetColors]="presetColors"
|
|
14978
14982
|
[cpPresetLabel]="'Colori predefiniti'"
|
|
14979
14983
|
[cpOKButton]="true"
|
|
@@ -14987,11 +14991,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
14987
14991
|
(colorPickerChange)="onColorChange($event)"
|
|
14988
14992
|
(colorPickerSelect)="onColorSelect($event)">
|
|
14989
14993
|
</div>
|
|
14990
|
-
`, styles: [":host{display:inline-block}.color-picker-circle{width:35px;height:35px;border:1px solid #333;border-radius:50%;cursor:pointer;transition:all .2s ease}.color-picker-circle:hover:not(.disabled){transform:scale(1.1);box-shadow:0 2px 8px #0000004d}.color-picker-circle.disabled{cursor:not-allowed;opacity:.6}::ng-deep .color-picker .button-area{display:flex!important;flex-direction:row!important;justify-content:
|
|
14994
|
+
`, styles: [":host{display:inline-block}.color-picker-circle{width:35px;height:35px;border:1px solid #333;border-radius:50%;cursor:pointer;transition:all .2s ease}.color-picker-circle:hover:not(.disabled){transform:scale(1.1);box-shadow:0 2px 8px #0000004d}.color-picker-circle.disabled{cursor:not-allowed;opacity:.6}::ng-deep .color-picker .button-area{display:flex!important;flex-direction:row!important;justify-content:stretch!important;align-items:center!important;gap:10px!important;padding:14px 16px 16px!important;box-sizing:border-box!important}::ng-deep .custom-ok-button{background-color:#1976d2!important;color:#fff!important;border:none!important;padding:9px 12px!important;border-radius:6px!important;font-weight:600!important;font-size:13px!important;letter-spacing:.02em!important;line-height:1.2!important;white-space:nowrap!important;cursor:pointer!important;transition:background-color .2s ease!important;flex:1 1 0!important;min-width:0!important}::ng-deep .custom-ok-button:hover{background-color:#1565c0!important;box-shadow:0 2px 4px #0003!important}::ng-deep .custom-cancel-button{background-color:#f5f5f5!important;color:#424242!important;border:1px solid #ddd!important;padding:9px 12px!important;border-radius:6px!important;font-weight:600!important;font-size:13px!important;letter-spacing:.02em!important;line-height:1.2!important;white-space:nowrap!important;cursor:pointer!important;transition:all .2s ease!important;flex:1 1 0!important;min-width:0!important}::ng-deep .custom-cancel-button:hover{background-color:#eee!important;border-color:#ccc!important}\n"] }]
|
|
14991
14995
|
}], ctorParameters: () => [], propDecorators: { hidden: [{
|
|
14992
14996
|
type: Input
|
|
14993
14997
|
}], enabled: [{
|
|
14994
14998
|
type: Input
|
|
14999
|
+
}], cpWidth: [{
|
|
15000
|
+
type: Input
|
|
14995
15001
|
}], change: [{
|
|
14996
15002
|
type: Output
|
|
14997
15003
|
}], color: [{
|
|
@@ -33521,7 +33527,7 @@ class FHWorkflowForm {
|
|
|
33521
33527
|
this.livs[i].username = this.user_idp;
|
|
33522
33528
|
}
|
|
33523
33529
|
}
|
|
33524
|
-
if (this.
|
|
33530
|
+
if (this._edit_load_mode && !this.btnprocedi) {
|
|
33525
33531
|
this.return_edit();
|
|
33526
33532
|
return;
|
|
33527
33533
|
}
|
|
@@ -34012,12 +34018,41 @@ class FHWorkflowForm {
|
|
|
34012
34018
|
this.livs[i].context == '*ALLUSERS') {
|
|
34013
34019
|
// if (this.livs[i].abilita_indietro == 1) this.respingi_enabled = true;
|
|
34014
34020
|
// else this.respingi_enabled = false;
|
|
34021
|
+
this.b_edit = true;
|
|
34015
34022
|
this.update_status(true, this.respingi_enabled, null, null, 15);
|
|
34016
34023
|
break;
|
|
34017
34024
|
}
|
|
34018
34025
|
}
|
|
34019
34026
|
}
|
|
34020
34027
|
b_edit = false;
|
|
34028
|
+
/**
|
|
34029
|
+
* Modalità di caricamento (edit vs nuovo documento), congelata all'init.
|
|
34030
|
+
* Serve a NON far dipendere il routing del load (ok_livelli_doc) dal valore di
|
|
34031
|
+
* `b_edit`, che i componenti possono sovrascrivere nei loro update_status: il
|
|
34032
|
+
* routing deve restare deterministico a prescindere da cosa fa il componente.
|
|
34033
|
+
*/
|
|
34034
|
+
_edit_load_mode = false;
|
|
34035
|
+
/**
|
|
34036
|
+
* L'utente corrente è tra gli `autori` (= ha in carico) del documento.
|
|
34037
|
+
* Logica di autorizzazione CENTRALIZZATA nella lib: i componenti non devono
|
|
34038
|
+
* leggere `m_obj.autori`/`lettori` per conto loro.
|
|
34039
|
+
*/
|
|
34040
|
+
isCurrentUserAuthor() {
|
|
34041
|
+
const autori = (this.m_obj?.autori ?? '').toString().toLowerCase();
|
|
34042
|
+
const me = (this.user_idp ?? '').toLowerCase();
|
|
34043
|
+
return me !== '' && (',' + autori + ',').indexOf(',' + me + ',') !== -1;
|
|
34044
|
+
}
|
|
34045
|
+
/**
|
|
34046
|
+
* Editabilità "ufficiale" del documento decisa dalla lib: in carico (autore) e
|
|
34047
|
+
* documento non in uno stato finale (>=900). I componenti possono leggere questo
|
|
34048
|
+
* getter invece di ricalcolare l'autorizzazione.
|
|
34049
|
+
*/
|
|
34050
|
+
get canEdit() {
|
|
34051
|
+
const stato = Number(this.m_obj?.stato);
|
|
34052
|
+
if (!isNaN(stato) && stato >= 900)
|
|
34053
|
+
return false;
|
|
34054
|
+
return this.isCurrentUserAuthor();
|
|
34055
|
+
}
|
|
34021
34056
|
b_valid = true;
|
|
34022
34057
|
reassigned_to(op) { }
|
|
34023
34058
|
after_save() { }
|
|
@@ -34049,18 +34084,25 @@ class FHWorkflowForm {
|
|
|
34049
34084
|
this.respingi_enabled = this.b_respingi_button;
|
|
34050
34085
|
if (this.m_obj.autori == null)
|
|
34051
34086
|
this.m_obj.autori = '';
|
|
34052
|
-
|
|
34087
|
+
// Autorizzazione decisa QUI dalla lib e comunicata SEMPRE al componente
|
|
34088
|
+
// via update_status (true se autore, false altrimenti). La lib mantiene
|
|
34089
|
+
// lei il valore corretto di `b_edit`: il componente deve solo reagire,
|
|
34090
|
+
// senza leggere autori/lettori né scrivere `b_edit`.
|
|
34091
|
+
const _authorized = this.isCurrentUserAuthor();
|
|
34092
|
+
this.b_edit = _authorized;
|
|
34093
|
+
if (_authorized) {
|
|
34053
34094
|
if (this.m_obj.autori != null)
|
|
34054
34095
|
if (this.m_obj.autori.split(',').length != 1)
|
|
34055
34096
|
this.in_carico = true;
|
|
34056
|
-
// if(!this.in_carico){
|
|
34057
34097
|
if (this.m_obj.assegnati_paralleli != null)
|
|
34058
34098
|
if (this.m_obj.assegnati_paralleli.split(',').length != 1)
|
|
34059
34099
|
if (this.m_obj.assegnati_paralleli.indexOf(this.app_s.user) > -1)
|
|
34060
34100
|
this.b_assengna_a = true;
|
|
34061
|
-
// }
|
|
34062
34101
|
this.update_status(true, this.respingi_enabled, this.in_carico, this.b_assengna_a, 16);
|
|
34063
34102
|
}
|
|
34103
|
+
else {
|
|
34104
|
+
this.update_status(false, this.respingi_enabled, false, false, 16);
|
|
34105
|
+
}
|
|
34064
34106
|
let p = new QParam();
|
|
34065
34107
|
p.sql = 'SELECT_WKF_PROC_CONFIG';
|
|
34066
34108
|
p.values = [this.id_applicativo, this.id_documento];
|
|
@@ -34189,6 +34231,10 @@ class FHWorkflowForm {
|
|
|
34189
34231
|
});
|
|
34190
34232
|
}
|
|
34191
34233
|
init_app_wkf() {
|
|
34234
|
+
// `b_edit` all'init = modalità di caricamento (edit vs nuovo). La congelo qui
|
|
34235
|
+
// così il routing del load (ok_livelli_doc) non dipende da ciò che il
|
|
34236
|
+
// componente scriverà su `b_edit` nei suoi update_status.
|
|
34237
|
+
this._edit_load_mode = this.b_edit;
|
|
34192
34238
|
if (!this.b_edit)
|
|
34193
34239
|
this.insert_doc();
|
|
34194
34240
|
else
|
|
@@ -35268,6 +35314,23 @@ class FHHomeLauncherComponent {
|
|
|
35268
35314
|
boxIcon = "grid_view";
|
|
35269
35315
|
/** Etichetta dell'azione nel box (sotto al titolo). */
|
|
35270
35316
|
boxActionLabel = "Apri";
|
|
35317
|
+
// ---- Preferiti utente (cuore sull'header categoria) ----
|
|
35318
|
+
/**
|
|
35319
|
+
* Abilita la gestione dei preferiti: ogni categoria mostra un cuore; le
|
|
35320
|
+
* categorie preferite sono renderizzate "a box". Le preferenze sono persistite
|
|
35321
|
+
* per utente (tabella wkf_user_category_prefs, JSON di id_category).
|
|
35322
|
+
* Quando true, l'aspetto a box è guidato dai preferiti dell'utente; se l'utente
|
|
35323
|
+
* non ha mai personalizzato, si usa [boxCategoryIds] come default.
|
|
35324
|
+
*/
|
|
35325
|
+
enableFavorites = false;
|
|
35326
|
+
/** Query (query.ini) che legge le preferenze: SELECT fav_categories WHERE username=@VAL1. */
|
|
35327
|
+
sqlCatPrefsGet = "SELECT_HOME_CAT_PREFS";
|
|
35328
|
+
/** Query (query.ini) di upsert: @VAL1=username, @VAL2=JSON array di id_category. */
|
|
35329
|
+
sqlCatPrefsSave = "UPSERT_HOME_CAT_PREFS";
|
|
35330
|
+
/** Tooltip del cuore quando la categoria NON è preferita. */
|
|
35331
|
+
favoriteTooltip = "Aggiungi ai preferiti";
|
|
35332
|
+
/** Tooltip del cuore quando la categoria È preferita. */
|
|
35333
|
+
unfavoriteTooltip = "Rimuovi dai preferiti";
|
|
35271
35334
|
// ---- Sfondo ----
|
|
35272
35335
|
/**
|
|
35273
35336
|
* Colore di sfondo della superficie del launcher.
|
|
@@ -35290,6 +35353,10 @@ class FHHomeLauncherComponent {
|
|
|
35290
35353
|
appOpen = new EventEmitter();
|
|
35291
35354
|
categories = [];
|
|
35292
35355
|
is_loaded = false;
|
|
35356
|
+
/** Set degli id_category preferiti (effettivi: salvati dall'utente o default). */
|
|
35357
|
+
favoriteIds = new Set();
|
|
35358
|
+
/** True se l'utente ha già personalizzato le preferenze (riga presente in DB). */
|
|
35359
|
+
hasUserPref = false;
|
|
35293
35360
|
constructor(appService, _service, _dataService, _utility, router) {
|
|
35294
35361
|
this.appService = appService;
|
|
35295
35362
|
this._service = _service;
|
|
@@ -35321,9 +35388,54 @@ class FHHomeLauncherComponent {
|
|
|
35321
35388
|
this.appService.user_isadmin = data.result_data[0].isadmin;
|
|
35322
35389
|
this.appService.user_roles = data.result_data[0].roles;
|
|
35323
35390
|
}
|
|
35324
|
-
this.
|
|
35391
|
+
if (this.enableFavorites)
|
|
35392
|
+
this.load_prefs_then_menu();
|
|
35393
|
+
else
|
|
35394
|
+
this.build_menu();
|
|
35395
|
+
});
|
|
35396
|
+
}
|
|
35397
|
+
// Carica le preferenze categorie dell'utente, poi costruisce il menu.
|
|
35398
|
+
// Riga presente -> uso il JSON salvato; riga assente -> default [boxCategoryIds].
|
|
35399
|
+
load_prefs_then_menu() {
|
|
35400
|
+
const p = new QParam();
|
|
35401
|
+
p.sql = this.sqlCatPrefsGet;
|
|
35402
|
+
p.values = [this.appService.user || ""];
|
|
35403
|
+
p.types = ["string"];
|
|
35404
|
+
this._dataService.doQuery(p).subscribe({
|
|
35405
|
+
next: (data) => {
|
|
35406
|
+
const row = (data?.result_msg === "OK" && data?.result_data?.length) ? data.result_data[0] : null;
|
|
35407
|
+
if (row && row.fav_categories != null) {
|
|
35408
|
+
this.hasUserPref = true;
|
|
35409
|
+
this.favoriteIds = this.parseFavorites(row.fav_categories);
|
|
35410
|
+
}
|
|
35411
|
+
else {
|
|
35412
|
+
this.hasUserPref = false;
|
|
35413
|
+
this.favoriteIds = new Set((this.boxCategoryIds || []).map((v) => Number(v)));
|
|
35414
|
+
}
|
|
35415
|
+
this.build_menu();
|
|
35416
|
+
},
|
|
35417
|
+
error: () => {
|
|
35418
|
+
this.hasUserPref = false;
|
|
35419
|
+
this.favoriteIds = new Set((this.boxCategoryIds || []).map((v) => Number(v)));
|
|
35420
|
+
this.build_menu();
|
|
35421
|
+
},
|
|
35325
35422
|
});
|
|
35326
35423
|
}
|
|
35424
|
+
/** Normalizza il valore fav_categories (JSON string o array già parsato) in un Set di numeri. */
|
|
35425
|
+
parseFavorites(raw) {
|
|
35426
|
+
let arr = raw;
|
|
35427
|
+
if (typeof raw === "string") {
|
|
35428
|
+
try {
|
|
35429
|
+
arr = JSON.parse(raw);
|
|
35430
|
+
}
|
|
35431
|
+
catch {
|
|
35432
|
+
arr = [];
|
|
35433
|
+
}
|
|
35434
|
+
}
|
|
35435
|
+
if (!Array.isArray(arr))
|
|
35436
|
+
arr = [];
|
|
35437
|
+
return new Set(arr.map((v) => Number(v)).filter((n) => !isNaN(n)));
|
|
35438
|
+
}
|
|
35327
35439
|
build_menu() {
|
|
35328
35440
|
const username = this.appService.user || "";
|
|
35329
35441
|
const isadmin = String(this.appService.user_isadmin ?? "") === "1";
|
|
@@ -35366,12 +35478,42 @@ class FHHomeLauncherComponent {
|
|
|
35366
35478
|
this.is_loaded = true;
|
|
35367
35479
|
});
|
|
35368
35480
|
}
|
|
35369
|
-
/**
|
|
35481
|
+
/**
|
|
35482
|
+
* True se la categoria va renderizzata "a box". Con i preferiti abilitati
|
|
35483
|
+
* dipende dai preferiti dell'utente (favoriteIds); altrimenti da [boxCategoryIds].
|
|
35484
|
+
*/
|
|
35370
35485
|
isBoxCat(cat) {
|
|
35371
|
-
if (cat?.id == null
|
|
35486
|
+
if (cat?.id == null)
|
|
35487
|
+
return false;
|
|
35488
|
+
if (this.enableFavorites)
|
|
35489
|
+
return this.favoriteIds.has(cat.id);
|
|
35490
|
+
if (!this.boxCategoryIds?.length)
|
|
35372
35491
|
return false;
|
|
35373
35492
|
return this.boxCategoryIds.some((v) => Number(v) === cat.id);
|
|
35374
35493
|
}
|
|
35494
|
+
/** Toggle preferito su una categoria: aggiorna l'aspetto e persiste subito. */
|
|
35495
|
+
toggleFavorite(cat, ev) {
|
|
35496
|
+
ev.stopPropagation();
|
|
35497
|
+
ev.preventDefault();
|
|
35498
|
+
if (cat?.id == null)
|
|
35499
|
+
return;
|
|
35500
|
+
if (this.favoriteIds.has(cat.id))
|
|
35501
|
+
this.favoriteIds.delete(cat.id);
|
|
35502
|
+
else
|
|
35503
|
+
this.favoriteIds.add(cat.id);
|
|
35504
|
+
cat.isBox = this.favoriteIds.has(cat.id);
|
|
35505
|
+
this.save_prefs();
|
|
35506
|
+
}
|
|
35507
|
+
/** Persiste le preferenze correnti (upsert username + JSON array di id_category). */
|
|
35508
|
+
save_prefs() {
|
|
35509
|
+
this.hasUserPref = true;
|
|
35510
|
+
const json = JSON.stringify(Array.from(this.favoriteIds));
|
|
35511
|
+
const p = new QParam();
|
|
35512
|
+
p.sql = this.sqlCatPrefsSave;
|
|
35513
|
+
p.values = [this.appService.user || "", json];
|
|
35514
|
+
p.types = ["string", "string"];
|
|
35515
|
+
this._dataService.doQuery(p).subscribe(() => { });
|
|
35516
|
+
}
|
|
35375
35517
|
open_app(app) {
|
|
35376
35518
|
if (!app || !app.link)
|
|
35377
35519
|
return;
|
|
@@ -35394,7 +35536,7 @@ class FHHomeLauncherComponent {
|
|
|
35394
35536
|
this.appOpen.emit(app);
|
|
35395
35537
|
}
|
|
35396
35538
|
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 });
|
|
35397
|
-
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", boxCategoryIds: "boxCategoryIds", boxIcon: "boxIcon", boxActionLabel: "boxActionLabel", background: "background", showGridBackground: "showGridBackground", 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: `
|
|
35539
|
+
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", boxCategoryIds: "boxCategoryIds", boxIcon: "boxIcon", boxActionLabel: "boxActionLabel", enableFavorites: "enableFavorites", sqlCatPrefsGet: "sqlCatPrefsGet", sqlCatPrefsSave: "sqlCatPrefsSave", favoriteTooltip: "favoriteTooltip", unfavoriteTooltip: "unfavoriteTooltip", background: "background", showGridBackground: "showGridBackground", 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: `
|
|
35398
35540
|
<div
|
|
35399
35541
|
class="launcher"
|
|
35400
35542
|
[class.with-grid]="showGridBackground"
|
|
@@ -35406,6 +35548,18 @@ class FHHomeLauncherComponent {
|
|
|
35406
35548
|
<header class="cat-head">
|
|
35407
35549
|
<span class="cat-index" *ngIf="showIndex">{{ (i + 1).toString().padStart(2, "0") }}</span>
|
|
35408
35550
|
<h2 class="cat-title">{{ cat.title }}</h2>
|
|
35551
|
+
<button
|
|
35552
|
+
*ngIf="enableFavorites"
|
|
35553
|
+
type="button"
|
|
35554
|
+
class="cat-fav"
|
|
35555
|
+
[class.is-fav]="cat.isBox"
|
|
35556
|
+
(click)="toggleFavorite(cat, $event)"
|
|
35557
|
+
[attr.title]="cat.isBox ? unfavoriteTooltip : favoriteTooltip"
|
|
35558
|
+
[attr.aria-label]="(cat.isBox ? unfavoriteTooltip : favoriteTooltip) + ': ' + cat.title"
|
|
35559
|
+
[attr.aria-pressed]="cat.isBox"
|
|
35560
|
+
>
|
|
35561
|
+
<i class="material-symbols-outlined">{{ cat.isBox ? "favorite" : "favorite_border" }}</i>
|
|
35562
|
+
</button>
|
|
35409
35563
|
</header>
|
|
35410
35564
|
<!-- Categoria "a box" (card): aspetto evidenziato -->
|
|
35411
35565
|
<div class="cat-boxes" *ngIf="cat.isBox; else textList">
|
|
@@ -35444,7 +35598,7 @@ class FHHomeLauncherComponent {
|
|
|
35444
35598
|
</section>
|
|
35445
35599
|
</div>
|
|
35446
35600
|
</div>
|
|
35447
|
-
`, isInline: true, styles: [":host{display:block;flex:0 0 auto}.launcher{width:100%;box-sizing:border-box;padding:12px 48px 18px}.launcher.with-grid{background-image:linear-gradient(rgba(22,18,18,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(22,18,18,.028) 1px,transparent 1px);background-size:56px 56px;background-position:-1px -1px}.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)}.cat-boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:14px}.app-box{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:12px;padding:16px 16px 14px;border-radius:16px;cursor:pointer;text-align:left;border:1px solid rgba(22,18,18,.08);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--fh-home-accent, #63b345) 5%,#ffffff));box-shadow:0 1px 2px #1612120d;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.app-box:before{content:\"\";position:absolute;top:0;left:0;right:0;height:3px;z-index:1;background:linear-gradient(90deg,var(--fh-home-accent, #63b345),var(--fh-home-accent-dark, #549a3b));transform:scaleX(0);transform-origin:left;transition:transform .25s ease}.app-box:hover{transform:translateY(-3px);box-shadow:0 12px 26px #1612121f;border-color:color-mix(in srgb,var(--fh-home-accent, #63b345) 55%,transparent)}.app-box:hover:before{transform:scaleX(1)}.app-box:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:2px}.app-box-top{display:flex;align-items:center;justify-content:space-between}.app-box-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--fh-home-accent, #63b345) 14%,#ffffff);color:var(--fh-home-accent-dark, #549a3b);transition:background .2s ease,color .2s ease}.app-box-icon i{font-size:23px;line-height:1}.app-box-icon img{width:26px;height:26px;object-fit:contain}.app-box:hover .app-box-icon{background:var(--fh-home-accent, #63b345);color:#fff}.app-box-arrow{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--fh-home-accent-dark, #549a3b);background:transparent;transform:translate(-4px);opacity:0;transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease}.app-box-arrow i{font-size:18px}.app-box:hover .app-box-arrow{opacity:1;transform:translate(0);background:color-mix(in srgb,var(--fh-home-accent, #63b345) 16%,#ffffff)}.app-box-title{font-family:Plus Jakarta Sans,Inter,sans-serif;font-size:15px;font-weight:700;line-height:1.28;color:var(--fh-home-ink, #161212)}.app-box-go{font-family:Inter,sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:color-mix(in srgb,var(--fh-home-ink, #161212) 45%,transparent);transition:color .2s ease}.app-box:hover .app-box-go{color:var(--fh-home-accent-dark, #549a3b)}@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"] }] });
|
|
35601
|
+
`, isInline: true, styles: [":host{display:block;flex:0 0 auto}.launcher{width:100%;box-sizing:border-box;padding:12px 48px 18px}.launcher.with-grid{background-image:linear-gradient(rgba(22,18,18,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(22,18,18,.028) 1px,transparent 1px);background-size:56px 56px;background-position:-1px -1px}.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-fav{flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;padding:0;margin:-2px -4px 0 4px;border:none;border-radius:50%;background:transparent;cursor:pointer;color:color-mix(in srgb,var(--fh-home-ink, #161212) 32%,transparent);transition:color .18s ease,background .18s ease,transform .12s ease}.cat-fav i{font-size:19px;line-height:1;font-variation-settings:\"FILL\" 0,\"wght\" 500,\"opsz\" 24}.cat-fav:hover{background:color-mix(in srgb,var(--fh-home-accent, #63b345) 12%,transparent);color:var(--fh-home-accent-dark, #549a3b)}.cat-fav:active{transform:scale(.86)}.cat-fav:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:1px}.cat-fav.is-fav{color:var(--fh-home-accent, #63b345)}.cat-fav.is-fav i{font-variation-settings:\"FILL\" 1,\"wght\" 500,\"opsz\" 24}.cat-fav.is-fav:hover{color:var(--fh-home-accent-dark, #549a3b)}.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)}.cat-boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:14px}.app-box{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:12px;padding:16px 16px 14px;border-radius:16px;cursor:pointer;text-align:left;border:1px solid rgba(22,18,18,.08);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--fh-home-accent, #63b345) 5%,#ffffff));box-shadow:0 1px 2px #1612120d;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.app-box:before{content:\"\";position:absolute;top:0;left:0;right:0;height:3px;z-index:1;background:linear-gradient(90deg,var(--fh-home-accent, #63b345),var(--fh-home-accent-dark, #549a3b));transform:scaleX(0);transform-origin:left;transition:transform .25s ease}.app-box:hover{transform:translateY(-3px);box-shadow:0 12px 26px #1612121f;border-color:color-mix(in srgb,var(--fh-home-accent, #63b345) 55%,transparent)}.app-box:hover:before{transform:scaleX(1)}.app-box:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:2px}.app-box-top{display:flex;align-items:center;justify-content:space-between}.app-box-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--fh-home-accent, #63b345) 14%,#ffffff);color:var(--fh-home-accent-dark, #549a3b);transition:background .2s ease,color .2s ease}.app-box-icon i{font-size:23px;line-height:1}.app-box-icon img{width:26px;height:26px;object-fit:contain}.app-box:hover .app-box-icon{background:var(--fh-home-accent, #63b345);color:#fff}.app-box-arrow{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--fh-home-accent-dark, #549a3b);background:transparent;transform:translate(-4px);opacity:0;transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease}.app-box-arrow i{font-size:18px}.app-box:hover .app-box-arrow{opacity:1;transform:translate(0);background:color-mix(in srgb,var(--fh-home-accent, #63b345) 16%,#ffffff)}.app-box-title{font-family:Plus Jakarta Sans,Inter,sans-serif;font-size:15px;font-weight:700;line-height:1.28;color:var(--fh-home-ink, #161212)}.app-box-go{font-family:Inter,sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:color-mix(in srgb,var(--fh-home-ink, #161212) 45%,transparent);transition:color .2s ease}.app-box:hover .app-box-go{color:var(--fh-home-accent-dark, #549a3b)}@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"] }] });
|
|
35448
35602
|
}
|
|
35449
35603
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: FHHomeLauncherComponent, decorators: [{
|
|
35450
35604
|
type: Component,
|
|
@@ -35460,6 +35614,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
35460
35614
|
<header class="cat-head">
|
|
35461
35615
|
<span class="cat-index" *ngIf="showIndex">{{ (i + 1).toString().padStart(2, "0") }}</span>
|
|
35462
35616
|
<h2 class="cat-title">{{ cat.title }}</h2>
|
|
35617
|
+
<button
|
|
35618
|
+
*ngIf="enableFavorites"
|
|
35619
|
+
type="button"
|
|
35620
|
+
class="cat-fav"
|
|
35621
|
+
[class.is-fav]="cat.isBox"
|
|
35622
|
+
(click)="toggleFavorite(cat, $event)"
|
|
35623
|
+
[attr.title]="cat.isBox ? unfavoriteTooltip : favoriteTooltip"
|
|
35624
|
+
[attr.aria-label]="(cat.isBox ? unfavoriteTooltip : favoriteTooltip) + ': ' + cat.title"
|
|
35625
|
+
[attr.aria-pressed]="cat.isBox"
|
|
35626
|
+
>
|
|
35627
|
+
<i class="material-symbols-outlined">{{ cat.isBox ? "favorite" : "favorite_border" }}</i>
|
|
35628
|
+
</button>
|
|
35463
35629
|
</header>
|
|
35464
35630
|
<!-- Categoria "a box" (card): aspetto evidenziato -->
|
|
35465
35631
|
<div class="cat-boxes" *ngIf="cat.isBox; else textList">
|
|
@@ -35498,7 +35664,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
35498
35664
|
</section>
|
|
35499
35665
|
</div>
|
|
35500
35666
|
</div>
|
|
35501
|
-
`, styles: [":host{display:block;flex:0 0 auto}.launcher{width:100%;box-sizing:border-box;padding:12px 48px 18px}.launcher.with-grid{background-image:linear-gradient(rgba(22,18,18,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(22,18,18,.028) 1px,transparent 1px);background-size:56px 56px;background-position:-1px -1px}.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)}.cat-boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:14px}.app-box{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:12px;padding:16px 16px 14px;border-radius:16px;cursor:pointer;text-align:left;border:1px solid rgba(22,18,18,.08);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--fh-home-accent, #63b345) 5%,#ffffff));box-shadow:0 1px 2px #1612120d;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.app-box:before{content:\"\";position:absolute;top:0;left:0;right:0;height:3px;z-index:1;background:linear-gradient(90deg,var(--fh-home-accent, #63b345),var(--fh-home-accent-dark, #549a3b));transform:scaleX(0);transform-origin:left;transition:transform .25s ease}.app-box:hover{transform:translateY(-3px);box-shadow:0 12px 26px #1612121f;border-color:color-mix(in srgb,var(--fh-home-accent, #63b345) 55%,transparent)}.app-box:hover:before{transform:scaleX(1)}.app-box:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:2px}.app-box-top{display:flex;align-items:center;justify-content:space-between}.app-box-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--fh-home-accent, #63b345) 14%,#ffffff);color:var(--fh-home-accent-dark, #549a3b);transition:background .2s ease,color .2s ease}.app-box-icon i{font-size:23px;line-height:1}.app-box-icon img{width:26px;height:26px;object-fit:contain}.app-box:hover .app-box-icon{background:var(--fh-home-accent, #63b345);color:#fff}.app-box-arrow{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--fh-home-accent-dark, #549a3b);background:transparent;transform:translate(-4px);opacity:0;transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease}.app-box-arrow i{font-size:18px}.app-box:hover .app-box-arrow{opacity:1;transform:translate(0);background:color-mix(in srgb,var(--fh-home-accent, #63b345) 16%,#ffffff)}.app-box-title{font-family:Plus Jakarta Sans,Inter,sans-serif;font-size:15px;font-weight:700;line-height:1.28;color:var(--fh-home-ink, #161212)}.app-box-go{font-family:Inter,sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:color-mix(in srgb,var(--fh-home-ink, #161212) 45%,transparent);transition:color .2s ease}.app-box:hover .app-box-go{color:var(--fh-home-accent-dark, #549a3b)}@media (max-width: 768px){.launcher{padding:10px 20px 24px}.launcher-cols{column-width:auto!important;columns:1}}\n"] }]
|
|
35667
|
+
`, styles: [":host{display:block;flex:0 0 auto}.launcher{width:100%;box-sizing:border-box;padding:12px 48px 18px}.launcher.with-grid{background-image:linear-gradient(rgba(22,18,18,.028) 1px,transparent 1px),linear-gradient(90deg,rgba(22,18,18,.028) 1px,transparent 1px);background-size:56px 56px;background-position:-1px -1px}.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-fav{flex:0 0 auto;display:grid;place-items:center;width:28px;height:28px;padding:0;margin:-2px -4px 0 4px;border:none;border-radius:50%;background:transparent;cursor:pointer;color:color-mix(in srgb,var(--fh-home-ink, #161212) 32%,transparent);transition:color .18s ease,background .18s ease,transform .12s ease}.cat-fav i{font-size:19px;line-height:1;font-variation-settings:\"FILL\" 0,\"wght\" 500,\"opsz\" 24}.cat-fav:hover{background:color-mix(in srgb,var(--fh-home-accent, #63b345) 12%,transparent);color:var(--fh-home-accent-dark, #549a3b)}.cat-fav:active{transform:scale(.86)}.cat-fav:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:1px}.cat-fav.is-fav{color:var(--fh-home-accent, #63b345)}.cat-fav.is-fav i{font-variation-settings:\"FILL\" 1,\"wght\" 500,\"opsz\" 24}.cat-fav.is-fav:hover{color:var(--fh-home-accent-dark, #549a3b)}.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)}.cat-boxes{display:grid;grid-template-columns:repeat(auto-fill,minmax(186px,1fr));gap:14px}.app-box{position:relative;isolation:isolate;display:flex;flex-direction:column;gap:12px;padding:16px 16px 14px;border-radius:16px;cursor:pointer;text-align:left;border:1px solid rgba(22,18,18,.08);background:linear-gradient(180deg,#fff,color-mix(in srgb,var(--fh-home-accent, #63b345) 5%,#ffffff));box-shadow:0 1px 2px #1612120d;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease;overflow:hidden}.app-box:before{content:\"\";position:absolute;top:0;left:0;right:0;height:3px;z-index:1;background:linear-gradient(90deg,var(--fh-home-accent, #63b345),var(--fh-home-accent-dark, #549a3b));transform:scaleX(0);transform-origin:left;transition:transform .25s ease}.app-box:hover{transform:translateY(-3px);box-shadow:0 12px 26px #1612121f;border-color:color-mix(in srgb,var(--fh-home-accent, #63b345) 55%,transparent)}.app-box:hover:before{transform:scaleX(1)}.app-box:focus-visible{outline:2px solid var(--fh-home-accent, #63b345);outline-offset:2px}.app-box-top{display:flex;align-items:center;justify-content:space-between}.app-box-icon{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:color-mix(in srgb,var(--fh-home-accent, #63b345) 14%,#ffffff);color:var(--fh-home-accent-dark, #549a3b);transition:background .2s ease,color .2s ease}.app-box-icon i{font-size:23px;line-height:1}.app-box-icon img{width:26px;height:26px;object-fit:contain}.app-box:hover .app-box-icon{background:var(--fh-home-accent, #63b345);color:#fff}.app-box-arrow{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;color:var(--fh-home-accent-dark, #549a3b);background:transparent;transform:translate(-4px);opacity:0;transition:opacity .2s ease,transform .2s ease,background .2s ease,color .2s ease}.app-box-arrow i{font-size:18px}.app-box:hover .app-box-arrow{opacity:1;transform:translate(0);background:color-mix(in srgb,var(--fh-home-accent, #63b345) 16%,#ffffff)}.app-box-title{font-family:Plus Jakarta Sans,Inter,sans-serif;font-size:15px;font-weight:700;line-height:1.28;color:var(--fh-home-ink, #161212)}.app-box-go{font-family:Inter,sans-serif;font-size:11.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:color-mix(in srgb,var(--fh-home-ink, #161212) 45%,transparent);transition:color .2s ease}.app-box:hover .app-box-go{color:var(--fh-home-accent-dark, #549a3b)}@media (max-width: 768px){.launcher{padding:10px 20px 24px}.launcher-cols{column-width:auto!important;columns:1}}\n"] }]
|
|
35502
35668
|
}], ctorParameters: () => [{ type: AppService }, { type: AuthenticationService }, { type: QueryService }, { type: UtilityService }, { type: i3$2.Router }], propDecorators: { accent: [{
|
|
35503
35669
|
type: Input
|
|
35504
35670
|
}], accentDark: [{
|
|
@@ -35526,6 +35692,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImpo
|
|
|
35526
35692
|
type: Input
|
|
35527
35693
|
}], boxActionLabel: [{
|
|
35528
35694
|
type: Input
|
|
35695
|
+
}], enableFavorites: [{
|
|
35696
|
+
type: Input
|
|
35697
|
+
}], sqlCatPrefsGet: [{
|
|
35698
|
+
type: Input
|
|
35699
|
+
}], sqlCatPrefsSave: [{
|
|
35700
|
+
type: Input
|
|
35701
|
+
}], favoriteTooltip: [{
|
|
35702
|
+
type: Input
|
|
35703
|
+
}], unfavoriteTooltip: [{
|
|
35704
|
+
type: Input
|
|
35529
35705
|
}], background: [{
|
|
35530
35706
|
type: Input
|
|
35531
35707
|
}], showGridBackground: [{
|