Resource icon

Standard Library by Xon v1.22.6

  • Author Author kashif
  • Creation date Creation date
  • When using "AJAX pagination with filter bar" (js/sv/lib/xf/filter.js), fix invalid javascript error message when filtering by a value without pagination wrapper
    • Noticeable on the "logo selection" page of the Selectable logo (paid) add-on
  • Partial workaround for buggy XF2.3 behavior around repository uniqueness. Does not affect call sites to \XF::repository, only Helper::repository
  • Fix incorrectly using SqlJoinTrait would swallow the actual error
  • Improve detection of excluding non-required joins when using EarlyJoinFinderTrait. This affects Multi Prefix is optimizing for matching on a single prefix, and also Extended Ignore
  • Remove usage of assert() for XF Cloud compatibility
  • Update to choices.js v11.0.4
    • Fix selected option being escaped twice (Affects MultiPrefix editing a thread prefix)
    • Fix reaching maximum item limit notice is not cleared after removing selections
    • Fix tab => direction keys handling
    • Fix performance regression when loading options after choices.js object creation (Affects MultiPrefix loading per-forum prefixes)
  • Fix javascript paginated filtering for XF2.2 support
    • Used in (paid) Threadmarks Pro add-on
  • Fix XF2.3.5 compatibility
  • Actually update choices.js to v11.0.3
Update choices.js to v11.0.3
  • Fix accessibility around tab/shift//esc key handling
  • Fix "No choices to choose from" was displayed when it shouldn't be
  • Fix max item notice handling would stop displaying when it shouldn't
  • Fix HTML comments could be displayed as part of a item's text label when they shouldn't be.
  • Update choices.js
    • Adjust font-size css to be more inline with standard XF
    • Fix select did not reset correct after a form submit.
      • Noticeable with Threadmarks Pro add-on on replying to a thread
    • Fix "no choices to choose from"/"no results found" notice did not reliably trigger
    • Fix options loader would unexpectedly clear options. This impacts the move thread function.
  • Update count down timer to only show seconds in the last 2 minutes by default, this avoid excessive page-reflows
    • Noticeable with notice time replacables add-on
Fix "Class XFES\Listener not found" from some of my add-on installers
XF2.3 support
Various .js files should work with XF2.1/XF2.2/XF2.3
Fix hasDesiredAddOnVersion could error if the target addon was in a processing state
Fix Standard Lib: Log parse_less_func debug info option not working
Backport <xf:macro name="template::macro syntax to to XF2.1
Update parse_less_color to not return CSS variables where possible
Bundle choices.js as a near drop-in replacement for select2
Enrich a select box with choices.js.

HTML:
<xf:macro template="svStandardLib_macros" name="choices_setup" />

<xf:selectrow label="Select row example" name="select_row_example"
multiple="multiple"
data-xf-init="sv-choices"
data-placeholder="{{ phrase('example')|for_attr }}"
data-max-item-count="2">
<xf:option value="1">Option 1</xf:option>
<xf:option value="2" selected="true">Option 2</xf:option>
<xf:option value="3">Option 3</xf:option>
</xf:selectrow>
  • Fix \SV\StandardLib\Helper::repo()->aliasClass() had a compatibility issue with XF2.2.13+ when the aliased class was the top-most class extension.
Top