feat: enhance user input and rules panel components
- Updated dark-light mode button styles for improved responsiveness. - Enhanced rules panel with additional buttons for moving rules up and down, and updated styles for better layout. - Added active rule count display in the rules panel header. - Improved user input component layout with section headings and updated button styles. - Refactored day input component to use grid layout for better alignment and responsiveness. - Added new translations for user input and rules panel features. - Implemented tests for new functionality in rules panel and day input components. - Added application routes test to ensure correct routing configuration.
This commit is contained in:
1 parent
31314f3969
commit
609b3dece9
30 files changed
+870
-382
No files matched your search
@@ -1,40 +1,41 @@
|
||||
@use '@angular/material' as mat;
|
||||
:host {
|
||||
display: block;
|
||||
min-width: 0;
|
||||
}
|
||||
|
||||
.calendar-year {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-evenly;
|
||||
display: grid;
|
||||
container: calendar-year / inline-size;
|
||||
gap: 1.25rem;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
min-width: 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.loading-overlay {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: rgba(255, 255, 255, 0.9);
|
||||
inset: 0;
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
border-radius: 4px;
|
||||
z-index: 1000;
|
||||
background-color: var(--loading-overlay-bg);
|
||||
min-height: 18rem;
|
||||
border-radius: var(--ui-radius-lg, 1rem);
|
||||
z-index: 1;
|
||||
background: var(--loading-overlay-bg, rgba(255, 255, 255, 0.92));
|
||||
}
|
||||
|
||||
.loading-spinner {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
gap: 16px;
|
||||
gap: 1rem;
|
||||
|
||||
p {
|
||||
font-size: 16px;
|
||||
font-size: 1rem;
|
||||
font-weight: 500;
|
||||
color: var(--loading-text-color);
|
||||
color: var(--loading-text-color, #333);
|
||||
margin: 0;
|
||||
}
|
||||
}
|
||||
@@ -43,24 +44,183 @@
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
|
||||
::ng-deep .mat-mdc-progress-spinner {
|
||||
// Override Material spinner size
|
||||
width: 100px;
|
||||
height: 100px;
|
||||
}
|
||||
|
||||
.spinner-text {
|
||||
position: absolute;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
font-size: 20px;
|
||||
font-size: 1.125rem;
|
||||
font-weight: bold;
|
||||
color: var(--loading-text-color);
|
||||
color: var(--loading-text-color, #333);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
|
||||
.card {
|
||||
.results-header {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: flex-start;
|
||||
justify-content: space-between;
|
||||
gap: 1rem;
|
||||
padding-block-end: 1rem;
|
||||
border-block-end: 1px solid var(--ui-border, #c7c7d0);
|
||||
}
|
||||
|
||||
.results-heading {
|
||||
display: grid;
|
||||
gap: 0.5rem;
|
||||
min-width: 0;
|
||||
|
||||
h2 {
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
line-height: 1.2;
|
||||
text-wrap: balance;
|
||||
}
|
||||
}
|
||||
|
||||
.planning-status {
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem;
|
||||
width: fit-content;
|
||||
max-width: 65ch;
|
||||
margin: 0;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border-radius: var(--ui-radius-sm, 0.5rem);
|
||||
font-weight: 600;
|
||||
line-height: 1.4;
|
||||
|
||||
mat-icon {
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
&.success {
|
||||
background: var(--ui-success-bg, #d8f5df);
|
||||
color: var(--ui-success-text, #174d26);
|
||||
}
|
||||
|
||||
&.warning {
|
||||
background: var(--ui-warning-bg, #fff4d6);
|
||||
color: var(--ui-warning-text, #4f3800);
|
||||
}
|
||||
|
||||
&.error {
|
||||
background: var(--ui-error-bg, #ffe0e0);
|
||||
color: var(--ui-error-text, #751b1b);
|
||||
}
|
||||
}
|
||||
|
||||
.plan-summary {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(auto-fill, minmax(min(100%, 11rem), 1fr));
|
||||
gap: 0.75rem;
|
||||
margin: 0;
|
||||
|
||||
div {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
flex-direction: column;
|
||||
gap: 0.25rem;
|
||||
min-width: 0;
|
||||
padding: 0.875rem 1rem;
|
||||
background: var(--ui-panel-bg, #f7f7fa);
|
||||
border-radius: var(--ui-radius-md, 0.75rem);
|
||||
}
|
||||
|
||||
dt {
|
||||
color: var(--ui-text-secondary, #45464f);
|
||||
font-size: 0.875rem;
|
||||
line-height: 1.4;
|
||||
}
|
||||
|
||||
dd {
|
||||
order: -1;
|
||||
margin: 0;
|
||||
font-size: 1.5rem;
|
||||
font-weight: 700;
|
||||
font-variant-numeric: tabular-nums;
|
||||
line-height: 1.1;
|
||||
}
|
||||
}
|
||||
|
||||
.calendar-legend {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.75rem 1rem;
|
||||
padding: 0.75rem 1rem;
|
||||
background: var(--ui-panel-bg, #f7f7fa);
|
||||
border-radius: var(--ui-radius-md, 0.75rem);
|
||||
|
||||
strong {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
align-items: center;
|
||||
gap: 0.5rem 1rem;
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
li {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
gap: 0.375rem;
|
||||
color: var(--ui-text-secondary, #45464f);
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
}
|
||||
|
||||
.legend-swatch {
|
||||
display: inline-block;
|
||||
flex-shrink: 0;
|
||||
width: 1rem;
|
||||
height: 1rem;
|
||||
box-sizing: border-box;
|
||||
border-radius: 0.25rem;
|
||||
background: var(--ui-card-bg, #f1f1f5);
|
||||
|
||||
&.weekend {
|
||||
background: var(--weekend-bg, #ffca39);
|
||||
}
|
||||
|
||||
&.closed-day {
|
||||
border: 0.125rem solid var(--closed-day-bg, #0ee3ff);
|
||||
}
|
||||
|
||||
&.cp {
|
||||
background: var(--cp-bg, #eca0ff);
|
||||
}
|
||||
|
||||
&.rtt {
|
||||
background: var(--rtt-bg, #99ff87);
|
||||
}
|
||||
|
||||
&.other {
|
||||
background: var(--other-bg, #ff9b9b);
|
||||
}
|
||||
|
||||
&.today {
|
||||
border: 0.125rem dashed var(--today-border-color, #1976d2);
|
||||
}
|
||||
}
|
||||
|
||||
.month-grid {
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
flex-wrap: wrap;
|
||||
justify-content: space-evenly;
|
||||
width: 100%;
|
||||
max-width: 100%;
|
||||
}
|
||||
|
||||
.month-card {
|
||||
margin: 16px;
|
||||
}
|
||||
Reference in new issue
Block a user