web-ui-pack
Advanced tools
Changelog
0.9.1 (Sep 28, 2023)
BREAKING CHANGES:
$defaults
Defaults
. Merged with interface Options
and now contains all fields as required$defaults
getAttr
changed to parseAttr
w-...
(attrs [readonly]
& [disabled]
without changes)[reverse]
to [w-reverse]
for RadioControl, SwitchControl, CheckControl & PasswordControlskey
renamed to storageKey
storageKey
changes $value
instead of $initValue
and now triggers $onChange
event on init (added enum-key SetValueReasons.storage
)maxHeight
for [error] popup$initValue
isn't fired $onChange
event anymorefit
& overflowTarget
= auto
(was null
)w-overflowtarget
expects auto
or querySelector
string (previously expected global-ref window.someObj
)Fixes:
form.$options.autoFocus=true
Not found in items
when re-assign items
& initValue
after a timeNot found in items
when re-assign items
& initValue
after a time$initValue
min
, max
, exclude
don't exclude time in comparisonmin
& max
isn't formatted according to utc
_parse
doesn't work when added extra char and another char auto-removed (shifted & removed)_parse
doesn't work when added extra char and another char auto-removed (shifted & removed)New/Features:
button[clear]
not hidden anymore for required controls (user must have ability to clear all at once & put new text). To rollback it use css-rule wup-text[required] button[clear] { display: none; }
button[clear]
visible only on focus & hover. To rollback it use css wup-text button[clear] { display: block!important; }
autoFocus
enabled. To revert to previous behavior use WUPSelectControl.$defaults.showCase |= ShowCases.onFocusAuto
minCount
& maxCount
--ctrl-select-menu-hover
to changeChangelog
0.8.1 (Aug 29, 2023)
BREAKING CHANGES:
$options
initialization. So all inherited Elements must override only $defaults
and use TOptions
as generic instead of overriding $options like it was before.maxWidthByTarget
for error-popupFixes:
$initValue
or $options.clearActions
changing$options.readOnlyInput=7
must be ignored when allowNewValue
enabled$options.multiple
$value=undefined
doesn't reset selecteditems=[{value:2}]
New/Features:
$change
and callback $onChange
has prop SetValueReason.initValue
nowmenuButtonsOff
to hide buttonsChangelog
0.7.1 (Jul 24, 2023)
BREAKING CHANGES:
$options.clearAction
=> refactored enum-names & improved behavior/dynamic-icon for button[clear]
Fixes:
$options.readOnly
doesn't work - user able to change value$initValue
> $options.max
Ctrl + Z
doesn't revert changesformat
isn't applied on initNew/Features:
excludeNested
to exclude some nested properties from observer$options.readOnlyInput
can be number X to enable autoMode where input.readOnly = items.length < X.$isEqual
) to compare by .id
. So now don't need to worry about complex objects with id's (mostly related to SelectControl.$options.items
& RadioControl.$options.items
)$isRequired
based on $options.validations.required
$options.startWith
can be string-dateChangelog
0.6.1 (Jun 26, 2023)
Fixes:
$initValue
overrides $value
when it set before$options.items
with object-values doesn't work$options.items=...
and $value=...
doesn't work$options.items=...
and $value=...
doesn't work0.#
and value 2
shows error Incomplete value
New/Features:
autoSave
to prevent losing not-submitted datasetValue
has argument reason
now$change
and callback $onChange
has prop detail: SetValueReason
now$defaults.storage
and $options.skey
to store/get value in different storages local/session/url
(value, control, reason) => false | string
. Was (value) => false | string
button[clear]
by default for disabled/readonly/requiredjsx/tsx
files (previously hovering on <wup-text>
showed nothing)Changelog
0.6.0 (May 19, 2023)
BREAKING CHANGES:
$isHidding
to $isHiding
Fixes:
-234
showed as -,234
New/Features:
<wup-popup animation="stack">...</wup-popup>
right-middle
means [right-middle, left-middle]
)$defaults.validations
(like WUPNumberControl.$validations = {min: 0}
etc.)popup.addEventListener("$show",e=>...)
equal to popup.$onShow = (e)=>...
Changelog
0.5.2 (Mar 29, 2023)
Fixes:
Changelog
0.5.0 (Mar 27, 2023)
BREAKING CHANGES:
getNumAttr
, getRefAttr
, getBoolAttr
is refactored to single getAttr
$isOpen
deprecated in favor of $isShown
New:
multiple
(attribute [multiple] & $options.multiple)target
can be SVGElementoffset
can be function$isShown, $isHidden, $isShowing, $isHidding
window.innerWidth & window.innerHeight
. The rule impossible to disable!$show() & $hide()
possible several times at once without re-rendering$willShow & $willHide
have properties detail.showCase & detail.hideCase
minsize
(attribute [minsize] & $options.minsize)tooltip
per item ($options.items[0].tooltip)Fixes:
initvalue=''
sets value to true
(expected false
)Ctrl + B
makes text bold but it's unexpected for plain textareainitvalue,min,max
for controls Date & Calendar doesn't work on Safari (Date.parse(yyyy-MM-dd) doesn't work by default)fit
on Safari 14-[fill]
can't override css-rule)Changelog
0.4.1 (Jan 27, 2023)
New:
Fixes:
Changelog
0.4.0 (Jan 26, 2023)
BREAKING CHANGES:
WUP...
is refactored from WUPPopup
to WUP.Popup
etc. So re-export enums ShowCases, HideCases, Animations
without prefix nowThis date is disabled
to This value is disabled
New:
Ordinary class Time with hours & minutes
Fixes:
AM/PM parsed to 'a' but expected 'A'
12:00 PM throws Error but expected 12:00
Changelog
0.3.0 (Dec 27, 2022)
BREAKING CHANGES:
$options.format
& attr [format]
related to all date-strings: attributes initvalue/min/max
.YYYY-MM-DD
$namesDayShort, $namesMonth, $namesMonthShort
in favor of localeInfo helper$options.firstDayOfWeek
is renamed to firstWeekDay
$options.firstWeekDay
- default value depends on user localization; see localeNew:
$options
prefix
& postfix
Fixes:
drop-shadow
works wrong with angle 180.0--spin-2