@chamn/engine 0.0.26 → 0.0.28
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/component/Workbench/index.d.ts +11 -0
- package/dist/component/Workbench/style.module.scss.d.ts +1 -0
- package/dist/index.js +40 -40
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5137 -5054
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/Designer/type.d.ts +4 -1
- package/dist/plugins/OutlineTree/components/TreeView/treeNode.d.ts +2 -0
- package/dist/style.css +1 -1
- package/package.json +7 -7
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { CPlugin, PluginInstance } from '../../core/pluginManager';
|
|
2
|
-
import { DragAndDrop, LayoutPropsType } from '@chamn/layout';
|
|
3
|
+
import { DragAndDrop, Layout, LayoutPropsType } from '@chamn/layout';
|
|
3
4
|
import { AdvanceCustom, AssetPackage, CPageDataType } from '@chamn/model';
|
|
4
5
|
import { RenderInstance } from '@chamn/render';
|
|
5
6
|
import { Designer } from './components/Canvas';
|
|
@@ -16,6 +17,8 @@ export type DesignerExport = {
|
|
|
16
17
|
updatePage: (page: CPageDataType) => void;
|
|
17
18
|
getComponentInstances: (id: string) => RenderInstance[];
|
|
18
19
|
getDynamicComponentInstances: (id: string) => RenderInstance;
|
|
20
|
+
getLayoutRef: () => React.RefObject<Layout>;
|
|
21
|
+
getDesignerWindow: () => Window | null;
|
|
19
22
|
};
|
|
20
23
|
export type DesignerPluginConfig = Omit<LayoutPropsType, 'selectRectViewRender' | 'hoverRectViewRender' | 'dropViewRender' | 'ghostView' | 'selectToolBarView' | 'hoverToolBarView'> & Pick<AdvanceCustom, 'selectRectViewRender' | 'hoverRectViewRender' | 'dropViewRender' | 'ghostViewRender' | 'toolbarViewRender'>;
|
|
21
24
|
export type DesignerPluginType = CPlugin<DesignerPluginConfig, DesignerExport>;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { TreeNodeData } from './dataStruct';
|
|
3
|
+
import { CPluginCtx } from '../../../../core/pluginManager';
|
|
3
4
|
export declare const DRAG_ITEM_KEY = "data-drag-key";
|
|
4
5
|
export type TreeNodeProps = {
|
|
5
6
|
item: TreeNodeData;
|
|
6
7
|
level?: number;
|
|
7
8
|
paths?: (string | number)[];
|
|
9
|
+
pluginCtx: CPluginCtx;
|
|
8
10
|
};
|
|
9
11
|
export declare const TreeNode: (props: TreeNodeProps) => JSX.Element;
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@charset "UTF-8";._workbenchContainer_15alj_2{width:100%;height:100%;display:flex;flex-direction:column}._workbenchContainer_15alj_2 ._topToolBarBox_15alj_8{height:64px;width:100%;border-bottom:1px solid rgb(233,233,233);display:flex}._workbenchContainer_15alj_2 ._topToolBarBox_15alj_8 ._topToolBarView_15alj_14{flex:1}._workbenchContainer_15alj_2 ._bodyContent_15alj_17{display:flex;width:100%;flex:1;overflow:hidden}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23{position:relative;display:flex;background-color:#fff;z-index:100}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginIconBar_15alj_29{width:50px;height:100%;border-right:1px solid rgb(233,233,233)}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginIconBar_15alj_29 ._pluginIconItem_15alj_34{position:relative;cursor:pointer;width:50px;height:50px;display:flex;align-items:center;justify-content:center;transition:all .1s}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginIconBar_15alj_29 ._pluginIconItem_15alj_34._active_15alj_44 :before,._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginIconBar_15alj_29 ._pluginIconItem_15alj_34:hover :before{transition:all .1s;display:block;content:"";width:2px;height:100%;position:absolute;left:0;top:0}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginIconBar_15alj_29 ._pluginIconItem_15alj_34._active_15alj_44 :before{border-left:4px solid #1677ff!important}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginIconBar_15alj_29 ._pluginIconItem_15alj_34:hover :before{border-left:4px solid rgba(22,119,255,.3)}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginPanelBoxResizeBox_15alj_60{display:flex;flex-direction:column;background-color:#fff;z-index:100;border-right:1px solid rgb(233,233,233)}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginPanelBoxResizeBox_15alj_60 ._pluginHeader_15alj_67{display:flex;color:#686868;height:30px;margin:10px;overflow:hidden;align-items:center}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginPanelBoxResizeBox_15alj_60 ._pluginHeader_15alj_67 ._pluginNameText_15alj_75{font-size:16px;font-weight:700;margin-right:auto;flex-wrap:nowrap;word-break:keep-all}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginPanelBoxResizeBox_15alj_60 ._pluginHeader_15alj_67 ._closeBtn_15alj_82,._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginPanelBoxResizeBox_15alj_60 ._pluginHeader_15alj_67 ._fixedBtn_15alj_83{color:#686868}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginPanelBoxResizeBox_15alj_60 ._pluginHeader_15alj_67 ._fixedBtn_15alj_83>*{transition:all .1s}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginPanelBoxResizeBox_15alj_60 ._pluginHeader_15alj_67 ._fixedBtn_15alj_83>._active_15alj_44{transform:rotate(-45deg)}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._leftBox_15alj_23 ._pluginPanelBox_15alj_60{width:100%;flex:1;background-color:#f8f8ff;overflow:hidden}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._rightResizeBox_15alj_98{position:relative}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._rightResizeBox_15alj_98 ._arrowCursor_15alj_101{cursor:pointer;position:absolute;left:-18px;top:50%;transform:translateY(-50%);z-index:2;background-color:#fff;padding:10px 3px;border-radius:4px 0 0 4px;font-size:12px}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._rightResizeBox_15alj_98 ._arrowCursor_15alj_101>._active_15alj_44{transform:rotate(-180deg)}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._rightResizeBox_15alj_98 ._rightBox_15alj_116{position:relative;width:100%;height:100%;border-left:1px rgb(233,233,233) solid}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._centerBox_15alj_122{display:flex;flex-direction:column;flex:1;overflow:hidden}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._centerBox_15alj_122 ._subTopToolbarBox_15alj_128{width:100%;height:50px;background-color:#fff}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._centerBox_15alj_122 ._canvasBox_15alj_133{width:100%;flex:1;overflow:hidden;padding:20px 30px;background-color:#edeff3}._workbenchContainer_15alj_2 ._bodyContent_15alj_17 ._centerBox_15alj_122 ._canvasBox_15alj_133 ._scrollBox_15alj_140{width:100%;height:100%;box-shadow:0 1px 4px #1f325821}._engineContainer_f3ly9_2{color:#686868;font-size:14px;width:100%;height:100%;overflow:hidden}._engineContainer_f3ly9_2 *{box-sizing:border-box}._container_191p3_2{width:100%;height:100%;overflow:hidden;background-color:#fff;display:flex}._container_191p3_2 .ant-tabs .ant-tabs-tab+.ant-tabs-tab{margin-left:12px}._container_191p3_2 .ant-tabs-content.ant-tabs-content-top{height:100%;overflow:auto}._container_191p3_2 .ant-tabs-tab{padding:6px 0}._container_191p3_2 .ant-tabs-nav{margin-bottom:0}._tabTitle_191p3_23{padding:0 10px;font-size:12px;font-weight:400;text-rendering:optimizeLegibility}._square_1b87f_2{user-select:none;position:relative;flex:33.3% 0}._square_1b87f_2:before{content:"";padding-top:100%;float:left}._square_1b87f_2:after{content:"";display:block;clear:both}._componentItem_1b87f_18{user-select:none;overflow:hidden;position:absolute;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid rgb(233,233,233);border-bottom:1px solid rgb(233,233,233);transition:all .2s}._componentItem_1b87f_18:hover{box-shadow:0 6px 16px #00000026;border-color:transparent;cursor:grab}._componentItem_1b87f_18:active{cursor:grabbing}._iconImg_1b87f_41{width:100%}._iconBox_1b87f_45{width:60%;height:60%;overflow:hidden;display:flex;align-items:center;justify-content:center}._iconText_1b87f_54{font-size:18px;font-weight:bolder;color:#686868}._ListBox_1q7zr_2{display:flex;flex-wrap:wrap}._ListBox_1q7zr_2 .ant-collapse .ant-collapse-content>.ant-collapse-content-box{padding:0}._ListBox_1q7zr_2 .ant-collapse{border:none;background-color:#fff}._ListBox_1q7zr_2 .ant-collapse-header{padding:10px 16px!important}._ListBox_1q7zr_2 .ant-collapse-expand-icon{padding-inline-end:0!important}._ListBox_1q7zr_2 .ant-collapse-item{border-color:#e9e9e9}._collapsePanel_1q7zr_23{display:flex;flex-wrap:wrap}._toolBarBox_h5ljb_2{display:flex;margin-bottom:3px;margin-right:-2px;pointer-events:all;float:right}._item_h5ljb_10{background-color:#1677ff;color:#fff;padding:2px 3px;font-size:12px;overflow:hidden;margin-left:1px;cursor:pointer}._layoutSelectBox_h5ljb_20{position:relative;margin-right:1px;height:21px}._layoutSelectBox_h5ljb_20 ._hoverBox_h5ljb_25{transition:all .3s;position:absolute;left:0;top:0;white-space:nowrap;opacity:0;transform:translateY(-100%);pointer-events:none}._layoutSelectBox_h5ljb_20 ._hoverBox_h5ljb_25:hover,._layoutSelectBox_h5ljb_20 ._hoverBox_h5ljb_25._hoverBoxActive_h5ljb_35{opacity:1;pointer-events:all}._layoutSelectBox_h5ljb_20 ._hoverBox_h5ljb_25 ._hoverItem_h5ljb_39{background-color:#1677ff;padding:2px 3px;color:#fff;font-size:12px;margin-bottom:1px;cursor:pointer}._layoutSelectBox_h5ljb_20 ._placeholder_h5ljb_47{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:#1677ff;color:#fff;padding:2px 5px;font-size:12px;max-width:100px}._hoverTips_k3vn7_2{display:inline-block;color:#1677ff;opacity:.9;font-size:12px;margin-bottom:2px;background-color:#fff;padding:1px 3px;border-radius:2px}._highlightBox_whbf4_1{position:absolute;will-change:transform,width,height,left,right;outline:2px solid rgb(44,115,253)}._borderDrawBox_whbf4_7{position:absolute;left:0;height:100%;width:100%;z-index:99;pointer-events:none}._toolBox_whbf4_16{position:absolute;width:100%;left:0;top:0;box-sizing:border-box;transform:translateY(-100%)}._highlightBox_1dlxo_1{position:absolute;will-change:transform,width,height,left,right}._borderDrawBox_1dlxo_6{position:absolute;left:0;top:0;height:100%;width:100%;z-index:99;pointer-events:none}._toolBox_1dlxo_16{position:absolute;right:0;top:-20px;border:1px solid black;box-sizing:border-box}._horizontal_1dlxo_24._before_1dlxo_24{border-left:2px solid #1890ff}._horizontal_1dlxo_24._after_1dlxo_27{border-right:2px solid #1890ff}._vertical_1dlxo_31._before_1dlxo_24{border-top:2px solid #1890ff}._vertical_1dlxo_31._after_1dlxo_27{border-bottom:2px solid #1890ff}._current_1dlxo_38{border:none!important;background-color:#0084ff6b}._layoutContainer_l5f3t_1{position:relative;width:100%;height:100%;box-sizing:border-box;margin:0;padding:0}._elementHighlightBox_l5f3t_10{position:absolute;right:0;top:0;padding:10px}._iframeBox_l5f3t_17{position:relative}._contentBox_1vfqn_2{background-color:#fff;height:100%;border-top:1px solid rgb(233,233,233);overflow:auto;position:relative}._contentBox_1vfqn_2 *{transition:all .1s}._nodeBox_1vfqn_13{user-select:none;cursor:pointer}._nodeBox_1vfqn_13 ._toolbarBox_1vfqn_17{display:none;padding-right:10px}._nodeBox_1vfqn_13 ._iconItem_1vfqn_21{margin-right:8px}._nodeContent_1vfqn_25:hover ._toolbarBox_1vfqn_17{display:flex}._nodeContent_1vfqn_25{font-size:14px;cursor:pointer;display:flex;align-items:center}._nodeContent_1vfqn_25._selected_1vfqn_35{background-color:#dddddd3b}._nodeContent_1vfqn_25 ._nodeArrow_1vfqn_38{font-size:12px}._nodeContent_1vfqn_25 ._nodeArrow_1vfqn_38._expanded_1vfqn_41{transform-origin:center;transform:rotate(90deg)}._nodeContent_1vfqn_25 ._nodeRenderView_1vfqn_45{padding:5px 0;flex:1;flex-wrap:nowrap;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._nodeChildren_1vfqn_54{position:relative}._nodeChildren_1vfqn_54:before{display:block;position:absolute;left:13px;top:0;content:"";height:100%;width:1px;background-color:#e9e9e9}._nodeChildren_1vfqn_54._selected_1vfqn_35:before{background-color:#0000ff5c}._dropAnchorLine_1vfqn_71{width:100px;height:2px;background-color:#1890ff;position:fixed;z-index:99;pointer-events:none}._arrowSpan_1vfqn_80{position:relative}._arrowSpan_1vfqn_80:after{content:"";position:absolute;top:0px;right:0;bottom:0;left:-8px}._CFromRenderBox_1vsdm_2{padding:0 20px}._CFromRenderBox_1vsdm_2 .ant-collapse .ant-collapse-content>.ant-collapse-content-box{padding-right:5px}._CFromRenderBox_1vsdm_2 .ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{padding-right:5px}._dragItem_xzliq_2{cursor:grab;border:1px solid rgb(233,233,233);background-color:#fff;padding:10px;text-align:center;margin-bottom:10px;font-size:12px;border-radius:2px}._sortModalBox_xzliq_13{padding:20px 10px 10px;overflow:auto;max-height:500px}._addOneBtn_xzliq_19{width:100%;font-size:12px!important;color:#686868}._inputAuto_gk0d2_2{border-bottom:1px solid rgba(128,128,128,.23)}._active_gk0d2_6{border-bottom:1px solid rgb(128,177,255)}._fieldBox_nltxm_3{display:flex;flex-wrap:nowrap;flex-shrink:0;flex-grow:1;min-width:250px;align-items:center}._fieldBox_nltxm_3 ._label_nltxm_11{font-size:12px;color:#686868;padding-right:10px;user-select:none;width:60px;max-height:40px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}._fieldBox_nltxm_3 ._tipsLabel_nltxm_25{text-decoration-line:underline;text-decoration-style:dashed;text-underline-offset:2px;cursor:help;word-break:break-all}._fieldBox_nltxm_3 ._content_nltxm_32{flex:1}._switchBtn_k17cr_2{color:#686868;font-size:12px;padding:0 5px 0 10px}._shapeFieldBox_k17cr_8,._collapseHeader_k17cr_9{color:#686868;display:flex;font-size:12px}._collapseHeader_k17cr_9{align-items:center}._CFromRenderBox_13lda_2 .ant-collapse .ant-collapse-content>.ant-collapse-content-box{padding-right:5px}._CFromRenderBox_13lda_2 .ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{padding:5px 5px 5px 10px;align-items:center}._CFromRenderBox_13lda_2 .ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header .ant-collapse-expand-icon{padding-inline-end:4px}._advanceBox_9o3af_2{padding:0 20px}._advanceBox_9o3af_2 .ant-input-affix-wrapper .ant-input-prefix{margin-inline-end:0}._rightPanelContainer_1p332_2{height:100%;width:100%}._rightPanelContainer_1p332_2 .ant-tabs .ant-tabs-tab+.ant-tabs-tab{margin-left:0}._rightPanelContainer_1p332_2 .ant-tabs-content.ant-tabs-content-top{height:100%;overflow:auto}._rightPanelContainer_1p332_2 .ant-tabs .ant-tabs-tabpane{height:100%}._visualPanelBox_6q12v_2{padding:0 15px 300px}._visualPanelBox_6q12v_2 ._header_6q12v_5{color:#686868;display:flex}.ant-collapse .ant-collapse-item .ant-collapse-header{padding:5px 5px 5px 10px;align-items:center;color:#686868;font-size:12px}.ant-collapse .ant-collapse-item .ant-collapse-header .ant-collapse-expand-icon{padding-inline-end:4px}._cssFieldBox_15f2h_2{display:flex;color:#686868!important}._cssFieldBox_15f2h_2 .ant-select-selector input{color:#686868!important}._cssFieldBox_15f2h_2 ._row_15f2h_9{display:flex;padding-bottom:6px;align-items:center}._cssFieldBox_15f2h_2 ._fieldLabel_15f2h_14{display:inline-block;width:70px;flex-shrink:0;font-size:12px}._cssFieldBox_15f2h_2 ._leftBox_15f2h_20{flex:1}._cssFieldBox_15f2h_2 ._rightBox_15f2h_23{padding-left:10px}._cssFieldBox_15f2h_2 ._inputBox_15f2h_26{flex:1}._cssBox_15f2h_30{overflow-x:hidden}._cssBox_15f2h_30 .ant-collapse-borderless>.ant-collapse-item{border-bottom:1px solid #e4e4e4}._cssBox_15f2h_30 .ant-collapse-borderless>.ant-collapse-item:last-child{border-bottom:none}._cssBox_15f2h_30 .ant-collapse-content-box{padding-bottom:30px!important}._cssFieldBox_4b8an_2{display:flex;align-items:center;color:#686868!important}._cssFieldBox_4b8an_2 .ant-select-selector{padding:0!important}._cssFieldBox_4b8an_2 .ant-select-single .ant-select-selector .ant-select-selection-search{inset-inline-start:0px;inset-inline-end:0px}._cssFieldBox_4b8an_2 .ant-select-selector input{color:#686868!important}._cssFieldBox_4b8an_2 .ant-select-status-error{border-bottom:1px solid red!important}._cssFieldBox_4b8an_2 ._inputAuto_4b8an_20{border-bottom:1px solid rgba(128,128,128,.23)}._cssFieldBox_4b8an_2 ._active_4b8an_23{border-bottom:1px solid rgb(128,177,255)}._cssBox_4b8an_27{overflow-x:hidden}._cssBox_4b8an_27 .ant-collapse-borderless>.ant-collapse-item{border-bottom:1px solid #e4e4e4}._cssBox_4b8an_27 .ant-collapse-borderless>.ant-collapse-item:last-child{border-bottom:none}._cssBox_4b8an_27 .ant-collapse-content-box{padding-bottom:30px!important}._stateTag_5a8hc_2{position:relative}._stateTag_5a8hc_2 ._stateTagClose_5a8hc_5{position:absolute;right:-10px;top:-10px;background-color:#fff;color:#4d4d4d;opacity:0;font-size:20px;transform:scale(.6);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;border-radius:10px}._stateTag_5a8hc_2:hover ._stateTagClose_5a8hc_5{opacity:1}._box_tl0hm_2{height:100%;width:100%;padding-right:10px;border-top:1px solid rgb(233,233,233);padding-top:10px;background-color:#fff}
|
|
1
|
+
@charset "UTF-8";._workbenchContainer_b7h5o_2{width:100%;height:100%;display:flex;flex-direction:column}._workbenchContainer_b7h5o_2 ._topToolBarBox_b7h5o_8{height:64px;width:100%;border-bottom:1px solid rgb(233,233,233);display:flex}._workbenchContainer_b7h5o_2 ._topToolBarBox_b7h5o_8 ._topToolBarView_b7h5o_14{flex:1}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17{display:flex;width:100%;flex:1;overflow:hidden}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23{position:relative;display:flex;background-color:#fff;z-index:100}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginIconBar_b7h5o_29{width:50px;height:100%;border-right:1px solid rgb(233,233,233)}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginIconBar_b7h5o_29 ._pluginIconItem_b7h5o_34{position:relative;cursor:pointer;width:50px;height:50px;display:flex;align-items:center;justify-content:center;transition:all .1s}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginIconBar_b7h5o_29 ._pluginIconItem_b7h5o_34._active_b7h5o_44 :before,._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginIconBar_b7h5o_29 ._pluginIconItem_b7h5o_34:hover :before{transition:all .1s;display:block;content:"";width:2px;height:100%;position:absolute;left:0;top:0}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginIconBar_b7h5o_29 ._pluginIconItem_b7h5o_34._active_b7h5o_44 :before{border-left:4px solid #1677ff!important}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginIconBar_b7h5o_29 ._pluginIconItem_b7h5o_34:hover :before{border-left:4px solid rgba(22,119,255,.3)}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginPanelBoxResizeBox_b7h5o_60{display:flex;flex-direction:column;background-color:#fff;z-index:100;border-right:1px solid rgb(233,233,233)}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginPanelBoxResizeBox_b7h5o_60 ._pluginHeader_b7h5o_67{display:flex;color:#686868;height:30px;margin:10px;overflow:hidden;align-items:center}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginPanelBoxResizeBox_b7h5o_60 ._pluginHeader_b7h5o_67 ._pluginNameText_b7h5o_75{font-size:16px;font-weight:700;margin-right:auto;flex-wrap:nowrap;word-break:keep-all}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginPanelBoxResizeBox_b7h5o_60 ._pluginHeader_b7h5o_67 ._closeBtn_b7h5o_82,._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginPanelBoxResizeBox_b7h5o_60 ._pluginHeader_b7h5o_67 ._fixedBtn_b7h5o_83{color:#686868}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginPanelBoxResizeBox_b7h5o_60 ._pluginHeader_b7h5o_67 ._fixedBtn_b7h5o_83>*{transition:all .1s}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginPanelBoxResizeBox_b7h5o_60 ._pluginHeader_b7h5o_67 ._fixedBtn_b7h5o_83>._active_b7h5o_44{transform:rotate(-45deg)}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._leftBox_b7h5o_23 ._pluginPanelBox_b7h5o_60{width:100%;flex:1;background-color:#f8f8ff;overflow:hidden}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._rightResizeBox_b7h5o_98{position:relative}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._rightResizeBox_b7h5o_98 ._arrowCursor_b7h5o_101{cursor:pointer;position:absolute;left:-18px;top:50%;transform:translateY(-50%);z-index:2;background-color:#fff;padding:10px 3px;border-radius:4px 0 0 4px;font-size:12px}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._rightResizeBox_b7h5o_98 ._arrowCursor_b7h5o_101>._active_b7h5o_44{transform:rotate(-180deg)}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._rightResizeBox_b7h5o_98 ._rightBox_b7h5o_116{position:relative;width:100%;height:100%;border-left:1px rgb(233,233,233) solid}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._centerBox_b7h5o_122{display:flex;flex-direction:column;flex:1;overflow:hidden}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._centerBox_b7h5o_122 ._subTopToolbarBox_b7h5o_128{width:100%;height:50px;background-color:#fff}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._centerBox_b7h5o_122 ._canvasBox_b7h5o_133{width:100%;flex:1;overflow:hidden;padding:20px 30px;background-color:#edeff3}._workbenchContainer_b7h5o_2 ._bodyContent_b7h5o_17 ._centerBox_b7h5o_122 ._canvasBox_b7h5o_133 ._scrollBox_b7h5o_140{width:100%;height:100%;box-shadow:0 1px 4px #1f325821}._customViewBox_b7h5o_146{position:fixed;width:100%;height:100%;top:0;left:0;pointer-events:none}._engineContainer_f3ly9_2{color:#686868;font-size:14px;width:100%;height:100%;overflow:hidden}._engineContainer_f3ly9_2 *{box-sizing:border-box}._container_191p3_2{width:100%;height:100%;overflow:hidden;background-color:#fff;display:flex}._container_191p3_2 .ant-tabs .ant-tabs-tab+.ant-tabs-tab{margin-left:12px}._container_191p3_2 .ant-tabs-content.ant-tabs-content-top{height:100%;overflow:auto}._container_191p3_2 .ant-tabs-tab{padding:6px 0}._container_191p3_2 .ant-tabs-nav{margin-bottom:0}._tabTitle_191p3_23{padding:0 10px;font-size:12px;font-weight:400;text-rendering:optimizeLegibility}._square_1b87f_2{user-select:none;position:relative;flex:33.3% 0}._square_1b87f_2:before{content:"";padding-top:100%;float:left}._square_1b87f_2:after{content:"";display:block;clear:both}._componentItem_1b87f_18{user-select:none;overflow:hidden;position:absolute;width:100%;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;border-right:1px solid rgb(233,233,233);border-bottom:1px solid rgb(233,233,233);transition:all .2s}._componentItem_1b87f_18:hover{box-shadow:0 6px 16px #00000026;border-color:transparent;cursor:grab}._componentItem_1b87f_18:active{cursor:grabbing}._iconImg_1b87f_41{width:100%}._iconBox_1b87f_45{width:60%;height:60%;overflow:hidden;display:flex;align-items:center;justify-content:center}._iconText_1b87f_54{font-size:18px;font-weight:bolder;color:#686868}._ListBox_1q7zr_2{display:flex;flex-wrap:wrap}._ListBox_1q7zr_2 .ant-collapse .ant-collapse-content>.ant-collapse-content-box{padding:0}._ListBox_1q7zr_2 .ant-collapse{border:none;background-color:#fff}._ListBox_1q7zr_2 .ant-collapse-header{padding:10px 16px!important}._ListBox_1q7zr_2 .ant-collapse-expand-icon{padding-inline-end:0!important}._ListBox_1q7zr_2 .ant-collapse-item{border-color:#e9e9e9}._collapsePanel_1q7zr_23{display:flex;flex-wrap:wrap}._toolBarBox_h5ljb_2{display:flex;margin-bottom:3px;margin-right:-2px;pointer-events:all;float:right}._item_h5ljb_10{background-color:#1677ff;color:#fff;padding:2px 3px;font-size:12px;overflow:hidden;margin-left:1px;cursor:pointer}._layoutSelectBox_h5ljb_20{position:relative;margin-right:1px;height:21px}._layoutSelectBox_h5ljb_20 ._hoverBox_h5ljb_25{transition:all .3s;position:absolute;left:0;top:0;white-space:nowrap;opacity:0;transform:translateY(-100%);pointer-events:none}._layoutSelectBox_h5ljb_20 ._hoverBox_h5ljb_25:hover,._layoutSelectBox_h5ljb_20 ._hoverBox_h5ljb_25._hoverBoxActive_h5ljb_35{opacity:1;pointer-events:all}._layoutSelectBox_h5ljb_20 ._hoverBox_h5ljb_25 ._hoverItem_h5ljb_39{background-color:#1677ff;padding:2px 3px;color:#fff;font-size:12px;margin-bottom:1px;cursor:pointer}._layoutSelectBox_h5ljb_20 ._placeholder_h5ljb_47{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;background-color:#1677ff;color:#fff;padding:2px 5px;font-size:12px;max-width:100px}._hoverTips_k3vn7_2{display:inline-block;color:#1677ff;opacity:.9;font-size:12px;margin-bottom:2px;background-color:#fff;padding:1px 3px;border-radius:2px}._highlightBox_whbf4_1{position:absolute;will-change:transform,width,height,left,right;outline:2px solid rgb(44,115,253)}._borderDrawBox_whbf4_7{position:absolute;left:0;height:100%;width:100%;z-index:99;pointer-events:none}._toolBox_whbf4_16{position:absolute;width:100%;left:0;top:0;box-sizing:border-box;transform:translateY(-100%)}._highlightBox_1dlxo_1{position:absolute;will-change:transform,width,height,left,right}._borderDrawBox_1dlxo_6{position:absolute;left:0;top:0;height:100%;width:100%;z-index:99;pointer-events:none}._toolBox_1dlxo_16{position:absolute;right:0;top:-20px;border:1px solid black;box-sizing:border-box}._horizontal_1dlxo_24._before_1dlxo_24{border-left:2px solid #1890ff}._horizontal_1dlxo_24._after_1dlxo_27{border-right:2px solid #1890ff}._vertical_1dlxo_31._before_1dlxo_24{border-top:2px solid #1890ff}._vertical_1dlxo_31._after_1dlxo_27{border-bottom:2px solid #1890ff}._current_1dlxo_38{border:none!important;background-color:#0084ff6b}._layoutContainer_l5f3t_1{position:relative;width:100%;height:100%;box-sizing:border-box;margin:0;padding:0}._elementHighlightBox_l5f3t_10{position:absolute;right:0;top:0;padding:10px}._iframeBox_l5f3t_17{position:relative}._contentBox_1tkrj_2{background-color:#fff;height:100%;border-top:1px solid rgb(233,233,233);overflow:auto;position:relative}._contentBox_1tkrj_2 *{transition:all .1s}._nodeBox_1tkrj_13{user-select:none;cursor:pointer}._nodeBox_1tkrj_13 ._toolbarBox_1tkrj_17{display:none;padding-right:10px}._nodeBox_1tkrj_13 ._iconItem_1tkrj_21{margin-right:8px}._nodeContent_1tkrj_25:hover ._toolbarBox_1tkrj_17{display:flex}._nodeContent_1tkrj_25{font-size:14px;cursor:pointer;display:flex;align-items:center}._nodeContent_1tkrj_25._selected_1tkrj_35{background-color:#dddddd3b}._nodeContent_1tkrj_25 ._nodeArrow_1tkrj_38{font-size:12px}._nodeContent_1tkrj_25 ._nodeArrow_1tkrj_38._expanded_1tkrj_41{transform-origin:center;transform:rotate(90deg)}._nodeContent_1tkrj_25 ._nodeRenderView_1tkrj_45{display:flex;align-items:center;height:26px;flex:1;flex-wrap:nowrap;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}._nodeChildren_1tkrj_56{position:relative}._nodeChildren_1tkrj_56:before{display:block;position:absolute;left:13px;top:0;content:"";height:100%;width:1px;background-color:#e9e9e9}._nodeChildren_1tkrj_56._selected_1tkrj_35:before{background-color:#0000ff5c}._dropAnchorLine_1tkrj_73{width:100px;height:2px;background-color:#1890ff;position:fixed;z-index:99;pointer-events:none}._arrowSpan_1tkrj_82{position:relative;display:flex;align-items:center;justify-content:center}._arrowSpan_1tkrj_82:after{content:"";position:absolute;top:0px;right:0;bottom:0;left:-8px}._CFromRenderBox_1vsdm_2{padding:0 20px}._CFromRenderBox_1vsdm_2 .ant-collapse .ant-collapse-content>.ant-collapse-content-box{padding-right:5px}._CFromRenderBox_1vsdm_2 .ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{padding-right:5px}._dragItem_xzliq_2{cursor:grab;border:1px solid rgb(233,233,233);background-color:#fff;padding:10px;text-align:center;margin-bottom:10px;font-size:12px;border-radius:2px}._sortModalBox_xzliq_13{padding:20px 10px 10px;overflow:auto;max-height:500px}._addOneBtn_xzliq_19{width:100%;font-size:12px!important;color:#686868}._inputAuto_gk0d2_2{border-bottom:1px solid rgba(128,128,128,.23)}._active_gk0d2_6{border-bottom:1px solid rgb(128,177,255)}._fieldBox_nltxm_3{display:flex;flex-wrap:nowrap;flex-shrink:0;flex-grow:1;min-width:250px;align-items:center}._fieldBox_nltxm_3 ._label_nltxm_11{font-size:12px;color:#686868;padding-right:10px;user-select:none;width:60px;max-height:40px;word-break:break-all;text-overflow:ellipsis;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}._fieldBox_nltxm_3 ._tipsLabel_nltxm_25{text-decoration-line:underline;text-decoration-style:dashed;text-underline-offset:2px;cursor:help;word-break:break-all}._fieldBox_nltxm_3 ._content_nltxm_32{flex:1}._switchBtn_k17cr_2{color:#686868;font-size:12px;padding:0 5px 0 10px}._shapeFieldBox_k17cr_8,._collapseHeader_k17cr_9{color:#686868;display:flex;font-size:12px}._collapseHeader_k17cr_9{align-items:center}._CFromRenderBox_13lda_2 .ant-collapse .ant-collapse-content>.ant-collapse-content-box{padding-right:5px}._CFromRenderBox_13lda_2 .ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header{padding:5px 5px 5px 10px;align-items:center}._CFromRenderBox_13lda_2 .ant-collapse>.ant-collapse-item:last-child>.ant-collapse-header .ant-collapse-expand-icon{padding-inline-end:4px}._advanceBox_9o3af_2{padding:0 20px}._advanceBox_9o3af_2 .ant-input-affix-wrapper .ant-input-prefix{margin-inline-end:0}._rightPanelContainer_1p332_2{height:100%;width:100%}._rightPanelContainer_1p332_2 .ant-tabs .ant-tabs-tab+.ant-tabs-tab{margin-left:0}._rightPanelContainer_1p332_2 .ant-tabs-content.ant-tabs-content-top{height:100%;overflow:auto}._rightPanelContainer_1p332_2 .ant-tabs .ant-tabs-tabpane{height:100%}._visualPanelBox_6q12v_2{padding:0 15px 300px}._visualPanelBox_6q12v_2 ._header_6q12v_5{color:#686868;display:flex}.ant-collapse .ant-collapse-item .ant-collapse-header{padding:5px 5px 5px 10px;align-items:center;color:#686868;font-size:12px}.ant-collapse .ant-collapse-item .ant-collapse-header .ant-collapse-expand-icon{padding-inline-end:4px}._cssFieldBox_15f2h_2{display:flex;color:#686868!important}._cssFieldBox_15f2h_2 .ant-select-selector input{color:#686868!important}._cssFieldBox_15f2h_2 ._row_15f2h_9{display:flex;padding-bottom:6px;align-items:center}._cssFieldBox_15f2h_2 ._fieldLabel_15f2h_14{display:inline-block;width:70px;flex-shrink:0;font-size:12px}._cssFieldBox_15f2h_2 ._leftBox_15f2h_20{flex:1}._cssFieldBox_15f2h_2 ._rightBox_15f2h_23{padding-left:10px}._cssFieldBox_15f2h_2 ._inputBox_15f2h_26{flex:1}._cssBox_15f2h_30{overflow-x:hidden}._cssBox_15f2h_30 .ant-collapse-borderless>.ant-collapse-item{border-bottom:1px solid #e4e4e4}._cssBox_15f2h_30 .ant-collapse-borderless>.ant-collapse-item:last-child{border-bottom:none}._cssBox_15f2h_30 .ant-collapse-content-box{padding-bottom:30px!important}._cssFieldBox_4b8an_2{display:flex;align-items:center;color:#686868!important}._cssFieldBox_4b8an_2 .ant-select-selector{padding:0!important}._cssFieldBox_4b8an_2 .ant-select-single .ant-select-selector .ant-select-selection-search{inset-inline-start:0px;inset-inline-end:0px}._cssFieldBox_4b8an_2 .ant-select-selector input{color:#686868!important}._cssFieldBox_4b8an_2 .ant-select-status-error{border-bottom:1px solid red!important}._cssFieldBox_4b8an_2 ._inputAuto_4b8an_20{border-bottom:1px solid rgba(128,128,128,.23)}._cssFieldBox_4b8an_2 ._active_4b8an_23{border-bottom:1px solid rgb(128,177,255)}._cssBox_4b8an_27{overflow-x:hidden}._cssBox_4b8an_27 .ant-collapse-borderless>.ant-collapse-item{border-bottom:1px solid #e4e4e4}._cssBox_4b8an_27 .ant-collapse-borderless>.ant-collapse-item:last-child{border-bottom:none}._cssBox_4b8an_27 .ant-collapse-content-box{padding-bottom:30px!important}._stateTag_5a8hc_2{position:relative}._stateTag_5a8hc_2 ._stateTagClose_5a8hc_5{position:absolute;right:-10px;top:-10px;background-color:#fff;color:#4d4d4d;opacity:0;font-size:20px;transform:scale(.6);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;overflow:hidden;border-radius:10px}._stateTag_5a8hc_2:hover ._stateTagClose_5a8hc_5{opacity:1}._box_tl0hm_2{height:100%;width:100%;padding-right:10px;border-top:1px solid rgb(233,233,233);padding-top:10px;background-color:#fff}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chamn/engine",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.28",
|
|
4
4
|
"files": [
|
|
5
5
|
"dist"
|
|
6
6
|
],
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@ant-design/icons": "^4.8.0",
|
|
41
|
-
"@chamn/layout": "^0.0.
|
|
42
|
-
"@chamn/model": "^0.0.
|
|
43
|
-
"@chamn/render": "^0.0.
|
|
41
|
+
"@chamn/layout": "^0.0.28",
|
|
42
|
+
"@chamn/model": "^0.0.28",
|
|
43
|
+
"@chamn/render": "^0.0.28",
|
|
44
44
|
"@dnd-kit/core": "^6.0.7",
|
|
45
45
|
"@dnd-kit/modifiers": "^6.0.1",
|
|
46
46
|
"@dnd-kit/sortable": "^7.0.2",
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
},
|
|
58
58
|
"devDependencies": {
|
|
59
59
|
"@babel/core": "^7.21.0",
|
|
60
|
-
"@chamn/build-script": "^0.0.
|
|
61
|
-
"@chamn/demo-page": "^0.0.
|
|
60
|
+
"@chamn/build-script": "^0.0.28",
|
|
61
|
+
"@chamn/demo-page": "^0.0.28",
|
|
62
62
|
"@storybook/addon-actions": "^6.5.16",
|
|
63
63
|
"@storybook/addon-essentials": "^6.5.16",
|
|
64
64
|
"@storybook/addon-interactions": "^6.5.16",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
"sass": "^1.54.0"
|
|
85
85
|
},
|
|
86
86
|
"config": {},
|
|
87
|
-
"gitHead": "
|
|
87
|
+
"gitHead": "a86d7ddc62e217ad608cb2c740c8a60f778c8bab"
|
|
88
88
|
}
|