igniteui-angular 20.0.0 → 20.0.2
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/fesm2022/igniteui-angular.mjs +9 -11
- package/fesm2022/igniteui-angular.mjs.map +1 -1
- package/index.d.ts +2 -2
- package/lib/core/styles/components/_common/_igx-vhelper.scss +1 -0
- package/lib/core/styles/components/action-strip/_action-strip-theme.scss +2 -7
- package/lib/core/styles/components/avatar/_avatar-theme.scss +7 -8
- package/lib/core/styles/components/badge/_badge-theme.scss +3 -8
- package/lib/core/styles/components/banner/_banner-theme.scss +6 -7
- package/lib/core/styles/components/bottom-nav/_bottom-nav-theme.scss +17 -28
- package/lib/core/styles/components/button/_button-theme.scss +219 -158
- package/lib/core/styles/components/button/_contained-button-theme.scss +302 -0
- package/lib/core/styles/components/button/_fab-button-theme.scss +296 -0
- package/lib/core/styles/components/button/_flat-button-theme.scss +356 -0
- package/lib/core/styles/components/button/_outlined-button-theme.scss +419 -0
- package/lib/core/styles/components/button-group/_button-group-theme.scss +113 -29
- package/lib/core/styles/components/calendar/_calendar-theme.scss +502 -112
- package/lib/core/styles/components/card/_card-theme.scss +5 -16
- package/lib/core/styles/components/carousel/_carousel-theme.scss +103 -23
- package/lib/core/styles/components/checkbox/_checkbox-component.scss +1 -1
- package/lib/core/styles/components/checkbox/_checkbox-theme.scss +63 -11
- package/lib/core/styles/components/chip/_chip-theme.scss +64 -47
- package/lib/core/styles/components/column-actions/_column-actions-theme.scss +2 -7
- package/lib/core/styles/components/combo/_combo-theme.scss +54 -12
- package/lib/core/styles/components/dialog/_dialog-theme.scss +9 -12
- package/lib/core/styles/components/divider/_divider-theme.scss +1 -6
- package/lib/core/styles/components/drop-down/_drop-down-theme.scss +52 -32
- package/lib/core/styles/components/expansion-panel/_expansion-panel-theme.scss +18 -13
- package/lib/core/styles/components/grid/_grid-theme.scss +115 -94
- package/lib/core/styles/components/grid/_pivot-data-selector-theme.scss +1 -6
- package/lib/core/styles/components/grid-summary/_grid-summary-theme.scss +12 -13
- package/lib/core/styles/components/grid-toolbar/_grid-toolbar-theme.scss +7 -12
- package/lib/core/styles/components/highlight/highlight-theme.scss +2 -3
- package/lib/core/styles/components/icon/_icon-theme.scss +0 -1
- package/lib/core/styles/components/icon-button/_contained-icon-button-theme.scss +196 -0
- package/lib/core/styles/components/icon-button/_flat-icon-button-theme.scss +188 -0
- package/lib/core/styles/components/icon-button/_icon-button-theme.scss +45 -32
- package/lib/core/styles/components/icon-button/_outlined-icon-button-theme.scss +232 -0
- package/lib/core/styles/components/input/_input-group-theme.scss +272 -21
- package/lib/core/styles/components/label/_label-theme.scss +2 -4
- package/lib/core/styles/components/list/_list-theme.scss +42 -66
- package/lib/core/styles/components/navbar/_navbar-theme.scss +25 -15
- package/lib/core/styles/components/navdrawer/_navdrawer-theme.scss +24 -22
- package/lib/core/styles/components/overlay/_overlay-theme.scss +0 -1
- package/lib/core/styles/components/paginator/_paginator-theme.scss +2 -7
- package/lib/core/styles/components/progress/circular/_circular-theme.scss +3 -8
- package/lib/core/styles/components/progress/linear/_linear-theme.scss +1 -6
- package/lib/core/styles/components/query-builder/_query-builder-theme.scss +28 -11
- package/lib/core/styles/components/radio/_radio-theme.scss +54 -10
- package/lib/core/styles/components/ripple/_ripple-theme.scss +0 -1
- package/lib/core/styles/components/scrollbar/scrollbar-theme.scss +0 -1
- package/lib/core/styles/components/select/_select-theme.scss +35 -7
- package/lib/core/styles/components/slider/_slider-theme.scss +92 -7
- package/lib/core/styles/components/snackbar/_snackbar-theme.scss +3 -8
- package/lib/core/styles/components/splitter/_splitter-theme.scss +15 -8
- package/lib/core/styles/components/stepper/_stepper-theme.scss +190 -22
- package/lib/core/styles/components/switch/_switch-theme.scss +112 -8
- package/lib/core/styles/components/tabs/_tabs-theme.scss +124 -56
- package/lib/core/styles/components/time-picker/_time-picker-theme.scss +35 -18
- package/lib/core/styles/components/toast/_toast-theme.scss +9 -10
- package/lib/core/styles/components/tooltip/_tooltip-theme.scss +2 -7
- package/lib/core/styles/components/tree/_tree-theme.scss +33 -10
- package/lib/core/styles/components/watermark/_watermark-theme.scss +0 -1
- package/lib/core/styles/themes/_core.scss +6 -0
- package/lib/core/styles/themes/generators/_base.scss +146 -58
- package/migrations/migration-collection.json +5 -0
- package/migrations/update-20_0_2/changes/theme-changes.json +11 -0
- package/migrations/update-20_0_2/index.d.ts +3 -0
- package/migrations/update-20_0_2/index.js +18 -0
- package/package.json +1 -1
- package/styles/igniteui-angular-dark.css +1 -1
- package/styles/igniteui-angular.css +1 -1
- package/styles/igniteui-bootstrap-dark.css +1 -1
- package/styles/igniteui-bootstrap-light.css +1 -1
- package/styles/igniteui-dark-green.css +1 -1
- package/styles/igniteui-fluent-dark-excel.css +1 -1
- package/styles/igniteui-fluent-dark-word.css +1 -1
- package/styles/igniteui-fluent-dark.css +1 -1
- package/styles/igniteui-fluent-light-excel.css +1 -1
- package/styles/igniteui-fluent-light-word.css +1 -1
- package/styles/igniteui-fluent-light.css +1 -1
- package/styles/igniteui-indigo-dark.css +1 -1
- package/styles/igniteui-indigo-light.css +1 -1
- package/styles/maps/igniteui-angular-dark.css.map +1 -1
- package/styles/maps/igniteui-angular.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-dark.css.map +1 -1
- package/styles/maps/igniteui-bootstrap-light.css.map +1 -1
- package/styles/maps/igniteui-dark-green.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-dark.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-excel.css.map +1 -1
- package/styles/maps/igniteui-fluent-light-word.css.map +1 -1
- package/styles/maps/igniteui-fluent-light.css.map +1 -1
- package/styles/maps/igniteui-indigo-dark.css.map +1 -1
- package/styles/maps/igniteui-indigo-light.css.map +1 -1
|
@@ -225,104 +225,113 @@
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
$theme: digest-schema($grid-schema);
|
|
228
|
-
$meta: map.get($theme, '_meta');
|
|
229
|
-
|
|
230
|
-
@if not($cell-selected-within-text-color) and $cell-selected-within-background {
|
|
231
|
-
$cell-selected-within-text-color: text-contrast($cell-selected-within-background);
|
|
232
|
-
}
|
|
233
228
|
|
|
234
229
|
@if not($ghost-header-icon-color) and $ghost-header-background {
|
|
235
|
-
|
|
236
|
-
$ghost-header-icon-color: rgba(text-contrast($ghost-header-background), .07);
|
|
237
|
-
}
|
|
230
|
+
$ghost-header-icon-color: hsla(from adaptive-contrast(var(--ghost-header-background)) h s l / .07);
|
|
238
231
|
}
|
|
239
232
|
|
|
240
233
|
@if not($ghost-header-text-color) and $ghost-header-background {
|
|
241
|
-
$ghost-header-text-color:
|
|
234
|
+
$ghost-header-text-color: adaptive-contrast(var(--ghost-header-background));
|
|
242
235
|
}
|
|
243
236
|
|
|
244
|
-
@if $header-
|
|
245
|
-
$header-
|
|
237
|
+
@if not($header-text-color) and $header-background {
|
|
238
|
+
$header-text-color: adaptive-contrast(var(--header-background));
|
|
246
239
|
}
|
|
247
240
|
|
|
248
|
-
@if not($header-
|
|
249
|
-
$header-
|
|
241
|
+
@if not($header-selected-background) and $header-background {
|
|
242
|
+
$header-selected-background: hsl(from var(--header-background) h s calc(l * 0.9));
|
|
250
243
|
}
|
|
251
244
|
|
|
252
245
|
@if not($header-selected-text-color) and $header-selected-background {
|
|
253
|
-
$header-selected-text-color:
|
|
246
|
+
$header-selected-text-color: adaptive-contrast(var(--header-selected-background));
|
|
254
247
|
}
|
|
255
248
|
|
|
256
249
|
@if not($header-border-color) and $header-background {
|
|
257
|
-
|
|
258
|
-
$header-border-color: rgba(text-contrast($header-background), .24);
|
|
259
|
-
}
|
|
250
|
+
$header-border-color: hsla(from adaptive-contrast(var(--header-background)) h s l / .24);
|
|
260
251
|
}
|
|
261
252
|
|
|
262
253
|
@if not($content-text-color) and $content-background {
|
|
263
|
-
$content-text-color:
|
|
254
|
+
$content-text-color: adaptive-contrast(var(--content-background));
|
|
264
255
|
}
|
|
265
256
|
|
|
266
257
|
@if not($row-odd-background) and $content-background {
|
|
267
|
-
$row-odd-background:
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
@if $row-odd-background and meta.type-of($row-odd-background) == 'color' and color.alpha($row-odd-background) != 1 {
|
|
271
|
-
$cbg: if($content-background, $content-background, map.get($theme, 'content-background'));
|
|
272
|
-
|
|
273
|
-
$row-odd-background: to-opaque($row-odd-background, $cbg);
|
|
258
|
+
$row-odd-background: hsl(from var(--content-background) h calc(s - 10) l);
|
|
274
259
|
}
|
|
275
260
|
|
|
276
261
|
@if not($row-odd-text-color) and $row-odd-background {
|
|
277
|
-
$row-odd-text-color:
|
|
262
|
+
$row-odd-text-color: adaptive-contrast(var(--row-odd-background));
|
|
278
263
|
}
|
|
279
264
|
|
|
280
265
|
@if not($row-even-background) and $content-background {
|
|
281
|
-
$row-even-background:
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
@if $row-even-background and meta.type-of($row-even-background) == 'color' and color.alpha($row-even-background) != 1 {
|
|
285
|
-
$cbg: if($content-background, $content-background, map.get($theme, 'content-background'));
|
|
286
|
-
|
|
287
|
-
$row-even-background: to-opaque($row-even-background, $cbg);
|
|
266
|
+
$row-even-background: hsl(from var(--content-background) h calc(s + 10) l);
|
|
288
267
|
}
|
|
289
268
|
|
|
290
269
|
@if not($row-even-text-color) and $row-even-background {
|
|
291
|
-
$row-even-text-color:
|
|
270
|
+
$row-even-text-color: adaptive-contrast(var(--row-even-background));
|
|
292
271
|
}
|
|
293
272
|
|
|
294
273
|
@if not($row-hover-background) and $content-background {
|
|
295
|
-
|
|
296
|
-
$row-hover-background: to-opaque(rgba(text-contrast($content-background), .08), $content-background)
|
|
297
|
-
}
|
|
274
|
+
$row-hover-background: hsl(from var(--content-background) h s calc(l * 0.85));
|
|
298
275
|
}
|
|
299
276
|
|
|
300
277
|
@if not($row-hover-text-color) and $row-hover-background {
|
|
301
|
-
$row-hover-text-color:
|
|
278
|
+
$row-hover-text-color: adaptive-contrast(var(--row-hover-background));
|
|
279
|
+
}
|
|
280
|
+
|
|
281
|
+
@if not($cell-selected-background) and $content-background {
|
|
282
|
+
$cell-selected-background: hsl(from var(--content-background) h s calc(l * 0.9));
|
|
302
283
|
}
|
|
303
284
|
|
|
304
285
|
@if not($cell-selected-text-color) and $cell-selected-background {
|
|
305
|
-
$cell-selected-text-color:
|
|
286
|
+
$cell-selected-text-color: adaptive-contrast(var(--cell-selected-background));
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
@if not($row-selected-background) and $content-background {
|
|
290
|
+
$row-selected-background: hsl(from var(--content-background) h s calc(l * 0.9));
|
|
306
291
|
}
|
|
307
292
|
|
|
308
293
|
@if not($row-selected-text-color) and $row-selected-background {
|
|
309
|
-
$row-selected-text-color:
|
|
294
|
+
$row-selected-text-color: adaptive-contrast(var(--row-selected-background));
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
@if not($row-selected-hover-background) and $row-selected-background {
|
|
298
|
+
$row-selected-hover-background: hsl(from var(--row-selected-background) h s calc(l * 0.85));
|
|
310
299
|
}
|
|
311
300
|
|
|
312
301
|
@if not($row-selected-hover-text-color) and $row-selected-hover-background {
|
|
313
|
-
$row-selected-hover-text-color:
|
|
302
|
+
$row-selected-hover-text-color: adaptive-contrast(var(--row-selected-hover-background));
|
|
314
303
|
}
|
|
315
304
|
|
|
316
305
|
@if not($row-border-color) and $content-background {
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
306
|
+
$row-border-color: hsla(from adaptive-contrast(var(--content-background)) h s l / .08);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
@if not($cell-selected-within-background) and $row-selected-background {
|
|
310
|
+
$cell-selected-within-background: hsl(from var(--row-selected-background) h s calc(l * 0.85));
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
@if not($cell-selected-within-text-color) and $cell-selected-within-background {
|
|
314
|
+
$cell-selected-within-text-color: adaptive-contrast(var(--cell-selected-within-background));
|
|
315
|
+
}
|
|
316
|
+
|
|
317
|
+
@if not($cell-editing-background) and $content-background {
|
|
318
|
+
$cell-editing-background: var(--content-background);
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
@if not($cell-editing-foreground) and $cell-editing-background {
|
|
322
|
+
$cell-editing-foreground: adaptive-contrast(var(--cell-editing-background));
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
@if not($cell-editing-focus-foreground) and $cell-editing-background {
|
|
326
|
+
$cell-editing-focus-foreground: adaptive-contrast(var(--cell-editing-background));
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
@if not($cell-active-border-color) and $content-background {
|
|
330
|
+
$cell-active-border-color: hsla(from adaptive-contrast(var(--content-background)) h s l / .5);
|
|
320
331
|
}
|
|
321
332
|
|
|
322
333
|
@if not($pinned-border-color) and $content-background {
|
|
323
|
-
|
|
324
|
-
$pinned-border-color: rgba(text-contrast($content-background), .08)
|
|
325
|
-
}
|
|
334
|
+
$pinned-border-color: hsla(from adaptive-contrast(var(--content-background)) h s l / .08);
|
|
326
335
|
}
|
|
327
336
|
|
|
328
337
|
@if not($group-row-background) and $header-background {
|
|
@@ -330,61 +339,75 @@
|
|
|
330
339
|
}
|
|
331
340
|
|
|
332
341
|
@if not($expand-icon-color) and $group-row-background {
|
|
333
|
-
$expand-icon-color:
|
|
342
|
+
$expand-icon-color: adaptive-contrast(var(--group-row-background))
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
@if not($group-row-selected-background) and $group-row-background {
|
|
346
|
+
$group-row-selected-background: hsl(from var(--group-row-background) h s calc(l * 0.8));
|
|
334
347
|
}
|
|
335
348
|
|
|
336
349
|
@if not($group-label-text) and $group-row-selected-background {
|
|
337
|
-
$group-label-text:
|
|
350
|
+
$group-label-text: adaptive-contrast(var(--group-row-selected-background))
|
|
338
351
|
}
|
|
339
352
|
|
|
340
353
|
@if not($expand-icon-color) and $group-row-selected-background {
|
|
341
|
-
$expand-icon-color:
|
|
354
|
+
$expand-icon-color: adaptive-contrast(var(--group-row-selected-background))
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
@if not($expand-icon-hover-color) and $expand-icon-color {
|
|
358
|
+
$expand-icon-hover-color: var(--expand-icon-color);
|
|
342
359
|
}
|
|
343
360
|
|
|
344
361
|
@if not($group-count-background) and $group-row-selected-background {
|
|
345
|
-
$group-count-background:
|
|
362
|
+
$group-count-background: adaptive-contrast(var(--group-row-selected-background));
|
|
346
363
|
}
|
|
347
364
|
|
|
348
365
|
@if not($expand-all-icon-color) and $header-background {
|
|
349
|
-
|
|
350
|
-
$expand-all-icon-color: rgba(text-contrast($header-background), .87);
|
|
351
|
-
}
|
|
366
|
+
$expand-all-icon-color: hsla(from adaptive-contrast(var(--header-background)) h s l / .87);
|
|
352
367
|
}
|
|
353
368
|
|
|
354
369
|
@if not($expand-all-icon-hover-color) and $header-background {
|
|
355
|
-
$expand-all-icon-hover-color:
|
|
370
|
+
$expand-all-icon-hover-color: adaptive-contrast(var(--header-background));
|
|
371
|
+
}
|
|
372
|
+
|
|
373
|
+
@if not($sorted-header-icon-color) and $header-background {
|
|
374
|
+
$sorted-header-icon-color: hsla(from adaptive-contrast(var(--header-background)) h s l / 0.8);
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
@if not($sortable-header-icon-hover-color) and $sorted-header-icon-color {
|
|
378
|
+
$sortable-header-icon-hover-color: hsla(from var(--sorted-header-icon-color) h s l / 1);
|
|
379
|
+
}
|
|
380
|
+
|
|
381
|
+
@if not($edit-mode-color) and $content-background {
|
|
382
|
+
$edit-mode-color: hsla(from adaptive-contrast(var(--content-background)) h s l / 0.5);
|
|
356
383
|
}
|
|
357
384
|
|
|
358
385
|
@if not($group-label-text) and $group-row-background {
|
|
359
|
-
$group-label-text:
|
|
386
|
+
$group-label-text: adaptive-contrast(var(--group-row-background))
|
|
360
387
|
}
|
|
361
388
|
|
|
362
389
|
@if not($group-count-background) and $group-row-background {
|
|
363
|
-
$group-count-background:
|
|
390
|
+
$group-count-background: adaptive-contrast(var(--group-row-background));
|
|
364
391
|
}
|
|
365
392
|
|
|
366
393
|
@if not($group-count-text-color) and $group-count-background {
|
|
367
|
-
$group-count-text-color:
|
|
394
|
+
$group-count-text-color: adaptive-contrast(var(--group-count-background));
|
|
368
395
|
}
|
|
369
396
|
|
|
370
397
|
@if not($grouparea-background) and $header-background {
|
|
371
|
-
$grouparea-background:
|
|
398
|
+
$grouparea-background: var(--header-background);
|
|
372
399
|
}
|
|
373
400
|
|
|
374
401
|
@if not($grouparea-color) and $grouparea-background {
|
|
375
|
-
|
|
376
|
-
$grouparea-color: rgba(text-contrast($grouparea-background), .8)
|
|
377
|
-
}
|
|
402
|
+
$grouparea-color: hsla(from adaptive-contrast(var(--grouparea-background)) h s l / .8);
|
|
378
403
|
}
|
|
379
404
|
|
|
380
405
|
@if not($grouparea-color) and $header-background {
|
|
381
|
-
|
|
382
|
-
$grouparea-color: rgba(text-contrast($header-background), .8)
|
|
383
|
-
}
|
|
406
|
+
$grouparea-color: hsla(from adaptive-contrast(var(--header-background)) h s l / .8);
|
|
384
407
|
}
|
|
385
408
|
|
|
386
409
|
@if not($drop-area-background) and $grouparea-background {
|
|
387
|
-
$drop-area-background:
|
|
410
|
+
$drop-area-background: adaptive-contrast(var(--grouparea-background));
|
|
388
411
|
}
|
|
389
412
|
|
|
390
413
|
@if not($drop-area-on-drop-background) and $drop-area-background {
|
|
@@ -392,49 +415,53 @@
|
|
|
392
415
|
}
|
|
393
416
|
|
|
394
417
|
@if not($drop-area-text-color) and $drop-area-background {
|
|
395
|
-
$drop-area-text-color:
|
|
418
|
+
$drop-area-text-color: adaptive-contrast(var(--drop-area-background));
|
|
396
419
|
}
|
|
397
420
|
|
|
398
421
|
@if not($drop-area-icon-color) and $drop-area-background {
|
|
399
|
-
$drop-area-icon-color:
|
|
422
|
+
$drop-area-icon-color: adaptive-contrast(var(--drop-area-background));
|
|
400
423
|
}
|
|
401
424
|
|
|
402
425
|
@if not($filtering-header-background) and $header-background {
|
|
403
|
-
|
|
404
|
-
@if luminance($header-background) < .5 {
|
|
405
|
-
$filtering-header-background: to-opaque(color.scale($header-background, $lightness: 5%));
|
|
406
|
-
} @else {
|
|
407
|
-
$filtering-header-background: to-opaque(color.scale($header-background, $lightness: -5%));
|
|
408
|
-
}
|
|
409
|
-
}
|
|
426
|
+
$filtering-header-background: color-mix(in hsl, var(--header-background), #fff 5%);
|
|
410
427
|
}
|
|
411
428
|
|
|
412
429
|
@if not($filtering-header-text-color) and $filtering-header-background {
|
|
413
|
-
$filtering-header-text-color:
|
|
430
|
+
$filtering-header-text-color: adaptive-contrast(var(--filtering-header-background));
|
|
414
431
|
}
|
|
415
432
|
|
|
416
433
|
@if not($filtering-row-background) and $header-background {
|
|
417
|
-
|
|
418
|
-
@if luminance($header-background) < .5 {
|
|
419
|
-
$filtering-row-background: to-opaque(color.scale($header-background, $lightness: 5%));
|
|
420
|
-
} @else {
|
|
421
|
-
$filtering-row-background: to-opaque(color.scale($header-background, $lightness: -5%));
|
|
422
|
-
}
|
|
423
|
-
}
|
|
434
|
+
$filtering-row-background: color-mix(in hsl, var(--header-background), #fff 5%);
|
|
424
435
|
}
|
|
425
436
|
|
|
426
437
|
@if not($filtering-row-text-color) and $filtering-row-background {
|
|
427
|
-
$filtering-row-text-color:
|
|
438
|
+
$filtering-row-text-color: adaptive-contrast(var(--filtering-row-background));
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
@if not($excel-filtering-header-foreground) and $filtering-row-background {
|
|
442
|
+
$excel-filtering-header-foreground: adaptive-contrast(var(--filtering-row-background));
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
@if not($excel-filtering-subheader-foreground) and $filtering-row-background {
|
|
446
|
+
$excel-filtering-subheader-foreground: adaptive-contrast(var(--filtering-row-background));
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
@if not($excel-filtering-actions-foreground) and $filtering-row-background {
|
|
450
|
+
$excel-filtering-actions-foreground: hsla(from adaptive-contrast(var(--filtering-row-background)) h s l / 0.8);
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
@if not($excel-filtering-actions-disabled-foreground) and $filtering-row-background {
|
|
454
|
+
$excel-filtering-actions-disabled-foreground: hsla(from adaptive-contrast(var(--filtering-row-background)) h s l / 0.5);
|
|
428
455
|
}
|
|
429
456
|
|
|
430
457
|
@if not($grid-shadow) {
|
|
431
458
|
$grid-elevation: map.get($grid-schema, 'grid-elevation');
|
|
432
|
-
$grid-shadow: elevation(
|
|
459
|
+
$grid-shadow: elevation(var(--grid-elevation));
|
|
433
460
|
}
|
|
434
461
|
|
|
435
462
|
@if not($drag-shadow) {
|
|
436
463
|
$drag-elevation: map.get($grid-schema, 'drag-elevation');
|
|
437
|
-
$drag-shadow: elevation(
|
|
464
|
+
$drag-shadow: elevation(var(--drag-elevation));
|
|
438
465
|
}
|
|
439
466
|
|
|
440
467
|
@if not($drop-area-border-radius) {
|
|
@@ -553,12 +580,6 @@
|
|
|
553
580
|
|
|
554
581
|
cell-selected-within-background: $cell-selected-within-background,
|
|
555
582
|
cell-selected-within-text-color: $cell-selected-within-text-color,
|
|
556
|
-
|
|
557
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
558
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
559
|
-
variant: map.get($schema, '_meta', 'theme'),
|
|
560
|
-
theme-variant: map.get($schema, '_meta', 'variant')
|
|
561
|
-
)),
|
|
562
583
|
));
|
|
563
584
|
}
|
|
564
585
|
|
|
@@ -580,8 +601,8 @@
|
|
|
580
601
|
|
|
581
602
|
@include scale-in-ver-center();
|
|
582
603
|
|
|
583
|
-
$variant: map.get($theme, '_meta', '
|
|
584
|
-
$theme-variant: map.get($theme, '_meta', '
|
|
604
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
605
|
+
$theme-variant: map.get($theme, '_meta', 'variant');
|
|
585
606
|
$bootstrap-theme: $variant == 'bootstrap';
|
|
586
607
|
$not-bootstrap-theme: $variant != 'bootstrap';
|
|
587
608
|
|
|
@@ -25,14 +25,9 @@
|
|
|
25
25
|
}
|
|
26
26
|
|
|
27
27
|
$theme: digest-schema($pivot-data-selector-schema);
|
|
28
|
-
$meta: map.get($theme, '_meta');
|
|
29
28
|
|
|
30
29
|
@return extend($theme, (
|
|
31
30
|
name: $name,
|
|
32
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
33
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
34
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
35
|
-
)),
|
|
36
31
|
));
|
|
37
32
|
}
|
|
38
33
|
|
|
@@ -41,7 +36,7 @@
|
|
|
41
36
|
/// @param {Map} $theme - The theme used to style the component.
|
|
42
37
|
@mixin pivot-data-selector($theme) {
|
|
43
38
|
@include css-vars($theme);
|
|
44
|
-
$variant: map.get($theme, '_meta', '
|
|
39
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
45
40
|
|
|
46
41
|
$chip-height-material: (
|
|
47
42
|
comfortable: rem(22px),
|
|
@@ -50,22 +50,25 @@
|
|
|
50
50
|
}
|
|
51
51
|
|
|
52
52
|
$theme: digest-schema($grid-summary-schema);
|
|
53
|
-
|
|
53
|
+
|
|
54
|
+
@if not($label-color) and $background-color {
|
|
55
|
+
$label-color: adaptive-contrast(var(--background-color));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
@if not($label-hover-color) and $label-color {
|
|
59
|
+
$label-hover-color: var(--label-color);
|
|
60
|
+
}
|
|
54
61
|
|
|
55
62
|
@if not($result-color) and $background-color {
|
|
56
|
-
$result-color:
|
|
63
|
+
$result-color: adaptive-contrast(var(--background-color));
|
|
57
64
|
}
|
|
58
65
|
|
|
59
66
|
@if not($border-color) and $background-color {
|
|
60
|
-
|
|
61
|
-
$border-color: rgba(text-contrast($background-color), .26);
|
|
62
|
-
}
|
|
67
|
+
$border-color: hsla(from adaptive-contrast(var(--background-color)) h s l / .26);
|
|
63
68
|
}
|
|
64
69
|
|
|
65
70
|
@if not($pinned-border-color) and $background-color {
|
|
66
|
-
|
|
67
|
-
$pinned-border-color: rgba(text-contrast($background-color), .26);
|
|
68
|
-
}
|
|
71
|
+
$pinned-border-color: hsla(from adaptive-contrast(var(--background-color)) h s l / .26);
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
@return extend($theme, (
|
|
@@ -79,10 +82,6 @@
|
|
|
79
82
|
pinned-border-style: $pinned-border-style,
|
|
80
83
|
pinned-border-color: $pinned-border-color,
|
|
81
84
|
label-hover-color: $label-hover-color,
|
|
82
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
83
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
84
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
85
|
-
)),
|
|
86
85
|
));
|
|
87
86
|
}
|
|
88
87
|
|
|
@@ -92,7 +91,7 @@
|
|
|
92
91
|
@mixin grid-summary($theme) {
|
|
93
92
|
@include css-vars($theme);
|
|
94
93
|
|
|
95
|
-
$variant: map.get($theme, '_meta', '
|
|
94
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
96
95
|
|
|
97
96
|
$cell-pin: (
|
|
98
97
|
style: var-get($theme, 'pinned-border-width') var-get($theme, 'pinned-border-style'),
|
|
@@ -52,30 +52,29 @@
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
$theme: digest-schema($grid-toolbar-schema);
|
|
55
|
-
$meta: map.get($theme, '_meta');
|
|
56
55
|
|
|
57
56
|
@if not($title-text-color) and $background-color {
|
|
58
|
-
$title-text-color:
|
|
57
|
+
$title-text-color: adaptive-contrast(var(--background-color));
|
|
59
58
|
}
|
|
60
59
|
|
|
61
60
|
@if not($item-text-color) and $dropdown-background {
|
|
62
|
-
$item-text-color:
|
|
61
|
+
$item-text-color: adaptive-contrast(var(--dropdown-background));
|
|
63
62
|
}
|
|
64
63
|
|
|
65
64
|
@if not($item-hover-text-color) and $dropdown-background {
|
|
66
|
-
$item-hover-text-color:
|
|
65
|
+
$item-hover-text-color: adaptive-contrast(var(--dropdown-background));
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
@if not($item-focus-text-color) and $dropdown-background {
|
|
70
|
-
$item-focus-text-color:
|
|
69
|
+
$item-focus-text-color: adaptive-contrast(var(--dropdown-background));
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
@if not($item-hover-text-color) and $item-hover-background {
|
|
74
|
-
$item-hover-text-color:
|
|
73
|
+
$item-hover-text-color: adaptive-contrast(var(--item-hover-background));
|
|
75
74
|
}
|
|
76
75
|
|
|
77
76
|
@if not($item-focus-text-color) and $item-focus-background {
|
|
78
|
-
$item-focus-text-color:
|
|
77
|
+
$item-focus-text-color: adaptive-contrast(var(--item-focus-background));
|
|
79
78
|
}
|
|
80
79
|
|
|
81
80
|
@return extend($theme, (
|
|
@@ -89,10 +88,6 @@
|
|
|
89
88
|
item-hover-text-color: $item-hover-text-color,
|
|
90
89
|
item-focus-background: $item-focus-background,
|
|
91
90
|
item-focus-text-color: $item-focus-text-color,
|
|
92
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
93
|
-
_meta: map.merge(if($meta, $meta, ()), (
|
|
94
|
-
variant: map.get($schema, '_meta', 'theme')
|
|
95
|
-
)),
|
|
96
91
|
size: $size,
|
|
97
92
|
border-color: $border-color
|
|
98
93
|
));
|
|
@@ -104,7 +99,7 @@
|
|
|
104
99
|
@mixin grid-toolbar($theme) {
|
|
105
100
|
@include css-vars($theme);
|
|
106
101
|
|
|
107
|
-
$variant: map.get($theme, '_meta', '
|
|
102
|
+
$variant: map.get($theme, '_meta', 'theme');
|
|
108
103
|
$bootstrap-theme: $variant == 'bootstrap';
|
|
109
104
|
|
|
110
105
|
// Caption
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
$theme: digest-schema($highlight-schema);
|
|
40
40
|
|
|
41
41
|
@if not($resting-color) and $resting-background {
|
|
42
|
-
$resting-color:
|
|
42
|
+
$resting-color: adaptive-contrast(var(--resting-background));
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
@if not($active-color) and $active-background {
|
|
46
|
-
$active-color:
|
|
46
|
+
$active-color: adaptive-contrast(var(--active-background));
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
@return extend($theme, (
|
|
@@ -53,7 +53,6 @@
|
|
|
53
53
|
resting-color: $resting-color,
|
|
54
54
|
active-background: $active-background,
|
|
55
55
|
active-color: $active-color,
|
|
56
|
-
theme: map.get($schema, '_meta', 'theme'),
|
|
57
56
|
));
|
|
58
57
|
}
|
|
59
58
|
|