@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":"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;;OAE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C,GAAG,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;SAC5I;QAED,qBAAqB;QACrB,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,EACpD;YACI,IAAI,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,GAAoB,EAAE,EAAE,CAAC,GAAG,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;SAC5F;aAED;YACK,IAAI,CAAC,aAAa,CAAC,eAAmC,CAAC,MAAM,GAAG,KAAK,CAAC;SAC1E;QAED,IAAI,CAAC,uBAAuB,CAAC,IAAI,EAAE,CAAC;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":"pluginBus.js","sourceRoot":"","sources":["../../../../src/misc/pluginBus/pluginBus.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAa,MAAM,eAAe,CAAC;;AAMnE;;GAEG;AAEH,MAAM,OAAO,SAAS;IADtB;QAeI,gFAAgF;QAEhF;;WAEG;QACI,gBAAW,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAElE;;WAEG;QACI,kBAAa,GAA0B,IAAI,YAAY,EAAW,CAAC;QAE1E;;WAEG;QACI,iBAAY,GAAiC,IAAI,YAAY,EAAkB,CAAC;QAEvF;;WAEG;QACI,iBAAY,GAAiC,IAAI,YAAY,EAAkB,CAAC;QAEvF;;WAEG;QACI,UAAK,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAE5D;;WAEG;QACI,oBAAe,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAEtE;;WAEG;QACM,yBAAoB,GAAuB,IAAI,YAAY,EAAQ,CAAC;KAChF;;sGAlDY,SAAS;0GAAT,SAAS;2FAAT,SAAS;kBADrB,UAAU","sourcesContent":["import {Injectable, EventEmitter, ElementRef} from '@angular/core';\n\nimport {PluginBusOptions} from '../ngSelectOptions.interface';\nimport {NgSelectOption} from '../../components/option';\nimport {PluginBusEvents} from './pluginBus.interface';\n\n/**\n * Class represents centralized bus for plugin communications\n */\n@Injectable()\nexport class PluginBus<TValue = any> implements PluginBusEvents\n{\n //######################### public properties #########################\n\n /**\n * Options passed to select\n */\n public selectOptions: PluginBusOptions<TValue>;\n\n /**\n * HTML element that represents select itself\n */\n public selectElement: ElementRef<HTMLElement>;\n\n //######################### public properties - events #########################\n\n /**\n * Occurs when popup visibility should be toggled\n */\n public togglePopup: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Occurs when popup visibility should be changed\n */\n public showHidePopup: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n /**\n * Occurs when option should be selected\n */\n public optionSelect: EventEmitter<NgSelectOption> = new EventEmitter<NgSelectOption>();\n\n /**\n * Occurs when option should be canceled\n */\n public optionCancel: EventEmitter<NgSelectOption> = new EventEmitter<NgSelectOption>();\n\n /**\n * Occurs when any part of select gains focus\n */\n public focus: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Occurs when live search should gain focus\n */\n public liveSearchFocus: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Occurs when there is need for updating displayed value\n */\n readonly updateDisplayedValue: EventEmitter<void> = new EventEmitter<void>();\n}"]}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { CommonDynamicModule } from '@anglr/common';
|
|
4
|
-
import { NgSelectValuePipe } from '../pipes/ngSelectValue.pipe';
|
|
5
|
-
import { NgSelectHasValuePipe } from '../pipes/ngSelectHasValue.pipe';
|
|
6
|
-
import { NgSelectControlValueAccessor } from '../misc/ngSelectControlValueAccessor.directive';
|
|
7
|
-
import { BasicNormalStateComponent } from '../plugins/normalState/basic/basicNormalState.component';
|
|
8
|
-
import { NoLiveSearchComponent } from '../plugins/liveSearch/no/noLiveSearch.component';
|
|
9
|
-
import { BasicLiveSearchComponent } from '../plugins/liveSearch/basic/basicLiveSearch.component';
|
|
10
|
-
import { BasicPopupComponent } from '../plugins/popup/basic/basicPopup.component';
|
|
11
|
-
import { DefaultPositionerComponent } from '../plugins/positioner/default/defaultPositioner.component';
|
|
12
|
-
import { NoPositionerComponent } from '../plugins/positioner/no/noPositioner.component';
|
|
13
|
-
import { BasicKeyboardHandlerComponent } from '../plugins/keyboardHandler/basic/basicKeyboardHandler.component';
|
|
14
|
-
import { BasicValueHandlerComponent } from '../plugins/valueHandler/basic/basicValueHandler.component';
|
|
15
|
-
import { OptionComponent } from '../components/option/option.component';
|
|
16
|
-
import { OptGroupComponent } from '../components/option/optgroup.component';
|
|
17
|
-
import { NgSelectComponent } from '../components/select/select.component';
|
|
18
|
-
import { NgSelectAbsoluteDirective } from '../directives/ngSelectAbsolute/ngSelectAbsolute.directive';
|
|
19
|
-
import { NgSelectPlaceholderDirective } from '../directives/ngSelectPlaceholder/ngSelectPlaceholder.directive';
|
|
20
|
-
import * as i0 from "@angular/core";
|
|
21
|
-
/**
|
|
22
|
-
* Module for select and its options
|
|
23
|
-
*/
|
|
24
|
-
export class NgSelectModule {
|
|
25
|
-
}
|
|
26
|
-
NgSelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
27
|
-
NgSelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectModule, declarations: [OptionComponent,
|
|
28
|
-
OptGroupComponent,
|
|
29
|
-
NgSelectComponent,
|
|
30
|
-
NgSelectValuePipe,
|
|
31
|
-
NgSelectHasValuePipe,
|
|
32
|
-
NgSelectControlValueAccessor,
|
|
33
|
-
BasicNormalStateComponent,
|
|
34
|
-
NoLiveSearchComponent,
|
|
35
|
-
BasicLiveSearchComponent,
|
|
36
|
-
BasicPopupComponent,
|
|
37
|
-
NoPositionerComponent,
|
|
38
|
-
DefaultPositionerComponent,
|
|
39
|
-
BasicKeyboardHandlerComponent,
|
|
40
|
-
BasicValueHandlerComponent,
|
|
41
|
-
NgSelectAbsoluteDirective,
|
|
42
|
-
NgSelectPlaceholderDirective], imports: [CommonModule,
|
|
43
|
-
CommonDynamicModule], exports: [OptionComponent,
|
|
44
|
-
OptGroupComponent,
|
|
45
|
-
NgSelectComponent,
|
|
46
|
-
NgSelectValuePipe,
|
|
47
|
-
NgSelectHasValuePipe,
|
|
48
|
-
NgSelectControlValueAccessor,
|
|
49
|
-
NgSelectAbsoluteDirective,
|
|
50
|
-
NgSelectPlaceholderDirective] });
|
|
51
|
-
NgSelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectModule, imports: [CommonModule,
|
|
52
|
-
CommonDynamicModule] });
|
|
53
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectModule, decorators: [{
|
|
54
|
-
type: NgModule,
|
|
55
|
-
args: [{
|
|
56
|
-
imports: [
|
|
57
|
-
CommonModule,
|
|
58
|
-
CommonDynamicModule,
|
|
59
|
-
],
|
|
60
|
-
declarations: [
|
|
61
|
-
OptionComponent,
|
|
62
|
-
OptGroupComponent,
|
|
63
|
-
NgSelectComponent,
|
|
64
|
-
NgSelectValuePipe,
|
|
65
|
-
NgSelectHasValuePipe,
|
|
66
|
-
NgSelectControlValueAccessor,
|
|
67
|
-
BasicNormalStateComponent,
|
|
68
|
-
NoLiveSearchComponent,
|
|
69
|
-
BasicLiveSearchComponent,
|
|
70
|
-
BasicPopupComponent,
|
|
71
|
-
NoPositionerComponent,
|
|
72
|
-
DefaultPositionerComponent,
|
|
73
|
-
BasicKeyboardHandlerComponent,
|
|
74
|
-
BasicValueHandlerComponent,
|
|
75
|
-
NgSelectAbsoluteDirective,
|
|
76
|
-
NgSelectPlaceholderDirective
|
|
77
|
-
],
|
|
78
|
-
exports: [
|
|
79
|
-
OptionComponent,
|
|
80
|
-
OptGroupComponent,
|
|
81
|
-
NgSelectComponent,
|
|
82
|
-
NgSelectValuePipe,
|
|
83
|
-
NgSelectHasValuePipe,
|
|
84
|
-
NgSelectControlValueAccessor,
|
|
85
|
-
NgSelectAbsoluteDirective,
|
|
86
|
-
NgSelectPlaceholderDirective
|
|
87
|
-
]
|
|
88
|
-
}]
|
|
89
|
-
}] });
|
|
90
|
-
//# sourceMappingURL=ngSelect.module.js.map
|
|
@@ -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,51 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { NgSelectEditDirective } from '../directives/ngSelectEdit/ngSelectEdit.directive';
|
|
4
|
-
import { EditNormalStateComponent } from '../plugins/normalState/edit/editNormalState.component';
|
|
5
|
-
import { EditLiveSearchComponent } from '../plugins/liveSearch/edit/editLiveSearch.component';
|
|
6
|
-
import { EditPopupComponent } from '../plugins/popup/edit/editPopup.component';
|
|
7
|
-
import { EditKeyboardHandlerComponent } from '../plugins/keyboardHandler/edit/editKeyboardHandler.component';
|
|
8
|
-
import { NgSelectModule } from './ngSelect.module';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
/**
|
|
11
|
-
* Module for select with editation and tags (jira like select)
|
|
12
|
-
*/
|
|
13
|
-
export class NgSelectEditModule {
|
|
14
|
-
}
|
|
15
|
-
NgSelectEditModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectEditModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
16
|
-
NgSelectEditModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectEditModule, declarations: [NgSelectEditDirective,
|
|
17
|
-
EditNormalStateComponent,
|
|
18
|
-
EditLiveSearchComponent,
|
|
19
|
-
EditPopupComponent,
|
|
20
|
-
EditKeyboardHandlerComponent], imports: [CommonModule,
|
|
21
|
-
NgSelectModule], exports: [NgSelectEditDirective,
|
|
22
|
-
EditNormalStateComponent,
|
|
23
|
-
EditLiveSearchComponent,
|
|
24
|
-
EditPopupComponent,
|
|
25
|
-
EditKeyboardHandlerComponent] });
|
|
26
|
-
NgSelectEditModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectEditModule, imports: [CommonModule,
|
|
27
|
-
NgSelectModule] });
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectEditModule, decorators: [{
|
|
29
|
-
type: NgModule,
|
|
30
|
-
args: [{
|
|
31
|
-
imports: [
|
|
32
|
-
CommonModule,
|
|
33
|
-
NgSelectModule
|
|
34
|
-
],
|
|
35
|
-
declarations: [
|
|
36
|
-
NgSelectEditDirective,
|
|
37
|
-
EditNormalStateComponent,
|
|
38
|
-
EditLiveSearchComponent,
|
|
39
|
-
EditPopupComponent,
|
|
40
|
-
EditKeyboardHandlerComponent
|
|
41
|
-
],
|
|
42
|
-
exports: [
|
|
43
|
-
NgSelectEditDirective,
|
|
44
|
-
EditNormalStateComponent,
|
|
45
|
-
EditLiveSearchComponent,
|
|
46
|
-
EditPopupComponent,
|
|
47
|
-
EditKeyboardHandlerComponent
|
|
48
|
-
]
|
|
49
|
-
}]
|
|
50
|
-
}] });
|
|
51
|
-
//# sourceMappingURL=ngSelectEdit.module.js.map
|
|
@@ -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,23 +0,0 @@
|
|
|
1
|
-
import { Pipe } from '@angular/core';
|
|
2
|
-
import { isBlank } from '@jscrpt/common';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Pipe that checks whether select has currently any option
|
|
6
|
-
*/
|
|
7
|
-
export class NgSelectHasValuePipe {
|
|
8
|
-
//######################### public methods #########################
|
|
9
|
-
/**
|
|
10
|
-
* Transforms selected option into boolean indication if there is option selected
|
|
11
|
-
* @param options - Selected options to be transformed into boolean
|
|
12
|
-
*/
|
|
13
|
-
transform(options) {
|
|
14
|
-
return !(isBlank(options) || (Array.isArray(options) && !options.length));
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
NgSelectHasValuePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectHasValuePipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
18
|
-
NgSelectHasValuePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: NgSelectHasValuePipe, name: "ngSelectHasValue" });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NgSelectHasValuePipe, decorators: [{
|
|
20
|
-
type: Pipe,
|
|
21
|
-
args: [{ name: 'ngSelectHasValue' }]
|
|
22
|
-
}] });
|
|
23
|
-
//# sourceMappingURL=ngSelectHasValue.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 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"basicKeyboardHandler.component.js","sourceRoot":"","sources":["../../../../../src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAY,MAAM,eAAe,CAAC;AAC1G,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,wBAAwB,EAAC,MAAM,UAAU,CAAC;AAGlD,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;;;AAE5D;;;GAGG;AACH,MAAM,cAAc,GACpB,EACC,CAAC;AAEF;;GAEG;AAOH,MAAM,OAAO,6BAA6B;IAsCtC,iEAAiE;IACjE,YAAmE,eAAwC,EAC5E,SAAoB,EAChC,aAAyB,EACc,OAAqC;QAH5B,oBAAe,GAAf,eAAe,CAAyB;QAC5E,cAAS,GAAT,SAAS,CAAW;QAChC,kBAAa,GAAb,aAAa,CAAY;QA0D5C,uEAAuE;QAEvE;;;WAGG;QACO,oBAAe,GAAG,CAAC,KAAoB,EAAE,EAAE;YAEjD,IAAG,KAAK,CAAC,GAAG,IAAI,WAAW,IAAI,KAAK,CAAC,GAAG,IAAI,SAAS,EACrD;gBACI,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACxC,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;gBAEnE,IAAG,YAAY,EACf;oBACI,IAAI,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC;oBACxD,YAAY,CAAC,MAAM,GAAG,KAAK,CAAC;oBAE5B,kBAAkB;oBA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6BAA6B,kBAuClB,0BAA0B,gGAG1B,wBAAwB;8GA1CnC,6BAA6B,iEAH5B,EAAE;2FAGH,6BAA6B;kBANzC,SAAS;mBACV;oBACI,QAAQ,EAAE,2BAA2B;oBACrC,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAwCgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,wBAAwB;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy} from '@angular/core';\nimport {extend} from '@jscrpt/common';\n\nimport {BasicKeyboardHandlerOptions, BasicKeyboardHandler} from './basicKeyboardHandler.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {KEYBOARD_HANDLER_OPTIONS} from '../types';\nimport {ɵNgSelectOption} from '../../../components/option';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for keyboard handler\n * @internal\n */\nconst defaultOptions: BasicKeyboardHandlerOptions =\n{\n};\n\n/**\n * Component used for obtaining basic keyboard handler html element\n */\n@Component(\n{\n selector: 'ng-basic-keyboard-handler',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicKeyboardHandlerComponent implements BasicKeyboardHandler, NgSelectPlugin<BasicKeyboardHandlerOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: BasicKeyboardHandlerOptions;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n //######################### protected properties #########################\n\n /**\n * Gets currently available options\n */\n protected get availableOptions(): ɵNgSelectOption[]\n {\n return this.pluginBus.selectOptions.optionsGatherer.availableOptions;\n }\n\n //######################### public properties - implementation of BasicKeyboardHandler #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): BasicKeyboardHandlerOptions\n {\n return this._options;\n }\n public set options(options: BasicKeyboardHandlerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n @Inject(KEYBOARD_HANDLER_OPTIONS) @Optional() options?: BasicKeyboardHandlerOptions)\n {\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n if(this.pluginBus.selectElement)\n {\n this.pluginBus.selectElement.nativeElement.removeEventListener('keydown', this._handleKeyboard);\n }\n }\n\n //######################### public methods - implementation of BasicKeyboardHandler #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this.pluginBus.selectElement)\n {\n this.pluginBus.selectElement.nativeElement.addEventListener('keydown', this._handleKeyboard);\n }\n\n const popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._popup = null;\n }\n \n if(!this._popup)\n {\n this._popup = popup;\n }\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Handles keyboard event\n * @param event - Keyboard event that occured\n */\n protected _handleKeyboard = (event: KeyboardEvent) =>\n {\n if(event.key == 'ArrowDown' || event.key == 'ArrowUp')\n {\n this.pluginBus.showHidePopup.emit(true);\n const activeOption = this.availableOptions.find(itm => itm.active);\n\n if(activeOption)\n {\n let index = this.availableOptions.indexOf(activeOption);\n activeOption.active = false;\n\n //move down cursor\n if(event.key == 'ArrowDown')\n {\n index += 1;\n }\n //move up cursor\n else\n {\n index -= 1;\n }\n\n if(index < 0)\n {\n index = this.availableOptions.length - 1;\n }\n\n index = index % this.availableOptions.length;\n\n this.availableOptions[index].active = true;\n }\n //none active before\n else if(this.availableOptions.length)\n {\n this.availableOptions[0].active = true;\n }\n\n this._popup.invalidateVisuals();\n event.preventDefault();\n }\n\n //prevent enter if popup is opened\n if(event.key == 'Enter' && this._popup.popupElement)\n {\n const activeOption = this.availableOptions.find(itm => itm.active);\n\n if(activeOption)\n {\n this.pluginBus.optionSelect.emit(activeOption);\n }\n\n event.preventDefault();\n }\n\n if(event.key == 'Tab' || event.key == 'Escape')\n {\n this.pluginBus.showHidePopup.emit(false);\n }\n }\n}"]}
|
|
@@ -1,196 +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 { VALUE_HANDLER } from '../../valueHandler/types';
|
|
8
|
-
import { LIVE_SEARCH } from '../../liveSearch/types';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
11
|
-
/**
|
|
12
|
-
* Default options for keyboard handler
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
const defaultOptions = {};
|
|
16
|
-
/**
|
|
17
|
-
* Component used for obtaining edit keyboard handler html element
|
|
18
|
-
*/
|
|
19
|
-
export class EditKeyboardHandlerComponent {
|
|
20
|
-
//######################### constructor #########################
|
|
21
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, options) {
|
|
22
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
23
|
-
this.pluginBus = pluginBus;
|
|
24
|
-
this.pluginElement = pluginElement;
|
|
25
|
-
//######################### protected methods #########################
|
|
26
|
-
/**
|
|
27
|
-
* Handles keyboard event
|
|
28
|
-
* @param event - Keyboard event that occured
|
|
29
|
-
*/
|
|
30
|
-
this._handleKeyboard = (event) => {
|
|
31
|
-
if (event.key == 'ArrowDown' || event.key == 'ArrowUp') {
|
|
32
|
-
this.pluginBus.showHidePopup.emit(true);
|
|
33
|
-
const activeOption = this.availableOptions.find(itm => itm.active);
|
|
34
|
-
//update active option
|
|
35
|
-
if (activeOption) {
|
|
36
|
-
let index = this.availableOptions.indexOf(activeOption);
|
|
37
|
-
activeOption.active = false;
|
|
38
|
-
//move down cursor
|
|
39
|
-
if (event.key == 'ArrowDown') {
|
|
40
|
-
index += 1;
|
|
41
|
-
}
|
|
42
|
-
//move up cursor
|
|
43
|
-
else {
|
|
44
|
-
index -= 1;
|
|
45
|
-
}
|
|
46
|
-
if (index < 0) {
|
|
47
|
-
index = this.availableOptions.length - 1;
|
|
48
|
-
}
|
|
49
|
-
//first if oveflow
|
|
50
|
-
index = index % this.availableOptions.length;
|
|
51
|
-
this.availableOptions[index].active = true;
|
|
52
|
-
}
|
|
53
|
-
//none active before
|
|
54
|
-
else if (this.availableOptions.length) {
|
|
55
|
-
this.availableOptions[0].active = true;
|
|
56
|
-
}
|
|
57
|
-
this._popup.invalidateVisuals();
|
|
58
|
-
event.preventDefault();
|
|
59
|
-
}
|
|
60
|
-
//prevent enter if popup is opened and select option
|
|
61
|
-
if (event.key == 'Enter' && this._popup.popupElement) {
|
|
62
|
-
const activeOption = this.availableOptions.find(itm => itm.active);
|
|
63
|
-
if (activeOption) {
|
|
64
|
-
this.pluginBus.optionSelect.emit(activeOption);
|
|
65
|
-
}
|
|
66
|
-
//add non existing
|
|
67
|
-
else if (this.pluginBus.selectOptions.useNonExistingAsValue) {
|
|
68
|
-
this.pluginBus.optionSelect.emit({
|
|
69
|
-
text: this._liveSearch.searchValue,
|
|
70
|
-
value: this._liveSearch.searchValue,
|
|
71
|
-
selected: true
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
event.preventDefault();
|
|
75
|
-
}
|
|
76
|
-
//select if active if popup is opened
|
|
77
|
-
if (event.key == 'Tab' && this._popup.popupElement) {
|
|
78
|
-
const active = this.availableOptions.find(itm => itm.active);
|
|
79
|
-
if (active) {
|
|
80
|
-
this.pluginBus.optionSelect.emit(active);
|
|
81
|
-
}
|
|
82
|
-
//add non existing
|
|
83
|
-
else if (this.pluginBus.selectOptions.useNonExistingAsValue) {
|
|
84
|
-
this.pluginBus.optionSelect.emit({
|
|
85
|
-
text: this._liveSearch.searchValue,
|
|
86
|
-
value: this._liveSearch.searchValue,
|
|
87
|
-
selected: true
|
|
88
|
-
});
|
|
89
|
-
}
|
|
90
|
-
this.pluginBus.showHidePopup.emit(false);
|
|
91
|
-
this.pluginBus.updateDisplayedValue.emit();
|
|
92
|
-
}
|
|
93
|
-
//cancel event if multi and empty
|
|
94
|
-
if (event.key == 'Backspace' && this.pluginBus.selectOptions.multiple && !this._liveSearch.searchValue) {
|
|
95
|
-
const options = this._valueHandler.selectedOptions;
|
|
96
|
-
if (options && Array.isArray(options) && options.length) {
|
|
97
|
-
this.pluginBus.optionCancel.emit(options[options.length - 1]);
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
//close on esc
|
|
101
|
-
if (event.key == 'Escape') {
|
|
102
|
-
this.pluginBus.showHidePopup.emit(false);
|
|
103
|
-
}
|
|
104
|
-
};
|
|
105
|
-
this._options = extend(true, {}, defaultOptions, options);
|
|
106
|
-
}
|
|
107
|
-
//######################### protected properties #########################
|
|
108
|
-
/**
|
|
109
|
-
* Gets currently available options
|
|
110
|
-
*/
|
|
111
|
-
get availableOptions() {
|
|
112
|
-
return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
|
|
113
|
-
}
|
|
114
|
-
//######################### public properties - implementation of EditKeyboardHandler #########################
|
|
115
|
-
/**
|
|
116
|
-
* Options for NgSelect plugin
|
|
117
|
-
*/
|
|
118
|
-
get options() {
|
|
119
|
-
return this._options;
|
|
120
|
-
}
|
|
121
|
-
set options(options) {
|
|
122
|
-
this._options = extend(true, this._options, options);
|
|
123
|
-
}
|
|
124
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
125
|
-
/**
|
|
126
|
-
* Called when component is destroyed
|
|
127
|
-
*/
|
|
128
|
-
ngOnDestroy() {
|
|
129
|
-
if (this.pluginBus.selectElement) {
|
|
130
|
-
this.pluginBus.selectElement.nativeElement.removeEventListener('keydown', this._handleKeyboard);
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
//######################### public methods - implementation of EditKeyboardHandler #########################
|
|
134
|
-
/**
|
|
135
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
136
|
-
*/
|
|
137
|
-
initialize() {
|
|
138
|
-
if (this.pluginBus.selectElement) {
|
|
139
|
-
this.pluginBus.selectElement.nativeElement.addEventListener('keydown', this._handleKeyboard);
|
|
140
|
-
}
|
|
141
|
-
const popup = this.ngSelectPlugins[POPUP];
|
|
142
|
-
if (this._popup && this._popup != popup) {
|
|
143
|
-
this._popup = null;
|
|
144
|
-
}
|
|
145
|
-
if (!this._popup) {
|
|
146
|
-
this._popup = popup;
|
|
147
|
-
}
|
|
148
|
-
const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
149
|
-
if (this._valueHandler && this._valueHandler != valueHandler) {
|
|
150
|
-
this._valueHandler = null;
|
|
151
|
-
}
|
|
152
|
-
if (!this._valueHandler) {
|
|
153
|
-
this._valueHandler = valueHandler;
|
|
154
|
-
}
|
|
155
|
-
const liveSearch = this.ngSelectPlugins[LIVE_SEARCH];
|
|
156
|
-
if (this._liveSearch && this._liveSearch != liveSearch) {
|
|
157
|
-
this._liveSearch = null;
|
|
158
|
-
}
|
|
159
|
-
if (!this._liveSearch) {
|
|
160
|
-
this._liveSearch = liveSearch;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
165
|
-
*/
|
|
166
|
-
initOptions() {
|
|
167
|
-
}
|
|
168
|
-
/**
|
|
169
|
-
* Explicitly runs invalidation of content (change detection)
|
|
170
|
-
*/
|
|
171
|
-
invalidateVisuals() {
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
EditKeyboardHandlerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EditKeyboardHandlerComponent, 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 });
|
|
175
|
-
EditKeyboardHandlerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: EditKeyboardHandlerComponent, selector: "ng-edit-keyboard-handler", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EditKeyboardHandlerComponent, decorators: [{
|
|
177
|
-
type: Component,
|
|
178
|
-
args: [{
|
|
179
|
-
selector: 'ng-edit-keyboard-handler',
|
|
180
|
-
template: '',
|
|
181
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
182
|
-
}]
|
|
183
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
184
|
-
type: Inject,
|
|
185
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
186
|
-
}, {
|
|
187
|
-
type: Optional
|
|
188
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
189
|
-
type: Optional
|
|
190
|
-
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
191
|
-
type: Inject,
|
|
192
|
-
args: [KEYBOARD_HANDLER_OPTIONS]
|
|
193
|
-
}, {
|
|
194
|
-
type: Optional
|
|
195
|
-
}] }]; } });
|
|
196
|
-
//# sourceMappingURL=editKeyboardHandler.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editKeyboardHandler.component.js","sourceRoot":"","sources":["../../../../../src/plugins/keyboardHandler/edit/editKeyboardHandler.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAY,MAAM,eAAe,CAAC;AAC1G,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,wBAAwB,EAAC,MAAM,UAAU,CAAC;AAGlD,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAE5D,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAC;;;AAEnD;;;GAGG;AACH,MAAM,cAAc,GACpB,EACC,CAAC;AAEF;;GAEG;AAOH,MAAM,OAAO,4BAA4B;IAgDrC,iEAAiE;IACjE,YAAmE,eAAwC,EAC5E,SAAoB,EAChC,aAAyB,EACc,OAAoC;QAH3B,oBAAe,GAAf,eAAe,CAAyB;QAC5E,cAAS,GAAT,SAAS,CAAW;QAChC,kBAAa,GAAb,aAAa,CAAY;QAkF5C,uEAAuE;QAEvE;;;WAGG;QACO,oBAAe,GAAG,CAAC,KAAoB,EAAE,EAAE;YAEjD,IAAG,KAAK,CAAC,GAAG,IAAI,WAAW,IAAI,KAAK,CAAC,GAAG,IAAI,SAAS,EACrD;gBACI,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACxC,MAAM,YAA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EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAkDgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,wBAAwB;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy} from '@angular/core';\nimport {extend} from '@jscrpt/common';\n\nimport {EditKeyboardHandlerOptions, EditKeyboardHandler} from './editKeyboardHandler.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {KEYBOARD_HANDLER_OPTIONS} from '../types';\nimport {ɵNgSelectOption} from '../../../components/option';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {ValueHandler} from '../../valueHandler';\nimport {VALUE_HANDLER} from '../../valueHandler/types';\nimport {LiveSearch} from '../../liveSearch';\nimport {LIVE_SEARCH} from '../../liveSearch/types';\n\n/**\n * Default options for keyboard handler\n * @internal\n */\nconst defaultOptions: EditKeyboardHandlerOptions =\n{\n};\n\n/**\n * Component used for obtaining edit keyboard handler html element\n */\n@Component(\n{\n selector: 'ng-edit-keyboard-handler',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EditKeyboardHandlerComponent implements EditKeyboardHandler, NgSelectPlugin<EditKeyboardHandlerOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: EditKeyboardHandlerOptions;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n /**\n * Value handler used for hanling current value\n */\n protected _valueHandler: ValueHandler;\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n //######################### protected properties #########################\n\n /**\n * Gets currently available options\n */\n protected get availableOptions(): ɵNgSelectOption[]\n {\n return this.pluginBus.selectOptions.optionsGatherer.availableOptions;\n }\n\n //######################### public properties - implementation of EditKeyboardHandler #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): EditKeyboardHandlerOptions\n {\n return this._options;\n }\n public set options(options: EditKeyboardHandlerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n @Inject(KEYBOARD_HANDLER_OPTIONS) @Optional() options?: EditKeyboardHandlerOptions)\n {\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n if(this.pluginBus.selectElement)\n {\n this.pluginBus.selectElement.nativeElement.removeEventListener('keydown', this._handleKeyboard);\n }\n }\n\n //######################### public methods - implementation of EditKeyboardHandler #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this.pluginBus.selectElement)\n {\n this.pluginBus.selectElement.nativeElement.addEventListener('keydown', this._handleKeyboard);\n }\n\n const popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._popup = null;\n }\n \n if(!this._popup)\n {\n this._popup = popup;\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueHandler = null;\n }\n \n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n }\n\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._liveSearch = null;\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n }\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Handles keyboard event\n * @param event - Keyboard event that occured\n */\n protected _handleKeyboard = (event: KeyboardEvent) =>\n {\n if(event.key == 'ArrowDown' || event.key == 'ArrowUp')\n {\n this.pluginBus.showHidePopup.emit(true);\n const activeOption = this.availableOptions.find(itm => itm.active);\n\n //update active option\n if(activeOption)\n {\n let index = this.availableOptions.indexOf(activeOption);\n activeOption.active = false;\n\n //move down cursor\n if(event.key == 'ArrowDown')\n {\n index += 1;\n }\n //move up cursor\n else\n {\n index -= 1;\n }\n\n if(index < 0)\n {\n index = this.availableOptions.length - 1;\n }\n\n //first if oveflow\n index = index % this.availableOptions.length;\n\n this.availableOptions[index].active = true;\n }\n //none active before\n else if(this.availableOptions.length)\n {\n this.availableOptions[0].active = true;\n }\n\n this._popup.invalidateVisuals();\n event.preventDefault();\n }\n\n //prevent enter if popup is opened and select option\n if(event.key == 'Enter' && this._popup.popupElement)\n {\n const activeOption = this.availableOptions.find(itm => itm.active);\n \n if(activeOption)\n {\n this.pluginBus.optionSelect.emit(activeOption);\n }\n //add non existing\n else if(this.pluginBus.selectOptions.useNonExistingAsValue)\n {\n this.pluginBus.optionSelect.emit(\n <ɵNgSelectOption>\n {\n text: this._liveSearch.searchValue,\n value: this._liveSearch.searchValue,\n selected: true\n });\n }\n\n event.preventDefault();\n }\n\n //select if active if popup is opened\n if(event.key == 'Tab' && this._popup.popupElement)\n {\n const active = this.availableOptions.find(itm => itm.active);\n \n if(active)\n {\n this.pluginBus.optionSelect.emit(active);\n }\n //add non existing\n else if(this.pluginBus.selectOptions.useNonExistingAsValue)\n {\n this.pluginBus.optionSelect.emit(\n <ɵNgSelectOption>\n {\n text: this._liveSearch.searchValue,\n value: this._liveSearch.searchValue,\n selected: true\n });\n }\n\n this.pluginBus.showHidePopup.emit(false);\n this.pluginBus.updateDisplayedValue.emit();\n }\n\n //cancel event if multi and empty\n if(event.key == 'Backspace' && this.pluginBus.selectOptions.multiple && !this._liveSearch.searchValue)\n {\n const options = this._valueHandler.selectedOptions;\n\n if(options && Array.isArray(options) && options.length)\n {\n this.pluginBus.optionCancel.emit(options[options.length - 1]);\n }\n }\n\n //close on esc\n if(event.key == 'Escape')\n {\n this.pluginBus.showHidePopup.emit(false);\n }\n }\n}"]}
|