@bmlt-enabled/croutonjs 3.19.2 → 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 +160 -51
- package/crouton-core.min.css +1 -1
- package/crouton-core.min.js +1 -1
- package/crouton-gmaps.js +187 -55
- package/crouton-gmaps.min.js +1 -1
- package/crouton-map.js +27 -4
- package/crouton-map.min.js +1 -1
- package/crouton-nocore.js +76 -42
- package/crouton-nocore.min.js +1 -1
- package/crouton.css +52 -4
- package/crouton.js +187 -55
- package/crouton.min.css +1 -1
- package/crouton.min.js +1 -1
- package/crouton.nojquery.js +187 -55
- package/crouton.nojquery.min.js +1 -1
- package/package.json +1 -1
package/crouton-gmaps.js
CHANGED
|
@@ -13258,8 +13258,7 @@ function CroutonLocalization(language) {
|
|
|
13258
13258
|
LS: "خدمة المنتديات المحلية",
|
|
13259
13259
|
GS: "Group Support Forum",
|
|
13260
13260
|
},
|
|
13261
|
-
|
|
13262
|
-
'css-floatdirection': 'style="float:right;"',
|
|
13261
|
+
"css-direction": 'bmlt-rtl',
|
|
13263
13262
|
"share": "مشاركة",
|
|
13264
13263
|
'tabular': "جدول",
|
|
13265
13264
|
'google_directions': 'اتجاهات جوجل للاجتماع',
|
|
@@ -13744,8 +13743,7 @@ function CroutonLocalization(language) {
|
|
|
13744
13743
|
'tabular': "As table",
|
|
13745
13744
|
'google_directions': 'Google directions to meeting',
|
|
13746
13745
|
"no_meetings_for_this_day": "No meetings for this day.",
|
|
13747
|
-
|
|
13748
|
-
'css-floatdirection': 'style="float:right;"',
|
|
13746
|
+
"css-direction": 'bmlt-rtl',
|
|
13749
13747
|
'all': 'All',
|
|
13750
13748
|
'menu': "Menu",
|
|
13751
13749
|
'search for meetings': 'Search for meetings',
|
|
@@ -14146,7 +14144,10 @@ CroutonLocalization.prototype.getDayOfTheWeekWord = function(day_id) {
|
|
|
14146
14144
|
|
|
14147
14145
|
CroutonLocalization.prototype.getWord = function(word) {
|
|
14148
14146
|
const ret = this.words[this.language][word.toLowerCase()];
|
|
14149
|
-
if (typeof ret === 'undefined')
|
|
14147
|
+
if (typeof ret === 'undefined') {
|
|
14148
|
+
if (word === 'css-direction') return '';
|
|
14149
|
+
return word;
|
|
14150
|
+
}
|
|
14150
14151
|
return ret;
|
|
14151
14152
|
};
|
|
14152
14153
|
|
|
@@ -14198,15 +14199,17 @@ this["hbs_Crouton"]["templates"]["byday"] = Handlebars.template({"1":function(co
|
|
|
14198
14199
|
+ container.escapeExpression(container.lambda((depth0 != null ? lookupProperty(depth0,"day") : depth0), depth0))
|
|
14199
14200
|
+ "</td>\n </tr>\n";
|
|
14200
14201
|
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14201
|
-
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14202
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14202
14203
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14203
14204
|
return parent[propertyName];
|
|
14204
14205
|
}
|
|
14205
14206
|
return undefined
|
|
14206
14207
|
};
|
|
14207
14208
|
|
|
14208
|
-
return "<div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack
|
|
14209
|
-
+ ((
|
|
14209
|
+
return "<div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack "
|
|
14210
|
+
+ 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}}}))
|
|
14211
|
+
+ "'>\n"
|
|
14212
|
+
+ ((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 : "")
|
|
14210
14213
|
+ " </table>\n</div>\n";
|
|
14211
14214
|
},"usePartial":true,"useData":true});
|
|
14212
14215
|
this["hbs_Crouton"]["templates"]["byfield"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
@@ -14224,15 +14227,17 @@ this["hbs_Crouton"]["templates"]["byfield"] = Handlebars.template({"1":function(
|
|
|
14224
14227
|
+ "</td>\n </tr>\n"
|
|
14225
14228
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"meetings"),depth0,{"name":"meetings","data":data,"indent":"\t\t\t","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "");
|
|
14226
14229
|
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14227
|
-
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14230
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14228
14231
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14229
14232
|
return parent[propertyName];
|
|
14230
14233
|
}
|
|
14231
14234
|
return undefined
|
|
14232
14235
|
};
|
|
14233
14236
|
|
|
14234
|
-
return "<div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack
|
|
14235
|
-
+ ((
|
|
14237
|
+
return "<div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack "
|
|
14238
|
+
+ 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}}}))
|
|
14239
|
+
+ "'>\n <tbody class=\"byfield.hbs\">\n"
|
|
14240
|
+
+ ((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 : "")
|
|
14236
14241
|
+ " </tbody>\n </table>\n</div>\n";
|
|
14237
14242
|
},"usePartial":true,"useData":true});
|
|
14238
14243
|
this["hbs_Crouton"]["templates"]["formatPopup"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
@@ -14251,15 +14256,17 @@ this["hbs_Crouton"]["templates"]["formatPopup"] = Handlebars.template({"1":funct
|
|
|
14251
14256
|
+ 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)))
|
|
14252
14257
|
+ "</td>\n </tr>\n";
|
|
14253
14258
|
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14254
|
-
var stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14259
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14255
14260
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14256
14261
|
return parent[propertyName];
|
|
14257
14262
|
}
|
|
14258
14263
|
return undefined
|
|
14259
14264
|
};
|
|
14260
14265
|
|
|
14261
|
-
return "<table class='bmlt_a_format table-bordered
|
|
14262
|
-
+ ((
|
|
14266
|
+
return "<table class='bmlt_a_format table-bordered "
|
|
14267
|
+
+ 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}}}))
|
|
14268
|
+
+ "'>\n"
|
|
14269
|
+
+ ((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 : "")
|
|
14263
14270
|
+ "</table>";
|
|
14264
14271
|
},"useData":true});
|
|
14265
14272
|
this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data,blockParams,depths) {
|
|
@@ -14380,27 +14387,27 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
|
|
|
14380
14387
|
+ ((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 : "")
|
|
14381
14388
|
+ " </ul>\n </div>\n";
|
|
14382
14389
|
},"14":function(container,depth0,helpers,partials,data) {
|
|
14383
|
-
var
|
|
14390
|
+
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14384
14391
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14385
14392
|
return parent[propertyName];
|
|
14386
14393
|
}
|
|
14387
14394
|
return undefined
|
|
14388
14395
|
};
|
|
14389
14396
|
|
|
14390
|
-
return " <div class=\"bmlt-page
|
|
14391
|
-
+ ((
|
|
14392
|
-
+ ">\n";
|
|
14397
|
+
return " <div class=\"bmlt-page "
|
|
14398
|
+
+ 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}}}))
|
|
14399
|
+
+ " show\" id=\"nav-days\">\n";
|
|
14393
14400
|
},"16":function(container,depth0,helpers,partials,data) {
|
|
14394
|
-
var
|
|
14401
|
+
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14395
14402
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14396
14403
|
return parent[propertyName];
|
|
14397
14404
|
}
|
|
14398
14405
|
return undefined
|
|
14399
14406
|
};
|
|
14400
14407
|
|
|
14401
|
-
return " <div class=\"bmlt-page
|
|
14402
|
-
+ ((
|
|
14403
|
-
+ ">\n";
|
|
14408
|
+
return " <div class=\"bmlt-page "
|
|
14409
|
+
+ 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}}}))
|
|
14410
|
+
+ " hide\" id=\"nav-days\">\n";
|
|
14404
14411
|
},"18":function(container,depth0,helpers,partials,data) {
|
|
14405
14412
|
var alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14406
14413
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
@@ -14429,7 +14436,7 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
|
|
|
14429
14436
|
+ ((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 : "");
|
|
14430
14437
|
},"useData":true,"useDepths":true});
|
|
14431
14438
|
this["hbs_Crouton"]["templates"]["main"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
14432
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14439
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14433
14440
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14434
14441
|
return parent[propertyName];
|
|
14435
14442
|
}
|
|
@@ -14437,12 +14444,14 @@ this["hbs_Crouton"]["templates"]["main"] = Handlebars.template({"1":function(con
|
|
|
14437
14444
|
};
|
|
14438
14445
|
|
|
14439
14446
|
return " <div id=\"byfield_"
|
|
14440
|
-
+
|
|
14441
|
-
+ "\" class=\"bmlt-page
|
|
14447
|
+
+ 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)))
|
|
14448
|
+
+ "\" class=\"bmlt-page "
|
|
14449
|
+
+ 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}}}))
|
|
14450
|
+
+ " hide\" >\n"
|
|
14442
14451
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"byfields"),depth0,{"name":"byfields","data":data,"indent":"\t\t\t","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14443
14452
|
+ " </div>\n";
|
|
14444
14453
|
},"3":function(container,depth0,helpers,partials,data) {
|
|
14445
|
-
var stack1, helper, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14454
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14446
14455
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14447
14456
|
return parent[propertyName];
|
|
14448
14457
|
}
|
|
@@ -14450,31 +14459,46 @@ this["hbs_Crouton"]["templates"]["main"] = Handlebars.template({"1":function(con
|
|
|
14450
14459
|
};
|
|
14451
14460
|
|
|
14452
14461
|
return " <div id=\"byfield_"
|
|
14453
|
-
+
|
|
14454
|
-
+ "\" class=\"bmlt-page
|
|
14462
|
+
+ 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)))
|
|
14463
|
+
+ "\" class=\"bmlt-page "
|
|
14464
|
+
+ 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}}}))
|
|
14465
|
+
+ " hide\">\n"
|
|
14455
14466
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"byfields"),depth0,{"name":"byfields","data":data,"indent":"\t\t\t","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14456
14467
|
+ " </div>\n";
|
|
14457
14468
|
},"5":function(container,depth0,helpers,partials,data) {
|
|
14458
|
-
|
|
14469
|
+
var lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14470
|
+
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14471
|
+
return parent[propertyName];
|
|
14472
|
+
}
|
|
14473
|
+
return undefined
|
|
14474
|
+
};
|
|
14475
|
+
|
|
14476
|
+
return " <div id=\"byfield_embeddedMapPage\" class=\"bmlt-map bmlt-page "
|
|
14477
|
+
+ 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}}}))
|
|
14478
|
+
+ " hide\">\n </div>\n";
|
|
14459
14479
|
},"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data) {
|
|
14460
|
-
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14480
|
+
var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14461
14481
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14462
14482
|
return parent[propertyName];
|
|
14463
14483
|
}
|
|
14464
14484
|
return undefined
|
|
14465
14485
|
};
|
|
14466
14486
|
|
|
14467
|
-
return "<div id=\"bmlt-tabs-table\">\n <div id=\"bmlt-header\" class=\"bmlt-header
|
|
14468
|
-
+ ((
|
|
14469
|
-
+ ">\n"
|
|
14487
|
+
return "<div id=\"bmlt-tabs-table\">\n <div id=\"bmlt-header\" class=\"bmlt-header "
|
|
14488
|
+
+ 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}}}))
|
|
14489
|
+
+ " hide\">\n"
|
|
14470
14490
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"header"),depth0,{"name":"header","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14471
14491
|
+ " </div>\n"
|
|
14472
14492
|
+ ((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 : "")
|
|
14473
14493
|
+ ((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 : "")
|
|
14474
14494
|
+ ((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 : "")
|
|
14475
|
-
+ " <div id=\"byday\" class=\"bmlt-page
|
|
14495
|
+
+ " <div id=\"byday\" class=\"bmlt-page "
|
|
14496
|
+
+ 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}}}))
|
|
14497
|
+
+ " hide\">\n"
|
|
14476
14498
|
+ ((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 : "")
|
|
14477
|
-
+ " </div>\n <div id=\"tabs-content\" class=\"bmlt-page
|
|
14499
|
+
+ " </div>\n <div id=\"tabs-content\" class=\"bmlt-page "
|
|
14500
|
+
+ 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}}}))
|
|
14501
|
+
+ "\">\n"
|
|
14478
14502
|
+ ((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 : "")
|
|
14479
14503
|
+ " </div>\n"
|
|
14480
14504
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"meetingCountTemplate"),depth0,{"name":"meetingCountTemplate","data":data,"indent":" ","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
@@ -14551,9 +14575,13 @@ this["hbs_Crouton"]["templates"]["mapMenu"] = Handlebars.template({"1":function(
|
|
|
14551
14575
|
+ 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}}}))
|
|
14552
14576
|
+ "</span><span id=\"close_filter\" class=\"modal-close\">×</span>\n"
|
|
14553
14577
|
+ ((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 : "")
|
|
14554
|
-
+ " </div>\n</div>\n<div id=\"table_page\" class=\"bmlt-page
|
|
14578
|
+
+ " </div>\n</div>\n<div id=\"table_page\" class=\"bmlt-page "
|
|
14579
|
+
+ 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}}}))
|
|
14580
|
+
+ " hide\" >\n <div id=\"bmlt-maptable-header\"><span class=\"map-list-title\">"
|
|
14555
14581
|
+ 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}}}))
|
|
14556
|
-
+ "</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
|
|
14582
|
+
+ "</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 "
|
|
14583
|
+
+ 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}}}))
|
|
14584
|
+
+ "'>\n"
|
|
14557
14585
|
+ ((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 : "")
|
|
14558
14586
|
+ " </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\">"
|
|
14559
14587
|
+ 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}}}))
|
|
@@ -14770,7 +14798,7 @@ this["hbs_Crouton"]["templates"]["meetings"] = Handlebars.template({"1":function
|
|
|
14770
14798
|
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 : "");
|
|
14771
14799
|
},"usePartial":true,"useData":true});
|
|
14772
14800
|
this["hbs_Crouton"]["templates"]["weekdays"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
|
|
14773
|
-
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14801
|
+
var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
|
|
14774
14802
|
if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
|
|
14775
14803
|
return parent[propertyName];
|
|
14776
14804
|
}
|
|
@@ -14778,8 +14806,10 @@ this["hbs_Crouton"]["templates"]["weekdays"] = Handlebars.template({"1":function
|
|
|
14778
14806
|
};
|
|
14779
14807
|
|
|
14780
14808
|
return " <div id='tab"
|
|
14781
|
-
+
|
|
14782
|
-
+ "' class='tab-pane'>\n <div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack
|
|
14809
|
+
+ 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)))
|
|
14810
|
+
+ "' class='tab-pane'>\n <div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack "
|
|
14811
|
+
+ 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}}}))
|
|
14812
|
+
+ "'>\n <tbody class=\"weekdays.hbs\">\n"
|
|
14783
14813
|
+ ((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 : "")
|
|
14784
14814
|
+ ((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 : "")
|
|
14785
14815
|
+ " </tbody>\n </table>\n </div>\n </div>\n";
|
|
@@ -14888,8 +14918,8 @@ var croutonDefaultTemplates = {
|
|
|
14888
14918
|
meetingpage_frame_template: `
|
|
14889
14919
|
<div id="meeting_modal" class="modal bootstrap-bmlt" style="display: none;" tabindex="-1" >
|
|
14890
14920
|
<div class="modal-content">
|
|
14891
|
-
<span class="modal-title">{{getWord "Meeting Details"}}</span><span id="close_meeting_details" class="modal-close">×</span>
|
|
14892
|
-
<table id="meeting-details-table" class="bmlt-table table table-striped table-hover table-bordered tablesaw tablesaw-stack meeting-details">
|
|
14921
|
+
<span class="modal-title">{{getWord "Meeting Details"}}</span><span id="close_meeting_details" class="modal-close" style="position: absolute;right: 5px;top:10px;">×</span>
|
|
14922
|
+
<table id="meeting-details-table" class="bmlt-table {{getWord 'css-direction'}} table table-striped table-hover table-bordered tablesaw tablesaw-stack meeting-details">
|
|
14893
14923
|
<thead>
|
|
14894
14924
|
<th id="meeting-details-title" colspan="2">
|
|
14895
14925
|
{{> meetingpageTitleTemplate this}}
|
|
@@ -14907,6 +14937,10 @@ var croutonDefaultTemplates = {
|
|
|
14907
14937
|
<a id="map-button" class="btn btn-primary btn-xs modal-close" tabindex="0" style="float:right">
|
|
14908
14938
|
{{getWord "Close"}}</a>
|
|
14909
14939
|
</div>
|
|
14940
|
+
<div class="swipe-buttons">
|
|
14941
|
+
<span class="modal-right">></span>
|
|
14942
|
+
<span class="modal-left"><</span>
|
|
14943
|
+
</div>
|
|
14910
14944
|
</div></div>`,
|
|
14911
14945
|
meetingpage_title_template: [
|
|
14912
14946
|
"{{this.formatted_day}} {{this.start_time_formatted}} - {{this.end_time_formatted}}: {{this.meeting_name}}"
|
|
@@ -16551,7 +16585,7 @@ function Crouton(config) {
|
|
|
16551
16585
|
});
|
|
16552
16586
|
}
|
|
16553
16587
|
self.getServiceBodies = function(service_bodies_id) {
|
|
16554
|
-
|
|
16588
|
+
const requires_parents = true;
|
|
16555
16589
|
|
|
16556
16590
|
var url = this.config['root_server'] + '/client_interface/jsonp/?switcher=GetServiceBodies'
|
|
16557
16591
|
+ (requires_parents ? '&parents=1' : '') + getServiceBodiesQueryString(service_bodies_id);
|
|
@@ -16880,7 +16914,7 @@ function Crouton(config) {
|
|
|
16880
16914
|
};
|
|
16881
16915
|
self.createBmltMapElement = function() {
|
|
16882
16916
|
if (!document.getElementById('bmlt-map')) {
|
|
16883
|
-
jQuery("#bmlt-tabs").before("<div id='bmlt-map' class='bootstrap-bmlt bmlt-map bmlt_map_container_div'></div>");
|
|
16917
|
+
jQuery("#bmlt-tabs").before("<div id='bmlt-map' class='bootstrap-bmlt bmlt-map "+self.localization.getWord('css-direction')+" bmlt_map_container_div'></div>");
|
|
16884
16918
|
}
|
|
16885
16919
|
return 'bmlt-map';
|
|
16886
16920
|
}
|
|
@@ -16888,7 +16922,7 @@ function Crouton(config) {
|
|
|
16888
16922
|
window.croutonMap = new MeetingMap(self.config);
|
|
16889
16923
|
if (self.config['map_search']) self.searchMap();
|
|
16890
16924
|
}
|
|
16891
|
-
self.meetingSearch();
|
|
16925
|
+
else if (!self.config['map_search']) self.meetingSearch();
|
|
16892
16926
|
}
|
|
16893
16927
|
|
|
16894
16928
|
Crouton.prototype.setConfig = function(config) {
|
|
@@ -16986,8 +17020,10 @@ Crouton.prototype.doHandlebars = function() {
|
|
|
16986
17020
|
.then(function(data) {
|
|
16987
17021
|
hbs_Crouton['localization'] = self.localization;
|
|
16988
17022
|
self.all_service_bodies = [];
|
|
16989
|
-
var
|
|
16990
|
-
|
|
17023
|
+
var service_bodies = data[0];
|
|
17024
|
+
for (var i = 0; i < service_bodies.length; i++) {
|
|
17025
|
+
self.all_service_bodies.push(service_bodies[i]);
|
|
17026
|
+
}
|
|
16991
17027
|
var enrichedMeetingData = self.enrichMeetings(self.meetingData);
|
|
16992
17028
|
var customStartupTemplate = crouton_Handlebars.compile('{{startup}}');
|
|
16993
17029
|
customStartupTemplate(enrichedMeetingData);
|
|
@@ -17002,18 +17038,59 @@ Crouton.prototype.doHandlebars = function() {
|
|
|
17002
17038
|
|
|
17003
17039
|
Crouton.prototype.meetingModal = function(meetingId) {
|
|
17004
17040
|
let self = this;
|
|
17041
|
+
const tabs = document.getElementById('bmlt-tabs');
|
|
17042
|
+
|
|
17005
17043
|
let el = document.createElement('bmlt-handlebar');
|
|
17006
|
-
let tabs = document.getElementById('bmlt-tabs');
|
|
17007
17044
|
tabs.appendChild(el);
|
|
17008
17045
|
let span = document.createElement('span');
|
|
17009
|
-
let meeting = self.meetingData.find((m) => m.id_bigint == meetingId);
|
|
17010
17046
|
el.appendChild(span);
|
|
17011
17047
|
span.textContent = self.config.meetingpage_frame_template;
|
|
17048
|
+
let meeting = self.meetingData.find((m) => m.id_bigint == meetingId);
|
|
17012
17049
|
self.handlebars(meeting, tabs.getElementsByTagName('bmlt-handlebar'));
|
|
17050
|
+
|
|
17013
17051
|
[...tabs.getElementsByClassName('modal-close')].forEach((elem)=>elem.addEventListener('click', (e)=>{croutonMap.closeModalWindow(e.target); document.getElementById('meeting_modal').remove()}));
|
|
17014
|
-
document.
|
|
17015
|
-
|
|
17052
|
+
let mm = document.getElementById('meeting_modal');
|
|
17053
|
+
document.body.appendChild(mm);
|
|
17054
|
+
croutonMap.openModalWindow(mm, true);
|
|
17016
17055
|
croutonMap.showMap(true);
|
|
17056
|
+
let visibleMeetings = jQuery('.bmlt-data-row:visible');
|
|
17057
|
+
let index = -1;
|
|
17058
|
+
const prefix = "meeting-data-row-";
|
|
17059
|
+
for (k=0; k<visibleMeetings.length; k++) {
|
|
17060
|
+
if (visibleMeetings[k].id===prefix+meetingId) {
|
|
17061
|
+
index = k;
|
|
17062
|
+
break;
|
|
17063
|
+
}
|
|
17064
|
+
};
|
|
17065
|
+
let doSwipe = function(swipedir) {
|
|
17066
|
+
switch(swipedir) {
|
|
17067
|
+
case 'left':
|
|
17068
|
+
index = index+1;
|
|
17069
|
+
break;
|
|
17070
|
+
case 'right':
|
|
17071
|
+
index = index-1;
|
|
17072
|
+
break;
|
|
17073
|
+
default:
|
|
17074
|
+
index = -1;
|
|
17075
|
+
}
|
|
17076
|
+
if (index >= 0 && index < visibleMeetings.length) {
|
|
17077
|
+
const newMeeting = visibleMeetings[index];
|
|
17078
|
+
meetingId = newMeeting.id.substring(prefix.length);
|
|
17079
|
+
mm.getElementsByClassName('modal-close').item(0).dispatchEvent(new MouseEvent("click"));
|
|
17080
|
+
self.meetingModal(meetingId);
|
|
17081
|
+
}
|
|
17082
|
+
}
|
|
17083
|
+
swipedetect(mm, doSwipe);
|
|
17084
|
+
if (index <= 0) {
|
|
17085
|
+
jQuery(".modal-left").addClass("hide");
|
|
17086
|
+
} else {
|
|
17087
|
+
mm.getElementsByClassName('modal-left').item(0).addEventListener("click", ev=>doSwipe("right"));
|
|
17088
|
+
}
|
|
17089
|
+
if (index >= visibleMeetings.length-1) {
|
|
17090
|
+
jQuery(".modal-right").addClass("hide");
|
|
17091
|
+
} else {
|
|
17092
|
+
mm.getElementsByClassName('modal-right').item(0).addEventListener("click", ev=>doSwipe("left"));
|
|
17093
|
+
}
|
|
17017
17094
|
}
|
|
17018
17095
|
Crouton.prototype.searchMap = function() {
|
|
17019
17096
|
var self = this;
|
|
@@ -17790,6 +17867,38 @@ Array.prototype.sortByKey = function (key) {
|
|
|
17790
17867
|
});
|
|
17791
17868
|
return this;
|
|
17792
17869
|
};
|
|
17870
|
+
function swipedetect(el, callback){
|
|
17871
|
+
|
|
17872
|
+
var touchsurface = el,
|
|
17873
|
+
swipedir,
|
|
17874
|
+
startX,
|
|
17875
|
+
startY,
|
|
17876
|
+
distX,
|
|
17877
|
+
distY,
|
|
17878
|
+
threshold = 150, //required min distance traveled to be considered swipe
|
|
17879
|
+
restraint = 100, // maximum distance allowed at the same time in perpendicular direction
|
|
17880
|
+
handleswipe = callback || function(swipedir){}
|
|
17881
|
+
|
|
17882
|
+
touchsurface.addEventListener('touchstart', function(e){
|
|
17883
|
+
var touchobj = e.changedTouches[0]
|
|
17884
|
+
swipedir = 'none'
|
|
17885
|
+
startX = touchobj.pageX
|
|
17886
|
+
startY = touchobj.pageY
|
|
17887
|
+
}, false)
|
|
17888
|
+
|
|
17889
|
+
|
|
17890
|
+
touchsurface.addEventListener('touchend', function(e){
|
|
17891
|
+
if (!e.cancelable) return;
|
|
17892
|
+
var touchobj = e.changedTouches[0]
|
|
17893
|
+
distX = touchobj.pageX - startX // get horizontal dist traveled by finger while in contact with surface
|
|
17894
|
+
distY = touchobj.pageY - startY // get vertical dist traveled by finger while in contact with surface
|
|
17895
|
+
if (Math.abs(distX) >= threshold && Math.abs(distY) <= restraint){ // 2nd condition for horizontal swipe met
|
|
17896
|
+
swipedir = (distX < 0)? 'left' : 'right' // if dist traveled is negative, it indicates left swipe
|
|
17897
|
+
handleswipe(swipedir)
|
|
17898
|
+
e.preventDefault()
|
|
17899
|
+
}
|
|
17900
|
+
}, false)
|
|
17901
|
+
}
|
|
17793
17902
|
|
|
17794
17903
|
function MeetingMap(inConfig) {
|
|
17795
17904
|
/****************************************************************************************
|
|
@@ -18011,13 +18120,14 @@ function MeetingMap(inConfig) {
|
|
|
18011
18120
|
retrieveGeolocation().then(position => {
|
|
18012
18121
|
showThrobber();
|
|
18013
18122
|
crouton.searchByCoordinates(position.latitude, position.longitude, config.map_search.width);
|
|
18123
|
+
if (activeModal == gSearchModal) closeModalWindow(gSearchModal);
|
|
18014
18124
|
}).catch(error => {
|
|
18015
18125
|
console.error(error.message);
|
|
18126
|
+
if (activeModal != gSearchModal) showBmltSearchDialog();
|
|
18016
18127
|
});
|
|
18017
|
-
showBmltSearchDialog();
|
|
18018
|
-
closeModalWindow(gSearchModal);
|
|
18019
18128
|
};
|
|
18020
18129
|
function clickSearch(e) {
|
|
18130
|
+
croutonMap.showMap();
|
|
18021
18131
|
gDelegate.clickSearch(e, function(lat,lng) {
|
|
18022
18132
|
showThrobber();
|
|
18023
18133
|
crouton.searchByCoordinates(lat, lng, config.map_search.width);
|
|
@@ -18108,6 +18218,9 @@ function MeetingMap(inConfig) {
|
|
|
18108
18218
|
}, {});
|
|
18109
18219
|
}
|
|
18110
18220
|
var g_suspendedFullscreen = false;
|
|
18221
|
+
var g_overflowX;
|
|
18222
|
+
var activeModal = null;
|
|
18223
|
+
var swipableModal = false;
|
|
18111
18224
|
function closeModalWindow(modal) {
|
|
18112
18225
|
gDelegate.modalOff();
|
|
18113
18226
|
activeModal = null;
|
|
@@ -18120,24 +18233,43 @@ function MeetingMap(inConfig) {
|
|
|
18120
18233
|
toggleFullscreen();
|
|
18121
18234
|
}
|
|
18122
18235
|
}
|
|
18236
|
+
if (swipableModal) {
|
|
18237
|
+
const body = document.getElementsByTagName("BODY")[0];
|
|
18238
|
+
const scrollY = body.style.top;
|
|
18239
|
+
body.style.overflowX = g_overflowX;
|
|
18240
|
+
body.style.position = '';
|
|
18241
|
+
body.style.top = '';
|
|
18242
|
+
body.style.width = '';
|
|
18243
|
+
window.scrollTo(0, parseInt(scrollY || '0') * -1);
|
|
18244
|
+
}
|
|
18123
18245
|
}
|
|
18124
|
-
var activeModal = null;
|
|
18125
18246
|
document.addEventListener("keydown", function(event) {
|
|
18126
18247
|
if (activeModal && event.key == "Escape") {
|
|
18127
18248
|
closeModalWindow(activeModal);
|
|
18128
18249
|
}
|
|
18129
18250
|
}, true);
|
|
18130
|
-
function openModalWindow(modal) {
|
|
18251
|
+
function openModalWindow(modal,swipe=false) {
|
|
18131
18252
|
if (isFullscreen()) {
|
|
18132
18253
|
g_suspendedFullscreen = true;
|
|
18133
18254
|
toggleFullscreen();
|
|
18134
18255
|
}
|
|
18135
18256
|
modal.style.display = "block";
|
|
18257
|
+
swipableModal = swipe;
|
|
18136
18258
|
modal.focus();
|
|
18137
18259
|
activeModal = modal;
|
|
18138
18260
|
dd = document.getElementById("map-menu-dropdown");
|
|
18139
18261
|
if (dd) dd.style.display = "none";
|
|
18140
18262
|
gDelegate.modalOn();
|
|
18263
|
+
if (swipableModal) {
|
|
18264
|
+
const body = document.getElementsByTagName("BODY")[0];
|
|
18265
|
+
g_overflowX = body.style.overflowX;
|
|
18266
|
+
const newTop = -window.scrollY+'px';
|
|
18267
|
+
const newWidth = window.width+'px';
|
|
18268
|
+
body.style.overflowX = 'hidden';
|
|
18269
|
+
body.style.position = 'fixed';
|
|
18270
|
+
body.style.top = newTop;
|
|
18271
|
+
body.style.width = newWidth;
|
|
18272
|
+
}
|
|
18141
18273
|
}
|
|
18142
18274
|
function showFilterDialog(e) {
|
|
18143
18275
|
openModalWindow(document.getElementById('filter_modal'));
|