@n-isi-platform/design-system 1.0.48 → 1.0.50
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/README.md +109 -109
- package/fesm2022/n-isi-platform-design-system.mjs +266 -113
- package/fesm2022/n-isi-platform-design-system.mjs.map +1 -1
- package/helpers/app-route-url.function.d.ts +6 -0
- package/interceptors/error.interceptor.d.ts +2 -0
- package/lib/checkbox/checkbox.component.d.ts +2 -1
- package/lib/file-upload/file-upload.component.d.ts +22 -3
- package/lib/footer/footer.component.d.ts +4 -1
- package/package.json +2 -2
- package/public-api.d.ts +1 -0
- package/services/app-config.service.d.ts +2 -0
- package/services/dynamic-route.service.d.ts +3 -1
- package/services/shared-auth.service.d.ts +1 -0
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export interface AppRouteBaseConfig {
|
|
2
|
+
baseUrl?: string;
|
|
3
|
+
}
|
|
4
|
+
export declare function getAppRouteSegments(pathname: string, config?: object | null): string[];
|
|
5
|
+
export declare function getCurrentAppRouteSegments(config?: object | null): string[];
|
|
6
|
+
export declare function buildAppPath(routeSegments: string[], config?: object | null): string;
|
|
@@ -15,6 +15,8 @@ export declare class ErrorInterceptor implements HttpInterceptor {
|
|
|
15
15
|
private router;
|
|
16
16
|
constructor();
|
|
17
17
|
intercept(httpRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
18
|
+
private getErrorText;
|
|
19
|
+
private isNoActiveLockLookupError;
|
|
18
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorInterceptor, never>;
|
|
19
21
|
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorInterceptor>;
|
|
20
22
|
}
|
|
@@ -7,6 +7,7 @@ export declare class CheckboxComponent {
|
|
|
7
7
|
group: FormGroup;
|
|
8
8
|
controlName: string;
|
|
9
9
|
value: boolean;
|
|
10
|
+
disabled: boolean;
|
|
10
11
|
clickCheckboxEvent: EventEmitter<any>;
|
|
11
12
|
formStatus?: FormStatusInterface;
|
|
12
13
|
ariaLabel: string;
|
|
@@ -16,5 +17,5 @@ export declare class CheckboxComponent {
|
|
|
16
17
|
*/
|
|
17
18
|
clickCheckbox(event: MouseEvent): void;
|
|
18
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxComponent, never>;
|
|
19
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "lib-checkbox[group][controlName][label]", never, { "label": { "alias": "label"; "required": false; }; "group": { "alias": "group"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "value": { "alias": "value"; "required": false; }; "formStatus": { "alias": "formStatus"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "clickCheckboxEvent": "clickCheckboxEvent"; }, never, never, true, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CheckboxComponent, "lib-checkbox[group][controlName][label]", never, { "label": { "alias": "label"; "required": false; }; "group": { "alias": "group"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "formStatus": { "alias": "formStatus"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "clickCheckboxEvent": "clickCheckboxEvent"; }, never, never, true, never>;
|
|
20
21
|
}
|
|
@@ -11,7 +11,15 @@ export type BackendPriloga = {
|
|
|
11
11
|
imeDatoteke?: string;
|
|
12
12
|
name?: string;
|
|
13
13
|
};
|
|
14
|
-
export type
|
|
14
|
+
export type LocalPhotoUploadItem = {
|
|
15
|
+
localPhotoId: number;
|
|
16
|
+
name: string;
|
|
17
|
+
image?: string;
|
|
18
|
+
postavkaPregledaId?: number;
|
|
19
|
+
synced?: boolean;
|
|
20
|
+
deleted?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export type UploadItem = File | BackendPriloga | LocalPhotoUploadItem;
|
|
15
23
|
export declare class FileUploadComponent {
|
|
16
24
|
private config;
|
|
17
25
|
private sharedMessageService;
|
|
@@ -28,6 +36,12 @@ export declare class FileUploadComponent {
|
|
|
28
36
|
extraInfo?: string;
|
|
29
37
|
onSaveFile: EventEmitter<File[]>;
|
|
30
38
|
onDelete: EventEmitter<number>;
|
|
39
|
+
onDeleteLocal: EventEmitter<{
|
|
40
|
+
postavkaPregledaId?: number;
|
|
41
|
+
fileName?: string;
|
|
42
|
+
index?: number;
|
|
43
|
+
}>;
|
|
44
|
+
onDeleteLocalPhotoId: EventEmitter<number>;
|
|
31
45
|
onDownload: EventEmitter<{
|
|
32
46
|
id: number;
|
|
33
47
|
name: string;
|
|
@@ -42,15 +56,20 @@ export declare class FileUploadComponent {
|
|
|
42
56
|
onSelectedFiles(event: any): void;
|
|
43
57
|
getDisplayName(item: UploadItem): string;
|
|
44
58
|
getPrilogaId(item: UploadItem): number | undefined;
|
|
45
|
-
delete(fileOrId: UploadItem | number): void;
|
|
59
|
+
delete(fileOrId: UploadItem | number, index?: number): void;
|
|
46
60
|
formatSize(bytes: any): string;
|
|
47
61
|
choose(event: any, callback: any): void;
|
|
48
62
|
remove(event: any): void;
|
|
49
63
|
onRemoveTemplatingFile(event: any, priloga: any, removeFileCallback: any, index: any): void;
|
|
50
64
|
downloadFile(priloga: UploadItem): void;
|
|
51
65
|
isTempFile(item: UploadItem): boolean;
|
|
66
|
+
isLocalPhoto(item: UploadItem): item is LocalPhotoUploadItem;
|
|
67
|
+
getLocalPhotoStatusLabel(item: UploadItem): string;
|
|
68
|
+
getLocalPhotoStatusShortLabel(item: UploadItem): string;
|
|
69
|
+
getLocalPhotoStatusSeverity(item: UploadItem): 'success' | 'warn';
|
|
70
|
+
private isLocalPhotoSynced;
|
|
52
71
|
onClearTemplatingUpload(): void;
|
|
53
72
|
private calculateFileSize;
|
|
54
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
55
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "app-file-upload", never, { "postavkaPregledaId": { "alias": "postavkaPregledaId"; "required": false; }; "uploadedFiles": { "alias": "uploadedFiles"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "totalMaxFileSize": { "alias": "totalMaxFileSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "acceptFiles": { "alias": "acceptFiles"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; }, { "onSaveFile": "onSaveFile"; "onDelete": "onDelete"; "onDownload": "onDownload"; "valid": "valid"; }, never, never, true, never>;
|
|
74
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "app-file-upload", never, { "postavkaPregledaId": { "alias": "postavkaPregledaId"; "required": false; }; "uploadedFiles": { "alias": "uploadedFiles"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "totalMaxFileSize": { "alias": "totalMaxFileSize"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "acceptFiles": { "alias": "acceptFiles"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "extraInfo": { "alias": "extraInfo"; "required": false; }; }, { "onSaveFile": "onSaveFile"; "onDelete": "onDelete"; "onDeleteLocal": "onDeleteLocal"; "onDeleteLocalPhotoId": "onDeleteLocalPhotoId"; "onDownload": "onDownload"; "valid": "valid"; }, never, never, true, never>;
|
|
56
75
|
}
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { MessageService } from 'primeng/api';
|
|
2
2
|
import { TranslateService } from '@ngx-translate/core';
|
|
3
3
|
import { Router } from '@angular/router';
|
|
4
|
+
import { AppConfigService } from '../../services/app-config.service';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class FooterComponent {
|
|
6
7
|
private readonly messageService;
|
|
7
8
|
private readonly translateService;
|
|
8
9
|
private router;
|
|
10
|
+
private readonly appConfigService;
|
|
9
11
|
version: string;
|
|
10
|
-
constructor(messageService: MessageService, translateService: TranslateService, router: Router);
|
|
12
|
+
constructor(messageService: MessageService, translateService: TranslateService, router: Router, appConfigService: AppConfigService);
|
|
13
|
+
private getCurrentLanguage;
|
|
11
14
|
/**
|
|
12
15
|
* @deprecated
|
|
13
16
|
* @see openPersonalDataInfo()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@n-isi-platform/design-system",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.50",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "19.2.6",
|
|
6
6
|
"@angular/core": "19.2.6"
|
|
@@ -21,4 +21,4 @@
|
|
|
21
21
|
"default": "./fesm2022/n-isi-platform-design-system.mjs"
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
}
|
|
24
|
+
}
|
package/public-api.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export * from './helpers/format-date-time.function';
|
|
|
5
5
|
export * from './helpers/format-date-to-api-datetime';
|
|
6
6
|
export * from './helpers/format-date.function';
|
|
7
7
|
export * from './helpers/get-tomorrow-date.function';
|
|
8
|
+
export * from './helpers/app-route-url.function';
|
|
8
9
|
export * from './helpers/is-object-empty.function';
|
|
9
10
|
export * from './helpers/isFormValid.function';
|
|
10
11
|
export * from './helpers/local-format-date.function';
|
|
@@ -12,8 +12,10 @@ export interface MfeRemoteEntry {
|
|
|
12
12
|
remoteFrontends?: Record<string, RemoteFrontend>;
|
|
13
13
|
}
|
|
14
14
|
export interface AppConfig {
|
|
15
|
+
baseUrl?: string;
|
|
15
16
|
basePathAuth: string;
|
|
16
17
|
basePathCommon: string;
|
|
18
|
+
geoHubPath: string;
|
|
17
19
|
vsLoginPath: string;
|
|
18
20
|
sipassLoginPath: string;
|
|
19
21
|
enableStandaloneRemote: boolean;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
+
import { AppConfigService } from './app-config.service';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DynamicRouteService {
|
|
4
5
|
private readonly router;
|
|
5
|
-
|
|
6
|
+
private readonly appConfigService;
|
|
7
|
+
constructor(router: Router, appConfigService: AppConfigService);
|
|
6
8
|
getDynamicUrl(activatedRoute: ActivatedRoute, url: string, queryParams?: any, state?: any): Promise<boolean>;
|
|
7
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicRouteService, never>;
|
|
8
10
|
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicRouteService>;
|
|
@@ -17,6 +17,7 @@ export declare class SharedAuthService {
|
|
|
17
17
|
userData$: import("rxjs").Observable<ProfilUporabnikaDTO>;
|
|
18
18
|
constructor(router: Router, localStorageService: LocalStorageService);
|
|
19
19
|
logout(): void;
|
|
20
|
+
clearUserData(): void;
|
|
20
21
|
setUserData(userData: ProfilUporabnikaDTO): void;
|
|
21
22
|
getUserData(): ProfilUporabnikaDTO;
|
|
22
23
|
getUserVloge(): UserVloga[];
|