fas-admin 0.0.67 → 0.0.68
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/platform-subscription-plan-im.model.d.ts +2 -0
- package/api/platform-subscription-plan-um.model.d.ts +1 -0
- package/api/platform-subscription-plan-vm.model.d.ts +1 -0
- package/esm2022/api/platform-subscription-plan-im.model.mjs +1 -1
- package/esm2022/api/platform-subscription-plan-um.model.mjs +1 -1
- package/esm2022/api/platform-subscription-plan-vm.model.mjs +1 -1
- package/esm2022/lib/components/views/subscriptions/subscription-form/subscription-form.component.mjs +263 -0
- package/esm2022/lib/components/views/subscriptions/subscriptions-add-new/subscriptions-add-new.component.mjs +24 -164
- package/esm2022/lib/components/views/subscriptions/subscriptions-details/subscriptions-details.component.mjs +46 -32
- package/esm2022/lib/components/views/subscriptions/subscriptions-list/subscriptions-list.component.mjs +4 -3
- package/esm2022/lib/components/views/subscriptions/subscriptions-tag-color-creator/subscriptions-tag-color-creator.component.mjs +19 -9
- package/esm2022/lib/components/views/subscriptions/subscriptions.module.mjs +4 -1
- package/esm2022/lib/fas-admin.module.mjs +3 -3
- package/fesm2022/fas-admin.mjs +359 -217
- package/fesm2022/fas-admin.mjs.map +1 -1
- package/lib/components/views/subscriptions/subscription-form/subscription-form.component.d.ts +41 -0
- package/lib/components/views/subscriptions/subscriptions-add-new/subscriptions-add-new.component.d.ts +8 -32
- package/lib/components/views/subscriptions/subscriptions-details/subscriptions-details.component.d.ts +12 -2
- package/lib/components/views/subscriptions/subscriptions-tag-color-creator/subscriptions-tag-color-creator.component.d.ts +5 -5
- package/lib/components/views/subscriptions/subscriptions.module.d.ts +18 -17
- package/package.json +1 -1
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { FormControl, FormGroup } from '@angular/forms';
|
|
2
|
+
import { IPlatformSubscriptionPlanVm } from '../../../../../api/platform-subscription-plan-vm.model';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
interface IDynamicSubscriptionForm {
|
|
5
|
+
name: string;
|
|
6
|
+
label: string;
|
|
7
|
+
type: 'input-string' | 'dropdown' | 'input-number' | 'checkbox' | 'calendar' | 'textarea';
|
|
8
|
+
fieldWidth?: string;
|
|
9
|
+
labelWidth?: string;
|
|
10
|
+
dropdownoptions?: any[];
|
|
11
|
+
placeholder?: string;
|
|
12
|
+
fieldTooltip?: string;
|
|
13
|
+
inputNumberSettings?: {
|
|
14
|
+
maxFractionDigits?: number;
|
|
15
|
+
minFractionDigits?: number;
|
|
16
|
+
currencyField?: boolean;
|
|
17
|
+
};
|
|
18
|
+
initialValue: string | null | boolean | number;
|
|
19
|
+
}
|
|
20
|
+
export declare class SubscriptionFormComponent {
|
|
21
|
+
subscriptionDetailsFormGroup: FormGroup;
|
|
22
|
+
private _fb;
|
|
23
|
+
private controlContainer;
|
|
24
|
+
get fc(): {
|
|
25
|
+
[key: string]: FormControl;
|
|
26
|
+
};
|
|
27
|
+
formFields: IDynamicSubscriptionForm[];
|
|
28
|
+
editMode: import("@angular/core").ModelSignal<boolean>;
|
|
29
|
+
currentSubscriptionData: import("@angular/core").ModelSignal<IPlatformSubscriptionPlanVm | null>;
|
|
30
|
+
constructor();
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
trimInput(controlName: string): void;
|
|
33
|
+
private buildForm;
|
|
34
|
+
patchFormValues(): void;
|
|
35
|
+
private generateNumberOptions;
|
|
36
|
+
private updateFieldStates;
|
|
37
|
+
private setFormFields;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionFormComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionFormComponent, "lib-subscription-form", never, { "editMode": { "alias": "editMode"; "required": false; "isSignal": true; }; "currentSubscriptionData": { "alias": "currentSubscriptionData"; "required": false; "isSignal": true; }; }, { "editMode": "editModeChange"; "currentSubscriptionData": "currentSubscriptionDataChange"; }, never, never, false, never>;
|
|
40
|
+
}
|
|
41
|
+
export {};
|
|
@@ -1,47 +1,23 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormGroup } from '@angular/forms';
|
|
2
2
|
import { OnInit } from '@angular/core';
|
|
3
3
|
import { eModalRoles } from '../../../../shared/models/modals';
|
|
4
|
-
import { IPlatformSubscriptionPlanIm } from '../../../../../api/platform-subscription-plan-im.model';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
export declare class SubscriptionsAddNewComponent implements OnInit {
|
|
7
|
-
|
|
8
|
-
private _fb;
|
|
6
|
+
dynamicForm: FormGroup;
|
|
9
7
|
private _dialogRef;
|
|
10
8
|
private _platformSubscriptionService;
|
|
11
9
|
private _messageService;
|
|
12
10
|
loading: boolean;
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
fieldWidth?: string;
|
|
19
|
-
dropdownoptions?: any[];
|
|
20
|
-
placeholder?: string;
|
|
21
|
-
fieldTooltip?: string;
|
|
22
|
-
inputNumberSettings?: {
|
|
23
|
-
maxFractionDigits?: number;
|
|
24
|
-
minFractionDigits?: number;
|
|
25
|
-
currencyField?: boolean;
|
|
26
|
-
};
|
|
27
|
-
}[];
|
|
28
|
-
get fc(): {
|
|
29
|
-
[key: string]: FormControl;
|
|
30
|
-
};
|
|
31
|
-
private selectedColors;
|
|
11
|
+
selectedColors: import("@angular/core").WritableSignal<{
|
|
12
|
+
bgColor: string;
|
|
13
|
+
fgColor: string;
|
|
14
|
+
} | null>;
|
|
15
|
+
get planNameValue(): string;
|
|
32
16
|
ngOnInit(): void;
|
|
33
|
-
trimInput(controlName: string): void;
|
|
34
17
|
closeDialog(status?: eModalRoles): void;
|
|
35
18
|
saveNewSubscriptionPlan(): void;
|
|
36
|
-
setColors(event: {
|
|
37
|
-
bgColor: string;
|
|
38
|
-
fgColor: string;
|
|
39
|
-
}): void;
|
|
40
|
-
private buildForm;
|
|
41
|
-
getInitialValue(type: 'input-string' | 'dropdown' | 'input-number' | 'checkbox' | 'calendar' | 'textarea'): null | number | string | boolean;
|
|
42
|
-
private generateNumberOptions;
|
|
43
19
|
private handleSuccess;
|
|
44
20
|
private handleError;
|
|
45
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionsAddNewComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionsAddNewComponent, "lib-subscriptions-add-new", never, {
|
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionsAddNewComponent, "lib-subscriptions-add-new", never, {}, {}, never, never, false, never>;
|
|
47
23
|
}
|
|
@@ -10,16 +10,26 @@ export declare class SubscriptionsDetailsComponent implements OnInit, OnDestroy
|
|
|
10
10
|
data: {
|
|
11
11
|
currentSubscriptionIndex: number;
|
|
12
12
|
subscriptionListPerPage: IPlatformSubscriptionPlanVm[];
|
|
13
|
+
editMode: boolean;
|
|
13
14
|
};
|
|
14
15
|
currentSubscriptionIndex: number;
|
|
15
|
-
|
|
16
|
+
dynamicForm: FormGroup;
|
|
17
|
+
selectedColors: import("@angular/core").WritableSignal<{
|
|
18
|
+
bgColor: string;
|
|
19
|
+
fgColor: string;
|
|
20
|
+
} | null>;
|
|
21
|
+
currentSubscriptionData: import("@angular/core").WritableSignal<IPlatformSubscriptionPlanVm>;
|
|
16
22
|
ngOnInit(): void;
|
|
17
23
|
closeDialog(status?: eModalRoles): void;
|
|
18
24
|
ngOnDestroy(): void;
|
|
19
|
-
|
|
25
|
+
setEditMode(): void;
|
|
26
|
+
saveChanges(): void;
|
|
27
|
+
cancelChanges(): void;
|
|
20
28
|
moveUp(): void;
|
|
21
29
|
moveDown(): void;
|
|
22
30
|
getSubscriptionPeriod(intervalMonths: number, intervalDays: number, isOneTimePayment: boolean): string;
|
|
31
|
+
private setOriginalColors;
|
|
32
|
+
private setOrginalSubscriptionData;
|
|
23
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionsDetailsComponent, never>;
|
|
24
34
|
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionsDetailsComponent, "lib-subscriptions-details", never, {}, {}, never, never, false, never>;
|
|
25
35
|
}
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
1
|
import * as i0 from "@angular/core";
|
|
3
2
|
export declare class SubscriptionsTagColorCreatorComponent {
|
|
4
3
|
planName: string;
|
|
5
4
|
disabled: boolean;
|
|
6
|
-
|
|
5
|
+
selectedColors: import("@angular/core").ModelSignal<{
|
|
7
6
|
bgColor: string;
|
|
8
7
|
fgColor: string;
|
|
9
|
-
}>;
|
|
8
|
+
} | null>;
|
|
10
9
|
colors: string[];
|
|
11
10
|
selectedBackgroundColor: string;
|
|
12
|
-
selectBackgroundColor(color: string): void;
|
|
13
11
|
selectedTextColor: string;
|
|
12
|
+
constructor();
|
|
13
|
+
selectBackgroundColor(color: string): void;
|
|
14
14
|
selectTextColor(color: string): void;
|
|
15
15
|
getContrastingColor(hex: string): string;
|
|
16
16
|
private emitColors;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionsTagColorCreatorComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionsTagColorCreatorComponent, "lib-subscriptions-tag-color-creator", never, { "planName": { "alias": "planName"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SubscriptionsTagColorCreatorComponent, "lib-subscriptions-tag-color-creator", never, { "planName": { "alias": "planName"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "selectedColors": { "alias": "selectedColors"; "required": false; "isSignal": true; }; }, { "selectedColors": "selectedColorsChange"; }, never, never, false, never>;
|
|
19
19
|
}
|
|
@@ -3,24 +3,25 @@ import * as i1 from "./subscriptions-tag-color-creator/subscriptions-tag-color-c
|
|
|
3
3
|
import * as i2 from "./subscriptions-details/subscriptions-details.component";
|
|
4
4
|
import * as i3 from "./subscriptions-add-new/subscriptions-add-new.component";
|
|
5
5
|
import * as i4 from "./subscriptions-list/subscriptions-list.component";
|
|
6
|
-
import * as i5 from "./
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "@angular/
|
|
9
|
-
import * as i8 from "
|
|
10
|
-
import * as i9 from "
|
|
11
|
-
import * as i10 from "primeng/
|
|
12
|
-
import * as i11 from "primeng/
|
|
13
|
-
import * as i12 from "primeng/
|
|
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 "primeng/
|
|
6
|
+
import * as i5 from "./subscription-form/subscription-form.component";
|
|
7
|
+
import * as i6 from "./subscriptions.component";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "@angular/forms";
|
|
10
|
+
import * as i9 from "fas-services";
|
|
11
|
+
import * as i10 from "primeng/dynamicdialog";
|
|
12
|
+
import * as i11 from "primeng/button";
|
|
13
|
+
import * as i12 from "primeng/checkbox";
|
|
14
|
+
import * as i13 from "primeng/tabview";
|
|
15
|
+
import * as i14 from "primeng/dialog";
|
|
16
|
+
import * as i15 from "primeng/table";
|
|
17
|
+
import * as i16 from "primeng/inputtext";
|
|
18
|
+
import * as i17 from "primeng/dropdown";
|
|
19
|
+
import * as i18 from "primeng/inputnumber";
|
|
20
|
+
import * as i19 from "primeng/tooltip";
|
|
21
|
+
import * as i20 from "primeng/calendar";
|
|
22
|
+
import * as i21 from "primeng/inputtextarea";
|
|
22
23
|
export declare class SubscriptionsModule {
|
|
23
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<SubscriptionsModule, never>;
|
|
24
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SubscriptionsModule, [typeof i1.SubscriptionsTagColorCreatorComponent, typeof i2.SubscriptionsDetailsComponent, typeof i3.SubscriptionsAddNewComponent, typeof i4.SubscriptionsListComponent, typeof i5.SubscriptionsComponent], [typeof
|
|
25
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SubscriptionsModule, [typeof i1.SubscriptionsTagColorCreatorComponent, typeof i2.SubscriptionsDetailsComponent, typeof i3.SubscriptionsAddNewComponent, typeof i4.SubscriptionsListComponent, typeof i5.SubscriptionFormComponent, typeof i6.SubscriptionsComponent], [typeof i7.CommonModule, typeof i8.ReactiveFormsModule, typeof i9.FasServiceTableComponent, typeof i9.FasServiceDynamicTableComponent, typeof i10.DynamicDialogModule, typeof i11.ButtonModule, typeof i12.CheckboxModule, typeof i13.TabViewModule, typeof i14.DialogModule, typeof i15.TableModule, typeof i8.FormsModule, typeof i16.InputTextModule, typeof i17.DropdownModule, typeof i18.InputNumberModule, typeof i19.TooltipModule, typeof i20.CalendarModule, typeof i21.InputTextareaModule], never>;
|
|
25
26
|
static ɵinj: i0.ɵɵInjectorDeclaration<SubscriptionsModule>;
|
|
26
27
|
}
|