@bmlt-enabled/croutonjs 4.1.4 → 4.1.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.
- package/crouton-gmaps.js +26 -17
- package/crouton-gmaps.min.js +10 -9
- package/crouton-gmaps.min.js.map +1 -1
- package/crouton-map.js +1 -0
- package/crouton-map.min.js +1 -1
- package/crouton-map.min.js.map +1 -1
- package/crouton.js +26 -17
- package/crouton.min.js +10 -9
- package/crouton.min.js.map +1 -1
- package/crouton.nojquery.js +25 -17
- package/crouton.nojquery.min.js +9 -8
- package/crouton.nojquery.min.js.map +1 -1
- package/package.json +1 -1
package/crouton-gmaps.js
CHANGED
|
@@ -11413,6 +11413,8 @@ function CroutonLocalization(language) {
|
|
|
11413
11413
|
"address_lookup_fail": "Die Adresse konnte nicht gefunden werden. Bitte versuchen Sie es erneut.",
|
|
11414
11414
|
"contact": "Kontakt",
|
|
11415
11415
|
"distance": "Entfernung",
|
|
11416
|
+
"all meetings": "Alle Meetings",
|
|
11417
|
+
'upcoming meetings': "Nächste 24 Stunden",
|
|
11416
11418
|
},
|
|
11417
11419
|
'el-GR': {
|
|
11418
11420
|
"days_of_the_week": ["", "Κυριακή", "Δευτέρα", "Τρίτη", "Τετάρτη", "Πέμπτη", "Παρασκευή", "Σάββατο"],
|
|
@@ -11503,6 +11505,8 @@ function CroutonLocalization(language) {
|
|
|
11503
11505
|
"meets virtually": "Διαδικτυακή ομάδα",
|
|
11504
11506
|
"meets in person": "Φυσική ομάδα",
|
|
11505
11507
|
"meets virtually and in person": "Διαδικτυακή και φυσική ομάδα",
|
|
11508
|
+
"all meetings": "Όλες οι ομάδες",
|
|
11509
|
+
"upcoming meetings": "Προσεχείς ομάδες",
|
|
11506
11510
|
},
|
|
11507
11511
|
"en-AU": {
|
|
11508
11512
|
"days_of_the_week": ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
@@ -11869,6 +11873,8 @@ function CroutonLocalization(language) {
|
|
|
11869
11873
|
"address": "Address",
|
|
11870
11874
|
"comments": "Comments",
|
|
11871
11875
|
"more info": "More Info",
|
|
11876
|
+
"all meetings": "All Meetings",
|
|
11877
|
+
'upcoming meetings': "Upcoming Meetings",
|
|
11872
11878
|
},
|
|
11873
11879
|
"es-US": {
|
|
11874
11880
|
"days_of_the_week": ["", "Domingo", "Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"],
|
|
@@ -15283,7 +15289,7 @@ function Crouton(config) {
|
|
|
15283
15289
|
self.currentView = "weekday";
|
|
15284
15290
|
self.distanceTabAllowed = false;
|
|
15285
15291
|
self.config = {
|
|
15286
|
-
version: '4.1.
|
|
15292
|
+
version: '4.1.5', // CroutonJS version for debugging
|
|
15287
15293
|
on_complete: null, // Javascript function to callback when data querying is completed.
|
|
15288
15294
|
root_server: null, // The root server to use.
|
|
15289
15295
|
placeholder_id: "bmlt-tabs", // The DOM id that will be used for rendering
|
|
@@ -15531,10 +15537,10 @@ function Crouton(config) {
|
|
|
15531
15537
|
}
|
|
15532
15538
|
} else if (viewName=='map') {
|
|
15533
15539
|
self.mapView();
|
|
15534
|
-
} else if (jQuery('#groupingButton_'+viewName
|
|
15535
|
-
self.groupedView(self.config.grouping_buttons.find((bf) => bf.title.toLowerCase() === viewName).field);
|
|
15540
|
+
} else if (jQuery('#groupingButton_'+viewName).length == 0) {
|
|
15541
|
+
self.groupedView(self.config.grouping_buttons.find((bf) => bf.title.toLowerCase() === viewName.toLowerCase()).field);
|
|
15536
15542
|
} else {
|
|
15537
|
-
self.groupedView(viewName
|
|
15543
|
+
self.groupedView(viewName);
|
|
15538
15544
|
}
|
|
15539
15545
|
};
|
|
15540
15546
|
|
|
@@ -16066,7 +16072,7 @@ function Crouton(config) {
|
|
|
16066
16072
|
});
|
|
16067
16073
|
return groups;
|
|
16068
16074
|
}
|
|
16069
|
-
Crouton.prototype.updateDistances = function() {
|
|
16075
|
+
Crouton.prototype.updateDistances = function(initial=false) {
|
|
16070
16076
|
const self = this;
|
|
16071
16077
|
var knt = 0;
|
|
16072
16078
|
jQuery('.meeting-distance').each(function(index) {
|
|
@@ -16117,6 +16123,7 @@ function Crouton(config) {
|
|
|
16117
16123
|
if (knt > 0) {
|
|
16118
16124
|
jQuery('#groupingButton_distance_in_km').removeClass('hide');
|
|
16119
16125
|
self.distanceTabAllowed = true;
|
|
16126
|
+
if (initial && self.config.view_by === "distance") self.groupedView("distance_in_km");
|
|
16120
16127
|
}
|
|
16121
16128
|
}
|
|
16122
16129
|
self.registerPartial = function(name, template) {
|
|
@@ -16724,7 +16731,7 @@ Crouton.prototype.render = function(doMeetingMap = false, fitBounds=true) {
|
|
|
16724
16731
|
});
|
|
16725
16732
|
|
|
16726
16733
|
jQuery(".groupingButtonLogic").on('click', function (e) {
|
|
16727
|
-
self.showView(e.target.attributes['data-field'].value
|
|
16734
|
+
self.showView(e.target.attributes['data-field'].value);
|
|
16728
16735
|
});
|
|
16729
16736
|
jQuery('#groupingButton_embeddedMapPage').on('click', function (e) {
|
|
16730
16737
|
self.showView('map')
|
|
@@ -17322,19 +17329,19 @@ function MeetingMap(inConfig) {
|
|
|
17322
17329
|
</label>
|
|
17323
17330
|
</div>
|
|
17324
17331
|
</div>`;
|
|
17325
|
-
rules =
|
|
17326
|
-
content: "
|
|
17332
|
+
let rules = `.onoffswitch-inner:before {
|
|
17333
|
+
content: "__text1__";
|
|
17327
17334
|
padding-left: 10px;
|
|
17328
17335
|
background-color: #2d5c88; color: #FFFFFF;
|
|
17329
|
-
}
|
|
17330
|
-
|
|
17331
|
-
content: "
|
|
17336
|
+
}
|
|
17337
|
+
.onoffswitch-inner:after {
|
|
17338
|
+
content: "__text2__";
|
|
17332
17339
|
padding-left: 30px;
|
|
17333
17340
|
background-color: #EEEEEE; color: #2d5c88;
|
|
17334
17341
|
text-align: left;
|
|
17335
|
-
}`
|
|
17336
|
-
|
|
17337
|
-
|
|
17342
|
+
}`
|
|
17343
|
+
.replace("__text1__", crouton.localization.getWord("Upcoming Meetings"))
|
|
17344
|
+
.replace("__text2__", crouton.localization.getWord("All Meetings"));
|
|
17338
17345
|
var controlDiv = document.createElement('div');
|
|
17339
17346
|
controlDiv.innerHTML = toggleSrc;
|
|
17340
17347
|
controlDiv.querySelector(".onoffswitch").addEventListener('click', function (event) {
|
|
@@ -17344,8 +17351,9 @@ function MeetingMap(inConfig) {
|
|
|
17344
17351
|
crouton.filterNext24(next24status);
|
|
17345
17352
|
fitDuringFilter = true;
|
|
17346
17353
|
});
|
|
17347
|
-
document.
|
|
17348
|
-
|
|
17354
|
+
let style = document.createElement('style');
|
|
17355
|
+
style.innerHTML = rules;
|
|
17356
|
+
document.head.appendChild(style);
|
|
17349
17357
|
return controlDiv;
|
|
17350
17358
|
}
|
|
17351
17359
|
function createMenuButton(menuContext) {
|
|
@@ -17544,7 +17552,7 @@ function MeetingMap(inConfig) {
|
|
|
17544
17552
|
filterVisible(isFilterVisible());
|
|
17545
17553
|
});
|
|
17546
17554
|
gSearchPoint = {"lat": position.coords.latitude, "lng": position.coords.longitude};
|
|
17547
|
-
crouton.updateDistances();
|
|
17555
|
+
crouton.updateDistances(true);
|
|
17548
17556
|
},
|
|
17549
17557
|
showGeocodingDialog
|
|
17550
17558
|
);
|
|
@@ -18390,6 +18398,7 @@ function openInfoWindow(marker) {
|
|
|
18390
18398
|
});
|
|
18391
18399
|
}
|
|
18392
18400
|
function addControl(div,pos,cb) {
|
|
18401
|
+
if (!div) return;
|
|
18393
18402
|
if (!gMainMap) {
|
|
18394
18403
|
gDiv.appendChild(div);
|
|
18395
18404
|
return;
|