@anglr/select 15.0.0 → 16.0.0-beta.20260226142137
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 +153 -0
- package/es2022/extensions/src/extensions/getValue.js +16 -1
- package/es2022/extensions/src/extensions/getValue.js.map +1 -1
- package/es2022/extensions/src/extensions/onFocus.js +14 -1
- package/es2022/extensions/src/extensions/onFocus.js.map +1 -1
- package/es2022/extensions/src/extensions/patchOptions.js +15 -11
- package/es2022/extensions/src/extensions/patchOptions.js.map +1 -1
- package/es2022/extensions/src/extensions/reinitializeOptions.js +19 -14
- package/es2022/extensions/src/extensions/reinitializeOptions.js.map +1 -1
- package/es2022/extensions/src/extensions/setReadonly.js +21 -1
- package/es2022/extensions/src/extensions/setReadonly.js.map +1 -1
- package/es2022/extensions/src/extensions/setValue.js +17 -1
- package/es2022/extensions/src/extensions/setValue.js.map +1 -1
- package/es2022/extensions/src/extensions/valueChange.js +17 -1
- package/es2022/extensions/src/extensions/valueChange.js.map +1 -1
- package/es2022/extensions/src/index.js +1 -7
- package/es2022/extensions/src/index.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js +100 -72
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +26 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/index.js +2 -1
- package/es2022/material/src/components/basicDialogPopup/index.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/types.js +2 -1
- package/es2022/material/src/components/basicDialogPopup/types.js.map +1 -1
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js +73 -74
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -1
- package/es2022/material/src/index.js +1 -7
- package/es2022/material/src/index.js.map +1 -1
- package/es2022/material/src/modules/dialogPopup.module.js +33 -40
- package/es2022/material/src/modules/dialogPopup.module.js.map +1 -1
- package/es2022/material/src/modules/virtualEditPopup.module.js +27 -30
- package/es2022/material/src/modules/virtualEditPopup.module.js.map +1 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js +172 -140
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.interface.js +65 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -1
- package/es2022/material/src/plugins/popup/index.js +1 -2
- package/es2022/material/src/plugins/popup/index.js.map +1 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +120 -88
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +20 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -1
- package/es2022/src/components/index.js +4 -0
- package/es2022/src/components/index.js.map +1 -0
- package/es2022/src/components/option/option.component.js +22 -19
- package/es2022/src/components/option/option.component.js.map +1 -1
- package/es2022/src/components/optionGroup/optgroup.component.js +29 -0
- package/es2022/src/components/optionGroup/optgroup.component.js.map +1 -0
- package/es2022/src/components/select/select.component.js +356 -450
- package/es2022/src/components/select/select.component.js.map +1 -1
- package/es2022/src/decorators/index.js +2 -0
- package/es2022/src/decorators/index.js.map +1 -0
- package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js +12 -0
- package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js.map +1 -0
- package/es2022/src/directives/index.js +5 -0
- package/es2022/src/directives/index.js.map +1 -0
- package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js +30 -0
- package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js.map +1 -0
- package/es2022/src/directives/optionTemplate/optionTemplate.directive.js +30 -0
- package/es2022/src/directives/optionTemplate/optionTemplate.directive.js.map +1 -0
- package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js +25 -0
- package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js.map +1 -0
- package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js +210 -0
- package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js.map +1 -0
- package/es2022/src/directives/selectEdit/selectEdit.directive.js +51 -0
- package/es2022/src/directives/selectEdit/selectEdit.directive.js.map +1 -0
- package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js +48 -0
- package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js.map +1 -0
- package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js +17 -0
- package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js.map +1 -0
- package/es2022/src/index.js +8 -41
- package/es2022/src/index.js.map +1 -1
- package/es2022/src/interfaces/index.js +20 -0
- package/es2022/src/interfaces/index.js.map +1 -0
- package/es2022/src/interfaces/initState/initState.interface.js +2 -0
- package/es2022/src/interfaces/initState/initState.interface.js.map +1 -0
- package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js +2 -0
- package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js.map +1 -0
- package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js +2 -0
- package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js.map +1 -0
- package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js +2 -0
- package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js.map +1 -0
- package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js +2 -0
- package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/index.js +10 -0
- package/es2022/src/interfaces/plugins/index.js.map +1 -0
- package/es2022/src/interfaces/plugins/interactions/interactions.interface.js +2 -0
- package/es2022/src/interfaces/plugins/interactions/interactions.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/liveSearch/liveSearch.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/normalState/normalState.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js +2 -0
- package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/popup/popup.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/positioner/positioner.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/readonlyState/readonlyState.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/valueHandler/valueHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/popupContext/popupContext.interface.js +2 -0
- package/es2022/src/interfaces/popupContext/popupContext.interface.js.map +1 -0
- package/es2022/src/interfaces/selectApi/selectApi.interface.js +2 -0
- package/es2022/src/interfaces/selectApi/selectApi.interface.js.map +1 -0
- package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js +2 -0
- package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js +2 -0
- package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js.map +1 -0
- package/es2022/src/interfaces/selectEvent/selectEvent.interface.js +2 -0
- package/es2022/src/interfaces/selectEvent/selectEvent.interface.js.map +1 -0
- package/es2022/src/interfaces/selectEvents/selectEvents.interface.js +2 -0
- package/es2022/src/interfaces/selectEvents/selectEvents.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOption/selectOption.interface.js +2 -0
- package/es2022/src/interfaces/selectOption/selectOption.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js +2 -0
- package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOptions/selectOptions.interface.js +2 -0
- package/es2022/src/interfaces/selectOptions/selectOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js +2 -0
- package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js.map +1 -0
- package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js +2 -0
- package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js.map +1 -0
- package/es2022/src/interfaces/templateGatherer/templateGatherer.interface.js.map +1 -0
- package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js +2 -0
- package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js.map +1 -0
- package/es2022/src/misc/classes/index.js +3 -0
- package/es2022/src/misc/classes/index.js.map +1 -0
- package/es2022/src/misc/{pluginBus/pluginBus.js → classes/selectBus/selectBus.js} +17 -8
- package/es2022/src/misc/classes/selectBus/selectBus.js.map +1 -0
- package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js +163 -0
- package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js.map +1 -0
- package/es2022/src/misc/enums.js +43 -0
- package/es2022/src/misc/enums.js.map +1 -0
- package/es2022/src/misc/extensions/getValue.js +16 -11
- package/es2022/src/misc/extensions/getValue.js.map +1 -1
- package/es2022/src/misc/extensions/index.js +6 -5
- package/es2022/src/misc/extensions/index.js.map +1 -1
- package/es2022/src/misc/extensions/onFocus.js +14 -9
- package/es2022/src/misc/extensions/onFocus.js.map +1 -1
- package/es2022/src/misc/extensions/setReadonly.js +22 -17
- package/es2022/src/misc/extensions/setReadonly.js.map +1 -1
- package/es2022/src/misc/extensions/setValue.js +17 -12
- package/es2022/src/misc/extensions/setValue.js.map +1 -1
- package/es2022/src/misc/extensions/valueChange.js +17 -11
- package/es2022/src/misc/extensions/valueChange.js.map +1 -1
- package/es2022/src/misc/ngSelectOptions.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js +119 -82
- package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +31 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js +178 -117
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js +155 -109
- package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js +55 -1
- package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/types.js +4 -3
- package/es2022/src/misc/optionsGatherer/types.js.map +1 -1
- package/es2022/src/misc/providers.js +102 -0
- package/es2022/src/misc/providers.js.map +1 -0
- package/es2022/src/misc/tokens.js +78 -0
- package/es2022/src/misc/tokens.js.map +1 -0
- package/es2022/src/misc/types.js +1 -33
- package/es2022/src/misc/types.js.map +1 -1
- package/es2022/src/modules/index.js +2 -0
- package/es2022/src/modules/index.js.map +1 -0
- package/es2022/src/modules/ngSelect.module.js +31 -75
- package/es2022/src/modules/ngSelect.module.js.map +1 -1
- package/es2022/src/modules/ngSelectEdit.module.js +39 -50
- package/es2022/src/modules/ngSelectEdit.module.js.map +1 -1
- package/es2022/src/pipes/getPlugin/getPlugin.pipe.js +17 -0
- package/es2022/src/pipes/getPlugin/getPlugin.pipe.js.map +1 -0
- package/es2022/src/pipes/index.js +4 -0
- package/es2022/src/pipes/index.js.map +1 -0
- package/es2022/src/pipes/{ngSelectHasValue.pipe.js → selectHasValue/selectHasValue.pipe.js} +7 -7
- package/es2022/src/pipes/selectHasValue/selectHasValue.pipe.js.map +1 -0
- package/es2022/src/pipes/selectValue/selectValue.pipe.js +31 -0
- package/es2022/src/pipes/selectValue/selectValue.pipe.js.map +1 -0
- package/es2022/src/plugins/index.js +10 -0
- package/es2022/src/plugins/index.js.map +1 -0
- package/es2022/src/plugins/interactions/index.js +2 -0
- package/es2022/src/plugins/interactions/index.js.map +1 -0
- package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js +36 -0
- package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js.map +1 -0
- package/es2022/src/plugins/keyboardHandler/index.js +1 -3
- package/es2022/src/plugins/keyboardHandler/index.js.map +1 -1
- package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js +36 -0
- package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js.map +1 -0
- package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js +36 -0
- package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js.map +1 -0
- package/es2022/src/plugins/liveSearch/index.js +2 -4
- package/es2022/src/plugins/liveSearch/index.js.map +1 -1
- package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js +36 -0
- package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js.map +1 -0
- package/es2022/src/plugins/normalState/index.js +1 -3
- package/es2022/src/plugins/normalState/index.js.map +1 -1
- package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js +36 -0
- package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js.map +1 -0
- package/es2022/src/plugins/optionsHandler/index.js +2 -0
- package/es2022/src/plugins/optionsHandler/index.js.map +1 -0
- package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js +50 -0
- package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js.map +1 -0
- package/es2022/src/plugins/popup/index.js +1 -3
- package/es2022/src/plugins/popup/index.js.map +1 -1
- package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js +36 -0
- package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js.map +1 -0
- package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js +36 -0
- package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js.map +1 -0
- package/es2022/src/plugins/positioner/index.js +1 -3
- package/es2022/src/plugins/positioner/index.js.map +1 -1
- package/es2022/src/plugins/readonlyState/index.js +1 -1
- package/es2022/src/plugins/readonlyState/index.js.map +1 -1
- package/es2022/src/plugins/valueHandler/index.js +1 -4
- package/es2022/src/plugins/valueHandler/index.js.map +1 -1
- package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js +81 -0
- package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js.map +1 -0
- package/extensions/src/extensions/getValue.d.ts +0 -1
- package/extensions/src/extensions/getValue.d.ts.map +1 -1
- package/extensions/src/extensions/onFocus.d.ts +0 -1
- package/extensions/src/extensions/onFocus.d.ts.map +1 -1
- package/extensions/src/extensions/patchOptions.d.ts +0 -6
- package/extensions/src/extensions/patchOptions.d.ts.map +1 -1
- package/extensions/src/extensions/reinitializeOptions.d.ts +0 -6
- package/extensions/src/extensions/reinitializeOptions.d.ts.map +1 -1
- package/extensions/src/extensions/setReadonly.d.ts +0 -1
- package/extensions/src/extensions/setReadonly.d.ts.map +1 -1
- package/extensions/src/extensions/setValue.d.ts +0 -1
- package/extensions/src/extensions/setValue.d.ts.map +1 -1
- package/extensions/src/extensions/valueChange.d.ts +0 -1
- package/extensions/src/extensions/valueChange.d.ts.map +1 -1
- package/extensions/src/index.d.ts +1 -7
- package/extensions/src/index.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +0 -46
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts +0 -23
- package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/index.d.ts +0 -1
- package/material/src/components/basicDialogPopup/index.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/types.d.ts +0 -1
- package/material/src/components/basicDialogPopup/types.d.ts.map +1 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +0 -26
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts.map +1 -1
- package/material/src/index.d.ts +1 -7
- package/material/src/index.d.ts.map +1 -1
- package/material/src/modules/dialogPopup.module.d.ts +0 -14
- package/material/src/modules/dialogPopup.module.d.ts.map +1 -1
- package/material/src/modules/virtualEditPopup.module.d.ts +0 -12
- package/material/src/modules/virtualEditPopup.module.d.ts.map +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +0 -82
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts +0 -59
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts.map +1 -1
- package/material/src/plugins/popup/index.d.ts +1 -2
- package/material/src/plugins/popup/index.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +0 -29
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts +0 -16
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts.map +1 -1
- package/package.json +27 -19
- package/src/components/index.d.ts +4 -0
- package/src/components/index.d.ts.map +1 -0
- package/src/components/option/option.component.d.ts +15 -14
- package/src/components/option/option.component.d.ts.map +1 -1
- package/src/components/optionGroup/optgroup.component.d.ts +25 -0
- package/src/components/optionGroup/optgroup.component.d.ts.map +1 -0
- package/src/components/select/select.component.css +5 -0
- package/src/components/select/select.component.d.ts +94 -179
- package/src/components/select/select.component.d.ts.map +1 -1
- package/src/components/select/select.component.html +10 -16
- package/src/decorators/index.d.ts +2 -0
- package/src/{components/select → decorators}/index.d.ts.map +1 -1
- package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts +5 -0
- package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts.map +1 -0
- package/src/directives/index.d.ts +5 -0
- package/src/directives/index.d.ts.map +1 -0
- package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts +19 -0
- package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts.map +1 -0
- package/src/directives/optionTemplate/optionTemplate.directive.d.ts +19 -0
- package/src/directives/optionTemplate/optionTemplate.directive.d.ts.map +1 -0
- package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts +12 -0
- package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts.map +1 -0
- package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts +1 -0
- package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts.map +1 -0
- package/src/directives/selectEdit/selectEdit.directive.d.ts +1 -0
- package/src/directives/selectEdit/selectEdit.directive.d.ts.map +1 -0
- package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts +1 -0
- package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts.map +1 -0
- package/src/directives/withDirectAccess/withDirectAccess.directive.d.ts +9 -0
- package/src/directives/withDirectAccess/withDirectAccess.directive.d.ts.map +1 -0
- package/src/index.d.ts +8 -41
- package/src/index.d.ts.map +1 -1
- package/src/interfaces/index.d.ts +20 -0
- package/src/interfaces/index.d.ts.map +1 -0
- package/src/interfaces/initState/initState.interface.d.ts +10 -0
- package/src/interfaces/initState/initState.interface.d.ts.map +1 -0
- package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts +11 -0
- package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts.map +1 -0
- package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts +12 -0
- package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -0
- package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts +21 -0
- package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts.map +1 -0
- package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts +6 -0
- package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/index.d.ts +10 -0
- package/src/interfaces/plugins/index.d.ts.map +1 -0
- package/src/interfaces/plugins/interactions/interactions.interface.d.ts +13 -0
- package/src/interfaces/plugins/interactions/interactions.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts +13 -0
- package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts +13 -0
- package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/normalState/normalState.interface.d.ts +31 -0
- package/src/interfaces/plugins/normalState/normalState.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts +19 -0
- package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/popup/popup.interface.d.ts +13 -0
- package/src/interfaces/plugins/popup/popup.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/positioner/positioner.interface.d.ts +13 -0
- package/src/interfaces/plugins/positioner/positioner.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts +12 -0
- package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts +23 -0
- package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts.map +1 -0
- package/src/interfaces/popupContext/popupContext.interface.d.ts +16 -0
- package/src/interfaces/popupContext/popupContext.interface.d.ts.map +1 -0
- package/src/interfaces/selectApi/selectApi.interface.d.ts +50 -0
- package/src/interfaces/selectApi/selectApi.interface.d.ts.map +1 -0
- package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts +29 -0
- package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts.map +1 -0
- package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts +6 -0
- package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts.map +1 -0
- package/src/interfaces/selectEvent/selectEvent.interface.d.ts +20 -0
- package/src/interfaces/selectEvent/selectEvent.interface.d.ts.map +1 -0
- package/src/interfaces/selectEvents/selectEvents.interface.d.ts +37 -0
- package/src/interfaces/selectEvents/selectEvents.interface.d.ts.map +1 -0
- package/src/interfaces/selectOption/selectOption.interface.d.ts +33 -0
- package/src/interfaces/selectOption/selectOption.interface.d.ts.map +1 -0
- package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts +21 -0
- package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts.map +1 -0
- package/src/interfaces/selectOptions/selectOptions.interface.d.ts +27 -0
- package/src/interfaces/selectOptions/selectOptions.interface.d.ts.map +1 -0
- package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts +33 -0
- package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts.map +1 -0
- package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts +44 -0
- package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts.map +1 -0
- package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts +17 -0
- package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts.map +1 -0
- package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts +11 -0
- package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts.map +1 -0
- package/src/misc/classes/index.d.ts +3 -0
- package/src/misc/classes/index.d.ts.map +1 -0
- package/src/misc/classes/selectBus/selectBus.d.ts +54 -0
- package/src/misc/classes/selectBus/selectBus.d.ts.map +1 -0
- package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts +90 -0
- package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts.map +1 -0
- package/src/misc/enums.d.ts +42 -0
- package/src/misc/enums.d.ts.map +1 -0
- package/src/misc/extensions/getValue.d.ts +0 -6
- package/src/misc/extensions/getValue.d.ts.map +1 -1
- package/src/misc/extensions/index.d.ts +0 -5
- package/src/misc/extensions/index.d.ts.map +1 -1
- package/src/misc/extensions/onFocus.d.ts +0 -7
- package/src/misc/extensions/onFocus.d.ts.map +1 -1
- package/src/misc/extensions/setReadonly.d.ts +0 -7
- package/src/misc/extensions/setReadonly.d.ts.map +1 -1
- package/src/misc/extensions/setValue.d.ts +0 -7
- package/src/misc/extensions/setValue.d.ts.map +1 -1
- package/src/misc/extensions/valueChange.d.ts +0 -7
- package/src/misc/extensions/valueChange.d.ts.map +1 -1
- package/src/misc/ngSelectOptions.interface.d.ts +0 -71
- package/src/misc/ngSelectOptions.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts +0 -69
- package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts +0 -85
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts +0 -28
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts +0 -72
- package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts +0 -52
- package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/types.d.ts +0 -3
- package/src/misc/optionsGatherer/types.d.ts.map +1 -1
- package/src/misc/providers.d.ts +54 -0
- package/src/misc/providers.d.ts.map +1 -0
- package/src/misc/tokens.d.ts +81 -0
- package/src/misc/tokens.d.ts.map +1 -0
- package/src/misc/types.d.ts +11 -31
- package/src/misc/types.d.ts.map +1 -1
- package/src/modules/index.d.ts +2 -0
- package/src/modules/index.d.ts.map +1 -0
- package/src/modules/ngSelect.module.d.ts +7 -20
- package/src/modules/ngSelect.module.d.ts.map +1 -1
- package/src/modules/ngSelectEdit.module.d.ts +0 -16
- package/src/modules/ngSelectEdit.module.d.ts.map +1 -1
- package/src/pipes/getPlugin/getPlugin.pipe.d.ts +25 -0
- package/src/pipes/getPlugin/getPlugin.pipe.d.ts.map +1 -0
- package/src/pipes/index.d.ts +4 -0
- package/src/pipes/index.d.ts.map +1 -0
- package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts +16 -0
- package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts.map +1 -0
- package/src/pipes/selectValue/selectValue.pipe.d.ts +19 -0
- package/src/pipes/selectValue/selectValue.pipe.d.ts.map +1 -0
- package/src/plugins/index.d.ts +9 -0
- package/src/plugins/index.d.ts.map +1 -0
- package/src/plugins/interactions/index.d.ts +2 -0
- package/src/plugins/interactions/index.d.ts.map +1 -0
- package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts +28 -0
- package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts.map +1 -0
- package/src/plugins/keyboardHandler/index.d.ts +1 -3
- package/src/plugins/keyboardHandler/index.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts +28 -0
- package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts.map +1 -0
- package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts +28 -0
- package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts.map +1 -0
- package/src/plugins/liveSearch/index.d.ts +2 -4
- package/src/plugins/liveSearch/index.d.ts.map +1 -1
- package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts +28 -0
- package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts.map +1 -0
- package/src/plugins/normalState/index.d.ts +1 -3
- package/src/plugins/normalState/index.d.ts.map +1 -1
- package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts +28 -0
- package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts.map +1 -0
- package/src/plugins/optionsHandler/index.d.ts +2 -0
- package/src/plugins/optionsHandler/index.d.ts.map +1 -0
- package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts +41 -0
- package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts.map +1 -0
- package/src/plugins/popup/index.d.ts +1 -3
- package/src/plugins/popup/index.d.ts.map +1 -1
- package/src/plugins/popup/simplePopup/simplePopup.component.d.ts +28 -0
- package/src/plugins/popup/simplePopup/simplePopup.component.d.ts.map +1 -0
- package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts +28 -0
- package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts.map +1 -0
- package/src/plugins/positioner/index.d.ts +1 -3
- package/src/plugins/positioner/index.d.ts.map +1 -1
- package/src/plugins/readonlyState/index.d.ts +0 -1
- package/src/plugins/readonlyState/index.d.ts.map +1 -1
- package/src/plugins/valueHandler/index.d.ts +1 -4
- package/src/plugins/valueHandler/index.d.ts.map +1 -1
- package/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.d.ts +46 -0
- package/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.d.ts.map +1 -0
- package/styles/components/_grid.scss +9 -0
- package/styles/core/_functions.scss +10 -0
- package/styles/core/_misc.scss +146 -0
- package/styles/core/_mixins.scss +44 -0
- package/styles/core/_theme.scss +16 -0
- package/styles/index.scss +2 -0
- package/styles/themes/dark.scss +19 -0
- package/styles/themes/light.scss +19 -0
- package/version.bak +1 -1
- package/es2022/material/src/directives/types.js +0 -2
- package/es2022/material/src/directives/types.js.map +0 -1
- package/es2022/material/src/plugins/popup/components.js +0 -3
- package/es2022/material/src/plugins/popup/components.js.map +0 -1
- package/es2022/src/components/option/index.js +0 -3
- package/es2022/src/components/option/index.js.map +0 -1
- package/es2022/src/components/option/optgroup.component.js +0 -54
- package/es2022/src/components/option/optgroup.component.js.map +0 -1
- package/es2022/src/components/option/optgroup.interface.js +0 -2
- package/es2022/src/components/option/optgroup.interface.js.map +0 -1
- package/es2022/src/components/option/option.interface.js +0 -2
- package/es2022/src/components/option/option.interface.js.map +0 -1
- package/es2022/src/components/select/index.js +0 -2
- package/es2022/src/components/select/index.js.map +0 -1
- package/es2022/src/components/select/select.interface.js +0 -2
- package/es2022/src/components/select/select.interface.js.map +0 -1
- package/es2022/src/components/select/types.js +0 -6
- package/es2022/src/components/select/types.js.map +0 -1
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +0 -1
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -66
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -42
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
- package/es2022/src/index.ssr.js +0 -10
- package/es2022/src/index.ssr.js.map +0 -1
- package/es2022/src/misc/index.js +0 -6
- package/es2022/src/misc/index.js.map +0 -1
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js +0 -162
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
- package/es2022/src/misc/plugin.interface.js +0 -2
- package/es2022/src/misc/plugin.interface.js.map +0 -1
- package/es2022/src/misc/pluginBus/pluginBus.interface.js +0 -2
- package/es2022/src/misc/pluginBus/pluginBus.interface.js.map +0 -1
- package/es2022/src/misc/pluginBus/pluginBus.js.map +0 -1
- package/es2022/src/misc/templateGatherer.interface.js.map +0 -1
- package/es2022/src/modules/ngSelectDynamic.module.js +0 -20
- package/es2022/src/modules/ngSelectDynamic.module.js.map +0 -1
- package/es2022/src/pipes/ngSelectHasValue.pipe.js.map +0 -1
- package/es2022/src/pipes/ngSelectValue.pipe.js +0 -31
- package/es2022/src/pipes/ngSelectValue.pipe.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -146
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -2
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/components.js +0 -3
- package/es2022/src/plugins/keyboardHandler/components.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -197
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -2
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/types.js +0 -10
- package/es2022/src/plugins/keyboardHandler/types.js.map +0 -1
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -164
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/components.js +0 -4
- package/es2022/src/plugins/liveSearch/components.js.map +0 -1
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -313
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/liveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -65
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/types.js +0 -10
- package/es2022/src/plugins/liveSearch/types.js.map +0 -1
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
- package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js +0 -2
- package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/components.js +0 -4
- package/es2022/src/plugins/normalState/components.js.map +0 -1
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js +0 -88
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
- package/es2022/src/plugins/normalState/edit/editNormalState.interface.js +0 -2
- package/es2022/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/normalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js +0 -89
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
- package/es2022/src/plugins/normalState/types.js +0 -10
- package/es2022/src/plugins/normalState/types.js.map +0 -1
- package/es2022/src/plugins/popup/basic/basicPopup.component.js +0 -62
- package/es2022/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
- package/es2022/src/plugins/popup/basic/basicPopup.interface.js +0 -2
- package/es2022/src/plugins/popup/basic/basicPopup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/component.js +0 -4
- package/es2022/src/plugins/popup/component.js.map +0 -1
- package/es2022/src/plugins/popup/edit/editPopup.component.js +0 -85
- package/es2022/src/plugins/popup/edit/editPopup.component.js.map +0 -1
- package/es2022/src/plugins/popup/edit/editPopup.interface.js +0 -2
- package/es2022/src/plugins/popup/edit/editPopup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/popup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/popupAbstract.component.js +0 -200
- package/es2022/src/plugins/popup/popupAbstract.component.js.map +0 -1
- package/es2022/src/plugins/popup/types.js +0 -10
- package/es2022/src/plugins/popup/types.js.map +0 -1
- package/es2022/src/plugins/positioner/components.js +0 -3
- package/es2022/src/plugins/positioner/components.js.map +0 -1
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js +0 -160
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
- package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js +0 -2
- package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/no/noPositioner.component.js +0 -78
- package/es2022/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
- package/es2022/src/plugins/positioner/no/noPositioner.interface.js +0 -2
- package/es2022/src/plugins/positioner/no/noPositioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/positioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/types.js +0 -10
- package/es2022/src/plugins/positioner/types.js.map +0 -1
- package/es2022/src/plugins/readonlyState/readonlyState.interface.js.map +0 -1
- package/es2022/src/plugins/readonlyState/types.js +0 -10
- package/es2022/src/plugins/readonlyState/types.js.map +0 -1
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -159
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -2
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/components.js +0 -3
- package/es2022/src/plugins/valueHandler/components.js.map +0 -1
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -179
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -2
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/types.js +0 -10
- package/es2022/src/plugins/valueHandler/types.js.map +0 -1
- package/es2022/src/plugins/valueHandler/valueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js +0 -145
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
- package/material/src/directives/types.d.ts +0 -2
- package/material/src/directives/types.d.ts.map +0 -1
- package/material/src/plugins/popup/components.d.ts +0 -3
- package/material/src/plugins/popup/components.d.ts.map +0 -1
- package/src/components/option/index.d.ts +0 -3
- package/src/components/option/index.d.ts.map +0 -1
- package/src/components/option/optgroup.component.d.ts +0 -37
- package/src/components/option/optgroup.component.d.ts.map +0 -1
- package/src/components/option/optgroup.interface.d.ts +0 -20
- package/src/components/option/optgroup.interface.d.ts.map +0 -1
- package/src/components/option/option.interface.d.ts +0 -31
- package/src/components/option/option.interface.d.ts.map +0 -1
- package/src/components/select/index.d.ts +0 -2
- package/src/components/select/select.interface.d.ts +0 -68
- package/src/components/select/select.interface.d.ts.map +0 -1
- package/src/components/select/types.d.ts +0 -7
- package/src/components/select/types.d.ts.map +0 -1
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +0 -11
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts.map +0 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +0 -11
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts.map +0 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +0 -21
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts.map +0 -1
- package/src/index.ssr.d.ts +0 -1
- package/src/index.ssr.d.ts.map +0 -1
- package/src/misc/index.d.ts +0 -6
- package/src/misc/index.d.ts.map +0 -1
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts +0 -63
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts.map +0 -1
- package/src/misc/plugin.interface.d.ts +0 -108
- package/src/misc/plugin.interface.d.ts.map +0 -1
- package/src/misc/pluginBus/pluginBus.d.ts +0 -49
- package/src/misc/pluginBus/pluginBus.d.ts.map +0 -1
- package/src/misc/pluginBus/pluginBus.interface.d.ts +0 -36
- package/src/misc/pluginBus/pluginBus.interface.d.ts.map +0 -1
- package/src/misc/templateGatherer.interface.d.ts +0 -17
- package/src/misc/templateGatherer.interface.d.ts.map +0 -1
- package/src/modules/ngSelectDynamic.module.d.ts +0 -11
- package/src/modules/ngSelectDynamic.module.d.ts.map +0 -1
- package/src/pipes/ngSelectHasValue.pipe.d.ts +0 -16
- package/src/pipes/ngSelectHasValue.pipe.d.ts.map +0 -1
- package/src/pipes/ngSelectValue.pipe.d.ts +0 -19
- package/src/pipes/ngSelectValue.pipe.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +0 -58
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/components.d.ts +0 -3
- package/src/plugins/keyboardHandler/components.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +0 -68
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/types.d.ts +0 -11
- package/src/plugins/keyboardHandler/types.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.css +0 -11
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +0 -98
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.html +0 -5
- package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts +0 -29
- package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/components.d.ts +0 -4
- package/src/plugins/liveSearch/components.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.css +0 -13
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +0 -141
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.html +0 -13
- package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts +0 -37
- package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/liveSearch.interface.d.ts +0 -38
- package/src/plugins/liveSearch/liveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +0 -54
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts +0 -12
- package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/types.d.ts +0 -11
- package/src/plugins/liveSearch/types.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.css +0 -38
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts +0 -17
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.html +0 -6
- package/src/plugins/normalState/basic/basicNormalState.interface.d.ts +0 -29
- package/src/plugins/normalState/basic/basicNormalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/components.d.ts +0 -4
- package/src/plugins/normalState/components.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.css +0 -77
- package/src/plugins/normalState/edit/editNormalState.component.d.ts +0 -26
- package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.html +0 -19
- package/src/plugins/normalState/edit/editNormalState.interface.d.ts +0 -53
- package/src/plugins/normalState/edit/editNormalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/normalState.interface.d.ts +0 -49
- package/src/plugins/normalState/normalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +0 -65
- package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +0 -1
- package/src/plugins/normalState/types.d.ts +0 -11
- package/src/plugins/normalState/types.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.css +0 -61
- package/src/plugins/popup/basic/basicPopup.component.d.ts +0 -17
- package/src/plugins/popup/basic/basicPopup.component.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.html +0 -21
- package/src/plugins/popup/basic/basicPopup.interface.d.ts +0 -33
- package/src/plugins/popup/basic/basicPopup.interface.d.ts.map +0 -1
- package/src/plugins/popup/component.d.ts +0 -4
- package/src/plugins/popup/component.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.css +0 -61
- package/src/plugins/popup/edit/editPopup.component.d.ts +0 -32
- package/src/plugins/popup/edit/editPopup.component.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.html +0 -19
- package/src/plugins/popup/edit/editPopup.interface.d.ts +0 -33
- package/src/plugins/popup/edit/editPopup.interface.d.ts.map +0 -1
- package/src/plugins/popup/popup.interface.d.ts +0 -52
- package/src/plugins/popup/popup.interface.d.ts.map +0 -1
- package/src/plugins/popup/popupAbstract.component.d.ts +0 -130
- package/src/plugins/popup/popupAbstract.component.d.ts.map +0 -1
- package/src/plugins/popup/types.d.ts +0 -11
- package/src/plugins/popup/types.d.ts.map +0 -1
- package/src/plugins/positioner/components.d.ts +0 -3
- package/src/plugins/positioner/components.d.ts.map +0 -1
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts +0 -89
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +0 -1
- package/src/plugins/positioner/default/defaultPositioner.interface.d.ts +0 -12
- package/src/plugins/positioner/default/defaultPositioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/no/noPositioner.component.d.ts +0 -50
- package/src/plugins/positioner/no/noPositioner.component.d.ts.map +0 -1
- package/src/plugins/positioner/no/noPositioner.interface.d.ts +0 -12
- package/src/plugins/positioner/no/noPositioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/positioner.interface.d.ts +0 -22
- package/src/plugins/positioner/positioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/types.d.ts +0 -11
- package/src/plugins/positioner/types.d.ts.map +0 -1
- package/src/plugins/readonlyState/readonlyState.interface.d.ts +0 -12
- package/src/plugins/readonlyState/readonlyState.interface.d.ts.map +0 -1
- package/src/plugins/readonlyState/types.d.ts +0 -11
- package/src/plugins/readonlyState/types.d.ts.map +0 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +0 -51
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +0 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts +0 -12
- package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/components.d.ts +0 -3
- package/src/plugins/valueHandler/components.d.ts.map +0 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +0 -52
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +0 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts +0 -21
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/types.d.ts +0 -11
- package/src/plugins/valueHandler/types.d.ts.map +0 -1
- package/src/plugins/valueHandler/valueHandler.interface.d.ts +0 -31
- package/src/plugins/valueHandler/valueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/valueHandlerBase.d.ts +0 -115
- package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +0 -1
- /package/es2022/src/{plugins → interfaces/plugins}/keyboardHandler/keyboardHandler.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/liveSearch/liveSearch.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/normalState/normalState.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/popup/popup.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/positioner/positioner.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/readonlyState/readonlyState.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/valueHandler/valueHandler.interface.js +0 -0
- /package/es2022/src/{misc → interfaces/templateGatherer}/templateGatherer.interface.js +0 -0
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, Optional } from '@angular/core';
|
|
2
|
-
import { DOCUMENT } from '@angular/common';
|
|
3
|
-
import { STRING_LOCALIZATION } from '@anglr/common';
|
|
4
|
-
import { extend } from '@jscrpt/common/extend';
|
|
5
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
6
|
-
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
7
|
-
import { PopupAbstractComponent } from '../popupAbstract.component';
|
|
8
|
-
import { POPUP_OPTIONS } from '../types';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
11
|
-
import * as i2 from "@angular/common";
|
|
12
|
-
/**
|
|
13
|
-
* Default options for popup
|
|
14
|
-
* @internal
|
|
15
|
-
*/
|
|
16
|
-
const defaultOptions = {
|
|
17
|
-
cssClasses: {
|
|
18
|
-
optionChecked: 'fa fa-check',
|
|
19
|
-
optionItemDiv: 'option-item',
|
|
20
|
-
optionItemTextDiv: 'option-item-text',
|
|
21
|
-
popupDiv: 'popup-div'
|
|
22
|
-
},
|
|
23
|
-
texts: {
|
|
24
|
-
noAvailableOptions: 'No items found'
|
|
25
|
-
},
|
|
26
|
-
visible: false
|
|
27
|
-
};
|
|
28
|
-
/**
|
|
29
|
-
* Component used for rendering edit popup with options
|
|
30
|
-
*/
|
|
31
|
-
export class EditPopupComponent extends PopupAbstractComponent {
|
|
32
|
-
//######################### protected properties #########################
|
|
33
|
-
/**
|
|
34
|
-
* Gets indication whether keep open popup after value change
|
|
35
|
-
*/
|
|
36
|
-
get keepOpen() {
|
|
37
|
-
return false;
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Gets all options
|
|
41
|
-
*/
|
|
42
|
-
get allOptions() {
|
|
43
|
-
return this.pluginBus.selectOptions.optionsGatherer.options;
|
|
44
|
-
}
|
|
45
|
-
//######################### constructor #########################
|
|
46
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, changeDetector, options, stringLocalization, document) {
|
|
47
|
-
super(ngSelectPlugins, pluginBus, pluginElement, changeDetector, document, stringLocalization);
|
|
48
|
-
this._options = extend(true, {}, defaultOptions, options);
|
|
49
|
-
}
|
|
50
|
-
//######################### public methods - template bindings #########################
|
|
51
|
-
/**
|
|
52
|
-
* Handles mouse move and changes active option
|
|
53
|
-
* @param option - Option to be set as active
|
|
54
|
-
* @internal
|
|
55
|
-
*/
|
|
56
|
-
handleMouseActivation(option) {
|
|
57
|
-
this.allOptions.forEach(option => option.active = false);
|
|
58
|
-
option.active = true;
|
|
59
|
-
}
|
|
60
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: EditPopupComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: POPUP_OPTIONS, optional: true }, { token: STRING_LOCALIZATION }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
61
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: EditPopupComponent, isStandalone: false, selector: "div.ng-select-edit-popup", usesInheritance: true, ngImport: i0, template: "<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n\r\n <div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.active]=\"option?.active\"\r\n [class.selected]=\"option?.selected\"\r\n (mouseenter)=\"handleMouseActivation(option)\"\r\n (click)=\"pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n </div>\r\n \r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>", styles: [".popup-div\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: #FFFFFF;\r\n border-radius: 4px;\r\n border: 1px solid #BBBBBB;\r\n overflow: auto;\r\n padding: 5px 0;\r\n box-shadow: 0 6px 12px rgba(0,0,0,.175);\r\n scrollbar-width: thin;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar-thumb \r\n{\r\n background-color: #cdcdcd;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar \r\n{\r\n width: 6px;\r\n background-color: #f0f0f0;\r\n}\r\n\r\n.option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i2.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
62
|
-
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: EditPopupComponent, decorators: [{
|
|
64
|
-
type: Component,
|
|
65
|
-
args: [{ selector: 'div.ng-select-edit-popup', standalone: false, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n\r\n <div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.active]=\"option?.active\"\r\n [class.selected]=\"option?.selected\"\r\n (mouseenter)=\"handleMouseActivation(option)\"\r\n (click)=\"pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n </div>\r\n \r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>", styles: [".popup-div\r\n{\r\n position: absolute;\r\n z-index: 1000;\r\n background-color: #FFFFFF;\r\n border-radius: 4px;\r\n border: 1px solid #BBBBBB;\r\n overflow: auto;\r\n padding: 5px 0;\r\n box-shadow: 0 6px 12px rgba(0,0,0,.175);\r\n scrollbar-width: thin;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar-thumb \r\n{\r\n background-color: #cdcdcd;\r\n}\r\n\r\n.popup-div::-webkit-scrollbar \r\n{\r\n width: 6px;\r\n background-color: #f0f0f0;\r\n}\r\n\r\n.option-item\r\n{\r\n padding: 3px 12px;\r\n display: flex;\r\n align-items: center;\r\n}\r\n\r\n.option-item .option-item-text\r\n{\r\n min-width: 0;\r\n flex: 1;\r\n white-space: nowrap;\r\n}\r\n\r\n.option-item .option-item-text:hover\r\n{\r\n cursor: pointer;\r\n}\r\n\r\n.option-item .fa-check\r\n{\r\n margin-left: 8px;\r\n}\r\n\r\n.option-item.selected,\r\n.option-item.active\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n}\r\n\r\n.option-item:hover\r\n{\r\n background-color: #E8E8E8;\r\n background-image: linear-gradient(to bottom,#F5F5F5 0,#E8E8E8 100%);\r\n cursor: pointer;\r\n}"] }]
|
|
66
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
67
|
-
type: Inject,
|
|
68
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
69
|
-
}, {
|
|
70
|
-
type: Optional
|
|
71
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
72
|
-
type: Optional
|
|
73
|
-
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
74
|
-
type: Inject,
|
|
75
|
-
args: [POPUP_OPTIONS]
|
|
76
|
-
}, {
|
|
77
|
-
type: Optional
|
|
78
|
-
}] }, { type: undefined, decorators: [{
|
|
79
|
-
type: Inject,
|
|
80
|
-
args: [STRING_LOCALIZATION]
|
|
81
|
-
}] }, { type: Document, decorators: [{
|
|
82
|
-
type: Inject,
|
|
83
|
-
args: [DOCUMENT]
|
|
84
|
-
}] }] });
|
|
85
|
-
//# sourceMappingURL=editPopup.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editPopup.component.js","sourceRoot":"","sources":["../../../../../src/plugins/popup/edit/editPopup.component.ts","../../../../../src/plugins/popup/edit/editPopup.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAgB,uBAAuB,EAAE,iBAAiB,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAa,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC5I,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAC,mBAAmB,EAAqB,MAAM,eAAe,CAAC;AACtE,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAG7C,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAE5E,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;AAC5D,OAAO,EAAC,sBAAsB,EAAC,MAAM,4BAA4B,CAAC;AAClE,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;;;;AAIvC;;;GAGG;AACH,MAAM,cAAc,GACpB;IACI,UAAU,EACV;QACI,aAAa,EAAE,aAAa;QAC5B,aAAa,EAAE,aAAa;QAC5B,iBAAiB,EAAE,kBAAkB;QACrC,QAAQ,EAAE,WAAW;KACxB;IACD,KAAK,EACL;QACI,kBAAkB,EAAE,gBAAgB;KACvC;IACD,OAAO,EAAE,KAAK;CACjB,CAAC;AAEF;;GAEG;AASH,MAAM,OAAO,kBAAmB,SAAQ,sBAA6D;IAEjG,0EAA0E;IAE1E;;OAEG;IACH,IAAuB,QAAQ;QAE3B,OAAO,KAAK,CAAC;IACjB,CAAC;IAED;;OAEG;IACH,IAAc,UAAU;QAEpB,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,OAAO,CAAC;IAChE,CAAC;IAED,iEAAiE;IACjE,YAA4D,eAAwC,EAC5E,SAAoB,EAChC,aAAyB,EACzB,cAAiC,EACE,OAAyB,EAC/B,kBAAsC,EACjD,QAAmB;QAE7C,KAAK,CAAC,eAAe,EAAE,SAAS,EAAE,aAAa,EAAE,cAAc,EAAE,QAAQ,EAAE,kBAAkB,CAAC,CAAC;QAE/F,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,IAAI,EAAE,EAAE,EAAE,cAAc,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED,wFAAwF;IAExF;;;;OAIG;IACI,qBAAqB,CAAC,MAAuB;QAEhD,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,CAAC;QAEzD,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC;IACzB,CAAC;8GA9CQ,kBAAkB,kBAqBP,0BAA0B,iIAI1B,aAAa,6BACb,mBAAmB,aACnB,QAAQ;kGA3BnB,kBAAkB,4GC7C/B,u5BAkBM;;2FD2BO,kBAAkB;kBAR9B,SAAS;+BAEI,0BAA0B,cAGxB,KAAK,mBACA,uBAAuB,CAAC,MAAM;;0BAuBlC,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAGR,MAAM;2BAAC,aAAa;;0BAAG,QAAQ;;0BAC/B,MAAM;2BAAC,mBAAmB;;0BAC1B,MAAM;2BAAC,QAAQ","sourcesContent":["import {AfterViewInit, ChangeDetectionStrategy, ChangeDetectorRef, Component, ElementRef, Inject, OnDestroy, Optional} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {STRING_LOCALIZATION, StringLocalization} from '@anglr/common';\nimport {extend} from '@jscrpt/common/extend';\n\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {NgSelectPlugin} from '../../../misc';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\nimport {PopupAbstractComponent} from '../popupAbstract.component';\nimport {POPUP_OPTIONS} from '../types';\nimport {CssClassesEditPopup, EditPopup, EditPopupOptions} from './editPopup.interface';\nimport {ɵNgSelectOption} from '../../../components/option';\n\n/**\n * Default options for popup\n * @internal\n */\nconst defaultOptions: EditPopupOptions =\n{\n cssClasses:\n {\n optionChecked: 'fa fa-check',\n optionItemDiv: 'option-item',\n optionItemTextDiv: 'option-item-text',\n popupDiv: 'popup-div'\n },\n texts:\n {\n noAvailableOptions: 'No items found'\n },\n visible: false\n};\n\n/**\n * Component used for rendering edit popup with options\n */\n@Component(\n{\n selector: 'div.ng-select-edit-popup',\n templateUrl: 'editPopup.component.html',\n styleUrl: 'editPopup.component.css',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class EditPopupComponent extends PopupAbstractComponent<CssClassesEditPopup, EditPopupOptions> implements EditPopup, NgSelectPlugin<EditPopupOptions>, AfterViewInit, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Gets indication whether keep open popup after value change\n */\n protected override get keepOpen(): boolean\n {\n return false;\n }\n\n /**\n * Gets all options\n */\n protected get allOptions(): ɵNgSelectOption[]\n {\n return this.pluginBus.selectOptions.optionsGatherer.options;\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() ngSelectPlugins: NgSelectPluginInstances,\n @Optional() pluginBus: PluginBus,\n pluginElement: ElementRef,\n changeDetector: ChangeDetectorRef,\n @Inject(POPUP_OPTIONS) @Optional() options: EditPopupOptions,\n @Inject(STRING_LOCALIZATION) stringLocalization: StringLocalization,\n @Inject(DOCUMENT) document?: Document)\n {\n super(ngSelectPlugins, pluginBus, pluginElement, changeDetector, document, stringLocalization);\n\n this._options = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Handles mouse move and changes active option\n * @param option - Option to be set as active\n * @internal\n */\n public handleMouseActivation(option: ɵNgSelectOption): void\n {\n this.allOptions.forEach(option => option.active = false);\n\n option.active = true;\n }\n}\n","<ng-template #defaultOptionTextLook let-option>{{option?.text}}</ng-template>\r\n\r\n<div #popupDiv \r\n *ngIf=\"options?.visible\"\r\n [ngClass]=\"options?.cssClasses?.popupDiv\">\r\n\r\n <div *ngFor=\"let option of selectOptions\"\r\n [ngClass]=\"options?.cssClasses?.optionItemDiv\"\r\n [class.active]=\"option?.active\"\r\n [class.selected]=\"option?.selected\"\r\n (mouseenter)=\"handleMouseActivation(option)\"\r\n (click)=\"pluginBus?.optionSelect?.emit(option)\">\r\n <div [ngClass]=\"options?.cssClasses?.optionItemTextDiv\">\r\n <ng-container *ngTemplateOutlet=\"pluginBus?.selectOptions?.templateGatherer?.optionTemplate || defaultOptionTextLook; context: {$implicit: option, popup: this}\"></ng-container>\r\n </div>\r\n </div>\r\n \r\n <div *ngIf=\"!selectOptions?.length\">{{texts?.noAvailableOptions}}</div>\r\n</div>"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"editPopup.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/popup/edit/editPopup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Popup, PopupOptions} from '../popup.interface';\n\n/**\n * Css classes for edit popup\n */\nexport interface CssClassesEditPopup\n{\n /**\n * Css class applied to each option div\n */\n optionItemDiv?: string;\n\n /**\n * Css class applied to each option text div\n */\n optionItemTextDiv?: string;\n\n /**\n * Css class used as icons indicating that option is selected (only when multiple)\n */\n optionChecked?: string;\n\n /**\n * Css class applied directly to css popup\n */\n popupDiv?: string;\n}\n\n/**\n * Edit popup options\n */\nexport interface EditPopupOptions extends PopupOptions<CssClassesEditPopup>\n{\n}\n\n/**\n * Public API for 'EditPopupComponent'\n */\nexport interface EditPopup extends Popup\n{\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popup.interface.js","sourceRoot":"","sources":["../../../../src/plugins/popup/popup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectPlugin, VisualPluginOptions} from '../../misc';\nimport {NgSelectOption} from '../../components/option';\n\n/**\n * Texts that are used within Popup\n */\nexport interface PopupTexts\n{\n /**\n * Displayed when there is are no available options to be displayed\n */\n noAvailableOptions?: string;\n}\n\n/**\n * Options for popup plugin\n */\nexport interface PopupOptions<TCssClasses = any> extends VisualPluginOptions<TCssClasses>\n{\n /**\n * Indication whether are popup options visible, or not\n */\n visible?: boolean;\n\n /**\n * Texts that are used within any Popup\n */\n texts?: PopupTexts;\n}\n\n/**\n * Popup plugin interface\n */\nexport interface Popup extends NgSelectPlugin\n{\n /**\n * Occurs when visibility of popup has changed\n */\n readonly visibilityChange: EventEmitter<void>;\n\n /**\n * Html element that represents popup itself\n */\n readonly popupElement: HTMLElement;\n}\n\n/**\n * Context for template that is used within popup plugin\n */\nexport interface PopupContext\n{\n /**\n * Instance of plugin itself\n */\n $implicit: NgSelectOption;\n\n /**\n * Instance of plugin itself\n */\n popup: Popup;\n}"]}
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, ElementRef, EventEmitter, QueryList, ViewChildren, Directive } from '@angular/core';
|
|
2
|
-
import { isDescendant } from '@jscrpt/common';
|
|
3
|
-
import { extend } from '@jscrpt/common/extend';
|
|
4
|
-
import { PluginBus } from '../../misc/pluginBus/pluginBus';
|
|
5
|
-
import { VALUE_HANDLER } from '../valueHandler/types';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "../../misc/pluginBus/pluginBus";
|
|
8
|
-
/**
|
|
9
|
-
* Base abstract class for popup with options
|
|
10
|
-
*/
|
|
11
|
-
export class PopupAbstractComponent {
|
|
12
|
-
//######################### protected properties #########################
|
|
13
|
-
/**
|
|
14
|
-
* Gets indication whether keep open popup after value change
|
|
15
|
-
*/
|
|
16
|
-
get keepOpen() {
|
|
17
|
-
return this.pluginBus.selectOptions.multiple;
|
|
18
|
-
}
|
|
19
|
-
//######################### public properties - implementation of Popup #########################
|
|
20
|
-
/**
|
|
21
|
-
* Options for NgSelect plugin
|
|
22
|
-
*/
|
|
23
|
-
get options() {
|
|
24
|
-
return this._options;
|
|
25
|
-
}
|
|
26
|
-
set options(options) {
|
|
27
|
-
this._options = extend(true, this._options, options);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Html element that represents popup itself
|
|
31
|
-
*/
|
|
32
|
-
get popupElement() {
|
|
33
|
-
const ref = this.popupElementChildren.first;
|
|
34
|
-
if (!ref) {
|
|
35
|
-
return null;
|
|
36
|
-
}
|
|
37
|
-
return ref.nativeElement;
|
|
38
|
-
}
|
|
39
|
-
//######################### constructor #########################
|
|
40
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, _changeDetector, _document, _stringLocalization) {
|
|
41
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
42
|
-
this.pluginBus = pluginBus;
|
|
43
|
-
this.pluginElement = pluginElement;
|
|
44
|
-
this._changeDetector = _changeDetector;
|
|
45
|
-
this._document = _document;
|
|
46
|
-
this._stringLocalization = _stringLocalization;
|
|
47
|
-
/**
|
|
48
|
-
* Indication whether is popup visible
|
|
49
|
-
*/
|
|
50
|
-
this._popupVisible = false;
|
|
51
|
-
/**
|
|
52
|
-
* Occurs when visibility of popup has changed
|
|
53
|
-
*/
|
|
54
|
-
this.visibilityChange = new EventEmitter();
|
|
55
|
-
/**
|
|
56
|
-
* Object containing available texts
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
this.texts = {};
|
|
60
|
-
/**
|
|
61
|
-
* Handles click outside of select element
|
|
62
|
-
* @param event - Mouse event object
|
|
63
|
-
*/
|
|
64
|
-
this._handleClickOutside = (event) => {
|
|
65
|
-
if (this.pluginBus.selectElement.nativeElement != event.target &&
|
|
66
|
-
!isDescendant(this.pluginBus.selectElement.nativeElement, event.target) &&
|
|
67
|
-
this.pluginElement.nativeElement != event.target &&
|
|
68
|
-
!isDescendant(this.pluginElement.nativeElement, event.target)) {
|
|
69
|
-
this.togglePopup();
|
|
70
|
-
this.pluginBus.updateDisplayedValue.emit();
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
/**
|
|
74
|
-
* Handles visibility change
|
|
75
|
-
*/
|
|
76
|
-
this._handleVisibilityChange = (visible) => {
|
|
77
|
-
if (this.options.visible != visible) {
|
|
78
|
-
this.options.visible = visible;
|
|
79
|
-
this._changeDetector.detectChanges();
|
|
80
|
-
}
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
//######################### public methods - implementation of AfterViewInit #########################
|
|
84
|
-
/**
|
|
85
|
-
* Called when view was initialized
|
|
86
|
-
*/
|
|
87
|
-
ngAfterViewInit() {
|
|
88
|
-
this.popupElementChildren.changes.subscribe(() => {
|
|
89
|
-
if (!!this.popupElementChildren.first == this._popupVisible) {
|
|
90
|
-
return;
|
|
91
|
-
}
|
|
92
|
-
//handle click outside
|
|
93
|
-
if (this.popupElementChildren.first) {
|
|
94
|
-
this._document.addEventListener('mouseup', this._handleClickOutside);
|
|
95
|
-
}
|
|
96
|
-
//unregister handle click outside
|
|
97
|
-
else {
|
|
98
|
-
this._document.removeEventListener('mouseup', this._handleClickOutside);
|
|
99
|
-
}
|
|
100
|
-
this._popupVisible = !!this.popupElementChildren.first;
|
|
101
|
-
this.visibilityChange.emit();
|
|
102
|
-
});
|
|
103
|
-
}
|
|
104
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
105
|
-
/**
|
|
106
|
-
* Called when component is destroyed
|
|
107
|
-
*/
|
|
108
|
-
ngOnDestroy() {
|
|
109
|
-
this._optionsChangeSubscription?.unsubscribe();
|
|
110
|
-
this._optionsChangeSubscription = null;
|
|
111
|
-
this._popupToggleSubscription?.unsubscribe();
|
|
112
|
-
this._popupToggleSubscription = null;
|
|
113
|
-
this._valueChangedSubscription?.unsubscribe();
|
|
114
|
-
this._valueChangedSubscription = null;
|
|
115
|
-
this._visibilityRequestSubscription?.unsubscribe();
|
|
116
|
-
this._visibilityRequestSubscription = null;
|
|
117
|
-
this._document.removeEventListener('mouseup', this._handleClickOutside);
|
|
118
|
-
}
|
|
119
|
-
//######################### public methods - implementation of Popup #########################
|
|
120
|
-
/**
|
|
121
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
122
|
-
*/
|
|
123
|
-
initialize() {
|
|
124
|
-
if (this._optionsGatherer && this._optionsGatherer != this.pluginBus.selectOptions.optionsGatherer) {
|
|
125
|
-
this._optionsChangeSubscription.unsubscribe();
|
|
126
|
-
this._optionsChangeSubscription = null;
|
|
127
|
-
this._optionsGatherer = null;
|
|
128
|
-
}
|
|
129
|
-
if (!this._optionsGatherer) {
|
|
130
|
-
this._optionsGatherer = this.pluginBus.selectOptions.optionsGatherer;
|
|
131
|
-
this._optionsChangeSubscription = this._optionsGatherer.availableOptionsChange.subscribe(() => this.loadOptions());
|
|
132
|
-
}
|
|
133
|
-
if (!this._popupToggleSubscription) {
|
|
134
|
-
this._popupToggleSubscription = this.pluginBus.togglePopup.subscribe(() => this.togglePopup());
|
|
135
|
-
}
|
|
136
|
-
if (!this._visibilityRequestSubscription) {
|
|
137
|
-
this._visibilityRequestSubscription = this.pluginBus.showHidePopup.subscribe(this._handleVisibilityChange);
|
|
138
|
-
}
|
|
139
|
-
const valueHandler = this.ngSelectPlugins[VALUE_HANDLER];
|
|
140
|
-
if (this._valueHandler && this._valueHandler != valueHandler) {
|
|
141
|
-
this._valueChangedSubscription.unsubscribe();
|
|
142
|
-
this._valueChangedSubscription = null;
|
|
143
|
-
this._valueHandler = null;
|
|
144
|
-
}
|
|
145
|
-
if (!this._valueHandler) {
|
|
146
|
-
this._valueHandler = valueHandler;
|
|
147
|
-
this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => {
|
|
148
|
-
if (!this.keepOpen) {
|
|
149
|
-
this._handleVisibilityChange(false);
|
|
150
|
-
}
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
this.loadOptions();
|
|
154
|
-
this._initTexts();
|
|
155
|
-
}
|
|
156
|
-
/**
|
|
157
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
158
|
-
*/
|
|
159
|
-
initOptions() {
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* Explicitly runs invalidation of content (change detection)
|
|
163
|
-
*/
|
|
164
|
-
invalidateVisuals() {
|
|
165
|
-
this._changeDetector.detectChanges();
|
|
166
|
-
}
|
|
167
|
-
//######################### protected methods #########################
|
|
168
|
-
/**
|
|
169
|
-
* Initialize texts
|
|
170
|
-
*/
|
|
171
|
-
_initTexts() {
|
|
172
|
-
Object.keys(this.options.texts).forEach(key => {
|
|
173
|
-
this.texts[key] = this._stringLocalization.get(this.options.texts[key], null, true)();
|
|
174
|
-
});
|
|
175
|
-
this._changeDetector.detectChanges();
|
|
176
|
-
}
|
|
177
|
-
/**
|
|
178
|
-
* Loads options
|
|
179
|
-
*/
|
|
180
|
-
loadOptions() {
|
|
181
|
-
this.selectOptions = this._optionsGatherer.availableOptions;
|
|
182
|
-
this._changeDetector.detectChanges();
|
|
183
|
-
}
|
|
184
|
-
/**
|
|
185
|
-
* Toggles popup visibility
|
|
186
|
-
*/
|
|
187
|
-
togglePopup() {
|
|
188
|
-
this.options.visible = !this.options.visible;
|
|
189
|
-
this._changeDetector.detectChanges();
|
|
190
|
-
}
|
|
191
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PopupAbstractComponent, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
192
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: PopupAbstractComponent, isStandalone: true, viewQueries: [{ propertyName: "popupElementChildren", predicate: ["popupDiv"], descendants: true }], ngImport: i0 }); }
|
|
193
|
-
}
|
|
194
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: PopupAbstractComponent, decorators: [{
|
|
195
|
-
type: Directive
|
|
196
|
-
}], ctorParameters: () => [{ type: undefined }, { type: i1.PluginBus }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: Document }, { type: undefined }], propDecorators: { popupElementChildren: [{
|
|
197
|
-
type: ViewChildren,
|
|
198
|
-
args: ['popupDiv']
|
|
199
|
-
}] } });
|
|
200
|
-
//# sourceMappingURL=popupAbstract.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"popupAbstract.component.js","sourceRoot":"","sources":["../../../../src/plugins/popup/popupAbstract.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,iBAAiB,EAAE,UAAU,EAAE,YAAY,EAAa,SAAS,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,eAAe,CAAC;AAExI,OAAO,EAAC,YAAY,EAAC,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAM7C,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;AAGzD,OAAO,EAAC,aAAa,EAAC,MAAM,uBAAuB,CAAC;;;AAEpD;;GAEG;AAEH,MAAM,OAAO,sBAAsB;IA4C/B,0EAA0E;IAE1E;;OAEG;IACH,IAAc,QAAQ;QAElB,OAAO,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,QAAQ,CAAC;IACjD,CAAC;IAED,iGAAiG;IAEjG;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,QAAQ,CAAC;IACzB,CAAC;IACD,IAAW,OAAO,CAAC,OAAiB;QAEhC,IAAI,CAAC,QAAQ,GAAG,MAAM,CAA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,EAAE,CAAC;IACzC,CAAC;IAED;;OAEG;IACO,WAAW;QAEjB,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,gBAAgB,CAAC,gBAAgB,CAAC;QAC5D,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;IAED;;OAEG;IACO,WAAW;QAEjB,IAAI,CAAC,OAAO,CAAC,OAAO,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC;QAC7C,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,CAAC;IACzC,CAAC;8GAtRQ,sBAAsB;kGAAtB,sBAAsB;;2FAAtB,sBAAsB;kBADlC,SAAS;;sBA6GL,YAAY;uBAAC,UAAU","sourcesContent":["import {AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, QueryList, ViewChildren, Directive} from '@angular/core';\nimport {StringLocalization} from '@anglr/common';\nimport {isDescendant} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\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 * 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 * 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._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 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], null, true)();\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}\n"]}
|
|
@@ -1,10 +0,0 @@
|
|
|
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
|
|
@@ -1 +0,0 @@
|
|
|
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');"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../src/plugins/positioner/components.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC","sourcesContent":["export * from './default/defaultPositioner.component';\nexport * from './no/noPositioner.component';"]}
|
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, PLATFORM_ID, EventEmitter } from '@angular/core';
|
|
2
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
3
|
-
import { applyPositionResult, POSITION, PositionOffset, PositionPlacement } from '@anglr/common';
|
|
4
|
-
import { extend } from '@jscrpt/common/extend';
|
|
5
|
-
import { NG_SELECT_PLUGIN_INSTANCES } from '../../../components/select/types';
|
|
6
|
-
import { POSITIONER_OPTIONS } from '../types';
|
|
7
|
-
import { POPUP } from '../../popup/types';
|
|
8
|
-
import { PluginBus } from '../../../misc/pluginBus/pluginBus';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../../../misc/pluginBus/pluginBus";
|
|
11
|
-
/**
|
|
12
|
-
* Default options for positioner
|
|
13
|
-
*/
|
|
14
|
-
const defaultOptions = {
|
|
15
|
-
positionOptions: {
|
|
16
|
-
offset: PositionOffset.None,
|
|
17
|
-
placement: PositionPlacement.BottomStart,
|
|
18
|
-
}
|
|
19
|
-
};
|
|
20
|
-
/**
|
|
21
|
-
* Component used for positioning popup element, handles resize, scroll and collision using `Position`
|
|
22
|
-
*/
|
|
23
|
-
export class DefaultPositionerComponent {
|
|
24
|
-
//######################### public properties - implementation of DefaultPositioner #########################
|
|
25
|
-
/**
|
|
26
|
-
* Options for NgSelect plugin
|
|
27
|
-
*/
|
|
28
|
-
get options() {
|
|
29
|
-
return this.ɵoptions;
|
|
30
|
-
}
|
|
31
|
-
set options(options) {
|
|
32
|
-
this.ɵoptions = extend(true, this.ɵoptions, options);
|
|
33
|
-
}
|
|
34
|
-
/**
|
|
35
|
-
* @inheritdoc
|
|
36
|
-
*/
|
|
37
|
-
get flip() {
|
|
38
|
-
return this.ɵflip;
|
|
39
|
-
}
|
|
40
|
-
//######################### constructor #########################
|
|
41
|
-
constructor(ngSelectPlugins, pluginBus, pluginElement, position, options, platformId) {
|
|
42
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
43
|
-
this.pluginBus = pluginBus;
|
|
44
|
-
this.pluginElement = pluginElement;
|
|
45
|
-
this.position = position;
|
|
46
|
-
this.platformId = platformId;
|
|
47
|
-
/**
|
|
48
|
-
* Occurs when flip occured during positining of popup
|
|
49
|
-
*/
|
|
50
|
-
this.ɵflip = new EventEmitter();
|
|
51
|
-
/**
|
|
52
|
-
* Indication whether is code running in browser
|
|
53
|
-
*/
|
|
54
|
-
this.isBrowser = isPlatformBrowser(this.platformId);
|
|
55
|
-
this.ɵoptions = extend(true, {}, defaultOptions, options);
|
|
56
|
-
}
|
|
57
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
58
|
-
/**
|
|
59
|
-
* Called when component is destroyed
|
|
60
|
-
*/
|
|
61
|
-
ngOnDestroy() {
|
|
62
|
-
this.visibilitySubscription?.unsubscribe();
|
|
63
|
-
this.visibilitySubscription = null;
|
|
64
|
-
this.positioningDispose?.();
|
|
65
|
-
this.positioningSubscription?.unsubscribe();
|
|
66
|
-
this.positioningSubscription = null;
|
|
67
|
-
}
|
|
68
|
-
//######################### public methods - implementation of DefaultPositioner #########################
|
|
69
|
-
/**
|
|
70
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
71
|
-
*/
|
|
72
|
-
initialize() {
|
|
73
|
-
const popup = this.ngSelectPlugins[POPUP];
|
|
74
|
-
if (this.popup && this.popup != popup) {
|
|
75
|
-
this.visibilitySubscription?.unsubscribe();
|
|
76
|
-
this.visibilitySubscription = null;
|
|
77
|
-
this.popup = null;
|
|
78
|
-
}
|
|
79
|
-
if (!this.popup) {
|
|
80
|
-
this.popup = popup;
|
|
81
|
-
this.visibilitySubscription = this.popup.visibilityChange.subscribe(() => this.initPosition());
|
|
82
|
-
}
|
|
83
|
-
this.initPosition();
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @inheritdoc
|
|
87
|
-
*/
|
|
88
|
-
initOptions() {
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* @inheritdoc
|
|
92
|
-
*/
|
|
93
|
-
invalidateVisuals() {
|
|
94
|
-
}
|
|
95
|
-
//######################### protected methods #########################
|
|
96
|
-
/**
|
|
97
|
-
* Initialize positioning of popup
|
|
98
|
-
*/
|
|
99
|
-
initPosition() {
|
|
100
|
-
this.popupElement = this.popup.popupElement;
|
|
101
|
-
if (this.isBrowser) {
|
|
102
|
-
//register events and handle position of opened popup
|
|
103
|
-
if (this.popupElement) {
|
|
104
|
-
this.positioningSubscription?.unsubscribe();
|
|
105
|
-
this.positioningDispose?.();
|
|
106
|
-
this.positioningSubscription = null;
|
|
107
|
-
this.positioningDispose = null;
|
|
108
|
-
this.positioningSubscription = this.position.placeElement(this.popupElement, this.pluginBus.selectElement.nativeElement, {
|
|
109
|
-
autoUpdate: true,
|
|
110
|
-
flip: true,
|
|
111
|
-
...this.options.positionOptions
|
|
112
|
-
})
|
|
113
|
-
.subscribe(result => {
|
|
114
|
-
applyPositionResult(result);
|
|
115
|
-
this.positioningDispose = result.dispose;
|
|
116
|
-
if (result.flip) {
|
|
117
|
-
this.flip.emit();
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
//unregister events
|
|
122
|
-
else {
|
|
123
|
-
this.positioningSubscription?.unsubscribe();
|
|
124
|
-
this.positioningDispose?.();
|
|
125
|
-
this.positioningSubscription = null;
|
|
126
|
-
this.positioningDispose = null;
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DefaultPositionerComponent, deps: [{ token: NG_SELECT_PLUGIN_INSTANCES, optional: true }, { token: i1.PluginBus, optional: true }, { token: i0.ElementRef }, { token: POSITION }, { token: POSITIONER_OPTIONS, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
131
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: DefaultPositionerComponent, isStandalone: false, selector: "ng-default-positioner", ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
132
|
-
}
|
|
133
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: DefaultPositionerComponent, decorators: [{
|
|
134
|
-
type: Component,
|
|
135
|
-
args: [{
|
|
136
|
-
selector: 'ng-default-positioner',
|
|
137
|
-
template: '',
|
|
138
|
-
standalone: false,
|
|
139
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
140
|
-
}]
|
|
141
|
-
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
142
|
-
type: Inject,
|
|
143
|
-
args: [NG_SELECT_PLUGIN_INSTANCES]
|
|
144
|
-
}, {
|
|
145
|
-
type: Optional
|
|
146
|
-
}] }, { type: i1.PluginBus, decorators: [{
|
|
147
|
-
type: Optional
|
|
148
|
-
}] }, { type: i0.ElementRef }, { type: undefined, decorators: [{
|
|
149
|
-
type: Inject,
|
|
150
|
-
args: [POSITION]
|
|
151
|
-
}] }, { type: undefined, decorators: [{
|
|
152
|
-
type: Inject,
|
|
153
|
-
args: [POSITIONER_OPTIONS]
|
|
154
|
-
}, {
|
|
155
|
-
type: Optional
|
|
156
|
-
}] }, { type: undefined, decorators: [{
|
|
157
|
-
type: Inject,
|
|
158
|
-
args: [PLATFORM_ID]
|
|
159
|
-
}] }] });
|
|
160
|
-
//# sourceMappingURL=defaultPositioner.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultPositioner.component.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/default/defaultPositioner.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAa,WAAW,EAAE,YAAY,EAAC,MAAM,eAAe,CAAC;AACrI,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,mBAAmB,EAAY,QAAQ,EAAE,cAAc,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAEzG,OAAO,EAAC,MAAM,EAAC,MAAM,uBAAuB,CAAC;AAM7C,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAE5C,OAAO,EAAC,KAAK,EAAC,MAAM,mBAAmB,CAAC;AACxC,OAAO,EAAC,SAAS,EAAC,MAAM,mCAAmC,CAAC;;;AAE5D;;GAEG;AACH,MAAM,cAAc,GACpB;IACI,eAAe,EACf;QACI,MAAM,EAAE,cAAc,CAAC,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E,IAAI;oBAChB,IAAI,EAAE,IAAI;oBACV,GAAG,IAAI,CAAC,OAAO,CAAC,eAAe;iBAClC,CAAE;qBACxD,SAAS,CAAC,MAAM,CAAC,EAAE;oBAEhB,mBAAmB,CAAC,MAAM,CAAC,CAAC;oBAC5B,IAAI,CAAC,kBAAkB,GAAG,MAAM,CAAC,OAAO,CAAC;oBAEzC,IAAG,MAAM,CAAC,IAAI,EACd,CAAC;wBACG,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;oBACrB,CAAC;gBACL,CAAC,CAAC,CAAC;YACX,CAAC;YACD,mBAAmB;iBAEnB,CAAC;gBACG,IAAI,CAAC,uBAAuB,EAAE,WAAW,EAAE,CAAC;gBAC5C,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC;gBAE5B,IAAI,CAAC,uBAAuB,GAAG,IAAI,CAAC;gBACpC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;YACnC,CAAC;QACL,CAAC;IACL,CAAC;8GA3LQ,0BAA0B,kBAwEf,0BAA0B,gGAG1B,QAAQ,aACR,kBAAkB,6BAClB,WAAW;kGA7EtB,0BAA0B,kFAJzB,EAAE;;2FAIH,0BAA0B;kBAPtC,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;0BAyEgB,MAAM;2BAAC,0BAA0B;;0BAAG,QAAQ;;0BAC5C,QAAQ;;0BAER,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,kBAAkB;;0BAAG,QAAQ;;0BACpC,MAAM;2BAAC,WAAW","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject, Optional, ElementRef, OnDestroy, PLATFORM_ID, EventEmitter} from '@angular/core';\nimport {isPlatformBrowser} from '@angular/common';\nimport {applyPositionResult, Position, POSITION, PositionOffset, PositionPlacement} from '@anglr/common';\nimport {NoopAction} from '@jscrpt/common';\nimport {extend} from '@jscrpt/common/extend';\nimport {Subscription} from 'rxjs';\n\nimport {DefaultPositionerOptions, DefaultPositioner} from './defaultPositioner.interface';\nimport {NgSelectPlugin, OptionsGatherer} from '../../../misc';\nimport {NgSelectPluginInstances} from '../../../components/select';\nimport {NG_SELECT_PLUGIN_INSTANCES} from '../../../components/select/types';\nimport {POSITIONER_OPTIONS} from '../types';\nimport {Popup} from '../../popup';\nimport {POPUP} from '../../popup/types';\nimport {PluginBus} from '../../../misc/pluginBus/pluginBus';\n\n/**\n * Default options for positioner\n */\nconst defaultOptions: DefaultPositionerOptions =\n{\n positionOptions:\n {\n offset: PositionOffset.None,\n placement: PositionPlacement.BottomStart,\n }\n};\n\n/**\n * Component used for positioning popup element, handles resize, scroll and collision using `Position`\n */\n@Component(\n{\n selector: 'ng-default-positioner',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DefaultPositionerComponent implements DefaultPositioner, NgSelectPlugin<DefaultPositionerOptions>, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected optionsGatherer: OptionsGatherer;\n\n /**\n * Occurs when flip occured during positining of popup\n */\n protected ɵflip: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Options for NgSelect plugin\n */\n protected ɵoptions: DefaultPositionerOptions;\n\n /**\n * Subscription for visibility change of popup\n */\n protected visibilitySubscription: Subscription|undefined|null;\n\n /**\n * Subscription for positioning event that occured\n */\n protected positioningSubscription: Subscription|undefined|null;\n\n /**\n * Function used for disposing of positining watch\n */\n protected positioningDispose: NoopAction;\n\n /**\n * Popup that is displayed\n */\n protected popup: Popup;\n\n /**\n * Html element of popup plugin\n */\n protected popupElement: HTMLElement;\n\n /**\n * Indication whether is code running in browser\n */\n protected isBrowser: boolean = isPlatformBrowser(this.platformId);\n\n //######################### public properties - implementation of DefaultPositioner #########################\n\n /**\n * Options for NgSelect plugin\n */\n public get options(): DefaultPositionerOptions\n {\n return this.ɵoptions;\n }\n public set options(options: DefaultPositionerOptions)\n {\n this.ɵoptions = extend(true, this.ɵoptions, options);\n }\n\n /**\n * @inheritdoc\n */\n public get flip(): EventEmitter<void>\n {\n return this.ɵflip;\n }\n\n //######################### constructor #########################\n constructor(@Inject(NG_SELECT_PLUGIN_INSTANCES) @Optional() public ngSelectPlugins: NgSelectPluginInstances,\n @Optional() public pluginBus: PluginBus,\n public pluginElement: ElementRef,\n @Inject(POSITION) protected position: Position<HTMLElement>,\n @Inject(POSITIONER_OPTIONS) @Optional() options?: DefaultPositionerOptions,\n @Inject(PLATFORM_ID) protected platformId?: object,)\n {\n this.ɵoptions = extend(true, {}, defaultOptions, options);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this.visibilitySubscription?.unsubscribe();\n this.visibilitySubscription = null;\n\n this.positioningDispose?.();\n\n this.positioningSubscription?.unsubscribe();\n this.positioningSubscription = null;\n }\n\n //######################### public methods - implementation of DefaultPositioner #########################\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this.popup && this.popup != popup)\n {\n this.visibilitySubscription?.unsubscribe();\n this.visibilitySubscription = null;\n\n this.popup = null;\n }\n\n if(!this.popup)\n {\n this.popup = popup;\n\n this.visibilitySubscription = this.popup.visibilityChange.subscribe(() => this.initPosition());\n }\n\n this.initPosition();\n }\n\n /**\n * @inheritdoc\n */\n public initOptions()\n {\n }\n\n /**\n * @inheritdoc\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Initialize positioning of popup\n */\n protected initPosition()\n {\n this.popupElement = this.popup.popupElement;\n\n if(this.isBrowser)\n {\n //register events and handle position of opened popup\n if(this.popupElement)\n {\n this.positioningSubscription?.unsubscribe();\n this.positioningDispose?.();\n\n this.positioningSubscription = null;\n this.positioningDispose = null;\n\n this.positioningSubscription = this.position.placeElement(this.popupElement,\n this.pluginBus.selectElement.nativeElement,\n {\n autoUpdate: true,\n flip: true,\n ...this.options.positionOptions\n },)\n .subscribe(result =>\n {\n applyPositionResult(result);\n this.positioningDispose = result.dispose;\n\n if(result.flip)\n {\n this.flip.emit();\n }\n });\n }\n //unregister events\n else\n {\n this.positioningSubscription?.unsubscribe();\n this.positioningDispose?.();\n\n this.positioningSubscription = null;\n this.positioningDispose = null;\n }\n }\n }\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"defaultPositioner.interface.js","sourceRoot":"","sources":["../../../../../src/plugins/positioner/default/defaultPositioner.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Positioner, PositionerOptions} from '../positioner.interface';\n\n/**\n * Default positioner options\n */\nexport interface DefaultPositionerOptions extends PositionerOptions\n{\n}\n\n/**\n * Public API for 'DefaultPositionerComponent'\n */\nexport interface DefaultPositioner extends Positioner\n{\n}"]}
|