@bpmn-io/form-js-editor 0.10.0-alpha.1 → 0.10.0-alpha.2

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.
@@ -1,6 +1,8 @@
1
1
  export function arrayAdd(array: any, index: any, item: any): any[];
2
2
  export function arrayRemove(array: any, index: any): any[];
3
3
  export function prefixId(id: any): string;
4
+ export function countDecimals(number: any): any;
5
+ export function isValidNumber(value: any): boolean;
4
6
  export function stopPropagation(listener: any): (event: any) => void;
5
7
  export function textToLabel(text: any): string;
6
8
  export const INPUTS: string[];
@@ -0,0 +1,9 @@
1
+ export default function AltTextEntry(props: any): {
2
+ id: string;
3
+ component: typeof AltText;
4
+ editField: any;
5
+ field: any;
6
+ isEdited: any;
7
+ }[];
8
+ declare function AltText(props: any): any;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ export function ConditionEntry(props: any): {
2
+ id: string;
3
+ component: typeof Condition;
4
+ editField: any;
5
+ field: any;
6
+ isEdited: any;
7
+ }[];
8
+ declare function Condition(props: any): any;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ export default function SourceEntry(props: any): {
2
+ id: string;
3
+ component: typeof Source;
4
+ editField: any;
5
+ field: any;
6
+ isEdited: any;
7
+ }[];
8
+ declare function Source(props: any): any;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ export default function NumberEntries(props: any): {
2
+ id: string;
3
+ component: typeof NumberDecimalDigits;
4
+ isEdited: any;
5
+ editField: any;
6
+ field: any;
7
+ }[];
8
+ declare function NumberDecimalDigits(props: any): any;
9
+ export {};
@@ -0,0 +1,9 @@
1
+ export default function NumberSerializationEntry(props: any): {
2
+ id: string;
3
+ component: typeof SerializeToString;
4
+ isEdited: any;
5
+ editField: any;
6
+ field: any;
7
+ }[];
8
+ declare function SerializeToString(props: any): any;
9
+ export {};
@@ -1,4 +1,5 @@
1
1
  export { default as ActionEntry } from "./ActionEntry";
2
+ export { default as AltTextEntry } from "./AltTextEntry";
2
3
  export { default as ColumnsEntry } from "./ColumnsEntry";
3
4
  export { default as DescriptionEntry } from "./DescriptionEntry";
4
5
  export { default as DefaultValueEntry } from "./DefaultValueEntry";
@@ -6,9 +7,13 @@ export { default as DisabledEntry } from "./DisabledEntry";
6
7
  export { default as IdEntry } from "./IdEntry";
7
8
  export { default as KeyEntry } from "./KeyEntry";
8
9
  export { default as LabelEntry } from "./LabelEntry";
10
+ export { default as ImageSourceEntry } from "./ImageSourceEntry";
9
11
  export { default as TextEntry } from "./TextEntry";
12
+ export { default as NumberEntries } from "./NumberEntries";
13
+ export { default as NumberSerializationEntry } from "./NumberSerializationEntry";
10
14
  export { default as ValueEntry } from "./ValueEntry";
11
15
  export { default as CustomValueEntry } from "./CustomValueEntry";
12
16
  export { default as ValuesSourceSelectEntry } from "./ValuesSourceSelectEntry";
13
17
  export { default as InputKeyValuesSourceEntry } from "./InputKeyValuesSourceEntry";
14
18
  export { default as StaticValuesSourceEntry } from "./StaticValuesSourceEntry";
19
+ export { ConditionEntry } from "./ConditionEntry";
@@ -0,0 +1,11 @@
1
+ export function ConditionGroup(field: any, editField: any): {
2
+ id: string;
3
+ label: string;
4
+ entries: {
5
+ id: string;
6
+ component: (props: any) => any;
7
+ editField: any;
8
+ field: any;
9
+ isEdited: any;
10
+ }[];
11
+ };
@@ -0,0 +1,11 @@
1
+ export default function SerializationGroup(field: any, editField: any): {
2
+ id: string;
3
+ label: string;
4
+ entries: {
5
+ id: string;
6
+ component: (props: any) => any;
7
+ isEdited: any;
8
+ editField: any;
9
+ field: any;
10
+ }[];
11
+ };
@@ -1,4 +1,6 @@
1
1
  export { default as GeneralGroup } from "./GeneralGroup";
2
+ export { default as SerializationGroup } from "./SerializationGroup";
2
3
  export { default as ValidationGroup } from "./ValidationGroup";
3
4
  export { default as ValuesGroups } from "./ValuesGroups";
4
5
  export { default as CustomValuesGroup } from "./CustomValuesGroup";
6
+ export { ConditionGroup } from "./ConditionGroup";
@@ -1 +1,2 @@
1
1
  export { default as useService } from "./usePropertiesPanelService";
2
+ export { useVariables } from "./useVariables";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Retrieve list of variables from the form schema.
3
+ *
4
+ * @returns { string[] } list of variables used in form schema
5
+ */
6
+ export function useVariables(): string[];
@@ -3,6 +3,7 @@ export namespace iconsByType {
3
3
  export { CheckboxIcon as checkbox };
4
4
  export { ChecklistIcon as checklist };
5
5
  export { ColumnsIcon as columns };
6
+ export { ImageIcon as image };
6
7
  export { NumberIcon as number };
7
8
  export { RadioIcon as radio };
8
9
  export { SelectIcon as select };
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bpmn-io/form-js-editor",
3
- "version": "0.10.0-alpha.1",
3
+ "version": "0.10.0-alpha.2",
4
4
  "description": "Edit forms - powered by bpmn.io",
5
5
  "exports": {
6
6
  ".": {
@@ -27,7 +27,7 @@
27
27
  "example:dev": "cd example && npm start",
28
28
  "lint": "run-s lint:*",
29
29
  "lint:eslint": "eslint .",
30
- "generate-types": "tsc --allowJs --skipLibCheck --declaration --emitDeclarationOnly --outDir dist/types src/index.js && cp src/**.d.ts dist/types",
30
+ "generate-types": "tsc --allowJs --skipLibCheck --declaration --emitDeclarationOnly --outDir dist/types src/index.js && copyfiles src/**.d.ts dist/types",
31
31
  "test": "cross-env NODE_ENV=test karma start",
32
32
  "prepublishOnly": "npm run build"
33
33
  },
@@ -42,9 +42,10 @@
42
42
  "url": "https://github.com/bpmn-io"
43
43
  },
44
44
  "dependencies": {
45
- "@bpmn-io/form-js-viewer": "^0.10.0-alpha.1",
46
- "@bpmn-io/properties-panel": "^0.25.0",
45
+ "@bpmn-io/form-js-viewer": "^0.10.0-alpha.2",
46
+ "@bpmn-io/properties-panel": "^1.0.0",
47
47
  "array-move": "^3.0.1",
48
+ "big.js": "^6.2.1",
48
49
  "dragula": "^3.7.3",
49
50
  "ids": "^1.0.0",
50
51
  "min-dash": "^4.0.0",
@@ -57,5 +58,5 @@
57
58
  "files": [
58
59
  "dist"
59
60
  ],
60
- "gitHead": "9bc2d1e01db3a1a38122632fb94f70d1e085243b"
61
+ "gitHead": "df68b02bb080ad816ad17f8c629650f118e266bd"
61
62
  }