@ardium-ui/ui 5.0.0-alpha.9 → 5.0.0-alpha.91
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 +5065 -2572
- package/fesm2022/ardium-ui-ui.mjs.map +1 -1
- package/lib/_internal/boolean-component.d.ts +13 -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 +21 -21
- 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 +8 -9
- 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/checkbox.component.d.ts +5 -2
- package/lib/checkbox/checkbox.types.d.ts +2 -0
- 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 +5 -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 -3
- package/lib/divider/divider.defaults.d.ts +5 -0
- package/lib/divider/divider.directive.d.ts +18 -0
- package/lib/divider/divider.module.d.ts +3 -2
- package/lib/divider/divider.types.d.ts +5 -0
- package/lib/divider/index.d.ts +2 -0
- package/lib/dropdown-panel/dropdown-panel.component.d.ts +2 -1
- package/lib/dropdown-panel/dropdown-panel.types.d.ts +1 -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 +2 -0
- package/lib/form-field/label/label.component.d.ts +3 -2
- package/lib/form-field-frame/form-field-frame.component.d.ts +5 -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 +9 -4
- package/lib/inputs/autocomplete-input/autocomplete-input.component.d.ts +5 -4
- package/lib/inputs/date-input/abstract-date-input.d.ts +110 -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 +30 -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 +45 -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 -5
- package/lib/inputs/input-types.d.ts +9 -0
- package/lib/inputs/input-utils.d.ts +13 -2
- package/lib/inputs/number-input/number-input.component.d.ts +20 -13
- package/lib/inputs/number-input/number-input.defaults.d.ts +6 -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/number-input/number-input.types.d.ts +6 -0
- package/lib/inputs/password-input/password-input.component.d.ts +6 -5
- 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/radio/radio/radio.component.d.ts +8 -3
- package/lib/radio/radio-group.component.d.ts +2 -2
- package/lib/search-functions.d.ts +1 -1
- package/lib/segment/segment.component.d.ts +6 -5
- package/lib/select/select.component.d.ts +45 -39
- package/lib/select/select.defaults.d.ts +4 -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/slide-toggle/slide-toggle.component.d.ts +2 -0
- package/lib/slider/abstract-slider.d.ts +37 -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/snackbar/snackbar-ref.d.ts +37 -4
- package/lib/snackbar/snackbar.service.d.ts +27 -0
- package/lib/snackbar/snackbar.types.d.ts +36 -0
- 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/star/star-button/star-button.component.d.ts +4 -1
- package/lib/star/star-button/star-button.types.d.ts +1 -0
- package/lib/tabber/index.d.ts +2 -1
- package/lib/tabber/tab/tab.component.d.ts +16 -8
- package/lib/tabber/tabber.component.d.ts +25 -9
- package/lib/tabber/tabber.defaults.d.ts +2 -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/alignment.types.d.ts +7 -1
- package/lib/types/item-storage.types.d.ts +29 -18
- package/lib/types/theming.types.d.ts +1 -0
- package/package.json +3 -2
- package/prebuilt-themes/default/badge.css +234 -205
- package/prebuilt-themes/default/badge.css.map +1 -1
- package/prebuilt-themes/default/buttons/button.css +324 -301
- package/prebuilt-themes/default/buttons/button.css.map +1 -1
- package/prebuilt-themes/default/buttons/fab.css +317 -299
- package/prebuilt-themes/default/buttons/fab.css.map +1 -1
- package/prebuilt-themes/default/buttons/icon-button.css +299 -287
- package/prebuilt-themes/default/buttons/icon-button.css.map +1 -1
- package/prebuilt-themes/default/calendar.css +390 -308
- package/prebuilt-themes/default/calendar.css.map +1 -1
- package/prebuilt-themes/default/card.css +151 -127
- package/prebuilt-themes/default/card.css.map +1 -1
- package/prebuilt-themes/default/checkbox-list.css +89 -62
- package/prebuilt-themes/default/checkbox-list.css.map +1 -1
- package/prebuilt-themes/default/checkbox.css +349 -362
- package/prebuilt-themes/default/checkbox.css.map +1 -1
- package/prebuilt-themes/default/chips.css +412 -359
- package/prebuilt-themes/default/chips.css.map +1 -1
- package/prebuilt-themes/default/color-display.css +34 -26
- package/prebuilt-themes/default/color-display.css.map +1 -1
- package/prebuilt-themes/default/color-picker.css +105 -103
- package/prebuilt-themes/default/color-picker.css.map +1 -1
- package/prebuilt-themes/default/core.css +108 -86
- package/prebuilt-themes/default/core.css.map +1 -1
- package/prebuilt-themes/default/dialog.css +19 -15
- package/prebuilt-themes/default/dialog.css.map +1 -1
- package/prebuilt-themes/default/divider.css +84 -8
- package/prebuilt-themes/default/divider.css.map +1 -1
- package/prebuilt-themes/default/dropdown-panel.css +42 -34
- package/prebuilt-themes/default/dropdown-panel.css.map +1 -1
- package/prebuilt-themes/default/file-drop-area.css +329 -276
- package/prebuilt-themes/default/file-drop-area.css.map +1 -1
- package/prebuilt-themes/default/form-field-frame.css +102 -98
- package/prebuilt-themes/default/form-field-frame.css.map +1 -1
- package/prebuilt-themes/default/form-field.css +148 -118
- package/prebuilt-themes/default/form-field.css.map +1 -1
- package/prebuilt-themes/default/inputs/autocomplete-input.css +183 -132
- package/prebuilt-themes/default/inputs/autocomplete-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/color-input.css +99 -137
- package/prebuilt-themes/default/inputs/color-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/date-input.css +132 -63
- package/prebuilt-themes/default/inputs/date-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/digit-input.css +120 -110
- package/prebuilt-themes/default/inputs/digit-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/file-input.css +385 -325
- package/prebuilt-themes/default/inputs/file-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/hex-input.css +150 -117
- package/prebuilt-themes/default/inputs/hex-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/input.css +137 -107
- package/prebuilt-themes/default/inputs/input.css.map +1 -1
- package/prebuilt-themes/default/inputs/number-input.css +214 -164
- package/prebuilt-themes/default/inputs/number-input.css.map +1 -1
- package/prebuilt-themes/default/inputs/password-input.css +120 -71
- package/prebuilt-themes/default/inputs/password-input.css.map +1 -1
- package/prebuilt-themes/default/kbd-shortcut.css +14 -9
- package/prebuilt-themes/default/kbd-shortcut.css.map +1 -1
- package/prebuilt-themes/default/kbd.css +26 -15
- package/prebuilt-themes/default/kbd.css.map +1 -1
- package/prebuilt-themes/default/modal.css +96 -71
- package/prebuilt-themes/default/modal.css.map +1 -1
- package/prebuilt-themes/default/progress-bar.css +250 -228
- package/prebuilt-themes/default/progress-bar.css.map +1 -1
- package/prebuilt-themes/default/progress-circle.css +178 -164
- package/prebuilt-themes/default/progress-circle.css.map +1 -1
- package/prebuilt-themes/default/radio.css +246 -223
- package/prebuilt-themes/default/radio.css.map +1 -1
- package/prebuilt-themes/default/segment.css +432 -414
- package/prebuilt-themes/default/segment.css.map +1 -1
- package/prebuilt-themes/default/select.css +302 -270
- package/prebuilt-themes/default/select.css.map +1 -1
- package/prebuilt-themes/default/slide-toggle.css +319 -261
- package/prebuilt-themes/default/slide-toggle.css.map +1 -1
- package/prebuilt-themes/default/slider.css +399 -351
- package/prebuilt-themes/default/slider.css.map +1 -1
- package/prebuilt-themes/default/snackbar.css +189 -169
- package/prebuilt-themes/default/snackbar.css.map +1 -1
- package/prebuilt-themes/default/spinner.css +161 -148
- package/prebuilt-themes/default/spinner.css.map +1 -1
- package/prebuilt-themes/default/stars.css +271 -246
- package/prebuilt-themes/default/stars.css.map +1 -1
- package/prebuilt-themes/default/tabber.css +250 -207
- package/prebuilt-themes/default/tabber.css.map +1 -1
- package/prebuilt-themes/default/table-pagination.css +57 -45
- package/prebuilt-themes/default/table-pagination.css.map +1 -1
- package/prebuilt-themes/default/table.css +464 -432
- package/prebuilt-themes/default/table.css.map +1 -1
- package/public-api.d.ts +2 -1
- package/themes/_variables.scss +2 -1
- package/themes/default/_coloring.scss +7 -0
- package/themes/default/_mixins.scss +5 -5
- package/themes/default/badge.scss +115 -80
- package/themes/default/buttons/_button-mixins.scss +43 -33
- package/themes/default/buttons/button.scss +90 -63
- package/themes/default/buttons/fab.scss +74 -49
- package/themes/default/buttons/icon-button.scss +70 -45
- package/themes/default/calendar.scss +257 -163
- package/themes/default/card.scss +167 -121
- package/themes/default/checkbox-list.scss +90 -62
- package/themes/default/checkbox.scss +64 -91
- package/themes/default/chips.scss +203 -143
- package/themes/default/color-display.scss +40 -28
- package/themes/default/color-picker.scss +95 -93
- package/themes/default/core.scss +123 -97
- package/themes/default/dialog.scss +22 -13
- package/themes/default/divider.scss +109 -7
- package/themes/default/dropdown-panel.scss +49 -34
- package/themes/default/file-drop-area.scss +197 -138
- package/themes/default/form-field-frame.scss +73 -63
- package/themes/default/form-field.scss +136 -98
- package/themes/default/inputs/_shared.scss +52 -12
- package/themes/default/inputs/autocomplete-input.scss +102 -31
- package/themes/default/inputs/color-input.scss +34 -32
- package/themes/default/inputs/date-input.scss +88 -20
- package/themes/default/inputs/digit-input.scss +103 -79
- package/themes/default/inputs/file-input.scss +160 -81
- package/themes/default/inputs/hex-input.scss +68 -16
- package/themes/default/inputs/input.scss +55 -6
- package/themes/default/inputs/number-input.scss +167 -92
- package/themes/default/inputs/password-input.scss +100 -29
- package/themes/default/kbd-shortcut.scss +16 -8
- package/themes/default/kbd.scss +35 -16
- package/themes/default/modal.scss +109 -73
- package/themes/default/progress-bar.scss +126 -102
- package/themes/default/progress-circle.scss +49 -41
- package/themes/default/radio.scss +110 -87
- package/themes/default/segment.scss +282 -267
- package/themes/default/select.scss +255 -197
- package/themes/default/slide-toggle.scss +193 -116
- package/themes/default/slider.scss +230 -187
- package/themes/default/snackbar.scss +52 -32
- package/themes/default/spinner.scss +24 -14
- package/themes/default/stars.scss +99 -68
- package/themes/default/tabber.scss +109 -67
- package/themes/default/table-pagination.scss +60 -44
- package/themes/default/table.scss +379 -343
- package/lib/statebox/index.d.ts +0 -4
- package/lib/statebox/statebox.component.d.ts +0 -26
- package/lib/statebox/statebox.defaults.d.ts +0 -10
- package/lib/statebox/statebox.module.d.ts +0 -8
- package/lib/statebox/statebox.types.d.ts +0 -26
- 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/prebuilt-themes/default/inputs/search-bar.css +0 -118
- package/prebuilt-themes/default/inputs/search-bar.css.map +0 -1
- package/prebuilt-themes/default/statebox.css +0 -235
- package/prebuilt-themes/default/statebox.css.map +0 -1
- package/themes/default/calendar-OLD.scss +0 -183
- package/themes/default/inputs/search-bar.scss +0 -19
- package/themes/default/statebox.scss +0 -109
|
@@ -3,202 +3,296 @@
|
|
|
3
3
|
@use './coloring.scss' as CM;
|
|
4
4
|
@use '../variables' as ARD;
|
|
5
5
|
|
|
6
|
-
|
|
6
|
+
@layer ard-ui {
|
|
7
|
+
// the variables are commented out intentionally
|
|
8
|
+
// read more in docs/dev/css-variables.md
|
|
9
|
+
:root {
|
|
10
|
+
--ard-calendar-grid-size: 2.25rem;
|
|
11
|
+
--ard-calendar-grid-gap: 0.25rem;
|
|
12
|
+
--ard-calendar-padding: 0.375rem;
|
|
13
|
+
--ard-calendar-header-padding: 0.375rem 0 0.75rem 0;
|
|
14
|
+
--ard-calendar-weekday-padding: 0 0 0.5rem 0;
|
|
15
|
+
--ard-calendar-weekday-font-size: 0.875rem;
|
|
16
|
+
--ard-calendar-weekday-font-weight: 500;
|
|
17
|
+
// --ard-calendar-weekday-color: ;
|
|
18
|
+
--ard-calendar-floating-month-transform: none;
|
|
19
|
+
--ard-calendar-floating-month-padding: 0 0 0 1rem;
|
|
20
|
+
--ard-calendar-floating-month-font-size: 0.875rem;
|
|
21
|
+
--ard-calendar-floating-month-font-weight: 500;
|
|
22
|
+
// --ard-calendar-floating-month-color: ;
|
|
23
|
+
--ard-calendar-entry-padding: 0;
|
|
24
|
+
--ard-calendar-entry-font-size: 0.875rem;
|
|
25
|
+
--ard-calendar-entry-font-weight: 400;
|
|
26
|
+
--ard-calendar-entry-border-radius: 9999px;
|
|
27
|
+
--ard-calendar-entry-range-overlay-border-width: 1px;
|
|
28
|
+
--ard-calendar-entry-range-overlay-border-style: dashed;
|
|
29
|
+
// --ard-calendar-entry-today-border-color: ;
|
|
30
|
+
--ard-calendar-entry-today-selected-border: 2px solid #{ARD.$bg};
|
|
31
|
+
--ard-calendar-entry-highlighted-overlay-opacity: 20%;
|
|
32
|
+
--ard-calendar-entry-selected-overlay-opacity: 100%;
|
|
33
|
+
--ard-calendar-entry-selected-range-overlay-opacity: 12%;
|
|
34
|
+
--ard-calendar-entry-disabled-overlay-opacity: 50%;
|
|
35
|
+
--ard-calendar-entry-disabled-highlighted-overlay-opacity: 15%;
|
|
36
|
+
--ard-calendar-entry-disabled-opacity: 50%;
|
|
37
|
+
}
|
|
7
38
|
|
|
8
|
-
.ard-calendar {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
39
|
+
.ard-calendar {
|
|
40
|
+
@include CM.typeColors();
|
|
41
|
+
min-width: calc(var(--ard-calendar-grid-size) * 7 + var(--ard-calendar-grid-gap) * 6);
|
|
42
|
+
user-select: none;
|
|
43
|
+
padding: var(--ard-calendar-padding, 0 0.375rem 0.375rem 0.375rem);
|
|
44
|
+
box-sizing: content-box;
|
|
12
45
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
46
|
+
//! top toolbar
|
|
47
|
+
.ard-calendar__top-toolbar {
|
|
48
|
+
.ard-calendar__calendar-header {
|
|
49
|
+
display: grid;
|
|
50
|
+
grid-template-columns: 1fr 5fr 1fr;
|
|
51
|
+
align-items: center;
|
|
52
|
+
justify-items: center;
|
|
53
|
+
width: 100%;
|
|
54
|
+
padding: var(--ard-calendar-header-padding, 0.75rem 0);
|
|
21
55
|
|
|
22
|
-
|
|
23
|
-
|
|
56
|
+
.ard-dropdown-arrow {
|
|
57
|
+
@include DA.dropdown-arrow();
|
|
58
|
+
}
|
|
24
59
|
}
|
|
25
60
|
}
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
//! weekdays
|
|
33
|
-
.ard-calendar__weekdays {
|
|
34
|
-
display: grid;
|
|
35
|
-
grid-template-columns: repeat(7, $grid-size);
|
|
36
|
-
align-items: center;
|
|
37
|
-
padding: 0 0.375rem 0.5rem 0.375rem;
|
|
38
|
-
|
|
39
|
-
.ard-calendar__weekday {
|
|
40
|
-
text-align: center;
|
|
41
|
-
font-size: 0.875rem;
|
|
42
|
-
font-weight: 500;
|
|
43
|
-
color: ARD.$text;
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//! days grid
|
|
47
|
-
.ard-calendar__days-grid {
|
|
48
|
-
padding: 0.375rem;
|
|
49
|
-
padding-top: 0;
|
|
50
|
-
display: grid;
|
|
51
|
-
grid-template-columns: repeat(7, $grid-size);
|
|
52
|
-
position: relative;
|
|
53
|
-
outline: none;
|
|
54
|
-
|
|
55
|
-
> * {
|
|
56
|
-
max-width: 100%;
|
|
57
|
-
box-sizing: border-box;
|
|
58
|
-
aspect-ratio: 1;
|
|
59
|
-
}
|
|
60
|
-
&.ard-reserve-top-row {
|
|
61
|
-
padding-top: $grid-size;
|
|
61
|
+
.ard-years-view {
|
|
62
|
+
.ard-dropdown-arrow {
|
|
63
|
+
rotate: 180deg;
|
|
64
|
+
}
|
|
62
65
|
}
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
box-sizing: border-box;
|
|
69
|
-
aspect-ratio: 7;
|
|
70
|
-
padding-left: 1rem;
|
|
71
|
-
display: flex;
|
|
66
|
+
//! weekdays
|
|
67
|
+
.ard-calendar__weekdays {
|
|
68
|
+
display: grid;
|
|
69
|
+
grid-template-columns: repeat(7, var(--ard-calendar-grid-size, 2.25rem));
|
|
70
|
+
gap: var(--ard-calendar-grid-gap, 0.25rem);
|
|
72
71
|
align-items: center;
|
|
73
|
-
|
|
74
|
-
font-weight: 500;
|
|
75
|
-
color: ARD.$text3;
|
|
76
|
-
letter-spacing: 0.5px;
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
//! years grid
|
|
80
|
-
.ard-calendar__simple-grid {
|
|
81
|
-
border-top: 1px solid ARD.$detail-ultralight;
|
|
82
|
-
margin-top: 0.25rem;
|
|
83
|
-
display: grid;
|
|
84
|
-
grid-template-columns: repeat(4, 1fr);
|
|
85
|
-
grid-template-rows: repeat(6, $grid-size);
|
|
86
|
-
position: relative;
|
|
87
|
-
outline: none;
|
|
72
|
+
padding: var(--ard-calendar-weekday-padding, 0 0 0.5rem 0);
|
|
88
73
|
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
74
|
+
.ard-calendar__weekday {
|
|
75
|
+
text-align: center;
|
|
76
|
+
font-size: var(--ard-calendar-weekday-font-size, 0.875rem);
|
|
77
|
+
font-weight: var(--ard-calendar-weekday-font-weight, 500);
|
|
78
|
+
color: var(--ard-calendar-weekday-color, #{ARD.$text});
|
|
79
|
+
}
|
|
95
80
|
}
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
.ard-calendar__entry {
|
|
99
|
-
z-index: 1;
|
|
100
|
-
cursor: pointer;
|
|
101
|
-
outline: none;
|
|
102
|
-
padding: 0.125rem;
|
|
103
|
-
|
|
104
|
-
.ard-calendar__entry-button {
|
|
105
|
-
width: 100%;
|
|
106
|
-
height: 100%;
|
|
81
|
+
//! days grid
|
|
82
|
+
.ard-calendar__days-grid {
|
|
107
83
|
padding: 0;
|
|
108
|
-
display:
|
|
109
|
-
|
|
110
|
-
justify-content: center;
|
|
111
|
-
font-size: 0.875rem;
|
|
112
|
-
background: transparent;
|
|
113
|
-
border: 1px solid transparent;
|
|
114
|
-
border-radius: 9999px;
|
|
84
|
+
display: grid;
|
|
85
|
+
grid-template-columns: repeat(7, var(--ard-calendar-grid-size));
|
|
115
86
|
position: relative;
|
|
116
|
-
|
|
87
|
+
outline: none;
|
|
88
|
+
gap: var(--ard-calendar-grid-gap, 0.25rem);
|
|
117
89
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
border-color 0.1s ease,
|
|
125
|
-
opacity 0.1s ease;
|
|
90
|
+
> * {
|
|
91
|
+
width: var(--ard-calendar-grid-size);
|
|
92
|
+
max-width: var(--ard-calendar-grid-size);
|
|
93
|
+
height: var(--ard-calendar-grid-size);
|
|
94
|
+
max-height: var(--ard-calendar-grid-size);
|
|
95
|
+
box-sizing: border-box;
|
|
126
96
|
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
97
|
+
&.ard-reserve-top-row {
|
|
98
|
+
padding-top: calc(var(--ard-calendar-grid-size) + var(--ard-calendar-grid-gap));
|
|
99
|
+
}
|
|
100
|
+
.ard-calendar__floating-month {
|
|
101
|
+
position: absolute;
|
|
102
|
+
top: 0;
|
|
103
|
+
left: 0;
|
|
104
|
+
transform: var(--ard-calendar-floating-month-transform, none);
|
|
105
|
+
width: 100%;
|
|
106
|
+
box-sizing: border-box;
|
|
107
|
+
aspect-ratio: 7;
|
|
108
|
+
padding: var(--ard-calendar-floating-month-padding, 0 0 0 1rem);
|
|
109
|
+
display: flex;
|
|
110
|
+
align-items: center;
|
|
111
|
+
font-size: var(--ard-calendar-floating-month-font-size, 0.875rem);
|
|
112
|
+
font-weight: var(--ard-calendar-floating-month-font-weight, 500);
|
|
113
|
+
color: var(--ard-calendar-floating-month-color, #{ARD.$text3});
|
|
114
|
+
letter-spacing: 0.5px;
|
|
134
115
|
}
|
|
135
116
|
}
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
117
|
+
//! years grid
|
|
118
|
+
.ard-calendar__simple-grid {
|
|
119
|
+
border-top: 1px solid ARD.$detail-ultralight;
|
|
120
|
+
display: grid;
|
|
121
|
+
grid-template-columns: repeat(4, 1fr);
|
|
122
|
+
grid-template-rows: repeat(6, var(--ard-calendar-grid-size));
|
|
123
|
+
position: relative;
|
|
124
|
+
outline: none;
|
|
125
|
+
padding: 0;
|
|
126
|
+
gap: var(--ard-calendar-grid-gap, 0.25rem);
|
|
127
|
+
|
|
128
|
+
> * {
|
|
129
|
+
max-width: 100%;
|
|
130
|
+
box-sizing: border-box;
|
|
139
131
|
}
|
|
140
132
|
}
|
|
141
|
-
|
|
133
|
+
//! common in both grids
|
|
134
|
+
.ard-calendar__entry {
|
|
135
|
+
z-index: 1;
|
|
136
|
+
cursor: pointer;
|
|
137
|
+
outline: none;
|
|
138
|
+
padding: var(--ard-calendar-entry-padding, 0);
|
|
139
|
+
box-sizing: border-box;
|
|
140
|
+
|
|
142
141
|
.ard-calendar__entry-button {
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
142
|
+
width: 100%;
|
|
143
|
+
height: 100%;
|
|
144
|
+
padding: 0;
|
|
145
|
+
display: flex;
|
|
146
|
+
align-items: center;
|
|
147
|
+
justify-content: center;
|
|
148
|
+
font-size: var(--ard-calendar-entry-font-size, 0.875rem);
|
|
149
|
+
font-weight: var(--ard-calendar-entry-font-weight, 400);
|
|
150
|
+
background: transparent;
|
|
151
|
+
border: 1px solid transparent;
|
|
152
|
+
border-radius: var(--ard-calendar-entry-border-radius, 9999px);
|
|
153
|
+
position: relative;
|
|
154
|
+
cursor: pointer;
|
|
155
|
+
outline: none;
|
|
156
|
+
box-sizing: border-box;
|
|
148
157
|
|
|
149
|
-
&.ard-calendar-today {
|
|
150
158
|
.ard-focus-overlay {
|
|
151
|
-
|
|
159
|
+
@include DM.focus-overlay();
|
|
160
|
+
z-index: -1;
|
|
161
|
+
background: var(--ard-cmpcl--overlay);
|
|
162
|
+
transition:
|
|
163
|
+
border-color 0.1s ease,
|
|
164
|
+
opacity 0.1s ease;
|
|
165
|
+
}
|
|
166
|
+
.ard-range-overlay {
|
|
167
|
+
@include DM.focus-overlay();
|
|
168
|
+
z-index: -1;
|
|
169
|
+
opacity: 1;
|
|
170
|
+
left: calc(var(--ard-calendar-grid-gap, 0.25rem) / -2 - 1px);
|
|
171
|
+
right: calc(var(--ard-calendar-grid-gap, 0.25rem) / -2 - 1px);
|
|
172
|
+
border: var(--ard-calendar-entry-range-overlay-border-width, 1px)
|
|
173
|
+
var(--ard-calendar-entry-range-overlay-border-style, dashed) transparent;
|
|
174
|
+
background: transparent;
|
|
175
|
+
transition: none;
|
|
176
|
+
border-radius: 0;
|
|
152
177
|
}
|
|
153
178
|
}
|
|
154
|
-
|
|
155
|
-
&.ard-calendar__entry-disabled {
|
|
156
|
-
pointer-events: none;
|
|
157
|
-
opacity: 50%;
|
|
158
|
-
|
|
159
|
-
.ard-calendar__entry-button {
|
|
179
|
+
&.ard-calendar__entry-empty {
|
|
160
180
|
cursor: default;
|
|
161
181
|
}
|
|
162
|
-
|
|
163
|
-
|
|
182
|
+
&.ard-calendar-today {
|
|
183
|
+
.ard-calendar__entry-button {
|
|
184
|
+
border-color: var(--ard-calendar-entry-today-border-color, #{ARD.$detail});
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
&.ard-calendar__entry-highlighted-in-range {
|
|
188
|
+
.ard-range-overlay {
|
|
189
|
+
opacity: 1;
|
|
190
|
+
border-top-color: var(--ard-cmpcl--bg-colored);
|
|
191
|
+
border-bottom-color: var(--ard-cmpcl--bg-colored);
|
|
192
|
+
}
|
|
193
|
+
&.ard-calendar__entry-selected-start {
|
|
194
|
+
.ard-range-overlay {
|
|
195
|
+
border-left-color: var(--ard-cmpcl--bg-colored);
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
&.ard-calendar__entry-selected-end,
|
|
199
|
+
&.ard-calendar__entry-highlighted {
|
|
200
|
+
.ard-range-overlay {
|
|
201
|
+
border-right-color: var(--ard-cmpcl--bg-colored);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
164
204
|
}
|
|
165
205
|
&.ard-calendar__entry-highlighted {
|
|
166
206
|
.ard-focus-overlay {
|
|
167
|
-
opacity:
|
|
207
|
+
opacity: var(--ard-calendar-entry-highlighted-overlay-opacity, 20%);
|
|
168
208
|
}
|
|
169
209
|
}
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
210
|
+
&.ard-calendar__entry-selected-start {
|
|
211
|
+
.ard-range-overlay {
|
|
212
|
+
left: 0;
|
|
213
|
+
border-top-left-radius: var(--ard-calendar-entry-border-radius);
|
|
214
|
+
border-bottom-left-radius: var(--ard-calendar-entry-border-radius);
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
&.ard-calendar__entry-selected-end,
|
|
218
|
+
&.ard-calendar__entry-highlighted:not(.ard-calendar__entry-selected-in-range) {
|
|
219
|
+
.ard-range-overlay {
|
|
220
|
+
right: 0;
|
|
221
|
+
border-top-right-radius: var(--ard-calendar-entry-border-radius);
|
|
222
|
+
border-bottom-right-radius: var(--ard-calendar-entry-border-radius);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
&.ard-calendar__entry-selected-in-range {
|
|
226
|
+
.ard-range-overlay {
|
|
227
|
+
opacity: var(--ard-calendar-entry-selected-range-overlay-opacity, 12%);
|
|
228
|
+
background-color: var(--ard-cmpcl--bg-colored);
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
&.ard-calendar__entry-selected {
|
|
232
|
+
.ard-calendar__entry-button {
|
|
233
|
+
color: var(--ard-cmpcl--on-bg-colored);
|
|
234
|
+
}
|
|
235
|
+
.ard-focus-overlay {
|
|
236
|
+
opacity: var(--ard-calendar-entry-selected-overlay-opacity, 100%);
|
|
237
|
+
background: var(--ard-cmpcl--bg-colored);
|
|
238
|
+
}
|
|
177
239
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
240
|
+
&.ard-calendar-today {
|
|
241
|
+
.ard-focus-overlay {
|
|
242
|
+
border: var(--ard-calendar-entry-today-selected-border, 2px solid #{ARD.$bg});
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
&.ard-calendar__entry-disabled {
|
|
247
|
+
pointer-events: none;
|
|
248
|
+
opacity: var(--ard-calendar-entry-disabled-overlay-opacity, 50%);
|
|
249
|
+
|
|
250
|
+
.ard-calendar__entry-button {
|
|
251
|
+
cursor: default;
|
|
252
|
+
}
|
|
253
|
+
.ard-focus-overlay {
|
|
254
|
+
background: var(--ard-cmpcl--overlay);
|
|
255
|
+
}
|
|
256
|
+
&.ard-calendar__entry-highlighted {
|
|
257
|
+
.ard-focus-overlay {
|
|
258
|
+
opacity: var(--ard-calendar-entry-disabled-highlighted-overlay-opacity, 15%);
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
}
|
|
183
262
|
}
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
263
|
+
.ard-years-view,
|
|
264
|
+
.ard-months-view {
|
|
265
|
+
.ard-calendar__entry {
|
|
266
|
+
.ard-calendar__entry-button {
|
|
267
|
+
.ard-range-overlay {
|
|
268
|
+
left: calc(-var(--ard-calendar-grid-gap) / 2 - 1px);
|
|
269
|
+
right: calc(-var(--ard-calendar-grid-gap) / 2 - 1px);
|
|
270
|
+
border: none;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&.ard-calendar__entry-selected-start {
|
|
275
|
+
.ard-range-overlay {
|
|
276
|
+
left: 0;
|
|
277
|
+
}
|
|
278
|
+
}
|
|
279
|
+
&.ard-calendar__entry-selected-end {
|
|
280
|
+
.ard-range-overlay {
|
|
281
|
+
right: 0;
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
}
|
|
191
285
|
}
|
|
192
286
|
}
|
|
193
|
-
|
|
194
|
-
.ard-
|
|
195
|
-
.ard-
|
|
196
|
-
|
|
197
|
-
|
|
287
|
+
.ard-readonly,
|
|
288
|
+
.ard-disabled {
|
|
289
|
+
.ard-calendar {
|
|
290
|
+
pointer-events: none;
|
|
291
|
+
}
|
|
198
292
|
}
|
|
199
|
-
|
|
200
|
-
.ard-
|
|
201
|
-
|
|
202
|
-
|
|
293
|
+
.ard-disabled {
|
|
294
|
+
.ard-calendar {
|
|
295
|
+
opacity: var(--ard-calendar-entry-disabled-opacity, 50%);
|
|
296
|
+
}
|
|
203
297
|
}
|
|
204
298
|
}
|