@anglr/select 12.0.0 → 13.0.0-beta.20250127113535
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 +16 -0
- package/es2022/extensions/src/extensions/reinitializeOptions.js.map +1 -0
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js +73 -0
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
- package/{es2020 → es2022}/material/src/directives/dialogPopup/dialogPopup.directive.js +9 -9
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
- package/{es2015 → es2022}/material/src/modules/dialogPopup.module.js +13 -13
- package/{es2015 → es2022}/material/src/modules/dialogPopup.module.js.map +1 -1
- package/{es2015 → es2022}/material/src/modules/virtualEditPopup.module.js +6 -6
- package/{es2015 → es2022}/material/src/modules/virtualEditPopup.module.js.map +1 -1
- package/{es2020 → es2022}/material/src/plugins/popup/dialog/dialogPopup.component.js +23 -22
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +89 -0
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
- package/{es2015 → es2022}/src/components/option/optgroup.component.js +4 -3
- package/es2022/src/components/option/optgroup.component.js.map +1 -0
- package/{es2020 → es2022}/src/components/option/option.component.js +4 -3
- package/es2022/src/components/option/option.component.js.map +1 -0
- package/{es2020 → es2022}/src/components/select/select.component.js +60 -59
- package/es2022/src/components/select/select.component.js.map +1 -0
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
- package/{es2015 → es2022}/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -1
- package/{es2015 → es2022}/src/directives/ngSelectEdit/ngSelectEdit.directive.js +28 -28
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
- package/{es2015 → es2022}/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +9 -9
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
- package/es2022/src/index.ssr.js.map +1 -0
- package/es2022/src/misc/extensions/setReadonly.js.map +1 -0
- package/{es2020 → es2022}/src/misc/ngSelectControlValueAccessor.directive.js +4 -4
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
- package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
- package/{es2020 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.js +12 -12
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
- package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
- package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.js +3 -3
- package/{es2020 → es2022}/src/misc/pluginBus/pluginBus.js.map +1 -1
- package/{es2020 → es2022}/src/modules/ngSelect.module.js +39 -39
- package/{es2015 → es2022}/src/modules/ngSelect.module.js.map +1 -1
- package/es2022/src/modules/ngSelectDynamic.module.js +20 -0
- package/{es2015 → es2022}/src/modules/ngSelectDynamic.module.js.map +1 -1
- package/{es2020 → es2022}/src/modules/ngSelectEdit.module.js +16 -16
- package/es2022/src/modules/ngSelectEdit.module.js.map +1 -0
- package/{es2020 → es2022}/src/pipes/ngSelectHasValue.pipe.js +3 -3
- package/{es2015 → es2022}/src/pipes/ngSelectHasValue.pipe.js.map +1 -1
- package/{es2015 → es2022}/src/pipes/ngSelectValue.pipe.js +3 -3
- package/es2022/src/pipes/ngSelectValue.pipe.js.map +1 -0
- package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +24 -23
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +24 -23
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.component.js +24 -24
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.component.js +31 -30
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/liveSearch/no/noLiveSearch.component.js +12 -11
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js +88 -0
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/normalState/normalStateAbstract.component.js +15 -15
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
- package/es2022/src/plugins/popup/basic/basicPopup.component.js +62 -0
- package/es2022/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
- package/es2022/src/plugins/popup/edit/editPopup.component.js +85 -0
- package/es2022/src/plugins/popup/edit/editPopup.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/popup/popupAbstract.component.js +33 -32
- package/es2022/src/plugins/popup/popupAbstract.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/positioner/default/defaultPositioner.component.js +24 -23
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js.map +1 -0
- package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.component.js +17 -16
- package/es2022/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.component.js +18 -16
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +18 -16
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
- package/{es2020 → es2022}/src/plugins/valueHandler/valueHandlerBase.js +36 -36
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
- package/extensions/package.json +3 -4
- package/material/package.json +3 -4
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +1 -1
- package/material/src/modules/dialogPopup.module.d.ts +4 -4
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
- package/package.json +62 -74
- package/src/components/option/optgroup.component.d.ts +1 -1
- package/src/components/option/optgroup.component.d.ts.map +1 -1
- package/src/components/option/option.component.d.ts +1 -1
- package/src/components/option/option.component.d.ts.map +1 -1
- package/src/components/select/select.component.d.ts +1 -1
- package/src/components/select/select.component.d.ts.map +1 -1
- package/src/components/select/select.interface.d.ts +2 -2
- package/src/components/select/select.interface.d.ts.map +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 +16 -16
- package/src/modules/ngSelectEdit.module.d.ts +8 -8
- 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.map +1 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +1 -1
- package/src/plugins/popup/basic/basicPopup.component.d.ts.map +1 -1
- package/src/plugins/popup/edit/editPopup.component.d.ts.map +1 -1
- package/src/plugins/popup/popupAbstract.component.d.ts +1 -1
- package/src/plugins/popup/popupAbstract.component.d.ts.map +1 -1
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts +3 -3
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +1 -1
- package/src/plugins/positioner/no/noPositioner.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 +1 -1
- package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +1 -1
- package/version.bak +1 -1
- package/elements/package.json +0 -9
- package/elements/src/components/ngSelectElements.component.d.ts +0 -67
- package/elements/src/components/ngSelectElements.component.d.ts.map +0 -1
- package/elements/src/components/ngSelectElements.component.html +0 -16
- package/elements/src/components/ngSelectElements.interface.d.ts +0 -47
- package/elements/src/components/ngSelectElements.interface.d.ts.map +0 -1
- package/elements/src/index.d.ts +0 -4
- package/elements/src/index.d.ts.map +0 -1
- package/elements/src/modules/ngSelectElements.module.d.ts +0 -21
- package/elements/src/modules/ngSelectElements.module.d.ts.map +0 -1
- package/es2015/elements/src/components/ngSelectElements.component.js +0 -181
- package/es2015/elements/src/components/ngSelectElements.component.js.map +0 -1
- package/es2015/elements/src/components/ngSelectElements.interface.js +0 -2
- package/es2015/elements/src/components/ngSelectElements.interface.js.map +0 -1
- package/es2015/elements/src/index.js +0 -4
- package/es2015/elements/src/index.js.map +0 -1
- package/es2015/elements/src/modules/ngSelectElements.module.js +0 -50
- package/es2015/elements/src/modules/ngSelectElements.module.js.map +0 -1
- package/es2015/extensions/src/extensions/reinitializeOptions.js.map +0 -1
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -74
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +0 -1
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -75
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js.map +0 -1
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -143
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js.map +0 -1
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -92
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +0 -1
- package/es2015/src/components/option/optgroup.component.js.map +0 -1
- package/es2015/src/components/option/option.component.js +0 -38
- package/es2015/src/components/option/option.component.js.map +0 -1
- package/es2015/src/components/select/select.component.js +0 -599
- package/es2015/src/components/select/select.component.js.map +0 -1
- package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
- package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
- package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
- package/es2015/src/index.ssr.js.map +0 -1
- package/es2015/src/misc/extensions/setReadonly.js.map +0 -1
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js +0 -163
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
- package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js.map +0 -1
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -123
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +0 -1
- package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -111
- package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +0 -1
- package/es2015/src/misc/pluginBus/pluginBus.js.map +0 -1
- package/es2015/src/modules/ngSelect.module.js +0 -90
- package/es2015/src/modules/ngSelectDynamic.module.js +0 -20
- package/es2015/src/modules/ngSelectEdit.module.js +0 -51
- package/es2015/src/modules/ngSelectEdit.module.js.map +0 -1
- package/es2015/src/pipes/ngSelectHasValue.pipe.js +0 -23
- package/es2015/src/pipes/ngSelectValue.pipe.js.map +0 -1
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -196
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -169
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -318
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -64
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js +0 -89
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js +0 -93
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
- package/es2015/src/plugins/popup/basic/basicPopup.component.js +0 -62
- package/es2015/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
- package/es2015/src/plugins/popup/edit/editPopup.component.js +0 -85
- package/es2015/src/plugins/popup/edit/editPopup.component.js.map +0 -1
- package/es2015/src/plugins/popup/popupAbstract.component.js +0 -203
- package/es2015/src/plugins/popup/popupAbstract.component.js.map +0 -1
- package/es2015/src/plugins/positioner/default/defaultPositioner.component.js +0 -158
- package/es2015/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
- package/es2015/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -157
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -182
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js +0 -150
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
- package/es2020/elements/src/components/ngSelectElements.component.js +0 -181
- package/es2020/elements/src/components/ngSelectElements.component.js.map +0 -1
- package/es2020/elements/src/components/ngSelectElements.interface.js +0 -2
- package/es2020/elements/src/components/ngSelectElements.interface.js.map +0 -1
- package/es2020/elements/src/index.js +0 -4
- package/es2020/elements/src/index.js.map +0 -1
- package/es2020/elements/src/modules/ngSelectElements.module.js +0 -50
- package/es2020/elements/src/modules/ngSelectElements.module.js.map +0 -1
- package/es2020/extensions/src/extensions/getValue.js +0 -2
- package/es2020/extensions/src/extensions/getValue.js.map +0 -1
- package/es2020/extensions/src/extensions/onFocus.js +0 -2
- package/es2020/extensions/src/extensions/onFocus.js.map +0 -1
- package/es2020/extensions/src/extensions/patchOptions.js +0 -12
- package/es2020/extensions/src/extensions/patchOptions.js.map +0 -1
- package/es2020/extensions/src/extensions/reinitializeOptions.js +0 -15
- package/es2020/extensions/src/extensions/reinitializeOptions.js.map +0 -1
- package/es2020/extensions/src/extensions/setReadonly.js +0 -2
- package/es2020/extensions/src/extensions/setReadonly.js.map +0 -1
- package/es2020/extensions/src/extensions/setValue.js +0 -2
- package/es2020/extensions/src/extensions/setValue.js.map +0 -1
- package/es2020/extensions/src/extensions/valueChange.js +0 -2
- package/es2020/extensions/src/extensions/valueChange.js.map +0 -1
- package/es2020/extensions/src/index.js +0 -8
- package/es2020/extensions/src/index.js.map +0 -1
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -73
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +0 -1
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -2
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +0 -1
- package/es2020/material/src/components/basicDialogPopup/index.js +0 -2
- package/es2020/material/src/components/basicDialogPopup/index.js.map +0 -1
- package/es2020/material/src/components/basicDialogPopup/types.js +0 -2
- package/es2020/material/src/components/basicDialogPopup/types.js.map +0 -1
- package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js.map +0 -1
- package/es2020/material/src/directives/types.js +0 -2
- package/es2020/material/src/directives/types.js.map +0 -1
- package/es2020/material/src/index.js +0 -8
- package/es2020/material/src/index.js.map +0 -1
- package/es2020/material/src/modules/dialogPopup.module.js +0 -41
- package/es2020/material/src/modules/dialogPopup.module.js.map +0 -1
- package/es2020/material/src/modules/virtualEditPopup.module.js +0 -31
- package/es2020/material/src/modules/virtualEditPopup.module.js.map +0 -1
- package/es2020/material/src/plugins/popup/components.js +0 -3
- package/es2020/material/src/plugins/popup/components.js.map +0 -1
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js.map +0 -1
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -2
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +0 -1
- package/es2020/material/src/plugins/popup/index.js +0 -3
- package/es2020/material/src/plugins/popup/index.js.map +0 -1
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -89
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +0 -1
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -2
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +0 -1
- package/es2020/src/components/option/index.js +0 -3
- package/es2020/src/components/option/index.js.map +0 -1
- package/es2020/src/components/option/optgroup.component.js +0 -53
- package/es2020/src/components/option/optgroup.component.js.map +0 -1
- package/es2020/src/components/option/optgroup.interface.js +0 -2
- package/es2020/src/components/option/optgroup.interface.js.map +0 -1
- package/es2020/src/components/option/option.component.js.map +0 -1
- package/es2020/src/components/option/option.interface.js +0 -2
- package/es2020/src/components/option/option.interface.js.map +0 -1
- package/es2020/src/components/select/index.js +0 -2
- package/es2020/src/components/select/index.js.map +0 -1
- package/es2020/src/components/select/select.component.js.map +0 -1
- package/es2020/src/components/select/select.interface.js +0 -2
- package/es2020/src/components/select/select.interface.js.map +0 -1
- package/es2020/src/components/select/types.js +0 -6
- package/es2020/src/components/select/types.js.map +0 -1
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +0 -1
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -66
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -42
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
- package/es2020/src/index.js +0 -42
- package/es2020/src/index.js.map +0 -1
- package/es2020/src/index.ssr.js +0 -10
- package/es2020/src/index.ssr.js.map +0 -1
- package/es2020/src/misc/extensions/getValue.js +0 -12
- package/es2020/src/misc/extensions/getValue.js.map +0 -1
- package/es2020/src/misc/extensions/index.js +0 -6
- package/es2020/src/misc/extensions/index.js.map +0 -1
- package/es2020/src/misc/extensions/onFocus.js +0 -10
- package/es2020/src/misc/extensions/onFocus.js.map +0 -1
- package/es2020/src/misc/extensions/setReadonly.js +0 -18
- package/es2020/src/misc/extensions/setReadonly.js.map +0 -1
- package/es2020/src/misc/extensions/setValue.js +0 -13
- package/es2020/src/misc/extensions/setValue.js.map +0 -1
- package/es2020/src/misc/extensions/valueChange.js +0 -12
- package/es2020/src/misc/extensions/valueChange.js.map +0 -1
- package/es2020/src/misc/index.js +0 -6
- package/es2020/src/misc/index.js.map +0 -1
- package/es2020/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
- package/es2020/src/misc/ngSelectOptions.interface.js +0 -2
- package/es2020/src/misc/ngSelectOptions.interface.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -83
- package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -2
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -2
- package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js.map +0 -1
- package/es2020/src/misc/optionsGatherer/types.js +0 -4
- package/es2020/src/misc/optionsGatherer/types.js.map +0 -1
- package/es2020/src/misc/plugin.interface.js +0 -2
- package/es2020/src/misc/plugin.interface.js.map +0 -1
- package/es2020/src/misc/pluginBus/pluginBus.interface.js +0 -2
- package/es2020/src/misc/pluginBus/pluginBus.interface.js.map +0 -1
- package/es2020/src/misc/pluginBus/pluginBus.js +0 -44
- package/es2020/src/misc/templateGatherer.interface.js +0 -2
- package/es2020/src/misc/templateGatherer.interface.js.map +0 -1
- package/es2020/src/misc/types.js +0 -34
- package/es2020/src/misc/types.js.map +0 -1
- package/es2020/src/modules/ngSelect.module.js.map +0 -1
- package/es2020/src/modules/ngSelectDynamic.module.js +0 -20
- package/es2020/src/modules/ngSelectDynamic.module.js.map +0 -1
- package/es2020/src/modules/ngSelectEdit.module.js.map +0 -1
- package/es2020/src/pipes/ngSelectHasValue.pipe.js.map +0 -1
- package/es2020/src/pipes/ngSelectValue.pipe.js +0 -31
- package/es2020/src/pipes/ngSelectValue.pipe.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -145
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -2
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/components.js +0 -3
- package/es2020/src/plugins/keyboardHandler/components.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -2
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/index.js +0 -4
- package/es2020/src/plugins/keyboardHandler/index.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -2
- package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -1
- package/es2020/src/plugins/keyboardHandler/types.js +0 -10
- package/es2020/src/plugins/keyboardHandler/types.js.map +0 -1
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -2
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -1
- package/es2020/src/plugins/liveSearch/components.js +0 -4
- package/es2020/src/plugins/liveSearch/components.js.map +0 -1
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -2
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -1
- package/es2020/src/plugins/liveSearch/index.js +0 -5
- package/es2020/src/plugins/liveSearch/index.js.map +0 -1
- package/es2020/src/plugins/liveSearch/liveSearch.interface.js +0 -2
- package/es2020/src/plugins/liveSearch/liveSearch.interface.js.map +0 -1
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -2
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -1
- package/es2020/src/plugins/liveSearch/types.js +0 -10
- package/es2020/src/plugins/liveSearch/types.js.map +0 -1
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
- package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js +0 -2
- package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -1
- package/es2020/src/plugins/normalState/components.js +0 -4
- package/es2020/src/plugins/normalState/components.js.map +0 -1
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js +0 -88
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
- package/es2020/src/plugins/normalState/edit/editNormalState.interface.js +0 -2
- package/es2020/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -1
- package/es2020/src/plugins/normalState/index.js +0 -4
- package/es2020/src/plugins/normalState/index.js.map +0 -1
- package/es2020/src/plugins/normalState/normalState.interface.js +0 -2
- package/es2020/src/plugins/normalState/normalState.interface.js.map +0 -1
- package/es2020/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
- package/es2020/src/plugins/normalState/types.js +0 -10
- package/es2020/src/plugins/normalState/types.js.map +0 -1
- package/es2020/src/plugins/popup/basic/basicPopup.component.js +0 -62
- package/es2020/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
- package/es2020/src/plugins/popup/basic/basicPopup.interface.js +0 -2
- package/es2020/src/plugins/popup/basic/basicPopup.interface.js.map +0 -1
- package/es2020/src/plugins/popup/component.js +0 -4
- package/es2020/src/plugins/popup/component.js.map +0 -1
- package/es2020/src/plugins/popup/edit/editPopup.component.js +0 -85
- package/es2020/src/plugins/popup/edit/editPopup.component.js.map +0 -1
- package/es2020/src/plugins/popup/edit/editPopup.interface.js +0 -2
- package/es2020/src/plugins/popup/edit/editPopup.interface.js.map +0 -1
- package/es2020/src/plugins/popup/index.js +0 -4
- package/es2020/src/plugins/popup/index.js.map +0 -1
- package/es2020/src/plugins/popup/popup.interface.js +0 -2
- package/es2020/src/plugins/popup/popup.interface.js.map +0 -1
- package/es2020/src/plugins/popup/popupAbstract.component.js.map +0 -1
- package/es2020/src/plugins/popup/types.js +0 -10
- package/es2020/src/plugins/popup/types.js.map +0 -1
- package/es2020/src/plugins/positioner/components.js +0 -3
- package/es2020/src/plugins/positioner/components.js.map +0 -1
- package/es2020/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
- package/es2020/src/plugins/positioner/default/defaultPositioner.interface.js +0 -2
- package/es2020/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -1
- package/es2020/src/plugins/positioner/index.js +0 -4
- package/es2020/src/plugins/positioner/index.js.map +0 -1
- package/es2020/src/plugins/positioner/no/noPositioner.component.js +0 -77
- package/es2020/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
- package/es2020/src/plugins/positioner/no/noPositioner.interface.js +0 -2
- package/es2020/src/plugins/positioner/no/noPositioner.interface.js.map +0 -1
- package/es2020/src/plugins/positioner/positioner.interface.js +0 -2
- package/es2020/src/plugins/positioner/positioner.interface.js.map +0 -1
- package/es2020/src/plugins/positioner/types.js +0 -10
- package/es2020/src/plugins/positioner/types.js.map +0 -1
- package/es2020/src/plugins/readonlyState/index.js +0 -2
- package/es2020/src/plugins/readonlyState/index.js.map +0 -1
- package/es2020/src/plugins/readonlyState/readonlyState.interface.js +0 -2
- package/es2020/src/plugins/readonlyState/readonlyState.interface.js.map +0 -1
- package/es2020/src/plugins/readonlyState/types.js +0 -10
- package/es2020/src/plugins/readonlyState/types.js.map +0 -1
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -2
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -1
- package/es2020/src/plugins/valueHandler/components.js +0 -3
- package/es2020/src/plugins/valueHandler/components.js.map +0 -1
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -2
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -1
- package/es2020/src/plugins/valueHandler/index.js +0 -5
- package/es2020/src/plugins/valueHandler/index.js.map +0 -1
- package/es2020/src/plugins/valueHandler/types.js +0 -10
- package/es2020/src/plugins/valueHandler/types.js.map +0 -1
- package/es2020/src/plugins/valueHandler/valueHandler.interface.js +0 -2
- package/es2020/src/plugins/valueHandler/valueHandler.interface.js.map +0 -1
- package/es2020/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
- /package/{es2015 → es2022}/extensions/src/extensions/getValue.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/getValue.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/onFocus.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/onFocus.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/patchOptions.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/patchOptions.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/reinitializeOptions.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/setReadonly.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/setReadonly.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/setValue.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/setValue.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/valueChange.js +0 -0
- /package/{es2015 → es2022}/extensions/src/extensions/valueChange.js.map +0 -0
- /package/{es2015 → es2022}/extensions/src/index.js +0 -0
- /package/{es2015 → es2022}/extensions/src/index.js.map +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/index.js +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/index.js.map +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/types.js +0 -0
- /package/{es2015 → es2022}/material/src/components/basicDialogPopup/types.js.map +0 -0
- /package/{es2015 → es2022}/material/src/directives/types.js +0 -0
- /package/{es2015 → es2022}/material/src/directives/types.js.map +0 -0
- /package/{es2015 → es2022}/material/src/index.js +0 -0
- /package/{es2015 → es2022}/material/src/index.js.map +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/components.js +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/components.js.map +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/index.js +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/index.js.map +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -0
- /package/{es2015 → es2022}/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/components/option/index.js +0 -0
- /package/{es2015 → es2022}/src/components/option/index.js.map +0 -0
- /package/{es2015 → es2022}/src/components/option/optgroup.interface.js +0 -0
- /package/{es2015 → es2022}/src/components/option/optgroup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/components/option/option.interface.js +0 -0
- /package/{es2015 → es2022}/src/components/option/option.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/components/select/index.js +0 -0
- /package/{es2015 → es2022}/src/components/select/index.js.map +0 -0
- /package/{es2015 → es2022}/src/components/select/select.interface.js +0 -0
- /package/{es2015 → es2022}/src/components/select/select.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/components/select/types.js +0 -0
- /package/{es2015 → es2022}/src/components/select/types.js.map +0 -0
- /package/{es2015 → es2022}/src/index.js +0 -0
- /package/{es2015 → es2022}/src/index.js.map +0 -0
- /package/{es2015 → es2022}/src/index.ssr.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/getValue.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/getValue.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/index.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/index.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/onFocus.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/onFocus.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/setReadonly.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/setValue.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/setValue.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/valueChange.js +0 -0
- /package/{es2015 → es2022}/src/misc/extensions/valueChange.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/index.js +0 -0
- /package/{es2015 → es2022}/src/misc/index.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/ngSelectOptions.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/ngSelectOptions.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +0 -0
- /package/{es2020 → es2022}/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/optionsGatherer.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/types.js +0 -0
- /package/{es2015 → es2022}/src/misc/optionsGatherer/types.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/plugin.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/plugin.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/pluginBus/pluginBus.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/templateGatherer.interface.js +0 -0
- /package/{es2015 → es2022}/src/misc/templateGatherer.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/misc/types.js +0 -0
- /package/{es2015 → es2022}/src/misc/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/keyboardHandler/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/liveSearch.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/liveSearch.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/liveSearch/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/basic/basicNormalState.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/edit/editNormalState.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/normalState.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/normalState.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/normalState/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/basic/basicPopup.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/basic/basicPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/component.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/component.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/edit/editPopup.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/edit/editPopup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/popup.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/popup.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/popup/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/default/defaultPositioner.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/no/noPositioner.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/positioner.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/positioner.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/positioner/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/readonlyState.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/readonlyState.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/readonlyState/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/components.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/components.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/index.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/index.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/types.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/types.js.map +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/valueHandler.interface.js +0 -0
- /package/{es2015 → es2022}/src/plugins/valueHandler/valueHandler.interface.js.map +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectControlValueAccessor.directive.js","sourceRoot":"","sources":["../../../src/misc/ngSelectControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAoB,SAAS,EAAY,MAAM,eAAe,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AAGvE,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;;;AAE9F;;;GAGG;AACH,MAAM,wBAAwB,GAC9B;IACI,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;IAC3D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,4BAA4B;IAuCrC,iE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C;YAClD,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC;SAC9C;QAED,IAAG,IAAI,CAAC,6BAA6B,EACrC;YACI,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,CAAC;YACjD,IAAI,CAAC,6BAA6B,GAAG,IAAI,CAAC;SAC7C;QAED,IAAG,IAAI,CAAC,kBAAkB,EAC1B;YACI,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;YACtC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;SAClC;QAED,IAAG,IAAI,CAAC,gCAAgC,EACxC;YACI,IAAI,CAAC,gCAAgC,CAAC,WAAW,EAAE,CAAC;YACpD,IAAI,CAAC,gCAAgC,GAAG,IAAI,CAAC;SAChD;IACL,CAAC;;yHA3NQ,4BAA4B;6GAA5B,4BAA4B,+FAF1B,CAAC,wBAAwB,CAAC;2FAE5B,4BAA4B;kBALxC,SAAS;mBACV;oBACI,QAAQ,EAAE,sEAAsE;oBAChF,SAAS,EAAE,CAAC,wBAAwB,CAAC;iBACxC","sourcesContent":["import {forwardRef, ExistingProvider, Directive, OnDestroy} from '@angular/core';\nimport {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms';\nimport {Subscription} from 'rxjs';\n\nimport {NgSelectComponent} from '../components/select/select.component';\nimport {ɵValueChange, ɵSetValue, ɵOnFocus, ɵSetReadonly, ɵGetValue} from '../misc/extensions';\n\n/**\n * Provider for control value accessor\n * @internal\n */\nconst NG_SELECT_VALUE_ACCESSOR: ExistingProvider =\n{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgSelectControlValueAccessor),\n multi: true\n};\n\n/**\n * Control value accessor for NgSelectComponent\n */\n@Directive(\n{\n selector: 'ng-select[formControlName],ng-select[formControl],ng-select[ngModel]',\n providers: [NG_SELECT_VALUE_ACCESSOR]\n})\nexport class NgSelectControlValueAccessor<TValue = any> implements ControlValueAccessor, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscription for initialized status of NgSelect, used for writeValue\n */\n private _initializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for registerOnChange\n */\n private _changeInitializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for registerOnTouched\n */\n private _touchInitializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for setDisabledState\n */\n private _disabledInitializedSubscription: Subscription;\n\n /**\n * Subscription that looks for changes of select\n */\n private _changeSubscription: Subscription = null;\n\n /**\n * Subscription that looks for changes of select\n */\n private _focusSubscription: Subscription = null;\n\n /**\n * Last set value to this control\n */\n private _value: TValue|TValue[];\n\n //######################### constructor #########################\n constructor(private _select: NgSelectComponent<TValue>)\n {\n }\n\n //######################### public methods - implementation of ControlValueAccessor #########################\n\n /**\n * Sets value to select\n */\n public writeValue(value: TValue|Array<TValue>): void\n {\n this._value = value;\n\n if(this._select.isInitialized)\n {\n this._select.execute(ɵSetValue(value));\n\n return;\n }\n\n if(this._initializedSubscription)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n }\n\n this._initializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n\n this._select.execute(ɵSetValue(value));\n }\n });\n }\n\n /**\n * Registers callback that is called when value of select changes\n */\n public registerOnChange(fn: (data: TValue|Array<TValue>) => void): void\n {\n const fnWrapper = (value: TValue|Array<TValue>) =>\n {\n //multivalue is new array in case of change\n if(Array.isArray(value) && Array.isArray(this._value))\n {\n if(value !== this._value)\n {\n this._value = value;\n fn(value);\n }\n }\n else if(!Array.isArray(value) && !Array.isArray(this._value))\n {\n if(!this._select.selectOptions?.valueComparer(this._value, value))\n {\n this._value = value;\n fn(value);\n }\n }\n };\n\n this._changeInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n if(this._changeSubscription)\n {\n this._changeSubscription.unsubscribe();\n this._changeSubscription = null;\n }\n\n this._changeSubscription = this._select.executeAndReturn(ɵValueChange(fnWrapper));\n\n if(this._select.selectOptions.forceValueCheckOnInit)\n {\n const value = this._select.executeAndReturn(ɵGetValue());\n\n fnWrapper(value);\n }\n }\n });\n }\n\n /**\n * Registers callback that is called when select is closed\n */\n public registerOnTouched(fn: () => void): void\n {\n this._touchInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n if(this._focusSubscription)\n {\n this._focusSubscription.unsubscribe();\n this._focusSubscription = null;\n }\n\n this._focusSubscription = this._select.executeAndReturn(ɵOnFocus(fn));\n }\n });\n }\n\n /**\n * Sets NgSelect as disabled/readonly\n * @param isDisabled - Indication whether is control disabled or not\n */\n public setDisabledState(isDisabled: boolean): void\n {\n if(this._select.isInitialized)\n {\n this._select.execute(ɵSetReadonly(isDisabled));\n\n return;\n }\n\n if(this._disabledInitializedSubscription)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n }\n\n this._disabledInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n\n this._select.execute(ɵSetReadonly(isDisabled));\n }\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n if(this._changeSubscription)\n {\n this._changeSubscription.unsubscribe();\n this._changeSubscription = null;\n }\n\n if(this._initializedSubscription)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n }\n\n if(this._changeInitializedSubscription)\n {\n this._changeInitializedSubscription.unsubscribe();\n this._changeInitializedSubscription = null;\n }\n\n if(this._touchInitializedSubscription)\n {\n this._touchInitializedSubscription.unsubscribe();\n this._touchInitializedSubscription = null;\n }\n\n if(this._focusSubscription)\n {\n this._focusSubscription.unsubscribe();\n this._focusSubscription = null;\n }\n\n if(this._disabledInitializedSubscription)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n }\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectOptions.interface.js","sourceRoot":"","sources":["../../../src/misc/ngSelectOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["\nimport {NgSelectPluginTypes} from './plugin.interface';\nimport {OptionsGatherer, LiveSearchFilter} from './optionsGatherer/optionsGatherer.interface';\nimport {TemplateGatherer} from './templateGatherer.interface';\n\n/**\n * Function used for comparing two values\n */\nexport interface CompareValueFunc<TValue = any>\n{\n /**\n * Compares two values and returns true if objects are equal, otherwise false\n * @param source - First value to be compared\n * @param target - Second value to be compared\n */\n (source: TValue, target: TValue): boolean;\n}\n\n/**\n * Function used for normalization of value, used during comparison or search\n */\nexport interface NormalizeFunc<TValue = any>\n{\n /**\n * Normalize provided value, usually used with strings\n * @param value - Value that is being normalized\n */\n (value: TValue): TValue;\n}\n\n/**\n * Options used for plugin bus\n */\nexport interface PluginBusOptions<TValue = any>\n{\n /**\n * Instance of options gatherer that is used for obtaining options\n */\n optionsGatherer?: OptionsGatherer<TValue>;\n\n /**\n * Instance of template gatherer used for obtaining custom templates\n */\n templateGatherer?: TemplateGatherer;\n\n /**\n * Indication whether is NgSelect readonly or not\n */\n readonly?: boolean;\n\n /**\n * Indication that multiple values can be selected\n */\n multiple?: boolean;\n\n /**\n * Indication whether use non existing value in live search as new value, use with dynamic value handler\n */\n useNonExistingAsValue?: boolean;\n\n /**\n * Function of value comparer that is used for comparison of values\n */\n valueComparer?: CompareValueFunc<TValue>;\n\n /**\n * Method that is used for filtering when live search is running on static data\n */\n liveSearchFilter?: LiveSearchFilter<TValue>;\n\n /**\n * Normalizer used for normalizing values\n */\n normalizer?: NormalizeFunc<TValue>;\n}\n\n/**\n * Describes select options used for NgSelect\n */\nexport interface NgSelectOptions<TValue = any> extends PluginBusOptions<TValue>\n{\n /**\n * Indication whether NgSelect should be initialized automaticaly during 'NgOnInit' phase\n */\n autoInitialize?: boolean;\n\n /**\n * Css classes applied to ng select component, possible to override only part of classes\n */\n cssClasses?: {};\n\n /**\n * Object defining overrides for default plugins, default plugins can be also specified using DI\n */\n plugins?: NgSelectPluginTypes;\n\n /**\n * Indication whether is 'Popup' plugin displayd inside of NgSelect (false) or directly in Body (true)\n */\n absolute?: boolean;\n\n /**\n * Indication whether force value check on initialization of select, this allows to change value of form control to value of valueHandler\n */\n forceValueCheckOnInit?: boolean;\n}"]}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { LIVE_SEARCH } from '../../plugins/liveSearch/types';
|
|
3
|
-
/**
|
|
4
|
-
* Options gatherer used for static options gathering from code
|
|
5
|
-
*/
|
|
6
|
-
export class CodeOptionsGatherer {
|
|
7
|
-
constructor() {
|
|
8
|
-
//######################### private fields #########################
|
|
9
|
-
/**
|
|
10
|
-
* Array of visible, displayed options for select
|
|
11
|
-
*/
|
|
12
|
-
this._availableOptions = [];
|
|
13
|
-
/**
|
|
14
|
-
* Array of provided options for select
|
|
15
|
-
*/
|
|
16
|
-
this._options = [];
|
|
17
|
-
/**
|
|
18
|
-
* Occurs when array of visible, displayed options has changed
|
|
19
|
-
*/
|
|
20
|
-
this._availableOptionsChange = new EventEmitter();
|
|
21
|
-
/**
|
|
22
|
-
* Occurs when array of provided options has changed
|
|
23
|
-
*/
|
|
24
|
-
this.optionsChange = new EventEmitter();
|
|
25
|
-
}
|
|
26
|
-
//######################### public properties - implementation of OptionsGatherer #########################
|
|
27
|
-
/**
|
|
28
|
-
* Array of provided options for select
|
|
29
|
-
*/
|
|
30
|
-
get options() {
|
|
31
|
-
return this._options;
|
|
32
|
-
}
|
|
33
|
-
set options(value) {
|
|
34
|
-
this._options = value;
|
|
35
|
-
this._availableOptions = value;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Array of visible, displayed options for select
|
|
39
|
-
*/
|
|
40
|
-
get availableOptions() {
|
|
41
|
-
return this._availableOptions;
|
|
42
|
-
}
|
|
43
|
-
/**
|
|
44
|
-
* Occurs when array of visible, displayed options has changed
|
|
45
|
-
*/
|
|
46
|
-
get availableOptionsChange() {
|
|
47
|
-
return this._availableOptionsChange;
|
|
48
|
-
}
|
|
49
|
-
//######################### public methods - implmentation of OptionsGatherer #########################
|
|
50
|
-
/**
|
|
51
|
-
* Initialize gatherer during initialization phase
|
|
52
|
-
*/
|
|
53
|
-
initializeGatherer() {
|
|
54
|
-
const liveSearch = this.ngSelectPlugins[LIVE_SEARCH];
|
|
55
|
-
if (this._liveSearch && this._liveSearch != liveSearch) {
|
|
56
|
-
this._searchValueChangeSubscription.unsubscribe();
|
|
57
|
-
this._searchValueChangeSubscription = null;
|
|
58
|
-
this._liveSearch = null;
|
|
59
|
-
}
|
|
60
|
-
if (!this._liveSearch) {
|
|
61
|
-
this._liveSearch = liveSearch;
|
|
62
|
-
this._searchValueChangeSubscription = this._liveSearch.searchValueChange.subscribe(() => {
|
|
63
|
-
if (!this._liveSearch.searchValue) {
|
|
64
|
-
this._availableOptions = this.options;
|
|
65
|
-
this._availableOptionsChange.emit();
|
|
66
|
-
return;
|
|
67
|
-
}
|
|
68
|
-
this._availableOptions = this.options.filter(this.pluginBus.selectOptions.liveSearchFilter(this._liveSearch.searchValue, this.pluginBus.selectOptions.normalizer));
|
|
69
|
-
this._availableOptionsChange.emit();
|
|
70
|
-
});
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
/**
|
|
74
|
-
* Called when gatherer needs to be destroyed
|
|
75
|
-
*/
|
|
76
|
-
destroyGatherer() {
|
|
77
|
-
if (this._searchValueChangeSubscription) {
|
|
78
|
-
this._searchValueChangeSubscription.unsubscribe();
|
|
79
|
-
this._searchValueChangeSubscription = null;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
//# sourceMappingURL=codeOptionsGatherer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"codeOptionsGatherer.js","sourceRoot":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,GAAG,UAAU,CAAC;YAE9B,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC,WAAW,CAAC,iBAAiB,CAAC,SAAS,CAAC,GAAG,EAAE;gBAEpF,IAAG,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAChC;oBACI,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC;oBACtC,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC;oBAEpC,OAAO;iBACV;gBAED,IAAI,CAAC,iBAAiB,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,gBAAgB,CAAC,IAAI,CAAC,WAAW,CAAC,WAAW,EAAE,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,UAAU,CAAC,CAAC,CAAC;gBACnK,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC;YACxC,CAAC,CAAC,CAAC;SACN;IACL,CAAC;IAED;;OAEG;IACI,eAAe;QAElB,IAAG,IAAI,CAAC,8BAA8B,EACtC;YACI,IAAI,CAAC,8BAA8B,CAAC,WAAW,EAAE,CAAC;YAClD,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC;SAC9C;IACL,CAAC;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {LiveSearch} from '../../plugins/liveSearch';\nimport {LIVE_SEARCH} from '../../plugins/liveSearch/types';\nimport {PluginBus} from '../pluginBus/pluginBus';\n\n/**\n * Options gatherer used for static options gathering from code\n */\nexport class CodeOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### private fields #########################\n\n /**\n * Array of visible, displayed options for select\n */\n private _availableOptions: NgSelectOption<TValue>[] = [];\n\n /**\n * Array of provided options for select\n */\n private _options: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n private _availableOptionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n /**\n * Subscription for changes of live search value\n */\n protected _searchValueChangeSubscription: Subscription;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public get options(): NgSelectOption<TValue>[]\n {\n return this._options;\n }\n public set options(value: NgSelectOption<TValue>[])\n {\n this._options = value;\n this._availableOptions = value;\n }\n\n /**\n * Occurs when array of provided options has changed\n */\n public optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this._availableOptions;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this._availableOptionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### public methods - implmentation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._liveSearch = null;\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n\n this._searchValueChangeSubscription = this._liveSearch.searchValueChange.subscribe(() =>\n {\n if(!this._liveSearch.searchValue)\n {\n this._availableOptions = this.options;\n this._availableOptionsChange.emit();\n\n return;\n }\n\n this._availableOptions = this.options.filter(this.pluginBus.selectOptions.liveSearchFilter(this._liveSearch.searchValue, this.pluginBus.selectOptions.normalizer));\n this._availableOptionsChange.emit();\n });\n }\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n if(this._searchValueChangeSubscription)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n }\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicOptionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/dynamicOptionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NgSelectOption} from '../../components/option';\n\n/**\n * Callback used for obtaining dynamic options\n */\nexport interface GetOptionsCallback<TValue = any>\n{\n /**\n * Gets array of options based on query\n * @param query - Query for obtaining options, can be searched string or TValue in case of obtaining option for value during initialization\n */\n (query: string|TValue): Promise<NgSelectOption<TValue>[]>;\n}\n\n/**\n * Options for dynamic options gatherer\n */\nexport interface DynamicOptionsGathererOptions<TValue = any>\n{\n /**\n * Callback used for obtaining dynamic options\n */\n dynamicOptionsCallback: GetOptionsCallback<TValue>;\n\n /**\n * Number of miliseconds which represents minimal delay between calls of dynamicOptionsCallback\n */\n delay?: number;\n\n /**\n * Minimal number of characters to be used for searching\n */\n minLength?: number;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/dynamicOptionsGatherer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAO5C,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAG3D,OAAO,EAAC,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAG/D;;GAEG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K,CAAC,qBAAqB;QAEjC,IAAI,WAAW,GAAW,IAAI,CAAC,WAAW,CAAC,WAAW,CAAC;QAEvD,8CAA8C;QAC9C,IAAG,CAAC,IAAI,CAAC,YAAY,IAAI,CAAC,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,IAAI,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,EACtK;YACI,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC,WAAW,IAAI,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,IAAI,CAAC;SACzF;QAED,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC;QAEzB,IAAG,CAAC,WAAW,EAAE,MAAM,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,UAAU,EAC/C;YACI,sDAAsD;YACtD,IAAG,SAAS,CAAC,WAAW,CAAC,IAAI,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,EAClE;gBACI,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;gBAClB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;aAC7B;YAED,OAAO;SACV;QAED,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,WAAW,IAAI,EAAE,CAAC,CAAC;QAC7E,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;IAC9B,CAAC;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {isPresent} from '@jscrpt/common';\nimport {Subscription, Observable} from 'rxjs';\nimport {debounceTime} from 'rxjs/operators';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {NgSelectOption} from '../../components/option';\nimport {DynamicOptionsGathererOptions} from './dynamicOptionsGatherer.interface';\nimport {LiveSearch} from '../../plugins/liveSearch';\nimport {LIVE_SEARCH} from '../../plugins/liveSearch/types';\nimport {PluginBus} from '../pluginBus/pluginBus';\nimport {Popup} from '../../plugins/popup';\nimport {POPUP} from '../../plugins/popup/types';\nimport {VALUE_HANDLER} from '../../plugins/valueHandler/types';\nimport {ValueHandler} from '../../plugins/valueHandler';\n\n/**\n * Class that is used as for options gathering in dynamic way, for example from external source when writing\n */\nexport class DynamicOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n /**\n * Subscription for changes of live search value\n */\n protected _searchValueChangeSubscription: Subscription;\n\n /**\n * Subscription for visibility change of popup\n */\n protected _visibilitySubscription: Subscription;\n\n /**\n * Minimal number of characters required for searching\n */\n protected _minLength: number = 1;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n /**\n * Indication that first initial call was performed\n */\n protected _initialized: boolean = false;\n\n /**\n * Currently used value handler plugin\n */\n protected _valueHandler: ValueHandler;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public options: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of provided options has changed\n */\n public optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this.options;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this.optionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### constructor #########################\n constructor(protected _options: DynamicOptionsGathererOptions<TValue>)\n {\n if(!this._options)\n {\n throw new Error('Options can not be null!');\n }\n\n if(this._options && isPresent(this._options.minLength))\n {\n this._minLength = this._options.minLength;\n }\n }\n\n //######################### public methods - implementation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._liveSearch = null;\n }\n\n const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._visibilitySubscription.unsubscribe();\n this._visibilitySubscription = null;\n\n this._popup = null;\n }\n\n this._valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(!this._popup)\n {\n this._popup = popup;\n\n this._visibilitySubscription = this._popup.visibilityChange.subscribe(async () =>\n {\n if(this._initialized)\n {\n return;\n }\n\n await this._processOptionsChange();\n });\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n\n let searchValueChange: Observable<void> = this._liveSearch.searchValueChange;\n\n if(this._options.delay)\n {\n searchValueChange = searchValueChange.pipe(debounceTime(this._options.delay));\n }\n\n this._searchValueChangeSubscription = searchValueChange.subscribe(async () => await this._processOptionsChange());\n }\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n this._searchValueChangeSubscription?.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._visibilitySubscription?.unsubscribe();\n this._visibilitySubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Process options change request\n */\n protected async _processOptionsChange()\n {\n let searchValue: string = this._liveSearch.searchValue;\n\n //use value as search value if not initialized\n if(!this._initialized && !this.pluginBus.selectOptions.multiple && !Array.isArray(this._valueHandler.selectedOptions) && isPresent(this._valueHandler.selectedOptions))\n {\n searchValue = this._liveSearch.searchValue ?? this._valueHandler.selectedOptions.text;\n }\n\n this._initialized = true;\n\n if((searchValue?.length ?? 0) < this._minLength)\n {\n //remove available options if multiple or empty string\n if(isPresent(searchValue) || this.pluginBus.selectOptions.multiple)\n {\n this.options = [];\n this.optionsChange.emit();\n }\n\n return;\n }\n\n this.options = await this._options.dynamicOptionsCallback(searchValue ?? '');\n this.optionsChange.emit();\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"excludingOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/excludingOptionsGatherer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAQ3C,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAE/D;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAArC;QAEI,sEAAsE;QAEtE;;WAEG;QACO,sBAAiB,GAA6B,EAAE,CAAC;QAE3D;;WAEG;QACO,4BAAuB,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAkKrF,CAAC;IAjJG,2GAA2G;IAE3G;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QAEpB,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,IAAW,gBAAgB;QAEvB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAW,sBAAsB;QAE7B,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACxC,CAAC;IAiBD,uGAAuG;IAEvG;;OAEG;IACI,kBAAkB;QAErB,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;QAEjC,IAAI,CAAC,mCAAmC,GAAG,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAEvH,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,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C;IACxC,CAAC;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectOption, ɵNgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {PluginBus} from '../pluginBus/pluginBus';\nimport {ValueHandler} from '../../plugins/valueHandler';\nimport {VALUE_HANDLER} from '../../plugins/valueHandler/types';\n\n/**\n * Options gatherer using default build in gatherer extended with exclusion of selected options\n */\nexport class ExcludingOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Array of visible, displayed options for select\n */\n protected _availableOptions: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n protected _availableOptionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Subscription for change of available options\n */\n protected _availableOptionsChangeSubscription: Subscription;\n\n /**\n * Subscription for change of value in value handler\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public get options(): NgSelectOption<TValue>[]\n {\n return this.select.options;\n }\n\n /**\n * Occurs when array of provided options has changed\n */\n public get optionsChange(): EventEmitter<void>\n {\n return this.select.optionsChange;\n }\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this._availableOptions;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this._availableOptionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### public methods - implmentation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n this.select.initializeGatherer();\n\n this._availableOptionsChangeSubscription = this.select.availableOptionsChange.subscribe(() => this._excludeSelected());\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(() => this._excludeSelected());\n }\n\n this._excludeSelected();\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n this._availableOptionsChangeSubscription?.unsubscribe();\n this._availableOptionsChangeSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Exclude selected options\n */\n protected _excludeSelected()\n {\n //nothing selected\n if(!this._valueHandler.value)\n {\n this._availableOptions = this.select.availableOptions;\n this._availableOptionsChange.emit();\n\n return;\n }\n\n const compare = this.pluginBus.selectOptions.valueComparer;\n const normalize = this.pluginBus.selectOptions.normalizer;\n\n //multi selected\n if(this.pluginBus.selectOptions.multiple && Array.isArray(this._valueHandler.value))\n {\n //filter out value\n if(this._valueHandler.value.length)\n {\n const value = this._valueHandler.value;\n \n this._availableOptions = this.select.availableOptions.filter(opt => !value.find(itm => compare(normalize(itm), normalize(opt.value))));\n }\n //nothing selected\n else\n {\n this._availableOptions = this.select.availableOptions;\n }\n }\n //single selected\n else if(!this.pluginBus.selectOptions.multiple)\n {\n this._availableOptions = this.select.availableOptions.filter(opt => !compare(normalize(opt.value), normalize(this._valueHandler.value)));\n }\n\n //deactivate selected\n if(Array.isArray(this._valueHandler.selectedOptions))\n {\n this._valueHandler.selectedOptions.forEach((opt: ɵNgSelectOption) => opt.active = false);\n }\n else\n {\n (this._valueHandler.selectedOptions as ɵNgSelectOption).active = false;\n }\n\n this._availableOptionsChange.emit();\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"optionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/optionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectOption} from '../../components/option/option.interface';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {NormalizeFunc} from '../ngSelectOptions.interface';\nimport {PluginBus} from '../pluginBus/pluginBus';\n\n/**\n * Callback that is used for filtering static values during live search\n */\nexport interface LiveSearchFilter<TValue = any>\n{\n (query: string, normalizer?: NormalizeFunc<TValue>): (option: NgSelectOption<TValue>) => boolean\n}\n\n/**\n * Gatherer used for obtaining options for select\n */\nexport interface OptionsGatherer<TValue = any>\n{\n /**\n * Array of provided options for select\n */\n readonly options: NgSelectOption<TValue>[];\n\n /**\n * Occurs when array of provided options has changed\n */\n readonly optionsChange: EventEmitter<void>;\n\n /**\n * Array of visible, displayed options for select\n */\n readonly availableOptions: NgSelectOption<TValue>[];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n readonly availableOptionsChange: EventEmitter<void>;\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n select: NgSelect<TValue>;\n\n /**\n * Initialize gatherer during initialization phase\n */\n initializeGatherer(): void;\n\n /**\n * Called when gatherer needs to be destroyed\n */\n destroyGatherer(): void;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/types.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './codeOptionsGatherer';\nexport * from './dynamicOptionsGatherer';\nexport * from './excludingOptionsGatherer';"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.interface.js","sourceRoot":"","sources":["../../../src/misc/plugin.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type, ElementRef} from '@angular/core';\n\nimport {NgSelectPluginInstances} from '../components/select';\nimport {KeyboardHandler} from '../plugins/keyboardHandler';\nimport {NormalState} from '../plugins/normalState';\nimport {Popup} from '../plugins/popup';\nimport {Positioner} from '../plugins/positioner';\nimport {ReadonlyState} from '../plugins/readonlyState';\nimport {ValueHandler} from '../plugins/valueHandler';\nimport {LiveSearch} from '../plugins/liveSearch';\nimport {PluginBus} from './pluginBus/pluginBus';\n\n/**\n * NgSelect plugin interface\n */\nexport interface NgSelectPlugin<TOptions = any, TValue = any>\n{\n /**\n * NgSelect plugin instances available for this plugin\n */\n ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Element that represents plugin\n */\n pluginElement: ElementRef;\n\n /**\n * Options for NgSelect plugin\n */\n options: TOptions;\n\n /**\n * Plugin bus used in select\n */\n pluginBus: PluginBus<TValue>;\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n initialize(): void;\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n initOptions(): void;\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n invalidateVisuals(): void;\n}\n\n/**\n * All available types of plugins for NgSelect\n */\nexport interface NgSelectPluginTypes\n{\n /**\n * Handles keyboard events\n */\n keyboardHandler?: PluginDescription<KeyboardHandler>;\n\n /**\n * Component used for displaying normal state of select\n */\n normalState?: PluginDescription<NormalState>;\n\n /**\n * Component used for displaying available options for selection\n */\n popup?: PluginDescription<Popup>;\n\n /**\n * Handles correct position of pop component\n */\n positioner?: PluginDescription<Positioner>;\n\n /**\n * Component used for displaying readonly/disabled state of select, can be null, in that case normal state component is used\n */\n readonlyState?: PluginDescription<ReadonlyState>;\n\n /**\n * Handles obtaining and setting value of component\n */\n valueHandler?: PluginDescription<ValueHandler>;\n\n /**\n * Contains component that is used for live searching in options\n */\n liveSearch?: PluginDescription<LiveSearch>;\n}\n\n/**\n * Base options for every plugin\n */\nexport interface PluginOptions\n{\n}\n\n/**\n * Base options for every visual plugin (component)\n */\nexport interface VisualPluginOptions<TCssClasses = any> extends PluginOptions\n{\n /**\n * Css classes applied to visual plugin (component), possible to override only part of classes\n */\n cssClasses?: TCssClasses;\n}\n\n/**\n * Defines interface, that describes minimal set of parameters for specifying plugin for NgSelect\n */\nexport interface PluginDescription<PluginType = any>\n{\n /**\n * Type of plugin that will be dynamically instantiated\n */\n type?: Type<PluginType>;\n\n /**\n * Options that will be passed to dynamically instantiated plugin\n */\n options?: PluginOptions;\n\n /**\n * Optional callback used for obtaining dynamic instance of plugin (allows direct communication with plugin)\n */\n instanceCallback?: (instance: NgSelectPlugin|null) => void;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"pluginBus.interface.js","sourceRoot":"","sources":["../../../../src/misc/pluginBus/pluginBus.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectOption} from '../../components/option';\n\n/**\n * Represents all events implemented by plugin bus\n */\nexport interface PluginBusEvents\n{\n //######################### public properties - events #########################\n\n /**\n * Occurs when popup visibility should be toggled\n */\n readonly togglePopup: EventEmitter<void>;\n\n /**\n * Occurs when popup visibility should be changed\n */\n readonly showHidePopup: EventEmitter<boolean>;\n\n /**\n * Occurs when option should be selected\n */\n readonly optionSelect: EventEmitter<NgSelectOption>;\n\n /**\n * Occurs when option should be canceled\n */\n readonly optionCancel: EventEmitter<NgSelectOption>;\n\n /**\n * Occurs when any part of select gains focus\n */\n readonly focus: EventEmitter<void>;\n\n /**\n * Occurs when live search should gain focus\n */\n readonly liveSearchFocus: EventEmitter<void>;\n\n /**\n * Occurs when there is need for updating displayed value\n */\n readonly updateDisplayedValue: EventEmitter<void>;\n}"]}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Injectable, EventEmitter } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Class represents centralized bus for plugin communications
|
|
5
|
-
*/
|
|
6
|
-
export class PluginBus {
|
|
7
|
-
constructor() {
|
|
8
|
-
//######################### public properties - events #########################
|
|
9
|
-
/**
|
|
10
|
-
* Occurs when popup visibility should be toggled
|
|
11
|
-
*/
|
|
12
|
-
this.togglePopup = new EventEmitter();
|
|
13
|
-
/**
|
|
14
|
-
* Occurs when popup visibility should be changed
|
|
15
|
-
*/
|
|
16
|
-
this.showHidePopup = new EventEmitter();
|
|
17
|
-
/**
|
|
18
|
-
* Occurs when option should be selected
|
|
19
|
-
*/
|
|
20
|
-
this.optionSelect = new EventEmitter();
|
|
21
|
-
/**
|
|
22
|
-
* Occurs when option should be canceled
|
|
23
|
-
*/
|
|
24
|
-
this.optionCancel = new EventEmitter();
|
|
25
|
-
/**
|
|
26
|
-
* Occurs when any part of select gains focus
|
|
27
|
-
*/
|
|
28
|
-
this.focus = new EventEmitter();
|
|
29
|
-
/**
|
|
30
|
-
* Occurs when live search should gain focus
|
|
31
|
-
*/
|
|
32
|
-
this.liveSearchFocus = new EventEmitter();
|
|
33
|
-
/**
|
|
34
|
-
* Occurs when there is need for updating displayed value
|
|
35
|
-
*/
|
|
36
|
-
this.updateDisplayedValue = new EventEmitter();
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
PluginBus.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PluginBus, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
40
|
-
PluginBus.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PluginBus });
|
|
41
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PluginBus, decorators: [{
|
|
42
|
-
type: Injectable
|
|
43
|
-
}] });
|
|
44
|
-
//# sourceMappingURL=pluginBus.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"templateGatherer.interface.js","sourceRoot":"","sources":["../../../src/misc/templateGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {TemplateRef} from '@angular/core';\n\nimport {NormalStateContext} from '../plugins/normalState';\nimport {PopupContext} from '../plugins/popup';\n\n/**\n * Gatherer used for obtaining templates for NgSelect plugins\n */\nexport interface TemplateGatherer\n{\n /**\n * Template used within normal state\n */\n readonly normalStateTemplate: TemplateRef<NormalStateContext>;\n\n /**\n * Template that is used within Popup as option\n */\n readonly optionTemplate?: TemplateRef<PopupContext>;\n}"]}
|
package/es2020/src/misc/types.js
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
/**
|
|
3
|
-
* Injection token for 'NgSelectOptions'
|
|
4
|
-
*/
|
|
5
|
-
export const NG_SELECT_OPTIONS = new InjectionToken('NG_SELECT_OPTIONS');
|
|
6
|
-
/**
|
|
7
|
-
* Injection token for 'KeyboardHandler' implementation
|
|
8
|
-
*/
|
|
9
|
-
export const KEYBOARD_HANDLER_TYPE = new InjectionToken('KEYBOARD_HANDLER_TYPE');
|
|
10
|
-
/**
|
|
11
|
-
* Injection token for 'NormalState' implementation
|
|
12
|
-
*/
|
|
13
|
-
export const NORMAL_STATE_TYPE = new InjectionToken('NORMAL_STATE_TYPE');
|
|
14
|
-
/**
|
|
15
|
-
* Injection token for 'Popup' implementation
|
|
16
|
-
*/
|
|
17
|
-
export const POPUP_TYPE = new InjectionToken('POPUP_TYPE');
|
|
18
|
-
/**
|
|
19
|
-
* Injection token for 'Positioner' implementation
|
|
20
|
-
*/
|
|
21
|
-
export const POSITIONER_TYPE = new InjectionToken('POSITIONER_TYPE');
|
|
22
|
-
/**
|
|
23
|
-
* Injection token for 'ReadonlyState' implementation
|
|
24
|
-
*/
|
|
25
|
-
export const READONLY_STATE_TYPE = new InjectionToken('READONLY_STATE_TYPE');
|
|
26
|
-
/**
|
|
27
|
-
* Injection token for 'ValueHandler' implementation
|
|
28
|
-
*/
|
|
29
|
-
export const VALUE_HANDLER_TYPE = new InjectionToken('VALUE_HANDLER_TYPE');
|
|
30
|
-
/**
|
|
31
|
-
* Injection token for 'LiveSearch' implementation
|
|
32
|
-
*/
|
|
33
|
-
export const LIVE_SEARCH_TYPE = new InjectionToken('LIVE_SEARCH_TYPE');
|
|
34
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/misc/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAO,MAAM,eAAe,CAAC;AAWnD;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAoC,IAAI,cAAc,CAAkB,mBAAmB,CAAC,CAAC;AAE3H;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAA0C,IAAI,cAAc,CAAwB,uBAAuB,CAAC,CAAC;AAE/I;;GAEG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAsC,IAAI,cAAc,CAAoB,mBAAmB,CAAC,CAAC;AAE/H;;GAEG;AACH,MAAM,CAAC,MAAM,UAAU,GAAgC,IAAI,cAAc,CAAc,YAAY,CAAC,CAAC;AAErG;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAqC,IAAI,cAAc,CAAmB,iBAAiB,CAAC,CAAC;AAEzH;;GAEG;AACH,MAAM,CAAC,MAAM,mBAAmB,GAAwC,IAAI,cAAc,CAAsB,qBAAqB,CAAC,CAAC;AAEvI;;GAEG;AACH,MAAM,CAAC,MAAM,kBAAkB,GAAuC,IAAI,cAAc,CAAqB,oBAAoB,CAAC,CAAC;AAEnI;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAqC,IAAI,cAAc,CAAmB,kBAAkB,CAAC,CAAC","sourcesContent":["import {InjectionToken, Type} from '@angular/core';\n\nimport {KeyboardHandler} from '../plugins/keyboardHandler';\nimport {NormalState} from '../plugins/normalState';\nimport {Popup} from '../plugins/popup';\nimport {Positioner} from '../plugins/positioner';\nimport {ReadonlyState} from '../plugins/readonlyState';\nimport {ValueHandler} from '../plugins/valueHandler';\nimport {LiveSearch} from '../plugins/liveSearch';\nimport {NgSelectOptions} from './ngSelectOptions.interface';\n\n/**\n * Injection token for 'NgSelectOptions'\n */\nexport const NG_SELECT_OPTIONS: InjectionToken<NgSelectOptions> = new InjectionToken<NgSelectOptions>('NG_SELECT_OPTIONS');\n\n/**\n * Injection token for 'KeyboardHandler' implementation\n */\nexport const KEYBOARD_HANDLER_TYPE: InjectionToken<Type<KeyboardHandler>> = new InjectionToken<Type<KeyboardHandler>>('KEYBOARD_HANDLER_TYPE');\n\n/**\n * Injection token for 'NormalState' implementation\n */\nexport const NORMAL_STATE_TYPE: InjectionToken<Type<NormalState>> = new InjectionToken<Type<NormalState>>('NORMAL_STATE_TYPE');\n\n/**\n * Injection token for 'Popup' implementation\n */\nexport const POPUP_TYPE: InjectionToken<Type<Popup>> = new InjectionToken<Type<Popup>>('POPUP_TYPE');\n\n/**\n * Injection token for 'Positioner' implementation\n */\nexport const POSITIONER_TYPE: InjectionToken<Type<Positioner>> = new InjectionToken<Type<Positioner>>('POSITIONER_TYPE');\n\n/**\n * Injection token for 'ReadonlyState' implementation\n */\nexport const READONLY_STATE_TYPE: InjectionToken<Type<ReadonlyState>> = new InjectionToken<Type<ReadonlyState>>('READONLY_STATE_TYPE');\n\n/**\n * Injection token for 'ValueHandler' implementation\n */\nexport const VALUE_HANDLER_TYPE: InjectionToken<Type<ValueHandler>> = new InjectionToken<Type<ValueHandler>>('VALUE_HANDLER_TYPE');\n\n/**\n * Injection token for 'LiveSearch' implementation\n */\nexport const LIVE_SEARCH_TYPE: InjectionToken<Type<LiveSearch>> = new InjectionToken<Type<LiveSearch>>('LIVE_SEARCH_TYPE');"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelect.module.js","sourceRoot":"","sources":["../../../src/modules/ngSelect.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,mBAAmB,EAAC,MAAM,eAAe,CAAC;AAElD,OAAO,EAAC,iBAAiB,EAAC,MAAM,6BAA6B,CAAC;AAC9D,OAAO,EAAC,oBAAoB,EAAC,MAAM,gCAAgC,CAAC;AACpE,OAAO,EAAC,4BAA4B,EAAC,MAAM,gDAAgD,CAAC;AAC5F,OAAO,EAAC,yBAAyB,EAAC,MAAM,yDAAyD,CAAC;AAClG,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAC,wBAAwB,EAAC,MAAM,uDAAuD,CAAC;AAC/F,OAAO,EAAC,mBAAmB,EAAC,MAAM,6CAA6C,CAAC;AAChF,OAAO,EAAC,0BAA0B,EAAC,MAAM,2DAA2D,CAAC;AACrG,OAAO,EAAC,qBAAqB,EAAC,MAAM,iDAAiD,CAAC;AACtF,OAAO,EAAC,6BAA6B,EAAC,MAAM,iEAAiE,CAAC;AAC9G,OAAO,EAAC,0BAA0B,EAAC,MAAM,2DAA2D,CAAC;AACrG,OAAO,EAAC,eAAe,EAAC,MAAM,uCAAuC,CAAC;AACtE,OAAO,EAAC,iBAAiB,EAAC,MAAM,yCAAyC,CAAC;AAC1E,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAC,yBAAyB,EAAC,MAAM,2DAA2D,CAAC;AACpG,OAAO,EAAC,4BAA4B,EAAC,MAAM,iEAAiE,CAAC;;AAE7G;;GAEG;AAuCH,MAAM,OAAO,cAAc;;2GAAd,cAAc;4GAAd,cAAc,iBA7BnB,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,iBAAiB;QACjB,oBAAoB;QACpB,4BAA4B;QAC5B,yBAAyB;QACzB,qBAAqB;QACrB,wBAAwB;QACxB,mBAAmB;QACnB,qBAAqB;QACrB,0BAA0B;QAC1B,6BAA6B;QAC7B,0BAA0B;QAC1B,yBAAyB;QACzB,4BAA4B,aApB5B,YAAY;QACZ,mBAAmB,aAuBnB,eAAe;QACf,iBAAiB;QACjB,iBAAiB;QACjB,iBAAiB;QACjB,oBAAoB;QACpB,4BAA4B;QAC5B,yBAAyB;QACzB,4BAA4B;4GAGvB,cAAc,YAlCnB,YAAY;QACZ,mBAAmB;2FAiCd,cAAc;kBAtC1B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,mBAAmB;qBACtB;oBACD,YAAY,EACZ;wBACI,eAAe;wBACf,iBAAiB;wBACjB,iBAAiB;wBACjB,iBAAiB;wBACjB,oBAAoB;wBACpB,4BAA4B;wBAC5B,yBAAyB;wBACzB,qBAAqB;wBACrB,wBAAwB;wBACxB,mBAAmB;wBACnB,qBAAqB;wBACrB,0BAA0B;wBAC1B,6BAA6B;wBAC7B,0BAA0B;wBAC1B,yBAAyB;wBACzB,4BAA4B;qBAC/B;oBACD,OAAO,EACP;wBACI,eAAe;wBACf,iBAAiB;wBACjB,iBAAiB;wBACjB,iBAAiB;wBACjB,oBAAoB;wBACpB,4BAA4B;wBAC5B,yBAAyB;wBACzB,4BAA4B;qBAC/B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {CommonDynamicModule} from '@anglr/common';\n\nimport {NgSelectValuePipe} from '../pipes/ngSelectValue.pipe';\nimport {NgSelectHasValuePipe} from '../pipes/ngSelectHasValue.pipe';\nimport {NgSelectControlValueAccessor} from '../misc/ngSelectControlValueAccessor.directive';\nimport {BasicNormalStateComponent} from '../plugins/normalState/basic/basicNormalState.component';\nimport {NoLiveSearchComponent} from '../plugins/liveSearch/no/noLiveSearch.component';\nimport {BasicLiveSearchComponent} from '../plugins/liveSearch/basic/basicLiveSearch.component';\nimport {BasicPopupComponent} from '../plugins/popup/basic/basicPopup.component';\nimport {DefaultPositionerComponent} from '../plugins/positioner/default/defaultPositioner.component';\nimport {NoPositionerComponent} from '../plugins/positioner/no/noPositioner.component';\nimport {BasicKeyboardHandlerComponent} from '../plugins/keyboardHandler/basic/basicKeyboardHandler.component';\nimport {BasicValueHandlerComponent} from '../plugins/valueHandler/basic/basicValueHandler.component';\nimport {OptionComponent} from '../components/option/option.component';\nimport {OptGroupComponent} from '../components/option/optgroup.component';\nimport {NgSelectComponent} from '../components/select/select.component';\nimport {NgSelectAbsoluteDirective} from '../directives/ngSelectAbsolute/ngSelectAbsolute.directive';\nimport {NgSelectPlaceholderDirective} from '../directives/ngSelectPlaceholder/ngSelectPlaceholder.directive';\n\n/**\n * Module for select and its options\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n CommonDynamicModule,\n ],\n declarations:\n [\n OptionComponent,\n OptGroupComponent,\n NgSelectComponent,\n NgSelectValuePipe,\n NgSelectHasValuePipe,\n NgSelectControlValueAccessor,\n BasicNormalStateComponent,\n NoLiveSearchComponent,\n BasicLiveSearchComponent,\n BasicPopupComponent,\n NoPositionerComponent,\n DefaultPositionerComponent,\n BasicKeyboardHandlerComponent,\n BasicValueHandlerComponent,\n NgSelectAbsoluteDirective,\n NgSelectPlaceholderDirective\n ],\n exports:\n [\n OptionComponent,\n OptGroupComponent,\n NgSelectComponent,\n NgSelectValuePipe,\n NgSelectHasValuePipe,\n NgSelectControlValueAccessor,\n NgSelectAbsoluteDirective,\n NgSelectPlaceholderDirective\n ]\n})\nexport class NgSelectModule\n{\n}"]}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { DynamicValueHandlerComponent } from '../plugins/valueHandler/dynamic/dynamicValueHandler.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Module for select and its options, allows use of dynamic value handler
|
|
6
|
-
*/
|
|
7
|
-
export class NgSelectDynamicModule {
|
|
8
|
-
}
|
|
9
|
-
NgSelectDynamicModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDynamicModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
10
|
-
NgSelectDynamicModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDynamicModule, declarations: [DynamicValueHandlerComponent] });
|
|
11
|
-
NgSelectDynamicModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDynamicModule });
|
|
12
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectDynamicModule, decorators: [{
|
|
13
|
-
type: NgModule,
|
|
14
|
-
args: [{
|
|
15
|
-
declarations: [
|
|
16
|
-
DynamicValueHandlerComponent
|
|
17
|
-
]
|
|
18
|
-
}]
|
|
19
|
-
}] });
|
|
20
|
-
//# sourceMappingURL=ngSelectDynamic.module.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectDynamic.module.js","sourceRoot":"","sources":["../../../src/modules/ngSelectDynamic.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,4BAA4B,EAAC,MAAM,+DAA+D,CAAC;;AAE3G;;GAEG;AAQH,MAAM,OAAO,qBAAqB;;kHAArB,qBAAqB;mHAArB,qBAAqB,iBAH1B,4BAA4B;mHAGvB,qBAAqB;2FAArB,qBAAqB;kBAPjC,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,4BAA4B;qBAC/B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {DynamicValueHandlerComponent} from '../plugins/valueHandler/dynamic/dynamicValueHandler.component';\n\n/**\n * Module for select and its options, allows use of dynamic value handler\n */\n@NgModule(\n{\n declarations:\n [\n DynamicValueHandlerComponent\n ]\n})\nexport class NgSelectDynamicModule\n{\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectEdit.module.js","sourceRoot":"","sources":["../../../src/modules/ngSelectEdit.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,qBAAqB,EAAC,MAAM,mDAAmD,CAAC;AACxF,OAAO,EAAC,wBAAwB,EAAC,MAAM,uDAAuD,CAAC;AAC/F,OAAO,EAAC,uBAAuB,EAAC,MAAM,qDAAqD,CAAC;AAC5F,OAAO,EAAC,kBAAkB,EAAC,MAAM,2CAA2C,CAAC;AAC7E,OAAO,EAAC,4BAA4B,EAAC,MAAM,+DAA+D,CAAC;AAC3G,OAAO,EAAC,cAAc,EAAC,MAAM,mBAAmB,CAAC;;AAEjD;;GAEG;AAyBH,MAAM,OAAO,kBAAkB;;+GAAlB,kBAAkB;gHAAlB,kBAAkB,iBAfvB,qBAAqB;QACrB,wBAAwB;QACxB,uBAAuB;QACvB,kBAAkB;QAClB,4BAA4B,aAT5B,YAAY;QACZ,cAAc,aAYd,qBAAqB;QACrB,wBAAwB;QACxB,uBAAuB;QACvB,kBAAkB;QAClB,4BAA4B;gHAGvB,kBAAkB,YApBvB,YAAY;QACZ,cAAc;2FAmBT,kBAAkB;kBAxB9B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;wBACZ,cAAc;qBACjB;oBACD,YAAY,EACZ;wBACI,qBAAqB;wBACrB,wBAAwB;wBACxB,uBAAuB;wBACvB,kBAAkB;wBAClB,4BAA4B;qBAC/B;oBACD,OAAO,EACP;wBACI,qBAAqB;wBACrB,wBAAwB;wBACxB,uBAAuB;wBACvB,kBAAkB;wBAClB,4BAA4B;qBAC/B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {NgSelectEditDirective} from '../directives/ngSelectEdit/ngSelectEdit.directive';\nimport {EditNormalStateComponent} from '../plugins/normalState/edit/editNormalState.component';\nimport {EditLiveSearchComponent} from '../plugins/liveSearch/edit/editLiveSearch.component';\nimport {EditPopupComponent} from '../plugins/popup/edit/editPopup.component';\nimport {EditKeyboardHandlerComponent} from '../plugins/keyboardHandler/edit/editKeyboardHandler.component';\nimport {NgSelectModule} from './ngSelect.module';\n\n/**\n * Module for select with editation and tags (jira like select)\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n NgSelectModule\n ],\n declarations:\n [\n NgSelectEditDirective,\n EditNormalStateComponent,\n EditLiveSearchComponent,\n EditPopupComponent,\n EditKeyboardHandlerComponent\n ],\n exports:\n [\n NgSelectEditDirective,\n EditNormalStateComponent,\n EditLiveSearchComponent,\n EditPopupComponent,\n EditKeyboardHandlerComponent\n ]\n})\nexport class NgSelectEditModule\n{\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectHasValue.pipe.js","sourceRoot":"","sources":["../../../src/pipes/ngSelectHasValue.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAIvC;;GAEG;AAEH,MAAM,OAAO,oBAAoB;IAE7B,oEAAoE;IAEpE;;;OAGG;IACI,SAAS,CAAC,OAA6D;QAE1E,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;IAC9E,CAAC;;iHAXQ,oBAAoB;+GAApB,oBAAoB;2FAApB,oBAAoB;kBADhC,IAAI;mBAAC,EAAC,IAAI,EAAE,kBAAkB,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\n\nimport {NgSelectOption} from '../components/option';\n\n/**\n * Pipe that checks whether select has currently any option\n */\n@Pipe({name: 'ngSelectHasValue'})\nexport class NgSelectHasValuePipe<TValue = any> implements PipeTransform\n{\n //######################### public methods #########################\n \n /**\n * Transforms selected option into boolean indication if there is option selected\n * @param options - Selected options to be transformed into boolean\n */ \n public transform(options: NgSelectOption<TValue>|Array<NgSelectOption<TValue>>): boolean\n {\n return !(isBlank(options) || (Array.isArray(options) && !options.length));\n }\n}\n\n"]}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import { isBlank } from '@jscrpt/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Pipe to transform ng select selected option into
|
|
6
|
-
*/
|
|
7
|
-
export class NgSelectValuePipe {
|
|
8
|
-
//######################### public methods #########################
|
|
9
|
-
/**
|
|
10
|
-
* Transforms selected option into string
|
|
11
|
-
* @param options - Selected options to be transformed into text
|
|
12
|
-
* @param nothingSelectedText - Text displayed if nothing is selected
|
|
13
|
-
* @param optionDisplayText - Function used for transformation of option into display text, defaults to text property of option
|
|
14
|
-
*/
|
|
15
|
-
transform(options, nothingSelectedText, optionDisplayText = option => option.text) {
|
|
16
|
-
if (isBlank(options) || (Array.isArray(options) && !options.length)) {
|
|
17
|
-
return nothingSelectedText;
|
|
18
|
-
}
|
|
19
|
-
if (Array.isArray(options)) {
|
|
20
|
-
return options.map(optionDisplayText).join(', ');
|
|
21
|
-
}
|
|
22
|
-
return optionDisplayText(options);
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
NgSelectValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
26
|
-
NgSelectValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectValuePipe, name: "ngSelectValue" });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectValuePipe, decorators: [{
|
|
28
|
-
type: Pipe,
|
|
29
|
-
args: [{ name: 'ngSelectValue' }]
|
|
30
|
-
}] });
|
|
31
|
-
//# sourceMappingURL=ngSelectValue.pipe.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectValue.pipe.js","sourceRoot":"","sources":["../../../src/pipes/ngSelectValue.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,IAAI,EAAgB,MAAM,eAAe,CAAC;AAClD,OAAO,EAAC,OAAO,EAAC,MAAM,gBAAgB,CAAC;;AAKvC;;GAEG;AAEH,MAAM,OAAO,iBAAiB;IAE1B,oEAAoE;IAEpE;;;;;OAKG;IACI,SAAS,CAAC,OAA6D,EAAE,mBAA2B,EAAE,oBAA6C,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,IAAI;QAE3K,IAAG,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAClE;YACI,OAAO,mBAAmB,CAAC;SAC9B;QAED,IAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,EACzB;YACI,OAAO,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACpD;QAED,OAAO,iBAAiB,CAAC,OAAO,CAAC,CAAC;IACtC,CAAC;;8GAvBQ,iBAAiB;4GAAjB,iBAAiB;2FAAjB,iBAAiB;kBAD7B,IAAI;mBAAC,EAAC,IAAI,EAAE,eAAe,EAAC","sourcesContent":["import {Pipe, PipeTransform} from '@angular/core';\nimport {isBlank} from '@jscrpt/common';\n\nimport {NgSelectOption} from '../components/option';\nimport {DisplayTextFunc} from '../plugins/normalState';\n\n/**\n * Pipe to transform ng select selected option into\n */\n@Pipe({name: 'ngSelectValue'})\nexport class NgSelectValuePipe<TValue = any> implements PipeTransform\n{\n //######################### public methods #########################\n \n /**\n * Transforms selected option into string\n * @param options - Selected options to be transformed into text\n * @param nothingSelectedText - Text displayed if nothing is selected\n * @param optionDisplayText - Function used for transformation of option into display text, defaults to text property of option\n */ \n public transform(options: NgSelectOption<TValue>|Array<NgSelectOption<TValue>>, nothingSelectedText: string, optionDisplayText: DisplayTextFunc<TValue> = option => option.text): string\n {\n if(isBlank(options) || (Array.isArray(options) && !options.length))\n {\n return nothingSelectedText;\n }\n\n if(Array.isArray(options))\n {\n return options.map(optionDisplayText).join(', ');\n }\n\n return optionDisplayText(options);\n }\n}\n\n"]}
|
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef } from '@angular/core';
|
|
2
|
-
import { extend } from '@jscrpt/common';
|
|
3
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
4
|
-
import { KEYBOARD_HANDLER_OPTIONS } from '../types';
|
|
5
|
-
import { POPUP } from '../../popup/types';
|
|
6
|
-
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
9
|
-
/**
|
|
10
|
-
* Default options for keyboard handler
|
|
11
|
-
* @internal
|
|
12
|
-
*/
|
|
13
|
-
const defaultOptions = {};
|
|
14
|
-
/**
|
|
15
|
-
* Component used for obtaining basic keyboard handler html element
|
|
16
|
-
*/
|
|
17
|
-
export class BasicKeyboardHandlerComponent {
|
|
18
|
-
//######################### constructor #########################
|
|
19
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, options) {
|
|
20
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
21
|
-
this.pluginBus = pluginBus;
|
|
22
|
-
this.pluginElement = pluginElement;
|
|
23
|
-
//######################### protected methods #########################
|
|
24
|
-
/**
|
|
25
|
-
* Handles keyboard event
|
|
26
|
-
* @param event - Keyboard event that occured
|
|
27
|
-
*/
|
|
28
|
-
this._handleKeyboard = (event) => {
|
|
29
|
-
if (event.key == 'ArrowDown' || event.key == 'ArrowUp') {
|
|
30
|
-
this.pluginBus.showHidePopup.emit(true);
|
|
31
|
-
const activeOption = this.availableOptions.find(itm => itm.active);
|
|
32
|
-
if (activeOption) {
|
|
33
|
-
let index = this.availableOptions.indexOf(activeOption);
|
|
34
|
-
activeOption.active = false;
|
|
35
|
-
//move down cursor
|
|
36
|
-
if (event.key == 'ArrowDown') {
|
|
37
|
-
index += 1;
|
|
38
|
-
}
|
|
39
|
-
//move up cursor
|
|
40
|
-
else {
|
|
41
|
-
index -= 1;
|
|
42
|
-
}
|
|
43
|
-
if (index < 0) {
|
|
44
|
-
index = this.availableOptions.length - 1;
|
|
45
|
-
}
|
|
46
|
-
index = index % this.availableOptions.length;
|
|
47
|
-
this.availableOptions[index].active = true;
|
|
48
|
-
}
|
|
49
|
-
//none active before
|
|
50
|
-
else if (this.availableOptions.length) {
|
|
51
|
-
this.availableOptions[0].active = true;
|
|
52
|
-
}
|
|
53
|
-
this._popup.invalidateVisuals();
|
|
54
|
-
event.preventDefault();
|
|
55
|
-
}
|
|
56
|
-
//prevent enter if popup is opened
|
|
57
|
-
if (event.key == 'Enter' && this._popup.popupElement) {
|
|
58
|
-
const activeOption = this.availableOptions.find(itm => itm.active);
|
|
59
|
-
if (activeOption) {
|
|
60
|
-
this.pluginBus.optionSelect.emit(activeOption);
|
|
61
|
-
}
|
|
62
|
-
event.preventDefault();
|
|
63
|
-
}
|
|
64
|
-
if (event.key == 'Tab' || event.key == 'Escape') {
|
|
65
|
-
this.pluginBus.showHidePopup.emit(false);
|
|
66
|
-
}
|
|
67
|
-
};
|
|
68
|
-
this._options = extend(true, {}, defaultOptions, options);
|
|
69
|
-
}
|
|
70
|
-
//######################### protected properties #########################
|
|
71
|
-
/**
|
|
72
|
-
* Gets currently available options
|
|
73
|
-
*/
|
|
74
|
-
get availableOptions() {
|
|
75
|
-
return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
|
|
76
|
-
}
|
|
77
|
-
//######################### public properties - implementation of BasicKeyboardHandler #########################
|
|
78
|
-
/**
|
|
79
|
-
* Options for NgSelect plugin
|
|
80
|
-
*/
|
|
81
|
-
get options() {
|
|
82
|
-
return this._options;
|
|
83
|
-
}
|
|
84
|
-
set options(options) {
|
|
85
|
-
this._options = extend(true, this._options, options);
|
|
86
|
-
}
|
|
87
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
88
|
-
/**
|
|
89
|
-
* Called when component is destroyed
|
|
90
|
-
*/
|
|
91
|
-
ngOnDestroy() {
|
|
92
|
-
if (this.pluginBus.selectElement) {
|
|
93
|
-
this.pluginBus.selectElement.nativeElement.removeEventListener('keydown', this._handleKeyboard);
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
//######################### public methods - implementation of BasicKeyboardHandler #########################
|
|
97
|
-
/**
|
|
98
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
99
|
-
*/
|
|
100
|
-
initialize() {
|
|
101
|
-
if (this.pluginBus.selectElement) {
|
|
102
|
-
this.pluginBus.selectElement.nativeElement.addEventListener('keydown', this._handleKeyboard);
|
|
103
|
-
}
|
|
104
|
-
const popup = this.ngSelectPlugins[POPUP];
|
|
105
|
-
if (this._popup && this._popup != popup) {
|
|
106
|
-
this._popup = null;
|
|
107
|
-
}
|
|
108
|
-
if (!this._popup) {
|
|
109
|
-
this._popup = popup;
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
114
|
-
*/
|
|
115
|
-
initOptions() {
|
|
116
|
-
}
|
|
117
|
-
/**
|
|
118
|
-
* Explicitly runs invalidation of content (change detection)
|
|
119
|
-
*/
|
|
120
|
-
invalidateVisuals() {
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
BasicKeyboardHandlerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicKeyboardHandlerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: KEYBOARD_HANDLER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
124
|
-
BasicKeyboardHandlerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: BasicKeyboardHandlerComponent, selector: "ng-basic-keyboard-handler", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicKeyboardHandlerComponent, decorators: [{
|
|
126
|
-
type: Component,
|
|
127
|
-
args: [{
|
|
128
|
-
selector: 'ng-basic-keyboard-handler',
|
|
129
|
-
template: '',
|
|
130
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
131
|
-
}]
|
|
132
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
133
|
-
type: Inject,
|
|
134
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
135
|
-
}, {
|
|
136
|
-
type: Optional
|
|
137
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
138
|
-
type: Optional
|
|
139
|
-
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
140
|
-
type: Inject,
|
|
141
|
-
args: [KEYBOARD_HANDLER_OPTIONS]
|
|
142
|
-
}, {
|
|
143
|
-
type: Optional
|
|
144
|
-
}] }]; } });
|
|
145
|
-
//# sourceMappingURL=basicKeyboardHandler.component.js.map
|