@design-factory/design-factory 19.0.1 → 19.1.0-next.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 +1 -1
- package/design-factory-initial-branding.css +1 -1
- package/design-factory.css +1 -1
- package/fesm2022/design-factory.mjs +350 -306
- package/fesm2022/design-factory.mjs.map +1 -1
- package/lib/angular/inputs/icon/inputicon.directive.d.ts +3 -1
- package/lib/angular/sidenav/excludeTrap.directive.d.ts +1 -0
- package/lib/angular/stepper/stepper.component.d.ts +1 -1
- package/lib/angular/stepper/stepper.service.d.ts +31 -26
- package/lib/angular/tooltip/truncate/tooltipTruncate.directive.d.ts +7 -4
- package/lib/angular/utils/html-element-helper.d.ts +10 -0
- package/package.json +4 -4
- package/schematics/migrations/16_0_0/scss-var/index.js +2 -2
- package/styles/scss/agnosui/_variables.scss +3 -1
- package/styles/scss/components/alert/_alert.scss +14 -0
- package/styles/scss/components/collapse/_collapse.scss +56 -0
- package/styles/scss/components/inputs/_inputs.mixin.scss +66 -0
- package/styles/scss/components/inputs/_inputs.scss +31 -60
- package/styles/scss/components/pagination/_pagination.scss +2 -0
- package/styles/scss/components/pagination/_pagination.variables.scss +1 -0
- package/styles/scss/components/select/_select.scss +3 -0
- package/styles/scss/themes/brand2023/_variables.scss +1 -0
|
@@ -2,7 +2,9 @@ import { OnInit, DoCheck, OnDestroy } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export type DfDirection = 'append' | 'prepend';
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* dfInputIcon directive
|
|
6
|
+
* @deprecated `DfInputIconDirective` is deprecated and will be removed in DF 21, in favor of pure css.
|
|
7
|
+
* To migrate and keep the same behavior, simply add the class `df-input-withicon` to the input element this directive was used on and remove the directive.
|
|
6
8
|
*/
|
|
7
9
|
export declare class DfInputIconDirective implements OnInit, DoCheck, OnDestroy {
|
|
8
10
|
readonly dfInputIcon: import("@angular/core").InputSignal<DfDirection[]>;
|
|
@@ -4,6 +4,7 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
/**
|
|
5
5
|
* The directive to catch focusin event and put the focus at a defined position in the page
|
|
6
6
|
*
|
|
7
|
+
* @deprecated use {@link https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inert inert} instead
|
|
7
8
|
* @since 9.1.0
|
|
8
9
|
*/
|
|
9
10
|
export declare class DfExcludeTrapDirective implements OnDestroy, OnInit {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterContentInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { DfStepperNormalizedState, DfStepperService } from './stepper.service';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./stepper.directive";
|
|
@@ -31,25 +31,26 @@ export declare class DfStepperService {
|
|
|
31
31
|
setFocus: boolean;
|
|
32
32
|
private readonly _stepperState$;
|
|
33
33
|
private _state;
|
|
34
|
+
get state(): DfStepperNormalizedState;
|
|
34
35
|
private _completedLabel;
|
|
36
|
+
/**
|
|
37
|
+
* Internal to get the completed label in the template
|
|
38
|
+
*/
|
|
39
|
+
get completedLabel(): string;
|
|
40
|
+
/**
|
|
41
|
+
* Use this to set the completed label (i18n)
|
|
42
|
+
*/
|
|
43
|
+
set completedLabel(label: string);
|
|
35
44
|
private _warningLabel;
|
|
36
|
-
private _stepperAriaLabel;
|
|
37
|
-
get stepperState$(): Observable<DfStepperNormalizedState>;
|
|
38
|
-
get state(): DfStepperNormalizedState;
|
|
39
|
-
private dispatchStepperState;
|
|
40
|
-
private updateStepperState;
|
|
41
45
|
/**
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
* Here we are not deep copying the array --> the function will change it
|
|
46
|
+
* Internal to get the waring label in the template
|
|
45
47
|
*/
|
|
46
|
-
|
|
48
|
+
get warningLabel(): string;
|
|
47
49
|
/**
|
|
48
|
-
* Use this to
|
|
49
|
-
* @param state
|
|
50
|
-
* @returns
|
|
50
|
+
* Use this to set the warning label (i18n)
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
set warningLabel(label: string);
|
|
53
|
+
private _stepperAriaLabel;
|
|
53
54
|
/**
|
|
54
55
|
* Internal to get the stepper aria label in the template
|
|
55
56
|
*/
|
|
@@ -58,22 +59,19 @@ export declare class DfStepperService {
|
|
|
58
59
|
* Use this to set the stepper aria label (i18n)
|
|
59
60
|
*/
|
|
60
61
|
set stepperAriaLabel(label: string);
|
|
62
|
+
get stepperState$(): Observable<DfStepperNormalizedState>;
|
|
61
63
|
/**
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Internal to get the waring label in the template
|
|
67
|
-
*/
|
|
68
|
-
get warningLabel(): string;
|
|
69
|
-
/**
|
|
70
|
-
* Use this to set the completed label (i18n)
|
|
64
|
+
* Use this to init the list of Elements from your stepper
|
|
65
|
+
*
|
|
66
|
+
* Here we are not deep copying the array --> the function will change it
|
|
71
67
|
*/
|
|
72
|
-
|
|
68
|
+
initStepperState(state: DfStepperState): void;
|
|
73
69
|
/**
|
|
74
|
-
* Use this to
|
|
70
|
+
* Use this to normalize the state of the stepper (completed, warning, current, future)
|
|
71
|
+
* @param state
|
|
72
|
+
* @returns
|
|
75
73
|
*/
|
|
76
|
-
|
|
74
|
+
normalizeState(state: DfStepperState): DfStepperNormalizedState;
|
|
77
75
|
/**
|
|
78
76
|
* TODO make it customizable
|
|
79
77
|
* @param index - index of the step
|
|
@@ -87,10 +85,15 @@ export declare class DfStepperService {
|
|
|
87
85
|
*/
|
|
88
86
|
setLinear(isLinear: boolean): void;
|
|
89
87
|
/**
|
|
90
|
-
*
|
|
91
88
|
* @param isInline - true if the stepper is inline
|
|
92
89
|
*/
|
|
93
90
|
setInline(isInline: boolean): void;
|
|
91
|
+
/**
|
|
92
|
+
* @param isVertical - true if the stepper is vertical
|
|
93
|
+
*
|
|
94
|
+
* @since 19.1.0
|
|
95
|
+
*/
|
|
96
|
+
setVertical(isVertical: boolean): void;
|
|
94
97
|
/**
|
|
95
98
|
*
|
|
96
99
|
* @param index - index of the step to select start at 0
|
|
@@ -122,6 +125,8 @@ export declare class DfStepperService {
|
|
|
122
125
|
* @param index - index of the step to remove Warning start at 0
|
|
123
126
|
*/
|
|
124
127
|
removeWarning(index: number): void;
|
|
128
|
+
private dispatchStepperState;
|
|
129
|
+
private updateStepperState;
|
|
125
130
|
static ɵfac: i0.ɵɵFactoryDeclaration<DfStepperService, never>;
|
|
126
131
|
static ɵprov: i0.ɵɵInjectableDeclaration<DfStepperService>;
|
|
127
132
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { DoCheck,
|
|
2
|
-
import { NgbTooltip } from '@ng-bootstrap/ng-bootstrap';
|
|
1
|
+
import { DoCheck, OnInit } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
/**
|
|
5
4
|
* My dfTooltipTruncate directive
|
|
@@ -8,9 +7,13 @@ export declare class DfTooltipTruncateDirective implements OnInit, DoCheck {
|
|
|
8
7
|
private readonly tooltip;
|
|
9
8
|
private readonly elementRef;
|
|
10
9
|
private readonly renderer;
|
|
11
|
-
|
|
10
|
+
/**
|
|
11
|
+
* The direction considered when detecting overflow, can be 'x', 'y' or ''.
|
|
12
|
+
* @defaultValue ''
|
|
13
|
+
*/
|
|
14
|
+
readonly dfTooltipTruncate: import("@angular/core").InputSignal<"" | "x" | "y">;
|
|
12
15
|
ngOnInit(): void;
|
|
13
16
|
ngDoCheck(): void;
|
|
14
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<DfTooltipTruncateDirective, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DfTooltipTruncateDirective, "[dfTooltipTruncate]", ["dfTooltipTruncate"], {}, {}, never, never, true, never>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DfTooltipTruncateDirective, "[dfTooltipTruncate]", ["dfTooltipTruncate"], { "dfTooltipTruncate": { "alias": "dfTooltipTruncate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
16
19
|
}
|
|
@@ -3,3 +3,13 @@
|
|
|
3
3
|
* @returns whether the element is overflowing
|
|
4
4
|
*/
|
|
5
5
|
export declare function hasOverflow(element: HTMLElement): boolean;
|
|
6
|
+
/**
|
|
7
|
+
* @param element the HTML element
|
|
8
|
+
* @returns whether the element is overflowing horizontally
|
|
9
|
+
*/
|
|
10
|
+
export declare function hasOverflowX(element: HTMLElement): boolean;
|
|
11
|
+
/**
|
|
12
|
+
* @param element the HTML element
|
|
13
|
+
* @returns whether the element is overflowing vertically
|
|
14
|
+
*/
|
|
15
|
+
export declare function hasOverflowY(element: HTMLElement): boolean;
|
package/package.json
CHANGED
|
@@ -2,13 +2,13 @@
|
|
|
2
2
|
"name": "@design-factory/design-factory",
|
|
3
3
|
"description": "Amadeus design system",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
|
-
"version": "19.0.
|
|
5
|
+
"version": "19.1.0-next.0",
|
|
6
6
|
"dependencies": {
|
|
7
7
|
"tslib": "^2.0.0"
|
|
8
8
|
},
|
|
9
9
|
"peerDependencies": {
|
|
10
|
-
"@agnos-ui/angular-bootstrap": "~0.
|
|
11
|
-
"@agnos-ui/core-bootstrap": "~0.
|
|
10
|
+
"@agnos-ui/angular-bootstrap": "~0.8.0",
|
|
11
|
+
"@agnos-ui/core-bootstrap": "~0.8.0",
|
|
12
12
|
"@angular/common": "^19.0.0",
|
|
13
13
|
"@angular/core": "^19.0.0",
|
|
14
14
|
"@angular/localize": "^19.0.0",
|
|
@@ -69,4 +69,4 @@
|
|
|
69
69
|
"module": "fesm2022/design-factory.mjs",
|
|
70
70
|
"typings": "index.d.ts",
|
|
71
71
|
"sideEffects": false
|
|
72
|
-
}
|
|
72
|
+
}
|
|
@@ -6,12 +6,12 @@ const project_tsconfig_paths_1 = require("../../utils/project_tsconfig_paths");
|
|
|
6
6
|
const compiler_host_1 = require("../../utils/typescript/compiler_host");
|
|
7
7
|
const style_updater_1 = require("../../utils/style-updater");
|
|
8
8
|
const fs_1 = require("fs");
|
|
9
|
-
const removed = JSON.parse((0, fs_1.readFileSync)(__dirname + '/files/removed.json', { encoding: '
|
|
9
|
+
const removed = JSON.parse((0, fs_1.readFileSync)(__dirname + '/files/removed.json', { encoding: 'utf-8' }));
|
|
10
10
|
const removedSet = new Set();
|
|
11
11
|
for (const removedKey of removed) {
|
|
12
12
|
removedSet.add(removedKey);
|
|
13
13
|
}
|
|
14
|
-
const renames = JSON.parse((0, fs_1.readFileSync)(__dirname + '/files/renames.json', { encoding: '
|
|
14
|
+
const renames = JSON.parse((0, fs_1.readFileSync)(__dirname + '/files/renames.json', { encoding: 'utf-8' }));
|
|
15
15
|
const renameMap = new Map();
|
|
16
16
|
for (const rename of renames) {
|
|
17
17
|
renameMap.set(rename.from, rename.to);
|
|
@@ -22,5 +22,7 @@
|
|
|
22
22
|
|
|
23
23
|
$au-tree-expand-icon-color-default: $primary !default,
|
|
24
24
|
$au-tree-expand-icon-color-hover: $primary-800 !default,
|
|
25
|
-
$au-tree-expand-icon-background-color-hover: var(--#{$prefix}primary-200) !default
|
|
25
|
+
$au-tree-expand-icon-background-color-hover: var(--#{$prefix}primary-200) !default,
|
|
26
|
+
|
|
27
|
+
$au-slider-tick-neutral-color: $gray-600 !default
|
|
26
28
|
);
|
|
@@ -187,6 +187,8 @@
|
|
|
187
187
|
.df-alert-collapse-main-text {
|
|
188
188
|
display: var(--#{$prefix}alert-collapse-display);
|
|
189
189
|
justify-content: var(--#{$prefix}alert-collapse-justify-content);
|
|
190
|
+
|
|
191
|
+
// @deprecated - will be removed in version 21
|
|
190
192
|
a.df-collapse.df-alert-collapse-icon {
|
|
191
193
|
@include ltr {
|
|
192
194
|
margin-left: var(--#{$prefix}alert-collapse-icon-margin-start); // same for all size ?
|
|
@@ -198,5 +200,17 @@
|
|
|
198
200
|
background-color: var(--#{$prefix}alert-collapse-link-hover-bg);
|
|
199
201
|
}
|
|
200
202
|
}
|
|
203
|
+
|
|
204
|
+
button.df-collapse.df-alert-collapse-icon {
|
|
205
|
+
@include ltr {
|
|
206
|
+
margin-left: var(--#{$prefix}alert-collapse-icon-margin-start); // same for all size ?
|
|
207
|
+
}
|
|
208
|
+
@include rtl {
|
|
209
|
+
margin-right: var(--#{$prefix}alert-collapse-icon-margin-start);
|
|
210
|
+
}
|
|
211
|
+
&:hover:not([aria-disabled='true']) {
|
|
212
|
+
background-color: var(--#{$prefix}alert-collapse-link-hover-bg);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
201
215
|
}
|
|
202
216
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
@import '../link/link.mixins';
|
|
2
2
|
|
|
3
|
+
// @deprecated - will be removed in version 21
|
|
3
4
|
a.df-collapse[aria-disabled='true'] {
|
|
4
5
|
color: var(--#{$prefix}collapse-disabled-color);
|
|
5
6
|
display: var(--#{$prefix}collapse-disabled-display);
|
|
@@ -10,6 +11,7 @@ a.df-collapse[aria-disabled='true'] {
|
|
|
10
11
|
border: none;
|
|
11
12
|
}
|
|
12
13
|
|
|
14
|
+
// @deprecated - will be removed in version 21
|
|
13
15
|
// Links styles override
|
|
14
16
|
a.df-collapse {
|
|
15
17
|
--#{$prefix}collapse-link-color: #{$df-collapse-link-color};
|
|
@@ -36,3 +38,57 @@ a.df-collapse {
|
|
|
36
38
|
@include df-link();
|
|
37
39
|
}
|
|
38
40
|
}
|
|
41
|
+
|
|
42
|
+
button.df-collapse {
|
|
43
|
+
@extend .btn, .btn-link;
|
|
44
|
+
|
|
45
|
+
padding: 0;
|
|
46
|
+
border-radius: 0;
|
|
47
|
+
border-width: 0;
|
|
48
|
+
--#{$prefix}collapse-link-color: #{$df-collapse-link-color};
|
|
49
|
+
--#{$prefix}collapse-link-decoration: #{$df-collapse-link-decoration};
|
|
50
|
+
--#{$prefix}collapse-disabled-color: #{$df-collapse-disabled-color};
|
|
51
|
+
--#{$prefix}collapse-disabled-display: #{$df-collapse-disabled-display};
|
|
52
|
+
--#{$prefix}collapse-disabled-cursor: #{$df-collapse-disabled-cursor};
|
|
53
|
+
--#{$prefix}collapse-disabled-text-decoration: #{$df-collapse-disabled-text-decoration};
|
|
54
|
+
--#{$prefix}collapse-hover-border-bottom: #{$df-collapse-hover-border-bottom};
|
|
55
|
+
--#{$prefix}link-hover-border-bottom-width: #{$df-link-hover-border-bottom-width};
|
|
56
|
+
--#{$prefix}link-hover-color: #{shades-css-var('links', 'text-hover-color')};
|
|
57
|
+
--#{$prefix}link-hover-background: #{shades-css-var('links', 'bg-hover-color')};
|
|
58
|
+
--#{$prefix}link-border-bottom: #{$df-link-border-bottom};
|
|
59
|
+
|
|
60
|
+
display: inline-flex;
|
|
61
|
+
align-items: center;
|
|
62
|
+
gap: var(--#{$prefix}btn-icon-margin-end);
|
|
63
|
+
|
|
64
|
+
color: var(--#{$prefix}collapse-link-color);
|
|
65
|
+
text-decoration: var(--#{$prefix}collapse-link-decoration);
|
|
66
|
+
border-bottom: var(--#{$prefix}collapse-hover-border-bottom) transparent;
|
|
67
|
+
|
|
68
|
+
&:hover:not(:disabled) {
|
|
69
|
+
color: var(--#{$prefix}link-hover-color);
|
|
70
|
+
background-color: var(--#{$prefix}link-hover-background);
|
|
71
|
+
border-bottom: var(--#{$prefix}link-border-bottom);
|
|
72
|
+
border-bottom-width: var(--#{$prefix}link-hover-border-bottom-width);
|
|
73
|
+
text-decoration: var(--#{$prefix}link-hover-text-decoration);
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&:disabled {
|
|
77
|
+
color: var(--#{$prefix}collapse-disabled-color);
|
|
78
|
+
display: var(--#{$prefix}collapse-disabled-display);
|
|
79
|
+
cursor: var(--#{$prefix}collapse-disabled-cursor);
|
|
80
|
+
text-decoration: var(--#{$prefix}collapse-disabled-text-decoration);
|
|
81
|
+
|
|
82
|
+
// Links styles override
|
|
83
|
+
border: none;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
[class*='icon-']:only-of-type,
|
|
87
|
+
[class*='fa-']:only-of-type {
|
|
88
|
+
&::before {
|
|
89
|
+
// override of the margins added by _buttons.scss
|
|
90
|
+
margin-left: 0 !important;
|
|
91
|
+
margin-right: 0 !important;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
}
|
|
@@ -57,3 +57,69 @@
|
|
|
57
57
|
@content;
|
|
58
58
|
}
|
|
59
59
|
}
|
|
60
|
+
|
|
61
|
+
@mixin df-input-withicon-append {
|
|
62
|
+
@include ltr {
|
|
63
|
+
border-right-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
64
|
+
@include df-iwi-root-right('.df-input-datepicker-range') {
|
|
65
|
+
border-left: var(--#{$prefix}iwi-dpr-to-border-left) !important;
|
|
66
|
+
border-top-left-radius: var(--#{$prefix}iwi-dpr-to-border-radius-top-left);
|
|
67
|
+
border-bottom-left-radius: var(--#{$prefix}iwi-dpr-to-border-radius-bottom-left);
|
|
68
|
+
}
|
|
69
|
+
@include df-iwi-root-left('.df-input-datepicker-range.df-focused') {
|
|
70
|
+
border-left: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
@include rtl {
|
|
74
|
+
border-left-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
75
|
+
@include df-iwi-root-right('.df-input-datepicker-range') {
|
|
76
|
+
border-right: var(--#{$prefix}iwi-dpr-to-border-left) !important;
|
|
77
|
+
border-top-right-radius: var(--#{$prefix}iwi-dpr-to-border-radius-top-left);
|
|
78
|
+
border-bottom-right-radius: var(--#{$prefix}iwi-dpr-to-border-radius-bottom-left);
|
|
79
|
+
}
|
|
80
|
+
@include df-iwi-root-left('.df-input-datepicker-range.df-focused') {
|
|
81
|
+
border-right: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
@include df-iwi-root-left('.df-input-datepicker-range.df-focused') {
|
|
86
|
+
border-top: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
87
|
+
border-bottom: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
@include df-iwi-root-right('.df-input-datepicker-range.df-focused') {
|
|
91
|
+
border-top: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
92
|
+
border-bottom: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
box-shadow: none; // override mandatory
|
|
96
|
+
&:focus {
|
|
97
|
+
@include ltr {
|
|
98
|
+
border-right-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
99
|
+
}
|
|
100
|
+
@include rtl {
|
|
101
|
+
border-left-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
102
|
+
}
|
|
103
|
+
box-shadow: none; // override mandatory
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
@mixin df-input-withicon-prepend() {
|
|
108
|
+
@include ltr {
|
|
109
|
+
border-left-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
110
|
+
}
|
|
111
|
+
@include rtl {
|
|
112
|
+
border-right-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
113
|
+
}
|
|
114
|
+
box-shadow: none; // override mandatory
|
|
115
|
+
padding-left: 0px; // override mandatory
|
|
116
|
+
&:focus {
|
|
117
|
+
@include ltr {
|
|
118
|
+
border-left-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
119
|
+
}
|
|
120
|
+
@include rtl {
|
|
121
|
+
border-right-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
122
|
+
}
|
|
123
|
+
box-shadow: none; // override mandatory
|
|
124
|
+
}
|
|
125
|
+
}
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
align-items: center;
|
|
19
19
|
border-top: var(--#{$prefix}iwi-input-border-width) solid $input-border-color;
|
|
20
20
|
border-bottom: var(--#{$prefix}iwi-input-border-width) solid $input-border-color;
|
|
21
|
+
min-width: $input-border-radius;
|
|
21
22
|
|
|
22
23
|
// This class is to be able to remove the icon in an input with icon and to come back to a normal input look
|
|
23
24
|
// even if the html of the input group is staying.
|
|
@@ -146,49 +147,7 @@ input[type='search']::-webkit-search-decoration {
|
|
|
146
147
|
|
|
147
148
|
.input-group.df-input-append {
|
|
148
149
|
input.df-input-withicon.append {
|
|
149
|
-
@include
|
|
150
|
-
border-right-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
151
|
-
@include df-iwi-root-right('.df-input-datepicker-range') {
|
|
152
|
-
border-left: var(--#{$prefix}iwi-dpr-to-border-left) !important;
|
|
153
|
-
border-top-left-radius: var(--#{$prefix}iwi-dpr-to-border-radius-top-left);
|
|
154
|
-
border-bottom-left-radius: var(--#{$prefix}iwi-dpr-to-border-radius-bottom-left);
|
|
155
|
-
}
|
|
156
|
-
@include df-iwi-root-left('.df-input-datepicker-range.df-focused') {
|
|
157
|
-
border-left: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
@include rtl {
|
|
161
|
-
border-left-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
162
|
-
@include df-iwi-root-right('.df-input-datepicker-range') {
|
|
163
|
-
border-right: var(--#{$prefix}iwi-dpr-to-border-left) !important;
|
|
164
|
-
border-top-right-radius: var(--#{$prefix}iwi-dpr-to-border-radius-top-left);
|
|
165
|
-
border-bottom-right-radius: var(--#{$prefix}iwi-dpr-to-border-radius-bottom-left);
|
|
166
|
-
}
|
|
167
|
-
@include df-iwi-root-left('.df-input-datepicker-range.df-focused') {
|
|
168
|
-
border-right: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
@include df-iwi-root-left('.df-input-datepicker-range.df-focused') {
|
|
173
|
-
border-top: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
174
|
-
border-bottom: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
@include df-iwi-root-right('.df-input-datepicker-range.df-focused') {
|
|
178
|
-
border-top: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
179
|
-
border-bottom: var(--#{$prefix}iwi-dpr-focus-border) !important;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
box-shadow: none; // override mandatory
|
|
183
|
-
&:focus {
|
|
184
|
-
@include ltr {
|
|
185
|
-
border-right-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
186
|
-
}
|
|
187
|
-
@include rtl {
|
|
188
|
-
border-left-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
189
|
-
}
|
|
190
|
-
box-shadow: none; // override mandatory
|
|
191
|
-
}
|
|
150
|
+
@include df-input-withicon-append();
|
|
192
151
|
}
|
|
193
152
|
|
|
194
153
|
@each $state, $data in $form-validation-states {
|
|
@@ -254,23 +213,7 @@ input[type='search']::-webkit-search-decoration {
|
|
|
254
213
|
|
|
255
214
|
.input-group.df-input-prepend {
|
|
256
215
|
input.df-input-withicon.prepend {
|
|
257
|
-
@include
|
|
258
|
-
border-left-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
259
|
-
}
|
|
260
|
-
@include rtl {
|
|
261
|
-
border-right-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
262
|
-
}
|
|
263
|
-
box-shadow: none; // override mandatory
|
|
264
|
-
padding-left: 0px; // override mandatory
|
|
265
|
-
&:focus {
|
|
266
|
-
@include ltr {
|
|
267
|
-
border-left-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
268
|
-
}
|
|
269
|
-
@include rtl {
|
|
270
|
-
border-right-color: var(--#{$prefix}iwi-border-between-color); // override mandatory
|
|
271
|
-
}
|
|
272
|
-
box-shadow: none; // override mandatory
|
|
273
|
-
}
|
|
216
|
+
@include df-input-withicon-prepend();
|
|
274
217
|
}
|
|
275
218
|
|
|
276
219
|
@each $state, $data in $form-validation-states {
|
|
@@ -308,6 +251,34 @@ input[type='search']::-webkit-search-decoration {
|
|
|
308
251
|
border-left-color: var(--#{$prefix}iwi-focused-border-between-color);
|
|
309
252
|
}
|
|
310
253
|
}
|
|
254
|
+
|
|
255
|
+
&:has(input.df-input-withicon.prepend:focus) {
|
|
256
|
+
@extend .df-focused;
|
|
257
|
+
}
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
.input-group:has(input.df-input-withicon) {
|
|
261
|
+
&:has(.input-group-append) {
|
|
262
|
+
@extend .df-input-append;
|
|
263
|
+
}
|
|
264
|
+
&:has(.input-group-prepend) {
|
|
265
|
+
@extend .df-input-prepend;
|
|
266
|
+
}
|
|
267
|
+
&:has(input.df-input-withicon:focus) {
|
|
268
|
+
@extend .df-focused;
|
|
269
|
+
}
|
|
270
|
+
.df-input-withicon:has(~ .input-group-append) {
|
|
271
|
+
@include df-input-withicon-append();
|
|
272
|
+
}
|
|
273
|
+
.input-group-prepend ~ .df-input-withicon {
|
|
274
|
+
@include df-input-withicon-prepend();
|
|
275
|
+
}
|
|
276
|
+
.df-input-withicon:disabled ~ .input-group-append {
|
|
277
|
+
@extend .df-disabled;
|
|
278
|
+
}
|
|
279
|
+
.input-group-prepend:has(~ .df-input-withicon:disabled) {
|
|
280
|
+
@extend .df-disabled;
|
|
281
|
+
}
|
|
311
282
|
}
|
|
312
283
|
|
|
313
284
|
.input-group.df-focused {
|
|
@@ -28,11 +28,13 @@
|
|
|
28
28
|
--#{$prefix}pagination-icon-hover-color: #{$df-pagination-icon-hover-color};
|
|
29
29
|
--#{$prefix}box-shadow-color: #{$df-pagination-box-shadow-color};
|
|
30
30
|
--#{$prefix}pagination-active-link-bg: #{$df-pagination-active-link-bg};
|
|
31
|
+
--#{$prefix}pagination-active-link-font-weight: #{$df-pagination-active-link-font-weight};
|
|
31
32
|
|
|
32
33
|
margin-bottom: var(--#{$prefix}pagination-margin-bottom);
|
|
33
34
|
.page-item {
|
|
34
35
|
@if meta.variable-exists($name: 'df-enableBranding2023') and $df-enableBranding2023 {
|
|
35
36
|
&.active > .page-link {
|
|
37
|
+
font-weight: var(--#{$prefix}pagination-active-link-font-weight);
|
|
36
38
|
&:hover {
|
|
37
39
|
background-color: var(--#{$prefix}pagination-hover-bg);
|
|
38
40
|
color: var(--#{$prefix}pagination-hover-color);
|
|
@@ -4,6 +4,7 @@ $df-pagination-size-lg: 3rem !default;
|
|
|
4
4
|
|
|
5
5
|
$df-pagination-hover-text-decoration: underline !default;
|
|
6
6
|
$df-pagination-active-link-bg: var(--#{$prefix}pagination-hover-bg) !default;
|
|
7
|
+
$df-pagination-active-link-font-weight: bold !default;
|
|
7
8
|
|
|
8
9
|
$df-pagination-border-radius: $pagination-border-radius !default;
|
|
9
10
|
$df-pagination-border-radius-sm: $pagination-border-radius-sm !default;
|
|
@@ -439,6 +439,7 @@
|
|
|
439
439
|
align-items: center;
|
|
440
440
|
margin-top: var(--#{$prefix}select-value-margin); // override todo depend on sizing
|
|
441
441
|
margin-bottom: var(--#{$prefix}select-value-margin); // override
|
|
442
|
+
max-width: 100%; // add
|
|
442
443
|
@include ltr {
|
|
443
444
|
padding-right: $input-padding-x;
|
|
444
445
|
}
|
|
@@ -501,6 +502,8 @@
|
|
|
501
502
|
.ng-dropdown-panel .ng-dropdown-panel-items {
|
|
502
503
|
.ng-optgroup,
|
|
503
504
|
.ng-option {
|
|
505
|
+
white-space: normal;
|
|
506
|
+
word-break: break-word;
|
|
504
507
|
&.ng-option-selected {
|
|
505
508
|
background-color: var(--#{$prefix}select-optionselected-background-color);
|
|
506
509
|
&.ng-option-marked {
|
|
@@ -870,6 +870,7 @@ $df-iwi-icon-font-color: var(--#{$prefix}primary) !default;
|
|
|
870
870
|
$df-link-icononly-color: var(--#{$prefix}gray-700) !default;
|
|
871
871
|
$df-link-icononly-focus-box-shadow-color: $df-link-icononly-color !default;
|
|
872
872
|
$df-link-icononly-height: 2.25rem !default;
|
|
873
|
+
$df-link-icononly-border-radius: 6px !default;
|
|
873
874
|
$df-link-focus-box-shadow: $input-btn-focus-box-shadow !default;
|
|
874
875
|
$df-link-disabled-color: $df-disabled-color !default;
|
|
875
876
|
$df-link-focus-box-shadow-color: var(--#{$prefix}primary-500) !default;
|