@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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
@use 'sass:meta';
|
|
2
|
+
@use 'sass:map';
|
|
3
|
+
|
|
4
|
+
@use 'misc';
|
|
5
|
+
@use '../components/basic-paging' as basicPaging;
|
|
6
|
+
@use '../components/css-divs-content-renderer' as cssDivsContentRenderer;
|
|
7
|
+
@use '../components/dialog-metadata-selector' as dialogMetadataSelector;
|
|
8
|
+
@use '../components/grid' as grid;
|
|
9
|
+
@use '../components/matrix-content-renderer' as matrixContentRenderer;
|
|
10
|
+
@use '../components/next-previous-paging' as nextPreviousPaging;
|
|
11
|
+
@use '../components/simple-no-data-renderer' as simpleNoDataRenderer;
|
|
12
|
+
@use '../components/table-content-renderer' as tableContentRenderer;
|
|
13
|
+
@use '../components/vertical-drag-drop-selection' as verticalDragDropSelection;
|
|
14
|
+
|
|
15
|
+
@mixin buildThemeColors($theme)
|
|
16
|
+
{
|
|
17
|
+
@if $theme
|
|
18
|
+
{
|
|
19
|
+
--grid-pagingCommon-anchor-background: #{map.get(map.get(map.get($theme, 'pagingCommon'), 'anchor'), 'background')};
|
|
20
|
+
--grid-pagingCommon-anchor-foreground: #{map.get(map.get(map.get($theme, 'pagingCommon'), 'anchor'), 'foreground')};
|
|
21
|
+
--grid-pagingCommon-anchor-active-background: #{map.get(map.get(map.get(map.get($theme, 'pagingCommon'), 'anchor'), 'active'), 'background')};
|
|
22
|
+
--grid-pagingCommon-anchor-active-foreground: #{map.get(map.get(map.get(map.get($theme, 'pagingCommon'), 'anchor'), 'active'), 'foreground')};
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@mixin buildThemeCss
|
|
27
|
+
{
|
|
28
|
+
@include misc.misc;
|
|
29
|
+
@include basicPaging.css;
|
|
30
|
+
@include cssDivsContentRenderer.css;
|
|
31
|
+
@include dialogMetadataSelector.css;
|
|
32
|
+
@include grid.css;
|
|
33
|
+
@include matrixContentRenderer.css;
|
|
34
|
+
@include nextPreviousPaging.css;
|
|
35
|
+
@include simpleNoDataRenderer.css;
|
|
36
|
+
@include tableContentRenderer.css;
|
|
37
|
+
@include verticalDragDropSelection.css;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@mixin buildTheme($theme)
|
|
41
|
+
{
|
|
42
|
+
@include buildThemeColors($theme);
|
|
43
|
+
@include buildThemeCss;
|
|
44
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/functions';
|
|
3
|
+
@use '../core/mixins';
|
|
4
|
+
|
|
5
|
+
$_darkDefaultTheme:
|
|
6
|
+
(
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
@function defineTheme($colors: ())
|
|
10
|
+
{
|
|
11
|
+
$colors: map.deep-merge($_darkDefaultTheme, $colors);
|
|
12
|
+
|
|
13
|
+
@return functions.defineTheme($colors);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin buildTheme()
|
|
17
|
+
{
|
|
18
|
+
@include mixins.buildTheme(defineTheme());
|
|
19
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
@use 'sass:map';
|
|
2
|
+
@use '../core/functions';
|
|
3
|
+
@use '../core/mixins';
|
|
4
|
+
|
|
5
|
+
$_lightDefaultTheme:
|
|
6
|
+
(
|
|
7
|
+
);
|
|
8
|
+
|
|
9
|
+
@function defineTheme($colors: ())
|
|
10
|
+
{
|
|
11
|
+
$colors: map.deep-merge($_lightDefaultTheme, $colors);
|
|
12
|
+
|
|
13
|
+
@return functions.defineTheme($colors);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
@mixin buildTheme()
|
|
17
|
+
{
|
|
18
|
+
@include mixins.buildTheme(defineTheme());
|
|
19
|
+
}
|
package/version.bak
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
16.0.0-beta.20260226142137
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../material/src/directives/types.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC","sourcesContent":["export * from './dialogPopup/dialogPopup.directive';"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.js","sourceRoot":"","sources":["../../../../../material/src/plugins/popup/components.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0CAA0C,CAAC","sourcesContent":["export * from './dialog/dialogPopup.component';\nexport * from './virtualEdit/virtualEditPopup.component';"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/option/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC","sourcesContent":["export * from './option.interface';\nexport * from './optgroup.interface';"]}
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import { Component, ChangeDetectionStrategy, Input, EventEmitter, QueryList, ViewChildren } from '@angular/core';
|
|
2
|
-
import { OptionComponent } from './option.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Component used for options group in select component
|
|
6
|
-
*/
|
|
7
|
-
export class OptGroupComponent {
|
|
8
|
-
constructor() {
|
|
9
|
-
//######################### private fields #########################
|
|
10
|
-
/**
|
|
11
|
-
* Instance of event emitter for optionsChange
|
|
12
|
-
*/
|
|
13
|
-
this._optionsChange = new EventEmitter();
|
|
14
|
-
}
|
|
15
|
-
//######################### public properties #########################
|
|
16
|
-
/**
|
|
17
|
-
* Options assigned to this options group
|
|
18
|
-
*/
|
|
19
|
-
get options() {
|
|
20
|
-
return this.optionsChildren.toArray();
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Occurs when options in this group change
|
|
24
|
-
*/
|
|
25
|
-
get optionsChange() {
|
|
26
|
-
return this._optionsChange;
|
|
27
|
-
}
|
|
28
|
-
//######################### public methods - implementation of AfterViewInit #########################
|
|
29
|
-
/**
|
|
30
|
-
* Called when view was initialized
|
|
31
|
-
*/
|
|
32
|
-
ngAfterViewInit() {
|
|
33
|
-
this.optionsChildren.changes.subscribe(() => {
|
|
34
|
-
this._optionsChange.emit();
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: OptGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.1.3", type: OptGroupComponent, isStandalone: false, selector: "ng-select>ng-optgroup", inputs: { text: "text" }, viewQueries: [{ propertyName: "optionsChildren", predicate: OptionComponent, descendants: true }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
39
|
-
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: OptGroupComponent, decorators: [{
|
|
41
|
-
type: Component,
|
|
42
|
-
args: [{
|
|
43
|
-
selector: 'ng-select>ng-optgroup',
|
|
44
|
-
template: '',
|
|
45
|
-
standalone: false,
|
|
46
|
-
changeDetection: ChangeDetectionStrategy.OnPush
|
|
47
|
-
}]
|
|
48
|
-
}], propDecorators: { optionsChildren: [{
|
|
49
|
-
type: ViewChildren,
|
|
50
|
-
args: [OptionComponent]
|
|
51
|
-
}], text: [{
|
|
52
|
-
type: Input
|
|
53
|
-
}] } });
|
|
54
|
-
//# sourceMappingURL=optgroup.component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"optgroup.component.js","sourceRoot":"","sources":["../../../../src/components/option/optgroup.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,YAAY,EAAgB,MAAM,eAAe,CAAC;AAI9H,OAAO,EAAC,eAAe,EAAC,MAAM,oBAAoB,CAAC;;AAEnD;;GAEG;AAQH,MAAM,OAAO,iBAAiB;IAP9B;QASI,oEAAoE;QAEpE;;WAEG;QACK,mBAAc,GAAuB,IAAI,YAAY,EAAQ,CAAC;KAiDzE;IA/CG,uEAAuE;IAEvE;;OAEG;IACH,IAAW,OAAO;QAEd,OAAO,IAAI,CAAC,eAAe,CAAC,OAAO,EAAE,CAAC;IAC1C,CAAC;IAED;;OAEG;IACH,IAAW,aAAa;QAEpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAmBD,sGAAsG;IAEtG;;OAEG;IACI,eAAe;QAElB,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG,EAAE;YAExC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC;QAC/B,CAAC,CAAC,CAAC;IACP,CAAC;8GAvDQ,iBAAiB;kGAAjB,iBAAiB,gJAiCZ,eAAe,gDArCnB,EAAE;;2FAIH,iBAAiB;kBAP7B,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,QAAQ,EAAE,EAAE;oBACZ,UAAU,EAAE,KAAK;oBACjB,eAAe,EAAE,uBAAuB,CAAC,MAAM;iBAClD;;sBAkCI,YAAY;uBAAC,eAAe;;sBAQ5B,KAAK","sourcesContent":["import {Component, ChangeDetectionStrategy, Input, EventEmitter, QueryList, ViewChildren, AfterViewInit} from '@angular/core';\n\nimport {NgSelectOptGroup} from './optgroup.interface';\nimport {NgSelectOption} from './option.interface';\nimport {OptionComponent} from './option.component';\n\n/**\n * Component used for options group in select component\n */\n@Component(\n{\n selector: 'ng-select>ng-optgroup',\n template: '',\n standalone: false,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class OptGroupComponent<TValue = any> implements NgSelectOptGroup<TValue>, AfterViewInit\n{\n //######################### private fields #########################\n\n /**\n * Instance of event emitter for optionsChange\n */\n private _optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### public properties #########################\n\n /**\n * Options assigned to this options group\n */\n public get options(): NgSelectOption<TValue>[]\n {\n return this.optionsChildren.toArray();\n }\n\n /**\n * Occurs when options in this group change\n */\n public get optionsChange(): EventEmitter<void>\n {\n return this._optionsChange;\n }\n\n //######################### public properties - children #########################\n\n /**\n * Children options in this group\n * @internal\n */\n @ViewChildren(OptionComponent)\n public optionsChildren: QueryList<NgSelectOption<TValue>>;\n\n //######################### public properties - inputs #########################\n\n /**\n * Text that is displayed for this options group\n */\n @Input()\n public text: string;\n\n //######################### public methods - implementation of AfterViewInit #########################\n\n /**\n * Called when view was initialized\n */\n public ngAfterViewInit()\n {\n this.optionsChildren.changes.subscribe(() =>\n {\n this._optionsChange.emit();\n });\n }\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"optgroup.interface.js","sourceRoot":"","sources":["../../../../src/components/option/optgroup.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\nimport {NgSelectOption} from './option.interface';\n\n/**\n * Option group for ng select\n */\nexport interface NgSelectOptGroup<TValue = any>\n{\n /**\n * Options assigned to this options group\n */\n readonly options?: NgSelectOption<TValue>[];\n\n /**\n * Occurs when options in this group change\n */\n readonly optionsChange?: EventEmitter<void>;\n\n /**\n * Text that is displayed for this options group\n */\n text?: string;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"option.interface.js","sourceRoot":"","sources":["../../../../src/components/option/option.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Option for ng select\n */\nexport interface NgSelectOption<TValue = any>\n{\n /**\n * Value that will be used if this option will be selected\n */\n value?: TValue;\n\n /**\n * Text that is displayed if this value is selected\n */\n text?: string;\n\n /**\n * If specified this option will be displayed in group\n */\n group?: string;\n}\n\n/**\n * Option for ng select\n */\nexport interface ɵNgSelectOption<TValue = any> extends NgSelectOption<TValue>\n{\n /**\n * Indication whether is item active\n */\n active?: boolean;\n\n /**\n * Indication whether is this option selected\n */\n selected?: boolean;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/select/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './select.interface';"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.interface.js","sourceRoot":"","sources":["../../../../src/components/select/select.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {Observable, Subscription} from 'rxjs';\n\nimport {NgSelectPlugin, NgSelectOptions, OptionsGatherer, TemplateGatherer} from '../../misc';\nimport {PluginBusEvents} from '../../misc/pluginBus/pluginBus.interface';\n\n/**\n * Interface describing object storing all existing plugin instances for NgSelect\n */\nexport interface NgSelectPluginInstances\n{\n [pluginName: string]: NgSelectPlugin;\n}\n\n/**\n * Public API for NgSelect\n */\nexport interface NgSelect<TValue = any> extends OptionsGatherer<TValue>, TemplateGatherer\n{\n /**\n * Occurs every time when NgSelect is initialized or reinitialized, if value is false NgSelect was not initialized yet\n */\n readonly initialized: Observable<boolean>;\n\n /**\n * Gets current state of initialization\n */\n readonly isInitialized: boolean;\n\n /**\n * Gets or sets NgSelect options\n */\n selectOptions: NgSelectOptions<TValue>;\n\n /**\n * Initialize component, automatically called once if not blocked by options\n */\n initialize(): void;\n\n /**\n * Initialize options, automaticaly called during init phase, but can be used to reinitialize NgSelectOptions\n */\n initOptions(): void;\n\n /**\n * Gets instance of plugin by its id\n * @param pluginId - Id of plugin, use constants\n */\n getPlugin<PluginType extends NgSelectPlugin>(pluginId: string): PluginType;\n\n /**\n * Subscribes for event\n * @param eventName - Name of event that should be listened to\n * @param handler - Function used for handling event\n */\n listenTo<TParam = void>(eventName: keyof PluginBusEvents, handler: (data: TParam) => void): Subscription;\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n invalidateVisuals(): void;\n\n /**\n * Executes actions on NgSelect\n * @param actions - Array of actions that are executed over NgSelect\n */\n execute(...actions: NgSelectAction<TValue>[]): void;\n\n /**\n * Executes function on NgSelect and returns result\n * @param func - Function that is executed and its result is returned\n */\n executeAndReturn<TResult>(func: NgSelectFunction<TResult, TValue>): TResult;\n}\n\n/**\n * Defintion of action that can be executed on NgSelect\n */\nexport type NgSelectAction<TValue = any> = (ngSelect: NgSelect<TValue>) => void;\n\n/**\n * Definition of function that can be executed on NgSelect and returns some data\n */\nexport type NgSelectFunction<TResult = any, TValue = any> = (ngSelect: NgSelect<TValue>) => TResult;"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/components/select/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAI7C;;GAEG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAA4C,IAAI,cAAc,CAA0B,4BAA4B,CAAC,CAAC","sourcesContent":["import {InjectionToken} from '@angular/core';\n\nimport {NgSelectPluginInstances} from './select.interface';\n\n/**\n * Token used for obtaining 'NgSelectPluginInstances'\n */\nexport const NG_SELECT_PLUGIN_INSTANCES: InjectionToken<NgSelectPluginInstances> = new InjectionToken<NgSelectPluginInstances>('NG_SELECT_PLUGIN_INSTANCES');"]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Directive } from '@angular/core';
|
|
2
|
-
import { NgSelectComponent } from '../../components/select/select.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../components/select/select.component";
|
|
5
|
-
/**
|
|
6
|
-
* Directive used for setting absolute option for ng-select
|
|
7
|
-
*/
|
|
8
|
-
export class NgSelectAbsoluteDirective {
|
|
9
|
-
//######################### constructor #########################
|
|
10
|
-
constructor(select) {
|
|
11
|
-
select.selectOptions =
|
|
12
|
-
{
|
|
13
|
-
absolute: true,
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectAbsoluteDirective, deps: [{ token: i1.NgSelectComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
17
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: NgSelectAbsoluteDirective, isStandalone: true, selector: "ng-select[absolute]", ngImport: i0 }); }
|
|
18
|
-
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectAbsoluteDirective, decorators: [{
|
|
20
|
-
type: Directive,
|
|
21
|
-
args: [{
|
|
22
|
-
selector: 'ng-select[absolute]',
|
|
23
|
-
}]
|
|
24
|
-
}], ctorParameters: () => [{ type: i1.NgSelectComponent }] });
|
|
25
|
-
//# sourceMappingURL=ngSelectAbsolute.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectAbsolute.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;;;AAE3E;;GAEG;AAKH,MAAM,OAAO,yBAAyB;IAElC,iEAAiE;IACjE,YAAY,MAAyB;QAEjC,MAAM,CAAC,aAAa;YACpB;gBACI,QAAQ,EAAE,IAAI;aACjB,CAAC;IACN,CAAC;8GATQ,yBAAyB;kGAAzB,yBAAyB;;2FAAzB,yBAAyB;kBAJrC,SAAS;mBACV;oBACI,QAAQ,EAAE,qBAAqB;iBAClC","sourcesContent":["import {Directive} from '@angular/core';\n\nimport {NgSelectComponent} from '../../components/select/select.component';\n\n/**\n * Directive used for setting absolute option for ng-select\n */\n@Directive(\n{\n selector: 'ng-select[absolute]',\n})\nexport class NgSelectAbsoluteDirective\n{\n //######################### constructor #########################\n constructor(select: NgSelectComponent)\n {\n select.selectOptions =\n {\n absolute: true,\n };\n }\n}\n"]}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { Directive } from '@angular/core';
|
|
2
|
-
import { NORMAL_STATE_TYPE, LIVE_SEARCH_TYPE, POPUP_TYPE, KEYBOARD_HANDLER_TYPE } from '../../misc/types';
|
|
3
|
-
import { EditNormalStateComponent } from '../../plugins/normalState/edit/editNormalState.component';
|
|
4
|
-
import { EditLiveSearchComponent } from '../../plugins/liveSearch/edit/editLiveSearch.component';
|
|
5
|
-
import { EditPopupComponent } from '../../plugins/popup/edit/editPopup.component';
|
|
6
|
-
import { EditKeyboardHandlerComponent } from '../../plugins/keyboardHandler/components';
|
|
7
|
-
import { NgSelectComponent } from '../../components/select/select.component';
|
|
8
|
-
import { ExcludingOptionsGatherer } from '../../misc/optionsGatherer/types';
|
|
9
|
-
import * as i0 from "@angular/core";
|
|
10
|
-
import * as i1 from "../../components/select/select.component";
|
|
11
|
-
/**
|
|
12
|
-
* Directive that applies options for NgSelect which enable usage of NgSelect edit (jira like) style
|
|
13
|
-
*/
|
|
14
|
-
export class NgSelectEditDirective {
|
|
15
|
-
//######################### constructor #########################
|
|
16
|
-
constructor(select) {
|
|
17
|
-
select.selectOptions =
|
|
18
|
-
{
|
|
19
|
-
optionsGatherer: new ExcludingOptionsGatherer(),
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectEditDirective, deps: [{ token: i1.NgSelectComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
23
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: NgSelectEditDirective, isStandalone: true, selector: "ng-select[editStyle]", providers: [
|
|
24
|
-
{
|
|
25
|
-
provide: NORMAL_STATE_TYPE,
|
|
26
|
-
useValue: EditNormalStateComponent,
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
provide: LIVE_SEARCH_TYPE,
|
|
30
|
-
useValue: EditLiveSearchComponent,
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
provide: POPUP_TYPE,
|
|
34
|
-
useValue: EditPopupComponent,
|
|
35
|
-
},
|
|
36
|
-
{
|
|
37
|
-
provide: KEYBOARD_HANDLER_TYPE,
|
|
38
|
-
useValue: EditKeyboardHandlerComponent,
|
|
39
|
-
},
|
|
40
|
-
], ngImport: i0 }); }
|
|
41
|
-
}
|
|
42
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectEditDirective, decorators: [{
|
|
43
|
-
type: Directive,
|
|
44
|
-
args: [{
|
|
45
|
-
selector: 'ng-select[editStyle]',
|
|
46
|
-
providers: [
|
|
47
|
-
{
|
|
48
|
-
provide: NORMAL_STATE_TYPE,
|
|
49
|
-
useValue: EditNormalStateComponent,
|
|
50
|
-
},
|
|
51
|
-
{
|
|
52
|
-
provide: LIVE_SEARCH_TYPE,
|
|
53
|
-
useValue: EditLiveSearchComponent,
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
provide: POPUP_TYPE,
|
|
57
|
-
useValue: EditPopupComponent,
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
provide: KEYBOARD_HANDLER_TYPE,
|
|
61
|
-
useValue: EditKeyboardHandlerComponent,
|
|
62
|
-
},
|
|
63
|
-
],
|
|
64
|
-
}]
|
|
65
|
-
}], ctorParameters: () => [{ type: i1.NgSelectComponent }] });
|
|
66
|
-
//# sourceMappingURL=ngSelectEdit.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectEdit.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngSelectEdit/ngSelectEdit.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAgB,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAC,iBAAiB,EAAE,gBAAgB,EAAE,UAAU,EAAE,qBAAqB,EAAC,MAAM,kBAAkB,CAAC;AACxG,OAAO,EAAC,wBAAwB,EAAC,MAAM,0DAA0D,CAAC;AAClG,OAAO,EAAC,uBAAuB,EAAC,MAAM,wDAAwD,CAAC;AAC/F,OAAO,EAAC,kBAAkB,EAAC,MAAM,8CAA8C,CAAC;AAChF,OAAO,EAAC,4BAA4B,EAAC,MAAM,0CAA0C,CAAC;AACtF,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;AAC3E,OAAO,EAAC,wBAAwB,EAAC,MAAM,kCAAkC,CAAC;;;AAE1E;;GAEG;AA4BH,MAAM,OAAO,qBAAqB;IAE9B,iEAAiE;IACjE,YAAY,MAAyB;QAEjC,MAAM,CAAC,aAAa;YACpB;gBACI,eAAe,EAAE,IAAI,wBAAwB,EAAE;aAClD,CAAC;IACN,CAAC;8GATQ,qBAAqB;kGAArB,qBAAqB,mEAvB9B;YAEI;gBACI,OAAO,EAAE,iBAAiB;gBAC1B,QAAQ,EAAE,wBAAwB;aACrC;YAED;gBACI,OAAO,EAAE,gBAAgB;gBACzB,QAAQ,EAAE,uBAAuB;aACpC;YAED;gBACI,OAAO,EAAE,UAAU;gBACnB,QAAQ,EAAE,kBAAkB;aAC/B;YAED;gBACI,OAAO,EAAE,qBAAqB;gBAC9B,QAAQ,EAAE,4BAA4B;aACzC;SACJ;;2FAEQ,qBAAqB;kBA3BjC,SAAS;mBACV;oBACI,QAAQ,EAAE,sBAAsB;oBAChC,SAAS,EACT;wBAEI;4BACI,OAAO,EAAE,iBAAiB;4BAC1B,QAAQ,EAAE,wBAAwB;yBACrC;wBAED;4BACI,OAAO,EAAE,gBAAgB;4BACzB,QAAQ,EAAE,uBAAuB;yBACpC;wBAED;4BACI,OAAO,EAAE,UAAU;4BACnB,QAAQ,EAAE,kBAAkB;yBAC/B;wBAED;4BACI,OAAO,EAAE,qBAAqB;4BAC9B,QAAQ,EAAE,4BAA4B;yBACzC;qBACJ;iBACJ","sourcesContent":["import {Directive, ValueProvider} from '@angular/core';\n\nimport {NORMAL_STATE_TYPE, LIVE_SEARCH_TYPE, POPUP_TYPE, KEYBOARD_HANDLER_TYPE} from '../../misc/types';\nimport {EditNormalStateComponent} from '../../plugins/normalState/edit/editNormalState.component';\nimport {EditLiveSearchComponent} from '../../plugins/liveSearch/edit/editLiveSearch.component';\nimport {EditPopupComponent} from '../../plugins/popup/edit/editPopup.component';\nimport {EditKeyboardHandlerComponent} from '../../plugins/keyboardHandler/components';\nimport {NgSelectComponent} from '../../components/select/select.component';\nimport {ExcludingOptionsGatherer} from '../../misc/optionsGatherer/types';\n\n/**\n * Directive that applies options for NgSelect which enable usage of NgSelect edit (jira like) style\n */\n@Directive(\n{\n selector: 'ng-select[editStyle]',\n providers:\n [\n <ValueProvider>\n {\n provide: NORMAL_STATE_TYPE,\n useValue: EditNormalStateComponent,\n },\n <ValueProvider>\n {\n provide: LIVE_SEARCH_TYPE,\n useValue: EditLiveSearchComponent,\n },\n <ValueProvider>\n {\n provide: POPUP_TYPE,\n useValue: EditPopupComponent,\n },\n <ValueProvider>\n {\n provide: KEYBOARD_HANDLER_TYPE,\n useValue: EditKeyboardHandlerComponent,\n },\n ],\n})\nexport class NgSelectEditDirective\n{\n //######################### constructor #########################\n constructor(select: NgSelectComponent)\n {\n select.selectOptions =\n {\n optionsGatherer: new ExcludingOptionsGatherer(),\n };\n }\n}\n"]}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { Directive, Input } from '@angular/core';
|
|
2
|
-
import { NgSelectComponent } from '../../components/select/select.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "../../components/select/select.component";
|
|
5
|
-
/**
|
|
6
|
-
* Directive used for setting live search placeholder text
|
|
7
|
-
*/
|
|
8
|
-
export class NgSelectPlaceholderDirective {
|
|
9
|
-
//######################### constructor #########################
|
|
10
|
-
constructor(_select) {
|
|
11
|
-
this._select = _select;
|
|
12
|
-
}
|
|
13
|
-
//######################### public methods - implementation of OnInit #########################
|
|
14
|
-
/**
|
|
15
|
-
* Initialize component
|
|
16
|
-
*/
|
|
17
|
-
ngOnInit() {
|
|
18
|
-
this._select.selectOptions =
|
|
19
|
-
{
|
|
20
|
-
plugins: {
|
|
21
|
-
liveSearch: {
|
|
22
|
-
options: {
|
|
23
|
-
texts: {
|
|
24
|
-
inputPlaceholder: this.placeholder
|
|
25
|
-
},
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectPlaceholderDirective, deps: [{ token: i1.NgSelectComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
32
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: NgSelectPlaceholderDirective, isStandalone: true, selector: "ng-select[placeholder]", inputs: { placeholder: "placeholder" }, ngImport: i0 }); }
|
|
33
|
-
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectPlaceholderDirective, decorators: [{
|
|
35
|
-
type: Directive,
|
|
36
|
-
args: [{
|
|
37
|
-
selector: 'ng-select[placeholder]',
|
|
38
|
-
}]
|
|
39
|
-
}], ctorParameters: () => [{ type: i1.NgSelectComponent }], propDecorators: { placeholder: [{
|
|
40
|
-
type: Input
|
|
41
|
-
}] } });
|
|
42
|
-
//# sourceMappingURL=ngSelectPlaceholder.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectPlaceholder.directive.js","sourceRoot":"","sources":["../../../../src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAU,KAAK,EAAC,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;;;AAG3E;;GAEG;AAKH,MAAM,OAAO,4BAA4B;IAUrC,iEAAiE;IACjE,YAAoB,OAA0B;QAA1B,YAAO,GAAP,OAAO,CAAmB;IAE9C,CAAC;IAED,+FAA+F;IAE/F;;OAEG;IACI,QAAQ;QAEX,IAAI,CAAC,OAAO,CAAC,aAAa;YAC1B;gBACI,OAAO,EACP;oBACI,UAAU,EACV;wBACI,OAAO,EACP;4BACI,KAAK,EACL;gCACI,gBAAgB,EAAE,IAAI,CAAC,WAAW;6BACrC;yBACJ;qBACJ;iBACJ;aACJ,CAAC;IACN,CAAC;8GAtCQ,4BAA4B;kGAA5B,4BAA4B;;2FAA5B,4BAA4B;kBAJxC,SAAS;mBACV;oBACI,QAAQ,EAAE,wBAAwB;iBACrC;;sBAQI,KAAK","sourcesContent":["import {Directive, OnInit, Input} from '@angular/core';\n\nimport {NgSelectComponent} from '../../components/select/select.component';\nimport {LiveSearchOptions} from '../../plugins/liveSearch';\n\n/**\n * Directive used for setting live search placeholder text\n */\n@Directive(\n{\n selector: 'ng-select[placeholder]',\n})\nexport class NgSelectPlaceholderDirective implements OnInit\n{\n //######################### public properties - inputs #########################\n\n /**\n * Placeholder text used for live search plugin\n */\n @Input()\n public placeholder: string;\n\n //######################### constructor #########################\n constructor(private _select: NgSelectComponent)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this._select.selectOptions =\n {\n plugins:\n {\n liveSearch:\n {\n options: <LiveSearchOptions>\n {\n texts:\n {\n inputPlaceholder: this.placeholder\n },\n },\n },\n },\n };\n }\n}\n"]}
|
package/es2022/src/index.ssr.js
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/**
|
|
3
|
-
* Allows Server Side Rendering for @anglr/select to work, call it as soon as possible
|
|
4
|
-
*/
|
|
5
|
-
(function (global) {
|
|
6
|
-
if (!global.Document) {
|
|
7
|
-
global.Document = function () { };
|
|
8
|
-
}
|
|
9
|
-
})(typeof window != 'undefined' && window || typeof self != 'undefined' && self || typeof global != 'undefined' && global);
|
|
10
|
-
//# sourceMappingURL=index.ssr.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.ssr.js","sourceRoot":"","sources":["../../src/index.ssr.ts"],"names":[],"mappings":";AAAA;;GAEG;AACH,CAAC,UAAS,MAAW;IAEjB,IAAG,CAAC,MAAM,CAAC,QAAQ,EACnB,CAAC;QACG,MAAM,CAAC,QAAQ,GAAG,cAAW,CAAC,CAAC;IACnC,CAAC;AACL,CAAC,CAAC,CAAC,OAAO,MAAM,IAAI,WAAW,IAAI,MAAM,IAAI,OAAO,IAAI,IAAI,WAAW,IAAI,IAAI,IAAI,OAAO,MAAM,IAAI,WAAW,IAAI,MAAM,CAAC,CAAC","sourcesContent":["/**\n * Allows Server Side Rendering for @anglr/select to work, call it as soon as possible\n */\n(function(global: any) \n{\n if(!global.Document)\n {\n global.Document = function(){};\n }\n})(typeof window != 'undefined' && window || typeof self != 'undefined' && self || typeof global != 'undefined' && global);"]}
|
package/es2022/src/misc/index.js
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export * from './ngSelectOptions.interface';
|
|
2
|
-
export * from './optionsGatherer/optionsGatherer.interface';
|
|
3
|
-
export * from './optionsGatherer/dynamicOptionsGatherer.interface';
|
|
4
|
-
export * from './plugin.interface';
|
|
5
|
-
export * from './templateGatherer.interface';
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/misc/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC;AACnE,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC","sourcesContent":["export * from './ngSelectOptions.interface';\nexport * from './optionsGatherer/optionsGatherer.interface';\nexport * from './optionsGatherer/dynamicOptionsGatherer.interface';\nexport * from './plugin.interface';\nexport * from './templateGatherer.interface';"]}
|
|
@@ -1,162 +0,0 @@
|
|
|
1
|
-
import { forwardRef, Directive } from '@angular/core';
|
|
2
|
-
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
3
|
-
import { NgSelectComponent } from '../components/select/select.component';
|
|
4
|
-
import { ɵValueChange, ɵSetValue, ɵOnFocus, ɵSetReadonly, ɵGetValue } from '../misc/extensions';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
import * as i1 from "../components/select/select.component";
|
|
7
|
-
/**
|
|
8
|
-
* Provider for control value accessor
|
|
9
|
-
* @internal
|
|
10
|
-
*/
|
|
11
|
-
const NG_SELECT_VALUE_ACCESSOR = {
|
|
12
|
-
provide: NG_VALUE_ACCESSOR,
|
|
13
|
-
useExisting: forwardRef(() => NgSelectControlValueAccessor),
|
|
14
|
-
multi: true
|
|
15
|
-
};
|
|
16
|
-
/**
|
|
17
|
-
* Control value accessor for NgSelectComponent
|
|
18
|
-
*/
|
|
19
|
-
export class NgSelectControlValueAccessor {
|
|
20
|
-
//######################### constructor #########################
|
|
21
|
-
constructor(_select) {
|
|
22
|
-
this._select = _select;
|
|
23
|
-
/**
|
|
24
|
-
* Subscription that looks for changes of select
|
|
25
|
-
*/
|
|
26
|
-
this._changeSubscription = null;
|
|
27
|
-
/**
|
|
28
|
-
* Subscription that looks for changes of select
|
|
29
|
-
*/
|
|
30
|
-
this._focusSubscription = null;
|
|
31
|
-
}
|
|
32
|
-
//######################### public methods - implementation of ControlValueAccessor #########################
|
|
33
|
-
/**
|
|
34
|
-
* Sets value to select
|
|
35
|
-
*/
|
|
36
|
-
writeValue(value) {
|
|
37
|
-
this._value = value;
|
|
38
|
-
if (this._select.isInitialized) {
|
|
39
|
-
this._select.execute(ɵSetValue(value));
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
if (this._initializedSubscription) {
|
|
43
|
-
this._initializedSubscription.unsubscribe();
|
|
44
|
-
this._initializedSubscription = null;
|
|
45
|
-
}
|
|
46
|
-
this._initializedSubscription = this._select.initialized.subscribe(initialized => {
|
|
47
|
-
if (initialized) {
|
|
48
|
-
this._initializedSubscription.unsubscribe();
|
|
49
|
-
this._initializedSubscription = null;
|
|
50
|
-
this._select.execute(ɵSetValue(value));
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
}
|
|
54
|
-
/**
|
|
55
|
-
* Registers callback that is called when value of select changes
|
|
56
|
-
*/
|
|
57
|
-
registerOnChange(fn) {
|
|
58
|
-
const fnWrapper = (value) => {
|
|
59
|
-
//multivalue is new array in case of change
|
|
60
|
-
if (Array.isArray(value) && Array.isArray(this._value)) {
|
|
61
|
-
if (value !== this._value) {
|
|
62
|
-
this._value = value;
|
|
63
|
-
fn(value);
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
else if (!Array.isArray(value) && !Array.isArray(this._value)) {
|
|
67
|
-
if (!this._select.selectOptions?.valueComparer(this._value, value)) {
|
|
68
|
-
this._value = value;
|
|
69
|
-
fn(value);
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
};
|
|
73
|
-
this._changeInitializedSubscription = this._select.initialized.subscribe(initialized => {
|
|
74
|
-
if (initialized) {
|
|
75
|
-
if (this._changeSubscription) {
|
|
76
|
-
this._changeSubscription.unsubscribe();
|
|
77
|
-
this._changeSubscription = null;
|
|
78
|
-
}
|
|
79
|
-
this._changeSubscription = this._select.executeAndReturn(ɵValueChange(fnWrapper));
|
|
80
|
-
if (this._select.selectOptions.forceValueCheckOnInit) {
|
|
81
|
-
const value = this._select.executeAndReturn(ɵGetValue());
|
|
82
|
-
fnWrapper(value);
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Registers callback that is called when select is closed
|
|
89
|
-
*/
|
|
90
|
-
registerOnTouched(fn) {
|
|
91
|
-
this._touchInitializedSubscription = this._select.initialized.subscribe(initialized => {
|
|
92
|
-
if (initialized) {
|
|
93
|
-
if (this._focusSubscription) {
|
|
94
|
-
this._focusSubscription.unsubscribe();
|
|
95
|
-
this._focusSubscription = null;
|
|
96
|
-
}
|
|
97
|
-
this._focusSubscription = this._select.executeAndReturn(ɵOnFocus(fn));
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* Sets NgSelect as disabled/readonly
|
|
103
|
-
* @param isDisabled - Indication whether is control disabled or not
|
|
104
|
-
*/
|
|
105
|
-
setDisabledState(isDisabled) {
|
|
106
|
-
if (this._select.isInitialized) {
|
|
107
|
-
this._select.execute(ɵSetReadonly(isDisabled));
|
|
108
|
-
return;
|
|
109
|
-
}
|
|
110
|
-
if (this._disabledInitializedSubscription) {
|
|
111
|
-
this._disabledInitializedSubscription.unsubscribe();
|
|
112
|
-
this._disabledInitializedSubscription = null;
|
|
113
|
-
}
|
|
114
|
-
this._disabledInitializedSubscription = this._select.initialized.subscribe(initialized => {
|
|
115
|
-
if (initialized) {
|
|
116
|
-
this._disabledInitializedSubscription.unsubscribe();
|
|
117
|
-
this._disabledInitializedSubscription = null;
|
|
118
|
-
this._select.execute(ɵSetReadonly(isDisabled));
|
|
119
|
-
}
|
|
120
|
-
});
|
|
121
|
-
}
|
|
122
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
123
|
-
/**
|
|
124
|
-
* Called when component is destroyed
|
|
125
|
-
*/
|
|
126
|
-
ngOnDestroy() {
|
|
127
|
-
if (this._changeSubscription) {
|
|
128
|
-
this._changeSubscription.unsubscribe();
|
|
129
|
-
this._changeSubscription = null;
|
|
130
|
-
}
|
|
131
|
-
if (this._initializedSubscription) {
|
|
132
|
-
this._initializedSubscription.unsubscribe();
|
|
133
|
-
this._initializedSubscription = null;
|
|
134
|
-
}
|
|
135
|
-
if (this._changeInitializedSubscription) {
|
|
136
|
-
this._changeInitializedSubscription.unsubscribe();
|
|
137
|
-
this._changeInitializedSubscription = null;
|
|
138
|
-
}
|
|
139
|
-
if (this._touchInitializedSubscription) {
|
|
140
|
-
this._touchInitializedSubscription.unsubscribe();
|
|
141
|
-
this._touchInitializedSubscription = null;
|
|
142
|
-
}
|
|
143
|
-
if (this._focusSubscription) {
|
|
144
|
-
this._focusSubscription.unsubscribe();
|
|
145
|
-
this._focusSubscription = null;
|
|
146
|
-
}
|
|
147
|
-
if (this._disabledInitializedSubscription) {
|
|
148
|
-
this._disabledInitializedSubscription.unsubscribe();
|
|
149
|
-
this._disabledInitializedSubscription = null;
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectControlValueAccessor, deps: [{ token: i1.NgSelectComponent }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
153
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: NgSelectControlValueAccessor, isStandalone: true, selector: "ng-select[formControlName],ng-select[formControl],ng-select[ngModel]", providers: [NG_SELECT_VALUE_ACCESSOR], ngImport: i0 }); }
|
|
154
|
-
}
|
|
155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: NgSelectControlValueAccessor, decorators: [{
|
|
156
|
-
type: Directive,
|
|
157
|
-
args: [{
|
|
158
|
-
selector: 'ng-select[formControlName],ng-select[formControl],ng-select[ngModel]',
|
|
159
|
-
providers: [NG_SELECT_VALUE_ACCESSOR]
|
|
160
|
-
}]
|
|
161
|
-
}], ctorParameters: () => [{ type: i1.NgSelectComponent }] });
|
|
162
|
-
//# sourceMappingURL=ngSelectControlValueAccessor.directive.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectControlValueAccessor.directive.js","sourceRoot":"","sources":["../../../src/misc/ngSelectControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAoB,SAAS,EAAY,MAAM,eAAe,CAAC;AACjF,OAAO,EAAC,iBAAiB,EAAuB,MAAM,gBAAgB,CAAC;AAGvE,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAC,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,SAAS,EAAC,MAAM,oBAAoB,CAAC;;;AAE9F;;;GAGG;AACH,MAAM,wBAAwB,GAC9B;IACI,OAAO,EAAE,iBAAiB;IAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,4BAA4B,CAAC;IAC3D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,4BAA4B;IAuCrC,iEAAiE;IACjE,YAAoB,OAAkC;QAAlC,YAAO,GAAP,OAAO,CAA2B;QAhBtD;;WAEG;QACK,wBAAmB,GAAiB,IAAI,CAAC;QAEjD;;WAEG;QACK,uBAAkB,GAAiB,IAAI,CAAC;IAUhD,CAAC;IAED,6GAA6G;IAE7G;;OAEG;IACI,UAAU,CAAC,KAA2B;QAEzC,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QAEpB,IAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAC7B,CAAC;YACG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;YAEvC,OAAO;QACX,CAAC;QAED,IAAG,IAAI,CAAC,wBAAwB,EAChC,CAAC;YACG,IAAI,CAAC,wBAAwB,CAAC,WAAW,EAAE,CAAC;YAC5C,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC;QACzC,CAAC;QAED,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE;YAE7E,IAAG,WAAW,EACd,CAAC;gBACG,IAAI,CAAC,wBAAwB,CAAC,WAAW,EAAE,CAAC;gBAC5C,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC;gBAErC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;YAC3C,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACI,gBAAgB,CAAC,EAAwC;QAE5D,MAAM,SAAS,GAAG,CAAC,KAA2B,EAAE,EAAE;YAE9C,2CAA2C;YAC3C,IAAG,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EACrD,CAAC;gBACG,IAAG,KAAK,KAAK,IAAI,CAAC,MAAM,EACxB,CAAC;oBACG,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;oBACpB,EAAE,CAAC,KAAK,CAAC,CAAC;gBACd,CAAC;YACL,CAAC;iBACI,IAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,EAC5D,CAAC;gBACG,IAAG,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,EACjE,CAAC;oBACG,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;oBACpB,EAAE,CAAC,KAAK,CAAC,CAAC;gBACd,CAAC;YACL,CAAC;QACL,CAAC,CAAC;QAEF,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE;YAEnF,IAAG,WAAW,EACd,CAAC;gBACG,IAAG,IAAI,CAAC,mBAAmB,EAC3B,CAAC;oBACG,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,CAAC;oBACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;gBACpC,CAAC;gBAED,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC;gBAElF,IAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,qBAAqB,EACnD,CAAC;oBACG,MAAM,KAAK,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,SAAS,EAAE,CAAC,CAAC;oBAEzD,SAAS,CAAC,KAAK,CAAC,CAAC;gBACrB,CAAC;YACL,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;OAEG;IACI,iBAAiB,CAAC,EAAc;QAEnC,IAAI,CAAC,6BAA6B,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE;YAElF,IAAG,WAAW,EACd,CAAC;gBACG,IAAG,IAAI,CAAC,kBAAkB,EAC1B,CAAC;oBACG,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;oBACtC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;gBACnC,CAAC;gBAED,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC,OAAO,CAAC,gBAAgB,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC;YAC1E,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED;;;OAGG;IACI,gBAAgB,CAAC,UAAmB;QAEvC,IAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAC7B,CAAC;YACG,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;YAE/C,OAAO;QACX,CAAC;QAED,IAAG,IAAI,CAAC,gCAAgC,EACxC,CAAC;YACG,IAAI,CAAC,gCAAgC,CAAC,WAAW,EAAE,CAAC;YACpD,IAAI,CAAC,gCAAgC,GAAG,IAAI,CAAC;QACjD,CAAC;QAED,IAAI,CAAC,gCAAgC,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,WAAW,CAAC,EAAE;YAErF,IAAG,WAAW,EACd,CAAC;gBACG,IAAI,CAAC,gCAAgC,CAAC,WAAW,EAAE,CAAC;gBACpD,IAAI,CAAC,gCAAgC,GAAG,IAAI,CAAC;gBAE7C,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC;YACnD,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAG,IAAI,CAAC,mBAAmB,EAC3B,CAAC;YACG,IAAI,CAAC,mBAAmB,CAAC,WAAW,EAAE,CAAC;YACvC,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;QACpC,CAAC;QAED,IAAG,IAAI,CAAC,wBAAwB,EAChC,CAAC;YACG,IAAI,CAAC,wBAAwB,CAAC,WAAW,EAAE,CAAC;YAC5C,IAAI,CAAC,wBAAwB,GAAG,IAAI,CAAC;QACzC,CAAC;QAED,IAAG,IAAI,CAAC,8BAA8B,EACtC,CAAC;YACG,IAAI,CAAC,8BAA8B,CAAC,WAAW,EAAE,CAAC;YAClD,IAAI,CAAC,8BAA8B,GAAG,IAAI,CAAC;QAC/C,CAAC;QAED,IAAG,IAAI,CAAC,6BAA6B,EACrC,CAAC;YACG,IAAI,CAAC,6BAA6B,CAAC,WAAW,EAAE,CAAC;YACjD,IAAI,CAAC,6BAA6B,GAAG,IAAI,CAAC;QAC9C,CAAC;QAED,IAAG,IAAI,CAAC,kBAAkB,EAC1B,CAAC;YACG,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;YACtC,IAAI,CAAC,kBAAkB,GAAG,IAAI,CAAC;QACnC,CAAC;QAED,IAAG,IAAI,CAAC,gCAAgC,EACxC,CAAC;YACG,IAAI,CAAC,gCAAgC,CAAC,WAAW,EAAE,CAAC;YACpD,IAAI,CAAC,gCAAgC,GAAG,IAAI,CAAC;QACjD,CAAC;IACL,CAAC;8GA3NQ,4BAA4B;kGAA5B,4BAA4B,mHAF1B,CAAC,wBAAwB,CAAC;;2FAE5B,4BAA4B;kBALxC,SAAS;mBACV;oBACI,QAAQ,EAAE,sEAAsE;oBAChF,SAAS,EAAE,CAAC,wBAAwB,CAAC;iBACxC","sourcesContent":["import {forwardRef, ExistingProvider, Directive, OnDestroy} from '@angular/core';\nimport {NG_VALUE_ACCESSOR, ControlValueAccessor} from '@angular/forms';\nimport {Subscription} from 'rxjs';\n\nimport {NgSelectComponent} from '../components/select/select.component';\nimport {ɵValueChange, ɵSetValue, ɵOnFocus, ɵSetReadonly, ɵGetValue} from '../misc/extensions';\n\n/**\n * Provider for control value accessor\n * @internal\n */\nconst NG_SELECT_VALUE_ACCESSOR: ExistingProvider =\n{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => NgSelectControlValueAccessor),\n multi: true\n};\n\n/**\n * Control value accessor for NgSelectComponent\n */\n@Directive(\n{\n selector: 'ng-select[formControlName],ng-select[formControl],ng-select[ngModel]',\n providers: [NG_SELECT_VALUE_ACCESSOR]\n})\nexport class NgSelectControlValueAccessor<TValue = any> implements ControlValueAccessor, OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscription for initialized status of NgSelect, used for writeValue\n */\n private _initializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for registerOnChange\n */\n private _changeInitializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for registerOnTouched\n */\n private _touchInitializedSubscription: Subscription;\n\n /**\n * Subscription for initialized status of NgSelect, used for setDisabledState\n */\n private _disabledInitializedSubscription: Subscription;\n\n /**\n * Subscription that looks for changes of select\n */\n private _changeSubscription: Subscription = null;\n\n /**\n * Subscription that looks for changes of select\n */\n private _focusSubscription: Subscription = null;\n\n /**\n * Last set value to this control\n */\n private _value: TValue|TValue[];\n\n //######################### constructor #########################\n constructor(private _select: NgSelectComponent<TValue>)\n {\n }\n\n //######################### public methods - implementation of ControlValueAccessor #########################\n\n /**\n * Sets value to select\n */\n public writeValue(value: TValue|Array<TValue>): void\n {\n this._value = value;\n\n if(this._select.isInitialized)\n {\n this._select.execute(ɵSetValue(value));\n\n return;\n }\n\n if(this._initializedSubscription)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n }\n\n this._initializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n\n this._select.execute(ɵSetValue(value));\n }\n });\n }\n\n /**\n * Registers callback that is called when value of select changes\n */\n public registerOnChange(fn: (data: TValue|Array<TValue>) => void): void\n {\n const fnWrapper = (value: TValue|Array<TValue>) =>\n {\n //multivalue is new array in case of change\n if(Array.isArray(value) && Array.isArray(this._value))\n {\n if(value !== this._value)\n {\n this._value = value;\n fn(value);\n }\n }\n else if(!Array.isArray(value) && !Array.isArray(this._value))\n {\n if(!this._select.selectOptions?.valueComparer(this._value, value))\n {\n this._value = value;\n fn(value);\n }\n }\n };\n\n this._changeInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n if(this._changeSubscription)\n {\n this._changeSubscription.unsubscribe();\n this._changeSubscription = null;\n }\n\n this._changeSubscription = this._select.executeAndReturn(ɵValueChange(fnWrapper));\n\n if(this._select.selectOptions.forceValueCheckOnInit)\n {\n const value = this._select.executeAndReturn(ɵGetValue());\n\n fnWrapper(value);\n }\n }\n });\n }\n\n /**\n * Registers callback that is called when select is closed\n */\n public registerOnTouched(fn: () => void): void\n {\n this._touchInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n if(this._focusSubscription)\n {\n this._focusSubscription.unsubscribe();\n this._focusSubscription = null;\n }\n\n this._focusSubscription = this._select.executeAndReturn(ɵOnFocus(fn));\n }\n });\n }\n\n /**\n * Sets NgSelect as disabled/readonly\n * @param isDisabled - Indication whether is control disabled or not\n */\n public setDisabledState(isDisabled: boolean): void\n {\n if(this._select.isInitialized)\n {\n this._select.execute(ɵSetReadonly(isDisabled));\n\n return;\n }\n\n if(this._disabledInitializedSubscription)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n }\n\n this._disabledInitializedSubscription = this._select.initialized.subscribe(initialized =>\n {\n if(initialized)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n\n this._select.execute(ɵSetReadonly(isDisabled));\n }\n });\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n if(this._changeSubscription)\n {\n this._changeSubscription.unsubscribe();\n this._changeSubscription = null;\n }\n\n if(this._initializedSubscription)\n {\n this._initializedSubscription.unsubscribe();\n this._initializedSubscription = null;\n }\n\n if(this._changeInitializedSubscription)\n {\n this._changeInitializedSubscription.unsubscribe();\n this._changeInitializedSubscription = null;\n }\n\n if(this._touchInitializedSubscription)\n {\n this._touchInitializedSubscription.unsubscribe();\n this._touchInitializedSubscription = null;\n }\n\n if(this._focusSubscription)\n {\n this._focusSubscription.unsubscribe();\n this._focusSubscription = null;\n }\n\n if(this._disabledInitializedSubscription)\n {\n this._disabledInitializedSubscription.unsubscribe();\n this._disabledInitializedSubscription = null;\n }\n }\n}"]}
|