Skip to content

Commit

Permalink
Migrated form builder, fixed some styles, updated BlimpKit to 1.0.9
Browse files Browse the repository at this point in the history
Signed-off-by: StanZGenchev <stan.z.genchev@gmail.com>
  • Loading branch information
StanZGenchev committed Jan 19, 2025
1 parent a188ed2 commit b6d839c
Show file tree
Hide file tree
Showing 19 changed files with 2,504 additions and 239 deletions.
4 changes: 4 additions & 0 deletions components/group/group-platform-ide/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -281,6 +281,10 @@
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-editor-csvim</artifactId>
</dependency>
<dependency>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-editor-form-builder</artifactId>
</dependency>

<dependency>
<groupId>org.eclipse.dirigible</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ div.fb-main-container {
border-radius: .188rem;
outline: .063rem dashed var(--sapTextColor, #e5e5e5);
padding-bottom: 2rem;
margin: 0.5rem;
}

div.fb-main-container[disabled] {
Expand Down Expand Up @@ -105,4 +106,9 @@ div.dg-vbox[data-type="container"]:empty {

div[data-type="container"]>div.fb-control-wrapper {
padding: .25rem;
}

.fb-margin-block--none {
margin-block-end: 0 !important;
margin-block-start: 0 !important;
}

Large diffs are not rendered by default.

17 changes: 17 additions & 0 deletions components/platform-ide/editor-form-builder/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# folders
dist/
.settings/
target/
derby/
dirigible_local/

# files
.DS_Store
.project
.classpath
*.bak
*.class
*.jar
derby.log
/bin/
/target/
29 changes: 29 additions & 0 deletions components/platform-ide/editor-form-builder/about.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>About</title>
</head>
<body lang="EN-US">
<h2>About This Content</h2>

<p>April 25, 2020</p>
<h3>License</h3>

<p>The Eclipse Foundation makes available all content in this plug-in (&quot;Content&quot;). Unless otherwise
indicated below, the Content is provided to you under the terms and conditions of the
Eclipse Public License Version 2.0 (&quot;EPL&quot;). A copy of the EPL is available
at <a href="http://www.eclipse.org/legal/epl-v20.html">http://www.eclipse.org/legal/epl-v20.html</a>.
For purposes of the EPL, &quot;Program&quot; will mean the Content.</p>

<p>If you did not receive this Content directly from the Eclipse Foundation, the Content is
being redistributed by another party (&quot;Redistributor&quot;) and different terms and conditions may
apply to your use of any object code in the Content. Check the Redistributor's license that was
provided with the Content. If no such license exists, contact the Redistributor. Unless otherwise
indicated below, the terms and conditions of the EPL still apply to any source code in the Content
and such source code may be obtained at <a href="http://www.eclipse.org/">http://www.eclipse.org</a>.</p>

</body>
</html>
20 changes: 20 additions & 0 deletions components/platform-ide/editor-form-builder/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>org.eclipse.dirigible</groupId>
<artifactId>dirigible-components-parent</artifactId>
<version>11.0.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<name>Components - IDE - Form Builder - Editor</name>
<artifactId>dirigible-components-editor-form-builder</artifactId>
<packaging>jar</packaging>

<properties>
<license.header.location>../../../licensing-header.txt</license.header.location>
<parent.pom.folder>../../../</parent.pom.folder>
</properties>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
/*
* Copyright (c) 2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
const editorData = {
id: 'formBuilder',
region: 'center',
label: 'Form Builder',
path: '/services/web/editor-form-builder/editor.html',
contentTypes: ['application/json+form']
};
if (typeof exports !== 'undefined') {
exports.getEditor = () => editorData;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
/**
* Copyright (c) 2010-2024 Eclipse Dirigible contributors
*
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v2.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v20.html
*
* SPDX-FileCopyrightText: Eclipse Dirigible contributors
* SPDX-License-Identifier: EPL-2.0
*/
div.fb-main-container {
border: .25rem solid var(--sapBackgroundColor, #f7f7f7);
border-radius: .188rem;
outline: .063rem dashed var(--sapContent_NonInteractiveIconColor, #656565);
padding-bottom: 2rem;
margin: 0.5rem;
}

div.fb-main-container[disabled] {
pointer-events: none;
outline: .063rem solid var(--sapErrorBorderColor, #bb0000);
}

div.fb-main-container[data-preview=true] {
pointer-events: none;
border: none;
background: var(--sapBackgroundColor, #f7f7f7);
padding: .25rem .5rem .25rem .5rem;
}

div.fb-main-container[data-preview=true] div[data-type="container"] {
-webkit-box-pack: stretch;
-webkit-justify-content: stretch;
-ms-flex-pack: stretch;
justify-content: stretch;
padding: 0;
border: none;
outline: none;
}

div.fb-main-container[data-preview=true] div[data-type="container"]>div.fb-control-wrapper {
padding: 0;
}

div.fb-main-container[data-preview=true] div.bk-vbox,
div.fb-main-container[data-preview=true] div.bk-hbox {
gap: .5rem;
}

div.fb-main-container[data-preview=true] div[data-type="container"]>* {
width: 100%;
padding: 0;
}

div.fb-control-wrapper {
position: relative;
background: var(--sapBackgroundColor, #f7f7f7);
min-height: 1rem;
min-width: 1rem;
}

div.fb-control-wrapper>* {
pointer-events: none;
}

div.fb-control-wrapper.is-selected:before {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
content: '';
z-index: 1;
-webkit-box-sizing: border-box;
box-sizing: border-box;
background-color: var(--sapContent_Selected_Background, #fecc04);
opacity: .25;
}

div.fb-main-container[disabled] div.fb-control-wrapper.is-selected:before {
border: var(--sapList_BorderWidth, 0.0625rem) solid var(--sapErrorBorderColor, #bb0000);
}

div.bk-hbox[data-type="container"] {
padding-right: 1rem;
}

div.bk-vbox[data-type="container"] {
padding-bottom: 1rem;
}

div.bk-hbox[data-type="container"],
div.bk-vbox[data-type="container"] {
border: .25rem solid var(--sapBackgroundColor, #f7f7f7);
outline: .063rem dashed var(--sapContent_NonInteractiveIconColor, #656565);
outline-offset: -.25rem;
}

div.bk-hbox[data-type="container"]:empty,
div.bk-vbox[data-type="container"]:empty {
padding: 1rem;
border: .5rem solid var(--sapBackgroundColor, #f7f7f7);
}

div[data-type="container"]>div.fb-control-wrapper {
padding: .25rem;
}

.fb-margin-block--none {
margin-block-end: 0 !important;
margin-block-start: 0 !important;
}
Loading

0 comments on commit b6d839c

Please sign in to comment.