ng-jvx-multiselect 1.3.3 → 16.0.1
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/esm2020/lib/directives/ng-jvx-disabled-option.directive.mjs +19 -19
- package/esm2020/lib/directives/ng-jvx-focus.directive.mjs +12 -12
- package/esm2020/lib/directives/ng-jvx-group-header.directive.mjs +12 -12
- package/esm2020/lib/directives/ng-jvx-options-template.directive.mjs +12 -12
- package/esm2020/lib/directives/ng-jvx-selection-template.directive.mjs +12 -12
- package/esm2020/lib/ng-jvx-multiselect.component.mjs +487 -179
- package/esm2020/lib/ng-jvx-multiselect.module.mjs +56 -55
- package/esm2020/lib/ng-jvx-multiselect.service.mjs +9 -9
- package/esm2020/lib/ng-jvx-option/ng-jvx-option.component.mjs +29 -13
- package/esm2020/lib/ng-jvx-panel/ng-jvx-panel.component.mjs +44 -25
- package/esm2022/lib/directives/ng-jvx-disabled-option.directive.mjs +49 -0
- package/esm2022/lib/directives/ng-jvx-focus.directive.mjs +29 -0
- package/esm2022/lib/directives/ng-jvx-group-header.directive.mjs +25 -0
- package/esm2022/lib/directives/ng-jvx-options-template.directive.mjs +26 -0
- package/esm2022/lib/directives/ng-jvx-selection-template.directive.mjs +25 -0
- package/esm2022/lib/interfaces/ng-jvx-group-mapper.mjs +2 -0
- package/esm2022/lib/interfaces/ng-jvx-option-mapper.mjs +2 -0
- package/esm2022/lib/interfaces/ng-jvx-search-mapper.mjs +2 -0
- package/esm2022/lib/ng-jvx-multiselect.component.mjs +625 -0
- package/esm2022/lib/ng-jvx-multiselect.module.mjs +96 -0
- package/esm2022/lib/ng-jvx-multiselect.service.mjs +44 -0
- package/esm2022/lib/ng-jvx-option/ng-jvx-option.component.mjs +31 -0
- package/esm2022/lib/ng-jvx-panel/ng-jvx-panel.component.mjs +42 -0
- package/esm2022/lib/utils.mjs +4 -0
- package/esm2022/ng-jvx-multiselect.mjs +5 -0
- package/esm2022/public-api.mjs +16 -0
- package/fesm2015/ng-jvx-multiselect.mjs +614 -169
- package/fesm2015/ng-jvx-multiselect.mjs.map +1 -1
- package/fesm2020/ng-jvx-multiselect.mjs +688 -344
- package/fesm2020/ng-jvx-multiselect.mjs.map +1 -1
- package/fesm2022/ng-jvx-multiselect.mjs +964 -0
- package/fesm2022/ng-jvx-multiselect.mjs.map +1 -0
- package/lib/directives/ng-jvx-disabled-option.directive.d.ts +1 -1
- package/lib/directives/ng-jvx-focus.directive.d.ts +1 -1
- package/lib/directives/ng-jvx-group-header.directive.d.ts +1 -1
- package/lib/directives/ng-jvx-options-template.directive.d.ts +1 -1
- package/lib/directives/ng-jvx-selection-template.directive.d.ts +1 -1
- package/lib/ng-jvx-multiselect.component.d.ts +5 -5
- package/lib/ng-jvx-multiselect.module.d.ts +7 -7
- package/lib/ng-jvx-option/ng-jvx-option.component.d.ts +2 -2
- package/lib/ng-jvx-panel/ng-jvx-panel.component.d.ts +3 -2
- package/package.json +8 -14
|
@@ -1,31 +1,35 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, ViewChild, Input, Directive, Injectable, EventEmitter, forwardRef, ChangeDetectionStrategy, Optional, Self, HostBinding, ViewChildren, ContentChild, Output,
|
|
2
|
+
import { Component, ViewChild, Input, Directive, Injectable, EventEmitter, forwardRef, ChangeDetectionStrategy, ViewEncapsulation, Optional, Self, HostBinding, ViewChildren, ContentChild, Output, Inject, NgModule } from '@angular/core';
|
|
3
3
|
import * as i4 from '@angular/common';
|
|
4
4
|
import { CommonModule } from '@angular/common';
|
|
5
|
-
import * as i2 from '@angular/material/list';
|
|
6
|
-
import {
|
|
5
|
+
import * as i2 from '@angular/material/legacy-list';
|
|
6
|
+
import { MatLegacyListModule } from '@angular/material/legacy-list';
|
|
7
7
|
import { Subject, fromEvent, of, noop, timer, forkJoin } from 'rxjs';
|
|
8
8
|
import { takeUntil, debounceTime, map, switchMap, tap, distinctUntilChanged } from 'rxjs/operators';
|
|
9
9
|
import * as i1 from '@angular/common/http';
|
|
10
10
|
import { HttpContextToken, HttpContext, HttpParams, HttpHeaders } from '@angular/common/http';
|
|
11
11
|
import * as i1$1 from '@angular/forms';
|
|
12
12
|
import { UntypedFormControl, ReactiveFormsModule, FormsModule } from '@angular/forms';
|
|
13
|
-
import {
|
|
13
|
+
import { MatLegacyFormFieldControl } from '@angular/material/legacy-form-field';
|
|
14
14
|
import { coerceBooleanProperty } from '@angular/cdk/coercion';
|
|
15
|
-
import * as i3 from '@angular/material/menu';
|
|
16
|
-
import {
|
|
15
|
+
import * as i3 from '@angular/material/legacy-menu';
|
|
16
|
+
import { MAT_LEGACY_MENU_DEFAULT_OPTIONS, MAT_LEGACY_MENU_PANEL, matLegacyMenuAnimations, MatLegacyMenuModule } from '@angular/material/legacy-menu';
|
|
17
17
|
import * as i5 from '@angular/material/icon';
|
|
18
18
|
import { MatIconModule } from '@angular/material/icon';
|
|
19
|
-
import * as i7 from '@angular/material/chips';
|
|
20
|
-
import {
|
|
19
|
+
import * as i7 from '@angular/material/legacy-chips';
|
|
20
|
+
import { MatLegacyChipsModule } from '@angular/material/legacy-chips';
|
|
21
21
|
import * as i8 from 'ngx-scrollbar';
|
|
22
22
|
import { NgScrollbarModule } from 'ngx-scrollbar';
|
|
23
23
|
import * as i9 from 'ngx-scrollbar/smooth-scroll';
|
|
24
24
|
import { SmoothScrollModule } from 'ngx-scrollbar/smooth-scroll';
|
|
25
|
-
import {
|
|
26
|
-
import {
|
|
27
|
-
import {
|
|
25
|
+
import { MatLegacyButtonModule } from '@angular/material/legacy-button';
|
|
26
|
+
import { MatLegacyOptionModule } from '@angular/material/legacy-core';
|
|
27
|
+
import { MatLegacySelectModule } from '@angular/material/legacy-select';
|
|
28
|
+
import { _MatMenuBase, MatMenu } from '@angular/material/menu';
|
|
28
29
|
|
|
30
|
+
const _c0$2 = ["listOption"];
|
|
31
|
+
const _c1$1 = function (a1) { return { "ng-jvx-option": true, "mat-list-single-selected-option": a1 }; };
|
|
32
|
+
const _c2$1 = ["*"];
|
|
29
33
|
class NgJvxOptionComponent {
|
|
30
34
|
constructor() {
|
|
31
35
|
this.isSelected = false;
|
|
@@ -41,17 +45,38 @@ class NgJvxOptionComponent {
|
|
|
41
45
|
this.listOption.selected = false;
|
|
42
46
|
}
|
|
43
47
|
}
|
|
44
|
-
NgJvxOptionComponent.ɵfac =
|
|
45
|
-
NgJvxOptionComponent.ɵcmp = i0.ɵɵ
|
|
46
|
-
|
|
48
|
+
NgJvxOptionComponent.ɵfac = function NgJvxOptionComponent_Factory(t) { return new (t || NgJvxOptionComponent)(); };
|
|
49
|
+
NgJvxOptionComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NgJvxOptionComponent, selectors: [["ng-jvx-option"]], viewQuery: function NgJvxOptionComponent_Query(rf, ctx) {
|
|
50
|
+
if (rf & 1) {
|
|
51
|
+
i0.ɵɵviewQuery(_c0$2, 7);
|
|
52
|
+
}
|
|
53
|
+
if (rf & 2) {
|
|
54
|
+
let _t;
|
|
55
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.listOption = _t.first);
|
|
56
|
+
}
|
|
57
|
+
}, inputs: { value: "value" }, ngContentSelectors: _c2$1, decls: 4, vars: 4, consts: [[3, "value", "ngClass"], ["listOption", ""], [1, "list-option-background"]], template: function NgJvxOptionComponent_Template(rf, ctx) {
|
|
58
|
+
if (rf & 1) {
|
|
59
|
+
i0.ɵɵprojectionDef();
|
|
60
|
+
i0.ɵɵelementStart(0, "mat-list-option", 0, 1);
|
|
61
|
+
i0.ɵɵprojection(2);
|
|
62
|
+
i0.ɵɵelement(3, "div", 2);
|
|
63
|
+
i0.ɵɵelementEnd();
|
|
64
|
+
}
|
|
65
|
+
if (rf & 2) {
|
|
66
|
+
i0.ɵɵproperty("value", ctx.value)("ngClass", i0.ɵɵpureFunction1(2, _c1$1, ctx.isSelected));
|
|
67
|
+
}
|
|
68
|
+
}, dependencies: [i4.NgClass, i2.MatLegacyListOption] });
|
|
69
|
+
(function () {
|
|
70
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxOptionComponent, [{
|
|
47
71
|
type: Component,
|
|
48
72
|
args: [{ selector: 'ng-jvx-option', template: "<mat-list-option [value]=\"value\" [ngClass]=\"{'ng-jvx-option': true, 'mat-list-single-selected-option': isSelected}\" #listOption>\r\n <ng-content></ng-content>\r\n <div class=\"list-option-background\"></div>\r\n</mat-list-option>\r\n" }]
|
|
49
|
-
}],
|
|
73
|
+
}], function () { return []; }, { listOption: [{
|
|
50
74
|
type: ViewChild,
|
|
51
75
|
args: ['listOption', { static: true }]
|
|
52
76
|
}], value: [{
|
|
53
77
|
type: Input
|
|
54
|
-
}] }
|
|
78
|
+
}] });
|
|
79
|
+
})();
|
|
55
80
|
|
|
56
81
|
class NgJvxOptionsTemplateDirective {
|
|
57
82
|
constructor(el, template, vcRef) {
|
|
@@ -65,17 +90,19 @@ class NgJvxOptionsTemplateDirective {
|
|
|
65
90
|
}
|
|
66
91
|
}
|
|
67
92
|
}
|
|
68
|
-
NgJvxOptionsTemplateDirective.ɵfac =
|
|
69
|
-
NgJvxOptionsTemplateDirective.ɵdir = i0.ɵɵ
|
|
70
|
-
|
|
93
|
+
NgJvxOptionsTemplateDirective.ɵfac = function NgJvxOptionsTemplateDirective_Factory(t) { return new (t || NgJvxOptionsTemplateDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
94
|
+
NgJvxOptionsTemplateDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: NgJvxOptionsTemplateDirective, selectors: [["", "ngJvxOptionsTemplate", ""]], inputs: { ngJvxOptionsTemplateOf: "ngJvxOptionsTemplateOf" } });
|
|
95
|
+
(function () {
|
|
96
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxOptionsTemplateDirective, [{
|
|
71
97
|
type: Directive,
|
|
72
98
|
args: [{
|
|
73
99
|
// tslint:disable-next-line:directive-selector
|
|
74
100
|
selector: '[ngJvxOptionsTemplate]'
|
|
75
101
|
}]
|
|
76
|
-
}],
|
|
102
|
+
}], function () { return [{ type: i0.ElementRef }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, { ngJvxOptionsTemplateOf: [{
|
|
77
103
|
type: Input
|
|
78
|
-
}] }
|
|
104
|
+
}] });
|
|
105
|
+
})();
|
|
79
106
|
|
|
80
107
|
class NgJvxSelectionTemplateDirective {
|
|
81
108
|
constructor(template, vcRef) {
|
|
@@ -88,17 +115,19 @@ class NgJvxSelectionTemplateDirective {
|
|
|
88
115
|
}
|
|
89
116
|
}
|
|
90
117
|
}
|
|
91
|
-
NgJvxSelectionTemplateDirective.ɵfac =
|
|
92
|
-
NgJvxSelectionTemplateDirective.ɵdir = i0.ɵɵ
|
|
93
|
-
|
|
118
|
+
NgJvxSelectionTemplateDirective.ɵfac = function NgJvxSelectionTemplateDirective_Factory(t) { return new (t || NgJvxSelectionTemplateDirective)(i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
119
|
+
NgJvxSelectionTemplateDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: NgJvxSelectionTemplateDirective, selectors: [["", "ngJvxSelectionTemplate", ""]], inputs: { ngJvxSelectionTemplateOf: "ngJvxSelectionTemplateOf" } });
|
|
120
|
+
(function () {
|
|
121
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxSelectionTemplateDirective, [{
|
|
94
122
|
type: Directive,
|
|
95
123
|
args: [{
|
|
96
124
|
// tslint:disable-next-line:directive-selector
|
|
97
125
|
selector: '[ngJvxSelectionTemplate]'
|
|
98
126
|
}]
|
|
99
|
-
}],
|
|
127
|
+
}], function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, { ngJvxSelectionTemplateOf: [{
|
|
100
128
|
type: Input
|
|
101
|
-
}] }
|
|
129
|
+
}] });
|
|
130
|
+
})();
|
|
102
131
|
|
|
103
132
|
class NgJvxGroupHeaderDirective {
|
|
104
133
|
constructor(template, vcRef) {
|
|
@@ -111,26 +140,21 @@ class NgJvxGroupHeaderDirective {
|
|
|
111
140
|
}
|
|
112
141
|
}
|
|
113
142
|
}
|
|
114
|
-
NgJvxGroupHeaderDirective.ɵfac =
|
|
115
|
-
NgJvxGroupHeaderDirective.ɵdir = i0.ɵɵ
|
|
116
|
-
|
|
143
|
+
NgJvxGroupHeaderDirective.ɵfac = function NgJvxGroupHeaderDirective_Factory(t) { return new (t || NgJvxGroupHeaderDirective)(i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); };
|
|
144
|
+
NgJvxGroupHeaderDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: NgJvxGroupHeaderDirective, selectors: [["", "ngJvxGroupHeader", ""]], inputs: { ngJvxGroupHeaderOf: "ngJvxGroupHeaderOf" } });
|
|
145
|
+
(function () {
|
|
146
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxGroupHeaderDirective, [{
|
|
117
147
|
type: Directive,
|
|
118
148
|
args: [{
|
|
119
149
|
// tslint:disable-next-line:directive-selector
|
|
120
150
|
selector: '[ngJvxGroupHeader]'
|
|
121
151
|
}]
|
|
122
|
-
}],
|
|
152
|
+
}], function () { return [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }]; }, { ngJvxGroupHeaderOf: [{
|
|
123
153
|
type: Input
|
|
124
|
-
}] }
|
|
154
|
+
}] });
|
|
155
|
+
})();
|
|
125
156
|
|
|
126
157
|
class NgJvxDisabledOptionDirective {
|
|
127
|
-
constructor(el) {
|
|
128
|
-
this.el = el;
|
|
129
|
-
this.isDisabled = false;
|
|
130
|
-
this.originalOpacity = 1;
|
|
131
|
-
this.unsubs = new Subject();
|
|
132
|
-
this.originalOpacity = el.nativeElement.style.opacity;
|
|
133
|
-
}
|
|
134
158
|
set ngJvxDisabledOption(source) {
|
|
135
159
|
this.isDisabled = source;
|
|
136
160
|
if (this.isDisabled) {
|
|
@@ -140,6 +164,13 @@ class NgJvxDisabledOptionDirective {
|
|
|
140
164
|
this.el.nativeElement.style.opacity = this.originalOpacity;
|
|
141
165
|
}
|
|
142
166
|
}
|
|
167
|
+
constructor(el) {
|
|
168
|
+
this.el = el;
|
|
169
|
+
this.isDisabled = false;
|
|
170
|
+
this.originalOpacity = 1;
|
|
171
|
+
this.unsubs = new Subject();
|
|
172
|
+
this.originalOpacity = el.nativeElement.style.opacity;
|
|
173
|
+
}
|
|
143
174
|
ngOnInit() {
|
|
144
175
|
fromEvent(this.el.nativeElement.closest('.mat-list-item-content'), 'click', {
|
|
145
176
|
capture: true,
|
|
@@ -156,17 +187,19 @@ class NgJvxDisabledOptionDirective {
|
|
|
156
187
|
this.unsubs.complete();
|
|
157
188
|
}
|
|
158
189
|
}
|
|
159
|
-
NgJvxDisabledOptionDirective.ɵfac =
|
|
160
|
-
NgJvxDisabledOptionDirective.ɵdir = i0.ɵɵ
|
|
161
|
-
|
|
190
|
+
NgJvxDisabledOptionDirective.ɵfac = function NgJvxDisabledOptionDirective_Factory(t) { return new (t || NgJvxDisabledOptionDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
191
|
+
NgJvxDisabledOptionDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: NgJvxDisabledOptionDirective, selectors: [["", "ngJvxDisabledOption", ""]], inputs: { ngJvxDisabledOption: "ngJvxDisabledOption" } });
|
|
192
|
+
(function () {
|
|
193
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxDisabledOptionDirective, [{
|
|
162
194
|
type: Directive,
|
|
163
195
|
args: [{
|
|
164
196
|
// tslint:disable-next-line:directive-selector
|
|
165
197
|
selector: '[ngJvxDisabledOption]'
|
|
166
198
|
}]
|
|
167
|
-
}],
|
|
199
|
+
}], function () { return [{ type: i0.ElementRef }]; }, { ngJvxDisabledOption: [{
|
|
168
200
|
type: Input
|
|
169
|
-
}] }
|
|
201
|
+
}] });
|
|
202
|
+
})();
|
|
170
203
|
|
|
171
204
|
const JVXMULTISELECT = new HttpContextToken(() => false);
|
|
172
205
|
const setJvxCall = () => new HttpContext().set(JVXMULTISELECT, true);
|
|
@@ -201,14 +234,16 @@ class NgJvxMultiselectService {
|
|
|
201
234
|
}
|
|
202
235
|
}
|
|
203
236
|
}
|
|
204
|
-
NgJvxMultiselectService.ɵfac =
|
|
205
|
-
NgJvxMultiselectService.ɵprov = i0.ɵɵ
|
|
206
|
-
|
|
237
|
+
NgJvxMultiselectService.ɵfac = function NgJvxMultiselectService_Factory(t) { return new (t || NgJvxMultiselectService)(i0.ɵɵinject(i1.HttpClient)); };
|
|
238
|
+
NgJvxMultiselectService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: NgJvxMultiselectService, factory: NgJvxMultiselectService.ɵfac, providedIn: 'root' });
|
|
239
|
+
(function () {
|
|
240
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxMultiselectService, [{
|
|
207
241
|
type: Injectable,
|
|
208
242
|
args: [{
|
|
209
243
|
providedIn: 'root'
|
|
210
244
|
}]
|
|
211
|
-
}],
|
|
245
|
+
}], function () { return [{ type: i1.HttpClient }]; }, null);
|
|
246
|
+
})();
|
|
212
247
|
|
|
213
248
|
class NgJvxFocusDirective {
|
|
214
249
|
constructor(el) {
|
|
@@ -225,19 +260,341 @@ class NgJvxFocusDirective {
|
|
|
225
260
|
}
|
|
226
261
|
}
|
|
227
262
|
}
|
|
228
|
-
NgJvxFocusDirective.ɵfac =
|
|
229
|
-
NgJvxFocusDirective.ɵdir = i0.ɵɵ
|
|
230
|
-
|
|
263
|
+
NgJvxFocusDirective.ɵfac = function NgJvxFocusDirective_Factory(t) { return new (t || NgJvxFocusDirective)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
264
|
+
NgJvxFocusDirective.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: NgJvxFocusDirective, selectors: [["", "ngJvxFocus", ""]], inputs: { ngJvxFocus: "ngJvxFocus" }, features: [i0.ɵɵNgOnChangesFeature] });
|
|
265
|
+
(function () {
|
|
266
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxFocusDirective, [{
|
|
231
267
|
type: Directive,
|
|
232
268
|
args: [{
|
|
233
269
|
// tslint:disable-next-line:directive-selector
|
|
234
270
|
selector: '[ngJvxFocus]'
|
|
235
271
|
}]
|
|
236
|
-
}],
|
|
272
|
+
}], function () { return [{ type: i0.ElementRef }]; }, { ngJvxFocus: [{
|
|
237
273
|
type: Input
|
|
238
|
-
}] }
|
|
274
|
+
}] });
|
|
275
|
+
})();
|
|
239
276
|
|
|
277
|
+
const _c0$1 = ["jvxMultiselect"];
|
|
278
|
+
const _c1 = ["selectionContainer"];
|
|
279
|
+
const _c2 = ["selection"];
|
|
280
|
+
const _c3 = ["trigger"];
|
|
281
|
+
const _c4 = ["scrollbar"];
|
|
282
|
+
const _c5 = ["multiContainer"];
|
|
283
|
+
function NgJvxMultiselectComponent_div_6_Template(rf, ctx) {
|
|
284
|
+
if (rf & 1) {
|
|
285
|
+
i0.ɵɵelementStart(0, "div", 30)(1, "mat-icon");
|
|
286
|
+
i0.ɵɵtext(2, "close");
|
|
287
|
+
i0.ɵɵelementEnd()();
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
const _c6 = function () { return { standalone: true }; };
|
|
291
|
+
function NgJvxMultiselectComponent_div_9_Template(rf, ctx) {
|
|
292
|
+
if (rf & 1) {
|
|
293
|
+
const _r25 = i0.ɵɵgetCurrentView();
|
|
294
|
+
i0.ɵɵelementStart(0, "div", 31);
|
|
295
|
+
i0.ɵɵlistener("click", function NgJvxMultiselectComponent_div_9_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r24 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r24.onSearchInputClick($event)); });
|
|
296
|
+
i0.ɵɵelementStart(1, "input", 32);
|
|
297
|
+
i0.ɵɵlistener("input", function NgJvxMultiselectComponent_div_9_Template_input_input_1_listener($event) { i0.ɵɵrestoreView(_r25); const ctx_r26 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r26.onSearchValueChange($event)); });
|
|
298
|
+
i0.ɵɵelementEnd()();
|
|
299
|
+
}
|
|
300
|
+
if (rf & 2) {
|
|
301
|
+
const ctx_r5 = i0.ɵɵnextContext();
|
|
302
|
+
i0.ɵɵadvance(1);
|
|
303
|
+
i0.ɵɵproperty("placeholder", ctx_r5.searchLabel)("ngModel", ctx_r5.searchValue)("ngModelOptions", i0.ɵɵpureFunction0(4, _c6))("ngJvxFocus", ctx_r5.isOpen);
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
const _c7 = function (a0) { return { $implicit: a0 }; };
|
|
307
|
+
function NgJvxMultiselectComponent_mat_selection_list_15_ng_container_3_ng_container_1_ng_jvx_option_2_Template(rf, ctx) {
|
|
308
|
+
if (rf & 1) {
|
|
309
|
+
i0.ɵɵelementStart(0, "ng-jvx-option", 38)(1, "span", 39);
|
|
310
|
+
i0.ɵɵelementContainer(2, 36);
|
|
311
|
+
i0.ɵɵelementEnd()();
|
|
312
|
+
}
|
|
313
|
+
if (rf & 2) {
|
|
314
|
+
const option_r33 = ctx.$implicit;
|
|
315
|
+
const ctx_r32 = i0.ɵɵnextContext(4);
|
|
316
|
+
const _r16 = i0.ɵɵreference(28);
|
|
317
|
+
i0.ɵɵproperty("value", option_r33[ctx_r32.itemValue]);
|
|
318
|
+
i0.ɵɵadvance(2);
|
|
319
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r32.optionsTemplate ? ctx_r32.optionsTemplate.template : _r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c7, option_r33));
|
|
320
|
+
}
|
|
321
|
+
}
|
|
322
|
+
function NgJvxMultiselectComponent_mat_selection_list_15_ng_container_3_ng_container_1_Template(rf, ctx) {
|
|
323
|
+
if (rf & 1) {
|
|
324
|
+
i0.ɵɵelementContainerStart(0);
|
|
325
|
+
i0.ɵɵelementContainer(1, 36);
|
|
326
|
+
i0.ɵɵtemplate(2, NgJvxMultiselectComponent_mat_selection_list_15_ng_container_3_ng_container_1_ng_jvx_option_2_Template, 3, 5, "ng-jvx-option", 37);
|
|
327
|
+
i0.ɵɵelementContainerEnd();
|
|
328
|
+
}
|
|
329
|
+
if (rf & 2) {
|
|
330
|
+
const opt_r31 = ctx.$implicit;
|
|
331
|
+
const ctx_r30 = i0.ɵɵnextContext(3);
|
|
332
|
+
const _r22 = i0.ɵɵreference(34);
|
|
333
|
+
i0.ɵɵadvance(1);
|
|
334
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r30.groupHeaderTemplate ? ctx_r30.groupHeaderTemplate.template : _r22)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c7, opt_r31));
|
|
335
|
+
i0.ɵɵadvance(1);
|
|
336
|
+
i0.ɵɵproperty("ngForOf", opt_r31.options);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
function NgJvxMultiselectComponent_mat_selection_list_15_ng_container_3_Template(rf, ctx) {
|
|
340
|
+
if (rf & 1) {
|
|
341
|
+
i0.ɵɵelementContainerStart(0);
|
|
342
|
+
i0.ɵɵtemplate(1, NgJvxMultiselectComponent_mat_selection_list_15_ng_container_3_ng_container_1_Template, 3, 5, "ng-container", 35);
|
|
343
|
+
i0.ɵɵelementContainerEnd();
|
|
344
|
+
}
|
|
345
|
+
if (rf & 2) {
|
|
346
|
+
const ctx_r28 = i0.ɵɵnextContext(2);
|
|
347
|
+
i0.ɵɵadvance(1);
|
|
348
|
+
i0.ɵɵproperty("ngForOf", ctx_r28.orderedOptions);
|
|
349
|
+
}
|
|
350
|
+
}
|
|
351
|
+
function NgJvxMultiselectComponent_mat_selection_list_15_ng_container_4_ng_jvx_option_1_Template(rf, ctx) {
|
|
352
|
+
if (rf & 1) {
|
|
353
|
+
i0.ɵɵelementStart(0, "ng-jvx-option", 38);
|
|
354
|
+
i0.ɵɵelementContainer(1, 36);
|
|
355
|
+
i0.ɵɵelementEnd();
|
|
356
|
+
}
|
|
357
|
+
if (rf & 2) {
|
|
358
|
+
const option_r35 = ctx.$implicit;
|
|
359
|
+
const ctx_r34 = i0.ɵɵnextContext(3);
|
|
360
|
+
const _r16 = i0.ɵɵreference(28);
|
|
361
|
+
i0.ɵɵproperty("value", option_r35[ctx_r34.itemValue]);
|
|
362
|
+
i0.ɵɵadvance(1);
|
|
363
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r34.optionsTemplate ? ctx_r34.optionsTemplate.template : _r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(3, _c7, option_r35));
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
function NgJvxMultiselectComponent_mat_selection_list_15_ng_container_4_Template(rf, ctx) {
|
|
367
|
+
if (rf & 1) {
|
|
368
|
+
i0.ɵɵelementContainerStart(0);
|
|
369
|
+
i0.ɵɵtemplate(1, NgJvxMultiselectComponent_mat_selection_list_15_ng_container_4_ng_jvx_option_1_Template, 2, 5, "ng-jvx-option", 37);
|
|
370
|
+
i0.ɵɵelementContainerEnd();
|
|
371
|
+
}
|
|
372
|
+
if (rf & 2) {
|
|
373
|
+
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
374
|
+
i0.ɵɵadvance(1);
|
|
375
|
+
i0.ɵɵproperty("ngForOf", ctx_r29.selectableOptions);
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
const _c8 = function (a1) { return { "padding": 0, "width": a1, "min-width.px": 112 }; };
|
|
379
|
+
function NgJvxMultiselectComponent_mat_selection_list_15_Template(rf, ctx) {
|
|
380
|
+
if (rf & 1) {
|
|
381
|
+
const _r37 = i0.ɵɵgetCurrentView();
|
|
382
|
+
i0.ɵɵelementStart(0, "mat-selection-list", 33, 34);
|
|
383
|
+
i0.ɵɵlistener("selectionChange", function NgJvxMultiselectComponent_mat_selection_list_15_Template_mat_selection_list_selectionChange_0_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r36.onChange($event)); });
|
|
384
|
+
i0.ɵɵprojection(2, 1);
|
|
385
|
+
i0.ɵɵtemplate(3, NgJvxMultiselectComponent_mat_selection_list_15_ng_container_3_Template, 2, 1, "ng-container", 24);
|
|
386
|
+
i0.ɵɵtemplate(4, NgJvxMultiselectComponent_mat_selection_list_15_ng_container_4_Template, 2, 1, "ng-container", 24);
|
|
387
|
+
i0.ɵɵelementEnd();
|
|
388
|
+
}
|
|
389
|
+
if (rf & 2) {
|
|
390
|
+
const ctx_r8 = i0.ɵɵnextContext();
|
|
391
|
+
i0.ɵɵproperty("multiple", ctx_r8.multi)("ngStyle", i0.ɵɵpureFunction1(4, _c8, ctx_r8.listContainerSize.width));
|
|
392
|
+
i0.ɵɵadvance(3);
|
|
393
|
+
i0.ɵɵproperty("ngIf", !!ctx_r8.groupBy);
|
|
394
|
+
i0.ɵɵadvance(1);
|
|
395
|
+
i0.ɵɵproperty("ngIf", !ctx_r8.groupBy || ctx_r8.groupBy.length === 0);
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
function NgJvxMultiselectComponent_div_20_Template(rf, ctx) {
|
|
399
|
+
if (rf & 1) {
|
|
400
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
401
|
+
i0.ɵɵprojection(1, 2);
|
|
402
|
+
i0.ɵɵelementEnd();
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
function NgJvxMultiselectComponent_div_21_Template(rf, ctx) {
|
|
406
|
+
if (rf & 1) {
|
|
407
|
+
i0.ɵɵelementStart(0, "div", 41, 42);
|
|
408
|
+
i0.ɵɵelementContainer(2, 36);
|
|
409
|
+
i0.ɵɵelementEnd();
|
|
410
|
+
}
|
|
411
|
+
if (rf & 2) {
|
|
412
|
+
const ctx_r11 = i0.ɵɵnextContext();
|
|
413
|
+
const _r20 = i0.ɵɵreference(32);
|
|
414
|
+
i0.ɵɵadvance(2);
|
|
415
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r11.selectionTemplate ? ctx_r11.selectionTemplate.template : _r20)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c7, ctx_r11.value));
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
function NgJvxMultiselectComponent_div_22_div_1_Template(rf, ctx) {
|
|
419
|
+
if (rf & 1) {
|
|
420
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
421
|
+
i0.ɵɵelementContainer(1, 36);
|
|
422
|
+
i0.ɵɵelementEnd();
|
|
423
|
+
}
|
|
424
|
+
if (rf & 2) {
|
|
425
|
+
const val_r40 = ctx.$implicit;
|
|
426
|
+
const ctx_r39 = i0.ɵɵnextContext(2);
|
|
427
|
+
const _r18 = i0.ɵɵreference(30);
|
|
428
|
+
i0.ɵɵadvance(1);
|
|
429
|
+
i0.ɵɵproperty("ngTemplateOutlet", ctx_r39.selectionTemplate ? ctx_r39.selectionTemplate.template : _r18)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c7, val_r40));
|
|
430
|
+
}
|
|
431
|
+
}
|
|
432
|
+
function NgJvxMultiselectComponent_div_22_Template(rf, ctx) {
|
|
433
|
+
if (rf & 1) {
|
|
434
|
+
i0.ɵɵelementStart(0, "div", 43);
|
|
435
|
+
i0.ɵɵtemplate(1, NgJvxMultiselectComponent_div_22_div_1_Template, 2, 4, "div", 44);
|
|
436
|
+
i0.ɵɵelementEnd();
|
|
437
|
+
}
|
|
438
|
+
if (rf & 2) {
|
|
439
|
+
const ctx_r12 = i0.ɵɵnextContext();
|
|
440
|
+
i0.ɵɵadvance(1);
|
|
441
|
+
i0.ɵɵproperty("ngForOf", ctx_r12.value);
|
|
442
|
+
}
|
|
443
|
+
}
|
|
444
|
+
function NgJvxMultiselectComponent_div_23_Template(rf, ctx) {
|
|
445
|
+
if (rf & 1) {
|
|
446
|
+
const _r42 = i0.ɵɵgetCurrentView();
|
|
447
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
448
|
+
i0.ɵɵlistener("click", function NgJvxMultiselectComponent_div_23_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r42); const ctx_r41 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r41.clear($event)); });
|
|
449
|
+
i0.ɵɵelementStart(1, "mat-icon", 47);
|
|
450
|
+
i0.ɵɵtext(2, "clear ");
|
|
451
|
+
i0.ɵɵelementEnd()();
|
|
452
|
+
}
|
|
453
|
+
}
|
|
454
|
+
function NgJvxMultiselectComponent_mat_icon_25_Template(rf, ctx) {
|
|
455
|
+
if (rf & 1) {
|
|
456
|
+
i0.ɵɵelementStart(0, "mat-icon");
|
|
457
|
+
i0.ɵɵtext(1, "expand_more");
|
|
458
|
+
i0.ɵɵelementEnd();
|
|
459
|
+
}
|
|
460
|
+
}
|
|
461
|
+
function NgJvxMultiselectComponent_div_26_Template(rf, ctx) {
|
|
462
|
+
if (rf & 1) {
|
|
463
|
+
i0.ɵɵelementStart(0, "div", 48);
|
|
464
|
+
i0.ɵɵelement(1, "div")(2, "div")(3, "div")(4, "div");
|
|
465
|
+
i0.ɵɵelementEnd();
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
function NgJvxMultiselectComponent_ng_template_27_Template(rf, ctx) {
|
|
469
|
+
if (rf & 1) {
|
|
470
|
+
i0.ɵɵelementStart(0, "div", 49);
|
|
471
|
+
i0.ɵɵtext(1);
|
|
472
|
+
i0.ɵɵelementEnd();
|
|
473
|
+
}
|
|
474
|
+
if (rf & 2) {
|
|
475
|
+
const option_r43 = ctx.$implicit;
|
|
476
|
+
const ctx_r17 = i0.ɵɵnextContext();
|
|
477
|
+
i0.ɵɵadvance(1);
|
|
478
|
+
i0.ɵɵtextInterpolate1("", option_r43[ctx_r17.itemText], " ");
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
function NgJvxMultiselectComponent_ng_template_29_Template(rf, ctx) {
|
|
482
|
+
if (rf & 1) {
|
|
483
|
+
i0.ɵɵtext(0);
|
|
484
|
+
}
|
|
485
|
+
if (rf & 2) {
|
|
486
|
+
const value_r44 = ctx.$implicit;
|
|
487
|
+
const ctx_r19 = i0.ɵɵnextContext();
|
|
488
|
+
i0.ɵɵtextInterpolate1(" ", value_r44[ctx_r19.itemText], "\n");
|
|
489
|
+
}
|
|
490
|
+
}
|
|
491
|
+
const _c9 = function (a0) { return { "max-width": a0 }; };
|
|
492
|
+
function NgJvxMultiselectComponent_ng_template_31_mat_chip_2_Template(rf, ctx) {
|
|
493
|
+
if (rf & 1) {
|
|
494
|
+
const _r50 = i0.ɵɵgetCurrentView();
|
|
495
|
+
i0.ɵɵelementStart(0, "mat-chip", 53);
|
|
496
|
+
i0.ɵɵlistener("removed", function NgJvxMultiselectComponent_ng_template_31_mat_chip_2_Template_mat_chip_removed_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r50); const val_r48 = restoredCtx.$implicit; const ctx_r49 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r49.deselect(val_r48)); });
|
|
497
|
+
i0.ɵɵelementStart(1, "span", 54);
|
|
498
|
+
i0.ɵɵtext(2);
|
|
499
|
+
i0.ɵɵelementEnd();
|
|
500
|
+
i0.ɵɵelementStart(3, "mat-icon", 55);
|
|
501
|
+
i0.ɵɵtext(4, "cancel");
|
|
502
|
+
i0.ɵɵelementEnd()();
|
|
503
|
+
}
|
|
504
|
+
if (rf & 2) {
|
|
505
|
+
const val_r48 = ctx.$implicit;
|
|
506
|
+
const ctx_r47 = i0.ɵɵnextContext(2);
|
|
507
|
+
i0.ɵɵproperty("color", "primary")("selectable", false)("removable", true);
|
|
508
|
+
i0.ɵɵadvance(1);
|
|
509
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c9, ctx_r47.multiContainerWidth - 50 + "px"));
|
|
510
|
+
i0.ɵɵadvance(1);
|
|
511
|
+
i0.ɵɵtextInterpolate(val_r48[ctx_r47.itemText]);
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
function NgJvxMultiselectComponent_ng_template_31_Template(rf, ctx) {
|
|
515
|
+
if (rf & 1) {
|
|
516
|
+
i0.ɵɵelementStart(0, "mat-chip-list", 50, 51);
|
|
517
|
+
i0.ɵɵtemplate(2, NgJvxMultiselectComponent_ng_template_31_mat_chip_2_Template, 5, 7, "mat-chip", 52);
|
|
518
|
+
i0.ɵɵelementEnd();
|
|
519
|
+
}
|
|
520
|
+
if (rf & 2) {
|
|
521
|
+
const value_r45 = ctx.$implicit;
|
|
522
|
+
const ctx_r21 = i0.ɵɵnextContext();
|
|
523
|
+
i0.ɵɵproperty("disabled", ctx_r21.disabled);
|
|
524
|
+
i0.ɵɵadvance(2);
|
|
525
|
+
i0.ɵɵproperty("ngForOf", value_r45);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
function NgJvxMultiselectComponent_ng_template_33_Template(rf, ctx) {
|
|
529
|
+
if (rf & 1) {
|
|
530
|
+
i0.ɵɵelementStart(0, "div", 56)(1, "strong");
|
|
531
|
+
i0.ɵɵtext(2);
|
|
532
|
+
i0.ɵɵelementEnd()();
|
|
533
|
+
}
|
|
534
|
+
if (rf & 2) {
|
|
535
|
+
const opt_r51 = ctx.$implicit;
|
|
536
|
+
i0.ɵɵadvance(2);
|
|
537
|
+
i0.ɵɵtextInterpolate(opt_r51.group);
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
const _c10 = [[["", "ng-jvx-footer", ""]], "*", [["", "placeholder", ""]]];
|
|
541
|
+
const _c11 = function (a0, a1) { return { "disabled": a0, "has-errors": a1 }; };
|
|
542
|
+
const _c12 = function (a1) { return ["jvx-multiselect-panel", a1]; };
|
|
543
|
+
const _c13 = function (a1, a3, a4) { return { "overflow-y": "hidden", "width": a1, "max-height": "260px", "height": a3, "min-height": a4 }; };
|
|
544
|
+
const _c14 = function (a0) { return { height: a0 }; };
|
|
545
|
+
const _c15 = function (a1) { return { "ng-jvx-multiselect-value-container": true, "is-open": a1 }; };
|
|
546
|
+
const _c16 = ["[ng-jvx-footer]", "*", "[placeholder]"];
|
|
240
547
|
class NgJvxMultiselectComponent {
|
|
548
|
+
get shouldLabelFloat() {
|
|
549
|
+
return this.focused || !this.empty;
|
|
550
|
+
}
|
|
551
|
+
set value(value) {
|
|
552
|
+
this.pValue = value !== null && value !== void 0 ? value : [];
|
|
553
|
+
if (value) {
|
|
554
|
+
this.form.get('selectionValue').setValue(this.pValue.map(v => v[this.itemValue]));
|
|
555
|
+
}
|
|
556
|
+
else {
|
|
557
|
+
this.form.get('selectionValue').setValue(value);
|
|
558
|
+
}
|
|
559
|
+
this.stateChanges.next();
|
|
560
|
+
}
|
|
561
|
+
get value() {
|
|
562
|
+
return this.pValue;
|
|
563
|
+
}
|
|
564
|
+
get required() {
|
|
565
|
+
return this._required;
|
|
566
|
+
}
|
|
567
|
+
set required(req) {
|
|
568
|
+
this._required = coerceBooleanProperty(req);
|
|
569
|
+
this.stateChanges.next();
|
|
570
|
+
}
|
|
571
|
+
get disabled() {
|
|
572
|
+
return this._disabled;
|
|
573
|
+
}
|
|
574
|
+
set disabled(value) {
|
|
575
|
+
this._disabled = coerceBooleanProperty(value);
|
|
576
|
+
this._disabled ? this.parts.disable() : this.parts.enable();
|
|
577
|
+
this.stateChanges.next();
|
|
578
|
+
}
|
|
579
|
+
get pageSize() {
|
|
580
|
+
return this.intPageSize;
|
|
581
|
+
}
|
|
582
|
+
set pageSize(val) {
|
|
583
|
+
if (val < 15) {
|
|
584
|
+
this.intPageSize = 15;
|
|
585
|
+
}
|
|
586
|
+
else {
|
|
587
|
+
this.intPageSize = val;
|
|
588
|
+
}
|
|
589
|
+
}
|
|
590
|
+
get errorState() {
|
|
591
|
+
if (this.ngControl != null) {
|
|
592
|
+
return this.ngControl.invalid && this.ngControl.touched;
|
|
593
|
+
}
|
|
594
|
+
else {
|
|
595
|
+
return false;
|
|
596
|
+
}
|
|
597
|
+
}
|
|
241
598
|
constructor(formBuilder, service, elementRef, changeDetectorRef, ngControl, fb) {
|
|
242
599
|
this.formBuilder = formBuilder;
|
|
243
600
|
this.service = service;
|
|
@@ -334,56 +691,6 @@ class NgJvxMultiselectComponent {
|
|
|
334
691
|
selectionValue: new UntypedFormControl(this.selectionValue)
|
|
335
692
|
});
|
|
336
693
|
}
|
|
337
|
-
get shouldLabelFloat() {
|
|
338
|
-
return this.focused || !this.empty;
|
|
339
|
-
}
|
|
340
|
-
set value(value) {
|
|
341
|
-
this.pValue = value !== null && value !== void 0 ? value : [];
|
|
342
|
-
if (value) {
|
|
343
|
-
this.form.get('selectionValue').setValue(this.pValue.map(v => v[this.itemValue]));
|
|
344
|
-
}
|
|
345
|
-
else {
|
|
346
|
-
this.form.get('selectionValue').setValue(value);
|
|
347
|
-
}
|
|
348
|
-
this.stateChanges.next();
|
|
349
|
-
}
|
|
350
|
-
get value() {
|
|
351
|
-
return this.pValue;
|
|
352
|
-
}
|
|
353
|
-
get required() {
|
|
354
|
-
return this._required;
|
|
355
|
-
}
|
|
356
|
-
set required(req) {
|
|
357
|
-
this._required = coerceBooleanProperty(req);
|
|
358
|
-
this.stateChanges.next();
|
|
359
|
-
}
|
|
360
|
-
get disabled() {
|
|
361
|
-
return this._disabled;
|
|
362
|
-
}
|
|
363
|
-
set disabled(value) {
|
|
364
|
-
this._disabled = coerceBooleanProperty(value);
|
|
365
|
-
this._disabled ? this.parts.disable() : this.parts.enable();
|
|
366
|
-
this.stateChanges.next();
|
|
367
|
-
}
|
|
368
|
-
get pageSize() {
|
|
369
|
-
return this.intPageSize;
|
|
370
|
-
}
|
|
371
|
-
set pageSize(val) {
|
|
372
|
-
if (val < 15) {
|
|
373
|
-
this.intPageSize = 15;
|
|
374
|
-
}
|
|
375
|
-
else {
|
|
376
|
-
this.intPageSize = val;
|
|
377
|
-
}
|
|
378
|
-
}
|
|
379
|
-
get errorState() {
|
|
380
|
-
if (this.ngControl != null) {
|
|
381
|
-
return this.ngControl.invalid && this.ngControl.touched;
|
|
382
|
-
}
|
|
383
|
-
else {
|
|
384
|
-
return false;
|
|
385
|
-
}
|
|
386
|
-
}
|
|
387
694
|
ngOnInit() {
|
|
388
695
|
this.stateChange$.pipe(takeUntil(this.unsubscribe)).subscribe(() => {
|
|
389
696
|
this.changeDetectorRef.markForCheck();
|
|
@@ -717,30 +1024,135 @@ class NgJvxMultiselectComponent {
|
|
|
717
1024
|
}
|
|
718
1025
|
}
|
|
719
1026
|
NgJvxMultiselectComponent.nextId = 0;
|
|
720
|
-
NgJvxMultiselectComponent.ɵfac =
|
|
721
|
-
NgJvxMultiselectComponent.ɵcmp = i0.ɵɵ
|
|
722
|
-
{
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
}
|
|
727
|
-
], queries: [{ propertyName: "optionsTemplate", first: true, predicate: NgJvxOptionsTemplateDirective, descendants: true }, { propertyName: "selectionTemplate", first: true, predicate: NgJvxSelectionTemplateDirective, descendants: true }, { propertyName: "groupHeaderTemplate", first: true, predicate: NgJvxGroupHeaderDirective, descendants: true }], viewQueries: [{ propertyName: "jvxMultiselect", first: true, predicate: ["jvxMultiselect"], descendants: true, static: true }, { propertyName: "selectionContainer", first: true, predicate: ["selectionContainer"], descendants: true }, { propertyName: "selection", first: true, predicate: ["selection"], descendants: true, static: true }, { propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, static: true }, { propertyName: "scrollbar", first: true, predicate: ["scrollbar"], descendants: true }, { propertyName: "multiContainer", first: true, predicate: ["multiContainer"], descendants: true }, { propertyName: "optionComp", predicate: NgJvxOptionComponent, descendants: true }], usesOnChanges: true, ngImport: i0, template: "<div class=\"ng-jvx-multiselect\" [ngClass]=\"{'disabled': disabled, 'has-errors': hasErrors}\" #jvxMultiselect>\r\n <!-- START MENU -->\r\n <div [matMenuTriggerFor]=\"menuRef\" (onMenuOpen)=\"onMenuOpen()\" (menuOpened)=\"onMenuOpened()\"\r\n (onMenuClose)=\"onMenuClose()\" (menuClosed)=\"onMenuClosed()\"\r\n #trigger=\"matMenuTrigger\">\r\n <mat-menu #menuRef=\"matMenu\" [class]=\"['jvx-multiselect-panel', panelClass].join(' ')\" [formGroup]=\"form\"\r\n [yPosition]=\"yPosition\">\r\n <div *ngIf=\"closeButton\" class=\"closeMenuButton\"><mat-icon >close</mat-icon></div>\r\n <div class=\"menu-list-container\"\r\n #menuLIstContainer\r\n [ngStyle]=\"{'overflow-y': 'hidden', 'width': listContainerSize.width, 'max-height': '260px', 'height': listContainerSize.height, 'min-height': listContainerSize.minHeight}\">\r\n\r\n <div class=\"search-input-container\" *ngIf=\"!!searchInput\" (click)=\"onSearchInputClick($event)\">\r\n <input type=\"text\" [placeholder]=\"searchLabel\" [ngModel]=\"searchValue\" [ngModelOptions]=\"{standalone: true}\"\r\n [ngJvxFocus]=\"isOpen\"\r\n (input)=\"onSearchValueChange($event)\"/>\r\n </div>\r\n <div [ngStyle]=\"{height: searchInput && selectionContainer.clientHeight > 220 || selectionContainer.clientHeight > 260? 260 - (searchInput? 40 : 0) + 'px': 'auto'}\">\r\n <ng-scrollbar style=\"width: 100%\"\r\n smoothScroll\r\n [visibility]=\"'hover'\"\r\n [appearance]=\"'compact'\"\r\n [sensorDisabled]=\"isLoading\"\r\n [autoHeightDisabled]=\"false\" #scrollbar>\r\n <div #selectionContainer (click)=\"onCLickOnMenu($event)\">\r\n <mat-selection-list #selection [multiple]=\"multi\"\r\n *ngIf=\"showList\"\r\n [ngStyle]=\"{'padding': 0, 'width': listContainerSize.width, 'min-width.px': 112}\"\r\n (selectionChange)=\"onChange($event)\"\r\n formControlName=\"selectionValue\">\r\n <ng-content></ng-content>\r\n <ng-container *ngIf=\"!!groupBy\">\r\n <ng-container *ngFor=\"let opt of orderedOptions\">\r\n <ng-container [ngTemplateOutlet]=\"groupHeaderTemplate? groupHeaderTemplate.template: defaultGroupHeaderTemplate\" [ngTemplateOutletContext]=\"{$implicit: opt}\"></ng-container>\r\n\r\n <ng-jvx-option *ngFor=\"let option of opt.options\" [value]=\"option[itemValue]\">\r\n <!-- <ng-container [ngTemplateOutlet]=\"optionsTemplate\" [ngTemplateOutletContext]=\"{$implicit: option}\"></ng-container>-->\r\n <span style=\"padding-inline: 10px\">\r\n <ng-container [ngTemplateOutlet]=\"optionsTemplate? optionsTemplate.template : defaultTemplate\"\r\n [ngTemplateOutletContext]=\"{$implicit: option}\"></ng-container>\r\n </span>\r\n </ng-jvx-option>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"!groupBy || groupBy.length === 0\">\r\n <ng-jvx-option *ngFor=\"let option of selectableOptions\" [value]=\"option[itemValue]\">\r\n <!-- <ng-container [ngTemplateOutlet]=\"optionsTemplate\" [ngTemplateOutletContext]=\"{$implicit: option}\"></ng-container>-->\r\n <ng-container [ngTemplateOutlet]=\"optionsTemplate? optionsTemplate.template : defaultTemplate\"\r\n [ngTemplateOutletContext]=\"{$implicit: option}\"></ng-container>\r\n </ng-jvx-option>\r\n </ng-container>\r\n </mat-selection-list>\r\n </div>\r\n </ng-scrollbar>\r\n </div>\r\n\r\n </div>\r\n <div class=\"menu-footer\">\r\n <ng-content select=\"[ng-jvx-footer]\"></ng-content>\r\n </div>\r\n\r\n </mat-menu>\r\n </div>\r\n <!-- END MENU -->\r\n <!-- START INPUT -->\r\n <div [ngClass]=\"{'ng-jvx-multiselect-value-container': true, 'is-open': isOpen}\"\r\n (click)=\"clickOnMenuTrigger($event)\"\r\n #valueContainer>\r\n\r\n <div class=\"ng-jvx-multiselect__placeholder\" *ngIf=\"value.length === 0\">\r\n <ng-content select=\"[placeholder]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"ng-jvx-multiselect-value multi-value-container\" *ngIf=\"multi\" #multiContainer>\r\n\r\n <ng-container [ngTemplateOutlet]=\"selectionTemplate? selectionTemplate.template : defaultMultiSelectionTemplate\"\r\n [ngTemplateOutletContext]=\"{$implicit: value}\"></ng-container>\r\n\r\n\r\n </div>\r\n\r\n <div class=\"ng-jvx-multiselect-value single-value-container\" *ngIf=\"!multi\">\r\n <div *ngFor=\"let val of value\" style=\"width: 100%;\">\r\n <ng-container [ngTemplateOutlet]=\"selectionTemplate? selectionTemplate.template : defaultSelectionTemplate\"\r\n [ngTemplateOutletContext]=\"{$implicit: val}\"></ng-container></div>\r\n </div>\r\n <div class=\"ng-jvx-multiselect__remove-button\" *ngIf=\"clearable && value.length > 0\" (click)=\"clear($event)\">\r\n <mat-icon style=\"font-size: 18px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\">clear\r\n </mat-icon>\r\n </div>\r\n <div class=\"ng-jvx-multiselect-arrow\">\r\n <mat-icon *ngIf=\"!isLoading\">expand_more</mat-icon>\r\n <div *ngIf=\"isLoading\" class=\"lds-ring\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- END INPUT -->\r\n</div>\r\n<ng-template #defaultTemplate let-option>\r\n <div style=\"max-width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\">{{option[itemText]}}\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectionTemplate let-value>\r\n {{value[itemText]}}\r\n</ng-template>\r\n\r\n<ng-template #defaultMultiSelectionTemplate let-value>\r\n <mat-chip-list #chipList [disabled]=\"this.disabled\">\r\n <mat-chip [color]=\"'primary'\" selected *ngFor=\"let val of value\" [selectable]=\"false\"\r\n class=\"ng-jvx-multiselect-chip\"\r\n [removable]=\"true\" (removed)=\"deselect(val)\">\r\n <span class=\"chip-content\"\r\n [ngStyle]=\"{'max-width': multiContainerWidth - 50 +'px'}\">{{val[itemText]}}</span>\r\n\r\n <mat-icon matChipRemove>cancel</mat-icon>\r\n </mat-chip>\r\n </mat-chip-list>\r\n</ng-template>\r\n<ng-template #defaultGroupHeaderTemplate let-opt>\r\n <div style=\"padding-inline: 15px\"><strong>{{opt.group}}</strong></div>\r\n</ng-template>\r\n", styles: [""], dependencies: [{ kind: "component", type: i3.MatMenu, selector: "mat-menu", exportAs: ["matMenu"] }, { kind: "directive", type: i3.MatMenuTrigger, selector: "[mat-menu-trigger-for], [matMenuTriggerFor]", exportAs: ["matMenuTrigger"] }, { kind: "directive", type: i4.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i4.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i5.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i2.MatSelectionList, selector: "mat-selection-list", inputs: ["disableRipple", "color", "compareWith", "disabled", "multiple"], outputs: ["selectionChange"], exportAs: ["matSelectionList"] }, { kind: "component", type: i7.MatChipList, selector: "mat-chip-list", inputs: ["role", "aria-describedby", "errorStateMatcher", "multiple", "compareWith", "value", "required", "placeholder", "disabled", "aria-orientation", "selectable", "tabIndex"], outputs: ["change", "valueChange"], exportAs: ["matChipList"] }, { kind: "directive", type: i7.MatChip, selector: "mat-basic-chip, [mat-basic-chip], mat-chip, [mat-chip]", inputs: ["color", "disableRipple", "tabIndex", "role", "selected", "value", "selectable", "disabled", "removable"], outputs: ["selectionChange", "destroyed", "removed"], exportAs: ["matChip"] }, { kind: "directive", type: i7.MatChipRemove, selector: "[matChipRemove]" }, { kind: "directive", type: i1$1.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "directive", type: i1$1.FormControlName, selector: "[formControlName]", inputs: ["formControlName", "disabled", "ngModel"], outputs: ["ngModelChange"] }, { kind: "component", type: i8.NgScrollbar, selector: "ng-scrollbar", inputs: ["disabled", "sensorDisabled", "pointerEventsDisabled", "viewportPropagateMouseMove", "autoHeightDisabled", "autoWidthDisabled", "viewClass", "trackClass", "thumbClass", "minThumbSize", "trackClickScrollDuration", "pointerEventsMethod", "track", "visibility", "appearance", "position", "sensorDebounce", "scrollAuditTime"], outputs: ["updated"], exportAs: ["ngScrollbar"] }, { kind: "directive", type: i9.SmoothScroll, selector: "[smoothScroll], [smooth-scroll]", exportAs: ["smoothScroll"] }, { kind: "directive", type: i1$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: NgJvxOptionComponent, selector: "ng-jvx-option", inputs: ["value"] }, { kind: "directive", type: NgJvxFocusDirective, selector: "[ngJvxFocus]", inputs: ["ngJvxFocus"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
728
|
-
|
|
1027
|
+
NgJvxMultiselectComponent.ɵfac = function NgJvxMultiselectComponent_Factory(t) { return new (t || NgJvxMultiselectComponent)(i0.ɵɵdirectiveInject(i1$1.UntypedFormBuilder), i0.ɵɵdirectiveInject(NgJvxMultiselectService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$1.NgControl, 10), i0.ɵɵdirectiveInject(i1$1.UntypedFormBuilder)); };
|
|
1028
|
+
NgJvxMultiselectComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NgJvxMultiselectComponent, selectors: [["ng-jvx-multiselect"]], contentQueries: function NgJvxMultiselectComponent_ContentQueries(rf, ctx, dirIndex) {
|
|
1029
|
+
if (rf & 1) {
|
|
1030
|
+
i0.ɵɵcontentQuery(dirIndex, NgJvxOptionsTemplateDirective, 5);
|
|
1031
|
+
i0.ɵɵcontentQuery(dirIndex, NgJvxSelectionTemplateDirective, 5);
|
|
1032
|
+
i0.ɵɵcontentQuery(dirIndex, NgJvxGroupHeaderDirective, 5);
|
|
1033
|
+
}
|
|
1034
|
+
if (rf & 2) {
|
|
1035
|
+
let _t;
|
|
1036
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.optionsTemplate = _t.first);
|
|
1037
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectionTemplate = _t.first);
|
|
1038
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.groupHeaderTemplate = _t.first);
|
|
1039
|
+
}
|
|
1040
|
+
}, viewQuery: function NgJvxMultiselectComponent_Query(rf, ctx) {
|
|
1041
|
+
if (rf & 1) {
|
|
1042
|
+
i0.ɵɵviewQuery(_c0$1, 7);
|
|
1043
|
+
i0.ɵɵviewQuery(_c1, 5);
|
|
1044
|
+
i0.ɵɵviewQuery(_c2, 7);
|
|
1045
|
+
i0.ɵɵviewQuery(_c3, 7);
|
|
1046
|
+
i0.ɵɵviewQuery(_c4, 5);
|
|
1047
|
+
i0.ɵɵviewQuery(_c5, 5);
|
|
1048
|
+
i0.ɵɵviewQuery(NgJvxOptionComponent, 5);
|
|
1049
|
+
}
|
|
1050
|
+
if (rf & 2) {
|
|
1051
|
+
let _t;
|
|
1052
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.jvxMultiselect = _t.first);
|
|
1053
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectionContainer = _t.first);
|
|
1054
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selection = _t.first);
|
|
1055
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.trigger = _t.first);
|
|
1056
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scrollbar = _t.first);
|
|
1057
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.multiContainer = _t.first);
|
|
1058
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.optionComp = _t);
|
|
1059
|
+
}
|
|
1060
|
+
}, hostVars: 3, hostBindings: function NgJvxMultiselectComponent_HostBindings(rf, ctx) {
|
|
1061
|
+
if (rf & 2) {
|
|
1062
|
+
i0.ɵɵhostProperty("id", ctx.id);
|
|
1063
|
+
i0.ɵɵclassProp("floating", ctx.shouldLabelFloat);
|
|
1064
|
+
}
|
|
1065
|
+
}, inputs: { options: "options", multi: "multi", url: "url", requestType: "requestType", itemValue: "itemValue", itemText: "itemText", ignorePagination: "ignorePagination", clearable: "clearable", closeOnClick: "closeOnClick", hasErrors: "hasErrors", searchMode: "searchMode", searchInput: "searchInput", searchLabel: "searchLabel", listProp: "listProp", totalRowsProp: "totalRowsProp", panelClass: "panelClass", searchProp: "searchProp", closeButton: "closeButton", mapper: "mapper", multiMapper: "multiMapper", searchMapper: "searchMapper", groupBy: "groupBy", value: "value", requestHeaders: "requestHeaders", required: "required", disabled: "disabled", pageSize: "pageSize" }, outputs: { valueChange: "valueChange", jvxMultiselectOpen: "jvxMultiselectOpen", jvxMultiselectOpened: "jvxMultiselectOpened", jvxMultiselectClose: "jvxMultiselectClose", jvxMultiselectClosed: "jvxMultiselectClosed", scrollEnd: "scrollEnd" }, features: [i0.ɵɵProvidersFeature([
|
|
1066
|
+
{
|
|
1067
|
+
provide: MatLegacyFormFieldControl,
|
|
1068
|
+
useExisting: forwardRef(() => NgJvxMultiselectComponent),
|
|
1069
|
+
multi: true,
|
|
1070
|
+
}
|
|
1071
|
+
]), i0.ɵɵNgOnChangesFeature], ngContentSelectors: _c16, decls: 35, vars: 35, consts: [[1, "ng-jvx-multiselect", 3, "ngClass"], ["jvxMultiselect", ""], [3, "matMenuTriggerFor", "onMenuOpen", "menuOpened", "onMenuClose", "menuClosed"], ["trigger", "matMenuTrigger"], [3, "formGroup", "yPosition"], ["menuRef", "matMenu"], ["class", "closeMenuButton", 4, "ngIf"], [1, "menu-list-container", 3, "ngStyle"], ["menuLIstContainer", ""], ["class", "search-input-container", 3, "click", 4, "ngIf"], [3, "ngStyle"], ["smoothScroll", "", 2, "width", "100%", 3, "visibility", "appearance", "sensorDisabled", "autoHeightDisabled"], ["scrollbar", ""], [3, "click"], ["selectionContainer", ""], ["formControlName", "selectionValue", 3, "multiple", "ngStyle", "selectionChange", 4, "ngIf"], [1, "menu-footer"], [3, "ngClass", "click"], ["valueContainer", ""], ["class", "ng-jvx-multiselect__placeholder", 4, "ngIf"], ["class", "ng-jvx-multiselect-value multi-value-container", 4, "ngIf"], ["class", "ng-jvx-multiselect-value single-value-container", 4, "ngIf"], ["class", "ng-jvx-multiselect__remove-button", 3, "click", 4, "ngIf"], [1, "ng-jvx-multiselect-arrow"], [4, "ngIf"], ["class", "lds-ring", 4, "ngIf"], ["defaultTemplate", ""], ["defaultSelectionTemplate", ""], ["defaultMultiSelectionTemplate", ""], ["defaultGroupHeaderTemplate", ""], [1, "closeMenuButton"], [1, "search-input-container", 3, "click"], ["type", "text", 3, "placeholder", "ngModel", "ngModelOptions", "ngJvxFocus", "input"], ["formControlName", "selectionValue", 3, "multiple", "ngStyle", "selectionChange"], ["selection", ""], [4, "ngFor", "ngForOf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "value", 4, "ngFor", "ngForOf"], [3, "value"], [2, "padding-inline", "10px"], [1, "ng-jvx-multiselect__placeholder"], [1, "ng-jvx-multiselect-value", "multi-value-container"], ["multiContainer", ""], [1, "ng-jvx-multiselect-value", "single-value-container"], ["style", "width: 100%;", 4, "ngFor", "ngForOf"], [2, "width", "100%"], [1, "ng-jvx-multiselect__remove-button", 3, "click"], [2, "font-size", "18px", "display", "flex", "align-items", "center", "justify-content", "center"], [1, "lds-ring"], [2, "max-width", "100%", "white-space", "nowrap", "overflow", "hidden", "text-overflow", "ellipsis"], [3, "disabled"], ["chipList", ""], ["selected", "", "class", "ng-jvx-multiselect-chip", 3, "color", "selectable", "removable", "removed", 4, "ngFor", "ngForOf"], ["selected", "", 1, "ng-jvx-multiselect-chip", 3, "color", "selectable", "removable", "removed"], [1, "chip-content", 3, "ngStyle"], ["matChipRemove", ""], [2, "padding-inline", "15px"]], template: function NgJvxMultiselectComponent_Template(rf, ctx) {
|
|
1072
|
+
if (rf & 1) {
|
|
1073
|
+
i0.ɵɵprojectionDef(_c10);
|
|
1074
|
+
i0.ɵɵelementStart(0, "div", 0, 1)(2, "div", 2, 3);
|
|
1075
|
+
i0.ɵɵlistener("onMenuOpen", function NgJvxMultiselectComponent_Template_div_onMenuOpen_2_listener() { return ctx.onMenuOpen(); })("menuOpened", function NgJvxMultiselectComponent_Template_div_menuOpened_2_listener() { return ctx.onMenuOpened(); })("onMenuClose", function NgJvxMultiselectComponent_Template_div_onMenuClose_2_listener() { return ctx.onMenuClose(); })("menuClosed", function NgJvxMultiselectComponent_Template_div_menuClosed_2_listener() { return ctx.onMenuClosed(); });
|
|
1076
|
+
i0.ɵɵelementStart(4, "mat-menu", 4, 5);
|
|
1077
|
+
i0.ɵɵtemplate(6, NgJvxMultiselectComponent_div_6_Template, 3, 0, "div", 6);
|
|
1078
|
+
i0.ɵɵelementStart(7, "div", 7, 8);
|
|
1079
|
+
i0.ɵɵtemplate(9, NgJvxMultiselectComponent_div_9_Template, 2, 5, "div", 9);
|
|
1080
|
+
i0.ɵɵelementStart(10, "div", 10)(11, "ng-scrollbar", 11, 12)(13, "div", 13, 14);
|
|
1081
|
+
i0.ɵɵlistener("click", function NgJvxMultiselectComponent_Template_div_click_13_listener($event) { return ctx.onCLickOnMenu($event); });
|
|
1082
|
+
i0.ɵɵtemplate(15, NgJvxMultiselectComponent_mat_selection_list_15_Template, 5, 6, "mat-selection-list", 15);
|
|
1083
|
+
i0.ɵɵelementEnd()()()();
|
|
1084
|
+
i0.ɵɵelementStart(16, "div", 16);
|
|
1085
|
+
i0.ɵɵprojection(17);
|
|
1086
|
+
i0.ɵɵelementEnd()()();
|
|
1087
|
+
i0.ɵɵelementStart(18, "div", 17, 18);
|
|
1088
|
+
i0.ɵɵlistener("click", function NgJvxMultiselectComponent_Template_div_click_18_listener($event) { return ctx.clickOnMenuTrigger($event); });
|
|
1089
|
+
i0.ɵɵtemplate(20, NgJvxMultiselectComponent_div_20_Template, 2, 0, "div", 19);
|
|
1090
|
+
i0.ɵɵtemplate(21, NgJvxMultiselectComponent_div_21_Template, 3, 4, "div", 20);
|
|
1091
|
+
i0.ɵɵtemplate(22, NgJvxMultiselectComponent_div_22_Template, 2, 1, "div", 21);
|
|
1092
|
+
i0.ɵɵtemplate(23, NgJvxMultiselectComponent_div_23_Template, 3, 0, "div", 22);
|
|
1093
|
+
i0.ɵɵelementStart(24, "div", 23);
|
|
1094
|
+
i0.ɵɵtemplate(25, NgJvxMultiselectComponent_mat_icon_25_Template, 2, 0, "mat-icon", 24);
|
|
1095
|
+
i0.ɵɵtemplate(26, NgJvxMultiselectComponent_div_26_Template, 5, 0, "div", 25);
|
|
1096
|
+
i0.ɵɵelementEnd()()();
|
|
1097
|
+
i0.ɵɵtemplate(27, NgJvxMultiselectComponent_ng_template_27_Template, 2, 1, "ng-template", null, 26, i0.ɵɵtemplateRefExtractor);
|
|
1098
|
+
i0.ɵɵtemplate(29, NgJvxMultiselectComponent_ng_template_29_Template, 1, 1, "ng-template", null, 27, i0.ɵɵtemplateRefExtractor);
|
|
1099
|
+
i0.ɵɵtemplate(31, NgJvxMultiselectComponent_ng_template_31_Template, 3, 2, "ng-template", null, 28, i0.ɵɵtemplateRefExtractor);
|
|
1100
|
+
i0.ɵɵtemplate(33, NgJvxMultiselectComponent_ng_template_33_Template, 3, 1, "ng-template", null, 29, i0.ɵɵtemplateRefExtractor);
|
|
1101
|
+
}
|
|
1102
|
+
if (rf & 2) {
|
|
1103
|
+
const _r2 = i0.ɵɵreference(5);
|
|
1104
|
+
const _r7 = i0.ɵɵreference(14);
|
|
1105
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(22, _c11, ctx.disabled, ctx.hasErrors));
|
|
1106
|
+
i0.ɵɵadvance(2);
|
|
1107
|
+
i0.ɵɵproperty("matMenuTriggerFor", _r2);
|
|
1108
|
+
i0.ɵɵadvance(2);
|
|
1109
|
+
i0.ɵɵclassMap(i0.ɵɵpureFunction1(25, _c12, ctx.panelClass).join(" "));
|
|
1110
|
+
i0.ɵɵproperty("formGroup", ctx.form)("yPosition", ctx.yPosition);
|
|
1111
|
+
i0.ɵɵadvance(2);
|
|
1112
|
+
i0.ɵɵproperty("ngIf", ctx.closeButton);
|
|
1113
|
+
i0.ɵɵadvance(1);
|
|
1114
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(27, _c13, ctx.listContainerSize.width, ctx.listContainerSize.height, ctx.listContainerSize.minHeight));
|
|
1115
|
+
i0.ɵɵadvance(2);
|
|
1116
|
+
i0.ɵɵproperty("ngIf", !!ctx.searchInput);
|
|
1117
|
+
i0.ɵɵadvance(1);
|
|
1118
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(31, _c14, ctx.searchInput && _r7.clientHeight > 220 || _r7.clientHeight > 260 ? 260 - (ctx.searchInput ? 40 : 0) + "px" : "auto"));
|
|
1119
|
+
i0.ɵɵadvance(1);
|
|
1120
|
+
i0.ɵɵproperty("visibility", "hover")("appearance", "compact")("sensorDisabled", ctx.isLoading)("autoHeightDisabled", false);
|
|
1121
|
+
i0.ɵɵadvance(4);
|
|
1122
|
+
i0.ɵɵproperty("ngIf", ctx.showList);
|
|
1123
|
+
i0.ɵɵadvance(3);
|
|
1124
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(33, _c15, ctx.isOpen));
|
|
1125
|
+
i0.ɵɵadvance(2);
|
|
1126
|
+
i0.ɵɵproperty("ngIf", ctx.value.length === 0);
|
|
1127
|
+
i0.ɵɵadvance(1);
|
|
1128
|
+
i0.ɵɵproperty("ngIf", ctx.multi);
|
|
1129
|
+
i0.ɵɵadvance(1);
|
|
1130
|
+
i0.ɵɵproperty("ngIf", !ctx.multi);
|
|
1131
|
+
i0.ɵɵadvance(1);
|
|
1132
|
+
i0.ɵɵproperty("ngIf", ctx.clearable && ctx.value.length > 0);
|
|
1133
|
+
i0.ɵɵadvance(2);
|
|
1134
|
+
i0.ɵɵproperty("ngIf", !ctx.isLoading);
|
|
1135
|
+
i0.ɵɵadvance(1);
|
|
1136
|
+
i0.ɵɵproperty("ngIf", ctx.isLoading);
|
|
1137
|
+
}
|
|
1138
|
+
}, dependencies: [i3.MatLegacyMenu, i3.MatLegacyMenuTrigger, i4.NgClass, i4.NgForOf, i4.NgIf, i4.NgTemplateOutlet, i4.NgStyle, i5.MatIcon, i2.MatLegacySelectionList, i7.MatLegacyChipList, i7.MatLegacyChip, i7.MatLegacyChipRemove, i1$1.DefaultValueAccessor, i1$1.NgControlStatus, i1$1.NgControlStatusGroup, i1$1.FormGroupDirective, i1$1.FormControlName, i8.NgScrollbar, i9.SmoothScroll, i1$1.NgModel, NgJvxOptionComponent, NgJvxFocusDirective], encapsulation: 2, changeDetection: 0 });
|
|
1139
|
+
(function () {
|
|
1140
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxMultiselectComponent, [{
|
|
729
1141
|
type: Component,
|
|
730
|
-
args: [{ selector: 'ng-jvx-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
1142
|
+
args: [{ selector: 'ng-jvx-multiselect', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, providers: [
|
|
731
1143
|
{
|
|
732
|
-
provide:
|
|
1144
|
+
provide: MatLegacyFormFieldControl,
|
|
733
1145
|
useExisting: forwardRef(() => NgJvxMultiselectComponent),
|
|
734
1146
|
multi: true,
|
|
735
1147
|
}
|
|
736
1148
|
], template: "<div class=\"ng-jvx-multiselect\" [ngClass]=\"{'disabled': disabled, 'has-errors': hasErrors}\" #jvxMultiselect>\r\n <!-- START MENU -->\r\n <div [matMenuTriggerFor]=\"menuRef\" (onMenuOpen)=\"onMenuOpen()\" (menuOpened)=\"onMenuOpened()\"\r\n (onMenuClose)=\"onMenuClose()\" (menuClosed)=\"onMenuClosed()\"\r\n #trigger=\"matMenuTrigger\">\r\n <mat-menu #menuRef=\"matMenu\" [class]=\"['jvx-multiselect-panel', panelClass].join(' ')\" [formGroup]=\"form\"\r\n [yPosition]=\"yPosition\">\r\n <div *ngIf=\"closeButton\" class=\"closeMenuButton\"><mat-icon >close</mat-icon></div>\r\n <div class=\"menu-list-container\"\r\n #menuLIstContainer\r\n [ngStyle]=\"{'overflow-y': 'hidden', 'width': listContainerSize.width, 'max-height': '260px', 'height': listContainerSize.height, 'min-height': listContainerSize.minHeight}\">\r\n\r\n <div class=\"search-input-container\" *ngIf=\"!!searchInput\" (click)=\"onSearchInputClick($event)\">\r\n <input type=\"text\" [placeholder]=\"searchLabel\" [ngModel]=\"searchValue\" [ngModelOptions]=\"{standalone: true}\"\r\n [ngJvxFocus]=\"isOpen\"\r\n (input)=\"onSearchValueChange($event)\"/>\r\n </div>\r\n <div [ngStyle]=\"{height: searchInput && selectionContainer.clientHeight > 220 || selectionContainer.clientHeight > 260? 260 - (searchInput? 40 : 0) + 'px': 'auto'}\">\r\n <ng-scrollbar style=\"width: 100%\"\r\n smoothScroll\r\n [visibility]=\"'hover'\"\r\n [appearance]=\"'compact'\"\r\n [sensorDisabled]=\"isLoading\"\r\n [autoHeightDisabled]=\"false\" #scrollbar>\r\n <div #selectionContainer (click)=\"onCLickOnMenu($event)\">\r\n <mat-selection-list #selection [multiple]=\"multi\"\r\n *ngIf=\"showList\"\r\n [ngStyle]=\"{'padding': 0, 'width': listContainerSize.width, 'min-width.px': 112}\"\r\n (selectionChange)=\"onChange($event)\"\r\n formControlName=\"selectionValue\">\r\n <ng-content></ng-content>\r\n <ng-container *ngIf=\"!!groupBy\">\r\n <ng-container *ngFor=\"let opt of orderedOptions\">\r\n <ng-container [ngTemplateOutlet]=\"groupHeaderTemplate? groupHeaderTemplate.template: defaultGroupHeaderTemplate\" [ngTemplateOutletContext]=\"{$implicit: opt}\"></ng-container>\r\n\r\n <ng-jvx-option *ngFor=\"let option of opt.options\" [value]=\"option[itemValue]\">\r\n <!-- <ng-container [ngTemplateOutlet]=\"optionsTemplate\" [ngTemplateOutletContext]=\"{$implicit: option}\"></ng-container>-->\r\n <span style=\"padding-inline: 10px\">\r\n <ng-container [ngTemplateOutlet]=\"optionsTemplate? optionsTemplate.template : defaultTemplate\"\r\n [ngTemplateOutletContext]=\"{$implicit: option}\"></ng-container>\r\n </span>\r\n </ng-jvx-option>\r\n </ng-container>\r\n </ng-container>\r\n <ng-container *ngIf=\"!groupBy || groupBy.length === 0\">\r\n <ng-jvx-option *ngFor=\"let option of selectableOptions\" [value]=\"option[itemValue]\">\r\n <!-- <ng-container [ngTemplateOutlet]=\"optionsTemplate\" [ngTemplateOutletContext]=\"{$implicit: option}\"></ng-container>-->\r\n <ng-container [ngTemplateOutlet]=\"optionsTemplate? optionsTemplate.template : defaultTemplate\"\r\n [ngTemplateOutletContext]=\"{$implicit: option}\"></ng-container>\r\n </ng-jvx-option>\r\n </ng-container>\r\n </mat-selection-list>\r\n </div>\r\n </ng-scrollbar>\r\n </div>\r\n\r\n </div>\r\n <div class=\"menu-footer\">\r\n <ng-content select=\"[ng-jvx-footer]\"></ng-content>\r\n </div>\r\n\r\n </mat-menu>\r\n </div>\r\n <!-- END MENU -->\r\n <!-- START INPUT -->\r\n <div [ngClass]=\"{'ng-jvx-multiselect-value-container': true, 'is-open': isOpen}\"\r\n (click)=\"clickOnMenuTrigger($event)\"\r\n #valueContainer>\r\n\r\n <div class=\"ng-jvx-multiselect__placeholder\" *ngIf=\"value.length === 0\">\r\n <ng-content select=\"[placeholder]\"></ng-content>\r\n </div>\r\n\r\n <div class=\"ng-jvx-multiselect-value multi-value-container\" *ngIf=\"multi\" #multiContainer>\r\n\r\n <ng-container [ngTemplateOutlet]=\"selectionTemplate? selectionTemplate.template : defaultMultiSelectionTemplate\"\r\n [ngTemplateOutletContext]=\"{$implicit: value}\"></ng-container>\r\n\r\n\r\n </div>\r\n\r\n <div class=\"ng-jvx-multiselect-value single-value-container\" *ngIf=\"!multi\">\r\n <div *ngFor=\"let val of value\" style=\"width: 100%;\">\r\n <ng-container [ngTemplateOutlet]=\"selectionTemplate? selectionTemplate.template : defaultSelectionTemplate\"\r\n [ngTemplateOutletContext]=\"{$implicit: val}\"></ng-container></div>\r\n </div>\r\n <div class=\"ng-jvx-multiselect__remove-button\" *ngIf=\"clearable && value.length > 0\" (click)=\"clear($event)\">\r\n <mat-icon style=\"font-size: 18px;\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\">clear\r\n </mat-icon>\r\n </div>\r\n <div class=\"ng-jvx-multiselect-arrow\">\r\n <mat-icon *ngIf=\"!isLoading\">expand_more</mat-icon>\r\n <div *ngIf=\"isLoading\" class=\"lds-ring\">\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n <div></div>\r\n </div>\r\n </div>\r\n </div>\r\n <!-- END INPUT -->\r\n</div>\r\n<ng-template #defaultTemplate let-option>\r\n <div style=\"max-width: 100%;\r\n white-space: nowrap;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\">{{option[itemText]}}\r\n </div>\r\n</ng-template>\r\n\r\n<ng-template #defaultSelectionTemplate let-value>\r\n {{value[itemText]}}\r\n</ng-template>\r\n\r\n<ng-template #defaultMultiSelectionTemplate let-value>\r\n <mat-chip-list #chipList [disabled]=\"this.disabled\">\r\n <mat-chip [color]=\"'primary'\" selected *ngFor=\"let val of value\" [selectable]=\"false\"\r\n class=\"ng-jvx-multiselect-chip\"\r\n [removable]=\"true\" (removed)=\"deselect(val)\">\r\n <span class=\"chip-content\"\r\n [ngStyle]=\"{'max-width': multiContainerWidth - 50 +'px'}\">{{val[itemText]}}</span>\r\n\r\n <mat-icon matChipRemove>cancel</mat-icon>\r\n </mat-chip>\r\n </mat-chip-list>\r\n</ng-template>\r\n<ng-template #defaultGroupHeaderTemplate let-opt>\r\n <div style=\"padding-inline: 15px\"><strong>{{opt.group}}</strong></div>\r\n</ng-template>\r\n" }]
|
|
737
|
-
}],
|
|
1149
|
+
}], function () {
|
|
738
1150
|
return [{ type: i1$1.UntypedFormBuilder }, { type: NgJvxMultiselectService }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$1.NgControl, decorators: [{
|
|
739
1151
|
type: Optional
|
|
740
1152
|
}, {
|
|
741
1153
|
type: Self
|
|
742
1154
|
}] }, { type: i1$1.UntypedFormBuilder }];
|
|
743
|
-
},
|
|
1155
|
+
}, { id: [{
|
|
744
1156
|
type: HostBinding
|
|
745
1157
|
}], shouldLabelFloat: [{
|
|
746
1158
|
type: HostBinding,
|
|
@@ -841,7 +1253,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
841
1253
|
type: Output
|
|
842
1254
|
}], scrollEnd: [{
|
|
843
1255
|
type: Output
|
|
844
|
-
}] }
|
|
1256
|
+
}] });
|
|
1257
|
+
})();
|
|
845
1258
|
|
|
846
1259
|
/**
|
|
847
1260
|
* @license
|
|
@@ -850,78 +1263,83 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
850
1263
|
* Use of this source code is governed by an MIT-style license that can be
|
|
851
1264
|
* found in the LICENSE file at https://angular.io/license
|
|
852
1265
|
*/
|
|
1266
|
+
function NgJvxPanelComponent_ng_template_0_Template(rf, ctx) {
|
|
1267
|
+
if (rf & 1) {
|
|
1268
|
+
const _r2 = i0.ɵɵgetCurrentView();
|
|
1269
|
+
i0.ɵɵelementStart(0, "div", 0);
|
|
1270
|
+
i0.ɵɵlistener("keydown", function NgJvxPanelComponent_ng_template_0_Template_div_keydown_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r1 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r1._handleKeydown($event)); })("click", function NgJvxPanelComponent_ng_template_0_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r2); const ctx_r3 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r3.closed.emit("click")); })("@transformMenu.start", function NgJvxPanelComponent_ng_template_0_Template_div_animation_transformMenu_start_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r4 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r4._onAnimationStart($event)); })("@transformMenu.done", function NgJvxPanelComponent_ng_template_0_Template_div_animation_transformMenu_done_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r5 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r5._onAnimationDone($event)); });
|
|
1271
|
+
i0.ɵɵelementStart(1, "div", 1);
|
|
1272
|
+
i0.ɵɵprojection(2);
|
|
1273
|
+
i0.ɵɵelementEnd()();
|
|
1274
|
+
}
|
|
1275
|
+
if (rf & 2) {
|
|
1276
|
+
const ctx_r0 = i0.ɵɵnextContext();
|
|
1277
|
+
i0.ɵɵproperty("id", ctx_r0.panelId)("ngClass", ctx_r0._classList)("@transformMenu", ctx_r0._panelAnimationState);
|
|
1278
|
+
i0.ɵɵattribute("aria-label", ctx_r0.ariaLabel || null)("aria-labelledby", ctx_r0.ariaLabelledby || null)("aria-describedby", ctx_r0.ariaDescribedby || null);
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
const _c0 = ["*"];
|
|
853
1282
|
/** @docs-public MatMenu */
|
|
854
1283
|
class NgJvxPanelComponent extends _MatMenuBase {
|
|
855
1284
|
constructor(elementRef, ngZone, defaultOptions) {
|
|
856
1285
|
super(elementRef, ngZone, defaultOptions);
|
|
857
1286
|
}
|
|
858
1287
|
}
|
|
859
|
-
NgJvxPanelComponent.ɵfac =
|
|
860
|
-
NgJvxPanelComponent.ɵcmp = i0.ɵɵ
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
i0.ɵɵ
|
|
1288
|
+
NgJvxPanelComponent.ɵfac = function NgJvxPanelComponent_Factory(t) { return new (t || NgJvxPanelComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.NgZone), i0.ɵɵdirectiveInject(MAT_LEGACY_MENU_DEFAULT_OPTIONS)); };
|
|
1289
|
+
NgJvxPanelComponent.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: NgJvxPanelComponent, selectors: [["ngJvxPanel"]], hostVars: 3, hostBindings: function NgJvxPanelComponent_HostBindings(rf, ctx) {
|
|
1290
|
+
if (rf & 2) {
|
|
1291
|
+
i0.ɵɵattribute("aria-label", null)("aria-labelledby", null)("aria-describedby", null);
|
|
1292
|
+
}
|
|
1293
|
+
}, exportAs: ["ngJvxPanel"], features: [i0.ɵɵProvidersFeature([
|
|
1294
|
+
{ provide: MAT_LEGACY_MENU_PANEL, useExisting: MatMenu },
|
|
1295
|
+
]), i0.ɵɵInheritDefinitionFeature], ngContentSelectors: _c0, decls: 1, vars: 0, consts: [["tabindex", "-1", "role", "menu", 1, "mat-menu-panel", 3, "id", "ngClass", "keydown", "click"], [1, "mat-menu-content"]], template: function NgJvxPanelComponent_Template(rf, ctx) {
|
|
1296
|
+
if (rf & 1) {
|
|
1297
|
+
i0.ɵɵprojectionDef();
|
|
1298
|
+
i0.ɵɵtemplate(0, NgJvxPanelComponent_ng_template_0_Template, 3, 6, "ng-template");
|
|
1299
|
+
}
|
|
1300
|
+
}, dependencies: [i4.NgClass], encapsulation: 2, data: { animation: [
|
|
1301
|
+
matLegacyMenuAnimations.transformMenu,
|
|
1302
|
+
matLegacyMenuAnimations.fadeInItems
|
|
1303
|
+
] }, changeDetection: 0 });
|
|
1304
|
+
(function () {
|
|
1305
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxPanelComponent, [{
|
|
867
1306
|
type: Component,
|
|
868
1307
|
args: [{ selector: 'ngJvxPanel', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, exportAs: 'ngJvxPanel', host: {
|
|
869
1308
|
'[attr.aria-label]': 'null',
|
|
870
1309
|
'[attr.aria-labelledby]': 'null',
|
|
871
1310
|
'[attr.aria-describedby]': 'null',
|
|
872
1311
|
}, animations: [
|
|
873
|
-
|
|
874
|
-
|
|
1312
|
+
matLegacyMenuAnimations.transformMenu,
|
|
1313
|
+
matLegacyMenuAnimations.fadeInItems
|
|
875
1314
|
], providers: [
|
|
876
|
-
{ provide:
|
|
1315
|
+
{ provide: MAT_LEGACY_MENU_PANEL, useExisting: MatMenu },
|
|
877
1316
|
], template: "<ng-template>\r\n <div\r\n class=\"mat-menu-panel\"\r\n [id]=\"panelId\"\r\n [ngClass]=\"_classList\"\r\n (keydown)=\"_handleKeydown($event)\"\r\n (click)=\"closed.emit('click')\"\r\n [@transformMenu]=\"_panelAnimationState\"\r\n (@transformMenu.start)=\"_onAnimationStart($event)\"\r\n (@transformMenu.done)=\"_onAnimationDone($event)\"\r\n tabindex=\"-1\"\r\n role=\"menu\"\r\n [attr.aria-label]=\"ariaLabel || null\"\r\n [attr.aria-labelledby]=\"ariaLabelledby || null\"\r\n [attr.aria-describedby]=\"ariaDescribedby || null\">\r\n <div class=\"mat-menu-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n </div>\r\n</ng-template>\r\n" }]
|
|
878
|
-
}],
|
|
1317
|
+
}], function () {
|
|
879
1318
|
return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: undefined, decorators: [{
|
|
880
1319
|
type: Inject,
|
|
881
|
-
args: [
|
|
1320
|
+
args: [MAT_LEGACY_MENU_DEFAULT_OPTIONS]
|
|
882
1321
|
}] }];
|
|
883
|
-
}
|
|
1322
|
+
}, null);
|
|
1323
|
+
})();
|
|
884
1324
|
|
|
885
1325
|
class NgJvxMultiselectModule {
|
|
886
1326
|
}
|
|
887
|
-
NgJvxMultiselectModule.ɵfac =
|
|
888
|
-
NgJvxMultiselectModule.ɵmod = i0.ɵɵ
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
NgJvxDisabledOptionDirective,
|
|
894
|
-
NgJvxGroupHeaderDirective,
|
|
895
|
-
NgJvxFocusDirective], imports: [MatButtonModule,
|
|
896
|
-
MatOptionModule,
|
|
897
|
-
MatSelectModule,
|
|
898
|
-
MatMenuModule,
|
|
899
|
-
CommonModule,
|
|
900
|
-
MatIconModule,
|
|
901
|
-
MatListModule,
|
|
902
|
-
MatChipsModule,
|
|
903
|
-
ReactiveFormsModule,
|
|
904
|
-
NgScrollbarModule,
|
|
905
|
-
SmoothScrollModule,
|
|
906
|
-
FormsModule], exports: [NgJvxMultiselectComponent,
|
|
907
|
-
NgJvxOptionComponent,
|
|
908
|
-
NgJvxOptionsTemplateDirective,
|
|
909
|
-
NgJvxSelectionTemplateDirective,
|
|
910
|
-
NgJvxDisabledOptionDirective,
|
|
911
|
-
NgJvxGroupHeaderDirective] });
|
|
912
|
-
NgJvxMultiselectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.2", ngImport: i0, type: NgJvxMultiselectModule, imports: [MatButtonModule,
|
|
913
|
-
MatOptionModule,
|
|
914
|
-
MatSelectModule,
|
|
915
|
-
MatMenuModule,
|
|
1327
|
+
NgJvxMultiselectModule.ɵfac = function NgJvxMultiselectModule_Factory(t) { return new (t || NgJvxMultiselectModule)(); };
|
|
1328
|
+
NgJvxMultiselectModule.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: NgJvxMultiselectModule });
|
|
1329
|
+
NgJvxMultiselectModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [MatLegacyButtonModule,
|
|
1330
|
+
MatLegacyOptionModule,
|
|
1331
|
+
MatLegacySelectModule,
|
|
1332
|
+
MatLegacyMenuModule,
|
|
916
1333
|
CommonModule,
|
|
917
1334
|
MatIconModule,
|
|
918
|
-
|
|
919
|
-
|
|
1335
|
+
MatLegacyListModule,
|
|
1336
|
+
MatLegacyChipsModule,
|
|
920
1337
|
ReactiveFormsModule,
|
|
921
1338
|
NgScrollbarModule,
|
|
922
1339
|
SmoothScrollModule,
|
|
923
1340
|
FormsModule] });
|
|
924
|
-
|
|
1341
|
+
(function () {
|
|
1342
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NgJvxMultiselectModule, [{
|
|
925
1343
|
type: NgModule,
|
|
926
1344
|
args: [{
|
|
927
1345
|
declarations: [
|
|
@@ -935,14 +1353,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
935
1353
|
NgJvxFocusDirective
|
|
936
1354
|
],
|
|
937
1355
|
imports: [
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
1356
|
+
MatLegacyButtonModule,
|
|
1357
|
+
MatLegacyOptionModule,
|
|
1358
|
+
MatLegacySelectModule,
|
|
1359
|
+
MatLegacyMenuModule,
|
|
942
1360
|
CommonModule,
|
|
943
1361
|
MatIconModule,
|
|
944
|
-
|
|
945
|
-
|
|
1362
|
+
MatLegacyListModule,
|
|
1363
|
+
MatLegacyChipsModule,
|
|
946
1364
|
ReactiveFormsModule,
|
|
947
1365
|
NgScrollbarModule,
|
|
948
1366
|
SmoothScrollModule,
|
|
@@ -955,7 +1373,34 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.2", ngImpor
|
|
|
955
1373
|
NgJvxDisabledOptionDirective,
|
|
956
1374
|
NgJvxGroupHeaderDirective]
|
|
957
1375
|
}]
|
|
958
|
-
}]
|
|
1376
|
+
}], null, null);
|
|
1377
|
+
})();
|
|
1378
|
+
(function () {
|
|
1379
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(NgJvxMultiselectModule, { declarations: [NgJvxMultiselectComponent,
|
|
1380
|
+
NgJvxOptionComponent,
|
|
1381
|
+
NgJvxOptionsTemplateDirective,
|
|
1382
|
+
NgJvxPanelComponent,
|
|
1383
|
+
NgJvxSelectionTemplateDirective,
|
|
1384
|
+
NgJvxDisabledOptionDirective,
|
|
1385
|
+
NgJvxGroupHeaderDirective,
|
|
1386
|
+
NgJvxFocusDirective], imports: [MatLegacyButtonModule,
|
|
1387
|
+
MatLegacyOptionModule,
|
|
1388
|
+
MatLegacySelectModule,
|
|
1389
|
+
MatLegacyMenuModule,
|
|
1390
|
+
CommonModule,
|
|
1391
|
+
MatIconModule,
|
|
1392
|
+
MatLegacyListModule,
|
|
1393
|
+
MatLegacyChipsModule,
|
|
1394
|
+
ReactiveFormsModule,
|
|
1395
|
+
NgScrollbarModule,
|
|
1396
|
+
SmoothScrollModule,
|
|
1397
|
+
FormsModule], exports: [NgJvxMultiselectComponent,
|
|
1398
|
+
NgJvxOptionComponent,
|
|
1399
|
+
NgJvxOptionsTemplateDirective,
|
|
1400
|
+
NgJvxSelectionTemplateDirective,
|
|
1401
|
+
NgJvxDisabledOptionDirective,
|
|
1402
|
+
NgJvxGroupHeaderDirective] });
|
|
1403
|
+
})();
|
|
959
1404
|
|
|
960
1405
|
/*
|
|
961
1406
|
* Public API Surface of ng-jvx-multiselect
|