iop-bpmn-react 0.1.5 → 0.1.7
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/index.js +15247 -14950
- package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/FlowablePropertiesProvider.d.ts.map +1 -1
- package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/properties/FormProperties.d.ts +16 -2
- package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/properties/FormProperties.d.ts.map +1 -1
- package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/properties/SequenceFlowProperties.d.ts +8 -0
- package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/properties/SequenceFlowProperties.d.ts.map +1 -0
- package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/properties/index.d.ts +1 -0
- package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/properties/index.d.ts.map +1 -1
- package/dist/types/components/BpmnModeler/index.d.ts.map +1 -1
- package/dist/types/i18n/en.d.ts.map +1 -1
- package/dist/types/i18n/ja.d.ts.map +1 -1
- package/dist/types/i18n/zh.d.ts.map +1 -1
- package/dist/types/index.d.ts +2 -0
- package/dist/types/index.d.ts.map +1 -1
- package/package.json +14 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlowablePropertiesProvider.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/BpmnModeler/FlowablePropertiesProvider/FlowablePropertiesProvider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;
|
|
1
|
+
{"version":3,"file":"FlowablePropertiesProvider.d.ts","sourceRoot":"","sources":["../../../../../src/lib/components/BpmnModeler/FlowablePropertiesProvider/FlowablePropertiesProvider.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AA0B5D;;GAEG;AACH,qBAAa,0BAA0B;IACrC,MAAM,CAAC,OAAO,WAAkC;IAEhD,OAAO,CAAC,SAAS,CAAK;gBAEV,eAAe,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG;IAM/C,SAAS,CAAC,OAAO,EAAE,aAAa,IACtB,QAAQ,GAAG,EAAE;CAsExB"}
|
package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/properties/FormProperties.d.ts
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
import { ModdleElement } from 'bpmn-js/lib/model/Types';
|
|
2
2
|
/**
|
|
3
3
|
* 表单属性 - formKey, formFieldValidation
|
|
4
|
+
*
|
|
5
|
+
* formKey 支持两种形态:
|
|
6
|
+
* - 宿主应用注入了表单选项(经 modeler.eventBus.fire('iop.formOptions.changed', { options }))
|
|
7
|
+
* 时渲染为下拉(展示"表单名",提交值仍为 formKey,序列化不变);
|
|
8
|
+
* - 未注入时回退为原手输文本框,保持向后兼容。
|
|
4
9
|
*/
|
|
10
|
+
/** 表单绑定下拉选项(宿主注入) */
|
|
11
|
+
export interface FormOption {
|
|
12
|
+
/** 提交值 = formKey */
|
|
13
|
+
value: string;
|
|
14
|
+
/** 展示名(如 "请假单 (leave-form)") */
|
|
15
|
+
label: string;
|
|
16
|
+
}
|
|
17
|
+
/** 注入表单选项(由 BpmnModeler 监听 eventBus 事件转发,业务侧不直接调用) */
|
|
18
|
+
export declare function setFormOptions(options: FormOption[]): void;
|
|
5
19
|
export declare function FormProperties(props: {
|
|
6
20
|
element: ModdleElement;
|
|
7
21
|
}): {
|
|
8
22
|
id: string;
|
|
9
23
|
component: typeof FormKeyEntry;
|
|
10
|
-
isEdited: typeof
|
|
24
|
+
isEdited: typeof isFormKeyEdited;
|
|
11
25
|
}[];
|
|
12
|
-
declare function
|
|
26
|
+
declare function isFormKeyEdited(_element: ModdleElement, node?: HTMLElement): boolean;
|
|
13
27
|
declare function FormKeyEntry(props: {
|
|
14
28
|
element: ModdleElement;
|
|
15
29
|
}): any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FormProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/BpmnModeler/FlowablePropertiesProvider/properties/FormProperties.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"FormProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/BpmnModeler/FlowablePropertiesProvider/properties/FormProperties.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAE5D;;;;;;;GAOG;AAEH,qBAAqB;AACrB,MAAM,WAAW,UAAU;IACzB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAA;IACb,gCAAgC;IAChC,KAAK,EAAE,MAAM,CAAA;CACd;AAKD,sDAAsD;AACtD,wBAAgB,cAAc,CAAC,OAAO,EAAE,UAAU,EAAE,QAGnD;AAYD,wBAAgB,cAAc,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE;;;;IAa/D;AAED,iBAAS,eAAe,CAAC,QAAQ,EAAE,aAAa,EAAE,IAAI,CAAC,EAAE,WAAW,WAGnE;AAsBD,iBAAS,YAAY,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,OA+BtD"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ModdleElement } from 'bpmn-js/lib/model/Types';
|
|
2
|
+
/**
|
|
3
|
+
* SequenceFlow 条件属性 - conditionExpression(表达式/脚本)与默认流(default)
|
|
4
|
+
*/
|
|
5
|
+
export declare function SequenceFlowProperties(props: {
|
|
6
|
+
element: ModdleElement;
|
|
7
|
+
}): any[];
|
|
8
|
+
//# sourceMappingURL=SequenceFlowProperties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SequenceFlowProperties.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/BpmnModeler/FlowablePropertiesProvider/properties/SequenceFlowProperties.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAQ5D;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,SA2BvE"}
|
|
@@ -14,4 +14,5 @@ export { InitiatorProperties } from './InitiatorProperties';
|
|
|
14
14
|
export { BusinessRuleTaskProperties } from './BusinessRuleTaskProperties';
|
|
15
15
|
export { ExternalTaskProperties } from './ExternalTaskProperties';
|
|
16
16
|
export { SignalEventDefinitionProperties, ErrorEventDefinitionProperties, ConditionalEventDefinitionProperties } from './EventDefinitionProperties';
|
|
17
|
+
export { SequenceFlowProperties } from './SequenceFlowProperties';
|
|
17
18
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/types/components/BpmnModeler/FlowablePropertiesProvider/properties/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/BpmnModeler/FlowablePropertiesProvider/properties/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../src/lib/components/BpmnModeler/FlowablePropertiesProvider/properties/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAA;AAChF,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AAC/D,OAAO,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACzF,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAA;AAC9C,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAC7D,OAAO,EAAE,wBAAwB,EAAE,MAAM,uBAAuB,CAAA;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAA;AAC3D,OAAO,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAA;AACzE,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACjE,OAAO,EAAE,+BAA+B,EAAE,8BAA8B,EAAE,oCAAoC,EAAE,MAAM,6BAA6B,CAAA;AACnJ,OAAO,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/BpmnModeler/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/components/BpmnModeler/index.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAA;AAMnD,OAAO,uDAAuD,CAAA;AAC9D,OAAO,aAAa,CAAA;AA8BpB;;;GAGG;AACH,wBAAgB,WAAW,CAAC,EAC1B,GAAG,EACH,SAAS,EACT,KAAK,EACL,cAAc,EACd,UAAU,EACV,MAAM,EACN,QAAQ,EACR,UAAkB,EAClB,OAAe,EACf,OAAe,EACf,MAAa,EACb,MAAM,GACP,EAAE,gBAAgB,+BAsKlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/en.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/en.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAigB1C,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/ja.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"ja.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/ja.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAkgB1C,CAAA;AAED,eAAe,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/zh.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../src/lib/i18n/zh.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,QAAA,MAAM,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAo9C1C,CAAA;AAED,eAAe,cAAc,CAAA"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,6 +2,8 @@ export { BpmnViewer } from './components/BpmnViewer';
|
|
|
2
2
|
export { BpmnModeler } from './components/BpmnModeler';
|
|
3
3
|
export { BpmnToolbar } from './components/BpmnToolbar';
|
|
4
4
|
export type { BpmnToolbarProps } from './components/BpmnToolbar';
|
|
5
|
+
export { setFormOptions } from './components/BpmnModeler/FlowablePropertiesProvider/properties/FormProperties';
|
|
6
|
+
export type { FormOption } from './components/BpmnModeler/FlowablePropertiesProvider/properties/FormProperties';
|
|
5
7
|
export { useBpmn } from './hooks/useBpmn';
|
|
6
8
|
export { LanguageProvider, useLanguage, getTranslation, getTranslations, SUPPORTED_LANGUAGES } from './i18n';
|
|
7
9
|
export type { Locale, LanguageConfig } from './i18n';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/lib/index.ts"],"names":[],"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"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "iop-bpmn-react",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "基于 bpmn.js 封装的 React 组件库,提供 BpmnViewer 和 BpmnModeler,支持 Flowable 扩展属性、自动布局、规则校验",
|
|
6
|
-
"keywords": [
|
|
6
|
+
"keywords": [
|
|
7
|
+
"bpmn",
|
|
8
|
+
"bpmn-js",
|
|
9
|
+
"react",
|
|
10
|
+
"flowable",
|
|
11
|
+
"workflow",
|
|
12
|
+
"process",
|
|
13
|
+
"modeler",
|
|
14
|
+
"viewer"
|
|
15
|
+
],
|
|
7
16
|
"author": "IOP Platform",
|
|
8
17
|
"license": "MIT",
|
|
9
18
|
"main": "./dist/index.js",
|
|
10
19
|
"module": "./dist/index.js",
|
|
11
20
|
"types": "./dist/types/index.d.ts",
|
|
12
|
-
"sideEffects": [
|
|
21
|
+
"sideEffects": [
|
|
22
|
+
"*.css"
|
|
23
|
+
],
|
|
13
24
|
"exports": {
|
|
14
25
|
".": {
|
|
15
26
|
"import": "./dist/index.js",
|