@fluxhub/fluxhub-lib 19.0.107 → 19.0.109
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 +1239 -1085
- package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
- package/lib/controls/fh-grid-toolbar.d.ts +3 -2
- package/lib/controls/fh-grid.d.ts +2 -1
- package/lib/controls/fh-upload.d.ts +2 -1
- package/lib/controls/fh-win-upload.d.ts +1 -0
- package/lib/controls/models/fh-grid-toolbar.models.d.ts +93 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { AfterViewInit, EventEmitter } from "@angular/core";
|
|
2
|
+
import { FHToolbarCommand } from "./models/fh-grid-toolbar.models";
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class FHGridToolBarComponent implements AfterViewInit {
|
|
4
5
|
show_help: boolean;
|
|
@@ -8,8 +9,8 @@ export declare class FHGridToolBarComponent implements AfterViewInit {
|
|
|
8
9
|
b_wait: boolean;
|
|
9
10
|
type: string;
|
|
10
11
|
toolbar_wkfapp: any;
|
|
11
|
-
custom_commands:
|
|
12
|
-
custom_commands_primary:
|
|
12
|
+
custom_commands: FHToolbarCommand[];
|
|
13
|
+
custom_commands_primary: FHToolbarCommand[];
|
|
13
14
|
sRow: any;
|
|
14
15
|
command: EventEmitter<any>;
|
|
15
16
|
ngAfterViewInit(): void;
|
|
@@ -13,6 +13,7 @@ import { UtilityService } from '../services/utility.service';
|
|
|
13
13
|
import { FHComboboxComponent } from './fh-combobox';
|
|
14
14
|
import { TranslateService } from '@ngx-translate/core';
|
|
15
15
|
import { HttpClient } from '@angular/common/http';
|
|
16
|
+
import { FHToolbarCommand } from './models/fh-grid-toolbar.models';
|
|
16
17
|
import * as i0 from "@angular/core";
|
|
17
18
|
export declare class FHGridComponent implements AfterViewInit {
|
|
18
19
|
private _gridservice;
|
|
@@ -89,7 +90,7 @@ export declare class FHGridComponent implements AfterViewInit {
|
|
|
89
90
|
custom_export: boolean;
|
|
90
91
|
toolbar_type: string;
|
|
91
92
|
toolbar_wkfapp: any;
|
|
92
|
-
toolbar_custom_commands:
|
|
93
|
+
toolbar_custom_commands: FHToolbarCommand[];
|
|
93
94
|
exec_params: any[];
|
|
94
95
|
command: EventEmitter<any>;
|
|
95
96
|
check_width(): void;
|
|
@@ -34,6 +34,7 @@ export declare class FHUploadComponent {
|
|
|
34
34
|
selezionare_tipologia: string;
|
|
35
35
|
show_error: boolean;
|
|
36
36
|
download_by_api: boolean;
|
|
37
|
+
allowed_extensions: string;
|
|
37
38
|
lista_allegati: Array<any>;
|
|
38
39
|
change: EventEmitter<any>;
|
|
39
40
|
upload_ended: EventEmitter<any>;
|
|
@@ -81,5 +82,5 @@ export declare class FHUploadComponent {
|
|
|
81
82
|
show_upload: boolean;
|
|
82
83
|
ref_allegato(): void;
|
|
83
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHUploadComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHUploadComponent, "FHUpload", never, { "lascia_il_file": { "alias": "lascia_il_file"; "required": false; }; "trascina_il_file": { "alias": "trascina_il_file"; "required": false; }; "show_download_button": { "alias": "show_download_button"; "required": false; }; "show_descri": { "alias": "show_descri"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "single": { "alias": "single"; "required": false; }; "descri_obb": { "alias": "descri_obb"; "required": false; }; "programma_da_eseguire": { "alias": "programma_da_eseguire"; "required": false; }; "label_attendere": { "alias": "label_attendere"; "required": false; }; "sovrascrivi_path": { "alias": "sovrascrivi_path"; "required": false; }; "fixed_label": { "alias": "fixed_label"; "required": false; }; "limit_string": { "alias": "limit_string"; "required": false; }; "allegato_inserito": { "alias": "allegato_inserito"; "required": false; }; "inserire_descrizione": { "alias": "inserire_descrizione"; "required": false; }; "selezionare_tipologia": { "alias": "selezionare_tipologia"; "required": false; }; "show_error": { "alias": "show_error"; "required": false; }; "download_by_api": { "alias": "download_by_api"; "required": false; }; "lista_allegati": { "alias": "lista_allegati"; "required": false; }; }, { "change": "change"; "upload_ended": "upload_ended"; "call_upload": "call_upload"; "fill_end": "fill_end"; "init_end": "init_end"; }, never, never, true, never>;
|
|
85
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHUploadComponent, "FHUpload", never, { "lascia_il_file": { "alias": "lascia_il_file"; "required": false; }; "trascina_il_file": { "alias": "trascina_il_file"; "required": false; }; "show_download_button": { "alias": "show_download_button"; "required": false; }; "show_descri": { "alias": "show_descri"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "single": { "alias": "single"; "required": false; }; "descri_obb": { "alias": "descri_obb"; "required": false; }; "programma_da_eseguire": { "alias": "programma_da_eseguire"; "required": false; }; "label_attendere": { "alias": "label_attendere"; "required": false; }; "sovrascrivi_path": { "alias": "sovrascrivi_path"; "required": false; }; "fixed_label": { "alias": "fixed_label"; "required": false; }; "limit_string": { "alias": "limit_string"; "required": false; }; "allegato_inserito": { "alias": "allegato_inserito"; "required": false; }; "inserire_descrizione": { "alias": "inserire_descrizione"; "required": false; }; "selezionare_tipologia": { "alias": "selezionare_tipologia"; "required": false; }; "show_error": { "alias": "show_error"; "required": false; }; "download_by_api": { "alias": "download_by_api"; "required": false; }; "allowed_extensions": { "alias": "allowed_extensions"; "required": false; }; "lista_allegati": { "alias": "lista_allegati"; "required": false; }; }, { "change": "change"; "upload_ended": "upload_ended"; "call_upload": "call_upload"; "fill_end": "fill_end"; "init_end": "init_end"; }, never, never, true, never>;
|
|
85
86
|
}
|
|
@@ -20,6 +20,7 @@ export declare class FHWinUploadComponent implements AfterViewInit {
|
|
|
20
20
|
title: string;
|
|
21
21
|
admin_role: string;
|
|
22
22
|
sovrascrivi_path: string;
|
|
23
|
+
allowed_extensions: string;
|
|
23
24
|
close(): void;
|
|
24
25
|
upload_ended(): void;
|
|
25
26
|
constructor(data: any, dialogRef: MatDialogRef<FHWinUploadComponent>, app_s: AppService);
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Modelli tipizzati per FHGridToolBar
|
|
3
|
+
*
|
|
4
|
+
* Questo file contiene le interfacce e gli enum per definire
|
|
5
|
+
* i custom commands della toolbar in modo type-safe
|
|
6
|
+
*/
|
|
7
|
+
import { ThemePalette } from '@angular/material/core';
|
|
8
|
+
/**
|
|
9
|
+
* Tipi di comando disponibili per la toolbar
|
|
10
|
+
*/
|
|
11
|
+
export declare enum FHToolbarCommandType {
|
|
12
|
+
/** Pulsante standard */
|
|
13
|
+
BUTTON = "button",
|
|
14
|
+
/** Checkbox */
|
|
15
|
+
CHECKBOX = "checkbox",
|
|
16
|
+
/** Spaziatore vuoto */
|
|
17
|
+
SPACER = "spacer",
|
|
18
|
+
/** Table manager per gestione valori */
|
|
19
|
+
TABLE_MANAGER = "table_manager"
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Interfaccia base per tutti i comandi della toolbar
|
|
23
|
+
*/
|
|
24
|
+
export interface FHToolbarCommandBase {
|
|
25
|
+
/** Tipo di comando */
|
|
26
|
+
type?: FHToolbarCommandType | null;
|
|
27
|
+
/** Comando da emettere quando l'elemento viene attivato */
|
|
28
|
+
command: string;
|
|
29
|
+
/** Nasconde l'elemento se true */
|
|
30
|
+
hidden?: boolean;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Configurazione per un pulsante della toolbar
|
|
34
|
+
*/
|
|
35
|
+
export interface FHToolbarButtonCommand extends FHToolbarCommandBase {
|
|
36
|
+
type?: FHToolbarCommandType.BUTTON | null;
|
|
37
|
+
/** Etichetta del pulsante (verrà tradotta) */
|
|
38
|
+
label?: string;
|
|
39
|
+
/** Icona Material da visualizzare */
|
|
40
|
+
icon?: string;
|
|
41
|
+
/** Colore del pulsante (Material palette) */
|
|
42
|
+
color?: ThemePalette;
|
|
43
|
+
/** Se true, mostra solo l'icona con tooltip invece dell'etichetta */
|
|
44
|
+
tooltipMode?: boolean;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Configurazione per una checkbox della toolbar
|
|
48
|
+
*/
|
|
49
|
+
export interface FHToolbarCheckboxCommand extends FHToolbarCommandBase {
|
|
50
|
+
type: FHToolbarCommandType.CHECKBOX;
|
|
51
|
+
/** Etichetta della checkbox (verrà tradotta) */
|
|
52
|
+
label: string;
|
|
53
|
+
/** Valore iniziale della checkbox */
|
|
54
|
+
default_value: boolean;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Configurazione per uno spaziatore vuoto
|
|
58
|
+
*/
|
|
59
|
+
export interface FHToolbarSpacerCommand extends FHToolbarCommandBase {
|
|
60
|
+
type: FHToolbarCommandType.SPACER;
|
|
61
|
+
/** Lo spaziatore non necessita di un command, ma è richiesto dall'interfaccia base */
|
|
62
|
+
command: '';
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Configurazione per un table manager
|
|
66
|
+
*/
|
|
67
|
+
export interface FHToolbarTableManagerCommand extends FHToolbarCommandBase {
|
|
68
|
+
type: FHToolbarCommandType.TABLE_MANAGER;
|
|
69
|
+
/** Nome dell'applicazione per il table manager */
|
|
70
|
+
default_value: string;
|
|
71
|
+
/** Il table manager non emette un command diretto */
|
|
72
|
+
command: '';
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Union type per tutti i tipi di comando possibili
|
|
76
|
+
*/
|
|
77
|
+
export type FHToolbarCommand = FHToolbarButtonCommand | FHToolbarCheckboxCommand | FHToolbarSpacerCommand | FHToolbarTableManagerCommand;
|
|
78
|
+
/**
|
|
79
|
+
* Helper per creare un comando button in modo type-safe
|
|
80
|
+
*/
|
|
81
|
+
export declare function createButtonCommand(config: Omit<FHToolbarButtonCommand, 'type'>): FHToolbarButtonCommand;
|
|
82
|
+
/**
|
|
83
|
+
* Helper per creare un comando checkbox in modo type-safe
|
|
84
|
+
*/
|
|
85
|
+
export declare function createCheckboxCommand(config: Omit<FHToolbarCheckboxCommand, 'type'>): FHToolbarCheckboxCommand;
|
|
86
|
+
/**
|
|
87
|
+
* Helper per creare uno spaziatore in modo type-safe
|
|
88
|
+
*/
|
|
89
|
+
export declare function createSpacerCommand(): FHToolbarSpacerCommand;
|
|
90
|
+
/**
|
|
91
|
+
* Helper per creare un comando table manager in modo type-safe
|
|
92
|
+
*/
|
|
93
|
+
export declare function createTableManagerCommand(application: string): FHToolbarTableManagerCommand;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ export { FHColorPickerComponent } from './lib/controls/fh-color-picker';
|
|
|
27
27
|
export { FHNotesPanelComponent } from './lib/controls/fh-notes-panel';
|
|
28
28
|
export { FHFilterComboboxComponent } from './lib/controls/grid_editors/fh-combobox-filter';
|
|
29
29
|
export { FHGridToolBarComponent } from './lib/controls/fh-grid-toolbar';
|
|
30
|
+
export { FHToolbarCommand, FHToolbarCommandType, FHToolbarButtonCommand, FHToolbarCheckboxCommand, FHToolbarSpacerCommand, FHToolbarTableManagerCommand, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand } from './lib/controls/models/fh-grid-toolbar.models';
|
|
30
31
|
export { FHWinErrorComponent } from './lib/controls/fh-win-error';
|
|
31
32
|
export { FHWinInfoComponent } from './lib/controls/fh-win-info';
|
|
32
33
|
export { FHDateRangePickerComponent } from './lib/controls/fh-daterange-picker';
|