Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Monster
Manage
Activity
Members
Plan
Jira
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
OSS
Libraries
Javascript
Monster
Commits
5e06a61c
Verified
Commit
5e06a61c
authored
2 years ago
by
Volker Schukai
Browse files
Options
Downloads
Patches
Plain Diff
refactor: initCustomControlOptionCallback -> initCustomControlCallback
parent
f6756648
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
application/source/dom/constants.mjs
+2
-2
2 additions, 2 deletions
application/source/dom/constants.mjs
application/source/dom/customelement.mjs
+3
-3
3 additions, 3 deletions
application/source/dom/customelement.mjs
development/pnpm-lock.yaml
+44
-44
44 additions, 44 deletions
development/pnpm-lock.yaml
with
49 additions
and
49 deletions
application/source/dom/constants.mjs
+
2
−
2
View file @
5e06a61c
...
...
@@ -59,7 +59,7 @@ export {
ATTRIBUTE_HIDDEN
,
objectUpdaterLinkSymbol
,
customElementUpdaterLinkSymbol
,
option
CallbackName
,
initControl
CallbackName
,
ATTRIBUTE_SCRIPT_HOST
,
ATTRIBUTE_OPTION_CALLBACK
};
...
...
@@ -127,7 +127,7 @@ const ATTRIBUTE_OPTION_CALLBACK = `${ATTRIBUTE_PREFIX}option-callback`;
* @since 3.48.0
* @type {string}
*/
const
option
CallbackName
=
`initCustomControl
Options
Callback`
;
const
initControl
CallbackName
=
`initCustomControlCallback`
;
/**
* @memberOf Monster.DOM
...
...
This diff is collapsed.
Click to expand it.
application/source/dom/customelement.mjs
+
3
−
3
View file @
5e06a61c
...
...
@@ -27,7 +27,7 @@ import {
ATTRIBUTE_OPTIONS_SELECTOR
,
ATTRIBUTE_SCRIPT_HOST
,
customElementUpdaterLinkSymbol
,
option
CallbackName
initControl
CallbackName
}
from
"
./constants.mjs
"
;
import
{
findDocumentTemplate
,
Template
}
from
"
./template.mjs
"
;
import
{
addObjectWithUpdaterToElement
}
from
"
./updater.mjs
"
;
...
...
@@ -728,7 +728,7 @@ function callControlCallback(callBackFunctionName, ...args) {
* This Function is called when the element is attached to the DOM.
*
* It looks for the attribute `data-monster-option-callback`. Is this attribute is not set, the default callback
* `initCustomControl
Options
Callback` is called.
* `initCustomControlCallback` is called.
*
* The callback is searched in this element and in the host element. If the callback is found, it is called with the
* element as parameter.
...
...
@@ -740,7 +740,7 @@ function callControlCallback(callBackFunctionName, ...args) {
function
initFromCallbackHost
()
{
const
self
=
this
;
let
callBackFunctionName
=
option
CallbackName
// default callback
let
callBackFunctionName
=
initControl
CallbackName
// default callback
if
(
self
.
hasAttribute
(
ATTRIBUTE_OPTION_CALLBACK
))
{
callBackFunctionName
=
self
.
getAttribute
(
ATTRIBUTE_OPTION_CALLBACK
);
}
...
...
This diff is collapsed.
Click to expand it.
development/pnpm-lock.yaml
+
44
−
44
View file @
5e06a61c
...
...
@@ -126,7 +126,7 @@ devDependencies:
version
:
0.12.5
vite
:
specifier
:
^4.3.5
version
:
4.3.5(@types/node@18.16.
4
)
version
:
4.3.5(@types/node@18.16.
5
)
vite-plugin-banner
:
specifier
:
^0.7.0
version
:
0.7.0
...
...
@@ -651,24 +651,24 @@ packages:
lodash
:
4.17.21
dev
:
true
/@microsoft/api-extractor-model@7.26.8(@types/node@18.16.
4
)
:
/@microsoft/api-extractor-model@7.26.8(@types/node@18.16.
5
)
:
resolution
:
{
integrity
:
sha512-ESj3bBJkiMg/8tS0PW4+2rUgTVwOEfy41idTnFgdbVX+O50bN6S99MV6FIPlCZWCnRDcBfwxRXLdAkOQQ0JqGw==
}
dependencies
:
'
@microsoft/tsdoc'
:
0.14.2
'@microsoft/tsdoc-config'
:
0.16.2
'@rushstack/node-core-library'
:
3.58.0(@types/node@18.16.
4
)
'@rushstack/node-core-library'
:
3.58.0(@types/node@18.16.
5
)
transitivePeerDependencies
:
-
'
@types/node'
dev
:
true
/@microsoft/api-extractor@7.34.8(@types/node@18.16.
4
)
:
/@microsoft/api-extractor@7.34.8(@types/node@18.16.
5
)
:
resolution
:
{
integrity
:
sha512-2Eh1PlZ8wULtH3kyAWcj62gFtjGKRXrEplsCO54vMLjiav3qet454VpSBXwKkXBenBylZRMk3SMBcpcuJ8RnKQ==
}
hasBin
:
true
dependencies
:
'
@microsoft/api-extractor-model'
:
7.26.8(@types/node@18.16.
4
)
'
@microsoft/api-extractor-model'
:
7.26.8(@types/node@18.16.
5
)
'@microsoft/tsdoc'
:
0.14.2
'@microsoft/tsdoc-config'
:
0.16.2
'@rushstack/node-core-library'
:
3.58.0(@types/node@18.16.
4
)
'@rushstack/node-core-library'
:
3.58.0(@types/node@18.16.
5
)
'@rushstack/rig-package'
:
0.3.18
'@rushstack/ts-command-line'
:
4.13.2
colors
:
1.2.5
...
...
@@ -719,7 +719,7 @@ packages:
resolution
:
{
integrity
:
sha512-/aFM2M4HVDBT/jjDBa84sJniv1t9Gm/rLkalaz9htOm+L+8JMj1k9w0CkUdcxNyNxZPlTxKPVko+m1VlM58ZVA==
}
engines
:
{
node
:
'
>=
14'
}
dependencies
:
'
@octokit/types'
:
9.2.
0
'
@octokit/types'
:
9.2.
1
dev
:
true
/@octokit/core@4.2.0
:
...
...
@@ -730,7 +730,7 @@ packages:
'@octokit/graphql'
:
5.0.5
'@octokit/request'
:
6.2.3
'@octokit/request-error'
:
3.0.3
'@octokit/types'
:
9.2.
0
'@octokit/types'
:
9.2.
1
before-after-hook
:
2.2.3
universal-user-agent
:
6.0.0
transitivePeerDependencies
:
...
...
@@ -741,7 +741,7 @@ packages:
resolution
:
{
integrity
:
sha512-LG4o4HMY1Xoaec87IqQ41TQ+glvIeTKqfjkCEmt5AIwDZJwQeVZFIEYXrYY6yLwK+pAScb9Gj4q+Nz2qSw1roA==
}
engines
:
{
node
:
'
>=
14'
}
dependencies
:
'
@octokit/types'
:
9.2.
0
'
@octokit/types'
:
9.2.
1
is-plain-object
:
5.0.0
universal-user-agent
:
6.0.0
dev
:
true
...
...
@@ -751,14 +751,14 @@ packages:
engines
:
{
node
:
'
>=
14'
}
dependencies
:
'
@octokit/request'
:
6.2.3
'@octokit/types'
:
9.2.
0
'@octokit/types'
:
9.2.
1
universal-user-agent
:
6.0.0
transitivePeerDependencies
:
-
encoding
dev
:
true
/@octokit/openapi-types@17.1.
0
:
resolution
:
{
integrity
:
sha512-
rnI26BAITDZTo5vqFOmA7oX4xRd18rO+gcK4MiTpJmsRMxAw0JmevNjPsjpry1bb9SVNo56P/0kbiyXXa4QluA
==
}
/@octokit/openapi-types@17.1.
1
:
resolution
:
{
integrity
:
sha512-
/X7Gh/qWiWaooJmUnYD48SYy72fyrk2ceisOSe89JojK7r0j8YrTwYpDi76kI+c6QiqX1KSgdoBTMJvktsDkYw
==
}
dev
:
true
/@octokit/plugin-paginate-rest@6.0.0(@octokit/core@4.2.0)
:
...
...
@@ -768,7 +768,7 @@ packages:
'
@octokit/core'
:
'
>=4'
dependencies
:
'
@octokit/core'
:
4.2.0
'@octokit/types'
:
9.2.
0
'@octokit/types'
:
9.2.
1
dev
:
true
/@octokit/plugin-request-log@1.0.4(@octokit/core@4.2.0)
:
...
...
@@ -786,7 +786,7 @@ packages:
'
@octokit/core'
:
'
>=3'
dependencies
:
'
@octokit/core'
:
4.2.0
'@octokit/types'
:
9.2.
0
'@octokit/types'
:
9.2.
1
deprecation
:
2.3.1
dev
:
true
...
...
@@ -794,7 +794,7 @@ packages:
resolution
:
{
integrity
:
sha512-crqw3V5Iy2uOU5Np+8M/YexTlT8zxCfI+qu+LxUB7SZpje4Qmx3mub5DfEKSO8Ylyk0aogi6TYdf6kxzh2BguQ==
}
engines
:
{
node
:
'
>=
14'
}
dependencies
:
'
@octokit/types'
:
9.2.
0
'
@octokit/types'
:
9.2.
1
deprecation
:
2.3.1
once
:
1.4.0
dev
:
true
...
...
@@ -805,7 +805,7 @@ packages:
dependencies
:
'
@octokit/endpoint'
:
7.0.5
'@octokit/request-error'
:
3.0.3
'@octokit/types'
:
9.2.
0
'@octokit/types'
:
9.2.
1
is-plain-object
:
5.0.0
node-fetch
:
2.6.9
universal-user-agent
:
6.0.0
...
...
@@ -825,10 +825,10 @@ packages:
-
encoding
dev
:
true
/@octokit/types@9.2.
0
:
resolution
:
{
integrity
:
sha512-
xySzJG4noWrIBFyMu4lg4tu9vAgNg9S0aoLRONhAEz6ueyi1evBzb40HitIosaYS4XOexphG305IVcLrIX/30g
==
}
/@octokit/types@9.2.
1
:
resolution
:
{
integrity
:
sha512-
Vx4keMiD/CAiwVFasLcH0xBSVbKIHebIZke9i7ZbUWGNN4vJFWSYH6Nvga7UY9NIJCGa6x3QG849XTbi5wYmkA
==
}
dependencies
:
'
@octokit/openapi-types'
:
17.1.
0
'
@octokit/openapi-types'
:
17.1.
1
dev
:
true
/@oss/web-components-build-tools@1.2.8
:
...
...
@@ -930,7 +930,7 @@ packages:
dev
:
true
optional
:
true
/@rushstack/node-core-library@3.58.0(@types/node@18.16.
4
)
:
/@rushstack/node-core-library@3.58.0(@types/node@18.16.
5
)
:
resolution
:
{
integrity
:
sha512-DHAZ3LTOEq2/EGURznpTJDnB3SNE2CKMDXuviQ6afhru6RykE3QoqXkeyjbpLb5ib5cpIRCPE/wykNe0xmQj3w==
}
peerDependencies
:
'
@types/node'
:
'
*'
...
...
@@ -938,7 +938,7 @@ packages:
'
@types/node'
:
optional
:
true
dependencies
:
'
@types/node'
:
18.16.
4
'
@types/node'
:
18.16.
5
colors
:
1.2.5
fs-extra
:
7.0.1
import-lazy
:
4.0.0
...
...
@@ -1092,16 +1092,16 @@ packages:
resolution
:
{
integrity
:
sha512-eC4U9MlIcu2q0KQmXszyn5Akca/0jrQmwDRgpAMJai7qBWq4amIQhZyNau4VYGtCeALvW1/NtjzJJ567aZxfKA==
}
dev
:
true
/@types/node@18.16.
4
:
resolution
:
{
integrity
:
sha512-
LUhvPmAKAbgm+p/K11IWszLZVoZDlMF4NRmqbhEzDz/CnCuehPkZXwZbBCKGJsgjnuVejotBwM7B3Scrq4EqDw
==
}
/@types/node@18.16.
5
:
resolution
:
{
integrity
:
sha512-
seOA34WMo9KB+UA78qaJoCO20RJzZGVXQ5Sh6FWu0g/hfT44nKXnej3/tCQl7FL97idFpBhisLYCTB50S0EirA
==
}
dev
:
true
/@wesbos/code-icons@1.2.4
:
resolution
:
{
integrity
:
sha512-ZiU0xf7epnCRrLDQIPnFstzoNWDvcUTtKoDU3VhpjsaGRzVClSmsi39c4kHxIOdfxvg4zwdW+goH96xr/vMTQQ==
}
dependencies
:
'
@types/node'
:
18.16.
4
vite
:
4.3.5(@types/node@18.16.
4
)
vite-plugin-dts
:
1.7.3(@types/node@18.16.
4
)(vite@4.3.5)
'
@types/node'
:
18.16.
5
vite
:
4.3.5(@types/node@18.16.
5
)
vite-plugin-dts
:
1.7.3(@types/node@18.16.
5
)(vite@4.3.5)
vscode-icons-js
:
11.6.1
transitivePeerDependencies
:
-
less
...
...
@@ -1245,7 +1245,7 @@ packages:
postcss
:
^8.1.0
dependencies
:
browserslist
:
4.21.5
caniuse-lite
:
1.0.3000148
2
caniuse-lite
:
1.0.3000148
6
fraction.js
:
4.2.0
normalize-range
:
0.1.2
picocolors
:
1.0.0
...
...
@@ -1322,8 +1322,8 @@ packages:
engines
:
{
node
:
^6 || ^7 || ^8 || ^9 || ^10 || ^11 || ^12 || >=13.7
}
hasBin
:
true
dependencies
:
caniuse-lite
:
1.0.3000148
2
electron-to-chromium
:
1.4.38
4
caniuse-lite
:
1.0.3000148
6
electron-to-chromium
:
1.4.38
5
node-releases
:
2.0.10
update-browserslist-db
:
1.0.11(browserslist@4.21.5)
dev
:
true
...
...
@@ -1397,13 +1397,13 @@ packages:
resolution
:
{
integrity
:
sha512-bsTwuIg/BZZK/vreVTYYbSWoe2F+71P7K5QGEX+pT250DZbfU1MQ5prOKpPR+LL6uWKK3KMwMCAS74QB3Um1uw==
}
dependencies
:
browserslist
:
4.21.5
caniuse-lite
:
1.0.3000148
2
caniuse-lite
:
1.0.3000148
6
lodash.memoize
:
4.1.2
lodash.uniq
:
4.5.0
dev
:
true
/caniuse-lite@1.0.3000148
2
:
resolution
:
{
integrity
:
sha512-
F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ
==
}
/caniuse-lite@1.0.3000148
6
:
resolution
:
{
integrity
:
sha512-
uv7/gXuHi10Whlj0pp5q/tsK/32J2QSqVRKQhs2j8VsDCjgyruAh/eEXHF822VqO9yT6iZKw3nRwZRSPBE9OQg
==
}
dev
:
true
/catharsis@0.9.0
:
...
...
@@ -1885,8 +1885,8 @@ packages:
resolution
:
{
integrity
:
sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA==
}
dev
:
true
/electron-to-chromium@1.4.38
4
:
resolution
:
{
integrity
:
sha512-
I97q0MmRAAqj53+a8vZsDkEXBZki+ehYAOPzwtQzALip52aEp2+BJqHFtTlsfjoqVZYwPpHC8wM6MbsSZQ/Eqw
==
}
/electron-to-chromium@1.4.38
5
:
resolution
:
{
integrity
:
sha512-
L9zlje9bIw0h+CwPQumiuVlfMcV4boxRjFIWDcLfFqTZNbkwOExBzfmswytHawObQX4OUhtNv8gIiB21kOurIg
==
}
dev
:
true
/emoji-regex@7.0.3
:
...
...
@@ -4488,21 +4488,21 @@ packages:
resolution
:
{
integrity
:
sha512-g0cm0wbrR6b6wR8FWtfD1RSDPacdumKEOAnneXv+NpJ9ez+j6rklRv6lMOO+aPf+Y6Zb8OzgIk0FXBZ6h+DeZQ==
}
dev
:
true
/vite-plugin-dts@1.7.3(@types/node@18.16.
4
)(vite@4.3.5)
:
/vite-plugin-dts@1.7.3(@types/node@18.16.
5
)(vite@4.3.5)
:
resolution
:
{
integrity
:
sha512-u3t45p6fTbzUPMkwYe0ESwuUeiRMlwdPfD3dRyDKUwLe2WmEYcFyVp2o9/ke2EMrM51lQcmNWdV9eLcgjD1/ng==
}
engines
:
{
node
:
^14.18.0 || >=16.0.0
}
peerDependencies
:
vite
:
'
>=2.9.0'
dependencies
:
'
@microsoft/api-extractor'
:
7.34.8(@types/node@18.16.
4
)
'
@microsoft/api-extractor'
:
7.34.8(@types/node@18.16.
5
)
'@rollup/pluginutils'
:
5.0.2
'@rushstack/node-core-library'
:
3.58.0(@types/node@18.16.
4
)
'@rushstack/node-core-library'
:
3.58.0(@types/node@18.16.
5
)
debug
:
4.3.4(supports-color@8.1.1)
fast-glob
:
3.2.12
fs-extra
:
10.1.0
kolorist
:
1.8.0
ts-morph
:
17.0.1
vite
:
4.3.5(@types/node@18.16.
4
)
vite
:
4.3.5(@types/node@18.16.
5
)
transitivePeerDependencies
:
-
'
@types/node'
-
rollup
...
...
@@ -4513,8 +4513,8 @@ packages:
resolution
:
{
integrity
:
sha512-67Abh1X9rhJq7u9Hxq9CJznM0acAPynvumkQ33wzvigW1aaPfsHNNMnhArABYryXnqASlmiZHpbhYOtDI9KfYw==
}
dependencies
:
'
@wesbos/code-icons'
:
1.2.4
vite
:
4.3.5(@types/node@18.16.
4
)
vite-plugin-dts
:
1.7.3(@types/node@18.16.
4
)(vite@4.3.5)
vite
:
4.3.5(@types/node@18.16.
5
)
vite-plugin-dts
:
1.7.3(@types/node@18.16.
5
)(vite@4.3.5)
vscode-icons-js
:
11.6.1
transitivePeerDependencies
:
-
'
@types/node'
...
...
@@ -4533,7 +4533,7 @@ packages:
vite
:
'
*'
dependencies
:
html-minifier-terser
:
6.1.0
vite
:
4.3.5(@types/node@18.16.
4
)
vite
:
4.3.5(@types/node@18.16.
5
)
dev
:
true
/vite-plugin-mkcert@1.15.0(vite@4.3.5)
:
...
...
@@ -4546,13 +4546,13 @@ packages:
axios
:
1.4.0(debug@4.3.4)
debug
:
4.3.4(supports-color@8.1.1)
picocolors
:
1.0.0
vite
:
4.3.5(@types/node@18.16.
4
)
vite
:
4.3.5(@types/node@18.16.
5
)
transitivePeerDependencies
:
-
encoding
-
supports-color
dev
:
true
/vite@4.3.5(@types/node@18.16.
4
)
:
/vite@4.3.5(@types/node@18.16.
5
)
:
resolution
:
{
integrity
:
sha512-0gEnL9wiRFxgz40o/i/eTBwm+NEbpUeTWhzKrZDSdKm6nplj+z4lKz8ANDgildxHm47Vg8EUia0aicKbawUVVA==
}
engines
:
{
node
:
^14.18.0 || >=16.0.0
}
hasBin
:
true
...
...
@@ -4577,7 +4577,7 @@ packages:
terser
:
optional
:
true
dependencies
:
'
@types/node'
:
18.16.
4
'
@types/node'
:
18.16.
5
esbuild
:
0.17.18
postcss
:
8.4.23
rollup
:
3.21.5
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment