@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.
@@ -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?: boolean;
59
- draggable?: boolean;
60
- focusable?: boolean;
61
- deletable?: boolean;
62
- filterable?: boolean;
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;
@@ -69,6 +69,7 @@ declare namespace catalog {
69
69
  scope: DataclassScope;
70
70
  attributes: IAttribute[];
71
71
  uuid?: string;
72
+ virtual?: boolean;
72
73
  } & Partial<{
73
74
  defaultTopSize: number;
74
75
  leave_tag_on_delete: 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?: {