lesli_assets 1.0.3 → 1.0.5

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 (38) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/lesli_assets_manifest.js +4 -0
  3. data/app/assets/fonts/lesli_assets/MaterialDesign/symbols.woff +0 -0
  4. data/app/assets/javascripts/lesli_assets/application.js +19526 -1041
  5. data/app/assets/javascripts/lesli_assets/calendar.js +9749 -1
  6. data/app/assets/stylesheets/lesli_assets/templates/application.css +1 -1
  7. data/app/assets/stylesheets/lesli_assets/templates/public.css +1 -1
  8. data/app/assets/stylesheets/lesli_assets/templates/start.css +1 -1
  9. data/lib/lesli_assets/version.rb +2 -2
  10. data/lib/lesli_assets_js/calendar.js +88 -6
  11. data/lib/{lesli_assets_css → lesli_assets_styles}/fonts/families.scss +2 -2
  12. data/lib/lesli_assets_styles/fonts/mdsymbols.scss +65 -0
  13. data/lib/lesli_assets_styles/fonts/remixicons.scss +3082 -0
  14. data/lib/lesli_assets_styles/layouts/application-container.scss +52 -0
  15. data/lib/lesli_assets_styles/layouts/application-header.scss +74 -0
  16. data/lib/{lesli_assets_css/templates/dashboards.scss → lesli_assets_styles/layouts/application-navigation.scss} +28 -15
  17. data/lib/{lesli_assets_css → lesli_assets_styles}/settings/variables.scss +15 -14
  18. data/lib/{lesli_assets_css → lesli_assets_styles}/templates/application.scss +3 -2
  19. data/lib/{lesli_assets_css/layouts/application-container.scss → lesli_assets_styles/templates/dashboards.scss} +2 -7
  20. data/lib/{lesli_assets_css → lesli_assets_styles}/templates/public.scss +2 -1
  21. metadata +26 -25
  22. data/lib/lesli_assets_css/fonts/remixicons.scss +0 -3083
  23. data/lib/lesli_assets_css/layouts/application-engines.scss +0 -115
  24. data/lib/lesli_assets_css/layouts/application-header.scss +0 -104
  25. data/lib/lesli_assets_css/layouts/application-navigation.scss +0 -97
  26. /data/lib/{lesli_assets_css → lesli_assets_styles}/fonts/mdicons.scss +0 -0
  27. /data/lib/{lesli_assets_css → lesli_assets_styles}/helpers/display.scss +0 -0
  28. /data/lib/{lesli_assets_css → lesli_assets_styles}/helpers/tooltip.scss +0 -0
  29. /data/lib/{lesli_assets_css → lesli_assets_styles}/layouts/application-app.scss +0 -0
  30. /data/lib/{lesli_assets_css → lesli_assets_styles}/layouts/application-component.scss +0 -0
  31. /data/lib/{lesli_assets_css → lesli_assets_styles}/layouts/application-notification.scss +0 -0
  32. /data/lib/{lesli_assets_css → lesli_assets_styles}/layouts/application-sidebar.scss +0 -0
  33. /data/lib/{lesli_assets_css → lesli_assets_styles}/pages/invites.scss +0 -0
  34. /data/lib/{lesli_assets_css → lesli_assets_styles}/shared/workflow-status-progress.scss +0 -0
  35. /data/lib/{lesli_assets_css → lesli_assets_styles}/templates/component.scss +0 -0
  36. /data/lib/{lesli_assets_css → lesli_assets_styles}/templates/empty.scss +0 -0
  37. /data/lib/{lesli_assets_css → lesli_assets_styles}/templates/pdf.scss +0 -0
  38. /data/lib/{lesli_assets_css → lesli_assets_styles}/templates/start.scss +0 -0
@@ -1,4 +1,4 @@
1
1
  module LesliAssets
2
- VERSION = "1.0.3"
3
- BUILD = "1752589521"
2
+ VERSION = "1.0.5"
3
+ BUILD = "1754919086"
4
4
  end
@@ -1,19 +1,101 @@
1
- import { Calendar } from '@fullcalendar/core';
2
- import dayGridPlugin from '@fullcalendar/daygrid';
1
+ /*
2
+ Lesli
3
3
 
4
- document.addEventListener("turbo:load", () => {
4
+ Copyright (c) 2025, Lesli Technologies, S. A.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see http://www.gnu.org/licenses/.
18
+
19
+ Lesli · Ruby on Rails SaaS Development Framework.
20
+
21
+ Made with ♥ by LesliTech
22
+ Building a better future, one line of code at a time.
23
+
24
+ @contact hello@lesli.tech
25
+ @website https://www.lesli.tech
26
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
+
28
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // ·
30
+ */
31
+
32
+
33
+ // ·
34
+ import { Calendar } from "@fullcalendar/core";
35
+ import dayGridPlugin from "@fullcalendar/daygrid";
36
+
37
+
38
+ function getCalendarInitialView() {
39
+ if (window.innerWidth < 768) return "dayGridDay";
40
+ if (window.innerWidth < 1024) return "dayGridWeek";
41
+ return "dayGridMonth";
42
+ };
5
43
 
44
+
45
+ // ·
46
+ function buildCalendar() {
47
+ console.log("buildCalendar")
6
48
  let calendarEl = document.getElementById("lesli-calendar-engine");
7
- let calendar = new Calendar(calendarEl, {
49
+ if (!calendarEl) return;
50
+
51
+ console.log("buildingCalendar")
52
+ var calendar = new Calendar(calendarEl, {
8
53
  plugins: [ dayGridPlugin ],
9
54
  firstDay: 1,
10
55
  headerToolbar: false,
11
- initialView: "dayGridMonth",
56
+ initialView: getCalendarInitialView(),
12
57
  showNonCurrentDates: true,
13
58
  dayMaxEvents: true,
14
59
  editable: true,
15
- events: [],
60
+ events: {
61
+ url: '/calendar/events.json',
62
+ method: 'GET',
63
+ extraParams: function() {
64
+ return {
65
+ authenticity_token: document.querySelector('meta[name="csrf-token"]').content
66
+ };
67
+ },
68
+ failure: function() {
69
+ alert('There was an error while fetching events!');
70
+ }
71
+ },
16
72
  });
17
73
 
74
+ console.log("renderCalendar")
18
75
  calendar.render();
76
+
77
+ window.addEventListener('resize', () => {
78
+ const newView = getCalendarInitialView();
79
+ if (calendar.view.type !== newView) {
80
+ calendar.changeView(newView);
81
+ }
82
+ });
83
+ }
84
+
85
+
86
+ // ·
87
+ document.addEventListener("DOMContentLoaded", () => {
88
+ console.log("DOMContentLoaded");
89
+ buildCalendar()
90
+ });
91
+
92
+
93
+ // ·
94
+ document.addEventListener("turbo:load", () => {
95
+ console.log("turbo:load")
96
+ buildCalendar()
19
97
  })
98
+
99
+
100
+ // ·
101
+ buildCalendar()
@@ -34,7 +34,7 @@ Building a better future, one line of code at a time.
34
34
  // · Font family for titles
35
35
  @font-face {
36
36
  font-family: "Domine";
37
- src: url("lesli_assets/Domine/Domine-Variable.ttf") format("truetype");
37
+ src: url("/lesli_assets/Domine/Domine-Variable.ttf") format("truetype");
38
38
  font-display: swap;
39
39
  }
40
40
 
@@ -42,6 +42,6 @@ Building a better future, one line of code at a time.
42
42
  // · Font family for the body
43
43
  @font-face {
44
44
  font-family: "OpenSans";
45
- src: url("lesli_assets/OpenSans/OpenSans-Variable.ttf") format("truetype");
45
+ src: url("/lesli_assets/OpenSans/OpenSans-Variable.ttf") format("truetype");
46
46
  font-display: swap;
47
47
  }
@@ -0,0 +1,65 @@
1
+ /*
2
+ Lesli
3
+
4
+ Copyright (c) 2025, Lesli Technologies, S. A.
5
+
6
+ This program is free software: you can redistribute it and/or modify
7
+ it under the terms of the GNU General Public License as published by
8
+ the Free Software Foundation, either version 3 of the License, or
9
+ (at your option) any later version.
10
+
11
+ This program is distributed in the hope that it will be useful,
12
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
13
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
+ GNU General Public License for more details.
15
+
16
+ You should have received a copy of the GNU General Public License
17
+ along with this program. If not, see http://www.gnu.org/licenses/.
18
+
19
+ Lesli · Ruby on Rails SaaS Development Framework.
20
+
21
+ Made with ♥ by LesliTech
22
+ Building a better future, one line of code at a time.
23
+
24
+ @contact hello@lesli.tech
25
+ @website https://www.lesli.tech
26
+ @license GPLv3 http://www.gnu.org/licenses/gpl-3.0.en.html
27
+
28
+ // · ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~ ~·~
29
+ // ·
30
+ */
31
+
32
+
33
+ // ·
34
+ @font-face {
35
+ font-family: "MaterialSymbols";
36
+ src: url("/lesli_assets/MaterialDesign/symbols.woff") format('woff');
37
+ font-style: normal;
38
+ font-weight: 400;
39
+ }
40
+
41
+
42
+ // ·
43
+ .material-symbols,
44
+ .material-symbols-outlined {
45
+ font-family: "MaterialSymbols";
46
+ font-weight: normal;
47
+ font-style: normal;
48
+ font-size: 24px;
49
+ line-height: 1;
50
+ letter-spacing: normal;
51
+ text-transform: none;
52
+ display: inline-block;
53
+ white-space: nowrap;
54
+ word-wrap: normal;
55
+ direction: ltr;
56
+ -moz-font-feature-settings: 'liga';
57
+ -moz-osx-font-smoothing: grayscale;
58
+ }
59
+
60
+
61
+ // ·
62
+ .material-symbols.md-18 { font-size: 18px; }
63
+ .material-symbols.md-24 { font-size: 24px; }
64
+ .material-symbols.md-36 { font-size: 36px; }
65
+ .material-symbols.md-48 { font-size: 48px; }