@anglr/select 10.0.0 → 11.0.1-beta.20220222062944
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 +18 -0
- package/elements/package.json +7 -6
- package/elements/src/components/ngSelectElements.component.d.ts +66 -63
- package/elements/src/components/ngSelectElements.component.d.ts.map +1 -1
- package/elements/src/components/ngSelectElements.interface.d.ts +46 -46
- package/elements/src/components/ngSelectElements.interface.d.ts.map +1 -1
- package/elements/src/index.d.ts +3 -3
- package/elements/src/modules/ngSelectElements.module.d.ts +20 -11
- package/elements/src/modules/ngSelectElements.module.d.ts.map +1 -1
- package/es2015/elements/src/components/ngSelectElements.component.js +187 -0
- package/es2015/elements/src/components/ngSelectElements.component.js.map +1 -0
- package/es2015/elements/src/components/ngSelectElements.interface.js +2 -0
- package/es2015/elements/src/components/ngSelectElements.interface.js.map +1 -0
- package/es2015/elements/src/index.js +4 -0
- package/es2015/elements/src/index.js.map +1 -0
- package/es2015/elements/src/modules/ngSelectElements.module.js +52 -0
- package/es2015/elements/src/modules/ngSelectElements.module.js.map +1 -0
- package/es2015/extensions/src/extensions/getValue.js +2 -0
- package/es2015/extensions/src/extensions/getValue.js.map +1 -0
- package/es2015/extensions/src/extensions/onFocus.js +2 -0
- package/es2015/extensions/src/extensions/onFocus.js.map +1 -0
- package/es2015/extensions/src/extensions/patchOptions.js +12 -0
- package/es2015/extensions/src/extensions/patchOptions.js.map +1 -0
- package/es2015/extensions/src/extensions/reinitializeOptions.js +15 -0
- package/es2015/extensions/src/extensions/reinitializeOptions.js.map +1 -0
- package/es2015/extensions/src/extensions/setReadonly.js +2 -0
- package/es2015/extensions/src/extensions/setReadonly.js.map +1 -0
- package/es2015/extensions/src/extensions/setValue.js +2 -0
- package/es2015/extensions/src/extensions/setValue.js.map +1 -0
- package/es2015/extensions/src/extensions/valueChange.js +2 -0
- package/es2015/extensions/src/extensions/valueChange.js.map +1 -0
- package/es2015/extensions/src/index.js +8 -0
- package/es2015/extensions/src/index.js.map +1 -0
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +74 -0
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +2 -0
- package/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -0
- package/es2015/material/src/components/basicDialogPopup/index.js +2 -0
- package/es2015/material/src/components/basicDialogPopup/index.js.map +1 -0
- package/es2015/material/src/components/basicDialogPopup/types.js +2 -0
- package/es2015/material/src/components/basicDialogPopup/types.js.map +1 -0
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +75 -0
- package/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
- package/es2015/material/src/directives/types.js +2 -0
- package/es2015/material/src/directives/types.js.map +1 -0
- package/es2015/material/src/index.js +8 -0
- package/es2015/material/src/index.js.map +1 -0
- package/es2015/material/src/modules/dialogPopup.module.js +43 -0
- package/es2015/material/src/modules/dialogPopup.module.js.map +1 -0
- package/es2015/material/src/modules/virtualEditPopup.module.js +33 -0
- package/es2015/material/src/modules/virtualEditPopup.module.js.map +1 -0
- package/es2015/material/src/plugins/popup/components.js +3 -0
- package/es2015/material/src/plugins/popup/components.js.map +1 -0
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +143 -0
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js +2 -0
- package/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -0
- package/es2015/material/src/plugins/popup/index.js +3 -0
- package/es2015/material/src/plugins/popup/index.js.map +1 -0
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +92 -0
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +2 -0
- package/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -0
- package/es2015/popperJs/src/index.js +4 -0
- package/es2015/popperJs/src/index.js.map +1 -0
- package/es2015/popperJs/src/modules/popperjsPositioner.module.js +23 -0
- package/es2015/popperJs/src/modules/popperjsPositioner.module.js.map +1 -0
- package/es2015/popperJs/src/plugins/positioner/components.js +2 -0
- package/es2015/popperJs/src/plugins/positioner/components.js.map +1 -0
- package/es2015/popperJs/src/plugins/positioner/index.js +2 -0
- package/es2015/popperJs/src/plugins/positioner/index.js.map +1 -0
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +151 -0
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js.map +1 -0
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +2 -0
- package/es2015/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js.map +1 -0
- package/es2015/src/components/option/index.js +3 -0
- package/es2015/src/components/option/index.js.map +1 -0
- package/es2015/src/components/option/optgroup.component.js +53 -0
- package/es2015/src/components/option/optgroup.component.js.map +1 -0
- package/es2015/src/components/option/optgroup.interface.js +2 -0
- package/es2015/src/components/option/optgroup.interface.js.map +1 -0
- package/es2015/src/components/option/option.component.js +38 -0
- package/es2015/src/components/option/option.component.js.map +1 -0
- package/es2015/src/components/option/option.interface.js +2 -0
- package/es2015/src/components/option/option.interface.js.map +1 -0
- package/es2015/src/components/select/index.js +2 -0
- package/es2015/src/components/select/index.js.map +1 -0
- package/es2015/src/components/select/select.component.js +605 -0
- package/es2015/src/components/select/select.component.js.map +1 -0
- package/es2015/src/components/select/select.interface.js +2 -0
- package/es2015/src/components/select/select.interface.js.map +1 -0
- package/es2015/src/components/select/types.js +6 -0
- package/es2015/src/components/select/types.js.map +1 -0
- package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
- package/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -0
- package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js +66 -0
- package/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
- package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +42 -0
- package/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
- package/es2015/src/index.js +40 -0
- package/es2015/src/index.js.map +1 -0
- package/es2015/src/index.ssr.js +10 -0
- package/es2015/src/index.ssr.js.map +1 -0
- package/es2015/src/misc/extensions/getValue.js +12 -0
- package/es2015/src/misc/extensions/getValue.js.map +1 -0
- package/es2015/src/misc/extensions/index.js +6 -0
- package/es2015/src/misc/extensions/index.js.map +1 -0
- package/es2015/src/misc/extensions/onFocus.js +10 -0
- package/es2015/src/misc/extensions/onFocus.js.map +1 -0
- package/es2015/src/misc/extensions/setReadonly.js +18 -0
- package/es2015/src/misc/extensions/setReadonly.js.map +1 -0
- package/es2015/src/misc/extensions/setValue.js +13 -0
- package/es2015/src/misc/extensions/setValue.js.map +1 -0
- package/es2015/src/misc/extensions/valueChange.js +12 -0
- package/es2015/src/misc/extensions/valueChange.js.map +1 -0
- package/es2015/src/misc/index.js +6 -0
- package/es2015/src/misc/index.js.map +1 -0
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js +163 -0
- package/es2015/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
- package/es2015/src/misc/ngSelectOptions.interface.js +2 -0
- package/es2015/src/misc/ngSelectOptions.interface.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js +83 -0
- package/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +2 -0
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +123 -0
- package/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +111 -0
- package/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js +2 -0
- package/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -0
- package/es2015/src/misc/optionsGatherer/types.js +4 -0
- package/es2015/src/misc/optionsGatherer/types.js.map +1 -0
- package/es2015/src/misc/plugin.interface.js +2 -0
- package/es2015/src/misc/plugin.interface.js.map +1 -0
- package/es2015/src/misc/pluginBus/pluginBus.interface.js +2 -0
- package/es2015/src/misc/pluginBus/pluginBus.interface.js.map +1 -0
- package/es2015/src/misc/pluginBus/pluginBus.js +44 -0
- package/es2015/src/misc/pluginBus/pluginBus.js.map +1 -0
- package/es2015/src/misc/templateGatherer.interface.js +2 -0
- package/es2015/src/misc/templateGatherer.interface.js.map +1 -0
- package/es2015/src/misc/types.js +34 -0
- package/es2015/src/misc/types.js.map +1 -0
- package/es2015/src/modules/ngSelect.module.js +92 -0
- package/es2015/src/modules/ngSelect.module.js.map +1 -0
- package/es2015/src/modules/ngSelectDynamic.module.js +20 -0
- package/es2015/src/modules/ngSelectDynamic.module.js.map +1 -0
- package/es2015/src/modules/ngSelectEdit.module.js +53 -0
- package/es2015/src/modules/ngSelectEdit.module.js.map +1 -0
- package/es2015/src/pipes/ngSelectHasValue.pipe.js +23 -0
- package/es2015/src/pipes/ngSelectHasValue.pipe.js.map +1 -0
- package/es2015/src/pipes/ngSelectValue.pipe.js +31 -0
- package/es2015/src/pipes/ngSelectValue.pipe.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +145 -0
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +2 -0
- package/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/components.js +3 -0
- package/es2015/src/plugins/keyboardHandler/components.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +196 -0
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +2 -0
- package/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/index.js +4 -0
- package/es2015/src/plugins/keyboardHandler/index.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js +2 -0
- package/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
- package/es2015/src/plugins/keyboardHandler/types.js +10 -0
- package/es2015/src/plugins/keyboardHandler/types.js.map +1 -0
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +169 -0
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +2 -0
- package/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +1 -0
- package/es2015/src/plugins/liveSearch/components.js +4 -0
- package/es2015/src/plugins/liveSearch/components.js.map +1 -0
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +318 -0
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js +2 -0
- package/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +1 -0
- package/es2015/src/plugins/liveSearch/index.js +5 -0
- package/es2015/src/plugins/liveSearch/index.js.map +1 -0
- package/es2015/src/plugins/liveSearch/liveSearch.interface.js +2 -0
- package/es2015/src/plugins/liveSearch/liveSearch.interface.js.map +1 -0
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +64 -0
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js +2 -0
- package/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +1 -0
- package/es2015/src/plugins/liveSearch/types.js +10 -0
- package/es2015/src/plugins/liveSearch/types.js.map +1 -0
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
- package/es2015/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
- package/es2015/src/plugins/normalState/basic/basicNormalState.interface.js +2 -0
- package/es2015/src/plugins/normalState/basic/basicNormalState.interface.js.map +1 -0
- package/es2015/src/plugins/normalState/components.js +4 -0
- package/es2015/src/plugins/normalState/components.js.map +1 -0
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js +89 -0
- package/es2015/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
- package/es2015/src/plugins/normalState/edit/editNormalState.interface.js +2 -0
- package/es2015/src/plugins/normalState/edit/editNormalState.interface.js.map +1 -0
- package/es2015/src/plugins/normalState/index.js +4 -0
- package/es2015/src/plugins/normalState/index.js.map +1 -0
- package/es2015/src/plugins/normalState/normalState.interface.js +2 -0
- package/es2015/src/plugins/normalState/normalState.interface.js.map +1 -0
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js +93 -0
- package/es2015/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
- package/es2015/src/plugins/normalState/types.js +10 -0
- package/es2015/src/plugins/normalState/types.js.map +1 -0
- package/es2015/src/plugins/popup/basic/basicPopup.component.js +62 -0
- package/es2015/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
- package/es2015/src/plugins/popup/basic/basicPopup.interface.js +2 -0
- package/es2015/src/plugins/popup/basic/basicPopup.interface.js.map +1 -0
- package/es2015/src/plugins/popup/component.js +4 -0
- package/es2015/src/plugins/popup/component.js.map +1 -0
- package/es2015/src/plugins/popup/edit/editPopup.component.js +85 -0
- package/es2015/src/plugins/popup/edit/editPopup.component.js.map +1 -0
- package/es2015/src/plugins/popup/edit/editPopup.interface.js +2 -0
- package/es2015/src/plugins/popup/edit/editPopup.interface.js.map +1 -0
- package/es2015/src/plugins/popup/index.js +4 -0
- package/es2015/src/plugins/popup/index.js.map +1 -0
- package/es2015/src/plugins/popup/popup.interface.js +2 -0
- package/es2015/src/plugins/popup/popup.interface.js.map +1 -0
- package/es2015/src/plugins/popup/popupAbstract.component.js +203 -0
- package/es2015/src/plugins/popup/popupAbstract.component.js.map +1 -0
- package/es2015/src/plugins/popup/types.js +10 -0
- package/es2015/src/plugins/popup/types.js.map +1 -0
- package/es2015/src/plugins/positioner/basic/basicPositioner.component.js +193 -0
- package/es2015/src/plugins/positioner/basic/basicPositioner.component.js.map +1 -0
- package/es2015/src/plugins/positioner/basic/basicPositioner.interface.js +2 -0
- package/es2015/src/plugins/positioner/basic/basicPositioner.interface.js.map +1 -0
- package/es2015/src/plugins/positioner/basic/types.js +36 -0
- package/es2015/src/plugins/positioner/basic/types.js.map +1 -0
- package/es2015/src/plugins/positioner/components.js +3 -0
- package/es2015/src/plugins/positioner/components.js.map +1 -0
- package/es2015/src/plugins/positioner/index.js +4 -0
- package/es2015/src/plugins/positioner/index.js.map +1 -0
- package/es2015/src/plugins/positioner/no/noPositioner.component.js +68 -0
- package/es2015/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
- package/es2015/src/plugins/positioner/no/noPositioner.interface.js +2 -0
- package/es2015/src/plugins/positioner/no/noPositioner.interface.js.map +1 -0
- package/es2015/src/plugins/positioner/positioner.interface.js +2 -0
- package/es2015/src/plugins/positioner/positioner.interface.js.map +1 -0
- package/es2015/src/plugins/positioner/types.js +11 -0
- package/es2015/src/plugins/positioner/types.js.map +1 -0
- package/es2015/src/plugins/readonlyState/index.js +2 -0
- package/es2015/src/plugins/readonlyState/index.js.map +1 -0
- package/es2015/src/plugins/readonlyState/readonlyState.interface.js +2 -0
- package/es2015/src/plugins/readonlyState/readonlyState.interface.js.map +1 -0
- package/es2015/src/plugins/readonlyState/types.js +10 -0
- package/es2015/src/plugins/readonlyState/types.js.map +1 -0
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +157 -0
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js +2 -0
- package/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +1 -0
- package/es2015/src/plugins/valueHandler/components.js +3 -0
- package/es2015/src/plugins/valueHandler/components.js.map +1 -0
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +182 -0
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +2 -0
- package/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +1 -0
- package/es2015/src/plugins/valueHandler/index.js +5 -0
- package/es2015/src/plugins/valueHandler/index.js.map +1 -0
- package/es2015/src/plugins/valueHandler/types.js +10 -0
- package/es2015/src/plugins/valueHandler/types.js.map +1 -0
- package/es2015/src/plugins/valueHandler/valueHandler.interface.js +2 -0
- package/es2015/src/plugins/valueHandler/valueHandler.interface.js.map +1 -0
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js +150 -0
- package/es2015/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
- package/es2020/elements/src/components/ngSelectElements.component.js +187 -0
- package/es2020/elements/src/components/ngSelectElements.component.js.map +1 -0
- package/es2020/elements/src/components/ngSelectElements.interface.js +2 -0
- package/es2020/elements/src/components/ngSelectElements.interface.js.map +1 -0
- package/es2020/elements/src/index.js +4 -0
- package/es2020/elements/src/index.js.map +1 -0
- package/es2020/elements/src/modules/ngSelectElements.module.js +52 -0
- package/es2020/elements/src/modules/ngSelectElements.module.js.map +1 -0
- package/es2020/extensions/src/extensions/getValue.js +2 -0
- package/es2020/extensions/src/extensions/getValue.js.map +1 -0
- package/es2020/extensions/src/extensions/onFocus.js +2 -0
- package/es2020/extensions/src/extensions/onFocus.js.map +1 -0
- package/es2020/extensions/src/extensions/patchOptions.js +12 -0
- package/es2020/extensions/src/extensions/patchOptions.js.map +1 -0
- package/es2020/extensions/src/extensions/reinitializeOptions.js +15 -0
- package/es2020/extensions/src/extensions/reinitializeOptions.js.map +1 -0
- package/es2020/extensions/src/extensions/setReadonly.js +2 -0
- package/es2020/extensions/src/extensions/setReadonly.js.map +1 -0
- package/es2020/extensions/src/extensions/setValue.js +2 -0
- package/es2020/extensions/src/extensions/setValue.js.map +1 -0
- package/es2020/extensions/src/extensions/valueChange.js +2 -0
- package/es2020/extensions/src/extensions/valueChange.js.map +1 -0
- package/es2020/extensions/src/index.js +8 -0
- package/es2020/extensions/src/index.js.map +1 -0
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js +73 -0
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -0
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +2 -0
- package/es2020/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -0
- package/es2020/material/src/components/basicDialogPopup/index.js +2 -0
- package/es2020/material/src/components/basicDialogPopup/index.js.map +1 -0
- package/es2020/material/src/components/basicDialogPopup/types.js +2 -0
- package/es2020/material/src/components/basicDialogPopup/types.js.map +1 -0
- package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js +75 -0
- package/es2020/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -0
- package/es2020/material/src/directives/types.js +2 -0
- package/es2020/material/src/directives/types.js.map +1 -0
- package/es2020/material/src/index.js +8 -0
- package/es2020/material/src/index.js.map +1 -0
- package/es2020/material/src/modules/dialogPopup.module.js +43 -0
- package/es2020/material/src/modules/dialogPopup.module.js.map +1 -0
- package/es2020/material/src/modules/virtualEditPopup.module.js +33 -0
- package/es2020/material/src/modules/virtualEditPopup.module.js.map +1 -0
- package/es2020/material/src/plugins/popup/components.js +3 -0
- package/es2020/material/src/plugins/popup/components.js.map +1 -0
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js +140 -0
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -0
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js +2 -0
- package/es2020/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -0
- package/es2020/material/src/plugins/popup/index.js +3 -0
- package/es2020/material/src/plugins/popup/index.js.map +1 -0
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +89 -0
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -0
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +2 -0
- package/es2020/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -0
- package/es2020/popperJs/src/index.js +4 -0
- package/es2020/popperJs/src/index.js.map +1 -0
- package/es2020/popperJs/src/modules/popperjsPositioner.module.js +23 -0
- package/es2020/popperJs/src/modules/popperjsPositioner.module.js.map +1 -0
- package/es2020/popperJs/src/plugins/positioner/components.js +2 -0
- package/es2020/popperJs/src/plugins/positioner/components.js.map +1 -0
- package/es2020/popperJs/src/plugins/positioner/index.js +2 -0
- package/es2020/popperJs/src/plugins/positioner/index.js.map +1 -0
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +148 -0
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.js.map +1 -0
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +2 -0
- package/es2020/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js.map +1 -0
- package/es2020/src/components/option/index.js +3 -0
- package/es2020/src/components/option/index.js.map +1 -0
- package/es2020/src/components/option/optgroup.component.js +53 -0
- package/es2020/src/components/option/optgroup.component.js.map +1 -0
- package/es2020/src/components/option/optgroup.interface.js +2 -0
- package/es2020/src/components/option/optgroup.interface.js.map +1 -0
- package/es2020/src/components/option/option.component.js +38 -0
- package/es2020/src/components/option/option.component.js.map +1 -0
- package/es2020/src/components/option/option.interface.js +2 -0
- package/es2020/src/components/option/option.interface.js.map +1 -0
- package/es2020/src/components/select/index.js +2 -0
- package/es2020/src/components/select/index.js.map +1 -0
- package/es2020/src/components/select/select.component.js +603 -0
- package/es2020/src/components/select/select.component.js.map +1 -0
- package/es2020/src/components/select/select.interface.js +2 -0
- package/es2020/src/components/select/select.interface.js.map +1 -0
- package/es2020/src/components/select/types.js +6 -0
- package/es2020/src/components/select/types.js.map +1 -0
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +25 -0
- package/es2020/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +1 -0
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js +66 -0
- package/es2020/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +1 -0
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +42 -0
- package/es2020/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +1 -0
- package/es2020/src/index.js +40 -0
- package/es2020/src/index.js.map +1 -0
- package/es2020/src/index.ssr.js +10 -0
- package/es2020/src/index.ssr.js.map +1 -0
- package/es2020/src/misc/extensions/getValue.js +12 -0
- package/es2020/src/misc/extensions/getValue.js.map +1 -0
- package/es2020/src/misc/extensions/index.js +6 -0
- package/es2020/src/misc/extensions/index.js.map +1 -0
- package/es2020/src/misc/extensions/onFocus.js +10 -0
- package/es2020/src/misc/extensions/onFocus.js.map +1 -0
- package/es2020/src/misc/extensions/setReadonly.js +18 -0
- package/es2020/src/misc/extensions/setReadonly.js.map +1 -0
- package/es2020/src/misc/extensions/setValue.js +13 -0
- package/es2020/src/misc/extensions/setValue.js.map +1 -0
- package/es2020/src/misc/extensions/valueChange.js +12 -0
- package/es2020/src/misc/extensions/valueChange.js.map +1 -0
- package/es2020/src/misc/index.js +6 -0
- package/es2020/src/misc/index.js.map +1 -0
- package/es2020/src/misc/ngSelectControlValueAccessor.directive.js +162 -0
- package/es2020/src/misc/ngSelectControlValueAccessor.directive.js.map +1 -0
- package/es2020/src/misc/ngSelectOptions.interface.js +2 -0
- package/es2020/src/misc/ngSelectOptions.interface.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js +83 -0
- package/es2020/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +2 -0
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js +118 -0
- package/es2020/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js +110 -0
- package/es2020/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js +2 -0
- package/es2020/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -0
- package/es2020/src/misc/optionsGatherer/types.js +4 -0
- package/es2020/src/misc/optionsGatherer/types.js.map +1 -0
- package/es2020/src/misc/plugin.interface.js +2 -0
- package/es2020/src/misc/plugin.interface.js.map +1 -0
- package/es2020/src/misc/pluginBus/pluginBus.interface.js +2 -0
- package/es2020/src/misc/pluginBus/pluginBus.interface.js.map +1 -0
- package/es2020/src/misc/pluginBus/pluginBus.js +44 -0
- package/es2020/src/misc/pluginBus/pluginBus.js.map +1 -0
- package/es2020/src/misc/templateGatherer.interface.js +2 -0
- package/es2020/src/misc/templateGatherer.interface.js.map +1 -0
- package/es2020/src/misc/types.js +34 -0
- package/es2020/src/misc/types.js.map +1 -0
- package/es2020/src/modules/ngSelect.module.js +92 -0
- package/es2020/src/modules/ngSelect.module.js.map +1 -0
- package/es2020/src/modules/ngSelectDynamic.module.js +20 -0
- package/es2020/src/modules/ngSelectDynamic.module.js.map +1 -0
- package/es2020/src/modules/ngSelectEdit.module.js +53 -0
- package/es2020/src/modules/ngSelectEdit.module.js.map +1 -0
- package/es2020/src/pipes/ngSelectHasValue.pipe.js +23 -0
- package/es2020/src/pipes/ngSelectHasValue.pipe.js.map +1 -0
- package/es2020/src/pipes/ngSelectValue.pipe.js +31 -0
- package/es2020/src/pipes/ngSelectValue.pipe.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +145 -0
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +2 -0
- package/es2020/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/components.js +3 -0
- package/es2020/src/plugins/keyboardHandler/components.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +196 -0
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +2 -0
- package/es2020/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/index.js +4 -0
- package/es2020/src/plugins/keyboardHandler/index.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js +2 -0
- package/es2020/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
- package/es2020/src/plugins/keyboardHandler/types.js +10 -0
- package/es2020/src/plugins/keyboardHandler/types.js.map +1 -0
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js +167 -0
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +1 -0
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +2 -0
- package/es2020/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +1 -0
- package/es2020/src/plugins/liveSearch/components.js +4 -0
- package/es2020/src/plugins/liveSearch/components.js.map +1 -0
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js +315 -0
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +1 -0
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js +2 -0
- package/es2020/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +1 -0
- package/es2020/src/plugins/liveSearch/index.js +5 -0
- package/es2020/src/plugins/liveSearch/index.js.map +1 -0
- package/es2020/src/plugins/liveSearch/liveSearch.interface.js +2 -0
- package/es2020/src/plugins/liveSearch/liveSearch.interface.js.map +1 -0
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js +64 -0
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.component.js.map +1 -0
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js +2 -0
- package/es2020/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +1 -0
- package/es2020/src/plugins/liveSearch/types.js +10 -0
- package/es2020/src/plugins/liveSearch/types.js.map +1 -0
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js +58 -0
- package/es2020/src/plugins/normalState/basic/basicNormalState.component.js.map +1 -0
- package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js +2 -0
- package/es2020/src/plugins/normalState/basic/basicNormalState.interface.js.map +1 -0
- package/es2020/src/plugins/normalState/components.js +4 -0
- package/es2020/src/plugins/normalState/components.js.map +1 -0
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js +88 -0
- package/es2020/src/plugins/normalState/edit/editNormalState.component.js.map +1 -0
- package/es2020/src/plugins/normalState/edit/editNormalState.interface.js +2 -0
- package/es2020/src/plugins/normalState/edit/editNormalState.interface.js.map +1 -0
- package/es2020/src/plugins/normalState/index.js +4 -0
- package/es2020/src/plugins/normalState/index.js.map +1 -0
- package/es2020/src/plugins/normalState/normalState.interface.js +2 -0
- package/es2020/src/plugins/normalState/normalState.interface.js.map +1 -0
- package/es2020/src/plugins/normalState/normalStateAbstract.component.js +92 -0
- package/es2020/src/plugins/normalState/normalStateAbstract.component.js.map +1 -0
- package/es2020/src/plugins/normalState/types.js +10 -0
- package/es2020/src/plugins/normalState/types.js.map +1 -0
- package/es2020/src/plugins/popup/basic/basicPopup.component.js +62 -0
- package/es2020/src/plugins/popup/basic/basicPopup.component.js.map +1 -0
- package/es2020/src/plugins/popup/basic/basicPopup.interface.js +2 -0
- package/es2020/src/plugins/popup/basic/basicPopup.interface.js.map +1 -0
- package/es2020/src/plugins/popup/component.js +4 -0
- package/es2020/src/plugins/popup/component.js.map +1 -0
- package/es2020/src/plugins/popup/edit/editPopup.component.js +85 -0
- package/es2020/src/plugins/popup/edit/editPopup.component.js.map +1 -0
- package/es2020/src/plugins/popup/edit/editPopup.interface.js +2 -0
- package/es2020/src/plugins/popup/edit/editPopup.interface.js.map +1 -0
- package/es2020/src/plugins/popup/index.js +4 -0
- package/es2020/src/plugins/popup/index.js.map +1 -0
- package/es2020/src/plugins/popup/popup.interface.js +2 -0
- package/es2020/src/plugins/popup/popup.interface.js.map +1 -0
- package/es2020/src/plugins/popup/popupAbstract.component.js +202 -0
- package/es2020/src/plugins/popup/popupAbstract.component.js.map +1 -0
- package/es2020/src/plugins/popup/types.js +10 -0
- package/es2020/src/plugins/popup/types.js.map +1 -0
- package/es2020/src/plugins/positioner/basic/basicPositioner.component.js +190 -0
- package/es2020/src/plugins/positioner/basic/basicPositioner.component.js.map +1 -0
- package/es2020/src/plugins/positioner/basic/basicPositioner.interface.js +2 -0
- package/es2020/src/plugins/positioner/basic/basicPositioner.interface.js.map +1 -0
- package/es2020/src/plugins/positioner/basic/types.js +36 -0
- package/es2020/src/plugins/positioner/basic/types.js.map +1 -0
- package/es2020/src/plugins/positioner/components.js +3 -0
- package/es2020/src/plugins/positioner/components.js.map +1 -0
- package/es2020/src/plugins/positioner/index.js +4 -0
- package/es2020/src/plugins/positioner/index.js.map +1 -0
- package/es2020/src/plugins/positioner/no/noPositioner.component.js +68 -0
- package/es2020/src/plugins/positioner/no/noPositioner.component.js.map +1 -0
- package/es2020/src/plugins/positioner/no/noPositioner.interface.js +2 -0
- package/es2020/src/plugins/positioner/no/noPositioner.interface.js.map +1 -0
- package/es2020/src/plugins/positioner/positioner.interface.js +2 -0
- package/es2020/src/plugins/positioner/positioner.interface.js.map +1 -0
- package/es2020/src/plugins/positioner/types.js +11 -0
- package/es2020/src/plugins/positioner/types.js.map +1 -0
- package/es2020/src/plugins/readonlyState/index.js +2 -0
- package/es2020/src/plugins/readonlyState/index.js.map +1 -0
- package/es2020/src/plugins/readonlyState/readonlyState.interface.js +2 -0
- package/es2020/src/plugins/readonlyState/readonlyState.interface.js.map +1 -0
- package/es2020/src/plugins/readonlyState/types.js +10 -0
- package/es2020/src/plugins/readonlyState/types.js.map +1 -0
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js +157 -0
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +1 -0
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js +2 -0
- package/es2020/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +1 -0
- package/es2020/src/plugins/valueHandler/components.js +3 -0
- package/es2020/src/plugins/valueHandler/components.js.map +1 -0
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +177 -0
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +1 -0
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +2 -0
- package/es2020/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +1 -0
- package/es2020/src/plugins/valueHandler/index.js +5 -0
- package/es2020/src/plugins/valueHandler/index.js.map +1 -0
- package/es2020/src/plugins/valueHandler/types.js +10 -0
- package/es2020/src/plugins/valueHandler/types.js.map +1 -0
- package/es2020/src/plugins/valueHandler/valueHandler.interface.js +2 -0
- package/es2020/src/plugins/valueHandler/valueHandler.interface.js.map +1 -0
- package/es2020/src/plugins/valueHandler/valueHandlerBase.js +145 -0
- package/es2020/src/plugins/valueHandler/valueHandlerBase.js.map +1 -0
- package/extensions/package.json +7 -6
- package/extensions/src/extensions/getValue.d.ts +1 -1
- package/extensions/src/extensions/onFocus.d.ts +1 -1
- package/extensions/src/extensions/patchOptions.d.ts +6 -6
- package/extensions/src/extensions/reinitializeOptions.d.ts +6 -6
- package/extensions/src/extensions/setReadonly.d.ts +1 -1
- package/extensions/src/extensions/setValue.d.ts +1 -1
- package/extensions/src/extensions/valueChange.d.ts +1 -1
- package/extensions/src/index.d.ts +8 -0
- package/extensions/src/index.d.ts.map +1 -0
- package/material/package.json +7 -7
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +46 -43
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts +23 -23
- package/material/src/components/basicDialogPopup/index.d.ts +1 -1
- package/material/src/components/basicDialogPopup/types.d.ts +1 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +26 -23
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts.map +1 -1
- package/material/src/directives/types.d.ts +1 -1
- package/material/src/index.d.ts +8 -0
- package/material/src/index.d.ts.map +1 -0
- package/material/src/modules/dialogPopup.module.d.ts +14 -5
- package/material/src/modules/dialogPopup.module.d.ts.map +1 -1
- package/material/src/modules/virtualEditPopup.module.d.ts +12 -5
- package/material/src/modules/virtualEditPopup.module.d.ts.map +1 -1
- package/material/src/plugins/popup/components.d.ts +2 -2
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +82 -79
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts +59 -59
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts.map +1 -1
- package/material/src/plugins/popup/index.d.ts +2 -2
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +29 -26
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts +16 -16
- package/package.json +123 -63
- package/popperJs/package.json +8 -8
- package/popperJs/src/index.d.ts +4 -0
- package/popperJs/src/index.d.ts.map +1 -0
- package/popperJs/src/modules/popperjsPositioner.module.d.ts +10 -5
- package/popperJs/src/modules/popperjsPositioner.module.d.ts.map +1 -1
- package/popperJs/src/plugins/positioner/components.d.ts +1 -1
- package/popperJs/src/plugins/positioner/index.d.ts +1 -1
- package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.d.ts +77 -74
- package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.d.ts.map +1 -1
- package/popperJs/src/plugins/positioner/popperJs/popperjsPositioner.interface.d.ts +11 -11
- package/src/components/option/index.d.ts +2 -2
- package/src/components/option/optgroup.component.d.ts +36 -33
- package/src/components/option/optgroup.component.d.ts.map +1 -1
- package/src/components/option/optgroup.interface.d.ts +19 -19
- package/src/components/option/option.component.d.ts +29 -26
- package/src/components/option/option.component.d.ts.map +1 -1
- package/src/components/option/option.interface.d.ts +30 -30
- package/src/components/select/index.d.ts +1 -1
- package/src/components/select/select.component.d.ts +255 -270
- package/src/components/select/select.component.d.ts.map +1 -1
- package/src/components/select/select.interface.d.ts +67 -67
- package/src/components/select/types.d.ts +6 -6
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +10 -7
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts.map +1 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +10 -7
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts.map +1 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +20 -17
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts.map +1 -1
- package/src/index.d.ts +40 -0
- package/src/index.d.ts.map +1 -0
- package/src/index.ssr.d.ts +1 -0
- package/src/index.ssr.d.ts.map +1 -0
- package/src/misc/extensions/getValue.d.ts +6 -5
- package/src/misc/extensions/getValue.d.ts.map +1 -1
- package/src/misc/extensions/index.d.ts +5 -5
- package/src/misc/extensions/onFocus.d.ts +7 -6
- package/src/misc/extensions/onFocus.d.ts.map +1 -1
- package/src/misc/extensions/setReadonly.d.ts +7 -6
- package/src/misc/extensions/setReadonly.d.ts.map +1 -1
- package/src/misc/extensions/setValue.d.ts +7 -6
- package/src/misc/extensions/setValue.d.ts.map +1 -1
- package/src/misc/extensions/valueChange.d.ts +7 -6
- package/src/misc/extensions/valueChange.d.ts.map +1 -1
- package/src/misc/index.d.ts +5 -5
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts +62 -64
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts.map +1 -1
- package/src/misc/ngSelectOptions.interface.d.ts +86 -86
- package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts +69 -69
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts +85 -85
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts +28 -28
- package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts +72 -72
- package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts +52 -52
- package/src/misc/optionsGatherer/types.d.ts +3 -3
- package/src/misc/plugin.interface.d.ts +107 -107
- package/src/misc/plugin.interface.d.ts.map +1 -1
- package/src/misc/pluginBus/pluginBus.d.ts +48 -45
- package/src/misc/pluginBus/pluginBus.d.ts.map +1 -1
- package/src/misc/pluginBus/pluginBus.interface.d.ts +35 -35
- package/src/misc/templateGatherer.interface.d.ts +16 -16
- package/src/misc/types.d.ts +41 -41
- package/src/modules/ngSelect.module.d.ts +27 -5
- package/src/modules/ngSelect.module.d.ts.map +1 -1
- package/src/modules/ngSelectDynamic.module.d.ts +10 -5
- package/src/modules/ngSelectDynamic.module.d.ts.map +1 -1
- package/src/modules/ngSelectEdit.module.d.ts +16 -5
- package/src/modules/ngSelectEdit.module.d.ts.map +1 -1
- package/src/pipes/ngSelectHasValue.pipe.d.ts +15 -12
- package/src/pipes/ngSelectHasValue.pipe.d.ts.map +1 -1
- package/src/pipes/ngSelectValue.pipe.d.ts +18 -15
- package/src/pipes/ngSelectValue.pipe.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +57 -54
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts +11 -11
- package/src/plugins/keyboardHandler/components.d.ts +2 -2
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +67 -64
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts +11 -11
- package/src/plugins/keyboardHandler/index.d.ts +3 -3
- package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts +11 -11
- package/src/plugins/keyboardHandler/types.d.ts +10 -10
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +101 -98
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts +28 -28
- package/src/plugins/liveSearch/components.d.ts +3 -3
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +144 -141
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts +36 -36
- package/src/plugins/liveSearch/index.d.ts +4 -4
- package/src/plugins/liveSearch/liveSearch.interface.d.ts +37 -37
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +53 -50
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +1 -1
- package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts +11 -11
- package/src/plugins/liveSearch/types.d.ts +10 -10
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts +16 -13
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/basic/basicNormalState.interface.d.ts +28 -28
- package/src/plugins/normalState/components.d.ts +3 -3
- package/src/plugins/normalState/edit/editNormalState.component.d.ts +25 -22
- package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +1 -1
- package/src/plugins/normalState/edit/editNormalState.interface.d.ts +52 -52
- package/src/plugins/normalState/index.d.ts +3 -3
- package/src/plugins/normalState/normalState.interface.d.ts +48 -48
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +69 -66
- package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +1 -1
- package/src/plugins/normalState/types.d.ts +10 -10
- package/src/plugins/popup/basic/basicPopup.component.d.ts +16 -13
- package/src/plugins/popup/basic/basicPopup.component.d.ts.map +1 -1
- package/src/plugins/popup/basic/basicPopup.interface.d.ts +32 -32
- package/src/plugins/popup/component.d.ts +3 -3
- package/src/plugins/popup/edit/editPopup.component.d.ts +31 -28
- package/src/plugins/popup/edit/editPopup.component.d.ts.map +1 -1
- package/src/plugins/popup/edit/editPopup.interface.d.ts +32 -32
- package/src/plugins/popup/index.d.ts +3 -3
- package/src/plugins/popup/popup.interface.d.ts +51 -51
- package/src/plugins/popup/popupAbstract.component.d.ts +133 -130
- package/src/plugins/popup/popupAbstract.component.d.ts.map +1 -1
- package/src/plugins/popup/types.d.ts +10 -10
- package/src/plugins/positioner/basic/basicPositioner.component.d.ts +89 -86
- package/src/plugins/positioner/basic/basicPositioner.component.d.ts.map +1 -1
- package/src/plugins/positioner/basic/basicPositioner.interface.d.ts +28 -28
- package/src/plugins/positioner/basic/types.d.ts +21 -18
- package/src/plugins/positioner/basic/types.d.ts.map +1 -1
- package/src/plugins/positioner/components.d.ts +2 -2
- package/src/plugins/positioner/index.d.ts +3 -3
- package/src/plugins/positioner/no/noPositioner.component.d.ts +41 -38
- package/src/plugins/positioner/no/noPositioner.component.d.ts.map +1 -1
- package/src/plugins/positioner/no/noPositioner.interface.d.ts +11 -11
- package/src/plugins/positioner/positioner.interface.d.ts +20 -20
- package/src/plugins/positioner/positioner.interface.d.ts.map +1 -1
- package/src/plugins/positioner/types.d.ts +11 -11
- package/src/plugins/positioner/types.d.ts.map +1 -1
- package/src/plugins/readonlyState/index.d.ts +1 -1
- package/src/plugins/readonlyState/readonlyState.interface.d.ts +11 -11
- package/src/plugins/readonlyState/types.d.ts +10 -10
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +50 -47
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts +11 -11
- package/src/plugins/valueHandler/components.d.ts +2 -2
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +51 -48
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +1 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts +20 -20
- package/src/plugins/valueHandler/index.d.ts +4 -4
- package/src/plugins/valueHandler/types.d.ts +10 -10
- package/src/plugins/valueHandler/valueHandler.interface.d.ts +30 -30
- package/src/plugins/valueHandler/valueHandlerBase.d.ts +114 -111
- package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +1 -1
- package/version.bak +1 -1
- package/appveyor.yml +0 -67
- package/dist/es2015/public_api.js +0 -7
- package/dist/es2015/select.js +0 -14
- package/dist/es2015/src/components/option/index.js +0 -8
- package/dist/es2015/src/components/option/optgroup.component.js +0 -80
- package/dist/es2015/src/components/option/optgroup.interface.js +0 -29
- package/dist/es2015/src/components/option/option.component.js +0 -68
- package/dist/es2015/src/components/option/option.interface.js +0 -47
- package/dist/es2015/src/components/select/index.js +0 -7
- package/dist/es2015/src/components/select/select.component.js +0 -867
- package/dist/es2015/src/components/select/select.interface.js +0 -77
- package/dist/es2015/src/components/select/types.js +0 -12
- package/dist/es2015/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -32
- package/dist/es2015/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -58
- package/dist/es2015/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -63
- package/dist/es2015/src/misc/extensions/getValue.js +0 -23
- package/dist/es2015/src/misc/extensions/index.js +0 -11
- package/dist/es2015/src/misc/extensions/onFocus.js +0 -21
- package/dist/es2015/src/misc/extensions/setReadonly.js +0 -28
- package/dist/es2015/src/misc/extensions/setValue.js +0 -24
- package/dist/es2015/src/misc/extensions/valueChange.js +0 -27
- package/dist/es2015/src/misc/index.js +0 -11
- package/dist/es2015/src/misc/ngSelectControlValueAccessor.directive.js +0 -254
- package/dist/es2015/src/misc/ngSelectOptions.interface.js +0 -99
- package/dist/es2015/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -157
- package/dist/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -35
- package/dist/es2015/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -230
- package/dist/es2015/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -201
- package/dist/es2015/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -65
- package/dist/es2015/src/misc/optionsGatherer/types.js +0 -9
- package/dist/es2015/src/misc/plugin.interface.js +0 -132
- package/dist/es2015/src/misc/pluginBus/pluginBus.interface.js +0 -48
- package/dist/es2015/src/misc/pluginBus/pluginBus.js +0 -95
- package/dist/es2015/src/misc/templateGatherer.interface.js +0 -23
- package/dist/es2015/src/misc/types.js +0 -47
- package/dist/es2015/src/modules/ngSelect.module.js +0 -66
- package/dist/es2015/src/modules/ngSelectDynamic.module.js +0 -20
- package/dist/es2015/src/modules/ngSelectEdit.module.js +0 -41
- package/dist/es2015/src/pipes/ngSelectHasValue.pipe.js +0 -26
- package/dist/es2015/src/pipes/ngSelectValue.pipe.js +0 -38
- package/dist/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -201
- package/dist/es2015/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -16
- package/dist/es2015/src/plugins/keyboardHandler/components.js +0 -8
- package/dist/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -272
- package/dist/es2015/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -16
- package/dist/es2015/src/plugins/keyboardHandler/index.js +0 -9
- package/dist/es2015/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -16
- package/dist/es2015/src/plugins/keyboardHandler/types.js +0 -17
- package/dist/es2015/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -277
- package/dist/es2015/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -40
- package/dist/es2015/src/plugins/liveSearch/components.js +0 -9
- package/dist/es2015/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -494
- package/dist/es2015/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -50
- package/dist/es2015/src/plugins/liveSearch/index.js +0 -10
- package/dist/es2015/src/plugins/liveSearch/liveSearch.interface.js +0 -53
- package/dist/es2015/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -109
- package/dist/es2015/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -16
- package/dist/es2015/src/plugins/liveSearch/types.js +0 -17
- package/dist/es2015/src/plugins/normalState/basic/basicNormalState.component.js +0 -71
- package/dist/es2015/src/plugins/normalState/basic/basicNormalState.interface.js +0 -39
- package/dist/es2015/src/plugins/normalState/components.js +0 -9
- package/dist/es2015/src/plugins/normalState/edit/editNormalState.component.js +0 -108
- package/dist/es2015/src/plugins/normalState/edit/editNormalState.interface.js +0 -71
- package/dist/es2015/src/plugins/normalState/index.js +0 -9
- package/dist/es2015/src/plugins/normalState/normalState.interface.js +0 -59
- package/dist/es2015/src/plugins/normalState/normalStateAbstract.component.js +0 -178
- package/dist/es2015/src/plugins/normalState/types.js +0 -17
- package/dist/es2015/src/plugins/popup/basic/basicPopup.component.js +0 -68
- package/dist/es2015/src/plugins/popup/basic/basicPopup.interface.js +0 -43
- package/dist/es2015/src/plugins/popup/component.js +0 -9
- package/dist/es2015/src/plugins/popup/edit/editPopup.component.js +0 -100
- package/dist/es2015/src/plugins/popup/edit/editPopup.interface.js +0 -43
- package/dist/es2015/src/plugins/popup/index.js +0 -9
- package/dist/es2015/src/plugins/popup/popup.interface.js +0 -70
- package/dist/es2015/src/plugins/popup/popupAbstract.component.js +0 -383
- package/dist/es2015/src/plugins/popup/types.js +0 -17
- package/dist/es2015/src/plugins/positioner/basic/basicPositioner.component.js +0 -302
- package/dist/es2015/src/plugins/positioner/basic/basicPositioner.interface.js +0 -38
- package/dist/es2015/src/plugins/positioner/basic/types.js +0 -52
- package/dist/es2015/src/plugins/positioner/components.js +0 -8
- package/dist/es2015/src/plugins/positioner/index.js +0 -9
- package/dist/es2015/src/plugins/positioner/no/noPositioner.component.js +0 -96
- package/dist/es2015/src/plugins/positioner/no/noPositioner.interface.js +0 -16
- package/dist/es2015/src/plugins/positioner/positioner.interface.js +0 -28
- package/dist/es2015/src/plugins/positioner/types.js +0 -18
- package/dist/es2015/src/plugins/readonlyState/index.js +0 -7
- package/dist/es2015/src/plugins/readonlyState/readonlyState.interface.js +0 -17
- package/dist/es2015/src/plugins/readonlyState/types.js +0 -17
- package/dist/es2015/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -205
- package/dist/es2015/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -17
- package/dist/es2015/src/plugins/valueHandler/components.js +0 -8
- package/dist/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -235
- package/dist/es2015/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -30
- package/dist/es2015/src/plugins/valueHandler/index.js +0 -10
- package/dist/es2015/src/plugins/valueHandler/types.js +0 -17
- package/dist/es2015/src/plugins/valueHandler/valueHandler.interface.js +0 -40
- package/dist/es2015/src/plugins/valueHandler/valueHandlerBase.js +0 -286
- package/dist/es2015/src/select.js +0 -45
- package/dist/es2015/src/select.ssr.js +0 -21
- package/dist/es5/public_api.js +0 -7
- package/dist/es5/select.js +0 -14
- package/dist/es5/src/components/option/index.js +0 -8
- package/dist/es5/src/components/option/optgroup.component.js +0 -109
- package/dist/es5/src/components/option/optgroup.interface.js +0 -29
- package/dist/es5/src/components/option/option.component.js +0 -70
- package/dist/es5/src/components/option/option.interface.js +0 -47
- package/dist/es5/src/components/select/index.js +0 -7
- package/dist/es5/src/components/select/select.component.js +0 -1149
- package/dist/es5/src/components/select/select.interface.js +0 -77
- package/dist/es5/src/components/select/types.js +0 -12
- package/dist/es5/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -31
- package/dist/es5/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -57
- package/dist/es5/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -72
- package/dist/es5/src/misc/extensions/getValue.js +0 -23
- package/dist/es5/src/misc/extensions/index.js +0 -11
- package/dist/es5/src/misc/extensions/onFocus.js +0 -21
- package/dist/es5/src/misc/extensions/setReadonly.js +0 -29
- package/dist/es5/src/misc/extensions/setValue.js +0 -24
- package/dist/es5/src/misc/extensions/valueChange.js +0 -27
- package/dist/es5/src/misc/index.js +0 -11
- package/dist/es5/src/misc/ngSelectControlValueAccessor.directive.js +0 -303
- package/dist/es5/src/misc/ngSelectOptions.interface.js +0 -99
- package/dist/es5/src/misc/optionsGatherer/codeOptionsGatherer.js +0 -208
- package/dist/es5/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +0 -35
- package/dist/es5/src/misc/optionsGatherer/dynamicOptionsGatherer.js +0 -329
- package/dist/es5/src/misc/optionsGatherer/excludingOptionsGatherer.js +0 -271
- package/dist/es5/src/misc/optionsGatherer/optionsGatherer.interface.js +0 -65
- package/dist/es5/src/misc/optionsGatherer/types.js +0 -9
- package/dist/es5/src/misc/plugin.interface.js +0 -132
- package/dist/es5/src/misc/pluginBus/pluginBus.interface.js +0 -48
- package/dist/es5/src/misc/pluginBus/pluginBus.js +0 -97
- package/dist/es5/src/misc/templateGatherer.interface.js +0 -23
- package/dist/es5/src/misc/types.js +0 -47
- package/dist/es5/src/modules/ngSelect.module.js +0 -70
- package/dist/es5/src/modules/ngSelectDynamic.module.js +0 -24
- package/dist/es5/src/modules/ngSelectEdit.module.js +0 -45
- package/dist/es5/src/pipes/ngSelectHasValue.pipe.js +0 -42
- package/dist/es5/src/pipes/ngSelectValue.pipe.js +0 -59
- package/dist/es5/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -250
- package/dist/es5/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -16
- package/dist/es5/src/plugins/keyboardHandler/components.js +0 -8
- package/dist/es5/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -321
- package/dist/es5/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -16
- package/dist/es5/src/plugins/keyboardHandler/index.js +0 -9
- package/dist/es5/src/plugins/keyboardHandler/keyboardHandler.interface.js +0 -16
- package/dist/es5/src/plugins/keyboardHandler/types.js +0 -17
- package/dist/es5/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -348
- package/dist/es5/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -40
- package/dist/es5/src/plugins/liveSearch/components.js +0 -9
- package/dist/es5/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -606
- package/dist/es5/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -50
- package/dist/es5/src/plugins/liveSearch/index.js +0 -10
- package/dist/es5/src/plugins/liveSearch/liveSearch.interface.js +0 -53
- package/dist/es5/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -137
- package/dist/es5/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -16
- package/dist/es5/src/plugins/liveSearch/types.js +0 -17
- package/dist/es5/src/plugins/normalState/basic/basicNormalState.component.js +0 -80
- package/dist/es5/src/plugins/normalState/basic/basicNormalState.interface.js +0 -39
- package/dist/es5/src/plugins/normalState/components.js +0 -9
- package/dist/es5/src/plugins/normalState/edit/editNormalState.component.js +0 -144
- package/dist/es5/src/plugins/normalState/edit/editNormalState.interface.js +0 -71
- package/dist/es5/src/plugins/normalState/index.js +0 -9
- package/dist/es5/src/plugins/normalState/normalState.interface.js +0 -59
- package/dist/es5/src/plugins/normalState/normalStateAbstract.component.js +0 -229
- package/dist/es5/src/plugins/normalState/types.js +0 -17
- package/dist/es5/src/plugins/popup/basic/basicPopup.component.js +0 -76
- package/dist/es5/src/plugins/popup/basic/basicPopup.interface.js +0 -43
- package/dist/es5/src/plugins/popup/component.js +0 -9
- package/dist/es5/src/plugins/popup/edit/editPopup.component.js +0 -138
- package/dist/es5/src/plugins/popup/edit/editPopup.interface.js +0 -43
- package/dist/es5/src/plugins/popup/index.js +0 -9
- package/dist/es5/src/plugins/popup/popup.interface.js +0 -70
- package/dist/es5/src/plugins/popup/popupAbstract.component.js +0 -477
- package/dist/es5/src/plugins/popup/types.js +0 -17
- package/dist/es5/src/plugins/positioner/basic/basicPositioner.component.js +0 -364
- package/dist/es5/src/plugins/positioner/basic/basicPositioner.interface.js +0 -38
- package/dist/es5/src/plugins/positioner/basic/types.js +0 -75
- package/dist/es5/src/plugins/positioner/components.js +0 -8
- package/dist/es5/src/plugins/positioner/index.js +0 -9
- package/dist/es5/src/plugins/positioner/no/noPositioner.component.js +0 -126
- package/dist/es5/src/plugins/positioner/no/noPositioner.interface.js +0 -16
- package/dist/es5/src/plugins/positioner/positioner.interface.js +0 -28
- package/dist/es5/src/plugins/positioner/types.js +0 -18
- package/dist/es5/src/plugins/readonlyState/index.js +0 -7
- package/dist/es5/src/plugins/readonlyState/readonlyState.interface.js +0 -17
- package/dist/es5/src/plugins/readonlyState/types.js +0 -17
- package/dist/es5/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -277
- package/dist/es5/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -17
- package/dist/es5/src/plugins/valueHandler/components.js +0 -8
- package/dist/es5/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -364
- package/dist/es5/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -30
- package/dist/es5/src/plugins/valueHandler/index.js +0 -10
- package/dist/es5/src/plugins/valueHandler/types.js +0 -17
- package/dist/es5/src/plugins/valueHandler/valueHandler.interface.js +0 -40
- package/dist/es5/src/plugins/valueHandler/valueHandlerBase.js +0 -369
- package/dist/es5/src/select.js +0 -45
- package/dist/es5/src/select.ssr.js +0 -21
- package/elements/dist/es2015/elements/index.js +0 -10
- package/elements/dist/es2015/elements/public_api.js +0 -7
- package/elements/dist/es2015/elements/src/components/ngSelectElements.component.js +0 -292
- package/elements/dist/es2015/elements/src/components/ngSelectElements.interface.js +0 -64
- package/elements/dist/es2015/elements/src/index.js +0 -9
- package/elements/dist/es2015/elements/src/modules/ngSelectElements.module.js +0 -54
- package/elements/dist/es5/elements/index.js +0 -10
- package/elements/dist/es5/elements/public_api.js +0 -7
- package/elements/dist/es5/elements/src/components/ngSelectElements.component.js +0 -332
- package/elements/dist/es5/elements/src/components/ngSelectElements.interface.js +0 -64
- package/elements/dist/es5/elements/src/index.js +0 -9
- package/elements/dist/es5/elements/src/modules/ngSelectElements.module.js +0 -63
- package/elements/index.d.ts +0 -5
- package/elements/index.d.ts.map +0 -1
- package/elements/index.metadata.json +0 -1
- package/elements/public_api.d.ts +0 -2
- package/elements/public_api.d.ts.map +0 -1
- package/elements/src/components/ngSelectElements.component.ngfactory.d.ts.map +0 -1
- package/elements/src/modules/ngSelectElements.module.ngfactory.d.ts.map +0 -1
- package/extensions/dist/es2015/extensions/index.js +0 -10
- package/extensions/dist/es2015/extensions/public_api.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/getValue.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/onFocus.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/patchOptions.js +0 -23
- package/extensions/dist/es2015/extensions/src/extensions/reinitializeOptions.js +0 -26
- package/extensions/dist/es2015/extensions/src/extensions/setReadonly.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/setValue.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions/valueChange.js +0 -7
- package/extensions/dist/es2015/extensions/src/extensions.js +0 -13
- package/extensions/dist/es5/extensions/index.js +0 -10
- package/extensions/dist/es5/extensions/public_api.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/getValue.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/onFocus.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/patchOptions.js +0 -23
- package/extensions/dist/es5/extensions/src/extensions/reinitializeOptions.js +0 -26
- package/extensions/dist/es5/extensions/src/extensions/setReadonly.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/setValue.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions/valueChange.js +0 -7
- package/extensions/dist/es5/extensions/src/extensions.js +0 -13
- package/extensions/index.d.ts +0 -5
- package/extensions/index.d.ts.map +0 -1
- package/extensions/index.metadata.json +0 -1
- package/extensions/public_api.d.ts +0 -2
- package/extensions/public_api.d.ts.map +0 -1
- package/extensions/src/extensions.d.ts +0 -8
- package/extensions/src/extensions.d.ts.map +0 -1
- package/material/dist/es2015/extensions/src/extensions/getValue.js +0 -7
- package/material/dist/es2015/extensions/src/extensions/onFocus.js +0 -7
- package/material/dist/es2015/extensions/src/extensions/patchOptions.js +0 -23
- package/material/dist/es2015/extensions/src/extensions/reinitializeOptions.js +0 -26
- package/material/dist/es2015/extensions/src/extensions/setReadonly.js +0 -7
- package/material/dist/es2015/extensions/src/extensions/setValue.js +0 -7
- package/material/dist/es2015/extensions/src/extensions/valueChange.js +0 -7
- package/material/dist/es2015/extensions/src/extensions.js +0 -13
- package/material/dist/es2015/material/index.js +0 -10
- package/material/dist/es2015/material/public_api.js +0 -7
- package/material/dist/es2015/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -127
- package/material/dist/es2015/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -33
- package/material/dist/es2015/material/src/components/basicDialogPopup/index.js +0 -7
- package/material/dist/es2015/material/src/components/basicDialogPopup/types.js +0 -7
- package/material/dist/es2015/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -99
- package/material/dist/es2015/material/src/directives/types.js +0 -7
- package/material/dist/es2015/material/src/material.js +0 -13
- package/material/dist/es2015/material/src/modules/dialogPopup.module.js +0 -35
- package/material/dist/es2015/material/src/modules/virtualEditPopup.module.js +0 -29
- package/material/dist/es2015/material/src/plugins/popup/components.js +0 -8
- package/material/dist/es2015/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -236
- package/material/dist/es2015/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -82
- package/material/dist/es2015/material/src/plugins/popup/index.js +0 -8
- package/material/dist/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -151
- package/material/dist/es2015/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -21
- package/material/dist/es5/extensions/src/extensions/getValue.js +0 -7
- package/material/dist/es5/extensions/src/extensions/onFocus.js +0 -7
- package/material/dist/es5/extensions/src/extensions/patchOptions.js +0 -23
- package/material/dist/es5/extensions/src/extensions/reinitializeOptions.js +0 -26
- package/material/dist/es5/extensions/src/extensions/setReadonly.js +0 -7
- package/material/dist/es5/extensions/src/extensions/setValue.js +0 -7
- package/material/dist/es5/extensions/src/extensions/valueChange.js +0 -7
- package/material/dist/es5/extensions/src/extensions.js +0 -13
- package/material/dist/es5/material/index.js +0 -10
- package/material/dist/es5/material/public_api.js +0 -7
- package/material/dist/es5/material/src/components/basicDialogPopup/basicDialogPopup.component.js +0 -155
- package/material/dist/es5/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +0 -33
- package/material/dist/es5/material/src/components/basicDialogPopup/index.js +0 -7
- package/material/dist/es5/material/src/components/basicDialogPopup/types.js +0 -7
- package/material/dist/es5/material/src/directives/dialogPopup/dialogPopup.directive.js +0 -109
- package/material/dist/es5/material/src/directives/types.js +0 -7
- package/material/dist/es5/material/src/material.js +0 -13
- package/material/dist/es5/material/src/modules/dialogPopup.module.js +0 -39
- package/material/dist/es5/material/src/modules/virtualEditPopup.module.js +0 -33
- package/material/dist/es5/material/src/plugins/popup/components.js +0 -8
- package/material/dist/es5/material/src/plugins/popup/dialog/dialogPopup.component.js +0 -290
- package/material/dist/es5/material/src/plugins/popup/dialog/dialogPopup.interface.js +0 -82
- package/material/dist/es5/material/src/plugins/popup/index.js +0 -8
- package/material/dist/es5/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +0 -196
- package/material/dist/es5/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +0 -21
- package/material/index.d.ts +0 -6
- package/material/index.d.ts.map +0 -1
- package/material/index.metadata.json +0 -1
- package/material/public_api.d.ts +0 -2
- package/material/public_api.d.ts.map +0 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.css.shim.ngstyle.d.ts.map +0 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.ngfactory.d.ts.map +0 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.ngfactory.d.ts.map +0 -1
- package/material/src/material.d.ts +0 -8
- package/material/src/material.d.ts.map +0 -1
- package/material/src/modules/dialogPopup.module.ngfactory.d.ts.map +0 -1
- package/material/src/modules/virtualEditPopup.module.ngfactory.d.ts.map +0 -1
- package/material/src/plugins/popup/dialog/dialogPopup.component.ngfactory.d.ts.map +0 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.ngfactory.d.ts.map +0 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.scss.shim.ngstyle.d.ts.map +0 -1
- package/popperJs/dist/es2015/popperjs/index.js +0 -10
- package/popperJs/dist/es2015/popperjs/public_api.js +0 -7
- package/popperJs/dist/es2015/popperjs/src/modules/popperjsPositioner.module.js +0 -23
- package/popperJs/dist/es2015/popperjs/src/plugins/positioner/components.js +0 -7
- package/popperJs/dist/es2015/popperjs/src/plugins/positioner/index.js +0 -7
- package/popperJs/dist/es2015/popperjs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +0 -242
- package/popperJs/dist/es2015/popperjs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +0 -16
- package/popperJs/dist/es2015/popperjs/src/popperJs.js +0 -9
- package/popperJs/dist/es5/popperjs/index.js +0 -10
- package/popperJs/dist/es5/popperjs/public_api.js +0 -7
- package/popperJs/dist/es5/popperjs/src/modules/popperjsPositioner.module.js +0 -27
- package/popperJs/dist/es5/popperjs/src/plugins/positioner/components.js +0 -7
- package/popperJs/dist/es5/popperjs/src/plugins/positioner/index.js +0 -7
- package/popperJs/dist/es5/popperjs/src/plugins/positioner/popperJs/popperJsPositioner.component.js +0 -290
- package/popperJs/dist/es5/popperjs/src/plugins/positioner/popperJs/popperjsPositioner.interface.js +0 -16
- package/popperJs/dist/es5/popperjs/src/popperJs.js +0 -9
- package/popperJs/index.d.ts +0 -6
- package/popperJs/index.d.ts.map +0 -1
- package/popperJs/index.metadata.json +0 -1
- package/popperJs/public_api.d.ts +0 -2
- package/popperJs/public_api.d.ts.map +0 -1
- package/popperJs/src/modules/popperjsPositioner.module.ngfactory.d.ts.map +0 -1
- package/popperJs/src/plugins/positioner/popperJs/popperJsPositioner.component.ngfactory.d.ts.map +0 -1
- package/popperJs/src/popperJs.d.ts +0 -4
- package/popperJs/src/popperJs.d.ts.map +0 -1
- package/public_api.d.ts +0 -2
- package/public_api.d.ts.map +0 -1
- package/select.d.ts +0 -26
- package/select.d.ts.map +0 -1
- package/select.metadata.json +0 -1
- package/src/components/option/optgroup.component.ngfactory.d.ts.map +0 -1
- package/src/components/option/option.component.ngfactory.d.ts.map +0 -1
- package/src/components/select/select.component.ngfactory.d.ts.map +0 -1
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.ngfactory.d.ts.map +0 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.ngfactory.d.ts.map +0 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.ngfactory.d.ts.map +0 -1
- package/src/misc/ngSelectControlValueAccessor.directive.ngfactory.d.ts.map +0 -1
- package/src/misc/pluginBus/pluginBus.ngfactory.d.ts.map +0 -1
- package/src/modules/ngSelect.module.ngfactory.d.ts.map +0 -1
- package/src/modules/ngSelectDynamic.module.ngfactory.d.ts.map +0 -1
- package/src/modules/ngSelectEdit.module.ngfactory.d.ts.map +0 -1
- package/src/pipes/ngSelectHasValue.pipe.ngfactory.d.ts.map +0 -1
- package/src/pipes/ngSelectValue.pipe.ngfactory.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/liveSearch/no/noLiveSearch.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.css.shim.ngstyle.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/positioner/basic/basicPositioner.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/positioner/basic/types.ngfactory.d.ts.map +0 -1
- package/src/plugins/positioner/no/noPositioner.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.component.ngfactory.d.ts.map +0 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.ngfactory.d.ts.map +0 -1
- package/src/select.d.ts +0 -40
- package/src/select.d.ts.map +0 -1
- package/src/select.ssr.d.ts +0 -1
- package/src/select.ssr.d.ts.map +0 -1
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import { forwardRef, Directive } from '@angular/core';
|
|
2
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
+
import { NgSelectComponent } from '../components/select/select.component';
|
|
4
|
+
import { ɵValueChange, ɵSetValue, ɵOnFocus, ɵSetReadonly, ɵGetValue } from '../misc/extensions';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../components/select/select.component";
|
|
7
|
+
/**
|
|
8
|
+
* Provider for control value accessor
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
11
|
+
const NG_SELECT_VALUE_ACCESSOR = {
|
|
12
|
+
provide: NG_VALUE_ACCESSOR,
|
|
13
|
+
useExisting: forwardRef(() => NgSelectControlValueAccessor),
|
|
14
|
+
multi: true
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Control value accessor for NgSelectComponent
|
|
18
|
+
*/
|
|
19
|
+
export class NgSelectControlValueAccessor {
|
|
20
|
+
//######################### constructor #########################
|
|
21
|
+
constructor(_select) {
|
|
22
|
+
this._select = _select;
|
|
23
|
+
/**
|
|
24
|
+
* Subscription that looks for changes of select
|
|
25
|
+
*/
|
|
26
|
+
this._changeSubscription = null;
|
|
27
|
+
/**
|
|
28
|
+
* Subscription that looks for changes of select
|
|
29
|
+
*/
|
|
30
|
+
this._focusSubscription = null;
|
|
31
|
+
}
|
|
32
|
+
//######################### public methods - implementation of ControlValueAccessor #########################
|
|
33
|
+
/**
|
|
34
|
+
* Sets value to select
|
|
35
|
+
*/
|
|
36
|
+
writeValue(value) {
|
|
37
|
+
this._value = value;
|
|
38
|
+
if (this._select.isInitialized) {
|
|
39
|
+
this._select.execute(ɵSetValue(value));
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
if (this._initializedSubscription) {
|
|
43
|
+
this._initializedSubscription.unsubscribe();
|
|
44
|
+
this._initializedSubscription = null;
|
|
45
|
+
}
|
|
46
|
+
this._initializedSubscription = this._select.initialized.subscribe(initialized => {
|
|
47
|
+
if (initialized) {
|
|
48
|
+
this._initializedSubscription.unsubscribe();
|
|
49
|
+
this._initializedSubscription = null;
|
|
50
|
+
this._select.execute(ɵSetValue(value));
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Registers callback that is called when value of select changes
|
|
56
|
+
*/
|
|
57
|
+
registerOnChange(fn) {
|
|
58
|
+
const fnWrapper = (value) => {
|
|
59
|
+
var _a;
|
|
60
|
+
//multivalue is new array in case of change
|
|
61
|
+
if (Array.isArray(value) && Array.isArray(this._value)) {
|
|
62
|
+
if (value !== this._value) {
|
|
63
|
+
this._value = value;
|
|
64
|
+
fn(value);
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
else if (!Array.isArray(value) && !Array.isArray(this._value)) {
|
|
68
|
+
if (!((_a = this._select.selectOptions) === null || _a === void 0 ? void 0 : _a.valueComparer(this._value, value))) {
|
|
69
|
+
this._value = value;
|
|
70
|
+
fn(value);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
this._changeInitializedSubscription = this._select.initialized.subscribe(initialized => {
|
|
75
|
+
if (initialized) {
|
|
76
|
+
if (this._changeSubscription) {
|
|
77
|
+
this._changeSubscription.unsubscribe();
|
|
78
|
+
this._changeSubscription = null;
|
|
79
|
+
}
|
|
80
|
+
this._changeSubscription = this._select.executeAndReturn(ɵValueChange(fnWrapper));
|
|
81
|
+
if (this._select.selectOptions.forceValueCheckOnInit) {
|
|
82
|
+
const value = this._select.executeAndReturn(ɵGetValue());
|
|
83
|
+
fnWrapper(value);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Registers callback that is called when select is closed
|
|
90
|
+
*/
|
|
91
|
+
registerOnTouched(fn) {
|
|
92
|
+
this._touchInitializedSubscription = this._select.initialized.subscribe(initialized => {
|
|
93
|
+
if (initialized) {
|
|
94
|
+
if (this._focusSubscription) {
|
|
95
|
+
this._focusSubscription.unsubscribe();
|
|
96
|
+
this._focusSubscription = null;
|
|
97
|
+
}
|
|
98
|
+
this._focusSubscription = this._select.executeAndReturn(ɵOnFocus(fn));
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* Sets NgSelect as disabled/readonly
|
|
104
|
+
* @param isDisabled - Indication whether is control disabled or not
|
|
105
|
+
*/
|
|
106
|
+
setDisabledState(isDisabled) {
|
|
107
|
+
if (this._select.isInitialized) {
|
|
108
|
+
this._select.execute(ɵSetReadonly(isDisabled));
|
|
109
|
+
return;
|
|
110
|
+
}
|
|
111
|
+
if (this._disabledInitializedSubscription) {
|
|
112
|
+
this._disabledInitializedSubscription.unsubscribe();
|
|
113
|
+
this._disabledInitializedSubscription = null;
|
|
114
|
+
}
|
|
115
|
+
this._disabledInitializedSubscription = this._select.initialized.subscribe(initialized => {
|
|
116
|
+
if (initialized) {
|
|
117
|
+
this._disabledInitializedSubscription.unsubscribe();
|
|
118
|
+
this._disabledInitializedSubscription = null;
|
|
119
|
+
this._select.execute(ɵSetReadonly(isDisabled));
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
//######################### public methods - implementation of OnDestroy #########################
|
|
124
|
+
/**
|
|
125
|
+
* Called when component is destroyed
|
|
126
|
+
*/
|
|
127
|
+
ngOnDestroy() {
|
|
128
|
+
if (this._changeSubscription) {
|
|
129
|
+
this._changeSubscription.unsubscribe();
|
|
130
|
+
this._changeSubscription = null;
|
|
131
|
+
}
|
|
132
|
+
if (this._initializedSubscription) {
|
|
133
|
+
this._initializedSubscription.unsubscribe();
|
|
134
|
+
this._initializedSubscription = null;
|
|
135
|
+
}
|
|
136
|
+
if (this._changeInitializedSubscription) {
|
|
137
|
+
this._changeInitializedSubscription.unsubscribe();
|
|
138
|
+
this._changeInitializedSubscription = null;
|
|
139
|
+
}
|
|
140
|
+
if (this._touchInitializedSubscription) {
|
|
141
|
+
this._touchInitializedSubscription.unsubscribe();
|
|
142
|
+
this._touchInitializedSubscription = null;
|
|
143
|
+
}
|
|
144
|
+
if (this._focusSubscription) {
|
|
145
|
+
this._focusSubscription.unsubscribe();
|
|
146
|
+
this._focusSubscription = null;
|
|
147
|
+
}
|
|
148
|
+
if (this._disabledInitializedSubscription) {
|
|
149
|
+
this._disabledInitializedSubscription.unsubscribe();
|
|
150
|
+
this._disabledInitializedSubscription = null;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
NgSelectControlValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NgSelectControlValueAccessor, deps: [{ token: i1.NgSelectComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
155
|
+
NgSelectControlValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: NgSelectControlValueAccessor, selector: "ng-select[formControlName],ng-select[formControl],ng-select[ngModel]", providers: [NG_SELECT_VALUE_ACCESSOR], ngImport: i0 });
|
|
156
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NgSelectControlValueAccessor, decorators: [{
|
|
157
|
+
type: Directive,
|
|
158
|
+
args: [{
|
|
159
|
+
selector: 'ng-select[formControlName],ng-select[formControl],ng-select[ngModel]',
|
|
160
|
+
providers: [NG_SELECT_VALUE_ACCESSOR]
|
|
161
|
+
}]
|
|
162
|
+
}], ctorParameters: function () { return [{ type: i1.NgSelectComponent }]; } });
|
|
163
|
+
//# sourceMappingURL=ngSelectControlValueAccessor.directive.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngSelectControlValueAccessor.directive.js","sourceRoot":"","sources":["../../../src/misc/ngSelectControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAoB,SAAS,EAAY,MAAM,eAAe,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AAGvE,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;;;AAE9F;;;GAGG;AACH,MAAM,wBAAwB,GAC9B;IACI,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;IAC3D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,4BAA4B;IAuCrC,iEAAiE;IACjE,YAAoB,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;QAhBtD;;WAEG;QACK,wBAAmB,GAAiB,IAAI,CAAC;QAEjD;;WAEG;QACK,uBAAkB,GAAiB,IAAI,CAAC;IAUhD,CAAC;IAED,6GAA6G;IAE7G;;OAEG;IACI,UAAU,CAAC,KAA2B;QAEzC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAC7B;YACI,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;YAEvC,OAAO;SACV;QAED,IAAG,IAAI,CAAC,wBAAwB,EAChC;YACI,IAAI,CAAC,wBAAwB,CAAC,WAAW,EAAE,CAAC;YAC5C,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC;SACxC;QAED,IAAI,CAAC,wBAAwB,GAAG,I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B;kBALxC,SAAS;mBACV;oBACI,QAAQ,EAAE,sEAAsE;oBAChF,SAAS,EAAE,CAAC,wBAAwB,CAAC;iBACxC","sourcesContent":["import {forwardRef, ExistingProvider, Directive, OnDestroy} from '@angular/core';\nimport {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms';\nimport {Subscription} from 'rxjs';\n\nimport {NgSelectComponent} from '../components/select/select.component';\nimport {ɵValueChange, ɵSetValue, ɵOnFocus, ɵSetReadonly, ɵGetValue} from '../misc/extensions';\n\n/**\n * Provider for control value accessor\n * @internal\n */\nconst NG_SELECT_VALUE_ACCESSOR: ExistingProvider =\n{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgSelectControlValueAccessor),\n multi: true\n};\n\n/**\n * Control value accessor for NgSelectComponent\n */\n@Directive(\n{\n selector: 'ng-select[formControlName],ng-select[formControl],ng-select[ngModel]',\n providers: [NG_SELECT_VALUE_ACCESSOR]\n})\nexport class NgSelectControlValueAccessor<TValue = any> implements ControlValueAccessor, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscription for initialized status of NgSelect, used for writeValue\n */\n private _initializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for registerOnChange\n */\n private _changeInitializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for registerOnTouched\n */\n private _touchInitializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for setDisabledState\n */\n private _disabledInitializedSubscription: Subscription;\n\n /**\n * Subscription that looks for changes of select\n */\n private _changeSubscription: Subscription = null;\n\n /**\n * Subscription that looks for changes of select\n */\n private _focusSubscription: Subscription = null;\n\n /**\n * Last set value to this control\n */\n private _value: TValue|TValue[];\n\n //######################### constructor #########################\n constructor(private _select: NgSelectComponent<TValue>)\n {\n }\n\n //######################### public methods - implementation of ControlValueAccessor #########################\n\n /**\n * Sets value to select\n */\n public writeValue(value: TValue|Array<TValue>): void\n {\n this._value = value;\n\n if(this._select.isInitialized)\n {\n this._select.execute(ɵSetValue(value));\n\n return;\n }\n\n if(this._initializedSubscription)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n }\n\n this._initializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n\n this._select.execute(ɵSetValue(value));\n }\n });\n }\n\n /**\n * Registers callback that is called when value of select changes\n */\n public registerOnChange(fn: (data: TValue|Array<TValue>) => void): void\n {\n const fnWrapper = (value: TValue|Array<TValue>) =>\n {\n //multivalue is new array in case of change\n if(Array.isArray(value) && Array.isArray(this._value))\n {\n if(value !== this._value)\n {\n this._value = value;\n fn(value);\n }\n }\n else if(!Array.isArray(value) && !Array.isArray(this._value))\n {\n if(!this._select.selectOptions?.valueComparer(this._value, value))\n {\n this._value = value;\n fn(value);\n }\n }\n };\n\n this._changeInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n if(this._changeSubscription)\n {\n this._changeSubscription.unsubscribe();\n this._changeSubscription = null;\n }\n\n this._changeSubscription = this._select.executeAndReturn(ɵValueChange(fnWrapper));\n\n if(this._select.selectOptions.forceValueCheckOnInit)\n {\n const value = this._select.executeAndReturn(ɵGetValue());\n\n fnWrapper(value);\n }\n }\n });\n }\n\n /**\n * Registers callback that is called when select is closed\n */\n public registerOnTouched(fn: () => void): void\n {\n this._touchInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n if(this._focusSubscription)\n {\n this._focusSubscription.unsubscribe();\n this._focusSubscription = null;\n }\n\n this._focusSubscription = this._select.executeAndReturn(ɵOnFocus(fn));\n }\n });\n }\n\n /**\n * Sets NgSelect as disabled/readonly\n * @param isDisabled - Indication whether is control disabled or not\n */\n public setDisabledState(isDisabled: boolean): void\n {\n if(this._select.isInitialized)\n {\n this._select.execute(ɵSetReadonly(isDisabled));\n\n return;\n }\n\n if(this._disabledInitializedSubscription)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n }\n\n this._disabledInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n\n this._select.execute(ɵSetReadonly(isDisabled));\n }\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n if(this._changeSubscription)\n {\n this._changeSubscription.unsubscribe();\n this._changeSubscription = null;\n }\n\n if(this._initializedSubscription)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n }\n\n if(this._changeInitializedSubscription)\n {\n this._changeInitializedSubscription.unsubscribe();\n this._changeInitializedSubscription = null;\n }\n\n if(this._touchInitializedSubscription)\n {\n this._touchInitializedSubscription.unsubscribe();\n this._touchInitializedSubscription = null;\n }\n\n if(this._focusSubscription)\n {\n this._focusSubscription.unsubscribe();\n this._focusSubscription = null;\n }\n\n if(this._disabledInitializedSubscription)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n }\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngSelectOptions.interface.js","sourceRoot":"","sources":["../../../src/misc/ngSelectOptions.interface.ts"],"names":[],"mappings":"","sourcesContent":["\nimport {NgSelectPluginTypes} from './plugin.interface';\nimport {OptionsGatherer, LiveSearchFilter} from './optionsGatherer/optionsGatherer.interface';\nimport {TemplateGatherer} from './templateGatherer.interface';\n\n/**\n * Function used for comparing two values\n */\nexport interface CompareValueFunc<TValue = any>\n{\n /**\n * Compares two values and returns true if objects are equal, otherwise false\n * @param source - First value to be compared\n * @param target - Second value to be compared\n */\n (source: TValue, target: TValue): boolean;\n}\n\n/**\n * Function used for normalization of value, used during comparison or search\n */\nexport interface NormalizeFunc<TValue = any>\n{\n /**\n * Normalize provided value, usually used with strings\n * @param value - Value that is being normalized\n */\n (value: TValue): TValue;\n}\n\n/**\n * Options used for plugin bus\n */\nexport interface PluginBusOptions<TValue = any>\n{\n /**\n * Instance of options gatherer that is used for obtaining options\n */\n optionsGatherer?: OptionsGatherer<TValue>;\n\n /**\n * Instance of template gatherer used for obtaining custom templates\n */\n templateGatherer?: TemplateGatherer;\n\n /**\n * Indication whether is NgSelect readonly or not\n */\n readonly?: boolean;\n\n /**\n * Indication that multiple values can be selected\n */\n multiple?: boolean;\n\n /**\n * Indication whether use non existing value in live search as new value, use with dynamic value handler\n */\n useNonExistingAsValue?: boolean;\n\n /**\n * Function of value comparer that is used for comparison of values\n */\n valueComparer?: CompareValueFunc<TValue>;\n\n /**\n * Method that is used for filtering when live search is running on static data\n */\n liveSearchFilter?: LiveSearchFilter<TValue>;\n\n /**\n * Normalizer used for normalizing values\n */\n normalizer?: NormalizeFunc<TValue>;\n}\n\n/**\n * Describes select options used for NgSelect\n */\nexport interface NgSelectOptions<TValue = any> extends PluginBusOptions<TValue>\n{\n /**\n * Indication whether NgSelect should be initialized automaticaly during 'NgOnInit' phase\n */\n autoInitialize?: boolean;\n\n /**\n * Css classes applied to ng select component, possible to override only part of classes\n */\n cssClasses?: {};\n\n /**\n * Object defining overrides for default plugins, default plugins can be also specified using DI\n */\n plugins?: NgSelectPluginTypes;\n\n /**\n * Indication whether is 'Popup' plugin displayd inside of NgSelect (false) or directly in Body (true)\n */\n absolute?: boolean;\n\n /**\n * Indication whether force value check on initialization of select, this allows to change value of form control to value of valueHandler\n */\n forceValueCheckOnInit?: boolean;\n}"]}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { LIVE_SEARCH } from '../../plugins/liveSearch/types';
|
|
3
|
+
/**
|
|
4
|
+
* Options gatherer used for static options gathering from code
|
|
5
|
+
*/
|
|
6
|
+
export class CodeOptionsGatherer {
|
|
7
|
+
constructor() {
|
|
8
|
+
//######################### private fields #########################
|
|
9
|
+
/**
|
|
10
|
+
* Array of visible, displayed options for select
|
|
11
|
+
*/
|
|
12
|
+
this._availableOptions = [];
|
|
13
|
+
/**
|
|
14
|
+
* Array of provided options for select
|
|
15
|
+
*/
|
|
16
|
+
this._options = [];
|
|
17
|
+
/**
|
|
18
|
+
* Occurs when array of visible, displayed options has changed
|
|
19
|
+
*/
|
|
20
|
+
this._availableOptionsChange = new EventEmitter();
|
|
21
|
+
/**
|
|
22
|
+
* Occurs when array of provided options has changed
|
|
23
|
+
*/
|
|
24
|
+
this.optionsChange = new EventEmitter();
|
|
25
|
+
}
|
|
26
|
+
//######################### public properties - implementation of OptionsGatherer #########################
|
|
27
|
+
/**
|
|
28
|
+
* Array of provided options for select
|
|
29
|
+
*/
|
|
30
|
+
get options() {
|
|
31
|
+
return this._options;
|
|
32
|
+
}
|
|
33
|
+
set options(value) {
|
|
34
|
+
this._options = value;
|
|
35
|
+
this._availableOptions = value;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Array of visible, displayed options for select
|
|
39
|
+
*/
|
|
40
|
+
get availableOptions() {
|
|
41
|
+
return this._availableOptions;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Occurs when array of visible, displayed options has changed
|
|
45
|
+
*/
|
|
46
|
+
get availableOptionsChange() {
|
|
47
|
+
return this._availableOptionsChange;
|
|
48
|
+
}
|
|
49
|
+
//######################### public methods - implmentation of OptionsGatherer #########################
|
|
50
|
+
/**
|
|
51
|
+
* Initialize gatherer during initialization phase
|
|
52
|
+
*/
|
|
53
|
+
initializeGatherer() {
|
|
54
|
+
const liveSearch = this.ngSelectPlugins[LIVE_SEARCH];
|
|
55
|
+
if (this._liveSearch && this._liveSearch != liveSearch) {
|
|
56
|
+
this._searchValueChangeSubscription.unsubscribe();
|
|
57
|
+
this._searchValueChangeSubscription = null;
|
|
58
|
+
this._liveSearch = null;
|
|
59
|
+
}
|
|
60
|
+
if (!this._liveSearch) {
|
|
61
|
+
this._liveSearch = liveSearch;
|
|
62
|
+
this._searchValueChangeSubscription = this._liveSearch.searchValueChange.subscribe(() => {
|
|
63
|
+
if (!this._liveSearch.searchValue) {
|
|
64
|
+
this._availableOptions = this.options;
|
|
65
|
+
this._availableOptionsChange.emit();
|
|
66
|
+
return;
|
|
67
|
+
}
|
|
68
|
+
this._availableOptions = this.options.filter(this.pluginBus.selectOptions.liveSearchFilter(this._liveSearch.searchValue, this.pluginBus.selectOptions.normalizer));
|
|
69
|
+
this._availableOptionsChange.emit();
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Called when gatherer needs to be destroyed
|
|
75
|
+
*/
|
|
76
|
+
destroyGatherer() {
|
|
77
|
+
if (this._searchValueChangeSubscription) {
|
|
78
|
+
this._searchValueChangeSubscription.unsubscribe();
|
|
79
|
+
this._searchValueChangeSubscription = null;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//# sourceMappingURL=codeOptionsGatherer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codeOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/codeOptionsGatherer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAO3C,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAG3D;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAAhC;QAEI,oEAAoE;QAEpE;;WAEG;QACK,sBAAiB,GAA6B,EAAE,CAAC;QAEzD;;WAEG;QACK,aAAQ,GAA6B,EAAE,CAAC;QAEhD;;WAEG;QACK,4BAAuB,GAAuB,IAAI,YAAY,EAAQ,CAAC;QA2B/E;;WAEG;QACI,kBAAa,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAiFxE,CAAC;IAnGG,2GAA2G;IAE3G;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,IAAW,OAA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AE,CAAC;YACxC,CAAC,CAAC,CAAC;SACN;IACL,CAAC;IAED;;OAEG;IACI,eAAe;QAElB,IAAG,IAAI,CAAC,8BAA8B,EACtC;YACI,IAAI,CAAC,8BAA8B,CAAC,WAAW,EAAE,CAAC;YAClD,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC;SAC9C;IACL,CAAC;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {LiveSearch} from '../../plugins/liveSearch';\nimport {LIVE_SEARCH} from '../../plugins/liveSearch/types';\nimport {PluginBus} from '../pluginBus/pluginBus';\n\n/**\n * Options gatherer used for static options gathering from code\n */\nexport class CodeOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### private fields #########################\n\n /**\n * Array of visible, displayed options for select\n */\n private _availableOptions: NgSelectOption<TValue>[] = [];\n\n /**\n * Array of provided options for select\n */\n private _options: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n private _availableOptionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n /**\n * Subscription for changes of live search value\n */\n protected _searchValueChangeSubscription: Subscription;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public get options(): NgSelectOption<TValue>[]\n {\n return this._options;\n }\n public set options(value: NgSelectOption<TValue>[])\n {\n this._options = value;\n this._availableOptions = value;\n }\n\n /**\n * Occurs when array of provided options has changed\n */\n public optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this._availableOptions;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this._availableOptionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### public methods - implmentation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._liveSearch = null;\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n\n this._searchValueChangeSubscription = this._liveSearch.searchValueChange.subscribe(() =>\n {\n if(!this._liveSearch.searchValue)\n {\n this._availableOptions = this.options;\n this._availableOptionsChange.emit();\n\n return;\n }\n\n this._availableOptions = this.options.filter(this.pluginBus.selectOptions.liveSearchFilter(this._liveSearch.searchValue, this.pluginBus.selectOptions.normalizer));\n this._availableOptionsChange.emit();\n });\n }\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n if(this._searchValueChangeSubscription)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n }\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamicOptionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/dynamicOptionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {NgSelectOption} from '../../components/option';\n\n/**\n * Callback used for obtaining dynamic options\n */\nexport interface GetOptionsCallback<TValue = any>\n{\n /**\n * Gets array of options based on query\n * @param query - Query for obtaining options, can be searched string or TValue in case of obtaining option for value during initialization\n */\n (query: string|TValue): Promise<NgSelectOption<TValue>[]>;\n}\n\n/**\n * Options for dynamic options gatherer\n */\nexport interface DynamicOptionsGathererOptions<TValue = any>\n{\n /**\n * Callback used for obtaining dynamic options\n */\n dynamicOptionsCallback: GetOptionsCallback<TValue>;\n\n /**\n * Number of miliseconds which represents minimal delay between calls of dynamicOptionsCallback\n */\n delay?: number;\n\n /**\n * Minimal number of characters to be used for searching\n */\n minLength?: number;\n}"]}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { __awaiter } from "tslib";
|
|
2
|
+
import { EventEmitter } from '@angular/core';
|
|
3
|
+
import { isPresent } from '@jscrpt/common';
|
|
4
|
+
import { debounceTime } from 'rxjs/operators';
|
|
5
|
+
import { LIVE_SEARCH } from '../../plugins/liveSearch/types';
|
|
6
|
+
import { POPUP } from '../../plugins/popup/types';
|
|
7
|
+
import { VALUE_HANDLER } from '../../plugins/valueHandler/types';
|
|
8
|
+
/**
|
|
9
|
+
* Class that is used as for options gathering in dynamic way, for example from external source when writing
|
|
10
|
+
*/
|
|
11
|
+
export class DynamicOptionsGatherer {
|
|
12
|
+
//######################### constructor #########################
|
|
13
|
+
constructor(_options) {
|
|
14
|
+
this._options = _options;
|
|
15
|
+
/**
|
|
16
|
+
* Minimal number of characters required for searching
|
|
17
|
+
*/
|
|
18
|
+
this._minLength = 1;
|
|
19
|
+
/**
|
|
20
|
+
* Indication that first initial call was performed
|
|
21
|
+
*/
|
|
22
|
+
this._initialized = false;
|
|
23
|
+
//######################### public properties - implementation of OptionsGatherer #########################
|
|
24
|
+
/**
|
|
25
|
+
* Array of provided options for select
|
|
26
|
+
*/
|
|
27
|
+
this.options = [];
|
|
28
|
+
/**
|
|
29
|
+
* Occurs when array of provided options has changed
|
|
30
|
+
*/
|
|
31
|
+
this.optionsChange = new EventEmitter();
|
|
32
|
+
if (!this._options) {
|
|
33
|
+
throw new Error('Options can not be null!');
|
|
34
|
+
}
|
|
35
|
+
if (this._options && isPresent(this._options.minLength)) {
|
|
36
|
+
this._minLength = this._options.minLength;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Array of visible, displayed options for select
|
|
41
|
+
*/
|
|
42
|
+
get availableOptions() {
|
|
43
|
+
return this.options;
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Occurs when array of visible, displayed options has changed
|
|
47
|
+
*/
|
|
48
|
+
get availableOptionsChange() {
|
|
49
|
+
return this.optionsChange;
|
|
50
|
+
}
|
|
51
|
+
//######################### public methods - implementation of OptionsGatherer #########################
|
|
52
|
+
/**
|
|
53
|
+
* Initialize gatherer during initialization phase
|
|
54
|
+
*/
|
|
55
|
+
initializeGatherer() {
|
|
56
|
+
const liveSearch = this.ngSelectPlugins[LIVE_SEARCH];
|
|
57
|
+
if (this._liveSearch && this._liveSearch != liveSearch) {
|
|
58
|
+
this._searchValueChangeSubscription.unsubscribe();
|
|
59
|
+
this._searchValueChangeSubscription = null;
|
|
60
|
+
this._liveSearch = null;
|
|
61
|
+
}
|
|
62
|
+
const popup = this.ngSelectPlugins[POPUP];
|
|
63
|
+
if (this._popup && this._popup != popup) {
|
|
64
|
+
this._visibilitySubscription.unsubscribe();
|
|
65
|
+
this._visibilitySubscription = null;
|
|
66
|
+
this._popup = null;
|
|
67
|
+
}
|
|
68
|
+
this._valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
69
|
+
if (!this._popup) {
|
|
70
|
+
this._popup = popup;
|
|
71
|
+
this._visibilitySubscription = this._popup.visibilityChange.subscribe(() => __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
if (this._initialized) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
yield this._processOptionsChange();
|
|
76
|
+
}));
|
|
77
|
+
}
|
|
78
|
+
if (!this._liveSearch) {
|
|
79
|
+
this._liveSearch = liveSearch;
|
|
80
|
+
let searchValueChange = this._liveSearch.searchValueChange;
|
|
81
|
+
if (this._options.delay) {
|
|
82
|
+
searchValueChange = searchValueChange.pipe(debounceTime(this._options.delay));
|
|
83
|
+
}
|
|
84
|
+
this._searchValueChangeSubscription = searchValueChange.subscribe(() => __awaiter(this, void 0, void 0, function* () { return yield this._processOptionsChange(); }));
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Called when gatherer needs to be destroyed
|
|
89
|
+
*/
|
|
90
|
+
destroyGatherer() {
|
|
91
|
+
var _a, _b;
|
|
92
|
+
(_a = this._searchValueChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
93
|
+
this._searchValueChangeSubscription = null;
|
|
94
|
+
(_b = this._visibilitySubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
95
|
+
this._visibilitySubscription = null;
|
|
96
|
+
}
|
|
97
|
+
//######################### protected methods #########################
|
|
98
|
+
/**
|
|
99
|
+
* Process options change request
|
|
100
|
+
*/
|
|
101
|
+
_processOptionsChange() {
|
|
102
|
+
var _a, _b;
|
|
103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
104
|
+
let searchValue = this._liveSearch.searchValue;
|
|
105
|
+
//use value as search value if not initialized
|
|
106
|
+
if (!this._initialized && !this.pluginBus.selectOptions.multiple && !Array.isArray(this._valueHandler.selectedOptions) && isPresent(this._valueHandler.selectedOptions)) {
|
|
107
|
+
searchValue = (_a = this._liveSearch.searchValue) !== null && _a !== void 0 ? _a : this._valueHandler.selectedOptions.text;
|
|
108
|
+
}
|
|
109
|
+
this._initialized = true;
|
|
110
|
+
if (((_b = searchValue === null || searchValue === void 0 ? void 0 : searchValue.length) !== null && _b !== void 0 ? _b : 0) < this._minLength) {
|
|
111
|
+
//remove available options if multiple or empty string
|
|
112
|
+
if (isPresent(searchValue) || this.pluginBus.selectOptions.multiple) {
|
|
113
|
+
this.options = [];
|
|
114
|
+
this.optionsChange.emit();
|
|
115
|
+
}
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
this.options = yield this._options.dynamicOptionsCallback(searchValue !== null && searchValue !== void 0 ? searchValue : '');
|
|
119
|
+
this.optionsChange.emit();
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
//# sourceMappingURL=dynamicOptionsGatherer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dynamicOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/dynamicOptionsGatherer.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAC,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAO5C,OAAO,EAAC,WAAW,EAAC,MAAM,gCAAgC,CAAC;AAG3D,OAAO,EAAC,KAAK,EAAC,MAAM,2BAA2B,CAAC;AAChD,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAG/D;;GAEG;AACH,MAAM,OAAO,sBAAsB;IAkF/B,iEAAiE;IACjE,YAAsB,QAA+C;QAA/C,aAAQ,GAAR,QAAQ,CAAuC;QAhErE;;WAEG;QACO,eAAU,GAAW,CAAC,CAAC;QAOjC;;WAEG;QACO,iBAAY,GAAY,KAAK,CAAC;QAOxC,2GAA2G;QAE3G;;WAEG;QACI,YAAO,GAA6B,EAAE,CAAC;QAE9C;;WAEG;QACI,kBAAa,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAoChE,IAAG,CAAC,IAAI,CAAC,QAAQ,EACjB;YACI,MAAM,IAAI,KAAK,CAAC,0BAA0B,CAAC,CAAC;SAC/C;QAED,IAAG,IAAI,CAAC,QAAQ,IAAI,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,EACtD;YACI,IAAI,CAAC,UAAU,GAAG,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC;SAC7C;IACL,CAAC;IA3CD;;OAEG;IACH,IAAW,gBAAgB;QAEvB,OAAO,IAAI,CAAC,OAAO,CAAC;IACxB,CAAC;IAED;;OAEG;IACH,IAAW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S,CAAC,aAAa,CAAC,QAAQ,EAClE;oBACI,IAAI,CAAC,OAAO,GAAG,EAAE,CAAC;oBAClB,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;iBAC7B;gBAED,OAAO;aACV;YAED,IAAI,CAAC,OAAO,GAAG,MAAM,IAAI,CAAC,QAAQ,CAAC,sBAAsB,CAAC,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,EAAE,CAAC,CAAC;YAC7E,IAAI,CAAC,aAAa,CAAC,IAAI,EAAE,CAAC;;KAC7B;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {isPresent} from '@jscrpt/common';\nimport {Subscription, Observable} from 'rxjs';\nimport {debounceTime} from 'rxjs/operators';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {NgSelectOption} from '../../components/option';\nimport {DynamicOptionsGathererOptions} from './dynamicOptionsGatherer.interface';\nimport {LiveSearch} from '../../plugins/liveSearch';\nimport {LIVE_SEARCH} from '../../plugins/liveSearch/types';\nimport {PluginBus} from '../pluginBus/pluginBus';\nimport {Popup} from '../../plugins/popup';\nimport {POPUP} from '../../plugins/popup/types';\nimport {VALUE_HANDLER} from '../../plugins/valueHandler/types';\nimport {ValueHandler} from '../../plugins/valueHandler';\n\n/**\n * Class that is used as for options gathering in dynamic way, for example from external source when writing\n */\nexport class DynamicOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n /**\n * Subscription for changes of live search value\n */\n protected _searchValueChangeSubscription: Subscription;\n\n /**\n * Subscription for visibility change of popup\n */\n protected _visibilitySubscription: Subscription;\n\n /**\n * Minimal number of characters required for searching\n */\n protected _minLength: number = 1;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n /**\n * Indication that first initial call was performed\n */\n protected _initialized: boolean = false;\n\n /**\n * Currently used value handler plugin\n */\n protected _valueHandler: ValueHandler;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public options: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of provided options has changed\n */\n public optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this.options;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this.optionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### constructor #########################\n constructor(protected _options: DynamicOptionsGathererOptions<TValue>)\n {\n if(!this._options)\n {\n throw new Error('Options can not be null!');\n }\n\n if(this._options && isPresent(this._options.minLength))\n {\n this._minLength = this._options.minLength;\n }\n }\n\n //######################### public methods - implementation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._liveSearch = null;\n }\n\n const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._visibilitySubscription.unsubscribe();\n this._visibilitySubscription = null;\n\n this._popup = null;\n }\n\n this._valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(!this._popup)\n {\n this._popup = popup;\n\n this._visibilitySubscription = this._popup.visibilityChange.subscribe(async () =>\n {\n if(this._initialized)\n {\n return;\n }\n\n await this._processOptionsChange();\n });\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n\n let searchValueChange: Observable<void> = this._liveSearch.searchValueChange;\n\n if(this._options.delay)\n {\n searchValueChange = searchValueChange.pipe(debounceTime(this._options.delay));\n }\n\n this._searchValueChangeSubscription = searchValueChange.subscribe(async () => await this._processOptionsChange());\n }\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n this._searchValueChangeSubscription?.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._visibilitySubscription?.unsubscribe();\n this._visibilitySubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Process options change request\n */\n protected async _processOptionsChange()\n {\n let searchValue: string = this._liveSearch.searchValue;\n\n //use value as search value if not initialized\n if(!this._initialized && !this.pluginBus.selectOptions.multiple && !Array.isArray(this._valueHandler.selectedOptions) && isPresent(this._valueHandler.selectedOptions))\n {\n searchValue = this._liveSearch.searchValue ?? this._valueHandler.selectedOptions.text;\n }\n\n this._initialized = true;\n\n if((searchValue?.length ?? 0) < this._minLength)\n {\n //remove available options if multiple or empty string\n if(isPresent(searchValue) || this.pluginBus.selectOptions.multiple)\n {\n this.options = [];\n this.optionsChange.emit();\n }\n\n return;\n }\n\n this.options = await this._options.dynamicOptionsCallback(searchValue ?? '');\n this.optionsChange.emit();\n }\n}"]}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { VALUE_HANDLER } from '../../plugins/valueHandler/types';
|
|
3
|
+
/**
|
|
4
|
+
* Options gatherer using default build in gatherer extended with exclusion of selected options
|
|
5
|
+
*/
|
|
6
|
+
export class ExcludingOptionsGatherer {
|
|
7
|
+
constructor() {
|
|
8
|
+
//######################### protected fields #########################
|
|
9
|
+
/**
|
|
10
|
+
* Array of visible, displayed options for select
|
|
11
|
+
*/
|
|
12
|
+
this._availableOptions = [];
|
|
13
|
+
/**
|
|
14
|
+
* Occurs when array of visible, displayed options has changed
|
|
15
|
+
*/
|
|
16
|
+
this._availableOptionsChange = new EventEmitter();
|
|
17
|
+
}
|
|
18
|
+
//######################### public properties - implementation of OptionsGatherer #########################
|
|
19
|
+
/**
|
|
20
|
+
* Array of provided options for select
|
|
21
|
+
*/
|
|
22
|
+
get options() {
|
|
23
|
+
return this.select.options;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Occurs when array of provided options has changed
|
|
27
|
+
*/
|
|
28
|
+
get optionsChange() {
|
|
29
|
+
return this.select.optionsChange;
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Array of visible, displayed options for select
|
|
33
|
+
*/
|
|
34
|
+
get availableOptions() {
|
|
35
|
+
return this._availableOptions;
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Occurs when array of visible, displayed options has changed
|
|
39
|
+
*/
|
|
40
|
+
get availableOptionsChange() {
|
|
41
|
+
return this._availableOptionsChange;
|
|
42
|
+
}
|
|
43
|
+
//######################### public methods - implmentation of OptionsGatherer #########################
|
|
44
|
+
/**
|
|
45
|
+
* Initialize gatherer during initialization phase
|
|
46
|
+
*/
|
|
47
|
+
initializeGatherer() {
|
|
48
|
+
this.select.initializeGatherer();
|
|
49
|
+
this._availableOptionsChangeSubscription = this.select.availableOptionsChange.subscribe(() => this._excludeSelected());
|
|
50
|
+
const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
51
|
+
if (this._valueHandler && this._valueHandler != valueHandler) {
|
|
52
|
+
this._valueChangedSubscription.unsubscribe();
|
|
53
|
+
this._valueChangedSubscription = null;
|
|
54
|
+
this._valueHandler = null;
|
|
55
|
+
}
|
|
56
|
+
if (!this._valueHandler) {
|
|
57
|
+
this._valueHandler = valueHandler;
|
|
58
|
+
this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => this._excludeSelected());
|
|
59
|
+
}
|
|
60
|
+
this._excludeSelected();
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Called when gatherer needs to be destroyed
|
|
64
|
+
*/
|
|
65
|
+
destroyGatherer() {
|
|
66
|
+
var _a, _b;
|
|
67
|
+
(_a = this._availableOptionsChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
68
|
+
this._availableOptionsChangeSubscription = null;
|
|
69
|
+
(_b = this._valueChangedSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
|
|
70
|
+
this._valueChangedSubscription = null;
|
|
71
|
+
}
|
|
72
|
+
//######################### protected methods #########################
|
|
73
|
+
/**
|
|
74
|
+
* Exclude selected options
|
|
75
|
+
*/
|
|
76
|
+
_excludeSelected() {
|
|
77
|
+
//nothing selected
|
|
78
|
+
if (!this._valueHandler.value) {
|
|
79
|
+
this._availableOptions = this.select.availableOptions;
|
|
80
|
+
this._availableOptionsChange.emit();
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
const compare = this.pluginBus.selectOptions.valueComparer;
|
|
84
|
+
const normalize = this.pluginBus.selectOptions.normalizer;
|
|
85
|
+
//multi selected
|
|
86
|
+
if (this.pluginBus.selectOptions.multiple && Array.isArray(this._valueHandler.value)) {
|
|
87
|
+
//filter out value
|
|
88
|
+
if (this._valueHandler.value.length) {
|
|
89
|
+
const value = this._valueHandler.value;
|
|
90
|
+
this._availableOptions = this.select.availableOptions.filter(opt => !value.find(itm => compare(normalize(itm), normalize(opt.value))));
|
|
91
|
+
}
|
|
92
|
+
//nothing selected
|
|
93
|
+
else {
|
|
94
|
+
this._availableOptions = this.select.availableOptions;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//single selected
|
|
98
|
+
else if (!this.pluginBus.selectOptions.multiple) {
|
|
99
|
+
this._availableOptions = this.select.availableOptions.filter(opt => !compare(normalize(opt.value), normalize(this._valueHandler.value)));
|
|
100
|
+
}
|
|
101
|
+
//deactivate selected
|
|
102
|
+
if (Array.isArray(this._valueHandler.selectedOptions)) {
|
|
103
|
+
this._valueHandler.selectedOptions.forEach((opt) => opt.active = false);
|
|
104
|
+
}
|
|
105
|
+
else {
|
|
106
|
+
this._valueHandler.selectedOptions.active = false;
|
|
107
|
+
}
|
|
108
|
+
this._availableOptionsChange.emit();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
//# sourceMappingURL=excludingOptionsGatherer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"excludingOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/excludingOptionsGatherer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAQ3C,OAAO,EAAC,aAAa,EAAC,MAAM,kCAAkC,CAAC;AAE/D;;GAEG;AACH,MAAM,OAAO,wBAAwB;IAArC;QAEI,sEAAsE;QAEtE;;WAEG;QACO,sBAAiB,GAA6B,EAAE,CAAC;QAE3D;;WAEG;QACO,4BAAuB,GAAuB,IAAI,YAAY,EAAQ,CAAC;IAkKrF,CAAC;IAjJG,2GAA2G;IAE3G;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QAEpB,OAAO,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC;IACrC,CAAC;IAED;;OAEG;IACH,IAAW,gBAAgB;QAEvB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAClC,CAAC;IAED;;OAEG;IACH,IAAW,sBAAsB;QAE7B,OAAO,IAAI,CAAC,uBAAuB,CAAC;IACxC,CAAC;IAiBD,uGAAuG;IAEvG;;OAEG;IACI,kBAAkB;QAErB,IAAI,CAAC,MAAM,CAAC,kBAAkB,EAAE,CAAC;QAEjC,IAAI,CAAC,mCAAmC,GAAG,IAAI,CAAC,MAAM,CAAC,sBAAsB,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,gBAAgB,EAAE,CAAC,CAAC;QAEvH,MAAM,YAAY,GAAG,IAAI,CAAC,eAAe,CAAC,aAAa,CAAiB,CAAC;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ACxC,CAAC;CACJ","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectOption, ɵNgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {PluginBus} from '../pluginBus/pluginBus';\nimport {ValueHandler} from '../../plugins/valueHandler';\nimport {VALUE_HANDLER} from '../../plugins/valueHandler/types';\n\n/**\n * Options gatherer using default build in gatherer extended with exclusion of selected options\n */\nexport class ExcludingOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Array of visible, displayed options for select\n */\n protected _availableOptions: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n protected _availableOptionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Subscription for change of available options\n */\n protected _availableOptionsChangeSubscription: Subscription;\n\n /**\n * Subscription for change of value in value handler\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public get options(): NgSelectOption<TValue>[]\n {\n return this.select.options;\n }\n\n /**\n * Occurs when array of provided options has changed\n */\n public get optionsChange(): EventEmitter<void>\n {\n return this.select.optionsChange;\n }\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this._availableOptions;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this._availableOptionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### public methods - implmentation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n this.select.initializeGatherer();\n\n this._availableOptionsChangeSubscription = this.select.availableOptionsChange.subscribe(() => this._excludeSelected());\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => this._excludeSelected());\n }\n\n this._excludeSelected();\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n this._availableOptionsChangeSubscription?.unsubscribe();\n this._availableOptionsChangeSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Exclude selected options\n */\n protected _excludeSelected()\n {\n //nothing selected\n if(!this._valueHandler.value)\n {\n this._availableOptions = this.select.availableOptions;\n this._availableOptionsChange.emit();\n\n return;\n }\n\n const compare = this.pluginBus.selectOptions.valueComparer;\n const normalize = this.pluginBus.selectOptions.normalizer;\n\n //multi selected\n if(this.pluginBus.selectOptions.multiple && Array.isArray(this._valueHandler.value))\n {\n //filter out value\n if(this._valueHandler.value.length)\n {\n const value = this._valueHandler.value;\n \n this._availableOptions = this.select.availableOptions.filter(opt => !value.find(itm => compare(normalize(itm), normalize(opt.value))));\n }\n //nothing selected\n else\n {\n this._availableOptions = this.select.availableOptions;\n }\n }\n //single selected\n else if(!this.pluginBus.selectOptions.multiple)\n {\n this._availableOptions = this.select.availableOptions.filter(opt => !compare(normalize(opt.value), normalize(this._valueHandler.value)));\n }\n\n //deactivate selected\n if(Array.isArray(this._valueHandler.selectedOptions))\n {\n this._valueHandler.selectedOptions.forEach((opt: ɵNgSelectOption) => opt.active = false);\n }\n else\n {\n (this._valueHandler.selectedOptions as ɵNgSelectOption).active = false;\n }\n\n this._availableOptionsChange.emit();\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"optionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/optionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectOption} from '../../components/option/option.interface';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {NormalizeFunc} from '../ngSelectOptions.interface';\nimport {PluginBus} from '../pluginBus/pluginBus';\n\n/**\n * Callback that is used for filtering static values during live search\n */\nexport interface LiveSearchFilter<TValue = any>\n{\n (query: string, normalizer?: NormalizeFunc<TValue>): (option: NgSelectOption<TValue>) => boolean\n}\n\n/**\n * Gatherer used for obtaining options for select\n */\nexport interface OptionsGatherer<TValue = any>\n{\n /**\n * Array of provided options for select\n */\n readonly options: NgSelectOption<TValue>[];\n\n /**\n * Occurs when array of provided options has changed\n */\n readonly optionsChange: EventEmitter<void>;\n\n /**\n * Array of visible, displayed options for select\n */\n readonly availableOptions: NgSelectOption<TValue>[];\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n readonly availableOptionsChange: EventEmitter<void>;\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n select: NgSelect<TValue>;\n\n /**\n * Initialize gatherer during initialization phase\n */\n initializeGatherer(): void;\n\n /**\n * Called when gatherer needs to be destroyed\n */\n destroyGatherer(): void;\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/types.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,4BAA4B,CAAC","sourcesContent":["export * from './codeOptionsGatherer';\nexport * from './dynamicOptionsGatherer';\nexport * from './excludingOptionsGatherer';"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.interface.js","sourceRoot":"","sources":["../../../src/misc/plugin.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Type, ElementRef} from '@angular/core';\n\nimport {NgSelectPluginInstances} from '../components/select';\nimport {KeyboardHandler} from '../plugins/keyboardHandler';\nimport {NormalState} from '../plugins/normalState';\nimport {Popup} from '../plugins/popup';\nimport {Positioner} from '../plugins/positioner';\nimport {ReadonlyState} from '../plugins/readonlyState';\nimport {ValueHandler} from '../plugins/valueHandler';\nimport {LiveSearch} from '../plugins/liveSearch';\nimport {PluginBus} from './pluginBus/pluginBus';\n\n/**\n * NgSelect plugin interface\n */\nexport interface NgSelectPlugin<TOptions = any, TValue = any>\n{\n /**\n * NgSelect plugin instances available for this plugin\n */\n ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Element that represents plugin\n */\n pluginElement: ElementRef;\n\n /**\n * Options for NgSelect plugin\n */\n options: TOptions;\n\n /**\n * Plugin bus used in select\n */\n pluginBus: PluginBus<TValue>;\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n initialize(): void;\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n initOptions(): void;\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n invalidateVisuals(): void;\n}\n\n/**\n * All available types of plugins for NgSelect\n */\nexport interface NgSelectPluginTypes\n{\n /**\n * Handles keyboard events\n */\n keyboardHandler?: PluginDescription<KeyboardHandler>;\n\n /**\n * Component used for displaying normal state of select\n */\n normalState?: PluginDescription<NormalState>;\n\n /**\n * Component used for displaying available options for selection\n */\n popup?: PluginDescription<Popup>;\n\n /**\n * Handles correct position of pop component\n */\n positioner?: PluginDescription<Positioner>;\n\n /**\n * Component used for displaying readonly/disabled state of select, can be null, in that case normal state component is used\n */\n readonlyState?: PluginDescription<ReadonlyState>;\n\n /**\n * Handles obtaining and setting value of component\n */\n valueHandler?: PluginDescription<ValueHandler>;\n\n /**\n * Contains component that is used for live searching in options\n */\n liveSearch?: PluginDescription<LiveSearch>;\n}\n\n/**\n * Base options for every plugin\n */\nexport interface PluginOptions\n{\n}\n\n/**\n * Base options for every visual plugin (component)\n */\nexport interface VisualPluginOptions<TCssClasses = any> extends PluginOptions\n{\n /**\n * Css classes applied to visual plugin (component), possible to override only part of classes\n */\n cssClasses?: TCssClasses;\n}\n\n/**\n * Defines interface, that describes minimal set of parameters for specifying plugin for NgSelect\n */\nexport interface PluginDescription<PluginType = any>\n{\n /**\n * Type of plugin that will be dynamically instantiated\n */\n type?: Type<PluginType>;\n\n /**\n * Options that will be passed to dynamically instantiated plugin\n */\n options?: PluginOptions;\n\n /**\n * Optional callback used for obtaining dynamic instance of plugin (allows direct communication with plugin)\n */\n instanceCallback?: (instance: NgSelectPlugin|null) => void;\n}"]}
|