@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,169 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, ViewChild, EventEmitter } from '@angular/core';
|
|
2
|
-
import { STRING_LOCALIZATION } from '@anglr/common';
|
|
3
|
-
import { extend } from '@jscrpt/common';
|
|
4
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
5
|
-
import { LIVE_SEARCH_OPTIONS } from '../types';
|
|
6
|
-
import { POPUP } from '../../popup/types';
|
|
7
|
-
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
8
|
-
import * as i0 from "@angular/core";
|
|
9
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
10
|
-
import * as i2 from "@angular/common";
|
|
11
|
-
/**
|
|
12
|
-
* Default options for live search
|
|
13
|
-
* @internal
|
|
14
|
-
*/
|
|
15
|
-
const defaultOptions = {
|
|
16
|
-
cssClasses: {
|
|
17
|
-
wrapperDiv: 'wrapper-div',
|
|
18
|
-
input: 'form-control'
|
|
19
|
-
},
|
|
20
|
-
texts: {
|
|
21
|
-
inputPlaceholder: 'Filter options'
|
|
22
|
-
},
|
|
23
|
-
keepSearchValue: false
|
|
24
|
-
};
|
|
25
|
-
/**
|
|
26
|
-
* Component used for obtaining basic live search html element
|
|
27
|
-
*/
|
|
28
|
-
export class BasicLiveSearchComponent {
|
|
29
|
-
//######################### constructor #########################
|
|
30
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _stringLocalization, options) {
|
|
31
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
32
|
-
this.pluginBus = pluginBus;
|
|
33
|
-
this.pluginElement = pluginElement;
|
|
34
|
-
this._changeDetector = _changeDetector;
|
|
35
|
-
this._stringLocalization = _stringLocalization;
|
|
36
|
-
/**
|
|
37
|
-
* Current value of live search
|
|
38
|
-
*/
|
|
39
|
-
this.searchValue = null;
|
|
40
|
-
/**
|
|
41
|
-
* Occurs when current value of live search changes
|
|
42
|
-
*/
|
|
43
|
-
this.searchValueChange = new EventEmitter();
|
|
44
|
-
//######################### public properties - template bindings #########################
|
|
45
|
-
/**
|
|
46
|
-
* Object containing available texts
|
|
47
|
-
* @internal
|
|
48
|
-
*/
|
|
49
|
-
this.texts = {};
|
|
50
|
-
this._options = extend(true, {}, defaultOptions, options);
|
|
51
|
-
}
|
|
52
|
-
//######################### public properties - implementation of BasicLiveSearch #########################
|
|
53
|
-
/**
|
|
54
|
-
* Options for NgSelect plugin
|
|
55
|
-
*/
|
|
56
|
-
get options() {
|
|
57
|
-
return this._options;
|
|
58
|
-
}
|
|
59
|
-
set options(options) {
|
|
60
|
-
this._options = extend(true, this._options, options);
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* HTML element that represents live search
|
|
64
|
-
*/
|
|
65
|
-
get liveSearchElement() {
|
|
66
|
-
return this.liveSearchElementChild.nativeElement;
|
|
67
|
-
}
|
|
68
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
69
|
-
/**
|
|
70
|
-
* Called when component is destroyed
|
|
71
|
-
*/
|
|
72
|
-
ngOnDestroy() {
|
|
73
|
-
var _a, _b, _c;
|
|
74
|
-
(_a = this._visibilityChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
75
|
-
this._visibilityChangeSubscription = null;
|
|
76
|
-
(_b = this._textsChangedSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
77
|
-
this._textsChangedSubscription = null;
|
|
78
|
-
(_c = this._liveSearchFocusSubscription) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
|
79
|
-
this._liveSearchFocusSubscription = null;
|
|
80
|
-
}
|
|
81
|
-
//######################### public methods - implementation of BasicLiveSearch #########################
|
|
82
|
-
/**
|
|
83
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
84
|
-
*/
|
|
85
|
-
initialize() {
|
|
86
|
-
this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());
|
|
87
|
-
const popup = this.ngSelectPlugins[POPUP];
|
|
88
|
-
if (this._popup && this._popup != popup) {
|
|
89
|
-
this._visibilityChangeSubscription.unsubscribe();
|
|
90
|
-
this._visibilityChangeSubscription = null;
|
|
91
|
-
this._popup = null;
|
|
92
|
-
}
|
|
93
|
-
if (!this._popup) {
|
|
94
|
-
this._popup = popup;
|
|
95
|
-
this._visibilityChangeSubscription = this._popup.visibilityChange.subscribe(() => {
|
|
96
|
-
if (!this.options.keepSearchValue) {
|
|
97
|
-
this.handleInput('');
|
|
98
|
-
this._changeDetector.detectChanges();
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
if (!this._liveSearchFocusSubscription) {
|
|
103
|
-
this._liveSearchFocusSubscription = this.pluginBus.liveSearchFocus.subscribe(() => {
|
|
104
|
-
var _a;
|
|
105
|
-
(_a = this.inputElementChild) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
this._initTexts();
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
112
|
-
*/
|
|
113
|
-
initOptions() {
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Explicitly runs invalidation of content (change detection)
|
|
117
|
-
*/
|
|
118
|
-
invalidateVisuals() {
|
|
119
|
-
this._changeDetector.detectChanges();
|
|
120
|
-
}
|
|
121
|
-
//######################### public methods - template bindings #########################
|
|
122
|
-
/**
|
|
123
|
-
* Handle input value
|
|
124
|
-
* @param value - Value of input
|
|
125
|
-
* @internal
|
|
126
|
-
*/
|
|
127
|
-
handleInput(value) {
|
|
128
|
-
this.searchValue = value;
|
|
129
|
-
this.searchValueChange.emit();
|
|
130
|
-
}
|
|
131
|
-
//######################### protected methods #########################
|
|
132
|
-
/**
|
|
133
|
-
* Initialize texts
|
|
134
|
-
*/
|
|
135
|
-
_initTexts() {
|
|
136
|
-
Object.keys(this.options.texts).forEach((key) => {
|
|
137
|
-
this.texts[key] = this._stringLocalization.get(this.options.texts[key]);
|
|
138
|
-
});
|
|
139
|
-
this._changeDetector.detectChanges();
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
BasicLiveSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicLiveSearchComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: STRING_LOCALIZATION }, { token: LIVE_SEARCH_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
143
|
-
BasicLiveSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: BasicLiveSearchComponent, selector: "ng-basic-live-search", viewQueries: [{ propertyName: "liveSearchElementChild", first: true, predicate: ["liveSearchElement"], descendants: true }, { propertyName: "inputElementChild", first: true, predicate: ["inputElement"], descendants: true }], ngImport: i0, template: "<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement [ngClass]=\"options?.cssClasses?.input\" type=\"text\" (input)=\"handleInput($any($event.target).value)\" [value]=\"searchValue\" placeholder=\"{{texts?.inputPlaceholder}}\">\r\n </div>\r\n</div>", styles: [".wrapper-div\r\n{\r\n padding: 4px;\r\n border-bottom: 1px solid #666;\r\n margin-bottom: 2px;\r\n}\r\n\r\n.form-control\r\n{\r\n width: 100%;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
144
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicLiveSearchComponent, decorators: [{
|
|
145
|
-
type: Component,
|
|
146
|
-
args: [{ selector: 'ng-basic-live-search', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement [ngClass]=\"options?.cssClasses?.input\" type=\"text\" (input)=\"handleInput($any($event.target).value)\" [value]=\"searchValue\" placeholder=\"{{texts?.inputPlaceholder}}\">\r\n </div>\r\n</div>", styles: [".wrapper-div\r\n{\r\n padding: 4px;\r\n border-bottom: 1px solid #666;\r\n margin-bottom: 2px;\r\n}\r\n\r\n.form-control\r\n{\r\n width: 100%;\r\n}"] }]
|
|
147
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
148
|
-
type: Inject,
|
|
149
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
150
|
-
}, {
|
|
151
|
-
type: Optional
|
|
152
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
153
|
-
type: Optional
|
|
154
|
-
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
155
|
-
type: Inject,
|
|
156
|
-
args: [STRING_LOCALIZATION]
|
|
157
|
-
}] }, { type: undefined, decorators: [{
|
|
158
|
-
type: Inject,
|
|
159
|
-
args: [LIVE_SEARCH_OPTIONS]
|
|
160
|
-
}, {
|
|
161
|
-
type: Optional
|
|
162
|
-
}] }]; }, propDecorators: { liveSearchElementChild: [{
|
|
163
|
-
type: ViewChild,
|
|
164
|
-
args: ['liveSearchElement']
|
|
165
|
-
}], inputElementChild: [{
|
|
166
|
-
type: ViewChild,
|
|
167
|
-
args: ['inputElement']
|
|
168
|
-
}] } });
|
|
169
|
-
//# sourceMappingURL=basicLiveSearch.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"basicLiveSearch.component.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/basic/basicLiveSearch.component.ts","../../../../../src/plugins/liveSearch/basic/basicLiveSearch.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AACtJ,OAAO,EAAC,mBAAmB,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAMtC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAE5E,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;;;;AAE5D;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,UAAU,EACV;QACI,UAAU,EAAE,aAAa;QACzB,KAAK,EAAE,cAAc;KACxB;IACD,KAAK,EACL;QACI,gBAAgB,EAAE,gBAAgB;KACrC;IACD,eAAe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I,iBAAiB;QAEpB,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IAED,wFAAwF;IAExF;;;;OAIG;IACI,WAAW,CAAC,KAAa;QAE5B,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,iBAAiB,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;IAED,uEAAuE;IAEvE;;OAEG;IACO,UAAU;QAEhB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE;YAE5C,IAAI,CAAC,KAAK,CAAC,GAA4B,CAAC,GAAG,IAAI,CAAC,mBAAmB,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,GAA4B,CAAC,CAAC,CAAC;QAC9H,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;;qHAvMQ,wBAAwB,kBAsFb,0BAA0B,iIAI1B,mBAAmB,aACnB,mBAAmB;yGA3F9B,wBAAwB,6RC3CrC,qVAIM;2FDuCO,wBAAwB;kBAPpC,SAAS;+BAEI,sBAAsB,mBAGf,uBAAuB,CAAC,MAAM;;0BAwFlC,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAGR,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,mBAAmB;;0BAAG,QAAQ;4CAf3C,sBAAsB;sBAD5B,SAAS;uBAAC,mBAAmB;gBAQvB,iBAAiB;sBADvB,SAAS;uBAAC,cAAc","sourcesContent":["import {Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, ViewChild, EventEmitter, OnDestroy} from '@angular/core';\nimport {STRING_LOCALIZATION, StringLocalization} from '@anglr/common';\nimport {extend} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {BasicLiveSearchOptions, BasicLiveSearch} from './basicLiveSearch.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {LiveSearchTexts} from '../liveSearch.interface';\nimport {LIVE_SEARCH_OPTIONS} from '../types';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for live search\n * @internal\n */\nconst defaultOptions: BasicLiveSearchOptions =\n{\n cssClasses:\n {\n wrapperDiv: 'wrapper-div',\n input: 'form-control'\n },\n texts:\n {\n inputPlaceholder: 'Filter options'\n },\n keepSearchValue: false\n};\n\n/**\n * Component used for obtaining basic live search html element\n */\n@Component(\n{\n selector: 'ng-basic-live-search',\n templateUrl: 'basicLiveSearch.component.html',\n styleUrls: ['basicLiveSearch.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicLiveSearchComponent implements BasicLiveSearch, NgSelectPlugin<BasicLiveSearchOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Popup used in NgSelect\n */\n protected _popup: Popup;\n\n /**\n * Subscription for changes in texts\n */\n protected _textsChangedSubscription: Subscription;\n\n /**\n * Subscription for changes of popup visibility\n */\n protected _visibilityChangeSubscription: Subscription;\n\n /**\n * Subscription for live search focus request\n */\n protected _liveSearchFocusSubscription: Subscription;\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: BasicLiveSearchOptions;\n\n //######################### public properties - implementation of BasicLiveSearch #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): BasicLiveSearchOptions\n {\n return this._options;\n }\n public set options(options: BasicLiveSearchOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * HTML element that represents live search\n */\n public get liveSearchElement(): HTMLElement\n {\n return this.liveSearchElementChild.nativeElement;\n }\n\n /**\n * Current value of live search\n */\n public searchValue: string = null;\n\n /**\n * Occurs when current value of live search changes\n */\n public searchValueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties - template bindings #########################\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: LiveSearchTexts = {};\n\n //######################### public properties - children #########################\n\n /**\n * View child that represents live search element\n * @internal\n */\n @ViewChild('liveSearchElement')\n public liveSearchElementChild: ElementRef<HTMLElement>;\n\n /**\n * View child that represents input element\n * @internal\n */\n @ViewChild('inputElement')\n public inputElementChild: ElementRef<HTMLInputElement>;\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n @Inject(STRING_LOCALIZATION) protected _stringLocalization: StringLocalization,\n @Inject(LIVE_SEARCH_OPTIONS) @Optional() options?: BasicLiveSearchOptions)\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 this._visibilityChangeSubscription?.unsubscribe();\n this._visibilityChangeSubscription = null;\n\n this._textsChangedSubscription?.unsubscribe();\n this._textsChangedSubscription = null;\n\n this._liveSearchFocusSubscription?.unsubscribe();\n this._liveSearchFocusSubscription = null;\n }\n\n //######################### public methods - implementation of BasicLiveSearch #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());\n\n const popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._visibilityChangeSubscription.unsubscribe();\n this._visibilityChangeSubscription = null;\n\n this._popup = null;\n }\n\n if(!this._popup)\n {\n this._popup = popup;\n\n this._visibilityChangeSubscription = this._popup.visibilityChange.subscribe(() =>\n {\n if(!this.options.keepSearchValue)\n {\n this.handleInput('');\n \n this._changeDetector.detectChanges();\n }\n });\n }\n\n if(!this._liveSearchFocusSubscription)\n {\n this._liveSearchFocusSubscription = this.pluginBus.liveSearchFocus.subscribe(() =>\n {\n this.inputElementChild?.nativeElement.focus();\n });\n }\n\n this._initTexts();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Handle input value\n * @param value - Value of input\n * @internal\n */\n public handleInput(value: string)\n {\n this.searchValue = value;\n this.searchValueChange.emit();\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach((key) =>\n {\n this.texts[key as keyof LiveSearchTexts] = this._stringLocalization.get(this.options.texts[key as keyof LiveSearchTexts]);\n });\n\n this._changeDetector.detectChanges();\n }\n}","<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement [ngClass]=\"options?.cssClasses?.input\" type=\"text\" (input)=\"handleInput($any($event.target).value)\" [value]=\"searchValue\" placeholder=\"{{texts?.inputPlaceholder}}\">\r\n </div>\r\n</div>"]}
|
|
@@ -1,318 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, ViewChild, EventEmitter } from '@angular/core';
|
|
2
|
-
import { STRING_LOCALIZATION } from '@anglr/common';
|
|
3
|
-
import { extend, isPresent } from '@jscrpt/common';
|
|
4
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
5
|
-
import { LIVE_SEARCH_OPTIONS } from '../types';
|
|
6
|
-
import { VALUE_HANDLER } from '../../valueHandler/types';
|
|
7
|
-
import { POPUP } from '../../popup/types';
|
|
8
|
-
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
11
|
-
import * as i2 from "@angular/common";
|
|
12
|
-
/**
|
|
13
|
-
* Default options for live search
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
const defaultOptions = {
|
|
17
|
-
cssClasses: {
|
|
18
|
-
wrapperDiv: 'edit-wrapper-div',
|
|
19
|
-
input: 'edit-control'
|
|
20
|
-
},
|
|
21
|
-
texts: {
|
|
22
|
-
inputPlaceholder: 'Select item'
|
|
23
|
-
},
|
|
24
|
-
keepSearchValue: false,
|
|
25
|
-
nonExistingCancel: false,
|
|
26
|
-
emptyCancel: false
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Component used for obtaining edit live search html element
|
|
30
|
-
*/
|
|
31
|
-
export class EditLiveSearchComponent {
|
|
32
|
-
//######################### constructor #########################
|
|
33
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _stringLocalization, options) {
|
|
34
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
35
|
-
this.pluginBus = pluginBus;
|
|
36
|
-
this.pluginElement = pluginElement;
|
|
37
|
-
this._changeDetector = _changeDetector;
|
|
38
|
-
this._stringLocalization = _stringLocalization;
|
|
39
|
-
/**
|
|
40
|
-
* Current value of live search
|
|
41
|
-
*/
|
|
42
|
-
this.searchValue = null;
|
|
43
|
-
/**
|
|
44
|
-
* Occurs when current value of live search changes
|
|
45
|
-
*/
|
|
46
|
-
this.searchValueChange = new EventEmitter();
|
|
47
|
-
//######################### public properties - template bindings #########################
|
|
48
|
-
/**
|
|
49
|
-
* Current value that is displayed
|
|
50
|
-
* @internal
|
|
51
|
-
*/
|
|
52
|
-
this.searchValueDisplayed = null;
|
|
53
|
-
/**
|
|
54
|
-
* Object containing available texts
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
this.texts = {};
|
|
58
|
-
this._options = extend(true, {}, defaultOptions, options);
|
|
59
|
-
}
|
|
60
|
-
//######################### protected properties #########################
|
|
61
|
-
/**
|
|
62
|
-
* Gets currently available options
|
|
63
|
-
*/
|
|
64
|
-
get availableOptions() {
|
|
65
|
-
return this.pluginBus.selectOptions.optionsGatherer.availableOptions;
|
|
66
|
-
}
|
|
67
|
-
//######################### public properties - implementation of EditLiveSearch #########################
|
|
68
|
-
/**
|
|
69
|
-
* Options for NgSelect plugin
|
|
70
|
-
*/
|
|
71
|
-
get options() {
|
|
72
|
-
return this._options;
|
|
73
|
-
}
|
|
74
|
-
set options(options) {
|
|
75
|
-
this._options = extend(true, this._options, options);
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* HTML element that represents live search
|
|
79
|
-
*/
|
|
80
|
-
get liveSearchElement() {
|
|
81
|
-
return this.liveSearchElementChild.nativeElement;
|
|
82
|
-
}
|
|
83
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
84
|
-
/**
|
|
85
|
-
* Called when component is destroyed
|
|
86
|
-
*/
|
|
87
|
-
ngOnDestroy() {
|
|
88
|
-
var _a, _b, _c, _d, _e;
|
|
89
|
-
(_a = this._optionsChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
90
|
-
this._optionsChangeSubscription = null;
|
|
91
|
-
(_b = this._textsChangedSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
92
|
-
this._textsChangedSubscription = null;
|
|
93
|
-
(_c = this._valueChangedSubscription) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
|
94
|
-
this._valueChangedSubscription = null;
|
|
95
|
-
(_d = this._liveSearchFocusSubscription) === null || _d === void 0 ? void 0 : _d.unsubscribe();
|
|
96
|
-
this._liveSearchFocusSubscription = null;
|
|
97
|
-
(_e = this._updateDisplayedValueSubscription) === null || _e === void 0 ? void 0 : _e.unsubscribe();
|
|
98
|
-
this._updateDisplayedValueSubscription = null;
|
|
99
|
-
}
|
|
100
|
-
//######################### public methods - implementation of EditLiveSearch #########################
|
|
101
|
-
/**
|
|
102
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
103
|
-
*/
|
|
104
|
-
initialize() {
|
|
105
|
-
this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());
|
|
106
|
-
if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
|
|
107
|
-
this._optionsChangeSubscription.unsubscribe();
|
|
108
|
-
this._optionsChangeSubscription = null;
|
|
109
|
-
this._optionsGatherer = null;
|
|
110
|
-
}
|
|
111
|
-
if (!this._optionsGatherer) {
|
|
112
|
-
this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;
|
|
113
|
-
this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => {
|
|
114
|
-
//do not change active if active is visible
|
|
115
|
-
if (!this.pluginBus.selectOptions.optionsGatherer.availableOptions.find((option) => option.active)) {
|
|
116
|
-
//only when input is filled at least with one char
|
|
117
|
-
if (this.searchValue) {
|
|
118
|
-
const option = this.pluginBus.selectOptions.optionsGatherer.availableOptions.find(itm => this.pluginBus.selectOptions.liveSearchFilter(this.searchValue, this.pluginBus.selectOptions.normalizer)(itm));
|
|
119
|
-
if (option) {
|
|
120
|
-
this.pluginBus.selectOptions.optionsGatherer.options.forEach((option) => option.active = false);
|
|
121
|
-
option.active = true;
|
|
122
|
-
this._popup.invalidateVisuals();
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
//select first
|
|
126
|
-
else {
|
|
127
|
-
this._activateSelectedOrFirst();
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
}
|
|
132
|
-
const popup = this.ngSelectPlugins[POPUP];
|
|
133
|
-
if (this._popup && this._popup != popup) {
|
|
134
|
-
this._popup = null;
|
|
135
|
-
}
|
|
136
|
-
if (!this._popup) {
|
|
137
|
-
this._popup = popup;
|
|
138
|
-
}
|
|
139
|
-
if (!this._liveSearchFocusSubscription) {
|
|
140
|
-
this._liveSearchFocusSubscription = this.pluginBus.liveSearchFocus.subscribe(() => {
|
|
141
|
-
var _a;
|
|
142
|
-
(_a = this.inputElementChild) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
143
|
-
});
|
|
144
|
-
}
|
|
145
|
-
if (!this._updateDisplayedValueSubscription) {
|
|
146
|
-
this._updateDisplayedValueSubscription = this.pluginBus.updateDisplayedValue.subscribe(() => {
|
|
147
|
-
this.handleBlur();
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
151
|
-
if (this._valueHandler && this._valueHandler != valueHandler) {
|
|
152
|
-
this._valueChangedSubscription.unsubscribe();
|
|
153
|
-
this._valueChangedSubscription = null;
|
|
154
|
-
this._valueHandler = null;
|
|
155
|
-
}
|
|
156
|
-
if (!this._valueHandler) {
|
|
157
|
-
this._valueHandler = valueHandler;
|
|
158
|
-
this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => {
|
|
159
|
-
var _a, _b;
|
|
160
|
-
const selected = this._valueHandler.selectedOptions;
|
|
161
|
-
if (!selected) {
|
|
162
|
-
this.searchValueDisplayed = '';
|
|
163
|
-
this.handleInput('');
|
|
164
|
-
this._changeDetector.detectChanges();
|
|
165
|
-
return;
|
|
166
|
-
}
|
|
167
|
-
//reset filtering of available options
|
|
168
|
-
this.handleInput(null);
|
|
169
|
-
if (Array.isArray(selected)) {
|
|
170
|
-
this.searchValueDisplayed = '';
|
|
171
|
-
(_a = this.inputElementChild) === null || _a === void 0 ? void 0 : _a.nativeElement.focus();
|
|
172
|
-
this._changeDetector.detectChanges();
|
|
173
|
-
}
|
|
174
|
-
else {
|
|
175
|
-
//set selected into live search
|
|
176
|
-
this.searchValueDisplayed = selected.text;
|
|
177
|
-
this._changeDetector.detectChanges();
|
|
178
|
-
//select current text
|
|
179
|
-
(_b = this.inputElementChild) === null || _b === void 0 ? void 0 : _b.nativeElement.select();
|
|
180
|
-
}
|
|
181
|
-
});
|
|
182
|
-
}
|
|
183
|
-
this._initTexts();
|
|
184
|
-
}
|
|
185
|
-
/**
|
|
186
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
187
|
-
*/
|
|
188
|
-
initOptions() {
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* Explicitly runs invalidation of content (change detection)
|
|
192
|
-
*/
|
|
193
|
-
invalidateVisuals() {
|
|
194
|
-
this._changeDetector.detectChanges();
|
|
195
|
-
}
|
|
196
|
-
//######################### public methods - template bindings #########################
|
|
197
|
-
/**
|
|
198
|
-
* Handle input value
|
|
199
|
-
* @param value - Value of input
|
|
200
|
-
* @param inputChange - Indication that change was by input event of input
|
|
201
|
-
* @internal
|
|
202
|
-
*/
|
|
203
|
-
handleInput(value, inputChange = false) {
|
|
204
|
-
this.searchValue = value;
|
|
205
|
-
this.searchValueChange.emit();
|
|
206
|
-
if (inputChange) {
|
|
207
|
-
this.pluginBus.showHidePopup.emit(true);
|
|
208
|
-
this.searchValueDisplayed = value;
|
|
209
|
-
//single value select
|
|
210
|
-
if (!this.pluginBus.selectOptions.multiple) {
|
|
211
|
-
//cancel value
|
|
212
|
-
if (this._options.nonExistingCancel) {
|
|
213
|
-
this._valueHandler.setValue(null);
|
|
214
|
-
}
|
|
215
|
-
//empty string cancels value
|
|
216
|
-
else if (this._options.emptyCancel && isPresent(value) && !value.length) {
|
|
217
|
-
this._valueHandler.setValue(null);
|
|
218
|
-
}
|
|
219
|
-
//otherwise keep last value
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
/**
|
|
224
|
-
* Handles focus event
|
|
225
|
-
* @param element - Element that got focus
|
|
226
|
-
* @param show - Indication whether show popup
|
|
227
|
-
* @internal
|
|
228
|
-
*/
|
|
229
|
-
handleFocus(element, show = false) {
|
|
230
|
-
element.select();
|
|
231
|
-
this._activateSelectedOrFirst();
|
|
232
|
-
if (show) {
|
|
233
|
-
this.pluginBus.showHidePopup.emit(true);
|
|
234
|
-
}
|
|
235
|
-
this.pluginBus.focus.emit();
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Handles blur of live search
|
|
239
|
-
*/
|
|
240
|
-
handleBlur() {
|
|
241
|
-
//not multiple and selected value
|
|
242
|
-
if (!this.pluginBus.selectOptions.multiple) {
|
|
243
|
-
//use selected text
|
|
244
|
-
if (this._valueHandler.selectedOptions && !Array.isArray(this._valueHandler.selectedOptions)) {
|
|
245
|
-
this.searchValueDisplayed = this._valueHandler.selectedOptions.text;
|
|
246
|
-
}
|
|
247
|
-
//reset text
|
|
248
|
-
else {
|
|
249
|
-
this.searchValueDisplayed = '';
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
//reset text
|
|
253
|
-
else {
|
|
254
|
-
this.searchValueDisplayed = '';
|
|
255
|
-
}
|
|
256
|
-
//reset available options
|
|
257
|
-
this.searchValue = null;
|
|
258
|
-
this.searchValueChange.emit();
|
|
259
|
-
this._changeDetector.detectChanges();
|
|
260
|
-
}
|
|
261
|
-
//######################### protected methods #########################
|
|
262
|
-
/**
|
|
263
|
-
* Initialize texts
|
|
264
|
-
*/
|
|
265
|
-
_initTexts() {
|
|
266
|
-
Object.keys(this.options.texts).forEach(key => {
|
|
267
|
-
this.texts[key] = this._stringLocalization.get(this.options.texts[key]);
|
|
268
|
-
});
|
|
269
|
-
this._changeDetector.detectChanges();
|
|
270
|
-
}
|
|
271
|
-
/**
|
|
272
|
-
* Activates first available option or selected option
|
|
273
|
-
*/
|
|
274
|
-
_activateSelectedOrFirst() {
|
|
275
|
-
const activeOption = this.availableOptions.find(itm => itm.active);
|
|
276
|
-
const selectedOptions = this.availableOptions.filter(itm => itm.selected);
|
|
277
|
-
//nothing active, nothing selected
|
|
278
|
-
if (!activeOption && !selectedOptions.length) {
|
|
279
|
-
const first = this.availableOptions[0];
|
|
280
|
-
if (first) {
|
|
281
|
-
first.active = true;
|
|
282
|
-
}
|
|
283
|
-
}
|
|
284
|
-
//nothing active
|
|
285
|
-
else if (!activeOption) {
|
|
286
|
-
//last selected as sactive
|
|
287
|
-
selectedOptions[selectedOptions.length - 1].active = true;
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
}
|
|
291
|
-
EditLiveSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EditLiveSearchComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: STRING_LOCALIZATION }, { token: LIVE_SEARCH_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
292
|
-
EditLiveSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: EditLiveSearchComponent, selector: "ng-edit-live-search", viewQueries: [{ propertyName: "liveSearchElementChild", first: true, predicate: ["liveSearchElement"], descendants: true }, { propertyName: "inputElementChild", first: true, predicate: ["inputElement"], descendants: true }], ngImport: i0, template: "<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>", styles: [".edit-wrapper-div\r\n{\r\n width: 100%;\r\n}\r\n\r\n.edit-control\r\n{\r\n padding: 4px;\r\n height: 26px;\r\n width: 100%;\r\n border: none;\r\n outline: none;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
293
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EditLiveSearchComponent, decorators: [{
|
|
294
|
-
type: Component,
|
|
295
|
-
args: [{ selector: 'ng-edit-live-search', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>", styles: [".edit-wrapper-div\r\n{\r\n width: 100%;\r\n}\r\n\r\n.edit-control\r\n{\r\n padding: 4px;\r\n height: 26px;\r\n width: 100%;\r\n border: none;\r\n outline: none;\r\n}"] }]
|
|
296
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
297
|
-
type: Inject,
|
|
298
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
299
|
-
}, {
|
|
300
|
-
type: Optional
|
|
301
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
302
|
-
type: Optional
|
|
303
|
-
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
304
|
-
type: Inject,
|
|
305
|
-
args: [STRING_LOCALIZATION]
|
|
306
|
-
}] }, { type: undefined, decorators: [{
|
|
307
|
-
type: Inject,
|
|
308
|
-
args: [LIVE_SEARCH_OPTIONS]
|
|
309
|
-
}, {
|
|
310
|
-
type: Optional
|
|
311
|
-
}] }]; }, propDecorators: { liveSearchElementChild: [{
|
|
312
|
-
type: ViewChild,
|
|
313
|
-
args: ['liveSearchElement']
|
|
314
|
-
}], inputElementChild: [{
|
|
315
|
-
type: ViewChild,
|
|
316
|
-
args: ['inputElement']
|
|
317
|
-
}] } });
|
|
318
|
-
//# sourceMappingURL=editLiveSearch.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editLiveSearch.component.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/edit/editLiveSearch.component.ts","../../../../../src/plugins/liveSearch/edit/editLiveSearch.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,iBAAiB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AACtJ,OAAO,EAAC,mBAAmB,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,MAAM,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAMjD,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,mBAAmB,EAAC,MAAM,UAAU,CAAC;AAE7C,OAAO,EAAC,aAAa,EAAC,MAAM,0BAA0B,CAAC;AAEvD,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AAExC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;;;;AAG5D;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,UAAU,EACV;QACI,UAAU,EAAE,kBAAkB;QAC9B,KAAK,EAAE,cAAc;KACxB;IACD,KAAK,EACL;QACI,gBAAgB,EAAE,aAAa;KAElC;IACD,eAAe,EAAE,KAAK;IACtB,iBAAiB,EAAE,KAAK;IACxB,WAAW,EAAE,KAAK;CACrB,CAAC;AAEF;;GAEG;AAQH,MAAM,OAAO,uBAAuB;IAyHhC,iEAAiE;IACjE,YAAmE,eAAwC,EAC5E,SAAoB,EAChC,aAAyB,EACtB,eAAkC,EACL,mBAAuC,EACrC,OAA+B;QALjB,oBAAe,GAAf,eAAe,CAAyB;QAC5E,cAAS,GAAT,SAAS,CAAW;QAChC,kBAAa,GAAb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I,CAAC,gBAAgB,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;QAE1E,kCAAkC;QAClC,IAAG,CAAC,YAAY,IAAI,CAAC,eAAe,CAAC,MAAM,EAC3C;YACI,MAAM,KAAK,GAAG,IAAI,CAAC,gBAAgB,CAAC,CAAC,CAAC,CAAC;YAEvC,IAAG,KAAK,EACR;gBACI,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC;aACvB;SACJ;QACD,gBAAgB;aACX,IAAG,CAAC,YAAY,EACrB;YACI,0BAA0B;YAC1B,eAAe,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC;SAC7D;IACL,CAAC;;oHAtaQ,uBAAuB,kBA0HZ,0BAA0B,iIAI1B,mBAAmB,aACnB,mBAAmB;wGA/H9B,uBAAuB,4RCjDpC,qoBAYM;2FDqCO,uBAAuB;kBAPnC,SAAS;+BAEI,qBAAqB,mBAGd,uBAAuB,CAAC,MAAM;;0BA4HlC,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAGR,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,mBAAmB;;0BAAG,QAAQ;4CAf3C,sBAAsB;sBAD5B,SAAS;uBAAC,mBAAmB;gBAQvB,iBAAiB;sBADvB,SAAS;uBAAC,cAAc","sourcesContent":["import {Component, ChangeDetectionStrategy, ChangeDetectorRef, Inject, Optional, ElementRef, ViewChild, EventEmitter, OnDestroy} from '@angular/core';\nimport {STRING_LOCALIZATION, StringLocalization} from '@anglr/common';\nimport {extend, isPresent} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {EditLiveSearchOptions, EditLiveSearch} from './editLiveSearch.interface';\nimport {NgSelectPlugin, OptionsGatherer} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {LIVE_SEARCH_OPTIONS} from '../types';\nimport {ValueHandler} from '../../valueHandler';\nimport {VALUE_HANDLER} from '../../valueHandler/types';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {ɵNgSelectOption} from '../../../components/option';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {LiveSearchTexts} from '../liveSearch.interface';\n\n/**\n * Default options for live search\n * @internal\n */\nconst defaultOptions: EditLiveSearchOptions =\n{\n cssClasses:\n {\n wrapperDiv: 'edit-wrapper-div',\n input: 'edit-control'\n },\n texts:\n {\n inputPlaceholder: 'Select item'\n\n },\n keepSearchValue: false,\n nonExistingCancel: false,\n emptyCancel: false\n};\n\n/**\n * Component used for obtaining edit live search html element\n */\n@Component(\n{\n selector: 'ng-edit-live-search',\n templateUrl: 'editLiveSearch.component.html',\n styleUrls: ['editLiveSearch.component.css'],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EditLiveSearchComponent implements EditLiveSearch, NgSelectPlugin<EditLiveSearchOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Popup plugin used within `NgSelect`\n */\n protected _popup: Popup;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Subscription for changes in texts\n */\n protected _textsChangedSubscription: Subscription;\n\n /**\n * Subscription for changes of selected value\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Subscription for live search focus request\n */\n protected _liveSearchFocusSubscription: Subscription;\n\n /**\n * Subscription for update displayed value request\n */\n protected _updateDisplayedValueSubscription: Subscription;\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: EditLiveSearchOptions;\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 EditLiveSearch #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): EditLiveSearchOptions\n {\n return this._options;\n }\n public set options(options: EditLiveSearchOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * HTML element that represents live search\n */\n public get liveSearchElement(): HTMLElement\n {\n return this.liveSearchElementChild.nativeElement;\n }\n\n /**\n * Current value of live search\n */\n public searchValue: string = null;\n\n /**\n * Occurs when current value of live search changes\n */\n public searchValueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties - template bindings #########################\n\n /**\n * Current value that is displayed\n * @internal\n */\n public searchValueDisplayed: string = null;\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: LiveSearchTexts = {};\n\n //######################### public properties - children #########################\n\n /**\n * View child that represents live search element\n * @internal\n */\n @ViewChild('liveSearchElement')\n public liveSearchElementChild: ElementRef<HTMLElement>;\n\n /**\n * View child that represents input element\n * @internal\n */\n @ViewChild('inputElement')\n public inputElementChild: ElementRef<HTMLInputElement>;\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n @Inject(STRING_LOCALIZATION) protected _stringLocalization: StringLocalization,\n @Inject(LIVE_SEARCH_OPTIONS) @Optional() options?: EditLiveSearchOptions)\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 this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._textsChangedSubscription?.unsubscribe();\n this._textsChangedSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._liveSearchFocusSubscription?.unsubscribe();\n this._liveSearchFocusSubscription = null;\n\n this._updateDisplayedValueSubscription?.unsubscribe();\n this._updateDisplayedValueSubscription = null;\n }\n\n //######################### public methods - implementation of EditLiveSearch #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());\n\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() =>\n {\n //do not change active if active is visible\n if(!this.pluginBus.selectOptions.optionsGatherer.availableOptions.find((option: ɵNgSelectOption) => option.active))\n {\n //only when input is filled at least with one char\n if(this.searchValue)\n {\n const option: ɵNgSelectOption = this.pluginBus.selectOptions.optionsGatherer.availableOptions.find(itm => this.pluginBus.selectOptions.liveSearchFilter(this.searchValue, this.pluginBus.selectOptions.normalizer)(itm));\n \n if(option)\n {\n this.pluginBus.selectOptions.optionsGatherer.options.forEach((option: ɵNgSelectOption) => option.active = false);\n option.active = true;\n this._popup.invalidateVisuals();\n }\n }\n //select first\n else\n {\n this._activateSelectedOrFirst();\n }\n }\n });\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 if(!this._liveSearchFocusSubscription)\n {\n this._liveSearchFocusSubscription = this.pluginBus.liveSearchFocus.subscribe(() =>\n {\n this.inputElementChild?.nativeElement.focus();\n });\n }\n\n if(!this._updateDisplayedValueSubscription)\n {\n this._updateDisplayedValueSubscription = this.pluginBus.updateDisplayedValue.subscribe(() =>\n {\n this.handleBlur();\n });\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() =>\n {\n const selected = this._valueHandler.selectedOptions;\n\n if(!selected)\n {\n this.searchValueDisplayed = '';\n this.handleInput('');\n this._changeDetector.detectChanges();\n\n return;\n }\n\n //reset filtering of available options\n this.handleInput(null);\n\n if(Array.isArray(selected))\n {\n this.searchValueDisplayed = '';\n this.inputElementChild?.nativeElement.focus();\n this._changeDetector.detectChanges();\n }\n else\n {\n //set selected into live search\n this.searchValueDisplayed = selected.text;\n this._changeDetector.detectChanges();\n\n //select current text\n this.inputElementChild?.nativeElement.select();\n }\n });\n }\n\n this._initTexts();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Handle input value\n * @param value - Value of input\n * @param inputChange - Indication that change was by input event of input\n * @internal\n */\n public handleInput(value: string, inputChange: boolean = false)\n {\n this.searchValue = value;\n this.searchValueChange.emit();\n\n if(inputChange)\n {\n this.pluginBus.showHidePopup.emit(true);\n this.searchValueDisplayed = value;\n\n //single value select\n if(!this.pluginBus.selectOptions.multiple)\n {\n //cancel value\n if(this._options.nonExistingCancel)\n {\n this._valueHandler.setValue(null);\n }\n //empty string cancels value\n else if(this._options.emptyCancel && isPresent(value) && !value.length)\n {\n this._valueHandler.setValue(null);\n }\n //otherwise keep last value\n }\n }\n }\n\n /**\n * Handles focus event\n * @param element - Element that got focus\n * @param show - Indication whether show popup\n * @internal\n */\n public handleFocus(element: HTMLInputElement, show: boolean = false)\n {\n element.select();\n\n this._activateSelectedOrFirst();\n\n if(show)\n {\n this.pluginBus.showHidePopup.emit(true);\n }\n\n this.pluginBus.focus.emit();\n }\n\n /**\n * Handles blur of live search\n */\n public handleBlur()\n {\n //not multiple and selected value\n if(!this.pluginBus.selectOptions.multiple)\n {\n //use selected text\n if(this._valueHandler.selectedOptions && !Array.isArray(this._valueHandler.selectedOptions))\n {\n this.searchValueDisplayed = this._valueHandler.selectedOptions.text;\n }\n //reset text\n else\n {\n this.searchValueDisplayed = '';\n }\n }\n //reset text\n else\n {\n this.searchValueDisplayed = '';\n }\n\n //reset available options\n this.searchValue = null;\n this.searchValueChange.emit();\n this._changeDetector.detectChanges();\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach(key =>\n {\n this.texts[key as keyof LiveSearchTexts] = this._stringLocalization.get(this.options.texts[key as keyof LiveSearchTexts]);\n });\n\n this._changeDetector.detectChanges();\n }\n\n /**\n * Activates first available option or selected option\n */\n protected _activateSelectedOrFirst()\n {\n const activeOption = this.availableOptions.find(itm => itm.active);\n const selectedOptions = this.availableOptions.filter(itm => itm.selected);\n\n //nothing active, nothing selected\n if(!activeOption && !selectedOptions.length)\n {\n const first = this.availableOptions[0];\n\n if(first)\n {\n first.active = true;\n }\n }\n //nothing active\n else if(!activeOption)\n {\n //last selected as sactive\n selectedOptions[selectedOptions.length - 1].active = true;\n }\n }\n}","<div style=\"display: none;\">\r\n <div #liveSearchElement [ngClass]=\"options?.cssClasses?.wrapperDiv\">\r\n <input #inputElement\r\n [ngClass]=\"options?.cssClasses?.input\"\r\n type=\"text\"\r\n [value]=\"searchValueDisplayed\"\r\n (input)=\"handleInput($any($event.target).value, true)\"\r\n (focus)=\"handleFocus($any($event.target))\"\r\n (click)=\"handleFocus($any($event.target), true)\"\r\n placeholder=\"{{texts?.inputPlaceholder}}\"\r\n [disabled]=\"pluginBus?.selectOptions.readonly\">\r\n </div>\r\n</div>"]}
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Component used for no live search
|
|
7
|
-
*/
|
|
8
|
-
export class NoLiveSearchComponent {
|
|
9
|
-
//######################### constructor #########################
|
|
10
|
-
constructor(ngSelectPlugins, pluginElement, _document) {
|
|
11
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
12
|
-
this.pluginElement = pluginElement;
|
|
13
|
-
this._document = _document;
|
|
14
|
-
/**
|
|
15
|
-
* Current value of live search
|
|
16
|
-
*/
|
|
17
|
-
this.searchValue = null;
|
|
18
|
-
/**
|
|
19
|
-
* Occurs when current value of live search changes
|
|
20
|
-
*/
|
|
21
|
-
this.searchValueChange = new EventEmitter();
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* HTML element that represents live search
|
|
25
|
-
*/
|
|
26
|
-
get liveSearchElement() {
|
|
27
|
-
return this._document.createElement('span');
|
|
28
|
-
}
|
|
29
|
-
//######################### public methods - implementation of NoLiveSearch #########################
|
|
30
|
-
/**
|
|
31
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
32
|
-
*/
|
|
33
|
-
initialize() {
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
37
|
-
*/
|
|
38
|
-
initOptions() {
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Explicitly runs invalidation of content (change detection)
|
|
42
|
-
*/
|
|
43
|
-
invalidateVisuals() {
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
NoLiveSearchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NoLiveSearchComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i0.ElementRef }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
-
NoLiveSearchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: NoLiveSearchComponent, selector: "ng-no-live-search", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
48
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: NoLiveSearchComponent, decorators: [{
|
|
49
|
-
type: Component,
|
|
50
|
-
args: [{
|
|
51
|
-
selector: 'ng-no-live-search',
|
|
52
|
-
template: '',
|
|
53
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
54
|
-
}]
|
|
55
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
56
|
-
type: Inject,
|
|
57
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
58
|
-
}, {
|
|
59
|
-
type: Optional
|
|
60
|
-
}] }, { type: i0.ElementRef }, { type: Document, decorators: [{
|
|
61
|
-
type: Inject,
|
|
62
|
-
args: [DOCUMENT]
|
|
63
|
-
}] }]; } });
|
|
64
|
-
//# sourceMappingURL=noLiveSearch.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noLiveSearch.component.js","sourceRoot":"","sources":["../../../../../src/plugins/liveSearch/no/noLiveSearch.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AAKzC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;;AAG5E;;GAEG;AAOH,MAAM,OAAO,qBAAqB;IAuC9B,iEAAiE;IACjE,YAAmE,eAAwC,EACxF,aAAyB,EACN,SAAmB;QAFU,oBAAe,GAAf,eAAe,CAAyB;QACxF,kBAAa,GAAb,aAAa,CAAY;QACN,cAAS,GAAT,SAAS,CAAU;QAbzD;;WAEG;QACI,gBAAW,GAAW,IAAI,CAAC;QAElC;;WAEG;QACI,sBAAiB,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAOxE,CAAC;IAvBD;;OAEG;IACH,IAAW,iBAAiB;QAExB,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,CAAC,CAAC;IAChD,CAAC;IAmBD,qGAAqG;IAErG;;OAEG;IACI,UAAU;IAEjB,CAAC;IAED;;OAEG;IACI,WAAW;IAElB,CAAC;IAED;;OAEG;IACI,iBAAiB;IAExB,CAAC;;kHAnEQ,qBAAqB,kBAwCV,0BAA0B,uDAE1B,QAAQ;sGA1CnB,qBAAqB,yDAHpB,EAAE;2FAGH,qBAAqB;kBANjC,SAAS;mBACV;oBACI,QAAQ,EAAE,mBAAmB;oBAC7B,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAyCgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAE5C,MAAM;2BAAC,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, EventEmitter} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\n\nimport {NoLiveSearchOptions, NoLiveSearch} from './noLiveSearch.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Component used for no live search\n */\n@Component(\n{\n selector: 'ng-no-live-search',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class NoLiveSearchComponent implements NoLiveSearch, NgSelectPlugin<NoLiveSearchOptions>\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: NoLiveSearchOptions;\n\n //######################### public properties - implementation of NoLiveSearch #########################\n\n /**\n * Options for NgSelect plugin\n */\n public options: NoLiveSearchOptions;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus;\n\n /**\n * HTML element that represents live search\n */\n public get liveSearchElement(): HTMLElement\n {\n return this._document.createElement('span');\n }\n\n /**\n * Current value of live search\n */\n public searchValue: string = null;\n\n /**\n * Occurs when current value of live search changes\n */\n public searchValueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n public pluginElement: ElementRef,\n @Inject(DOCUMENT) private _document: Document)\n {\n }\n\n //######################### public methods - implementation of NoLiveSearch #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\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}"]}
|