aril 1.2.55 → 1.2.57

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.
@@ -9,7 +9,7 @@ export declare class GeneralSearchComponent implements OnInit, OnDestroy {
9
9
  private readonly router;
10
10
  private readonly searchService;
11
11
  private readonly layoutService;
12
- variant: import("@angular/core").InputSignal<"topbar" | "page">;
12
+ variant: import("@angular/core").InputSignal<"page" | "topbar">;
13
13
  private autoComplete?;
14
14
  get isPageVariant(): boolean;
15
15
  query: string;
@@ -18,6 +18,8 @@ export declare class AppTopbarComponent {
18
18
  private readonly favoritePagesService;
19
19
  search: string;
20
20
  readonly recordRoute: import("@angular/core").WritableSignal<import("../../service/interfaces/interfaces").RecordRouteDTO | null>;
21
+ readonly recordPage: import("@angular/core").WritableSignal<import("../../service/interfaces/interfaces").RecordPageDTO | null>;
22
+ readonly canFollow: import("@angular/core").Signal<boolean>;
21
23
  readonly followPending: import("@angular/core").WritableSignal<boolean>;
22
24
  private readonly followRelease;
23
25
  readonly searchOnPage: import("@angular/core").Signal<boolean>;
@@ -1,104 +1,104 @@
1
- <div class="layout-topbar">
2
- <div class="topbar-start">
3
- <button #menubutton type="button" class="topbar-menubutton p-link p-trigger" (click)="onMenuButtonClick()">
4
- <i class="pi pi-bars"></i>
5
- </button>
6
- <img [src]="logoPath" class="topbar-logo" alt="logo" (click)="onLogoClick()" />
7
- @if (environmentBadge) {
8
- <span class="env-indicator" [attr.data-co]="environmentBadge.code">{{ environmentBadge.label }}</span>
9
- }
10
- </div>
11
-
12
- <div class="topbar-search" *transloco="let t; read: ''">
13
- @if (!searchOnPage()) {
14
- <span class="p-input-icon-left">
15
- <i class="pi pi-search"></i>
16
- <app-general-search></app-general-search>
17
- </span>
18
- }
19
- </div>
20
-
21
- <div class="topbar-end mr-2">
22
- <ul class="topbar-menu">
23
- <li class="topbar-menu-item">
24
- <p-button
25
- icon="pi pi-sitemap"
26
- severity="secondary"
27
- [text]="true"
28
- [rounded]="true"
29
- (click)="onSiteMapButtonClick()" />
30
- </li>
31
- <li class="topbar-menu-item">
32
- <p-button
33
- icon="pi pi-history"
34
- severity="secondary"
35
- [text]="true"
36
- [rounded]="true"
37
- (click)="onHistoryButtonClick()" />
38
- </li>
39
- @if (recordRoute()) {
40
- <li class="topbar-menu-item">
41
- <p-button
42
- [icon]="followedFavorite() ? 'pi pi-star-fill' : 'pi pi-star'"
43
- [styleClass]="followedFavorite() ? 'topbar-follow topbar-follow--on' : 'topbar-follow'"
44
- severity="secondary"
45
- [text]="true"
46
- [rounded]="true"
47
- [disabled]="followPending()"
48
- [pTooltip]="(followedFavorite() ? 'home.unfollowRecord' : 'home.followRecord') | transloco"
49
- tooltipPosition="bottom"
50
- (click)="onFollowRecordButtonClick()" />
51
- </li>
52
- }
53
- <li class="topbar-menu-item">
54
- <p-button
55
- icon="pi pi-heart"
56
- severity="secondary"
57
- [text]="true"
58
- [rounded]="true"
59
- (click)="onFavoritePagesButtonClick()" />
60
- </li>
61
-
62
- <li class="topbar-menu-item">
63
- <p-button severity="secondary" [text]="true" [rounded]="true" (click)="onProfileButtonClick()">
64
- {{ username[0] | uppercase }}
65
- </p-button>
66
- </li>
67
- <li class="topbar-menu-item">
68
- <p-divider layout="vertical" styleClass="h-1rem border-500 m-0" />
69
- </li>
70
- <li class="topbar-menu-item">
71
- <i
72
- class="pi pi-bell notification-icon"
73
- pBadge
74
- [value]="unreadCount > 0 ? unreadCount.toString() : '0'"
75
- (click)="onNotificationsButtonClick()"></i>
76
- </li>
77
- <li class="topbar-menu-item">
78
- <p-dropdown
79
- [options]="languages"
80
- [(ngModel)]="currentLang"
81
- (onChange)="onLanguageChange()"
82
- optionLabel="name"
83
- optionValue="code"
84
- [showClear]="false"
85
- class="custom-dropdown ml-3">
86
- <ng-template pTemplate="selectedItem">
87
- <div class="flex align-items-center gap-2">
88
- <img [src]="currentFlagPath" class="flag-icon" alt="flag" />
89
- <span class="language-text">{{ currentLang | uppercase }}</span>
90
- </div>
91
- </ng-template>
92
- <ng-template pTemplate="item" let-item>
93
- <div class="flex align-items-center gap-2">
94
- <img [src]="item.flag" class="flag-icon" alt="flag" />
95
- <span>{{ item.name }}</span>
96
- </div>
97
- </ng-template>
98
- </p-dropdown>
99
- </li>
100
- </ul>
101
- </div>
102
- </div>
103
-
104
- <!-- <app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb> -->
1
+ <div class="layout-topbar">
2
+ <div class="topbar-start">
3
+ <button #menubutton type="button" class="topbar-menubutton p-link p-trigger" (click)="onMenuButtonClick()">
4
+ <i class="pi pi-bars"></i>
5
+ </button>
6
+ <img [src]="logoPath" class="topbar-logo" alt="logo" (click)="onLogoClick()" />
7
+ @if (environmentBadge) {
8
+ <span class="env-indicator" [attr.data-co]="environmentBadge.code">{{ environmentBadge.label }}</span>
9
+ }
10
+ </div>
11
+
12
+ <div class="topbar-search" *transloco="let t; read: ''">
13
+ @if (!searchOnPage()) {
14
+ <span class="p-input-icon-left">
15
+ <i class="pi pi-search"></i>
16
+ <app-general-search></app-general-search>
17
+ </span>
18
+ }
19
+ </div>
20
+
21
+ <div class="topbar-end mr-2">
22
+ <ul class="topbar-menu">
23
+ <li class="topbar-menu-item">
24
+ <p-button
25
+ icon="pi pi-sitemap"
26
+ severity="secondary"
27
+ [text]="true"
28
+ [rounded]="true"
29
+ (click)="onSiteMapButtonClick()" />
30
+ </li>
31
+ <li class="topbar-menu-item">
32
+ <p-button
33
+ icon="pi pi-history"
34
+ severity="secondary"
35
+ [text]="true"
36
+ [rounded]="true"
37
+ (click)="onHistoryButtonClick()" />
38
+ </li>
39
+ @if (canFollow()) {
40
+ <li class="topbar-menu-item">
41
+ <p-button
42
+ [icon]="followedFavorite() ? 'pi pi-star-fill' : 'pi pi-star'"
43
+ [styleClass]="followedFavorite() ? 'topbar-follow topbar-follow--on' : 'topbar-follow'"
44
+ severity="secondary"
45
+ [text]="true"
46
+ [rounded]="true"
47
+ [disabled]="followPending()"
48
+ [pTooltip]="(followedFavorite() ? 'home.unfollowRecord' : 'home.followRecord') | transloco"
49
+ tooltipPosition="bottom"
50
+ (click)="onFollowRecordButtonClick()" />
51
+ </li>
52
+ }
53
+ <li class="topbar-menu-item">
54
+ <p-button
55
+ icon="pi pi-heart"
56
+ severity="secondary"
57
+ [text]="true"
58
+ [rounded]="true"
59
+ (click)="onFavoritePagesButtonClick()" />
60
+ </li>
61
+
62
+ <li class="topbar-menu-item">
63
+ <p-button severity="secondary" [text]="true" [rounded]="true" (click)="onProfileButtonClick()">
64
+ {{ username[0] | uppercase }}
65
+ </p-button>
66
+ </li>
67
+ <li class="topbar-menu-item">
68
+ <p-divider layout="vertical" styleClass="h-1rem border-500 m-0" />
69
+ </li>
70
+ <li class="topbar-menu-item">
71
+ <i
72
+ class="pi pi-bell notification-icon"
73
+ pBadge
74
+ [value]="unreadCount > 0 ? unreadCount.toString() : '0'"
75
+ (click)="onNotificationsButtonClick()"></i>
76
+ </li>
77
+ <li class="topbar-menu-item">
78
+ <p-dropdown
79
+ [options]="languages"
80
+ [(ngModel)]="currentLang"
81
+ (onChange)="onLanguageChange()"
82
+ optionLabel="name"
83
+ optionValue="code"
84
+ [showClear]="false"
85
+ class="custom-dropdown ml-3">
86
+ <ng-template pTemplate="selectedItem">
87
+ <div class="flex align-items-center gap-2">
88
+ <img [src]="currentFlagPath" class="flag-icon" alt="flag" />
89
+ <span class="language-text">{{ currentLang | uppercase }}</span>
90
+ </div>
91
+ </ng-template>
92
+ <ng-template pTemplate="item" let-item>
93
+ <div class="flex align-items-center gap-2">
94
+ <img [src]="item.flag" class="flag-icon" alt="flag" />
95
+ <span>{{ item.name }}</span>
96
+ </div>
97
+ </ng-template>
98
+ </p-dropdown>
99
+ </li>
100
+ </ul>
101
+ </div>
102
+ </div>
103
+
104
+ <!-- <app-breadcrumb class="topbar-breadcrumb"></app-breadcrumb> -->
@@ -157,11 +157,15 @@ export interface BreadcrumbUpdatedDTO {
157
157
  }[];
158
158
  };
159
159
  }
160
- export type RecordTypeCode = 'ServicePoint' | 'Account' | 'BusinessPartner' | 'Invoice' | 'Meter' | 'WorkOrder';
160
+ export type RecordTypeCode = 'ServicePoint' | 'Account' | 'BusinessPartner' | 'Invoice' | 'Meter' | 'WorkOrder' | 'Contract' | 'Accrual' | 'Premise' | 'ConnectionPoint' | 'Location' | 'ServicePointGroup';
161
161
  export interface RecordRouteDTO {
162
162
  type: RecordTypeCode;
163
163
  id: string;
164
164
  }
165
+ export interface RecordPageDTO {
166
+ number: string;
167
+ title: string;
168
+ }
165
169
  export type RecordStatusTag = 'stuck' | 'warning' | 'waiting' | 'progress' | 'current' | 'closed';
166
170
  export interface RecordStatusDTO {
167
171
  tag: RecordStatusTag;
@@ -217,6 +221,13 @@ export interface RecordWorkOrderDTO {
217
221
  number?: string | null;
218
222
  } | null;
219
223
  }
224
+ export interface RecordAccrualDTO {
225
+ accrualId?: number;
226
+ title?: string | null;
227
+ accrualStatus?: string | null;
228
+ startDate?: number | null;
229
+ totalAmount?: number | null;
230
+ }
220
231
  export interface RecordUnpaidSummaryDTO {
221
232
  totalUnpaidDebtSummaryDetail?: {
222
233
  debtCount?: number | null;
@@ -1,8 +1,9 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { RestClient, ServiceCallStateMap, ServiceResponse } from 'aril/http';
3
3
  import 'aril/util/primitive-extensions';
4
- import { RecordAssetDTO, RecordInvoiceDTO, RecordQueryResultDTO, RecordRouteDTO, RecordSummaryDTO, RecordTypeCode, RecordUnpaidSummaryDTO, RecordWorkOrderDTO, SelectionGroupDTO, SelectionRequestDTO } from './interfaces/interfaces';
4
+ import { RecordAccrualDTO, RecordAssetDTO, RecordInvoiceDTO, RecordQueryResultDTO, RecordRouteDTO, RecordSummaryDTO, RecordTypeCode, RecordUnpaidSummaryDTO, RecordWorkOrderDTO, SelectionGroupDTO, SelectionRequestDTO } from './interfaces/interfaces';
5
5
  import * as i0 from "@angular/core";
6
+ export declare const RECORD_ID_SEGMENT: RegExp;
6
7
  export declare const RECORD_TYPE_LABEL_KEYS: Record<RecordTypeCode, string>;
7
8
  export declare const RECORD_TYPE_ICONS: Record<RecordTypeCode, string>;
8
9
  /**
@@ -17,16 +18,22 @@ export declare class RecordSummaryService extends RestClient {
17
18
  getAsset(id: string): Observable<ServiceResponse<RecordAssetDTO>>;
18
19
  queryAssets(post: object): Observable<ServiceResponse<RecordQueryResultDTO>>;
19
20
  getInvoice(id: string): Observable<ServiceResponse<RecordInvoiceDTO>>;
21
+ getAccrual(id: string): Observable<ServiceResponse<RecordAccrualDTO>>;
20
22
  getWorkOrder(id: string): Observable<ServiceResponse<RecordWorkOrderDTO>>;
21
23
  searchUnpaidSummary(post: {
22
24
  accountIds: number[];
23
25
  }): Observable<ServiceResponse<RecordUnpaidSummaryDTO>>;
24
26
  loadSelectionGroup(post: SelectionRequestDTO): Observable<ServiceResponse<SelectionGroupDTO>>;
25
27
  match(url: string): RecordRouteDTO | null;
28
+ isRecordPath(url: string): boolean;
26
29
  private recordId;
27
30
  resolve(route: RecordRouteDTO, withStatus?: boolean): Observable<RecordSummaryDTO | null>;
28
31
  private goneRecord;
29
32
  private describe;
33
+ private describeContract;
34
+ private describeAccrual;
35
+ private describeAsset;
36
+ private assetStatus;
30
37
  private describeServicePoint;
31
38
  private describeAccount;
32
39
  private describeBusinessPartner;
@@ -1,6 +1,6 @@
1
1
  import { Observable } from 'rxjs';
2
2
  import { RestClient, ServiceCallStateMap, ServiceResponse } from 'aril/http';
3
- import { RecordRouteDTO, RecordSummaryDTO, ScreenVisitSaveRequestDTO, ScreenVisitSummaryDTO } from './interfaces/interfaces';
3
+ import { RecordPageDTO, RecordRouteDTO, RecordSummaryDTO, ScreenVisitSaveRequestDTO, ScreenVisitSummaryDTO } from './interfaces/interfaces';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Logs every screen opening of the session user for the "recent activity" card of the home page.
@@ -14,6 +14,7 @@ export declare class ScreenVisitService extends RestClient {
14
14
  readonly currentUrl: import("@angular/core").WritableSignal<string>;
15
15
  readonly currentRecordRoute: import("@angular/core").WritableSignal<RecordRouteDTO | null>;
16
16
  readonly currentRecord: import("@angular/core").WritableSignal<RecordSummaryDTO | null>;
17
+ readonly currentRecordPage: import("@angular/core").WritableSignal<RecordPageDTO | null>;
17
18
  private readonly router;
18
19
  private readonly pubSubService;
19
20
  private readonly recordSummaryService;
@@ -13,6 +13,7 @@ export declare class ExportOverlayPanelComponent {
13
13
  translocoService: TranslocoService;
14
14
  private selectionGroupService;
15
15
  op: OverlayPanel;
16
+ private destroyed$;
16
17
  /**
17
18
  * @see {@link ExportOptions}
18
19
  */
@@ -31,6 +32,8 @@ export declare class ExportOverlayPanelComponent {
31
32
  get hostUrl(): string;
32
33
  get currentPageReportText(): string;
33
34
  export(): Promise<void>;
35
+ private waitForExportUrl;
36
+ private showExportingMessage;
34
37
  onSelectAll(value: boolean): void;
35
38
  nativateToExportRequests(): void;
36
39
  toggleExport: (event: Event) => void;
@@ -33,7 +33,7 @@ import { FormArray, FormControl, FormGroup } from '@angular/forms';
33
33
  * }">
34
34
  * ```
35
35
  */
36
- export interface ExportOptions extends Omit<ExportRequest, 'exportType'> {
36
+ export interface ExportOptions extends Omit<ExportRequest, 'exportType' | 'background'> {
37
37
  excludedFields?: string[];
38
38
  /**
39
39
  * Tabloda kolon olarak bulunmayan ama export'a girmesi istenen alanlar. Export penceresindeki
@@ -76,6 +76,15 @@ export interface ExportRequest {
76
76
  dateColumnFormatMap?: DateColumnFormatMap;
77
77
  computedColumnMap?: ComputedColumnMap;
78
78
  numberColumnScaleMap?: NumberColumnScaleValue;
79
+ /** Lets the server answer with a job id instead of holding the request until the file is ready. */
80
+ background?: boolean;
81
+ }
82
+ /** `running` with a `jobId` means the file is still being prepared; `url` is set once it is ready. */
83
+ export interface ExportResponse {
84
+ success: boolean;
85
+ url?: string;
86
+ jobId?: number;
87
+ running?: boolean;
79
88
  }
80
89
  export interface ExportForm {
81
90
  exportType: FormControl<ExportType>;
@@ -24,7 +24,7 @@ export declare class TableComponent {
24
24
  checkboxSelection: import("@angular/core").InputSignal<boolean | undefined>;
25
25
  radioButtonSelection: import("@angular/core").InputSignal<boolean | undefined>;
26
26
  headerCheckboxSelection: import("@angular/core").InputSignal<boolean | undefined>;
27
- pageSize: import("@angular/core").InputSignal<5 | 10 | 1000 | 500 | 20 | 50 | 100>;
27
+ pageSize: import("@angular/core").InputSignal<1000 | 5 | 10 | 500 | 20 | 50 | 100>;
28
28
  proxy: import("@angular/core").InputSignal<ProxyTypes>;
29
29
  showFooter: import("@angular/core").InputSignal<boolean>;
30
30
  tAlign: import("@angular/core").InputSignal<AlignTypes>;