@bmlt-enabled/croutonjs 3.23.0 → 3.24.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.css +2 -10
- package/crouton-core.min.css +1 -1
- package/crouton-gmaps.js +160 -57
- package/crouton-gmaps.min.js +8 -5
- package/crouton-gmaps.min.js.map +1 -1
- package/crouton-map.js +10 -5
- package/crouton-map.min.js +1 -1
- package/crouton-map.min.js.map +1 -1
- package/crouton.css +2 -10
- package/crouton.js +169 -61
- package/crouton.min.css +1 -1
- package/crouton.min.js +8 -5
- package/crouton.min.js.map +1 -1
- package/crouton.nojquery.js +159 -56
- package/crouton.nojquery.min.js +7 -4
- package/crouton.nojquery.min.js.map +1 -1
- package/package.json +1 -1
- package/templates/themes/florida-nights.css +3 -8
- package/templates/themes/frog.css +2 -8
- package/templates/themes/one-nine.css +2 -8
- package/templates/themes/seattle-rain.css +3 -8
- package/templates/themes/truth.css +2 -8
package/crouton-gmaps.js
CHANGED
|
@@ -13340,6 +13340,7 @@ function CroutonLocalization(language) {
|
|
|
13340
13340
|
'report update': "Report an Update",
|
|
13341
13341
|
'filter by visibility': "List only these meetings",
|
|
13342
13342
|
'go': "Go!",
|
|
13343
|
+
"distance": "Afstand",
|
|
13343
13344
|
"get_directions": "Få vejvisning",
|
|
13344
13345
|
"select_map_app": "Vælg kortapp",
|
|
13345
13346
|
"apple_maps": "Apple Maps",
|
|
@@ -13348,6 +13349,7 @@ function CroutonLocalization(language) {
|
|
|
13348
13349
|
"google_maps_desc_mobile": "Åbn i Google Maps app",
|
|
13349
13350
|
"waze": "Waze",
|
|
13350
13351
|
"waze_desc": "Åbn i Waze app",
|
|
13352
|
+
"sorted by distance": "Sorteret efter Afstand",
|
|
13351
13353
|
},
|
|
13352
13354
|
"de-DE":{
|
|
13353
13355
|
"days_of_the_week": ["", "Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"],
|
|
@@ -13410,11 +13412,13 @@ function CroutonLocalization(language) {
|
|
|
13410
13412
|
"apple_maps": "Apple Maps",
|
|
13411
13413
|
"apple_maps_desc": "In Apple Maps App öffnen",
|
|
13412
13414
|
"google_maps": "Google Maps",
|
|
13415
|
+
"distance": "Entfernung",
|
|
13413
13416
|
"google_maps_desc_mobile": "In Google Maps App öffnen",
|
|
13414
13417
|
"waze": "Waze",
|
|
13415
13418
|
"waze_desc": "In Waze App öffnen",
|
|
13416
13419
|
"remember my choice": "Auswahl speichern",
|
|
13417
|
-
"zoomed-out-message": "Wir können nicht die ganze Fläche nach Meetings durchsuchen. Bitte reinzoomen oder eine neue Suche machen."
|
|
13420
|
+
"zoomed-out-message": "Wir können nicht die ganze Fläche nach Meetings durchsuchen. Bitte reinzoomen oder eine neue Suche machen.",
|
|
13421
|
+
"sorted by distance": "Sortiert nach Entfernung",
|
|
13418
13422
|
},
|
|
13419
13423
|
"en-AU": {
|
|
13420
13424
|
"days_of_the_week" : ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
@@ -13480,7 +13484,8 @@ function CroutonLocalization(language) {
|
|
|
13480
13484
|
"google_maps_desc_mobile": "Open in Google Maps app",
|
|
13481
13485
|
"waze": "Waze",
|
|
13482
13486
|
"waze_desc": "Open in Waze app",
|
|
13483
|
-
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search."
|
|
13487
|
+
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search.",
|
|
13488
|
+
"sorted by distance": "Sorted by Distance",
|
|
13484
13489
|
},
|
|
13485
13490
|
"en-CA": {
|
|
13486
13491
|
"days_of_the_week" : ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
@@ -13547,7 +13552,8 @@ function CroutonLocalization(language) {
|
|
|
13547
13552
|
"google_maps_desc_mobile": "Open in Google Maps app",
|
|
13548
13553
|
"waze": "Waze",
|
|
13549
13554
|
"waze_desc": "Open in Waze app",
|
|
13550
|
-
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search."
|
|
13555
|
+
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search.",
|
|
13556
|
+
"sorted by distance": "Sorted by Distance",
|
|
13551
13557
|
},
|
|
13552
13558
|
"en-NZ": {
|
|
13553
13559
|
"days_of_the_week" : ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
@@ -13614,7 +13620,8 @@ function CroutonLocalization(language) {
|
|
|
13614
13620
|
"google_maps_desc_mobile": "Open in Google Maps app",
|
|
13615
13621
|
"waze": "Waze",
|
|
13616
13622
|
"waze_desc": "Open in Waze app",
|
|
13617
|
-
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search."
|
|
13623
|
+
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search.",
|
|
13624
|
+
"sorted by distance": "Sorted by Distance",
|
|
13618
13625
|
},
|
|
13619
13626
|
"en-UK": {
|
|
13620
13627
|
"days_of_the_week" : ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
@@ -13681,7 +13688,8 @@ function CroutonLocalization(language) {
|
|
|
13681
13688
|
"google_maps_desc_mobile": "Open in Google Maps app",
|
|
13682
13689
|
"waze": "Waze",
|
|
13683
13690
|
"waze_desc": "Open in Waze app",
|
|
13684
|
-
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search."
|
|
13691
|
+
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search.",
|
|
13692
|
+
"sorted by distance": "Sorted by Distance",
|
|
13685
13693
|
},
|
|
13686
13694
|
"en-US": {
|
|
13687
13695
|
"days_of_the_week" : ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
|
|
@@ -13748,7 +13756,8 @@ function CroutonLocalization(language) {
|
|
|
13748
13756
|
"google_maps_desc_mobile": "Open in Google Maps app",
|
|
13749
13757
|
"waze": "Waze",
|
|
13750
13758
|
"waze_desc": "Open in Waze app",
|
|
13751
|
-
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search."
|
|
13759
|
+
"zoomed-out-message": "We can't search the entire area for meetings. Please zoom in or do a new search.",
|
|
13760
|
+
"sorted by distance": "Sorted by Distance",
|
|
13752
13761
|
},
|
|
13753
13762
|
"es-US": {
|
|
13754
13763
|
"days_of_the_week" : ["", "Domingo", " Lunes", "Martes", "Miércoles", "Jueves", "Viernes", "Sábado"],
|
|
@@ -13807,6 +13816,7 @@ function CroutonLocalization(language) {
|
|
|
13807
13816
|
'report update': "Actualización de informe",
|
|
13808
13817
|
'filter by visibility': "Listar solo estas reuniones",
|
|
13809
13818
|
'go': "¡Adelante!",
|
|
13819
|
+
"distance": "Distancia",
|
|
13810
13820
|
"get_directions": "Obtener Direcciones",
|
|
13811
13821
|
"select_map_app": "Seleccionar Aplicación de Mapas",
|
|
13812
13822
|
"apple_maps": "Apple Maps",
|
|
@@ -13815,7 +13825,8 @@ function CroutonLocalization(language) {
|
|
|
13815
13825
|
"google_maps_desc_mobile": "Abrir en la aplicación Google Maps",
|
|
13816
13826
|
"waze": "Waze",
|
|
13817
13827
|
"waze_desc": "Abrir en la aplicación Waze",
|
|
13818
|
-
"zoomed-out-message": "No podemos buscar reuniones en toda la zona. Por favor, acérquese o haga una nueva búsqueda."
|
|
13828
|
+
"zoomed-out-message": "No podemos buscar reuniones en toda la zona. Por favor, acérquese o haga una nueva búsqueda.",
|
|
13829
|
+
"sorted by distance": "Ordenado por distancia",
|
|
13819
13830
|
},
|
|
13820
13831
|
"fa-IR": {
|
|
13821
13832
|
"days_of_the_week" : ["", 'یَکشَنب', 'دوشَنبه', 'سهشنبه', 'چهار شنبه', 'پَنج شَنبه', 'جُمعه', 'شَنبه'],
|
|
@@ -13872,6 +13883,7 @@ function CroutonLocalization(language) {
|
|
|
13872
13883
|
'report update': "Report an Update",
|
|
13873
13884
|
'filter by visibility': "List only these meetings",
|
|
13874
13885
|
'go': "Go!",
|
|
13886
|
+
"distance": "فاصله",
|
|
13875
13887
|
"get_directions": "دریافت مسیر",
|
|
13876
13888
|
"select_map_app": "انتخاب برنامه نقشه",
|
|
13877
13889
|
"apple_maps": "نقشه اپل",
|
|
@@ -13880,6 +13892,7 @@ function CroutonLocalization(language) {
|
|
|
13880
13892
|
"google_maps_desc_mobile": "باز کردن در برنامه گوگل مپس",
|
|
13881
13893
|
"waze": "ویز",
|
|
13882
13894
|
"waze_desc": "باز کردن در برنامه ویز",
|
|
13895
|
+
"sorted by distance": "مرتب شده بر اساس فاصله",
|
|
13883
13896
|
},
|
|
13884
13897
|
"fr-CA": {
|
|
13885
13898
|
"days_of_the_week" : ["", "Dimanche", "Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi"],
|
|
@@ -13937,6 +13950,7 @@ function CroutonLocalization(language) {
|
|
|
13937
13950
|
'report update': "Report an Update",
|
|
13938
13951
|
'filter by visibility': "List only these meetings",
|
|
13939
13952
|
'go': "Go!",
|
|
13953
|
+
"distance": "Distance",
|
|
13940
13954
|
"get_directions": "Obtenir l'itinéraire",
|
|
13941
13955
|
"select_map_app": "Sélectionner l'application de cartes",
|
|
13942
13956
|
"apple_maps": "Apple Maps",
|
|
@@ -13945,6 +13959,7 @@ function CroutonLocalization(language) {
|
|
|
13945
13959
|
"google_maps_desc_mobile": "Ouvrir dans l'application Google Maps",
|
|
13946
13960
|
"waze": "Waze",
|
|
13947
13961
|
"waze_desc": "Ouvrir dans l'application Waze",
|
|
13962
|
+
"sorted by distance": "Trié par distance",
|
|
13948
13963
|
},
|
|
13949
13964
|
"it-IT": {
|
|
13950
13965
|
"days_of_the_week" : ["", "Domenica", " Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
|
|
@@ -14002,6 +14017,7 @@ function CroutonLocalization(language) {
|
|
|
14002
14017
|
'report update': "Report an Update",
|
|
14003
14018
|
'filter by visibility': "List only these meetings",
|
|
14004
14019
|
'go': "Go!",
|
|
14020
|
+
"distance": "Distanza",
|
|
14005
14021
|
"get_directions": "Ottieni Indicazioni",
|
|
14006
14022
|
"select_map_app": "Seleziona App Mappe",
|
|
14007
14023
|
"apple_maps": "Apple Maps",
|
|
@@ -14010,6 +14026,7 @@ function CroutonLocalization(language) {
|
|
|
14010
14026
|
"google_maps_desc_mobile": "Apri nell'app Google Maps",
|
|
14011
14027
|
"waze": "Waze",
|
|
14012
14028
|
"waze_desc": "Apri nell'app Waze",
|
|
14029
|
+
"sorted by distance": "Ordinati per distanza",
|
|
14013
14030
|
},
|
|
14014
14031
|
"nl-NL": {
|
|
14015
14032
|
"days_of_the_week" : ["", "Zondag", "Maandag", "Dinsdag", "Woensdag", "Donderdag", "Vrijdag", "Zaterdag"],
|
|
@@ -14075,6 +14092,7 @@ function CroutonLocalization(language) {
|
|
|
14075
14092
|
"google_maps_desc_mobile": "Openen in Google Maps app",
|
|
14076
14093
|
"waze": "Waze",
|
|
14077
14094
|
"waze_desc": "Openen in Waze app",
|
|
14095
|
+
"sorted by distance": "Gesorteerd op afstand",
|
|
14078
14096
|
},
|
|
14079
14097
|
"pl-PL": {
|
|
14080
14098
|
"days_of_the_week" : ["", "Niedziela", "Poniedziałek", "Wtorek", "Środa", "Czwartek", "Piątek", "Sobota"],
|
|
@@ -14132,6 +14150,7 @@ function CroutonLocalization(language) {
|
|
|
14132
14150
|
'report update': "Report an Update",
|
|
14133
14151
|
'filter by visibility': "List only these meetings",
|
|
14134
14152
|
'go': "Go!",
|
|
14153
|
+
"distance": "Odległość",
|
|
14135
14154
|
"get_directions": "Pobierz Wskazówki",
|
|
14136
14155
|
"select_map_app": "Wybierz Aplikację Map",
|
|
14137
14156
|
"apple_maps": "Apple Maps",
|
|
@@ -14140,6 +14159,7 @@ function CroutonLocalization(language) {
|
|
|
14140
14159
|
"google_maps_desc_mobile": "Otwórz w aplikacji Google Maps",
|
|
14141
14160
|
"waze": "Waze",
|
|
14142
14161
|
"waze_desc": "Otwórz w aplikacji Waze",
|
|
14162
|
+
"sorted by distance": "Posortowane według odległości",
|
|
14143
14163
|
},
|
|
14144
14164
|
"pt-BR": {
|
|
14145
14165
|
"days_of_the_week" : ["", "Domingo", "Segunda-feira", "Terça-feira", "Quarta-feira", "Quinta-feira", "Sexta-feira", "Sábado"],
|
|
@@ -14197,6 +14217,7 @@ function CroutonLocalization(language) {
|
|
|
14197
14217
|
'report update': "Report an Update",
|
|
14198
14218
|
'filter by visibility': "List only these meetings",
|
|
14199
14219
|
'go': "Go!",
|
|
14220
|
+
"distance": "Distância",
|
|
14200
14221
|
"get_directions": "Obter Direções",
|
|
14201
14222
|
"select_map_app": "Selecionar Aplicativo de Mapas",
|
|
14202
14223
|
"apple_maps": "Apple Maps",
|
|
@@ -14205,6 +14226,7 @@ function CroutonLocalization(language) {
|
|
|
14205
14226
|
"google_maps_desc_mobile": "Abrir no aplicativo Google Maps",
|
|
14206
14227
|
"waze": "Waze",
|
|
14207
14228
|
"waze_desc": "Abrir no aplicativo Waze",
|
|
14229
|
+
"sorted by distance": "Classificado por distância",
|
|
14208
14230
|
},
|
|
14209
14231
|
"ru-RU": {
|
|
14210
14232
|
"days_of_the_week" : ["", "Воскресенье", "Понедельник", "Вторник", "Среда", "Четверг", "Пятница", "Суббота"],
|
|
@@ -14262,6 +14284,7 @@ function CroutonLocalization(language) {
|
|
|
14262
14284
|
'report update': "Report an Update",
|
|
14263
14285
|
'filter by visibility': "List only these meetings",
|
|
14264
14286
|
'go': "Go!",
|
|
14287
|
+
"distance": "Расстояние",
|
|
14265
14288
|
"get_directions": "Проложить маршрут",
|
|
14266
14289
|
"select_map_app": "Выбрать приложение карт",
|
|
14267
14290
|
"apple_maps": "Apple Maps",
|
|
@@ -14270,6 +14293,7 @@ function CroutonLocalization(language) {
|
|
|
14270
14293
|
"google_maps_desc_mobile": "Открыть в приложении Google Maps",
|
|
14271
14294
|
"waze": "Waze",
|
|
14272
14295
|
"waze_desc": "Открыть в приложении Waze",
|
|
14296
|
+
"sorted by distance": "Сортировка по расстоянию",
|
|
14273
14297
|
},
|
|
14274
14298
|
"sv-SE": {
|
|
14275
14299
|
"days_of_the_week" : ["", "Söndag", "Måndag", "Tisdag", "Onsdag", "Torsdag", "Fredag", "Lördag"],
|
|
@@ -14335,6 +14359,7 @@ function CroutonLocalization(language) {
|
|
|
14335
14359
|
"google_maps_desc_mobile": "Öppna i Google Maps-appen",
|
|
14336
14360
|
"waze": "Waze",
|
|
14337
14361
|
"waze_desc": "Öppna i Waze-appen",
|
|
14362
|
+
"sorted by distance": "Sorterade efter avstånd",
|
|
14338
14363
|
}
|
|
14339
14364
|
};
|
|
14340
14365
|
}
|
|
@@ -14374,8 +14399,8 @@ this["hbs_Crouton"]["templates"]["byday"] = Handlebars.template({"1":function(co
|
|
|
14374
14399
|
+ ((stack1 = (lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-textAlign",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":3,"column":39},"end":{"line":3,"column":68}}})) != null ? stack1 : "")
|
|
14375
14400
|
+ ">\n <div class=\"group-header\">"
|
|
14376
14401
|
+ alias4(alias3((depth0 != null ? lookupProperty(depth0,"day") : depth0), depth0))
|
|
14377
|
-
+ "</div>\n <div class=\"group-table-div\">\n <table class='bmlt-table table table-
|
|
14378
|
-
+ alias4((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":6,"column":
|
|
14402
|
+
+ "</div>\n <div class=\"group-table-div\">\n <table class='bmlt-table table table-hover table-bordered tablesaw tablesaw-stack "
|
|
14403
|
+
+ alias4((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":6,"column":102},"end":{"line":6,"column":129}}}))
|
|
14379
14404
|
+ "'>\n <tbody class=\"h-"
|
|
14380
14405
|
+ alias4(alias3((depth0 != null ? lookupProperty(depth0,"day") : depth0), depth0))
|
|
14381
14406
|
+ "\">\n"
|
|
@@ -14407,8 +14432,8 @@ this["hbs_Crouton"]["templates"]["byfield"] = Handlebars.template({"1":function(
|
|
|
14407
14432
|
+ ((stack1 = (lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"css-textAlign",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":3,"column":63},"end":{"line":3,"column":92}}})) != null ? stack1 : "")
|
|
14408
14433
|
+ ">\n <div class=\"group-header\">"
|
|
14409
14434
|
+ alias1(((helper = (helper = lookupProperty(helpers,"key") || (data && lookupProperty(data,"key"))) != null ? helper : alias3),(typeof helper === "function" ? helper.call(alias2,{"name":"key","hash":{},"data":data,"loc":{"start":{"line":4,"column":42},"end":{"line":4,"column":50}}}) : helper)))
|
|
14410
|
-
+ "</div>\n <div class=\"group-table-div\">\n <table class='bmlt-table table table-
|
|
14411
|
-
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":6,"column":
|
|
14435
|
+
+ "</div>\n <div class=\"group-table-div\">\n <table class='bmlt-table table table-hover table-bordered tablesaw tablesaw-stack "
|
|
14436
|
+
+ alias1((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias3).call(alias2,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":6,"column":87},"end":{"line":6,"column":114}}}))
|
|
14412
14437
|
+ "'>\n <tbody class=\"byfield.hbs\">\n"
|
|
14413
14438
|
+ ((stack1 = container.invokePartial(lookupProperty(partials,"meetings"),(depth0 != null ? lookupProperty(depth0,"group") : depth0),{"name":"meetings","data":data,"indent":" \t","helpers":helpers,"partials":partials,"decorators":container.decorators})) != null ? stack1 : "")
|
|
14414
14439
|
+ " </tbody>\n </table>\n </div>\n </div>\n";
|
|
@@ -15098,8 +15123,8 @@ this["hbs_Crouton"]["templates"]["weekdays"] = Handlebars.template({"1":function
|
|
|
15098
15123
|
|
|
15099
15124
|
return " <div id='tab"
|
|
15100
15125
|
+ 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)))
|
|
15101
|
-
+ "' class='tab-pane'>\n <div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-
|
|
15102
|
-
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":5,"column":
|
|
15126
|
+
+ "' class='tab-pane'>\n <div id=\"bmlt-table-div\">\n <table class='bmlt-table table table-hover table-bordered tablesaw tablesaw-stack "
|
|
15127
|
+
+ alias3((lookupProperty(helpers,"getWord")||(depth0 && lookupProperty(depth0,"getWord"))||alias2).call(alias1,"css-direction",{"name":"getWord","hash":{},"data":data,"loc":{"start":{"line":5,"column":98},"end":{"line":5,"column":125}}}))
|
|
15103
15128
|
+ "'>\n <tbody class=\"weekdays.hbs\">\n"
|
|
15104
15129
|
+ ((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 : "")
|
|
15105
15130
|
+ ((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 : "")
|
|
@@ -15149,9 +15174,7 @@ var croutonDefaultTemplates = {
|
|
|
15149
15174
|
"{{#if this.virtual_meeting_additional_info}}",
|
|
15150
15175
|
" <div class='meeting-additional-info'>{{this.virtual_meeting_additional_info}}</div>",
|
|
15151
15176
|
"{{/if}}",
|
|
15152
|
-
"{{
|
|
15153
|
-
" <div class='meeting-distance'>{{getWord 'Distance'}}: {{this.distance}}</div>",
|
|
15154
|
-
"{{/if}}"
|
|
15177
|
+
"{{> distance }}"
|
|
15155
15178
|
].join('\n'),
|
|
15156
15179
|
|
|
15157
15180
|
metadata_template: [
|
|
@@ -16325,6 +16348,7 @@ function Crouton(config) {
|
|
|
16325
16348
|
self.filtering = false;
|
|
16326
16349
|
self.masterFormatCodes = [];
|
|
16327
16350
|
self.currentView = "weekday";
|
|
16351
|
+
self.distanceTabAllowed = false;
|
|
16328
16352
|
self.config = {
|
|
16329
16353
|
on_complete: null, // Javascript function to callback when data querying is completed.
|
|
16330
16354
|
root_server: null, // The root server to use.
|
|
@@ -16674,6 +16698,10 @@ function Crouton(config) {
|
|
|
16674
16698
|
};
|
|
16675
16699
|
|
|
16676
16700
|
self.groupedView = function (field) {
|
|
16701
|
+
if (field.includes('distance') && !self.distanceTabAllowed) {
|
|
16702
|
+
self.dayView();
|
|
16703
|
+
return;
|
|
16704
|
+
}
|
|
16677
16705
|
self.lowlightButton("#day");
|
|
16678
16706
|
self.lowlightButton(".groupingButton");
|
|
16679
16707
|
self.highlightButton("#groupingButton_" + field);
|
|
@@ -16709,11 +16737,22 @@ function Crouton(config) {
|
|
|
16709
16737
|
self.hideAllPages = function (id) {
|
|
16710
16738
|
jQuery("#tab-pane").removeClass("show").addClass("hide");
|
|
16711
16739
|
};
|
|
16712
|
-
|
|
16740
|
+
self.addStripes = function() {
|
|
16741
|
+
var showingNow = [];
|
|
16742
|
+
jQuery(".bmlt-data-row:not(.hide)").each(function (index, value) {
|
|
16743
|
+
jQuery(value).addClass((index % 2) ? 'oddRow' : 'evenRow');
|
|
16744
|
+
const rowId = value.id.split("-");
|
|
16745
|
+
showingNow.push(rowId[rowId.length-1]);
|
|
16746
|
+
});
|
|
16747
|
+
showingNow = [...new Set(showingNow)];
|
|
16748
|
+
return showingNow;
|
|
16749
|
+
}
|
|
16713
16750
|
self.filterMeetingsFromView = function () {
|
|
16714
16751
|
jQuery(".group-header").removeClass("hide");
|
|
16715
16752
|
jQuery(".meeting-group").removeClass("hide");
|
|
16716
16753
|
jQuery(".bmlt-data-row").removeClass("hide");
|
|
16754
|
+
jQuery(".bmlt-data-row").removeClass("evenRow");
|
|
16755
|
+
jQuery(".bmlt-data-row").removeClass("oddRow");
|
|
16717
16756
|
jQuery(".filter-dropdown").each(function(index, filter) {
|
|
16718
16757
|
const dataValue = filter.value.replace("a-", "");
|
|
16719
16758
|
if (dataValue === "") return;
|
|
@@ -16724,13 +16763,7 @@ function Crouton(config) {
|
|
|
16724
16763
|
jQuery(".bmlt-data-row").not("[data-" + dataType + "~='" + dataValue + "']").addClass("hide");
|
|
16725
16764
|
}
|
|
16726
16765
|
});
|
|
16727
|
-
var showingNow =
|
|
16728
|
-
jQuery(".bmlt-data-row").not(".hide").each(function (index, value) {
|
|
16729
|
-
jQuery(value).addClass((index % 2) ? 'oddRow' : 'evenRow');
|
|
16730
|
-
const rowId = value.id.split("-");
|
|
16731
|
-
showingNow.push(rowId[rowId.length-1]);
|
|
16732
|
-
});
|
|
16733
|
-
showingNow = [...new Set(showingNow)];
|
|
16766
|
+
var showingNow = this.addStripes();
|
|
16734
16767
|
self.updateMeetingCount(showingNow);
|
|
16735
16768
|
self.updateFilters();
|
|
16736
16769
|
if (croutonMap) croutonMap.fillMap(showingNow);
|
|
@@ -17112,36 +17145,87 @@ function Crouton(config) {
|
|
|
17112
17145
|
+ (self.config.force_rootserver_in_querystring ? '&root_server=' + encodeURIComponent(self.config.root_server) : '')
|
|
17113
17146
|
);
|
|
17114
17147
|
}
|
|
17148
|
+
this.calculateDistance(meetingData[m]);
|
|
17149
|
+
meetings.push(meetingData[m])
|
|
17150
|
+
}
|
|
17115
17151
|
|
|
17116
|
-
|
|
17117
|
-
|
|
17118
|
-
|
|
17119
|
-
|
|
17120
|
-
|
|
17121
|
-
|
|
17122
|
-
|
|
17123
|
-
|
|
17124
|
-
|
|
17125
|
-
|
|
17126
|
-
|
|
17127
|
-
|
|
17128
|
-
|
|
17129
|
-
|
|
17130
|
-
|
|
17131
|
-
|
|
17132
|
-
|
|
17152
|
+
return meetings;
|
|
17153
|
+
};
|
|
17154
|
+
Crouton.prototype.updateDistances = function() {
|
|
17155
|
+
const self = this;
|
|
17156
|
+
var knt = 0;
|
|
17157
|
+
jQuery('.meeting-distance').each(function(index) {
|
|
17158
|
+
const jThis = jQuery(this);
|
|
17159
|
+
const id = jQuery(this).data('id');
|
|
17160
|
+
if (!id) return;
|
|
17161
|
+
knt++;
|
|
17162
|
+
const m = self.meetingData.find((m) => m.id_bigint==id);
|
|
17163
|
+
self.calculateDistance(m);
|
|
17164
|
+
if (m['distance'] == '') {
|
|
17165
|
+
if (!jThis.hasClass('hide')) jThis.addClass('hide');
|
|
17166
|
+
} else {
|
|
17167
|
+
jThis.removeClass('hide');
|
|
17168
|
+
jQuery(this).html(self.localization.getWord('Distance')+': '+m['distance']);
|
|
17169
|
+
jQuery(this).closest('tr').data('distance', m['distance_in_km']);
|
|
17170
|
+
}
|
|
17171
|
+
});
|
|
17172
|
+
const parent = jQuery('#byfield_distance_in_km tbody');
|
|
17173
|
+
if (parent.length == 0) return;
|
|
17174
|
+
if (knt === 0) {
|
|
17175
|
+
parent.children().each(function (index) {
|
|
17176
|
+
if (!this.id) return;
|
|
17177
|
+
const id = this.id.replace("meeting-data-row-", "");
|
|
17178
|
+
const m = self.meetingData.find((m) => m.id_bigint==id);
|
|
17179
|
+
if (!m) return;
|
|
17180
|
+
self.calculateDistance(m);
|
|
17181
|
+
if (m['distance'] != '') {
|
|
17182
|
+
jQuery(this).data('distance', m['distance_in_km']);
|
|
17183
|
+
knt++;
|
|
17184
|
+
}
|
|
17185
|
+
});
|
|
17186
|
+
}
|
|
17187
|
+
const sorted = parent.children().sort(function (a, b) {
|
|
17188
|
+
const distanceA =parseFloat( jQuery(a).data('distance'));
|
|
17189
|
+
const distanceB =parseFloat( jQuery(b).data('distance'));
|
|
17190
|
+
return (distanceA < distanceB) ? -1 : (distanceA > distanceB) ? 1 : 0;
|
|
17191
|
+
});
|
|
17192
|
+
parent.html(sorted);
|
|
17193
|
+
jQuery("#byfield_distance_in_km tbody .bmlt-data-row").css({cursor: "pointer"});
|
|
17194
|
+
jQuery("#byfield_distance_in_km tbody .bmlt-data-row").click(function (e) {
|
|
17195
|
+
if (e.target.tagName !== 'A')
|
|
17196
|
+
croutonMap.rowClick(parseInt(this.id.replace("meeting-data-row-", "")));
|
|
17197
|
+
});
|
|
17198
|
+
if (knt > 0) {
|
|
17199
|
+
jQuery('#groupingButton_distance_in_km').removeClass('hide');
|
|
17200
|
+
self.distanceTabAllowed = true;
|
|
17201
|
+
}
|
|
17202
|
+
}
|
|
17203
|
+
self.calculateDistance = function(meetingData) {
|
|
17204
|
+
meetingData['distance'] = '';
|
|
17205
|
+
if (meetingData['venue_type'] != 2) {
|
|
17206
|
+
const point = {"lat": meetingData['latitude'], "lng": meetingData['longitude']};
|
|
17207
|
+
const distances = croutonMap.getDistanceFromSearch(point);
|
|
17208
|
+
if (distances) {
|
|
17209
|
+
meetingData['distance_in_km'] = distances.km;
|
|
17210
|
+
meetingData['distance_in_miles'] = distances.miles;
|
|
17211
|
+
|
|
17212
|
+
if (self.config['distance_units'] === "km") {
|
|
17213
|
+
if (meetingData['distance_in_km']) {
|
|
17214
|
+
const d = meetingData['distance_in_km'];
|
|
17215
|
+
if (d < 1) {
|
|
17216
|
+
meetingData['distance'] = Math.round( d * 1000) + 'm';
|
|
17217
|
+
}
|
|
17218
|
+
else {
|
|
17219
|
+
meetingData['distance'] = (Math.round(d * 10) / 10).toFixed(1) + 'km';
|
|
17133
17220
|
}
|
|
17134
|
-
} else if (meetingData[m]['distance_in_miles']) {
|
|
17135
|
-
const d = meetingData[m]['distance_in_miles'];
|
|
17136
|
-
meetingData[m]['distance'] = (Math.round(d * 100) / 100).toFixed(2) + ' miles';
|
|
17137
17221
|
}
|
|
17222
|
+
} else if (meetingData['distance_in_miles']) {
|
|
17223
|
+
const d = meetingData['distance_in_miles'];
|
|
17224
|
+
meetingData['distance'] = (Math.round(d * 100) / 100).toFixed(2) + ' miles';
|
|
17138
17225
|
}
|
|
17139
17226
|
}
|
|
17140
|
-
meetings.push(meetingData[m])
|
|
17141
17227
|
}
|
|
17142
|
-
|
|
17143
|
-
return meetings;
|
|
17144
|
-
};
|
|
17228
|
+
}
|
|
17145
17229
|
self.showMessage = function(message) {
|
|
17146
17230
|
jQuery("#" + self.config['placeholder_id']).html("crouton: " + message);
|
|
17147
17231
|
jQuery("#" + self.config['placeholder_id']).removeClass("hide");
|
|
@@ -17355,6 +17439,7 @@ Crouton.prototype.meetingModal = function(meetingId) {
|
|
|
17355
17439
|
}
|
|
17356
17440
|
Crouton.prototype.searchMap = function() {
|
|
17357
17441
|
var self = this;
|
|
17442
|
+
self.distanceTabAllowed = true;
|
|
17358
17443
|
if (!self.config.map_search || typeof self.config.map_search !== 'object') {
|
|
17359
17444
|
self.config.map_search = {
|
|
17360
17445
|
width: -50,
|
|
@@ -17396,10 +17481,6 @@ Crouton.prototype.searchMap = function() {
|
|
|
17396
17481
|
Crouton.prototype.render = function(doMeetingMap = false, fitBounds=true) {
|
|
17397
17482
|
var self = this;
|
|
17398
17483
|
|
|
17399
|
-
if (!self.config.map_search) {
|
|
17400
|
-
self.config.grouping_buttons = self.config.grouping_buttons.filter((b) => !b.field.startsWith('distance'));
|
|
17401
|
-
if (self.config['view_by'] == 'distance') self.config['view_by'] = 'weekday';
|
|
17402
|
-
}
|
|
17403
17484
|
self.lock(function() {
|
|
17404
17485
|
var body = jQuery("body");
|
|
17405
17486
|
if (self.config['theme'] !== '') {
|
|
@@ -17515,9 +17596,13 @@ Crouton.prototype.render = function(doMeetingMap = false, fitBounds=true) {
|
|
|
17515
17596
|
? self.config.grouping_buttons[b]['accordionState'] : '';
|
|
17516
17597
|
groupingButtonsDataSorted[groupByName] = {};
|
|
17517
17598
|
if (groupByName.startsWith('distance')) {
|
|
17518
|
-
groupingButtonsDataSorted[groupByName]['Sorted by Distance'] = {};
|
|
17519
|
-
|
|
17520
|
-
|
|
17599
|
+
groupingButtonsDataSorted[groupByName][self.localization.getWord('Sorted by Distance')] = {};
|
|
17600
|
+
if (self.config.map_search) {
|
|
17601
|
+
groupingButtonsDataSorted[groupByName][self.localization.getWord('Sorted by Distance')].group = [...self.meetingData].sort((a,b) => a['distance_in_km'] - b['distance_in_km']);
|
|
17602
|
+
} else { // when not crouton_map, sorting byy distance is triggered by an action in meeting_map.
|
|
17603
|
+
groupingButtonsDataSorted[groupByName][self.localization.getWord('Sorted by Distance')].group = [...self.meetingData].filter(m => m.venue_type != 2);
|
|
17604
|
+
}
|
|
17605
|
+
groupingButtonsDataSorted[groupByName][self.localization.getWord('Sorted by Distance')].accordionState = 'non-collapsable';
|
|
17521
17606
|
continue;
|
|
17522
17607
|
}
|
|
17523
17608
|
var sortKey = [];
|
|
@@ -17614,6 +17699,10 @@ Crouton.prototype.render = function(doMeetingMap = false, fitBounds=true) {
|
|
|
17614
17699
|
},
|
|
17615
17700
|
"dropdownData": self.dropdownData
|
|
17616
17701
|
}, function () {
|
|
17702
|
+
if (!self.config.map_search) {
|
|
17703
|
+
jQuery('#groupingButton_distance_in_km').addClass('hide');
|
|
17704
|
+
}
|
|
17705
|
+
self.addStripes();
|
|
17617
17706
|
self.updateMeetingCount();
|
|
17618
17707
|
if (self.config['map_search'] != null || self.config['show_map']) {
|
|
17619
17708
|
jQuery(".bmlt-data-row").css({cursor: "pointer"});
|
|
@@ -18046,6 +18135,10 @@ crouton_Handlebars.registerPartial('offerIcsButton',
|
|
|
18046
18135
|
"{{#if (hasBMLT2ics)}}{{> icsButton}}<br/>{{/if}}");
|
|
18047
18136
|
crouton_Handlebars.registerPartial('directionsButton', hbs_Crouton.templates['directionsButton']);
|
|
18048
18137
|
crouton_Handlebars.registerPartial('meetingDetailsButton', hbs_Crouton.templates['meetingDetailsButton']);
|
|
18138
|
+
crouton_Handlebars.registerPartial('distance',`
|
|
18139
|
+
<div class='meeting-distance{{#unless this.distance}} hide{{/unless}}' data-id='{{this.id_bigint}}'>
|
|
18140
|
+
{{getWord 'Distance'}}: {{this.distance}}
|
|
18141
|
+
</div>`);
|
|
18049
18142
|
function convertToPunyCode(str) {
|
|
18050
18143
|
return str !== undefined ? punycode.toASCII(str.toLowerCase()).replace(/\W|_/g, "-") : "";
|
|
18051
18144
|
}
|
|
@@ -18539,6 +18632,9 @@ function MeetingMap(inConfig) {
|
|
|
18539
18632
|
retrieveGeolocation().then(position => {
|
|
18540
18633
|
filterVisible(false);
|
|
18541
18634
|
gDelegate.setViewToPosition(position, filterMeetingsAndBounds, filterVisible);
|
|
18635
|
+
gSearchPoint = {"lat": position.latitude, "lng": position.longitude};
|
|
18636
|
+
crouton.updateDistances();
|
|
18637
|
+
|
|
18542
18638
|
}).catch(error => {
|
|
18543
18639
|
console.log(error.message);
|
|
18544
18640
|
jQuery('.geo').removeClass("hide").addClass("show").html(`<p>${error.message}</p>`);
|
|
@@ -18718,6 +18814,8 @@ function MeetingMap(inConfig) {
|
|
|
18718
18814
|
coords = {latitude: position.coords.latitude, longitude: position.coords.longitude};
|
|
18719
18815
|
filterVisible(false);
|
|
18720
18816
|
gDelegate.setViewToPosition(coords, filterMeetingsAndBounds, filterVisible);
|
|
18817
|
+
gSearchPoint = {"lat": position.coords.latitude, "lng": position.coords.longitude};
|
|
18818
|
+
crouton.updateDistances();
|
|
18721
18819
|
},
|
|
18722
18820
|
showGeocodingDialog
|
|
18723
18821
|
);
|
|
@@ -18775,6 +18873,7 @@ function MeetingMap(inConfig) {
|
|
|
18775
18873
|
g_suspendedFullscreen = true;
|
|
18776
18874
|
toggleFullscreen();
|
|
18777
18875
|
}
|
|
18876
|
+
if (!modal) return;
|
|
18778
18877
|
modal.style.display = "block";
|
|
18779
18878
|
swipableModal = swipe;
|
|
18780
18879
|
modal.focus();
|
|
@@ -18820,10 +18919,14 @@ function MeetingMap(inConfig) {
|
|
|
18820
18919
|
jQuery("#table_page").addClass("hide");
|
|
18821
18920
|
jQuery("#bmlt-map").css("display", "block");
|
|
18822
18921
|
}
|
|
18823
|
-
function resetVisibleThenFilterMeetingsAndBounds(bounds) {
|
|
18922
|
+
function resetVisibleThenFilterMeetingsAndBounds(bounds, center=null) {
|
|
18824
18923
|
filterVisible(false);
|
|
18825
18924
|
const ret = filterMeetingsAndBounds(bounds);
|
|
18826
18925
|
filterVisible(true);
|
|
18926
|
+
if (gSearchPoint.lat != center.lat || gSearchPoint.lng != center.lng) {
|
|
18927
|
+
gSearchPoint = center;
|
|
18928
|
+
crouton.updateDistances();
|
|
18929
|
+
}
|
|
18827
18930
|
return ret;
|
|
18828
18931
|
}
|
|
18829
18932
|
function lookupLocation(fullscreen) {
|
|
@@ -19345,7 +19448,7 @@ function MapDelegate(in_config) {
|
|
|
19345
19448
|
var center = gMainMap.getCenter();
|
|
19346
19449
|
var bounds = gMainMap.getBounds();
|
|
19347
19450
|
var zoomedOut = false;
|
|
19348
|
-
while(filterMeetings(bounds).length==0 && ret>6) {
|
|
19451
|
+
while(filterMeetings(bounds, {"lat":center.lat(), "lng":center.lng()}).length==0 && ret>6) {
|
|
19349
19452
|
zoomedOut = true;
|
|
19350
19453
|
// no exact, because earth is curved
|
|
19351
19454
|
ret -= 1;
|