@cloud-app-dev/vidc 2.0.0-alpha.1 → 2.0.0-alpha.13

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 (277) hide show
  1. package/.umirc.ts +2 -3
  2. package/es/Api/index.d.ts +3 -4
  3. package/es/Api/index.js +7 -8
  4. package/es/AppRedirect/index.css +0 -0
  5. package/es/AppRedirect/index.d.ts +16 -0
  6. package/es/AppRedirect/index.js +34 -0
  7. package/es/AppRoute/index.d.ts +10 -0
  8. package/es/AppRoute/index.js +115 -0
  9. package/es/AppRoute/interface.d.ts +8 -0
  10. package/es/Auth/index.d.ts +8 -0
  11. package/es/Auth/index.js +17 -0
  12. package/es/AutoExit/index.js +15 -10
  13. package/es/Box/BetweenBox/index.css +5 -0
  14. package/es/Box/BetweenBox/index.d.ts +12 -0
  15. package/es/Box/BetweenBox/index.js +24 -0
  16. package/es/Box/InfoBox/index.css +23 -0
  17. package/es/Box/InfoBox/index.d.ts +12 -0
  18. package/es/Box/InfoBox/index.js +26 -0
  19. package/es/Box/TwoColumnBox/index.css +77 -0
  20. package/es/Box/TwoColumnBox/index.d.ts +10 -0
  21. package/es/Box/TwoColumnBox/index.js +50 -0
  22. package/es/Box/deps/content-grid.d.ts +9 -0
  23. package/es/Box/deps/content-grid.js +9 -0
  24. package/es/Box/deps/grid-factory.d.ts +10 -0
  25. package/es/Box/deps/grid-factory.js +72 -0
  26. package/es/Box/deps/simple-grid.d.ts +9 -0
  27. package/es/Box/deps/simple-grid.js +8 -0
  28. package/es/Box/index.css +9 -0
  29. package/es/Box/index.d.ts +14 -0
  30. package/es/Box/index.js +28 -0
  31. package/es/CheckGroupFixed/index.css +49 -0
  32. package/es/CheckGroupFixed/index.d.ts +17 -0
  33. package/es/CheckGroupFixed/index.js +148 -0
  34. package/es/Config/index.js +63 -6
  35. package/es/Config/interface.d.ts +30 -5
  36. package/es/Config/utils.d.ts +2 -11
  37. package/es/Config/utils.js +1 -12
  38. package/es/ConfigContext/index.d.ts +3 -0
  39. package/es/DeviceIcon/icon.js +5 -5
  40. package/es/DeviceIcon/index.js +2 -2
  41. package/es/DeviceSelect/TreeType.d.ts +6 -0
  42. package/es/DeviceSelect/TreeType.js +36 -0
  43. package/es/DeviceSelect/demo.js +2 -2
  44. package/es/DeviceSelect/index.css +6 -1
  45. package/es/DeviceSelect/index.d.ts +5 -0
  46. package/es/DeviceSelect/index.js +22 -53
  47. package/es/Dict/cache.d.ts +3 -0
  48. package/es/Dict/cache.js +21 -0
  49. package/es/Dict/desc.d.ts +64 -0
  50. package/es/Dict/desc.js +162 -0
  51. package/es/Dict/device.d.ts +28 -0
  52. package/es/Dict/device.js +117 -0
  53. package/es/Dict/hook.d.ts +4 -0
  54. package/es/Dict/hook.js +114 -0
  55. package/es/Dict/index.d.ts +13 -0
  56. package/es/Dict/index.js +14 -0
  57. package/es/Dict/interface.d.ts +16 -0
  58. package/es/Dict/utils.d.ts +11 -0
  59. package/es/Dict/utils.js +51 -0
  60. package/es/Drag/DragAndDropItem.d.ts +4 -0
  61. package/es/Drag/DragAndDropItem.js +145 -0
  62. package/es/Drag/DropItem.d.ts +4 -0
  63. package/es/Drag/DropItem.js +54 -0
  64. package/es/Drag/index.css +0 -0
  65. package/es/Drag/index.d.ts +7 -0
  66. package/es/Drag/index.js +7 -0
  67. package/es/Drag/interface.d.ts +16 -0
  68. package/es/Drawer/Demo.d.ts +3 -0
  69. package/es/Drawer/Demo.js +52 -0
  70. package/es/Drawer/Footer.d.ts +4 -0
  71. package/es/Drawer/Footer.js +26 -0
  72. package/es/Drawer/index.css +39 -0
  73. package/es/Drawer/index.d.ts +12 -0
  74. package/es/Drawer/index.js +41 -0
  75. package/es/Drawer/interface.d.ts +191 -0
  76. package/es/FullScreen/index.css +16 -0
  77. package/es/FullScreen/index.d.ts +10 -0
  78. package/es/FullScreen/index.js +68 -0
  79. package/es/HightLevel/index.css +3 -0
  80. package/es/HightLevel/index.d.ts +9 -0
  81. package/es/HightLevel/index.js +23 -0
  82. package/es/IconFont/index.d.ts +12 -0
  83. package/es/IconFont/index.js +57 -0
  84. package/es/ImageView/index.css +6 -0
  85. package/es/ImageView/index.d.ts +17 -0
  86. package/es/ImageView/index.js +58 -0
  87. package/es/InitialConfig/index.js +7 -11
  88. package/es/InitialConfig/utils.d.ts +1 -1
  89. package/es/InitialConfig/utils.js +8 -31
  90. package/es/InitialRequest/index.d.ts +1 -1
  91. package/es/InitialRequest/index.js +19 -11
  92. package/es/InitialRequest/utils.d.ts +5 -4
  93. package/es/InitialRequest/utils.js +58 -94
  94. package/es/Input/index.css +8 -0
  95. package/es/Input/index.d.ts +18 -0
  96. package/es/Input/index.js +76 -0
  97. package/es/LabelValue/index.css +18 -0
  98. package/es/LabelValue/index.d.ts +23 -0
  99. package/es/LabelValue/index.js +32 -0
  100. package/es/{DynamicDeviceList → List}/CheckExt.d.ts +0 -0
  101. package/es/{DynamicDeviceList → List}/CheckExt.js +4 -4
  102. package/es/List/DeviceList/index.css +0 -0
  103. package/es/List/DeviceList/index.d.ts +11 -0
  104. package/es/{DeviceList → List/DeviceList}/index.js +8 -20
  105. package/es/{DynamicDeviceList → List/DynamicDeviceList}/Demo.d.ts +0 -0
  106. package/es/List/DynamicDeviceList/Demo.js +54 -0
  107. package/es/{DynamicDeviceList → List/DynamicDeviceList}/index.css +5 -17
  108. package/es/List/DynamicDeviceList/index.d.ts +11 -0
  109. package/es/List/DynamicDeviceList/index.js +205 -0
  110. package/es/List/DynamicDeviceList/interface.d.ts +37 -0
  111. package/es/List/DynamicDeviceList/utils.d.ts +16 -0
  112. package/es/List/DynamicDeviceList/utils.js +61 -0
  113. package/es/List/DynamicGridList/Demo.d.ts +2 -0
  114. package/es/List/DynamicGridList/Demo.js +70 -0
  115. package/es/List/DynamicGridList/index.d.ts +26 -0
  116. package/es/List/DynamicGridList/index.js +73 -0
  117. package/es/List/GridList/Demo.d.ts +2 -0
  118. package/es/List/GridList/Demo.js +91 -0
  119. package/es/List/GridList/hook.d.ts +13 -0
  120. package/es/List/GridList/hook.js +301 -0
  121. package/es/List/GridList/index.css +7 -0
  122. package/es/List/GridList/index.d.ts +15 -0
  123. package/es/List/GridList/index.js +47 -0
  124. package/es/List/GridList/interface.d.ts +59 -0
  125. package/es/List/GridList/utils.d.ts +9 -0
  126. package/es/List/GridList/utils.js +43 -0
  127. package/es/List/ListExt/index.css +3 -0
  128. package/es/List/ListExt/index.d.ts +19 -0
  129. package/es/List/ListExt/index.js +44 -0
  130. package/es/List/VList/index.css +6 -0
  131. package/es/List/VList/index.d.ts +18 -0
  132. package/es/List/VList/index.js +51 -0
  133. package/es/List/VList/utils.d.ts +14 -0
  134. package/es/List/VList/utils.js +17 -0
  135. package/es/List/index.css +60 -5
  136. package/es/List/index.d.ts +10 -13
  137. package/es/List/index.js +170 -36
  138. package/es/List/interface.d.ts +87 -0
  139. package/es/List/renderItem.d.ts +20 -0
  140. package/es/List/renderItem.js +71 -0
  141. package/es/LoaderApp/index.css +3 -0
  142. package/es/LoaderApp/index.d.ts +31 -0
  143. package/es/LoaderApp/index.js +135 -0
  144. package/es/LoaderApp/interface.d.ts +6 -0
  145. package/es/LoaderApp/loader.d.ts +20 -0
  146. package/es/LoaderApp/loader.js +86 -0
  147. package/es/LoaderApp/utils.d.ts +13 -0
  148. package/es/LoaderApp/utils.js +121 -0
  149. package/es/LoaderScript/index.d.ts +26 -0
  150. package/es/LoaderScript/index.js +127 -0
  151. package/es/LoaderScript/interface.d.ts +26 -0
  152. package/es/LoaderScript/utils.d.ts +12 -0
  153. package/es/LoaderScript/utils.js +133 -0
  154. package/es/Modal/index.css +43 -0
  155. package/es/Modal/index.d.ts +17 -0
  156. package/es/Modal/index.js +34 -0
  157. package/es/Modal/interface.d.ts +339 -0
  158. package/es/Picture/component/DefaultRects/RectInfo.d.ts +7 -0
  159. package/es/Picture/component/DefaultRects/RectInfo.js +94 -0
  160. package/es/Picture/component/DefaultRects/index.css +247 -0
  161. package/es/Picture/component/DefaultRects/index.d.ts +12 -0
  162. package/es/Picture/component/DefaultRects/index.js +47 -0
  163. package/es/Picture/component/DefaultRects/utils.d.ts +2 -0
  164. package/es/Picture/component/DefaultRects/utils.js +11 -0
  165. package/es/Picture/component/DrawRect/index.css +8 -0
  166. package/es/Picture/component/DrawRect/index.d.ts +14 -0
  167. package/es/Picture/component/DrawRect/index.js +41 -0
  168. package/es/Picture/component/MoveContent/index.css +0 -0
  169. package/es/Picture/component/MoveContent/index.d.ts +39 -0
  170. package/es/Picture/component/MoveContent/index.js +240 -0
  171. package/es/Picture/component/MoveContent/utils.d.ts +4 -0
  172. package/es/Picture/component/MoveContent/utils.js +19 -0
  173. package/es/Picture/component/RectMenu/index.css +31 -0
  174. package/es/Picture/component/RectMenu/index.d.ts +13 -0
  175. package/es/Picture/component/RectMenu/index.js +81 -0
  176. package/es/Picture/component/RectMenu/utils.d.ts +12 -0
  177. package/es/Picture/component/RectMenu/utils.js +22 -0
  178. package/es/Picture/component/Tools/index.css +42 -0
  179. package/es/Picture/component/Tools/index.d.ts +13 -0
  180. package/es/Picture/component/Tools/index.js +83 -0
  181. package/es/Picture/component/WheelScale/index.d.ts +6 -0
  182. package/es/Picture/component/WheelScale/index.js +29 -0
  183. package/es/Picture/dragBound.d.ts +5 -0
  184. package/es/Picture/dragBound.js +77 -0
  185. package/es/Picture/index.css +12 -0
  186. package/es/Picture/index.d.ts +16 -0
  187. package/es/Picture/index.js +344 -0
  188. package/es/Picture/interface.d.ts +67 -0
  189. package/es/Picture/loadCaptureRectImage.d.ts +8 -0
  190. package/es/Picture/loadCaptureRectImage.js +119 -0
  191. package/es/Picture/useDraw.d.ts +1 -0
  192. package/es/Picture/useDraw.js +136 -0
  193. package/es/Picture/utils.d.ts +22 -0
  194. package/es/Picture/utils.js +90 -0
  195. package/es/Progress/index.css +20 -0
  196. package/es/Progress/index.d.ts +11 -0
  197. package/es/Progress/index.js +68 -0
  198. package/es/RefDrawer/index.js +4 -5
  199. package/es/RefModal/index.js +4 -5
  200. package/es/Service/http.d.ts +1 -1
  201. package/es/Service/http.js +2 -25
  202. package/es/TableLayout/index.css +4 -0
  203. package/es/TableLayout/index.d.ts +13 -0
  204. package/es/TableLayout/index.js +33 -0
  205. package/es/ThemeAntd/index.css +501 -0
  206. package/es/ThemeAntd/index.d.ts +7 -0
  207. package/es/ThemeAntd/index.js +6 -0
  208. package/es/ThemeAntd/style/button.css +46 -0
  209. package/es/ThemeAntd/style/checkbox.css +64 -0
  210. package/es/ThemeAntd/style/form.css +10 -0
  211. package/es/ThemeAntd/style/input.css +58 -0
  212. package/es/ThemeAntd/style/pagination.css +44 -0
  213. package/es/ThemeAntd/style/picker.css +86 -0
  214. package/es/ThemeAntd/style/popover.css +3 -0
  215. package/es/ThemeAntd/style/radio.css +71 -0
  216. package/es/ThemeAntd/style/scrollbar.css +19 -0
  217. package/es/ThemeAntd/style/select.css +57 -0
  218. package/es/ThemeAntd/style/table.css +36 -0
  219. package/es/ThemeAntd/style/tree.css +4 -0
  220. package/es/{TreeTitle → Title}/index.css +5 -5
  221. package/es/{TreeTitle → Title}/index.d.ts +2 -2
  222. package/es/{TreeTitle → Title}/index.js +9 -6
  223. package/es/{TreeMode → Tree/BaseTree}/demo.d.ts +0 -0
  224. package/es/Tree/BaseTree/demo.js +69 -0
  225. package/es/Tree/BaseTree/index.css +64 -0
  226. package/es/Tree/BaseTree/index.d.ts +24 -0
  227. package/es/Tree/BaseTree/index.js +83 -0
  228. package/es/Tree/demo.d.ts +2 -0
  229. package/es/{TreeMode → Tree}/demo.js +0 -0
  230. package/es/{TreeMode → Tree}/index.css +1 -1
  231. package/es/{TreeMode → Tree}/index.d.ts +1 -1
  232. package/es/{TreeMode → Tree}/index.js +9 -12
  233. package/es/UserSelect/index.d.ts +3 -3
  234. package/es/UserSelect/index.js +18 -15
  235. package/es/WorkerFlow/Form/Condition.js +6 -8
  236. package/es/WorkerFlow/Form/EmptyUserSet.js +4 -6
  237. package/es/WorkerFlow/Form/FormAuth.js +3 -3
  238. package/es/WorkerFlow/Form/GroupList.js +2 -2
  239. package/es/WorkerFlow/Form/GroupSelect.js +4 -6
  240. package/es/WorkerFlow/Form/GroupSelectModalContent.js +8 -7
  241. package/es/WorkerFlow/Form/LevelGroupSelect.js +5 -7
  242. package/es/WorkerFlow/Form/UserAndGroupSelect.js +4 -6
  243. package/es/WorkerFlow/Form/UserSelect.js +4 -6
  244. package/es/WorkerFlow/Form/UserSelectModalContent.js +8 -6
  245. package/es/WorkerFlow/Form/UserSet.js +3 -3
  246. package/es/WorkerFlow/Nodes/Add.js +2 -3
  247. package/es/WorkerFlow/Nodes/AddOption.js +2 -2
  248. package/es/WorkerFlow/Nodes/Approver.js +2 -2
  249. package/es/WorkerFlow/Nodes/Condition.js +2 -2
  250. package/es/WorkerFlow/Nodes/Handle.js +2 -2
  251. package/es/WorkerFlow/Nodes/Notifier.js +2 -2
  252. package/es/WorkerFlow/Nodes/TitleElement.js +70 -36
  253. package/es/WorkerFlow/index.css +9 -3
  254. package/es/WorkerFlow/index.js +3 -3
  255. package/es/WorkerFlow/utils.js +2 -2
  256. package/es/core.d.ts +27 -0
  257. package/es/index.d.ts +27 -4
  258. package/es/index.js +27 -4
  259. package/es/useDrawer/index.d.ts +14 -0
  260. package/es/useDrawer/index.js +91 -0
  261. package/es/useHttp/index.d.ts +8 -0
  262. package/es/useHttp/index.js +78 -0
  263. package/es/useModal/index.d.ts +14 -0
  264. package/es/useModal/index.js +93 -0
  265. package/es/useNavigate/index.css +0 -0
  266. package/es/useNavigate/index.d.ts +4 -0
  267. package/es/useNavigate/index.js +14 -0
  268. package/es/utils.d.ts +11 -0
  269. package/es/utils.js +68 -1
  270. package/package.json +10 -8
  271. package/es/DeviceList/index.css +0 -32
  272. package/es/DeviceList/index.d.ts +0 -14
  273. package/es/DynamicDeviceList/Demo.js +0 -17
  274. package/es/DynamicDeviceList/index.d.ts +0 -35
  275. package/es/DynamicDeviceList/index.js +0 -224
  276. package/es/DynamicDeviceList/utils.d.ts +0 -2
  277. package/es/DynamicDeviceList/utils.js +0 -15
@@ -0,0 +1,191 @@
1
+ import * as React from 'react';
2
+ declare type EventType = React.KeyboardEvent<HTMLDivElement> | React.MouseEvent<HTMLDivElement | HTMLButtonElement>;
3
+ declare type getContainerFunc = () => HTMLElement;
4
+ declare const PlacementTypes: ['top', 'right', 'bottom', 'left'];
5
+ declare type placementType = typeof PlacementTypes[number];
6
+ export interface PushState {
7
+ distance: string | number;
8
+ }
9
+ export interface DrawerProps {
10
+ children?: React.ReactNode;
11
+ /**
12
+ * @description 是否显示右上角的关闭按钮
13
+ * @default true
14
+ */
15
+ closable?: boolean;
16
+
17
+ /**
18
+ * @description 自定义关闭图标
19
+ * @default <CloseOutlined />
20
+ */
21
+ closeIcon?: React.ReactNode;
22
+
23
+ /**
24
+ * @description 关闭时销毁 Drawer 里的子元素
25
+ * @default false
26
+ */
27
+ destroyOnClose?: boolean;
28
+
29
+ /**
30
+ * @description 预渲染 Drawer 内元素
31
+ * @default false
32
+ */
33
+ forceRender?: boolean;
34
+
35
+ /**
36
+ * @description 指定 Drawer 挂载的 HTML 节点, false 为挂载在当前 dom
37
+ * @default body
38
+ * @type HTMLElement | () => HTMLElement | Selectors | false
39
+ */
40
+ getContainer?: string | HTMLElement | getContainerFunc | false;
41
+
42
+ /**
43
+ * @description 点击蒙层是否允许关闭
44
+ * @default true
45
+ */
46
+ maskClosable?: boolean;
47
+
48
+ /**
49
+ * @description 是否展示遮罩
50
+ * @default true
51
+ */
52
+ mask?: boolean;
53
+
54
+ /**
55
+ * @description 遮罩样式
56
+ * @default -
57
+ */
58
+ maskStyle?: React.CSSProperties;
59
+
60
+ /**
61
+ * @description 可用于设置 Drawer 最外层容器的样式,和 drawerStyle 的区别是作用节点包括 mask
62
+ * @default -
63
+ */
64
+ style?: React.CSSProperties;
65
+
66
+ /**
67
+ * @description 用于设置 Drawer 弹出层的样式
68
+ * @default -
69
+ */
70
+ drawerStyle?: React.CSSProperties;
71
+
72
+ /**
73
+ * @description 用于设置 Drawer 头部的样式
74
+ * @default -
75
+ */
76
+ headerStyle?: React.CSSProperties;
77
+
78
+ /**
79
+ * @description 可用于设置 Drawer 内容部分的样式
80
+ * @default -
81
+ */
82
+ bodyStyle?: React.CSSProperties;
83
+
84
+ /**
85
+ * @description 标题
86
+ * @default -
87
+ */
88
+ title?: React.ReactNode;
89
+
90
+ /**
91
+ * @description Drawer 是否可见
92
+ * @default -
93
+ */
94
+ visible?: boolean;
95
+
96
+ /**
97
+ * @description 宽度
98
+ * @default 256
99
+ */
100
+ width?: number | string;
101
+
102
+ /**
103
+ * @description 高度
104
+ * @default 256
105
+ */
106
+ height?: number | string;
107
+
108
+ /**
109
+ * @description 设置 Drawer 的 z-index
110
+ * @default 1000
111
+ */
112
+ zIndex?: number;
113
+
114
+ /**
115
+ * @description 用于设置多层 Drawer 的推动行为
116
+ * @type boolean | { distance: string | number }
117
+ * @default { distance: 180 }
118
+ */
119
+ push?: boolean | PushState;
120
+
121
+ /**
122
+ * @description 抽屉的方向
123
+ * @default right
124
+ */
125
+ placement?: 'top' | 'right' | 'bottom' | 'left';
126
+
127
+ /**
128
+ * @description 点击遮罩层或右上角叉或取消按钮的回调
129
+ * @default -
130
+ */
131
+ onClose?: (e: EventType) => void;
132
+
133
+ /**
134
+ * @description 点击footer下的确定按钮
135
+ * @default -
136
+ */
137
+ onOk?: (e: EventType) => void;
138
+
139
+ /**
140
+ * @description 切换抽屉时动画结束后的回调
141
+ * @default -
142
+ */
143
+ afterVisibleChange?: (visible: boolean) => void;
144
+
145
+ /**
146
+ * @description 对话框外层容器的类名
147
+ * @default -
148
+ */
149
+ className?: string;
150
+
151
+ /**
152
+ * @description 是否支持键盘 esc 关闭
153
+ * @default true
154
+ */
155
+ keyboard?: boolean;
156
+
157
+ /**
158
+ * @description 抽屉的页脚 可以设为 footer={null}
159
+ * @type ReactNode
160
+ * @default (确定取消按钮)
161
+ */
162
+ footer?: React.ReactNode | false;
163
+
164
+ /**
165
+ * @description 抽屉页脚部件的样式
166
+ * @default -
167
+ * @type CSSProperties
168
+ */
169
+ footerStyle?: React.CSSProperties;
170
+
171
+ /**
172
+ * @description 取消按钮文本
173
+ * @default 取消
174
+ * @type string
175
+ */
176
+ cancelText?: string;
177
+
178
+ /**
179
+ * @description 确认按钮文本
180
+ * @default 确定
181
+ * @type string
182
+ */
183
+ okText?: string;
184
+ }
185
+
186
+ export interface IFooterProps {
187
+ onClose: (e: any) => void;
188
+ cancelText: string;
189
+ okText: string;
190
+ onOk: (e: any) => void;
191
+ }
@@ -0,0 +1,16 @@
1
+ .tools-screen-layer {
2
+ flex: 1;
3
+ align-self: center;
4
+ text-align: center;
5
+ font-size: var(--fs-small);
6
+ position: relative;
7
+ cursor: pointer;
8
+ }
9
+ .tools-screen-layer .anticon {
10
+ padding-right: 5px;
11
+ }
12
+ .tools-screen-layer .defualt-fullscreen-icon {
13
+ position: relative;
14
+ top: 1px;
15
+ font-size: 16px;
16
+ }
@@ -0,0 +1,10 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface IFullScrenProps {
4
+ className?: string;
5
+ getContainer: () => HTMLElement | Element;
6
+ fullScreenChange?: (flag: boolean) => void;
7
+ children?: (flag: boolean) => React.ReactNode;
8
+ }
9
+ declare function FullScreen({ children, className, getContainer, fullScreenChange }: IFullScrenProps): JSX.Element;
10
+ export default FullScreen;
@@ -0,0 +1,68 @@
1
+ import _fullScreenHelper from "@cloud-app-dev/utils/es/fullScreenHelper";
2
+
3
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
4
+
5
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
+
7
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
8
+
9
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
10
+
11
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
12
+
13
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
14
+
15
+ import React, { useState, useEffect } from 'react';
16
+ import IconFont from '../IconFont';
17
+ import "./index.css";
18
+
19
+ function FullScreen(_ref) {
20
+ var children = _ref.children,
21
+ className = _ref.className,
22
+ getContainer = _ref.getContainer,
23
+ fullScreenChange = _ref.fullScreenChange;
24
+
25
+ var _useState = useState(false),
26
+ _useState2 = _slicedToArray(_useState, 2),
27
+ screenState = _useState2[0],
28
+ setScreenState = _useState2[1];
29
+
30
+ useEffect(function () {
31
+ var onfullscreenchange = function onfullscreenchange() {
32
+ var fullScreenEle = _fullScreenHelper.isFullscreen();
33
+
34
+ var container = getContainer();
35
+ var flag = container === fullScreenEle;
36
+ setScreenState(flag);
37
+ fullScreenChange && fullScreenChange(flag);
38
+ };
39
+
40
+ document.addEventListener('webkitfullscreenchange', onfullscreenchange, false);
41
+ return function () {
42
+ return document.removeEventListener('webkitfullscreenchange', onfullscreenchange, false);
43
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
44
+ }, [screenState]);
45
+
46
+ function onClickFullScreen() {
47
+ var container = getContainer();
48
+
49
+ var fullScreenEle = _fullScreenHelper.isFullscreen();
50
+
51
+ var flag = fullScreenEle === container;
52
+ flag ? _fullScreenHelper.exitFullscreen() : _fullScreenHelper.fullscreen(container);
53
+ setScreenState(!flag);
54
+ fullScreenChange && fullScreenChange(!flag);
55
+ }
56
+
57
+ return /*#__PURE__*/React.createElement("div", {
58
+ className: "tools-screen-layer ".concat(className ? className : ''),
59
+ onClick: function onClick() {
60
+ return onClickFullScreen();
61
+ }
62
+ }, children ? children(screenState) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(IconFont, {
63
+ className: "defualt-fullscreen-icon icon-primary",
64
+ type: !screenState ? 'icon-S_View_ScreenViewFull' : 'icon-S_View_ScreenViewExit'
65
+ }), !screenState ? '全屏' : '窗口'));
66
+ }
67
+
68
+ export default FullScreen;
@@ -0,0 +1,3 @@
1
+ .high-level {
2
+ color: var(--primary-dark);
3
+ }
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface HightLevelProps {
4
+ keyword: string;
5
+ name: string;
6
+ }
7
+ declare function HighLevel({ keyword, name }: HightLevelProps): JSX.Element;
8
+ declare const _default: React.MemoExoticComponent<typeof HighLevel>;
9
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import React from 'react';
2
+ import replace from 'lodash-es/replace';
3
+ import escapeRegExp from 'lodash-es/escapeRegExp';
4
+ import "./index.css";
5
+
6
+ function HighLevel(_ref) {
7
+ var keyword = _ref.keyword,
8
+ name = _ref.name;
9
+
10
+ if (!keyword) {
11
+ return /*#__PURE__*/React.createElement("span", null, name);
12
+ }
13
+
14
+ var reg = new RegExp(escapeRegExp(keyword), 'g');
15
+ var html = replace(name, reg, "<span class=\"high-level\">".concat(keyword, "</span>"));
16
+ return /*#__PURE__*/React.createElement("span", {
17
+ dangerouslySetInnerHTML: {
18
+ __html: html
19
+ }
20
+ });
21
+ }
22
+
23
+ export default /*#__PURE__*/React.memo(HighLevel);
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ interface IconFontProps extends React.HTMLAttributes<HTMLSpanElement> {
3
+ type?: string;
4
+ className?: string;
5
+ title?: string;
6
+ style?: React.CSSProperties;
7
+ }
8
+ declare function IconFont({ type, className, title, style, ...props }: IconFontProps): JSX.Element;
9
+ declare namespace IconFont {
10
+ var registerIconFont: (scriptUrl: string) => void;
11
+ }
12
+ export default IconFont;
@@ -0,0 +1,57 @@
1
+ import { __rest } from "tslib";
2
+ import React from 'react';
3
+ var global = window;
4
+
5
+ if (!global._ICON_SCRIPT_URL) {
6
+ global._ICON_SCRIPT_URL = {};
7
+ }
8
+
9
+ function loadScript(url) {
10
+ return new Promise(function (resolve, reject) {
11
+ var script = document.createElement('script');
12
+ script.src = url;
13
+ document.body.appendChild(script);
14
+ script.addEventListener('load', function () {
15
+ resolve(null);
16
+ });
17
+ script.addEventListener('error', function (err) {
18
+ reject(err);
19
+ });
20
+ });
21
+ }
22
+
23
+ function registerIconFont(scriptUrl) {
24
+ if (!global._ICON_SCRIPT_URL[scriptUrl]) {
25
+ global._ICON_SCRIPT_URL[scriptUrl] = true;
26
+ loadScript(scriptUrl).catch(function (e) {
27
+ global._ICON_SCRIPT_URL[scriptUrl] = false;
28
+ console.error(e);
29
+ });
30
+ }
31
+ }
32
+
33
+ function IconFont(_a) {
34
+ var type = _a.type,
35
+ _a$className = _a.className,
36
+ className = _a$className === void 0 ? '' : _a$className,
37
+ title = _a.title,
38
+ style = _a.style,
39
+ props = __rest(_a, ["type", "className", "title", "style"]);
40
+
41
+ return /*#__PURE__*/React.createElement("i", Object.assign({
42
+ className: "anticon ".concat(className),
43
+ title: title,
44
+ style: style
45
+ }, props), /*#__PURE__*/React.createElement("svg", {
46
+ width: "1em",
47
+ height: "1em",
48
+ fill: "currentColor",
49
+ "aria-hidden": "true",
50
+ focusable: "false"
51
+ }, /*#__PURE__*/React.createElement("use", {
52
+ xlinkHref: "#".concat(type)
53
+ })));
54
+ }
55
+
56
+ IconFont.registerIconFont = registerIconFont;
57
+ export default IconFont;
@@ -0,0 +1,6 @@
1
+ .lm-t-c-image-card {
2
+ width: 100%;
3
+ height: 100%;
4
+ object-fit: cover;
5
+ background-color: var(--image-card-bg);
6
+ }
@@ -0,0 +1,17 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ interface ImageViewProps extends React.HTMLAttributes<HTMLImageElement> {
4
+ defaultSrc?: string;
5
+ src?: string;
6
+ alt?: string;
7
+ onError?: (e: any) => void;
8
+ className?: string;
9
+ }
10
+ declare function ImageView({ src, defaultSrc, alt, onError, className, ...props }: ImageViewProps): JSX.Element;
11
+ declare namespace ImageView {
12
+ var defaultProps: {
13
+ className: string;
14
+ defaultSrc: string;
15
+ };
16
+ }
17
+ export default ImageView;
@@ -0,0 +1,58 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
9
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
+
11
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
+
13
+ import { __rest } from "tslib";
14
+ import React, { useState, useEffect, useMemo, useRef } from 'react';
15
+ import "./index.css";
16
+
17
+ function ImageView(_a) {
18
+ var src = _a.src,
19
+ defaultSrc = _a.defaultSrc,
20
+ alt = _a.alt,
21
+ onError = _a.onError,
22
+ className = _a.className,
23
+ props = __rest(_a, ["src", "defaultSrc", "alt", "onError", "className"]);
24
+
25
+ var _useState = useState(!src),
26
+ _useState2 = _slicedToArray(_useState, 2),
27
+ isError = _useState2[0],
28
+ setErrorStatus = _useState2[1];
29
+
30
+ var imgKey = useRef(Math.random());
31
+ var imgSrc = useMemo(function () {
32
+ return isError || !src ? defaultSrc : src;
33
+ }, [defaultSrc, isError, src]);
34
+ useEffect(function () {
35
+ imgKey.current = Math.random();
36
+ setErrorStatus(null);
37
+ }, [src]);
38
+
39
+ function onImageError(e) {
40
+ setErrorStatus(true);
41
+ onError && onError(e);
42
+ }
43
+
44
+ return /*#__PURE__*/React.createElement("img", Object.assign({}, props, {
45
+ className: "lm-t-c-image-card ".concat(className),
46
+ key: imgKey.current,
47
+ "data-src": src,
48
+ src: imgSrc,
49
+ alt: alt,
50
+ onError: onImageError
51
+ }));
52
+ }
53
+
54
+ ImageView.defaultProps = {
55
+ className: '',
56
+ defaultSrc: 'data:image/png;base64,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'
57
+ };
58
+ export default ImageView;
@@ -1,6 +1,3 @@
1
- import _Config from "@cloud-app-dev/basic-components/es/Config";
2
- import _Dict from "@cloud-app-dev/basic-components/es/Dict";
3
-
4
1
  function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
5
2
 
6
3
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
@@ -14,7 +11,9 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
14
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
15
12
 
16
13
  import React, { useState, useEffect } from 'react';
17
- import { querySystemConfig, queryMicroApplicationList, querySystemUpdate } from './utils';
14
+ import Dict from '../Dict';
15
+ import Config from '../Config';
16
+ import { queryBSConfig, queryMicroApplicationList, querySystemUpdate } from './utils';
18
17
 
19
18
  function InitialConfig(_ref) {
20
19
  var children = _ref.children,
@@ -29,19 +28,16 @@ function InitialConfig(_ref) {
29
28
  state = _useState2[0],
30
29
  setState = _useState2[1];
31
30
 
32
- _Dict.useTypeCodes();
33
-
31
+ Dict.useTypeCodes();
34
32
  useEffect(function () {
35
- Promise.all([querySystemConfig(), queryMicroApplicationList(), querySystemUpdate()]).then(function (_ref2) {
33
+ Promise.all([queryBSConfig(), queryMicroApplicationList(), querySystemUpdate()]).then(function (_ref2) {
36
34
  var _ref3 = _slicedToArray(_ref2, 3),
37
35
  BSConfig = _ref3[0],
38
36
  AppConfig = _ref3[1],
39
37
  SystemConfig = _ref3[2];
40
38
 
41
- _Config.registerBSConfig(BSConfig);
42
-
43
- _Config.registerAppConfig(AppConfig);
44
-
39
+ Config.registerBSConfig(BSConfig);
40
+ Config.registerAppConfig(AppConfig);
45
41
  setState(function () {
46
42
  return {
47
43
  isUpdate: SystemConfig.isUpdate,
@@ -2,7 +2,7 @@
2
2
  *
3
3
  * @description 获取系统配置
4
4
  */
5
- export declare function querySystemConfig(): Promise<any>;
5
+ export declare function queryBSConfig(): Promise<any>;
6
6
  /**
7
7
  *
8
8
  * @description 获取所有微应用配置
@@ -5,38 +5,21 @@ import Service from '../Service';
5
5
  * @description 获取系统配置
6
6
  */
7
7
 
8
- export function querySystemConfig() {
8
+ export function queryBSConfig() {
9
9
  return __awaiter(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
10
- var res1;
11
10
  return regeneratorRuntime.wrap(function _callee$(_context) {
12
11
  while (1) {
13
12
  switch (_context.prev = _context.next) {
14
13
  case 0:
15
14
  _context.next = 2;
16
15
  return Service.$http({
17
- url: '/api/micro/configure/v1/queryConfigureIsDefaultByType/1',
18
- requestId: 'systemConfig'
19
- }).catch(function () {
20
- return false;
16
+ url: '/api/system/config/web'
21
17
  });
22
18
 
23
19
  case 2:
24
- res1 = _context.sent;
20
+ return _context.abrupt("return", _context.sent.data);
25
21
 
26
- if (!(res1 && res1.data && res1.data.info)) {
27
- _context.next = 5;
28
- break;
29
- }
30
-
31
- return _context.abrupt("return", res1.data.info);
32
-
33
- case 5:
34
- return _context.abrupt("return", Service.$http({
35
- url: "/micro-apps/micro-dep-librarys/config/systemConfig.json?".concat(Date.now()),
36
- requestId: 'systemConfig'
37
- }));
38
-
39
- case 6:
22
+ case 3:
40
23
  case "end":
41
24
  return _context.stop();
42
25
  }
@@ -51,22 +34,19 @@ export function querySystemConfig() {
51
34
 
52
35
  export function queryMicroApplicationList() {
53
36
  return __awaiter(this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
54
- var res;
55
37
  return regeneratorRuntime.wrap(function _callee2$(_context2) {
56
38
  while (1) {
57
39
  switch (_context2.prev = _context2.next) {
58
40
  case 0:
59
41
  _context2.next = 2;
60
42
  return Service.$http({
61
- url: "/api/micro/microApplication/v1/queryMicroApplicationList",
62
- requestId: 'appConfig'
43
+ url: "/api/app/list"
63
44
  });
64
45
 
65
46
  case 2:
66
- res = _context2.sent;
67
- return _context2.abrupt("return", res.data);
47
+ return _context2.abrupt("return", _context2.sent.data);
68
48
 
69
- case 4:
49
+ case 3:
70
50
  case "end":
71
51
  return _context2.stop();
72
52
  }
@@ -86,10 +66,7 @@ export function querySystemUpdate() {
86
66
  switch (_context3.prev = _context3.next) {
87
67
  case 0:
88
68
  return _context3.abrupt("return", Service.$http({
89
- url: "/micro-apps/micro-dep-librarys/config/systemUpdate.json?".concat(Date.now()),
90
- requestId: 'querySystemUpdate'
91
- }).catch(function () {
92
- return {};
69
+ url: "/api/system/config/updateStatus?".concat(Date.now())
93
70
  }));
94
71
 
95
72
  case 1:
@@ -3,5 +3,5 @@ interface IInitialRequestProps {
3
3
  children: React.ReactNode;
4
4
  Spin?: React.ReactNode;
5
5
  }
6
- declare function InitialRequest({ children, Spin }: IInitialRequestProps): React.ReactNode;
6
+ declare function InitialRequest({ children, Spin }: IInitialRequestProps): JSX.Element;
7
7
  export default InitialRequest;