@recursyve/nice-ui-kit.v2 17.0.0-beta.140 → 18.0.0-beta.144

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 (181) hide show
  1. package/esm2022/lib/api/interceptors/transform-response.interceptor.mjs +3 -3
  2. package/esm2022/lib/components/alert/alert.component.mjs +3 -3
  3. package/esm2022/lib/components/alert/alert.module.mjs +4 -4
  4. package/esm2022/lib/components/alert/alert.service.mjs +3 -3
  5. package/esm2022/lib/components/assets-carousel/assets-carousel.component.mjs +3 -3
  6. package/esm2022/lib/components/assets-carousel/assets-carousel.module.mjs +4 -4
  7. package/esm2022/lib/components/assets-carousel/directives/assets-carousel-active-content.directive.mjs +3 -3
  8. package/esm2022/lib/components/async-typeahead/async-typeahead.component.mjs +10 -4
  9. package/esm2022/lib/components/async-typeahead/async-typeahead.module.mjs +4 -4
  10. package/esm2022/lib/components/async-typeahead/providers/async-typeahead.service.mjs +3 -3
  11. package/esm2022/lib/components/base-form/base-form.component.mjs +3 -3
  12. package/esm2022/lib/components/base-form/base-form.module.mjs +4 -4
  13. package/esm2022/lib/components/base-form/form-submit.directive.mjs +3 -3
  14. package/esm2022/lib/components/card/card.component.mjs +3 -3
  15. package/esm2022/lib/components/card/card.module.mjs +4 -4
  16. package/esm2022/lib/components/carousel/carousel.component.mjs +17 -9
  17. package/esm2022/lib/components/carousel/carousel.constant.mjs +3 -0
  18. package/esm2022/lib/components/carousel/carousel.module.mjs +19 -5
  19. package/esm2022/lib/components/carousel/interfaces/carousel-options.interface.mjs +2 -0
  20. package/esm2022/lib/components/carousel/picture-modal/picture-modal.component.mjs +3 -3
  21. package/esm2022/lib/components/carousel/picture-modal/picture-modal.service.mjs +3 -3
  22. package/esm2022/lib/components/carousel/pipe/carousel-layout.pipe.mjs +3 -3
  23. package/esm2022/lib/components/collapsable/collapsable.component.mjs +3 -3
  24. package/esm2022/lib/components/collapsable/collapsable.module.mjs +4 -4
  25. package/esm2022/lib/components/date-range-picker/components/header/header.component.mjs +3 -3
  26. package/esm2022/lib/components/date-range-picker/components/range-preset/range-preset.component.mjs +3 -3
  27. package/esm2022/lib/components/date-range-picker/date-range-picker.component.mjs +3 -3
  28. package/esm2022/lib/components/date-range-picker/date-range-picker.module.mjs +4 -4
  29. package/esm2022/lib/components/date-range-picker/providers/date-range-picker.service.mjs +3 -3
  30. package/esm2022/lib/components/drawer/drawer.component.mjs +3 -3
  31. package/esm2022/lib/components/drawer/drawer.module.mjs +4 -4
  32. package/esm2022/lib/components/drawer/drawer.service.mjs +3 -3
  33. package/esm2022/lib/components/export-bottom-sheet/export-bottom-sheet.component.mjs +3 -3
  34. package/esm2022/lib/components/export-bottom-sheet/export-bottom-sheet.module.mjs +4 -4
  35. package/esm2022/lib/components/export-bottom-sheet/providers/export-bottom-sheet.service.mjs +6 -6
  36. package/esm2022/lib/components/form-error/control-status.directive.mjs +66 -64
  37. package/esm2022/lib/components/form-error/form-error.component.mjs +3 -3
  38. package/esm2022/lib/components/form-error/form-error.module.mjs +4 -4
  39. package/esm2022/lib/components/horizontal-stepper/horizontal-stepper.component.mjs +3 -3
  40. package/esm2022/lib/components/horizontal-stepper/horizontal-stepper.module.mjs +4 -4
  41. package/esm2022/lib/components/horizontal-stepper/step.component.mjs +3 -3
  42. package/esm2022/lib/components/image-cropper/image-cropper.component.mjs +6 -6
  43. package/esm2022/lib/components/image-cropper/image-cropper.module.mjs +4 -4
  44. package/esm2022/lib/components/layout/layout.component.mjs +3 -3
  45. package/esm2022/lib/components/layout/layout.module.mjs +4 -4
  46. package/esm2022/lib/components/loading-spinner/loading-spinner.component.mjs +3 -3
  47. package/esm2022/lib/components/loading-spinner/loading-spinner.module.mjs +4 -4
  48. package/esm2022/lib/components/loading-spinner/loading.directive.mjs +3 -3
  49. package/esm2022/lib/components/loading-toast/loading-toast.component.mjs +3 -3
  50. package/esm2022/lib/components/loading-toast/loading-toast.directive.mjs +3 -3
  51. package/esm2022/lib/components/loading-toast/loading-toast.module.mjs +4 -4
  52. package/esm2022/lib/components/loading-toast/loading-toast.service.mjs +3 -3
  53. package/esm2022/lib/components/lottie/lottie.component.mjs +3 -3
  54. package/esm2022/lib/components/lottie/lottie.module.mjs +4 -4
  55. package/esm2022/lib/components/navigation/components/hint-component-base.mjs +3 -3
  56. package/esm2022/lib/components/navigation/directives/show-hint.directive.mjs +3 -3
  57. package/esm2022/lib/components/navigation/horizontal/components/basic/basic.component.mjs +3 -3
  58. package/esm2022/lib/components/navigation/horizontal/components/branch/branch.component.mjs +3 -3
  59. package/esm2022/lib/components/navigation/horizontal/components/divider/divider.component.mjs +3 -3
  60. package/esm2022/lib/components/navigation/horizontal/components/spacer/spacer.component.mjs +3 -3
  61. package/esm2022/lib/components/navigation/horizontal/horizontal.component.mjs +3 -3
  62. package/esm2022/lib/components/navigation/navigation.component.mjs +3 -3
  63. package/esm2022/lib/components/navigation/navigation.module.mjs +4 -4
  64. package/esm2022/lib/components/navigation/navigation.service.mjs +3 -3
  65. package/esm2022/lib/components/navigation/pipes/should-hide.pipe.mjs +3 -3
  66. package/esm2022/lib/components/navigation/pipes/should-show-hint.pipe.mjs +3 -3
  67. package/esm2022/lib/components/navigation/pipes/translate-with-context.pipe.mjs +3 -3
  68. package/esm2022/lib/components/navigation/providers/hint.service.mjs +3 -3
  69. package/esm2022/lib/components/navigation/providers/translation-context.service.mjs +3 -3
  70. package/esm2022/lib/components/navigation/vertical/components/aside/aside.component.mjs +3 -3
  71. package/esm2022/lib/components/navigation/vertical/components/basic/basic.component.mjs +3 -3
  72. package/esm2022/lib/components/navigation/vertical/components/collapsable/collapsable.component.mjs +3 -3
  73. package/esm2022/lib/components/navigation/vertical/components/divider/divider.component.mjs +3 -3
  74. package/esm2022/lib/components/navigation/vertical/components/group/group.component.mjs +3 -3
  75. package/esm2022/lib/components/navigation/vertical/components/spacer/spacer.component.mjs +3 -3
  76. package/esm2022/lib/components/navigation/vertical/vertical.component.mjs +3 -3
  77. package/esm2022/lib/components/search-bar/search-bar.component.mjs +3 -3
  78. package/esm2022/lib/components/search-bar/search-bar.module.mjs +4 -4
  79. package/esm2022/lib/components/sweet-alert/sweet-alert.component.mjs +3 -3
  80. package/esm2022/lib/components/sweet-alert/sweet-alert.directive.mjs +3 -3
  81. package/esm2022/lib/components/sweet-alert/sweet-alert.module.mjs +4 -4
  82. package/esm2022/lib/components/sweet-alert/sweet-alert.service.mjs +3 -3
  83. package/esm2022/lib/components/toast/toast.component.mjs +3 -3
  84. package/esm2022/lib/components/toast/toast.module.mjs +4 -4
  85. package/esm2022/lib/components/toast/toast.service.mjs +3 -3
  86. package/esm2022/lib/components/toggle-button-group/toggle-button-group.component.mjs +3 -3
  87. package/esm2022/lib/components/toggle-button-group/toggle-button-group.module.mjs +4 -4
  88. package/esm2022/lib/components/toggle-button-group/toggle-button.component.mjs +3 -3
  89. package/esm2022/lib/components/translation-form/components/textarea/translation-form-textarea.component.mjs +3 -3
  90. package/esm2022/lib/components/translation-form/components/textfield/translation-form-textfield.component.mjs +3 -3
  91. package/esm2022/lib/components/translation-form/components/translation-form.component.mjs +5 -5
  92. package/esm2022/lib/components/translation-form/components/translation-form.module.mjs +4 -4
  93. package/esm2022/lib/components/translation-form/directives/translation-context.directive.mjs +14 -6
  94. package/esm2022/lib/components/translation-form/providers/nice-translation-form.service.mjs +3 -3
  95. package/esm2022/lib/components/translation-form/toggle/translation-toggle.component.mjs +3 -3
  96. package/esm2022/lib/components/translation-form/validators/require-for-languages.validator.mjs +5 -5
  97. package/esm2022/lib/components/typeahead/directives/options-scroll.directive.mjs +3 -3
  98. package/esm2022/lib/components/typeahead/directives/options-scroll.module.mjs +4 -4
  99. package/esm2022/lib/components/typeahead/typeahead.component.mjs +11 -7
  100. package/esm2022/lib/components/typeahead/typeahead.module.mjs +4 -4
  101. package/esm2022/lib/directives/autofocus/autofocus.directive.mjs +3 -3
  102. package/esm2022/lib/directives/autofocus/autofocus.module.mjs +4 -4
  103. package/esm2022/lib/directives/autogrow/autogrow.directive.mjs +3 -3
  104. package/esm2022/lib/directives/autogrow/autogrow.module.mjs +4 -4
  105. package/esm2022/lib/directives/chip-async-typeahead/chip-async-typeahead.directive.mjs +3 -3
  106. package/esm2022/lib/directives/chip-list/chip-list-items/chip-list-item-label.directive.mjs +3 -3
  107. package/esm2022/lib/directives/chip-list/chip-list-items/chip-list-items.component.mjs +3 -3
  108. package/esm2022/lib/directives/chip-list/chip-list.directive.mjs +3 -3
  109. package/esm2022/lib/directives/chip-list/chip-list.module.mjs +4 -4
  110. package/esm2022/lib/directives/draggable-list/draggable-list.directive.mjs +3 -3
  111. package/esm2022/lib/directives/draggable-list/draggable-list.module.mjs +4 -4
  112. package/esm2022/lib/directives/dropzone/dropzone.directive.mjs +3 -3
  113. package/esm2022/lib/directives/dropzone/dropzone.module.mjs +4 -4
  114. package/esm2022/lib/directives/image-error-placeholder/image-error-placeholder.directive.mjs +3 -3
  115. package/esm2022/lib/directives/image-error-placeholder/image-error-placeholder.module.mjs +4 -4
  116. package/esm2022/lib/directives/material/material.module.mjs +4 -4
  117. package/esm2022/lib/directives/material/nice-material-style.directive.mjs +3 -3
  118. package/esm2022/lib/directives/material/nice-rounded-style.directive.mjs +3 -3
  119. package/esm2022/lib/directives/modals/modal-on-click.directive.mjs +3 -3
  120. package/esm2022/lib/directives/modals/modal-opener.directive.mjs +3 -3
  121. package/esm2022/lib/directives/rerender/rerender.directive.mjs +3 -3
  122. package/esm2022/lib/directives/resolve/resolve.directive.mjs +3 -3
  123. package/esm2022/lib/directives/scroll-reset/scroll-reset.directive.mjs +3 -3
  124. package/esm2022/lib/directives/scroll-reset/scroll-reset.module.mjs +4 -4
  125. package/esm2022/lib/directives/scrollbar/scrollbar.directive.mjs +3 -3
  126. package/esm2022/lib/directives/scrollbar/scrollbar.module.mjs +4 -4
  127. package/esm2022/lib/directives/stop-propagation/click-stop-propagation.directive.mjs +3 -3
  128. package/esm2022/lib/directives/stop-propagation/stop-propagation.module.mjs +4 -4
  129. package/esm2022/lib/directives/window/prevent-close-window.directive.mjs +3 -3
  130. package/esm2022/lib/directives/window/window-directive.module.mjs +4 -4
  131. package/esm2022/lib/nice.module.mjs +4 -4
  132. package/esm2022/lib/pipes/boolean.pipe.mjs +3 -3
  133. package/esm2022/lib/pipes/capitalize-first-letter.pipe.mjs +3 -3
  134. package/esm2022/lib/pipes/ceil.pipe.mjs +3 -3
  135. package/esm2022/lib/pipes/entries.pipe.mjs +3 -3
  136. package/esm2022/lib/pipes/find-by-key.pipe.mjs +3 -3
  137. package/esm2022/lib/pipes/first-letter.pipe.mjs +3 -3
  138. package/esm2022/lib/pipes/floor.pipe.mjs +3 -3
  139. package/esm2022/lib/pipes/join-if-defined.pipe.mjs +3 -3
  140. package/esm2022/lib/pipes/link.pipe.mjs +3 -3
  141. package/esm2022/lib/pipes/localized-boolean.pipe.mjs +3 -3
  142. package/esm2022/lib/pipes/localized-currency.pipe.mjs +3 -3
  143. package/esm2022/lib/pipes/localized-date-only.pipe.mjs +3 -3
  144. package/esm2022/lib/pipes/localized-date.pipe.mjs +3 -3
  145. package/esm2022/lib/pipes/minutes-to-time.pipe.mjs +3 -3
  146. package/esm2022/lib/pipes/number-to-ordinal-indicator.pipe.mjs +3 -3
  147. package/esm2022/lib/pipes/pad.pipe.mjs +3 -3
  148. package/esm2022/lib/pipes/phone.pipe.mjs +3 -3
  149. package/esm2022/lib/pipes/pipes.module.mjs +4 -4
  150. package/esm2022/lib/pipes/postal-code.pipe.mjs +3 -3
  151. package/esm2022/lib/pipes/range.pipe.mjs +3 -3
  152. package/esm2022/lib/pipes/round.pipe.mjs +3 -3
  153. package/esm2022/lib/pipes/sanitize-bypass.pipe.mjs +3 -3
  154. package/esm2022/lib/pipes/seconds-to-time.pipe.mjs +3 -3
  155. package/esm2022/lib/pipes/track-by-prop.pipe.mjs +3 -3
  156. package/esm2022/lib/providers/config/config.module.mjs +4 -4
  157. package/esm2022/lib/providers/config/config.service.mjs +3 -3
  158. package/esm2022/lib/providers/media-watcher/media-watcher.module.mjs +4 -4
  159. package/esm2022/lib/providers/media-watcher/media-watcher.service.mjs +3 -3
  160. package/esm2022/lib/providers/overlay/dynamic-overlay-container.service.mjs +3 -3
  161. package/esm2022/lib/providers/overlay/dynamic-overlay.service.mjs +3 -3
  162. package/esm2022/lib/providers/splash-screen/splash-screen.module.mjs +4 -4
  163. package/esm2022/lib/providers/splash-screen/splash-screen.service.mjs +3 -3
  164. package/esm2022/lib/providers/utils/utils.module.mjs +4 -4
  165. package/esm2022/lib/providers/utils/utils.service.mjs +3 -3
  166. package/esm2022/lib/utils/file.utils.mjs +14 -1
  167. package/fesm2022/recursyve-nice-ui-kit.v2.mjs +660 -606
  168. package/fesm2022/recursyve-nice-ui-kit.v2.mjs.map +1 -1
  169. package/lib/components/carousel/carousel.component.d.ts +4 -2
  170. package/lib/components/carousel/carousel.constant.d.ts +2 -0
  171. package/lib/components/carousel/carousel.module.d.ts +3 -0
  172. package/lib/components/carousel/interfaces/carousel-options.interface.d.ts +9 -0
  173. package/lib/components/form-error/control-status.directive.d.ts +1 -1
  174. package/lib/components/translation-form/directives/translation-context.directive.d.ts +3 -2
  175. package/lib/utils/file.utils.d.ts +3 -0
  176. package/package.json +8 -8
  177. package/src/lib/components/base-form/base-form.theme.scss +3 -3
  178. package/src/lib/components/date-range-picker/date-range-picker.theme.scss +1 -1
  179. package/src/lib/components/horizontal-stepper/horizontal-stepper.theme.scss +2 -2
  180. package/src/lib/components/toggle-button-group/toggle-button-group.theme.scss +3 -3
  181. package/src/lib/nice.theme.scss +17 -17
@@ -1,5 +1,6 @@
1
1
  import { EventEmitter } from "@angular/core";
2
2
  import { PictureModalService } from "./picture-modal/picture-modal.service";
3
+ import { NiceCarouselIconOptions } from "./interfaces/carousel-options.interface";
3
4
  import * as i0 from "@angular/core";
4
5
  export interface Picture {
5
6
  id: number;
@@ -7,15 +8,16 @@ export interface Picture {
7
8
  }
8
9
  export declare class CarouselComponent {
9
10
  private pictureModalService;
11
+ icons?: NiceCarouselIconOptions;
10
12
  currentImages: Picture[];
11
13
  set images(urls: Picture[]);
12
14
  direction: "ltr" | "rtl" | "utd" | "dtu";
13
15
  layout: "row" | "column";
14
16
  editable: boolean;
15
17
  delete: EventEmitter<Picture>;
16
- constructor(pictureModalService: PictureModalService);
18
+ constructor(pictureModalService: PictureModalService, icons?: NiceCarouselIconOptions);
17
19
  clickView(picture: Picture): void;
18
20
  clickDelete(picture: Picture): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, never>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<CarouselComponent, [null, { optional: true; }]>;
20
22
  static ɵcmp: i0.ɵɵComponentDeclaration<CarouselComponent, "nice-carousel", never, { "images": { "alias": "images"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "editable": { "alias": "editable"; "required": false; }; }, { "delete": "delete"; }, never, never, false, never>;
21
23
  }
@@ -0,0 +1,2 @@
1
+ import { InjectionToken } from "@angular/core";
2
+ export declare const CAROUSEL_ICONS: InjectionToken<unknown>;
@@ -1,3 +1,5 @@
1
+ import { ModuleWithProviders } from "@angular/core";
2
+ import { NiceCarouselOptions } from "./interfaces/carousel-options.interface";
1
3
  import * as i0 from "@angular/core";
2
4
  import * as i1 from "./carousel.component";
3
5
  import * as i2 from "./picture-modal/picture-modal.component";
@@ -8,6 +10,7 @@ import * as i6 from "@angular/material/button";
8
10
  import * as i7 from "@ngx-translate/core";
9
11
  import * as i8 from "@angular/material/icon";
10
12
  export declare class NiceCarouselModule {
13
+ static forRoot(options?: NiceCarouselOptions): ModuleWithProviders<NiceCarouselModule>;
11
14
  static ɵfac: i0.ɵɵFactoryDeclaration<NiceCarouselModule, never>;
12
15
  static ɵmod: i0.ɵɵNgModuleDeclaration<NiceCarouselModule, [typeof i1.CarouselComponent, typeof i2.PictureModalComponent, typeof i3.CarouselLayoutPipe], [typeof i4.CommonModule, typeof i5.MatCardModule, typeof i6.MatButtonModule, typeof i7.TranslateModule, typeof i8.MatIconModule], [typeof i1.CarouselComponent]>;
13
16
  static ɵinj: i0.ɵɵInjectorDeclaration<NiceCarouselModule>;
@@ -0,0 +1,9 @@
1
+ export type NiceCarouselIcons = {
2
+ svgIcon: string;
3
+ };
4
+ export interface NiceCarouselIconOptions {
5
+ remove?: NiceCarouselIcons;
6
+ }
7
+ export interface NiceCarouselOptions {
8
+ icons?: NiceCarouselIconOptions;
9
+ }
@@ -10,10 +10,10 @@ export declare class NiceControlStatusDirective implements AfterViewInit, OnDest
10
10
  private ref;
11
11
  private control;
12
12
  private unsubscribeAll$;
13
+ onChange: () => void;
13
14
  constructor(el: ElementRef<HTMLElement>, vcr: ViewContainerRef, formField: MatFormField, translateService: TranslateService);
14
15
  ngAfterViewInit(): void;
15
16
  ngOnDestroy(): void;
16
- onChange(): void;
17
17
  setError(text: string): void;
18
18
  static ɵfac: i0.ɵɵFactoryDeclaration<NiceControlStatusDirective, never>;
19
19
  static ɵdir: i0.ɵɵDirectiveDeclaration<NiceControlStatusDirective, "[niceControlStatus]", never, {}, {}, never, never, false, never>;
@@ -1,9 +1,10 @@
1
- import { OnDestroy, OnInit } from "@angular/core";
1
+ import { EventEmitter, OnDestroy, OnInit } from "@angular/core";
2
2
  import { BehaviorSubject } from "rxjs";
3
3
  import { NiceTranslationFormService } from "../providers/nice-translation-form.service";
4
4
  import * as i0 from "@angular/core";
5
5
  export declare class TranslationContextDirective implements OnInit, OnDestroy {
6
6
  private translationFormService;
7
+ activeLanguageChange: EventEmitter<string>;
7
8
  activeLanguage$: BehaviorSubject<string>;
8
9
  private _unsubscribeAll$;
9
10
  constructor(translationFormService: NiceTranslationFormService);
@@ -12,5 +13,5 @@ export declare class TranslationContextDirective implements OnInit, OnDestroy {
12
13
  updateLanguage(language: string): void;
13
14
  reset(): void;
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<TranslationContextDirective, never>;
15
- static ɵdir: i0.ɵɵDirectiveDeclaration<TranslationContextDirective, "[niceTranslationContext]", never, {}, {}, never, never, false, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TranslationContextDirective, "[niceTranslationContext]", never, {}, { "activeLanguageChange": "activeLanguageChange"; }, never, never, false, never>;
16
17
  }
@@ -2,6 +2,9 @@ export declare class FileUtils {
2
2
  static getFileFromUrl(url?: string, name?: string): Promise<File | undefined>;
3
3
  static selectFile(accept: string, multiple?: boolean): Promise<File | File[]>;
4
4
  static downloadFile(fileName: string, content: Blob, downloadLink?: HTMLAnchorElement): void;
5
+ static openFile(file: Blob, options?: {
6
+ openInNewTab: boolean;
7
+ }): void;
5
8
  static downloadUrl(url: string): void;
6
9
  static openPrintableWindow(content: string): void;
7
10
  static filenameToExtension(filename: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursyve/nice-ui-kit.v2",
3
- "version": "17.0.0-beta.140",
3
+ "version": "18.0.0-beta.144",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./_index.scss",
@@ -14,13 +14,13 @@
14
14
  }
15
15
  },
16
16
  "peerDependencies": {
17
- "@angular/cdk": "^17.0.0",
18
- "@angular/common": "^17.0.0",
19
- "@angular/core": "^17.0.0",
20
- "@angular/forms": "^17.0.0",
21
- "@angular/material": "^17.0.0",
22
- "@recursyve/ngx-form-generator": ">= 17.0.0-beta.50",
23
- "ngx-mask": "^17.0.0",
17
+ "@angular/cdk": "^18.0.0",
18
+ "@angular/common": "^18.0.0",
19
+ "@angular/core": "^18.0.0",
20
+ "@angular/forms": "^18.0.0",
21
+ "@angular/material": "^18.0.0",
22
+ "@recursyve/ngx-form-generator": ">= 18.0.0-beta.50",
23
+ "ngx-mask": "^18.0.0",
24
24
  "perfect-scrollbar": "^1.5.5",
25
25
  "uuid": ">= 9.0.0"
26
26
  },
@@ -5,16 +5,16 @@
5
5
 
6
6
  .nice-form {
7
7
  .mat-step-icon-selected {
8
- background-color: mat.get-color-from-palette($accent);
8
+ background-color: mat.m2-get-color-from-palette($accent);
9
9
  }
10
10
 
11
11
  .mat-step-icon-state-done {
12
- background-color: mat.get-color-from-palette($accent, 400);
12
+ background-color: mat.m2-get-color-from-palette($accent, 400);
13
13
  }
14
14
 
15
15
  .mat-list-item {
16
16
  .field-group-icon {
17
- color: mat.get-color-from-palette($accent);
17
+ color: mat.m2-get-color-from-palette($accent);
18
18
  }
19
19
  }
20
20
  }
@@ -36,7 +36,7 @@
36
36
 
37
37
  button {
38
38
  .mat-button-focus-overlay {
39
- background: mat.get-color-from-palette($accent) !important;
39
+ background: mat.m2-get-color-from-palette($accent) !important;
40
40
  }
41
41
  }
42
42
 
@@ -6,11 +6,11 @@
6
6
 
7
7
  nice-horizontal-stepper {
8
8
  .step {
9
- background: mat.get-color-from-palette($primary, 500, 0.3);
9
+ background: mat.m2-get-color-from-palette($primary, 500, 0.3);
10
10
  }
11
11
 
12
12
  .step.active {
13
- background: mat.get-color-from-palette($accent);
13
+ background: mat.m2-get-color-from-palette($accent);
14
14
  }
15
15
  }
16
16
  }
@@ -15,19 +15,19 @@
15
15
  &.selected {
16
16
  &.bg-selected-accent {
17
17
  .toggle-button-inner {
18
- color: mat.get-color-from-palette($accent, default-contrast);
18
+ color: mat.m2-get-color-from-palette($accent, default-contrast);
19
19
  }
20
20
  }
21
21
 
22
22
  &.bg-selected-primary {
23
23
  .toggle-button-inner {
24
- color: mat.get-contrast-color-from-palette($primary, 500);
24
+ color: mat.m2-get-contrast-color-from-palette($primary, 500);
25
25
  }
26
26
  }
27
27
 
28
28
  &.bg-selected-warn {
29
29
  .toggle-button-inner {
30
- color: mat.get-contrast-color-from-palette($warn, 500);
30
+ color: mat.m2-get-contrast-color-from-palette($warn, 500);
31
31
  }
32
32
  }
33
33
  }
@@ -85,7 +85,7 @@
85
85
 
86
86
  .mat-tab-group:not(.keep-material-style) {
87
87
  &.mat-accent .mat-tab-label-active, .mat-tab-label:focus:not(.mat-tab-disabled) {
88
- color: mat.get-color-from-palette($accent);
88
+ color: mat.m2-get-color-from-palette($accent);
89
89
  }
90
90
  }
91
91
  }
@@ -206,7 +206,7 @@ $palettes: ();
206
206
  set. We can just create one light and one dark theme and then switch the
207
207
  CSS Custom Properties to dynamically switch the colors. */
208
208
  @function nice-light-theme() {
209
- $base-light-theme: mat.define-light-theme((
209
+ $base-light-theme: mat.m2-define-light-theme((
210
210
  color: ($palettes)
211
211
  ));
212
212
 
@@ -233,7 +233,7 @@ $palettes: ();
233
233
  }
234
234
 
235
235
  @function nice-dark-theme() {
236
- $base-dark-theme: mat.define-dark-theme((
236
+ $base-dark-theme: mat.m2-define-dark-theme((
237
237
  color: ($palettes)
238
238
  ));
239
239
 
@@ -266,21 +266,21 @@ $palettes: ();
266
266
  @include mat.all-component-themes((
267
267
  color: null,
268
268
  density: 0,
269
- typography: mat.define-typography-config(
269
+ typography: mat.m2-define-typography-config(
270
270
  $font-family: theme('fontFamily.sans'),
271
- $headline-1: mat.define-typography-level(1.875rem, 2.25rem, 800, theme('fontFamily.sans')),
272
- $headline-2: mat.define-typography-level(1.25rem, 1.75rem, 700, theme('fontFamily.sans')),
273
- $headline-3: mat.define-typography-level(1.125rem, 1.75rem, 600, theme('fontFamily.sans')),
274
- $headline-4: mat.define-typography-level(0.875rem, 1.25rem, 600, theme('fontFamily.sans')),
275
- $headline-5: mat.define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
276
- $headline-6: mat.define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
277
- $subtitle-1: mat.define-typography-level(1rem, 1.75rem, 400, theme('fontFamily.sans')),
278
- $subtitle-2: mat.define-typography-level(0.875rem, 1.25rem, 600, theme('fontFamily.sans')),
279
- $body-1: mat.define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
280
- $body-2: mat.define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
281
- $caption: mat.define-typography-level(0.75rem, 1rem, 400, theme('fontFamily.sans')),
282
- $button: mat.define-typography-level(0.875rem, 0.875rem, 500, theme('fontFamily.sans')),
283
- $overline: mat.define-typography-level(0.75rem, 2rem, 500, theme('fontFamily.sans'))
271
+ $headline-1: mat.m2-define-typography-level(1.875rem, 2.25rem, 800, theme('fontFamily.sans')),
272
+ $headline-2: mat.m2-define-typography-level(1.25rem, 1.75rem, 700, theme('fontFamily.sans')),
273
+ $headline-3: mat.m2-define-typography-level(1.125rem, 1.75rem, 600, theme('fontFamily.sans')),
274
+ $headline-4: mat.m2-define-typography-level(0.875rem, 1.25rem, 600, theme('fontFamily.sans')),
275
+ $headline-5: mat.m2-define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
276
+ $headline-6: mat.m2-define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
277
+ $subtitle-1: mat.m2-define-typography-level(1rem, 1.75rem, 400, theme('fontFamily.sans')),
278
+ $subtitle-2: mat.m2-define-typography-level(0.875rem, 1.25rem, 600, theme('fontFamily.sans')),
279
+ $body-1: mat.m2-define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
280
+ $body-2: mat.m2-define-typography-level(0.875rem, 1.5rem, 400, theme('fontFamily.sans')),
281
+ $caption: mat.m2-define-typography-level(0.75rem, 1rem, 400, theme('fontFamily.sans')),
282
+ $button: mat.m2-define-typography-level(0.875rem, 0.875rem, 500, theme('fontFamily.sans')),
283
+ $overline: mat.m2-define-typography-level(0.75rem, 2rem, 500, theme('fontFamily.sans'))
284
284
  )
285
285
  ));
286
286