@progress/kendo-theme-fluent 5.8.2-dev.6 → 5.9.1-dev.0

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@progress/kendo-theme-fluent",
3
3
  "description": "A css variables based theme for Kendo UI that follows the Fluent design system guidelines.",
4
- "version": "5.8.2-dev.6",
4
+ "version": "5.9.1-dev.0",
5
5
  "author": "Progress",
6
6
  "license": "Apache-2.0",
7
7
  "keywords": [
@@ -44,11 +44,11 @@
44
44
  "postpublish": "echo 'no postpublish for the Fluent theme'"
45
45
  },
46
46
  "dependencies": {
47
- "@progress/kendo-font-icons": "^0.4.0",
48
- "@progress/kendo-theme-utils": "^5.8.2-dev.6"
47
+ "@progress/kendo-font-icons": "^0.6.0",
48
+ "@progress/kendo-theme-utils": "^5.9.1-dev.0"
49
49
  },
50
50
  "devDependencies": {
51
51
  "sass-build": "^1.0.0"
52
52
  },
53
- "gitHead": "b1b2e33a3ce1b92bcefae87e8c46cbd797d814d1"
53
+ "gitHead": "5142573d2cab52d118015f12686449f974b66732"
54
54
  }
@@ -1,4 +1,3 @@
1
- @use "sass:math";
2
1
  @use "../core/color-system" as *;
3
2
  @use "../core/mixins" as *;
4
3
  @use "_variables.scss" as *;
@@ -9,6 +8,8 @@
9
8
 
10
9
  // Base
11
10
  .k-calendar {
11
+ inline-size: var( --INTERNAL--kendo-calendar-width, min-content );
12
+ block-size: var( --INTERNAL--kendo-calendar-height, min-content );
12
13
  border-width: var( --kendo-calendar-border-width, #{$kendo-calendar-border-width} );
13
14
  border-style: solid;
14
15
  box-sizing: border-box;
@@ -41,7 +42,7 @@
41
42
 
42
43
  // Calendar table
43
44
  .k-calendar-table {
44
- margin: 0;
45
+ margin: 0 auto;
45
46
  border-width: 0;
46
47
  border-color: inherit;
47
48
  border-spacing: 0;
@@ -49,8 +50,7 @@
49
50
  table-layout: fixed;
50
51
  text-align: center;
51
52
  outline: 0;
52
- display: inline-table;
53
- vertical-align: top;
53
+ display: table;
54
54
  position: relative;
55
55
  z-index: 1;
56
56
  }
@@ -94,8 +94,29 @@
94
94
 
95
95
  .k-calendar-td {
96
96
  @include border-radius( var( --kendo-calendar-cell-border-radius, #{$kendo-calendar-cell-border-radius} ));
97
+ inline-size: var( --INTERNAL--kendo-calendar-cell-size, min-content );
98
+ block-size: var( --INTERNAL--kendo-calendar-cell-size, min-content );
97
99
  border-color: transparent;
98
- font-size: var( --kendo-calendar-cell-font-size, #{$kendo-calendar-cell-font-size} );
100
+ font-size: var( --INTERNAL--kendo-calendar-cell-font-size, inherit );
101
+ }
102
+
103
+
104
+ // Calendar cell inner
105
+ // Remove .k-calendar once we remove k-link
106
+ .k-calendar .k-calendar-cell-inner {
107
+ @include border-radius( var( --kendo-calendar-cell-border-radius, #{$kendo-calendar-cell-border-radius} ) );
108
+ padding-inline: var( --INTERNAL--kendo-calendar-cell-padding-x, 0 );
109
+ padding-block: var( --INTERNAL--kendo-calendar-cell-padding-y, 0 );
110
+ width: 100%;
111
+ height: 100%;
112
+ box-sizing: border-box;
113
+ display: flex;
114
+ flex-direction: row;
115
+ align-items: center;
116
+ justify-content: center;
117
+ white-space: normal;
118
+ position: relative;
119
+ overflow: hidden;
99
120
  }
100
121
 
101
122
 
@@ -163,7 +184,7 @@
163
184
  padding-inline: var( --kendo-calendar-header-padding-x, #{$kendo-calendar-header-padding-x} );
164
185
  padding-block-end: var( --kendo-calendar-view-padding-block-end, #{$kendo-calendar-view-padding-block-end} );
165
186
  // setting width / height prevents layout changes in meta views
166
- width: $kendo-calendar-view-width;
187
+ inline-size: var( --INTERNAL--kendo-calendar-view-width, #{$kendo-calendar-view-width});
167
188
  min-height: $kendo-calendar-view-height;
168
189
  box-sizing: content-box;
169
190
  gap: var( --kendo-calendar-view-gap, #{$kendo-calendar-view-gap} );
@@ -173,81 +194,80 @@
173
194
 
174
195
  .k-link {
175
196
  @include border-radius( var( --kendo-calendar-cell-border-radius, #{$kendo-calendar-cell-border-radius} ) );
176
- padding-inline: var( --kendo-calendar-cell-padding-x, #{$kendo-calendar-cell-padding-x} );
177
- padding-block: var( --kendo-calendar-cell-padding-y, #{$kendo-calendar-cell-padding-y} );
197
+ padding-inline: var( --INTERNAL--kendo-calendar-cell-padding-x, 0 );
198
+ padding-block: var( --INTERNAL--kendo-calendar-cell-padding-y, 0 );
199
+ width: 100%;
200
+ height: 100%;
178
201
  box-sizing: border-box;
179
202
  display: flex;
180
203
  flex-direction: row;
181
204
  align-items: center;
182
205
  justify-content: center;
183
-
206
+ white-space: normal;
207
+ position: relative;
208
+ overflow: hidden;
184
209
  }
185
210
 
186
211
  .k-today .k-link {
187
212
  @include border-radius( var( --kendo-calendar-today-border-radius, #{$kendo-calendar-today-border-radius} ) );
188
213
  }
189
214
  }
190
- .k-week-number .k-calendar-view {
191
- width: calc( 8 * var( --kendo-calendar-cell-size, #{$kendo-calendar-cell-size} ));
192
- }
193
215
 
194
216
 
195
217
  // Month view
218
+ .k-month-calendar,
196
219
  .k-calendar-monthview {
197
- $_month-cell-size: var( --kendo-calendar-cell-size, #{$kendo-calendar-cell-size} );
220
+ $_month-cell-size: $kendo-calendar-cell-size;
198
221
 
199
222
  .k-calendar-td {
200
223
  width: $_month-cell-size;
201
224
  height: $_month-cell-size;
202
- }
203
- .k-link {
204
- width: $_month-cell-size;
205
- height: $_month-cell-size;
225
+ inline-size: var( --INTERNAL--kendo-calendar-cell-size, #{$_month-cell-size} );
226
+ block-size: var( --INTERNAL--kendo-calendar-cell-size, #{$_month-cell-size} );
206
227
  }
207
228
  }
208
229
 
209
230
 
210
231
  // Year view
232
+ .k-year-calendar,
211
233
  .k-calendar-yearview {
212
- $_year-cell-size: calc( math.div(7, 4) * var( --kendo-calendar-cell-size, #{$kendo-calendar-cell-size} ));
234
+ $_year-cell-size: ( 2 * $kendo-calendar-cell-size );
213
235
 
214
236
  .k-calendar-td {
215
- width: auto;
216
- height: auto;
217
- }
218
- .k-link {
219
237
  width: $_year-cell-size;
220
238
  height: $_year-cell-size;
239
+ inline-size: var( --INTERNAL--kendo-calendar-cell-size, #{$_year-cell-size} );
240
+ block-size: var( --INTERNAL--kendo-calendar-cell-size, #{$_year-cell-size} );
221
241
  }
222
242
  }
223
243
 
224
244
 
225
245
  // Decade view
246
+ .k-decade-calendar,
226
247
  .k-calendar-decadeview {
227
- $_decade-cell-size: calc( math.div(7, 4) * var( --kendo-calendar-cell-size, #{$kendo-calendar-cell-size} ));
248
+ $_decade-cell-size: ( 2 * $kendo-calendar-cell-size );
228
249
 
229
250
  .k-calendar-td {
230
- width: auto;
231
- height: auto;
232
- }
233
- .k-link {
234
251
  width: $_decade-cell-size;
235
252
  height: $_decade-cell-size;
253
+ inline-size: var( --INTERNAL--kendo-calendar-cell-size, #{$_decade-cell-size} );
254
+ block-size: var( --INTERNAL--kendo-calendar-cell-size, #{$_decade-cell-size} );
236
255
  }
237
256
  }
238
257
 
239
258
 
240
259
  // Century view
260
+ .k-century-calendar,
241
261
  .k-calendar-centuryview {
242
- $_century-cell-size: calc( math.div(7, 4) * var( --kendo-calendar-cell-size, #{$kendo-calendar-cell-size} ));
262
+ $_century-cell-size: ( 2 * $kendo-calendar-cell-size );
243
263
 
244
264
  .k-calendar-td {
245
- width: auto;
246
- height: auto;
247
- }
248
- .k-link {
249
265
  width: $_century-cell-size;
250
266
  height: $_century-cell-size;
267
+ inline-size: var( --INTERNAL--kendo-calendar-cell-size, #{$_century-cell-size} );
268
+ block-size: var( --INTERNAL--kendo-calendar-cell-size, #{$_century-cell-size} );
269
+ }
270
+ .k-link {
251
271
  text-align: left;
252
272
  }
253
273
  }
@@ -441,6 +461,51 @@
441
461
  }
442
462
 
443
463
 
464
+
465
+
466
+ // Calendar sizes
467
+ @each $size, $size-props in $kendo-calendar-sizes {
468
+ $_font-size: map-get( $size-props, font-size );
469
+ $_line-height: map-get( $size-props, line-height );
470
+ $_cell-size: map-get( $size-props, cell-size );
471
+ $_cell-padding-x: map-get( $size-props, cell-padding-x );
472
+ $_cell-padding-y: map-get( $size-props, cell-padding-y );
473
+ $_cell-font-size: map-get( $size-props, cell-font-size );
474
+
475
+ $_month-cell-size: $_cell-size;
476
+ $_year-cell-size: ( 2 * $_cell-size );
477
+ $_decade-cell-size: ( 2 * $_cell-size );
478
+ $_century-cell-size: ( 2 * $_cell-size );
479
+
480
+ .k-calendar-#{$size} {
481
+ --INTERNAL--kendo-calendar-view-width: #{8 * $_cell-size};
482
+ --INTERNAL--kendo-calendar-cell-padding-x: var( --kendo-calendar-#{$size}-cell-padding-x, #{$_cell-padding-x} );
483
+ --INTERNAL--kendo-calendar-cell-padding-y: var( --kendo-calendar-#{$size}-cell-padding-y, #{$_cell-padding-y} );
484
+ --INTERNAL--kendo-calendar-cell-font-size: var( --kendo-calendar-#{$size}-cell-font-size, #{$_cell-font-size} );
485
+ font-size: $_font-size;
486
+ line-height: $_line-height;
487
+
488
+ &.k-month-calendar,
489
+ .k-calendar-monthview {
490
+ --INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-#{$size}-month-cell-size, #{$_month-cell-size} );
491
+ }
492
+ &.k-year-calendar,
493
+ .k-calendar-yearview {
494
+ --INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-#{$size}-year-cell-size, #{$_year-cell-size} );
495
+ }
496
+ &.k-decade-calendar,
497
+ .k-calendar-decadeview {
498
+ --INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-#{$size}-decade-cell-size, #{$_decade-cell-size} );
499
+ }
500
+ &.k-century-calendar,
501
+ .k-calendar-centuryview {
502
+ --INTERNAL--kendo-calendar-cell-size: var( --kendo-calendar-#{$size}-century-cell-size, #{$_century-cell-size} );
503
+ }
504
+ }
505
+ }
506
+
507
+
508
+ // RTL
444
509
  .k-rtl .k-calendar,
445
510
  .k-calendar[dir="rtl"] {
446
511
 
@@ -264,4 +264,54 @@ $kendo-calendar-range-bg: get-theme-color-var( neutral-30 ) !default;
264
264
  $kendo-calendar-range-text: inherit !default;
265
265
  /// Border color of the range selection in the calendar.
266
266
  /// @group calendar
267
- $kendo-calendar-range-border: get-theme-color-var( neutral-130 ) !default;
267
+ $kendo-calendar-range-border: get-theme-color-var( neutral-130 ) !default;
268
+
269
+
270
+ // Calendar sizes
271
+ $kendo-calendar-sm-font-size: $kendo-font-size-sm !default;
272
+ $kendo-calendar-sm-line-height: $kendo-line-height-sm !default;
273
+ $kendo-calendar-sm-cell-size: 24px !default;
274
+ $kendo-calendar-sm-cell-padding-x: map-get( $kendo-spacing, thin) !default;
275
+ $kendo-calendar-sm-cell-padding-y: map-get( $kendo-spacing, thin) !default;
276
+ $kendo-calendar-sm-cell-font-size: $kendo-font-size-sm !default;
277
+
278
+ $kendo-calendar-md-font-size: $kendo-font-size-md !default;
279
+ $kendo-calendar-md-line-height: $kendo-line-height-md !default;
280
+ $kendo-calendar-md-cell-size: 28px !default;
281
+ $kendo-calendar-md-cell-padding-x: map-get( $kendo-spacing, 1 ) !default;
282
+ $kendo-calendar-md-cell-padding-y: map-get( $kendo-spacing, 1 ) !default;
283
+ $kendo-calendar-md-cell-font-size: $kendo-font-size-sm !default;
284
+
285
+ $kendo-calendar-lg-font-size: $kendo-font-size-md !default;
286
+ $kendo-calendar-lg-line-height: $kendo-line-height-md !default;
287
+ $kendo-calendar-lg-cell-size: 32px !default;
288
+ $kendo-calendar-lg-cell-padding-x: map-get( $kendo-spacing, 1 ) !default;
289
+ $kendo-calendar-lg-cell-padding-y: map-get( $kendo-spacing, 1 ) !default;
290
+ $kendo-calendar-lg-cell-font-size: $kendo-font-size-md !default;
291
+
292
+ $kendo-calendar-sizes: (
293
+ sm: (
294
+ font-size: $kendo-calendar-sm-font-size,
295
+ line-height: $kendo-calendar-sm-line-height,
296
+ cell-size: $kendo-calendar-sm-cell-size,
297
+ cell-padding-x: $kendo-calendar-sm-cell-padding-y,
298
+ cell-padding-y: $kendo-calendar-sm-cell-padding-x,
299
+ cell-font-size: $kendo-calendar-sm-cell-font-size
300
+ ),
301
+ md: (
302
+ font-size: $kendo-calendar-md-font-size,
303
+ line-height: $kendo-calendar-md-line-height,
304
+ cell-size: $kendo-calendar-md-cell-size,
305
+ cell-padding-x: $kendo-calendar-md-cell-padding-y,
306
+ cell-padding-y: $kendo-calendar-md-cell-padding-x,
307
+ cell-font-size: $kendo-calendar-md-cell-font-size
308
+ ),
309
+ lg: (
310
+ font-size: $kendo-calendar-lg-font-size,
311
+ line-height: $kendo-calendar-lg-line-height,
312
+ cell-size: $kendo-calendar-lg-cell-size,
313
+ cell-padding-x: $kendo-calendar-lg-cell-padding-y,
314
+ cell-padding-y: $kendo-calendar-lg-cell-padding-x,
315
+ cell-font-size: $kendo-calendar-lg-cell-font-size
316
+ )
317
+ ) !default;
@@ -25,6 +25,13 @@
25
25
  }
26
26
  }
27
27
 
28
+ .k-coloreditor .k-colorgradient:focus,
29
+ .k-coloreditor .k-colorgradient.k-focus {
30
+ outline: var( --kendo-coloreditor-colorgradient-focus-outline, #{$kendo-coloreditor-colorgradient-focus-outline} ) dotted;
31
+ outline-offset: var( --kendo-coloreditor-colorgradient-focus-outline-offset, #{$kendo-coloreditor-colorgradient-focus-outline-offset} );
32
+ border-radius: 0;
33
+ }
34
+
28
35
  // Header
29
36
  .k-coloreditor-header {
30
37
  padding-inline: var( --kendo-coloreditor-header-padding-x, #{$kendo-coloreditor-header-padding-x} );
@@ -24,4 +24,9 @@
24
24
  );
25
25
  }
26
26
 
27
+ .k-coloreditor .k-colorgradient:focus,
28
+ .k-coloreditor .k-colorgradient.k-focus {
29
+ box-shadow: none;
30
+ outline-color: var( --kendo-coloreditor-colorgradient-focus-outline-color, #{$kendo-coloreditor-colorgradient-focus-outline-color} );
31
+ }
27
32
  }
@@ -81,3 +81,13 @@ $kendo-coloreditor-footer-padding-y: map-get( $kendo-spacing, 2 ) !default;
81
81
  /// Vertical padding of the color editor footer.
82
82
  /// @group coloreditor
83
83
  $kendo-coloreditor-footer-padding-x: map-get( $kendo-spacing, 2 ) !default;
84
+
85
+ /// The color of the focused colorgradient.
86
+ /// @group coloreditor
87
+ $kendo-coloreditor-colorgradient-focus-outline-color: rgba(0, 0, 0, 0.3) !default;
88
+ /// The outline of the focused colorgradient.
89
+ /// @group coloreditor
90
+ $kendo-coloreditor-colorgradient-focus-outline: 2px !default;
91
+ /// The outline offset of the focused colorgradient.
92
+ /// @group coloreditor
93
+ $kendo-coloreditor-colorgradient-focus-outline-offset: 2px !default;
@@ -63,6 +63,7 @@ $components: (
63
63
  "dateinput",
64
64
  "datepicker",
65
65
  "timepicker",
66
+ "timedurationpicker",
66
67
  "datetimepicker",
67
68
  "daterangepicker",
68
69
  "dropdowngrid",
package/scss/index.scss CHANGED
@@ -70,6 +70,7 @@
70
70
  @use "dateinput";
71
71
  @use "datepicker";
72
72
  @use "timepicker";
73
+ @use "timedurationpicker";
73
74
  @use "datetimepicker";
74
75
  @use "daterangepicker";
75
76
  @use "dropdowngrid";
@@ -229,6 +230,7 @@
229
230
  @include dateinput.styles();
230
231
  @include datepicker.styles();
231
232
  @include timepicker.styles();
233
+ @include timedurationpicker.styles();
232
234
  @include datetimepicker.styles();
233
235
  @include daterangepicker.styles();
234
236
  @include dropdowngrid.styles();
@@ -19,6 +19,12 @@
19
19
  border-bottom-width: var( --kendo-signature-maximized-line-width, #{$kendo-signature-maximized-line-width} );
20
20
  }
21
21
  }
22
+
23
+ &:disabled,
24
+ &[disabled],
25
+ &.k-disabled {
26
+ opacity: var( --kendo-signature-disabled-opacity, #{$kendo-signature-disabled-opacity} );
27
+ }
22
28
  }
23
29
 
24
30
  .k-signature-actions {
@@ -8,6 +8,14 @@
8
8
  .k-signature-line {
9
9
  border-bottom-color: var( --kendo-signature-line-color, #{$kendo-signature-line-color} );
10
10
  }
11
+
12
+ &:disabled,
13
+ &[disabled],
14
+ &.k-disabled {
15
+ .k-signature-line {
16
+ border-bottom-color: var( --kendo-signature-line-disabled-color, #{$kendo-signature-line-disabled-color} );
17
+ }
18
+ }
11
19
  }
12
20
 
13
21
  }
@@ -25,6 +25,10 @@ $kendo-signature-padding-y-sm: map-get( $kendo-spacing, thin ) !default;
25
25
  $kendo-signature-padding-y-md: $kendo-signature-padding-x-md !default;
26
26
  $kendo-signature-padding-y-lg: map-get( $kendo-spacing, 1 ) + map-get( $kendo-spacing, thin ) !default;
27
27
 
28
+ /// The opacity of the disabled signature component.
29
+ /// @group signature
30
+ $kendo-signature-disabled-opacity: .3 !default;
31
+
28
32
  /// The bottom-border width of the row line of the signature component.
29
33
  /// @group signature
30
34
  $kendo-signature-line-width: 1px !default;
@@ -33,7 +37,10 @@ $kendo-signature-line-width: 1px !default;
33
37
  $kendo-signature-line-style: dashed !default;
34
38
  /// The color of the row line of the signature component.
35
39
  /// @group signature
36
- $kendo-signature-line-color: get-theme-color-var( primary-30 ) !default;
40
+ $kendo-signature-line-color: rgba( get-theme-color( info, 100 ), .4 ) !default;
41
+ /// The color of the row line of the disabled signature component.
42
+ /// @group signature
43
+ $kendo-signature-line-disabled-color: get-theme-color-var( neutral-60 ) !default;
37
44
  /// The width of the row line of the signature component.
38
45
  /// @group signature
39
46
  $kendo-signature-line-size: calc( 100% - 2 * #{$kendo-signature-padding-x} ) !default;
@@ -0,0 +1,6 @@
1
+ @mixin kendo-timedurationpicker--layout() {
2
+
3
+ // Time picker
4
+ .k-timedurationpicker {}
5
+
6
+ }
@@ -0,0 +1,6 @@
1
+ @mixin kendo-timedurationpicker--theme() {
2
+
3
+ // Time picker
4
+ .k-timedurationpicker {}
5
+
6
+ }
@@ -0,0 +1 @@
1
+ // Time Duration picker
@@ -0,0 +1,29 @@
1
+ // Module meta
2
+ $_kendo-module-meta: (
3
+ name: "timedurationpicker",
4
+ dependencies: (
5
+ "button",
6
+ "icon",
7
+ "input",
8
+ "popup",
9
+ "list",
10
+ "timeselector"
11
+ )
12
+ );
13
+
14
+ // Component
15
+ @forward "_variables.scss";
16
+ @use "_layout.scss" as *;
17
+ @use "_theme.scss" as *;
18
+
19
+ // Register
20
+ @use "../core/module-system/" as module;
21
+ @include module.register( $_kendo-module-meta... );
22
+
23
+ // Expose
24
+ @mixin styles() {
25
+ @include module.render( "timedurationpicker" ) {
26
+ @include kendo-timedurationpicker--layout();
27
+ @include kendo-timedurationpicker--theme();
28
+ }
29
+ }
@@ -3,6 +3,7 @@ $_kendo-module-meta: (
3
3
  name: "timepicker",
4
4
  dependencies: (
5
5
  "button",
6
+ "icon",
6
7
  "input",
7
8
  "popup",
8
9
  "list",
@@ -30,7 +30,7 @@
30
30
  // Time selector header
31
31
  .k-time-header,
32
32
  .k-time-selector-header {
33
- padding: var( --kendo-time-selector-header-padding-y, $kendo-time-selector-header-padding-y ) var( --kendo-time-selector-header-padding-x, $kendo-time-selector-header-padding-x ) 0;
33
+ padding: var( --kendo-time-selector-header-padding-y, $kendo-time-selector-header-padding-y ) var( --kendo-time-selector-header-padding-x, $kendo-time-selector-header-padding-x );
34
34
  box-sizing: border-box;
35
35
  display: flex;
36
36
  align-items: center;