@rangertechnologies/ngnxt 2.1.110 → 2.1.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.
@@ -1,21 +1,17 @@
1
- import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
1
+ import { EventEmitter, OnInit } from '@angular/core';
2
2
  import { I18nService } from '../../i18n.service';
3
- import { TableWrapper } from '../../model/tableWrapper';
4
- import { SalesforceService } from '../../services/salesforce.service';
5
3
  import { Question } from '../../wrapper';
6
4
  import { DataService } from '../../services/data.service';
7
5
  import { Subscription } from 'rxjs';
8
6
  import { ChangeService } from '../../services/change.service';
9
7
  import * as i0 from "@angular/core";
10
- export declare class CustomTableComponent implements OnInit, OnDestroy {
8
+ export declare class CustomTableComponent implements OnInit {
11
9
  private changeService;
12
10
  i18nService: I18nService;
13
- private sfService;
14
11
  private dataService;
15
12
  question: Question;
13
+ apiMeta: string;
16
14
  valueChange: EventEmitter<any>;
17
- saveTableData: EventEmitter<any>;
18
- tableInfo: TableWrapper;
19
15
  tableHeader: any[];
20
16
  tableData: any[];
21
17
  filteredData: any[];
@@ -31,35 +27,27 @@ export declare class CustomTableComponent implements OnInit, OnDestroy {
31
27
  fieldMeta: string;
32
28
  firStr: string;
33
29
  searchBox: boolean;
34
- apiMeta: string;
35
30
  options: string[];
36
31
  isDisabled: boolean;
37
32
  subscription: Subscription;
38
- labelField: string;
39
33
  searchTerm: string;
40
34
  currentPage: number;
41
35
  totalItems: number;
42
36
  pages: number[];
43
37
  Math: Math;
44
- constructor(changeService: ChangeService, i18nService: I18nService, sfService: SalesforceService, dataService: DataService);
45
- hasUnsavedChanges: boolean;
46
- savedData: any[];
38
+ constructor(changeService: ChangeService, i18nService: I18nService, dataService: DataService);
47
39
  ngOnInit(): void;
48
40
  search(): void;
49
41
  updatePagination(): void;
50
42
  get paginatedData(): any[];
51
43
  setPage(page: number): void;
52
- private resetComponentState;
53
44
  addRow(): void;
54
45
  updateRadio(item: any, value: string): void;
55
46
  updateLabel(rowIndex: number, label: string, value: any): void;
56
47
  deleteRow(rowIndex: number): void;
57
- saveTable(): void;
58
- revertChanges(): void;
59
48
  editRow(rowIndex: number): void;
60
49
  updateNumber(item: any, label: string, value: string): void;
61
50
  emitTableDataValue(updatedTableData: any[]): void;
62
- ngOnDestroy(): void;
63
51
  static ɵfac: i0.ɵɵFactoryDeclaration<CustomTableComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<CustomTableComponent, "app-custom-table", never, { "question": { "alias": "question"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; }, { "valueChange": "valueChange"; "saveTableData": "saveTableData"; }, never, never, false, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<CustomTableComponent, "app-custom-table", never, { "question": { "alias": "question"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, false, never>;
65
53
  }
@@ -1,8 +1,13 @@
1
1
  import { EventEmitter, ElementRef, Renderer2 } from '@angular/core';
2
2
  import { MatSort } from '@angular/material/sort';
3
+ import { DataService } from '../../services/data.service';
4
+ import { ChangeService } from '../../services/change.service';
5
+ import { Subscription } from 'rxjs';
3
6
  import * as i0 from "@angular/core";
4
7
  export declare class NxtDatatable {
5
8
  private renderer;
9
+ private dataService;
10
+ private changeService;
6
11
  data: any[];
7
12
  columns: Array<any>;
8
13
  withCheckBox: boolean;
@@ -24,6 +29,12 @@ export declare class NxtDatatable {
24
29
  pagination: any;
25
30
  actionButtonArray: any;
26
31
  multipleFilter: any;
32
+ isSort: any;
33
+ isPagination: any;
34
+ isNosIndicator: any;
35
+ isEditable: any;
36
+ from: any;
37
+ question: any;
27
38
  tableRowClick: EventEmitter<any>;
28
39
  onEditData: EventEmitter<any>;
29
40
  saveButtonData: EventEmitter<any>;
@@ -36,6 +47,15 @@ export declare class NxtDatatable {
36
47
  config: any;
37
48
  }>;
38
49
  actionButtonEmit: EventEmitter<any>;
50
+ columnSelected: EventEmitter<{
51
+ column: string;
52
+ data: any[];
53
+ }>;
54
+ removeColumn: EventEmitter<{
55
+ column: string;
56
+ data: any[];
57
+ }>;
58
+ valueChange: EventEmitter<any>;
39
59
  NxtTableEmit: EventEmitter<any>;
40
60
  sort: MatSort;
41
61
  tableContainer: ElementRef<HTMLElement>;
@@ -80,7 +100,10 @@ export declare class NxtDatatable {
80
100
  dropdownActionButton: any;
81
101
  currentOpenIndex: number | null;
82
102
  clickListener: any;
83
- constructor(renderer: Renderer2);
103
+ selectedColumn: string | null;
104
+ subscription: Subscription;
105
+ deleteIndex: number;
106
+ constructor(renderer: Renderer2, dataService: DataService, changeService: ChangeService);
84
107
  ngOnChanges(): void;
85
108
  ngOnInit(): void;
86
109
  sortData(column: string): void;
@@ -98,7 +121,7 @@ export declare class NxtDatatable {
98
121
  tableClick(data: any): void;
99
122
  filterRetain(filterkey: any): void;
100
123
  removeDuplicates(objects: any): any;
101
- deleteRecord(data: any): void;
124
+ deleteRecord(data: any, index: number): void;
102
125
  deleteRecordData(): void;
103
126
  saveButton(): void;
104
127
  onEdit(data: any): void;
@@ -121,6 +144,9 @@ export declare class NxtDatatable {
121
144
  private removeClickListener;
122
145
  toggleDropdown(index: number): void;
123
146
  actionButtonClicked(event: any): void;
147
+ removeCol(column: string): void;
148
+ emitTableDataValue(updatedTableData: any[]): void;
149
+ updateEdit(index: number, value: any): void;
124
150
  static ɵfac: i0.ɵɵFactoryDeclaration<NxtDatatable, never>;
125
- 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; }; }, { "tableRowClick": "tableRowClick"; "onEditData": "onEditData"; "saveButtonData": "saveButtonData"; "onDeleteData": "onDeleteData"; "buttonEmit": "buttonEmit"; "hyperLinkEmit": "hyperLinkEmit"; "sideNavEmit": "sideNavEmit"; "actionButtonEmit": "actionButtonEmit"; "NxtTableEmit": "NxtTableEmit"; }, never, never, true, never>;
151
+ 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; }; }, { "tableRowClick": "tableRowClick"; "onEditData": "onEditData"; "saveButtonData": "saveButtonData"; "onDeleteData": "onDeleteData"; "buttonEmit": "buttonEmit"; "hyperLinkEmit": "hyperLinkEmit"; "sideNavEmit": "sideNavEmit"; "actionButtonEmit": "actionButtonEmit"; "columnSelected": "columnSelected"; "removeColumn": "removeColumn"; "valueChange": "valueChange"; "NxtTableEmit": "NxtTableEmit"; }, never, never, true, never>;
126
152
  }
@@ -35,18 +35,19 @@ import * as i33 from "ngx-quill";
35
35
  import * as i34 from "./components/custom-rich-text/custom-rich-text.component";
36
36
  import * as i35 from "@angular/common";
37
37
  import * as i36 from "@angular/forms";
38
- import * as i37 from "@danielmoncada/angular-datetime-picker";
39
- import * as i38 from "./directives/componenthost/componenthost.directive";
40
- import * as i39 from "./pipe/get-value.pipe";
41
- import * as i40 from "@ng-select/ng-select";
42
- import * as i41 from "@angular/google-maps";
43
- import * as i42 from "@angular/material/tooltip";
44
- import * as i43 from "@angular/cdk/drag-drop";
45
- import * as i44 from "ngx-spinner";
46
- import * as i45 from "./i18n.module";
47
- import * as i46 from "ng-circle-progress";
38
+ import * as i37 from "./components/datatable/datatable.component";
39
+ import * as i38 from "@danielmoncada/angular-datetime-picker";
40
+ import * as i39 from "./directives/componenthost/componenthost.directive";
41
+ import * as i40 from "./pipe/get-value.pipe";
42
+ import * as i41 from "@ng-select/ng-select";
43
+ import * as i42 from "@angular/google-maps";
44
+ import * as i43 from "@angular/material/tooltip";
45
+ import * as i44 from "@angular/cdk/drag-drop";
46
+ import * as i45 from "ngx-spinner";
47
+ import * as i46 from "./i18n.module";
48
+ import * as i47 from "ng-circle-progress";
48
49
  export declare class NxtAppModule {
49
50
  static ɵfac: i0.ɵɵFactoryDeclaration<NxtAppModule, never>;
50
- static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i3.PickLocationComponent, typeof i4.CustomInputComponent, typeof i5.CustomTextAreaComponent, typeof i6.CustomTableComponent, typeof i7.CustomCalendarComponent, typeof i8.CustomDatePickerComponent, typeof i9.DropdownWithFlagComponent, typeof i10.CustomDropdownComponent, typeof i11.BookletComponent, typeof i12.SearchBoxComponent, typeof i13.QuestionbookComponent, typeof i14.FileUploadComponent, typeof i15.SummaryPageComponent, typeof i16.FileViewComponent, typeof i17.DependentTableComponent, typeof i18.CustomLabelComponent, typeof i19.TableAppendixComponent, typeof i20.CustomDateComponent, typeof i21.CustomTimeComponent, typeof i22.CustomButtonComponent, typeof i23.CustomModelComponent, typeof i24.LoaderComponent, typeof i25.I18nComponent, typeof i26.I18nPipe, typeof i27.CustomImageComponent, typeof i28.CustomRadioComponent, typeof i29.ElementComponent, typeof i30.PropertiesComponent, typeof i31.MenuComponent, typeof i32.FormComponent], [typeof i33.QuillModule, typeof i34.CustomRichTextComponent, typeof i35.CommonModule, typeof i36.FormsModule, typeof i36.ReactiveFormsModule, typeof i37.OwlDateTimeModule, typeof i37.OwlNativeDateTimeModule, typeof i38.ComponenthostDirective, typeof i39.GetValuePipe, typeof i40.NgSelectModule, typeof i41.GoogleMapsModule, typeof i42.MatTooltipModule, typeof i43.DragDropModule, typeof i44.NgxSpinnerModule, typeof i45.I18nModule, typeof i46.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i11.BookletComponent, typeof i15.SummaryPageComponent, typeof i26.I18nPipe, typeof i25.I18nComponent, typeof i29.ElementComponent, typeof i30.PropertiesComponent, typeof i31.MenuComponent, typeof i32.FormComponent]>;
51
+ static ɵmod: i0.ɵɵNgModuleDeclaration<NxtAppModule, [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i3.PickLocationComponent, typeof i4.CustomInputComponent, typeof i5.CustomTextAreaComponent, typeof i6.CustomTableComponent, typeof i7.CustomCalendarComponent, typeof i8.CustomDatePickerComponent, typeof i9.DropdownWithFlagComponent, typeof i10.CustomDropdownComponent, typeof i11.BookletComponent, typeof i12.SearchBoxComponent, typeof i13.QuestionbookComponent, typeof i14.FileUploadComponent, typeof i15.SummaryPageComponent, typeof i16.FileViewComponent, typeof i17.DependentTableComponent, typeof i18.CustomLabelComponent, typeof i19.TableAppendixComponent, typeof i20.CustomDateComponent, typeof i21.CustomTimeComponent, typeof i22.CustomButtonComponent, typeof i23.CustomModelComponent, typeof i24.LoaderComponent, typeof i25.I18nComponent, typeof i26.I18nPipe, typeof i27.CustomImageComponent, typeof i28.CustomRadioComponent, typeof i29.ElementComponent, typeof i30.PropertiesComponent, typeof i31.MenuComponent, typeof i32.FormComponent], [typeof i33.QuillModule, typeof i34.CustomRichTextComponent, typeof i35.CommonModule, typeof i36.FormsModule, typeof i37.NxtDatatable, typeof i36.ReactiveFormsModule, typeof i38.OwlDateTimeModule, typeof i38.OwlNativeDateTimeModule, typeof i39.ComponenthostDirective, typeof i40.GetValuePipe, typeof i41.NgSelectModule, typeof i42.GoogleMapsModule, typeof i43.MatTooltipModule, typeof i44.DragDropModule, typeof i45.NgxSpinnerModule, typeof i46.I18nModule, typeof i47.NgCircleProgressModule], [typeof i1.NxtAppComponent, typeof i2.QuestionnaireComponent, typeof i11.BookletComponent, typeof i15.SummaryPageComponent, typeof i26.I18nPipe, typeof i25.I18nComponent, typeof i29.ElementComponent, typeof i30.PropertiesComponent, typeof i31.MenuComponent, typeof i32.FormComponent, typeof i37.NxtDatatable]>;
51
52
  static ɵinj: i0.ɵɵInjectorDeclaration<NxtAppModule>;
52
53
  }
@@ -18,6 +18,10 @@ export declare class ElementComponent {
18
18
  advancedElements: any[];
19
19
  version: string;
20
20
  book: any;
21
+ selectedElement: any;
22
+ isSelectTablePopup: boolean;
23
+ currentType: string;
24
+ addTable: boolean;
21
25
  constructor(formBuilderService: FormBuilderService);
22
26
  ngOnInit(): void;
23
27
  toggleSection(section: 'basic' | 'advanced'): void;
@@ -31,6 +35,11 @@ export declare class ElementComponent {
31
35
  addElement(type: string): void;
32
36
  removeElement(field: any, index: number): void;
33
37
  getFontStyles(field: any): any;
38
+ onClose(): void;
39
+ addOnTable(): void;
40
+ addTableData(fieldId: any, fieldName: any): void;
41
+ columnSelected(event: any): void;
42
+ removeColumn(event: any): void;
34
43
  static ɵfac: i0.ɵɵFactoryDeclaration<ElementComponent, never>;
35
44
  static ɵcmp: i0.ɵɵComponentDeclaration<ElementComponent, "app-element", never, { "bookletJSON": { "alias": "bookletJSON"; "required": false; }; "bookletId": { "alias": "bookletId"; "required": false; }; }, {}, never, never, false, never>;
36
45
  }
@@ -16,6 +16,53 @@ export declare class PropertiesComponent implements OnInit {
16
16
  headerSelect: boolean;
17
17
  bookId: any;
18
18
  book: any;
19
+ activeTab: string;
20
+ attributesData: {
21
+ tableName: string;
22
+ inputTextAlignment: string;
23
+ tableScaleSize: string;
24
+ rowChoice: string;
25
+ quickActionTools: {
26
+ edit: boolean;
27
+ view: boolean;
28
+ delete: boolean;
29
+ };
30
+ addRecordEvent: boolean;
31
+ tableScrollEventChoice: {
32
+ horizontal: boolean;
33
+ vertical: boolean;
34
+ };
35
+ };
36
+ propertyData: {
37
+ tabelId: string;
38
+ inputTextAlignment: string;
39
+ requiredField: boolean;
40
+ readOnly: boolean;
41
+ hideLabel: boolean;
42
+ disabled: boolean;
43
+ hideElements: boolean;
44
+ masking: boolean;
45
+ helpText: string;
46
+ defaultValue: string;
47
+ referenceAnchor: string;
48
+ controllingElements: boolean;
49
+ isDependence: boolean;
50
+ newLine: boolean;
51
+ };
52
+ appearanceData: {
53
+ selectFont: string;
54
+ fontColor: string;
55
+ hexCode: string;
56
+ fontSize: string;
57
+ fontWidth: string;
58
+ backgroundColor: string;
59
+ backgroundHexCode: string;
60
+ referenceAnchor: string;
61
+ blankSpace: boolean;
62
+ };
63
+ setActiveTab(tab: string): void;
64
+ onSave(): void;
65
+ onCancel(): void;
19
66
  onToggleChange(key: string, event: Event): void;
20
67
  updateProperties(elementType: string): void;
21
68
  onAlignSelect(value: string): void;
@@ -58,7 +58,6 @@ export declare class QuestionbookComponent implements OnInit {
58
58
  referenceQuestions: any[];
59
59
  qbRefrenceBook: any;
60
60
  modalCalendarModalFooter: any;
61
- handleTableSave(tableData: any, ques: any): void;
62
61
  openCalendarModal(event: any): void;
63
62
  onCalendarModalSave(): void;
64
63
  handleQuestionEvent(event: any): void;
@@ -17,37 +17,39 @@ interface FormElement {
17
17
  isDateForward?: boolean;
18
18
  isOptional?: boolean;
19
19
  isTitle?: boolean;
20
- nextQuestion?: string;
21
- allowedFileExtensions?: string;
20
+ nextQuestion?: any;
21
+ allowedFileExtensions?: any;
22
22
  questionNumber?: number;
23
- questionBookId?: string;
23
+ questionBookId?: any;
24
24
  size?: number;
25
- parentQuestion?: string;
26
- subText?: string;
27
- fieldsMeta?: string;
28
- recordTypeName?: string;
29
- recordTypeId?: string;
30
- trackingId?: string;
31
- dateText?: string;
32
- timeText?: string;
33
- recordId?: string;
34
- qbReference?: string;
35
- qbReferenceQuestions?: string;
36
- questionBookSubTitle?: string;
37
- style?: string;
38
- title?: string;
39
- subTitle?: string;
40
- referenceField?: string;
41
- additionalRichContent?: string;
42
- groupName?: string;
25
+ parentQuestion?: any;
26
+ subText?: any;
27
+ fieldsMeta?: any;
28
+ recordTypeName?: any;
29
+ recordTypeId?: any;
30
+ trackingId?: any;
31
+ dateText?: any;
32
+ timeText?: any;
33
+ recordId?: any;
34
+ qbReference?: any;
35
+ qbReferenceQuestions?: any;
36
+ questionBookSubTitle?: any;
37
+ style?: any;
38
+ title?: any;
39
+ subTitle?: any;
40
+ referenceField?: any;
41
+ additionalRichContent?: any;
42
+ groupName?: any;
43
43
  x24Hours?: boolean;
44
+ columns?: any;
45
+ data?: any;
44
46
  options?: Array<{
45
47
  value: string;
46
- uniqueIdentifier: string;
47
- questionId: string;
48
+ uniqueIdentifier: any;
49
+ questionId: any;
48
50
  nextQuestion: any;
49
- name: string;
50
- id: string;
51
+ name: any;
52
+ id: any;
51
53
  }>;
52
54
  }
53
55
  export declare class FormBuilderService {
@@ -62,12 +64,15 @@ export declare class FormBuilderService {
62
64
  formElements$: import("rxjs").Observable<FormElement[]>;
63
65
  selectedElement$: import("rxjs").Observable<number>;
64
66
  selectHeaderSubject$: import("rxjs").Observable<any>;
67
+ currentElement: any;
65
68
  constructor();
66
69
  intializeBook(book: any): void;
70
+ newBook(): void;
67
71
  clearElements(): void;
68
72
  getElementComponent(): ElementComponent | null;
69
73
  setElementComponent(component: ElementComponent): void;
70
74
  addElement(element: FormElement): void;
75
+ addTableElement(element: any): void;
71
76
  updateElement(index: number, updates: Partial<FormElement>): void;
72
77
  updateTitle(event: any): void;
73
78
  setSelectedElement(index: number): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rangertechnologies/ngnxt",
3
- "version": "2.1.110",
3
+ "version": "2.1.111",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^18.2.13",
6
6
  "@angular/core": "^18.2.13"