lesli_assets 1.0.4 → 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.
- checksums.yaml +4 -4
- data/app/assets/config/lesli_assets_manifest.js +4 -0
- data/app/assets/javascripts/lesli_assets/calendar.js +12 -1
- data/app/assets/stylesheets/lesli_assets/templates/application.css +1 -1
- data/app/assets/stylesheets/lesli_assets/templates/public.css +1 -1
- data/app/assets/stylesheets/lesli_assets/templates/start.css +1 -1
- data/lib/lesli_assets/version.rb +2 -2
- data/lib/lesli_assets_js/calendar.js +14 -1
- data/lib/lesli_assets_styles/fonts/families.scss +2 -2
- data/lib/lesli_assets_styles/fonts/mdsymbols.scss +8 -3
- data/lib/lesli_assets_styles/fonts/remixicons.scss +3039 -3040
- data/lib/lesli_assets_styles/layouts/application-container.scss +16 -0
- data/lib/lesli_assets_styles/settings/variables.scss +12 -9
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f6aafaf2ecdbb8a119651730d9582f9c1845970beeb9972a4a84a092da698a90
|
4
|
+
data.tar.gz: f525ca89fea1bc2ecac29568ccedb0298ca32955df61572bf511f8c692ec0a9f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cd8f8930e2be2658cb00aaeede52494a2b5e12ba9963b1c6b18658e9a583871cd4970f203ae51f33246d99aca5e2123579c5cfbc4e120308a7eaf16bd2c56a4
|
7
|
+
data.tar.gz: 19743656b2d5d13d1f72a49bfedaee7c95294d423aa3177919286153dd329528f13ac0559f77affde6b992931813739d6844e1000d7481aff061ff5035e4c4dd
|
@@ -9667,6 +9667,11 @@
|
|
9667
9667
|
});
|
9668
9668
|
|
9669
9669
|
// lib/lesli_assets_js/calendar.js
|
9670
|
+
function getCalendarInitialView() {
|
9671
|
+
if (window.innerWidth < 768) return "dayGridDay";
|
9672
|
+
if (window.innerWidth < 1024) return "dayGridWeek";
|
9673
|
+
return "dayGridMonth";
|
9674
|
+
}
|
9670
9675
|
function buildCalendar() {
|
9671
9676
|
console.log("buildCalendar");
|
9672
9677
|
let calendarEl = document.getElementById("lesli-calendar-engine");
|
@@ -9676,7 +9681,7 @@
|
|
9676
9681
|
plugins: [index],
|
9677
9682
|
firstDay: 1,
|
9678
9683
|
headerToolbar: false,
|
9679
|
-
initialView:
|
9684
|
+
initialView: getCalendarInitialView(),
|
9680
9685
|
showNonCurrentDates: true,
|
9681
9686
|
dayMaxEvents: true,
|
9682
9687
|
editable: true,
|
@@ -9695,6 +9700,12 @@
|
|
9695
9700
|
});
|
9696
9701
|
console.log("renderCalendar");
|
9697
9702
|
calendar.render();
|
9703
|
+
window.addEventListener("resize", () => {
|
9704
|
+
const newView = getCalendarInitialView();
|
9705
|
+
if (calendar.view.type !== newView) {
|
9706
|
+
calendar.changeView(newView);
|
9707
|
+
}
|
9708
|
+
});
|
9698
9709
|
}
|
9699
9710
|
document.addEventListener("DOMContentLoaded", () => {
|
9700
9711
|
console.log("DOMContentLoaded");
|