Skip to content

Releases: sapo/Ink

3.1.10

06 Aug 16:57
Compare
Choose a tag to compare

JS

  • Ink.Dom.Browser no longer detects some IE11 mobile browsers as Safari
  • Fix a bug in Modal when open() is called with no arguments and there's an onShow callback present.
  • When a Carousel does not have a stage, the error message now makes some more sense than "a is not defined".
  • Do not crash with <option> elements in FormValidator_2
  • Do a better feature detection of the vh/vw units, for old IOS safari.
  • Fix SmoothScroller adding "active" classes in <li> elements, but never removing them

3.1.9

29 May 14:10
Compare
Choose a tag to compare

Hotfix release, updates FontAwesome files

3.1.8

27 May 17:43
Compare
Choose a tag to compare

CSS

  • Fixes round corners when there's only one child in the .button-group element.
  • Fixes vertical alignment in Safari.
  • Base font settings are now defined with the font property and the $base-font-weight,$base-font-stretch and $base-font-variant variables were added.

JS

  • Dropdown does not need to be passed a 'target' option anymore, it can find its menu by itself
  • Modal will not stop propagation of events any more
  • Modal's onShow callback now takes an object with the modal trigger. It now is function (modalInstance, { trigger }) {}
  • Modal getModalElement, getShadeElement methods, which return the corresponding DOM elements which make up the modal
  • Pagination JS now supports chevron and dotted mode at the same time.
  • FormValidator_2 now supports a data-lang option to set its language to something else.
  • FormValidator_2 FormElement instances now have forceInvalid and forceValid methods, so you can arbitrarily say an input is valid or invalid and bypass all validation rules.
  • Support Opera Mini, which does not have onscroll, in LazyLoad
  • InkArray.forEachObj, for iterating an object's key/value pairs as you do in InkArray.forEach.
  • Fixed an Ink.UI.DatePicker bug in Chrome, which didn't let you select the field.

3.1.7

07 Apr 18:16
Compare
Choose a tag to compare

JS

  • InkEvent.throttle preventDefault and bind options
  • Fixed bug in Ajax, when requests are abort()ed, they should not generate errors any more
  • Add Ink.UI.DragDrop

CSS

3.1.6

31 Mar 16:44
Compare
Choose a tag to compare

JS

  • Fixed a bug where multiple toggles would misbehave if they had data-close-on-click.
  • Change Toggle defaults when data-can-toggle-an-ancestor is present, to avoid a bug where the toggle won't do anything.
  • Fixes #435.
  • Fixes #430.
  • Fixes a bug with InkElement where scrollHeight() was returning 0 in chrome.
  • Fixes a bug in Modal, which was ignoring closeOnClick: false and closing the Modal anyway.
  • InkArray.groupBy() can group non-adjacent objects now (#436).
  • groupBy() can take a string as a key, which makes it take that property name from each item and use that as the key.
  • Ink.Util.Validator.isEAN can now validate ean-8 barcodes.

CSS

3.1.5

18 Mar 17:46
Compare
Choose a tag to compare

JS

  • Merges #417
  • Adds LazyLoad to Autoload with the .ink-lazyload class
  • Add loadedClass (data-loaded-class="class-name") option to put classes in LazyLoaded elements when they are loaded so they can be styled.
  • Adds TL phones to Ink.Util.Validator
  • Adds EAN validation to Ink.Util.Validator and Ink.UI.FormValidator_2
  • Fixes multiple onInViewport callbacks in Ink.UI.LazyLoad_1
  • Make FormValidator's "matches" rule match form elements without a [rules] attribute, because those may not be validated.
  • Modal now uses Flex and VH/VH CSS dimensions remove or lighten the necessity for javascript layout. It is more smooth and a lot faster too! It gracefully degrades into using some javascript layout, or fully rely on it, on older browsers.
  • Toggle will now pass (newState, { element }) as arguments to the onChangeState callback, instead of just the new state
  • DatePicker bugfixes
  • when isAccordion, the closeOnClick option of a toggle will default to false.
  • DatePicker lang option, to set the language to Portuguese easily, and an Ink.Util.I18n instance to help create more languages.

3.1.4

12 Feb 15:44
Compare
Choose a tag to compare

CSS

  • Fixes a bug where the breakpoint dependent grid gutter, i.e. .small-gutters, classes in flex box where being miscalculated.

3.1.3

05 Feb 15:12
Compare
Choose a tag to compare

CSS

  • Merges #422
  • Fixes non-aliased fonts in Windows by rolling back Roboto

JS

  • Ink.UI.Table fixed in Internet Explorer
  • Ink.Net.JsonP: abort() method added, which allows you to cancel requests and ignore responses.
  • Prevent a tab change in Ink.UI.Tabs when the user is clicking the active tab. This avoids an annoying scroll.
  • Removed a resize event handler on Tabs, which added the "menu horizontal" classes to the menu on small layouts. Use CSS!
  • Fix bug when swiping off of sides of carousel
  • Added validateCors option to Ink.Net.Ajax, which adds CORS headers only if necessary.
  • Tooltips are able to be triggered with keyboard, through focus events.
  • Added better keyboard focus support to Drawer
  • FormValidator_2: 'matches' now works together with 'required' so that an empty confirmation field is only valid if the matched field is not required.
  • FormValidator_2: Fixed a problem with validating 'matches' fields, in that they weren't validated if they were empty.
  • FormValidator_2 is now in autoload. Now you only need to add the .ink-formvalidator class to create it!

3.1.2

18 Dec 16:08
Compare
Choose a tag to compare

Javascript

Minor breaking change: Ink.UI.Toggle no longer supports detecting whether the toggled element is currently visible (using getComputedStyle) in order to set its initial state. To achieve the same effect, set the class of the first target to be the same as the classNameOn option (which defaults to 'show-all'). This may break some things, but it improves the predictability and usability of the component.

Fixes #414

Fixes terrible bug in FormValidator_2 where neverSubmit is always true

3.1.1

14 Oct 16:29
Compare
Choose a tag to compare

CSS

  • Fixes issue with Drawer menu animation. a3f8b1f

JS

  • Fixes serious Drawer rendering issue in IE11, and lack of transition in Firefox. ec350a4

And more!