@rangertechnologies/ngnxt 2.1.89 → 2.1.91
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/esm2022/lib/components/custom-table/custom-table.component.mjs +236 -71
- package/esm2022/lib/components/search-box/search-box.component.mjs +30 -2
- package/esm2022/lib/pages/booklet/booklet.component.mjs +2 -1
- package/esm2022/lib/pages/builder/element/element.component.mjs +3 -3
- package/esm2022/lib/pages/builder/properties/properties.component.mjs +2 -2
- package/esm2022/lib/pages/questionbook/questionbook.component.mjs +8 -3
- package/esm2022/lib/pages/questionnaire/questionnaire.component.mjs +1 -1
- package/fesm2022/rangertechnologies-ngnxt.mjs +277 -78
- package/fesm2022/rangertechnologies-ngnxt.mjs.map +1 -1
- package/lib/components/custom-table/custom-table.component.d.ts +25 -3
- package/lib/components/search-box/search-box.component.d.ts +4 -1
- package/lib/pages/questionbook/questionbook.component.d.ts +1 -0
- package/package.json +1 -1
- package/rangertechnologies-ngnxt-2.1.91.tgz +0 -0
- package/src/lib/style.css +1 -0
- package/rangertechnologies-ngnxt-2.1.89.tgz +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnDestroy, OnInit } from '@angular/core';
|
|
2
2
|
import { I18nService } from '../../i18n.service';
|
|
3
3
|
import { TableWrapper } from '../../model/tableWrapper';
|
|
4
4
|
import { SalesforceService } from '../../services/salesforce.service';
|
|
@@ -7,16 +7,23 @@ import { DataService } from '../../services/data.service';
|
|
|
7
7
|
import { Subscription } from 'rxjs';
|
|
8
8
|
import { ChangeService } from '../../services/change.service';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class CustomTableComponent implements OnInit {
|
|
10
|
+
export declare class CustomTableComponent implements OnInit, OnDestroy {
|
|
11
11
|
private changeService;
|
|
12
12
|
i18nService: I18nService;
|
|
13
13
|
private sfService;
|
|
14
14
|
private dataService;
|
|
15
15
|
question: Question;
|
|
16
16
|
valueChange: EventEmitter<any>;
|
|
17
|
+
saveTableData: EventEmitter<any>;
|
|
17
18
|
tableInfo: TableWrapper;
|
|
18
19
|
tableHeader: any[];
|
|
19
20
|
tableData: any[];
|
|
21
|
+
filteredData: any[];
|
|
22
|
+
showAddRow: boolean;
|
|
23
|
+
showPagination: boolean;
|
|
24
|
+
showActions: boolean;
|
|
25
|
+
showSearch: boolean;
|
|
26
|
+
itemsPerPage: number;
|
|
20
27
|
addRowColSpan: number;
|
|
21
28
|
tableSize: number;
|
|
22
29
|
objName: any;
|
|
@@ -29,15 +36,30 @@ export declare class CustomTableComponent implements OnInit {
|
|
|
29
36
|
isDisabled: boolean;
|
|
30
37
|
subscription: Subscription;
|
|
31
38
|
labelField: string;
|
|
39
|
+
searchTerm: string;
|
|
40
|
+
currentPage: number;
|
|
41
|
+
totalItems: number;
|
|
42
|
+
pages: number[];
|
|
43
|
+
Math: Math;
|
|
32
44
|
constructor(changeService: ChangeService, i18nService: I18nService, sfService: SalesforceService, dataService: DataService);
|
|
45
|
+
hasUnsavedChanges: boolean;
|
|
46
|
+
savedData: any[];
|
|
33
47
|
ngOnInit(): void;
|
|
48
|
+
search(): void;
|
|
49
|
+
updatePagination(): void;
|
|
50
|
+
get paginatedData(): any[];
|
|
51
|
+
setPage(page: number): void;
|
|
52
|
+
private resetComponentState;
|
|
34
53
|
addRow(): void;
|
|
35
54
|
updateRadio(item: any, value: string): void;
|
|
36
55
|
updateLabel(rowIndex: number, label: string, value: any): void;
|
|
37
56
|
deleteRow(rowIndex: number): void;
|
|
57
|
+
saveTable(): void;
|
|
58
|
+
revertChanges(): void;
|
|
38
59
|
editRow(rowIndex: number): void;
|
|
39
60
|
updateNumber(item: any, label: string, value: string): void;
|
|
40
61
|
emitTableDataValue(updatedTableData: any[]): void;
|
|
62
|
+
ngOnDestroy(): void;
|
|
41
63
|
static ɵfac: i0.ɵɵFactoryDeclaration<CustomTableComponent, never>;
|
|
42
|
-
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>;
|
|
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>;
|
|
43
65
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { OnInit, EventEmitter, ElementRef } from "@angular/core";
|
|
1
|
+
import { OnInit, EventEmitter, ElementRef, SimpleChanges } from "@angular/core";
|
|
2
2
|
import { DataService } from '../../services/data.service';
|
|
3
3
|
import { SalesforceService } from "../../services/salesforce.service";
|
|
4
4
|
import { ActivatedRoute } from "@angular/router";
|
|
@@ -31,10 +31,13 @@ export declare class SearchBoxComponent implements OnInit {
|
|
|
31
31
|
private tkn;
|
|
32
32
|
constructor(sfService: SalesforceService, dataService: DataService, route: ActivatedRoute, el: ElementRef, i18nService: I18nService);
|
|
33
33
|
ngOnInit(): void;
|
|
34
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
35
|
+
private resetComponentState;
|
|
34
36
|
clearList(): void;
|
|
35
37
|
getSourceDataLocal(event: any): void;
|
|
36
38
|
getSourceData: (keyword: string) => void;
|
|
37
39
|
clickItem(event: any): void;
|
|
40
|
+
ngOnDestroy(): void;
|
|
38
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<SearchBoxComponent, never>;
|
|
39
42
|
static ɵcmp: i0.ɵɵComponentDeclaration<SearchBoxComponent, "lib-search-box", never, { "placeHolderText": { "alias": "placeHolderText"; "required": false; }; "question": { "alias": "question"; "required": false; }; "apiMeta": { "alias": "apiMeta"; "required": false; }; "id": { "alias": "id"; "required": false; }; "readOnly": { "alias": "readOnly"; "required": false; }; "filterName": { "alias": "filterName"; "required": false; }; }, { "searchValueChange": "searchValueChange"; }, never, never, false, never>;
|
|
40
43
|
}
|
|
@@ -58,6 +58,7 @@ 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;
|
|
61
62
|
openCalendarModal(event: any): void;
|
|
62
63
|
onCalendarModalSave(): void;
|
|
63
64
|
handleQuestionEvent(event: any): void;
|
package/package.json
CHANGED
|
Binary file
|
package/src/lib/style.css
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
@import "~@ng-select/ng-select/themes/default.theme.css";
|
|
2
2
|
@import "@danielmoncada/angular-datetime-picker/assets/style/picker.min.css";
|
|
3
3
|
@import '~quill/dist/quill.bubble.css';
|
|
4
|
+
@import "@danielmoncada/angular-datetime-picker/assets/style/picker.min.css"; /* AP-04FEB25 date-picker */
|
|
4
5
|
/* @import '~font-awesome/css/font-awesome.css'; */
|
|
5
6
|
/*General Nxt App stylings */
|
|
6
7
|
.rusty{
|
|
Binary file
|