mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
This commit is contained in:
parent
746e163d01
commit
1c7ea28b46
808 changed files with 316395 additions and 381162 deletions
13
node_modules/@popperjs/core/lib/modifiers/arrow.js
generated
vendored
13
node_modules/@popperjs/core/lib/modifiers/arrow.js
generated
vendored
|
@ -6,8 +6,7 @@ import getMainAxisFromPlacement from "../utils/getMainAxisFromPlacement.js";
|
|||
import { within } from "../utils/within.js";
|
||||
import mergePaddingObject from "../utils/mergePaddingObject.js";
|
||||
import expandToHashMap from "../utils/expandToHashMap.js";
|
||||
import { left, right, basePlacements, top, bottom } from "../enums.js";
|
||||
import { isHTMLElement } from "../dom-utils/instanceOf.js"; // eslint-disable-next-line import/no-unused-modules
|
||||
import { left, right, basePlacements, top, bottom } from "../enums.js"; // eslint-disable-next-line import/no-unused-modules
|
||||
|
||||
var toPaddingObject = function toPaddingObject(padding, state) {
|
||||
padding = typeof padding === 'function' ? padding(Object.assign({}, state.rects, {
|
||||
|
@ -72,17 +71,7 @@ function effect(_ref2) {
|
|||
}
|
||||
}
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
if (!isHTMLElement(arrowElement)) {
|
||||
console.error(['Popper: "arrow" element must be an HTMLElement (not an SVGElement).', 'To use an SVG arrow, wrap it in an HTMLElement that will be used as', 'the arrow.'].join(' '));
|
||||
}
|
||||
}
|
||||
|
||||
if (!contains(state.elements.popper, arrowElement)) {
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
console.error(['Popper: "arrow" modifier\'s `element` must be a child of the popper', 'element.'].join(' '));
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
22
node_modules/@popperjs/core/lib/modifiers/arrow.js.flow
generated
vendored
22
node_modules/@popperjs/core/lib/modifiers/arrow.js.flow
generated
vendored
|
@ -10,7 +10,6 @@ import { within } from '../utils/within';
|
|||
import mergePaddingObject from '../utils/mergePaddingObject';
|
||||
import expandToHashMap from '../utils/expandToHashMap';
|
||||
import { left, right, basePlacements, top, bottom } from '../enums';
|
||||
import { isHTMLElement } from '../dom-utils/instanceOf';
|
||||
|
||||
// eslint-disable-next-line import/no-unused-modules
|
||||
export type Options = {
|
||||
|
@ -101,28 +100,7 @@ function effect({ state, options }: ModifierArguments<Options>) {
|
|||
}
|
||||
}
|
||||
|
||||
if (false) {
|
||||
if (!isHTMLElement(arrowElement)) {
|
||||
console.error(
|
||||
[
|
||||
'Popper: "arrow" element must be an HTMLElement (not an SVGElement).',
|
||||
'To use an SVG arrow, wrap it in an HTMLElement that will be used as',
|
||||
'the arrow.',
|
||||
].join(' ')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
if (!contains(state.elements.popper, arrowElement)) {
|
||||
if (false) {
|
||||
console.error(
|
||||
[
|
||||
'Popper: "arrow" modifier\'s `element` must be a child of the popper',
|
||||
'element.',
|
||||
].join(' ')
|
||||
);
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
16
node_modules/@popperjs/core/lib/modifiers/computeStyles.js
generated
vendored
16
node_modules/@popperjs/core/lib/modifiers/computeStyles.js
generated
vendored
|
@ -16,10 +16,9 @@ var unsetSides = {
|
|||
// Zooming can change the DPR, but it seems to report a value that will
|
||||
// cleanly divide the values into the appropriate subpixels.
|
||||
|
||||
function roundOffsetsByDPR(_ref) {
|
||||
function roundOffsetsByDPR(_ref, win) {
|
||||
var x = _ref.x,
|
||||
y = _ref.y;
|
||||
var win = window;
|
||||
var dpr = win.devicePixelRatio || 1;
|
||||
return {
|
||||
x: round(x * dpr) / dpr || 0,
|
||||
|
@ -102,7 +101,7 @@ export function mapToStyles(_ref2) {
|
|||
var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
|
||||
x: x,
|
||||
y: y
|
||||
}) : {
|
||||
}, getWindow(popper)) : {
|
||||
x: x,
|
||||
y: y
|
||||
};
|
||||
|
@ -128,17 +127,6 @@ function computeStyles(_ref5) {
|
|||
adaptive = _options$adaptive === void 0 ? true : _options$adaptive,
|
||||
_options$roundOffsets = options.roundOffsets,
|
||||
roundOffsets = _options$roundOffsets === void 0 ? true : _options$roundOffsets;
|
||||
|
||||
if (process.env.NODE_ENV !== "production") {
|
||||
var transitionProperty = getComputedStyle(state.elements.popper).transitionProperty || '';
|
||||
|
||||
if (adaptive && ['transform', 'top', 'right', 'bottom', 'left'].some(function (property) {
|
||||
return transitionProperty.indexOf(property) >= 0;
|
||||
})) {
|
||||
console.warn(['Popper: Detected CSS transitions on at least one of the following', 'CSS properties: "transform", "top", "right", "bottom", "left".', '\n\n', 'Disable the "computeStyles" modifier\'s `adaptive` option to allow', 'for smooth transitions, or remove these properties from the CSS', 'transition declaration on the popper element if only transitioning', 'opacity or background-color for example.', '\n\n', 'We recommend using the popper element as a wrapper around an inner', 'element that can have any CSS property transitioned for animations.'].join(' '));
|
||||
}
|
||||
}
|
||||
|
||||
var commonStyles = {
|
||||
placement: getBasePlacement(state.placement),
|
||||
variation: getVariation(state.placement),
|
||||
|
|
36
node_modules/@popperjs/core/lib/modifiers/computeStyles.js.flow
generated
vendored
36
node_modules/@popperjs/core/lib/modifiers/computeStyles.js.flow
generated
vendored
|
@ -46,8 +46,7 @@ const unsetSides = {
|
|||
// Round the offsets to the nearest suitable subpixel based on the DPR.
|
||||
// Zooming can change the DPR, but it seems to report a value that will
|
||||
// cleanly divide the values into the appropriate subpixels.
|
||||
function roundOffsetsByDPR({ x, y }): Offsets {
|
||||
const win: Window = window;
|
||||
function roundOffsetsByDPR({ x, y }, win: Window): Offsets {
|
||||
const dpr = win.devicePixelRatio || 1;
|
||||
|
||||
return {
|
||||
|
@ -82,9 +81,7 @@ export function mapToStyles({
|
|||
let { x = 0, y = 0 } = offsets;
|
||||
|
||||
({ x, y } =
|
||||
typeof roundOffsets === 'function'
|
||||
? roundOffsets({ x, y })
|
||||
: { x, y });
|
||||
typeof roundOffsets === 'function' ? roundOffsets({ x, y }) : { x, y });
|
||||
|
||||
const hasX = offsets.hasOwnProperty('x');
|
||||
const hasY = offsets.hasOwnProperty('y');
|
||||
|
@ -150,7 +147,7 @@ export function mapToStyles({
|
|||
|
||||
({ x, y } =
|
||||
roundOffsets === true
|
||||
? roundOffsetsByDPR({ x, y })
|
||||
? roundOffsetsByDPR({ x, y }, getWindow(popper))
|
||||
: { x, y });
|
||||
|
||||
if (gpuAcceleration) {
|
||||
|
@ -184,33 +181,6 @@ function computeStyles({ state, options }: ModifierArguments<Options>) {
|
|||
roundOffsets = true,
|
||||
} = options;
|
||||
|
||||
if (false) {
|
||||
const transitionProperty =
|
||||
getComputedStyle(state.elements.popper).transitionProperty || '';
|
||||
|
||||
if (
|
||||
adaptive &&
|
||||
['transform', 'top', 'right', 'bottom', 'left'].some(
|
||||
(property) => transitionProperty.indexOf(property) >= 0
|
||||
)
|
||||
) {
|
||||
console.warn(
|
||||
[
|
||||
'Popper: Detected CSS transitions on at least one of the following',
|
||||
'CSS properties: "transform", "top", "right", "bottom", "left".',
|
||||
'\n\n',
|
||||
'Disable the "computeStyles" modifier\'s `adaptive` option to allow',
|
||||
'for smooth transitions, or remove these properties from the CSS',
|
||||
'transition declaration on the popper element if only transitioning',
|
||||
'opacity or background-color for example.',
|
||||
'\n\n',
|
||||
'We recommend using the popper element as a wrapper around an inner',
|
||||
'element that can have any CSS property transitioned for animations.',
|
||||
].join(' ')
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
const commonStyles = {
|
||||
placement: getBasePlacement(state.placement),
|
||||
variation: getVariation(state.placement),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue