mirror of
https://github.com/idanoo/GoScrobble
synced 2025-07-03 06:32:19 +00:00
0.2.0 - Mid migration
This commit is contained in:
parent
139e6a915e
commit
7e38fdbd7d
42393 changed files with 5358157 additions and 62 deletions
79
web/node_modules/autoprefixer/lib/hacks/align-content.js
generated
vendored
Normal file
79
web/node_modules/autoprefixer/lib/hacks/align-content.js
generated
vendored
Normal file
|
@ -0,0 +1,79 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var AlignContent = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(AlignContent, _Declaration);
|
||||
|
||||
function AlignContent() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = AlignContent.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2012 spec
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-line-pack';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'align-content';
|
||||
}
|
||||
/**
|
||||
* Change value for 2012 spec and ignore prefix for 2009
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2012) {
|
||||
decl.value = AlignContent.oldValues[decl.value] || decl.value;
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
if (spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return AlignContent;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(AlignContent, "names", ['align-content', 'flex-line-pack']);
|
||||
|
||||
_defineProperty(AlignContent, "oldValues", {
|
||||
'flex-end': 'end',
|
||||
'flex-start': 'start',
|
||||
'space-between': 'justify',
|
||||
'space-around': 'distribute'
|
||||
});
|
||||
|
||||
module.exports = AlignContent;
|
76
web/node_modules/autoprefixer/lib/hacks/align-items.js
generated
vendored
Normal file
76
web/node_modules/autoprefixer/lib/hacks/align-items.js
generated
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var AlignItems = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(AlignItems, _Declaration);
|
||||
|
||||
function AlignItems() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = AlignItems.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2009 and 2012 specs
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-align';
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-align';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'align-items';
|
||||
}
|
||||
/**
|
||||
* Change value for 2009 and 2012 specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2009 || spec === 2012) {
|
||||
decl.value = AlignItems.oldValues[decl.value] || decl.value;
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return AlignItems;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(AlignItems, "names", ['align-items', 'flex-align', 'box-align']);
|
||||
|
||||
_defineProperty(AlignItems, "oldValues", {
|
||||
'flex-end': 'end',
|
||||
'flex-start': 'start'
|
||||
});
|
||||
|
||||
module.exports = AlignItems;
|
84
web/node_modules/autoprefixer/lib/hacks/align-self.js
generated
vendored
Normal file
84
web/node_modules/autoprefixer/lib/hacks/align-self.js
generated
vendored
Normal file
|
@ -0,0 +1,84 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var AlignSelf = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(AlignSelf, _Declaration);
|
||||
|
||||
function AlignSelf() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = AlignSelf.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
return decl.parent && !decl.parent.some(function (i) {
|
||||
return i.prop && i.prop.startsWith('grid-');
|
||||
});
|
||||
}
|
||||
/**
|
||||
* Change property name for 2012 specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-item-align';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'align-self';
|
||||
}
|
||||
/**
|
||||
* Change value for 2012 spec and ignore prefix for 2009
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2012) {
|
||||
decl.value = AlignSelf.oldValues[decl.value] || decl.value;
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
if (spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return AlignSelf;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(AlignSelf, "names", ['align-self', 'flex-item-align']);
|
||||
|
||||
_defineProperty(AlignSelf, "oldValues", {
|
||||
'flex-end': 'end',
|
||||
'flex-start': 'start'
|
||||
});
|
||||
|
||||
module.exports = AlignSelf;
|
35
web/node_modules/autoprefixer/lib/hacks/animation.js
generated
vendored
Normal file
35
web/node_modules/autoprefixer/lib/hacks/animation.js
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Animation = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Animation, _Declaration);
|
||||
|
||||
function Animation() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Animation.prototype;
|
||||
|
||||
/**
|
||||
* Don’t add prefixes for modern values.
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return !decl.value.split(/\s+/).some(function (i) {
|
||||
var lower = i.toLowerCase();
|
||||
return lower === 'reverse' || lower === 'alternate-reverse';
|
||||
});
|
||||
};
|
||||
|
||||
return Animation;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Animation, "names", ['animation', 'animation-direction']);
|
||||
|
||||
module.exports = Animation;
|
39
web/node_modules/autoprefixer/lib/hacks/appearance.js
generated
vendored
Normal file
39
web/node_modules/autoprefixer/lib/hacks/appearance.js
generated
vendored
Normal file
|
@ -0,0 +1,39 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('../utils');
|
||||
|
||||
var Appearance = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Appearance, _Declaration);
|
||||
|
||||
function Appearance(name, prefixes, all) {
|
||||
var _this;
|
||||
|
||||
_this = _Declaration.call(this, name, prefixes, all) || this;
|
||||
|
||||
if (_this.prefixes) {
|
||||
_this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
||||
if (i === '-ms-') {
|
||||
return '-webkit-';
|
||||
}
|
||||
|
||||
return i;
|
||||
}));
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
return Appearance;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Appearance, "names", ['appearance']);
|
||||
|
||||
module.exports = Appearance;
|
35
web/node_modules/autoprefixer/lib/hacks/backdrop-filter.js
generated
vendored
Normal file
35
web/node_modules/autoprefixer/lib/hacks/backdrop-filter.js
generated
vendored
Normal file
|
@ -0,0 +1,35 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('../utils');
|
||||
|
||||
var BackdropFilter = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BackdropFilter, _Declaration);
|
||||
|
||||
function BackdropFilter(name, prefixes, all) {
|
||||
var _this;
|
||||
|
||||
_this = _Declaration.call(this, name, prefixes, all) || this;
|
||||
|
||||
if (_this.prefixes) {
|
||||
_this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
||||
return i === '-ms-' ? '-webkit-' : i;
|
||||
}));
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
return BackdropFilter;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BackdropFilter, "names", ['backdrop-filter']);
|
||||
|
||||
module.exports = BackdropFilter;
|
41
web/node_modules/autoprefixer/lib/hacks/background-clip.js
generated
vendored
Normal file
41
web/node_modules/autoprefixer/lib/hacks/background-clip.js
generated
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('../utils');
|
||||
|
||||
var BackgroundClip = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BackgroundClip, _Declaration);
|
||||
|
||||
function BackgroundClip(name, prefixes, all) {
|
||||
var _this;
|
||||
|
||||
_this = _Declaration.call(this, name, prefixes, all) || this;
|
||||
|
||||
if (_this.prefixes) {
|
||||
_this.prefixes = utils.uniq(_this.prefixes.map(function (i) {
|
||||
return i === '-ms-' ? '-webkit-' : i;
|
||||
}));
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
var _proto = BackgroundClip.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
return decl.value.toLowerCase() === 'text';
|
||||
};
|
||||
|
||||
return BackgroundClip;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BackgroundClip, "names", ['background-clip']);
|
||||
|
||||
module.exports = BackgroundClip;
|
38
web/node_modules/autoprefixer/lib/hacks/background-size.js
generated
vendored
Normal file
38
web/node_modules/autoprefixer/lib/hacks/background-size.js
generated
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BackgroundSize = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BackgroundSize, _Declaration);
|
||||
|
||||
function BackgroundSize() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BackgroundSize.prototype;
|
||||
|
||||
/**
|
||||
* Duplication parameter for -webkit- browsers
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var value = decl.value.toLowerCase();
|
||||
|
||||
if (prefix === '-webkit-' && !value.includes(' ') && value !== 'contain' && value !== 'cover') {
|
||||
decl.value = decl.value + ' ' + decl.value;
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return BackgroundSize;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BackgroundSize, "names", ['background-size']);
|
||||
|
||||
module.exports = BackgroundSize;
|
48
web/node_modules/autoprefixer/lib/hacks/block-logical.js
generated
vendored
Normal file
48
web/node_modules/autoprefixer/lib/hacks/block-logical.js
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BlockLogical = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BlockLogical, _Declaration);
|
||||
|
||||
function BlockLogical() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BlockLogical.prototype;
|
||||
|
||||
/**
|
||||
* Use old syntax for -moz- and -webkit-
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
if (prop.includes('-start')) {
|
||||
return prefix + prop.replace('-block-start', '-before');
|
||||
}
|
||||
|
||||
return prefix + prop.replace('-block-end', '-after');
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
if (prop.includes('-before')) {
|
||||
return prop.replace('-before', '-block-start');
|
||||
}
|
||||
|
||||
return prop.replace('-after', '-block-end');
|
||||
};
|
||||
|
||||
return BlockLogical;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BlockLogical, "names", ['border-block-start', 'border-block-end', 'margin-block-start', 'margin-block-end', 'padding-block-start', 'padding-block-end', 'border-before', 'border-after', 'margin-before', 'margin-after', 'padding-before', 'padding-after']);
|
||||
|
||||
module.exports = BlockLogical;
|
33
web/node_modules/autoprefixer/lib/hacks/border-image.js
generated
vendored
Normal file
33
web/node_modules/autoprefixer/lib/hacks/border-image.js
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BorderImage = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BorderImage, _Declaration);
|
||||
|
||||
function BorderImage() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BorderImage.prototype;
|
||||
|
||||
/**
|
||||
* Remove fill parameter for prefixed declarations
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
decl.value = decl.value.replace(/\s+fill(\s)/, '$1');
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return BorderImage;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BorderImage, "names", ['border-image']);
|
||||
|
||||
module.exports = BorderImage;
|
62
web/node_modules/autoprefixer/lib/hacks/border-radius.js
generated
vendored
Normal file
62
web/node_modules/autoprefixer/lib/hacks/border-radius.js
generated
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BorderRadius = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BorderRadius, _Declaration);
|
||||
|
||||
function BorderRadius() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BorderRadius.prototype;
|
||||
|
||||
/**
|
||||
* Change syntax, when add Mozilla prefix
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
if (prefix === '-moz-') {
|
||||
return prefix + (BorderRadius.toMozilla[prop] || prop);
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return unprefixed version of property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return BorderRadius.toNormal[prop] || prop;
|
||||
};
|
||||
|
||||
return BorderRadius;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BorderRadius, "names", ['border-radius']);
|
||||
|
||||
_defineProperty(BorderRadius, "toMozilla", {});
|
||||
|
||||
_defineProperty(BorderRadius, "toNormal", {});
|
||||
|
||||
for (var _i = 0, _arr = ['top', 'bottom']; _i < _arr.length; _i++) {
|
||||
var ver = _arr[_i];
|
||||
|
||||
for (var _i2 = 0, _arr2 = ['left', 'right']; _i2 < _arr2.length; _i2++) {
|
||||
var hor = _arr2[_i2];
|
||||
var normal = "border-" + ver + "-" + hor + "-radius";
|
||||
var mozilla = "border-radius-" + ver + hor;
|
||||
BorderRadius.names.push(normal);
|
||||
BorderRadius.names.push(mozilla);
|
||||
BorderRadius.toMozilla[normal] = mozilla;
|
||||
BorderRadius.toNormal[mozilla] = normal;
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = BorderRadius;
|
76
web/node_modules/autoprefixer/lib/hacks/break-props.js
generated
vendored
Normal file
76
web/node_modules/autoprefixer/lib/hacks/break-props.js
generated
vendored
Normal file
|
@ -0,0 +1,76 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BreakProps = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(BreakProps, _Declaration);
|
||||
|
||||
function BreakProps() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = BreakProps.prototype;
|
||||
|
||||
/**
|
||||
* Change name for -webkit- and -moz- prefix
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + "column-" + prop;
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
if (prop.includes('inside')) {
|
||||
return 'break-inside';
|
||||
}
|
||||
|
||||
if (prop.includes('before')) {
|
||||
return 'break-before';
|
||||
}
|
||||
|
||||
return 'break-after';
|
||||
}
|
||||
/**
|
||||
* Change prefixed value for avoid-column and avoid-page
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (decl.prop === 'break-inside' && decl.value === 'avoid-column' || decl.value === 'avoid-page') {
|
||||
decl.value = 'avoid';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
/**
|
||||
* Don’t prefix some values
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (decl.prop !== 'break-inside') {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
|
||||
if (/region/i.test(decl.value) || /page/i.test(decl.value)) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
};
|
||||
|
||||
return BreakProps;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(BreakProps, "names", ['break-inside', 'page-break-inside', 'column-break-inside', 'break-before', 'page-break-before', 'column-break-before', 'break-after', 'page-break-after', 'column-break-after']);
|
||||
|
||||
module.exports = BreakProps;
|
40
web/node_modules/autoprefixer/lib/hacks/color-adjust.js
generated
vendored
Normal file
40
web/node_modules/autoprefixer/lib/hacks/color-adjust.js
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var ColorAdjust = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(ColorAdjust, _Declaration);
|
||||
|
||||
function ColorAdjust() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = ColorAdjust.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for WebKit-based browsers
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + 'print-color-adjust';
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'color-adjust';
|
||||
};
|
||||
|
||||
return ColorAdjust;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(ColorAdjust, "names", ['color-adjust', 'print-color-adjust']);
|
||||
|
||||
module.exports = ColorAdjust;
|
54
web/node_modules/autoprefixer/lib/hacks/cross-fade.js
generated
vendored
Normal file
54
web/node_modules/autoprefixer/lib/hacks/cross-fade.js
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var list = require('postcss').list;
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var CrossFade = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(CrossFade, _Value);
|
||||
|
||||
function CrossFade() {
|
||||
return _Value.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = CrossFade.prototype;
|
||||
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
var _this = this;
|
||||
|
||||
return list.space(string).map(function (value) {
|
||||
if (value.slice(0, +_this.name.length + 1) !== _this.name + '(') {
|
||||
return value;
|
||||
}
|
||||
|
||||
var close = value.lastIndexOf(')');
|
||||
var after = value.slice(close + 1);
|
||||
var args = value.slice(_this.name.length + 1, close);
|
||||
|
||||
if (prefix === '-webkit-') {
|
||||
var match = args.match(/\d*.?\d+%?/);
|
||||
|
||||
if (match) {
|
||||
args = args.slice(match[0].length).trim();
|
||||
args += ", " + match[0];
|
||||
} else {
|
||||
args += ', 0.5';
|
||||
}
|
||||
}
|
||||
|
||||
return prefix + _this.name + '(' + args + ')' + after;
|
||||
}).join(' ');
|
||||
};
|
||||
|
||||
return CrossFade;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(CrossFade, "names", ['cross-fade']);
|
||||
|
||||
module.exports = CrossFade;
|
94
web/node_modules/autoprefixer/lib/hacks/display-flex.js
generated
vendored
Normal file
94
web/node_modules/autoprefixer/lib/hacks/display-flex.js
generated
vendored
Normal file
|
@ -0,0 +1,94 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var OldValue = require('../old-value');
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var DisplayFlex = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(DisplayFlex, _Value);
|
||||
|
||||
function DisplayFlex(name, prefixes) {
|
||||
var _this;
|
||||
|
||||
_this = _Value.call(this, name, prefixes) || this;
|
||||
|
||||
if (name === 'display-flex') {
|
||||
_this.name = 'flex';
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* Faster check for flex value
|
||||
*/
|
||||
|
||||
|
||||
var _proto = DisplayFlex.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
return decl.prop === 'display' && decl.value === this.name;
|
||||
}
|
||||
/**
|
||||
* Return value by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
var spec, value;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
if (this.name === 'flex') {
|
||||
value = 'box';
|
||||
} else {
|
||||
value = 'inline-box';
|
||||
}
|
||||
} else if (spec === 2012) {
|
||||
if (this.name === 'flex') {
|
||||
value = 'flexbox';
|
||||
} else {
|
||||
value = 'inline-flexbox';
|
||||
}
|
||||
} else if (spec === 'final') {
|
||||
value = this.name;
|
||||
}
|
||||
|
||||
return prefix + value;
|
||||
}
|
||||
/**
|
||||
* Add prefix to value depend on flebox spec version
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
return this.prefixed(prefix);
|
||||
}
|
||||
/**
|
||||
* Change value for old specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
var prefixed = this.prefixed(prefix);
|
||||
if (!prefixed) return undefined;
|
||||
return new OldValue(this.name, prefixed);
|
||||
};
|
||||
|
||||
return DisplayFlex;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(DisplayFlex, "names", ['display-flex', 'inline-flex']);
|
||||
|
||||
module.exports = DisplayFlex;
|
41
web/node_modules/autoprefixer/lib/hacks/display-grid.js
generated
vendored
Normal file
41
web/node_modules/autoprefixer/lib/hacks/display-grid.js
generated
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var DisplayGrid = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(DisplayGrid, _Value);
|
||||
|
||||
function DisplayGrid(name, prefixes) {
|
||||
var _this;
|
||||
|
||||
_this = _Value.call(this, name, prefixes) || this;
|
||||
|
||||
if (name === 'display-grid') {
|
||||
_this.name = 'grid';
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
/**
|
||||
* Faster check for flex value
|
||||
*/
|
||||
|
||||
|
||||
var _proto = DisplayGrid.prototype;
|
||||
|
||||
_proto.check = function check(decl) {
|
||||
return decl.prop === 'display' && decl.value === this.name;
|
||||
};
|
||||
|
||||
return DisplayGrid;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(DisplayGrid, "names", ['display-grid', 'inline-grid']);
|
||||
|
||||
module.exports = DisplayGrid;
|
31
web/node_modules/autoprefixer/lib/hacks/filter-value.js
generated
vendored
Normal file
31
web/node_modules/autoprefixer/lib/hacks/filter-value.js
generated
vendored
Normal file
|
@ -0,0 +1,31 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var FilterValue = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(FilterValue, _Value);
|
||||
|
||||
function FilterValue(name, prefixes) {
|
||||
var _this;
|
||||
|
||||
_this = _Value.call(this, name, prefixes) || this;
|
||||
|
||||
if (name === 'filter-function') {
|
||||
_this.name = 'filter';
|
||||
}
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
return FilterValue;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(FilterValue, "names", ['filter', 'filter-function']);
|
||||
|
||||
module.exports = FilterValue;
|
33
web/node_modules/autoprefixer/lib/hacks/filter.js
generated
vendored
Normal file
33
web/node_modules/autoprefixer/lib/hacks/filter.js
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Filter = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Filter, _Declaration);
|
||||
|
||||
function Filter() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Filter.prototype;
|
||||
|
||||
/**
|
||||
* Check is it Internet Explorer filter
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
var v = decl.value;
|
||||
return !v.toLowerCase().includes('alpha(') && !v.includes('DXImageTransform.Microsoft') && !v.includes('data:image/svg+xml');
|
||||
};
|
||||
|
||||
return Filter;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Filter, "names", ['filter']);
|
||||
|
||||
module.exports = Filter;
|
72
web/node_modules/autoprefixer/lib/hacks/flex-basis.js
generated
vendored
Normal file
72
web/node_modules/autoprefixer/lib/hacks/flex-basis.js
generated
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexBasis = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexBasis, _Declaration);
|
||||
|
||||
function FlexBasis() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexBasis.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex-basis';
|
||||
}
|
||||
/**
|
||||
* Return flex property for 2012 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-preferred-size';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Ignore 2009 spec and use flex property for 2012
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec2 = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec2[0];
|
||||
prefix = _flexSpec2[1];
|
||||
|
||||
if (spec === 2012 || spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return FlexBasis;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexBasis, "names", ['flex-basis', 'flex-preferred-size']);
|
||||
|
||||
module.exports = FlexBasis;
|
108
web/node_modules/autoprefixer/lib/hacks/flex-direction.js
generated
vendored
Normal file
108
web/node_modules/autoprefixer/lib/hacks/flex-direction.js
generated
vendored
Normal file
|
@ -0,0 +1,108 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexDirection = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexDirection, _Declaration);
|
||||
|
||||
function FlexDirection() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexDirection.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex-direction';
|
||||
}
|
||||
/**
|
||||
* Use two properties for 2009 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec !== 2009) {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
|
||||
var already = decl.parent.some(function (i) {
|
||||
return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction';
|
||||
});
|
||||
|
||||
if (already) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var v = decl.value;
|
||||
var orient, dir;
|
||||
|
||||
if (v === 'inherit' || v === 'initial' || v === 'unset') {
|
||||
orient = v;
|
||||
dir = v;
|
||||
} else {
|
||||
orient = v.includes('row') ? 'horizontal' : 'vertical';
|
||||
dir = v.includes('reverse') ? 'reverse' : 'normal';
|
||||
}
|
||||
|
||||
var cloned = this.clone(decl);
|
||||
cloned.prop = prefix + 'box-orient';
|
||||
cloned.value = orient;
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
decl.parent.insertBefore(decl, cloned);
|
||||
cloned = this.clone(decl);
|
||||
cloned.prop = prefix + 'box-direction';
|
||||
cloned.value = dir;
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, cloned);
|
||||
}
|
||||
/**
|
||||
* Clean two properties for 2009 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec2 = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec2[0];
|
||||
prefix = _flexSpec2[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return [prefix + 'box-orient', prefix + 'box-direction'];
|
||||
} else {
|
||||
return _Declaration.prototype.old.call(this, prop, prefix);
|
||||
}
|
||||
};
|
||||
|
||||
return FlexDirection;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexDirection, "names", ['flex-direction', 'box-direction', 'box-orient']);
|
||||
|
||||
module.exports = FlexDirection;
|
81
web/node_modules/autoprefixer/lib/hacks/flex-flow.js
generated
vendored
Normal file
81
web/node_modules/autoprefixer/lib/hacks/flex-flow.js
generated
vendored
Normal file
|
@ -0,0 +1,81 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexFlow = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexFlow, _Declaration);
|
||||
|
||||
function FlexFlow() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexFlow.prototype;
|
||||
|
||||
/**
|
||||
* Use two properties for 2009 spec
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec !== 2009) {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
|
||||
var values = decl.value.split(/\s+/).filter(function (i) {
|
||||
return i !== 'wrap' && i !== 'nowrap' && 'wrap-reverse';
|
||||
});
|
||||
|
||||
if (values.length === 0) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var already = decl.parent.some(function (i) {
|
||||
return i.prop === prefix + 'box-orient' || i.prop === prefix + 'box-direction';
|
||||
});
|
||||
|
||||
if (already) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var value = values[0];
|
||||
var orient = value.includes('row') ? 'horizontal' : 'vertical';
|
||||
var dir = value.includes('reverse') ? 'reverse' : 'normal';
|
||||
var cloned = this.clone(decl);
|
||||
cloned.prop = prefix + 'box-orient';
|
||||
cloned.value = orient;
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
decl.parent.insertBefore(decl, cloned);
|
||||
cloned = this.clone(decl);
|
||||
cloned.prop = prefix + 'box-direction';
|
||||
cloned.value = dir;
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, cloned);
|
||||
};
|
||||
|
||||
return FlexFlow;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexFlow, "names", ['flex-flow', 'box-direction', 'box-orient']);
|
||||
|
||||
module.exports = FlexFlow;
|
57
web/node_modules/autoprefixer/lib/hacks/flex-grow.js
generated
vendored
Normal file
57
web/node_modules/autoprefixer/lib/hacks/flex-grow.js
generated
vendored
Normal file
|
@ -0,0 +1,57 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Flex = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Flex, _Declaration);
|
||||
|
||||
function Flex() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Flex.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex';
|
||||
}
|
||||
/**
|
||||
* Return flex property for 2009 and 2012 specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-flex';
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-positive';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
};
|
||||
|
||||
return Flex;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Flex, "names", ['flex-grow', 'flex-positive']);
|
||||
|
||||
module.exports = Flex;
|
72
web/node_modules/autoprefixer/lib/hacks/flex-shrink.js
generated
vendored
Normal file
72
web/node_modules/autoprefixer/lib/hacks/flex-shrink.js
generated
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexShrink = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexShrink, _Declaration);
|
||||
|
||||
function FlexShrink() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexShrink.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex-shrink';
|
||||
}
|
||||
/**
|
||||
* Return flex property for 2012 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-negative';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Ignore 2009 spec and use flex property for 2012
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec2 = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec2[0];
|
||||
prefix = _flexSpec2[1];
|
||||
|
||||
if (spec === 2012 || spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return FlexShrink;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexShrink, "names", ['flex-shrink', 'flex-negative']);
|
||||
|
||||
module.exports = FlexShrink;
|
22
web/node_modules/autoprefixer/lib/hacks/flex-spec.js
generated
vendored
Normal file
22
web/node_modules/autoprefixer/lib/hacks/flex-spec.js
generated
vendored
Normal file
|
@ -0,0 +1,22 @@
|
|||
"use strict";
|
||||
|
||||
/**
|
||||
* Return flexbox spec versions by prefix
|
||||
*/
|
||||
module.exports = function (prefix) {
|
||||
var spec;
|
||||
|
||||
if (prefix === '-webkit- 2009' || prefix === '-moz-') {
|
||||
spec = 2009;
|
||||
} else if (prefix === '-ms-') {
|
||||
spec = 2012;
|
||||
} else if (prefix === '-webkit-') {
|
||||
spec = 'final';
|
||||
}
|
||||
|
||||
if (prefix === '-webkit- 2009') {
|
||||
prefix = '-webkit-';
|
||||
}
|
||||
|
||||
return [spec, prefix];
|
||||
};
|
40
web/node_modules/autoprefixer/lib/hacks/flex-wrap.js
generated
vendored
Normal file
40
web/node_modules/autoprefixer/lib/hacks/flex-wrap.js
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var FlexWrap = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(FlexWrap, _Declaration);
|
||||
|
||||
function FlexWrap() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = FlexWrap.prototype;
|
||||
|
||||
/**
|
||||
* Don't add prefix for 2009 spec
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec !== 2009) {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return FlexWrap;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(FlexWrap, "names", ['flex-wrap']);
|
||||
|
||||
module.exports = FlexWrap;
|
85
web/node_modules/autoprefixer/lib/hacks/flex.js
generated
vendored
Normal file
85
web/node_modules/autoprefixer/lib/hacks/flex.js
generated
vendored
Normal file
|
@ -0,0 +1,85 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var list = require('postcss').list;
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Flex = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Flex, _Declaration);
|
||||
|
||||
function Flex() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Flex.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2009 spec
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-flex';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'flex';
|
||||
}
|
||||
/**
|
||||
* Spec 2009 supports only first argument
|
||||
* Spec 2012 disallows unitless basis
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2009) {
|
||||
decl.value = list.space(decl.value)[0];
|
||||
decl.value = Flex.oldValues[decl.value] || decl.value;
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
var components = list.space(decl.value);
|
||||
|
||||
if (components.length === 3 && components[2] === '0') {
|
||||
decl.value = components.slice(0, 2).concat('0px').join(' ');
|
||||
}
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return Flex;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Flex, "names", ['flex', 'box-flex']);
|
||||
|
||||
_defineProperty(Flex, "oldValues", {
|
||||
auto: '1',
|
||||
none: '0'
|
||||
});
|
||||
|
||||
module.exports = Flex;
|
40
web/node_modules/autoprefixer/lib/hacks/fullscreen.js
generated
vendored
Normal file
40
web/node_modules/autoprefixer/lib/hacks/fullscreen.js
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Selector = require('../selector');
|
||||
|
||||
var Fullscreen = /*#__PURE__*/function (_Selector) {
|
||||
_inheritsLoose(Fullscreen, _Selector);
|
||||
|
||||
function Fullscreen() {
|
||||
return _Selector.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Fullscreen.prototype;
|
||||
|
||||
/**
|
||||
* Return different selectors depend on prefix
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return ':-webkit-full-screen';
|
||||
}
|
||||
|
||||
if (prefix === '-moz-') {
|
||||
return ':-moz-full-screen';
|
||||
}
|
||||
|
||||
return ":" + prefix + "fullscreen";
|
||||
};
|
||||
|
||||
return Fullscreen;
|
||||
}(Selector);
|
||||
|
||||
_defineProperty(Fullscreen, "names", [':fullscreen']);
|
||||
|
||||
module.exports = Fullscreen;
|
519
web/node_modules/autoprefixer/lib/hacks/gradient.js
generated
vendored
Normal file
519
web/node_modules/autoprefixer/lib/hacks/gradient.js
generated
vendored
Normal file
|
@ -0,0 +1,519 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var parser = require('postcss-value-parser');
|
||||
|
||||
var range = require('normalize-range');
|
||||
|
||||
var OldValue = require('../old-value');
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var utils = require('../utils');
|
||||
|
||||
var IS_DIRECTION = /top|left|right|bottom/gi;
|
||||
|
||||
var Gradient = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(Gradient, _Value);
|
||||
|
||||
function Gradient() {
|
||||
var _this;
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
_this = _Value.call.apply(_Value, [this].concat(args)) || this;
|
||||
|
||||
_defineProperty(_assertThisInitialized(_this), "directions", {
|
||||
top: 'bottom',
|
||||
left: 'right',
|
||||
bottom: 'top',
|
||||
right: 'left'
|
||||
});
|
||||
|
||||
_defineProperty(_assertThisInitialized(_this), "oldDirections", {
|
||||
'top': 'left bottom, left top',
|
||||
'left': 'right top, left top',
|
||||
'bottom': 'left top, left bottom',
|
||||
'right': 'left top, right top',
|
||||
'top right': 'left bottom, right top',
|
||||
'top left': 'right bottom, left top',
|
||||
'right top': 'left bottom, right top',
|
||||
'right bottom': 'left top, right bottom',
|
||||
'bottom right': 'left top, right bottom',
|
||||
'bottom left': 'right top, left bottom',
|
||||
'left top': 'right bottom, left top',
|
||||
'left bottom': 'right top, left bottom'
|
||||
});
|
||||
|
||||
return _this;
|
||||
}
|
||||
|
||||
var _proto = Gradient.prototype;
|
||||
|
||||
/**
|
||||
* Change degrees for webkit prefix
|
||||
*/
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
var ast = parser(string);
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(ast.nodes), _step; !(_step = _iterator()).done;) {
|
||||
var node = _step.value;
|
||||
|
||||
if (node.type === 'function' && node.value === this.name) {
|
||||
node.nodes = this.newDirection(node.nodes);
|
||||
node.nodes = this.normalize(node.nodes);
|
||||
|
||||
if (prefix === '-webkit- old') {
|
||||
var changes = this.oldWebkit(node);
|
||||
|
||||
if (!changes) {
|
||||
return false;
|
||||
}
|
||||
} else {
|
||||
node.nodes = this.convertDirection(node.nodes);
|
||||
node.value = prefix + node.value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return ast.toString();
|
||||
}
|
||||
/**
|
||||
* Replace first token
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.replaceFirst = function replaceFirst(params) {
|
||||
for (var _len2 = arguments.length, words = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||
words[_key2 - 1] = arguments[_key2];
|
||||
}
|
||||
|
||||
var prefix = words.map(function (i) {
|
||||
if (i === ' ') {
|
||||
return {
|
||||
type: 'space',
|
||||
value: i
|
||||
};
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'word',
|
||||
value: i
|
||||
};
|
||||
});
|
||||
return prefix.concat(params.slice(1));
|
||||
}
|
||||
/**
|
||||
* Convert angle unit to deg
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalizeUnit = function normalizeUnit(str, full) {
|
||||
var num = parseFloat(str);
|
||||
var deg = num / full * 360;
|
||||
return deg + "deg";
|
||||
}
|
||||
/**
|
||||
* Normalize angle
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(nodes) {
|
||||
if (!nodes[0]) return nodes;
|
||||
|
||||
if (/-?\d+(.\d+)?grad/.test(nodes[0].value)) {
|
||||
nodes[0].value = this.normalizeUnit(nodes[0].value, 400);
|
||||
} else if (/-?\d+(.\d+)?rad/.test(nodes[0].value)) {
|
||||
nodes[0].value = this.normalizeUnit(nodes[0].value, 2 * Math.PI);
|
||||
} else if (/-?\d+(.\d+)?turn/.test(nodes[0].value)) {
|
||||
nodes[0].value = this.normalizeUnit(nodes[0].value, 1);
|
||||
} else if (nodes[0].value.includes('deg')) {
|
||||
var num = parseFloat(nodes[0].value);
|
||||
num = range.wrap(0, 360, num);
|
||||
nodes[0].value = num + "deg";
|
||||
}
|
||||
|
||||
if (nodes[0].value === '0deg') {
|
||||
nodes = this.replaceFirst(nodes, 'to', ' ', 'top');
|
||||
} else if (nodes[0].value === '90deg') {
|
||||
nodes = this.replaceFirst(nodes, 'to', ' ', 'right');
|
||||
} else if (nodes[0].value === '180deg') {
|
||||
nodes = this.replaceFirst(nodes, 'to', ' ', 'bottom');
|
||||
} else if (nodes[0].value === '270deg') {
|
||||
nodes = this.replaceFirst(nodes, 'to', ' ', 'left');
|
||||
}
|
||||
|
||||
return nodes;
|
||||
}
|
||||
/**
|
||||
* Replace old direction to new
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.newDirection = function newDirection(params) {
|
||||
if (params[0].value === 'to') {
|
||||
return params;
|
||||
}
|
||||
|
||||
IS_DIRECTION.lastIndex = 0; // reset search index of global regexp
|
||||
|
||||
if (!IS_DIRECTION.test(params[0].value)) {
|
||||
return params;
|
||||
}
|
||||
|
||||
params.unshift({
|
||||
type: 'word',
|
||||
value: 'to'
|
||||
}, {
|
||||
type: 'space',
|
||||
value: ' '
|
||||
});
|
||||
|
||||
for (var i = 2; i < params.length; i++) {
|
||||
if (params[i].type === 'div') {
|
||||
break;
|
||||
}
|
||||
|
||||
if (params[i].type === 'word') {
|
||||
params[i].value = this.revertDirection(params[i].value);
|
||||
}
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
/**
|
||||
* Look for at word
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.isRadial = function isRadial(params) {
|
||||
var state = 'before';
|
||||
|
||||
for (var _iterator2 = _createForOfIteratorHelperLoose(params), _step2; !(_step2 = _iterator2()).done;) {
|
||||
var param = _step2.value;
|
||||
|
||||
if (state === 'before' && param.type === 'space') {
|
||||
state = 'at';
|
||||
} else if (state === 'at' && param.value === 'at') {
|
||||
state = 'after';
|
||||
} else if (state === 'after' && param.type === 'space') {
|
||||
return true;
|
||||
} else if (param.type === 'div') {
|
||||
break;
|
||||
} else {
|
||||
state = 'before';
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Change new direction to old
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.convertDirection = function convertDirection(params) {
|
||||
if (params.length > 0) {
|
||||
if (params[0].value === 'to') {
|
||||
this.fixDirection(params);
|
||||
} else if (params[0].value.includes('deg')) {
|
||||
this.fixAngle(params);
|
||||
} else if (this.isRadial(params)) {
|
||||
this.fixRadial(params);
|
||||
}
|
||||
}
|
||||
|
||||
return params;
|
||||
}
|
||||
/**
|
||||
* Replace `to top left` to `bottom right`
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.fixDirection = function fixDirection(params) {
|
||||
params.splice(0, 2);
|
||||
|
||||
for (var _iterator3 = _createForOfIteratorHelperLoose(params), _step3; !(_step3 = _iterator3()).done;) {
|
||||
var param = _step3.value;
|
||||
|
||||
if (param.type === 'div') {
|
||||
break;
|
||||
}
|
||||
|
||||
if (param.type === 'word') {
|
||||
param.value = this.revertDirection(param.value);
|
||||
}
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Add 90 degrees
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.fixAngle = function fixAngle(params) {
|
||||
var first = params[0].value;
|
||||
first = parseFloat(first);
|
||||
first = Math.abs(450 - first) % 360;
|
||||
first = this.roundFloat(first, 3);
|
||||
params[0].value = first + "deg";
|
||||
}
|
||||
/**
|
||||
* Fix radial direction syntax
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.fixRadial = function fixRadial(params) {
|
||||
var first = [];
|
||||
var second = [];
|
||||
var a, b, c, i, next;
|
||||
|
||||
for (i = 0; i < params.length - 2; i++) {
|
||||
a = params[i];
|
||||
b = params[i + 1];
|
||||
c = params[i + 2];
|
||||
|
||||
if (a.type === 'space' && b.value === 'at' && c.type === 'space') {
|
||||
next = i + 3;
|
||||
break;
|
||||
} else {
|
||||
first.push(a);
|
||||
}
|
||||
}
|
||||
|
||||
var div;
|
||||
|
||||
for (i = next; i < params.length; i++) {
|
||||
if (params[i].type === 'div') {
|
||||
div = params[i];
|
||||
break;
|
||||
} else {
|
||||
second.push(params[i]);
|
||||
}
|
||||
}
|
||||
|
||||
params.splice.apply(params, [0, i].concat(second, [div], first));
|
||||
};
|
||||
|
||||
_proto.revertDirection = function revertDirection(word) {
|
||||
return this.directions[word.toLowerCase()] || word;
|
||||
}
|
||||
/**
|
||||
* Round float and save digits under dot
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.roundFloat = function roundFloat(_float, digits) {
|
||||
return parseFloat(_float.toFixed(digits));
|
||||
}
|
||||
/**
|
||||
* Convert to old webkit syntax
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.oldWebkit = function oldWebkit(node) {
|
||||
var nodes = node.nodes;
|
||||
var string = parser.stringify(node.nodes);
|
||||
|
||||
if (this.name !== 'linear-gradient') {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (nodes[0] && nodes[0].value.includes('deg')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (string.includes('px') || string.includes('-corner') || string.includes('-side')) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var params = [[]];
|
||||
|
||||
for (var _iterator4 = _createForOfIteratorHelperLoose(nodes), _step4; !(_step4 = _iterator4()).done;) {
|
||||
var i = _step4.value;
|
||||
params[params.length - 1].push(i);
|
||||
|
||||
if (i.type === 'div' && i.value === ',') {
|
||||
params.push([]);
|
||||
}
|
||||
}
|
||||
|
||||
this.oldDirection(params);
|
||||
this.colorStops(params);
|
||||
node.nodes = [];
|
||||
|
||||
for (var _i = 0, _params = params; _i < _params.length; _i++) {
|
||||
var param = _params[_i];
|
||||
node.nodes = node.nodes.concat(param);
|
||||
}
|
||||
|
||||
node.nodes.unshift({
|
||||
type: 'word',
|
||||
value: 'linear'
|
||||
}, this.cloneDiv(node.nodes));
|
||||
node.value = '-webkit-gradient';
|
||||
return true;
|
||||
}
|
||||
/**
|
||||
* Change direction syntax to old webkit
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.oldDirection = function oldDirection(params) {
|
||||
var div = this.cloneDiv(params[0]);
|
||||
|
||||
if (params[0][0].value !== 'to') {
|
||||
return params.unshift([{
|
||||
type: 'word',
|
||||
value: this.oldDirections.bottom
|
||||
}, div]);
|
||||
} else {
|
||||
var words = [];
|
||||
|
||||
for (var _iterator5 = _createForOfIteratorHelperLoose(params[0].slice(2)), _step5; !(_step5 = _iterator5()).done;) {
|
||||
var node = _step5.value;
|
||||
|
||||
if (node.type === 'word') {
|
||||
words.push(node.value.toLowerCase());
|
||||
}
|
||||
}
|
||||
|
||||
words = words.join(' ');
|
||||
var old = this.oldDirections[words] || words;
|
||||
params[0] = [{
|
||||
type: 'word',
|
||||
value: old
|
||||
}, div];
|
||||
return params[0];
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Get div token from exists parameters
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.cloneDiv = function cloneDiv(params) {
|
||||
for (var _iterator6 = _createForOfIteratorHelperLoose(params), _step6; !(_step6 = _iterator6()).done;) {
|
||||
var i = _step6.value;
|
||||
|
||||
if (i.type === 'div' && i.value === ',') {
|
||||
return i;
|
||||
}
|
||||
}
|
||||
|
||||
return {
|
||||
type: 'div',
|
||||
value: ',',
|
||||
after: ' '
|
||||
};
|
||||
}
|
||||
/**
|
||||
* Change colors syntax to old webkit
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.colorStops = function colorStops(params) {
|
||||
var result = [];
|
||||
|
||||
for (var i = 0; i < params.length; i++) {
|
||||
var pos = void 0;
|
||||
var param = params[i];
|
||||
var item = void 0;
|
||||
|
||||
if (i === 0) {
|
||||
continue;
|
||||
}
|
||||
|
||||
var color = parser.stringify(param[0]);
|
||||
|
||||
if (param[1] && param[1].type === 'word') {
|
||||
pos = param[1].value;
|
||||
} else if (param[2] && param[2].type === 'word') {
|
||||
pos = param[2].value;
|
||||
}
|
||||
|
||||
var stop = void 0;
|
||||
|
||||
if (i === 1 && (!pos || pos === '0%')) {
|
||||
stop = "from(" + color + ")";
|
||||
} else if (i === params.length - 1 && (!pos || pos === '100%')) {
|
||||
stop = "to(" + color + ")";
|
||||
} else if (pos) {
|
||||
stop = "color-stop(" + pos + ", " + color + ")";
|
||||
} else {
|
||||
stop = "color-stop(" + color + ")";
|
||||
}
|
||||
|
||||
var div = param[param.length - 1];
|
||||
params[i] = [{
|
||||
type: 'word',
|
||||
value: stop
|
||||
}];
|
||||
|
||||
if (div.type === 'div' && div.value === ',') {
|
||||
item = params[i].push(div);
|
||||
}
|
||||
|
||||
result.push(item);
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
/**
|
||||
* Remove old WebKit gradient too
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
var type = this.name === 'linear-gradient' ? 'linear' : 'radial';
|
||||
var string = '-gradient';
|
||||
var regexp = utils.regexp("-webkit-(" + type + "-gradient|gradient\\(\\s*" + type + ")", false);
|
||||
return new OldValue(this.name, prefix + this.name, string, regexp);
|
||||
} else {
|
||||
return _Value.prototype.old.call(this, prefix);
|
||||
}
|
||||
}
|
||||
/**
|
||||
* Do not add non-webkit prefixes for list-style and object
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.add = function add(decl, prefix) {
|
||||
var p = decl.prop;
|
||||
|
||||
if (p.includes('mask')) {
|
||||
if (prefix === '-webkit-' || prefix === '-webkit- old') {
|
||||
return _Value.prototype.add.call(this, decl, prefix);
|
||||
}
|
||||
} else if (p === 'list-style' || p === 'list-style-image' || p === 'content') {
|
||||
if (prefix === '-webkit-' || prefix === '-webkit- old') {
|
||||
return _Value.prototype.add.call(this, decl, prefix);
|
||||
}
|
||||
} else {
|
||||
return _Value.prototype.add.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return Gradient;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(Gradient, "names", ['linear-gradient', 'repeating-linear-gradient', 'radial-gradient', 'repeating-radial-gradient']);
|
||||
|
||||
module.exports = Gradient;
|
52
web/node_modules/autoprefixer/lib/hacks/grid-area.js
generated
vendored
Normal file
52
web/node_modules/autoprefixer/lib/hacks/grid-area.js
generated
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('./grid-utils');
|
||||
|
||||
var GridArea = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridArea, _Declaration);
|
||||
|
||||
function GridArea() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridArea.prototype;
|
||||
|
||||
/**
|
||||
* Translate grid-area to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var values = utils.parse(decl);
|
||||
|
||||
var _utils$translate = utils.translate(values, 0, 2),
|
||||
rowStart = _utils$translate[0],
|
||||
rowSpan = _utils$translate[1];
|
||||
|
||||
var _utils$translate2 = utils.translate(values, 1, 3),
|
||||
columnStart = _utils$translate2[0],
|
||||
columnSpan = _utils$translate2[1];
|
||||
|
||||
[['grid-row', rowStart], ['grid-row-span', rowSpan], ['grid-column', columnStart], ['grid-column-span', columnSpan]].forEach(function (_ref) {
|
||||
var prop = _ref[0],
|
||||
value = _ref[1];
|
||||
utils.insertDecl(decl, prop, value);
|
||||
});
|
||||
utils.warnTemplateSelectorNotFound(decl, result);
|
||||
utils.warnIfGridRowColumnExists(decl, result);
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return GridArea;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridArea, "names", ['grid-area']);
|
||||
|
||||
module.exports = GridArea;
|
48
web/node_modules/autoprefixer/lib/hacks/grid-column-align.js
generated
vendored
Normal file
48
web/node_modules/autoprefixer/lib/hacks/grid-column-align.js
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var GridColumnAlign = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridColumnAlign, _Declaration);
|
||||
|
||||
function GridColumnAlign() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridColumnAlign.prototype;
|
||||
|
||||
/**
|
||||
* Do not prefix flexbox values
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return !decl.value.includes('flex-') && decl.value !== 'baseline';
|
||||
}
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + 'grid-column-align';
|
||||
}
|
||||
/**
|
||||
* Change IE property back
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'justify-self';
|
||||
};
|
||||
|
||||
return GridColumnAlign;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridColumnAlign, "names", ['grid-column-align']);
|
||||
|
||||
module.exports = GridColumnAlign;
|
62
web/node_modules/autoprefixer/lib/hacks/grid-end.js
generated
vendored
Normal file
62
web/node_modules/autoprefixer/lib/hacks/grid-end.js
generated
vendored
Normal file
|
@ -0,0 +1,62 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var GridEnd = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridEnd, _Declaration);
|
||||
|
||||
function GridEnd() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridEnd.prototype;
|
||||
|
||||
/**
|
||||
* Change repeating syntax for IE
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var clonedDecl = this.clone(decl);
|
||||
var startProp = decl.prop.replace(/end$/, 'start');
|
||||
var spanProp = prefix + decl.prop.replace(/end$/, 'span');
|
||||
|
||||
if (decl.parent.some(function (i) {
|
||||
return i.prop === spanProp;
|
||||
})) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
clonedDecl.prop = spanProp;
|
||||
|
||||
if (decl.value.includes('span')) {
|
||||
clonedDecl.value = decl.value.replace(/span\s/i, '');
|
||||
} else {
|
||||
var startDecl;
|
||||
decl.parent.walkDecls(startProp, function (d) {
|
||||
startDecl = d;
|
||||
});
|
||||
|
||||
if (startDecl) {
|
||||
var value = Number(decl.value) - Number(startDecl.value) + '';
|
||||
clonedDecl.value = value;
|
||||
} else {
|
||||
decl.warn(result, "Can not prefix " + decl.prop + " (" + startProp + " is not found)");
|
||||
}
|
||||
}
|
||||
|
||||
decl.cloneBefore(clonedDecl);
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return GridEnd;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridEnd, "names", ['grid-row-end', 'grid-column-end']);
|
||||
|
||||
module.exports = GridEnd;
|
48
web/node_modules/autoprefixer/lib/hacks/grid-row-align.js
generated
vendored
Normal file
48
web/node_modules/autoprefixer/lib/hacks/grid-row-align.js
generated
vendored
Normal file
|
@ -0,0 +1,48 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var GridRowAlign = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridRowAlign, _Declaration);
|
||||
|
||||
function GridRowAlign() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridRowAlign.prototype;
|
||||
|
||||
/**
|
||||
* Do not prefix flexbox values
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return !decl.value.includes('flex-') && decl.value !== 'baseline';
|
||||
}
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + 'grid-row-align';
|
||||
}
|
||||
/**
|
||||
* Change IE property back
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'align-self';
|
||||
};
|
||||
|
||||
return GridRowAlign;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridRowAlign, "names", ['grid-row-align']);
|
||||
|
||||
module.exports = GridRowAlign;
|
52
web/node_modules/autoprefixer/lib/hacks/grid-row-column.js
generated
vendored
Normal file
52
web/node_modules/autoprefixer/lib/hacks/grid-row-column.js
generated
vendored
Normal file
|
@ -0,0 +1,52 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('./grid-utils');
|
||||
|
||||
var GridRowColumn = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridRowColumn, _Declaration);
|
||||
|
||||
function GridRowColumn() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridRowColumn.prototype;
|
||||
|
||||
/**
|
||||
* Translate grid-row / grid-column to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var values = utils.parse(decl);
|
||||
|
||||
var _utils$translate = utils.translate(values, 0, 1),
|
||||
start = _utils$translate[0],
|
||||
span = _utils$translate[1];
|
||||
|
||||
var hasStartValueSpan = values[0] && values[0].includes('span');
|
||||
|
||||
if (hasStartValueSpan) {
|
||||
span = values[0].join('').replace(/\D/g, '');
|
||||
}
|
||||
|
||||
[[decl.prop, start], [decl.prop + "-span", span]].forEach(function (_ref) {
|
||||
var prop = _ref[0],
|
||||
value = _ref[1];
|
||||
utils.insertDecl(decl, prop, value);
|
||||
});
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return GridRowColumn;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridRowColumn, "names", ['grid-row', 'grid-column']);
|
||||
|
||||
module.exports = GridRowColumn;
|
149
web/node_modules/autoprefixer/lib/hacks/grid-rows-columns.js
generated
vendored
Normal file
149
web/node_modules/autoprefixer/lib/hacks/grid-rows-columns.js
generated
vendored
Normal file
|
@ -0,0 +1,149 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var _require = require('./grid-utils'),
|
||||
prefixTrackProp = _require.prefixTrackProp,
|
||||
prefixTrackValue = _require.prefixTrackValue,
|
||||
autoplaceGridItems = _require.autoplaceGridItems,
|
||||
getGridGap = _require.getGridGap,
|
||||
inheritGridGap = _require.inheritGridGap;
|
||||
|
||||
var Processor = require('../processor');
|
||||
|
||||
var GridRowsColumns = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridRowsColumns, _Declaration);
|
||||
|
||||
function GridRowsColumns() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridRowsColumns.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
if (prefix === '-ms-') {
|
||||
return prefixTrackProp({
|
||||
prop: prop,
|
||||
prefix: prefix
|
||||
});
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Change IE property back
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return prop.replace(/^grid-(rows|columns)/, 'grid-template-$1');
|
||||
};
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var parent = decl.parent,
|
||||
prop = decl.prop,
|
||||
value = decl.value;
|
||||
var isRowProp = prop.includes('rows');
|
||||
var isColumnProp = prop.includes('columns');
|
||||
var hasGridTemplate = parent.some(function (i) {
|
||||
return i.prop === 'grid-template' || i.prop === 'grid-template-areas';
|
||||
});
|
||||
/**
|
||||
* Not to prefix rows declaration if grid-template(-areas) is present
|
||||
*/
|
||||
|
||||
if (hasGridTemplate && isRowProp) {
|
||||
return false;
|
||||
}
|
||||
|
||||
var processor = new Processor({
|
||||
options: {}
|
||||
});
|
||||
var status = processor.gridStatus(parent, result);
|
||||
var gap = getGridGap(decl);
|
||||
gap = inheritGridGap(decl, gap) || gap;
|
||||
var gapValue = isRowProp ? gap.row : gap.column;
|
||||
|
||||
if ((status === 'no-autoplace' || status === true) && !hasGridTemplate) {
|
||||
gapValue = null;
|
||||
}
|
||||
|
||||
var prefixValue = prefixTrackValue({
|
||||
value: value,
|
||||
gap: gapValue
|
||||
});
|
||||
/**
|
||||
* Insert prefixes
|
||||
*/
|
||||
|
||||
decl.cloneBefore({
|
||||
prop: prefixTrackProp({
|
||||
prop: prop,
|
||||
prefix: prefix
|
||||
}),
|
||||
value: prefixValue
|
||||
});
|
||||
var autoflow = parent.nodes.find(function (i) {
|
||||
return i.prop === 'grid-auto-flow';
|
||||
});
|
||||
var autoflowValue = 'row';
|
||||
|
||||
if (autoflow && !processor.disabled(autoflow, result)) {
|
||||
autoflowValue = autoflow.value.trim();
|
||||
}
|
||||
|
||||
if (status === 'autoplace') {
|
||||
/**
|
||||
* Show warning if grid-template-rows decl is not found
|
||||
*/
|
||||
var rowDecl = parent.nodes.find(function (i) {
|
||||
return i.prop === 'grid-template-rows';
|
||||
});
|
||||
|
||||
if (!rowDecl && hasGridTemplate) {
|
||||
return undefined;
|
||||
} else if (!rowDecl && !hasGridTemplate) {
|
||||
decl.warn(result, 'Autoplacement does not work without grid-template-rows property');
|
||||
return undefined;
|
||||
}
|
||||
/**
|
||||
* Show warning if grid-template-columns decl is not found
|
||||
*/
|
||||
|
||||
|
||||
var columnDecl = parent.nodes.find(function (i) {
|
||||
return i.prop === 'grid-template-columns';
|
||||
});
|
||||
|
||||
if (!columnDecl && !hasGridTemplate) {
|
||||
decl.warn(result, 'Autoplacement does not work without grid-template-columns property');
|
||||
}
|
||||
/**
|
||||
* Autoplace grid items
|
||||
*/
|
||||
|
||||
|
||||
if (isColumnProp && !hasGridTemplate) {
|
||||
autoplaceGridItems(decl, result, gap, autoflowValue);
|
||||
}
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return GridRowsColumns;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridRowsColumns, "names", ['grid-template-rows', 'grid-template-columns', 'grid-rows', 'grid-columns']);
|
||||
|
||||
module.exports = GridRowsColumns;
|
55
web/node_modules/autoprefixer/lib/hacks/grid-start.js
generated
vendored
Normal file
55
web/node_modules/autoprefixer/lib/hacks/grid-start.js
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var GridStart = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridStart, _Declaration);
|
||||
|
||||
function GridStart() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridStart.prototype;
|
||||
|
||||
/**
|
||||
* Do not add prefix for unsupported value in IE
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
var value = decl.value;
|
||||
return !value.includes('/') || value.includes('span');
|
||||
}
|
||||
/**
|
||||
* Return a final spec property
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return prop.replace('-start', '');
|
||||
}
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var result = _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
|
||||
if (prefix === '-ms-') {
|
||||
result = result.replace('-start', '');
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
return GridStart;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridStart, "names", ['grid-row-start', 'grid-column-start']);
|
||||
|
||||
module.exports = GridStart;
|
101
web/node_modules/autoprefixer/lib/hacks/grid-template-areas.js
generated
vendored
Normal file
101
web/node_modules/autoprefixer/lib/hacks/grid-template-areas.js
generated
vendored
Normal file
|
@ -0,0 +1,101 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var _require = require('./grid-utils'),
|
||||
parseGridAreas = _require.parseGridAreas,
|
||||
warnMissedAreas = _require.warnMissedAreas,
|
||||
prefixTrackProp = _require.prefixTrackProp,
|
||||
prefixTrackValue = _require.prefixTrackValue,
|
||||
getGridGap = _require.getGridGap,
|
||||
warnGridGap = _require.warnGridGap,
|
||||
inheritGridGap = _require.inheritGridGap;
|
||||
|
||||
function getGridRows(tpl) {
|
||||
return tpl.trim().slice(1, -1).split(/["']\s*["']?/g);
|
||||
}
|
||||
|
||||
var GridTemplateAreas = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridTemplateAreas, _Declaration);
|
||||
|
||||
function GridTemplateAreas() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridTemplateAreas.prototype;
|
||||
|
||||
/**
|
||||
* Translate grid-template-areas to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
var hasColumns = false;
|
||||
var hasRows = false;
|
||||
var parent = decl.parent;
|
||||
var gap = getGridGap(decl);
|
||||
gap = inheritGridGap(decl, gap) || gap; // remove already prefixed rows
|
||||
// to prevent doubling prefixes
|
||||
|
||||
parent.walkDecls(/-ms-grid-rows/, function (i) {
|
||||
return i.remove();
|
||||
}); // add empty tracks to rows
|
||||
|
||||
parent.walkDecls(/grid-template-(rows|columns)/, function (trackDecl) {
|
||||
if (trackDecl.prop === 'grid-template-rows') {
|
||||
hasRows = true;
|
||||
var prop = trackDecl.prop,
|
||||
value = trackDecl.value;
|
||||
trackDecl.cloneBefore({
|
||||
prop: prefixTrackProp({
|
||||
prop: prop,
|
||||
prefix: prefix
|
||||
}),
|
||||
value: prefixTrackValue({
|
||||
value: value,
|
||||
gap: gap.row
|
||||
})
|
||||
});
|
||||
} else {
|
||||
hasColumns = true;
|
||||
}
|
||||
});
|
||||
var gridRows = getGridRows(decl.value);
|
||||
|
||||
if (hasColumns && !hasRows && gap.row && gridRows.length > 1) {
|
||||
decl.cloneBefore({
|
||||
prop: '-ms-grid-rows',
|
||||
value: prefixTrackValue({
|
||||
value: "repeat(" + gridRows.length + ", auto)",
|
||||
gap: gap.row
|
||||
}),
|
||||
raws: {}
|
||||
});
|
||||
} // warnings
|
||||
|
||||
|
||||
warnGridGap({
|
||||
gap: gap,
|
||||
hasColumns: hasColumns,
|
||||
decl: decl,
|
||||
result: result
|
||||
});
|
||||
var areas = parseGridAreas({
|
||||
rows: gridRows,
|
||||
gap: gap
|
||||
});
|
||||
warnMissedAreas(areas, decl, result);
|
||||
return decl;
|
||||
};
|
||||
|
||||
return GridTemplateAreas;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridTemplateAreas, "names", ['grid-template-areas']);
|
||||
|
||||
module.exports = GridTemplateAreas;
|
90
web/node_modules/autoprefixer/lib/hacks/grid-template.js
generated
vendored
Normal file
90
web/node_modules/autoprefixer/lib/hacks/grid-template.js
generated
vendored
Normal file
|
@ -0,0 +1,90 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var _require = require('./grid-utils'),
|
||||
parseTemplate = _require.parseTemplate,
|
||||
warnMissedAreas = _require.warnMissedAreas,
|
||||
getGridGap = _require.getGridGap,
|
||||
warnGridGap = _require.warnGridGap,
|
||||
inheritGridGap = _require.inheritGridGap;
|
||||
|
||||
var GridTemplate = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(GridTemplate, _Declaration);
|
||||
|
||||
function GridTemplate() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = GridTemplate.prototype;
|
||||
|
||||
/**
|
||||
* Translate grid-template to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes, result) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
|
||||
if (decl.parent.some(function (i) {
|
||||
return i.prop === '-ms-grid-rows';
|
||||
})) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var gap = getGridGap(decl);
|
||||
/**
|
||||
* we must insert inherited gap values in some cases:
|
||||
* if we are inside media query && if we have no grid-gap value
|
||||
*/
|
||||
|
||||
var inheritedGap = inheritGridGap(decl, gap);
|
||||
|
||||
var _parseTemplate = parseTemplate({
|
||||
decl: decl,
|
||||
gap: inheritedGap || gap
|
||||
}),
|
||||
rows = _parseTemplate.rows,
|
||||
columns = _parseTemplate.columns,
|
||||
areas = _parseTemplate.areas;
|
||||
|
||||
var hasAreas = Object.keys(areas).length > 0;
|
||||
var hasRows = Boolean(rows);
|
||||
var hasColumns = Boolean(columns);
|
||||
warnGridGap({
|
||||
gap: gap,
|
||||
hasColumns: hasColumns,
|
||||
decl: decl,
|
||||
result: result
|
||||
});
|
||||
warnMissedAreas(areas, decl, result);
|
||||
|
||||
if (hasRows && hasColumns || hasAreas) {
|
||||
decl.cloneBefore({
|
||||
prop: '-ms-grid-rows',
|
||||
value: rows,
|
||||
raws: {}
|
||||
});
|
||||
}
|
||||
|
||||
if (hasColumns) {
|
||||
decl.cloneBefore({
|
||||
prop: '-ms-grid-columns',
|
||||
value: columns,
|
||||
raws: {}
|
||||
});
|
||||
}
|
||||
|
||||
return decl;
|
||||
};
|
||||
|
||||
return GridTemplate;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(GridTemplate, "names", ['grid-template']);
|
||||
|
||||
module.exports = GridTemplate;
|
1123
web/node_modules/autoprefixer/lib/hacks/grid-utils.js
generated
vendored
Normal file
1123
web/node_modules/autoprefixer/lib/hacks/grid-utils.js
generated
vendored
Normal file
File diff suppressed because it is too large
Load diff
71
web/node_modules/autoprefixer/lib/hacks/image-rendering.js
generated
vendored
Normal file
71
web/node_modules/autoprefixer/lib/hacks/image-rendering.js
generated
vendored
Normal file
|
@ -0,0 +1,71 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var ImageRendering = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(ImageRendering, _Declaration);
|
||||
|
||||
function ImageRendering() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = ImageRendering.prototype;
|
||||
|
||||
/**
|
||||
* Add hack only for crisp-edges
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return decl.value === 'pixelated';
|
||||
}
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
if (prefix === '-ms-') {
|
||||
return '-ms-interpolation-mode';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Change property and value for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
decl.prop = '-ms-interpolation-mode';
|
||||
decl.value = 'nearest-neighbor';
|
||||
return decl;
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'image-rendering';
|
||||
}
|
||||
/**
|
||||
* Warn on old value
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.process = function process(node, result) {
|
||||
return _Declaration.prototype.process.call(this, node, result);
|
||||
};
|
||||
|
||||
return ImageRendering;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(ImageRendering, "names", ['image-rendering', 'interpolation-mode']);
|
||||
|
||||
module.exports = ImageRendering;
|
38
web/node_modules/autoprefixer/lib/hacks/image-set.js
generated
vendored
Normal file
38
web/node_modules/autoprefixer/lib/hacks/image-set.js
generated
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var ImageSet = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(ImageSet, _Value);
|
||||
|
||||
function ImageSet() {
|
||||
return _Value.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = ImageSet.prototype;
|
||||
|
||||
/**
|
||||
* Use non-standard name for WebKit and Firefox
|
||||
*/
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
var fixed = _Value.prototype.replace.call(this, string, prefix);
|
||||
|
||||
if (prefix === '-webkit-') {
|
||||
fixed = fixed.replace(/("[^"]+"|'[^']+')(\s+\d+\w)/gi, 'url($1)$2');
|
||||
}
|
||||
|
||||
return fixed;
|
||||
};
|
||||
|
||||
return ImageSet;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(ImageSet, "names", ['image-set']);
|
||||
|
||||
module.exports = ImageSet;
|
40
web/node_modules/autoprefixer/lib/hacks/inline-logical.js
generated
vendored
Normal file
40
web/node_modules/autoprefixer/lib/hacks/inline-logical.js
generated
vendored
Normal file
|
@ -0,0 +1,40 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var InlineLogical = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(InlineLogical, _Declaration);
|
||||
|
||||
function InlineLogical() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = InlineLogical.prototype;
|
||||
|
||||
/**
|
||||
* Use old syntax for -moz- and -webkit-
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + prop.replace('-inline', '');
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize(prop) {
|
||||
return prop.replace(/(margin|padding|border)-(start|end)/, '$1-inline-$2');
|
||||
};
|
||||
|
||||
return InlineLogical;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(InlineLogical, "names", ['border-inline-start', 'border-inline-end', 'margin-inline-start', 'margin-inline-end', 'padding-inline-start', 'padding-inline-end', 'border-start', 'border-end', 'margin-start', 'margin-end', 'padding-start', 'padding-end']);
|
||||
|
||||
module.exports = InlineLogical;
|
74
web/node_modules/autoprefixer/lib/hacks/intrinsic.js
generated
vendored
Normal file
74
web/node_modules/autoprefixer/lib/hacks/intrinsic.js
generated
vendored
Normal file
|
@ -0,0 +1,74 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var OldValue = require('../old-value');
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
function _regexp(name) {
|
||||
return new RegExp("(^|[\\s,(])(" + name + "($|[\\s),]))", 'gi');
|
||||
}
|
||||
|
||||
var Intrinsic = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(Intrinsic, _Value);
|
||||
|
||||
function Intrinsic() {
|
||||
return _Value.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Intrinsic.prototype;
|
||||
|
||||
_proto.regexp = function regexp() {
|
||||
if (!this.regexpCache) this.regexpCache = _regexp(this.name);
|
||||
return this.regexpCache;
|
||||
};
|
||||
|
||||
_proto.isStretch = function isStretch() {
|
||||
return this.name === 'stretch' || this.name === 'fill' || this.name === 'fill-available';
|
||||
};
|
||||
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
if (prefix === '-moz-' && this.isStretch()) {
|
||||
return string.replace(this.regexp(), '$1-moz-available$3');
|
||||
}
|
||||
|
||||
if (prefix === '-webkit-' && this.isStretch()) {
|
||||
return string.replace(this.regexp(), '$1-webkit-fill-available$3');
|
||||
}
|
||||
|
||||
return _Value.prototype.replace.call(this, string, prefix);
|
||||
};
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
var prefixed = prefix + this.name;
|
||||
|
||||
if (this.isStretch()) {
|
||||
if (prefix === '-moz-') {
|
||||
prefixed = '-moz-available';
|
||||
} else if (prefix === '-webkit-') {
|
||||
prefixed = '-webkit-fill-available';
|
||||
}
|
||||
}
|
||||
|
||||
return new OldValue(this.name, prefixed, prefixed, _regexp(prefixed));
|
||||
};
|
||||
|
||||
_proto.add = function add(decl, prefix) {
|
||||
if (decl.prop.includes('grid') && prefix !== '-webkit-') {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
return _Value.prototype.add.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return Intrinsic;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(Intrinsic, "names", ['max-content', 'min-content', 'fit-content', 'fill', 'fill-available', 'stretch']);
|
||||
|
||||
module.exports = Intrinsic;
|
85
web/node_modules/autoprefixer/lib/hacks/justify-content.js
generated
vendored
Normal file
85
web/node_modules/autoprefixer/lib/hacks/justify-content.js
generated
vendored
Normal file
|
@ -0,0 +1,85 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var JustifyContent = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(JustifyContent, _Declaration);
|
||||
|
||||
function JustifyContent() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = JustifyContent.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2009 and 2012 specs
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-pack';
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-pack';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'justify-content';
|
||||
}
|
||||
/**
|
||||
* Change value for 2009 and 2012 specs
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2009 || spec === 2012) {
|
||||
var value = JustifyContent.oldValues[decl.value] || decl.value;
|
||||
decl.value = value;
|
||||
|
||||
if (spec !== 2009 || value !== 'distribute') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
} else if (spec === 'final') {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return JustifyContent;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(JustifyContent, "names", ['justify-content', 'flex-pack', 'box-pack']);
|
||||
|
||||
_defineProperty(JustifyContent, "oldValues", {
|
||||
'flex-end': 'end',
|
||||
'flex-start': 'start',
|
||||
'space-between': 'justify',
|
||||
'space-around': 'distribute'
|
||||
});
|
||||
|
||||
module.exports = JustifyContent;
|
46
web/node_modules/autoprefixer/lib/hacks/mask-border.js
generated
vendored
Normal file
46
web/node_modules/autoprefixer/lib/hacks/mask-border.js
generated
vendored
Normal file
|
@ -0,0 +1,46 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var MaskBorder = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(MaskBorder, _Declaration);
|
||||
|
||||
function MaskBorder() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = MaskBorder.prototype;
|
||||
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
_proto.normalize = function normalize() {
|
||||
return this.name.replace('box-image', 'border');
|
||||
}
|
||||
/**
|
||||
* Return flex property for 2012 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var result = _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
|
||||
if (prefix === '-webkit-') {
|
||||
result = result.replace('border', 'box-image');
|
||||
}
|
||||
|
||||
return result;
|
||||
};
|
||||
|
||||
return MaskBorder;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(MaskBorder, "names", ['mask-border', 'mask-border-source', 'mask-border-slice', 'mask-border-width', 'mask-border-outset', 'mask-border-repeat', 'mask-box-image', 'mask-box-image-source', 'mask-box-image-slice', 'mask-box-image-width', 'mask-box-image-outset', 'mask-box-image-repeat']);
|
||||
|
||||
module.exports = MaskBorder;
|
104
web/node_modules/autoprefixer/lib/hacks/mask-composite.js
generated
vendored
Normal file
104
web/node_modules/autoprefixer/lib/hacks/mask-composite.js
generated
vendored
Normal file
|
@ -0,0 +1,104 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var MaskComposite = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(MaskComposite, _Declaration);
|
||||
|
||||
function MaskComposite() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = MaskComposite.prototype;
|
||||
|
||||
/**
|
||||
* Prefix mask-composite for webkit
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
var isCompositeProp = decl.prop === 'mask-composite';
|
||||
var compositeValues;
|
||||
|
||||
if (isCompositeProp) {
|
||||
compositeValues = decl.value.split(',');
|
||||
} else {
|
||||
compositeValues = decl.value.match(MaskComposite.regexp) || [];
|
||||
}
|
||||
|
||||
compositeValues = compositeValues.map(function (el) {
|
||||
return el.trim();
|
||||
}).filter(function (el) {
|
||||
return el;
|
||||
});
|
||||
var hasCompositeValues = compositeValues.length;
|
||||
var compositeDecl;
|
||||
|
||||
if (hasCompositeValues) {
|
||||
compositeDecl = this.clone(decl);
|
||||
compositeDecl.value = compositeValues.map(function (value) {
|
||||
return MaskComposite.oldValues[value] || value;
|
||||
}).join(', ');
|
||||
|
||||
if (compositeValues.includes('intersect')) {
|
||||
compositeDecl.value += ', xor';
|
||||
}
|
||||
|
||||
compositeDecl.prop = prefix + 'mask-composite';
|
||||
}
|
||||
|
||||
if (isCompositeProp) {
|
||||
if (!hasCompositeValues) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
compositeDecl.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, compositeDecl);
|
||||
}
|
||||
|
||||
var cloned = this.clone(decl);
|
||||
cloned.prop = prefix + cloned.prop;
|
||||
|
||||
if (hasCompositeValues) {
|
||||
cloned.value = cloned.value.replace(MaskComposite.regexp, '');
|
||||
}
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
decl.parent.insertBefore(decl, cloned);
|
||||
|
||||
if (!hasCompositeValues) {
|
||||
return decl;
|
||||
}
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
compositeDecl.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
return decl.parent.insertBefore(decl, compositeDecl);
|
||||
};
|
||||
|
||||
return MaskComposite;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(MaskComposite, "names", ['mask', 'mask-composite']);
|
||||
|
||||
_defineProperty(MaskComposite, "oldValues", {
|
||||
add: 'source-over',
|
||||
substract: 'source-out',
|
||||
intersect: 'source-in',
|
||||
exclude: 'xor'
|
||||
});
|
||||
|
||||
_defineProperty(MaskComposite, "regexp", new RegExp("\\s+(" + Object.keys(MaskComposite.oldValues).join('|') + ")\\b(?!\\))\\s*(?=[,])", 'ig'));
|
||||
|
||||
module.exports = MaskComposite;
|
72
web/node_modules/autoprefixer/lib/hacks/order.js
generated
vendored
Normal file
72
web/node_modules/autoprefixer/lib/hacks/order.js
generated
vendored
Normal file
|
@ -0,0 +1,72 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var flexSpec = require('./flex-spec');
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var Order = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(Order, _Declaration);
|
||||
|
||||
function Order() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Order.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for 2009 and 2012 specs
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
var spec;
|
||||
|
||||
var _flexSpec = flexSpec(prefix);
|
||||
|
||||
spec = _flexSpec[0];
|
||||
prefix = _flexSpec[1];
|
||||
|
||||
if (spec === 2009) {
|
||||
return prefix + 'box-ordinal-group';
|
||||
}
|
||||
|
||||
if (spec === 2012) {
|
||||
return prefix + 'flex-order';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.prefixed.call(this, prop, prefix);
|
||||
}
|
||||
/**
|
||||
* Return property name by final spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'order';
|
||||
}
|
||||
/**
|
||||
* Fix value for 2009 spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
var spec = flexSpec(prefix)[0];
|
||||
|
||||
if (spec === 2009 && /\d/.test(decl.value)) {
|
||||
decl.value = (parseInt(decl.value) + 1).toString();
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return Order;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(Order, "names", ['order', 'flex-order', 'box-ordinal-group']);
|
||||
|
||||
module.exports = Order;
|
54
web/node_modules/autoprefixer/lib/hacks/overscroll-behavior.js
generated
vendored
Normal file
54
web/node_modules/autoprefixer/lib/hacks/overscroll-behavior.js
generated
vendored
Normal file
|
@ -0,0 +1,54 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var OverscrollBehavior = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(OverscrollBehavior, _Declaration);
|
||||
|
||||
function OverscrollBehavior() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = OverscrollBehavior.prototype;
|
||||
|
||||
/**
|
||||
* Change property name for IE
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prop, prefix) {
|
||||
return prefix + 'scroll-chaining';
|
||||
}
|
||||
/**
|
||||
* Return property name by spec
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.normalize = function normalize() {
|
||||
return 'overscroll-behavior';
|
||||
}
|
||||
/**
|
||||
* Change value for IE
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (decl.value === 'auto') {
|
||||
decl.value = 'chained';
|
||||
} else if (decl.value === 'none' || decl.value === 'contain') {
|
||||
decl.value = 'none';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return OverscrollBehavior;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(OverscrollBehavior, "names", ['overscroll-behavior', 'scroll-chaining']);
|
||||
|
||||
module.exports = OverscrollBehavior;
|
58
web/node_modules/autoprefixer/lib/hacks/pixelated.js
generated
vendored
Normal file
58
web/node_modules/autoprefixer/lib/hacks/pixelated.js
generated
vendored
Normal file
|
@ -0,0 +1,58 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var OldValue = require('../old-value');
|
||||
|
||||
var Value = require('../value');
|
||||
|
||||
var Pixelated = /*#__PURE__*/function (_Value) {
|
||||
_inheritsLoose(Pixelated, _Value);
|
||||
|
||||
function Pixelated() {
|
||||
return _Value.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Pixelated.prototype;
|
||||
|
||||
/**
|
||||
* Use non-standard name for WebKit and Firefox
|
||||
*/
|
||||
_proto.replace = function replace(string, prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return string.replace(this.regexp(), '$1-webkit-optimize-contrast');
|
||||
}
|
||||
|
||||
if (prefix === '-moz-') {
|
||||
return string.replace(this.regexp(), '$1-moz-crisp-edges');
|
||||
}
|
||||
|
||||
return _Value.prototype.replace.call(this, string, prefix);
|
||||
}
|
||||
/**
|
||||
* Different name for WebKit and Firefox
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.old = function old(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return new OldValue(this.name, '-webkit-optimize-contrast');
|
||||
}
|
||||
|
||||
if (prefix === '-moz-') {
|
||||
return new OldValue(this.name, '-moz-crisp-edges');
|
||||
}
|
||||
|
||||
return _Value.prototype.old.call(this, prefix);
|
||||
};
|
||||
|
||||
return Pixelated;
|
||||
}(Value);
|
||||
|
||||
_defineProperty(Pixelated, "names", ['pixelated']);
|
||||
|
||||
module.exports = Pixelated;
|
55
web/node_modules/autoprefixer/lib/hacks/place-self.js
generated
vendored
Normal file
55
web/node_modules/autoprefixer/lib/hacks/place-self.js
generated
vendored
Normal file
|
@ -0,0 +1,55 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var utils = require('./grid-utils');
|
||||
|
||||
var PlaceSelf = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(PlaceSelf, _Declaration);
|
||||
|
||||
function PlaceSelf() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = PlaceSelf.prototype;
|
||||
|
||||
/**
|
||||
* Translate place-self to separate -ms- prefixed properties
|
||||
*/
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (prefix !== '-ms-') return _Declaration.prototype.insert.call(this, decl, prefix, prefixes); // prevent doubling of prefixes
|
||||
|
||||
if (decl.parent.some(function (i) {
|
||||
return i.prop === '-ms-grid-row-align';
|
||||
})) {
|
||||
return undefined;
|
||||
}
|
||||
|
||||
var _utils$parse = utils.parse(decl),
|
||||
_utils$parse$ = _utils$parse[0],
|
||||
first = _utils$parse$[0],
|
||||
second = _utils$parse$[1];
|
||||
|
||||
if (second) {
|
||||
utils.insertDecl(decl, 'grid-row-align', first);
|
||||
utils.insertDecl(decl, 'grid-column-align', second);
|
||||
} else {
|
||||
utils.insertDecl(decl, 'grid-row-align', first);
|
||||
utils.insertDecl(decl, 'grid-column-align', first);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return PlaceSelf;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(PlaceSelf, "names", ['place-self']);
|
||||
|
||||
module.exports = PlaceSelf;
|
36
web/node_modules/autoprefixer/lib/hacks/placeholder-shown.js
generated
vendored
Normal file
36
web/node_modules/autoprefixer/lib/hacks/placeholder-shown.js
generated
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Selector = require('../selector');
|
||||
|
||||
var PlaceholderShown = /*#__PURE__*/function (_Selector) {
|
||||
_inheritsLoose(PlaceholderShown, _Selector);
|
||||
|
||||
function PlaceholderShown() {
|
||||
return _Selector.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = PlaceholderShown.prototype;
|
||||
|
||||
/**
|
||||
* Return different selectors depend on prefix
|
||||
*/
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
if (prefix === '-ms-') {
|
||||
return ':-ms-input-placeholder';
|
||||
}
|
||||
|
||||
return ":" + prefix + "placeholder-shown";
|
||||
};
|
||||
|
||||
return PlaceholderShown;
|
||||
}(Selector);
|
||||
|
||||
_defineProperty(PlaceholderShown, "names", [':placeholder-shown']);
|
||||
|
||||
module.exports = PlaceholderShown;
|
56
web/node_modules/autoprefixer/lib/hacks/placeholder.js
generated
vendored
Normal file
56
web/node_modules/autoprefixer/lib/hacks/placeholder.js
generated
vendored
Normal file
|
@ -0,0 +1,56 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Selector = require('../selector');
|
||||
|
||||
var Placeholder = /*#__PURE__*/function (_Selector) {
|
||||
_inheritsLoose(Placeholder, _Selector);
|
||||
|
||||
function Placeholder() {
|
||||
return _Selector.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = Placeholder.prototype;
|
||||
|
||||
/**
|
||||
* Add old mozilla to possible prefixes
|
||||
*/
|
||||
_proto.possible = function possible() {
|
||||
return _Selector.prototype.possible.call(this).concat(['-moz- old', '-ms- old']);
|
||||
}
|
||||
/**
|
||||
* Return different selectors depend on prefix
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.prefixed = function prefixed(prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
return '::-webkit-input-placeholder';
|
||||
}
|
||||
|
||||
if (prefix === '-ms-') {
|
||||
return '::-ms-input-placeholder';
|
||||
}
|
||||
|
||||
if (prefix === '-ms- old') {
|
||||
return ':-ms-input-placeholder';
|
||||
}
|
||||
|
||||
if (prefix === '-moz- old') {
|
||||
return ':-moz-placeholder';
|
||||
}
|
||||
|
||||
return "::" + prefix + "placeholder";
|
||||
};
|
||||
|
||||
return Placeholder;
|
||||
}(Selector);
|
||||
|
||||
_defineProperty(Placeholder, "names", ['::placeholder']);
|
||||
|
||||
module.exports = Placeholder;
|
38
web/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
generated
vendored
Normal file
38
web/node_modules/autoprefixer/lib/hacks/text-decoration-skip-ink.js
generated
vendored
Normal file
|
@ -0,0 +1,38 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var TextDecorationSkipInk = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(TextDecorationSkipInk, _Declaration);
|
||||
|
||||
function TextDecorationSkipInk() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = TextDecorationSkipInk.prototype;
|
||||
|
||||
/**
|
||||
* Change prefix for ink value
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (decl.prop === 'text-decoration-skip-ink' && decl.value === 'auto') {
|
||||
decl.prop = prefix + 'text-decoration-skip';
|
||||
decl.value = 'ink';
|
||||
return decl;
|
||||
} else {
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
}
|
||||
};
|
||||
|
||||
return TextDecorationSkipInk;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(TextDecorationSkipInk, "names", ['text-decoration-skip-ink', 'text-decoration-skip']);
|
||||
|
||||
module.exports = TextDecorationSkipInk;
|
36
web/node_modules/autoprefixer/lib/hacks/text-decoration.js
generated
vendored
Normal file
36
web/node_modules/autoprefixer/lib/hacks/text-decoration.js
generated
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var BASIC = ['none', 'underline', 'overline', 'line-through', 'blink', 'inherit', 'initial', 'unset'];
|
||||
|
||||
var TextDecoration = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(TextDecoration, _Declaration);
|
||||
|
||||
function TextDecoration() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = TextDecoration.prototype;
|
||||
|
||||
/**
|
||||
* Do not add prefixes for basic values.
|
||||
*/
|
||||
_proto.check = function check(decl) {
|
||||
return decl.value.split(/\s+/).some(function (i) {
|
||||
return !BASIC.includes(i);
|
||||
});
|
||||
};
|
||||
|
||||
return TextDecoration;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(TextDecoration, "names", ['text-decoration']);
|
||||
|
||||
module.exports = TextDecoration;
|
33
web/node_modules/autoprefixer/lib/hacks/text-emphasis-position.js
generated
vendored
Normal file
33
web/node_modules/autoprefixer/lib/hacks/text-emphasis-position.js
generated
vendored
Normal file
|
@ -0,0 +1,33 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var TextEmphasisPosition = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(TextEmphasisPosition, _Declaration);
|
||||
|
||||
function TextEmphasisPosition() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = TextEmphasisPosition.prototype;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (prefix === '-webkit-') {
|
||||
decl.value = decl.value.replace(/\s*(right|left)\s*/i, '');
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return TextEmphasisPosition;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(TextEmphasisPosition, "names", ['text-emphasis-position']);
|
||||
|
||||
module.exports = TextEmphasisPosition;
|
105
web/node_modules/autoprefixer/lib/hacks/transform-decl.js
generated
vendored
Normal file
105
web/node_modules/autoprefixer/lib/hacks/transform-decl.js
generated
vendored
Normal file
|
@ -0,0 +1,105 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _createForOfIteratorHelperLoose(o, allowArrayLike) { var it; if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; return function () { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } it = o[Symbol.iterator](); return it.next.bind(it); }
|
||||
|
||||
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
||||
|
||||
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var TransformDecl = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(TransformDecl, _Declaration);
|
||||
|
||||
function TransformDecl() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = TransformDecl.prototype;
|
||||
|
||||
/**
|
||||
* Recursively check all parents for @keyframes
|
||||
*/
|
||||
_proto.keyframeParents = function keyframeParents(decl) {
|
||||
var parent = decl.parent;
|
||||
|
||||
while (parent) {
|
||||
if (parent.type === 'atrule' && parent.name === 'keyframes') {
|
||||
return true;
|
||||
}
|
||||
|
||||
var _parent = parent;
|
||||
parent = _parent.parent;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Is transform contain 3D commands
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.contain3d = function contain3d(decl) {
|
||||
if (decl.prop === 'transform-origin') {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (var _iterator = _createForOfIteratorHelperLoose(TransformDecl.functions3d), _step; !(_step = _iterator()).done;) {
|
||||
var func = _step.value;
|
||||
|
||||
if (decl.value.includes(func + "(")) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
/**
|
||||
* Replace rotateZ to rotate for IE 9
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.set = function set(decl, prefix) {
|
||||
decl = _Declaration.prototype.set.call(this, decl, prefix);
|
||||
|
||||
if (prefix === '-ms-') {
|
||||
decl.value = decl.value.replace(/rotatez/gi, 'rotate');
|
||||
}
|
||||
|
||||
return decl;
|
||||
}
|
||||
/**
|
||||
* Don't add prefix for IE in keyframes
|
||||
*/
|
||||
;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (prefix === '-ms-') {
|
||||
if (!this.contain3d(decl) && !this.keyframeParents(decl)) {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
} else if (prefix === '-o-') {
|
||||
if (!this.contain3d(decl)) {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
} else {
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
}
|
||||
|
||||
return undefined;
|
||||
};
|
||||
|
||||
return TransformDecl;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(TransformDecl, "names", ['transform', 'transform-origin']);
|
||||
|
||||
_defineProperty(TransformDecl, "functions3d", ['matrix3d', 'translate3d', 'translateZ', 'scale3d', 'scaleZ', 'rotate3d', 'rotateX', 'rotateY', 'perspective']);
|
||||
|
||||
module.exports = TransformDecl;
|
36
web/node_modules/autoprefixer/lib/hacks/user-select.js
generated
vendored
Normal file
36
web/node_modules/autoprefixer/lib/hacks/user-select.js
generated
vendored
Normal file
|
@ -0,0 +1,36 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var UserSelect = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(UserSelect, _Declaration);
|
||||
|
||||
function UserSelect() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = UserSelect.prototype;
|
||||
|
||||
/**
|
||||
* Change prefixed value for IE
|
||||
*/
|
||||
_proto.set = function set(decl, prefix) {
|
||||
if (prefix === '-ms-' && decl.value === 'contain') {
|
||||
decl.value = 'element';
|
||||
}
|
||||
|
||||
return _Declaration.prototype.set.call(this, decl, prefix);
|
||||
};
|
||||
|
||||
return UserSelect;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(UserSelect, "names", ['user-select']);
|
||||
|
||||
module.exports = UserSelect;
|
59
web/node_modules/autoprefixer/lib/hacks/writing-mode.js
generated
vendored
Normal file
59
web/node_modules/autoprefixer/lib/hacks/writing-mode.js
generated
vendored
Normal file
|
@ -0,0 +1,59 @@
|
|||
"use strict";
|
||||
|
||||
function _defaults(obj, defaults) { var keys = Object.getOwnPropertyNames(defaults); for (var i = 0; i < keys.length; i++) { var key = keys[i]; var value = Object.getOwnPropertyDescriptor(defaults, key); if (value && value.configurable && obj[key] === undefined) { Object.defineProperty(obj, key, value); } } return obj; }
|
||||
|
||||
function _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; _defaults(subClass, superClass); }
|
||||
|
||||
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
||||
|
||||
var Declaration = require('../declaration');
|
||||
|
||||
var WritingMode = /*#__PURE__*/function (_Declaration) {
|
||||
_inheritsLoose(WritingMode, _Declaration);
|
||||
|
||||
function WritingMode() {
|
||||
return _Declaration.apply(this, arguments) || this;
|
||||
}
|
||||
|
||||
var _proto = WritingMode.prototype;
|
||||
|
||||
_proto.insert = function insert(decl, prefix, prefixes) {
|
||||
if (prefix === '-ms-') {
|
||||
var cloned = this.set(this.clone(decl), prefix);
|
||||
|
||||
if (this.needCascade(decl)) {
|
||||
cloned.raws.before = this.calcBefore(prefixes, decl, prefix);
|
||||
}
|
||||
|
||||
var direction = 'ltr';
|
||||
decl.parent.nodes.forEach(function (i) {
|
||||
if (i.prop === 'direction') {
|
||||
if (i.value === 'rtl' || i.value === 'ltr') direction = i.value;
|
||||
}
|
||||
});
|
||||
cloned.value = WritingMode.msValues[direction][decl.value] || decl.value;
|
||||
return decl.parent.insertBefore(decl, cloned);
|
||||
}
|
||||
|
||||
return _Declaration.prototype.insert.call(this, decl, prefix, prefixes);
|
||||
};
|
||||
|
||||
return WritingMode;
|
||||
}(Declaration);
|
||||
|
||||
_defineProperty(WritingMode, "names", ['writing-mode']);
|
||||
|
||||
_defineProperty(WritingMode, "msValues", {
|
||||
ltr: {
|
||||
'horizontal-tb': 'lr-tb',
|
||||
'vertical-rl': 'tb-rl',
|
||||
'vertical-lr': 'tb-lr'
|
||||
},
|
||||
rtl: {
|
||||
'horizontal-tb': 'rl-tb',
|
||||
'vertical-rl': 'bt-rl',
|
||||
'vertical-lr': 'bt-lr'
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = WritingMode;
|
Loading…
Add table
Add a link
Reference in a new issue