i-tech-shared-components 1.1.6 → 1.1.9

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 (128) hide show
  1. package/.npmignore +2 -0
  2. package/README.md +23 -23
  3. package/esm2022/i-tech-shared-components.mjs +5 -0
  4. package/esm2022/lib/components/autocomplete-select/autocomplete-select.component.mjs +409 -0
  5. package/esm2022/lib/components/button/button.component.mjs +122 -0
  6. package/esm2022/lib/components/clear-value/clear-value.component.mjs +34 -0
  7. package/esm2022/lib/components/date-picker/date-picker.component.mjs +111 -0
  8. package/esm2022/lib/components/date-range-datepicker/date-range-datepicker.component.mjs +118 -0
  9. package/esm2022/lib/components/icon-button/icon-button.component.mjs +49 -0
  10. package/esm2022/lib/components/menu/menu.component.mjs +51 -0
  11. package/esm2022/lib/components/text/text-input.component.mjs +73 -0
  12. package/esm2022/lib/directives/date-mask.directive.mjs +92 -0
  13. package/esm2022/lib/directives/input-mask.directive.mjs +92 -0
  14. package/esm2022/lib/interfaces/app-input.interface.mjs +2 -0
  15. package/esm2022/lib/interfaces/autocomplete-configs.interface.mjs +2 -0
  16. package/esm2022/lib/interfaces/button-types.enum.mjs +17 -0
  17. package/esm2022/lib/interfaces/dropdown-selection.constants.mjs +12 -0
  18. package/esm2022/lib/pipes/array-to-string.pipe.mjs +17 -0
  19. package/esm2022/lib/pipes/generate-error-messages.pipe.mjs +31 -0
  20. package/esm2022/lib/pipes/get-value-by-key-from-object.pipe.mjs +45 -0
  21. package/esm2022/lib/services/input.service.mjs +29 -0
  22. package/esm2022/public-api.mjs +20 -0
  23. package/fesm2022/i-tech-shared-components.mjs +1216 -0
  24. package/fesm2022/i-tech-shared-components.mjs.map +1 -0
  25. package/index.d.ts +5 -0
  26. package/lib/components/autocomplete-select/autocomplete-select.component.d.ts +84 -0
  27. package/lib/components/button/button.component.d.ts +65 -0
  28. package/lib/components/clear-value/clear-value.component.d.ts +9 -0
  29. package/lib/components/date-picker/date-picker.component.d.ts +35 -0
  30. package/lib/components/date-range-datepicker/date-range-datepicker.component.d.ts +36 -0
  31. package/lib/components/icon-button/icon-button.component.d.ts +14 -0
  32. package/lib/components/menu/menu.component.d.ts +28 -0
  33. package/lib/components/text/text-input.component.d.ts +21 -0
  34. package/lib/directives/date-mask.directive.d.ts +25 -0
  35. package/lib/directives/input-mask.directive.d.ts +21 -0
  36. package/lib/interfaces/app-input.interface.d.ts +31 -0
  37. package/lib/interfaces/autocomplete-configs.interface.d.ts +37 -0
  38. package/lib/interfaces/button-types.enum.d.ts +15 -0
  39. package/lib/interfaces/dropdown-selection.constants.d.ts +10 -0
  40. package/lib/pipes/array-to-string.pipe.d.ts +7 -0
  41. package/lib/pipes/generate-error-messages.pipe.d.ts +10 -0
  42. package/lib/pipes/get-value-by-key-from-object.pipe.d.ts +7 -0
  43. package/lib/services/input.service.d.ts +7 -0
  44. package/package.json +32 -19
  45. package/{src/public-api.ts → public-api.d.ts} +16 -20
  46. package/theme/_buttons.scss +63 -63
  47. package/theme/_color_themes.scss +136 -136
  48. package/theme/_date_picker.scss +77 -77
  49. package/theme/_form_fields.scss +112 -112
  50. package/theme/_icon-button.scss +123 -123
  51. package/theme/_label.scss +119 -119
  52. package/theme/_mat-selects.scss +248 -248
  53. package/theme/_menu.scss +9 -9
  54. package/theme/_text_input.scss +28 -28
  55. package/theme/variables/_colors.scss +20 -20
  56. package/theme.scss +31 -33
  57. package/docs/README.md +0 -87
  58. package/docs/components/autocomplete-select/autocomplete-select.component/README.md +0 -13
  59. package/docs/components/autocomplete-select/autocomplete-select.component/classes/AutocompleteSelectComponent.md +0 -793
  60. package/docs/components/button/button.component/README.md +0 -13
  61. package/docs/components/button/button.component/classes/ButtonComponent.md +0 -191
  62. package/docs/components/button/button.component.spec/README.md +0 -7
  63. package/docs/components/clear-value/clear-value.component/README.md +0 -13
  64. package/docs/components/clear-value/clear-value.component/classes/ClearValueComponent.md +0 -47
  65. package/docs/components/date-picker/date-picker.component/README.md +0 -13
  66. package/docs/components/date-picker/date-picker.component/classes/DatePickerComponent.md +0 -253
  67. package/docs/components/date-range-datepicker/date-range-datepicker.component/README.md +0 -13
  68. package/docs/components/date-range-datepicker/date-range-datepicker.component/classes/DateRangeDatepickerComponent.md +0 -341
  69. package/docs/components/icon-button/icon-button.component/README.md +0 -13
  70. package/docs/components/icon-button/icon-button.component/classes/IconButtonComponent.md +0 -107
  71. package/docs/components/label/label.component/README.md +0 -13
  72. package/docs/components/label/label.component/classes/LabelComponent.md +0 -97
  73. package/docs/components/menu/menu.component/README.md +0 -13
  74. package/docs/components/menu/menu.component/classes/MenuComponent.md +0 -139
  75. package/docs/components/text/text-input.component/README.md +0 -13
  76. package/docs/components/text/text-input.component/classes/TextInputComponent.md +0 -133
  77. package/docs/interfaces/app-input.interface/README.md +0 -13
  78. package/docs/interfaces/app-input.interface/interfaces/AppInputInterface.md +0 -297
  79. package/docs/interfaces/autocomplete-configs.interface/README.md +0 -13
  80. package/docs/interfaces/autocomplete-configs.interface/interfaces/AutocompleteConfigsInterface.md +0 -357
  81. package/docs/interfaces/button-types.enum/README.md +0 -13
  82. package/docs/interfaces/button-types.enum/enumerations/ButtonType.md +0 -69
  83. package/docs/interfaces/dropdown-selection.constants/README.md +0 -17
  84. package/docs/interfaces/dropdown-selection.constants/enumerations/DropdownSelectionType.md +0 -37
  85. package/docs/interfaces/dropdown-selection.constants/variables/DropdownItemIcon.md +0 -27
  86. package/docs/interfaces/label-type.enum/README.md +0 -13
  87. package/docs/interfaces/label-type.enum/enumerations/LabelTypeEnum.md +0 -127
  88. package/docs/services/input.service/README.md +0 -13
  89. package/docs/services/input.service/classes/InputService.md +0 -31
  90. package/ng-package.json +0 -17
  91. package/src/README.md +0 -0
  92. package/src/lib/components/autocomplete-select/autocomplete-select.component.html +0 -211
  93. package/src/lib/components/autocomplete-select/autocomplete-select.component.scss +0 -58
  94. package/src/lib/components/autocomplete-select/autocomplete-select.component.ts +0 -430
  95. package/src/lib/components/autocomplete-select/loader.svg +0 -6
  96. package/src/lib/components/button/button.component.css +0 -0
  97. package/src/lib/components/button/button.component.html +0 -48
  98. package/src/lib/components/button/button.component.spec.ts +0 -23
  99. package/src/lib/components/button/button.component.ts +0 -106
  100. package/src/lib/components/clear-value/clear-value.component.ts +0 -44
  101. package/src/lib/components/date-picker/date-picker.component.html +0 -61
  102. package/src/lib/components/date-picker/date-picker.component.ts +0 -75
  103. package/src/lib/components/date-range-datepicker/date-range-datepicker.component.html +0 -44
  104. package/src/lib/components/date-range-datepicker/date-range-datepicker.component.ts +0 -105
  105. package/src/lib/components/icon-button/icon-button.component.html +0 -27
  106. package/src/lib/components/icon-button/icon-button.component.scss +0 -0
  107. package/src/lib/components/icon-button/icon-button.component.ts +0 -37
  108. package/src/lib/components/label/label.component.html +0 -15
  109. package/src/lib/components/label/label.component.ts +0 -33
  110. package/src/lib/components/menu/menu.component.html +0 -20
  111. package/src/lib/components/menu/menu.component.scss +0 -9
  112. package/src/lib/components/menu/menu.component.ts +0 -39
  113. package/src/lib/components/text/text-input.component.html +0 -91
  114. package/src/lib/components/text/text-input.component.ts +0 -73
  115. package/src/lib/directives/date-mask.directive.ts +0 -97
  116. package/src/lib/directives/input-mask.directive.ts +0 -93
  117. package/src/lib/interfaces/app-input.interface.ts +0 -32
  118. package/src/lib/interfaces/autocomplete-configs.interface.ts +0 -37
  119. package/src/lib/interfaces/button-types.enum.ts +0 -19
  120. package/src/lib/interfaces/dropdown-selection.constants.ts +0 -11
  121. package/src/lib/interfaces/label-type.enum.ts +0 -14
  122. package/src/lib/pipes/array-to-string.pipe.ts +0 -13
  123. package/src/lib/pipes/generate-error-messages.pipe.ts +0 -31
  124. package/src/lib/pipes/get-value-by-key-from-object.pipe.ts +0 -46
  125. package/src/lib/services/input.service.ts +0 -30
  126. package/tsconfig.lib.json +0 -15
  127. package/tsconfig.lib.prod.json +0 -11
  128. package/tsconfig.spec.json +0 -15
@@ -0,0 +1,25 @@
1
+ import { ElementRef, Injector } from '@angular/core';
2
+ import { MatDatepicker } from "@angular/material/datepicker";
3
+ import { AbstractControl } from "@angular/forms";
4
+ import * as i0 from "@angular/core";
5
+ export declare class DateMaskDirective {
6
+ private elementRef;
7
+ private injector;
8
+ maskType: string;
9
+ matDatepicker: MatDatepicker<any>;
10
+ rangeFormControl: AbstractControl;
11
+ expressions: {
12
+ DMY: string;
13
+ DM: string;
14
+ };
15
+ maskService: any;
16
+ dateRegex: RegExp;
17
+ dayMonthRegex: RegExp;
18
+ previousValue: string;
19
+ constructor(elementRef: ElementRef, injector: Injector);
20
+ onInput(): void;
21
+ onPaste(event: ClipboardEvent): void;
22
+ existsZerosInString(date: string): boolean;
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<DateMaskDirective, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<DateMaskDirective, "[dateMask]", never, { "maskType": { "alias": "maskType"; "required": false; }; "matDatepicker": { "alias": "matDatepicker"; "required": false; }; "rangeFormControl": { "alias": "rangeFormControl"; "required": false; }; }, {}, never, never, true, never>;
25
+ }
@@ -0,0 +1,21 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class InputMaskDirective {
4
+ private elementRef;
5
+ inputMask: 'number' | 'string';
6
+ set min(value: string);
7
+ set max(value: string);
8
+ set float(value: string);
9
+ minimumValue: number;
10
+ maximumValue: number;
11
+ isFloat: boolean;
12
+ regexFloat: RegExp;
13
+ regexOnlyNumbers: RegExp;
14
+ onPaste(event: any): void;
15
+ constructor(elementRef: ElementRef);
16
+ makeValidation(event: any, fromPaste?: boolean): boolean;
17
+ checkingForNumbers(value: any, event: any, newChar: string, fromPaste?: boolean): boolean;
18
+ checkingForTexts(value: any, event: any): boolean;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputMaskDirective, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<InputMaskDirective, "[inputMask]", never, { "inputMask": { "alias": "inputMask"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; "float": { "alias": "float"; "required": false; }; }, {}, never, never, true, never>;
21
+ }
@@ -0,0 +1,31 @@
1
+ export interface AppInputInterface {
2
+ activeStateIconUrl?: string;
3
+ clearable?: boolean;
4
+ containerClass?: string;
5
+ datePicker?: boolean;
6
+ disabled?: boolean;
7
+ dontResetValueInClearAction?: boolean;
8
+ hint?: string;
9
+ iconPrefix?: string;
10
+ iconPrefixSvg?: string;
11
+ iconPrefixTooltip?: string;
12
+ iconPrefixColor?: string;
13
+ iconPrefixVariant?: string;
14
+ iconSuffix?: string;
15
+ iconUrl?: string;
16
+ inputClass?: string;
17
+ inputMask?: 'number' | 'string';
18
+ label?: string;
19
+ leadZeroDateTime?: boolean;
20
+ mask?: string;
21
+ pattern?: string | RegExp;
22
+ placeholder: string;
23
+ prefix?: string;
24
+ required?: boolean;
25
+ readOnly?: boolean;
26
+ submit: boolean;
27
+ textarea?: boolean;
28
+ type: string;
29
+ defaultPatternKey?: string;
30
+ focusOutEmit?: boolean;
31
+ }
@@ -0,0 +1,37 @@
1
+ export interface AutocompleteConfigsInterface {
2
+ label: string;
3
+ hideLabel?: boolean;
4
+ paginate: any;
5
+ paginateOnScroll?: boolean;
6
+ valueByKey: Array<string>;
7
+ valueToShowByKey: Array<string>;
8
+ valueToShowByParam?: Array<string | Array<string | number>>;
9
+ withParamSymbol?: string;
10
+ multiple?: boolean;
11
+ hideSelectAllOption?: boolean;
12
+ reset?: boolean;
13
+ search?: boolean;
14
+ disabled?: boolean;
15
+ errorMessage?: string;
16
+ placeholder?: string;
17
+ filtrationKey?: string;
18
+ required?: boolean;
19
+ hover?: string;
20
+ changeText?: any;
21
+ iconUrl?: string;
22
+ activeStateIconUrl?: string;
23
+ matIconName?: string;
24
+ matIconSvg?: string;
25
+ actions?: any;
26
+ blockPagination?: boolean;
27
+ valueById?: string;
28
+ showFullTextWithOptionalOnSelectedValue?: boolean;
29
+ iconPrefix?: string;
30
+ readOnly?: boolean;
31
+ iconSuffix?: string;
32
+ clearable?: boolean;
33
+ defaultPatternKey?: string;
34
+ iconPrefixTooltip?: string | undefined;
35
+ iconPrefixSvg?: string | undefined;
36
+ iconPrefixColor?: string | undefined;
37
+ }
@@ -0,0 +1,15 @@
1
+ /**
2
+ * Enum representing different types of buttons.
3
+ */
4
+ export declare enum ButtonType {
5
+ /** A filled button with solid background, typically used for primary actions. */
6
+ FILLED = "FILLED",
7
+ /** A tonal button with lighter background, used for secondary actions. */
8
+ TONAL = "TONAL",
9
+ /** An outlined button with a border and no background. */
10
+ OUTLINE = "OUTLINE",
11
+ /** A text button with no background or border, ideal for minimal UI. */
12
+ TEXT = "TEXT",
13
+ /** A warning button with special styling to indicate caution or alert actions. */
14
+ WARNING = "WARNING"
15
+ }
@@ -0,0 +1,10 @@
1
+ export declare enum DropdownSelectionType {
2
+ UPLOAD = "UPLOAD",
3
+ DOWNLOAD = "DOWNLOAD",
4
+ BLANK = "BLANK"
5
+ }
6
+ export declare const DropdownItemIcon: {
7
+ UPLOAD: string;
8
+ DOWNLOAD: string;
9
+ BLANK: string;
10
+ };
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ArrayToStringPipe implements PipeTransform {
4
+ transform(value: Array<string | number> | string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<ArrayToStringPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<ArrayToStringPipe, "arrayToString", true>;
7
+ }
@@ -0,0 +1,10 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import { TranslateService } from "@ngx-translate/core";
3
+ import * as i0 from "@angular/core";
4
+ export declare class GenerateErrorMessagesPipe implements PipeTransform {
5
+ private translateService;
6
+ constructor(translateService: TranslateService);
7
+ transform(control: any, label: string, defaultPatternKey?: string): string;
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<GenerateErrorMessagesPipe, never>;
9
+ static ɵpipe: i0.ɵɵPipeDeclaration<GenerateErrorMessagesPipe, "generateErrorMessages", true>;
10
+ }
@@ -0,0 +1,7 @@
1
+ import { PipeTransform } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class GetValueByKeyFromObjectPipe implements PipeTransform {
4
+ transform(keys: string | Array<string | number>, data: any, withParams?: Array<string | Array<string | number>> | null, withParamSymbol?: string): string;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<GetValueByKeyFromObjectPipe, never>;
6
+ static ɵpipe: i0.ɵɵPipeDeclaration<GetValueByKeyFromObjectPipe, "getValueByKeyFromObject", true>;
7
+ }
@@ -0,0 +1,7 @@
1
+ import { FormControlName } from "@angular/forms";
2
+ import * as i0 from "@angular/core";
3
+ export declare class InputService {
4
+ injectNgControl(): FormControlName;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputService, never>;
6
+ static ɵprov: i0.ɵɵInjectableDeclaration<InputService>;
7
+ }
package/package.json CHANGED
@@ -1,19 +1,32 @@
1
- {
2
- "name": "i-tech-shared-components",
3
- "version": "1.1.6",
4
- "peerDependencies": {
5
- "@angular/cdk": "^19.0.4",
6
- "@angular/material": "^19.0.4",
7
- "@angular/animations": "^19.0.5",
8
- "@ngx-translate/core": "^15.0.0",
9
- "@ngx-translate/http-loader": "^8.0.0",
10
- "ngx-mask": "^16.0.0"
11
- },
12
- "dependencies": {
13
- "tslib": "^2.3.0"
14
- },
15
- "sideEffects": false,
16
- "files": [
17
- "**/*"
18
- ]
19
- }
1
+ {
2
+ "name": "i-tech-shared-components",
3
+ "version": "1.1.9",
4
+ "peerDependencies": {
5
+ "@angular/cdk": "^18.2.14",
6
+ "@angular/material": "^18.2.14",
7
+ "@angular/animations": "^18.0.0",
8
+ "@ngx-translate/core": "^15.0.0",
9
+ "@ngx-translate/http-loader": "^8.0.0",
10
+ "ngx-mask": "^16.0.0"
11
+ },
12
+ "dependencies": {
13
+ "tslib": "^2.3.0"
14
+ },
15
+ "sideEffects": false,
16
+ "files": [
17
+ "**/*"
18
+ ],
19
+ "module": "fesm2022/i-tech-shared-components.mjs",
20
+ "typings": "index.d.ts",
21
+ "exports": {
22
+ "./package.json": {
23
+ "default": "./package.json"
24
+ },
25
+ ".": {
26
+ "types": "./index.d.ts",
27
+ "esm2022": "./esm2022/i-tech-shared-components.mjs",
28
+ "esm": "./esm2022/i-tech-shared-components.mjs",
29
+ "default": "./fesm2022/i-tech-shared-components.mjs"
30
+ }
31
+ }
32
+ }
@@ -1,20 +1,16 @@
1
- /*
2
- * Public API Surface of shared-components
3
- */
4
-
5
- export * from './lib/pipes/generate-error-messages.pipe';
6
- export * from './lib/pipes/array-to-string.pipe';
7
- export * from './lib/pipes/get-value-by-key-from-object.pipe';
8
- export * from './lib/services/input.service';
9
- export * from './lib/interfaces/app-input.interface';
10
- export * from './lib/interfaces/button-types.enum';
11
- export * from './lib/interfaces/autocomplete-configs.interface';
12
- export * from './lib/directives/input-mask.directive';
13
- export * from './lib/components/icon-button/icon-button.component';
14
- export * from './lib/components/text/text-input.component';
15
- export * from './lib/components/button/button.component';
16
- export * from './lib/components/autocomplete-select/autocomplete-select.component';
17
- export * from './lib/components/date-picker/date-picker.component';
18
- export * from './lib/components/clear-value/clear-value.component';
19
- export * from './lib/components/date-range-datepicker/date-range-datepicker.component';
20
-
1
+ export * from './lib/pipes/generate-error-messages.pipe';
2
+ export * from './lib/pipes/array-to-string.pipe';
3
+ export * from './lib/pipes/get-value-by-key-from-object.pipe';
4
+ export * from './lib/services/input.service';
5
+ export * from './lib/interfaces/app-input.interface';
6
+ export * from './lib/interfaces/button-types.enum';
7
+ export * from './lib/interfaces/autocomplete-configs.interface';
8
+ export * from './lib/directives/input-mask.directive';
9
+ export * from './lib/components/icon-button/icon-button.component';
10
+ export * from './lib/components/text/text-input.component';
11
+ export * from './lib/components/button/button.component';
12
+ export * from './lib/components/autocomplete-select/autocomplete-select.component';
13
+ export * from './lib/components/date-picker/date-picker.component';
14
+ export * from './lib/components/clear-value/clear-value.component';
15
+ export * from './lib/components/date-range-datepicker/date-range-datepicker.component';
16
+ export * from './lib/components/menu/menu.component';
@@ -1,63 +1,63 @@
1
-
2
- @use '@angular/material' as mat;
3
- @import "./color_themes.scss";
4
-
5
- body {
6
- $borderRadius: 5px;
7
- $fontSize: 13px;
8
- $letterSpacing: 0.5px;
9
- // BUTTONS
10
- --mdc-filled-button-container-shape: #{$borderRadius} !important;
11
- --mdc-outlined-button-container-shape: #{$borderRadius} !important;
12
- --mdc-text-button-container-shape: #{$borderRadius} !important;
13
- // Font Size
14
- --mdc-filled-button-label-text-size: #{$fontSize} !important;
15
- --mdc-outlined-button-label-text-size: #{$fontSize} !important;
16
- --mdc-text-button-label-text-size: #{$fontSize} !important;
17
- // Letter Spacing
18
- --mdc-filled-button-label-text-tracking: #{$letterSpacing} !important;
19
- --mdc-outlined-button-label-text-tracking: #{$letterSpacing} !important;
20
- --mdc-text-button-label-text-tracking: #{$letterSpacing} !important;
21
- // Unset Outline default border color
22
- --mdc-outlined-button-outline-color: 0 !important;
23
-
24
- .mdc-button:not(.mat-autocomplete-select-button) {
25
- height: 40px;
26
- }
27
-
28
- .mdc-button {
29
- .spinner-overlay {
30
- position: absolute;
31
- left: -20px;
32
- top: 50%;
33
- transform: translateY(-50%);
34
- display: flex;
35
- align-items: center;
36
- justify-content: center;
37
- }
38
-
39
- svg path {
40
- fill: var(--mdc-text-button-label-text-color);
41
- }
42
-
43
- .spinner-overlay mat-spinner {
44
- width: 20px;
45
- height: 20px;
46
- }
47
- }
48
-
49
- .relative {
50
- position: relative;
51
- }
52
-
53
- .activated {
54
- background-color: mat.get-theme-color($m3-light-theme, primary, 95) !important;
55
- }
56
-
57
- // DEFINE TERTIARY BUTTON
58
- .mdc-button.tertiary {
59
- @include mat.button-color($m3-light-theme, $color-variant: tertiary);
60
- --mdc-text-button-label-text-color: mat.get-theme-color($m3-light-theme, 'tertiary', 30) !important;
61
- }
62
- // END OF DEFINE TERTIARY BUTTON
63
- }
1
+
2
+ @use '@angular/material' as mat;
3
+ @import "./color_themes.scss";
4
+
5
+ body {
6
+ $borderRadius: 5px;
7
+ $fontSize: 13px;
8
+ $letterSpacing: 0.5px;
9
+ // BUTTONS
10
+ --mdc-filled-button-container-shape: #{$borderRadius} !important;
11
+ --mdc-outlined-button-container-shape: #{$borderRadius} !important;
12
+ --mdc-text-button-container-shape: #{$borderRadius} !important;
13
+ // Font Size
14
+ --mdc-filled-button-label-text-size: #{$fontSize} !important;
15
+ --mdc-outlined-button-label-text-size: #{$fontSize} !important;
16
+ --mdc-text-button-label-text-size: #{$fontSize} !important;
17
+ // Letter Spacing
18
+ --mdc-filled-button-label-text-tracking: #{$letterSpacing} !important;
19
+ --mdc-outlined-button-label-text-tracking: #{$letterSpacing} !important;
20
+ --mdc-text-button-label-text-tracking: #{$letterSpacing} !important;
21
+ // Unset Outline default border color
22
+ --mdc-outlined-button-outline-color: 0 !important;
23
+
24
+ .mdc-button:not(.mat-autocomplete-select-button) {
25
+ height: 40px;
26
+ }
27
+
28
+ .mdc-button {
29
+ .spinner-overlay {
30
+ position: absolute;
31
+ left: -20px;
32
+ top: 50%;
33
+ transform: translateY(-50%);
34
+ display: flex;
35
+ align-items: center;
36
+ justify-content: center;
37
+ }
38
+
39
+ svg path {
40
+ fill: var(--mdc-text-button-label-text-color);
41
+ }
42
+
43
+ .spinner-overlay mat-spinner {
44
+ width: 20px;
45
+ height: 20px;
46
+ }
47
+ }
48
+
49
+ .relative {
50
+ position: relative;
51
+ }
52
+
53
+ .activated {
54
+ background-color: mat.get-theme-color($m3-light-theme, primary, 95) !important;
55
+ }
56
+
57
+ // DEFINE TERTIARY BUTTON
58
+ .mdc-button.tertiary {
59
+ @include mat.button-color($m3-light-theme, $color-variant: tertiary);
60
+ --mdc-text-button-label-text-color: mat.get-theme-color($m3-light-theme, 'tertiary', 30) !important;
61
+ }
62
+ // END OF DEFINE TERTIARY BUTTON
63
+ }