@n-isi-platform/design-system 1.0.1 → 1.0.3

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 (49) hide show
  1. package/fesm2022/n-isi-platform-design-system.mjs +3074 -1991
  2. package/fesm2022/n-isi-platform-design-system.mjs.map +1 -1
  3. package/handlers/global-error.handler.d.ts +22 -0
  4. package/helpers/clean-mobile-phone-number.d.ts +5 -0
  5. package/helpers/find-unavailable-dates.d.ts +10 -0
  6. package/helpers/format-date-time.function.d.ts +1 -0
  7. package/helpers/format-date-to-api-datetime.d.ts +4 -0
  8. package/helpers/format-date.function.d.ts +8 -0
  9. package/helpers/isFormValid.function.d.ts +9 -0
  10. package/helpers/local-format-date.function.d.ts +1 -0
  11. package/helpers/transform-date-time.function.d.ts +13 -0
  12. package/interceptors/error.interceptor.d.ts +24 -0
  13. package/interceptors/jwt.interceptor.d.ts +13 -0
  14. package/lib/autocomplete/autocomplete.component.d.ts +62 -0
  15. package/lib/file-upload/file-upload.component.d.ts +50 -0
  16. package/lib/no-data-found/no-data-found.component.d.ts +12 -0
  17. package/lib/table-column-select/table-column-select.component.d.ts +35 -0
  18. package/lib/tinymce-editor/tinymce-editor.component.d.ts +21 -0
  19. package/models/dokumentDTO.d.ts +87 -0
  20. package/models/interaces/breadcrumbs/breadcrumbs.interface.d.ts +11 -0
  21. package/models/interaces/filter-header/filter-items-definition.interface.d.ts +6 -0
  22. package/models/interaces/item-checked/item-checked.interface.d.ts +4 -0
  23. package/models/interaces/shared/administrative-unit-list.d.ts +10 -0
  24. package/models/interaces/shared/service-list-item.interface.d.ts +5 -0
  25. package/models/interaces/shared/service-list.interface.d.ts +10 -0
  26. package/models/interaces/shared/unit-list-dropdown.interface.d.ts +8 -0
  27. package/models/interaces/table/table-column.interface.d.ts +15 -0
  28. package/models/interaces/table/table-header.interface.d.ts +6 -0
  29. package/models/nalogaDTO.d.ts +202 -0
  30. package/models/naslovnikDTO.d.ts +17 -0
  31. package/models/prilogaDTO.d.ts +16 -0
  32. package/models/profilUporabnikaDTO.d.ts +36 -0
  33. package/models/uporabnikDTO.d.ts +20 -0
  34. package/package.json +1 -1
  35. package/public-api.d.ts +88 -30
  36. package/services/error-logging.service.d.ts +3 -0
  37. package/services/shared-auth.service.d.ts +26 -0
  38. package/services/shared-message.service.d.ts +12 -0
  39. package/services/translate-sanitizer.service.d.ts +21 -0
  40. package/validators/at-least-one-field-present.validator.d.ts +2 -0
  41. package/validators/date-and-time-mismatch.validator.d.ts +2 -0
  42. package/validators/date-mismatch.validator.d.ts +2 -0
  43. package/validators/is-coordinate.validator.d.ts +2 -0
  44. package/validators/is-multiple-of-five.validator.d.ts +2 -0
  45. package/validators/is-not-blank.validator.d.ts +2 -0
  46. package/validators/is-not-decimal.validator.d.ts +2 -0
  47. package/validators/is-one-phone-number.validator.d.ts +2 -0
  48. package/validators/mobile-phone-area-code.validator.d.ts +2 -0
  49. package/validators/multiple-emails-validator.d.ts +7 -0
@@ -0,0 +1,22 @@
1
+ import { ErrorHandler, Injector } from '@angular/core';
2
+ import { Router } from '@angular/router';
3
+ import * as i0 from "@angular/core";
4
+ export declare class GlobalErrorHandler implements ErrorHandler {
5
+ private injector;
6
+ private router;
7
+ constructor(injector: Injector, router: Router);
8
+ /**
9
+ * globalni error handler: pošlje error na API + output errorja v konzolo
10
+ */
11
+ handleError(error: any): void;
12
+ /**
13
+ * izbira ustreznega servica za logiranje: backoffice ali public
14
+ */
15
+ /**
16
+ * dobi vse detajle, ki jih pripne v error log: browser, route, error stack, message
17
+ */
18
+ private extractErrorDetails;
19
+ private getBrowserInfo;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<GlobalErrorHandler, never>;
21
+ static ɵprov: i0.ɵɵInjectableDeclaration<GlobalErrorHandler>;
22
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * počisti mobilno telefonsko, da je pripravljena za API oz null, če je nepravilen format:
3
+ * +386(041)234-234 -> +38641234234
4
+ */
5
+ export declare function cleanMobilePhoneNumber(phoneNumber: string): string | null;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * funkcija za dobit tiste dneve iz availableDates, ki manjkajo
3
+ * -> zato da lahko dam dneve ko storitev na UE ni na voljo na disabled (negacija checkDates)
4
+ *
5
+ * @param availableDates
6
+ * @param includeDaysAfterLastDate opcijski parameter, default = 50. Če je podan bodo v rezultatu
7
+ * unavailableDates še toliko datumov po zadnjem datumu v availableDates
8
+ * -> to je zato, da lahko disablam datume še naprej od zadnjega v availableDates
9
+ */
10
+ export declare function findUnavailableDates(availableDates: string[], includeDaysAfterLastDate?: number): Date[];
@@ -0,0 +1 @@
1
+ export declare function formatDateTime(date: string, time: string): string;
@@ -0,0 +1,4 @@
1
+ /**
2
+ * Pretvori datum iz JavaScript Date objekta v ISO format brez časovnega pasu
3
+ */
4
+ export declare function formatDateToLocalISOString(date: Date): string;
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Formats a date from a string into the 'YYYY-MM-DD' format.
3
+ *
4
+ * @param {string} inputDate - The date string to be formatted.
5
+ *
6
+ * @returns {string} A date string formatted into 'YYYY-MM-DD'.
7
+ * */
8
+ export declare function formatDate(inputDate: string): string;
@@ -0,0 +1,9 @@
1
+ import { FormGroup } from '@angular/forms';
2
+ /**
3
+ * Checks whether a form is invalid and if a submit action has been triggered.
4
+ *
5
+ * @param {FormGroup} form - The form to check for validity.
6
+ * @param {boolean} isSubmitTriggered - Flag indicating whether a submit action has been triggered.
7
+ * @returns {boolean} - Returns `true` if the form is invalid and a submit action has been triggered, `false` otherwise.
8
+ */
9
+ export declare function isFormInvalid(form: FormGroup, isSubmitTriggered: boolean): boolean;
@@ -0,0 +1 @@
1
+ export declare function localFormatDate(inputDate: string): string;
@@ -0,0 +1,13 @@
1
+ /**
2
+ * Transforms a given date and time string into a formatted date and time representation.
3
+ *
4
+ * @param {string} dateTime - The date and time string to transform.
5
+ *
6
+ * @return {Object} - An object containing the transformed date and time.
7
+ * @return {string} dateOfVisit - The formatted date.
8
+ * @return {string} hourOfVisit - The formatted time.
9
+ */
10
+ export declare function transformDateTime(dateTime: string): {
11
+ dateOfVisit: string;
12
+ hourOfVisit: string;
13
+ };
@@ -0,0 +1,24 @@
1
+ import { Injector } from "@angular/core";
2
+ import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
3
+ import { Observable } from 'rxjs';
4
+ import { MessageService } from 'primeng/api';
5
+ import { TranslateService } from '@ngx-translate/core';
6
+ import { LocalStorageService } from '../services/local-storage.service';
7
+ import { Router } from '@angular/router';
8
+ import * as i0 from "@angular/core";
9
+ /**
10
+ * 2024-07-04 Mare:
11
+ * pustil samo ta generalni error.interceptor v design-system, prej je bil za backoffice posebej
12
+ * * loči se preko this.injector.get('ENVIRONMENT') === 'backoffice' oz. 'public'
13
+ */
14
+ export declare class ErrorInterceptor implements HttpInterceptor {
15
+ private messageService;
16
+ private translateService;
17
+ private localStorageService;
18
+ private router;
19
+ private injector;
20
+ constructor(messageService: MessageService, translateService: TranslateService, localStorageService: LocalStorageService, router: Router, injector: Injector);
21
+ intercept(httpRequest: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ErrorInterceptor, never>;
23
+ static ɵprov: i0.ɵɵInjectableDeclaration<ErrorInterceptor>;
24
+ }
@@ -0,0 +1,13 @@
1
+ import { HttpRequest, HttpHandler, HttpEvent, HttpInterceptor } from "@angular/common/http";
2
+ import { Observable } from "rxjs";
3
+ import { LocalStorageService } from '../services/local-storage.service';
4
+ import { SharedAuthService } from "../services/shared-auth.service";
5
+ import * as i0 from "@angular/core";
6
+ export declare class JwtInterceptor implements HttpInterceptor {
7
+ private readonly localStorageService;
8
+ private readonly sharedAuthService;
9
+ constructor(localStorageService: LocalStorageService, sharedAuthService: SharedAuthService);
10
+ intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<JwtInterceptor, never>;
12
+ static ɵprov: i0.ɵɵInjectableDeclaration<JwtInterceptor>;
13
+ }
@@ -0,0 +1,62 @@
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
+ import { FormGroup } from '@angular/forms';
3
+ import { FormStatusInterface } from '../../models/interaces/shared/form-status.interface';
4
+ import { TooltipPosition } from '../../models/enums/tooltip/tooltip-position.enum';
5
+ import { TranslateService } from '@ngx-translate/core';
6
+ import { TooltipHoverEventEnum } from '../../models/enums/tooltip/tooltip-hover-event.enum';
7
+ import * as i0 from "@angular/core";
8
+ export declare class AutocompleteComponent implements OnInit {
9
+ private readonly translateService;
10
+ protected readonly TooltipHoverEventEnum: typeof TooltipHoverEventEnum;
11
+ _isTooltipVisible: boolean;
12
+ dynamicItemsLabel: any;
13
+ name: string;
14
+ isMultiselect: boolean;
15
+ selectedItemLabel: string;
16
+ group: FormGroup;
17
+ controlName: string;
18
+ label: string;
19
+ optionList: object[];
20
+ optionLabel: string;
21
+ optionalValue: string;
22
+ placeholder: string;
23
+ accessibilityText: string;
24
+ filter: boolean;
25
+ appendTo?: string;
26
+ filterBy: string;
27
+ showClear: boolean;
28
+ forceSelection: boolean;
29
+ isRequired: boolean;
30
+ tooltipPosition: TooltipPosition;
31
+ tooltipText?: string;
32
+ formStatus?: FormStatusInterface;
33
+ nestedGroup: boolean;
34
+ isLoading: boolean;
35
+ emptyMessage?: string;
36
+ ariaFilterLabel?: string;
37
+ getValueEvent: EventEmitter<any>;
38
+ filteredOptions?: any;
39
+ suffixes: string[];
40
+ constructor(translateService: TranslateService);
41
+ getSelectedValue(event: any): void;
42
+ ngOnInit(): void;
43
+ onClear(): void;
44
+ get emptyAutocompleteMessage(): string;
45
+ get emptyFilterAutocompleteMessage(): string;
46
+ /**
47
+ * vrne aliase brez končnic, ki so definirane zgoraj + lowerCase
48
+ */
49
+ /**
50
+ * vrne besede brez končnic, ki so definirane zgoraj + lowerCase
51
+ */
52
+ normalizeSlovenianSuffixes(word: string): string;
53
+ /**
54
+ * filter metoda za p-autocomplete: vsebuje preprosto varianto fuzzy searcha
55
+ * TODO: iskanje po aliasih
56
+ */
57
+ completeMethod(event: {
58
+ query: string;
59
+ }): void;
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutocompleteComponent, never>;
61
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutocompleteComponent, "lib-autocomplete[group][controlName][name]", never, { "name": { "alias": "name"; "required": false; }; "isMultiselect": { "alias": "isMultiselect"; "required": false; }; "selectedItemLabel": { "alias": "selectedItemLabel"; "required": false; }; "group": { "alias": "group"; "required": false; }; "controlName": { "alias": "controlName"; "required": false; }; "label": { "alias": "label"; "required": false; }; "optionList": { "alias": "optionList"; "required": false; }; "optionLabel": { "alias": "optionLabel"; "required": false; }; "optionalValue": { "alias": "optionalValue"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "accessibilityText": { "alias": "accessibilityText"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "appendTo": { "alias": "appendTo"; "required": false; }; "filterBy": { "alias": "filterBy"; "required": false; }; "showClear": { "alias": "showClear"; "required": false; }; "forceSelection": { "alias": "forceSelection"; "required": false; }; "isRequired": { "alias": "isRequired"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "formStatus": { "alias": "formStatus"; "required": false; }; "nestedGroup": { "alias": "nestedGroup"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; }; "ariaFilterLabel": { "alias": "ariaFilterLabel"; "required": false; }; }, { "getValueEvent": "getValueEvent"; }, never, never, true, never>;
62
+ }
@@ -0,0 +1,50 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { PrimeNG } from 'primeng/config';
4
+ import { NalogaDTO } from '../../models/nalogaDTO';
5
+ import { ButtonColor } from '../../models/enums/button/button-color.enum';
6
+ import { ButtonSize } from '../../models/enums/button/button-size.enum';
7
+ import { SharedMessageService } from '../../services/shared-message.service';
8
+ import * as i0 from "@angular/core";
9
+ export declare class FileUploadComponent {
10
+ private config;
11
+ private sharedMessageService;
12
+ private translateService;
13
+ protected readonly ButtonSize: typeof ButtonSize;
14
+ protected readonly ButtonColor: typeof ButtonColor;
15
+ uploadedFiles: {
16
+ id: number;
17
+ objectURL: string;
18
+ name: string;
19
+ }[];
20
+ maxFileSize: number;
21
+ totalMaxFileSize: number;
22
+ disabled: boolean;
23
+ acceptFiles: string | undefined;
24
+ multiple: boolean;
25
+ onSaveFile: EventEmitter<File[]>;
26
+ onDelete: EventEmitter<number>;
27
+ onDownload: EventEmitter<{
28
+ id: number;
29
+ name: string;
30
+ objectURL: string;
31
+ }>;
32
+ valid: EventEmitter<boolean>;
33
+ fileList: File[];
34
+ totalSize: number;
35
+ index: number;
36
+ totalSizePercent: number;
37
+ selectedNaloga: NalogaDTO | undefined;
38
+ constructor(config: PrimeNG, sharedMessageService: SharedMessageService, translateService: TranslateService);
39
+ onSelectedFiles(event: any): void;
40
+ delete(fileId: number): void;
41
+ formatSize(bytes: any): string;
42
+ choose(event: any, callback: any): void;
43
+ remove(event: any): void;
44
+ onRemoveTemplatingFile(event: any, priloga: any, removeFileCallback: any, index: any): void;
45
+ downloadFile(id: number, name: string, objectURL: string): void;
46
+ onClearTemplatingUpload(): void;
47
+ private calculateFileSize;
48
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
49
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "app-file-upload", never, { "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; }; }, { "onSaveFile": "onSaveFile"; "onDelete": "onDelete"; "onDownload": "onDownload"; "valid": "valid"; }, never, never, true, never>;
50
+ }
@@ -0,0 +1,12 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import * as i0 from "@angular/core";
4
+ export declare class NoDataFoundComponent implements OnInit {
5
+ private translateService;
6
+ message: string;
7
+ alternativeMessage: boolean;
8
+ constructor(translateService: TranslateService);
9
+ ngOnInit(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<NoDataFoundComponent, never>;
11
+ static ɵcmp: i0.ɵɵComponentDeclaration<NoDataFoundComponent, "lib-no-data-found", never, { "message": { "alias": "message"; "required": false; }; "alternativeMessage": { "alias": "alternativeMessage"; "required": false; }; }, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,35 @@
1
+ import { EventEmitter, OnChanges } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
3
+ import { TableColumn } from '../../models/interaces/table/table-column.interface';
4
+ import { LocalStorageService } from '../../public-api';
5
+ import * as i0 from "@angular/core";
6
+ interface ColumnContainers {
7
+ id: number;
8
+ items: TableColumn[];
9
+ }
10
+ export declare class TableColumnSelectComponent implements OnChanges {
11
+ private localStorageService;
12
+ private translateService;
13
+ columns: TableColumn[];
14
+ defaultColumns: TableColumn[];
15
+ enableResizableColumns: boolean;
16
+ pregled: string;
17
+ updateColumns: EventEmitter<TableColumn[]>;
18
+ updateResizableColumns: EventEmitter<boolean>;
19
+ selectedColumns: TableColumn[];
20
+ draggedTask: TableColumn;
21
+ dropContainers: ColumnContainers[];
22
+ enableResizableColumnsLocalStorageKey: string;
23
+ constructor(localStorageService: LocalStorageService, translateService: TranslateService);
24
+ ngOnChanges(): void;
25
+ visible: boolean;
26
+ showDialog(): void;
27
+ changeValue(): void;
28
+ dragStart(task: TableColumn): void;
29
+ drop(id: number): void;
30
+ onReset(): void;
31
+ setColumns(setDefault: boolean): void;
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableColumnSelectComponent, never>;
33
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableColumnSelectComponent, "table-column-select", never, { "columns": { "alias": "columns"; "required": false; }; "defaultColumns": { "alias": "defaultColumns"; "required": false; }; "enableResizableColumns": { "alias": "enableResizableColumns"; "required": false; }; "pregled": { "alias": "pregled"; "required": false; }; }, { "updateColumns": "updateColumns"; "updateResizableColumns": "updateResizableColumns"; }, never, never, true, never>;
34
+ }
35
+ export {};
@@ -0,0 +1,21 @@
1
+ import { AfterViewInit, OnDestroy } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class TinymceEditorComponent implements AfterViewInit, OnDestroy, ControlValueAccessor {
5
+ editorId: string;
6
+ content: string;
7
+ private editor;
8
+ onChange: (content: string) => void;
9
+ onTouched: () => void;
10
+ writeValue(content: string): void;
11
+ registerOnChange(fn: any): void;
12
+ registerOnTouched(fn: any): void;
13
+ ngAfterViewInit(): void;
14
+ /**
15
+ * ker ima styles.css dodan anticache (npr. styles.f4479a007049fba8.css), dobi ustrezen css iz končnega htmlja
16
+ */
17
+ getCorrectCssPath(): string;
18
+ ngOnDestroy(): void;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<TinymceEditorComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<TinymceEditorComponent, "lib-tinymce-editor", never, { "editorId": { "alias": "editorId"; "required": false; }; }, {}, never, never, true, never>;
21
+ }
@@ -0,0 +1,87 @@
1
+ /**
2
+ * Naloge API
3
+ *
4
+ *
5
+ *
6
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
7
+ * https://openapi-generator.tech
8
+ * Do not edit the class manually.
9
+ */
10
+ import { PrilogaDTO } from './prilogaDTO';
11
+ import { UporabnikDTO } from './uporabnikDTO';
12
+ import { NaslovnikDTO } from './naslovnikDTO';
13
+ export interface DokumentDTO {
14
+ /**
15
+ * Datum in čas nastanka
16
+ */
17
+ createdAt?: string;
18
+ /**
19
+ * Ustvaril
20
+ */
21
+ createdBy?: string;
22
+ /**
23
+ * Datum posodobitve
24
+ */
25
+ updatedAt?: string;
26
+ /**
27
+ * Posodobil
28
+ */
29
+ updatedBy?: string;
30
+ /**
31
+ * Datum izbrisa
32
+ */
33
+ deletedAt?: string;
34
+ /**
35
+ * Izbrisal
36
+ */
37
+ deletedBy?: string;
38
+ /**
39
+ * Verzija zapisa
40
+ */
41
+ version?: number;
42
+ id?: number;
43
+ klasifikacijskaStevilka?: string;
44
+ naslovDokumenta: string;
45
+ posiljatelj?: string;
46
+ idZadeve: number;
47
+ /**
48
+ * ID dokumenta iz sistema Krpan.
49
+ */
50
+ krpanId?: number;
51
+ cehStorageId?: string;
52
+ datumPovratnice?: string;
53
+ datumIzvrsljivosti?: string;
54
+ datumOdposiljanja?: string;
55
+ statusId?: number;
56
+ status?: string;
57
+ tipDokumentaId: number;
58
+ tipDokumenta?: string;
59
+ vrstaDokumentaId: number;
60
+ vrstaDokumenta?: string;
61
+ urlDatoteke?: string;
62
+ podtipDokumentaId?: number;
63
+ podtipDokumenta?: string;
64
+ /**
65
+ * Številka dokumenta.
66
+ */
67
+ stDokumenta?: string;
68
+ /**
69
+ * Vir dokumenta.
70
+ */
71
+ vir?: string;
72
+ datumDokumenta?: string;
73
+ datumPrejema?: string;
74
+ predvideniDatumVrocitve?: string;
75
+ nacinPosiljanja?: string;
76
+ krpanStatus?: string;
77
+ idNaloge?: number;
78
+ priloge?: Array<PrilogaDTO>;
79
+ podpisniki?: Array<UporabnikDTO>;
80
+ naslovniki?: Array<NaslovnikDTO>;
81
+ /**
82
+ * ID nadrejene predloge
83
+ */
84
+ predlogaId?: number;
85
+ idEntitete?: number;
86
+ tipEntitete?: string;
87
+ }
@@ -0,0 +1,11 @@
1
+ interface Link {
2
+ title: string;
3
+ accessibleTitle: string;
4
+ }
5
+ export interface Breadcrumbs {
6
+ mainLink: Link;
7
+ firstNestedLink: Link;
8
+ secondNestedLink: Link;
9
+ thirdNestedLink: Link;
10
+ }
11
+ export {};
@@ -0,0 +1,6 @@
1
+ export interface FilterItemsDefiniton {
2
+ fieldName: string;
3
+ displayedName: string;
4
+ fieldType: "boolean" | "string" | "date" | "select" | "multi-select" | "button";
5
+ selectFieldName?: string;
6
+ }
@@ -0,0 +1,4 @@
1
+ export interface ItemChecked<T> {
2
+ item: T;
3
+ checked: boolean;
4
+ }
@@ -0,0 +1,10 @@
1
+ export interface City {
2
+ label: string;
3
+ value: string;
4
+ latitude: number;
5
+ longitude: number;
6
+ }
7
+ export interface AdministrativeUnit {
8
+ label: string;
9
+ items: City[];
10
+ }
@@ -0,0 +1,5 @@
1
+ export interface ServiceListItem {
2
+ id: number;
3
+ serviceName: string;
4
+ detailsUrl?: string;
5
+ }
@@ -0,0 +1,10 @@
1
+ interface AdministrativeProcedure {
2
+ id: number;
3
+ serviceName: string;
4
+ detailsUrl: string | null;
5
+ }
6
+ export interface ServiceList {
7
+ numberOfPeople: number;
8
+ administrativeProcedure: AdministrativeProcedure;
9
+ }
10
+ export {};
@@ -0,0 +1,8 @@
1
+ export interface DropdownOption {
2
+ label: string;
3
+ items: DropdownSubOption[];
4
+ }
5
+ export interface DropdownSubOption {
6
+ label: string;
7
+ serviceIds: number[];
8
+ }
@@ -0,0 +1,15 @@
1
+ export interface TableColumn {
2
+ field: string;
3
+ width?: string;
4
+ header: string;
5
+ position: number;
6
+ show: boolean;
7
+ type: "date" | "text" | "icon" | "button" | "checkbox" | "multiselect" | "radiobutton" | "datetime" | "boolean";
8
+ filterType?: "select" | "text" | "date" | "button" | "boolean";
9
+ selectList?: any;
10
+ class?: string;
11
+ selectOptionName?: string;
12
+ icon?: string;
13
+ iconColor?: string;
14
+ tooltipText?: string;
15
+ }
@@ -0,0 +1,6 @@
1
+ export interface TableHeader {
2
+ name: string;
3
+ width?: {
4
+ [p: string]: any;
5
+ } | null;
6
+ }