@energycap/components 0.26.2 → 0.26.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/energycap-components.umd.js +43 -0
- package/bundles/energycap-components.umd.js.map +1 -1
- package/bundles/energycap-components.umd.min.js +1 -1
- package/bundles/energycap-components.umd.min.js.map +1 -1
- package/energycap-components.metadata.json +1 -1
- package/esm2015/lib/components.module.js +5 -1
- package/esm2015/lib/shared/display/pipes/time-display.pipe.js +40 -0
- package/esm2015/public-api.js +2 -1
- package/fesm2015/energycap-components.js +41 -1
- package/fesm2015/energycap-components.js.map +1 -1
- package/lib/shared/display/pipes/time-display.pipe.d.ts +15 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { UserPreferenceService } from '../../user-preference.service';
|
|
3
|
+
import { DateDisplay } from './date-display.pipe';
|
|
4
|
+
/**
|
|
5
|
+
* Format a time to the user's preference for display
|
|
6
|
+
*/
|
|
7
|
+
export declare class TimeDisplayPipe implements PipeTransform {
|
|
8
|
+
private userPreferenceService;
|
|
9
|
+
constructor(userPreferenceService: UserPreferenceService);
|
|
10
|
+
private lastFormatString;
|
|
11
|
+
/**
|
|
12
|
+
* Format a time for display, accounting for user's display preferences.
|
|
13
|
+
*/
|
|
14
|
+
transform(time?: DateDisplay, showSeconds?: boolean): string;
|
|
15
|
+
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export * from './lib/shared/display';
|
|
|
49
49
|
export * from './lib/shared/form-group.helper';
|
|
50
50
|
export * from './lib/shared/display/pipes/date-display.pipe';
|
|
51
51
|
export * from './lib/shared/display/pipes/row-count.pipe';
|
|
52
|
+
export * from './lib/shared/display/pipes/time-display.pipe';
|
|
52
53
|
export * from './lib/shared/user-preference.service';
|
|
53
54
|
export * from './lib/core/date-time-helper';
|
|
54
55
|
export * from './lib/shared/lodash-helper';
|