Skip to content

Metro 4.5.0

Compare
Choose a tag to compare
@olton olton released this 01 Aug 15:55
· 2898 commits to master since this release

4.5.0

  • Tabs Material: fixed jump to the anchors, issue #1794
  • Table: fixed create Instpector when table data loaded with method loadData(), issue #1796
  • Tabs Material: added mouse wheel support for scrolling tabs, issue #1795
  • Select: added event data-on-clear, fixed firing event data-on-change when user click on the clear button, issue #1802
  • Switch: fixed method toggleState(), issue #1799
  • Select: fixed API method data() for selecting option when defined, issue #1755
  • Select: added API methods addOptions(values = [] || {}), removeOptions(values = [])
  • Select: added API methods addOption(val, title, selected), removeOption(val)
  • Select: fixed clear button work, issue #1716
  • Master: fixed for quick switching panes, issue #1787
  • Important: IE is dead and no more supported!
  • M4Q: version updated to 1.1.0
  • M4Q: removed polyfills for Promise, CustomEvent (IE is dead)
  • Datetime: version 1.0.1, new global type Datetime, and factory datetime()
  • Cake: version 1.0.0, new global type Cake, and factory cake()
  • Ajax: switched from $.ajax ($.json, $.post, ...) to fetch (IE is dead)
  • Tag input: switched from $.ajax to fetch
  • Input: switched from $.ajax to fetch
  • Html container: switched from $.ajax to fetch
  • Cookie disclaimer: switched from $.ajax to fetch
  • Table: _create(), _buid(), _saveTableView(), loadData() now use fetch, and send data to server as json
  • Streamer: now use fetch for loading data
  • List: now use fetch for loading data
  • Calendar: fixed showing week numbers
  • Calendar: rewritten with Datetime
  • Calendar picker: rewritten with Datetime
  • Countdown: updated for using with Datetime
  • Chat: updated for using with Datetime
  • Chat: changed messages style
  • Validator: updated method date for using with Datetime
  • Table: updated for using with Datetime (change toDate() to Datetime.from())
  • List: updated for using with Datetime (change toDate() to Datetime.from())
  • Datepicker: updated for using with Datetime
  • Utils: updated for using with Datetime
  • Extensions: removed extension for Date, use Datetime
  • Extensions: removed extension for Object - Object.create(), Object.values() (IE is dead)
  • Extensions: removed methods from extension for String, Array
  • Any: added using Cake.lpad where need
  • Utils: removed functions lpad, rpad. If you need these functions, use Cake.pad, Cake.lpad, Cake.rpad
  • Select: added attributes data-drop-full-size=true|false (default: false), data-drop-width=int_value to set drop container width
  • Hint: added attribute hintDeferred if value of this > 0, a hint will display with delay.
  • ActionButton: fixed vertical-align for multi-action class
  • Activity: change default style to color
  • Keylock: added new component
  • Calendar: fixed bug issue #1732
  • Window: fixed event onMaxClick, issue #1735
  • DoubleSelectBox: added new component, request from Patreon patron
  • M4Q: fixed setting css number props order, zoom with method css()
  • CalendarPicker: added API method clear()
  • CalendarPicker: fixed API method val(), if you set argument as empty string val(""), you clear calendar picker value
  • M4Q Ajax: fixed method $.get for url with ?, issue #1745
  • List: updated for using with different tags. For example: now you can use list with div.grid role=list > div.row > div.cell structure
  • List: added attribute data-cls-template-tag to set class(es) for item children
  • List: added attribute data-default-template-tag to set wrapper element for item children, when template is not defined
  • List: improved work with an attribute data-cls-template-tag. Now you can set many classes separated with comma to applying to elements with linked index
  • Grid: fixed no-gap class, now padding cancels for .grid.no-gap .row > .cell* and .row.no-gap > .cell*
  • Utils: fixed function Utils.isObject(), issue #1755
  • Switch: To show on-off label you must set attribute data-show-on-off='true' and use attributes: data-on, data-text-on, data-off, data-text-off or i18n configs with attribute data-locale
  • Switch: added i18n support with props locale.switch.on, locale.switch.off
  • Switch: added changing on-off text in runtime with API method i18n(locale_name), issue #1761
  • M4Q: added property $.dark
  • Accordion: added API method open(index)
  • Accordion: added attributes data-cls-accordion, data-cls-frame, data-cls-heading, data-cls-content, data-cls-active-frame, data-cls-active-frame-heading, data-cls-active-frame-content
  • Table: added attribute data-use-current-slice. If this attribute has a value true, click on select-all checkbox will only apply to the current (visible) data slice, issue #1778
  • Sidebar: added attribute data-close-outside="true|false" to close sidebar by a click outside the sidebar, issue #1777
  • Marquee: added method setItems([...])