Ancora update dei nuGet packages (bootstrap, popper...)

This commit is contained in:
Samuele E. Locatelli
2020-01-21 10:16:11 +01:00
parent 8c80435f5c
commit 4d34224562
115 changed files with 5530 additions and 1278 deletions
+22
View File
@@ -0,0 +1,22 @@
import placements from '../methods/placements';
// Get rid of `auto` `auto-start` and `auto-end`
const validPlacements = placements.slice(3);
/**
* Given an initial placement, returns all the subsequent placements
* clockwise (or counter-clockwise).
*
* @method
* @memberof Popper.Utils
* @argument {String} placement - A valid placement (it accepts variations)
* @argument {Boolean} counter - Set to true to walk the placements counterclockwise
* @returns {Array} placements including their variations
*/
export default function clockwise(placement, counter = false) {
const index = validPlacements.indexOf(placement);
const arr = validPlacements
.slice(index + 1)
.concat(validPlacements.slice(0, index));
return counter ? arr.reverse() : arr;
}