typescript-angular-utilities
Advanced tools
Comparing version 3.3.3 to 3.3.4
{ | ||
"name": "typescript-angular-utilities", | ||
"version": "3.3.3", | ||
"version": "3.3.4", | ||
"description": "Typescript utility classes published as angular services", | ||
@@ -17,5 +17,5 @@ "author": "Renovo Development Team", | ||
"scripts": { | ||
"prepublish": "npm run build", | ||
"prepublish": "typings install && npm run build", | ||
"bundle-deps": "gulp bundle-tests-vendor && gulp bundle-tests-renovo", | ||
"update": "npm install && typings install && npm run bundle-deps", | ||
"update": "npm install && npm run bundle-deps", | ||
"version": "gulp version -v ", | ||
@@ -30,7 +30,4 @@ "clean": "gulp clean", | ||
"test.full": "npm run bundle-tests && karma start karma.full.conf.js", | ||
"install-build": "npm install && npm run build", | ||
"install-build-test": "npm install && npm run build && npm run test", | ||
"build-test": "npm run build && npm run test", | ||
"build-test.watch": "concurrently --kill-others \"npm run build.watch\" \"npm run test.debug\"", | ||
"full-build": "npm install && npm run build", | ||
"all": "npm run update && npm run build && npm run test.full" | ||
@@ -37,0 +34,0 @@ }, |
@@ -10,3 +10,3 @@ export interface IItem { | ||
} | ||
export declare class ItemList<TItemType extends IItem> { | ||
export declare class ItemList<TItemType extends IItem> implements IItemList<TItemType> { | ||
private items; | ||
@@ -17,1 +17,4 @@ setItems(items: TItemType[]): void; | ||
} | ||
export declare class SortedItemList<TItemType extends IItem> extends ItemList<TItemType> { | ||
setItems(items: TItemType[]): void; | ||
} |
"use strict"; | ||
var __extends = (this && this.__extends) || function (d, b) { | ||
for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; | ||
function __() { this.constructor = d; } | ||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); | ||
}; | ||
var _ = require('lodash'); | ||
@@ -29,2 +34,13 @@ var ItemList = (function () { | ||
exports.ItemList = ItemList; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbUxpc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpdGVtTGlzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiO0FBQUEsSUFBWSxDQUFDLFdBQU0sUUFBUSxDQUFDLENBQUE7QUFhNUI7SUFBQTtJQTBCQSxDQUFDO0lBdkJBLDJCQUFRLEdBQVIsVUFBUyxLQUFrQjtRQUMxQixJQUFJLENBQUMsS0FBSyxHQUFHLEtBQUssQ0FBQztJQUNwQixDQUFDO0lBRUQsc0JBQUcsR0FBSCxVQUFJLEtBQXNCO1FBQ3pCLElBQUksU0FBeUMsQ0FBQztRQUU5QyxFQUFFLENBQUMsQ0FBQyxPQUFPLEtBQUssS0FBSyxRQUFRLENBQUMsQ0FBQyxDQUFDO1lBQy9CLFNBQVMsR0FBRyxVQUFDLElBQWU7Z0JBQzNCLE1BQU0sQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLEtBQUssS0FBSyxDQUFDLENBQUM7WUFDOUIsQ0FBQyxDQUFDO1FBQ0gsQ0FBQztRQUFDLElBQUksQ0FBQyxDQUFDO1lBQ1AsU0FBUyxHQUFHLFVBQUMsSUFBZTtnQkFDM0IsTUFBTSxDQUFDLENBQUMsSUFBSSxDQUFDLEtBQUssS0FBSyxLQUFLLENBQUMsQ0FBQztZQUMvQixDQUFDLENBQUM7UUFDSCxDQUFDO1FBRUQsTUFBTSxDQUFDLENBQUMsQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEtBQUssRUFBRSxTQUFTLENBQUMsQ0FBQztJQUN0QyxDQUFDO0lBRUQsc0JBQUcsR0FBSDtRQUNDLE1BQU0sQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDO0lBQ25CLENBQUM7SUFDRixlQUFDO0FBQUQsQ0FBQyxBQTFCRCxJQTBCQztBQTFCWSxnQkFBUSxXQTBCcEIsQ0FBQSJ9 | ||
var SortedItemList = (function (_super) { | ||
__extends(SortedItemList, _super); | ||
function SortedItemList() { | ||
_super.apply(this, arguments); | ||
} | ||
SortedItemList.prototype.setItems = function (items) { | ||
_super.prototype.setItems.call(this, _.sortBy(items, function (x) { return x.display; })); | ||
}; | ||
return SortedItemList; | ||
}(ItemList)); | ||
exports.SortedItemList = SortedItemList; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaXRlbUxpc3QuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJpdGVtTGlzdC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7QUFBQSxJQUFZLENBQUMsV0FBTSxRQUFRLENBQUMsQ0FBQTtBQWE1QjtJQUFBO0lBMEJBLENBQUM7SUF2QkEsMkJBQVEsR0FBUixVQUFTLEtBQWtCO1FBQzFCLElBQUksQ0FBQyxLQUFLLEdBQUcsS0FBSyxDQUFDO0lBQ3BCLENBQUM7SUFFRCxzQkFBRyxHQUFILFVBQUksS0FBc0I7UUFDekIsSUFBSSxTQUF5QyxDQUFDO1FBRTlDLEVBQUUsQ0FBQyxDQUFDLE9BQU8sS0FBSyxLQUFLLFFBQVEsQ0FBQyxDQUFDLENBQUM7WUFDL0IsU0FBUyxHQUFHLFVBQUMsSUFBZTtnQkFDM0IsTUFBTSxDQUFDLENBQUMsSUFBSSxDQUFDLElBQUksS0FBSyxLQUFLLENBQUMsQ0FBQztZQUM5QixDQUFDLENBQUM7UUFDSCxDQUFDO1FBQUMsSUFBSSxDQUFDLENBQUM7WUFDUCxTQUFTLEdBQUcsVUFBQyxJQUFlO2dCQUMzQixNQUFNLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxLQUFLLEtBQUssQ0FBQyxDQUFDO1lBQy9CLENBQUMsQ0FBQztRQUNILENBQUM7UUFFRCxNQUFNLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsS0FBSyxFQUFFLFNBQVMsQ0FBQyxDQUFDO0lBQ3RDLENBQUM7SUFFRCxzQkFBRyxHQUFIO1FBQ0MsTUFBTSxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUM7SUFDbkIsQ0FBQztJQUNGLGVBQUM7QUFBRCxDQUFDLEFBMUJELElBMEJDO0FBMUJZLGdCQUFRLFdBMEJwQixDQUFBO0FBRUQ7SUFBNkQsa0NBQW1CO0lBQWhGO1FBQTZELDhCQUFtQjtJQUloRixDQUFDO0lBSEEsaUNBQVEsR0FBUixVQUFTLEtBQWtCO1FBQzFCLGdCQUFLLENBQUMsUUFBUSxZQUFDLENBQUMsQ0FBQyxNQUFNLENBQUMsS0FBSyxFQUFFLFVBQUEsQ0FBQyxJQUFJLE9BQUEsQ0FBQyxDQUFDLE9BQU8sRUFBVCxDQUFTLENBQUMsQ0FBQyxDQUFDO0lBQ2pELENBQUM7SUFDRixxQkFBQztBQUFELENBQUMsQUFKRCxDQUE2RCxRQUFRLEdBSXBFO0FBSlksc0JBQWMsaUJBSTFCLENBQUEifQ== |
@@ -14,3 +14,3 @@ import * as _ from 'lodash'; | ||
export class ItemList<TItemType extends IItem> { | ||
export class ItemList<TItemType extends IItem> implements IItemList<TItemType> { | ||
private items: TItemType[]; | ||
@@ -42,1 +42,7 @@ | ||
} | ||
export class SortedItemList<TItemType extends IItem> extends ItemList<TItemType> { | ||
setItems(items: TItemType[]): void { | ||
super.setItems(_.sortBy(items, x => x.display)); | ||
} | ||
} |
Sorry, the diff of this file is too big to display
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
3507504
74972