- New:
nameAttr
andvalueAttr
support integer value. - Bug: fixes #7.
- New #4:
queryMode
param which determines if thesearchParam
will be in query mode or a param mode.
- Bug: fixes #2.
- Enh: require
angular
when use withCommonJS
orAMD
. - Enh: add the css to the main in
bower.json
to bewiredep
friendly.
- Bug: fix
each
iterator.
- Bug:
- change the position of list element to
absolute
. - unset error state over input change.
- change the position of list element to
- Bug:
- fix resize and repositioning on window resize functionality.
- passed options object won't be changed so it's possible to pass it to another np-autocomplete.
- Chg:
- Attributes:
npInputModel
andngModel
are not linked withselectedItem
anymore.
- Scope Methods:
: becamematch
highlight
.
- Scope Properties:
: becameisLoading
loading
.
- Template:
- list element:
id
andstyle
attributes has been added. - list element:
,class
andng-style
attributes has been removed.ng-if
- message items: new one has been added for the error state.
- message items:
ng-class
attribute has been added. - message items: fixed
list-group-itemclass has been removed. - transclusion element:
id
became np-autocomplete-transclude. - all angular expressions replaced with
ng-bind
.
- list element:
- Item Template:
: has been removed.class
- highlight text: wrapper tag changed from
tospan
mark
. - highlight text: fixed
np-autocomplete-matchclass has been removed.
- Params:
openedClass
: becameopenStateClass
.closedClass
: becamecloseStateClass
.loadingClass
: becameloadStateClass
.loadingMessage
: becameloadStateMessage
.
- Default param value:
minlength
: 1.openStateClass
(openedClass): np-autocomplete-open.loadStateClass
(loadingClass): np-autocomplete-load.closeStateClass
(closedClass): np-autocomplete-close.
- Attributes:
- New:
- Core Functionalities:
- navigation by keyboard arrows.
- Attributes:
npAuto
: to give the ability to programmatically load.
- Params:
onBlur
: defines a callback function to be called when the directive loses focus.listClass
: defines a class or set of classes for the list.itemClass
: defines a class or set of classes for each item in the list.messageClass
: defines a class or set of classes for all messages items.errorStateMessage
: defines the message which will be shown when an error occur.highlightClass
: defines a class or set of classes for the highlighted texts.itemFocusClass
: defines a class or set of classes for the focused list item.errorStateClass
: defines a class or set of classes for error state.hasSelectionClass
: makes you able to add a class or set of classes when a selection is made.highlightExactSearch
: decides either highlight with exact pattern or each portion separately.
- Scope Methods:
getItemClasses
: returns all desired classes of the item.onItemMouseenter
: updatesfocusedItemIndex
property of scope with currently index of focused item.
- Scope Properties:
hasError
: holds a boolean whether there is a load error or not.focusedItemIndex
: holds the current index of the focused item.
- Core Functionalities:
- Enh: replace keyup and paste jquery events with input.
- Bug: updating input value when npInputModel or npSelectedItem is being programaticlly updated.
- Bug: trim search text.
- Bug: escape regex patterns in highlight and escape html tags from source data.