@cloud-app-dev/vidc 1.0.47 → 1.0.48

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/.umirc.ts CHANGED
@@ -2,7 +2,7 @@ import { defineConfig } from 'dumi';
2
2
  import path from 'path';
3
3
 
4
4
  const token =
5
- 'eyJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb25JZCI6IjEwMDEwMTAwMDQ0NiIsImV4dCI6MTYzODA3ODM3NjE0NSwidWlkIjoiMTAxMDAwMDAwMjQ5IiwidmFsaWRTdGF0ZSI6MTA0NDA2LCJyb2xlSWQiOlsxMDAwMDAxMTAzODddLCJ2YWxpZFRpbWUiOm51bGwsIm9wdENlbnRlcklkIjoiMTAwMTAwMDAwMjMzIiwidXNlclR5cGUiOjEwMDcwMiwiaWF0IjoxNjM3ODE5MTc2MTQ1fQ.x9o6vi8T5YW7P05AkeQh1Sse8sp6tGs7zxUWgB_rxtk';
5
+ 'eyJhbGciOiJIUzI1NiJ9.eyJvcmdhbml6YXRpb25JZCI6IjEwMDEwMTAwMDQ0NiIsImV4dCI6MTYzODY4NzgyNzEwNywidWlkIjoiMTAxMDAwMDAwMjQ5IiwidmFsaWRTdGF0ZSI6MTA0NDA2LCJyb2xlSWQiOlsxMDAwMDAxMTAzODddLCJ2YWxpZFRpbWUiOm51bGwsIm9wdENlbnRlcklkIjoiMTAwMTAwMDAwMjMzIiwidXNlclR5cGUiOjEwMDcwMiwiaWF0IjoxNjM4NDI4NjI3MTA3fQ.eEvUc9_eGBdUi2QCMDNjOYgTzTKwiLX-7DEQ_O9kjhs';
6
6
 
7
7
  export default defineConfig({
8
8
  title: '云应用-业务组件库',
@@ -19,3 +19,7 @@
19
19
  display: flex;
20
20
  align-items: flex-end;
21
21
  }
22
+ .lm-c-modify-user-avatar-box .lm-upload-content {
23
+ width: 100%;
24
+ height: 100%;
25
+ }
@@ -1,6 +1,5 @@
1
1
  import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
2
2
  import _ImageView from "@cloud-app-dev/basic-components/es/ImageView";
3
- import _CBox from "@cloud-app-dev/basic-components/es/CBox";
4
3
  import _ContentBox from "@cloud-app-dev/basic-components/es/ContentBox";
5
4
  import _Drawer from "@cloud-app-dev/basic-components/es/Drawer";
6
5
  import "antd/lib/message/style";
@@ -82,11 +81,11 @@ function ModifyUserAvatar(_ref) {
82
81
  className: "user-avatar-upload"
83
82
  }, /*#__PURE__*/React.createElement(FormUpload, {
84
83
  customUpload: uploadImg
85
- }, userAvatarUrl ? /*#__PURE__*/React.createElement(_CBox, {
84
+ }, userAvatarUrl ? /*#__PURE__*/React.createElement("div", {
86
85
  className: "lm-upload-content"
87
86
  }, /*#__PURE__*/React.createElement(_ImageView, {
88
87
  src: userAvatarUrl
89
- })) : /*#__PURE__*/React.createElement(_CBox, {
88
+ })) : /*#__PURE__*/React.createElement("div", {
90
89
  className: "lm-upload-content lm-c-normol-box"
91
90
  }, /*#__PURE__*/React.createElement(_IconFont, {
92
91
  type: "icon-L_Bar_AddImg"
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  export interface IAutoExitProps {
3
- children: React.ReactNode;
3
+ children?: React.ReactNode;
4
4
  }
5
5
  declare function AutoExit({ children }: IAutoExitProps): JSX.Element;
6
6
  export default AutoExit;
@@ -1,6 +1,5 @@
1
1
  function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
2
2
 
3
- import _CBox from "@cloud-app-dev/basic-components/es/CBox";
4
3
  import _Tree from "@cloud-app-dev/basic-components/es/Tree";
5
4
  import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
6
5
  import _Store from "@cloud-app-dev/basic-components/es/Store";
@@ -133,7 +132,7 @@ var OrgTree = /*#__PURE__*/function (_React$Component) {
133
132
  props = _objectWithoutProperties(_this$props3, _excluded);
134
133
 
135
134
  var expandedKeys = this.state.expandedKeys;
136
- return /*#__PURE__*/React.createElement(_CBox, {
135
+ return /*#__PURE__*/React.createElement("div", {
137
136
  className: "lm-organization-tree ".concat(className)
138
137
  }, title ? /*#__PURE__*/React.createElement(TreeTitle, {
139
138
  title: title,
@@ -1,6 +1,5 @@
1
1
  import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
2
2
  import _Tree from "@cloud-app-dev/basic-components/es/Tree";
3
- import _CBox from "@cloud-app-dev/basic-components/es/CBox";
4
3
  import _treeHelper from "@cloud-app-dev/utils/es/treeHelper";
5
4
  import _useHttp2 from "@cloud-app-dev/basic-components/es/useHttp";
6
5
 
@@ -87,7 +86,7 @@ function OrgUserTree(_a) {
87
86
  onDefailtSelect(treeData[0].id);
88
87
  }
89
88
  }, [treeData]);
90
- return /*#__PURE__*/React.createElement(_CBox, {
89
+ return /*#__PURE__*/React.createElement("div", {
91
90
  className: "bc-org-user-tree-layout ".concat(className)
92
91
  }, title ? /*#__PURE__*/React.createElement(TreeTitle, {
93
92
  title: title,
@@ -1,6 +1,5 @@
1
1
  import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
2
2
  import _Tree from "@cloud-app-dev/basic-components/es/Tree";
3
- import _CBox from "@cloud-app-dev/basic-components/es/CBox";
4
3
  import _Store from "@cloud-app-dev/basic-components/es/Store";
5
4
  import _treeHelper from "@cloud-app-dev/utils/es/treeHelper";
6
5
 
@@ -124,7 +123,7 @@ function PlaceTree(params) {
124
123
  });
125
124
  });
126
125
  }, [keyword]);
127
- return /*#__PURE__*/React.createElement(_CBox, {
126
+ return /*#__PURE__*/React.createElement("div", {
128
127
  className: "lm-c-place-tree ".concat(className)
129
128
  }, /*#__PURE__*/React.createElement(TreeTitle, {
130
129
  title: title,
@@ -7,9 +7,9 @@ export interface IUseDrawerHookState {
7
7
  width?: number | string;
8
8
  className?: string;
9
9
  }
10
- export interface IDrawerMethodsProps {
10
+ export interface IRefDrawerMethodsProps {
11
11
  open: (options: IUseDrawerHookState) => void;
12
12
  close: () => void;
13
13
  }
14
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IDrawerMethodsProps>>;
14
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IRefDrawerMethodsProps>>;
15
15
  export default _default;
@@ -7,9 +7,9 @@ export interface IUseModalHookState {
7
7
  width?: number | string;
8
8
  className?: string;
9
9
  }
10
- export interface IModalMethodsProps {
10
+ export interface IRefModalMethodsProps {
11
11
  open: (options: IUseModalHookState) => void;
12
12
  close: () => void;
13
13
  }
14
- declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IModalMethodsProps>>;
14
+ declare const _default: React.ForwardRefExoticComponent<Pick<any, string | number | symbol> & React.RefAttributes<IRefModalMethodsProps>>;
15
15
  export default _default;
@@ -1,6 +1,5 @@
1
1
  import _IconFont from "@cloud-app-dev/basic-components/es/IconFont";
2
2
  import _Tree from "@cloud-app-dev/basic-components/es/Tree";
3
- import _CBox from "@cloud-app-dev/basic-components/es/CBox";
4
3
  import _treeHelper from "@cloud-app-dev/utils/es/treeHelper";
5
4
  import _useHttp2 from "@cloud-app-dev/basic-components/es/useHttp";
6
5
 
@@ -153,7 +152,7 @@ function TreeMode(_a) {
153
152
  onDefailtSelect(id);
154
153
  }
155
154
  }, [treeData, treeKey]);
156
- return /*#__PURE__*/React.createElement(_CBox, {
155
+ return /*#__PURE__*/React.createElement("div", {
157
156
  className: "bc-type-tree-layout ".concat(className)
158
157
  }, /*#__PURE__*/React.createElement(TreeTitle, {
159
158
  title: title,
@@ -25,13 +25,14 @@ function ConditionForm(_ref) {
25
25
  var form = _ref.form,
26
26
  item = _ref.item,
27
27
  onChange = _ref.onChange,
28
- useConditionFields = _ref.useConditionFields;
28
+ _ref$useConditionFiel = _ref.useConditionFields,
29
+ useConditionFields = _ref$useConditionFiel === void 0 ? [] : _ref$useConditionFiel;
29
30
 
30
31
  var _a, _b;
31
32
 
32
33
  var _useState = useState({
33
- field: ((_a = item === null || item === void 0 ? void 0 : item.conditionList[0]) === null || _a === void 0 ? void 0 : _a.field) || '',
34
- value: ((_b = item === null || item === void 0 ? void 0 : item.conditionList[0]) === null || _b === void 0 ? void 0 : _b.value) || ''
34
+ field: (item === null || item === void 0 ? void 0 : item.conditionList) ? (_a = item.conditionList[0]) === null || _a === void 0 ? void 0 : _a.field : '',
35
+ value: (item === null || item === void 0 ? void 0 : item.conditionList) ? (_b = item === null || item === void 0 ? void 0 : item.conditionList[0]) === null || _b === void 0 ? void 0 : _b.value : ''
35
36
  }),
36
37
  _useState2 = _slicedToArray(_useState, 2),
37
38
  state = _useState2[0],
@@ -170,15 +170,10 @@ function UserSelectType2(_ref3) {
170
170
  _onChange3 = _ref3.onChange,
171
171
  type = _ref3.type,
172
172
  emptyUsers = _ref3.emptyUsers;
173
- var userList = useMemo(function () {
174
- return users.filter(function (v) {
175
- return v.key === 'userId';
176
- });
177
- }, [users]);
178
173
  return /*#__PURE__*/React.createElement("div", {
179
174
  className: "user-select-type1"
180
175
  }, /*#__PURE__*/React.createElement(UserAndGroupSelect, {
181
- userList: userList,
176
+ userList: users,
182
177
  onChange: function onChange(users) {
183
178
  return _onChange3(_defineProperty({}, type, users));
184
179
  }
@@ -207,9 +207,12 @@ function WorkerFlow(_ref, ref) {
207
207
  }).includes(node.type)) {
208
208
  var nodeName = node.type === 4 ? node.conditionNodes[index].nodeName : node.nodeName;
209
209
  var FormContent = FormMap[node.type];
210
- var useConditionFields = node.type === 4 ? _toConsumableArray(node.conditionNodes.map(function (v) {
210
+ var fiels = node.type === 4 ? _toConsumableArray(node.conditionNodes.map(function (v) {
211
211
  return v.id !== node.conditionNodes[index].id ? v.conditionList : [];
212
212
  })).flat() : [];
213
+ var useConditionFields = fiels.filter(function (v) {
214
+ return !!v;
215
+ });
213
216
  var nodeItem = node.type === 4 ? node.conditionNodes[index] : node;
214
217
  var from = nodeItem.form ? form.map(function (v) {
215
218
  return nodeItem.form.find(function (v2) {
@@ -168,7 +168,7 @@ export function getUserFormKeys(data) {
168
168
  var arr = [];
169
169
 
170
170
  var fn = function fn(node) {
171
- if (node.bpmnType == 'sequenceFlow') {
171
+ if (node.bpmnType == 'sequenceFlow' && node.conditionList) {
172
172
  arr.push.apply(arr, _toConsumableArray(node.conditionList));
173
173
  }
174
174
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "private": false,
3
3
  "name": "@cloud-app-dev/vidc",
4
4
  "description": "Video Image Data Componennts",
5
- "version": "1.0.47",
5
+ "version": "1.0.48",
6
6
  "scripts": {
7
7
  "start": "dumi dev",
8
8
  "docs:build": "dumi build",
@@ -37,8 +37,8 @@
37
37
  "rc-queue-anim": "^2.0.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@cloud-app-dev/utils": "^2.0.1",
41
- "@cloud-app-dev/basic-components": "^1.0.58",
40
+ "@cloud-app-dev/utils": "^2.0.2",
41
+ "@cloud-app-dev/basic-components": "^1.0.62",
42
42
  "@types/chroma-js": "^2.1.3",
43
43
  "@types/lodash": "^4.14.172",
44
44
  "@umijs/test": "^3.0.5",