fas-admin 0.0.115 → 0.0.116

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.
@@ -1,9 +1,12 @@
1
1
  import { IPlatformUserAccountVm } from '../../../../../api/platform-user-account-vm.model';
2
2
  import { FASDynamicTableColumnConfig } from 'fas-services';
3
- import { OnDestroy } from '@angular/core';
3
+ import { OnDestroy, OnInit } from '@angular/core';
4
4
  import { Observable, Subject } from 'rxjs';
5
5
  import * as i0 from "@angular/core";
6
- export declare class UsersListComponent implements OnDestroy {
6
+ export declare class UsersListComponent implements OnInit, OnDestroy {
7
+ /** The list opens on the newest accounts. */
8
+ private readonly defaultSortField;
9
+ private usersTable?;
7
10
  private _platformUsersService;
8
11
  private _accountDeleteService;
9
12
  private _primengDialogService;
@@ -28,6 +31,7 @@ export declare class UsersListComponent implements OnDestroy {
28
31
  usersList: IPlatformUserAccountVm[];
29
32
  currentUser: IPlatformUserAccountVm;
30
33
  userIndex: number;
34
+ ngOnInit(): void;
31
35
  ngOnDestroy(): void;
32
36
  handleDataLoaded(data: IPlatformUserAccountVm[]): void;
33
37
  private deleteUser;
@@ -26,8 +26,9 @@ import * as i24 from "primeng/tooltip";
26
26
  import * as i25 from "primeng/inputtext";
27
27
  import * as i26 from "primeng/button";
28
28
  import * as i27 from "../../../shared/components/subscription-tag/subscription-tag.component";
29
+ import * as i28 from "../../../shared/components/phone-contact/phone-contact.component";
29
30
  export declare class UsersModule {
30
31
  static ɵfac: i0.ɵɵFactoryDeclaration<UsersModule, never>;
31
- static ɵmod: i0.ɵɵNgModuleDeclaration<UsersModule, [typeof i1.UsersAddSubscriptionsComponent, typeof i2.UsersAddUserComponent, typeof i3.UsersDetailsComponent, typeof i4.UsersInvoiceDataComponent, typeof i5.UsersListComponent, typeof i6.UsersComponent], [typeof i7.FasServiceDynamicTableComponent, typeof i8.ProgressSpinnerModule, typeof i9.ReactiveFormsModule, typeof i10.InputNumberModule, typeof i11.MultiSelectModule, typeof i12.HttpClientModule, typeof i13.FileUploadModule, typeof i14.CalendarModule, typeof i15.CheckboxModule, typeof i16.DropdownModule, typeof i17.StepperModule, typeof i18.TabViewModule, typeof i19.ConfirmDialogModule, typeof i20.DialogModule, typeof i21.CommonModule, typeof i9.FormsModule, typeof i22.ToastModule, typeof i23.TableModule, typeof i24.TooltipModule, typeof i25.InputTextModule, typeof i26.ButtonModule, typeof i14.CalendarModule, typeof i27.SubscriptionTagComponent], never>;
32
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UsersModule, [typeof i1.UsersAddSubscriptionsComponent, typeof i2.UsersAddUserComponent, typeof i3.UsersDetailsComponent, typeof i4.UsersInvoiceDataComponent, typeof i5.UsersListComponent, typeof i6.UsersComponent], [typeof i7.FasServiceDynamicTableComponent, typeof i8.ProgressSpinnerModule, typeof i9.ReactiveFormsModule, typeof i10.InputNumberModule, typeof i11.MultiSelectModule, typeof i12.HttpClientModule, typeof i13.FileUploadModule, typeof i14.CalendarModule, typeof i15.CheckboxModule, typeof i16.DropdownModule, typeof i17.StepperModule, typeof i18.TabViewModule, typeof i19.ConfirmDialogModule, typeof i20.DialogModule, typeof i21.CommonModule, typeof i9.FormsModule, typeof i22.ToastModule, typeof i23.TableModule, typeof i24.TooltipModule, typeof i25.InputTextModule, typeof i26.ButtonModule, typeof i14.CalendarModule, typeof i27.SubscriptionTagComponent, typeof i28.PhoneContactComponent], never>;
32
33
  static ɵinj: i0.ɵɵInjectorDeclaration<UsersModule>;
33
34
  }
@@ -0,0 +1,16 @@
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * A phone number with the two ways of reaching its owner: a WhatsApp chat and a call. The buttons appear only
4
+ * next to a number that can be dialled; any other text of the phone field is shown as it is.
5
+ */
6
+ export declare class PhoneContactComponent {
7
+ /** Icon-only buttons and nothing at all without a number - for table rows. */
8
+ compact: boolean;
9
+ /** The number as the user typed it. */
10
+ set phone(value: string | null | undefined);
11
+ text: string;
12
+ whatsAppUrl: string | null;
13
+ callUrl: string | null;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<PhoneContactComponent, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<PhoneContactComponent, "lib-phone-contact", never, { "compact": { "alias": "compact"; "required": false; }; "phone": { "alias": "phone"; "required": false; }; }, {}, never, never, true, never>;
16
+ }
@@ -0,0 +1,11 @@
1
+ /**
2
+ * The phone field of an account is free text, so next to real numbers it holds values like "null" (sent by a
3
+ * form that had nothing to send) - such a value is not shown at all.
4
+ */
5
+ export declare function phoneAsTyped(phone?: string | null): string;
6
+ /**
7
+ * Turns a number typed by a user ("600 100 200", "+48 600-100-200", "0048600100200", "0600100200") into the
8
+ * international form without the plus (48600100200), which is what the WhatsApp and "tel:" links need.
9
+ * Returns null when the text cannot be dialled with confidence ("500", "Poland", a number of an unknown length).
10
+ */
11
+ export declare function toInternationalPhone(phone?: string | null): string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fas-admin",
3
- "version": "0.0.115",
3
+ "version": "0.0.116",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.2.0",
6
6
  "@angular/core": "^17.2.0",