@colijnit/sharedcomponents 1.0.67 → 1.0.69

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.
Files changed (27) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +67 -8
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +85 -47
  5. package/esm2015/lib/components/date-planning/date-planning.component.js +4 -1
  6. package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +5 -5
  7. package/esm2015/lib/enum/calendar-view.enum.js +2 -1
  8. package/esm2015/lib/enum/icon.enum.js +1 -1
  9. package/esm2015/lib/model/icon-svg.js +3 -3
  10. package/esm2015/lib/utils/calendar.utils.js +41 -2
  11. package/fesm2015/colijnit-sharedcomponents.js +134 -53
  12. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  13. package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +2 -0
  14. package/lib/components/date-planning/component/agenda/style/_layout.scss +68 -57
  15. package/lib/components/date-planning/component/agenda/style/_material-definition.scss +1 -1
  16. package/lib/components/date-planning/date-planning.component.d.ts +1 -0
  17. package/lib/components/date-planning/style/_layout.scss +1 -0
  18. package/lib/enum/calendar-view.enum.d.ts +1 -0
  19. package/lib/utils/calendar.utils.d.ts +1 -0
  20. package/package.json +1 -1
  21. package/3rdpartylicenses.txt +0 -1200
  22. package/favicon.ico +0 -0
  23. package/index.html +0 -12
  24. package/main.ed1d93bd7cd10954d7ec.js +0 -1
  25. package/polyfills.907fe9d1887c5de17993.js +0 -1
  26. package/runtime.8aac21847ed3d3829cca.js +0 -1
  27. package/styles.42e2561063e306e59f45.css +0 -1
@@ -22,6 +22,7 @@ export declare class AgendaHeaderComponent implements OnInit, OnDestroy, AfterCo
22
22
  set firstAvailableDate(value: Date);
23
23
  get firstAvailableDate(): Date;
24
24
  set eventsPerDay(value: AgendaEventPerDay[]);
25
+ viewSelection: boolean;
25
26
  viewChange: EventEmitter<CalendarView>;
26
27
  selectedDateChange: EventEmitter<Date>;
27
28
  rangeChange: EventEmitter<Date>;
@@ -45,4 +46,5 @@ export declare class AgendaHeaderComponent implements OnInit, OnDestroy, AfterCo
45
46
  */
46
47
  private _resizeHost;
47
48
  private _prepareHeaderData;
49
+ capitalizeString(label: string): string;
48
50
  }
@@ -16,7 +16,6 @@
16
16
  display: flex;
17
17
  width: inherit;
18
18
  height: $agenda-week-view-header-height;
19
- background: white;
20
19
  z-index: 9001;
21
20
  }
22
21
 
@@ -41,30 +40,27 @@
41
40
  align-items: center;
42
41
  justify-content: center;
43
42
  }
44
-
45
43
  .week-day-label {
46
- margin: 0.25em;
47
- padding: 0.25em;
48
- background: white;
49
- pointer-events: none;
44
+ margin: 0;
45
+ padding: 0;
50
46
  position: relative;
51
47
  flex-basis: 100%;
52
48
  display: flex;
49
+ gap: 10px;
53
50
  flex-direction: column;
54
51
  align-items: center;
55
52
  justify-content: center;
56
- border: 1px solid $color-border;
57
-
53
+ border: none;
54
+ cursor: pointer;
55
+ &:not(.days-around) {
56
+ pointer-events: none;
57
+ }
58
58
  .weekday-description, .weekday-value, .day-description {
59
59
  color: $color-dark;
60
60
  }
61
-
62
61
  &.selectable {
63
62
  pointer-events: all;
64
63
  }
65
-
66
-
67
-
68
64
  &.selectable:not(.selected) {
69
65
  cursor: pointer;
70
66
  color: $color-label;
@@ -77,73 +73,57 @@
77
73
  }
78
74
  }
79
75
  }
80
-
81
76
  .add-unit-icon, .sub-unit-icon {
82
77
  pointer-events: all;
83
78
  }
84
-
85
- &:hover {
86
- background: $color-border;
87
- }
88
79
  }
89
-
90
80
  .weekday-description {
91
81
  color: $color-inactive-day;
92
82
  font-size: 14px;
93
83
  text-transform: uppercase;
94
84
  margin-top: 7px;
95
85
  }
96
-
97
86
  .weekday-value {
98
87
  color: $color-inactive-day;
99
88
  font-size: $agenda-week-label-value-font-size;
100
-
101
89
  }
102
-
103
90
  .sub-unit-icon {
104
91
  position: absolute;
105
92
  left: 7px;
106
93
  }
107
-
108
94
  .add-unit-icon {
109
95
  position: absolute;
110
96
  right: 7px;
111
97
  }
112
-
113
98
  .day-description {
114
99
  color: $color-inactive-day;
115
100
  font-size: $agenda-week-label-value-font-size;
116
101
  font-weight: bold;
117
102
  }
118
-
119
103
  .month-description {
120
- top: 1px;
104
+ top: 15px;
121
105
  left: 3px;
122
106
  font-size: 11px;
123
107
  text-transform: capitalize;
124
108
  position: absolute;
125
109
  width: 100px;
126
110
  }
127
-
128
111
  .view-wrapper {
129
112
  display: flex;
130
113
  width: 100%;
131
114
  margin-top: -1px;
132
115
  }
133
-
134
116
  .week-select-view {
135
117
  display: flex;
136
118
  position: relative;
137
119
  padding: 50px;
138
120
  height: 100%;
139
121
  }
140
-
141
122
  .week-day {
142
123
  display: flex;
143
124
  position: relative;
144
125
  flex-basis: 100%;
145
126
  }
146
-
147
127
  @media screen and (max-width: $xs-width) {
148
128
  .popup-card-content {
149
129
  padding: 0 0 15px !important;
@@ -157,48 +137,58 @@
157
137
  bottom: 0;
158
138
  }
159
139
  }
160
-
161
140
  agenda {
162
141
  position: relative;
163
142
  }
164
-
165
143
  .agenda-content-wrapper {
166
144
  min-width: 0 !important;
167
145
  }
168
-
169
146
  agenda-header {
170
147
  width: 100% !important;
171
148
  }
172
-
173
149
  .agenda-header-wrapper {
174
150
  padding: 0 50px;
175
151
  height: auto;
176
-
177
- .week-day-label {
178
-
179
- .sub-unit-icon {
180
- height: 100%;
181
- width: 50px;
182
- left: -50px;
183
- }
184
-
185
- .add-unit-icon {
186
- height: 100%;
187
- width: 50px;
188
- right: -50px;
189
- }
190
-
191
- @media screen and (max-width: $xs-width) {
152
+ gap: 10px;
153
+ margin-top: 30px;
154
+ &.days-around {
155
+ padding: 0;
156
+ margin: 0;
157
+ gap: 5px;
158
+ background: transparent;
159
+ justify-content: center;
160
+ .week-day-label {
192
161
  .sub-unit-icon {
193
- width: 25px;
194
- left: -25px;
162
+ height: 24px;
163
+ width: 24px;
164
+ left: -30px;
165
+ padding: 5px;
195
166
  }
196
-
197
167
  .add-unit-icon {
198
- width: 25px;
199
- right: -25px;
168
+ height: 24px;
169
+ width: 24px;
170
+ right: -30px;
171
+ padding: 5px;
200
172
  }
201
173
  }
174
+ }
175
+ .week-day-label {
176
+ .sub-unit-icon {
177
+ height: 30px;
178
+ width: 30px;
179
+ left: 0;
180
+ background: #f5f5fa;
181
+ border-radius: 100%;
182
+ padding: 7px
183
+ }
184
+ .add-unit-icon {
185
+ height: 30px;
186
+ width: 30px;
187
+ right: 0;
188
+ background: #f5f5fa;
189
+ border-radius: 100%;
190
+ padding: 7px;
191
+ }
202
192
 
203
193
  .weekday-description {
204
194
  font-size: 14px;
@@ -208,16 +198,37 @@
208
198
  .weekday-value {
209
199
  line-height: 30px;
210
200
  }
211
-
201
+ &.days-around {
202
+ width: 45px;
203
+ height: 45px;
204
+ flex-basis: 45px;
205
+ border-radius: 100%;
206
+ border: none;
207
+ background: transparent;
208
+ margin: 0;
209
+ padding: 0;
210
+ gap: 0;
211
+ .weekday-value {
212
+ display: block;
213
+ font-size: 12px;
214
+ line-height: 1.2;
215
+ }
216
+ &.selected {
217
+ background: #1A73E8;
218
+ .weekday-value {
219
+ color: #FFF;
220
+ }
221
+ }
222
+ }
212
223
  @media screen and (min-width: $sm-width) {
213
224
  .weekday-value {
214
- font-size: 18px;
225
+ font-size: 16px;
215
226
  }
216
227
  }
217
228
  @media screen and (max-width: $xs-width) {
218
229
  .weekday-value {
219
230
  line-height: 20px;
220
- font-size: 9px;
231
+ font-size: 12px;
221
232
  }
222
233
  }
223
234
  }
@@ -5,7 +5,7 @@ $color-label: #5B6875;
5
5
  $color-dark: #171721;
6
6
  $color-border: rgba(grey, 0.4);
7
7
  $color-inactive-day: rgba($color-dark, 0.2);
8
- $agenda-week-label-value-font-size: 22px;
8
+ $agenda-week-label-value-font-size: 16px;
9
9
  $xs-width: 600px;
10
10
  $sm-width: 960px;
11
11
  $md-width: 1280px;
@@ -13,6 +13,7 @@ export declare class DatePlanningComponent {
13
13
  buttonLabel: string;
14
14
  eventsPerDay: AgendaEventPerDay[];
15
15
  view: CalendarView;
16
+ viewSelection: boolean;
16
17
  readonly eventChecked: EventEmitter<any>;
17
18
  readonly selectedDateChange: EventEmitter<Date>;
18
19
  readonly rangeChange: EventEmitter<Date>;
@@ -35,6 +35,7 @@
35
35
  width: 100%;
36
36
  height: 100%;
37
37
  flex-direction: column;
38
+ display: flex;
38
39
  }
39
40
 
40
41
  calendar {
@@ -1,5 +1,6 @@
1
1
  export declare enum CalendarView {
2
2
  DayView = "DAY",
3
+ DaysAround = "DAYS_AROUND",
3
4
  WeekView = "WEEK",
4
5
  WeekSelectView = "WEEK_SELECT",
5
6
  WeekPlanningView = "WEEK_PLANNING",
@@ -7,4 +7,5 @@ export declare class CalendarUtils {
7
7
  constructor(_locale: LanguageCode);
8
8
  static GetDayHours(day: Date): Date[];
9
9
  static GetDaysOfWeek(date: Date): Week;
10
+ static GetDaysAround(date: Date): Week;
10
11
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colijnit/sharedcomponents",
3
- "version": "1.0.67",
3
+ "version": "1.0.69",
4
4
  "private": false,
5
5
  "dependencies": {
6
6
  "chart.js": "4.3.0",