@bpmn-io/form-js-editor 1.0.0-alpha.1 → 1.0.0-alpha.10
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/assets/dragula.css +22 -0
- package/dist/assets/form-js-editor-base.css +17 -4
- package/dist/assets/form-js-editor.css +28 -9
- package/dist/assets/properties-panel.css +1115 -0
- package/dist/index.cjs +7929 -7572
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +7999 -7660
- package/dist/index.es.js.map +1 -1
- package/dist/types/FormEditor.d.ts +1 -1
- package/dist/types/features/SectionModuleBase.d.ts +6 -1
- package/dist/types/features/properties-panel/PropertiesPanel.d.ts +1 -1
- package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +37 -0
- package/dist/types/features/properties-panel/components/AutoFocusSelect.d.ts +1 -0
- package/dist/types/features/properties-panel/components/index.d.ts +1 -0
- package/dist/types/features/properties-panel/context/FormPropertiesPanelContext.d.ts +11 -0
- package/dist/types/features/properties-panel/context/index.d.ts +1 -0
- package/dist/types/features/properties-panel/entries/ValuesExpressionEntry.d.ts +10 -0
- package/dist/types/features/properties-panel/entries/ValuesSourceSelectEntry.d.ts +1 -1
- package/dist/types/features/properties-panel/entries/index.d.ts +1 -0
- package/dist/types/features/properties-panel/hooks/index.d.ts +1 -1
- package/dist/types/features/properties-panel/hooks/usePropertiesPanelService.d.ts +1 -0
- package/dist/types/features/properties-panel/index.d.ts +1 -1
- package/dist/types/features/render-injection/slot-fill/Slot.d.ts +1 -0
- package/package.json +6 -4
- package/dist/types/features/properties-panel/PropertiesPanelModule.d.ts +0 -8
- package/dist/types/features/properties-panel/hooks/useService.d.ts +0 -2
|
@@ -147,7 +147,7 @@ export default class FormEditor {
|
|
|
147
147
|
templating: (string | typeof import("./features/expression-language/EditorTemplating").default)[];
|
|
148
148
|
} | typeof MarkdownModule | {
|
|
149
149
|
__init__: string[];
|
|
150
|
-
propertiesPanel: (string | typeof import("./features/properties-panel/
|
|
150
|
+
propertiesPanel: (string | typeof import("./features/properties-panel/PropertiesPanelRenderer").default)[];
|
|
151
151
|
} | {
|
|
152
152
|
__init__: string[];
|
|
153
153
|
renderInjector: (string | typeof import("./features/render-injection/RenderInjector").default)[];
|
|
@@ -17,7 +17,8 @@ export default class SectionModuleBase {
|
|
|
17
17
|
*/
|
|
18
18
|
constructor(eventBus: any, sectionKey: string);
|
|
19
19
|
_eventBus: any;
|
|
20
|
-
|
|
20
|
+
_sectionKey: string;
|
|
21
|
+
isSectionRendered: boolean;
|
|
21
22
|
/**
|
|
22
23
|
* Attach the managed section to a parent node.
|
|
23
24
|
*
|
|
@@ -32,4 +33,8 @@ export default class SectionModuleBase {
|
|
|
32
33
|
* Reset the managed section to its initial state.
|
|
33
34
|
*/
|
|
34
35
|
reset(): void;
|
|
36
|
+
/**
|
|
37
|
+
* Circumvents timing issues.
|
|
38
|
+
*/
|
|
39
|
+
_onceSectionRendered(callback: any): void;
|
|
35
40
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export default function FormPropertiesPanel(): import("preact").JSX.Element;
|
|
1
|
+
export default function FormPropertiesPanel(props: any): import("preact").JSX.Element;
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @typedef { { parent: Element } } PropertiesPanelConfig
|
|
3
|
+
* @typedef { import('../../core/EventBus').default } EventBus
|
|
4
|
+
* @typedef { import('../../types').Injector } Injector
|
|
5
|
+
*/
|
|
6
|
+
/**
|
|
7
|
+
* @param {PropertiesPanelConfig} propertiesPanelConfig
|
|
8
|
+
* @param {Injector} injector
|
|
9
|
+
* @param {EventBus} eventBus
|
|
10
|
+
*/
|
|
11
|
+
declare class PropertiesPanelRenderer {
|
|
12
|
+
constructor(propertiesPanelConfig: any, injector: any, eventBus: any);
|
|
13
|
+
_eventBus: any;
|
|
14
|
+
_injector: any;
|
|
15
|
+
_container: HTMLElement;
|
|
16
|
+
/**
|
|
17
|
+
* Attach the properties panel to a parent node.
|
|
18
|
+
*
|
|
19
|
+
* @param {HTMLElement} container
|
|
20
|
+
*/
|
|
21
|
+
attachTo(container: HTMLElement): void;
|
|
22
|
+
/**
|
|
23
|
+
* Detach the properties panel from its parent node.
|
|
24
|
+
*/
|
|
25
|
+
detach(): void;
|
|
26
|
+
_render(): void;
|
|
27
|
+
_destroy(): void;
|
|
28
|
+
}
|
|
29
|
+
declare namespace PropertiesPanelRenderer {
|
|
30
|
+
const $inject: string[];
|
|
31
|
+
}
|
|
32
|
+
export default PropertiesPanelRenderer;
|
|
33
|
+
export type PropertiesPanelConfig = {
|
|
34
|
+
parent: Element;
|
|
35
|
+
};
|
|
36
|
+
export type EventBus = import('../../core/EventBus').default;
|
|
37
|
+
export type Injector = import('../../types').Injector;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function AutoFocusSelectEntry(props: any): import("preact").JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as AutoFocusSelectEntry } from "./AutoFocusSelect";
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export default PropertiesPanelContext;
|
|
2
|
+
declare const PropertiesPanelContext: import("preact").Context<{
|
|
3
|
+
getService: typeof getService;
|
|
4
|
+
}>;
|
|
5
|
+
/**
|
|
6
|
+
* @param {string} type
|
|
7
|
+
* @param {boolean} [strict]
|
|
8
|
+
*
|
|
9
|
+
* @returns {any}
|
|
10
|
+
*/
|
|
11
|
+
declare function getService(type: string, strict?: boolean): any;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as FormPropertiesPanelContext } from "./FormPropertiesPanelContext";
|
|
@@ -23,3 +23,4 @@ export { default as StaticValuesSourceEntry } from "./StaticValuesSourceEntry";
|
|
|
23
23
|
export { default as AdornerEntry } from "./AdornerEntry";
|
|
24
24
|
export { default as ReadonlyEntry } from "./ReadonlyEntry";
|
|
25
25
|
export { ConditionEntry } from "./ConditionEntry";
|
|
26
|
+
export { default as ValuesExpressionEntry } from "./ValuesExpressionEntry";
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { useVariables } from "./useVariables";
|
|
2
|
-
export { useService } from "./
|
|
2
|
+
export { default as useService } from "./usePropertiesPanelService";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function _default(type: any, strict: any): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bpmn-io/form-js-editor",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.10",
|
|
4
4
|
"description": "Edit forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -9,6 +9,8 @@
|
|
|
9
9
|
},
|
|
10
10
|
"./dist/assets/form-js-editor.css": "./dist/assets/form-js-editor.css",
|
|
11
11
|
"./dist/assets/form-js-editor-base.css": "./dist/assets/form-js-editor-base.css",
|
|
12
|
+
"./dist/assets/dragula.css": "./dist/assets/dragula.css",
|
|
13
|
+
"./dist/assets/properties-panel.css": "./dist/assets/properties-panel.css",
|
|
12
14
|
"./package.json": "./package.json"
|
|
13
15
|
},
|
|
14
16
|
"publishConfig": {
|
|
@@ -44,8 +46,8 @@
|
|
|
44
46
|
"url": "https://github.com/bpmn-io"
|
|
45
47
|
},
|
|
46
48
|
"dependencies": {
|
|
47
|
-
"@bpmn-io/form-js-viewer": "^1.0.0-alpha.
|
|
48
|
-
"@bpmn-io/properties-panel": "^2.1
|
|
49
|
+
"@bpmn-io/form-js-viewer": "^1.0.0-alpha.10",
|
|
50
|
+
"@bpmn-io/properties-panel": "^2.2.1",
|
|
49
51
|
"array-move": "^3.0.1",
|
|
50
52
|
"big.js": "^6.2.1",
|
|
51
53
|
"dragula": "^3.7.3",
|
|
@@ -60,5 +62,5 @@
|
|
|
60
62
|
"files": [
|
|
61
63
|
"dist"
|
|
62
64
|
],
|
|
63
|
-
"gitHead": "
|
|
65
|
+
"gitHead": "c25345d41c11ad8d9095ba98e0d663bdb636ce64"
|
|
64
66
|
}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
declare class PropertiesPanelModule extends SectionModuleBase {
|
|
2
|
-
constructor(eventBus: any);
|
|
3
|
-
}
|
|
4
|
-
declare namespace PropertiesPanelModule {
|
|
5
|
-
const $inject: string[];
|
|
6
|
-
}
|
|
7
|
-
export default PropertiesPanelModule;
|
|
8
|
-
import SectionModuleBase from '../SectionModuleBase';
|