@bpmn-io/form-js-editor 1.0.0-alpha.3 → 1.0.0-alpha.4
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.cjs +8 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.es.js +8 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
- package/dist/types/features/assistant/AssistantPrompter.d.ts +0 -20
- package/dist/types/features/assistant/AssistantPrompterLayout.d.ts +0 -20
- package/dist/types/features/assistant/AssistantPrompterLayoutV2.d.ts +0 -20
- package/dist/types/features/assistant/AssistantRenderer.d.ts +0 -34
- package/dist/types/features/assistant/components/Assistant.d.ts +0 -10
- package/dist/types/features/assistant/data/minischema.d.ts +0 -1
- package/dist/types/features/assistant/index.d.ts +0 -7
- package/dist/types/features/assistant/model/AssistantPrompterLayoutV2/AssistantPrompterLayoutV2.d.ts +0 -20
- package/dist/types/features/assistant/model/AssistantPrompterLayoutV2/Prompts.d.ts +0 -4
- package/dist/types/features/assistant/util/CleanupUtil.d.ts +0 -1
- package/dist/types/features/form-generation-ui/FormGenerationUIModule.d.ts +0 -3
- package/dist/types/features/form-generation-ui/components/FormGeneration.d.ts +0 -2
- package/dist/types/features/form-generation-ui/components/GPTModal.d.ts +0 -2
- package/dist/types/features/form-generation-ui/dist/index.d.cts +0 -63
- package/dist/types/features/form-generation-ui/dist/index.es.d.ts +0 -60
- package/dist/types/features/form-generation-ui/index.d.ts +0 -2
- package/dist/types/features/form-generation-ui/inject.d.ts +0 -7
- package/dist/types/features/palette/PaletteRenderer.d.ts +0 -33
- package/dist/types/features/properties-panel/PropertiesPanelRenderer.d.ts +0 -37
- package/dist/types/features/properties-panel/context/FormPropertiesPanelContext.d.ts +0 -11
- package/dist/types/features/properties-panel/context/index.d.ts +0 -1
- package/dist/types/features/properties-panel/entries/ExpressionValidationEntry.d.ts +0 -44
- package/dist/types/features/properties-panel/groups/ExpressionValidationsGroup.d.ts +0 -53
- package/dist/types/features/properties-panel/hooks/usePropertiesPanelService.d.ts +0 -1
- package/dist/types/features/properties-panel/icons/index.d.ts +0 -1
- package/dist/types/features/render-injection/TestInjection.d.ts +0 -7
- package/dist/types/features/render-injection/components/TestInjectionComponent.d.ts +0 -2
- package/dist/types/features/util/renderManagerBuilder.d.ts +0 -45
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.4",
|
|
4
4
|
"description": "Edit forms - powered by bpmn.io",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"url": "https://github.com/bpmn-io"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@bpmn-io/form-js-viewer": "^1.0.0-alpha.
|
|
47
|
+
"@bpmn-io/form-js-viewer": "^1.0.0-alpha.4",
|
|
48
48
|
"@bpmn-io/properties-panel": "^2.1.0",
|
|
49
49
|
"array-move": "^3.0.1",
|
|
50
50
|
"big.js": "^6.2.1",
|
|
@@ -60,5 +60,5 @@
|
|
|
60
60
|
"files": [
|
|
61
61
|
"dist"
|
|
62
62
|
],
|
|
63
|
-
"gitHead": "
|
|
63
|
+
"gitHead": "3a508a474678253a1d06c3bd4a0d603230b326b8"
|
|
64
64
|
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef { import('../../core/EventBus').default } EventBus
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @param {EventBus} eventBus
|
|
6
|
-
*/
|
|
7
|
-
declare class AssistantPrompter {
|
|
8
|
-
constructor(eventBus: any, formEditor: any);
|
|
9
|
-
_eventBus: any;
|
|
10
|
-
_formEditor: any;
|
|
11
|
-
_openai: OpenAIApi;
|
|
12
|
-
requestFormCreation(formDescription: any): Promise<"Error parsing JSON from GPT (1)" | "Error parsing JSON from GPT (2)" | "Error importing final schema" | "Request completed." | "Error during form creation.">;
|
|
13
|
-
_delay(time: any): Promise<any>;
|
|
14
|
-
}
|
|
15
|
-
declare namespace AssistantPrompter {
|
|
16
|
-
const $inject: string[];
|
|
17
|
-
}
|
|
18
|
-
export default AssistantPrompter;
|
|
19
|
-
export type EventBus = any;
|
|
20
|
-
import { OpenAIApi } from 'openai';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef { import('../../core/EventBus.js').default } EventBus
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @param {EventBus} eventBus
|
|
6
|
-
*/
|
|
7
|
-
declare class AssistantPrompterLayout {
|
|
8
|
-
constructor(eventBus: any, formEditor: any);
|
|
9
|
-
_eventBus: any;
|
|
10
|
-
_formEditor: any;
|
|
11
|
-
_openai: OpenAIApi;
|
|
12
|
-
requestFormCreation(formDescription: any): Promise<"Error parsing JSON from GPT (1)" | "Error parsing JSON from GPT (2)" | "Error importing final schema" | "Request completed." | "Hit context cap, try again, prompting for a shorter form." | "Something else went wrong, send debug info.">;
|
|
13
|
-
_delay(time: any): Promise<any>;
|
|
14
|
-
}
|
|
15
|
-
declare namespace AssistantPrompterLayout {
|
|
16
|
-
const $inject: string[];
|
|
17
|
-
}
|
|
18
|
-
export default AssistantPrompterLayout;
|
|
19
|
-
export type EventBus = any;
|
|
20
|
-
import { OpenAIApi } from 'openai';
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef { import('../../core/EventBus.js').default } EventBus
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @param {EventBus} eventBus
|
|
6
|
-
*/
|
|
7
|
-
declare class AssistantPrompterLayoutV2 {
|
|
8
|
-
constructor(eventBus: any, formEditor: any);
|
|
9
|
-
_eventBus: any;
|
|
10
|
-
_formEditor: any;
|
|
11
|
-
_openai: OpenAIApi;
|
|
12
|
-
requestFormCreation(formDescription: any): Promise<"Error parsing JSON from GPT (1)" | "No components array returned" | "Error parsing JSON from GPT (2)" | "Error importing final schema" | "Request completed." | "Hit context cap, try again, prompting for a shorter form." | "Something else went wrong, send debug info.">;
|
|
13
|
-
_delay(time: any): Promise<any>;
|
|
14
|
-
}
|
|
15
|
-
declare namespace AssistantPrompterLayoutV2 {
|
|
16
|
-
const $inject: string[];
|
|
17
|
-
}
|
|
18
|
-
export default AssistantPrompterLayoutV2;
|
|
19
|
-
export type EventBus = any;
|
|
20
|
-
import { OpenAIApi } from 'openai';
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef { { parent: Element } } AssistantConfig
|
|
3
|
-
* @typedef { import('../../core/EventBus').default } EventBus
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @param {AssistantConfig} paletteConfig
|
|
7
|
-
* @param {EventBus} eventBus
|
|
8
|
-
*/
|
|
9
|
-
declare class AssistantRenderer {
|
|
10
|
-
constructor(assistantPrompter: any, assistantConfig: any, eventBus: any);
|
|
11
|
-
_eventBus: any;
|
|
12
|
-
_assistantPrompter: any;
|
|
13
|
-
_container: HTMLElement;
|
|
14
|
-
/**
|
|
15
|
-
* Attach the palette to a parent node.
|
|
16
|
-
*
|
|
17
|
-
* @param {HTMLElement} container
|
|
18
|
-
*/
|
|
19
|
-
attachTo(container: HTMLElement): void;
|
|
20
|
-
/**
|
|
21
|
-
* Detach the palette from its parent node.
|
|
22
|
-
*/
|
|
23
|
-
detach(): void;
|
|
24
|
-
_render(): void;
|
|
25
|
-
_destroy(): void;
|
|
26
|
-
}
|
|
27
|
-
declare namespace AssistantRenderer {
|
|
28
|
-
const $inject: string[];
|
|
29
|
-
}
|
|
30
|
-
export default AssistantRenderer;
|
|
31
|
-
export type AssistantConfig = {
|
|
32
|
-
parent: Element;
|
|
33
|
-
};
|
|
34
|
-
export type EventBus = any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function generateParameters(type: any): any;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
declare namespace _default {
|
|
2
|
-
const assistantPrompter: (string | typeof AssistantPrompterLayoutV2)[];
|
|
3
|
-
const assistant: (string | typeof AssistantRenderer)[];
|
|
4
|
-
}
|
|
5
|
-
export default _default;
|
|
6
|
-
import AssistantPrompterLayoutV2 from './model/AssistantPrompterLayoutV2/AssistantPrompterLayoutV2';
|
|
7
|
-
import AssistantRenderer from './AssistantRenderer';
|
package/dist/types/features/assistant/model/AssistantPrompterLayoutV2/AssistantPrompterLayoutV2.d.ts
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef { import('../../../../core/EventBus.js').default } EventBus
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* @param {EventBus} eventBus
|
|
6
|
-
*/
|
|
7
|
-
declare class AssistantPrompterLayoutV2 {
|
|
8
|
-
constructor(eventBus: any, formEditor: any);
|
|
9
|
-
_eventBus: any;
|
|
10
|
-
_formEditor: any;
|
|
11
|
-
_openai: OpenAIApi;
|
|
12
|
-
requestFormCreation(formDescription: any): Promise<"Error parsing JSON from GPT (1)" | "No components array returned" | "Error parsing JSON from GPT (2)" | "Error importing final schema" | "Request completed. Feel free to try again." | "Hit context cap, try again, prompting for a shorter form." | "Something else went wrong, please send debug info to the HTO team">;
|
|
13
|
-
_delay(time: any): Promise<any>;
|
|
14
|
-
}
|
|
15
|
-
declare namespace AssistantPrompterLayoutV2 {
|
|
16
|
-
const $inject: string[];
|
|
17
|
-
}
|
|
18
|
-
export default AssistantPrompterLayoutV2;
|
|
19
|
-
export type EventBus = any;
|
|
20
|
-
import { OpenAIApi } from 'openai';
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export function buildStructuralPromptExample(components: any, layoutedComponents: any): string;
|
|
2
|
-
export const structuralPromptExampleResponse: "{\n \"form_description\": \"small business registration form\",\n \"components\": [\n {\n \"type\": \"textfield\",\n \"prompt\": \"create a business name registration field\",\n \"layout\": {\n \"row\": \"row_1\",\n \"col\": \"auto\"\n }\n },\n {\n \"type\": \"textfield\",\n \"prompt\": \"create a business type registration field\",\n \"layout\": {\n \"row\": \"row_1\",\n \"col\": \"auto\"\n }\n },\n {\n \"type\": \"select\",\n \"prompt\": \"create a business type registration field with options private, public or other\"\n },\n {\n \"type\": \"number\",\n \"prompt\": \"create a starting capital field\"\n }\n ]\n}";
|
|
3
|
-
export function buildStructuralPrompt(components: any, layoutedComponents: any, formDescription: any): string;
|
|
4
|
-
export function buildComponentPrompt(formDescription: any, formStructure: any): string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function cleanupForm(form: any): void;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
export namespace AssistantRenderer {
|
|
2
|
-
const __init__: string[];
|
|
3
|
-
const formGenerationUI: (string | typeof FormGenerationUI)[];
|
|
4
|
-
}
|
|
5
|
-
export function buildAssistantModule(assistantAPI: any): {
|
|
6
|
-
__init__: string[];
|
|
7
|
-
assistantRenderer: (string | {
|
|
8
|
-
__init__: string[];
|
|
9
|
-
formGenerationUI: (string | typeof FormGenerationUI)[];
|
|
10
|
-
})[];
|
|
11
|
-
assistantPrompter: (string | typeof LayoutedAssistantPrompter)[];
|
|
12
|
-
assistantAPI: any[];
|
|
13
|
-
};
|
|
14
|
-
declare class FormGenerationUI {
|
|
15
|
-
constructor(renderInjector: any);
|
|
16
|
-
}
|
|
17
|
-
declare class LayoutedAssistantPrompter {
|
|
18
|
-
constructor(eventBus: any, formEditor: any, assistantAPI: any);
|
|
19
|
-
_eventBus: any;
|
|
20
|
-
_formEditor: any;
|
|
21
|
-
_assistantAPI: any;
|
|
22
|
-
requestFormCreation(formDescription: any): Promise<{
|
|
23
|
-
error: any;
|
|
24
|
-
errorMessage: string;
|
|
25
|
-
intermediateState: any;
|
|
26
|
-
form?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
errorMessage: string;
|
|
29
|
-
intermediateState: any;
|
|
30
|
-
error?: undefined;
|
|
31
|
-
form?: undefined;
|
|
32
|
-
} | {
|
|
33
|
-
form: any;
|
|
34
|
-
error?: undefined;
|
|
35
|
-
errorMessage?: undefined;
|
|
36
|
-
intermediateState?: undefined;
|
|
37
|
-
}>;
|
|
38
|
-
requestFormUpdate(form: any): Promise<{
|
|
39
|
-
error: any;
|
|
40
|
-
errorMessage: string;
|
|
41
|
-
invalidForm: any;
|
|
42
|
-
}>;
|
|
43
|
-
_requestFormCreation(formDescription: any): Promise<{
|
|
44
|
-
error: any;
|
|
45
|
-
errorMessage: string;
|
|
46
|
-
intermediateState: any;
|
|
47
|
-
form?: undefined;
|
|
48
|
-
} | {
|
|
49
|
-
errorMessage: string;
|
|
50
|
-
intermediateState: any;
|
|
51
|
-
error?: undefined;
|
|
52
|
-
form?: undefined;
|
|
53
|
-
} | {
|
|
54
|
-
form: any;
|
|
55
|
-
error?: undefined;
|
|
56
|
-
errorMessage?: undefined;
|
|
57
|
-
intermediateState?: undefined;
|
|
58
|
-
}>;
|
|
59
|
-
}
|
|
60
|
-
declare namespace LayoutedAssistantPrompter {
|
|
61
|
-
const $inject: string[];
|
|
62
|
-
}
|
|
63
|
-
export {};
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
export class FormAssistantUI {
|
|
2
|
-
constructor(renderInjector: any);
|
|
3
|
-
}
|
|
4
|
-
export namespace FormAssistantUIModule {
|
|
5
|
-
const __init__: string[];
|
|
6
|
-
const formAssistantUI: (string | typeof FormAssistantUI)[];
|
|
7
|
-
}
|
|
8
|
-
export function buildAssistantModule(assistantAPI: any): {
|
|
9
|
-
__init__: string[];
|
|
10
|
-
assistantRenderer: (string | typeof FormAssistantUI)[];
|
|
11
|
-
assistantPrompter: (string | typeof LayoutedAssistantPrompter)[];
|
|
12
|
-
assistantAPI: any[];
|
|
13
|
-
};
|
|
14
|
-
declare class LayoutedAssistantPrompter {
|
|
15
|
-
constructor(eventBus: any, formEditor: any, importer: any, assistantAPI: any, assistantHOOKS: any);
|
|
16
|
-
_eventBus: any;
|
|
17
|
-
_formEditor: any;
|
|
18
|
-
_assistantAPI: any;
|
|
19
|
-
requestFormCreation(formDescription: any): Promise<{
|
|
20
|
-
error: any;
|
|
21
|
-
errorMessage: string;
|
|
22
|
-
intermediateState: any;
|
|
23
|
-
form?: undefined;
|
|
24
|
-
} | {
|
|
25
|
-
errorMessage: string;
|
|
26
|
-
intermediateState: any;
|
|
27
|
-
error?: undefined;
|
|
28
|
-
form?: undefined;
|
|
29
|
-
} | {
|
|
30
|
-
form: any;
|
|
31
|
-
error?: undefined;
|
|
32
|
-
errorMessage?: undefined;
|
|
33
|
-
intermediateState?: undefined;
|
|
34
|
-
}>;
|
|
35
|
-
requestFormUpdate(form: any): Promise<{
|
|
36
|
-
error: any;
|
|
37
|
-
errorMessage: string;
|
|
38
|
-
invalidForm: any;
|
|
39
|
-
}>;
|
|
40
|
-
_requestFormCreation(formDescription: any): Promise<{
|
|
41
|
-
error: any;
|
|
42
|
-
errorMessage: string;
|
|
43
|
-
intermediateState: any;
|
|
44
|
-
form?: undefined;
|
|
45
|
-
} | {
|
|
46
|
-
errorMessage: string;
|
|
47
|
-
intermediateState: any;
|
|
48
|
-
error?: undefined;
|
|
49
|
-
form?: undefined;
|
|
50
|
-
} | {
|
|
51
|
-
form: any;
|
|
52
|
-
error?: undefined;
|
|
53
|
-
errorMessage?: undefined;
|
|
54
|
-
intermediateState?: undefined;
|
|
55
|
-
}>;
|
|
56
|
-
}
|
|
57
|
-
declare namespace LayoutedAssistantPrompter {
|
|
58
|
-
const $inject: string[];
|
|
59
|
-
}
|
|
60
|
-
export {};
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef { { parent: Element } } PaletteConfig
|
|
3
|
-
* @typedef { import('../../core/EventBus').default } EventBus
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* @param {PaletteConfig} paletteConfig
|
|
7
|
-
* @param {EventBus} eventBus
|
|
8
|
-
*/
|
|
9
|
-
declare class PaletteRenderer {
|
|
10
|
-
constructor(paletteConfig: any, eventBus: any);
|
|
11
|
-
_eventBus: any;
|
|
12
|
-
_container: HTMLElement;
|
|
13
|
-
/**
|
|
14
|
-
* Attach the palette to a parent node.
|
|
15
|
-
*
|
|
16
|
-
* @param {HTMLElement} container
|
|
17
|
-
*/
|
|
18
|
-
attachTo(container: HTMLElement): void;
|
|
19
|
-
/**
|
|
20
|
-
* Detach the palette from its parent node.
|
|
21
|
-
*/
|
|
22
|
-
detach(): void;
|
|
23
|
-
_render(): void;
|
|
24
|
-
_destroy(): void;
|
|
25
|
-
}
|
|
26
|
-
declare namespace PaletteRenderer {
|
|
27
|
-
const $inject: string[];
|
|
28
|
-
}
|
|
29
|
-
export default PaletteRenderer;
|
|
30
|
-
export type PaletteConfig = {
|
|
31
|
-
parent: Element;
|
|
32
|
-
};
|
|
33
|
-
export type EventBus = any;
|
|
@@ -1,37 +0,0 @@
|
|
|
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 = any;
|
|
37
|
-
export type Injector = import('../../types').Injector;
|
|
@@ -1,11 +0,0 @@
|
|
|
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;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { default as FormPropertiesPanelContext } from "./FormPropertiesPanelContext";
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
export default function ExpressionValidationEntry(props: any): ({
|
|
2
|
-
component: typeof Name;
|
|
3
|
-
id: string;
|
|
4
|
-
idPrefix: any;
|
|
5
|
-
validateName: any;
|
|
6
|
-
onChangeName: any;
|
|
7
|
-
name: any;
|
|
8
|
-
validateExpression?: undefined;
|
|
9
|
-
onChangeExpression?: undefined;
|
|
10
|
-
expression?: undefined;
|
|
11
|
-
validateErrorMessage?: undefined;
|
|
12
|
-
onChangeErrorMessage?: undefined;
|
|
13
|
-
errorMessage?: undefined;
|
|
14
|
-
} | {
|
|
15
|
-
component: typeof Expression;
|
|
16
|
-
id: string;
|
|
17
|
-
idPrefix: any;
|
|
18
|
-
validateExpression: any;
|
|
19
|
-
onChangeExpression: any;
|
|
20
|
-
expression: any;
|
|
21
|
-
validateName?: undefined;
|
|
22
|
-
onChangeName?: undefined;
|
|
23
|
-
name?: undefined;
|
|
24
|
-
validateErrorMessage?: undefined;
|
|
25
|
-
onChangeErrorMessage?: undefined;
|
|
26
|
-
errorMessage?: undefined;
|
|
27
|
-
} | {
|
|
28
|
-
component: typeof ErrorMessage;
|
|
29
|
-
id: string;
|
|
30
|
-
idPrefix: any;
|
|
31
|
-
validateErrorMessage: any;
|
|
32
|
-
onChangeErrorMessage: any;
|
|
33
|
-
errorMessage: any;
|
|
34
|
-
validateName?: undefined;
|
|
35
|
-
onChangeName?: undefined;
|
|
36
|
-
name?: undefined;
|
|
37
|
-
validateExpression?: undefined;
|
|
38
|
-
onChangeExpression?: undefined;
|
|
39
|
-
expression?: undefined;
|
|
40
|
-
})[];
|
|
41
|
-
declare function Name(props: any): any;
|
|
42
|
-
declare function Expression(props: any): any;
|
|
43
|
-
declare function ErrorMessage(props: any): any;
|
|
44
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
export default function CustomValidationsGroup(field: any, editField: any): {
|
|
2
|
-
add: (event: any) => void;
|
|
3
|
-
component: any;
|
|
4
|
-
id: string;
|
|
5
|
-
items: {
|
|
6
|
-
autoFocusEntry: string;
|
|
7
|
-
entries: ({
|
|
8
|
-
component: (props: any) => any;
|
|
9
|
-
id: string;
|
|
10
|
-
idPrefix: any;
|
|
11
|
-
validateName: any;
|
|
12
|
-
onChangeName: any;
|
|
13
|
-
name: any;
|
|
14
|
-
validateExpression?: undefined;
|
|
15
|
-
onChangeExpression?: undefined;
|
|
16
|
-
expression?: undefined;
|
|
17
|
-
validateErrorMessage?: undefined;
|
|
18
|
-
onChangeErrorMessage?: undefined;
|
|
19
|
-
errorMessage?: undefined;
|
|
20
|
-
} | {
|
|
21
|
-
component: (props: any) => any;
|
|
22
|
-
id: string;
|
|
23
|
-
idPrefix: any;
|
|
24
|
-
validateExpression: any;
|
|
25
|
-
onChangeExpression: any;
|
|
26
|
-
expression: any;
|
|
27
|
-
validateName?: undefined;
|
|
28
|
-
onChangeName?: undefined;
|
|
29
|
-
name?: undefined;
|
|
30
|
-
validateErrorMessage?: undefined;
|
|
31
|
-
onChangeErrorMessage?: undefined;
|
|
32
|
-
errorMessage?: undefined;
|
|
33
|
-
} | {
|
|
34
|
-
component: (props: any) => any;
|
|
35
|
-
id: string;
|
|
36
|
-
idPrefix: any;
|
|
37
|
-
validateErrorMessage: any;
|
|
38
|
-
onChangeErrorMessage: any;
|
|
39
|
-
errorMessage: any;
|
|
40
|
-
validateName?: undefined;
|
|
41
|
-
onChangeName?: undefined;
|
|
42
|
-
name?: undefined;
|
|
43
|
-
validateExpression?: undefined;
|
|
44
|
-
onChangeExpression?: undefined;
|
|
45
|
-
expression?: undefined;
|
|
46
|
-
})[];
|
|
47
|
-
id: string;
|
|
48
|
-
label: string;
|
|
49
|
-
remove: (event: any) => void;
|
|
50
|
-
}[];
|
|
51
|
-
label: string;
|
|
52
|
-
shouldSort: boolean;
|
|
53
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export default function _default(type: any, strict: any): any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Factory function to create a new RenderManager for a specific ModularSection.
|
|
3
|
-
*
|
|
4
|
-
* @param {string} managerType - The type of render manager to create.
|
|
5
|
-
* @returns {RenderManagerBase} - A subclass of RenderManagerBase with the manager type set.
|
|
6
|
-
*
|
|
7
|
-
* @function createRenderManager
|
|
8
|
-
*/
|
|
9
|
-
export function createRenderManager(managerType: string): RenderManagerBase;
|
|
10
|
-
/**
|
|
11
|
-
* Base class for render managers.
|
|
12
|
-
*
|
|
13
|
-
* @property {EventBus} _eventBus - EventBus instance used for event handling.
|
|
14
|
-
* @property {string} managerType - Type of the render manager. Used to form event names.
|
|
15
|
-
*
|
|
16
|
-
* @class RenderManagerBase
|
|
17
|
-
*/
|
|
18
|
-
declare class RenderManagerBase {
|
|
19
|
-
/**
|
|
20
|
-
* Create a RenderManagerBase instance.
|
|
21
|
-
*
|
|
22
|
-
* @param {any} eventBus - The EventBus instance used for event handling.
|
|
23
|
-
* @param {string} managerType - The type of render manager. Used to form event names.
|
|
24
|
-
*
|
|
25
|
-
* @constructor
|
|
26
|
-
*/
|
|
27
|
-
constructor(eventBus: any, managerType: string);
|
|
28
|
-
_eventBus: any;
|
|
29
|
-
_managerType: string;
|
|
30
|
-
/**
|
|
31
|
-
* Attach the managed section to a parent node.
|
|
32
|
-
*
|
|
33
|
-
* @param {HTMLElement} container - The parent node to attach to.
|
|
34
|
-
*/
|
|
35
|
-
attachTo(container: HTMLElement): void;
|
|
36
|
-
/**
|
|
37
|
-
* Detach the managed section from its parent node.
|
|
38
|
-
*/
|
|
39
|
-
detach(): void;
|
|
40
|
-
/**
|
|
41
|
-
* Reset the managed section to its initial state.
|
|
42
|
-
*/
|
|
43
|
-
reset(): void;
|
|
44
|
-
}
|
|
45
|
-
export {};
|