Skip to content

Releases: mycolorway/tao_on_rails

v2.0.0-beta.10

09 May 08:57
Compare
Choose a tag to compare
  • Fix: disconnected callback might be called before connected callback.
  • Property observer now supports string as the instance method name.
  • Add two new types of properties:
properties: {
  customProperty: {
    get() { ... },
    set() { ... },
  },
  independentProperty: {
    type: Boolean,
    default: false,
    syncAttribute: false,
  },
}

Check the unit test for more usage info.

v1.0.0.beta.4

07 Jan 09:05
Compare
Choose a tag to compare
CHG: bundle update

v0.10.0

03 Sep 13:25
Compare
Choose a tag to compare
  • Add global helpers: Tao.helpers.findComponent() and Tao.helpers.componentReady()
  • Add tag_name option for TaoOnRails::Components::Base,which can be used to specify tag name for a single component instance.
  • Add this gem to app eager load path.
  • Replace app/plugin template with install generator.

0.9.3

28 Jul 10:01
Compare
Choose a tag to compare
  • findComponnet method of TaoComponent can accept multiple child component selectors now. The callback will be triggered after all specified child components connected:
[@result, @list] = @findComponent '.select-result', '.select-list', (result, list) ->
  # do something after .select-result and .select-list are connected
  • Add namespacedTrigger method to TaoComponent, which will help trigger two namespaced custom events for one single event name. For example:
@namespacedTrigger 'change'

This line of code in checkbox component will trigger two custom events in sequence: tao:change and tao-check-box:change

v0.9.2

10 Jul 04:44
Compare
Choose a tag to compare
  • It's not necessary to write Tao Page subclass for every page now.
  • Add an ActiveSupport hook for loading components.
  • Some minor improvements.

v0.9.1

15 Jun 14:53
Compare
Choose a tag to compare
  • Loose rails version requirement. Rails version above 5.0.0 will be acceptable.
  • Rename _reflow method of component to reflow

v0.9.1.pre

14 Jun 08:30
Compare
Choose a tag to compare
v0.9.1.pre Pre-release
Pre-release
  • Loose rails version requirement. Rails version above 5.0.0 will be acceptable.
  • Rename _reflow method of component to reflow

v0.9.0

10 Jun 06:30
Compare
Choose a tag to compare

Ruby Component

  • Delegate these instance methods to component class: tag_name component_name tag_prefix template_paths template_name
  • Improve component render logic. Component will now search template files in several template_paths.
  • Add html_options method for rendering conveience, which will parse underscores in option keys to dashes.

Js Component

  • Refactor attribute parser of Tao.Component. Boolean attributes cannot have default value now, and setting a boolean attribute to false will remove the corresponding html attribute(insteadof setting it's value to 'false').
  • Add _beforeAttributeChanged callback
  • The mixin apis(include/exclude) of component/module now support function param.
  • Upgrade custom elements polyfills

v0.8.2

21 May 17:22
Compare
Choose a tag to compare
  • Fix a bug in component template rendering

v0.8.1

21 May 15:00
Compare
Choose a tag to compare
  • Change default value of array and hash attribute to null
  • Add initialized connected and disconnected events for base component
  • Add reflow method on base component
  • Add findComponent method on base component for finding child component and providing ready callback of child component
  • Add triggerHandler method on base component; the trigger method will now bubble up custom events to ancestors
  • Add translate helper method on ruby component
  • Improve template finding logic of ruby component; template file can be placed in several valid paths now