Skip to content

0.4.0

Pre-release
Pre-release
Compare
Choose a tag to compare
@wkeese wkeese released this 23 Oct 12:13
· 491 commits to master since this release

Enhancements since 0.3

popups/dropdowns

  • delite/place, delite/popup, and delite/HasDropDown have new "center" option for showing dialogs
  • delite/HasDropDown forwards keystrokes to dropdown via dropdown.emit("keydown", ...) rather than calling dropdown.handleKey() method
  • delite/HasDropDown emits events just like DisplayContainer (delite-display-load, delite-before-show, delite-after-show, delite-before-hide, delite-after-hide)
  • removed code to call widget's onOpen() / onClose() methods. instead widget can listen to delite-before-show and delite-after-hide events

delite/KeyNav

  • focusDescendants=false mode for ComboBox
  • removed _keyNavCodes property; instead automatically call method (ex: spaceKeyHandler()) if it's defined

delite/activationTracker

This was previously called delite/focus.

  • Stopped calling _onFocus(), _onBlur(), onFocus(), and onBlur() on widgets.
    Instead, emit delite-activated and delite-deactivated events on
    widgets as they become or stop being active.
  • stopped setting "focused" property on active widgets, and removed "focused" from default list of properties CssState tracks

delite/CustomElement

  • Prefer attachedCallback() to startup().
    Also, make createdCallback() and attachedCallback() automatically chain.
    Removed chaining of startup() though, since subclasses generally shouldn't
    extend it anyway.
  • computeProperties() and refreshRendering() now get notification when the attached, started, and created properties are set to true

delite/Viewport

Lots of fixes about size estimation on iOS. Also split the event notification into "resize" and "scroll".

Miscellaneous

  • work for supporting store as CustomElement
  • Moved width100/height100 css classes to defaultapp.css
  • moved delite/css to requirejs-dplugins/css

Name changes since 0.3

  • KeyNav
    • focusedChild --> navigatedDescendant
    • childSelector --> descendantSelector
    • focusFirstChild --> navigateToFirst
    • focusLastChild --> navigateToLast
    • focusChild --> navigateTo
    • onKeyboardSearch --> _keyboardSearchHandler
    • _deactivateHandler --> _keynavDeactiveHandler (so it doesn't conflict with HasDropDown)
    • _onLeftArrow --> previousArrowKeyHandler
    • _onRightArrow --> nextArrowKeyHandler
    • _onUpArrow --> upArrowKeyHandler
    • _onDownArrow --> downArrowKeyHandler
    • _getNext --> getNext
  • Widget
    • preCreate() --> preRender(), buildRendering() --> render(), postCreate() --> postRender().
  • Removed underscore from names of protected properties:
    • CustomElement: _created, _attached, _parseAttr --> parseAttribute, _parseFunctionAttr --> parseFunctionAttribute
    • HasDropDown: _buttonNode, _arrowWrapperNode, _popupStateNode, _aroundNode
    • Widget: _started

See 0.3.0...0.4.0 for details.