@memberjunction/ng-record-selector 2.52.0 → 2.54.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.
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
import { Component, Output, EventEmitter, Input, ViewChild } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
import * as i1 from "@angular/common";
|
|
4
|
-
import * as i2 from "@
|
|
5
|
-
import * as i3 from "@progress/kendo-angular-listbox";
|
|
4
|
+
import * as i2 from "@progress/kendo-angular-listbox";
|
|
6
5
|
const _c0 = ["unselected"];
|
|
7
6
|
const _c1 = ["selected"];
|
|
8
7
|
function RecordSelectorComponent_ng_template_3_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
9
|
-
i0.ɵɵelement(0, "span",
|
|
8
|
+
i0.ɵɵelement(0, "span", 5);
|
|
10
9
|
} if (rf & 2) {
|
|
11
10
|
const dataItem_r2 = i0.ɵɵnextContext().$implicit;
|
|
12
11
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
13
12
|
i0.ɵɵproperty("ngClass", dataItem_r2[ctx_r2.DisplayIconField] + " item-icon");
|
|
14
13
|
} }
|
|
15
14
|
function RecordSelectorComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
16
|
-
i0.ɵɵtemplate(0, RecordSelectorComponent_ng_template_3_Conditional_0_Template, 1, 1, "span",
|
|
15
|
+
i0.ɵɵtemplate(0, RecordSelectorComponent_ng_template_3_Conditional_0_Template, 1, 1, "span", 5);
|
|
17
16
|
i0.ɵɵelementStart(1, "span");
|
|
18
17
|
i0.ɵɵtext(2);
|
|
19
18
|
i0.ɵɵelementEnd();
|
|
@@ -25,14 +24,14 @@ function RecordSelectorComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
|
25
24
|
i0.ɵɵtextInterpolate(dataItem_r2[ctx_r2.DisplayField]);
|
|
26
25
|
} }
|
|
27
26
|
function RecordSelectorComponent_ng_template_6_Conditional_0_Template(rf, ctx) { if (rf & 1) {
|
|
28
|
-
i0.ɵɵelement(0, "span",
|
|
27
|
+
i0.ɵɵelement(0, "span", 5);
|
|
29
28
|
} if (rf & 2) {
|
|
30
29
|
const dataItem_r4 = i0.ɵɵnextContext().$implicit;
|
|
31
30
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
32
31
|
i0.ɵɵproperty("ngClass", dataItem_r4[ctx_r2.DisplayIconField] + " item-icon");
|
|
33
32
|
} }
|
|
34
33
|
function RecordSelectorComponent_ng_template_6_Template(rf, ctx) { if (rf & 1) {
|
|
35
|
-
i0.ɵɵtemplate(0, RecordSelectorComponent_ng_template_6_Conditional_0_Template, 1, 1, "span",
|
|
34
|
+
i0.ɵɵtemplate(0, RecordSelectorComponent_ng_template_6_Conditional_0_Template, 1, 1, "span", 5);
|
|
36
35
|
i0.ɵɵelementStart(1, "span");
|
|
37
36
|
i0.ɵɵtext(2);
|
|
38
37
|
i0.ɵɵelementEnd();
|
|
@@ -108,15 +107,15 @@ export class RecordSelectorComponent {
|
|
|
108
107
|
let _t;
|
|
109
108
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.unselectedListBox = _t.first);
|
|
110
109
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectedListBox = _t.first);
|
|
111
|
-
} }, inputs: { EntityName: "EntityName", DisplayField: "DisplayField", DisplayIconField: "DisplayIconField", AvailableRecords: "AvailableRecords", SelectedRecords: "SelectedRecords", UnselectedRecords: "UnselectedRecords", ToolbarSettings: "ToolbarSettings" }, outputs: { RecordSelected: "RecordSelected", RecordUnselected: "RecordUnselected" }, decls: 7, vars: 7, consts: [["unselected", ""], ["selected", ""], ["
|
|
110
|
+
} }, inputs: { EntityName: "EntityName", DisplayField: "DisplayField", DisplayIconField: "DisplayIconField", AvailableRecords: "AvailableRecords", SelectedRecords: "SelectedRecords", UnselectedRecords: "UnselectedRecords", ToolbarSettings: "ToolbarSettings" }, outputs: { RecordSelected: "RecordSelected", RecordUnselected: "RecordUnselected" }, decls: 7, vars: 7, consts: [["unselected", ""], ["selected", ""], ["kendoListBoxDataBinding", "", 1, "list-box", 3, "dblclick", "data", "textField", "connectedWith", "toolbar"], ["kendoListBoxItemTemplate", ""], [1, "list-box", 3, "dblclick", "data", "textField", "toolbar"], [3, "ngClass"]], template: function RecordSelectorComponent_Template(rf, ctx) { if (rf & 1) {
|
|
112
111
|
const _r1 = i0.ɵɵgetCurrentView();
|
|
113
|
-
i0.ɵɵelementStart(0, "div"
|
|
112
|
+
i0.ɵɵelementStart(0, "div")(1, "kendo-listbox", 2, 0);
|
|
114
113
|
i0.ɵɵlistener("dblclick", function RecordSelectorComponent_Template_kendo_listbox_dblclick_1_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onDblClick($event, "unselected")); });
|
|
115
|
-
i0.ɵɵtemplate(3, RecordSelectorComponent_ng_template_3_Template, 3, 2, "ng-template",
|
|
114
|
+
i0.ɵɵtemplate(3, RecordSelectorComponent_ng_template_3_Template, 3, 2, "ng-template", 3);
|
|
116
115
|
i0.ɵɵelementEnd();
|
|
117
|
-
i0.ɵɵelementStart(4, "kendo-listbox",
|
|
116
|
+
i0.ɵɵelementStart(4, "kendo-listbox", 4, 1);
|
|
118
117
|
i0.ɵɵlistener("dblclick", function RecordSelectorComponent_Template_kendo_listbox_dblclick_4_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onDblClick($event, "selected")); });
|
|
119
|
-
i0.ɵɵtemplate(6, RecordSelectorComponent_ng_template_6_Template, 3, 2, "ng-template",
|
|
118
|
+
i0.ɵɵtemplate(6, RecordSelectorComponent_ng_template_6_Template, 3, 2, "ng-template", 3);
|
|
120
119
|
i0.ɵɵelementEnd()();
|
|
121
120
|
} if (rf & 2) {
|
|
122
121
|
const selected_r5 = i0.ɵɵreference(5);
|
|
@@ -124,11 +123,11 @@ export class RecordSelectorComponent {
|
|
|
124
123
|
i0.ɵɵproperty("data", ctx.UnselectedRecords)("textField", ctx.DisplayField)("connectedWith", selected_r5)("toolbar", ctx.ToolbarSettings);
|
|
125
124
|
i0.ɵɵadvance(3);
|
|
126
125
|
i0.ɵɵproperty("data", ctx.SelectedRecords)("textField", ctx.DisplayField)("toolbar", false);
|
|
127
|
-
} }, dependencies: [i1.NgClass, i2.
|
|
126
|
+
} }, dependencies: [i1.NgClass, i2.ListBoxComponent, i2.ItemTemplateDirective, i2.DataBindingDirective], styles: [".list-box[_ngcontent-%COMP%] {\n width: 300px;\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}"] });
|
|
128
127
|
}
|
|
129
128
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RecordSelectorComponent, [{
|
|
130
129
|
type: Component,
|
|
131
|
-
args: [{ selector: 'mj-record-selector', template: "<div
|
|
130
|
+
args: [{ selector: 'mj-record-selector', template: "<div > \n <kendo-listbox\n class=\"list-box\"\n #unselected\n kendoListBoxDataBinding\n [data]=\"UnselectedRecords\"\n [textField]=\"DisplayField\"\n [connectedWith]=\"selected\"\n [toolbar]=\"ToolbarSettings\"\n (dblclick)=\"onDblClick($event, 'unselected')\"\n >\n <ng-template kendoListBoxItemTemplate let-dataItem>\n @if (this.DisplayIconField) {\n <span [ngClass]=\"dataItem[this.DisplayIconField] + ' item-icon'\"></span>\n }\n <span>{{ dataItem[DisplayField] }}</span>\n </ng-template>\n </kendo-listbox>\n <kendo-listbox \n class=\"list-box\"\n #selected \n [data]=\"SelectedRecords\" \n [textField]=\"DisplayField\"\n [toolbar]=\"false\"\n (dblclick)=\"onDblClick($event, 'selected')\"\n >\n <ng-template kendoListBoxItemTemplate let-dataItem>\n @if (this.DisplayIconField) {\n <span [ngClass]=\"dataItem[this.DisplayIconField] + ' item-icon'\"></span>\n }\n <span>{{ dataItem[DisplayField] }}</span>\n </ng-template>\n </kendo-listbox>\n</div>", styles: [".list-box {\n width: 300px;\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}"] }]
|
|
132
131
|
}], null, { EntityName: [{
|
|
133
132
|
type: Input
|
|
134
133
|
}], DisplayField: [{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"record-selector.component.js","sourceRoot":"","sources":["../../src/lib/record-selector.component.ts","../../src/lib/record-selector.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC
|
|
1
|
+
{"version":3,"file":"record-selector.component.js","sourceRoot":"","sources":["../../src/lib/record-selector.component.ts","../../src/lib/record-selector.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;;;;;;;ICalE,0BAAwE;;;;IAAlE,6EAA0D;;;IADpE,+FAA6B;IAG7B,4BAAM;IAAA,YAA4B;IAAA,iBAAO;;;;IAHzC,kDAEC;IACK,eAA4B;IAA5B,sDAA4B;;;IAa9B,0BAAwE;;;;IAAlE,6EAA0D;;;IADpE,+FAA6B;IAG7B,4BAAM;IAAA,YAA4B;IAAA,iBAAO;;;;IAHzC,kDAEC;IACK,eAA4B;IAA5B,sDAA4B;;ADnB9C,MAAM,OAAO,uBAAuB;IAClC;;OAEG;IACM,UAAU,GAAW,EAAE,CAAC;IACjC;;OAEG;IACM,YAAY,GAAW,EAAE,CAAC;IAEnC;;OAEG;IACM,gBAAgB,GAAW,EAAE,CAAC;IAEvC;;OAEG;IACM,gBAAgB,GAAiB,EAAE,CAAC;IAE7C;;OAEG;IACM,eAAe,GAAiB,EAAE,CAAC;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BAAiB,CAAC,cAAc,EAAE,CAAC;YAC1C,IAAI,IAAI,CAAC,eAAe;gBACtB,IAAI,CAAC,eAAe,CAAC,cAAc,EAAE,CAAC;QAC1C,CAAC;IACH,CAAC;iFApEU,uBAAuB;6DAAvB,uBAAuB;;;;;;;;;YCVhC,AADJ,2BAAM,0BAUD;YADG,6JAAY,uBAAmB,YAAY,CAAC,KAAC;YAE7C,wFAAmD;YAMvD,iBAAgB;YAChB,2CAOC;YADG,6JAAY,uBAAmB,UAAU,CAAC,KAAC;YAE3C,wFAAmD;YAO3D,AADI,iBAAgB,EACd;;;YA5BE,cAA0B;YAG1B,AADA,AADA,AADA,4CAA0B,+BACA,8BACA,gCACC;YAa3B,eAAwB;YAExB,AADA,AADA,0CAAwB,+BACE,kBACT;;;iFDZZ,uBAAuB;cALnC,SAAS;2BACE,oBAAoB;gBAQrB,UAAU;kBAAlB,KAAK;YAIG,YAAY;kBAApB,KAAK;YAKG,gBAAgB;kBAAxB,KAAK;YAKG,gBAAgB;kBAAxB,KAAK;YAKG,eAAe;kBAAvB,KAAK;YAIG,iBAAiB;kBAAzB,KAAK;YAMU,eAAe;kBAA9B,KAAK;YAKI,cAAc;kBAAvB,MAAM;YACG,gBAAgB;kBAAzB,MAAM;YAGqC,iBAAiB;kBAA5D,SAAS;mBAAC,YAAY,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;YACA,eAAe;kBAAxD,SAAS;mBAAC,UAAU,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE;;kFA3C7B,uBAAuB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@memberjunction/ng-record-selector",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.54.0",
|
|
4
4
|
"description": "MemberJunction: Angular Components to allow a user to select/deselect items from a possible set",
|
|
5
5
|
"main": "./dist/public-api.js",
|
|
6
6
|
"typings": "./dist/public-api.d.ts",
|
|
@@ -28,11 +28,11 @@
|
|
|
28
28
|
"@progress/kendo-angular-listbox": "16.2.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@memberjunction/core-entities": "2.
|
|
32
|
-
"@memberjunction/global": "2.
|
|
33
|
-
"@memberjunction/core": "2.
|
|
34
|
-
"@memberjunction/ng-container-directives": "2.
|
|
35
|
-
"@memberjunction/ng-shared": "2.
|
|
31
|
+
"@memberjunction/core-entities": "2.54.0",
|
|
32
|
+
"@memberjunction/global": "2.54.0",
|
|
33
|
+
"@memberjunction/core": "2.54.0",
|
|
34
|
+
"@memberjunction/ng-container-directives": "2.54.0",
|
|
35
|
+
"@memberjunction/ng-shared": "2.54.0",
|
|
36
36
|
"tslib": "^2.3.0"
|
|
37
37
|
},
|
|
38
38
|
"sideEffects": false
|