sr-npm 1.7.1227 → 1.7.1231

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.1227",
3
+ "version": "1.7.1231",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -254,7 +254,7 @@ async function handleParams(_$w,param,values) {
254
254
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = nextPageJobs;
255
255
  handlePaginationButtons(_$w);
256
256
  console.log("scrolling to secondary search input");
257
- await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).scrollTo();
257
+ await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).scrollTo();
258
258
  console.log("scrolled to secondary search input");
259
259
  });
260
260
 
@@ -265,9 +265,8 @@ async function handleParams(_$w,param,values) {
265
265
  _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.JOBS_REPEATER).data = previousPageJobs;
266
266
  handlePaginationButtons(_$w);
267
267
  console.log("scrolling to secondary search input");
268
- await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.SECONDARY_SEARCH_INPUT).scrollTo();
268
+ await _$w(CAREERS_MULTI_BOXES_PAGE_CONSTS.PRIMARY_SEARCH_INPUT).scrollTo();
269
269
  console.log("scrolled to secondary search input");
270
-
271
270
  });
272
271
  } catch (error) {
273
272
  console.error('Failed to load pagination buttons:', error);
@@ -489,6 +488,10 @@ function getValueFromValueId(valueIds, value) {
489
488
  ? withCounts.filter(o => (o.label || '').toLowerCase().includes(searchQuery))
490
489
  : withCounts;
491
490
 
491
+ // Sort alphabetically by label
492
+ console.log("filtered before sorting: ",filtered)
493
+ filtered.sort((a, b) => (a.label || '').localeCompare(b.label || ''));
494
+ console.log("filtered after sorting: ",filtered)
492
495
  // Preserve currently selected values that are still visible
493
496
  // let prevSelected=[]
494
497
  // clearAll? prevSelected=[]:prevSelected= _$w(`#${FiltersIds[fieldTitle]}CheckBox`).value;