@design-factory/design-factory 15.2.2 → 16.0.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/README.md +17 -1
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.ttf +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.woff +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-Bold.woff2 +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/bold/AmadeusNeue-BoldItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.ttf +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.woff +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-Light.woff2 +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/light/AmadeusNeue-LightItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.ttf +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.woff +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-Medium.woff2 +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/medium/AmadeusNeue-MediumItalic.woff2 +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.ttf +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.woff +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-Regular.woff2 +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.ttf +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.woff +0 -0
- package/assets/fonts/amadeus-neue/regular/AmadeusNeue-RegularItalic.woff2 +0 -0
- package/design-factory-initial-branding.css +1 -0
- package/design-factory-initial-branding.scss +1 -0
- package/design-factory.css +1 -3
- package/design-factory.scss +1 -0
- package/esm2022/lib/angular/accessibility/components/skip-links-container/skip-links-container.component.mjs +3 -3
- package/esm2022/lib/angular/df.module.mjs +102 -0
- package/esm2022/lib/angular/icon/amadeus-icon.mjs +2 -2
- package/esm2022/lib/angular/stepper/stepper.component.mjs +65 -0
- package/esm2022/lib/angular/stepper/stepper.directive.mjs +174 -0
- package/esm2022/lib/angular/stepper/stepper.module.mjs +17 -0
- package/esm2022/lib/angular/stepper/stepper.service.mjs +213 -0
- package/esm2022/lib/index.mjs +9 -94
- package/fesm2022/design-factory.mjs +1854 -1394
- package/fesm2022/design-factory.mjs.map +1 -1
- package/lib/angular/df.module.d.ts +26 -0
- package/lib/angular/stepper/stepper.component.d.ts +31 -0
- package/lib/angular/stepper/stepper.directive.d.ts +37 -0
- package/lib/angular/stepper/stepper.module.d.ts +8 -0
- package/lib/angular/stepper/stepper.service.d.ts +126 -0
- package/lib/index.d.ts +7 -22
- package/package.json +23 -4
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js +0 -1
- package/schematics/migrations/16_0_0/navbar-logo-dark/index.d.ts +9 -0
- package/schematics/migrations/16_0_0/navbar-logo-dark/index.js +43 -0
- package/schematics/migrations/16_0_0/revert-to-old-brand/index.d.ts +7 -0
- package/schematics/migrations/16_0_0/revert-to-old-brand/index.js +115 -0
- package/schematics/migrations/16_0_0/scss-var/files/removed.json +55 -0
- package/schematics/migrations/16_0_0/scss-var/files/renames.json +76 -0
- package/schematics/migrations/16_0_0/scss-var/index.d.ts +7 -0
- package/schematics/migrations/16_0_0/scss-var/index.js +57 -0
- package/schematics/migrations/16_0_0/stepper-classes/index.d.ts +13 -0
- package/schematics/migrations/16_0_0/stepper-classes/index.js +63 -0
- package/schematics/migrations/helpers.js +0 -1
- package/schematics/migrations/migration.json +23 -1
- package/schematics/migrations/utils/component-resource-collector.d.ts +44 -0
- package/schematics/migrations/utils/component-resource-collector.js +166 -0
- package/schematics/migrations/utils/project_tsconfig_paths.js +0 -1
- package/schematics/migrations/utils/style-updater.d.ts +9 -0
- package/schematics/migrations/utils/style-updater.js +38 -0
- package/schematics/migrations/utils/template-updater.d.ts +9 -0
- package/schematics/migrations/utils/template-updater.js +38 -0
- package/schematics/migrations/utils/typescript/compiler_host.js +0 -1
- package/schematics/migrations/utils/typescript/decorators.d.ts +22 -0
- package/schematics/migrations/utils/typescript/decorators.js +41 -0
- package/schematics/migrations/utils/typescript/functions.d.ts +14 -0
- package/schematics/migrations/utils/typescript/functions.js +20 -0
- package/schematics/migrations/utils/typescript/imports.d.ts +17 -0
- package/schematics/migrations/utils/typescript/imports.js +110 -0
- package/schematics/migrations/utils/typescript/line-mappings.d.ts +21 -0
- package/schematics/migrations/utils/typescript/line-mappings.js +75 -0
- package/schematics/migrations/utils/typescript/parse_tsconfig.js +0 -1
- package/schematics/migrations/utils/typescript/property-name.d.ts +18 -0
- package/schematics/migrations/utils/typescript/property-name.js +27 -0
- package/schematics/ng-add/index.js +0 -1
- package/schematics/ng-add/schema.js +0 -1
- package/styles/scss/_common.root.scss +37 -0
- package/styles/scss/_common.scss +3 -9
- package/styles/scss/_common.variables.scss +16 -6
- package/styles/scss/_variables.scss +0 -1
- package/styles/scss/bootstrap/_maps.scss +10 -9
- package/styles/scss/bootstrap/_mixins-override.scss +26 -0
- package/styles/scss/bootstrap/_variables.scss +927 -267
- package/styles/scss/components/accordion/_accordion.scss +31 -14
- package/styles/scss/components/accordion/_accordion.variables.scss +5 -5
- package/styles/scss/components/alert/_alert.scss +130 -228
- package/styles/scss/components/alert/_alert.variables.scss +22 -33
- package/styles/scss/components/badge/_badge.scss +130 -118
- package/styles/scss/components/badge/_badge.variables.scss +14 -8
- package/styles/scss/components/brand-color/_brand-color.mixins.scss +19 -4
- package/styles/scss/components/brand-color/_brand-color.scss +4 -6
- package/styles/scss/components/brand-color/_brand-color.variables.scss +1 -7
- package/styles/scss/components/brand-color/_brand-color_container.scss +28 -0
- package/styles/scss/components/breadcrumbs/_breadcrumbs.scss +77 -65
- package/styles/scss/components/breadcrumbs/_breadcrumbs.variables.scss +6 -4
- package/styles/scss/components/button/_button.scss +120 -55
- package/styles/scss/components/button/_button.variables.scss +18 -4
- package/styles/scss/components/button/_button_container.scss +9 -45
- package/styles/scss/components/card/_card.scss +90 -58
- package/styles/scss/components/card/_card.variables.scss +13 -13
- package/styles/scss/components/carousel/_carousel.scss +22 -23
- package/styles/scss/components/carousel/_carousel.variables.scss +2 -1
- package/styles/scss/components/checkbox/_checkbox.scss +14 -8
- package/styles/scss/components/checkbox/_checkbox.variables.scss +2 -2
- package/styles/scss/components/collapse/_collapse.scss +15 -7
- package/styles/scss/components/collapse/_collapse.variables.scss +3 -3
- package/styles/scss/components/datepicker/_datepicker.scss +178 -122
- package/styles/scss/components/datepicker/_datepicker.variables.scss +22 -15
- package/styles/scss/components/dropdown/_dropdown.mixins.scss +4 -4
- package/styles/scss/components/dropdown/_dropdown.scss +39 -19
- package/styles/scss/components/dropdown/_dropdown.variables.scss +4 -4
- package/styles/scss/components/fieldset/_fieldset.scss +4 -2
- package/styles/scss/components/fonts/_fonts-family.scss +112 -29
- package/styles/scss/components/fonts/_fonts.root.scss +27 -0
- package/styles/scss/components/fonts/_fonts.scss +25 -26
- package/styles/scss/components/fonts/_fonts.variables.scss +2 -2
- package/styles/scss/components/footer/_footer.scss +48 -18
- package/styles/scss/components/footer/_footer.variables.scss +4 -2
- package/styles/scss/components/form/_form.scss +69 -16
- package/styles/scss/components/form/_form.variables.scss +23 -3
- package/styles/scss/components/icon/_amadeus-icon.scss +2 -2
- package/styles/scss/components/icon/_amadeus-icon.variables.scss +1 -0
- package/styles/scss/components/inputs/_inputs.mixin.scss +8 -4
- package/styles/scss/components/inputs/_inputs.root.scss +8 -0
- package/styles/scss/components/inputs/_inputs.scss +159 -118
- package/styles/scss/components/inputs/_inputs.variables.scss +2 -1
- package/styles/scss/components/link/_link.mixins.scss +49 -49
- package/styles/scss/components/link/_link.scss +84 -22
- package/styles/scss/components/link/_link.variables.scss +6 -6
- package/styles/scss/components/list/_list.scss +10 -5
- package/styles/scss/components/list-group/_list-group.scss +54 -48
- package/styles/scss/components/list-group/_list-group.variables.scss +6 -14
- package/styles/scss/components/media/_media.scss +17 -9
- package/styles/scss/components/media/_media.variables.scss +2 -1
- package/styles/scss/components/modal/_modal.scss +88 -39
- package/styles/scss/components/modal/_modal.variables.scss +4 -5
- package/styles/scss/components/navbar/_navbar.scss +298 -115
- package/styles/scss/components/navbar/_navbar.variables.scss +29 -18
- package/styles/scss/components/pagination/_pagination.scss +68 -82
- package/styles/scss/components/pagination/_pagination.variables.scss +5 -8
- package/styles/scss/components/pagination/_pagination_container.scss +3 -0
- package/styles/scss/components/popover/_popover.mixin.scss +20 -33
- package/styles/scss/components/popover/_popover.scss +25 -7
- package/styles/scss/components/popover/_popover_container.scss +123 -74
- package/styles/scss/components/progressbar/_progressbar.scss +15 -7
- package/styles/scss/components/progressbar/_progressbar.variables.scss +3 -2
- package/styles/scss/components/radio/_radio.scss +19 -14
- package/styles/scss/components/rating/_rating.scss +41 -22
- package/styles/scss/components/rating/_rating.variables.scss +5 -5
- package/styles/scss/components/scrollspy/_scrollspy.scss +30 -13
- package/styles/scss/components/scrollspy/_scrollspy.variables.scss +2 -1
- package/styles/scss/components/select/_select.scss +232 -166
- package/styles/scss/components/select/_select.variables.scss +15 -15
- package/styles/scss/components/separator/_separator.scss +2 -1
- package/styles/scss/components/sidenav/_sidenav.scss +208 -135
- package/styles/scss/components/sidenav/_sidenav.variables.scss +19 -20
- package/styles/scss/components/skip-links/_skip-links.scss +31 -16
- package/styles/scss/components/skip-links/_skip-links.variables.scss +6 -6
- package/styles/scss/components/slider/_slider.scss +11 -10
- package/styles/scss/components/slider/_slider.variables.scss +8 -8
- package/styles/scss/components/speechbubble/_speechbubble.scss +50 -30
- package/styles/scss/components/speechbubble/_speechbubble.variables.scss +4 -2
- package/styles/scss/components/spinner/_spinner.scss +34 -29
- package/styles/scss/components/stepper/_stepper.mixins.scss +111 -151
- package/styles/scss/components/stepper/_stepper.scss +163 -69
- package/styles/scss/components/stepper/_stepper.variables.scss +23 -17
- package/styles/scss/components/table/_advancedtables.scss +50 -31
- package/styles/scss/components/table/_table.variables.scss +3 -2
- package/styles/scss/components/tabs/_tabs.scss +98 -49
- package/styles/scss/components/tabs/_tabs.variables.scss +11 -10
- package/styles/scss/components/toast/_toast.scss +136 -68
- package/styles/scss/components/toast/_toast.variables.scss +4 -4
- package/styles/scss/components/toggle/_toggle.scss +90 -44
- package/styles/scss/components/toggle/_toggle.variables.scss +7 -5
- package/styles/scss/components/typeahead/_typeahead.scss +18 -8
- package/styles/scss/components/typeahead/_typeahead.variables.scss +1 -1
- package/styles/scss/df-styles-namespace.scss +8 -11
- package/styles/scss/df-styles.scss +6 -3
- package/styles/scss/themes/brand2023/_variables.scss +585 -0
- package/styles/scss/utilities/_common.utilities.scss +112 -32
- package/assets/fonts/amadeus-light/amadeus-light.svg +0 -8658
- package/assets/fonts/amadeus-light/amadeus-light.ttf +0 -0
- package/assets/fonts/amadeus-light/amadeus-light.woff +0 -0
- package/assets/fonts/amadeus-light/amadeus-light.woff2 +0 -0
- package/assets/icon-amadeus.svg +0 -1
- package/schematics/migrations/15_0_0/remove-ngx-slider/index.js.map +0 -1
- package/schematics/migrations/helpers.js.map +0 -1
- package/schematics/migrations/utils/project_tsconfig_paths.js.map +0 -1
- package/schematics/migrations/utils/typescript/compiler_host.js.map +0 -1
- package/schematics/migrations/utils/typescript/parse_tsconfig.js.map +0 -1
- package/schematics/ng-add/index.js.map +0 -1
- package/schematics/ng-add/schema.js.map +0 -1
- package/styles/scss/components/tooltip/_tooltip.scss +0 -3
- package/styles/scss/components/tooltip/_tooltip.variables.scss +0 -5
|
@@ -3,9 +3,10 @@
|
|
|
3
3
|
$df-carousel-indicator-bg-color: color.adjust($black, $alpha: -0.4) !default;
|
|
4
4
|
$df-carousel-indicator-bg-color-hover: $black !default;
|
|
5
5
|
$df-carousel-indicator-border-radius: 50% !default;
|
|
6
|
-
$df-carousel-outline:
|
|
6
|
+
$df-carousel-outline: var(--#{$prefix}focus-outline) !default;
|
|
7
7
|
$df-carousel-indicator-bottom: -$carousel-indicator-hit-area-height !default;
|
|
8
8
|
$df-carousel-caption-bottom: 0 !default; // we remove 20px here from BS
|
|
9
9
|
// default value is 20 + 20 of the caption bottom - the value we decrease the position of the indicators
|
|
10
10
|
$df-carousel-caption-padding-bottom: 20px + 20px + $df-carousel-indicator-bottom !default;
|
|
11
11
|
$df-carousel-caption-padding-top: 0.75rem !default;
|
|
12
|
+
$df-carousel-focused-box-shadow: $df-focused-box-shadow !default;
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
@use 'sass:math';
|
|
2
2
|
|
|
3
3
|
.form-check {
|
|
4
|
+
--#{$prefix}checkbox-invalid-feedback-margin-start: #{math.div($form-check-padding-start, $form-feedback-font-size) * - 1em};
|
|
5
|
+
--#{$prefix}checkbox-disabled-background-color: #{$df-checkbox-disabled-background-color};
|
|
6
|
+
--#{$prefix}checkbox-checked-disabled-bg-color: #{$df-checkbox-checked-disabled-bg-color};
|
|
7
|
+
--#{$prefix}checkbox-disabled-border-color: #{$df-checkbox-disabled-border-color};
|
|
8
|
+
--#{$prefix}checkbox-disabled-cursor: #{$df-checkbox-disabled-cursor};
|
|
9
|
+
|
|
4
10
|
.form-check-input {
|
|
5
11
|
&:not([disabled]):not(.disabled) {
|
|
6
12
|
cursor:pointer;
|
|
@@ -8,29 +14,29 @@
|
|
|
8
14
|
|
|
9
15
|
& ~ .invalid-feedback {
|
|
10
16
|
@include rtl {
|
|
11
|
-
margin-right:
|
|
17
|
+
margin-right: var(--#{$prefix}checkbox-invalid-feedback-margin-start);
|
|
12
18
|
}
|
|
13
19
|
@include ltr {
|
|
14
|
-
margin-left:
|
|
20
|
+
margin-left: var(--#{$prefix}checkbox-invalid-feedback-margin-start);
|
|
15
21
|
}
|
|
16
22
|
}
|
|
17
23
|
|
|
18
24
|
&.disabled,
|
|
19
25
|
&[disabled] {
|
|
20
|
-
cursor: $
|
|
26
|
+
cursor: var(--#{$prefix}checkbox-disabled-cursor);
|
|
21
27
|
pointer-events: auto;
|
|
22
|
-
border-color: $
|
|
28
|
+
border-color: var(--#{$prefix}checkbox-disabled-border-color);
|
|
23
29
|
&:not([checked]) {
|
|
24
|
-
background-color: $
|
|
30
|
+
background-color: var(--#{$prefix}checkbox-disabled-background-color);
|
|
25
31
|
}
|
|
26
32
|
&:checked, &:indeterminate {
|
|
27
33
|
&[type="checkbox"] {
|
|
28
|
-
background-color: $
|
|
34
|
+
background-color: var(--#{$prefix}checkbox-checked-disabled-bg-color);
|
|
29
35
|
}
|
|
30
36
|
}
|
|
31
37
|
& ~ .form-check-label {
|
|
32
|
-
color: $
|
|
33
|
-
cursor: $
|
|
38
|
+
color: var(--#{$prefix}checkbox-checked-disabled-bg-color);
|
|
39
|
+
cursor: var(--#{$prefix}checkbox-disabled-cursor);
|
|
34
40
|
}
|
|
35
41
|
}
|
|
36
42
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
$df-checkbox-disabled-background-color: $df-disabled-bg-color !default;
|
|
2
|
-
$df-checkbox-checked-disabled-
|
|
2
|
+
$df-checkbox-checked-disabled-bg-color: $gray-300 !default;
|
|
3
3
|
$df-checkbox-disabled-border-color: $gray-300 !default;
|
|
4
|
-
$df-checkbox-disabled-cursor: $
|
|
4
|
+
$df-checkbox-disabled-cursor: var(--#{$prefix}disabled-cursor) !default;
|
|
5
5
|
$df-checkbox-radio-margin-bottom: 0.5rem !default;
|
|
6
6
|
$df-checkbox-radio-margin-end: 0.75rem !default;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
@import '../link/link.mixins';
|
|
2
2
|
|
|
3
3
|
a.df-collapse[aria-disabled='true'] {
|
|
4
|
-
color: $
|
|
5
|
-
display: $
|
|
6
|
-
cursor: $
|
|
7
|
-
text-decoration: $
|
|
4
|
+
color: var(--#{$prefix}collapse-disabled-color);
|
|
5
|
+
display: var(--#{$prefix}collapse-disabled-display);
|
|
6
|
+
cursor: var(--#{$prefix}collapse-disabled-cursor);
|
|
7
|
+
text-decoration: var(--#{$prefix}collapse-disabled-text-decoration);
|
|
8
8
|
|
|
9
9
|
// Links styles override
|
|
10
10
|
border: none;
|
|
@@ -12,14 +12,22 @@ a.df-collapse[aria-disabled='true'] {
|
|
|
12
12
|
|
|
13
13
|
// Links styles override
|
|
14
14
|
a.df-collapse {
|
|
15
|
+
--#{$prefix}collapse-link-color: #{$df-collapse-link-color};
|
|
16
|
+
--#{$prefix}collapse-link-decoration: #{$df-collapse-link-decoration};
|
|
17
|
+
--#{$prefix}collapse-disabled-color: #{$df-collapse-disabled-color};
|
|
18
|
+
--#{$prefix}collapse-disabled-display: #{$df-collapse-disabled-display};
|
|
19
|
+
--#{$prefix}collapse-disabled-cursor: #{$df-collapse-disabled-cursor};
|
|
20
|
+
--#{$prefix}collapse-disabled-text-decoration: #{$df-collapse-disabled-text-decoration};
|
|
21
|
+
--#{$prefix}collapse-hover-border-bottom: #{$df-collapse-hover-border-bottom};
|
|
22
|
+
|
|
15
23
|
display: inline-flex;
|
|
16
24
|
align-items: center;
|
|
17
25
|
|
|
18
26
|
&:link,
|
|
19
27
|
&:visited {
|
|
20
|
-
color: $
|
|
21
|
-
text-decoration: $
|
|
22
|
-
border-bottom: $
|
|
28
|
+
color: var(--#{$prefix}collapse-link-color);
|
|
29
|
+
text-decoration: var(--#{$prefix}collapse-link-decoration);
|
|
30
|
+
border-bottom: var(--#{$prefix}collapse-hover-border-bottom) transparent;
|
|
23
31
|
}
|
|
24
32
|
|
|
25
33
|
&:hover,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
$df-collapse-link-color: $
|
|
1
|
+
$df-collapse-link-color: var(--#{$prefix}link-color) !default;
|
|
2
2
|
$df-collapse-link-decoration: $link-decoration !default;
|
|
3
|
-
$df-collapse-disabled-color: $
|
|
3
|
+
$df-collapse-disabled-color: var(--#{$prefix}disabled-color) !default;
|
|
4
4
|
$df-collapse-disabled-display: inline-block !default;
|
|
5
|
-
$df-collapse-disabled-cursor: $
|
|
5
|
+
$df-collapse-disabled-cursor: var(--#{$prefix}disabled-cursor) !default;
|
|
6
6
|
$df-collapse-disabled-text-decoration: none !default;
|
|
7
7
|
$df-collapse-hover-border-bottom: $df-link-hover-border-bottom-width solid !default;
|
|
@@ -16,18 +16,18 @@
|
|
|
16
16
|
}
|
|
17
17
|
|
|
18
18
|
.ngb-dp-arrow {
|
|
19
|
-
justify-content: $
|
|
19
|
+
justify-content: var(--#{$prefix}datepicker-navigation-arrow-justify-contents);
|
|
20
20
|
|
|
21
21
|
.ngb-dp-arrow-btn {
|
|
22
22
|
padding-right: 0;
|
|
23
23
|
padding-left: 0;
|
|
24
|
-
min-width: $
|
|
25
|
-
height: $
|
|
26
|
-
border-radius: $
|
|
24
|
+
min-width: var(--#{$prefix}datepicker-arrow-width);
|
|
25
|
+
height: var(--#{$prefix}datepicker-arrow-height);
|
|
26
|
+
border-radius: var(--#{$prefix}datepicker-arrow-border-radius);
|
|
27
27
|
@extend %df-icon-style;
|
|
28
28
|
&:focus {
|
|
29
|
-
outline: $df-
|
|
30
|
-
box-shadow: $df-focused-box-shadow;
|
|
29
|
+
outline: $df-datepicker-focused-outline;
|
|
30
|
+
box-shadow: $df-datepicker-focused-box-shadow;
|
|
31
31
|
}
|
|
32
32
|
text-decoration: none;
|
|
33
33
|
&:not(:disabled):not(.disabled):active {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
}
|
|
37
37
|
&:disabled,
|
|
38
38
|
&.disabled {
|
|
39
|
-
color: $
|
|
39
|
+
color: var(--#{$prefix}datepicker-arrow-disabled-color);
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
|
|
@@ -63,153 +63,209 @@
|
|
|
63
63
|
}
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
// Flag Angular
|
|
66
67
|
// stylelint-disable-next-line selector-type-no-unknown
|
|
67
68
|
ngb-datepicker {
|
|
68
|
-
|
|
69
|
-
padding: $df-datepicker-padding;
|
|
69
|
+
--#{$prefix}datepicker-padding-deactivate: #{$df-datepicker-padding-deactivate};
|
|
70
|
+
--#{$prefix}datepicker-padding: #{$df-datepicker-padding};
|
|
71
|
+
--#{$prefix}datepicker-box-shadow: #{$df-datepicker-box-shadow};
|
|
72
|
+
--#{$prefix}datepicker-radius: #{$df-datepicker-radius};
|
|
73
|
+
--#{$prefix}datepicker-navigation-arrow-justify-contents: #{$df-datepicker-navigation-arrow-justify-contents};
|
|
74
|
+
--#{$prefix}datepicker-navigation-arrow-flex: #{$df-datepicker-navigation-arrow-flex};
|
|
75
|
+
--#{$prefix}datepicker-navigation-literal-font-size: #{$df-datepicker-navigation-literal-font-size};
|
|
76
|
+
--#{$prefix}datepicker-navigation-literal-font-weight: #{$df-datepicker-navigation-literal-font-weight};
|
|
77
|
+
--#{$prefix}datepicker-navigation-arrow-color: #{$df-datepicker-navigation-arrow-color};
|
|
78
|
+
--#{$prefix}datepicker-navigation-literal-flex: #{$df-datepicker-navigation-literal-flex};
|
|
79
|
+
--#{$prefix}datepicker-day-side: #{$df-datepicker-day-side};
|
|
80
|
+
--#{$prefix}datepicker-weekday-font-style: #{$df-datepicker-weekday-font-style};
|
|
81
|
+
--#{$prefix}datepicker-weekday-font-size: #{$df-datepicker-weekday-font-size};
|
|
82
|
+
--#{$prefix}datepicker-weekday-text-transform: #{$df-datepicker-weekday-text-transform};
|
|
83
|
+
--#{$prefix}datepicker-day-font-weight: #{$df-datepicker-day-font-weight};
|
|
84
|
+
--#{$prefix}datepicker-day-align-items: #{$df-datepicker-day-align-items};
|
|
85
|
+
--#{$prefix}datepicker-day-display: #{$df-datepicker-day-display};
|
|
86
|
+
--#{$prefix}datepicker-day-size: #{$df-datepicker-day-size};
|
|
87
|
+
--#{$prefix}datepicker-day-justify-content: #{$df-datepicker-day-justify-content};
|
|
88
|
+
--#{$prefix}datepicker-day-border-radius: #{$df-datepicker-day-border-radius};
|
|
89
|
+
--#{$prefix}datepicker-day-text-align: #{$df-datepicker-day-text-align};
|
|
90
|
+
--#{$prefix}datepicker-day-disabled-color: #{$df-datepicker-day-disabled-color};
|
|
91
|
+
--#{$prefix}datepicker-day-disabled-opacity: #{$df-datepicker-day-disabled-opacity};
|
|
92
|
+
--#{$prefix}datepicker-day-disabled-cursor: #{$df-datepicker-day-disabled-cursor};
|
|
93
|
+
--#{$prefix}datepicker-day-active-bg-color: #{$df-datepicker-day-active-bg-color};
|
|
94
|
+
--#{$prefix}datepicker-day-active-color: #{$df-datepicker-day-active-color};
|
|
95
|
+
--#{$prefix}datepicker-day-hover-bg-color: #{$df-datepicker-day-hover-bg-color};
|
|
96
|
+
--#{$prefix}datepicker-day-hover-color: #{$df-datepicker-day-hover-color};
|
|
97
|
+
--#{$prefix}datepicker-day-hover-text-decoration: #{$df-datepicker-day-hover-text-decoration};
|
|
98
|
+
--#{$prefix}datepicker-day-focus-outline-width: #{$df-datepicker-day-focus-outline-width};
|
|
99
|
+
--#{$prefix}datepicker-day-focus-outline: #{$df-datepicker-day-focus-outline};
|
|
100
|
+
--#{$prefix}datepicker-day-focus-border: #{$df-datepicker-day-focus-border};
|
|
101
|
+
--#{$prefix}datepicker-day-focus-active-z-index: #{$df-datepicker-day-focus-active-z-index};
|
|
102
|
+
--#{$prefix}datepicker-day-focus-active-border-color: #{$df-datepicker-day-focus-active-border-color};
|
|
103
|
+
--#{$prefix}datepicker-day-focus-active-border-z-index: #{$df-datepicker-day-focus-active-border-z-index};
|
|
104
|
+
--#{$prefix}datepicker-day-range-bg-color: #{$df-datepicker-day-range-bg-color};
|
|
105
|
+
--#{$prefix}datepicker-day-range-color: #{$df-datepicker-day-range-color};
|
|
106
|
+
--#{$prefix}datepicker-input-invalid-color: #{$df-datepicker-input-invalid-color};
|
|
107
|
+
--#{$prefix}datepicker-input-invalid-z-index: #{$df-datepicker-input-invalid-z-index};
|
|
108
|
+
--#{$prefix}datepicker-menu-border: #{$df-datepicker-menu-border};
|
|
109
|
+
--#{$prefix}datepicker-panel-border: #{$df-datepicker-panel-border};
|
|
110
|
+
--#{$prefix}datepicker-range-dropdown-padding: #{$df-datepicker-range-dropdown-padding};
|
|
111
|
+
--#{$prefix}datepicker-range-dropdown-border: #{$df-datepicker-range-dropdown-border};
|
|
112
|
+
--#{$prefix}input-datepicker-range-border: #{$df-input-datepicker-range-border};
|
|
113
|
+
--#{$prefix}input-datepicker-range-white-space: #{$df-input-datepicker-range-white-space};
|
|
114
|
+
--#{$prefix}input-datepicker-range-padding: #{$df-input-datepicker-range-padding};
|
|
115
|
+
--#{$prefix}input-datepicker-range-after-display: #{$df-input-datepicker-range-after-display};
|
|
116
|
+
--#{$prefix}datepicker-arrow-width: #{$df-datepicker-arrow-width};
|
|
117
|
+
--#{$prefix}datepicker-arrow-height: #{$df-datepicker-arrow-height};
|
|
118
|
+
--#{$prefix}datepicker-arrow-border-radius: #{$df-datepicker-arrow-border-radius};
|
|
119
|
+
--#{$prefix}datepicker-arrow-disabled-color: #{$df-datepicker-arrow-disabled-color};
|
|
120
|
+
|
|
121
|
+
border: var(--#{$prefix}datepicker-panel-border) !important;
|
|
122
|
+
padding: var(--#{$prefix}datepicker-padding);
|
|
70
123
|
&.dropdown-menu.show {
|
|
71
|
-
padding: $
|
|
72
|
-
box-shadow: $
|
|
73
|
-
border: $
|
|
74
|
-
border-radius: $
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.ngb-dp- {
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
padding-left: $df-datepicker-padding-deactivate;
|
|
86
|
-
}
|
|
87
|
-
@include rtl {
|
|
88
|
-
padding-right: $df-datepicker-padding-deactivate;
|
|
89
|
-
}
|
|
124
|
+
padding: var(--#{$prefix}datepicker-padding);
|
|
125
|
+
box-shadow: var(--#{$prefix}datepicker-box-shadow);
|
|
126
|
+
border: var(--#{$prefix}datepicker-menu-border);
|
|
127
|
+
border-radius: var(--#{$prefix}datepicker-radius);
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.ngb-dp-header {
|
|
131
|
+
background-color: inherit;
|
|
132
|
+
padding-top: var(--#{$prefix}datepicker-padding-deactivate);
|
|
133
|
+
}
|
|
134
|
+
.ngb-dp-month {
|
|
135
|
+
&:first-child .ngb-dp-week {
|
|
136
|
+
@include ltr {
|
|
137
|
+
padding-left: var(--#{$prefix}datepicker-padding-deactivate);
|
|
90
138
|
}
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
padding-right: $df-datepicker-padding-deactivate;
|
|
94
|
-
}
|
|
95
|
-
@include rtl {
|
|
96
|
-
padding-left: $df-datepicker-padding-deactivate;
|
|
97
|
-
}
|
|
139
|
+
@include rtl {
|
|
140
|
+
padding-right: var(--#{$prefix}datepicker-padding-deactivate);
|
|
98
141
|
}
|
|
99
|
-
|
|
100
|
-
|
|
142
|
+
}
|
|
143
|
+
&:last-child .ngb-dp-week {
|
|
144
|
+
@include ltr {
|
|
145
|
+
padding-right: var(--#{$prefix}datepicker-padding-deactivate);
|
|
101
146
|
}
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
font-size: $df-datepicker-navigation-literal-font-size;
|
|
105
|
-
font-weight: $df-datepicker-navigation-literal-font-weight;
|
|
106
|
-
flex: $df-datepicker-navigation-literal-flex;
|
|
147
|
+
@include rtl {
|
|
148
|
+
padding-left: var(--#{$prefix}datepicker-padding-deactivate);
|
|
107
149
|
}
|
|
108
150
|
}
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
flex: $df-datepicker-navigation-arrow-flex;
|
|
112
|
-
width: $df-datepicker-day-size;
|
|
113
|
-
height: $df-datepicker-day-size;
|
|
114
|
-
button.btn {
|
|
115
|
-
color: $df-datepicker-navigation-arrow-color;
|
|
116
|
-
}
|
|
151
|
+
.ngb-dp-week:last-child {
|
|
152
|
+
padding-bottom: var(--#{$prefix}datepicker-padding-deactivate);
|
|
117
153
|
}
|
|
154
|
+
}
|
|
155
|
+
.ngb-dp-month-name {
|
|
156
|
+
background-color: inherit;
|
|
157
|
+
font-size: var(--#{$prefix}datepicker-navigation-literal-font-size);
|
|
158
|
+
font-weight: var(--#{$prefix}datepicker-navigation-literal-font-weight);
|
|
159
|
+
flex: var(--#{$prefix}datepicker-navigation-literal-flex);
|
|
160
|
+
}
|
|
118
161
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
&s {
|
|
126
|
-
background-color: inherit !important; //TODO: remove it when not needed (probably next ng-bootstrap upgrade)
|
|
127
|
-
border: none;
|
|
128
|
-
}
|
|
162
|
+
.ngb-dp-arrow {
|
|
163
|
+
flex: var(--#{$prefix}datepicker-navigation-arrow-flex);
|
|
164
|
+
width: var(--#{$prefix}datepicker-day-size);
|
|
165
|
+
height: var(--#{$prefix}datepicker-day-size);
|
|
166
|
+
button.btn {
|
|
167
|
+
color: var(--#{$prefix}datepicker-navigation-arrow-color);
|
|
129
168
|
}
|
|
169
|
+
}
|
|
130
170
|
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
}
|
|
171
|
+
.ngb-dp-weekday {
|
|
172
|
+
color: inherit;
|
|
173
|
+
width: var(--#{$prefix}datepicker-day-side);
|
|
174
|
+
font-style: var(--#{$prefix}datepicker-weekday-font-style);
|
|
175
|
+
font-size: var(--#{$prefix}datepicker-weekday-font-size);
|
|
176
|
+
text-transform: var(--#{$prefix}datepicker-weekday-text-transform);
|
|
177
|
+
}
|
|
134
178
|
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
179
|
+
.ngb-dp-week-number {
|
|
180
|
+
min-width: var(--#{$prefix}datepicker-day-size);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
.ngb-dp-day {
|
|
184
|
+
width: var(--#{$prefix}datepicker-day-side);
|
|
185
|
+
height: var(--#{$prefix}datepicker-day-side);
|
|
186
|
+
outline: var(--#{$prefix}datepicker-day-focus-outline);
|
|
187
|
+
&.disabled {
|
|
188
|
+
// override the default look
|
|
189
|
+
cursor: initial;
|
|
190
|
+
pointer-events: initial;
|
|
144
191
|
}
|
|
145
192
|
}
|
|
146
193
|
}
|
|
147
194
|
.df-datepicker-date {
|
|
148
|
-
height: $
|
|
149
|
-
width: $
|
|
150
|
-
text-align: $
|
|
151
|
-
border-radius: $
|
|
152
|
-
display: $
|
|
153
|
-
align-items: $
|
|
154
|
-
justify-content: $
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
195
|
+
height: var(--#{$prefix}datepicker-day-size);
|
|
196
|
+
width: var(--#{$prefix}datepicker-day-size);
|
|
197
|
+
text-align: var(--#{$prefix}datepicker-day-text-align);
|
|
198
|
+
border-radius: var(--#{$prefix}datepicker-day-border-radius);
|
|
199
|
+
display: var(--#{$prefix}datepicker-day-display);
|
|
200
|
+
align-items: var(--#{$prefix}datepicker-day-align-items);
|
|
201
|
+
justify-content: var(--#{$prefix}datepicker-day-justify-content);
|
|
202
|
+
|
|
203
|
+
&.holiday {
|
|
204
|
+
// important is needed because of the view encapsulation of ng-bootstrap
|
|
205
|
+
color: #{shades-css-var('orange', 'bg-color', true)} !important;
|
|
206
|
+
background-color: #{shades-css-var('orange', 'bg-color')} !important;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
&.df-datepicker-date-disabled {
|
|
210
|
+
color: var(--#{$prefix}datepicker-day-disabled-color);
|
|
211
|
+
opacity: var(--#{$prefix}datepicker-day-disabled-opacity);
|
|
212
|
+
cursor: var(--#{$prefix}datepicker-day-disabled-cursor);
|
|
213
|
+
}
|
|
214
|
+
&.df-datepicker-date-selected {
|
|
215
|
+
background-color: var(--#{$prefix}datepicker-day-active-bg-color);
|
|
216
|
+
color: var(--#{$prefix}datepicker-day-active-color);
|
|
217
|
+
font-weight: var(--#{$prefix}datepicker-day-font-weight);
|
|
218
|
+
}
|
|
219
|
+
&.df-datepicker-date-focused,
|
|
220
|
+
.ngb-dp-arrow button:focus {
|
|
221
|
+
border: 0px none;
|
|
222
|
+
position: relative;
|
|
223
|
+
&:after {
|
|
224
|
+
content: '';
|
|
225
|
+
display: block;
|
|
226
|
+
position: absolute;
|
|
227
|
+
top: calc(-1 * var(--#{$prefix}datepicker-day-focus-outline-width));
|
|
228
|
+
bottom: calc(-1 * var(--#{$prefix}datepicker-day-focus-outline-width));
|
|
229
|
+
left: calc(-1 * var(--#{$prefix}datepicker-day-focus-outline-width));
|
|
230
|
+
right: calc(-1 * var(--#{$prefix}datepicker-day-focus-outline-width));
|
|
231
|
+
border-radius: var(--#{$prefix}datepicker-day-border-radius) + var(--#{$prefix}datepicker-day-focus-outline-width);
|
|
232
|
+
border: var(--#{$prefix}datepicker-day-focus-border);
|
|
181
233
|
}
|
|
182
234
|
}
|
|
235
|
+
|
|
183
236
|
&:not(.df-datepicker-date-disabled):not(.df-datepicker-date-selected):hover {
|
|
184
|
-
background-color: $
|
|
185
|
-
color:
|
|
186
|
-
text-decoration: $
|
|
237
|
+
background-color: var(--#{$prefix}datepicker-day-hover-bg-color);
|
|
238
|
+
color: var(--#{$prefix}datepicker-day-hover-color);
|
|
239
|
+
text-decoration: var(--#{$prefix}datepicker-day-hover-text-decoration);
|
|
187
240
|
}
|
|
241
|
+
|
|
188
242
|
&.df-datepicker-date-from {
|
|
189
|
-
border-radius: $
|
|
243
|
+
border-radius: var(--#{$prefix}datepicker-day-border-radius) 0 0 var(--#{$prefix}datepicker-day-border-radius);
|
|
190
244
|
&.df-datepicker-date-focused:after {
|
|
191
|
-
border-radius: $
|
|
245
|
+
border-radius: var(--#{$prefix}datepicker-day-border-radius) 0 0 var(--#{$prefix}datepicker-day-border-radius);
|
|
192
246
|
}
|
|
193
247
|
}
|
|
248
|
+
|
|
194
249
|
&.df-datepicker-date-to {
|
|
195
|
-
border-radius: 0 $
|
|
250
|
+
border-radius: 0 var(--#{$prefix}datepicker-day-border-radius) var(--#{$prefix}datepicker-day-border-radius) 0;
|
|
196
251
|
&.df-datepicker-date-focused:after {
|
|
197
|
-
border-radius: 0 $
|
|
252
|
+
border-radius: 0 var(--#{$prefix}datepicker-day-border-radius) var(--#{$prefix}datepicker-day-border-radius) 0;
|
|
198
253
|
}
|
|
199
254
|
}
|
|
255
|
+
|
|
200
256
|
&.df-datepicker-date-between {
|
|
201
257
|
border-radius: 0;
|
|
202
258
|
&.df-datepicker-date-focused:after {
|
|
203
259
|
border-radius: 0;
|
|
204
260
|
}
|
|
205
|
-
background-color: $
|
|
206
|
-
color: $
|
|
207
|
-
font-weight: $
|
|
261
|
+
background-color: var(--#{$prefix}datepicker-day-range-bg-color);
|
|
262
|
+
color: var(--#{$prefix}datepicker-day-range-color);
|
|
263
|
+
font-weight: var(--#{$prefix}datepicker-day-font-weight);
|
|
208
264
|
}
|
|
209
265
|
}
|
|
210
266
|
|
|
211
267
|
.ngb-dp-today .df-datepicker-date {
|
|
212
|
-
font-weight: $
|
|
268
|
+
font-weight: var(--#{$prefix}datepicker-day-font-weight);
|
|
213
269
|
position: relative;
|
|
214
270
|
&:before {
|
|
215
271
|
content: '.';
|
|
@@ -232,20 +288,20 @@ ngb-datepicker {
|
|
|
232
288
|
}
|
|
233
289
|
|
|
234
290
|
.df-datepicker-range-dropdown {
|
|
235
|
-
padding: $
|
|
236
|
-
border: $
|
|
291
|
+
padding: var(--#{$prefix}datepicker-range-dropdown-padding);
|
|
292
|
+
border: var(--#{$prefix}datepicker-range-dropdown-border);
|
|
237
293
|
}
|
|
238
294
|
|
|
239
295
|
.df-input-datepicker-range {
|
|
240
296
|
&.df-focused {
|
|
241
|
-
border: $
|
|
297
|
+
border: var(--#{$prefix}input-datepicker-range-border);
|
|
242
298
|
}
|
|
243
299
|
.dropdown-toggle {
|
|
244
|
-
white-space: $
|
|
245
|
-
padding: $
|
|
300
|
+
white-space: var(--#{$prefix}input-datepicker-range-white-space);
|
|
301
|
+
padding: var(--#{$prefix}input-datepicker-range-padding) !important;
|
|
246
302
|
&:after {
|
|
247
303
|
// TODO remove this when it is possible to remove the arrow from ng-bootstrap feature
|
|
248
|
-
display: $
|
|
304
|
+
display: var(--#{$prefix}input-datepicker-range-after-display);
|
|
249
305
|
}
|
|
250
306
|
}
|
|
251
307
|
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
$df-datepicker-padding-deactivate: 0 !default;
|
|
4
4
|
$df-datepicker-padding: 1rem !default;
|
|
5
|
-
$df-datepicker-box-shadow: $
|
|
5
|
+
$df-datepicker-box-shadow: var(--#{$prefix}box-shadow) !default;
|
|
6
6
|
$df-datepicker-radius: 0.25rem !default;
|
|
7
7
|
$df-datepicker-navigation-arrow-justify-contents: space-between !default;
|
|
8
8
|
$df-datepicker-navigation-arrow-flex: 0 1 auto !default;
|
|
@@ -10,43 +10,50 @@ $df-datepicker-navigation-literal-font-size: map.get($df-size-ratios, 'lg') * 1r
|
|
|
10
10
|
$df-datepicker-navigation-literal-font-weight: $df-font-weight-semi-bold !default;
|
|
11
11
|
$df-datepicker-navigation-arrow-color: $gray-600 !default;
|
|
12
12
|
$df-datepicker-navigation-literal-flex: 1 0 auto !default;
|
|
13
|
-
$df-datepicker-day-side: 100% !default;
|
|
14
13
|
$df-datepicker-weekday-font-style: normal !default;
|
|
15
14
|
$df-datepicker-weekday-font-size: 90% !default;
|
|
16
15
|
$df-datepicker-weekday-text-transform: uppercase !default;
|
|
17
|
-
$df-datepicker-day-
|
|
16
|
+
$df-datepicker-day-side: 100% !default;
|
|
17
|
+
$df-datepicker-day-font-weight: bold !default;
|
|
18
18
|
$df-datepicker-day-align-items: center !default;
|
|
19
19
|
$df-datepicker-day-display: flex !default;
|
|
20
20
|
$df-datepicker-day-size: 2.25rem !default;
|
|
21
21
|
$df-datepicker-day-justify-content: center !default;
|
|
22
22
|
$df-datepicker-day-border-radius: 0.125rem !default;
|
|
23
23
|
$df-datepicker-day-text-align: center !default;
|
|
24
|
-
$df-datepicker-day-
|
|
25
|
-
$df-datepicker-day-disabled-
|
|
26
|
-
$df-datepicker-day-disabled-
|
|
27
|
-
$df-datepicker-day-
|
|
28
|
-
$df-datepicker-day-active-color:
|
|
29
|
-
$df-datepicker-day-
|
|
30
|
-
$df-datepicker-day-hover-
|
|
24
|
+
$df-datepicker-day-focus-outline: var(--#{$prefix}focus-outline) !default;
|
|
25
|
+
$df-datepicker-day-disabled-color: var(--#{$prefix}disabled-color) !default;
|
|
26
|
+
$df-datepicker-day-disabled-opacity: var(--#{$prefix}disabled-opacity) !default;
|
|
27
|
+
$df-datepicker-day-disabled-cursor: var(--#{$prefix}disabled-cursor) !default;
|
|
28
|
+
$df-datepicker-day-active-bg-color: shades-css-var('primary', 'bg-color') !default;
|
|
29
|
+
$df-datepicker-day-active-color: shades-css-var('primary', 'bg-color', true) !default;
|
|
30
|
+
$df-datepicker-day-hover-bg-color: $df-hover-bg-color !default;
|
|
31
|
+
$df-datepicker-day-hover-color: color-contrast($df-datepicker-day-hover-bg-color) !default;
|
|
32
|
+
$df-datepicker-day-hover-text-decoration: underline !default; // why underline here add the reason with UX
|
|
31
33
|
$df-datepicker-day-focus-outline-width: 0.2rem !default;
|
|
32
34
|
$df-datepicker-day-focus-border: ($df-datepicker-day-focus-outline-width + 0.05rem) solid
|
|
33
35
|
rgba($input-focus-border-color, 0.5) !default;
|
|
34
36
|
$df-datepicker-day-focus-active-z-index: 0 !default;
|
|
35
37
|
$df-datepicker-day-focus-active-border-color: rgba($white, 0.5) !default;
|
|
36
38
|
$df-datepicker-day-focus-active-border-z-index: -1 !default;
|
|
37
|
-
$df-datepicker-day-range-
|
|
38
|
-
$df-datepicker-day-range-color:
|
|
39
|
+
$df-datepicker-day-range-bg-color: $df-primary-lighten-60 !default;
|
|
40
|
+
$df-datepicker-day-range-color: shades-css-var('primary', 'bg-color') !default;
|
|
39
41
|
$df-datepicker-input-invalid-color: $danger !default;
|
|
40
42
|
$df-datepicker-input-invalid-z-index: 3 !default;
|
|
41
43
|
$df-datepicker-menu-border: $border-width solid $border-color !default;
|
|
42
|
-
|
|
44
|
+
// TODO open an issue in ng-bootstrap about the --bs-border-color not correctly prefixed
|
|
45
|
+
// that we could use to change the color of the border
|
|
46
|
+
$df-datepicker-panel-border: $df-datepicker-menu-border !default;
|
|
43
47
|
$df-datepicker-range-dropdown-padding: 0 !default;
|
|
44
48
|
$df-datepicker-range-dropdown-border: none !default;
|
|
45
49
|
$df-input-datepicker-range-border: none !default;
|
|
46
50
|
$df-input-datepicker-range-white-space: initial !default;
|
|
47
|
-
$df-input-datepicker-range-padding: 0 !
|
|
51
|
+
$df-input-datepicker-range-padding: 0 !default;
|
|
48
52
|
$df-input-datepicker-range-after-display: none !default;
|
|
53
|
+
$df-datepicker-arrow-focus-outline: var(--#{$prefix}focus-outline) !default;
|
|
49
54
|
$df-datepicker-arrow-width: 2.25rem !default;
|
|
50
55
|
$df-datepicker-arrow-height: $df-datepicker-arrow-width !default;
|
|
51
56
|
$df-datepicker-arrow-border-radius: 50% !default;
|
|
52
|
-
$df-datepicker-arrow-disabled-color: $
|
|
57
|
+
$df-datepicker-arrow-disabled-color: var(--#{$prefix}disabled-color) !default;
|
|
58
|
+
$df-datepicker-focused-box-shadow: $df-focused-box-shadow !default;
|
|
59
|
+
$df-datepicker-focused-outline: var(--#{$prefix}focus-outline) !default;
|
|
@@ -9,18 +9,18 @@
|
|
|
9
9
|
|
|
10
10
|
@mixin df-dropdown-orientation($ltr-right, $ltr-left) {
|
|
11
11
|
.dropdown-toggle:not(.df-standalone-dropdown-toggle) {
|
|
12
|
-
padding-#{$ltr-right}: $
|
|
12
|
+
padding-#{$ltr-right}: var(--#{$prefix}dropdown-toggle-padding);
|
|
13
13
|
&:after {
|
|
14
|
-
margin-#{$ltr-left}: $
|
|
14
|
+
margin-#{$ltr-left}: var(--#{$prefix}dropdown-toggle-margin);
|
|
15
15
|
}
|
|
16
16
|
& > [class*='icon-']:before {
|
|
17
|
-
margin-#{$ltr-right}: $
|
|
17
|
+
margin-#{$ltr-right}: var(--#{$prefix}dropdown-toggle-margin);
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
20
|
.dropdown-menu {
|
|
21
21
|
text-align: #{$ltr-left};
|
|
22
22
|
}
|
|
23
23
|
.btn-primary.dropdown-toggle-split {
|
|
24
|
-
border-#{$ltr-left}-color: $
|
|
24
|
+
border-#{$ltr-left}-color: var(--#{$prefix}dropdown-toggle-border-color-primary);
|
|
25
25
|
}
|
|
26
26
|
}
|