@fluxhub/fluxhub-lib 19.0.241 → 21.0.0

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.
Files changed (149) hide show
  1. package/fesm2022/fluxhub-fluxhub-lib.mjs +20856 -24744
  2. package/fesm2022/fluxhub-fluxhub-lib.mjs.map +1 -1
  3. package/package.json +5 -34
  4. package/types/fluxhub-fluxhub-lib.d.ts +3361 -0
  5. package/index.d.ts +0 -5
  6. package/lib/ai-components/fh-ai-assistant/fh-ai-assistant.component.d.ts +0 -48
  7. package/lib/ai-components/fh-ai-chat/fh-ai-chat.component.d.ts +0 -77
  8. package/lib/ai-components/fh-ai.service.d.ts +0 -47
  9. package/lib/ai-components/models/fh-ai.models.d.ts +0 -67
  10. package/lib/auth-guard.d.ts +0 -22
  11. package/lib/controls/app_manager/fh-role-manager.d.ts +0 -19
  12. package/lib/controls/app_manager/fh-table-values-manager.d.ts +0 -19
  13. package/lib/controls/app_manager/win-manage-roles.d.ts +0 -30
  14. package/lib/controls/app_manager/win-manage-values.d.ts +0 -31
  15. package/lib/controls/dialog-base/dialog-base.component.d.ts +0 -130
  16. package/lib/controls/fh-autocomplete.d.ts +0 -82
  17. package/lib/controls/fh-checkbox.d.ts +0 -25
  18. package/lib/controls/fh-color-picker.d.ts +0 -31
  19. package/lib/controls/fh-combobox.d.ts +0 -68
  20. package/lib/controls/fh-currency-formatter.d.ts +0 -14
  21. package/lib/controls/fh-currency-pipe.d.ts +0 -11
  22. package/lib/controls/fh-datepicker.d.ts +0 -50
  23. package/lib/controls/fh-daterange-picker.d.ts +0 -55
  24. package/lib/controls/fh-field-picklist.d.ts +0 -61
  25. package/lib/controls/fh-form-toolbar.d.ts +0 -34
  26. package/lib/controls/fh-grid-column.d.ts +0 -18
  27. package/lib/controls/fh-grid-json.d.ts +0 -145
  28. package/lib/controls/fh-grid-toolbar.d.ts +0 -34
  29. package/lib/controls/fh-grid-win-help.d.ts +0 -16
  30. package/lib/controls/fh-grid.d.ts +0 -284
  31. package/lib/controls/fh-help-button.d.ts +0 -16
  32. package/lib/controls/fh-icon-picker/fa-free-icons.d.ts +0 -16
  33. package/lib/controls/fh-icon-picker/fh-icon-picker.d.ts +0 -138
  34. package/lib/controls/fh-image-preview.d.ts +0 -82
  35. package/lib/controls/fh-list.d.ts +0 -45
  36. package/lib/controls/fh-log-panel.d.ts +0 -39
  37. package/lib/controls/fh-multi-combobox.d.ts +0 -65
  38. package/lib/controls/fh-notes-panel.d.ts +0 -38
  39. package/lib/controls/fh-numeric.d.ts +0 -54
  40. package/lib/controls/fh-pickfield.d.ts +0 -36
  41. package/lib/controls/fh-picklist.d.ts +0 -53
  42. package/lib/controls/fh-replace-linebreak.d.ts +0 -7
  43. package/lib/controls/fh-richtext.d.ts +0 -31
  44. package/lib/controls/fh-text-input.d.ts +0 -34
  45. package/lib/controls/fh-textarea.d.ts +0 -28
  46. package/lib/controls/fh-time-picker.d.ts +0 -67
  47. package/lib/controls/fh-upload-panel-s3.d.ts +0 -62
  48. package/lib/controls/fh-upload-panel.d.ts +0 -89
  49. package/lib/controls/fh-upload-s3.d.ts +0 -72
  50. package/lib/controls/fh-upload.d.ts +0 -86
  51. package/lib/controls/fh-user-field.d.ts +0 -42
  52. package/lib/controls/fh-user-picker.d.ts +0 -39
  53. package/lib/controls/fh-win-app-logs.d.ts +0 -30
  54. package/lib/controls/fh-win-ask-buttons.d.ts +0 -20
  55. package/lib/controls/fh-win-ask-richtext.d.ts +0 -28
  56. package/lib/controls/fh-win-ask-text.d.ts +0 -31
  57. package/lib/controls/fh-win-ask-textbig.d.ts +0 -28
  58. package/lib/controls/fh-win-asknumber.d.ts +0 -27
  59. package/lib/controls/fh-win-auto-complete.d.ts +0 -26
  60. package/lib/controls/fh-win-combo-select.d.ts +0 -25
  61. package/lib/controls/fh-win-confirm.d.ts +0 -32
  62. package/lib/controls/fh-win-error.d.ts +0 -15
  63. package/lib/controls/fh-win-grid-selection.d.ts +0 -40
  64. package/lib/controls/fh-win-info.d.ts +0 -15
  65. package/lib/controls/fh-win-list-pick.d.ts +0 -36
  66. package/lib/controls/fh-win-mappa.d.ts +0 -34
  67. package/lib/controls/fh-win-output.d.ts +0 -32
  68. package/lib/controls/fh-win-select-by-grid.d.ts +0 -58
  69. package/lib/controls/fh-win-show-email-s3.d.ts +0 -27
  70. package/lib/controls/fh-win-show-email.d.ts +0 -26
  71. package/lib/controls/fh-win-show-image.d.ts +0 -16
  72. package/lib/controls/fh-win-show-log-details.d.ts +0 -18
  73. package/lib/controls/fh-win-show-log-info-details.d.ts +0 -23
  74. package/lib/controls/fh-win-show-logs.d.ts +0 -34
  75. package/lib/controls/fh-win-time-slider.d.ts +0 -27
  76. package/lib/controls/fh-win-upload.d.ts +0 -35
  77. package/lib/controls/fh-win-user-info.d.ts +0 -31
  78. package/lib/controls/fh-win-user-picker.d.ts +0 -26
  79. package/lib/controls/fh-win-wait.d.ts +0 -20
  80. package/lib/controls/grid_editors/approve-buttons.d.ts +0 -16
  81. package/lib/controls/grid_editors/checkbox-editor.component.d.ts +0 -14
  82. package/lib/controls/grid_editors/currency.component.d.ts +0 -9
  83. package/lib/controls/grid_editors/fh-combobox-filter.d.ts +0 -48
  84. package/lib/controls/grid_editors/fh-grid.d.ts +0 -227
  85. package/lib/controls/grid_editors/numeric-editor.component.d.ts +0 -23
  86. package/lib/controls/grid_editors/select-editor.component.d.ts +0 -23
  87. package/lib/controls/grid_editors/textarea-editor.component.d.ts +0 -21
  88. package/lib/controls/image-viewer/image-viewer-config.model.d.ts +0 -34
  89. package/lib/controls/image-viewer/image-viewer.component.d.ts +0 -56
  90. package/lib/controls/models/fh-grid-toolbar.models.d.ts +0 -93
  91. package/lib/controls/month-year-picker/month-year-picker.component.d.ts +0 -46
  92. package/lib/controls/translate/fh-win-translate.d.ts +0 -59
  93. package/lib/controls/utils/save-pipe.d.ts +0 -10
  94. package/lib/controls/utils/simple-crypt.d.ts +0 -22
  95. package/lib/controls/year-picker/year-picker.component.d.ts +0 -45
  96. package/lib/form_builder/fh-form-builder.d.ts +0 -44
  97. package/lib/form_builder/fh-form-executer.d.ts +0 -35
  98. package/lib/form_builder/pickers/win-pick-art.d.ts +0 -31
  99. package/lib/form_builder/pickers/win_pick_cliente.d.ts +0 -32
  100. package/lib/home-components/fh-home-docs/fh-home-docs.component.d.ts +0 -52
  101. package/lib/home-components/fh-home-launcher/fh-home-launcher.component.d.ts +0 -136
  102. package/lib/home-components/fh-home-stats/fh-home-stats.component.d.ts +0 -61
  103. package/lib/home-components/fh-home-todo/fh-home-todo.component.d.ts +0 -62
  104. package/lib/mail-archiver/fh-mail-archived/fh-mail-archived.component.d.ts +0 -87
  105. package/lib/mail-archiver/fh-mail-preview/fh-mail-preview.component.d.ts +0 -52
  106. package/lib/models/FHConfirmValues.d.ts +0 -10
  107. package/lib/models/FHToolBarCustomAction.d.ts +0 -17
  108. package/lib/models/FSInput.d.ts +0 -5
  109. package/lib/models/FSResult.d.ts +0 -5
  110. package/lib/models/QGParam.d.ts +0 -10
  111. package/lib/models/QGResult.d.ts +0 -6
  112. package/lib/models/QParam.d.ts +0 -6
  113. package/lib/models/QResult.d.ts +0 -5
  114. package/lib/obj-diff.d.ts +0 -36
  115. package/lib/services/app-maker.service.d.ts +0 -20
  116. package/lib/services/app.service.d.ts +0 -95
  117. package/lib/services/auth.interceptor.d.ts +0 -22
  118. package/lib/services/dofile.service.d.ts +0 -25
  119. package/lib/services/doquery-odbc.service.d.ts +0 -18
  120. package/lib/services/doquery.service.d.ts +0 -27
  121. package/lib/services/doqueryopen.service.d.ts +0 -27
  122. package/lib/services/dowkf.service.d.ts +0 -213
  123. package/lib/services/grid.service.d.ts +0 -20
  124. package/lib/services/localstorage.service.d.ts +0 -13
  125. package/lib/services/login.service.d.ts +0 -33
  126. package/lib/services/office-automator.service.d.ts +0 -34
  127. package/lib/services/register.service.d.ts +0 -18
  128. package/lib/services/utility.service.d.ts +0 -79
  129. package/lib/wkf_engine_v2/bpmn-editor.component.d.ts +0 -67
  130. package/lib/wkf_engine_v2/win-assign-to.d.ts +0 -34
  131. package/lib/wkf_engine_v2/win-assign.d.ts +0 -32
  132. package/lib/wkf_engine_v2/win-comment-select-notif.d.ts +0 -24
  133. package/lib/wkf_engine_v2/win-comments.d.ts +0 -54
  134. package/lib/wkf_engine_v2/win-confirm.d.ts +0 -41
  135. package/lib/wkf_engine_v2/win-info-doc.d.ts +0 -33
  136. package/lib/wkf_engine_v2/win-log.d.ts +0 -79
  137. package/lib/wkf_engine_v2/win-reassign-select-level.d.ts +0 -29
  138. package/lib/wkf_engine_v2/win-reassign-select-user.d.ts +0 -28
  139. package/lib/wkf_engine_v2/win-recover.d.ts +0 -30
  140. package/lib/wkf_engine_v2/win-replace-user.d.ts +0 -28
  141. package/lib/wkf_engine_v2/win-save-cancel.d.ts +0 -27
  142. package/lib/wkf_engine_v2/win-select-channel.d.ts +0 -27
  143. package/lib/wkf_engine_v2/win-select-level.d.ts +0 -42
  144. package/lib/wkf_engine_v2/win-uploads.d.ts +0 -29
  145. package/lib/wkf_engine_v2/wkf-app.d.ts +0 -88
  146. package/lib/wkf_engine_v2/wkf-form-data.d.ts +0 -405
  147. package/lib/wkf_engine_v2/wkf-header-bar.d.ts +0 -68
  148. package/lib/wkf_engine_v2/wkf-tasks-panel.d.ts +0 -96
  149. package/public-api.d.ts +0 -120
package/index.d.ts DELETED
@@ -1,5 +0,0 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@fluxhub/fluxhub-lib" />
5
- export * from './public-api';
@@ -1,48 +0,0 @@
1
- import { OnInit } from "@angular/core";
2
- import { FHAiContext } from "../models/fh-ai.models";
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Launcher AI flottante ("drop-anywhere") di FluxHub: un FAB in basso a destra che
6
- * apre/chiude un pannello con dentro <FHAiChat>. Si inserisce in qualunque pagina
7
- * del portale per dare accesso all'assistente senza occupare layout.
8
- *
9
- * Inoltra al chat gli @Input principali (endpoint, contesto, tema, testi).
10
- *
11
- * Esempio:
12
- * <FHAiAssistant [context]="{azienda:'COEM', ruolo:'manager'}"
13
- * [accent]="'#16afc7'"
14
- * welcomeTitle="Assistente COEM"></FHAiAssistant>
15
- */
16
- export declare class FHAiAssistantComponent implements OnInit {
17
- accent: string;
18
- accentDark: string;
19
- get _a(): string;
20
- get _ad(): string;
21
- icon: string;
22
- openLabel: string;
23
- showLabel: boolean;
24
- /** 'floating' = popover ancorato al FAB; 'right' = drawer a tutta altezza. */
25
- dock: "floating" | "right";
26
- /** Apre il pannello all'avvio. */
27
- startOpen: boolean;
28
- title: string;
29
- subtitle: string;
30
- tagLabel: string;
31
- welcomeTitle: string;
32
- welcomeSubtitle: string;
33
- suggestions: string[];
34
- placeholder: string;
35
- endpoint: string;
36
- path: string;
37
- model: string;
38
- stream: boolean;
39
- apiKey: string;
40
- forwardAuth: boolean;
41
- context: FHAiContext | null;
42
- systemPrompt: string;
43
- open: boolean;
44
- ngOnInit(): void;
45
- toggle(): void;
46
- static ɵfac: i0.ɵɵFactoryDeclaration<FHAiAssistantComponent, never>;
47
- 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>;
48
- }
@@ -1,77 +0,0 @@
1
- import { ElementRef, EventEmitter, OnDestroy } from "@angular/core";
2
- import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
3
- import { FHAiService } from "../fh-ai.service";
4
- import { FHAiContext, FHAiMessage } from "../models/fh-ai.models";
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Pannello chat AI riusabile di FluxHub.
8
- *
9
- * Conversazione con un backend OpenAI-compatible (proxy Prologika -> Cheshire Cat ->
10
- * Gemma) via FHAiService. Renderizza testo markdown, citazioni RAG, ha schermata di
11
- * benvenuto con suggerimenti e supporta streaming token-by-token.
12
- *
13
- * Tutto configurabile via @Input (endpoint, contesto azienda/ruolo, testi, tema) per
14
- * riuso cross-cliente, in linea con gli altri componenti standard della libreria.
15
- *
16
- * Esempio:
17
- * <FHAiChat [context]="{azienda:'Bormioli', ruolo:'sales'}"
18
- * [accent]="'#16afc7'"
19
- * welcomeTitle="Assistente Bormioli"></FHAiChat>
20
- */
21
- export declare class FHAiChatComponent implements OnDestroy {
22
- private ai;
23
- private sanitizer;
24
- accent: string;
25
- accentDark: string;
26
- get _a(): string;
27
- get _ad(): string;
28
- showHeader: boolean;
29
- title: string;
30
- subtitle: string;
31
- tagLabel: string;
32
- welcomeTitle: string;
33
- welcomeSubtitle: string;
34
- suggestions: string[];
35
- placeholder: string;
36
- showHint: boolean;
37
- /** URL completo dell'endpoint AI. Se vuoto: AppService.API_ENDPOINT + path. */
38
- endpoint: string;
39
- /** Path relativo all'API_ENDPOINT (default route AI sul backend FluxHub). */
40
- path: string;
41
- /** Modello da richiedere (di norma deciso lato server). */
42
- model: string;
43
- /** Abilita lo streaming token-by-token (SSE). */
44
- stream: boolean;
45
- /** API key del servizio AI (di norma NON serve lato browser). */
46
- apiKey: string;
47
- /** Inoltra il JWT FluxHub come Authorization Bearer. */
48
- forwardAuth: boolean;
49
- /** Contesto di scoping {azienda, ruolo, persona} (informativo + metadata). */
50
- context: FHAiContext | null;
51
- /** Messaggio di sistema iniziale opzionale (di norma lo costruisce il backend). */
52
- systemPrompt: string;
53
- messageSent: EventEmitter<string>;
54
- responseReceived: EventEmitter<FHAiMessage>;
55
- errored: EventEmitter<string>;
56
- scroller?: ElementRef<HTMLDivElement>;
57
- messages: FHAiMessage[];
58
- userInput: string;
59
- busy: boolean;
60
- errorMsg: string;
61
- private sub?;
62
- constructor(ai: FHAiService, sanitizer: DomSanitizer);
63
- ngOnDestroy(): void;
64
- onKeyDown(ev: KeyboardEvent): void;
65
- autoGrow(ta: HTMLTextAreaElement): void;
66
- sendSuggestion(text: string): void;
67
- send(): void;
68
- stop(): void;
69
- clear(): void;
70
- private finish;
71
- private fail;
72
- private scrollSoon;
73
- /** Rende il markdown (sottoinsieme) in HTML sicuro: escape -> formattazione. */
74
- render(content: string): SafeHtml;
75
- static ɵfac: i0.ɵɵFactoryDeclaration<FHAiChatComponent, never>;
76
- static ɵcmp: i0.ɵɵComponentDeclaration<FHAiChatComponent, "FHAiChat", never, { "accent": { "alias": "accent"; "required": false; }; "accentDark": { "alias": "accentDark"; "required": false; }; "showHeader": { "alias": "showHeader"; "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; }; "showHint": { "alias": "showHint"; "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; }; }, { "messageSent": "messageSent"; "responseReceived": "responseReceived"; "errored": "errored"; }, never, never, true, never>;
77
- }
@@ -1,47 +0,0 @@
1
- import { Observable } from "rxjs";
2
- import { AppService } from "../services/app.service";
3
- import { FHAiChunk, FHAiMessage, FHAiRequestOptions, FHAiSource } from "./models/fh-ai.models";
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Client del layer AI di FluxHub.
7
- *
8
- * Parla con un backend OpenAI-compatible (/v1/chat/completions o una route FluxHub
9
- * che fa da proxy verso il Cheshire Cat / Gemma). Supporta streaming SSE e risposta
10
- * singola. L'identita' utente viene inoltrata col JWT FluxHub: scoping e retrieval
11
- * sono enforced server-side (vedi architettura, sez. 10-11).
12
- *
13
- * Usa fetch() invece di HttpClient per gestire nativamente lo streaming SSE e per
14
- * avere pieno controllo sugli header (la chiamata AI puo' usare una chiave dedicata).
15
- */
16
- export declare class FHAiService {
17
- private appService;
18
- /** Path di default (relativo ad API_ENDPOINT) della route AI sul backend FluxHub. */
19
- defaultPath: string;
20
- constructor(appService: AppService);
21
- /** Costruisce l'URL effettivo dell'endpoint. */
22
- private resolveUrl;
23
- /** Costruisce gli header (Content-Type, JWT FluxHub, API key AI, custom). */
24
- private buildHeaders;
25
- /** Corpo della richiesta (OpenAI-compatible). */
26
- private buildBody;
27
- /**
28
- * Conversazione in streaming. Emette un FHAiChunk per ogni delta di testo;
29
- * l'ultimo ha done=true ed eventuali sources.
30
- */
31
- chatStream(messages: FHAiMessage[], opts?: FHAiRequestOptions): Observable<FHAiChunk>;
32
- /**
33
- * Conversazione non-streaming: risolve con il testo completo e le sorgenti.
34
- */
35
- chatOnce(messages: FHAiMessage[], opts?: FHAiRequestOptions): Observable<{
36
- content: string;
37
- sources?: FHAiSource[];
38
- }>;
39
- /** Estrae il delta di testo da un evento SSE (OpenAI: choices[].delta.content). */
40
- private extractDelta;
41
- /** Estrae il testo completo dalla risposta non-streaming. */
42
- private extractContent;
43
- /** Estrae le sorgenti RAG (Cheshire Cat: why.memory.declarative; o sources/citations). */
44
- private extractSources;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<FHAiService, never>;
46
- static ɵprov: i0.ɵɵInjectableDeclaration<FHAiService>;
47
- }
@@ -1,67 +0,0 @@
1
- /** Ruolo di un messaggio nella conversazione (formato OpenAI-compatible). */
2
- export type FHAiRole = "user" | "assistant" | "system";
3
- /** Sorgente RAG citata dal modello (chunk recuperato da Qdrant via Cheshire Cat). */
4
- export interface FHAiSource {
5
- /** Titolo/nome documento o riferimento mostrabile. */
6
- title: string;
7
- /** Estratto del chunk (snippet). */
8
- snippet?: string;
9
- /** Punteggio di similarita' (0..1) se fornito dal backend. */
10
- score?: number;
11
- /** Eventuale URL/percorso del documento sorgente. */
12
- url?: string;
13
- }
14
- /** Singolo messaggio della conversazione. */
15
- export interface FHAiMessage {
16
- role: FHAiRole;
17
- content: string;
18
- /** True mentre il messaggio assistant e' in streaming/caricamento. */
19
- loading?: boolean;
20
- /** Sorgenti RAG associate alla risposta (citazioni). */
21
- sources?: FHAiSource[];
22
- /** Timestamp di creazione (ms). */
23
- ts?: number;
24
- }
25
- /**
26
- * Contesto di scoping {azienda, ruolo, persona}.
27
- * NB: e' informativo/di visualizzazione lato client (es. per il titolo).
28
- * L'enforcement di sicurezza avviene server-side dall'identita' autenticata.
29
- */
30
- export interface FHAiContext {
31
- azienda?: string;
32
- ruolo?: string;
33
- persona?: string;
34
- /** Id conversazione per continuita' lato backend. */
35
- conversationId?: string;
36
- }
37
- /** Opzioni della singola chiamata al backend AI. */
38
- export interface FHAiRequestOptions {
39
- /** URL completo dell'endpoint chat. Se assente: AppService.API_ENDPOINT + path. */
40
- endpoint?: string;
41
- /** Path relativo all'API_ENDPOINT quando non si passa un endpoint completo. */
42
- path?: string;
43
- /** Modello da richiedere (override; di norma deciso dal backend). */
44
- model?: string;
45
- /** Abilita lo streaming SSE (default true). */
46
- stream?: boolean;
47
- /** API key del servizio AI (header x-api-key). Di norma NON serve lato browser:
48
- * la chiave sta sul backend FluxHub che fa da proxy. */
49
- apiKey?: string;
50
- /** Header aggiuntivi. */
51
- headers?: Record<string, string>;
52
- /** Inoltra il JWT FluxHub come Authorization: Bearer (default true). */
53
- forwardAuth?: boolean;
54
- /** Contesto di scoping (inviato come metadata, non autoritativo). */
55
- context?: FHAiContext;
56
- }
57
- /** Frammento emesso durante lo streaming. */
58
- export interface FHAiChunk {
59
- /** Delta di testo (token). */
60
- delta: string;
61
- /** Testo accumulato finora. */
62
- text: string;
63
- /** True sull'ultimo frammento. */
64
- done: boolean;
65
- /** Sorgenti, se arrivate (di norma a fine risposta). */
66
- sources?: FHAiSource[];
67
- }
@@ -1,22 +0,0 @@
1
- import { HttpClient } from "@angular/common/http";
2
- import { ActivatedRouteSnapshot, Router, RouterStateSnapshot } from "@angular/router";
3
- import { ToastrService } from "ngx-toastr";
4
- import { AppService } from "./services/app.service";
5
- import { QueryService } from "./services/doquery.service";
6
- import { AuthenticationService } from "./services/login.service";
7
- import * as i0 from "@angular/core";
8
- export declare class FHGuard {
9
- private http;
10
- auth: AuthenticationService;
11
- router: Router;
12
- toast: ToastrService;
13
- querys: QueryService;
14
- private app_s;
15
- constructor(http: HttpClient, auth: AuthenticationService, router: Router, toast: ToastrService, querys: QueryService, app_s: AppService);
16
- url: string | null;
17
- routingDestination: string;
18
- arr_accessi: Array<any> | null;
19
- canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot): Promise<any>;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<FHGuard, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<FHGuard>;
22
- }
@@ -1,19 +0,0 @@
1
- import { AfterViewInit } from "@angular/core";
2
- import { MatDialog } from "@angular/material/dialog";
3
- import { AppService } from "../../services/app.service";
4
- import { QueryService } from "../../services/doquery.service";
5
- import { FHComboboxComponent } from "../fh-combobox";
6
- import * as i0 from "@angular/core";
7
- export declare class FHRoleManagerComponent implements AfterViewInit {
8
- private _dataService;
9
- private app;
10
- private _dialog;
11
- application: string;
12
- b_init: boolean;
13
- cmb_sel?: FHComboboxComponent;
14
- constructor(_dataService: QueryService, app: AppService, _dialog: MatDialog);
15
- edit_values(): void;
16
- ngAfterViewInit(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<FHRoleManagerComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<FHRoleManagerComponent, "FHRoleManagerComponent", never, { "application": { "alias": "application"; "required": false; }; }, {}, never, never, true, never>;
19
- }
@@ -1,19 +0,0 @@
1
- import { AfterViewInit } from "@angular/core";
2
- import { MatDialog } from "@angular/material/dialog";
3
- import { AppService } from "../../services/app.service";
4
- import { QueryService } from "../../services/doquery.service";
5
- import { FHComboboxComponent } from "../fh-combobox";
6
- import * as i0 from "@angular/core";
7
- export declare class FHTableManagerComponent implements AfterViewInit {
8
- private _dataService;
9
- private app;
10
- private _dialog;
11
- application: string;
12
- b_init: boolean;
13
- cmb_sel?: FHComboboxComponent;
14
- constructor(_dataService: QueryService, app: AppService, _dialog: MatDialog);
15
- edit_values(): void;
16
- ngAfterViewInit(): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<FHTableManagerComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<FHTableManagerComponent, "FHTableManager", never, { "application": { "alias": "application"; "required": false; }; }, {}, never, never, true, never>;
19
- }
@@ -1,30 +0,0 @@
1
- import { AfterViewInit } from "@angular/core";
2
- import { MatDialogRef } from "@angular/material/dialog";
3
- import { ToastrService } from "ngx-toastr";
4
- import { AppService } from "../../services/app.service";
5
- import { QueryService } from "../../services/doquery.service";
6
- import { FHAutoCompleteComponent } from "../fh-autocomplete";
7
- import * as i0 from "@angular/core";
8
- export declare class win_manage_roles implements AfterViewInit {
9
- dialogRef: MatDialogRef<win_manage_roles>;
10
- private toastr;
11
- private _dataService;
12
- label: string;
13
- sql: string;
14
- types: string[];
15
- values: string[];
16
- single_sel: boolean;
17
- sel_values: string;
18
- m_appService: AppService;
19
- constructor(dialogRef: MatDialogRef<win_manage_roles>, toastr: ToastrService, _appService: AppService, _dataService: QueryService);
20
- ok(): void;
21
- role_id: number;
22
- autoc?: FHAutoCompleteComponent | null;
23
- add_assoc(): void;
24
- delete_uassoc(u: any): void;
25
- ref_user_list(): void;
26
- users: any[];
27
- ngAfterViewInit(): void;
28
- static ɵfac: i0.ɵɵFactoryDeclaration<win_manage_roles, never>;
29
- static ɵcmp: i0.ɵɵComponentDeclaration<win_manage_roles, "win_manage_roles", never, {}, {}, never, never, true, never>;
30
- }
@@ -1,31 +0,0 @@
1
- import { AfterViewInit } from "@angular/core";
2
- import { MatDialogRef } from "@angular/material/dialog";
3
- import { ToastrService } from "ngx-toastr";
4
- import { AppService } from "../../services/app.service";
5
- import { QueryService } from "../../services/doquery.service";
6
- import * as i0 from "@angular/core";
7
- export declare class win_manage_values implements AfterViewInit {
8
- dialogRef: MatDialogRef<win_manage_values>;
9
- private toastr;
10
- private m_appService;
11
- private _dataService;
12
- label: string;
13
- sql: string;
14
- title: string;
15
- types: string[];
16
- values: string[];
17
- single_sel: boolean;
18
- sel_values: string;
19
- constructor(dialogRef: MatDialogRef<win_manage_values>, toastr: ToastrService, m_appService: AppService, _dataService: QueryService);
20
- delete_uassoc(u: any): void;
21
- update_tassoc_ins(u: any): void;
22
- update_tassoc(u: any): void;
23
- valoris: Array<any>;
24
- id_tipo: number;
25
- nValori: any;
26
- ref_user_list(): void;
27
- ok(): void;
28
- ngAfterViewInit(): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<win_manage_values, never>;
30
- static ɵcmp: i0.ɵɵComponentDeclaration<win_manage_values, "win_manage_values", never, {}, {}, never, never, true, never>;
31
- }
@@ -1,130 +0,0 @@
1
- import { EventEmitter } from '@angular/core';
2
- import { MatDialogRef } from '@angular/material/dialog';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * Interfaccia per la configurazione dei pulsanti della dialog
6
- */
7
- export interface DialogButton {
8
- /** Testo del pulsante */
9
- text: string;
10
- /** Icona Material (opzionale) */
11
- icon?: string;
12
- /** Colore del pulsante: 'primary' | 'accent' | 'warn' | undefined */
13
- color?: 'primary' | 'accent' | 'warn';
14
- /** Tipo di pulsante: 'raised' | 'stroked' | 'flat' | 'icon' */
15
- type?: 'raised' | 'stroked' | 'flat' | 'icon';
16
- /** Valore da restituire quando il pulsante viene cliccato */
17
- returnValue?: any;
18
- /** CSS class personalizzata per il pulsante */
19
- cssClass?: string;
20
- /** Se true, il pulsante viene allineato a sinistra (es. pulsante Elimina) */
21
- alignLeft?: boolean;
22
- /** Se true, il pulsante è disabilitato */
23
- disabled?: boolean;
24
- /** Larghezza minima del pulsante in pixel (se 0 o non specificato, non viene applicata) */
25
- minWidth?: number;
26
- }
27
- /**
28
- * Evento emesso prima della chiusura della dialog
29
- */
30
- export interface DialogBeforeCloseEvent {
31
- /** Valore di ritorno dal pulsante cliccato */
32
- returnValue: any;
33
- /** Funzione per impedire la chiusura della dialog */
34
- preventDefault: () => void;
35
- }
36
- /**
37
- * Componente base riutilizzabile per le dialog
38
- *
39
- * Esempio di utilizzo:
40
- * ```typescript
41
- * const dialogRef = this.dialog.open(MyDialogComponent, {
42
- * width: '900px',
43
- * maxWidth: '95vw',
44
- * maxHeight: '85vh',
45
- * data: { ... }
46
- * });
47
- * ```
48
- *
49
- * Nel template del componente:
50
- * ```html
51
- * <fh-dialog-base
52
- * [title]="'Titolo Dialog'"
53
- * [buttons]="buttons"
54
- * [canValidate]="canSave"
55
- * (beforeClose)="onBeforeClose($event)"
56
- * (buttonClick)="onButtonClick($event)">
57
- *
58
- * <!-- Contenuto proiettato -->
59
- * <div dialog-content>
60
- * <p>Contenuto della dialog</p>
61
- * </div>
62
- * </fh-dialog-base>
63
- * ```
64
- */
65
- export declare class DialogBaseComponent {
66
- dialogRef: MatDialogRef<DialogBaseComponent>;
67
- /**
68
- * Titolo della dialog
69
- */
70
- title: string;
71
- /**
72
- * Configurazione dei pulsanti
73
- */
74
- buttons: DialogButton[];
75
- /**
76
- * Mostra il pulsante X di chiusura nell'header
77
- */
78
- showCloseButton: boolean;
79
- /**
80
- * Funzione di validazione personalizzata
81
- * Restituisce true se la validazione è OK, false altrimenti
82
- * Usato per disabilitare i pulsanti che hanno requireValidation = true
83
- */
84
- canValidate: (() => boolean) | boolean;
85
- /**
86
- * Allineamento dei pulsanti nel footer
87
- * 'space-between': pulsanti distribuiti tra sinistra e destra (default)
88
- * 'center': pulsanti centrati
89
- * 'flex-end': pulsanti allineati a destra
90
- * 'flex-start': pulsanti allineati a sinistra
91
- */
92
- buttonsAlignment: 'space-between' | 'center' | 'flex-end' | 'flex-start';
93
- /**
94
- * Evento emesso quando viene cliccato un pulsante
95
- * Payload: returnValue del pulsante
96
- */
97
- buttonClick: EventEmitter<any>;
98
- /**
99
- * Evento emesso prima della chiusura della dialog
100
- * Permette di validare e impedire la chiusura chiamando preventDefault()
101
- */
102
- beforeClose: EventEmitter<DialogBeforeCloseEvent>;
103
- constructor(dialogRef: MatDialogRef<DialogBaseComponent>);
104
- /**
105
- * Gestisce il click sul pulsante X di chiusura
106
- */
107
- onCloseClick(): void;
108
- /**
109
- * Gestisce il click su un pulsante della dialog
110
- */
111
- onButtonClick(button: DialogButton): void;
112
- /**
113
- * Chiude la dialog dopo aver validato
114
- */
115
- private closeDialog;
116
- /**
117
- * Verifica se la validazione è OK
118
- */
119
- isValid(): boolean;
120
- /**
121
- * Ottiene i pulsanti allineati a sinistra
122
- */
123
- getLeftButtons(): DialogButton[];
124
- /**
125
- * Ottiene i pulsanti allineati a destra
126
- */
127
- getRightButtons(): DialogButton[];
128
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogBaseComponent, never>;
129
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogBaseComponent, "fh-dialog-base", never, { "title": { "alias": "title"; "required": false; }; "buttons": { "alias": "buttons"; "required": false; }; "showCloseButton": { "alias": "showCloseButton"; "required": false; }; "canValidate": { "alias": "canValidate"; "required": false; }; "buttonsAlignment": { "alias": "buttonsAlignment"; "required": false; }; }, { "buttonClick": "buttonClick"; "beforeClose": "beforeClose"; }, never, ["[dialog-content]"], true, never>;
130
- }
@@ -1,82 +0,0 @@
1
- import { AfterViewInit, ElementRef, EventEmitter } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { MatAutocomplete, MatAutocompleteTrigger } from '@angular/material/autocomplete';
4
- import { QueryService } from '../services/doquery.service';
5
- import { OdbcService } from '../services/doquery-odbc.service';
6
- import { TranslateService } from '@ngx-translate/core';
7
- import * as i0 from "@angular/core";
8
- export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any;
9
- export declare class FHAutoCompleteComponent implements AfterViewInit, ControlValueAccessor {
10
- private _dataService;
11
- private _dataService_odbc;
12
- private _tsr;
13
- init_fill: boolean;
14
- autocomplet?: MatAutocompleteTrigger | null;
15
- error: string;
16
- sql: string;
17
- label: string;
18
- types: any[];
19
- values: any[];
20
- hidden: boolean;
21
- id_loading: boolean;
22
- db_type: string;
23
- max_item_show: number;
24
- enabled: boolean;
25
- open_on_load: boolean;
26
- option_values: string;
27
- required: boolean;
28
- min_length_search: number;
29
- only_from_list: boolean;
30
- disableTranslation: boolean;
31
- fillend: EventEmitter<any>;
32
- selchange: EventEmitter<any>;
33
- change: EventEmitter<any>;
34
- initend: EventEmitter<any>;
35
- focusout: EventEmitter<any>;
36
- dis_value: string | null;
37
- descri_val: string;
38
- load_delay: number;
39
- sItem: string | null;
40
- searchItemsFiltered: Array<any>;
41
- searchp?: ElementRef | null;
42
- auto?: MatAutocomplete | null;
43
- myData: any[];
44
- is_loaded: boolean;
45
- selval: any;
46
- valDef: string;
47
- table_hidden: boolean;
48
- private update_dis;
49
- constructor(_dataService: QueryService, _dataService_odbc: OdbcService, _tsr: TranslateService);
50
- fi_search(): void;
51
- fo_search(o: any): void;
52
- onChange_up(e: any): void;
53
- translateValue(val: string): string;
54
- add_option(o: any): void;
55
- selectedSearchItem(event: any): void;
56
- ch($event: any): void;
57
- myListFormatter(data: any): string;
58
- resetValue(b_res_valdef?: boolean): void;
59
- reset(): void;
60
- doFill(): void;
61
- fillCombo(): void;
62
- resetD(o: any): void;
63
- setByDescri(desc_val: string): void;
64
- last_v: string;
65
- last_val_rec(): void;
66
- setByValue(desc_val: string): void;
67
- setValue(desc_val: string): void;
68
- getDescri(): string | null;
69
- getData(campo: string): string | null;
70
- getObj(): any;
71
- getValue(): string | null;
72
- protected getModelValue(): string | null;
73
- set_options(s: string): void;
74
- ngAfterViewInit(): void;
75
- writeValue(value: string): void;
76
- onChange: (_: any) => void;
77
- onTouched: () => void;
78
- registerOnChange(fn: (_: any) => void): void;
79
- registerOnTouched(fn: () => void): void;
80
- static ɵfac: i0.ɵɵFactoryDeclaration<FHAutoCompleteComponent, never>;
81
- static ɵcmp: i0.ɵɵComponentDeclaration<FHAutoCompleteComponent, "FHAutoComplete", never, { "init_fill": { "alias": "init_fill"; "required": false; }; "error": { "alias": "error"; "required": false; }; "sql": { "alias": "sql"; "required": false; }; "label": { "alias": "label"; "required": false; }; "types": { "alias": "types"; "required": false; }; "values": { "alias": "values"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "db_type": { "alias": "db_type"; "required": false; }; "max_item_show": { "alias": "max_item_show"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "open_on_load": { "alias": "open_on_load"; "required": false; }; "option_values": { "alias": "option_values"; "required": false; }; "required": { "alias": "required"; "required": false; }; "min_length_search": { "alias": "min_length_search"; "required": false; }; "only_from_list": { "alias": "only_from_list"; "required": false; }; "disableTranslation": { "alias": "disableTranslation"; "required": false; }; "load_delay": { "alias": "load_delay"; "required": false; }; }, { "fillend": "fillend"; "selchange": "selchange"; "change": "change"; "initend": "initend"; "focusout": "focusout"; }, never, never, true, never>;
82
- }
@@ -1,25 +0,0 @@
1
- import { AfterViewInit, EventEmitter } from "@angular/core";
2
- import { ControlValueAccessor } from "@angular/forms";
3
- import * as i0 from "@angular/core";
4
- export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any;
5
- export declare class FHCheckBoxComponent implements AfterViewInit, ControlValueAccessor {
6
- hidden: boolean;
7
- label: string;
8
- enabled: boolean;
9
- required: boolean;
10
- change: EventEmitter<any>;
11
- click: EventEmitter<any>;
12
- value_b: boolean;
13
- onCl(): void;
14
- modelch(): void;
15
- constructor();
16
- ngAfterViewInit(): void;
17
- protected getModelValue(): number;
18
- writeValue(value: number): void;
19
- onChange: (_: any) => void;
20
- onTouched: () => void;
21
- registerOnChange(fn: (_: any) => void): void;
22
- registerOnTouched(fn: () => void): void;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<FHCheckBoxComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<FHCheckBoxComponent, "FHCheckBox", never, { "hidden": { "alias": "hidden"; "required": false; }; "label": { "alias": "label"; "required": false; }; "enabled": { "alias": "enabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; "click": "click"; }, never, never, true, never>;
25
- }
@@ -1,31 +0,0 @@
1
- import { AfterViewInit, EventEmitter } from "@angular/core";
2
- import { ControlValueAccessor } from "@angular/forms";
3
- import * as i0 from "@angular/core";
4
- export declare const CUSTOM_INPUT_CONTROL_VALUE_ACCESSOR: any;
5
- export declare class FHColorPickerComponent implements AfterViewInit, ControlValueAccessor {
6
- hidden: boolean;
7
- enabled: boolean;
8
- /** Larghezza della dialog del color picker (ngx-color-picker cpWidth). */
9
- cpWidth: string;
10
- change: EventEmitter<string>;
11
- _color: string;
12
- presetColors: string[];
13
- set color(color: string);
14
- colorChange: EventEmitter<string>;
15
- onColorChange(color: string): void;
16
- onColorSelect(color: string): void;
17
- constructor();
18
- ngAfterViewInit(): void;
19
- writeValue(value: any): void;
20
- onChange: (_: any) => void;
21
- onTouched: () => void;
22
- registerOnChange(fn: (_: any) => void): void;
23
- registerOnTouched(fn: () => void): void;
24
- /**
25
- * Ritorna il colore selezionato in formato stringa esadecimale
26
- * @returns Stringa esadecimale nel formato #RRGGBB o #RRGGBBAA
27
- */
28
- toHexString(): string;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<FHColorPickerComponent, 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>;
31
- }