@colijnit/corecomponents_v12 256.1.5 → 256.1.7

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.
@@ -6,6 +6,8 @@ export declare class CalendarTemplateComponent {
6
6
  weekNumbers: number[];
7
7
  locale: string;
8
8
  highlightDaysBetweenDates: boolean;
9
+ showButtons: boolean;
10
+ doubleCalendar: boolean;
9
11
  set selectedDate(date: Date);
10
12
  get selectedDate(): Date;
11
13
  set secondSelectedDate(date: Date);
@@ -13,7 +15,10 @@ export declare class CalendarTemplateComponent {
13
15
  set secondHoveringDate(date: Date);
14
16
  get secondHoveringDate(): Date;
15
17
  dateSelected: EventEmitter<Date>;
18
+ secondDateSelected: EventEmitter<Date>;
16
19
  hoveringDate: EventEmitter<Date>;
20
+ clickedOutside: EventEmitter<void>;
21
+ clearDates: EventEmitter<void>;
17
22
  showCalendarBody: boolean;
18
23
  showMonthSelection: boolean;
19
24
  showYearSelection: boolean;
@@ -36,6 +41,7 @@ export declare class CalendarTemplateComponent {
36
41
  private _secondHoveringDate;
37
42
  private _secondSelectedDate;
38
43
  private _selectedDate;
44
+ private _initialSelectedDate;
39
45
  showClass(): boolean;
40
46
  ngOnInit(): void;
41
47
  prevMonth(): void;
@@ -57,4 +63,8 @@ export declare class CalendarTemplateComponent {
57
63
  private _capitalizeFirstLetter;
58
64
  private calculateWeekNumbers;
59
65
  getISOWeek(date: Date): number;
66
+ setAndClose(): void;
67
+ clearDate(): void;
68
+ closeDate(): void;
69
+ private closePopup;
60
70
  }
@@ -25,6 +25,7 @@
25
25
  align-items: center;
26
26
  margin-bottom: $cc-co-calendar-header-margin-bottom;
27
27
  user-select: none;
28
+ padding: 10px;
28
29
 
29
30
  .calendar-change-month-button {
30
31
  cursor: pointer;
@@ -39,11 +40,13 @@
39
40
 
40
41
  .calendar-header-title {
41
42
  font-size: $cc-co-calendar-header-title-font-size;
43
+ font-weight: 500;
42
44
  }
43
45
  }
44
46
  }
45
47
  .calendar-wrapper {
46
48
  display: flex;
49
+ padding: 0 15px;
47
50
  .week-wrapper {
48
51
  display: grid;
49
52
  grid-template-columns: repeat(1, 1fr);
@@ -75,6 +78,7 @@
75
78
  flex-direction: column;
76
79
  align-items: center;
77
80
  justify-content: center;
81
+ position: relative;
78
82
  height: $cc-co-calendar-day-height;
79
83
  margin: $cc-co-calendar-day-margin;
80
84
  cursor: pointer;
@@ -83,8 +87,18 @@
83
87
  }
84
88
 
85
89
  &:hover {
86
- background-color: $cc-co-calendar-day-hover-background-color;
87
- color: $cc-co-calendar-day-hover-color;
90
+ &:before {
91
+ background-color: $cc-co-calendar-day-hover-background-color;
92
+ border-radius: $cc-co-calendar-selected-day-start-border-radius;
93
+ position: absolute;
94
+ top: 0;
95
+ left: -5px;
96
+ width: 40px;
97
+ height: 40px;
98
+ content: '';
99
+ z-index: 0;
100
+ }
101
+
88
102
  }
89
103
 
90
104
  &.selected {
@@ -121,6 +135,8 @@
121
135
  .day-number {
122
136
  font-size: $cc-co-calendar-day-number-font-size;
123
137
  font-weight: $cc-co-calendar-day-number-font-weight;
138
+ position: relative;
139
+ z-index: 2;
124
140
  }
125
141
 
126
142
  .highlighted-day {
@@ -134,9 +150,24 @@
134
150
  border-radius: $cc-co-calendar-selected-day-end-border-radius;
135
151
  }
136
152
  .selected-day {
137
- background-color: $cc-co-calendar-selected-day-background-color;
138
153
  color: $cc-co-calendar-selected-day-color;
139
- border-radius: $cc-co-calendar-selected-day-start-border-radius;
154
+ &:before {
155
+ background-color: $cc-co-calendar-selected-day-background-color;
156
+ border-radius: $cc-co-calendar-selected-day-start-border-radius;
157
+ position: absolute;
158
+ top: 0;
159
+ left: -5px;
160
+ width: 40px;
161
+ height: 40px;
162
+ content: '';
163
+ z-index: 1;
164
+ }
165
+ &:hover {
166
+ &:before {
167
+ background-color: $cc-co-calendar-selected-day-background-color;
168
+ border-radius: $cc-co-calendar-selected-day-start-border-radius;
169
+ }
170
+ }
140
171
  }
141
172
 
142
173
  .selection-grid {
@@ -156,4 +187,26 @@
156
187
  }
157
188
  }
158
189
  }
190
+ .selected-date-display {
191
+ display: flex;
192
+ flex-direction: column;
193
+ padding: 15px;
194
+ background: $cc-co-calendar-selected-day-background-color;
195
+ color: #FFF;
196
+ font-size: 16px;
197
+ min-height: 85px;
198
+ .selected-date-day {
199
+ font-size: 30px;
200
+ }
201
+ }
202
+ .calendar-action-buttons {
203
+ display: flex;
204
+ flex-direction: column;
205
+ align-items: flex-end;
206
+ gap: 15px;
207
+ padding: 15px 20px;
208
+ font-size: 12px;
209
+ color: $cc-co-calendar-selected-day-background-color;
210
+ cursor: pointer;
211
+ }
159
212
  }
@@ -1,6 +1,6 @@
1
1
  $cc-co-calendar-font-family: $cc-font-family !default;
2
2
  $cc-co-calendar-width: auto !default;
3
- $cc-co-calendar-padding: 10px !default;
3
+ $cc-co-calendar-padding: 0 !default;
4
4
  $cc-co-calendar-background-color: white !default;
5
5
  $cc-co-calendar-border-radius: 5px !default;
6
6
  $cc-co-calendar-border: 1px solid #CCCCCC !default;
@@ -8,16 +8,16 @@ $cc-co-calendar-header-margin-bottom: 5px !default;
8
8
  $cc-co-calendar-change-month-button-border-radius: 5px !default;
9
9
  $cc-co-calendar-change-month-button-border: 0px solid #CCCCCC !default;
10
10
  $cc-co-calendar-change-month-button-padding: 5px !default;
11
- $cc-co-calendar-header-title-font-size: 12px !default;
12
- $cc-co-calendar-day-height: 34px !default;
11
+ $cc-co-calendar-header-title-font-size: 14px !default;
12
+ $cc-co-calendar-day-height: 40px !default;
13
13
  $cc-co-calendar-day-margin: 2px 0 !default;
14
- $cc-co-calendar-day-hover-background-color: $cc-color-action !default;
14
+ $cc-co-calendar-day-hover-background-color: #f8f8fa !default;
15
15
  $cc-co-calendar-day-hover-color: white !default;
16
16
  $cc-co-calendar-day-selected-background-color: $cc-color-action !default;
17
17
  $cc-co-calendar-day-selected-color: $cc-color-light !default;
18
- $cc-co-calendar-week-number-height: 36px !default;
18
+ $cc-co-calendar-week-number-height: 40px !default;
19
19
  $cc-co-calendar-week-number-margin: 0 2px 0 0 !default;
20
- $cc-co-calendar-week-number-font-size: 12px !default;
20
+ $cc-co-calendar-week-number-font-size: 10px !default;
21
21
  $cc-co-calendar-week-number-width: 30px !default;
22
22
  $cc-co-calendar-week-number-background: #F8F8FA !default;
23
23
  $cc-co-calendar-week-number-first-height: 30px !default;
@@ -28,9 +28,9 @@ $cc-co-calendar-month-or-year-hover-background-color: $cc-color-hover !default;
28
28
  $cc-co-calendar-month-or-year-hover-padding: 5px !default;
29
29
  $cc-co-calendar-weekday-font-size: 12px !default;
30
30
  $cc-co-calendar-weekday-height: 30px !default;
31
- $cc-co-calendar-weekday-width: 30px !default;
31
+ $cc-co-calendar-weekday-width: 28px !default;
32
32
  $cc-co-calendar-weekday-color: black !default;
33
- $cc-co-calendar-weekday-background: #F8F8FA !default;
33
+ $cc-co-calendar-weekday-background: transparent !default;
34
34
  $cc-co-calendar-weekday-margin: 0 1px !default;
35
35
  $cc-co-calendar-day-number-font-size: 12px !default;
36
36
  $cc-co-calendar-day-number-font-weight: normal !default;
@@ -39,8 +39,8 @@ $cc-co-calendar-highlighted-day-color: $cc-color-dark !default;
39
39
  $cc-co-calendar-highlighted-day-font-weight: normal !default;
40
40
  $cc-co-calendar-selected-day-background-color: $cc-color-action !default;
41
41
  $cc-co-calendar-selected-day-color: $cc-color-light !default;
42
- $cc-co-calendar-selected-day-start-border-radius: 100% 0 0 100% !default;
43
- $cc-co-calendar-selected-day-end-border-radius: 0 100% 100% 0 !default;
42
+ $cc-co-calendar-selected-day-start-border-radius: 100% !default;
43
+ $cc-co-calendar-selected-day-end-border-radius: 100% !default;
44
44
  $cc-co-calendar-selection-grid-gap: 15px !default;
45
45
  $cc-co-calendar-selection-grid-padding: 5px !default;
46
46
  $cc-co-calendar-z-index: 9999 !default;
@@ -15,4 +15,5 @@ export declare class DoubleCalendarComponent extends BaseInputDatePickerDirectiv
15
15
  handleSecondDateSelected(date: Date): void;
16
16
  outputRangeIfValid(): void;
17
17
  handleSecondHoveringDate(day: Date): void;
18
+ clearAllDates(): void;
18
19
  }
@@ -32,6 +32,7 @@ export declare class InputTextComponent extends BaseInputComponent<any> implemen
32
32
  leftIconData: SafeHtml | undefined;
33
33
  rightIconData: SafeHtml | undefined;
34
34
  selectOnFocus: boolean;
35
+ emptyPlace: boolean;
35
36
  noStyle: boolean;
36
37
  hideArrowButtons: boolean;
37
38
  get isDate(): boolean;
@@ -50,6 +51,7 @@ export declare class InputTextComponent extends BaseInputComponent<any> implemen
50
51
  handleDocumentMouseUp(event: MouseEvent): void;
51
52
  set model(value: any);
52
53
  get model(): any;
54
+ isFocusedOnDate: boolean;
53
55
  private _isLeftIconMouseDown;
54
56
  private _isRightIconMouseDown;
55
57
  constructor(formComponent: FormComponent, changeDetector: ChangeDetectorRef, overlayService: OverlayService, componentFactoryResolver: ComponentFactoryResolver, formUserChangeListener?: FormInputUserModelChangeListenerService, ngZoneWrapper?: NgZoneWrapperService, elementRef?: ElementRef);
@@ -71,7 +71,7 @@
71
71
  @include focus($cc-input-focused-border-style, $cc-input-focused-border-width, $cc-input-focused-border-color, $cc-input-border-radius);
72
72
  }
73
73
  }
74
- &.cc-input-focused, &.hasvalue, &.isDate {
74
+ &.cc-input-focused, &.hasvalue {
75
75
  label {
76
76
  transform: scale(0.92);
77
77
  top: $cc-input-label-top;
@@ -119,12 +119,6 @@
119
119
  }
120
120
  }
121
121
 
122
- co-input-text.invalid, co-input-text:not(.hasvalue).required {
123
- .input-text-wrapper {
124
- background-color: #ffe6e6;
125
- }
126
- }
127
-
128
122
  ::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */
129
123
  color: $cc-color-input-placeholder-color;
130
124
  font-style: $cc-input-placeholder-font-style;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/corecomponents_v12",
3
- "version": "256.1.5",
3
+ "version": "256.1.7",
4
4
  "description": "Colijn IT core components for Angular 12",
5
5
  "private": false,
6
6
  "peerDependencies": {