ng2-material-select
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -15,8 +15,4 @@ "use strict"; | ||
}; | ||
const isSelected = function (item) { | ||
return this.selected.indexOf(item) >= 0; | ||
}; | ||
Object.assign(target.prototype, { | ||
toggle: toggle, | ||
isSelected: isSelected | ||
toggle | ||
}); | ||
@@ -23,0 +19,0 @@ }; |
@@ -22,5 +22,4 @@ "use strict"; | ||
let Ng2Select = class Ng2Select extends accessor_1.SelectAccessor { | ||
constructor(renderer) { | ||
super(); | ||
this.renderer = renderer; | ||
constructor() { | ||
super(...arguments); | ||
this.options = []; | ||
@@ -50,2 +49,10 @@ this.multiple = false; | ||
} | ||
isSelected(item) { | ||
if (this.multiple) { | ||
return this.selected.indexOf(item) >= 0; | ||
} | ||
else { | ||
return this.value === item; | ||
} | ||
} | ||
ngOnInit() { | ||
@@ -68,2 +75,3 @@ const state = this.dropdown.state; | ||
}); | ||
console.log(this.selected); | ||
} | ||
@@ -107,5 +115,5 @@ }; | ||
selectable_1.Selectable(), | ||
__metadata('design:paramtypes', [core_1.Renderer]) | ||
__metadata('design:paramtypes', []) | ||
], Ng2Select); | ||
exports.Ng2Select = Ng2Select; | ||
//# sourceMappingURL=ng2-select.js.map |
@@ -10,3 +10,3 @@ (function webpackUniversalModuleDefinition(root, factory) { | ||
root["ng2-select"] = factory(root["@angular/core"], root["@angular/forms"], root["@angular/common"]); | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_14__) { | ||
})(this, function(__WEBPACK_EXTERNAL_MODULE_1__, __WEBPACK_EXTERNAL_MODULE_6__, __WEBPACK_EXTERNAL_MODULE_15__) { | ||
return /******/ (function(modules) { // webpackBootstrap | ||
@@ -60,3 +60,3 @@ /******/ // The module cache | ||
__webpack_require__(1); | ||
__webpack_require__(14); | ||
__webpack_require__(15); | ||
module.exports = __webpack_require__(6); | ||
@@ -81,6 +81,6 @@ | ||
/***/ 14: | ||
/***/ 15: | ||
/***/ function(module, exports) { | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_14__; | ||
module.exports = __WEBPACK_EXTERNAL_MODULE_15__; | ||
@@ -87,0 +87,0 @@ /***/ } |
{ | ||
"name": "ng2-material-select", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Angular 2 material-like Select Component", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
Found 1 instance in 1 package
1
89
175164
22
2069