@n-isi-platform/design-system 1.0.1
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 -0
- package/fesm2022/n-isi-platform-design-system.mjs +2858 -0
- package/fesm2022/n-isi-platform-design-system.mjs.map +1 -0
- package/helpers/get-tomorrow-date.function.d.ts +7 -0
- package/helpers/is-object-empty.function.d.ts +7 -0
- package/index.d.ts +5 -0
- package/lib/accordion/accordion.component.d.ts +30 -0
- package/lib/breadcrumbs/breadcrumbs.component.d.ts +8 -0
- package/lib/button/button.component.d.ts +28 -0
- package/lib/button-link/button-link.component.d.ts +15 -0
- package/lib/card/card.component.d.ts +7 -0
- package/lib/checkbox/checkbox.component.d.ts +20 -0
- package/lib/confirm-modal/confirm-modal.component.d.ts +23 -0
- package/lib/custom-table/custom-table.component.d.ts +117 -0
- package/lib/date-input/date-input.component.d.ts +61 -0
- package/lib/divider/divider.component.d.ts +5 -0
- package/lib/dropdown/dropdown.component.d.ts +48 -0
- package/lib/error/error.component.d.ts +13 -0
- package/lib/expanded-table/expanded-table.component.d.ts +125 -0
- package/lib/filter-header/filter-header.component.d.ts +7 -0
- package/lib/footer/footer.component.d.ts +24 -0
- package/lib/generic-table/generic-table.component.d.ts +34 -0
- package/lib/icon-button/icon-button.component.d.ts +15 -0
- package/lib/input/input.component.d.ts +31 -0
- package/lib/input-mask/input-mask.component.d.ts +28 -0
- package/lib/loader/loader.component.d.ts +5 -0
- package/lib/main-menu/main-menu.component.d.ts +19 -0
- package/lib/modal/modal.component.d.ts +57 -0
- package/lib/navbar/navbar.component.d.ts +34 -0
- package/lib/picklist/picklist.component.d.ts +33 -0
- package/lib/progress-bar/progress-bar.component.d.ts +6 -0
- package/lib/tag/tag.component.d.ts +10 -0
- package/lib/textarea/textarea.component.d.ts +28 -0
- package/lib/toggle-switch/toggle-switch.component.d.ts +17 -0
- package/lib/tooltip/tooltip.component.d.ts +25 -0
- package/models/enums/button/button-color.enum.d.ts +10 -0
- package/models/enums/button/button-icon-position.enum.d.ts +4 -0
- package/models/enums/button/button-size.enum.d.ts +5 -0
- package/models/enums/confirm-modal/confirm-modal-color.enum.d.ts +7 -0
- package/models/enums/dropdown/dropdown-selection-mode.enum.d.ts +5 -0
- package/models/enums/expanded-table/expanded-table.enum.d.ts +5 -0
- package/models/enums/input/input-type.enum.d.ts +5 -0
- package/models/enums/table/caption-color.enum.d.ts +5 -0
- package/models/enums/tag/tag.enum.d.ts +8 -0
- package/models/enums/toast/toast-position-key.enum.d.ts +8 -0
- package/models/enums/toast/toast-severity.enum.d.ts +6 -0
- package/models/enums/tooltip/tooltip-hover-event.enum.d.ts +4 -0
- package/models/enums/tooltip/tooltip-position.enum.d.ts +6 -0
- package/models/interaces/confirm-modal/confirm-modal-service.interface.d.ts +10 -0
- package/models/interaces/custom-table/custom-table.interface.d.ts +20 -0
- package/models/interaces/navbar/navbar-link-list.interface.d.ts +3 -0
- package/models/interaces/shared/form-status.interface.d.ts +8 -0
- package/package.json +23 -0
- package/public-api.d.ts +37 -0
- package/services/app-config.service.d.ts +16 -0
- package/services/cache.service.d.ts +7 -0
- package/services/confirm-modal-service.d.ts +19 -0
- package/services/dynamic-route.service.d.ts +9 -0
- package/services/export.service.d.ts +12 -0
- package/services/local-storage.service.d.ts +34 -0
- package/services/no-internet.service.d.ts +11 -0
- package/services/translation.service.d.ts +13 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { ConfirmationService, MessageService } from 'primeng/api';
|
|
3
|
+
import { TranslationService } from './translation.service';
|
|
4
|
+
import { ConfirmModalContentInterface } from '../models/interaces/confirm-modal/confirm-modal-service.interface';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ConfirmModalService {
|
|
7
|
+
private confirmationService;
|
|
8
|
+
private messageService;
|
|
9
|
+
private translateService;
|
|
10
|
+
private translationService;
|
|
11
|
+
private positionKey;
|
|
12
|
+
private modalContent$;
|
|
13
|
+
content: ConfirmModalContentInterface;
|
|
14
|
+
constructor(confirmationService: ConfirmationService, messageService: MessageService, translateService: TranslateService, translationService: TranslationService);
|
|
15
|
+
private loadModalContent;
|
|
16
|
+
confirm(): void;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmModalService, never>;
|
|
18
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmModalService>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ActivatedRoute, Router } from '@angular/router';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DynamicRouteService {
|
|
4
|
+
private readonly router;
|
|
5
|
+
constructor(router: Router);
|
|
6
|
+
getDynamicUrl(activatedRoute: ActivatedRoute, url: string, queryParams?: any, state?: any): Promise<boolean>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicRouteService, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DynamicRouteService>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ExportService {
|
|
3
|
+
/**
|
|
4
|
+
* izračun širine stolpcev na podlagi vsebine
|
|
5
|
+
*/
|
|
6
|
+
private calculateColumnWidths;
|
|
7
|
+
exportExcel(objArray: any[], filename?: string): any;
|
|
8
|
+
exportCSV(objArray: any[]): string;
|
|
9
|
+
exportXML(array: any): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExportService, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExportService>;
|
|
12
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class LocalStorageService {
|
|
4
|
+
private storageChangeSubject;
|
|
5
|
+
constructor();
|
|
6
|
+
getStorageChangeObservable(): Observable<string | null>;
|
|
7
|
+
/**
|
|
8
|
+
* Retrieves an item from local storage.
|
|
9
|
+
*
|
|
10
|
+
* @param {string} key - The key of the item to retrieve.
|
|
11
|
+
* @returns {any|null} - The item retrieved from local storage, or null if the item does not exist.
|
|
12
|
+
*
|
|
13
|
+
*/
|
|
14
|
+
getItem(key: string): any | null;
|
|
15
|
+
/**
|
|
16
|
+
* Stores an item in local storage.
|
|
17
|
+
*
|
|
18
|
+
* @param {string} key - The key under which to store the item.
|
|
19
|
+
* @param {any} value - The item to store in local storage.
|
|
20
|
+
*
|
|
21
|
+
*/
|
|
22
|
+
setItem(key: string, value: any): void;
|
|
23
|
+
/**
|
|
24
|
+
* Removes an item from local storage.
|
|
25
|
+
*
|
|
26
|
+
* @param {string} key - The key of the item to remove.
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* removeItem('myKey');
|
|
30
|
+
*/
|
|
31
|
+
removeItem(key: string): void;
|
|
32
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageService, never>;
|
|
33
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageService>;
|
|
34
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
+
import { MessageService } from 'primeng/api';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NoInternetService {
|
|
5
|
+
private translateService;
|
|
6
|
+
private messageService;
|
|
7
|
+
constructor(translateService: TranslateService, messageService: MessageService);
|
|
8
|
+
checkInternetConnection(): boolean;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NoInternetService, never>;
|
|
10
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NoInternetService>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { HttpClient } from '@angular/common/http';
|
|
2
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
3
|
+
import { BehaviorSubject } from 'rxjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TranslationService {
|
|
6
|
+
private http;
|
|
7
|
+
private translateService;
|
|
8
|
+
translationsLoaded: BehaviorSubject<boolean>;
|
|
9
|
+
constructor(http: HttpClient, translateService: TranslateService);
|
|
10
|
+
loadTranslations(organisation: string, language: string): Promise<void>;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TranslationService, never>;
|
|
12
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TranslationService>;
|
|
13
|
+
}
|