pict-section-recordset 1.9.3 → 1.9.4

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": "pict-section-recordset",
3
- "version": "1.9.3",
3
+ "version": "1.9.4",
4
4
  "description": "Pict dynamic record set management views",
5
5
  "main": "source/Pict-Section-RecordSet.js",
6
6
  "files": [
@@ -709,12 +709,18 @@ class ViewRecordSetSUBSETFilters extends libPictView
709
709
  {
710
710
  tmpProvider.upsertQuickFilterClauseValue(pField, pClauseKey, (pValue === undefined || pValue === null) ? '' : String(pValue).trim());
711
711
  }
712
- this.handleSearch(null, pRecordSet, pViewContext);
712
+ // Stage the clause into the active filter state but DON'T fetch — the
713
+ // user explicitly clicks Apply / Search to commit. Avoids two URL fetches
714
+ // (one stale, one not) when adjacent inputs change in quick succession
715
+ // (e.g. the From / To dates of a DateRange both fire `change` events
716
+ // within ~50ms — the GE-only fetch finishes after the GE+LE fetch and
717
+ // overwrites the recordset state with stale data).
713
718
  }
714
719
 
715
720
  /**
716
- * Apply a date-range quick filter: set one bound (`start`/`end`) of the field's DateRange clause
717
- * (removed when both bounds clear), then run the search.
721
+ * Stage one bound (`start`/`end`) of a field's DateRange quick-filter clause.
722
+ * Doesn't fire the search that waits for the user to click Apply / Search,
723
+ * so the From and To inputs change once each without racing the fetch.
718
724
  *
719
725
  * @param {string} pRecordSet @param {string} pViewContext @param {string} pField @param {string} pClauseKey @param {'start'|'end'} pWhich @param {string} pValue
720
726
  */
@@ -726,12 +732,11 @@ class ViewRecordSetSUBSETFilters extends libPictView
726
732
  {
727
733
  tmpProvider.upsertQuickFilterDateRange(pField, pClauseKey, pWhich, (pValue === undefined || pValue === null) ? '' : pValue);
728
734
  }
729
- this.handleSearch(null, pRecordSet, pViewContext);
730
735
  }
731
736
 
732
737
  /**
733
- * Apply an entity quick filter: set the field's entity clause to the picked value (removed when
734
- * cleared), then run the search. Called from the quick-bar picker's OnChange.
738
+ * Stage a field's entity quick-filter selection. Doesn't fire the search
739
+ * commit happens on Apply / Search.
735
740
  *
736
741
  * @param {string} pRecordSet @param {string} pViewContext @param {string} pField @param {string} pClauseKey @param {any} pValue
737
742
  */
@@ -743,7 +748,6 @@ class ViewRecordSetSUBSETFilters extends libPictView
743
748
  {
744
749
  tmpProvider.upsertQuickFilterEntity(pField, pClauseKey, pValue);
745
750
  }
746
- this.handleSearch(null, pRecordSet, pViewContext);
747
751
  }
748
752
 
749
753
  /**