Upgrade to Angular 12
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin centers-view-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
@@ -6,7 +6,7 @@
|
||||
mifosx-centers-view {
|
||||
.center-card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin clients-view-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
@@ -6,7 +6,7 @@
|
||||
mifosx-clients-view {
|
||||
.client-card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,15 +1,15 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin fixed-deposits-account-view-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
mifosx-fixed-deposit-account-view {
|
||||
.fixed-deposits-account-card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
}
|
||||
.table-headers {
|
||||
background-color: mat-color($primary, 500);
|
||||
color: mat-contrast($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
color: mat.get-contrast-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+4
-4
@@ -1,15 +1,15 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin recurring-deposits-account-view-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
mifosx-recurring-deposits-account-view {
|
||||
.recurringDeposits-account-card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
}
|
||||
.table-headers {
|
||||
background-color: mat-color($primary, 500);
|
||||
color: mat-contrast($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
color: mat.get-contrast-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin groups-view-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
mifosx-groups-view {
|
||||
.group-card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin dashboard-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
@@ -7,8 +7,8 @@
|
||||
|
||||
.recent-activities, .frequent-activities {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
color: mat-contrast($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
color: mat.get-contrast-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,16 +17,16 @@
|
||||
mifosx-client-trends-bar {
|
||||
.card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
color: mat-contrast($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
color: mat.get-contrast-color-from-palette($primary, 500);
|
||||
mat-label,
|
||||
.mat-select-value,
|
||||
.mat-select-arrow {
|
||||
color: mat-contrast($primary, 500);
|
||||
color: mat.get-contrast-color-from-palette($primary, 500);
|
||||
}
|
||||
.mat-form-field-underline,
|
||||
.mat-form-field-ripple {
|
||||
background-color: mat-contrast($primary, 500);
|
||||
background-color: mat.get-contrast-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin loans-view-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
@@ -6,7 +6,7 @@
|
||||
mifosx-loans-view {
|
||||
.loan-card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin savings-account-view-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
mifosx-savings-account-view {
|
||||
.savings-account-card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
}
|
||||
.table-headers {
|
||||
background-color: mat-color($primary, 500);
|
||||
color: mat-contrast($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
color: mat.get-contrast-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
@use "sass:math";
|
||||
|
||||
$theme-picker-menu-padding: 8px;
|
||||
$theme-picker-grid-cell-size: 48px;
|
||||
$theme-picker-grid-cells-per-row: 2;
|
||||
@@ -19,7 +21,7 @@ $theme-picker-accent-stripe-size: 6px;
|
||||
position: relative;
|
||||
width: $theme-picker-swatch-size;
|
||||
height: $theme-picker-swatch-size;
|
||||
margin: ($theme-picker-grid-cell-size - $theme-picker-swatch-size) / 2;
|
||||
margin: math.div($theme-picker-grid-cell-size - $theme-picker-swatch-size, 2);
|
||||
border-radius: 50%;
|
||||
overflow: hidden;
|
||||
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
@import "~@angular/material/theming";
|
||||
@use '~@angular/material' as mat;
|
||||
|
||||
@mixin shares-account-view-component-theme($theme) {
|
||||
$primary: map-get($theme, primary);
|
||||
mifosx-shares-account-view {
|
||||
.shares-account-card {
|
||||
.header {
|
||||
background-color: mat-color($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
}
|
||||
.table-headers {
|
||||
background-color: mat-color($primary, 500);
|
||||
color: mat-contrast($primary, 500);
|
||||
background-color: mat.get-color-from-palette($primary, 500);
|
||||
color: mat.get-contrast-color-from-palette($primary, 500);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
-1
@@ -1,5 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { constructor } from 'lodash';
|
||||
import { ActivatedRoute } from '@angular/router';
|
||||
import { FormGroup, FormBuilder, Validators } from '@angular/forms';
|
||||
import * as _ from 'lodash';
|
||||
|
||||
Reference in New Issue
Block a user