New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

angular2-select

Package Overview
Dependencies
Maintainers
1
Versions
18
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

angular2-select - npm Package Compare versions

Comparing version 1.0.0-beta.1 to 1.0.0-beta.2

8

CHANGELOG.md
# Changelog
<a name="1.0.0-beta.2"></a>
## [1.0.0-beta.2](https://github.com/basvandenberg/angular2-select/compare/1.0.0-beta.1...1.0.0-beta.2) (2017-01-12)
### Bug fixes
- Single select returns value as string instead of array (#66).
<a name="1.0.0-beta.1"></a>

@@ -4,0 +12,0 @@ ## [1.0.0-beta.1](https://github.com/basvandenberg/angular2-select/compare/1.0.0-beta.0...1.0.0-beta.1) (2017-01-08)

4

dist/select.component.js

@@ -26,2 +26,3 @@ "use strict";

this.deselected = new core_1.EventEmitter();
this._value = [];
// Selection state variables.

@@ -184,2 +185,3 @@ this.hasSelected = false;

}
// TODO throw TypeError if v is not an Array.
if (v !== this._value) {

@@ -191,3 +193,3 @@ this._value = v;

this.updateFilterWidth();
this.onChange(v);
this.onChange(this.value);
}

@@ -194,0 +196,0 @@ },

{
"name": "angular2-select",
"version": "1.0.0-beta.1",
"version": "1.0.0-beta.2",
"description": "Select component for Angular2.",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,3 +5,3 @@ # Angular 2 select component

See the [angular2-select] page for example uses.
See the [angular2-select] page for example uses or try it with this [plunker].

@@ -86,13 +86,13 @@ The beta version is here! With new features and bug fixes. See the [changelog]

| Name | Type | Default | Description |
| ------------- | --------- | --------------------- | ---------------- |
| options | `Array<option>`\*| | List of select option. |
| allowClear | `boolean` | `false` | Only applies to single select. If set to true, a clickable clear selection cross is shown. |
| disabled | `boolean` | `false` | If set to true, the select component is disabled. |
| highlightColor| `string` | `#2196f3` | Background color of highlighted option. |
| highlightTextColor | `string` | `#fff` | Text color of highlighted option. |
| multiple | `boolean` | `false` | If set to true, the select component is multi-select, otherwise single select. |
| noFilter | `number` | `0` | Filter is hidden if the number of options is less than the given number. |
| notFoundMsg | `string` | `"No results found"`| The message shown if no options are found for the current filter input value. |
| placeholder | `string` | `""` | Placeholder text that is shown if no options are selected.
| Name | Type | Default | Description |
| ------------------ | ----------------- | --------------------- | ------------------------------------------------------------------------------------------ |
| options | `Array<option>`\* | | List of select option. |
| allowClear | `boolean` | `false` | Only applies to single select. If set to true, a clickable clear selection cross is shown. |
| disabled | `boolean` | `false` | If set to true, the select component is disabled. |
| highlightColor | `string` | `#2196f3` | Background color of highlighted option. |
| highlightTextColor | `string` | `#fff` | Text color of highlighted option. |
| multiple | `boolean` | `false` | If set to true, the select component is multi-select, otherwise single select. |
| noFilter | `number` | `0` | Filter is hidden if the number of options is less than the given number. |
| notFoundMsg | `string` | `"No results found"` | The message shown if no options are found for the current filter input value. |
| placeholder | `string` | `""` | Placeholder text that is shown if no options are selected.

@@ -103,8 +103,8 @@ \* `option` is an object with value and label (`{value: string, label: string}`)

| Name | Value | Description |
| ------------- | --------------------- | ------------- |
| opened | `null` | If the select drop down is opened. |
| closed | `null` | If the select drop down is closed. |
| selected | `option`\* | If an options is selected, returning the selected option. |
| deselected | `option`\* or `[option]`\*| If one or more options are deselected, returning the selected option(s). |
| Name | Value | Description |
| ------------- | -------------------------- | ------------------------------------------------------------------------ |
| opened | `null` | If the select drop down is opened. |
| closed | `null` | If the select drop down is closed. |
| selected | `option`\* | If an options is selected, returning the selected option. |
| deselected | `option`\* or `[option]`\* | If one or more options are deselected, returning the selected option(s). |

@@ -115,8 +115,8 @@ \* `option` is an object with value and label (`{value: string, label: string}`)

| Name | Parameters | Description |
| ------------- | --------------------- | ------------- |
| open | - | Open the select drop down. |
| close | - | Close the select drop down. |
| clear | - | Deselect all selected options. |
| select | `value: string` | Select the option with the given value. |
| Name | Parameters | Description |
| ------------- | --------------------- | --------------------------------------- |
| open | - | Open the select drop down. |
| close | - | Close the select drop down. |
| clear | - | Deselect all selected options. |
| select | `value: string` | Select the option with the given value. |

@@ -130,3 +130,3 @@ ## Limitations

performance issues for large numbers of options. Therefore, if you have more
that a few hundred options, then you will be better of with another solution.
that a few hundred options, then you will be better of with another solution.

@@ -150,2 +150,1 @@ ### Drop down positioning

[changelog]: https://github.com/basvandenberg/angular2-select/releases
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc