ronds-metadata 1.3.85 → 1.3.86

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.
Files changed (124) hide show
  1. package/README.md +25 -25
  2. package/es/api/index.js +5 -7
  3. package/es/comps/CodeEdit/index.d.ts +1 -2
  4. package/es/comps/CodeEdit/index.less +6 -6
  5. package/es/comps/DataMine/Line.d.ts +1 -2
  6. package/es/comps/DataMine/Line.js +1 -0
  7. package/es/comps/DataMine/index.d.ts +1 -2
  8. package/es/comps/DynamicPorts/comps/ContextMenu.less +8 -8
  9. package/es/comps/DynamicPorts/comps/DragNode.d.ts +1 -1
  10. package/es/comps/DynamicPorts/comps/GraphHandler/index.less +39 -39
  11. package/es/comps/DynamicPorts/comps/NodeElementForm.d.ts +1 -2
  12. package/es/comps/DynamicPorts/comps/NodeElementNormal.d.ts +1 -2
  13. package/es/comps/DynamicPorts/comps/contextMenu/EdgeContextMenu/index.less +5 -5
  14. package/es/comps/DynamicPorts/comps/contextMenu/GraphContextMenu/index.less +40 -40
  15. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.d.ts +1 -2
  16. package/es/comps/DynamicPorts/comps/contextMenu/NodeContextMenu/index.less +42 -42
  17. package/es/comps/DynamicPorts/comps/shape/edge.js +7 -7
  18. package/es/comps/DynamicPorts/comps/shape/edge.less +8 -8
  19. package/es/comps/DynamicPorts/comps/shape/node.js +9 -8
  20. package/es/comps/DynamicPorts/graph.js +4 -5
  21. package/es/comps/DynamicPorts/index.d.ts +1 -2
  22. package/es/comps/DynamicPorts/index.less +307 -307
  23. package/es/comps/Editable/DataCell/ButtonCell.d.ts +1 -1
  24. package/es/comps/Editable/DataCell/ColorPicker.d.ts +1 -1
  25. package/es/comps/Editable/DataCell/Input.d.ts +1 -1
  26. package/es/comps/Editable/DataCell/Number.d.ts +1 -1
  27. package/es/comps/Editable/DataCell/Select.d.ts +1 -1
  28. package/es/comps/Editable/DataCell/Switch.d.ts +1 -1
  29. package/es/comps/Editable/DataCell/TreeSelect.d.ts +1 -1
  30. package/es/comps/Editable/comps/EditableAction.d.ts +1 -2
  31. package/es/comps/Editable/comps/Texty.d.ts +1 -1
  32. package/es/comps/Editable/comps/Texty.js +4 -5
  33. package/es/comps/Editable/comps/Texty.less +43 -43
  34. package/es/comps/Editable/comps/index.less +38 -38
  35. package/es/comps/Editable/index.d.ts +1 -2
  36. package/es/comps/Editable/index.less +97 -97
  37. package/es/comps/Editable/utils.d.ts +1 -2
  38. package/es/comps/FileView/index.d.ts +1 -2
  39. package/es/comps/FileView/index.js +3 -2
  40. package/es/comps/FormGenerator/comps/Canvas/Preview.d.ts +1 -2
  41. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Checkbox.d.ts +1 -2
  42. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Color.d.ts +1 -1
  43. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Date.d.ts +1 -1
  44. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Input.d.ts +1 -1
  45. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/List.d.ts +1 -2
  46. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/MutiSelect.d.ts +1 -2
  47. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Number.d.ts +1 -1
  48. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/NumberRange.d.ts +1 -1
  49. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Obj.d.ts +1 -2
  50. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Password.d.ts +1 -1
  51. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Radio.d.ts +1 -2
  52. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Select.d.ts +1 -2
  53. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Switch.d.ts +1 -1
  54. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Table.d.ts +1 -2
  55. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/TextArea.d.ts +1 -1
  56. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/Cell/Upload.d.ts +1 -1
  57. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/HOC/index.d.ts +1 -2
  58. package/es/comps/FormGenerator/comps/Canvas/core/RenderField/index.d.ts +1 -2
  59. package/es/comps/FormGenerator/comps/Canvas/core/index.d.ts +1 -1
  60. package/es/comps/FormGenerator/comps/Canvas/core/index.less +23 -23
  61. package/es/comps/FormGenerator/comps/Canvas/index.d.ts +1 -2
  62. package/es/comps/FormGenerator/comps/Settings/index.d.ts +1 -2
  63. package/es/comps/FormGenerator/comps/Settings/index.js +2 -1
  64. package/es/comps/FormGenerator/comps/Sidebar/Elements.d.ts +1 -1
  65. package/es/comps/FormGenerator/comps/Sidebar/JsonSchema.d.ts +1 -1
  66. package/es/comps/FormGenerator/comps/Sidebar/index.d.ts +1 -2
  67. package/es/comps/FormGenerator/comps/Sidebar/index.less +21 -21
  68. package/es/comps/FormGenerator/index.d.ts +1 -2
  69. package/es/comps/FormGenerator/index.less +20 -20
  70. package/es/comps/JsonEdit/index.d.ts +1 -2
  71. package/es/comps/JsonEdit/index.js +1 -0
  72. package/es/comps/JsonEdit/index.less +64 -64
  73. package/es/comps/JsonView/index.d.ts +1 -2
  74. package/es/comps/JsonView/index.less +41 -41
  75. package/es/comps/MdEdit/index.d.ts +1 -2
  76. package/es/comps/MdEdit/index.less +6 -6
  77. package/es/comps/MdEditPro/index.d.ts +1 -2
  78. package/es/comps/MdEditPro/index.less +166 -166
  79. package/es/comps/MdEditPro/index2.d.ts +1 -1
  80. package/es/comps/MdNavbar/index.d.ts +1 -2
  81. package/es/comps/MdNavbar/index.less +77 -77
  82. package/es/comps/MdView/index.d.ts +1 -1
  83. package/es/comps/MdView/index.less +376 -376
  84. package/es/comps/MetadataEdit/components/MetaFieldsEdit.d.ts +1 -2
  85. package/es/comps/MetadataEdit/components/MetaPropsEdit.d.ts +1 -2
  86. package/es/comps/MetadataEdit/constant/index.js +2 -0
  87. package/es/comps/MetadataEdit/index.d.ts +1 -2
  88. package/es/comps/MetadataEdit/index.less +10 -10
  89. package/es/comps/MetadataEdit/type.d.ts +20 -20
  90. package/es/comps/MetadataForm/DataCell/Array.d.ts +1 -1
  91. package/es/comps/MetadataForm/DataCell/Input.d.ts +1 -1
  92. package/es/comps/MetadataForm/DataCell/Number.d.ts +1 -1
  93. package/es/comps/MetadataForm/DataCell/Ref.d.ts +1 -1
  94. package/es/comps/MetadataForm/DataCell/Select.d.ts +1 -1
  95. package/es/comps/MetadataForm/DataCell/Switch.d.ts +1 -1
  96. package/es/comps/MetadataForm/DataCell/business/index.d.ts +1 -2
  97. package/es/comps/MetadataForm/DataCell/layout/TableArray.d.ts +1 -2
  98. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Cassandra.d.ts +1 -2
  99. package/es/comps/MetadataForm/DataCell/plugin/Datasource/Kafka.d.ts +1 -2
  100. package/es/comps/MetadataForm/DataCell/plugin/Datasource/PostgreSQL.d.ts +1 -2
  101. package/es/comps/MetadataForm/DataCell/plugin/Datasource/SqlServer.d.ts +1 -2
  102. package/es/comps/MetadataForm/DataCell/plugin/Datasource/index.d.ts +1 -2
  103. package/es/comps/MetadataForm/DataCell/plugin/MapTable.d.ts +1 -2
  104. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.d.ts +1 -2
  105. package/es/comps/MetadataForm/DataCell/plugin/NumberRange.js +2 -1
  106. package/es/comps/MetadataForm/DataCell/plugin/RefreshSelect.d.ts +1 -2
  107. package/es/comps/MetadataForm/DataCell/plugin/SparkSqlTable.d.ts +1 -2
  108. package/es/comps/MetadataForm/HOC/index.d.ts +1 -2
  109. package/es/comps/MetadataForm/HOC/index.less +41 -41
  110. package/es/comps/MetadataForm/index.d.ts +1 -2
  111. package/es/comps/MetadataForm/utils.d.ts +2 -3
  112. package/es/comps/Split/index.d.ts +1 -1
  113. package/es/comps/Split/index.less +29 -29
  114. package/es/config.js +0 -1
  115. package/es/framework/RxStore/demo/index.d.ts +1 -2
  116. package/es/framework/graph/index.less +15 -15
  117. package/es/framework/http/msgpack5/lib/helpers.js +1 -0
  118. package/es/framework/libs/jquery.min.js +4 -4
  119. package/es/framework/locale/dil8/di18n.js +3 -5
  120. package/es/framework/metadata/MetadataService.js +14 -14
  121. package/es/framework/metadata/index.js +15 -14
  122. package/es/framework/metadata/types.d.ts +103 -103
  123. package/es/theme.less +81 -81
  124. package/package.json +116 -116
@@ -1,8 +1,7 @@
1
- import React from 'react';
2
1
  interface IMetaFieldsEditProps {
3
2
  type?: string;
4
3
  defaultValues?: any;
5
4
  onChange?: (values: any) => void;
6
5
  }
7
- declare const MetaFieldsEdit: (props: IMetaFieldsEditProps) => React.JSX.Element;
6
+ declare const MetaFieldsEdit: (props: IMetaFieldsEditProps) => JSX.Element;
8
7
  export default MetaFieldsEdit;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { FormInstance } from 'antd/lib/form';
3
2
  interface IMetaPropsEditProps {
4
3
  form: FormInstance;
@@ -10,5 +9,5 @@ interface IMetaPropsEditProps {
10
9
  onAddFields?: (idx: number) => void;
11
10
  onNewRefClick?: () => void;
12
11
  }
13
- declare const MetaPropsEdit: (props: IMetaPropsEditProps) => React.JSX.Element;
12
+ declare const MetaPropsEdit: (props: IMetaPropsEditProps) => JSX.Element;
14
13
  export default MetaPropsEdit;
@@ -47,6 +47,7 @@ export var OUTERMOST_TYPES_OPTIONS = [{
47
47
  // value: 'bool',
48
48
  // },
49
49
  ];
50
+
50
51
  export var RULE_TYPES_OPTIONS = [{
51
52
  label: '引用',
52
53
  value: 'ref'
@@ -64,6 +65,7 @@ export var RULE_TYPES_OPTIONS = [{
64
65
  // value: 'bool',
65
66
  // },
66
67
  ];
68
+
67
69
  export var NUMBER_FORMAT_OPTIONS = [{
68
70
  label: 'int',
69
71
  value: 'int'
@@ -1,5 +1,4 @@
1
1
  import { FormInstance } from 'antd';
2
- import React from 'react';
3
2
  import './index.less';
4
3
  interface IMetadataEditProps {
5
4
  /**
@@ -27,5 +26,5 @@ interface IMetadataEditProps {
27
26
  */
28
27
  getFormInstance?: (form: FormInstance) => void;
29
28
  }
30
- declare const MetadataEdit: (props: IMetadataEditProps) => React.JSX.Element;
29
+ declare const MetadataEdit: (props: IMetadataEditProps) => JSX.Element;
31
30
  export default MetadataEdit;
@@ -1,10 +1,10 @@
1
- .metadata-edit {
2
- height: 100%;
3
- width: 100%;
4
- .ant-row {
5
- display: block;
6
- }
7
- .pr-10 {
8
- padding-right: 10px;
9
- }
10
- }
1
+ .metadata-edit {
2
+ height: 100%;
3
+ width: 100%;
4
+ .ant-row {
5
+ display: block;
6
+ }
7
+ .pr-10 {
8
+ padding-right: 10px;
9
+ }
10
+ }
@@ -1,20 +1,20 @@
1
- export interface IMetaFileds {
2
- id: string;
3
- type: 'object';
4
- properties: any[];
5
- value: any;
6
- }
7
-
8
- export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
9
-
10
- export type IMetaProperty = {
11
- /**
12
- * 属性的名称
13
- */
14
- id: string;
15
- /**
16
- * 类型
17
- */
18
- type: string;
19
- enum?: any[];
20
- };
1
+ export interface IMetaFileds {
2
+ id: string;
3
+ type: 'object';
4
+ properties: any[];
5
+ value: any;
6
+ }
7
+
8
+ export type ITypeStatus = 'object' | 'ref' | 'bool' | 'number' | 'text' | 'enum' | 'array';
9
+
10
+ export type IMetaProperty = {
11
+ /**
12
+ * 属性的名称
13
+ */
14
+ id: string;
15
+ /**
16
+ * 类型
17
+ */
18
+ type: string;
19
+ enum?: any[];
20
+ };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IMetaFormProps } from '../interface';
3
- declare function Index(props: IMetaFormProps): React.JSX.Element;
3
+ declare function Index(props: IMetaFormProps): JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Index>;
5
5
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IMetaFormProps } from '../interface';
3
- declare function Index(props: IMetaFormProps): React.JSX.Element;
3
+ declare function Index(props: IMetaFormProps): JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Index>;
5
5
  export default _default;
6
6
  export declare const DEFAULT_DATE_FORMAT = "YYYY-MM-DD HH:mm:ss";
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IMetaFormProps } from '../interface';
3
- declare function Index(props: IMetaFormProps): React.JSX.Element;
3
+ declare function Index(props: IMetaFormProps): JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Index>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IMetaFormProps } from '../interface';
3
- declare function Index(props: IMetaFormProps): React.JSX.Element;
3
+ declare function Index(props: IMetaFormProps): JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Index>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IMetaFormProps } from '../interface';
3
- declare function Index(props: IMetaFormProps): React.JSX.Element;
3
+ declare function Index(props: IMetaFormProps): JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Index>;
5
5
  export default _default;
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
2
  import { IMetaFormProps } from '../interface';
3
- declare function Index(props: IMetaFormProps): React.JSX.Element;
3
+ declare function Index(props: IMetaFormProps): JSX.Element;
4
4
  declare const _default: React.MemoExoticComponent<typeof Index>;
5
5
  export default _default;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  interface IBusinessFormProps {
3
2
  extraInfo?: any;
4
3
  disabled?: boolean;
5
4
  value?: any;
6
5
  onChange?: (value: any) => void;
7
6
  }
8
- declare const BusinessForm: (props: IBusinessFormProps) => React.JSX.Element;
7
+ declare const BusinessForm: (props: IBusinessFormProps) => JSX.Element;
9
8
  export default BusinessForm;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  import { FormInstance } from 'antd';
3
2
  interface ITableArrayProps {
4
3
  name: string | string[];
@@ -11,5 +10,5 @@ interface ITableArrayProps {
11
10
  addButtonHidden?: boolean;
12
11
  initValue: any;
13
12
  }
14
- declare const TableArray: (props: ITableArrayProps) => React.JSX.Element;
13
+ declare const TableArray: (props: ITableArrayProps) => JSX.Element;
15
14
  export default TableArray;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface ICassandraDatasourceProps {
3
2
  extraInfo?: any;
4
3
  datasource?: any;
@@ -8,5 +7,5 @@ interface ICassandraDatasourceProps {
8
7
  initialValue?: any;
9
8
  disabled?: any;
10
9
  }
11
- declare const CassandraDatasource: (props: ICassandraDatasourceProps) => React.JSX.Element;
10
+ declare const CassandraDatasource: (props: ICassandraDatasourceProps) => JSX.Element;
12
11
  export default CassandraDatasource;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface IKafkaDatasourceProps {
3
2
  extraInfo?: any;
4
3
  datasource?: any;
@@ -8,5 +7,5 @@ interface IKafkaDatasourceProps {
8
7
  initialValue?: any;
9
8
  disabled?: any;
10
9
  }
11
- declare const KafkaDatasource: (props: IKafkaDatasourceProps) => React.JSX.Element;
10
+ declare const KafkaDatasource: (props: IKafkaDatasourceProps) => JSX.Element;
12
11
  export default KafkaDatasource;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface IPostgreSQLDatasourceProps {
3
2
  extraInfo?: any;
4
3
  wrapperCol: string;
@@ -8,5 +7,5 @@ interface IPostgreSQLDatasourceProps {
8
7
  initialValue?: any;
9
8
  disabled?: boolean;
10
9
  }
11
- declare const PostgreSQLDatasource: (props: IPostgreSQLDatasourceProps) => React.JSX.Element;
10
+ declare const PostgreSQLDatasource: (props: IPostgreSQLDatasourceProps) => JSX.Element;
12
11
  export default PostgreSQLDatasource;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface ISqlServerDatasourceProps {
3
2
  extraInfo?: any;
4
3
  datasource?: any;
@@ -8,5 +7,5 @@ interface ISqlServerDatasourceProps {
8
7
  initialValue?: any;
9
8
  disabled?: any;
10
9
  }
11
- declare const SqlServerDatasource: (props: ISqlServerDatasourceProps) => React.JSX.Element;
10
+ declare const SqlServerDatasource: (props: ISqlServerDatasourceProps) => JSX.Element;
12
11
  export default SqlServerDatasource;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  interface IDatasourceProps {
3
2
  extraInfo?: any;
4
3
  disabled?: boolean;
5
4
  value?: any;
6
5
  onChange?: (value: any) => void;
7
6
  }
8
- declare const DataSource: (props: IDatasourceProps) => React.JSX.Element;
7
+ declare const DataSource: (props: IDatasourceProps) => JSX.Element;
9
8
  export default DataSource;
@@ -1,9 +1,8 @@
1
- import React from 'react';
2
1
  interface IMapTableProps {
3
2
  extraInfo?: any;
4
3
  value?: any;
5
4
  disabled?: boolean;
6
5
  onChange?: (value: any) => void;
7
6
  }
8
- declare const MapTable: (props: IMapTableProps) => React.JSX.Element;
7
+ declare const MapTable: (props: IMapTableProps) => JSX.Element;
9
8
  export default MapTable;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface INumberRangeProps {
3
2
  startKey?: string;
4
3
  endKey?: string;
@@ -16,5 +15,5 @@ interface INumberRangeProps {
16
15
  value?: any;
17
16
  onChange?: (value: any) => void;
18
17
  }
19
- declare const NumberRange: (props: INumberRangeProps) => React.JSX.Element;
18
+ declare const NumberRange: (props: INumberRangeProps) => JSX.Element;
20
19
  export default NumberRange;
@@ -59,7 +59,8 @@ var NumberRange = function NumberRange(props) {
59
59
  }
60
60
  }, [value]);
61
61
  var triggerChange = function triggerChange(changedValue) {
62
- onChange && onChange(_objectSpread(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, addonBefore === null || addonBefore === void 0 ? void 0 : addonBefore.key, before), addonAfter === null || addonAfter === void 0 ? void 0 : addonAfter.key, after), startKey || 'min', min), endKey || 'max', max), changedValue));
62
+ var _objectSpread2;
63
+ onChange && onChange(_objectSpread((_objectSpread2 = {}, _defineProperty(_objectSpread2, addonBefore === null || addonBefore === void 0 ? void 0 : addonBefore.key, before), _defineProperty(_objectSpread2, addonAfter === null || addonAfter === void 0 ? void 0 : addonAfter.key, after), _defineProperty(_objectSpread2, startKey || 'min', min), _defineProperty(_objectSpread2, endKey || 'max', max), _objectSpread2), changedValue));
63
64
  };
64
65
  var onStartChange = function onStartChange(v) {
65
66
  setMin(v);
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface IRefreshSelectProps {
3
2
  extraInfo?: any;
4
3
  disabled?: boolean;
@@ -9,5 +8,5 @@ interface IRefreshSelectProps {
9
8
  onSelect?: (value: any) => void;
10
9
  onRefresh?: () => void;
11
10
  }
12
- declare const RefreshSelect: (props: IRefreshSelectProps) => React.JSX.Element;
11
+ declare const RefreshSelect: (props: IRefreshSelectProps) => JSX.Element;
13
12
  export default RefreshSelect;
@@ -1,4 +1,3 @@
1
- import React from 'react';
2
1
  interface ISparkSqlTableProps {
3
2
  extraDico?: any[];
4
3
  initSql?: string;
@@ -7,5 +6,5 @@ interface ISparkSqlTableProps {
7
6
  disabled?: boolean;
8
7
  onChange?: (value: any) => void;
9
8
  }
10
- declare const SparkSqlTable: (props: ISparkSqlTableProps) => React.JSX.Element;
9
+ declare const SparkSqlTable: (props: ISparkSqlTableProps) => JSX.Element;
11
10
  export default SparkSqlTable;
@@ -1,3 +1,2 @@
1
- import React from 'react';
2
1
  import './index.less';
3
- export declare function withAddOnAfter(WrappedComponent: any): (props: any) => React.JSX.Element;
2
+ export declare function withAddOnAfter(WrappedComponent: any): (props: any) => JSX.Element;
@@ -1,41 +1,41 @@
1
- .with-add-on-after {
2
- --card-bg: #ffffff;
3
- position: relative;
4
- width: 100%;
5
-
6
- .ant-form-item-label {
7
- padding: 0 !important;
8
- }
9
-
10
- & > .ant-form-item {
11
- padding: 0 0 8px !important;
12
- flex: 1;
13
- }
14
- &-extra {
15
- position: absolute;
16
- right: 20px;
17
- top: 18px;
18
- padding: 0 6px;
19
- background-color: var(--card-bg);
20
- z-index: 1000;
21
- }
22
- &-ref {
23
- position: absolute;
24
- right: 20px;
25
- top: -10px;
26
- padding: 0 6px;
27
- background-color: var(--card-bg);
28
- z-index: 1000;
29
- }
30
- .ant-select-tree-indent {
31
- .ant-select-tree-indent-unit {
32
- width: 10px !important;
33
- }
34
- }
35
-
36
- /* .ant-col-2.7 {
37
- display: block;
38
- flex: 0 0 75%;
39
- max-width: 75%;
40
- } */
41
- }
1
+ .with-add-on-after {
2
+ --card-bg: #ffffff;
3
+ position: relative;
4
+ width: 100%;
5
+
6
+ .ant-form-item-label {
7
+ padding: 0 !important;
8
+ }
9
+
10
+ & > .ant-form-item {
11
+ padding: 0 0 8px !important;
12
+ flex: 1;
13
+ }
14
+ &-extra {
15
+ position: absolute;
16
+ right: 20px;
17
+ top: 18px;
18
+ padding: 0 6px;
19
+ background-color: var(--card-bg);
20
+ z-index: 1000;
21
+ }
22
+ &-ref {
23
+ position: absolute;
24
+ right: 20px;
25
+ top: -10px;
26
+ padding: 0 6px;
27
+ background-color: var(--card-bg);
28
+ z-index: 1000;
29
+ }
30
+ .ant-select-tree-indent {
31
+ .ant-select-tree-indent-unit {
32
+ width: 10px !important;
33
+ }
34
+ }
35
+
36
+ /* .ant-col-2.7 {
37
+ display: block;
38
+ flex: 0 0 75%;
39
+ max-width: 75%;
40
+ } */
41
+ }
@@ -1,5 +1,4 @@
1
1
  import { FormInstance } from 'antd/lib/form/hooks/useForm';
2
- import React from 'react';
3
2
  import './index.less';
4
3
  import { IMetaData } from '../../framework/metadata/types';
5
4
  interface IMetadataFormProps {
@@ -72,5 +71,5 @@ interface IMetadataFormProps {
72
71
  */
73
72
  onCellButtonClick?: (changedValues: any) => void;
74
73
  }
75
- declare const MetadataForm: (props: IMetadataFormProps) => React.JSX.Element;
74
+ declare const MetadataForm: (props: IMetadataFormProps) => JSX.Element;
76
75
  export default MetadataForm;
@@ -1,6 +1,5 @@
1
- import React from 'react';
2
1
  import { IFormOptions } from './interface';
3
- export declare function getDataCell(item: any, options: IFormOptions, colSpan: number): React.JSX.Element;
2
+ export declare function getDataCell(item: any, options: IFormOptions, colSpan: number): JSX.Element;
4
3
  /**
5
4
  * 渲染表单
6
5
  * @param schemaRef 元数据的schema
@@ -12,7 +11,7 @@ export declare function getDataCell(item: any, options: IFormOptions, colSpan: n
12
11
  * @param isObj 是否是个对象
13
12
  * @returns
14
13
  */
15
- export declare function renderForm(schemaRef: any[], options: IFormOptions, colSpan?: number): React.JSX.Element;
14
+ export declare function renderForm(schemaRef: any[], options: IFormOptions, colSpan?: number): JSX.Element;
16
15
  export declare function getLabelByProps(data: any): any;
17
16
  export declare function assign(pathArr: string[], val: any, obj: any): void;
18
17
  export declare function assignReplace(pathArr: string[], val: any, obj: any): void;
@@ -21,5 +21,5 @@ interface IPrpos {
21
21
  children: ReactNode;
22
22
  }
23
23
  /** antd的card不能直接放在children里 外层套一个div */
24
- declare const Index: (props: IPrpos) => React.JSX.Element;
24
+ declare const Index: (props: IPrpos) => JSX.Element;
25
25
  export default Index;
@@ -1,29 +1,29 @@
1
- .split-panel {
2
- width: 100%;
3
- height: 100%;
4
- overflow: hidden;
5
-
6
- .gutter {
7
- width: 100%;
8
- height: 100%;
9
-
10
- background-color: #bebebe;
11
- background-repeat: no-repeat;
12
- background-position: 50%;
13
-
14
- .gutter-vertical {
15
- cursor: row-resize;
16
- }
17
-
18
- .gutter-horizontal {
19
- cursor: col-resize;
20
- }
21
- }
22
-
23
- > * {
24
- height: 100%;
25
- width: 100%;
26
- float: left;
27
- position: relative;
28
- }
29
- }
1
+ .split-panel {
2
+ width: 100%;
3
+ height: 100%;
4
+ overflow: hidden;
5
+
6
+ .gutter {
7
+ width: 100%;
8
+ height: 100%;
9
+
10
+ background-color: #bebebe;
11
+ background-repeat: no-repeat;
12
+ background-position: 50%;
13
+
14
+ .gutter-vertical {
15
+ cursor: row-resize;
16
+ }
17
+
18
+ .gutter-horizontal {
19
+ cursor: col-resize;
20
+ }
21
+ }
22
+
23
+ > * {
24
+ height: 100%;
25
+ width: 100%;
26
+ float: left;
27
+ position: relative;
28
+ }
29
+ }
package/es/config.js CHANGED
@@ -61,7 +61,6 @@ globalSettingStream.pipe(map(function (p) {
61
61
  export function getConfigByKey(key) {
62
62
  return config[key];
63
63
  }
64
- debugger;
65
64
  /** 获取全部配置 */
66
65
  export var getConfig = function getConfig() {
67
66
  return config;
@@ -1,2 +1 @@
1
- import React from 'react';
2
- export default function (): React.JSX.Element;
1
+ export default function (): JSX.Element;
@@ -1,15 +1,15 @@
1
- .ant-spin-container {
2
- width: 100%;
3
- height: 100%;
4
- }
5
-
6
- // .x6-widget-selection-inner {
7
- // border: none !important;
8
- // box-shadow: none !important;
9
- // }
10
-
11
- .x6-widget-selection-box {
12
- border: none !important;
13
- box-shadow: none !important;
14
- position: static !important;
15
- }
1
+ .ant-spin-container {
2
+ width: 100%;
3
+ height: 100%;
4
+ }
5
+
6
+ // .x6-widget-selection-inner {
7
+ // border: none !important;
8
+ // box-shadow: none !important;
9
+ // }
10
+
11
+ .x6-widget-selection-box {
12
+ border: none !important;
13
+ box-shadow: none !important;
14
+ position: static !important;
15
+ }
@@ -9,6 +9,7 @@ export function IncompleteBufferError(message) {
9
9
  if (Error.captureStackTrace) {
10
10
  Error.captureStackTrace(this, this.constructor); // super helper method to include stack trace in error object
11
11
  }
12
+
12
13
  this.name = this.constructor.name;
13
14
  this.message = message || 'unable to decode';
14
15
  }
@@ -1,8 +1,8 @@
1
1
  import _typeof from "@babel/runtime/helpers/esm/typeof";
2
- /*
3
- * @Author: wangxian
4
- * @Date: 2022-05-07 11:04:42
5
- * @LastEditTime: 2022-05-07 11:04:43
2
+ /*
3
+ * @Author: wangxian
4
+ * @Date: 2022-05-07 11:04:42
5
+ * @LastEditTime: 2022-05-07 11:04:43
6
6
  */
7
7
  /*! jQuery v3.4.1 | (c) JS Foundation and other contributors | jquery.org/license */
8
8
  !function (e, t) {
@@ -1,10 +1,7 @@
1
1
  import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
2
2
  import _createClass from "@babel/runtime/helpers/esm/createClass";
3
- import _possibleConstructorReturn from "@babel/runtime/helpers/esm/possibleConstructorReturn";
4
- import _isNativeReflectConstruct from "@babel/runtime/helpers/esm/isNativeReflectConstruct";
5
- import _getPrototypeOf from "@babel/runtime/helpers/esm/getPrototypeOf";
6
3
  import _inherits from "@babel/runtime/helpers/esm/inherits";
7
- function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
4
+ import _createSuper from "@babel/runtime/helpers/esm/createSuper";
8
5
  import T from './translate';
9
6
  import { addClass } from './util';
10
7
  var CLASS_ATTRIBUTE = 'i18n-class';
@@ -15,11 +12,12 @@ var LOCALE_PATTERN = /\$\{locale}/g;
15
12
  var noop = function noop() {};
16
13
  export var DI18n = /*#__PURE__*/function (_T) {
17
14
  _inherits(DI18n, _T);
15
+ var _super = _createSuper(DI18n);
18
16
  function DI18n() {
19
17
  var _this;
20
18
  var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
21
19
  _classCallCheck(this, DI18n);
22
- _this = _callSuper(this, DI18n, [options]);
20
+ _this = _super.call(this, options);
23
21
  // public locale: string;
24
22
  // public messages: any;
25
23
  _this.isReplace = void 0;