@rlucan/ui 17.1.4 → 18.2.1

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/esm2022/lib/action-button/action-button.component.mjs +3 -3
  2. package/esm2022/lib/action-icon/action-icon.component.mjs +3 -3
  3. package/esm2022/lib/auto-complete/auto-complete.component.mjs +403 -0
  4. package/esm2022/lib/autocomplete/autocomplete.component.mjs +3 -3
  5. package/esm2022/lib/avatar/avatar.component.mjs +3 -3
  6. package/esm2022/lib/button/button.component.mjs +3 -3
  7. package/esm2022/lib/checkbox/checkbox.component.mjs +3 -3
  8. package/esm2022/lib/checkbox-group/checkbox-group.component.mjs +3 -3
  9. package/esm2022/lib/currency/currency.component.mjs +3 -3
  10. package/esm2022/lib/date/date.component.mjs +3 -3
  11. package/esm2022/lib/dialog/dialog.component.mjs +3 -3
  12. package/esm2022/lib/directives/force-visibility/force-visibility.directive.mjs +3 -3
  13. package/esm2022/lib/editor/editor.component.mjs +4 -4
  14. package/esm2022/lib/elements/burger/burger.component.mjs +3 -3
  15. package/esm2022/lib/elements/expander/expander.component.mjs +3 -3
  16. package/esm2022/lib/elements/validation-message/validation-message.component.mjs +3 -3
  17. package/esm2022/lib/file/file.component.mjs +3 -3
  18. package/esm2022/lib/file-uploader/ui-file-uploader.component.mjs +3 -3
  19. package/esm2022/lib/input/input.component.mjs +3 -3
  20. package/esm2022/lib/input-autocomplete/input-autocomplete.component.mjs +3 -3
  21. package/esm2022/lib/layouts/base/ui-base-layout.component.mjs +3 -3
  22. package/esm2022/lib/layouts/base/ui-base.component.mjs +3 -3
  23. package/esm2022/lib/layouts/simple/ui-simple-layout.component.mjs +3 -3
  24. package/esm2022/lib/layouts/simple/ui-simple.component.mjs +3 -3
  25. package/esm2022/lib/radio/radio.component.mjs +3 -3
  26. package/esm2022/lib/radio-group/radio-group.component.mjs +3 -3
  27. package/esm2022/lib/select/select.component.mjs +3 -3
  28. package/esm2022/lib/services/message-box.service.mjs +7 -7
  29. package/esm2022/lib/services/toast.service.mjs +3 -3
  30. package/esm2022/lib/services/ui-file.service.mjs +3 -3
  31. package/esm2022/lib/services/ui-translate.service.mjs +5 -5
  32. package/esm2022/lib/submit-button/submit-button.component.mjs +3 -3
  33. package/esm2022/lib/table/table.component.mjs +3 -3
  34. package/esm2022/lib/text-area/text-area.component.mjs +3 -3
  35. package/esm2022/lib/ui.module.mjs +10 -5
  36. package/esm2022/public-api.mjs +2 -1
  37. package/fesm2022/rlucan-ui.mjs +511 -117
  38. package/fesm2022/rlucan-ui.mjs.map +1 -1
  39. package/lib/auto-complete/auto-complete.component.d.ts +65 -0
  40. package/lib/ui.module.d.ts +36 -35
  41. package/package.json +9 -9
  42. package/public-api.d.ts +1 -0
  43. package/scss/ui-defaults.scss +46 -46
@@ -0,0 +1,65 @@
1
+ import { ChangeDetectorRef, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
+ import { ControlContainer, ControlValueAccessor, UntypedFormControl } from '@angular/forms';
3
+ import { UiBaseComponent } from '../layouts/base/ui-base.component';
4
+ import { InputComponent } from '../input/input.component';
5
+ import { CdkOverlayOrigin } from '@angular/cdk/overlay';
6
+ import * as i0 from "@angular/core";
7
+ export declare class AutoCompleteComponent extends UiBaseComponent implements OnInit, ControlValueAccessor, OnChanges {
8
+ protected controlContainer: ControlContainer;
9
+ private cdr;
10
+ private SHOWN_USERS_DELTA;
11
+ constructor(controlContainer: ControlContainer, cdr: ChangeDetectorRef);
12
+ templates: {
13
+ optionTemplate?: any;
14
+ notFound?: any;
15
+ fileTemplate?: any;
16
+ customContentTemplate?: any;
17
+ };
18
+ options?: any[];
19
+ multiple: boolean;
20
+ allowNew: boolean;
21
+ displayAttribute: string;
22
+ idAttribute: string;
23
+ panelClass: string;
24
+ searchableOptions?: any[];
25
+ filteredOptions: any[];
26
+ filteredMaxItemsShown: number;
27
+ messageShown: boolean;
28
+ initialOption?: any;
29
+ selectedOption?: any;
30
+ lastEmittedId?: any;
31
+ focusedOption?: any;
32
+ alreadyAdded: boolean;
33
+ optionsVisible: boolean;
34
+ input?: InputComponent;
35
+ optionsTrigger: CdkOverlayOrigin;
36
+ inputFocused: boolean;
37
+ inputControl: UntypedFormControl;
38
+ checkboxSelection: Set<any>;
39
+ onChange: (value: any) => void;
40
+ optionDisabled: (any: any) => boolean;
41
+ optionFormatter: (any: any) => string;
42
+ protected buildSearchableOptions(): any[];
43
+ protected filterOptions(text: string): any[];
44
+ ngOnChanges(changes: SimpleChanges): void;
45
+ ngOnInit(): void;
46
+ inputFocusChanged(focused: boolean): void;
47
+ get hasCheckboxSelected(): boolean;
48
+ optionChecked(u: any): boolean;
49
+ select(u: any): void;
50
+ toggleOptionCheckboxed(u: any): void;
51
+ keyPressed(keyEvent: KeyboardEvent): void;
52
+ toggleDropdown(): void;
53
+ emitSelection(src?: string): void;
54
+ cancelCheckboxSelection(): void;
55
+ useCheckboxSelection(): void;
56
+ newOption(): void;
57
+ loadMore(visible: boolean): void;
58
+ focus(): void;
59
+ registerOnChange(fn: any): void;
60
+ registerOnTouched(fn: any): void;
61
+ setDisabledState(isDisabled: boolean): void;
62
+ writeValue(obj: any): void;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<AutoCompleteComponent, [{ optional: true; host: true; skipSelf: true; }, null]>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<AutoCompleteComponent, "ui-auto-complete", never, { "templates": { "alias": "templates"; "required": false; }; "options": { "alias": "options"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "allowNew": { "alias": "allowNew"; "required": false; }; "displayAttribute": { "alias": "displayAttribute"; "required": false; }; "idAttribute": { "alias": "idAttribute"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "optionDisabled": { "alias": "optionDisabled"; "required": false; }; "optionFormatter": { "alias": "optionFormatter"; "required": false; }; }, {}, never, ["[slot=acprefix]"], false, never>;
65
+ }
@@ -18,42 +18,43 @@ import * as i16 from "./date/date.component";
18
18
  import * as i17 from "./table/table.component";
19
19
  import * as i18 from "./elements/burger/burger.component";
20
20
  import * as i19 from "./autocomplete/autocomplete.component";
21
- import * as i20 from "./action-button/action-button.component";
22
- import * as i21 from "./layouts/base/ui-base-layout.component";
23
- import * as i22 from "./layouts/simple/ui-simple-layout.component";
24
- import * as i23 from "./elements/validation-message/validation-message.component";
25
- import * as i24 from "./radio/radio.component";
26
- import * as i25 from "./checkbox-group/checkbox-group.component";
27
- import * as i26 from "./radio-group/radio-group.component";
28
- import * as i27 from "./action-icon/action-icon.component";
29
- import * as i28 from "./editor/editor.component";
30
- import * as i29 from "@angular/common";
31
- import * as i30 from "@angular/material/button";
32
- import * as i31 from "@angular/material/icon";
33
- import * as i32 from "@angular/material/dialog";
34
- import * as i33 from "@angular/material/checkbox";
35
- import * as i34 from "@angular/material/datepicker";
36
- import * as i35 from "@angular/material-moment-adapter";
37
- import * as i36 from "@angular/cdk/drag-drop";
38
- import * as i37 from "@angular/forms";
39
- import * as i38 from "@angular/material/tooltip";
40
- import * as i39 from "@angular/material/progress-bar";
41
- import * as i40 from "@angular/material/table";
42
- import * as i41 from "@angular/material/sort";
43
- import * as i42 from "@angular/material/select";
44
- import * as i43 from "ngx-uploader";
45
- import * as i44 from "@angular/material/progress-spinner";
46
- import * as i45 from "@angular/material/menu";
47
- import * as i46 from "ngx-image-cropper";
48
- import * as i47 from "@angular/router";
49
- import * as i48 from "@angular/cdk/overlay";
50
- import * as i49 from "@angular/material/core";
51
- import * as i50 from "@angular/material/input";
52
- import * as i51 from "@angular/material/radio";
53
- import * as i52 from "@angular/material/snack-bar";
54
- import * as i53 from "@angular/material/autocomplete";
21
+ import * as i20 from "./auto-complete/auto-complete.component";
22
+ import * as i21 from "./action-button/action-button.component";
23
+ import * as i22 from "./layouts/base/ui-base-layout.component";
24
+ import * as i23 from "./layouts/simple/ui-simple-layout.component";
25
+ import * as i24 from "./elements/validation-message/validation-message.component";
26
+ import * as i25 from "./radio/radio.component";
27
+ import * as i26 from "./checkbox-group/checkbox-group.component";
28
+ import * as i27 from "./radio-group/radio-group.component";
29
+ import * as i28 from "./action-icon/action-icon.component";
30
+ import * as i29 from "./editor/editor.component";
31
+ import * as i30 from "@angular/common";
32
+ import * as i31 from "@angular/material/button";
33
+ import * as i32 from "@angular/material/icon";
34
+ import * as i33 from "@angular/material/dialog";
35
+ import * as i34 from "@angular/material/checkbox";
36
+ import * as i35 from "@angular/material/datepicker";
37
+ import * as i36 from "@angular/material-moment-adapter";
38
+ import * as i37 from "@angular/cdk/drag-drop";
39
+ import * as i38 from "@angular/forms";
40
+ import * as i39 from "@angular/material/tooltip";
41
+ import * as i40 from "@angular/material/progress-bar";
42
+ import * as i41 from "@angular/material/table";
43
+ import * as i42 from "@angular/material/sort";
44
+ import * as i43 from "@angular/material/select";
45
+ import * as i44 from "ngx-uploader";
46
+ import * as i45 from "@angular/material/progress-spinner";
47
+ import * as i46 from "@angular/material/menu";
48
+ import * as i47 from "ngx-image-cropper";
49
+ import * as i48 from "@angular/router";
50
+ import * as i49 from "@angular/cdk/overlay";
51
+ import * as i50 from "@angular/material/core";
52
+ import * as i51 from "@angular/material/input";
53
+ import * as i52 from "@angular/material/radio";
54
+ import * as i53 from "@angular/material/snack-bar";
55
+ import * as i54 from "@angular/material/autocomplete";
55
56
  export declare class UiModule {
56
57
  static ɵfac: i0.ɵɵFactoryDeclaration<UiModule, never>;
57
- static ɵmod: i0.ɵɵNgModuleDeclaration<UiModule, [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.InputAutocompleteComponent, typeof i4.SelectComponent, typeof i5.FileComponent, typeof i6.UiFileUploaderComponent, typeof i7.ExpanderComponent, typeof i8.ForceVisibilityDirective, typeof i9.MessageBoxModalComponent, typeof i10.DialogComponent, typeof i11.CurrencyComponent, typeof i12.CheckboxComponent, typeof i13.AvatarComponent, typeof i14.SubmitButtonComponent, typeof i15.TextAreaComponent, typeof i16.DateComponent, typeof i17.TableComponent, typeof i18.BurgerComponent, typeof i19.AutocompleteComponent, typeof i20.ActionButtonComponent, typeof i21.UiBaseLayoutComponent, typeof i22.UiSimpleLayoutComponent, typeof i23.ValidationMessageComponent, typeof i24.RadioComponent, typeof i25.CheckboxGroupComponent, typeof i26.RadioGroupComponent, typeof i27.ActionIconComponent, typeof i28.EditorComponent], [typeof i29.CommonModule, typeof i30.MatButtonModule, typeof i31.MatIconModule, typeof i32.MatDialogModule, typeof i33.MatCheckboxModule, typeof i34.MatDatepickerModule, typeof i35.MatMomentDateModule, typeof i36.DragDropModule, typeof i37.ReactiveFormsModule, typeof i37.FormsModule, typeof i38.MatTooltipModule, typeof i39.MatProgressBarModule, typeof i40.MatTableModule, typeof i41.MatSortModule, typeof i42.MatSelectModule, typeof i43.NgxUploaderModule, typeof i44.MatProgressSpinnerModule, typeof i45.MatMenuModule, typeof i46.ImageCropperModule, typeof i47.RouterModule, typeof i48.OverlayModule, typeof i49.MatRippleModule, typeof i50.MatInputModule, typeof i51.MatRadioModule, typeof i52.MatSnackBarModule, typeof i53.MatAutocompleteModule], [typeof i20.ActionButtonComponent, typeof i27.ActionIconComponent, typeof i19.AutocompleteComponent, typeof i13.AvatarComponent, typeof i18.BurgerComponent, typeof i1.ButtonComponent, typeof i12.CheckboxComponent, typeof i25.CheckboxGroupComponent, typeof i11.CurrencyComponent, typeof i16.DateComponent, typeof i10.DialogComponent, typeof i7.ExpanderComponent, typeof i5.FileComponent, typeof i8.ForceVisibilityDirective, typeof i2.InputComponent, typeof i3.InputAutocompleteComponent, typeof i9.MessageBoxModalComponent, typeof i24.RadioComponent, typeof i26.RadioGroupComponent, typeof i4.SelectComponent, typeof i14.SubmitButtonComponent, typeof i17.TableComponent, typeof i15.TextAreaComponent, typeof i6.UiFileUploaderComponent, typeof i28.EditorComponent]>;
58
+ static ɵmod: i0.ɵɵNgModuleDeclaration<UiModule, [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.InputAutocompleteComponent, typeof i4.SelectComponent, typeof i5.FileComponent, typeof i6.UiFileUploaderComponent, typeof i7.ExpanderComponent, typeof i8.ForceVisibilityDirective, typeof i9.MessageBoxModalComponent, typeof i10.DialogComponent, typeof i11.CurrencyComponent, typeof i12.CheckboxComponent, typeof i13.AvatarComponent, typeof i14.SubmitButtonComponent, typeof i15.TextAreaComponent, typeof i16.DateComponent, typeof i17.TableComponent, typeof i18.BurgerComponent, typeof i19.AutocompleteComponent, typeof i20.AutoCompleteComponent, typeof i21.ActionButtonComponent, typeof i22.UiBaseLayoutComponent, typeof i23.UiSimpleLayoutComponent, typeof i24.ValidationMessageComponent, typeof i25.RadioComponent, typeof i26.CheckboxGroupComponent, typeof i27.RadioGroupComponent, typeof i28.ActionIconComponent, typeof i29.EditorComponent], [typeof i30.CommonModule, typeof i31.MatButtonModule, typeof i32.MatIconModule, typeof i33.MatDialogModule, typeof i34.MatCheckboxModule, typeof i35.MatDatepickerModule, typeof i36.MatMomentDateModule, typeof i37.DragDropModule, typeof i38.ReactiveFormsModule, typeof i38.FormsModule, typeof i39.MatTooltipModule, typeof i40.MatProgressBarModule, typeof i41.MatTableModule, typeof i42.MatSortModule, typeof i43.MatSelectModule, typeof i44.NgxUploaderModule, typeof i45.MatProgressSpinnerModule, typeof i46.MatMenuModule, typeof i47.ImageCropperModule, typeof i48.RouterModule, typeof i49.OverlayModule, typeof i50.MatRippleModule, typeof i51.MatInputModule, typeof i52.MatRadioModule, typeof i53.MatSnackBarModule, typeof i54.MatAutocompleteModule], [typeof i21.ActionButtonComponent, typeof i28.ActionIconComponent, typeof i19.AutocompleteComponent, typeof i20.AutoCompleteComponent, typeof i13.AvatarComponent, typeof i18.BurgerComponent, typeof i1.ButtonComponent, typeof i12.CheckboxComponent, typeof i26.CheckboxGroupComponent, typeof i11.CurrencyComponent, typeof i16.DateComponent, typeof i10.DialogComponent, typeof i7.ExpanderComponent, typeof i5.FileComponent, typeof i8.ForceVisibilityDirective, typeof i2.InputComponent, typeof i3.InputAutocompleteComponent, typeof i9.MessageBoxModalComponent, typeof i25.RadioComponent, typeof i27.RadioGroupComponent, typeof i4.SelectComponent, typeof i14.SubmitButtonComponent, typeof i17.TableComponent, typeof i15.TextAreaComponent, typeof i6.UiFileUploaderComponent, typeof i29.EditorComponent]>;
58
59
  static ɵinj: i0.ɵɵInjectorDeclaration<UiModule>;
59
60
  }
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@rlucan/ui",
3
- "version": "17.1.4",
3
+ "version": "18.2.1",
4
4
  "description": "My UI Components",
5
5
  "author": "rlucan@gmail.com",
6
6
  "peerDependencies": {
7
- "@angular/animations": "^17.1.2",
8
- "@angular/cdk": "^17.1.2",
9
- "@angular/common": "^17.1.2",
10
- "@angular/core": "^17.1.2",
11
- "@angular/forms": "^17.1.2",
12
- "@angular/material": "^17.1.2",
13
- "@angular/material-moment-adapter": "^17.1.2",
14
- "@angular/platform-browser": "^17.1.2",
7
+ "@angular/animations": "^18.2.1",
8
+ "@angular/cdk": "^18.2.1",
9
+ "@angular/common": "^18.2.1",
10
+ "@angular/core": "^18.2.1",
11
+ "@angular/forms": "^18.2.1",
12
+ "@angular/material": "^18.2.1",
13
+ "@angular/material-moment-adapter": "^18.2.1",
14
+ "@angular/platform-browser": "^18.2.1",
15
15
  "@editorjs/editorjs": "^2.29.0",
16
16
  "@editorjs/list": "^1.9.0",
17
17
  "codex-notifier": "^1.1.2",
package/public-api.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './lib/ui.module';
2
2
  export * from './lib/action-button/action-button.component';
3
3
  export * from './lib/action-icon/action-icon.component';
4
4
  export * from './lib/autocomplete/autocomplete.component';
5
+ export * from './lib/auto-complete/auto-complete.component';
5
6
  export * from './lib/avatar/avatar.component';
6
7
  export * from './lib/button/button.component';
7
8
  export * from './lib/checkbox/checkbox.component';
@@ -4,17 +4,17 @@
4
4
  @function uiDefaultLightColors($matTheme) {
5
5
  // @debug $matTheme;
6
6
  $primaryPalette: map-get($matTheme, primary);
7
- $primaryColor: mat.get-color-from-palette($primaryPalette);
8
- $primaryContrastColor: mat.get-color-from-palette($primaryPalette, '500-contrast');
7
+ $primaryColor: mat.m2-get-color-from-palette($primaryPalette);
8
+ $primaryContrastColor: mat.m2-get-color-from-palette($primaryPalette, '500-contrast');
9
9
 
10
10
  $accentPalette: map-get($matTheme, accent);
11
- $accentColor: mat.get-color-from-palette($accentPalette);
11
+ $accentColor: mat.m2-get-color-from-palette($accentPalette);
12
12
  $warnPalette: map-get($matTheme, warn);
13
- $warnColor: mat.get-color-from-palette($warnPalette);
14
- $warnContrastColor: mat.get-color-from-palette($warnPalette, '500-contrast');
13
+ $warnColor: mat.m2-get-color-from-palette($warnPalette);
14
+ $warnContrastColor: mat.m2-get-color-from-palette($warnPalette, '500-contrast');
15
15
 
16
- $baseTextColor: mat.get-color-from-palette(mat.$light-theme-foreground-palette, text);
17
- $baseBackgroundColor: mat.get-color-from-palette(mat.$light-theme-background-palette, background);
16
+ $baseTextColor: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, text);
17
+ $baseBackgroundColor: mat.m2-get-color-from-palette(mat.$m2-light-theme-background-palette, background);
18
18
 
19
19
  @return (
20
20
  /********************************** action-icon **************************************/
@@ -22,28 +22,28 @@
22
22
  primary: (
23
23
  color: $primaryColor,
24
24
  hover: (
25
- color: mat.get-color-from-palette($primaryPalette, 800),
25
+ color: mat.m2-get-color-from-palette($primaryPalette, 800),
26
26
  ),
27
27
  disabled: (
28
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, disabled-text)
28
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, disabled-text)
29
29
  )
30
30
  ),
31
31
  accent: (
32
32
  color: $accentColor,
33
33
  hover: (
34
- color: mat.get-color-from-palette($accentPalette, 800),
34
+ color: mat.m2-get-color-from-palette($accentPalette, 800),
35
35
  ),
36
36
  disabled: (
37
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, disabled-text)
37
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, disabled-text)
38
38
  )
39
39
  ),
40
40
  warn: (
41
- color: mat.get-color-from-palette($warnPalette, 300),
41
+ color: mat.m2-get-color-from-palette($warnPalette, 300),
42
42
  hover: (
43
- color: mat.get-color-from-palette($warnPalette, 500),
43
+ color: mat.m2-get-color-from-palette($warnPalette, 500),
44
44
  ),
45
45
  disabled: (
46
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, disabled-text)
46
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, disabled-text)
47
47
  )
48
48
  )
49
49
  ),
@@ -51,17 +51,17 @@
51
51
  /************************************* autocomplete ******************************************/
52
52
  autocomplete: (
53
53
  background-color: $baseBackgroundColor, // darken(mat.get-color-from-palette(mat.$light-theme-background-palette, card), 5),
54
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, base),
54
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base),
55
55
  options: (
56
56
  hover: (
57
- background-color: mat.get-color-from-palette(mat.$light-theme-background-palette, selected-button),
57
+ background-color: mat.m2-get-color-from-palette(mat.$m2-light-theme-background-palette, selected-button),
58
58
  mat-icon: (
59
59
  color: $primaryColor
60
60
  )
61
61
  ),
62
62
  selected: (
63
- background-color: mat.get-color-from-palette($primaryPalette, 300),
64
- color: mat.get-contrast-color-from-palette($primaryPalette, 300),
63
+ background-color: mat.m2-get-color-from-palette($primaryPalette, 300),
64
+ color: mat.m2-get-contrast-color-from-palette($primaryPalette, 300),
65
65
  //unselectable: (
66
66
  // color: mat.get-color-from-palette($primaryPalette, 100)
67
67
  //)
@@ -78,21 +78,21 @@
78
78
  basic: (
79
79
  primary: (
80
80
  hover: (
81
- background-color: rgba(mat.get-color-from-palette(mat.$light-theme-foreground-palette, base), 0.1)
81
+ background-color: rgba(mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base), 0.1)
82
82
  ),
83
83
  color: $primaryColor,
84
84
  background-color: transparent
85
85
  ),
86
86
  accent: (
87
87
  hover: (
88
- background-color: rgba(mat.get-color-from-palette(mat.$light-theme-foreground-palette, base), 0.1)
88
+ background-color: rgba(mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base), 0.1)
89
89
  ),
90
90
  color: $accentColor,
91
91
  background-color: transparent
92
92
  ),
93
93
  warn: (
94
94
  hover: (
95
- background-color: rgba(mat.get-color-from-palette(mat.$light-theme-foreground-palette, base), 0.1)
95
+ background-color: rgba(mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base), 0.1)
96
96
  ),
97
97
  color: $warnColor,
98
98
  background-color: transparent
@@ -101,30 +101,30 @@
101
101
  flat: (
102
102
  primary: (
103
103
  hover: (
104
- background-color: mat.get-color-from-palette($primaryPalette, 800)
104
+ background-color: mat.m2-get-color-from-palette($primaryPalette, 800)
105
105
  ),
106
- color: mat.get-contrast-color-from-palette($primaryPalette, 500),
107
- background-color: mat.get-color-from-palette($primaryPalette)
106
+ color: mat.m2-get-contrast-color-from-palette($primaryPalette, 500),
107
+ background-color: mat.m2-get-color-from-palette($primaryPalette)
108
108
  ),
109
109
  accent: (
110
110
  hover: (
111
- background-color: mat.get-color-from-palette($accentPalette, 800)
111
+ background-color: mat.m2-get-color-from-palette($accentPalette, 800)
112
112
  ),
113
- color: mat.get-contrast-color-from-palette($accentPalette, 500),
114
- background-color: mat.get-color-from-palette($accentPalette)
113
+ color: mat.m2-get-contrast-color-from-palette($accentPalette, 500),
114
+ background-color: mat.m2-get-color-from-palette($accentPalette)
115
115
  ),
116
116
  warn: (
117
117
  hover: (
118
- background-color: mat.get-color-from-palette($warnPalette, 800)
118
+ background-color: mat.m2-get-color-from-palette($warnPalette, 800)
119
119
  ),
120
- color: mat.get-contrast-color-from-palette($warnPalette, 500),
121
- background-color: mat.get-color-from-palette($warnPalette)
120
+ color: mat.m2-get-contrast-color-from-palette($warnPalette, 500),
121
+ background-color: mat.m2-get-color-from-palette($warnPalette)
122
122
  )
123
123
  ),
124
124
  stroked: (
125
125
  primary: (
126
126
  hover: (
127
- background-color: rgba(mat.get-color-from-palette(mat.$light-theme-foreground-palette, base), 0.1)
127
+ background-color: rgba(mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base), 0.1)
128
128
  ),
129
129
  color: $primaryColor,
130
130
  background-color: transparent,
@@ -132,7 +132,7 @@
132
132
  ),
133
133
  accent: (
134
134
  hover: (
135
- background-color: rgba(mat.get-color-from-palette(mat.$light-theme-foreground-palette, base), 0.1)
135
+ background-color: rgba(mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base), 0.1)
136
136
  ),
137
137
  color: $accentColor,
138
138
  background-color: transparent,
@@ -140,7 +140,7 @@
140
140
  ),
141
141
  warn: (
142
142
  hover: (
143
- background-color: rgba(mat.get-color-from-palette(mat.$light-theme-foreground-palette, base), 0.1)
143
+ background-color: rgba(mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base), 0.1)
144
144
  ),
145
145
  color: $warnColor,
146
146
  background-color: transparent,
@@ -157,7 +157,7 @@
157
157
  checked-color: $primaryColor
158
158
  ),
159
159
  icon: (
160
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, icon),
160
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, icon),
161
161
  checked-color: $primaryColor
162
162
  ),
163
163
  check: (
@@ -170,7 +170,7 @@
170
170
  checked-color: $accentColor
171
171
  ),
172
172
  icon: (
173
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, icon),
173
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, icon),
174
174
  checked-color: $accentColor
175
175
  )
176
176
  ),
@@ -180,7 +180,7 @@
180
180
  checked-color: $warnColor
181
181
  ),
182
182
  icon: (
183
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, icon),
183
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, icon),
184
184
  checked-color: $warnColor
185
185
  )
186
186
  )
@@ -189,14 +189,14 @@
189
189
  /******************************************** dialog ***********************************************/
190
190
  dialog: (
191
191
  title: (
192
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, base)
192
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base)
193
193
  ),
194
194
  backdrop: (
195
195
  background-color: rgba(0, 0, 0, 0.32)
196
196
  ),
197
- background-color: mat.get-color-from-palette(mat.$light-theme-background-palette, dialog),
197
+ background-color: mat.m2-get-color-from-palette(mat.$m2-light-theme-background-palette, dialog),
198
198
  divider: (
199
- border-color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, divider)
199
+ border-color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, divider)
200
200
  ),
201
201
  message: (
202
202
  error: (
@@ -207,7 +207,7 @@
207
207
  ),
208
208
 
209
209
  expander: (
210
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, base)
210
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, base)
211
211
  ),
212
212
 
213
213
  /**************************************** file uploader ******************************************/
@@ -240,7 +240,7 @@
240
240
  /***************************************** input ******************************************/
241
241
  input: (
242
242
  background-color: $baseBackgroundColor,
243
- border-color: mat.get-color-from-palette($primaryPalette, 100),
243
+ border-color: mat.m2-get-color-from-palette($primaryPalette, 100),
244
244
  color: $baseTextColor,
245
245
  label: (
246
246
  color: $primaryColor,
@@ -249,12 +249,12 @@
249
249
  color: $warnColor
250
250
  ),
251
251
  counter: (
252
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, disabled)
252
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, disabled)
253
253
  )
254
254
  ),
255
255
  disabled: (
256
256
  background-color: $baseBackgroundColor,
257
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, disabled-text)
257
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, disabled-text)
258
258
  ),
259
259
  focus: (
260
260
  border-color: $primaryColor
@@ -283,17 +283,17 @@
283
283
  )
284
284
  ),
285
285
  prefix-suffix: (
286
- color: mat.get-color-from-palette($primaryPalette, 100),
286
+ color: mat.m2-get-color-from-palette($primaryPalette, 100),
287
287
  focus: (
288
288
  color: $primaryColor
289
289
  ),
290
290
  active: (
291
291
  color: $primaryColor,
292
292
  hover: (
293
- color: mat.get-color-from-palette($primaryPalette, 800),
293
+ color: mat.m2-get-color-from-palette($primaryPalette, 800),
294
294
  ),
295
295
  disabled: (
296
- color: mat.get-color-from-palette(mat.$light-theme-foreground-palette, disabled-text)
296
+ color: mat.m2-get-color-from-palette(mat.$m2-light-theme-foreground-palette, disabled-text)
297
297
  )
298
298
  )
299
299
  ),