Repository navigation
Fixed - XON next to other libraries
Plain words are ordinary data-* attributes, and other libraries use some of the same names. A page that mixed XON
with Bootstrap or older code (the Xonry dashboard) saw data-load="app.init" next to data-require fetched as an
address, data-show="#panel" on classic &template rows reported as XON236, Bootstrap's data-toggle="tab|pill| dropdown|collapse|modal|tooltip|popover|button" bound as XON toggles, and data-table on list items loading the table
part. The fix, for any page (docs/guide.md, "Using XON with other libraries"):
- Values that can not be XON's are left alone - a debug note, not an error:
data-toggle/data-show/
data-hide/data-openwhose value is not an id, or is a Bootstrap word (tab, pill, collapse, dropdown, modal,
tooltip, popover, button, buttons, offcanvas, list) that no element has as its id (XON257, which replaces the
errorsXON240/XON241);data-loadnext todata-requireor naming a function offered withxon.use
(XON258);data-tableon anything but a<table>(XON800, now a debug note). The boot build gives
data-toggleitsaria-controls/aria-expandedonly for an element of the page, outsidedata-xon-words="off"
and only with the plain words on (wordssetting), and insidedata-xon-words="off"onlydata-xonand tags count
as XON markup for its event queue. data-xon-words="off"switches the plain words off for an element and everything inside it,"on"back on
inside; the nearest wins. Symbol tokens (data-xon) and component tags keep working (a component's own markup is
XON's).xon.config({ words: true | 'scoped' | false })(alsowindow.xonConfig.words): everywhere (default),
only insidedata-xon-words="on", or nowhere. The lint skips the plain-word checks insidedata-xon-words="off"and
reports a value XON leaves to other scripts as a warning.- Dashboard build: an element in a classic form (
data-xon="&template",&onload..., ordata-require) is left
to the classic layer - itsdata-show,data-load,data-toggleare never read as plain words. The Xonry
dashboard can drop its workaround (xon.binder.level1.bind = null).
Added
<xon-multiselect>: several values from one list - a filter field (WAI-ARIA combobox), a multi-select listbox
(aria-multiselectable,aria-activedescendant), chips that remove a value, Select all / Clear,max,required
(the field's own validity), form values asname="tags[]"(one hidden field per value,FormData.getAll), form
reset,el.value, a<select multiple>inside as the no-JavaScript fallback; eventchoose. Replaces SlimSelect.<xon-countdown>: the time left untiltoor for aduration;role="timer"named by the label and the time in
words; a status region speaks only at the milestones (milestones="1h 10m 1m 10s") and at the end, never every
second; it stops ticking while the page is hidden or the tag is off screen;paused,el.restart(), eventdone.- The part
sortable(data-sortable, docs/sortable.md): reorder a list or table rows by dragging (pointer
events: mouse, pen, touch;data-sortable-handle) or with the keyboard (Space / Enter picks up and drops, arrows and
Home / End move, Esc puts back), each step said in anaria-liveregion and the instructions as the items'
description; withdata-eachon the same element the data list is reordered (the list moves the row); event
sorted{ from, to, order }. Words in any language (data-sortable-help,-grabbed,-moved,-dropped,
-cancelled). components/xon-ui.cssstyles the two components and the sortable states; components/manifest.json lists twelve
components.
Changed
data-show-result-inis bound by the part request (likedata-loadsince 2.1.1); the core keeps the trigger and
prepares the part while the page is idle (boot build: a form submitted before the engine waits for the part). This
paid for the new core code: core 30,629 bytes gzip (limit 30,720), engine 31,126 (31,232), boot 5,926 (6,144).