@rangertechnologies/ngnxt 2.1.125 → 2.1.127

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 (32) hide show
  1. package/esm2022/environments/version.mjs +2 -2
  2. package/esm2022/lib/components/custom-calendar/custom-calendar.component.mjs +3 -3
  3. package/esm2022/lib/components/custom-dropdown/custom-dropdown.component.mjs +6 -6
  4. package/esm2022/lib/components/custom-table/custom-table.component.mjs +2 -2
  5. package/esm2022/lib/components/datatable/datatable.component.mjs +59 -42
  6. package/esm2022/lib/components/file-upload/file-upload.component.mjs +2 -2
  7. package/esm2022/lib/components/search-box/search-box.component.mjs +1 -1
  8. package/esm2022/lib/components/table-appendix/table-appendix.component.mjs +2 -2
  9. package/esm2022/lib/pages/booklet/booklet.component.mjs +52 -29
  10. package/esm2022/lib/pages/builder/element/element.component.mjs +94 -28
  11. package/esm2022/lib/pages/builder/form/form.component.mjs +2 -2
  12. package/esm2022/lib/pages/builder/menu/menu.component.mjs +2 -2
  13. package/esm2022/lib/pages/builder/properties/properties.component.mjs +454 -227
  14. package/esm2022/lib/pages/questionbook/questionbook.component.mjs +30 -10
  15. package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +3 -3
  16. package/esm2022/lib/pipe/get-value.pipe.mjs +3 -5
  17. package/esm2022/lib/services/form-builder.service.mjs +52 -11
  18. package/esm2022/lib/services/storage.service.mjs +2 -2
  19. package/fesm2022/rangertechnologies-ngnxt.mjs +747 -359
  20. package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
  21. package/lib/components/custom-dropdown/custom-dropdown.component.d.ts +2 -3
  22. package/lib/components/datatable/datatable.component.d.ts +5 -2
  23. package/lib/components/image-cropper/component/image-cropper.component.d.ts +1 -1
  24. package/lib/pages/booklet/booklet.component.d.ts +7 -2
  25. package/lib/pages/builder/element/element.component.d.ts +7 -2
  26. package/lib/pages/builder/properties/properties.component.d.ts +315 -188
  27. package/lib/pages/questionbook/questionbook.component.d.ts +2 -1
  28. package/lib/services/form-builder.service.d.ts +10 -20
  29. package/package.json +1 -1
  30. package/rangertechnologies-ngnxt-2.1.127.tgz +0 -0
  31. package/src/lib/style.css +13 -5
  32. package/rangertechnologies-ngnxt-2.1.125.tgz +0 -0
@@ -1,6 +1,5 @@
1
1
  import { OnInit, EventEmitter } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
- import { APIMeta } from '../../interfaces/apimeta';
4
3
  import { ChangeWrapper } from '../../model/changeWrapper';
5
4
  import { ChangeService } from '../../services/change.service';
6
5
  import { I18nService } from '../../i18n.service';
@@ -10,7 +9,7 @@ export declare class CustomDropdownComponent implements OnInit {
10
9
  private changeService;
11
10
  private dataService;
12
11
  i18nService: I18nService;
13
- options: string[];
12
+ options: any[];
14
13
  placeholder: string;
15
14
  apiMeta: string;
16
15
  selectedValue: string;
@@ -29,8 +28,8 @@ export declare class CustomDropdownComponent implements OnInit {
29
28
  labelField: string;
30
29
  valueField: string;
31
30
  subscription: Subscription;
32
- apiObj: APIMeta;
33
31
  uniqueKey: string;
32
+ apiObj: any;
34
33
  ngOnInit(): void;
35
34
  getOptions(): void;
36
35
  selectChange(event: any): void;
@@ -29,7 +29,6 @@ export declare class NxtDatatable {
29
29
  pagination: any;
30
30
  actionButtonArray: any;
31
31
  multipleFilter: any;
32
- isSort: any;
33
32
  isPagination: any;
34
33
  isNosIndicator: any;
35
34
  isEditable: any;
@@ -40,6 +39,8 @@ export declare class NxtDatatable {
40
39
  apiMeta: string;
41
40
  summaryRows: any;
42
41
  summaryColumns: any;
42
+ isLoading: any;
43
+ tableConfig: any;
43
44
  tableRowClick: EventEmitter<any>;
44
45
  onEditData: EventEmitter<any>;
45
46
  saveButtonData: EventEmitter<any>;
@@ -92,12 +93,14 @@ export declare class NxtDatatable {
92
93
  headerLabels: Array<any>;
93
94
  displayedColumns: Array<any>;
94
95
  filterColumns: Array<any>;
96
+ sortColumns: Array<any>;
95
97
  hyperLinkColumns: Array<string>;
96
98
  editColumn: Array<any>;
97
99
  dateColumns: Array<any>;
98
100
  timeColumns: Array<any>;
99
101
  objectColumns: Array<any>;
100
102
  fileColumns: Array<any>;
103
+ booleanColumns: Array<any>;
101
104
  inlineElement: any;
102
105
  pageSize: any;
103
106
  pageIndex: any;
@@ -168,5 +171,5 @@ export declare class NxtDatatable {
168
171
  updateValue(element: any, column: string, value: any): any;
169
172
  expenseAttachment(event: any): void;
170
173
  static ɵfac: i0.ɵɵFactoryDeclaration<NxtDatatable, never>;
171
- static ɵcmp: i0.ɵɵComponentDeclaration<NxtDatatable, "nxt-datatable", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "withCheckBox": { "alias": "withCheckBox"; "required": false; }; "searchBar": { "alias": "searchBar"; "required": false; }; "tableSaveButton": { "alias": "tableSaveButton"; "required": false; }; "stickyColumn": { "alias": "stickyColumn"; "required": false; }; "tableWidth": { "alias": "tableWidth"; "required": false; }; "actionColumHeader": { "alias": "actionColumHeader"; "required": false; }; "actionButton": { "alias": "actionButton"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isButtons": { "alias": "isButtons"; "required": false; }; "buttonArray": { "alias": "buttonArray"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; "isEditRow": { "alias": "isEditRow"; "required": false; }; "isDeleteRow": { "alias": "isDeleteRow"; "required": false; }; "addInlineRecord": { "alias": "addInlineRecord"; "required": false; }; "searchConfigs": { "alias": "searchConfigs"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "actionButtonArray": { "alias": "actionButtonArray"; "required": false; }; "multipleFilter": { "alias": "multipleFilter"; "required": false; }; "isSort": { "alias": "isSort"; "required": false; }; "isPagination": { "alias": "isPagination"; "required": false; }; "isNosIndicator": { "alias": "isNosIndicator"; "required": false; }; "isEditable": { "alias": "isEditable"; "required": false; }; "from": { "alias": "from"; "required": false; }; "question": { "alias": "question"; "required": false; }; "rowTextSize": { "alias": "rowTextSize"; "required": false; }; "rowTextColor": { "alias": "rowTextColor"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "summaryRows": { "alias": "summaryRows"; "required": false; }; "summaryColumns": { "alias": "summaryColumns"; "required": false; }; }, { "tableRowClick": "tableRowClick"; "onEditData": "onEditData"; "saveButtonData": "saveButtonData"; "onDeleteData": "onDeleteData"; "buttonEmit": "buttonEmit"; "hyperLinkEmit": "hyperLinkEmit"; "sideNavEmit": "sideNavEmit"; "actionButtonEmit": "actionButtonEmit"; "columnSelected": "columnSelected"; "removeColumn": "removeColumn"; "valueChange": "valueChange"; "selectedValues": "selectedValues"; "fileEmit": "fileEmit"; "NxtTableEmit": "NxtTableEmit"; }, never, never, true, never>;
174
+ static ɵcmp: i0.ɵɵComponentDeclaration<NxtDatatable, "nxt-datatable", never, { "data": { "alias": "data"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "withCheckBox": { "alias": "withCheckBox"; "required": false; }; "searchBar": { "alias": "searchBar"; "required": false; }; "tableSaveButton": { "alias": "tableSaveButton"; "required": false; }; "stickyColumn": { "alias": "stickyColumn"; "required": false; }; "tableWidth": { "alias": "tableWidth"; "required": false; }; "actionColumHeader": { "alias": "actionColumHeader"; "required": false; }; "actionButton": { "alias": "actionButton"; "required": false; }; "title": { "alias": "title"; "required": false; }; "isButtons": { "alias": "isButtons"; "required": false; }; "buttonArray": { "alias": "buttonArray"; "required": false; }; "tableId": { "alias": "tableId"; "required": false; }; "isEditRow": { "alias": "isEditRow"; "required": false; }; "isDeleteRow": { "alias": "isDeleteRow"; "required": false; }; "addInlineRecord": { "alias": "addInlineRecord"; "required": false; }; "searchConfigs": { "alias": "searchConfigs"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "pagination": { "alias": "pagination"; "required": false; }; "actionButtonArray": { "alias": "actionButtonArray"; "required": false; }; "multipleFilter": { "alias": "multipleFilter"; "required": false; }; "isPagination": { "alias": "isPagination"; "required": false; }; "isNosIndicator": { "alias": "isNosIndicator"; "required": false; }; "isEditable": { "alias": "isEditable"; "required": false; }; "from": { "alias": "from"; "required": false; }; "question": { "alias": "question"; "required": false; }; "rowTextSize": { "alias": "rowTextSize"; "required": false; }; "rowTextColor": { "alias": "rowTextColor"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "summaryRows": { "alias": "summaryRows"; "required": false; }; "summaryColumns": { "alias": "summaryColumns"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "tableConfig": { "alias": "tableConfig"; "required": false; }; }, { "tableRowClick": "tableRowClick"; "onEditData": "onEditData"; "saveButtonData": "saveButtonData"; "onDeleteData": "onDeleteData"; "buttonEmit": "buttonEmit"; "hyperLinkEmit": "hyperLinkEmit"; "sideNavEmit": "sideNavEmit"; "actionButtonEmit": "actionButtonEmit"; "columnSelected": "columnSelected"; "removeColumn": "removeColumn"; "valueChange": "valueChange"; "selectedValues": "selectedValues"; "fileEmit": "fileEmit"; "NxtTableEmit": "NxtTableEmit"; }, never, never, true, never>;
172
175
  }
@@ -67,7 +67,7 @@ export declare class ImageCropperComponent implements OnChanges, OnInit, OnDestr
67
67
  loadImageFailed: EventEmitter<void>;
68
68
  transformChange: EventEmitter<ImageTransform>;
69
69
  cropperChange: EventEmitter<CropperPosition>;
70
- get alignImageStyle(): "left" | "center";
70
+ get alignImageStyle(): "center" | "left";
71
71
  constructor(sanitizer: DomSanitizer, cd: ChangeDetectorRef, zone: NgZone);
72
72
  ngOnInit(): void;
73
73
  ngOnChanges(changes: SimpleChanges): void;
@@ -8,6 +8,8 @@ import { BookletWrapper } from "../../model/bookletWrapper";
8
8
  import { StorageService } from '../../services/storage.service';
9
9
  import { ChangeService } from "../../services/change.service";
10
10
  import { I18nService } from "../../i18n.service";
11
+ import { Observable } from "rxjs";
12
+ import { HttpClient } from "@angular/common/http";
11
13
  import * as i0 from "@angular/core";
12
14
  export declare class BookletComponent implements OnInit {
13
15
  private sfService;
@@ -17,6 +19,7 @@ export declare class BookletComponent implements OnInit {
17
19
  private sanitizer;
18
20
  private changeService;
19
21
  i18nService: I18nService;
22
+ private http;
20
23
  bookletId: string;
21
24
  serv: string;
22
25
  tkn: string;
@@ -26,6 +29,7 @@ export declare class BookletComponent implements OnInit {
26
29
  token: string;
27
30
  languageCode: string;
28
31
  fieldRestrictions: any;
32
+ from: any;
29
33
  handleBookletActionEvent: EventEmitter<any>;
30
34
  handlePage: EventEmitter<any>;
31
35
  hadleDropDownDependent: EventEmitter<any>;
@@ -45,13 +49,14 @@ export declare class BookletComponent implements OnInit {
45
49
  answerList: any[];
46
50
  dataBind: any;
47
51
  allEvents: any[];
48
- constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, route: ActivatedRoute, sanitizer: DomSanitizer, changeService: ChangeService, el: ElementRef, i18nService: I18nService);
52
+ constructor(sfService: SalesforceService, dataService: DataService, storageService: StorageService, route: ActivatedRoute, sanitizer: DomSanitizer, changeService: ChangeService, el: ElementRef, i18nService: I18nService, http: HttpClient);
49
53
  ngOnInit(): void;
50
54
  ngOnChanges(simplechanges: SimpleChanges): void;
51
55
  processBooklet(): void;
52
56
  private readBooklet;
53
57
  private successReadBooklet;
54
58
  private failureReadBooklet;
59
+ getRefQbData(refqbid: string): Observable<any>;
55
60
  handleBookletActionClick(action: ActionMeta): void;
56
61
  handleCompleteBooklet(completeBooklet: any): void;
57
62
  handleBook(quesList: any): void;
@@ -65,5 +70,5 @@ export declare class BookletComponent implements OnInit {
65
70
  getCalendarDate(event: any): void;
66
71
  getCalendarEvent(event: any): void;
67
72
  static ɵfac: i0.ɵɵFactoryDeclaration<BookletComponent, never>;
68
- static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": { "alias": "bookletId"; "required": false; }; "serv": { "alias": "serv"; "required": false; }; "tkn": { "alias": "tkn"; "required": false; }; "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "dropdownDependentData": { "alias": "dropdownDependentData"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "token": { "alias": "token"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "fieldRestrictions": { "alias": "fieldRestrictions"; "required": false; }; "dataBind": { "alias": "dataBind"; "required": false; }; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; }, never, never, false, never>;
73
+ static ɵcmp: i0.ɵɵComponentDeclaration<BookletComponent, "lib-booklet", never, { "bookletId": { "alias": "bookletId"; "required": false; }; "serv": { "alias": "serv"; "required": false; }; "tkn": { "alias": "tkn"; "required": false; }; "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "dropdownDependentData": { "alias": "dropdownDependentData"; "required": false; }; "labelValue": { "alias": "labelValue"; "required": false; }; "token": { "alias": "token"; "required": false; }; "languageCode": { "alias": "languageCode"; "required": false; }; "fieldRestrictions": { "alias": "fieldRestrictions"; "required": false; }; "from": { "alias": "from"; "required": false; }; "dataBind": { "alias": "dataBind"; "required": false; }; }, { "handleBookletActionEvent": "handleBookletActionEvent"; "handlePage": "handlePage"; "hadleDropDownDependent": "hadleDropDownDependent"; "handleCalendarDate": "handleCalendarDate"; "handleCalendarEvent": "handleCalendarEvent"; }, never, never, false, never>;
69
74
  }
@@ -1,5 +1,4 @@
1
1
  import { SimpleChanges } from '@angular/core';
2
- import { CdkDragDrop } from '@angular/cdk/drag-drop';
3
2
  import { FormBuilderService } from '../../../services/form-builder.service';
4
3
  import * as i0 from "@angular/core";
5
4
  export declare class ElementComponent {
@@ -16,6 +15,7 @@ export declare class ElementComponent {
16
15
  };
17
16
  basicElements: any[];
18
17
  advancedElements: any[];
18
+ elementDisabledArray: any;
19
19
  version: string;
20
20
  book: any;
21
21
  selectedElement: any;
@@ -23,20 +23,24 @@ export declare class ElementComponent {
23
23
  currentType: string;
24
24
  addTable: boolean;
25
25
  dots: any[];
26
+ draggedIndex: number | null;
26
27
  constructor(formBuilderService: FormBuilderService);
27
28
  ngOnInit(): void;
28
29
  toggleSection(section: 'basic' | 'advanced'): void;
29
30
  isSectionOpen(section: string): boolean;
30
31
  ngOnChanges(changes: SimpleChanges): void;
31
32
  private initializeForm;
32
- drop(event: CdkDragDrop<string[]>): void;
33
33
  selectElement(index: number): void;
34
34
  selectedFieldIndex: number | null;
35
35
  selectHeading(event: any): void;
36
36
  addElement(type: string): void;
37
37
  removeElement(field: any, index: number): void;
38
+ onDragStart(event: DragEvent, index: number): void;
39
+ onDragOver(event: DragEvent, index: number): void;
40
+ onDrop(event: DragEvent, dropIndex: number): void;
38
41
  toggleBoolean(field: any): void;
39
42
  getFontStyles(field: any): any;
43
+ getLineStyles(field: any): any;
40
44
  onClose(): void;
41
45
  addOnTable(): void;
42
46
  addTableData(fieldId: any, fieldName: any): void;
@@ -44,6 +48,7 @@ export declare class ElementComponent {
44
48
  removeColumn(event: any): void;
45
49
  fileChangeEvent(index: any, event: any): Promise<void>;
46
50
  private readFileAsDataURL;
51
+ isElementDisabled(elementType: string): boolean;
47
52
  static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
48
53
  static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "app-element", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "bookletId": { "alias": "bookletId"; "required": false; }; }, {}, never, never, false, never>;
49
54
  }