@ngx-stoui/core 20.0.3 → 20.0.5

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.
package/ngx-datatable.css CHANGED
@@ -133,10 +133,18 @@
133
133
 
134
134
  .sto-datatable .sto-form__field {
135
135
  width: 100%;
136
+ min-height: auto;
137
+ --mat-form-field-container-vertical-padding: 7px;
136
138
  }
137
139
  .sto-datatable .sto-form__field--readonly .mat-mdc-form-field-flex, .sto-datatable .sto-form__field--disabled .mat-mdc-form-field-flex {
138
140
  border: 0;
139
141
  }
142
+ .sto-datatable .sto-form__field .mat-mdc-form-field-flex {
143
+ padding: 0 6px;
144
+ }
145
+ .sto-datatable .sto-form__field .mat-mdc-form-field-subscript-wrapper {
146
+ display: none;
147
+ }
140
148
  .sto-datatable .sto-form__field input[type=number] {
141
149
  text-align: right;
142
150
  }
@@ -169,7 +177,6 @@
169
177
 
170
178
  .sto-compact .sto-datatable .sto-form__field .mat-mdc-form-field-flex {
171
179
  height: auto;
172
- padding: 0 6px;
173
180
  }
174
181
  .sto-compact .sto-datatable .sto-form__field .mat-mdc-form-field-icon-suffix {
175
182
  height: 22px;
@@ -240,8 +247,8 @@
240
247
  padding: 0;
241
248
  }
242
249
  .sto-datatable .datatable-body .datatable-body-row .datatable-body-cell .mat-mdc-form-field {
243
- --mat-form-field-container-vertical-padding: 0px;
244
- --mat-form-field-container-height: 20px;
250
+ --mat-form-field-container-vertical-padding: 6px;
251
+ --mat-form-field-container-height: 32px;
245
252
  margin: 0 4px;
246
253
  min-height: 0;
247
254
  }
package/ngx-stoui.css CHANGED
@@ -131,30 +131,30 @@ body .sto-breadcrumb .separator {
131
131
  height: 28px;
132
132
  }
133
133
 
134
- .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) .mat-card.sto-card .mat-card-title,
135
- .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) .mat-card.sto-card .mat-card-title.sto-card__title {
134
+ .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) .mat-mdc-card.sto-card .mat-mdc-card-title,
135
+ .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) .mat-mdc-card.sto-card .mat-mdc-card-title.sto-card__title {
136
136
  line-height: 44px;
137
137
  }
138
- .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) .mat-card.sto-card .mat-card-subtitle,
139
- .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) .mat-card.sto-card .mat-card-subtitle.sto-card__subtitle {
138
+ .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) .mat-mdc-card.sto-card .mat-mdc-card-subtitle,
139
+ .mat-typography:not(.sto-sm-typography):not(.sto-l-typography) .mat-mdc-card.sto-card .mat-mdc-card-subtitle.sto-card__subtitle {
140
140
  margin-bottom: 4px;
141
141
  }
142
142
 
143
- .mat-typography.sto-sm-typography .mat-card.sto-card .mat-card-title,
144
- .mat-typography.sto-sm-typography .mat-card.sto-card .mat-card-title.sto-card__title {
143
+ .mat-typography.sto-sm-typography .mat-mdc-card.sto-card .mat-mdc-card-title,
144
+ .mat-typography.sto-sm-typography .mat-mdc-card.sto-card .mat-mdc-card-title.sto-card__title {
145
145
  line-height: 40px;
146
146
  }
147
- .mat-typography.sto-sm-typography .mat-card.sto-card .mat-card-subtitle,
148
- .mat-typography.sto-sm-typography .mat-card.sto-card .mat-card-subtitle.sto-card__subtitle {
147
+ .mat-typography.sto-sm-typography .mat-mdc-card.sto-card .mat-mdc-card-subtitle,
148
+ .mat-typography.sto-sm-typography .mat-mdc-card.sto-card .mat-mdc-card-subtitle.sto-card__subtitle {
149
149
  margin-bottom: 4px;
150
150
  }
151
151
 
152
- .mat-typography.sto-l-typography .mat-card.sto-card .mat-card-title,
153
- .mat-typography.sto-l-typography .mat-card.sto-card .mat-card-title.sto-card__title {
152
+ .mat-typography.sto-l-typography .mat-mdc-card.sto-card .mat-mdc-card-title,
153
+ .mat-typography.sto-l-typography .mat-mdc-card.sto-card .mat-mdc-card-title.sto-card__title {
154
154
  line-height: 48px;
155
155
  }
156
- .mat-typography.sto-l-typography .mat-card.sto-card .mat-card-subtitle,
157
- .mat-typography.sto-l-typography .mat-card.sto-card .mat-card-subtitle.sto-card__subtitle {
156
+ .mat-typography.sto-l-typography .mat-mdc-card.sto-card .mat-mdc-card-subtitle,
157
+ .mat-typography.sto-l-typography .mat-mdc-card.sto-card .mat-mdc-card-subtitle.sto-card__subtitle {
158
158
  margin-bottom: 4px;
159
159
  }
160
160
 
@@ -202,13 +202,26 @@ body .sto-datatable {
202
202
  background-color: transparent;
203
203
  color: var(--text);
204
204
  }
205
+ body .sto-datatable .sto-form__field {
206
+ width: 100%;
207
+ min-height: auto;
208
+ --mat-form-field-container-vertical-padding: 8px;
209
+ }
210
+ body .sto-datatable .sto-form__field .mat-mdc-form-field-flex {
211
+ padding: 0 6px;
212
+ }
213
+ body .sto-datatable .sto-form__field .mat-mdc-form-field-flex .mat-mdc-form-field-infix {
214
+ width: auto;
215
+ }
216
+ body .sto-datatable .sto-form__field .mat-mdc-form-field-subscript-wrapper {
217
+ display: none;
218
+ }
205
219
  body .sto-datatable .datatable-body mat-icon,
206
220
  body .sto-datatable .datatable-header mat-icon {
207
221
  color: var(--text-secondary);
208
222
  }
209
223
  body .sto-datatable .mat-mdc-checkbox {
210
224
  --mat-checkbox-state-layer-size: 35px;
211
- display: inline-flex;
212
225
  }
213
226
  body .sto-datatable .datatable-header {
214
227
  border-bottom: 1px solid var(--divider);
@@ -2538,6 +2551,106 @@ html {
2538
2551
  --mat-timepicker-container-background-color: white;
2539
2552
  }
2540
2553
 
2554
+ .mat-elevation-z0, .mat-mdc-elevation-specific.mat-elevation-z0 {
2555
+ box-shadow: var(--mat-app-elevation-shadow-level-0, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow, 0px 0px 0px 0px --mat-sys-shadow);
2556
+ }
2557
+
2558
+ .mat-elevation-z1, .mat-mdc-elevation-specific.mat-elevation-z1 {
2559
+ box-shadow: var(--mat-app-elevation-shadow-level-1, 0px 2px 1px -1px --mat-sys-shadow, 0px 1px 1px 0px --mat-sys-shadow, 0px 1px 3px 0px --mat-sys-shadow);
2560
+ }
2561
+
2562
+ .mat-elevation-z2, .mat-mdc-elevation-specific.mat-elevation-z2 {
2563
+ box-shadow: var(--mat-app-elevation-shadow-level-2, 0px 3px 1px -2px --mat-sys-shadow, 0px 2px 2px 0px --mat-sys-shadow, 0px 1px 5px 0px --mat-sys-shadow);
2564
+ }
2565
+
2566
+ .mat-elevation-z3, .mat-mdc-elevation-specific.mat-elevation-z3 {
2567
+ box-shadow: var(--mat-app-elevation-shadow-level-3, 0px 3px 3px -2px --mat-sys-shadow, 0px 3px 4px 0px --mat-sys-shadow, 0px 1px 8px 0px --mat-sys-shadow);
2568
+ }
2569
+
2570
+ .mat-elevation-z4, .mat-mdc-elevation-specific.mat-elevation-z4 {
2571
+ box-shadow: var(--mat-app-elevation-shadow-level-4, 0px 2px 4px -1px --mat-sys-shadow, 0px 4px 5px 0px --mat-sys-shadow, 0px 1px 10px 0px --mat-sys-shadow);
2572
+ }
2573
+
2574
+ .mat-elevation-z5, .mat-mdc-elevation-specific.mat-elevation-z5 {
2575
+ box-shadow: var(--mat-app-elevation-shadow-level-5, 0px 3px 5px -1px --mat-sys-shadow, 0px 5px 8px 0px --mat-sys-shadow, 0px 1px 14px 0px --mat-sys-shadow);
2576
+ }
2577
+
2578
+ .mat-elevation-z6, .mat-mdc-elevation-specific.mat-elevation-z6 {
2579
+ box-shadow: var(--mat-app-elevation-shadow-level-6, 0px 3px 5px -1px --mat-sys-shadow, 0px 6px 10px 0px --mat-sys-shadow, 0px 1px 18px 0px --mat-sys-shadow);
2580
+ }
2581
+
2582
+ .mat-elevation-z7, .mat-mdc-elevation-specific.mat-elevation-z7 {
2583
+ box-shadow: var(--mat-app-elevation-shadow-level-7, 0px 4px 5px -2px --mat-sys-shadow, 0px 7px 10px 1px --mat-sys-shadow, 0px 2px 16px 1px --mat-sys-shadow);
2584
+ }
2585
+
2586
+ .mat-elevation-z8, .mat-mdc-elevation-specific.mat-elevation-z8 {
2587
+ box-shadow: var(--mat-app-elevation-shadow-level-8, 0px 5px 5px -3px --mat-sys-shadow, 0px 8px 10px 1px --mat-sys-shadow, 0px 3px 14px 2px --mat-sys-shadow);
2588
+ }
2589
+
2590
+ .mat-elevation-z9, .mat-mdc-elevation-specific.mat-elevation-z9 {
2591
+ box-shadow: var(--mat-app-elevation-shadow-level-9, 0px 5px 6px -3px --mat-sys-shadow, 0px 9px 12px 1px --mat-sys-shadow, 0px 3px 16px 2px --mat-sys-shadow);
2592
+ }
2593
+
2594
+ .mat-elevation-z10, .mat-mdc-elevation-specific.mat-elevation-z10 {
2595
+ box-shadow: var(--mat-app-elevation-shadow-level-10, 0px 6px 6px -3px --mat-sys-shadow, 0px 10px 14px 1px --mat-sys-shadow, 0px 4px 18px 3px --mat-sys-shadow);
2596
+ }
2597
+
2598
+ .mat-elevation-z11, .mat-mdc-elevation-specific.mat-elevation-z11 {
2599
+ box-shadow: var(--mat-app-elevation-shadow-level-11, 0px 6px 7px -4px --mat-sys-shadow, 0px 11px 15px 1px --mat-sys-shadow, 0px 4px 20px 3px --mat-sys-shadow);
2600
+ }
2601
+
2602
+ .mat-elevation-z12, .mat-mdc-elevation-specific.mat-elevation-z12 {
2603
+ box-shadow: var(--mat-app-elevation-shadow-level-12, 0px 7px 8px -4px --mat-sys-shadow, 0px 12px 17px 2px --mat-sys-shadow, 0px 5px 22px 4px --mat-sys-shadow);
2604
+ }
2605
+
2606
+ .mat-elevation-z13, .mat-mdc-elevation-specific.mat-elevation-z13 {
2607
+ box-shadow: var(--mat-app-elevation-shadow-level-13, 0px 7px 8px -4px --mat-sys-shadow, 0px 13px 19px 2px --mat-sys-shadow, 0px 5px 24px 4px --mat-sys-shadow);
2608
+ }
2609
+
2610
+ .mat-elevation-z14, .mat-mdc-elevation-specific.mat-elevation-z14 {
2611
+ box-shadow: var(--mat-app-elevation-shadow-level-14, 0px 7px 9px -4px --mat-sys-shadow, 0px 14px 21px 2px --mat-sys-shadow, 0px 5px 26px 4px --mat-sys-shadow);
2612
+ }
2613
+
2614
+ .mat-elevation-z15, .mat-mdc-elevation-specific.mat-elevation-z15 {
2615
+ box-shadow: var(--mat-app-elevation-shadow-level-15, 0px 8px 9px -5px --mat-sys-shadow, 0px 15px 22px 2px --mat-sys-shadow, 0px 6px 28px 5px --mat-sys-shadow);
2616
+ }
2617
+
2618
+ .mat-elevation-z16, .mat-mdc-elevation-specific.mat-elevation-z16 {
2619
+ box-shadow: var(--mat-app-elevation-shadow-level-16, 0px 8px 10px -5px --mat-sys-shadow, 0px 16px 24px 2px --mat-sys-shadow, 0px 6px 30px 5px --mat-sys-shadow);
2620
+ }
2621
+
2622
+ .mat-elevation-z17, .mat-mdc-elevation-specific.mat-elevation-z17 {
2623
+ box-shadow: var(--mat-app-elevation-shadow-level-17, 0px 8px 11px -5px --mat-sys-shadow, 0px 17px 26px 2px --mat-sys-shadow, 0px 6px 32px 5px --mat-sys-shadow);
2624
+ }
2625
+
2626
+ .mat-elevation-z18, .mat-mdc-elevation-specific.mat-elevation-z18 {
2627
+ box-shadow: var(--mat-app-elevation-shadow-level-18, 0px 9px 11px -5px --mat-sys-shadow, 0px 18px 28px 2px --mat-sys-shadow, 0px 7px 34px 6px --mat-sys-shadow);
2628
+ }
2629
+
2630
+ .mat-elevation-z19, .mat-mdc-elevation-specific.mat-elevation-z19 {
2631
+ box-shadow: var(--mat-app-elevation-shadow-level-19, 0px 9px 12px -6px --mat-sys-shadow, 0px 19px 29px 2px --mat-sys-shadow, 0px 7px 36px 6px --mat-sys-shadow);
2632
+ }
2633
+
2634
+ .mat-elevation-z20, .mat-mdc-elevation-specific.mat-elevation-z20 {
2635
+ box-shadow: var(--mat-app-elevation-shadow-level-20, 0px 10px 13px -6px --mat-sys-shadow, 0px 20px 31px 3px --mat-sys-shadow, 0px 8px 38px 7px --mat-sys-shadow);
2636
+ }
2637
+
2638
+ .mat-elevation-z21, .mat-mdc-elevation-specific.mat-elevation-z21 {
2639
+ box-shadow: var(--mat-app-elevation-shadow-level-21, 0px 10px 13px -6px --mat-sys-shadow, 0px 21px 33px 3px --mat-sys-shadow, 0px 8px 40px 7px --mat-sys-shadow);
2640
+ }
2641
+
2642
+ .mat-elevation-z22, .mat-mdc-elevation-specific.mat-elevation-z22 {
2643
+ box-shadow: var(--mat-app-elevation-shadow-level-22, 0px 10px 14px -6px --mat-sys-shadow, 0px 22px 35px 3px --mat-sys-shadow, 0px 8px 42px 7px --mat-sys-shadow);
2644
+ }
2645
+
2646
+ .mat-elevation-z23, .mat-mdc-elevation-specific.mat-elevation-z23 {
2647
+ box-shadow: var(--mat-app-elevation-shadow-level-23, 0px 11px 14px -7px --mat-sys-shadow, 0px 23px 36px 3px --mat-sys-shadow, 0px 9px 44px 8px --mat-sys-shadow);
2648
+ }
2649
+
2650
+ .mat-elevation-z24, .mat-mdc-elevation-specific.mat-elevation-z24 {
2651
+ box-shadow: var(--mat-app-elevation-shadow-level-24, 0px 11px 15px -7px --mat-sys-shadow, 0px 24px 38px 3px --mat-sys-shadow, 0px 9px 46px 8px --mat-sys-shadow);
2652
+ }
2653
+
2541
2654
  body,
2542
2655
  .sto-header,
2543
2656
  .mat-card {
@@ -4101,7 +4214,7 @@ html body.mat-app-background {
4101
4214
  --mat-form-field-container-height: 36px;
4102
4215
  --mat-form-field-filled-active-indicator-color: var(--divider);
4103
4216
  --mat-form-field-filled-caret-color: var(--text);
4104
- --mat-form-field-filled-container-color: var(--bg-light);
4217
+ --mat-form-field-filled-container-color: var(--bg-default);
4105
4218
  --mat-form-field-filled-focus-active-indicator-color: var(
4106
4219
  --primary-resting
4107
4220
  );
@@ -4360,7 +4473,7 @@ body .sto-form__field--disabled .mat-select.mat-select-disabled .mat-select-arro
4360
4473
 
4361
4474
  .sto-form__field {
4362
4475
  width: 100%;
4363
- min-height: 72px;
4476
+ min-height: auto;
4364
4477
  outline: none;
4365
4478
  }
4366
4479
  .sto-form__field .mat-input-element {
@@ -4368,7 +4481,7 @@ body .sto-form__field--disabled .mat-select.mat-select-disabled .mat-select-arro
4368
4481
  overflow: hidden;
4369
4482
  }
4370
4483
 
4371
- .mat-card.sto-card {
4484
+ .mat-mdc-card.sto-card {
4372
4485
  width: 100%;
4373
4486
  padding: 16px 8px 0 8px;
4374
4487
  margin-bottom: 8px;
@@ -4393,43 +4506,44 @@ body .sto-form__field--disabled .mat-select.mat-select-disabled .mat-select-arro
4393
4506
  margin-top: -10px;
4394
4507
  }
4395
4508
 
4396
- .mat-card.sto-card .mat-card-title.sto-card__title {
4509
+ .mat-mdc-card.sto-card .mat-mdc-card-title.sto-card__title {
4397
4510
  width: 100%;
4398
4511
  padding-left: 8px;
4399
4512
  display: flex;
4400
4513
  justify-content: space-between;
4401
4514
  }
4402
- .mat-card.sto-card .mat-card-title.sto-card__title h1,
4403
- .mat-card.sto-card .mat-card-title.sto-card__title h2,
4404
- .mat-card.sto-card .mat-card-title.sto-card__title h3 {
4515
+ .mat-mdc-card.sto-card .mat-mdc-card-title.sto-card__title h1,
4516
+ .mat-mdc-card.sto-card .mat-mdc-card-title.sto-card__title h2,
4517
+ .mat-mdc-card.sto-card .mat-mdc-card-title.sto-card__title h3 {
4405
4518
  display: inline-block;
4406
4519
  margin-bottom: 0;
4407
4520
  white-space: nowrap;
4408
4521
  }
4409
- .mat-card.sto-card .mat-card-subtitle.sto-card__subtitle {
4522
+ .mat-mdc-card.sto-card .mat-mdc-card-subtitle.sto-card__subtitle {
4410
4523
  padding-left: 8px;
4411
4524
  }
4412
- .mat-card.sto-card .sto-card__button-row {
4525
+ .mat-mdc-card.sto-card .sto-card__button-row {
4413
4526
  width: 100%;
4414
4527
  display: flex;
4415
4528
  justify-content: flex-end;
4416
4529
  }
4417
- .mat-card.sto-card .sto-card__button-row .mat-button {
4530
+ .mat-mdc-card.sto-card .sto-card__button-row .mat-button {
4418
4531
  margin-top: -8px;
4419
4532
  }
4420
- .mat-card.sto-card .sto-card__content {
4533
+ .mat-mdc-card.sto-card .sto-card__content {
4421
4534
  padding-left: 8px;
4422
4535
  }
4423
4536
 
4424
4537
  .sto-form__field {
4425
4538
  cursor: pointer;
4426
- --mat-form-field-filled-container-color: var(--bg-light);
4427
- --mat-form-field-state-layer-color: var(--bg-light);
4539
+ --mat-form-field-filled-container-color: var(--bg-default);
4540
+ --mat-form-field-state-layer-color: var(--bg-default);
4428
4541
  }
4429
4542
  .sto-form__field.mat-focused.sto-form__field--disabled .mat-form-field-underline .mat-form-field-ripple {
4430
4543
  display: none;
4431
4544
  }
4432
4545
  .sto-form__field.sto-form__field--readonly {
4546
+ --mat-form-field-filled-container-color: var(--bg-light);
4433
4547
  cursor: default;
4434
4548
  }
4435
4549
  .sto-form__field.sto-form__field--disabled {
@@ -4439,7 +4553,7 @@ body .sto-form__field--disabled .mat-select.mat-select-disabled .mat-select-arro
4439
4553
  cursor: default;
4440
4554
  }
4441
4555
  .sto-form__field .mat-mdc-form-field-flex {
4442
- padding: 6px;
4556
+ padding: 0 6px;
4443
4557
  border-radius: 4px;
4444
4558
  align-items: center;
4445
4559
  }
@@ -4449,6 +4563,9 @@ body .sto-form__field--disabled .mat-select.mat-select-disabled .mat-select-arro
4449
4563
  .sto-form__field .mat-mdc-form-field-flex .mat-icon-button .mat-datepicker-toggle-default-icon {
4450
4564
  margin-top: -2px;
4451
4565
  }
4566
+ .sto-form__field:not(.sto-form__field--disabled) .mat-mdc-text-field-wrapper {
4567
+ border: 1px solid var(--divider);
4568
+ }
4452
4569
  .sto-form__field .mat-mdc-form-field-subscript-wrapper {
4453
4570
  font-size: 11px;
4454
4571
  margin: 6px;
@@ -4468,9 +4585,6 @@ body .sto-form__field--disabled .mat-select.mat-select-disabled .mat-select-arro
4468
4585
  .sto-form__field .mat-mdc-form-field-icon-suffix > .mat-icon {
4469
4586
  padding: 2px;
4470
4587
  }
4471
- .sto-form__field:has(.mdc-floating-label) .mat-mdc-form-field-icon-suffix {
4472
- place-self: center;
4473
- }
4474
4588
  .sto-form__field .mat-mdc-select-arrow-wrapper {
4475
4589
  height: 20px;
4476
4590
  }
@@ -4479,7 +4593,7 @@ body .sto-form__field--disabled .mat-select.mat-select-disabled .mat-select-arro
4479
4593
  }
4480
4594
  .sto-form__field .mat-mdc-slide-toggle {
4481
4595
  position: absolute;
4482
- bottom: 0;
4596
+ bottom: 8px;
4483
4597
  right: 4px;
4484
4598
  }
4485
4599
  .sto-form__field .mat-radio-button {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ngx-stoui/core",
3
- "version": "20.0.3",
3
+ "version": "20.0.5",
4
4
  "author": {
5
5
  "name": "Ronnie Laugen",
6
6
  "email": "rhenri@equinor.com"
@@ -1,12 +1,20 @@
1
1
  .sto-datatable {
2
2
  .sto-form__field {
3
3
  width: 100%;
4
+ min-height: auto;
5
+ --mat-form-field-container-vertical-padding: 7px;
4
6
  &--readonly,
5
7
  &--disabled {
6
8
  .mat-mdc-form-field-flex {
7
9
  border: 0;
8
10
  }
9
11
  }
12
+ .mat-mdc-form-field-flex {
13
+ padding: 0 6px;
14
+ }
15
+ .mat-mdc-form-field-subscript-wrapper {
16
+ display: none;
17
+ }
10
18
 
11
19
  input[type='number'] {
12
20
  text-align: right;
@@ -56,7 +64,6 @@
56
64
  .sto-form__field {
57
65
  .mat-mdc-form-field-flex {
58
66
  height: auto;
59
- padding: 0 6px;
60
67
  }
61
68
 
62
69
  .mat-mdc-form-field-icon-suffix {
@@ -70,8 +70,8 @@
70
70
  padding: 0;
71
71
  }
72
72
  .mat-mdc-form-field {
73
- --mat-form-field-container-vertical-padding: 0px;
74
- --mat-form-field-container-height: 20px;
73
+ --mat-form-field-container-vertical-padding: 6px;
74
+ --mat-form-field-container-height: 32px;
75
75
  margin: 0 4px;
76
76
  min-height: 0;
77
77
  }
@@ -38,13 +38,11 @@ body {
38
38
  @include sto-form-theme($sto-theme, $variables);
39
39
  }
40
40
 
41
- $form-field-bg: var(--bg-light);
42
41
  $border-radius: 4px;
43
- $height: 72px;
44
42
 
45
43
  %sto-form__field {
46
44
  width: 100%;
47
- min-height: $height;
45
+ min-height: auto;
48
46
  outline: none;
49
47
 
50
48
  .mat-input-element {
@@ -84,10 +82,10 @@ $height: 72px;
84
82
  }
85
83
  }
86
84
 
87
- .mat-card.sto-card {
85
+ .mat-mdc-card.sto-card {
88
86
  @extend %sto-card;
89
87
 
90
- .mat-card-title.sto-card__title {
88
+ .mat-mdc-card-title.sto-card__title {
91
89
  width: 100%;
92
90
  padding-left: 8px;
93
91
  display: flex;
@@ -101,7 +99,7 @@ $height: 72px;
101
99
  }
102
100
  }
103
101
 
104
- .mat-card-subtitle.sto-card__subtitle {
102
+ .mat-mdc-card-subtitle.sto-card__subtitle {
105
103
  padding-left: 8px;
106
104
  }
107
105
 
@@ -124,8 +122,8 @@ $height: 72px;
124
122
  &__field {
125
123
  cursor: pointer;
126
124
  @extend %sto-form__field;
127
- --mat-form-field-filled-container-color: #{$form-field-bg};
128
- --mat-form-field-state-layer-color: #{$form-field-bg};
125
+ --mat-form-field-filled-container-color: var(--bg-default);
126
+ --mat-form-field-state-layer-color: var(--bg-default);
129
127
 
130
128
  &.mat-focused {
131
129
  @extend %sto-form__field--focused;
@@ -139,6 +137,7 @@ $height: 72px;
139
137
  }
140
138
 
141
139
  &.sto-form__field--readonly {
140
+ --mat-form-field-filled-container-color: var(--bg-light);
142
141
  cursor: default;
143
142
  }
144
143
  &.sto-form__field--disabled {
@@ -149,9 +148,8 @@ $height: 72px;
149
148
  }
150
149
 
151
150
  .mat-mdc-form-field-flex {
152
- padding: 6px;
151
+ padding: 0 6px;
153
152
  border-radius: 4px;
154
- // background-color: $form-field-bg;
155
153
  align-items: center;
156
154
  .mat-mdc-floating-label {
157
155
  top: 5px;
@@ -165,6 +163,11 @@ $height: 72px;
165
163
  }
166
164
  }
167
165
  }
166
+ &:not(.sto-form__field--disabled) {
167
+ .mat-mdc-text-field-wrapper {
168
+ border: 1px solid var(--divider);
169
+ }
170
+ }
168
171
 
169
172
  .mat-mdc-form-field-subscript-wrapper {
170
173
  font-size: 11px;
@@ -194,9 +197,9 @@ $height: 72px;
194
197
  padding: 2px;
195
198
  }
196
199
  }
197
- &:has(.mdc-floating-label) .mat-mdc-form-field-icon-suffix {
198
- place-self: center;
199
- }
200
+ // &:has(.mdc-floating-label) .mat-mdc-form-field-icon-suffix {
201
+ // place-self: baseline;
202
+ // }
200
203
  .mat-mdc-select-arrow-wrapper {
201
204
  height: 20px;
202
205
  }
@@ -207,7 +210,7 @@ $height: 72px;
207
210
 
208
211
  .mat-mdc-slide-toggle {
209
212
  position: absolute;
210
- bottom: 0;
213
+ bottom: 8px;
211
214
  right: 4px;
212
215
  }
213
216
 
@@ -2,14 +2,14 @@
2
2
  @import 'typography';
3
3
 
4
4
  @mixin sto-card-typography($config) {
5
- .mat-card.sto-card {
6
- .mat-card-title,
7
- .mat-card-title.sto-card__title {
5
+ .mat-mdc-card.sto-card {
6
+ .mat-mdc-card-title,
7
+ .mat-mdc-card-title.sto-card__title {
8
8
  line-height: mat.m2-line-height($config, headline-1);
9
9
  }
10
10
 
11
- .mat-card-subtitle,
12
- .mat-card-subtitle.sto-card__subtitle {
11
+ .mat-mdc-card-subtitle,
12
+ .mat-mdc-card-subtitle.sto-card__subtitle {
13
13
  margin-bottom: 4px;
14
14
  }
15
15
  }
@@ -80,7 +80,20 @@
80
80
  .sto-datatable {
81
81
  background-color: $background-color;
82
82
  color: $color;
83
-
83
+ .sto-form__field {
84
+ width: 100%;
85
+ min-height: auto;
86
+ --mat-form-field-container-vertical-padding: 8px;
87
+ .mat-mdc-form-field-flex {
88
+ padding: 0 6px;
89
+ .mat-mdc-form-field-infix {
90
+ width: auto;
91
+ }
92
+ }
93
+ .mat-mdc-form-field-subscript-wrapper {
94
+ display: none;
95
+ }
96
+ }
84
97
  .datatable-body,
85
98
  .datatable-header {
86
99
  mat-icon {
@@ -90,7 +103,6 @@
90
103
 
91
104
  .mat-mdc-checkbox {
92
105
  --mat-checkbox-state-layer-size: 35px;
93
- display: inline-flex;
94
106
  }
95
107
  .datatable-header {
96
108
  border-bottom: 1px solid $border-color;
package/style/theme.scss CHANGED
@@ -8,6 +8,7 @@
8
8
  // Include theme styles for core and each component used in your app.
9
9
  @include mat.core-theme($sto-theme);
10
10
  @include mat.all-component-themes($sto-theme);
11
+ @include mat.elevation-classes();
11
12
 
12
13
  body,
13
14
  .sto-header,
File without changes