@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,203 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, ViewChildren, Directive } from '@angular/core';
|
|
2
|
-
import { extend, isDescendant } from '@jscrpt/common';
|
|
3
|
-
import { PluginBus } from '../../misc/pluginBus/pluginBus';
|
|
4
|
-
import { VALUE_HANDLER } from '../valueHandler/types';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../../misc/pluginBus/pluginBus";
|
|
7
|
-
/**
|
|
8
|
-
* Base abstract class for popup with options
|
|
9
|
-
*/
|
|
10
|
-
export class PopupAbstractComponent {
|
|
11
|
-
//######################### constructor #########################
|
|
12
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _document, _stringLocalization) {
|
|
13
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
14
|
-
this.pluginBus = pluginBus;
|
|
15
|
-
this.pluginElement = pluginElement;
|
|
16
|
-
this._changeDetector = _changeDetector;
|
|
17
|
-
this._document = _document;
|
|
18
|
-
this._stringLocalization = _stringLocalization;
|
|
19
|
-
/**
|
|
20
|
-
* Indication whether is popup visible
|
|
21
|
-
*/
|
|
22
|
-
this._popupVisible = false;
|
|
23
|
-
/**
|
|
24
|
-
* Occurs when visibility of popup has changed
|
|
25
|
-
*/
|
|
26
|
-
this.visibilityChange = new EventEmitter();
|
|
27
|
-
/**
|
|
28
|
-
* Object containing available texts
|
|
29
|
-
* @internal
|
|
30
|
-
*/
|
|
31
|
-
this.texts = {};
|
|
32
|
-
/**
|
|
33
|
-
* Handles click outside of select element
|
|
34
|
-
* @param event - Mouse event object
|
|
35
|
-
*/
|
|
36
|
-
this._handleClickOutside = (event) => {
|
|
37
|
-
if (this.pluginBus.selectElement.nativeElement != event.target &&
|
|
38
|
-
!isDescendant(this.pluginBus.selectElement.nativeElement, event.target) &&
|
|
39
|
-
this.pluginElement.nativeElement != event.target &&
|
|
40
|
-
!isDescendant(this.pluginElement.nativeElement, event.target)) {
|
|
41
|
-
this.togglePopup();
|
|
42
|
-
this.pluginBus.updateDisplayedValue.emit();
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
/**
|
|
46
|
-
* Handles visibility change
|
|
47
|
-
*/
|
|
48
|
-
this._handleVisibilityChange = (visible) => {
|
|
49
|
-
if (this.options.visible != visible) {
|
|
50
|
-
this.options.visible = visible;
|
|
51
|
-
this._changeDetector.detectChanges();
|
|
52
|
-
}
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
//######################### protected properties #########################
|
|
56
|
-
/**
|
|
57
|
-
* Gets indication whether keep open popup after value change
|
|
58
|
-
*/
|
|
59
|
-
get keepOpen() {
|
|
60
|
-
return this.pluginBus.selectOptions.multiple;
|
|
61
|
-
}
|
|
62
|
-
//######################### public properties - implementation of Popup #########################
|
|
63
|
-
/**
|
|
64
|
-
* Options for NgSelect plugin
|
|
65
|
-
*/
|
|
66
|
-
get options() {
|
|
67
|
-
return this._options;
|
|
68
|
-
}
|
|
69
|
-
set options(options) {
|
|
70
|
-
this._options = extend(true, this._options, options);
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Html element that represents popup itself
|
|
74
|
-
*/
|
|
75
|
-
get popupElement() {
|
|
76
|
-
const ref = this.popupElementChildren.first;
|
|
77
|
-
if (!ref) {
|
|
78
|
-
return null;
|
|
79
|
-
}
|
|
80
|
-
return ref.nativeElement;
|
|
81
|
-
}
|
|
82
|
-
//######################### public methods - implementation of AfterViewInit #########################
|
|
83
|
-
/**
|
|
84
|
-
* Called when view was initialized
|
|
85
|
-
*/
|
|
86
|
-
ngAfterViewInit() {
|
|
87
|
-
this.popupElementChildren.changes.subscribe(() => {
|
|
88
|
-
if (!!this.popupElementChildren.first == this._popupVisible) {
|
|
89
|
-
return;
|
|
90
|
-
}
|
|
91
|
-
//handle click outside
|
|
92
|
-
if (this.popupElementChildren.first) {
|
|
93
|
-
this._document.addEventListener('mouseup', this._handleClickOutside);
|
|
94
|
-
}
|
|
95
|
-
//unregister handle click outside
|
|
96
|
-
else {
|
|
97
|
-
this._document.removeEventListener('mouseup', this._handleClickOutside);
|
|
98
|
-
}
|
|
99
|
-
this._popupVisible = !!this.popupElementChildren.first;
|
|
100
|
-
this.visibilityChange.emit();
|
|
101
|
-
});
|
|
102
|
-
}
|
|
103
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
104
|
-
/**
|
|
105
|
-
* Called when component is destroyed
|
|
106
|
-
*/
|
|
107
|
-
ngOnDestroy() {
|
|
108
|
-
var _a, _b, _c, _d, _e;
|
|
109
|
-
(_a = this._optionsChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
110
|
-
this._optionsChangeSubscription = null;
|
|
111
|
-
(_b = this._popupToggleSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
112
|
-
this._popupToggleSubscription = null;
|
|
113
|
-
(_c = this._valueChangedSubscription) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
|
114
|
-
this._valueChangedSubscription = null;
|
|
115
|
-
(_d = this._visibilityRequestSubscription) === null || _d === void 0 ? void 0 : _d.unsubscribe();
|
|
116
|
-
this._visibilityRequestSubscription = null;
|
|
117
|
-
(_e = this._textsChangedSubscription) === null || _e === void 0 ? void 0 : _e.unsubscribe();
|
|
118
|
-
this._textsChangedSubscription = null;
|
|
119
|
-
this._document.removeEventListener('mouseup', this._handleClickOutside);
|
|
120
|
-
}
|
|
121
|
-
//######################### public methods - implementation of Popup #########################
|
|
122
|
-
/**
|
|
123
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
124
|
-
*/
|
|
125
|
-
initialize() {
|
|
126
|
-
this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());
|
|
127
|
-
if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
|
|
128
|
-
this._optionsChangeSubscription.unsubscribe();
|
|
129
|
-
this._optionsChangeSubscription = null;
|
|
130
|
-
this._optionsGatherer = null;
|
|
131
|
-
}
|
|
132
|
-
if (!this._optionsGatherer) {
|
|
133
|
-
this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;
|
|
134
|
-
this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());
|
|
135
|
-
}
|
|
136
|
-
if (!this._popupToggleSubscription) {
|
|
137
|
-
this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());
|
|
138
|
-
}
|
|
139
|
-
if (!this._visibilityRequestSubscription) {
|
|
140
|
-
this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);
|
|
141
|
-
}
|
|
142
|
-
const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
143
|
-
if (this._valueHandler && this._valueHandler != valueHandler) {
|
|
144
|
-
this._valueChangedSubscription.unsubscribe();
|
|
145
|
-
this._valueChangedSubscription = null;
|
|
146
|
-
this._valueHandler = null;
|
|
147
|
-
}
|
|
148
|
-
if (!this._valueHandler) {
|
|
149
|
-
this._valueHandler = valueHandler;
|
|
150
|
-
this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => {
|
|
151
|
-
if (!this.keepOpen) {
|
|
152
|
-
this._handleVisibilityChange(false);
|
|
153
|
-
}
|
|
154
|
-
});
|
|
155
|
-
}
|
|
156
|
-
this.loadOptions();
|
|
157
|
-
this._initTexts();
|
|
158
|
-
}
|
|
159
|
-
/**
|
|
160
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
161
|
-
*/
|
|
162
|
-
initOptions() {
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* Explicitly runs invalidation of content (change detection)
|
|
166
|
-
*/
|
|
167
|
-
invalidateVisuals() {
|
|
168
|
-
this._changeDetector.detectChanges();
|
|
169
|
-
}
|
|
170
|
-
//######################### protected methods #########################
|
|
171
|
-
/**
|
|
172
|
-
* Initialize texts
|
|
173
|
-
*/
|
|
174
|
-
_initTexts() {
|
|
175
|
-
Object.keys(this.options.texts).forEach(key => {
|
|
176
|
-
this.texts[key] = this._stringLocalization.get(this.options.texts[key]);
|
|
177
|
-
});
|
|
178
|
-
this._changeDetector.detectChanges();
|
|
179
|
-
}
|
|
180
|
-
/**
|
|
181
|
-
* Loads options
|
|
182
|
-
*/
|
|
183
|
-
loadOptions() {
|
|
184
|
-
this.selectOptions = this._optionsGatherer.availableOptions;
|
|
185
|
-
this._changeDetector.detectChanges();
|
|
186
|
-
}
|
|
187
|
-
/**
|
|
188
|
-
* Toggles popup visibility
|
|
189
|
-
*/
|
|
190
|
-
togglePopup() {
|
|
191
|
-
this.options.visible = !this.options.visible;
|
|
192
|
-
this._changeDetector.detectChanges();
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
PopupAbstractComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PopupAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
196
|
-
PopupAbstractComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: PopupAbstractComponent, viewQueries: [{ propertyName: "popupElementChildren", predicate: ["popupDiv"], descendants: true }], ngImport: i0 });
|
|
197
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: PopupAbstractComponent, decorators: [{
|
|
198
|
-
type: Directive
|
|
199
|
-
}], ctorParameters: function () { return [{ type: undefined }, { type: i1.PluginBus }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: Document }, { type: undefined }]; }, propDecorators: { popupElementChildren: [{
|
|
200
|
-
type: ViewChildren,
|
|
201
|
-
args: ['popupDiv']
|
|
202
|
-
}] } });
|
|
203
|
-
//# sourceMappingURL=popupAbstract.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popupAbstract.component.js","sourceRoot":"","sources":["../../../../src/plugins/popup/popupAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAa,SAAS,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAExI,OAAO,EAAC,MAAM,EAAE,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAMpD,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAGzD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;;;AAGpD;;GAEG;AAEH,MAAM,OAAO,sBAAsB;IAoH/B,iEAAiE;IACjE,YAAmB,eAAwC,EACxC,SAAoB,EACpB,aAAyB,EACtB,eAAkC,EAClC,SAAmB,EACnB,mBAAuC;QAL1C,oBAAe,GAAf,eAAe,CAAyB;QACxC,cAAS,GAAT,SAAS,CAAW;QACpB,kBAAa,GAAb,aAAa,CAAY;QACtB,oBAAe,GAAf,eAAe,CAAmB;QAClC,cAAS,GAAT,SAAS,CAAU;QACnB,wBAAmB,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C,KAAK,CAAC,GAAuB,CAAC,CAAC,CAAC;QACpH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IAED;;OAEG;IACO,WAAW;QAEjB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;QAC5D,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IAED;;OAEG;IACO,WAAW;QAEjB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAC7C,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;;mHAhSQ,sBAAsB;uGAAtB,sBAAsB;2FAAtB,sBAAsB;kBADlC,SAAS;uNAmHC,oBAAoB;sBAD1B,YAAY;uBAAC,UAAU","sourcesContent":["import {AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, ViewChildren, Directive} from '@angular/core';\nimport {StringLocalization} from '@anglr/common';\nimport {extend, isDescendant} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {ɵNgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances} from '../../components/select';\nimport {NgSelectPlugin, OptionsGatherer} from '../../misc';\nimport {PluginBus} from '../../misc/pluginBus/pluginBus';\nimport {Popup, PopupOptions, PopupTexts} from './popup.interface';\nimport {ValueHandler} from '../valueHandler';\nimport {VALUE_HANDLER} from '../valueHandler/types';\n\n\n/**\n * Base abstract class for popup with options\n */\n@Directive()\nexport class PopupAbstractComponent<TCssClasses = any, TOptions extends PopupOptions<TCssClasses> = any> implements Popup, NgSelectPlugin<TOptions>, AfterViewInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: TOptions;\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Subscription for toggle popup event\n */\n protected _popupToggleSubscription: Subscription;\n\n /**\n * Subscription for popup visibility change request\n */\n protected _visibilityRequestSubscription: Subscription;\n\n /**\n * Subscription for changes of selected value\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Subscription for changes in texts\n */\n protected _textsChangedSubscription: Subscription;\n\n /**\n * Indication whether is popup visible\n */\n protected _popupVisible: boolean = false;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n //######################### protected properties #########################\n\n /**\n * Gets indication whether keep open popup after value change\n */\n protected get keepOpen(): boolean\n {\n return this.pluginBus.selectOptions.multiple;\n }\n\n //######################### public properties - implementation of Popup #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): TOptions\n {\n return this._options;\n }\n public set options(options: TOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * Occurs when visibility of popup has changed\n */\n public visibilityChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Html element that represents popup itself\n */\n public get popupElement(): HTMLElement\n {\n const ref = this.popupElementChildren.first;\n\n if(!ref)\n {\n return null;\n }\n\n return ref.nativeElement;\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Array of select options available\n * @internal\n */\n public selectOptions: ɵNgSelectOption[];\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: PopupTexts = {};\n \n //######################### public properties - children #########################\n\n /**\n * Watch for visibility of popup div element\n * @internal\n */\n @ViewChildren('popupDiv')\n public popupElementChildren: QueryList<ElementRef<HTMLElement>>;\n\n //######################### constructor #########################\n constructor(public ngSelectPlugins: NgSelectPluginInstances,\n public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n protected _document: Document,\n protected _stringLocalization: StringLocalization)\n {\n }\n\n //######################### public methods - implementation of AfterViewInit #########################\n\n /**\n * Called when view was initialized\n */\n public ngAfterViewInit()\n {\n this.popupElementChildren.changes.subscribe(() =>\n {\n if(!!this.popupElementChildren.first == this._popupVisible)\n {\n return;\n }\n\n //handle click outside\n if(this.popupElementChildren.first)\n {\n this._document.addEventListener('mouseup', this._handleClickOutside);\n }\n //unregister handle click outside\n else\n {\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n this._popupVisible = !!this.popupElementChildren.first;\n this.visibilityChange.emit();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._popupToggleSubscription?.unsubscribe();\n this._popupToggleSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._visibilityRequestSubscription?.unsubscribe();\n this._visibilityRequestSubscription = null;\n\n this._textsChangedSubscription?.unsubscribe();\n this._textsChangedSubscription = null;\n\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n //######################### public methods - implementation of Popup #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());\n\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());\n }\n\n if(!this._popupToggleSubscription)\n {\n this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());\n }\n\n if(!this._visibilityRequestSubscription)\n {\n this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() =>\n {\n if(!this.keepOpen)\n {\n this._handleVisibilityChange(false);\n }\n });\n }\n\n this.loadOptions();\n this._initTexts();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach(key =>\n {\n this.texts[key as keyof PopupTexts] = this._stringLocalization.get(this.options.texts[key as keyof PopupTexts]);\n });\n\n this._changeDetector.detectChanges();\n }\n\n /**\n * Loads options\n */\n protected loadOptions()\n {\n this.selectOptions = this._optionsGatherer.availableOptions;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Toggles popup visibility\n */\n protected togglePopup()\n {\n this.options.visible = !this.options.visible;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Handles click outside of select element\n * @param event - Mouse event object\n */\n protected _handleClickOutside = (event: MouseEvent) =>\n {\n if(this.pluginBus.selectElement.nativeElement != event.target &&\n !isDescendant(this.pluginBus.selectElement.nativeElement, event.target as HTMLElement) &&\n this.pluginElement.nativeElement != event.target &&\n !isDescendant(this.pluginElement.nativeElement, event.target as HTMLElement))\n {\n this.togglePopup();\n\n this.pluginBus.updateDisplayedValue.emit();\n }\n }\n\n /**\n * Handles visibility change\n */\n protected _handleVisibilityChange = (visible: boolean) =>\n {\n if(this.options.visible != visible)\n {\n this.options.visible = visible;\n this._changeDetector.detectChanges();\n }\n };\n}"]}
|
|
@@ -1,158 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, PLATFORM_ID, EventEmitter } from '@angular/core';
|
|
2
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
3
|
-
import { applyPositionResult, POSITION, PositionOffset, PositionPlacement } from '@anglr/common';
|
|
4
|
-
import { extend } from '@jscrpt/common';
|
|
5
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
6
|
-
import { POSITIONER_OPTIONS } from '../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
|
-
/**
|
|
12
|
-
* Default options for positioner
|
|
13
|
-
*/
|
|
14
|
-
const defaultOptions = {
|
|
15
|
-
positionOptions: {
|
|
16
|
-
offset: PositionOffset.None,
|
|
17
|
-
placement: PositionPlacement.BottomStart,
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Component used for positioning popup element, handles resize, scroll and collision using `Position`
|
|
22
|
-
*/
|
|
23
|
-
export class DefaultPositionerComponent {
|
|
24
|
-
//######################### constructor #########################
|
|
25
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, position, options, platformId) {
|
|
26
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
27
|
-
this.pluginBus = pluginBus;
|
|
28
|
-
this.pluginElement = pluginElement;
|
|
29
|
-
this.position = position;
|
|
30
|
-
this.platformId = platformId;
|
|
31
|
-
/**
|
|
32
|
-
* Occurs when flip occured during positining of popup
|
|
33
|
-
*/
|
|
34
|
-
this.ɵflip = new EventEmitter();
|
|
35
|
-
/**
|
|
36
|
-
* Indication whether is code running in browser
|
|
37
|
-
*/
|
|
38
|
-
this.isBrowser = isPlatformBrowser(this.platformId);
|
|
39
|
-
this.ɵoptions = extend(true, {}, defaultOptions, options);
|
|
40
|
-
}
|
|
41
|
-
//######################### public properties - implementation of DefaultPositioner #########################
|
|
42
|
-
/**
|
|
43
|
-
* Options for NgSelect plugin
|
|
44
|
-
*/
|
|
45
|
-
get options() {
|
|
46
|
-
return this.ɵoptions;
|
|
47
|
-
}
|
|
48
|
-
set options(options) {
|
|
49
|
-
this.ɵoptions = extend(true, this.ɵoptions, options);
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* @inheritdoc
|
|
53
|
-
*/
|
|
54
|
-
get flip() {
|
|
55
|
-
return this.ɵflip;
|
|
56
|
-
}
|
|
57
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
58
|
-
/**
|
|
59
|
-
* Called when component is destroyed
|
|
60
|
-
*/
|
|
61
|
-
ngOnDestroy() {
|
|
62
|
-
var _a, _b, _c;
|
|
63
|
-
(_a = this.visibilitySubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
64
|
-
this.visibilitySubscription = null;
|
|
65
|
-
(_b = this.positioningDispose) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
66
|
-
(_c = this.positioningSubscription) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
|
67
|
-
this.positioningSubscription = null;
|
|
68
|
-
}
|
|
69
|
-
//######################### public methods - implementation of DefaultPositioner #########################
|
|
70
|
-
/**
|
|
71
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
72
|
-
*/
|
|
73
|
-
initialize() {
|
|
74
|
-
var _a;
|
|
75
|
-
const popup = this.ngSelectPlugins[POPUP];
|
|
76
|
-
if (this.popup && this.popup != popup) {
|
|
77
|
-
(_a = this.visibilitySubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
78
|
-
this.visibilitySubscription = null;
|
|
79
|
-
this.popup = null;
|
|
80
|
-
}
|
|
81
|
-
if (!this.popup) {
|
|
82
|
-
this.popup = popup;
|
|
83
|
-
this.visibilitySubscription = this.popup.visibilityChange.subscribe(() => this.initPosition());
|
|
84
|
-
}
|
|
85
|
-
this.initPosition();
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @inheritdoc
|
|
89
|
-
*/
|
|
90
|
-
initOptions() {
|
|
91
|
-
}
|
|
92
|
-
/**
|
|
93
|
-
* @inheritdoc
|
|
94
|
-
*/
|
|
95
|
-
invalidateVisuals() {
|
|
96
|
-
}
|
|
97
|
-
//######################### protected methods #########################
|
|
98
|
-
/**
|
|
99
|
-
* Initialize positioning of popup
|
|
100
|
-
*/
|
|
101
|
-
initPosition() {
|
|
102
|
-
var _a, _b, _c, _d;
|
|
103
|
-
this.popupElement = this.popup.popupElement;
|
|
104
|
-
if (this.isBrowser) {
|
|
105
|
-
//register events and handle position of opened popup
|
|
106
|
-
if (this.popupElement) {
|
|
107
|
-
(_a = this.positioningSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
108
|
-
(_b = this.positioningDispose) === null || _b === void 0 ? void 0 : _b.call(this);
|
|
109
|
-
this.positioningSubscription = null;
|
|
110
|
-
this.positioningDispose = null;
|
|
111
|
-
this.positioningSubscription = this.position.placeElement(this.popupElement, this.pluginBus.selectElement.nativeElement, Object.assign({ autoUpdate: true, flip: true }, this.options.positionOptions))
|
|
112
|
-
.subscribe(result => {
|
|
113
|
-
applyPositionResult(result);
|
|
114
|
-
this.positioningDispose = result.dispose;
|
|
115
|
-
if (result.flip) {
|
|
116
|
-
this.flip.emit();
|
|
117
|
-
}
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
//unregister events
|
|
121
|
-
else {
|
|
122
|
-
(_c = this.positioningSubscription) === null || _c === void 0 ? void 0 : _c.unsubscribe();
|
|
123
|
-
(_d = this.positioningDispose) === null || _d === void 0 ? void 0 : _d.call(this);
|
|
124
|
-
this.positioningSubscription = null;
|
|
125
|
-
this.positioningDispose = null;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
DefaultPositionerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: POSITION }, { token: POSITIONER_OPTIONS, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component });
|
|
131
|
-
DefaultPositionerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: DefaultPositionerComponent, selector: "ng-default-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
132
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DefaultPositionerComponent, decorators: [{
|
|
133
|
-
type: Component,
|
|
134
|
-
args: [{
|
|
135
|
-
selector: 'ng-default-positioner',
|
|
136
|
-
template: '',
|
|
137
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
138
|
-
}]
|
|
139
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
140
|
-
type: Inject,
|
|
141
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
142
|
-
}, {
|
|
143
|
-
type: Optional
|
|
144
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
145
|
-
type: Optional
|
|
146
|
-
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
147
|
-
type: Inject,
|
|
148
|
-
args: [POSITION]
|
|
149
|
-
}] }, { type: undefined, decorators: [{
|
|
150
|
-
type: Inject,
|
|
151
|
-
args: [POSITIONER_OPTIONS]
|
|
152
|
-
}, {
|
|
153
|
-
type: Optional
|
|
154
|
-
}] }, { type: Object, decorators: [{
|
|
155
|
-
type: Inject,
|
|
156
|
-
args: [PLATFORM_ID]
|
|
157
|
-
}] }]; } });
|
|
158
|
-
//# sourceMappingURL=defaultPositioner.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultPositioner.component.js","sourceRo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,CAAC;;uHA3LQ,0BAA0B,kBAwEf,0BAA0B,gGAG1B,QAAQ,aACR,kBAAkB,6BAClB,WAAW;2GA7EtB,0BAA0B,6DAHzB,EAAE;2FAGH,0BAA0B;kBANtC,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAyEgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,kBAAkB;;0BAAG,QAAQ;;0BACpC,MAAM;2BAAC,WAAW","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy, PLATFORM_ID, EventEmitter} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\nimport {applyPositionResult, Position, POSITION, PositionOffset, PositionPlacement} from '@anglr/common';\nimport {extend, NoopAction} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {DefaultPositionerOptions, DefaultPositioner} from './defaultPositioner.interface';\nimport {NgSelectPlugin, OptionsGatherer} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {POSITIONER_OPTIONS} from '../types';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for positioner\n */\nconst defaultOptions: DefaultPositionerOptions =\n{\n positionOptions:\n {\n offset: PositionOffset.None,\n placement: PositionPlacement.BottomStart,\n }\n};\n\n/**\n * Component used for positioning popup element, handles resize, scroll and collision using `Position`\n */\n@Component(\n{\n selector: 'ng-default-positioner',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DefaultPositionerComponent implements DefaultPositioner, NgSelectPlugin<DefaultPositionerOptions>, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected optionsGatherer: OptionsGatherer;\n\n /**\n * Occurs when flip occured during positining of popup\n */\n protected ɵflip: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Options for NgSelect plugin\n */\n protected ɵoptions: DefaultPositionerOptions;\n\n /**\n * Subscription for visibility change of popup\n */\n protected visibilitySubscription: Subscription|undefined|null;\n\n /**\n * Subscription for positioning event that occured\n */\n protected positioningSubscription: Subscription|undefined|null;\n\n /**\n * Function used for disposing of positining watch\n */\n protected positioningDispose: NoopAction;\n\n /**\n * Popup that is displayed\n */\n protected popup: Popup;\n\n /**\n * Html element of popup plugin\n */\n protected popupElement: HTMLElement;\n\n /**\n * Indication whether is code running in browser\n */\n protected isBrowser: boolean = isPlatformBrowser(this.platformId);\n\n //######################### public properties - implementation of DefaultPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): DefaultPositionerOptions\n {\n return this.ɵoptions;\n }\n public set options(options: DefaultPositionerOptions)\n {\n this.ɵoptions = extend(true, this.ɵoptions, options);\n }\n\n /**\n * @inheritdoc\n */\n public get flip(): EventEmitter<void>\n {\n return this.ɵflip;\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n @Inject(POSITION) protected position: Position,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: DefaultPositionerOptions,\n @Inject(PLATFORM_ID) protected platformId?: Object,)\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.visibilitySubscription?.unsubscribe();\n this.visibilitySubscription = null;\n\n this.positioningDispose?.();\n\n this.positioningSubscription?.unsubscribe();\n this.positioningSubscription = null;\n }\n\n //######################### public methods - implementation of DefaultPositioner #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this.popup && this.popup != popup)\n {\n this.visibilitySubscription?.unsubscribe();\n this.visibilitySubscription = null;\n\n this.popup = null;\n }\n\n if(!this.popup)\n {\n this.popup = popup;\n\n this.visibilitySubscription = this.popup.visibilityChange.subscribe(() => this.initPosition());\n }\n\n this.initPosition();\n }\n\n /**\n * @inheritdoc\n */\n public initOptions()\n {\n }\n\n /**\n * @inheritdoc\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize positioning of popup\n */\n protected initPosition()\n {\n this.popupElement = this.popup.popupElement;\n\n if(this.isBrowser)\n {\n //register events and handle position of opened popup\n if(this.popupElement)\n {\n this.positioningSubscription?.unsubscribe();\n this.positioningDispose?.();\n \n this.positioningSubscription = null;\n this.positioningDispose = null;\n\n this.positioningSubscription = this.position.placeElement(this.popupElement,\n this.pluginBus.selectElement.nativeElement,\n {\n autoUpdate: true,\n flip: true,\n ...this.options.positionOptions\n },)\n .subscribe(result =>\n {\n applyPositionResult(result);\n this.positioningDispose = result.dispose;\n\n if(result.flip)\n {\n this.flip.emit();\n }\n });\n }\n //unregister events\n else\n {\n this.positioningSubscription?.unsubscribe();\n this.positioningDispose?.();\n\n this.positioningSubscription = null;\n this.positioningDispose = null;\n }\n }\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"noPositioner.component.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/no/noPositioner.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC7G,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAKtC,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO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Inject, Optional} from '@angular/core';\nimport {extend} from '@jscrpt/common';\n\nimport {NoPositioner, NoPositionerOptions} from './noPositioner.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {POSITIONER_OPTIONS} from '../types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for positioner\n */\nconst defaultOptions: NoPositionerOptions =\n{\n};\n\n/**\n * Component used for not positioning popup\n */\n@Component(\n{\n selector: 'ng-no-positioner',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class NoPositionerComponent implements NoPositioner, NgSelectPlugin<NoPositionerOptions>\n{\n //######################### protected properties #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected ɵoptions: NoPositionerOptions;\n\n /**\n * Occurs when flip occured during positining of popup\n */\n protected ɵflip: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties - implementation of NoPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): NoPositionerOptions\n {\n return this.ɵoptions;\n }\n public set options(options: NoPositionerOptions)\n {\n this.ɵoptions = extend(true, this.ɵoptions, options);\n }\n\n /**\n * @inheritdoc\n */\n public get flip(): EventEmitter<void>\n {\n return this.ɵflip;\n }\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus;\n\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n public pluginElement: ElementRef,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: NoPositionerOptions)\n {\n this.ɵoptions = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of NoPositioner #########################\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}"]}
|
|
@@ -1,157 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef } from '@angular/core';
|
|
2
|
-
import { extend, isBlank } from '@jscrpt/common';
|
|
3
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
4
|
-
import { VALUE_HANDLER_OPTIONS } from '../types';
|
|
5
|
-
import { ValueHandlerBase } from '../valueHandlerBase';
|
|
6
|
-
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
9
|
-
//TODO - select _setValue, reject non existing
|
|
10
|
-
/**
|
|
11
|
-
* Default options for value handler
|
|
12
|
-
* @internal
|
|
13
|
-
*/
|
|
14
|
-
const defaultOptions = {};
|
|
15
|
-
/**
|
|
16
|
-
* Component used for handling current value of NgSelect
|
|
17
|
-
*/
|
|
18
|
-
export class BasicValueHandlerComponent extends ValueHandlerBase {
|
|
19
|
-
//######################### constructor #########################
|
|
20
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, options) {
|
|
21
|
-
super(ngSelectPlugins, pluginElement, pluginBus);
|
|
22
|
-
//######################### protected methods #########################
|
|
23
|
-
/**
|
|
24
|
-
* Sets value
|
|
25
|
-
*/
|
|
26
|
-
this._setValue = (option) => {
|
|
27
|
-
//multiple values are allowed
|
|
28
|
-
if (this.pluginBus.selectOptions.multiple) {
|
|
29
|
-
if (!Array.isArray(this.selectedOptions)) {
|
|
30
|
-
this.selectedOptions = [];
|
|
31
|
-
}
|
|
32
|
-
if (Array.isArray(this.selectedOptions)) {
|
|
33
|
-
let index;
|
|
34
|
-
//value exists, removing from list
|
|
35
|
-
if ((index = this.selectedOptions.indexOf(option)) >= 0) {
|
|
36
|
-
this.selectedOptions.splice(index, 1);
|
|
37
|
-
}
|
|
38
|
-
//adding value
|
|
39
|
-
else {
|
|
40
|
-
this.selectedOptions.push(option);
|
|
41
|
-
}
|
|
42
|
-
this.selectedOptions = [...this.selectedOptions];
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
else
|
|
46
|
-
//only signle value allowed
|
|
47
|
-
{
|
|
48
|
-
this.selectedOptions = option;
|
|
49
|
-
}
|
|
50
|
-
this._clearSelected();
|
|
51
|
-
this._markValueAsSelected();
|
|
52
|
-
this._normalState.invalidateVisuals();
|
|
53
|
-
this.valueChange.emit();
|
|
54
|
-
};
|
|
55
|
-
this._options = extend(true, {}, defaultOptions, options);
|
|
56
|
-
}
|
|
57
|
-
//######################### public properties - implementation of BasicValueHandler #########################
|
|
58
|
-
/**
|
|
59
|
-
* Options for NgSelect plugin
|
|
60
|
-
*/
|
|
61
|
-
get options() {
|
|
62
|
-
return this._options;
|
|
63
|
-
}
|
|
64
|
-
set options(options) {
|
|
65
|
-
this._options = extend(true, this._options, options);
|
|
66
|
-
}
|
|
67
|
-
//######################### public methods - implementation of BasicValueHandler #########################
|
|
68
|
-
/**
|
|
69
|
-
* Sets value for NgSelect
|
|
70
|
-
* @param value - Value to be set
|
|
71
|
-
*/
|
|
72
|
-
setValue(value) {
|
|
73
|
-
this._useOptionsAsValue(value);
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
77
|
-
*/
|
|
78
|
-
initOptions() {
|
|
79
|
-
}
|
|
80
|
-
/**
|
|
81
|
-
* Explicitly runs invalidation of content (change detection)
|
|
82
|
-
*/
|
|
83
|
-
invalidateVisuals() {
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* Loads options
|
|
87
|
-
*/
|
|
88
|
-
_loadOptions() {
|
|
89
|
-
this._useOptionsAsValue(isBlank(this._unmappedValue) ? this.value : this._unmappedValue);
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Converts value to options
|
|
93
|
-
* @param value - Value to be changed to options
|
|
94
|
-
*/
|
|
95
|
-
_useOptionsAsValue(value) {
|
|
96
|
-
//set empty value
|
|
97
|
-
if (isBlank(value) || (Array.isArray(value) && !value.length)) {
|
|
98
|
-
this.selectedOptions = value;
|
|
99
|
-
this._clearSelected();
|
|
100
|
-
this._unmappedValue = null;
|
|
101
|
-
this._normalState.invalidateVisuals();
|
|
102
|
-
this.valueChange.emit();
|
|
103
|
-
return;
|
|
104
|
-
}
|
|
105
|
-
//no options available yet
|
|
106
|
-
if (!this._optionsGatherer.options || !this._optionsGatherer.options.length) {
|
|
107
|
-
this._unmappedValue = value;
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
if (this.pluginBus.selectOptions.multiple) {
|
|
111
|
-
if (Array.isArray(value)) {
|
|
112
|
-
const items = value;
|
|
113
|
-
this.selectedOptions = this._optionsGatherer.options.filter(itm => !!items.find(it => this.valueComparer(it, itm.value)));
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
throw new Error('Don`t you have redundant "multiple"?');
|
|
117
|
-
}
|
|
118
|
-
}
|
|
119
|
-
else {
|
|
120
|
-
if (Array.isArray(value)) {
|
|
121
|
-
throw new Error('Are you missing attribute "multiple"?');
|
|
122
|
-
}
|
|
123
|
-
else {
|
|
124
|
-
const item = value;
|
|
125
|
-
this.selectedOptions = this._optionsGatherer.options.find(itm => this.valueComparer(itm.value, item));
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
this._clearSelected();
|
|
129
|
-
this._markValueAsSelected();
|
|
130
|
-
this._unmappedValue = null;
|
|
131
|
-
this._normalState.invalidateVisuals();
|
|
132
|
-
this.valueChange.emit();
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
BasicValueHandlerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicValueHandlerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: VALUE_HANDLER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
-
BasicValueHandlerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: BasicValueHandlerComponent, selector: "ng-basic-value-handler", usesInheritance: true, ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
137
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: BasicValueHandlerComponent, decorators: [{
|
|
138
|
-
type: Component,
|
|
139
|
-
args: [{
|
|
140
|
-
selector: 'ng-basic-value-handler',
|
|
141
|
-
template: '',
|
|
142
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
143
|
-
}]
|
|
144
|
-
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
145
|
-
type: Inject,
|
|
146
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
147
|
-
}, {
|
|
148
|
-
type: Optional
|
|
149
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
150
|
-
type: Optional
|
|
151
|
-
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
152
|
-
type: Inject,
|
|
153
|
-
args: [VALUE_HANDLER_OPTIONS]
|
|
154
|
-
}, {
|
|
155
|
-
type: Optional
|
|
156
|
-
}] }]; } });
|
|
157
|
-
//# sourceMappingURL=basicValueHandler.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"basicValueHandler.component.js","sourceRoot":"","sources":["../../../../../src/plugins/valueHandler/basic/basicValueHandler.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC/F,OAAO,EAAC,MAAM,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAI/C,OAAO,EAAC,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AI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,CAAC;QACtC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;;uHA5KQ,0BAA0B,kBAwBf,0BAA0B,gGAG1B,qBAAqB;2GA3BhC,0BAA0B,qFAHzB,EAAE;2FAGH,0BAA0B;kBANtC,SAAS;mBACV;oBACI,QAAQ,EAAE,wBAAwB;oBAClC,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAyBgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,qBAAqB;;0BAAG,QAAQ","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef} from '@angular/core';\nimport {extend, isBlank} from '@jscrpt/common';\n\nimport {BasicValueHandlerOptions, BasicValueHandler} from './basicValueHandler.interface';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {VALUE_HANDLER_OPTIONS} from '../types';\nimport {ɵNgSelectOption, } from '../../../components/option';\nimport {ValueHandlerBase} from '../valueHandlerBase';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n//TODO - select _setValue, reject non existing\n\n/**\n * Default options for value handler\n * @internal\n */\nconst defaultOptions: BasicValueHandlerOptions =\n{\n};\n\n/**\n * Component used for handling current value of NgSelect\n */\n@Component(\n{\n selector: 'ng-basic-value-handler',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicValueHandlerComponent<TValue = any> extends ValueHandlerBase<TValue, BasicValueHandlerOptions> implements BasicValueHandler<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Backed up unmapped value that was set before options were obtained\n */\n protected _unmappedValue: TValue|TValue[];\n\n //######################### public properties - implementation of BasicValueHandler #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): BasicValueHandlerOptions\n {\n return this._options;\n }\n public set options(options: BasicValueHandlerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() ngSelectPlugins: NgSelectPluginInstances,\n @Optional() pluginBus: PluginBus<TValue>,\n pluginElement: ElementRef,\n @Inject(VALUE_HANDLER_OPTIONS) @Optional() options?: BasicValueHandlerOptions)\n {\n super(ngSelectPlugins, pluginElement, pluginBus);\n\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of BasicValueHandler #########################\n\n /**\n * Sets value for NgSelect\n * @param value - Value to be set\n */\n public setValue(value:TValue|TValue[]): void\n {\n this._useOptionsAsValue(value);\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public override initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public override invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets value \n */\n protected _setValue = (option: ɵNgSelectOption<TValue>) =>\n {\n //multiple values are allowed\n if(this.pluginBus.selectOptions.multiple)\n {\n if(!Array.isArray(this.selectedOptions))\n {\n this.selectedOptions = [];\n }\n\n if(Array.isArray(this.selectedOptions))\n {\n let index: number;\n\n //value exists, removing from list\n if((index = this.selectedOptions.indexOf(option)) >= 0)\n {\n this.selectedOptions.splice(index, 1);\n }\n //adding value\n else\n {\n this.selectedOptions.push(option);\n }\n\n this.selectedOptions = [...this.selectedOptions];\n }\n }\n else\n //only signle value allowed\n {\n this.selectedOptions = option;\n }\n\n this._clearSelected();\n this._markValueAsSelected();\n\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n }\n\n /**\n * Loads options\n */\n protected _loadOptions()\n {\n this._useOptionsAsValue(isBlank(this._unmappedValue) ? this.value : this._unmappedValue);\n }\n\n /**\n * Converts value to options\n * @param value - Value to be changed to options\n */\n protected _useOptionsAsValue(value: TValue|TValue[])\n {\n //set empty value\n if(isBlank(value) || (Array.isArray(value) && !value.length))\n {\n this.selectedOptions = value;\n\n this._clearSelected();\n this._unmappedValue = null;\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n\n return;\n }\n\n //no options available yet\n if(!this._optionsGatherer.options || !this._optionsGatherer.options.length)\n {\n this._unmappedValue = value;\n\n return;\n }\n\n if(this.pluginBus.selectOptions.multiple)\n {\n if(Array.isArray(value))\n {\n const items = value;\n\n this.selectedOptions = this._optionsGatherer.options.filter(itm => !!items.find(it => this.valueComparer(it, itm.value)));\n }\n else\n {\n throw new Error('Don`t you have redundant \"multiple\"?');\n }\n }\n else\n {\n if(Array.isArray(value))\n {\n throw new Error('Are you missing attribute \"multiple\"?');\n }\n else\n {\n const item = value;\n\n this.selectedOptions = this._optionsGatherer.options.find(itm => this.valueComparer(itm.value, item));\n }\n }\n\n this._clearSelected();\n this._markValueAsSelected();\n this._unmappedValue = null;\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n }\n}"]}
|