@memberjunction/ng-generic-dialog 2.8.0
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/dist/lib/dialog.component.d.ts +83 -0
- package/dist/lib/dialog.component.d.ts.map +1 -0
- package/dist/lib/dialog.component.js +192 -0
- package/dist/lib/dialog.component.js.map +1 -0
- package/dist/module.d.ts +11 -0
- package/dist/module.d.ts.map +1 -0
- package/dist/module.js +34 -0
- package/dist/module.js.map +1 -0
- package/dist/public-api.d.ts +3 -0
- package/dist/public-api.d.ts.map +1 -0
- package/dist/public-api.js +6 -0
- package/dist/public-api.js.map +1 -0
- package/package.json +31 -0
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { EventEmitter, ChangeDetectorRef, ElementRef, AfterContentInit } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Generic base dialog component that can be used as a base for other dialogs by using this component as shown here in any other Angular component.
|
|
5
|
+
* The custom-actions slot shown below is entirely optional, if you don't need anything beyond OK/Cancel, you can leave this out entirely. You can also turn off the
|
|
6
|
+
* built-in OK and Cancel buttons using the ShowOKButton and ShowCancelButton properties.
|
|
7
|
+
*
|
|
8
|
+
* <mj-generic-dialog DialogTitle="Your Dialog Title" [DialogVisible]="YourVisibleStateVariable" (DialogClosed)="YourDialogClosedEventHandler($event)">
|
|
9
|
+
* <div>
|
|
10
|
+
* Your content goes in here
|
|
11
|
+
* </div>
|
|
12
|
+
* <div custom-actions>
|
|
13
|
+
* <button kendoButton (click)="customOkClick()" themeColor="primary">Custom OK</button>
|
|
14
|
+
* <button kendoButton (click)="customCancelClick()">Custom Cancel</button>
|
|
15
|
+
* <button kendoButton (click)="additionalAction()">Additional Action</button>
|
|
16
|
+
* </div>
|
|
17
|
+
* </mj-generic-dialog>
|
|
18
|
+
*/
|
|
19
|
+
export declare class GenericDialogComponent implements AfterContentInit {
|
|
20
|
+
private cdr;
|
|
21
|
+
constructor(cdr: ChangeDetectorRef);
|
|
22
|
+
/**
|
|
23
|
+
* Dialog title
|
|
24
|
+
*/
|
|
25
|
+
DialogTitle: string;
|
|
26
|
+
/**
|
|
27
|
+
* Optional, width of the dialog in pixels or percentage
|
|
28
|
+
*/
|
|
29
|
+
DialogWidth: string;
|
|
30
|
+
/**
|
|
31
|
+
* Optional, height of the dialog in pixels or percentage
|
|
32
|
+
*/
|
|
33
|
+
DialogHeight: string;
|
|
34
|
+
/**
|
|
35
|
+
* Ability to turn off the built-in OK button if it is not desired
|
|
36
|
+
*/
|
|
37
|
+
ShowOKButton: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Text displayed on the OK button, defaults to "OK" if not provided
|
|
40
|
+
*/
|
|
41
|
+
OKButtonText: string;
|
|
42
|
+
/**
|
|
43
|
+
* Text displayed on the Cancel button, defaults to "Cancel" if not provided
|
|
44
|
+
*/
|
|
45
|
+
CancelButtonText: string;
|
|
46
|
+
/**
|
|
47
|
+
* Ability to turn off the built-in Cancel button if it is not desired
|
|
48
|
+
*/
|
|
49
|
+
ShowCancelButton: boolean;
|
|
50
|
+
/**
|
|
51
|
+
* Determines if the dialog is visible or not, bind this to a variable in your containing component that is changed to true when you want the dialog shown. When the user closes the dialog this property will
|
|
52
|
+
* be set to false automatically.
|
|
53
|
+
*/
|
|
54
|
+
get DialogVisible(): boolean;
|
|
55
|
+
set DialogVisible(value: boolean);
|
|
56
|
+
private _dialogVisible;
|
|
57
|
+
/**
|
|
58
|
+
* Emits when the dialog is closed, the parameter is true if the dialog was closed with the OK button, false if it was closed with the Cancel button
|
|
59
|
+
*/
|
|
60
|
+
DialogClosed: EventEmitter<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* This event is fired during the component lifecycle if the dialog wants the user of the dialog to refresh the data provided within its content.
|
|
63
|
+
*/
|
|
64
|
+
RefreshData: EventEmitter<void>;
|
|
65
|
+
/**
|
|
66
|
+
* Internal event handler for the Cancel button, you can call this method directly if you want to simulate the user clicking on the Cancel button
|
|
67
|
+
*/
|
|
68
|
+
HandleCancelClick(): void;
|
|
69
|
+
/**
|
|
70
|
+
* Internal event handler for the OK button, you can call this method directly if you want to simulate the user clicking on the OK button
|
|
71
|
+
*/
|
|
72
|
+
HandleOKClick(): void;
|
|
73
|
+
private _hasCustomActions;
|
|
74
|
+
/**
|
|
75
|
+
* Returns true if the dialog has custom actions defined in the custom-actions slot
|
|
76
|
+
*/
|
|
77
|
+
get HasCustomActions(): boolean;
|
|
78
|
+
customActions: ElementRef;
|
|
79
|
+
ngAfterContentInit(): void;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericDialogComponent, never>;
|
|
81
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GenericDialogComponent, "mj-generic-dialog", never, { "DialogTitle": { "alias": "DialogTitle"; "required": false; }; "DialogWidth": { "alias": "DialogWidth"; "required": false; }; "DialogHeight": { "alias": "DialogHeight"; "required": false; }; "ShowOKButton": { "alias": "ShowOKButton"; "required": false; }; "OKButtonText": { "alias": "OKButtonText"; "required": false; }; "CancelButtonText": { "alias": "CancelButtonText"; "required": false; }; "ShowCancelButton": { "alias": "ShowCancelButton"; "required": false; }; "DialogVisible": { "alias": "DialogVisible"; "required": false; }; }, { "DialogClosed": "DialogClosed"; "RefreshData": "RefreshData"; }, ["customActions"], ["*", "[custom-actions]"], false, never>;
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=dialog.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dialog.component.d.ts","sourceRoot":"","sources":["../../src/lib/dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAS,iBAAiB,EAAE,UAAU,EAAgB,gBAAgB,EAAE,MAAM,eAAe,CAAC;;AAEtI;;;;;;;;;;;;;;;GAeG;AACH,qBAKa,sBAAuB,YAAW,gBAAgB;IACjD,OAAO,CAAC,GAAG;gBAAH,GAAG,EAAE,iBAAiB;IAE1C;;OAEG;IACM,WAAW,EAAE,MAAM,CAAmB;IAC/C;;OAEG;IACM,WAAW,EAAE,MAAM,CAAW;IACvC;;OAEG;IACM,YAAY,EAAE,MAAM,CAAW;IAExC;;OAEG;IACM,YAAY,EAAE,OAAO,CAAQ;IAEtC;;OAEG;IACM,YAAY,EAAE,MAAM,CAAQ;IAErC;;OAEG;IACM,gBAAgB,EAAE,MAAM,CAAY;IAE7C;;OAEG;IACM,gBAAgB,EAAE,OAAO,CAAQ;IAE1C;;;OAGG;IACH,IAAa,aAAa,IAAI,OAAO,CAEpC;IACD,IAAI,aAAa,CAAC,KAAK,EAAE,OAAO,EAO/B;IACD,OAAO,CAAC,cAAc,CAAkB;IAGxC;;OAEG;IACO,YAAY,wBAA+B;IAErD;;OAEG;IACO,WAAW,qBAA4B;IAEjD;;OAEG;IACI,iBAAiB;IAKxB;;OAEG;IACI,aAAa;IAKpB,OAAO,CAAC,iBAAiB,CAAkB;IAC3C;;OAEG;IACH,IAAW,gBAAgB,IAAI,OAAO,CAErC;IAEkD,aAAa,EAAG,UAAU,CAAC;IAE9E,kBAAkB;yCA1FP,sBAAsB;2CAAtB,sBAAsB;CA6FlC"}
|
|
@@ -0,0 +1,192 @@
|
|
|
1
|
+
import { Component, Output, EventEmitter, Input, ContentChild } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@progress/kendo-angular-dialog";
|
|
4
|
+
import * as i2 from "@progress/kendo-angular-buttons";
|
|
5
|
+
const _c0 = ["custom-actions"];
|
|
6
|
+
const _c1 = ["*", [["", "custom-actions", ""]]];
|
|
7
|
+
const _c2 = ["*", "[custom-actions]"];
|
|
8
|
+
function GenericDialogComponent_Conditional_0_Conditional_3_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
+
const _r3 = i0.ɵɵgetCurrentView();
|
|
10
|
+
i0.ɵɵelementStart(0, "button", 4);
|
|
11
|
+
i0.ɵɵlistener("click", function GenericDialogComponent_Conditional_0_Conditional_3_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r3); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.HandleOKClick()); });
|
|
12
|
+
i0.ɵɵtext(1);
|
|
13
|
+
i0.ɵɵelementEnd();
|
|
14
|
+
} if (rf & 2) {
|
|
15
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
16
|
+
i0.ɵɵadvance();
|
|
17
|
+
i0.ɵɵtextInterpolate(ctx_r1.OKButtonText);
|
|
18
|
+
} }
|
|
19
|
+
function GenericDialogComponent_Conditional_0_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
20
|
+
const _r4 = i0.ɵɵgetCurrentView();
|
|
21
|
+
i0.ɵɵelementStart(0, "button", 5);
|
|
22
|
+
i0.ɵɵlistener("click", function GenericDialogComponent_Conditional_0_Conditional_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r1 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r1.HandleCancelClick()); });
|
|
23
|
+
i0.ɵɵtext(1);
|
|
24
|
+
i0.ɵɵelementEnd();
|
|
25
|
+
} if (rf & 2) {
|
|
26
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
27
|
+
i0.ɵɵadvance();
|
|
28
|
+
i0.ɵɵtextInterpolate(ctx_r1.CancelButtonText);
|
|
29
|
+
} }
|
|
30
|
+
function GenericDialogComponent_Conditional_0_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
31
|
+
i0.ɵɵelementStart(0, "span");
|
|
32
|
+
i0.ɵɵtext(1, "No actions available - enable built-in actions or add custom actions");
|
|
33
|
+
i0.ɵɵelementEnd();
|
|
34
|
+
} }
|
|
35
|
+
function GenericDialogComponent_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
36
|
+
const _r1 = i0.ɵɵgetCurrentView();
|
|
37
|
+
i0.ɵɵelementStart(0, "kendo-dialog", 1);
|
|
38
|
+
i0.ɵɵlistener("close", function GenericDialogComponent_Conditional_0_Template_kendo_dialog_close_0_listener() { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.HandleCancelClick()); });
|
|
39
|
+
i0.ɵɵprojection(1);
|
|
40
|
+
i0.ɵɵelementStart(2, "kendo-dialog-actions");
|
|
41
|
+
i0.ɵɵtemplate(3, GenericDialogComponent_Conditional_0_Conditional_3_Template, 2, 1, "button", 2)(4, GenericDialogComponent_Conditional_0_Conditional_4_Template, 2, 1, "button", 3);
|
|
42
|
+
i0.ɵɵprojection(5, 1);
|
|
43
|
+
i0.ɵɵtemplate(6, GenericDialogComponent_Conditional_0_Conditional_6_Template, 2, 0, "span");
|
|
44
|
+
i0.ɵɵelementEnd()();
|
|
45
|
+
} if (rf & 2) {
|
|
46
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
47
|
+
i0.ɵɵproperty("width", ctx_r1.DialogWidth)("height", ctx_r1.DialogHeight)("title", ctx_r1.DialogTitle);
|
|
48
|
+
i0.ɵɵadvance(3);
|
|
49
|
+
i0.ɵɵconditional(ctx_r1.ShowOKButton ? 3 : -1);
|
|
50
|
+
i0.ɵɵadvance();
|
|
51
|
+
i0.ɵɵconditional(ctx_r1.ShowCancelButton ? 4 : -1);
|
|
52
|
+
i0.ɵɵadvance(2);
|
|
53
|
+
i0.ɵɵconditional(!ctx_r1.ShowOKButton && !ctx_r1.ShowCancelButton && !ctx_r1.HasCustomActions ? 6 : -1);
|
|
54
|
+
} }
|
|
55
|
+
/**
|
|
56
|
+
* Generic base dialog component that can be used as a base for other dialogs by using this component as shown here in any other Angular component.
|
|
57
|
+
* The custom-actions slot shown below is entirely optional, if you don't need anything beyond OK/Cancel, you can leave this out entirely. You can also turn off the
|
|
58
|
+
* built-in OK and Cancel buttons using the ShowOKButton and ShowCancelButton properties.
|
|
59
|
+
*
|
|
60
|
+
* <mj-generic-dialog DialogTitle="Your Dialog Title" [DialogVisible]="YourVisibleStateVariable" (DialogClosed)="YourDialogClosedEventHandler($event)">
|
|
61
|
+
* <div>
|
|
62
|
+
* Your content goes in here
|
|
63
|
+
* </div>
|
|
64
|
+
* <div custom-actions>
|
|
65
|
+
* <button kendoButton (click)="customOkClick()" themeColor="primary">Custom OK</button>
|
|
66
|
+
* <button kendoButton (click)="customCancelClick()">Custom Cancel</button>
|
|
67
|
+
* <button kendoButton (click)="additionalAction()">Additional Action</button>
|
|
68
|
+
* </div>
|
|
69
|
+
* </mj-generic-dialog>
|
|
70
|
+
*/
|
|
71
|
+
export class GenericDialogComponent {
|
|
72
|
+
constructor(cdr) {
|
|
73
|
+
this.cdr = cdr;
|
|
74
|
+
/**
|
|
75
|
+
* Dialog title
|
|
76
|
+
*/
|
|
77
|
+
this.DialogTitle = 'Default Title';
|
|
78
|
+
/**
|
|
79
|
+
* Optional, width of the dialog in pixels or percentage
|
|
80
|
+
*/
|
|
81
|
+
this.DialogWidth = '700px';
|
|
82
|
+
/**
|
|
83
|
+
* Optional, height of the dialog in pixels or percentage
|
|
84
|
+
*/
|
|
85
|
+
this.DialogHeight = '450px';
|
|
86
|
+
/**
|
|
87
|
+
* Ability to turn off the built-in OK button if it is not desired
|
|
88
|
+
*/
|
|
89
|
+
this.ShowOKButton = true;
|
|
90
|
+
/**
|
|
91
|
+
* Text displayed on the OK button, defaults to "OK" if not provided
|
|
92
|
+
*/
|
|
93
|
+
this.OKButtonText = "OK";
|
|
94
|
+
/**
|
|
95
|
+
* Text displayed on the Cancel button, defaults to "Cancel" if not provided
|
|
96
|
+
*/
|
|
97
|
+
this.CancelButtonText = "Cancel";
|
|
98
|
+
/**
|
|
99
|
+
* Ability to turn off the built-in Cancel button if it is not desired
|
|
100
|
+
*/
|
|
101
|
+
this.ShowCancelButton = true;
|
|
102
|
+
this._dialogVisible = false;
|
|
103
|
+
/**
|
|
104
|
+
* Emits when the dialog is closed, the parameter is true if the dialog was closed with the OK button, false if it was closed with the Cancel button
|
|
105
|
+
*/
|
|
106
|
+
this.DialogClosed = new EventEmitter();
|
|
107
|
+
/**
|
|
108
|
+
* This event is fired during the component lifecycle if the dialog wants the user of the dialog to refresh the data provided within its content.
|
|
109
|
+
*/
|
|
110
|
+
this.RefreshData = new EventEmitter();
|
|
111
|
+
this._hasCustomActions = false;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Determines if the dialog is visible or not, bind this to a variable in your containing component that is changed to true when you want the dialog shown. When the user closes the dialog this property will
|
|
115
|
+
* be set to false automatically.
|
|
116
|
+
*/
|
|
117
|
+
get DialogVisible() {
|
|
118
|
+
return this._dialogVisible;
|
|
119
|
+
}
|
|
120
|
+
set DialogVisible(value) {
|
|
121
|
+
if (value !== this._dialogVisible && value) {
|
|
122
|
+
// showing the dialog when it wasn't shown, refresh the data
|
|
123
|
+
this.RefreshData.emit();
|
|
124
|
+
}
|
|
125
|
+
this._dialogVisible = value;
|
|
126
|
+
this.cdr.detectChanges(); // Ensure visibility updates immediately
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Internal event handler for the Cancel button, you can call this method directly if you want to simulate the user clicking on the Cancel button
|
|
130
|
+
*/
|
|
131
|
+
HandleCancelClick() {
|
|
132
|
+
this.DialogVisible = false;
|
|
133
|
+
this.DialogClosed.emit(false);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Internal event handler for the OK button, you can call this method directly if you want to simulate the user clicking on the OK button
|
|
137
|
+
*/
|
|
138
|
+
HandleOKClick() {
|
|
139
|
+
this.DialogVisible = false;
|
|
140
|
+
this.DialogClosed.emit(true);
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Returns true if the dialog has custom actions defined in the custom-actions slot
|
|
144
|
+
*/
|
|
145
|
+
get HasCustomActions() {
|
|
146
|
+
return this._hasCustomActions;
|
|
147
|
+
}
|
|
148
|
+
ngAfterContentInit() {
|
|
149
|
+
this._hasCustomActions = !!this.customActions;
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
GenericDialogComponent.ɵfac = function GenericDialogComponent_Factory(t) { return new (t || GenericDialogComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
153
|
+
GenericDialogComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: GenericDialogComponent, selectors: [["mj-generic-dialog"]], contentQueries: function GenericDialogComponent_ContentQueries(rf, ctx, dirIndex) { if (rf & 1) {
|
|
154
|
+
i0.ɵɵcontentQuery(dirIndex, _c0, 5);
|
|
155
|
+
} if (rf & 2) {
|
|
156
|
+
let _t;
|
|
157
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.customActions = _t.first);
|
|
158
|
+
} }, inputs: { DialogTitle: "DialogTitle", DialogWidth: "DialogWidth", DialogHeight: "DialogHeight", ShowOKButton: "ShowOKButton", OKButtonText: "OKButtonText", CancelButtonText: "CancelButtonText", ShowCancelButton: "ShowCancelButton", DialogVisible: "DialogVisible" }, outputs: { DialogClosed: "DialogClosed", RefreshData: "RefreshData" }, ngContentSelectors: _c2, decls: 1, vars: 1, consts: [[3, "width", "height", "title"], [3, "close", "width", "height", "title"], ["kendoButton", "", "themeColor", "primary"], ["kendoButton", ""], ["kendoButton", "", "themeColor", "primary", 3, "click"], ["kendoButton", "", 3, "click"]], template: function GenericDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
159
|
+
i0.ɵɵprojectionDef(_c1);
|
|
160
|
+
i0.ɵɵtemplate(0, GenericDialogComponent_Conditional_0_Template, 7, 6, "kendo-dialog", 0);
|
|
161
|
+
} if (rf & 2) {
|
|
162
|
+
i0.ɵɵconditional(ctx.DialogVisible ? 0 : -1);
|
|
163
|
+
} }, dependencies: [i1.DialogComponent, i1.DialogActionsComponent, i2.ButtonComponent] });
|
|
164
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GenericDialogComponent, [{
|
|
165
|
+
type: Component,
|
|
166
|
+
args: [{ selector: 'mj-generic-dialog', template: "@if (DialogVisible) {\n <kendo-dialog\n [width]=\"DialogWidth\"\n [height]=\"DialogHeight\"\n [title]=\"DialogTitle\" \n (close)=\"HandleCancelClick()\"\n >\n <ng-content></ng-content>\n <kendo-dialog-actions>\n @if(ShowOKButton) {\n <button kendoButton (click)=\"HandleOKClick()\" themeColor=\"primary\">{{OKButtonText}}</button>\n }\n @if(ShowCancelButton) {\n <button kendoButton (click)=\"HandleCancelClick()\">{{CancelButtonText}}</button>\n }\n\n <!-- Named slot for custom actions/buttons -->\n <ng-content select=\"[custom-actions]\"></ng-content>\n\n @if(!ShowOKButton && !ShowCancelButton && !HasCustomActions) {\n <span>No actions available - enable built-in actions or add custom actions</span>\n }\n </kendo-dialog-actions> \n </kendo-dialog> \n}" }]
|
|
167
|
+
}], () => [{ type: i0.ChangeDetectorRef }], { DialogTitle: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}], DialogWidth: [{
|
|
170
|
+
type: Input
|
|
171
|
+
}], DialogHeight: [{
|
|
172
|
+
type: Input
|
|
173
|
+
}], ShowOKButton: [{
|
|
174
|
+
type: Input
|
|
175
|
+
}], OKButtonText: [{
|
|
176
|
+
type: Input
|
|
177
|
+
}], CancelButtonText: [{
|
|
178
|
+
type: Input
|
|
179
|
+
}], ShowCancelButton: [{
|
|
180
|
+
type: Input
|
|
181
|
+
}], DialogVisible: [{
|
|
182
|
+
type: Input
|
|
183
|
+
}], DialogClosed: [{
|
|
184
|
+
type: Output
|
|
185
|
+
}], RefreshData: [{
|
|
186
|
+
type: Output
|
|
187
|
+
}], customActions: [{
|
|
188
|
+
type: ContentChild,
|
|
189
|
+
args: ['custom-actions', { static: false }]
|
|
190
|
+
}] }); })();
|
|
191
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(GenericDialogComponent, { className: "GenericDialogComponent" }); })();
|
|
192
|
+
//# sourceMappingURL=dialog.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dial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AAK;YAMO,aAAa;kBAAzB,KAAK;YAiBI,YAAY;kBAArB,MAAM;YAKG,WAAW;kBAApB,MAAM;YA0B4C,aAAa;kBAA/D,YAAY;mBAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;;kFAxFtC,sBAAsB"}
|
package/dist/module.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./lib/dialog.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
import * as i3 from "@progress/kendo-angular-dialog";
|
|
5
|
+
import * as i4 from "@progress/kendo-angular-buttons";
|
|
6
|
+
export declare class GenericDialogModule {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericDialogModule, never>;
|
|
8
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericDialogModule, [typeof i1.GenericDialogComponent], [typeof i2.CommonModule, typeof i3.DialogsModule, typeof i4.ButtonsModule], [typeof i1.GenericDialogComponent]>;
|
|
9
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericDialogModule>;
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.d.ts","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":";;;;;AASA,qBAaa,mBAAmB;yCAAnB,mBAAmB;0CAAnB,mBAAmB;0CAAnB,mBAAmB;CAAI"}
|
package/dist/module.js
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { NgModule } from '@angular/core';
|
|
2
|
+
import { CommonModule } from '@angular/common';
|
|
3
|
+
// Kendo UI Angular imports
|
|
4
|
+
import { DialogsModule } from "@progress/kendo-angular-dialog";
|
|
5
|
+
import { ButtonsModule } from '@progress/kendo-angular-buttons';
|
|
6
|
+
import { GenericDialogComponent } from './lib/dialog.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export class GenericDialogModule {
|
|
9
|
+
}
|
|
10
|
+
GenericDialogModule.ɵfac = function GenericDialogModule_Factory(t) { return new (t || GenericDialogModule)(); };
|
|
11
|
+
GenericDialogModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: GenericDialogModule });
|
|
12
|
+
GenericDialogModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
13
|
+
DialogsModule,
|
|
14
|
+
ButtonsModule] });
|
|
15
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(GenericDialogModule, [{
|
|
16
|
+
type: NgModule,
|
|
17
|
+
args: [{
|
|
18
|
+
declarations: [
|
|
19
|
+
GenericDialogComponent
|
|
20
|
+
],
|
|
21
|
+
imports: [
|
|
22
|
+
CommonModule,
|
|
23
|
+
DialogsModule,
|
|
24
|
+
ButtonsModule,
|
|
25
|
+
],
|
|
26
|
+
exports: [
|
|
27
|
+
GenericDialogComponent
|
|
28
|
+
]
|
|
29
|
+
}]
|
|
30
|
+
}], null, null); })();
|
|
31
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(GenericDialogModule, { declarations: [GenericDialogComponent], imports: [CommonModule,
|
|
32
|
+
DialogsModule,
|
|
33
|
+
ButtonsModule], exports: [GenericDialogComponent] }); })();
|
|
34
|
+
//# sourceMappingURL=module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"module.js","sourceRoot":"","sources":["../src/module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/C,2BAA2B;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAEhE,OAAO,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;;AAehE,MAAM,OAAO,mBAAmB;;sFAAnB,mBAAmB;qEAAnB,mBAAmB;yEAR5B,YAAY;QACZ,aAAa;QACb,aAAa;iFAMJ,mBAAmB;cAb/B,QAAQ;eAAC;gBACR,YAAY,EAAE;oBACZ,sBAAsB;iBACvB;gBACD,OAAO,EAAE;oBACP,YAAY;oBACZ,aAAa;oBACb,aAAa;iBACd;gBACD,OAAO,EAAE;oBACP,sBAAsB;iBACvB;aACF;;wFACY,mBAAmB,mBAX5B,sBAAsB,aAGtB,YAAY;QACZ,aAAa;QACb,aAAa,aAGb,sBAAsB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.d.ts","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAIA,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,UAAU,CAAC;AACzB,cAAc,wBAAwB,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@memberjunction/ng-generic-dialog",
|
|
3
|
+
"version": "2.8.0",
|
|
4
|
+
"description": "MemberJunction: Angular component for a generic dialog",
|
|
5
|
+
"main": "./dist/public-api.js",
|
|
6
|
+
"typings": "./dist/public-api.d.ts",
|
|
7
|
+
"files": [
|
|
8
|
+
"/dist"
|
|
9
|
+
],
|
|
10
|
+
"scripts": {
|
|
11
|
+
"test": "echo \"Error: no test specified\" && exit 1",
|
|
12
|
+
"build": "ngc"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [],
|
|
15
|
+
"author": "",
|
|
16
|
+
"license": "ISC",
|
|
17
|
+
"devDependencies": {
|
|
18
|
+
"@angular/compiler": "18.0.2",
|
|
19
|
+
"@angular/compiler-cli": "18.0.2"
|
|
20
|
+
},
|
|
21
|
+
"peerDependencies": {
|
|
22
|
+
"@angular/common": "18.0.2",
|
|
23
|
+
"@angular/core": "18.0.2",
|
|
24
|
+
"@progress/kendo-angular-buttons": "16.2.0",
|
|
25
|
+
"@progress/kendo-angular-dialog": "16.2.0"
|
|
26
|
+
},
|
|
27
|
+
"dependencies": {
|
|
28
|
+
"tslib": "^2.3.0"
|
|
29
|
+
},
|
|
30
|
+
"sideEffects": false
|
|
31
|
+
}
|