Skip to content

Releases: Yegorich555/web-ui-pack

v1.2.2

20 Dec 12:29
Compare
Choose a tag to compare

New Features


Fixes & Improvements

  • Fixed namespace for JSX/TSX React v19+
  • NotifyElement
    • Fixed changing $options doesn't clear related attributes
  • Controls (Date, Time, Number)
    • Fixed Validation required shows instead of Invalid value OR Incomplete value
  • Helper stringPrettify
    • Fixed behavior with abbreviations like reminderSMS => Reminder SMS (was Reminder S M S)
    • Improved performance up to 3 times (rewritten Regex to for-cycle). See benchmark here

v1.2.1

24 Sep 10:13
Compare
Choose a tag to compare

New Features


Fixes & Improvements


  • Form
    • Added skip-validation (by default) for readonly/disabled/hidden controls. BREAKING: changed enum SubmitActions & FormElement.$defaults.submitActions
  • SelectManyControl. Fixed behavior for sorting (drag/drop) when item moved between lines
  • PopupElement.
    • Reduced opacity for tooltip background 0.8 => 0.9
    • Fixed Typescript shows error on children inside wup-popup
  • CircleElement
    • Set minWidth: 100px & minHeight: 50px to avoid init size 0 for some cases
    • Add defined color for tooltip function item.tooltip = (itemResult, popup) => console.warn(itemResult.color)
    • Handled case with custom label: so <wup-circle><strong>Custom label</strong></wup-circle> works in a proper way now
    • Extended default colors to 8 items
    • Added auto definition for half-size (radar-charts without whole circle) based on $options.from & $options.to
  • helpers

v1.1.0

18 Jan 19:31
Compare
Choose a tag to compare

New Features


  • BREAKING. Controls. Renamed valueToUrl/valueFromUrl to valueToStorage/valueFromStorage
  • Combobox controls (Select, SelectMany, Date, Time). Added method .renderPopup() to have ability to override popup options
  • SelectControl. SelectManyControl. RadioControl.
    • Allowed to use mixed types in $options.items. Improved JSDoc (added example)
    • Allowed to prevent closing menu via ev.preventDefault => $options.items = [{value: 1, text: (v, li) => {... li.onclick = (e) => e.preventDefault();... } }]
    • Allowed to use complex values with saving to storage (refactored methods valueToStorage/valueFromStorage)

Fixes


  • HTML. Fixed intellisense (html.json was missed in the package)
  • Styles. Textbased controls. Added opacity: 1 for button[clear]/prefix/postfix as fix when controls in a flex-row and it resizes on hover
  • Combobox controls (Select, SelectMany, Date, Time). Memory leak: menu is closed but not removed when click on body outside control

v1.0.4

29 Dec 14:39
Compare
Choose a tag to compare

New Features


v1.0.3

09 Dec 21:02
Compare
Choose a tag to compare

New Features


  • Helpers. Deprecate mathSumFloat in favor of mathFixFP
  • Styles.
    • Moved all icons to single ./styles.ts const WUPcssIconSet to allow re-use it
    • Added init root styles on script run (to allow re-use css variables before any WUP component is appended)
  • Modal
    • Allow to prevent auto closing via form.$onSubmitEnd = (e) => e.preventDefault()
    • Allow to prevent auto closing via form.$onSubmit = (e) => e.preventDefault()
  • Controls. Added css-animation for box-shadow/borders
  • RadioControl. Added comparison by item.id to allow use cloned items/value
  • NumberControl. New options scale & offset
  • Form
    • Added form.$validate(...) for manual triggering validations
    • Changed spinner to custom friendly look

Fixes


  • Global. Custom event callbacks like $onChange(e) have e.target: null
  • Controls
    • Wrong TS-type on $onChange() callback
  • Form
    • Focus lost on pending (because every active element is disabled). Refactored pending state: elements changes to readonly + applied css-style [busy] + added attribute aria-busy to form
    • Possible to submit by Enter key in pending state
  • ModalElement. button[close] is overlayed by header

v1.0.2

29 Nov 10:02
Compare
Choose a tag to compare

New Features


  • Global
    • Add Preact tsx/jsx support
  • Controls
    • Added text-align: start by default to avoid unexpected inheritance
    • RadioControl. Added attribute [checked] to re-style whole item

v1.0.1

17 Nov 10:31
Compare
Choose a tag to compare

Fixes


  • ModalElement. Wrong behavior on confirmModal + replace: true + click outside on previous/hidden modal
  • PopupElement. Popup blinks on fast open+close
  • Controls
    • Missed css-var --base-margin
    • Missed style flex: 1 for switch/checkbox controls

v1.0.0

13 Nov 11:25
Compare
Choose a tag to compare

New Features


  • ModalElement demo
  • Global
    • Added multi language support: override window.__wupln (to dynamic change) or global __wupln during the compilation (for static change)
    • Added css variable --base-margin to unify margins for all elements
    • Added support HTML intellisense for WebStorm (no action required from developer/user side)
  • helper focusFirst. Added option isFocusLast & static querySelector (possible to get from focusFirst.$selector)
  • FormElement
    • Increased height of button[type=submit]
    • Added callback $onSubmitEnd & event $submitEnd
    • Added public method $submit() for manual calling
    • Web Accessibility: auto-tie with closest heading via aria-labelledby
  • Text based controls
    • Added css variable --ctrl-label-active-pos to simplify customization of label position
  • SelectControl. SelectManyControl. Improved handling promise rejection in $options.items
  • SelectManyControl. Added scrolling style & restricted max-height by default

Fixes


  • helper findScrollParent. Returns parent despite on parent.child with position-fixed
  • helper promiseWait. Throws error twice instead of 1 time
  • PopupElement. Popup hidden if target inside content with position: fixed and target.parent.parent is scrollable
  • DropdownElement. Target button is overflowed by menu in animation-stack
  • PasswordControl. Input height is changed on button[eye] click
  • Text based controls
    • Sometimes weird blink & poor render during the animation on focus
    • Button clear changes control size on hover if parent is flexbox
  • SelectControl. SelectManyControl. storageKey + items as Promise don't work together
  • CircleElement. Update options/items colors triggers animated re-render with blink

BREAKING CHANGES


  • 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 = { ... }

  • PopupElement

    • z-index is changed from 90000 to 8000
    • Renamed show/hide to open/close (the same for DropdownElement):
      enum ShowCases >>> PopupShowCases
      enum HideCases >>> PopupHideCases
      option showCase >>> openCase
      method $show() >>> $open()
      method $hide() >>> $close()
      state-prop $isShown >>> $isOpened
      event $onShown >>> $onOpened
      etc.
    • Refactored/normalized enum PopupShowCases
  • Combobox controls (Select, SelectMany, Date, Time)

    • Renamed show/hide to open/close:
      enum ShowCases >>> MenuShowCases
      enum HideCases >>> MenuHideCases
      event $showMenu >>> $openMenu
      event $hideMenu >>> $closeMenu
      etc.

v0.10.2

11 Oct 10:04
Compare
Choose a tag to compare

Fixes:

v0.10.1

10 Oct 13:30
Compare
Choose a tag to compare

BREAKING CHANGES:

  • Controls. Renamed some css-vars (this is last big breaking change)
  • FormElement. Option autoSave renamed to autoStore

Fixes:

  • TypeScript. Updated CustomEvents $onWillShow, $onWillHide, $onChange
  • Text based controls
    • Label doesn't go to top on browser autofill
    • Value missed & undo/redo failed on browser autofill
  • SelectManyControl
    • Showing button[clear] on hover changes height
    • Focus sometimes is wrong when user removes item & reverts changes via click on button[clear=back]

New/Features:

  • Added built-in colors for darkMode. Append attr [wupdark] to body to use it. Don't forget to define general text & background colors yourself