@odx/ui 3.5.2 → 3.5.4

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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @odx/ui
2
2
 
3
+ ## 3.5.4
4
+
5
+ ### Patch Changes
6
+
7
+ - e3a4eb8: Prevent datepicker, daterangepicker and timepicker dropdown content from overflowing
8
+
9
+ ## 3.5.3
10
+
11
+ ### Patch Changes
12
+
13
+ - 7321693: new timepicker component
14
+
3
15
  ## 3.5.2
4
16
 
5
17
  ### Patch Changes
package/core-theme.css CHANGED
@@ -2079,7 +2079,7 @@ html body .odx-fs-italic {
2079
2079
  top: 0 !important;
2080
2080
  }
2081
2081
  .odx-cdk-connected-overlay__content > * {
2082
- max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
2082
+ max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
2083
2083
  }
2084
2084
 
2085
2085
  .odx-cdk-connected-overlay-arrow {
@@ -2337,15 +2337,15 @@ html body .odx-fs-italic {
2337
2337
  border-radius: var(--odx-v-border-radius);
2338
2338
  box-shadow: var(--odx-v-box-shadow-layer-1);
2339
2339
  display: block;
2340
- min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
2340
+ min-height: inherit;
2341
2341
  }
2342
2342
  .odx-dropdown__inner {
2343
2343
  padding-right: calc(var(--odx-vertical-rythm-base-size) * 0.5);
2344
2344
  padding-left: calc(var(--odx-vertical-rythm-base-size) * 0.5);
2345
2345
  border-bottom: calc(var(--odx-vertical-rythm-base-size) * 0.5) solid transparent;
2346
2346
  border-top: calc(var(--odx-vertical-rythm-base-size) * 0.5) solid transparent;
2347
- max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
2348
- min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
2347
+ max-height: inherit;
2348
+ min-height: inherit;
2349
2349
  overflow: auto;
2350
2350
  overscroll-behavior: contain;
2351
2351
  }
@@ -3838,7 +3838,7 @@ html body .odx-fs-italic {
3838
3838
  display: none;
3839
3839
  }
3840
3840
  .odx-datepicker .odx-dropdown {
3841
- max-height: 359px;
3841
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), 359px);
3842
3842
  }
3843
3843
 
3844
3844
  .odx-daterangepicker {
@@ -3869,7 +3869,7 @@ html body .odx-fs-italic {
3869
3869
  margin-left: calc(var(--odx-vertical-rythm-base-size) * 0.25);
3870
3870
  }
3871
3871
  .odx-daterangepicker .odx-dropdown {
3872
- max-height: 359px;
3872
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), 359px);
3873
3873
  }
3874
3874
 
3875
3875
  .odx-error-page {
@@ -5307,11 +5307,8 @@ html body .odx-fs-italic {
5307
5307
  }
5308
5308
 
5309
5309
  .odx-notification-center-overlay {
5310
- --odx-cdk-connected-overlay-min-height: calc(var(--odx-vertical-rythm-base-size) * 9);
5311
- --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), calc(var(--odx-vertical-rythm-base-size) * 18));
5312
- }
5313
- .odx-notification-center-overlay .odx-dropdown {
5314
- --odx-cdk-connected-overlay-max-height: var(--odx-cdk-connected-overlay-max-height-modified);
5310
+ --odx-cdk-connected-overlay-min-height-modified: calc(var(--odx-vertical-rythm-base-size) * 9);
5311
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), calc(var(--odx-vertical-rythm-base-size) * 15));
5315
5312
  }
5316
5313
 
5317
5314
  .odx-notification-center {
@@ -5320,7 +5317,6 @@ html body .odx-fs-italic {
5320
5317
  --odx-notification-center-header-height: calc(var(--odx-vertical-rythm-base-size) * 2);
5321
5318
  --odx-notification-center-footer-height: calc(var(--odx-vertical-rythm-base-size) * 2.5);
5322
5319
  background-color: var(--odx-c-background-content);
5323
- max-height: min(var(--odx-cdk-connected-overlay-max-height), calc(var(--odx-vertical-rythm-base-size) * 15));
5324
5320
  }
5325
5321
  .odx-notification-center__header, .odx-notification-center__footer {
5326
5322
  background-color: inherit;
@@ -6559,6 +6555,53 @@ html body .odx-fs-italic {
6559
6555
  background-color: var(--odx-table-cell-background-color-active);
6560
6556
  }
6561
6557
 
6558
+ .odx-timepicker {
6559
+ display: flex;
6560
+ align-items: center;
6561
+ justify-content: space-between;
6562
+ width: 100%;
6563
+ }
6564
+ .odx-timepicker__wrapper {
6565
+ display: inline-flex;
6566
+ max-width: calc(var(--odx-vertical-rythm-base-size) * 4.5834);
6567
+ }
6568
+ .odx-timepicker input[odxTimepickerControl] {
6569
+ -webkit-appearance: textfield;
6570
+ -moz-appearance: textfield;
6571
+ appearance: textfield;
6572
+ font-weight: var(--odx-typography-font-weight-normal);
6573
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
6574
+ width: 100%;
6575
+ }
6576
+ .odx-timepicker input[odxTimepickerControl]::-moz-placeholder {
6577
+ font-weight: var(--odx-typography-font-weight-normal);
6578
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
6579
+ color: var(--odx-input-control-color);
6580
+ opacity: 0.65;
6581
+ }
6582
+ .odx-timepicker input[odxTimepickerControl]::placeholder {
6583
+ font-weight: var(--odx-typography-font-weight-normal);
6584
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
6585
+ color: var(--odx-input-control-color);
6586
+ opacity: 0.65;
6587
+ }
6588
+ .odx-timepicker input[odxTimepickerControl]::-webkit-inner-spin-button {
6589
+ -webkit-appearance: none;
6590
+ appearance: none;
6591
+ }
6592
+ .odx-timepicker__option-list {
6593
+ display: flex;
6594
+ flex-direction: column;
6595
+ max-height: calc(7 * var(--odx-vertical-rythm-base-size) * 1.5 + var(--odx-vertical-rythm-base-size));
6596
+ }
6597
+ .odx-timepicker-option:active {
6598
+ background-color: var(--odx-input-control-active-color);
6599
+ }
6600
+ .odx-timepicker.is-readonly .odx-timepicker__trigger {
6601
+ outline-color: transparent;
6602
+ pointer-events: none;
6603
+ }
6604
+
6562
6605
  .odx-toast-container {
6563
6606
  --odx-toast-outer-offset: calc(var(--odx-vertical-rythm-base-size) * 0.3334);
6564
6607
  --odx-toast-border-radius: calc(var(--odx-vertical-rythm-base-size) * 0.25);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@odx/ui",
3
- "version": "3.5.2",
3
+ "version": "3.5.4",
4
4
  "author": "Drägerwerk AG & Co.KGaA",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "peerDependencies": {
@@ -30,7 +30,7 @@
30
30
  top: 0 !important;
31
31
 
32
32
  > * {
33
- max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
33
+ max-height: var(--odx-cdk-connected-overlay-max-height-modified, var(--odx-cdk-connected-overlay-max-height, unset));
34
34
  }
35
35
  }
36
36
  }
@@ -2,7 +2,6 @@
2
2
 
3
3
  .odx-datepicker {
4
4
  $root: &;
5
- $dropdown-max-height: 359px;
6
5
 
7
6
  @include utils.vertical-center-content();
8
7
 
@@ -25,6 +24,6 @@
25
24
  }
26
25
 
27
26
  .odx-dropdown {
28
- max-height: $dropdown-max-height;
27
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), 359px);
29
28
  }
30
29
  }
@@ -3,7 +3,6 @@
3
3
 
4
4
  .odx-daterangepicker {
5
5
  $root: &;
6
- $dropdown-max-height: 359px;
7
6
 
8
7
  @include utils.vertical-center-content();
9
8
 
@@ -39,6 +38,6 @@
39
38
  }
40
39
 
41
40
  .odx-dropdown {
42
- max-height: $dropdown-max-height;
41
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), 359px);
43
42
  }
44
43
  }
@@ -8,15 +8,15 @@ $dropdown-open-selector: '.odx-dropdown-host[aria-expanded="true"]';
8
8
  border-radius: var(--odx-v-border-radius);
9
9
  box-shadow: var(--odx-v-box-shadow-layer-1);
10
10
  display: block;
11
- min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
11
+ min-height: inherit;
12
12
 
13
13
  &__inner {
14
14
  @include dimensions.padding-x(0.5);
15
15
 
16
16
  border-bottom: dimensions.get-size(0.5) solid transparent;
17
17
  border-top: dimensions.get-size(0.5) solid transparent;
18
- max-height: var(--odx-cdk-connected-overlay-max-height, inherit);
19
- min-height: var(--odx-cdk-connected-overlay-min-height, inherit);
18
+ max-height: inherit;
19
+ min-height: inherit;
20
20
  overflow: auto;
21
21
  overscroll-behavior: contain;
22
22
  }
@@ -2,12 +2,8 @@
2
2
  @use '../abstract/typography';
3
3
 
4
4
  .odx-notification-center-overlay {
5
- --odx-cdk-connected-overlay-min-height: #{dimensions.get-size(9)};
6
- --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), #{dimensions.get-size(18)});
7
-
8
- .odx-dropdown {
9
- --odx-cdk-connected-overlay-max-height: var(--odx-cdk-connected-overlay-max-height-modified);
10
- }
5
+ --odx-cdk-connected-overlay-min-height-modified: #{dimensions.get-size(9)};
6
+ --odx-cdk-connected-overlay-max-height-modified: min(var(--odx-cdk-connected-overlay-max-height), #{dimensions.get-size(15)});
11
7
  }
12
8
 
13
9
  .odx-notification-center {
@@ -17,7 +13,6 @@
17
13
  --odx-notification-center-footer-height: #{dimensions.get-size(2.5)};
18
14
 
19
15
  background-color: var(--odx-c-background-content);
20
- max-height: min(var(--odx-cdk-connected-overlay-max-height), #{dimensions.get-size(15)});
21
16
 
22
17
  &__header,
23
18
  &__footer {
@@ -0,0 +1,56 @@
1
+ @use 'sass:math';
2
+ @use '../abstract/utils';
3
+ @use '../layout/helpers';
4
+ @use '../abstract/dimensions';
5
+ @use '../abstract/typography';
6
+ @use '../abstract/motion';
7
+
8
+ .odx-timepicker {
9
+ $root: &;
10
+
11
+ @include utils.vertical-center-content();
12
+
13
+ justify-content: space-between;
14
+ width: 100%;
15
+
16
+ &__wrapper {
17
+ display: inline-flex;
18
+ max-width: dimensions.get-size(math.div(110, 24));
19
+ }
20
+
21
+ input[odxTimepickerControl] {
22
+ appearance: textfield;
23
+ font-weight: var(--odx-typography-font-weight-normal);
24
+ letter-spacing: var(--odx-typography-font-weight-normal-letter-spacing);
25
+ width: 100%;
26
+
27
+ &::placeholder {
28
+ @include typography.font-weight(normal);
29
+
30
+ color: var(--odx-input-control-color);
31
+ opacity: 0.65;
32
+ }
33
+
34
+ &::-webkit-inner-spin-button {
35
+ appearance: none;
36
+ }
37
+ }
38
+
39
+ &__option-list {
40
+ display: flex;
41
+ flex-direction: column;
42
+ max-height: calc(7 * dimensions.get-size(1.5) + var(--odx-vertical-rythm-base-size));
43
+ }
44
+
45
+ &-option {
46
+ &:active {
47
+ background-color: var(--odx-input-control-active-color);
48
+ }
49
+ }
50
+
51
+ &.is-readonly {
52
+ #{$root}__trigger {
53
+ @include utils.non-interactive();
54
+ }
55
+ }
56
+ }
package/scss/core.scss CHANGED
@@ -87,6 +87,7 @@ Layout
87
87
  @use 'components/tab-bar-item.component';
88
88
  @use 'components/tab-bar.component';
89
89
  @use 'components/table.component';
90
+ @use 'components/timepicker.component';
90
91
  @use 'components/toast.component';
91
92
  @use 'components/toast-item.component';
92
93
  @use 'components/toggle-button.component';