mis-crystal-design-system 17.0.3 → 17.0.4

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 (70) hide show
  1. package/analytics/analytics.service.d.ts +1 -1
  2. package/esm2022/analytics/analytics.service.mjs +3 -3
  3. package/esm2022/filter/filter-panel/filter-panel.component.mjs +19 -19
  4. package/esm2022/slider/slider.component.mjs +2 -2
  5. package/esm2022/table/actions-cell/actions-cell.component.mjs +389 -0
  6. package/esm2022/table/public_api.mjs +5 -3
  7. package/esm2022/table/sort-icons.directive.mjs +139 -0
  8. package/esm2022/table/table.component.mjs +286 -109
  9. package/esm2022/table/table.module.mjs +41 -6
  10. package/esm2022/toast/public_api.mjs +3 -1
  11. package/esm2022/toast/toast.component.mjs +73 -16
  12. package/esm2022/toast/toast.constants.mjs +7 -0
  13. package/esm2022/toast/toast.data.service.mjs +1 -1
  14. package/esm2022/toast/toast.interface.mjs +2 -0
  15. package/esm2022/toast/toast.service.mjs +14 -7
  16. package/fesm2022/mis-crystal-design-system-action-list.mjs.map +1 -1
  17. package/fesm2022/mis-crystal-design-system-analytics.mjs +2 -2
  18. package/fesm2022/mis-crystal-design-system-analytics.mjs.map +1 -1
  19. package/fesm2022/mis-crystal-design-system-async-search-dropdown.mjs.map +1 -1
  20. package/fesm2022/mis-crystal-design-system-button.mjs.map +1 -1
  21. package/fesm2022/mis-crystal-design-system-checkbox.mjs.map +1 -1
  22. package/fesm2022/mis-crystal-design-system-chip.mjs.map +1 -1
  23. package/fesm2022/mis-crystal-design-system-datepicker_v2.mjs.map +1 -1
  24. package/fesm2022/mis-crystal-design-system-daterangepicker_v2.mjs.map +1 -1
  25. package/fesm2022/mis-crystal-design-system-drawer.mjs.map +1 -1
  26. package/fesm2022/mis-crystal-design-system-dropdown.mjs.map +1 -1
  27. package/fesm2022/mis-crystal-design-system-dynamic-form.mjs.map +1 -1
  28. package/fesm2022/mis-crystal-design-system-fab.mjs.map +1 -1
  29. package/fesm2022/mis-crystal-design-system-filter.mjs +18 -18
  30. package/fesm2022/mis-crystal-design-system-filter.mjs.map +1 -1
  31. package/fesm2022/mis-crystal-design-system-input-stepper.mjs.map +1 -1
  32. package/fesm2022/mis-crystal-design-system-input.mjs.map +1 -1
  33. package/fesm2022/mis-crystal-design-system-loader.mjs.map +1 -1
  34. package/fesm2022/mis-crystal-design-system-menu.mjs.map +1 -1
  35. package/fesm2022/mis-crystal-design-system-mobile-filter.mjs.map +1 -1
  36. package/fesm2022/mis-crystal-design-system-modal.mjs.map +1 -1
  37. package/fesm2022/mis-crystal-design-system-multi-select-dropdown.mjs.map +1 -1
  38. package/fesm2022/mis-crystal-design-system-nested-multi-select-dropdown.mjs.map +1 -1
  39. package/fesm2022/mis-crystal-design-system-phone-input.mjs.map +1 -1
  40. package/fesm2022/mis-crystal-design-system-radio-button.mjs.map +1 -1
  41. package/fesm2022/mis-crystal-design-system-ske-loader.mjs.map +1 -1
  42. package/fesm2022/mis-crystal-design-system-slider.mjs +2 -2
  43. package/fesm2022/mis-crystal-design-system-slider.mjs.map +1 -1
  44. package/fesm2022/mis-crystal-design-system-snackbar.mjs.map +1 -1
  45. package/fesm2022/mis-crystal-design-system-specificdatepicker.mjs.map +1 -1
  46. package/fesm2022/mis-crystal-design-system-star-rating.mjs.map +1 -1
  47. package/fesm2022/mis-crystal-design-system-switch.mjs.map +1 -1
  48. package/fesm2022/mis-crystal-design-system-table.mjs +1143 -411
  49. package/fesm2022/mis-crystal-design-system-table.mjs.map +1 -1
  50. package/fesm2022/mis-crystal-design-system-timepicker.mjs.map +1 -1
  51. package/fesm2022/mis-crystal-design-system-timerangepicker.mjs.map +1 -1
  52. package/fesm2022/mis-crystal-design-system-toast.mjs +93 -22
  53. package/fesm2022/mis-crystal-design-system-toast.mjs.map +1 -1
  54. package/fesm2022/mis-crystal-design-system-tooltip.mjs.map +1 -1
  55. package/fesm2022/mis-crystal-design-system-virtual-scroll.mjs.map +1 -1
  56. package/fesm2022/mis-crystal-design-system-widgets.mjs.map +1 -1
  57. package/filter/filter-panel/filter-panel.component.d.ts +4 -3
  58. package/package.json +35 -35
  59. package/table/actions-cell/actions-cell.component.d.ts +45 -0
  60. package/table/filter/filter.component.d.ts +1 -1
  61. package/table/public_api.d.ts +4 -2
  62. package/table/sort-icons.directive.d.ts +36 -0
  63. package/table/table.component.d.ts +56 -10
  64. package/table/table.module.d.ts +8 -4
  65. package/toast/public_api.d.ts +2 -0
  66. package/toast/toast.component.d.ts +13 -1
  67. package/toast/toast.constants.d.ts +5 -0
  68. package/toast/toast.data.service.d.ts +3 -2
  69. package/toast/toast.interface.d.ts +6 -0
  70. package/toast/toast.service.d.ts +2 -1
@@ -1,8 +1,20 @@
1
+ import { DomSanitizer, SafeHtml } from "@angular/platform-browser";
1
2
  import { ToastDataService } from "./toast.data.service";
3
+ import { ToastState } from "./toast.interface";
2
4
  import * as i0 from "@angular/core";
5
+ type Toast = string | {
6
+ text: string;
7
+ state?: ToastState;
8
+ };
3
9
  export declare class ToastComponent {
4
10
  data: ToastDataService;
5
- constructor(data: ToastDataService);
11
+ private sanitizer;
12
+ constructor(data: ToastDataService, sanitizer: DomSanitizer);
13
+ getMessage(toast: Toast): string;
14
+ shouldShowIcon(toast: Toast): boolean;
15
+ getStateIcon(state?: ToastState): SafeHtml;
16
+ private isStringToast;
6
17
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastComponent, never>;
7
18
  static ɵcmp: i0.ɵɵComponentDeclaration<ToastComponent, "mis-teams-toast", never, {}, {}, never, never, false, never>;
8
19
  }
20
+ export {};
@@ -0,0 +1,5 @@
1
+ export declare const TOAST_STATES: {
2
+ readonly SUCCESS: "success";
3
+ readonly WARNING: "warning";
4
+ readonly ERROR: "error";
5
+ };
@@ -1,9 +1,10 @@
1
+ import { ToastMessage } from "./toast.interface";
1
2
  import * as i0 from "@angular/core";
2
3
  export declare class ToastDataService {
3
4
  private messageMap;
4
- get messages(): string[];
5
+ get messages(): (ToastMessage | string)[];
5
6
  constructor();
6
- updateMessage(msg: string): number;
7
+ updateMessage(msg: ToastMessage | string): number;
7
8
  removeMessage(id: number): void;
8
9
  hasMessage(): boolean;
9
10
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastDataService, never>;
@@ -0,0 +1,6 @@
1
+ export type ToastState = 'success' | 'warning' | 'error';
2
+ export interface ToastMessage {
3
+ text: string;
4
+ state?: ToastState;
5
+ timeout?: number;
6
+ }
@@ -1,5 +1,6 @@
1
1
  import { Overlay } from "@angular/cdk/overlay";
2
2
  import { ToastDataService } from "./toast.data.service";
3
+ import { ToastState } from "./toast.interface";
3
4
  import * as i0 from "@angular/core";
4
5
  type Operations = "created" | "updated" | "deleted" | "create" | "update" | "delete";
5
6
  export declare class ToastService {
@@ -30,7 +31,7 @@ export declare class ToastService {
30
31
  simple: (...args: string[]) => string;
31
32
  simplest: string;
32
33
  };
33
- displayMsg(msg: string, timeout?: number): void;
34
+ displayMsg(message: string, timeout?: number, state?: ToastState): void;
34
35
  private closeToastOverlay;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
36
37
  static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;