- new
DefaultPositioner
interface, that represents public API for 'DefaultPositionerComponent'- extends
Positioner
- extends
- new
DefaultPositionerOptions
interface, that represents default positioner options- extends
PositionerOptions
- extends
- new
DefaultPositionerComponent
component, that is used for positioning popup element, handles resize, scroll and collision usingPosition
- implements
DefaultPositioner
NgSelectPlugin<DefaultPositionerOptions>
OnDestroy
- implements
- updated
Positioner
interface- new properties
flip
occurs when flip occured during positining of popup
- new properties
- updated
PositionerOptions
interface- new properties
positionOptions
options used for positioning
- new properties
- updated minimal version requirements for
Node.js
(14.20.0
or16.13.0
or18.10.0
) - minimal supported version of
@angular
is now15.0.4
- minimal supported version of
rxjs
is now7.5.6
- minimal supported version of
@jscrpt/common
is now3.3.0
- minimal supported version of
@anglr/common
is now15.0.1
- minimal supported version of
tslib
is now2.4.1
- removed dependency from
positions
- removed dependency from
@popperjs/core
- removed subpackage
@anglr/select/popperjs
- updated
PositionerOptions
interface- new way of configuring displayed popup
- removed properties
optionsCoordinates
selectCoordinates
- removed
ScrollTargetSelector
service - removed
BasicPositionerComponent
component, replaced withDefaultPositionerComponent
- removed
BasicPositionerOptions
interface, replaced withDefaultPositionerOptions
- removed
BasicPositioner
interface, replaced withDefaultPositioner
- fixed first import at
index
- fixed missing exports for
NgSelectAbsoluteDirective
- fixed missing exports for
NgSelectPlaceholderDirective
- fixed typings, not using rolled up typings for now
- minimal supported version of Angular is
13.1.0
- minimal supported version of
@jscrpt/common
is2.2.0
- minimal supported version of
@anglr/common
is10.0.0
- compiled as Angular IVY only with new APF
- removed support of es5 target and using latest package.json features
- removed dependency
@anglr/types
, all mising types used directly here - dropped support of
Node.js <= 12.20
- added new option
flipCallback
forBasicPositioner
plugin, which allows to execute when flip occurs - added new option
scrollTarget
forBasicPositioner
plugin, which allows to provided scroll target element - added new option
activateOnScroll
forBasicPositioner
plugin, which allows turning on and off watching for scroll event and changing position of popup, defaults totrue
- added new option
activateOnResize
forBasicPositioner
plugin, which allows turning on and off watching for resize event and changing position of popup, defaults totrue
- added new
ScrollTargetSelector
service that is for obtaining scroll target - added new
showOptionsButton
option forEditNormalState
, allowing displaying or hiding button for displaying options - added subpackage
@anglr/select/popperjs
- subpackage
@anglr/select/material
- added new
VirtualEditPopupModule
as module forVirtualEditPopup
components, can also by used for non edit version - added new
VirtualEditPopupComponent
plugin used for rendering virtual edit popup with options - added
CssClassesVirtualEditPopup
,VirtualEditPopupOptions
,VirtualEditPopup
as interfaces for virtual edit popup
- added new
- subpackage
@anglr/select/popperjs
- added new
PopperJsPositionerModule
as module forPopperJsPositioner
components - added new
PopperJsPositionerComponent
plugin used for positioning popup usingpopper.js
- added
PopperJsPositionerOptions
,PopperJsPositioner
as interfaces for popper.js positioner
- added new
- minimal supported version of Angular is
10.0.0
- minimal supported version of
@jscrpt/common
is1.2.0
- minimal supported version of
@anglr/common
is9.0.0
BasicPositionerComponent
has new parameter in constructorScrollTargetSelector
- fixed
absolute
selectpopup
plugin, now should correctly useliveSearch
plugin - fixed
NgSelectControlValueAccessor
now using===
for comparison of multivalue andvalueComparer
for single value comparison when changing value
- fixed forgotten
console.trace
in code, removed - fixed default
valueComparer
, now using===
for correct comparison
- fixed problem with setting select as readonly or disabled, when
NormalState
plugin was completely removed from plugins
- fixed dynamic
DynamicOptionsGatherer
now correctly uses selected option text during initialization, if live search text is not present, to obtain available options - fixed dynamic
DynamicOptionsGatherer
now keeps last available options for single value select if live search text has not changed - fixed
EditLiveSearchComponent
now resets displayed value whenvalueHandler.value
has changed - fixed displaying of multi value in
EditNormalStateComponent
withobject
as value - fixed
EditNormalStateComponent
canceling of selected value now updates displayed live search text - fixed
DynamicValueHandlerComponent
multi value change now correctly changes instance of array
- added new
NgSelectAbsoluteDirective
directive that allows you to set select popup to absolute usingabsolute
html attribute - added new
NgSelectPlaceholderDirective
directive that allows you to set select live search placeholder text usingplaceholder
html attribute - added new
NgSelectHasValuePipe
pipe that allows you to test whethervalueHandler.selectedOptions
has any value selected NgSelectValuePipe
extended with new optional parameter, which allows you to change displayed text of selected optionsEditLiveSearchOptions
extended with new optionemptyCancel
, if set to true, empty live search cancels selected single select valueNormalStateOptions
extended with new optionoptionDisplayText
, which allows you to set function callback used for obtaining display text for normalState
- fixed removing of html element for absolute
popup
plugin - fixed
DynamicValueHandler
adding value to multi select
- added new module
NgSelectEditModule
which contains components for displaying select with editation and tags - added new component
EditLiveSearchComponent
which allows is used withinEditNormalStateComponent
for editing and displaying selected value - added new component
EditNormalStateComponent
which usesEditLiveSearchComponent
for editing and displaying selected value - added new component
EditPopupComponent
which is used for editing and displaying selected value - added new component
EditKeyboardHandlerComponent
which is used handling keyboard events in edit select - added new directive
NgSelectEditDirective
which configuresNgSelect
to use edit plugin components - added new
ExcludingOptionsGatherer
which allows removal of selected options from available options, extends built in options gatherer - added new option for select,
normalizer
which is function which allows normalization of value before using it in search optionsGatherer
extended withselect
containing select instance itselfPluginBus
extended withliveSearchFocus
used for emitting event that should set focus on live search inputPluginBus
extended withupdateDisplayedValue
used for emitting event that should update displayed value if needed
valueHandler
plugin does not handlepopup
plugin visibility change anymorepopup
plugin now has text for displaying text when no results available options- base
PopupAbstractComponent
class requiresStringLocalization
service as constructor parameter CodeOptionsGatherer
constructor does not acceptNormalizer
andLiveSearch
, they are used from selection options
- fixed canceling value for
ValueHandlerBase
for multi value
- all generic types are now optional, all defaults to
any
- added new method
listenTo
toNgSelect
allowing subscribing to select events - added
PluginBus
which serves serves as bus for shared events also shared select options and gatherersselectOptions
, only relevant optionsselectElement
, element representing root html select elementtogglePopup
, handles popup visibility togglingshowHidePopup
, handles changing visibility of popupoptionSelect
, handles option selectionoptionCancel
, handles options cancelationfocus
, hanles gaining focus
- added new extension method
patchOptions
which allows changing options without running initialization optionsGatherer
extended withpluginBus
- added
NormalStateAbstractComponent
for easier implementation of newnormalState
plugin - added
PopupAbstractComponent
for easier implementation of newpopup
plugin - added
DialogPopupDirective
allowing changing popup to dialog using directive - added new
NoPositionerComponent
asPositioner
plugin - subpackage
@anglr/select/material
- added new
DialogPopupModule
that allows usage of DialogPopupComponent - added new
DialogPopupComponent
asPopup
plugin (using angular cdk dialog)
- added new
- all plugins now have to have
pluginBus
KeyboardHandler
plugin removedselectElement
,optionsGatherer
,popupVisibilityRequest
,optionSelect
properties, use newPluginBus
insteadNormalState
plugin removedtemplateGatherer
,click
,focus
,cancelOption
,readonly
properties, use newPluginBus
insteadPositioner
plugin removedselectElement
,optionsGatherer
properties, use newPluginBus
insteadPopup
plugin removedmultiple
,optionsGatherer
,templateGatherer
,selectElement
,optionClick
properties, use newPluginBus
insteadValueHandler
plugin removedmultiple
,optionsGatherer
,valueComparer
,liveSearchFilter
,normalizer
,popupVisibilityRequest
properties, use newPluginBus
instead- subpackage
@anglr/select/material
- completely changed types for
DialogPopup
- renamed
DialogPopupModule
toNgSelectDialogPopupModule
- completely changed types for
- updated
BasicPositionerComponent
, logic for positioning moved to@anglr/common/positions
- updated to latest stable Angular 9
- added generating of API doc
- fixed emitting of same value during initialization as form control change
- added support for absolute popup using
absolute
option forNgSelectOptions
- fixed emitting of
null
value for initialization ofBasicValueHandlerComponent
with lazy options - added new options for select
forceValueCheckOnInit
which allows setting of realValueHandler
toFormControl
on initialization - fixed overflowing
NormalState
text over icon
- fixed detect changes after view was destroyed in
NormalStateComponent
when used in ngIf
- updated dependency on
@anglr/common
to at least version6.4.0
- plugin
TextsLocator
replaced withStringLocalization
service from common
- initial version of new
NgSelectComponent
- SSR support
- Angular IVY ready (APF compliant package)
- added support for ES2015 compilation
- Angular 8
- new
NgSelectComponent
is modular with support of several plugins- selectors for component are
ng-select
,ng-option
,ng-optgroup
- selectors for component are
- supported plugins
KeyboardHandler
plugin, allows handling of keyboard eventsLiveSearch
plugin, allows user to filter optionsNoLiveSearchComponent
used when there is no need for live search, defaultBasicLiveSearchComponent
used when you want basic live search input
NormalState
plugin, represents normal state ofNgSelect
which you can seePopup
plugin, represents popup with optionsPositioner
plugin, allows positioning ofPopup
ReadonlyState
plugin, if specified allows special look of readonly, disabled state ofNgSelect
, defaults to readonlyNormalState
TextsLocator
plugin, used for obtaining texts that are displayedValueHandler
plugin, represents internal state of value inNgSelect
and handling of value changesBasicValueHandlerComponent
allows only values that exists in options, defaultDynamicValueHandlerComponent
allows any value, even values non existing in options, best used for dynamically loaded options
OptionsGatherer
used for obtaining options, defaults toNgSelectComponent
itself, allows obtaining options asContentChildren
DynamicOptionsGatherer
used for obtaining options dynamically, best with combination of live searchCodeOptionsGatherer
used for obtaining static options but directly from code, not from html template
TemplateGatherer
allows gathering custom templates, defaults toNgSelect
usingContentChild
optionTemplate
- template that allows changing look of option contentnormalStateTemplate
- template that allows changing look of normal state content
NgSelect
support extensions that can execute some code overNgSelect
and its pluginsgetValue
extension allows obtaining of current value ofNgSelect
onFocus
extension allows registration of callback whenNgSelect
gains focusreinitializeOptions
extension allows reinitialization ofselectOptions
setReadonly
extension allows changing state ofNgSelect
, readonly or normalsetValue
extension allows changing current value ofNgSelect
valueChange
extension allows registration of callback whenNgSelect
value changes