Skip to content
Snippets Groups Projects
Verified Commit 5e06a61c authored by Volker Schukai's avatar Volker Schukai :alien:
Browse files

refactor: initCustomControlOptionCallback -> initCustomControlCallback

parent f6756648
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ export {
ATTRIBUTE_HIDDEN,
objectUpdaterLinkSymbol,
customElementUpdaterLinkSymbol,
optionCallbackName,
initControlCallbackName,
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 optionCallbackName = `initCustomControlOptionsCallback`;
const initControlCallbackName = `initCustomControlCallback`;
/**
* @memberOf Monster.DOM
......
......@@ -27,7 +27,7 @@ import {
ATTRIBUTE_OPTIONS_SELECTOR,
ATTRIBUTE_SCRIPT_HOST,
customElementUpdaterLinkSymbol,
optionCallbackName
initControlCallbackName
} 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
* `initCustomControlOptionsCallback` 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 = optionCallbackName // default callback
let callBackFunctionName = initControlCallbackName // default callback
if (self.hasAttribute(ATTRIBUTE_OPTION_CALLBACK)) {
callBackFunctionName = self.getAttribute(ATTRIBUTE_OPTION_CALLBACK);
}
......
......@@ -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.30001482
caniuse-lite: 1.0.30001486
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.30001482
electron-to-chromium: 1.4.384
caniuse-lite: 1.0.30001486
electron-to-chromium: 1.4.385
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.30001482
caniuse-lite: 1.0.30001486
lodash.memoize: 4.1.2
lodash.uniq: 4.5.0
dev: true
/caniuse-lite@1.0.30001482:
resolution: {integrity: sha512-F1ZInsg53cegyjroxLNW9DmrEQ1SuGRTO1QlpA0o2/6OpQ0gFeDRoq1yFmnr8Sakn9qwwt9DmbxHB6w167OSuQ==}
/caniuse-lite@1.0.30001486:
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.384:
resolution: {integrity: sha512-I97q0MmRAAqj53+a8vZsDkEXBZki+ehYAOPzwtQzALip52aEp2+BJqHFtTlsfjoqVZYwPpHC8wM6MbsSZQ/Eqw==}
/electron-to-chromium@1.4.385:
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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment