@memberjunction/ng-find-record 3.3.0 → 4.0.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.map +1 -1
- package/dist/lib/dialog.component.js +5 -5
- package/dist/lib/dialog.component.js.map +1 -1
- package/dist/lib/find-record.component.d.ts.map +1 -1
- package/dist/lib/find-record.component.js +24 -23
- package/dist/lib/find-record.component.js.map +1 -1
- package/package.json +19 -19
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.component.d.ts","sourceRoot":"","sources":["../../src/lib/dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAU,MAAM,eAAe,CAAC;AAExE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;;AAGnE,
|
|
1
|
+
{"version":3,"file":"dialog.component.d.ts","sourceRoot":"","sources":["../../src/lib/dialog.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,YAAY,EAAU,MAAM,eAAe,CAAC;AAExE,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;;AAGnE,qBAMa,yBAAyB;IAC3B,WAAW,EAAE,MAAM,CAAiB;IACpC,WAAW,EAAE,MAAM,CAAW;IAC9B,YAAY,EAAE,MAAM,CAAW;IAExC;;OAEG;IACM,cAAc,EAAE,UAAU,GAAG,IAAI,CAAQ;IAElD,IAAa,aAAa,IAAI,OAAO,CAEpC;IACD,IAAI,aAAa,CAAC,KAAK,EAAE,OAAO,EAK/B;IACD,OAAO,CAAC,cAAc,CAAkB;IACxC;;OAEG;IACO,YAAY,wBAA+B;IAGrD;;OAEG;IACM,UAAU,EAAE,MAAM,CAAM;IAEjC;;OAEG;IACM,aAAa,EAAE,eAAe,EAAE,CAAM;IAI9C;;OAEG;IACM,gBAAgB,oCAAkC;IAErD,QAAQ;IAKR,sBAAsB,CAAC,MAAM,EAAE,GAAG;IAKlC,IAAI;yCArDA,yBAAyB;2CAAzB,yBAAyB;CAyDrC"}
|
|
@@ -72,15 +72,15 @@ export class FindRecordDialogComponent {
|
|
|
72
72
|
this.DialogClosed.emit(true);
|
|
73
73
|
}
|
|
74
74
|
static ɵfac = function FindRecordDialogComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FindRecordDialogComponent)(); };
|
|
75
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FindRecordDialogComponent, selectors: [["mj-find-record-dialog"]], inputs: { DialogTitle: "DialogTitle", DialogWidth: "DialogWidth", DialogHeight: "DialogHeight", SelectedRecord: "SelectedRecord", DialogVisible: "DialogVisible", EntityName: "EntityName", DisplayFields: "DisplayFields" }, outputs: { DialogClosed: "DialogClosed", OnRecordSelected: "OnRecordSelected" }, decls: 1, vars: 1, consts: [[3, "width", "height", "title"], [3, "close", "width", "height", "title"], [3, "OnRecordSelected", "EntityName", "DisplayFields"], ["kendoButton", "", "themeColor", "primary", 3, "click"], ["kendoButton", "", 3, "click"]], template: function FindRecordDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
-
i0.ɵɵ
|
|
75
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FindRecordDialogComponent, selectors: [["mj-find-record-dialog"]], inputs: { DialogTitle: "DialogTitle", DialogWidth: "DialogWidth", DialogHeight: "DialogHeight", SelectedRecord: "SelectedRecord", DialogVisible: "DialogVisible", EntityName: "EntityName", DisplayFields: "DisplayFields" }, outputs: { DialogClosed: "DialogClosed", OnRecordSelected: "OnRecordSelected" }, standalone: false, decls: 1, vars: 1, consts: [[3, "width", "height", "title"], [3, "close", "width", "height", "title"], [3, "OnRecordSelected", "EntityName", "DisplayFields"], ["kendoButton", "", "themeColor", "primary", 3, "click"], ["kendoButton", "", 3, "click"]], template: function FindRecordDialogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
+
i0.ɵɵconditionalCreate(0, FindRecordDialogComponent_Conditional_0_Template, 7, 5, "kendo-dialog", 0);
|
|
77
77
|
} if (rf & 2) {
|
|
78
78
|
i0.ɵɵconditional(ctx.DialogVisible ? 0 : -1);
|
|
79
|
-
} }, dependencies: [i1.DialogComponent, i1.DialogActionsComponent, i2.ButtonComponent, i3.FindRecordComponent] });
|
|
79
|
+
} }, dependencies: [i1.DialogComponent, i1.DialogActionsComponent, i2.ButtonComponent, i3.FindRecordComponent], encapsulation: 2 });
|
|
80
80
|
}
|
|
81
81
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FindRecordDialogComponent, [{
|
|
82
82
|
type: Component,
|
|
83
|
-
args: [{ selector: 'mj-find-record-dialog', template: "@if (DialogVisible) {\n <kendo-dialog\n [width]=\"DialogWidth\"\n [height]=\"DialogHeight\"\n [title]=\"DialogTitle\" \n (close)=\"OnCancel()\"\n >\n <mj-find-record\n [EntityName]=\"EntityName\"\n [DisplayFields]=\"DisplayFields\"\n (OnRecordSelected)=\"BubbleOnRecordSelected($event)\"\n >\n </mj-find-record>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"OnOK()\" themeColor=\"primary\">OK</button>\n <button kendoButton (click)=\"OnCancel()\">Cancel</button>\n </kendo-dialog-actions> \n </kendo-dialog> \n}" }]
|
|
83
|
+
args: [{ standalone: false, selector: 'mj-find-record-dialog', template: "@if (DialogVisible) {\n <kendo-dialog\n [width]=\"DialogWidth\"\n [height]=\"DialogHeight\"\n [title]=\"DialogTitle\" \n (close)=\"OnCancel()\"\n >\n <mj-find-record\n [EntityName]=\"EntityName\"\n [DisplayFields]=\"DisplayFields\"\n (OnRecordSelected)=\"BubbleOnRecordSelected($event)\"\n >\n </mj-find-record>\n <kendo-dialog-actions>\n <button kendoButton (click)=\"OnOK()\" themeColor=\"primary\">OK</button>\n <button kendoButton (click)=\"OnCancel()\">Cancel</button>\n </kendo-dialog-actions> \n </kendo-dialog> \n}" }]
|
|
84
84
|
}], null, { DialogTitle: [{
|
|
85
85
|
type: Input
|
|
86
86
|
}], DialogWidth: [{
|
|
@@ -100,5 +100,5 @@ export class FindRecordDialogComponent {
|
|
|
100
100
|
}], OnRecordSelected: [{
|
|
101
101
|
type: Output
|
|
102
102
|
}] }); })();
|
|
103
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FindRecordDialogComponent, { className: "FindRecordDialogComponent", filePath: "src/lib/dialog.component.ts", lineNumber:
|
|
103
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FindRecordDialogComponent, { className: "FindRecordDialogComponent", filePath: "src/lib/dialog.component.ts", lineNumber: 12 }); })();
|
|
104
104
|
//# sourceMappingURL=dialog.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.component.js","sourceRoot":"","sources":["../../src/lib/dialog.component.ts","../../src/lib/dialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAG,MAAM,eAAe,CAAC;;;;;;;ICCpE,uCAKC;IADG,mMAAS,iBAAU,KAAC;IAEpB,yCAIC;IADG,iOAAoB,qCAA8B,KAAC;IAEvD,iBAAiB;IAEb,AADJ,4CAAsB,gBACwC;IAAtC,6LAAS,aAAM,KAAC;IAAsB,kBAAE;IAAA,iBAAS;IACrE,iCAAyC;IAArB,6LAAS,iBAAU,KAAC;IAAC,sBAAM;IAEvD,AADI,AADmD,iBAAS,EACrC,EACZ;;;IAbX,AADA,AADA,0CAAqB,+BACE,6BACF;IAIjB,cAAyB;IACzB,AADA,8CAAyB,uCACM;;
|
|
1
|
+
{"version":3,"file":"dialog.component.js","sourceRoot":"","sources":["../../src/lib/dialog.component.ts","../../src/lib/dialog.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAG,MAAM,eAAe,CAAC;;;;;;;ICCpE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,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACrC,CAAC;IAEM,IAAI;QACT,IAAI,CAAC,aAAa,GAAG,KAAK,CAAC;QAC3B,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC/B,CAAC;mHAxDU,yBAAyB;6DAAzB,yBAAyB;YCXtC,oGAAqB;;YAArB,4CAkBC;;;iFDPY,yBAAyB;cANrC,SAAS;6BACI,KAAK,YACP,uBAAuB;;kBAKhC,KAAK;;kBACL,KAAK;;kBACL,KAAK;;kBAKL,KAAK;;kBAEL,KAAK;;kBAaL,MAAM;;kBAMN,KAAK;;kBAKL,KAAK;;kBAOL,MAAM;;kFAzCI,yBAAyB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-record.component.d.ts","sourceRoot":"","sources":["../../src/lib/find-record.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAU,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,eAAe,EAA2C,MAAM,sBAAsB,CAAC;;AAI5G,
|
|
1
|
+
{"version":3,"file":"find-record.component.d.ts","sourceRoot":"","sources":["../../src/lib/find-record.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,YAAY,EAAU,SAAS,EAAE,MAAM,EAAU,MAAM,eAAe,CAAC;AAC5F,OAAO,EAAE,UAAU,EAAE,eAAe,EAA2C,MAAM,sBAAsB,CAAC;;AAI5G,qBAMa,mBAAoB,YAAW,MAAM,EAAE,SAAS;IAC3D;;OAEG;IACM,UAAU,EAAE,MAAM,CAAM;IAEjC;;OAEG;IACa,aAAa,EAAE,eAAe,EAAE,CAAM;IAEtD;;OAEG;IACa,kBAAkB,EAAE,MAAM,CAAO;IAGjD;;OAEG;IACO,gBAAgB,oCAAkC;IAErD,UAAU,EAAE,MAAM,CAAM;IACxB,OAAO,EAAE,GAAG,EAAE,CAAM;IAEpB,OAAO,UAAS;IAChB,YAAY,EAAE,OAAO,CAAS;IACrC,OAAO,CAAC,UAAU,CAAyB;IAE3C,OAAO,CAAC,aAAa,CAAyB;IAC9C,OAAO,CAAC,kBAAkB,CAAM;IAGhC,QAAQ;IAsCR,WAAW;IAQX,MAAM;IAIN,kBAAkB,CAAC,IAAI,EAAE,MAAM;IAKxB,iBAAiB,CAAC,KAAK,EAAE,GAAG;cAMnB,QAAQ,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,UAAU,EAAE,CAAC;yCA9FxD,mBAAmB;2CAAnB,mBAAmB;CA+G/B"}
|
|
@@ -3,37 +3,36 @@ import { LogError, Metadata, RunView } from '@memberjunction/core';
|
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import { debounceTime, distinctUntilChanged, switchMap } from 'rxjs/operators';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "@angular/
|
|
7
|
-
import * as i2 from "@angular
|
|
8
|
-
import * as i3 from "@progress/kendo-angular-
|
|
9
|
-
import * as i4 from "@progress/kendo-angular-
|
|
10
|
-
import * as i5 from "@progress/kendo-angular-inputs";
|
|
6
|
+
import * as i1 from "@angular/forms";
|
|
7
|
+
import * as i2 from "@progress/kendo-angular-grid";
|
|
8
|
+
import * as i3 from "@progress/kendo-angular-buttons";
|
|
9
|
+
import * as i4 from "@progress/kendo-angular-inputs";
|
|
11
10
|
const _c0 = () => ({ mode: "single" });
|
|
12
|
-
function
|
|
11
|
+
function FindRecordComponent_Conditional_4_Template(rf, ctx) { if (rf & 1) {
|
|
13
12
|
i0.ɵɵelementStart(0, "div");
|
|
14
13
|
i0.ɵɵtext(1, "Searching...");
|
|
15
14
|
i0.ɵɵelementEnd();
|
|
16
15
|
} }
|
|
17
|
-
function
|
|
18
|
-
i0.ɵɵelement(0, "kendo-grid-column",
|
|
16
|
+
function FindRecordComponent_Conditional_5_For_3_Template(rf, ctx) { if (rf & 1) {
|
|
17
|
+
i0.ɵɵelement(0, "kendo-grid-column", 3);
|
|
19
18
|
} if (rf & 2) {
|
|
20
19
|
const field_r3 = ctx.$implicit;
|
|
21
20
|
i0.ɵɵproperty("field", field_r3.Name)("title", field_r3.DisplayNameOrName);
|
|
22
21
|
} }
|
|
23
|
-
function
|
|
22
|
+
function FindRecordComponent_Conditional_5_Template(rf, ctx) { if (rf & 1) {
|
|
24
23
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
25
|
-
i0.ɵɵelementStart(0, "div")(1, "kendo-grid",
|
|
26
|
-
i0.ɵɵlistener("selectionChange", function
|
|
27
|
-
i0.ɵɵ
|
|
24
|
+
i0.ɵɵelementStart(0, "div")(1, "kendo-grid", 2);
|
|
25
|
+
i0.ɵɵlistener("selectionChange", function FindRecordComponent_Conditional_5_Template_kendo_grid_selectionChange_1_listener($event) { i0.ɵɵrestoreView(_r1); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1.onSelectionChange($event)); });
|
|
26
|
+
i0.ɵɵrepeaterCreate(2, FindRecordComponent_Conditional_5_For_3_Template, 1, 2, "kendo-grid-column", 3, i0.ɵɵrepeaterTrackByIdentity);
|
|
28
27
|
i0.ɵɵelementEnd()();
|
|
29
28
|
} if (rf & 2) {
|
|
30
29
|
const ctx_r1 = i0.ɵɵnextContext();
|
|
31
30
|
i0.ɵɵadvance();
|
|
32
|
-
i0.ɵɵproperty("data", ctx_r1.records)("height", 280)("selectable", i0.ɵɵpureFunction0(
|
|
31
|
+
i0.ɵɵproperty("data", ctx_r1.records)("height", 280)("selectable", i0.ɵɵpureFunction0(3, _c0));
|
|
33
32
|
i0.ɵɵadvance();
|
|
34
|
-
i0.ɵɵ
|
|
33
|
+
i0.ɵɵrepeater(ctx_r1.DisplayFields);
|
|
35
34
|
} }
|
|
36
|
-
function
|
|
35
|
+
function FindRecordComponent_Conditional_6_Template(rf, ctx) { if (rf & 1) {
|
|
37
36
|
i0.ɵɵelementStart(0, "div");
|
|
38
37
|
i0.ɵɵtext(1, "No records found.");
|
|
39
38
|
i0.ɵɵelementEnd();
|
|
@@ -129,7 +128,7 @@ export class FindRecordComponent {
|
|
|
129
128
|
}
|
|
130
129
|
}
|
|
131
130
|
static ɵfac = function FindRecordComponent_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || FindRecordComponent)(); };
|
|
132
|
-
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FindRecordComponent, selectors: [["mj-find-record"]], inputs: { EntityName: "EntityName", DisplayFields: "DisplayFields", SearchDebounceTime: "SearchDebounceTime" }, outputs: { OnRecordSelected: "OnRecordSelected" }, decls: 7, vars: 4, consts: [["type", "text", "placeholder", "Start typing to search...", 1, "find-textbox", 3, "ngModelChange", "ngModel"], ["kendoButton", "", 1, "find-button", 3, "click"], [
|
|
131
|
+
static ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: FindRecordComponent, selectors: [["mj-find-record"]], inputs: { EntityName: "EntityName", DisplayFields: "DisplayFields", SearchDebounceTime: "SearchDebounceTime" }, outputs: { OnRecordSelected: "OnRecordSelected" }, standalone: false, decls: 7, vars: 4, consts: [["type", "text", "placeholder", "Start typing to search...", 1, "find-textbox", 3, "ngModelChange", "ngModel"], ["kendoButton", "", 1, "find-button", 3, "click"], [3, "selectionChange", "data", "height", "selectable"], [3, "field", "title"]], template: function FindRecordComponent_Template(rf, ctx) { if (rf & 1) {
|
|
133
132
|
i0.ɵɵelementStart(0, "div")(1, "kendo-textbox", 0);
|
|
134
133
|
i0.ɵɵtwoWayListener("ngModelChange", function FindRecordComponent_Template_kendo_textbox_ngModelChange_1_listener($event) { i0.ɵɵtwoWayBindingSet(ctx.searchTerm, $event) || (ctx.searchTerm = $event); return $event; });
|
|
135
134
|
i0.ɵɵlistener("ngModelChange", function FindRecordComponent_Template_kendo_textbox_ngModelChange_1_listener($event) { return ctx.onSearchTermChange($event); });
|
|
@@ -138,22 +137,24 @@ export class FindRecordComponent {
|
|
|
138
137
|
i0.ɵɵlistener("click", function FindRecordComponent_Template_button_click_2_listener() { return ctx.onFind(); });
|
|
139
138
|
i0.ɵɵtext(3, "Find");
|
|
140
139
|
i0.ɵɵelementEnd();
|
|
141
|
-
i0.ɵɵ
|
|
140
|
+
i0.ɵɵconditionalCreate(4, FindRecordComponent_Conditional_4_Template, 2, 0, "div");
|
|
141
|
+
i0.ɵɵconditionalCreate(5, FindRecordComponent_Conditional_5_Template, 4, 4, "div");
|
|
142
|
+
i0.ɵɵconditionalCreate(6, FindRecordComponent_Conditional_6_Template, 2, 0, "div");
|
|
142
143
|
i0.ɵɵelementEnd();
|
|
143
144
|
} if (rf & 2) {
|
|
144
145
|
i0.ɵɵadvance();
|
|
145
146
|
i0.ɵɵtwoWayProperty("ngModel", ctx.searchTerm);
|
|
146
147
|
i0.ɵɵadvance(3);
|
|
147
|
-
i0.ɵɵ
|
|
148
|
+
i0.ɵɵconditional(ctx.loading ? 4 : -1);
|
|
148
149
|
i0.ɵɵadvance();
|
|
149
|
-
i0.ɵɵ
|
|
150
|
+
i0.ɵɵconditional(!ctx.loading && ctx.records.length > 0 ? 5 : -1);
|
|
150
151
|
i0.ɵɵadvance();
|
|
151
|
-
i0.ɵɵ
|
|
152
|
-
} }, dependencies: [i1.
|
|
152
|
+
i0.ɵɵconditional(!ctx.loading && ctx.records.length === 0 && ctx.searchHasRun ? 6 : -1);
|
|
153
|
+
} }, dependencies: [i1.NgControlStatus, i1.NgModel, i2.GridComponent, i2.ColumnComponent, i3.ButtonComponent, i4.TextBoxComponent], styles: [".list-box[_ngcontent-%COMP%] {\n width: 320px;\n height: 300px;\n}\n\n.k-listbox-actions-right[_ngcontent-%COMP%] {\n margin-left: 10px;\n}\n\n.item-icon[_ngcontent-%COMP%] {\n font-size: 16px;\n width: 25px;\n margin-right: 5px;\n}\n\n.find-textbox[_ngcontent-%COMP%] {\n width: 500px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n\n.find-button[_ngcontent-%COMP%] {\n width: 75px;\n margin-bottom: 10px;\n}"] });
|
|
153
154
|
}
|
|
154
155
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(FindRecordComponent, [{
|
|
155
156
|
type: Component,
|
|
156
|
-
args: [{ selector: 'mj-find-record', template: "<div>\n
|
|
157
|
+
args: [{ standalone: false, selector: 'mj-find-record', template: "<div>\n <kendo-textbox\n class=\"find-textbox\"\n type=\"text\"\n placeholder=\"Start typing to search...\"\n [(ngModel)]=\"searchTerm\"\n (ngModelChange)=\"onSearchTermChange($event)\"\n >\n </kendo-textbox>\n <button class=\"find-button\" kendoButton (click)=\"onFind()\">Find</button>\n\n @if (loading) {\n <div>Searching...</div>\n }\n @if (!loading && records.length > 0) {\n <div>\n <kendo-grid\n [data]=\"records\"\n [height]=\"280\"\n [selectable]=\"{ mode: 'single' }\"\n (selectionChange)=\"onSelectionChange($event)\"\n >\n @for (field of DisplayFields; track field) {\n <kendo-grid-column [field]=\"field.Name\" [title]=\"field.DisplayNameOrName\"></kendo-grid-column>\n }\n </kendo-grid>\n </div>\n }\n @if (!loading && records.length === 0 && searchHasRun) {\n <div>No records found.</div>\n }\n</div>\n", styles: [".list-box {\n width: 320px;\n height: 300px;\n}\n\n.k-listbox-actions-right {\n margin-left: 10px;\n}\n\n.item-icon {\n font-size: 16px;\n width: 25px;\n margin-right: 5px;\n}\n\n.find-textbox {\n width: 500px;\n margin-right: 10px;\n margin-bottom: 10px;\n}\n\n.find-button {\n width: 75px;\n margin-bottom: 10px;\n}"] }]
|
|
157
158
|
}], null, { EntityName: [{
|
|
158
159
|
type: Input
|
|
159
160
|
}], DisplayFields: [{
|
|
@@ -163,5 +164,5 @@ export class FindRecordComponent {
|
|
|
163
164
|
}], OnRecordSelected: [{
|
|
164
165
|
type: Output
|
|
165
166
|
}] }); })();
|
|
166
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FindRecordComponent, { className: "FindRecordComponent", filePath: "src/lib/find-record.component.ts", lineNumber:
|
|
167
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(FindRecordComponent, { className: "FindRecordComponent", filePath: "src/lib/find-record.component.ts", lineNumber: 12 }); })();
|
|
167
168
|
//# sourceMappingURL=find-record.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"find-record.component.js","sourceRoot":"","sources":["../../src/lib/find-record.component.ts","../../src/lib/find-record.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAG,YAAY,EAAG,KAAK,EAAqB,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAA2C,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"find-record.component.js","sourceRoot":"","sources":["../../src/lib/find-record.component.ts","../../src/lib/find-record.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAG,YAAY,EAAG,KAAK,EAAqB,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5F,OAAO,EAA2C,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAC5G,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,YAAY,EAAE,oBAAoB,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;;;;;;;;ICS3E,2BAAK;IAAA,4BAAY;IAAA,iBAAM;;;IAWjB,uCAA8F;;;IAAtD,AAArB,qCAAoB,qCAAkC;;;;IAP7E,AADF,2BAAK,oBAMA;IADD,qNAAmB,gCAAyB,KAAC;IAE7C,oIAEC;IAEL,AADE,iBAAa,EACT;;;IATF,cAAgB;IAEhB,AADA,AADA,qCAAgB,eACF,0CACmB;IAGjC,cA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"name": "@memberjunction/ng-find-record",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0",
|
|
4
4
|
"description": "MemberJunction: Angular Component to allow a user to find a single record in any entity",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -15,28 +15,28 @@
|
|
|
15
15
|
"author": "",
|
|
16
16
|
"license": "ISC",
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@angular/compiler": "
|
|
19
|
-
"@angular/compiler-cli": "
|
|
18
|
+
"@angular/compiler": "21.1.3",
|
|
19
|
+
"@angular/compiler-cli": "21.1.3"
|
|
20
20
|
},
|
|
21
21
|
"peerDependencies": {
|
|
22
|
-
"@angular/common": "
|
|
23
|
-
"@angular/core": "
|
|
24
|
-
"@angular/forms": "
|
|
25
|
-
"@angular/router": "
|
|
26
|
-
"@progress/kendo-angular-grid": "
|
|
27
|
-
"@progress/kendo-angular-buttons": "
|
|
28
|
-
"@progress/kendo-angular-inputs": "
|
|
29
|
-
"@progress/kendo-angular-dialog": "
|
|
30
|
-
"@progress/kendo-angular-listbox": "
|
|
22
|
+
"@angular/common": "21.1.3",
|
|
23
|
+
"@angular/core": "21.1.3",
|
|
24
|
+
"@angular/forms": "21.1.3",
|
|
25
|
+
"@angular/router": "21.1.3",
|
|
26
|
+
"@progress/kendo-angular-grid": "22.0.1",
|
|
27
|
+
"@progress/kendo-angular-buttons": "22.0.1",
|
|
28
|
+
"@progress/kendo-angular-inputs": "22.0.1",
|
|
29
|
+
"@progress/kendo-angular-dialog": "22.0.1",
|
|
30
|
+
"@progress/kendo-angular-listbox": "22.0.1"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@memberjunction/core-entities": "
|
|
34
|
-
"@memberjunction/global": "
|
|
35
|
-
"@memberjunction/core": "
|
|
36
|
-
"@memberjunction/ng-container-directives": "
|
|
37
|
-
"@memberjunction/ng-shared": "
|
|
38
|
-
"rxjs": "^7.8.
|
|
39
|
-
"tslib": "^2.
|
|
33
|
+
"@memberjunction/core-entities": "4.0.0",
|
|
34
|
+
"@memberjunction/global": "4.0.0",
|
|
35
|
+
"@memberjunction/core": "4.0.0",
|
|
36
|
+
"@memberjunction/ng-container-directives": "4.0.0",
|
|
37
|
+
"@memberjunction/ng-shared": "4.0.0",
|
|
38
|
+
"rxjs": "^7.8.2",
|
|
39
|
+
"tslib": "^2.8.1"
|
|
40
40
|
},
|
|
41
41
|
"sideEffects": false,
|
|
42
42
|
"repository": {
|