mirror of
https://gitee.com/kekingcn/file-online-preview.git
synced 2026-04-28 19:16:43 +00:00
Add workflow bpmn file preview support (#441)
This commit is contained in:
@@ -8,6 +8,7 @@
|
|||||||
6. 支持 psd 等 Photoshop 软件模型文件
|
6. 支持 psd 等 Photoshop 软件模型文件
|
||||||
7. 支持 pdf ,ofd, rtf 等文档
|
7. 支持 pdf ,ofd, rtf 等文档
|
||||||
8. 支持 xmind 软件模型文件
|
8. 支持 xmind 软件模型文件
|
||||||
|
9. 支持 bpmn 工作流文件
|
||||||
9. 支持 eml 邮件文件
|
9. 支持 eml 邮件文件
|
||||||
10. 支持 epub 图书文档
|
10. 支持 epub 图书文档
|
||||||
10. 支持 obj, 3ds, stl, ply, gltf, glb, off, 3dm, fbx, dae, wrl, 3mf, ifc, brep, step, iges, fcstd, bim 等 3D 模型文件
|
10. 支持 obj, 3ds, stl, ply, gltf, glb, off, 3dm, fbx, dae, wrl, 3mf, ifc, brep, step, iges, fcstd, bim 等 3D 模型文件
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ Document online preview project solution, built using the popular Spring Boot fr
|
|||||||
6. Supports Photoshop software model files such as `psd`.
|
6. Supports Photoshop software model files such as `psd`.
|
||||||
7. Supports document formats like `pdf`, `ofd`, and `rtf`.
|
7. Supports document formats like `pdf`, `ofd`, and `rtf`.
|
||||||
8. Supports software model files like `xmind`.
|
8. Supports software model files like `xmind`.
|
||||||
|
9. Support for `bpmn` workflow files.
|
||||||
9. Support for `eml` mail files
|
9. Support for `eml` mail files
|
||||||
10. Support for `epub` book documents
|
10. Support for `epub` book documents
|
||||||
10. Supports 3D model files like `obj`, `3ds`, `stl`, `ply`, `gltf`, `glb`, `off`, `3dm`, `fbx`, `dae`, `wrl`, `3mf`, `ifc`, `brep`, `step`, `iges`, `fcstd`, `bim`, etc.
|
10. Supports 3D model files like `obj`, `3ds`, `stl`, `ply`, `gltf`, `glb`, `off`, `3dm`, `fbx`, `dae`, `wrl`, `3mf`, `ifc`, `brep`, `step`, `iges`, `fcstd`, `bim`, etc.
|
||||||
|
|||||||
@@ -29,7 +29,8 @@ public enum FileType {
|
|||||||
Online3D("online3DFilePreviewImpl"),
|
Online3D("online3DFilePreviewImpl"),
|
||||||
XMIND("xmindFilePreviewImpl"),
|
XMIND("xmindFilePreviewImpl"),
|
||||||
SVG("svgFilePreviewImpl"),
|
SVG("svgFilePreviewImpl"),
|
||||||
Epub("epubFilePreviewImpl");
|
Epub("epubFilePreviewImpl"),
|
||||||
|
BPMN("bpmnFilePreviewImpl");
|
||||||
|
|
||||||
private static final String[] OFFICE_TYPES = {"docx", "wps", "doc", "docm", "xls", "xlsx", "csv" ,"xlsm", "ppt", "pptx", "vsd", "rtf", "odt", "wmf", "emf", "dps", "et", "ods", "ots", "tsv", "odp", "otp", "sxi", "ott", "vsdx", "fodt", "fods", "xltx","tga","psd","dotm","ett","xlt","xltm","wpt","dot","xlam","xla"};
|
private static final String[] OFFICE_TYPES = {"docx", "wps", "doc", "docm", "xls", "xlsx", "csv" ,"xlsm", "ppt", "pptx", "vsd", "rtf", "odt", "wmf", "emf", "dps", "et", "ods", "ots", "tsv", "odp", "otp", "sxi", "ott", "vsdx", "fodt", "fods", "xltx","tga","psd","dotm","ett","xlt","xltm","wpt","dot","xlam","xla"};
|
||||||
private static final String[] PICTURE_TYPES = {"jpg", "jpeg", "png", "gif", "bmp", "ico", "jfif", "webp"};
|
private static final String[] PICTURE_TYPES = {"jpg", "jpeg", "png", "gif", "bmp", "ico", "jfif", "webp"};
|
||||||
@@ -98,6 +99,7 @@ public enum FileType {
|
|||||||
FILE_TYPE_MAPPER.put("xml", FileType.XML);
|
FILE_TYPE_MAPPER.put("xml", FileType.XML);
|
||||||
FILE_TYPE_MAPPER.put("pdf", FileType.PDF);
|
FILE_TYPE_MAPPER.put("pdf", FileType.PDF);
|
||||||
FILE_TYPE_MAPPER.put("flv", FileType.FLV);
|
FILE_TYPE_MAPPER.put("flv", FileType.FLV);
|
||||||
|
FILE_TYPE_MAPPER.put("bpmn", FileType.BPMN);
|
||||||
}
|
}
|
||||||
|
|
||||||
private static FileType to(String fileType) {
|
private static FileType to(String fileType) {
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ public interface FilePreview {
|
|||||||
String EXEL_FILE_PREVIEW_PAGE = "html";
|
String EXEL_FILE_PREVIEW_PAGE = "html";
|
||||||
String XML_FILE_PREVIEW_PAGE = "xml";
|
String XML_FILE_PREVIEW_PAGE = "xml";
|
||||||
String MARKDOWN_FILE_PREVIEW_PAGE = "markdown";
|
String MARKDOWN_FILE_PREVIEW_PAGE = "markdown";
|
||||||
|
String BPMN_FILE_PREVIEW_PAGE = "bpmn";
|
||||||
String NOT_SUPPORTED_FILE_PAGE = "fileNotSupported";
|
String NOT_SUPPORTED_FILE_PAGE = "fileNotSupported";
|
||||||
|
|
||||||
String filePreviewHandle(String url, Model model, FileAttribute fileAttribute);
|
String filePreviewHandle(String url, Model model, FileAttribute fileAttribute);
|
||||||
|
|||||||
@@ -0,0 +1,27 @@
|
|||||||
|
package cn.keking.service.impl;
|
||||||
|
|
||||||
|
import cn.keking.model.FileAttribute;
|
||||||
|
import cn.keking.service.FilePreview;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author kl (http://kailing.pub)
|
||||||
|
* @since 2023/3/9
|
||||||
|
*/
|
||||||
|
@Component
|
||||||
|
public class BpmnFilePreviewImpl implements FilePreview {
|
||||||
|
|
||||||
|
private final CommonPreviewImpl commonPreview;
|
||||||
|
|
||||||
|
public BpmnFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
||||||
|
this.commonPreview = commonPreview;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||||
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
||||||
|
model.addAttribute("fileName", fileAttribute.getName());
|
||||||
|
return FilePreview.BPMN_FILE_PREVIEW_PAGE;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,48 @@
|
|||||||
|
package cn.keking.service.impl;
|
||||||
|
|
||||||
|
import cn.keking.model.FileAttribute;
|
||||||
|
import cn.keking.model.ReturnResponse;
|
||||||
|
import cn.keking.service.FileHandlerService;
|
||||||
|
import cn.keking.service.FilePreview;
|
||||||
|
import cn.keking.utils.DownloadUtils;
|
||||||
|
import cn.keking.utils.KkFileUtils;
|
||||||
|
import org.springframework.stereotype.Component;
|
||||||
|
import org.springframework.stereotype.Service;
|
||||||
|
import org.springframework.ui.Model;
|
||||||
|
import org.springframework.util.CollectionUtils;
|
||||||
|
|
||||||
|
import java.util.ArrayList;
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Created by kl on 2018/1/17.
|
||||||
|
* Content :图片文件处理
|
||||||
|
*/
|
||||||
|
@Component("commonPreview")
|
||||||
|
public class CommonPreviewImpl implements FilePreview {
|
||||||
|
|
||||||
|
private final FileHandlerService fileHandlerService;
|
||||||
|
private final OtherFilePreviewImpl otherFilePreview;
|
||||||
|
|
||||||
|
public CommonPreviewImpl(FileHandlerService fileHandlerService, OtherFilePreviewImpl otherFilePreview) {
|
||||||
|
this.fileHandlerService = fileHandlerService;
|
||||||
|
this.otherFilePreview = otherFilePreview;
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||||
|
// 不是http开头,浏览器不能直接访问,需下载到本地
|
||||||
|
if (url != null && !url.toLowerCase().startsWith("http")) {
|
||||||
|
ReturnResponse<String> response = DownloadUtils.downLoad(fileAttribute, null);
|
||||||
|
if (response.isFailure()) {
|
||||||
|
return otherFilePreview.notSupportedFile(model, fileAttribute, response.getMsg());
|
||||||
|
} else {
|
||||||
|
String file = fileHandlerService.getRelativePath(response.getContent());
|
||||||
|
model.addAttribute("currentUrl", file);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
model.addAttribute("currentUrl", url);
|
||||||
|
}
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -11,15 +11,15 @@ import org.springframework.ui.Model;
|
|||||||
@Service
|
@Service
|
||||||
public class EmlFilePreviewImpl implements FilePreview {
|
public class EmlFilePreviewImpl implements FilePreview {
|
||||||
|
|
||||||
private final PictureFilePreviewImpl pictureFilePreview;
|
private final CommonPreviewImpl commonPreview;
|
||||||
|
|
||||||
public EmlFilePreviewImpl(PictureFilePreviewImpl pictureFilePreview) {
|
public EmlFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
||||||
this.pictureFilePreview = pictureFilePreview;
|
this.commonPreview = commonPreview;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||||
pictureFilePreview.filePreviewHandle(url,model,fileAttribute);
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
||||||
return EML_FILE_PREVIEW_PAGE;
|
return EML_FILE_PREVIEW_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ import org.springframework.ui.Model;
|
|||||||
@Service
|
@Service
|
||||||
public class EpubFilePreviewImpl implements FilePreview {
|
public class EpubFilePreviewImpl implements FilePreview {
|
||||||
|
|
||||||
private final PictureFilePreviewImpl pictureFilePreview;
|
private final CommonPreviewImpl commonPreview;
|
||||||
|
|
||||||
public EpubFilePreviewImpl(PictureFilePreviewImpl pictureFilePreview) {
|
public EpubFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
||||||
this.pictureFilePreview = pictureFilePreview;
|
this.commonPreview = commonPreview;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||||
pictureFilePreview.filePreviewHandle(url,model,fileAttribute);
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
||||||
return EpubFilePreviewImpl;
|
return EpubFilePreviewImpl;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ import org.springframework.ui.Model;
|
|||||||
@Service
|
@Service
|
||||||
public class OfdFilePreviewImpl implements FilePreview {
|
public class OfdFilePreviewImpl implements FilePreview {
|
||||||
|
|
||||||
private final PictureFilePreviewImpl pictureFilePreview;
|
private final CommonPreviewImpl commonPreview;
|
||||||
|
|
||||||
public OfdFilePreviewImpl(PictureFilePreviewImpl pictureFilePreview) {
|
public OfdFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
||||||
this.pictureFilePreview = pictureFilePreview;
|
this.commonPreview = commonPreview;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||||
pictureFilePreview.filePreviewHandle(url,model,fileAttribute);
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
||||||
return OFD_FILE_PREVIEW_PAGE;
|
return OFD_FILE_PREVIEW_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -12,15 +12,15 @@ import org.springframework.ui.Model;
|
|||||||
@Service
|
@Service
|
||||||
public class Online3DFilePreviewImpl implements FilePreview {
|
public class Online3DFilePreviewImpl implements FilePreview {
|
||||||
|
|
||||||
private final PictureFilePreviewImpl pictureFilePreview;
|
private final CommonPreviewImpl commonPreview;
|
||||||
|
|
||||||
public Online3DFilePreviewImpl(PictureFilePreviewImpl pictureFilePreview) {
|
public Online3DFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
||||||
this.pictureFilePreview = pictureFilePreview;
|
this.commonPreview = commonPreview;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||||
pictureFilePreview.filePreviewHandle(url,model,fileAttribute);
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
||||||
return Online3D_FILE_PAGE;
|
return Online3D_FILE_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,12 +18,13 @@ import java.util.List;
|
|||||||
* Content :图片文件处理
|
* Content :图片文件处理
|
||||||
*/
|
*/
|
||||||
@Service
|
@Service
|
||||||
public class PictureFilePreviewImpl implements FilePreview {
|
public class PictureFilePreviewImpl extends CommonPreviewImpl {
|
||||||
|
|
||||||
private final FileHandlerService fileHandlerService;
|
private final FileHandlerService fileHandlerService;
|
||||||
private final OtherFilePreviewImpl otherFilePreview;
|
private final OtherFilePreviewImpl otherFilePreview;
|
||||||
|
|
||||||
public PictureFilePreviewImpl(FileHandlerService fileHandlerService, OtherFilePreviewImpl otherFilePreview) {
|
public PictureFilePreviewImpl(FileHandlerService fileHandlerService, OtherFilePreviewImpl otherFilePreview) {
|
||||||
|
super(fileHandlerService, otherFilePreview);
|
||||||
this.fileHandlerService = fileHandlerService;
|
this.fileHandlerService = fileHandlerService;
|
||||||
this.otherFilePreview = otherFilePreview;
|
this.otherFilePreview = otherFilePreview;
|
||||||
}
|
}
|
||||||
@@ -39,21 +40,8 @@ public class PictureFilePreviewImpl implements FilePreview {
|
|||||||
imgUrls.addAll(zipImgUrls);
|
imgUrls.addAll(zipImgUrls);
|
||||||
}
|
}
|
||||||
// 不是http开头,浏览器不能直接访问,需下载到本地
|
// 不是http开头,浏览器不能直接访问,需下载到本地
|
||||||
if (url != null && !url.toLowerCase().startsWith("http")) {
|
super.filePreviewHandle(url, model, fileAttribute);
|
||||||
ReturnResponse<String> response = DownloadUtils.downLoad(fileAttribute, null);
|
model.addAttribute("imgUrls", imgUrls);
|
||||||
if (response.isFailure()) {
|
|
||||||
return otherFilePreview.notSupportedFile(model, fileAttribute, response.getMsg());
|
|
||||||
} else {
|
|
||||||
String file = fileHandlerService.getRelativePath(response.getContent());
|
|
||||||
imgUrls.clear();
|
|
||||||
imgUrls.add(file);
|
|
||||||
model.addAttribute("imgUrls", imgUrls);
|
|
||||||
model.addAttribute("currentUrl", file);
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
model.addAttribute("imgUrls", imgUrls);
|
|
||||||
model.addAttribute("currentUrl", url);
|
|
||||||
}
|
|
||||||
return PICTURE_FILE_PREVIEW_PAGE;
|
return PICTURE_FILE_PREVIEW_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ import org.springframework.ui.Model;
|
|||||||
@Service
|
@Service
|
||||||
public class SvgFilePreviewImpl implements FilePreview {
|
public class SvgFilePreviewImpl implements FilePreview {
|
||||||
|
|
||||||
private final PictureFilePreviewImpl pictureFilePreview;
|
private final CommonPreviewImpl commonPreview;
|
||||||
|
|
||||||
public SvgFilePreviewImpl(PictureFilePreviewImpl pictureFilePreview) {
|
public SvgFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
||||||
this.pictureFilePreview = pictureFilePreview;
|
this.commonPreview = commonPreview;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||||
pictureFilePreview.filePreviewHandle(url,model,fileAttribute);
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
||||||
return SVG_FILE_PREVIEW_PAGE;
|
return SVG_FILE_PREVIEW_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -13,15 +13,15 @@ import org.springframework.ui.Model;
|
|||||||
@Service
|
@Service
|
||||||
public class XmindFilePreviewImpl implements FilePreview {
|
public class XmindFilePreviewImpl implements FilePreview {
|
||||||
|
|
||||||
private final PictureFilePreviewImpl pictureFilePreview;
|
private final CommonPreviewImpl commonPreview;
|
||||||
|
|
||||||
public XmindFilePreviewImpl(PictureFilePreviewImpl pictureFilePreview) {
|
public XmindFilePreviewImpl(CommonPreviewImpl commonPreview) {
|
||||||
this.pictureFilePreview = pictureFilePreview;
|
this.commonPreview = commonPreview;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
public String filePreviewHandle(String url, Model model, FileAttribute fileAttribute) {
|
||||||
pictureFilePreview.filePreviewHandle(url,model,fileAttribute);
|
commonPreview.filePreviewHandle(url,model,fileAttribute);
|
||||||
return XMIND_FILE_PREVIEW_PAGE;
|
return XMIND_FILE_PREVIEW_PAGE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
144
server/src/main/resources/static/bpmn/bpmn-js.css
Normal file
144
server/src/main/resources/static/bpmn/bpmn-js.css
Normal file
@@ -0,0 +1,144 @@
|
|||||||
|
.bjs-container {
|
||||||
|
--bjs-font-family: Arial, sans-serif;
|
||||||
|
|
||||||
|
--color-grey-225-10-15: hsl(225, 10%, 15%);
|
||||||
|
--color-grey-225-10-35: hsl(225, 10%, 35%);
|
||||||
|
--color-grey-225-10-55: hsl(225, 10%, 55%);
|
||||||
|
--color-grey-225-10-75: hsl(225, 10%, 75%);
|
||||||
|
--color-grey-225-10-80: hsl(225, 10%, 80%);
|
||||||
|
--color-grey-225-10-85: hsl(225, 10%, 85%);
|
||||||
|
--color-grey-225-10-90: hsl(225, 10%, 90%);
|
||||||
|
--color-grey-225-10-95: hsl(225, 10%, 95%);
|
||||||
|
--color-grey-225-10-97: hsl(225, 10%, 97%);
|
||||||
|
|
||||||
|
--color-blue-205-100-45: hsl(205, 100%, 45%);
|
||||||
|
--color-blue-205-100-45-opacity-30: hsla(205, 100%, 45%, 30%);
|
||||||
|
--color-blue-205-100-50: hsl(205, 100%, 50%);
|
||||||
|
--color-blue-205-100-95: hsl(205, 100%, 95%);
|
||||||
|
|
||||||
|
--color-green-150-86-44: hsl(150, 86%, 44%);
|
||||||
|
|
||||||
|
--color-red-360-100-40: hsl(360, 100%, 40%);
|
||||||
|
--color-red-360-100-45: hsl(360, 100%, 45%);
|
||||||
|
--color-red-360-100-92: hsl(360, 100%, 92%);
|
||||||
|
--color-red-360-100-97: hsl(360, 100%, 97%);
|
||||||
|
|
||||||
|
--color-white: hsl(0, 0%, 100%);
|
||||||
|
--color-black: hsl(0, 0%, 0%);
|
||||||
|
--color-black-opacity-05: hsla(0, 0%, 0%, 5%);
|
||||||
|
--color-black-opacity-10: hsla(0, 0%, 0%, 10%);
|
||||||
|
|
||||||
|
--breadcrumbs-font-family: var(--bjs-font-family);
|
||||||
|
--breadcrumbs-item-color: var(--color-blue-205-100-50);
|
||||||
|
--breadcrumbs-arrow-color: var(--color-black);
|
||||||
|
--drilldown-fill-color: var(--color-white);
|
||||||
|
--drilldown-background-color: var(--color-blue-205-100-50);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-breadcrumbs {
|
||||||
|
position: absolute;
|
||||||
|
display: none;
|
||||||
|
flex-wrap: wrap;
|
||||||
|
align-items: center;
|
||||||
|
top: 30px;
|
||||||
|
left: 30px;
|
||||||
|
padding: 0px;
|
||||||
|
margin: 0px;
|
||||||
|
font-family: var(--breadcrumbs-font-family);
|
||||||
|
font-size: 16px;
|
||||||
|
line-height: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-breadcrumbs-shown .bjs-breadcrumbs {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
.djs-palette-shown .bjs-breadcrumbs {
|
||||||
|
left: 90px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.djs-palette-shown.djs-palette-two-column .bjs-breadcrumbs {
|
||||||
|
left: 140px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-breadcrumbs li {
|
||||||
|
display: inline-flex;
|
||||||
|
padding-bottom: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-breadcrumbs li a {
|
||||||
|
cursor: pointer;
|
||||||
|
color: var(--breadcrumbs-item-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-breadcrumbs li:last-of-type a {
|
||||||
|
color: inherit;
|
||||||
|
cursor: default;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-breadcrumbs li:not(:first-child)::before {
|
||||||
|
content: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="17" height="17" viewBox="0 0 24 24"><path d="M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z" /><path d="M0 0h24v24H0z" fill="none" /></svg>');
|
||||||
|
padding: 0 8px;
|
||||||
|
color: var(--breadcrumbs-arrow-color);
|
||||||
|
height: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-breadcrumbs .bjs-crumb {
|
||||||
|
display: inline-block;
|
||||||
|
max-width: 200px;
|
||||||
|
overflow: hidden;
|
||||||
|
text-overflow: ellipsis;
|
||||||
|
white-space: nowrap;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-drilldown {
|
||||||
|
width: 20px;
|
||||||
|
height: 20px;
|
||||||
|
|
||||||
|
padding: 0px;
|
||||||
|
margin-left: -20px;
|
||||||
|
|
||||||
|
cursor: pointer;
|
||||||
|
border: none;
|
||||||
|
border-radius: 2px;
|
||||||
|
outline: none;
|
||||||
|
|
||||||
|
fill: var(--drilldown-fill-color);
|
||||||
|
background-color: var(--drilldown-background-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
.bjs-drilldown-empty {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.selected .bjs-drilldown-empty {
|
||||||
|
display: inherit;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-popup="align-elements"] .djs-popup-results {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-popup="align-elements"] .djs-popup-body [data-group] + [data-group] {
|
||||||
|
border-left: 1px solid var(--popup-border-color);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-popup="align-elements"] [data-group="align"] {
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: repeat(3, 1fr);
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-popup="align-elements"] .djs-popup-body .entry {
|
||||||
|
padding: 6px 8px;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-popup="align-elements"] .djs-popup-body .entry:not(:first-child) {
|
||||||
|
margin-top: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
[data-popup="align-elements"] .djs-popup-entry-icon {
|
||||||
|
display: block;
|
||||||
|
margin: 0;
|
||||||
|
height: 20px;
|
||||||
|
width: 20px;
|
||||||
|
}
|
||||||
62804
server/src/main/resources/static/bpmn/bpmn-modeler.development.js
Normal file
62804
server/src/main/resources/static/bpmn/bpmn-modeler.development.js
Normal file
File diff suppressed because one or more lines are too long
163
server/src/main/resources/static/bpmn/bpmn.css
Normal file
163
server/src/main/resources/static/bpmn/bpmn.css
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'bpmn';
|
||||||
|
src: url('../font/bpmn.eot?21877404');
|
||||||
|
src: url('../font/bpmn.eot?21877404#iefix') format('embedded-opentype'),
|
||||||
|
url('../font/bpmn.woff2?21877404') format('woff2'),
|
||||||
|
url('../font/bpmn.woff?21877404') format('woff'),
|
||||||
|
url('../font/bpmn.ttf?21877404') format('truetype'),
|
||||||
|
url('../font/bpmn.svg?21877404#bpmn') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
||||||
|
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
||||||
|
/*
|
||||||
|
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||||
|
@font-face {
|
||||||
|
font-family: 'bpmn';
|
||||||
|
src: url('../font/bpmn.svg?21877404#bpmn') format('svg');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
[class^="bpmn-icon-"]:before, [class*=" bpmn-icon-"]:before {
|
||||||
|
font-family: "bpmn";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
speak: never;
|
||||||
|
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: inherit;
|
||||||
|
width: 1em;
|
||||||
|
/* margin-right: .2em; */
|
||||||
|
text-align: center;
|
||||||
|
/* opacity: .8; */
|
||||||
|
|
||||||
|
/* For safety - reset parent styles, that can break glyph codes*/
|
||||||
|
font-variant: normal;
|
||||||
|
text-transform: none;
|
||||||
|
|
||||||
|
/* fix buttons height, for twitter bootstrap */
|
||||||
|
line-height: 1em;
|
||||||
|
|
||||||
|
/* Animation center compensation - margins should be symmetric */
|
||||||
|
/* remove if not needed */
|
||||||
|
/* margin-left: .2em; */
|
||||||
|
|
||||||
|
/* you can be more comfortable with increased icons size */
|
||||||
|
/* font-size: 120%; */
|
||||||
|
|
||||||
|
/* Font smoothing. That was taken from TWBS */
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
|
/* Uncomment for 3D effect */
|
||||||
|
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
||||||
|
}
|
||||||
|
|
||||||
|
.bpmn-icon-trash:before { content: '\e801'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-parallel:before { content: '\e804'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-cancel:before { content: '\e805'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\e806'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-compensation:before { content: '\e807'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\e808'; } /* '' */
|
||||||
|
.bpmn-icon-loop-marker:before { content: '\e809'; } /* '' */
|
||||||
|
.bpmn-icon-parallel-mi-marker:before { content: '\e80a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-signal:before { content: '\e80b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\e80c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\e80d'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-compensation:before { content: '\e80e'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-xor:before { content: '\e80f'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-cancel:before { content: '\e811'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-condition:before { content: '\e812'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\e813'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-condition:before { content: '\e814'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-timer:before { content: '\e815'; } /* '' */
|
||||||
|
.bpmn-icon-sequential-mi-marker:before { content: '\e816'; } /* '' */
|
||||||
|
.bpmn-icon-user-task:before { content: '\e817'; } /* '' */
|
||||||
|
.bpmn-icon-business-rule:before { content: '\e818'; } /* '' */
|
||||||
|
.bpmn-icon-sub-process-marker:before { content: '\e819'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-parallel-multiple:before { content: '\e81a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-error:before { content: '\e81b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-signal:before { content: '\e81c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-error:before { content: '\e81d'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-compensation:before { content: '\e81e'; } /* '' */
|
||||||
|
.bpmn-icon-subprocess-collapsed:before { content: '\e81f'; } /* '' */
|
||||||
|
.bpmn-icon-subprocess-expanded:before { content: '\e820'; } /* '' */
|
||||||
|
.bpmn-icon-task:before { content: '\e821'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-error:before { content: '\e822'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-escalation:before { content: '\e823'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-timer:before { content: '\e824'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-escalation:before { content: '\e825'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-signal:before { content: '\e826'; } /* '' */
|
||||||
|
.bpmn-icon-business-rule-task:before { content: '\e827'; } /* '' */
|
||||||
|
.bpmn-icon-manual:before { content: '\e828'; } /* '' */
|
||||||
|
.bpmn-icon-receive:before { content: '\e829'; } /* '' */
|
||||||
|
.bpmn-icon-call-activity:before { content: '\e82a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-timer:before { content: '\e82b'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-message:before { content: '\e82c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-none:before { content: '\e82d'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-link:before { content: '\e82e'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-escalation:before { content: '\e82f'; } /* '' */
|
||||||
|
.bpmn-icon-bpmn-io:before { content: '\e831'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-complex:before { content: '\e832'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-eventbased:before { content: '\e833'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-none:before { content: '\e834'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-or:before { content: '\e835'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-terminate:before { content: '\e836'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-signal:before { content: '\e837'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-none:before { content: '\e838'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-multiple:before { content: '\e839'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-message:before { content: '\e83a'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-link:before { content: '\e83b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-message:before { content: '\e83c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-compensation:before { content: '\e83d'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-multiple:before { content: '\e83e'; } /* '' */
|
||||||
|
.bpmn-icon-script:before { content: '\e83f'; } /* '' */
|
||||||
|
.bpmn-icon-manual-task:before { content: '\e840'; } /* '' */
|
||||||
|
.bpmn-icon-send:before { content: '\e841'; } /* '' */
|
||||||
|
.bpmn-icon-service:before { content: '\e842'; } /* '' */
|
||||||
|
.bpmn-icon-receive-task:before { content: '\e843'; } /* '' */
|
||||||
|
.bpmn-icon-user:before { content: '\e844'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-none:before { content: '\e845'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-escalation:before { content: '\e846'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-multiple:before { content: '\e847'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\e848'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-link:before { content: '\e849'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-condition:before { content: '\e84a'; } /* '' */
|
||||||
|
.bpmn-icon-data-object:before { content: '\e84b'; } /* '' */
|
||||||
|
.bpmn-icon-script-task:before { content: '\e84c'; } /* '' */
|
||||||
|
.bpmn-icon-send-task:before { content: '\e84d'; } /* '' */
|
||||||
|
.bpmn-icon-data-store:before { content: '\e84e'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\e84f'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-message:before { content: '\e850'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\e851'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\e852'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-multiple:before { content: '\e853'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-message:before { content: '\e854'; } /* '' */
|
||||||
|
.bpmn-icon-ad-hoc-marker:before { content: '\e855'; } /* '' */
|
||||||
|
.bpmn-icon-service-task:before { content: '\e856'; } /* '' */
|
||||||
|
.bpmn-icon-task-none:before { content: '\e857'; } /* '' */
|
||||||
|
.bpmn-icon-compensation-marker:before { content: '\e858'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\e859'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-signal:before { content: '\e85a'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\e85b'; } /* '' */
|
||||||
|
.bpmn-icon-participant:before { content: '\e85c'; } /* '' */
|
||||||
|
.bpmn-icon-event-subprocess-expanded:before { content: '\e85d'; } /* '' */
|
||||||
|
.bpmn-icon-lane-insert-below:before { content: '\e85e'; } /* '' */
|
||||||
|
.bpmn-icon-space-tool:before { content: '\e85f'; } /* '' */
|
||||||
|
.bpmn-icon-connection-multi:before { content: '\e860'; } /* '' */
|
||||||
|
.bpmn-icon-lane:before { content: '\e861'; } /* '' */
|
||||||
|
.bpmn-icon-lasso-tool:before { content: '\e862'; } /* '' */
|
||||||
|
.bpmn-icon-lane-insert-above:before { content: '\e863'; } /* '' */
|
||||||
|
.bpmn-icon-lane-divide-three:before { content: '\e864'; } /* '' */
|
||||||
|
.bpmn-icon-lane-divide-two:before { content: '\e865'; } /* '' */
|
||||||
|
.bpmn-icon-data-input:before { content: '\e866'; } /* '' */
|
||||||
|
.bpmn-icon-data-output:before { content: '\e867'; } /* '' */
|
||||||
|
.bpmn-icon-hand-tool:before { content: '\e868'; } /* '' */
|
||||||
|
.bpmn-icon-group:before { content: '\e869'; } /* '' */
|
||||||
|
.bpmn-icon-text-annotation:before { content: '\e86b'; } /* '' */
|
||||||
|
.bpmn-icon-transaction:before { content: '\e8c4'; } /* '' */
|
||||||
|
.bpmn-icon-screw-wrench:before { content: '\e8db'; } /* '' */
|
||||||
|
.bpmn-icon-connection:before { content: '\e8dc'; } /* '' */
|
||||||
|
.bpmn-icon-conditional-flow:before { content: '\e8e0'; } /* '' */
|
||||||
|
.bpmn-icon-default-flow:before { content: '\e8e1'; } /* '' */
|
||||||
108
server/src/main/resources/static/bpmn/css/bpmn-codes.css
Normal file
108
server/src/main/resources/static/bpmn/css/bpmn-codes.css
Normal file
@@ -0,0 +1,108 @@
|
|||||||
|
|
||||||
|
.bpmn-icon-trash:before { content: '\e801'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-parallel:before { content: '\e804'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-cancel:before { content: '\e805'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\e806'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-compensation:before { content: '\e807'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\e808'; } /* '' */
|
||||||
|
.bpmn-icon-loop-marker:before { content: '\e809'; } /* '' */
|
||||||
|
.bpmn-icon-parallel-mi-marker:before { content: '\e80a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-signal:before { content: '\e80b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\e80c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\e80d'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-compensation:before { content: '\e80e'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-xor:before { content: '\e80f'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-cancel:before { content: '\e811'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-condition:before { content: '\e812'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\e813'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-condition:before { content: '\e814'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-timer:before { content: '\e815'; } /* '' */
|
||||||
|
.bpmn-icon-sequential-mi-marker:before { content: '\e816'; } /* '' */
|
||||||
|
.bpmn-icon-user-task:before { content: '\e817'; } /* '' */
|
||||||
|
.bpmn-icon-business-rule:before { content: '\e818'; } /* '' */
|
||||||
|
.bpmn-icon-sub-process-marker:before { content: '\e819'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-parallel-multiple:before { content: '\e81a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-error:before { content: '\e81b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-signal:before { content: '\e81c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-error:before { content: '\e81d'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-compensation:before { content: '\e81e'; } /* '' */
|
||||||
|
.bpmn-icon-subprocess-collapsed:before { content: '\e81f'; } /* '' */
|
||||||
|
.bpmn-icon-subprocess-expanded:before { content: '\e820'; } /* '' */
|
||||||
|
.bpmn-icon-task:before { content: '\e821'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-error:before { content: '\e822'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-escalation:before { content: '\e823'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-timer:before { content: '\e824'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-escalation:before { content: '\e825'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-signal:before { content: '\e826'; } /* '' */
|
||||||
|
.bpmn-icon-business-rule-task:before { content: '\e827'; } /* '' */
|
||||||
|
.bpmn-icon-manual:before { content: '\e828'; } /* '' */
|
||||||
|
.bpmn-icon-receive:before { content: '\e829'; } /* '' */
|
||||||
|
.bpmn-icon-call-activity:before { content: '\e82a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-timer:before { content: '\e82b'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-message:before { content: '\e82c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-none:before { content: '\e82d'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-link:before { content: '\e82e'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-escalation:before { content: '\e82f'; } /* '' */
|
||||||
|
.bpmn-icon-bpmn-io:before { content: '\e831'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-complex:before { content: '\e832'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-eventbased:before { content: '\e833'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-none:before { content: '\e834'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-or:before { content: '\e835'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-terminate:before { content: '\e836'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-signal:before { content: '\e837'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-none:before { content: '\e838'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-multiple:before { content: '\e839'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-message:before { content: '\e83a'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-link:before { content: '\e83b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-message:before { content: '\e83c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-compensation:before { content: '\e83d'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-multiple:before { content: '\e83e'; } /* '' */
|
||||||
|
.bpmn-icon-script:before { content: '\e83f'; } /* '' */
|
||||||
|
.bpmn-icon-manual-task:before { content: '\e840'; } /* '' */
|
||||||
|
.bpmn-icon-send:before { content: '\e841'; } /* '' */
|
||||||
|
.bpmn-icon-service:before { content: '\e842'; } /* '' */
|
||||||
|
.bpmn-icon-receive-task:before { content: '\e843'; } /* '' */
|
||||||
|
.bpmn-icon-user:before { content: '\e844'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-none:before { content: '\e845'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-escalation:before { content: '\e846'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-multiple:before { content: '\e847'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\e848'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-link:before { content: '\e849'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-condition:before { content: '\e84a'; } /* '' */
|
||||||
|
.bpmn-icon-data-object:before { content: '\e84b'; } /* '' */
|
||||||
|
.bpmn-icon-script-task:before { content: '\e84c'; } /* '' */
|
||||||
|
.bpmn-icon-send-task:before { content: '\e84d'; } /* '' */
|
||||||
|
.bpmn-icon-data-store:before { content: '\e84e'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\e84f'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-message:before { content: '\e850'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\e851'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\e852'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-multiple:before { content: '\e853'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-message:before { content: '\e854'; } /* '' */
|
||||||
|
.bpmn-icon-ad-hoc-marker:before { content: '\e855'; } /* '' */
|
||||||
|
.bpmn-icon-service-task:before { content: '\e856'; } /* '' */
|
||||||
|
.bpmn-icon-task-none:before { content: '\e857'; } /* '' */
|
||||||
|
.bpmn-icon-compensation-marker:before { content: '\e858'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\e859'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-signal:before { content: '\e85a'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\e85b'; } /* '' */
|
||||||
|
.bpmn-icon-participant:before { content: '\e85c'; } /* '' */
|
||||||
|
.bpmn-icon-event-subprocess-expanded:before { content: '\e85d'; } /* '' */
|
||||||
|
.bpmn-icon-lane-insert-below:before { content: '\e85e'; } /* '' */
|
||||||
|
.bpmn-icon-space-tool:before { content: '\e85f'; } /* '' */
|
||||||
|
.bpmn-icon-connection-multi:before { content: '\e860'; } /* '' */
|
||||||
|
.bpmn-icon-lane:before { content: '\e861'; } /* '' */
|
||||||
|
.bpmn-icon-lasso-tool:before { content: '\e862'; } /* '' */
|
||||||
|
.bpmn-icon-lane-insert-above:before { content: '\e863'; } /* '' */
|
||||||
|
.bpmn-icon-lane-divide-three:before { content: '\e864'; } /* '' */
|
||||||
|
.bpmn-icon-lane-divide-two:before { content: '\e865'; } /* '' */
|
||||||
|
.bpmn-icon-data-input:before { content: '\e866'; } /* '' */
|
||||||
|
.bpmn-icon-data-output:before { content: '\e867'; } /* '' */
|
||||||
|
.bpmn-icon-hand-tool:before { content: '\e868'; } /* '' */
|
||||||
|
.bpmn-icon-group:before { content: '\e869'; } /* '' */
|
||||||
|
.bpmn-icon-text-annotation:before { content: '\e86b'; } /* '' */
|
||||||
|
.bpmn-icon-transaction:before { content: '\e8c4'; } /* '' */
|
||||||
|
.bpmn-icon-screw-wrench:before { content: '\e8db'; } /* '' */
|
||||||
|
.bpmn-icon-connection:before { content: '\e8dc'; } /* '' */
|
||||||
|
.bpmn-icon-conditional-flow:before { content: '\e8e0'; } /* '' */
|
||||||
|
.bpmn-icon-default-flow:before { content: '\e8e1'; } /* '' */
|
||||||
166
server/src/main/resources/static/bpmn/css/bpmn-embedded.css
Normal file
166
server/src/main/resources/static/bpmn/css/bpmn-embedded.css
Normal file
File diff suppressed because one or more lines are too long
163
server/src/main/resources/static/bpmn/css/bpmn.css
Normal file
163
server/src/main/resources/static/bpmn/css/bpmn.css
Normal file
@@ -0,0 +1,163 @@
|
|||||||
|
@font-face {
|
||||||
|
font-family: 'bpmn';
|
||||||
|
src: url('../font/bpmn.eot?21877404');
|
||||||
|
src: url('../font/bpmn.eot?21877404#iefix') format('embedded-opentype'),
|
||||||
|
url('../font/bpmn.woff2?21877404') format('woff2'),
|
||||||
|
url('../font/bpmn.woff?21877404') format('woff'),
|
||||||
|
url('../font/bpmn.ttf?21877404') format('truetype'),
|
||||||
|
url('../font/bpmn.svg?21877404#bpmn') format('svg');
|
||||||
|
font-weight: normal;
|
||||||
|
font-style: normal;
|
||||||
|
}
|
||||||
|
/* Chrome hack: SVG is rendered more smooth in Windozze. 100% magic, uncomment if you need it. */
|
||||||
|
/* Note, that will break hinting! In other OS-es font will be not as sharp as it could be */
|
||||||
|
/*
|
||||||
|
@media screen and (-webkit-min-device-pixel-ratio:0) {
|
||||||
|
@font-face {
|
||||||
|
font-family: 'bpmn';
|
||||||
|
src: url('../font/bpmn.svg?21877404#bpmn') format('svg');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
*/
|
||||||
|
[class^="bpmn-icon-"]:before, [class*=" bpmn-icon-"]:before {
|
||||||
|
font-family: "bpmn";
|
||||||
|
font-style: normal;
|
||||||
|
font-weight: normal;
|
||||||
|
speak: never;
|
||||||
|
|
||||||
|
display: inline-block;
|
||||||
|
text-decoration: inherit;
|
||||||
|
width: 1em;
|
||||||
|
/* margin-right: .2em; */
|
||||||
|
text-align: center;
|
||||||
|
/* opacity: .8; */
|
||||||
|
|
||||||
|
/* For safety - reset parent styles, that can break glyph codes*/
|
||||||
|
font-variant: normal;
|
||||||
|
text-transform: none;
|
||||||
|
|
||||||
|
/* fix buttons height, for twitter bootstrap */
|
||||||
|
line-height: 1em;
|
||||||
|
|
||||||
|
/* Animation center compensation - margins should be symmetric */
|
||||||
|
/* remove if not needed */
|
||||||
|
/* margin-left: .2em; */
|
||||||
|
|
||||||
|
/* you can be more comfortable with increased icons size */
|
||||||
|
/* font-size: 120%; */
|
||||||
|
|
||||||
|
/* Font smoothing. That was taken from TWBS */
|
||||||
|
-webkit-font-smoothing: antialiased;
|
||||||
|
-moz-osx-font-smoothing: grayscale;
|
||||||
|
|
||||||
|
/* Uncomment for 3D effect */
|
||||||
|
/* text-shadow: 1px 1px 1px rgba(127, 127, 127, 0.3); */
|
||||||
|
}
|
||||||
|
|
||||||
|
.bpmn-icon-trash:before { content: '\e801'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-parallel:before { content: '\e804'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-cancel:before { content: '\e805'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-message:before { content: '\e806'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-compensation:before { content: '\e807'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-parallel-multiple:before { content: '\e808'; } /* '' */
|
||||||
|
.bpmn-icon-loop-marker:before { content: '\e809'; } /* '' */
|
||||||
|
.bpmn-icon-parallel-mi-marker:before { content: '\e80a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-signal:before { content: '\e80b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-timer:before { content: '\e80c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-parallel-multiple:before { content: '\e80d'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-compensation:before { content: '\e80e'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-xor:before { content: '\e80f'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-cancel:before { content: '\e811'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-condition:before { content: '\e812'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-parallel-multiple:before { content: '\e813'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-condition:before { content: '\e814'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-timer:before { content: '\e815'; } /* '' */
|
||||||
|
.bpmn-icon-sequential-mi-marker:before { content: '\e816'; } /* '' */
|
||||||
|
.bpmn-icon-user-task:before { content: '\e817'; } /* '' */
|
||||||
|
.bpmn-icon-business-rule:before { content: '\e818'; } /* '' */
|
||||||
|
.bpmn-icon-sub-process-marker:before { content: '\e819'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-parallel-multiple:before { content: '\e81a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-error:before { content: '\e81b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-signal:before { content: '\e81c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-error:before { content: '\e81d'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-compensation:before { content: '\e81e'; } /* '' */
|
||||||
|
.bpmn-icon-subprocess-collapsed:before { content: '\e81f'; } /* '' */
|
||||||
|
.bpmn-icon-subprocess-expanded:before { content: '\e820'; } /* '' */
|
||||||
|
.bpmn-icon-task:before { content: '\e821'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-error:before { content: '\e822'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-escalation:before { content: '\e823'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-timer:before { content: '\e824'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-escalation:before { content: '\e825'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-signal:before { content: '\e826'; } /* '' */
|
||||||
|
.bpmn-icon-business-rule-task:before { content: '\e827'; } /* '' */
|
||||||
|
.bpmn-icon-manual:before { content: '\e828'; } /* '' */
|
||||||
|
.bpmn-icon-receive:before { content: '\e829'; } /* '' */
|
||||||
|
.bpmn-icon-call-activity:before { content: '\e82a'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-timer:before { content: '\e82b'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-message:before { content: '\e82c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-none:before { content: '\e82d'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-link:before { content: '\e82e'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-escalation:before { content: '\e82f'; } /* '' */
|
||||||
|
.bpmn-icon-bpmn-io:before { content: '\e831'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-complex:before { content: '\e832'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-eventbased:before { content: '\e833'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-none:before { content: '\e834'; } /* '' */
|
||||||
|
.bpmn-icon-gateway-or:before { content: '\e835'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-terminate:before { content: '\e836'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-signal:before { content: '\e837'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-none:before { content: '\e838'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-multiple:before { content: '\e839'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-message:before { content: '\e83a'; } /* '' */
|
||||||
|
.bpmn-icon-end-event-link:before { content: '\e83b'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-message:before { content: '\e83c'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-compensation:before { content: '\e83d'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-multiple:before { content: '\e83e'; } /* '' */
|
||||||
|
.bpmn-icon-script:before { content: '\e83f'; } /* '' */
|
||||||
|
.bpmn-icon-manual-task:before { content: '\e840'; } /* '' */
|
||||||
|
.bpmn-icon-send:before { content: '\e841'; } /* '' */
|
||||||
|
.bpmn-icon-service:before { content: '\e842'; } /* '' */
|
||||||
|
.bpmn-icon-receive-task:before { content: '\e843'; } /* '' */
|
||||||
|
.bpmn-icon-user:before { content: '\e844'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-none:before { content: '\e845'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-escalation:before { content: '\e846'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-multiple:before { content: '\e847'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-escalation:before { content: '\e848'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-link:before { content: '\e849'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-condition:before { content: '\e84a'; } /* '' */
|
||||||
|
.bpmn-icon-data-object:before { content: '\e84b'; } /* '' */
|
||||||
|
.bpmn-icon-script-task:before { content: '\e84c'; } /* '' */
|
||||||
|
.bpmn-icon-send-task:before { content: '\e84d'; } /* '' */
|
||||||
|
.bpmn-icon-data-store:before { content: '\e84e'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-escalation:before { content: '\e84f'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-message:before { content: '\e850'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-multiple:before { content: '\e851'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-signal:before { content: '\e852'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-multiple:before { content: '\e853'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-message:before { content: '\e854'; } /* '' */
|
||||||
|
.bpmn-icon-ad-hoc-marker:before { content: '\e855'; } /* '' */
|
||||||
|
.bpmn-icon-service-task:before { content: '\e856'; } /* '' */
|
||||||
|
.bpmn-icon-task-none:before { content: '\e857'; } /* '' */
|
||||||
|
.bpmn-icon-compensation-marker:before { content: '\e858'; } /* '' */
|
||||||
|
.bpmn-icon-start-event-non-interrupting-multiple:before { content: '\e859'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-throw-signal:before { content: '\e85a'; } /* '' */
|
||||||
|
.bpmn-icon-intermediate-event-catch-non-interrupting-condition:before { content: '\e85b'; } /* '' */
|
||||||
|
.bpmn-icon-participant:before { content: '\e85c'; } /* '' */
|
||||||
|
.bpmn-icon-event-subprocess-expanded:before { content: '\e85d'; } /* '' */
|
||||||
|
.bpmn-icon-lane-insert-below:before { content: '\e85e'; } /* '' */
|
||||||
|
.bpmn-icon-space-tool:before { content: '\e85f'; } /* '' */
|
||||||
|
.bpmn-icon-connection-multi:before { content: '\e860'; } /* '' */
|
||||||
|
.bpmn-icon-lane:before { content: '\e861'; } /* '' */
|
||||||
|
.bpmn-icon-lasso-tool:before { content: '\e862'; } /* '' */
|
||||||
|
.bpmn-icon-lane-insert-above:before { content: '\e863'; } /* '' */
|
||||||
|
.bpmn-icon-lane-divide-three:before { content: '\e864'; } /* '' */
|
||||||
|
.bpmn-icon-lane-divide-two:before { content: '\e865'; } /* '' */
|
||||||
|
.bpmn-icon-data-input:before { content: '\e866'; } /* '' */
|
||||||
|
.bpmn-icon-data-output:before { content: '\e867'; } /* '' */
|
||||||
|
.bpmn-icon-hand-tool:before { content: '\e868'; } /* '' */
|
||||||
|
.bpmn-icon-group:before { content: '\e869'; } /* '' */
|
||||||
|
.bpmn-icon-text-annotation:before { content: '\e86b'; } /* '' */
|
||||||
|
.bpmn-icon-transaction:before { content: '\e8c4'; } /* '' */
|
||||||
|
.bpmn-icon-screw-wrench:before { content: '\e8db'; } /* '' */
|
||||||
|
.bpmn-icon-connection:before { content: '\e8dc'; } /* '' */
|
||||||
|
.bpmn-icon-conditional-flow:before { content: '\e8e0'; } /* '' */
|
||||||
|
.bpmn-icon-default-flow:before { content: '\e8e1'; } /* '' */
|
||||||
986
server/src/main/resources/static/bpmn/diagram-js.css
Normal file
986
server/src/main/resources/static/bpmn/diagram-js.css
Normal file
File diff suppressed because it is too large
Load Diff
BIN
server/src/main/resources/static/bpmn/font/bpmn.eot
Normal file
BIN
server/src/main/resources/static/bpmn/font/bpmn.eot
Normal file
Binary file not shown.
224
server/src/main/resources/static/bpmn/font/bpmn.svg
Normal file
224
server/src/main/resources/static/bpmn/font/bpmn.svg
Normal file
File diff suppressed because one or more lines are too long
|
After Width: | Height: | Size: 130 KiB |
BIN
server/src/main/resources/static/bpmn/font/bpmn.ttf
Normal file
BIN
server/src/main/resources/static/bpmn/font/bpmn.ttf
Normal file
Binary file not shown.
BIN
server/src/main/resources/static/bpmn/font/bpmn.woff
Normal file
BIN
server/src/main/resources/static/bpmn/font/bpmn.woff
Normal file
Binary file not shown.
BIN
server/src/main/resources/static/bpmn/font/bpmn.woff2
Normal file
BIN
server/src/main/resources/static/bpmn/font/bpmn.woff2
Normal file
Binary file not shown.
44
server/src/main/resources/web/bpmn.ftl
Normal file
44
server/src/main/resources/web/bpmn.ftl
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8">
|
||||||
|
<meta http-equiv="content-type" content="text/html; charset=utf-8">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
||||||
|
<#include "*/commonHeader.ftl">
|
||||||
|
<style>
|
||||||
|
html, body, #diagram {
|
||||||
|
height: 100%
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<title>kkFileView Bpmn</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<h2>kkFileView Bpmn : ${fileName}</h2>
|
||||||
|
|
||||||
|
<div id="diagram"></div>
|
||||||
|
|
||||||
|
<!-- required modeler styles -->
|
||||||
|
<link rel="stylesheet" href="bpmn/diagram-js.css">
|
||||||
|
<link rel="stylesheet" href="bpmn/bpmn-js.css">
|
||||||
|
<link rel="stylesheet" href="bpmn/css/bpmn.css">
|
||||||
|
|
||||||
|
<!-- modeler distro -->
|
||||||
|
<script src="bpmn/bpmn-modeler.development.js"></script>
|
||||||
|
<script src="js/jquery-3.6.1.min.js"></script>
|
||||||
|
|
||||||
|
<!-- app -->
|
||||||
|
<script>
|
||||||
|
|
||||||
|
const viewer = new BpmnJS({
|
||||||
|
container: '#diagram'
|
||||||
|
});
|
||||||
|
|
||||||
|
async function showDiagram(diagramXML) {
|
||||||
|
await viewer.importXML(diagramXML);
|
||||||
|
}
|
||||||
|
// load + show diagram
|
||||||
|
$.get('${currentUrl}', showDiagram, 'text');
|
||||||
|
</script>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user