@colijnit/sharedcomponents 1.0.24 → 1.0.26

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 (24) hide show
  1. package/bundles/colijnit-sharedcomponents.umd.js +8 -3
  2. package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
  3. package/colijnit-sharedcomponents.metadata.json +1 -1
  4. package/esm2015/lib/components/circular-gauge/co-circular-gauge.component.js +4 -3
  5. package/esm2015/lib/components/statusbar/statusbar.component.js +2 -2
  6. package/esm2015/lib/enum/icon.enum.js +3 -1
  7. package/esm2015/lib/model/icon-svg.js +3 -1
  8. package/fesm2015/colijnit-sharedcomponents.js +8 -3
  9. package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
  10. package/lib/components/date-planning/component/agenda/style/_layout.scss +443 -0
  11. package/lib/components/date-planning/component/agenda/style/_material-definition.scss +11 -0
  12. package/lib/components/date-planning/component/agenda/style/_theme.scss +7 -0
  13. package/lib/components/date-planning/component/agenda/style/material.scss +5 -0
  14. package/lib/components/date-planning/component/calendar/style/_layout.scss +167 -0
  15. package/lib/components/date-planning/component/calendar/style/_material-definition.scss +7 -0
  16. package/lib/components/date-planning/component/calendar/style/_theme.scss +7 -0
  17. package/lib/components/date-planning/component/calendar/style/material.scss +5 -0
  18. package/lib/components/date-planning/style/_layout.scss +47 -0
  19. package/lib/components/date-planning/style/_material-definition.scss +0 -0
  20. package/lib/components/date-planning/style/_theme.scss +7 -0
  21. package/lib/components/date-planning/style/material.scss +5 -0
  22. package/lib/components/statusbar/statusbar.component.d.ts +0 -1
  23. package/lib/enum/icon.enum.d.ts +2 -0
  24. package/package.json +1 -1
@@ -0,0 +1,443 @@
1
+ @import "../../../../../style/mixin";
2
+
3
+ @include export-module('sc-agenda') {
4
+ .sc-agenda {
5
+ width: 100%;
6
+ display: flex;
7
+ flex-direction: row;
8
+ height: 100%;
9
+ overflow: hidden;
10
+
11
+ .no-user-select {
12
+ user-select: none;
13
+ }
14
+
15
+ .agenda-header-wrapper {
16
+ display: flex;
17
+ width: inherit;
18
+ height: $agenda-week-view-header-height;
19
+ background: white;
20
+ z-index: 9001;
21
+ }
22
+
23
+ .week-day {
24
+ display: flex;
25
+ position: relative;
26
+ flex-basis: 100%;
27
+ }
28
+
29
+ .content-wrapper {
30
+ display: flex;
31
+ width: 100%;
32
+ height: 100%;
33
+ flex-wrap: wrap;
34
+ }
35
+
36
+ .hour-label-placeholder {
37
+ display: flex;
38
+ flex-basis: $agenda-hour-view-labels-width;
39
+ flex-shrink: 0;
40
+ border: 1px solid $color_border;
41
+ align-items: center;
42
+ justify-content: center;
43
+ }
44
+
45
+ .week-day-label {
46
+ background: #f1f1f1;
47
+ pointer-events: none;
48
+ position: relative;
49
+ flex-basis: 100%;
50
+ display: flex;
51
+ flex-direction: column;
52
+ align-items: center;
53
+ justify-content: center;
54
+ border: 1px solid $color_border;
55
+
56
+ &.selectable {
57
+ pointer-events: all;
58
+ }
59
+
60
+ &.selected {
61
+ background: white;
62
+
63
+ .weekday-description, .weekday-value {
64
+ color: $color-active-light;
65
+ }
66
+ }
67
+
68
+ &.selectable:not(.selected) {
69
+ cursor: pointer;
70
+ color: $color-label;
71
+
72
+ &:not(:hover) {
73
+ background: none;
74
+
75
+ .weekday-description, .weekday-value, .day-description {
76
+ color: $color-dark;
77
+ }
78
+ }
79
+ }
80
+
81
+ .add-unit-icon, .sub-unit-icon {
82
+ pointer-events: all;
83
+ }
84
+
85
+ &:hover {
86
+ background: $color_border;
87
+ }
88
+ }
89
+
90
+ .weekday-description {
91
+ color: $color-inactive-day;
92
+ font-size: 14px;
93
+ text-transform: uppercase;
94
+ margin-top: 7px;
95
+ }
96
+
97
+ .weekday-value {
98
+ color: $color-inactive-day;
99
+ font-size: $agenda-week-label-value-font-size;
100
+ font-weight: bold;
101
+ }
102
+
103
+ .sub-unit-icon {
104
+ position: absolute;
105
+ left: 7px;
106
+ }
107
+
108
+ .add-unit-icon {
109
+ position: absolute;
110
+ right: 7px;
111
+ }
112
+
113
+ .day-description {
114
+ color: $color-inactive-day;
115
+ font-size: $agenda-week-label-value-font-size;
116
+ font-weight: bold;
117
+ }
118
+
119
+ .month-description {
120
+ top: 1px;
121
+ left: 3px;
122
+ font-size: 11px;
123
+ text-transform: capitalize;
124
+ position: absolute;
125
+ width: 100px;
126
+ }
127
+
128
+ .view-wrapper {
129
+ display: flex;
130
+ width: 100%;
131
+ margin-top: -1px;
132
+ }
133
+
134
+ .week-select-view {
135
+ display: flex;
136
+ position: relative;
137
+ padding: 50px;
138
+ height: 100%;
139
+ }
140
+
141
+ .week-day {
142
+ display: flex;
143
+ position: relative;
144
+ flex-basis: 100%;
145
+ }
146
+
147
+ @media screen and (max-width: $xs-width) {
148
+ .popup-card-content {
149
+ padding: 0 0 15px !important;
150
+ }
151
+ }
152
+ @media screen and (min-width: $sm-width) {
153
+ .select-agenda-button {
154
+ left: 50px;
155
+ float: left;
156
+ position: absolute;
157
+ bottom: 0;
158
+ }
159
+ }
160
+
161
+ agenda {
162
+ position: relative;
163
+ }
164
+
165
+ .agenda-content-wrapper {
166
+ min-width: 0 !important;
167
+ }
168
+
169
+ agenda-header {
170
+ width: 100% !important;
171
+ }
172
+
173
+ .agenda-header-wrapper {
174
+ padding: 0 50px;
175
+ 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) {
192
+ .sub-unit-icon {
193
+ width: 25px;
194
+ left: -25px;
195
+ }
196
+
197
+ .add-unit-icon {
198
+ width: 25px;
199
+ right: -25px;
200
+ }
201
+ }
202
+
203
+ .weekday-description {
204
+ font-size: 14px;
205
+ line-height: 20px;
206
+ }
207
+
208
+ .weekday-value {
209
+ line-height: 30px;
210
+ }
211
+
212
+ @media screen and (min-width: $sm-width) {
213
+ .weekday-value {
214
+ font-size: 18px;
215
+ }
216
+ }
217
+ @media screen and (max-width: $xs-width) {
218
+ .weekday-value {
219
+ line-height: 20px;
220
+ font-size: 9px;
221
+ }
222
+ }
223
+ }
224
+ }
225
+
226
+ @media screen and (max-width: $xs-width) {
227
+ .agenda-header-wrapper {
228
+ padding: 0 25px;
229
+ height: 60px !important;
230
+ }
231
+ }
232
+
233
+ .view-wrapper {
234
+ display: flex;
235
+ flex-direction: column;
236
+ width: 100%;
237
+
238
+ .week-day {
239
+ display: flex;
240
+ width: 100%;
241
+ height: 100%;
242
+
243
+ .week-select-container {
244
+ display: flex;
245
+ width: 100%;
246
+
247
+ .week-select-left {
248
+ width: 40%;
249
+
250
+ .no-events-banner {
251
+ display: flex;
252
+ width: 100%;
253
+ padding: 15px;
254
+ border-radius: 4px;
255
+ justify-content: space-evenly;
256
+ border: 1px solid #f7f5f4;
257
+ box-shadow: 0 0 15px 0 rgba(72, 79, 96, .30);
258
+ }
259
+
260
+ .week-select-list {
261
+ height: 100%;
262
+ padding: 10px;
263
+ margin: -10px 0 0 -10px;
264
+
265
+ agenda-events {
266
+ position: static;
267
+ flex-direction: column;
268
+ height: auto;
269
+
270
+ agenda-select-event {
271
+ position: static;
272
+ width: 100%;
273
+ display: flex;
274
+ margin: 0 0 20px;
275
+ height: auto;
276
+
277
+ &:last-child {
278
+ margin: 0;
279
+ }
280
+
281
+ &:hover .week-select-item {
282
+ background: $color_border;
283
+ }
284
+
285
+ .week-select-item {
286
+ display: flex;
287
+ width: 100%;
288
+ padding: 30px 25px 30px 100px;
289
+ border-radius: 4px;
290
+ justify-content: space-evenly;
291
+ border: 1px solid #f7f5f4;
292
+ list-style-type: none;
293
+ position: relative;
294
+ cursor: pointer;
295
+ box-shadow: 0 0 15px 0 rgba(72, 79, 96, .30);
296
+
297
+ &.selected {
298
+ background: $color-active-light;
299
+ border-color: $color-active-light;
300
+ color: #fff;
301
+
302
+ .select-icon {
303
+ path {
304
+ fill: #fff !important;
305
+ }
306
+
307
+ polygon {
308
+ fill: #fff !important;
309
+ }
310
+ }
311
+ }
312
+
313
+ .select-icon {
314
+ height: 50px;
315
+ width: 100px;
316
+ position: absolute;
317
+ left: 0;
318
+ top: 50%;
319
+ margin: -25px 0 0;
320
+ opacity: 1;
321
+ }
322
+
323
+ @media screen and (max-width: $xs-width) {
324
+ .select-icon {
325
+ height: 40px;
326
+ width: 80px;
327
+ margin: -20px 0 0;
328
+ }
329
+ }
330
+
331
+ .moment-name {
332
+ display: flex;
333
+ align-items: flex-start;
334
+ width: 100%;
335
+ flex-direction: column;
336
+
337
+ h2 {
338
+ margin: 5px 0 0;
339
+ }
340
+
341
+ }
342
+
343
+ }
344
+
345
+ @media screen and (max-width: $xs-width) {
346
+ .week-select-item {
347
+ padding: 20px 25px 20px 80px;
348
+ }
349
+ }
350
+
351
+ }
352
+ }
353
+
354
+ }
355
+ }
356
+
357
+ @media screen and (max-width: $md-width) {
358
+ .week-select-left {
359
+ width: 50%;
360
+ }
361
+ }
362
+ @media screen and (max-width: $sm-width) {
363
+ .week-select-left {
364
+ width: 100%;
365
+ height: 100%;
366
+ display: flex;
367
+ flex-direction: column;
368
+ margin: 0 0 20px;
369
+ }
370
+ }
371
+ @media screen and (max-width: $xs-width) {
372
+ .week-select-left {
373
+ h3 {
374
+ font-size: 14px;
375
+ }
376
+ }
377
+ }
378
+
379
+ .week-select-right {
380
+ width: 50%;
381
+ padding: 0 0 0 50px;
382
+
383
+ li {
384
+ display: flex;
385
+ align-items: center;
386
+ margin: 10px 0;
387
+ line-height: 190%;
388
+ list-style-type: none;
389
+
390
+ .moment-icon {
391
+ float: left;
392
+ margin: 0 0 0 -50px;
393
+ width: 30px;
394
+ height: 35px;
395
+ }
396
+ }
397
+ }
398
+
399
+ @media screen and (max-width: $sm-width) {
400
+ .week-select-right {
401
+ display: flex;
402
+ flex-direction: column;
403
+ width: 100%;
404
+ padding: 0 0 40px;
405
+ }
406
+ }
407
+ @media screen and (max-width: $xs-width) {
408
+ .week-select-right {
409
+ font-size: 13px;
410
+
411
+ h3 {
412
+ font-size: 14px;
413
+ }
414
+
415
+ li {
416
+ margin: 10px 0;
417
+ }
418
+ }
419
+ }
420
+ }
421
+
422
+ @media screen and (max-width: $sm-width) {
423
+ .week-select-container {
424
+ flex-direction: column-reverse;
425
+ }
426
+ }
427
+ }
428
+ }
429
+
430
+ @media screen and (max-width: $sm-width) {
431
+ :host {
432
+ flex-direction: column;
433
+ padding: 50px 50px 0;
434
+ }
435
+ }
436
+
437
+ @media screen and (max-width: $xs-width) {
438
+ :host {
439
+ padding: 25px 25px 0;
440
+ }
441
+ }
442
+ }
443
+ }
@@ -0,0 +1,11 @@
1
+ $agenda-week-view-header-height: 100px;
2
+ $agenda-hour-view-labels-width: 80px;
3
+ $color-active-light: #74B77F;
4
+ $color-label: #5B6875;
5
+ $color-dark: #171721;
6
+ $color-inactive-day: rgba($color-dark, 0.2);
7
+ $agenda-week-label-value-font-size: 2vw;
8
+ $xs-width: 600px;
9
+ $sm-width: 960px;
10
+ $md-width: 1280px;
11
+ $lg-width: 1920px;
@@ -0,0 +1,7 @@
1
+ @import "../../../../../style/mixin";
2
+
3
+ @include export-module('sc-agenda-theme') {
4
+ .sc-agenda {
5
+
6
+ }
7
+ }
@@ -0,0 +1,5 @@
1
+ @import "./material-definition";
2
+ @import "./layout";
3
+ @import "./theme";
4
+
5
+
@@ -0,0 +1,167 @@
1
+ @import "../../../../../style/mixin";
2
+
3
+ @include export-module('sc-calendar') {
4
+ .sc-calendar {
5
+
6
+ .calendar-header-row{
7
+ flex-direction: row;
8
+ box-sizing: border-box;
9
+ display: flex;
10
+ place-content: center space-between;
11
+ align-items: center;
12
+ }
13
+
14
+ .pointer-hover {
15
+ cursor: pointer;
16
+ }
17
+
18
+ icon {
19
+ width: 20px;
20
+ height: 20px;
21
+ }
22
+
23
+ .month, .year {
24
+ user-select: none;
25
+ }
26
+
27
+ .month {
28
+ margin-right: 10px;
29
+ }
30
+
31
+ .select-month-year-window {
32
+ z-index: 9001;
33
+ background: white;
34
+ }
35
+
36
+ default-ok-cancel-buttons {
37
+ align-self: center;
38
+ }
39
+
40
+ .vertical-divider {
41
+ flex: 0 0;
42
+ padding: 0;
43
+ height: 80%;
44
+ flex-basis: 1px;
45
+ margin-top: 5px;
46
+ }
47
+
48
+ .selected-month {
49
+ color: $color-light;
50
+ }
51
+
52
+ .input-date-window {
53
+ &.expanded {
54
+ box-shadow: 0 0 5px 0 rgba(72,79,96,0.25);
55
+ border: 1px solid;
56
+ border-radius: 5px;
57
+ }
58
+ position: relative;
59
+ z-index: 1000;
60
+ transform-origin: center;
61
+ pointer-events: none;
62
+ }
63
+
64
+ .calendar-content {
65
+ pointer-events: initial;
66
+ background: $color-light;
67
+ }
68
+
69
+ .month-changer {
70
+ height: 40px;
71
+ .month-change {
72
+ opacity: 0.5;
73
+ &:hover {
74
+ opacity: 1;
75
+ }
76
+ }
77
+ }
78
+
79
+ .month-year-display {
80
+ margin-left: 10px;
81
+ }
82
+
83
+ .view-changer icon {
84
+ width: 20px;
85
+ height: 20px;
86
+ [fill] {
87
+ fill: $color-action;
88
+ }
89
+ }
90
+
91
+
92
+ .week-row {
93
+ flex-direction: row;
94
+ box-sizing: border-box;
95
+ display: flex;
96
+ > div {
97
+ flex: 1;
98
+ text-align: center;
99
+ line-height: 33px;
100
+ }
101
+ }
102
+
103
+ .week-day-label,
104
+ .week-acronym,
105
+ .week-number {
106
+ background: $color-less-light;
107
+ }
108
+
109
+ .week-day-label,
110
+ .week-number {
111
+ font-weight: bold;
112
+ border: 0 solid $color-light;
113
+ }
114
+
115
+ .week-number {
116
+ border-top-width: 1px;
117
+ }
118
+
119
+ .week-day-label {
120
+ border-left-width: 1px;
121
+ }
122
+
123
+ .week-acronym {
124
+ color: $color-grey;
125
+ }
126
+
127
+ .calendar-view,
128
+ .week-day {
129
+ cursor: pointer;
130
+ border: 1px solid transparent;
131
+ &.in-month {
132
+ color: $color-dark;
133
+ }
134
+ &.is-selected,
135
+ &:hover {
136
+ color: $color-light;
137
+ font-weight: normal;
138
+ }
139
+ &.is-today {
140
+ color: $color-action;
141
+ font-weight: bold;
142
+ }
143
+ &.is-selected {
144
+ color: $color-light;
145
+ background: $color-active !important;
146
+ border-color: $color-active !important;
147
+ border-radius: 0;
148
+ }
149
+ &:hover {
150
+ background: $color-active-accent;
151
+ border-color: $color-active-accent;
152
+ }
153
+ }
154
+
155
+ .week-day {
156
+ color: $color-grey;
157
+ //border-radius: 50%;
158
+ }
159
+
160
+ .calendar-view {
161
+ line-height: 45px;
162
+ text-align: center;
163
+ border-radius: 10px;
164
+ width: 69px;
165
+ }
166
+ }
167
+ }
@@ -0,0 +1,7 @@
1
+ $color-grey: #DAD9D9;
2
+ $color-active-accent: #8faba6;
3
+ $color-active: #429777;
4
+ $color-light: #FFFFFF;
5
+ $color-dark: #171721;
6
+ $color-less-light: #F7FAFA;
7
+ $color-action: #4682b4;
@@ -0,0 +1,7 @@
1
+ @import "../../../../../style/mixin";
2
+
3
+ @include export-module('sc-calendar-theme') {
4
+ .sc-calendar {
5
+
6
+ }
7
+ }
@@ -0,0 +1,5 @@
1
+ @import "./material-definition";
2
+ @import "./layout";
3
+ @import "./theme";
4
+
5
+
@@ -0,0 +1,47 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('sc-date-planning-layout') {
4
+ .sc-date-planning {
5
+ display: flex;
6
+ flex-direction: column;
7
+ align-items: center;
8
+ min-height: 0;
9
+
10
+ .content-wrapper {
11
+ display: flex;
12
+ width: 100%;
13
+ flex-wrap: wrap;
14
+ height: 100%;
15
+ }
16
+
17
+ .agenda-wrapper {
18
+ width: 100%;
19
+ display: flex;
20
+ flex-direction: row;
21
+ height: 100%;
22
+ overflow: hidden;
23
+ }
24
+
25
+ .agenda-content-wrapper {
26
+ display: flex;
27
+ flex-direction: column;
28
+ width: 100%;
29
+ overflow: auto;
30
+ min-width: 400px;
31
+ flex-basis: 66%;
32
+ flex-grow: 1;
33
+ max-height: 100%;
34
+ }
35
+
36
+ .agenda-content {
37
+ width: 100%;
38
+ height: 100%;
39
+ flex-direction: column;
40
+ }
41
+
42
+ calendar {
43
+ flex-basis: 33%;
44
+ flex-grow: 1;
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,7 @@
1
+ @import "../../../style/mixin";
2
+
3
+ @include export-module('sc-date-planning-theme') {
4
+ .sc-date-planning {
5
+
6
+ }
7
+ }