@memberjunction/ng-query-grid 0.9.8 → 0.9.9
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.
|
@@ -2,6 +2,7 @@ import { ElementRef, EventEmitter, OnInit, AfterViewInit } from '@angular/core';
|
|
|
2
2
|
import { BaseEntity, PrimaryKeyValue, RunQueryParams } from '@memberjunction/core';
|
|
3
3
|
import { CellClickEvent, GridDataResult, PageChangeEvent, GridComponent, SelectableSettings } from "@progress/kendo-angular-grid";
|
|
4
4
|
import { ExcelExportComponent } from '@progress/kendo-angular-excel-export';
|
|
5
|
+
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
5
6
|
import * as i0 from "@angular/core";
|
|
6
7
|
export type GridRowClickedEvent = {
|
|
7
8
|
entityId: number;
|
|
@@ -48,7 +49,7 @@ export declare class QueryGridComponent implements OnInit, AfterViewInit {
|
|
|
48
49
|
doExcelExport(): Promise<void>;
|
|
49
50
|
protected getExportData(): Promise<any[]>;
|
|
50
51
|
protected queryColumns(): string[] | undefined;
|
|
51
|
-
kendoSVGIcon
|
|
52
|
+
kendoSVGIcon: typeof kendoSVGIcon;
|
|
52
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<QueryGridComponent, never>;
|
|
53
54
|
static ɵcmp: i0.ɵɵComponentDeclaration<QueryGridComponent, "mj-query-grid", never, { "Params": { "alias": "Params"; "required": false; }; "BottomMargin": { "alias": "BottomMargin"; "required": false; }; "InEditMode": { "alias": "InEditMode"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "AutoNavigate": { "alias": "AutoNavigate"; "required": false; }; "AllowLoad": { "alias": "AllowLoad"; "required": false; }; }, { "rowClicked": "rowClicked"; }, never, never, false, never>;
|
|
54
55
|
}
|
|
@@ -12,7 +12,7 @@ import { Metadata, LogError, RunQuery } from '@memberjunction/core';
|
|
|
12
12
|
import { GridComponent } from "@progress/kendo-angular-grid";
|
|
13
13
|
import { ExcelExportComponent } from '@progress/kendo-angular-excel-export';
|
|
14
14
|
import { MJEventType, MJGlobal } from '@memberjunction/global';
|
|
15
|
-
import
|
|
15
|
+
import { kendoSVGIcon } from '@memberjunction/ng-shared';
|
|
16
16
|
import * as i0 from "@angular/core";
|
|
17
17
|
import * as i1 from "@angular/common";
|
|
18
18
|
import * as i2 from "@progress/kendo-angular-grid";
|
|
@@ -95,6 +95,7 @@ export class QueryGridComponent {
|
|
|
95
95
|
this._allowLoad = true;
|
|
96
96
|
// Export Functionality
|
|
97
97
|
this.exportData = [];
|
|
98
|
+
this.kendoSVGIcon = kendoSVGIcon;
|
|
98
99
|
}
|
|
99
100
|
CreateSimpleNotification(message, style, duration) {
|
|
100
101
|
const data = {
|
|
@@ -206,21 +207,6 @@ export class QueryGridComponent {
|
|
|
206
207
|
return Object.keys(firstRow);
|
|
207
208
|
}
|
|
208
209
|
}
|
|
209
|
-
kendoSVGIcon(iconName) {
|
|
210
|
-
// Cast KendoSVGIcons to any to bypass the index signature check
|
|
211
|
-
try {
|
|
212
|
-
const lookupName = iconName.endsWith('Icon') ? iconName : iconName + 'Icon';
|
|
213
|
-
const icon = KendoSVGIcons[lookupName];
|
|
214
|
-
if (!icon)
|
|
215
|
-
console.log('Icon not found: ' + iconName);
|
|
216
|
-
return icon || null;
|
|
217
|
-
}
|
|
218
|
-
catch (e) {
|
|
219
|
-
// icon not found
|
|
220
|
-
console.log('Icon not found: ' + iconName);
|
|
221
|
-
return null;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
210
|
}
|
|
225
211
|
QueryGridComponent.ɵfac = function QueryGridComponent_Factory(t) { return new (t || QueryGridComponent)(); };
|
|
226
212
|
QueryGridComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: QueryGridComponent, selectors: [["mj-query-grid"]], viewQuery: function QueryGridComponent_Query(rf, ctx) { if (rf & 1) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-query-grid",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.9",
|
|
4
4
|
"description": "MemberJunction: Angular Grid to display any MemberJunction Query",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -25,14 +25,14 @@
|
|
|
25
25
|
"@angular/router": "^17.1.2",
|
|
26
26
|
"@progress/kendo-angular-grid": "^15.0.1",
|
|
27
27
|
"@progress/kendo-angular-buttons": "^15.0.1",
|
|
28
|
-
"@progress/kendo-angular-dialog": "^15.0.1"
|
|
29
|
-
"@progress/kendo-svg-icons": "^15.0.1"
|
|
28
|
+
"@progress/kendo-angular-dialog": "^15.0.1"
|
|
30
29
|
},
|
|
31
30
|
"dependencies": {
|
|
32
31
|
"@memberjunction/core-entities": "^0.9.112",
|
|
33
32
|
"@memberjunction/global": "^0.9.123",
|
|
34
33
|
"@memberjunction/core": "^0.9.134",
|
|
35
34
|
"@memberjunction/ng-container-directives": "^0.9.103",
|
|
35
|
+
"@memberjunction/ng-shared": "^0.9.1",
|
|
36
36
|
"tslib": "^2.3.0"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false
|