@anglr/select 11.0.2 → 12.0.0-beta.20230109082659
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 +43 -0
- package/elements/src/components/ngSelectElements.component.d.ts +1 -1
- package/es2015/elements/src/components/ngSelectElements.component.js +7 -13
- package/es2015/elements/src/components/ngSelectElements.component.js.map +1 -1
- package/es2015/elements/src/modules/ngSelectElements.module.js +7 -9
- package/es2015/elements/src/modules/ngSelectElements.module.js.map +1 -1
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +3 -3
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +3 -3
- package/es2015/material/src/modules/dialogPopup.module.js +5 -7
- package/es2015/material/src/modules/dialogPopup.module.js.map +1 -1
- package/es2015/material/src/modules/virtualEditPopup.module.js +5 -7
- package/es2015/material/src/modules/virtualEditPopup.module.js.map +1 -1
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +3 -3
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +5 -5
- package/es2015/src/components/option/optgroup.component.js +3 -3
- package/es2015/src/components/option/option.component.js +3 -3
- package/es2015/src/components/select/select.component.js +9 -15
- package/es2015/src/components/select/select.component.js.map +1 -1
- package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +3 -3
- package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js +3 -3
- package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +3 -3
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js +3 -3
- package/es2015/src/misc/pluginBus/pluginBus.js +3 -3
- package/es2015/src/modules/ngSelect.module.js +8 -10
- package/es2015/src/modules/ngSelect.module.js.map +1 -1
- package/es2015/src/modules/ngSelectDynamic.module.js +4 -4
- package/es2015/src/modules/ngSelectEdit.module.js +5 -7
- package/es2015/src/modules/ngSelectEdit.module.js.map +1 -1
- package/es2015/src/pipes/ngSelectHasValue.pipe.js +3 -3
- package/es2015/src/pipes/ngSelectValue.pipe.js +3 -3
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +3 -3
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +3 -3
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +3 -3
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +3 -3
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +3 -3
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -1
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js +3 -3
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js +3 -3
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js +3 -3
- package/es2015/src/plugins/popup/basic/basicPopup.component.js +3 -3
- package/es2015/src/plugins/popup/basic/basicPopup.component.js.map +1 -1
- package/es2015/src/plugins/popup/edit/editPopup.component.js +3 -3
- package/es2015/src/plugins/popup/edit/editPopup.component.js.map +1 -1
- package/es2015/src/plugins/popup/popupAbstract.component.js +3 -3
- package/es2015/src/plugins/popup/popupAbstract.component.js.map +1 -1
- package/es2015/src/plugins/positioner/components.js +1 -1
- package/es2015/src/plugins/positioner/components.js.map +1 -1
- package/es2015/src/plugins/positioner/default/defaultPositioner.component.js +175 -0
- package/es2015/src/plugins/positioner/default/defaultPositioner.component.js.map +1 -0
- package/es2015/src/plugins/positioner/default/defaultPositioner.interface.js +2 -0
- package/es2015/src/plugins/positioner/default/defaultPositioner.interface.js.map +1 -0
- package/es2015/src/plugins/positioner/index.js +1 -1
- package/es2015/src/plugins/positioner/index.js.map +1 -1
- package/es2015/src/plugins/positioner/no/noPositioner.component.js +12 -7
- package/es2015/src/plugins/positioner/no/noPositioner.component.js.map +1 -1
- package/es2015/src/plugins/positioner/positioner.interface.js.map +1 -1
- package/es2015/src/plugins/positioner/types.js +0 -1
- package/es2015/src/plugins/positioner/types.js.map +1 -1
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +3 -3
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +3 -3
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js +3 -3
- package/es2020/elements/src/components/ngSelectElements.component.js +7 -13
- package/es2020/elements/src/components/ngSelectElements.component.js.map +1 -1
- package/es2020/elements/src/modules/ngSelectElements.module.js +7 -9
- package/es2020/elements/src/modules/ngSelectElements.module.js.map +1 -1
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js +3 -3
- package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js +3 -3
- package/es2020/material/src/modules/dialogPopup.module.js +5 -7
- package/es2020/material/src/modules/dialogPopup.module.js.map +1 -1
- package/es2020/material/src/modules/virtualEditPopup.module.js +5 -7
- package/es2020/material/src/modules/virtualEditPopup.module.js.map +1 -1
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js +3 -3
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +5 -5
- package/es2020/src/components/option/optgroup.component.js +3 -3
- package/es2020/src/components/option/option.component.js +3 -3
- package/es2020/src/components/select/select.component.js +9 -15
- package/es2020/src/components/select/select.component.js.map +1 -1
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +3 -3
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js +3 -3
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +3 -3
- package/es2020/src/misc/ngSelectControlValueAccessor.directive.js +3 -3
- package/es2020/src/misc/pluginBus/pluginBus.js +3 -3
- package/es2020/src/modules/ngSelect.module.js +8 -10
- package/es2020/src/modules/ngSelect.module.js.map +1 -1
- package/es2020/src/modules/ngSelectDynamic.module.js +4 -4
- package/es2020/src/modules/ngSelectEdit.module.js +5 -7
- package/es2020/src/modules/ngSelectEdit.module.js.map +1 -1
- package/es2020/src/pipes/ngSelectHasValue.pipe.js +3 -3
- package/es2020/src/pipes/ngSelectValue.pipe.js +3 -3
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +3 -3
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +3 -3
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js +3 -3
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js +3 -3
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js +3 -3
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -1
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js +3 -3
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js +3 -3
- package/es2020/src/plugins/normalState/normalStateAbstract.component.js +3 -3
- package/es2020/src/plugins/popup/basic/basicPopup.component.js +3 -3
- package/es2020/src/plugins/popup/basic/basicPopup.component.js.map +1 -1
- package/es2020/src/plugins/popup/edit/editPopup.component.js +3 -3
- package/es2020/src/plugins/popup/edit/editPopup.component.js.map +1 -1
- package/es2020/src/plugins/popup/popupAbstract.component.js +3 -3
- package/es2020/src/plugins/popup/popupAbstract.component.js.map +1 -1
- package/es2020/src/plugins/positioner/components.js +1 -1
- package/es2020/src/plugins/positioner/components.js.map +1 -1
- package/es2020/src/plugins/positioner/default/defaultPositioner.component.js +172 -0
- package/es2020/src/plugins/positioner/default/defaultPositioner.component.js.map +1 -0
- package/es2020/src/plugins/positioner/default/defaultPositioner.interface.js +2 -0
- package/es2020/src/plugins/positioner/default/defaultPositioner.interface.js.map +1 -0
- package/es2020/src/plugins/positioner/index.js +1 -1
- package/es2020/src/plugins/positioner/index.js.map +1 -1
- package/es2020/src/plugins/positioner/no/noPositioner.component.js +12 -7
- package/es2020/src/plugins/positioner/no/noPositioner.component.js.map +1 -1
- package/es2020/src/plugins/positioner/positioner.interface.js.map +1 -1
- package/es2020/src/plugins/positioner/types.js +0 -1
- package/es2020/src/plugins/positioner/types.js.map +1 -1
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js +3 -3
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +3 -3
- package/es2020/src/plugins/valueHandler/valueHandlerBase.js +3 -3
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +1 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +1 -1
- package/package.json +37 -52
- package/src/components/option/optgroup.component.d.ts +1 -1
- package/src/components/option/option.component.d.ts +1 -1
- package/src/components/select/select.component.d.ts +1 -1
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +1 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +1 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +1 -1
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts +1 -1
- package/src/modules/ngSelect.module.d.ts +2 -2
- package/src/pipes/ngSelectHasValue.pipe.d.ts +1 -1
- package/src/pipes/ngSelectValue.pipe.d.ts +1 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +1 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +1 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +1 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +1 -1
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +1 -1
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts +1 -1
- package/src/plugins/normalState/edit/editNormalState.component.d.ts +1 -1
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +1 -1
- package/src/plugins/popup/basic/basicPopup.component.d.ts +1 -1
- package/src/plugins/popup/edit/editPopup.component.d.ts +1 -1
- package/src/plugins/popup/popupAbstract.component.d.ts +1 -1
- package/src/plugins/positioner/components.d.ts +1 -1
- package/src/plugins/positioner/components.d.ts.map +1 -1
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts +94 -0
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +1 -0
- package/src/plugins/positioner/default/defaultPositioner.interface.d.ts +12 -0
- package/src/plugins/positioner/default/defaultPositioner.interface.d.ts.map +1 -0
- package/src/plugins/positioner/index.d.ts +1 -1
- package/src/plugins/positioner/index.d.ts.map +1 -1
- package/src/plugins/positioner/no/noPositioner.component.d.ts +11 -3
- package/src/plugins/positioner/no/noPositioner.component.d.ts.map +1 -1
- package/src/plugins/positioner/positioner.interface.d.ts +8 -7
- package/src/plugins/positioner/positioner.interface.d.ts.map +1 -1
- package/src/plugins/positioner/types.d.ts +0 -1
- package/src/plugins/positioner/types.d.ts.map +1 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +1 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +1 -1
- package/src/plugins/valueHandler/valueHandlerBase.d.ts +1 -1
- package/version.bak +1 -1
- package/es2015/popperJs/src/index.js +0 -4
- package/es2015/popperJs/src/index.js.map +0 -1
- package/es2015/popperJs/src/modules/popperjsPositioner.module.js +0 -23
- package/es2015/popperJs/src/modules/popperjsPositioner.module.js.map +0 -1
- package/es2015/popperJs/src/plugins/positioner/components.js +0 -2
- package/es2015/popperJs/src/plugins/positioner/components.js.map +0 -1
- package/es2015/popperJs/src/plugins/positioner/index.js +0 -2
- package/es2015/popperJs/src/plugins/positioner/index.js.map +0 -1
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +0 -151
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js.map +0 -1
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +0 -2
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js.map +0 -1
- package/es2015/src/plugins/positioner/basic/basicPositioner.component.js +0 -193
- package/es2015/src/plugins/positioner/basic/basicPositioner.component.js.map +0 -1
- package/es2015/src/plugins/positioner/basic/basicPositioner.interface.js +0 -2
- package/es2015/src/plugins/positioner/basic/basicPositioner.interface.js.map +0 -1
- package/es2015/src/plugins/positioner/basic/types.js +0 -36
- package/es2015/src/plugins/positioner/basic/types.js.map +0 -1
- package/es2020/popperJs/src/index.js +0 -4
- package/es2020/popperJs/src/index.js.map +0 -1
- package/es2020/popperJs/src/modules/popperjsPositioner.module.js +0 -23
- package/es2020/popperJs/src/modules/popperjsPositioner.module.js.map +0 -1
- package/es2020/popperJs/src/plugins/positioner/components.js +0 -2
- package/es2020/popperJs/src/plugins/positioner/components.js.map +0 -1
- package/es2020/popperJs/src/plugins/positioner/index.js +0 -2
- package/es2020/popperJs/src/plugins/positioner/index.js.map +0 -1
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +0 -148
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js.map +0 -1
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +0 -2
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js.map +0 -1
- package/es2020/src/plugins/positioner/basic/basicPositioner.component.js +0 -190
- package/es2020/src/plugins/positioner/basic/basicPositioner.component.js.map +0 -1
- package/es2020/src/plugins/positioner/basic/basicPositioner.interface.js +0 -2
- package/es2020/src/plugins/positioner/basic/basicPositioner.interface.js.map +0 -1
- package/es2020/src/plugins/positioner/basic/types.js +0 -36
- package/es2020/src/plugins/positioner/basic/types.js.map +0 -1
- package/popperJs/package.json +0 -9
- package/popperJs/src/index.d.ts +0 -4
- package/popperJs/src/index.d.ts.map +0 -1
- package/popperJs/src/modules/popperjsPositioner.module.d.ts +0 -11
- package/popperJs/src/modules/popperjsPositioner.module.d.ts.map +0 -1
- package/popperJs/src/plugins/positioner/components.d.ts +0 -2
- package/popperJs/src/plugins/positioner/components.d.ts.map +0 -1
- package/popperJs/src/plugins/positioner/index.d.ts +0 -2
- package/popperJs/src/plugins/positioner/index.d.ts.map +0 -1
- package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.d.ts +0 -78
- package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.d.ts.map +0 -1
- package/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.d.ts +0 -12
- package/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/basic/basicPositioner.component.d.ts +0 -90
- package/src/plugins/positioner/basic/basicPositioner.component.d.ts.map +0 -1
- package/src/plugins/positioner/basic/basicPositioner.interface.d.ts +0 -29
- package/src/plugins/positioner/basic/basicPositioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/basic/types.d.ts +0 -22
- package/src/plugins/positioner/basic/types.d.ts.map +0 -1
package/changelog.md
CHANGED
|
@@ -1,5 +1,48 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Version 12.0.0 (2023-01-09)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- new `DefaultPositioner` interface, that represents public API for 'DefaultPositionerComponent'
|
|
8
|
+
- **extends**
|
|
9
|
+
- `Positioner`
|
|
10
|
+
- new `DefaultPositionerOptions` interface, that represents default positioner options
|
|
11
|
+
- **extends**
|
|
12
|
+
- `PositionerOptions`
|
|
13
|
+
- new `DefaultPositionerComponent` component, that is used for positioning popup element, handles resize, scroll and collision using `Position`
|
|
14
|
+
- **implements**
|
|
15
|
+
- `DefaultPositioner`
|
|
16
|
+
- `NgSelectPlugin<DefaultPositionerOptions>`
|
|
17
|
+
- `OnDestroy`
|
|
18
|
+
- updated `Positioner` interface
|
|
19
|
+
- **new properties**
|
|
20
|
+
- `flip` occurs when flip occured during positining of popup
|
|
21
|
+
- updated `PositionerOptions` interface
|
|
22
|
+
- **new properties**
|
|
23
|
+
- `positionOptions` options used for positioning
|
|
24
|
+
|
|
25
|
+
### BREAKING CHANGES
|
|
26
|
+
|
|
27
|
+
- updated minimal version requirements for `Node.js` (`14.20.0` or `16.13.0` or `18.10.0`)
|
|
28
|
+
- minimal supported version of `@angular` is now `15.0.4`
|
|
29
|
+
- minimal supported version of `rxjs` is now `7.5.6`
|
|
30
|
+
- minimal supported version of `@jscrpt/common` is now `3.3.0`
|
|
31
|
+
- minimal supported version of `@anglr/common` is now `15.0.1`
|
|
32
|
+
- minimal supported version of `tslib` is now `2.4.1`
|
|
33
|
+
- removed dependency from `positions`
|
|
34
|
+
- removed dependency from `@popperjs/core`
|
|
35
|
+
- removed subpackage `@anglr/select/popperjs`
|
|
36
|
+
- updated `PositionerOptions` interface
|
|
37
|
+
- new way of configuring displayed popup
|
|
38
|
+
- **removed properties**
|
|
39
|
+
- `optionsCoordinates`
|
|
40
|
+
- `selectCoordinates`
|
|
41
|
+
- removed `ScrollTargetSelector` service
|
|
42
|
+
- removed `BasicPositionerComponent` component, replaced with `DefaultPositionerComponent`
|
|
43
|
+
- removed `BasicPositionerOptions` interface, replaced with `DefaultPositionerOptions`
|
|
44
|
+
- removed `BasicPositioner` interface, replaced with `DefaultPositioner`
|
|
45
|
+
|
|
3
46
|
## Version 11.0.2 (2022-02-22)
|
|
4
47
|
|
|
5
48
|
### Bug Fixes
|
|
@@ -62,6 +62,6 @@ export declare class NgSelectElementsComponent<TValue = any> extends NgSelectCom
|
|
|
62
62
|
*/
|
|
63
63
|
executeAndReturnWC: <TResult>(func: NgSelectFunction<TResult, TValue>) => TResult;
|
|
64
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectElementsComponent<any>, [null, null, null, null, null, null, null, { attribute: "readonly"; }, { attribute: "disabled"; }, { attribute: "multiple"; }]>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NgSelectElementsComponent<any>, "ng-select-web-component", never, { "initializedWC": "initializedWC"; "isInitializedWC": "isInitializedWC"; "selectOptionsWC": "selectOptions"; "initializeWC": "initializeWC"; "initOptionsWC": "initOptionsWC"; "getPluginWC": "getPluginWC"; "invalidateVisualsWC": "invalidateVisualsWC"; "executeWC": "executeWC"; "executeAndReturnWC": "executeAndReturnWC"; }, {}, never, never>;
|
|
65
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NgSelectElementsComponent<any>, "ng-select-web-component", never, { "initializedWC": "initializedWC"; "isInitializedWC": "isInitializedWC"; "selectOptionsWC": "selectOptions"; "initializeWC": "initializeWC"; "initOptionsWC": "initOptionsWC"; "getPluginWC": "getPluginWC"; "invalidateVisualsWC": "invalidateVisualsWC"; "executeWC": "executeWC"; "executeAndReturnWC": "executeAndReturnWC"; }, {}, never, never, false, never>;
|
|
66
66
|
}
|
|
67
67
|
//# sourceMappingURL=ngSelectElements.component.d.ts.map
|
|
@@ -4,8 +4,8 @@ import { isString } from '@jscrpt/common';
|
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "@anglr/select";
|
|
7
|
-
import * as i2 from "@
|
|
8
|
-
import * as i3 from "@
|
|
7
|
+
import * as i2 from "@angular/common";
|
|
8
|
+
import * as i3 from "@anglr/common";
|
|
9
9
|
const NG_OPTION = 'NG-OPTION';
|
|
10
10
|
/**
|
|
11
11
|
* Component that represents WebComponent implementation of NgSelect
|
|
@@ -123,8 +123,8 @@ export class NgSelectElementsComponent extends NgSelectComponent {
|
|
|
123
123
|
super.ngOnDestroy();
|
|
124
124
|
}
|
|
125
125
|
}
|
|
126
|
-
NgSelectElementsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
127
|
-
NgSelectElementsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
126
|
+
NgSelectElementsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectElementsComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: i1.PluginBus }, { token: NG_SELECT_PLUGIN_INSTANCES }, { token: 'readonly', attribute: true }, { token: 'disabled', attribute: true }, { token: 'multiple', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
127
|
+
NgSelectElementsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NgSelectElementsComponent, selector: "ng-select-web-component", inputs: { initializedWC: "initializedWC", isInitializedWC: "isInitializedWC", selectOptionsWC: ["selectOptions", "selectOptionsWC"], initializeWC: "initializeWC", initOptionsWC: "initOptionsWC", getPluginWC: "getPluginWC", invalidateVisualsWC: "invalidateVisualsWC", executeWC: "executeWC", executeAndReturnWC: "executeAndReturnWC" }, providers: [
|
|
128
128
|
{
|
|
129
129
|
provide: NG_SELECT_PLUGIN_INSTANCES,
|
|
130
130
|
useFactory: () => { return {}; }
|
|
@@ -133,8 +133,8 @@ NgSelectElementsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.
|
|
|
133
133
|
provide: PluginBus,
|
|
134
134
|
useClass: PluginBus
|
|
135
135
|
}
|
|
136
|
-
], usesInheritance: true, ngImport: i0, template: "<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n</div>", styles: [":host\n {\n display: block;\n position: relative;\n }"],
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
136
|
+
], usesInheritance: true, ngImport: i0, template: "<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n</div>", styles: [":host\n {\n display: block;\n position: relative;\n }"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
137
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectElementsComponent, decorators: [{
|
|
138
138
|
type: Component,
|
|
139
139
|
args: [{ selector: 'ng-select-web-component', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
140
140
|
{
|
|
@@ -145,13 +145,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
145
145
|
provide: PluginBus,
|
|
146
146
|
useClass: PluginBus
|
|
147
147
|
}
|
|
148
|
-
], styles: [
|
|
149
|
-
`:host
|
|
150
|
-
{
|
|
151
|
-
display: block;
|
|
152
|
-
position: relative;
|
|
153
|
-
}`
|
|
154
|
-
], template: "<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n</div>" }]
|
|
148
|
+
], template: "<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n</div>", styles: [":host\n {\n display: block;\n position: relative;\n }"] }]
|
|
155
149
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: i1.PluginBus }, { type: undefined, decorators: [{
|
|
156
150
|
type: Inject,
|
|
157
151
|
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectElements.component.js","sourceRoot":"","sources":["../../../../elements/src/components/ngSelectElements.component.ts","../../../../elements/src/components/ngSelectElements.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAmB,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,wBAAwB,EAAE,cAAc,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AAC9M,OAAO,EAAC,iBAAiB,EAAE,0BAA0B,EAA8F,mBAAmB,EAAkB,SAAS,EAAC,MAAM,eAAe,CAAC;AACxN,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;;;;;AAIhC,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B;;GAEG;AA2BH,MAAM,OAAO,yBAAwC,SAAQ,iBAAyB;IA6DlF,kEAAkE;IAClE,YAAY,cAAiC,EACjC,OAAgC,EAChC,wBAAkD,EAClD,MAAsB,EACtB,QAAkB,EAClB,SAA4B,EACkB,eAAwC,EAC/D,QAAiB,EACjB,QAAiB,EACjB,QAAi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;;UAIE;qBACL;;0BAsEY,MAAM;2BAAC,0BAA0B;;0BACjC,SAAS;2BAAC,UAAU;;0BACpB,SAAS;2BAAC,UAAU;;0BACpB,SAAS;2BAAC,UAAU;4CAnDtB,aAAa;sBADvB,KAAK;gBAUK,eAAe;sBADzB,KAAK;gBAUK,eAAe;sBADzB,KAAK;uBAAC,eAAe;gBAgHf,YAAY;sBADlB,KAAK;gBAOC,aAAa;sBADnB,KAAK;gBAQC,WAAW;sBADjB,KAAK;gBAOC,mBAAmB;sBADzB,KAAK;gBAQC,SAAS;sBADf,KAAK;gBAQC,kBAAkB;sBADxB,KAAK","sourcesContent":["import {Component, ChangeDetectionStrategy, FactoryProvider, Input, ChangeDetectorRef, ElementRef, Inject, Attribute, ComponentFactoryResolver, ApplicationRef, Injector, ClassProvider} from '@angular/core';\nimport {NgSelectComponent, NG_SELECT_PLUGIN_INSTANCES, NgSelectOptions, NgSelectAction, NgSelectFunction, NgSelectPluginInstances, NgSelectPlugin, CodeOptionsGatherer, NgSelectOption, PluginBus} from '@anglr/select';\nimport {isString} from '@jscrpt/common';\nimport {Observable} from 'rxjs';\n\nimport {NgSelectWebComponent} from './ngSelectElements.interface';\n\nconst NG_OPTION = 'NG-OPTION';\n\n/**\n * Component that represents WebComponent implementation of NgSelect\n */\n@Component(\n{\n selector: 'ng-select-web-component',\n templateUrl: 'ngSelectElements.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers:\n [\n <FactoryProvider>\n {\n provide: NG_SELECT_PLUGIN_INSTANCES,\n useFactory: () => {return {};}\n },\n <ClassProvider>\n {\n provide: PluginBus,\n useClass: PluginBus\n }\n ],\n styles: [\n `:host\n {\n display: block;\n position: relative;\n }`\n ]\n})\nexport class NgSelectElementsComponent<TValue = any> extends NgSelectComponent<TValue> implements NgSelectWebComponent<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Mutation observer, that observes ng-options\n */\n protected _optionsObserver: MutationObserver;\n\n /**\n * Options gatherer used for NgSelect WebComponent\n */\n protected _codeOptionsGatherer: CodeOptionsGatherer<TValue> = new CodeOptionsGatherer<TValue>();\n\n //######################### public properties #########################\n\n /**\n * Occurs every time when NgSelect is initialized or reinitialized, if value is false NgSelect was not initialized yet\n */\n @Input()\n public get initializedWC(): Observable<boolean>\n {\n return this.initialized;\n }\n\n /**\n * Gets current state of initialization\n */\n @Input()\n public get isInitializedWC(): boolean\n {\n return this.isInitialized;\n }\n\n /**\n * Gets or sets NgSelect options\n */\n @Input('selectOptions')\n public get selectOptionsWC(): NgSelectOptions<TValue>\n {\n return this.selectOptions;\n }\n public set selectOptionsWC(options: NgSelectOptions<TValue>)\n {\n if(isString(options))\n {\n try\n {\n options = JSON.parse(options);\n }\n catch(e)\n {\n console.log(e);\n\n options = {};\n }\n }\n\n this.selectOptions = options;\n }\n\n //######################### constructors #########################\n constructor(changeDetector: ChangeDetectorRef,\n element: ElementRef<HTMLElement>,\n componentFactoryResolver: ComponentFactoryResolver,\n appRef: ApplicationRef,\n injector: Injector,\n pluginBus: PluginBus<TValue>,\n @Inject(NG_SELECT_PLUGIN_INSTANCES) protected pluginInstances: NgSelectPluginInstances,\n @Attribute('readonly') readonly?: string,\n @Attribute('disabled') disabled?: string,\n @Attribute('multiple') multiple?: string)\n {\n super(changeDetector, element, componentFactoryResolver, appRef, injector, pluginBus, pluginInstances, null, null, null, null, null, null, null, null, readonly, disabled, multiple);\n\n this._selectOptions.optionsGatherer = this._codeOptionsGatherer;\n\n this._optionsObserver = new MutationObserver(mutationsList =>\n {\n let added: boolean = false;\n let removed: boolean = false;\n\n mutationsList.forEach(itm => \n {\n itm.addedNodes.forEach(node =>\n {\n if(node.nodeName == NG_OPTION)\n {\n added = true;\n }\n });\n\n itm.removedNodes.forEach(node =>\n {\n if(node.nodeName == NG_OPTION)\n {\n removed = true;\n }\n });\n\n if(added || removed)\n {\n const options: NgSelectOption<TValue>[] = [];\n\n for(let x = 0; x < element.nativeElement.children.length; x++)\n {\n const itm = element.nativeElement.children.item(x) as NgSelectOption<TValue> & HTMLElement;\n\n if(itm.nodeName == NG_OPTION)\n {\n options.push(itm);\n }\n }\n\n this._codeOptionsGatherer.options = options;\n this._codeOptionsGatherer.optionsChange.emit();\n this._codeOptionsGatherer.availableOptionsChange.emit();\n }\n });\n });\n\n this._optionsObserver.observe(element.nativeElement,\n {\n childList: true\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public override ngOnDestroy()\n {\n if(this._optionsObserver)\n {\n this._optionsObserver.disconnect();\n this._optionsObserver = null;\n }\n\n super.ngOnDestroy();\n }\n\n //######################### public methods #########################\n\n /**\n * Initialize component, automatically called once if not blocked by options\n */\n @Input()\n public initializeWC = () => this.initialize();\n\n /**\n * Initialize options, automaticaly called during init phase, but can be used to reinitialize NgSelectOptions\n */\n @Input()\n public initOptionsWC = () => this.initOptions();\n\n /**\n * Gets instance of plugin by its id\n * @param pluginId - Id of plugin, use constants\n */\n @Input()\n public getPluginWC = <PluginType extends NgSelectPlugin>(pluginId: string): PluginType => this.getPlugin(pluginId);\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n @Input()\n public invalidateVisualsWC = (): void => this.invalidateVisuals();\n\n /**\n * Executes actions on NgSelect\n * @param actions - Array of actions that are executed over NgSelect\n */\n @Input()\n public executeWC = (...actions: NgSelectAction<TValue>[]) => this.execute(...actions);\n\n /**\n * Executes function on NgSelect and returns result\n * @param func - Function that is executed and its result is returned\n */\n @Input()\n public executeAndReturnWC = <TResult>(func: NgSelectFunction<TResult, TValue>): TResult => this.executeAndReturn(func);\n}","<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n</div>"]}
|
|
1
|
+
{"version":3,"file":"ngSelectElements.component.js","sourceRoot":"","sources":["../../../../elements/src/components/ngSelectElements.component.ts","../../../../elements/src/components/ngSelectElements.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAmB,KAAK,EAAE,iBAAiB,EAAE,UAAU,EAAE,MAAM,EAAE,SAAS,EAAE,wBAAwB,EAAE,cAAc,EAAE,QAAQ,EAAgB,MAAM,eAAe,CAAC;AAC9M,OAAO,EAAC,iBAAiB,EAAE,0BAA0B,EAA8F,mBAAmB,EAAkB,SAAS,EAAC,MAAM,eAAe,CAAC;AACxN,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAAC,UAAU,EAAC,MAAM,MAAM,CAAC;;;;;AAIhC,MAAM,SAAS,GAAG,WAAW,CAAC;AAE9B;;GAEG;AA2BH,MAAM,OAAO,yBAAwC,SAAQ,iBAAyB;IA6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UAAU,EAAE,GAAG,EAAE,GAAE,OAAO,EAAE,CAAC,CAAA,CAAC;yBACjC;wBAED;4BACI,OAAO,EAAE,SAAS;4BAClB,QAAQ,EAAE,SAAS;yBACtB;qBACJ;;0BA6EY,MAAM;2BAAC,0BAA0B;;0BACjC,SAAS;2BAAC,UAAU;;0BACpB,SAAS;2BAAC,UAAU;;0BACpB,SAAS;2BAAC,UAAU;4CAnDtB,aAAa;sBADvB,KAAK;gBAUK,eAAe;sBADzB,KAAK;gBAUK,eAAe;sBADzB,KAAK;uBAAC,eAAe;gBAgHf,YAAY;sBADlB,KAAK;gBAOC,aAAa;sBADnB,KAAK;gBAQC,WAAW;sBADjB,KAAK;gBAOC,mBAAmB;sBADzB,KAAK;gBAQC,SAAS;sBADf,KAAK;gBAQC,kBAAkB;sBADxB,KAAK","sourcesContent":["import {Component, ChangeDetectionStrategy, FactoryProvider, Input, ChangeDetectorRef, ElementRef, Inject, Attribute, ComponentFactoryResolver, ApplicationRef, Injector, ClassProvider} from '@angular/core';\nimport {NgSelectComponent, NG_SELECT_PLUGIN_INSTANCES, NgSelectOptions, NgSelectAction, NgSelectFunction, NgSelectPluginInstances, NgSelectPlugin, CodeOptionsGatherer, NgSelectOption, PluginBus} from '@anglr/select';\nimport {isString} from '@jscrpt/common';\nimport {Observable} from 'rxjs';\n\nimport {NgSelectWebComponent} from './ngSelectElements.interface';\n\nconst NG_OPTION = 'NG-OPTION';\n\n/**\n * Component that represents WebComponent implementation of NgSelect\n */\n@Component(\n{\n selector: 'ng-select-web-component',\n templateUrl: 'ngSelectElements.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers:\n [\n <FactoryProvider>\n {\n provide: NG_SELECT_PLUGIN_INSTANCES,\n useFactory: () => {return {};}\n },\n <ClassProvider>\n {\n provide: PluginBus,\n useClass: PluginBus\n }\n ],\n styles: [\n `:host\n {\n display: block;\n position: relative;\n }`\n ]\n})\nexport class NgSelectElementsComponent<TValue = any> extends NgSelectComponent<TValue> implements NgSelectWebComponent<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Mutation observer, that observes ng-options\n */\n protected _optionsObserver: MutationObserver;\n\n /**\n * Options gatherer used for NgSelect WebComponent\n */\n protected _codeOptionsGatherer: CodeOptionsGatherer<TValue> = new CodeOptionsGatherer<TValue>();\n\n //######################### public properties #########################\n\n /**\n * Occurs every time when NgSelect is initialized or reinitialized, if value is false NgSelect was not initialized yet\n */\n @Input()\n public get initializedWC(): Observable<boolean>\n {\n return this.initialized;\n }\n\n /**\n * Gets current state of initialization\n */\n @Input()\n public get isInitializedWC(): boolean\n {\n return this.isInitialized;\n }\n\n /**\n * Gets or sets NgSelect options\n */\n @Input('selectOptions')\n public get selectOptionsWC(): NgSelectOptions<TValue>\n {\n return this.selectOptions;\n }\n public set selectOptionsWC(options: NgSelectOptions<TValue>)\n {\n if(isString(options))\n {\n try\n {\n options = JSON.parse(options);\n }\n catch(e)\n {\n console.log(e);\n\n options = {};\n }\n }\n\n this.selectOptions = options;\n }\n\n //######################### constructors #########################\n constructor(changeDetector: ChangeDetectorRef,\n element: ElementRef<HTMLElement>,\n componentFactoryResolver: ComponentFactoryResolver,\n appRef: ApplicationRef,\n injector: Injector,\n pluginBus: PluginBus<TValue>,\n @Inject(NG_SELECT_PLUGIN_INSTANCES) protected pluginInstances: NgSelectPluginInstances,\n @Attribute('readonly') readonly?: string,\n @Attribute('disabled') disabled?: string,\n @Attribute('multiple') multiple?: string)\n {\n super(changeDetector, element, componentFactoryResolver, appRef, injector, pluginBus, pluginInstances, null, null, null, null, null, null, null, null, readonly, disabled, multiple);\n\n this._selectOptions.optionsGatherer = this._codeOptionsGatherer;\n\n this._optionsObserver = new MutationObserver(mutationsList =>\n {\n let added: boolean = false;\n let removed: boolean = false;\n\n mutationsList.forEach(itm => \n {\n itm.addedNodes.forEach(node =>\n {\n if(node.nodeName == NG_OPTION)\n {\n added = true;\n }\n });\n\n itm.removedNodes.forEach(node =>\n {\n if(node.nodeName == NG_OPTION)\n {\n removed = true;\n }\n });\n\n if(added || removed)\n {\n const options: NgSelectOption<TValue>[] = [];\n\n for(let x = 0; x < element.nativeElement.children.length; x++)\n {\n const itm = element.nativeElement.children.item(x) as NgSelectOption<TValue> & HTMLElement;\n\n if(itm.nodeName == NG_OPTION)\n {\n options.push(itm);\n }\n }\n\n this._codeOptionsGatherer.options = options;\n this._codeOptionsGatherer.optionsChange.emit();\n this._codeOptionsGatherer.availableOptionsChange.emit();\n }\n });\n });\n\n this._optionsObserver.observe(element.nativeElement,\n {\n childList: true\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public override ngOnDestroy()\n {\n if(this._optionsObserver)\n {\n this._optionsObserver.disconnect();\n this._optionsObserver = null;\n }\n\n super.ngOnDestroy();\n }\n\n //######################### public methods #########################\n\n /**\n * Initialize component, automatically called once if not blocked by options\n */\n @Input()\n public initializeWC = () => this.initialize();\n\n /**\n * Initialize options, automaticaly called during init phase, but can be used to reinitialize NgSelectOptions\n */\n @Input()\n public initOptionsWC = () => this.initOptions();\n\n /**\n * Gets instance of plugin by its id\n * @param pluginId - Id of plugin, use constants\n */\n @Input()\n public getPluginWC = <PluginType extends NgSelectPlugin>(pluginId: string): PluginType => this.getPlugin(pluginId);\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n @Input()\n public invalidateVisualsWC = (): void => this.invalidateVisuals();\n\n /**\n * Executes actions on NgSelect\n * @param actions - Array of actions that are executed over NgSelect\n */\n @Input()\n public executeWC = (...actions: NgSelectAction<TValue>[]) => this.execute(...actions);\n\n /**\n * Executes function on NgSelect and returns result\n * @param func - Function that is executed and its result is returned\n */\n @Input()\n public executeAndReturnWC = <TResult>(func: NgSelectFunction<TResult, TValue>): TResult => this.executeAndReturn(func);\n}","<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n</div>"]}
|
|
@@ -24,18 +24,16 @@ export class NgSelectElementsModule {
|
|
|
24
24
|
ngDoBootstrap() {
|
|
25
25
|
}
|
|
26
26
|
}
|
|
27
|
-
NgSelectElementsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
28
|
-
NgSelectElementsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
27
|
+
NgSelectElementsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectElementsModule, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.NgModule });
|
|
28
|
+
NgSelectElementsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectElementsModule, declarations: [NgSelectElementsComponent], imports: [BrowserModule,
|
|
29
29
|
CommonModule,
|
|
30
30
|
CommonDynamicModule,
|
|
31
31
|
NgSelectModule] });
|
|
32
|
-
NgSelectElementsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
]] });
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NgSelectElementsModule, decorators: [{
|
|
32
|
+
NgSelectElementsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectElementsModule, imports: [BrowserModule,
|
|
33
|
+
CommonModule,
|
|
34
|
+
CommonDynamicModule,
|
|
35
|
+
NgSelectModule] });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectElementsModule, decorators: [{
|
|
39
37
|
type: NgModule,
|
|
40
38
|
args: [{
|
|
41
39
|
imports: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectElements.module.js","sourceRoot":"","sources":["../../../../elements/src/modules/ngSelectElements.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAe,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,aAAa,EAAC,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAC,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AACtD,OAAO,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,cAAc,EAAE,eAAe,EAAC,MAAM,eAAe,CAAC;AAE9D,OAAO,EAAC,yBAAyB,EAAC,MAAM,0CAA0C,CAAC;;AAEnF;;GAEG;AA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AAC,CAAC;QAE7C,MAAM,QAAQ,GAAG,mBAAmB,CAAC,yBAAyB,EAAE,EAAC,QAAQ,EAAC,CAAC,CAAC;QAC5E,cAAc,CAAC,MAAM,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACjD,CAAC;IAED,oGAAoG;IAEpG;;OAEG;IACI,aAAa;IAEpB,CAAC;;mHAnBQ,sBAAsB;oHAAtB,sBAAsB,iBAH3B,yBAAyB,aAPzB,aAAa;QACb,YAAY;QACZ,mBAAmB;QACnB,cAAc;oHAOT,sBAAsB,YAV3B,aAAa;QACb,YAAY;QACZ,mBAAmB;QACnB,cAAc;2FAOT,sBAAsB;kBAdlC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,aAAa;wBACb,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;qBACjB;oBACD,YAAY,EACZ;wBACI,yBAAyB;qBAC5B;iBACJ","sourcesContent":["import {NgModule, DoBootstrap, Injector} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {BrowserModule} from '@angular/platform-browser';\nimport {createCustomElement} from '@angular/elements';\nimport {CommonDynamicModule} from '@anglr/common';\nimport {NgSelectModule, OptionComponent} from '@anglr/select';\n\nimport {NgSelectElementsComponent} from '../components/ngSelectElements.component';\n\n/**\n * Represents module for WebComponent NgSelect\n */\n@NgModule(\n{\n imports:\n [\n BrowserModule,\n CommonModule,\n CommonDynamicModule,\n NgSelectModule,\n ],\n declarations:\n [\n NgSelectElementsComponent\n ]\n})\nexport class NgSelectElementsModule implements DoBootstrap\n{\n //######################### constructor #########################\n constructor(injector: Injector) \n {\n const ngOption = createCustomElement(OptionComponent, {injector});\n customElements.define('ng-option', ngOption);\n\n const ngSelect = createCustomElement(NgSelectElementsComponent, {injector});\n customElements.define('ng-select', ngSelect);\n }\n\n //######################### public methods - implementation of DoBootstrap #########################\n \n /**\n * Called during bootstrapping of module\n */\n public ngDoBootstrap()\n {\n }\n}"]}
|
|
@@ -62,9 +62,9 @@ export class BasicDialogPopupComponent {
|
|
|
62
62
|
this._changeDetector.detectChanges();
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
|
-
BasicDialogPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
66
|
-
BasicDialogPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
65
|
+
BasicDialogPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicDialogPopupComponent, deps: [{ token: i1.MatDialogRef }, { token: i0.ChangeDetectorRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
BasicDialogPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: BasicDialogPopupComponent, selector: "ng-select-basic-dialog-popup", ngImport: i0, template: " \r\n<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.selected]=\"option?.selected\"\r\n (click)=\"data?.pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"data?.pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"option?.selected && data?.pluginBus?.selectOptions?.multiple\" [ngClass]=\"options?.cssClasses?.optionChecked\"></div>\r\n</div>", styles: [".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 });
|
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicDialogPopupComponent, decorators: [{
|
|
68
68
|
type: Component,
|
|
69
69
|
args: [{ selector: 'ng-select-basic-dialog-popup', changeDetection: ChangeDetectionStrategy.OnPush, template: " \r\n<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.selected]=\"option?.selected\"\r\n (click)=\"data?.pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"data?.pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n\r\n <div *ngIf=\"option?.selected && data?.pluginBus?.selectOptions?.multiple\" [ngClass]=\"options?.cssClasses?.optionChecked\"></div>\r\n</div>", styles: [".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}"] }]
|
|
70
70
|
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
@@ -48,14 +48,14 @@ export class DialogPopupDirective {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
|
-
DialogPopupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
52
|
-
DialogPopupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "
|
|
51
|
+
DialogPopupDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogPopupDirective, deps: [{ token: i1.NgSelectComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
52
|
+
DialogPopupDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: DialogPopupDirective, selector: "ng-select[dialogPopup]", inputs: { popupType: ["dialogPopup", "popupType"], dialogPopupOptions: "dialogPopupOptions" }, providers: [
|
|
53
53
|
{
|
|
54
54
|
provide: POPUP_TYPE,
|
|
55
55
|
useValue: DialogPopupComponent
|
|
56
56
|
}
|
|
57
57
|
], usesOnChanges: true, ngImport: i0 });
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogPopupDirective, decorators: [{
|
|
59
59
|
type: Directive,
|
|
60
60
|
args: [{
|
|
61
61
|
selector: 'ng-select[dialogPopup]',
|
|
@@ -10,18 +10,16 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
*/
|
|
11
11
|
export class NgSelectDialogPopupModule {
|
|
12
12
|
}
|
|
13
|
-
NgSelectDialogPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
14
|
-
NgSelectDialogPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
13
|
+
NgSelectDialogPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDialogPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
14
|
+
NgSelectDialogPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDialogPopupModule, declarations: [DialogPopupComponent,
|
|
15
15
|
BasicDialogPopupComponent,
|
|
16
16
|
DialogPopupDirective], imports: [CommonModule,
|
|
17
17
|
MatDialogModule], exports: [DialogPopupComponent,
|
|
18
18
|
BasicDialogPopupComponent,
|
|
19
19
|
DialogPopupDirective] });
|
|
20
|
-
NgSelectDialogPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
]] });
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NgSelectDialogPopupModule, decorators: [{
|
|
20
|
+
NgSelectDialogPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDialogPopupModule, imports: [CommonModule,
|
|
21
|
+
MatDialogModule] });
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDialogPopupModule, decorators: [{
|
|
25
23
|
type: NgModule,
|
|
26
24
|
args: [{
|
|
27
25
|
imports: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialogPopup.module.js","sourceRoot":"","sources":["../../../../material/src/modules/dialogPopup.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,yBAAyB,EAAC,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;;AAEzD;;GAEG;AAqBH,MAAM,OAAO,yBAAyB;;sHAAzB,yBAAyB;uHAAzB,yBAAyB,iBAX9B,oBAAoB;QACpB,yBAAyB;QACzB,oBAAoB,aAPpB,YAAY;QACZ,eAAe,aAUf,oBAAoB;QACpB,yBAAyB;QACzB,oBAAoB;uHAGf,yBAAyB,
|
|
1
|
+
{"version":3,"file":"dialogPopup.module.js","sourceRoot":"","sources":["../../../../material/src/modules/dialogPopup.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAC,yBAAyB,EAAC,MAAM,sCAAsC,CAAC;AAC/E,OAAO,EAAC,oBAAoB,EAAC,MAAM,+CAA+C,CAAC;AACnF,OAAO,EAAC,oBAAoB,EAAC,MAAM,qBAAqB,CAAC;;AAEzD;;GAEG;AAqBH,MAAM,OAAO,yBAAyB;;sHAAzB,yBAAyB;uHAAzB,yBAAyB,iBAX9B,oBAAoB;QACpB,yBAAyB;QACzB,oBAAoB,aAPpB,YAAY;QACZ,eAAe,aAUf,oBAAoB;QACpB,yBAAyB;QACzB,oBAAoB;uHAGf,yBAAyB,YAhB9B,YAAY;QACZ,eAAe;2FAeV,yBAAyB;kBApBrC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,eAAe;qBAClB;oBACD,YAAY,EACZ;wBACI,oBAAoB;wBACpB,yBAAyB;wBACzB,oBAAoB;qBACvB;oBACD,OAAO,EACP;wBACI,oBAAoB;wBACpB,yBAAyB;wBACzB,oBAAoB;qBACvB;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {MatDialogModule} from '@angular/material/dialog';\n\nimport {BasicDialogPopupComponent} from '../components/basicDialogPopup/types';\nimport {DialogPopupComponent} from '../plugins/popup/dialog/dialogPopup.component';\nimport {DialogPopupDirective} from '../directives/types';\n\n/**\n * Module allows using of angular material dialog for select popup\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n MatDialogModule\n ],\n declarations:\n [\n DialogPopupComponent,\n BasicDialogPopupComponent,\n DialogPopupDirective\n ],\n exports:\n [\n DialogPopupComponent,\n BasicDialogPopupComponent,\n DialogPopupDirective\n ]\n})\nexport class NgSelectDialogPopupModule\n{\n}"]}
|
|
@@ -8,14 +8,12 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
*/
|
|
9
9
|
export class VirtualEditPopupModule {
|
|
10
10
|
}
|
|
11
|
-
VirtualEditPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
12
|
-
VirtualEditPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
11
|
+
VirtualEditPopupModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
12
|
+
VirtualEditPopupModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupModule, declarations: [VirtualEditPopupComponent], imports: [CommonModule,
|
|
13
13
|
ScrollingModule], exports: [VirtualEditPopupComponent] });
|
|
14
|
-
VirtualEditPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
]] });
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: VirtualEditPopupModule, decorators: [{
|
|
14
|
+
VirtualEditPopupModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupModule, imports: [CommonModule,
|
|
15
|
+
ScrollingModule] });
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupModule, decorators: [{
|
|
19
17
|
type: NgModule,
|
|
20
18
|
args: [{
|
|
21
19
|
imports: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"virtualEditPopup.module.js","sourceRoot":"","sources":["../../../../material/src/modules/virtualEditPopup.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAC,yBAAyB,EAAC,MAAM,yDAAyD,CAAC;;AAElG;;GAEG;AAiBH,MAAM,OAAO,sBAAsB;;mHAAtB,sBAAsB;oHAAtB,sBAAsB,iBAP3B,yBAAyB,aALzB,YAAY;QACZ,eAAe,aAQf,yBAAyB;oHAGpB,sBAAsB,
|
|
1
|
+
{"version":3,"file":"virtualEditPopup.module.js","sourceRoot":"","sources":["../../../../material/src/modules/virtualEditPopup.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,eAAe,EAAC,MAAM,wBAAwB,CAAC;AAEvD,OAAO,EAAC,yBAAyB,EAAC,MAAM,yDAAyD,CAAC;;AAElG;;GAEG;AAiBH,MAAM,OAAO,sBAAsB;;mHAAtB,sBAAsB;oHAAtB,sBAAsB,iBAP3B,yBAAyB,aALzB,YAAY;QACZ,eAAe,aAQf,yBAAyB;oHAGpB,sBAAsB,YAZ3B,YAAY;QACZ,eAAe;2FAWV,sBAAsB;kBAhBlC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,eAAe;qBAClB;oBACD,YAAY,EACZ;wBACI,yBAAyB;qBAC5B;oBACD,OAAO,EACP;wBACI,yBAAyB;qBAC5B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ScrollingModule} from '@angular/cdk/scrolling';\n\nimport {VirtualEditPopupComponent} from '../plugins/popup/virtualEdit/virtualEditPopup.component';\n\n/**\n * Module for VirtualEditPopup components, can also by used for non edit version\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n ScrollingModule\n ],\n declarations:\n [\n VirtualEditPopupComponent\n ],\n exports:\n [\n VirtualEditPopupComponent\n ]\n})\nexport class VirtualEditPopupModule\n{\n}\n"]}
|
|
@@ -118,9 +118,9 @@ export class DialogPopupComponent {
|
|
|
118
118
|
this._handleDialog(true);
|
|
119
119
|
}
|
|
120
120
|
}
|
|
121
|
-
DialogPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
122
|
-
DialogPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
121
|
+
DialogPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogPopupComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i2.MatDialog }, { token: i0.ChangeDetectorRef }, { token: POPUP_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
122
|
+
DialogPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: DialogPopupComponent, selector: "div.ng-select-dialog-popup", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DialogPopupComponent, decorators: [{
|
|
124
124
|
type: Component,
|
|
125
125
|
args: [{
|
|
126
126
|
selector: 'div.ng-select-dialog-popup',
|
|
@@ -2,8 +2,8 @@ import { ChangeDetectionStrategy, Component, ViewChild } from '@angular/core';
|
|
|
2
2
|
import { CdkVirtualScrollViewport } from '@angular/cdk/scrolling';
|
|
3
3
|
import { EditPopupComponent } from '@anglr/select';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "@angular/
|
|
6
|
-
import * as i2 from "@angular/
|
|
5
|
+
import * as i1 from "@angular/common";
|
|
6
|
+
import * as i2 from "@angular/cdk/scrolling";
|
|
7
7
|
//TODO - resize and scroll
|
|
8
8
|
//TODO - too few items and height
|
|
9
9
|
//TODO - dynamic width update and collision with viewport
|
|
@@ -80,9 +80,9 @@ export class VirtualEditPopupComponent extends EditPopupComponent {
|
|
|
80
80
|
// }
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
VirtualEditPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
84
|
-
VirtualEditPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
85
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
83
|
+
VirtualEditPopupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
84
|
+
VirtualEditPopupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: VirtualEditPopupComponent, selector: "div.ng-select-virtual-edit-popup", viewQueries: [{ propertyName: "viewPort", first: true, predicate: CdkVirtualScrollViewport, descendants: true }], 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 <cdk-virtual-scroll-viewport itemSize=\"28\" class=\"thin-scrollbar\">\r\n <div *cdkVirtualFor=\"let option of selectOptions\"\r\n #popupOptions\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 </cdk-virtual-scroll-viewport>\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: hidden;\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\ncdk-virtual-scroll-viewport\r\n{\r\n height: 290px;\r\n transition: width 200ms;\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: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i2.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i2.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i2.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: VirtualEditPopupComponent, decorators: [{
|
|
86
86
|
type: Component,
|
|
87
87
|
args: [{ selector: 'div.ng-select-virtual-edit-popup', 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 <cdk-virtual-scroll-viewport itemSize=\"28\" class=\"thin-scrollbar\">\r\n <div *cdkVirtualFor=\"let option of selectOptions\"\r\n #popupOptions\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 </cdk-virtual-scroll-viewport>\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: hidden;\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\ncdk-virtual-scroll-viewport\r\n{\r\n height: 290px;\r\n transition: width 200ms;\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}"] }]
|
|
88
88
|
}], propDecorators: { viewPort: [{
|
|
@@ -35,9 +35,9 @@ export class OptGroupComponent {
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
}
|
|
38
|
-
OptGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
39
|
-
OptGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
38
|
+
OptGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: OptGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
39
|
+
OptGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: OptGroupComponent, selector: "ng-select>ng-optgroup", inputs: { text: "text" }, viewQueries: [{ propertyName: "optionsChildren", predicate: OptionComponent, descendants: true }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: OptGroupComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{
|
|
43
43
|
selector: 'ng-select>ng-optgroup',
|
|
@@ -21,9 +21,9 @@ export class OptionComponent {
|
|
|
21
21
|
this.group = null;
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
-
OptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
25
|
-
OptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
24
|
+
OptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
25
|
+
OptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: OptionComponent, selector: "ng-option", inputs: { value: "value", text: "text" }, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: OptionComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
args: [{
|
|
29
29
|
selector: 'ng-option',
|
|
@@ -10,7 +10,7 @@ import { BasicNormalStateComponent } from '../../plugins/normalState/components'
|
|
|
10
10
|
import { POPUP } from '../../plugins/popup/types';
|
|
11
11
|
import { BasicPopupComponent } from '../../plugins/popup/component';
|
|
12
12
|
import { POSITIONER } from '../../plugins/positioner/types';
|
|
13
|
-
import {
|
|
13
|
+
import { DefaultPositionerComponent } from '../../plugins/positioner/components';
|
|
14
14
|
import { READONLY_STATE } from '../../plugins/readonlyState/types';
|
|
15
15
|
import { VALUE_HANDLER } from '../../plugins/valueHandler/types';
|
|
16
16
|
import { BasicValueHandlerComponent } from '../../plugins/valueHandler/components';
|
|
@@ -21,8 +21,8 @@ import { OptGroupComponent } from '../option/optgroup.component';
|
|
|
21
21
|
import { PluginBus } from '../../misc/pluginBus/pluginBus';
|
|
22
22
|
import * as i0 from "@angular/core";
|
|
23
23
|
import * as i1 from "../../misc/pluginBus/pluginBus";
|
|
24
|
-
import * as i2 from "@
|
|
25
|
-
import * as i3 from "@
|
|
24
|
+
import * as i2 from "@angular/common";
|
|
25
|
+
import * as i3 from "@anglr/common";
|
|
26
26
|
//TODO - dynamic change of absolute popup
|
|
27
27
|
//TODO - dynamic change of options gatherer destroy called properly ?
|
|
28
28
|
/**
|
|
@@ -59,7 +59,7 @@ const defaultOptions = {
|
|
|
59
59
|
type: forwardRef(() => BasicPopupComponent)
|
|
60
60
|
},
|
|
61
61
|
positioner: {
|
|
62
|
-
type: forwardRef(() =>
|
|
62
|
+
type: forwardRef(() => DefaultPositionerComponent)
|
|
63
63
|
},
|
|
64
64
|
keyboardHandler: {
|
|
65
65
|
type: forwardRef(() => BasicKeyboardHandlerComponent)
|
|
@@ -502,8 +502,8 @@ export class NgSelectComponent {
|
|
|
502
502
|
}
|
|
503
503
|
}
|
|
504
504
|
}
|
|
505
|
-
NgSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
506
|
-
NgSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
505
|
+
NgSelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ApplicationRef }, { token: i0.Injector }, { token: i1.PluginBus }, { token: NG_SELECT_PLUGIN_INSTANCES }, { token: NG_SELECT_OPTIONS, optional: true }, { token: NORMAL_STATE_TYPE, optional: true }, { token: KEYBOARD_HANDLER_TYPE, optional: true }, { token: POPUP_TYPE, optional: true }, { token: POSITIONER_TYPE, optional: true }, { token: READONLY_STATE_TYPE, optional: true }, { token: VALUE_HANDLER_TYPE, optional: true }, { token: LIVE_SEARCH_TYPE, optional: true }, { token: 'readonly', attribute: true }, { token: 'disabled', attribute: true }, { token: 'multiple', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
506
|
+
NgSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NgSelectComponent, selector: "ng-select", inputs: { selectOptions: "selectOptions", disabled: "disabled", readonly: "readonly" }, providers: [
|
|
507
507
|
{
|
|
508
508
|
provide: NG_SELECT_PLUGIN_INSTANCES,
|
|
509
509
|
useFactory: () => { return {}; }
|
|
@@ -512,8 +512,8 @@ NgSelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", vers
|
|
|
512
512
|
provide: PluginBus,
|
|
513
513
|
useClass: PluginBus
|
|
514
514
|
}
|
|
515
|
-
], queries: [{ propertyName: "normalStateTemplate", first: true, predicate: ["normalStateTemplate"], descendants: true }, { propertyName: "optionTemplate", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "optionsChildren", predicate: OptionComponent }, { propertyName: "optGroupsChildren", predicate: OptGroupComponent }], usesOnChanges: true, ngImport: i0, template: "<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"!selectOptions?.absolute\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n</div>", styles: [":host\n {\n display: block;\n position: relative;\n }"],
|
|
516
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
515
|
+
], queries: [{ propertyName: "normalStateTemplate", first: true, predicate: ["normalStateTemplate"], descendants: true }, { propertyName: "optionTemplate", first: true, predicate: ["optionTemplate"], descendants: true }, { propertyName: "optionsChildren", predicate: OptionComponent }, { propertyName: "optGroupsChildren", predicate: OptGroupComponent }], usesOnChanges: true, ngImport: i0, template: "<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"!selectOptions?.absolute\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n</div>", styles: [":host\n {\n display: block;\n position: relative;\n }"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
516
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectComponent, decorators: [{
|
|
517
517
|
type: Component,
|
|
518
518
|
args: [{ selector: 'ng-select', changeDetection: ChangeDetectionStrategy.OnPush, providers: [
|
|
519
519
|
{
|
|
@@ -524,13 +524,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImpor
|
|
|
524
524
|
provide: PluginBus,
|
|
525
525
|
useClass: PluginBus
|
|
526
526
|
}
|
|
527
|
-
], styles: [
|
|
528
|
-
`:host
|
|
529
|
-
{
|
|
530
|
-
display: block;
|
|
531
|
-
position: relative;
|
|
532
|
-
}`
|
|
533
|
-
], template: "<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"!selectOptions?.absolute\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n</div>" }]
|
|
527
|
+
], template: "<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.liveSearch?.type\" (ngComponentOutletExCreated)=\"setLiveSearchComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.positioner?.type\" (ngComponentOutletExCreated)=\"setPositionerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.keyboardHandler?.type\" (ngComponentOutletExCreated)=\"setKeyboardHandlerComponent($event)\"></ng-template>\r\n<ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.valueHandler?.type\" (ngComponentOutletExCreated)=\"setValueHandlerComponent($event)\"></ng-template>\r\n\r\n<div>\r\n <ng-template [ngIf]=\"!selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.normalState?.type\" (ngComponentOutletExCreated)=\"setNormalStateComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"selectOptions?.readonly\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.readonlyState?.type\" (ngComponentOutletExCreated)=\"setReadonlyStateComponent($event)\"></ng-template>\r\n </ng-template>\r\n\r\n <ng-template [ngIf]=\"!selectOptions?.absolute\">\r\n <ng-template [ngComponentOutletEx]=\"selectOptions?.plugins?.popup?.type\" (ngComponentOutletExCreated)=\"setPopupComponent($event)\" [ngComponentOutletExContent]=\"liveSearchElement\"></ng-template>\r\n </ng-template>\r\n</div>", styles: [":host\n {\n display: block;\n position: relative;\n }"] }]
|
|
534
528
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.ComponentFactoryResolver }, { type: i0.ApplicationRef }, { type: i0.Injector }, { type: i1.PluginBus }, { type: undefined, decorators: [{
|
|
535
529
|
type: Inject,
|
|
536
530
|
args: [NG_SELECT_PLUGIN_INSTANCES]
|