toast-message-display 18.0.4 → 18.0.5

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.
Files changed (43) hide show
  1. package/README.md +902 -59
  2. package/fesm2022/toast-message-display.mjs +16 -15
  3. package/fesm2022/toast-message-display.mjs.map +1 -1
  4. package/package.json +3 -5
  5. package/toast-message-display-18.0.5.tgz +0 -0
  6. package/types/toast-message-display.d.ts +227 -0
  7. package/esm2022/lib/models/horizontal-alignment.enum.mjs +0 -7
  8. package/esm2022/lib/models/index.mjs +0 -7
  9. package/esm2022/lib/models/toast-colors.enum.mjs +0 -10
  10. package/esm2022/lib/models/toast-display-model.mjs +0 -24
  11. package/esm2022/lib/models/toast-message.model.mjs +0 -11
  12. package/esm2022/lib/models/toast-options.model.mjs +0 -17
  13. package/esm2022/lib/models/vertical-alignment.enum.mjs +0 -6
  14. package/esm2022/lib/pipes/safe-html.pipe.mjs +0 -20
  15. package/esm2022/lib/services/toast-message.service.mjs +0 -55
  16. package/esm2022/lib/toast-demo/toast-demo.component.mjs +0 -121
  17. package/esm2022/lib/toast-message-inline/toast-message-inline.component.mjs +0 -65
  18. package/esm2022/lib/toast-message.module.mjs +0 -67
  19. package/esm2022/lib/toast-ui/toast-ui.component.mjs +0 -69
  20. package/esm2022/lib/utils/color-conversion.service.mjs +0 -33
  21. package/esm2022/lib/utils/index.mjs +0 -3
  22. package/esm2022/lib/utils/text-color.service.mjs +0 -93
  23. package/esm2022/public-api.mjs +0 -10
  24. package/esm2022/toast-message-display.mjs +0 -5
  25. package/index.d.ts +0 -5
  26. package/lib/models/horizontal-alignment.enum.d.ts +0 -5
  27. package/lib/models/index.d.ts +0 -6
  28. package/lib/models/toast-colors.enum.d.ts +0 -8
  29. package/lib/models/toast-display-model.d.ts +0 -19
  30. package/lib/models/toast-message.model.d.ts +0 -12
  31. package/lib/models/toast-options.model.d.ts +0 -18
  32. package/lib/models/vertical-alignment.enum.d.ts +0 -4
  33. package/lib/pipes/safe-html.pipe.d.ts +0 -8
  34. package/lib/services/toast-message.service.d.ts +0 -15
  35. package/lib/toast-demo/toast-demo.component.d.ts +0 -37
  36. package/lib/toast-message-inline/toast-message-inline.component.d.ts +0 -22
  37. package/lib/toast-message.module.d.ts +0 -19
  38. package/lib/toast-ui/toast-ui.component.d.ts +0 -19
  39. package/lib/utils/color-conversion.service.d.ts +0 -7
  40. package/lib/utils/index.d.ts +0 -2
  41. package/lib/utils/text-color.service.d.ts +0 -42
  42. package/public-api.d.ts +0 -6
  43. package/toast-message-display-18.0.4.tgz +0 -0
@@ -1,19 +0,0 @@
1
- import { EventEmitter, OnInit } from '@angular/core';
2
- import { ToastDisplay } from '../models/toast-display-model';
3
- import { TextColorService } from '../utils';
4
- import * as i0 from "@angular/core";
5
- export declare class ToastUIComponent implements OnInit {
6
- data: ToastDisplay;
7
- ngVersion: number;
8
- close: EventEmitter<ToastDisplay>;
9
- textColorService: TextColorService;
10
- private snackBar;
11
- options: ToastDisplay;
12
- constructor(data: ToastDisplay);
13
- ngOnInit(): void;
14
- get color(): import("toast-message-display").ToastColors;
15
- get textColor(): string;
16
- onCloseToast(options?: ToastDisplay): void;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<ToastUIComponent, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<ToastUIComponent, "app-toast-ui", never, { "options": { "alias": "options"; "required": false; }; }, { "close": "close"; }, never, never, false, never>;
19
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class ColorConversionService {
3
- rgbToHex(rgb: number[]): string;
4
- hexToRgb(hex: string): number[];
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ColorConversionService, never>;
6
- static ɵprov: i0.ɵɵInjectableDeclaration<ColorConversionService>;
7
- }
@@ -1,2 +0,0 @@
1
- export * from "./color-conversion.service";
2
- export * from "./text-color.service";
@@ -1,42 +0,0 @@
1
- import { ColorConversionService } from './color-conversion.service';
2
- import * as i0 from "@angular/core";
3
- export declare class TextColorService {
4
- private colorConversionService;
5
- constructor(colorConversionService: ColorConversionService);
6
- /**
7
- * Determines the appropriate text color (light or dark) based on the background color.
8
- *
9
- * @param bgColor - The background color to use for the calculation.
10
- * @param lightColor - The light color to use if the background is dark.
11
- * @param darkColor - The dark color to use if the background is light.
12
- * @returns The appropriate text color (light or dark) based on the background color.
13
- */
14
- textColorForBgColor(bgColor: string, lightColor: string, darkColor: string): string;
15
- /**
16
- * Determines whether the first color is darker than the second color.
17
- *
18
- * @param color1 - The first color to compare.
19
- * @param color2 - The second color to compare.
20
- * @returns The darker of the two colors.
21
- */
22
- isColorDarker(color1: string, color2: string): string;
23
- calculateLuminance(r: number, g: number, b: number): number;
24
- /**
25
- * Fixes the provided color string by ensuring it is in a valid hexadecimal format.
26
- * If the input color is a hexadecimal string, it will be normalized to a 6-digit format.
27
- * If the input color is not a hexadecimal string, it will be converted to an RGB array.
28
- *
29
- * @param color - The color string to be fixed.
30
- * @returns An array of RGB values, or the normalized hexadecimal color string.
31
- */
32
- fixColor(color: string): number[];
33
- /**
34
- * Converts the color representation of the provided string into HEX value.
35
- *
36
- * @param str - The color string to be standardized - 'whitesmoke'.
37
- * @returns The standardized color string - #DEDEDE.
38
- */
39
- standardize_color(str: string): string;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<TextColorService, never>;
41
- static ɵprov: i0.ɵɵInjectableDeclaration<TextColorService>;
42
- }
package/public-api.d.ts DELETED
@@ -1,6 +0,0 @@
1
- export * from "./lib/toast-message.module";
2
- export * from "./lib/toast-ui/toast-ui.component";
3
- export * from './lib/models';
4
- export * from './lib/toast-demo/toast-demo.component';
5
- export * from './lib/toast-message-inline/toast-message-inline.component';
6
- export * from './lib/services/toast-message.service';
Binary file