@bmlt-enabled/croutonjs 4.1.1 → 4.1.2
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 +22 -8
- package/crouton-gmaps.min.js +6 -6
- package/crouton-gmaps.min.js.map +1 -1
- package/crouton.js +22 -8
- package/crouton.min.js +6 -6
- package/crouton.min.js.map +1 -1
- package/crouton.nojquery.js +22 -8
- package/crouton.nojquery.min.js +6 -6
- package/crouton.nojquery.min.js.map +1 -1
- package/package.json +1 -1
package/crouton.nojquery.js
CHANGED
|
@@ -11976,7 +11976,7 @@ function CroutonLocalization(language) {
|
|
|
11976
11976
|
"google_directions": "مسیرهای Google به جلسه",
|
|
11977
11977
|
"apple_directions": "مسیرهای Apple به جلسه",
|
|
11978
11978
|
"no_meetings_for_this_day": "هیچ جلسه ای در این روز وجود ندارد",
|
|
11979
|
-
"css-direction: bmlt-rtl"
|
|
11979
|
+
"css-direction": "bmlt-rtl",
|
|
11980
11980
|
"bootstrap-popover-placement": "left",
|
|
11981
11981
|
"adjust search": "تنظیم جستجو",
|
|
11982
11982
|
"this number represents": "این عدد نشان دهنده",
|
|
@@ -13279,7 +13279,9 @@ this["hbs_Crouton"]["templates"]["groupDetails"] = Handlebars.template({"1":func
|
|
|
13279
13279
|
return undefined
|
|
13280
13280
|
};
|
|
13281
13281
|
|
|
13282
|
-
return "<div class=\"card group
|
|
13282
|
+
return "<div class=\"card group "
|
|
13283
|
+
+ container.escapeExpression((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":50}}}))
|
|
13284
|
+
+ "\">\n <div class=\"card-body\">\n <div class=\"card-title header-elements\" style=\"display: flex; justify-content:space-between; align-items:center;\">\n"
|
|
13283
13285
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"groupTitle"),depth0,{"name":"groupTitle","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
13284
13286
|
+ " </div>\n <div class=\"row\" "
|
|
13285
13287
|
+ ((stack1 = (lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-textAlign",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":6,"column":25},"end":{"line":6,"column":54}}})) != null ? stack1 : "")
|
|
@@ -15278,7 +15280,7 @@ function Crouton(config) {
|
|
|
15278
15280
|
self.currentView = "weekday";
|
|
15279
15281
|
self.distanceTabAllowed = false;
|
|
15280
15282
|
self.config = {
|
|
15281
|
-
version: '4.1.
|
|
15283
|
+
version: '4.1.2', // CroutonJS version for debugging
|
|
15282
15284
|
on_complete: null, // Javascript function to callback when data querying is completed.
|
|
15283
15285
|
root_server: null, // The root server to use.
|
|
15284
15286
|
placeholder_id: "bmlt-tabs", // The DOM id that will be used for rendering
|
|
@@ -16052,10 +16054,10 @@ function Crouton(config) {
|
|
|
16052
16054
|
commonFormats = commonFormats.filter(value => memberFormats.includes(value));
|
|
16053
16055
|
});
|
|
16054
16056
|
group['formats'] = commonFormats.join(',');
|
|
16055
|
-
group['formats_expanded'] = group['formats_expanded'].filter((format) => commonFormats.includes(format['key']));
|
|
16057
|
+
if (group['formats_expanded']) group['formats_expanded'] = group['formats_expanded'].filter((format) => commonFormats.includes(format['key']));
|
|
16056
16058
|
group['membersOfGroup'].forEach(function(member) {
|
|
16057
16059
|
member['formats'] = member['formats'].split(',').filter((f) => !commonFormats.includes(f)).join(',');
|
|
16058
|
-
member['formats_expanded'] = member['formats_expanded'].filter((format) => !commonFormats.includes(format['key']));
|
|
16060
|
+
if (member['formats_expanded']) member['formats_expanded'] = member['formats_expanded'].filter((format) => !commonFormats.includes(format['key']));
|
|
16059
16061
|
});
|
|
16060
16062
|
}
|
|
16061
16063
|
});
|
|
@@ -17517,7 +17519,7 @@ function MeetingMap(inConfig) {
|
|
|
17517
17519
|
if (getLatLngRadius(lat_lngs) > maxRadius)
|
|
17518
17520
|
lat_lngs = lat_lngs.slice(1,1);
|
|
17519
17521
|
}
|
|
17520
|
-
gDelegate.fitBounds(lat_lngs);
|
|
17522
|
+
if (lat_lngs.length > 0) gDelegate.fitBounds(lat_lngs);
|
|
17521
17523
|
}
|
|
17522
17524
|
searchResponseCallback();
|
|
17523
17525
|
hideThrobber();
|
|
@@ -17528,7 +17530,10 @@ function MeetingMap(inConfig) {
|
|
|
17528
17530
|
function (position) {
|
|
17529
17531
|
coords = {latitude: position.coords.latitude, longitude: position.coords.longitude};
|
|
17530
17532
|
filterVisible(false);
|
|
17531
|
-
gDelegate.
|
|
17533
|
+
if (config.zoom) gDelegate.setZoom(false, config.zoom);
|
|
17534
|
+
gDelegate.setViewToPosition(coords, filterMeetingsAndBounds, () => {
|
|
17535
|
+
filterVisible(config.filter_visible == 1);
|
|
17536
|
+
});
|
|
17532
17537
|
gSearchPoint = {"lat": position.coords.latitude, "lng": position.coords.longitude};
|
|
17533
17538
|
crouton.updateDistances();
|
|
17534
17539
|
},
|
|
@@ -17541,7 +17546,7 @@ function MeetingMap(inConfig) {
|
|
|
17541
17546
|
if ((!config.centerMe && !config.goto) && !(config.map_search && config.filter_visible)) {
|
|
17542
17547
|
gDelegate.afterInit(()=>filterVisible(config.filter_visible));
|
|
17543
17548
|
}
|
|
17544
|
-
if (config.goto) gDelegate.callGeocoder(config.goto, resetVisibleThenFilterMeetingsAndBounds);
|
|
17549
|
+
if (config.goto) gDelegate.callGeocoder(config.goto, config.filter_visible == 1 ? resetVisibleThenFilterMeetingsAndBounds : setVisibleThenFilterMeetingsAndBounds);
|
|
17545
17550
|
}
|
|
17546
17551
|
}
|
|
17547
17552
|
function createCityHash(allMeetings) {
|
|
@@ -17644,6 +17649,15 @@ function MeetingMap(inConfig) {
|
|
|
17644
17649
|
}
|
|
17645
17650
|
return ret;
|
|
17646
17651
|
}
|
|
17652
|
+
function setVisibleThenFilterMeetingsAndBounds(bounds, center=null) {
|
|
17653
|
+
filterVisible(false);
|
|
17654
|
+
const ret = filterMeetingsAndBounds(bounds);
|
|
17655
|
+
if (gSearchPoint.lat != center.lat || gSearchPoint.lng != center.lng) {
|
|
17656
|
+
gSearchPoint = center;
|
|
17657
|
+
crouton.updateDistances();
|
|
17658
|
+
}
|
|
17659
|
+
return ret;
|
|
17660
|
+
}
|
|
17647
17661
|
function lookupLocation(fullscreen) {
|
|
17648
17662
|
if (document.getElementById('goto-text').value != '') {
|
|
17649
17663
|
if (fullscreen) {
|