run build after dependecy update
This commit is contained in:
37
vendor/fontawesome-free/js/fontawesome.js
vendored
37
vendor/fontawesome-free/js/fontawesome.js
vendored
@@ -1,5 +1,5 @@
|
||||
/*!
|
||||
* Font Awesome Free 5.12.0 by @fontawesome - https://fontawesome.com
|
||||
* Font Awesome Free 5.13.1 by @fontawesome - https://fontawesome.com
|
||||
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
|
||||
*/
|
||||
(function () {
|
||||
@@ -771,6 +771,7 @@
|
||||
attributes = _ref.attributes,
|
||||
main = _ref.main,
|
||||
mask = _ref.mask,
|
||||
explicitMaskId = _ref.maskId,
|
||||
transform = _ref.transform;
|
||||
var mainWidth = main.width,
|
||||
mainPath = main.icon;
|
||||
@@ -803,8 +804,8 @@
|
||||
attributes: _objectSpread({}, trans.outer),
|
||||
children: [maskInnerGroup]
|
||||
};
|
||||
var maskId = "mask-".concat(nextUniqueId());
|
||||
var clipId = "clip-".concat(nextUniqueId());
|
||||
var maskId = "mask-".concat(explicitMaskId || nextUniqueId());
|
||||
var clipId = "clip-".concat(explicitMaskId || nextUniqueId());
|
||||
var maskTag = {
|
||||
tag: 'mask',
|
||||
attributes: _objectSpread({}, ALL_SPACE, {
|
||||
@@ -937,6 +938,8 @@
|
||||
transform = params.transform,
|
||||
symbol = params.symbol,
|
||||
title = params.title,
|
||||
maskId = params.maskId,
|
||||
titleId = params.titleId,
|
||||
extra = params.extra,
|
||||
_params$watchable = params.watchable,
|
||||
watchable = _params$watchable === void 0 ? false : _params$watchable;
|
||||
@@ -968,7 +971,7 @@
|
||||
if (title) content.children.push({
|
||||
tag: 'title',
|
||||
attributes: {
|
||||
id: content.attributes['aria-labelledby'] || "title-".concat(nextUniqueId())
|
||||
id: content.attributes['aria-labelledby'] || "title-".concat(titleId || nextUniqueId())
|
||||
},
|
||||
children: [title]
|
||||
});
|
||||
@@ -978,6 +981,7 @@
|
||||
iconName: iconName,
|
||||
main: main,
|
||||
mask: mask,
|
||||
maskId: maskId,
|
||||
transform: transform,
|
||||
symbol: symbol,
|
||||
styles: extra.styles
|
||||
@@ -1096,7 +1100,7 @@
|
||||
mark: noop$1,
|
||||
measure: noop$1
|
||||
};
|
||||
var preamble = "FA \"5.12.0\"";
|
||||
var preamble = "FA \"5.13.1\"";
|
||||
|
||||
var begin = function begin(name) {
|
||||
p.mark("".concat(preamble, " ").concat(name, " begins"));
|
||||
@@ -1601,10 +1605,11 @@
|
||||
return acc;
|
||||
}, {});
|
||||
var title = node.getAttribute('title');
|
||||
var titleId = node.getAttribute('data-fa-title-id');
|
||||
|
||||
if (config.autoA11y) {
|
||||
if (title) {
|
||||
extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
|
||||
extraAttributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
|
||||
} else {
|
||||
extraAttributes['aria-hidden'] = 'true';
|
||||
extraAttributes['focusable'] = 'false';
|
||||
@@ -1630,10 +1635,12 @@
|
||||
return {
|
||||
iconName: null,
|
||||
title: null,
|
||||
titleId: null,
|
||||
prefix: null,
|
||||
transform: meaninglessTransform,
|
||||
symbol: false,
|
||||
mask: null,
|
||||
maskId: null,
|
||||
extra: {
|
||||
classes: [],
|
||||
styles: {},
|
||||
@@ -1655,10 +1662,12 @@
|
||||
return {
|
||||
iconName: iconName,
|
||||
title: node.getAttribute('title'),
|
||||
titleId: node.getAttribute('data-fa-title-id'),
|
||||
prefix: prefix,
|
||||
transform: transform,
|
||||
symbol: symbol,
|
||||
mask: mask,
|
||||
maskId: node.getAttribute('data-fa-mask-id'),
|
||||
extra: {
|
||||
classes: extraClasses,
|
||||
styles: extraStyles,
|
||||
@@ -1828,10 +1837,12 @@
|
||||
function generateSvgReplacementMutation(node, nodeMeta) {
|
||||
var iconName = nodeMeta.iconName,
|
||||
title = nodeMeta.title,
|
||||
titleId = nodeMeta.titleId,
|
||||
prefix = nodeMeta.prefix,
|
||||
transform = nodeMeta.transform,
|
||||
symbol = nodeMeta.symbol,
|
||||
mask = nodeMeta.mask,
|
||||
maskId = nodeMeta.maskId,
|
||||
extra = nodeMeta.extra;
|
||||
return new picked(function (resolve, reject) {
|
||||
picked.all([findIcon(iconName, prefix), findIcon(mask.iconName, mask.prefix)]).then(function (_ref) {
|
||||
@@ -1849,7 +1860,9 @@
|
||||
transform: transform,
|
||||
symbol: symbol,
|
||||
mask: mask,
|
||||
maskId: maskId,
|
||||
title: title,
|
||||
titleId: titleId,
|
||||
extra: extra,
|
||||
watchable: true
|
||||
})]);
|
||||
@@ -1990,6 +2003,7 @@
|
||||
var styles = WINDOW.getComputedStyle(node, position);
|
||||
var fontFamily = styles.getPropertyValue('font-family').match(FONT_FAMILY_PATTERN);
|
||||
var fontWeight = styles.getPropertyValue('font-weight');
|
||||
var content = styles.getPropertyValue('content');
|
||||
|
||||
if (alreadyProcessedPseudoElement && !fontFamily) {
|
||||
// If we've already processed it but the current computed style does not result in a font-family,
|
||||
@@ -1997,8 +2011,7 @@
|
||||
// removed. So we now should delete the icon.
|
||||
node.removeChild(alreadyProcessedPseudoElement);
|
||||
return resolve();
|
||||
} else if (fontFamily) {
|
||||
var content = styles.getPropertyValue('content');
|
||||
} else if (fontFamily && content !== 'none' && content !== '') {
|
||||
var prefix = ~['Solid', 'Regular', 'Light', 'Duotone', 'Brands'].indexOf(fontFamily[1]) ? STYLE_TO_PREFIX[fontFamily[1].toLowerCase()] : FONT_WEIGHT_TO_PREFIX[fontWeight];
|
||||
var hexValue = toHex(content.length === 3 ? content.substr(1, 1) : content);
|
||||
var iconName = byUnicode(prefix, hexValue);
|
||||
@@ -2271,8 +2284,12 @@
|
||||
symbol = _params$symbol === void 0 ? false : _params$symbol,
|
||||
_params$mask = params.mask,
|
||||
mask = _params$mask === void 0 ? null : _params$mask,
|
||||
_params$maskId = params.maskId,
|
||||
maskId = _params$maskId === void 0 ? null : _params$maskId,
|
||||
_params$title = params.title,
|
||||
title = _params$title === void 0 ? null : _params$title,
|
||||
_params$titleId = params.titleId,
|
||||
titleId = _params$titleId === void 0 ? null : _params$titleId,
|
||||
_params$classes = params.classes,
|
||||
classes = _params$classes === void 0 ? [] : _params$classes,
|
||||
_params$attributes = params.attributes,
|
||||
@@ -2290,7 +2307,7 @@
|
||||
|
||||
if (config.autoA11y) {
|
||||
if (title) {
|
||||
attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(nextUniqueId());
|
||||
attributes['aria-labelledby'] = "".concat(config.replacementClass, "-title-").concat(titleId || nextUniqueId());
|
||||
} else {
|
||||
attributes['aria-hidden'] = 'true';
|
||||
attributes['focusable'] = 'false';
|
||||
@@ -2312,6 +2329,8 @@
|
||||
transform: _objectSpread({}, meaninglessTransform, transform),
|
||||
symbol: symbol,
|
||||
title: title,
|
||||
maskId: maskId,
|
||||
titleId: titleId,
|
||||
extra: {
|
||||
attributes: attributes,
|
||||
styles: styles,
|
||||
|
||||
Reference in New Issue
Block a user