@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.
- package/bundles/colijnit-sharedcomponents.umd.js +67 -8
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/date-planning/component/agenda/agenda-header.component.js +85 -47
- package/esm2015/lib/components/date-planning/date-planning.component.js +4 -1
- package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +5 -5
- package/esm2015/lib/enum/calendar-view.enum.js +2 -1
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/model/icon-svg.js +3 -3
- package/esm2015/lib/utils/calendar.utils.js +41 -2
- package/fesm2015/colijnit-sharedcomponents.js +134 -53
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/date-planning/component/agenda/agenda-header.component.d.ts +2 -0
- package/lib/components/date-planning/component/agenda/style/_layout.scss +68 -57
- package/lib/components/date-planning/component/agenda/style/_material-definition.scss +1 -1
- package/lib/components/date-planning/date-planning.component.d.ts +1 -0
- package/lib/components/date-planning/style/_layout.scss +1 -0
- package/lib/enum/calendar-view.enum.d.ts +1 -0
- package/lib/utils/calendar.utils.d.ts +1 -0
- package/package.json +1 -1
- package/3rdpartylicenses.txt +0 -1200
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/main.ed1d93bd7cd10954d7ec.js +0 -1
- package/polyfills.907fe9d1887c5de17993.js +0 -1
- package/runtime.8aac21847ed3d3829cca.js +0 -1
- 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
|
|
47
|
-
padding: 0
|
|
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:
|
|
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:
|
|
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
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
194
|
-
|
|
162
|
+
height: 24px;
|
|
163
|
+
width: 24px;
|
|
164
|
+
left: -30px;
|
|
165
|
+
padding: 5px;
|
|
195
166
|
}
|
|
196
|
-
|
|
197
167
|
.add-unit-icon {
|
|
198
|
-
|
|
199
|
-
|
|
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:
|
|
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:
|
|
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:
|
|
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>;
|