@steedos-widgets/amis-object 6.3.6 → 6.3.8

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/assets.json CHANGED
@@ -11,39 +11,39 @@
11
11
  {
12
12
  "package": "@steedos-widgets/fullcalendar",
13
13
  "urls": [
14
- "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.6/dist/fullcalendar.umd.js",
15
- "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.6/dist/fullcalendar.umd.css"
14
+ "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.8/dist/fullcalendar.umd.js",
15
+ "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.8/dist/fullcalendar.umd.css"
16
16
  ],
17
17
  "library": "BuilderFullCalendar"
18
18
  },
19
19
  {
20
20
  "package": "@steedos-widgets/reactflow",
21
21
  "urls": [
22
- "https://unpkg.com/@steedos-widgets/reactflow@6.3.6/dist/reactflow.umd.js",
23
- "https://unpkg.com/@steedos-widgets/reactflow@6.3.6/dist/reactflow.umd.css"
22
+ "https://unpkg.com/@steedos-widgets/reactflow@6.3.8/dist/reactflow.umd.js",
23
+ "https://unpkg.com/@steedos-widgets/reactflow@6.3.8/dist/reactflow.umd.css"
24
24
  ],
25
25
  "library": "BuilderReactFlow"
26
26
  },
27
27
  {
28
28
  "package": "@steedos-widgets/sortable",
29
29
  "urls": [
30
- "https://unpkg.com/@steedos-widgets/sortable@6.3.6/dist/sortable.umd.js",
31
- "https://unpkg.com/@steedos-widgets/sortable@6.3.6/dist/sortable.umd.css"
30
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.8/dist/sortable.umd.js",
31
+ "https://unpkg.com/@steedos-widgets/sortable@6.3.8/dist/sortable.umd.css"
32
32
  ],
33
33
  "library": "BuilderSortable"
34
34
  },
35
35
  {
36
36
  "package": "steedos-lib",
37
37
  "urls": [
38
- "https://unpkg.com/@steedos-widgets/steedos-lib@6.3.6/dist/index.umd.js"
38
+ "https://unpkg.com/@steedos-widgets/steedos-lib@6.3.8/dist/index.umd.js"
39
39
  ],
40
40
  "library": "SteedosLib"
41
41
  },
42
42
  {
43
43
  "package": "@steedos-widgets/amis-object",
44
44
  "urls": [
45
- "https://unpkg.com/@steedos-widgets/amis-object@6.3.6/dist/amis-object.umd.js",
46
- "https://unpkg.com/@steedos-widgets/amis-object@6.3.6/dist/amis-object.umd.css"
45
+ "https://unpkg.com/@steedos-widgets/amis-object@6.3.8/dist/amis-object.umd.js",
46
+ "https://unpkg.com/@steedos-widgets/amis-object@6.3.8/dist/amis-object.umd.css"
47
47
  ],
48
48
  "library": "BuilderAmisObject"
49
49
  }
@@ -54,10 +54,10 @@
54
54
  "npm": {
55
55
  "package": "@steedos-widgets/fullcalendar"
56
56
  },
57
- "url": "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.6/dist/meta.js",
57
+ "url": "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.8/dist/meta.js",
58
58
  "urls": {
59
- "default": "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.6/dist/meta.js",
60
- "design": "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.6/dist/meta.js"
59
+ "default": "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.8/dist/meta.js",
60
+ "design": "https://unpkg.com/@steedos-widgets/fullcalendar@6.3.8/dist/meta.js"
61
61
  }
62
62
  },
63
63
  {
@@ -65,10 +65,10 @@
65
65
  "npm": {
66
66
  "package": "@steedos-widgets/reactflow"
67
67
  },
68
- "url": "https://unpkg.com/@steedos-widgets/reactflow@6.3.6/dist/meta.js",
68
+ "url": "https://unpkg.com/@steedos-widgets/reactflow@6.3.8/dist/meta.js",
69
69
  "urls": {
70
- "default": "https://unpkg.com/@steedos-widgets/reactflow@6.3.6/dist/meta.js",
71
- "design": "https://unpkg.com/@steedos-widgets/reactflow@6.3.6/dist/meta.js"
70
+ "default": "https://unpkg.com/@steedos-widgets/reactflow@6.3.8/dist/meta.js",
71
+ "design": "https://unpkg.com/@steedos-widgets/reactflow@6.3.8/dist/meta.js"
72
72
  }
73
73
  },
74
74
  {
@@ -76,10 +76,10 @@
76
76
  "npm": {
77
77
  "package": "@steedos-widgets/sortable"
78
78
  },
79
- "url": "https://unpkg.com/@steedos-widgets/sortable@6.3.6/dist/meta.js",
79
+ "url": "https://unpkg.com/@steedos-widgets/sortable@6.3.8/dist/meta.js",
80
80
  "urls": {
81
- "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.6/dist/meta.js",
82
- "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.6/dist/meta.js"
81
+ "default": "https://unpkg.com/@steedos-widgets/sortable@6.3.8/dist/meta.js",
82
+ "design": "https://unpkg.com/@steedos-widgets/sortable@6.3.8/dist/meta.js"
83
83
  }
84
84
  },
85
85
  {
@@ -87,10 +87,10 @@
87
87
  "npm": {
88
88
  "package": "@steedos-widgets/amis-object"
89
89
  },
90
- "url": "https://unpkg.com/@steedos-widgets/amis-object@6.3.6/dist/meta.js",
90
+ "url": "https://unpkg.com/@steedos-widgets/amis-object@6.3.8/dist/meta.js",
91
91
  "urls": {
92
- "default": "https://unpkg.com/@steedos-widgets/amis-object@6.3.6/dist/meta.js",
93
- "design": "https://unpkg.com/@steedos-widgets/amis-object@6.3.6/dist/meta.js"
92
+ "default": "https://unpkg.com/@steedos-widgets/amis-object@6.3.8/dist/meta.js",
93
+ "design": "https://unpkg.com/@steedos-widgets/amis-object@6.3.8/dist/meta.js"
94
94
  }
95
95
  }
96
96
  ]
@@ -0,0 +1,143 @@
1
+ import React from 'react';
2
+ import { RendererProps, FormBaseControl, FormHorizontal } from 'amis-core';
3
+ import { BaseSchema, SchemaCollection, SchemaTpl, SchemaObject } from 'amis';
4
+ /**
5
+ * Collapse 折叠渲染器,格式说明。
6
+ * 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/collapse
7
+ */
8
+ interface CollapseSchema extends BaseSchema {
9
+ /**
10
+ * 指定为折叠器类型
11
+ */
12
+ type: 'collapse';
13
+ /**
14
+ * 标识
15
+ */
16
+ key?: string;
17
+ /**
18
+ * 标题展示位置
19
+ */
20
+ headerPosition?: 'top' | 'bottom';
21
+ /**
22
+ * 标题
23
+ */
24
+ header?: string | SchemaCollection;
25
+ /**
26
+ * 内容区域
27
+ */
28
+ body: SchemaCollection;
29
+ /**
30
+ * 配置 Body 容器 className
31
+ */
32
+ bodyClassName?: string;
33
+ /**
34
+ * 是否禁用
35
+ */
36
+ disabled?: boolean;
37
+ /**
38
+ * 是否可折叠
39
+ */
40
+ collapsable?: boolean;
41
+ /**
42
+ * 默认是否折叠
43
+ */
44
+ collapsed?: boolean;
45
+ /**
46
+ * 图标是否展示
47
+ */
48
+ showArrow?: boolean;
49
+ /**
50
+ * 自定义切换图标
51
+ */
52
+ expandIcon?: SchemaObject;
53
+ /**
54
+ * 标题 CSS 类名
55
+ */
56
+ headingClassName?: string;
57
+ /**
58
+ * 收起的标题
59
+ */
60
+ collapseHeader?: SchemaTpl;
61
+ /**
62
+ * 控件大小
63
+ */
64
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'base';
65
+ /**
66
+ * 点开时才加载内容
67
+ */
68
+ mountOnEnter?: boolean;
69
+ /**
70
+ * 卡片隐藏就销毁内容。
71
+ */
72
+ unmountOnExit?: boolean;
73
+ /**
74
+ * 标题内容分割线
75
+ */
76
+ divideLine?: boolean;
77
+ }
78
+ /**
79
+ * FieldSet 表单项集合
80
+ * 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/form/fieldset
81
+ */
82
+ interface FieldSetControlSchema extends Omit<FormBaseControl, 'size'>, Omit<CollapseSchema, 'type' | 'body'> {
83
+ /**
84
+ * 指定为表单项集合
85
+ */
86
+ type: 'fieldset' | 'fieldSet';
87
+ /**
88
+ * 标题展示位置
89
+ */
90
+ titlePosition: 'top' | 'bottom';
91
+ /**
92
+ * 是否可折叠
93
+ */
94
+ collapsable?: boolean;
95
+ /**
96
+ * 默认是否折叠
97
+ */
98
+ collapsed?: boolean;
99
+ /**
100
+ * 内容区域
101
+ */
102
+ body?: SchemaCollection;
103
+ /**
104
+ * 标题
105
+ */
106
+ title?: SchemaTpl;
107
+ /**
108
+ * 收起的标题
109
+ */
110
+ collapseTitle?: SchemaTpl;
111
+ /**
112
+ * 点开时才加载内容
113
+ */
114
+ mountOnEnter?: boolean;
115
+ /**
116
+ * 卡片隐藏就销毁内容。
117
+ */
118
+ unmountOnExit?: boolean;
119
+ /**
120
+ * 配置子表单项默认的展示方式。
121
+ */
122
+ subFormMode?: 'normal' | 'inline' | 'horizontal';
123
+ /**
124
+ * 如果是水平排版,这个属性可以细化水平排版的左右宽度占比。
125
+ */
126
+ subFormHorizontal?: FormHorizontal;
127
+ }
128
+ interface FieldSetProps extends RendererProps, Omit<FieldSetControlSchema, 'type' | 'className' | 'descriptionClassName' | 'inputClassName'> {
129
+ }
130
+ declare class FieldSetControl extends React.Component<FieldSetProps, any> {
131
+ constructor(props: FieldSetProps);
132
+ static defaultProps: {
133
+ titlePosition: string;
134
+ headingClassName: string;
135
+ collapsable: boolean;
136
+ };
137
+ static propsList: Array<string>;
138
+ renderBody(): JSX.Element;
139
+ render(): JSX.Element;
140
+ }
141
+ export declare class SteedosFieldSet extends FieldSetControl {
142
+ }
143
+ export {};
@@ -0,0 +1,108 @@
1
+ import React from 'react';
2
+ import { RendererProps } from 'amis-core';
3
+ import { BaseSchema, SchemaClassName, SchemaCollection } from 'amis';
4
+ /** 容器拖拽配置 */
5
+ interface ContainerDraggableConfig {
6
+ /**
7
+ * 可拖拽的方向, 默认为所有方向, 支持设置为X或Y轴
8
+ */
9
+ axis?: 'both' | 'x' | 'y';
10
+ /**
11
+ * 元素的起始位置
12
+ */
13
+ defaultPosition?: {
14
+ x: number;
15
+ y: number;
16
+ };
17
+ /**
18
+ * 拖拽的边界, 可以设置坐标, 也可以设置父级元素的选择器
19
+ */
20
+ bounds?: {
21
+ left?: number;
22
+ right?: number;
23
+ top?: number;
24
+ bottom?: number;
25
+ } | string;
26
+ /**
27
+ * 以网格模式拖拽的步长
28
+ */
29
+ grid?: [number, number];
30
+ /**
31
+ * 初始化拖拽的选择器
32
+ */
33
+ handle?: string;
34
+ /**
35
+ * 禁止拖拽的选择器
36
+ */
37
+ cancel?: string;
38
+ /**
39
+ * 拖拽距离的缩放比, 默认为1
40
+ */
41
+ scale?: number;
42
+ /**
43
+ * 默认设置容器内部为'user-select:none', 可以设置true关闭
44
+ */
45
+ enableUserSelect?: boolean;
46
+ }
47
+ /**
48
+ * Container 容器渲染器。
49
+ * 文档:https://aisuda.bce.baidu.com/amis/zh-CN/components/container
50
+ */
51
+ interface ContainerSchema extends BaseSchema {
52
+ /**
53
+ * 指定为 container 类型
54
+ */
55
+ type: 'container';
56
+ /**
57
+ * 内容
58
+ */
59
+ body: SchemaCollection;
60
+ /**
61
+ * body 类名
62
+ */
63
+ bodyClassName?: SchemaClassName;
64
+ /**
65
+ * 自定义样式
66
+ */
67
+ style?: {
68
+ [propName: string]: any;
69
+ };
70
+ /**
71
+ * 使用的标签
72
+ */
73
+ wrapperComponent?: string;
74
+ /**
75
+ * 是否需要对body加一层div包裹,默认为 true
76
+ */
77
+ wrapperBody?: boolean;
78
+ /**
79
+ * 是否开启容器拖拽
80
+ */
81
+ draggable?: boolean | string;
82
+ /**
83
+ * 是否开启容器拖拽配置
84
+ */
85
+ draggableConfig: ContainerDraggableConfig | string;
86
+ }
87
+ interface ContainerProps extends RendererProps, Omit<ContainerSchema, 'type' | 'className' | 'style'> {
88
+ children?: (props: any) => React.ReactNode;
89
+ }
90
+ declare class Container<T> extends React.Component<ContainerProps & T, object> {
91
+ static propsList: Array<string>;
92
+ static defaultProps: {
93
+ className: string;
94
+ draggableConfig: {
95
+ axis: "both" | "x" | "y";
96
+ scale: number;
97
+ enableUserSelect: boolean;
98
+ };
99
+ };
100
+ handleClick(e: React.MouseEvent<any>): void;
101
+ handleMouseEnter(e: React.MouseEvent<any>): void;
102
+ handleMouseLeave(e: React.MouseEvent<any>): void;
103
+ renderBody(): JSX.Element | null;
104
+ render(): JSX.Element;
105
+ }
106
+ export declare class SteedosObject extends Container<{}> {
107
+ }
108
+ export {};
@@ -8,3 +8,5 @@ export * from './SteedosBadge';
8
8
  export * from './SteedosBadgeRibbon';
9
9
  export * from './SteedosLoading';
10
10
  export * from './SteedosSkeleton';
11
+ export * from './SteedosFieldSet';
12
+ export * from './SteedosObject';