web-ui-pack
Advanced tools
Changelog
1.2.2 (Dec 20, 2024)
reminderSMS
=> Reminder SMS
(was Reminder S M S
)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 yourself