web-ui-pack
Advanced tools
Changelog
1.2.1 (Sep 24, 2024)
readonly/disabled/hidden
controls. BREAKING: changed enum SubmitActions
& FormElement.$defaults.submitActions
0.8
=> 0.9
minWidth: 100px
& minHeight: 50px
to avoid init size 0 for some casesitem.tooltip = (itemResult, popup) => console.warn(itemResult.color)
<wup-circle><strong>Custom label</strong></wup-circle>
works in a proper way now$options.from
& $options.to
calling helpers triggers scroll events
{ skip?: (ev: WheelEvent | TouchEvent, isTouchAction: boolean) => boolean; }
Changelog
1.1.0 (Jan 18, 2024)
valueToUrl/valueFromUrl
to valueToStorage/valueFromStorage
.renderPopup()
to have ability to override popup options$options.items
. Improved JSDoc (added example)$options.items = [{value: 1, text: (v, li) => {... li.onclick = (e) => e.preventDefault();... } }]
valueToStorage/valueFromStorage
)opacity: 1
for button[clear]/prefix/postfix
as fix when controls in a flex-row and it resizes on hoverChangelog
1.0.4 (Dec 29, 2023)
Changelog
1.0.3 (Dec 9, 2023)
mathSumFloat
in favor of mathFixFP
./styles.ts const WUPcssIconSet
to allow re-use itform.$onSubmitEnd = (e) => e.preventDefault()
form.$onSubmit = (e) => e.preventDefault()
scale
& offset
form.$validate(...)
for manual triggering validationse.target: null
readonly
+ applied css-style [busy] + added attribute aria-busy
to formChangelog
1.0.2 (Nov 21, 2023)
text-align: start
by default to avoid unexpected inheritance[checked]
to re-style whole itemChangelog
1.0.1 (Nov 17, 2023)
--base-margin
flex: 1
for switch/checkbox controlsChangelog
1.0.0 (Nov 13, 2023)
window.__wupln
(to dynamic change) or global __wupln
during the compilation (for static change)--base-margin
to unify margins for all elementsisFocusLast
& static querySelector (possible to get from focusFirst.$selector
)button[type=submit]
$onSubmitEnd
& event $submitEnd
$submit()
for manual calling--ctrl-label-active-pos
to simplify customization of label position$options.items
Global.
Added static .$use()
. Call it before using element: WUPTextControl.$use()
(self-registration by import works now and will be removed in the future)
Renamed css-vars:
--ctrl-select-menu-hover
>>> --menu-hover-bg
--anim-time
>>> --anim-t
--popup
>>> popup-text
--popup-anim
>>> popup-anim-t
--tooltip
>>> tooltip-text
--spin-speed
>>> spin-t
--btn-submit
>>> --btn-submit-text
--ctrl
>>> --ctrl-text
--ctrl-clr-width
>>> --ctrl-clr-w
--ctrl-select-item
>>> --ctrl-select-item-text
--ctrl-time-off
>>> --ctrl-time-off-text
--ctrl-select-menu-hover
>>> --menu-hover-bg
Refactored & unified custom events. Now every event contains detail as object: e.detail = { ... }
90000
to 8000
show/hide
to open/close
(the same for DropdownElement):
ShowCases
>>> PopupShowCases
HideCases
>>> PopupHideCases
showCase
>>> openCase
$show()
>>> $open()
$hide()
>>> $close()
$isShown
>>> $isOpened
$onShown
>>> $onOpened
Combobox controls (Select, SelectMany, Date, Time)
show/hide
to open/close
:
ShowCases
>>> MenuShowCases
HideCases
>>> MenuHideCases
$showMenu
>>> $openMenu
$hideMenu
>>> $closeMenu
etc.Changelog
0.10.2 (Oct 11, 2023)
Fixes:
$options.items = new Promise
& $initValue = ...
Changelog
0.10.1 (Oct 10, 2023)
BREAKING CHANGES:
autoSave
renamed to autoStore
Fixes:
$onWillShow
, $onWillHide
, $onChange
New/Features:
[wupdark]
to body to use it. Don't forget to define general text & background colors yourselfChangelog
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 change