Commit Graph

70 Commits (8a4911e100aa02ea11fc5d08380d518c49f5685e)

Author SHA1 Message Date
Glen Cheney 8a4911e100 Start v6 2 years ago
Glen Cheney 9f79d9f441
Add sortedItems prop, fix Chrome bug (#351) 3 years ago
Amir Hossein Karimi 2c8e76f635
Add RTL feature (#337)
* Ignore yarn.lock

* Remove sourceMap from rollup terser
- sourcemap option is removed. Now it is inferred from rollup options.

* Add isRTL option & RTL feature

* Compile dist files

* Add isRTL to documents

* Fix isRTL option passed to ShuffleItem class

* Update TypeScript definitions to add isRTL & Direction CSS

* Compile assets
3 years ago
greenkeeper[bot] 1aabb4ac24 Update eslint-config-airbnb-base to the latest version 🚀 (#293)
* chore(package): update eslint-config-airbnb-base to version 14.0.0

* Fix linting
5 years ago
Glen Cheney dc219da97a
Update TS definitions (#287)
* Update index.d.ts

* Add test typescript file and run it on npm test

* Ignore built file from types
5 years ago
Glen Cheney 8962f8087b
Move to jest for testing (#278)
* chore(package): update core-js to version 3.0.1

Closes #275

* move to jest
5 years ago
Glen Cheney 4884e668d8 Upgrade ESLint and fix issues 6 years ago
Glen Cheney f72f57d5c5 Fix misspelled delimiter option #215 6 years ago
Glen Cheney 925252330c Fix new item animation when there is an active filter
fixes #198
6 years ago
Glen Cheney 068c8acf9f Fix rounding error causing transitions not to end. 7 years ago
Glen Cheney 83e3ad4958 Fix new linter errors. 7 years ago
Glen Cheney 08e5b4b5aa Greenkeeper/eslint 4.4.0 (#167)
* chore(package): update eslint to version 4.4.0

Closes #163

* Fix lint errors. Update dev dependencies.
7 years ago
Glen Cheney eaae5533ff Round translate values by default. 7 years ago
Glen Cheney a5543f16b2 Fix incorrect visible item count after `resetItems()` 7 years ago
Glen Cheney 8a863fe75c Fix add method with new `isHidden` property. 7 years ago
Glen Cheney dc0fe37e18 Revert "transition everything".
That threw off calculations on resize. Now infer things to transition from the css object map.
7 years ago
Glen Cheney 3b9e140a53 Avoid requirement for scale properties being different.
This is done with the new `isHidden` property of ShuffleItem which is set by `_layout` and `_shrink` because the filter methods set `isVisible`.
Allow transitions on anything, not just transform and opacity.
JSDoc `Function` => `function`.
7 years ago
Glen Cheney 510f9de192 Change default easing to material design's "standard curve"
Was `ease`, now `cubic-bezier(0.4, 0.0, 0.2, 1)`
https://material.io/guidelines/motion/duration-easing.html#duration-easing-natural-easing-curves
7 years ago
Glen Cheney 46161c5a9f Avoid animating new items' position during `add`.
Items now fade and scale in from their "final" position instead of transitioning from 0,0 to their "final" position. This looks much more natural.
Also reduced the maximum stagger delay to 150ms.
7 years ago
Glen Cheney ded5ff2546 Add typings file. 7 years ago
Glen Cheney 15b3738d7b Improve isCentered option. Add tests for it.
isCentered will now revert previously centered rows when a following row overlaps it.
7 years ago
Glen Cheney d08e1e3e9d Add `isCentered` option, which mostly works. 7 years ago
Glen Cheney bc5d41902f Add react demo. Add `resetItems()` method. 7 years ago
Glen Cheney 0b78b0727e Use `aria-hidden` attribute. Make methods that use transforms `protected` so people can override them to support old browsers.
and some other minor changes.
7 years ago
Glen Cheney 619470c43b Add flexbox grid demo. 7 years ago
Glen Cheney a4740223aa Run `layout` on page load. #147 7 years ago
Glen Cheney 57ded43991 Use TinyEmitter, expect ES6 environment. Change global export to `Shuffle`.
Replace array-uniq with Array.from/Set
Replace xtend with Object.assign
Remove custom-event-polyfill
Use Array.prototype.includes (ES7)
7 years ago
Glen Cheney 4f95fba70b Update filterMode option. Add tests for filterMode. 7 years ago
David Gallego Varela 8e769ce651 Add the option to filter element with more than one key to _doesPassF… (#143)
* Add the option to filter element with more than one key to _doesPassFilter the new option is this.options.filterMode and values Shuffle.filterMode.EXCLUSIVE or Shuffle.filterMode.ADDITIVE

* Package change for use with npm

* Error on package.json

* Merge branch 'master' of github.com:Vestride/Shuffle

* check travis errors
7 years ago
Glen Cheney 61c975ccf1 Replace JSHint and JSCS with ESLint 7 years ago
Glen Cheney a56ccb3cd5 Replace webpack with rollup (#138) 7 years ago
Glen Cheney 407852eb72 Fix `before` styles not applied when the item didn’t move. Fixes #133 7 years ago
Glen Cheney 13d3dacc77
Fix delimeter option #108 8 years ago
Glen Cheney 95c49edf9d
fix transition delay not being applied correct 8 years ago
Glen Cheney ef1f1f1c88
Add `instance.group` back instead of changing the option object 8 years ago
Glen Cheney 790b957bc3
Use ES6 export for main file. Add index.js to export the `default` to module.exports
This would allow module bundlers like rollup to use jsnext:main and it'll all be ES6 import/exports
8 years ago
Glen Cheney e1ea20f7da
Replace Promise dependency with array-parallel package 8 years ago
Glen Cheney 7aa6461b4d Move layout positioning logic to its own file. 8 years ago
Glen Cheney 99ed4e37fe Add ability to customize styles. Rename filtered => visible and concealed => hidden.
Prefix shuffle item state classes.
Change ClassName => Classes because it's shorter.
8 years ago
Glen Cheney 150de2024f Remove `.es6` suffix for file name. Remove old grunt file.
Only include jQuery on pages which request it.
Use SRI hash for CDN version of jQuery.
8 years ago
Alex Jensen 1d8837009d filter items that have every category in keys 9 years ago
Glen Cheney f63df88dd2 Use the <html> element when the body doesn't exists when testing computed style. 9 years ago
Glen Cheney 16b42ec0b9 Handle decimal column widths better #46. New columnThreshold option. 9 years ago
Glen Cheney 86c8d2e77a Allow speed to be zero. Fixes #64 9 years ago
Glen Cheney 1c077779c4 Cancel previous animations instead of ignoring the new one. Fixes #69 9 years ago
Glen Cheney 5b51302b27 Remove padding offset fixes. Add info about it to FAQ. 10 years ago
Glen Cheney f2367d24e2 Add explanation of column set and another test to go with it. 10 years ago
Glen Cheney 9023e29f16 Small tweaks and JSDoc additions. 10 years ago
Glen Cheney 1abab75943 Fix maintaining last sort object when called without arguments. 10 years ago
Glen Cheney 930a4bf3bb Rename colYs to positions and position to point. 10 years ago