diff --git a/development/issues/closed/295.mjs b/development/issues/closed/295.mjs index 4c6d41c1840cabed0285e03cd1b1970e534228f0..17fc36dbf2084fc57ecb54181e836b5f1dae76cd 100644 --- a/development/issues/closed/295.mjs +++ b/development/issues/closed/295.mjs @@ -11,4 +11,4 @@ import "../../../source/components/style/color.pcss"; import "../../../source/components/style/theme.pcss"; import "../../../source/components/style/normalize.pcss"; import "../../../source/components/style/typography.pcss"; -import "../../../source/components/content/camera.mjs"; +import "../../../source/components/content/camera-capture.mjs"; diff --git a/source/components/content/camera.mjs b/source/components/content/camera-capture.mjs similarity index 94% rename from source/components/content/camera.mjs rename to source/components/content/camera-capture.mjs index e310c3bf6e036a3518d5948922078975a687a6f8..94075fd52e4abfd32af0ab9857f1a352395bfd72 100644 --- a/source/components/content/camera.mjs +++ b/source/components/content/camera-capture.mjs @@ -108,39 +108,6 @@ class CameraCapture extends CustomElement { return this; } - /** - * This method is called when the element is connected to the dom. - * - * @return {void} - */ - connectedCallback() { - super.connectedCallback(); - - // const document = getDocument(); - // - // for (const [, type] of Object.entries(["click", "touch"])) { - // // close on outside ui-events - // document.addEventListener(type, this[closeEventHandler]); - // } - // - // updatePopper.call(this); - // attachResizeObserver.call(this); - } - - /** - * This method is called when the element is disconnected from the dom. - * - * @return {void} - */ - disconnectedCallback() { - super.disconnectedCallback(); - - // // close on outside ui-events - // for (const [, type] of Object.entries(["click", "touch"])) { - // document.removeEventListener(type, this[closeEventHandler]); - // } - } - /** * To set the options via the HTML Tag, the attribute `data-monster-options` must be used. * @see {@link https://monsterjs.org/en/doc/#configurate-a-monster-control} @@ -224,6 +191,9 @@ class CameraCapture extends CustomElement { } } +/** + * @private + */ function initCameraControl() { const self = this; diff --git a/source/monster.mjs b/source/monster.mjs index 163ff97117a99e2809a402be9d4584eda950ea36..8c1e7a6d4457fd2ee5c94f08f3e6afa1ffb60314 100644 --- a/source/monster.mjs +++ b/source/monster.mjs @@ -30,7 +30,7 @@ export * from "./components/layout/slider.mjs"; export * from "./components/content/fetch-box.mjs"; export * from "./components/content/viewer.mjs"; export * from "./components/content/copy.mjs"; -export * from "./components/content/camera.mjs"; +export * from "./components/content/camera-capture.mjs"; export * from "./components/time/timeline/appointment.mjs"; export * from "./components/time/timeline/segment.mjs"; export * from "./components/time/day.mjs"; diff --git a/test/web/test.html b/test/web/test.html index 2ccb63dfde01705dc7be8934bdf682a50a6218fc..f7d8c74a80395ae48da27ffa07b43d8abd5002b4 100644 --- a/test/web/test.html +++ b/test/web/test.html @@ -10,7 +10,7 @@ <body> <div id="headline" style="display: flex;align-items: center;justify-content: center;flex-direction: column;"> <h1 style='margin-bottom: 0.1em;'>Monster 3.115.0</h1> - <div id="lastupdate" style='font-size:0.7em'>last update Di 1. Apr 19:42:27 CEST 2025</div> + <div id="lastupdate" style='font-size:0.7em'>last update Di 1. Apr 21:19:27 CEST 2025</div> </div> <div id="mocha-errors" style="color: red;font-weight: bold;display: flex;align-items: center;justify-content: center;flex-direction: column;margin:20px;"></div>