sr-npm 1.7.846 → 1.7.847

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.847",
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
+ console.log("optionsByFieldId: ", optionsByFieldId);
242
245
  // Build CheckboxGroup options for this field
243
246
 
244
247
  const counter={}
@@ -266,6 +269,7 @@ async function loadJobsRepeater(_$w) {
266
269
  countsByFieldId.set(key, new Map(originalOptions.map(o => [o.value, counter[o.label]])));
267
270
  updateOptionsUI(_$w,field.title, field._id, ''); // no search query
268
271
  _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices = []; // start empty
272
+ console.log("i am here 1 , field.title: ", field.title);
269
273
  _$w(`#${FiltersIds[field.title]}CheckBox`).onChange(async (ev) => {
270
274
  console.log(`#${FiltersIds[field.title]}CheckBox.selectedIndices: `, _$w(`#${FiltersIds[field.title]}CheckBox`).selectedIndices);
271
275
  dontUpdateThisCheckBox=field._id;
@@ -278,18 +282,19 @@ async function loadJobsRepeater(_$w) {
278
282
  await updateJobsAndNumbersAndFilters(_$w);
279
283
 
280
284
  });
281
-
285
+ console.log("i am here 2 , field.title: ", field.title);
282
286
  const runFilter = debounce(() => {
283
287
  const query = (_$w(`#${FiltersIds[field.title]}input`).value || '').toLowerCase().trim();
284
288
  updateOptionsUI(_$w, field.title, field._id, query);
285
289
  }, 150);
286
-
290
+ console.log("i am here 3 , field.title: ", field.title);
287
291
  _$w(`#${FiltersIds[field.title]}input`).onInput(runFilter);
288
-
292
+ console.log("i am here 4 , field.title: ", field.title);
289
293
 
290
294
  }
291
-
295
+ console.log("i am here 5 ");
292
296
  await refreshFacetCounts(_$w);
297
+ console.log("i am here 6 ");
293
298
 
294
299
  } catch (err) {
295
300
  console.error('Failed to load filters:', err);