@nocobase/plugin-workflow-manual 0.17.0-alpha.4 → 0.17.0-alpha.6
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/client/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
.ant-drawer-body {
|
|
3
3
|
background: var(--nb-box-bg);
|
|
4
4
|
}
|
|
5
|
-
`},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"TabPaneInitializers","x-initializer-props":{gridInitializer:"AddBlockButton"},properties:o!=null?o:{tab1:{type:"void",title:`{{t("Manual", { ns: "${C}" })}}`,"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer",properties:{grid:{type:"void","x-component":"Grid","x-initializer":"AddBlockButton",properties:{}}}}}}}}}}),[
|
|
5
|
+
`},properties:{tabs:{type:"void","x-component":"Tabs","x-component-props":{},"x-initializer":"TabPaneInitializers","x-initializer-props":{gridInitializer:"AddBlockButton"},properties:o!=null?o:{tab1:{type:"void",title:`{{t("Manual", { ns: "${C}" })}}`,"x-component":"Tabs.TabPane","x-designer":"Tabs.Designer",properties:{grid:{type:"void","x-component":"Grid","x-initializer":"AddBlockButton",properties:{}}}}}}}}}}),[]),h=m.useCallback(function(){const{tabs:S}=T.lodash.get(g.toJSON(),"properties.drawer.properties"),w=Array.from(V.getValues()).reduce((k,I)=>Object.assign(k,I.config.parseFormOptions(S)),{});p.setValuesIn("forms",w),n(S.properties)},[p,n,g]);return s.jsx(e.SchemaComponentContext.Provider,{value:F(y({},t),{designable:!d.executed,refresh:h}),children:s.jsx(e.SchemaComponent,{schema:g,components:F(y(y({},x),Array.from(V.getValues()).reduce((u,S)=>Object.assign(u,S.config.components),{})),{FormBlockProvider:Y,DetailsBlockProvider:Q,ManualActionStatusProvider(u){return u.children},ActionBarProvider(u){return u.children},SimpleDesigner:Se,ManualActionDesigner:ke}),scope:{useSubmit:we,useDetailsBlockProps:e.useFormBlockContext}})})}function Te(o){const{workflow:n}=l.useFlowContext(),[r,t]=m.useState(!1);return s.jsxs(s.Fragment,{children:[s.jsx(v.Button,{type:"primary",onClick:()=>t(!0),disabled:!1,children:B(n.executed?"View user interface":"Configure user interface")}),s.jsx(e.ActionContextProvider,{value:{visible:r,setVisible:t,formValueChanged:!1},children:o.children})]})}function Oe({value:o,onChange:n}){const r=s.jsx("fieldset",{children:s.jsx(q.FormLayout,{layout:"vertical",children:s.jsx(e.FormItem,{label:B("Negotiation"),children:s.jsxs(v.Radio.Group,{value:o,onChange:n,children:[s.jsx(v.Radio,{value:1,children:s.jsxs(v.Tooltip,{title:B("Everyone should pass"),placement:"bottom",children:[s.jsx("span",{children:B("All pass")}),s.jsx(U.QuestionCircleOutlined,{style:{color:"#999"}})]})}),s.jsx(v.Radio,{value:-1,children:s.jsxs(v.Tooltip,{title:B("Anyone pass"),placement:"bottom",children:[s.jsx("span",{children:B("Any pass")}),s.jsx(U.QuestionCircleOutlined,{style:{color:"#999"}})]})})]})})})});return s.jsxs("fieldset",{className:e.css`
|
|
6
6
|
.ant-radio-group {
|
|
7
7
|
.anticon {
|
|
8
8
|
margin-left: 0.5em;
|
package/dist/externalVersion.js
CHANGED
|
@@ -3,16 +3,16 @@ module.exports = {
|
|
|
3
3
|
"@formily/react": "2.2.27",
|
|
4
4
|
"antd": "5.8.6",
|
|
5
5
|
"dayjs": "1.11.9",
|
|
6
|
-
"@nocobase/client": "0.17.0-alpha.
|
|
7
|
-
"@nocobase/plugin-workflow": "0.17.0-alpha.
|
|
6
|
+
"@nocobase/client": "0.17.0-alpha.6",
|
|
7
|
+
"@nocobase/plugin-workflow": "0.17.0-alpha.6",
|
|
8
8
|
"@ant-design/icons": "5.1.4",
|
|
9
9
|
"react-i18next": "11.18.6",
|
|
10
|
-
"@nocobase/utils": "0.17.0-alpha.
|
|
11
|
-
"@nocobase/server": "0.17.0-alpha.
|
|
12
|
-
"@nocobase/actions": "0.17.0-alpha.
|
|
13
|
-
"@nocobase/resourcer": "0.17.0-alpha.
|
|
10
|
+
"@nocobase/utils": "0.17.0-alpha.6",
|
|
11
|
+
"@nocobase/server": "0.17.0-alpha.6",
|
|
12
|
+
"@nocobase/actions": "0.17.0-alpha.6",
|
|
13
|
+
"@nocobase/resourcer": "0.17.0-alpha.6",
|
|
14
14
|
"@formily/core": "2.2.27",
|
|
15
15
|
"@formily/antd-v5": "1.1.7",
|
|
16
|
-
"@nocobase/database": "0.17.0-alpha.
|
|
16
|
+
"@nocobase/database": "0.17.0-alpha.6",
|
|
17
17
|
"lodash": "4.17.21"
|
|
18
18
|
};
|
package/dist/server/actions.js
CHANGED
|
@@ -59,12 +59,12 @@ async function submit(context, next) {
|
|
|
59
59
|
}
|
|
60
60
|
const presetValues = processor.getParsedValue(actionItem.values ?? {}, userJob.nodeId, {
|
|
61
61
|
// @deprecated
|
|
62
|
-
currentUser
|
|
62
|
+
currentUser,
|
|
63
63
|
// @deprecated
|
|
64
64
|
currentRecord: values.result[formKey],
|
|
65
65
|
// @deprecated
|
|
66
66
|
currentTime: /* @__PURE__ */ new Date(),
|
|
67
|
-
$user: currentUser
|
|
67
|
+
$user: currentUser,
|
|
68
68
|
$nForm: values.result[formKey],
|
|
69
69
|
$nDate: {
|
|
70
70
|
now: /* @__PURE__ */ new Date()
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"displayName.zh-CN": "工作流:人工处理节点",
|
|
5
5
|
"description": "Could be used for workflows which some of decisions are made by users.",
|
|
6
6
|
"description.zh-CN": "用于人工控制部分决策的流程。",
|
|
7
|
-
"version": "0.17.0-alpha.
|
|
7
|
+
"version": "0.17.0-alpha.6",
|
|
8
8
|
"license": "AGPL-3.0",
|
|
9
9
|
"main": "./dist/server/index.js",
|
|
10
10
|
"devDependencies": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"@nocobase/test": "0.x",
|
|
30
30
|
"@nocobase/utils": "0.x"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f92f8bcdf6d5baf07566381e9425ebca11e19626"
|
|
33
33
|
}
|
package/src/server/actions.ts
CHANGED
|
@@ -56,12 +56,12 @@ export async function submit(context: Context, next) {
|
|
|
56
56
|
}
|
|
57
57
|
const presetValues = processor.getParsedValue(actionItem.values ?? {}, userJob.nodeId, {
|
|
58
58
|
// @deprecated
|
|
59
|
-
currentUser: currentUser
|
|
59
|
+
currentUser: currentUser,
|
|
60
60
|
// @deprecated
|
|
61
61
|
currentRecord: values.result[formKey],
|
|
62
62
|
// @deprecated
|
|
63
63
|
currentTime: new Date(),
|
|
64
|
-
$user: currentUser
|
|
64
|
+
$user: currentUser,
|
|
65
65
|
$nForm: values.result[formKey],
|
|
66
66
|
$nDate: {
|
|
67
67
|
now: new Date(),
|