fas-admin 0.0.101 → 0.0.111
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/api/api-services/platform-user-invoice-data.service.d.ts +16 -0
- package/api/platform-user-company-invoice-data-vm.model.d.ts +14 -0
- package/api/platform-user-invoice-data-um.model.d.ts +11 -0
- package/esm2022/api/api-services/platform-user-invoice-data.service.mjs +42 -0
- package/esm2022/api/platform-user-company-invoice-data-vm.model.mjs +2 -0
- package/esm2022/api/platform-user-invoice-data-um.model.mjs +2 -0
- package/esm2022/lib/components/layout/side-bar/side-bar.component.mjs +5 -3
- package/esm2022/lib/components/views/users/users-details/users-details.component.mjs +4 -3
- package/esm2022/lib/components/views/users/users-invoice-data/users-invoice-data.component.mjs +109 -0
- package/esm2022/lib/components/views/users/users.module.mjs +8 -1
- package/esm2022/lib/fas-admin.component.mjs +15 -3
- package/esm2022/lib/shared/models/fas-admin-models.mjs +1 -1
- package/fesm2022/fas-admin.mjs +202 -48
- package/fesm2022/fas-admin.mjs.map +1 -1
- package/lib/components/layout/side-bar/side-bar.component.d.ts +3 -2
- package/lib/components/views/users/users-invoice-data/users-invoice-data.component.d.ts +30 -0
- package/lib/components/views/users/users.module.d.ts +25 -23
- package/lib/fas-admin.component.d.ts +3 -1
- package/lib/shared/models/fas-admin-models.d.ts +16 -0
- package/package.json +1 -1
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { IFASButtonList } from '../../../shared/models/fas-admin-models';
|
|
1
|
+
import { IFASButtonList, IFASSidebarSection } from '../../../shared/models/fas-admin-models';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class SideBarComponent {
|
|
4
4
|
private sidebarToggleService;
|
|
5
5
|
isSidebarOpen: boolean;
|
|
6
6
|
defaultButtonList?: IFASButtonList[];
|
|
7
7
|
specButtonList?: IFASButtonList[];
|
|
8
|
+
sidebarSections?: IFASSidebarSection[];
|
|
8
9
|
ngOnInit(): void;
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<SideBarComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SideBarComponent, "app-side-bar", never, { "defaultButtonList": { "alias": "defaultButtonList"; "required": false; }; "specButtonList": { "alias": "specButtonList"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SideBarComponent, "app-side-bar", never, { "defaultButtonList": { "alias": "defaultButtonList"; "required": false; }; "specButtonList": { "alias": "specButtonList"; "required": false; }; "sidebarSections": { "alias": "sidebarSections"; "required": false; }; }, {}, never, never, false, never>;
|
|
11
12
|
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormGroup } from '@angular/forms';
|
|
3
|
+
import { IPlatformUserCompanyInvoiceDataVm } from '../../../../../api/platform-user-company-invoice-data-vm.model';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
interface CompanyInvoiceDataRow {
|
|
6
|
+
vm: IPlatformUserCompanyInvoiceDataVm;
|
|
7
|
+
form: FormGroup;
|
|
8
|
+
saving: boolean;
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* Zakładka "Dane do faktury" w szczegółach użytkownika: dane do faktury każdej firmy,
|
|
12
|
+
* do której należy użytkownik, edytowane przez operatora platformy. Przeładowuje się
|
|
13
|
+
* przy przejściu na innego użytkownika strzałkami (zmiana wejścia userGuid).
|
|
14
|
+
*/
|
|
15
|
+
export declare class UsersInvoiceDataComponent implements OnChanges {
|
|
16
|
+
userGuid: string;
|
|
17
|
+
private _platformUserInvoiceDataService;
|
|
18
|
+
private _messageService;
|
|
19
|
+
private _fb;
|
|
20
|
+
loading: boolean;
|
|
21
|
+
rows: CompanyInvoiceDataRow[];
|
|
22
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
23
|
+
private load;
|
|
24
|
+
private buildForm;
|
|
25
|
+
save(row: CompanyInvoiceDataRow): void;
|
|
26
|
+
cancel(row: CompanyInvoiceDataRow): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UsersInvoiceDataComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UsersInvoiceDataComponent, "lib-users-invoice-data", never, { "userGuid": { "alias": "userGuid"; "required": false; }; }, {}, never, never, false, never>;
|
|
29
|
+
}
|
|
30
|
+
export {};
|
|
@@ -2,30 +2,32 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./users-add-subscriptions/users-add-subscriptions.component";
|
|
3
3
|
import * as i2 from "./users-add-user/users-add-user.component";
|
|
4
4
|
import * as i3 from "./users-details/users-details.component";
|
|
5
|
-
import * as i4 from "./users-
|
|
6
|
-
import * as i5 from "./users.component";
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "primeng/
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "
|
|
14
|
-
import * as i13 from "primeng/
|
|
15
|
-
import * as i14 from "primeng/
|
|
16
|
-
import * as i15 from "primeng/
|
|
17
|
-
import * as i16 from "primeng/
|
|
18
|
-
import * as i17 from "primeng/
|
|
19
|
-
import * as i18 from "primeng/
|
|
20
|
-
import * as i19 from "primeng/
|
|
21
|
-
import * as i20 from "
|
|
22
|
-
import * as i21 from "
|
|
23
|
-
import * as i22 from "primeng/
|
|
24
|
-
import * as i23 from "primeng/
|
|
25
|
-
import * as i24 from "primeng/
|
|
26
|
-
import * as i25 from "
|
|
5
|
+
import * as i4 from "./users-invoice-data/users-invoice-data.component";
|
|
6
|
+
import * as i5 from "./users-list/users-list.component";
|
|
7
|
+
import * as i6 from "./users.component";
|
|
8
|
+
import * as i7 from "fas-services";
|
|
9
|
+
import * as i8 from "primeng/progressspinner";
|
|
10
|
+
import * as i9 from "@angular/forms";
|
|
11
|
+
import * as i10 from "primeng/inputnumber";
|
|
12
|
+
import * as i11 from "primeng/multiselect";
|
|
13
|
+
import * as i12 from "@angular/common/http";
|
|
14
|
+
import * as i13 from "primeng/fileupload";
|
|
15
|
+
import * as i14 from "primeng/calendar";
|
|
16
|
+
import * as i15 from "primeng/checkbox";
|
|
17
|
+
import * as i16 from "primeng/dropdown";
|
|
18
|
+
import * as i17 from "primeng/stepper";
|
|
19
|
+
import * as i18 from "primeng/tabview";
|
|
20
|
+
import * as i19 from "primeng/confirmdialog";
|
|
21
|
+
import * as i20 from "primeng/dialog";
|
|
22
|
+
import * as i21 from "@angular/common";
|
|
23
|
+
import * as i22 from "primeng/toast";
|
|
24
|
+
import * as i23 from "primeng/table";
|
|
25
|
+
import * as i24 from "primeng/tooltip";
|
|
26
|
+
import * as i25 from "primeng/inputtext";
|
|
27
|
+
import * as i26 from "primeng/button";
|
|
28
|
+
import * as i27 from "../../../shared/components/subscription-tag/subscription-tag.component";
|
|
27
29
|
export declare class UsersModule {
|
|
28
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<UsersModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<UsersModule, [typeof i1.UsersAddSubscriptionsComponent, typeof i2.UsersAddUserComponent, typeof i3.UsersDetailsComponent, typeof i4.
|
|
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>;
|
|
30
32
|
static ɵinj: i0.ɵɵInjectorDeclaration<UsersModule>;
|
|
31
33
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
|
-
import { IFASAdminConfigInitializer, IFASButtonList } from './shared/models/fas-admin-models';
|
|
2
|
+
import { IFASAdminConfigInitializer, IFASButtonList, IFASSidebarSection } from './shared/models/fas-admin-models';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class FASAdminComponent implements OnInit {
|
|
5
5
|
private fasAdminService;
|
|
@@ -7,7 +7,9 @@ export declare class FASAdminComponent implements OnInit {
|
|
|
7
7
|
inputData?: IFASAdminConfigInitializer;
|
|
8
8
|
visableDefaultButtonList: IFASButtonList[];
|
|
9
9
|
specButtonList: IFASButtonList[];
|
|
10
|
+
sidebarSections: IFASSidebarSection[];
|
|
10
11
|
ngOnInit(): void;
|
|
12
|
+
private setSidebarSections;
|
|
11
13
|
private redirectUserBasedOnRole;
|
|
12
14
|
setSidebarButtons(configData: IFASAdminConfigInitializer, buttonList: IFASButtonList[], isDefaultList: boolean): IFASButtonList[];
|
|
13
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<FASAdminComponent, never>;
|
|
@@ -16,10 +16,26 @@ export interface IFASDefaultButtonsSettings {
|
|
|
16
16
|
label?: string;
|
|
17
17
|
icon?: string;
|
|
18
18
|
}
|
|
19
|
+
/** Button rendered inside a titled sidebar section (light variant, e.g. quick actions / "coming soon"). */
|
|
20
|
+
export interface IFASSidebarSectionButton {
|
|
21
|
+
label: string;
|
|
22
|
+
icon?: string;
|
|
23
|
+
/** When omitted the button is a non-navigating placeholder. */
|
|
24
|
+
routerUrl?: IFASDefaultRoutePath | string;
|
|
25
|
+
disabled?: boolean;
|
|
26
|
+
}
|
|
27
|
+
/** Titled group of light buttons rendered below the main menu in the sidebar. */
|
|
28
|
+
export interface IFASSidebarSection {
|
|
29
|
+
title: string;
|
|
30
|
+
buttons: IFASSidebarSectionButton[];
|
|
31
|
+
/** Roles that see this section; omitted = everyone. */
|
|
32
|
+
allowedRoles?: IFASUserRole[];
|
|
33
|
+
}
|
|
19
34
|
export interface IFASAdminConfigInitializer {
|
|
20
35
|
companyName: string;
|
|
21
36
|
accessRules: IFASAccessRules[] | null;
|
|
22
37
|
specButtonList?: IFASButtonList[];
|
|
38
|
+
sidebarSections?: IFASSidebarSection[];
|
|
23
39
|
customRoutes?: Route[];
|
|
24
40
|
defaultButtonSettings?: IFASDefaultButtonsSettings[];
|
|
25
41
|
redirectConfig?: IFASRedirectConfig[];
|