@ardium-ui/ui 5.0.0-alpha.6 → 5.0.0-alpha.61
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/ardium-ui-ui.mjs +4809 -2358
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/disablable-component.d.ts +2 -1
- package/lib/_internal/focusable-component.d.ts +2 -1
- package/lib/_internal/form-field-component.d.ts +3 -2
- package/lib/_internal/item-storages/dropdown-item-storage.d.ts +20 -19
- package/lib/_internal/item-storages/simple-item-storage.d.ts +15 -12
- package/lib/_internal/item-storages/simplest-item-storage.d.ts +1 -1
- package/lib/_internal/ngmodel-component.d.ts +5 -8
- package/lib/_internal/selectable-list-component.d.ts +6 -6
- package/lib/_internal/utils/date.utils.d.ts +16 -0
- package/lib/badge/badge.directive.d.ts +3 -2
- package/lib/breakpoints/breakpoint.service.d.ts +12 -0
- package/lib/breakpoints/breakpoint.utils.d.ts +7 -0
- package/lib/breakpoints/breakpoints.d.ts +13 -0
- package/lib/breakpoints/index.d.ts +2 -0
- package/lib/buttons/_button-base.d.ts +12 -8
- package/lib/buttons/_button-base.defaults.d.ts +3 -2
- package/lib/buttons/button/button.component.d.ts +5 -5
- package/lib/buttons/button/button.defaults.d.ts +0 -2
- package/lib/buttons/button/button.directive.d.ts +17 -0
- package/lib/buttons/button/button.module.d.ts +3 -2
- package/lib/buttons/button/index.d.ts +1 -0
- package/lib/buttons/fab/fab.component.d.ts +3 -1
- package/lib/buttons/icon-button/icon-button.component.d.ts +6 -4
- package/lib/buttons/icon-button/icon-button.defaults.d.ts +2 -1
- package/lib/calendar/abstract-calendar.d.ts +128 -0
- package/lib/calendar/calendar.component.d.ts +8 -96
- package/lib/calendar/calendar.defaults.d.ts +16 -1
- package/lib/calendar/calendar.internal-directives.d.ts +24 -8
- package/lib/calendar/calendar.internal-types.d.ts +1 -0
- package/lib/calendar/calendar.module.d.ts +4 -9
- package/lib/calendar/calendar.types.d.ts +21 -5
- package/lib/calendar/index.d.ts +3 -0
- package/lib/calendar/range-calendar.component.d.ts +16 -0
- package/lib/calendar/range-calendar.directives.d.ts +51 -0
- package/lib/calendar/range-calendar.module.d.ts +10 -0
- package/lib/calendar/views/calendar-views.module.d.ts +13 -0
- package/lib/calendar/views/days-view/days-view.component.d.ts +20 -2
- package/lib/calendar/views/days-view/days-view.helpers.d.ts +2 -2
- package/lib/calendar/views/months-view/months-view.component.d.ts +15 -3
- package/lib/calendar/views/years-view/years-view.component.d.ts +16 -3
- package/lib/checkbox-list/checkbox-list.component.d.ts +9 -7
- package/lib/checkbox-list/checkbox-list.directives.d.ts +7 -0
- package/lib/checkbox-list/checkbox-list.module.d.ts +1 -1
- package/lib/chip/chip.component.d.ts +2 -1
- package/lib/chip/deletable-chip/deletable-chip.component.d.ts +2 -1
- package/lib/chip/selectable-chip/selectable-chip.component.d.ts +3 -2
- package/lib/dialog/dialog.component.d.ts +13 -8
- package/lib/dialog/dialog.types.d.ts +1 -0
- package/lib/divider/divider.component.d.ts +2 -1
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
- package/lib/file-inputs/file-input/file-input.component.d.ts +2 -1
- package/lib/file-inputs/file-input-base.d.ts +4 -5
- package/lib/form-field/auto-error/auto-error.component.d.ts +19 -0
- package/lib/form-field/auto-error/auto-error.provider.d.ts +7 -0
- package/lib/form-field/error/error.directive.d.ts +3 -2
- package/lib/form-field/form-field-base.d.ts +5 -2
- package/lib/form-field/form-field-child.token.d.ts +5 -5
- package/lib/form-field/form-field-native-inputs.d.ts +6 -11
- package/lib/form-field/form-field.component.d.ts +1 -1
- package/lib/form-field/form-field.defaults.d.ts +1 -0
- package/lib/form-field/form-field.module.d.ts +5 -4
- package/lib/form-field/hint/hint.directive.d.ts +3 -2
- package/lib/form-field/hint-error/hint-error.directive.d.ts +3 -2
- package/lib/form-field/horizontal-form-field.component.d.ts +1 -1
- package/lib/form-field/index.d.ts +4 -0
- package/lib/form-field/label/label.component.d.ts +3 -2
- package/lib/form-field-frame/form-field-frame.component.d.ts +4 -3
- package/lib/grid/grid.component.d.ts +51 -0
- package/lib/grid/grid.defaults.d.ts +16 -0
- package/lib/grid/grid.module.d.ts +7 -0
- package/lib/grid/grid.types.d.ts +38 -0
- package/lib/grid/grid.utils.d.ts +11 -0
- package/lib/grid/index.d.ts +4 -0
- package/lib/icon/icon.component.d.ts +2 -1
- package/lib/inputs/_simple-input-base.d.ts +7 -3
- package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +5 -4
- package/lib/inputs/date-input/abstract-date-input.d.ts +112 -0
- package/lib/inputs/date-input/date-input.component.d.ts +19 -81
- package/lib/inputs/date-input/date-input.defaults.d.ts +21 -3
- package/lib/inputs/date-input/{date-input.directive.d.ts → date-input.directives.d.ts} +2 -2
- package/lib/inputs/date-input/date-input.module.d.ts +5 -4
- package/lib/inputs/date-input/date-input.serializers.d.ts +4 -2
- package/lib/inputs/date-input/date-input.types.d.ts +5 -4
- package/lib/inputs/date-input/date-range-input.component.d.ts +29 -0
- package/lib/inputs/date-input/date-range-input.directives.d.ts +82 -0
- package/lib/inputs/date-input/date-range-input.module.d.ts +17 -0
- package/lib/inputs/date-input/index.d.ts +7 -1
- package/lib/inputs/date-input/multipage-date-range-input.component.d.ts +44 -0
- package/lib/inputs/date-input/multipage-date-range-input.directives.d.ts +82 -0
- package/lib/inputs/date-input/multipage-date-range-input.module.d.ts +17 -0
- package/lib/inputs/digit-input/digit-input.component.d.ts +4 -3
- package/lib/inputs/hex-input/hex-input.component.d.ts +5 -3
- package/lib/inputs/input-utils.d.ts +6 -0
- package/lib/inputs/number-input/number-input.component.d.ts +18 -12
- package/lib/inputs/number-input/number-input.defaults.d.ts +4 -0
- package/lib/inputs/number-input/number-input.directives.d.ts +12 -0
- package/lib/inputs/number-input/number-input.module.d.ts +1 -1
- package/lib/inputs/password-input/password-input.component.d.ts +4 -3
- package/lib/kbd/kbd.component.d.ts +2 -1
- package/lib/kbd-shortcut/kbd-shortcut.component.d.ts +2 -1
- package/lib/modal/modal.component.d.ts +9 -6
- package/lib/modal/modal.defaults.d.ts +2 -0
- package/lib/option/option.component.d.ts +2 -1
- package/lib/progress-bar/progress-bar.component.d.ts +4 -3
- package/lib/progress-circle/progress-circle.component.d.ts +5 -4
- package/lib/search-functions.d.ts +1 -1
- package/lib/segment/segment.component.d.ts +6 -5
- package/lib/select/select.component.d.ts +38 -30
- package/lib/select/select.defaults.d.ts +9 -2
- package/lib/select/select.directive.d.ts +6 -0
- package/lib/select/select.module.d.ts +1 -1
- package/lib/select/select.types.d.ts +6 -2
- package/lib/select/select.utils.d.ts +2 -0
- package/lib/slider/abstract-slider.d.ts +35 -29
- package/lib/slider/index.d.ts +1 -0
- package/lib/slider/range-slider/range-slider.component.d.ts +12 -9
- package/lib/slider/range-slider/range-slider.types.d.ts +6 -0
- package/lib/slider/slider.component.d.ts +5 -4
- package/lib/slider/slider.types.d.ts +3 -3
- package/lib/star/rating-display/rating-display.component.d.ts +2 -1
- package/lib/star/rating-input/rating-input.component.d.ts +5 -3
- package/lib/star/rating-input/rating-input.defaults.d.ts +2 -2
- package/lib/tabber/index.d.ts +2 -1
- package/lib/tabber/tab/tab.component.d.ts +14 -8
- package/lib/tabber/tabber.component.d.ts +25 -9
- package/lib/tabber/tabber.defaults.d.ts +1 -0
- package/lib/tabber/tabber.directives.d.ts +9 -0
- package/lib/tabber/tabber.module.d.ts +3 -2
- package/lib/tabber/tabber.types.d.ts +5 -0
- package/lib/table/table.component.d.ts +16 -15
- package/lib/table-pagination/table-pagination.component.d.ts +4 -3
- package/lib/text-list/text-list.component.d.ts +2 -1
- package/lib/types/item-storage.types.d.ts +17 -18
- package/package.json +2 -1
- package/prebuilt-themes/default/buttons/button.css +74 -58
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +64 -51
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +50 -44
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +131 -55
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +48 -22
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +4 -4
- package/prebuilt-themes/default/chips.css +74 -42
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +1 -1
- package/prebuilt-themes/default/core.css +10 -1
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css +7 -2
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +6 -2
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +62 -29
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +61 -25
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +5 -44
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +69 -21
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +102 -62
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +38 -20
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +31 -15
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +42 -22
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +58 -22
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/search-bar.css +33 -16
- package/prebuilt-themes/default/inputs/search-bar.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +8 -4
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css +19 -9
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css +46 -22
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +46 -28
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +71 -61
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +78 -44
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +88 -37
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +93 -52
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/stars.css +4 -4
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/statebox.css +5 -5
- package/prebuilt-themes/default/tabber.css +47 -16
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table.css +0 -8
- package/prebuilt-themes/default/table.css.map +1 -1
- package/public-api.d.ts +2 -0
- package/themes/_variables.scss +2 -1
- package/themes/default/_mixins.scss +5 -5
- package/themes/default/buttons/_button-mixins.scss +43 -33
- package/themes/default/buttons/button.scss +54 -29
- package/themes/default/buttons/fab.scss +47 -26
- package/themes/default/buttons/icon-button.scss +40 -17
- package/themes/default/calendar.scss +148 -58
- package/themes/default/checkbox-list.scss +47 -21
- package/themes/default/chips.scss +70 -39
- package/themes/default/color-display.scss +1 -1
- package/themes/default/core.scss +13 -1
- package/themes/default/dialog.scss +9 -2
- package/themes/default/form-field-frame.scss +9 -4
- package/themes/default/form-field.scss +64 -28
- package/themes/default/inputs/_shared.scss +30 -9
- package/themes/default/inputs/autocomplete-input.scss +69 -14
- package/themes/default/inputs/color-input.scss +2 -2
- package/themes/default/inputs/date-input.scss +54 -5
- package/themes/default/inputs/digit-input.scss +1 -1
- package/themes/default/inputs/file-input.scss +86 -23
- package/themes/default/inputs/hex-input.scss +46 -9
- package/themes/default/inputs/input.scss +39 -4
- package/themes/default/inputs/number-input.scss +55 -15
- package/themes/default/inputs/password-input.scss +72 -15
- package/themes/default/inputs/search-bar.scss +41 -5
- package/themes/default/kbd-shortcut.scss +10 -4
- package/themes/default/kbd.scss +26 -9
- package/themes/default/modal.scss +56 -22
- package/themes/default/radio.scss +47 -26
- package/themes/default/segment.scss +77 -67
- package/themes/default/select.scss +98 -42
- package/themes/default/slide-toggle.scss +134 -59
- package/themes/default/slider.scss +102 -65
- package/themes/default/statebox.scss +1 -1
- package/themes/default/tabber.scss +48 -13
- package/themes/default/table.scss +8 -8
- package/lib/tabber/tab/tab.defaults.d.ts +0 -6
- package/prebuilt-themes/default/calendar-OLD.css +0 -294
- package/prebuilt-themes/default/calendar-OLD.css.map +0 -1
- package/themes/default/calendar-OLD.scss +0 -183
|
@@ -3,23 +3,60 @@
|
|
|
3
3
|
@use 'sass:math';
|
|
4
4
|
@use '../variables' as ARD;
|
|
5
5
|
|
|
6
|
+
// the variables are commented out intentionally
|
|
7
|
+
// read more in docs/dev/css-variables.md
|
|
8
|
+
:root {
|
|
9
|
+
// --ard-slider-font-size: ;
|
|
10
|
+
// --ard-slider-font-size-compact: ;
|
|
11
|
+
--ard-slider-width: 100%;
|
|
12
|
+
--ard-slider-padding: 0 calc(var(--ard-slider-handle-size, 1.25em) / 2);
|
|
13
|
+
--ard-slider-track-height: 0.25em;
|
|
14
|
+
// --ard-slider-track-color: ;
|
|
15
|
+
--ard-slider-track-opacity: 20%;
|
|
16
|
+
--ard-slider-track-border-radius: 9999px;
|
|
17
|
+
--ard-slider-active-track-height: calc(100% + 0.125em);
|
|
18
|
+
// --ard-slider-active-color: ;
|
|
19
|
+
--ard-slider-active-track-opacity: 100%;
|
|
20
|
+
--ard-slider-value-tick-size: 0.125em;
|
|
21
|
+
--ard-slider-value-tick-opacity: 30%;
|
|
22
|
+
--ard-slider-track-hitbox-size: calc(var(--ard-slider-handle-size, 1.25em) / 2);
|
|
23
|
+
--ard-slider-handle-size: 1.25em;
|
|
24
|
+
// --ard-slider-handle-bg: ;
|
|
25
|
+
--ard-slider-handle-border: none;
|
|
26
|
+
--ard-slider-handle-border-radius: 9999px;
|
|
27
|
+
--ard-slider-handle-hitbox-size: 0.375em;
|
|
28
|
+
--ard-slider-handle-overlay-size: 0.5em;
|
|
29
|
+
--ard-slider-handle-overlay-hover-opacity: 7.5%;
|
|
30
|
+
--ard-slider-handle-overlay-focus-opacity: 15%;
|
|
31
|
+
--ard-slider-handle-overlay-active-opacity: 25%;
|
|
32
|
+
--ard-slider-label-font-size: 0.875rem;
|
|
33
|
+
--ard-slider-label-padding-top: 0.2em;
|
|
34
|
+
// --ard-slider-label-bg: ;
|
|
35
|
+
// --ard-slider-label-color: ;
|
|
36
|
+
--ard-slider-label-height: 2em;
|
|
37
|
+
--ard-slider-label-border: none;
|
|
38
|
+
--ard-slider-label-border-radius: 0.375em;
|
|
39
|
+
--ard-slider-label-padding: 0 0.75em;
|
|
40
|
+
--ard-slider-label-font-weight: 500;
|
|
41
|
+
--ard-slider-label-arrow-size: 0.375em;
|
|
42
|
+
--ard-slider-label-offset: 0.5em;
|
|
43
|
+
}
|
|
44
|
+
|
|
6
45
|
.ard-slider-container-master,
|
|
7
46
|
.ard-range-slider-container-master {
|
|
8
47
|
@include coloringMixins.typeColors();
|
|
9
48
|
|
|
10
49
|
position: relative;
|
|
11
|
-
font-size: 1rem;
|
|
12
|
-
width:
|
|
50
|
+
font-size: var(--ard-slider-font-size, var(--ard-form-field-font-size, 1rem));
|
|
51
|
+
width: var(--ard-slider-width, 100%);
|
|
13
52
|
max-width: 100%;
|
|
14
|
-
padding: 0
|
|
53
|
+
padding: var(--ard-slider-padding, 0 calc(var(--ard-slider-handle-size, 1.25em) / 2));
|
|
15
54
|
display: flex;
|
|
16
55
|
flex-direction: column;
|
|
17
56
|
|
|
18
|
-
color: var(--ard-cmpcl--bg-colored);
|
|
19
|
-
|
|
20
57
|
//! compact
|
|
21
58
|
&.ard-compact {
|
|
22
|
-
font-size: 0.
|
|
59
|
+
font-size: var(--ard-slider-font-size-compact, var(--ard-form-field-font-size-compact, 0.875rem));
|
|
23
60
|
|
|
24
61
|
.ard-slider-container > .ard-slider-handle {
|
|
25
62
|
font-size: 0.95em;
|
|
@@ -32,115 +69,105 @@
|
|
|
32
69
|
align-items: center;
|
|
33
70
|
position: relative;
|
|
34
71
|
width: 100%;
|
|
35
|
-
height: 1.25em;
|
|
72
|
+
height: var(--ard-slider-handle-size, 1.25em);
|
|
36
73
|
cursor: pointer;
|
|
37
74
|
}
|
|
38
75
|
//! track
|
|
39
76
|
.ard-slider-track {
|
|
40
77
|
width: 100%;
|
|
41
|
-
height: 0.25em;
|
|
78
|
+
height: var(--ard-slider-track-height, 0.25em);
|
|
42
79
|
background: ARD.$bg;
|
|
43
80
|
|
|
44
81
|
.ard-slider-track-overlay {
|
|
45
82
|
position: absolute;
|
|
46
83
|
width: 100%;
|
|
47
84
|
height: 100%;
|
|
48
|
-
background:
|
|
49
|
-
opacity: 20
|
|
50
|
-
border-radius: 9999px;
|
|
85
|
+
background: var(--ard-slider-track-color, var(--ard-cmpcl--bg-colored));
|
|
86
|
+
opacity: var(--ard-slider-track-opacity, 20%);
|
|
87
|
+
border-radius: var(--ard-slider-track-border-radius, 9999px);
|
|
51
88
|
|
|
52
89
|
&.ard-slider-track-active {
|
|
53
90
|
width: 0;
|
|
54
|
-
height: calc(100% + 0.125em);
|
|
55
|
-
top:
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
91
|
+
height: var(--ard-slider-active-track-height, calc(100% + 0.125em));
|
|
92
|
+
top: 50%;
|
|
93
|
+
transform: translateY(-50%);
|
|
94
|
+
background: var(--ard-slider-active-color, var(--ard-cmpcl--bg-colored));
|
|
95
|
+
opacity: var(--ard-slider-active-track-opacity, 100%);
|
|
96
|
+
transition: width var(--_ard-slider-transition) ease, left var(--_ard-slider-transition) ease;
|
|
60
97
|
}
|
|
61
98
|
}
|
|
62
99
|
.ard-hitbox {
|
|
63
100
|
position: absolute;
|
|
64
|
-
inset: -
|
|
101
|
+
inset: calc(var(--ard-slider-hitbox-size, calc(var(--ard-slider-handle-size, 1.25em) / 2)) * -1);
|
|
65
102
|
}
|
|
66
103
|
.ard-value-tick-container {
|
|
67
104
|
position: absolute;
|
|
68
|
-
left: 0.125em;
|
|
69
|
-
width: calc(100% - 0.
|
|
105
|
+
left: var(--ard-slider-value-tick-size, 0.125em);
|
|
106
|
+
width: calc(100% - var(--ard-slider-value-tick-size, 0.125em) * 2);
|
|
70
107
|
height: 100%;
|
|
71
108
|
}
|
|
72
109
|
.ard-value-tick {
|
|
73
110
|
top: 50%;
|
|
74
|
-
width: 0.125em;
|
|
75
|
-
height: 0.125em;
|
|
111
|
+
width: var(--ard-slider-value-tick-size, 0.125em);
|
|
112
|
+
height: var(--ard-slider-value-tick-size, 0.125em);
|
|
76
113
|
border-radius: 9999px;
|
|
77
114
|
background: ARD.$text;
|
|
78
|
-
opacity: 30
|
|
115
|
+
opacity: var(--ard-slider-value-tick-opacity, 30%);
|
|
79
116
|
transform: translate(-50%, -50%);
|
|
80
117
|
}
|
|
81
118
|
}
|
|
82
119
|
//! handle
|
|
83
|
-
// &.ard-slider-handle-grabbed,
|
|
84
|
-
// &.ard-slider-handle-grabbed * {
|
|
85
|
-
// cursor: grabbing;
|
|
86
|
-
// }
|
|
87
120
|
.ard-slider-handle {
|
|
88
121
|
font-size: inherit;
|
|
89
122
|
top: 0;
|
|
90
|
-
width: 1.25em;
|
|
91
|
-
height: 1.25em;
|
|
123
|
+
width: var(--ard-slider-handle-size, 1.25em);
|
|
124
|
+
height: var(--ard-slider-handle-size, 1.25em);
|
|
92
125
|
color: inherit;
|
|
93
|
-
background:
|
|
94
|
-
border-radius: 9999px;
|
|
95
|
-
border: none;
|
|
126
|
+
background: var(--ard-slider-handle-bg, var(--ard-cmpcl--bg-colored));
|
|
127
|
+
border-radius: var(--ard-slider-handle-border-radius, 9999px);
|
|
128
|
+
border: var(--ard-slider-handle-border, none);
|
|
96
129
|
z-index: 1;
|
|
97
130
|
outline: none;
|
|
98
|
-
cursor:
|
|
131
|
+
cursor: grab;
|
|
99
132
|
|
|
100
|
-
transition:
|
|
101
|
-
box-shadow 0.15s ease,
|
|
102
|
-
left var(--_ard-slider-transition) ease;
|
|
133
|
+
transition: box-shadow 0.15s ease, left var(--_ard-slider-transition) ease;
|
|
103
134
|
box-shadow: ARD.$simple-shadow;
|
|
104
135
|
|
|
105
|
-
// cursor: grab;
|
|
106
|
-
// &.ard-grabbed {
|
|
107
|
-
// cursor: grabbing;
|
|
108
|
-
// }
|
|
109
|
-
|
|
110
136
|
.ard-focus-overlay {
|
|
111
|
-
@include defaultMixins.focus-overlay(0.5em);
|
|
137
|
+
@include defaultMixins.focus-overlay(var(--ard-slider-handle-overlay-size, 0.5em));
|
|
112
138
|
background: currentColor;
|
|
113
139
|
}
|
|
114
140
|
@include defaultMixins.focus-overlay-scale-addon();
|
|
115
141
|
|
|
116
142
|
.ard-hitbox {
|
|
117
143
|
position: absolute;
|
|
118
|
-
inset:
|
|
119
|
-
border-radius: 9999px;
|
|
144
|
+
inset: calc(var(--ard-slider-handle-hitbox-size, 0.375em) * -1);
|
|
145
|
+
border-radius: calc(var(--ard-slider-handle-border-radius, 9999px) + var(--ard-slider-handle-hitbox-size, 0.375em));
|
|
120
146
|
}
|
|
121
147
|
&:hover {
|
|
122
148
|
.ard-focus-overlay {
|
|
123
|
-
opacity: 7.5
|
|
149
|
+
opacity: var(--ard-slider-handle-overlay-hover-opacity, 7.5%);
|
|
124
150
|
}
|
|
125
151
|
}
|
|
126
152
|
&:focus {
|
|
127
153
|
box-shadow: ARD.$simple-shadow2;
|
|
154
|
+
|
|
128
155
|
.ard-focus-overlay {
|
|
129
|
-
opacity: 15
|
|
156
|
+
opacity: var(--ard-slider-handle-overlay-focus-opacity, 15%);
|
|
130
157
|
}
|
|
131
158
|
}
|
|
132
159
|
&:active,
|
|
133
160
|
&.ard-grabbed {
|
|
134
161
|
.ard-focus-overlay {
|
|
135
|
-
opacity: 25
|
|
162
|
+
opacity: var(--ard-slider-handle-overlay-active-opacity, 25%);
|
|
136
163
|
}
|
|
137
164
|
}
|
|
138
165
|
}
|
|
139
166
|
.ard-slider-label-container {
|
|
140
167
|
position: relative;
|
|
141
|
-
font-size: 0.9em;
|
|
142
|
-
padding-top: 0.2em;
|
|
143
|
-
left:
|
|
168
|
+
font-size: var(--ard-slider-label-font-size, 0.9em);
|
|
169
|
+
padding-top: var(--ard-slider-label-padding-top, 0.2em);
|
|
170
|
+
left: 0.125em;
|
|
144
171
|
width: calc(100% - 0.25em) !important;
|
|
145
172
|
|
|
146
173
|
.ard-slider-label {
|
|
@@ -153,16 +180,16 @@
|
|
|
153
180
|
z-index: 2;
|
|
154
181
|
}
|
|
155
182
|
.ard-slider-tooltip {
|
|
156
|
-
--ard-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
183
|
+
background: var(--ard-slider-label-bg, #{ARD.$text3});
|
|
184
|
+
height: var(--ard-slider-label-height, 2em);
|
|
185
|
+
padding: var(--ard-slider-label-padding, 0 0.75em);
|
|
186
|
+
border-radius: var(--ard-slider-label-border-radius, 0.375em);
|
|
187
|
+
color: var(--ard-slider-label-color, #{ARD.$text2-alt});
|
|
188
|
+
font-size: var(--ard-slider-label-font-size, 0.875rem);
|
|
189
|
+
font-weight: var(--ard-slider-label-font-weight, 500);
|
|
190
|
+
white-space: nowrap;
|
|
163
191
|
display: flex;
|
|
164
192
|
align-items: center;
|
|
165
|
-
font-weight: 500;
|
|
166
193
|
position: relative;
|
|
167
194
|
z-index: 2;
|
|
168
195
|
user-select: none;
|
|
@@ -173,28 +200,30 @@
|
|
|
173
200
|
&::before {
|
|
174
201
|
content: '';
|
|
175
202
|
position: absolute;
|
|
176
|
-
border: 0.375em solid transparent;
|
|
203
|
+
border: var(--ard-slider-label-arrow-size, 0.375em) solid transparent;
|
|
177
204
|
left: 50%;
|
|
178
205
|
}
|
|
179
206
|
}
|
|
180
207
|
&.ard-tooltip-top {
|
|
181
208
|
.ard-slider-tooltip {
|
|
182
|
-
bottom: 0.5em;
|
|
209
|
+
bottom: var(--ard-slider-label-offset, 0.5em);
|
|
210
|
+
transform-origin: center bottom;
|
|
183
211
|
|
|
184
212
|
&::before {
|
|
185
213
|
bottom: 0;
|
|
186
|
-
border-top-color: var(--ard-
|
|
214
|
+
border-top-color: var(--ard-slider-label-bg);
|
|
187
215
|
transform: translate(-50%, 100%);
|
|
188
216
|
}
|
|
189
217
|
}
|
|
190
218
|
}
|
|
191
219
|
&.ard-tooltip-bottom {
|
|
192
220
|
.ard-slider-tooltip {
|
|
193
|
-
top: 0.5em;
|
|
221
|
+
top: var(--ard-slider-label-offset, 0.5em);
|
|
222
|
+
transform-origin: center top;
|
|
194
223
|
|
|
195
224
|
&::before {
|
|
196
225
|
top: 0;
|
|
197
|
-
border-bottom-color: var(--ard-
|
|
226
|
+
border-bottom-color: var(--ard-slider-label-bg);
|
|
198
227
|
transform: translate(-50%, -100%);
|
|
199
228
|
}
|
|
200
229
|
}
|
|
@@ -216,9 +245,17 @@
|
|
|
216
245
|
}
|
|
217
246
|
}
|
|
218
247
|
//make a way to force-show a tooltip
|
|
219
|
-
.ard-slider-handle .ard-slider-tooltip-wrapper
|
|
220
|
-
.ard-slider-tooltip {
|
|
248
|
+
.ard-slider-handle .ard-slider-tooltip-wrapper {
|
|
249
|
+
.ard-slider-tooltip.ard-tooltip-always {
|
|
221
250
|
transform: scale(1) !important;
|
|
222
251
|
}
|
|
223
252
|
}
|
|
224
253
|
}
|
|
254
|
+
.ard-body-slider-handle-grabbed {
|
|
255
|
+
cursor: grabbing !important;
|
|
256
|
+
|
|
257
|
+
* {
|
|
258
|
+
cursor: grabbing !important;
|
|
259
|
+
pointer-events: none !important;
|
|
260
|
+
}
|
|
261
|
+
}
|
|
@@ -1,6 +1,25 @@
|
|
|
1
1
|
@use './coloring' as CM;
|
|
2
2
|
@use './mixins' as M;
|
|
3
|
-
|
|
3
|
+
|
|
4
|
+
// the variables are commented out intentionally
|
|
5
|
+
// read more in docs/dev/css-variables.md
|
|
6
|
+
:root {
|
|
7
|
+
--ard-tabber-tab-height: 2.5em;
|
|
8
|
+
--ard-tabber-tab-font-size: 0.875rem;
|
|
9
|
+
--ard-tabber-tab-font-weight: 500;
|
|
10
|
+
--ard-tabber-tab-border: none;
|
|
11
|
+
--ard-tabber-tab-background: none;
|
|
12
|
+
--ard-tabber-tab-padding: 0 1.5rem;
|
|
13
|
+
--ard-tabber-tab-gap: 0;
|
|
14
|
+
--ard-tabber-tab-content-gap: 0.375rem;
|
|
15
|
+
--ard-tabber-separator-border: 1px solid var(--ard-detail-ultralight, rgba(0, 0, 0, 12%));
|
|
16
|
+
// --ard-tabber-tab-overlay-color: ;
|
|
17
|
+
--ard-tabber-tab-hover-overlay-opacity: 4%;
|
|
18
|
+
--ard-tabber-tab-active-overlay-opacity: 12%;
|
|
19
|
+
--ard-tabber-tab-focus-visible-overlay-opacity: 18%;
|
|
20
|
+
--ard-tabber-tab-disabled-overlay-opacity: 12%;
|
|
21
|
+
--ard-tabber-tab-disabled-opacity: 12%;
|
|
22
|
+
}
|
|
4
23
|
|
|
5
24
|
ard-tabber {
|
|
6
25
|
max-width: 100%;
|
|
@@ -13,13 +32,14 @@ ard-tabber {
|
|
|
13
32
|
display: flex;
|
|
14
33
|
flex-direction: column;
|
|
15
34
|
align-items: stretch;
|
|
16
|
-
font-family:
|
|
35
|
+
font-family: var(--ard-font-family);
|
|
17
36
|
|
|
18
37
|
.ard-tabber-tabs {
|
|
19
38
|
max-width: 100%;
|
|
20
39
|
display: flex;
|
|
21
40
|
flex-wrap: wrap;
|
|
22
|
-
|
|
41
|
+
gap: var(--ard-tabber-tab-gap, 0);
|
|
42
|
+
border-bottom: var(--ard-tabber-separator-border, 1px solid var(--ard-detail-ultralight, rgba(0, 0, 0, 12%)));
|
|
23
43
|
|
|
24
44
|
&.ard-tab-align-left {
|
|
25
45
|
justify-content: left;
|
|
@@ -39,37 +59,44 @@ ard-tabber {
|
|
|
39
59
|
}
|
|
40
60
|
|
|
41
61
|
.ard-tab-button {
|
|
42
|
-
height: 2.5em;
|
|
43
|
-
font-size: 0.875rem;
|
|
44
|
-
font-weight: 500;
|
|
62
|
+
height: var(--ard-tabber-tab-height, 2.5em);
|
|
63
|
+
font-size: var(--ard-tabber-tab-font-size, 0.875rem);
|
|
64
|
+
font-weight: var(--ard-tabber-tab-font-weight, 500);
|
|
45
65
|
position: relative;
|
|
46
|
-
border: none;
|
|
47
|
-
background: none;
|
|
48
|
-
padding: 0 1.5rem;
|
|
66
|
+
border: var(--ard-tabber-tab-border, none);
|
|
67
|
+
background: var(--ard-tabber-tab-background, none);
|
|
68
|
+
padding: var(--ard-tabber-tab-padding, 0 1.5rem);
|
|
49
69
|
cursor: pointer;
|
|
50
70
|
outline: none;
|
|
51
71
|
font-family: inherit;
|
|
52
72
|
|
|
53
73
|
.ard-focus-overlay {
|
|
54
74
|
@include M.focus-overlay();
|
|
55
|
-
background:
|
|
75
|
+
background: var(--ard-tabber-tab-overlay-color, var(--ard-bg-alt, black));
|
|
76
|
+
}
|
|
77
|
+
.ard-button-content {
|
|
78
|
+
display: flex;
|
|
79
|
+
align-items: center;
|
|
80
|
+
justify-content: center;
|
|
81
|
+
height: 100%;
|
|
82
|
+
gap: var(--ard-tabber-tab-content-gap, 0.375rem);
|
|
56
83
|
}
|
|
57
84
|
|
|
58
85
|
&:hover,
|
|
59
86
|
&:focus {
|
|
60
87
|
.ard-focus-overlay {
|
|
61
|
-
opacity: 4
|
|
88
|
+
opacity: var(--ard-tabber-tab-hover-overlay-opacity, 4%);
|
|
62
89
|
}
|
|
63
90
|
}
|
|
64
91
|
&.ard-active,
|
|
65
92
|
&:active {
|
|
66
93
|
.ard-focus-overlay {
|
|
67
|
-
opacity: 12
|
|
94
|
+
opacity: var(--ard-tabber-tab-active-overlay-opacity, 12%);
|
|
68
95
|
}
|
|
69
96
|
}
|
|
70
97
|
&:focus-visible {
|
|
71
98
|
.ard-focus-overlay {
|
|
72
|
-
opacity: 18
|
|
99
|
+
opacity: var(--ard-tabber-tab-focus-visible-overlay-opacity, 18%);
|
|
73
100
|
}
|
|
74
101
|
}
|
|
75
102
|
|
|
@@ -84,6 +111,14 @@ ard-tabber {
|
|
|
84
111
|
background: var(--ard-cmpcl--bg-colored);
|
|
85
112
|
}
|
|
86
113
|
}
|
|
114
|
+
|
|
115
|
+
&.ard-tab-disabled {
|
|
116
|
+
opacity: var(--ard-tabber-tab-disabled-opacity);
|
|
117
|
+
|
|
118
|
+
.ard-focus-overlay {
|
|
119
|
+
opacity: var(--ard-tabber-tab-disabled-overlay-opacity, 18%);
|
|
120
|
+
}
|
|
121
|
+
}
|
|
87
122
|
}
|
|
88
123
|
}
|
|
89
124
|
}
|
|
@@ -161,15 +161,15 @@
|
|
|
161
161
|
}
|
|
162
162
|
|
|
163
163
|
//! color
|
|
164
|
-
--ard-_table-header-border:
|
|
165
|
-
--ard-_table-header-border-light:
|
|
164
|
+
// --ard-_table-header-border: ;
|
|
165
|
+
// --ard-_table-header-border-light: ;
|
|
166
166
|
--ard-_table-border: ARD.$border;
|
|
167
|
-
--ard-_table-header-background:
|
|
168
|
-
--ard-_table-header-background-light:
|
|
169
|
-
--ard-_table-header-color:
|
|
170
|
-
--ard-_table-header-color-on-bg:
|
|
171
|
-
--ard-_table-overlay:
|
|
172
|
-
--ard-_table-overlay-colorless:
|
|
167
|
+
// --ard-_table-header-background: ;
|
|
168
|
+
// --ard-_table-header-background-light: ;
|
|
169
|
+
// --ard-_table-header-color: ;
|
|
170
|
+
// --ard-_table-header-color-on-bg: ;
|
|
171
|
+
// --ard-_table-overlay: ;
|
|
172
|
+
// --ard-_table-overlay-colorless: ;
|
|
173
173
|
|
|
174
174
|
//! appearances
|
|
175
175
|
&.ard-appearance-strong {
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { InjectionToken, Provider } from '@angular/core';
|
|
2
|
-
export interface ArdTabDefaults {
|
|
3
|
-
disabled: boolean;
|
|
4
|
-
}
|
|
5
|
-
export declare const ARD_TAB_DEFAULTS: InjectionToken<ArdTabDefaults>;
|
|
6
|
-
export declare function provideTabDefaults(config: Partial<ArdTabDefaults>): Provider;
|