creo-flow-extensions-base 1.2.0-dev.10 → 1.2.0-dev.11
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/lib/fields/code/index.d.ts +1 -1
- package/lib/fields/enum/index.d.ts +2 -1
- package/lib/fields/enum/index.js +1 -0
- package/lib/fields/index.d.ts +2 -1
- package/lib/fields/textarea/index.d.ts +5 -0
- package/lib/fields/textarea/index.js +2 -0
- package/lib/method/index.d.ts +2 -10
- package/package.json +1 -1
|
@@ -6,7 +6,8 @@ export declare enum FieldTypes {
|
|
|
6
6
|
AUTOCOMPLETE = "autocomplete",
|
|
7
7
|
DYNAMIC_FIELDS_LIST = "dynamicFieldsList",
|
|
8
8
|
FIELDS_GROUP = "fieldsListGroup",
|
|
9
|
-
COLLAPSIBLE_FIELDS_LIST = "collapsibleFieldsList"
|
|
9
|
+
COLLAPSIBLE_FIELDS_LIST = "collapsibleFieldsList",
|
|
10
|
+
TEXTAREA = "textarea"
|
|
10
11
|
}
|
|
11
12
|
export declare enum ContentType {
|
|
12
13
|
STRING = "string",
|
package/lib/fields/enum/index.js
CHANGED
|
@@ -11,6 +11,7 @@ var FieldTypes;
|
|
|
11
11
|
FieldTypes["DYNAMIC_FIELDS_LIST"] = "dynamicFieldsList";
|
|
12
12
|
FieldTypes["FIELDS_GROUP"] = "fieldsListGroup";
|
|
13
13
|
FieldTypes["COLLAPSIBLE_FIELDS_LIST"] = "collapsibleFieldsList";
|
|
14
|
+
FieldTypes["TEXTAREA"] = "textarea";
|
|
14
15
|
})(FieldTypes || (exports.FieldTypes = FieldTypes = {}));
|
|
15
16
|
var ContentType;
|
|
16
17
|
(function (ContentType) {
|
package/lib/fields/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { ICodeField } from './code';
|
|
|
5
5
|
import { ICollapsibleFieldsList } from './collapsibleFieldsList';
|
|
6
6
|
import { IDynamicFieldsList } from './dynamicFieldsList';
|
|
7
7
|
import { IFieldsGroup } from './fieldsGroup';
|
|
8
|
+
import { ITextareaField } from './textarea';
|
|
8
9
|
export * from './enum';
|
|
9
|
-
export type Field = IInputField | ISelectField | ICheckboxField | ICodeField | ICollapsibleFieldsList | IDynamicFieldsList | IFieldsGroup;
|
|
10
|
+
export type Field = IInputField | ISelectField | ICheckboxField | ICodeField | ICollapsibleFieldsList | IDynamicFieldsList | IFieldsGroup | ITextareaField;
|
|
10
11
|
export declare function createFields<const T extends readonly Field[]>(fields: T & Field[]): T;
|
package/lib/method/index.d.ts
CHANGED
|
@@ -11,12 +11,8 @@ export interface IMethodSchema<T extends readonly Field[], C extends readonly Fi
|
|
|
11
11
|
* Executes the method logic.
|
|
12
12
|
*
|
|
13
13
|
* @param args - Aggregated field values and default execution arguments.
|
|
14
|
-
* @param context - Optional raw context object. This value is provided
|
|
15
|
-
* when the extension is configured to use manual
|
|
16
|
-
* context mode and must be parsed manually inside
|
|
17
|
-
* the extension method implementation.
|
|
18
14
|
*/
|
|
19
|
-
execute: (args: FieldNameMap<T> & FieldNameMap<C> & IDefaultExecutionArgs
|
|
15
|
+
execute: (args: FieldNameMap<T> & FieldNameMap<C> & IDefaultExecutionArgs) => S;
|
|
20
16
|
}
|
|
21
17
|
export declare function createMethodSchema<const T extends readonly Field[], const C extends readonly Field[] = [], S = SafeAny>(schema: {
|
|
22
18
|
label: string;
|
|
@@ -27,10 +23,6 @@ export declare function createMethodSchema<const T extends readonly Field[], con
|
|
|
27
23
|
* Executes the method logic.
|
|
28
24
|
*
|
|
29
25
|
* @param args - Aggregated field values and default execution arguments.
|
|
30
|
-
* @param context - Optional raw context object. This value is provided
|
|
31
|
-
* when the extension is configured to use manual
|
|
32
|
-
* context mode and must be parsed manually inside
|
|
33
|
-
* the extension method implementation.
|
|
34
26
|
*/
|
|
35
|
-
execute: (args: FieldNameMap<T> & FieldNameMap<C> & IDefaultExecutionArgs
|
|
27
|
+
execute: (args: FieldNameMap<T> & FieldNameMap<C> & IDefaultExecutionArgs) => S;
|
|
36
28
|
}): IMethodSchema<T, C, S>;
|