@syncfusion/ej2-angular-dropdowns 32.1.24 → 32.1.25-ngcc
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/@syncfusion/ej2-angular-dropdowns.es5.js +1487 -0
- package/@syncfusion/ej2-angular-dropdowns.es5.js.map +1 -0
- package/@syncfusion/ej2-angular-dropdowns.js +1402 -0
- package/@syncfusion/ej2-angular-dropdowns.js.map +1 -0
- package/LICENSE +10 -0
- package/README.md +3 -10
- package/dist/ej2-angular-dropdowns.umd.js +1557 -0
- package/dist/ej2-angular-dropdowns.umd.js.map +1 -0
- package/dist/ej2-angular-dropdowns.umd.min.js +11 -0
- package/dist/ej2-angular-dropdowns.umd.min.js.map +1 -0
- package/ej2-angular-dropdowns.d.ts +11 -0
- package/ej2-angular-dropdowns.metadata.json +1 -0
- package/package.json +47 -29
- package/public_api.d.ts +1 -1
- package/schematics/utils/lib-details.js +2 -2
- package/schematics/utils/lib-details.ts +2 -2
- package/src/auto-complete/autocomplete-all.module.d.ts +5 -11
- package/src/auto-complete/autocomplete.component.d.ts +90 -93
- package/src/auto-complete/autocomplete.module.d.ts +5 -11
- package/src/combo-box/combobox-all.module.d.ts +5 -11
- package/src/combo-box/combobox.component.d.ts +90 -93
- package/src/combo-box/combobox.module.d.ts +5 -11
- package/src/drop-down-list/dropdownlist-all.module.d.ts +7 -13
- package/src/drop-down-list/dropdownlist.component.d.ts +100 -103
- package/src/drop-down-list/dropdownlist.module.d.ts +5 -11
- package/src/drop-down-tree/dropdowntree-all.module.d.ts +5 -11
- package/src/drop-down-tree/dropdowntree.component.d.ts +92 -95
- package/src/drop-down-tree/dropdowntree.module.d.ts +5 -11
- package/src/index.d.ts +22 -22
- package/src/list-box/listbox-all.module.d.ts +5 -11
- package/src/list-box/listbox.component.d.ts +63 -66
- package/src/list-box/listbox.module.d.ts +5 -11
- package/src/mention/mention-all.module.d.ts +5 -11
- package/src/mention/mention.component.d.ts +56 -59
- package/src/mention/mention.module.d.ts +5 -11
- package/src/multi-select/multiselect-all.module.d.ts +7 -13
- package/src/multi-select/multiselect.component.d.ts +106 -109
- package/src/multi-select/multiselect.module.d.ts +5 -11
- package/styles/auto-complete/bds.scss +1 -1
- package/styles/auto-complete/bootstrap-dark.scss +1 -1
- package/styles/auto-complete/bootstrap.scss +1 -1
- package/styles/auto-complete/bootstrap4.scss +1 -1
- package/styles/auto-complete/bootstrap5-dark.scss +1 -1
- package/styles/auto-complete/bootstrap5.3.scss +1 -1
- package/styles/auto-complete/bootstrap5.scss +1 -1
- package/styles/auto-complete/fabric-dark.scss +1 -1
- package/styles/auto-complete/fabric.scss +1 -1
- package/styles/auto-complete/fluent-dark.scss +1 -1
- package/styles/auto-complete/fluent.scss +1 -1
- package/styles/auto-complete/fluent2.scss +1 -1
- package/styles/auto-complete/highcontrast-light.scss +1 -1
- package/styles/auto-complete/highcontrast.scss +1 -1
- package/styles/auto-complete/material-dark.scss +1 -1
- package/styles/auto-complete/material.scss +1 -1
- package/styles/auto-complete/material3-dark.scss +2 -1
- package/styles/auto-complete/material3.scss +2 -1
- package/styles/auto-complete/tailwind-dark.scss +1 -1
- package/styles/auto-complete/tailwind.scss +1 -1
- package/styles/auto-complete/tailwind3.scss +1 -1
- package/styles/bds-lite.scss +1 -1
- package/styles/bds.scss +8 -8
- package/styles/bootstrap-dark-lite.scss +1 -1
- package/styles/bootstrap-dark.scss +8 -8
- package/styles/bootstrap-lite.scss +1 -1
- package/styles/bootstrap.scss +8 -8
- package/styles/bootstrap4-lite.scss +1 -1
- package/styles/bootstrap4.scss +8 -8
- package/styles/bootstrap5-dark-lite.scss +1 -1
- package/styles/bootstrap5-dark.scss +8 -8
- package/styles/bootstrap5-lite.scss +1 -1
- package/styles/bootstrap5.3-lite.scss +1 -1
- package/styles/bootstrap5.3.scss +8 -8
- package/styles/bootstrap5.scss +8 -8
- package/styles/combo-box/bds.scss +1 -1
- package/styles/combo-box/bootstrap-dark.scss +1 -1
- package/styles/combo-box/bootstrap.scss +1 -1
- package/styles/combo-box/bootstrap4.scss +1 -1
- package/styles/combo-box/bootstrap5-dark.scss +1 -1
- package/styles/combo-box/bootstrap5.3.scss +1 -1
- package/styles/combo-box/bootstrap5.scss +1 -1
- package/styles/combo-box/fabric-dark.scss +1 -1
- package/styles/combo-box/fabric.scss +1 -1
- package/styles/combo-box/fluent-dark.scss +1 -1
- package/styles/combo-box/fluent.scss +1 -1
- package/styles/combo-box/fluent2.scss +1 -1
- package/styles/combo-box/highcontrast-light.scss +1 -1
- package/styles/combo-box/highcontrast.scss +1 -1
- package/styles/combo-box/material-dark.scss +1 -1
- package/styles/combo-box/material.scss +1 -1
- package/styles/combo-box/material3-dark.scss +2 -1
- package/styles/combo-box/material3.scss +2 -1
- package/styles/combo-box/tailwind-dark.scss +1 -1
- package/styles/combo-box/tailwind.scss +1 -1
- package/styles/combo-box/tailwind3.scss +1 -1
- package/styles/drop-down-base/bds.scss +1 -1
- package/styles/drop-down-base/bootstrap-dark.scss +1 -1
- package/styles/drop-down-base/bootstrap.scss +1 -1
- package/styles/drop-down-base/bootstrap4.scss +1 -1
- package/styles/drop-down-base/bootstrap5-dark.scss +1 -1
- package/styles/drop-down-base/bootstrap5.3.scss +1 -1
- package/styles/drop-down-base/bootstrap5.scss +1 -1
- package/styles/drop-down-base/fabric-dark.scss +1 -1
- package/styles/drop-down-base/fabric.scss +1 -1
- package/styles/drop-down-base/fluent-dark.scss +1 -1
- package/styles/drop-down-base/fluent.scss +1 -1
- package/styles/drop-down-base/fluent2.scss +1 -1
- package/styles/drop-down-base/highcontrast-light.scss +1 -1
- package/styles/drop-down-base/highcontrast.scss +1 -1
- package/styles/drop-down-base/material-dark.scss +1 -1
- package/styles/drop-down-base/material.scss +1 -1
- package/styles/drop-down-base/material3-dark.scss +2 -1
- package/styles/drop-down-base/material3.scss +2 -1
- package/styles/drop-down-base/tailwind-dark.scss +1 -1
- package/styles/drop-down-base/tailwind.scss +1 -1
- package/styles/drop-down-base/tailwind3.scss +1 -1
- package/styles/drop-down-list/bds.scss +1 -1
- package/styles/drop-down-list/bootstrap-dark.scss +1 -1
- package/styles/drop-down-list/bootstrap.scss +1 -1
- package/styles/drop-down-list/bootstrap4.scss +1 -1
- package/styles/drop-down-list/bootstrap5-dark.scss +1 -1
- package/styles/drop-down-list/bootstrap5.3.scss +1 -1
- package/styles/drop-down-list/bootstrap5.scss +1 -1
- package/styles/drop-down-list/fabric-dark.scss +1 -1
- package/styles/drop-down-list/fabric.scss +1 -1
- package/styles/drop-down-list/fluent-dark.scss +1 -1
- package/styles/drop-down-list/fluent.scss +1 -1
- package/styles/drop-down-list/fluent2.scss +1 -1
- package/styles/drop-down-list/highcontrast-light.scss +1 -1
- package/styles/drop-down-list/highcontrast.scss +1 -1
- package/styles/drop-down-list/material-dark.scss +1 -1
- package/styles/drop-down-list/material.scss +1 -1
- package/styles/drop-down-list/material3-dark.scss +2 -1
- package/styles/drop-down-list/material3.scss +2 -1
- package/styles/drop-down-list/tailwind-dark.scss +1 -1
- package/styles/drop-down-list/tailwind.scss +1 -1
- package/styles/drop-down-list/tailwind3.scss +1 -1
- package/styles/drop-down-tree/bds.scss +1 -1
- package/styles/drop-down-tree/bootstrap-dark.scss +1 -1
- package/styles/drop-down-tree/bootstrap.scss +1 -1
- package/styles/drop-down-tree/bootstrap4.scss +1 -1
- package/styles/drop-down-tree/bootstrap5-dark.scss +1 -1
- package/styles/drop-down-tree/bootstrap5.3.scss +1 -1
- package/styles/drop-down-tree/bootstrap5.scss +1 -1
- package/styles/drop-down-tree/fabric-dark.scss +1 -1
- package/styles/drop-down-tree/fabric.scss +1 -1
- package/styles/drop-down-tree/fluent-dark.scss +1 -1
- package/styles/drop-down-tree/fluent.scss +1 -1
- package/styles/drop-down-tree/fluent2.scss +1 -1
- package/styles/drop-down-tree/highcontrast-light.scss +1 -1
- package/styles/drop-down-tree/highcontrast.scss +1 -1
- package/styles/drop-down-tree/material-dark.scss +1 -1
- package/styles/drop-down-tree/material.scss +1 -1
- package/styles/drop-down-tree/material3-dark.scss +2 -1
- package/styles/drop-down-tree/material3.scss +2 -1
- package/styles/drop-down-tree/tailwind-dark.scss +1 -1
- package/styles/drop-down-tree/tailwind.scss +1 -1
- package/styles/drop-down-tree/tailwind3.scss +1 -1
- package/styles/fabric-dark-lite.scss +1 -1
- package/styles/fabric-dark.scss +8 -8
- package/styles/fabric-lite.scss +1 -1
- package/styles/fabric.scss +8 -8
- package/styles/fluent-dark-lite.scss +1 -1
- package/styles/fluent-dark.scss +8 -8
- package/styles/fluent-lite.scss +1 -1
- package/styles/fluent.scss +8 -8
- package/styles/fluent2-lite.scss +1 -1
- package/styles/fluent2.scss +8 -8
- package/styles/highcontrast-light-lite.scss +1 -1
- package/styles/highcontrast-light.scss +8 -8
- package/styles/highcontrast-lite.scss +1 -1
- package/styles/highcontrast.scss +8 -8
- package/styles/list-box/bds.scss +1 -1
- package/styles/list-box/bootstrap-dark.scss +1 -1
- package/styles/list-box/bootstrap.scss +1 -1
- package/styles/list-box/bootstrap4.scss +1 -1
- package/styles/list-box/bootstrap5-dark.scss +1 -1
- package/styles/list-box/bootstrap5.3.scss +1 -1
- package/styles/list-box/bootstrap5.scss +1 -1
- package/styles/list-box/fabric-dark.scss +1 -1
- package/styles/list-box/fabric.scss +1 -1
- package/styles/list-box/fluent-dark.scss +1 -1
- package/styles/list-box/fluent.scss +1 -1
- package/styles/list-box/fluent2.scss +1 -1
- package/styles/list-box/highcontrast-light.scss +1 -1
- package/styles/list-box/highcontrast.scss +1 -1
- package/styles/list-box/material-dark.scss +1 -1
- package/styles/list-box/material.scss +1 -1
- package/styles/list-box/material3-dark.scss +2 -1
- package/styles/list-box/material3.scss +2 -1
- package/styles/list-box/tailwind-dark.scss +1 -1
- package/styles/list-box/tailwind.scss +1 -1
- package/styles/list-box/tailwind3.scss +1 -1
- package/styles/material-dark-lite.scss +1 -1
- package/styles/material-dark.scss +8 -8
- package/styles/material-lite.scss +1 -1
- package/styles/material.scss +8 -8
- package/styles/material3-dark-lite.scss +1 -1
- package/styles/material3-dark.scss +9 -8
- package/styles/material3-lite.scss +1 -1
- package/styles/material3.scss +9 -8
- package/styles/mention/bds.scss +1 -1
- package/styles/mention/bootstrap-dark.scss +1 -1
- package/styles/mention/bootstrap.scss +1 -1
- package/styles/mention/bootstrap4.scss +1 -1
- package/styles/mention/bootstrap5-dark.scss +1 -1
- package/styles/mention/bootstrap5.3.scss +1 -1
- package/styles/mention/bootstrap5.scss +1 -1
- package/styles/mention/fabric-dark.scss +1 -1
- package/styles/mention/fabric.scss +1 -1
- package/styles/mention/fluent-dark.scss +1 -1
- package/styles/mention/fluent.scss +1 -1
- package/styles/mention/fluent2.scss +1 -1
- package/styles/mention/highcontrast-light.scss +1 -1
- package/styles/mention/highcontrast.scss +1 -1
- package/styles/mention/material-dark.scss +1 -1
- package/styles/mention/material.scss +1 -1
- package/styles/mention/material3-dark.scss +2 -1
- package/styles/mention/material3.scss +2 -1
- package/styles/mention/tailwind-dark.scss +1 -1
- package/styles/mention/tailwind.scss +1 -1
- package/styles/mention/tailwind3.scss +1 -1
- package/styles/multi-select/bds.scss +1 -1
- package/styles/multi-select/bootstrap-dark.scss +1 -1
- package/styles/multi-select/bootstrap.scss +1 -1
- package/styles/multi-select/bootstrap4.scss +1 -1
- package/styles/multi-select/bootstrap5-dark.scss +1 -1
- package/styles/multi-select/bootstrap5.3.scss +1 -1
- package/styles/multi-select/bootstrap5.scss +1 -1
- package/styles/multi-select/fabric-dark.scss +1 -1
- package/styles/multi-select/fabric.scss +1 -1
- package/styles/multi-select/fluent-dark.scss +1 -1
- package/styles/multi-select/fluent.scss +1 -1
- package/styles/multi-select/fluent2.scss +1 -1
- package/styles/multi-select/highcontrast-light.scss +1 -1
- package/styles/multi-select/highcontrast.scss +1 -1
- package/styles/multi-select/material-dark.scss +1 -1
- package/styles/multi-select/material.scss +1 -1
- package/styles/multi-select/material3-dark.scss +2 -1
- package/styles/multi-select/material3.scss +2 -1
- package/styles/multi-select/tailwind-dark.scss +1 -1
- package/styles/multi-select/tailwind.scss +1 -1
- package/styles/multi-select/tailwind3.scss +1 -1
- package/styles/tailwind-dark-lite.scss +1 -1
- package/styles/tailwind-dark.scss +8 -8
- package/styles/tailwind-lite.scss +1 -1
- package/styles/tailwind.scss +8 -8
- package/styles/tailwind3-lite.scss +1 -1
- package/styles/tailwind3.scss +8 -8
- package/CHANGELOG.md +0 -2722
- package/esm2020/public_api.mjs +0 -2
- package/esm2020/src/auto-complete/autocomplete-all.module.mjs +0 -23
- package/esm2020/src/auto-complete/autocomplete.component.mjs +0 -129
- package/esm2020/src/auto-complete/autocomplete.module.mjs +0 -25
- package/esm2020/src/combo-box/combobox-all.module.mjs +0 -23
- package/esm2020/src/combo-box/combobox.component.mjs +0 -129
- package/esm2020/src/combo-box/combobox.module.mjs +0 -25
- package/esm2020/src/drop-down-list/dropdownlist-all.module.mjs +0 -29
- package/esm2020/src/drop-down-list/dropdownlist.component.mjs +0 -135
- package/esm2020/src/drop-down-list/dropdownlist.module.mjs +0 -25
- package/esm2020/src/drop-down-tree/dropdowntree-all.module.mjs +0 -23
- package/esm2020/src/drop-down-tree/dropdowntree.component.mjs +0 -122
- package/esm2020/src/drop-down-tree/dropdowntree.module.mjs +0 -25
- package/esm2020/src/index.mjs +0 -23
- package/esm2020/src/list-box/listbox-all.module.mjs +0 -23
- package/esm2020/src/list-box/listbox.component.mjs +0 -104
- package/esm2020/src/list-box/listbox.module.mjs +0 -25
- package/esm2020/src/mention/mention-all.module.mjs +0 -23
- package/esm2020/src/mention/mention.component.mjs +0 -84
- package/esm2020/src/mention/mention.module.mjs +0 -25
- package/esm2020/src/multi-select/multiselect-all.module.mjs +0 -29
- package/esm2020/src/multi-select/multiselect.component.mjs +0 -142
- package/esm2020/src/multi-select/multiselect.module.mjs +0 -25
- package/esm2020/syncfusion-ej2-angular-dropdowns.mjs +0 -5
- package/fesm2015/syncfusion-ej2-angular-dropdowns.mjs +0 -1095
- package/fesm2015/syncfusion-ej2-angular-dropdowns.mjs.map +0 -1
- package/fesm2020/syncfusion-ej2-angular-dropdowns.mjs +0 -1095
- package/fesm2020/syncfusion-ej2-angular-dropdowns.mjs.map +0 -1
- package/syncfusion-ej2-angular-dropdowns.d.ts +0 -5
|
@@ -0,0 +1,1487 @@
|
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = Object.setPrototypeOf ||
|
|
3
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
4
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
5
|
+
return function (d, b) {
|
|
6
|
+
extendStatics(d, b);
|
|
7
|
+
function __() { this.constructor = d; }
|
|
8
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ContentChild, ElementRef, Injector, NgModule, Renderer2, ViewContainerRef, forwardRef } from '@angular/core';
|
|
12
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
13
|
+
import { ComponentBase, ComponentMixins, FormBase, Template, setValue } from '@syncfusion/ej2-angular-base';
|
|
14
|
+
import { AutoComplete, CheckBoxSelection, ComboBox, DropDownList, DropDownTree, ListBox, Mention, MultiSelect, VirtualScroll } from '@syncfusion/ej2-dropdowns';
|
|
15
|
+
import { CommonModule } from '@angular/common';
|
|
16
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
17
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
18
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
19
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else
|
|
21
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
22
|
+
if (d = decorators[i])
|
|
23
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
24
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
25
|
+
};
|
|
26
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
27
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
28
|
+
return Reflect.metadata(k, v);
|
|
29
|
+
};
|
|
30
|
+
var inputs = ['actionFailureTemplate', 'allowFiltering', 'allowObjectBinding', 'allowResize', 'cssClass', 'dataSource', 'debounceDelay', 'enablePersistence', 'enableRtl', 'enableVirtualization', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'index', 'isDeviceFullScreen', 'itemTemplate', 'locale', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'sortOrder', 'text', 'value', 'valueTemplate', 'width', 'zIndex'];
|
|
31
|
+
var outputs = ['actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'blur', 'change', 'close', 'created', 'dataBound', 'destroyed', 'filtering', 'focus', 'open', 'resizeStart', 'resizeStop', 'resizing', 'select', 'valueChange'];
|
|
32
|
+
var twoWays = ['value'];
|
|
33
|
+
/**
|
|
34
|
+
* The DropDownList component contains a list of predefined values, from which the user can choose a single value.
|
|
35
|
+
* ```html
|
|
36
|
+
* <ejs-dropdownlist></ejs-dropdownlist>
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
var DropDownListComponent = DropDownListComponent_1 = /** @class */ (function (_super) {
|
|
40
|
+
__extends(DropDownListComponent, _super);
|
|
41
|
+
/**
|
|
42
|
+
* @param {?} ngEle
|
|
43
|
+
* @param {?} srenderer
|
|
44
|
+
* @param {?} viewContainerRef
|
|
45
|
+
* @param {?} injector
|
|
46
|
+
* @param {?} cdr
|
|
47
|
+
*/
|
|
48
|
+
function DropDownListComponent(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
49
|
+
var _this = _super.call(this) || this;
|
|
50
|
+
_this.ngEle = ngEle;
|
|
51
|
+
_this.srenderer = srenderer;
|
|
52
|
+
_this.viewContainerRef = viewContainerRef;
|
|
53
|
+
_this.injector = injector;
|
|
54
|
+
_this.cdr = cdr;
|
|
55
|
+
_this.skipFromEvent = true;
|
|
56
|
+
_this.element = _this.ngEle.nativeElement;
|
|
57
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
58
|
+
try {
|
|
59
|
+
var mod = _this.injector.get('DropDownsVirtualScroll');
|
|
60
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
61
|
+
_this.injectedModules.push(mod);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
catch (_a) { }
|
|
65
|
+
_this.registerEvents(outputs);
|
|
66
|
+
_this.addTwoWay.call(_this, twoWays);
|
|
67
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
68
|
+
_this.formContext = new FormBase();
|
|
69
|
+
_this.formCompContext = new ComponentBase();
|
|
70
|
+
return _this;
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* @param {?} registerFunction
|
|
74
|
+
* @return {?}
|
|
75
|
+
*/
|
|
76
|
+
DropDownListComponent.prototype.registerOnChange = function (registerFunction) {
|
|
77
|
+
};
|
|
78
|
+
/**
|
|
79
|
+
* @param {?} registerFunction
|
|
80
|
+
* @return {?}
|
|
81
|
+
*/
|
|
82
|
+
DropDownListComponent.prototype.registerOnTouched = function (registerFunction) {
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* @param {?} value
|
|
86
|
+
* @return {?}
|
|
87
|
+
*/
|
|
88
|
+
DropDownListComponent.prototype.writeValue = function (value) {
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* @param {?} disabled
|
|
92
|
+
* @return {?}
|
|
93
|
+
*/
|
|
94
|
+
DropDownListComponent.prototype.setDisabledState = function (disabled) {
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* @return {?}
|
|
98
|
+
*/
|
|
99
|
+
DropDownListComponent.prototype.ngOnInit = function () {
|
|
100
|
+
this.formCompContext.ngOnInit(this);
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* @return {?}
|
|
104
|
+
*/
|
|
105
|
+
DropDownListComponent.prototype.ngAfterViewInit = function () {
|
|
106
|
+
this.formContext.ngAfterViewInit(this);
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* @return {?}
|
|
110
|
+
*/
|
|
111
|
+
DropDownListComponent.prototype.ngOnDestroy = function () {
|
|
112
|
+
this.formCompContext.ngOnDestroy(this);
|
|
113
|
+
};
|
|
114
|
+
/**
|
|
115
|
+
* @return {?}
|
|
116
|
+
*/
|
|
117
|
+
DropDownListComponent.prototype.ngAfterContentChecked = function () {
|
|
118
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
119
|
+
};
|
|
120
|
+
return DropDownListComponent;
|
|
121
|
+
}(DropDownList));
|
|
122
|
+
DropDownListComponent.decorators = [
|
|
123
|
+
{ type: Component, args: [{
|
|
124
|
+
selector: 'ejs-dropdownlist',
|
|
125
|
+
inputs: inputs,
|
|
126
|
+
outputs: outputs,
|
|
127
|
+
template: '',
|
|
128
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
129
|
+
providers: [
|
|
130
|
+
{
|
|
131
|
+
provide: NG_VALUE_ACCESSOR,
|
|
132
|
+
useExisting: forwardRef(function () { return DropDownListComponent_1; }),
|
|
133
|
+
multi: true
|
|
134
|
+
}
|
|
135
|
+
],
|
|
136
|
+
queries: {}
|
|
137
|
+
},] },
|
|
138
|
+
];
|
|
139
|
+
/**
|
|
140
|
+
* @nocollapse
|
|
141
|
+
*/
|
|
142
|
+
DropDownListComponent.ctorParameters = function () { return [
|
|
143
|
+
{ type: ElementRef, },
|
|
144
|
+
{ type: Renderer2, },
|
|
145
|
+
{ type: ViewContainerRef, },
|
|
146
|
+
{ type: Injector, },
|
|
147
|
+
{ type: ChangeDetectorRef, },
|
|
148
|
+
]; };
|
|
149
|
+
DropDownListComponent.propDecorators = {
|
|
150
|
+
'footerTemplate': [{ type: ContentChild, args: ['footerTemplate',] },],
|
|
151
|
+
'headerTemplate': [{ type: ContentChild, args: ['headerTemplate',] },],
|
|
152
|
+
'valueTemplate': [{ type: ContentChild, args: ['valueTemplate',] },],
|
|
153
|
+
'groupTemplate': [{ type: ContentChild, args: ['groupTemplate',] },],
|
|
154
|
+
'itemTemplate': [{ type: ContentChild, args: ['itemTemplate',] },],
|
|
155
|
+
'noRecordsTemplate': [{ type: ContentChild, args: ['noRecordsTemplate',] },],
|
|
156
|
+
'actionFailureTemplate': [{ type: ContentChild, args: ['actionFailureTemplate',] },],
|
|
157
|
+
};
|
|
158
|
+
__decorate([
|
|
159
|
+
Template(),
|
|
160
|
+
__metadata("design:type", Object)
|
|
161
|
+
], DropDownListComponent.prototype, "footerTemplate", void 0);
|
|
162
|
+
__decorate([
|
|
163
|
+
Template(),
|
|
164
|
+
__metadata("design:type", Object)
|
|
165
|
+
], DropDownListComponent.prototype, "headerTemplate", void 0);
|
|
166
|
+
__decorate([
|
|
167
|
+
Template(),
|
|
168
|
+
__metadata("design:type", Object)
|
|
169
|
+
], DropDownListComponent.prototype, "valueTemplate", void 0);
|
|
170
|
+
__decorate([
|
|
171
|
+
Template(),
|
|
172
|
+
__metadata("design:type", Object)
|
|
173
|
+
], DropDownListComponent.prototype, "groupTemplate", void 0);
|
|
174
|
+
__decorate([
|
|
175
|
+
Template(),
|
|
176
|
+
__metadata("design:type", Object)
|
|
177
|
+
], DropDownListComponent.prototype, "itemTemplate", void 0);
|
|
178
|
+
__decorate([
|
|
179
|
+
Template('No records found'),
|
|
180
|
+
__metadata("design:type", Object)
|
|
181
|
+
], DropDownListComponent.prototype, "noRecordsTemplate", void 0);
|
|
182
|
+
__decorate([
|
|
183
|
+
Template('Request failed'),
|
|
184
|
+
__metadata("design:type", Object)
|
|
185
|
+
], DropDownListComponent.prototype, "actionFailureTemplate", void 0);
|
|
186
|
+
DropDownListComponent = DropDownListComponent_1 = __decorate([
|
|
187
|
+
ComponentMixins([ComponentBase, FormBase]),
|
|
188
|
+
__metadata("design:paramtypes", [ElementRef,
|
|
189
|
+
Renderer2,
|
|
190
|
+
ViewContainerRef,
|
|
191
|
+
Injector,
|
|
192
|
+
ChangeDetectorRef])
|
|
193
|
+
], DropDownListComponent);
|
|
194
|
+
var DropDownListComponent_1;
|
|
195
|
+
/**
|
|
196
|
+
* NgModule definition for the DropDownList component.
|
|
197
|
+
*/
|
|
198
|
+
var DropDownListModule = /** @class */ (function () {
|
|
199
|
+
function DropDownListModule() {
|
|
200
|
+
}
|
|
201
|
+
return DropDownListModule;
|
|
202
|
+
}());
|
|
203
|
+
DropDownListModule.decorators = [
|
|
204
|
+
{ type: NgModule, args: [{
|
|
205
|
+
imports: [CommonModule],
|
|
206
|
+
declarations: [
|
|
207
|
+
DropDownListComponent
|
|
208
|
+
],
|
|
209
|
+
exports: [
|
|
210
|
+
DropDownListComponent
|
|
211
|
+
]
|
|
212
|
+
},] },
|
|
213
|
+
];
|
|
214
|
+
/**
|
|
215
|
+
* @nocollapse
|
|
216
|
+
*/
|
|
217
|
+
DropDownListModule.ctorParameters = function () { return []; };
|
|
218
|
+
var VirtualScrollService = { provide: 'DropDownsVirtualScroll', useValue: VirtualScroll };
|
|
219
|
+
/**
|
|
220
|
+
* NgModule definition for the DropDownList component with providers.
|
|
221
|
+
*/
|
|
222
|
+
var DropDownListAllModule = /** @class */ (function () {
|
|
223
|
+
function DropDownListAllModule() {
|
|
224
|
+
}
|
|
225
|
+
return DropDownListAllModule;
|
|
226
|
+
}());
|
|
227
|
+
DropDownListAllModule.decorators = [
|
|
228
|
+
{ type: NgModule, args: [{
|
|
229
|
+
imports: [CommonModule, DropDownListModule],
|
|
230
|
+
exports: [
|
|
231
|
+
DropDownListModule
|
|
232
|
+
],
|
|
233
|
+
providers: [
|
|
234
|
+
VirtualScrollService
|
|
235
|
+
]
|
|
236
|
+
},] },
|
|
237
|
+
];
|
|
238
|
+
/**
|
|
239
|
+
* @nocollapse
|
|
240
|
+
*/
|
|
241
|
+
DropDownListAllModule.ctorParameters = function () { return []; };
|
|
242
|
+
var __decorate$1 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
243
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
244
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
245
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
246
|
+
else
|
|
247
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
248
|
+
if (d = decorators[i])
|
|
249
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
250
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
251
|
+
};
|
|
252
|
+
var __metadata$1 = (this && this.__metadata) || function (k, v) {
|
|
253
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
254
|
+
return Reflect.metadata(k, v);
|
|
255
|
+
};
|
|
256
|
+
var inputs$1 = ['actionFailureTemplate', 'allowCustom', 'allowFiltering', 'allowObjectBinding', 'allowResize', 'autofill', 'cssClass', 'dataSource', 'debounceDelay', 'enablePersistence', 'enableRtl', 'enableVirtualization', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'index', 'isDeviceFullScreen', 'itemTemplate', 'locale', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'sortOrder', 'text', 'value', 'valueTemplate', 'width', 'zIndex'];
|
|
257
|
+
var outputs$1 = ['actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'blur', 'change', 'close', 'created', 'customValueSpecifier', 'dataBound', 'destroyed', 'filtering', 'focus', 'open', 'resizeStart', 'resizeStop', 'resizing', 'select', 'valueChange'];
|
|
258
|
+
var twoWays$1 = ['value'];
|
|
259
|
+
/**
|
|
260
|
+
* The ComboBox component allows the user to type a value or choose an option from the list of predefined options.
|
|
261
|
+
* ```html
|
|
262
|
+
* <ejs-combobox></ejs-combobox>
|
|
263
|
+
* ```
|
|
264
|
+
*/
|
|
265
|
+
var ComboBoxComponent = ComboBoxComponent_1 = /** @class */ (function (_super) {
|
|
266
|
+
__extends(ComboBoxComponent, _super);
|
|
267
|
+
/**
|
|
268
|
+
* @param {?} ngEle
|
|
269
|
+
* @param {?} srenderer
|
|
270
|
+
* @param {?} viewContainerRef
|
|
271
|
+
* @param {?} injector
|
|
272
|
+
* @param {?} cdr
|
|
273
|
+
*/
|
|
274
|
+
function ComboBoxComponent(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
275
|
+
var _this = _super.call(this) || this;
|
|
276
|
+
_this.ngEle = ngEle;
|
|
277
|
+
_this.srenderer = srenderer;
|
|
278
|
+
_this.viewContainerRef = viewContainerRef;
|
|
279
|
+
_this.injector = injector;
|
|
280
|
+
_this.cdr = cdr;
|
|
281
|
+
_this.skipFromEvent = true;
|
|
282
|
+
_this.element = _this.ngEle.nativeElement;
|
|
283
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
284
|
+
try {
|
|
285
|
+
var mod = _this.injector.get('DropDownsVirtualScroll');
|
|
286
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
287
|
+
_this.injectedModules.push(mod);
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
catch (_a) { }
|
|
291
|
+
_this.registerEvents(outputs$1);
|
|
292
|
+
_this.addTwoWay.call(_this, twoWays$1);
|
|
293
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
294
|
+
_this.formContext = new FormBase();
|
|
295
|
+
_this.formCompContext = new ComponentBase();
|
|
296
|
+
return _this;
|
|
297
|
+
}
|
|
298
|
+
/**
|
|
299
|
+
* @param {?} registerFunction
|
|
300
|
+
* @return {?}
|
|
301
|
+
*/
|
|
302
|
+
ComboBoxComponent.prototype.registerOnChange = function (registerFunction) {
|
|
303
|
+
};
|
|
304
|
+
/**
|
|
305
|
+
* @param {?} registerFunction
|
|
306
|
+
* @return {?}
|
|
307
|
+
*/
|
|
308
|
+
ComboBoxComponent.prototype.registerOnTouched = function (registerFunction) {
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* @param {?} value
|
|
312
|
+
* @return {?}
|
|
313
|
+
*/
|
|
314
|
+
ComboBoxComponent.prototype.writeValue = function (value) {
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* @param {?} disabled
|
|
318
|
+
* @return {?}
|
|
319
|
+
*/
|
|
320
|
+
ComboBoxComponent.prototype.setDisabledState = function (disabled) {
|
|
321
|
+
};
|
|
322
|
+
/**
|
|
323
|
+
* @return {?}
|
|
324
|
+
*/
|
|
325
|
+
ComboBoxComponent.prototype.ngOnInit = function () {
|
|
326
|
+
this.formCompContext.ngOnInit(this);
|
|
327
|
+
};
|
|
328
|
+
/**
|
|
329
|
+
* @return {?}
|
|
330
|
+
*/
|
|
331
|
+
ComboBoxComponent.prototype.ngAfterViewInit = function () {
|
|
332
|
+
this.formContext.ngAfterViewInit(this);
|
|
333
|
+
};
|
|
334
|
+
/**
|
|
335
|
+
* @return {?}
|
|
336
|
+
*/
|
|
337
|
+
ComboBoxComponent.prototype.ngOnDestroy = function () {
|
|
338
|
+
this.formCompContext.ngOnDestroy(this);
|
|
339
|
+
};
|
|
340
|
+
/**
|
|
341
|
+
* @return {?}
|
|
342
|
+
*/
|
|
343
|
+
ComboBoxComponent.prototype.ngAfterContentChecked = function () {
|
|
344
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
345
|
+
};
|
|
346
|
+
return ComboBoxComponent;
|
|
347
|
+
}(ComboBox));
|
|
348
|
+
ComboBoxComponent.decorators = [
|
|
349
|
+
{ type: Component, args: [{
|
|
350
|
+
selector: 'ejs-combobox',
|
|
351
|
+
inputs: inputs$1,
|
|
352
|
+
outputs: outputs$1,
|
|
353
|
+
template: '',
|
|
354
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
355
|
+
providers: [
|
|
356
|
+
{
|
|
357
|
+
provide: NG_VALUE_ACCESSOR,
|
|
358
|
+
useExisting: forwardRef(function () { return ComboBoxComponent_1; }),
|
|
359
|
+
multi: true
|
|
360
|
+
}
|
|
361
|
+
],
|
|
362
|
+
queries: {}
|
|
363
|
+
},] },
|
|
364
|
+
];
|
|
365
|
+
/**
|
|
366
|
+
* @nocollapse
|
|
367
|
+
*/
|
|
368
|
+
ComboBoxComponent.ctorParameters = function () { return [
|
|
369
|
+
{ type: ElementRef, },
|
|
370
|
+
{ type: Renderer2, },
|
|
371
|
+
{ type: ViewContainerRef, },
|
|
372
|
+
{ type: Injector, },
|
|
373
|
+
{ type: ChangeDetectorRef, },
|
|
374
|
+
]; };
|
|
375
|
+
ComboBoxComponent.propDecorators = {
|
|
376
|
+
'footerTemplate': [{ type: ContentChild, args: ['footerTemplate',] },],
|
|
377
|
+
'headerTemplate': [{ type: ContentChild, args: ['headerTemplate',] },],
|
|
378
|
+
'groupTemplate': [{ type: ContentChild, args: ['groupTemplate',] },],
|
|
379
|
+
'itemTemplate': [{ type: ContentChild, args: ['itemTemplate',] },],
|
|
380
|
+
'noRecordsTemplate': [{ type: ContentChild, args: ['noRecordsTemplate',] },],
|
|
381
|
+
'actionFailureTemplate': [{ type: ContentChild, args: ['actionFailureTemplate',] },],
|
|
382
|
+
};
|
|
383
|
+
__decorate$1([
|
|
384
|
+
Template(),
|
|
385
|
+
__metadata$1("design:type", Object)
|
|
386
|
+
], ComboBoxComponent.prototype, "footerTemplate", void 0);
|
|
387
|
+
__decorate$1([
|
|
388
|
+
Template(),
|
|
389
|
+
__metadata$1("design:type", Object)
|
|
390
|
+
], ComboBoxComponent.prototype, "headerTemplate", void 0);
|
|
391
|
+
__decorate$1([
|
|
392
|
+
Template(),
|
|
393
|
+
__metadata$1("design:type", Object)
|
|
394
|
+
], ComboBoxComponent.prototype, "groupTemplate", void 0);
|
|
395
|
+
__decorate$1([
|
|
396
|
+
Template(),
|
|
397
|
+
__metadata$1("design:type", Object)
|
|
398
|
+
], ComboBoxComponent.prototype, "itemTemplate", void 0);
|
|
399
|
+
__decorate$1([
|
|
400
|
+
Template('No records found'),
|
|
401
|
+
__metadata$1("design:type", Object)
|
|
402
|
+
], ComboBoxComponent.prototype, "noRecordsTemplate", void 0);
|
|
403
|
+
__decorate$1([
|
|
404
|
+
Template('Request failed'),
|
|
405
|
+
__metadata$1("design:type", Object)
|
|
406
|
+
], ComboBoxComponent.prototype, "actionFailureTemplate", void 0);
|
|
407
|
+
ComboBoxComponent = ComboBoxComponent_1 = __decorate$1([
|
|
408
|
+
ComponentMixins([ComponentBase, FormBase]),
|
|
409
|
+
__metadata$1("design:paramtypes", [ElementRef,
|
|
410
|
+
Renderer2,
|
|
411
|
+
ViewContainerRef,
|
|
412
|
+
Injector,
|
|
413
|
+
ChangeDetectorRef])
|
|
414
|
+
], ComboBoxComponent);
|
|
415
|
+
var ComboBoxComponent_1;
|
|
416
|
+
/**
|
|
417
|
+
* NgModule definition for the ComboBox component.
|
|
418
|
+
*/
|
|
419
|
+
var ComboBoxModule = /** @class */ (function () {
|
|
420
|
+
function ComboBoxModule() {
|
|
421
|
+
}
|
|
422
|
+
return ComboBoxModule;
|
|
423
|
+
}());
|
|
424
|
+
ComboBoxModule.decorators = [
|
|
425
|
+
{ type: NgModule, args: [{
|
|
426
|
+
imports: [CommonModule],
|
|
427
|
+
declarations: [
|
|
428
|
+
ComboBoxComponent
|
|
429
|
+
],
|
|
430
|
+
exports: [
|
|
431
|
+
ComboBoxComponent
|
|
432
|
+
]
|
|
433
|
+
},] },
|
|
434
|
+
];
|
|
435
|
+
/**
|
|
436
|
+
* @nocollapse
|
|
437
|
+
*/
|
|
438
|
+
ComboBoxModule.ctorParameters = function () { return []; };
|
|
439
|
+
/**
|
|
440
|
+
* NgModule definition for the ComboBox component with providers.
|
|
441
|
+
*/
|
|
442
|
+
var ComboBoxAllModule = /** @class */ (function () {
|
|
443
|
+
function ComboBoxAllModule() {
|
|
444
|
+
}
|
|
445
|
+
return ComboBoxAllModule;
|
|
446
|
+
}());
|
|
447
|
+
ComboBoxAllModule.decorators = [
|
|
448
|
+
{ type: NgModule, args: [{
|
|
449
|
+
imports: [CommonModule, ComboBoxModule],
|
|
450
|
+
exports: [
|
|
451
|
+
ComboBoxModule
|
|
452
|
+
],
|
|
453
|
+
providers: []
|
|
454
|
+
},] },
|
|
455
|
+
];
|
|
456
|
+
/**
|
|
457
|
+
* @nocollapse
|
|
458
|
+
*/
|
|
459
|
+
ComboBoxAllModule.ctorParameters = function () { return []; };
|
|
460
|
+
var __decorate$2 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
461
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
462
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
463
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
464
|
+
else
|
|
465
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
466
|
+
if (d = decorators[i])
|
|
467
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
468
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
469
|
+
};
|
|
470
|
+
var __metadata$2 = (this && this.__metadata) || function (k, v) {
|
|
471
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
472
|
+
return Reflect.metadata(k, v);
|
|
473
|
+
};
|
|
474
|
+
var inputs$2 = ['actionFailureTemplate', 'allowCustom', 'allowFiltering', 'allowObjectBinding', 'allowResize', 'autofill', 'cssClass', 'dataSource', 'debounceDelay', 'enablePersistence', 'enableRtl', 'enableVirtualization', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'highlight', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'index', 'isDeviceFullScreen', 'itemTemplate', 'locale', 'minLength', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'showClearButton', 'showPopupButton', 'sortOrder', 'suggestionCount', 'text', 'value', 'valueTemplate', 'width', 'zIndex'];
|
|
475
|
+
var outputs$2 = ['actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'blur', 'change', 'close', 'created', 'customValueSpecifier', 'dataBound', 'destroyed', 'filtering', 'focus', 'open', 'resizeStart', 'resizeStop', 'resizing', 'select', 'valueChange'];
|
|
476
|
+
var twoWays$2 = ['value'];
|
|
477
|
+
/**
|
|
478
|
+
* The AutoComplete component provides the matched suggestion list when type into the input, from which the user can select one.
|
|
479
|
+
* ```html
|
|
480
|
+
* <ejs-autocomplete></ejs-autocomplete>
|
|
481
|
+
* ```
|
|
482
|
+
*/
|
|
483
|
+
var AutoCompleteComponent = AutoCompleteComponent_1 = /** @class */ (function (_super) {
|
|
484
|
+
__extends(AutoCompleteComponent, _super);
|
|
485
|
+
/**
|
|
486
|
+
* @param {?} ngEle
|
|
487
|
+
* @param {?} srenderer
|
|
488
|
+
* @param {?} viewContainerRef
|
|
489
|
+
* @param {?} injector
|
|
490
|
+
* @param {?} cdr
|
|
491
|
+
*/
|
|
492
|
+
function AutoCompleteComponent(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
493
|
+
var _this = _super.call(this) || this;
|
|
494
|
+
_this.ngEle = ngEle;
|
|
495
|
+
_this.srenderer = srenderer;
|
|
496
|
+
_this.viewContainerRef = viewContainerRef;
|
|
497
|
+
_this.injector = injector;
|
|
498
|
+
_this.cdr = cdr;
|
|
499
|
+
_this.skipFromEvent = true;
|
|
500
|
+
_this.element = _this.ngEle.nativeElement;
|
|
501
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
502
|
+
try {
|
|
503
|
+
var mod = _this.injector.get('DropDownsVirtualScroll');
|
|
504
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
505
|
+
_this.injectedModules.push(mod);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
catch (_a) { }
|
|
509
|
+
_this.registerEvents(outputs$2);
|
|
510
|
+
_this.addTwoWay.call(_this, twoWays$2);
|
|
511
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
512
|
+
_this.formContext = new FormBase();
|
|
513
|
+
_this.formCompContext = new ComponentBase();
|
|
514
|
+
return _this;
|
|
515
|
+
}
|
|
516
|
+
/**
|
|
517
|
+
* @param {?} registerFunction
|
|
518
|
+
* @return {?}
|
|
519
|
+
*/
|
|
520
|
+
AutoCompleteComponent.prototype.registerOnChange = function (registerFunction) {
|
|
521
|
+
};
|
|
522
|
+
/**
|
|
523
|
+
* @param {?} registerFunction
|
|
524
|
+
* @return {?}
|
|
525
|
+
*/
|
|
526
|
+
AutoCompleteComponent.prototype.registerOnTouched = function (registerFunction) {
|
|
527
|
+
};
|
|
528
|
+
/**
|
|
529
|
+
* @param {?} value
|
|
530
|
+
* @return {?}
|
|
531
|
+
*/
|
|
532
|
+
AutoCompleteComponent.prototype.writeValue = function (value) {
|
|
533
|
+
};
|
|
534
|
+
/**
|
|
535
|
+
* @param {?} disabled
|
|
536
|
+
* @return {?}
|
|
537
|
+
*/
|
|
538
|
+
AutoCompleteComponent.prototype.setDisabledState = function (disabled) {
|
|
539
|
+
};
|
|
540
|
+
/**
|
|
541
|
+
* @return {?}
|
|
542
|
+
*/
|
|
543
|
+
AutoCompleteComponent.prototype.ngOnInit = function () {
|
|
544
|
+
this.formCompContext.ngOnInit(this);
|
|
545
|
+
};
|
|
546
|
+
/**
|
|
547
|
+
* @return {?}
|
|
548
|
+
*/
|
|
549
|
+
AutoCompleteComponent.prototype.ngAfterViewInit = function () {
|
|
550
|
+
this.formContext.ngAfterViewInit(this);
|
|
551
|
+
};
|
|
552
|
+
/**
|
|
553
|
+
* @return {?}
|
|
554
|
+
*/
|
|
555
|
+
AutoCompleteComponent.prototype.ngOnDestroy = function () {
|
|
556
|
+
this.formCompContext.ngOnDestroy(this);
|
|
557
|
+
};
|
|
558
|
+
/**
|
|
559
|
+
* @return {?}
|
|
560
|
+
*/
|
|
561
|
+
AutoCompleteComponent.prototype.ngAfterContentChecked = function () {
|
|
562
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
563
|
+
};
|
|
564
|
+
return AutoCompleteComponent;
|
|
565
|
+
}(AutoComplete));
|
|
566
|
+
AutoCompleteComponent.decorators = [
|
|
567
|
+
{ type: Component, args: [{
|
|
568
|
+
selector: 'ejs-autocomplete',
|
|
569
|
+
inputs: inputs$2,
|
|
570
|
+
outputs: outputs$2,
|
|
571
|
+
template: '',
|
|
572
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
573
|
+
providers: [
|
|
574
|
+
{
|
|
575
|
+
provide: NG_VALUE_ACCESSOR,
|
|
576
|
+
useExisting: forwardRef(function () { return AutoCompleteComponent_1; }),
|
|
577
|
+
multi: true
|
|
578
|
+
}
|
|
579
|
+
],
|
|
580
|
+
queries: {}
|
|
581
|
+
},] },
|
|
582
|
+
];
|
|
583
|
+
/**
|
|
584
|
+
* @nocollapse
|
|
585
|
+
*/
|
|
586
|
+
AutoCompleteComponent.ctorParameters = function () { return [
|
|
587
|
+
{ type: ElementRef, },
|
|
588
|
+
{ type: Renderer2, },
|
|
589
|
+
{ type: ViewContainerRef, },
|
|
590
|
+
{ type: Injector, },
|
|
591
|
+
{ type: ChangeDetectorRef, },
|
|
592
|
+
]; };
|
|
593
|
+
AutoCompleteComponent.propDecorators = {
|
|
594
|
+
'footerTemplate': [{ type: ContentChild, args: ['footerTemplate',] },],
|
|
595
|
+
'headerTemplate': [{ type: ContentChild, args: ['headerTemplate',] },],
|
|
596
|
+
'groupTemplate': [{ type: ContentChild, args: ['groupTemplate',] },],
|
|
597
|
+
'itemTemplate': [{ type: ContentChild, args: ['itemTemplate',] },],
|
|
598
|
+
'noRecordsTemplate': [{ type: ContentChild, args: ['noRecordsTemplate',] },],
|
|
599
|
+
'actionFailureTemplate': [{ type: ContentChild, args: ['actionFailureTemplate',] },],
|
|
600
|
+
};
|
|
601
|
+
__decorate$2([
|
|
602
|
+
Template(),
|
|
603
|
+
__metadata$2("design:type", Object)
|
|
604
|
+
], AutoCompleteComponent.prototype, "footerTemplate", void 0);
|
|
605
|
+
__decorate$2([
|
|
606
|
+
Template(),
|
|
607
|
+
__metadata$2("design:type", Object)
|
|
608
|
+
], AutoCompleteComponent.prototype, "headerTemplate", void 0);
|
|
609
|
+
__decorate$2([
|
|
610
|
+
Template(),
|
|
611
|
+
__metadata$2("design:type", Object)
|
|
612
|
+
], AutoCompleteComponent.prototype, "groupTemplate", void 0);
|
|
613
|
+
__decorate$2([
|
|
614
|
+
Template(),
|
|
615
|
+
__metadata$2("design:type", Object)
|
|
616
|
+
], AutoCompleteComponent.prototype, "itemTemplate", void 0);
|
|
617
|
+
__decorate$2([
|
|
618
|
+
Template('No records found'),
|
|
619
|
+
__metadata$2("design:type", Object)
|
|
620
|
+
], AutoCompleteComponent.prototype, "noRecordsTemplate", void 0);
|
|
621
|
+
__decorate$2([
|
|
622
|
+
Template('Request failed'),
|
|
623
|
+
__metadata$2("design:type", Object)
|
|
624
|
+
], AutoCompleteComponent.prototype, "actionFailureTemplate", void 0);
|
|
625
|
+
AutoCompleteComponent = AutoCompleteComponent_1 = __decorate$2([
|
|
626
|
+
ComponentMixins([ComponentBase, FormBase]),
|
|
627
|
+
__metadata$2("design:paramtypes", [ElementRef,
|
|
628
|
+
Renderer2,
|
|
629
|
+
ViewContainerRef,
|
|
630
|
+
Injector,
|
|
631
|
+
ChangeDetectorRef])
|
|
632
|
+
], AutoCompleteComponent);
|
|
633
|
+
var AutoCompleteComponent_1;
|
|
634
|
+
/**
|
|
635
|
+
* NgModule definition for the AutoComplete component.
|
|
636
|
+
*/
|
|
637
|
+
var AutoCompleteModule = /** @class */ (function () {
|
|
638
|
+
function AutoCompleteModule() {
|
|
639
|
+
}
|
|
640
|
+
return AutoCompleteModule;
|
|
641
|
+
}());
|
|
642
|
+
AutoCompleteModule.decorators = [
|
|
643
|
+
{ type: NgModule, args: [{
|
|
644
|
+
imports: [CommonModule],
|
|
645
|
+
declarations: [
|
|
646
|
+
AutoCompleteComponent
|
|
647
|
+
],
|
|
648
|
+
exports: [
|
|
649
|
+
AutoCompleteComponent
|
|
650
|
+
]
|
|
651
|
+
},] },
|
|
652
|
+
];
|
|
653
|
+
/**
|
|
654
|
+
* @nocollapse
|
|
655
|
+
*/
|
|
656
|
+
AutoCompleteModule.ctorParameters = function () { return []; };
|
|
657
|
+
/**
|
|
658
|
+
* NgModule definition for the AutoComplete component with providers.
|
|
659
|
+
*/
|
|
660
|
+
var AutoCompleteAllModule = /** @class */ (function () {
|
|
661
|
+
function AutoCompleteAllModule() {
|
|
662
|
+
}
|
|
663
|
+
return AutoCompleteAllModule;
|
|
664
|
+
}());
|
|
665
|
+
AutoCompleteAllModule.decorators = [
|
|
666
|
+
{ type: NgModule, args: [{
|
|
667
|
+
imports: [CommonModule, AutoCompleteModule],
|
|
668
|
+
exports: [
|
|
669
|
+
AutoCompleteModule
|
|
670
|
+
],
|
|
671
|
+
providers: []
|
|
672
|
+
},] },
|
|
673
|
+
];
|
|
674
|
+
/**
|
|
675
|
+
* @nocollapse
|
|
676
|
+
*/
|
|
677
|
+
AutoCompleteAllModule.ctorParameters = function () { return []; };
|
|
678
|
+
var __decorate$3 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
679
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
680
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
681
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
682
|
+
else
|
|
683
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
684
|
+
if (d = decorators[i])
|
|
685
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
686
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
687
|
+
};
|
|
688
|
+
var __metadata$3 = (this && this.__metadata) || function (k, v) {
|
|
689
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
690
|
+
return Reflect.metadata(k, v);
|
|
691
|
+
};
|
|
692
|
+
var inputs$3 = ['actionFailureTemplate', 'addTagOnBlur', 'allowCustomValue', 'allowFiltering', 'allowObjectBinding', 'allowResize', 'changeOnBlur', 'closePopupOnSelect', 'cssClass', 'dataSource', 'debounceDelay', 'delimiterChar', 'enableGroupCheckBox', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enableSelectionOrder', 'enableVirtualization', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'groupTemplate', 'headerTemplate', 'hideSelectedItem', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'isDeviceFullScreen', 'itemTemplate', 'locale', 'maximumSelectionLength', 'mode', 'noRecordsTemplate', 'openOnClick', 'placeholder', 'popupHeight', 'popupWidth', 'query', 'readonly', 'selectAllText', 'showClearButton', 'showDropDownIcon', 'showSelectAll', 'sortOrder', 'text', 'unSelectAllText', 'value', 'valueTemplate', 'width', 'zIndex'];
|
|
693
|
+
var outputs$3 = ['actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'beforeSelectAll', 'blur', 'change', 'chipSelection', 'close', 'created', 'customValueSelection', 'dataBound', 'destroyed', 'filtering', 'focus', 'open', 'removed', 'removing', 'resizeStart', 'resizeStop', 'resizing', 'select', 'selectedAll', 'tagging', 'valueChange'];
|
|
694
|
+
var twoWays$3 = ['value'];
|
|
695
|
+
/**
|
|
696
|
+
* The MultiSelect allows the user to pick a values from the predefined list of values.
|
|
697
|
+
* ```html
|
|
698
|
+
* <ejs-multiselect></ejs-multiselect>
|
|
699
|
+
* ```
|
|
700
|
+
*/
|
|
701
|
+
var MultiSelectComponent = MultiSelectComponent_1 = /** @class */ (function (_super) {
|
|
702
|
+
__extends(MultiSelectComponent, _super);
|
|
703
|
+
/**
|
|
704
|
+
* @param {?} ngEle
|
|
705
|
+
* @param {?} srenderer
|
|
706
|
+
* @param {?} viewContainerRef
|
|
707
|
+
* @param {?} injector
|
|
708
|
+
* @param {?} cdr
|
|
709
|
+
*/
|
|
710
|
+
function MultiSelectComponent(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
711
|
+
var _this = _super.call(this) || this;
|
|
712
|
+
_this.ngEle = ngEle;
|
|
713
|
+
_this.srenderer = srenderer;
|
|
714
|
+
_this.viewContainerRef = viewContainerRef;
|
|
715
|
+
_this.injector = injector;
|
|
716
|
+
_this.cdr = cdr;
|
|
717
|
+
_this.skipFromEvent = true;
|
|
718
|
+
_this.element = _this.ngEle.nativeElement;
|
|
719
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
720
|
+
try {
|
|
721
|
+
var mod = _this.injector.get('DropDownsCheckBoxSelection');
|
|
722
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
723
|
+
_this.injectedModules.push(mod);
|
|
724
|
+
}
|
|
725
|
+
}
|
|
726
|
+
catch (_a) { }
|
|
727
|
+
try {
|
|
728
|
+
var mod = _this.injector.get('DropDownsVirtualScroll');
|
|
729
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
730
|
+
_this.injectedModules.push(mod);
|
|
731
|
+
}
|
|
732
|
+
}
|
|
733
|
+
catch (_b) { }
|
|
734
|
+
_this.registerEvents(outputs$3);
|
|
735
|
+
_this.addTwoWay.call(_this, twoWays$3);
|
|
736
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
737
|
+
_this.formContext = new FormBase();
|
|
738
|
+
_this.formCompContext = new ComponentBase();
|
|
739
|
+
return _this;
|
|
740
|
+
}
|
|
741
|
+
/**
|
|
742
|
+
* @param {?} registerFunction
|
|
743
|
+
* @return {?}
|
|
744
|
+
*/
|
|
745
|
+
MultiSelectComponent.prototype.registerOnChange = function (registerFunction) {
|
|
746
|
+
};
|
|
747
|
+
/**
|
|
748
|
+
* @param {?} registerFunction
|
|
749
|
+
* @return {?}
|
|
750
|
+
*/
|
|
751
|
+
MultiSelectComponent.prototype.registerOnTouched = function (registerFunction) {
|
|
752
|
+
};
|
|
753
|
+
/**
|
|
754
|
+
* @param {?} value
|
|
755
|
+
* @return {?}
|
|
756
|
+
*/
|
|
757
|
+
MultiSelectComponent.prototype.writeValue = function (value) {
|
|
758
|
+
};
|
|
759
|
+
/**
|
|
760
|
+
* @param {?} disabled
|
|
761
|
+
* @return {?}
|
|
762
|
+
*/
|
|
763
|
+
MultiSelectComponent.prototype.setDisabledState = function (disabled) {
|
|
764
|
+
};
|
|
765
|
+
/**
|
|
766
|
+
* @return {?}
|
|
767
|
+
*/
|
|
768
|
+
MultiSelectComponent.prototype.ngOnInit = function () {
|
|
769
|
+
this.formCompContext.ngOnInit(this);
|
|
770
|
+
};
|
|
771
|
+
/**
|
|
772
|
+
* @return {?}
|
|
773
|
+
*/
|
|
774
|
+
MultiSelectComponent.prototype.ngAfterViewInit = function () {
|
|
775
|
+
this.formContext.ngAfterViewInit(this);
|
|
776
|
+
};
|
|
777
|
+
/**
|
|
778
|
+
* @return {?}
|
|
779
|
+
*/
|
|
780
|
+
MultiSelectComponent.prototype.ngOnDestroy = function () {
|
|
781
|
+
this.formCompContext.ngOnDestroy(this);
|
|
782
|
+
};
|
|
783
|
+
/**
|
|
784
|
+
* @return {?}
|
|
785
|
+
*/
|
|
786
|
+
MultiSelectComponent.prototype.ngAfterContentChecked = function () {
|
|
787
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
788
|
+
};
|
|
789
|
+
return MultiSelectComponent;
|
|
790
|
+
}(MultiSelect));
|
|
791
|
+
MultiSelectComponent.decorators = [
|
|
792
|
+
{ type: Component, args: [{
|
|
793
|
+
selector: 'ejs-multiselect',
|
|
794
|
+
inputs: inputs$3,
|
|
795
|
+
outputs: outputs$3,
|
|
796
|
+
template: '',
|
|
797
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
798
|
+
providers: [
|
|
799
|
+
{
|
|
800
|
+
provide: NG_VALUE_ACCESSOR,
|
|
801
|
+
useExisting: forwardRef(function () { return MultiSelectComponent_1; }),
|
|
802
|
+
multi: true
|
|
803
|
+
}
|
|
804
|
+
],
|
|
805
|
+
queries: {}
|
|
806
|
+
},] },
|
|
807
|
+
];
|
|
808
|
+
/**
|
|
809
|
+
* @nocollapse
|
|
810
|
+
*/
|
|
811
|
+
MultiSelectComponent.ctorParameters = function () { return [
|
|
812
|
+
{ type: ElementRef, },
|
|
813
|
+
{ type: Renderer2, },
|
|
814
|
+
{ type: ViewContainerRef, },
|
|
815
|
+
{ type: Injector, },
|
|
816
|
+
{ type: ChangeDetectorRef, },
|
|
817
|
+
]; };
|
|
818
|
+
MultiSelectComponent.propDecorators = {
|
|
819
|
+
'footerTemplate': [{ type: ContentChild, args: ['footerTemplate',] },],
|
|
820
|
+
'headerTemplate': [{ type: ContentChild, args: ['headerTemplate',] },],
|
|
821
|
+
'valueTemplate': [{ type: ContentChild, args: ['valueTemplate',] },],
|
|
822
|
+
'itemTemplate': [{ type: ContentChild, args: ['itemTemplate',] },],
|
|
823
|
+
'groupTemplate': [{ type: ContentChild, args: ['groupTemplate',] },],
|
|
824
|
+
'noRecordsTemplate': [{ type: ContentChild, args: ['noRecordsTemplate',] },],
|
|
825
|
+
'actionFailureTemplate': [{ type: ContentChild, args: ['actionFailureTemplate',] },],
|
|
826
|
+
};
|
|
827
|
+
__decorate$3([
|
|
828
|
+
Template(),
|
|
829
|
+
__metadata$3("design:type", Object)
|
|
830
|
+
], MultiSelectComponent.prototype, "footerTemplate", void 0);
|
|
831
|
+
__decorate$3([
|
|
832
|
+
Template(),
|
|
833
|
+
__metadata$3("design:type", Object)
|
|
834
|
+
], MultiSelectComponent.prototype, "headerTemplate", void 0);
|
|
835
|
+
__decorate$3([
|
|
836
|
+
Template(),
|
|
837
|
+
__metadata$3("design:type", Object)
|
|
838
|
+
], MultiSelectComponent.prototype, "valueTemplate", void 0);
|
|
839
|
+
__decorate$3([
|
|
840
|
+
Template(),
|
|
841
|
+
__metadata$3("design:type", Object)
|
|
842
|
+
], MultiSelectComponent.prototype, "itemTemplate", void 0);
|
|
843
|
+
__decorate$3([
|
|
844
|
+
Template(),
|
|
845
|
+
__metadata$3("design:type", Object)
|
|
846
|
+
], MultiSelectComponent.prototype, "groupTemplate", void 0);
|
|
847
|
+
__decorate$3([
|
|
848
|
+
Template('No records found'),
|
|
849
|
+
__metadata$3("design:type", Object)
|
|
850
|
+
], MultiSelectComponent.prototype, "noRecordsTemplate", void 0);
|
|
851
|
+
__decorate$3([
|
|
852
|
+
Template('Request failed'),
|
|
853
|
+
__metadata$3("design:type", Object)
|
|
854
|
+
], MultiSelectComponent.prototype, "actionFailureTemplate", void 0);
|
|
855
|
+
MultiSelectComponent = MultiSelectComponent_1 = __decorate$3([
|
|
856
|
+
ComponentMixins([ComponentBase, FormBase]),
|
|
857
|
+
__metadata$3("design:paramtypes", [ElementRef,
|
|
858
|
+
Renderer2,
|
|
859
|
+
ViewContainerRef,
|
|
860
|
+
Injector,
|
|
861
|
+
ChangeDetectorRef])
|
|
862
|
+
], MultiSelectComponent);
|
|
863
|
+
var MultiSelectComponent_1;
|
|
864
|
+
/**
|
|
865
|
+
* NgModule definition for the MultiSelect component.
|
|
866
|
+
*/
|
|
867
|
+
var MultiSelectModule = /** @class */ (function () {
|
|
868
|
+
function MultiSelectModule() {
|
|
869
|
+
}
|
|
870
|
+
return MultiSelectModule;
|
|
871
|
+
}());
|
|
872
|
+
MultiSelectModule.decorators = [
|
|
873
|
+
{ type: NgModule, args: [{
|
|
874
|
+
imports: [CommonModule],
|
|
875
|
+
declarations: [
|
|
876
|
+
MultiSelectComponent
|
|
877
|
+
],
|
|
878
|
+
exports: [
|
|
879
|
+
MultiSelectComponent
|
|
880
|
+
]
|
|
881
|
+
},] },
|
|
882
|
+
];
|
|
883
|
+
/**
|
|
884
|
+
* @nocollapse
|
|
885
|
+
*/
|
|
886
|
+
MultiSelectModule.ctorParameters = function () { return []; };
|
|
887
|
+
var CheckBoxSelectionService = { provide: 'DropDownsCheckBoxSelection', useValue: CheckBoxSelection };
|
|
888
|
+
/**
|
|
889
|
+
* NgModule definition for the MultiSelect component with providers.
|
|
890
|
+
*/
|
|
891
|
+
var MultiSelectAllModule = /** @class */ (function () {
|
|
892
|
+
function MultiSelectAllModule() {
|
|
893
|
+
}
|
|
894
|
+
return MultiSelectAllModule;
|
|
895
|
+
}());
|
|
896
|
+
MultiSelectAllModule.decorators = [
|
|
897
|
+
{ type: NgModule, args: [{
|
|
898
|
+
imports: [CommonModule, MultiSelectModule],
|
|
899
|
+
exports: [
|
|
900
|
+
MultiSelectModule
|
|
901
|
+
],
|
|
902
|
+
providers: [
|
|
903
|
+
CheckBoxSelectionService
|
|
904
|
+
]
|
|
905
|
+
},] },
|
|
906
|
+
];
|
|
907
|
+
/**
|
|
908
|
+
* @nocollapse
|
|
909
|
+
*/
|
|
910
|
+
MultiSelectAllModule.ctorParameters = function () { return []; };
|
|
911
|
+
var __decorate$4 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
912
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
913
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
914
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
915
|
+
else
|
|
916
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
917
|
+
if (d = decorators[i])
|
|
918
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
919
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
920
|
+
};
|
|
921
|
+
var __metadata$4 = (this && this.__metadata) || function (k, v) {
|
|
922
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
923
|
+
return Reflect.metadata(k, v);
|
|
924
|
+
};
|
|
925
|
+
var inputs$4 = ['actionFailureTemplate', 'allowDragAndDrop', 'allowFiltering', 'cssClass', 'dataSource', 'enablePersistence', 'enableRtl', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'groupTemplate', 'height', 'ignoreAccent', 'ignoreCase', 'itemTemplate', 'locale', 'maximumSelectionLength', 'noRecordsTemplate', 'query', 'scope', 'selectionSettings', 'sortOrder', 'toolbarSettings', 'value', 'zIndex'];
|
|
926
|
+
var outputs$4 = ['focus', 'blur', 'actionBegin', 'actionComplete', 'actionFailure', 'beforeDrop', 'beforeItemRender', 'change', 'created', 'dataBound', 'destroyed', 'drag', 'dragStart', 'drop', 'filtering', 'select', 'valueChange'];
|
|
927
|
+
var twoWays$4 = ['value'];
|
|
928
|
+
/**
|
|
929
|
+
* The ListBox allows the user to select values from the predefined list of values.
|
|
930
|
+
* ```html
|
|
931
|
+
* <ejs-listbox [dataSource]='data'></ejs-listbox>
|
|
932
|
+
* ```
|
|
933
|
+
*/
|
|
934
|
+
var ListBoxComponent = ListBoxComponent_1 = /** @class */ (function (_super) {
|
|
935
|
+
__extends(ListBoxComponent, _super);
|
|
936
|
+
/**
|
|
937
|
+
* @param {?} ngEle
|
|
938
|
+
* @param {?} srenderer
|
|
939
|
+
* @param {?} viewContainerRef
|
|
940
|
+
* @param {?} injector
|
|
941
|
+
* @param {?} cdr
|
|
942
|
+
*/
|
|
943
|
+
function ListBoxComponent(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
944
|
+
var _this = _super.call(this) || this;
|
|
945
|
+
_this.ngEle = ngEle;
|
|
946
|
+
_this.srenderer = srenderer;
|
|
947
|
+
_this.viewContainerRef = viewContainerRef;
|
|
948
|
+
_this.injector = injector;
|
|
949
|
+
_this.cdr = cdr;
|
|
950
|
+
_this.element = _this.ngEle.nativeElement;
|
|
951
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
952
|
+
try {
|
|
953
|
+
var mod = _this.injector.get('DropDownsCheckBoxSelection');
|
|
954
|
+
if (_this.injectedModules.indexOf(mod) === -1) {
|
|
955
|
+
_this.injectedModules.push(mod);
|
|
956
|
+
}
|
|
957
|
+
}
|
|
958
|
+
catch (_a) { }
|
|
959
|
+
_this.registerEvents(outputs$4);
|
|
960
|
+
_this.addTwoWay.call(_this, twoWays$4);
|
|
961
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
962
|
+
_this.formContext = new FormBase();
|
|
963
|
+
_this.formCompContext = new ComponentBase();
|
|
964
|
+
return _this;
|
|
965
|
+
}
|
|
966
|
+
/**
|
|
967
|
+
* @param {?} registerFunction
|
|
968
|
+
* @return {?}
|
|
969
|
+
*/
|
|
970
|
+
ListBoxComponent.prototype.registerOnChange = function (registerFunction) {
|
|
971
|
+
};
|
|
972
|
+
/**
|
|
973
|
+
* @param {?} registerFunction
|
|
974
|
+
* @return {?}
|
|
975
|
+
*/
|
|
976
|
+
ListBoxComponent.prototype.registerOnTouched = function (registerFunction) {
|
|
977
|
+
};
|
|
978
|
+
/**
|
|
979
|
+
* @param {?} value
|
|
980
|
+
* @return {?}
|
|
981
|
+
*/
|
|
982
|
+
ListBoxComponent.prototype.writeValue = function (value) {
|
|
983
|
+
};
|
|
984
|
+
/**
|
|
985
|
+
* @param {?} disabled
|
|
986
|
+
* @return {?}
|
|
987
|
+
*/
|
|
988
|
+
ListBoxComponent.prototype.setDisabledState = function (disabled) {
|
|
989
|
+
};
|
|
990
|
+
/**
|
|
991
|
+
* @return {?}
|
|
992
|
+
*/
|
|
993
|
+
ListBoxComponent.prototype.ngOnInit = function () {
|
|
994
|
+
this.formCompContext.ngOnInit(this);
|
|
995
|
+
};
|
|
996
|
+
/**
|
|
997
|
+
* @return {?}
|
|
998
|
+
*/
|
|
999
|
+
ListBoxComponent.prototype.ngAfterViewInit = function () {
|
|
1000
|
+
this.formContext.ngAfterViewInit(this);
|
|
1001
|
+
};
|
|
1002
|
+
/**
|
|
1003
|
+
* @return {?}
|
|
1004
|
+
*/
|
|
1005
|
+
ListBoxComponent.prototype.ngOnDestroy = function () {
|
|
1006
|
+
this.formCompContext.ngOnDestroy(this);
|
|
1007
|
+
};
|
|
1008
|
+
/**
|
|
1009
|
+
* @return {?}
|
|
1010
|
+
*/
|
|
1011
|
+
ListBoxComponent.prototype.ngAfterContentChecked = function () {
|
|
1012
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
1013
|
+
};
|
|
1014
|
+
return ListBoxComponent;
|
|
1015
|
+
}(ListBox));
|
|
1016
|
+
ListBoxComponent.decorators = [
|
|
1017
|
+
{ type: Component, args: [{
|
|
1018
|
+
selector: 'ejs-listbox',
|
|
1019
|
+
inputs: inputs$4,
|
|
1020
|
+
outputs: outputs$4,
|
|
1021
|
+
template: '',
|
|
1022
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1023
|
+
providers: [
|
|
1024
|
+
{
|
|
1025
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1026
|
+
useExisting: forwardRef(function () { return ListBoxComponent_1; }),
|
|
1027
|
+
multi: true
|
|
1028
|
+
}
|
|
1029
|
+
],
|
|
1030
|
+
queries: {}
|
|
1031
|
+
},] },
|
|
1032
|
+
];
|
|
1033
|
+
/**
|
|
1034
|
+
* @nocollapse
|
|
1035
|
+
*/
|
|
1036
|
+
ListBoxComponent.ctorParameters = function () { return [
|
|
1037
|
+
{ type: ElementRef, },
|
|
1038
|
+
{ type: Renderer2, },
|
|
1039
|
+
{ type: ViewContainerRef, },
|
|
1040
|
+
{ type: Injector, },
|
|
1041
|
+
{ type: ChangeDetectorRef, },
|
|
1042
|
+
]; };
|
|
1043
|
+
ListBoxComponent.propDecorators = {
|
|
1044
|
+
'itemTemplate': [{ type: ContentChild, args: ['itemTemplate',] },],
|
|
1045
|
+
'noRecordsTemplate': [{ type: ContentChild, args: ['noRecordsTemplate',] },],
|
|
1046
|
+
};
|
|
1047
|
+
__decorate$4([
|
|
1048
|
+
Template(),
|
|
1049
|
+
__metadata$4("design:type", Object)
|
|
1050
|
+
], ListBoxComponent.prototype, "itemTemplate", void 0);
|
|
1051
|
+
__decorate$4([
|
|
1052
|
+
Template('No records found'),
|
|
1053
|
+
__metadata$4("design:type", Object)
|
|
1054
|
+
], ListBoxComponent.prototype, "noRecordsTemplate", void 0);
|
|
1055
|
+
ListBoxComponent = ListBoxComponent_1 = __decorate$4([
|
|
1056
|
+
ComponentMixins([ComponentBase, FormBase]),
|
|
1057
|
+
__metadata$4("design:paramtypes", [ElementRef,
|
|
1058
|
+
Renderer2,
|
|
1059
|
+
ViewContainerRef,
|
|
1060
|
+
Injector,
|
|
1061
|
+
ChangeDetectorRef])
|
|
1062
|
+
], ListBoxComponent);
|
|
1063
|
+
var ListBoxComponent_1;
|
|
1064
|
+
/**
|
|
1065
|
+
* NgModule definition for the ListBox component.
|
|
1066
|
+
*/
|
|
1067
|
+
var ListBoxModule = /** @class */ (function () {
|
|
1068
|
+
function ListBoxModule() {
|
|
1069
|
+
}
|
|
1070
|
+
return ListBoxModule;
|
|
1071
|
+
}());
|
|
1072
|
+
ListBoxModule.decorators = [
|
|
1073
|
+
{ type: NgModule, args: [{
|
|
1074
|
+
imports: [CommonModule],
|
|
1075
|
+
declarations: [
|
|
1076
|
+
ListBoxComponent
|
|
1077
|
+
],
|
|
1078
|
+
exports: [
|
|
1079
|
+
ListBoxComponent
|
|
1080
|
+
]
|
|
1081
|
+
},] },
|
|
1082
|
+
];
|
|
1083
|
+
/**
|
|
1084
|
+
* @nocollapse
|
|
1085
|
+
*/
|
|
1086
|
+
ListBoxModule.ctorParameters = function () { return []; };
|
|
1087
|
+
/**
|
|
1088
|
+
* NgModule definition for the ListBox component with providers.
|
|
1089
|
+
*/
|
|
1090
|
+
var ListBoxAllModule = /** @class */ (function () {
|
|
1091
|
+
function ListBoxAllModule() {
|
|
1092
|
+
}
|
|
1093
|
+
return ListBoxAllModule;
|
|
1094
|
+
}());
|
|
1095
|
+
ListBoxAllModule.decorators = [
|
|
1096
|
+
{ type: NgModule, args: [{
|
|
1097
|
+
imports: [CommonModule, ListBoxModule],
|
|
1098
|
+
exports: [
|
|
1099
|
+
ListBoxModule
|
|
1100
|
+
],
|
|
1101
|
+
providers: []
|
|
1102
|
+
},] },
|
|
1103
|
+
];
|
|
1104
|
+
/**
|
|
1105
|
+
* @nocollapse
|
|
1106
|
+
*/
|
|
1107
|
+
ListBoxAllModule.ctorParameters = function () { return []; };
|
|
1108
|
+
var __decorate$5 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
1109
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1110
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1111
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1112
|
+
else
|
|
1113
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1114
|
+
if (d = decorators[i])
|
|
1115
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1116
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1117
|
+
};
|
|
1118
|
+
var __metadata$5 = (this && this.__metadata) || function (k, v) {
|
|
1119
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1120
|
+
return Reflect.metadata(k, v);
|
|
1121
|
+
};
|
|
1122
|
+
var inputs$5 = ['actionFailureTemplate', 'allowFiltering', 'allowMultiSelection', 'changeOnBlur', 'cssClass', 'customTemplate', 'delimiterChar', 'destroyPopupOnHide', 'enableHtmlSanitizer', 'enablePersistence', 'enableRtl', 'enabled', 'fields', 'filterBarPlaceholder', 'filterType', 'floatLabelType', 'footerTemplate', 'headerTemplate', 'htmlAttributes', 'ignoreAccent', 'ignoreCase', 'itemTemplate', 'locale', 'mode', 'noRecordsTemplate', 'placeholder', 'popupHeight', 'popupWidth', 'readonly', 'selectAllText', 'showCheckBox', 'showClearButton', 'showDropDownIcon', 'showSelectAll', 'sortOrder', 'text', 'treeSettings', 'unSelectAllText', 'value', 'valueTemplate', 'width', 'wrapText', 'zIndex'];
|
|
1123
|
+
var outputs$5 = ['actionFailure', 'beforeOpen', 'blur', 'change', 'close', 'created', 'dataBound', 'destroyed', 'filtering', 'focus', 'keyPress', 'open', 'select', 'valueChange'];
|
|
1124
|
+
var twoWays$5 = ['value'];
|
|
1125
|
+
/**
|
|
1126
|
+
* The DropDownTree component contains a list of predefined values from which you can choose a single or multiple values.
|
|
1127
|
+
* ```html
|
|
1128
|
+
* <ejs-dropdowntree></ejs-dropdowntree>
|
|
1129
|
+
* ```
|
|
1130
|
+
*/
|
|
1131
|
+
var DropDownTreeComponent = DropDownTreeComponent_1 = /** @class */ (function (_super) {
|
|
1132
|
+
__extends(DropDownTreeComponent, _super);
|
|
1133
|
+
/**
|
|
1134
|
+
* @param {?} ngEle
|
|
1135
|
+
* @param {?} srenderer
|
|
1136
|
+
* @param {?} viewContainerRef
|
|
1137
|
+
* @param {?} injector
|
|
1138
|
+
* @param {?} cdr
|
|
1139
|
+
*/
|
|
1140
|
+
function DropDownTreeComponent(ngEle, srenderer, viewContainerRef, injector, cdr) {
|
|
1141
|
+
var _this = _super.call(this) || this;
|
|
1142
|
+
_this.ngEle = ngEle;
|
|
1143
|
+
_this.srenderer = srenderer;
|
|
1144
|
+
_this.viewContainerRef = viewContainerRef;
|
|
1145
|
+
_this.injector = injector;
|
|
1146
|
+
_this.cdr = cdr;
|
|
1147
|
+
_this.skipFromEvent = true;
|
|
1148
|
+
_this.element = _this.ngEle.nativeElement;
|
|
1149
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
1150
|
+
_this.registerEvents(outputs$5);
|
|
1151
|
+
_this.addTwoWay.call(_this, twoWays$5);
|
|
1152
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
1153
|
+
_this.formContext = new FormBase();
|
|
1154
|
+
_this.formCompContext = new ComponentBase();
|
|
1155
|
+
return _this;
|
|
1156
|
+
}
|
|
1157
|
+
/**
|
|
1158
|
+
* @param {?} registerFunction
|
|
1159
|
+
* @return {?}
|
|
1160
|
+
*/
|
|
1161
|
+
DropDownTreeComponent.prototype.registerOnChange = function (registerFunction) {
|
|
1162
|
+
};
|
|
1163
|
+
/**
|
|
1164
|
+
* @param {?} registerFunction
|
|
1165
|
+
* @return {?}
|
|
1166
|
+
*/
|
|
1167
|
+
DropDownTreeComponent.prototype.registerOnTouched = function (registerFunction) {
|
|
1168
|
+
};
|
|
1169
|
+
/**
|
|
1170
|
+
* @param {?} value
|
|
1171
|
+
* @return {?}
|
|
1172
|
+
*/
|
|
1173
|
+
DropDownTreeComponent.prototype.writeValue = function (value) {
|
|
1174
|
+
};
|
|
1175
|
+
/**
|
|
1176
|
+
* @param {?} disabled
|
|
1177
|
+
* @return {?}
|
|
1178
|
+
*/
|
|
1179
|
+
DropDownTreeComponent.prototype.setDisabledState = function (disabled) {
|
|
1180
|
+
};
|
|
1181
|
+
/**
|
|
1182
|
+
* @return {?}
|
|
1183
|
+
*/
|
|
1184
|
+
DropDownTreeComponent.prototype.ngOnInit = function () {
|
|
1185
|
+
this.formCompContext.ngOnInit(this);
|
|
1186
|
+
};
|
|
1187
|
+
/**
|
|
1188
|
+
* @return {?}
|
|
1189
|
+
*/
|
|
1190
|
+
DropDownTreeComponent.prototype.ngAfterViewInit = function () {
|
|
1191
|
+
this.formContext.ngAfterViewInit(this);
|
|
1192
|
+
};
|
|
1193
|
+
/**
|
|
1194
|
+
* @return {?}
|
|
1195
|
+
*/
|
|
1196
|
+
DropDownTreeComponent.prototype.ngOnDestroy = function () {
|
|
1197
|
+
this.formCompContext.ngOnDestroy(this);
|
|
1198
|
+
};
|
|
1199
|
+
/**
|
|
1200
|
+
* @return {?}
|
|
1201
|
+
*/
|
|
1202
|
+
DropDownTreeComponent.prototype.ngAfterContentChecked = function () {
|
|
1203
|
+
this.formCompContext.ngAfterContentChecked(this);
|
|
1204
|
+
};
|
|
1205
|
+
return DropDownTreeComponent;
|
|
1206
|
+
}(DropDownTree));
|
|
1207
|
+
DropDownTreeComponent.decorators = [
|
|
1208
|
+
{ type: Component, args: [{
|
|
1209
|
+
selector: 'ejs-dropdowntree',
|
|
1210
|
+
inputs: inputs$5,
|
|
1211
|
+
outputs: outputs$5,
|
|
1212
|
+
template: '',
|
|
1213
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1214
|
+
providers: [
|
|
1215
|
+
{
|
|
1216
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1217
|
+
useExisting: forwardRef(function () { return DropDownTreeComponent_1; }),
|
|
1218
|
+
multi: true
|
|
1219
|
+
}
|
|
1220
|
+
],
|
|
1221
|
+
queries: {}
|
|
1222
|
+
},] },
|
|
1223
|
+
];
|
|
1224
|
+
/**
|
|
1225
|
+
* @nocollapse
|
|
1226
|
+
*/
|
|
1227
|
+
DropDownTreeComponent.ctorParameters = function () { return [
|
|
1228
|
+
{ type: ElementRef, },
|
|
1229
|
+
{ type: Renderer2, },
|
|
1230
|
+
{ type: ViewContainerRef, },
|
|
1231
|
+
{ type: Injector, },
|
|
1232
|
+
{ type: ChangeDetectorRef, },
|
|
1233
|
+
]; };
|
|
1234
|
+
DropDownTreeComponent.propDecorators = {
|
|
1235
|
+
'footerTemplate': [{ type: ContentChild, args: ['footerTemplate',] },],
|
|
1236
|
+
'headerTemplate': [{ type: ContentChild, args: ['headerTemplate',] },],
|
|
1237
|
+
'valueTemplate': [{ type: ContentChild, args: ['valueTemplate',] },],
|
|
1238
|
+
'itemTemplate': [{ type: ContentChild, args: ['itemTemplate',] },],
|
|
1239
|
+
'noRecordsTemplate': [{ type: ContentChild, args: ['noRecordsTemplate',] },],
|
|
1240
|
+
'actionFailureTemplate': [{ type: ContentChild, args: ['actionFailureTemplate',] },],
|
|
1241
|
+
};
|
|
1242
|
+
__decorate$5([
|
|
1243
|
+
Template(),
|
|
1244
|
+
__metadata$5("design:type", Object)
|
|
1245
|
+
], DropDownTreeComponent.prototype, "footerTemplate", void 0);
|
|
1246
|
+
__decorate$5([
|
|
1247
|
+
Template(),
|
|
1248
|
+
__metadata$5("design:type", Object)
|
|
1249
|
+
], DropDownTreeComponent.prototype, "headerTemplate", void 0);
|
|
1250
|
+
__decorate$5([
|
|
1251
|
+
Template(),
|
|
1252
|
+
__metadata$5("design:type", Object)
|
|
1253
|
+
], DropDownTreeComponent.prototype, "valueTemplate", void 0);
|
|
1254
|
+
__decorate$5([
|
|
1255
|
+
Template(),
|
|
1256
|
+
__metadata$5("design:type", Object)
|
|
1257
|
+
], DropDownTreeComponent.prototype, "itemTemplate", void 0);
|
|
1258
|
+
__decorate$5([
|
|
1259
|
+
Template('No Records Found'),
|
|
1260
|
+
__metadata$5("design:type", Object)
|
|
1261
|
+
], DropDownTreeComponent.prototype, "noRecordsTemplate", void 0);
|
|
1262
|
+
__decorate$5([
|
|
1263
|
+
Template('The Request Failed'),
|
|
1264
|
+
__metadata$5("design:type", Object)
|
|
1265
|
+
], DropDownTreeComponent.prototype, "actionFailureTemplate", void 0);
|
|
1266
|
+
DropDownTreeComponent = DropDownTreeComponent_1 = __decorate$5([
|
|
1267
|
+
ComponentMixins([ComponentBase, FormBase]),
|
|
1268
|
+
__metadata$5("design:paramtypes", [ElementRef,
|
|
1269
|
+
Renderer2,
|
|
1270
|
+
ViewContainerRef,
|
|
1271
|
+
Injector,
|
|
1272
|
+
ChangeDetectorRef])
|
|
1273
|
+
], DropDownTreeComponent);
|
|
1274
|
+
var DropDownTreeComponent_1;
|
|
1275
|
+
/**
|
|
1276
|
+
* NgModule definition for the DropDownTree component.
|
|
1277
|
+
*/
|
|
1278
|
+
var DropDownTreeModule = /** @class */ (function () {
|
|
1279
|
+
function DropDownTreeModule() {
|
|
1280
|
+
}
|
|
1281
|
+
return DropDownTreeModule;
|
|
1282
|
+
}());
|
|
1283
|
+
DropDownTreeModule.decorators = [
|
|
1284
|
+
{ type: NgModule, args: [{
|
|
1285
|
+
imports: [CommonModule],
|
|
1286
|
+
declarations: [
|
|
1287
|
+
DropDownTreeComponent
|
|
1288
|
+
],
|
|
1289
|
+
exports: [
|
|
1290
|
+
DropDownTreeComponent
|
|
1291
|
+
]
|
|
1292
|
+
},] },
|
|
1293
|
+
];
|
|
1294
|
+
/**
|
|
1295
|
+
* @nocollapse
|
|
1296
|
+
*/
|
|
1297
|
+
DropDownTreeModule.ctorParameters = function () { return []; };
|
|
1298
|
+
/**
|
|
1299
|
+
* NgModule definition for the DropDownTree component with providers.
|
|
1300
|
+
*/
|
|
1301
|
+
var DropDownTreeAllModule = /** @class */ (function () {
|
|
1302
|
+
function DropDownTreeAllModule() {
|
|
1303
|
+
}
|
|
1304
|
+
return DropDownTreeAllModule;
|
|
1305
|
+
}());
|
|
1306
|
+
DropDownTreeAllModule.decorators = [
|
|
1307
|
+
{ type: NgModule, args: [{
|
|
1308
|
+
imports: [CommonModule, DropDownTreeModule],
|
|
1309
|
+
exports: [
|
|
1310
|
+
DropDownTreeModule
|
|
1311
|
+
],
|
|
1312
|
+
providers: []
|
|
1313
|
+
},] },
|
|
1314
|
+
];
|
|
1315
|
+
/**
|
|
1316
|
+
* @nocollapse
|
|
1317
|
+
*/
|
|
1318
|
+
DropDownTreeAllModule.ctorParameters = function () { return []; };
|
|
1319
|
+
var __decorate$6 = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
1320
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
1321
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
1322
|
+
r = Reflect.decorate(decorators, target, key, desc);
|
|
1323
|
+
else
|
|
1324
|
+
for (var i = decorators.length - 1; i >= 0; i--)
|
|
1325
|
+
if (d = decorators[i])
|
|
1326
|
+
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
1327
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
1328
|
+
};
|
|
1329
|
+
var __metadata$6 = (this && this.__metadata) || function (k, v) {
|
|
1330
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
1331
|
+
return Reflect.metadata(k, v);
|
|
1332
|
+
};
|
|
1333
|
+
var inputs$6 = ['allowSpaces', 'cssClass', 'dataSource', 'debounceDelay', 'displayTemplate', 'fields', 'filterType', 'highlight', 'ignoreCase', 'itemTemplate', 'locale', 'mentionChar', 'minLength', 'noRecordsTemplate', 'popupHeight', 'popupWidth', 'query', 'requireLeadingSpace', 'showMentionChar', 'sortOrder', 'spinnerTemplate', 'suffixText', 'suggestionCount', 'target'];
|
|
1334
|
+
var outputs$6 = ['actionBegin', 'actionComplete', 'actionFailure', 'beforeOpen', 'change', 'closed', 'created', 'destroyed', 'filtering', 'opened', 'select'];
|
|
1335
|
+
var twoWays$6 = [''];
|
|
1336
|
+
/**
|
|
1337
|
+
* The Mention component contains a list of predefined values, from which the user can choose a single value.
|
|
1338
|
+
* ```html
|
|
1339
|
+
* <ejs-mention></ejs-mention>
|
|
1340
|
+
* ```
|
|
1341
|
+
*/
|
|
1342
|
+
var MentionComponent = /** @class */ (function (_super) {
|
|
1343
|
+
__extends(MentionComponent, _super);
|
|
1344
|
+
/**
|
|
1345
|
+
* @param {?} ngEle
|
|
1346
|
+
* @param {?} srenderer
|
|
1347
|
+
* @param {?} viewContainerRef
|
|
1348
|
+
* @param {?} injector
|
|
1349
|
+
*/
|
|
1350
|
+
function MentionComponent(ngEle, srenderer, viewContainerRef, injector) {
|
|
1351
|
+
var _this = _super.call(this) || this;
|
|
1352
|
+
_this.ngEle = ngEle;
|
|
1353
|
+
_this.srenderer = srenderer;
|
|
1354
|
+
_this.viewContainerRef = viewContainerRef;
|
|
1355
|
+
_this.injector = injector;
|
|
1356
|
+
_this.element = _this.ngEle.nativeElement;
|
|
1357
|
+
_this.injectedModules = _this.injectedModules || [];
|
|
1358
|
+
_this.registerEvents(outputs$6);
|
|
1359
|
+
_this.addTwoWay.call(_this, twoWays$6);
|
|
1360
|
+
setValue('currentInstance', _this, _this.viewContainerRef);
|
|
1361
|
+
_this.containerContext = new ComponentBase();
|
|
1362
|
+
return _this;
|
|
1363
|
+
}
|
|
1364
|
+
/**
|
|
1365
|
+
* @return {?}
|
|
1366
|
+
*/
|
|
1367
|
+
MentionComponent.prototype.ngOnInit = function () {
|
|
1368
|
+
this.containerContext.ngOnInit(this);
|
|
1369
|
+
};
|
|
1370
|
+
/**
|
|
1371
|
+
* @return {?}
|
|
1372
|
+
*/
|
|
1373
|
+
MentionComponent.prototype.ngAfterViewInit = function () {
|
|
1374
|
+
this.containerContext.ngAfterViewInit(this);
|
|
1375
|
+
};
|
|
1376
|
+
/**
|
|
1377
|
+
* @return {?}
|
|
1378
|
+
*/
|
|
1379
|
+
MentionComponent.prototype.ngOnDestroy = function () {
|
|
1380
|
+
this.containerContext.ngOnDestroy(this);
|
|
1381
|
+
};
|
|
1382
|
+
/**
|
|
1383
|
+
* @return {?}
|
|
1384
|
+
*/
|
|
1385
|
+
MentionComponent.prototype.ngAfterContentChecked = function () {
|
|
1386
|
+
this.containerContext.ngAfterContentChecked(this);
|
|
1387
|
+
};
|
|
1388
|
+
return MentionComponent;
|
|
1389
|
+
}(Mention));
|
|
1390
|
+
MentionComponent.decorators = [
|
|
1391
|
+
{ type: Component, args: [{
|
|
1392
|
+
selector: 'ejs-mention',
|
|
1393
|
+
inputs: inputs$6,
|
|
1394
|
+
outputs: outputs$6,
|
|
1395
|
+
template: "<ng-content ></ng-content>",
|
|
1396
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1397
|
+
queries: {}
|
|
1398
|
+
},] },
|
|
1399
|
+
];
|
|
1400
|
+
/**
|
|
1401
|
+
* @nocollapse
|
|
1402
|
+
*/
|
|
1403
|
+
MentionComponent.ctorParameters = function () { return [
|
|
1404
|
+
{ type: ElementRef, },
|
|
1405
|
+
{ type: Renderer2, },
|
|
1406
|
+
{ type: ViewContainerRef, },
|
|
1407
|
+
{ type: Injector, },
|
|
1408
|
+
]; };
|
|
1409
|
+
MentionComponent.propDecorators = {
|
|
1410
|
+
'displayTemplate': [{ type: ContentChild, args: ['displayTemplate',] },],
|
|
1411
|
+
'itemTemplate': [{ type: ContentChild, args: ['itemTemplate',] },],
|
|
1412
|
+
'spinnerTemplate': [{ type: ContentChild, args: ['spinnerTemplate',] },],
|
|
1413
|
+
'noRecordsTemplate': [{ type: ContentChild, args: ['noRecordsTemplate',] },],
|
|
1414
|
+
};
|
|
1415
|
+
__decorate$6([
|
|
1416
|
+
Template(),
|
|
1417
|
+
__metadata$6("design:type", Object)
|
|
1418
|
+
], MentionComponent.prototype, "displayTemplate", void 0);
|
|
1419
|
+
__decorate$6([
|
|
1420
|
+
Template(),
|
|
1421
|
+
__metadata$6("design:type", Object)
|
|
1422
|
+
], MentionComponent.prototype, "itemTemplate", void 0);
|
|
1423
|
+
__decorate$6([
|
|
1424
|
+
Template(),
|
|
1425
|
+
__metadata$6("design:type", Object)
|
|
1426
|
+
], MentionComponent.prototype, "spinnerTemplate", void 0);
|
|
1427
|
+
__decorate$6([
|
|
1428
|
+
Template('No records found'),
|
|
1429
|
+
__metadata$6("design:type", Object)
|
|
1430
|
+
], MentionComponent.prototype, "noRecordsTemplate", void 0);
|
|
1431
|
+
MentionComponent = __decorate$6([
|
|
1432
|
+
ComponentMixins([ComponentBase]),
|
|
1433
|
+
__metadata$6("design:paramtypes", [ElementRef,
|
|
1434
|
+
Renderer2,
|
|
1435
|
+
ViewContainerRef,
|
|
1436
|
+
Injector])
|
|
1437
|
+
], MentionComponent);
|
|
1438
|
+
/**
|
|
1439
|
+
* NgModule definition for the Mention component.
|
|
1440
|
+
*/
|
|
1441
|
+
var MentionModule = /** @class */ (function () {
|
|
1442
|
+
function MentionModule() {
|
|
1443
|
+
}
|
|
1444
|
+
return MentionModule;
|
|
1445
|
+
}());
|
|
1446
|
+
MentionModule.decorators = [
|
|
1447
|
+
{ type: NgModule, args: [{
|
|
1448
|
+
imports: [CommonModule],
|
|
1449
|
+
declarations: [
|
|
1450
|
+
MentionComponent
|
|
1451
|
+
],
|
|
1452
|
+
exports: [
|
|
1453
|
+
MentionComponent
|
|
1454
|
+
]
|
|
1455
|
+
},] },
|
|
1456
|
+
];
|
|
1457
|
+
/**
|
|
1458
|
+
* @nocollapse
|
|
1459
|
+
*/
|
|
1460
|
+
MentionModule.ctorParameters = function () { return []; };
|
|
1461
|
+
/**
|
|
1462
|
+
* NgModule definition for the Mention component with providers.
|
|
1463
|
+
*/
|
|
1464
|
+
var MentionAllModule = /** @class */ (function () {
|
|
1465
|
+
function MentionAllModule() {
|
|
1466
|
+
}
|
|
1467
|
+
return MentionAllModule;
|
|
1468
|
+
}());
|
|
1469
|
+
MentionAllModule.decorators = [
|
|
1470
|
+
{ type: NgModule, args: [{
|
|
1471
|
+
imports: [CommonModule, MentionModule],
|
|
1472
|
+
exports: [
|
|
1473
|
+
MentionModule
|
|
1474
|
+
],
|
|
1475
|
+
providers: []
|
|
1476
|
+
},] },
|
|
1477
|
+
];
|
|
1478
|
+
/**
|
|
1479
|
+
* @nocollapse
|
|
1480
|
+
*/
|
|
1481
|
+
MentionAllModule.ctorParameters = function () { return []; };
|
|
1482
|
+
/**
|
|
1483
|
+
* Generated bundle index. Do not edit.
|
|
1484
|
+
*/
|
|
1485
|
+
export { DropDownListComponent, DropDownListModule, DropDownListAllModule, VirtualScrollService, ComboBoxComponent, ComboBoxModule, ComboBoxAllModule, AutoCompleteComponent, AutoCompleteModule, AutoCompleteAllModule, MultiSelectComponent, MultiSelectModule, MultiSelectAllModule, CheckBoxSelectionService, ListBoxComponent, ListBoxModule, ListBoxAllModule, DropDownTreeComponent, DropDownTreeModule, DropDownTreeAllModule, MentionComponent, MentionModule, MentionAllModule, inputs$2 as ɵe, outputs$2 as ɵf, inputs$1 as ɵc, outputs$1 as ɵd, inputs as ɵa, outputs as ɵb, inputs$5 as ɵk, outputs$5 as ɵl, inputs$4 as ɵi, outputs$4 as ɵj, inputs$6 as ɵm, outputs$6 as ɵn, inputs$3 as ɵg, outputs$3 as ɵh };
|
|
1486
|
+
export { incrementalSearch, Search, escapeCharRegExp, resetIncrementalSearchValues, highlightSearch, revertHighlightSearch, VirtualScroll, FieldSettings, dropDownBaseClasses, DropDownBase, dropDownListClasses, DropDownList, Fields, TreeSettings, DropDownTree, ComboBox, AutoComplete, MultiSelect, CheckBoxSelection, createFloatLabel, updateFloatLabelState, removeFloating, setPlaceHolder, floatLabelFocus, floatLabelBlur, encodePlaceholder, SelectionSettings, ToolbarSettings, ListBox, Mention } from '@syncfusion/ej2-dropdowns';
|
|
1487
|
+
//# sourceMappingURL=ej2-angular-dropdowns.es5.js.map
|