@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 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
- 'css-textalign': 'style="text-align:right;"',
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
- 'css-textalign': 'style="text-align:right;"',
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') return word;
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'>\n"
14206
- + ((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":3,"column":8},"end":{"line":15,"column":17}}})) != null ? stack1 : "")
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'>\n <tbody class=\"byfield.hbs\">\n"
14232
- + ((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":4,"column":2},"end":{"line":9,"column":11}}})) != null ? stack1 : "")
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'>\n"
14259
- + ((stack1 = lookupProperty(helpers,"each").call(depth0 != null ? depth0 : (container.nullContext || {}),(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
+ 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 stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
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 show\" id=\"nav-days\" "
14388
- + ((stack1 = (lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"css-floatDirection",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":32,"column":50},"end":{"line":32,"column":84}}})) != null ? stack1 : "")
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 stack1, lookupProperty = container.lookupProperty || function(parent, propertyName) {
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 hide\" id=\"nav-days\" "
14399
- + ((stack1 = (lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"css-floatDirection",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":34,"column":50},"end":{"line":34,"column":84}}})) != null ? stack1 : "")
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
- + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"key") || (data && lookupProperty(data,"key"))) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"key","hash":{},"data":data,"loc":{"start":{"line":6,"column":19},"end":{"line":6,"column":29}}}) : helper)))
14438
- + "\" class=\"bmlt-page hide\" >\n"
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
- + container.escapeExpression(((helper = (helper = lookupProperty(helpers,"key") || (data && lookupProperty(data,"key"))) != null ? helper : container.hooks.helperMissing),(typeof helper === "function" ? helper.call(depth0 != null ? depth0 : (container.nullContext || {}),{"name":"key","hash":{},"data":data,"loc":{"start":{"line":11,"column":19},"end":{"line":11,"column":29}}}) : helper)))
14451
- + "\" class=\"bmlt-page hide\">\n"
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
- return " <div id=\"byfield_embeddedMapPage\" class=\"bmlt-map bmlt-page hide\">\n </div>\n";
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 hide\" "
14465
- + ((stack1 = (lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(alias1,"css-textAlign",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":2,"column":51},"end":{"line":2,"column":80}}})) != null ? stack1 : "")
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 hide\">\n"
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\">\n"
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,9 +14572,13 @@ 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 hide\" >\n <div id=\"bmlt-maptable-header\"><span class=\"map-list-title\">"
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'>\n"
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}}}))
@@ -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
- + container.escapeExpression(((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)))
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'>\n <tbody class=\"weekdays.hbs\">\n"
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">&gt;</span>
14939
+ <span class="modal-left">&lt;</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}}"
@@ -16548,7 +16582,7 @@ function Crouton(config) {
16548
16582
  });
16549
16583
  }
16550
16584
  self.getServiceBodies = function(service_bodies_id) {
16551
- var requires_parents = self.config.has_regions;
16585
+ const requires_parents = true;
16552
16586
 
16553
16587
  var url = this.config['root_server'] + '/client_interface/jsonp/?switcher=GetServiceBodies'
16554
16588
  + (requires_parents ? '&parents=1' : '') + getServiceBodiesQueryString(service_bodies_id);
@@ -16877,7 +16911,7 @@ function Crouton(config) {
16877
16911
  };
16878
16912
  self.createBmltMapElement = function() {
16879
16913
  if (!document.getElementById('bmlt-map')) {
16880
- 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>");
16881
16915
  }
16882
16916
  return 'bmlt-map';
16883
16917
  }
@@ -16885,7 +16919,7 @@ function Crouton(config) {
16885
16919
  window.croutonMap = new MeetingMap(self.config);
16886
16920
  if (self.config['map_search']) self.searchMap();
16887
16921
  }
16888
- self.meetingSearch();
16922
+ else if (!self.config['map_search']) self.meetingSearch();
16889
16923
  }
16890
16924
 
16891
16925
  Crouton.prototype.setConfig = function(config) {
@@ -16983,8 +17017,10 @@ Crouton.prototype.doHandlebars = function() {
16983
17017
  .then(function(data) {
16984
17018
  hbs_Crouton['localization'] = self.localization;
16985
17019
  self.all_service_bodies = [];
16986
- var service_body = data[0][0];
16987
- self.all_service_bodies.push(service_body);
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
+ }
16988
17024
  var enrichedMeetingData = self.enrichMeetings(self.meetingData);
16989
17025
  var customStartupTemplate = crouton_Handlebars.compile('{{startup}}');
16990
17026
  customStartupTemplate(enrichedMeetingData);
@@ -16999,18 +17035,59 @@ Crouton.prototype.doHandlebars = function() {
16999
17035
 
17000
17036
  Crouton.prototype.meetingModal = function(meetingId) {
17001
17037
  let self = this;
17038
+ const tabs = document.getElementById('bmlt-tabs');
17039
+
17002
17040
  let el = document.createElement('bmlt-handlebar');
17003
- let tabs = document.getElementById('bmlt-tabs');
17004
17041
  tabs.appendChild(el);
17005
17042
  let span = document.createElement('span');
17006
- let meeting = self.meetingData.find((m) => m.id_bigint == meetingId);
17007
17043
  el.appendChild(span);
17008
17044
  span.textContent = self.config.meetingpage_frame_template;
17045
+ let meeting = self.meetingData.find((m) => m.id_bigint == meetingId);
17009
17046
  self.handlebars(meeting, tabs.getElementsByTagName('bmlt-handlebar'));
17047
+
17010
17048
  [...tabs.getElementsByClassName('modal-close')].forEach((elem)=>elem.addEventListener('click', (e)=>{croutonMap.closeModalWindow(e.target); document.getElementById('meeting_modal').remove()}));
17011
- document.body.appendChild(document.getElementById('meeting_modal'));
17012
- croutonMap.openModalWindow(document.getElementById('meeting_modal'));
17049
+ let mm = document.getElementById('meeting_modal');
17050
+ document.body.appendChild(mm);
17051
+ croutonMap.openModalWindow(mm, true);
17013
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
+ }
17014
17091
  }
17015
17092
  Crouton.prototype.searchMap = function() {
17016
17093
  var self = this;
@@ -17787,3 +17864,35 @@ Array.prototype.sortByKey = function (key) {
17787
17864
  });
17788
17865
  return this;
17789
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
+ }