@anglr/select 14.0.0-beta.20250708083708 → 14.0.0-beta.20260209113815
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/changelog.md +17 -0
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js +3 -3
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js +3 -3
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -1
- package/es2022/material/src/modules/dialogPopup.module.js +4 -4
- package/es2022/material/src/modules/virtualEditPopup.module.js +4 -4
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js +3 -3
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +3 -3
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -1
- package/es2022/src/components/option/optgroup.component.js +3 -3
- package/es2022/src/components/option/optgroup.component.js.map +1 -1
- package/es2022/src/components/option/option.component.js +3 -3
- package/es2022/src/components/option/option.component.js.map +1 -1
- package/es2022/src/components/select/select.component.js +3 -3
- package/es2022/src/components/select/select.component.js.map +1 -1
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +3 -3
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js +3 -3
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +3 -3
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -1
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js +3 -3
- package/es2022/src/misc/pluginBus/pluginBus.js +3 -3
- package/es2022/src/modules/ngSelect.module.js +4 -4
- package/es2022/src/modules/ngSelectDynamic.module.js +4 -4
- package/es2022/src/modules/ngSelectEdit.module.js +4 -4
- package/es2022/src/pipes/ngSelectHasValue.pipe.js +3 -3
- package/es2022/src/pipes/ngSelectValue.pipe.js +3 -3
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +3 -3
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +3 -3
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js +4 -7
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -1
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js +4 -7
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -1
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js +3 -3
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +3 -3
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js +3 -3
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js +4 -7
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +1 -1
- package/es2022/src/plugins/popup/basic/basicPopup.component.js +3 -3
- package/es2022/src/plugins/popup/edit/editPopup.component.js +3 -3
- package/es2022/src/plugins/popup/popupAbstract.component.js +4 -7
- package/es2022/src/plugins/popup/popupAbstract.component.js.map +1 -1
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js +3 -3
- package/es2022/src/plugins/positioner/no/noPositioner.component.js +3 -3
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js +3 -3
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +3 -3
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js +3 -3
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
- package/package.json +30 -30
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +0 -4
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +0 -4
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +0 -5
- package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +1 -1
- package/src/plugins/popup/popupAbstract.component.d.ts +0 -4
- package/src/plugins/popup/popupAbstract.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +1 -1
- package/version.bak +1 -1
|
@@ -42,15 +42,12 @@ export class NormalStateAbstractComponent {
|
|
|
42
42
|
*/
|
|
43
43
|
ngOnDestroy() {
|
|
44
44
|
this._destroyed = true;
|
|
45
|
-
this._textsChangedSubscription?.unsubscribe();
|
|
46
|
-
this._textsChangedSubscription = null;
|
|
47
45
|
}
|
|
48
46
|
//######################### public methods - implementation of NormalState #########################
|
|
49
47
|
/**
|
|
50
48
|
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
51
49
|
*/
|
|
52
50
|
initialize() {
|
|
53
|
-
this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());
|
|
54
51
|
const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
55
52
|
if (this.valueHandler && this.valueHandler != valueHandler) {
|
|
56
53
|
this.valueHandler = null;
|
|
@@ -79,14 +76,14 @@ export class NormalStateAbstractComponent {
|
|
|
79
76
|
*/
|
|
80
77
|
_initTexts() {
|
|
81
78
|
Object.keys(this.options.texts).forEach(key => {
|
|
82
|
-
this.texts[key] = this._stringLocalization.get(this.options.texts[key]);
|
|
79
|
+
this.texts[key] = this._stringLocalization.get(this.options.texts[key])();
|
|
83
80
|
});
|
|
84
81
|
this._changeDetector.detectChanges();
|
|
85
82
|
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
87
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
83
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NormalStateAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
84
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: NormalStateAbstractComponent, isStandalone: true, ngImport: i0 }); }
|
|
88
85
|
}
|
|
89
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
86
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NormalStateAbstractComponent, decorators: [{
|
|
90
87
|
type: Directive
|
|
91
88
|
}], ctorParameters: () => [{ type: undefined }, { type: i1.PluginBus }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined }] });
|
|
92
89
|
//# sourceMappingURL=normalStateAbstract.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalStateAbstract.component.js","sourceRoot":"","sources":["../../../../src/plugins/normalState/normalStateAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAa,SAAS,EAAC,MAAM,eAAe,CAAC;AAElF,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"normalStateAbstract.component.js","sourceRoot":"","sources":["../../../../src/plugins/normalState/normalStateAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAa,SAAS,EAAC,MAAM,eAAe,CAAC;AAElF,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAI7C,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAGzD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;;;AAEpD;;GAEG;AAEH,MAAM,OAAgB,4BAA4B;IAc9C,uGAAuG;IAEvG;;OAEG;IACH,IAAW,OA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,uEAAuE;IAEvE;;OAEG;IACO,UAAU;QAEhB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE;YAE1C,IAAI,CAAC,KAAK,CAAC,GAA6B,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAA6B,CAAC,CAAC,EAAE,CAAC;QAClI,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;8GAlHiB,4BAA4B;kGAA5B,4BAA4B;;2FAA5B,4BAA4B;kBADjD,SAAS","sourcesContent":["import {ChangeDetectorRef, ElementRef, OnDestroy, Directive} from '@angular/core';\nimport {StringLocalization} from '@anglr/common';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {NgSelectPluginInstances} from '../../components/select';\nimport {NgSelectPlugin} from '../../misc';\nimport {PluginBus} from '../../misc/pluginBus/pluginBus';\nimport {NormalState, NormalStateOptions, NormalStateTexts} from './normalState.interface';\nimport {ValueHandler} from '../valueHandler/valueHandler.interface';\nimport {VALUE_HANDLER} from '../valueHandler/types';\n\n/**\n * Base abstract class for normal state of select\n */\n@Directive()\nexport abstract class NormalStateAbstractComponent<TCssClasses = any, TOptions extends NormalStateOptions<TCssClasses, TValue> = any, TValue = any> implements NormalState, NgSelectPlugin<TOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: TOptions;\n\n /**\n * Indication whether was component destroyed\n */\n protected _destroyed: boolean = false;\n\n //######################### public properties - implementation of NormalState #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): TOptions\n {\n return this._options;\n }\n public set options(options: TOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: NormalStateTexts = {};\n\n /**\n * Value handler used in NgSelect\n * @internal\n */\n public valueHandler: ValueHandler;\n\n //######################### constructor #########################\n constructor(public ngSelectPlugins: NgSelectPluginInstances,\n public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n protected _stringLocalization: StringLocalization)\n {\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._destroyed = true;\n }\n\n //######################### public methods - implementation of NormalState #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this.valueHandler && this.valueHandler != valueHandler)\n {\n this.valueHandler = null;\n }\n\n if(!this.valueHandler)\n {\n this.valueHandler = valueHandler;\n }\n\n this._initTexts();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n if(!this._destroyed)\n {\n this._changeDetector.detectChanges();\n }\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach(key =>\n {\n this.texts[key as keyof NormalStateTexts] = this._stringLocalization.get(this.options.texts[key as keyof NormalStateTexts])();\n });\n\n this._changeDetector.detectChanges();\n }\n}\n"]}
|
|
@@ -34,10 +34,10 @@ export class BasicPopupComponent extends PopupAbstractComponent {
|
|
|
34
34
|
super(ngSelectPlugins, pluginBus, pluginElement, changeDetector, document, stringLocalization);
|
|
35
35
|
this._options = extend(true, {}, defaultOptions, options);
|
|
36
36
|
}
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicPopupComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: POPUP_OPTIONS, optional: true }, { token: STRING_LOCALIZATION }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: BasicPopupComponent, isStandalone: false, selector: "div.ng-select-popup", usesInheritance: true, ngImport: i0, template: "<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n <ng-content></ng-content>\r\n\r\n <div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.selected]=\"option?.selected\"\r\n [class.active]=\"option?.active\"\r\n (click)=\"pluginBus?.optionSelect.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"option?.selected && pluginBus?.selectOptions?.multiple\" [ngClass]=\"options?.cssClasses?.optionChecked\"></div>\r\n </div>\r\n\r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>", styles: [".popup-div\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: #FFFFFF;\r\n border-radius: 4px;\r\n border: 1px solid #BBBBBB;\r\n overflow: auto;\r\n padding: 5px 0;\r\n box-shadow: 0 6px 12px rgba(0,0,0,.175);\r\n scrollbar-width: thin;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar-thumb \r\n{\r\n background-color: #cdcdcd;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar \r\n{\r\n width: 6px;\r\n background-color: #f0f0f0;\r\n}\r\n\r\n.option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicPopupComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{ selector: 'div.ng-select-popup', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n <ng-content></ng-content>\r\n\r\n <div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.selected]=\"option?.selected\"\r\n [class.active]=\"option?.active\"\r\n (click)=\"pluginBus?.optionSelect.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"option?.selected && pluginBus?.selectOptions?.multiple\" [ngClass]=\"options?.cssClasses?.optionChecked\"></div>\r\n </div>\r\n\r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>", styles: [".popup-div\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: #FFFFFF;\r\n border-radius: 4px;\r\n border: 1px solid #BBBBBB;\r\n overflow: auto;\r\n padding: 5px 0;\r\n box-shadow: 0 6px 12px rgba(0,0,0,.175);\r\n scrollbar-width: thin;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar-thumb \r\n{\r\n background-color: #cdcdcd;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar \r\n{\r\n width: 6px;\r\n background-color: #f0f0f0;\r\n}\r\n\r\n.option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"] }]
|
|
43
43
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -57,10 +57,10 @@ export class EditPopupComponent extends PopupAbstractComponent {
|
|
|
57
57
|
this.allOptions.forEach(option => option.active = false);
|
|
58
58
|
option.active = true;
|
|
59
59
|
}
|
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
60
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: EditPopupComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: POPUP_OPTIONS, optional: true }, { token: STRING_LOCALIZATION }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: EditPopupComponent, isStandalone: false, selector: "div.ng-select-edit-popup", usesInheritance: true, ngImport: i0, template: "<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n\r\n <div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.active]=\"option?.active\"\r\n [class.selected]=\"option?.selected\"\r\n (mouseenter)=\"handleMouseActivation(option)\"\r\n (click)=\"pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n </div>\r\n \r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>", styles: [".popup-div\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: #FFFFFF;\r\n border-radius: 4px;\r\n border: 1px solid #BBBBBB;\r\n overflow: auto;\r\n padding: 5px 0;\r\n box-shadow: 0 6px 12px rgba(0,0,0,.175);\r\n scrollbar-width: thin;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar-thumb \r\n{\r\n background-color: #cdcdcd;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar \r\n{\r\n width: 6px;\r\n background-color: #f0f0f0;\r\n}\r\n\r\n.option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
62
62
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: EditPopupComponent, decorators: [{
|
|
64
64
|
type: Component,
|
|
65
65
|
args: [{ selector: 'div.ng-select-edit-popup', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n\r\n <div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.active]=\"option?.active\"\r\n [class.selected]=\"option?.selected\"\r\n (mouseenter)=\"handleMouseActivation(option)\"\r\n (click)=\"pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n </div>\r\n \r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>", styles: [".popup-div\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: #FFFFFF;\r\n border-radius: 4px;\r\n border: 1px solid #BBBBBB;\r\n overflow: auto;\r\n padding: 5px 0;\r\n box-shadow: 0 6px 12px rgba(0,0,0,.175);\r\n scrollbar-width: thin;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar-thumb \r\n{\r\n background-color: #cdcdcd;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar \r\n{\r\n width: 6px;\r\n background-color: #f0f0f0;\r\n}\r\n\r\n.option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"] }]
|
|
66
66
|
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
@@ -114,8 +114,6 @@ export class PopupAbstractComponent {
|
|
|
114
114
|
this._valueChangedSubscription = null;
|
|
115
115
|
this._visibilityRequestSubscription?.unsubscribe();
|
|
116
116
|
this._visibilityRequestSubscription = null;
|
|
117
|
-
this._textsChangedSubscription?.unsubscribe();
|
|
118
|
-
this._textsChangedSubscription = null;
|
|
119
117
|
this._document.removeEventListener('mouseup', this._handleClickOutside);
|
|
120
118
|
}
|
|
121
119
|
//######################### public methods - implementation of Popup #########################
|
|
@@ -123,7 +121,6 @@ export class PopupAbstractComponent {
|
|
|
123
121
|
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
124
122
|
*/
|
|
125
123
|
initialize() {
|
|
126
|
-
this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());
|
|
127
124
|
if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
|
|
128
125
|
this._optionsChangeSubscription.unsubscribe();
|
|
129
126
|
this._optionsChangeSubscription = null;
|
|
@@ -173,7 +170,7 @@ export class PopupAbstractComponent {
|
|
|
173
170
|
*/
|
|
174
171
|
_initTexts() {
|
|
175
172
|
Object.keys(this.options.texts).forEach(key => {
|
|
176
|
-
this.texts[key] = this._stringLocalization.get(this.options.texts[key]);
|
|
173
|
+
this.texts[key] = this._stringLocalization.get(this.options.texts[key])();
|
|
177
174
|
});
|
|
178
175
|
this._changeDetector.detectChanges();
|
|
179
176
|
}
|
|
@@ -191,10 +188,10 @@ export class PopupAbstractComponent {
|
|
|
191
188
|
this.options.visible = !this.options.visible;
|
|
192
189
|
this._changeDetector.detectChanges();
|
|
193
190
|
}
|
|
194
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
195
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
191
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PopupAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
192
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: PopupAbstractComponent, isStandalone: true, viewQueries: [{ propertyName: "popupElementChildren", predicate: ["popupDiv"], descendants: true }], ngImport: i0 }); }
|
|
196
193
|
}
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
194
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PopupAbstractComponent, decorators: [{
|
|
198
195
|
type: Directive
|
|
199
196
|
}], ctorParameters: () => [{ type: undefined }, { type: i1.PluginBus }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: Document }, { type: undefined }], propDecorators: { popupElementChildren: [{
|
|
200
197
|
type: ViewChildren,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popupAbstract.component.js","sourceRoot":"","sources":["../../../../src/plugins/popup/popupAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAa,SAAS,EAAE,YAA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BAAC,UAAU","sourcesContent":["import {AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, ViewChildren, Directive} from '@angular/core';\nimport {StringLocalization} from '@anglr/common';\nimport {isDescendant} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\nimport {Subscription} from 'rxjs';\n\nimport {ɵNgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances} from '../../components/select';\nimport {NgSelectPlugin, OptionsGatherer} from '../../misc';\nimport {PluginBus} from '../../misc/pluginBus/pluginBus';\nimport {Popup, PopupOptions, PopupTexts} from './popup.interface';\nimport {ValueHandler} from '../valueHandler';\nimport {VALUE_HANDLER} from '../valueHandler/types';\n\n/**\n * Base abstract class for popup with options\n */\n@Directive()\nexport class PopupAbstractComponent<TCssClasses = any, TOptions extends PopupOptions<TCssClasses> = any> implements Popup, NgSelectPlugin<TOptions>, AfterViewInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: TOptions;\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Subscription for toggle popup event\n */\n protected _popupToggleSubscription: Subscription;\n\n /**\n * Subscription for popup visibility change request\n */\n protected _visibilityRequestSubscription: Subscription;\n\n /**\n * Subscription for changes of selected value\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Subscription for changes in texts\n */\n protected _textsChangedSubscription: Subscription;\n\n /**\n * Indication whether is popup visible\n */\n protected _popupVisible: boolean = false;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n //######################### protected properties #########################\n\n /**\n * Gets indication whether keep open popup after value change\n */\n protected get keepOpen(): boolean\n {\n return this.pluginBus.selectOptions.multiple;\n }\n\n //######################### public properties - implementation of Popup #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): TOptions\n {\n return this._options;\n }\n public set options(options: TOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * Occurs when visibility of popup has changed\n */\n public visibilityChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Html element that represents popup itself\n */\n public get popupElement(): HTMLElement\n {\n const ref = this.popupElementChildren.first;\n\n if(!ref)\n {\n return null;\n }\n\n return ref.nativeElement;\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Array of select options available\n * @internal\n */\n public selectOptions: ɵNgSelectOption[];\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: PopupTexts = {};\n\n //######################### public properties - children #########################\n\n /**\n * Watch for visibility of popup div element\n * @internal\n */\n @ViewChildren('popupDiv')\n public popupElementChildren: QueryList<ElementRef<HTMLElement>>;\n\n //######################### constructor #########################\n constructor(public ngSelectPlugins: NgSelectPluginInstances,\n public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n protected _document: Document,\n protected _stringLocalization: StringLocalization)\n {\n }\n\n //######################### public methods - implementation of AfterViewInit #########################\n\n /**\n * Called when view was initialized\n */\n public ngAfterViewInit()\n {\n this.popupElementChildren.changes.subscribe(() =>\n {\n if(!!this.popupElementChildren.first == this._popupVisible)\n {\n return;\n }\n\n //handle click outside\n if(this.popupElementChildren.first)\n {\n this._document.addEventListener('mouseup', this._handleClickOutside);\n }\n //unregister handle click outside\n else\n {\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n this._popupVisible = !!this.popupElementChildren.first;\n this.visibilityChange.emit();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._popupToggleSubscription?.unsubscribe();\n this._popupToggleSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._visibilityRequestSubscription?.unsubscribe();\n this._visibilityRequestSubscription = null;\n\n this._textsChangedSubscription?.unsubscribe();\n this._textsChangedSubscription = null;\n\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n //######################### public methods - implementation of Popup #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());\n\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());\n }\n\n if(!this._popupToggleSubscription)\n {\n this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());\n }\n\n if(!this._visibilityRequestSubscription)\n {\n this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() =>\n {\n if(!this.keepOpen)\n {\n this._handleVisibilityChange(false);\n }\n });\n }\n\n this.loadOptions();\n this._initTexts();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach(key =>\n {\n this.texts[key as keyof PopupTexts] = this._stringLocalization.get(this.options.texts[key as keyof PopupTexts]);\n });\n\n this._changeDetector.detectChanges();\n }\n\n /**\n * Loads options\n */\n protected loadOptions()\n {\n this.selectOptions = this._optionsGatherer.availableOptions;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Toggles popup visibility\n */\n protected togglePopup()\n {\n this.options.visible = !this.options.visible;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Handles click outside of select element\n * @param event - Mouse event object\n */\n protected _handleClickOutside = (event: MouseEvent) =>\n {\n if(this.pluginBus.selectElement.nativeElement != event.target &&\n !isDescendant(this.pluginBus.selectElement.nativeElement, event.target as HTMLElement) &&\n this.pluginElement.nativeElement != event.target &&\n !isDescendant(this.pluginElement.nativeElement, event.target as HTMLElement))\n {\n this.togglePopup();\n\n this.pluginBus.updateDisplayedValue.emit();\n }\n };\n\n /**\n * Handles visibility change\n */\n protected _handleVisibilityChange = (visible: boolean) =>\n {\n if(this.options.visible != visible)\n {\n this.options.visible = visible;\n this._changeDetector.detectChanges();\n }\n };\n}\n"]}
|
|
1
|
+
{"version":3,"file":"popupAbstract.component.js","sourceRoot":"","sources":["../../../../src/plugins/popup/popupAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAa,SAAS,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAExI,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAM7C,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAGzD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;;;AAEpD;;GAEG;AAEH,MAAM,OAAO,sBAAsB;IA4C/B,0EAA0E;IAE1E;;OAEG;IACH,IAAc,QAAQ;QAElB,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;IACjD,CAAC;IA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,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAAuB,CAAC,CAAC,EAAE,CAAC;QACtH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IAED;;OAEG;IACO,WAAW;QAEjB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;QAC5D,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IAED;;OAEG;IACO,WAAW;QAEjB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAC7C,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;8GAtRQ,sBAAsB;kGAAtB,sBAAsB;;2FAAtB,sBAAsB;kBADlC,SAAS;;sBA6GL,YAAY;uBAAC,UAAU","sourcesContent":["import {AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, ViewChildren, Directive} from '@angular/core';\nimport {StringLocalization} from '@anglr/common';\nimport {isDescendant} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\nimport {Subscription} from 'rxjs';\n\nimport {ɵNgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances} from '../../components/select';\nimport {NgSelectPlugin, OptionsGatherer} from '../../misc';\nimport {PluginBus} from '../../misc/pluginBus/pluginBus';\nimport {Popup, PopupOptions, PopupTexts} from './popup.interface';\nimport {ValueHandler} from '../valueHandler';\nimport {VALUE_HANDLER} from '../valueHandler/types';\n\n/**\n * Base abstract class for popup with options\n */\n@Directive()\nexport class PopupAbstractComponent<TCssClasses = any, TOptions extends PopupOptions<TCssClasses> = any> implements Popup, NgSelectPlugin<TOptions>, AfterViewInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: TOptions;\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Subscription for toggle popup event\n */\n protected _popupToggleSubscription: Subscription;\n\n /**\n * Subscription for popup visibility change request\n */\n protected _visibilityRequestSubscription: Subscription;\n\n /**\n * Subscription for changes of selected value\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Indication whether is popup visible\n */\n protected _popupVisible: boolean = false;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n //######################### protected properties #########################\n\n /**\n * Gets indication whether keep open popup after value change\n */\n protected get keepOpen(): boolean\n {\n return this.pluginBus.selectOptions.multiple;\n }\n\n //######################### public properties - implementation of Popup #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): TOptions\n {\n return this._options;\n }\n public set options(options: TOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * Occurs when visibility of popup has changed\n */\n public visibilityChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Html element that represents popup itself\n */\n public get popupElement(): HTMLElement\n {\n const ref = this.popupElementChildren.first;\n\n if(!ref)\n {\n return null;\n }\n\n return ref.nativeElement;\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Array of select options available\n * @internal\n */\n public selectOptions: ɵNgSelectOption[];\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: PopupTexts = {};\n\n //######################### public properties - children #########################\n\n /**\n * Watch for visibility of popup div element\n * @internal\n */\n @ViewChildren('popupDiv')\n public popupElementChildren: QueryList<ElementRef<HTMLElement>>;\n\n //######################### constructor #########################\n constructor(public ngSelectPlugins: NgSelectPluginInstances,\n public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n protected _document: Document,\n protected _stringLocalization: StringLocalization)\n {\n }\n\n //######################### public methods - implementation of AfterViewInit #########################\n\n /**\n * Called when view was initialized\n */\n public ngAfterViewInit()\n {\n this.popupElementChildren.changes.subscribe(() =>\n {\n if(!!this.popupElementChildren.first == this._popupVisible)\n {\n return;\n }\n\n //handle click outside\n if(this.popupElementChildren.first)\n {\n this._document.addEventListener('mouseup', this._handleClickOutside);\n }\n //unregister handle click outside\n else\n {\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n this._popupVisible = !!this.popupElementChildren.first;\n this.visibilityChange.emit();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._popupToggleSubscription?.unsubscribe();\n this._popupToggleSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._visibilityRequestSubscription?.unsubscribe();\n this._visibilityRequestSubscription = null;\n\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n //######################### public methods - implementation of Popup #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());\n }\n\n if(!this._popupToggleSubscription)\n {\n this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());\n }\n\n if(!this._visibilityRequestSubscription)\n {\n this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() =>\n {\n if(!this.keepOpen)\n {\n this._handleVisibilityChange(false);\n }\n });\n }\n\n this.loadOptions();\n this._initTexts();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach(key =>\n {\n this.texts[key as keyof PopupTexts] = this._stringLocalization.get(this.options.texts[key as keyof PopupTexts])();\n });\n\n this._changeDetector.detectChanges();\n }\n\n /**\n * Loads options\n */\n protected loadOptions()\n {\n this.selectOptions = this._optionsGatherer.availableOptions;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Toggles popup visibility\n */\n protected togglePopup()\n {\n this.options.visible = !this.options.visible;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Handles click outside of select element\n * @param event - Mouse event object\n */\n protected _handleClickOutside = (event: MouseEvent) =>\n {\n if(this.pluginBus.selectElement.nativeElement != event.target &&\n !isDescendant(this.pluginBus.selectElement.nativeElement, event.target as HTMLElement) &&\n this.pluginElement.nativeElement != event.target &&\n !isDescendant(this.pluginElement.nativeElement, event.target as HTMLElement))\n {\n this.togglePopup();\n\n this.pluginBus.updateDisplayedValue.emit();\n }\n };\n\n /**\n * Handles visibility change\n */\n protected _handleVisibilityChange = (visible: boolean) =>\n {\n if(this.options.visible != visible)\n {\n this.options.visible = visible;\n this._changeDetector.detectChanges();\n }\n };\n}\n"]}
|
|
@@ -127,10 +127,10 @@ export class DefaultPositionerComponent {
|
|
|
127
127
|
}
|
|
128
128
|
}
|
|
129
129
|
}
|
|
130
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
131
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
130
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DefaultPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: POSITION }, { token: POSITIONER_OPTIONS, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
131
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: DefaultPositionerComponent, isStandalone: false, selector: "ng-default-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
132
132
|
}
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
133
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DefaultPositionerComponent, decorators: [{
|
|
134
134
|
type: Component,
|
|
135
135
|
args: [{
|
|
136
136
|
selector: 'ng-default-positioner',
|
|
@@ -53,10 +53,10 @@ export class NoPositionerComponent {
|
|
|
53
53
|
*/
|
|
54
54
|
invalidateVisuals() {
|
|
55
55
|
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
56
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NoPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i0.ElementRef }, { token: POSITIONER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: NoPositionerComponent, isStandalone: false, selector: "ng-no-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
58
58
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NoPositionerComponent, decorators: [{
|
|
60
60
|
type: Component,
|
|
61
61
|
args: [{
|
|
62
62
|
selector: 'ng-no-positioner',
|
|
@@ -132,10 +132,10 @@ export class BasicValueHandlerComponent extends ValueHandlerBase {
|
|
|
132
132
|
this._normalState.invalidateVisuals();
|
|
133
133
|
this.valueChange.emit();
|
|
134
134
|
}
|
|
135
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
136
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
135
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicValueHandlerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: VALUE_HANDLER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
136
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: BasicValueHandlerComponent, isStandalone: false, selector: "ng-basic-value-handler", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
137
137
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: BasicValueHandlerComponent, decorators: [{
|
|
139
139
|
type: Component,
|
|
140
140
|
args: [{
|
|
141
141
|
selector: 'ng-basic-value-handler',
|
|
@@ -152,10 +152,10 @@ export class DynamicValueHandlerComponent extends ValueHandlerBase {
|
|
|
152
152
|
text: this.options.textExtractor(value)
|
|
153
153
|
};
|
|
154
154
|
}
|
|
155
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
156
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
155
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DynamicValueHandlerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: VALUE_HANDLER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
156
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: DynamicValueHandlerComponent, isStandalone: false, selector: "ng-dynamic-value-handler", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
157
157
|
}
|
|
158
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DynamicValueHandlerComponent, decorators: [{
|
|
159
159
|
type: Component,
|
|
160
160
|
args: [{
|
|
161
161
|
selector: 'ng-dynamic-value-handler',
|
|
@@ -136,10 +136,10 @@ export class ValueHandlerBase {
|
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
140
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
139
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ValueHandlerBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
140
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: ValueHandlerBase, isStandalone: true, ngImport: i0 }); }
|
|
141
141
|
}
|
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ValueHandlerBase, decorators: [{
|
|
143
143
|
type: Directive
|
|
144
144
|
}], ctorParameters: () => [{ type: undefined }, { type: i0.ElementRef }, { type: i1.PluginBus }] });
|
|
145
145
|
//# sourceMappingURL=valueHandlerBase.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogPopup.component.d.ts","sourceRoot":"","sources":["dialogPopup.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0B,iBAAiB,EAAa,UAAU,EAAE,YAAY,EAAsB,SAAS,EAA8B,MAAM,eAAe,CAAC;AAC1K,OAAO,EAAC,SAAS,EAAE,YAAY,EAAC,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAC,aAAa,EAAC,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAC,cAAc,EAAE,uBAAuB,EAA8B,SAAS,EAAiB,eAAe,EAAC,MAAM,eAAe,CAAC;AAE7I,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAGlC,OAAO,EAAC,WAAW,EAAE,2BAA2B,EAAE,kBAAkB,EAA2B,MAAM,yBAAyB,CAAC;;AAiB/H;;GAEG;AACH,qBAOa,oBAAoB,CAAC,UAAU,SAAS,2BAA2B,CAAC,cAAc,EAAE,MAAM,EAAE,WAAW,CAAC,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG,EAAE,cAAc,GAAG,GAAG,EAAE,WAAW,GAAG,GAAG,CAAE,YAAW,WAAW,EAAE,cA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,oBAAoB;CAkKhC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@anglr/select",
|
|
3
|
-
"version": "14.0.0-beta.
|
|
3
|
+
"version": "14.0.0-beta.20260209113815",
|
|
4
4
|
"description": "Angular component representing html select",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"doc:api:material": "copyfiles -u 2 material/temp/select-material.api.md docs/content/api/ng-select-material && rimraf material/temp"
|
|
44
44
|
},
|
|
45
45
|
"engines": {
|
|
46
|
-
"node": "^
|
|
46
|
+
"node": "^20.19.0 || ^22.12.0 || >=24.0.0"
|
|
47
47
|
},
|
|
48
48
|
"repository": {
|
|
49
49
|
"type": "git",
|
|
@@ -61,44 +61,44 @@
|
|
|
61
61
|
},
|
|
62
62
|
"homepage": "https://github.com/ressurectit/ng-select",
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@anglr/common": ">=
|
|
65
|
-
"@angular/common": ">=
|
|
66
|
-
"@angular/core": ">=
|
|
67
|
-
"@angular/forms": ">=
|
|
68
|
-
"@jscrpt/common": ">=7.
|
|
64
|
+
"@anglr/common": ">=24.0.0",
|
|
65
|
+
"@angular/common": ">=21.1.3",
|
|
66
|
+
"@angular/core": ">=21.1.3",
|
|
67
|
+
"@angular/forms": ">=21.1.3",
|
|
68
|
+
"@jscrpt/common": ">=7.1.0",
|
|
69
69
|
"rxjs": ">=7.5.7",
|
|
70
70
|
"tslib": "^2.8.1"
|
|
71
71
|
},
|
|
72
72
|
"optionalDependencies": {
|
|
73
|
-
"@angular/cdk": ">=
|
|
74
|
-
"@angular/material": ">=
|
|
73
|
+
"@angular/cdk": ">=21.1.3",
|
|
74
|
+
"@angular/material": ">=21.1.3"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
|
-
"@anglr/common": "
|
|
78
|
-
"@angular/cdk": "
|
|
79
|
-
"@angular/common": "
|
|
80
|
-
"@angular/compiler": "
|
|
81
|
-
"@angular/compiler-cli": "
|
|
82
|
-
"@angular/core": "
|
|
83
|
-
"@angular/forms": "
|
|
84
|
-
"@angular/language-service": "
|
|
85
|
-
"@angular/material": "
|
|
86
|
-
"@jscrpt/common": "7.
|
|
87
|
-
"@microsoft/api-documenter": "7.
|
|
88
|
-
"@microsoft/api-extractor": "7.
|
|
89
|
-
"@stylistic/eslint-plugin": "
|
|
90
|
-
"@types/node": "22.
|
|
77
|
+
"@anglr/common": "24.0.0",
|
|
78
|
+
"@angular/cdk": "21.1.3",
|
|
79
|
+
"@angular/common": "21.1.3",
|
|
80
|
+
"@angular/compiler": "21.1.3",
|
|
81
|
+
"@angular/compiler-cli": "21.1.3",
|
|
82
|
+
"@angular/core": "21.1.3",
|
|
83
|
+
"@angular/forms": "21.1.3",
|
|
84
|
+
"@angular/language-service": "21.1.3",
|
|
85
|
+
"@angular/material": "21.1.3",
|
|
86
|
+
"@jscrpt/common": "7.1.0",
|
|
87
|
+
"@microsoft/api-documenter": "7.28.8",
|
|
88
|
+
"@microsoft/api-extractor": "7.56.2",
|
|
89
|
+
"@stylistic/eslint-plugin": "5.7.1",
|
|
90
|
+
"@types/node": "22.15.29",
|
|
91
91
|
"copyfiles": "2.4.1",
|
|
92
|
-
"eslint": "9.
|
|
93
|
-
"eslint-plugin-ressurectit": "0.
|
|
94
|
-
"npm-git-version": "2.0
|
|
92
|
+
"eslint": "9.39.2",
|
|
93
|
+
"eslint-plugin-ressurectit": "0.4.0",
|
|
94
|
+
"npm-git-version": "3.2.0",
|
|
95
95
|
"path-exists-cli": "2.0.0",
|
|
96
|
-
"replace-in-file": "8.
|
|
97
|
-
"rimraf": "6.
|
|
96
|
+
"replace-in-file": "8.4.0",
|
|
97
|
+
"rimraf": "6.1.2",
|
|
98
98
|
"rxjs": "7.5.7",
|
|
99
99
|
"tslib": "2.8.1",
|
|
100
|
-
"typescript": "5.
|
|
101
|
-
"typescript-eslint": "8.
|
|
100
|
+
"typescript": "5.9.3",
|
|
101
|
+
"typescript-eslint": "8.54.0"
|
|
102
102
|
},
|
|
103
103
|
"module": "./es2022/src/index.js",
|
|
104
104
|
"typings": "./src/index.d.ts",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basicKeyboardHandler.component.d.ts","sourceRoot":"","sources":["basicKeyboardHandler.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAuD,UAAU,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAG1G,OAAO,EAAC,2BAA2B,EAAE,oBAAoB,EAAC,MAAM,kCAAkC,CAAC;AACnG,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;;AAU5D;;GAEG;AACH,qBAOa,6BAA8B,YAAW,oBAAoB,EAAE,cAAc,CAAC,2BAA2B,CAAC,EAAE,SAAS;IAuC3D,eAAe,EAAE,uBAAuB;IAC5E,SAAS,EAAE,SAAS;IAChC,aAAa,EAAE,UAAU;IArC5C;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,2BAA2B,CAAC;IAEhD;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;IAIxB;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,eAAe,EAAE,CAGlD;IAID;;OAEG;IACH,IAAW,OAAO,IAAI,2BAA2B,CAGhD;IACD,IAAW,OAAO,CAAC,OAAO,EAAE,2BAA2B,EAGtD;gBAGkE,eAAe,EAAE,uBAAuB,EAC5E,SAAS,EAAE,SAAS,EAChC,aAAa,EAAE,UAAU,EACc,OAAO,CAAC,EAAE,2BAA2B;IAO/F;;OAEG;IACI,WAAW;IAUlB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B;;OAEG;IACH,SAAS,CAAC,aAAa,EAAE,YAAY,CAAC;IAEtC;;OAEG;IACH,SAAS,CAAC,WAAW,EAAE,UAAU,CAAC;IAIlC;;OAEG;IACH,SAAS,KAAK,gBAAgB,IAAI,eAAe,EAAE,CAGlD;IAID;;OAEG;IACH,IAAW,OAAO,IAAI,0BAA0B,CAG/C;IACD,IAAW,OAAO,CAAC,OAAO,EAAE,0BAA0B,EAGrD;gBAGkE,eAAe,EAAE,uBAAuB,EAC5E,SAAS,EAAE,SAAS,EAChC,aAAa,EAAE,UAAU,EACc,OAAO,CAAC,EAAE,0BAA0B;IAO9F;;OAEG;IACI,WAAW;IAUlB;;OAEG;IACI,UAAU;IA4CjB;;OAEG;IACI,WAAW;IAIlB;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAMhC;;;OAGG;IACH,SAAS,CAAC,eAAe,GAAI,OAAO,aAAa,UA6G/C;yCAxPO,4BAA4B;2CAA5B,4BAA4B;CAyPxC"}
|
|
@@ -21,10 +21,6 @@ export declare class BasicLiveSearchComponent implements BasicLiveSearch, NgSele
|
|
|
21
21
|
* Popup used in NgSelect
|
|
22
22
|
*/
|
|
23
23
|
protected _popup: Popup;
|
|
24
|
-
/**
|
|
25
|
-
* Subscription for changes in texts
|
|
26
|
-
*/
|
|
27
|
-
protected _textsChangedSubscription: Subscription;
|
|
28
24
|
/**
|
|
29
25
|
* Subscription for changes of popup visibility
|
|
30
26
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"basicLiveSearch.component.d.ts","sourceRoot":"","sources":["basicLiveSearch.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,iBAAiB,EAAoB,UAAU,EAAa,YAAY,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AACtJ,OAAO,EAAsB,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,sBAAsB,EAAE,e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F1F;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC;IAExB;;OAEG;IACH,SAAS,CAAC,6BAA6B,EAAE,YAAY,CAAC;IAEtD;;OAEG;IACH,SAAS,CAAC,4BAA4B,EAAE,YAAY,CAAC;IAErD;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,sBAAsB,CAAC;IAI3C;;OAEG;IACH,IAAW,OAAO,IAAI,sBAAsB,CAG3C;IACD,IAAW,OAAO,CAAC,OAAO,EAAE,sBAAsB,EAGjD;IAED;;OAEG;IACH,IAAW,iBAAiB,IAAI,WAAW,CAG1C;IAED;;OAEG;IACI,WAAW,EAAE,MAAM,CAAQ;IAElC;;OAEG;IACI,iBAAiB,EAAE,YAAY,CAAC,IAAI,CAAC,CAA4B;IAIxE;;;OAGG;IACI,KAAK,EAAE,eAAe,CAAM;IAInC;;;OAGG;IAEI,sBAAsB,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAEvD;;;OAGG;IAEI,iBAAiB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAGY,eAAe,EAAE,uBAAuB,EAC5E,SAAS,EAAE,SAAS,EAChC,aAAa,EAAE,UAAU,EACtB,eAAe,EAAE,iBAAiB,EACL,mBAAmB,EAAE,kBAAkB,EACrC,OAAO,CAAC,EAAE,sBAAsB;IAOrF;;OAEG;IACI,WAAW;IAWlB;;OAEG;IACI,UAAU;IAsCjB;;OAEG;IACI,WAAW;IAIlB;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAOhC;;;;OAIG;IACI,WAAW,CAAC,KAAK,EAAE,MAAM;IAQhC;;OAEG;IACH,SAAS,CAAC,UAAU;yCArLX,wBAAwB;2CAAxB,wBAAwB;CA8LpC"}
|
|
@@ -35,10 +35,6 @@ export declare class EditLiveSearchComponent implements EditLiveSearch, NgSelect
|
|
|
35
35
|
* Subscription for changes of options in options gatherer
|
|
36
36
|
*/
|
|
37
37
|
protected _optionsChangeSubscription: Subscription;
|
|
38
|
-
/**
|
|
39
|
-
* Subscription for changes in texts
|
|
40
|
-
*/
|
|
41
|
-
protected _textsChangedSubscription: Subscription;
|
|
42
38
|
/**
|
|
43
39
|
* Subscription for changes of selected value
|
|
44
40
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editLiveSearch.component.d.ts","sourceRoot":"","sources":["editLiveSearch.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,iBAAiB,EAAoB,UAAU,EAAa,YAAY,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AACtJ,OAAO,EAAsB,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGtE,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,qBAAqB,EAAE,cAAc,EAAC,MAAM,4BAA4B,CAAC;AACjF,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;AAGnE,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAEhD,OAAO,EAAC,KAAK,EAAC,MAAM,aAAa,CAAC;AAElC,OAAO,EAAC,eAAe,EAAC,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;;AAuBxD;;GAEG;AACH,qBAQa,uBAAwB,YAAW,cAAc,EAAE,cAAc,CAAC,qBAAqB,CAAC,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"editLiveSearch.component.d.ts","sourceRoot":"","sources":["editLiveSearch.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqC,iBAAiB,EAAoB,UAAU,EAAa,YAAY,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AACtJ,OAAO,EAAsB,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGtE,OAAO,EAAC,YAAY,EA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OAEG;IACH,IAAW,OAAO,IAAI,qBAAqB,CAG1C;IACD,IAAW,OAAO,CAAC,OAAO,EAAE,qBAAqB,EAGhD;IAED;;OAEG;IACH,IAAW,iBAAiB,IAAI,WAAW,CAG1C;IAED;;OAEG;IACI,WAAW,EAAE,MAAM,CAAQ;IAElC;;OAEG;IACI,iBAAiB,EAAE,YAAY,CAAC,IAAI,CAAC,CAA4B;IAIxE;;;OAGG;IACI,oBAAoB,EAAE,MAAM,CAAQ;IAE3C;;;OAGG;IACI,KAAK,EAAE,eAAe,CAAM;IAInC;;;OAGG;IAEI,sBAAsB,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IAEvD;;;OAGG;IAEI,iBAAiB,EAAE,UAAU,CAAC,gBAAgB,CAAC,CAAC;gBAGY,eAAe,EAAE,uBAAuB,EAC5E,SAAS,EAAE,SAAS,EAChC,aAAa,EAAE,UAAU,EACtB,eAAe,EAAE,iBAAiB,EACL,mBAAmB,EAAE,kBAAkB,EACrC,OAAO,CAAC,EAAE,qBAAqB;IAOpF;;OAEG;IACI,WAAW;IAiBlB;;OAEG;IACI,UAAU;IAuHjB;;OAEG;IACI,WAAW;IAIlB;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAOhC;;;;;OAKG;IACI,WAAW,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,GAAE,OAAe;IA4B9D;;;;;OAKG;IACI,WAAW,CAAC,OAAO,EAAE,gBAAgB,EAAE,IAAI,GAAE,OAAe;IAcnE;;OAEG;IACI,UAAU;IA8BjB;;OAEG;IACH,SAAS,CAAC,UAAU;IAUpB;;OAEG;IACH,SAAS,CAAC,wBAAwB;yCAvYzB,uBAAuB;2CAAvB,uBAAuB;CA6ZnC"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ChangeDetectorRef, ElementRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { StringLocalization } from '@anglr/common';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
3
|
import { NgSelectPluginInstances } from '../../components/select';
|
|
5
4
|
import { NgSelectPlugin } from '../../misc';
|
|
6
5
|
import { PluginBus } from '../../misc/pluginBus/pluginBus';
|
|
@@ -16,10 +15,6 @@ export declare abstract class NormalStateAbstractComponent<TCssClasses = any, TO
|
|
|
16
15
|
pluginElement: ElementRef;
|
|
17
16
|
protected _changeDetector: ChangeDetectorRef;
|
|
18
17
|
protected _stringLocalization: StringLocalization;
|
|
19
|
-
/**
|
|
20
|
-
* Subscription for changes in texts
|
|
21
|
-
*/
|
|
22
|
-
protected _textsChangedSubscription: Subscription;
|
|
23
18
|
/**
|
|
24
19
|
* Options for NgSelect plugin
|
|
25
20
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"normalStateAbstract.component.d.ts","sourceRoot":"","sources":["normalStateAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAY,MAAM,eAAe,CAAC;AAClF,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"normalStateAbstract.component.d.ts","sourceRoot":"","sources":["normalStateAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,UAAU,EAAE,SAAS,EAAY,MAAM,eAAe,CAAC;AAClF,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,cAAc,EAAC,MAAM,YAAY,CAAC;AAC1C,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAC,WAAW,EAAE,kBAAkB,EAAE,gBAAgB,EAAC,MAAM,yBAAyB,CAAC;AAC1F,OAAO,EAAC,YAAY,EAAC,MAAM,wCAAwC,CAAC;;AAGpE;;GAEG;AACH,8BACsB,4BAA4B,CAAC,WAAW,GAAG,GAAG,EAAE,QAAQ,SAAS,kBAAkB,CAAC,WAAW,EAAE,MAAM,CAAC,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG,CAAE,YAAW,WAAW,EAAE,cAAc,CAAC,QAAQ,CAAC,EAAE,SAAS;IA2CxL,eAAe,EAAE,uBAAuB;IACxC,SAAS,EAAE,SAAS;IACpB,aAAa,EAAE,UAAU;IAChC,SAAS,CAAC,eAAe,EAAE,iBAAiB;IAC5C,SAAS,CAAC,mBAAmB,EAAE,kBAAkB;IA3C7D;;OAEG;IACH,SAAS,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAE7B;;OAEG;IACH,SAAS,CAAC,UAAU,EAAE,OAAO,CAAS;IAItC;;OAEG;IACH,IAAW,OAAO,IAAI,QAAQ,CAG7B;IACD,IAAW,OAAO,CAAC,OAAO,EAAE,QAAQ,EAGnC;IAID;;;OAGG;IACI,KAAK,EAAE,gBAAgB,CAAM;IAEpC;;;OAGG;IACI,YAAY,EAAE,YAAY,CAAC;gBAGf,eAAe,EAAE,uBAAuB,EACxC,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,UAAU,EACtB,eAAe,EAAE,iBAAiB,EAClC,mBAAmB,EAAE,kBAAkB;IAM7D;;OAEG;IACI,WAAW;IAOlB;;OAEG;IACI,UAAU;IAiBjB;;OAEG;IACI,WAAW;IAIlB;;OAEG;IACI,iBAAiB,IAAI,IAAI;IAUhC;;OAEG;IACH,SAAS,CAAC,UAAU;yCA1GF,4BAA4B;2CAA5B,4BAA4B;CAmHjD"}
|
|
@@ -42,10 +42,6 @@ export declare class PopupAbstractComponent<TCssClasses = any, TOptions extends
|
|
|
42
42
|
* Subscription for changes of selected value
|
|
43
43
|
*/
|
|
44
44
|
protected _valueChangedSubscription: Subscription;
|
|
45
|
-
/**
|
|
46
|
-
* Subscription for changes in texts
|
|
47
|
-
*/
|
|
48
|
-
protected _textsChangedSubscription: Subscription;
|
|
49
45
|
/**
|
|
50
46
|
* Indication whether is popup visible
|
|
51
47
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"popupAbstract.component.d.ts","sourceRoot":"","sources":["popupAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAA0B,MAAM,eAAe,CAAC;AACxI,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAyB,CAAC;AAChE,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,YAAY,CAAC;AAC3D,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AACzD,OAAO,EAAC,KAAK,EAAE,YAAY,EAAE,UAAU,EAAC,MAAM,mBAAmB,CAAC;AAClE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;AAG7C;;GAEG;AACH,qBACa,sBAAsB,CAAC,WAAW,GAAG,GAAG,EAAE,QAAQ,SAAS,YAAY,CAAC,WAAW,CAAC,GAAG,GAAG,CAAE,YAAW,KAAK,EAAE,cAAc,CAAC,QAAQ,CAAC,EAAE,aAAa,EAAE,SAAS;
|
|
1
|
+
{"version":3,"file":"popupAbstract.component.d.ts","sourceRoot":"","sources":["popupAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAE,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,SAAS,EAA0B,MAAM,eAAe,CAAC;AACxI,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAGjD,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAC,uBAAuB,EAAC,MAAM,yBAAy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