Issue #3262573 by longwave, nod_, xjm, alexpott, lauriii: Update our yarn dev dependencies to the extent allowed by current constraints
parent
bedd3d0621
commit
8a0b901de2
|
|
@ -466,6 +466,7 @@
|
|||
"string-quotes": "double",
|
||||
"unit-allowed-list": ["ch", "deg", "em", "ex", "fr", "ms", "rem", "%", "s", "px", "vw", "vh"],
|
||||
"value-keyword-case": ["lower", {
|
||||
"camelCaseSvgKeywords": true,
|
||||
"ignoreProperties": [
|
||||
"--font-family",
|
||||
"font-family"
|
||||
|
|
|
|||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -1084,10 +1084,10 @@ picturefill:
|
|||
assets/vendor/picturefill/picturefill.min.js: { weight: -10, minified: true }
|
||||
|
||||
popperjs:
|
||||
version: "2.10.2"
|
||||
version: "2.11.2"
|
||||
license:
|
||||
name: MIT
|
||||
url: https://raw.githubusercontent.com/popperjs/popper-core/v2.10.2/LICENSE.md
|
||||
url: https://raw.githubusercontent.com/popperjs/popper-core/v2.11.2/LICENSE.md
|
||||
gpl-compatible: true
|
||||
js:
|
||||
assets/vendor/popperjs/popper.min.js: { minified: true }
|
||||
|
|
@ -1129,10 +1129,10 @@ tabbable.jquery.shim:
|
|||
|
||||
underscore:
|
||||
remote: https://github.com/jashkenas/underscore
|
||||
version: "1.13.1"
|
||||
version: "1.13.2"
|
||||
license:
|
||||
name: MIT
|
||||
url: https://raw.githubusercontent.com/jashkenas/underscore/1.13.1/LICENSE
|
||||
url: https://raw.githubusercontent.com/jashkenas/underscore/1.13.2/LICENSE
|
||||
gpl-compatible: true
|
||||
js:
|
||||
assets/vendor/underscore/underscore-min.js: { weight: -20, minified: true }
|
||||
|
|
|
|||
|
|
@ -5,10 +5,11 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(function ($, window, Drupal, drupalSettings, {
|
||||
isFocusable,
|
||||
tabbable
|
||||
}) {
|
||||
(function ($, window, Drupal, drupalSettings, _ref) {
|
||||
let {
|
||||
isFocusable,
|
||||
tabbable
|
||||
} = _ref;
|
||||
Drupal.behaviors.AJAX = {
|
||||
attach(context, settings) {
|
||||
function loadAjaxBehavior(base) {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
abcdefghijklmno
|
||||
abcdefghijklmnopqrstuvwxyz
|
||||
abcdefghijkmnopqrstuvwxyz
|
||||
abcdefghjklmnpqrstuvwxyz
|
||||
absolutezero
|
||||
accesslog
|
||||
accum
|
||||
|
|
@ -12,11 +13,11 @@ afterclose
|
|||
aftercreate
|
||||
ahah
|
||||
aimez
|
||||
aiufyfh
|
||||
ajaxcallback
|
||||
ajaxify
|
||||
ajaxing
|
||||
akiko
|
||||
alignable
|
||||
allwords
|
||||
alphadecimal
|
||||
alterjs
|
||||
|
|
@ -46,13 +47,10 @@ arrowstop
|
|||
arrowthick
|
||||
arrowthickstop
|
||||
arrr
|
||||
asdf
|
||||
asdrsad
|
||||
assertable
|
||||
asterix
|
||||
atomentry
|
||||
atomfeed
|
||||
atomrendererfeed
|
||||
atsign
|
||||
attrval
|
||||
attrvals
|
||||
|
|
@ -71,7 +69,6 @@ autoescape
|
|||
autoescaped
|
||||
autoescaping
|
||||
autofix
|
||||
autogenerate
|
||||
autogenerator
|
||||
autoloadable
|
||||
autoloaded
|
||||
|
|
@ -117,10 +114,12 @@ bebebe
|
|||
beforeclose
|
||||
beforecreate
|
||||
behat
|
||||
behaviour
|
||||
bergmann
|
||||
berne
|
||||
bgblue
|
||||
bgcolor
|
||||
bggya
|
||||
bgred
|
||||
bigpipe
|
||||
bikeshed
|
||||
|
|
@ -201,7 +200,6 @@ checkboxified
|
|||
checkboxifier
|
||||
checkboxify
|
||||
checkboxradio
|
||||
checkmark
|
||||
chien
|
||||
chiens
|
||||
childlist
|
||||
|
|
@ -250,8 +248,6 @@ configurator
|
|||
conneg
|
||||
contaynz
|
||||
contentblock
|
||||
contententry
|
||||
contentrendererentry
|
||||
contextuals
|
||||
controlgroup
|
||||
corefake
|
||||
|
|
@ -286,9 +282,7 @@ dasharray
|
|||
dashoffset
|
||||
databasefilename
|
||||
databasename
|
||||
datapoint
|
||||
datas
|
||||
datatypes
|
||||
dateformatter
|
||||
datelist
|
||||
dateonly
|
||||
|
|
@ -296,7 +290,6 @@ daterange
|
|||
datestamp
|
||||
datetimeiso
|
||||
datetimeplus
|
||||
datetype
|
||||
daycount
|
||||
dblog
|
||||
dbtng
|
||||
|
|
@ -313,7 +306,6 @@ deletable
|
|||
deletedline
|
||||
deletee
|
||||
deleter
|
||||
delim
|
||||
delsp
|
||||
denormalizable
|
||||
denormalization
|
||||
|
|
@ -324,12 +316,12 @@ denormalizers
|
|||
denormalizes
|
||||
denormalizing
|
||||
denyall
|
||||
depcn
|
||||
dependee
|
||||
dependee's
|
||||
dependees
|
||||
depenencies
|
||||
deprioritize
|
||||
dequeues
|
||||
derivedfrom
|
||||
derp
|
||||
desaturate
|
||||
|
|
@ -338,7 +330,6 @@ desaturates
|
|||
desaturating
|
||||
descripcion
|
||||
deserialization
|
||||
deserializes
|
||||
destructable
|
||||
deutsch
|
||||
deutscher
|
||||
|
|
@ -355,7 +346,6 @@ distro
|
|||
ditka
|
||||
divs
|
||||
dnumber
|
||||
docblock
|
||||
docroot
|
||||
docroots
|
||||
dolore
|
||||
|
|
@ -372,14 +362,22 @@ drivernumber
|
|||
drivertest
|
||||
drivertestmysql
|
||||
drivertestpgsql
|
||||
drivertestpqsql
|
||||
drivertext
|
||||
dropbutton
|
||||
dropbuttons
|
||||
dropzone
|
||||
drudbal
|
||||
drup
|
||||
drupalci
|
||||
drupaldatetime
|
||||
drupaldevdays
|
||||
drupalelementstyle
|
||||
drupalelementstylecommand
|
||||
drupalelementstyleediting
|
||||
drupalelementstyleui
|
||||
drupalget
|
||||
drupalhtmlbuilder
|
||||
drupalimage
|
||||
drupalimage's
|
||||
drupalimagecaption
|
||||
|
|
@ -388,20 +386,17 @@ drupalism
|
|||
drupalisms
|
||||
drupallink
|
||||
drupalmedia
|
||||
drupalmediaediting
|
||||
drupalmedialibrary
|
||||
drupalmediatoolbar
|
||||
drupaltest
|
||||
drupalunlink
|
||||
druplicon
|
||||
drush
|
||||
drépal
|
||||
dublincoreentry
|
||||
dublincorefeed
|
||||
dublincorerendererentry
|
||||
dublincorerendererfeed
|
||||
défaut
|
||||
détruire
|
||||
easyrdf
|
||||
ecmascript
|
||||
editables
|
||||
editdrupalimage
|
||||
editunblock
|
||||
|
|
@ -433,7 +428,6 @@ entit
|
|||
entitynodeedit
|
||||
entitytype
|
||||
entityviewedit
|
||||
entrypoint
|
||||
eridani
|
||||
errmode
|
||||
errrf
|
||||
|
|
@ -447,6 +441,7 @@ evenodd
|
|||
eventhandler
|
||||
exampleurl
|
||||
exitcode
|
||||
exoshbm
|
||||
expirable
|
||||
extlink
|
||||
extraday
|
||||
|
|
@ -461,7 +456,6 @@ fapi
|
|||
farb
|
||||
farbtastic
|
||||
fatals
|
||||
favicons
|
||||
favourite
|
||||
favstar
|
||||
fcgi
|
||||
|
|
@ -469,7 +463,6 @@ februar
|
|||
feededit
|
||||
fetchmode
|
||||
fffffg
|
||||
ffnli
|
||||
fichiers
|
||||
fieldable
|
||||
fieldapi
|
||||
|
|
@ -565,8 +558,6 @@ groupwise
|
|||
guzzlehttp
|
||||
gzipped
|
||||
hande
|
||||
hant
|
||||
hardcode
|
||||
hardcodes
|
||||
hardcoding
|
||||
harkonnen
|
||||
|
|
@ -577,7 +568,6 @@ hateoas
|
|||
hbox
|
||||
heartz
|
||||
heke
|
||||
hellip
|
||||
heroless
|
||||
herpderp
|
||||
herro
|
||||
|
|
@ -623,6 +613,7 @@ imagecache
|
|||
imagecreatefrom
|
||||
imagefields
|
||||
imagetest
|
||||
imagetextalternative
|
||||
inator
|
||||
indexname
|
||||
ingoa
|
||||
|
|
@ -632,7 +623,6 @@ inputtypes
|
|||
insidekeyword
|
||||
inspectable
|
||||
instaclick
|
||||
installable
|
||||
instantiator
|
||||
interactable
|
||||
introspectable
|
||||
|
|
@ -645,10 +635,6 @@ isdst
|
|||
isinstallable
|
||||
itoa
|
||||
itok
|
||||
itunesentry
|
||||
itunesfeed
|
||||
itunesrendererentry
|
||||
itunesrendererfeed
|
||||
ized
|
||||
j'aime
|
||||
jamo
|
||||
|
|
@ -656,7 +642,6 @@ januar
|
|||
januari
|
||||
janvier
|
||||
javascripts
|
||||
jcbfyr
|
||||
jessebeach
|
||||
jnoub
|
||||
johansson
|
||||
|
|
@ -700,7 +685,6 @@ langcode
|
|||
langcodes
|
||||
langname
|
||||
languageswitcher
|
||||
latn
|
||||
layouted
|
||||
lazybuilder
|
||||
lazyload
|
||||
|
|
@ -740,6 +724,8 @@ longerthan
|
|||
longtext
|
||||
loquesea
|
||||
loreming
|
||||
loremingipsum
|
||||
loremipsum
|
||||
loremipsumloremipsum
|
||||
lowercased
|
||||
lowlevel
|
||||
|
|
@ -759,9 +745,9 @@ mainpage
|
|||
makealternatemessage
|
||||
makedefaultmessage
|
||||
makewarningmessage
|
||||
makz
|
||||
mame
|
||||
mank
|
||||
mariadb
|
||||
maryjane
|
||||
marz
|
||||
marzo
|
||||
|
|
@ -775,8 +761,10 @@ maxlifetime
|
|||
maxsize
|
||||
maynot
|
||||
mbytes
|
||||
mdash
|
||||
mdhash
|
||||
mediaimagetextalternative
|
||||
mediaimagetextalternativeediting
|
||||
mediaimagetextalternativeui
|
||||
mediumint
|
||||
mediumtext
|
||||
membersonly
|
||||
|
|
@ -869,7 +857,6 @@ narf
|
|||
navs
|
||||
nbaz
|
||||
nbchoices
|
||||
ndash
|
||||
ndelay
|
||||
ndocs
|
||||
nearbykeyword
|
||||
|
|
@ -880,7 +867,6 @@ networkerror
|
|||
newcol
|
||||
newdata
|
||||
newfieldinitial
|
||||
newname
|
||||
newnode
|
||||
newstr
|
||||
newterm
|
||||
|
|
@ -888,6 +874,7 @@ nids
|
|||
nightlies
|
||||
nightwatch
|
||||
nightwatchjs
|
||||
nikic
|
||||
nmsgid
|
||||
nmsgstr
|
||||
nntp
|
||||
|
|
@ -927,7 +914,6 @@ nothere
|
|||
notnull
|
||||
notsimpletest
|
||||
nourriture
|
||||
nowdoc
|
||||
nplurals
|
||||
ntfs
|
||||
nyan
|
||||
|
|
@ -966,13 +952,13 @@ overriders
|
|||
overridetest
|
||||
overwritable
|
||||
owasp
|
||||
oypa
|
||||
pageable
|
||||
pagecache
|
||||
pagetop
|
||||
pageviews
|
||||
pagina
|
||||
pangram
|
||||
paragonie
|
||||
paramconverter
|
||||
parens
|
||||
parentlist
|
||||
|
|
@ -985,14 +971,13 @@ pathauto
|
|||
pathnames
|
||||
pcre
|
||||
pcss
|
||||
pecl
|
||||
pdma
|
||||
percona
|
||||
permissionless
|
||||
persistable
|
||||
phpass
|
||||
phpcbf
|
||||
phpcs
|
||||
phpdoc
|
||||
phpdocumentor
|
||||
phpfile
|
||||
phpserialize
|
||||
|
|
@ -1013,8 +998,6 @@ plid
|
|||
pluggable
|
||||
pluralforms
|
||||
plusthick
|
||||
podcastentry
|
||||
podcastfeed
|
||||
poink
|
||||
pommes
|
||||
ponedjeljak
|
||||
|
|
@ -1027,12 +1010,10 @@ postcondition
|
|||
postcss
|
||||
postfields
|
||||
postfoo
|
||||
postgresql
|
||||
postorder
|
||||
postprocess
|
||||
postupdate
|
||||
poweredby
|
||||
powerpoint
|
||||
powriter
|
||||
prebar
|
||||
precache
|
||||
|
|
@ -1103,6 +1084,7 @@ qvalue
|
|||
qvalues
|
||||
qwer
|
||||
qwerqwer
|
||||
qzzz
|
||||
ragdoll
|
||||
ralouphie
|
||||
rasterizable
|
||||
|
|
@ -1133,12 +1115,10 @@ referencers
|
|||
referer
|
||||
refinable
|
||||
regexes
|
||||
rehydrated
|
||||
reimplement
|
||||
reindex
|
||||
reindexing
|
||||
reinject
|
||||
reinstantiated
|
||||
removeformat
|
||||
renderable
|
||||
renderables
|
||||
|
|
@ -1147,7 +1127,6 @@ renormalize
|
|||
reparenting
|
||||
reparsed
|
||||
replyto
|
||||
resampling
|
||||
resave
|
||||
resaved
|
||||
resaving
|
||||
|
|
@ -1204,7 +1183,6 @@ sebe
|
|||
secondcolumn
|
||||
seld
|
||||
selectbox
|
||||
sendmail
|
||||
serviceform
|
||||
sess
|
||||
settingstray
|
||||
|
|
@ -1230,13 +1208,10 @@ sivun
|
|||
skiptags
|
||||
skos
|
||||
skynet
|
||||
slashentry
|
||||
slashrendererentry
|
||||
slatkin
|
||||
sloopal
|
||||
smacss
|
||||
smalldatetime
|
||||
smallint
|
||||
somecompany
|
||||
somelinks
|
||||
somemodule
|
||||
|
|
@ -1244,7 +1219,6 @@ someplugin
|
|||
someschema
|
||||
somethinggeneric
|
||||
sortablejs
|
||||
sortby
|
||||
sourcearea
|
||||
sourcearea's
|
||||
sourcedialog
|
||||
|
|
@ -1299,8 +1273,6 @@ subforms
|
|||
subjectkeyword
|
||||
subkey
|
||||
subkeys
|
||||
submenu
|
||||
submenus
|
||||
subparse
|
||||
subplugins
|
||||
subproject
|
||||
|
|
@ -1335,9 +1307,11 @@ svenska
|
|||
svgz
|
||||
svibanj
|
||||
swcf
|
||||
sxto
|
||||
symlinking
|
||||
synchronizable
|
||||
syrop
|
||||
szwr
|
||||
tabarnak
|
||||
tabbable
|
||||
tabbingmanager
|
||||
|
|
@ -1377,6 +1351,7 @@ testbots
|
|||
testcase
|
||||
testcases
|
||||
testcontent
|
||||
testcontextawareblock
|
||||
testcontextual
|
||||
testdescription
|
||||
testdialog
|
||||
|
|
@ -1392,6 +1367,7 @@ testget
|
|||
testgroups
|
||||
testid
|
||||
testitem
|
||||
testk
|
||||
testkey
|
||||
testlist
|
||||
testload
|
||||
|
|
@ -1424,15 +1400,12 @@ themey
|
|||
theseer
|
||||
theseparator
|
||||
thirdcolumn
|
||||
threadentry
|
||||
threadingrendererentry
|
||||
threecol
|
||||
tids
|
||||
timecurrent
|
||||
timeframe
|
||||
timegate
|
||||
timemap
|
||||
timepicker
|
||||
timespan
|
||||
timetime
|
||||
tinyint
|
||||
|
|
@ -1451,6 +1424,7 @@ tongatapu
|
|||
toolgroup
|
||||
toolgroups
|
||||
toolkits
|
||||
toolongdomainexampledomainexampledomainexampledomainexampledomain
|
||||
toplevel
|
||||
topop
|
||||
torder
|
||||
|
|
@ -1482,7 +1456,6 @@ typehinting
|
|||
typehints
|
||||
typemanager
|
||||
tzid
|
||||
tést
|
||||
uberawesome
|
||||
uicrud
|
||||
uids
|
||||
|
|
@ -1534,9 +1507,6 @@ unmanaged
|
|||
unmatch
|
||||
unminified
|
||||
unmoderated
|
||||
unmunge
|
||||
unmunged
|
||||
unmunging
|
||||
unoptimized
|
||||
unpad
|
||||
unparsable
|
||||
|
|
@ -1545,7 +1515,6 @@ unpermissioned
|
|||
unprefix
|
||||
unprefixed
|
||||
unpreloaded
|
||||
unprocessable
|
||||
unpromote
|
||||
unpromoted
|
||||
unpublish
|
||||
|
|
@ -1571,7 +1540,6 @@ untabbable
|
|||
untarring
|
||||
untruncated
|
||||
untrustable
|
||||
untrusted
|
||||
unvalidated
|
||||
unversioned
|
||||
unwrapper
|
||||
|
|
@ -1598,7 +1566,6 @@ vals
|
|||
vampirize
|
||||
varchar
|
||||
veeeery
|
||||
vendored
|
||||
veniam
|
||||
verison
|
||||
versionable
|
||||
|
|
@ -1628,7 +1595,6 @@ webflo
|
|||
webfonts
|
||||
webheads
|
||||
webhosting
|
||||
webm
|
||||
webmention
|
||||
webmozart
|
||||
webroot
|
||||
|
|
@ -1636,14 +1602,12 @@ webserver
|
|||
webservers
|
||||
webtest
|
||||
webuser
|
||||
wellformedwebentry
|
||||
wellformedwebrendererentry
|
||||
whitespaces
|
||||
whos
|
||||
widthx
|
||||
wimoids
|
||||
windir
|
||||
winnt
|
||||
wmet
|
||||
wmlscript
|
||||
wordprocessingml
|
||||
wordsafe
|
||||
|
|
@ -1660,6 +1624,7 @@ xbap
|
|||
xbeg
|
||||
xbitmap
|
||||
xfbml
|
||||
xgbql
|
||||
xjkm
|
||||
xlen
|
||||
xlgp
|
||||
|
|
@ -1683,8 +1648,9 @@ yottabyte
|
|||
yottabytes
|
||||
yourbackend
|
||||
yourmodule
|
||||
youtube
|
||||
yowser
|
||||
yqpr
|
||||
yuqk
|
||||
yygroup
|
||||
zartan
|
||||
zendframework
|
||||
|
|
@ -1698,10 +1664,12 @@ zonelist
|
|||
zoomin
|
||||
zoomout
|
||||
zwei
|
||||
zwjhek
|
||||
zxvf
|
||||
zzgroup
|
||||
Èxample
|
||||
Über
|
||||
Übersetzung
|
||||
åwesome
|
||||
èxample
|
||||
über
|
||||
übersetzung
|
||||
ȅchȏ
|
||||
Ȅchȏ
|
||||
|
|
|
|||
|
|
@ -64,16 +64,22 @@
|
|||
|
||||
};
|
||||
|
||||
Drupal.theme.dateHelp = ({
|
||||
dateDesc
|
||||
}) => `<div class="no-native-datepicker-help">${dateDesc}</div>`;
|
||||
Drupal.theme.dateHelp = _ref => {
|
||||
let {
|
||||
dateDesc
|
||||
} = _ref;
|
||||
return `<div class="no-native-datepicker-help">${dateDesc}</div>`;
|
||||
};
|
||||
|
||||
Drupal.theme.dateTimeHelp = ({
|
||||
dateId,
|
||||
timeId,
|
||||
dateDesc,
|
||||
timeDesc
|
||||
}) => `<div class="no-native-datepicker-help">
|
||||
Drupal.theme.dateTimeHelp = _ref2 => {
|
||||
let {
|
||||
dateId,
|
||||
timeId,
|
||||
dateDesc,
|
||||
timeDesc
|
||||
} = _ref2;
|
||||
return `<div class="no-native-datepicker-help">
|
||||
<span id="${dateId}">${dateDesc}</span> <span id="${timeId}">${timeDesc}</span>
|
||||
</div>`;
|
||||
};
|
||||
})(Modernizr, Drupal, once);
|
||||
|
|
@ -8,7 +8,11 @@
|
|||
Drupal.debounce = function (func, wait, immediate) {
|
||||
let timeout;
|
||||
let result;
|
||||
return function (...args) {
|
||||
return function () {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
const context = this;
|
||||
|
||||
const later = function () {
|
||||
|
|
|
|||
|
|
@ -26,7 +26,11 @@
|
|||
|
||||
const originalClose = settings.dialog.close;
|
||||
|
||||
settings.dialog.close = function (event, ...args) {
|
||||
settings.dialog.close = function (event) {
|
||||
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
||||
args[_key - 1] = arguments[_key];
|
||||
}
|
||||
|
||||
originalClose.apply(settings.dialog, [event, ...args]);
|
||||
$(event.target).remove();
|
||||
};
|
||||
|
|
|
|||
|
|
@ -5,10 +5,11 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(function ($, {
|
||||
tabbable,
|
||||
isTabbable
|
||||
}) {
|
||||
(function ($, _ref) {
|
||||
let {
|
||||
tabbable,
|
||||
isTabbable
|
||||
} = _ref;
|
||||
$.widget('ui.dialog', $.ui.dialog, {
|
||||
options: {
|
||||
buttonClass: 'button',
|
||||
|
|
|
|||
|
|
@ -22,10 +22,11 @@
|
|||
$(window).off('.off-canvas');
|
||||
},
|
||||
|
||||
beforeCreate({
|
||||
settings,
|
||||
$element
|
||||
}) {
|
||||
beforeCreate(_ref) {
|
||||
let {
|
||||
settings,
|
||||
$element
|
||||
} = _ref;
|
||||
Drupal.offCanvas.removeOffCanvasEvents($element);
|
||||
$('body').addClass('js-off-canvas-dialog-open');
|
||||
settings.position = {
|
||||
|
|
@ -40,18 +41,20 @@
|
|||
settings.width = width;
|
||||
},
|
||||
|
||||
beforeClose({
|
||||
$element
|
||||
}) {
|
||||
beforeClose(_ref2) {
|
||||
let {
|
||||
$element
|
||||
} = _ref2;
|
||||
$('body').removeClass('js-off-canvas-dialog-open');
|
||||
Drupal.offCanvas.removeOffCanvasEvents($element);
|
||||
Drupal.offCanvas.resetPadding();
|
||||
},
|
||||
|
||||
afterCreate({
|
||||
$element,
|
||||
settings
|
||||
}) {
|
||||
afterCreate(_ref3) {
|
||||
let {
|
||||
$element,
|
||||
settings
|
||||
} = _ref3;
|
||||
const eventData = {
|
||||
settings,
|
||||
$element,
|
||||
|
|
@ -62,9 +65,10 @@
|
|||
$(window).on('resize.off-canvas', eventData, debounce(Drupal.offCanvas.resetSize, 100)).trigger('resize.off-canvas');
|
||||
},
|
||||
|
||||
render({
|
||||
settings
|
||||
}) {
|
||||
render(_ref4) {
|
||||
let {
|
||||
settings
|
||||
} = _ref4;
|
||||
$('.ui-dialog-off-canvas, .ui-dialog-off-canvas .ui-dialog-titlebar').toggleClass('ui-dialog-empty-title', !settings.title);
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -172,38 +172,50 @@ window.Drupal = {
|
|||
return window.encodeURIComponent(item).replace(/%2F/g, '/');
|
||||
};
|
||||
|
||||
Drupal.deprecationError = ({
|
||||
message
|
||||
}) => {
|
||||
Drupal.deprecationError = _ref => {
|
||||
let {
|
||||
message
|
||||
} = _ref;
|
||||
|
||||
if (drupalSettings.suppressDeprecationErrors === false && typeof console !== 'undefined' && console.warn) {
|
||||
console.warn(`[Deprecation] ${message}`);
|
||||
}
|
||||
};
|
||||
|
||||
Drupal.deprecatedProperty = ({
|
||||
target,
|
||||
deprecatedProperty,
|
||||
message
|
||||
}) => {
|
||||
Drupal.deprecatedProperty = _ref2 => {
|
||||
let {
|
||||
target,
|
||||
deprecatedProperty,
|
||||
message
|
||||
} = _ref2;
|
||||
|
||||
if (!Proxy || !Reflect) {
|
||||
return target;
|
||||
}
|
||||
|
||||
return new Proxy(target, {
|
||||
get: (target, key, ...rest) => {
|
||||
get: function (target, key) {
|
||||
if (key === deprecatedProperty) {
|
||||
Drupal.deprecationError({
|
||||
message
|
||||
});
|
||||
}
|
||||
|
||||
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
||||
rest[_key - 2] = arguments[_key];
|
||||
}
|
||||
|
||||
return Reflect.get(target, key, ...rest);
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
Drupal.theme = function (func, ...args) {
|
||||
Drupal.theme = function (func) {
|
||||
if (func in Drupal.theme) {
|
||||
for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
||||
args[_key2 - 1] = arguments[_key2];
|
||||
}
|
||||
|
||||
return Drupal.theme[func](...args);
|
||||
}
|
||||
};
|
||||
|
|
|
|||
|
|
@ -31,7 +31,9 @@
|
|||
return value;
|
||||
};
|
||||
|
||||
$.cookie = (key, value = undefined, options = undefined) => {
|
||||
$.cookie = function (key) {
|
||||
let value = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined;
|
||||
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : undefined;
|
||||
Drupal.deprecationError({
|
||||
message: `jQuery.cookie() ${deprecatedMessageSuffix}`
|
||||
});
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(($, Drupal, {
|
||||
isTabbable
|
||||
}) => {
|
||||
(($, Drupal, _ref) => {
|
||||
let {
|
||||
isTabbable
|
||||
} = _ref;
|
||||
$.extend($.expr[':'], {
|
||||
tabbable(element) {
|
||||
Drupal.deprecationError({
|
||||
|
|
|
|||
|
|
@ -7,7 +7,9 @@
|
|||
|
||||
(Drupal => {
|
||||
Drupal.Message = class {
|
||||
constructor(messageWrapper = null) {
|
||||
constructor() {
|
||||
let messageWrapper = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
||||
|
||||
if (!messageWrapper) {
|
||||
this.messageWrapper = Drupal.Message.defaultWrapper();
|
||||
} else {
|
||||
|
|
@ -36,7 +38,9 @@
|
|||
};
|
||||
}
|
||||
|
||||
add(message, options = {}) {
|
||||
add(message) {
|
||||
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
|
||||
if (!options.hasOwnProperty('type')) {
|
||||
options.type = 'status';
|
||||
}
|
||||
|
|
@ -94,12 +98,14 @@
|
|||
|
||||
};
|
||||
|
||||
Drupal.theme.message = ({
|
||||
text
|
||||
}, {
|
||||
type,
|
||||
id
|
||||
}) => {
|
||||
Drupal.theme.message = (_ref, _ref2) => {
|
||||
let {
|
||||
text
|
||||
} = _ref;
|
||||
let {
|
||||
type,
|
||||
id
|
||||
} = _ref2;
|
||||
const messagesTypes = Drupal.Message.getMessageTypeLabels();
|
||||
const messageWrapper = document.createElement('div');
|
||||
messageWrapper.setAttribute('class', `messages messages--${type}`);
|
||||
|
|
|
|||
|
|
@ -200,12 +200,20 @@
|
|||
|
||||
},
|
||||
flipfit: {
|
||||
left(...args) {
|
||||
left() {
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
collisions.flip.left.apply(this, args);
|
||||
collisions.fit.left.apply(this, args);
|
||||
},
|
||||
|
||||
top(...args) {
|
||||
top() {
|
||||
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) {
|
||||
args[_key2] = arguments[_key2];
|
||||
}
|
||||
|
||||
collisions.flip.top.apply(this, args);
|
||||
collisions.fit.top.apply(this, args);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,10 +5,12 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(function ($, Drupal, {
|
||||
tabbable,
|
||||
isTabbable
|
||||
}) {
|
||||
(function ($, Drupal, _ref) {
|
||||
let {
|
||||
tabbable,
|
||||
isTabbable
|
||||
} = _ref;
|
||||
|
||||
function TabbingManager() {
|
||||
this.stack = [];
|
||||
}
|
||||
|
|
@ -25,9 +27,10 @@
|
|||
}
|
||||
|
||||
$.extend(TabbingManager.prototype, {
|
||||
constrain(elements, {
|
||||
trapFocus = false
|
||||
} = {}) {
|
||||
constrain(elements) {
|
||||
let {
|
||||
trapFocus = false
|
||||
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
||||
const il = this.stack.length;
|
||||
|
||||
for (let i = 0; i < il; i++) {
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
((Drupal, drupalSettings, $, JSON, once, Sortable, {
|
||||
tabbable
|
||||
}) => {
|
||||
((Drupal, drupalSettings, $, JSON, once, Sortable, _ref) => {
|
||||
let {
|
||||
tabbable
|
||||
} = _ref;
|
||||
const toolbarHelp = [{
|
||||
message: Drupal.t("The toolbar buttons that don't fit the user's browser window width will be grouped in a dropdown. If multiple toolbar rows are preferred, those can be configured by adding an explicit wrapping breakpoint wherever you want to start a new row.", null, {
|
||||
context: 'CKEditor 5 toolbar help text, default, no explicit wrapping breakpoint'
|
||||
|
|
@ -268,11 +269,14 @@
|
|||
attach(context) {
|
||||
once('ckeditor5-admin-toolbar', '#ckeditor5-toolbar-app').forEach(container => {
|
||||
const selectedTextarea = context.querySelector('#ckeditor5-toolbar-buttons-selected');
|
||||
const available = Object.entries(JSON.parse(context.querySelector('#ckeditor5-toolbar-buttons-available').innerHTML)).map(([name, attrs]) => ({
|
||||
name,
|
||||
id: name,
|
||||
...attrs
|
||||
}));
|
||||
const available = Object.entries(JSON.parse(context.querySelector('#ckeditor5-toolbar-buttons-available').innerHTML)).map(_ref2 => {
|
||||
let [name, attrs] = _ref2;
|
||||
return {
|
||||
name,
|
||||
id: name,
|
||||
...attrs
|
||||
};
|
||||
});
|
||||
const dividers = [{
|
||||
id: 'divider',
|
||||
name: '|',
|
||||
|
|
@ -460,9 +464,10 @@
|
|||
|
||||
};
|
||||
|
||||
Drupal.theme.ckeditor5SelectedButtons = ({
|
||||
buttons
|
||||
}) => {
|
||||
Drupal.theme.ckeditor5SelectedButtons = _ref3 => {
|
||||
let {
|
||||
buttons
|
||||
} = _ref3;
|
||||
return `
|
||||
<ul class="ckeditor5-toolbar-tray ckeditor5-toolbar-active__buttons" data-button-list="ckeditor5-toolbar-active-buttons" role="listbox" aria-orientation="horizontal" aria-labelledby="ckeditor5-toolbar-active-buttons-label">
|
||||
${buttons.map(button => Drupal.theme.ckeditor5Button({
|
||||
|
|
@ -473,9 +478,10 @@
|
|||
`;
|
||||
};
|
||||
|
||||
Drupal.theme.ckeditor5DividerButtons = ({
|
||||
buttons
|
||||
}) => {
|
||||
Drupal.theme.ckeditor5DividerButtons = _ref4 => {
|
||||
let {
|
||||
buttons
|
||||
} = _ref4;
|
||||
return `
|
||||
<ul class="ckeditor5-toolbar-tray ckeditor5-toolbar-divider__buttons" data-button-list="ckeditor5-toolbar-divider-buttons" role="listbox" aria-orientation="horizontal" aria-labelledby="ckeditor5-toolbar-divider-buttons-label">
|
||||
${buttons.map(button => Drupal.theme.ckeditor5Button({
|
||||
|
|
@ -486,9 +492,10 @@
|
|||
`;
|
||||
};
|
||||
|
||||
Drupal.theme.ckeditor5AvailableButtons = ({
|
||||
buttons
|
||||
}) => {
|
||||
Drupal.theme.ckeditor5AvailableButtons = _ref5 => {
|
||||
let {
|
||||
buttons
|
||||
} = _ref5;
|
||||
return `
|
||||
<ul class="ckeditor5-toolbar-tray ckeditor5-toolbar-available__buttons" data-button-list="ckeditor5-toolbar-available-buttons" role="listbox" aria-orientation="horizontal" aria-labelledby="ckeditor5-toolbar-available-buttons-label">
|
||||
${buttons.map(button => Drupal.theme.ckeditor5Button({
|
||||
|
|
@ -499,13 +506,14 @@
|
|||
`;
|
||||
};
|
||||
|
||||
Drupal.theme.ckeditor5Button = ({
|
||||
button: {
|
||||
label,
|
||||
id
|
||||
},
|
||||
listType
|
||||
}) => {
|
||||
Drupal.theme.ckeditor5Button = _ref6 => {
|
||||
let {
|
||||
button: {
|
||||
label,
|
||||
id
|
||||
},
|
||||
listType
|
||||
} = _ref6;
|
||||
const visuallyHiddenLabel = Drupal.t(`@listType button @label`, {
|
||||
'@listType': listType !== 'divider' ? listType : 'available',
|
||||
'@label': label
|
||||
|
|
@ -520,12 +528,13 @@
|
|||
`;
|
||||
};
|
||||
|
||||
Drupal.theme.ckeditor5Admin = ({
|
||||
availableButtons,
|
||||
dividerButtons,
|
||||
activeToolbar,
|
||||
helpMessage
|
||||
}) => {
|
||||
Drupal.theme.ckeditor5Admin = _ref7 => {
|
||||
let {
|
||||
availableButtons,
|
||||
dividerButtons,
|
||||
activeToolbar,
|
||||
helpMessage
|
||||
} = _ref7;
|
||||
return `
|
||||
<div aria-live="polite" data-drupal-selector="ckeditor5-admin-help-message">
|
||||
<p>${helpMessage.join('</p><p>')}</p>
|
||||
|
|
|
|||
|
|
@ -71,13 +71,17 @@
|
|||
};
|
||||
const originalAjaxEventResponse = Drupal.Ajax.prototype.eventResponse;
|
||||
|
||||
Drupal.Ajax.prototype.eventResponse = function ckeditor5AjaxEventResponse(...args) {
|
||||
Drupal.Ajax.prototype.eventResponse = function ckeditor5AjaxEventResponse() {
|
||||
if (this.ckeditor5_only) {
|
||||
if (this.$form[0].querySelector('#edit-editor-editor').value !== 'ckeditor5') {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
||||
args[_key] = arguments[_key];
|
||||
}
|
||||
|
||||
originalAjaxEventResponse.apply(this, args);
|
||||
};
|
||||
})(Drupal, once);
|
||||
|
|
@ -58,7 +58,9 @@
|
|||
});
|
||||
}
|
||||
|
||||
return Object.entries(config).reduce((processed, [key, value]) => {
|
||||
return Object.entries(config).reduce((processed, _ref) => {
|
||||
let [key, value] = _ref;
|
||||
|
||||
if (typeof value === 'object') {
|
||||
if (!value) {
|
||||
return processed;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
/* eslint-disable import/no-extraneous-dependencies */
|
||||
/* cspell:words drupalmediametadatarepository */
|
||||
|
||||
import { Plugin } from 'ckeditor5/src/core';
|
||||
|
||||
|
|
|
|||
|
|
@ -13,20 +13,23 @@
|
|||
const $input = $(event.currentTarget).closest('.js-click-to-select').find('.js-click-to-select-checkbox input');
|
||||
$input.prop('checked', !$input.prop('checked')).trigger('change');
|
||||
});
|
||||
$(once('media-library-click-to-select', '.js-click-to-select-checkbox input', context)).on('change', ({
|
||||
currentTarget
|
||||
}) => {
|
||||
$(once('media-library-click-to-select', '.js-click-to-select-checkbox input', context)).on('change', _ref => {
|
||||
let {
|
||||
currentTarget
|
||||
} = _ref;
|
||||
$(currentTarget).closest('.js-click-to-select').toggleClass('checked', $(currentTarget).prop('checked'));
|
||||
}).on('focus blur', ({
|
||||
currentTarget,
|
||||
type
|
||||
}) => {
|
||||
}).on('focus blur', _ref2 => {
|
||||
let {
|
||||
currentTarget,
|
||||
type
|
||||
} = _ref2;
|
||||
$(currentTarget).closest('.js-click-to-select').toggleClass('is-focus', type === 'focus');
|
||||
});
|
||||
$(once('media-library-click-to-select-hover', '.js-click-to-select-trigger, .js-click-to-select-checkbox', context)).on('mouseover mouseout', ({
|
||||
currentTarget,
|
||||
type
|
||||
}) => {
|
||||
$(once('media-library-click-to-select-hover', '.js-click-to-select-trigger, .js-click-to-select-checkbox', context)).on('mouseover mouseout', _ref3 => {
|
||||
let {
|
||||
currentTarget,
|
||||
type
|
||||
} = _ref3;
|
||||
$(currentTarget).closest('.js-click-to-select').toggleClass('is-hover', type === 'mouseover');
|
||||
});
|
||||
}
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(($, Drupal, window, {
|
||||
tabbable
|
||||
}) => {
|
||||
(($, Drupal, window, _ref) => {
|
||||
let {
|
||||
tabbable
|
||||
} = _ref;
|
||||
Drupal.MediaLibrary = {
|
||||
currentSelection: []
|
||||
};
|
||||
|
|
|
|||
|
|
@ -11,9 +11,10 @@
|
|||
const $view = $(once('media-library-select-all', '.js-media-library-view[data-view-display-id="page"]', context));
|
||||
|
||||
if ($view.length && $view.find('.js-media-library-item').length) {
|
||||
const $checkbox = $(Drupal.theme('checkbox')).on('click', ({
|
||||
currentTarget
|
||||
}) => {
|
||||
const $checkbox = $(Drupal.theme('checkbox')).on('click', _ref => {
|
||||
let {
|
||||
currentTarget
|
||||
} = _ref;
|
||||
const $checkboxes = $(currentTarget).closest('.js-media-library-view').find('.js-media-library-item input[type="checkbox"]');
|
||||
$checkboxes.prop('checked', $(currentTarget).prop('checked')).trigger('change');
|
||||
const announcement = $(currentTarget).prop('checked') ? Drupal.t('All @count items selected', {
|
||||
|
|
|
|||
|
|
@ -160,9 +160,10 @@
|
|||
check++;
|
||||
} while (!of);
|
||||
|
||||
function refinePopper({
|
||||
state
|
||||
}) {
|
||||
function refinePopper(_ref) {
|
||||
let {
|
||||
state
|
||||
} = _ref;
|
||||
const isBelow = state.placement.split('-')[0] === 'bottom';
|
||||
const classListMethod = isBelow ? 'add' : 'remove';
|
||||
state.elements.popper.classList[classListMethod]('quickedit-toolbar-pointer-top');
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(({
|
||||
behaviors
|
||||
}, $) => {
|
||||
((_ref, $) => {
|
||||
let {
|
||||
behaviors
|
||||
} = _ref;
|
||||
behaviors.jqueryCookie = {
|
||||
attach: () => {
|
||||
if (once('js_cookie_test-init', 'body').length) {
|
||||
|
|
|
|||
|
|
@ -5,11 +5,13 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(function ({
|
||||
deprecationError,
|
||||
deprecatedProperty,
|
||||
behaviors
|
||||
}) {
|
||||
(function (_ref) {
|
||||
let {
|
||||
deprecationError,
|
||||
deprecatedProperty,
|
||||
behaviors
|
||||
} = _ref;
|
||||
|
||||
const deprecatedFunction = () => {
|
||||
deprecationError({
|
||||
message: 'This function is deprecated for testing purposes.'
|
||||
|
|
|
|||
|
|
@ -5,10 +5,11 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(function ({
|
||||
throwError,
|
||||
behaviors
|
||||
}) {
|
||||
(function (_ref) {
|
||||
let {
|
||||
throwError,
|
||||
behaviors
|
||||
} = _ref;
|
||||
behaviors.testErrors = {
|
||||
attach: () => {
|
||||
throwError(new Error('A manually thrown error.'));
|
||||
|
|
|
|||
|
|
@ -5,9 +5,10 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(({
|
||||
behaviors
|
||||
}) => {
|
||||
(_ref => {
|
||||
let {
|
||||
behaviors
|
||||
} = _ref;
|
||||
behaviors.js_interaction_test_trigger_link = {
|
||||
attach() {
|
||||
const removeBlockerTrigger = once('remove-blocker-trigger', '.remove-blocker-trigger').shift();
|
||||
|
|
|
|||
|
|
@ -5,11 +5,13 @@
|
|||
* @preserve
|
||||
**/
|
||||
|
||||
(($, {
|
||||
behaviors
|
||||
}, {
|
||||
testMessages
|
||||
}) => {
|
||||
(($, _ref, _ref2) => {
|
||||
let {
|
||||
behaviors
|
||||
} = _ref;
|
||||
let {
|
||||
testMessages
|
||||
} = _ref2;
|
||||
const indexes = {};
|
||||
testMessages.types.forEach(type => {
|
||||
indexes[type] = [];
|
||||
|
|
|
|||
|
|
@ -71,9 +71,10 @@
|
|||
enabled: true,
|
||||
phase: 'write',
|
||||
|
||||
fn({
|
||||
state
|
||||
}) {
|
||||
fn(_ref) {
|
||||
let {
|
||||
state
|
||||
} = _ref;
|
||||
const {
|
||||
arrow
|
||||
} = state.elements;
|
||||
|
|
|
|||
|
|
@ -6,9 +6,10 @@
|
|||
**/
|
||||
|
||||
(Drupal => {
|
||||
Drupal.theme.passwordStrength = ({
|
||||
strengthTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordStrength = _ref => {
|
||||
let {
|
||||
strengthTitle
|
||||
} = _ref;
|
||||
const strengthIndicator = '<span>Overridden passwordStrength:</span><div class="password-strength__indicator js-password-strength__indicator the-prior-class-is-deprecated" data-drupal-selector="a-distinct-absence-of-password-strength-indicator"></div>';
|
||||
const strengthText = '<span class="password-strength__text js-password-strength__text the-prior-class-is-deprecated" data-drupal-selector="a-distinct-absence-of-password-strength-text"></span>';
|
||||
return `
|
||||
|
|
@ -19,13 +20,17 @@
|
|||
`;
|
||||
};
|
||||
|
||||
Drupal.theme.passwordSuggestions = ({
|
||||
hasWeaknesses
|
||||
}, tips) => `<div class="password-suggestions">Overridden passwordSuggestions: ${tips.length ? `${hasWeaknesses}<ul><li>${tips.join('</li><li>')}</li></ul>` : ''}</div>`;
|
||||
Drupal.theme.passwordSuggestions = (_ref2, tips) => {
|
||||
let {
|
||||
hasWeaknesses
|
||||
} = _ref2;
|
||||
return `<div class="password-suggestions">Overridden passwordSuggestions: ${tips.length ? `${hasWeaknesses}<ul><li>${tips.join('</li><li>')}</li></ul>` : ''}</div>`;
|
||||
};
|
||||
|
||||
Drupal.theme.passwordConfirmMessage = ({
|
||||
confirmTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordConfirmMessage = _ref3 => {
|
||||
let {
|
||||
confirmTitle
|
||||
} = _ref3;
|
||||
const confirmTextWrapper = '<span>Overridden passwordConfirmMessage:</span><span data-drupal-selector="a-distinct-absence-of-password-match-status-text"></span>';
|
||||
return `<div aria-live="polite" aria-atomic="true" class="password-confirm-message" data-drupal-selector="password-confirm-message">${confirmTitle} ${confirmTextWrapper}</div>`;
|
||||
};
|
||||
|
|
|
|||
|
|
@ -6,16 +6,18 @@
|
|||
**/
|
||||
|
||||
(Drupal => {
|
||||
Drupal.theme.passwordConfirmMessage = ({
|
||||
confirmTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordConfirmMessage = _ref => {
|
||||
let {
|
||||
confirmTitle
|
||||
} = _ref;
|
||||
const confirmTextWrapper = '<span data-drupal-selector="password-match-status-text"></span>';
|
||||
return `<div aria-live="polite" aria-atomic="true" class="password-confirm-message" data-drupal-selector="password-confirm-message">${confirmTitle} ${confirmTextWrapper}</div>`;
|
||||
};
|
||||
|
||||
Drupal.theme.passwordStrength = ({
|
||||
strengthTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordStrength = _ref2 => {
|
||||
let {
|
||||
strengthTitle
|
||||
} = _ref2;
|
||||
const strengthIndicator = '<div class="password-strength__indicator" data-drupal-selector="password-strength-indicator"></div>';
|
||||
const strengthText = '<span class="password-strength__text" data-drupal-selector="password-strength-text"></span>';
|
||||
return `
|
||||
|
|
@ -26,7 +28,10 @@
|
|||
`;
|
||||
};
|
||||
|
||||
Drupal.theme.passwordSuggestions = ({
|
||||
hasWeaknesses
|
||||
}, tips) => `<div class="password-suggestions">${tips.length ? `${hasWeaknesses}<ul><li>${tips.join('</li><li>')}</li></ul>` : ''}</div>`;
|
||||
Drupal.theme.passwordSuggestions = (_ref3, tips) => {
|
||||
let {
|
||||
hasWeaknesses
|
||||
} = _ref3;
|
||||
return `<div class="password-suggestions">${tips.length ? `${hasWeaknesses}<ul><li>${tips.join('</li><li>')}</li></ul>` : ''}</div>`;
|
||||
};
|
||||
})(Drupal);
|
||||
|
|
@ -59,6 +59,7 @@
|
|||
"@ckeditor/ckeditor5-table": "~31.1.0",
|
||||
"@drupal/once": "^1.0.1",
|
||||
"@popperjs/core": "^2.9.2",
|
||||
"acorn": "^8.7.0",
|
||||
"babel-plugin-add-header-comment": "^1.0.3",
|
||||
"backbone": "^1.4.0",
|
||||
"chalk": "^4.1.0",
|
||||
|
|
|
|||
|
|
@ -6,12 +6,14 @@
|
|||
**/
|
||||
|
||||
(Drupal => {
|
||||
Drupal.theme.message = ({
|
||||
text
|
||||
}, {
|
||||
type,
|
||||
id
|
||||
}) => {
|
||||
Drupal.theme.message = (_ref, _ref2) => {
|
||||
let {
|
||||
text
|
||||
} = _ref;
|
||||
let {
|
||||
type,
|
||||
id
|
||||
} = _ref2;
|
||||
const messagesTypes = Drupal.Message.getMessageTypeLabels();
|
||||
const messageWrapper = document.createElement('div');
|
||||
messageWrapper.setAttribute('class', `messages messages--${type}`);
|
||||
|
|
|
|||
|
|
@ -15,16 +15,18 @@
|
|||
confirmFilled: 'is-confirm-filled'
|
||||
});
|
||||
|
||||
Drupal.theme.passwordConfirmMessage = ({
|
||||
confirmTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordConfirmMessage = _ref => {
|
||||
let {
|
||||
confirmTitle
|
||||
} = _ref;
|
||||
const confirmTextWrapper = '<span class="password-match-message__text" data-drupal-selector="password-match-status-text"></span>';
|
||||
return `<div aria-live="polite" aria-atomic="true" class="password-match-message" data-drupal-selector="password-confirm-message">${confirmTitle} ${confirmTextWrapper}</div>`;
|
||||
};
|
||||
|
||||
Drupal.theme.passwordStrength = ({
|
||||
strengthTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordStrength = _ref2 => {
|
||||
let {
|
||||
strengthTitle
|
||||
} = _ref2;
|
||||
const strengthBar = '<div class="password-strength__bar" data-drupal-selector="password-strength-indicator"></div>';
|
||||
const strengthText = '<span class="password-strength__text" data-drupal-selector="password-strength-text"></span>';
|
||||
return `
|
||||
|
|
@ -35,7 +37,10 @@
|
|||
`;
|
||||
};
|
||||
|
||||
Drupal.theme.passwordSuggestions = ({
|
||||
hasWeaknesses
|
||||
}, tips) => `<div class="password-suggestions">${tips.length ? `${hasWeaknesses}<ul class="password-suggestions__tips"><li class="password-suggestions__tip">${tips.join('</li><li class="password-suggestions__tip">')}</li></ul>` : ''}</div>`;
|
||||
Drupal.theme.passwordSuggestions = (_ref3, tips) => {
|
||||
let {
|
||||
hasWeaknesses
|
||||
} = _ref3;
|
||||
return `<div class="password-suggestions">${tips.length ? `${hasWeaknesses}<ul class="password-suggestions__tips"><li class="password-suggestions__tip">${tips.join('</li><li class="password-suggestions__tip">')}</li></ul>` : ''}</div>`;
|
||||
};
|
||||
})(Drupal);
|
||||
|
|
@ -102,7 +102,8 @@
|
|||
};
|
||||
|
||||
Drupal.verticalTab.prototype = {
|
||||
focus(triggerFocus = true) {
|
||||
focus() {
|
||||
let triggerFocus = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : true;
|
||||
this.details.siblings('.js-vertical-tabs-pane').each(function closeOtherTabs() {
|
||||
const tab = $(this).data('verticalTab');
|
||||
|
||||
|
|
|
|||
|
|
@ -24,12 +24,14 @@
|
|||
});
|
||||
};
|
||||
|
||||
Drupal.theme.message = ({
|
||||
text
|
||||
}, {
|
||||
type,
|
||||
id
|
||||
}) => {
|
||||
Drupal.theme.message = (_ref, _ref2) => {
|
||||
let {
|
||||
text
|
||||
} = _ref;
|
||||
let {
|
||||
type,
|
||||
id
|
||||
} = _ref2;
|
||||
const messagesTypes = Drupal.Message.getMessageTypeLabels();
|
||||
const messageWrapper = document.createElement('div');
|
||||
messageWrapper.setAttribute('class', `messages-list__item messages messages--${type}`);
|
||||
|
|
|
|||
|
|
@ -8,9 +8,10 @@
|
|||
(Drupal => {
|
||||
Drupal.theme.passwordConfirmMessage = translate => `<div aria-live="polite" aria-atomic="true" class="password-confirm js-password-confirm js-password-confirm-message" data-drupal-selector="password-confirm-message">${translate.confirmTitle} <span data-drupal-selector="password-match-status-text"></span></div>`;
|
||||
|
||||
Drupal.theme.passwordStrength = ({
|
||||
strengthTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordStrength = _ref => {
|
||||
let {
|
||||
strengthTitle
|
||||
} = _ref;
|
||||
const strengthIndicator = '<div class="password-strength__indicator js-password-strength__indicator" data-drupal-selector="password-strength-indicator"></div>';
|
||||
const strengthText = '<span class="password-strength__text js-password-strength__text" data-drupal-selector="password-strength-text"></span>';
|
||||
return `
|
||||
|
|
|
|||
|
|
@ -6,16 +6,18 @@
|
|||
**/
|
||||
|
||||
(Drupal => {
|
||||
Drupal.theme.passwordConfirmMessage = ({
|
||||
confirmTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordConfirmMessage = _ref => {
|
||||
let {
|
||||
confirmTitle
|
||||
} = _ref;
|
||||
const confirmTextWrapper = '<span data-drupal-selector="password-match-status-text"></span>';
|
||||
return `<div aria-live="polite" aria-atomic="true" class="password-confirm-message js-password-confirm-message" data-drupal-selector="password-confirm-message">${confirmTitle} ${confirmTextWrapper}</div>`;
|
||||
};
|
||||
|
||||
Drupal.theme.passwordStrength = ({
|
||||
strengthTitle
|
||||
}) => {
|
||||
Drupal.theme.passwordStrength = _ref2 => {
|
||||
let {
|
||||
strengthTitle
|
||||
} = _ref2;
|
||||
const strengthIndicator = '<div class="password-strength__indicator js-password-strength__indicator" data-drupal-selector="password-strength-indicator"></div>';
|
||||
const strengthText = '<span class="password-strength__text js-password-strength__text" data-drupal-selector="password-strength-text"></span>';
|
||||
return `
|
||||
|
|
|
|||
2643
core/yarn.lock
2643
core/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue