@anglr/select 15.0.0 → 16.0.0-beta.20260226142137
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +153 -0
- package/es2022/extensions/src/extensions/getValue.js +16 -1
- package/es2022/extensions/src/extensions/getValue.js.map +1 -1
- package/es2022/extensions/src/extensions/onFocus.js +14 -1
- package/es2022/extensions/src/extensions/onFocus.js.map +1 -1
- package/es2022/extensions/src/extensions/patchOptions.js +15 -11
- package/es2022/extensions/src/extensions/patchOptions.js.map +1 -1
- package/es2022/extensions/src/extensions/reinitializeOptions.js +19 -14
- package/es2022/extensions/src/extensions/reinitializeOptions.js.map +1 -1
- package/es2022/extensions/src/extensions/setReadonly.js +21 -1
- package/es2022/extensions/src/extensions/setReadonly.js.map +1 -1
- package/es2022/extensions/src/extensions/setValue.js +17 -1
- package/es2022/extensions/src/extensions/setValue.js.map +1 -1
- package/es2022/extensions/src/extensions/valueChange.js +17 -1
- package/es2022/extensions/src/extensions/valueChange.js.map +1 -1
- package/es2022/extensions/src/index.js +1 -7
- package/es2022/extensions/src/index.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js +100 -72
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.component.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.interface.js +26 -1
- package/es2022/material/src/components/basicDialogPopup/basicDialogPopup.interface.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/index.js +2 -1
- package/es2022/material/src/components/basicDialogPopup/index.js.map +1 -1
- package/es2022/material/src/components/basicDialogPopup/types.js +2 -1
- package/es2022/material/src/components/basicDialogPopup/types.js.map +1 -1
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js +73 -74
- package/es2022/material/src/directives/dialogPopup/dialogPopup.directive.js.map +1 -1
- package/es2022/material/src/index.js +1 -7
- package/es2022/material/src/index.js.map +1 -1
- package/es2022/material/src/modules/dialogPopup.module.js +33 -40
- package/es2022/material/src/modules/dialogPopup.module.js.map +1 -1
- package/es2022/material/src/modules/virtualEditPopup.module.js +27 -30
- package/es2022/material/src/modules/virtualEditPopup.module.js.map +1 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js +172 -140
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.component.js.map +1 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.interface.js +65 -1
- package/es2022/material/src/plugins/popup/dialog/dialogPopup.interface.js.map +1 -1
- package/es2022/material/src/plugins/popup/index.js +1 -2
- package/es2022/material/src/plugins/popup/index.js.map +1 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js +120 -88
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.js.map +1 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js +20 -1
- package/es2022/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.js.map +1 -1
- package/es2022/src/components/index.js +4 -0
- package/es2022/src/components/index.js.map +1 -0
- package/es2022/src/components/option/option.component.js +22 -19
- package/es2022/src/components/option/option.component.js.map +1 -1
- package/es2022/src/components/optionGroup/optgroup.component.js +29 -0
- package/es2022/src/components/optionGroup/optgroup.component.js.map +1 -0
- package/es2022/src/components/select/select.component.js +356 -450
- package/es2022/src/components/select/select.component.js.map +1 -1
- package/es2022/src/decorators/index.js +2 -0
- package/es2022/src/decorators/index.js.map +1 -0
- package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js +12 -0
- package/es2022/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.js.map +1 -0
- package/es2022/src/directives/index.js +5 -0
- package/es2022/src/directives/index.js.map +1 -0
- package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js +30 -0
- package/es2022/src/directives/normalStateTemplate/normalStateTemplate.directive.js.map +1 -0
- package/es2022/src/directives/optionTemplate/optionTemplate.directive.js +30 -0
- package/es2022/src/directives/optionTemplate/optionTemplate.directive.js.map +1 -0
- package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js +25 -0
- package/es2022/src/directives/selectAbsolute/selectAbsolute.directive.js.map +1 -0
- package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js +210 -0
- package/es2022/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.js.map +1 -0
- package/es2022/src/directives/selectEdit/selectEdit.directive.js +51 -0
- package/es2022/src/directives/selectEdit/selectEdit.directive.js.map +1 -0
- package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js +48 -0
- package/es2022/src/directives/selectPlaceholder/selectPlaceholder.directive.js.map +1 -0
- package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js +17 -0
- package/es2022/src/directives/withDirectAccess/withDirectAccess.directive.js.map +1 -0
- package/es2022/src/index.js +8 -41
- package/es2022/src/index.js.map +1 -1
- package/es2022/src/interfaces/index.js +20 -0
- package/es2022/src/interfaces/index.js.map +1 -0
- package/es2022/src/interfaces/initState/initState.interface.js +2 -0
- package/es2022/src/interfaces/initState/initState.interface.js.map +1 -0
- package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js +2 -0
- package/es2022/src/interfaces/normalStateContext/normalStateContext.interface.js.map +1 -0
- package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js +2 -0
- package/es2022/src/interfaces/optionsGatherer/optionsGatherer.interface.js.map +1 -0
- package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js +2 -0
- package/es2022/src/interfaces/pluginDescription/pluginDescription.interface.js.map +1 -0
- package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js +2 -0
- package/es2022/src/interfaces/pluginOptions/pluginOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/index.js +10 -0
- package/es2022/src/interfaces/plugins/index.js.map +1 -0
- package/es2022/src/interfaces/plugins/interactions/interactions.interface.js +2 -0
- package/es2022/src/interfaces/plugins/interactions/interactions.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/liveSearch/liveSearch.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/normalState/normalState.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js +2 -0
- package/es2022/src/interfaces/plugins/optionsHandler/optionsHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/popup/popup.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/positioner/positioner.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/readonlyState/readonlyState.interface.js.map +1 -0
- package/es2022/src/interfaces/plugins/valueHandler/valueHandler.interface.js.map +1 -0
- package/es2022/src/interfaces/popupContext/popupContext.interface.js +2 -0
- package/es2022/src/interfaces/popupContext/popupContext.interface.js.map +1 -0
- package/es2022/src/interfaces/selectApi/selectApi.interface.js +2 -0
- package/es2022/src/interfaces/selectApi/selectApi.interface.js.map +1 -0
- package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js +2 -0
- package/es2022/src/interfaces/selectBusOptions/selectBusOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js +2 -0
- package/es2022/src/interfaces/selectCssClasses/selectCssClasses.interface.js.map +1 -0
- package/es2022/src/interfaces/selectEvent/selectEvent.interface.js +2 -0
- package/es2022/src/interfaces/selectEvent/selectEvent.interface.js.map +1 -0
- package/es2022/src/interfaces/selectEvents/selectEvents.interface.js +2 -0
- package/es2022/src/interfaces/selectEvents/selectEvents.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOption/selectOption.interface.js +2 -0
- package/es2022/src/interfaces/selectOption/selectOption.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js +2 -0
- package/es2022/src/interfaces/selectOptionGroup/selectOptionGroup.interface.js.map +1 -0
- package/es2022/src/interfaces/selectOptions/selectOptions.interface.js +2 -0
- package/es2022/src/interfaces/selectOptions/selectOptions.interface.js.map +1 -0
- package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js +2 -0
- package/es2022/src/interfaces/selectPlugin/selectPlugin.interface.js.map +1 -0
- package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js +2 -0
- package/es2022/src/interfaces/selectPluginTypes/selectPluginTypes.interface.js.map +1 -0
- package/es2022/src/interfaces/templateGatherer/templateGatherer.interface.js.map +1 -0
- package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js +2 -0
- package/es2022/src/interfaces/visualPluginOptions/visualPluginOptions.interface.js.map +1 -0
- package/es2022/src/misc/classes/index.js +3 -0
- package/es2022/src/misc/classes/index.js.map +1 -0
- package/es2022/src/misc/{pluginBus/pluginBus.js → classes/selectBus/selectBus.js} +17 -8
- package/es2022/src/misc/classes/selectBus/selectBus.js.map +1 -0
- package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js +163 -0
- package/es2022/src/misc/classes/selectPluginInstances/selectPluginInstances.js.map +1 -0
- package/es2022/src/misc/enums.js +43 -0
- package/es2022/src/misc/enums.js.map +1 -0
- package/es2022/src/misc/extensions/getValue.js +16 -11
- package/es2022/src/misc/extensions/getValue.js.map +1 -1
- package/es2022/src/misc/extensions/index.js +6 -5
- package/es2022/src/misc/extensions/index.js.map +1 -1
- package/es2022/src/misc/extensions/onFocus.js +14 -9
- package/es2022/src/misc/extensions/onFocus.js.map +1 -1
- package/es2022/src/misc/extensions/setReadonly.js +22 -17
- package/es2022/src/misc/extensions/setReadonly.js.map +1 -1
- package/es2022/src/misc/extensions/setValue.js +17 -12
- package/es2022/src/misc/extensions/setValue.js.map +1 -1
- package/es2022/src/misc/extensions/valueChange.js +17 -11
- package/es2022/src/misc/extensions/valueChange.js.map +1 -1
- package/es2022/src/misc/ngSelectOptions.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js +119 -82
- package/es2022/src/misc/optionsGatherer/codeOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js +31 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js +178 -117
- package/es2022/src/misc/optionsGatherer/dynamicOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js +155 -109
- package/es2022/src/misc/optionsGatherer/excludingOptionsGatherer.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js +55 -1
- package/es2022/src/misc/optionsGatherer/optionsGatherer.interface.js.map +1 -1
- package/es2022/src/misc/optionsGatherer/types.js +4 -3
- package/es2022/src/misc/optionsGatherer/types.js.map +1 -1
- package/es2022/src/misc/providers.js +102 -0
- package/es2022/src/misc/providers.js.map +1 -0
- package/es2022/src/misc/tokens.js +78 -0
- package/es2022/src/misc/tokens.js.map +1 -0
- package/es2022/src/misc/types.js +1 -33
- package/es2022/src/misc/types.js.map +1 -1
- package/es2022/src/modules/index.js +2 -0
- package/es2022/src/modules/index.js.map +1 -0
- package/es2022/src/modules/ngSelect.module.js +31 -75
- package/es2022/src/modules/ngSelect.module.js.map +1 -1
- package/es2022/src/modules/ngSelectEdit.module.js +39 -50
- package/es2022/src/modules/ngSelectEdit.module.js.map +1 -1
- package/es2022/src/pipes/getPlugin/getPlugin.pipe.js +17 -0
- package/es2022/src/pipes/getPlugin/getPlugin.pipe.js.map +1 -0
- package/es2022/src/pipes/index.js +4 -0
- package/es2022/src/pipes/index.js.map +1 -0
- package/es2022/src/pipes/{ngSelectHasValue.pipe.js → selectHasValue/selectHasValue.pipe.js} +7 -7
- package/es2022/src/pipes/selectHasValue/selectHasValue.pipe.js.map +1 -0
- package/es2022/src/pipes/selectValue/selectValue.pipe.js +31 -0
- package/es2022/src/pipes/selectValue/selectValue.pipe.js.map +1 -0
- package/es2022/src/plugins/index.js +10 -0
- package/es2022/src/plugins/index.js.map +1 -0
- package/es2022/src/plugins/interactions/index.js +2 -0
- package/es2022/src/plugins/interactions/index.js.map +1 -0
- package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js +36 -0
- package/es2022/src/plugins/interactions/noInteractions/noInteractions.component.js.map +1 -0
- package/es2022/src/plugins/keyboardHandler/index.js +1 -3
- package/es2022/src/plugins/keyboardHandler/index.js.map +1 -1
- package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js +36 -0
- package/es2022/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.js.map +1 -0
- package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js +36 -0
- package/es2022/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.js.map +1 -0
- package/es2022/src/plugins/liveSearch/index.js +2 -4
- package/es2022/src/plugins/liveSearch/index.js.map +1 -1
- package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js +36 -0
- package/es2022/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.js.map +1 -0
- package/es2022/src/plugins/normalState/index.js +1 -3
- package/es2022/src/plugins/normalState/index.js.map +1 -1
- package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js +36 -0
- package/es2022/src/plugins/normalState/simpleNormalState/simpleNormalState.component.js.map +1 -0
- package/es2022/src/plugins/optionsHandler/index.js +2 -0
- package/es2022/src/plugins/optionsHandler/index.js.map +1 -0
- package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js +50 -0
- package/es2022/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.js.map +1 -0
- package/es2022/src/plugins/popup/index.js +1 -3
- package/es2022/src/plugins/popup/index.js.map +1 -1
- package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js +36 -0
- package/es2022/src/plugins/popup/simplePopup/simplePopup.component.js.map +1 -0
- package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js +36 -0
- package/es2022/src/plugins/positioner/basicPositioner/basicPositioner.component.js.map +1 -0
- package/es2022/src/plugins/positioner/index.js +1 -3
- package/es2022/src/plugins/positioner/index.js.map +1 -1
- package/es2022/src/plugins/readonlyState/index.js +1 -1
- package/es2022/src/plugins/readonlyState/index.js.map +1 -1
- package/es2022/src/plugins/valueHandler/index.js +1 -4
- package/es2022/src/plugins/valueHandler/index.js.map +1 -1
- package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js +81 -0
- package/es2022/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.js.map +1 -0
- package/extensions/src/extensions/getValue.d.ts +0 -1
- package/extensions/src/extensions/getValue.d.ts.map +1 -1
- package/extensions/src/extensions/onFocus.d.ts +0 -1
- package/extensions/src/extensions/onFocus.d.ts.map +1 -1
- package/extensions/src/extensions/patchOptions.d.ts +0 -6
- package/extensions/src/extensions/patchOptions.d.ts.map +1 -1
- package/extensions/src/extensions/reinitializeOptions.d.ts +0 -6
- package/extensions/src/extensions/reinitializeOptions.d.ts.map +1 -1
- package/extensions/src/extensions/setReadonly.d.ts +0 -1
- package/extensions/src/extensions/setReadonly.d.ts.map +1 -1
- package/extensions/src/extensions/setValue.d.ts +0 -1
- package/extensions/src/extensions/setValue.d.ts.map +1 -1
- package/extensions/src/extensions/valueChange.d.ts +0 -1
- package/extensions/src/extensions/valueChange.d.ts.map +1 -1
- package/extensions/src/index.d.ts +1 -7
- package/extensions/src/index.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts +0 -46
- package/material/src/components/basicDialogPopup/basicDialogPopup.component.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts +0 -23
- package/material/src/components/basicDialogPopup/basicDialogPopup.interface.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/index.d.ts +0 -1
- package/material/src/components/basicDialogPopup/index.d.ts.map +1 -1
- package/material/src/components/basicDialogPopup/types.d.ts +0 -1
- package/material/src/components/basicDialogPopup/types.d.ts.map +1 -1
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts +0 -26
- package/material/src/directives/dialogPopup/dialogPopup.directive.d.ts.map +1 -1
- package/material/src/index.d.ts +1 -7
- package/material/src/index.d.ts.map +1 -1
- package/material/src/modules/dialogPopup.module.d.ts +0 -14
- package/material/src/modules/dialogPopup.module.d.ts.map +1 -1
- package/material/src/modules/virtualEditPopup.module.d.ts +0 -12
- package/material/src/modules/virtualEditPopup.module.d.ts.map +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts +0 -82
- package/material/src/plugins/popup/dialog/dialogPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts +0 -59
- package/material/src/plugins/popup/dialog/dialogPopup.interface.d.ts.map +1 -1
- package/material/src/plugins/popup/index.d.ts +1 -2
- package/material/src/plugins/popup/index.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts +0 -29
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.component.d.ts.map +1 -1
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts +0 -16
- package/material/src/plugins/popup/virtualEdit/virtualEditPopup.interface.d.ts.map +1 -1
- package/package.json +27 -19
- package/src/components/index.d.ts +4 -0
- package/src/components/index.d.ts.map +1 -0
- package/src/components/option/option.component.d.ts +15 -14
- package/src/components/option/option.component.d.ts.map +1 -1
- package/src/components/optionGroup/optgroup.component.d.ts +25 -0
- package/src/components/optionGroup/optgroup.component.d.ts.map +1 -0
- package/src/components/select/select.component.css +5 -0
- package/src/components/select/select.component.d.ts +94 -179
- package/src/components/select/select.component.d.ts.map +1 -1
- package/src/components/select/select.component.html +10 -16
- package/src/decorators/index.d.ts +2 -0
- package/src/{components/select → decorators}/index.d.ts.map +1 -1
- package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts +5 -0
- package/src/decorators/mergeOptionsAsSignal/mergeOptionsAsSignal.decorator.d.ts.map +1 -0
- package/src/directives/index.d.ts +5 -0
- package/src/directives/index.d.ts.map +1 -0
- package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts +19 -0
- package/src/directives/normalStateTemplate/normalStateTemplate.directive.d.ts.map +1 -0
- package/src/directives/optionTemplate/optionTemplate.directive.d.ts +19 -0
- package/src/directives/optionTemplate/optionTemplate.directive.d.ts.map +1 -0
- package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts +12 -0
- package/src/directives/selectAbsolute/selectAbsolute.directive.d.ts.map +1 -0
- package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts +1 -0
- package/src/directives/selectControlValueAccessor/selectControlValueAccessor.directive.d.ts.map +1 -0
- package/src/directives/selectEdit/selectEdit.directive.d.ts +1 -0
- package/src/directives/selectEdit/selectEdit.directive.d.ts.map +1 -0
- package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts +1 -0
- package/src/directives/selectPlaceholder/selectPlaceholder.directive.d.ts.map +1 -0
- package/src/directives/withDirectAccess/withDirectAccess.directive.d.ts +9 -0
- package/src/directives/withDirectAccess/withDirectAccess.directive.d.ts.map +1 -0
- package/src/index.d.ts +8 -41
- package/src/index.d.ts.map +1 -1
- package/src/interfaces/index.d.ts +20 -0
- package/src/interfaces/index.d.ts.map +1 -0
- package/src/interfaces/initState/initState.interface.d.ts +10 -0
- package/src/interfaces/initState/initState.interface.d.ts.map +1 -0
- package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts +11 -0
- package/src/interfaces/normalStateContext/normalStateContext.interface.d.ts.map +1 -0
- package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts +12 -0
- package/src/interfaces/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -0
- package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts +21 -0
- package/src/interfaces/pluginDescription/pluginDescription.interface.d.ts.map +1 -0
- package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts +6 -0
- package/src/interfaces/pluginOptions/pluginOptions.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/index.d.ts +10 -0
- package/src/interfaces/plugins/index.d.ts.map +1 -0
- package/src/interfaces/plugins/interactions/interactions.interface.d.ts +13 -0
- package/src/interfaces/plugins/interactions/interactions.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts +13 -0
- package/src/interfaces/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts +13 -0
- package/src/interfaces/plugins/liveSearch/liveSearch.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/normalState/normalState.interface.d.ts +31 -0
- package/src/interfaces/plugins/normalState/normalState.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts +19 -0
- package/src/interfaces/plugins/optionsHandler/optionsHandler.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/popup/popup.interface.d.ts +13 -0
- package/src/interfaces/plugins/popup/popup.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/positioner/positioner.interface.d.ts +13 -0
- package/src/interfaces/plugins/positioner/positioner.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts +12 -0
- package/src/interfaces/plugins/readonlyState/readonlyState.interface.d.ts.map +1 -0
- package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts +23 -0
- package/src/interfaces/plugins/valueHandler/valueHandler.interface.d.ts.map +1 -0
- package/src/interfaces/popupContext/popupContext.interface.d.ts +16 -0
- package/src/interfaces/popupContext/popupContext.interface.d.ts.map +1 -0
- package/src/interfaces/selectApi/selectApi.interface.d.ts +50 -0
- package/src/interfaces/selectApi/selectApi.interface.d.ts.map +1 -0
- package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts +29 -0
- package/src/interfaces/selectBusOptions/selectBusOptions.interface.d.ts.map +1 -0
- package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts +6 -0
- package/src/interfaces/selectCssClasses/selectCssClasses.interface.d.ts.map +1 -0
- package/src/interfaces/selectEvent/selectEvent.interface.d.ts +20 -0
- package/src/interfaces/selectEvent/selectEvent.interface.d.ts.map +1 -0
- package/src/interfaces/selectEvents/selectEvents.interface.d.ts +37 -0
- package/src/interfaces/selectEvents/selectEvents.interface.d.ts.map +1 -0
- package/src/interfaces/selectOption/selectOption.interface.d.ts +33 -0
- package/src/interfaces/selectOption/selectOption.interface.d.ts.map +1 -0
- package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts +21 -0
- package/src/interfaces/selectOptionGroup/selectOptionGroup.interface.d.ts.map +1 -0
- package/src/interfaces/selectOptions/selectOptions.interface.d.ts +27 -0
- package/src/interfaces/selectOptions/selectOptions.interface.d.ts.map +1 -0
- package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts +33 -0
- package/src/interfaces/selectPlugin/selectPlugin.interface.d.ts.map +1 -0
- package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts +44 -0
- package/src/interfaces/selectPluginTypes/selectPluginTypes.interface.d.ts.map +1 -0
- package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts +17 -0
- package/src/interfaces/templateGatherer/templateGatherer.interface.d.ts.map +1 -0
- package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts +11 -0
- package/src/interfaces/visualPluginOptions/visualPluginOptions.interface.d.ts.map +1 -0
- package/src/misc/classes/index.d.ts +3 -0
- package/src/misc/classes/index.d.ts.map +1 -0
- package/src/misc/classes/selectBus/selectBus.d.ts +54 -0
- package/src/misc/classes/selectBus/selectBus.d.ts.map +1 -0
- package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts +90 -0
- package/src/misc/classes/selectPluginInstances/selectPluginInstances.d.ts.map +1 -0
- package/src/misc/enums.d.ts +42 -0
- package/src/misc/enums.d.ts.map +1 -0
- package/src/misc/extensions/getValue.d.ts +0 -6
- package/src/misc/extensions/getValue.d.ts.map +1 -1
- package/src/misc/extensions/index.d.ts +0 -5
- package/src/misc/extensions/index.d.ts.map +1 -1
- package/src/misc/extensions/onFocus.d.ts +0 -7
- package/src/misc/extensions/onFocus.d.ts.map +1 -1
- package/src/misc/extensions/setReadonly.d.ts +0 -7
- package/src/misc/extensions/setReadonly.d.ts.map +1 -1
- package/src/misc/extensions/setValue.d.ts +0 -7
- package/src/misc/extensions/setValue.d.ts.map +1 -1
- package/src/misc/extensions/valueChange.d.ts +0 -7
- package/src/misc/extensions/valueChange.d.ts.map +1 -1
- package/src/misc/ngSelectOptions.interface.d.ts +0 -71
- package/src/misc/ngSelectOptions.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts +0 -69
- package/src/misc/optionsGatherer/codeOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts +0 -85
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts +0 -28
- package/src/misc/optionsGatherer/dynamicOptionsGatherer.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts +0 -72
- package/src/misc/optionsGatherer/excludingOptionsGatherer.d.ts.map +1 -1
- package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts +0 -52
- package/src/misc/optionsGatherer/optionsGatherer.interface.d.ts.map +1 -1
- package/src/misc/optionsGatherer/types.d.ts +0 -3
- package/src/misc/optionsGatherer/types.d.ts.map +1 -1
- package/src/misc/providers.d.ts +54 -0
- package/src/misc/providers.d.ts.map +1 -0
- package/src/misc/tokens.d.ts +81 -0
- package/src/misc/tokens.d.ts.map +1 -0
- package/src/misc/types.d.ts +11 -31
- package/src/misc/types.d.ts.map +1 -1
- package/src/modules/index.d.ts +2 -0
- package/src/modules/index.d.ts.map +1 -0
- package/src/modules/ngSelect.module.d.ts +7 -20
- package/src/modules/ngSelect.module.d.ts.map +1 -1
- package/src/modules/ngSelectEdit.module.d.ts +0 -16
- package/src/modules/ngSelectEdit.module.d.ts.map +1 -1
- package/src/pipes/getPlugin/getPlugin.pipe.d.ts +25 -0
- package/src/pipes/getPlugin/getPlugin.pipe.d.ts.map +1 -0
- package/src/pipes/index.d.ts +4 -0
- package/src/pipes/index.d.ts.map +1 -0
- package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts +16 -0
- package/src/pipes/selectHasValue/selectHasValue.pipe.d.ts.map +1 -0
- package/src/pipes/selectValue/selectValue.pipe.d.ts +19 -0
- package/src/pipes/selectValue/selectValue.pipe.d.ts.map +1 -0
- package/src/plugins/index.d.ts +9 -0
- package/src/plugins/index.d.ts.map +1 -0
- package/src/plugins/interactions/index.d.ts +2 -0
- package/src/plugins/interactions/index.d.ts.map +1 -0
- package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts +28 -0
- package/src/plugins/interactions/noInteractions/noInteractions.component.d.ts.map +1 -0
- package/src/plugins/keyboardHandler/index.d.ts +1 -3
- package/src/plugins/keyboardHandler/index.d.ts.map +1 -1
- package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts +28 -0
- package/src/plugins/keyboardHandler/simpleKeyboardHandler/simpleKeyboardHandler.component.d.ts.map +1 -0
- package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts +28 -0
- package/src/plugins/liveSearch/filterLiveSearch/filterLiveSearch.component.d.ts.map +1 -0
- package/src/plugins/liveSearch/index.d.ts +2 -4
- package/src/plugins/liveSearch/index.d.ts.map +1 -1
- package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts +28 -0
- package/src/plugins/liveSearch/noLiveSearch/noLiveSearch.component.d.ts.map +1 -0
- package/src/plugins/normalState/index.d.ts +1 -3
- package/src/plugins/normalState/index.d.ts.map +1 -1
- package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts +28 -0
- package/src/plugins/normalState/simpleNormalState/simpleNormalState.component.d.ts.map +1 -0
- package/src/plugins/optionsHandler/index.d.ts +2 -0
- package/src/plugins/optionsHandler/index.d.ts.map +1 -0
- package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts +41 -0
- package/src/plugins/optionsHandler/noOptionsHandler/noOptionsHandler.component.d.ts.map +1 -0
- package/src/plugins/popup/index.d.ts +1 -3
- package/src/plugins/popup/index.d.ts.map +1 -1
- package/src/plugins/popup/simplePopup/simplePopup.component.d.ts +28 -0
- package/src/plugins/popup/simplePopup/simplePopup.component.d.ts.map +1 -0
- package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts +28 -0
- package/src/plugins/positioner/basicPositioner/basicPositioner.component.d.ts.map +1 -0
- package/src/plugins/positioner/index.d.ts +1 -3
- package/src/plugins/positioner/index.d.ts.map +1 -1
- package/src/plugins/readonlyState/index.d.ts +0 -1
- package/src/plugins/readonlyState/index.d.ts.map +1 -1
- package/src/plugins/valueHandler/index.d.ts +1 -4
- package/src/plugins/valueHandler/index.d.ts.map +1 -1
- package/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.d.ts +46 -0
- package/src/plugins/valueHandler/staticValueHandler/staticValueHandler.component.d.ts.map +1 -0
- package/styles/components/_grid.scss +9 -0
- package/styles/core/_functions.scss +10 -0
- package/styles/core/_misc.scss +146 -0
- package/styles/core/_mixins.scss +44 -0
- package/styles/core/_theme.scss +16 -0
- package/styles/index.scss +2 -0
- package/styles/themes/dark.scss +19 -0
- package/styles/themes/light.scss +19 -0
- package/version.bak +1 -1
- package/es2022/material/src/directives/types.js +0 -2
- package/es2022/material/src/directives/types.js.map +0 -1
- package/es2022/material/src/plugins/popup/components.js +0 -3
- package/es2022/material/src/plugins/popup/components.js.map +0 -1
- package/es2022/src/components/option/index.js +0 -3
- package/es2022/src/components/option/index.js.map +0 -1
- package/es2022/src/components/option/optgroup.component.js +0 -54
- package/es2022/src/components/option/optgroup.component.js.map +0 -1
- package/es2022/src/components/option/optgroup.interface.js +0 -2
- package/es2022/src/components/option/optgroup.interface.js.map +0 -1
- package/es2022/src/components/option/option.interface.js +0 -2
- package/es2022/src/components/option/option.interface.js.map +0 -1
- package/es2022/src/components/select/index.js +0 -2
- package/es2022/src/components/select/index.js.map +0 -1
- package/es2022/src/components/select/select.interface.js +0 -2
- package/es2022/src/components/select/select.interface.js.map +0 -1
- package/es2022/src/components/select/types.js +0 -6
- package/es2022/src/components/select/types.js.map +0 -1
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js +0 -25
- package/es2022/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.js.map +0 -1
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js +0 -66
- package/es2022/src/directives/ngSelectEdit/ngSelectEdit.directive.js.map +0 -1
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js +0 -42
- package/es2022/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.js.map +0 -1
- package/es2022/src/index.ssr.js +0 -10
- package/es2022/src/index.ssr.js.map +0 -1
- package/es2022/src/misc/index.js +0 -6
- package/es2022/src/misc/index.js.map +0 -1
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js +0 -162
- package/es2022/src/misc/ngSelectControlValueAccessor.directive.js.map +0 -1
- package/es2022/src/misc/plugin.interface.js +0 -2
- package/es2022/src/misc/plugin.interface.js.map +0 -1
- package/es2022/src/misc/pluginBus/pluginBus.interface.js +0 -2
- package/es2022/src/misc/pluginBus/pluginBus.interface.js.map +0 -1
- package/es2022/src/misc/pluginBus/pluginBus.js.map +0 -1
- package/es2022/src/misc/templateGatherer.interface.js.map +0 -1
- package/es2022/src/modules/ngSelectDynamic.module.js +0 -20
- package/es2022/src/modules/ngSelectDynamic.module.js.map +0 -1
- package/es2022/src/pipes/ngSelectHasValue.pipe.js.map +0 -1
- package/es2022/src/pipes/ngSelectValue.pipe.js +0 -31
- package/es2022/src/pipes/ngSelectValue.pipe.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js +0 -146
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js +0 -2
- package/es2022/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/components.js +0 -3
- package/es2022/src/plugins/keyboardHandler/components.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js +0 -197
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js +0 -2
- package/es2022/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/keyboardHandler.interface.js.map +0 -1
- package/es2022/src/plugins/keyboardHandler/types.js +0 -10
- package/es2022/src/plugins/keyboardHandler/types.js.map +0 -1
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js +0 -164
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/basic/basicLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/components.js +0 -4
- package/es2022/src/plugins/liveSearch/components.js.map +0 -1
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js +0 -313
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/edit/editLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/liveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js +0 -65
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.component.js.map +0 -1
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js +0 -2
- package/es2022/src/plugins/liveSearch/no/noLiveSearch.interface.js.map +0 -1
- package/es2022/src/plugins/liveSearch/types.js +0 -10
- package/es2022/src/plugins/liveSearch/types.js.map +0 -1
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js +0 -58
- package/es2022/src/plugins/normalState/basic/basicNormalState.component.js.map +0 -1
- package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js +0 -2
- package/es2022/src/plugins/normalState/basic/basicNormalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/components.js +0 -4
- package/es2022/src/plugins/normalState/components.js.map +0 -1
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js +0 -88
- package/es2022/src/plugins/normalState/edit/editNormalState.component.js.map +0 -1
- package/es2022/src/plugins/normalState/edit/editNormalState.interface.js +0 -2
- package/es2022/src/plugins/normalState/edit/editNormalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/normalState.interface.js.map +0 -1
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js +0 -89
- package/es2022/src/plugins/normalState/normalStateAbstract.component.js.map +0 -1
- package/es2022/src/plugins/normalState/types.js +0 -10
- package/es2022/src/plugins/normalState/types.js.map +0 -1
- package/es2022/src/plugins/popup/basic/basicPopup.component.js +0 -62
- package/es2022/src/plugins/popup/basic/basicPopup.component.js.map +0 -1
- package/es2022/src/plugins/popup/basic/basicPopup.interface.js +0 -2
- package/es2022/src/plugins/popup/basic/basicPopup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/component.js +0 -4
- package/es2022/src/plugins/popup/component.js.map +0 -1
- package/es2022/src/plugins/popup/edit/editPopup.component.js +0 -85
- package/es2022/src/plugins/popup/edit/editPopup.component.js.map +0 -1
- package/es2022/src/plugins/popup/edit/editPopup.interface.js +0 -2
- package/es2022/src/plugins/popup/edit/editPopup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/popup.interface.js.map +0 -1
- package/es2022/src/plugins/popup/popupAbstract.component.js +0 -200
- package/es2022/src/plugins/popup/popupAbstract.component.js.map +0 -1
- package/es2022/src/plugins/popup/types.js +0 -10
- package/es2022/src/plugins/popup/types.js.map +0 -1
- package/es2022/src/plugins/positioner/components.js +0 -3
- package/es2022/src/plugins/positioner/components.js.map +0 -1
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js +0 -160
- package/es2022/src/plugins/positioner/default/defaultPositioner.component.js.map +0 -1
- package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js +0 -2
- package/es2022/src/plugins/positioner/default/defaultPositioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/no/noPositioner.component.js +0 -78
- package/es2022/src/plugins/positioner/no/noPositioner.component.js.map +0 -1
- package/es2022/src/plugins/positioner/no/noPositioner.interface.js +0 -2
- package/es2022/src/plugins/positioner/no/noPositioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/positioner.interface.js.map +0 -1
- package/es2022/src/plugins/positioner/types.js +0 -10
- package/es2022/src/plugins/positioner/types.js.map +0 -1
- package/es2022/src/plugins/readonlyState/readonlyState.interface.js.map +0 -1
- package/es2022/src/plugins/readonlyState/types.js +0 -10
- package/es2022/src/plugins/readonlyState/types.js.map +0 -1
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js +0 -159
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.component.js.map +0 -1
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js +0 -2
- package/es2022/src/plugins/valueHandler/basic/basicValueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/components.js +0 -3
- package/es2022/src/plugins/valueHandler/components.js.map +0 -1
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js +0 -179
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.js.map +0 -1
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js +0 -2
- package/es2022/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/types.js +0 -10
- package/es2022/src/plugins/valueHandler/types.js.map +0 -1
- package/es2022/src/plugins/valueHandler/valueHandler.interface.js.map +0 -1
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js +0 -145
- package/es2022/src/plugins/valueHandler/valueHandlerBase.js.map +0 -1
- package/material/src/directives/types.d.ts +0 -2
- package/material/src/directives/types.d.ts.map +0 -1
- package/material/src/plugins/popup/components.d.ts +0 -3
- package/material/src/plugins/popup/components.d.ts.map +0 -1
- package/src/components/option/index.d.ts +0 -3
- package/src/components/option/index.d.ts.map +0 -1
- package/src/components/option/optgroup.component.d.ts +0 -37
- package/src/components/option/optgroup.component.d.ts.map +0 -1
- package/src/components/option/optgroup.interface.d.ts +0 -20
- package/src/components/option/optgroup.interface.d.ts.map +0 -1
- package/src/components/option/option.interface.d.ts +0 -31
- package/src/components/option/option.interface.d.ts.map +0 -1
- package/src/components/select/index.d.ts +0 -2
- package/src/components/select/select.interface.d.ts +0 -68
- package/src/components/select/select.interface.d.ts.map +0 -1
- package/src/components/select/types.d.ts +0 -7
- package/src/components/select/types.d.ts.map +0 -1
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts +0 -11
- package/src/directives/ngSelectAbsolute/ngSelectAbsolute.directive.d.ts.map +0 -1
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts +0 -11
- package/src/directives/ngSelectEdit/ngSelectEdit.directive.d.ts.map +0 -1
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts +0 -21
- package/src/directives/ngSelectPlaceholder/ngSelectPlaceholder.directive.d.ts.map +0 -1
- package/src/index.ssr.d.ts +0 -1
- package/src/index.ssr.d.ts.map +0 -1
- package/src/misc/index.d.ts +0 -6
- package/src/misc/index.d.ts.map +0 -1
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts +0 -63
- package/src/misc/ngSelectControlValueAccessor.directive.d.ts.map +0 -1
- package/src/misc/plugin.interface.d.ts +0 -108
- package/src/misc/plugin.interface.d.ts.map +0 -1
- package/src/misc/pluginBus/pluginBus.d.ts +0 -49
- package/src/misc/pluginBus/pluginBus.d.ts.map +0 -1
- package/src/misc/pluginBus/pluginBus.interface.d.ts +0 -36
- package/src/misc/pluginBus/pluginBus.interface.d.ts.map +0 -1
- package/src/misc/templateGatherer.interface.d.ts +0 -17
- package/src/misc/templateGatherer.interface.d.ts.map +0 -1
- package/src/modules/ngSelectDynamic.module.d.ts +0 -11
- package/src/modules/ngSelectDynamic.module.d.ts.map +0 -1
- package/src/pipes/ngSelectHasValue.pipe.d.ts +0 -16
- package/src/pipes/ngSelectHasValue.pipe.d.ts.map +0 -1
- package/src/pipes/ngSelectValue.pipe.d.ts +0 -19
- package/src/pipes/ngSelectValue.pipe.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts +0 -58
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.component.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/basic/basicKeyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/components.d.ts +0 -3
- package/src/plugins/keyboardHandler/components.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts +0 -68
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.component.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/edit/editKeyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts +0 -12
- package/src/plugins/keyboardHandler/keyboardHandler.interface.d.ts.map +0 -1
- package/src/plugins/keyboardHandler/types.d.ts +0 -11
- package/src/plugins/keyboardHandler/types.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.css +0 -11
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts +0 -98
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/basic/basicLiveSearch.component.html +0 -5
- package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts +0 -29
- package/src/plugins/liveSearch/basic/basicLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/components.d.ts +0 -4
- package/src/plugins/liveSearch/components.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.css +0 -13
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts +0 -141
- package/src/plugins/liveSearch/edit/editLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/edit/editLiveSearch.component.html +0 -13
- package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts +0 -37
- package/src/plugins/liveSearch/edit/editLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/liveSearch.interface.d.ts +0 -38
- package/src/plugins/liveSearch/liveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts +0 -54
- package/src/plugins/liveSearch/no/noLiveSearch.component.d.ts.map +0 -1
- package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts +0 -12
- package/src/plugins/liveSearch/no/noLiveSearch.interface.d.ts.map +0 -1
- package/src/plugins/liveSearch/types.d.ts +0 -11
- package/src/plugins/liveSearch/types.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.css +0 -38
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts +0 -17
- package/src/plugins/normalState/basic/basicNormalState.component.d.ts.map +0 -1
- package/src/plugins/normalState/basic/basicNormalState.component.html +0 -6
- package/src/plugins/normalState/basic/basicNormalState.interface.d.ts +0 -29
- package/src/plugins/normalState/basic/basicNormalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/components.d.ts +0 -4
- package/src/plugins/normalState/components.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.css +0 -77
- package/src/plugins/normalState/edit/editNormalState.component.d.ts +0 -26
- package/src/plugins/normalState/edit/editNormalState.component.d.ts.map +0 -1
- package/src/plugins/normalState/edit/editNormalState.component.html +0 -19
- package/src/plugins/normalState/edit/editNormalState.interface.d.ts +0 -53
- package/src/plugins/normalState/edit/editNormalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/normalState.interface.d.ts +0 -49
- package/src/plugins/normalState/normalState.interface.d.ts.map +0 -1
- package/src/plugins/normalState/normalStateAbstract.component.d.ts +0 -65
- package/src/plugins/normalState/normalStateAbstract.component.d.ts.map +0 -1
- package/src/plugins/normalState/types.d.ts +0 -11
- package/src/plugins/normalState/types.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.css +0 -61
- package/src/plugins/popup/basic/basicPopup.component.d.ts +0 -17
- package/src/plugins/popup/basic/basicPopup.component.d.ts.map +0 -1
- package/src/plugins/popup/basic/basicPopup.component.html +0 -21
- package/src/plugins/popup/basic/basicPopup.interface.d.ts +0 -33
- package/src/plugins/popup/basic/basicPopup.interface.d.ts.map +0 -1
- package/src/plugins/popup/component.d.ts +0 -4
- package/src/plugins/popup/component.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.css +0 -61
- package/src/plugins/popup/edit/editPopup.component.d.ts +0 -32
- package/src/plugins/popup/edit/editPopup.component.d.ts.map +0 -1
- package/src/plugins/popup/edit/editPopup.component.html +0 -19
- package/src/plugins/popup/edit/editPopup.interface.d.ts +0 -33
- package/src/plugins/popup/edit/editPopup.interface.d.ts.map +0 -1
- package/src/plugins/popup/popup.interface.d.ts +0 -52
- package/src/plugins/popup/popup.interface.d.ts.map +0 -1
- package/src/plugins/popup/popupAbstract.component.d.ts +0 -130
- package/src/plugins/popup/popupAbstract.component.d.ts.map +0 -1
- package/src/plugins/popup/types.d.ts +0 -11
- package/src/plugins/popup/types.d.ts.map +0 -1
- package/src/plugins/positioner/components.d.ts +0 -3
- package/src/plugins/positioner/components.d.ts.map +0 -1
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts +0 -89
- package/src/plugins/positioner/default/defaultPositioner.component.d.ts.map +0 -1
- package/src/plugins/positioner/default/defaultPositioner.interface.d.ts +0 -12
- package/src/plugins/positioner/default/defaultPositioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/no/noPositioner.component.d.ts +0 -50
- package/src/plugins/positioner/no/noPositioner.component.d.ts.map +0 -1
- package/src/plugins/positioner/no/noPositioner.interface.d.ts +0 -12
- package/src/plugins/positioner/no/noPositioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/positioner.interface.d.ts +0 -22
- package/src/plugins/positioner/positioner.interface.d.ts.map +0 -1
- package/src/plugins/positioner/types.d.ts +0 -11
- package/src/plugins/positioner/types.d.ts.map +0 -1
- package/src/plugins/readonlyState/readonlyState.interface.d.ts +0 -12
- package/src/plugins/readonlyState/readonlyState.interface.d.ts.map +0 -1
- package/src/plugins/readonlyState/types.d.ts +0 -11
- package/src/plugins/readonlyState/types.d.ts.map +0 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts +0 -51
- package/src/plugins/valueHandler/basic/basicValueHandler.component.d.ts.map +0 -1
- package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts +0 -12
- package/src/plugins/valueHandler/basic/basicValueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/components.d.ts +0 -3
- package/src/plugins/valueHandler/components.d.ts.map +0 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts +0 -52
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.component.d.ts.map +0 -1
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts +0 -21
- package/src/plugins/valueHandler/dynamic/dynamicValueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/types.d.ts +0 -11
- package/src/plugins/valueHandler/types.d.ts.map +0 -1
- package/src/plugins/valueHandler/valueHandler.interface.d.ts +0 -31
- package/src/plugins/valueHandler/valueHandler.interface.d.ts.map +0 -1
- package/src/plugins/valueHandler/valueHandlerBase.d.ts +0 -115
- package/src/plugins/valueHandler/valueHandlerBase.d.ts.map +0 -1
- /package/es2022/src/{plugins → interfaces/plugins}/keyboardHandler/keyboardHandler.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/liveSearch/liveSearch.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/normalState/normalState.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/popup/popup.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/positioner/positioner.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/readonlyState/readonlyState.interface.js +0 -0
- /package/es2022/src/{plugins → interfaces/plugins}/valueHandler/valueHandler.interface.js +0 -0
- /package/es2022/src/{misc → interfaces/templateGatherer}/templateGatherer.interface.js +0 -0
|
@@ -1,145 +0,0 @@
|
|
|
1
|
-
import { Directive, ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { NORMAL_STATE } from '../normalState/types';
|
|
3
|
-
import { PluginBus } from '../../misc/pluginBus/pluginBus';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
import * as i1 from "../../misc/pluginBus/pluginBus";
|
|
6
|
-
/**
|
|
7
|
-
* Base class for value handlers
|
|
8
|
-
*/
|
|
9
|
-
export class ValueHandlerBase {
|
|
10
|
-
/**
|
|
11
|
-
* Current selected value of NgSelect
|
|
12
|
-
*/
|
|
13
|
-
get value() {
|
|
14
|
-
if (this.selectedOptions) {
|
|
15
|
-
if (Array.isArray(this.selectedOptions)) {
|
|
16
|
-
return this.selectedOptions.map(opt => opt.value);
|
|
17
|
-
}
|
|
18
|
-
else {
|
|
19
|
-
return this.selectedOptions.value;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
return null;
|
|
23
|
-
}
|
|
24
|
-
//######################### protected properties #########################
|
|
25
|
-
/**
|
|
26
|
-
* Function of value comparer that is used for comparison of values
|
|
27
|
-
*/
|
|
28
|
-
get valueComparer() {
|
|
29
|
-
return this.pluginBus?.selectOptions?.valueComparer;
|
|
30
|
-
}
|
|
31
|
-
/**
|
|
32
|
-
* Method that is used for filtering when live search is running on static data
|
|
33
|
-
*/
|
|
34
|
-
get liveSearchFilter() {
|
|
35
|
-
return this.pluginBus?.selectOptions?.liveSearchFilter;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Normalizer used for normalizing values
|
|
39
|
-
*/
|
|
40
|
-
get normalizer() {
|
|
41
|
-
return this.pluginBus?.selectOptions?.normalizer;
|
|
42
|
-
}
|
|
43
|
-
//######################### constructor #########################
|
|
44
|
-
constructor(ngSelectPlugins, pluginElement, pluginBus) {
|
|
45
|
-
this.ngSelectPlugins = ngSelectPlugins;
|
|
46
|
-
this.pluginElement = pluginElement;
|
|
47
|
-
this.pluginBus = pluginBus;
|
|
48
|
-
/**
|
|
49
|
-
* Occurs when value of NgSelect changes
|
|
50
|
-
*/
|
|
51
|
-
this.valueChange = new EventEmitter();
|
|
52
|
-
/**
|
|
53
|
-
* Cancels, removes option from selected options
|
|
54
|
-
* @param option - Option to be canceled
|
|
55
|
-
*/
|
|
56
|
-
this._cancelValue = (option) => {
|
|
57
|
-
if (Array.isArray(this.selectedOptions)) {
|
|
58
|
-
const index = this.selectedOptions.indexOf(option);
|
|
59
|
-
if (index >= 0) {
|
|
60
|
-
this.selectedOptions.splice(index, 1);
|
|
61
|
-
this.selectedOptions = [...this.selectedOptions];
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
else {
|
|
65
|
-
if (this.selectedOptions == option) {
|
|
66
|
-
this.selectedOptions = null;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
this._clearSelected();
|
|
70
|
-
this._markValueAsSelected();
|
|
71
|
-
this._normalState.invalidateVisuals();
|
|
72
|
-
this.valueChange.emit();
|
|
73
|
-
};
|
|
74
|
-
}
|
|
75
|
-
//######################### public methods - implementation of OnDestroy #########################
|
|
76
|
-
/**
|
|
77
|
-
* Called when component is destroyed
|
|
78
|
-
*/
|
|
79
|
-
ngOnDestroy() {
|
|
80
|
-
this._optionSelectSubscription?.unsubscribe();
|
|
81
|
-
this._optionSelectSubscription = null;
|
|
82
|
-
this._optionsChangeSubscription?.unsubscribe();
|
|
83
|
-
this._optionsChangeSubscription = null;
|
|
84
|
-
this._optionCancelSubscription?.unsubscribe();
|
|
85
|
-
this._optionCancelSubscription = null;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
89
|
-
*/
|
|
90
|
-
initialize() {
|
|
91
|
-
if (this._optionsGatherer && this._optionsGatherer != this.pluginBus?.selectOptions?.optionsGatherer) {
|
|
92
|
-
this._optionsChangeSubscription.unsubscribe();
|
|
93
|
-
this._optionsChangeSubscription = null;
|
|
94
|
-
this._optionsGatherer = null;
|
|
95
|
-
}
|
|
96
|
-
if (!this._optionsGatherer) {
|
|
97
|
-
this._optionsGatherer = this.pluginBus?.selectOptions?.optionsGatherer;
|
|
98
|
-
this._optionsChangeSubscription = this._optionsGatherer.optionsChange.subscribe(() => this._loadOptions());
|
|
99
|
-
}
|
|
100
|
-
if (!this._optionSelectSubscription) {
|
|
101
|
-
this._optionSelectSubscription = this.pluginBus.optionSelect.subscribe(this._setValue);
|
|
102
|
-
}
|
|
103
|
-
if (!this._optionCancelSubscription) {
|
|
104
|
-
this._optionCancelSubscription = this.pluginBus.optionCancel.subscribe(this._cancelValue);
|
|
105
|
-
}
|
|
106
|
-
const normalState = this.ngSelectPlugins[NORMAL_STATE];
|
|
107
|
-
this._normalState = normalState;
|
|
108
|
-
this._loadOptions();
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
112
|
-
*/
|
|
113
|
-
initOptions() {
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* Explicitly runs invalidation of content (change detection)
|
|
117
|
-
*/
|
|
118
|
-
invalidateVisuals() {
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Clears all selected values
|
|
122
|
-
*/
|
|
123
|
-
_clearSelected() {
|
|
124
|
-
this._optionsGatherer.options.forEach((option) => option.selected = false);
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Marks current value as selected
|
|
128
|
-
*/
|
|
129
|
-
_markValueAsSelected() {
|
|
130
|
-
if (this.selectedOptions) {
|
|
131
|
-
if (Array.isArray(this.selectedOptions)) {
|
|
132
|
-
this.selectedOptions.forEach((option) => option.selected = true);
|
|
133
|
-
}
|
|
134
|
-
else {
|
|
135
|
-
this.selectedOptions.selected = true;
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ValueHandlerBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive }); }
|
|
140
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.3", type: ValueHandlerBase, isStandalone: true, ngImport: i0 }); }
|
|
141
|
-
}
|
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.3", ngImport: i0, type: ValueHandlerBase, decorators: [{
|
|
143
|
-
type: Directive
|
|
144
|
-
}], ctorParameters: () => [{ type: undefined }, { type: i0.ElementRef }, { type: i1.PluginBus }] });
|
|
145
|
-
//# sourceMappingURL=valueHandlerBase.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"valueHandlerBase.js","sourceRoot":"","sources":["../../../../src/plugins/valueHandler/valueHandlerBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,YAAY,EAAY,MAAM,eAAe,CAAC;AAO7E,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAC;AAElD,OAAO,EAAC,SAAS,EAAC,MAAM,gCAAgC,CAAC;;;AAEzD;;GAEG;AAEH,MAAM,OAAgB,gBAAgB;IAmDlC;;OAEG;IACH,IAAW,KAAK;QAEZ,IAAG,IAAI,CAAC,eAAe,EACvB,CAAC;YACG,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,EACtC,CAAC;gBACG,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YACtD,CAAC;iBAED,CAAC;gBACG,OAAO,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC;YACtC,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,0EAA0E;IAE1E;;OAEG;IACH,IAAc,aAAa;QAEvB,OAAO,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,aAAa,CAAC;IACxD,CAAC;IAED;;OAEG;IACH,IAAc,gBAAgB;QAE1B,OAAO,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,gBAAgB,CAAC;IAC3D,CAAC;IAED;;OAEG;IACH,IAAc,UAAU;QAEpB,OAAO,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,UAAU,CAAC;IACrD,CAAC;IAED,iEAAiE;IACjE,YAAmB,eAAwC,EACxC,aAAyB,EACzB,SAA4B;QAF5B,oBAAe,GAAf,eAAe,CAAyB;QACxC,kBAAa,GAAb,aAAa,CAAY;QACzB,cAAS,GAAT,SAAS,CAAmB;QA3D/C;;WAEG;QACI,gBAAW,GAAuB,IAAI,YAAY,EAAQ,CAAC;QA8IlE;;;WAGG;QACO,iBAAY,GAAG,CAAC,MAA+B,EAAQ,EAAE;YAE/D,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,EACtC,CAAC;gBACG,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC;gBAEnD,IAAG,KAAK,IAAI,CAAC,EACb,CAAC;oBACG,IAAI,CAAC,eAAe,CAAC,MAAM,CAAC,KAAK,EAAE,CAAC,CAAC,CAAC;oBACtC,IAAI,CAAC,eAAe,GAAG,CAAC,GAAG,IAAI,CAAC,eAAe,CAAC,CAAC;gBACrD,CAAC;YACL,CAAC;iBAED,CAAC;gBACG,IAAG,IAAI,CAAC,eAAe,IAAI,MAAM,EACjC,CAAC;oBACG,IAAI,CAAC,eAAe,GAAG,IAAI,CAAC;gBAChC,CAAC;YACL,CAAC;YAED,IAAI,CAAC,cAAc,EAAE,CAAC;YACtB,IAAI,CAAC,oBAAoB,EAAE,CAAC;YAE5B,IAAI,CAAC,YAAY,CAAC,iBAAiB,EAAE,CAAC;YACtC,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;QAC5B,CAAC,CAAA;IAjHD,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,yBAAyB,EAAE,WAAW,EAAE,CAAC;QAC9C,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC;QAEtC,IAAI,CAAC,0BAA0B,EAAE,WAAW,EAAE,CAAC;QAC/C,IAAI,CAAC,0BAA0B,GAAG,IAAI,CAAC;QAEvC,IAAI,CAAC,yBAAyB,EAAE,WAAW,EAAE,CAAC;QAC9C,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC;IAC1C,CAAC;IAUD;;OAEG;IACI,UAAU;QAEb,IAAG,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,eAAe,EACnG,CAAC;YACG,IAAI,CAAC,0BAA0B,CAAC,WAAW,EAAE,CAAC;YAC9C,IAAI,CAAC,0BAA0B,GAAG,IAAI,CAAC;YAEvC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;QACjC,CAAC;QAED,IAAG,CAAC,IAAI,CAAC,gBAAgB,EACzB,CAAC;YACG,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,SAAS,EAAE,aAAa,EAAE,eAAe,CAAC;YAEvE,IAAI,CAAC,0BAA0B,GAAG,IAAI,CAAC,gBAAgB,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC;QAC/G,CAAC;QAED,IAAG,CAAC,IAAI,CAAC,yBAAyB,EAClC,CAAC;YACG,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3F,CAAC;QAED,IAAG,CAAC,IAAI,CAAC,yBAAyB,EAClC,CAAC;YACG,IAAI,CAAC,yBAAyB,GAAG,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QAC9F,CAAC;QAED,MAAM,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,YAAY,CAAgB,CAAC;QACtE,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC;QAEhC,IAAI,CAAC,YAAY,EAAE,CAAC;IACxB,CAAC;IAED;;OAEG;IACI,WAAW;IAElB,CAAC;IAED;;OAEG;IACI,iBAAiB;IAExB,CAAC;IAwCD;;OAEG;IACO,cAAc;QAEpB,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,MAA+B,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;IACxG,CAAC;IAED;;OAEG;IACO,oBAAoB;QAE1B,IAAG,IAAI,CAAC,eAAe,EACvB,CAAC;YACG,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,eAAe,CAAC,EACtC,CAAC;gBACG,IAAI,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,MAA+B,EAAE,EAAE,CAAC,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC,CAAC;YAC9F,CAAC;iBAED,CAAC;gBACI,IAAI,CAAC,eAA2C,CAAC,QAAQ,GAAG,IAAI,CAAC;YACtE,CAAC;QACL,CAAC;IACL,CAAC;8GAjPiB,gBAAgB;kGAAhB,gBAAgB;;2FAAhB,gBAAgB;kBADrC,SAAS","sourcesContent":["import {Directive, ElementRef, EventEmitter, OnDestroy} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {NgSelectPlugin, OptionsGatherer, CompareValueFunc, LiveSearchFilter, NormalizeFunc} from '../../misc';\nimport {NgSelectPluginInstances} from '../../components/select';\nimport {ɵNgSelectOption, NgSelectOption} from '../../components/option';\nimport {NormalState} from '../normalState';\nimport {NORMAL_STATE} from '../normalState/types';\nimport {ValueHandler, ValueHandlerOptions} from './valueHandler.interface';\nimport {PluginBus} from '../../misc/pluginBus/pluginBus';\n\n/**\n * Base class for value handlers\n */\n@Directive()\nexport abstract class ValueHandlerBase<TValue = any, TOptions extends ValueHandlerOptions = any> implements ValueHandler<TValue>, NgSelectPlugin<TOptions, TValue>, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Options for NgSelect plugin\n */\n protected _options: TOptions;\n\n /**\n * Normal state that is used\n */\n protected _normalState: NormalState;\n\n /**\n * Subscription for option selection\n */\n protected _optionSelectSubscription: Subscription;\n\n /**\n * Subscription for option cancelation\n */\n protected _optionCancelSubscription: Subscription;\n\n /**\n * Subscription for changes of options in options gatherer\n */\n protected _optionsChangeSubscription: Subscription;\n\n /**\n * Instance of previous options gatherer, that is used for obtaining available options\n */\n protected _optionsGatherer: OptionsGatherer<TValue>;\n\n //######################### public properties - implementation of DynamicValueHandler #########################\n\n /**\n * Options for NgSelect plugin\n */\n public abstract options: TOptions;\n\n /**\n * Occurs when value of NgSelect changes\n */\n public valueChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Current value of NgSelect\n */\n public selectedOptions: NgSelectOption<TValue>|NgSelectOption<TValue>[];\n\n /**\n * Current selected value of NgSelect\n */\n public get value(): TValue|TValue[]\n {\n if(this.selectedOptions)\n {\n if(Array.isArray(this.selectedOptions))\n {\n return this.selectedOptions.map(opt => opt.value);\n }\n else\n {\n return this.selectedOptions.value;\n }\n }\n\n return null;\n }\n\n //######################### protected properties #########################\n\n /**\n * Function of value comparer that is used for comparison of values\n */\n protected get valueComparer(): CompareValueFunc<TValue>\n {\n return this.pluginBus?.selectOptions?.valueComparer;\n }\n\n /**\n * Method that is used for filtering when live search is running on static data\n */\n protected get liveSearchFilter(): LiveSearchFilter<TValue>\n {\n return this.pluginBus?.selectOptions?.liveSearchFilter;\n }\n\n /**\n * Normalizer used for normalizing values\n */\n protected get normalizer(): NormalizeFunc<TValue>\n {\n return this.pluginBus?.selectOptions?.normalizer;\n }\n\n //######################### constructor #########################\n constructor(public ngSelectPlugins: NgSelectPluginInstances,\n public pluginElement: ElementRef,\n public pluginBus: PluginBus<TValue>)\n {\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy()\n {\n this._optionSelectSubscription?.unsubscribe();\n this._optionSelectSubscription = null;\n\n this._optionsChangeSubscription?.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionCancelSubscription?.unsubscribe();\n this._optionCancelSubscription = null;\n }\n\n //######################### public methods - implementation of DynamicValueHandler #########################\n\n /**\n * Sets value for NgSelect\n * @param value - Value to be set\n */\n public abstract setValue(value:TValue|TValue[]): void;\n\n /**\n * Initialize plugin, to be ready to use, initialize communication with other plugins\n */\n public initialize()\n {\n if(this._optionsGatherer && this._optionsGatherer != this.pluginBus?.selectOptions?.optionsGatherer)\n {\n this._optionsChangeSubscription.unsubscribe();\n this._optionsChangeSubscription = null;\n\n this._optionsGatherer = null;\n }\n\n if(!this._optionsGatherer)\n {\n this._optionsGatherer = this.pluginBus?.selectOptions?.optionsGatherer;\n\n this._optionsChangeSubscription = this._optionsGatherer.optionsChange.subscribe(() => this._loadOptions());\n }\n\n if(!this._optionSelectSubscription)\n {\n this._optionSelectSubscription = this.pluginBus.optionSelect.subscribe(this._setValue);\n }\n\n if(!this._optionCancelSubscription)\n {\n this._optionCancelSubscription = this.pluginBus.optionCancel.subscribe(this._cancelValue);\n }\n\n const normalState = this.ngSelectPlugins[NORMAL_STATE] as NormalState;\n this._normalState = normalState;\n\n this._loadOptions();\n }\n\n /**\n * Initialize plugin options, all operations required to be done with plugin options are handled here\n */\n public initOptions()\n {\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets value \n */\n protected abstract _setValue: (option: ɵNgSelectOption<TValue>) => void;\n\n /**\n * Cancels, removes option from selected options\n * @param option - Option to be canceled\n */\n protected _cancelValue = (option: ɵNgSelectOption<TValue>): void =>\n {\n if(Array.isArray(this.selectedOptions))\n {\n const index = this.selectedOptions.indexOf(option);\n\n if(index >= 0)\n {\n this.selectedOptions.splice(index, 1);\n this.selectedOptions = [...this.selectedOptions];\n }\n }\n else\n {\n if(this.selectedOptions == option)\n {\n this.selectedOptions = null;\n }\n }\n\n this._clearSelected();\n this._markValueAsSelected();\n\n this._normalState.invalidateVisuals();\n this.valueChange.emit();\n }\n\n /**\n * Clears all selected values\n */\n protected _clearSelected()\n {\n this._optionsGatherer.options.forEach((option: ɵNgSelectOption<TValue>) => option.selected = false);\n }\n\n /**\n * Marks current value as selected\n */\n protected _markValueAsSelected()\n {\n if(this.selectedOptions)\n {\n if(Array.isArray(this.selectedOptions))\n {\n this.selectedOptions.forEach((option: ɵNgSelectOption<TValue>) => option.selected = true);\n }\n else\n {\n (this.selectedOptions as ɵNgSelectOption<TValue>).selected = true;\n }\n }\n }\n\n /**\n * Loads options\n */\n protected abstract _loadOptions(): void;\n}"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,cAAc,qCAAqC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"components.d.ts","sourceRoot":"","sources":["components.ts"],"names":[],"mappings":"AAAA,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0CAA0C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, QueryList, AfterViewInit } from '@angular/core';
|
|
2
|
-
import { NgSelectOptGroup } from './optgroup.interface';
|
|
3
|
-
import { NgSelectOption } from './option.interface';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Component used for options group in select component
|
|
7
|
-
*/
|
|
8
|
-
export declare class OptGroupComponent<TValue = any> implements NgSelectOptGroup<TValue>, AfterViewInit {
|
|
9
|
-
/**
|
|
10
|
-
* Instance of event emitter for optionsChange
|
|
11
|
-
*/
|
|
12
|
-
private _optionsChange;
|
|
13
|
-
/**
|
|
14
|
-
* Options assigned to this options group
|
|
15
|
-
*/
|
|
16
|
-
get options(): NgSelectOption<TValue>[];
|
|
17
|
-
/**
|
|
18
|
-
* Occurs when options in this group change
|
|
19
|
-
*/
|
|
20
|
-
get optionsChange(): EventEmitter<void>;
|
|
21
|
-
/**
|
|
22
|
-
* Children options in this group
|
|
23
|
-
* @internal
|
|
24
|
-
*/
|
|
25
|
-
optionsChildren: QueryList<NgSelectOption<TValue>>;
|
|
26
|
-
/**
|
|
27
|
-
* Text that is displayed for this options group
|
|
28
|
-
*/
|
|
29
|
-
text: string;
|
|
30
|
-
/**
|
|
31
|
-
* Called when view was initialized
|
|
32
|
-
*/
|
|
33
|
-
ngAfterViewInit(): void;
|
|
34
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<OptGroupComponent<any>, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<OptGroupComponent<any>, "ng-select>ng-optgroup", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, false, never>;
|
|
36
|
-
}
|
|
37
|
-
//# sourceMappingURL=optgroup.component.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"optgroup.component.d.ts","sourceRoot":"","sources":["optgroup.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4C,YAAY,EAAE,SAAS,EAAgB,aAAa,EAAC,MAAM,eAAe,CAAC;AAE9H,OAAO,EAAC,gBAAgB,EAAC,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;;AAGlD;;GAEG;AACH,qBAOa,iBAAiB,CAAC,MAAM,GAAG,GAAG,CAAE,YAAW,gBAAgB,CAAC,MAAM,CAAC,EAAE,aAAa;IAI3F;;OAEG;IACH,OAAO,CAAC,cAAc,CAAgD;IAItE;;OAEG;IACH,IAAW,OAAO,IAAI,cAAc,CAAC,MAAM,CAAC,EAAE,CAG7C;IAED;;OAEG;IACH,IAAW,aAAa,IAAI,YAAY,CAAC,IAAI,CAAC,CAG7C;IAID;;;OAGG;IAEI,eAAe,EAAE,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;IAI1D;;OAEG;IAEI,IAAI,EAAE,MAAM,CAAC;IAIpB;;OAEG;IACI,eAAe;yCAjDb,iBAAiB;2CAAjB,iBAAiB;CAwD7B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { EventEmitter } from '@angular/core';
|
|
2
|
-
import { NgSelectOption } from './option.interface';
|
|
3
|
-
/**
|
|
4
|
-
* Option group for ng select
|
|
5
|
-
*/
|
|
6
|
-
export interface NgSelectOptGroup<TValue = any> {
|
|
7
|
-
/**
|
|
8
|
-
* Options assigned to this options group
|
|
9
|
-
*/
|
|
10
|
-
readonly options?: NgSelectOption<TValue>[];
|
|
11
|
-
/**
|
|
12
|
-
* Occurs when options in this group change
|
|
13
|
-
*/
|
|
14
|
-
readonly optionsChange?: EventEmitter<void>;
|
|
15
|
-
/**
|
|
16
|
-
* Text that is displayed for this options group
|
|
17
|
-
*/
|
|
18
|
-
text?: string;
|
|
19
|
-
}
|
|
20
|
-
//# sourceMappingURL=optgroup.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"optgroup.interface.d.ts","sourceRoot":"","sources":["optgroup.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,eAAe,CAAC;AAE3C,OAAO,EAAC,cAAc,EAAC,MAAM,oBAAoB,CAAC;AAElD;;GAEG;AACH,MAAM,WAAW,gBAAgB,CAAC,MAAM,GAAG,GAAG;IAE1C;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,CAAC;IAE5C;;OAEG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,YAAY,CAAC,IAAI,CAAC,CAAC;IAE5C;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Option for ng select
|
|
3
|
-
*/
|
|
4
|
-
export interface NgSelectOption<TValue = any> {
|
|
5
|
-
/**
|
|
6
|
-
* Value that will be used if this option will be selected
|
|
7
|
-
*/
|
|
8
|
-
value?: TValue;
|
|
9
|
-
/**
|
|
10
|
-
* Text that is displayed if this value is selected
|
|
11
|
-
*/
|
|
12
|
-
text?: string;
|
|
13
|
-
/**
|
|
14
|
-
* If specified this option will be displayed in group
|
|
15
|
-
*/
|
|
16
|
-
group?: string;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Option for ng select
|
|
20
|
-
*/
|
|
21
|
-
export interface ɵNgSelectOption<TValue = any> extends NgSelectOption<TValue> {
|
|
22
|
-
/**
|
|
23
|
-
* Indication whether is item active
|
|
24
|
-
*/
|
|
25
|
-
active?: boolean;
|
|
26
|
-
/**
|
|
27
|
-
* Indication whether is this option selected
|
|
28
|
-
*/
|
|
29
|
-
selected?: boolean;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=option.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"option.interface.d.ts","sourceRoot":"","sources":["option.interface.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,WAAW,cAAc,CAAC,MAAM,GAAG,GAAG;IAExC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;GAEG;AACH,MAAM,WAAW,eAAe,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,cAAc,CAAC,MAAM,CAAC;IAEzE;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IAEjB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB"}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { Observable, Subscription } from 'rxjs';
|
|
2
|
-
import { NgSelectPlugin, NgSelectOptions, OptionsGatherer, TemplateGatherer } from '../../misc';
|
|
3
|
-
import { PluginBusEvents } from '../../misc/pluginBus/pluginBus.interface';
|
|
4
|
-
/**
|
|
5
|
-
* Interface describing object storing all existing plugin instances for NgSelect
|
|
6
|
-
*/
|
|
7
|
-
export interface NgSelectPluginInstances {
|
|
8
|
-
[pluginName: string]: NgSelectPlugin;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Public API for NgSelect
|
|
12
|
-
*/
|
|
13
|
-
export interface NgSelect<TValue = any> extends OptionsGatherer<TValue>, TemplateGatherer {
|
|
14
|
-
/**
|
|
15
|
-
* Occurs every time when NgSelect is initialized or reinitialized, if value is false NgSelect was not initialized yet
|
|
16
|
-
*/
|
|
17
|
-
readonly initialized: Observable<boolean>;
|
|
18
|
-
/**
|
|
19
|
-
* Gets current state of initialization
|
|
20
|
-
*/
|
|
21
|
-
readonly isInitialized: boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Gets or sets NgSelect options
|
|
24
|
-
*/
|
|
25
|
-
selectOptions: NgSelectOptions<TValue>;
|
|
26
|
-
/**
|
|
27
|
-
* Initialize component, automatically called once if not blocked by options
|
|
28
|
-
*/
|
|
29
|
-
initialize(): void;
|
|
30
|
-
/**
|
|
31
|
-
* Initialize options, automaticaly called during init phase, but can be used to reinitialize NgSelectOptions
|
|
32
|
-
*/
|
|
33
|
-
initOptions(): void;
|
|
34
|
-
/**
|
|
35
|
-
* Gets instance of plugin by its id
|
|
36
|
-
* @param pluginId - Id of plugin, use constants
|
|
37
|
-
*/
|
|
38
|
-
getPlugin<PluginType extends NgSelectPlugin>(pluginId: string): PluginType;
|
|
39
|
-
/**
|
|
40
|
-
* Subscribes for event
|
|
41
|
-
* @param eventName - Name of event that should be listened to
|
|
42
|
-
* @param handler - Function used for handling event
|
|
43
|
-
*/
|
|
44
|
-
listenTo<TParam = void>(eventName: keyof PluginBusEvents, handler: (data: TParam) => void): Subscription;
|
|
45
|
-
/**
|
|
46
|
-
* Explicitly runs invalidation of content (change detection)
|
|
47
|
-
*/
|
|
48
|
-
invalidateVisuals(): void;
|
|
49
|
-
/**
|
|
50
|
-
* Executes actions on NgSelect
|
|
51
|
-
* @param actions - Array of actions that are executed over NgSelect
|
|
52
|
-
*/
|
|
53
|
-
execute(...actions: NgSelectAction<TValue>[]): void;
|
|
54
|
-
/**
|
|
55
|
-
* Executes function on NgSelect and returns result
|
|
56
|
-
* @param func - Function that is executed and its result is returned
|
|
57
|
-
*/
|
|
58
|
-
executeAndReturn<TResult>(func: NgSelectFunction<TResult, TValue>): TResult;
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Defintion of action that can be executed on NgSelect
|
|
62
|
-
*/
|
|
63
|
-
export type NgSelectAction<TValue = any> = (ngSelect: NgSelect<TValue>) => void;
|
|
64
|
-
/**
|
|
65
|
-
* Definition of function that can be executed on NgSelect and returns some data
|
|
66
|
-
*/
|
|
67
|
-
export type NgSelectFunction<TResult = any, TValue = any> = (ngSelect: NgSelect<TValue>) => TResult;
|
|
68
|
-
//# sourceMappingURL=select.interface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"select.interface.d.ts","sourceRoot":"","sources":["select.interface.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAE9C,OAAO,EAAC,cAAc,EAAE,eAAe,EAAE,eAAe,EAAE,gBAAgB,EAAC,MAAM,YAAY,CAAC;AAC9F,OAAO,EAAC,eAAe,EAAC,MAAM,0CAA0C,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,uBAAuB;IAEpC,CAAC,UAAU,EAAE,MAAM,GAAG,cAAc,CAAC;CACxC;AAED;;GAEG;AACH,MAAM,WAAW,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAE,SAAQ,eAAe,CAAC,MAAM,CAAC,EAAE,gBAAgB;IAErF;;OAEG;IACH,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,CAAC;IAE1C;;OAEG;IACH,QAAQ,CAAC,aAAa,EAAE,OAAO,CAAC;IAEhC;;OAEG;IACH,aAAa,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IAEvC;;OAEG;IACH,UAAU,IAAI,IAAI,CAAC;IAEnB;;OAEG;IACH,WAAW,IAAI,IAAI,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,UAAU,SAAS,cAAc,EAAE,QAAQ,EAAE,MAAM,GAAG,UAAU,CAAC;IAE3E;;;;OAIG;IACH,QAAQ,CAAC,MAAM,GAAG,IAAI,EAAE,SAAS,EAAE,MAAM,eAAe,EAAE,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,YAAY,CAAC;IAEzG;;OAEG;IACH,iBAAiB,IAAI,IAAI,CAAC;IAE1B;;;OAGG;IACH,OAAO,CAAC,GAAG,OAAO,EAAE,cAAc,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,CAAC;IAEpD;;;OAGG;IACH,gBAAgB,CAAC,OAAO,EAAE,IAAI,EAAE,gBAAgB,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG,OAAO,CAAC;CAC/E;AAED;;GAEG;AACH,MAAM,MAAM,cAAc,CAAC,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAEhF;;GAEG;AACH,MAAM,MAAM,gBAAgB,CAAC,OAAO,GAAG,GAAG,EAAE,MAAM,GAAG,GAAG,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { NgSelectPluginInstances } from './select.interface';
|
|
3
|
-
/**
|
|
4
|
-
* Token used for obtaining 'NgSelectPluginInstances'
|
|
5
|
-
*/
|
|
6
|
-
export declare const NG_SELECT_PLUGIN_INSTANCES: InjectionToken<NgSelectPluginInstances>;
|
|
7
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,eAAe,CAAC;AAE7C,OAAO,EAAC,uBAAuB,EAAC,MAAM,oBAAoB,CAAC;AAE3D;;GAEG;AACH,eAAO,MAAM,0BAA0B,EAAE,cAAc,CAAC,uBAAuB,CAA6E,CAAC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgSelectComponent } from '../../components/select/select.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive used for setting absolute option for ng-select
|
|
5
|
-
*/
|
|
6
|
-
export declare class NgSelectAbsoluteDirective {
|
|
7
|
-
constructor(select: NgSelectComponent);
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectAbsoluteDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectAbsoluteDirective, "ng-select[absolute]", never, {}, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=ngSelectAbsolute.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectAbsolute.directive.d.ts","sourceRoot":"","sources":["ngSelectAbsolute.directive.ts"],"names":[],"mappings":"AAEA,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;;AAE3E;;GAEG;AACH,qBAIa,yBAAyB;gBAGtB,MAAM,EAAE,iBAAiB;yCAH5B,yBAAyB;2CAAzB,yBAAyB;CAUrC"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { NgSelectComponent } from '../../components/select/select.component';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Directive that applies options for NgSelect which enable usage of NgSelect edit (jira like) style
|
|
5
|
-
*/
|
|
6
|
-
export declare class NgSelectEditDirective {
|
|
7
|
-
constructor(select: NgSelectComponent);
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectEditDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectEditDirective, "ng-select[editStyle]", never, {}, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
11
|
-
//# sourceMappingURL=ngSelectEdit.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectEdit.directive.d.ts","sourceRoot":"","sources":["ngSelectEdit.directive.ts"],"names":[],"mappings":"AAOA,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;;AAG3E;;GAEG;AACH,qBA2Ba,qBAAqB;gBAGlB,MAAM,EAAE,iBAAiB;yCAH5B,qBAAqB;2CAArB,qBAAqB;CAUjC"}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
|
-
import { NgSelectComponent } from '../../components/select/select.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Directive used for setting live search placeholder text
|
|
6
|
-
*/
|
|
7
|
-
export declare class NgSelectPlaceholderDirective implements OnInit {
|
|
8
|
-
private _select;
|
|
9
|
-
/**
|
|
10
|
-
* Placeholder text used for live search plugin
|
|
11
|
-
*/
|
|
12
|
-
placeholder: string;
|
|
13
|
-
constructor(_select: NgSelectComponent);
|
|
14
|
-
/**
|
|
15
|
-
* Initialize component
|
|
16
|
-
*/
|
|
17
|
-
ngOnInit(): void;
|
|
18
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectPlaceholderDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectPlaceholderDirective, "ng-select[placeholder]", never, { "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
|
|
20
|
-
}
|
|
21
|
-
//# sourceMappingURL=ngSelectPlaceholder.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectPlaceholder.directive.d.ts","sourceRoot":"","sources":["ngSelectPlaceholder.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,MAAM,EAAQ,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAC,iBAAiB,EAAC,MAAM,0CAA0C,CAAC;;AAG3E;;GAEG;AACH,qBAIa,4BAA6B,YAAW,MAAM;IAW3C,OAAO,CAAC,OAAO;IAP3B;;OAEG;IAEI,WAAW,EAAE,MAAM,CAAC;gBAGP,OAAO,EAAE,iBAAiB;IAM9C;;OAEG;IACI,QAAQ,IAAI,IAAI;yCApBd,4BAA4B;2CAA5B,4BAA4B;CAuCxC"}
|
package/src/index.ssr.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=index.ssr.d.ts.map
|
package/src/index.ssr.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.ssr.d.ts","sourceRoot":"","sources":["index.ssr.ts"],"names":[],"mappings":""}
|
package/src/misc/index.d.ts
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.d.ts.map
|
package/src/misc/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,oDAAoD,CAAC;AACnE,cAAc,oBAAoB,CAAC;AACnC,cAAc,8BAA8B,CAAC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import { NgSelectComponent } from '../components/select/select.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/**
|
|
6
|
-
* Control value accessor for NgSelectComponent
|
|
7
|
-
*/
|
|
8
|
-
export declare class NgSelectControlValueAccessor<TValue = any> implements ControlValueAccessor, OnDestroy {
|
|
9
|
-
private _select;
|
|
10
|
-
/**
|
|
11
|
-
* Subscription for initialized status of NgSelect, used for writeValue
|
|
12
|
-
*/
|
|
13
|
-
private _initializedSubscription;
|
|
14
|
-
/**
|
|
15
|
-
* Subscription for initialized status of NgSelect, used for registerOnChange
|
|
16
|
-
*/
|
|
17
|
-
private _changeInitializedSubscription;
|
|
18
|
-
/**
|
|
19
|
-
* Subscription for initialized status of NgSelect, used for registerOnTouched
|
|
20
|
-
*/
|
|
21
|
-
private _touchInitializedSubscription;
|
|
22
|
-
/**
|
|
23
|
-
* Subscription for initialized status of NgSelect, used for setDisabledState
|
|
24
|
-
*/
|
|
25
|
-
private _disabledInitializedSubscription;
|
|
26
|
-
/**
|
|
27
|
-
* Subscription that looks for changes of select
|
|
28
|
-
*/
|
|
29
|
-
private _changeSubscription;
|
|
30
|
-
/**
|
|
31
|
-
* Subscription that looks for changes of select
|
|
32
|
-
*/
|
|
33
|
-
private _focusSubscription;
|
|
34
|
-
/**
|
|
35
|
-
* Last set value to this control
|
|
36
|
-
*/
|
|
37
|
-
private _value;
|
|
38
|
-
constructor(_select: NgSelectComponent<TValue>);
|
|
39
|
-
/**
|
|
40
|
-
* Sets value to select
|
|
41
|
-
*/
|
|
42
|
-
writeValue(value: TValue | Array<TValue>): void;
|
|
43
|
-
/**
|
|
44
|
-
* Registers callback that is called when value of select changes
|
|
45
|
-
*/
|
|
46
|
-
registerOnChange(fn: (data: TValue | Array<TValue>) => void): void;
|
|
47
|
-
/**
|
|
48
|
-
* Registers callback that is called when select is closed
|
|
49
|
-
*/
|
|
50
|
-
registerOnTouched(fn: () => void): void;
|
|
51
|
-
/**
|
|
52
|
-
* Sets NgSelect as disabled/readonly
|
|
53
|
-
* @param isDisabled - Indication whether is control disabled or not
|
|
54
|
-
*/
|
|
55
|
-
setDisabledState(isDisabled: boolean): void;
|
|
56
|
-
/**
|
|
57
|
-
* Called when component is destroyed
|
|
58
|
-
*/
|
|
59
|
-
ngOnDestroy(): void;
|
|
60
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NgSelectControlValueAccessor<any>, never>;
|
|
61
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgSelectControlValueAccessor<any>, "ng-select[formControlName],ng-select[formControl],ng-select[ngModel]", never, {}, {}, never, never, true, never>;
|
|
62
|
-
}
|
|
63
|
-
//# sourceMappingURL=ngSelectControlValueAccessor.directive.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ngSelectControlValueAccessor.directive.d.ts","sourceRoot":"","sources":["ngSelectControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,SAAS,EAAC,MAAM,eAAe,CAAC;AACjF,OAAO,EAAoB,oBAAoB,EAAC,MAAM,gBAAgB,CAAC;AAGvE,OAAO,EAAC,iBAAiB,EAAC,MAAM,uCAAuC,CAAC;;AAcxE;;GAEG;AACH,qBAKa,4BAA4B,CAAC,MAAM,GAAG,GAAG,CAAE,YAAW,oBAAoB,EAAE,SAAS;IAwClF,OAAO,CAAC,OAAO;IApC3B;;OAEG;IACH,OAAO,CAAC,wBAAwB,CAAe;IAE/C;;OAEG;IACH,OAAO,CAAC,8BAA8B,CAAe;IAErD;;OAEG;IACH,OAAO,CAAC,6BAA6B,CAAe;IAEpD;;OAEG;IACH,OAAO,CAAC,gCAAgC,CAAe;IAEvD;;OAEG;IACH,OAAO,CAAC,mBAAmB,CAAsB;IAEjD;;OAEG;IACH,OAAO,CAAC,kBAAkB,CAAsB;IAEhD;;OAEG;IACH,OAAO,CAAC,MAAM,CAAkB;gBAGZ,OAAO,EAAE,iBAAiB,CAAC,MAAM,CAAC;IAMtD;;OAEG;IACI,UAAU,CAAC,KAAK,EAAE,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI;IA6BpD;;OAEG;IACI,gBAAgB,CAAC,EAAE,EAAE,CAAC,IAAI,EAAE,MAAM,GAAC,KAAK,CAAC,MAAM,CAAC,KAAK,IAAI,GAAG,IAAI;IA6CvE;;OAEG;IACI,iBAAiB,CAAC,EAAE,EAAE,MAAM,IAAI,GAAG,IAAI;IAiB9C;;;OAGG;IACI,gBAAgB,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IA6BlD;;OAEG;IACI,WAAW;yCAtLT,4BAA4B;2CAA5B,4BAA4B;CA4NxC"}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { Type, ElementRef } from '@angular/core';
|
|
2
|
-
import { NgSelectPluginInstances } from '../components/select';
|
|
3
|
-
import { KeyboardHandler } from '../plugins/keyboardHandler';
|
|
4
|
-
import { NormalState } from '../plugins/normalState';
|
|
5
|
-
import { Popup } from '../plugins/popup';
|
|
6
|
-
import { Positioner } from '../plugins/positioner';
|
|
7
|
-
import { ReadonlyState } from '../plugins/readonlyState';
|
|
8
|
-
import { ValueHandler } from '../plugins/valueHandler';
|
|
9
|
-
import { LiveSearch } from '../plugins/liveSearch';
|
|
10
|
-
import { PluginBus } from './pluginBus/pluginBus';
|
|
11
|
-
/**
|
|
12
|
-
* NgSelect plugin interface
|
|
13
|
-
*/
|
|
14
|
-
export interface NgSelectPlugin<TOptions = any, TValue = any> {
|
|
15
|
-
/**
|
|
16
|
-
* NgSelect plugin instances available for this plugin
|
|
17
|
-
*/
|
|
18
|
-
ngSelectPlugins: NgSelectPluginInstances;
|
|
19
|
-
/**
|
|
20
|
-
* Element that represents plugin
|
|
21
|
-
*/
|
|
22
|
-
pluginElement: ElementRef;
|
|
23
|
-
/**
|
|
24
|
-
* Options for NgSelect plugin
|
|
25
|
-
*/
|
|
26
|
-
options: TOptions;
|
|
27
|
-
/**
|
|
28
|
-
* Plugin bus used in select
|
|
29
|
-
*/
|
|
30
|
-
pluginBus: PluginBus<TValue>;
|
|
31
|
-
/**
|
|
32
|
-
* Initialize plugin, to be ready to use, initialize communication with other plugins
|
|
33
|
-
*/
|
|
34
|
-
initialize(): void;
|
|
35
|
-
/**
|
|
36
|
-
* Initialize plugin options, all operations required to be done with plugin options are handled here
|
|
37
|
-
*/
|
|
38
|
-
initOptions(): void;
|
|
39
|
-
/**
|
|
40
|
-
* Explicitly runs invalidation of content (change detection)
|
|
41
|
-
*/
|
|
42
|
-
invalidateVisuals(): void;
|
|
43
|
-
}
|
|
44
|
-
/**
|
|
45
|
-
* All available types of plugins for NgSelect
|
|
46
|
-
*/
|
|
47
|
-
export interface NgSelectPluginTypes {
|
|
48
|
-
/**
|
|
49
|
-
* Handles keyboard events
|
|
50
|
-
*/
|
|
51
|
-
keyboardHandler?: PluginDescription<KeyboardHandler>;
|
|
52
|
-
/**
|
|
53
|
-
* Component used for displaying normal state of select
|
|
54
|
-
*/
|
|
55
|
-
normalState?: PluginDescription<NormalState>;
|
|
56
|
-
/**
|
|
57
|
-
* Component used for displaying available options for selection
|
|
58
|
-
*/
|
|
59
|
-
popup?: PluginDescription<Popup>;
|
|
60
|
-
/**
|
|
61
|
-
* Handles correct position of pop component
|
|
62
|
-
*/
|
|
63
|
-
positioner?: PluginDescription<Positioner>;
|
|
64
|
-
/**
|
|
65
|
-
* Component used for displaying readonly/disabled state of select, can be null, in that case normal state component is used
|
|
66
|
-
*/
|
|
67
|
-
readonlyState?: PluginDescription<ReadonlyState>;
|
|
68
|
-
/**
|
|
69
|
-
* Handles obtaining and setting value of component
|
|
70
|
-
*/
|
|
71
|
-
valueHandler?: PluginDescription<ValueHandler>;
|
|
72
|
-
/**
|
|
73
|
-
* Contains component that is used for live searching in options
|
|
74
|
-
*/
|
|
75
|
-
liveSearch?: PluginDescription<LiveSearch>;
|
|
76
|
-
}
|
|
77
|
-
/**
|
|
78
|
-
* Base options for every plugin
|
|
79
|
-
*/
|
|
80
|
-
export interface PluginOptions {
|
|
81
|
-
}
|
|
82
|
-
/**
|
|
83
|
-
* Base options for every visual plugin (component)
|
|
84
|
-
*/
|
|
85
|
-
export interface VisualPluginOptions<TCssClasses = any> extends PluginOptions {
|
|
86
|
-
/**
|
|
87
|
-
* Css classes applied to visual plugin (component), possible to override only part of classes
|
|
88
|
-
*/
|
|
89
|
-
cssClasses?: TCssClasses;
|
|
90
|
-
}
|
|
91
|
-
/**
|
|
92
|
-
* Defines interface, that describes minimal set of parameters for specifying plugin for NgSelect
|
|
93
|
-
*/
|
|
94
|
-
export interface PluginDescription<PluginType = any> {
|
|
95
|
-
/**
|
|
96
|
-
* Type of plugin that will be dynamically instantiated
|
|
97
|
-
*/
|
|
98
|
-
type?: Type<PluginType>;
|
|
99
|
-
/**
|
|
100
|
-
* Options that will be passed to dynamically instantiated plugin
|
|
101
|
-
*/
|
|
102
|
-
options?: PluginOptions;
|
|
103
|
-
/**
|
|
104
|
-
* Optional callback used for obtaining dynamic instance of plugin (allows direct communication with plugin)
|
|
105
|
-
*/
|
|
106
|
-
instanceCallback?: (instance: NgSelectPlugin | null) => void;
|
|
107
|
-
}
|
|
108
|
-
//# sourceMappingURL=plugin.interface.d.ts.map
|