@fluxhub/fluxhub-lib 19.0.240 → 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 +20957 -24743
  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 -249
  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
@@ -1,10 +0,0 @@
1
- export declare class FHConfirmValues {
2
- title: string;
3
- b_commento: boolean;
4
- noCancel: boolean;
5
- message: string;
6
- confirm_mgs: string;
7
- annulla_mgs: string;
8
- commento_mgs: string;
9
- insert_comment_msg: string;
10
- }
@@ -1,17 +0,0 @@
1
- /**
2
- * Posizione del pulsante custom nella header bar workflow:
3
- * - 'left' : all'inizio, prima di "Salva" (equivale a primary = true)
4
- * - 'actions' : nel gruppo delle azioni di flusso, tra "Respingi" e "Procedi"
5
- * (utile per mettere un pulsante subito prima del tasto di avanzamento)
6
- * - 'right' : in fondo a destra, dopo Info/Commenti/Allegati/Workflow (default)
7
- */
8
- export type FHToolBarCustomActionPosition = 'left' | 'actions' | 'right';
9
- export declare class FHToolBarCustomAction {
10
- command: any;
11
- label: string;
12
- color?: 'primary' | 'accent' | 'warn' | string;
13
- icon?: string;
14
- hidden?: boolean;
15
- primary?: boolean;
16
- position?: FHToolBarCustomActionPosition;
17
- }
@@ -1,5 +0,0 @@
1
- export declare class FSInput {
2
- command: string;
3
- p1: string;
4
- p2: string;
5
- }
@@ -1,5 +0,0 @@
1
- export declare class FSResult {
2
- result_msg: string;
3
- msg: string;
4
- result_data: any[];
5
- }
@@ -1,10 +0,0 @@
1
- export declare class QGParam {
2
- table: string;
3
- table_count: string;
4
- curr_page: number;
5
- sort_field: string;
6
- field: string;
7
- filter: string;
8
- num_per_pag: number;
9
- system_dest: number;
10
- }
@@ -1,6 +0,0 @@
1
- export declare class QGResult {
2
- result_msg: string;
3
- msg: string;
4
- result_data: any[];
5
- count: number;
6
- }
@@ -1,6 +0,0 @@
1
- export declare class QParam {
2
- sql: string;
3
- values: any[];
4
- types: ('string' | 'int' | 'decimal' | 'date' | 'datetime' | 'boolean' | 'cblob')[];
5
- names: any[];
6
- }
@@ -1,5 +0,0 @@
1
- export declare class QResult {
2
- result_msg: string;
3
- msg: string;
4
- result_data: any[];
5
- }
package/lib/obj-diff.d.ts DELETED
@@ -1,36 +0,0 @@
1
- export declare class obj_diff {
2
- checkType: {
3
- number: (x: any) => x is number;
4
- boolean: (x: any) => x is boolean;
5
- STRING: (x: any) => x is string;
6
- DATE: (x: any) => x is Date;
7
- UNDEFINED: (x: any) => x is undefined;
8
- NULL: (x: any) => boolean;
9
- ARRAY: (x: any) => x is any[];
10
- MAP: (x: any) => x is Map<any, any>;
11
- SET: (x: any) => x is Set<any>;
12
- ITERABLE_OBJECT: (x: any) => boolean;
13
- };
14
- types: {
15
- number: string;
16
- boolean: string;
17
- STRING: string;
18
- NULL: string;
19
- UNDEFINED: string;
20
- DATE: string;
21
- ARRAY: string;
22
- MAP: string;
23
- SET: string;
24
- ITERABLE_OBJECT: string;
25
- DEFAULT: string;
26
- };
27
- iterableTypes: string;
28
- private getType;
29
- private noop;
30
- private isTraversalNeeded;
31
- private areEqual;
32
- private computeOp;
33
- private getKeys;
34
- private makeDiff;
35
- get_diff(x: any, y: any, keepOldVal?: boolean, path?: any[], diff?: any[]): any[];
36
- }
@@ -1,20 +0,0 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { ToastrService } from "ngx-toastr";
3
- import { Observable } from "rxjs";
4
- import { QParam } from "../models/QParam";
5
- import { QResult } from "../models/QResult";
6
- import { AppService } from "./app.service";
7
- import * as i0 from "@angular/core";
8
- export declare class AppMakerService {
9
- private http;
10
- private app_s;
11
- private toastr;
12
- headers?: HttpHeaders | null;
13
- constructor(http: HttpClient, app_s: AppService, toastr: ToastrService);
14
- url: string | null;
15
- doQuery(queryp: QParam, displayError?: boolean): Observable<QResult>;
16
- private extractData;
17
- private handleError;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<AppMakerService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<AppMakerService>;
20
- }
@@ -1,95 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Internal State
4
- *
5
- * Declare your custom state key any type here.
6
- */
7
- export type InternalStateType = {
8
- [key: string]: any;
9
- appName: string;
10
- darkMode: boolean;
11
- defaultLang: string;
12
- topnavTitle: string;
13
- sidenavOpen: boolean;
14
- sidenavMode: 'over' | 'push' | 'side';
15
- sidenavCollapse: boolean;
16
- pageFullscreen: boolean;
17
- pageFooter: boolean;
18
- initial: boolean;
19
- wkf_obj: any;
20
- wkf_doc_info: any;
21
- grid_obj: any;
22
- appo_dialog: any;
23
- m_notif: any;
24
- style_search_home: string;
25
- mobile: boolean;
26
- body_height: string;
27
- body_height1: string;
28
- body_height2: string;
29
- body_height3: string;
30
- body_width: string;
31
- mobile_menu: boolean;
32
- body_h: number;
33
- body_w: number;
34
- progress: number;
35
- ip: string;
36
- };
37
- export declare class AppService {
38
- cloneState(): InternalStateType;
39
- reloadState(state: InternalStateType): void;
40
- complete(): void;
41
- start(): void;
42
- update_progress(perc: number): void;
43
- getState(prop?: any): InternalStateType;
44
- setState(prop: string, value: any): any;
45
- API_ENDPOINT: string;
46
- API2_ENDPOINT: string;
47
- TEST_ENDPOINT: string;
48
- PORTAL_TITLE: string;
49
- COMPANY_KEY: string;
50
- COMPANY_SITE_ROOT: string;
51
- SQL_SERVER_LANG: string;
52
- LOCAL_PATH: string;
53
- LOGIN_EXT: number;
54
- LDAP_AUTH: number;
55
- CHANGE_PASSWORD: number;
56
- COLOR_SEARCH: string;
57
- LOGOUT_URL_EXT: string;
58
- GRID_ENDPOINT: string;
59
- UPLOAD_ENDPOINT: string;
60
- LOGIN_ENDPOINT: string;
61
- APPMAKER_ENDPOINT: string;
62
- FILE_ENDPOINT: string;
63
- ODBC_ENDPOINT: string;
64
- QUERY_ENDPOINT: string;
65
- WKF_ENDPOINT: string;
66
- PASSRECOVERY_ENDPOINT: string;
67
- OPEN_QUERY_ENDPOINT: string;
68
- REGISTER_ENDPOINT: string;
69
- user_name: string | null;
70
- user: string | null;
71
- user_surname: string | null;
72
- user_email: string | null;
73
- user_name_ori: string | null;
74
- user_ori: string | null;
75
- user_surname_ori: string | null;
76
- user_email_ori: string | null;
77
- user_roles: string | null;
78
- user_isadmin: string | null;
79
- user_idp: string | null;
80
- user_lang: string | null;
81
- user_ufficio: string | null;
82
- token: string | null;
83
- dev_mode: string | null;
84
- ambiente_forzato: string;
85
- temp_var: any;
86
- temp_var1: any;
87
- temp_var2: any;
88
- temp_var3: any;
89
- temp_var4: any;
90
- ip: string;
91
- progress: number;
92
- private state;
93
- static ɵfac: i0.ɵɵFactoryDeclaration<AppService, never>;
94
- static ɵprov: i0.ɵɵInjectableDeclaration<AppService>;
95
- }
@@ -1,22 +0,0 @@
1
- import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest, HttpClient } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import { AuthenticationService } from './login.service';
4
- import { AppService } from './app.service';
5
- import * as i0 from "@angular/core";
6
- export declare class AuthHttpRequestInterceptor implements HttpInterceptor {
7
- private loginservice;
8
- private appService;
9
- private http;
10
- private isRefreshing;
11
- constructor(loginservice: AuthenticationService, appService: AppService, http: HttpClient);
12
- private dlog;
13
- intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
14
- getJwtToken(): string;
15
- private refreshTokenSubject;
16
- private static readonly REFRESH_FAILED;
17
- private handle401Error;
18
- refreshToken(token: string, refreshToken: string): Observable<any>;
19
- private addToken;
20
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthHttpRequestInterceptor, never>;
21
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthHttpRequestInterceptor>;
22
- }
@@ -1,25 +0,0 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { ToastrService } from "ngx-toastr";
3
- import { Observable } from "rxjs";
4
- import { FSInput } from "../models/FSInput";
5
- import { FSResult } from "../models/FSResult";
6
- import { AppService } from "./app.service";
7
- import { MatDialogRef } from "@angular/material/dialog";
8
- import { FHWinWaitComponent } from "../controls/fh-win-wait";
9
- import { QueryService } from "./doquery.service";
10
- import * as i0 from "@angular/core";
11
- export declare class FileService {
12
- private http;
13
- private app_s;
14
- private toastr;
15
- private dataService;
16
- headers?: HttpHeaders | null;
17
- constructor(http: HttpClient, app_s: AppService, toastr: ToastrService, dataService: QueryService);
18
- url: string | null;
19
- doQuery(queryp: FSInput, displayError?: boolean, url?: string | null): Observable<FSResult>;
20
- private progress_update;
21
- eprog: number;
22
- generateZip(uiid: string, commands: any[], dialogRef_W: MatDialogRef<FHWinWaitComponent, any> | null, sync?: boolean): Observable<any>;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
25
- }
@@ -1,18 +0,0 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { ToastrService } from "ngx-toastr";
3
- import { Observable } from "rxjs";
4
- import { QParam } from "../models/QParam";
5
- import { QResult } from "../models/QResult";
6
- import { AppService } from "./app.service";
7
- import * as i0 from "@angular/core";
8
- export declare class OdbcService {
9
- private http;
10
- private app_s;
11
- private toastr;
12
- headers?: HttpHeaders | null;
13
- constructor(http: HttpClient, app_s: AppService, toastr: ToastrService);
14
- url: string | null;
15
- doQuery(queryp: QParam, displayError?: boolean): Observable<QResult>;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<OdbcService, never>;
17
- static ɵprov: i0.ɵɵInjectableDeclaration<OdbcService>;
18
- }
@@ -1,27 +0,0 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { ToastrService } from "ngx-toastr";
3
- import { Observable } from "rxjs";
4
- import { QParam } from "../models/QParam";
5
- import { QResult } from "../models/QResult";
6
- import { AppService } from "./app.service";
7
- import { UtilityService } from "./utility.service";
8
- import * as i0 from "@angular/core";
9
- export declare class QueryService {
10
- private http;
11
- private toastr;
12
- private app_s;
13
- private uti_s;
14
- headers?: HttpHeaders | null;
15
- url: string | null;
16
- constructor(http: HttpClient, toastr: ToastrService, app_s: AppService, uti_s: UtilityService);
17
- /**
18
- * Perform a query on the server
19
- *
20
- * @param queryp the query object
21
- * @param displayError whether to show a toaster with the error message in the UI
22
- * @return Observable with result, throws an error if response invalid or not ok
23
- */
24
- doQuery(queryp: QParam, displayError?: boolean, url_sec?: string | null): Observable<QResult>;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryService, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<QueryService>;
27
- }
@@ -1,27 +0,0 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { ToastrService } from "ngx-toastr";
3
- import { Observable } from "rxjs";
4
- import { QParam } from "../models/QParam";
5
- import { QResult } from "../models/QResult";
6
- import { AppService } from "./app.service";
7
- import { UtilityService } from "./utility.service";
8
- import * as i0 from "@angular/core";
9
- export declare class QueryOpenService {
10
- private http;
11
- private toastr;
12
- private app_s;
13
- private uti_s;
14
- headers?: HttpHeaders | null;
15
- url: string | null;
16
- constructor(http: HttpClient, toastr: ToastrService, app_s: AppService, uti_s: UtilityService);
17
- /**
18
- * Perform a query on the server
19
- *
20
- * @param queryp the query object
21
- * @param displayError whether to show a toaster with the error message in the UI
22
- * @return Observable with result, throws an error if response invalid or not ok
23
- */
24
- doQuery(queryp: QParam, displayError?: boolean, url_sec?: string | null): Observable<QResult>;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<QueryOpenService, never>;
26
- static ɵprov: i0.ɵɵInjectableDeclaration<QueryOpenService>;
27
- }
@@ -1,213 +0,0 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { ToastrService } from "ngx-toastr";
3
- import { Observable } from "rxjs";
4
- import { QParam } from "../models/QParam";
5
- import { QResult } from "../models/QResult";
6
- import { AppService } from "./app.service";
7
- import { FileService } from "./dofile.service";
8
- import { QueryService } from "./doquery.service";
9
- import { UtilityService } from "./utility.service";
10
- import * as i0 from "@angular/core";
11
- /** Motivo per cui un avanzamento headless non e' andato a buon fine. */
12
- export type WkfProceedReason = 'OK' | 'NO_DOC' | 'CLOSED' | 'TASKS_OPEN' | 'NO_LEVELS' | 'NO_CURRENT_LEVEL' | 'NO_TRANSITION' | 'MULTIPLE_TRANSITIONS' | 'NO_RECIPIENTS' | 'MANUAL_ASSIGNMENT';
13
- export interface WkfProceedResult {
14
- ok: boolean;
15
- reason: WkfProceedReason;
16
- /** Step di partenza (stato del documento al momento della chiamata). */
17
- step_o?: number;
18
- /** Step di arrivo, valorizzato solo quando l'avanzamento e' partito. */
19
- step_d?: number;
20
- /** Transizioni candidate, per far scegliere al chiamante su MULTIPLE_TRANSITIONS. */
21
- transizioni?: any[];
22
- /** Destinatari (livelli) calcolati per lo step di arrivo. */
23
- destinatari?: any[];
24
- msg?: string;
25
- }
26
- export interface WkfProceedOptions {
27
- /**
28
- * Step di arrivo. Obbligatorio quando dallo step corrente escono piu' transizioni
29
- * e non si vuole delegare la scelta ad `auto_forward`.
30
- */
31
- step_d?: number;
32
- /**
33
- * Con piu' transizioni disponibili e nessuno `step_d`: prende la prima transizione
34
- * IN AVANTI (step_d > step corrente) in ordine di `ord`. Senza questo flag il
35
- * metodo si ferma con MULTIPLE_TRANSITIONS e restituisce le candidate.
36
- */
37
- auto_forward?: boolean;
38
- /** Commento di avanzamento registrato sul workflow. */
39
- nota?: string;
40
- /** Titolo/descrizione usati nelle notifiche (default: codice/oggetto del documento). */
41
- title?: string;
42
- descri?: string;
43
- /** Username che compare come autore dell'operazione (default: utente collegato). */
44
- username?: string;
45
- /**
46
- * Salta il controllo sui task obbligatori ancora aperti. Da usare solo quando il
47
- * chiamante ha gia' verificato lui lo stato dei task.
48
- */
49
- skip_tasks_check?: boolean;
50
- }
51
- export interface WkfTaskResult {
52
- ok: boolean;
53
- /** Chi detiene la presa in carico: valorizzato quando `ok` e' false per corsa persa. */
54
- owner?: string;
55
- /** Task risolto (riga di SELECT_WKF_STEP_TASKS). */
56
- task?: any;
57
- /** Esito dell'eventuale avanzamento innescato dalla chiusura. */
58
- proceed?: WkfProceedResult;
59
- msg?: string;
60
- }
61
- export interface WkfCompleteTaskOptions extends WkfProceedOptions {
62
- /** Nota di chiusura del task. */
63
- nota_task?: string;
64
- /**
65
- * Chiude l'attivita' anche se l'utente non ha un ruolo abilitato su di essa
66
- * (`can_close`). Da usare solo per processi automatici che agiscono per conto
67
- * del sistema: per un'azione fatta da una persona il controllo va lasciato.
68
- */
69
- force?: boolean;
70
- /**
71
- * A task tutti chiusi tenta l'avanzamento dello step (default true). A false il
72
- * task viene solo chiuso e lo step resta dov'e'.
73
- */
74
- proceed?: boolean;
75
- }
76
- export declare class WkfService {
77
- private http;
78
- private app_s;
79
- private toastr;
80
- private uti_s;
81
- private q_s;
82
- private f_s;
83
- headers?: HttpHeaders | null;
84
- constructor(http: HttpClient, app_s: AppService, toastr: ToastrService, uti_s: UtilityService, q_s: QueryService, f_s: FileService);
85
- url: string | null;
86
- doQuery(queryp: QParam, displayError?: boolean): Observable<QResult>;
87
- /** doQuery sul canale query standard (NON l'endpoint wkf di questo service). */
88
- private q;
89
- private rows;
90
- /**
91
- * I bit(1) di MySQL possono arrivare come true/false, 1/0 oppure come i byte
92
- * grezzi 0x01 / 0x00 a seconda del driver: qui vengono normalizzati tutti.
93
- */
94
- private is_true;
95
- private cur_user;
96
- /**
97
- * Riga di log sul documento (`wkf_workflow`), la stessa tabella del log del form:
98
- * le operazioni sulle attivita' devono comparire nel dialog LOGS come quelle del
99
- * motore, altrimenti una pratica avanzata da un'applicazione esterna risulta
100
- * mossa "da sola".
101
- *
102
- * Il dialog rende `operazione (stato_attuale)`: qui il titolo dell'attivita' va
103
- * nel secondo campo, cosi' la riga si legge come le altre ("... (ATTESA SCHEDA
104
- * TECNICA)"). Il log e' accessorio: un suo errore non deve far fallire
105
- * l'operazione, quindi l'errore viene assorbito.
106
- */
107
- log_task_op(id_applicativo: string, id_documento: string, operazione: string, task: any, username?: string): Observable<any>;
108
- private dev_mode;
109
- /**
110
- * Testata del documento di workflow (stato, canale, creatore, codice, oggetto).
111
- * Headless non abbiamo la vista applicativa del form: leggiamo `wkf_documents`.
112
- */
113
- load_wkf_document(id_applicativo: string, id_documento: string): Observable<any>;
114
- /**
115
- * Livelli del workflow con le variabili speciali gia' risolte sul documento.
116
- *
117
- * Replica di quello che il form fa al load: `SELECT_WLIVELLIV2_2` da' i livelli
118
- * di configurazione (dove `value` puo' essere un ruolo o una variabile `*XXX`),
119
- * `SELECT_WKF_VARIABILES_V2` da' i valori delle variabili sul documento. I
120
- * livelli con una variabile non risolvibile vengono scartati, esattamente come
121
- * nel form: un livello senza utente non e' un destinatario valido.
122
- */
123
- load_wkf_levels(id_applicativo: string, id_documento: string, doc: any): Observable<any[]>;
124
- /**
125
- * Risoluzione delle variabili speciali sui livelli.
126
- *
127
- * NB: a differenza del form NON persiste la variabile REQUESTER mancante — un
128
- * avanzamento headless non deve scrivere configurazione di nascosto. La sintetizza
129
- * solo in memoria, dal creatore del documento.
130
- */
131
- private resolve_levels;
132
- /** Transizioni in uscita da uno step, in ordine di configurazione (`ord`). */
133
- load_wkf_transitions(id_applicativo: string, step_o: number): Observable<any[]>;
134
- /** Attivita' (task) di uno step con lo stato sul documento. */
135
- load_step_tasks(id_applicativo: string, id_documento: string, step: number, username?: string): Observable<any[]>;
136
- /** Task obbligatori dello step ancora aperti. */
137
- required_tasks_open(tasks: any[]): any[];
138
- /**
139
- * Presa in carico atomica: materializza la riga, tenta l'UPDATE condizionato su
140
- * `preso_da IS NULL`, poi rilegge il proprietario. Chi ha vinto la corsa lo
141
- * decide il DB, non il frontend.
142
- */
143
- claim_task(id_applicativo: string, id_documento: string, task: any, step: number, username?: string): Observable<WkfTaskResult>;
144
- /**
145
- * Chiude un task gia' preso in carico. L'UPDATE porta `preso_da` nella WHERE:
146
- * se nel frattempo la presa in carico e' stata forzata via, la chiusura non passa.
147
- */
148
- close_task(id_applicativo: string, id_documento: string, task: any, nota?: string | null, username?: string): Observable<boolean>;
149
- /** Riapre un task chiuso, azzerando anche la presa in carico. */
150
- reopen_task(id_applicativo: string, id_documento: string, task: any, username?: string): Observable<boolean>;
151
- /**
152
- * Segnala a exec_wkf la chiusura di un task: sblocco dei task dipendenti,
153
- * lettori e notifiche. La chiusura resta un UPDATE del frontend (serve l'esito
154
- * sincrono della corsa), qui passa solo l'evento.
155
- */
156
- notify_task_closed(id_applicativo: string, id_documento: string, uiid_task: string, username?: string): Observable<any>;
157
- /**
158
- * Avanzamento di step innescato dalla chiusura dei task: e' l'avanza classico
159
- * SENZA il vincolo che chi lo esegue sia agganciato allo step corrente.
160
- *
161
- * Nel form l'avanzamento richiede che l'utente compaia tra i livelli dello step
162
- * corrente (`doApprova` cerca il `clevel` che combacia con lui) e che sia autore
163
- * del documento (`b_edit`). Su uno step in modalita' task le due cose spesso non
164
- * coincidono: gli esecutori dei task sono LETTORI del documento, non autori, e i
165
- * ruoli dei task sono diversi da quelli dello step. Qui il livello corrente si
166
- * prende per solo step: chi ha chiuso l'ultimo task obbligatorio fa avanzare la
167
- * pratica, chiunque sia.
168
- *
169
- * Cosa NON fa (e va tenuto presente):
170
- * - non esegue `ck_after()` del form: le validazioni applicative legate
171
- * all'avanzamento vanno spostate su `ck_task()` del task che chiude lo step;
172
- * - non gestisce l'assegnazione manuale (`manual_assignment`/`pre_assegna_man`),
173
- * che richiede un dialog: in quel caso si ferma con MANUAL_ASSIGNMENT;
174
- * - con piu' transizioni in uscita non sceglie da solo se non glielo si dice
175
- * (`step_d` o `auto_forward`).
176
- */
177
- proceed_from_task(id_applicativo: string, id_documento: string, opts?: WkfProceedOptions): Observable<WkfProceedResult>;
178
- private do_proceed;
179
- /**
180
- * Scelta della transizione: esplicita (`step_d`), unica, oppure — con
181
- * `auto_forward` — la prima IN AVANTI in ordine di configurazione. Gli step
182
- * terminali/laterali (annullamento, sospensione...) non vengono mai scelti da
183
- * soli: sono decisioni di un operatore, non conseguenze di un task chiuso.
184
- */
185
- private pick_transition;
186
- /**
187
- * Destinatari dello step di arrivo. Stessa logica del form (`calcola_destinari`):
188
- * livelli dello step di destinazione filtrati per canale, poi le restrizioni su
189
- * creatore (step iniziali), `default_value` e `pre_assegna_req`.
190
- */
191
- private build_recipients;
192
- /** Accoda l'operazione di avanzamento e lancia exec_wkf (o create_ver). */
193
- private exec_wkf_op;
194
- private run_exec_app;
195
- /**
196
- * Chiude un task dello step corrente identificato dalla sua `check_key` e, se
197
- * era l'ultimo obbligatorio, fa avanzare lo step. E' il metodo pensato per gli
198
- * applicativi esterni al flusso: una sola chiamata, esito parlante.
199
- *
200
- * La presa in carico viene fatta qui: fuori dal pannello non ha senso chiedere
201
- * all'utente di prendere in carico un'attivita' che sta gia' eseguendo.
202
- */
203
- complete_task(id_applicativo: string, id_documento: string, check_key: string, opts?: WkfCompleteTaskOptions): Observable<WkfTaskResult>;
204
- /**
205
- * Dopo la chiusura: se restano task obbligatori aperti si notifica soltanto lo
206
- * sblocco dei dipendenti; se non ne restano si avanza (l'avanzamento ricalcola
207
- * da se' lettori e notifiche dello step di arrivo, quindi TASK_CLOSED sarebbe
208
- * rumore su uno step che stiamo lasciando).
209
- */
210
- private after_close;
211
- static ɵfac: i0.ɵɵFactoryDeclaration<WkfService, never>;
212
- static ɵprov: i0.ɵɵInjectableDeclaration<WkfService>;
213
- }
@@ -1,20 +0,0 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { ToastrService } from "ngx-toastr";
3
- import { Observable } from "rxjs";
4
- import { QGParam } from "../models/QGParam";
5
- import { QGResult } from "../models/QGResult";
6
- import { AppService } from "./app.service";
7
- import { UtilityService } from "./utility.service";
8
- import * as i0 from "@angular/core";
9
- export declare class GridService {
10
- private http;
11
- private app_s;
12
- private toastr;
13
- private uti_s;
14
- headers?: HttpHeaders | null;
15
- constructor(http: HttpClient, app_s: AppService, toastr: ToastrService, uti_s: UtilityService);
16
- url: string | null;
17
- doQuery(queryp: QGParam, displayError?: boolean, url_sec?: string | null): Observable<QGResult>;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<GridService, never>;
19
- static ɵprov: i0.ɵɵInjectableDeclaration<GridService>;
20
- }
@@ -1,13 +0,0 @@
1
- import { AppService } from "./app.service";
2
- import { UtilityService } from "./utility.service";
3
- import * as i0 from "@angular/core";
4
- export declare class LocalDBService {
5
- private uti;
6
- private app;
7
- constructor(uti: UtilityService, app: AppService);
8
- read<T = any>(key: string, crypt?: boolean, json_format?: boolean): Promise<any | null>;
9
- write(k: string, obj: any, crypt?: boolean, json_format?: boolean): void;
10
- delete(k: string): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<LocalDBService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<LocalDBService>;
13
- }
@@ -1,33 +0,0 @@
1
- import { HttpClient, HttpHeaders } from "@angular/common/http";
2
- import { Router } from "@angular/router";
3
- import { ToastrService } from "ngx-toastr";
4
- import { Observable } from "rxjs";
5
- import { QResult } from "../models/QResult";
6
- import { AppService } from "./app.service";
7
- import { UtilityService } from "./utility.service";
8
- import * as i0 from "@angular/core";
9
- export declare class AuthenticationService {
10
- private toastr;
11
- private http;
12
- private router;
13
- private app_s;
14
- private uti_s;
15
- goto_after: string;
16
- headers?: HttpHeaders | null;
17
- url: string | null;
18
- constructor(toastr: ToastrService, http: HttpClient, router: Router, app_s: AppService, uti_s: UtilityService);
19
- logout(resetPosition?: boolean): void;
20
- login(username: string, password: string, displayError?: boolean): Observable<QResult>;
21
- register_user(name: string, surname: string, email: string, username: string, password: string, add_role: string, displayError?: boolean): Observable<QResult>;
22
- login_by_email(email: string, displayError?: boolean): Observable<QResult>;
23
- get_user_info(username: string, displayError?: boolean): Observable<QResult>;
24
- getCompany(displayError?: boolean): Observable<QResult>;
25
- username: string;
26
- passrecovery(email: string, displayError?: boolean): Observable<QResult>;
27
- checktoken(res_rep: string, displayError?: boolean): Observable<QResult>;
28
- change_password(token: string, password: string, displayError?: boolean): Observable<QResult>;
29
- checkCredentials_toLogin(): boolean;
30
- checkCredentials(): boolean;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<AuthenticationService, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<AuthenticationService>;
33
- }