From c2c98d4148548303d88a070a3fb8264eacbf5903 Mon Sep 17 00:00:00 2001 From: Volker Schukai <volker.schukai@schukai.com> Date: Tue, 1 Apr 2025 21:21:09 +0200 Subject: [PATCH] fix: rename camera file --- development/issues/closed/295.mjs | 2 +- .../{camera.mjs => camera-capture.mjs} | 36 ++----------------- source/monster.mjs | 2 +- test/web/test.html | 2 +- 4 files changed, 6 insertions(+), 36 deletions(-) rename source/components/content/{camera.mjs => camera-capture.mjs} (94%) diff --git a/development/issues/closed/295.mjs b/development/issues/closed/295.mjs index 4c6d41c18..17fc36dbf 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 e310c3bf6..94075fd52 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 163ff9711..8c1e7a6d4 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 2ccb63dfd..f7d8c74a8 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> -- GitLab