100% open-source IoT Platform - Integrate your devices, add intelligence, build custom apps
Java asset-managementbuildingdashboarddataplatformdevice-managementedge-computingenergyenergy-managementenergy-monitorfleet-managementfleet-telematicsiotiot-applicationiot-platformmodbusmqttmqtt-brokerota-updaterules-enginesmartcity
Add component distributions for the new Vaadin UI (#2405)
Martin Peetersaeae83150416
diff --git a/ui/app/insights/package.json b/ui/app/insights/package.jsonindex cdaa61877..1ffe135f1 100644--- a/ui/app/insights/package.json+++ b/ui/app/insights/package.json@@ -1,6 +1,6 @@{"name": "@openremote/insights",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote Insights App","author": "OpenRemote","license": "AGPL-3.0-or-later",diff --git a/ui/app/manager/package.json b/ui/app/manager/package.jsonindex dcc2dc767..ed6b20856 100644--- a/ui/app/manager/package.json+++ b/ui/app/manager/package.json@@ -1,6 +1,6 @@{"name": "@openremote/manager",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote Manager","author": "OpenRemote","license": "AGPL-3.0-or-later",diff --git a/ui/app/storybook/package.json b/ui/app/storybook/package.jsonindex cb7851794..4d21c5bca 100644--- a/ui/app/storybook/package.json+++ b/ui/app/storybook/package.json@@ -1,6 +1,6 @@{"name": "@openremote/storybook",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote Storybook UI","author": "OpenRemote","license": "AGPL-3.0-or-later",diff --git a/ui/component/core/package.json b/ui/component/core/package.jsonindex 9337eb65b..a01f47386 100644--- a/ui/component/core/package.json+++ b/ui/component/core/package.json@@ -1,6 +1,6 @@{"name": "@openremote/core",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote 3.x Core","main": "dist/umd/index.bundle.js","module": "lib/index.js",diff --git a/ui/component/model/package.json b/ui/component/model/package.jsonindex dc446090d..b76db63f2 100644--- a/ui/component/model/package.json+++ b/ui/component/model/package.json@@ -1,6 +1,6 @@{"name": "@openremote/model",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote 3.x Model Types","main": "dist/umd/index.bundle.js","module": "lib/index.js",diff --git a/ui/component/or-app/package.json b/ui/component/or-app/package.jsonindex a89915a13..c17d5cb60 100644--- a/ui/component/or-app/package.json+++ b/ui/component/or-app/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-app",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote app template","customElements": "custom-elements.json","author": "OpenRemote",diff --git a/ui/component/or-asset-tree/package.json b/ui/component/or-asset-tree/package.jsonindex facc98b8e..a431de05b 100644--- a/ui/component/or-asset-tree/package.json+++ b/ui/component/or-asset-tree/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-asset-tree",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote Asset Tree","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-asset-viewer/package.json b/ui/component/or-asset-viewer/package.jsonindex c6a50b46c..b91a25a01 100644--- a/ui/component/or-asset-viewer/package.json+++ b/ui/component/or-asset-viewer/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-asset-viewer",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote Asset Viewer","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-attribute-barchart/package.json b/ui/component/or-attribute-barchart/package.jsonindex f345c62a7..0d178088c 100644--- a/ui/component/or-attribute-barchart/package.json+++ b/ui/component/or-attribute-barchart/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-attribute-barchart",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote attribute bar chart","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-attribute-card/package.json b/ui/component/or-attribute-card/package.jsonindex 06e9176df..d9061e9ec 100644--- a/ui/component/or-attribute-card/package.json+++ b/ui/component/or-attribute-card/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-attribute-card",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote attribute card","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-attribute-history/package.json b/ui/component/or-attribute-history/package.jsonindex 728c3864e..8cb9f96a0 100644--- a/ui/component/or-attribute-history/package.json+++ b/ui/component/or-attribute-history/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-attribute-history",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote attribute history","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-attribute-input/package.json b/ui/component/or-attribute-input/package.jsonindex 916869437..c108f2727 100644--- a/ui/component/or-attribute-input/package.json+++ b/ui/component/or-attribute-input/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-attribute-input",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote attribute input","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-attribute-picker/package.json b/ui/component/or-attribute-picker/package.jsonindex 5997e8168..e50f613d5 100644--- a/ui/component/or-attribute-picker/package.json+++ b/ui/component/or-attribute-picker/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-attribute-picker",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote attribute picker dialog","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-chart/package.json b/ui/component/or-chart/package.jsonindex 2628f0796..45759595b 100644--- a/ui/component/or-chart/package.json+++ b/ui/component/or-chart/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-chart",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote chart","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-components/package.json b/ui/component/or-components/package.jsonindex ad095f843..b1a5ced01 100644--- a/ui/component/or-components/package.json+++ b/ui/component/or-components/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-components",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote basic UI components","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-dashboard-builder/package.json b/ui/component/or-dashboard-builder/package.jsonindex 5f8f4cb77..ffb358e55 100644--- a/ui/component/or-dashboard-builder/package.json+++ b/ui/component/or-dashboard-builder/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-dashboard-builder",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote Dashboard Builder","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-data-viewer/package.json b/ui/component/or-data-viewer/package.jsonindex 64b1c1353..e49383000 100644--- a/ui/component/or-data-viewer/package.json+++ b/ui/component/or-data-viewer/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-data-viewer",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote data Viewer","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-gauge/package.json b/ui/component/or-gauge/package.jsonindex 22e3cde27..92a0832a8 100644--- a/ui/component/or-gauge/package.json+++ b/ui/component/or-gauge/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-gauge",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote gauge","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-icon/package.json b/ui/component/or-icon/package.jsonindex d0517683f..b2f87a6b0 100644--- a/ui/component/or-icon/package.json+++ b/ui/component/or-icon/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-icon",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Icon component for displaying an icon from an icon set","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-json-forms/package.json b/ui/component/or-json-forms/package.jsonindex 48caca957..f3fb08776 100644--- a/ui/component/or-json-forms/package.json+++ b/ui/component/or-json-forms/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-json-forms",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Renders a JSON schema and provides instance editing","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-log-viewer/package.json b/ui/component/or-log-viewer/package.jsonindex 538569e8f..eb035084b 100644--- a/ui/component/or-log-viewer/package.json+++ b/ui/component/or-log-viewer/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-log-viewer",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote syslog viewer","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-map/package.json b/ui/component/or-map/package.jsonindex 9ea446e54..fc91bbe10 100644--- a/ui/component/or-map/package.json+++ b/ui/component/or-map/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-map",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Displays s vector or raster map","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-mwc-components/package.json b/ui/component/or-mwc-components/package.jsonindex 80a59f602..6d8c9e10c 100644--- a/ui/component/or-mwc-components/package.json+++ b/ui/component/or-mwc-components/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-mwc-components",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Material Design Components packaged as web components (The official components are hardcoded to use Material Design font which has limited icons)","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-rules/package.json b/ui/component/or-rules/package.jsonindex 9cd34f123..c8a3a4fad 100644--- a/ui/component/or-rules/package.json+++ b/ui/component/or-rules/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-rules",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote rules related UI components","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-scheduler/package.json b/ui/component/or-scheduler/package.jsonindex 3d60a85a9..c7bb7ad16 100644--- a/ui/component/or-scheduler/package.json+++ b/ui/component/or-scheduler/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-scheduler",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote scheduler UI component","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-services/package.json b/ui/component/or-services/package.jsonindex 09f4ea1fd..0412e338f 100644--- a/ui/component/or-services/package.json+++ b/ui/component/or-services/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-services",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote services related UI components","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-smart-notify/package.json b/ui/component/or-smart-notify/package.jsonindex 9860bda4c..7581237b4 100644--- a/ui/component/or-smart-notify/package.json+++ b/ui/component/or-smart-notify/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-smart-notify",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote Smarty Notify element","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-survey-results/package.json b/ui/component/or-survey-results/package.jsonindex dc5da0a37..4e99b3e6c 100644--- a/ui/component/or-survey-results/package.json+++ b/ui/component/or-survey-results/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-survey-results",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Displays survey results","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-survey/package.json b/ui/component/or-survey/package.jsonindex 35cac66b3..0d3b323c3 100644--- a/ui/component/or-survey/package.json+++ b/ui/component/or-survey/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-survey",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Displays survey","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-thermostat/package.json b/ui/component/or-thermostat/package.jsonindex 01f5f1635..ba4b1a249 100644--- a/ui/component/or-thermostat/package.json+++ b/ui/component/or-thermostat/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-thermostat",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "A thermostat component for viewing current temperature and setting target temperature","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-timeline/package.json b/ui/component/or-timeline/package.jsonindex d8092ec25..bf12709fa 100644--- a/ui/component/or-timeline/package.json+++ b/ui/component/or-timeline/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-timeline",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote Timeline","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-translate/package.json b/ui/component/or-translate/package.jsonindex b932d2366..6c5f7724d 100644--- a/ui/component/or-translate/package.json+++ b/ui/component/or-translate/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-translate",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Provides a web component for translations using i18next","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-tree-menu/package.json b/ui/component/or-tree-menu/package.jsonindex 3eb7292b7..f659db983 100644--- a/ui/component/or-tree-menu/package.json+++ b/ui/component/or-tree-menu/package.json@@ -1,6 +1,6 @@{"name": "@openremote/or-tree-menu",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Web Component for displaying a tree menu of items with a predefined hierarchy","customElements": "custom-elements.json","main": "dist/umd/index.bundle.js",diff --git a/ui/component/or-vaadin-components/.npmignore b/ui/component/or-vaadin-components/.npmignorenew file mode 100644index 000000000..abed2c8ed--- /dev/null+++ b/ui/component/or-vaadin-components/.npmignore@@ -0,0 +1,10 @@+build/+build.gradle+test/+src/+webpack.config.js+rspack.config.js+playwright.config.ts+tsconfig.json+dist/*.map+*.tsbuildinfodiff --git a/ui/component/or-vaadin-components/README.md b/ui/component/or-vaadin-components/README.mdnew file mode 100644index 000000000..79a31294c--- /dev/null+++ b/ui/component/or-vaadin-components/README.md@@ -0,0 +1,30 @@+# @openremote/or-vaadin-components+[![NPM Version][npm-image]][npm-url]++Package containing [Vaadin Web Components](https://vaadin.com/docs/latest/components), built with [Lit](https://lit.dev), with a slight adjustment to work within the OpenRemote ecosystem.+For documentation you can check out their [website](https://vaadin.com/docs/latest/components).++## Install+```bash+npm i @openremote/or-vaadin-components+yarn add @openremote/or-vaadin-components+```++## Usage+### JavaScript / TypeScript example using a Text Field+Note: using the `document.createElement()` API is an example here. Please check the documentation of your JavaScript framework for proper installation of Lit web components.+```typescript+import "@openremote/or-vaadin-components/or-vaadin-textfield";++// Load text field into the app+const textField = document.createElement("or-vaadin-textfield");+textField.setAttribute("label", "Company name");+textField.setAttribute("value", "OpenRemote");+document.body.appendChild(textField);+```++## License+[GNU AGPL](https://www.gnu.org/licenses/agpl-3.0.en.html)++[npm-image]: https://img.shields.io/npm/v/@openremote/or-vaadin-components.svg+[npm-url]: https://npmjs.org/package/@openremote/or-vaadin-componentsdiff --git a/ui/component/or-vaadin-components/build.gradle b/ui/component/or-vaadin-components/build.gradlenew file mode 100644index 000000000..65d8b407d--- /dev/null+++ b/ui/component/or-vaadin-components/build.gradle@@ -0,0 +1,33 @@+buildDir = "dist"++tasks.register('clean') {+ doLast {+ delete "dist"+ delete "lib"+ delete "tsconfig.tsbuildinfo"+ }+}++tasks.register('npmAnalyze', Exec) {+ mustRunAfter npmClean+ dependsOn getYarnInstallTask()+ commandLine npmCommand("yarn"), "run", "analyze"+}++tasks.register('installDist') {+ dependsOn npmAnalyze+}++tasks.register('prepareUi') {+ dependsOn clean, npmAnalyze, npmPrepare+}++tasks.register('publishUi') {+ dependsOn clean, npmPublish+}++tasks.register('npmBuild', Exec) {+ mustRunAfter npmClean+ dependsOn getYarnInstallTask()+ commandLine npmCommand("yarn"), "run", "build"+}diff --git a/ui/component/or-vaadin-components/package.json b/ui/component/or-vaadin-components/package.jsonnew file mode 100644index 000000000..4665feb42--- /dev/null+++ b/ui/component/or-vaadin-components/package.json@@ -0,0 +1,48 @@+{+ "name": "@openremote/or-vaadin-components",+ "version": "1.14.0-snapshot",+ "description": "Vaadin Components packaged as components aligned with the OpenRemote design system",+ "customElements": "custom-elements.json",+ "main": "dist/umd/index.bundle.js",+ "module": "lib/index.js",+ "types": "src/index.d.ts",+ "exports": {+ ".": "./lib/index.js",+ "./*": "./lib/*.js",+ "./jsx": {+ "types": "./custom-elements-jsx.d.ts"+ }+ },+ "typesVersions": {+ "*": {+ "*": [+ "lib/*"+ ]+ }+ },+ "scripts": {+ "clean": "npx tsc -b --clean && npx shx rm -rf dist lib",+ "analyze": "npx cem analyze --config ../custom-elements-manifest.config.mjs",+ "build": "npx tsc -b",+ "test": "npx tsc -b && npx playwright test",+ "prepack": "npx tsc -b"+ },+ "author": "OpenRemote",+ "repository": "https://github.com/openremote/openremote",+ "license": "AGPL-3.0-or-later",+ "dependencies": {+ "@openremote/core": "workspace:*",+ "@openremote/model": "workspace:*",+ "@vaadin/checkbox": "~25.0.1",+ "@vaadin/dialog": "~25.0.1",+ "@vaadin/number-field": "~25.0.1",+ "@vaadin/password-field": "~25.0.1",+ "@vaadin/select": "~25.0.1",+ "@vaadin/text-area": "~25.0.1",+ "@vaadin/text-field": "~25.0.1",+ "lit": "^3.3.1"+ },+ "publishConfig": {+ "access": "public"+ }+}diff --git a/ui/component/or-vaadin-components/playwright.config.ts b/ui/component/or-vaadin-components/playwright.config.tsnew file mode 100644index 000000000..94d454129--- /dev/null+++ b/ui/component/or-vaadin-components/playwright.config.ts@@ -0,0 +1,3 @@+import { defineCtConfig } from "@openremote/test/component.config";++export default defineCtConfig(__dirname);diff --git a/ui/component/or-vaadin-components/src/or-vaadin-checkbox.ts b/ui/component/or-vaadin-components/src/or-vaadin-checkbox.tsnew file mode 100644index 000000000..8eb1af55c--- /dev/null+++ b/ui/component/or-vaadin-components/src/or-vaadin-checkbox.ts@@ -0,0 +1,27 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {customElement} from "lit/decorators.js";+import {Checkbox} from "@vaadin/checkbox";+import {OrVaadinComponent} from "./util";++@customElement("or-vaadin-checkbox")+export class OrVaadinCheckbox extends Checkbox implements OrVaadinComponent {++}diff --git a/ui/component/or-vaadin-components/src/or-vaadin-dialog.ts b/ui/component/or-vaadin-components/src/or-vaadin-dialog.tsnew file mode 100644index 000000000..5af4134d9--- /dev/null+++ b/ui/component/or-vaadin-components/src/or-vaadin-dialog.ts@@ -0,0 +1,29 @@+/*+ * Copyright 2026, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {Dialog} from "@vaadin/dialog";+import {OrVaadinComponent} from "./util";+import {customElement} from "lit/decorators.js";++export {dialogFooterRenderer, dialogRenderer} from "@vaadin/dialog/lit.js";++@customElement("or-vaadin-dialog")+export class OrVaadinDialog extends Dialog implements OrVaadinComponent {++}diff --git a/ui/component/or-vaadin-components/src/or-vaadin-input.ts b/ui/component/or-vaadin-components/src/or-vaadin-input.tsnew file mode 100644index 000000000..d9330907d--- /dev/null+++ b/ui/component/or-vaadin-components/src/or-vaadin-input.ts@@ -0,0 +1,272 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {css, html, LitElement, PropertyValues, TemplateResult} from "lit";+import {customElement, property, query} from "lit/decorators.js";+import {InputType} from "./util";+import "./or-vaadin-checkbox";+import "./or-vaadin-numberfield";+import "./or-vaadin-passwordfield";+import "./or-vaadin-textfield";+import "./or-vaadin-textarea";+import "./or-vaadin-select";++/**+ * Function to register properties (get/setter) of a CustomElement to the child Vaadin element.+ * When the Vaadin element does not recognize the HTML attribute or class property, it is ignored.+ * @param constructors - List of CustomElements to scan for available properties+ */+function registerProperties(constructors: (CustomElementConstructor | undefined)[]) {+ constructors+ .filter(constr => !!constr)+ .map(contr => contr as typeof LitElement)+ .forEach(constr => constr.observedAttributes+ .filter(attr => !OrVaadinInput.elementProperties.has(attr))+ .forEach(attr => OrVaadinInput.createProperty(attr, constr.getPropertyOptions(attr)))+ );+}++/**+ * Custom element that wraps various Vaadin input components based on the specified `type`.+ * Provides a unified interface for interacting with different types of inputs.+ * @customElement "or-vaadin-input"+ */+@customElement("or-vaadin-input")+export class OrVaadinInput extends LitElement {++ /**+ * Static list of Vaadin component classes to scan through during attribute changes.+ * It's important that the complete list of CustomElements is defined here.+ * Be aware: all CustomElements defined here need to be imported during initialization; dynamic imports are not expected to work.+ */+ public static readonly VAADIN_CLASSES: (CustomElementConstructor | undefined)[] = [+ customElements.get("or-vaadin-numberfield"),+ customElements.get("or-vaadin-passwordfield"),+ customElements.get("or-vaadin-select"),+ customElements.get("or-vaadin-textarea"),+ customElements.get("or-vaadin-textfield")+ ];++ /**+ * Static map of template functions that are used to render the Vaadin components.+ * For example, {@link InputType.CHECKBOX} generates a `<or-vaadin-checkbox>` element.+ * The map value contains a function, with an {@link onChange} callback parameter for handling events.+ */+ public static readonly TEMPLATES = new Map<InputType, (onChange: (ev: Event) => void) => TemplateResult>([+ [InputType.CHECKBOX, OrVaadinInput.getCheckboxTemplate],+ [InputType.BIG_INT, OrVaadinInput.getNumberFieldTemplate],+ [InputType.NUMBER, OrVaadinInput.getNumberFieldTemplate],+ [InputType.TEXTAREA, OrVaadinInput.getTextAreaTemplate],+ [InputType.TEXT, OrVaadinInput.getTextFieldTemplate],+ [InputType.PASSWORD, OrVaadinInput.getPasswordFieldTemplate],+ [InputType.SELECT, OrVaadinInput.getSelectTemplate]+ ]);++ /**+ * Static map of what HTML event to listen for when a value changes. By default, or when undefined, the "change" event is used.+ * Sometimes you'd like to override this, such as a text field, where it should only be updated "on submit".+ */+ public static readonly CHANGE_EVENTS = new Map<InputType, string>([+ [InputType.BIG_INT, "submit"],+ [InputType.NUMBER, "submit"],+ [InputType.TEXTAREA, "submit"],+ [InputType.TEXT, "submit"],+ [InputType.PASSWORD, "submit"]+ ]);++ /**+ * List of forbidden attributes that are not processed nor "bubbled down" to the child Vaadin component.+ * So `<or-vaadin-input id="myId" type="text">`, wouldn't render `<or-vaadin-textfield id="myId">`, but `<or-vaadin-textfield>`.+ */+ public static readonly FORBIDDEN_ATTRIBUTES = ["id"];++ /**+ * The input type that determines which Vaadin component to render.+ * Refer to {@link InputType} and {@link OrVaadinInput.TEMPLATES} for the supported types.+ */+ @property({type: String})+ public type: InputType = InputType.TEXT;++ @query("#elem")+ protected _elem?: HTMLInputElement;++ /**+ * Internal observer for tracking attribute updates on the root element.+ * @protected+ */+ protected _observer = new MutationObserver((mutations, observer) => this._onAttributeChange(mutations, observer));++ static get styles() {+ return css`+ #elem {+ width: 100%;+ }+ or-vaadin-textarea {+ max-height: 200px;+ }+ `;+ }++ connectedCallback() {+ this._observer.observe(this, { attributes: true });+ return super.connectedCallback();+ }++ disconnectedCallback() {+ this._observer.disconnect();+ return super.disconnectedCallback();+ }++ updated(changedProps: PropertyValues) {+ changedProps.forEach((_, key) => this._onPropertyChange(String(key)));+ return super.updated(changedProps);+ }++ firstUpdated(_changedProps: PropertyValues) {+ for (const name of this.getAttributeNames()) {+ this._applyAttribute(name, this.getAttribute(name), this._elem);+ }+ return super.firstUpdated(_changedProps);+ }++ /**+ * Returns the native Vaadin input element.+ */+ public get native(): HTMLInputElement | undefined {+ return this._elem;+ }++ /**+ * Returns the value of the native Vaadin input element.+ */+ public get nativeValue(): any {+ switch (this.type) {+ case InputType.CHECKBOX: {+ return (this._elem as HTMLInputElement | undefined)?.checked;+ }+ default: {+ return this._elem?.value;+ }+ }+ }++ /**+ * Function that returns a boolean which indicates if the element meets any constraint validation rules applied to it.+ * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/HTMLInputElement/checkValidity|HTMLInputElement/checkValidity}+ */+ public checkValidity(): boolean {+ return this._elem?.checkValidity() ?? false;+ }++ render() {+ return OrVaadinInput.TEMPLATES.get(this.type)?.(this._onValueChange) ?? html`Not supported yet.`;+ }++ /**+ * Internal {@link MutationCallback} function for handling attribute changes from an {@link MutationObserver}.+ * @param mutations - Array of mutations occurring in a single event+ * @param _observer - The observer causing the {@link MutationCallback}+ * @protected+ */+ protected _onAttributeChange(mutations: MutationRecord[], _observer: MutationObserver) {+ this.getUpdateComplete().then(() => {+ mutations+ .filter(mutation => mutation.type === "attributes" && mutation.attributeName)+ .forEach(mutation => {+ this._applyAttribute(mutation.attributeName!, this.getAttribute(mutation.attributeName!), this._elem);+ });+ });+ }++ /**+ * Internal function for handling property changes during the Lit lifecycle.+ * @param name - Property key that was changed+ * @param newValue - (optional) the new value to apply+ * @protected+ */+ protected _onPropertyChange(name: string, newValue?: any) {+ newValue ??= (this as Record<string, unknown>)[String(name)];+ this._applyAttribute(name, JSON.stringify(newValue), this._elem);+ }++ /**+ * Internal callback function when a user changes the value inside the Vaadin element.+ * Normally this is caused by an `@change` event.+ * @param ev Event that occurred+ * @protected+ */+ protected _onValueChange(ev: Event) {+ ev.stopPropagation();+ if (ev.defaultPrevented) return;+ this.dispatchEvent(new CustomEvent("change", { bubbles: true }));+ }++ /**+ * Internal function to apply an attribute to the child Vaadin element.+ * @param name - Attribute name+ * @param value - Value to apply+ * @param elem - Optional {@link HTMLInputElement} to apply the change to+ * @protected+ */+ protected _applyAttribute(name: string, value?: any, elem = this._elem) {+ if (elem && !OrVaadinInput.FORBIDDEN_ATTRIBUTES.includes(name)) {+ switch (typeof value) {+ case "boolean": {+ elem?.toggleAttribute(name, value);+ break;+ }+ default: {+ if (value !== null) {+ elem?.setAttribute(name, value);+ } else {+ elem?.removeAttribute(name);+ }+ break;+ }+ }+ }+ }++ public static getCheckboxTemplate(onChange?: (e: Event) => void) {+ return html`<or-vaadin-checkbox id="elem" @change=${onChange}></or-vaadin-checkbox>`;+ }++ public static getNumberFieldTemplate(onChange?: (e: Event) => void) {+ return html`<or-vaadin-numberfield id="elem" @change=${onChange}></or-vaadin-numberfield>`;+ }++ public static getTextAreaTemplate(onChange?: (e: Event) => void) {+ return html`<or-vaadin-textarea id="elem" @change=${onChange}></or-vaadin-textarea>`;+ }++ public static getTextFieldTemplate(onChange?: (e: Event) => void) {+ return html`<or-vaadin-textfield id="elem" @change=${onChange}></or-vaadin-textfield>`;+ }++ public static getPasswordFieldTemplate(onChange?: (e: Event) => void) {+ return html`<or-vaadin-passwordfield id="elem" @change=${onChange}></or-vaadin-passwordfield>`;+ }++ public static getSelectTemplate(onChange?: (e: Event) => void) {+ return html`<or-vaadin-select id="elem" @change=${onChange}></or-vaadin-select>`;+ }+}++// Before the class is initialized, register the property fields of the underlying Vaadin classes+registerProperties(OrVaadinInput.VAADIN_CLASSES);diff --git a/ui/component/or-vaadin-components/src/or-vaadin-numberfield.ts b/ui/component/or-vaadin-components/src/or-vaadin-numberfield.tsnew file mode 100644index 000000000..d3b1f3f99--- /dev/null+++ b/ui/component/or-vaadin-components/src/or-vaadin-numberfield.ts@@ -0,0 +1,32 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {customElement} from "lit/decorators.js";+import {NumberField} from "@vaadin/number-field";+import {OrVaadinComponent} from "./util";+import {LitElement} from "lit";++@customElement("or-vaadin-numberfield")+export class OrVaadinNumberfield extends (NumberField as new () => NumberField & LitElement) implements OrVaadinComponent {++ override _onEnter(ev: KeyboardEvent) {+ this.dispatchEvent(new CustomEvent("submit", {bubbles: true, composed: true}));+ return super._onEnter(ev);+ }+}diff --git a/ui/component/or-vaadin-components/src/or-vaadin-passwordfield.ts b/ui/component/or-vaadin-components/src/or-vaadin-passwordfield.tsnew file mode 100644index 000000000..bcf20824e--- /dev/null+++ b/ui/component/or-vaadin-components/src/or-vaadin-passwordfield.ts@@ -0,0 +1,32 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {customElement} from "lit/decorators.js";+import {PasswordField} from "@vaadin/password-field";+import {OrVaadinComponent} from "./util";+import {LitElement} from "lit";++@customElement("or-vaadin-passwordfield")+export class OrVaadinPasswordField extends (PasswordField as new () => PasswordField & LitElement) implements OrVaadinComponent {++ override _onEnter(ev: KeyboardEvent) {+ this.dispatchEvent(new CustomEvent("submit", {bubbles: true, composed: true}));+ return super._onEnter(ev);+ }+}diff --git a/ui/component/or-vaadin-components/src/or-vaadin-select.ts b/ui/component/or-vaadin-components/src/or-vaadin-select.tsnew file mode 100644index 000000000..ce44eecd4--- /dev/null+++ b/ui/component/or-vaadin-components/src/or-vaadin-select.ts@@ -0,0 +1,27 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {Select} from "@vaadin/select";+import {customElement} from "lit/decorators.js";+import {OrVaadinComponent} from "./util";++@customElement("or-vaadin-select")+export class OrVaadinSelect extends Select implements OrVaadinComponent {++}diff --git a/ui/component/or-vaadin-components/src/or-vaadin-textarea.ts b/ui/component/or-vaadin-components/src/or-vaadin-textarea.tsnew file mode 100644index 000000000..96e99ffa9--- /dev/null+++ b/ui/component/or-vaadin-components/src/or-vaadin-textarea.ts@@ -0,0 +1,32 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {customElement} from "lit/decorators.js";+import {TextArea} from "@vaadin/text-area";+import {OrVaadinComponent} from "./util";+import {LitElement} from "lit";++@customElement("or-vaadin-textarea")+export class OrVaadinTextarea extends (TextArea as new () => TextArea & LitElement) implements OrVaadinComponent {++ override _onEnter(ev: KeyboardEvent) {+ this.dispatchEvent(new CustomEvent("submit", {bubbles: true, composed: true}));+ return super._onEnter(ev);+ }+}diff --git a/ui/component/or-vaadin-components/src/or-vaadin-textfield.ts b/ui/component/or-vaadin-components/src/or-vaadin-textfield.tsnew file mode 100644index 000000000..88626e2e0--- /dev/null+++ b/ui/component/or-vaadin-components/src/or-vaadin-textfield.ts@@ -0,0 +1,32 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {customElement} from "lit/decorators.js";+import {TextField} from "@vaadin/text-field";+import {LitElement} from "lit";+import {OrVaadinComponent} from "./util";++@customElement("or-vaadin-textfield")+export class OrVaadinTextfield extends (TextField as new () => TextField & LitElement) implements OrVaadinComponent {++ override _onEnter(ev: KeyboardEvent) {+ this.dispatchEvent(new CustomEvent("submit", {bubbles: true, composed: true}));+ return super._onEnter(ev);+ }+}diff --git a/ui/component/or-vaadin-components/src/util.ts b/ui/component/or-vaadin-components/src/util.tsnew file mode 100644index 000000000..57aa7e758--- /dev/null+++ b/ui/component/or-vaadin-components/src/util.ts@@ -0,0 +1,444 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {Util} from "@openremote/core";+import {WellknownMetaItems, WellknownValueTypes} from "@openremote/model";+import type {+ AssetDescriptor,+ Attribute,+ AttributeDescriptor,+ MetaHolder,+ NameHolder,+ NameValueHolder,+ ValueConstraint,+ ValueConstraintAllowedValues,+ ValueConstraintFuture,+ ValueConstraintFutureOrPresent,+ ValueConstraintMax,+ ValueConstraintMin,+ ValueConstraintNotBlank,+ ValueConstraintNotEmpty,+ ValueConstraintNotNull,+ ValueConstraintPast,+ ValueConstraintPastOrPresent,+ ValueConstraintPattern,+ ValueConstraintSize,+ ValueDescriptor,+ ValueDescriptorHolder,+ ValueFormat,+ ValueHolder+} from "@openremote/model";+import {html, TemplateResult} from "lit";+import {Ref, ref, createRef} from "lit/directives/ref.js";+import {ifDefined} from "lit/directives/if-defined.js";+import {styleMap} from "lit/directives/style-map.js";+import {OrVaadinInput} from "./or-vaadin-input";++export enum InputType {+ BUTTON = "button",+ BUTTON_TOGGLE = "button-toggle",+ BUTTON_MOMENTARY = "button-momentary",+ CHECKBOX = "checkbox",+ CHECKBOX_LIST = "checkbox-list",+ COLOUR = "color",+ DATE = "date",+ DATETIME = "datetime-local",+ EMAIL = "email",+ JSON = "json",+ JSON_OBJECT = "json-object",+ MONTH = "month",+ NUMBER = "number",+ BIG_INT = "big-int",+ PASSWORD = "password",+ RADIO = "radio",+ SWITCH = "switch",+ RANGE = "range",+ TELEPHONE = "tel",+ TEXT = "text",+ TEXTAREA = "textarea",+ TIME = "time",+ URL = "url",+ WEEK = "week",+ SELECT = "select",+ LIST = "list",+ CRON = "cron",+ DURATION = "duration",+ DURATION_TIME = "duration-time",+ DURATION_PERIOD = "duration-period"+}++export interface OrVaadinComponent {+ getAttributeNames(): string[];+}++export interface ValueInputProviderOptions {+ label?: string;+ required?: boolean;+ readonly?: boolean;+ disabled?: boolean;+ compact?: boolean;+ rounded?: boolean;+ outlined?: boolean;+ comfortable?: boolean;+ resizeVertical?: boolean;+ inputType?: InputType;+}++export interface ValueInputProvider {+ templateFunction: ValueInputTemplateFunction;+ supportsHelperText: boolean;+ supportsLabel: boolean;+ supportsSendButton: boolean;+ validator?: () => boolean;+}++export type ValueInputTemplateFunction = ((value: any, focused: boolean, loading: boolean, sending: boolean, error: boolean, helperText: string | undefined) => TemplateResult | PromiseLike<TemplateResult>) | undefined;++export type ValueInputProviderGenerator = (assetDescriptor: AssetDescriptor | string, valueHolder: NameHolder & ValueHolder<any> | undefined, valueHolderDescriptor: ValueDescriptorHolder | undefined, valueDescriptor: ValueDescriptor+ , valueChangeNotifier: (value: any, updateImmediately?: boolean) => void, options: ValueInputProviderOptions) => ValueInputProvider;++/**+ * Returns whether the {@link InputType} should show a "send" button within the attribute input UI.+ * Some input types have internal mechanics for updating attributes, which is why they should return `false`.+ * Generic input types, like a text field, "support a send button", so should return `true`+ */+function inputTypeSupportsSendButton(inputType: InputType): boolean {+ return inputType === InputType.NUMBER+ || inputType === InputType.BIG_INT+ || inputType === InputType.TELEPHONE+ || inputType === InputType.TEXT+ || inputType === InputType.PASSWORD+ || inputType === InputType.DATE+ || inputType === InputType.DATETIME+ || inputType === InputType.EMAIL+ || inputType === InputType.JSON+ || inputType === InputType.JSON_OBJECT+ || inputType === InputType.MONTH+ || inputType === InputType.TEXTAREA+ || inputType === InputType.TIME+ || inputType === InputType.URL+ || inputType === InputType.WEEK;+}++function inputTypeSupportsHelperText(inputType: InputType) {+ return inputTypeSupportsSendButton(inputType) || inputType === InputType.SELECT;+}++function inputTypeSupportsLabel(inputType: InputType) {+ return inputTypeSupportsHelperText(inputType) || inputType === InputType.CHECKBOX || inputType === InputType.BUTTON_MOMENTARY;+}++/**+ * Internal function to retrieve HTML template based on the Asset-, attribute-, and value descriptors+ * It generates a template using `or-vaadin-input`, together with respective HTML attributes like min/max, pattern, and of course 'input type'.+ * For example, a 'positive number' attribute will render a `<or-vaadin-input type="number" min="0">`.+ * If the Vaadin input doesn't support the 'input type', it will automatically fall back to the older `or-mwc-input`.+ *+ * This is mostly copied over from `or-mwc-input`, so this will need optimizing once that has been deprecated.+ */+export const getValueHolderInputTemplateProvider: ValueInputProviderGenerator = (assetDescriptor, valueHolder, valueHolderDescriptor, valueDescriptor, valueChangeNotifier, options) => {++ let inputType: InputType | undefined = options.inputType;+ let step: number | undefined;+ let pattern: string | undefined;+ let min: any;+ let max: any;+ let multiple: any;+ let required: boolean | undefined;+ let selectOptions: { label: string, value: string }[] | undefined;+ let valueConverter: (v: any) => any | undefined;+ const styles = {} as any;++ const assetType = typeof assetDescriptor === "string" ? assetDescriptor : assetDescriptor.name;+ const constraints: ValueConstraint[] = (valueHolder && ((valueHolder as MetaHolder).meta) || (valueDescriptor && (valueDescriptor as MetaHolder).meta) ? Util.getAttributeValueConstraints(valueHolder as Attribute<any>, valueHolderDescriptor as AttributeDescriptor, assetType) : Util.getMetaValueConstraints(valueHolder as NameValueHolder<any>, valueHolderDescriptor as AttributeDescriptor, assetType)) || [];+ const format: ValueFormat | undefined = (valueHolder && ((valueHolder as MetaHolder).meta) || (valueDescriptor && (valueDescriptor as MetaHolder).meta) ? Util.getAttributeValueFormat(valueHolder as Attribute<any>, valueHolderDescriptor as AttributeDescriptor, assetType) : Util.getMetaValueFormat(valueHolder as Attribute<any>, valueHolderDescriptor as AttributeDescriptor, assetType));++ const supportsVaadinInput = (type: InputType) => (OrVaadinInput.TEMPLATES.has(type) && !format?.asSlider && !format?.asOnOff);++ // Determine input type+ if (!inputType) {+ switch (valueDescriptor.name) {+ case WellknownValueTypes.TEXT:+ case WellknownValueTypes.EMAIL:+ case WellknownValueTypes.UUID:+ case WellknownValueTypes.ASSETID:+ case WellknownValueTypes.HOSTORIPADDRESS:+ case WellknownValueTypes.IPADDRESS:+ inputType = Util.getMetaValue(WellknownMetaItems.MULTILINE, valueHolder, valueHolderDescriptor) === true ? InputType.TEXTAREA : InputType.TEXT;+ break;+ case WellknownValueTypes.BOOLEAN:+ if (format && format.asNumber) {+ inputType = InputType.NUMBER;+ step = 1;+ min = 0;+ max = 1;+ valueConverter = v => !!v;+ break;+ }+ if (format && (format.asOnOff || format.asOpenClosed)) {+ inputType = InputType.SWITCH;+ } else {+ inputType = InputType.CHECKBOX;+ }++ if ((format && format.asMomentary) || (Util.getMetaValue(WellknownMetaItems.MOMENTARY, valueHolder, valueHolderDescriptor) === true) ) {+ inputType = InputType.BUTTON_MOMENTARY;+ }+ break;+ case WellknownValueTypes.BIGNUMBER:+ case WellknownValueTypes.NUMBER:+ case WellknownValueTypes.POSITIVEINTEGER:+ case WellknownValueTypes.POSITIVENUMBER:+ case WellknownValueTypes.LONG:+ case WellknownValueTypes.INTEGER:+ case WellknownValueTypes.BYTE:+ case WellknownValueTypes.INTEGERBYTE:+ case WellknownValueTypes.DIRECTION:+ case WellknownValueTypes.TCPIPPORTNUMBER:+ if (valueDescriptor.name === WellknownValueTypes.BYTE || valueDescriptor.name === WellknownValueTypes.INTEGERBYTE) {+ min = 0;+ max = 255;+ step = 1;+ } else if (valueDescriptor.name === WellknownValueTypes.INTEGER || valueDescriptor.name === WellknownValueTypes.LONG) {+ step = 1;+ }+ if (format && format.asDate) {+ inputType = InputType.DATETIME;+ } else if (format && format.asBoolean) {+ inputType = InputType.CHECKBOX;+ valueConverter = v => v ? 1 : 0;+ } else if (format && format.asSlider) {+ inputType = InputType.RANGE;+ } else {+ inputType = InputType.NUMBER;+ }+ break;+ case WellknownValueTypes.BIGINTEGER:+ inputType = InputType.BIG_INT;+ step = 1;+ break;+ case WellknownValueTypes.COLOURRGB:+ inputType = InputType.COLOUR;+ break;+ case WellknownValueTypes.DATEANDTIME:+ case WellknownValueTypes.TIMESTAMP:+ case WellknownValueTypes.TIMESTAMPISO8601:+ inputType = InputType.DATETIME;+ break;+ case WellknownValueTypes.CRONEXPRESSION:+ inputType = InputType.CRON;+ break;+ case WellknownValueTypes.TIMEDURATIONISO8601:+ inputType = InputType.DURATION_TIME;+ break;+ case WellknownValueTypes.PERIODDURATIONISO8601:+ inputType = InputType.DURATION_PERIOD;+ break;+ case WellknownValueTypes.TIMEANDPERIODDURATIONISO8601:+ inputType = InputType.DURATION;+ break;+ case WellknownValueTypes.JSONOBJECT:+ inputType = InputType.JSON_OBJECT;+ break;+ }++ if (valueDescriptor.arrayDimensions && valueDescriptor.arrayDimensions > 0) {+ inputType = InputType.JSON;+ }+ }++ if (!inputType) {+ switch (valueDescriptor.jsonType) {+ case "number":+ case "bigint":+ inputType = InputType.NUMBER;+ break;+ case "boolean":+ inputType = InputType.CHECKBOX;+ break;+ case "string":+ inputType = InputType.TEXT;+ break;+ case "date":+ inputType = InputType.DATETIME;+ break;+ default:+ break;+ }+ }++ if (!inputType) {+ inputType = InputType.JSON;+ }++ // Apply any constraints+ const sizeConstraint = constraints?.find(c => c.type === "size") as ValueConstraintSize;+ const patternConstraint = constraints?.find(c => c.type === "pattern") as ValueConstraintPattern;+ const minConstraint = constraints?.find(c => c.type === "min") as ValueConstraintMin;+ const maxConstraint = constraints?.find(c => c.type === "max") as ValueConstraintMax;+ const allowedValuesConstraint = constraints?.find(c => c.type === "allowedValues") as ValueConstraintAllowedValues;+ const pastConstraint = constraints?.find(c => c.type === "past") as ValueConstraintPast;+ const pastOrPresentConstraint = constraints?.find(c => c.type === "pastOrPresent") as ValueConstraintPastOrPresent;+ const futureConstraint = constraints?.find(c => c.type === "future") as ValueConstraintFuture;+ const futureOrPresentConstraint = constraints?.find(c => c.type === "futureOrPresent") as ValueConstraintFutureOrPresent;+ const notEmptyConstraint = constraints?.find(c => c.type === "notEmpty") as ValueConstraintNotEmpty;+ const notBlankConstraint = constraints?.find(c => c.type === "notBlank") as ValueConstraintNotBlank;+ const notNullConstraint = constraints?.find(c => c.type === "notNull") as ValueConstraintNotNull;++ if (sizeConstraint) {+ min = sizeConstraint.min;+ max = sizeConstraint.max;+ }+ if (minConstraint) {+ min = minConstraint.min;+ }+ if (maxConstraint) {+ max = maxConstraint.max;+ }+ if (patternConstraint) {+ pattern = patternConstraint.regexp;+ }+ if (notNullConstraint) {+ required = true;+ }+ if (notBlankConstraint && !pattern) {+ pattern = String.raw`\S+`;+ } else if (notEmptyConstraint && !pattern) {+ pattern = ".+";+ }+ if (allowedValuesConstraint?.allowedValues) {+ const allowedLabels = allowedValuesConstraint.allowedValueNames && allowedValuesConstraint.allowedValueNames.length === allowedValuesConstraint.allowedValues.length ? allowedValuesConstraint.allowedValueNames : undefined;+ selectOptions = allowedValuesConstraint.allowedValues.map((v, i) => {+ let label = allowedLabels ? allowedLabels[i] : "" + v;+ label = Util.getAllowedValueLabel(label)!;+ return {+ value: v,+ label: label || "" + v+ };+ });+ inputType = InputType.SELECT;++ if (valueDescriptor.arrayDimensions && valueDescriptor.arrayDimensions > 0) {+ multiple = true;+ }+ }++ if (inputType === InputType.DATETIME) {+ if (pastConstraint || pastOrPresentConstraint) {+ min = undefined;+ max = new Date();+ } else if (futureConstraint || futureOrPresentConstraint) {+ min = new Date();+ max = undefined;+ }++ // Refine the input type based on formatting+ if (format) {+ if (format.timeStyle && !format.dateStyle) {+ inputType = InputType.TIME;+ } else if (format.dateStyle && !format.timeStyle) {+ inputType = InputType.DATE;+ }+ }+ }++ if (inputType === InputType.NUMBER && format?.resolution) {+ step = format.resolution;+ }++ if (inputType === InputType.COLOUR) {+ styles.marginLeft = "24px";+ }++ const supportsHelperText = inputTypeSupportsHelperText(inputType);+ const supportsLabel = inputTypeSupportsLabel(inputType);+ const supportsSendButton = inputTypeSupportsSendButton(inputType);+ const readonly = options.readonly;+ required = required || options.required;+ const comfortable = options.comfortable;+ const resizeVertical = options.resizeVertical;+ const inputRef: Ref<OrVaadinInput> = createRef();++ const templateFunction: ValueInputTemplateFunction = (value, focused, loading, sending, _error, helperText) => {++ const disabled = options.disabled || loading || sending;+ const label = supportsLabel ? options.label : undefined;+ const inputStyle = styles ? styleMap(styles) : undefined;++ const onValueChange = (ev: Event) => {+ ev.stopPropagation();+ const elem = ev.currentTarget as OrVaadinInput | undefined;+ if (elem?.checkValidity()) {+ const doRemoteUpdate = (!OrVaadinInput.CHANGE_EVENTS.has(inputType) || (OrVaadinInput.CHANGE_EVENTS.get(inputType) === ev.type));+ valueChangeNotifier(valueConverter?.(elem.nativeValue) ?? elem.nativeValue, doRemoteUpdate);+ }+ };++ if (supportsVaadinInput(inputType)) {++ // or-vaadin-checkbox has multiple states (like indeterminate), so it uses the 'checked' HTML attribute instead of 'value'.+ let checked = false;+ if (inputType === InputType.CHECKBOX) {+ checked = Boolean(value);+ value = undefined;+ }++ return html`+ <or-vaadin-input ${ref(inputRef)} id="input" style="${ifDefined(inputStyle)}" type=${ifDefined(inputType)}+ label=${ifDefined(label)} value=${ifDefined(value)} ?checked="${checked}" pattern=${ifDefined(pattern)}+ min=${ifDefined(min)} max=${ifDefined(max)} ?multiple=${multiple} .format=${ifDefined(format)}+ ?autofocus=${focused} ?required=${required} ?readonly=${readonly} ?disabled=${disabled}+ .items=${ifDefined(selectOptions)} step=${ifDefined(step)}+ helper-text="${ifDefined(helperText)}" ?resizeVertical="${resizeVertical}"+ ?rounded="${options.rounded}" ?outlined="${options.outlined}"+ @change="${onValueChange}"+ @submit="${onValueChange}"+ ></or-vaadin-input>+ `;+ } else {+ // Fallback code to use deprecated or-mwc-input. This should be removed in the future, once all input types are supported and mapped.+ // Be aware: this function only creates the template, so it does not import or-mwc-input by default.+ return html`+ <or-mwc-input ${ref(inputRef)} id="input" style="${styleMap(styles)}" .type="${inputType}" .label="${label}" .value="${value}" .pattern="${pattern}"+ .min="${min}" .max="${max}" .format="${format}" .focused="${focused}" .required="${required}" .multiple="${multiple}"+ .options="${selectOptions}" .comfortable="${comfortable}" .readonly="${readonly}" .disabled="${disabled}" .step="${step}"+ .helperText="${helperText}" .helperPersistent="${true}" .resizeVertical="${resizeVertical}"+ .rounded="${options.rounded}" .outlined="${options.outlined}"+ @or-mwc-input-changed="${(e: CustomEvent) => {+ e.stopPropagation();+ valueChangeNotifier(valueConverter ? valueConverter(e.detail.value) : e.detail.value);+ }}"+ ></or-mwc-input>+ `;+ }+ };++ return {+ templateFunction: templateFunction,+ supportsHelperText: supportsHelperText,+ supportsSendButton: supportsSendButton,+ supportsLabel: supportsLabel,+ validator: () => {+ if (!inputRef.value) {+ return false;+ }+ return inputRef.value.checkValidity();+ }+ };+};diff --git a/ui/component/or-vaadin-components/stories/or-vaadin-textfield.stories.ts b/ui/component/or-vaadin-components/stories/or-vaadin-textfield.stories.tsnew file mode 100644index 000000000..afe68781d--- /dev/null+++ b/ui/component/or-vaadin-components/stories/or-vaadin-textfield.stories.ts@@ -0,0 +1,61 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+import {setCustomElementsManifest, type Meta, type StoryObj } from "@storybook/web-components";+import {getStorybookHelpers} from "@wc-toolkit/storybook-helpers";+import customElements from "../custom-elements.json" with { type: "json" };+import packageJson from "../package.json" with { type: "json" };+import "../src/or-vaadin-textfield";++const tagName = "or-vaadin-textfield";+type Story = StoryObj;+setCustomElementsManifest(customElements);++const { events, args, argTypes, template } = getStorybookHelpers(tagName);++const meta: Meta = {+ title: "Playground/or-vaadin-components/textfield",+ component: tagName,+ args: args,+ argTypes: argTypes,+ render: storyArgs => template(storyArgs),+ excludeStories: /^[a-z].*/,+ parameters: {+ actions: {+ handles: events+ },+ docs: {+ subtitle: `<${tagName}>`,+ description: "Text Field allows users to enter text. Prefix and suffix components, such as icons, are also supported."+ }+ }+};++export const Primary: Story = {+ args: {+ label: "Organization",+ value: "OpenRemote"+ }+};++export const examples: Story[] = [];++export {customElements, packageJson};++export default meta;diff --git a/ui/component/or-vaadin-components/tsconfig.json b/ui/component/or-vaadin-components/tsconfig.jsonnew file mode 100644index 000000000..e7c88a1ec--- /dev/null+++ b/ui/component/or-vaadin-components/tsconfig.json@@ -0,0 +1,13 @@+{+ "extends": "../../tsconfig",+ "compilerOptions": {+ "outDir": "./lib",+ "rootDir": "src"+ },+ "include": [+ "./src"+ ],+ "references": [+ { "path": "../core" }+ ]+}diff --git a/ui/component/rest/package.json b/ui/component/rest/package.jsonindex 078e1ada4..b5a28b30e 100644--- a/ui/component/rest/package.json+++ b/ui/component/rest/package.json@@ -1,6 +1,6 @@{"name": "@openremote/rest",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "OpenRemote 3.x REST API","main": "dist/umd/index.bundle.js","module": "lib/index.js",diff --git a/ui/component/theme/README.md b/ui/component/theme/README.mdnew file mode 100644index 000000000..d1cd4607c--- /dev/null+++ b/ui/component/theme/README.md@@ -0,0 +1,37 @@+# @openremote/theme+[![NPM Version][npm-image]][npm-url]++This is a package that contains CSS files used for styling OpenRemote components and apps.+Defined CSS variables like `--or-color-primary` and `--or-color-text-primary` can be used to customize the look and feel of the OpenRemote components.+Currently, only 1 theme ("default") is provided, but can be expanded upon in the future.+Every theme is expected to have a light and dark counterpart.++## Install+```bash+npm i @openremote/theme+yarn add @openremote/theme+```++## Usage++### Using CSS+```css+@import "@openremote/theme/default.css";+```+### Using JavaScript / TypeScript:+Note: using the `<style>` tag is an example here. Please check the documentation of your JavaScript bundler for proper installation of CSS files.+```typescript+import themeCss from "@openremote/theme/default.css";++// Apply theme to the app+const style = document.createElement("style");+style.id = "orDefaultTheme";+style.textContent = themeCss;+document.head.appendChild(style);+```++## License+[GNU AGPL](https://www.gnu.org/licenses/agpl-3.0.en.html)++[npm-image]: https://img.shields.io/npm/v/@openremote/theme.svg+[npm-url]: https://npmjs.org/package/@openremote/themediff --git a/ui/component/theme/build.gradle b/ui/component/theme/build.gradlenew file mode 100644index 000000000..acf26254b--- /dev/null+++ b/ui/component/theme/build.gradle@@ -0,0 +1,16 @@+buildDir = "dist"++tasks.register('clean') {+ doLast {+ delete "dist"+ delete "lib"+ }+}++tasks.register('prepareUi') {+ dependsOn clean, npmPrepare+}++tasks.register('publishUi') {+ dependsOn clean, npmPublish+}diff --git a/ui/component/theme/package.json b/ui/component/theme/package.jsonnew file mode 100644index 000000000..a60df6b1a--- /dev/null+++ b/ui/component/theme/package.json@@ -0,0 +1,22 @@+{+ "name": "@openremote/theme",+ "version": "1.14.0-snapshot",+ "description": "CSS themes for OpenRemote components",+ "main": "src/index.css",+ "module": "src/index.css",+ "types": "src/index.d.ts",+ "exports": {+ ".": "./src/index.css",+ "./*.css": "./src/*.css",+ "./*": "./*"+ },+ "scripts": {+ "test": "echo \"No tests\" && exit 0"+ },+ "author": "OpenRemote",+ "repository": "https://github.com/openremote/openremote",+ "license": "AGPL-3.0-or-later",+ "dependencies": {+ "@vaadin/vaadin-lumo-styles": "~25.0.1"+ }+}diff --git a/ui/component/theme/rspack.config.js b/ui/component/theme/rspack.config.jsnew file mode 100644index 000000000..2dd010151--- /dev/null+++ b/ui/component/theme/rspack.config.js@@ -0,0 +1,8 @@+export default {+ experiments: {+ css: true+ },+ resolve: {+ extensions: ['.css']+ }+}diff --git a/ui/component/theme/src/default.css b/ui/component/theme/src/default.cssnew file mode 100644index 000000000..ab6381891--- /dev/null+++ b/ui/component/theme/src/default.css@@ -0,0 +1,168 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+@import "@vaadin/vaadin-lumo-styles/lumo.css";++:root[theme~="dark"] {++ /* Dark theme - Base colors */+ --or-color-base: hsla(120, 20%, 1%);+ --or-color-base-5pct: hsla(120, 6%, 14%);++ /* Dark theme - Grayscale colors */+ --or-color-contrast-5pct: hsla(120, 9%, 80%, 0.06);+ --or-color-contrast-10pct: hsla(120, 10%, 80%, 0.14);+ --or-color-contrast-20pct: hsla(120, 10%, 80%, 0.23);+ --or-color-contrast-30pct: hsla(120, 10%, 80%, 0.32);+ --or-color-contrast-40pct: hsla(120, 10%, 80%, 0.41);+ --or-color-contrast-50pct: hsla(120, 10%, 80%, 0.5);+ --or-color-contrast-60pct: hsla(120, 10%, 80%, 0.58);+ --or-color-contrast-70pct: hsla(120, 10%, 80%, 0.69);+ --or-color-contrast-80pct: hsla(120, 10%, 80%, 0.8);+ --or-color-contrast-90pct: hsla(120, 10%, 80%, 0.9);+ --or-color-contrast: hsl(120, 10%, 90%);++ /* Dark theme - Text colors */+ --or-color-text-primary: hsl(117, 44%, 46%);+ --or-color-text-error: hsl(3, 100%, 80%);+ --or-color-text-warning: hsl(43, 99%, 63%);+ --or-color-text-success: hsl(145, 85%, 46%);++ --or-color-text-heading: hsl(120, 20%, 99%);+ --or-color-text-body: hsla(120, 20%, 99%, 0.9);+ --or-color-text-secondary: hsla(120, 20%, 99%, 0.69);+ --or-color-text-tertiary: hsla(120, 20%, 99%, 0.5);+ --or-color-text-disabled: hsla(120, 20%, 99%, 0.32);++ /* Dark theme - Primary colors */+ --or-color-primary: hsl(117, 44%, 46%);+ --or-color-primary-50pct: hsla(117, 44%, 46%, 0.76);+ --or-color-primary-10pct: hsla(117, 44%, 46%, 0.13);+ --or-color-primary-contrast: hsl(0, 0%, 100%);++ /* Dark theme - Error colors */+ --or-color-error: hsl(3, 79%, 49%);+ --or-color-error-50pct: hsla(3, 72%, 62%, 0.5);+ --or-color-error-10pct: hsla(3, 75%, 62%, 0.14);+ --or-color-error-contrast: hsl(0, 0%, 100%);++ /* Dark theme - Warning colors */+ --or-color-warning: hsl(43, 100%, 48%);+ --or-color-warning-10pct: hsla(40, 100%, 50%, 0.2);+ --or-color-warning-contrast: hsla(214, 33%, 13%, 0.9);++ /* Dark theme - Success colors */+ --or-color-success: hsl(145, 72%, 30%);+ --or-color-success-50pct: hsla(145, 92%, 51%, 0.5);+ --or-color-success-10pct: hsla(145, 92%, 51%, 0.1);+ --or-color-success-contrast: hsl(0, 0%, 100%);+}++:root {++ /* Light theme - Base colors */+ --or-color-base: hsl(0, 0%, 100%);+ --or-color-base-5pct: hsla(118, 10%, 25%, 0.16);++ /* Light theme - Grayscale colors */+ --or-color-contrast-5pct: hsla(117, 10%, 25%, 0.05);+ --or-color-contrast-10pct: hsla(118, 10%, 25%, 0.1);+ --or-color-contrast-20pct: hsla(118, 10%, 25%, 0.16);+ --or-color-contrast-30pct: hsla(118, 10%, 25%, 0.26);+ --or-color-contrast-40pct: hsla(118, 10%, 25%, 0.38);+ --or-color-contrast-50pct: hsla(118, 10%, 25%, 0.52);+ --or-color-contrast-60pct: hsla(118, 10%, 25%, 0.6);+ --or-color-contrast-70pct: hsla(120, 10%, 15%, 0.69);+ --or-color-contrast-80pct: hsla(120, 14%, 15%, 0.83);+ --or-color-contrast-90pct: hsla(118, 14%, 15%, 0.94);+ --or-color-contrast: hsl(118, 11%, 13%);++ /* Light theme - Text colors */+ --or-color-text-primary: hsl(117, 44%, 46%);+ --or-color-text-error: hsl(3, 89%, 42%);+ --or-color-text-warning: hsl(29, 80%, 33%);+ --or-color-text-success: hsl(145, 85%, 25%);++ --or-color-text-heading: hsl(120, 20%, 1%);+ --or-color-text-body: hsla(120, 20%, 1%, 0.94);+ --or-color-text-secondary: hsla(120, 6%, 14%, 0.69);+ --or-color-text-tertiary: hsla(120, 6%, 14%, 0.52);+ --or-color-text-disabled: hsla(120, 6%, 14%, 0.26);++ /* Light theme - Primary colors */+ --or-color-primary: hsl(117, 44%, 46%);+ --or-color-primary-50pct: hsla(117, 44%, 46%, 0.76);+ --or-color-primary-10pct: hsla(117, 44%, 46%, 0.13);+ --or-color-primary-contrast: hsl(0, 0%, 100%);++ /* Light theme - Error colors */+ --or-color-error: hsl(3, 85%, 48%);+ --or-color-error-50pct: hsla(3, 85%, 49%, 0.5);+ --or-color-error-10pct: hsla(3, 85%, 49%, 0.1);+ --or-color-error-contrast: hsl(0, 0%, 100%);++ /* Light theme - Warning colors */+ --or-color-warning: hsl(48, 100%, 50%);+ --or-color-warning-10pct: hsla(48, 100%, 50%, 0.25);+ --or-color-warning-contrast: hsla(213, 40%, 16%, 0.94);++ /* Light theme - Success colors */+ --or-color-success: hsl(145, 72%, 30%);+ --or-color-success-50pct: hsla(145, 72%, 31%, 0.5);+ --or-color-success-10pct: hsla(145, 72%, 31%, 0.1);+ --or-color-success-contrast: hsl(0, 0%, 100%);++ /* Vaadin colors */+ --lumo-base-color: var(--or-color-base);+ --lumo-contrast-5pct: var(--or-color-contrast-5pct);+ --lumo-contrast-10pct: var(--or-color-contrast-10pct);+ --lumo-contrast-20pct: var(--or-color-contrast-20pct);+ --lumo-contrast-30pct: var(--or-color-contrast-30pct);+ --lumo-contrast-40pct: var(--or-color-contrast-40pct);+ --lumo-contrast-50pct: var(--or-color-contrast-50pct);+ --lumo-contrast-60pct: var(--or-color-contrast-60pct);+ --lumo-contrast-70pct: var(--or-color-contrast-70pct);+ --lumo-contrast-80pct: var(--or-color-contrast-80pct);+ --lumo-contrast-90pct: var(--or-color-contrast-90pct);+ --lumo-contrast: var(--or-color-contrast);+ --lumo-primary-color-10pct: var(--or-color-primary-10pct);+ --lumo-primary-color-50pct: var(--or-color-primary-50pct);+ --lumo-primary-color: var(--or-color-primary);+ --lumo-primary-text-color: var(--or-color-text-primary);+ --lumo-primary-contrast-color: var(--or-color-primary-contrast);+ --lumo-error-color-10pct: var(--or-color-error-10pct);+ --lumo-error-color-50pct: var(--or-color-error-50pct);+ --lumo-error-color: var(--or-color-error);+ --lumo-error-text-color: var(--or-color-text-error);+ --lumo-error-contrast-color: var(--or-color-error-contrast);+ --lumo-warning-color-10pct: var(--or-color-warning-10pct);+ --lumo-warning-color: var(--or-color-warning);+ --lumo-warning-text-color: var(--or-color-text-warning);+ --lumo-warning-contrast-color: var(--or-color-warning-contrast);+ --lumo-success-color-10pct: var(--or-color-success-10pct);+ --lumo-success-color-50pct: var(--or-color-success-50pct);+ --lumo-success-color: var(--or-color-success);+ --lumo-success-text-color: var(--or-color-text-success);+ --lumo-success-contrast-color: var(--or-color-success-contrast);+ --lumo-header-text-color: var(--or-color-text-heading);+ --lumo-body-text-color: var(--or-color-text-body);+ --lumo-secondary-text-color: var(--or-color-text-secondary);+ --lumo-tertiary-text-color: var(--or-color-text-tertiary);+ --lumo-disabled-text-color: var(--or-color-text-disabled);+}diff --git a/ui/component/theme/src/index.css b/ui/component/theme/src/index.cssnew file mode 100644index 000000000..9559b710b--- /dev/null+++ b/ui/component/theme/src/index.css@@ -0,0 +1,20 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+@import "./default.css";diff --git a/ui/component/theme/src/index.d.ts b/ui/component/theme/src/index.d.tsnew file mode 100644index 000000000..ee2478e1f--- /dev/null+++ b/ui/component/theme/src/index.d.ts@@ -0,0 +1,35 @@+/*+ * Copyright 2025, OpenRemote Inc.+ *+ * See the CONTRIBUTORS.txt file in the distribution for a+ * full listing of individual contributors.+ *+ * This program is free software: you can redistribute it and/or modify+ * it under the terms of the GNU Affero General Public License as+ * published by the Free Software Foundation, either version 3 of the+ * License, or (at your option) any later version.+ *+ * This program is distributed in the hope that it will be useful,+ * but WITHOUT ANY WARRANTY; without even the implied warranty of+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the+ * GNU Affero General Public License for more details.+ *+ * You should have received a copy of the GNU Affero General Public License+ * along with this program. If not, see <http://www.gnu.org/licenses/>.+ */+// CSS modules+type CSSModuleClasses = { readonly [key: string]: string };++declare module "*.module.css" {+ const classes: CSSModuleClasses;+ export default classes;+}++// CSS+declare module "*.css" {+ /**+ * @deprecated Use `import style from './style.css?inline'` instead.+ */+ const css: string;+ export default css;+}diff --git a/ui/demo/demo-core/package.json b/ui/demo/demo-core/package.jsonindex b4372e3d5..674e479b3 100644--- a/ui/demo/demo-core/package.json+++ b/ui/demo/demo-core/package.json@@ -1,6 +1,6 @@{"name": "@openremote/demo-core",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Demo","private": true,"scripts": {diff --git a/ui/demo/demo-rest/package.json b/ui/demo/demo-rest/package.jsonindex de42350e6..a2fb3ce75 100644--- a/ui/demo/demo-rest/package.json+++ b/ui/demo/demo-rest/package.json@@ -1,6 +1,6 @@{"name": "@openremote/demo-rest",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Demo","private": true,"scripts": {diff --git a/ui/knip.jsonc b/ui/knip.jsoncindex e700dcac8..025fc9e92 100644--- a/ui/knip.jsonc+++ b/ui/knip.jsonc@@ -12,7 +12,8 @@"@types/react", // Required by mdx which is used in Storybook"@types/mapbox", // Global types under the L namespace (no direct import)"@webcomponents/webcomponentsjs", // Imported through index.html files for apps- "@types/offscreencanvas" // Referenced in the tsconfig file+ "@types/offscreencanvas", // Referenced in the tsconfig file+ "@vaadin/vaadin-lumo-styles" // Only imports CSS files],"ignoreUnresolved": ["css-loader|ts-loader", // rspack.config.js files depend on the webpack config which uses css and ts-loaders, however these can't be resolved by Knip somehow.diff --git a/ui/util/package.json b/ui/util/package.jsonindex 053dc0791..37d403ef0 100644--- a/ui/util/package.json+++ b/ui/util/package.json@@ -1,6 +1,6 @@{"name": "@openremote/util",- "version": "1.10.0-snapshot",+ "version": "1.14.0-snapshot","description": "Build Util","author": "OpenRemote","main": "webpack.util.js",diff --git a/yarn.lock b/yarn.lockindex ae82e9ede..d78bf03d6 100644--- a/yarn.lock+++ b/yarn.lock@@ -1759,6 +1759,13 @@ __metadata:languageName: nodelinkType: hard+"@open-wc/dedupe-mixin@npm:^1.3.0":+ version: 1.4.0+ resolution: "@open-wc/dedupe-mixin@npm:1.4.0"+ checksum: 10c0/22a1362c358b5f011e8f1b8923ad3f2287f493a7d016feeea82cae8df9357c7ebf06f7e7e2c70d9ec4bc214361335eead2ca27767d877c253544db2462fb73e5+ languageName: node+ linkType: hard+"@openremote/core@workspace:*, @openremote/core@workspace:ui/component/core":version: 0.0.0-use.localresolution: "@openremote/core@workspace:ui/component/core"@@ -2329,6 +2336,23 @@ __metadata:languageName: unknownlinkType: soft+"@openremote/or-vaadin-components@workspace:ui/component/or-vaadin-components":+ version: 0.0.0-use.local+ resolution: "@openremote/or-vaadin-components@workspace:ui/component/or-vaadin-components"+ dependencies:+ "@openremote/core": "workspace:*"+ "@openremote/model": "workspace:*"+ "@vaadin/checkbox": "npm:~25.0.1"+ "@vaadin/dialog": "npm:~25.0.1"+ "@vaadin/number-field": "npm:~25.0.1"+ "@vaadin/password-field": "npm:~25.0.1"+ "@vaadin/select": "npm:~25.0.1"+ "@vaadin/text-area": "npm:~25.0.1"+ "@vaadin/text-field": "npm:~25.0.1"+ lit: "npm:^3.3.1"+ languageName: unknown+ linkType: soft+"@openremote/rest@workspace:*, @openremote/rest@workspace:ui/component/rest":version: 0.0.0-use.localresolution: "@openremote/rest@workspace:ui/component/rest"@@ -2377,6 +2401,14 @@ __metadata:languageName: unknownlinkType: soft+"@openremote/theme@workspace:ui/component/theme":+ version: 0.0.0-use.local+ resolution: "@openremote/theme@workspace:ui/component/theme"+ dependencies:+ "@vaadin/vaadin-lumo-styles": "npm:~25.0.1"+ languageName: unknown+ linkType: soft+"@openremote/util@workspace:*, @openremote/util@workspace:ui/util":version: 0.0.0-use.localresolution: "@openremote/util@workspace:ui/util"@@ -3675,6 +3707,273 @@ __metadata:languageName: nodelinkType: hard+"@vaadin/a11y-base@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/a11y-base@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/component-base": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/6cd7901c004e71640cc14f84b09e7f98b3f2849dfd5ddcc970dcf320c536ba036f53b68f492710a63a3a64b8e5af9fa54e99b4911bc94606df2b3220b60db623+ languageName: node+ linkType: hard++"@vaadin/button@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/button@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/f504382b2ce0538cd09f057db9fc6debaee0c84b4f5efdd17cf2a5a452bfb850f16c1b51aae2971e8e8131650bbbd3d1ff6b5b3d4d0aade387a31236bc55dd5c+ languageName: node+ linkType: hard++"@vaadin/checkbox@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/checkbox@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/field-base": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/b12f1324c7a2136c82e3c754792531fc628e3ba0072238a4ee9513a447742a44d7d38f51dcb0e1fc911459df5c246baa3b3f8de66b76bb7191462afd1f4f4118+ languageName: node+ linkType: hard++"@vaadin/component-base@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/component-base@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/vaadin-development-mode-detector": "npm:^2.0.0"+ "@vaadin/vaadin-usage-statistics": "npm:^2.1.0"+ lit: "npm:^3.0.0"+ checksum: 10c0/063a7f5300f9c20040471fa12df04b452cf36e3b618499a7e1008f906f81304729b8b6ce3ae630411af9f0c6addfc7edeee834568d058b06819192f21ef25674+ languageName: node+ linkType: hard++"@vaadin/dialog@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/dialog@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/lit-renderer": "npm:~25.0.1"+ "@vaadin/overlay": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/ad3cfcc53808bcc5dfb27733de92f8849958a8eeb99a59d9f232b647b8620b6166c492eca5bae7622b07db3125edd56c34a6156cdc7d323ed13f44e0995c1de6+ languageName: node+ linkType: hard++"@vaadin/field-base@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/field-base@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/0b6103e38e48b7bf0b382de949c97a5cf925cc70f81c7f90535565587d92d6d2b3d627c2beac7b9ae89dba86edac8129338321618b24784279303148ef69de4d+ languageName: node+ linkType: hard++"@vaadin/icon@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/icon@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/8a87e7f64082d79fa68522ed97f5a4c4fdb1bfdbc66745a5d2fbef75183c105b9398e4db021f3f42f137e997fe96abecdf33531df7f01af86fac29869d2dc4d8+ languageName: node+ linkType: hard++"@vaadin/input-container@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/input-container@npm:25.0.1"+ dependencies:+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/9cd23edb43ac62ff2564f5a6cfff1cca96cdc650314403caa020e11c62776e263d08b92ee189f2052d2a1f56d9f569e4d87c162afb1c5028b52ad0e59432aba3+ languageName: node+ linkType: hard++"@vaadin/item@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/item@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/b65c918824dbfea39f4aac8c47629dc0cc15cc1f3c4cd82f3aa3a65b2df5a3248bfaee7acc72fb38384fffc1d2e439745248cf4abe68df666d80000912ade0d3+ languageName: node+ linkType: hard++"@vaadin/list-box@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/list-box@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/item": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/588192586083d405359af41ea230b77679bcb43cf83d30c19bdde32fbe5ff3f4e811dcb127ff02bfaee8185d7aaf70004dbc2e455d9b72da5f5bfa6d104ed922+ languageName: node+ linkType: hard++"@vaadin/lit-renderer@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/lit-renderer@npm:25.0.1"+ dependencies:+ lit: "npm:^3.0.0"+ checksum: 10c0/94b87cd8664374aa214ce1f38e0ea0a8118a7dbfc03801f589f0cfabaa08618030449f5e72701039bc4a7c2915c0dfb7c0fb40ba1d65383917fdd42106ea977c+ languageName: node+ linkType: hard++"@vaadin/number-field@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/number-field@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/field-base": "npm:~25.0.1"+ "@vaadin/input-container": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/69bd78ae24106bdb688269de755eb3adc7c766aabcfaabf50489f77cce3449a9842e30d114598ba787089dc28d7f97fa0b0dcb3568dde7234a58c76b2492b78d+ languageName: node+ linkType: hard++"@vaadin/overlay@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/overlay@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/43cd228860795916f4aa58b4634b083a2606cc69e40928cf692d8c35eaabbf057913fbed7d50a846690eab50f6fff66680afcf25e64cad37380c88926b5dfb67+ languageName: node+ linkType: hard++"@vaadin/password-field@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/password-field@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/button": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/field-base": "npm:~25.0.1"+ "@vaadin/text-field": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/dc30bd8526affe55554a5d38ccebbbff485683e9b496477cea81bd6abd82eba3ef3108645c2403a60fee4a6b1d6baf54c77dbb69ad05c4b9de4dd427420d9c40+ languageName: node+ linkType: hard++"@vaadin/select@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/select@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/button": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/field-base": "npm:~25.0.1"+ "@vaadin/input-container": "npm:~25.0.1"+ "@vaadin/item": "npm:~25.0.1"+ "@vaadin/list-box": "npm:~25.0.1"+ "@vaadin/lit-renderer": "npm:~25.0.1"+ "@vaadin/overlay": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/b62841f4c1e69fe16eee5b4d70cd1c19963a8f9f2de8153a4bec0f03d8510bdd4cd37c3e2772e4142820b0911dbbefe2bbf6aaa8a12419debadb1adb7169eed1+ languageName: node+ linkType: hard++"@vaadin/text-area@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/text-area@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/field-base": "npm:~25.0.1"+ "@vaadin/input-container": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/41271866defdcb4e62aa11b37f50864e55fdb798dc989053e94c43a80df6d7980916b5b772f1981e44e0e470ba62e838eaa95e74337f4d4a9ea0463af388bc78+ languageName: node+ linkType: hard++"@vaadin/text-field@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/text-field@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/a11y-base": "npm:~25.0.1"+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/field-base": "npm:~25.0.1"+ "@vaadin/input-container": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/06fb0deb6ca797dd58fb2d97c1964f0d6d7eceb6386170b6a4330761e5ab9cb10bb724735038d10aa246f0efc8c0d5bd01e6b419ddb0deaab063f9254f749eb6+ languageName: node+ linkType: hard++"@vaadin/vaadin-development-mode-detector@npm:^2.0.0":+ version: 2.0.7+ resolution: "@vaadin/vaadin-development-mode-detector@npm:2.0.7"+ checksum: 10c0/b62f65a60a734932939ee523d854fefb4a568c10787ca82b5d9377b1536249886f5b07eebf56e6e31e1e3da0d6bc32b03b2eba791be12b2420747cf178231032+ languageName: node+ linkType: hard++"@vaadin/vaadin-lumo-styles@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/vaadin-lumo-styles@npm:25.0.1"+ dependencies:+ "@vaadin/component-base": "npm:~25.0.1"+ "@vaadin/icon": "npm:~25.0.1"+ "@vaadin/vaadin-themable-mixin": "npm:~25.0.1"+ checksum: 10c0/4ecce43381dbc8660f2428df5b1a053608411114b3c919c90b7aae3edfdda30d7e2d2de8762ca29152eafec2abea8044e522f47d9d381da6eca868549e095fa4+ languageName: node+ linkType: hard++"@vaadin/vaadin-themable-mixin@npm:~25.0.1":+ version: 25.0.1+ resolution: "@vaadin/vaadin-themable-mixin@npm:25.0.1"+ dependencies:+ "@open-wc/dedupe-mixin": "npm:^1.3.0"+ "@vaadin/component-base": "npm:~25.0.1"+ lit: "npm:^3.0.0"+ checksum: 10c0/4b7dfb7f5c49c8757634ac7bda85daca552ddd8d57ef1f9c0569a345313e02eddd63986e8ac8cae557bf76fcaed1cb390221a7c3f0fcb9a849d865610d8a31f3+ languageName: node+ linkType: hard++"@vaadin/vaadin-usage-statistics@npm:^2.1.0":+ version: 2.1.3+ resolution: "@vaadin/vaadin-usage-statistics@npm:2.1.3"+ dependencies:+ "@vaadin/vaadin-development-mode-detector": "npm:^2.0.0"+ checksum: 10c0/b1f1182cd7d4c03ba99371f70b446c69fda7fd259550de8ed8576df429030ac9c5ab78707ae5dc23cb3d5cab06ae2e74acfaa4a28010d1d50d18c5577e4712fb+ languageName: node+ linkType: hard+"@vitest/expect@npm:3.2.4":version: 3.2.4resolution: "@vitest/expect@npm:3.2.4"@@ -7610,6 +7909,17 @@ __metadata:languageName: nodelinkType: hard+"lit@npm:^3.0.0":+ version: 3.3.2+ resolution: "lit@npm:3.3.2"+ dependencies:+ "@lit/reactive-element": "npm:^2.1.0"+ lit-element: "npm:^4.2.0"+ lit-html: "npm:^3.3.0"+ checksum: 10c0/50563fd9c7bf546f8fdc6a936321b5be581ce440a359b06048ae5d44c1ecf6c38c2ded708e97d36a1ce70da1a7ad569890e40e0fb5ed040ec42d5ed2365f468d+ languageName: node+ linkType: hard+"lit@npm:^3.3.1":version: 3.3.1resolution: "lit@npm:3.3.1"