@bmlt-enabled/croutonjs 3.18.5 → 3.18.8

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
@@ -13321,7 +13321,7 @@ function CroutonLocalization(language) {
13321
13321
  'toggle fullscreen mode': 'Umschalten Vollbildmodus',
13322
13322
  'close': "Schliessen",
13323
13323
  'meeting page': "Meeting Seite",
13324
- 'meeting details': "Genaueres zu Meeting"
13324
+ 'meeting details': "Genaueres zum Meeting"
13325
13325
  },
13326
13326
  "en-AU": {
13327
13327
  "days_of_the_week" : ["", "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
@@ -13699,7 +13699,7 @@ function CroutonLocalization(language) {
13699
13699
  "city" : "Ville",
13700
13700
  "cities" : "Villes",
13701
13701
  "groups" : "Groupes",
13702
- "areas" : "CSL",
13702
+ "areas" : "ASL",
13703
13703
  "regions": "Regions",
13704
13704
  "locations" : "Emplacements",
13705
13705
  "counties" : "Régions",
@@ -13707,18 +13707,18 @@ function CroutonLocalization(language) {
13707
13707
  "postal_codes" : "Codes postaux",
13708
13708
  "formats" : "Formats",
13709
13709
  "map" : "Carte",
13710
- "neighborhood": "Neighborhood",
13711
- "near_me": "Near Me",
13712
- "text_search": "Text Search",
13713
- "click_search": "Click Search",
13714
- "pan_and_zoom": "Pan + Zoom",
13715
- "languages": "Languages",
13716
- "common_needs": "Common Needs",
13717
- "meeting_count": "Weekly Meetings:",
13718
- "venue_types": "Venue Types",
13710
+ "neighborhood": "Quartier",
13711
+ "near_me": "À côté de moi",
13712
+ "text_search": "Recherche textuelle",
13713
+ "click_search": "Recherche au clic",
13714
+ "pan_and_zoom": "Panoramique + Zoom",
13715
+ "languages": "Langages",
13716
+ "common_needs": "Besoins",
13717
+ "meeting_count": "Nombre de réunions par semaine",
13718
+ "venue_types": "Types de lieux",
13719
13719
  "venue_type_choices": {
13720
- IN_PERSON: "In Person",
13721
- VIRTUAL: "Virtual",
13720
+ IN_PERSON: "Physique",
13721
+ VIRTUAL: "Virtuel",
13722
13722
  },
13723
13723
  "service_body_types": {
13724
13724
  AS: "Area Service Committee",
@@ -13728,23 +13728,23 @@ function CroutonLocalization(language) {
13728
13728
  LS: "Local Service Forum",
13729
13729
  GS: "Group Support Forum"
13730
13730
  },
13731
- "share": "share",
13732
- 'tabular': "As table",
13733
- 'google_directions': 'Google directions to meeting',
13734
- "no_meetings_for_this_day": "No meetings for this day.",
13735
- 'css-textalign': '',
13736
- 'css-floatdirection': '',
13737
- 'all': 'All',
13738
- 'menu': "Menu",
13739
- 'search for meetings': 'Search for meetings',
13740
- 'show meetings near...': 'Show meetings near...',
13741
- 'filter meetings': 'Filter meetings',
13742
- 'visible meeting list': 'Visible meetings as list',
13743
- 'enter a city or zip code': 'Enter a city or zip code',
13744
- 'toggle fullscreen mode': 'Toggle fullscreen mode',
13745
- 'close': "Close",
13746
- 'meeting page': "Meeting Page",
13747
- 'meeting details': "Meeting Details"
13731
+ "share": "Partager",
13732
+ "tabular": "Liste",
13733
+ "google_directions": "Itinéraire sur Google Maps",
13734
+ "no_meetings_for_this_day": "Pas de réunion aujourd'hui.",
13735
+ "css-textalign": "css-textalign",
13736
+ "css-floatdirection": "css-floatdirection",
13737
+ "all": "Tout",
13738
+ "menu": "Menu",
13739
+ "search for meetings": "Rechercher des réunions",
13740
+ "show meetings near...": "Afficher les réunions près de...",
13741
+ "filter meetings": "Filtrer les réunions",
13742
+ "visible meeting list": "Liste des réunions visibles",
13743
+ "enter a city or zip code": "Entrer une ville ou un code postal",
13744
+ "toggle fullscreen mode": "Basculer en mode plein écran",
13745
+ "close": "Fermer",
13746
+ "meeting page": "Page de la réunion",
13747
+ "meeting details": "Détails de la réunion"
13748
13748
  },
13749
13749
  "it-IT": {
13750
13750
  "days_of_the_week" : ["", "Domenica", " Lunedì", "Martedì", "Mercoledì", "Giovedì", "Venerdì", "Sabato"],
@@ -14791,7 +14791,8 @@ var croutonDefaultTemplates = {
14791
14791
 
14792
14792
  observer_template: [
14793
14793
  "<div class='observerLine'>{{this.contact_name_1}} {{this.contact_phone_1}} {{this.contact_email_1}}</div>",
14794
- "<div class='observerLine'>{{this.contact_name_2}} {{this.contact_phone_2}} {{this.contact_email_2}}</div>"
14794
+ "<div class='observerLine'>{{this.contact_name_2}} {{this.contact_phone_2}} {{this.contact_email_2}}</div>",
14795
+ "{{#if this.wheelchair}}<div aria-hidden='true' style='font-style:normal; font-size:x-large;'>&#x267F;</div>{{/if}}"
14795
14796
  ].join('\n'),
14796
14797
 
14797
14798
  meeting_count_template: [
@@ -16648,6 +16649,10 @@ function Crouton(config) {
16648
16649
  crouton_Handlebars.registerPartial("meetingLink", self.config['meeting_link_template']);
16649
16650
  crouton_Handlebars.registerPartial("meetingModal", self.config['meeting_modal_template']);
16650
16651
 
16652
+ let queryStringChar = '?';
16653
+ if (self.config.meeting_details_href) {
16654
+ if (self.config.meeting_details_href.indexOf('?') >= 0) queryStringChar = '&';
16655
+ }
16651
16656
  for (var m = 0; m < meetingData.length; m++) {
16652
16657
  meetingData[m]['formatted_comments'] = meetingData[m]['comments'];
16653
16658
  var duration = meetingData[m]['duration_time'].split(":");
@@ -16675,9 +16680,11 @@ function Crouton(config) {
16675
16680
  var formats = meetingData[m]['formats'].split(",");
16676
16681
  var formats_expanded = [];
16677
16682
  let formatRootServer = self.formatsData.filter((f)=>f['root_server_uri'] == meetingData[m]['root_server_uri']);
16683
+ meetingData[m]['wheelchar'] = false;
16678
16684
  for (var f = 0; f < formats.length; f++) {
16679
16685
  for (var g = 0; g < formatRootServer.length; g++) {
16680
16686
  if (formats[f] === formatRootServer[g]['key_string']) {
16687
+ if (formatRootServer[g]['world_id'] == 'WCHR') meetingData[m]['wheelchair'] = true;
16681
16688
  formats_expanded.push(
16682
16689
  {
16683
16690
  "id": formatRootServer[g]['id'],
@@ -16742,7 +16749,7 @@ function Crouton(config) {
16742
16749
  if (meetingData[m]['venue_type'] === 2 && self.config.virtual_meeting_details_href ) {
16743
16750
  meetingData[m]['meeting_details_url'] = self.config.virtual_meeting_details_href;
16744
16751
  }
16745
- meetingData[m]['meeting_details_url'] += ('?meeting-id=' + meetingData[m]['id_bigint']
16752
+ meetingData[m]['meeting_details_url'] += queryStringChar + ('meeting-id=' + meetingData[m]['id_bigint']
16746
16753
  + '&language=' + self.config.language
16747
16754
  + '&time_format=' + encodeURIComponent(self.config.time_format)
16748
16755
  + (self.config.force_rootserver_in_querystring ? '&root_server=' + encodeURIComponent(self.config.root_server) : '')
@@ -17554,6 +17561,12 @@ function getUniqueFormatsOfType(array, type){
17554
17561
  return carry;
17555
17562
  },[]);
17556
17563
  }
17564
+ Crouton.prototype.renderMeetingCount = function() {
17565
+ self = this;
17566
+ self.lock(function() {
17567
+ self.updateMeetingCount()
17568
+ });
17569
+ }
17557
17570
  Crouton.prototype.getAdjustedDateTime = function(meeting_day, meeting_time, meeting_time_zone) {
17558
17571
  var timeZoneAware = this.config['auto_tz_adjust'] === true || this.config['auto_tz_adjust'] === "true";
17559
17572
  var meeting_date_time_obj;