@ng-select/ng-option-highlight 0.0.3 → 0.0.7
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/ng-option-highlight.directive.mjs +54 -0
- package/esm2020/lib/ng-option-highlight.module.mjs +16 -0
- package/{esm2015/lib/search-helper.js → esm2020/lib/search-helper.mjs} +2 -18
- package/esm2020/ng-select-ng-option-highlight.mjs +5 -0
- package/esm2020/public-api.mjs +6 -0
- package/fesm2015/ng-select-ng-option-highlight.mjs +77 -0
- package/fesm2015/ng-select-ng-option-highlight.mjs.map +1 -0
- package/fesm2020/ng-select-ng-option-highlight.mjs +77 -0
- package/fesm2020/ng-select-ng-option-highlight.mjs.map +1 -0
- package/lib/ng-option-highlight.directive.d.ts +5 -1
- package/lib/ng-option-highlight.module.d.ts +5 -0
- package/ng-select-ng-option-highlight.d.ts +1 -0
- package/package.json +23 -13
- package/bundles/ng-select-ng-option-highlight.umd.js +0 -136
- package/bundles/ng-select-ng-option-highlight.umd.js.map +0 -1
- package/bundles/ng-select-ng-option-highlight.umd.min.js +0 -2
- package/bundles/ng-select-ng-option-highlight.umd.min.js.map +0 -1
- package/esm2015/lib/ng-option-highlight.directive.js +0 -111
- package/esm2015/lib/ng-option-highlight.module.js +0 -15
- package/esm2015/ng-select-ng-option-highlight.js +0 -9
- package/esm2015/public-api.js +0 -10
- package/esm5/lib/ng-option-highlight.directive.js +0 -133
- package/esm5/lib/ng-option-highlight.module.js +0 -19
- package/esm5/lib/search-helper.js +0 -862
- package/esm5/ng-select-ng-option-highlight.js +0 -9
- package/esm5/public-api.js +0 -10
- package/fesm2015/ng-select-ng-option-highlight.js +0 -103
- package/fesm2015/ng-select-ng-option-highlight.js.map +0 -1
- package/fesm5/ng-select-ng-option-highlight.js +0 -127
- package/fesm5/ng-select-ng-option-highlight.js.map +0 -1
- package/ng-select-ng-option-highlight.metadata.json +0 -1
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* Generated bundle index. Do not edit.
|
|
7
|
-
*/
|
|
8
|
-
export { NgOptionHighlightDirective, NgOptionHighlightModule } from './public-api';
|
|
9
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmctc2VsZWN0LW5nLW9wdGlvbi1oaWdobGlnaHQuanMiLCJzb3VyY2VSb290Ijoibmc6Ly9Abmctc2VsZWN0L25nLW9wdGlvbi1oaWdobGlnaHQvIiwic291cmNlcyI6WyJuZy1zZWxlY3Qtbmctb3B0aW9uLWhpZ2hsaWdodC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7O0FBSUEsb0VBQWMsY0FBYyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLyoqXG4gKiBHZW5lcmF0ZWQgYnVuZGxlIGluZGV4LiBEbyBub3QgZWRpdC5cbiAqL1xuXG5leHBvcnQgKiBmcm9tICcuL3B1YmxpYy1hcGknO1xuIl19
|
package/esm5/public-api.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview added by tsickle
|
|
3
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
4
|
-
*/
|
|
5
|
-
/*
|
|
6
|
-
* Public API Surface of ng-option-highlight
|
|
7
|
-
*/
|
|
8
|
-
export { NgOptionHighlightDirective } from './lib/ng-option-highlight.directive';
|
|
9
|
-
export { NgOptionHighlightModule } from './lib/ng-option-highlight.module';
|
|
10
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL0BuZy1zZWxlY3Qvbmctb3B0aW9uLWhpZ2hsaWdodC8iLCJzb3VyY2VzIjpbInB1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7OztBQUlBLDJDQUFjLHFDQUFxQyxDQUFDO0FBQ3BELHdDQUFjLGtDQUFrQyxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcbiAqIFB1YmxpYyBBUEkgU3VyZmFjZSBvZiBuZy1vcHRpb24taGlnaGxpZ2h0XG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9saWIvbmctb3B0aW9uLWhpZ2hsaWdodC5kaXJlY3RpdmUnO1xuZXhwb3J0ICogZnJvbSAnLi9saWIvbmctb3B0aW9uLWhpZ2hsaWdodC5tb2R1bGUnO1xuIl19
|
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, Renderer2, Input, NgModule } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview added by tsickle
|
|
5
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6
|
-
*/
|
|
7
|
-
class NgOptionHighlightDirective {
|
|
8
|
-
/**
|
|
9
|
-
* @param {?} elementRef
|
|
10
|
-
* @param {?} renderer
|
|
11
|
-
*/
|
|
12
|
-
constructor(elementRef, renderer) {
|
|
13
|
-
this.elementRef = elementRef;
|
|
14
|
-
this.renderer = renderer;
|
|
15
|
-
this.element = this.elementRef.nativeElement;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* @return {?}
|
|
19
|
-
*/
|
|
20
|
-
ngOnChanges() {
|
|
21
|
-
if (this._canHighlight) {
|
|
22
|
-
this._highlightLabel();
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
/**
|
|
26
|
-
* @return {?}
|
|
27
|
-
*/
|
|
28
|
-
ngAfterViewInit() {
|
|
29
|
-
this.label = this.element.innerHTML;
|
|
30
|
-
if (this._canHighlight) {
|
|
31
|
-
this._highlightLabel();
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @private
|
|
36
|
-
* @return {?}
|
|
37
|
-
*/
|
|
38
|
-
_highlightLabel() {
|
|
39
|
-
/** @type {?} */
|
|
40
|
-
const label = this.label;
|
|
41
|
-
if (!this.term) {
|
|
42
|
-
this._setInnerHtml(label);
|
|
43
|
-
return;
|
|
44
|
-
}
|
|
45
|
-
/** @type {?} */
|
|
46
|
-
const alternationString = this.term.replace(' ', '|');
|
|
47
|
-
/** @type {?} */
|
|
48
|
-
const termRegex = new RegExp(alternationString, 'gi');
|
|
49
|
-
this._setInnerHtml(label.replace(termRegex, `<span class=\"highlighted\">$&</span>`));
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @private
|
|
53
|
-
* @return {?}
|
|
54
|
-
*/
|
|
55
|
-
get _canHighlight() {
|
|
56
|
-
return this._isDefined(this.term) && this._isDefined(this.label);
|
|
57
|
-
}
|
|
58
|
-
/**
|
|
59
|
-
* @private
|
|
60
|
-
* @param {?} html
|
|
61
|
-
* @return {?}
|
|
62
|
-
*/
|
|
63
|
-
_setInnerHtml(html) {
|
|
64
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'innerHTML', html);
|
|
65
|
-
}
|
|
66
|
-
/**
|
|
67
|
-
* @private
|
|
68
|
-
* @param {?} value
|
|
69
|
-
* @return {?}
|
|
70
|
-
*/
|
|
71
|
-
_isDefined(value) {
|
|
72
|
-
return value !== undefined && value !== null;
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
NgOptionHighlightDirective.decorators = [
|
|
76
|
-
{ type: Directive, args: [{
|
|
77
|
-
selector: '[ngOptionHighlight]'
|
|
78
|
-
},] }
|
|
79
|
-
];
|
|
80
|
-
/** @nocollapse */
|
|
81
|
-
NgOptionHighlightDirective.ctorParameters = () => [
|
|
82
|
-
{ type: ElementRef },
|
|
83
|
-
{ type: Renderer2 }
|
|
84
|
-
];
|
|
85
|
-
NgOptionHighlightDirective.propDecorators = {
|
|
86
|
-
term: [{ type: Input, args: ['ngOptionHighlight',] }]
|
|
87
|
-
};
|
|
88
|
-
|
|
89
|
-
/**
|
|
90
|
-
* @fileoverview added by tsickle
|
|
91
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
92
|
-
*/
|
|
93
|
-
class NgOptionHighlightModule {
|
|
94
|
-
}
|
|
95
|
-
NgOptionHighlightModule.decorators = [
|
|
96
|
-
{ type: NgModule, args: [{
|
|
97
|
-
declarations: [NgOptionHighlightDirective],
|
|
98
|
-
exports: [NgOptionHighlightDirective]
|
|
99
|
-
},] }
|
|
100
|
-
];
|
|
101
|
-
|
|
102
|
-
export { NgOptionHighlightDirective, NgOptionHighlightModule };
|
|
103
|
-
//# sourceMappingURL=ng-select-ng-option-highlight.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-select-ng-option-highlight.js","sources":["ng://@ng-select/ng-option-highlight/lib/ng-option-highlight.directive.ts","ng://@ng-select/ng-option-highlight/lib/ng-option-highlight.module.ts"],"sourcesContent":["import * as searchHelper from './search-helper';\nimport {\n AfterViewInit,\n Directive,\n ElementRef,\n Input,\n OnChanges,\n Renderer2\n} from '@angular/core';\n\n@Directive({\n selector: '[ngOptionHighlight]'\n})\nexport class NgOptionHighlightDirective implements OnChanges, AfterViewInit {\n\n @Input('ngOptionHighlight') term: string;\n\n private element: HTMLElement;\n private label: string;\n\n constructor(\n private elementRef: ElementRef,\n private renderer: Renderer2) {\n this.element = this.elementRef.nativeElement;\n }\n\n ngOnChanges() {\n if (this._canHighlight) {\n this._highlightLabel();\n }\n }\n\n ngAfterViewInit() {\n this.label = this.element.innerHTML;\n if (this._canHighlight) {\n this._highlightLabel();\n }\n }\n\n private _highlightLabel() {\n const label = this.label;\n if (!this.term) {\n this._setInnerHtml(label);\n return;\n }\n\n const alternationString = this.term.replace(' ', '|')\n const termRegex = new RegExp(alternationString, 'gi')\n this._setInnerHtml(label.replace(termRegex, `<span class=\\\"highlighted\\\">$&</span>`))\n }\n\n private get _canHighlight() {\n return this._isDefined(this.term) && this._isDefined(this.label);\n }\n\n private _setInnerHtml(html) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'innerHTML', html);\n }\n\n private _isDefined(value: any) {\n return value !== undefined && value !== null;\n }\n} \n","import { NgModule } from '@angular/core';\nimport { NgOptionHighlightDirective } from './ng-option-highlight.directive';\n\n@NgModule({\n declarations: [NgOptionHighlightDirective],\n exports: [NgOptionHighlightDirective]\n})\nexport class NgOptionHighlightModule {}\n"],"names":[],"mappings":";;;;;;AACA,MAYa,0BAA0B;;;;;IAOnC,YACY,UAAsB,EACtB,QAAmB;QADnB,eAAU,GAAV,UAAU,CAAY;QACtB,aAAQ,GAAR,QAAQ,CAAW;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;KAChD;;;;IAED,WAAW;QACP,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,eAAe,EAAE,CAAC;SAC1B;KACJ;;;;IAED,eAAe;QACX,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QACpC,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,eAAe,EAAE,CAAC;SAC1B;KACJ;;;;;IAEO,eAAe;;cACb,KAAK,GAAG,IAAI,CAAC,KAAK;QACxB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACZ,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC1B,OAAO;SACV;;cAEK,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;;cAC/C,SAAS,GAAG,IAAI,MAAM,CAAC,iBAAiB,EAAE,IAAI,CAAC;QACrD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,uCAAuC,CAAC,CAAC,CAAA;KACxF;;;;;IAED,IAAY,aAAa;QACrB,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;KACpE;;;;;;IAEO,aAAa,CAAC,IAAI;QACtB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;KAC/E;;;;;;IAEO,UAAU,CAAC,KAAU;QACzB,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC;KAChD;;;YAnDJ,SAAS,SAAC;gBACP,QAAQ,EAAE,qBAAqB;aAClC;;;;YARG,UAAU;YAGV,SAAS;;;mBAQR,KAAK,SAAC,mBAAmB;;;;;;;ACf9B,MAOa,uBAAuB;;;YAJnC,QAAQ,SAAC;gBACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;gBAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;aACxC;;;;;"}
|
|
@@ -1,127 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, Renderer2, Input, NgModule } from '@angular/core';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @fileoverview added by tsickle
|
|
5
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
6
|
-
*/
|
|
7
|
-
var NgOptionHighlightDirective = /** @class */ (function () {
|
|
8
|
-
function NgOptionHighlightDirective(elementRef, renderer) {
|
|
9
|
-
this.elementRef = elementRef;
|
|
10
|
-
this.renderer = renderer;
|
|
11
|
-
this.element = this.elementRef.nativeElement;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* @return {?}
|
|
15
|
-
*/
|
|
16
|
-
NgOptionHighlightDirective.prototype.ngOnChanges = /**
|
|
17
|
-
* @return {?}
|
|
18
|
-
*/
|
|
19
|
-
function () {
|
|
20
|
-
if (this._canHighlight) {
|
|
21
|
-
this._highlightLabel();
|
|
22
|
-
}
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* @return {?}
|
|
26
|
-
*/
|
|
27
|
-
NgOptionHighlightDirective.prototype.ngAfterViewInit = /**
|
|
28
|
-
* @return {?}
|
|
29
|
-
*/
|
|
30
|
-
function () {
|
|
31
|
-
this.label = this.element.innerHTML;
|
|
32
|
-
if (this._canHighlight) {
|
|
33
|
-
this._highlightLabel();
|
|
34
|
-
}
|
|
35
|
-
};
|
|
36
|
-
/**
|
|
37
|
-
* @private
|
|
38
|
-
* @return {?}
|
|
39
|
-
*/
|
|
40
|
-
NgOptionHighlightDirective.prototype._highlightLabel = /**
|
|
41
|
-
* @private
|
|
42
|
-
* @return {?}
|
|
43
|
-
*/
|
|
44
|
-
function () {
|
|
45
|
-
/** @type {?} */
|
|
46
|
-
var label = this.label;
|
|
47
|
-
if (!this.term) {
|
|
48
|
-
this._setInnerHtml(label);
|
|
49
|
-
return;
|
|
50
|
-
}
|
|
51
|
-
/** @type {?} */
|
|
52
|
-
var alternationString = this.term.replace(' ', '|');
|
|
53
|
-
/** @type {?} */
|
|
54
|
-
var termRegex = new RegExp(alternationString, 'gi');
|
|
55
|
-
this._setInnerHtml(label.replace(termRegex, "<span class=\"highlighted\">$&</span>"));
|
|
56
|
-
};
|
|
57
|
-
Object.defineProperty(NgOptionHighlightDirective.prototype, "_canHighlight", {
|
|
58
|
-
get: /**
|
|
59
|
-
* @private
|
|
60
|
-
* @return {?}
|
|
61
|
-
*/
|
|
62
|
-
function () {
|
|
63
|
-
return this._isDefined(this.term) && this._isDefined(this.label);
|
|
64
|
-
},
|
|
65
|
-
enumerable: true,
|
|
66
|
-
configurable: true
|
|
67
|
-
});
|
|
68
|
-
/**
|
|
69
|
-
* @private
|
|
70
|
-
* @param {?} html
|
|
71
|
-
* @return {?}
|
|
72
|
-
*/
|
|
73
|
-
NgOptionHighlightDirective.prototype._setInnerHtml = /**
|
|
74
|
-
* @private
|
|
75
|
-
* @param {?} html
|
|
76
|
-
* @return {?}
|
|
77
|
-
*/
|
|
78
|
-
function (html) {
|
|
79
|
-
this.renderer.setProperty(this.elementRef.nativeElement, 'innerHTML', html);
|
|
80
|
-
};
|
|
81
|
-
/**
|
|
82
|
-
* @private
|
|
83
|
-
* @param {?} value
|
|
84
|
-
* @return {?}
|
|
85
|
-
*/
|
|
86
|
-
NgOptionHighlightDirective.prototype._isDefined = /**
|
|
87
|
-
* @private
|
|
88
|
-
* @param {?} value
|
|
89
|
-
* @return {?}
|
|
90
|
-
*/
|
|
91
|
-
function (value) {
|
|
92
|
-
return value !== undefined && value !== null;
|
|
93
|
-
};
|
|
94
|
-
NgOptionHighlightDirective.decorators = [
|
|
95
|
-
{ type: Directive, args: [{
|
|
96
|
-
selector: '[ngOptionHighlight]'
|
|
97
|
-
},] }
|
|
98
|
-
];
|
|
99
|
-
/** @nocollapse */
|
|
100
|
-
NgOptionHighlightDirective.ctorParameters = function () { return [
|
|
101
|
-
{ type: ElementRef },
|
|
102
|
-
{ type: Renderer2 }
|
|
103
|
-
]; };
|
|
104
|
-
NgOptionHighlightDirective.propDecorators = {
|
|
105
|
-
term: [{ type: Input, args: ['ngOptionHighlight',] }]
|
|
106
|
-
};
|
|
107
|
-
return NgOptionHighlightDirective;
|
|
108
|
-
}());
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* @fileoverview added by tsickle
|
|
112
|
-
* @suppress {checkTypes,extraRequire,missingOverride,missingReturn,unusedPrivateMembers,uselessCode} checked by tsc
|
|
113
|
-
*/
|
|
114
|
-
var NgOptionHighlightModule = /** @class */ (function () {
|
|
115
|
-
function NgOptionHighlightModule() {
|
|
116
|
-
}
|
|
117
|
-
NgOptionHighlightModule.decorators = [
|
|
118
|
-
{ type: NgModule, args: [{
|
|
119
|
-
declarations: [NgOptionHighlightDirective],
|
|
120
|
-
exports: [NgOptionHighlightDirective]
|
|
121
|
-
},] }
|
|
122
|
-
];
|
|
123
|
-
return NgOptionHighlightModule;
|
|
124
|
-
}());
|
|
125
|
-
|
|
126
|
-
export { NgOptionHighlightDirective, NgOptionHighlightModule };
|
|
127
|
-
//# sourceMappingURL=ng-select-ng-option-highlight.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-select-ng-option-highlight.js","sources":["ng://@ng-select/ng-option-highlight/lib/ng-option-highlight.directive.ts","ng://@ng-select/ng-option-highlight/lib/ng-option-highlight.module.ts"],"sourcesContent":["import * as searchHelper from './search-helper';\nimport {\n AfterViewInit,\n Directive,\n ElementRef,\n Input,\n OnChanges,\n Renderer2\n} from '@angular/core';\n\n@Directive({\n selector: '[ngOptionHighlight]'\n})\nexport class NgOptionHighlightDirective implements OnChanges, AfterViewInit {\n\n @Input('ngOptionHighlight') term: string;\n\n private element: HTMLElement;\n private label: string;\n\n constructor(\n private elementRef: ElementRef,\n private renderer: Renderer2) {\n this.element = this.elementRef.nativeElement;\n }\n\n ngOnChanges() {\n if (this._canHighlight) {\n this._highlightLabel();\n }\n }\n\n ngAfterViewInit() {\n this.label = this.element.innerHTML;\n if (this._canHighlight) {\n this._highlightLabel();\n }\n }\n\n private _highlightLabel() {\n const label = this.label;\n if (!this.term) {\n this._setInnerHtml(label);\n return;\n }\n\n const alternationString = this.term.replace(' ', '|')\n const termRegex = new RegExp(alternationString, 'gi')\n this._setInnerHtml(label.replace(termRegex, `<span class=\\\"highlighted\\\">$&</span>`))\n }\n\n private get _canHighlight() {\n return this._isDefined(this.term) && this._isDefined(this.label);\n }\n\n private _setInnerHtml(html) {\n this.renderer.setProperty(this.elementRef.nativeElement, 'innerHTML', html);\n }\n\n private _isDefined(value: any) {\n return value !== undefined && value !== null;\n }\n} \n","import { NgModule } from '@angular/core';\nimport { NgOptionHighlightDirective } from './ng-option-highlight.directive';\n\n@NgModule({\n declarations: [NgOptionHighlightDirective],\n exports: [NgOptionHighlightDirective]\n})\nexport class NgOptionHighlightModule {}\n"],"names":[],"mappings":";;;;;;AACA;IAmBI,oCACY,UAAsB,EACtB,QAAmB;QADnB,eAAU,GAAV,UAAU,CAAY;QACtB,aAAQ,GAAR,QAAQ,CAAW;QAC3B,IAAI,CAAC,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC;KAChD;;;;IAED,gDAAW;;;IAAX;QACI,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,eAAe,EAAE,CAAC;SAC1B;KACJ;;;;IAED,oDAAe;;;IAAf;QACI,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,SAAS,CAAC;QACpC,IAAI,IAAI,CAAC,aAAa,EAAE;YACpB,IAAI,CAAC,eAAe,EAAE,CAAC;SAC1B;KACJ;;;;;IAEO,oDAAe;;;;IAAvB;;YACU,KAAK,GAAG,IAAI,CAAC,KAAK;QACxB,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE;YACZ,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;YAC1B,OAAO;SACV;;YAEK,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,CAAC;;YAC/C,SAAS,GAAG,IAAI,MAAM,CAAC,iBAAiB,EAAE,IAAI,CAAC;QACrD,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE,uCAAuC,CAAC,CAAC,CAAA;KACxF;IAED,sBAAY,qDAAa;;;;;QAAzB;YACI,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACpE;;;OAAA;;;;;;IAEO,kDAAa;;;;;IAArB,UAAsB,IAAI;QACtB,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,WAAW,EAAE,IAAI,CAAC,CAAC;KAC/E;;;;;;IAEO,+CAAU;;;;;IAAlB,UAAmB,KAAU;QACzB,OAAO,KAAK,KAAK,SAAS,IAAI,KAAK,KAAK,IAAI,CAAC;KAChD;;gBAnDJ,SAAS,SAAC;oBACP,QAAQ,EAAE,qBAAqB;iBAClC;;;;gBARG,UAAU;gBAGV,SAAS;;;uBAQR,KAAK,SAAC,mBAAmB;;IA+C9B,iCAAC;CApDD;;;;;;ACVA;IAGA;KAIuC;;gBAJtC,QAAQ,SAAC;oBACN,YAAY,EAAE,CAAC,0BAA0B,CAAC;oBAC1C,OAAO,EAAE,CAAC,0BAA0B,CAAC;iBACxC;;IACqC,8BAAC;CAJvC;;;;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"__symbolic":"module","version":4,"metadata":{"NgOptionHighlightDirective":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Directive","line":10,"character":1},"arguments":[{"selector":"[ngOptionHighlight]"}]}],"members":{"term":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":15,"character":5},"arguments":["ngOptionHighlight"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"ElementRef","line":21,"character":28},{"__symbolic":"reference","module":"@angular/core","name":"Renderer2","line":22,"character":26}]}],"ngOnChanges":[{"__symbolic":"method"}],"ngAfterViewInit":[{"__symbolic":"method"}],"_highlightLabel":[{"__symbolic":"method"}],"_setInnerHtml":[{"__symbolic":"method"}],"_isDefined":[{"__symbolic":"method"}]}},"NgOptionHighlightModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":3,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"NgOptionHighlightDirective"}],"exports":[{"__symbolic":"reference","name":"NgOptionHighlightDirective"}]}]}],"members":{}}},"origins":{"NgOptionHighlightDirective":"./lib/ng-option-highlight.directive","NgOptionHighlightModule":"./lib/ng-option-highlight.module"},"importAs":"@ng-select/ng-option-highlight"}
|