Pārlūkot izejas kodu

银河平台V2.0 - designer

luoyifan 2 gadi atpakaļ
vecāks
revīzija
1037560c5e

+ 24 - 0
dist/Defaults.d.ts

@@ -10,6 +10,19 @@ export declare const date: {
     labelAlign: string;
     labelWidth: number;
 };
+export declare const tagfield: {
+    labelAlign: string;
+    labelWidth: number;
+    valueField: string;
+    displayField: string;
+    autoLoad: boolean;
+    mode: string;
+    forceSelection: boolean;
+    triggerAction: string;
+    enableKeyEvents: boolean;
+    queryMode: string;
+    filterPickList: boolean;
+};
 export declare const combo: {
     labelAlign: string;
     labelWidth: number;
@@ -54,6 +67,7 @@ export declare const comboGridMultiPicker: {
 };
 export declare const numberfield: {
     labelAlign: string;
+    decimalPrecision: number;
     labelWidth: number;
 };
 export declare const checkbox: {
@@ -108,6 +122,7 @@ export declare const grid: {
     viewConfig: {
         enableTextSelection: boolean;
         sortOnClick: boolean;
+        emptyText: string;
     };
     selModel: {
         type: string;
@@ -136,6 +151,7 @@ export declare const grid: {
     exportExcelPageSize: number;
     exportExcelCurrentPage: number;
     exportExcelTotal: number;
+    cellTip: boolean;
 };
 export declare const fieldContainer: {
     labelAlign: string;
@@ -152,6 +168,8 @@ export declare const tree: {
     hideRefresh: boolean;
     hideExpand: boolean;
     hideCollapse: boolean;
+    root: any[];
+    rootVisible: boolean;
 };
 export declare const search: {
     labelAlign: string;
@@ -188,3 +206,9 @@ export declare const cols: {
         flex: number;
     };
 };
+export declare const bpmn: {
+    hideRefresh: boolean;
+    autoLoad: boolean;
+    dataSource: string;
+    bpmnConfig: {};
+};

+ 2 - 2
dist/PropertyDescription.d.ts

@@ -1,4 +1,4 @@
-export declare type GroupType = 'css' | 'data' | 'bind' | 'common' | 'event';
+export declare type GroupType = 'css' | 'data' | 'bind' | 'common' | 'listeners' | 'fix';
 export interface PropertyValue {
     /**
      * 属性名
@@ -19,7 +19,7 @@ export interface PropertyValue {
     /**
      * 取值范围
      */
-    type: 'boolean' | 'number' | 'string' | 'object' | 'dataSource' | 'valid' | 'format' | Array<string> | 'widget';
+    type: 'boolean' | 'number' | 'string' | 'object' | 'dataSource' | 'valid' | 'format' | Array<string> | 'widget' | 'listeners' | 'fix';
     eventParamter?: string[];
     eventResult?: string;
     eventDoc?: (vjson: any) => string;

+ 10 - 9
dist/PropertyDescriptionTable.d.ts

@@ -1,26 +1,27 @@
 import { PropertyDescription, PropertyDescriptionInterface, PropertyValue } from './PropertyDescription';
 export declare const PropertyDescriptionTable: Map<String, PropertyDescription>;
+export declare const xtype: PropertyValue;
 export declare const width: PropertyValue;
 export declare const height: PropertyValue;
 export declare const fieldLabel: PropertyValue;
 export declare const text: PropertyValue;
 export declare const iconCls: PropertyValue;
 export declare const borderless: PropertyValue;
-export declare const labelAlign: PropertyValue;
-export declare const type: PropertyValue;
 export declare const labelWidth: PropertyValue;
-export declare const gravity: PropertyValue;
 export declare const hidden: PropertyValue;
-export declare const readonly: PropertyValue;
+export declare const readOnly: PropertyValue;
 export declare const disabled: PropertyValue;
-export declare const loading: PropertyValue;
-export declare const required: PropertyValue;
+export declare const allowBlank: PropertyValue;
 export declare const value: PropertyValue;
 export declare const prompt: PropertyValue;
-export declare const validType: PropertyValue;
-export declare const metaId: PropertyValue;
 export declare const template: PropertyValue;
+export declare const reference: PropertyValue;
+export declare const html: PropertyValue;
 export declare const tooltip: PropertyValue;
-export declare const onClick: PropertyValue;
+export declare const click: PropertyValue;
+export declare const change: PropertyValue;
+export declare const keyup: PropertyValue;
+export declare const afterrender: PropertyValue;
+export declare const fix: PropertyValue;
 export declare const YvBase: PropertyDescriptionInterface;
 export declare const YvDataSource: PropertyDescriptionInterface;

+ 15 - 1
dist/Scope.d.ts

@@ -1,8 +1,15 @@
+import { BizFile } from "./ScopeEngine";
 export declare class Scope {
     /**
      * 业务模块的唯一编号
      */
     id: string;
+    billSetting: BizFile;
+    IS_DESIGN_MODE: boolean;
+    /**
+     * onload 运行完成之后才会设置本标记为 true
+     */
+    isLoadFinish: boolean;
     originalVjson: any;
     /**
      * 一个 ExtJS 能接受的配置对象
@@ -30,6 +37,7 @@ export declare class Scope {
      */
     _vjsonOption: any;
     _dataOption: any;
+    _isLoading: boolean;
     /**
      * 最顶部的 scope 对象
      */
@@ -54,6 +62,7 @@ export declare class Scope {
      * @param msg
      */
     setLoading(value: boolean): void;
+    getLoading(): boolean;
     /**
      * 以对话框模式打开当前模块
      * @param sender 发送者(按钮或Scope对象)
@@ -74,6 +83,7 @@ export declare class Scope {
      * @param dataOption 数据覆盖选项(可以为空)
      */
     renderTo(element: any, vjsonOption: any, dataOption: any): void;
+    showDesigner(designer: any, option: any): void;
     /**
      * 关闭对话框(或标签页)
      */
@@ -103,7 +113,11 @@ export declare class Scope {
         vjson: any;
     });
     /**
-     * 模块载入完成之后的回调
+     * 私有渲染完成后的回调
+     */
+    _onLoad(): void;
+    /**
+     * 默认 渲染完成之后调用的函数
      */
     onLoad(): void;
     /**

+ 1 - 0
dist/controls/input/JsEditor.d.ts

@@ -0,0 +1 @@
+export default function _default(): void;

+ 1 - 0
dist/controls/input/tagfield.d.ts

@@ -0,0 +1 @@
+export default function _default(): void;

+ 2 - 1
dist/index.d.ts

@@ -11,10 +11,11 @@ import * as recast from 'recast';
 import { msgError } from './message';
 export { axios, qs, lodash, jquery, json5, moment, Defaults, PropertyDescriptionTable, recast, msgError, };
 export * from './Scope';
+export * from './ScopeEngine';
 export * from './init';
 export * from './lib/ajax';
 export * from './lib/lib';
 export * from './lib/config';
 export * from './lib/systemLib';
 export * from './ExcelImportDialog';
-export * from './report/Report';
+export * from './report/Report';

+ 0 - 3
dist/lib/config.d.ts

@@ -15,7 +15,6 @@ export interface ConfigOption {
     /**
      * 是否在设计器模式
      */
-    designMode: boolean;
     /**
      * 扩展自定义的 ajax 方法
      */
@@ -54,8 +53,6 @@ export declare const baseConfigProcessList: ConfigProcess[];
  * 在基类添加 Config 的处理方法
  */
 export declare function baseConfigProcess(option?: any): (target: any, propertyKey: any) => void;
-export declare function isDesignMode(): boolean;
-export declare function setDesignMode(v: boolean): void;
 /**
  * 将业务定义的 url 转换为调用服务端 groovy 的 url
  */

+ 4 - 0
dist/lib/lib.d.ts

@@ -1,5 +1,9 @@
 import { FunctionRegiste, LibParamType } from "../types";
 import { Scope } from "../Scope";
+export declare function isDesignMode(control: any, config: any): boolean;
+export declare function toString(value: any): string;
+export declare function isEmpty(value: any): boolean;
+export declare function createUUID(): any;
 export declare function getRegList(): FunctionRegiste[];
 export declare function getRegParamList(methodName: string): any;
 /**

+ 34 - 8
dist/lib/systemLib.d.ts

@@ -1,5 +1,11 @@
 export declare const SIMPLE_RE: RegExp;
 /**
+ * 判断目标字符串与关键字是否重叠
+ * @param target 目标字符串
+ * @param keyword 搜索关键字
+ */
+export declare function pinyinMatch(target: any, keyword: any): boolean;
+/**
  * 对某个表达式进行求值
  * a:{query.a},b:{query.b} -> a:aValue,b:bValue
  *
@@ -50,7 +56,7 @@ export declare function calcObjectFlat(data: any, paramObject: any): any;
 /**
  * 合併 data 到當前的 ViewModel 對象
  */
-export declare function mergeViewModel(viewModel: any, propertyName: any, data: any): void;
+export declare function mergeViewModel(viewModel: any, propertyName: any, data: any, isFlat: any): void;
 /**
  * 转换内联结构的行,到平面结构
  * company: { name:'公司1', id:'编号1' } => { company_id:'编号1', company_name:'公司1' }
@@ -61,6 +67,10 @@ export declare function mergeViewModel(viewModel: any, propertyName: any, data:
  */
 export declare function flatRow(array: any): any[];
 /**
+ * 替换内部结构中,所有 N/A
+ */
+export declare function replaceNA(obj: any): string;
+/**
  * 根据表达式进入写值
  * express="{query.a}"   写值就是 viewModel.set('query.a', value)
  * express="test-{query.a}"   写值就会失败
@@ -201,7 +211,20 @@ export declare function normId(value: string): string;
  * @param gridRefName
  */
 export declare function clearViewModelReloadGrid(sender: any, propertyName: any, gridRefName: any): void;
+export declare function saveGridRow(grid1: any): void;
+export declare function insertGridRow(grid1: any): void;
+export declare function commitMe(sender: any): void;
+export declare function removeGridRow(grid1: any): void;
+export declare function moveUpGridRow(grid: any): void;
+export declare function moveDownGridRow(grid: any): void;
 export declare class SystemEventFu {
+    moveUpGridRow(): (sender: any) => void;
+    commitMe(): (sender: any) => void;
+    moveDownGridRow(): (sender: any) => void;
+    saveGridRow(): (sender: any) => void;
+    insertGridRow(): (sender: any) => void;
+    removeGridRow(): (sender: any) => void;
+    enterToClick(btnReferenceName: any): (sender: any, config: any) => void;
     confirm(text: any, fn: any): (sender: any) => void;
     gridRemoveCurrentRow(gridRefName: any): (sender: any) => void;
     loadForm(invokeUrl: string, invokeParam: any, writeTarget: any): (sender: any) => void;
@@ -216,6 +239,7 @@ export declare class SystemEventFu {
     showWidget(widgetUrl: any, lookup: any): (sender: any, queryValue: any) => void;
     clearViewModelByLookup(lookup: any): (sender: any) => void;
     closeMe(callBack: any): (sender: any) => void;
+    showDialogAndFillData(url: string, lookupForData: any, map: any): (sender: any) => Promise<unknown>;
 }
 /**
  * 清空 viewmodel 里下属的所有属性
@@ -240,16 +264,18 @@ export declare function msg(content: any): void;
  */
 export declare function showErrorDialog(msg: any, sender?: any): void;
 /**
+ * 错误对话框的强提醒
+ */
+export declare function showInfoDialog(msg: any, sender?: any): void;
+/**
+ * 错误对话框的强提醒
+ */
+export declare function prompt(message: any, defaultValue?: string, multiLine?: boolean): Promise<string>;
+/**
  * 用于计算 express 表达式
  */
 export declare function evalFunction(data: any, express: any): any;
 /**
  * 获取表格编辑的行数据
  */
-export declare function getGridEditRows(grid: any): {
-    rows: any[];
-    newRows: any[];
-    modifyRows: any[];
-    removeRecords: any[];
-    err: string;
-};
+export declare function getGridEditRows(grid: any): any;

+ 13 - 0
dist/message.d.ts

@@ -1,9 +1,22 @@
 /**
+ * 弹出输入框,输入文字
+ * @param message 提示文字
+ * @param defaultValue 默认值
+ * @param multiLine 是否多行输入
+ */
+export declare function prompt(message: any, defaultValue?: string, multiLine?: boolean): Promise<string>;
+/**
  * 显示错误异常信息
  * @param msg 错误内容
  * @param sender 发送者按钮(可以为空)
  */
 export declare function showErrorDialog(msg: any, sender?: any): void;
+/**
+ * 显示错误异常信息
+ * @param msg 错误内容
+ * @param sender 发送者按钮(可以为空)
+ */
+export declare function showInfoDialogSimple(msg: any, sender?: any): void;
 export declare function msgError(msg: any, sender?: any): void;
 /**
  * 中间灰底白字提示

+ 1 - 0
dist/utils.d.ts

@@ -7,3 +7,4 @@ export declare function invokeMethod(fn: any, sender: any, args: any): void;
  * @param e
  */
 export declare function isChartEvent(e: any): boolean;
+export declare function syncDate(date: any): any;

Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 13 - 74
dist/yvan-ext.js


Failā izmaiņas netiks attēlotas, jo tās ir par lielu
+ 1 - 1
dist/yvan-ext.js.map