@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 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dynamicOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/dynamicOptionsGatherer.ts"],"names":[],"mappings":"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","sourcesContent":["import {EventEmitter} from '@angular/core';\nimport {isPresent} from '@jscrpt/common';\nimport {Subscription, Observable} from 'rxjs';\nimport {debounceTime} from 'rxjs/operators';\n\nimport {OptionsGatherer} from './optionsGatherer.interface';\nimport {NgSelectPluginInstances, NgSelect} from '../../components/select';\nimport {NgSelectOption} from '../../components/option';\nimport {DynamicOptionsGathererOptions} from './dynamicOptionsGatherer.interface';\nimport {LiveSearch} from '../../plugins/liveSearch';\nimport {LIVE_SEARCH} from '../../plugins/liveSearch/types';\nimport {PluginBus} from '../pluginBus/pluginBus';\nimport {Popup} from '../../plugins/popup';\nimport {POPUP} from '../../plugins/popup/types';\nimport {VALUE_HANDLER} from '../../plugins/valueHandler/types';\nimport {ValueHandler} from '../../plugins/valueHandler';\n\n/**\n * Class that is used as for options gathering in dynamic way, for example from external source when writing\n */\nexport class DynamicOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n{\n //######################### protected fields #########################\n\n /**\n * Live search plugin currently used in NgSelect\n */\n protected _liveSearch: LiveSearch;\n\n /**\n * Subscription for changes of live search value\n */\n protected _searchValueChangeSubscription: Subscription;\n\n /**\n * Subscription for visibility change of popup\n */\n protected _visibilitySubscription: Subscription;\n\n /**\n * Minimal number of characters required for searching\n */\n protected _minLength: number = 1;\n\n /**\n * Popup that is displayed\n */\n protected _popup: Popup;\n\n /**\n * Indication that first initial call was performed\n */\n protected _initialized: boolean = false;\n\n /**\n * Currently used value handler plugin\n */\n protected _valueHandler: ValueHandler;\n\n //######################### public properties - implementation of OptionsGatherer #########################\n\n /**\n * Array of provided options for select\n */\n public options: NgSelectOption<TValue>[] = [];\n\n /**\n * Occurs when array of provided options has changed\n */\n public optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n /**\n * Array of visible, displayed options for select\n */\n public get availableOptions(): NgSelectOption<TValue>[]\n {\n return this.options;\n }\n\n /**\n * Occurs when array of visible, displayed options has changed\n */\n public get availableOptionsChange(): EventEmitter<void>\n {\n return this.optionsChange;\n }\n\n /**\n * NgSelect plugin instances available for gatherer\n */\n public ngSelectPlugins: NgSelectPluginInstances;\n\n /**\n * Plugin bus used for inter plugin shared events\n */\n public pluginBus: PluginBus<TValue>;\n\n /**\n * Select element that implements default gatherers\n */\n public select: NgSelect<TValue>;\n\n //######################### constructor #########################\n constructor(protected _options: DynamicOptionsGathererOptions<TValue>)\n {\n if(!this._options)\n {\n throw new Error('Options can not be null!');\n }\n\n if(this._options && isPresent(this._options.minLength))\n {\n this._minLength = this._options.minLength;\n }\n }\n\n //######################### public methods - implementation of OptionsGatherer #########################\n\n /**\n * Initialize gatherer during initialization phase\n */\n public initializeGatherer(): void\n {\n const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n if(this._liveSearch && this._liveSearch != liveSearch)\n {\n this._searchValueChangeSubscription.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._liveSearch = null;\n }\n\n const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n if(this._popup && this._popup != popup)\n {\n this._visibilitySubscription.unsubscribe();\n this._visibilitySubscription = null;\n\n this._popup = null;\n }\n\n this._valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n if(!this._popup)\n {\n this._popup = popup;\n\n this._visibilitySubscription = this._popup.visibilityChange.subscribe(async () =>\n {\n if(this._initialized)\n {\n return;\n }\n\n await this._processOptionsChange();\n });\n }\n\n if(!this._liveSearch)\n {\n this._liveSearch = liveSearch;\n\n let searchValueChange: Observable<void> = this._liveSearch.searchValueChange;\n\n if(this._options.delay)\n {\n searchValueChange = searchValueChange.pipe(debounceTime(this._options.delay));\n }\n\n this._searchValueChangeSubscription = searchValueChange.subscribe(async () => await this._processOptionsChange());\n }\n }\n\n /**\n * Called when gatherer needs to be destroyed\n */\n public destroyGatherer(): void\n {\n this._searchValueChangeSubscription?.unsubscribe();\n this._searchValueChangeSubscription = null;\n\n this._visibilitySubscription?.unsubscribe();\n this._visibilitySubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Process options change request\n */\n protected async _processOptionsChange()\n {\n let searchValue: string = this._liveSearch.searchValue;\n\n //use value as search value if not initialized\n if(!this._initialized && !this.pluginBus.selectOptions.multiple && !Array.isArray(this._valueHandler.selectedOptions) && isPresent(this._valueHandler.selectedOptions))\n {\n searchValue = this._liveSearch.searchValue ?? this._valueHandler.selectedOptions.text;\n }\n\n this._initialized = true;\n\n if((searchValue?.length ?? 0) < this._minLength)\n {\n //remove available options if multiple or empty string\n if(isPresent(searchValue) || this.pluginBus.selectOptions.multiple)\n {\n this.options = [];\n this.optionsChange.emit();\n }\n\n return;\n }\n\n this.options = await this._options.dynamicOptionsCallback(searchValue ?? '');\n this.optionsChange.emit();\n }\n}"]}
|
|
1
|
+
{"version":3,"file":"dynamicOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/dynamicOptionsGatherer.ts"],"names":[],"mappings":"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","sourcesContent":["// import {EventEmitter} from '@angular/core';\n// import {isPresent} from '@jscrpt/common';\n// import {Subscription, Observable} from 'rxjs';\n// import {debounceTime} from 'rxjs/operators';\n\n// import {OptionsGatherer} from './optionsGatherer.interface';\n// import {NgSelectPluginInstances, NgSelect} from '../../components/select';\n// import {NgSelectOption} from '../../components/option';\n// import {DynamicOptionsGathererOptions} from './dynamicOptionsGatherer.interface';\n// import {LiveSearch} from '../../plugins/liveSearch';\n// import {LIVE_SEARCH} from '../../plugins/liveSearch/types';\n// import {PluginBus} from '../pluginBus/pluginBus';\n// import {Popup} from '../../plugins/popup';\n// import {POPUP} from '../../plugins/popup/types';\n// import {VALUE_HANDLER} from '../../plugins/valueHandler/types';\n// import {ValueHandler} from '../../plugins/valueHandler';\n\n// /**\n// * Class that is used as for options gathering in dynamic way, for example from external source when writing\n// */\n// export class DynamicOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n// {\n// //######################### protected fields #########################\n\n// /**\n// * Live search plugin currently used in NgSelect\n// */\n// protected _liveSearch: LiveSearch;\n\n// /**\n// * Subscription for changes of live search value\n// */\n// protected _searchValueChangeSubscription: Subscription;\n\n// /**\n// * Subscription for visibility change of popup\n// */\n// protected _visibilitySubscription: Subscription;\n\n// /**\n// * Minimal number of characters required for searching\n// */\n// protected _minLength: number = 1;\n\n// /**\n// * Popup that is displayed\n// */\n// protected _popup: Popup;\n\n// /**\n// * Indication that first initial call was performed\n// */\n// protected _initialized: boolean = false;\n\n// /**\n// * Currently used value handler plugin\n// */\n// protected _valueHandler: ValueHandler;\n\n// //######################### public properties - implementation of OptionsGatherer #########################\n\n// /**\n// * Array of provided options for select\n// */\n// public options: NgSelectOption<TValue>[] = [];\n\n// /**\n// * Occurs when array of provided options has changed\n// */\n// public optionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n// /**\n// * Array of visible, displayed options for select\n// */\n// public get availableOptions(): NgSelectOption<TValue>[]\n// {\n// return this.options;\n// }\n\n// /**\n// * Occurs when array of visible, displayed options has changed\n// */\n// public get availableOptionsChange(): EventEmitter<void>\n// {\n// return this.optionsChange;\n// }\n\n// /**\n// * NgSelect plugin instances available for gatherer\n// */\n// public ngSelectPlugins: NgSelectPluginInstances;\n\n// /**\n// * Plugin bus used for inter plugin shared events\n// */\n// public pluginBus: PluginBus<TValue>;\n\n// /**\n// * Select element that implements default gatherers\n// */\n// public select: NgSelect<TValue>;\n\n// //######################### constructor #########################\n// constructor(protected _options: DynamicOptionsGathererOptions<TValue>)\n// {\n// if(!this._options)\n// {\n// throw new Error('Options can not be null!');\n// }\n\n// if(this._options && isPresent(this._options.minLength))\n// {\n// this._minLength = this._options.minLength;\n// }\n// }\n\n// //######################### public methods - implementation of OptionsGatherer #########################\n\n// /**\n// * Initialize gatherer during initialization phase\n// */\n// public initializeGatherer(): void\n// {\n// const liveSearch = this.ngSelectPlugins[LIVE_SEARCH] as LiveSearch;\n\n// if(this._liveSearch && this._liveSearch != liveSearch)\n// {\n// this._searchValueChangeSubscription.unsubscribe();\n// this._searchValueChangeSubscription = null;\n\n// this._liveSearch = null;\n// }\n\n// const popup: Popup = this.ngSelectPlugins[POPUP] as Popup;\n\n// if(this._popup && this._popup != popup)\n// {\n// this._visibilitySubscription.unsubscribe();\n// this._visibilitySubscription = null;\n\n// this._popup = null;\n// }\n\n// this._valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n// if(!this._popup)\n// {\n// this._popup = popup;\n\n// this._visibilitySubscription = this._popup.visibilityChange.subscribe(async () =>\n// {\n// if(this._initialized)\n// {\n// return;\n// }\n\n// await this._processOptionsChange();\n// });\n// }\n\n// if(!this._liveSearch)\n// {\n// this._liveSearch = liveSearch;\n\n// let searchValueChange: Observable<void> = this._liveSearch.searchValueChange;\n\n// if(this._options.delay)\n// {\n// searchValueChange = searchValueChange.pipe(debounceTime(this._options.delay));\n// }\n\n// this._searchValueChangeSubscription = searchValueChange.subscribe(async () => await this._processOptionsChange());\n// }\n// }\n\n// /**\n// * Called when gatherer needs to be destroyed\n// */\n// public destroyGatherer(): void\n// {\n// this._searchValueChangeSubscription?.unsubscribe();\n// this._searchValueChangeSubscription = null;\n\n// this._visibilitySubscription?.unsubscribe();\n// this._visibilitySubscription = null;\n// }\n\n// //######################### protected methods #########################\n\n// /**\n// * Process options change request\n// */\n// protected async _processOptionsChange()\n// {\n// let searchValue: string = this._liveSearch.searchValue;\n\n// //use value as search value if not initialized\n// if(!this._initialized && !this.pluginBus.selectOptions.multiple && !Array.isArray(this._valueHandler.selectedOptions) && isPresent(this._valueHandler.selectedOptions))\n// {\n// searchValue = this._liveSearch.searchValue ?? this._valueHandler.selectedOptions.text;\n// }\n\n// this._initialized = true;\n\n// if((searchValue?.length ?? 0) < this._minLength)\n// {\n// //remove available options if multiple or empty string\n// if(isPresent(searchValue) || this.pluginBus.selectOptions.multiple)\n// {\n// this.options = [];\n// this.optionsChange.emit();\n// }\n\n// return;\n// }\n\n// this.options = await this._options.dynamicOptionsCallback(searchValue ?? '');\n// this.optionsChange.emit();\n// }\n// }"]}
|
|
@@ -1,110 +1,156 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// import {EventEmitter} from '@angular/core';
|
|
3
|
+
// import {Subscription} from 'rxjs';
|
|
4
|
+
// import {OptionsGatherer} from './optionsGatherer.interface';
|
|
5
|
+
// import {NgSelectOption, ɵNgSelectOption} from '../../components/option';
|
|
6
|
+
// import {NgSelectPluginInstances, NgSelect} from '../../components/select';
|
|
7
|
+
// import {PluginBus} from '../pluginBus/pluginBus';
|
|
8
|
+
// import {ValueHandler} from '../../plugins/valueHandler';
|
|
9
|
+
// import {VALUE_HANDLER} from '../../plugins/valueHandler/types';
|
|
10
|
+
// /**
|
|
11
|
+
// * Options gatherer using default build in gatherer extended with exclusion of selected options
|
|
12
|
+
// */
|
|
13
|
+
// export class ExcludingOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>
|
|
14
|
+
// {
|
|
15
|
+
// //######################### protected fields #########################
|
|
16
|
+
// /**
|
|
17
|
+
// * Array of visible, displayed options for select
|
|
18
|
+
// */
|
|
19
|
+
// protected _availableOptions: NgSelectOption<TValue>[] = [];
|
|
20
|
+
// /**
|
|
21
|
+
// * Occurs when array of visible, displayed options has changed
|
|
22
|
+
// */
|
|
23
|
+
// protected _availableOptionsChange: EventEmitter<void> = new EventEmitter<void>();
|
|
24
|
+
// /**
|
|
25
|
+
// * Subscription for change of available options
|
|
26
|
+
// */
|
|
27
|
+
// protected _availableOptionsChangeSubscription: Subscription;
|
|
28
|
+
// /**
|
|
29
|
+
// * Subscription for change of value in value handler
|
|
30
|
+
// */
|
|
31
|
+
// protected _valueChangedSubscription: Subscription;
|
|
32
|
+
// /**
|
|
33
|
+
// * Value handler plugin used within `NgSelect`
|
|
34
|
+
// */
|
|
35
|
+
// protected _valueHandler: ValueHandler;
|
|
36
|
+
// //######################### public properties - implementation of OptionsGatherer #########################
|
|
37
|
+
// /**
|
|
38
|
+
// * Array of provided options for select
|
|
39
|
+
// */
|
|
40
|
+
// public get options(): NgSelectOption<TValue>[]
|
|
41
|
+
// {
|
|
42
|
+
// return this.select.options;
|
|
43
|
+
// }
|
|
44
|
+
// /**
|
|
45
|
+
// * Occurs when array of provided options has changed
|
|
46
|
+
// */
|
|
47
|
+
// public get optionsChange(): EventEmitter<void>
|
|
48
|
+
// {
|
|
49
|
+
// return this.select.optionsChange;
|
|
50
|
+
// }
|
|
51
|
+
// /**
|
|
52
|
+
// * Array of visible, displayed options for select
|
|
53
|
+
// */
|
|
54
|
+
// public get availableOptions(): NgSelectOption<TValue>[]
|
|
55
|
+
// {
|
|
56
|
+
// return this._availableOptions;
|
|
57
|
+
// }
|
|
58
|
+
// /**
|
|
59
|
+
// * Occurs when array of visible, displayed options has changed
|
|
60
|
+
// */
|
|
61
|
+
// public get availableOptionsChange(): EventEmitter<void>
|
|
62
|
+
// {
|
|
63
|
+
// return this._availableOptionsChange;
|
|
64
|
+
// }
|
|
65
|
+
// /**
|
|
66
|
+
// * NgSelect plugin instances available for gatherer
|
|
67
|
+
// */
|
|
68
|
+
// public ngSelectPlugins: NgSelectPluginInstances;
|
|
69
|
+
// /**
|
|
70
|
+
// * Plugin bus used for inter plugin shared events
|
|
71
|
+
// */
|
|
72
|
+
// public pluginBus: PluginBus<TValue>;
|
|
73
|
+
// /**
|
|
74
|
+
// * Select element that implements default gatherers
|
|
75
|
+
// */
|
|
76
|
+
// public select: NgSelect<TValue>;
|
|
77
|
+
// //######################### public methods - implmentation of OptionsGatherer #########################
|
|
78
|
+
// /**
|
|
79
|
+
// * Initialize gatherer during initialization phase
|
|
80
|
+
// */
|
|
81
|
+
// public initializeGatherer(): void
|
|
82
|
+
// {
|
|
83
|
+
// this.select.initializeGatherer();
|
|
84
|
+
// this._availableOptionsChangeSubscription = this.select.availableOptionsChange.subscribe(() => this._excludeSelected());
|
|
85
|
+
// const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;
|
|
86
|
+
// if(this._valueHandler && this._valueHandler != valueHandler)
|
|
87
|
+
// {
|
|
88
|
+
// this._valueChangedSubscription.unsubscribe();
|
|
89
|
+
// this._valueChangedSubscription = null;
|
|
90
|
+
// this._valueHandler = null;
|
|
91
|
+
// }
|
|
92
|
+
// if(!this._valueHandler)
|
|
93
|
+
// {
|
|
94
|
+
// this._valueHandler = valueHandler;
|
|
95
|
+
// this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => this._excludeSelected());
|
|
96
|
+
// }
|
|
97
|
+
// this._excludeSelected();
|
|
98
|
+
// }
|
|
99
|
+
// /**
|
|
100
|
+
// * Called when gatherer needs to be destroyed
|
|
101
|
+
// */
|
|
102
|
+
// public destroyGatherer(): void
|
|
103
|
+
// {
|
|
104
|
+
// this._availableOptionsChangeSubscription?.unsubscribe();
|
|
105
|
+
// this._availableOptionsChangeSubscription = null;
|
|
106
|
+
// this._valueChangedSubscription?.unsubscribe();
|
|
107
|
+
// this._valueChangedSubscription = null;
|
|
108
|
+
// }
|
|
109
|
+
// //######################### protected methods #########################
|
|
110
|
+
// /**
|
|
111
|
+
// * Exclude selected options
|
|
112
|
+
// */
|
|
113
|
+
// protected _excludeSelected()
|
|
114
|
+
// {
|
|
115
|
+
// //nothing selected
|
|
116
|
+
// if(!this._valueHandler.value)
|
|
117
|
+
// {
|
|
118
|
+
// this._availableOptions = this.select.availableOptions;
|
|
119
|
+
// this._availableOptionsChange.emit();
|
|
120
|
+
// return;
|
|
121
|
+
// }
|
|
122
|
+
// const compare = this.pluginBus.selectOptions.valueComparer;
|
|
123
|
+
// const normalize = this.pluginBus.selectOptions.normalizer;
|
|
124
|
+
// //multi selected
|
|
125
|
+
// if(this.pluginBus.selectOptions.multiple && Array.isArray(this._valueHandler.value))
|
|
126
|
+
// {
|
|
127
|
+
// //filter out value
|
|
128
|
+
// if(this._valueHandler.value.length)
|
|
129
|
+
// {
|
|
130
|
+
// const value = this._valueHandler.value;
|
|
131
|
+
// this._availableOptions = this.select.availableOptions.filter(opt => !value.find(itm => compare(normalize(itm), normalize(opt.value))));
|
|
132
|
+
// }
|
|
133
|
+
// //nothing selected
|
|
134
|
+
// else
|
|
135
|
+
// {
|
|
136
|
+
// this._availableOptions = this.select.availableOptions;
|
|
137
|
+
// }
|
|
138
|
+
// }
|
|
139
|
+
// //single selected
|
|
140
|
+
// else if(!this.pluginBus.selectOptions.multiple)
|
|
141
|
+
// {
|
|
142
|
+
// this._availableOptions = this.select.availableOptions.filter(opt => !compare(normalize(opt.value), normalize(this._valueHandler.value)));
|
|
143
|
+
// }
|
|
144
|
+
// //deactivate selected
|
|
145
|
+
// if(Array.isArray(this._valueHandler.selectedOptions))
|
|
146
|
+
// {
|
|
147
|
+
// this._valueHandler.selectedOptions.forEach((opt: ɵNgSelectOption) => opt.active = false);
|
|
148
|
+
// }
|
|
149
|
+
// else
|
|
150
|
+
// {
|
|
151
|
+
// (this._valueHandler.selectedOptions as ɵNgSelectOption).active = false;
|
|
152
|
+
// }
|
|
153
|
+
// this._availableOptionsChange.emit();
|
|
154
|
+
// }
|
|
155
|
+
// }
|
|
110
156
|
//# sourceMappingURL=excludingOptionsGatherer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"excludingOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/excludingOptionsGatherer.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"excludingOptionsGatherer.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/excludingOptionsGatherer.ts"],"names":[],"mappings":";AAAA,8CAA8C;AAC9C,qCAAqC;AAErC,+DAA+D;AAC/D,2EAA2E;AAC3E,6EAA6E;AAC7E,oDAAoD;AACpD,2DAA2D;AAC3D,kEAAkE;AAElE,MAAM;AACN,kGAAkG;AAClG,MAAM;AACN,yFAAyF;AACzF,IAAI;AACJ,6EAA6E;AAE7E,UAAU;AACV,wDAAwD;AACxD,UAAU;AACV,kEAAkE;AAElE,UAAU;AACV,qEAAqE;AACrE,UAAU;AACV,wFAAwF;AAExF,UAAU;AACV,sDAAsD;AACtD,UAAU;AACV,mEAAmE;AAEnE,UAAU;AACV,2DAA2D;AAC3D,UAAU;AACV,yDAAyD;AAEzD,UAAU;AACV,qDAAqD;AACrD,UAAU;AACV,6CAA6C;AAE7C,kHAAkH;AAElH,UAAU;AACV,8CAA8C;AAC9C,UAAU;AACV,qDAAqD;AACrD,QAAQ;AACR,sCAAsC;AACtC,QAAQ;AAER,UAAU;AACV,2DAA2D;AAC3D,UAAU;AACV,qDAAqD;AACrD,QAAQ;AACR,4CAA4C;AAC5C,QAAQ;AAER,UAAU;AACV,wDAAwD;AACxD,UAAU;AACV,8DAA8D;AAC9D,QAAQ;AACR,yCAAyC;AACzC,QAAQ;AAER,UAAU;AACV,qEAAqE;AACrE,UAAU;AACV,8DAA8D;AAC9D,QAAQ;AACR,+CAA+C;AAC/C,QAAQ;AAER,UAAU;AACV,0DAA0D;AAC1D,UAAU;AACV,uDAAuD;AAEvD,UAAU;AACV,wDAAwD;AACxD,UAAU;AACV,2CAA2C;AAE3C,UAAU;AACV,0DAA0D;AAC1D,UAAU;AACV,uCAAuC;AAEvC,8GAA8G;AAE9G,UAAU;AACV,yDAAyD;AACzD,UAAU;AACV,wCAAwC;AACxC,QAAQ;AACR,4CAA4C;AAE5C,kIAAkI;AAElI,oFAAoF;AAEpF,uEAAuE;AACvE,YAAY;AACZ,4DAA4D;AAC5D,qDAAqD;AAErD,yCAAyC;AACzC,YAAY;AAEZ,kCAAkC;AAClC,YAAY;AACZ,iDAAiD;AAEjD,wHAAwH;AACxH,YAAY;AAEZ,mCAAmC;AACnC,QAAQ;AAER,UAAU;AACV,oDAAoD;AACpD,UAAU;AACV,qCAAqC;AACrC,QAAQ;AACR,mEAAmE;AACnE,2DAA2D;AAE3D,yDAAyD;AACzD,iDAAiD;AACjD,QAAQ;AAER,8EAA8E;AAE9E,UAAU;AACV,kCAAkC;AAClC,UAAU;AACV,mCAAmC;AACnC,QAAQ;AACR,6BAA6B;AAC7B,wCAAwC;AACxC,YAAY;AACZ,qEAAqE;AACrE,mDAAmD;AAEnD,sBAAsB;AACtB,YAAY;AAEZ,sEAAsE;AACtE,qEAAqE;AAErE,2BAA2B;AAC3B,+FAA+F;AAC/F,YAAY;AACZ,iCAAiC;AACjC,kDAAkD;AAClD,gBAAgB;AAChB,0DAA0D;AAE1D,0JAA0J;AAC1J,gBAAgB;AAChB,iCAAiC;AACjC,mBAAmB;AACnB,gBAAgB;AAChB,yEAAyE;AACzE,gBAAgB;AAChB,YAAY;AACZ,4BAA4B;AAC5B,0DAA0D;AAC1D,YAAY;AACZ,wJAAwJ;AACxJ,YAAY;AAEZ,gCAAgC;AAChC,gEAAgE;AAChE,YAAY;AACZ,wGAAwG;AACxG,YAAY;AACZ,eAAe;AACf,YAAY;AACZ,sFAAsF;AACtF,YAAY;AAEZ,+CAA+C;AAC/C,QAAQ;AACR,IAAI","sourcesContent":["// import {EventEmitter} from '@angular/core';\n// import {Subscription} from 'rxjs';\n\n// import {OptionsGatherer} from './optionsGatherer.interface';\n// import {NgSelectOption, ɵNgSelectOption} from '../../components/option';\n// import {NgSelectPluginInstances, NgSelect} from '../../components/select';\n// import {PluginBus} from '../pluginBus/pluginBus';\n// import {ValueHandler} from '../../plugins/valueHandler';\n// import {VALUE_HANDLER} from '../../plugins/valueHandler/types';\n\n// /**\n// * Options gatherer using default build in gatherer extended with exclusion of selected options\n// */\n// export class ExcludingOptionsGatherer<TValue = any> implements OptionsGatherer<TValue>\n// {\n// //######################### protected fields #########################\n\n// /**\n// * Array of visible, displayed options for select\n// */\n// protected _availableOptions: NgSelectOption<TValue>[] = [];\n\n// /**\n// * Occurs when array of visible, displayed options has changed\n// */\n// protected _availableOptionsChange: EventEmitter<void> = new EventEmitter<void>();\n\n// /**\n// * Subscription for change of available options\n// */\n// protected _availableOptionsChangeSubscription: Subscription;\n\n// /**\n// * Subscription for change of value in value handler\n// */\n// protected _valueChangedSubscription: Subscription;\n\n// /**\n// * Value handler plugin used within `NgSelect`\n// */\n// protected _valueHandler: ValueHandler;\n\n// //######################### public properties - implementation of OptionsGatherer #########################\n\n// /**\n// * Array of provided options for select\n// */\n// public get options(): NgSelectOption<TValue>[]\n// {\n// return this.select.options;\n// }\n\n// /**\n// * Occurs when array of provided options has changed\n// */\n// public get optionsChange(): EventEmitter<void>\n// {\n// return this.select.optionsChange;\n// }\n\n// /**\n// * Array of visible, displayed options for select\n// */\n// public get availableOptions(): NgSelectOption<TValue>[]\n// {\n// return this._availableOptions;\n// }\n\n// /**\n// * Occurs when array of visible, displayed options has changed\n// */\n// public get availableOptionsChange(): EventEmitter<void>\n// {\n// return this._availableOptionsChange;\n// }\n\n// /**\n// * NgSelect plugin instances available for gatherer\n// */\n// public ngSelectPlugins: NgSelectPluginInstances;\n\n// /**\n// * Plugin bus used for inter plugin shared events\n// */\n// public pluginBus: PluginBus<TValue>;\n\n// /**\n// * Select element that implements default gatherers\n// */\n// public select: NgSelect<TValue>;\n\n// //######################### public methods - implmentation of OptionsGatherer #########################\n\n// /**\n// * Initialize gatherer during initialization phase\n// */\n// public initializeGatherer(): void\n// {\n// this.select.initializeGatherer();\n\n// this._availableOptionsChangeSubscription = this.select.availableOptionsChange.subscribe(() => this._excludeSelected());\n\n// const valueHandler = this.ngSelectPlugins[VALUE_HANDLER] as ValueHandler;\n\n// if(this._valueHandler && this._valueHandler != valueHandler)\n// {\n// this._valueChangedSubscription.unsubscribe();\n// this._valueChangedSubscription = null;\n\n// this._valueHandler = null;\n// }\n\n// if(!this._valueHandler)\n// {\n// this._valueHandler = valueHandler;\n\n// this._valueChangedSubscription = this._valueHandler.valueChange.subscribe(() => this._excludeSelected());\n// }\n\n// this._excludeSelected();\n// }\n\n// /**\n// * Called when gatherer needs to be destroyed\n// */\n// public destroyGatherer(): void\n// {\n// this._availableOptionsChangeSubscription?.unsubscribe();\n// this._availableOptionsChangeSubscription = null;\n\n// this._valueChangedSubscription?.unsubscribe();\n// this._valueChangedSubscription = null;\n// }\n\n// //######################### protected methods #########################\n\n// /**\n// * Exclude selected options\n// */\n// protected _excludeSelected()\n// {\n// //nothing selected\n// if(!this._valueHandler.value)\n// {\n// this._availableOptions = this.select.availableOptions;\n// this._availableOptionsChange.emit();\n\n// return;\n// }\n\n// const compare = this.pluginBus.selectOptions.valueComparer;\n// const normalize = this.pluginBus.selectOptions.normalizer;\n\n// //multi selected\n// if(this.pluginBus.selectOptions.multiple && Array.isArray(this._valueHandler.value))\n// {\n// //filter out value\n// if(this._valueHandler.value.length)\n// {\n// const value = this._valueHandler.value;\n \n// this._availableOptions = this.select.availableOptions.filter(opt => !value.find(itm => compare(normalize(itm), normalize(opt.value))));\n// }\n// //nothing selected\n// else\n// {\n// this._availableOptions = this.select.availableOptions;\n// }\n// }\n// //single selected\n// else if(!this.pluginBus.selectOptions.multiple)\n// {\n// this._availableOptions = this.select.availableOptions.filter(opt => !compare(normalize(opt.value), normalize(this._valueHandler.value)));\n// }\n\n// //deactivate selected\n// if(Array.isArray(this._valueHandler.selectedOptions))\n// {\n// this._valueHandler.selectedOptions.forEach((opt: ɵNgSelectOption) => opt.active = false);\n// }\n// else\n// {\n// (this._valueHandler.selectedOptions as ɵNgSelectOption).active = false;\n// }\n\n// this._availableOptionsChange.emit();\n// }\n// }"]}
|
|
@@ -1,2 +1,56 @@
|
|
|
1
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
// import {EventEmitter} from '@angular/core';
|
|
3
|
+
// import {NgSelectOption} from '../../components/option/option.interface';
|
|
4
|
+
// import {NgSelectPluginInstances, NgSelect} from '../../components/select';
|
|
5
|
+
// import {NormalizeFunc} from '../ngSelectOptions.interface';
|
|
6
|
+
// import {PluginBus} from '../pluginBus/pluginBus';
|
|
7
|
+
// /**
|
|
8
|
+
// * Callback that is used for filtering static values during live search
|
|
9
|
+
// */
|
|
10
|
+
// export interface LiveSearchFilter<TValue = any>
|
|
11
|
+
// {
|
|
12
|
+
// (query: string, normalizer?: NormalizeFunc<TValue>): (option: NgSelectOption<TValue>) => boolean
|
|
13
|
+
// }
|
|
14
|
+
// /**
|
|
15
|
+
// * Gatherer used for obtaining options for select
|
|
16
|
+
// */
|
|
17
|
+
// export interface OptionsGatherer<TValue = unknown>
|
|
18
|
+
// {
|
|
19
|
+
// /**
|
|
20
|
+
// * Array of provided options for select
|
|
21
|
+
// */
|
|
22
|
+
// readonly options: NgSelectOption<TValue>[];
|
|
23
|
+
// /**
|
|
24
|
+
// * Occurs when array of provided options has changed
|
|
25
|
+
// */
|
|
26
|
+
// readonly optionsChange: EventEmitter<void>;
|
|
27
|
+
// /**
|
|
28
|
+
// * Array of visible, displayed options for select
|
|
29
|
+
// */
|
|
30
|
+
// readonly availableOptions: NgSelectOption<TValue>[];
|
|
31
|
+
// /**
|
|
32
|
+
// * Occurs when array of visible, displayed options has changed
|
|
33
|
+
// */
|
|
34
|
+
// readonly availableOptionsChange: EventEmitter<void>;
|
|
35
|
+
// /**
|
|
36
|
+
// * NgSelect plugin instances available for gatherer
|
|
37
|
+
// */
|
|
38
|
+
// ngSelectPlugins: NgSelectPluginInstances;
|
|
39
|
+
// /**
|
|
40
|
+
// * Plugin bus used for inter plugin shared events
|
|
41
|
+
// */
|
|
42
|
+
// pluginBus: PluginBus<TValue>;
|
|
43
|
+
// /**
|
|
44
|
+
// * Select element that implements default gatherers
|
|
45
|
+
// */
|
|
46
|
+
// select: NgSelect<TValue>;
|
|
47
|
+
// /**
|
|
48
|
+
// * Initialize gatherer during initialization phase
|
|
49
|
+
// */
|
|
50
|
+
// initializeGatherer(): void;
|
|
51
|
+
// /**
|
|
52
|
+
// * Called when gatherer needs to be destroyed
|
|
53
|
+
// */
|
|
54
|
+
// destroyGatherer(): void;
|
|
55
|
+
// }
|
|
2
56
|
//# sourceMappingURL=optionsGatherer.interface.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"optionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/optionsGatherer.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {EventEmitter} from '@angular/core';\n\
|
|
1
|
+
{"version":3,"file":"optionsGatherer.interface.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/optionsGatherer.interface.ts"],"names":[],"mappings":";AAAA,8CAA8C;AAE9C,2EAA2E;AAC3E,6EAA6E;AAC7E,8DAA8D;AAC9D,oDAAoD;AAEpD,MAAM;AACN,0EAA0E;AAC1E,MAAM;AACN,kDAAkD;AAClD,IAAI;AACJ,uGAAuG;AACvG,IAAI;AAEJ,MAAM;AACN,oDAAoD;AACpD,MAAM;AACN,qDAAqD;AACrD,IAAI;AACJ,UAAU;AACV,8CAA8C;AAC9C,UAAU;AACV,kDAAkD;AAElD,UAAU;AACV,2DAA2D;AAC3D,UAAU;AACV,kDAAkD;AAElD,UAAU;AACV,wDAAwD;AACxD,UAAU;AACV,2DAA2D;AAE3D,UAAU;AACV,qEAAqE;AACrE,UAAU;AACV,2DAA2D;AAE3D,UAAU;AACV,0DAA0D;AAC1D,UAAU;AACV,gDAAgD;AAEhD,UAAU;AACV,wDAAwD;AACxD,UAAU;AACV,oCAAoC;AAEpC,UAAU;AACV,0DAA0D;AAC1D,UAAU;AACV,gCAAgC;AAEhC,UAAU;AACV,yDAAyD;AACzD,UAAU;AACV,kCAAkC;AAElC,UAAU;AACV,oDAAoD;AACpD,UAAU;AACV,+BAA+B;AAC/B,IAAI","sourcesContent":["// import {EventEmitter} from '@angular/core';\n\n// import {NgSelectOption} from '../../components/option/option.interface';\n// import {NgSelectPluginInstances, NgSelect} from '../../components/select';\n// import {NormalizeFunc} from '../ngSelectOptions.interface';\n// import {PluginBus} from '../pluginBus/pluginBus';\n\n// /**\n// * Callback that is used for filtering static values during live search\n// */\n// export interface LiveSearchFilter<TValue = any>\n// {\n// (query: string, normalizer?: NormalizeFunc<TValue>): (option: NgSelectOption<TValue>) => boolean\n// }\n\n// /**\n// * Gatherer used for obtaining options for select\n// */\n// export interface OptionsGatherer<TValue = unknown>\n// {\n// /**\n// * Array of provided options for select\n// */\n// readonly options: NgSelectOption<TValue>[];\n\n// /**\n// * Occurs when array of provided options has changed\n// */\n// readonly optionsChange: EventEmitter<void>;\n\n// /**\n// * Array of visible, displayed options for select\n// */\n// readonly availableOptions: NgSelectOption<TValue>[];\n\n// /**\n// * Occurs when array of visible, displayed options has changed\n// */\n// readonly availableOptionsChange: EventEmitter<void>;\n\n// /**\n// * NgSelect plugin instances available for gatherer\n// */\n// ngSelectPlugins: NgSelectPluginInstances;\n\n// /**\n// * Plugin bus used for inter plugin shared events\n// */\n// pluginBus: PluginBus<TValue>;\n\n// /**\n// * Select element that implements default gatherers\n// */\n// select: NgSelect<TValue>;\n\n// /**\n// * Initialize gatherer during initialization phase\n// */\n// initializeGatherer(): void;\n\n// /**\n// * Called when gatherer needs to be destroyed\n// */\n// destroyGatherer(): void;\n// }"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
1
|
+
"use strict";
|
|
2
|
+
// export * from './codeOptionsGatherer';
|
|
3
|
+
// export * from './dynamicOptionsGatherer';
|
|
4
|
+
// export * from './excludingOptionsGatherer';
|
|
4
5
|
//# sourceMappingURL=types.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../../src/misc/optionsGatherer/types.ts"],"names":[],"mappings":";AAAA,yCAAyC;AACzC,4CAA4C;AAC5C,8CAA8C","sourcesContent":["// export * from './codeOptionsGatherer';\n// export * from './dynamicOptionsGatherer';\n// export * from './excludingOptionsGatherer';"]}
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { INTERACTIONS_TYPE, KEYBOARD_HANDLER_TYPE, LIVE_SEARCH_TYPE, NORMAL_STATE_TYPE, OPTIONS_HANDLER_TYPE, POPUP_TYPE, POSITIONER_TYPE, READONLY_STATE_TYPE, SELECT_OPTIONS, VALUE_HANDLER_TYPE } from './tokens';
|
|
2
|
+
/**
|
|
3
|
+
* Provides options for select globally
|
|
4
|
+
* @param options - Options to be provided
|
|
5
|
+
*/
|
|
6
|
+
export function provideSelectOptions(options) {
|
|
7
|
+
return {
|
|
8
|
+
provide: SELECT_OPTIONS,
|
|
9
|
+
useValue: options,
|
|
10
|
+
};
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Provides type of keyboard handler that will be used for select globally
|
|
14
|
+
* @param type - Type to be used as keyboard handler
|
|
15
|
+
*/
|
|
16
|
+
export function provideKeyboardHandlerType(type) {
|
|
17
|
+
return {
|
|
18
|
+
provide: KEYBOARD_HANDLER_TYPE,
|
|
19
|
+
useValue: type,
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Provides type of normal state that will be used for select globally
|
|
24
|
+
* @param type - Type to be used as normal state
|
|
25
|
+
*/
|
|
26
|
+
export function provideNormalStateType(type) {
|
|
27
|
+
return {
|
|
28
|
+
provide: NORMAL_STATE_TYPE,
|
|
29
|
+
useValue: type,
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Provides type of popup that will be used for select globally
|
|
34
|
+
* @param type - Type to be used as popup
|
|
35
|
+
*/
|
|
36
|
+
export function providePopupType(type) {
|
|
37
|
+
return {
|
|
38
|
+
provide: POPUP_TYPE,
|
|
39
|
+
useValue: type,
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Provides type of positioner that will be used for select globally
|
|
44
|
+
* @param type - Type to be used as positioner
|
|
45
|
+
*/
|
|
46
|
+
export function providePositionerType(type) {
|
|
47
|
+
return {
|
|
48
|
+
provide: POSITIONER_TYPE,
|
|
49
|
+
useValue: type,
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Provides type of readonly state that will be used for select globally
|
|
54
|
+
* @param type - Type to be used as readonly state
|
|
55
|
+
*/
|
|
56
|
+
export function provideReadonlyStateType(type) {
|
|
57
|
+
return {
|
|
58
|
+
provide: READONLY_STATE_TYPE,
|
|
59
|
+
useValue: type,
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Provides type of value handler that will be used for select globally
|
|
64
|
+
* @param type - Type to be used as value handler
|
|
65
|
+
*/
|
|
66
|
+
export function provideValueHandlerType(type) {
|
|
67
|
+
return {
|
|
68
|
+
provide: VALUE_HANDLER_TYPE,
|
|
69
|
+
useValue: type,
|
|
70
|
+
};
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* Provides type of live search that will be used for select globally
|
|
74
|
+
* @param type - Type to be used as live search
|
|
75
|
+
*/
|
|
76
|
+
export function provideLiveSearchType(type) {
|
|
77
|
+
return {
|
|
78
|
+
provide: LIVE_SEARCH_TYPE,
|
|
79
|
+
useValue: type,
|
|
80
|
+
};
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Provides type of interactions that will be used for select globally
|
|
84
|
+
* @param type - Type to be used as interactions
|
|
85
|
+
*/
|
|
86
|
+
export function provideInteractionsType(type) {
|
|
87
|
+
return {
|
|
88
|
+
provide: INTERACTIONS_TYPE,
|
|
89
|
+
useValue: type,
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Provides type of options handler that will be used for select globally
|
|
94
|
+
* @param type - Type to be used as options handler
|
|
95
|
+
*/
|
|
96
|
+
export function provideOptionsHandlerType(type) {
|
|
97
|
+
return {
|
|
98
|
+
provide: OPTIONS_HANDLER_TYPE,
|
|
99
|
+
useValue: type,
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=providers.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"providers.js","sourceRoot":"","sources":["../../../src/misc/providers.ts"],"names":[],"mappings":"AAIA,OAAO,EAAC,iBAAiB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,UAAU,EAAE,eAAe,EAAE,mBAAmB,EAAE,cAAc,EAAE,kBAAkB,EAAC,MAAM,UAAU,CAAC;AAEnN;;;GAGG;AACH,MAAM,UAAU,oBAAoB,CAAC,OAAwC;IAEzE,OAAsB;QAClB,OAAO,EAAE,cAAc;QACvB,QAAQ,EAAE,OAAO;KACpB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,0BAA0B,CAAC,IAA2B;IAElE,OAAsB;QAClB,OAAO,EAAE,qBAAqB;QAC9B,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,sBAAsB,CAAC,IAAuB;IAE1D,OAAsB;QAClB,OAAO,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,gBAAgB,CAAC,IAAiB;IAE9C,OAAsB;QAClB,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAsB;IAExD,OAAsB;QAClB,OAAO,EAAE,eAAe;QACxB,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,wBAAwB,CAAC,IAAyB;IAE9D,OAAsB;QAClB,OAAO,EAAE,mBAAmB;QAC5B,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAwB;IAE5D,OAAsB;QAClB,OAAO,EAAE,kBAAkB;QAC3B,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB,CAAC,IAAsB;IAExD,OAAsB;QAClB,OAAO,EAAE,gBAAgB;QACzB,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,uBAAuB,CAAC,IAAwB;IAE5D,OAAsB;QAClB,OAAO,EAAE,iBAAiB;QAC1B,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,yBAAyB,CAAC,IAA0B;IAEhE,OAAsB;QAClB,OAAO,EAAE,oBAAoB;QAC7B,QAAQ,EAAE,IAAI;KACjB,CAAC;AACN,CAAC","sourcesContent":["import {Provider, Type, ValueProvider} from '@angular/core';\nimport {RecursivePartial} from '@jscrpt/common';\n\nimport {Interactions, KeyboardHandler, LiveSearch, NormalState, OptionsHandler, Popup, Positioner, ReadonlyState, SelectOptions, ValueHandler} from '../interfaces';\nimport {INTERACTIONS_TYPE, KEYBOARD_HANDLER_TYPE, LIVE_SEARCH_TYPE, NORMAL_STATE_TYPE, OPTIONS_HANDLER_TYPE, POPUP_TYPE, POSITIONER_TYPE, READONLY_STATE_TYPE, SELECT_OPTIONS, VALUE_HANDLER_TYPE} from './tokens';\n\n/**\n * Provides options for select globally\n * @param options - Options to be provided\n */\nexport function provideSelectOptions(options: RecursivePartial<SelectOptions>): Provider\n{\n return <ValueProvider>{\n provide: SELECT_OPTIONS,\n useValue: options,\n };\n}\n\n/**\n * Provides type of keyboard handler that will be used for select globally\n * @param type - Type to be used as keyboard handler\n */\nexport function provideKeyboardHandlerType(type: Type<KeyboardHandler>): Provider\n{\n return <ValueProvider>{\n provide: KEYBOARD_HANDLER_TYPE,\n useValue: type,\n };\n}\n\n/**\n * Provides type of normal state that will be used for select globally\n * @param type - Type to be used as normal state\n */\nexport function provideNormalStateType(type: Type<NormalState>): Provider\n{\n return <ValueProvider>{\n provide: NORMAL_STATE_TYPE,\n useValue: type,\n };\n}\n\n/**\n * Provides type of popup that will be used for select globally\n * @param type - Type to be used as popup\n */\nexport function providePopupType(type: Type<Popup>): Provider\n{\n return <ValueProvider>{\n provide: POPUP_TYPE,\n useValue: type,\n };\n}\n\n/**\n * Provides type of positioner that will be used for select globally\n * @param type - Type to be used as positioner\n */\nexport function providePositionerType(type: Type<Positioner>): Provider\n{\n return <ValueProvider>{\n provide: POSITIONER_TYPE,\n useValue: type,\n };\n}\n\n/**\n * Provides type of readonly state that will be used for select globally\n * @param type - Type to be used as readonly state\n */\nexport function provideReadonlyStateType(type: Type<ReadonlyState>): Provider\n{\n return <ValueProvider>{\n provide: READONLY_STATE_TYPE,\n useValue: type,\n };\n}\n\n/**\n * Provides type of value handler that will be used for select globally\n * @param type - Type to be used as value handler\n */\nexport function provideValueHandlerType(type: Type<ValueHandler>): Provider\n{\n return <ValueProvider>{\n provide: VALUE_HANDLER_TYPE,\n useValue: type,\n };\n}\n\n/**\n * Provides type of live search that will be used for select globally\n * @param type - Type to be used as live search\n */\nexport function provideLiveSearchType(type: Type<LiveSearch>): Provider\n{\n return <ValueProvider>{\n provide: LIVE_SEARCH_TYPE,\n useValue: type,\n };\n}\n\n/**\n * Provides type of interactions that will be used for select globally\n * @param type - Type to be used as interactions\n */\nexport function provideInteractionsType(type: Type<Interactions>): Provider\n{\n return <ValueProvider>{\n provide: INTERACTIONS_TYPE,\n useValue: type,\n };\n}\n\n/**\n * Provides type of options handler that will be used for select globally\n * @param type - Type to be used as options handler\n */\nexport function provideOptionsHandlerType(type: Type<OptionsHandler>): Provider\n{\n return <ValueProvider>{\n provide: OPTIONS_HANDLER_TYPE,\n useValue: type,\n };\n}\n"]}
|