ngx-techlify-core 18.38.0 → 18.40.0

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,5 +1,10 @@
1
1
  import { UntypedFormGroup } from '@angular/forms';
2
2
  import { FormValidatorService } from '../core/form-validator.service';
3
+ import { EventEmitter } from '@angular/core';
4
+ import { TechlifyServiceBaseClass } from './techlify-service.class';
5
+ import { MatDialogRef } from '@angular/material/dialog';
6
+ import { AlertService } from '../core/alert.service';
7
+ import * as i0 from "@angular/core";
3
8
  /**
4
9
  * Interface used to ensure we have a consistent structure across our form components
5
10
  *
@@ -15,9 +20,18 @@ import { FormValidatorService } from '../core/form-validator.service';
15
20
  */
16
21
  export declare abstract class TechlifyFormComponentInterface {
17
22
  protected formValidatorService: FormValidatorService;
23
+ protected service?: TechlifyServiceBaseClass;
18
24
  form: UntypedFormGroup;
19
25
  errorMessages: any;
20
- constructor(formValidatorService: FormValidatorService);
26
+ isWorking: boolean;
27
+ dialogRef: MatDialogRef<any, any>;
28
+ createdEntries: any;
29
+ isUpdate: boolean;
30
+ success: EventEmitter<any>;
31
+ protected alertService: AlertService;
32
+ constructor(formValidatorService: FormValidatorService, service?: TechlifyServiceBaseClass);
33
+ submit(model?: any): void;
34
+ closeDialog(): void;
21
35
  /**
22
36
  * Resets the value of a field in the HTML form
23
37
  *
@@ -40,4 +54,6 @@ export declare abstract class TechlifyFormComponentInterface {
40
54
  * Method to find error in form fields
41
55
  * */
42
56
  getErrorMessage(field: string): any;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<TechlifyFormComponentInterface, [null, { optional: true; }]>;
58
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TechlifyFormComponentInterface, never, never, { "isUpdate": { "alias": "isUpdate"; "required": false; }; }, { "success": "success"; }, never, never, false, never>;
43
59
  }
@@ -4,13 +4,12 @@ import { Location } from '@angular/common';
4
4
  import { ClientService } from '../client.service';
5
5
  import { TechlifyFormComponentInterface } from '../../base-model';
6
6
  import { CurrentUserService, User } from '../../user';
7
- import { AlertService, FormValidatorService } from '../../core';
7
+ import { FormValidatorService } from '../../core';
8
8
  import * as i0 from "@angular/core";
9
9
  export declare class CompanyInformationComponent extends TechlifyFormComponentInterface implements OnInit {
10
10
  private formBuilder;
11
11
  private currentUserService;
12
12
  private clientService;
13
- private alertService;
14
13
  private location;
15
14
  client: any;
16
15
  isAppAdmin: boolean;
@@ -18,7 +17,7 @@ export declare class CompanyInformationComponent extends TechlifyFormComponentIn
18
17
  cancelled: EventEmitter<any>;
19
18
  isWorking: boolean;
20
19
  user: User;
21
- constructor(formValidatorService: FormValidatorService, formBuilder: FormBuilder, currentUserService: CurrentUserService, clientService: ClientService, alertService: AlertService, location: Location);
20
+ constructor(formValidatorService: FormValidatorService, formBuilder: FormBuilder, currentUserService: CurrentUserService, clientService: ClientService, location: Location);
22
21
  ngOnInit(): void;
23
22
  save(): void;
24
23
  onFileUploaded(uploadedFile: any[], field: string): void;
@@ -1,6 +1,6 @@
1
1
  import { OnInit } from '@angular/core';
2
2
  import { ActivatedRoute, Router } from '@angular/router';
3
- import { AlertService, FormValidatorService } from '../core';
3
+ import { FormValidatorService } from '../core';
4
4
  import { UntypedFormBuilder } from '@angular/forms';
5
5
  import { CurrentUserService } from '../user';
6
6
  import { TechlifyFormComponentInterface } from '../base-model';
@@ -9,7 +9,6 @@ import { ResetPasswordService } from './reset-password.service';
9
9
  import * as i0 from "@angular/core";
10
10
  export declare class ResetPasswordComponent extends TechlifyFormComponentInterface implements OnInit {
11
11
  private resetPasswordService;
12
- private alertService;
13
12
  private router;
14
13
  currentUserService: CurrentUserService;
15
14
  private fb;
@@ -21,7 +20,7 @@ export declare class ResetPasswordComponent extends TechlifyFormComponentInterfa
21
20
  isWorking: boolean;
22
21
  userConfig: MultiUserConfig;
23
22
  errorMessages: any;
24
- constructor(resetPasswordService: ResetPasswordService, alertService: AlertService, router: Router, currentUserService: CurrentUserService, fb: UntypedFormBuilder, formValidatorService: FormValidatorService, userConfigService: UserConfigService, activatedRoute: ActivatedRoute);
23
+ constructor(resetPasswordService: ResetPasswordService, router: Router, currentUserService: CurrentUserService, fb: UntypedFormBuilder, formValidatorService: FormValidatorService, userConfigService: UserConfigService, activatedRoute: ActivatedRoute);
25
24
  ngOnInit(): void;
26
25
  submit(): void;
27
26
  static ɵfac: i0.ɵɵFactoryDeclaration<ResetPasswordComponent, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-techlify-core",
3
- "version": "18.38.0",
3
+ "version": "18.40.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=18",
6
6
  "@angular/core": ">=18",
package/styles/style.scss CHANGED
@@ -75,4 +75,22 @@
75
75
  .mat-mdc-form-field-subscript-wrapper {
76
76
  height: 0 !important;
77
77
  }
78
+ }
79
+
80
+ .create-another {
81
+ .mat-mdc-checkbox {
82
+ label {
83
+ margin: 0 !important;
84
+ }
85
+ }
86
+
87
+ .mdc-checkbox {
88
+ padding: 0 !important;
89
+ }
90
+
91
+ .mdc-checkbox__background {
92
+ position: relative;
93
+ top: 0px;
94
+ left: 0px;
95
+ }
78
96
  }