@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
|
@@ -5,6 +5,8 @@ export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any;
|
|
|
5
5
|
export declare class FHColorPickerComponent implements AfterViewInit, ControlValueAccessor {
|
|
6
6
|
hidden: boolean;
|
|
7
7
|
enabled: boolean;
|
|
8
|
+
/** Larghezza della dialog del color picker (ngx-color-picker cpWidth). */
|
|
9
|
+
cpWidth: string;
|
|
8
10
|
change: EventEmitter<string>;
|
|
9
11
|
_color: string;
|
|
10
12
|
presetColors: string[];
|
|
@@ -25,5 +27,5 @@ export declare class FHColorPickerComponent implements AfterViewInit, ControlVal
|
|
|
25
27
|
*/
|
|
26
28
|
toHexString(): string;
|
|
27
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHColorPickerComponent, never>;
|
|
28
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHColorPickerComponent, "FHColorPicker", never, { "hidden": { "alias": "hidden"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "change": "change"; "colorChange": "colorChange"; }, never, never, true, never>;
|
|
30
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHColorPickerComponent, "FHColorPicker", never, { "hidden": { "alias": "hidden"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "cpWidth": { "alias": "cpWidth"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, { "change": "change"; "colorChange": "colorChange"; }, never, never, true, never>;
|
|
29
31
|
}
|
|
@@ -64,6 +64,22 @@ export declare class FHHomeLauncherComponent implements AfterViewInit {
|
|
|
64
64
|
boxIcon: string;
|
|
65
65
|
/** Etichetta dell'azione nel box (sotto al titolo). */
|
|
66
66
|
boxActionLabel: string;
|
|
67
|
+
/**
|
|
68
|
+
* Abilita la gestione dei preferiti: ogni categoria mostra un cuore; le
|
|
69
|
+
* categorie preferite sono renderizzate "a box". Le preferenze sono persistite
|
|
70
|
+
* per utente (tabella wkf_user_category_prefs, JSON di id_category).
|
|
71
|
+
* Quando true, l'aspetto a box è guidato dai preferiti dell'utente; se l'utente
|
|
72
|
+
* non ha mai personalizzato, si usa [boxCategoryIds] come default.
|
|
73
|
+
*/
|
|
74
|
+
enableFavorites: boolean;
|
|
75
|
+
/** Query (query.ini) che legge le preferenze: SELECT fav_categories WHERE username=@VAL1. */
|
|
76
|
+
sqlCatPrefsGet: string;
|
|
77
|
+
/** Query (query.ini) di upsert: @VAL1=username, @VAL2=JSON array di id_category. */
|
|
78
|
+
sqlCatPrefsSave: string;
|
|
79
|
+
/** Tooltip del cuore quando la categoria NON è preferita. */
|
|
80
|
+
favoriteTooltip: string;
|
|
81
|
+
/** Tooltip del cuore quando la categoria È preferita. */
|
|
82
|
+
unfavoriteTooltip: string;
|
|
67
83
|
/**
|
|
68
84
|
* Colore di sfondo della superficie del launcher.
|
|
69
85
|
* "" (default) = trasparente: il launcher eredita lo sfondo della pagina.
|
|
@@ -84,14 +100,28 @@ export declare class FHHomeLauncherComponent implements AfterViewInit {
|
|
|
84
100
|
appOpen: EventEmitter<FHLauncherApp>;
|
|
85
101
|
categories: FHLauncherCategory[];
|
|
86
102
|
is_loaded: boolean;
|
|
103
|
+
/** Set degli id_category preferiti (effettivi: salvati dall'utente o default). */
|
|
104
|
+
private favoriteIds;
|
|
105
|
+
/** True se l'utente ha già personalizzato le preferenze (riga presente in DB). */
|
|
106
|
+
private hasUserPref;
|
|
87
107
|
constructor(appService: AppService, _service: AuthenticationService, _dataService: QueryService, _utility: UtilityService, router: Router);
|
|
88
108
|
ngAfterViewInit(): void;
|
|
89
109
|
private bootstrap;
|
|
90
110
|
private load_user_then_menu;
|
|
111
|
+
private load_prefs_then_menu;
|
|
112
|
+
/** Normalizza il valore fav_categories (JSON string o array già parsato) in un Set di numeri. */
|
|
113
|
+
private parseFavorites;
|
|
91
114
|
private build_menu;
|
|
92
|
-
/**
|
|
115
|
+
/**
|
|
116
|
+
* True se la categoria va renderizzata "a box". Con i preferiti abilitati
|
|
117
|
+
* dipende dai preferiti dell'utente (favoriteIds); altrimenti da [boxCategoryIds].
|
|
118
|
+
*/
|
|
93
119
|
private isBoxCat;
|
|
120
|
+
/** Toggle preferito su una categoria: aggiorna l'aspetto e persiste subito. */
|
|
121
|
+
toggleFavorite(cat: FHLauncherCategory, ev: Event): void;
|
|
122
|
+
/** Persiste le preferenze correnti (upsert username + JSON array di id_category). */
|
|
123
|
+
private save_prefs;
|
|
94
124
|
open_app(app: FHLauncherApp): void;
|
|
95
125
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHHomeLauncherComponent, never>;
|
|
96
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHHomeLauncherComponent, "FHHomeLauncher", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "ink": { "alias": "ink"; "required": false; }; "showIndex": { "alias": "showIndex"; "required": false; }; "columnWidth": { "alias": "columnWidth"; "required": false; }; "columnGap": { "alias": "columnGap"; "required": false; }; "boxCategoryIds": { "alias": "boxCategoryIds"; "required": false; }; "boxIcon": { "alias": "boxIcon"; "required": false; }; "boxActionLabel": { "alias": "boxActionLabel"; "required": false; }; "background": { "alias": "background"; "required": false; }; "showGridBackground": { "alias": "showGridBackground"; "required": false; }; "sqlUserAccess": { "alias": "sqlUserAccess"; "required": false; }; "sqlAllApps": { "alias": "sqlAllApps"; "required": false; }; "sqlApps": { "alias": "sqlApps"; "required": false; }; "sqlAccessLog": { "alias": "sqlAccessLog"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; }, { "appOpen": "appOpen"; }, never, never, true, never>;
|
|
126
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHHomeLauncherComponent, "FHHomeLauncher", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "ink": { "alias": "ink"; "required": false; }; "showIndex": { "alias": "showIndex"; "required": false; }; "columnWidth": { "alias": "columnWidth"; "required": false; }; "columnGap": { "alias": "columnGap"; "required": false; }; "boxCategoryIds": { "alias": "boxCategoryIds"; "required": false; }; "boxIcon": { "alias": "boxIcon"; "required": false; }; "boxActionLabel": { "alias": "boxActionLabel"; "required": false; }; "enableFavorites": { "alias": "enableFavorites"; "required": false; }; "sqlCatPrefsGet": { "alias": "sqlCatPrefsGet"; "required": false; }; "sqlCatPrefsSave": { "alias": "sqlCatPrefsSave"; "required": false; }; "favoriteTooltip": { "alias": "favoriteTooltip"; "required": false; }; "unfavoriteTooltip": { "alias": "unfavoriteTooltip"; "required": false; }; "background": { "alias": "background"; "required": false; }; "showGridBackground": { "alias": "showGridBackground"; "required": false; }; "sqlUserAccess": { "alias": "sqlUserAccess"; "required": false; }; "sqlAllApps": { "alias": "sqlAllApps"; "required": false; }; "sqlApps": { "alias": "sqlApps"; "required": false; }; "sqlAccessLog": { "alias": "sqlAccessLog"; "required": false; }; "appVersion": { "alias": "appVersion"; "required": false; }; }, { "appOpen": "appOpen"; }, never, never, true, never>;
|
|
97
127
|
}
|
|
@@ -149,6 +149,25 @@ export declare abstract class FHWorkflowForm {
|
|
|
149
149
|
insert_doc(): void;
|
|
150
150
|
ok_livw2(r: Array<any>): void;
|
|
151
151
|
b_edit: boolean;
|
|
152
|
+
/**
|
|
153
|
+
* Modalità di caricamento (edit vs nuovo documento), congelata all'init.
|
|
154
|
+
* Serve a NON far dipendere il routing del load (ok_livelli_doc) dal valore di
|
|
155
|
+
* `b_edit`, che i componenti possono sovrascrivere nei loro update_status: il
|
|
156
|
+
* routing deve restare deterministico a prescindere da cosa fa il componente.
|
|
157
|
+
*/
|
|
158
|
+
private _edit_load_mode;
|
|
159
|
+
/**
|
|
160
|
+
* L'utente corrente è tra gli `autori` (= ha in carico) del documento.
|
|
161
|
+
* Logica di autorizzazione CENTRALIZZATA nella lib: i componenti non devono
|
|
162
|
+
* leggere `m_obj.autori`/`lettori` per conto loro.
|
|
163
|
+
*/
|
|
164
|
+
protected isCurrentUserAuthor(): boolean;
|
|
165
|
+
/**
|
|
166
|
+
* Editabilità "ufficiale" del documento decisa dalla lib: in carico (autore) e
|
|
167
|
+
* documento non in uno stato finale (>=900). I componenti possono leggere questo
|
|
168
|
+
* getter invece di ricalcolare l'autorizzazione.
|
|
169
|
+
*/
|
|
170
|
+
get canEdit(): boolean;
|
|
152
171
|
b_valid: boolean;
|
|
153
172
|
abstract reset_form(v_t: string): void;
|
|
154
173
|
abstract alert(v_t: string, t: number): void;
|