@progress/kendo-theme-default 5.8.2-dev.4 → 5.8.2-dev.6

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.
@@ -1,21 +1,67 @@
1
1
  @include exports("action-sheet/layout") {
2
2
 
3
+ // Action sheet container
3
4
  .k-actionsheet-container {
4
- width: 100vw;
5
- height: 100vh;
5
+ width: 100%;
6
+ height: 100%;
7
+ max-width: unquote("max(100%, 100vw)");
8
+ max-height: unquote("max(100%, 100vh)");
6
9
  position: fixed;
7
10
  top: 0;
8
11
  left: 0;
9
12
  z-index: 9999;
10
13
  overflow: hidden;
14
+ transform: translateZ(0);
15
+ }
16
+
17
+
18
+ // Animation container
19
+ .k-actionsheet-container {
20
+
21
+ // Overlay
22
+ > .k-overlay {
23
+ position: absolute;
24
+ z-index: 1;
25
+ }
26
+
27
+ // Nested animation container
28
+ > .k-animation-container {
29
+ width: 100%;
30
+ height: 100%;
31
+ border-radius: 0;
32
+ overflow: hidden;
33
+ position: absolute;
34
+ z-index: 2;
35
+ top: 0;
36
+ left: 0;
37
+ pointer-events: none;
38
+
39
+ > .k-child-animation-container {
40
+ position: absolute;
41
+ }
42
+ }
43
+
44
+ // No animation container
45
+ > .k-actionsheet {
46
+ position: absolute;
47
+ z-index: 2;
48
+ }
49
+
50
+ // Enable mouse events for action sheet
51
+ .k-actionsheet {
52
+ pointer-events: all;
53
+ }
11
54
  }
12
55
 
56
+
13
57
  // Actionsheet
14
58
  .k-actionsheet {
15
- padding: $actionsheet-padding-y $actionsheet-padding-y;
16
- width: $actionsheet-width;
17
- max-width: $actionsheet-max-width;
18
- max-height: $actionsheet-max-height;
59
+ padding-block: $actionsheet-padding-y;
60
+ padding-inline: $actionsheet-padding-y;
61
+ width: var( --kendo-actionsheet-width, #{$actionsheet-width} );
62
+ height: var( --kendo-actionsheet-height, #{$actionsheet-height} );
63
+ max-width: var( --kendo-actionsheet-max-width, #{$actionsheet-max-width} );
64
+ max-height: var( --kendo-actionsheet-max-height, #{$actionsheet-max-height} );
19
65
  border-width: 0;
20
66
  border-style: solid;
21
67
  border-color: transparent;
@@ -23,10 +69,8 @@
23
69
  font-size: $actionsheet-font-size;
24
70
  font-family: $actionsheet-font-family;
25
71
  line-height: $actionsheet-line-height;
26
- overflow-x: hidden;
27
- overflow-y: auto;
28
- position: fixed;
29
- z-index: 10002;
72
+ overflow: hidden;
73
+ position: relative;
30
74
 
31
75
  *,
32
76
  *::before,
@@ -34,37 +78,37 @@
34
78
  box-sizing: border-box;
35
79
  }
36
80
  }
37
- .k-actionsheet-fullscreen {
38
- max-height: 100%;
39
- height: 100%;
40
- }
41
81
 
42
82
 
43
- // Actionsheet header
44
- .k-actionsheet-header {
45
- padding: $actionsheet-header-padding-y $actionsheet-header-padding-x;
83
+ // Actionsheet titlebar
84
+ .k-actionsheet-titlebar {
85
+ padding: $actionsheet-titlebar-padding-y $actionsheet-titlebar-padding-x;
46
86
  border-width: 0;
47
- border-bottom-width: if( $actionsheet-header-border-width, $actionsheet-header-border-width, null );
87
+ border-bottom-width: if( $actionsheet-titlebar-border-width, $actionsheet-titlebar-border-width, null );
48
88
  border-style: solid;
49
89
  border-color: transparent;
50
- box-sizing: border-box;
51
- font-size: $actionsheet-header-font-size;
52
- font-family: $actionsheet-header-font-family;
53
- line-height: $actionsheet-header-line-height;
90
+ font-size: $actionsheet-titlebar-font-size;
91
+ font-family: $actionsheet-titlebar-font-family;
92
+ line-height: $actionsheet-titlebar-line-height;
54
93
  flex: none;
94
+ display: flex;
95
+ flex-flow: column nowrap;
96
+ align-items: center;
97
+ gap: $actionsheet-titlebar-gap;
55
98
  }
56
-
57
-
58
- // Actionsheet titlebar
59
- .k-actionsheet-titlebar {
60
- @extend .k-actionsheet-header !optional;
99
+ .k-actionsheet-titlebar-group {
61
100
  display: flex;
62
101
  flex-flow: row nowrap;
63
102
  align-items: center;
103
+ width: 100%;
64
104
  }
65
105
  .k-actionsheet-title {
66
106
  flex: 1;
67
107
  }
108
+ .k-actionsheet-subtitle {
109
+ font-size: $actionsheet-subtitle-font-size;
110
+ line-height: $actionsheet-subtitle-line-height;
111
+ }
68
112
  .k-actionsheet-actions {
69
113
  flex: none;
70
114
  }
@@ -74,6 +118,7 @@
74
118
  .k-actionsheet-content {
75
119
  flex: 1;
76
120
  overflow: auto;
121
+ position: relative;
77
122
  }
78
123
 
79
124
 
@@ -88,6 +133,7 @@
88
133
  margin: 0;
89
134
  padding: 0;
90
135
  list-style: none;
136
+ flex: none;
91
137
  }
92
138
 
93
139
 
@@ -106,7 +152,7 @@
106
152
  outline: 0;
107
153
  display: flex;
108
154
  flex-flow: row nowrap;
109
- align-items: center;
155
+ align-items: flex-start;
110
156
  gap: $actionsheet-item-spacing;
111
157
  }
112
158
  .k-actionsheet-item-icon {
@@ -129,6 +175,7 @@
129
175
  .k-actionsheet > .k-hr {
130
176
  margin: 0;
131
177
  border-color: inherit;
178
+ flex: none;
132
179
  }
133
180
 
134
181
 
@@ -165,6 +212,12 @@
165
212
  top: 50%;
166
213
  transform: translateY( -50% );
167
214
  }
215
+ .k-actionsheet-fullscreen {
216
+ width: 100%;
217
+ max-width: 100%;
218
+ max-height: 100%;
219
+ height: 100%;
220
+ }
168
221
 
169
222
 
170
223
  // Action sheet in popup
@@ -186,6 +239,28 @@
186
239
  display: flex;
187
240
  flex-flow: column nowrap;
188
241
 
242
+ .k-actionsheet-titlebar {
243
+ padding: $adaptive-actionsheet-titlebar-padding-y $adaptive-actionsheet-titlebar-padding-x;
244
+ border-bottom-width: $adaptive-actionsheet-titlebar-border-width;
245
+ }
246
+
247
+ .k-actionsheet-content {
248
+ padding: $adaptive-actionsheet-content-padding-y $adaptive-actionsheet-content-padding-x;
249
+ }
250
+
251
+ .k-actionsheet-footer {
252
+ padding: $adaptive-actionsheet-footer-padding-y $adaptive-actionsheet-footer-padding-x;
253
+ }
254
+
255
+ .k-list-container,
256
+ .k-treeview {
257
+ height: 100%;
258
+ }
259
+ .k-list-filter {
260
+ width: 100%;
261
+ padding-inline: 0;
262
+ }
263
+
189
264
  .k-calendar {
190
265
  margin-inline: auto;
191
266
  border-width: 0;
@@ -205,6 +280,58 @@
205
280
  height: 100%;
206
281
  }
207
282
  }
283
+
284
+ .k-datetime-wrap {
285
+ width: 100%;
286
+ height: 100%;
287
+ display: flex;
288
+ flex-flow: column nowrap;
289
+ }
290
+ .k-datetime-selector {
291
+ flex: 1 1 auto;
292
+ }
293
+
294
+ .k-datetime-calendar-wrap {
295
+ width: 100%;
296
+ position: absolute;
297
+ top: 0;
298
+ left: 0;
299
+ bottom: 0;
300
+ flex: 0 0 100%;
301
+ }
302
+
303
+ .k-datetime-time-wrap {
304
+ width: 100%;
305
+ position: absolute;
306
+ top: 0;
307
+ left: 100%;
308
+ bottom: 0;
309
+ flex: 0 0 100%;
310
+ }
311
+
312
+ .k-scrollable-wrap {
313
+ height: 100%;
314
+ overflow-y: auto;
315
+ }
316
+ }
317
+
318
+ }
319
+
320
+ @include exports("action-sheet/layout/legacy") {
321
+
322
+ .k-actionsheet-jq {
323
+ &.k-actionsheet {
324
+ height: auto;
325
+ }
326
+
327
+ .k-actionsheet-header {
328
+ @extend .k-actionsheet-titlebar !optional;
329
+ align-items: flex-start;
330
+ }
331
+
332
+ .k-actionsheet-action {
333
+ align-items: center;
334
+ }
208
335
  }
209
336
 
210
337
  }
@@ -12,14 +12,17 @@
12
12
 
13
13
 
14
14
  // Actionsheet header
15
- .k-actionsheet-header {
15
+ .k-actionsheet-titlebar {
16
16
  @include fill(
17
- $actionsheet-header-text,
18
- $actionsheet-header-bg,
19
- $actionsheet-header-border,
20
- $actionsheet-header-gradient
17
+ $actionsheet-titlebar-text,
18
+ $actionsheet-titlebar-bg,
19
+ $actionsheet-titlebar-border,
20
+ $actionsheet-titlebar-gradient
21
21
  );
22
- @include box-shadow( $actionsheet-header-shadow );
22
+ @include box-shadow( $actionsheet-titlebar-shadow );
23
+ }
24
+ .k-actionsheet-subtitle {
25
+ @include fill( $color: $actionsheet-subtitle-text );
23
26
  }
24
27
 
25
28
 
@@ -28,17 +31,7 @@
28
31
 
29
32
 
30
33
  // Actionsheet item
31
- .k-actionsheet-item {}
32
-
33
-
34
- // Actionsheet item description
35
- .k-actionsheet-item-description {
36
- @include fill( $color: $actionsheet-item-description-text );
37
- }
38
-
39
-
40
- // Actionsheet action
41
- .k-actionsheet-action {
34
+ .k-actionsheet-item {
42
35
 
43
36
 
44
37
  // Hover state
@@ -67,7 +60,7 @@
67
60
  }
68
61
 
69
62
 
70
- // Disabed state
63
+ // Disabled state
71
64
  &:disabled,
72
65
  &.k-disabled {
73
66
  @include fill(
@@ -80,4 +73,20 @@
80
73
  }
81
74
  }
82
75
 
76
+
77
+ // Actionsheet item description
78
+ .k-actionsheet-item-description {
79
+ @include fill( $color: $actionsheet-item-description-text );
80
+ }
81
+
82
+
83
+ // Actionsheet action
84
+ .k-actionsheet-action {}
85
+
86
+
87
+ // Adaptive Actionsheet
88
+ .k-adaptive-actionsheet .k-actionsheet-titlebar {
89
+ @include fill( $border: $adaptive-actionsheet-titlebar-border );
90
+ }
91
+
83
92
  }
@@ -3,7 +3,8 @@ $actionsheet-padding-x: null !default;
3
3
  $actionsheet-padding-y: null !default;
4
4
  $actionsheet-width: 360px !default;
5
5
  $actionsheet-max-width: 100% !default;
6
- $actionsheet-max-height: 50vh !default;
6
+ $actionsheet-height: 60vh !default;
7
+ $actionsheet-max-height: 60vh !default;
7
8
 
8
9
  $actionsheet-border-width: 0px !default;
9
10
  $actionsheet-border-radius: 0px !default;
@@ -19,18 +20,23 @@ $actionsheet-shadow: 0 8px 10px -5px rgba(0, 0, 0, .2), 0 16px 24px 2px rgba(0,
19
20
 
20
21
 
21
22
  // Actionsheet header
22
- $actionsheet-header-padding-x: map-get( $spacing, 4 ) !default;
23
- $actionsheet-header-padding-y: map-get( $spacing, 2 ) !default;
24
- $actionsheet-header-border-width: null !default;
25
- $actionsheet-header-font-size: null !default;
26
- $actionsheet-header-font-family: null !default;
27
- $actionsheet-header-line-height: null !default;
23
+ $actionsheet-titlebar-padding-x: map-get( $spacing, 4 ) !default;
24
+ $actionsheet-titlebar-padding-y: map-get( $spacing, 2 ) !default;
25
+ $actionsheet-titlebar-border-width: null !default;
26
+ $actionsheet-titlebar-font-size: null !default;
27
+ $actionsheet-titlebar-font-family: null !default;
28
+ $actionsheet-titlebar-line-height: null !default;
29
+ $actionsheet-titlebar-gap: map-get( $spacing, 4 ) !default;
28
30
 
29
- $actionsheet-header-bg: null !default;
30
- $actionsheet-header-text: null !default;
31
- $actionsheet-header-border: null !default;
32
- $actionsheet-header-gradient: null !default;
33
- $actionsheet-header-shadow: null !default;
31
+ $actionsheet-titlebar-bg: null !default;
32
+ $actionsheet-titlebar-text: null !default;
33
+ $actionsheet-titlebar-border: null !default;
34
+ $actionsheet-titlebar-gradient: null !default;
35
+ $actionsheet-titlebar-shadow: null !default;
36
+
37
+ $actionsheet-subtitle-font-size: $font-size-sm !default;
38
+ $actionsheet-subtitle-line-height: $line-height-sm !default;
39
+ $actionsheet-subtitle-text: $subtle-text !default;
34
40
 
35
41
 
36
42
  // Actionsheet item
@@ -65,3 +71,16 @@ $actionsheet-item-disabled-text: null !default;
65
71
  $actionsheet-item-disabled-border: null !default;
66
72
  $actionsheet-item-disabled-gradient: null !default;
67
73
  $actionsheet-item-disabled-shadow: null !default;
74
+
75
+
76
+ // Adaptive Actionsheet
77
+ $adaptive-actionsheet-titlebar-border-width: 1px !default;
78
+ $adaptive-actionsheet-titlebar-padding-y: map-get( $spacing, 4 ) !default;
79
+ $adaptive-actionsheet-titlebar-padding-x: $adaptive-actionsheet-titlebar-padding-y !default;
80
+ $adaptive-actionsheet-titlebar-border: $component-border !default;
81
+
82
+ $adaptive-actionsheet-content-padding-y: map-get( $spacing, 2 ) !default;
83
+ $adaptive-actionsheet-content-padding-x: map-get( $spacing, 4 ) !default;
84
+
85
+ $adaptive-actionsheet-footer-padding-y: map-get( $spacing, 2 ) !default;
86
+ $adaptive-actionsheet-footer-padding-x: map-get( $spacing, 4 ) !default;
@@ -1,8 +1,8 @@
1
1
  // Infinite calendar and timepicker
2
2
  @mixin hide-scrollbar($dir: "right", $max-scrollbar: 100px) {
3
3
  // anything larger than the scrollbar width will do
4
- $scrollbar-size: 17px;
5
- $margin: -$max-scrollbar - $scrollbar-size;
4
+ $scrollbar-size: var( --kendo-scrollbar-width, #{$default-scrollbar-width} );
5
+ $margin: calc( -#{$max-scrollbar} - #{$scrollbar-size} );
6
6
 
7
7
  padding-right: $max-scrollbar;
8
8
  padding-left: $max-scrollbar;
@@ -18,6 +18,12 @@
18
18
  .k-filter-lines .k-filter-item:last-child > * > .k-filter-toolbar::after {
19
19
  background-color: $component-border;
20
20
  }
21
+
22
+ // Focus
23
+ .k-toolbar:focus,
24
+ .k-toolbar.k-focus {
25
+ @include box-shadow( $filter-toolbar-focus-shadow );
26
+ }
21
27
  }
22
28
 
23
29
  }
@@ -9,3 +9,5 @@ $filter-operator-dropdown-width: 15em !default;
9
9
 
10
10
  $filter-preview-field-text: $primary !default;
11
11
  $filter-preview-operator-text: $subtle-text !default;
12
+
13
+ $filter-toolbar-focus-shadow: 0 0 0 2px rgba(0, 0, 0, .08) !default;
@@ -13,6 +13,27 @@
13
13
  }
14
14
  }
15
15
 
16
+ // Icon wrap
17
+ .k-icon-wrap {
18
+ flex: none;
19
+ display: inline-flex;
20
+ flex-flow: row nowrap;
21
+ gap: 0;
22
+ align-items: center;
23
+ align-self: flex-start;
24
+ vertical-align: middle;
25
+ position: relative;
26
+
27
+ &::before {
28
+ content: "\200b";
29
+ width: 0;
30
+ overflow: hidden;
31
+ flex: none;
32
+ display: inline-block;
33
+ vertical-align: top;
34
+ }
35
+ }
36
+
16
37
  .k-icon {
17
38
  width: 1em;
18
39
  height: 1em;
@@ -1,5 +1,16 @@
1
1
  @include exports( "list/layout" ) {
2
2
 
3
+ // List container
4
+ .k-list-container {
5
+ display: flex;
6
+ flex-flow: column nowrap;
7
+
8
+ > .k-list {
9
+ flex: 1;
10
+ height: 100%;
11
+ }
12
+ }
13
+
3
14
  // List
4
15
  .k-list {
5
16
  margin: 0;
@@ -180,7 +191,7 @@
180
191
  position: relative;
181
192
  padding: $padding-x;
182
193
  box-sizing: border-box;
183
- flex: 0 0 auto;
194
+ flex: none;
184
195
  }
185
196
 
186
197
 
@@ -35,6 +35,7 @@
35
35
  height: 100%;
36
36
  display: block;
37
37
  z-index: 1;
38
+ outline: none;
38
39
  }
39
40
 
40
41
  .k-signature-line {
@@ -58,6 +58,7 @@
58
58
  display: flex;
59
59
  position: relative;
60
60
  flex: 1 1 auto;
61
+ overflow: hidden;
61
62
  }
62
63
 
63
64
 
@@ -118,7 +118,8 @@
118
118
  }
119
119
 
120
120
  // Template item
121
- .k-toolbar-item:focus {
121
+ .k-toolbar-item:focus,
122
+ .k-toolbar-item.k-focus {
122
123
  text-decoration: none;
123
124
  outline: 0;
124
125
  }
@@ -20,7 +20,7 @@
20
20
  // Template item
21
21
  .k-toolbar-item:focus,
22
22
  .k-toolbar-item.k-focus {
23
- @include box-shadow( $kendo-button-focus-shadow );
23
+ @include box-shadow( $toolbar-item-shadow );
24
24
  }
25
25
 
26
26
 
@@ -25,3 +25,5 @@ $toolbar-shadow: null !default;
25
25
  $toolbar-separator-border: inherit !default;
26
26
 
27
27
  $toolbar-input-width: 10em !default;
28
+
29
+ $toolbar-item-shadow: $kendo-button-focus-shadow !default;