ngx-simple-card-container
Advanced tools
Comparing version 0.3.0-alpha.2 to 0.3.0-alpha.3
{ | ||
"name": "ngx-simple-card-container", | ||
"version": "0.3.0-alpha.2", | ||
"version": "0.3.0-alpha.3", | ||
"description": "A table component extended with the ability to open and close row details", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -8,8 +8,8 @@ export interface ISortDirections { | ||
private value; | ||
fullName: string; | ||
static none: SortDirection; | ||
static ascending: SortDirection; | ||
static descending: SortDirection; | ||
constructor(value: number); | ||
constructor(value: number, fullName: string); | ||
static toggle(direction: SortDirection): SortDirection; | ||
static getFullName(direction: SortDirection): string; | ||
} |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var SortDirection = (function () { | ||
function SortDirection(value) { | ||
function SortDirection(value, fullName) { | ||
this.value = value; | ||
this.fullName = fullName; | ||
} | ||
@@ -18,19 +19,8 @@ SortDirection.toggle = function (direction) { | ||
}; | ||
SortDirection.getFullName = function (direction) { | ||
if (direction === SortDirection.ascending) { | ||
return 'ascending'; | ||
} | ||
else if (direction === SortDirection.descending) { | ||
return 'descending'; | ||
} | ||
else { | ||
return 'none'; | ||
} | ||
}; | ||
return SortDirection; | ||
}()); | ||
SortDirection.none = new SortDirection(0); | ||
SortDirection.ascending = new SortDirection(1); | ||
SortDirection.descending = new SortDirection(2); | ||
SortDirection.none = new SortDirection(0, 'none'); | ||
SortDirection.ascending = new SortDirection(1, 'ascending'); | ||
SortDirection.descending = new SortDirection(2, 'descending'); | ||
exports.SortDirection = SortDirection; | ||
//# sourceMappingURL=sortDirection.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"SortDirection":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"number"}]}]},"statics":{"none":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[0]},"ascending":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[1]},"descending":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[2]}}}}},{"__symbolic":"module","version":1,"metadata":{"SortDirection":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"number"}]}]},"statics":{"none":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[0]},"ascending":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[1]},"descending":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[2]}}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"SortDirection":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"}]}]},"statics":{"none":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[0,"none"]},"ascending":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[1,"ascending"]},"descending":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[2,"descending"]}}}}},{"__symbolic":"module","version":1,"metadata":{"SortDirection":{"__symbolic":"class","members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"number"},{"__symbolic":"reference","name":"string"}]}]},"statics":{"none":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[0,"none"]},"ascending":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[1,"ascending"]},"descending":{"__symbolic":"new","expression":{"__symbolic":"reference","name":"SortDirection"},"arguments":[2,"descending"]}}}}}] |
@@ -11,7 +11,7 @@ "use strict"; | ||
it('should return the name of the sort direction', function () { | ||
expect(sortDirection_1.SortDirection.getFullName(sortDirection_1.SortDirection.ascending)).to.equal('ascending'); | ||
expect(sortDirection_1.SortDirection.getFullName(sortDirection_1.SortDirection.descending)).to.equal('descending'); | ||
expect(sortDirection_1.SortDirection.getFullName(sortDirection_1.SortDirection.none)).to.equal('none'); | ||
expect(sortDirection_1.SortDirection.ascending.fullName).to.equal('ascending'); | ||
expect(sortDirection_1.SortDirection.descending.fullName).to.equal('descending'); | ||
expect(sortDirection_1.SortDirection.none.fullName).to.equal('none'); | ||
}); | ||
}); | ||
//# sourceMappingURL=sortDirection.spec.js.map |
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
125401
1336