@piserve-tech/form-submission 1.2.26 → 1.2.28

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.
Files changed (52) hide show
  1. package/element-type/form-elements/form-elements.component.d.ts +2 -1
  2. package/environment/environment.d.ts +5 -0
  3. package/esm2022/element-type/form-elements/form-elements.component.mjs +6 -3
  4. package/esm2022/environment/environment.mjs +6 -0
  5. package/esm2022/form-fields/check-box-fields/check-box-fields.component.mjs +3 -3
  6. package/esm2022/form-fields/date-time-fields/date-time-fields.component.mjs +2 -2
  7. package/esm2022/form-fields/drop-down-fields/drop-down-fields.component.mjs +4 -3
  8. package/esm2022/form-fields/file-picker-fields/file-picker-fields.component.mjs +2 -2
  9. package/esm2022/form-fields/location-fields/location-fields.component.mjs +2 -2
  10. package/esm2022/form-fields/mail-fields/mail-fields.component.mjs +2 -2
  11. package/esm2022/form-fields/mobile-fields/mobile-fields.component.mjs +3 -3
  12. package/esm2022/form-fields/number-fields/number-fields.component.mjs +2 -2
  13. package/esm2022/form-fields/password-fields/password-fields.component.mjs +2 -2
  14. package/esm2022/form-fields/radio-button-fields/radio-button-fields.component.mjs +4 -3
  15. package/esm2022/form-fields/rich-text-editor-fields/rich-text-editor-fields.component.mjs +2 -2
  16. package/esm2022/form-fields/selection-matrix-fields/selection-matrix-fields.component.mjs +2 -2
  17. package/esm2022/form-fields/signature-fields/signature-fields.component.mjs +2 -2
  18. package/esm2022/form-fields/slider-fields/slider-fields.component.mjs +2 -2
  19. package/esm2022/form-fields/terms-and-condition-fields/terms-and-condition-fields.component.mjs +2 -2
  20. package/esm2022/form-fields/text-area-fields/text-area-fields.component.mjs +2 -2
  21. package/esm2022/form-fields/text-fields/text-fields.component.mjs +2 -2
  22. package/esm2022/form-fields/toggle-switch-fields/toggle-switch-fields.component.mjs +9 -3
  23. package/esm2022/form-fields/url-fields/url-fields.component.mjs +3 -3
  24. package/esm2022/form-submission/navigation-tabs/navigation-tabs.component.mjs +8 -3
  25. package/esm2022/form-submission/next-prev-navigation/next-prev-navigation.component.mjs +6 -3
  26. package/esm2022/form-submission/submit-form/submit-form.component.mjs +7 -4
  27. package/esm2022/lib/form-submission.component.mjs +27 -7
  28. package/esm2022/logic/first-child/first-child.component.mjs +8 -3
  29. package/esm2022/logic/forth-child/forth-child.component.mjs +6 -3
  30. package/esm2022/logic/second-child/second-child.component.mjs +6 -3
  31. package/esm2022/logic/third-child/third-child.component.mjs +6 -3
  32. package/esm2022/question/question/question.component.mjs +6 -3
  33. package/esm2022/services/form.service.mjs +7 -4
  34. package/esm2022/sub-form/multiple-subform/multiple-subform.component.mjs +8 -3
  35. package/esm2022/sub-form/sub-form/sub-form.component.mjs +6 -3
  36. package/esm2022/sub-form/submission-modal/submission-modal.component.mjs +5 -3
  37. package/fesm2022/piserve-tech-form-submission.mjs +149 -73
  38. package/fesm2022/piserve-tech-form-submission.mjs.map +1 -1
  39. package/form-fields/toggle-switch-fields/toggle-switch-fields.component.d.ts +3 -1
  40. package/form-submission/navigation-tabs/navigation-tabs.component.d.ts +3 -1
  41. package/form-submission/next-prev-navigation/next-prev-navigation.component.d.ts +2 -1
  42. package/form-submission/submit-form/submit-form.component.d.ts +2 -1
  43. package/lib/form-submission.component.d.ts +6 -3
  44. package/logic/first-child/first-child.component.d.ts +3 -1
  45. package/logic/forth-child/forth-child.component.d.ts +2 -1
  46. package/logic/second-child/second-child.component.d.ts +2 -1
  47. package/logic/third-child/third-child.component.d.ts +2 -1
  48. package/package.json +1 -1
  49. package/question/question/question.component.d.ts +2 -1
  50. package/sub-form/multiple-subform/multiple-subform.component.d.ts +2 -1
  51. package/sub-form/sub-form/sub-form.component.d.ts +2 -1
  52. package/sub-form/submission-modal/submission-modal.component.d.ts +1 -0
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ToggleSwitchFieldsComponent {
3
3
  question: any;
4
+ acceptedLanguage: string;
4
5
  count: number;
5
6
  required: boolean;
6
7
  hint: string;
@@ -11,8 +12,9 @@ export declare class ToggleSwitchFieldsComponent {
11
12
  toggleBackgroundColor: string;
12
13
  selectedValue: string;
13
14
  ngOnInit(): void;
15
+ getDirectionClass(): string;
14
16
  valueAssigned(): void;
15
17
  toggleSliderColor(event: any): void;
16
18
  static ɵfac: i0.ɵɵFactoryDeclaration<ToggleSwitchFieldsComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<ToggleSwitchFieldsComponent, "lib-toggle-switch-fields", never, { "question": { "alias": "question"; "required": false; }; }, {}, never, never, false, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<ToggleSwitchFieldsComponent, "lib-toggle-switch-fields", never, { "question": { "alias": "question"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, {}, never, never, false, never>;
18
20
  }
@@ -6,10 +6,12 @@ export declare class NavigationTabsComponent {
6
6
  pageChanged: EventEmitter<number>;
7
7
  submitEmit: EventEmitter<any>;
8
8
  edit: boolean;
9
+ acceptedLanguage: string;
9
10
  subFormChange: EventEmitter<any>;
11
+ ngOnInit(): void;
10
12
  updateSubFormWithSubmissions(event: any): void;
11
13
  setCurrentPage(index: number): void;
12
14
  submitForm(): void;
13
15
  static ɵfac: i0.ɵɵFactoryDeclaration<NavigationTabsComponent, never>;
14
- static ɵcmp: i0.ɵɵComponentDeclaration<NavigationTabsComponent, "lib-navigation-tabs", never, { "pages": { "alias": "pages"; "required": false; }; "currentPageIndex": { "alias": "currentPageIndex"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, { "pageChanged": "pageChanged"; "submitEmit": "submitEmit"; "subFormChange": "subFormChange"; }, never, never, false, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<NavigationTabsComponent, "lib-navigation-tabs", never, { "pages": { "alias": "pages"; "required": false; }; "currentPageIndex": { "alias": "currentPageIndex"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, { "pageChanged": "pageChanged"; "submitEmit": "submitEmit"; "subFormChange": "subFormChange"; }, never, never, false, never>;
15
17
  }
@@ -10,11 +10,12 @@ export declare class NextPrevNavigationComponent {
10
10
  navigatePrevious: EventEmitter<void>;
11
11
  submitEmit: EventEmitter<any>;
12
12
  edit: boolean;
13
+ acceptedLanguage: string;
13
14
  subFormChange: EventEmitter<any>;
14
15
  updateSubFormWithSubmissions(event: any): void;
15
16
  onNavigateNext(): void;
16
17
  onNavigatePrevious(): void;
17
18
  submitForm(): void;
18
19
  static ɵfac: i0.ɵɵFactoryDeclaration<NextPrevNavigationComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<NextPrevNavigationComponent, "lib-next-prev-navigation", never, { "currentPageIndex": { "alias": "currentPageIndex"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "previousPage": { "alias": "previousPage"; "required": false; }; "nextPage": { "alias": "nextPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, { "navigateNext": "navigateNext"; "navigatePrevious": "navigatePrevious"; "submitEmit": "submitEmit"; "subFormChange": "subFormChange"; }, never, never, false, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<NextPrevNavigationComponent, "lib-next-prev-navigation", never, { "currentPageIndex": { "alias": "currentPageIndex"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "previousPage": { "alias": "previousPage"; "required": false; }; "nextPage": { "alias": "nextPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, { "navigateNext": "navigateNext"; "navigatePrevious": "navigatePrevious"; "submitEmit": "submitEmit"; "subFormChange": "subFormChange"; }, never, never, false, never>;
20
21
  }
@@ -34,6 +34,7 @@ export declare class SubmitFormComponent implements OnInit {
34
34
  moduleName: string;
35
35
  edit: boolean;
36
36
  submissionId: string;
37
+ acceptedLanguage: string;
37
38
  submit: EventEmitter<string>;
38
39
  name: string;
39
40
  saveAutomatically: boolean;
@@ -87,6 +88,6 @@ export declare class SubmitFormComponent implements OnInit {
87
88
  updateSubFormWithSubmissions(event: any): void;
88
89
  updateSubForm: (pages: any[], updatedSubForm: any) => void;
89
90
  static ɵfac: i0.ɵɵFactoryDeclaration<SubmitFormComponent, never>;
90
- static ɵcmp: i0.ɵɵComponentDeclaration<SubmitFormComponent, "lib-submit-form", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "submissionId": { "alias": "submissionId"; "required": false; }; }, { "submit": "submit"; }, never, never, false, never>;
91
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubmitFormComponent, "lib-submit-form", never, { "moduleName": { "alias": "moduleName"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "submissionId": { "alias": "submissionId"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, { "submit": "submit"; }, never, never, false, never>;
91
92
  }
92
93
  export {};
@@ -1,14 +1,17 @@
1
- import { EventEmitter } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { DataService } from '../services/data.service';
3
3
  import * as i0 from "@angular/core";
4
- export declare class FormSubmissionComponent {
4
+ export declare class FormSubmissionComponent implements OnInit {
5
5
  private dataService;
6
+ private document;
6
7
  formData: any;
7
8
  edit: boolean;
8
9
  submissionId: string;
9
10
  submitForm: EventEmitter<string>;
10
- constructor(dataService: DataService);
11
+ header: any;
12
+ constructor(dataService: DataService, document: Document);
11
13
  ngOnInit(): void;
14
+ setHtmlDirection(language: string): void;
12
15
  submit(event: any): void;
13
16
  static ɵfac: i0.ɵɵFactoryDeclaration<FormSubmissionComponent, never>;
14
17
  static ɵcmp: i0.ɵɵComponentDeclaration<FormSubmissionComponent, "lib-formSubmission", never, { "formData": { "alias": "formData"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "submissionId": { "alias": "submissionId"; "required": false; }; }, { "submitForm": "submitForm"; }, never, never, false, never>;
@@ -1,6 +1,8 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class FirstChildComponent {
3
3
  childLogics: any;
4
+ acceptedLanguage: string;
5
+ ngOnInit(): void;
4
6
  static ɵfac: i0.ɵɵFactoryDeclaration<FirstChildComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<FirstChildComponent, "lib-first-child", never, { "childLogics": { "alias": "childLogics"; "required": false; }; }, {}, never, never, false, never>;
7
+ static ɵcmp: i0.ɵɵComponentDeclaration<FirstChildComponent, "lib-first-child", never, { "childLogics": { "alias": "childLogics"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, {}, never, never, false, never>;
6
8
  }
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ForthChildComponent {
3
3
  childLogics: any;
4
+ acceptedLanguage: string;
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ForthChildComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<ForthChildComponent, "lib-forth-child", never, { "childLogics": { "alias": "childLogics"; "required": false; }; }, {}, never, never, false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ForthChildComponent, "lib-forth-child", never, { "childLogics": { "alias": "childLogics"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, {}, never, never, false, never>;
6
7
  }
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class SecondChildComponent {
3
3
  childLogics: any;
4
+ acceptedLanguage: string;
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<SecondChildComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<SecondChildComponent, "lib-second-child", never, { "childLogics": { "alias": "childLogics"; "required": false; }; }, {}, never, never, false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<SecondChildComponent, "lib-second-child", never, { "childLogics": { "alias": "childLogics"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, {}, never, never, false, never>;
6
7
  }
@@ -1,6 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class ThirdChildComponent {
3
3
  childLogics: any;
4
+ acceptedLanguage: string;
4
5
  static ɵfac: i0.ɵɵFactoryDeclaration<ThirdChildComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<ThirdChildComponent, "lib-third-child", never, { "childLogics": { "alias": "childLogics"; "required": false; }; }, {}, never, never, false, never>;
6
+ static ɵcmp: i0.ɵɵComponentDeclaration<ThirdChildComponent, "lib-third-child", never, { "childLogics": { "alias": "childLogics"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, {}, never, never, false, never>;
6
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@piserve-tech/form-submission",
3
- "version": "1.2.26",
3
+ "version": "1.2.28",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^16.1.0",
6
6
  "@angular/core": "^16.1.0"
@@ -4,11 +4,12 @@ export declare class QuestionComponent {
4
4
  private cdr;
5
5
  question: any;
6
6
  edit: boolean;
7
+ acceptedLanguage: string;
7
8
  constructor(cdr: ChangeDetectorRef);
8
9
  validations: any;
9
10
  currentPageIndex: number;
10
11
  emitValidations: EventEmitter<any>;
11
12
  handleValidation(validation: any): void;
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<QuestionComponent, never>;
13
- static ɵcmp: i0.ɵɵComponentDeclaration<QuestionComponent, "lib-question", never, { "question": { "alias": "question"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "currentPageIndex": { "alias": "currentPageIndex"; "required": false; }; }, { "emitValidations": "emitValidations"; }, never, never, false, never>;
14
+ static ɵcmp: i0.ɵɵComponentDeclaration<QuestionComponent, "lib-question", never, { "question": { "alias": "question"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; "currentPageIndex": { "alias": "currentPageIndex"; "required": false; }; }, { "emitValidations": "emitValidations"; }, never, never, false, never>;
14
15
  }
@@ -19,6 +19,7 @@ export declare class MultipleSubformComponent {
19
19
  dialog: MatDialog;
20
20
  subForm: any;
21
21
  subFormChange: EventEmitter<any>;
22
+ acceptedLanguage: string;
22
23
  submissions: Submission[];
23
24
  deletedSubmissions: string[];
24
25
  displayedColumns: string[];
@@ -35,6 +36,6 @@ export declare class MultipleSubformComponent {
35
36
  updateSubFormWithSubmissions(): void;
36
37
  clearEmptyRows(): void;
37
38
  static ɵfac: i0.ɵɵFactoryDeclaration<MultipleSubformComponent, never>;
38
- static ɵcmp: i0.ɵɵComponentDeclaration<MultipleSubformComponent, "lib-multiple-subform", never, { "subForm": { "alias": "subForm"; "required": false; }; }, { "subFormChange": "subFormChange"; }, never, never, false, never>;
39
+ static ɵcmp: i0.ɵɵComponentDeclaration<MultipleSubformComponent, "lib-multiple-subform", never, { "subForm": { "alias": "subForm"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, { "subFormChange": "subFormChange"; }, never, never, false, never>;
39
40
  }
40
41
  export {};
@@ -4,9 +4,10 @@ export declare class SubFormComponent implements OnInit {
4
4
  subForm: any;
5
5
  edit: boolean;
6
6
  subFormChange: EventEmitter<any>;
7
+ acceptedLanguage: string;
7
8
  ngOnInit(): void;
8
9
  bindAnswersToFormElements(): void;
9
10
  updateSubFormWithSubmissions(event: any): void;
10
11
  static ɵfac: i0.ɵɵFactoryDeclaration<SubFormComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<SubFormComponent, "lib-sub-form", never, { "subForm": { "alias": "subForm"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; }, { "subFormChange": "subFormChange"; }, never, never, false, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<SubFormComponent, "lib-sub-form", never, { "subForm": { "alias": "subForm"; "required": false; }; "edit": { "alias": "edit"; "required": false; }; "acceptedLanguage": { "alias": "acceptedLanguage"; "required": false; }; }, { "subFormChange": "subFormChange"; }, never, never, false, never>;
12
13
  }
@@ -3,6 +3,7 @@ import * as i0 from "@angular/core";
3
3
  export declare class SubmissionModalComponent {
4
4
  data: any;
5
5
  private dialogRef;
6
+ acceptedLanguage: string;
6
7
  subForm: any;
7
8
  constructor(data: any, dialogRef: MatDialogRef<SubmissionModalComponent>);
8
9
  ngOnInit(): void;