@bmlt-enabled/croutonjs 3.19.1 → 3.19.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.
- package/crouton-core.css +27 -0
- package/crouton-core.js +206 -80
- package/crouton-core.min.css +1 -1
- package/crouton-core.min.js +1 -1
- package/crouton-gmaps.js +269 -99
- package/crouton-gmaps.min.js +1 -1
- package/crouton-map.js +63 -19
- package/crouton-map.min.js +1 -1
- package/crouton-nocore.js +86 -52
- package/crouton-nocore.min.js +1 -1
- package/crouton.css +62 -1
- package/crouton.js +269 -99
- package/crouton.min.css +1 -1
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +269 -99
- package/crouton.nojquery.min.js +1 -1
- package/package.json +1 -1
package/crouton-core.css
CHANGED
|
@@ -647,3 +647,30 @@ table.tablesaw {
|
|
|
647
647
|
#meeting-details-title {
|
|
648
648
|
font-size: 1.5em;
|
|
649
649
|
}
|
|
650
|
+
.bmlt-rtl {
|
|
651
|
+
direction: rtl;
|
|
652
|
+
}
|
|
653
|
+
#bmlt-header.bmlt-rtl {
|
|
654
|
+
text-align:right;
|
|
655
|
+
}
|
|
656
|
+
#nav-days.bmlt-rtl {
|
|
657
|
+
float:right;
|
|
658
|
+
}
|
|
659
|
+
#nav-days.bmlt-rtl li {
|
|
660
|
+
float:right;
|
|
661
|
+
}
|
|
662
|
+
#bmlt-tabs .bmlt-rtl .bmlt-column1 {
|
|
663
|
+
text-align: right;
|
|
664
|
+
}
|
|
665
|
+
#bmlt-tabs .bmlt-rtl .bmlt-column2 {
|
|
666
|
+
text-align: right;
|
|
667
|
+
}
|
|
668
|
+
.bmlt-rtl .marker_div_meeting {
|
|
669
|
+
text-align: right !important;
|
|
670
|
+
}
|
|
671
|
+
.bmlt-rtl #meeting-details-title {
|
|
672
|
+
text-align: right;
|
|
673
|
+
}
|
|
674
|
+
.bmlt-rtl #meeting-details-contents td {
|
|
675
|
+
text-align: right !important;
|
|
676
|
+
}
|
package/crouton-core.js
CHANGED
|
@@ -13255,8 +13255,7 @@ function CroutonLocalization(language) {
|
|
|
13255
13255
|
LS: "خدمة المنتديات المحلية",
|
|
13256
13256
|
GS: "Group Support Forum",
|
|
13257
13257
|
},
|
|
13258
|
-
|
|
13259
|
-
'css-floatdirection': 'style="float:right;"',
|
|
13258
|
+
"css-direction": 'bmlt-rtl',
|
|
13260
13259
|
"share": "مشاركة",
|
|
13261
13260
|
'tabular': "جدول",
|
|
13262
13261
|
'google_directions': 'اتجاهات جوجل للاجتماع',
|
|
@@ -13741,8 +13740,7 @@ function CroutonLocalization(language) {
|
|
|
13741
13740
|
'tabular': "As table",
|
|
13742
13741
|
'google_directions': 'Google directions to meeting',
|
|
13743
13742
|
"no_meetings_for_this_day": "No meetings for this day.",
|
|
13744
|
-
|
|
13745
|
-
'css-floatdirection': 'style="float:right;"',
|
|
13743
|
+
"css-direction": 'bmlt-rtl',
|
|
13746
13744
|
'all': 'All',
|
|
13747
13745
|
'menu': "Menu",
|
|
13748
13746
|
'search for meetings': 'Search for meetings',
|
|
@@ -14143,7 +14141,10 @@ CroutonLocalization.prototype.getDayOfTheWeekWord = function(day_id) {
|
|
|
14143
14141
|
|
|
14144
14142
|
CroutonLocalization.prototype.getWord = function(word) {
|
|
14145
14143
|
const ret = this.words[this.language][word.toLowerCase()];
|
|
14146
|
-
if (typeof ret === 'undefined')
|
|
14144
|
+
if (typeof ret === 'undefined') {
|
|
14145
|
+
if (word === 'css-direction') return '';
|
|
14146
|
+
return word;
|
|
14147
|
+
}
|
|
14147
14148
|
return ret;
|
|
14148
14149
|
};
|
|
14149
14150
|
|
|
@@ -14195,15 +14196,17 @@ this["hbs_Crouton"]["templates"]["byday"] = Handlebars.template({"1":function(co
|
|
|
14195
14196
|
+ container.escapeExpression(container.lambda((depth0 != null ? lookupProperty(depth0,"day") : depth0), depth0))
|
|
14196
14197
|
+ "</td>\n </tr>\n";
|
|
14197
14198
|
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14198
|
-
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14199
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14199
14200
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14200
14201
|
return parent[propertyName];
|
|
14201
14202
|
}
|
|
14202
14203
|
return undefined
|
|
14203
14204
|
};
|
|
14204
14205
|
|
|
14205
|
-
return "<div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack
|
|
14206
|
-
+ ((
|
|
14206
|
+
return "<div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack "
|
|
14207
|
+
+ container.escapeExpression((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":2,"column":100},"end":{"line":2,"column":127}}}))
|
|
14208
|
+
+ "'>\n"
|
|
14209
|
+
+ ((stack1 = lookupProperty(helpers,"each").call(alias1,depth0,{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":8},"end":{"line":15,"column":17}}})) != null ? stack1 : "")
|
|
14207
14210
|
+ " </table>\n</div>\n";
|
|
14208
14211
|
},"usePartial":true,"useData":true});
|
|
14209
14212
|
this["hbs_Crouton"]["templates"]["byfield"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
@@ -14221,15 +14224,17 @@ this["hbs_Crouton"]["templates"]["byfield"] = Handlebars.template({"1":function(
|
|
|
14221
14224
|
+ "</td>\n </tr>\n"
|
|
14222
14225
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"meetings"),depth0,{"name":"meetings","data":data,"indent":"\t\t\t","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
|
|
14223
14226
|
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14224
|
-
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14227
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14225
14228
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14226
14229
|
return parent[propertyName];
|
|
14227
14230
|
}
|
|
14228
14231
|
return undefined
|
|
14229
14232
|
};
|
|
14230
14233
|
|
|
14231
|
-
return "<div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack
|
|
14232
|
-
+ ((
|
|
14234
|
+
return "<div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack "
|
|
14235
|
+
+ container.escapeExpression((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":2,"column":97},"end":{"line":2,"column":124}}}))
|
|
14236
|
+
+ "'>\n <tbody class=\"byfield.hbs\">\n"
|
|
14237
|
+
+ ((stack1 = lookupProperty(helpers,"each").call(alias1,depth0,{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":4,"column":2},"end":{"line":9,"column":11}}})) != null ? stack1 : "")
|
|
14233
14238
|
+ " </tbody>\n </table>\n</div>\n";
|
|
14234
14239
|
},"usePartial":true,"useData":true});
|
|
14235
14240
|
this["hbs_Crouton"]["templates"]["formatPopup"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
@@ -14248,15 +14253,17 @@ this["hbs_Crouton"]["templates"]["formatPopup"] = Handlebars.template({"1":funct
|
|
|
14248
14253
|
+ alias4(((helper = (helper = lookupProperty(helpers,"description") || (depth0 != null ? lookupProperty(depth0,"description") : depth0)) != null ? helper : alias2),(typeof helper === alias3 ? helper.call(alias1,{"name":"description","hash":{},"data":data,"loc":{"start":{"line":6,"column":44},"end":{"line":6,"column":59}}}) : helper)))
|
|
14249
14254
|
+ "</td>\n </tr>\n";
|
|
14250
14255
|
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14251
|
-
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14256
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14252
14257
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14253
14258
|
return parent[propertyName];
|
|
14254
14259
|
}
|
|
14255
14260
|
return undefined
|
|
14256
14261
|
};
|
|
14257
14262
|
|
|
14258
|
-
return "<table class='bmlt_a_format table-bordered
|
|
14259
|
-
+ ((
|
|
14263
|
+
return "<table class='bmlt_a_format table-bordered "
|
|
14264
|
+
+ container.escapeExpression((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":70}}}))
|
|
14265
|
+
+ "'>\n"
|
|
14266
|
+
+ ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"formats_expanded") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":4},"end":{"line":8,"column":13}}})) != null ? stack1 : "")
|
|
14260
14267
|
+ "</table>";
|
|
14261
14268
|
},"useData":true});
|
|
14262
14269
|
this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
@@ -14377,27 +14384,27 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
|
|
|
14377
14384
|
+ ((stack1 = lookupProperty(helpers,"each").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"day_sequence") : stack1),{"name":"each","hash":{},"fn":container.program(18, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":37,"column":12},"end":{"line":39,"column":21}}})) != null ? stack1 : "")
|
|
14378
14385
|
+ " </ul>\n </div>\n";
|
|
14379
14386
|
},"14":function(container,depth0,helpers,partials,data) {
|
|
14380
|
-
var
|
|
14387
|
+
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14381
14388
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14382
14389
|
return parent[propertyName];
|
|
14383
14390
|
}
|
|
14384
14391
|
return undefined
|
|
14385
14392
|
};
|
|
14386
14393
|
|
|
14387
|
-
return " <div class=\"bmlt-page
|
|
14388
|
-
+ ((
|
|
14389
|
-
+ ">\n";
|
|
14394
|
+
return " <div class=\"bmlt-page "
|
|
14395
|
+
+ container.escapeExpression((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":32,"column":30},"end":{"line":32,"column":57}}}))
|
|
14396
|
+
+ " show\" id=\"nav-days\">\n";
|
|
14390
14397
|
},"16":function(container,depth0,helpers,partials,data) {
|
|
14391
|
-
var
|
|
14398
|
+
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14392
14399
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14393
14400
|
return parent[propertyName];
|
|
14394
14401
|
}
|
|
14395
14402
|
return undefined
|
|
14396
14403
|
};
|
|
14397
14404
|
|
|
14398
|
-
return " <div class=\"bmlt-page
|
|
14399
|
-
+ ((
|
|
14400
|
-
+ ">\n";
|
|
14405
|
+
return " <div class=\"bmlt-page "
|
|
14406
|
+
+ container.escapeExpression((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":34,"column":30},"end":{"line":34,"column":57}}}))
|
|
14407
|
+
+ " hide\" id=\"nav-days\">\n";
|
|
14401
14408
|
},"18":function(container,depth0,helpers,partials,data) {
|
|
14402
14409
|
var alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14403
14410
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -14426,7 +14433,7 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
|
|
|
14426
14433
|
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"has_tabs") : stack1),{"name":"if","hash":{},"fn":container.program(13, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":30,"column":0},"end":{"line":42,"column":7}}})) != null ? stack1 : "");
|
|
14427
14434
|
},"useData":true,"useDepths":true});
|
|
14428
14435
|
this["hbs_Crouton"]["templates"]["main"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
14429
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14436
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14430
14437
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14431
14438
|
return parent[propertyName];
|
|
14432
14439
|
}
|
|
@@ -14434,12 +14441,14 @@ this["hbs_Crouton"]["templates"]["main"] = Handlebars.template({"1":function(con
|
|
|
14434
14441
|
};
|
|
14435
14442
|
|
|
14436
14443
|
return " <div id=\"byfield_"
|
|
14437
|
-
+
|
|
14438
|
-
+ "\" class=\"bmlt-page
|
|
14444
|
+
+ alias3(((helper = (helper = lookupProperty(helpers,"key") || (data && lookupProperty(data,"key"))) != null ? helper : alias2),(typeof helper === "function" ? helper.call(alias1,{"name":"key","hash":{},"data":data,"loc":{"start":{"line":6,"column":19},"end":{"line":6,"column":29}}}) : helper)))
|
|
14445
|
+
+ "\" class=\"bmlt-page "
|
|
14446
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":6,"column":48},"end":{"line":6,"column":75}}}))
|
|
14447
|
+
+ " hide\" >\n"
|
|
14439
14448
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"byfields"),depth0,{"name":"byfields","data":data,"indent":"\t\t\t","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14440
14449
|
+ " </div>\n";
|
|
14441
14450
|
},"3":function(container,depth0,helpers,partials,data) {
|
|
14442
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14451
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14443
14452
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14444
14453
|
return parent[propertyName];
|
|
14445
14454
|
}
|
|
@@ -14447,31 +14456,46 @@ this["hbs_Crouton"]["templates"]["main"] = Handlebars.template({"1":function(con
|
|
|
14447
14456
|
};
|
|
14448
14457
|
|
|
14449
14458
|
return " <div id=\"byfield_"
|
|
14450
|
-
+
|
|
14451
|
-
+ "\" class=\"bmlt-page
|
|
14459
|
+
+ alias3(((helper = (helper = lookupProperty(helpers,"key") || (data && lookupProperty(data,"key"))) != null ? helper : alias2),(typeof helper === "function" ? helper.call(alias1,{"name":"key","hash":{},"data":data,"loc":{"start":{"line":11,"column":19},"end":{"line":11,"column":29}}}) : helper)))
|
|
14460
|
+
+ "\" class=\"bmlt-page "
|
|
14461
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":11,"column":48},"end":{"line":11,"column":75}}}))
|
|
14462
|
+
+ " hide\">\n"
|
|
14452
14463
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"byfields"),depth0,{"name":"byfields","data":data,"indent":"\t\t\t","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14453
14464
|
+ " </div>\n";
|
|
14454
14465
|
},"5":function(container,depth0,helpers,partials,data) {
|
|
14455
|
-
|
|
14466
|
+
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14467
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14468
|
+
return parent[propertyName];
|
|
14469
|
+
}
|
|
14470
|
+
return undefined
|
|
14471
|
+
};
|
|
14472
|
+
|
|
14473
|
+
return " <div id=\"byfield_embeddedMapPage\" class=\"bmlt-map bmlt-page "
|
|
14474
|
+
+ container.escapeExpression((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":16,"column":65},"end":{"line":16,"column":92}}}))
|
|
14475
|
+
+ " hide\">\n </div>\n";
|
|
14456
14476
|
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14457
|
-
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14477
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14458
14478
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14459
14479
|
return parent[propertyName];
|
|
14460
14480
|
}
|
|
14461
14481
|
return undefined
|
|
14462
14482
|
};
|
|
14463
14483
|
|
|
14464
|
-
return "<div id=\"bmlt-tabs-table\">\n <div id=\"bmlt-header\" class=\"bmlt-header
|
|
14465
|
-
+ ((
|
|
14466
|
-
+ ">\n"
|
|
14484
|
+
return "<div id=\"bmlt-tabs-table\">\n <div id=\"bmlt-header\" class=\"bmlt-header "
|
|
14485
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":2,"column":45},"end":{"line":2,"column":72}}}))
|
|
14486
|
+
+ " hide\">\n"
|
|
14467
14487
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"header"),depth0,{"name":"header","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14468
14488
|
+ " </div>\n"
|
|
14469
14489
|
+ ((stack1 = lookupProperty(helpers,"each").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"meetings") : depth0)) != null ? lookupProperty(stack1,"buttonFilters") : stack1),{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":5,"column":1},"end":{"line":9,"column":10}}})) != null ? stack1 : "")
|
|
14470
14490
|
+ ((stack1 = lookupProperty(helpers,"each").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"meetings") : depth0)) != null ? lookupProperty(stack1,"buttonFormatFilters") : stack1),{"name":"each","hash":{},"fn":container.program(3, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":10,"column":4},"end":{"line":14,"column":10}}})) != null ? stack1 : "")
|
|
14471
14491
|
+ ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"map_page") : stack1),{"name":"if","hash":{},"fn":container.program(5, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":15,"column":4},"end":{"line":18,"column":11}}})) != null ? stack1 : "")
|
|
14472
|
-
+ " <div id=\"byday\" class=\"bmlt-page
|
|
14492
|
+
+ " <div id=\"byday\" class=\"bmlt-page "
|
|
14493
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":19,"column":37},"end":{"line":19,"column":64}}}))
|
|
14494
|
+
+ " hide\">\n"
|
|
14473
14495
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"bydays"),((stack1 = (depth0 != null ? lookupProperty(depth0,"meetings") : depth0)) != null ? lookupProperty(stack1,"bydays") : stack1),{"name":"bydays","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14474
|
-
+ " </div>\n <div id=\"tabs-content\" class=\"bmlt-page
|
|
14496
|
+
+ " </div>\n <div id=\"tabs-content\" class=\"bmlt-page "
|
|
14497
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":22,"column":44},"end":{"line":22,"column":71}}}))
|
|
14498
|
+
+ "\">\n"
|
|
14475
14499
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"weekdays"),((stack1 = (depth0 != null ? lookupProperty(depth0,"meetings") : depth0)) != null ? lookupProperty(stack1,"weekdays") : stack1),{"name":"weekdays","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14476
14500
|
+ " </div>\n"
|
|
14477
14501
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"meetingCountTemplate"),depth0,{"name":"meetingCountTemplate","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
@@ -14548,15 +14572,19 @@ this["hbs_Crouton"]["templates"]["mapMenu"] = Handlebars.template({"1":function(
|
|
|
14548
14572
|
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"Filter meetings",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":14,"column":34},"end":{"line":14,"column":63}}}))
|
|
14549
14573
|
+ "</span><span id=\"close_filter\" class=\"modal-close\">×</span>\n"
|
|
14550
14574
|
+ ((stack1 = lookupProperty(helpers,"each").call(alias2,(depth0 != null ? lookupProperty(depth0,"dropdownData") : depth0),{"name":"each","hash":{},"fn":container.program(1, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":15,"column":8},"end":{"line":24,"column":17}}})) != null ? stack1 : "")
|
|
14551
|
-
+ " </div>\n</div>\n<div id=\"table_page\" class=\"bmlt-page
|
|
14575
|
+
+ " </div>\n</div>\n<div id=\"table_page\" class=\"bmlt-page "
|
|
14576
|
+
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":27,"column":38},"end":{"line":27,"column":65}}}))
|
|
14577
|
+
+ " hide\" >\n <div id=\"bmlt-maptable-header\"><span class=\"map-list-title\">"
|
|
14552
14578
|
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"Visible meeting list",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":28,"column":64},"end":{"line":28,"column":98}}}))
|
|
14553
|
-
+ "</span><span id=\"close_table\" class=\"table-close\">X</span></div>\n <div id=\"bmlt-maptable-div\" style=\"position:relative; overflow-y:scroll;\">\n \n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack
|
|
14579
|
+
+ "</span><span id=\"close_table\" class=\"table-close\">X</span></div>\n <div id=\"bmlt-maptable-div\" style=\"position:relative; overflow-y:scroll;\">\n \n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack "
|
|
14580
|
+
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":31,"column":104},"end":{"line":31,"column":131}}}))
|
|
14581
|
+
+ "'>\n"
|
|
14554
14582
|
+ ((stack1 = lookupProperty(helpers,"each").call(alias2,((stack1 = (depth0 != null ? lookupProperty(depth0,"meetings") : depth0)) != null ? lookupProperty(stack1,"bydays") : stack1),{"name":"each","hash":{},"fn":container.program(4, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":32,"column":8},"end":{"line":34,"column":17}}})) != null ? stack1 : "")
|
|
14555
14583
|
+ " </table>\n </div>\n</div>\n<div id=\"geocoding_modal\" class=\"modal\" style=\"display: none;\">\n <div id=\"search_content\" class=\"modal-content\">\n <span class=\"modal-title\">"
|
|
14556
14584
|
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"Show meetings near...",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":40,"column":28},"end":{"line":40,"column":63}}}))
|
|
14557
14585
|
+ "</span><span id=\"close_search\" class=\"modal-close\">x</span>\n <p></p>\n <div class=\"modal-search\">\n "
|
|
14558
14586
|
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"Enter a city or zip code",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":43,"column":12},"end":{"line":43,"column":50}}}))
|
|
14559
|
-
+ "\n <input id=\"goto-text\" type=\"text\">\n <
|
|
14587
|
+
+ "\n <input id=\"goto-text\" type=\"text\">\n <button id=\"goto-button\" class=\"filter-button\">Los</button>\n </div>\n </div> \n</div>\n\n";
|
|
14560
14588
|
},"usePartial":true,"useData":true,"useDepths":true});
|
|
14561
14589
|
this["hbs_Crouton"]["templates"]["mapSearch"] = Handlebars.template({"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14562
14590
|
var alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
@@ -14568,17 +14596,17 @@ this["hbs_Crouton"]["templates"]["mapSearch"] = Handlebars.template({"compiler":
|
|
|
14568
14596
|
|
|
14569
14597
|
return "<button id=\"map-search-button\" class=\"menu-button\" title=\"Erweiterte Suche\">\n <span class=\"menu-button-label\" style=\"position:initial;\">"
|
|
14570
14598
|
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"Search for meetings",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":2,"column":62},"end":{"line":2,"column":95}}}))
|
|
14571
|
-
+ "</span>\n</button>\n<div id=\"bmltsearch_modal\" class=\"modal\" style=\"display: none;\">\n <div id=\"bmltsearch_content\" class=\"modal-content\">\n <span class=\"modal-title\">"
|
|
14572
|
-
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"Search for meetings",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":
|
|
14573
|
-
+ "</span
|
|
14574
|
-
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"Enter a city or zip code",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":
|
|
14599
|
+
+ "</span>\n</button>\n<div id=\"bmltsearch_modal\" class=\"modal\" style=\"display: none;\">\n <div id=\"bmltsearch_content\" class=\"modal-content\">\n <span id=\"close_search\" class=\"modal-close\">x</span>\n <span class=\"modal-title\">"
|
|
14600
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"Search for meetings",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":7,"column":34},"end":{"line":7,"column":67}}}))
|
|
14601
|
+
+ "</span>\n <table>\n <tr><td><div class=\"modal-search\">\n <input id=\"bmltsearch-goto-text\" type=\"text\" placeholder=\""
|
|
14602
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"Enter a city or zip code",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":10,"column":70},"end":{"line":10,"column":108}}}))
|
|
14575
14603
|
+ "\" style=\"margin-bottom:5px;\">\n <button id=\"bmltsearch-text-button\" class=\"filter-button\">"
|
|
14576
|
-
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"text_search",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":
|
|
14577
|
-
+ "</button>\n </div></td></tr>\n <tr><td><div class=\"modal-search\">\n
|
|
14604
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"text_search",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":11,"column":70},"end":{"line":11,"column":95}}}))
|
|
14605
|
+
+ "</button>\n </div></td></tr>\n <tr><td><div class=\"modal-search\">\n <button id=\"bmltsearch-nearbyMeetings\" class=\"filter-button\">"
|
|
14578
14606
|
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"near_me",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":14,"column":77},"end":{"line":14,"column":98}}}))
|
|
14579
|
-
+ "</button>\n
|
|
14580
|
-
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"click_search",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":
|
|
14581
|
-
+ "</button>\n
|
|
14607
|
+
+ "</button>\n </div></td></tr>\n <tr><td><div class=\"modal-search\">\n <button id=\"bmltsearch-clicksearch\" class=\"filter-button\">"
|
|
14608
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"click_search",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":17,"column":74},"end":{"line":17,"column":100}}}))
|
|
14609
|
+
+ "</button>\n </div></td></tr></table>\n </div> \n</div>";
|
|
14582
14610
|
},"useData":true});
|
|
14583
14611
|
this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
14584
14612
|
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, alias4=container.lambda, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
@@ -14767,7 +14795,7 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
14767
14795
|
return ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"each","hash":{},"fn":container.program(1, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":57,"column":9}}})) != null ? stack1 : "");
|
|
14768
14796
|
},"usePartial":true,"useData":true});
|
|
14769
14797
|
this["hbs_Crouton"]["templates"]["weekdays"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
14770
|
-
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14798
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14771
14799
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14772
14800
|
return parent[propertyName];
|
|
14773
14801
|
}
|
|
@@ -14775,8 +14803,10 @@ this["hbs_Crouton"]["templates"]["weekdays"] = Handlebars.template({"1":function
|
|
|
14775
14803
|
};
|
|
14776
14804
|
|
|
14777
14805
|
return " <div id='tab"
|
|
14778
|
-
+
|
|
14779
|
-
+ "' class='tab-pane'>\n <div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack
|
|
14806
|
+
+ alias3(((helper = (helper = lookupProperty(helpers,"day") || (depth0 != null ? lookupProperty(depth0,"day") : depth0)) != null ? helper : alias2),(typeof helper === "function" ? helper.call(alias1,{"name":"day","hash":{},"data":data,"loc":{"start":{"line":3,"column":20},"end":{"line":3,"column":29}}}) : helper)))
|
|
14807
|
+
+ "' class='tab-pane'>\n <div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack "
|
|
14808
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":5,"column":112},"end":{"line":5,"column":139}}}))
|
|
14809
|
+
+ "'>\n <tbody class=\"weekdays.hbs\">\n"
|
|
14780
14810
|
+ ((stack1 = (lookupProperty(helpers,"greaterThan")||(depth0 && lookupProperty(depth0,"greaterThan"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"meetings") : depth0)) != null ? lookupProperty(stack1,"length") : stack1),0,{"name":"greaterThan","hash":{},"fn":container.program(2, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":7,"column":6},"end":{"line":9,"column":22}}})) != null ? stack1 : "")
|
|
14781
14811
|
+ ((stack1 = (lookupProperty(helpers,"lessThan")||(depth0 && lookupProperty(depth0,"lessThan"))||alias2).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"meetings") : depth0)) != null ? lookupProperty(stack1,"length") : stack1),1,{"name":"lessThan","hash":{},"fn":container.program(4, data, 0),"inverse":container.noop,"data":data,"loc":{"start":{"line":10,"column":6},"end":{"line":16,"column":19}}})) != null ? stack1 : "")
|
|
14782
14812
|
+ " </tbody>\n </table>\n </div>\n </div>\n";
|
|
@@ -14885,8 +14915,8 @@ var croutonDefaultTemplates = {
|
|
|
14885
14915
|
meetingpage_frame_template: `
|
|
14886
14916
|
<div id="meeting_modal" class="modal bootstrap-bmlt" style="display: none;" tabindex="-1" >
|
|
14887
14917
|
<div class="modal-content">
|
|
14888
|
-
<span class="modal-title">{{getWord "Meeting Details"}}</span><span id="close_meeting_details" class="modal-close">×</span>
|
|
14889
|
-
<table id="meeting-details-table" class="bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack meeting-details">
|
|
14918
|
+
<span class="modal-title">{{getWord "Meeting Details"}}</span><span id="close_meeting_details" class="modal-close" style="position: absolute;right: 5px;top:10px;">×</span>
|
|
14919
|
+
<table id="meeting-details-table" class="bmlt-table {{getWord 'css-direction'}} table table-striped table-hover table-bordered tablesaw tablesaw-stack meeting-details">
|
|
14890
14920
|
<thead>
|
|
14891
14921
|
<th id="meeting-details-title" colspan="2">
|
|
14892
14922
|
{{> meetingpageTitleTemplate this}}
|
|
@@ -14904,6 +14934,10 @@ var croutonDefaultTemplates = {
|
|
|
14904
14934
|
<a id="map-button" class="btn btn-primary btn-xs modal-close" tabindex="0" style="float:right">
|
|
14905
14935
|
{{getWord "Close"}}</a>
|
|
14906
14936
|
</div>
|
|
14937
|
+
<div class="swipe-buttons">
|
|
14938
|
+
<span class="modal-right">></span>
|
|
14939
|
+
<span class="modal-left"><</span>
|
|
14940
|
+
</div>
|
|
14907
14941
|
</div></div>`,
|
|
14908
14942
|
meetingpage_title_template: [
|
|
14909
14943
|
"{{this.formatted_day}} {{this.start_time_formatted}} - {{this.end_time_formatted}}: {{this.meeting_name}}"
|
|
@@ -15993,6 +16027,27 @@ crouton_Handlebars.registerHelper("startup", () => '');
|
|
|
15993
16027
|
crouton_Handlebars.registerHelper("enrich", () => '');
|
|
15994
16028
|
crouton_Handlebars.registerHelper('selectFormatPopup', () => "formatPopup");
|
|
15995
16029
|
crouton_Handlebars.registerHelper('selectObserver', () => "observerTemplate");
|
|
16030
|
+
|
|
16031
|
+
const retrieveGeolocation = () => {
|
|
16032
|
+
return new Promise((resolve, reject) => {
|
|
16033
|
+
if (window.storedGeolocation) {
|
|
16034
|
+
resolve(window.storedGeolocation);
|
|
16035
|
+
} else if (navigator.geolocation) {
|
|
16036
|
+
navigator.geolocation.getCurrentPosition((position) => {
|
|
16037
|
+
window.storedGeolocation = {
|
|
16038
|
+
latitude: position.coords.latitude,
|
|
16039
|
+
longitude: position.coords.longitude
|
|
16040
|
+
};
|
|
16041
|
+
resolve(window.storedGeolocation);
|
|
16042
|
+
}, (error) => {
|
|
16043
|
+
reject(new Error('Error getting geolocation: ' + error.message));
|
|
16044
|
+
});
|
|
16045
|
+
} else {
|
|
16046
|
+
reject(new Error('Geolocation is not supported by this browser.'));
|
|
16047
|
+
}
|
|
16048
|
+
});
|
|
16049
|
+
};
|
|
16050
|
+
|
|
15996
16051
|
function Crouton(config) {
|
|
15997
16052
|
var self = this;
|
|
15998
16053
|
self.mutex = false;
|
|
@@ -16239,18 +16294,14 @@ function Crouton(config) {
|
|
|
16239
16294
|
}
|
|
16240
16295
|
|
|
16241
16296
|
if (self.config['distance_search'] !== 0) {
|
|
16242
|
-
|
|
16243
|
-
|
|
16244
|
-
|
|
16245
|
-
|
|
16246
|
-
|
|
16247
|
-
|
|
16248
|
-
|
|
16249
|
-
|
|
16250
|
-
url += (self.config['distance_units'] === "km" ? '&geo_width_km=' : '&geo_width=') + self.config['distance_search'];
|
|
16251
|
-
return self.getMeetings(url);
|
|
16252
|
-
});
|
|
16253
|
-
}
|
|
16297
|
+
return retrieveGeolocation().then((position) => {
|
|
16298
|
+
url += '&lat_val=' + position.latitude + '&long_val=' + position.longitude + '&sort_results_by_distance=1';
|
|
16299
|
+
url += (self.config['distance_units'] === "km" ? '&geo_width_km=' : '&geo_width=') + self.config['distance_search'];
|
|
16300
|
+
return self.getMeetings(url);
|
|
16301
|
+
}).catch((error) => {
|
|
16302
|
+
console.error(error.message);
|
|
16303
|
+
return self.getMeetings(url); // Proceed without geolocation if error occurs
|
|
16304
|
+
});
|
|
16254
16305
|
} else if (self.config['custom_query'] != null) {
|
|
16255
16306
|
url += self.config['custom_query'] + '&sort_keys=' + self.config['sort_keys'];
|
|
16256
16307
|
return self.getMeetings(url);
|
|
@@ -16468,11 +16519,11 @@ function Crouton(config) {
|
|
|
16468
16519
|
croutonMap.initialize(self.createBmltMapElement(),self.meetingData,context,null,fitBounds,callback);
|
|
16469
16520
|
}
|
|
16470
16521
|
self.getCurrentLocation = function(callback) {
|
|
16471
|
-
|
|
16472
|
-
|
|
16473
|
-
}
|
|
16474
|
-
|
|
16475
|
-
}
|
|
16522
|
+
retrieveGeolocation().then(position => {
|
|
16523
|
+
callback(position);
|
|
16524
|
+
}).catch(error => {
|
|
16525
|
+
jQuery('.geo').removeClass("hide").addClass("show").html(`<p>${error.message}</p>`);
|
|
16526
|
+
});
|
|
16476
16527
|
};
|
|
16477
16528
|
self.renderView = function (selector, context, callback, fitBounds) {
|
|
16478
16529
|
hbs_Crouton['localization'] = self.localization;
|
|
@@ -16531,7 +16582,7 @@ function Crouton(config) {
|
|
|
16531
16582
|
});
|
|
16532
16583
|
}
|
|
16533
16584
|
self.getServiceBodies = function(service_bodies_id) {
|
|
16534
|
-
|
|
16585
|
+
const requires_parents = true;
|
|
16535
16586
|
|
|
16536
16587
|
var url = this.config['root_server'] + '/client_interface/jsonp/?switcher=GetServiceBodies'
|
|
16537
16588
|
+ (requires_parents ? '&parents=1' : '') + getServiceBodiesQueryString(service_bodies_id);
|
|
@@ -16550,8 +16601,8 @@ function Crouton(config) {
|
|
|
16550
16601
|
}
|
|
16551
16602
|
|
|
16552
16603
|
self.showLocation = function(position) {
|
|
16553
|
-
var latitude = position.
|
|
16554
|
-
var longitude = position.
|
|
16604
|
+
var latitude = position.latitude;
|
|
16605
|
+
var longitude = position.longitude;
|
|
16555
16606
|
var distanceUnit;
|
|
16556
16607
|
var distanceCalculation;
|
|
16557
16608
|
|
|
@@ -16860,7 +16911,7 @@ function Crouton(config) {
|
|
|
16860
16911
|
};
|
|
16861
16912
|
self.createBmltMapElement = function() {
|
|
16862
16913
|
if (!document.getElementById('bmlt-map')) {
|
|
16863
|
-
jQuery("#bmlt-tabs").before("<div id='bmlt-map' class='bootstrap-bmlt bmlt-map bmlt_map_container_div'></div>");
|
|
16914
|
+
jQuery("#bmlt-tabs").before("<div id='bmlt-map' class='bootstrap-bmlt bmlt-map "+self.localization.getWord('css-direction')+" bmlt_map_container_div'></div>");
|
|
16864
16915
|
}
|
|
16865
16916
|
return 'bmlt-map';
|
|
16866
16917
|
}
|
|
@@ -16868,7 +16919,7 @@ function Crouton(config) {
|
|
|
16868
16919
|
window.croutonMap = new MeetingMap(self.config);
|
|
16869
16920
|
if (self.config['map_search']) self.searchMap();
|
|
16870
16921
|
}
|
|
16871
|
-
self.meetingSearch();
|
|
16922
|
+
else if (!self.config['map_search']) self.meetingSearch();
|
|
16872
16923
|
}
|
|
16873
16924
|
|
|
16874
16925
|
Crouton.prototype.setConfig = function(config) {
|
|
@@ -16966,8 +17017,10 @@ Crouton.prototype.doHandlebars = function() {
|
|
|
16966
17017
|
.then(function(data) {
|
|
16967
17018
|
hbs_Crouton['localization'] = self.localization;
|
|
16968
17019
|
self.all_service_bodies = [];
|
|
16969
|
-
var
|
|
16970
|
-
|
|
17020
|
+
var service_bodies = data[0];
|
|
17021
|
+
for (var i = 0; i < service_bodies.length; i++) {
|
|
17022
|
+
self.all_service_bodies.push(service_bodies[i]);
|
|
17023
|
+
}
|
|
16971
17024
|
var enrichedMeetingData = self.enrichMeetings(self.meetingData);
|
|
16972
17025
|
var customStartupTemplate = crouton_Handlebars.compile('{{startup}}');
|
|
16973
17026
|
customStartupTemplate(enrichedMeetingData);
|
|
@@ -16982,18 +17035,59 @@ Crouton.prototype.doHandlebars = function() {
|
|
|
16982
17035
|
|
|
16983
17036
|
Crouton.prototype.meetingModal = function(meetingId) {
|
|
16984
17037
|
let self = this;
|
|
17038
|
+
const tabs = document.getElementById('bmlt-tabs');
|
|
17039
|
+
|
|
16985
17040
|
let el = document.createElement('bmlt-handlebar');
|
|
16986
|
-
let tabs = document.getElementById('bmlt-tabs');
|
|
16987
17041
|
tabs.appendChild(el);
|
|
16988
17042
|
let span = document.createElement('span');
|
|
16989
|
-
let meeting = self.meetingData.find((m) => m.id_bigint == meetingId);
|
|
16990
17043
|
el.appendChild(span);
|
|
16991
17044
|
span.textContent = self.config.meetingpage_frame_template;
|
|
17045
|
+
let meeting = self.meetingData.find((m) => m.id_bigint == meetingId);
|
|
16992
17046
|
self.handlebars(meeting, tabs.getElementsByTagName('bmlt-handlebar'));
|
|
17047
|
+
|
|
16993
17048
|
[...tabs.getElementsByClassName('modal-close')].forEach((elem)=>elem.addEventListener('click', (e)=>{croutonMap.closeModalWindow(e.target); document.getElementById('meeting_modal').remove()}));
|
|
16994
|
-
document.
|
|
16995
|
-
|
|
17049
|
+
let mm = document.getElementById('meeting_modal');
|
|
17050
|
+
document.body.appendChild(mm);
|
|
17051
|
+
croutonMap.openModalWindow(mm, true);
|
|
16996
17052
|
croutonMap.showMap(true);
|
|
17053
|
+
let visibleMeetings = jQuery('.bmlt-data-row:visible');
|
|
17054
|
+
let index = -1;
|
|
17055
|
+
const prefix = "meeting-data-row-";
|
|
17056
|
+
for (k=0; k<visibleMeetings.length; k++) {
|
|
17057
|
+
if (visibleMeetings[k].id===prefix+meetingId) {
|
|
17058
|
+
index = k;
|
|
17059
|
+
break;
|
|
17060
|
+
}
|
|
17061
|
+
};
|
|
17062
|
+
let doSwipe = function(swipedir) {
|
|
17063
|
+
switch(swipedir) {
|
|
17064
|
+
case 'left':
|
|
17065
|
+
index = index+1;
|
|
17066
|
+
break;
|
|
17067
|
+
case 'right':
|
|
17068
|
+
index = index-1;
|
|
17069
|
+
break;
|
|
17070
|
+
default:
|
|
17071
|
+
index = -1;
|
|
17072
|
+
}
|
|
17073
|
+
if (index >= 0 && index < visibleMeetings.length) {
|
|
17074
|
+
const newMeeting = visibleMeetings[index];
|
|
17075
|
+
meetingId = newMeeting.id.substring(prefix.length);
|
|
17076
|
+
mm.getElementsByClassName('modal-close').item(0).dispatchEvent(new MouseEvent("click"));
|
|
17077
|
+
self.meetingModal(meetingId);
|
|
17078
|
+
}
|
|
17079
|
+
}
|
|
17080
|
+
swipedetect(mm, doSwipe);
|
|
17081
|
+
if (index <= 0) {
|
|
17082
|
+
jQuery(".modal-left").addClass("hide");
|
|
17083
|
+
} else {
|
|
17084
|
+
mm.getElementsByClassName('modal-left').item(0).addEventListener("click", ev=>doSwipe("right"));
|
|
17085
|
+
}
|
|
17086
|
+
if (index >= visibleMeetings.length-1) {
|
|
17087
|
+
jQuery(".modal-right").addClass("hide");
|
|
17088
|
+
} else {
|
|
17089
|
+
mm.getElementsByClassName('modal-right').item(0).addEventListener("click", ev=>doSwipe("left"));
|
|
17090
|
+
}
|
|
16997
17091
|
}
|
|
16998
17092
|
Crouton.prototype.searchMap = function() {
|
|
16999
17093
|
var self = this;
|
|
@@ -17770,3 +17864,35 @@ Array.prototype.sortByKey = function (key) {
|
|
|
17770
17864
|
});
|
|
17771
17865
|
return this;
|
|
17772
17866
|
};
|
|
17867
|
+
function swipedetect(el, callback){
|
|
17868
|
+
|
|
17869
|
+
var touchsurface = el,
|
|
17870
|
+
swipedir,
|
|
17871
|
+
startX,
|
|
17872
|
+
startY,
|
|
17873
|
+
distX,
|
|
17874
|
+
distY,
|
|
17875
|
+
threshold = 150, //required min distance traveled to be considered swipe
|
|
17876
|
+
restraint = 100, // maximum distance allowed at the same time in perpendicular direction
|
|
17877
|
+
handleswipe = callback || function(swipedir){}
|
|
17878
|
+
|
|
17879
|
+
touchsurface.addEventListener('touchstart', function(e){
|
|
17880
|
+
var touchobj = e.changedTouches[0]
|
|
17881
|
+
swipedir = 'none'
|
|
17882
|
+
startX = touchobj.pageX
|
|
17883
|
+
startY = touchobj.pageY
|
|
17884
|
+
}, false)
|
|
17885
|
+
|
|
17886
|
+
|
|
17887
|
+
touchsurface.addEventListener('touchend', function(e){
|
|
17888
|
+
if (!e.cancelable) return;
|
|
17889
|
+
var touchobj = e.changedTouches[0]
|
|
17890
|
+
distX = touchobj.pageX - startX // get horizontal dist traveled by finger while in contact with surface
|
|
17891
|
+
distY = touchobj.pageY - startY // get vertical dist traveled by finger while in contact with surface
|
|
17892
|
+
if (Math.abs(distX) >= threshold && Math.abs(distY) <= restraint){ // 2nd condition for horizontal swipe met
|
|
17893
|
+
swipedir = (distX < 0)? 'left' : 'right' // if dist traveled is negative, it indicates left swipe
|
|
17894
|
+
handleswipe(swipedir)
|
|
17895
|
+
e.preventDefault()
|
|
17896
|
+
}
|
|
17897
|
+
}, false)
|
|
17898
|
+
}
|