You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@isis.apache.org by ah...@apache.org on 2022/09/29 09:10:24 UTC

[isis] 01/01: ISIS-3122: adds vega value-type (project stubs)

This is an automated email from the ASF dual-hosted git repository.

ahuber pushed a commit to branch 3122_vega
in repository https://gitbox.apache.org/repos/asf/isis.git

commit 1274f587cc492b06cb44ef0b130cacef6a8b7ca5
Author: Andi Huber <ah...@apache.org>
AuthorDate: Thu Sep 29 11:10:15 2022 +0200

    ISIS-3122: adds vega value-type (project stubs)
---
 .../adoc/modules/ROOT/partials/component-nav.adoc  |   1 +
 valuetypes/pom.xml                                 |  32 +++
 valuetypes/vega/adoc/antora.yml                    |  19 ++
 valuetypes/vega/adoc/modules/asciidoc/nav.adoc     |   4 +
 .../vega/adoc/modules/asciidoc/pages/about.adoc    |   5 +
 .../adoc/modules/asciidoc/partials/module-nav.adoc |   5 +
 valuetypes/vega/applib/pom.xml                     |  44 ++++
 .../vega/applib/src/main/java/module-info.java     |  35 ++++
 .../vega/applib/IsisModuleValVegaApplib.java       |  29 +++
 .../vega/applib/jaxb/VegaJaxbAdapter.java          |  41 ++++
 .../vega/applib/stringify/VegaStringifier.java     |  45 ++++
 .../isis/valuetypes/vega/applib/value/Vega.java    | 118 +++++++++++
 valuetypes/vega/metamodel/pom.xml                  |  44 ++++
 .../vega/metamodel/src/main/java/module-info.java  |  34 +++
 .../vega/metamodel/IsisModuleValVegaMetaModel.java |  35 ++++
 .../metamodel/semantics/VegaValueSemantics.java    | 232 +++++++++++++++++++++
 valuetypes/vega/persistence-jdo/pom.xml            |  58 ++++++
 .../persistence-jdo/src/main/java/module-info.java |  27 +++
 .../jdo/dn/IsisModuleValVegaPersistenceJdoDn.java  |  34 +++
 .../jdo/dn/converters/IsisVegaConverter.java       |  43 ++++
 .../src/main/resources/META-INF/MANIFEST.MF        |   6 +
 .../persistence-jdo/src/main/resources/plugin.xml  |  49 +++++
 valuetypes/vega/persistence-jpa/pom.xml            |  54 +++++
 .../persistence-jpa/src/main/java/module-info.java |  28 +++
 .../jpa/IsisModuleValVegaPersistenceJpa.java       |  41 ++++
 .../jpa/converters/IsisVegaConverter.java          |  43 ++++
 valuetypes/vega/pom.xml                            |  42 ++++
 valuetypes/vega/ui/pom.xml                         |  66 ++++++
 valuetypes/vega/ui/vaadin/pom.xml                  |  42 ++++
 .../vega/ui/vaa/IsisModuleValVegaUiVaa.java        |  33 +++
 .../ui/vaa/components/VegaFieldFactoryVaa.java     |  57 +++++
 .../vega/ui/vaa/components/VegaFieldVaa.java       |  68 ++++++
 valuetypes/vega/ui/wicket/pom.xml                  |  46 ++++
 .../vega/ui/wicket/src/main/java/module-info.java  |  34 +++
 .../vega/ui/wkt/IsisModuleValVegaUiWkt.java        |  37 ++++
 .../vega/ui/wkt/components/VegaComponentWkt.java   |  37 ++++
 .../ui/wkt/components/VegaPanelFactoriesWkt.java   |  76 +++++++
 37 files changed, 1644 insertions(+)

diff --git a/valuetypes/adoc/modules/ROOT/partials/component-nav.adoc b/valuetypes/adoc/modules/ROOT/partials/component-nav.adoc
index 7c1f3b5a06..afa48db3ba 100644
--- a/valuetypes/adoc/modules/ROOT/partials/component-nav.adoc
+++ b/valuetypes/adoc/modules/ROOT/partials/component-nav.adoc
@@ -6,4 +6,5 @@ include::valuetypes:ROOT:partial$module-nav.adoc[]
 
 include::valuetypes:asciidoc:partial$module-nav.adoc[]
 include::valuetypes:markdown:partial$module-nav.adoc[]
+include::valuetypes:vega:partial$module-nav.adoc[]
 
diff --git a/valuetypes/pom.xml b/valuetypes/pom.xml
index aeb9773b46..e01d579fde 100644
--- a/valuetypes/pom.xml
+++ b/valuetypes/pom.xml
@@ -128,6 +128,37 @@
 				<artifactId>isis-valuetypes-markdown-persistence-jpa</artifactId>
 				<version>2.0.0-SNAPSHOT</version>
 			</dependency>
+			
+			<dependency>
+				<groupId>org.apache.isis.valuetypes</groupId>
+				<artifactId>isis-valuetypes-vega-applib</artifactId>
+				<version>2.0.0-SNAPSHOT</version>
+			</dependency>
+			<dependency>
+				<groupId>org.apache.isis.valuetypes</groupId>
+				<artifactId>isis-valuetypes-vega-metamodel</artifactId>
+				<version>2.0.0-SNAPSHOT</version>
+			</dependency>
+			<dependency>
+				<groupId>org.apache.isis.valuetypes</groupId>
+				<artifactId>isis-valuetypes-vega-ui-vaa</artifactId>
+				<version>2.0.0-SNAPSHOT</version>
+			</dependency>
+			<dependency>
+				<groupId>org.apache.isis.valuetypes</groupId>
+				<artifactId>isis-valuetypes-vega-ui-wkt</artifactId>
+				<version>2.0.0-SNAPSHOT</version>
+			</dependency>
+			<dependency>
+				<groupId>org.apache.isis.valuetypes</groupId>
+				<artifactId>isis-valuetypes-vega-persistence-jdo</artifactId>
+				<version>2.0.0-SNAPSHOT</version>
+			</dependency>
+			<dependency>
+				<groupId>org.apache.isis.valuetypes</groupId>
+				<artifactId>isis-valuetypes-vega-persistence-jpa</artifactId>
+				<version>2.0.0-SNAPSHOT</version>
+			</dependency>
 
 			<!-- testing -->
 
@@ -152,6 +183,7 @@
 		<module>jodatime</module>
 		<module>asciidoc</module>
 		<module>markdown</module>
+		<module>vega</module>
 	</modules>
 
 	<profiles>
diff --git a/valuetypes/vega/adoc/antora.yml b/valuetypes/vega/adoc/antora.yml
new file mode 100644
index 0000000000..0f50856e63
--- /dev/null
+++ b/valuetypes/vega/adoc/antora.yml
@@ -0,0 +1,19 @@
+#  Licensed to the Apache Software Foundation (ASF) under one
+#  or more contributor license agreements.  See the NOTICE file
+#  distributed with this work for additional information
+#  regarding copyright ownership.  The ASF licenses this file
+#  to you under the Apache License, Version 2.0 (the
+#  "License"); you may not use this file except in compliance
+#  with the License.  You may obtain a copy of the License at
+#
+#    http://www.apache.org/licenses/LICENSE-2.0
+#
+#  Unless required by applicable law or agreed to in writing,
+#  software distributed under the License is distributed on an
+#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+#  KIND, either express or implied.  See the License for the
+#  specific language governing permissions and limitations
+#  under the License.
+
+name: valuetypes
+version: latest
diff --git a/valuetypes/vega/adoc/modules/asciidoc/nav.adoc b/valuetypes/vega/adoc/modules/asciidoc/nav.adoc
new file mode 100644
index 0000000000..ebdb5577b3
--- /dev/null
+++ b/valuetypes/vega/adoc/modules/asciidoc/nav.adoc
@@ -0,0 +1,4 @@
+
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+include::vw:ROOT:partial$component-nav.adoc[]
diff --git a/valuetypes/vega/adoc/modules/asciidoc/pages/about.adoc b/valuetypes/vega/adoc/modules/asciidoc/pages/about.adoc
new file mode 100644
index 0000000000..05693a8e2c
--- /dev/null
+++ b/valuetypes/vega/adoc/modules/asciidoc/pages/about.adoc
@@ -0,0 +1,5 @@
+= Vega Value Type
+
+:Notice: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at. http://www.apache.org/licenses/LICENSE-2.0 . Unless required by applicable law or ag [...]
+
+WARNING: TODO
diff --git a/valuetypes/vega/adoc/modules/asciidoc/partials/module-nav.adoc b/valuetypes/vega/adoc/modules/asciidoc/partials/module-nav.adoc
new file mode 100644
index 0000000000..ae7c19527b
--- /dev/null
+++ b/valuetypes/vega/adoc/modules/asciidoc/partials/module-nav.adoc
@@ -0,0 +1,5 @@
+
+
+
+* xref:valuetypes:asciidoc:about.adoc[Vega]
+
diff --git a/valuetypes/vega/applib/pom.xml b/valuetypes/vega/applib/pom.xml
new file mode 100644
index 0000000000..98bbfcc836
--- /dev/null
+++ b/valuetypes/vega/applib/pom.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
+	license agreements. See the NOTICE file distributed with this work for additional 
+	information regarding copyright ownership. The ASF licenses this file to 
+	you under the Apache License, Version 2.0 (the "License"); you may not use 
+	this file except in compliance with the License. You may obtain a copy of 
+	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
+	by applicable law or agreed to in writing, software distributed under the 
+	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
+	OF ANY KIND, either express or implied. See the License for the specific 
+	language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.isis.valuetypes</groupId>
+		<artifactId>isis-valuetypes-vega</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-valuetypes-vega-applib</artifactId>
+	<name>Apache Isis Val - Vega (applib)</name>
+
+	<properties>
+		<jar-plugin.automaticModuleName>org.apache.isis.valuetypes.vega.applib</jar-plugin.automaticModuleName>
+		<git-plugin.propertiesDir>org/apache/isis/valuetypes/vega/applib</git-plugin.propertiesDir>
+	</properties>
+
+	<dependencies>
+
+		<dependency>
+			<groupId>org.apache.isis.core</groupId>
+			<artifactId>isis-applib</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.isis.commons</groupId>
+			<artifactId>isis-commons</artifactId>
+		</dependency>
+
+	</dependencies>
+
+</project>
diff --git a/valuetypes/vega/applib/src/main/java/module-info.java b/valuetypes/vega/applib/src/main/java/module-info.java
new file mode 100644
index 0000000000..a0fc8955e6
--- /dev/null
+++ b/valuetypes/vega/applib/src/main/java/module-info.java
@@ -0,0 +1,35 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+module org.apache.isis.valuetypes.vega.applib {
+    exports org.apache.isis.valuetypes.vega.applib;
+    exports org.apache.isis.valuetypes.vega.applib.value;
+    exports org.apache.isis.valuetypes.vega.applib.jaxb;
+    exports org.apache.isis.valuetypes.vega.applib.stringify to
+        org.apache.isis.valuetypes.vega.metamodel,
+        org.apache.isis.valuetypes.vega.persistence.jdo,
+        org.apache.isis.valuetypes.vega.persistence.jpa;
+
+    requires java.inject;
+    requires java.xml.bind;
+    requires lombok;
+    requires org.apache.isis.applib;
+    requires org.apache.isis.commons;
+    requires spring.context;
+    requires spring.core;
+}
\ No newline at end of file
diff --git a/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/IsisModuleValVegaApplib.java b/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/IsisModuleValVegaApplib.java
new file mode 100644
index 0000000000..e917031512
--- /dev/null
+++ b/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/IsisModuleValVegaApplib.java
@@ -0,0 +1,29 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.applib;
+
+import org.springframework.context.annotation.Configuration;
+
+/**
+ * @since 2.0 {@index}
+ */
+@Configuration
+public class IsisModuleValVegaApplib {
+    public static final String NAMESPACE = "isis.value.vega";
+}
diff --git a/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/jaxb/VegaJaxbAdapter.java b/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/jaxb/VegaJaxbAdapter.java
new file mode 100644
index 0000000000..d50f49a7db
--- /dev/null
+++ b/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/jaxb/VegaJaxbAdapter.java
@@ -0,0 +1,41 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.applib.jaxb;
+
+import javax.xml.bind.annotation.adapters.XmlAdapter;
+
+import org.apache.isis.valuetypes.vega.applib.stringify.VegaStringifier;
+import org.apache.isis.valuetypes.vega.applib.value.Vega;
+
+/**
+ * @since 2.0 {@index}
+ */
+public final class VegaJaxbAdapter extends XmlAdapter<String, Vega> {
+
+    @Override
+    public Vega unmarshal(final String data) throws Exception {
+        return VegaStringifier.destring(data);
+    }
+
+    @Override
+    public String marshal(final Vega vega) throws Exception {
+        return VegaStringifier.enstring(vega);
+    }
+
+}
diff --git a/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/stringify/VegaStringifier.java b/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/stringify/VegaStringifier.java
new file mode 100644
index 0000000000..6b1a302e2b
--- /dev/null
+++ b/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/stringify/VegaStringifier.java
@@ -0,0 +1,45 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.applib.stringify;
+
+import org.apache.isis.valuetypes.vega.applib.value.Vega;
+
+import lombok.experimental.UtilityClass;
+
+/**
+ * @since 2.0
+ */
+@UtilityClass
+public class VegaStringifier {
+
+    public Vega destring(final String data) {
+        if(data==null) {
+            return null;
+        }
+        return Vega.valueOf(data);
+    }
+
+    public String enstring(final Vega vega)  {
+        if(vega==null) {
+            return null;
+        }
+        return vega.getJson();
+    }
+
+}
diff --git a/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/value/Vega.java b/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/value/Vega.java
new file mode 100644
index 0000000000..2021b8e57e
--- /dev/null
+++ b/valuetypes/vega/applib/src/main/java/org/apache/isis/valuetypes/vega/applib/value/Vega.java
@@ -0,0 +1,118 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.applib.value;
+
+import java.io.Serializable;
+import java.util.Map;
+import java.util.Objects;
+
+import javax.inject.Named;
+import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
+
+import org.springframework.lang.Nullable;
+
+import org.apache.isis.commons.internal.base._Strings;
+import org.apache.isis.commons.internal.resources._Json;
+import org.apache.isis.valuetypes.vega.applib.IsisModuleValVegaApplib;
+import org.apache.isis.valuetypes.vega.applib.jaxb.VegaJaxbAdapter;
+
+import lombok.EqualsAndHashCode;
+import lombok.Getter;
+import lombok.NonNull;
+import lombok.RequiredArgsConstructor;
+import lombok.experimental.Accessors;
+
+/**
+ * Immutable value type holding pre-rendered HTML.
+ *
+ * @since 2.0 {@index}
+ */
+@Named(IsisModuleValVegaApplib.NAMESPACE + ".Vega")
+@org.apache.isis.applib.annotation.Value
+@EqualsAndHashCode
+@XmlJavaTypeAdapter(VegaJaxbAdapter.class)  // for JAXB view model support
+public final class Vega implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    @RequiredArgsConstructor
+    public static enum Schema {
+        NONE(null),
+        VEGA("https://vega.github.io/schema/vega/v5.json"),
+        VEGA_LITE("https://vega.github.io/schema/vega-lite/v5.json");
+
+        public static String key() { return "$schema"; }
+        @Getter @Accessors(fluent = true) private final String value;
+        @NonNull String asEmptyJson() {
+            return this==NONE
+                    ? "{}"
+                    : String.format("{\"%s\": \"%s\"}", key(), value());
+        }
+        /**
+         * parses the json input for schema specification
+         */
+        @NonNull static Schema valueOfJson(final @Nullable String json) {
+            return _Json.readJson(Map.class, json).getValue()
+            .map(map->map.get(key()))
+            .map(schemaValue->{
+                for(var schema:Schema.values()) {
+                    if(schemaValue.equals(schema.value())) {
+                        return schema;
+                    }
+                }
+                return null;
+            })
+            .orElse(NONE);
+        }
+    }
+
+    public static Vega valueOf(final @Nullable String json) {
+        return new Vega(Schema.valueOfJson(json), json);
+    }
+
+    @Getter private final Schema schema;
+    @Getter private final String json;
+
+    public Vega() {
+        this(Schema.NONE, null);
+    }
+
+    public Vega(final @NonNull Schema schema, final @Nullable String json) {
+        this.schema = schema;
+        this.json = _Strings.isNotEmpty(json)
+                ? json
+                : schema.asEmptyJson();
+    }
+
+    public String asHtml() {
+        return "Vega.asHtml()"; //TODO[ISIS-3122]
+    }
+
+    public boolean isEqualTo(final Vega other) {
+        return Objects.equals(this.getJson(), other!=null ? other.getJson() : null);
+    }
+
+    @Override
+    public String toString() {
+        return String.format("Vega[schema=%s,length=%d]",
+                schema.name(),
+                json.length());
+    }
+
+}
diff --git a/valuetypes/vega/metamodel/pom.xml b/valuetypes/vega/metamodel/pom.xml
new file mode 100644
index 0000000000..86e456c8ed
--- /dev/null
+++ b/valuetypes/vega/metamodel/pom.xml
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
+	license agreements. See the NOTICE file distributed with this work for additional 
+	information regarding copyright ownership. The ASF licenses this file to 
+	you under the Apache License, Version 2.0 (the "License"); you may not use 
+	this file except in compliance with the License. You may obtain a copy of 
+	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
+	by applicable law or agreed to in writing, software distributed under the 
+	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
+	OF ANY KIND, either express or implied. See the License for the specific 
+	language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.isis.valuetypes</groupId>
+		<artifactId>isis-valuetypes-vega</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-valuetypes-vega-metamodel</artifactId>
+	<name>Apache Isis Val - Vega (MetaModel)</name>
+
+	<properties>
+		<jar-plugin.automaticModuleName>org.apache.isis.valuetypes.vega.metamodel</jar-plugin.automaticModuleName>
+		<git-plugin.propertiesDir>org/apache/isis/valuetypes/vega/metamodel</git-plugin.propertiesDir>
+	</properties>
+
+	<dependencies>
+
+		<dependency>
+			<groupId>org.apache.isis.valuetypes</groupId>
+			<artifactId>isis-valuetypes-vega-applib</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.isis.core</groupId>
+			<artifactId>isis-core-metamodel</artifactId>
+		</dependency>
+
+	</dependencies>
+
+</project>
diff --git a/valuetypes/vega/metamodel/src/main/java/module-info.java b/valuetypes/vega/metamodel/src/main/java/module-info.java
new file mode 100644
index 0000000000..c873cad31b
--- /dev/null
+++ b/valuetypes/vega/metamodel/src/main/java/module-info.java
@@ -0,0 +1,34 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+module org.apache.isis.valuetypes.vega.metamodel {
+    exports org.apache.isis.valuetypes.vega.metamodel;
+    exports org.apache.isis.valuetypes.vega.metamodel.semantics;
+
+    requires java.inject;
+    requires lombok;
+    requires org.apache.isis.applib;
+    requires org.apache.isis.commons;
+    requires org.apache.isis.core.config;
+    requires org.apache.isis.core.metamodel;
+    requires org.apache.isis.schema;
+    requires org.apache.isis.valuetypes.vega.applib;
+    requires spring.beans;
+    requires spring.context;
+    requires spring.core;
+}
\ No newline at end of file
diff --git a/valuetypes/vega/metamodel/src/main/java/org/apache/isis/valuetypes/vega/metamodel/IsisModuleValVegaMetaModel.java b/valuetypes/vega/metamodel/src/main/java/org/apache/isis/valuetypes/vega/metamodel/IsisModuleValVegaMetaModel.java
new file mode 100644
index 0000000000..0053a0961c
--- /dev/null
+++ b/valuetypes/vega/metamodel/src/main/java/org/apache/isis/valuetypes/vega/metamodel/IsisModuleValVegaMetaModel.java
@@ -0,0 +1,35 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.metamodel;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+
+import org.apache.isis.valuetypes.vega.metamodel.semantics.VegaValueSemantics;
+
+/**
+ * @since 2.0 {@index}
+ */
+@Configuration
+@Import({
+        VegaValueSemantics.class,
+})
+public class IsisModuleValVegaMetaModel {
+
+}
diff --git a/valuetypes/vega/metamodel/src/main/java/org/apache/isis/valuetypes/vega/metamodel/semantics/VegaValueSemantics.java b/valuetypes/vega/metamodel/src/main/java/org/apache/isis/valuetypes/vega/metamodel/semantics/VegaValueSemantics.java
new file mode 100644
index 0000000000..38910b122e
--- /dev/null
+++ b/valuetypes/vega/metamodel/src/main/java/org/apache/isis/valuetypes/vega/metamodel/semantics/VegaValueSemantics.java
@@ -0,0 +1,232 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.metamodel.semantics;
+
+import javax.inject.Named;
+
+import org.springframework.stereotype.Component;
+
+import org.apache.isis.applib.value.semantics.DefaultsProvider;
+import org.apache.isis.applib.value.semantics.Parser;
+import org.apache.isis.applib.value.semantics.Renderer;
+import org.apache.isis.applib.value.semantics.ValueDecomposition;
+import org.apache.isis.applib.value.semantics.ValueSemanticsAbstract;
+import org.apache.isis.applib.value.semantics.ValueSemanticsProvider;
+import org.apache.isis.commons.collections.Can;
+import org.apache.isis.schema.common.v2.ValueType;
+import org.apache.isis.valuetypes.vega.applib.IsisModuleValVegaApplib;
+import org.apache.isis.valuetypes.vega.applib.value.Vega;
+
+@Component
+@Named(IsisModuleValVegaApplib.NAMESPACE + ".VegaValueSemantics")
+public class VegaValueSemantics
+extends ValueSemanticsAbstract<Vega>
+implements
+    DefaultsProvider<Vega>,
+    Renderer<Vega>,
+    Parser<Vega> {
+
+    @Override
+    public Class<Vega> getCorrespondingClass() {
+        return Vega.class;
+    }
+
+    @Override
+    public ValueType getSchemaValueType() {
+        return ValueType.STRING;
+    }
+
+    // -- DEFAULTS
+
+    @Override
+    public Vega getDefaultValue() {
+        return new Vega();
+    }
+
+    // -- COMPOSER
+
+    @Override
+    public ValueDecomposition decompose(final Vega value) {
+        return decomposeAsString(value, Vega::getJson, ()->null);
+    }
+
+    @Override
+    public Vega compose(final ValueDecomposition decomposition) {
+        return composeFromString(decomposition, Vega::valueOf, ()->null);
+    }
+
+    // -- RENDERER
+
+    @Override
+    public String titlePresentation(final ValueSemanticsProvider.Context context, final Vega vega) {
+        return renderTitle(vega, Vega::toString);
+    }
+
+    @Override
+    public String htmlPresentation(final ValueSemanticsProvider.Context context, final Vega vega) {
+        return renderHtml(vega, Vega::asHtml);
+    }
+
+    @Override
+    public SyntaxHighlighter syntaxHighlighter() {
+        return SyntaxHighlighter.PRISM_COY;
+    }
+
+    // -- PARSER
+
+    @Override
+    public String parseableTextRepresentation(final ValueSemanticsProvider.Context context, final Vega vega) {
+        return vega!=null ? vega.getJson() : null;
+    }
+
+    @Override
+    public Vega parseTextRepresentation(final ValueSemanticsProvider.Context context, final String json) {
+        return json!=null ? Vega.valueOf(json) : null;
+    }
+
+    @Override
+    public int typicalLength() {
+        return 0;
+    }
+
+    // -- EXAMPLES
+
+    @Override
+    public Can<Vega> getExamples() {
+        return Can.of(
+                Vega.valueOf("{\n"
+                        + "  \"$schema\": \"https://vega.github.io/schema/vega-lite/v5.json\",\n"
+                        + "  \"data\": {\n"
+                        + "    \"values\": [\n"
+                        + "      {\"a\": \"C\", \"b\": 2},\n"
+                        + "      {\"a\": \"C\", \"b\": 7},\n"
+                        + "      {\"a\": \"C\", \"b\": 4},\n"
+                        + "      {\"a\": \"D\", \"b\": 1},\n"
+                        + "      {\"a\": \"D\", \"b\": 2},\n"
+                        + "      {\"a\": \"D\", \"b\": 6},\n"
+                        + "      {\"a\": \"E\", \"b\": 8},\n"
+                        + "      {\"a\": \"E\", \"b\": 4},\n"
+                        + "      {\"a\": \"E\", \"b\": 7}\n"
+                        + "    ]\n"
+                        + "  },\n"
+                        + "  \"mark\": \"point\",\n"
+                        + "  \"encoding\": {\n"
+                        + "    \"x\": {\"field\": \"a\", \"type\": \"nominal\"},\n"
+                        + "    \"y\": {\"field\": \"b\", \"type\": \"quantitative\"}\n"
+                        + "  }\n"
+                        + "}"),
+                Vega.valueOf("{\n"
+                        + "  \"$schema\": \"https://vega.github.io/schema/vega/v5.json\",\n"
+                        + "  \"description\": \"A basic bar chart example, with value labels shown upon mouse hover.\",\n"
+                        + "  \"width\": 400,\n"
+                        + "  \"height\": 200,\n"
+                        + "  \"padding\": 5,\n"
+                        + "\n"
+                        + "  \"data\": [\n"
+                        + "    {\n"
+                        + "      \"name\": \"table\",\n"
+                        + "      \"values\": [\n"
+                        + "        {\"category\": \"A\", \"amount\": 28},\n"
+                        + "        {\"category\": \"B\", \"amount\": 55},\n"
+                        + "        {\"category\": \"C\", \"amount\": 43},\n"
+                        + "        {\"category\": \"D\", \"amount\": 91},\n"
+                        + "        {\"category\": \"E\", \"amount\": 81},\n"
+                        + "        {\"category\": \"F\", \"amount\": 53},\n"
+                        + "        {\"category\": \"G\", \"amount\": 19},\n"
+                        + "        {\"category\": \"H\", \"amount\": 87}\n"
+                        + "      ]\n"
+                        + "    }\n"
+                        + "  ],\n"
+                        + "\n"
+                        + "  \"signals\": [\n"
+                        + "    {\n"
+                        + "      \"name\": \"tooltip\",\n"
+                        + "      \"value\": {},\n"
+                        + "      \"on\": [\n"
+                        + "        {\"events\": \"rect:mouseover\", \"update\": \"datum\"},\n"
+                        + "        {\"events\": \"rect:mouseout\",  \"update\": \"{}\"}\n"
+                        + "      ]\n"
+                        + "    }\n"
+                        + "  ],\n"
+                        + "\n"
+                        + "  \"scales\": [\n"
+                        + "    {\n"
+                        + "      \"name\": \"xscale\",\n"
+                        + "      \"type\": \"band\",\n"
+                        + "      \"domain\": {\"data\": \"table\", \"field\": \"category\"},\n"
+                        + "      \"range\": \"width\",\n"
+                        + "      \"padding\": 0.05,\n"
+                        + "      \"round\": true\n"
+                        + "    },\n"
+                        + "    {\n"
+                        + "      \"name\": \"yscale\",\n"
+                        + "      \"domain\": {\"data\": \"table\", \"field\": \"amount\"},\n"
+                        + "      \"nice\": true,\n"
+                        + "      \"range\": \"height\"\n"
+                        + "    }\n"
+                        + "  ],\n"
+                        + "\n"
+                        + "  \"axes\": [\n"
+                        + "    { \"orient\": \"bottom\", \"scale\": \"xscale\" },\n"
+                        + "    { \"orient\": \"left\", \"scale\": \"yscale\" }\n"
+                        + "  ],\n"
+                        + "\n"
+                        + "  \"marks\": [\n"
+                        + "    {\n"
+                        + "      \"type\": \"rect\",\n"
+                        + "      \"from\": {\"data\":\"table\"},\n"
+                        + "      \"encode\": {\n"
+                        + "        \"enter\": {\n"
+                        + "          \"x\": {\"scale\": \"xscale\", \"field\": \"category\"},\n"
+                        + "          \"width\": {\"scale\": \"xscale\", \"band\": 1},\n"
+                        + "          \"y\": {\"scale\": \"yscale\", \"field\": \"amount\"},\n"
+                        + "          \"y2\": {\"scale\": \"yscale\", \"value\": 0}\n"
+                        + "        },\n"
+                        + "        \"update\": {\n"
+                        + "          \"fill\": {\"value\": \"steelblue\"}\n"
+                        + "        },\n"
+                        + "        \"hover\": {\n"
+                        + "          \"fill\": {\"value\": \"red\"}\n"
+                        + "        }\n"
+                        + "      }\n"
+                        + "    },\n"
+                        + "    {\n"
+                        + "      \"type\": \"text\",\n"
+                        + "      \"encode\": {\n"
+                        + "        \"enter\": {\n"
+                        + "          \"align\": {\"value\": \"center\"},\n"
+                        + "          \"baseline\": {\"value\": \"bottom\"},\n"
+                        + "          \"fill\": {\"value\": \"#333\"}\n"
+                        + "        },\n"
+                        + "        \"update\": {\n"
+                        + "          \"x\": {\"scale\": \"xscale\", \"signal\": \"tooltip.category\", \"band\": 0.5},\n"
+                        + "          \"y\": {\"scale\": \"yscale\", \"signal\": \"tooltip.amount\", \"offset\": -2},\n"
+                        + "          \"text\": {\"signal\": \"tooltip.amount\"},\n"
+                        + "          \"fillOpacity\": [\n"
+                        + "            {\"test\": \"datum === tooltip\", \"value\": 0},\n"
+                        + "            {\"value\": 1}\n"
+                        + "          ]\n"
+                        + "        }\n"
+                        + "      }\n"
+                        + "    }\n"
+                        + "  ]\n"
+                        + "}"));
+    }
+
+}
diff --git a/valuetypes/vega/persistence-jdo/pom.xml b/valuetypes/vega/persistence-jdo/pom.xml
new file mode 100644
index 0000000000..ba66bff9c7
--- /dev/null
+++ b/valuetypes/vega/persistence-jdo/pom.xml
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~        http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  ~
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.isis.valuetypes</groupId>
+		<artifactId>isis-valuetypes-vega</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-valuetypes-vega-persistence-jdo</artifactId>
+	<name>Apache Isis Val - Vega (Persistence JDO)</name>
+
+	<properties>
+		<jar-plugin.automaticModuleName>org.apache.isis.valuetypes.vega.persistence.jdo</jar-plugin.automaticModuleName>
+		<git-plugin.propertiesDir>org/apache/isis/valuetypes/vega/persistence-jdo</git-plugin.propertiesDir>
+	</properties>
+
+	<dependencies>
+
+		<dependency>
+			<groupId>org.apache.isis.valuetypes</groupId>
+			<artifactId>isis-valuetypes-vega-applib</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.isis.core</groupId>
+			<artifactId>isis-core-metamodel</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.datanucleus</groupId>
+			<artifactId>datanucleus-core</artifactId>
+		</dependency>
+	</dependencies>
+
+</project>
diff --git a/valuetypes/vega/persistence-jdo/src/main/java/module-info.java b/valuetypes/vega/persistence-jdo/src/main/java/module-info.java
new file mode 100644
index 0000000000..17368fa847
--- /dev/null
+++ b/valuetypes/vega/persistence-jdo/src/main/java/module-info.java
@@ -0,0 +1,27 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+module org.apache.isis.valuetypes.vega.persistence.jdo {
+    exports org.apache.isis.valuetypes.vega.persistence.jdo.dn;
+    exports org.apache.isis.valuetypes.vega.persistence.jdo.dn.converters;
+
+    requires org.apache.isis.core.config;
+    requires org.apache.isis.valuetypes.vega.applib;
+    requires org.datanucleus;
+    requires spring.context;
+}
\ No newline at end of file
diff --git a/valuetypes/vega/persistence-jdo/src/main/java/org/apache/isis/valuetypes/vega/persistence/jdo/dn/IsisModuleValVegaPersistenceJdoDn.java b/valuetypes/vega/persistence-jdo/src/main/java/org/apache/isis/valuetypes/vega/persistence/jdo/dn/IsisModuleValVegaPersistenceJdoDn.java
new file mode 100644
index 0000000000..7c74f9f3c4
--- /dev/null
+++ b/valuetypes/vega/persistence-jdo/src/main/java/org/apache/isis/valuetypes/vega/persistence/jdo/dn/IsisModuleValVegaPersistenceJdoDn.java
@@ -0,0 +1,34 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.persistence.jdo.dn;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+
+import org.apache.isis.valuetypes.vega.applib.IsisModuleValVegaApplib;
+
+/**
+ * @since 2.0 {@index}
+ */
+@Configuration
+@Import({
+    IsisModuleValVegaApplib.class
+})
+public class IsisModuleValVegaPersistenceJdoDn {
+}
diff --git a/valuetypes/vega/persistence-jdo/src/main/java/org/apache/isis/valuetypes/vega/persistence/jdo/dn/converters/IsisVegaConverter.java b/valuetypes/vega/persistence-jdo/src/main/java/org/apache/isis/valuetypes/vega/persistence/jdo/dn/converters/IsisVegaConverter.java
new file mode 100644
index 0000000000..a91c4dd078
--- /dev/null
+++ b/valuetypes/vega/persistence-jdo/src/main/java/org/apache/isis/valuetypes/vega/persistence/jdo/dn/converters/IsisVegaConverter.java
@@ -0,0 +1,43 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.persistence.jdo.dn.converters;
+
+import org.datanucleus.store.types.converters.TypeConverter;
+
+import org.apache.isis.valuetypes.vega.applib.stringify.VegaStringifier;
+import org.apache.isis.valuetypes.vega.applib.value.Vega;
+
+/**
+ * @since 2.0 {@index}
+ */
+public class IsisVegaConverter implements TypeConverter<Vega, String>{
+
+    private static final long serialVersionUID = 1L;
+
+    @Override
+    public String toDatastoreType(final Vega memberValue) {
+        return VegaStringifier.enstring(memberValue);
+    }
+
+    @Override
+    public Vega toMemberType(final String datastoreValue) {
+        return VegaStringifier.destring(datastoreValue);
+    }
+
+}
diff --git a/valuetypes/vega/persistence-jdo/src/main/resources/META-INF/MANIFEST.MF b/valuetypes/vega/persistence-jdo/src/main/resources/META-INF/MANIFEST.MF
new file mode 100644
index 0000000000..90ecf82986
--- /dev/null
+++ b/valuetypes/vega/persistence-jdo/src/main/resources/META-INF/MANIFEST.MF
@@ -0,0 +1,6 @@
+Manifest-Version: 1.0
+Bundle-ManifestVersion: 2
+Bundle-Name: Apache Isis Value Types AsciiDoc Persistence JDO DataNucleus Implementation
+Bundle-SymbolicName: org.apache.isis.valuetypes.asciidoc.persistence.jdo.dn
+Bundle-Version: 2.0.0
+Bundle-Vendor: Apache Isis
diff --git a/valuetypes/vega/persistence-jdo/src/main/resources/plugin.xml b/valuetypes/vega/persistence-jdo/src/main/resources/plugin.xml
new file mode 100644
index 0000000000..db91dcffc5
--- /dev/null
+++ b/valuetypes/vega/persistence-jdo/src/main/resources/plugin.xml
@@ -0,0 +1,49 @@
+<?xml version="1.0"?>
+<!--
+    Licensed to the Apache Software Foundation (ASF) under one
+    or more contributor license agreements. See the NOTICE file
+    distributed with this work for additional information
+    regarding copyright ownership. The ASF licenses this file
+    to you under the Apache License, Version 2.0 (the
+    "License"); you may not use this file except in compliance
+    with the License. You may obtain a copy of the License at
+
+        http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing,
+    software distributed under the License is distributed on an
+    "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+    KIND, either express or implied. See the License for the
+    specific language governing permissions and limitations
+    under the License.
+-->
+<plugin
+   id="org.apache.isis.valuetypes.vega.persistence.jdo"
+   name="Apache Isis Value Types Vega Persistence JDO DataNucleus Implementation"
+   provider-name="Apache Isis">
+
+
+    <!--
+    http://www.datanucleus.org/extensions/java_types.html
+    -->
+
+    <extension point="org.datanucleus.java_type">
+        <java-type
+                name="org.apache.isis.valuetypes.vega.applib.value.Vega"
+                dfg="false"
+                converter-name="isis.ext.vega-string" />
+    </extension>
+
+    <!--
+    http://www.datanucleus.org/extensions/type_converter.html
+    -->
+    <extension point="org.datanucleus.type_converter">
+        <type-converter
+                name="isis.ext.vega-string"
+                member-type="org.apache.isis.valuetypes.vega.applib.value.Vega"
+                datastore-type="java.lang.String"
+                converter-class="org.apache.isis.valuetypes.vega.persistence.jdo.dn.converters.IsisVegaConverter"/>
+    </extension>
+
+
+</plugin>
diff --git a/valuetypes/vega/persistence-jpa/pom.xml b/valuetypes/vega/persistence-jpa/pom.xml
new file mode 100644
index 0000000000..6e0dc63a4b
--- /dev/null
+++ b/valuetypes/vega/persistence-jpa/pom.xml
@@ -0,0 +1,54 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  ~ Licensed to the Apache Software Foundation (ASF) under one
+  ~ or more contributor license agreements.  See the NOTICE file
+  ~ distributed with this work for additional information
+  ~ regarding copyright ownership.  The ASF licenses this file
+  ~ to you under the Apache License, Version 2.0 (the
+  ~ "License"); you may not use this file except in compliance
+  ~ with the License.  You may obtain a copy of the License at
+  ~
+  ~        http://www.apache.org/licenses/LICENSE-2.0
+  ~
+  ~ Unless required by applicable law or agreed to in writing,
+  ~ software distributed under the License is distributed on an
+  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+  ~ KIND, either express or implied.  See the License for the
+  ~ specific language governing permissions and limitations
+  ~ under the License.
+  ~
+  -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.isis.valuetypes</groupId>
+		<artifactId>isis-valuetypes-vega</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-valuetypes-vega-persistence-jpa</artifactId>
+	<name>Apache Isis Val - Vega (persistence jpa)</name>
+
+	<properties>
+		<jar-plugin.automaticModuleName>org.apache.isis.valuetypes.vega.persistence.jpa</jar-plugin.automaticModuleName>
+		<git-plugin.propertiesDir>org/apache/isis/valuetypes/vega/persistence-jpa</git-plugin.propertiesDir>
+	</properties>
+
+	<dependencies>
+
+		<dependency>
+			<groupId>org.apache.isis.valuetypes</groupId>
+			<artifactId>isis-valuetypes-vega-applib</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.isis.core</groupId>
+			<artifactId>isis-core-metamodel</artifactId>
+		</dependency>
+
+	</dependencies>
+
+</project>
diff --git a/valuetypes/vega/persistence-jpa/src/main/java/module-info.java b/valuetypes/vega/persistence-jpa/src/main/java/module-info.java
new file mode 100644
index 0000000000..80bd8e32ea
--- /dev/null
+++ b/valuetypes/vega/persistence-jpa/src/main/java/module-info.java
@@ -0,0 +1,28 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+module org.apache.isis.valuetypes.vega.persistence.jpa {
+    exports org.apache.isis.valuetypes.vega.persistence.jpa;
+    exports org.apache.isis.valuetypes.vega.persistence.jpa.converters;
+
+    requires java.persistence;
+    requires org.apache.isis.core.config;
+    requires org.apache.isis.valuetypes.vega.applib;
+    requires spring.boot.autoconfigure;
+    requires spring.context;
+}
\ No newline at end of file
diff --git a/valuetypes/vega/persistence-jpa/src/main/java/org/apache/isis/valuetypes/vega/persistence/jpa/IsisModuleValVegaPersistenceJpa.java b/valuetypes/vega/persistence-jpa/src/main/java/org/apache/isis/valuetypes/vega/persistence/jpa/IsisModuleValVegaPersistenceJpa.java
new file mode 100644
index 0000000000..77ea1ce4c3
--- /dev/null
+++ b/valuetypes/vega/persistence-jpa/src/main/java/org/apache/isis/valuetypes/vega/persistence/jpa/IsisModuleValVegaPersistenceJpa.java
@@ -0,0 +1,41 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.persistence.jpa;
+
+import org.springframework.boot.autoconfigure.domain.EntityScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+
+import org.apache.isis.valuetypes.vega.applib.IsisModuleValVegaApplib;
+import org.apache.isis.valuetypes.vega.persistence.jpa.converters.IsisVegaConverter;
+
+/**
+ * @since 2.0 {@index}
+ */
+@Configuration
+@Import({
+    IsisModuleValVegaApplib.class
+})
+@EntityScan(basePackageClasses = {
+
+        // @Converter's
+        IsisVegaConverter.class
+})
+public class IsisModuleValVegaPersistenceJpa {
+}
diff --git a/valuetypes/vega/persistence-jpa/src/main/java/org/apache/isis/valuetypes/vega/persistence/jpa/converters/IsisVegaConverter.java b/valuetypes/vega/persistence-jpa/src/main/java/org/apache/isis/valuetypes/vega/persistence/jpa/converters/IsisVegaConverter.java
new file mode 100644
index 0000000000..3eefb9d4a0
--- /dev/null
+++ b/valuetypes/vega/persistence-jpa/src/main/java/org/apache/isis/valuetypes/vega/persistence/jpa/converters/IsisVegaConverter.java
@@ -0,0 +1,43 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.persistence.jpa.converters;
+
+import javax.persistence.AttributeConverter;
+import javax.persistence.Converter;
+
+import org.apache.isis.valuetypes.vega.applib.stringify.VegaStringifier;
+import org.apache.isis.valuetypes.vega.applib.value.Vega;
+
+/**
+ * @since 2.0 {@index}
+ */
+@Converter(autoApply = true)
+public class IsisVegaConverter implements AttributeConverter<Vega, String>{
+
+    @Override
+    public String convertToDatabaseColumn(final Vega memberValue) {
+        return VegaStringifier.enstring(memberValue);
+    }
+
+    @Override
+    public Vega convertToEntityAttribute(final String datastoreValue) {
+        return VegaStringifier.destring(datastoreValue);
+    }
+
+}
diff --git a/valuetypes/vega/pom.xml b/valuetypes/vega/pom.xml
new file mode 100644
index 0000000000..5cf673bdf2
--- /dev/null
+++ b/valuetypes/vega/pom.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+	license agreements. See the NOTICE file distributed with this work for additional
+	information regarding copyright ownership. The ASF licenses this file to
+	you under the Apache License, Version 2.0 (the "License"); you may not use
+	this file except in compliance with the License. You may obtain a copy of
+	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+	by applicable law or agreed to in writing, software distributed under the
+	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+	OF ANY KIND, either express or implied. See the License for the specific
+	language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.isis.valuetypes</groupId>
+		<artifactId>isis-valuetypes</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-valuetypes-vega</artifactId>
+	<name>Apache Isis Val - Vega (parent)</name>
+	<description>
+		Vega/Vega-lite value type.
+	</description>
+
+	<packaging>pom</packaging>
+
+	<properties>
+	</properties>
+
+	<modules>
+		<module>applib</module>
+		<module>metamodel</module>
+		<module>persistence-jdo</module>
+		<module>persistence-jpa</module>
+		<module>ui</module>
+	</modules>
+
+</project>
diff --git a/valuetypes/vega/ui/pom.xml b/valuetypes/vega/ui/pom.xml
new file mode 100644
index 0000000000..57289bedd4
--- /dev/null
+++ b/valuetypes/vega/ui/pom.xml
@@ -0,0 +1,66 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
+	license agreements. See the NOTICE file distributed with this work for additional 
+	information regarding copyright ownership. The ASF licenses this file to 
+	you under the Apache License, Version 2.0 (the "License"); you may not use 
+	this file except in compliance with the License. You may obtain a copy of 
+	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
+	by applicable law or agreed to in writing, software distributed under the 
+	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
+	OF ANY KIND, either express or implied. See the License for the specific 
+	language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.isis.valuetypes</groupId>
+		<artifactId>isis-valuetypes-vega</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-valuetypes-vega-ui</artifactId>
+	<name>Apache Isis Val - Vega (ui)</name>
+	<packaging>pom</packaging>
+
+	<properties>
+		<jar-plugin.automaticModuleName>org.apache.isis.valuetypes.vega.ui</jar-plugin.automaticModuleName>
+		<git-plugin.propertiesDir>org/apache/isis/valuetypes/vega/ui</git-plugin.propertiesDir>
+		<!--<enforcer.skip>true</enforcer.skip>-->
+	</properties>
+
+	<dependencies>
+	
+		<dependency>
+			<groupId>org.apache.isis.valuetypes</groupId>
+			<artifactId>isis-valuetypes-vega-applib</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.isis.core</groupId>
+			<artifactId>isis-core-metamodel</artifactId>
+		</dependency>
+
+		<!-- provides VEGA API -->
+		<!--
+		<dependency>
+		    <groupId>org.webjars.npm</groupId>
+		    <artifactId>vega</artifactId>
+		    <version>5.22.1</version>
+		</dependency>
+		<dependency>
+		    <groupId>org.webjars.npm</groupId>
+		    <artifactId>vega-lite</artifactId>
+		    <version>4.13.1</version>
+		</dependency>
+		-->
+		<!-- END OF VEGA API -->
+
+	</dependencies>
+
+	<modules>
+		<module>wicket</module>
+	</modules>
+
+</project>
diff --git a/valuetypes/vega/ui/vaadin/pom.xml b/valuetypes/vega/ui/vaadin/pom.xml
new file mode 100644
index 0000000000..4bd1f51eb0
--- /dev/null
+++ b/valuetypes/vega/ui/vaadin/pom.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor 
+	license agreements. See the NOTICE file distributed with this work for additional 
+	information regarding copyright ownership. The ASF licenses this file to 
+	you under the Apache License, Version 2.0 (the "License"); you may not use 
+	this file except in compliance with the License. You may obtain a copy of 
+	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required 
+	by applicable law or agreed to in writing, software distributed under the 
+	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS 
+	OF ANY KIND, either express or implied. See the License for the specific 
+	language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.isis.valuetypes</groupId>
+		<artifactId>isis-valuetypes-vega-ui</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-valuetypes-vega-ui-vaa</artifactId>
+	<name>Apache Isis Val - Vega (ui vaadin)</name>
+
+	<properties>
+		<jar-plugin.automaticModuleName>org.apache.isis.valuetypes.vega.ui.vaa</jar-plugin.automaticModuleName>
+		<git-plugin.propertiesDir>org/apache/isis/valuetypes/vega/ui/vaa</git-plugin.propertiesDir>
+	</properties>
+
+	<dependencies>
+	
+        <dependency>
+			<groupId>org.apache.isis.incubator.viewer</groupId>
+            <artifactId>isis-viewer-vaadin-ui</artifactId>
+            <version>${project.version}</version>
+            <scope>provided</scope>
+        </dependency>
+
+	</dependencies>
+
+</project>
diff --git a/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/IsisModuleValVegaUiVaa.java b/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/IsisModuleValVegaUiVaa.java
new file mode 100644
index 0000000000..0949eb2e5c
--- /dev/null
+++ b/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/IsisModuleValVegaUiVaa.java
@@ -0,0 +1,33 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.ui.vaa;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+
+import org.apache.isis.valuetypes.vega.applib.IsisModuleValVegaApplib;
+import org.apache.isis.valuetypes.vega.ui.vaa.components.VegaFieldFactoryVaa;
+
+@Configuration
+@Import({
+    IsisModuleValVegaApplib.class,
+    VegaFieldFactoryVaa.class,
+})
+public class IsisModuleValVegaUiVaa {
+}
diff --git a/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/components/VegaFieldFactoryVaa.java b/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/components/VegaFieldFactoryVaa.java
new file mode 100644
index 0000000000..96ed49e49c
--- /dev/null
+++ b/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/components/VegaFieldFactoryVaa.java
@@ -0,0 +1,57 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.ui.vaa.components;
+
+import com.vaadin.flow.component.Component;
+
+import org.apache.isis.applib.annotation.PriorityPrecedence;
+import org.apache.isis.incubator.viewer.vaadin.ui.components.UiComponentHandlerVaa;
+import org.apache.isis.valuetypes.vega.applib.value.Vega;
+import org.apache.isis.viewer.commons.model.components.UiComponentFactory.ComponentRequest;
+
+import lombok.val;
+
+@org.springframework.stereotype.Component
+@javax.annotation.Priority(PriorityPrecedence.MIDPOINT)
+public class VegaFieldFactoryVaa implements UiComponentHandlerVaa {
+
+    //private final static int TYPICAL_LENGTH = 48;
+
+    @Override
+    public boolean isHandling(final ComponentRequest request) {
+        return request.isFeatureTypeAssignableFrom(Vega.class);
+    }
+
+    @Override
+    public Component handle(final ComponentRequest request) {
+        val uiField = new VegaFieldVaa(request.getFriendlyName());
+        uiField.setValue(request.getFeatureValue(Vega.class).orElse(null));
+
+//not compatible with flexibly growing grids
+//        final int typicalLength = request
+//            .getFeatureFacet(TypicalLengthFacet.class)
+//            .map(typicalLengthFacet->typicalLengthFacet.bounded(10, 10000, TYPICAL_LENGTH))
+//            .orElse(TYPICAL_LENGTH);
+//
+//        uiField.setMaxWidth("" + typicalLength + "em");
+
+        return uiField;
+    }
+
+}
diff --git a/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/components/VegaFieldVaa.java b/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/components/VegaFieldVaa.java
new file mode 100644
index 0000000000..557115312e
--- /dev/null
+++ b/valuetypes/vega/ui/vaadin/src/main/java/org/apache/isis/valuetypes/vega/ui/vaa/components/VegaFieldVaa.java
@@ -0,0 +1,68 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.ui.vaa.components;
+
+import com.vaadin.flow.component.Html;
+import com.vaadin.flow.component.customfield.CustomField;
+import com.vaadin.flow.component.html.Div;
+
+import org.springframework.lang.Nullable;
+
+import org.apache.isis.incubator.viewer.vaadin.ui.util.LocalResourceUtil;
+import org.apache.isis.incubator.viewer.vaadin.ui.util.PrismResourcesVaa;
+import org.apache.isis.valuetypes.vega.applib.value.Vega;
+
+public class VegaFieldVaa extends CustomField<Vega> {
+
+    private static final long serialVersionUID = 1L;
+
+    private final Div div = new Div();
+    private Vega vega;
+
+    public VegaFieldVaa(final String label) {
+        super();
+        setLabel(label);
+        add(div);
+
+        LocalResourceUtil.addStyleSheet(PrismResourcesVaa.getCssResourceReference());
+        //LocalResourceUtil.executeJavaScript(PrismResourcesVaa::readJsResource);
+        //TODO potentially needs to be executed on page loaded ...
+        LocalResourceUtil.addJavaScript(PrismResourcesVaa.getJsResourceReference());
+    }
+
+    @Override
+    protected Vega generateModelValue() {
+        return vega;
+    }
+
+    @Override
+    protected void setPresentationValue(@Nullable final Vega markup) {
+        this.vega = markup;
+
+        div.removeAll();
+
+        if(markup==null) {
+            return;
+        }
+
+        //TODO - just a stub
+        div.add(new Html("<div style=\"line-height:normal\">" + markup.getSchema().name() + "</div>"));
+    }
+
+}
diff --git a/valuetypes/vega/ui/wicket/pom.xml b/valuetypes/vega/ui/wicket/pom.xml
new file mode 100644
index 0000000000..f62e41a684
--- /dev/null
+++ b/valuetypes/vega/ui/wicket/pom.xml
@@ -0,0 +1,46 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- Licensed to the Apache Software Foundation (ASF) under one or more contributor
+	license agreements. See the NOTICE file distributed with this work for additional
+	information regarding copyright ownership. The ASF licenses this file to
+	you under the Apache License, Version 2.0 (the "License"); you may not use
+	this file except in compliance with the License. You may obtain a copy of
+	the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required
+	by applicable law or agreed to in writing, software distributed under the
+	License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS
+	OF ANY KIND, either express or implied. See the License for the specific
+	language governing permissions and limitations under the License. -->
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+	xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+	<modelVersion>4.0.0</modelVersion>
+
+	<parent>
+		<groupId>org.apache.isis.valuetypes</groupId>
+		<artifactId>isis-valuetypes-vega-ui</artifactId>
+		<version>2.0.0-SNAPSHOT</version>
+	</parent>
+
+	<artifactId>isis-valuetypes-vega-ui-wkt</artifactId>
+	<name>Apache Isis Val - Vega (ui wicket)</name>
+
+	<properties>
+		<jar-plugin.automaticModuleName>org.apache.isis.valuetypes.vega.ui.wkt</jar-plugin.automaticModuleName>
+		<git-plugin.propertiesDir>org/apache/isis/valuetypes/vega/ui/wkt</git-plugin.propertiesDir>
+	</properties>
+
+	<dependencies>
+
+		<dependency>
+			<groupId>org.apache.isis.valuetypes</groupId>
+			<artifactId>isis-valuetypes-vega-metamodel</artifactId>
+		</dependency>
+
+		<dependency>
+			<groupId>org.apache.isis.viewer</groupId>
+            <artifactId>isis-viewer-wicket-ui</artifactId>
+            <scope>provided</scope>
+        </dependency>
+
+	</dependencies>
+
+</project>
diff --git a/valuetypes/vega/ui/wicket/src/main/java/module-info.java b/valuetypes/vega/ui/wicket/src/main/java/module-info.java
new file mode 100644
index 0000000000..0421482936
--- /dev/null
+++ b/valuetypes/vega/ui/wicket/src/main/java/module-info.java
@@ -0,0 +1,34 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+module org.apache.isis.valuetypes.asciidoc.ui.wkt {
+    exports org.apache.isis.valuetypes.vega.ui.wkt;
+    exports org.apache.isis.valuetypes.vega.ui.wkt.components;
+
+    requires lombok;
+    requires org.apache.isis.applib;
+    requires org.apache.isis.core.config;
+    requires org.apache.isis.core.metamodel;
+    requires org.apache.isis.valuetypes.vega.applib;
+    requires org.apache.isis.viewer.commons.model;
+    requires org.apache.isis.viewer.wicket.model;
+    requires org.apache.isis.viewer.wicket.ui;
+    requires org.apache.wicket.core;
+    requires org.apache.wicket.util;
+    requires spring.context;
+}
\ No newline at end of file
diff --git a/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/IsisModuleValVegaUiWkt.java b/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/IsisModuleValVegaUiWkt.java
new file mode 100644
index 0000000000..48d5366711
--- /dev/null
+++ b/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/IsisModuleValVegaUiWkt.java
@@ -0,0 +1,37 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.ui.wkt;
+
+import org.springframework.context.annotation.Configuration;
+import org.springframework.context.annotation.Import;
+
+import org.apache.isis.valuetypes.vega.applib.IsisModuleValVegaApplib;
+import org.apache.isis.valuetypes.vega.ui.wkt.components.VegaPanelFactoriesWkt;
+
+/**
+ * @since 2.0 {@index}
+ */
+@Configuration
+@Import({
+    IsisModuleValVegaApplib.class,
+    VegaPanelFactoriesWkt.Parented.class,
+    VegaPanelFactoriesWkt.Standalone.class,
+})
+public class IsisModuleValVegaUiWkt {
+}
diff --git a/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/components/VegaComponentWkt.java b/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/components/VegaComponentWkt.java
new file mode 100644
index 0000000000..19003502f8
--- /dev/null
+++ b/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/components/VegaComponentWkt.java
@@ -0,0 +1,37 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.ui.wkt.components;
+
+import org.apache.wicket.model.IModel;
+
+import org.apache.isis.applib.value.semantics.Renderer.SyntaxHighlighter;
+import org.apache.isis.viewer.wicket.ui.components.scalars.markup.MarkupComponent;
+
+public class VegaComponentWkt extends MarkupComponent {
+
+    private static final long serialVersionUID = 1L;
+
+    public VegaComponentWkt(final String id, final IModel<?> model){
+        super(id, model,
+                org.apache.isis.viewer.wicket.ui.components.scalars.markup.MarkupComponent.Options.builder()
+                .syntaxHighlighter(SyntaxHighlighter.PRISM_COY)
+                .build());
+    }
+
+}
diff --git a/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/components/VegaPanelFactoriesWkt.java b/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/components/VegaPanelFactoriesWkt.java
new file mode 100644
index 0000000000..8a169427d5
--- /dev/null
+++ b/valuetypes/vega/ui/wicket/src/main/java/org/apache/isis/valuetypes/vega/ui/wkt/components/VegaPanelFactoriesWkt.java
@@ -0,0 +1,76 @@
+/*
+ *  Licensed to the Apache Software Foundation (ASF) under one
+ *  or more contributor license agreements.  See the NOTICE file
+ *  distributed with this work for additional information
+ *  regarding copyright ownership.  The ASF licenses this file
+ *  to you under the Apache License, Version 2.0 (the
+ *  "License"); you may not use this file except in compliance
+ *  with the License.  You may obtain a copy of the License at
+ *
+ *        http://www.apache.org/licenses/LICENSE-2.0
+ *
+ *  Unless required by applicable law or agreed to in writing,
+ *  software distributed under the License is distributed on an
+ *  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ *  KIND, either express or implied.  See the License for the
+ *  specific language governing permissions and limitations
+ *  under the License.
+ */
+package org.apache.isis.valuetypes.vega.ui.wkt.components;
+
+import org.springframework.stereotype.Component;
+
+import org.apache.isis.valuetypes.vega.applib.value.Vega;
+import org.apache.isis.viewer.wicket.model.models.ScalarModel;
+import org.apache.isis.viewer.wicket.model.models.ValueModel;
+import org.apache.isis.viewer.wicket.ui.components.scalars.markup.MarkupComponent;
+import org.apache.isis.viewer.wicket.ui.components.scalars.markup.MarkupPanelFactories;
+
+import lombok.val;
+
+/**
+ * @implNote Almost a copy of {@code Parented} and {@code Standalone} in
+ * {@link MarkupPanelFactories}, but specific to
+ * the {@link Vega} value-type which requires client-side java-script to be
+ * executed to enable syntax highlighting
+ */
+public class VegaPanelFactoriesWkt {
+
+    // -- PARENTED
+
+    @Component
+    public static class Parented extends MarkupPanelFactories.ParentedAbstract<Vega> {
+        private static final long serialVersionUID = 1L;
+
+        public Parented() {
+            super(Vega.class);
+        }
+
+        @Override
+        protected MarkupComponent newMarkupComponent(final String id, final ScalarModel model) {
+            val markupComponent = new VegaComponentWkt(id, model);
+            markupComponent.setEnabled(false);
+            return markupComponent;
+        }
+
+    }
+
+    // -- STANDALONE
+
+    @Component
+    public static class Standalone extends MarkupPanelFactories.StandaloneAbstract<Vega> {
+        private static final long serialVersionUID = 1L;
+
+        public Standalone() {
+            super(Vega.class);
+        }
+
+        @Override
+        protected MarkupComponent newMarkupComponent(final String id, final ValueModel model) {
+            return new VegaComponentWkt(id, model);
+        }
+
+    }
+
+
+}