@memberjunction/ng-user-view-grid 0.9.195 → 0.9.196

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,19 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./ng-user-view-grid.component";
3
- import * as i2 from "./grid-with-analysis.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@angular/router";
7
- import * as i6 from "@progress/kendo-angular-grid";
8
- import * as i7 from "@progress/kendo-angular-dialog";
9
- import * as i8 from "@progress/kendo-angular-excel-export";
10
- import * as i9 from "@progress/kendo-angular-buttons";
11
- import * as i10 from "@memberjunction/ng-compare-records";
12
- import * as i11 from "@memberjunction/ng-container-directives";
13
- import * as i12 from "@progress/kendo-angular-icons";
14
- import * as i13 from "@progress/kendo-angular-layout";
15
- import * as i14 from "@progress/kendo-angular-inputs";
16
- import * as i15 from "@memberjunction/ng-ask-skip";
3
+ import * as i2 from "@angular/common";
4
+ import * as i3 from "@angular/forms";
5
+ import * as i4 from "@angular/router";
6
+ import * as i5 from "@progress/kendo-angular-grid";
7
+ import * as i6 from "@progress/kendo-angular-dialog";
8
+ import * as i7 from "@progress/kendo-angular-excel-export";
9
+ import * as i8 from "@progress/kendo-angular-buttons";
10
+ import * as i9 from "@memberjunction/ng-compare-records";
11
+ import * as i10 from "@memberjunction/ng-container-directives";
12
+ import * as i11 from "@progress/kendo-angular-icons";
13
+ import * as i12 from "@progress/kendo-angular-layout";
14
+ import * as i13 from "@progress/kendo-angular-inputs";
17
15
  export declare class UserViewGridModule {
18
16
  static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridModule, never>;
19
- static ɵmod: i0.ɵɵNgModuleDeclaration<UserViewGridModule, [typeof i1.UserViewGridComponent, typeof i2.UserViewGridWithAnalysisComponent], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.RouterModule, typeof i6.GridModule, typeof i7.DialogsModule, typeof i8.ExcelExportModule, typeof i9.ButtonsModule, typeof i10.CompareRecordsModule, typeof i11.ContainerDirectivesModule, typeof i12.IconsModule, typeof i13.LayoutModule, typeof i14.InputsModule, typeof i15.AskSkipModule], [typeof i1.UserViewGridComponent, typeof i2.UserViewGridWithAnalysisComponent]>;
17
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UserViewGridModule, [typeof i1.UserViewGridComponent], [typeof i2.CommonModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.RouterModule, typeof i5.GridModule, typeof i6.DialogsModule, typeof i7.ExcelExportModule, typeof i8.ButtonsModule, typeof i9.CompareRecordsModule, typeof i10.ContainerDirectivesModule, typeof i11.IconsModule, typeof i12.LayoutModule, typeof i13.InputsModule], [typeof i1.UserViewGridComponent]>;
20
18
  static ɵinj: i0.ɵɵInjectorDeclaration<UserViewGridModule>;
21
19
  }
@@ -13,12 +13,7 @@ import { LayoutModule } from '@progress/kendo-angular-layout';
13
13
  import { InputsModule } from '@progress/kendo-angular-inputs';
14
14
  import { CompareRecordsModule } from '@memberjunction/ng-compare-records';
15
15
  import { ContainerDirectivesModule } from '@memberjunction/ng-container-directives';
16
- //import { PlotlyViaCDNModule } from 'angular-plotly.js';
17
- import { AskSkipModule } from '@memberjunction/ng-ask-skip';
18
- import { UserViewGridWithAnalysisComponent } from './grid-with-analysis.component';
19
16
  import * as i0 from "@angular/core";
20
- // PlotlyViaCDNModule.setPlotlyVersion('latest'); // can be `latest` or any version number (i.e.: '1.40.0')
21
- // PlotlyViaCDNModule.setPlotlyBundle(null); // optional: can be null (for full) or 'basic', 'cartesian', 'geo', 'gl3d', 'gl2d', 'mapbox' or 'finance'
22
17
  export class UserViewGridModule {
23
18
  }
24
19
  UserViewGridModule.ɵfac = function UserViewGridModule_Factory(t) { return new (t || UserViewGridModule)(); };
@@ -35,15 +30,12 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
35
30
  ContainerDirectivesModule,
36
31
  IconsModule,
37
32
  LayoutModule,
38
- InputsModule,
39
- // PlotlyViaCDNModule,
40
- AskSkipModule] });
33
+ InputsModule] });
41
34
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridModule, [{
42
35
  type: NgModule,
43
36
  args: [{
44
37
  declarations: [
45
- UserViewGridComponent,
46
- UserViewGridWithAnalysisComponent
38
+ UserViewGridComponent
47
39
  ],
48
40
  imports: [
49
41
  CommonModule,
@@ -58,18 +50,14 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
58
50
  ContainerDirectivesModule,
59
51
  IconsModule,
60
52
  LayoutModule,
61
- InputsModule,
62
- // PlotlyViaCDNModule,
63
- AskSkipModule
53
+ InputsModule
64
54
  ],
65
55
  exports: [
66
- UserViewGridComponent,
67
- UserViewGridWithAnalysisComponent
56
+ UserViewGridComponent
68
57
  ]
69
58
  }]
70
59
  }], null, null); })();
71
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UserViewGridModule, { declarations: [UserViewGridComponent,
72
- UserViewGridWithAnalysisComponent], imports: [CommonModule,
60
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(UserViewGridModule, { declarations: [UserViewGridComponent], imports: [CommonModule,
73
61
  FormsModule,
74
62
  ReactiveFormsModule,
75
63
  RouterModule,
@@ -81,7 +69,4 @@ UserViewGridModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [Commo
81
69
  ContainerDirectivesModule,
82
70
  IconsModule,
83
71
  LayoutModule,
84
- InputsModule,
85
- // PlotlyViaCDNModule,
86
- AskSkipModule], exports: [UserViewGridComponent,
87
- UserViewGridWithAnalysisComponent] }); })();
72
+ InputsModule], exports: [UserViewGridComponent] }); })();
@@ -1,3 +1,2 @@
1
1
  export * from './lib/ng-user-view-grid.component';
2
- export * from './lib/grid-with-analysis.component';
3
2
  export * from './lib/ng-user-view-grid.module';
@@ -2,5 +2,4 @@
2
2
  * Public API Surface of ng-user-view-grid
3
3
  */
4
4
  export * from './lib/ng-user-view-grid.component';
5
- export * from './lib/grid-with-analysis.component';
6
5
  export * from './lib/ng-user-view-grid.module';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@memberjunction/ng-user-view-grid",
3
- "version": "0.9.195",
3
+ "version": "0.9.196",
4
4
  "description": "MemberJunction: Angular Grid to display dynamic and saved user views for any entity in MemberJunction.",
5
5
  "main": "./dist/public-api.js",
6
6
  "typings": "./dist/public-api.d.ts",
@@ -36,7 +36,6 @@
36
36
  "@memberjunction/ng-shared": "^0.9.17",
37
37
  "@memberjunction/ng-compare-records": "^0.9.163",
38
38
  "@memberjunction/ng-container-directives": "^0.9.131",
39
- "@memberjunction/ng-ask-skip": "^0.9.68",
40
39
  "tslib": "^2.3.0"
41
40
  },
42
41
  "sideEffects": false
@@ -1,21 +0,0 @@
1
- import { AfterViewInit, EventEmitter } from "@angular/core";
2
- import { RunViewParams } from "@memberjunction/core";
3
- import { GridRowClickedEvent, GridRowEditedEvent, UserViewGridComponent } from "./ng-user-view-grid.component";
4
- import * as i0 from "@angular/core";
5
- export declare class UserViewGridWithAnalysisComponent implements AfterViewInit {
6
- Params: RunViewParams | undefined;
7
- InEditMode: boolean;
8
- EditMode: "None" | "Save" | "Queue";
9
- AutoNavigate: boolean;
10
- BottomMargin: number;
11
- rowClicked: EventEmitter<GridRowClickedEvent>;
12
- rowEdited: EventEmitter<GridRowEditedEvent>;
13
- viewGrid: UserViewGridComponent;
14
- get ViewID(): number;
15
- selectTabHandler(): void;
16
- ngAfterViewInit(): void;
17
- _pendingRefresh: boolean;
18
- Refresh(params: RunViewParams): Promise<void>;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<UserViewGridWithAnalysisComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<UserViewGridWithAnalysisComponent, "mj-user-view-grid-with-analysis", never, { "Params": { "alias": "Params"; "required": false; }; "InEditMode": { "alias": "InEditMode"; "required": false; }; "EditMode": { "alias": "EditMode"; "required": false; }; "AutoNavigate": { "alias": "AutoNavigate"; "required": false; }; "BottomMargin": { "alias": "BottomMargin"; "required": false; }; }, { "rowClicked": "rowClicked"; "rowEdited": "rowEdited"; }, never, never, false, never>;
21
- }
@@ -1,133 +0,0 @@
1
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
- return new (P || (P = Promise))(function (resolve, reject) {
4
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
- step((generator = generator.apply(thisArg, _arguments || [])).next());
8
- });
9
- };
10
- import { Component, EventEmitter, Input, Output, ViewChild } from "@angular/core";
11
- import { UserViewGridComponent } from "./ng-user-view-grid.component";
12
- import { SharedService } from "@memberjunction/ng-shared";
13
- import * as i0 from "@angular/core";
14
- import * as i1 from "@memberjunction/ng-container-directives";
15
- import * as i2 from "@progress/kendo-angular-layout";
16
- import * as i3 from "@memberjunction/ng-ask-skip";
17
- import * as i4 from "./ng-user-view-grid.component";
18
- function UserViewGridWithAnalysisComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
19
- i0.ɵɵtext(0, "Data");
20
- } }
21
- function UserViewGridWithAnalysisComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
22
- const _r5 = i0.ɵɵgetCurrentView();
23
- i0.ɵɵelementStart(0, "mj-user-view-grid", 4);
24
- i0.ɵɵlistener("rowClicked", function UserViewGridWithAnalysisComponent_ng_template_3_Template_mj_user_view_grid_rowClicked_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4.rowClicked.emit($event)); })("rowEdited", function UserViewGridWithAnalysisComponent_ng_template_3_Template_mj_user_view_grid_rowEdited_0_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r6.rowEdited.emit($event)); });
25
- i0.ɵɵelementEnd();
26
- } if (rf & 2) {
27
- const ctx_r1 = i0.ɵɵnextContext();
28
- i0.ɵɵproperty("Params", ctx_r1.Params)("InEditMode", ctx_r1.InEditMode)("EditMode", ctx_r1.EditMode)("AutoNavigate", ctx_r1.AutoNavigate);
29
- } }
30
- function UserViewGridWithAnalysisComponent_ng_template_5_Template(rf, ctx) { if (rf & 1) {
31
- i0.ɵɵtext(0, "Analysis");
32
- } }
33
- function UserViewGridWithAnalysisComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
34
- i0.ɵɵelement(0, "mj-skip-chat", 5);
35
- } if (rf & 2) {
36
- const ctx_r3 = i0.ɵɵnextContext();
37
- i0.ɵɵproperty("AllowNewConversations", false)("ShowConversationList", false)("UpdateAppRoute", false)("LinkedEntity", "User Views")("LinkedEntityRecordID", ctx_r3.ViewID);
38
- } }
39
- export class UserViewGridWithAnalysisComponent {
40
- constructor() {
41
- this.InEditMode = false;
42
- this.EditMode = "None";
43
- this.AutoNavigate = true;
44
- this.BottomMargin = 0;
45
- this.rowClicked = new EventEmitter();
46
- this.rowEdited = new EventEmitter();
47
- this._pendingRefresh = false;
48
- }
49
- get ViewID() {
50
- if (this.Params && this.Params.ViewID)
51
- return this.Params.ViewID;
52
- else
53
- return 0;
54
- }
55
- selectTabHandler() {
56
- SharedService.Instance.InvokeManualResize(100); // resize when the tab is clicked
57
- }
58
- ngAfterViewInit() {
59
- if (this._pendingRefresh && this.Params) {
60
- this._pendingRefresh = false;
61
- this.Refresh(this.Params);
62
- }
63
- }
64
- Refresh(params) {
65
- return __awaiter(this, void 0, void 0, function* () {
66
- this.Params = params;
67
- if (this.viewGrid)
68
- this.viewGrid.Refresh(params);
69
- else
70
- this._pendingRefresh = true;
71
- });
72
- }
73
- }
74
- UserViewGridWithAnalysisComponent.ɵfac = function UserViewGridWithAnalysisComponent_Factory(t) { return new (t || UserViewGridWithAnalysisComponent)(); };
75
- UserViewGridWithAnalysisComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: UserViewGridWithAnalysisComponent, selectors: [["mj-user-view-grid-with-analysis"]], viewQuery: function UserViewGridWithAnalysisComponent_Query(rf, ctx) { if (rf & 1) {
76
- i0.ɵɵviewQuery(UserViewGridComponent, 5);
77
- } if (rf & 2) {
78
- let _t;
79
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.viewGrid = _t.first);
80
- } }, inputs: { Params: "Params", InEditMode: "InEditMode", EditMode: "EditMode", AutoNavigate: "AutoNavigate", BottomMargin: "BottomMargin" }, outputs: { rowClicked: "rowClicked", rowEdited: "rowEdited" }, decls: 7, vars: 4, consts: [["mjFillContainer", "", 3, "keepTabContent", "animate", "bottomMargin", "tabSelect"], [3, "selected"], ["kendoTabTitle", ""], ["kendoTabContent", ""], [3, "Params", "InEditMode", "EditMode", "AutoNavigate", "rowClicked", "rowEdited"], ["mjFillContainer", "", 3, "AllowNewConversations", "ShowConversationList", "UpdateAppRoute", "LinkedEntity", "LinkedEntityRecordID"]], template: function UserViewGridWithAnalysisComponent_Template(rf, ctx) { if (rf & 1) {
81
- i0.ɵɵelementStart(0, "kendo-tabstrip", 0);
82
- i0.ɵɵlistener("tabSelect", function UserViewGridWithAnalysisComponent_Template_kendo_tabstrip_tabSelect_0_listener() { return ctx.selectTabHandler(); });
83
- i0.ɵɵelementStart(1, "kendo-tabstrip-tab", 1);
84
- i0.ɵɵtemplate(2, UserViewGridWithAnalysisComponent_ng_template_2_Template, 1, 0, "ng-template", 2)(3, UserViewGridWithAnalysisComponent_ng_template_3_Template, 1, 4, "ng-template", 3);
85
- i0.ɵɵelementEnd();
86
- i0.ɵɵelementStart(4, "kendo-tabstrip-tab");
87
- i0.ɵɵtemplate(5, UserViewGridWithAnalysisComponent_ng_template_5_Template, 1, 0, "ng-template", 2)(6, UserViewGridWithAnalysisComponent_ng_template_6_Template, 1, 5, "ng-template", 3);
88
- i0.ɵɵelementEnd()();
89
- } if (rf & 2) {
90
- i0.ɵɵproperty("keepTabContent", true)("animate", false)("bottomMargin", ctx.BottomMargin);
91
- i0.ɵɵadvance();
92
- i0.ɵɵproperty("selected", true);
93
- } }, dependencies: [i1.FillContainer, i2.TabStripComponent, i2.TabStripTabComponent, i2.TabContentDirective, i2.TabTitleDirective, i3.SkipChatComponent, i4.UserViewGridComponent], styles: [".user-view-grid-wrap[_ngcontent-%COMP%] {\r\n height: calc(100vh-20px);\r\n}\r\n\r\n.user-view-grid-column-header[_ngcontent-%COMP%] {\r\n background-color: #a9c2af;\r\n font-size: 20pt;\r\n font-weight: bold;\r\n}"] });
94
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(UserViewGridWithAnalysisComponent, [{
95
- type: Component,
96
- args: [{ selector: 'mj-user-view-grid-with-analysis', template: `
97
- <kendo-tabstrip [keepTabContent]="true" [animate] = "false" mjFillContainer [bottomMargin]="BottomMargin" (tabSelect)="selectTabHandler() ">
98
- <kendo-tabstrip-tab [selected]="true">
99
- <ng-template kendoTabTitle>Data</ng-template>
100
- <ng-template kendoTabContent>
101
- <mj-user-view-grid [Params]="Params" [InEditMode]="InEditMode" [EditMode]="EditMode" [AutoNavigate]="AutoNavigate"
102
- (rowClicked)="this.rowClicked.emit($event)" (rowEdited)="this.rowEdited.emit($event)" ></mj-user-view-grid>
103
- </ng-template>
104
- </kendo-tabstrip-tab>
105
- <kendo-tabstrip-tab>
106
- <ng-template kendoTabTitle>Analysis</ng-template>
107
- <ng-template kendoTabContent>
108
- <mj-skip-chat mjFillContainer [AllowNewConversations]="false" [ShowConversationList]="false" [UpdateAppRoute]="false"
109
- [LinkedEntity]="'User Views'" [LinkedEntityRecordID]="ViewID">
110
- </mj-skip-chat>
111
- </ng-template>
112
- </kendo-tabstrip-tab>
113
- </kendo-tabstrip>
114
- `, styles: [".user-view-grid-wrap {\r\n height: calc(100vh-20px);\r\n}\r\n\r\n.user-view-grid-column-header {\r\n background-color: #a9c2af;\r\n font-size: 20pt;\r\n font-weight: bold;\r\n}"] }]
115
- }], null, { Params: [{
116
- type: Input
117
- }], InEditMode: [{
118
- type: Input
119
- }], EditMode: [{
120
- type: Input
121
- }], AutoNavigate: [{
122
- type: Input
123
- }], BottomMargin: [{
124
- type: Input
125
- }], rowClicked: [{
126
- type: Output
127
- }], rowEdited: [{
128
- type: Output
129
- }], viewGrid: [{
130
- type: ViewChild,
131
- args: [UserViewGridComponent, { static: false }]
132
- }] }); })();
133
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(UserViewGridWithAnalysisComponent, { className: "UserViewGridWithAnalysisComponent", filePath: "src\\lib\\grid-with-analysis.component.ts", lineNumber: 29 }); })();