lesli_calendar 1.1.2 → 1.1.3

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 (78) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/stylesheets/application.css +469 -0
  3. data/app/assets/stylesheets/lesli_calendar/application.css +153 -118
  4. data/app/controllers/lesli_calendar/agendas_controller.rb +13 -58
  5. data/app/controllers/lesli_calendar/calendars_controller.rb +3 -67
  6. data/app/controllers/lesli_calendar/dashboards_controller.rb +26 -50
  7. data/app/controllers/lesli_calendar/event/attendants_controller.rb +18 -57
  8. data/app/controllers/lesli_calendar/events_controller.rb +80 -81
  9. data/app/models/lesli_calendar/account.rb +7 -5
  10. data/app/models/lesli_calendar/application_record.rb +1 -1
  11. data/app/models/lesli_calendar/calendar.rb +8 -2
  12. data/app/models/lesli_calendar/dashboard.rb +1 -0
  13. data/app/models/lesli_calendar/event/attendant.rb +29 -2
  14. data/app/models/lesli_calendar/event/role_invitation.rb +16 -0
  15. data/app/models/lesli_calendar/event/user_invitation.rb +16 -0
  16. data/app/models/lesli_calendar/event.rb +81 -7
  17. data/app/operators/lesli_calendar/event_cancellation_operator.rb +18 -0
  18. data/app/operators/lesli_calendar/event_response_operator.rb +35 -0
  19. data/app/services/lesli_calendar/calendar_service.rb +3 -36
  20. data/app/services/lesli_calendar/event_service.rb +198 -111
  21. data/app/views/lesli_calendar/agendas/show.html.erb +42 -23
  22. data/app/views/lesli_calendar/calendars/show.html.erb +15 -28
  23. data/app/views/lesli_calendar/dashboards/_component-pending-invitations.html.erb +1 -0
  24. data/app/views/lesli_calendar/dashboards/_component-upcoming-deadlines.html.erb +1 -0
  25. data/app/views/lesli_calendar/dashboards/_component-upcoming-events.html.erb +1 -0
  26. data/app/views/lesli_calendar/dashboards/_widget.html.erb +19 -0
  27. data/app/views/lesli_calendar/events/_actions.html.erb +25 -0
  28. data/app/views/lesli_calendar/events/_event.html.erb +31 -2
  29. data/app/views/lesli_calendar/events/_form.html.erb +27 -16
  30. data/app/views/lesli_calendar/events/edit.html.erb +6 -10
  31. data/app/views/lesli_calendar/events/new.html.erb +4 -9
  32. data/app/views/lesli_calendar/events/show.html.erb +13 -10
  33. data/app/views/lesli_calendar/partials/_agenda.html.erb +26 -7
  34. data/app/views/lesli_calendar/partials/_calendar.html.erb +11 -1
  35. data/app/views/lesli_calendar/partials/_event_panel.html.erb +13 -0
  36. data/app/views/lesli_calendar/partials/_navigation.html.erb +2 -3
  37. data/config/locales/translations.en.yml +91 -1
  38. data/config/locales/translations.es.yml +91 -1
  39. data/config/locales/translations.fr.yml +2 -1
  40. data/config/locales/translations.it.yml +2 -1
  41. data/config/locales/translations.pt.yml +2 -1
  42. data/config/routes.rb +10 -9
  43. data/db/migrate/v1.0/0301100110_create_lesli_calendar_calendars.rb +5 -9
  44. data/db/migrate/v1.0/0301110110_create_lesli_calendar_events.rb +11 -10
  45. data/db/migrate/v1.0/0301111010_create_lesli_calendar_event_attendants.rb +6 -4
  46. data/db/migrate/v1.0/0301111110_create_lesli_calendar_event_invitations.rb +17 -0
  47. data/db/seed/development.rb +118 -0
  48. data/db/seed/seeds.json +48 -0
  49. data/db/seeds.rb +1 -1
  50. data/lib/lesli_calendar/version.rb +2 -2
  51. data/readme.md +9 -1
  52. metadata +16 -29
  53. data/app/assets/javascripts/lesli_calendar/application.js +0 -14
  54. data/app/helpers/lesli_calendar/agendas_helper.rb +0 -4
  55. data/app/helpers/lesli_calendar/calendars_helper.rb +0 -4
  56. data/app/helpers/lesli_calendar/dashboards_helper.rb +0 -4
  57. data/app/helpers/lesli_calendar/event/attendants_helper.rb +0 -4
  58. data/app/helpers/lesli_calendar/events_helper.rb +0 -4
  59. data/app/models/lesli_calendar/agenda.rb +0 -5
  60. data/app/views/lesli_calendar/agendas/edit.html.erb +0 -10
  61. data/app/views/lesli_calendar/agendas/index.html.erb +0 -14
  62. data/app/views/lesli_calendar/agendas/new.html.erb +0 -9
  63. data/app/views/lesli_calendar/calendars/edit.html.erb +0 -10
  64. data/app/views/lesli_calendar/calendars/index.html.erb +0 -14
  65. data/app/views/lesli_calendar/calendars/new.html.erb +0 -9
  66. data/app/views/lesli_calendar/dashboards/_dashboard.html.erb +0 -2
  67. data/app/views/lesli_calendar/dashboards/_form.html.erb +0 -17
  68. data/app/views/lesli_calendar/dashboards/edit.html.erb +0 -10
  69. data/app/views/lesli_calendar/dashboards/index.html.erb +0 -14
  70. data/app/views/lesli_calendar/dashboards/new.html.erb +0 -9
  71. data/app/views/lesli_calendar/event/attendants/_attendant.html.erb +0 -2
  72. data/app/views/lesli_calendar/event/attendants/_form.html.erb +0 -17
  73. data/app/views/lesli_calendar/event/attendants/edit.html.erb +0 -10
  74. data/app/views/lesli_calendar/event/attendants/index.html.erb +0 -14
  75. data/app/views/lesli_calendar/event/attendants/new.html.erb +0 -9
  76. data/app/views/lesli_calendar/event/attendants/show.html.erb +0 -10
  77. data/app/views/lesli_calendar/events/index.html.erb +0 -1
  78. data/db/seed/events.rb +0 -74
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d9e652ab0c63176af1108384d2dc623eabe382700ced265e18a5d4c5d3e88be9
4
- data.tar.gz: a129680eea2f83793839111a941f95443f9ce92c6ee7e73eaa8538772fd66e39
3
+ metadata.gz: '049b3feb23cf730bd2921d965a719f8feb6b92a0d5e9d22fee1dcca9c0b7f85d'
4
+ data.tar.gz: 662285bba7d70e87559e6cae2a68e59db7163830a68f75f1b33c711c8e81cb59
5
5
  SHA512:
6
- metadata.gz: ea2fb73eea1425e5ea195123ad886fdfa6f3910c4e7d55ab2fad7e8ff5adddb870bc35bd0ec44721f6c7278e30a0fdb68e52baf8ea894c6bd9e311db002f59fd
7
- data.tar.gz: 042d2503b8b39a1c5e35b8a8dd82a19324200a96faf7c98eb9af2972a82163e0bc659edaaf4a1b6db51ad78d1f9fd820614459abae8382251642142fd5079ee1
6
+ metadata.gz: 7f9fcad6d15c4e6ea533b54a8e58ff7fe3e0e8224f6d64fbc1e0891c4cee20f105c1d8a72ce618bc3b762323a74c1d689f98bcc779b06e20901f46a59b6e7a5e
7
+ data.tar.gz: 49b910444955e2c4e87118d54e6009bc0f13942ecd6c6d835b94830498c66f002c724f9abe11c3d8a525630931205252031682e69902deb709f3a41b224ef7cd
@@ -0,0 +1,469 @@
1
+ /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
2
+ @layer properties;
3
+ @layer theme, components, utilities;
4
+ @layer theme {
5
+ :root, :host {
6
+ --color-red-700: oklch(50.5% 0.213 27.518);
7
+ --color-slate-50: oklch(98.4% 0.003 247.858);
8
+ --color-slate-200: oklch(92.9% 0.013 255.508);
9
+ --color-slate-400: oklch(70.4% 0.04 256.788);
10
+ --color-slate-500: oklch(55.4% 0.046 257.417);
11
+ --color-slate-700: oklch(37.2% 0.044 257.287);
12
+ --color-slate-800: oklch(27.9% 0.041 260.031);
13
+ --color-white: #fff;
14
+ --spacing: 0.25rem;
15
+ --text-xs: 0.75rem;
16
+ --text-xs--line-height: calc(1 / 0.75);
17
+ --text-sm: 0.875rem;
18
+ --text-sm--line-height: calc(1.25 / 0.875);
19
+ --text-lg: 1.125rem;
20
+ --text-lg--line-height: calc(1.75 / 1.125);
21
+ --text-xl: 1.25rem;
22
+ --text-xl--line-height: calc(1.75 / 1.25);
23
+ --font-weight-medium: 500;
24
+ --font-weight-semibold: 600;
25
+ --tracking-wide: 0.025em;
26
+ --radius-xl: 0.75rem;
27
+ --radius-2xl: 1rem;
28
+ }
29
+ }
30
+ @layer utilities {
31
+ .mt-1 {
32
+ margin-top: var(--spacing);
33
+ }
34
+ .mt-4 {
35
+ margin-top: calc(var(--spacing) * 4);
36
+ }
37
+ .mb-4 {
38
+ margin-bottom: calc(var(--spacing) * 4);
39
+ }
40
+ .mb-5 {
41
+ margin-bottom: calc(var(--spacing) * 5);
42
+ }
43
+ .block {
44
+ display: block;
45
+ }
46
+ .flex {
47
+ display: flex;
48
+ }
49
+ .grid {
50
+ display: grid;
51
+ }
52
+ .h-full {
53
+ height: 100%;
54
+ }
55
+ .w-20 {
56
+ width: calc(var(--spacing) * 20);
57
+ }
58
+ .min-w-0 {
59
+ min-width: 0px;
60
+ }
61
+ .flex-1 {
62
+ flex: 1;
63
+ }
64
+ .shrink-0 {
65
+ flex-shrink: 0;
66
+ }
67
+ .flex-col {
68
+ flex-direction: column;
69
+ }
70
+ .flex-wrap {
71
+ flex-wrap: wrap;
72
+ }
73
+ .items-center {
74
+ align-items: center;
75
+ }
76
+ .items-end {
77
+ align-items: flex-end;
78
+ }
79
+ .items-stretch {
80
+ align-items: stretch;
81
+ }
82
+ .justify-center {
83
+ justify-content: center;
84
+ }
85
+ .gap-3 {
86
+ gap: calc(var(--spacing) * 3);
87
+ }
88
+ .gap-4 {
89
+ gap: calc(var(--spacing) * 4);
90
+ }
91
+ .gap-6 {
92
+ gap: calc(var(--spacing) * 6);
93
+ }
94
+ :where(.space-y-3 > :not(:last-child)) {
95
+ --tw-space-y-reverse: 0;
96
+ margin-block-start: calc(calc(var(--spacing) * 3) * var(--tw-space-y-reverse));
97
+ margin-block-end: calc(calc(var(--spacing) * 3) * calc(1 - var(--tw-space-y-reverse)));
98
+ }
99
+ :where(.space-y-5 > :not(:last-child)) {
100
+ --tw-space-y-reverse: 0;
101
+ margin-block-start: calc(calc(var(--spacing) * 5) * var(--tw-space-y-reverse));
102
+ margin-block-end: calc(calc(var(--spacing) * 5) * calc(1 - var(--tw-space-y-reverse)));
103
+ }
104
+ :where(.divide-y > :not(:last-child)) {
105
+ --tw-divide-y-reverse: 0;
106
+ border-bottom-style: var(--tw-border-style);
107
+ border-top-style: var(--tw-border-style);
108
+ border-top-width: calc(1px * var(--tw-divide-y-reverse));
109
+ border-bottom-width: calc(1px * calc(1 - var(--tw-divide-y-reverse)));
110
+ }
111
+ :where(.divide-slate-200 > :not(:last-child)) {
112
+ border-color: var(--color-slate-200);
113
+ }
114
+ .overflow-hidden {
115
+ overflow: hidden;
116
+ }
117
+ .rounded-2xl {
118
+ border-radius: var(--radius-2xl);
119
+ }
120
+ .rounded-xl {
121
+ border-radius: var(--radius-xl);
122
+ }
123
+ .border {
124
+ border-style: var(--tw-border-style);
125
+ border-width: 1px;
126
+ }
127
+ .border-r {
128
+ border-right-style: var(--tw-border-style);
129
+ border-right-width: 1px;
130
+ }
131
+ .border-b {
132
+ border-bottom-style: var(--tw-border-style);
133
+ border-bottom-width: 1px;
134
+ }
135
+ .border-l-4 {
136
+ border-left-style: var(--tw-border-style);
137
+ border-left-width: 4px;
138
+ }
139
+ .border-slate-200 {
140
+ border-color: var(--color-slate-200);
141
+ }
142
+ .bg-slate-50 {
143
+ background-color: var(--color-slate-50);
144
+ }
145
+ .bg-white {
146
+ background-color: var(--color-white);
147
+ }
148
+ .p-0 {
149
+ padding: 0px;
150
+ }
151
+ .p-4 {
152
+ padding: calc(var(--spacing) * 4);
153
+ }
154
+ .p-5 {
155
+ padding: calc(var(--spacing) * 5);
156
+ }
157
+ .px-3 {
158
+ padding-inline: calc(var(--spacing) * 3);
159
+ }
160
+ .px-4 {
161
+ padding-inline: calc(var(--spacing) * 4);
162
+ }
163
+ .px-5 {
164
+ padding-inline: calc(var(--spacing) * 5);
165
+ }
166
+ .py-2 {
167
+ padding-block: calc(var(--spacing) * 2);
168
+ }
169
+ .py-3 {
170
+ padding-block: calc(var(--spacing) * 3);
171
+ }
172
+ .py-4 {
173
+ padding-block: calc(var(--spacing) * 4);
174
+ }
175
+ .text-center {
176
+ text-align: center;
177
+ }
178
+ .font-\[\'OpenSans\'\] {
179
+ font-family: 'OpenSans';
180
+ }
181
+ .text-lg {
182
+ font-size: var(--text-lg);
183
+ line-height: var(--tw-leading, var(--text-lg--line-height));
184
+ }
185
+ .text-sm {
186
+ font-size: var(--text-sm);
187
+ line-height: var(--tw-leading, var(--text-sm--line-height));
188
+ }
189
+ .text-xl {
190
+ font-size: var(--text-xl);
191
+ line-height: var(--tw-leading, var(--text-xl--line-height));
192
+ }
193
+ .text-xs {
194
+ font-size: var(--text-xs);
195
+ line-height: var(--tw-leading, var(--text-xs--line-height));
196
+ }
197
+ .leading-5 {
198
+ --tw-leading: calc(var(--spacing) * 5);
199
+ line-height: calc(var(--spacing) * 5);
200
+ }
201
+ .font-medium {
202
+ --tw-font-weight: var(--font-weight-medium);
203
+ font-weight: var(--font-weight-medium);
204
+ }
205
+ .font-semibold {
206
+ --tw-font-weight: var(--font-weight-semibold);
207
+ font-weight: var(--font-weight-semibold);
208
+ }
209
+ .tracking-wide {
210
+ --tw-tracking: var(--tracking-wide);
211
+ letter-spacing: var(--tracking-wide);
212
+ }
213
+ .break-words {
214
+ overflow-wrap: break-word;
215
+ }
216
+ .whitespace-pre-wrap {
217
+ white-space: pre-wrap;
218
+ }
219
+ .text-red-700 {
220
+ color: var(--color-red-700);
221
+ }
222
+ .text-slate-500 {
223
+ color: var(--color-slate-500);
224
+ }
225
+ .text-slate-700 {
226
+ color: var(--color-slate-700);
227
+ }
228
+ .text-slate-800 {
229
+ color: var(--color-slate-800);
230
+ }
231
+ .uppercase {
232
+ text-transform: uppercase;
233
+ }
234
+ .shadow-sm {
235
+ --tw-shadow: 0 1px 3px 0 var(--tw-shadow-color, rgb(0 0 0 / 0.1)), 0 1px 2px -1px var(--tw-shadow-color, rgb(0 0 0 / 0.1));
236
+ box-shadow: var(--tw-inset-shadow), var(--tw-inset-ring-shadow), var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow);
237
+ }
238
+ .filter {
239
+ filter: var(--tw-blur,) var(--tw-brightness,) var(--tw-contrast,) var(--tw-grayscale,) var(--tw-hue-rotate,) var(--tw-invert,) var(--tw-saturate,) var(--tw-sepia,) var(--tw-drop-shadow,);
240
+ }
241
+ @media (hover: hover) {
242
+ .hover\:underline:hover {
243
+ text-decoration-line: underline;
244
+ }
245
+ }
246
+ @media (width >= 40rem) {
247
+ .sm\:grid-cols-2 {
248
+ grid-template-columns: repeat(2, minmax(0, 1fr));
249
+ }
250
+ }
251
+ @media (width >= 64rem) {
252
+ .lg\:sticky {
253
+ position: sticky;
254
+ }
255
+ .lg\:top-4 {
256
+ top: calc(var(--spacing) * 4);
257
+ }
258
+ .lg\:w-60 {
259
+ width: calc(var(--spacing) * 60);
260
+ }
261
+ .lg\:shrink-0 {
262
+ flex-shrink: 0;
263
+ }
264
+ .lg\:flex-row {
265
+ flex-direction: row;
266
+ }
267
+ .lg\:items-start {
268
+ align-items: flex-start;
269
+ }
270
+ }
271
+ }
272
+ @layer components {
273
+ .lesli-calendar-agenda .agenda-event {
274
+ border-left-color: var(--color-slate-400);
275
+ }
276
+ .lesli-calendar-agenda .agenda-event.lesli-calendar {
277
+ border-left-color: #3689e6;
278
+ }
279
+ .lesli-calendar-agenda .agenda-event.lesli-support {
280
+ border-left-color: #a56de2;
281
+ }
282
+ .lesli-calendar-agenda .agenda-event.cloud-focus-tasks, .lesli-calendar-agenda .agenda-event.lesli-tasks {
283
+ border-left-color: #28bca3;
284
+ }
285
+ }
286
+ @property --tw-space-y-reverse {
287
+ syntax: "*";
288
+ inherits: false;
289
+ initial-value: 0;
290
+ }
291
+ @property --tw-divide-y-reverse {
292
+ syntax: "*";
293
+ inherits: false;
294
+ initial-value: 0;
295
+ }
296
+ @property --tw-border-style {
297
+ syntax: "*";
298
+ inherits: false;
299
+ initial-value: solid;
300
+ }
301
+ @property --tw-leading {
302
+ syntax: "*";
303
+ inherits: false;
304
+ }
305
+ @property --tw-font-weight {
306
+ syntax: "*";
307
+ inherits: false;
308
+ }
309
+ @property --tw-tracking {
310
+ syntax: "*";
311
+ inherits: false;
312
+ }
313
+ @property --tw-shadow {
314
+ syntax: "*";
315
+ inherits: false;
316
+ initial-value: 0 0 #0000;
317
+ }
318
+ @property --tw-shadow-color {
319
+ syntax: "*";
320
+ inherits: false;
321
+ }
322
+ @property --tw-shadow-alpha {
323
+ syntax: "<percentage>";
324
+ inherits: false;
325
+ initial-value: 100%;
326
+ }
327
+ @property --tw-inset-shadow {
328
+ syntax: "*";
329
+ inherits: false;
330
+ initial-value: 0 0 #0000;
331
+ }
332
+ @property --tw-inset-shadow-color {
333
+ syntax: "*";
334
+ inherits: false;
335
+ }
336
+ @property --tw-inset-shadow-alpha {
337
+ syntax: "<percentage>";
338
+ inherits: false;
339
+ initial-value: 100%;
340
+ }
341
+ @property --tw-ring-color {
342
+ syntax: "*";
343
+ inherits: false;
344
+ }
345
+ @property --tw-ring-shadow {
346
+ syntax: "*";
347
+ inherits: false;
348
+ initial-value: 0 0 #0000;
349
+ }
350
+ @property --tw-inset-ring-color {
351
+ syntax: "*";
352
+ inherits: false;
353
+ }
354
+ @property --tw-inset-ring-shadow {
355
+ syntax: "*";
356
+ inherits: false;
357
+ initial-value: 0 0 #0000;
358
+ }
359
+ @property --tw-ring-inset {
360
+ syntax: "*";
361
+ inherits: false;
362
+ }
363
+ @property --tw-ring-offset-width {
364
+ syntax: "<length>";
365
+ inherits: false;
366
+ initial-value: 0px;
367
+ }
368
+ @property --tw-ring-offset-color {
369
+ syntax: "*";
370
+ inherits: false;
371
+ initial-value: #fff;
372
+ }
373
+ @property --tw-ring-offset-shadow {
374
+ syntax: "*";
375
+ inherits: false;
376
+ initial-value: 0 0 #0000;
377
+ }
378
+ @property --tw-blur {
379
+ syntax: "*";
380
+ inherits: false;
381
+ }
382
+ @property --tw-brightness {
383
+ syntax: "*";
384
+ inherits: false;
385
+ }
386
+ @property --tw-contrast {
387
+ syntax: "*";
388
+ inherits: false;
389
+ }
390
+ @property --tw-grayscale {
391
+ syntax: "*";
392
+ inherits: false;
393
+ }
394
+ @property --tw-hue-rotate {
395
+ syntax: "*";
396
+ inherits: false;
397
+ }
398
+ @property --tw-invert {
399
+ syntax: "*";
400
+ inherits: false;
401
+ }
402
+ @property --tw-opacity {
403
+ syntax: "*";
404
+ inherits: false;
405
+ }
406
+ @property --tw-saturate {
407
+ syntax: "*";
408
+ inherits: false;
409
+ }
410
+ @property --tw-sepia {
411
+ syntax: "*";
412
+ inherits: false;
413
+ }
414
+ @property --tw-drop-shadow {
415
+ syntax: "*";
416
+ inherits: false;
417
+ }
418
+ @property --tw-drop-shadow-color {
419
+ syntax: "*";
420
+ inherits: false;
421
+ }
422
+ @property --tw-drop-shadow-alpha {
423
+ syntax: "<percentage>";
424
+ inherits: false;
425
+ initial-value: 100%;
426
+ }
427
+ @property --tw-drop-shadow-size {
428
+ syntax: "*";
429
+ inherits: false;
430
+ }
431
+ @layer properties {
432
+ @supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))) {
433
+ *, ::before, ::after, ::backdrop {
434
+ --tw-space-y-reverse: 0;
435
+ --tw-divide-y-reverse: 0;
436
+ --tw-border-style: solid;
437
+ --tw-leading: initial;
438
+ --tw-font-weight: initial;
439
+ --tw-tracking: initial;
440
+ --tw-shadow: 0 0 #0000;
441
+ --tw-shadow-color: initial;
442
+ --tw-shadow-alpha: 100%;
443
+ --tw-inset-shadow: 0 0 #0000;
444
+ --tw-inset-shadow-color: initial;
445
+ --tw-inset-shadow-alpha: 100%;
446
+ --tw-ring-color: initial;
447
+ --tw-ring-shadow: 0 0 #0000;
448
+ --tw-inset-ring-color: initial;
449
+ --tw-inset-ring-shadow: 0 0 #0000;
450
+ --tw-ring-inset: initial;
451
+ --tw-ring-offset-width: 0px;
452
+ --tw-ring-offset-color: #fff;
453
+ --tw-ring-offset-shadow: 0 0 #0000;
454
+ --tw-blur: initial;
455
+ --tw-brightness: initial;
456
+ --tw-contrast: initial;
457
+ --tw-grayscale: initial;
458
+ --tw-hue-rotate: initial;
459
+ --tw-invert: initial;
460
+ --tw-opacity: initial;
461
+ --tw-saturate: initial;
462
+ --tw-sepia: initial;
463
+ --tw-drop-shadow: initial;
464
+ --tw-drop-shadow-color: initial;
465
+ --tw-drop-shadow-alpha: 100%;
466
+ --tw-drop-shadow-size: initial;
467
+ }
468
+ }
469
+ }