Skip to content

Metro 4.3.8

Compare
Choose a tag to compare
@olton olton released this 21 Jun 17:35
· 3303 commits to master since this release

4.3.8

M4Q

  • Animation: fixed using String.includes for IE11. Change to String.indexOF.
  • Animation: add operator / to _getRelativeValue().
  • Events: fix fire. Now main is constructor CustonEvent, for old - createEvent
  • Manipulation: add method wrap, wrapAll, wrapInner. The method puts elements inside the wrapper and return wrapper(s).
  • Init: change throw Error to console.warn when selector is # or .
  • setImmediate: add support for process and web workers

Metro 4

  • General: new module system. All components now defined as alone IIFE modules.
  • Validator: fixed functions compare, equals, notequals to work not inside a form, issue #1542
  • Rtl: remove form-rtl, accordion-rtl less files. RTL Styles moved to component style.
  • Locales: added pt-BR Brazilian Portuguese language
  • Toast: added method Metro.createToast(). This eq to Metro.toast.create()
  • Components: event on[Component]Create now have context a HTMLElement and receive $(HTMLElement) as argument
  • Keypad: fix Keypad backspace button click behavior on keypad, created at runtime, issue #1547
  • Utils: improve function isType
  • Utils: remove functions camelCase(), dashedName(). Use String.camelCase or $.camelCase() and String.dashedName()) or $.dashedName().
  • Clock: add events onTick, onSecond
  • String: add extensions includes(), camelCase(), dashedName(), shuffle()
  • Array: add extensions includes()
  • ListView: fixed event onNodeDblclick, issue #1453
  • Ribbon menu: fix hovering when button disabled, issue #1551
  • Components: new constructor function
  • Colors: full refactoring, now its full equals to ColorJS
  • ColorType: new custom type for color variable. Var can be defined as var c = new Color(...) or var c = new Metro.Color(...)
  • Material Tabs: update to work in all browsers
  • Animation: redesign module
  • Animation: add effects zoom, swirl
  • Tiles: remove prefix animate-* for values for attribute data-effect
  • Core: removed meta attribute metro4:init:mode. Now Metro is ALWAYS initialized after the content has been loaded.
  • IE: removed file ie.less. Styles moved to components styles.
  • ListView: add method selectByAttribute(attrName, attrValue, true|false) for select/deselect items, issue #1554
  • Template: new component. This component allows you to use javascript templates inside HTML elements.
  • Table: fix using wrapper for skip, issue #1557
  • Calendar picker: fix using attribute clsPrepend, issue #1558
  • Toast: add new arguments format Metro.createToast(message, options). Where options is a plain object.
  • Draggable: add attribute dragContext, you can set it for access to any object with drag events, issue #1565
  • Window: add second argument context for events onDragStart, onDragStop, onDragMove, issue #1565
  • Calendar picker: fix work in dialog-mode
  • Tabs: fix work attribute clsTabsListItemActive, issue #1568
  • Locales: add danish locale da-DK, issue #1570