-
Notifications
You must be signed in to change notification settings - Fork 93
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrated form builder, fixed some styles, updated BlimpKit to 1.0.9
Signed-off-by: StanZGenchev <stan.z.genchev@gmail.com>
- Loading branch information
1 parent
a188ed2
commit b6d839c
Showing
19 changed files
with
2,504 additions
and
239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
145 changes: 45 additions & 100 deletions
145
...de/ide-ui-form-builder/src/main/resources/META-INF/dirigible/ide-form-builder/editor.html
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 ("Content"). Unless otherwise | ||
indicated below, the Content is provided to you under the terms and conditions of the | ||
Eclipse Public License Version 2.0 ("EPL"). 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, "Program" 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 ("Redistributor") 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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
21 changes: 21 additions & 0 deletions
21
...-form-builder/src/main/resources/META-INF/dirigible/editor-form-builder/configs/editor.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
113 changes: 113 additions & 0 deletions
113
...tor-form-builder/src/main/resources/META-INF/dirigible/editor-form-builder/css/editor.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; | ||
} |
Oops, something went wrong.