@design-factory/design-factory 19.1.2 → 19.1.4

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.
@@ -1,9 +1,9 @@
1
- import { ElementRef, OnInit, OnDestroy, DoCheck, AfterViewInit } from '@angular/core';
1
+ import { ElementRef, OnInit, OnDestroy, AfterViewInit, AfterViewChecked } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
3
  /**
4
4
  * My dfDatepickerRange directive
5
5
  */
6
- export declare class DfDatepickerRangeDirective implements OnInit, OnDestroy, DoCheck, AfterViewInit {
6
+ export declare class DfDatepickerRangeDirective implements OnInit, OnDestroy, AfterViewChecked, AfterViewInit {
7
7
  private inputsElements;
8
8
  private isDisabled;
9
9
  private readonly siblingsNode;
@@ -23,7 +23,7 @@ export declare class DfDatepickerRangeDirective implements OnInit, OnDestroy, Do
23
23
  * if the direction (rtl / ltr) is changing dynamically
24
24
  */
25
25
  updateDirection(): void;
26
- ngDoCheck(): void;
26
+ ngAfterViewChecked(): void;
27
27
  ngOnDestroy(): void;
28
28
  static ɵfac: i0.ɵɵFactoryDeclaration<DfDatepickerRangeDirective, never>;
29
29
  static ɵdir: i0.ɵɵDirectiveDeclaration<DfDatepickerRangeDirective, "[dfDatepickerRange]", ["dfDatepickerRange"], {}, {}, never, never, true, never>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@design-factory/design-factory",
3
3
  "description": "Amadeus design system",
4
4
  "license": "BSD-3-Clause",
5
- "version": "19.1.2",
5
+ "version": "19.1.4",
6
6
  "dependencies": {
7
7
  "tslib": "^2.0.0"
8
8
  },
@@ -53,6 +53,7 @@
53
53
 
54
54
  &:focus-visible {
55
55
  --#{$prefix}box-shadow-color: #{$df-card-focusable-focus-box-shadow-color};
56
+
56
57
  &:not(:hover):not(:active) {
57
58
  color: var(--#{$prefix}card-focusable-color);
58
59
  }
@@ -146,30 +147,47 @@
146
147
  }
147
148
  }
148
149
 
150
+ .card-group {
151
+ --#{$prefix}card-box-shadow: #{$card-box-shadow};
152
+ --#{$prefix}card-border-radius: #{$card-border-radius};
153
+ }
154
+
149
155
  @include media-breakpoint-up(md) {
150
156
  .card-group {
151
157
  box-shadow: var(--#{$prefix}card-box-shadow);
152
- border-bottom-right-radius: var(--#{$prefix}card-border-radius);
153
- border-bottom-left-radius: var(--#{$prefix}card-border-radius);
158
+ border-radius: var(--#{$prefix}card-border-radius);
154
159
 
155
160
  .card {
156
161
  box-shadow: none;
162
+ border-radius: 0;
157
163
 
158
164
  &:not(:last-of-type) {
159
165
  border-inline-end: var(--#{$prefix}card-group-between-border-width) solid
160
166
  var(--#{$prefix}card-group-between-border-color);
161
167
  }
162
168
 
163
- &:first-of-type,
164
- &:first-of-type .card-img-top {
165
- border-start-start-radius: var(--#{$prefix}card-border-radius);
166
- border-start-end-radius: 0;
169
+ .card-img-top {
170
+ border-radius: 0;
167
171
  }
168
172
 
169
- &:last-of-type,
170
- &:last-of-type .card-img-top {
171
- border-start-end-radius: var(--#{$prefix}card-border-radius);
172
- border-start-start-radius: 0;
173
+ &:first-of-type {
174
+ border-end-start-radius: var(--#{$prefix}card-border-radius);
175
+
176
+ &,
177
+ & .card-img-top {
178
+ border-start-start-radius: var(--#{$prefix}card-border-radius);
179
+ border-start-end-radius: 0;
180
+ }
181
+ }
182
+
183
+ &:last-of-type {
184
+ border-end-end-radius: var(--#{$prefix}card-border-radius);
185
+
186
+ &,
187
+ & .card-img-top {
188
+ border-start-end-radius: var(--#{$prefix}card-border-radius);
189
+ border-start-start-radius: 0;
190
+ }
173
191
  }
174
192
  }
175
193
  }
@@ -348,6 +348,7 @@ ngb-datepicker {
348
348
 
349
349
  .input-group {
350
350
  --#{$prefix}iwi-dpr-focus-border: #{$df-input-datepicker-range-focus-border};
351
+ box-shadow: none !important;
351
352
  }
352
353
  }
353
354
 
@@ -273,13 +273,16 @@
273
273
  cursor: var(--#{$prefix}select-disabled-cursor);
274
274
  }
275
275
 
276
+ .ng-arrow {
277
+ &:before {
278
+ color: var(--#{$prefix}disabled-color);
279
+ }
280
+ }
281
+
276
282
  .ng-value {
277
283
  background-color: var(--#{$prefix}select-disabled-bg) !important; // override
278
284
  .badge {
279
- // add
280
- cursor: var(--#{$prefix}select-disabled-cursor);
281
- background-color: var(--#{$prefix}select-disabled-bg);
282
- color: var(--#{$prefix}select-disabled-color);
285
+ @extend [disabled];
283
286
  }
284
287
  }
285
288
  }
@@ -289,17 +292,6 @@
289
292
  > .ng-select-container {
290
293
  background-color: var(--#{$prefix}select-readonly-bg);
291
294
  color: var(--#{$prefix}select-readonly-color);
292
-
293
- .badge {
294
- // add
295
- background-color: var(--#{$prefix}select-readonly-bg);
296
- color: var(--#{$prefix}select-readonly-color);
297
- }
298
-
299
- .ng-arrow-wrapper {
300
- // override
301
- cursor: default;
302
- }
303
295
  }
304
296
  }
305
297
  @each $state, $data in $form-validation-states {
@@ -604,9 +596,6 @@
604
596
  margin-left: var(--#{$prefix}select-arrow-wrapper-margin-right);
605
597
  }
606
598
  display: flex;
607
- &:hover {
608
- background-color: var(--#{$prefix}select-arrow-wrapper-hover-background-color);
609
- }
610
599
  text-align: var(--#{$prefix}select-arrow-text-align);
611
600
  .ng-arrow {
612
601
  width: var(--#{$prefix}select-arrow-width) !important;
@@ -617,6 +606,11 @@
617
606
  }
618
607
  }
619
608
  }
609
+ &:not(.ng-select-disabled):not(.df-ng-select-readonly) {
610
+ .ng-arrow-wrapper:hover {
611
+ background-color: var(--#{$prefix}select-arrow-wrapper-hover-background-color);
612
+ }
613
+ }
620
614
 
621
615
  .ng-dropdown-panel {
622
616
  background-color: #fff;
@@ -954,6 +954,7 @@ $form-select-focus-box-shadow: $input-btn-focus-box-shadow !default;
954
954
  $df-select-optionselected-background-color: var(--#{$prefix}primary-200) !default;
955
955
  $df-select-panel-box-shadow: $df-box-shadow !default;
956
956
  $df-select-panel-border: none !default;
957
+ $df-select-disabled-bg: var(--#{$prefix}gray-200) !default;
957
958
 
958
959
  // Sidenav
959
960
  $df-sidenav-item-active-bg-color: var(--#{$prefix}primary-200) !default; // todo define a var for this ?