sr-npm 1.7.846 → 1.7.848

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sr-npm",
3
- "version": "1.7.846",
3
+ "version": "1.7.848",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -238,7 +238,10 @@ async function loadJobsRepeater(_$w) {
238
238
  // 2) Load all values once and group them by referenced field
239
239
  let valuesByFieldId = groupValuesByField(allvaluesobjects, CUSTOM_VALUES_COLLECTION_FIELDS.CUSTOM_FIELD);
240
240
  valuesByFieldId.set("Location",cities)
241
-
241
+ console.log("valuesByFieldId: ", valuesByFieldId);
242
+ console.log("allvaluesobjects: ", allvaluesobjects);
243
+ console.log("allfields: ", allfields);
244
+
242
245
  // Build CheckboxGroup options for this field
243
246
 
244
247
  const counter={}
@@ -264,8 +267,12 @@ async function loadJobsRepeater(_$w) {
264
267
  }
265
268
 
266
269
  countsByFieldId.set(key, new Map(originalOptions.map(o => [o.value, counter[o.label]])));
270
+ console.log("i am here 0 , field.title: ", field.title);
271
+ console.log("countsByFieldId: ", countsByFieldId);
272
+ console.log("optionsByFieldId: ", optionsByFieldId);
267
273
  updateOptionsUI(_$w,field.title, field._id, ''); // no search query
268
274
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = []; // start empty
275
+ console.log("i am here 1 , field.title: ", field.title);
269
276
  _$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
270
277
  console.log(`#${FiltersIds[field.title]}CheckBox.selectedIndices: `, _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices);
271
278
  dontUpdateThisCheckBox=field._id;
@@ -278,18 +285,19 @@ async function loadJobsRepeater(_$w) {
278
285
  await updateJobsAndNumbersAndFilters(_$w);
279
286
 
280
287
  });
281
-
288
+ console.log("i am here 2 , field.title: ", field.title);
282
289
  const runFilter = debounce(() => {
283
290
  const query = (_$w(`#${FiltersIds[field.title]}input`).value || '').toLowerCase().trim();
284
291
  updateOptionsUI(_$w, field.title, field._id, query);
285
292
  }, 150);
286
-
293
+ console.log("i am here 3 , field.title: ", field.title);
287
294
  _$w(`#${FiltersIds[field.title]}input`).onInput(runFilter);
288
-
295
+ console.log("i am here 4 , field.title: ", field.title);
289
296
 
290
297
  }
291
-
298
+ console.log("i am here 5 ");
292
299
  await refreshFacetCounts(_$w);
300
+ console.log("i am here 6 ");
293
301
 
294
302
  } catch (err) {
295
303
  console.error('Failed to load filters:', err);