@fluxhub/fluxhub-lib 22.0.0 → 22.0.2
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/package.json
CHANGED
|
@@ -282,6 +282,7 @@ declare class FHComboboxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
282
282
|
private _dataService;
|
|
283
283
|
private _dataService_odbc;
|
|
284
284
|
private _tsr;
|
|
285
|
+
private _dialog;
|
|
285
286
|
error: string;
|
|
286
287
|
init_fill: boolean;
|
|
287
288
|
sql: string;
|
|
@@ -297,6 +298,23 @@ declare class FHComboboxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
297
298
|
sel_label: string;
|
|
298
299
|
tooltip: string;
|
|
299
300
|
option_values: string;
|
|
301
|
+
/**
|
|
302
|
+
* Modo "lista grande": invece del pannello della `mat-select`, il campo apre una
|
|
303
|
+
* **dialog con la ricerca**. Serve quando le voci sono molte o le descrizioni sono
|
|
304
|
+
* frasi lunghe (es. i tipi di contratto): nel pannello vanno a capo una sull'altra e
|
|
305
|
+
* scorrerle a mano e' l'unica strada.
|
|
306
|
+
*
|
|
307
|
+
* `null` (default) = **automatico**: si accende da solo se al primo caricamento le
|
|
308
|
+
* voci superano `big_list_threshold`. `true`/`false` forzano il modo, ignorando il
|
|
309
|
+
* conteggio.
|
|
310
|
+
*/
|
|
311
|
+
bigList: boolean | null;
|
|
312
|
+
/** oltre quante voci il modo automatico passa alla dialog di ricerca */
|
|
313
|
+
big_list_threshold: number;
|
|
314
|
+
/** quanto e' larga la dialog di ricerca */
|
|
315
|
+
big_list_width: string;
|
|
316
|
+
/** true quando il campo lavora in modo "lista grande" (forzato o deciso dal conteggio) */
|
|
317
|
+
use_big_list: boolean;
|
|
300
318
|
smtr?: ElementRef;
|
|
301
319
|
fillend: EventEmitter<any>;
|
|
302
320
|
selchange: EventEmitter<any>;
|
|
@@ -308,7 +326,18 @@ declare class FHComboboxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
308
326
|
db_type: string;
|
|
309
327
|
dis_value: string | null;
|
|
310
328
|
is_loaded: boolean;
|
|
311
|
-
|
|
329
|
+
/** cosa si legge nel campo in modo lista grande (campo, non getter: sta nel template) */
|
|
330
|
+
big_list_text: string;
|
|
331
|
+
constructor(_dataService: QueryService, _dataService_odbc: OdbcService, _tsr: TranslateService, _dialog: MatDialog);
|
|
332
|
+
/**
|
|
333
|
+
* Decide se lavorare col pannello della `mat-select` o con la dialog di ricerca.
|
|
334
|
+
* `bigList` a `null` (default) = automatico sul numero di voci: si valuta ad ogni
|
|
335
|
+
* caricamento, cosi' una lista che cresce passa da sola alla dialog.
|
|
336
|
+
*/
|
|
337
|
+
private update_big_list_mode;
|
|
338
|
+
private update_big_list_text;
|
|
339
|
+
/** apre la dialog di ricerca; la scelta la chiude, come il click su una voce del pannello */
|
|
340
|
+
open_big_list(): void;
|
|
312
341
|
setValue(desc_val: string): void;
|
|
313
342
|
private update_dis;
|
|
314
343
|
resetValue(): void;
|
|
@@ -337,7 +366,7 @@ declare class FHComboboxComponent implements AfterViewInit, ControlValueAccessor
|
|
|
337
366
|
registerOnChange(fn: (_: any) => void): void;
|
|
338
367
|
registerOnTouched(fn: () => void): void;
|
|
339
368
|
static ɵfac: i0.ɵɵFactoryDeclaration<FHComboboxComponent, never>;
|
|
340
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FHComboboxComponent, "FHComboBox", never, { "error": { "alias": "error"; "required": false; }; "init_fill": { "alias": "init_fill"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "types": { "alias": "types"; "required": false; }; "values": { "alias": "values"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "disableTranslation": { "alias": "disableTranslation"; "required": false; }; "label": { "alias": "label"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "load_delay": { "alias": "load_delay"; "required": false; }; "show_empty": { "alias": "show_empty"; "required": false; }; "sel_label": { "alias": "sel_label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "option_values": { "alias": "option_values"; "required": false; }; "valDef": { "alias": "valDef"; "required": false; }; "db_type": { "alias": "db_type"; "required": false; }; }, { "fillend": "fillend"; "selchange": "selchange"; "initend": "initend"; }, never, never, true, never>;
|
|
369
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHComboboxComponent, "FHComboBox", never, { "error": { "alias": "error"; "required": false; }; "init_fill": { "alias": "init_fill"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "types": { "alias": "types"; "required": false; }; "values": { "alias": "values"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "disableTranslation": { "alias": "disableTranslation"; "required": false; }; "label": { "alias": "label"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "load_delay": { "alias": "load_delay"; "required": false; }; "show_empty": { "alias": "show_empty"; "required": false; }; "sel_label": { "alias": "sel_label"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "option_values": { "alias": "option_values"; "required": false; }; "bigList": { "alias": "bigList"; "required": false; }; "big_list_threshold": { "alias": "big_list_threshold"; "required": false; }; "big_list_width": { "alias": "big_list_width"; "required": false; }; "valDef": { "alias": "valDef"; "required": false; }; "db_type": { "alias": "db_type"; "required": false; }; }, { "fillend": "fillend"; "selchange": "selchange"; "initend": "initend"; }, never, never, true, never>;
|
|
341
370
|
}
|
|
342
371
|
|
|
343
372
|
declare class FHRoleManagerComponent implements AfterViewInit {
|
|
@@ -3050,6 +3079,82 @@ declare class FHWinListComponent implements AfterViewInit {
|
|
|
3050
3079
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinListComponent, "FHWinListComponent", never, {}, {}, never, never, true, never>;
|
|
3051
3080
|
}
|
|
3052
3081
|
|
|
3082
|
+
/** una voce della lista: `valore` e' cio' che si salva, `descrizione_valore` cio' che si legge */
|
|
3083
|
+
interface FHSearchListItem {
|
|
3084
|
+
valore: string;
|
|
3085
|
+
descrizione_valore: string;
|
|
3086
|
+
}
|
|
3087
|
+
/** dati attesi in `MAT_DIALOG_DATA` */
|
|
3088
|
+
interface FHSearchListData {
|
|
3089
|
+
/** titolo della dialog (di norma la label del campo) */
|
|
3090
|
+
title?: string;
|
|
3091
|
+
/** le voci gia' pronte: la dialog non fa query */
|
|
3092
|
+
items: FHSearchListItem[];
|
|
3093
|
+
/** valore attualmente selezionato, per evidenziarlo all'apertura */
|
|
3094
|
+
selected?: string | null;
|
|
3095
|
+
/** con true la lista offre anche la voce "(nessuno)" */
|
|
3096
|
+
allowEmpty?: boolean;
|
|
3097
|
+
/** etichetta della voce vuota */
|
|
3098
|
+
emptyLabel?: string;
|
|
3099
|
+
/** placeholder della casella di ricerca */
|
|
3100
|
+
searchLabel?: string;
|
|
3101
|
+
}
|
|
3102
|
+
/** un pezzo di descrizione: `m` true = parte che corrisponde alla ricerca (va evidenziata) */
|
|
3103
|
+
interface FHSearchListPart {
|
|
3104
|
+
t: string;
|
|
3105
|
+
m: boolean;
|
|
3106
|
+
}
|
|
3107
|
+
/** una riga a video: la voce piu' la descrizione gia' spezzata per l'evidenziazione */
|
|
3108
|
+
interface FHSearchListRow {
|
|
3109
|
+
valore: string;
|
|
3110
|
+
parts: FHSearchListPart[];
|
|
3111
|
+
empty?: boolean;
|
|
3112
|
+
}
|
|
3113
|
+
/**
|
|
3114
|
+
* Dialog di scelta da lista **con ricerca** — il "modo grande" di `FHComboBox`.
|
|
3115
|
+
*
|
|
3116
|
+
* Serve quando le voci sono tante o le descrizioni sono lunghe: nel pannello di una
|
|
3117
|
+
* `mat-select` le frasi vanno a capo una sull'altra e l'elenco diventa illeggibile,
|
|
3118
|
+
* e senza una casella di ricerca l'utente deve scorrere a mano decine di righe.
|
|
3119
|
+
*
|
|
3120
|
+
* Non fa query: riceve le voci gia' caricate da `FHComboBox` (che le prende dal suo
|
|
3121
|
+
* `sql`/`option_values` come sempre). Ritorna il `valore` scelto, `''` per la voce
|
|
3122
|
+
* vuota, `undefined` se si chiude senza scegliere.
|
|
3123
|
+
*
|
|
3124
|
+
* La ricerca ignora maiuscole e accenti e accetta piu' parole (devono esserci tutte,
|
|
3125
|
+
* in qualsiasi ordine). Da tastiera: frecce per muoversi, Invio per scegliere.
|
|
3126
|
+
*/
|
|
3127
|
+
declare class FHWinSearchListComponent implements AfterViewInit {
|
|
3128
|
+
private ref;
|
|
3129
|
+
data: FHSearchListData;
|
|
3130
|
+
filter: string;
|
|
3131
|
+
rows: FHSearchListRow[];
|
|
3132
|
+
/** quante voci vere (esclusa la voce vuota) passano il filtro */
|
|
3133
|
+
matches: number;
|
|
3134
|
+
/** riga evidenziata da tastiera/mouse: Invio sceglie questa */
|
|
3135
|
+
active: number;
|
|
3136
|
+
/** altezza della lista all'apertura: filtrando la dialog non si accorcia a scatti */
|
|
3137
|
+
listMinHeight: number | null;
|
|
3138
|
+
searchInput?: ElementRef<HTMLInputElement>;
|
|
3139
|
+
list?: ElementRef<HTMLElement>;
|
|
3140
|
+
/** un solo pulsante: la scelta chiude la dialog, come nel pannello di una combo */
|
|
3141
|
+
buttons: DialogButton[];
|
|
3142
|
+
/** descrizioni gia' "piegate" (minuscole, senza accenti), calcolate una volta */
|
|
3143
|
+
private folded;
|
|
3144
|
+
constructor(ref: MatDialogRef<FHWinSearchListComponent>, data: FHSearchListData);
|
|
3145
|
+
ngAfterViewInit(): void;
|
|
3146
|
+
isSelected(r: FHSearchListRow): boolean;
|
|
3147
|
+
applyFilter(): void;
|
|
3148
|
+
/** spezza la descrizione nei tratti che corrispondono ai termini cercati */
|
|
3149
|
+
private split;
|
|
3150
|
+
clearFilter(): void;
|
|
3151
|
+
onKey(e: KeyboardEvent): void;
|
|
3152
|
+
private scrollToActive;
|
|
3153
|
+
choose(valore: string): void;
|
|
3154
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FHWinSearchListComponent, never>;
|
|
3155
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FHWinSearchListComponent, "FHWinSearchList", never, {}, {}, never, never, true, never>;
|
|
3156
|
+
}
|
|
3157
|
+
|
|
3053
3158
|
declare class FHWinMappaComponent implements AfterViewInit {
|
|
3054
3159
|
dialogRef: MatDialogRef<FHWinMappaComponent>;
|
|
3055
3160
|
private toastr;
|
|
@@ -5272,5 +5377,5 @@ declare class FHAiAssistantComponent implements OnInit {
|
|
|
5272
5377
|
static ɵcmp: i0.ɵɵComponentDeclaration<FHAiAssistantComponent, "FHAiAssistant", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "openLabel": { "alias": "openLabel"; "required": false; }; "showLabel": { "alias": "showLabel"; "required": false; }; "dock": { "alias": "dock"; "required": false; }; "startOpen": { "alias": "startOpen"; "required": false; }; "title": { "alias": "title"; "required": false; }; "subtitle": { "alias": "subtitle"; "required": false; }; "tagLabel": { "alias": "tagLabel"; "required": false; }; "welcomeTitle": { "alias": "welcomeTitle"; "required": false; }; "welcomeSubtitle": { "alias": "welcomeSubtitle"; "required": false; }; "suggestions": { "alias": "suggestions"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "endpoint": { "alias": "endpoint"; "required": false; }; "path": { "alias": "path"; "required": false; }; "model": { "alias": "model"; "required": false; }; "stream": { "alias": "stream"; "required": false; }; "apiKey": { "alias": "apiKey"; "required": false; }; "forwardAuth": { "alias": "forwardAuth"; "required": false; }; "context": { "alias": "context"; "required": false; }; "systemPrompt": { "alias": "systemPrompt"; "required": false; }; }, {}, never, never, true, never>;
|
|
5273
5378
|
}
|
|
5274
5379
|
|
|
5275
|
-
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate, wkfField };
|
|
5276
|
-
export type { DialogBeforeCloseEvent, DialogButton, FHAiChunk, FHAiContext, FHAiMessage, FHAiRequestOptions, FHAiRole, FHAiSource, FHGridColumn, FHLauncherApp, FHLauncherCategory, FHTaskExternalHint, FHToolbarButtonCommand, FHToolbarCheckboxCommand, FHToolbarCommand, FHToolbarSpacerCommand, FHToolbarTableManagerCommand, FiltroMailArchiviata, WkfCompleteTaskOptions, WkfFieldType, WkfFieldValue, WkfProceedOptions, WkfProceedReason, WkfProceedResult, WkfTaskResult };
|
|
5380
|
+
export { AppMakerService, AppService, ApprovaGridComponent, AuthHttpRequestInterceptor, AuthenticationService, BpmnEditorComponent, CheckboxEditorComponent, ComboBoxEditorComponent, CurrencyComponent, DialogBaseComponent, FHAiAssistantComponent, FHAiChatComponent, FHAiService, FHAutoCompleteComponent, FHCheckBoxComponent, FHColorPickerComponent, FHComboboxComponent, FHConfirmValues, FHCurrencyFormatterDirective, FHCurrencyPipe, FHDatePickerComponent, FHDateRangePickerComponent, FHFieldPickListComponent, FHFilterComboboxComponent, FHFormBuilderComponent, FHFormExecuterComponent, FHFormToolBarComponent, FHGridComponent, FHGridJSONComponent, FHGridToolBarComponent, FHGuard, FHHelpButtonComponent, FHHomeDocsComponent, FHHomeLauncherComponent, FHHomeStatsComponent, FHHomeTodoComponent, FHIconPickerComponent, FHImageViewerComponent, FHListComponent, FHLogPanelComponent, FHMailArchivedComponent, FHMailPreviewComponent, FHMultiComboboxComponent, FHNotesPanelComponent, FHNumericFieldComponent, FHPickFieldComponent, FHPickUsersComponent, FHRichTextComponent, FHRoleManagerComponent, FHTableManagerComponent, FHTextAreaComponent, FHTextInputComponent, FHTimePickerComponent, FHToolBarCustomAction, FHToolbarCommandType, FHUploadComponent, FHUploadPanelComponent, FHUploadPanelS3Component, FHUploadS3Component, FHUserFieldComponent, FHWinAppLogsComponent, FHWinAskBigTextComponent, FHWinAskButtonsComponent, FHWinAskNumberComponent, FHWinAskRichTextComponent, FHWinAskTextComponent, FHWinAutoComplete, FHWinComboComponent, FHWinConfirmComponent, FHWinErrorComponent, FHWinGridSelection, FHWinInfoComponent, FHWinListComponent, FHWinMappaComponent, FHWinOutputComponent, FHWinPicklistComponent, FHWinSalvaAnnulla, FHWinSearchListComponent, FHWinSelectByGridComponent, FHWinShowEmail, FHWinShowEmailS3, FHWinShowImage, FHWinShowLog, FHWinShowLogDett, FHWinTimeSlider, FHWinUploadComponent, FHWinUserInfo, FHWinUserPickerComponent, FHWinWaitComponent, FHWorkflowForm, FHWorkflowHeaderBar, FHWorkflowTasksPanel, FHWorkflowView, FSInput, FSResult, FileService, GridService, LocalDBService, MonthYearPickerComponent, NumericEditorComponent, OdbcService, OfficeAutomatorService, OfficeOperation, OfficeResult, QGParam, QGResult, QParam, QResult, QueryOpenService, QueryService, RegistrationService, ReplaceLineBreaks, SafePipe, TextAreaEditorComponent, UtilityService, WkfService, YearPickerComponent, createButtonCommand, createCheckboxCommand, createSpacerCommand, createTableManagerCommand, fh_win_translate, wkfField };
|
|
5381
|
+
export type { DialogBeforeCloseEvent, DialogButton, FHAiChunk, FHAiContext, FHAiMessage, FHAiRequestOptions, FHAiRole, FHAiSource, FHGridColumn, FHLauncherApp, FHLauncherCategory, FHSearchListData, FHSearchListItem, FHTaskExternalHint, FHToolbarButtonCommand, FHToolbarCheckboxCommand, FHToolbarCommand, FHToolbarSpacerCommand, FHToolbarTableManagerCommand, FiltroMailArchiviata, WkfCompleteTaskOptions, WkfFieldType, WkfFieldValue, WkfProceedOptions, WkfProceedReason, WkfProceedResult, WkfTaskResult };
|