@ws-ui/shared 0.1.2 → 0.1.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/components/Tree/interfaces.d.ts +8 -7
- package/dist/declarations/datasources/interfaces/catalog.d.ts +1 -0
- package/dist/declarations/webform/webform.d.ts +8 -0
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js.map +1 -1
- package/dist/types/webform-editor.d.ts +5 -0
- package/package.json +1 -1
|
@@ -54,13 +54,14 @@ export interface ITreeNodeData<T = any> {
|
|
|
54
54
|
title: string;
|
|
55
55
|
index?: number;
|
|
56
56
|
subtitle?: string;
|
|
57
|
-
options?: {
|
|
58
|
-
selectable
|
|
59
|
-
draggable
|
|
60
|
-
focusable
|
|
61
|
-
deletable
|
|
62
|
-
filterable
|
|
63
|
-
|
|
57
|
+
options?: Partial<{
|
|
58
|
+
selectable: boolean;
|
|
59
|
+
draggable: boolean;
|
|
60
|
+
focusable: boolean;
|
|
61
|
+
deletable: boolean;
|
|
62
|
+
filterable: boolean;
|
|
63
|
+
importCSV: boolean;
|
|
64
|
+
}>;
|
|
64
65
|
icon?: ReactElement | JSX.Element | string;
|
|
65
66
|
children?: ITreeNodeData[];
|
|
66
67
|
invalid?: boolean;
|
|
@@ -162,6 +162,8 @@ declare namespace webforms {
|
|
|
162
162
|
variadicType: string;
|
|
163
163
|
}>;
|
|
164
164
|
|
|
165
|
+
type WebformStateActionType = 'add' | 'delete' | 'clear';
|
|
166
|
+
|
|
165
167
|
interface SimpleActionEvent extends BaseEvent {
|
|
166
168
|
type: 'simple-action';
|
|
167
169
|
datasource: {
|
|
@@ -179,7 +181,13 @@ declare namespace webforms {
|
|
|
179
181
|
type?: string;
|
|
180
182
|
};
|
|
181
183
|
};
|
|
184
|
+
state?: Partial<{
|
|
185
|
+
action: WebformStateActionType;
|
|
186
|
+
states: string[];
|
|
187
|
+
override: boolean;
|
|
188
|
+
}>;
|
|
182
189
|
action: string;
|
|
190
|
+
actionType?: 'state' | 'datasource';
|
|
183
191
|
query?: QueryString;
|
|
184
192
|
orderBy?: OrderBy[];
|
|
185
193
|
feedback?: {
|