Release notes
Every addition, fix, removal and rename, release by release.
v4.1.0
Added
- Store module (
vUX-store.js): shared state for the parts of a page that show the same data. Fields are declared in the initial state (a typo inset()throws),config.computedadds fields worked out from the others,subscribe(fn, fields)calls back only when a watched field changed,batch()announces several changes once, andset()returns the names of the fields that changed store.bind()keeps a Component instance or a DataView in step with a store, andstore.bindList()a keyed Component list; each applies at once, then on every change to the fields it watches, and drops itself when its target is destroyeddestroyedread-only property on Component and DataView- Runnable Store example (examples/store/): a small shop whose badge, product grid, cart and totals follow one store, with a live state inspector, subscription, batching, re-entrancy and teardown demos, and every validation error on demand
- Store guide (doc/store.md)
- SPAEngine
config.errorCallback(element, routeName, message): told when a route's content cannot be loaded (a failed link fetch, or the entry route at boot), for example to fall back to a full page load; the link is released before it runs, so the callback can retry it; only the navigation still under way is reported (a superseded request is a console warning); and an exception inbootCallbackor in the callback itself is not reported as a load failure - SPA example "Broken link": a route whose fragment is missing, showing
config.errorCallback; the example's server answers 404 for a missing fragment instead of the app shell - README section "vUX and React": a table of React's features against vUX, marking each as available, partial, a gap, or not required in vUX
Fixed
- SPAEngine Back and Forward no longer throw when the link that made the history entry is gone (it sat in content another route replaced) or had no id; the entry is restored as one with no originating link
- SPAEngine Back or Forward onto a history entry it holds no content for, belonging to another page and carrying no state (a
#sectionentry, or one made before the engine booted), loads that page instead of leaving the old content under the new address; an entry carrying another script's own state is left to that script - SPAEngine sets the page title when a link's content is mounted rather than on click, so a failed load no longer leaves the title of a page that never arrived
- SPAEngine no longer turns a failed entry-route load at boot into an unhandled promise rejection; it is reported through
config.errorCallbackor the console - SPAEngine records the scroll position again after a link's click callback runs, so a callback that moves the page (to the top, or to a section) is what Back returns to
- SPAEngine Back or Forward onto one of its own history entries whose route is no longer configured (written by an older release) loads the page from the server instead of changing only the address
- SPAEngine cancels a link's pending click callback when a newer navigation, one of its own history entries or
destroy()comes within its 200ms (theloadIntoNodeoff case included), and keeps it across a#sectionchange made right after the navigation - README "vUX and React" summary counts 11 features as not required, matching its table (it said 14)
Changed
- The guides, example pages, README, ChangeLog and change logs no longer use em dashes; each one is rewritten as a colon, comma, parentheses or a hyphen for an empty value
- README ends with a License section linking the MIT licence, and the licence's copyright line reads 2019-2026
- README no longer lists "Features to be included in v3.1.0" (Accordion, 5 Star rating creator), a plan for a version that was never released
- README "Demo" section shows a working Store and Component example and links the live example pages, replacing the old
GridBorderRectanglesnippet (an API renamed toCShapesin v4) and its externally hosted GIF - README "Documentation" section now lists every module with its guide and example page, how to run the examples, and where the release notes are, instead of saying documentation is coming soon
- The core file is now
src/vUX-core-4.1.0.js; a page that importssrc/vUX-core-4.0.0.jsdirectly must switch to the new name (or importvUX-core.js, which follows the version)
v4.0.0
Added
- domDrawer module
- $$.styleElement() feature
- slideSwitch sub module to custom form module
- blur overlayType to modalDisplayer module
- optionStateStyle to selectCustom input
- wrapAttribute property to both custom select and datepicker
- utility namespace ($$), with some modules moved to it
- return datatype option to Ajax.Create() static method
- Resizer module
- Slide utility
- SPAEngine module for redering SPA (Single Page Application) with CSR (Client server rendering)
- $$.getURLParams()
- DataView module (vUX-dataView.js): keyed data-to-DOM binding for hot-update views (targeted cell updates, node-moving sort/filter)
- Modal stacking in ModalDisplayer: a trigger inside a displayed modal opens a new layer on top; one stack shared across instances; closeAll() to unwind it
- SPAEngine named route params (;name and ;name:regex pattern segments), with route params/data passed to boot, click, history and fallback callbacks
- SPAEngine route exit hook (routes.<name>.exitCallback, falling back to config.exitCallback) fired before a route's content is replaced
- Documentation set under doc/: index plus SPA engine, progress indicator, data view, modal displayer and form components guides
- Runnable examples: SPA app with bundled dev server (examples/spa/), modal demo exercising all four effects, stacking and both overlay modes (examples/modal/), form components demo exercising all six builders (examples/form/)
- Live table page in the SPA example demonstrating DataView and the route exit hook
- CLAUDE.md project instructions and the per-change logging convention under changelog/<feature>/
- AutoWriter.stop(): cancels a run in progress and clears its timers
- Auto writer guide (doc/auto-writer.md) and runnable example (examples/autowriter/) with a live playground over every config property
- Example page design standard in CLAUDE.md (module examples are designed pages, not bare demos) and the requirement to record every change in ChangeLog.md
- Shared example design system (examples/shared/example.css): one palette and one set of primitives across every example page
- Live config controls, a hero that leads with the working component, and a validation section printing real thrown errors, on the modal, form and SPA example pages
- Resizer.destroy(): removes the module's listeners and any resize handlers it injected, and releases a drag in progress
- Runnable Resizer example (examples/resizer/): both axes at once, a playground over every config property, a consumer-supplied drag handle, all four edges, teardown, and the validation errors
- Resizer guide (doc/resizer.md): the handle contract, edge growth, bounds, styling and specificity, teardown, and the module's mouse-only and keyboard limits
- destroy() on every component: AutoWriter, Carousel, DOMDrawer, FormValidator, ListScroller, ModalDisplayer, ProgressIndicator, SPAEngine, TimeLineList, ToolTip and TouchHandler, plus each of the six FormComponents widgets, detaching the listeners, timers and animations the component started and removing the DOM it injected, so a component can be torn down without leaving anything bound to the page
- $$.attachEventHandler() now returns a handle whose detach() removes the delegated listener again; calls that ignore the return value are unaffected
- destroy() on the object returned by CShapes().animatedRectangle(): stops the animation and clears the canvas, where stop() leaves the last frame painted
- ToolTip.destroy() restores the original title attribute on every element it took one from
- Component module (vUX-component.js), build your own reusable component from your own markup: a
<template>marked withdata-v-*bindings, cloned and managed by vUX, withmount(),update(),destroy()and keyedsync() - Component bindings:
data-v-field(text),data-v-bind(attributes),data-v-on(events),data-v-ref(named nodes),data-v-showanddata-v-class(truthiness toggles): every value a plain field name, never an expression - Component nesting: a child mounted with
instance.mount()is owned by its parent and destroyed with it, andconfig.onMount/onUpdate/onDestroyare where nested vUX components are attached and released - DataView rows now accept the full binding set:
data-v-bind,data-v-on,data-v-ref,data-v-showanddata-v-classwork alongsidedata-v-field, withconfig.handlersandconfig.formattersto drive them - Component guide (doc/component.md): the binding contract, both template forms, keyed lists, nesting, the custom-element recipe, and the full error list
- Runnable Component example (examples/component/): every binding under live control, keyed lists keeping their nodes through a sort, nesting with a ToolTip attached and released, and every validation error raised on demand
- Carousel config changes on a live carousel: delay, speed, slideEffect, buttonStyle and touchResponse now take effect after initialize() and start() instead of only before them
- Carousel guide (doc/carousel.md): the required consumer CSS, every config property, the generated markup, and the error list
- Runnable Carousel example (examples/carousel/): a live playground over every config property, two carousels with independent dot styles, swipe and hover pause, and the validation errors
- TimeLineList guide (doc/timeline-list.md): the attribute contract, the three specificity tiers, centring custom markers, the generated markup, limits, and the error list
- Runnable TimeLineList example (examples/timelinelist/): a live playground over every data attribute, three differently-styled lists on one instance, refresh() for lists that arrive later, and the validation errors
- ListScroller config.scrollSpeed and config.paddingRight now work: scrollSpeed is the duration of one button scroll in milliseconds (0 jumps), and paddingRight leaves room after the last item inside the scroll range
- ListScroller buttons, inactiveButtonClassName, wrapperStyle, hasButtons and the paddings can be changed on a running scroller
- ListScroller buttons get aria-disabled matching their inactive state
- ListScroller guide (doc/list-scroller.md): the container, list and button contract, every config property, the markup it produces, limits and the error list
- Runnable ListScroller example (examples/listscroller/): a live playground over every config property, button state following swipes, resizes and new items, a buttonless row, and the validation errors
- Skeleton module (vUX-skeleton.js): placeholder screens derived from the template you already wrote for the real content: fields become text bars, images media blocks, controls filled blocks, and your card, padding and grid are kept, so the skeleton has the layout of what replaces it
- Skeleton
data-skeletonattribute:text:N,circle,circle:<size>,rect,rect:<w>/<h>,media,keepandskipoverride what an element is inferred to be - Skeleton timing:
config.delaykeeps a fast load from flashing a skeleton at all,config.minDurationkeeps a slow one from flickering off, andhide()returns a promise so you render once it is down;during(promise)wraps the whole flow - Skeleton mask mode: with no template, masks the container's existing content in place for a refresh, and puts the same nodes back afterwards
- Skeleton guide (doc/skeleton.md): the two modes, what becomes what,
data-skeleton, timing, styling through custom properties, accessibility, limits and the error list - Runnable Skeleton example (examples/skeleton/): a feed reloading at three speeds, a template beside its rendered card and derived skeleton, a playground over every config property, a with/without timing comparison, mask mode with a byte-for-byte check, and the validation errors
- SketchPad module (vUX-sketchPad.js): a canvas drawing surface, extracted from the Sketchpad whiteboard app: rectangles, ellipses, diamonds, triangles, pentagons, hexagons, stars, lines, arrows, freehand pen, text, font icons and images, with selection, marquee, move, resize, duplicate, delete, undo/redo, wheel zoom and pan
- SketchPad connectors: drag from a shape's border to another shape's to draw an arrow bound at both ends that re-routes when either shape moves or resizes; pressing Ctrl while drawing pins a joint, which curves the connector at that point
- SketchPad scene as data:
elementsreturns the scene as plain JSON andload()restores it (optionally as an undoable step);exportCanvas()renders it cropped to its content at any scale and background for PNG export or thumbnails - SketchPad constrained mode:
config.toolslimits the tools offered,config.panZoom = falsefixes the view,config.boundedkeeps every shape inside the surface andconfig.maxElementscaps the scene, for a pad that marks out one region over an image - SketchPad stamps and icons:
createStamp()turns SVG source into a stamp the stamp tool places, with black-only SVGs retinted by the fill colour;iconarms the icon tool with a glyph from any loaded font - SketchPad works with touch and pen as well as the mouse, and several pads can share a page: pointer events are the canvas's own and keyboard shortcuts go to the focused pad (or the whole document, with
config.keyboardScope) - SketchPad guide (doc/sketch-pad.md) and runnable example (examples/sketchpad/)
- FontSplash module (vUX-fontSplash.js): a splash screen whose loader is a word set in your own font, filled with a gradient that flows through the letters while they fade in a wave;
animationalso offersflow,breatheandnone - FontSplash waits for its font:
config.fonttakes a family the page declares, or a face of its own from a URL, a CSS src list or an ArrayBuffer; the backdrop goes up at once and the word appears when the font is ready orconfig.fontTimeoutruns out, withfontStatusreporting which - FontSplash covers the whole viewport with
new FontSplash(), or a single element withnew FontSplash(el); thevux-fs-cloakclass on<html>hides the page from its first paint until a full-screen splash is up - FontSplash progress mode:
setProgress(0…1)fills the word with the gradient from the left over a flat track, andsetProgress(null)returns to indeterminate - FontSplash timing:
config.delaykeeps a fast load from showing a splash at all,config.minDurationholds the word once it has appeared,hide()returns a promise that resolves after thefade,liftorzoomexit, andduring(promise)wraps the whole flow - FontSplash guide (doc/font-splash.md) and runnable example (examples/fontsplash/)
- SPAEngine
config.cacheVersion, ties the engine's sessionStorage cache to a release: when the value changes (e.g. a build id read from a version.json), cached route content is emptied, atinitialize()or at once on a running engine, so users stop seeing fragments from before a deploy - SPAEngine
clearCache(): empties every route, page and section the engine has cached, leaving the rest of sessionStorage (such as auth state) alone - Release section in the SPA example (examples/spa/): boots from a version.json, sets a new cacheVersion or calls clearCache() on the live engine, and shows the engine's storage keys emptying
- SPAEngine
loggedInproperty: the app tells the engine whether a user is signed in (set it beforeinitialize()on every page load,trueafter sign-in,falseon sign-out), and protected routes read it - Minified build: ./minify.sh writes a minified copy of the library (about 60% smaller JS) to dist/<version>/ with the same file layout, so a page switches to it by pointing data-library-root and its imports at that folder
- Core utilities guide (doc/core.md):
$$, every$$.sm()manipulator, slide/flip/animate/filter in detail, delegated events, data, time and environment utilities, the global helpers and built-in extensions, the error list, and a table of the calls known to be broken in this release - Runnable core utilities example (examples/core/): a gradient headline turned by
animate(), a flip card, a selection board with every class and visibility method, slides, an easing lab, filters, overlays, delegated events, a live countdown, the built-in extensions evaluated on the page, and the validation errors and known defects triggered on demand - ModalDisplayer "drop" effect: the modal drops from above the viewport into place and rises back up on close; set
config.effect = "drop" - ModalDisplayer "slideLeft" and "slideRight" effects: the modal slides in sideways and stays docked to an edge as a full height panel instead of centring: slideLeft enters from the right, docks right and leaves back out to the right; slideRight mirrors it on the left
- MessageBox module (vUX-messageBox.js): notification messages posted with
show()or the typed shorthandsinfo(),success(),warning()anderror(); each stays forconfig.duration(0 keeps it until closed) and leaves on its own - MessageBox effects:
drop(the default) falls from the top of the window and rises back out,slideLeft/slideRightslide in from an edge and leave through it, plusfadeandnone; the movement is the core slide utility's, and under reduced motion every effect becomes a fade - MessageBox alignment:
config.alignmentlands messages on the left, centre or right; messages stack without jumping, every instance on a page shares the same lanes, and on a narrow window all of them share the centre lane - MessageBox timer pauses while the pointer is over a message or focus is inside it, with a countdown bar that holds with it; plus a close button, close-on-click,
maxVisible, light and dark themes, andonShow/onClosecallbacks that report why a message closed - MessageBox handles:
show()returns a handle whoseclose()removes the message when your code decides, and content may be an element carrying your own controls - MessageBox guide (doc/message-box.md) and runnable example (examples/messagebox/)
- Marquee module (vUX-marquee.js): an endless scrolling strip from a container whose items are written once; it clones them until any width is covered, measures one loop to the pixel so the seam never shows, and rebuilds on resize or when
refresh()adopts new items - Marquee config:
speedin pixels per second,direction(leftorright, reversing in place),gap,fadefor a masked edge fade,pauseOnHover(keyboard focus counts too) andrespectReducedMotion; every setting applies to a running strip without restarting its loop - Marquee
pause(),play(),refresh()anddestroy(), pluspausedandmovinggetters; clones are hidden from screen readers and the tab order and carry no ids, but stay clickable - Marquee guide (doc/marquee.md) and runnable example (examples/marquee/)
- CShapes rectangles take
config.radiusfor rounded corners, on bothfixedRectangle()andanimatedRectangle(); the line keeps one even thickness all the way round - SPAEngine mounts a route only once the stylesheets its fragments carry have loaded: the content and every section appear together, already styled, while the previous route stays on screen untouched until then; at boot the page stays hidden until the first route is mounted
- SPAEngine
config.styleTimeout: the longest, in milliseconds, a fragment waits for its stylesheets before it is mounted anyway (default 3000, 0 to not wait) - SPAEngine scroll restoration (
config.restoreScroll, on by default): back/forward and a reload return to the scroll position each history entry had, instead of keeping whatever position the previous route left - SPA example section "Back to where you were": a live view of the engine's scroll state (current position, the position saved in the history entry, history length, the last restore) and a button to leave from the current spot and come back with Back
- Prompt module (vUX-prompt.js):
alert(),confirm()andinput()dialogs that resolve a Promise with the answer, replacing the blocking native calls with a styled, themable dialog that sits above every modal on the page and keeps Escape from reaching the page underneath - Prompt
dangeroption: a red OK button and focus starting on Cancel, so a stray Enter cannot confirm a destructive action - Prompt input validation:
required,maxLength,inputTypeand avalidate()function that may be async, with OK held off while it runs and the refusal shown under the field - Prompt queue: dialogs asked for while another is up, from any instance, open in turn instead of on top of each other
- Prompt guide (doc/prompt.md) and runnable example (examples/prompt/): each dialog one click away, a playground over every config property with a log of each answer, a guarded delete, an async-validated rename, two instances sharing the queue, and the validation errors
- FormValidator
validate()returns true when the field passes and false when it fails - FormValidator
minSizeandmaxSizerules ("maxSize:2MB"; B, KB, MB or GB) checked against every selected file; they were listed as supported but did nothing - FormValidator
callBackfunctions receive the field as a second argument - FormValidator default loader: a ring spinner when
config.progressIndicatorStyleis not set (the loader used to be invisible without it) - FormValidator guide (doc/form-validator.md) and runnable example (examples/formvalidator/)
- ToolTip
config.html: tips are plain text by default;truesets them as HTML - ToolTip
tipBoxStyles.backgroundColor, alongsidearrowColorandfontColor; the arrow follows the background unlessarrowColoris given - ToolTip keyboard support: focusing a member shows its tip and blur hides it; the tip has role="tooltip" and the shown member points at it with aria-describedby
- ToolTip guide (doc/tool-tip.md) and runnable example (examples/tooltip/)
- CShapes
arc(): a progress ring drawn withdraw(canvas, progress, label), starting at 12, 3, 6 or 9 o'clock in either direction, with the percentage and a label in the middle, round or butt line caps, a radius that fits the canvas, and an optional animation from the last value shown (duration,easing,callback,stop(),destroy()) - CShapes guide (doc/c-shapes.md) and runnable example (examples/cshapes/)
- CShapes
arc()fonts reset to the radius-scaled default when set tonullor""
Fixed
- modal multiple display bug
- draw() call on backward compatibility (> ver 2.0)
- datepicker auto place issue
- 404 on loading core.css error
- SPAEngine boolean link attributes ("false"/"0" no longer read as true), addToHistory opt-out actually enforced, and per-link flags no longer leaking into subsequent navigations
- SPAEngine history storing the configured path literal instead of the actual requested URL, so dynamic routes now survive refresh/bookmark
- SPAEngine dynamic pattern matching treating any route with a different segment count as a match (undeclared status variable)
- ProgressIndicator default progress space never resolving; showProgress/hideProgress now callable without an element when a default space exists
- ProgressIndicator crawl timer leaking in hideProgress, and a finished style 3 bar animating backwards from 100% on re-show
- ModalDisplayer nesting destroying the first modal's state and leaving the page frozen (per-modal state now lives on stack layers, nothing addressed by global id)
- ModalDisplayer: ReferenceError on tall modals, tall modals unreachable below the fold, overlayStyle assigned to a read-only style object, openProcessor firing zero or two times depending on effect, per-trigger widths and blur leaking past close, host page scroll-behavior rewritten permanently, backface-visibility typo in the flip effect
- Page behind an open modal reflowing dramatically on every open/close (body no longer taken out of flow)
- Modal overlay missing its left:0 horizontal anchor
- Module registry: deduplicated spaEngine entry; added missing formValidator, progressIndicator, toolTip, domDrawer and dataView entries
- datePicker missing FormValidator and ListScroller imports (crash on opening default-range pickers and on building datetime-local pickers)
- datePicker daysToolTip broken by handler variable typo
- datePicker February day count in leap years (and upgraded to the full Gregorian leap-year rule)
- datePicker decade-series scroll buttons dead (wrong ListScroller config property name, nonexistent properties, missing vListBt button classes); the setup error also broke the open picker's z-index raise
- datePicker daysToolTipProperties validation never running
- select config.optionGroupStyle throwing on set; the style is now applied to optgroup label rows
- select and datePicker sizeAttribute/wrapAttribute setters validating the message instead of the value
- select dropdown and datePicker panel auto-placement using the last-built widget's dimensions instead of each widget's own
- slideSwitch.refresh() and file.refreshFile() referencing functions from other builders
- slideSwitch crash when the label data attribute is absent; missing labels now default to "On"/"Off" instead of rendering "undefined"
- file input crash on selecting a file with fileToolTip disabled, and on cancelling the file dialog
- radio build crash when the input has no sibling element
- checkbox widgets collapsing to zero height (static height:auto overriding the generated size)
- radio buttons invisible (missing content on the circle-drawing ::before rule)
- configured component styles silently losing CSS-cascade ties to formComponents.css defaults; generated stylesheets are now anchored to the wrapper base class so configured styles override defaults
- checkbox size error message naming the radio property; README FormComponents import example pointing at vUX-formValidator.js
- AutoWriter '~n~' delay directive throwing and halting typing under the default configuration (it dereferenced a caret node that only exists when showCursor is on)
- AutoWriter freezing and then crashing the tab on an unterminated '~' or '*' directive (unbounded scanners); directives are now validated when writeText() is called, not when they are reached
- AutoWriter instances unusable twice: a second writeText() ignored its arguments, wrote the literal string "undefined" and retyped the previous string into the previous element
- AutoWriter collection mode unreachable: writeText() validated argument 1 as an element before consulting the type test, so every NodeList was rejected and the whole "multiple" path had never run
- AutoWriter deleteText() erasing n+1 units, accepting a non-integer count and then erasing for ever, and (on a cursor-enabled target) removing the caret instead of the text
- AutoWriter erasing by popping innerHTML characters, which shredded tags a byte at a time; typing and erasing now work on DOM nodes
- AutoWriter inline 'n' racing its own erasing, a trailing directive writing the literal string "undefined", and '~n~' miscounting a delay written with leading zeros
- AutoWriter partial config.cursorStyle blanking the members it did not name; callback-less runs relying on setTimeout(null); blink and erase timers leaking on teardown
- Resizer resizing nothing at all: a mousedown on a handle threw before any state was set (two misspelled variable names), so the component never responded to a drag
- Resizer sizing the element to the pointer's distance from the viewport edge rather than to how far the pointer had travelled: the element snapped to the cursor on the first move, ignored where inside the handle it was grabbed, and was skewed by its own position on the page
- Resizer handles on the left or top edge shrinking the element when dragged outward; both axes now grow in the direction the handle faces
- Resizer config.callBack throwing on assignment, and breaking every drag even when left unset (the callback variable was never declared)
- Resizer config.myResizeHandler being validated and stored but never used: a consumer-supplied handle now actually drives the resize, and needs no vUX marker classes when direction is 'x' or 'y'
- Resizer handles having no size, position or cursor: assets/css/resizer.css is now loaded by the module instead of never being linked
- Resizer x and y handle styles overwriting one another, an empty y style blanking a configured x style, and resizeHandlerProperties.styles.both being accepted but ignored
- Resizer clearing the drag highlight from the first handle in the document rather than the one being dragged, and tracking it with toggle() so it drifted out of step over successive drags
- Resizer silently ignoring unknown or miscased resizeHandlerProperties keys, never enforcing its key-count limit, throwing a bare TypeError on an empty object, and naming 'position' in every error raised while validating 'styles'
- Resizer reporting a missing target selector only later as an internal TypeError, and appending duplicate handles, listeners and stylesheets when initialize() was called twice
- Resizer leaving a dead <style> element behind on every rebuild when a handle style is configured through config.resizeHandlerProperties.styles
- Carousel crashing with "TouchHandler is not defined" on its default path; touch support is enabled by default, so initialize() failed on any page that did not explicitly turn it off
- FormValidator crashing with "Cannot read properties of null" in initialize() under the default configuration, because the progress loader was centred before being inserted into the page
- ModalDisplayer's shared Escape, away-click, resize and transition handlers staying bound to the document after every displayer on the page had been torn down
- Carousel's autoplay interval continuing to run after the carousel was removed from the page
- ProgressIndicator's crawl interval continuing to write to a progress bar that had been removed
- DataView.destroy() leaving the view marked as initialized, so re-initializing a destroyed view silently did nothing instead of reporting that it had been destroyed
- Carousel dots having no height, so they were invisible and unclickable by default: assets/css/carousel.css is now loaded by the module instead of never being linked
- Carousel autoplay jumping back after a dot click or a swipe while marking a different slide active, so the slide on screen, the active slide and the active dot drifted apart
- Carousel dot clicks on one carousel moving the active dot of another carousel on the same page
- Carousel finding no slides, and building no dots, when its viewport had no id attribute
- Carousel swipe and drag throwing on every gesture, because TouchHandler moved an undefined
viewportinstead of the frame's viewport - Carousel swipes being taken over by page scrolling on phones, and the grab cursor never showing: TouchHandler now links assets/css/touchHandler.css, which also sets touch-action on the swipe area
- Carousel autoplay stopping for good when config.speed was 0, or when the carousel was hidden partway through a slide
- Carousel pressing or hovering over a slide in motion marking it finished early, which let autoplay start the next slide from the wrong place
- Carousel config.buttonStyle applying only to the first carousel on a page, and being overridden by the default dot colours
- Carousel config.buttonStyle errors reading " of strings" or " of either 1 or 2 element(s)" without naming the property, and an empty array being accepted
- Carousel replacing the container's own onclick, onmouseenter and onmouseleave handlers
- Carousel start() before initialize() throwing on every autoplay tick; it now reports the misuse once
- TimeLineList autoBuild() throwing a SyntaxError, and the resize handler throwing on every resize, whenever config.dataAttributes had no smallView entry
- TimeLineList markers, labels and the label column never appearing: assets/css/timeLineList.css is now loaded by the module instead of never being linked
- TimeLineList labels drawn off the left edge of the page; the default stylesheet now gives the list room for its 100px label column, and drops that margin in the stacked layout
- TimeLineList lists picking up another list's styles: two instances on a page both used vtl0, vtl1…, and a list built by refresh() reused the class of the first list built
- TimeLineList lists added through refresh() getting no styles of their own, and not stacking at narrow widths until the window was next resized
- TimeLineList writing "{null}" rules for every list missing an attribute, and for attributes that were never configured
- TimeLineList resize handling re-evaluating every timeline on the page, including lists built by other instances
- TimeLineList refresh() building lists before autoBuild() had run, or after destroy(), without the resize listener and leaving them out of teardown; it now reports the misuse
- TimeLineList config.dataAttributes accepting non-string attribute names, half-applying an assignment that failed partway, and reporting "more than 4 entries" for a limit of 5
- TimeLineList config.className accepting a value with a leading dot or spaces, which later failed as an invalid selector inside refresh()
- TimeLineList error messages misspelling "incomplete", "supplied" and "supported"
- ListScroller moving less than a full step, or not at all, after reaching the end of the row or after two quick presses; every press now starts from the real scroll position and two presses always move two steps
- ListScroller rows extending into empty space past the last item; the list is now as wide as its items instead of item count × scrollSize
- ListScroller containers collapsing to zero height unless the consumer gave them one; the list now sits in normal flow
- ListScroller button state going stale when the container was resized on its own, when items were added, or when its stylesheet arrived after onScroller()
- ListScroller ignoring clicks on an icon or other element inside a button
- ListScroller re-enabling the buttons after offScroller() whenever the row was scrolled by touch or trackpad
- ListScroller offScroller() throwing when config.hasButtons was false
- ListScroller replacing the container's whole inline style with wrapperStyle, and its stylesheet forcing the container to width 100% so a wrapperStyle width had no effect
- ListScroller destroy() leaving the scroll classes on the container, wrapperStyle in place, and its classes and cursor on the buttons
- ListScroller accepting a list outside its container, the same button twice, a scrollSize of 0, negative or NaN, a negative scrollSpeed and an inactive class name with spaces, each of which failed later instead of at the assignment
- ListScroller config.scrollSpeed's error saying it "must be an array"
- FormComponents datePicker destroy() now also tears down its decade-series scroller
- FormComponents datePicker decade arrows dead on every picker but the first one opened when several pickers with long date ranges share one builder; picking a decade or going Back on a later picker also parked or re-armed the first picker's arrows instead of its own
- Component sync() without config.onMount now returns the instances it mounted, and instances() and destroyAll() reach rows it mounted; before, sync() returned undefined for each new row and destroyAll() left those rows in the page
- SPAEngine page sections that were not yet cached now load: the first visit to a route whose page sections had not been prefetched threw instead of fetching them, and when it got further it fetched the wrong URL and never mounted the result
- SPAEngine protected routes now work: the login check never returned a value, so every protected route redirected even for a signed-in user, and the redirect went to
/undefinedinstead of the route'sauthURL - Slide with
use: "position"now animatesrightandbottomas well asleftandtop: an element slid by itsright(positionProperty: "right") used to jump to its end position instead of sliding slide.toRight()now honourspositionProperty, astoLeft()does: it always movedleft, so a right-anchored element couldn't be slid with itslide.toRight()now applies the same defaults astoLeft()whenuse,positions,dimensionsorpositionPropertyis left out; before, leavinguseout ran the position branch with no positions and threwslide.toRight()withuse: "dimension"and no end width now opens to the content's width instead of throwing a ReferenceErrorslide.toLeft()andslide.toRight()withuseleft out now animate the width: the element was given the position class beforeusedefaulted to"dimension", so the width change wasn't transitioned- Position slides now start from
positions.x[0]every time: an element that wasn't already there, such as one just unhidden, animated to the start position instead of jumping to it, so a slide-in appeared without moving $$.sm(el).scroll.x()andscroll.y()without an argument now work and keep the scrollbar; they used to throw unless giventrue$$.sm(el).makeActive(className)without a parent now clears the previously active element; before, every element ever made active stayed active$$.sm(el).hasParent()andgetParent()accept a name with a leading.or#;hasParent(".menu")used to throw andgetParent("#menu")never matched$$.scroll.direction()now returns the last scroll direction and distance instead of throwing a TypeError$$.IO.save(data, { name, type })now downloads the file; every call used to throw a ReferenceError. JSON data that isn't a string is serialised for youbrowserResizeProperty.modeand.changenow report the last resize instead of throwing a ReferenceError, and callingbrowserResizeProperty()again adds no second listenercamelToCSSstandard("fontSize")now returns"font-size"instead of"fontundefinedize"validatePhoneNumber(value)now checks the value it is given; it used to throw a ReferenceError$$.randomString(n)now always returnsncharacters drawn from all 62 letters and digits; it sometimes returned fewer, repeatedTand never producedjorY. It and$$.randomInteger()now throw for non-integer arguments, as their messages always saidScreenBreakPointnow accepts either breakpoint on its own, or no argument, using the defaults for what is left out; leaving one out used to throw$$.browserType()now recognises desktop and iOS Safari, Opera'sOPRagent and headless Chrome, and reportsname: "unknown"for an agent it doesn't know instead of throwingflip.card()withaxis: "z"now turns the card; it wrote an invalid transform.frontClass,backClassandaxisare now each checked as stringsfilter()with options now cleans up after its pulse: the transition and listener it added are removed, so laterfilter()calls on the element are no longer transitioned and reset tonone.callBackruns on a timer instead of freezing the page,durationdefaults to 200ms when left out,initworks with a single filter name, and an unsupported single name now throws instead of being ignoredslide.toRight(),toTop()andtoBottom()now throw on invalid options, astoLeft()does, instead of logging the error and running anyway.toLeft()errors no longer carry a doubledError: Error:prefix, an invalidpositionPropertyis named in a full message, andpositionswithout the axis a direction needs is now rejectedslide.toTop()andslide.toBottom()now defaultuseandpositionsas the other directions do; leavinguseout used to throwslide.toBottom()withdimensionsbut no end height now opens to the content's height; the unitless height it wrote was ignored$$.ajax(options)no longer requires a return type; left out, it sendsAccept: */*$$.sav(selector)without"visible"or"hidden"now throws a descriptive error instead of a bare TypeError- The overlay from
addOverlay()now covers a padded host from its edge and follows itsborder-radius, andcore.cssno longer turns every<div>child of the host into a full-size absolute layer - ModalDisplayer content no longer blinks as the flip, box, drop, slideLeft and slideRight effects finish: the modal that animated in is the one left on screen, so typed and autofilled form values and id-based styles stay put instead of dropping out for a few frames, and the closing effect plays with those values too
- ModalDisplayer no longer snaps wider or narrower as the flip, box, drop and split effects finish: the effect is now sized to the width the modal is shown at (its configured width) rather than the hidden modal's natural content width, so its height matches too
- ModalDisplayer's split effect now shows the modal's right side in its right half; both halves used to show the left side, so the two halves never formed the modal until the effect ended
- ModalDisplayer's split effect no longer shows browser-autofilled fields in one half and empty fields in the other; the halves' copies of the form are no longer autofilled while they move
- CShapes
animatedRectangle()accepts a numericiterationCount; any number used to throw a ReferenceError, so only"infinite"worked - CShapes rectangles are sharp on high-density screens; the canvas is now sized by the device pixel ratio instead of drawn at CSS-pixel resolution and stretched
- CShapes
animatedRectangle()no longer re-strokes every earlier frame's rectangle on each frame, so a cycle no longer gets slower the longer it runs - Calling
draw()again on a runninganimatedRectangle()restarts it; it used to start a second loop alongside the first, doubling the speed, and astop()that landed on a cycle's last frame was ignored - A repeating
animatedRectangle()no longer jumps at the start of each cycle when its dash pattern does not divide 100px (the default[10, 2]did); each cycle now moves a whole number of dash periods animatedRectangle()with an easing that does not end on exactly 1 now finishes its cycle and runs its callback, and adurationof 0 completes its cycles instead of stopping without the callbackanimatedRectangle().draw()no longer requires the canvas to have an id$$.sm(el).animate()no longer starts below its start value: the first frame's time fraction could be negative, so the first value drawn was slightly understartValue(or under the remembered end of the previous run)- SPAEngine no longer paints a fragment before its stylesheets arrive: a section or content mounted on boot, click or back/forward used to show unstyled for as long as its CSS took to load, so an image with no size of its own (such as a header logo) could fill the screen
- SPAEngine flush selectors are emptied when the new route is mounted, not as soon as the link is clicked, so a header no longer goes blank while the next route loads
- SPAEngine: after back/forward, clicking the link that last loaded the content node loads its route again; it used to be ignored, leaving the history entry's content under the clicked route's sections
- SPAEngine: when two clicks race, only the last one is mounted; a slower earlier one used to mount its sections over the later route's
- SPAEngine: a section that fails to fetch is logged and skipped, and the rest of the route still mounts; a failed or fallback response is no longer cached as the section
- AutoWriter
stop()anddestroy()now cancel a callback that is waiting outcallBackDelay; it used to run anyway, so a callback that called the writer again threw "called on a destroyed AutoWriter" - SPAEngine no longer adds a second history entry for the entry page at boot, so the first Back press leaves the page instead of appearing to do nothing; the boot entry also keeps the URL's query and
#hash, which used to be dropped - SPAEngine: a route fragment that fails to load is reported in the console (as a failed page or section already was) and its link can be clicked again; it used to throw a ReferenceError while building a blocking alert, and leave the link stuck
- ProgressIndicator: the first linear bar shown in a page now animates; it used to jump straight to its first stop, and a style 3 bar then never moved on to its slow and crawl phases (later bars were fine)
- FormValidator
required,minLength,maxLengthandemailreported an error on every valid value in email, password, number, tel, url and other non-"text" inputs, and in inputs with no type attribute - FormValidator no longer leaves an old error showing after the field is corrected and validated again
- FormValidator writing a message straight after a clear (a click into the field, then a failed check) no longer loses the new message when the old one finishes fading
- FormValidator message text gets its colour even when no transition runs (reduced motion, a hidden form); it used to stay transparent
- FormValidator changing a field's message type or side (error to warning, bottom to right) restyles or moves the box instead of keeping the old one
- FormValidator only error messages make
formOk()false; a warning or success message (for example "Username available") used to block submission - FormValidator forms on the same page no longer affect each other: a click in one form no longer clears another form's messages, each form's messages take that form's own colour variables, and a feedback box or loader in one form is no longer emptied or removed by another
- FormValidator
submit()no longer leaves the form locked behind its overlay when the server answers anything other than 200, 404, 405, 419 or 500, or cannot be reached: any 2xx counts as success and every other answer shows an error feedback box - FormValidator
submit()sends itsheadersargument (it was ignored), sends the fields in the query string for GET (they were dropped), ignores a second call while a request is pending, and checks its arguments before locking the form - FormValidator feedback button: no longer submits the form it sits in, acts on click instead of on focus (tabbing onto it used to dismiss the box, and in Safari clicking it did nothing), and
showFeedback()called on its own now shows the overlay it lives in - FormValidator feedback box: a warning is centred when
feedbackModalStyleshas no warning entry, andlabelswith only a title (or only a button label) keep the other default instead of leaving it empty - FormValidator loader: hidden while the feedback box shows, and no longer duplicated on every submission
- FormValidator custom progress animation:
onReceiveruns once per request; it used to run on every message written, including every failedvalidate() - FormValidator rule keys may contain colons (
"match:/^a:b$/"),matchkeeps its regex flags and escaped slashes,extis case-insensitive,fullNamecopes with double spaces,trimruns beforerequired, and acallBackreturning false writes its first message - FormValidator rule messages containing ":-" are kept whole; only a leading
e:-,w:-ors:-sets the type - FormValidator
extwith no file chosen,requiredon a select with no options, andmessage.write()with a NodeList no longer throw; radio groups fromform.elementsare accepted - FormValidator
logServerError()defaults each entry's location to bottom and writes server messages as text - FormValidator
destroy()also removes the message boxes and the classes and attributes it put on fields - FormValidator config:
progressAnimationCallbacksneeds bothonSendandonReceive(a missing one crashed later),loaderLocationcan be set beforesubmitButtonClassand "form" no longer needs it, and an unsupportedsubmissionMethodthrows instead of being ignored - FormValidator default warning and success colours are readable (dark text on a light fill); the warning used orange text on dark brown
FormValidator.format.currencyField()keeps decimals (1234.56 became "1,234,.56") and always returns a string;wordSeperator()validates its repeat count and no longer adds a document listener per call;integerField()rejects non-text inputs as documentedvalidateEmailAddress()(used by the FormValidatoremailrule) accepts sub-domains, hyphenated domains and "+" in the local part- ToolTip
on()works (it threw a ReferenceError),off()works on members set up byinitialize()(it threw "No tool tip applied") and hides a tip that is showing - ToolTip shows when the pointer is over a child of a member (an icon in a button) and stays up when moving onto one
- ToolTip
tipBoxStylesvalidates its keys and values (the checks never ran, and more than two keys threw a ReferenceError), no longer writes "undefined" colours, and applies when set afterinitialize() - ToolTip stays inside the window: fixed to the viewport, flipped below the pointer near the top edge and pushed in from the side edges, with the arrow kept on the pointer
- ToolTip text is set as text, so a title containing markup can no longer inject HTML
- ToolTip hides on scroll, Escape or a touch elsewhere, so a tip opened by a tap no longer stays up
- ToolTip error for a bad
classNamenames ToolTip instead of datePicker - ToolTip
refresh()no longer turns back on a member switched off withoff() - ToolTip keeps a member's own
aria-describedby, adding the tip's id while it shows; it used to overwrite and then remove it - ToolTip instances on the same class: destroying one no longer removes the tip box and the titles from under the other, and
config.htmlset on either applies - CShapes
draw()on anything but a canvas throws a clear error instead of "getContext is not a function" - FormValidator
minLength/maxLengthwithout a whole number ("maxLength:abc") throw instead of passing every value, and a click on markup inside the feedback button's label works - FormValidator
destroy()during a pendingsubmit()aborts the request; the answer used to arrive at the torn-down form and throw - FormValidator
showFeedback()ends the loading state (button loader, customonReceive), so a custom animation no longer keeps running behind the feedback box - FormValidator
customStylespassed with a message update apply to the box already showing, and long messages under a field wrap instead of running off a narrow screen - ToolTip keeps its 320px maximum width (or your own
max-width) on wide windows; an inline width set from the window size used to override it - ToolTip switching
config.htmlre-renders a tip that is already showing, andconfig.classNamemust be a single class name - CShapes rectangle error messages name the property (they said only "Please provide a string" or "a real number"), the
originmessage no longer reads "arrayof", and an unknown easing lists the valid ones - CShapes
animatedRectangle()withduration0 paints once instead of running a frame loop that calledcallbackon every frame - SketchPad no longer gets stuck panning: if focus left the pad or the browser window while Space was held, the missed keyup left space-to-pan on, so every drag moved the view whatever tool was active
Removed
- colorOverlayStyle in modalDisplayerObj
- config.smallView property, to be set using attributes for individual elements, leading to the addition of config/smallViewAttribute property for setting the attribute to be used
- loadProgressIndicator Removed, as IO.dowload() send download status, to be used by user for their needs
- imageManipulator module removed, now handled by $$.sm.filter()
- validator.config.progressIndicatorStyle
- DOMDrawer module (vUX-domDrawer.js and assets/css/domDrawer.css): replaced by SketchPad, whose rect tool with
config.tools = ["select", "rect"],config.maxElements = 1andconfig.boundeddoes what DOMDrawer did, plus move, resize, delete, undo and touch input
Changed
- DataView is now built on the shared template-instancing engine (src/componentEngine.js) that backs the Component module; its API, behaviour and error messages are unchanged
- DataView.updateRow() now writes a merged copy back into the model rather than mutating the row object in place, so an array held from getData() is no longer changed underneath you
- AutoWriter '|' now inserts a real <br> element, erasable as a single unit, instead of a parsed "<br/>" string
- AutoWriter deleteText() now erases from the '.vAutoWriter' span when the target holds one, so the same element can be given to writeText() and deleteText()
- All four example pages redesigned onto the shared system; the SPA dev server additionally maps /shared/ to examples/shared/
- SPA example now states what to run when it is served without its dev server, instead of rendering as a blank unstyled page; its stylesheet resolves under both a repository-root server and its own
- SPA example route content aligning with the rest of the page (injected fragments bypassed the page's width constraint), and its table header pinning to the top of its own scroll box
- Modal scroll lock mechanism from position:fixed to body overflow:hidden: the page keeps its layout and scroll position; user scrolling is blocked but programmatic scrollTo() is not
- modalDisplayerObj overlayType property changed to overlayBackgroundType
- Size of custom element changed to using specified attribute value
- modalDisplayer workflow changed
- formValidator wrapperDataAtrribute property changed to wrapperClassAtrribute
- formValidator format.fullName() changed to format.wordSeperator(), and accepts arguments 2 and 3, 2 for specifying the seperator and 3 for specifying the number of times to repeat the seperator
- formValidator format.toCurrency() changed to format.currencyField()
- ToBaseGridMultiple changed to vRhythm (vertical Rhythm)
- GridBorderRectangle() constructor changed to CShapes() => Canvas Shapes
- CircularProgress() changed to arc()
- ResourceIO module changed to IO
- Carousel dot buttons no longer carry id="b1", id="b2"…, which duplicated across carousels and could collide with page ids; select them by .vButton[data-ratio] within the container
- TimeLineList per-list classes are now vtl<instance>-<n> instead of vtl<n>, and each instance's generated stylesheet has data-id "v<className>-<instance>" instead of "v<className>"
- TimeLineList autoBuild() called again now builds lists added since the first call, the same as refresh(), instead of doing nothing
- ListScroller no longer adds a window resize listener or a delegated document click listener; it listens on its own buttons and container and uses a ResizeObserver
- ListScroller sets the list's width to max-content and its paddings inline, instead of an item-count width and a left offset; listScroller.css no longer positions the list absolutely or forces the container's width
- ListScroller button scrolls take config.scrollSpeed's default of 290ms instead of a fixed 200ms
- ListScroller marks both buttons inactive at initialize(), until onScroller() arms them
- CShapes
animatedRectangle()appliesconfig.lineColoron every frame, so a colour set while it runs shows on the next frame instead of the next cycle, and a colour can be tweened - The licence and project links in every source file header now point at GitHub (https://github.com/VilsHub/vUX/blob/master/LICENSE and https://github.com/VilsHub/vUX) instead of the old library.vilshub.net addresses
- v4.0.0 is a stable release, no longer a beta: the core file is now
src/vUX-core-4.0.0.js, so a page that importssrc/vUX-core-4.0.0-beta.jsdirectly must switch to the new name (or importvUX-core.js, which follows the version) - FormValidator: an empty field without the
requiredrule passes and skips its value rules, so an optional email field left blank is no longer "invalid"; acallBackrule still runs on it validateEmailAddress()requires a last domain label of at least two letters, soa@b.canda@b.c1are now rejected- FormValidator: the message text colour comes from the stylesheet (
--error-color,--warning-color,--success-coloron the form or any ancestor) instead of being set inline from the first validator's form - ToolTip: the tip box is
position: fixedand placed from the pointer's viewport position
Optimised
- Optimized $$.cssStyle() static method functionality
v3.0.0
Fixed
- validator module bugs
- date picker bug (setting future date)
- multiple style sheet creation for modules depending on style sheets
- Modal overflow smooth scroll
- date picker bug (wrong format of date in date only mode)
- Multiple select field with one custom builder instance bug
- carousel dependent id name (no more ID dependent)
- Tool tip arrow color and box style not updating
Added
- Away clicked to exit modal, in modal displayer module
- Animator module, for non CSS and CSS animation
- Event handler attacher module, with support for appended elements
- content Loader module
- hasParent module
- reset functionality to date picker module
- Auto positioning of potential custom select element parent
- Option to change font color and background color of datePicker label and day tool tip
- TouchHandler module
- getParent Module
- Added spaceError property to listScroller
Removed
- set() method from toolTip module, only on() and off() methods used
Optimised
- ToolTip module
Changed
- DatePicker module now in customFormComponent namespace
- All constructor functions renamed to standard convention
v2.0.0
Optimised
- Protected all unprotected properties
- Optimized codes
Added
- screen break points checker
- browser Resize Property handler
- DOM Element properties getter
Custom form component builder
- Select input
- Radio input
- checkBox input
- Form validator
- Modal display
- window vertical scroll Handler
- Date picker
- Tool tip creator
- IterationCount option to animatedRectangle module
- Callback option to animatedRectangle module
- Horizontal and vertical element centralizer
- Carousel
Changed
- Changed method call, from: Object.fixedRectangle.draw(CanvasObject, canvasElement) to Object.fixedRectangle.draw(canvasElement)
- Placed all configurable properties of module under the namespace 'config' and Changed all 'options' object to 'config' object
- Changed Obj.animatedRectangle.stop property to Obj.animatedRectangle.stop() method;
- Changed imageManipulator() constructor argument 1 from canvas Object to canvas element
- Changed method call, from: Object.loadProgressIndicator(canvasElement, canvasObj) to Object.progressIndicator(canvasElement)
- Changed progressIndicator.circularProgress.config.progressLabel property from string to boolean property
- Changed resourceLoader() module to resourceIO
Removed
- Remove imageManipulatorOBJ.dimension property. No more need to specify dimension