Commit f1702439 authored by longwave's avatar longwave Committed by bnjmnm
Browse files

Issue #3262573 by longwave, nod_, xjm, Spokje, alexpott, lauriii, catch:...

Issue #3262573 by longwave, nod_, xjm, Spokje, alexpott, lauriii, catch: Update our yarn dev dependencies to the extent allowed by current constraints
parent e85bd405
......@@ -61,7 +61,6 @@ arrowstop
arrowthick
arrowthickstop
arrr
asdf
asdrsad
assertable
asterix
......@@ -187,7 +186,6 @@ bubbleable
buildable
buildinfo
buildtest
bundable
bundleable
bundleless
buttonpane
......@@ -296,7 +294,6 @@ contextual's
contextuals
contrained
controlgroup
coord
corefake
coretest
corge
......@@ -311,7 +308,6 @@ crossout
crudui
crypted
cscript
csrf
csrftoken
cssidentifier
csslintrc
......@@ -357,7 +353,6 @@ ddblock
ddev
deckard
deconstructor
dedupe
deduplicated
deduplicates
defalt
......@@ -395,7 +390,6 @@ desaturates
desaturating
descripcion
deserialization
deserializes
destid
destructable
deutsch
......@@ -427,7 +421,6 @@ doubleclick
downcasting
doxygen
drag'n'drop
draggable
dragtable
dramallama
dramallamas
......@@ -471,7 +464,6 @@ easyrdf
ecmascript
editables
editdrupalimage
editorconfig
editunblock
eerste
egroe
......@@ -535,8 +527,6 @@ fapi
farb
farbtastic
fatals
favicon
favicons
favourite
favstar
fcgi
......@@ -572,7 +562,6 @@ filtertypes
findwith
firstcolumn
fixnull
flexbox
flexslider
flickr
flipfit
......@@ -633,8 +622,6 @@ getview
gids
gifs
giggabyte
gitattributes
gitignored
gloop
gnumeric
goldfinger
......@@ -658,7 +645,6 @@ guzzle's
guzzlehttp
gzipped
hande
hant
hardcode
hardcodes
hardcoding
......@@ -746,7 +732,6 @@ isdst
isid
isinstallable
items's
iteratable
itoa
itok
itunesentry
......@@ -808,7 +793,6 @@ langcodes
langname
languageswitcher
larowlan
latn
layouted
lazybuilder
lazyload
......@@ -1045,7 +1029,6 @@ nothere
notnull
notsimpletest
nourriture
nowdoc
nplurals
nresponse
ntfs
......@@ -1054,7 +1037,6 @@ nyancat
nyans
nzdt
nœud
objectid
objectindex
oembed
officedocument
......@@ -1113,17 +1095,14 @@ pathnames
pcre
pcss
pdo's
pecl
peole
percona
performant
perma
permissionless
persistable
phpass
phpcbf
phpcs
phpdoc
phpdocumentor
phpfile
phpserialize
......@@ -1158,7 +1137,6 @@ postcondition
postcss
postfields
postfoo
postgres
postgresql
postorder
postprocess
......@@ -1288,9 +1266,6 @@ reparenting
reparsed
replyto
require'd
rerender
rerendered
rerendering
resampling
resave
resaved
......@@ -1418,7 +1393,6 @@ sourceid
spacebar
spagna
spamspan
spdx
specialchar
specialchars
spiffiness
......@@ -1435,7 +1409,6 @@ ssess
ssid
stardivision
starrrrr
starterkit
startpunt
starzzzz
statuscode
......@@ -1889,7 +1862,6 @@ yourmodule
youtube
yowser
yygroup
yyyymm
zartan
zendframework
zettabyte
......
......@@ -9,7 +9,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
(function ($, Modernizr, Drupal, once) {
Drupal.behaviors.date = {
......
......@@ -5,9 +5,9 @@
* @preserve
**/
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
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; }
......
......@@ -9,7 +9,7 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
(function (Drupal) {
Drupal.Message = function () {
......
......@@ -158,16 +158,16 @@
}
}
} else if ($.isPlainObject(constraints)) {
for (var n in constraints) {
if (constraints.hasOwnProperty(n)) {
result = ternary(result, this.checkConstraints(constraints[n], selector, n));
for (var n in constraints) {
if (constraints.hasOwnProperty(n)) {
result = ternary(result, this.checkConstraints(constraints[n], selector, n));
if (result === false) {
return false;
}
if (result === false) {
return false;
}
}
}
}
return result;
},
......
......@@ -119,8 +119,8 @@ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len
if (data.tabindex) {
$el[0].setAttribute('tabindex', data.tabindex);
} else {
$el[0].removeAttribute('tabindex');
}
$el[0].removeAttribute('tabindex');
}
if (data.autofocus) {
$el[0].setAttribute('autofocus', 'autofocus');
......
......@@ -5,7 +5,7 @@
* @preserve
**/
function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
(function ($, Drupal, drupalSettings) {
var showWeight = JSON.parse(localStorage.getItem('Drupal.tableDrag.showWeight'));
......@@ -158,8 +158,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
if (displayWeight) {
this.showColumns();
} else {
this.hideColumns();
}
this.hideColumns();
}
this.$toggleWeightButton.html(Drupal.theme('toggleButtonContent', displayWeight));
$('table').findOnce('tabledrag').trigger('columnschange', !!displayWeight);
......@@ -538,8 +538,8 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
if (row.offsetHeight === 0) {
rowHeight = parseInt(row.firstChild.offsetHeight, 10) / 2;
} else {
rowHeight = parseInt(row.offsetHeight, 10) / 2;
}
rowHeight = parseInt(row.offsetHeight, 10) / 2;
}
if (y > rowY - rowHeight && y < rowY + rowHeight) {
if (_this3.indentEnabled) {
......@@ -551,10 +551,10 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
};
}
} else if (row === _this3.rowObject.element) {
return {
v: null
};
}
return {
v: null
};
}
if (!_this3.rowObject.isValidSwap(row)) {
return {
......@@ -601,51 +601,51 @@ function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "functi
if (rowSettings.relationship === 'self' || rowSettings.relationship === 'group') {
sourceRow = changedRow;
} else if (rowSettings.relationship === 'sibling') {
$previousRow = $changedRow.prev('tr:first-of-type');
previousRow = $previousRow.get(0);
var $nextRow = $changedRow.next('tr:first-of-type');
var nextRow = $nextRow.get(0);
sourceRow = changedRow;
$previousRow = $changedRow.prev('tr:first-of-type');
previousRow = $previousRow.get(0);
var $nextRow = $changedRow.next('tr:first-of-type');
var nextRow = $nextRow.get(0);
sourceRow = changedRow;
if ($previousRow.is('.draggable') && $previousRow.find(".".concat(group)).length) {
if (this.indentEnabled) {
if ($previousRow.find('.js-indentations').length === $changedRow.find('.js-indentations').length) {
sourceRow = previousRow;
}
} else {
if ($previousRow.is('.draggable') && $previousRow.find(".".concat(group)).length) {
if (this.indentEnabled) {
if ($previousRow.find('.js-indentations').length === $changedRow.find('.js-indentations').length) {
sourceRow = previousRow;
}
} else if ($nextRow.is('.draggable') && $nextRow.find(".".concat(group)).length) {
if (this.indentEnabled) {
if ($nextRow.find('.js-indentations').length === $changedRow.find('.js-indentations').length) {
sourceRow = nextRow;
}
} else {
} else {
sourceRow = previousRow;
}
} else if ($nextRow.is('.draggable') && $nextRow.find(".".concat(group)).length) {
if (this.indentEnabled) {
if ($nextRow.find('.js-indentations').length === $changedRow.find('.js-indentations').length) {
sourceRow = nextRow;
}
} else {
sourceRow = nextRow;
}
} else if (rowSettings.relationship === 'parent') {
$previousRow = $changedRow.prev('tr');
previousRow = $previousRow;
while ($previousRow.length && $previousRow.find('.js-indentation').length >= this.rowObject.indents) {
$previousRow = $previousRow.prev('tr');
previousRow = $previousRow;
}
}
} else if (rowSettings.relationship === 'parent') {
$previousRow = $changedRow.prev('tr');
previousRow = $previousRow;
if ($previousRow.length) {
sourceRow = $previousRow.get(0);
} else {
sourceRow = $(this.table).find('tr.draggable:first-of-type').get(0);
while ($previousRow.length && $previousRow.find('.js-indentation').length >= this.rowObject.indents) {
$previousRow = $previousRow.prev('tr');
previousRow = $previousRow;
}
if (sourceRow === this.rowObject.element) {
sourceRow = $(this.rowObject.group[this.rowObject.group.length - 1]).next('tr.draggable').get(0);
}
if ($previousRow.length) {
sourceRow = $previousRow.get(0);
} else {
sourceRow = $(this.table).find('tr.draggable:first-of-type').get(0);
useSibling = true;
}
if (sourceRow === this.rowObject.element) {
sourceRow = $(this.rowObject.group[this.rowObject.group.length - 1]).next('tr.draggable').get(0);
}
useSibling = true;
}
}
this.copyDragClasses(sourceRow, changedRow, group);
rowSettings = this.rowSettings(group, changedRow);
......
......@@ -66,30 +66,30 @@
});
this.$link.text(this.hideText).data('pegged', 1);
} else {
this.$revealedCells.hide();
this.$revealedCells.each(function (index, element) {
var $cell = $(this);
var properties = $cell.attr('style').split(';');
var newProps = [];
var match = /^display\s*:\s*none$/;
this.$revealedCells.hide();
this.$revealedCells.each(function (index, element) {
var $cell = $(this);
var properties = $cell.attr('style').split(';');
var newProps = [];
var match = /^display\s*:\s*none$/;
for (var i = 0; i < properties.length; i++) {
var prop = properties[i];
prop.trim();
var isDisplayNone = match.exec(prop);
for (var i = 0; i < properties.length; i++) {
var prop = properties[i];
prop.trim();
var isDisplayNone = match.exec(prop);
if (isDisplayNone) {
continue;
}
newProps.push(prop);
if (isDisplayNone) {
continue;
}
$cell.attr('style', newProps.join(';'));
});
this.$link.text(this.showText).data('pegged', 0);
$(window).trigger('resize.tableresponsive');
}
newProps.push(prop);
}
$cell.attr('style', newProps.join(';'));
});
this.$link.text(this.showText).data('pegged', 0);
$(window).trigger('resize.tableresponsive');
}
}
});
Drupal.TableResponsive = TableResponsive;
......
......@@ -84,8 +84,8 @@
break;
}
} else if ($.filter(to, [i]).r.length) {
break;
}
break;
}
}
};
})(jQuery, Drupal);
\ No newline at end of file
......@@ -32,10 +32,10 @@
if (offsetJan === offsetJul) {
isDaylightSavingTime = '';
} else if (Math.max(offsetJan, offsetJul) === offsetNow) {
isDaylightSavingTime = 1;
} else {
isDaylightSavingTime = 0;
}
isDaylightSavingTime = 1;
} else {
isDaylightSavingTime = 0;
}
var path = "system/timezone/".concat(abbreviation, "/").concat(offsetNow, "/").concat(isDaylightSavingTime);
$.ajax({
......
......@@ -118,8 +118,8 @@
if ($firstTab.length) {
$firstTab.data('verticalTab').focus();
} else {
this.item.closest('.js-form-type-vertical-tabs').hide();
}
this.item.closest('.js-form-type-vertical-tabs').hide();
}
return this;
}
......
......@@ -59,8 +59,8 @@
if ($this.next('tr').is(':not(.draggable)') || $this.next('tr').length === 0) {
$this.removeClass('region-populated').addClass('region-empty');
} else if ($this.is('.region-empty')) {
$this.removeClass('region-empty').addClass('region-populated');
}
$this.removeClass('region-empty').addClass('region-populated');
}
});
}
......@@ -122,8 +122,8 @@
if (regionItems.length) {
regionItems.last().after(row);
} else {
regionMessage.after(row);
}
regionMessage.after(row);
}
updateBlockWeights(table, select[0].value);
checkEmptyRegions(table, tableDrag.rowObject);
......
......@@ -111,8 +111,8 @@
if (linkElement && linkElement.$) {
existingValues = parseAttributes(editor, linkElement);
} else if (focusedLinkableWidget && focusedLinkableWidget.data.link) {
existingValues = CKEDITOR.tools.clone(focusedLinkableWidget.data.link);
}
existingValues = CKEDITOR.tools.clone(focusedLinkableWidget.data.link);
}
var saveCallback = function saveCallback(returnValues) {
if (focusedLinkableWidget) {
......@@ -142,16 +142,16 @@
range.select();
linkElement = getSelectedLink(editor);
} else if (linkElement) {
Object.keys(returnValues.attributes || {}).forEach(function (attrName) {
if (returnValues.attributes[attrName].length > 0) {
var value = returnValues.attributes[attrName];
linkElement.data("cke-saved-".concat(attrName), value);
linkElement.setAttribute(attrName, value);
} else {
linkElement.removeAttribute(attrName);
}
});
}
Object.keys(returnValues.attributes || {}).forEach(function (attrName) {
if (returnValues.attributes[attrName].length > 0) {
var value = returnValues.attributes[attrName];
linkElement.data("cke-saved-".concat(attrName), value);
linkElement.setAttribute(attrName, value);
} else {
linkElement.removeAttribute(attrName);
}
});
}
editor.fire('saveSnapshot');
};
......
......@@ -90,28 +90,28 @@
text += "\n".concat(Drupal.t('Press the down arrow key to activate.'));
Drupal.announce(text, 'assertive');
} else if ($group.not('.placeholder').length === 1) {
text = Drupal.t('@name @type in position @position of @positionCount in @groupName button group in row @row of @rowCount.', {
'@name': $button.children().attr('aria-label'),
'@type': type,
'@position': position,
'@positionCount': positionCount,
'@groupName': $group.attr('data-drupal-ckeditor-toolbar-group-name'),
'@row': row,
'@rowCount': rowCount
});
if (groupPosition === 1 && position === 1 && row === rowCount) {
text += '\n';
text += Drupal.t('Press the down arrow key to create a new button group in a new row.');
}
text = Drupal.t('@name @type in position @position of @positionCount in @groupName button group in row @row of @rowCount.', {
'@name': $button.children().attr('aria-label'),
'@type': type,
'@position': position,
'@positionCount': positionCount,
'@groupName': $group.attr('data-drupal-ckeditor-toolbar-group-name'),
'@row': row,
'@rowCount': rowCount
});
if (groupPosition === groupPositionCount && position === positionCount) {
text += '\n';
text += Drupal.t('This is the last group. Move the button forward to create a new group.');
}
if (groupPosition === 1 && position === 1 && row === rowCount) {
text += '\n';
text += Drupal.t('Press the down arrow key to create a new button group in a new row.');
}
Drupal.announce(text, 'assertive');
if (groupPosition === groupPositionCount && position === positionCount) {
text += '\n';
text += Drupal.t('This is the last group. Move the button forward to create a new group.');
}
Drupal.announce(text, 'assertive');
}
},
announceButtonHelp: function announceButtonHelp(event) {
var $link = $(event.currentTarget);
......
......@@ -46,43 +46,43 @@
if (index > 0) {
$button.insertBefore($container.children().eq(index - 1));
} else {
$group = $container.parent().prev();