angular2-pipes
Advanced tools
Comparing version 0.4.11 to 0.4.12
@@ -1,2 +0,2 @@ | ||
import { IsGreaterEqualThanPipe } from "./is-greater-equal-than"; | ||
import { IsGreaterEqualThanPipe } from './is-greater-equal-than'; | ||
export declare const BOOLEAN_PIPES: typeof IsGreaterEqualThanPipe[]; |
"use strict"; | ||
var is_defined_1 = require("./is-defined"); | ||
var is_null_1 = require("./is-null"); | ||
var is_undefined_1 = require("./is-undefined"); | ||
var is_string_1 = require("./is-string"); | ||
var is_function_1 = require("./is-function"); | ||
var is_number_1 = require("./is-number"); | ||
var is_array_1 = require("./is-array"); | ||
var is_object_1 = require("./is-object"); | ||
var is_greater_equal_than_1 = require("./is-greater-equal-than"); | ||
var is_greater_than_1 = require("./is-greater-than"); | ||
var is_less_equal_than_1 = require("./is-less-equal-than"); | ||
var is_equal_to_1 = require("./is-equal-to"); | ||
var is_not_equal_to_1 = require("./is-not-equal-to"); | ||
var is_identical_to_1 = require("./is-identical-to"); | ||
var is_not_identical_to_1 = require("./is-not-identical-to"); | ||
var is_defined_1 = require('./is-defined'); | ||
var is_null_1 = require('./is-null'); | ||
var is_undefined_1 = require('./is-undefined'); | ||
var is_string_1 = require('./is-string'); | ||
var is_function_1 = require('./is-function'); | ||
var is_number_1 = require('./is-number'); | ||
var is_array_1 = require('./is-array'); | ||
var is_object_1 = require('./is-object'); | ||
var is_greater_equal_than_1 = require('./is-greater-equal-than'); | ||
var is_greater_than_1 = require('./is-greater-than'); | ||
var is_less_equal_than_1 = require('./is-less-equal-than'); | ||
var is_equal_to_1 = require('./is-equal-to'); | ||
var is_not_equal_to_1 = require('./is-not-equal-to'); | ||
var is_identical_to_1 = require('./is-identical-to'); | ||
var is_not_identical_to_1 = require('./is-not-identical-to'); | ||
var is_less_than_1 = require('./is-less-than'); | ||
exports.BOOLEAN_PIPES = [ | ||
is_defined_1.IsDefinedPipe, is_null_1.IsNullPipe, is_undefined_1.IsUndefinedPipe, is_string_1.IsStringPipe, is_function_1.IsFunctionPipe, is_number_1.IsNumberPipe, | ||
is_array_1.IsArrayPipe, is_object_1.IsObjectPipe, is_greater_equal_than_1.IsGreaterEqualThanPipe, is_greater_than_1.IsGreaterThanPipe, is_less_equal_than_1.IsLessEqualThanPipe, | ||
is_less_equal_than_1.IsLessEqualThanPipe, is_equal_to_1.IsEqualToPipe, is_not_equal_to_1.IsNotEqualToPipe, is_identical_to_1.IsIdenticalToPipe, is_not_identical_to_1.IsNotIdenticalToPipe | ||
is_less_equal_than_1.IsLessEqualThanPipe, is_equal_to_1.IsEqualToPipe, is_not_equal_to_1.IsNotEqualToPipe, is_identical_to_1.IsIdenticalToPipe, is_not_identical_to_1.IsNotIdenticalToPipe, | ||
is_less_than_1.IsLessThanPipe | ||
]; | ||
//# sourceMappingURL=boolean.js.map |
"use strict"; | ||
var max_1 = require('./max'); | ||
var min_1 = require('./min'); | ||
var percent_1 = require('./percent'); | ||
var percentage_1 = require('./percentage'); | ||
var sum_1 = require('./sum'); | ||
@@ -15,3 +15,3 @@ var floor_1 = require('./floor'); | ||
exports.MATH_PIPES = [ | ||
max_1.MaxPipe, min_1.MinPipe, percent_1.PercentPipe, sum_1.SumPipe, floor_1.FloorPipe, round_1.RoundPipe, sqrt_1.SqrtPipe, pow_1.PowerPipe, | ||
max_1.MaxPipe, min_1.MinPipe, percentage_1.PercentagePipe, sum_1.SumPipe, floor_1.FloorPipe, round_1.RoundPipe, sqrt_1.SqrtPipe, pow_1.PowerPipe, | ||
ceil_1.CeilPipe, degrees_1.DegreesPipe, bytes_1.BytesPipe, radians_1.RadiansPipe | ||
@@ -18,0 +18,0 @@ ]; |
{ | ||
"name": "angular2-pipes", | ||
"version": "0.4.11", | ||
"version": "0.4.12", | ||
"author": "Dan Revah", | ||
@@ -5,0 +5,0 @@ "description": "Useful angular2 pipes", |
@@ -40,3 +40,3 @@ # Angular2 Pipes | ||
- [max](#max) | ||
- [percent](#percent) | ||
- [percentage](#percentage) | ||
- [ceil](#ceil) | ||
@@ -474,5 +474,5 @@ - [floor](#floor) | ||
### percent | ||
### percentage | ||
Returns percent between numbers | ||
Returns percentage between numbers | ||
@@ -569,3 +569,3 @@ API: `number | percentage: [total | default = 100]: [floor | default = false]` | ||
```html | ||
<p>{{ 10 | bytes }}</p> <!-- Output: "1 B" --> | ||
<p>{{ 10 | bytes }}</p> <!-- Output: "10 B" --> | ||
<p>{{ 1000 | bytes }}</p> <!-- Output: "1 KB" --> | ||
@@ -572,0 +572,0 @@ <p>{{ 1000000 | bytes }}</p> <!-- Output: "1 MB" --> |
@@ -1,16 +0,17 @@ | ||
import {IsDefinedPipe} from "./is-defined"; | ||
import {IsNullPipe} from "./is-null"; | ||
import {IsUndefinedPipe} from "./is-undefined"; | ||
import {IsStringPipe} from "./is-string"; | ||
import {IsFunctionPipe} from "./is-function"; | ||
import {IsNumberPipe} from "./is-number"; | ||
import {IsArrayPipe} from "./is-array"; | ||
import {IsObjectPipe} from "./is-object"; | ||
import {IsGreaterEqualThanPipe} from "./is-greater-equal-than"; | ||
import {IsGreaterThanPipe} from "./is-greater-than"; | ||
import {IsLessEqualThanPipe} from "./is-less-equal-than"; | ||
import {IsEqualToPipe} from "./is-equal-to"; | ||
import {IsNotEqualToPipe} from "./is-not-equal-to"; | ||
import {IsIdenticalToPipe} from "./is-identical-to"; | ||
import {IsNotIdenticalToPipe} from "./is-not-identical-to"; | ||
import {IsDefinedPipe} from './is-defined'; | ||
import {IsNullPipe} from './is-null'; | ||
import {IsUndefinedPipe} from './is-undefined'; | ||
import {IsStringPipe} from './is-string'; | ||
import {IsFunctionPipe} from './is-function'; | ||
import {IsNumberPipe} from './is-number'; | ||
import {IsArrayPipe} from './is-array'; | ||
import {IsObjectPipe} from './is-object'; | ||
import {IsGreaterEqualThanPipe} from './is-greater-equal-than'; | ||
import {IsGreaterThanPipe} from './is-greater-than'; | ||
import {IsLessEqualThanPipe} from './is-less-equal-than'; | ||
import {IsEqualToPipe} from './is-equal-to'; | ||
import {IsNotEqualToPipe} from './is-not-equal-to'; | ||
import {IsIdenticalToPipe} from './is-identical-to'; | ||
import {IsNotIdenticalToPipe} from './is-not-identical-to'; | ||
import {IsLessThanPipe} from './is-less-than'; | ||
@@ -20,3 +21,4 @@ export const BOOLEAN_PIPES = [ | ||
IsArrayPipe, IsObjectPipe, IsGreaterEqualThanPipe, IsGreaterThanPipe, IsLessEqualThanPipe, | ||
IsLessEqualThanPipe, IsEqualToPipe, IsNotEqualToPipe, IsIdenticalToPipe, IsNotIdenticalToPipe | ||
IsLessEqualThanPipe, IsEqualToPipe, IsNotEqualToPipe, IsIdenticalToPipe, IsNotIdenticalToPipe, | ||
IsLessThanPipe | ||
]; |
import {MaxPipe} from './max'; | ||
import {MinPipe} from './min'; | ||
import {PercentPipe} from './percent'; | ||
import {PercentagePipe} from './percentage'; | ||
import {SumPipe} from './sum'; | ||
@@ -15,4 +15,4 @@ import {FloorPipe} from './floor'; | ||
export const MATH_PIPES = [ | ||
MaxPipe, MinPipe, PercentPipe, SumPipe, FloorPipe, RoundPipe, SqrtPipe, PowerPipe, | ||
MaxPipe, MinPipe, PercentagePipe, SumPipe, FloorPipe, RoundPipe, SqrtPipe, PowerPipe, | ||
CeilPipe, DegreesPipe, BytesPipe, RadiansPipe | ||
]; |
@@ -1,8 +0,8 @@ | ||
import {PercentPipe} from "./percent"; | ||
import {PercentagePipe} from './percentage'; | ||
describe('PercentPipe', () => { | ||
let pipe: PercentPipe; | ||
describe('PercentagePipe', () => { | ||
let pipe: PercentagePipe; | ||
beforeEach(() => { | ||
pipe = new PercentPipe(); | ||
pipe = new PercentagePipe(); | ||
}); | ||
@@ -9,0 +9,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
241395
342
3935