@bmlt-enabled/croutonjs 3.21.0 → 3.21.1

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.js CHANGED
@@ -13257,7 +13257,6 @@ function CroutonLocalization(language) {
13257
13257
  },
13258
13258
  "css-direction": 'bmlt-rtl',
13259
13259
  "share": "مشاركة",
13260
- 'tabular': "جدول",
13261
13260
  'google_directions': 'اتجاهات جوجل للاجتماع',
13262
13261
  "no_meetings_for_this_day": "لا توجد اجتماعات لهذا اليوم.",
13263
13262
  'all': 'الجميع',
@@ -13315,7 +13314,6 @@ function CroutonLocalization(language) {
13315
13314
  "no_meetings_for_this_day": "No meetings for this day.",
13316
13315
  'css-textalign': '',
13317
13316
  'css-floatdirection': '',
13318
- 'tabular': "As table",
13319
13317
  'google_directions': 'Google directions to meeting',
13320
13318
  'all': 'All',
13321
13319
  'menu': 'Menu',
@@ -13366,7 +13364,6 @@ function CroutonLocalization(language) {
13366
13364
  GS: "Group Support Forum"
13367
13365
  },
13368
13366
  "share": "Teilen",
13369
- 'tabular': "Als Tabelle",
13370
13367
  'google_directions': 'Google Routenplaner',
13371
13368
  "no_meetings_for_this_day": "Keine Meetings an diesem Tag.",
13372
13369
  'css-textalign': '',
@@ -13422,7 +13419,6 @@ function CroutonLocalization(language) {
13422
13419
  GS: "Group Support Forum"
13423
13420
  },
13424
13421
  "share": "share",
13425
- 'tabular': "As table",
13426
13422
  'google_directions': 'Google directions to meeting',
13427
13423
  "no_meetings_for_this_day": "No meetings for this day.",
13428
13424
  'css-textalign': '',
@@ -13480,7 +13476,6 @@ function CroutonLocalization(language) {
13480
13476
  GS: "Group Support Forum"
13481
13477
  },
13482
13478
  "share": "share",
13483
- 'tabular': "As table",
13484
13479
  'google_directions': 'Google directions to meeting',
13485
13480
  "no_meetings_for_this_day": "No meetings for this day.",
13486
13481
  'css-textalign': '',
@@ -13538,7 +13533,6 @@ function CroutonLocalization(language) {
13538
13533
  GS: "Group Support Forum"
13539
13534
  },
13540
13535
  "share": "share",
13541
- 'tabular': "As table",
13542
13536
  'google_directions': 'Google directions to meeting',
13543
13537
  "no_meetings_for_this_day": "No meetings for this day.",
13544
13538
  'css-textalign': '',
@@ -13596,7 +13590,6 @@ function CroutonLocalization(language) {
13596
13590
  GS: "Group Support Forum"
13597
13591
  },
13598
13592
  "share": "share",
13599
- 'tabular': "As table",
13600
13593
  'google_directions': 'Google directions to meeting',
13601
13594
  "no_meetings_for_this_day": "No meetings for this day.",
13602
13595
  'css-textalign': '',
@@ -13641,7 +13634,6 @@ function CroutonLocalization(language) {
13641
13634
  "common_needs": "Common Needs",
13642
13635
  "meeting_count": "Weekly Meetings:",
13643
13636
  "venue_types": "Venue Types",
13644
- 'tabular': "As table",
13645
13637
  'google_directions': 'Google directions to meeting',
13646
13638
  "venue_type_choices": {
13647
13639
  IN_PERSON: "In Person",
@@ -13715,7 +13707,6 @@ function CroutonLocalization(language) {
13715
13707
  "share": "compartir",
13716
13708
  "no_meetings_for_this_day": "No hay reuniones en este día",
13717
13709
  'css-textalign': 'Alineación de texto CSS',
13718
- 'tabular': 'Formato tabla',
13719
13710
  'google_directions': 'Indicaciones de Google',
13720
13711
  'css-floatdirection': "Dirección float-CSS",
13721
13712
  'all': 'Todos',
@@ -13770,7 +13761,6 @@ function CroutonLocalization(language) {
13770
13761
  GS: "Group Support Forum"
13771
13762
  },
13772
13763
  "share": "share",
13773
- 'tabular': "As table",
13774
13764
  'google_directions': 'Google directions to meeting',
13775
13765
  "no_meetings_for_this_day": "No meetings for this day.",
13776
13766
  "css-direction": 'bmlt-rtl',
@@ -13826,7 +13816,6 @@ function CroutonLocalization(language) {
13826
13816
  GS: "Group Support Forum"
13827
13817
  },
13828
13818
  "share": "Partager",
13829
- "tabular": "Liste",
13830
13819
  "google_directions": "Itinéraire sur Google Maps",
13831
13820
  "no_meetings_for_this_day": "Pas de réunion aujourd'hui.",
13832
13821
  "css-textalign": "css-textalign",
@@ -13883,7 +13872,6 @@ function CroutonLocalization(language) {
13883
13872
  GS: "Forum supporto gruppi"
13884
13873
  },
13885
13874
  "share": "Condividi",
13886
- 'tabular': "Tabellare",
13887
13875
  'google_directions': 'Mappa',
13888
13876
  "no_meetings_for_this_day": "Nessuna riunione per questo giorno.",
13889
13877
  'css-textalign': '',
@@ -13940,7 +13928,6 @@ function CroutonLocalization(language) {
13940
13928
  GS: "Group Support Forum"
13941
13929
  },
13942
13930
  "share": "share",
13943
- 'tabular': "As table",
13944
13931
  'google_directions': 'Google directions to meeting',
13945
13932
  "no_meetings_for_this_day": "No meetings for this day.",
13946
13933
  'css-textalign': '',
@@ -13997,7 +13984,6 @@ function CroutonLocalization(language) {
13997
13984
  GS: "Group Support Forum"
13998
13985
  },
13999
13986
  "share": "share",
14000
- 'tabular': "As table",
14001
13987
  'google_directions': 'Google directions to meeting',
14002
13988
  "no_meetings_for_this_day": "No meetings for this day.",
14003
13989
  'css-textalign': '',
@@ -14054,7 +14040,6 @@ function CroutonLocalization(language) {
14054
14040
  GS: "Group Support Forum"
14055
14041
  },
14056
14042
  "share": "Compartilhar",
14057
- 'tabular': "As table",
14058
14043
  'google_directions': 'Google directions to meeting',
14059
14044
  "no_meetings_for_this_day": "No meetings for this day.",
14060
14045
  'css-textalign': '',
@@ -14103,7 +14088,6 @@ function CroutonLocalization(language) {
14103
14088
  VIRTUAL: "Онлайн",
14104
14089
  },
14105
14090
  "share": "поделиться",
14106
- 'tabular': "Как таблица",
14107
14091
  'google_directions': 'На карте',
14108
14092
  "service_body_types": {
14109
14093
  AS: "Area Service Committee",
@@ -14168,7 +14152,6 @@ function CroutonLocalization(language) {
14168
14152
  GS: "Group Support Forum"
14169
14153
  },
14170
14154
  "share": "share",
14171
- 'tabular': "As table",
14172
14155
  'google_directions': 'Google directions to meeting',
14173
14156
  "no_meetings_for_this_day": "No meetings for this day.",
14174
14157
  'css-textalign': '',
@@ -14334,9 +14317,9 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14334
14317
  return ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"include_weekday_button") : stack1),{"name":"if","hash":{},"fn":container.program(2, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":3,"column":4},"end":{"line":5,"column":11}}})) != null ? stack1 : "")
14335
14318
  + ((stack1 = lookupProperty(helpers,"each").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"button_filters") : stack1),{"name":"each","hash":{},"fn":container.program(4, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":6,"column":4},"end":{"line":8,"column":13}}})) != null ? stack1 : "")
14336
14319
  + ((stack1 = lookupProperty(helpers,"each").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"button_format_filters") : stack1),{"name":"each","hash":{},"fn":container.program(6, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":9,"column":4},"end":{"line":11,"column":13}}})) != null ? stack1 : "")
14337
- + ((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(8, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":12,"column":4},"end":{"line":15,"column":11}}})) != null ? stack1 : "")
14320
+ + ((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(8, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":12,"column":4},"end":{"line":14,"column":11}}})) != null ? stack1 : "")
14338
14321
  + "\n"
14339
- + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"dropdownData") : depth0),{"name":"each","hash":{},"fn":container.program(10, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":17,"column":4},"end":{"line":26,"column":13}}})) != null ? stack1 : "")
14322
+ + ((stack1 = lookupProperty(helpers,"each").call(alias1,(depth0 != null ? lookupProperty(depth0,"dropdownData") : depth0),{"name":"each","hash":{},"fn":container.program(10, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":16,"column":4},"end":{"line":25,"column":13}}})) != null ? stack1 : "")
14340
14323
  + " </div>\n";
14341
14324
  },"2":function(container,depth0,helpers,partials,data) {
14342
14325
  var lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -14360,7 +14343,7 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14360
14343
  return " <div class=\"bmlt-button-container\"><a id=\"filterButton_"
14361
14344
  + alias2(alias1((depth0 != null ? lookupProperty(depth0,"field") : depth0), depth0))
14362
14345
  + "\" tabindex=0 data-field=\""
14363
- + alias2(alias1((depth0 != null ? lookupProperty(depth0,"field") : depth0), depth0))
14346
+ + alias2(alias1((depth0 != null ? lookupProperty(depth0,"title") : depth0), depth0))
14364
14347
  + "\" class=\"filterButton filterButtonLogic btn btn-primary btn-sm\">"
14365
14348
  + alias2((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),(depth0 != null ? lookupProperty(depth0,"title") : depth0),{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":7,"column":180},"end":{"line":7,"column":202}}}))
14366
14349
  + "</a></div>\n";
@@ -14380,17 +14363,15 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14380
14363
  + alias2(alias1((depth0 != null ? lookupProperty(depth0,"title") : depth0), depth0))
14381
14364
  + "</a></div>\n";
14382
14365
  },"8":function(container,depth0,helpers,partials,data) {
14383
- var alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
14366
+ var lookupProperty = container.lookupProperty || function(parent, propertyName) {
14384
14367
  if (Object.prototype.hasOwnProperty.call(parent, propertyName)) {
14385
14368
  return parent[propertyName];
14386
14369
  }
14387
14370
  return undefined
14388
14371
  };
14389
14372
 
14390
- return " <div class=\"bmlt-button-container\"><a id=\"filterButton_embeddedMapPage\" tabindex=0 data-field=\"embeddedMapPage\" class=\"filterButton displayTypeLogic btn btn-primary btn-sm\">"
14391
- + alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"map",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":13,"column":181},"end":{"line":13,"column":198}}}))
14392
- + "</a></div>\n <div class=\"bmlt-button-container\"><a id=\"displayTypeButton_tablePages\" tabindex=0 data-field=\"tablePages\" class=\"filterButton displayTypeLogic btn btn-primary btn-sm hide\">"
14393
- + alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"tabular",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":14,"column":181},"end":{"line":14,"column":202}}}))
14373
+ return " <div class=\"bmlt-button-container\"><a id=\"filterButton_embeddedMapPage\" tabindex=0 data-field=\"embeddedMapPage\" class=\"filterButton btn btn-primary btn-sm\">"
14374
+ + container.escapeExpression((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),"map",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":13,"column":164},"end":{"line":13,"column":181}}}))
14394
14375
  + "</a></div>\n";
14395
14376
  },"10":function(container,depth0,helpers,partials,data,blockParams,depths) {
14396
14377
  var stack1, helper, alias1=container.escapeExpression, alias2=depth0 != null ? depth0 : (container.nullContext || {}), alias3=container.hooks.helperMissing, alias4="function", lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -14403,17 +14384,17 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14403
14384
  return " <div class=\"bmlt-dropdown-container\">\n <select class=\"crouton-select filter-dropdown\" style=\"width:"
14404
14385
  + alias1(container.lambda(((stack1 = (depths[1] != null ? lookupProperty(depths[1],"config") : depths[1])) != null ? lookupProperty(stack1,"dropdown_width") : stack1), depth0))
14405
14386
  + ";\" data-placeholder=\""
14406
- + alias1(((helper = (helper = lookupProperty(helpers,"placeholder") || (depth0 != null ? lookupProperty(depth0,"placeholder") : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{"name":"placeholder","hash":{},"data":data,"loc":{"start":{"line":19,"column":116},"end":{"line":19,"column":131}}}) : helper)))
14387
+ + alias1(((helper = (helper = lookupProperty(helpers,"placeholder") || (depth0 != null ? lookupProperty(depth0,"placeholder") : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{"name":"placeholder","hash":{},"data":data,"loc":{"start":{"line":18,"column":116},"end":{"line":18,"column":131}}}) : helper)))
14407
14388
  + "\" data-pointer=\""
14408
- + alias1(((helper = (helper = lookupProperty(helpers,"pointer") || (depth0 != null ? lookupProperty(depth0,"pointer") : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{"name":"pointer","hash":{},"data":data,"loc":{"start":{"line":19,"column":147},"end":{"line":19,"column":158}}}) : helper)))
14389
+ + alias1(((helper = (helper = lookupProperty(helpers,"pointer") || (depth0 != null ? lookupProperty(depth0,"pointer") : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{"name":"pointer","hash":{},"data":data,"loc":{"start":{"line":18,"column":147},"end":{"line":18,"column":158}}}) : helper)))
14409
14390
  + "\" id="
14410
- + alias1(((helper = (helper = lookupProperty(helpers,"elementId") || (depth0 != null ? lookupProperty(depth0,"elementId") : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{"name":"elementId","hash":{},"data":data,"loc":{"start":{"line":19,"column":163},"end":{"line":19,"column":176}}}) : helper)))
14391
+ + alias1(((helper = (helper = lookupProperty(helpers,"elementId") || (depth0 != null ? lookupProperty(depth0,"elementId") : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{"name":"elementId","hash":{},"data":data,"loc":{"start":{"line":18,"column":163},"end":{"line":18,"column":176}}}) : helper)))
14411
14392
  + ">\n <option value=\"a-\">"
14412
- + alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"all",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":20,"column":25},"end":{"line":20,"column":42}}}))
14393
+ + alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"all",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":19,"column":25},"end":{"line":19,"column":42}}}))
14413
14394
  + " "
14414
- + alias1(((helper = (helper = lookupProperty(helpers,"placeholder") || (depth0 != null ? lookupProperty(depth0,"placeholder") : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{"name":"placeholder","hash":{},"data":data,"loc":{"start":{"line":20,"column":43},"end":{"line":20,"column":58}}}) : helper)))
14395
+ + alias1(((helper = (helper = lookupProperty(helpers,"placeholder") || (depth0 != null ? lookupProperty(depth0,"placeholder") : depth0)) != null ? helper : alias3),(typeof helper === alias4 ? helper.call(alias2,{"name":"placeholder","hash":{},"data":data,"loc":{"start":{"line":19,"column":43},"end":{"line":19,"column":58}}}) : helper)))
14415
14396
  + "</option>\n"
14416
- + ((stack1 = lookupProperty(helpers,"each").call(alias2,(lookupProperty(helpers,"call")||(depth0 && lookupProperty(depth0,"call"))||alias3).call(alias2,(depth0 != null ? lookupProperty(depth0,"uniqueData") : depth0),((stack1 = (depths[1] != null ? lookupProperty(depths[1],"meetings") : depths[1])) != null ? lookupProperty(stack1,"meetingData") : stack1),{"name":"call","hash":{},"data":data,"loc":{"start":{"line":21,"column":14},"end":{"line":21,"column":55}}}),{"name":"each","hash":{},"fn":container.program(11, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":21,"column":6},"end":{"line":23,"column":15}}})) != null ? stack1 : "")
14397
+ + ((stack1 = lookupProperty(helpers,"each").call(alias2,(lookupProperty(helpers,"call")||(depth0 && lookupProperty(depth0,"call"))||alias3).call(alias2,(depth0 != null ? lookupProperty(depth0,"uniqueData") : depth0),((stack1 = (depths[1] != null ? lookupProperty(depths[1],"meetings") : depths[1])) != null ? lookupProperty(stack1,"meetingData") : stack1),{"name":"call","hash":{},"data":data,"loc":{"start":{"line":20,"column":14},"end":{"line":20,"column":55}}}),{"name":"each","hash":{},"fn":container.program(11, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":20,"column":6},"end":{"line":22,"column":15}}})) != null ? stack1 : "")
14417
14398
  + " </select>\n </div>\n";
14418
14399
  },"11":function(container,depth0,helpers,partials,data,blockParams,depths) {
14419
14400
  var alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -14424,9 +14405,9 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14424
14405
  };
14425
14406
 
14426
14407
  return " <option value=\"a-"
14427
- + alias3((lookupProperty(helpers,"call")||(depth0 && lookupProperty(depth0,"call"))||alias2).call(alias1,(depths[1] != null ? lookupProperty(depths[1],"objectPointer") : depths[1]),depth0,{"name":"call","hash":{},"data":data,"loc":{"start":{"line":22,"column":24},"end":{"line":22,"column":54}}}))
14408
+ + alias3((lookupProperty(helpers,"call")||(depth0 && lookupProperty(depth0,"call"))||alias2).call(alias1,(depths[1] != null ? lookupProperty(depths[1],"objectPointer") : depths[1]),depth0,{"name":"call","hash":{},"data":data,"loc":{"start":{"line":21,"column":24},"end":{"line":21,"column":54}}}))
14428
14409
  + "\">"
14429
- + alias3((lookupProperty(helpers,"call")||(depth0 && lookupProperty(depth0,"call"))||alias2).call(alias1,(depths[1] != null ? lookupProperty(depths[1],"optionName") : depths[1]),depth0,{"name":"call","hash":{},"data":data,"loc":{"start":{"line":22,"column":56},"end":{"line":22,"column":83}}}))
14410
+ + alias3((lookupProperty(helpers,"call")||(depth0 && lookupProperty(depth0,"call"))||alias2).call(alias1,(depths[1] != null ? lookupProperty(depths[1],"optionName") : depths[1]),depth0,{"name":"call","hash":{},"data":data,"loc":{"start":{"line":21,"column":56},"end":{"line":21,"column":83}}}))
14430
14411
  + "</option>\n";
14431
14412
  },"13":function(container,depth0,helpers,partials,data) {
14432
14413
  var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -14436,9 +14417,9 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14436
14417
  return undefined
14437
14418
  };
14438
14419
 
14439
- return ((stack1 = (lookupProperty(helpers,"ifEquals")||(depth0 && lookupProperty(depth0,"ifEquals"))||container.hooks.helperMissing).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"view_by") : stack1),"weekdays",{"name":"ifEquals","hash":{},"fn":container.program(14, data, 0),"inverse":container.program(16, data, 0),"data":data,"loc":{"start":{"line":31,"column":4},"end":{"line":35,"column":17}}})) != null ? stack1 : "")
14420
+ return ((stack1 = (lookupProperty(helpers,"ifEquals")||(depth0 && lookupProperty(depth0,"ifEquals"))||container.hooks.helperMissing).call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"view_by") : stack1),"weekdays",{"name":"ifEquals","hash":{},"fn":container.program(14, data, 0),"inverse":container.program(16, data, 0),"data":data,"loc":{"start":{"line":30,"column":4},"end":{"line":34,"column":17}}})) != null ? stack1 : "")
14440
14421
  + " <ul class=\"nav nav-tabs\">\n"
14441
- + ((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 : "")
14422
+ + ((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":36,"column":12},"end":{"line":38,"column":21}}})) != null ? stack1 : "")
14442
14423
  + " </ul>\n </div>\n";
14443
14424
  },"14":function(container,depth0,helpers,partials,data) {
14444
14425
  var lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -14449,7 +14430,7 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14449
14430
  };
14450
14431
 
14451
14432
  return " <div class=\"bmlt-page "
14452
- + 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}}}))
14433
+ + 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":31,"column":30},"end":{"line":31,"column":57}}}))
14453
14434
  + " show\" id=\"nav-days\">\n";
14454
14435
  },"16":function(container,depth0,helpers,partials,data) {
14455
14436
  var lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -14460,7 +14441,7 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14460
14441
  };
14461
14442
 
14462
14443
  return " <div class=\"bmlt-page "
14463
- + 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}}}))
14444
+ + 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":33,"column":30},"end":{"line":33,"column":57}}}))
14464
14445
  + " hide\" id=\"nav-days\">\n";
14465
14446
  },"18":function(container,depth0,helpers,partials,data) {
14466
14447
  var alias1=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -14473,7 +14454,7 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14473
14454
  return " <li><a href=\"#tab"
14474
14455
  + alias1(container.lambda(depth0, depth0))
14475
14456
  + "\" data-toggle=\"tab\">"
14476
- + alias1((lookupProperty(helpers,"getDayOfTheWeek")||(depth0 && lookupProperty(depth0,"getDayOfTheWeek"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"getDayOfTheWeek","hash":{},"data":data,"loc":{"start":{"line":38,"column":61},"end":{"line":38,"column":85}}}))
14457
+ + alias1((lookupProperty(helpers,"getDayOfTheWeek")||(depth0 && lookupProperty(depth0,"getDayOfTheWeek"))||container.hooks.helperMissing).call(depth0 != null ? depth0 : (container.nullContext || {}),depth0,{"name":"getDayOfTheWeek","hash":{},"data":data,"loc":{"start":{"line":37,"column":61},"end":{"line":37,"column":85}}}))
14477
14458
  + "</a></li>\n";
14478
14459
  },"compiler":[8,">= 4.3.0"],"main":function(container,depth0,helpers,partials,data,blockParams,depths) {
14479
14460
  var stack1, alias1=depth0 != null ? depth0 : (container.nullContext || {}), lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -14485,9 +14466,9 @@ this["hbs_Crouton"]["templates"]["header"] = Handlebars.template({"1":function(c
14485
14466
 
14486
14467
  return container.escapeExpression((lookupProperty(helpers,"startup")||(depth0 && lookupProperty(depth0,"startup"))||container.hooks.helperMissing).call(alias1,depth0,{"name":"startup","hash":{},"data":data,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}}}))
14487
14468
  + "\n"
14488
- + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"header") : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":28,"column":7}}})) != null ? stack1 : "")
14469
+ + ((stack1 = lookupProperty(helpers,"if").call(alias1,((stack1 = (depth0 != null ? lookupProperty(depth0,"config") : depth0)) != null ? lookupProperty(stack1,"header") : stack1),{"name":"if","hash":{},"fn":container.program(1, data, 0, blockParams, depths),"inverse":container.noop,"data":data,"loc":{"start":{"line":2,"column":0},"end":{"line":27,"column":7}}})) != null ? stack1 : "")
14489
14470
  + "\n"
14490
- + ((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 : "");
14471
+ + ((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":29,"column":0},"end":{"line":41,"column":7}}})) != null ? stack1 : "");
14491
14472
  },"useData":true,"useDepths":true});
14492
14473
  this["hbs_Crouton"]["templates"]["main"] = Handlebars.template({"1":function(container,depth0,helpers,partials,data) {
14493
14474
  var stack1, helper, alias1=depth0 != null ? depth0 : (container.nullContext || {}), alias2=container.hooks.helperMissing, alias3=container.escapeExpression, lookupProperty = container.lookupProperty || function(parent, propertyName) {
@@ -16175,6 +16156,7 @@ function Crouton(config) {
16175
16156
  self.mutex = false;
16176
16157
  self.filtering = false;
16177
16158
  self.masterFormatCodes = [];
16159
+ self.currentView = "weekday";
16178
16160
  self.max_filters = 10; // TODO: needs to be refactored so that dropdowns are treated dynamically
16179
16161
  self.config = {
16180
16162
  on_complete: null, // Javascript function to callback when data querying is completed.
@@ -16471,20 +16453,28 @@ function Crouton(config) {
16471
16453
  jQuery(id).removeClass("hide").addClass("show");
16472
16454
  };
16473
16455
 
16474
- self.showView = function (viewName, resetFilters=true) {
16475
- if (resetFilters) {
16476
- self.resetFilter();
16477
- }
16478
- if (viewName === "byday") {
16479
- self.byDayView();
16480
- } else if (viewName === "day" || viewName === "weekday") {
16481
- self.dayView();
16482
- } else if (viewName === "city") {
16483
- self.filteredView("location_municipality");
16484
- } else if (viewName === "distance") {
16485
- self.filteredView("distance_in_km");
16456
+ self.showView = function (viewName, showingNow=0) {
16457
+ self.currentView = viewName;
16458
+ if (showingNow > 0) {
16459
+ self.showingNow = showingNow;
16460
+ } else showingNow = self.showingNow ? self.showingNow : self.meetingData.length; ;
16461
+
16462
+ if (viewName.endsWith('day')) {
16463
+ if (!self.config['has_tabs'] || (self.config['filter_tabs'] && self.config['filter_tabs'] >= showingNow)) {
16464
+ self.byDayView();
16465
+
16466
+ jQuery(".bmlt-data-rows").each(function (index, value) {
16467
+ if (jQuery(value).find(".bmlt-data-row.hide").length === jQuery(value).find(".bmlt-data-row").length) {
16468
+ jQuery(value).find(".meeting-header").addClass("hide");
16469
+ }
16470
+ });
16471
+ } else {
16472
+ self.dayView();
16473
+ }
16474
+ } else if (viewName=='map') {
16475
+ self.mapView();
16486
16476
  } else {
16487
- self.filteredView(viewName);
16477
+ self.filteredView(self.config.button_filters.find((bf) => bf.title.toLowerCase() === viewName).field);
16488
16478
  }
16489
16479
  };
16490
16480
 
@@ -16493,8 +16483,10 @@ function Crouton(config) {
16493
16483
  self.highlightButton("#day");
16494
16484
  jQuery('.bmlt-page').each(function (index) {
16495
16485
  self.hidePage("#" + this.id);
16486
+ self.hidePage("#days");
16496
16487
  self.showPage("#byday");
16497
- self.showPage("#nav-days");
16488
+ self.hidePage("#nav-days");
16489
+ self.hidePage("#tabs-content");
16498
16490
  return;
16499
16491
  });
16500
16492
  };
@@ -16518,9 +16510,32 @@ function Crouton(config) {
16518
16510
  jQuery('.bmlt-page').each(function (index) {
16519
16511
  self.hidePage("#" + this.id);
16520
16512
  self.showPage("#byfield_" + field);
16513
+ jQuery("#byfield_" + field).find('.meeting-header').each(function(index) {
16514
+ // This is an awkward way of doing things, but I don't want to mess with
16515
+ // the generated HTML at this point.
16516
+ let flag = false;
16517
+ let item = jQuery(this);
16518
+ const main = item;
16519
+ while(item = item.next()) {
16520
+ if (item.length === 0) break;
16521
+ if (item.hasClass('meeting-header')) break;
16522
+ if (!item.hasClass('hide')) {
16523
+ flag = true;
16524
+ break;
16525
+ }
16526
+ }
16527
+ if (!flag) main.addClass('hide');
16528
+ })
16521
16529
  return;
16522
16530
  });
16523
16531
  };
16532
+ self.mapView = function() {
16533
+ self.lowlightButton("#day");
16534
+ self.lowlightButton(".filterButton");
16535
+ self.highlightButton("#filterButton_embeddedMapPage");
16536
+ self.filteredView("embeddedMapPage", false);
16537
+ croutonMap.showMap(false,false);
16538
+ }
16524
16539
  self.lowlightButton = function (id) {
16525
16540
  jQuery(id).removeClass("buttonHighlight").addClass("buttonLowlight");
16526
16541
  };
@@ -16552,9 +16567,6 @@ function Crouton(config) {
16552
16567
  jQuery(".bmlt-data-row").not("[data-" + dataType + "~='" + dataValue + "']").addClass("hide");
16553
16568
  }
16554
16569
  });
16555
- if (!filteringDropdown) {
16556
- self.filtering = false;
16557
- }
16558
16570
  var showingNow = [];
16559
16571
  jQuery(".bmlt-data-row").not(".hide").each(function (index, value) {
16560
16572
  jQuery(value).addClass((index % 2) ? 'oddRow' : 'evenRow');
@@ -16565,41 +16577,11 @@ function Crouton(config) {
16565
16577
  self.updateMeetingCount(showingNow);
16566
16578
  self.updateFilters();
16567
16579
  if (croutonMap) croutonMap.fillMap(showingNow);
16568
- if (self.config.map_page) {
16569
- if (!jQuery('#byfield_embeddedMapPage').hasClass('hide')) {
16570
- jQuery('#displayTypeButton_tablePages').removeClass('hide');
16571
- jQuery('#filterButton_embeddedMapPage').addClass('hide');
16572
- }
16573
- }
16574
-
16575
- if (!self.config.map_page || jQuery('#byfield_embeddedMapPage').hasClass('hide')) {
16576
- self.showFilteredMeetingsAsTable(showingNow.length);
16577
- }
16578
- self.filtering = true;
16580
+ self.showView(self.currentView, showingNow.length);
16579
16581
  };
16580
- self.showFilteredMeetingsAsTable = function (showingNow) {
16581
- if (self.config['filter_tabs'] && self.config['filter_tabs'] <= showingNow) {
16582
- self.showPage("#nav-days");
16583
- self.showPage("#tabs-content");
16584
- } else {
16585
- self.lowlightButton(".filterButton");
16586
- self.lowlightButton("#day");
16587
- self.showPage("#byday");
16588
-
16589
- jQuery(".bmlt-data-rows").each(function (index, value) {
16590
- if (jQuery(value).find(".bmlt-data-row.hide").length === jQuery(value).find(".bmlt-data-row").length) {
16591
- jQuery(value).find(".meeting-header").addClass("hide");
16592
- }
16593
- });
16594
- }
16595
- }
16596
16582
  self.resetFilter = function () {
16597
16583
  croutonMap.filterVisible(false);
16598
- if (self.config.map_page) {
16599
- if (self.filtering) croutonMap.fillMap();
16600
- jQuery('#displayTypeButton_tablePages').addClass('hide');
16601
- jQuery('#filterButton_embeddedMapPage').removeClass('hide');
16602
- } else if (self.config.show_map) croutonMap.fillMap();
16584
+ if ((self.config.map_page && self.filtering) || self.config.show_map) croutonMap.fillMap();
16603
16585
  self.filtering = false;
16604
16586
  self.updateFilters();
16605
16587
  self.updateMeetingCount();
@@ -17069,13 +17051,10 @@ Crouton.prototype.setConfig = function(config) {
17069
17051
  }
17070
17052
  }
17071
17053
 
17072
- if (self.config["view_by"] === "weekday") {
17054
+ if (self.config["view_by"].endsWith('day')) {
17073
17055
  self.config["include_weekday_button"] = true;
17074
17056
  }
17075
-
17076
- if (!self.config["has_tabs"]) {
17077
- self.config["view_by"] = "byday";
17078
- }
17057
+ self.currentView = self.config["view_by"];
17079
17058
 
17080
17059
  if (self.config["template_path"] == null) {
17081
17060
  self.config["template_path"] = "templates"
@@ -17245,6 +17224,11 @@ Crouton.prototype.searchMap = function() {
17245
17224
  }
17246
17225
  Crouton.prototype.render = function(doMeetingMap = false) {
17247
17226
  var self = this;
17227
+
17228
+ if (!self.config.map_search) {
17229
+ self.config.button_filters = self.config.button_filters.filter((b) => !b.field.startsWith('distance'));
17230
+ if (self.config['view_by'] == 'distance') self.config['view_by'] = 'weekday';
17231
+ }
17248
17232
  self.lock(function() {
17249
17233
  var body = jQuery("body");
17250
17234
  if (self.config['theme'] !== '') {
@@ -17491,35 +17475,20 @@ Crouton.prototype.render = function(doMeetingMap = false) {
17491
17475
  });
17492
17476
 
17493
17477
  jQuery('.filter-dropdown').on('select2:select', function (e) {
17494
- jQuery('.bmlt-page:not(#byfield_embeddedMapPage)').each(function () {
17495
- self.hidePage(this);
17496
- });
17497
17478
  self.filteredPage();
17498
- if (!self.filtering) self.showView(self.config['view_by'] === 'byday' ? 'byday' : 'day');
17499
17479
  });
17500
17480
 
17501
17481
  jQuery("#day").on('click', function () {
17502
- self.showView(self.config['view_by'] === 'byday' ? 'byday' : 'day');
17482
+ self.showView('day');
17503
17483
  });
17504
17484
 
17505
17485
  jQuery(".filterButtonLogic").on('click', function (e) {
17506
- self.filteredView(e.target.attributes['data-field'].value);
17507
- });
17508
- jQuery(".displayTypeLogic").on('click', function (e) {
17509
- jQuery(".displayTypeLogic").each(function() {
17510
- if (e.target == this) jQuery(this).addClass("hide");
17511
- else jQuery(this).removeClass("hide");
17512
- })
17513
- });
17514
- jQuery('#displayTypeButton_tablePages').on('click', function (e) {
17515
- self.hidePage('#byfield_embeddedMapPage');
17516
- const knt = self.showingNowCount ? self.showingNowCount : self.meetingData.length;
17517
- self.showFilteredMeetingsAsTable(knt);
17486
+ self.showView(e.target.attributes['data-field'].value.toLowerCase());
17518
17487
  });
17519
17488
  jQuery('#filterButton_embeddedMapPage').on('click', function (e) {
17520
- self.filteredView(e.target.attributes['data-field'].value, false);
17521
- croutonMap.showMap(false,false);
17489
+ self.showView('map')
17522
17490
  });
17491
+ /****
17523
17492
  jQuery('.custom-ul').on('click', 'a', function (event) {
17524
17493
  jQuery('.bmlt-page').each(function (index) {
17525
17494
  self.hidePage("#" + this.id);
@@ -17527,7 +17496,7 @@ Crouton.prototype.render = function(doMeetingMap = false) {
17527
17496
  return;
17528
17497
  });
17529
17498
  });
17530
-
17499
+ */
17531
17500
  if (self.config['has_tabs']) {
17532
17501
  jQuery('.nav-tabs a').on('click', function (e) {
17533
17502
  e.preventDefault();
@@ -17543,7 +17512,6 @@ Crouton.prototype.render = function(doMeetingMap = false) {
17543
17512
 
17544
17513
  self.showPage(".bmlt-header");
17545
17514
  self.showPage(".bmlt-tabs");
17546
- self.showView(self.config['view_by'], false);
17547
17515
 
17548
17516
  if (self.config['default_filter_dropdown'] !== "") {
17549
17517
  var filter = self.config['default_filter_dropdown'].toLowerCase().split("=");
@@ -17563,6 +17531,9 @@ Crouton.prototype.render = function(doMeetingMap = false) {
17563
17531
  if (self.config['refresh_map']) {
17564
17532
  croutonMap.refreshMeetings(self.meetingData, true, true);
17565
17533
  }
17534
+ if (self.config['view_by'] == 'map' && !self.config['map_page'])
17535
+ self.config['view_by'] = 'day';
17536
+ self.showView(self.config['view_by'], self.meetingData.length);
17566
17537
  if (self.config['on_complete'] != null && isFunction(self.config['on_complete'])) {
17567
17538
  self.config['on_complete']();
17568
17539
  }
@@ -17570,13 +17541,12 @@ Crouton.prototype.render = function(doMeetingMap = false) {
17570
17541
  });
17571
17542
  });
17572
17543
  Crouton.prototype.forceShowMap = function() {
17573
- if (self.config.map_page && jQuery('#byfield_embeddedMapPage').hasClass('hide')) {
17574
- jQuery('#filterButton_embeddedMapPage').click();
17544
+ if (this.config.map_page && jQuery('#byfield_embeddedMapPage').hasClass('hide')) {
17545
+ this.mapView();
17575
17546
  }
17576
17547
  }
17577
17548
  };
17578
17549
 
17579
-
17580
17550
  function getTrueResult(options, ctx) {
17581
17551
  return options.fn !== undefined ? options.fn(ctx) : true;
17582
17552
  }
@@ -17854,7 +17824,7 @@ function getUniqueFormats(array){
17854
17824
  return array.reduce(function(carry, val){
17855
17825
  if (!(val.formats_expanded)) return carry;
17856
17826
  return carry.concat(val.formats_expanded.filter((item) => carry.map(f => f.key).indexOf(item.key) < 0));
17857
- },[]);
17827
+ },[]).sortByKey('name');
17858
17828
  }
17859
17829
  function getUniqueFormatsOfType(array, type){
17860
17830
  return array.reduce(function(carry, val){
@@ -17864,7 +17834,7 @@ function getUniqueFormatsOfType(array, type){
17864
17834
  carry = carry.concat(fmts.filter((item) => carry.map(f => f.key).indexOf(item.key) < 0));
17865
17835
  }
17866
17836
  return carry;
17867
- },[]);
17837
+ },[]).sortByKey('name');
17868
17838
  }
17869
17839
  Crouton.prototype.renderMeetingCount = function() {
17870
17840
  var self = this;
@@ -17878,8 +17848,6 @@ Crouton.prototype.simulateFilterDropdown = function() {
17878
17848
  self.hidePage(this);
17879
17849
  });
17880
17850
  self.filteredPage();
17881
- if (!self.filtering && !self.config.map_page)
17882
- self.showView(self.config['view_by'] === 'byday' ? 'byday' : 'day', false);
17883
17851
  }
17884
17852
  Crouton.prototype.getAdjustedDateTime = function(meeting_day, meeting_time, meeting_time_zone) {
17885
17853
  var timeZoneAware = this.config['auto_tz_adjust'] === true || this.config['auto_tz_adjust'] === "true";