@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,202 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, ViewChildren, Directive } from '@angular/core';
|
|
2
|
+
import { extend, isDescendant } from '@jscrpt/common';
|
|
3
|
+
import { PluginBus } from '../../misc/pluginBus/pluginBus';
|
|
4
|
+
import { VALUE_HANDLER } from '../valueHandler/types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "../../misc/pluginBus/pluginBus";
|
|
7
|
+
/**
|
|
8
|
+
* Base abstract class for popup with options
|
|
9
|
+
*/
|
|
10
|
+
export class PopupAbstractComponent {
|
|
11
|
+
//######################### constructor #########################
|
|
12
|
+
constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _document, _stringLocalization) {
|
|
13
|
+
this.ngSelectPlugins = ngSelectPlugins;
|
|
14
|
+
this.pluginBus = pluginBus;
|
|
15
|
+
this.pluginElement = pluginElement;
|
|
16
|
+
this._changeDetector = _changeDetector;
|
|
17
|
+
this._document = _document;
|
|
18
|
+
this._stringLocalization = _stringLocalization;
|
|
19
|
+
/**
|
|
20
|
+
* Indication whether is popup visible
|
|
21
|
+
*/
|
|
22
|
+
this._popupVisible = false;
|
|
23
|
+
/**
|
|
24
|
+
* Occurs when visibility of popup has changed
|
|
25
|
+
*/
|
|
26
|
+
this.visibilityChange = new EventEmitter();
|
|
27
|
+
/**
|
|
28
|
+
* Object containing available texts
|
|
29
|
+
* @internal
|
|
30
|
+
*/
|
|
31
|
+
this.texts = {};
|
|
32
|
+
/**
|
|
33
|
+
* Handles click outside of select element
|
|
34
|
+
* @param event - Mouse event object
|
|
35
|
+
*/
|
|
36
|
+
this._handleClickOutside = (event) => {
|
|
37
|
+
if (this.pluginBus.selectElement.nativeElement != event.target &&
|
|
38
|
+
!isDescendant(this.pluginBus.selectElement.nativeElement, event.target) &&
|
|
39
|
+
this.pluginElement.nativeElement != event.target &&
|
|
40
|
+
!isDescendant(this.pluginElement.nativeElement, event.target)) {
|
|
41
|
+
this.togglePopup();
|
|
42
|
+
this.pluginBus.updateDisplayedValue.emit();
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Handles visibility change
|
|
47
|
+
*/
|
|
48
|
+
this._handleVisibilityChange = (visible) => {
|
|
49
|
+
if (this.options.visible != visible) {
|
|
50
|
+
this.options.visible = visible;
|
|
51
|
+
this._changeDetector.detectChanges();
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
}
|
|
55
|
+
//######################### protected properties #########################
|
|
56
|
+
/**
|
|
57
|
+
* Gets indication whether keep open popup after value change
|
|
58
|
+
*/
|
|
59
|
+
get keepOpen() {
|
|
60
|
+
return this.pluginBus.selectOptions.multiple;
|
|
61
|
+
}
|
|
62
|
+
//######################### public properties - implementation of Popup #########################
|
|
63
|
+
/**
|
|
64
|
+
* Options for NgSelect plugin
|
|
65
|
+
*/
|
|
66
|
+
get options() {
|
|
67
|
+
return this._options;
|
|
68
|
+
}
|
|
69
|
+
set options(options) {
|
|
70
|
+
this._options = extend(true, this._options, options);
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Html element that represents popup itself
|
|
74
|
+
*/
|
|
75
|
+
get popupElement() {
|
|
76
|
+
const ref = this.popupElementChildren.first;
|
|
77
|
+
if (!ref) {
|
|
78
|
+
return null;
|
|
79
|
+
}
|
|
80
|
+
return ref.nativeElement;
|
|
81
|
+
}
|
|
82
|
+
//######################### public methods - implementation of AfterViewInit #########################
|
|
83
|
+
/**
|
|
84
|
+
* Called when view was initialized
|
|
85
|
+
*/
|
|
86
|
+
ngAfterViewInit() {
|
|
87
|
+
this.popupElementChildren.changes.subscribe(() => {
|
|
88
|
+
if (!!this.popupElementChildren.first == this._popupVisible) {
|
|
89
|
+
return;
|
|
90
|
+
}
|
|
91
|
+
//handle click outside
|
|
92
|
+
if (this.popupElementChildren.first) {
|
|
93
|
+
this._document.addEventListener('mouseup', this._handleClickOutside);
|
|
94
|
+
}
|
|
95
|
+
//unregister handle click outside
|
|
96
|
+
else {
|
|
97
|
+
this._document.removeEventListener('mouseup', this._handleClickOutside);
|
|
98
|
+
}
|
|
99
|
+
this._popupVisible = !!this.popupElementChildren.first;
|
|
100
|
+
this.visibilityChange.emit();
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
//######################### public methods - implementation of OnDestroy #########################
|
|
104
|
+
/**
|
|
105
|
+
* Called when component is destroyed
|
|
106
|
+
*/
|
|
107
|
+
ngOnDestroy() {
|
|
108
|
+
this._optionsChangeSubscription?.unsubscribe();
|
|
109
|
+
this._optionsChangeSubscription = null;
|
|
110
|
+
this._popupToggleSubscription?.unsubscribe();
|
|
111
|
+
this._popupToggleSubscription = null;
|
|
112
|
+
this._valueChangedSubscription?.unsubscribe();
|
|
113
|
+
this._valueChangedSubscription = null;
|
|
114
|
+
this._visibilityRequestSubscription?.unsubscribe();
|
|
115
|
+
this._visibilityRequestSubscription = null;
|
|
116
|
+
this._textsChangedSubscription?.unsubscribe();
|
|
117
|
+
this._textsChangedSubscription = null;
|
|
118
|
+
this._document.removeEventListener('mouseup', this._handleClickOutside);
|
|
119
|
+
}
|
|
120
|
+
//######################### public methods - implementation of Popup #########################
|
|
121
|
+
/**
|
|
122
|
+
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
123
|
+
*/
|
|
124
|
+
initialize() {
|
|
125
|
+
this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());
|
|
126
|
+
if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
|
|
127
|
+
this._optionsChangeSubscription.unsubscribe();
|
|
128
|
+
this._optionsChangeSubscription = null;
|
|
129
|
+
this._optionsGatherer = null;
|
|
130
|
+
}
|
|
131
|
+
if (!this._optionsGatherer) {
|
|
132
|
+
this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;
|
|
133
|
+
this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());
|
|
134
|
+
}
|
|
135
|
+
if (!this._popupToggleSubscription) {
|
|
136
|
+
this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());
|
|
137
|
+
}
|
|
138
|
+
if (!this._visibilityRequestSubscription) {
|
|
139
|
+
this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);
|
|
140
|
+
}
|
|
141
|
+
const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
142
|
+
if (this._valueHandler && this._valueHandler != valueHandler) {
|
|
143
|
+
this._valueChangedSubscription.unsubscribe();
|
|
144
|
+
this._valueChangedSubscription = null;
|
|
145
|
+
this._valueHandler = null;
|
|
146
|
+
}
|
|
147
|
+
if (!this._valueHandler) {
|
|
148
|
+
this._valueHandler = valueHandler;
|
|
149
|
+
this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => {
|
|
150
|
+
if (!this.keepOpen) {
|
|
151
|
+
this._handleVisibilityChange(false);
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
}
|
|
155
|
+
this.loadOptions();
|
|
156
|
+
this._initTexts();
|
|
157
|
+
}
|
|
158
|
+
/**
|
|
159
|
+
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
160
|
+
*/
|
|
161
|
+
initOptions() {
|
|
162
|
+
}
|
|
163
|
+
/**
|
|
164
|
+
* Explicitly runs invalidation of content (change detection)
|
|
165
|
+
*/
|
|
166
|
+
invalidateVisuals() {
|
|
167
|
+
this._changeDetector.detectChanges();
|
|
168
|
+
}
|
|
169
|
+
//######################### protected methods #########################
|
|
170
|
+
/**
|
|
171
|
+
* Initialize texts
|
|
172
|
+
*/
|
|
173
|
+
_initTexts() {
|
|
174
|
+
Object.keys(this.options.texts).forEach(key => {
|
|
175
|
+
this.texts[key] = this._stringLocalization.get(this.options.texts[key]);
|
|
176
|
+
});
|
|
177
|
+
this._changeDetector.detectChanges();
|
|
178
|
+
}
|
|
179
|
+
/**
|
|
180
|
+
* Loads options
|
|
181
|
+
*/
|
|
182
|
+
loadOptions() {
|
|
183
|
+
this.selectOptions = this._optionsGatherer.availableOptions;
|
|
184
|
+
this._changeDetector.detectChanges();
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Toggles popup visibility
|
|
188
|
+
*/
|
|
189
|
+
togglePopup() {
|
|
190
|
+
this.options.visible = !this.options.visible;
|
|
191
|
+
this._changeDetector.detectChanges();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
PopupAbstractComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PopupAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
195
|
+
PopupAbstractComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.2.3", type: PopupAbstractComponent, viewQueries: [{ propertyName: "popupElementChildren", predicate: ["popupDiv"], descendants: true }], ngImport: i0 });
|
|
196
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: PopupAbstractComponent, decorators: [{
|
|
197
|
+
type: Directive
|
|
198
|
+
}], ctorParameters: function () { return [{ type: undefined }, { type: i1.PluginBus }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: Document }, { type: undefined }]; }, propDecorators: { popupElementChildren: [{
|
|
199
|
+
type: ViewChildren,
|
|
200
|
+
args: ['popupDiv']
|
|
201
|
+
}] } });
|
|
202
|
+
//# sourceMappingURL=popupAbstract.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"popupAbstract.component.js","sourceRoot":"","sources":["../../../../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estroy, QueryList, ViewChildren, Directive} from '@angular/core';\nimport {StringLocalization} from '@anglr/common';\nimport {extend, isDescendant} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {ɵNgSelectOption} from '../../components/option';\nimport {NgSelectPluginInstances} from '../../components/select';\nimport {NgSelectPlugin, OptionsGatherer} from '../../misc';\nimport {PluginBus} from '../../misc/pluginBus/pluginBus';\nimport {Popup, PopupOptions, PopupTexts} from './popup.interface';\nimport {ValueHandler} from '../valueHandler';\nimport {VALUE_HANDLER} from '../valueHandler/types';\n\n\n/**\n * Base abstract class for popup with options\n */\n@Directive()\nexport class PopupAbstractComponent<TCssClasses = any, TOptions extends PopupOptions<TCssClasses> = any> implements Popup, NgSelectPlugin<TOptions>, AfterViewInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: TOptions;\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Subscription for toggle popup event\n */\n protected _popupToggleSubscription: Subscription;\n\n /**\n * Subscription for popup visibility change request\n */\n protected _visibilityRequestSubscription: Subscription;\n\n /**\n * Subscription for changes of selected value\n */\n protected _valueChangedSubscription: Subscription;\n\n /**\n * Subscription for changes in texts\n */\n protected _textsChangedSubscription: Subscription;\n\n /**\n * Indication whether is popup visible\n */\n protected _popupVisible: boolean = false;\n\n /**\n * Value handler plugin used within `NgSelect`\n */\n protected _valueHandler: ValueHandler;\n\n //######################### protected properties #########################\n\n /**\n * Gets indication whether keep open popup after value change\n */\n protected get keepOpen(): boolean\n {\n return this.pluginBus.selectOptions.multiple;\n }\n\n //######################### public properties - implementation of Popup #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): TOptions\n {\n return this._options;\n }\n public set options(options: TOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * Occurs when visibility of popup has changed\n */\n public visibilityChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Html element that represents popup itself\n */\n public get popupElement(): HTMLElement\n {\n const ref = this.popupElementChildren.first;\n\n if(!ref)\n {\n return null;\n }\n\n return ref.nativeElement;\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Array of select options available\n * @internal\n */\n public selectOptions: ɵNgSelectOption[];\n\n /**\n * Object containing available texts\n * @internal\n */\n public texts: PopupTexts = {};\n \n //######################### public properties - children #########################\n\n /**\n * Watch for visibility of popup div element\n * @internal\n */\n @ViewChildren('popupDiv')\n public popupElementChildren: QueryList<ElementRef<HTMLElement>>;\n\n //######################### constructor #########################\n constructor(public ngSelectPlugins: NgSelectPluginInstances,\n public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n protected _document: Document,\n protected _stringLocalization: StringLocalization)\n {\n }\n\n //######################### public methods - implementation of AfterViewInit #########################\n\n /**\n * Called when view was initialized\n */\n public ngAfterViewInit()\n {\n this.popupElementChildren.changes.subscribe(() =>\n {\n if(!!this.popupElementChildren.first == this._popupVisible)\n {\n return;\n }\n\n //handle click outside\n if(this.popupElementChildren.first)\n {\n this._document.addEventListener('mouseup', this._handleClickOutside);\n }\n //unregister handle click outside\n else\n {\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n this._popupVisible = !!this.popupElementChildren.first;\n this.visibilityChange.emit();\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._popupToggleSubscription?.unsubscribe();\n this._popupToggleSubscription = null;\n\n this._valueChangedSubscription?.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._visibilityRequestSubscription?.unsubscribe();\n this._visibilityRequestSubscription = null;\n\n this._textsChangedSubscription?.unsubscribe();\n this._textsChangedSubscription = null;\n\n this._document.removeEventListener('mouseup', this._handleClickOutside);\n }\n\n //######################### public methods - implementation of Popup #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n this._textsChangedSubscription = this._stringLocalization.textsChange.subscribe(() => this._initTexts());\n\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());\n }\n\n if(!this._popupToggleSubscription)\n {\n this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());\n }\n\n if(!this._visibilityRequestSubscription)\n {\n this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);\n }\n\n const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(this._valueHandler && this._valueHandler != valueHandler)\n {\n this._valueChangedSubscription.unsubscribe();\n this._valueChangedSubscription = null;\n\n this._valueHandler = null;\n }\n\n if(!this._valueHandler)\n {\n this._valueHandler = valueHandler;\n\n this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() =>\n {\n if(!this.keepOpen)\n {\n this._handleVisibilityChange(false);\n }\n });\n }\n\n this.loadOptions();\n this._initTexts();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize texts\n */\n protected _initTexts()\n {\n Object.keys(this.options.texts).forEach(key =>\n {\n this.texts[key as keyof PopupTexts] = this._stringLocalization.get(this.options.texts[key as keyof PopupTexts]);\n });\n\n this._changeDetector.detectChanges();\n }\n\n /**\n * Loads options\n */\n protected loadOptions()\n {\n this.selectOptions = this._optionsGatherer.availableOptions;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Toggles popup visibility\n */\n protected togglePopup()\n {\n this.options.visible = !this.options.visible;\n this._changeDetector.detectChanges();\n }\n\n /**\n * Handles click outside of select element\n * @param event - Mouse event object\n */\n protected _handleClickOutside = (event: MouseEvent) =>\n {\n if(this.pluginBus.selectElement.nativeElement != event.target &&\n !isDescendant(this.pluginBus.selectElement.nativeElement, event.target as HTMLElement) &&\n this.pluginElement.nativeElement != event.target &&\n !isDescendant(this.pluginElement.nativeElement, event.target as HTMLElement))\n {\n this.togglePopup();\n\n this.pluginBus.updateDisplayedValue.emit();\n }\n }\n\n /**\n * Handles visibility change\n */\n protected _handleVisibilityChange = (visible: boolean) =>\n {\n if(this.options.visible != visible)\n {\n this.options.visible = visible;\n this._changeDetector.detectChanges();\n }\n };\n}"]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
/**
|
|
3
|
+
* Constant used for accessing popup plugin in NgSelect
|
|
4
|
+
*/
|
|
5
|
+
export const POPUP = 'POPUP';
|
|
6
|
+
/**
|
|
7
|
+
* Token for injecting options for popup plugin
|
|
8
|
+
*/
|
|
9
|
+
export const POPUP_OPTIONS = new InjectionToken('POPUP_OPTIONS');
|
|
10
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/plugins/popup/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,OAAO,CAAC;AAE7B;;GAEG;AACH,MAAM,CAAC,MAAM,aAAa,GAAiC,IAAI,cAAc,CAAe,eAAe,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {PopupOptions} from './popup.interface';\n\n/**\n * Constant used for accessing popup plugin in NgSelect\n */\nexport const POPUP = 'POPUP';\n\n/**\n * Token for injecting options for popup plugin\n */\nexport const POPUP_OPTIONS: InjectionToken<PopupOptions> = new InjectionToken<PopupOptions>('POPUP_OPTIONS');"]}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, PLATFORM_ID, ChangeDetectorRef } from '@angular/core';
|
|
2
|
+
import { DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
3
|
+
import { positionsWithFlip } from '@anglr/common/positions';
|
|
4
|
+
import { extend, isNumber } from '@jscrpt/common';
|
|
5
|
+
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
6
|
+
import { POSITIONER_OPTIONS } from '../types';
|
|
7
|
+
import { POPUP } from '../../popup/types';
|
|
8
|
+
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
9
|
+
import { ScrollTargetSelector } from './types';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
12
|
+
import * as i2 from "./types";
|
|
13
|
+
/**
|
|
14
|
+
* Default options for positioner
|
|
15
|
+
* @internal
|
|
16
|
+
*/
|
|
17
|
+
const defaultOptions = {
|
|
18
|
+
optionsCoordinates: 'top left',
|
|
19
|
+
selectCoordinates: 'bottom left',
|
|
20
|
+
flipCallback: () => { },
|
|
21
|
+
scrollTarget: null,
|
|
22
|
+
activateOnResize: true,
|
|
23
|
+
activateOnScroll: true
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* Component used for positioning popup element, handles resize, scroll and collision with viewport
|
|
27
|
+
*/
|
|
28
|
+
export class BasicPositionerComponent {
|
|
29
|
+
//######################### constructor #########################
|
|
30
|
+
constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, options, _document, _platformId, _scrollTargetSelector) {
|
|
31
|
+
this.ngSelectPlugins = ngSelectPlugins;
|
|
32
|
+
this.pluginBus = pluginBus;
|
|
33
|
+
this.pluginElement = pluginElement;
|
|
34
|
+
this._changeDetector = _changeDetector;
|
|
35
|
+
this._document = _document;
|
|
36
|
+
this._platformId = _platformId;
|
|
37
|
+
this._scrollTargetSelector = _scrollTargetSelector;
|
|
38
|
+
/**
|
|
39
|
+
* Indication whether is code running in browser
|
|
40
|
+
*/
|
|
41
|
+
this._isBrowser = isPlatformBrowser(this._platformId);
|
|
42
|
+
//######################### protected methods #########################
|
|
43
|
+
/**
|
|
44
|
+
* Handles resize and scroll event
|
|
45
|
+
*/
|
|
46
|
+
this._handleResizeAndScroll = () => {
|
|
47
|
+
this._updateMinWidth();
|
|
48
|
+
positionsWithFlip(this._popupElement, this.options.optionsCoordinates, this.pluginBus.selectElement.nativeElement, this.options.selectCoordinates, this._document, this.options.flipCallback);
|
|
49
|
+
};
|
|
50
|
+
this._options = extend(true, {}, defaultOptions, options);
|
|
51
|
+
}
|
|
52
|
+
//######################### public properties - implementation of BasicPositioner #########################
|
|
53
|
+
/**
|
|
54
|
+
* Options for NgSelect plugin
|
|
55
|
+
*/
|
|
56
|
+
get options() {
|
|
57
|
+
return this._options;
|
|
58
|
+
}
|
|
59
|
+
set options(options) {
|
|
60
|
+
this._options = extend(true, this._options, options);
|
|
61
|
+
}
|
|
62
|
+
//######################### protected properties #########################
|
|
63
|
+
/**
|
|
64
|
+
* Gets scroll target
|
|
65
|
+
*/
|
|
66
|
+
get scrollTarget() {
|
|
67
|
+
return this._options.scrollTarget || this._scrollTargetSelector.scrollTarget;
|
|
68
|
+
}
|
|
69
|
+
//######################### public methods - implementation of OnDestroy #########################
|
|
70
|
+
/**
|
|
71
|
+
* Called when component is destroyed
|
|
72
|
+
*/
|
|
73
|
+
ngOnDestroy() {
|
|
74
|
+
this._visibilitySubscription?.unsubscribe();
|
|
75
|
+
this._visibilitySubscription = null;
|
|
76
|
+
this._optionsChangeSubscription?.unsubscribe();
|
|
77
|
+
this._optionsChangeSubscription = null;
|
|
78
|
+
if (this._isBrowser) {
|
|
79
|
+
window.removeEventListener('resize', this._handleResizeAndScroll);
|
|
80
|
+
this.scrollTarget?.removeEventListener('scroll', this._handleResizeAndScroll);
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
//######################### public methods - implementation of BasicPositioner #########################
|
|
84
|
+
/**
|
|
85
|
+
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
86
|
+
*/
|
|
87
|
+
initialize() {
|
|
88
|
+
if (this._optionsGatherer && this._optionsGatherer != this.pluginBus?.selectOptions.optionsGatherer) {
|
|
89
|
+
this._optionsChangeSubscription.unsubscribe();
|
|
90
|
+
this._optionsChangeSubscription = null;
|
|
91
|
+
this._optionsGatherer = null;
|
|
92
|
+
}
|
|
93
|
+
if (!this._optionsGatherer) {
|
|
94
|
+
this._optionsGatherer = this.pluginBus?.selectOptions.optionsGatherer;
|
|
95
|
+
this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => {
|
|
96
|
+
if (this._popup.popupElement && this._optionsGatherer.availableOptions) {
|
|
97
|
+
this._handlePosition();
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
const popup = this.ngSelectPlugins[POPUP];
|
|
102
|
+
if (this._popup && this._popup != popup) {
|
|
103
|
+
this._visibilitySubscription.unsubscribe();
|
|
104
|
+
this._visibilitySubscription = null;
|
|
105
|
+
this._popup = null;
|
|
106
|
+
}
|
|
107
|
+
if (!this._popup) {
|
|
108
|
+
this._popup = popup;
|
|
109
|
+
this._visibilitySubscription = this._popup.visibilityChange.subscribe(() => this._handlePosition());
|
|
110
|
+
}
|
|
111
|
+
this._handlePosition();
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
115
|
+
*/
|
|
116
|
+
initOptions() {
|
|
117
|
+
}
|
|
118
|
+
/**
|
|
119
|
+
* Explicitly runs invalidation of content (change detection)
|
|
120
|
+
*/
|
|
121
|
+
invalidateVisuals() {
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Handles position of popup
|
|
125
|
+
*/
|
|
126
|
+
_handlePosition() {
|
|
127
|
+
this._popupElement = this._popup.popupElement;
|
|
128
|
+
//this has meaning only when popup is outside of ng-element
|
|
129
|
+
this._changeDetector.markForCheck();
|
|
130
|
+
if (this._isBrowser) {
|
|
131
|
+
//register events and handle position of opened popup
|
|
132
|
+
if (this._popupElement) {
|
|
133
|
+
if (this._options.activateOnResize) {
|
|
134
|
+
window.addEventListener('resize', this._handleResizeAndScroll);
|
|
135
|
+
}
|
|
136
|
+
if (this._options.activateOnScroll) {
|
|
137
|
+
this.scrollTarget?.addEventListener('scroll', this._handleResizeAndScroll);
|
|
138
|
+
}
|
|
139
|
+
this._handleResizeAndScroll();
|
|
140
|
+
}
|
|
141
|
+
//unregister events
|
|
142
|
+
else {
|
|
143
|
+
window.removeEventListener('resize', this._handleResizeAndScroll);
|
|
144
|
+
this.scrollTarget?.removeEventListener('scroll', this._handleResizeAndScroll);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
/**
|
|
149
|
+
* Updates min width of popup
|
|
150
|
+
*/
|
|
151
|
+
_updateMinWidth() {
|
|
152
|
+
if (!this._popupElement) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const minWidth = this.pluginBus.selectElement.nativeElement.clientWidth;
|
|
156
|
+
if (isNaN(minWidth) || !isNumber(minWidth)) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
159
|
+
this._popupElement.style.minWidth = `${minWidth}px`;
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
BasicPositionerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BasicPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: POSITIONER_OPTIONS, optional: true }, { token: DOCUMENT }, { token: PLATFORM_ID }, { token: i2.ScrollTargetSelector }], target: i0.ɵɵFactoryTarget.Component });
|
|
163
|
+
BasicPositionerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: BasicPositionerComponent, selector: "ng-basic-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: BasicPositionerComponent, decorators: [{
|
|
165
|
+
type: Component,
|
|
166
|
+
args: [{
|
|
167
|
+
selector: 'ng-basic-positioner',
|
|
168
|
+
template: '',
|
|
169
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
170
|
+
}]
|
|
171
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
172
|
+
type: Inject,
|
|
173
|
+
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
174
|
+
}, {
|
|
175
|
+
type: Optional
|
|
176
|
+
}] }, { type: i1.PluginBus, decorators: [{
|
|
177
|
+
type: Optional
|
|
178
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
179
|
+
type: Inject,
|
|
180
|
+
args: [POSITIONER_OPTIONS]
|
|
181
|
+
}, {
|
|
182
|
+
type: Optional
|
|
183
|
+
}] }, { type: Document, decorators: [{
|
|
184
|
+
type: Inject,
|
|
185
|
+
args: [DOCUMENT]
|
|
186
|
+
}] }, { type: Object, decorators: [{
|
|
187
|
+
type: Inject,
|
|
188
|
+
args: [PLATFORM_ID]
|
|
189
|
+
}] }, { type: i2.ScrollTargetSelector }]; } });
|
|
190
|
+
//# sourceMappingURL=basicPositioner.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicPositioner.component.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/basic/basicPosit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AQ,CAAC,EACzC;YACI,OAAO;SACV;QAED,IAAI,CAAC,aAAa,CAAC,KAAK,CAAC,QAAQ,GAAG,GAAG,QAAQ,IAAI,CAAC;IACxD,CAAC;;qHA/NQ,wBAAwB,kBAgEb,0BAA0B,iIAI1B,kBAAkB,6BAClB,QAAQ,aACR,WAAW;yGAtEtB,wBAAwB,2DAHvB,EAAE;2FAGH,wBAAwB;kBANpC,SAAS;mBACV;oBACI,QAAQ,EAAE,qBAAqB;oBAC/B,QAAQ,EAAE,EAAE;oBACZ,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAiEgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAGR,MAAM;2BAAC,kBAAkB;;0BAAG,QAAQ;8BACG,QAAQ;0BAA/C,MAAM;2BAAC,QAAQ;8BAC6B,MAAM;0BAAlD,MAAM;2BAAC,WAAW","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy, PLATFORM_ID, ChangeDetectorRef} from '@angular/core';\nimport {DOCUMENT, isPlatformBrowser} from '@angular/common';\nimport {positionsWithFlip} from '@anglr/common/positions';\nimport {extend, isNumber} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {BasicPositionerOptions, BasicPositioner} from './basicPositioner.interface';\nimport {NgSelectPlugin, OptionsGatherer} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {POSITIONER_OPTIONS} from '../types';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {ScrollTargetSelector} from './types';\n\n/**\n * Default options for positioner\n * @internal\n */\nconst defaultOptions: BasicPositionerOptions =\n{\n optionsCoordinates: 'top left',\n selectCoordinates: 'bottom left',\n flipCallback: () => {},\n scrollTarget: null,\n activateOnResize: true,\n activateOnScroll: true\n};\n\n/**\n * Component used for positioning popup element, handles resize, scroll and collision with viewport\n */\n@Component(\n{\n selector: 'ng-basic-positioner',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class BasicPositionerComponent implements BasicPositioner, NgSelectPlugin<BasicPositionerOptions>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer;\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: BasicPositionerOptions;\n\n /**\n * Subscription for visibility change of popup\n */\n protected _visibilitySubscription: Subscription;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n /**\n * Html element of popup plugin\n */\n protected _popupElement: HTMLElement;\n\n /**\n * Indication whether is code running in browser\n */\n protected _isBrowser: boolean = isPlatformBrowser(this._platformId);\n\n //######################### public properties - implementation of BasicPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): BasicPositionerOptions\n {\n return this._options;\n }\n public set options(options: BasicPositionerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n //######################### protected properties #########################\n\n /**\n * Gets scroll target\n */\n public get scrollTarget(): EventTarget\n {\n return this._options.scrollTarget || this._scrollTargetSelector.scrollTarget;\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n protected _changeDetector: ChangeDetectorRef,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: BasicPositionerOptions,\n @Inject(DOCUMENT) protected _document?: Document,\n @Inject(PLATFORM_ID) protected _platformId?: Object,\n protected _scrollTargetSelector?: ScrollTargetSelector)\n {\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._visibilitySubscription?.unsubscribe();\n this._visibilitySubscription = null;\n\n this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n if(this._isBrowser)\n {\n window.removeEventListener('resize', this._handleResizeAndScroll);\n this.scrollTarget?.removeEventListener('scroll', this._handleResizeAndScroll);\n }\n }\n\n //######################### public methods - implementation of BasicPositioner #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus?.selectOptions.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus?.selectOptions.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() =>\n {\n if(this._popup.popupElement && this._optionsGatherer.availableOptions)\n {\n this._handlePosition();\n }\n });\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 if(!this._popup)\n {\n this._popup = popup;\n\n this._visibilitySubscription = this._popup.visibilityChange.subscribe(() => this._handlePosition());\n }\n\n this._handlePosition();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Handles resize and scroll event\n */\n protected _handleResizeAndScroll = () =>\n {\n this._updateMinWidth();\n positionsWithFlip(this._popupElement, this.options.optionsCoordinates, this.pluginBus.selectElement.nativeElement, this.options.selectCoordinates, this._document, this.options.flipCallback);\n };\n\n /**\n * Handles position of popup\n */\n protected _handlePosition()\n {\n this._popupElement = this._popup.popupElement;\n\n //this has meaning only when popup is outside of ng-element\n this._changeDetector.markForCheck();\n\n if(this._isBrowser)\n {\n //register events and handle position of opened popup\n if(this._popupElement)\n {\n if(this._options.activateOnResize)\n {\n window.addEventListener('resize', this._handleResizeAndScroll);\n }\n\n if(this._options.activateOnScroll)\n {\n this.scrollTarget?.addEventListener('scroll', this._handleResizeAndScroll);\n }\n \n this._handleResizeAndScroll();\n }\n //unregister events\n else\n {\n window.removeEventListener('resize', this._handleResizeAndScroll);\n this.scrollTarget?.removeEventListener('scroll', this._handleResizeAndScroll);\n }\n }\n }\n\n /**\n * Updates min width of popup\n */\n protected _updateMinWidth()\n {\n if(!this._popupElement)\n {\n return;\n }\n\n const minWidth = this.pluginBus.selectElement.nativeElement.clientWidth;\n\n if(isNaN(minWidth) || !isNumber(minWidth))\n {\n return;\n }\n\n this._popupElement.style.minWidth = `${minWidth}px`;\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"basicPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/basic/basicPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {FlipCallback} from '@anglr/common/positions';\n\nimport {Positioner, PositionerOptions} from '../positioner.interface';\n\n/**\n * Basic positioner options\n */\nexport interface BasicPositionerOptions extends PositionerOptions\n{\n /**\n * Callback that is called when flip occurs during positioning\n */\n flipCallback?: FlipCallback;\n\n /**\n * Target element that is used for handling scroll event\n */\n scrollTarget?: EventTarget;\n\n /**\n * Indication whether positioner should be sensitive/activated also to scroll of scrollTarget\n */\n activateOnScroll?: boolean;\n\n /**\n * Indication whether positioner should be sensitive/activated also on resize of window\n */\n activateOnResize?: boolean;\n}\n\n/**\n * Public API for 'BasicPositionerComponent'\n */\nexport interface BasicPositioner extends Positioner\n{\n}"]}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Injectable } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Scroll target selector that is used for obtaining scroll target
|
|
5
|
+
*/
|
|
6
|
+
export class ScrollTargetSelector {
|
|
7
|
+
constructor() {
|
|
8
|
+
//######################### private fields #########################
|
|
9
|
+
/**
|
|
10
|
+
* Callback used for getting scroll target for scrolling
|
|
11
|
+
*/
|
|
12
|
+
this._scrollTargetCallback = () => window;
|
|
13
|
+
}
|
|
14
|
+
//######################### public properties #########################
|
|
15
|
+
/**
|
|
16
|
+
* Gets scroll target that is used for scrolling
|
|
17
|
+
*/
|
|
18
|
+
get scrollTarget() {
|
|
19
|
+
return this._scrollTargetCallback();
|
|
20
|
+
}
|
|
21
|
+
//######################### public methods #########################
|
|
22
|
+
/**
|
|
23
|
+
* Sets callback used for obtaining scroll target
|
|
24
|
+
* @param callback - Callback that is used for obtaining scroll target element
|
|
25
|
+
*/
|
|
26
|
+
setScrollTarget(callback) {
|
|
27
|
+
this._scrollTargetCallback = callback;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
ScrollTargetSelector.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ScrollTargetSelector, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
31
|
+
ScrollTargetSelector.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ScrollTargetSelector, providedIn: 'root' });
|
|
32
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: ScrollTargetSelector, decorators: [{
|
|
33
|
+
type: Injectable,
|
|
34
|
+
args: [{ providedIn: 'root' }]
|
|
35
|
+
}] });
|
|
36
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/basic/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC;;AAEzC;;GAEG;AAEH,MAAM,OAAO,oBAAoB;IADjC;QAGI,oEAAoE;QAEpE;;WAEG;QACK,0BAAqB,GAAsB,GAAG,EAAE,CAAC,MAAM,CAAC;KAsBnE;IApBG,uEAAuE;IAEvE;;OAEG;IACH,IAAW,YAAY;QAEnB,OAAO,IAAI,CAAC,qBAAqB,EAAE,CAAC;IACxC,CAAC;IAED,oEAAoE;IAEpE;;;OAGG;IACI,eAAe,CAAC,QAA2B;QAE9C,IAAI,CAAC,qBAAqB,GAAG,QAAQ,CAAC;IAC1C,CAAC;;iHA5BQ,oBAAoB;qHAApB,oBAAoB,cADR,MAAM;2FAClB,oBAAoB;kBADhC,UAAU;mBAAC,EAAC,UAAU,EAAE,MAAM,EAAC","sourcesContent":["import {Injectable} from '@angular/core';\n\n/**\n * Scroll target selector that is used for obtaining scroll target\n */\n@Injectable({providedIn: 'root'})\nexport class ScrollTargetSelector\n{\n //######################### private fields #########################\n\n /**\n * Callback used for getting scroll target for scrolling\n */\n private _scrollTargetCallback: () => EventTarget = () => window;\n\n //######################### public properties #########################\n\n /**\n * Gets scroll target that is used for scrolling\n */\n public get scrollTarget(): EventTarget\n {\n return this._scrollTargetCallback();\n }\n\n //######################### public methods #########################\n\n /**\n * Sets callback used for obtaining scroll target\n * @param callback - Callback that is used for obtaining scroll target element\n */\n public setScrollTarget(callback: () => EventTarget)\n {\n this._scrollTargetCallback = callback;\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/components.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './basic/basicPositioner.component';\nexport * from './no/noPositioner.component';"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AAEvC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './positioner.interface';\n\nexport * from './basic/basicPositioner.interface';\nexport * from './no/noPositioner.interface';"]}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
import { ChangeDetectionStrategy, Component, ElementRef, Inject, Optional } from '@angular/core';
|
|
2
|
+
import { extend } from '@jscrpt/common';
|
|
3
|
+
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
4
|
+
import { POSITIONER_OPTIONS } from '../types';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* Default options for positioner
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
const defaultOptions = {};
|
|
11
|
+
/**
|
|
12
|
+
* Component used for not positioning popup
|
|
13
|
+
*/
|
|
14
|
+
export class NoPositionerComponent {
|
|
15
|
+
//######################### constructor #########################
|
|
16
|
+
constructor(ngSelectPlugins, pluginElement, options) {
|
|
17
|
+
this.ngSelectPlugins = ngSelectPlugins;
|
|
18
|
+
this.pluginElement = pluginElement;
|
|
19
|
+
this._options = extend(true, {}, defaultOptions, options);
|
|
20
|
+
}
|
|
21
|
+
//######################### public properties - implementation of NoPositioner #########################
|
|
22
|
+
/**
|
|
23
|
+
* Options for NgSelect plugin
|
|
24
|
+
*/
|
|
25
|
+
get options() {
|
|
26
|
+
return this._options;
|
|
27
|
+
}
|
|
28
|
+
set options(options) {
|
|
29
|
+
this._options = extend(true, this._options, options);
|
|
30
|
+
}
|
|
31
|
+
//######################### public methods - implementation of NoPositioner #########################
|
|
32
|
+
/**
|
|
33
|
+
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
34
|
+
*/
|
|
35
|
+
initialize() {
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
39
|
+
*/
|
|
40
|
+
initOptions() {
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Explicitly runs invalidation of content (change detection)
|
|
44
|
+
*/
|
|
45
|
+
invalidateVisuals() {
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
NoPositionerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NoPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i0.ElementRef }, { token: POSITIONER_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
NoPositionerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.2.3", type: NoPositionerComponent, selector: "ng-no-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
50
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.2.3", ngImport: i0, type: NoPositionerComponent, decorators: [{
|
|
51
|
+
type: Component,
|
|
52
|
+
args: [{
|
|
53
|
+
selector: 'ng-no-positioner',
|
|
54
|
+
template: '',
|
|
55
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
|
56
|
+
}]
|
|
57
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
58
|
+
type: Inject,
|
|
59
|
+
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
60
|
+
}, {
|
|
61
|
+
type: Optional
|
|
62
|
+
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
63
|
+
type: Inject,
|
|
64
|
+
args: [POSITIONER_OPTIONS]
|
|
65
|
+
}, {
|
|
66
|
+
type: Optional
|
|
67
|
+
}] }]; } });
|
|
68
|
+
//# sourceMappingURL=noPositioner.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noPositioner.component.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/no/noPositioner.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,uBAAuB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAC,M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from '@angular/core';\nimport {extend} from '@jscrpt/common';\n\nimport {NoPositioner, NoPositionerOptions} from './noPositioner.interface';\nimport {NgSelectPlugin} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {POSITIONER_OPTIONS} from '../types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for positioner\n * @internal\n */\nconst defaultOptions: NoPositionerOptions =\n{\n};\n\n/**\n * Component used for not positioning popup\n */\n@Component(\n{\n selector: 'ng-no-positioner',\n template: '',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class NoPositionerComponent implements NoPositioner, NgSelectPlugin<NoPositionerOptions>\n{\n //######################### private properties #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: NoPositionerOptions;\n\n //######################### public properties - implementation of NoPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): NoPositionerOptions\n {\n return this._options;\n }\n public set options(options: NoPositionerOptions)\n {\n this._options = extend(true, this._options, options);\n }\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus;\n\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n public pluginElement: ElementRef,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: NoPositionerOptions)\n {\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of NoPositioner #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n }\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"noPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/no/noPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Positioner, PositionerOptions} from '../positioner.interface';\n\n/**\n * Public API for 'NoPositionerComponent'\n */\nexport interface NoPositioner extends Positioner\n{}\n\n/**\n * No positioner options\n */\nexport interface NoPositionerOptions extends PositionerOptions\n{}"]}
|